{"version":3,"sources":["vendor/ember-cli/app-prefix.js","client/CHANGELOG.js","client/adapters/-json-api.js","client/app.js","client/cldrs/en.js","client/cldrs/zh.js","client/component-managers/glimmer.js","client/components/ember-chart.js","client/components/froala-content.js","client/components/froala-editor.js","client/components/sticky-element.js","client/components/sticky-element/trigger.js","client/components/welcome-page.js","client/constants/index.js","client/data-adapter.js","client/formats.js","client/helpers/and.js","client/helpers/app-version.js","client/helpers/arr.js","client/helpers/bToKb.js","client/helpers/badgeCount.js","client/helpers/boolean.js","client/helpers/calculate.js","client/helpers/cancel-all.js","client/helpers/compare.js","client/helpers/component-exist.js","client/helpers/contains.js","client/helpers/count.js","client/helpers/currency.js","client/helpers/date.js","client/helpers/dateRange.js","client/helpers/dateTime.js","client/helpers/dateTimeWithAlternative.js","client/helpers/dayOfWeek.js","client/helpers/docDispatchStatus.js","client/helpers/docStatus.js","client/helpers/either.js","client/helpers/eq.js","client/helpers/findBy.js","client/helpers/format-date.js","client/helpers/format-message.js","client/helpers/format-number.js","client/helpers/format-relative.js","client/helpers/format-time.js","client/helpers/froala-arg.js","client/helpers/froala-html.js","client/helpers/froala-method.js","client/helpers/get-dot-path.js","client/helpers/get-error-by-index.js","client/helpers/gt.js","client/helpers/gte.js","client/helpers/has.js","client/helpers/hasNotEnoughColumns.js","client/helpers/highlight.js","client/helpers/html-safe.js","client/helpers/ifZero.js","client/helpers/is-array.js","client/helpers/is-empty.js","client/helpers/is-equal.js","client/helpers/isEmptyProp.js","client/helpers/isEven.js","client/helpers/isExcluded.js","client/helpers/isGreaterThan.js","client/helpers/isLast.js","client/helpers/isLessThan.js","client/helpers/isNextEmptyProp.js","client/helpers/isNotExcluded.js","client/helpers/isNotNumeric.js","client/helpers/isNumeric.js","client/helpers/isSameAsPreviousValue.js","client/helpers/isZero.js","client/helpers/kbToMb.js","client/helpers/listlabel.js","client/helpers/lt.js","client/helpers/lte.js","client/helpers/multiply.js","client/helpers/not-eq.js","client/helpers/not.js","client/helpers/notEmpty.js","client/helpers/number.js","client/helpers/or.js","client/helpers/padStart.js","client/helpers/percentage.js","client/helpers/perform.js","client/helpers/pluralize.js","client/helpers/pod/get.js","client/helpers/pod/logo.js","client/helpers/product-title.js","client/helpers/ramda.js","client/helpers/relativeTime.js","client/helpers/replace.js","client/helpers/singularize.js","client/helpers/strip-html.js","client/helpers/substr.js","client/helpers/substring.js","client/helpers/substringFrom.js","client/helpers/sum.js","client/helpers/sumBig.js","client/helpers/t.js","client/helpers/tab-copy.js","client/helpers/task.js","client/helpers/taxCalculator.js","client/helpers/tconcat.js","client/helpers/to-string.js","client/helpers/truncate.js","client/helpers/tt.js","client/helpers/uploadcareSrc.js","client/helpers/user/get.js","client/helpers/user/hasBigOrdrOperatorRights.js","client/helpers/websitePageUrl.js","client/helpers/xor.js","client/initializers/app-version.js","client/initializers/constants.js","client/initializers/container-debug-adapter.js","client/initializers/crud.js","client/initializers/data-manager.js","client/initializers/ember-concurrency.js","client/initializers/ember-data-data-adapter.js","client/initializers/ember-data.js","client/initializers/export-application-global.js","client/initializers/extensions.js","client/initializers/intl.js","client/initializers/pikaday.js","client/initializers/products.js","client/initializers/search.js","client/initializers/server.js","client/initializers/settings.js","client/initializers/socket.js","client/initializers/storage.js","client/initializers/tabs-manager.js","client/initializers/viewport-config.js","client/instance-initializers/ember-data.js","client/instance-initializers/froala-editor-elements.js","client/instance-initializers/sentry-performance.js","client/mixins/adapters-new.js","client/mixins/big.js","client/mixins/blogs-list-by.js","client/mixins/contacts-departments.js","client/mixins/contacts-details.js","client/mixins/contacts-is-parent.js","client/mixins/contacts-list-by.js","client/mixins/contacts-persons.js","client/mixins/crud.js","client/mixins/data.js","client/mixins/date.js","client/mixins/dispatch.js","client/mixins/doc-contacts.js","client/mixins/doc-list-by.js","client/mixins/doc-status.js","client/mixins/draggable.js","client/mixins/droppable.js","client/mixins/e-invoices-list-by.js","client/mixins/editor.js","client/mixins/emails-dispatched.js","client/mixins/errors.js","client/mixins/files.js","client/mixins/has-dropdown.js","client/mixins/hct-fetch.js","client/mixins/is-dirty.js","client/mixins/news-list-by.js","client/mixins/payments-list-by.js","client/mixins/processes.js","client/mixins/products-children.js","client/mixins/products-list-by.js","client/mixins/sales-persons.js","client/mixins/search-contacts.js","client/mixins/settings.js","client/mixins/sortable-actions.js","client/mixins/sortable-details.js","client/mixins/statuses.js","client/mixins/store-location-list-by.js","client/mixins/tabbable.js","client/mixins/templates.js","client/mixins/translate.js","client/mixins/transporter-accounts.js","client/mixins/transporter.js","client/mixins/uploads.js","client/mixins/users-list-by.js","client/mixins/validator.js","client/modifiers/add-style.js","client/modifiers/did-insert.js","client/modifiers/did-update.js","client/modifiers/guide-id.js","client/modifiers/in-viewport.js","client/modifiers/on-resize.js","client/modifiers/will-destroy.js","client/pods/admin/adapter.js","client/pods/admin/extensions/apps/tw/e-invoices/adapter.js","client/pods/admin/extensions/apps/tw/e-invoices/filters/adapter.js","client/pods/admin/extensions/apps/tw/e-invoices/filters/model.js","client/pods/admin/members/adapter.js","client/pods/admin/members/lists/plans/adapter.js","client/pods/admin/payments/card/adapter.js","client/pods/admin/payments/card/checkout-logs/adapter.js","client/pods/admin/payments/card/checkout-logs/filters/adapter.js","client/pods/admin/payments/card/checkout-logs/filters/model.js","client/pods/admin/payments/card/checkout-logs/model.js","client/pods/admin/payments/card/filters/adapter.js","client/pods/admin/payments/card/filters/model.js","client/pods/admin/payments/card/lists/filters/search/adapter.js","client/pods/admin/payments/card/lists/filters/sort/adapter.js","client/pods/admin/payments/card/lists/filters/status/adapter.js","client/pods/admin/payments/card/lists/panels/adapter.js","client/pods/admin/payments/card/server-logs/adapter.js","client/pods/admin/payments/card/server-logs/filters/adapter.js","client/pods/admin/payments/card/server-logs/filters/model.js","client/pods/admin/payments/card/server-logs/model.js","client/pods/admin/payments/card/statements/adapter.js","client/pods/admin/payments/card/statements/details/adapter.js","client/pods/admin/payments/card/statements/filters/adapter.js","client/pods/admin/payments/card/statements/filters/model.js","client/pods/admin/payments/card/temp/adapter.js","client/pods/admin/payments/card/transactions/filters/model.js","client/pods/admin/pods/adapter.js","client/pods/admin/service.js","client/pods/ages/adapter.js","client/pods/ajax/service.js","client/pods/application-loading/template.js","client/pods/application/change-logs/adapter.js","client/pods/application/lists/main/adapter.js","client/pods/application/lists/main/groups-sub/adapter.js","client/pods/application/lists/main/model.js","client/pods/application/lists/progress/adapter.js","client/pods/application/lists/wizards/adapter.js","client/pods/application/lists/wizards/model.js","client/pods/application/route.js","client/pods/application/service.js","client/pods/application/template.js","client/pods/auth/service.js","client/pods/automations/criterias/adapter.js","client/pods/automations/then-actions/adapter.js","client/pods/automations/then-details/adapter.js","client/pods/automations/then-details/model.js","client/pods/automations/then-selection-types/adapter.js","client/pods/automations/when/adapter.js","client/pods/automations/when/item-qty/adapter.js","client/pods/automations/when/item-value/adapter.js","client/pods/availability/adapter.js","client/pods/barcodes/adapter.js","client/pods/base/adapter.js","client/pods/base/model.js","client/pods/big/service.js","client/pods/billing/addons/invoices/adapter.js","client/pods/billing/addons/invoices/model.js","client/pods/billing/credits/adapter.js","client/pods/billing/credits/model.js","client/pods/billing/credits/settings/adapter.js","client/pods/billing/credits/settings/model.js","client/pods/billing/lists/auto-topup-amounts/adapter.js","client/pods/billing/lists/auto-topup-when-amounts/adapter.js","client/pods/billing/lists/sub-panels/adapter.js","client/pods/billing/payment-methods/credit-cards/adapter.js","client/pods/billing/payment-methods/credit-cards/model.js","client/pods/billing/plans/adapter.js","client/pods/billing/plans/invoices/adapter.js","client/pods/billing/plans/invoices/filters/adapter.js","client/pods/billing/plans/invoices/filters/model.js","client/pods/billing/plans/invoices/model.js","client/pods/billing/plans/model.js","client/pods/billing/service.js","client/pods/blogs/adapter.js","client/pods/blogs/details/batch/adapter.js","client/pods/blogs/details/batch/statuses/adapter.js","client/pods/blogs/details/batch/tags/adapter.js","client/pods/blogs/filters/adapter.js","client/pods/blogs/filters/model.js","client/pods/blogs/lists/bigordr-blogs-slider-types/adapter.js","client/pods/blogs/lists/filters/search/adapter.js","client/pods/blogs/lists/filters/sort/adapter.js","client/pods/blogs/lists/filters/status/adapter.js","client/pods/blogs/lists/font-alignment/adapter.js","client/pods/blogs/lists/font-family/adapter.js","client/pods/blogs/lists/font-size/adapter.js","client/pods/blogs/lists/font-weight/adapter.js","client/pods/blogs/lists/line-count/adapter.js","client/pods/blogs/lists/menu/adapter.js","client/pods/blogs/lists/styles/adapter.js","client/pods/blogs/lists/tags/adapter.js","client/pods/blogs/model.js","client/pods/bsp/virtual-accounts/adapter.js","client/pods/bsp/virtual-accounts/model.js","client/pods/campaigns-products/service.js","client/pods/channels/shop/campaigns/adapter.js","client/pods/channels/shop/campaigns/advanced-template/adapter.js","client/pods/channels/shop/campaigns/automations/adapter.js","client/pods/channels/shop/campaigns/automations/collection/adapter.js","client/pods/channels/shop/campaigns/automations/collection/model.js","client/pods/channels/shop/campaigns/automations/details/adapter.js","client/pods/channels/shop/campaigns/automations/details/model.js","client/pods/channels/shop/campaigns/automations/model.js","client/pods/channels/shop/campaigns/automations/shipping-behavior/adapter.js","client/pods/channels/shop/campaigns/automations/statuses/adapter.js","client/pods/channels/shop/campaigns/bulk-discounts/adapter.js","client/pods/channels/shop/campaigns/bulk-discounts/filters/adapter.js","client/pods/channels/shop/campaigns/bulk-discounts/filters/model.js","client/pods/channels/shop/campaigns/bulk-discounts/model.js","client/pods/channels/shop/campaigns/bulk-discounts/rule-sets/adapter.js","client/pods/channels/shop/campaigns/bulk-discounts/rule-sets/model.js","client/pods/channels/shop/campaigns/bulk-discounts/rules/adapter.js","client/pods/channels/shop/campaigns/bulk-discounts/rules/member-levels/adapter.js","client/pods/channels/shop/campaigns/bulk-discounts/rules/member-levels/model.js","client/pods/channels/shop/campaigns/bulk-discounts/rules/model.js","client/pods/channels/shop/campaigns/bulk-discounts/schedules/adapter.js","client/pods/channels/shop/campaigns/bulk-discounts/schedules/model.js","client/pods/channels/shop/campaigns/calendar-type-settings/adapter.js","client/pods/channels/shop/campaigns/commission-base-cost-method/adapter.js","client/pods/channels/shop/campaigns/commission-base-cost-method/model.js","client/pods/channels/shop/campaigns/commissions-date-ranges/adapter.js","client/pods/channels/shop/campaigns/delivery-date-settings-items/adapter.js","client/pods/channels/shop/campaigns/delivery-date-settings/adapter.js","client/pods/channels/shop/campaigns/details/adapter.js","client/pods/channels/shop/campaigns/details/batch/adapter.js","client/pods/channels/shop/campaigns/details/batch/statuses/adapter.js","client/pods/channels/shop/campaigns/details/batch/tags/adapter.js","client/pods/channels/shop/campaigns/details/bulk-discount-conflicts/adapter.js","client/pods/channels/shop/campaigns/details/bulk-discount-conflicts/model.js","client/pods/channels/shop/campaigns/details/commission-base-cost/adapter.js","client/pods/channels/shop/campaigns/details/commission-base-cost/history/adapter.js","client/pods/channels/shop/campaigns/details/commission-base-cost/history/filters/adapter.js","client/pods/channels/shop/campaigns/details/commission-base-cost/history/filters/model.js","client/pods/channels/shop/campaigns/details/commission-base-cost/history/model.js","client/pods/channels/shop/campaigns/details/commission-base-cost/model.js","client/pods/channels/shop/campaigns/details/export/adapter.js","client/pods/channels/shop/campaigns/details/filters/adapter.js","client/pods/channels/shop/campaigns/details/filters/model.js","client/pods/channels/shop/campaigns/details/limits/adapter.js","client/pods/channels/shop/campaigns/details/limits/filters/adapter.js","client/pods/channels/shop/campaigns/details/limits/filters/model.js","client/pods/channels/shop/campaigns/details/limits/model.js","client/pods/channels/shop/campaigns/details/model.js","client/pods/channels/shop/campaigns/details/preset-commissions/adapter.js","client/pods/channels/shop/campaigns/details/preset-commissions/filters/adapter.js","client/pods/channels/shop/campaigns/details/preset-commissions/filters/model.js","client/pods/channels/shop/campaigns/details/preset-commissions/model.js","client/pods/channels/shop/campaigns/details/search-results-item/component.js","client/pods/channels/shop/campaigns/details/search-results-item/template.js","client/pods/channels/shop/campaigns/details/templates/adapter.js","client/pods/channels/shop/campaigns/export/items-by-payment-status/adapter.js","client/pods/channels/shop/campaigns/export/items-by-payment-status/model.js","client/pods/channels/shop/campaigns/filters/adapter.js","client/pods/channels/shop/campaigns/filters/model.js","client/pods/channels/shop/campaigns/influencers/adapter.js","client/pods/channels/shop/campaigns/influencers/model.js","client/pods/channels/shop/campaigns/linked/adapter.js","client/pods/channels/shop/campaigns/lists/campaigns-details-export-types/adapter.js","client/pods/channels/shop/campaigns/lists/cart-btn-style/adapter.js","client/pods/channels/shop/campaigns/lists/commission-filler/adapter.js","client/pods/channels/shop/campaigns/lists/commission-types/adapter.js","client/pods/channels/shop/campaigns/lists/editor-sub-panels/adapter.js","client/pods/channels/shop/campaigns/lists/filters/search/adapter.js","client/pods/channels/shop/campaigns/lists/filters/sort/adapter.js","client/pods/channels/shop/campaigns/lists/filters/status/adapter.js","client/pods/channels/shop/campaigns/lists/import/limits/specs/adapter.js","client/pods/channels/shop/campaigns/lists/import/price/specs/adapter.js","client/pods/channels/shop/campaigns/lists/inventory-sync-toggle/adapter.js","client/pods/channels/shop/campaigns/lists/item-editor-sub-panels/adapter.js","client/pods/channels/shop/campaigns/lists/limit-adjust-types/adapter.js","client/pods/channels/shop/campaigns/lists/limit-types/adapter.js","client/pods/channels/shop/campaigns/lists/locations/adapter.js","client/pods/channels/shop/campaigns/lists/locations/model.js","client/pods/channels/shop/campaigns/lists/menu/adapter.js","client/pods/channels/shop/campaigns/lists/no-of-lines/adapter.js","client/pods/channels/shop/campaigns/lists/page-import-btn-sub-panels/adapter.js","client/pods/channels/shop/campaigns/lists/products-filters/adapter.js","client/pods/channels/shop/campaigns/lists/products-images-fit/adapter.js","client/pods/channels/shop/campaigns/lists/products-images-ratio/adapter.js","client/pods/channels/shop/campaigns/lists/products-images-size/adapter.js","client/pods/channels/shop/campaigns/lists/products-name-font-size/adapter.js","client/pods/channels/shop/campaigns/lists/products-name-line-count/adapter.js","client/pods/channels/shop/campaigns/lists/products-overview/adapter.js","client/pods/channels/shop/campaigns/lists/products-tags-display-style/adapter.js","client/pods/channels/shop/campaigns/lists/review-steps/adapter.js","client/pods/channels/shop/campaigns/lists/review-steps/model.js","client/pods/channels/shop/campaigns/lists/settings-editor/editor-sub-panels/adapter.js","client/pods/channels/shop/campaigns/lists/show-customizations-price-type/adapter.js","client/pods/channels/shop/campaigns/lists/statuses/adapter.js","client/pods/channels/shop/campaigns/lists/sub-panels/adapter.js","client/pods/channels/shop/campaigns/lists/variant-selector-style/adapter.js","client/pods/channels/shop/campaigns/lists/website-page-display/adapter.js","client/pods/channels/shop/campaigns/members-campaign-menu/adapter.js","client/pods/channels/shop/campaigns/members-campaign-menu/collection/adapter.js","client/pods/channels/shop/campaigns/members-campaign-menu/collection/model.js","client/pods/channels/shop/campaigns/members-campaign-menu/filters/adapter.js","client/pods/channels/shop/campaigns/members-campaign-menu/filters/model.js","client/pods/channels/shop/campaigns/members-campaign-menu/model.js","client/pods/channels/shop/campaigns/model.js","client/pods/channels/shop/campaigns/over-sales-limited-qty-statuses/adapter.js","client/pods/channels/shop/campaigns/price-filter/adapter.js","client/pods/channels/shop/campaigns/price-filter/model.js","client/pods/channels/shop/campaigns/products-tags-filters/adapter.js","client/pods/channels/shop/campaigns/reports/filters/adapter.js","client/pods/channels/shop/campaigns/service.js","client/pods/channels/shop/campaigns/statuses/adapter.js","client/pods/channels/shop/campaigns/templates/adapter.js","client/pods/channels/shop/delivery-date-options/adapter.js","client/pods/channels/shop/delivery-date-options/model.js","client/pods/channels/shop/promo-codes/adapter.js","client/pods/channels/shop/promo-codes/filters/adapter.js","client/pods/channels/shop/promo-codes/filters/model.js","client/pods/channels/shop/promo-codes/lists/filters/search/adapter.js","client/pods/channels/shop/promo-codes/lists/filters/sort/adapter.js","client/pods/channels/shop/promo-codes/lists/menu/adapter.js","client/pods/channels/shop/promo-codes/model.js","client/pods/channels/shop/rewards/adapter.js","client/pods/channels/shop/rewards/deductions/adapter.js","client/pods/channels/shop/rewards/earnings/adapter.js","client/pods/channels/shop/rewards/filters/adapter.js","client/pods/channels/shop/rewards/filters/model.js","client/pods/channels/shop/rewards/item-events/adapter.js","client/pods/channels/shop/rewards/item-events/model.js","client/pods/channels/shop/rewards/lists/filters/search/adapter.js","client/pods/channels/shop/rewards/lists/filters/sort/adapter.js","client/pods/channels/shop/rewards/lists/menu/adapter.js","client/pods/channels/shop/rewards/lists/reward-event-types/adapter.js","client/pods/channels/shop/rewards/lists/sub-panels-editor/adapter.js","client/pods/channels/shop/rewards/lists/sub-panels/adapter.js","client/pods/channels/shop/rewards/member-levels/adapter.js","client/pods/channels/shop/rewards/member-levels/model.js","client/pods/channels/shop/rewards/member-levels/rewards-events/adapter.js","client/pods/channels/shop/rewards/member-levels/rewards-events/model.js","client/pods/channels/shop/rewards/model.js","client/pods/channels/shop/rewards/periods/adapter.js","client/pods/channels/shop/rewards/requirements/adapter.js","client/pods/channels/shop/rewards/types/adapter.js","client/pods/channels/shop/shipping-zones/adapter.js","client/pods/channels/shop/shipping-zones/all/adapter.js","client/pods/channels/shop/shipping-zones/countries/adapter.js","client/pods/channels/shop/shipping-zones/countries/districts/adapter.js","client/pods/channels/shop/shipping-zones/countries/districts/lists/adapter.js","client/pods/channels/shop/shipping-zones/countries/districts/lists/model.js","client/pods/channels/shop/shipping-zones/countries/districts/model.js","client/pods/channels/shop/shipping-zones/countries/filters/adapter.js","client/pods/channels/shop/shipping-zones/countries/filters/model.js","client/pods/channels/shop/shipping-zones/countries/model.js","client/pods/channels/shop/shipping-zones/countries/regions/adapter.js","client/pods/channels/shop/shipping-zones/countries/regions/model.js","client/pods/channels/shop/shipping-zones/filters/adapter.js","client/pods/channels/shop/shipping-zones/filters/model.js","client/pods/channels/shop/shipping-zones/free-shipping-rule/adapter.js","client/pods/channels/shop/shipping-zones/free-shipping-rule/model.js","client/pods/channels/shop/shipping-zones/free-shipping-rule/rule/adapter.js","client/pods/channels/shop/shipping-zones/free-shipping-rule/rule/model.js","client/pods/channels/shop/shipping-zones/lists/campaigns/adapter.js","client/pods/channels/shop/shipping-zones/lists/filters/search/adapter.js","client/pods/channels/shop/shipping-zones/lists/filters/sort/adapter.js","client/pods/channels/shop/shipping-zones/lists/free-shipping-when/adapter.js","client/pods/channels/shop/shipping-zones/lists/menu/adapter.js","client/pods/channels/shop/shipping-zones/lists/product-tags-when/adapter.js","client/pods/channels/shop/shipping-zones/lists/rate-base/adapter.js","client/pods/channels/shop/shipping-zones/lists/rate-method/adapter.js","client/pods/channels/shop/shipping-zones/lists/rate-method/free-shipping/adapter.js","client/pods/channels/shop/shipping-zones/lists/sub-panels-editor/adapter.js","client/pods/channels/shop/shipping-zones/lists/sub-panels/adapter.js","client/pods/channels/shop/shipping-zones/lists/zone-types/adapter.js","client/pods/channels/shop/shipping-zones/model.js","client/pods/channels/shop/shipping-zones/rates/adapter.js","client/pods/channels/shop/shipping-zones/rates/model.js","client/pods/channels/shop/shipping-zones/surcharges/adapter.js","client/pods/channels/shop/shipping-zones/surcharges/model.js","client/pods/channels/shop/web/adapter.js","client/pods/channels/shop/web/model.js","client/pods/color-picker/adapter.js","client/pods/color-picker/model.js","client/pods/comments/adapter.js","client/pods/comments/collection/adapter.js","client/pods/comments/collection/model.js","client/pods/comments/contacts/adapter.js","client/pods/comments/contacts/filters/adapter.js","client/pods/comments/contacts/filters/model.js","client/pods/comments/contacts/model.js","client/pods/comments/filters/adapter.js","client/pods/comments/filters/model.js","client/pods/comments/model.js","client/pods/commissions/lists/panels/adapter.js","client/pods/commissions/methods/adapter.js","client/pods/components/accordion-help-section/component.js","client/pods/components/accordion-help-section/template.js","client/pods/components/accordion/component.js","client/pods/components/accordion/template.js","client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/component.js","client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/component.js","client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/template.js","client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/component.js","client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/template.js","client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/template.js","client/pods/components/admin/extensions/apps/tw/e-invoices/tab-container/component.js","client/pods/components/admin/extensions/apps/tw/e-invoices/tab-container/template.js","client/pods/components/admin/maintenance/tab-container/component.js","client/pods/components/admin/maintenance/tab-container/template.js","client/pods/components/admin/members/tab-container/component.js","client/pods/components/admin/members/tab-container/template.js","client/pods/components/admin/payments/card/panels-abandoned/component.js","client/pods/components/admin/payments/card/panels-abandoned/payments-detail/component.js","client/pods/components/admin/payments/card/panels-abandoned/payments-detail/template.js","client/pods/components/admin/payments/card/panels-abandoned/template.js","client/pods/components/admin/payments/card/panels-activity/component.js","client/pods/components/admin/payments/card/panels-activity/payments-detail/component.js","client/pods/components/admin/payments/card/panels-activity/payments-detail/template.js","client/pods/components/admin/payments/card/panels-activity/template.js","client/pods/components/admin/payments/card/panels-checkout-logs/component.js","client/pods/components/admin/payments/card/panels-checkout-logs/table-view/detail-row/component.js","client/pods/components/admin/payments/card/panels-checkout-logs/table-view/detail-row/template.js","client/pods/components/admin/payments/card/panels-checkout-logs/template.js","client/pods/components/admin/payments/card/panels-payments/component.js","client/pods/components/admin/payments/card/panels-payments/panels-statements/component.js","client/pods/components/admin/payments/card/panels-payments/panels-statements/statement-row/component.js","client/pods/components/admin/payments/card/panels-payments/panels-statements/statement-row/template.js","client/pods/components/admin/payments/card/panels-payments/panels-statements/template.js","client/pods/components/admin/payments/card/panels-payments/payout-btn/component.js","client/pods/components/admin/payments/card/panels-payments/payout-btn/template.js","client/pods/components/admin/payments/card/panels-payments/template.js","client/pods/components/admin/payments/card/panels-refunds/component.js","client/pods/components/admin/payments/card/panels-refunds/template.js","client/pods/components/admin/payments/card/panels-server-logs/table-view/detail-row/component.js","client/pods/components/admin/payments/card/panels-server-logs/table-view/detail-row/template.js","client/pods/components/admin/payments/card/payments-display/component.js","client/pods/components/admin/payments/card/payments-display/payments-details/component.js","client/pods/components/admin/payments/card/payments-display/payments-details/template.js","client/pods/components/admin/payments/card/payments-display/template.js","client/pods/components/admin/payments/card/search-filters-abandoned/component.js","client/pods/components/admin/payments/card/search-filters-abandoned/template.js","client/pods/components/admin/payments/card/search-filters-activity/component.js","client/pods/components/admin/payments/card/search-filters-activity/template.js","client/pods/components/admin/payments/card/tab-container/component.js","client/pods/components/admin/payments/card/tab-container/template.js","client/pods/components/admin/pods/search-results/component.js","client/pods/components/admin/pods/search-results/template.js","client/pods/components/alerts/confirm-msg/component.js","client/pods/components/alerts/confirm-msg/template.js","client/pods/components/app-companies/modal/component.js","client/pods/components/app-companies/modal/template.js","client/pods/components/app-companies/selector/component.js","client/pods/components/app-companies/selector/template.js","client/pods/components/app-container/component.js","client/pods/components/app-container/template.js","client/pods/components/app-logged-in/component.js","client/pods/components/app-logged-in/template.js","client/pods/components/apps/tab-container/component.js","client/pods/components/apps/tab-container/template.js","client/pods/components/barcode/generator/component.js","client/pods/components/barcode/generator/template.js","client/pods/components/barcode/modal/component.js","client/pods/components/barcode/modal/template.js","client/pods/components/barcode/print-modal/component.js","client/pods/components/barcode/print-modal/template.js","client/pods/components/billing/billing-details-editor/component.js","client/pods/components/billing/billing-details-editor/template.js","client/pods/components/billing/contact-editor/component.js","client/pods/components/billing/contact-editor/template.js","client/pods/components/billing/panels-display/component.js","client/pods/components/billing/panels-display/credits-history/component.js","client/pods/components/billing/panels-display/credits-history/template.js","client/pods/components/billing/panels-display/invoices-history/component.js","client/pods/components/billing/panels-display/invoices-history/table-view/panels-activity/component.js","client/pods/components/billing/panels-display/invoices-history/table-view/panels-activity/template.js","client/pods/components/billing/panels-display/invoices-history/template.js","client/pods/components/billing/panels-display/plans/component.js","client/pods/components/billing/panels-display/plans/template.js","client/pods/components/billing/panels-display/template.js","client/pods/components/billing/payment-methods/component.js","client/pods/components/billing/payment-methods/template.js","client/pods/components/billing/plan-payments-editor/component.js","client/pods/components/billing/plan-payments-editor/template.js","client/pods/components/billing/systemlead-addon/component.js","client/pods/components/billing/systemlead-addon/template.js","client/pods/components/billing/tab-container/component.js","client/pods/components/billing/tab-container/template.js","client/pods/components/billing/tap-pay/card-management/component.js","client/pods/components/billing/tap-pay/card-management/template.js","client/pods/components/billing/tap-pay/card/component.js","client/pods/components/billing/tap-pay/card/template.js","client/pods/components/billing/topup-editor/component.js","client/pods/components/billing/topup-editor/template.js","client/pods/components/blogs/blogs-card/component.js","client/pods/components/blogs/blogs-card/template.js","client/pods/components/blogs/blogs-editor/component.js","client/pods/components/blogs/blogs-editor/template.js","client/pods/components/blogs/files/delete-files-gallery-uploader/component.js","client/pods/components/blogs/files/delete-files-gallery-uploader/template.js","client/pods/components/blogs/files/files-default-image/component.js","client/pods/components/blogs/files/files-default-image/template.js","client/pods/components/blogs/files/mixins/blogs-files.js","client/pods/components/blogs/panels-dash/component.js","client/pods/components/blogs/panels-dash/template.js","client/pods/components/blogs/panels-display/component.js","client/pods/components/blogs/panels-display/template.js","client/pods/components/blogs/panels-edit/component.js","client/pods/components/blogs/panels-edit/template.js","client/pods/components/blogs/panels-new/component.js","client/pods/components/blogs/panels-new/template.js","client/pods/components/blogs/search-bar/component.js","client/pods/components/blogs/search-bar/search-results/component.js","client/pods/components/blogs/search-bar/search-results/search-row/component.js","client/pods/components/blogs/search-bar/search-results/search-row/template.js","client/pods/components/blogs/search-bar/search-results/template.js","client/pods/components/blogs/search-bar/template.js","client/pods/components/blogs/search-filters/component.js","client/pods/components/blogs/search-filters/template.js","client/pods/components/blogs/search-results/component.js","client/pods/components/blogs/search-results/template.js","client/pods/components/blogs/tab-container/component.js","client/pods/components/blogs/tab-container/template.js","client/pods/components/blogs/table-view/detail-row/component.js","client/pods/components/blogs/table-view/detail-row/template.js","client/pods/components/bot/message-window-toggler/component.js","client/pods/components/bot/message-window-toggler/template.js","client/pods/components/bot/message-window/component.js","client/pods/components/bot/message-window/template.js","client/pods/components/bsp/virtual-account-editor/component.js","client/pods/components/bsp/virtual-account-editor/template.js","client/pods/components/calendar/calendar-day/component.js","client/pods/components/calendar/calendar-day/template.js","client/pods/components/calendar/calendar-month/component.js","client/pods/components/calendar/calendar-month/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/advanced-template/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/advanced-template/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-display/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-display/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-new/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-new/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-row/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-row/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-thumbnail/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-thumbnail/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor-flows/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor-flows/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-qty/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-qty/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-value/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-value/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/order-value/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/order-value/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-criteria/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-criteria/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-cummulative/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-cummulative/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-settings/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-settings/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/bulk-discount-conflicts/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/bulk-discount-conflicts/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rule-set/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rule-set/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rules-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rules-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-edit/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-edit/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-new/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-new/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/commission-base-cost-history-prices/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/commission-base-cost-history-prices/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/has-variants/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/has-variants/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set-with-choices/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set-with-choices/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/table-view/detail-row/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/table-view/detail-row/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/emails-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/emails-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/faqs-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/faqs-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/filters-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/filters-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/pages-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/pages-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/products-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/products-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/products-limits-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/products-limits-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/reward-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/reward-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/sales-limits-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/sales-limits-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/3rd-party-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/3rd-party-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/advanced-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/advanced-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/basic-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/basic-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/checkout-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/checkout-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/emails-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/emails-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/payments-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/payments-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/review-steps/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/review-steps/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/shipping-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/shipping-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/style-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/style-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/basic-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/basic-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/customizations-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/customizations-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/variants-detail/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/variants-detail/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/information-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/choice/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/choice/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/is-set-with-choices-detail/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/is-set-with-choices-detail/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/is-set-detail/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/is-set-detail/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/limits-editor-row/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/limits-editor-row/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/onsale-schedules/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/price-selector-dialog/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/price-selector-dialog/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/recurring-schedules-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/recurring-schedules-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/template-editor/component.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/template-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-item-editor/template.js","client/pods/components/channels/shop/campaigns/campaigns-report/component.js","client/pods/components/channels/shop/campaigns/campaigns-report/template.js","client/pods/components/channels/shop/campaigns/copy-link-btn/component.js","client/pods/components/channels/shop/campaigns/copy-link-btn/template.js","client/pods/components/channels/shop/campaigns/filters-advanced/component.js","client/pods/components/channels/shop/campaigns/filters-advanced/template.js","client/pods/components/channels/shop/campaigns/influencers/table-view/component.js","client/pods/components/channels/shop/campaigns/influencers/table-view/template.js","client/pods/components/channels/shop/campaigns/items/limit-qty-progress-bar-modal-trigger/component.js","client/pods/components/channels/shop/campaigns/items/limit-qty-progress-bar-modal-trigger/template.js","client/pods/components/channels/shop/campaigns/items/limit-qty-selector/component.js","client/pods/components/channels/shop/campaigns/items/limit-qty-selector/template.js","client/pods/components/channels/shop/campaigns/items/table-view/detail-limit-row/component.js","client/pods/components/channels/shop/campaigns/items/table-view/detail-limit-row/template.js","client/pods/components/channels/shop/campaigns/items/table-view/detail-row/component.js","client/pods/components/channels/shop/campaigns/items/table-view/detail-row/template.js","client/pods/components/channels/shop/campaigns/locations-editor/component.js","client/pods/components/channels/shop/campaigns/locations-editor/template.js","client/pods/components/channels/shop/campaigns/mixins/campaigns-list-by.js","client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-details-results/component.js","client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-details-results/template.js","client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-results/component.js","client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-results/template.js","client/pods/components/channels/shop/campaigns/page-import-btn/component.js","client/pods/components/channels/shop/campaigns/page-import-btn/template.js","client/pods/components/channels/shop/campaigns/panels-dash-linked/component.js","client/pods/components/channels/shop/campaigns/panels-dash-linked/template.js","client/pods/components/channels/shop/campaigns/panels-dash/component.js","client/pods/components/channels/shop/campaigns/panels-dash/template.js","client/pods/components/channels/shop/campaigns/panels-display/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-3rd-party/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-3rd-party/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/sub-panels-activity-doc/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/sub-panels-activity-doc/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-advanced-template/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-advanced-template/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-analytics/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-analytics/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-automations/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-automations/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-bulk-discounts/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-bulk-discounts/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-commissions/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-commissions/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-emails/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-emails/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-faqs/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-faqs/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns-bulk-edit/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns-bulk-edit/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-overview/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-overview/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-pages/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-pages/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products-limits/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products-limits/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-reward/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-reward/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-sales-limits/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-sales-limits/template.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-settings/component.js","client/pods/components/channels/shop/campaigns/panels-display/sub-panels-settings/template.js","client/pods/components/channels/shop/campaigns/panels-display/template.js","client/pods/components/channels/shop/campaigns/panels-edit/component.js","client/pods/components/channels/shop/campaigns/panels-edit/template.js","client/pods/components/channels/shop/campaigns/panels-new/component.js","client/pods/components/channels/shop/campaigns/panels-new/template.js","client/pods/components/channels/shop/campaigns/panels-schedule/component.js","client/pods/components/channels/shop/campaigns/panels-schedule/day-schedule/component.js","client/pods/components/channels/shop/campaigns/panels-schedule/day-schedule/template.js","client/pods/components/channels/shop/campaigns/panels-schedule/template.js","client/pods/components/channels/shop/campaigns/price-filter/component.js","client/pods/components/channels/shop/campaigns/price-filter/template.js","client/pods/components/channels/shop/campaigns/review-steps-editor/component.js","client/pods/components/channels/shop/campaigns/review-steps-editor/template.js","client/pods/components/channels/shop/campaigns/search-filters/component.js","client/pods/components/channels/shop/campaigns/search-filters/template.js","client/pods/components/channels/shop/campaigns/search-results/component.js","client/pods/components/channels/shop/campaigns/search-results/template.js","client/pods/components/channels/shop/campaigns/share-btn/component.js","client/pods/components/channels/shop/campaigns/share-btn/template.js","client/pods/components/channels/shop/campaigns/tab-container/component.js","client/pods/components/channels/shop/campaigns/tab-container/template.js","client/pods/components/channels/shop/campaigns/table-view/detail-row/linked/component.js","client/pods/components/channels/shop/campaigns/table-view/detail-row/linked/template.js","client/pods/components/channels/shop/campaigns/tracking-code/template.js","client/pods/components/channels/shop/delivery-date-options/delivery-date-options-editor/component.js","client/pods/components/channels/shop/delivery-date-options/delivery-date-options-editor/template.js","client/pods/components/channels/shop/delivery-date-options/info-editor/component.js","client/pods/components/channels/shop/delivery-date-options/info-editor/template.js","client/pods/components/channels/shop/delivery-date-options/pickup-date-options-editor/component.js","client/pods/components/channels/shop/delivery-date-options/pickup-date-options-editor/template.js","client/pods/components/channels/shop/items-by-payment-status-export-btn/component.js","client/pods/components/channels/shop/items-by-payment-status-export-btn/template.js","client/pods/components/channels/shop/items-export-btn/component.js","client/pods/components/channels/shop/items-export-btn/template.js","client/pods/components/channels/shop/items-import-btn/component.js","client/pods/components/channels/shop/items-import-btn/data-row/component.js","client/pods/components/channels/shop/items-import-btn/data-row/template.js","client/pods/components/channels/shop/items-import-btn/template.js","client/pods/components/channels/shop/items-limits-export-btn/component.js","client/pods/components/channels/shop/items-limits-export-btn/template.js","client/pods/components/channels/shop/items-limits-import-btn/component.js","client/pods/components/channels/shop/items-limits-import-btn/data-row/component.js","client/pods/components/channels/shop/items-limits-import-btn/data-row/template.js","client/pods/components/channels/shop/items-limits-import-btn/template.js","client/pods/components/channels/shop/items/item-card/component.js","client/pods/components/channels/shop/items/item-card/template.js","client/pods/components/channels/shop/items/item-page/component.js","client/pods/components/channels/shop/items/item-page/template.js","client/pods/components/channels/shop/items/item-price/component.js","client/pods/components/channels/shop/items/item-price/item-price-current/component.js","client/pods/components/channels/shop/items/item-price/item-price-current/template.js","client/pods/components/channels/shop/items/item-price/item-price-old/component.js","client/pods/components/channels/shop/items/item-price/item-price-old/template.js","client/pods/components/channels/shop/items/item-price/template.js","client/pods/components/channels/shop/items/item-shipping-zones/template.js","client/pods/components/channels/shop/items/search-bar/component.js","client/pods/components/channels/shop/items/search-bar/template.js","client/pods/components/channels/shop/items/search-results/links/component.js","client/pods/components/channels/shop/items/search-results/links/template.js","client/pods/components/channels/shop/linked-campaigns-status/component.js","client/pods/components/channels/shop/linked-campaigns-status/template.js","client/pods/components/channels/shop/promo-codes/panels-dash/component.js","client/pods/components/channels/shop/promo-codes/panels-dash/template.js","client/pods/components/channels/shop/promo-codes/panels-display/component.js","client/pods/components/channels/shop/promo-codes/panels-display/template.js","client/pods/components/channels/shop/promo-codes/panels-edit/component.js","client/pods/components/channels/shop/promo-codes/panels-edit/template.js","client/pods/components/channels/shop/promo-codes/panels-new/component.js","client/pods/components/channels/shop/promo-codes/panels-new/template.js","client/pods/components/channels/shop/promo-codes/promo-codes-editor/component.js","client/pods/components/channels/shop/promo-codes/promo-codes-editor/template.js","client/pods/components/channels/shop/promo-codes/search-filters/component.js","client/pods/components/channels/shop/promo-codes/search-filters/template.js","client/pods/components/channels/shop/promo-codes/search-results-item/component.js","client/pods/components/channels/shop/promo-codes/search-results-item/template.js","client/pods/components/channels/shop/promo-codes/tab-container/component.js","client/pods/components/channels/shop/promo-codes/tab-container/template.js","client/pods/components/channels/shop/promo-codes/table-view/detail-row/component.js","client/pods/components/channels/shop/promo-codes/table-view/detail-row/template.js","client/pods/components/channels/shop/qty-status/component.js","client/pods/components/channels/shop/qty-status/template.js","client/pods/components/channels/shop/rewards/panels-dash/component.js","client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/component.js","client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/rewards-recipients/component.js","client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/rewards-recipients/template.js","client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/template.js","client/pods/components/channels/shop/rewards/panels-dash/template.js","client/pods/components/channels/shop/rewards/panels-display/component.js","client/pods/components/channels/shop/rewards/panels-display/sub-panels-details/component.js","client/pods/components/channels/shop/rewards/panels-display/sub-panels-details/template.js","client/pods/components/channels/shop/rewards/panels-display/sub-panels-emails/component.js","client/pods/components/channels/shop/rewards/panels-display/sub-panels-emails/template.js","client/pods/components/channels/shop/rewards/panels-display/sub-panels-member-levels/component.js","client/pods/components/channels/shop/rewards/panels-display/sub-panels-member-levels/template.js","client/pods/components/channels/shop/rewards/panels-display/template.js","client/pods/components/channels/shop/rewards/panels-edit/component.js","client/pods/components/channels/shop/rewards/panels-edit/template.js","client/pods/components/channels/shop/rewards/panels-new/component.js","client/pods/components/channels/shop/rewards/panels-new/template.js","client/pods/components/channels/shop/rewards/rewards-editor/component.js","client/pods/components/channels/shop/rewards/rewards-editor/details-editor/component.js","client/pods/components/channels/shop/rewards/rewards-editor/details-editor/template.js","client/pods/components/channels/shop/rewards/rewards-editor/emails-editor/component.js","client/pods/components/channels/shop/rewards/rewards-editor/emails-editor/template.js","client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/component.js","client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/component.js","client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/reward-event-editor/component.js","client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/reward-event-editor/template.js","client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/template.js","client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/template.js","client/pods/components/channels/shop/rewards/rewards-editor/template.js","client/pods/components/channels/shop/rewards/search-filters/component.js","client/pods/components/channels/shop/rewards/search-filters/template.js","client/pods/components/channels/shop/rewards/search-results/component.js","client/pods/components/channels/shop/rewards/search-results/template.js","client/pods/components/channels/shop/rewards/tab-container/component.js","client/pods/components/channels/shop/rewards/tab-container/template.js","client/pods/components/channels/shop/rewards/table-view/detail-row/component.js","client/pods/components/channels/shop/rewards/table-view/detail-row/template.js","client/pods/components/channels/shop/shipping-zones/panels-dash/component.js","client/pods/components/channels/shop/shipping-zones/panels-dash/template.js","client/pods/components/channels/shop/shipping-zones/panels-display/component.js","client/pods/components/channels/shop/shipping-zones/panels-display/template.js","client/pods/components/channels/shop/shipping-zones/panels-edit/component.js","client/pods/components/channels/shop/shipping-zones/panels-edit/template.js","client/pods/components/channels/shop/shipping-zones/panels-new/component.js","client/pods/components/channels/shop/shipping-zones/panels-new/template.js","client/pods/components/channels/shop/shipping-zones/search-results/component.js","client/pods/components/channels/shop/shipping-zones/search-results/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/convenience-store-zones/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/convenience-store-zones/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/rule-editor/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/rule-editor/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/surcharge-editor/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/surcharge-editor/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/districts-row/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/districts-row/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/regions-row/component.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/regions-row/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/template.js","client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/template.js","client/pods/components/channels/shop/shipping-zones/tab-container/component.js","client/pods/components/channels/shop/shipping-zones/tab-container/template.js","client/pods/components/channels/shop/shipping-zones/table-view/detail-row/component.js","client/pods/components/channels/shop/shipping-zones/table-view/detail-row/detail-row-rates/template.js","client/pods/components/channels/shop/shipping-zones/table-view/detail-row/template.js","client/pods/components/channels/shop/shop-commissions-status/component.js","client/pods/components/channels/shop/shop-commissions-status/template.js","client/pods/components/channels/shop/shop-sales-persons/component.js","client/pods/components/channels/shop/shop-sales-persons/template.js","client/pods/components/channels/shop/shop-status/component.js","client/pods/components/channels/shop/shop-status/template.js","client/pods/components/color-picker/component.js","client/pods/components/color-picker/template.js","client/pods/components/color-preview/component.js","client/pods/components/color-preview/template.js","client/pods/components/color-themes/component.js","client/pods/components/color-themes/template.js","client/pods/components/color-themes/theme/component.js","client/pods/components/color-themes/theme/template.js","client/pods/components/comments/chat-container/component.js","client/pods/components/comments/chat-container/template.js","client/pods/components/comments/comments-manager/comments-container/component.js","client/pods/components/comments/comments-manager/comments-container/template.js","client/pods/components/comments/comments-manager/component.js","client/pods/components/comments/comments-manager/display-item/component.js","client/pods/components/comments/comments-manager/display-item/template.js","client/pods/components/comments/comments-manager/editor-container/component.js","client/pods/components/comments/comments-manager/editor-container/template.js","client/pods/components/comments/comments-manager/modal-btn/component.js","client/pods/components/comments/comments-manager/modal-btn/template.js","client/pods/components/comments/comments-manager/template.js","client/pods/components/comments/panels-display/component.js","client/pods/components/comments/panels-display/template.js","client/pods/components/comments/rules-sidebar/component.js","client/pods/components/comments/rules-sidebar/template.js","client/pods/components/comments/search-results-item/component.js","client/pods/components/comments/search-results-item/template.js","client/pods/components/comments/tab-container/component.js","client/pods/components/comments/tab-container/template.js","client/pods/components/components-group-stories/component.js","client/pods/components/components-group-stories/template.js","client/pods/components/contacts/bigordr-plan-editor/component.js","client/pods/components/contacts/bigordr-plan-editor/fields/component.js","client/pods/components/contacts/bigordr-plan-editor/fields/template.js","client/pods/components/contacts/bigordr-plan-editor/template.js","client/pods/components/contacts/contacts-editor/add-btn/component.js","client/pods/components/contacts/contacts-editor/add-btn/template.js","client/pods/components/contacts/contacts-editor/component.js","client/pods/components/contacts/contacts-editor/template.js","client/pods/components/contacts/contacts-info-accordian/component.js","client/pods/components/contacts/contacts-info-accordian/template.js","client/pods/components/contacts/departments/display-departments/component.js","client/pods/components/contacts/departments/display-departments/template.js","client/pods/components/contacts/departments/editor-department/component.js","client/pods/components/contacts/departments/editor-department/template.js","client/pods/components/contacts/details/associates/component.js","client/pods/components/contacts/details/associates/template.js","client/pods/components/contacts/details/display-details/component.js","client/pods/components/contacts/details/display-details/template.js","client/pods/components/contacts/details/editor-details/component.js","client/pods/components/contacts/details/editor-details/editor-address/component.js","client/pods/components/contacts/details/editor-details/editor-address/template.js","client/pods/components/contacts/details/editor-details/editor-email/component.js","client/pods/components/contacts/details/editor-details/editor-email/template.js","client/pods/components/contacts/details/editor-details/editor-note/component.js","client/pods/components/contacts/details/editor-details/editor-note/template.js","client/pods/components/contacts/details/editor-details/editor-phone/component.js","client/pods/components/contacts/details/editor-details/editor-phone/template.js","client/pods/components/contacts/details/editor-details/template.js","client/pods/components/contacts/export-btn/component.js","client/pods/components/contacts/export-btn/template.js","client/pods/components/contacts/export-contact-btn/component.js","client/pods/components/contacts/export-contact-btn/template.js","client/pods/components/contacts/filters-advanced/component.js","client/pods/components/contacts/filters-advanced/doc-totals/component.js","client/pods/components/contacts/filters-advanced/doc-totals/template.js","client/pods/components/contacts/filters-advanced/template.js","client/pods/components/contacts/filters-advanced/transaction/component.js","client/pods/components/contacts/filters-advanced/transaction/template.js","client/pods/components/contacts/groups/groups-editor/component.js","client/pods/components/contacts/groups/groups-editor/criteria-editor/by/reward/component.js","client/pods/components/contacts/groups/groups-editor/criteria-editor/by/reward/template.js","client/pods/components/contacts/groups/groups-editor/criteria-editor/by/shop/component.js","client/pods/components/contacts/groups/groups-editor/criteria-editor/by/shop/template.js","client/pods/components/contacts/groups/groups-editor/criteria-editor/component.js","client/pods/components/contacts/groups/groups-editor/criteria-editor/template.js","client/pods/components/contacts/groups/groups-editor/template.js","client/pods/components/contacts/groups/panels-dash/component.js","client/pods/components/contacts/groups/panels-dash/template.js","client/pods/components/contacts/groups/table-view/detail-row/component.js","client/pods/components/contacts/groups/table-view/detail-row/template.js","client/pods/components/contacts/icons/default-icon/component.js","client/pods/components/contacts/icons/default-icon/template.js","client/pods/components/contacts/icons/detail-icon/component.js","client/pods/components/contacts/icons/detail-icon/template.js","client/pods/components/contacts/panels-dash/component.js","client/pods/components/contacts/panels-dash/template.js","client/pods/components/contacts/panels-display/component.js","client/pods/components/contacts/panels-display/info-header/component.js","client/pods/components/contacts/panels-display/info-header/template.js","client/pods/components/contacts/panels-display/sub-panels-activity/component.js","client/pods/components/contacts/panels-display/sub-panels-activity/sub-panels-activity-doc/component.js","client/pods/components/contacts/panels-display/sub-panels-activity/sub-panels-activity-doc/template.js","client/pods/components/contacts/panels-display/sub-panels-activity/template.js","client/pods/components/contacts/panels-display/sub-panels-details/component.js","client/pods/components/contacts/panels-display/sub-panels-details/template.js","client/pods/components/contacts/panels-display/sub-panels-member-levels/adjust-member-level-dialog/template.js","client/pods/components/contacts/panels-display/sub-panels-member-levels/adjust-reward-dialog/component.js","client/pods/components/contacts/panels-display/sub-panels-member-levels/adjust-reward-dialog/template.js","client/pods/components/contacts/panels-display/sub-panels-member-levels/component.js","client/pods/components/contacts/panels-display/sub-panels-member-levels/template.js","client/pods/components/contacts/panels-display/sub-panels-statements/component.js","client/pods/components/contacts/panels-display/sub-panels-statements/template.js","client/pods/components/contacts/panels-display/template.js","client/pods/components/contacts/panels-duplicates/component.js","client/pods/components/contacts/panels-duplicates/row/component.js","client/pods/components/contacts/panels-duplicates/row/template.js","client/pods/components/contacts/panels-duplicates/template.js","client/pods/components/contacts/panels-edit/component.js","client/pods/components/contacts/panels-edit/template.js","client/pods/components/contacts/panels-new/component.js","client/pods/components/contacts/panels-new/template.js","client/pods/components/contacts/panels-report/component.js","client/pods/components/contacts/panels-report/template.js","client/pods/components/contacts/persons/display-persons/component.js","client/pods/components/contacts/persons/display-persons/template.js","client/pods/components/contacts/persons/editor-person/component.js","client/pods/components/contacts/persons/editor-person/template.js","client/pods/components/contacts/persons/pickup-location/component.js","client/pods/components/contacts/persons/pickup-location/editor/component.js","client/pods/components/contacts/persons/pickup-location/editor/template.js","client/pods/components/contacts/persons/pickup-location/template.js","client/pods/components/contacts/pickup/editor/component.js","client/pods/components/contacts/pickup/editor/template.js","client/pods/components/contacts/results/contact-details-results/component.js","client/pods/components/contacts/results/contact-details-results/template.js","client/pods/components/contacts/results/contact-persons-results/component.js","client/pods/components/contacts/results/contact-persons-results/template.js","client/pods/components/contacts/search-filters/component.js","client/pods/components/contacts/search-filters/template.js","client/pods/components/contacts/search-results-documents/component.js","client/pods/components/contacts/search-results-documents/template.js","client/pods/components/contacts/search-results/component.js","client/pods/components/contacts/search-results/template.js","client/pods/components/contacts/shortcuts/component.js","client/pods/components/contacts/shortcuts/template.js","client/pods/components/contacts/statement-aging/component.js","client/pods/components/contacts/statement-aging/template.js","client/pods/components/contacts/statement-details/component.js","client/pods/components/contacts/statement-details/statement-transactions/component.js","client/pods/components/contacts/statement-details/statement-transactions/template.js","client/pods/components/contacts/statement-details/statement-transactions/tx-cashin/component.js","client/pods/components/contacts/statement-details/statement-transactions/tx-cashin/template.js","client/pods/components/contacts/statement-details/statement-transactions/tx-cashout/component.js","client/pods/components/contacts/statement-details/statement-transactions/tx-cashout/template.js","client/pods/components/contacts/statement-details/statement-transactions/tx-commission/component.js","client/pods/components/contacts/statement-details/statement-transactions/tx-commission/template.js","client/pods/components/contacts/statement-details/statement-transactions/tx-details/component.js","client/pods/components/contacts/statement-details/statement-transactions/tx-details/template.js","client/pods/components/contacts/statement-details/statement-transactions/tx-invoices/component.js","client/pods/components/contacts/statement-details/statement-transactions/tx-invoices/template.js","client/pods/components/contacts/statement-details/statement-transactions/tx-returns/component.js","client/pods/components/contacts/statement-details/statement-transactions/tx-returns/template.js","client/pods/components/contacts/statement-details/template.js","client/pods/components/contacts/statement-print-with-documents/component.js","client/pods/components/contacts/statement-print-with-documents/template.js","client/pods/components/contacts/statement-print/component.js","client/pods/components/contacts/statement-print/template.js","client/pods/components/contacts/tab-container/component.js","client/pods/components/contacts/tab-container/template.js","client/pods/components/contacts/table-view/detail-row/component.js","client/pods/components/contacts/table-view/detail-row/template.js","client/pods/components/contacts/transporters-accounts-editor/component.js","client/pods/components/contacts/transporters-accounts-editor/template.js","client/pods/components/contacts/wizard/transporter/component.js","client/pods/components/contacts/wizard/transporter/template.js","client/pods/components/content-display/component.js","client/pods/components/content-display/template.js","client/pods/components/dispatch/bulk-split/component.js","client/pods/components/dispatch/bulk-split/template.js","client/pods/components/dispatch/dispatch-process-label/component.js","client/pods/components/dispatch/dispatch-process-label/template.js","client/pods/components/dispatch/export-btn/component.js","client/pods/components/dispatch/export-btn/template.js","client/pods/components/dispatch/export-excel-btn/component.js","client/pods/components/dispatch/export-excel-btn/template.js","client/pods/components/dispatch/export-report-btn/component.js","client/pods/components/dispatch/export-report-btn/template.js","client/pods/components/dispatch/import-btn/component.js","client/pods/components/dispatch/import-btn/import-data-rows/component.js","client/pods/components/dispatch/import-btn/import-data-rows/template.js","client/pods/components/dispatch/import-btn/import-dispatched/component.js","client/pods/components/dispatch/import-btn/import-dispatched/manual/component.js","client/pods/components/dispatch/import-btn/import-dispatched/manual/template.js","client/pods/components/dispatch/import-btn/import-dispatched/template.js","client/pods/components/dispatch/import-btn/import-paid/component.js","client/pods/components/dispatch/import-btn/import-paid/template.js","client/pods/components/dispatch/import-btn/template.js","client/pods/components/dispatch/panels-display/component.js","client/pods/components/dispatch/panels-display/delete-display-list-t-cat/component.js","client/pods/components/dispatch/panels-display/delete-display-list-t-cat/template.js","client/pods/components/dispatch/panels-display/display-doc-row/component.js","client/pods/components/dispatch/panels-display/display-doc-row/template.js","client/pods/components/dispatch/panels-display/display-list/component.js","client/pods/components/dispatch/panels-display/display-list/template.js","client/pods/components/dispatch/panels-display/list-summary/component.js","client/pods/components/dispatch/panels-display/list-summary/summary-item/component.js","client/pods/components/dispatch/panels-display/list-summary/summary-item/summary-item-derivation/component.js","client/pods/components/dispatch/panels-display/list-summary/summary-item/summary-item-derivation/template.js","client/pods/components/dispatch/panels-display/list-summary/summary-item/template.js","client/pods/components/dispatch/panels-display/list-summary/template.js","client/pods/components/dispatch/panels-display/print-item/component.js","client/pods/components/dispatch/panels-display/print-item/template.js","client/pods/components/dispatch/panels-display/template.js","client/pods/components/dispatch/panels-summary/component.js","client/pods/components/dispatch/panels-summary/template.js","client/pods/components/dispatch/pre-dispatch-modal/component.js","client/pods/components/dispatch/pre-dispatch-modal/template.js","client/pods/components/dispatch/print-options/component.js","client/pods/components/dispatch/print-options/delivery-notes/component.js","client/pods/components/dispatch/print-options/delivery-notes/template.js","client/pods/components/dispatch/print-options/hct-summary/component.js","client/pods/components/dispatch/print-options/hct-summary/template.js","client/pods/components/dispatch/print-options/hct-waybills/component.js","client/pods/components/dispatch/print-options/hct-waybills/template.js","client/pods/components/dispatch/print-options/picking-list/component.js","client/pods/components/dispatch/print-options/picking-list/template.js","client/pods/components/dispatch/print-options/print-batch-footer/component.js","client/pods/components/dispatch/print-options/print-batch-footer/template.js","client/pods/components/dispatch/print-options/print-batch-tab/component.js","client/pods/components/dispatch/print-options/print-batch-tab/template.js","client/pods/components/dispatch/print-options/print-dialog/component.js","client/pods/components/dispatch/print-options/print-dialog/template.js","client/pods/components/dispatch/print-options/seven-eleven-waybill-page/component.js","client/pods/components/dispatch/print-options/seven-eleven-waybill-page/template.js","client/pods/components/dispatch/print-options/seven-eleven-waybills/component.js","client/pods/components/dispatch/print-options/seven-eleven-waybills/template.js","client/pods/components/dispatch/print-options/t-cat-download/component.js","client/pods/components/dispatch/print-options/t-cat-download/template.js","client/pods/components/dispatch/print-options/template.js","client/pods/components/dispatch/processes-bar-container/component.js","client/pods/components/dispatch/processes-bar-container/processes-bar/component.js","client/pods/components/dispatch/processes-bar-container/processes-bar/template.js","client/pods/components/dispatch/processes-bar-container/template.js","client/pods/components/dispatch/processes-editor/component.js","client/pods/components/dispatch/processes-editor/template.js","client/pods/components/dispatch/processes-item-dispatched/component.js","client/pods/components/dispatch/processes-item-dispatched/template.js","client/pods/components/dispatch/processes-item-waybills-seven-eleven/component.js","client/pods/components/dispatch/processes-item-waybills-seven-eleven/last-milestone/component.js","client/pods/components/dispatch/processes-item-waybills-seven-eleven/last-milestone/template.js","client/pods/components/dispatch/processes-item-waybills-seven-eleven/template.js","client/pods/components/dispatch/processes-item/component.js","client/pods/components/dispatch/processes-item/template.js","client/pods/components/dispatch/search-filters/component.js","client/pods/components/dispatch/search-filters/template.js","client/pods/components/dispatch/sidebar-name/component.js","client/pods/components/dispatch/sidebar-name/template.js","client/pods/components/dispatch/tab-container/component.js","client/pods/components/dispatch/tab-container/template.js","client/pods/components/display-tags/display-tags-editor/component.js","client/pods/components/display-tags/display-tags-editor/template.js","client/pods/components/documentation/documentation-desc/component.js","client/pods/components/documentation/documentation-desc/template.js","client/pods/components/documentation/documentation-edit-modal/component.js","client/pods/components/documentation/documentation-edit-modal/template.js","client/pods/components/documentation/documentation-icon/component.js","client/pods/components/documentation/documentation-icon/template.js","client/pods/components/documentation/documentation/component.js","client/pods/components/documentation/documentation/template.js","client/pods/components/documentation/features-popup/component.js","client/pods/components/documentation/features-popup/template.js","client/pods/components/documentation/sidebar/component.js","client/pods/components/documentation/sidebar/template.js","client/pods/components/documentation/viewer/component.js","client/pods/components/documentation/viewer/template.js","client/pods/components/documents/activity-list-by-contact/component.js","client/pods/components/documents/activity-list-by-contact/template.js","client/pods/components/documents/activity-list-by-details/component.js","client/pods/components/documents/activity-list-by-details/template.js","client/pods/components/documents/activity-list/component.js","client/pods/components/documents/activity-list/template.js","client/pods/components/documents/batch/status/component.js","client/pods/components/documents/batch/status/template.js","client/pods/components/documents/btn-collect-payment-now/component.js","client/pods/components/documents/btn-collect-payment-now/template.js","client/pods/components/documents/btn-merge/component.js","client/pods/components/documents/btn-merge/template.js","client/pods/components/documents/btn-refund/btn-void-dialog/component.js","client/pods/components/documents/btn-refund/btn-void-dialog/template.js","client/pods/components/documents/btn-refund/component.js","client/pods/components/documents/btn-refund/template.js","client/pods/components/documents/btn-refund/workflow/component.js","client/pods/components/documents/btn-refund/workflow/template.js","client/pods/components/documents/btn-split/component.js","client/pods/components/documents/btn-split/template.js","client/pods/components/documents/btn-ungroup/component.js","client/pods/components/documents/btn-ungroup/template.js","client/pods/components/documents/bulk/insert-helper/component.js","client/pods/components/documents/bulk/insert-helper/template.js","client/pods/components/documents/copy-document-contents-btn/component.js","client/pods/components/documents/copy-document-contents-btn/template.js","client/pods/components/documents/docConfig.js","client/pods/components/documents/document-print/component.js","client/pods/components/documents/document-print/delivery-note-print-settings-menu/component.js","client/pods/components/documents/document-print/delivery-note-print-settings-menu/template.js","client/pods/components/documents/document-print/delivery-note-print-settings/component.js","client/pods/components/documents/document-print/delivery-note-print-settings/template.js","client/pods/components/documents/document-print/details-no-prices/component.js","client/pods/components/documents/document-print/details-no-prices/template.js","client/pods/components/documents/document-print/details-prices/component.js","client/pods/components/documents/document-print/details-prices/template.js","client/pods/components/documents/document-print/details-quotes/component.js","client/pods/components/documents/document-print/details-quotes/template.js","client/pods/components/documents/document-print/document-thermal-print/component.js","client/pods/components/documents/document-print/document-thermal-print/details-print/component.js","client/pods/components/documents/document-print/document-thermal-print/details-print/template.js","client/pods/components/documents/document-print/document-thermal-print/template.js","client/pods/components/documents/document-print/footer-collect-on-behalf/component.js","client/pods/components/documents/document-print/footer-collect-on-behalf/template.js","client/pods/components/documents/document-print/footer-notes/component.js","client/pods/components/documents/document-print/footer-notes/template.js","client/pods/components/documents/document-print/footer-purchases-orders/component.js","client/pods/components/documents/document-print/footer-purchases-orders/template.js","client/pods/components/documents/document-print/footer-purchases-signature/component.js","client/pods/components/documents/document-print/footer-purchases-signature/template.js","client/pods/components/documents/document-print/footer-purchases-terms/component.js","client/pods/components/documents/document-print/footer-purchases-terms/template.js","client/pods/components/documents/document-print/footer-sales-delivery-notes/component.js","client/pods/components/documents/document-print/footer-sales-delivery-notes/template.js","client/pods/components/documents/document-print/footer-sales-signature/component.js","client/pods/components/documents/document-print/footer-sales-signature/template.js","client/pods/components/documents/document-print/footer-sales-terms/component.js","client/pods/components/documents/document-print/footer-sales-terms/template.js","client/pods/components/documents/document-print/packing-list-simple/component.js","client/pods/components/documents/document-print/packing-list-simple/template.js","client/pods/components/documents/document-print/print-list/component.js","client/pods/components/documents/document-print/print-list/print-doc/component.js","client/pods/components/documents/document-print/print-list/print-doc/template.js","client/pods/components/documents/document-print/print-list/template.js","client/pods/components/documents/document-print/sub-header-references/component.js","client/pods/components/documents/document-print/sub-header-references/template.js","client/pods/components/documents/document-print/template.js","client/pods/components/documents/document-totals/component.js","client/pods/components/documents/document-totals/spend-rewards-dialog/component.js","client/pods/components/documents/document-totals/spend-rewards-dialog/template.js","client/pods/components/documents/document-totals/template.js","client/pods/components/documents/documents-selector/component.js","client/pods/components/documents/documents-selector/template.js","client/pods/components/documents/editor-main/component.js","client/pods/components/documents/editor-main/editor-btns-display/component.js","client/pods/components/documents/editor-main/editor-btns-display/template.js","client/pods/components/documents/editor-main/editor-btns-editing/component.js","client/pods/components/documents/editor-main/editor-btns-editing/template.js","client/pods/components/documents/editor-main/editor-custom-checkout-fields/component.js","client/pods/components/documents/editor-main/editor-custom-checkout-fields/template.js","client/pods/components/documents/editor-main/editor-details-additional/component.js","client/pods/components/documents/editor-main/editor-details-additional/template.js","client/pods/components/documents/editor-main/editor-details-discount-and-reward/component.js","client/pods/components/documents/editor-main/editor-details-discount-and-reward/template.js","client/pods/components/documents/editor-main/editor-details-line/component.js","client/pods/components/documents/editor-main/editor-details-line/template.js","client/pods/components/documents/editor-main/editor-details-supplier/component.js","client/pods/components/documents/editor-main/editor-details-supplier/template.js","client/pods/components/documents/editor-main/editor-details-th/component.js","client/pods/components/documents/editor-main/editor-details-th/template.js","client/pods/components/documents/editor-main/editor-details/component.js","client/pods/components/documents/editor-main/editor-details/template.js","client/pods/components/documents/editor-main/editor-info/component.js","client/pods/components/documents/editor-main/editor-info/template.js","client/pods/components/documents/editor-main/editor-inventory-notification/component.js","client/pods/components/documents/editor-main/editor-inventory-notification/editor-inventory-notification-detail/component.js","client/pods/components/documents/editor-main/editor-inventory-notification/editor-inventory-notification-detail/template.js","client/pods/components/documents/editor-main/editor-inventory-notification/template.js","client/pods/components/documents/editor-main/template.js","client/pods/components/documents/filters-advanced/component.js","client/pods/components/documents/filters-advanced/template.js","client/pods/components/documents/links-conflict/component.js","client/pods/components/documents/links-conflict/discount-conflict/component.js","client/pods/components/documents/links-conflict/discount-conflict/template.js","client/pods/components/documents/links-conflict/generic-conflict/component.js","client/pods/components/documents/links-conflict/generic-conflict/template.js","client/pods/components/documents/links-conflict/notes-conflict/component.js","client/pods/components/documents/links-conflict/notes-conflict/template.js","client/pods/components/documents/links-conflict/payment-due-conflict/component.js","client/pods/components/documents/links-conflict/payment-due-conflict/template.js","client/pods/components/documents/links-conflict/payment-method-conflict/component.js","client/pods/components/documents/links-conflict/payment-method-conflict/template.js","client/pods/components/documents/links-conflict/shop-conflict/component.js","client/pods/components/documents/links-conflict/shop-conflict/template.js","client/pods/components/documents/links-conflict/template.js","client/pods/components/documents/links-conflict/transporter-conflict/component.js","client/pods/components/documents/links-conflict/transporter-conflict/template.js","client/pods/components/documents/links-modal/component.js","client/pods/components/documents/links-modal/links-modal-details/component.js","client/pods/components/documents/links-modal/links-modal-details/template.js","client/pods/components/documents/links-modal/template.js","client/pods/components/documents/links-results/component.js","client/pods/components/documents/links-results/template.js","client/pods/components/documents/mixins/details.js","client/pods/components/documents/mixins/pre-submit.js","client/pods/components/documents/panel-dash/component.js","client/pods/components/documents/panel-dash/template.js","client/pods/components/documents/panel-display/component.js","client/pods/components/documents/panel-display/template.js","client/pods/components/documents/panel-edit/component.js","client/pods/components/documents/panel-edit/template.js","client/pods/components/documents/panel-merge/component.js","client/pods/components/documents/panel-merge/template.js","client/pods/components/documents/panel-new/component.js","client/pods/components/documents/panel-new/template.js","client/pods/components/documents/panel-refund/component.js","client/pods/components/documents/panel-refund/template.js","client/pods/components/documents/panel-split/component.js","client/pods/components/documents/panel-split/template.js","client/pods/components/documents/payments-status-tag/component.js","client/pods/components/documents/payments-status-tag/template.js","client/pods/components/documents/pending/filters-advanced/component.js","client/pods/components/documents/pending/filters-advanced/template.js","client/pods/components/documents/pending/panel-display-by-orders/component.js","client/pods/components/documents/pending/panel-display-by-orders/table-view/component.js","client/pods/components/documents/pending/panel-display-by-orders/table-view/detail-row/component.js","client/pods/components/documents/pending/panel-display-by-orders/table-view/detail-row/template.js","client/pods/components/documents/pending/panel-display-by-orders/table-view/template.js","client/pods/components/documents/pending/panel-display-by-orders/template.js","client/pods/components/documents/pending/panel-display-by-products/component.js","client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/component.js","client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/detail-row/component.js","client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/detail-row/template.js","client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/template.js","client/pods/components/documents/pending/panel-display-by-products/orders/table-view/component.js","client/pods/components/documents/pending/panel-display-by-products/orders/table-view/detail-row/component.js","client/pods/components/documents/pending/panel-display-by-products/orders/table-view/detail-row/template.js","client/pods/components/documents/pending/panel-display-by-products/orders/table-view/template.js","client/pods/components/documents/pending/panel-display-by-products/template.js","client/pods/components/documents/pending/tab-container/component.js","client/pods/components/documents/pending/tab-container/template.js","client/pods/components/documents/pos/barcode-scanner/component.js","client/pods/components/documents/pos/barcode-scanner/template.js","client/pods/components/documents/pos/product/card/component.js","client/pods/components/documents/pos/product/card/template.js","client/pods/components/documents/pos/profiles-editor/component.js","client/pods/components/documents/pos/profiles-editor/template.js","client/pods/components/documents/pos/profiles-selector/component.js","client/pods/components/documents/pos/profiles-selector/template.js","client/pods/components/documents/pos/profiles-status/component.js","client/pods/components/documents/pos/profiles-status/template.js","client/pods/components/documents/pos/view/cart-detail/component.js","client/pods/components/documents/pos/view/cart-detail/template.js","client/pods/components/documents/pos/view/cart-details/component.js","client/pods/components/documents/pos/view/cart-details/template.js","client/pods/components/documents/pos/view/checkout-details/component.js","client/pods/components/documents/pos/view/checkout-details/template.js","client/pods/components/documents/pos/view/component.js","client/pods/components/documents/pos/view/content/component.js","client/pods/components/documents/pos/view/content/template.js","client/pods/components/documents/pos/view/details/component.js","client/pods/components/documents/pos/view/details/template.js","client/pods/components/documents/pos/view/header/component.js","client/pods/components/documents/pos/view/header/template.js","client/pods/components/documents/pos/view/tax-number/component.js","client/pods/components/documents/pos/view/tax-number/template.js","client/pods/components/documents/pos/view/template.js","client/pods/components/documents/purchases/consignments-returns/print-btns/component.js","client/pods/components/documents/purchases/consignments-returns/print-btns/template.js","client/pods/components/documents/purchases/consignments/overview-container/component.js","client/pods/components/documents/purchases/consignments/overview-container/template.js","client/pods/components/documents/purchases/consignments/print-btns/component.js","client/pods/components/documents/purchases/consignments/print-btns/template.js","client/pods/components/documents/purchases/invoices/print-btns/component.js","client/pods/components/documents/purchases/invoices/print-btns/template.js","client/pods/components/documents/purchases/orders/print-btns/component.js","client/pods/components/documents/purchases/orders/print-btns/template.js","client/pods/components/documents/purchases/quotes/print-btns/component.js","client/pods/components/documents/purchases/quotes/print-btns/template.js","client/pods/components/documents/purchases/returns/print-btns/component.js","client/pods/components/documents/purchases/returns/print-btns/template.js","client/pods/components/documents/sales/consignments-returns/print-btns/component.js","client/pods/components/documents/sales/consignments-returns/print-btns/template.js","client/pods/components/documents/sales/consignments/overview-container/component.js","client/pods/components/documents/sales/consignments/overview-container/template.js","client/pods/components/documents/sales/consignments/print-btns/component.js","client/pods/components/documents/sales/consignments/print-btns/template.js","client/pods/components/documents/sales/invoices/print-btns/component.js","client/pods/components/documents/sales/invoices/print-btns/template.js","client/pods/components/documents/sales/orders/print-btns/component.js","client/pods/components/documents/sales/orders/print-btns/template.js","client/pods/components/documents/sales/quotes/print-btns/component.js","client/pods/components/documents/sales/quotes/print-btns/template.js","client/pods/components/documents/sales/returns/print-btns/component.js","client/pods/components/documents/sales/returns/print-btns/template.js","client/pods/components/documents/search-results-documents/component.js","client/pods/components/documents/search-results-documents/template.js","client/pods/components/documents/search-results/component.js","client/pods/components/documents/search-results/template.js","client/pods/components/documents/status-tag/component.js","client/pods/components/documents/status-tag/template.js","client/pods/components/documents/tab-container/component.js","client/pods/components/documents/tab-container/template.js","client/pods/components/documents/table-view/doc-row/component.js","client/pods/components/documents/table-view/doc-row/detail-row/component.js","client/pods/components/documents/table-view/doc-row/detail-row/template.js","client/pods/components/documents/table-view/doc-row/info-row/component.js","client/pods/components/documents/table-view/doc-row/info-row/template.js","client/pods/components/documents/table-view/doc-row/related-docs/component.js","client/pods/components/documents/table-view/doc-row/related-docs/template.js","client/pods/components/documents/table-view/doc-row/template.js","client/pods/components/documents/terms-editor/component.js","client/pods/components/documents/terms-editor/template.js","client/pods/components/documents/transactions-list-by-details/component.js","client/pods/components/documents/transactions-list-by-details/template.js","client/pods/components/elements/accordian-btn/component.js","client/pods/components/elements/accordian-btn/template.js","client/pods/components/elements/accordian-container/component.js","client/pods/components/elements/accordian-container/template.js","client/pods/components/elements/accordian-dialog/component.js","client/pods/components/elements/accordian-dialog/template.js","client/pods/components/elements/btn-back/component.js","client/pods/components/elements/btn-back/template.js","client/pods/components/elements/btn-cancel/component.js","client/pods/components/elements/btn-cancel/template.js","client/pods/components/elements/btn-delete/component.js","client/pods/components/elements/btn-delete/template.js","client/pods/components/elements/btn-edit/component.js","client/pods/components/elements/btn-edit/template.js","client/pods/components/elements/btn-next/component.js","client/pods/components/elements/btn-next/template.js","client/pods/components/elements/btn-prev/component.js","client/pods/components/elements/btn-prev/template.js","client/pods/components/elements/btn-save/component.js","client/pods/components/elements/btn-save/template.js","client/pods/components/elements/btns-prev-next/component.js","client/pods/components/elements/btns-prev-next/template.js","client/pods/components/elements/carousel/component.js","client/pods/components/elements/carousel/template.js","client/pods/components/elements/color-picker/component.js","client/pods/components/elements/color-picker/template.js","client/pods/components/elements/date-input/component.js","client/pods/components/elements/date-input/template.js","client/pods/components/elements/date-multiple-picker/component.js","client/pods/components/elements/date-multiple-picker/template.js","client/pods/components/elements/date-picker/component.js","client/pods/components/elements/date-picker/template.js","client/pods/components/elements/element-btn-icon/component.js","client/pods/components/elements/element-btn-icon/template.js","client/pods/components/elements/element-btn-more/component.js","client/pods/components/elements/element-btn-more/template.js","client/pods/components/elements/element-btn-with-modal-dialog/component.js","client/pods/components/elements/element-btn-with-modal-dialog/custom-label/component.js","client/pods/components/elements/element-btn-with-modal-dialog/custom-label/template.js","client/pods/components/elements/element-btn-with-modal-dialog/template.js","client/pods/components/elements/element-btn/component.js","client/pods/components/elements/element-btn/template.js","client/pods/components/elements/element-checkbox/component.js","client/pods/components/elements/element-checkbox/template.js","client/pods/components/elements/element-dropdown-btn/component.js","client/pods/components/elements/element-dropdown-btn/template.js","client/pods/components/elements/element-icon/component.js","client/pods/components/elements/element-icon/template.js","client/pods/components/elements/element-input/component.js","client/pods/components/elements/element-input/template.js","client/pods/components/elements/element-inputfile/component.js","client/pods/components/elements/element-inputfile/template.js","client/pods/components/elements/element-inputpvt/component.js","client/pods/components/elements/element-inputpvt/template.js","client/pods/components/elements/element-label-dropdown/component.js","client/pods/components/elements/element-label-dropdown/template.js","client/pods/components/elements/element-label/component.js","client/pods/components/elements/element-label/template.js","client/pods/components/elements/element-pushbtn/component.js","client/pods/components/elements/element-pushbtn/template.js","client/pods/components/elements/element-select/component.js","client/pods/components/elements/element-select/select-option/component.js","client/pods/components/elements/element-select/select-option/template.js","client/pods/components/elements/element-select/template.js","client/pods/components/elements/element-textarea/component.js","client/pods/components/elements/element-textarea/template.js","client/pods/components/elements/element-textareapvt/component.js","client/pods/components/elements/element-textareapvt/template.js","client/pods/components/elements/element-toggle-btn/component.js","client/pods/components/elements/element-toggle-btn/template.js","client/pods/components/elements/element-toggle-wrapper/component.js","client/pods/components/elements/element-toggle-wrapper/template.js","client/pods/components/elements/element-toggler/component.js","client/pods/components/elements/element-toggler/template.js","client/pods/components/elements/error-message/component.js","client/pods/components/elements/error-message/template.js","client/pods/components/elements/error-wrapper/template.js","client/pods/components/elements/info-card/component.js","client/pods/components/elements/info-card/template.js","client/pods/components/elements/mixins/has-date-picker.js","client/pods/components/elements/print-btn/component.js","client/pods/components/elements/print-btn/template.js","client/pods/components/elements/print-content-container/component.js","client/pods/components/elements/print-content-container/print-content/component.js","client/pods/components/elements/print-content-container/print-content/template.js","client/pods/components/elements/print-content-container/template.js","client/pods/components/elements/screen-overlay/component.js","client/pods/components/elements/screen-overlay/template.js","client/pods/components/elements/slider/component.js","client/pods/components/elements/slider/template.js","client/pods/components/elements/status-badge/component.js","client/pods/components/elements/status-badge/template.js","client/pods/components/elements/status-tag/component.js","client/pods/components/elements/status-tag/template.js","client/pods/components/elements/steps-bar/component.js","client/pods/components/elements/steps-bar/step-node/component.js","client/pods/components/elements/steps-bar/step-node/template.js","client/pods/components/elements/steps-bar/template.js","client/pods/components/elements/stories-modal-dialog/component.js","client/pods/components/elements/stories-modal-dialog/template.js","client/pods/components/elements/tag-btn/component.js","client/pods/components/elements/tag-btn/template.js","client/pods/components/emails/campaigns/campaigns-editor/component.js","client/pods/components/emails/campaigns/campaigns-editor/template.js","client/pods/components/emails/campaigns/panels-activity/component.js","client/pods/components/emails/campaigns/panels-activity/template.js","client/pods/components/emails/campaigns/panels-display/component.js","client/pods/components/emails/campaigns/panels-display/template.js","client/pods/components/emails/campaigns/panels-edit/component.js","client/pods/components/emails/campaigns/panels-edit/template.js","client/pods/components/emails/campaigns/panels-new/component.js","client/pods/components/emails/campaigns/panels-new/template.js","client/pods/components/emails/campaigns/send-modal-btn/component.js","client/pods/components/emails/campaigns/send-modal-btn/template.js","client/pods/components/emails/campaigns/tab-container/component.js","client/pods/components/emails/campaigns/tab-container/template.js","client/pods/components/emails/campaigns/table-view/detail-row/component.js","client/pods/components/emails/campaigns/table-view/detail-row/template.js","client/pods/components/emails/dispatch-batch/component.js","client/pods/components/emails/dispatch-batch/emails-row/template.js","client/pods/components/emails/dispatch-batch/template.js","client/pods/components/emails/email-editor/component.js","client/pods/components/emails/email-editor/template.js","client/pods/components/emails/member-level/component.js","client/pods/components/emails/member-level/emails-row/template.js","client/pods/components/emails/member-level/template.js","client/pods/components/emails/mixins/emails-list-by.js","client/pods/components/emails/panels-activity/component.js","client/pods/components/emails/panels-activity/template.js","client/pods/components/emails/panels-scheduled/component.js","client/pods/components/emails/panels-scheduled/template.js","client/pods/components/emails/search-filters/component.js","client/pods/components/emails/search-filters/template.js","client/pods/components/emails/status-tags/component.js","client/pods/components/emails/status-tags/status-tag/component.js","client/pods/components/emails/status-tags/status-tag/template.js","client/pods/components/emails/status-tags/template.js","client/pods/components/emails/tab-container/component.js","client/pods/components/emails/tab-container/template.js","client/pods/components/emails/table-view/detail-row/component.js","client/pods/components/emails/table-view/detail-row/template.js","client/pods/components/export/worksheet/editor/component.js","client/pods/components/export/worksheet/editor/customworksheet-nested/component.js","client/pods/components/export/worksheet/editor/customworksheet-nested/customworksheet-item/component.js","client/pods/components/export/worksheet/editor/customworksheet-nested/customworksheet-item/template.js","client/pods/components/export/worksheet/editor/customworksheet-nested/template.js","client/pods/components/export/worksheet/editor/template.js","client/pods/components/extensions/apps/tw/e-invoices/blank-upload-status/component.js","client/pods/components/extensions/apps/tw/e-invoices/blank-upload-status/template.js","client/pods/components/extensions/apps/tw/e-invoices/current-status/component.js","client/pods/components/extensions/apps/tw/e-invoices/current-status/template.js","client/pods/components/extensions/apps/tw/e-invoices/export-excel-btn/component.js","client/pods/components/extensions/apps/tw/e-invoices/export-excel-btn/template.js","client/pods/components/extensions/apps/tw/e-invoices/invoice-editor/component.js","client/pods/components/extensions/apps/tw/e-invoices/invoice-editor/template.js","client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices-cancel.js","client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices-printer.js","client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/component.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity-by-documents/component.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity-by-documents/template.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity/component.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity/template.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/component.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/template.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/component.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/template.js","client/pods/components/extensions/apps/tw/e-invoices/panels-display/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/display/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/display/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/edit-btn/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/edit-btn/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/results/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/cancel-btn/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/cancel-btn/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/invoice-display/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/invoice-display/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-display/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-display/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-management/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-management/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-modal-btn/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-modal-btn/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/print-btn/component.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/print-btn/template.js","client/pods/components/extensions/apps/tw/e-invoices/print-manager/template.js","client/pods/components/extensions/apps/tw/e-invoices/search-filters/component.js","client/pods/components/extensions/apps/tw/e-invoices/search-filters/template.js","client/pods/components/extensions/apps/tw/e-invoices/tab-container/component.js","client/pods/components/extensions/apps/tw/e-invoices/tab-container/template.js","client/pods/components/extensions/apps/tw/e-invoices/table-view/detail-row/component.js","client/pods/components/extensions/apps/tw/e-invoices/table-view/detail-row/template.js","client/pods/components/extensions/apps/tw/e-invoices/tax-number-input/component.js","client/pods/components/extensions/apps/tw/e-invoices/tax-number-input/template.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/blanks-uploader/component.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/blanks-uploader/template.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/component.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/component.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/blanks/component.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/blanks/template.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/component.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/template.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/template.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/printers/component.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/printers/template.js","client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/template.js","client/pods/components/extensions/apps/tw/hct/create-contact/component.js","client/pods/components/extensions/apps/tw/hct/create-contact/template.js","client/pods/components/extensions/apps/tw/hct/credentials/component.js","client/pods/components/extensions/apps/tw/hct/credentials/template.js","client/pods/components/extensions/apps/tw/hct/export-btn/component.js","client/pods/components/extensions/apps/tw/hct/export-btn/template.js","client/pods/components/extensions/apps/tw/hct/sender-details/component.js","client/pods/components/extensions/apps/tw/hct/sender-details/template.js","client/pods/components/extensions/apps/tw/hct/sender-list-btn/component.js","client/pods/components/extensions/apps/tw/hct/sender-list-btn/template.js","client/pods/components/extensions/apps/tw/hct/settings-editor/component.js","client/pods/components/extensions/apps/tw/hct/settings-editor/template.js","client/pods/components/extensions/apps/tw/hct/settings/component.js","client/pods/components/extensions/apps/tw/hct/settings/template.js","client/pods/components/extensions/apps/tw/invoices/invoices-display/component.js","client/pods/components/extensions/apps/tw/invoices/invoices-display/template.js","client/pods/components/extensions/apps/tw/invoices/invoices-editor/component.js","client/pods/components/extensions/apps/tw/invoices/invoices-editor/template.js","client/pods/components/extensions/apps/tw/invoices/mixins/invoices-cancel.js","client/pods/components/extensions/apps/tw/invoices/mixins/invoices-printer.js","client/pods/components/extensions/apps/tw/invoices/mixins/invoices.js","client/pods/components/extensions/apps/tw/invoices/panels-display/component.js","client/pods/components/extensions/apps/tw/invoices/panels-display/sub/display-item/component.js","client/pods/components/extensions/apps/tw/invoices/panels-display/sub/display-item/template.js","client/pods/components/extensions/apps/tw/invoices/panels-display/sub/editor-item/component.js","client/pods/components/extensions/apps/tw/invoices/panels-display/sub/editor-item/template.js","client/pods/components/extensions/apps/tw/invoices/panels-display/template.js","client/pods/components/extensions/apps/tw/invoices/panels-summary/component.js","client/pods/components/extensions/apps/tw/invoices/panels-summary/print-report/component.js","client/pods/components/extensions/apps/tw/invoices/panels-summary/print-report/template.js","client/pods/components/extensions/apps/tw/invoices/panels-summary/template.js","client/pods/components/extensions/apps/tw/invoices/print-all-btn/component.js","client/pods/components/extensions/apps/tw/invoices/print-all-btn/template.js","client/pods/components/extensions/apps/tw/invoices/print-btn/component.js","client/pods/components/extensions/apps/tw/invoices/print-btn/template.js","client/pods/components/extensions/apps/tw/invoices/print-dialog/component.js","client/pods/components/extensions/apps/tw/invoices/print-dialog/template.js","client/pods/components/extensions/apps/tw/invoices/print-manager/component.js","client/pods/components/extensions/apps/tw/invoices/print-manager/template.js","client/pods/components/extensions/apps/tw/invoices/tab-container/component.js","client/pods/components/extensions/apps/tw/invoices/tab-container/template.js","client/pods/components/extensions/apps/tw/kerry/create-contact/component.js","client/pods/components/extensions/apps/tw/kerry/create-contact/template.js","client/pods/components/extensions/apps/tw/kerry/settings-editor/component.js","client/pods/components/extensions/apps/tw/kerry/settings-editor/template.js","client/pods/components/extensions/apps/tw/payuni-seven-eleven/credentials/component.js","client/pods/components/extensions/apps/tw/payuni-seven-eleven/credentials/template.js","client/pods/components/extensions/apps/tw/seven-eleven/accounts-display/component.js","client/pods/components/extensions/apps/tw/seven-eleven/accounts-display/template.js","client/pods/components/extensions/apps/tw/seven-eleven/accounts-editor/component.js","client/pods/components/extensions/apps/tw/seven-eleven/accounts-editor/template.js","client/pods/components/extensions/apps/tw/seven-eleven/create-contact/component.js","client/pods/components/extensions/apps/tw/seven-eleven/create-contact/template.js","client/pods/components/extensions/apps/tw/seven-eleven/credentials/component.js","client/pods/components/extensions/apps/tw/seven-eleven/credentials/template.js","client/pods/components/extensions/apps/tw/seven-eleven/print-item-meta/component.js","client/pods/components/extensions/apps/tw/seven-eleven/print-item-meta/template.js","client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/additional-info/component.js","client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/additional-info/template.js","client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/component.js","client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/template.js","client/pods/components/extensions/apps/tw/seven-eleven/sender-details/component.js","client/pods/components/extensions/apps/tw/seven-eleven/sender-details/template.js","client/pods/components/extensions/apps/tw/seven-eleven/settings-editor/component.js","client/pods/components/extensions/apps/tw/seven-eleven/settings-editor/template.js","client/pods/components/extensions/apps/tw/t-cat/create-contact/component.js","client/pods/components/extensions/apps/tw/t-cat/create-contact/template.js","client/pods/components/extensions/apps/tw/t-cat/credentials/component.js","client/pods/components/extensions/apps/tw/t-cat/credentials/template.js","client/pods/components/extensions/apps/tw/t-cat/sender-details/component.js","client/pods/components/extensions/apps/tw/t-cat/sender-details/extra/component.js","client/pods/components/extensions/apps/tw/t-cat/sender-details/extra/template.js","client/pods/components/extensions/apps/tw/t-cat/sender-details/template.js","client/pods/components/extensions/apps/tw/t-cat/sender-list-btn/component.js","client/pods/components/extensions/apps/tw/t-cat/sender-list-btn/template.js","client/pods/components/extensions/apps/tw/t-cat/settings-editor/component.js","client/pods/components/extensions/apps/tw/t-cat/settings-editor/template.js","client/pods/components/extensions/apps/tw/t-cat/settings/component.js","client/pods/components/extensions/apps/tw/t-cat/settings/template.js","client/pods/components/facebook/facebook-login/component.js","client/pods/components/facebook/facebook-login/template.js","client/pods/components/facebook/facebook-pages-id/component.js","client/pods/components/facebook/facebook-pages-id/template.js","client/pods/components/facebook/pixel-editor/component.js","client/pods/components/facebook/pixel-editor/template.js","client/pods/components/faqs/component.js","client/pods/components/faqs/faqs-editor/component.js","client/pods/components/faqs/faqs-editor/template.js","client/pods/components/faqs/table-view/faqs-row/component.js","client/pods/components/faqs/table-view/faqs-row/template.js","client/pods/components/faqs/template.js","client/pods/components/files-manager/component.js","client/pods/components/files-manager/finder/component.js","client/pods/components/files-manager/finder/image/component.js","client/pods/components/files-manager/finder/image/template.js","client/pods/components/files-manager/finder/template.js","client/pods/components/files-manager/template.js","client/pods/components/files/files-browser-modal/component.js","client/pods/components/files/files-browser-modal/template.js","client/pods/components/files/files-browser/component.js","client/pods/components/files/files-browser/item/component.js","client/pods/components/files/files-browser/item/template.js","client/pods/components/files/files-browser/template.js","client/pods/components/files/files-fetcher/component.js","client/pods/components/files/files-fetcher/template.js","client/pods/components/files/files-gallery-row/component.js","client/pods/components/files/files-gallery-row/gallery-item/component.js","client/pods/components/files/files-gallery-row/gallery-item/template.js","client/pods/components/files/files-gallery-row/template.js","client/pods/components/files/files-gallery/component.js","client/pods/components/files/files-gallery/gallery-item-modal/component.js","client/pods/components/files/files-gallery/gallery-item-modal/template.js","client/pods/components/files/files-gallery/gallery-item/component.js","client/pods/components/files/files-gallery/gallery-item/template.js","client/pods/components/files/files-gallery/template.js","client/pods/components/files/files-uploader/component.js","client/pods/components/files/files-uploader/template.js","client/pods/components/files/image-item/component.js","client/pods/components/files/image-item/template.js","client/pods/components/files/images-uploader/component.js","client/pods/components/files/images-uploader/template.js","client/pods/components/files/import-btn/component.js","client/pods/components/files/import-btn/template.js","client/pods/components/files/search-bar/component.js","client/pods/components/files/search-bar/template.js","client/pods/components/files/uploadcare-widget/component.js","client/pods/components/files/uploadcare-widget/template.js","client/pods/components/filters/save-btn/component.js","client/pods/components/filters/save-btn/template.js","client/pods/components/flows/flow-payload-editor/component.js","client/pods/components/flows/flow-payload-editor/template.js","client/pods/components/flows/flows-editor/component.js","client/pods/components/flows/flows-editor/data-display/component.js","client/pods/components/flows/flows-editor/data-display/template.js","client/pods/components/flows/flows-editor/main-editor/component.js","client/pods/components/flows/flows-editor/main-editor/template.js","client/pods/components/flows/flows-editor/steps-editor/actions-editor/component.js","client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/component.js","client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/table-view/detail-row/component.js","client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/table-view/detail-row/template.js","client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/template.js","client/pods/components/flows/flows-editor/steps-editor/actions-editor/generate-promo-code/component.js","client/pods/components/flows/flows-editor/steps-editor/actions-editor/generate-promo-code/template.js","client/pods/components/flows/flows-editor/steps-editor/actions-editor/template.js","client/pods/components/flows/flows-editor/steps-editor/component.js","client/pods/components/flows/flows-editor/steps-editor/reply-choices/choice-editor/component.js","client/pods/components/flows/flows-editor/steps-editor/reply-choices/choice-editor/template.js","client/pods/components/flows/flows-editor/steps-editor/reply-choices/component.js","client/pods/components/flows/flows-editor/steps-editor/reply-choices/template.js","client/pods/components/flows/flows-editor/steps-editor/template.js","client/pods/components/flows/flows-editor/template.js","client/pods/components/flows/panels-dash/component.js","client/pods/components/flows/panels-dash/template.js","client/pods/components/flows/panels-display/component.js","client/pods/components/flows/panels-display/template.js","client/pods/components/flows/panels-edit/component.js","client/pods/components/flows/panels-edit/template.js","client/pods/components/flows/panels-new/component.js","client/pods/components/flows/panels-new/template.js","client/pods/components/flows/search-results-item/component.js","client/pods/components/flows/search-results-item/template.js","client/pods/components/flows/tab-container/component.js","client/pods/components/flows/tab-container/template.js","client/pods/components/flows/table-view/data-detail-row/component.js","client/pods/components/flows/table-view/data-detail-row/template.js","client/pods/components/flows/table-view/detail-row/component.js","client/pods/components/flows/table-view/detail-row/template.js","client/pods/components/forms/form-cell/component.js","client/pods/components/forms/form-cell/template.js","client/pods/components/forms/form-column/component.js","client/pods/components/forms/form-column/template.js","client/pods/components/forms/form-container/component.js","client/pods/components/forms/form-container/template.js","client/pods/components/forms/form-divider/component.js","client/pods/components/forms/form-divider/template.js","client/pods/components/forms/form-entity/component.js","client/pods/components/forms/form-entity/template.js","client/pods/components/forms/form-group/component.js","client/pods/components/forms/form-group/template.js","client/pods/components/forms/form-input-row/component.js","client/pods/components/forms/form-input-row/template.js","client/pods/components/forms/form-input/component.js","client/pods/components/forms/form-input/template.js","client/pods/components/forms/form-label/component.js","client/pods/components/forms/form-label/template.js","client/pods/components/forms/form-row/component.js","client/pods/components/forms/form-row/template.js","client/pods/components/forms/form-section/component.js","client/pods/components/forms/form-section/template.js","client/pods/components/forms/form-sub-group/component.js","client/pods/components/forms/form-sub-group/template.js","client/pods/components/forms/form-sub-section/component.js","client/pods/components/forms/form-sub-section/template.js","client/pods/components/forms/form-table/component.js","client/pods/components/forms/form-table/template.js","client/pods/components/forms/form-title/component.js","client/pods/components/forms/form-title/template.js","client/pods/components/forms/grid-container/component.js","client/pods/components/forms/grid-container/template.js","client/pods/components/forms/grid-row/component.js","client/pods/components/forms/grid-row/template.js","client/pods/components/forms/table-row/component.js","client/pods/components/forms/table-row/template.js","client/pods/components/froala-editor/component.js","client/pods/components/froala/component.js","client/pods/components/froala/erp-options-modal/component.js","client/pods/components/froala/erp-options-modal/template.js","client/pods/components/froala/image-caption-modal/component.js","client/pods/components/froala/image-caption-modal/template.js","client/pods/components/froala/template.js","client/pods/components/google/tracking-editor/component.js","client/pods/components/google/tracking-editor/template.js","client/pods/components/grapesjs/blogs-modal/component.js","client/pods/components/grapesjs/blogs-modal/template.js","client/pods/components/grapesjs/btn-modal/component.js","client/pods/components/grapesjs/btn-modal/template.js","client/pods/components/grapesjs/form-modal/component.js","client/pods/components/grapesjs/form-modal/template.js","client/pods/components/grapesjs/links-modal/component.js","client/pods/components/grapesjs/links-modal/template.js","client/pods/components/grapesjs/preview-container/component.js","client/pods/components/grapesjs/preview-container/template.js","client/pods/components/grapesjs/products-modal/component.js","client/pods/components/grapesjs/products-modal/template.js","client/pods/components/grapesjs/re-index-modal/component.js","client/pods/components/grapesjs/re-index-modal/template.js","client/pods/components/grapesjs/schedules-modal/component.js","client/pods/components/grapesjs/schedules-modal/schedules-dialog/component.js","client/pods/components/grapesjs/schedules-modal/schedules-dialog/schedules-row/component.js","client/pods/components/grapesjs/schedules-modal/schedules-dialog/schedules-row/template.js","client/pods/components/grapesjs/schedules-modal/schedules-dialog/template.js","client/pods/components/grapesjs/schedules-modal/template.js","client/pods/components/grapesjs/scratch-card-modal/component.js","client/pods/components/grapesjs/scratch-card-modal/template.js","client/pods/components/grapesjs/slider-modal/component.js","client/pods/components/grapesjs/slider-modal/template.js","client/pods/components/guests/app-logged-in/component.js","client/pods/components/guests/app-logged-in/template.js","client/pods/components/guests/campaign-login/component.js","client/pods/components/guests/campaign-login/template.js","client/pods/components/guests/campaign-main/campaign-activity/component.js","client/pods/components/guests/campaign-main/campaign-activity/template.js","client/pods/components/guests/campaign-main/campaign-commissions/component.js","client/pods/components/guests/campaign-main/campaign-commissions/template.js","client/pods/components/guests/campaign-main/campaign-products/component.js","client/pods/components/guests/campaign-main/campaign-products/template.js","client/pods/components/guests/campaign-main/campaign-report/component.js","client/pods/components/guests/campaign-main/campaign-report/template.js","client/pods/components/guests/campaign-main/component.js","client/pods/components/guests/campaign-main/template.js","client/pods/components/guests/portal/app-logged-in/component.js","client/pods/components/guests/portal/app-logged-in/template.js","client/pods/components/guests/portal/campaign-main/campaign-dashboard/component.js","client/pods/components/guests/portal/campaign-main/campaign-dashboard/template.js","client/pods/components/guests/portal/campaign-main/component.js","client/pods/components/guests/portal/campaign-main/template.js","client/pods/components/guests/portal/campaigns-modal/component.js","client/pods/components/guests/portal/campaigns-modal/template.js","client/pods/components/guests/portal/login-form/component.js","client/pods/components/guests/portal/login-form/template.js","client/pods/components/guide-menu/guide-menu-nav/component.js","client/pods/components/guide-menu/guide-menu-nav/template.js","client/pods/components/guides/player/component.js","client/pods/components/guides/player/template.js","client/pods/components/guides/setup-helper/component.js","client/pods/components/guides/setup-helper/template.js","client/pods/components/guides/step/component.js","client/pods/components/guides/step/template.js","client/pods/components/helpers/content-display/component.js","client/pods/components/helpers/content-display/template.js","client/pods/components/helpers/creator-info/component.js","client/pods/components/helpers/creator-info/template.js","client/pods/components/helpers/data-updated/component.js","client/pods/components/helpers/data-updated/template.js","client/pods/components/helpers/divider-h/component.js","client/pods/components/helpers/divider-h/template.js","client/pods/components/helpers/divider-v/component.js","client/pods/components/helpers/divider-v/template.js","client/pods/components/helpers/drag-and-drop/component.js","client/pods/components/helpers/drag-and-drop/drag-container/component.js","client/pods/components/helpers/drag-and-drop/drag-container/template.js","client/pods/components/helpers/drag-and-drop/drop-container/component.js","client/pods/components/helpers/drag-and-drop/drop-container/template.js","client/pods/components/helpers/drag-and-drop/template.js","client/pods/components/helpers/drag-container/component.js","client/pods/components/helpers/drag-container/template.js","client/pods/components/helpers/drop-container/component.js","client/pods/components/helpers/drop-container/template.js","client/pods/components/helpers/force-reloading/component.js","client/pods/components/helpers/force-reloading/template.js","client/pods/components/helpers/header-sort/component.js","client/pods/components/helpers/header-sort/template.js","client/pods/components/helpers/iframe-wrapper/component.js","client/pods/components/helpers/iframe-wrapper/template.js","client/pods/components/helpers/info-popup-content/component.js","client/pods/components/helpers/info-popup-content/template.js","client/pods/components/helpers/info-popup/component.js","client/pods/components/helpers/info-popup/template.js","client/pods/components/helpers/info-tooltip-content/component.js","client/pods/components/helpers/info-tooltip-content/template.js","client/pods/components/helpers/info-tooltip/component.js","client/pods/components/helpers/info-tooltip/template.js","client/pods/components/helpers/is-access-allowed/component.js","client/pods/components/helpers/is-access-allowed/template.js","client/pods/components/helpers/is-loading/component.js","client/pods/components/helpers/is-loading/template.js","client/pods/components/helpers/lazy-loader/component.js","client/pods/components/helpers/lazy-loader/lazy-loader-btn/component.js","client/pods/components/helpers/lazy-loader/lazy-loader-btn/template.js","client/pods/components/helpers/lazy-loader/template.js","client/pods/components/helpers/mouse-hover/component.js","client/pods/components/helpers/mouse-hover/template.js","client/pods/components/helpers/multiline-truncate/component.js","client/pods/components/helpers/multiline-truncate/template.js","client/pods/components/helpers/new-browser-tab-link/component.js","client/pods/components/helpers/new-browser-tab-link/template.js","client/pods/components/helpers/no-data/component.js","client/pods/components/helpers/no-data/template.js","client/pods/components/helpers/pagination-controls/component.js","client/pods/components/helpers/pagination-controls/template.js","client/pods/components/helpers/pre-line/component.js","client/pods/components/helpers/pre-line/template.js","client/pods/components/helpers/repeat-times/component.js","client/pods/components/helpers/repeat-times/template.js","client/pods/components/helpers/tab-link/component.js","client/pods/components/helpers/tab-link/contacts/component.js","client/pods/components/helpers/tab-link/contacts/template.js","client/pods/components/helpers/tab-link/template.js","client/pods/components/home/tab-container/component.js","client/pods/components/home/tab-container/template.js","client/pods/components/home/wizard-container/component.js","client/pods/components/home/wizard-container/help-card/component.js","client/pods/components/home/wizard-container/help-card/template.js","client/pods/components/home/wizard-container/template.js","client/pods/components/home/wizard-container/wizard-card/component.js","client/pods/components/home/wizard-container/wizard-card/template.js","client/pods/components/img-banner/component.js","client/pods/components/img-banner/template.js","client/pods/components/importer/import-btn/component.js","client/pods/components/importer/import-btn/template.js","client/pods/components/importer/import-table/component.js","client/pods/components/importer/import-table/template.js","client/pods/components/layouts/btns-group/component.js","client/pods/components/layouts/btns-group/template.js","client/pods/components/layouts/btns-row/component.js","client/pods/components/layouts/btns-row/template.js","client/pods/components/layouts/btns-seperator/component.js","client/pods/components/layouts/btns-seperator/template.js","client/pods/components/layouts/btns-sticky-right-row/component.js","client/pods/components/layouts/btns-sticky-right-row/template.js","client/pods/components/layouts/footer-btns/component.js","client/pods/components/layouts/footer-btns/template.js","client/pods/components/layouts/info-row/card/component.js","client/pods/components/layouts/info-row/card/template.js","client/pods/components/layouts/info-row/component.js","client/pods/components/layouts/info-row/template.js","client/pods/components/layouts/left-bar/component.js","client/pods/components/layouts/left-bar/template.js","client/pods/components/layouts/panels/panel-footer-spacer/component.js","client/pods/components/layouts/panels/panel-footer-spacer/template.js","client/pods/components/layouts/panels/panel-footer/component.js","client/pods/components/layouts/panels/panel-footer/template.js","client/pods/components/layouts/right-bar/component.js","client/pods/components/layouts/right-bar/template.js","client/pods/components/layouts/scroll-into-view/component.js","client/pods/components/layouts/scroll-into-view/template.js","client/pods/components/layouts/search-panel/component.js","client/pods/components/layouts/search-panel/template.js","client/pods/components/layouts/search-results/component.js","client/pods/components/layouts/search-results/template.js","client/pods/components/layouts/section-container/component.js","client/pods/components/layouts/section-container/template.js","client/pods/components/layouts/section/component.js","client/pods/components/layouts/section/sub/component.js","client/pods/components/layouts/section/sub/template.js","client/pods/components/layouts/section/template.js","client/pods/components/layouts/sidebar/component.js","client/pods/components/layouts/sidebar/content/component.js","client/pods/components/layouts/sidebar/content/template.js","client/pods/components/layouts/sidebar/template.js","client/pods/components/layouts/starred/component.js","client/pods/components/layouts/starred/template.js","client/pods/components/layouts/table-view/component.js","client/pods/components/layouts/table-view/table-row-container/component.js","client/pods/components/layouts/table-view/table-row-container/template.js","client/pods/components/layouts/table-view/template.js","client/pods/components/layouts/tabs/grid/component.js","client/pods/components/layouts/tabs/grid/content/component.js","client/pods/components/layouts/tabs/grid/content/template.js","client/pods/components/layouts/tabs/grid/template.js","client/pods/components/layouts/tabs/header/component.js","client/pods/components/layouts/tabs/header/left/component.js","client/pods/components/layouts/tabs/header/left/template.js","client/pods/components/layouts/tabs/header/right/component.js","client/pods/components/layouts/tabs/header/right/template.js","client/pods/components/layouts/tabs/header/search-bar/component.js","client/pods/components/layouts/tabs/header/search-bar/template.js","client/pods/components/layouts/tabs/header/template.js","client/pods/components/ledgers/accounts/account-editor/component.js","client/pods/components/ledgers/accounts/account-editor/template.js","client/pods/components/ledgers/accounts/account-search-results/component.js","client/pods/components/ledgers/accounts/account-search-results/template.js","client/pods/components/ledgers/accounts/aging/filters-advanced/component.js","client/pods/components/ledgers/accounts/aging/filters-advanced/template.js","client/pods/components/ledgers/accounts/aging/panels-display/component.js","client/pods/components/ledgers/accounts/aging/panels-display/table-view/detail-row/component.js","client/pods/components/ledgers/accounts/aging/panels-display/table-view/detail-row/template.js","client/pods/components/ledgers/accounts/aging/panels-display/template.js","client/pods/components/ledgers/accounts/aging/tab-container/component.js","client/pods/components/ledgers/accounts/aging/tab-container/template.js","client/pods/components/ledgers/accounts/banks-editor/component.js","client/pods/components/ledgers/accounts/banks-editor/template.js","client/pods/components/ledgers/journals/cashbook/cashbook-editor/component.js","client/pods/components/ledgers/journals/cashbook/cashbook-editor/template.js","client/pods/components/ledgers/journals/cashbook/editor-row/component.js","client/pods/components/ledgers/journals/cashbook/editor-row/template.js","client/pods/components/ledgers/journals/cashbook/filters-advanced/component.js","client/pods/components/ledgers/journals/cashbook/filters-advanced/template.js","client/pods/components/ledgers/journals/cashbook/panels-display/component.js","client/pods/components/ledgers/journals/cashbook/panels-display/template.js","client/pods/components/ledgers/journals/cashbook/tab-container/component.js","client/pods/components/ledgers/journals/cashbook/tab-container/template.js","client/pods/components/ledgers/journals/cashbook/table-view/detail-row/component.js","client/pods/components/ledgers/journals/cashbook/table-view/detail-row/template.js","client/pods/components/line/line-login/component.js","client/pods/components/line/line-login/template.js","client/pods/components/line/line-profile/component.js","client/pods/components/line/line-profile/template.js","client/pods/components/linepay/provider-editor/component.js","client/pods/components/linepay/provider-editor/template.js","client/pods/components/lists/list-btn/component.js","client/pods/components/lists/list-btn/template.js","client/pods/components/lists/list-dropdown-editor-container/component.js","client/pods/components/lists/list-dropdown-editor-container/template.js","client/pods/components/lists/list-dropdown/component.js","client/pods/components/lists/list-dropdown/template.js","client/pods/components/lists/list-item/component.js","client/pods/components/lists/list-item/template.js","client/pods/components/lists/list-option/component.js","client/pods/components/lists/list-option/template.js","client/pods/components/lists/list-results/component.js","client/pods/components/lists/list-results/template.js","client/pods/components/lists/list-searcher/component.js","client/pods/components/lists/list-searcher/list-searcher-tag/component.js","client/pods/components/lists/list-searcher/list-searcher-tag/template.js","client/pods/components/lists/list-searcher/template.js","client/pods/components/lists/list-selector/component.js","client/pods/components/lists/list-selector/template.js","client/pods/components/lists/list-tags/component.js","client/pods/components/lists/list-tags/template.js","client/pods/components/lists/mixins/dropdown.js","client/pods/components/menus/menu-list/component.js","client/pods/components/menus/menu-list/template.js","client/pods/components/menus/nav-menu/component.js","client/pods/components/menus/nav-menu/nav-item/component.js","client/pods/components/menus/nav-menu/nav-item/template.js","client/pods/components/menus/nav-menu/template.js","client/pods/components/menus/nav-tree/component.js","client/pods/components/menus/nav-tree/nav-item/component.js","client/pods/components/menus/nav-tree/nav-item/template.js","client/pods/components/menus/nav-tree/nav-nested/component.js","client/pods/components/menus/nav-tree/nav-nested/template.js","client/pods/components/menus/nav-tree/template.js","client/pods/components/menus/progress-bar/component.js","client/pods/components/menus/progress-bar/step/component.js","client/pods/components/menus/progress-bar/step/template.js","client/pods/components/menus/progress-bar/template.js","client/pods/components/menus/sidebar/item/component.js","client/pods/components/menus/sidebar/item/template.js","client/pods/components/menus/tab-menu-new/component.js","client/pods/components/menus/tab-menu-new/tab-item/component.js","client/pods/components/menus/tab-menu-new/tab-item/template.js","client/pods/components/menus/tab-menu-new/template.js","client/pods/components/menus/tab-menu-side/component.js","client/pods/components/menus/tab-menu-side/tab-item/component.js","client/pods/components/menus/tab-menu-side/tab-item/template.js","client/pods/components/menus/tab-menu-side/template.js","client/pods/components/menus/tab-menu/component.js","client/pods/components/menus/tab-menu/tab-item/component.js","client/pods/components/menus/tab-menu/tab-item/template.js","client/pods/components/menus/tab-menu/template.js","client/pods/components/messages/search-filters/component.js","client/pods/components/messages/search-filters/template.js","client/pods/components/messages/tab-container/component.js","client/pods/components/messages/tab-container/messages-window/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/audio-type/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/audio-type/template.js","client/pods/components/messages/tab-container/messages-window/message-bubble/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/file-type/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/file-type/template.js","client/pods/components/messages/tab-container/messages-window/message-bubble/image-type/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/image-type/template.js","client/pods/components/messages/tab-container/messages-window/message-bubble/link-type/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/link-type/template.js","client/pods/components/messages/tab-container/messages-window/message-bubble/options-type/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/options-type/template.js","client/pods/components/messages/tab-container/messages-window/message-bubble/sticker-type/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/sticker-type/template.js","client/pods/components/messages/tab-container/messages-window/message-bubble/template.js","client/pods/components/messages/tab-container/messages-window/message-bubble/text-type/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/text-type/template.js","client/pods/components/messages/tab-container/messages-window/message-bubble/video-type/component.js","client/pods/components/messages/tab-container/messages-window/message-bubble/video-type/template.js","client/pods/components/messages/tab-container/messages-window/template.js","client/pods/components/messages/tab-container/template.js","client/pods/components/messages/tab-container/users-window/component.js","client/pods/components/messages/tab-container/users-window/template.js","client/pods/components/modals/modal-container-new/component.js","client/pods/components/modals/modal-container-new/template.js","client/pods/components/modals/modal-container/component.js","client/pods/components/modals/modal-container/template.js","client/pods/components/modals/modal-dialog/component.js","client/pods/components/modals/modal-dialog/modal-footer/component.js","client/pods/components/modals/modal-dialog/modal-footer/template.js","client/pods/components/modals/modal-dialog/modal-header/component.js","client/pods/components/modals/modal-dialog/modal-header/template.js","client/pods/components/modals/modal-dialog/template.js","client/pods/components/modals/modal-overlay/component.js","client/pods/components/modals/modal-overlay/template.js","client/pods/components/month-year-selector/component.js","client/pods/components/month-year-selector/template.js","client/pods/components/msgs/deleted-error/component.js","client/pods/components/msgs/deleted-error/template.js","client/pods/components/msgs/error-badge/component.js","client/pods/components/msgs/error-badge/template.js","client/pods/components/msgs/error-msg/component.js","client/pods/components/msgs/error-msg/template.js","client/pods/components/msgs/footer-msgs/component.js","client/pods/components/msgs/footer-msgs/template.js","client/pods/components/msgs/info-msg/component.js","client/pods/components/msgs/info-msg/template.js","client/pods/components/msgs/sync-updated/component.js","client/pods/components/msgs/sync-updated/template.js","client/pods/components/msgs/warning-msg/component.js","client/pods/components/msgs/warning-msg/template.js","client/pods/components/news/files/files-default-image/component.js","client/pods/components/news/files/files-default-image/template.js","client/pods/components/news/files/files-gallery-uploader/component.js","client/pods/components/news/files/files-gallery-uploader/template.js","client/pods/components/news/files/mixins/news-files.js","client/pods/components/news/news-card/component.js","client/pods/components/news/news-card/template.js","client/pods/components/news/news-editor/component.js","client/pods/components/news/news-editor/template.js","client/pods/components/news/panels-dash/component.js","client/pods/components/news/panels-dash/template.js","client/pods/components/news/panels-display/component.js","client/pods/components/news/panels-display/template.js","client/pods/components/news/panels-edit/component.js","client/pods/components/news/panels-edit/template.js","client/pods/components/news/panels-new/component.js","client/pods/components/news/panels-new/template.js","client/pods/components/news/search-bar/component.js","client/pods/components/news/search-bar/search-results/component.js","client/pods/components/news/search-bar/search-results/search-row/component.js","client/pods/components/news/search-bar/search-results/search-row/template.js","client/pods/components/news/search-bar/search-results/template.js","client/pods/components/news/search-bar/template.js","client/pods/components/news/search-filters/component.js","client/pods/components/news/search-filters/template.js","client/pods/components/news/search-results/component.js","client/pods/components/news/search-results/template.js","client/pods/components/news/tab-container/component.js","client/pods/components/news/tab-container/template.js","client/pods/components/news/table-view/detail-row/component.js","client/pods/components/news/table-view/detail-row/template.js","client/pods/components/notifications/alert/component.js","client/pods/components/notifications/alert/template.js","client/pods/components/notifications/bell-button/component.js","client/pods/components/notifications/bell-button/template.js","client/pods/components/notifications/bulk-split-alert/component.js","client/pods/components/notifications/bulk-split-alert/template.js","client/pods/components/notifications/container/component.js","client/pods/components/notifications/container/template.js","client/pods/components/notifications/display/component.js","client/pods/components/notifications/display/template.js","client/pods/components/open-graph/component.js","client/pods/components/open-graph/template.js","client/pods/components/open-hours/component.js","client/pods/components/open-hours/template.js","client/pods/components/operator/change-logs/change-logs-editor/component.js","client/pods/components/operator/change-logs/change-logs-editor/template.js","client/pods/components/operator/change-logs/panels-dash/component.js","client/pods/components/operator/change-logs/panels-dash/template.js","client/pods/components/operator/change-logs/panels-display/component.js","client/pods/components/operator/change-logs/panels-display/template.js","client/pods/components/operator/change-logs/panels-edit/component.js","client/pods/components/operator/change-logs/panels-edit/template.js","client/pods/components/operator/change-logs/panels-new/component.js","client/pods/components/operator/change-logs/panels-new/template.js","client/pods/components/operator/change-logs/search-filters/component.js","client/pods/components/operator/change-logs/search-filters/template.js","client/pods/components/operator/change-logs/search-results-item/component.js","client/pods/components/operator/change-logs/search-results-item/template.js","client/pods/components/operator/change-logs/tab-container/component.js","client/pods/components/operator/change-logs/tab-container/template.js","client/pods/components/operator/change-logs/table-view/detail-row/component.js","client/pods/components/operator/change-logs/table-view/detail-row/template.js","client/pods/components/payment-methods-editor/component.js","client/pods/components/payment-methods-editor/template.js","client/pods/components/payment-terms-editor/component.js","client/pods/components/payment-terms-editor/template.js","client/pods/components/payments/card/filters-advanced/component.js","client/pods/components/payments/card/filters-advanced/template.js","client/pods/components/payments/card/history/component.js","client/pods/components/payments/card/history/template.js","client/pods/components/payments/card/panels-display/component.js","client/pods/components/payments/card/panels-display/panels-statement/component.js","client/pods/components/payments/card/panels-display/panels-statement/payout-details/component.js","client/pods/components/payments/card/panels-display/panels-statement/payout-details/template.js","client/pods/components/payments/card/panels-display/panels-statement/template.js","client/pods/components/payments/card/panels-display/template.js","client/pods/components/payments/card/panels-transactions/component.js","client/pods/components/payments/card/panels-transactions/template.js","client/pods/components/payments/card/search-filters/component.js","client/pods/components/payments/card/search-filters/template.js","client/pods/components/payments/card/tab-container/component.js","client/pods/components/payments/card/tab-container/template.js","client/pods/components/payments/card/table-view/panels-activity/component.js","client/pods/components/payments/card/table-view/panels-activity/template.js","client/pods/components/payments/card/table-view/panels-transactions/detail-row/component.js","client/pods/components/payments/card/table-view/panels-transactions/detail-row/template.js","client/pods/components/payments/linepay/history/component.js","client/pods/components/payments/linepay/history/template.js","client/pods/components/payments/linepay/panels-display/component.js","client/pods/components/payments/linepay/panels-display/panels-activity--delete/component.js","client/pods/components/payments/linepay/panels-display/panels-activity--delete/template.js","client/pods/components/payments/linepay/panels-display/panels-statement/component.js","client/pods/components/payments/linepay/panels-display/panels-statement/payout-details/component.js","client/pods/components/payments/linepay/panels-display/panels-statement/payout-details/template.js","client/pods/components/payments/linepay/panels-display/panels-statement/template.js","client/pods/components/payments/linepay/panels-display/template.js","client/pods/components/payments/linepay/panels-transactions/component.js","client/pods/components/payments/linepay/panels-transactions/template.js","client/pods/components/payments/linepay/search-filters/component.js","client/pods/components/payments/linepay/search-filters/template.js","client/pods/components/payments/linepay/tab-container/component.js","client/pods/components/payments/linepay/tab-container/template.js","client/pods/components/payments/linepay/table-view/panels-activity/component.js","client/pods/components/payments/linepay/table-view/panels-activity/template.js","client/pods/components/payments/linepay/table-view/panels-transactions/detail-row/component.js","client/pods/components/payments/linepay/table-view/panels-transactions/detail-row/template.js","client/pods/components/payments/virtual-accounts/history/component.js","client/pods/components/payments/virtual-accounts/history/template.js","client/pods/components/payments/virtual-accounts/panels-display/component.js","client/pods/components/payments/virtual-accounts/panels-display/panels-statement/component.js","client/pods/components/payments/virtual-accounts/panels-display/panels-statement/template.js","client/pods/components/payments/virtual-accounts/panels-display/template.js","client/pods/components/payments/virtual-accounts/search-filters/component.js","client/pods/components/payments/virtual-accounts/search-filters/template.js","client/pods/components/payments/virtual-accounts/status-tag/component.js","client/pods/components/payments/virtual-accounts/status-tag/template.js","client/pods/components/payments/virtual-accounts/tab-container/component.js","client/pods/components/payments/virtual-accounts/tab-container/template.js","client/pods/components/payments/virtual-accounts/table-view/panels-activity/component.js","client/pods/components/payments/virtual-accounts/table-view/panels-activity/template.js","client/pods/components/products/brands-editor/component.js","client/pods/components/products/brands-editor/template.js","client/pods/components/products/files/files-default-image/component.js","client/pods/components/products/files/files-default-image/template.js","client/pods/components/products/files/files-gallery-uploader/component.js","client/pods/components/products/files/files-gallery-uploader/template.js","client/pods/components/products/files/mixins/products-files.js","client/pods/components/products/filter-group/component.js","client/pods/components/products/filter-group/template.js","client/pods/components/products/filters-advanced/component.js","client/pods/components/products/filters-advanced/template.js","client/pods/components/products/inventory/inventory-editor-th/component.js","client/pods/components/products/inventory/inventory-editor-th/template.js","client/pods/components/products/inventory/inventory-editor/component.js","client/pods/components/products/inventory/inventory-editor/template.js","client/pods/components/products/inventory/inventory-manager/component.js","client/pods/components/products/inventory/inventory-manager/inventory-display/component.js","client/pods/components/products/inventory/inventory-manager/inventory-display/template.js","client/pods/components/products/inventory/inventory-manager/inventory-table/component.js","client/pods/components/products/inventory/inventory-manager/inventory-table/template.js","client/pods/components/products/inventory/inventory-manager/template.js","client/pods/components/products/inventory/inventory-status-tooltip/component.js","client/pods/components/products/inventory/inventory-status-tooltip/template.js","client/pods/components/products/inventory/inventory-status/component.js","client/pods/components/products/inventory/inventory-status/template.js","client/pods/components/products/inventory/report/component.js","client/pods/components/products/inventory/report/table-view/detail-row/component.js","client/pods/components/products/inventory/report/table-view/detail-row/template.js","client/pods/components/products/inventory/report/template.js","client/pods/components/products/inventory/table-view/detail-row/component.js","client/pods/components/products/inventory/table-view/detail-row/template.js","client/pods/components/products/inventory/table-view/filters-advanced/component.js","client/pods/components/products/inventory/table-view/filters-advanced/template.js","client/pods/components/products/over-sales-limited-qty-tag/component.js","client/pods/components/products/over-sales-limited-qty-tag/template.js","client/pods/components/products/page-import-btn/component.js","client/pods/components/products/page-import-btn/products-results/component.js","client/pods/components/products/page-import-btn/products-results/template.js","client/pods/components/products/page-import-btn/template.js","client/pods/components/products/panels-dash/component.js","client/pods/components/products/panels-dash/template.js","client/pods/components/products/panels-display/activity-display/activity-display-doc/component.js","client/pods/components/products/panels-display/activity-display/activity-display-doc/template.js","client/pods/components/products/panels-display/activity-display/component.js","client/pods/components/products/panels-display/activity-display/template.js","client/pods/components/products/panels-display/component.js","client/pods/components/products/panels-display/details-display/component.js","client/pods/components/products/panels-display/details-display/template.js","client/pods/components/products/panels-display/emails-display/template.js","client/pods/components/products/panels-display/faqs-display/template.js","client/pods/components/products/panels-display/pages-display/component.js","client/pods/components/products/panels-display/pages-display/template.js","client/pods/components/products/panels-display/seo-display/component.js","client/pods/components/products/panels-display/seo-display/template.js","client/pods/components/products/panels-display/sets-display/component.js","client/pods/components/products/panels-display/sets-display/template.js","client/pods/components/products/panels-display/sets-with-choices-display/component.js","client/pods/components/products/panels-display/sets-with-choices-display/template.js","client/pods/components/products/panels-display/shop-display/component.js","client/pods/components/products/panels-display/shop-display/template.js","client/pods/components/products/panels-display/template.js","client/pods/components/products/panels-display/tickets-display/template.js","client/pods/components/products/panels-display/transactions-display/component.js","client/pods/components/products/panels-display/transactions-display/template.js","client/pods/components/products/panels-display/variants-display/component.js","client/pods/components/products/panels-display/variants-display/template.js","client/pods/components/products/panels-edit/component.js","client/pods/components/products/panels-edit/template.js","client/pods/components/products/panels-header/component.js","client/pods/components/products/panels-header/template.js","client/pods/components/products/panels-inventory/component.js","client/pods/components/products/panels-inventory/template.js","client/pods/components/products/panels-new/component.js","client/pods/components/products/panels-new/template.js","client/pods/components/products/picker-modal/component.js","client/pods/components/products/picker-modal/template.js","client/pods/components/products/price-selectors/mixins/products.js","client/pods/components/products/price-selectors/price-selector-campaigns/commission-history-prices/component.js","client/pods/components/products/price-selectors/price-selector-campaigns/commission-history-prices/template.js","client/pods/components/products/price-selectors/price-selector-campaigns/component.js","client/pods/components/products/price-selectors/price-selector-campaigns/history-prices/component.js","client/pods/components/products/price-selectors/price-selector-campaigns/history-prices/template.js","client/pods/components/products/price-selectors/price-selector-campaigns/template.js","client/pods/components/products/price-selectors/price-selector/component.js","client/pods/components/products/price-selectors/price-selector/template.js","client/pods/components/products/products-editor/component.js","client/pods/components/products/products-editor/customizations-editor/component.js","client/pods/components/products/products-editor/customizations-editor/customization-editor/component.js","client/pods/components/products/products-editor/customizations-editor/customization-editor/options-editor/component.js","client/pods/components/products/products-editor/customizations-editor/customization-editor/options-editor/template.js","client/pods/components/products/products-editor/customizations-editor/customization-editor/template.js","client/pods/components/products/products-editor/customizations-editor/template.js","client/pods/components/products/products-editor/details-editor/component.js","client/pods/components/products/products-editor/details-editor/template.js","client/pods/components/products/products-editor/emails-editor/component.js","client/pods/components/products/products-editor/emails-editor/template.js","client/pods/components/products/products-editor/pages-editor/component.js","client/pods/components/products/products-editor/pages-editor/template.js","client/pods/components/products/products-editor/recurring-schedules-editor/template.js","client/pods/components/products/products-editor/seo-editor/component.js","client/pods/components/products/products-editor/seo-editor/template.js","client/pods/components/products/products-editor/sets-editor/component.js","client/pods/components/products/products-editor/sets-editor/details-editor/component.js","client/pods/components/products/products-editor/sets-editor/details-editor/template.js","client/pods/components/products/products-editor/sets-editor/template.js","client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/component.js","client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/details-editor/component.js","client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/details-editor/template.js","client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/template.js","client/pods/components/products/products-editor/sets-with-choices-editor/component.js","client/pods/components/products/products-editor/sets-with-choices-editor/template.js","client/pods/components/products/products-editor/shop-editor/component.js","client/pods/components/products/products-editor/shop-editor/template.js","client/pods/components/products/products-editor/template.js","client/pods/components/products/products-editor/template/component.js","client/pods/components/products/products-editor/template/template.js","client/pods/components/products/products-editor/tickets-editor/component.js","client/pods/components/products/products-editor/tickets-editor/template.js","client/pods/components/products/products-editor/variants-editor/child-editor/component.js","client/pods/components/products/products-editor/variants-editor/child-editor/template.js","client/pods/components/products/products-editor/variants-editor/component.js","client/pods/components/products/products-editor/variants-editor/template.js","client/pods/components/products/products-editor/variants-editor/variant-editor/component.js","client/pods/components/products/products-editor/variants-editor/variant-editor/options-editor/component.js","client/pods/components/products/products-editor/variants-editor/variant-editor/options-editor/template.js","client/pods/components/products/products-editor/variants-editor/variant-editor/template.js","client/pods/components/products/products-editor/virtual-contents-editor/component.js","client/pods/components/products/products-editor/virtual-contents-editor/template.js","client/pods/components/products/products-picker/bulk-insert-helper/bulk-insert-helper-details/component.js","client/pods/components/products/products-picker/bulk-insert-helper/bulk-insert-helper-details/template.js","client/pods/components/products/products-picker/bulk-insert-helper/component.js","client/pods/components/products/products-picker/bulk-insert-helper/template.js","client/pods/components/products/products-picker/component.js","client/pods/components/products/products-picker/template.js","client/pods/components/products/products-shop-wizard/editor/component.js","client/pods/components/products/products-shop-wizard/editor/template.js","client/pods/components/products/products-shop-wizard/selector/component.js","client/pods/components/products/products-shop-wizard/selector/template.js","client/pods/components/products/search-bar-container/component.js","client/pods/components/products/search-bar-container/search-bar/component.js","client/pods/components/products/search-bar-container/search-bar/template.js","client/pods/components/products/search-bar-container/search-results/component.js","client/pods/components/products/search-bar-container/search-results/search-row/component.js","client/pods/components/products/search-bar-container/search-results/search-row/template.js","client/pods/components/products/search-bar-container/search-results/template.js","client/pods/components/products/search-bar-container/template.js","client/pods/components/products/search-filters/component.js","client/pods/components/products/search-filters/template.js","client/pods/components/products/search-results-item/component.js","client/pods/components/products/search-results-item/template.js","client/pods/components/products/shop/filters-advanced/component.js","client/pods/components/products/shop/filters-advanced/template.js","client/pods/components/products/shop/limits/filters-advanced/component.js","client/pods/components/products/shop/limits/filters-advanced/template.js","client/pods/components/products/sync-modal/component.js","client/pods/components/products/sync-modal/table-view/campaign-detail-row/component.js","client/pods/components/products/sync-modal/table-view/campaign-detail-row/template.js","client/pods/components/products/sync-modal/table-view/product-detail-row/component.js","client/pods/components/products/sync-modal/table-view/product-detail-row/template.js","client/pods/components/products/sync-modal/template.js","client/pods/components/products/tab-container/component.js","client/pods/components/products/tab-container/template.js","client/pods/components/products/table-view/campaign-detail-picker-row/component.js","client/pods/components/products/table-view/campaign-detail-picker-row/template.js","client/pods/components/products/table-view/campaigns-list/component.js","client/pods/components/products/table-view/campaigns-list/template.js","client/pods/components/products/table-view/detail-row/component.js","client/pods/components/products/table-view/detail-row/sets-editor/component.js","client/pods/components/products/table-view/detail-row/sets-editor/details-editor/component.js","client/pods/components/products/table-view/detail-row/sets-editor/details-editor/template.js","client/pods/components/products/table-view/detail-row/sets-editor/template.js","client/pods/components/products/table-view/detail-row/template.js","client/pods/components/public/login-page/component.js","client/pods/components/public/login-page/template.js","client/pods/components/qr-code-generator/component.js","client/pods/components/qr-code-generator/template.js","client/pods/components/recurring/schedules-table/component.js","client/pods/components/recurring/schedules-table/schedules-row/component.js","client/pods/components/recurring/schedules-table/schedules-row/template.js","client/pods/components/recurring/schedules-table/template.js","client/pods/components/recurring/schedules/editor/component.js","client/pods/components/recurring/schedules/editor/template.js","client/pods/components/recurring/schedules/search-results/component.js","client/pods/components/recurring/schedules/search-results/template.js","client/pods/components/reports/commissions/panels-all/component.js","client/pods/components/reports/commissions/panels-all/panels-statement/component.js","client/pods/components/reports/commissions/panels-all/panels-statement/template.js","client/pods/components/reports/commissions/panels-all/payout-editor/component.js","client/pods/components/reports/commissions/panels-all/payout-editor/template.js","client/pods/components/reports/commissions/panels-all/table-view/detail-row/component.js","client/pods/components/reports/commissions/panels-all/table-view/detail-row/template.js","client/pods/components/reports/commissions/panels-all/template.js","client/pods/components/reports/commissions/panels-display/component.js","client/pods/components/reports/commissions/panels-display/table-view/detail-row/component.js","client/pods/components/reports/commissions/panels-display/table-view/detail-row/template.js","client/pods/components/reports/commissions/panels-display/table-view/payouts-row/component.js","client/pods/components/reports/commissions/panels-display/table-view/payouts-row/template.js","client/pods/components/reports/commissions/panels-display/template.js","client/pods/components/reports/commissions/tab-container/component.js","client/pods/components/reports/commissions/tab-container/template.js","client/pods/components/reports/dashboard/card-page-views/card-conversions/checkout-steps/component.js","client/pods/components/reports/dashboard/card-page-views/card-conversions/checkout-steps/template.js","client/pods/components/reports/dashboard/card-page-views/card-conversions/component.js","client/pods/components/reports/dashboard/card-page-views/card-conversions/template.js","client/pods/components/reports/dashboard/card-page-views/card-detail/component.js","client/pods/components/reports/dashboard/card-page-views/card-detail/template.js","client/pods/components/reports/dashboard/card-page-views/component.js","client/pods/components/reports/dashboard/card-page-views/template.js","client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/card-detail/component.js","client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/card-detail/template.js","client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/component.js","client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/template.js","client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/card-detail/component.js","client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/card-detail/template.js","client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/component.js","client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/template.js","client/pods/components/reports/dashboard/card-revenue-by-group/card-detail/component.js","client/pods/components/reports/dashboard/card-revenue-by-group/card-detail/template.js","client/pods/components/reports/dashboard/card-revenue-by-group/component.js","client/pods/components/reports/dashboard/card-revenue-by-group/template.js","client/pods/components/reports/dashboard/card-revenue-for-month/component.js","client/pods/components/reports/dashboard/card-revenue-for-month/template.js","client/pods/components/reports/dashboard/card-revenue-for-year/component.js","client/pods/components/reports/dashboard/card-revenue-for-year/template.js","client/pods/components/reports/dashboard/card-revenue-stats/component.js","client/pods/components/reports/dashboard/card-revenue-stats/template.js","client/pods/components/reports/dashboard/card-stat/component.js","client/pods/components/reports/dashboard/card-stat/template.js","client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/card-detail/component.js","client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/card-detail/template.js","client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/component.js","client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/template.js","client/pods/components/reports/dashboard/panels-dash/component.js","client/pods/components/reports/dashboard/panels-dash/template.js","client/pods/components/reports/dashboard/tab-container/component.js","client/pods/components/reports/dashboard/tab-container/template.js","client/pods/components/schedules/btn-scheduled/component.js","client/pods/components/schedules/btn-scheduled/template.js","client/pods/components/schedules/refund/component.js","client/pods/components/schedules/refund/template.js","client/pods/components/schedules/scheduledPayment/component.js","client/pods/components/schedules/scheduledPayment/template.js","client/pods/components/search/results-list/component.js","client/pods/components/search/results-list/template.js","client/pods/components/settings/defaults/3rd-party-editor/component.js","client/pods/components/settings/defaults/3rd-party-editor/facebook-plugins/component.js","client/pods/components/settings/defaults/3rd-party-editor/facebook-plugins/template.js","client/pods/components/settings/defaults/3rd-party-editor/social-links/component.js","client/pods/components/settings/defaults/3rd-party-editor/social-links/template.js","client/pods/components/settings/defaults/3rd-party-editor/template.js","client/pods/components/settings/defaults/company-editor/component.js","client/pods/components/settings/defaults/company-editor/template.js","client/pods/components/settings/defaults/transporter-drop-down/component.js","client/pods/components/settings/defaults/transporter-drop-down/template.js","client/pods/components/settings/files/files-gallery-uploader/component.js","client/pods/components/settings/files/files-gallery-uploader/template.js","client/pods/components/settings/is-beta-allowed/component.js","client/pods/components/settings/is-beta-allowed/template.js","client/pods/components/settings/is-beta-not-allowed/component.js","client/pods/components/settings/is-beta-not-allowed/template.js","client/pods/components/settings/panels-display/template.js","client/pods/components/settings/panels-edit/component.js","client/pods/components/settings/panels-edit/template.js","client/pods/components/settings/pod-logo/component.js","client/pods/components/settings/pod-logo/template.js","client/pods/components/settings/settings-editor/3rd-party-editor/component.js","client/pods/components/settings/settings-editor/3rd-party-editor/template.js","client/pods/components/settings/settings-editor/basic-editor/component.js","client/pods/components/settings/settings-editor/basic-editor/template.js","client/pods/components/settings/settings-editor/beta-editor/component.js","client/pods/components/settings/settings-editor/beta-editor/template.js","client/pods/components/settings/settings-editor/company-editor/component.js","client/pods/components/settings/settings-editor/company-editor/template.js","client/pods/components/settings/settings-editor/component.js","client/pods/components/settings/settings-editor/documents-editor/component.js","client/pods/components/settings/settings-editor/documents-editor/template.js","client/pods/components/settings/settings-editor/emails-editor/component.js","client/pods/components/settings/settings-editor/emails-editor/emails-placeholders/component.js","client/pods/components/settings/settings-editor/emails-editor/emails-placeholders/template.js","client/pods/components/settings/settings-editor/emails-editor/template.js","client/pods/components/settings/settings-editor/invoices-editor/component.js","client/pods/components/settings/settings-editor/invoices-editor/template.js","client/pods/components/settings/settings-editor/payments-editor/component.js","client/pods/components/settings/settings-editor/payments-editor/template.js","client/pods/components/settings/settings-editor/products-editor/component.js","client/pods/components/settings/settings-editor/products-editor/template.js","client/pods/components/settings/settings-editor/shipping-editor/component.js","client/pods/components/settings/settings-editor/shipping-editor/template.js","client/pods/components/settings/settings-editor/shop-editor/component.js","client/pods/components/settings/settings-editor/shop-editor/template.js","client/pods/components/settings/settings-editor/social-editor/component.js","client/pods/components/settings/settings-editor/social-editor/template.js","client/pods/components/settings/settings-editor/template.js","client/pods/components/settings/settings-editor/websites-editor/component.js","client/pods/components/settings/settings-editor/websites-editor/template.js","client/pods/components/settings/tab-container/component.js","client/pods/components/settings/tab-container/template.js","client/pods/components/simple-editor/component.js","client/pods/components/simple-editor/page-block-add-wrapper/component.js","client/pods/components/simple-editor/page-block-add-wrapper/template.js","client/pods/components/simple-editor/page-block-add/component.js","client/pods/components/simple-editor/page-block-add/template.js","client/pods/components/simple-editor/page-block-content-add/component.js","client/pods/components/simple-editor/page-block-content-add/template.js","client/pods/components/simple-editor/page-block-display-container/component.js","client/pods/components/simple-editor/page-block-display-container/template.js","client/pods/components/simple-editor/page-block-display/base/container/component.js","client/pods/components/simple-editor/page-block-display/base/container/template.js","client/pods/components/simple-editor/page-block-display/base/contents-container/component.js","client/pods/components/simple-editor/page-block-display/base/contents-container/template.js","client/pods/components/simple-editor/page-block-display/base/image/component.js","client/pods/components/simple-editor/page-block-display/base/image/template.js","client/pods/components/simple-editor/page-block-display/base/links/component.js","client/pods/components/simple-editor/page-block-display/base/links/template.js","client/pods/components/simple-editor/page-block-display/base/text/advanced/component.js","client/pods/components/simple-editor/page-block-display/base/text/advanced/template.js","client/pods/components/simple-editor/page-block-display/blogs/component.js","client/pods/components/simple-editor/page-block-display/blogs/template.js","client/pods/components/simple-editor/page-block-display/buttons/button/component.js","client/pods/components/simple-editor/page-block-display/buttons/button/template.js","client/pods/components/simple-editor/page-block-display/buttons/component.js","client/pods/components/simple-editor/page-block-display/buttons/template.js","client/pods/components/simple-editor/page-block-display/custom/component.js","client/pods/components/simple-editor/page-block-display/custom/template.js","client/pods/components/simple-editor/page-block-display/faqs/component.js","client/pods/components/simple-editor/page-block-display/faqs/template.js","client/pods/components/simple-editor/page-block-display/features/component.js","client/pods/components/simple-editor/page-block-display/features/contents/component.js","client/pods/components/simple-editor/page-block-display/features/contents/image-only-one/component.js","client/pods/components/simple-editor/page-block-display/features/contents/image-only-one/template.js","client/pods/components/simple-editor/page-block-display/features/contents/template.js","client/pods/components/simple-editor/page-block-display/features/contents/text-and-image-split-one/component.js","client/pods/components/simple-editor/page-block-display/features/contents/text-and-image-split-one/template.js","client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-one/component.js","client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-one/template.js","client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-two/component.js","client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-two/template.js","client/pods/components/simple-editor/page-block-display/features/contents/top-down-one/component.js","client/pods/components/simple-editor/page-block-display/features/contents/top-down-one/template.js","client/pods/components/simple-editor/page-block-display/features/grid/component.js","client/pods/components/simple-editor/page-block-display/features/grid/template.js","client/pods/components/simple-editor/page-block-display/features/slider/component.js","client/pods/components/simple-editor/page-block-display/features/slider/template.js","client/pods/components/simple-editor/page-block-display/features/story/component.js","client/pods/components/simple-editor/page-block-display/features/story/template.js","client/pods/components/simple-editor/page-block-display/features/template.js","client/pods/components/simple-editor/page-block-display/flows/component.js","client/pods/components/simple-editor/page-block-display/flows/template.js","client/pods/components/simple-editor/page-block-display/helpers/pre-line/component.js","client/pods/components/simple-editor/page-block-display/helpers/pre-line/template.js","client/pods/components/simple-editor/page-block-display/images/component.js","client/pods/components/simple-editor/page-block-display/images/grid/component.js","client/pods/components/simple-editor/page-block-display/images/grid/template.js","client/pods/components/simple-editor/page-block-display/images/template.js","client/pods/components/simple-editor/page-block-display/products/component.js","client/pods/components/simple-editor/page-block-display/products/product-preview/component.js","client/pods/components/simple-editor/page-block-display/products/product-preview/template.js","client/pods/components/simple-editor/page-block-display/products/template.js","client/pods/components/simple-editor/page-block-display/social-links/component.js","client/pods/components/simple-editor/page-block-display/social-links/social-link/component.js","client/pods/components/simple-editor/page-block-display/social-links/social-link/template.js","client/pods/components/simple-editor/page-block-display/social-links/template.js","client/pods/components/simple-editor/page-block-display/tabs/component.js","client/pods/components/simple-editor/page-block-display/tabs/nested-block/component.js","client/pods/components/simple-editor/page-block-display/tabs/nested-block/template.js","client/pods/components/simple-editor/page-block-display/tabs/template.js","client/pods/components/simple-editor/page-block-display/texts/advanced/component.js","client/pods/components/simple-editor/page-block-display/texts/advanced/template.js","client/pods/components/simple-editor/page-block-display/texts/basic/component.js","client/pods/components/simple-editor/page-block-display/texts/basic/template.js","client/pods/components/simple-editor/page-block-display/texts/component.js","client/pods/components/simple-editor/page-block-display/texts/template.js","client/pods/components/simple-editor/page-block-display/videos/component.js","client/pods/components/simple-editor/page-block-display/videos/template.js","client/pods/components/simple-editor/page-block-display/videos/tiktok/component.js","client/pods/components/simple-editor/page-block-display/videos/tiktok/template.js","client/pods/components/simple-editor/page-block-display/videos/youtube-lite/component.js","client/pods/components/simple-editor/page-block-display/videos/youtube-lite/template.js","client/pods/components/simple-editor/page-block-display/videos/youtube-shorts/component.js","client/pods/components/simple-editor/page-block-display/videos/youtube-shorts/template.js","client/pods/components/simple-editor/page-block-editor/base/background-color/component.js","client/pods/components/simple-editor/page-block-editor/base/background-color/template.js","client/pods/components/simple-editor/page-block-editor/base/container-advanced/component.js","client/pods/components/simple-editor/page-block-editor/base/container-advanced/template.js","client/pods/components/simple-editor/page-block-editor/base/container-align/component.js","client/pods/components/simple-editor/page-block-editor/base/container-align/template.js","client/pods/components/simple-editor/page-block-editor/base/content-btn/component.js","client/pods/components/simple-editor/page-block-editor/base/content-btn/template.js","client/pods/components/simple-editor/page-block-editor/base/contents/image/component.js","client/pods/components/simple-editor/page-block-editor/base/contents/image/template.js","client/pods/components/simple-editor/page-block-editor/base/contents/links-or-buttons/component.js","client/pods/components/simple-editor/page-block-editor/base/contents/links-or-buttons/template.js","client/pods/components/simple-editor/page-block-editor/base/contents/text/component.js","client/pods/components/simple-editor/page-block-editor/base/contents/text/template.js","client/pods/components/simple-editor/page-block-editor/base/focus-column-btn/component.js","client/pods/components/simple-editor/page-block-editor/base/focus-column-btn/template.js","client/pods/components/simple-editor/page-block-editor/base/focus-column/component.js","client/pods/components/simple-editor/page-block-editor/base/focus-column/template.js","client/pods/components/simple-editor/page-block-editor/base/font-align/component.js","client/pods/components/simple-editor/page-block-editor/base/font-align/template.js","client/pods/components/simple-editor/page-block-editor/base/font-color/component.js","client/pods/components/simple-editor/page-block-editor/base/font-color/template.js","client/pods/components/simple-editor/page-block-editor/base/font-size/component.js","client/pods/components/simple-editor/page-block-editor/base/font-size/template.js","client/pods/components/simple-editor/page-block-editor/base/font-styles/component.js","client/pods/components/simple-editor/page-block-editor/base/font-styles/template.js","client/pods/components/simple-editor/page-block-editor/base/images-selector/component.js","client/pods/components/simple-editor/page-block-editor/base/images-selector/template.js","client/pods/components/simple-editor/page-block-editor/base/panels-container/component.js","client/pods/components/simple-editor/page-block-editor/base/panels-container/template.js","client/pods/components/simple-editor/page-block-editor/base/presets/page-block-content-preview/component.js","client/pods/components/simple-editor/page-block-editor/base/presets/page-block-content-preview/template.js","client/pods/components/simple-editor/page-block-editor/base/presets/page-block-preview/component.js","client/pods/components/simple-editor/page-block-editor/base/presets/page-block-preview/template.js","client/pods/components/simple-editor/page-block-editor/base/preview-btns/component.js","client/pods/components/simple-editor/page-block-editor/base/preview-btns/template.js","client/pods/components/simple-editor/page-block-editor/base/title-styles/component.js","client/pods/components/simple-editor/page-block-editor/base/title-styles/template.js","client/pods/components/simple-editor/page-block-editor/blogs/component.js","client/pods/components/simple-editor/page-block-editor/blogs/template.js","client/pods/components/simple-editor/page-block-editor/buttons/add-contents/component.js","client/pods/components/simple-editor/page-block-editor/buttons/add-contents/template.js","client/pods/components/simple-editor/page-block-editor/buttons/component.js","client/pods/components/simple-editor/page-block-editor/buttons/contents/buttons/component.js","client/pods/components/simple-editor/page-block-editor/buttons/contents/buttons/template.js","client/pods/components/simple-editor/page-block-editor/buttons/template.js","client/pods/components/simple-editor/page-block-editor/component.js","client/pods/components/simple-editor/page-block-editor/custom/component.js","client/pods/components/simple-editor/page-block-editor/custom/template.js","client/pods/components/simple-editor/page-block-editor/faqs/component.js","client/pods/components/simple-editor/page-block-editor/faqs/template.js","client/pods/components/simple-editor/page-block-editor/features/component.js","client/pods/components/simple-editor/page-block-editor/features/contents/component.js","client/pods/components/simple-editor/page-block-editor/features/contents/features/component.js","client/pods/components/simple-editor/page-block-editor/features/contents/features/template.js","client/pods/components/simple-editor/page-block-editor/features/contents/image-and-text-base/component.js","client/pods/components/simple-editor/page-block-editor/features/contents/image-and-text-base/template.js","client/pods/components/simple-editor/page-block-editor/features/contents/image-only-one/component.js","client/pods/components/simple-editor/page-block-editor/features/contents/image-only-one/template.js","client/pods/components/simple-editor/page-block-editor/features/contents/template.js","client/pods/components/simple-editor/page-block-editor/features/contents/text-and-image-split-one/component.js","client/pods/components/simple-editor/page-block-editor/features/contents/text-and-image-split-one/template.js","client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-one/component.js","client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-one/template.js","client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-two/component.js","client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-two/template.js","client/pods/components/simple-editor/page-block-editor/features/contents/top-down-one/component.js","client/pods/components/simple-editor/page-block-editor/features/contents/top-down-one/template.js","client/pods/components/simple-editor/page-block-editor/features/panels/contents/component.js","client/pods/components/simple-editor/page-block-editor/features/panels/contents/template.js","client/pods/components/simple-editor/page-block-editor/features/template.js","client/pods/components/simple-editor/page-block-editor/flows/component.js","client/pods/components/simple-editor/page-block-editor/flows/flow/component.js","client/pods/components/simple-editor/page-block-editor/flows/flow/template.js","client/pods/components/simple-editor/page-block-editor/flows/template.js","client/pods/components/simple-editor/page-block-editor/images/component.js","client/pods/components/simple-editor/page-block-editor/images/contents/component.js","client/pods/components/simple-editor/page-block-editor/images/contents/image/component.js","client/pods/components/simple-editor/page-block-editor/images/contents/image/template.js","client/pods/components/simple-editor/page-block-editor/images/contents/images/component.js","client/pods/components/simple-editor/page-block-editor/images/contents/images/template.js","client/pods/components/simple-editor/page-block-editor/images/contents/links-or-buttons/component.js","client/pods/components/simple-editor/page-block-editor/images/contents/links-or-buttons/template.js","client/pods/components/simple-editor/page-block-editor/images/contents/template.js","client/pods/components/simple-editor/page-block-editor/images/contents/text/component.js","client/pods/components/simple-editor/page-block-editor/images/contents/text/template.js","client/pods/components/simple-editor/page-block-editor/images/template.js","client/pods/components/simple-editor/page-block-editor/news/component.js","client/pods/components/simple-editor/page-block-editor/news/template.js","client/pods/components/simple-editor/page-block-editor/products/component.js","client/pods/components/simple-editor/page-block-editor/products/template.js","client/pods/components/simple-editor/page-block-editor/social-links/component.js","client/pods/components/simple-editor/page-block-editor/social-links/social-link/component.js","client/pods/components/simple-editor/page-block-editor/social-links/social-link/template.js","client/pods/components/simple-editor/page-block-editor/social-links/template.js","client/pods/components/simple-editor/page-block-editor/tabs/component.js","client/pods/components/simple-editor/page-block-editor/tabs/contents/component.js","client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/component.js","client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/contents/component.js","client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/contents/template.js","client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/template.js","client/pods/components/simple-editor/page-block-editor/tabs/contents/template.js","client/pods/components/simple-editor/page-block-editor/tabs/template.js","client/pods/components/simple-editor/page-block-editor/template.js","client/pods/components/simple-editor/page-block-editor/texts/component.js","client/pods/components/simple-editor/page-block-editor/texts/template.js","client/pods/components/simple-editor/page-block-editor/videos/component.js","client/pods/components/simple-editor/page-block-editor/videos/template.js","client/pods/components/simple-editor/page-block-import-btn/component.js","client/pods/components/simple-editor/page-block-import-btn/template.js","client/pods/components/simple-editor/page-block-import/button/component.js","client/pods/components/simple-editor/page-block-import/button/template.js","client/pods/components/simple-editor/page-block-import/templates/component.js","client/pods/components/simple-editor/page-block-import/templates/template.js","client/pods/components/simple-editor/page-block-import/templates/template/component.js","client/pods/components/simple-editor/page-block-import/templates/template/template.js","client/pods/components/simple-editor/page-block-preview/blogs/blog-preview/component.js","client/pods/components/simple-editor/page-block-preview/blogs/blog-preview/template.js","client/pods/components/simple-editor/page-block-preview/blogs/component.js","client/pods/components/simple-editor/page-block-preview/blogs/template.js","client/pods/components/simple-editor/page-block-preview/component.js","client/pods/components/simple-editor/page-block-preview/custom/component.js","client/pods/components/simple-editor/page-block-preview/custom/template.js","client/pods/components/simple-editor/page-block-preview/faqs/component.js","client/pods/components/simple-editor/page-block-preview/faqs/faq-preview/component.js","client/pods/components/simple-editor/page-block-preview/faqs/faq-preview/template.js","client/pods/components/simple-editor/page-block-preview/faqs/template.js","client/pods/components/simple-editor/page-block-preview/flows/component.js","client/pods/components/simple-editor/page-block-preview/flows/flow-preview/component.js","client/pods/components/simple-editor/page-block-preview/flows/flow-preview/template.js","client/pods/components/simple-editor/page-block-preview/flows/template.js","client/pods/components/simple-editor/page-block-preview/news/component.js","client/pods/components/simple-editor/page-block-preview/news/news-preview/component.js","client/pods/components/simple-editor/page-block-preview/news/news-preview/template.js","client/pods/components/simple-editor/page-block-preview/news/template.js","client/pods/components/simple-editor/page-block-preview/products/component.js","client/pods/components/simple-editor/page-block-preview/products/product-preview/component.js","client/pods/components/simple-editor/page-block-preview/products/product-preview/template.js","client/pods/components/simple-editor/page-block-preview/products/template.js","client/pods/components/simple-editor/page-block-preview/template.js","client/pods/components/simple-editor/page-block-tree/component.js","client/pods/components/simple-editor/page-block-tree/features/component.js","client/pods/components/simple-editor/page-block-tree/features/template.js","client/pods/components/simple-editor/page-block-tree/template.js","client/pods/components/simple-editor/tab-menu/component.js","client/pods/components/simple-editor/tab-menu/tab-item/component.js","client/pods/components/simple-editor/tab-menu/tab-item/template.js","client/pods/components/simple-editor/tab-menu/template.js","client/pods/components/simple-editor/template.js","client/pods/components/specs/specs-editor/component.js","client/pods/components/specs/specs-editor/specs-table/component.js","client/pods/components/specs/specs-editor/specs-table/template.js","client/pods/components/specs/specs-editor/template.js","client/pods/components/status-schedules/component.js","client/pods/components/status-schedules/status-schedules-row/component.js","client/pods/components/status-schedules/status-schedules-row/template.js","client/pods/components/status-schedules/template.js","client/pods/components/store-location/files/files-default-image/component.js","client/pods/components/store-location/files/files-default-image/template.js","client/pods/components/store-location/files/files-gallery-uploader/component.js","client/pods/components/store-location/files/files-gallery-uploader/template.js","client/pods/components/store-location/files/mixins/store-location-files.js","client/pods/components/store-location/panels-dash/component.js","client/pods/components/store-location/panels-dash/template.js","client/pods/components/store-location/panels-display/component.js","client/pods/components/store-location/panels-display/template.js","client/pods/components/store-location/panels-edit/component.js","client/pods/components/store-location/panels-edit/template.js","client/pods/components/store-location/panels-new/component.js","client/pods/components/store-location/panels-new/template.js","client/pods/components/store-location/search-bar/component.js","client/pods/components/store-location/search-bar/search-results/component.js","client/pods/components/store-location/search-bar/search-results/search-row/component.js","client/pods/components/store-location/search-bar/search-results/search-row/template.js","client/pods/components/store-location/search-bar/search-results/template.js","client/pods/components/store-location/search-bar/template.js","client/pods/components/store-location/search-filters/component.js","client/pods/components/store-location/search-filters/template.js","client/pods/components/store-location/search-results/component.js","client/pods/components/store-location/search-results/template.js","client/pods/components/store-location/store-location-card/component.js","client/pods/components/store-location/store-location-card/template.js","client/pods/components/store-location/store-location-editor/component.js","client/pods/components/store-location/store-location-editor/template.js","client/pods/components/store-location/tab-container/component.js","client/pods/components/store-location/tab-container/template.js","client/pods/components/store-location/table-view/detail-row/component.js","client/pods/components/store-location/table-view/detail-row/template.js","client/pods/components/stories/component.js","client/pods/components/stories/template.js","client/pods/components/tabs/for-each/component.js","client/pods/components/tabs/for-each/template.js","client/pods/components/tabs/tab-header/component.js","client/pods/components/tabs/tab-header/template.js","client/pods/components/tabs/tab-headerpvt/component.js","client/pods/components/tabs/tab-headerpvt/template.js","client/pods/components/tabs/tab-headers/component.js","client/pods/components/tabs/tab-headers/template.js","client/pods/components/tags/tags-editor/component.js","client/pods/components/tags/tags-editor/template.js","client/pods/components/taxes-editor/component.js","client/pods/components/taxes-editor/template.js","client/pods/components/transporters/accounts-editor/component.js","client/pods/components/transporters/accounts-editor/template.js","client/pods/components/transporters/accounts/component.js","client/pods/components/transporters/accounts/template.js","client/pods/components/transporters/component.js","client/pods/components/transporters/contact/component.js","client/pods/components/transporters/contact/template.js","client/pods/components/transporters/credentials-modal/component.js","client/pods/components/transporters/credentials-modal/template.js","client/pods/components/transporters/credentials/component.js","client/pods/components/transporters/credentials/template.js","client/pods/components/transporters/editor-component/component.js","client/pods/components/transporters/editor-component/template.js","client/pods/components/transporters/hct-editor/component.js","client/pods/components/transporters/hct-editor/template.js","client/pods/components/transporters/hct-page-waybill/component.js","client/pods/components/transporters/hct-page-waybill/template.js","client/pods/components/transporters/hct-row-waybill/component.js","client/pods/components/transporters/hct-row-waybill/template.js","client/pods/components/transporters/hct-sender-details/component.js","client/pods/components/transporters/hct-sender-details/template.js","client/pods/components/transporters/hct-summary/component.js","client/pods/components/transporters/hct-summary/hct-summary-row/component.js","client/pods/components/transporters/hct-summary/hct-summary-row/template.js","client/pods/components/transporters/hct-summary/template.js","client/pods/components/transporters/hct-waybill/component.js","client/pods/components/transporters/hct-waybill/template.js","client/pods/components/transporters/hct-waybills-list/component.js","client/pods/components/transporters/hct-waybills-list/template.js","client/pods/components/transporters/hct-waybills-settings/component.js","client/pods/components/transporters/hct-waybills-settings/template.js","client/pods/components/transporters/hct/pickup-location/editor-extension/component.js","client/pods/components/transporters/hct/pickup-location/editor-extension/template.js","client/pods/components/transporters/hct/pickup/editor-extension/component.js","client/pods/components/transporters/hct/pickup/editor-extension/template.js","client/pods/components/transporters/iframe-waybills/component.js","client/pods/components/transporters/iframe-waybills/template.js","client/pods/components/transporters/payuni-seven-eleven-editor/component.js","client/pods/components/transporters/payuni-seven-eleven-editor/template.js","client/pods/components/transporters/payuni-seven-eleven-sender-details/component.js","client/pods/components/transporters/payuni-seven-eleven-sender-details/template.js","client/pods/components/transporters/payuni-seven-eleven-waybill/component.js","client/pods/components/transporters/payuni-seven-eleven-waybill/template.js","client/pods/components/transporters/payuni-seven-eleven-waybills-settings/component.js","client/pods/components/transporters/payuni-seven-eleven-waybills-settings/template.js","client/pods/components/transporters/payuni-seven-eleven/pickup-location/editor-extension/component.js","client/pods/components/transporters/payuni-seven-eleven/pickup-location/editor-extension/template.js","client/pods/components/transporters/sender-details/component.js","client/pods/components/transporters/sender-details/template.js","client/pods/components/transporters/sender-list-btn/component.js","client/pods/components/transporters/sender-list-btn/template.js","client/pods/components/transporters/seven-eleven-editor/component.js","client/pods/components/transporters/seven-eleven-editor/template.js","client/pods/components/transporters/seven-eleven-sender-details/component.js","client/pods/components/transporters/seven-eleven-sender-details/template.js","client/pods/components/transporters/seven-eleven-waybill/component.js","client/pods/components/transporters/seven-eleven-waybill/template.js","client/pods/components/transporters/seven-eleven-waybills-settings/component.js","client/pods/components/transporters/seven-eleven-waybills-settings/template.js","client/pods/components/transporters/seven-eleven/pickup-location/editor-extension/component.js","client/pods/components/transporters/seven-eleven/pickup-location/editor-extension/template.js","client/pods/components/transporters/seven-eleven/pickup-location/return-store-editor/component.js","client/pods/components/transporters/seven-eleven/pickup-location/return-store-editor/template.js","client/pods/components/transporters/seven-eleven/pickup/editor-extension/component.js","client/pods/components/transporters/seven-eleven/pickup/editor-extension/template.js","client/pods/components/transporters/seven-eleven/store-selector/component.js","client/pods/components/transporters/seven-eleven/store-selector/template.js","client/pods/components/transporters/t-cat-editor/component.js","client/pods/components/transporters/t-cat-editor/template.js","client/pods/components/transporters/t-cat-sender-details/component.js","client/pods/components/transporters/t-cat-sender-details/template.js","client/pods/components/transporters/t-cat-waybill/component.js","client/pods/components/transporters/t-cat-waybill/template.js","client/pods/components/transporters/t-cat-waybills-settings/component.js","client/pods/components/transporters/t-cat-waybills-settings/template.js","client/pods/components/transporters/t-cat/pickup-location/editor-extension/component.js","client/pods/components/transporters/t-cat/pickup-location/editor-extension/template.js","client/pods/components/transporters/t-cat/pickup/editor-extension/component.js","client/pods/components/transporters/t-cat/pickup/editor-extension/template.js","client/pods/components/transporters/template.js","client/pods/components/transporters/transporter-editor/component.js","client/pods/components/transporters/transporter-editor/template.js","client/pods/components/transporters/waybill-display/component.js","client/pods/components/transporters/waybill-display/list/component.js","client/pods/components/transporters/waybill-display/list/item/component.js","client/pods/components/transporters/waybill-display/list/item/template.js","client/pods/components/transporters/waybill-display/list/template.js","client/pods/components/transporters/waybill-display/template.js","client/pods/components/transporters/waybill-editor/component.js","client/pods/components/transporters/waybill-editor/template.js","client/pods/components/units-editor/component.js","client/pods/components/units-editor/template.js","client/pods/components/updates/update-btn/component.js","client/pods/components/updates/update-btn/template.js","client/pods/components/updates/update-notify-btn/component.js","client/pods/components/updates/update-notify-btn/template.js","client/pods/components/user-login/component.js","client/pods/components/user-login/template.js","client/pods/components/users/assign-results/component.js","client/pods/components/users/assign-results/template.js","client/pods/components/users/ip-addresses-editor/component.js","client/pods/components/users/ip-addresses-editor/template.js","client/pods/components/users/ip-addresses-users/component.js","client/pods/components/users/ip-addresses-users/template.js","client/pods/components/users/panels-dash/component.js","client/pods/components/users/panels-dash/template.js","client/pods/components/users/panels-display/component.js","client/pods/components/users/panels-display/template.js","client/pods/components/users/panels-edit/component.js","client/pods/components/users/panels-edit/template.js","client/pods/components/users/panels-new/component.js","client/pods/components/users/panels-new/template.js","client/pods/components/users/search-results-persons-item/component.js","client/pods/components/users/search-results-persons-item/template.js","client/pods/components/users/search-results/component.js","client/pods/components/users/search-results/template.js","client/pods/components/users/tab-container/component.js","client/pods/components/users/tab-container/template.js","client/pods/components/users/users-editor/component.js","client/pods/components/users/users-editor/template.js","client/pods/components/users/users-selector/component.js","client/pods/components/users/users-selector/template.js","client/pods/components/websites/links-editor-modal/component.js","client/pods/components/websites/links-editor-modal/template.js","client/pods/components/websites/links-editor/component.js","client/pods/components/websites/links-editor/template.js","client/pods/components/websites/mixins/websites-list-by.js","client/pods/components/websites/panels-dash/component.js","client/pods/components/websites/panels-dash/template.js","client/pods/components/websites/panels-display/component.js","client/pods/components/websites/panels-display/sub-panels-3rd-party/component.js","client/pods/components/websites/panels-display/sub-panels-3rd-party/template.js","client/pods/components/websites/panels-display/sub-panels-blogs/component.js","client/pods/components/websites/panels-display/sub-panels-blogs/template.js","client/pods/components/websites/panels-display/sub-panels-emails/component.js","client/pods/components/websites/panels-display/sub-panels-emails/template.js","client/pods/components/websites/panels-display/sub-panels-footer-btns/component.js","client/pods/components/websites/panels-display/sub-panels-footer-btns/template.js","client/pods/components/websites/panels-display/sub-panels-headers/component.js","client/pods/components/websites/panels-display/sub-panels-headers/template.js","client/pods/components/websites/panels-display/sub-panels-news/component.js","client/pods/components/websites/panels-display/sub-panels-news/template.js","client/pods/components/websites/panels-display/sub-panels-overview/component.js","client/pods/components/websites/panels-display/sub-panels-overview/template.js","client/pods/components/websites/panels-display/sub-panels-pages/component.js","client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/component.js","client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-item/component.js","client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-item/template.js","client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-nested/component.js","client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-nested/template.js","client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/template.js","client/pods/components/websites/panels-display/sub-panels-pages/pages-display/component.js","client/pods/components/websites/panels-display/sub-panels-pages/pages-display/template.js","client/pods/components/websites/panels-display/sub-panels-pages/pages-edit/component.js","client/pods/components/websites/panels-display/sub-panels-pages/pages-edit/template.js","client/pods/components/websites/panels-display/sub-panels-pages/pages-new/component.js","client/pods/components/websites/panels-display/sub-panels-pages/pages-new/template.js","client/pods/components/websites/panels-display/sub-panels-pages/template.js","client/pods/components/websites/panels-display/sub-panels-seo/component.js","client/pods/components/websites/panels-display/sub-panels-seo/template.js","client/pods/components/websites/panels-display/sub-panels-settings/component.js","client/pods/components/websites/panels-display/sub-panels-settings/template.js","client/pods/components/websites/panels-display/sub-panels-shop/component.js","client/pods/components/websites/panels-display/sub-panels-shop/template.js","client/pods/components/websites/panels-display/sub-panels-store-location/component.js","client/pods/components/websites/panels-display/sub-panels-store-location/template.js","client/pods/components/websites/panels-display/sub-panels-style/component.js","client/pods/components/websites/panels-display/sub-panels-style/template.js","client/pods/components/websites/panels-display/template.js","client/pods/components/websites/panels-edit/component.js","client/pods/components/websites/panels-edit/template.js","client/pods/components/websites/panels-empty/template.js","client/pods/components/websites/panels-new/component.js","client/pods/components/websites/panels-new/template.js","client/pods/components/websites/search-results/component.js","client/pods/components/websites/search-results/links/component.js","client/pods/components/websites/search-results/links/template.js","client/pods/components/websites/search-results/template.js","client/pods/components/websites/tab-container/component.js","client/pods/components/websites/tab-container/template.js","client/pods/components/websites/websites-editor/3rd-party-editor/component.js","client/pods/components/websites/websites-editor/3rd-party-editor/template.js","client/pods/components/websites/websites-editor/component.js","client/pods/components/websites/websites-editor/emails-editor/component.js","client/pods/components/websites/websites-editor/emails-editor/template.js","client/pods/components/websites/websites-editor/headers-editor/component.js","client/pods/components/websites/websites-editor/headers-editor/template.js","client/pods/components/websites/websites-editor/page-import-btn/template.js","client/pods/components/websites/websites-editor/pages-editor/add-page/component.js","client/pods/components/websites/websites-editor/pages-editor/add-page/template.js","client/pods/components/websites/websites-editor/pages-editor/component.js","client/pods/components/websites/websites-editor/pages-editor/preview-link/component.js","client/pods/components/websites/websites-editor/pages-editor/preview-link/template.js","client/pods/components/websites/websites-editor/pages-editor/settings-modal/component.js","client/pods/components/websites/websites-editor/pages-editor/settings-modal/template.js","client/pods/components/websites/websites-editor/pages-editor/template.js","client/pods/components/websites/websites-editor/seo-editor/component.js","client/pods/components/websites/websites-editor/seo-editor/template.js","client/pods/components/websites/websites-editor/settings-editor/component.js","client/pods/components/websites/websites-editor/settings-editor/template.js","client/pods/components/websites/websites-editor/style-editor/component.js","client/pods/components/websites/websites-editor/style-editor/filters-editor/component.js","client/pods/components/websites/websites-editor/style-editor/filters-editor/template.js","client/pods/components/websites/websites-editor/style-editor/template.js","client/pods/components/websites/websites-editor/template.js","client/pods/components/websites/websites-editor/templates/component.js","client/pods/components/websites/websites-editor/templates/private-shop-template/component.js","client/pods/components/websites/websites-editor/templates/private-shop-template/template.js","client/pods/components/websites/websites-editor/templates/private-template/component.js","client/pods/components/websites/websites-editor/templates/private-template/template.js","client/pods/components/websites/websites-editor/templates/public-template/component.js","client/pods/components/websites/websites-editor/templates/public-template/template.js","client/pods/components/websites/websites-editor/templates/template.js","client/pods/components/websites/websites-editor/website-wizard/quick-shop/component.js","client/pods/components/websites/websites-editor/website-wizard/quick-shop/template.js","client/pods/components/websites/websites-editor/website-wizard/quick-start/component.js","client/pods/components/websites/websites-editor/website-wizard/quick-start/template.js","client/pods/components/websites/websites-editor/website-wizard/quick-templates/component.js","client/pods/components/websites/websites-editor/website-wizard/quick-templates/template.js","client/pods/components/wizards/wizard-btns/component.js","client/pods/components/wizards/wizard-btns/template.js","client/pods/components/wizards/wizard-container/component.js","client/pods/components/wizards/wizard-container/template.js","client/pods/components/workflows/create-dynamic/component.js","client/pods/components/workflows/create-dynamic/template.js","client/pods/components/workflows/create-dynamic/workflow-editor-wrapper/component.js","client/pods/components/workflows/create-dynamic/workflow-editor-wrapper/template.js","client/pods/components/workflows/dynamic-wrapper/component.js","client/pods/components/workflows/dynamic-wrapper/template.js","client/pods/components/workflows/items/activities/editor/component.js","client/pods/components/workflows/items/activities/editor/template.js","client/pods/components/workflows/items/activities/event/component.js","client/pods/components/workflows/items/activities/event/template.js","client/pods/components/workflows/items/activities/note/component.js","client/pods/components/workflows/items/activities/note/template.js","client/pods/components/workflows/items/activities/templates/component.js","client/pods/components/workflows/items/activities/templates/template.js","client/pods/components/workflows/items/card/component.js","client/pods/components/workflows/items/card/template.js","client/pods/components/workflows/items/editor/component.js","client/pods/components/workflows/items/editor/template.js","client/pods/components/workflows/items/mark-as-closed/component.js","client/pods/components/workflows/items/mark-as-closed/template.js","client/pods/components/workflows/items/mark-as-completed/component.js","client/pods/components/workflows/items/mark-as-completed/template.js","client/pods/components/workflows/panels-dash/component.js","client/pods/components/workflows/panels-dash/template.js","client/pods/components/workflows/panels-display-item/component.js","client/pods/components/workflows/panels-display-item/template.js","client/pods/components/workflows/panels-display/component.js","client/pods/components/workflows/panels-display/template.js","client/pods/components/workflows/related/editor/component.js","client/pods/components/workflows/related/editor/detail-editor/component.js","client/pods/components/workflows/related/editor/detail-editor/template.js","client/pods/components/workflows/related/editor/detail-searcher/component.js","client/pods/components/workflows/related/editor/detail-searcher/template.js","client/pods/components/workflows/related/editor/template.js","client/pods/components/workflows/search-filters/component.js","client/pods/components/workflows/search-filters/template.js","client/pods/components/workflows/status-tags/component.js","client/pods/components/workflows/status-tags/status-tag/component.js","client/pods/components/workflows/status-tags/status-tag/template.js","client/pods/components/workflows/status-tags/template.js","client/pods/components/workflows/tab-container/component.js","client/pods/components/workflows/tab-container/template.js","client/pods/components/workflows/workflow-btn/component.js","client/pods/components/workflows/workflow-btn/template.js","client/pods/components/workflows/workflow-editor/component.js","client/pods/components/workflows/workflow-editor/stages-editor/component.js","client/pods/components/workflows/workflow-editor/stages-editor/detail-editor/component.js","client/pods/components/workflows/workflow-editor/stages-editor/detail-editor/template.js","client/pods/components/workflows/workflow-editor/stages-editor/template.js","client/pods/components/workflows/workflow-editor/template.js","client/pods/constants/service.js","client/pods/contacts/activity/filters/adapter.js","client/pods/contacts/activity/filters/model.js","client/pods/contacts/adapter.js","client/pods/contacts/aging/filters/adapter.js","client/pods/contacts/aging/filters/model.js","client/pods/contacts/aging/purchases/adapter.js","client/pods/contacts/aging/purchases/model.js","client/pods/contacts/aging/sales/adapter.js","client/pods/contacts/aging/sales/model.js","client/pods/contacts/batch/adapter.js","client/pods/contacts/batch/statuses/adapter.js","client/pods/contacts/batch/tags/adapter.js","client/pods/contacts/data/groups/adapter.js","client/pods/contacts/data/groups/model.js","client/pods/contacts/departments/adapter.js","client/pods/contacts/departments/model.js","client/pods/contacts/details/adapter.js","client/pods/contacts/details/model.js","client/pods/contacts/filters/adapter.js","client/pods/contacts/filters/doc-totals/adapter.js","client/pods/contacts/filters/doc-totals/model.js","client/pods/contacts/filters/model.js","client/pods/contacts/filters/transactions/adapter.js","client/pods/contacts/filters/transactions/model.js","client/pods/contacts/groups/adapter.js","client/pods/contacts/groups/criterias/adapter.js","client/pods/contacts/groups/criterias/by/adapter.js","client/pods/contacts/groups/criterias/model.js","client/pods/contacts/groups/filters/adapter.js","client/pods/contacts/groups/filters/model.js","client/pods/contacts/groups/model.js","client/pods/contacts/lists/allowed-payment-method/adapter.js","client/pods/contacts/lists/cashbook-relationships-filter/adapter.js","client/pods/contacts/lists/detail-types/adapter.js","client/pods/contacts/lists/filters/doc-totals/data-ranges/adapter.js","client/pods/contacts/lists/filters/doc-totals/props-criteria/adapter.js","client/pods/contacts/lists/filters/doc-totals/props/adapter.js","client/pods/contacts/lists/filters/extra/adapter.js","client/pods/contacts/lists/filters/relationships/adapter.js","client/pods/contacts/lists/filters/search/adapter.js","client/pods/contacts/lists/filters/sort/adapter.js","client/pods/contacts/lists/filters/status/adapter.js","client/pods/contacts/lists/filters/transactions/criterias/adapter.js","client/pods/contacts/lists/filters/transactions/props/adapter.js","client/pods/contacts/lists/genders/adapter.js","client/pods/contacts/lists/import-columns/adapter.js","client/pods/contacts/lists/is-transporter/adapter.js","client/pods/contacts/lists/menu/adapter.js","client/pods/contacts/lists/panels/adapter.js","client/pods/contacts/lists/relationships/adapter.js","client/pods/contacts/lists/sub-types-address/adapter.js","client/pods/contacts/lists/sub-types-note/adapter.js","client/pods/contacts/lists/sub-types-phone/adapter.js","client/pods/contacts/lists/tag-report-options/adapter.js","client/pods/contacts/lists/tags/adapter.js","client/pods/contacts/lists/tax-methods/adapter.js","client/pods/contacts/model.js","client/pods/contacts/persons/adapter.js","client/pods/contacts/persons/contacts-persons.js","client/pods/contacts/persons/model.js","client/pods/contacts/portals/users/adapter.js","client/pods/contacts/portals/users/model.js","client/pods/contacts/preview/adapter.js","client/pods/contacts/report/adapter.js","client/pods/contacts/report/filters/adapter.js","client/pods/contacts/report/filters/model.js","client/pods/contacts/report/model.js","client/pods/contacts/rewards/adapter.js","client/pods/contacts/rewards/lists/history-periods/adapter.js","client/pods/contacts/rewards/recipients/adapter.js","client/pods/contacts/rewards/recipients/filters/adapter.js","client/pods/contacts/rewards/recipients/filters/model.js","client/pods/contacts/rewards/recipients/model.js","client/pods/contacts/service.js","client/pods/contacts/statements/adapter.js","client/pods/contacts/statements/filters/adapter.js","client/pods/contacts/statements/filters/model.js","client/pods/contacts/statements/model.js","client/pods/contacts/transporters/adapter.js","client/pods/contacts/transporters/filters/adapter.js","client/pods/contacts/transporters/model.js","client/pods/contacts/wizard/transporter/adapter.js","client/pods/contacts/wizard/transporter/hct/adapter.js","client/pods/contacts/wizard/transporter/model.js","client/pods/contacts/wizard/transporter/payuni-seven-eleven/adapter.js","client/pods/contacts/wizard/transporter/seven-eleven/adapter.js","client/pods/contacts/wizard/transporter/t-cat/adapter.js","client/pods/contacts/wizard/transporter/validate-credentials/adapter.js","client/pods/crud/service.js","client/pods/data-manager/service.js","client/pods/data-types/adapter.js","client/pods/date/lists/durations/adapter.js","client/pods/date/lists/hours/adapter.js","client/pods/date/lists/unit-of-time/adapter.js","client/pods/date/service.js","client/pods/days-of-week/adapter.js","client/pods/discounts/adapter.js","client/pods/discounts/types/adapter.js","client/pods/dispatch/adapter.js","client/pods/dispatch/export/adapter.js","client/pods/dispatch/export/filters/adapter.js","client/pods/dispatch/export/filters/model.js","client/pods/dispatch/export/model.js","client/pods/dispatch/filters/adapter.js","client/pods/dispatch/filters/model.js","client/pods/dispatch/lists/date-header/adapter.js","client/pods/dispatch/lists/dispatch-sort-direction/adapter.js","client/pods/dispatch/lists/dispatch-sort-filters-advanced/adapter.js","client/pods/dispatch/lists/dispatch-sort/adapter.js","client/pods/dispatch/lists/documents-sort-filters-advanced/adapter.js","client/pods/dispatch/lists/export-by-statuses/adapter.js","client/pods/dispatch/lists/export-file-type/adapter.js","client/pods/dispatch/lists/export-options/adapter.js","client/pods/dispatch/lists/export-pos/adapter.js","client/pods/dispatch/lists/filters/dispatchstatuses/adapter.js","client/pods/dispatch/lists/filters/sort/adapter.js","client/pods/dispatch/lists/menu/adapter.js","client/pods/dispatch/lists/print-all-sub-panels/adapter.js","client/pods/dispatch/lists/processes/adapter.js","client/pods/dispatch/lists/processes/custom-worksheets/adapter.js","client/pods/dispatch/lists/processes/menu/adapter.js","client/pods/dispatch/lists/processes/menu/waybills/seven-eleven/adapter.js","client/pods/dispatch/lists/processes/model.js","client/pods/dispatch/lists/specs/adapter.js","client/pods/dispatch/lists/statuses/adapter.js","client/pods/dispatch/lists/summary/adapter.js","client/pods/dispatch/model.js","client/pods/dispatch/processes/count/adapter.js","client/pods/dispatch/service.js","client/pods/dispatch/waybills/statuses/adapter.js","client/pods/dispatch/waybills/statuses/model.js","client/pods/doc-list-by/service.js","client/pods/documentation/adapter.js","client/pods/documentation/app-version.js","client/pods/documentation/features/adapter.js","client/pods/documentation/features/filters/adapter.js","client/pods/documentation/features/filters/model.js","client/pods/documentation/filters/adapter.js","client/pods/documentation/filters/model.js","client/pods/documentation/guide-id.js","client/pods/documentation/lists/help/adapter.js","client/pods/documentation/lists/resource/adapter.js","client/pods/documentation/lists/resource/admin/adapter.js","client/pods/documentation/lists/resource/campaigns/adapter.js","client/pods/documentation/lists/resource/contacts/adapter.js","client/pods/documentation/lists/resource/dispatch/adapter.js","client/pods/documentation/lists/resource/documents/adapter.js","client/pods/documentation/lists/resource/einvoices/adapter.js","client/pods/documentation/lists/resource/email/adapter.js","client/pods/documentation/lists/resource/products/adapter.js","client/pods/documentation/lists/resource/promocodes/adapter.js","client/pods/documentation/lists/resource/rewards/adapter.js","client/pods/documentation/lists/resource/settings/adapter.js","client/pods/documentation/lists/resource/users/adapter.js","client/pods/documentation/lists/resource/websites/adapter.js","client/pods/documentation/lists/settings/adapter.js","client/pods/documentation/lists/tags/adapter.js","client/pods/documentation/model.js","client/pods/documentation/service.js","client/pods/documentation/templates/adapter.js","client/pods/documentation/templates/model.js","client/pods/documents/batch/adapter.js","client/pods/documents/data/links/adapter.js","client/pods/documents/data/links/filters/adapter.js","client/pods/documents/data/links/filters/model.js","client/pods/documents/data/links/model.js","client/pods/documents/data/pending/adapter.js","client/pods/documents/data/pending/filters/adapter.js","client/pods/documents/data/pending/filters/model.js","client/pods/documents/data/pending/menu/adapter.js","client/pods/documents/data/pending/model.js","client/pods/documents/data/pending/orders/adapter.js","client/pods/documents/data/pending/orders/filters/adapter.js","client/pods/documents/data/pending/orders/filters/model.js","client/pods/documents/data/pending/products/adapter.js","client/pods/documents/data/pending/types/adapter.js","client/pods/documents/data/products/adapter.js","client/pods/documents/data/products/model.js","client/pods/documents/data/products/transactions/adapter.js","client/pods/documents/data/products/transactions/model.js","client/pods/documents/data/split/adapter.js","client/pods/documents/data/split/model.js","client/pods/documents/details/adapter.js","client/pods/documents/details/calculations-always-inclusive.js","client/pods/documents/details/calculations-exclusive-or-inclusive.js","client/pods/documents/details/model.js","client/pods/documents/dispatch/filters/adapter.js","client/pods/documents/dispatch/filters/model.js","client/pods/documents/filters/adapter.js","client/pods/documents/filters/model.js","client/pods/documents/lists/date-filter/adapter.js","client/pods/documents/lists/date-range-filter/adapter.js","client/pods/documents/lists/deliverydatesoptions/adapter.js","client/pods/documents/lists/detail-types/adapter.js","client/pods/documents/lists/discountmethods/adapter.js","client/pods/documents/lists/filters/dispatch-status/adapter.js","client/pods/documents/lists/filters/extra/adapter.js","client/pods/documents/lists/filters/products-status/adapter.js","client/pods/documents/lists/filters/search/adapter.js","client/pods/documents/lists/filters/sort/adapter.js","client/pods/documents/lists/filters/statuses/adapter.js","client/pods/documents/lists/hide-printed/adapter.js","client/pods/documents/lists/import/dispatched/specs/adapter.js","client/pods/documents/lists/import/paid/specs/adapter.js","client/pods/documents/lists/menu/adapter.js","client/pods/documents/lists/menu/pos/adapter.js","client/pods/documents/lists/pos/macros/adapter.js","client/pods/documents/lists/print-styles/adapter.js","client/pods/documents/lists/print/adapter.js","client/pods/documents/lists/print/barcodes-mode/adapter.js","client/pods/documents/lists/print/images-size/adapter.js","client/pods/documents/lists/print/paper-size/adapter.js","client/pods/documents/lists/print/product-code/adapter.js","client/pods/documents/lists/print/returns-display/adapter.js","client/pods/documents/lists/print/unit/adapter.js","client/pods/documents/lists/statuses/adapter.js","client/pods/documents/lists/types/doc-types/adapter.js","client/pods/documents/lists/types/purchases/adapter.js","client/pods/documents/lists/types/sales/adapter.js","client/pods/documents/mixins/adapters.js","client/pods/documents/mixins/calculations-always-inclusive.js","client/pods/documents/mixins/calculations-exclusive-or-inclusive.js","client/pods/documents/mixins/calculations.js","client/pods/documents/mixins/contacts.js","client/pods/documents/mixins/details.js","client/pods/documents/mixins/details/adapters.js","client/pods/documents/mixins/linking.js","client/pods/documents/model.js","client/pods/documents/proxy/model.js","client/pods/documents/purchases/consignments-returns/adapter.js","client/pods/documents/purchases/consignments-returns/details/adapter.js","client/pods/documents/purchases/consignments/adapter.js","client/pods/documents/purchases/consignments/details/adapter.js","client/pods/documents/purchases/invoices/adapter.js","client/pods/documents/purchases/invoices/details/adapter.js","client/pods/documents/purchases/orders/adapter.js","client/pods/documents/purchases/orders/details/adapter.js","client/pods/documents/purchases/quotes/adapter.js","client/pods/documents/purchases/quotes/details/adapter.js","client/pods/documents/purchases/returns/adapter.js","client/pods/documents/purchases/returns/details/adapter.js","client/pods/documents/purchases/terms/adapter.js","client/pods/documents/sales/consignments-returns/adapter.js","client/pods/documents/sales/consignments-returns/details/adapter.js","client/pods/documents/sales/consignments/adapter.js","client/pods/documents/sales/consignments/details/adapter.js","client/pods/documents/sales/invoices/adapter.js","client/pods/documents/sales/invoices/details/adapter.js","client/pods/documents/sales/invoices/e-invoice/adapter.js","client/pods/documents/sales/invoices/preview/adapter.js","client/pods/documents/sales/orders/adapter.js","client/pods/documents/sales/orders/details/adapter.js","client/pods/documents/sales/quotes/adapter.js","client/pods/documents/sales/quotes/details/adapter.js","client/pods/documents/sales/returns/adapter.js","client/pods/documents/sales/returns/details/adapter.js","client/pods/documents/sales/terms/adapter.js","client/pods/documents/service.js","client/pods/documents/waybills/adapter.js","client/pods/drag-and-drop/service.js","client/pods/drag-drop-sort/service.js","client/pods/emails/adapter.js","client/pods/emails/campaigns/adapter.js","client/pods/emails/campaigns/edit-statuses/adapter.js","client/pods/emails/campaigns/filters/adapter.js","client/pods/emails/campaigns/filters/model.js","client/pods/emails/campaigns/model.js","client/pods/emails/filters/adapter.js","client/pods/emails/filters/model.js","client/pods/emails/lists/campaigns/menu/adapter.js","client/pods/emails/lists/filters/search/adapter.js","client/pods/emails/lists/filters/sort/adapter.js","client/pods/emails/lists/filters/status/adapter.js","client/pods/emails/lists/menu/adapter.js","client/pods/emails/lists/menu/notifications/adapter.js","client/pods/emails/lists/seven-eleven-custom-text-behavior/adapter.js","client/pods/emails/lists/seven-eleven-pickup-reminder-days/adapter.js","client/pods/emails/lists/to-send-tabs/adapter.js","client/pods/emails/service.js","client/pods/emails/templates/adapter.js","client/pods/excel/service.js","client/pods/export/lists/specs/shared/adapter.js","client/pods/export/service.js","client/pods/extensions/apps/tw/convenience-stores/adapter.js","client/pods/extensions/apps/tw/convenience-stores/lists/brands/adapter.js","client/pods/extensions/apps/tw/e-invoices/adapter.js","client/pods/extensions/apps/tw/e-invoices/available-count-to-issue/adapter.js","client/pods/extensions/apps/tw/e-invoices/available-count-to-issue/model.js","client/pods/extensions/apps/tw/e-invoices/carrier-types/adapter.js","client/pods/extensions/apps/tw/e-invoices/collection/adapter.js","client/pods/extensions/apps/tw/e-invoices/collection/model.js","client/pods/extensions/apps/tw/e-invoices/docs-for-display/adapter.js","client/pods/extensions/apps/tw/e-invoices/docs-for-display/model.js","client/pods/extensions/apps/tw/e-invoices/docs/adapter.js","client/pods/extensions/apps/tw/e-invoices/filters/adapter.js","client/pods/extensions/apps/tw/e-invoices/filters/model.js","client/pods/extensions/apps/tw/e-invoices/lists/auto-issue/adapter.js","client/pods/extensions/apps/tw/e-invoices/lists/filters/search/adapter.js","client/pods/extensions/apps/tw/e-invoices/lists/filters/sort/adapter.js","client/pods/extensions/apps/tw/e-invoices/lists/filters/status/adapter.js","client/pods/extensions/apps/tw/e-invoices/lists/printers/adapter.js","client/pods/extensions/apps/tw/e-invoices/lists/providers/adapter.js","client/pods/extensions/apps/tw/e-invoices/model.js","client/pods/extensions/apps/tw/e-invoices/printer/adapter.js","client/pods/extensions/apps/tw/e-invoices/printer/filters/adapter.js","client/pods/extensions/apps/tw/e-invoices/printer/filters/model.js","client/pods/extensions/apps/tw/e-invoices/printer/model.js","client/pods/extensions/apps/tw/e-invoices/reasons/adapter.js","client/pods/extensions/apps/tw/e-invoices/service.js","client/pods/extensions/apps/tw/e-invoices/to-issue/adapter.js","client/pods/extensions/apps/tw/e-invoices/to-issue/model.js","client/pods/extensions/apps/tw/e-invoices/tracks/adapter.js","client/pods/extensions/apps/tw/e-invoices/tracks/filters/adapter.js","client/pods/extensions/apps/tw/e-invoices/tracks/filters/model.js","client/pods/extensions/apps/tw/e-invoices/tracks/model.js","client/pods/extensions/apps/tw/e-invoices/tracks/numbers/adapter.js","client/pods/extensions/apps/tw/e-invoices/tracks/numbers/allocated/adapter.js","client/pods/extensions/apps/tw/e-invoices/tracks/numbers/allocated/model.js","client/pods/extensions/apps/tw/e-invoices/tracks/numbers/current-number/adapter.js","client/pods/extensions/apps/tw/e-invoices/tracks/numbers/current-number/model.js","client/pods/extensions/apps/tw/e-invoices/tracks/numbers/model.js","client/pods/extensions/apps/tw/hct/accounts/adapter.js","client/pods/extensions/apps/tw/hct/accounts/filters/adapter.js","client/pods/extensions/apps/tw/hct/adapter.js","client/pods/extensions/apps/tw/hct/batches/adapter.js","client/pods/extensions/apps/tw/hct/batches/filters/adapter.js","client/pods/extensions/apps/tw/hct/print/waybills/adapter.js","client/pods/extensions/apps/tw/hct/print/waybills/positions/adapter.js","client/pods/extensions/apps/tw/invoices/adapter.js","client/pods/extensions/apps/tw/invoicing-auto/adapter.js","client/pods/extensions/apps/tw/invoicing/adapter.js","client/pods/extensions/apps/tw/kerry/accounts/adapter.js","client/pods/extensions/apps/tw/kerry/accounts/filters/adapter.js","client/pods/extensions/apps/tw/kerry/adapter.js","client/pods/extensions/apps/tw/kerry/batches/adapter.js","client/pods/extensions/apps/tw/kerry/batches/filters/adapter.js","client/pods/extensions/apps/tw/payuni-payment-methods/adapter.js","client/pods/extensions/apps/tw/payuni-seven-eleven/accounts/adapter.js","client/pods/extensions/apps/tw/payuni-seven-eleven/type/adapter.js","client/pods/extensions/apps/tw/seven-eleven/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/delivery-time/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/package-size/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/product-type/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/send-email-frequency/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/thermosphere/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/type/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-b2c/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-c2c/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/waybill-print-per-page/adapter.js","client/pods/extensions/apps/tw/seven-eleven/lists/waybill-print-type/adapter.js","client/pods/extensions/apps/tw/seven-eleven/notification/adapter.js","client/pods/extensions/apps/tw/t-cat/accounts/adapter.js","client/pods/extensions/apps/tw/t-cat/accounts/filters/adapter.js","client/pods/extensions/apps/tw/t-cat/adapter.js","client/pods/extensions/apps/tw/t-cat/lists/delivery-time/adapter.js","client/pods/extensions/apps/tw/t-cat/lists/package-size/adapter.js","client/pods/extensions/apps/tw/t-cat/lists/product-type/adapter.js","client/pods/extensions/apps/tw/t-cat/lists/thermosphere/adapter.js","client/pods/extensions/apps/tw/t-cat/lists/waybill-print-type/adapter.js","client/pods/extensions/apps/tw/view/adapter.js","client/pods/extensions/lists/menu/adapter.js","client/pods/extensions/lists/submenu/adapter.js","client/pods/extensions/model.js","client/pods/extensions/service.js","client/pods/facebook/pages/adapter.js","client/pods/facebook/pixels/adapter.js","client/pods/faqs/adapter.js","client/pods/faqs/model.js","client/pods/filters/adapter.js","client/pods/filters/all/adapter.js","client/pods/filters/count/adapter.js","client/pods/filters/criterias/adapter.js","client/pods/filters/model.js","client/pods/filters/sort-direction/adapter.js","client/pods/filters/sort/model.js","client/pods/flows/adapter.js","client/pods/flows/criterias/adapter.js","client/pods/flows/criterias/model.js","client/pods/flows/data/adapter.js","client/pods/flows/data/filters/adapter.js","client/pods/flows/data/filters/model.js","client/pods/flows/filters/adapter.js","client/pods/flows/filters/model.js","client/pods/flows/form-steps/adapter.js","client/pods/flows/form-steps/model.js","client/pods/flows/lists/actions/adapter.js","client/pods/flows/lists/actions/games/adapter.js","client/pods/flows/lists/actions/games/scratch-card/background-types/adapter.js","client/pods/flows/lists/data-keys/adapter.js","client/pods/flows/lists/editor-sub-panels/adapter.js","client/pods/flows/lists/emails-send-conditions/adapter.js","client/pods/flows/lists/events-display/adapter.js","client/pods/flows/lists/events/adapter.js","client/pods/flows/lists/flow-key-types/adapter.js","client/pods/flows/lists/menu/adapter.js","client/pods/flows/lists/prizes/adapter.js","client/pods/flows/lists/steps/presets/adapter.js","client/pods/flows/lists/steps/types/adapter.js","client/pods/flows/lists/types/adapter.js","client/pods/flows/model.js","client/pods/flows/service.js","client/pods/flows/steps/actions/games/adapter.js","client/pods/flows/steps/actions/games/model.js","client/pods/flows/steps/actions/games/prizes/adapter.js","client/pods/flows/steps/actions/games/prizes/model.js","client/pods/flows/steps/actions/generate-promo-code/adapter.js","client/pods/flows/steps/actions/generate-promo-code/model.js","client/pods/flows/steps/actions/generate-promo-code/presets/adapter.js","client/pods/flows/steps/actions/generate-promo-code/presets/model.js","client/pods/flows/steps/actions/promo-codes-default/adapter.js","client/pods/flows/steps/actions/promo-codes-default/model.js","client/pods/flows/steps/adapter.js","client/pods/flows/steps/choices/adapter.js","client/pods/flows/steps/choices/model.js","client/pods/flows/steps/model.js","client/pods/form-container/form-container-sub/model.js","client/pods/form-container/model.js","client/pods/froala/service.js","client/pods/generic/adapter.js","client/pods/generic/model.js","client/pods/google/tracking/adapter.js","client/pods/grapesjs/categories.js","client/pods/grapesjs/lists/btn-modal/target/adapter.js","client/pods/grapesjs/lists/slider/btns-color/adapter.js","client/pods/grapesjs/lists/slider/btns-size/adapter.js","client/pods/grapesjs/lists/slider/nav-position/adapter.js","client/pods/grapesjs/lists/slider/nav-style/adapter.js","client/pods/grapesjs/plugins/animation-trait.js","client/pods/grapesjs/plugins/background-fixed.js","client/pods/grapesjs/plugins/banner.js","client/pods/grapesjs/plugins/blocks.js","client/pods/grapesjs/plugins/blogs.js","client/pods/grapesjs/plugins/button.js","client/pods/grapesjs/plugins/cell.js","client/pods/grapesjs/plugins/ckeditor/index.js","client/pods/grapesjs/plugins/double-row.js","client/pods/grapesjs/plugins/form.js","client/pods/grapesjs/plugins/full-width-image.js","client/pods/grapesjs/plugins/grid-images.js","client/pods/grapesjs/plugins/grid.js","client/pods/grapesjs/plugins/image.js","client/pods/grapesjs/plugins/non-editable.js","client/pods/grapesjs/plugins/panels.js","client/pods/grapesjs/plugins/picture-layer-container.js","client/pods/grapesjs/plugins/picture.js","client/pods/grapesjs/plugins/product.js","client/pods/grapesjs/plugins/products.js","client/pods/grapesjs/plugins/row.js","client/pods/grapesjs/plugins/scratch-card.js","client/pods/grapesjs/plugins/sessionStorage.js","client/pods/grapesjs/plugins/slider-native/blocks.js","client/pods/grapesjs/plugins/slider-native/components/NavDot.js","client/pods/grapesjs/plugins/slider-native/components/NavDots.js","client/pods/grapesjs/plugins/slider-native/components/NavNext.js","client/pods/grapesjs/plugins/slider-native/components/NavPrev.js","client/pods/grapesjs/plugins/slider-native/components/Slide.js","client/pods/grapesjs/plugins/slider-native/components/Slider.js","client/pods/grapesjs/plugins/slider-native/components/SliderFrame.js","client/pods/grapesjs/plugins/slider-native/components/Slides.js","client/pods/grapesjs/plugins/slider-native/components/index.js","client/pods/grapesjs/plugins/slider-native/constants.js","client/pods/grapesjs/plugins/slider-native/index.js","client/pods/grapesjs/plugins/slider-native/utils.js","client/pods/grapesjs/plugins/slider.js","client/pods/grapesjs/plugins/stories.js","client/pods/grapesjs/plugins/strip.js","client/pods/grapesjs/plugins/tabs-with-header.js","client/pods/grapesjs/plugins/tabs/blocks.js","client/pods/grapesjs/plugins/tabs/components/Tab.js","client/pods/grapesjs/plugins/tabs/components/TabContainer.js","client/pods/grapesjs/plugins/tabs/components/TabContent.js","client/pods/grapesjs/plugins/tabs/components/TabContents.js","client/pods/grapesjs/plugins/tabs/components/Tabs.js","client/pods/grapesjs/plugins/tabs/components/index.js","client/pods/grapesjs/plugins/tabs/index.js","client/pods/grapesjs/plugins/tabs/options.js","client/pods/grapesjs/plugins/text.js","client/pods/grapesjs/plugins/traits/link.js","client/pods/grapesjs/plugins/video.js","client/pods/grapesjs/schedules/adapter.js","client/pods/grapesjs/schedules/model.js","client/pods/grapesjs/schedules/schedules/adapter.js","client/pods/grapesjs/schedules/schedules/model.js","client/pods/grapesjs/service.js","client/pods/grapesjs/slider/adapter.js","client/pods/grapesjs/slider/model.js","client/pods/guests/documents/sales/invoices/adapter.js","client/pods/guests/portal/campaigns/adapter.js","client/pods/guests/portal/campaigns/filters/adapter.js","client/pods/guests/portal/campaigns/filters/model.js","client/pods/guests/portal/campaigns/route.js","client/pods/guests/portal/campaigns/template.js","client/pods/guests/portal/login/route.js","client/pods/guests/portal/login/template.js","client/pods/guests/portal/report/lists/sub-panels/adapter.js","client/pods/guests/portal/report/route.js","client/pods/guests/portal/report/template.js","client/pods/guests/service.js","client/pods/guests/shop/campaigns/adapter.js","client/pods/guests/shop/campaigns/commissions/adjustment/adapter.js","client/pods/guests/shop/campaigns/commissions/all/adapter.js","client/pods/guests/shop/campaigns/details/adapter.js","client/pods/guests/shop/campaigns/filters/adapter.js","client/pods/guests/shop/campaigns/filters/model.js","client/pods/guests/shop/login/route.js","client/pods/guests/shop/login/template.js","client/pods/guests/shop/report/lists/sub-panels/adapter.js","client/pods/guests/shop/report/route.js","client/pods/guests/shop/report/template.js","client/pods/guide-menu/model.js","client/pods/guides/service.js","client/pods/helpers/service.js","client/pods/home/adapter.js","client/pods/home/model.js","client/pods/ifetch/service.js","client/pods/index/route.js","client/pods/index/template.js","client/pods/influencer/service.js","client/pods/languages/adapter.js","client/pods/ledgers/accounts/adapter.js","client/pods/ledgers/accounts/filters/adapter.js","client/pods/ledgers/accounts/filters/model.js","client/pods/ledgers/accounts/lists/account-types/adapter.js","client/pods/ledgers/accounts/lists/banks/adapter.js","client/pods/ledgers/accounts/lists/contra-types/adapter.js","client/pods/ledgers/journals/cashbook/adapter.js","client/pods/ledgers/journals/cashbook/filters/adapter.js","client/pods/ledgers/journals/cashbook/filters/model.js","client/pods/ledgers/journals/cashbook/lists/menu/adapter.js","client/pods/ledgers/journals/cashbook/model.js","client/pods/members-menu/adapter.js","client/pods/members-menu/collection/adapter.js","client/pods/members-menu/collection/model.js","client/pods/members-menu/filters/adapter.js","client/pods/members-menu/filters/model.js","client/pods/members-menu/groups-sub/adapter.js","client/pods/members-menu/model.js","client/pods/messages/message/adapter.js","client/pods/messages/message/model.js","client/pods/messages/messages/adapter.js","client/pods/messages/messages/filters/adapter.js","client/pods/messages/messages/filters/model.js","client/pods/messages/messages/model.js","client/pods/messages/users/adapter.js","client/pods/messages/users/filters/adapter.js","client/pods/messages/users/filters/model.js","client/pods/messages/users/model.js","client/pods/modals/service.js","client/pods/news/adapter.js","client/pods/news/details/batch/adapter.js","client/pods/news/filters/adapter.js","client/pods/news/filters/model.js","client/pods/news/lists/bigordr-blogs-slider-types/adapter.js","client/pods/news/lists/filters/search/adapter.js","client/pods/news/lists/filters/sort/adapter.js","client/pods/news/lists/filters/status/adapter.js","client/pods/news/lists/menu/adapter.js","client/pods/news/lists/tags/adapter.js","client/pods/news/model.js","client/pods/not-found/route.js","client/pods/not-found/template.js","client/pods/notifications/adapter.js","client/pods/notifications/manager/adapter.js","client/pods/notifications/manager/model.js","client/pods/notifications/model.js","client/pods/notifications/service.js","client/pods/notifications/statuses/adapter.js","client/pods/open-hours/model.js","client/pods/operator/change-logs/adapter.js","client/pods/operator/change-logs/filters/adapter.js","client/pods/operator/change-logs/filters/model.js","client/pods/operator/change-logs/lists/menu/adapter.js","client/pods/operator/change-logs/lists/types/adapter.js","client/pods/operator/change-logs/model.js","client/pods/operator/pods/adapter.js","client/pods/operator/pods/filters/adapter.js","client/pods/operator/pods/filters/model.js","client/pods/options/adapter.js","client/pods/options/model.js","client/pods/parser/service.js","client/pods/payment-methods/adapter.js","client/pods/payment-methods/credit-cards/banks/adapter.js","client/pods/payment-methods/installment-periods/adapter.js","client/pods/payment-methods/model.js","client/pods/payment-methods/shop/adapter.js","client/pods/payment-terms/adapter.js","client/pods/payment-terms/end/adapter.js","client/pods/payment-terms/from/adapter.js","client/pods/payments/card/adapter.js","client/pods/payments/card/filters/adapter.js","client/pods/payments/card/filters/model.js","client/pods/payments/card/lists/filters/search/adapter.js","client/pods/payments/card/lists/filters/sort/adapter.js","client/pods/payments/card/lists/filters/status/adapter.js","client/pods/payments/card/lists/panels/adapter.js","client/pods/payments/card/lists/providers/adapter.js","client/pods/payments/card/lists/statuses/adapter.js","client/pods/payments/card/specs/adapter.js","client/pods/payments/card/specs/model.js","client/pods/payments/card/transactions/adapter.js","client/pods/payments/card/transactions/filters/adapter.js","client/pods/payments/card/transactions/filters/model.js","client/pods/payments/card/transactions/model.js","client/pods/payments/linepay/adapter.js","client/pods/payments/linepay/filters/adapter.js","client/pods/payments/linepay/filters/model.js","client/pods/payments/linepay/lists/filters/search/adapter.js","client/pods/payments/linepay/lists/filters/sort/adapter.js","client/pods/payments/linepay/lists/filters/status/adapter.js","client/pods/payments/linepay/lists/panels/adapter.js","client/pods/payments/linepay/lists/providers/adapter.js","client/pods/payments/linepay/lists/statuses/adapter.js","client/pods/payments/linepay/specs/adapter.js","client/pods/payments/linepay/specs/model.js","client/pods/payments/linepay/transactions/adapter.js","client/pods/payments/linepay/transactions/filters/adapter.js","client/pods/payments/linepay/transactions/filters/model.js","client/pods/payments/linepay/transactions/model.js","client/pods/payments/service.js","client/pods/payments/virtual-accounts/adapter.js","client/pods/payments/virtual-accounts/filters/adapter.js","client/pods/payments/virtual-accounts/filters/model.js","client/pods/payments/virtual-accounts/lists/filters/search/adapter.js","client/pods/payments/virtual-accounts/lists/filters/sort/adapter.js","client/pods/payments/virtual-accounts/lists/filters/status/adapter.js","client/pods/payments/virtual-accounts/lists/providers/adapter.js","client/pods/payments/virtual-accounts/lists/statuses/adapter.js","client/pods/payments/virtual-accounts/model.js","client/pods/payments/virtual-accounts/specs/adapter.js","client/pods/payments/virtual-accounts/specs/model.js","client/pods/periods/adapter.js","client/pods/periods/date-options/adapter.js","client/pods/periods/months/adapter.js","client/pods/periods/years/adapter.js","client/pods/pikaday/service.js","client/pods/pos/lists/macros/adapter.js","client/pods/pos/lists/profiles/adapter.js","client/pods/pos/lists/profiles/model.js","client/pods/pos/service.js","client/pods/print/service.js","client/pods/printer/lists/allow-printing-from/adapter.js","client/pods/printer/lists/models/adapter.js","client/pods/printer/lists/printers/adapter.js","client/pods/processes/model.js","client/pods/products-list-by/service.js","client/pods/products/adapter.js","client/pods/products/attachments/adapter.js","client/pods/products/barcodes/adapter.js","client/pods/products/barcodes/model.js","client/pods/products/batch/adapter.js","client/pods/products/batch/statuses/adapter.js","client/pods/products/batch/tags/adapter.js","client/pods/products/brands/adapter.js","client/pods/products/choices/adapter.js","client/pods/products/choices/details/adapter.js","client/pods/products/choices/details/model.js","client/pods/products/choices/model.js","client/pods/products/customizations/adapter.js","client/pods/products/customizations/model.js","client/pods/products/customizations/options/adapter.js","client/pods/products/customizations/options/model.js","client/pods/products/filters/adapter.js","client/pods/products/filters/inventory-report/adapter.js","client/pods/products/filters/model.js","client/pods/products/inventory/adapter.js","client/pods/products/inventory/adjustments/adapter.js","client/pods/products/inventory/adjustments/filters/adapter.js","client/pods/products/inventory/adjustments/filters/model.js","client/pods/products/inventory/adjustments/model.js","client/pods/products/inventory/filters/adapter.js","client/pods/products/inventory/filters/model.js","client/pods/products/inventory/lists/adjustments/adapter.js","client/pods/products/inventory/lists/qty-types/adapter.js","client/pods/products/inventory/model.js","client/pods/products/inventory/report/adapter.js","client/pods/products/lists/attachments-types/adapter.js","client/pods/products/lists/bigordr-products-per-row/adapter.js","client/pods/products/lists/bigordr-products-slider-items/adapter.js","client/pods/products/lists/bigordr-products-slider-types/adapter.js","client/pods/products/lists/bulk-insert-types/adapter.js","client/pods/products/lists/campaigns/adapter.js","client/pods/products/lists/campaigns/details/adapter.js","client/pods/products/lists/campaigns/details/model.js","client/pods/products/lists/campaigns/model.js","client/pods/products/lists/categories/adapter.js","client/pods/products/lists/display-sub-panels/adapter.js","client/pods/products/lists/display-tags/adapter.js","client/pods/products/lists/display-tags/model.js","client/pods/products/lists/editor-sub-panels/adapter.js","client/pods/products/lists/filters/extra/adapter.js","client/pods/products/lists/filters/search/adapter.js","client/pods/products/lists/filters/sort/adapter.js","client/pods/products/lists/filters/status/adapter.js","client/pods/products/lists/filters/types/adapter.js","client/pods/products/lists/inventory-report-types-filters/adapter.js","client/pods/products/lists/inventory-set-types-filters/adapter.js","client/pods/products/lists/invoice-descriptions/adapter.js","client/pods/products/lists/limit-types/adapter.js","client/pods/products/lists/menu/adapter.js","client/pods/products/lists/on-sale-tag-display-position/adapter.js","client/pods/products/lists/on-sale-tag-display-style/adapter.js","client/pods/products/lists/page-import-btn-sub-panels/adapter.js","client/pods/products/lists/product-display-position/adapter.js","client/pods/products/lists/products-shop-sub-panels/adapter.js","client/pods/products/lists/recurring-filters/adapter.js","client/pods/products/lists/set-types-filters/adapter.js","client/pods/products/lists/set-types/adapter.js","client/pods/products/lists/set-types/variants/adapter.js","client/pods/products/lists/sync/adapter.js","client/pods/products/lists/tags/adapter.js","client/pods/products/lists/tags/model.js","client/pods/products/lists/tracking/adapter.js","client/pods/products/lists/types/adapter.js","client/pods/products/lists/variants/auto-fill/adapter.js","client/pods/products/model.js","client/pods/products/product-display-tags/adapter.js","client/pods/products/product-display-tags/model.js","client/pods/products/service.js","client/pods/products/sets/details/adapter.js","client/pods/products/sets/details/model.js","client/pods/products/specs/adapter.js","client/pods/products/templates/adapter.js","client/pods/products/templates/model.js","client/pods/products/variants/adapter.js","client/pods/products/variants/children/adapter.js","client/pods/products/variants/children/model.js","client/pods/products/variants/model.js","client/pods/products/variants/options/adapter.js","client/pods/products/variants/options/model.js","client/pods/protected/companies/route.js","client/pods/protected/companies/template.js","client/pods/protected/company/route.js","client/pods/protected/company/template.js","client/pods/protected/help/route.js","client/pods/protected/help/template.js","client/pods/public-statuses/adapter.js","client/pods/recurring/discounts/adapter.js","client/pods/recurring/schedules/adapter.js","client/pods/recurring/schedules/end/adapter.js","client/pods/recurring/schedules/filters/adapter.js","client/pods/recurring/schedules/filters/model.js","client/pods/recurring/schedules/from/adapter.js","client/pods/recurring/schedules/model.js","client/pods/recurring/schedules/options/adapter.js","client/pods/recurring/schedules/options/model.js","client/pods/recurring/service.js","client/pods/recurring/shipping/adapter.js","client/pods/reports/commissions/data/adapter.js","client/pods/reports/commissions/data/adjustment/adapter.js","client/pods/reports/commissions/data/adjustment/details/adapter.js","client/pods/reports/commissions/data/adjustment/details/model.js","client/pods/reports/commissions/data/adjustment/filters/adapter.js","client/pods/reports/commissions/data/adjustment/filters/model.js","client/pods/reports/commissions/data/adjustment/lists/adapter.js","client/pods/reports/commissions/data/adjustment/lists/filters/adapter.js","client/pods/reports/commissions/data/adjustment/lists/filters/model.js","client/pods/reports/commissions/data/adjustment/lists/model.js","client/pods/reports/commissions/data/adjustment/model.js","client/pods/reports/commissions/data/all/adapter.js","client/pods/reports/commissions/data/all/filters/adapter.js","client/pods/reports/commissions/data/all/filters/model.js","client/pods/reports/commissions/data/all/model.js","client/pods/reports/commissions/data/filters/adapter.js","client/pods/reports/commissions/data/filters/model.js","client/pods/reports/commissions/data/model.js","client/pods/reports/commissions/data/payouts/adapter.js","client/pods/reports/commissions/data/payouts/model.js","client/pods/reports/commissions/data/summary/adapter.js","client/pods/reports/commissions/data/summary/filters/adapter.js","client/pods/reports/commissions/data/summary/filters/model.js","client/pods/reports/commissions/data/summary/model.js","client/pods/reports/lists/contact-tags/adapter.js","client/pods/reports/lists/export-date-type/adapter.js","client/pods/reports/lists/show-item-by/adapter.js","client/pods/reports/lists/show-reports-by/adapter.js","client/pods/reset/route.js","client/pods/reset/template.js","client/pods/schedules/adapter.js","client/pods/schedules/filters/adapter.js","client/pods/schedules/filters/model.js","client/pods/schedules/model.js","client/pods/search/service.js","client/pods/server/service.js","client/pods/settings/adapter.js","client/pods/settings/checkout-date-method/adapter.js","client/pods/settings/countries/adapter.js","client/pods/settings/countries/districts/adapter.js","client/pods/settings/countries/districts/lists/adapter.js","client/pods/settings/countries/districts/lists/model.js","client/pods/settings/countries/districts/model.js","client/pods/settings/countries/filters/adapter.js","client/pods/settings/countries/filters/model.js","client/pods/settings/countries/model.js","client/pods/settings/countries/regions/adapter.js","client/pods/settings/countries/regions/model.js","client/pods/settings/editor-sub-panels/adapter.js","client/pods/settings/images-hover-filter/adapter.js","client/pods/settings/images-hover-transform/adapter.js","client/pods/settings/model.js","client/pods/settings/rounding-auto/adapter.js","client/pods/settings/rounding/adapter.js","client/pods/settings/sales-invoice-panel-options/adapter.js","client/pods/settings/service.js","client/pods/settings/wizard/adapter.js","client/pods/shipping/delivery-times/adapter.js","client/pods/shipping/fee-type/adapter.js","client/pods/shortcuts/service.js","client/pods/simple-editor/lists/features/contents/panels/adapter.js","client/pods/simple-editor/lists/page-blocks-presets/adapter.js","client/pods/simple-editor/lists/panels-container/adapter.js","client/pods/simple-editor/lists/styling/align-vertical/adapter.js","client/pods/simple-editor/lists/styling/align/adapter.js","client/pods/simple-editor/lists/styling/animations-count/adapter.js","client/pods/simple-editor/lists/styling/animations-duration/adapter.js","client/pods/simple-editor/lists/styling/animations/adapter.js","client/pods/simple-editor/lists/styling/blogs-sorting/adapter.js","client/pods/simple-editor/lists/styling/border-radius/adapter.js","client/pods/simple-editor/lists/styling/border-style/adapter.js","client/pods/simple-editor/lists/styling/border-width/adapter.js","client/pods/simple-editor/lists/styling/buttons-display-size/adapter.js","client/pods/simple-editor/lists/styling/buttons-display-styles/adapter.js","client/pods/simple-editor/lists/styling/buttons-images-styles/adapter.js","client/pods/simple-editor/lists/styling/buttons-images-types/adapter.js","client/pods/simple-editor/lists/styling/colors-options/adapter.js","client/pods/simple-editor/lists/styling/colors/adapter.js","client/pods/simple-editor/lists/styling/container-margin-options/adapter.js","client/pods/simple-editor/lists/styling/container-padding-options/adapter.js","client/pods/simple-editor/lists/styling/container-width/adapter.js","client/pods/simple-editor/lists/styling/display-by/adapter.js","client/pods/simple-editor/lists/styling/display-styles/adapter.js","client/pods/simple-editor/lists/styling/features-content-display-styles/adapter.js","client/pods/simple-editor/lists/styling/features-display-styles/adapter.js","client/pods/simple-editor/lists/styling/font-family/adapter.js","client/pods/simple-editor/lists/styling/font-sizes-basic/adapter.js","client/pods/simple-editor/lists/styling/font-styles/adapter.js","client/pods/simple-editor/lists/styling/grid-align-vertical/adapter.js","client/pods/simple-editor/lists/styling/grid-row-items/adapter.js","client/pods/simple-editor/lists/styling/image-sizes-custom/adapter.js","client/pods/simple-editor/lists/styling/image-sizes/adapter.js","client/pods/simple-editor/lists/styling/images-display-styles/adapter.js","client/pods/simple-editor/lists/styling/images-grid-columns-gaps/adapter.js","client/pods/simple-editor/lists/styling/images-grid-columns/adapter.js","client/pods/simple-editor/lists/styling/images-grid-style/adapter.js","client/pods/simple-editor/lists/styling/images-slider-arrows-position/adapter.js","client/pods/simple-editor/lists/styling/images-slider-arrows-sizes/adapter.js","client/pods/simple-editor/lists/styling/images-slider-autoplay-speed/adapter.js","client/pods/simple-editor/lists/styling/images-slider-dots-position/adapter.js","client/pods/simple-editor/lists/styling/images-slider-dots-styles/adapter.js","client/pods/simple-editor/lists/styling/images-slider-slides-space/adapter.js","client/pods/simple-editor/lists/styling/images-slider-slides-to-scroll/adapter.js","client/pods/simple-editor/lists/styling/images-slider-slides-to-show/adapter.js","client/pods/simple-editor/lists/styling/interaction-methods/adapter.js","client/pods/simple-editor/lists/styling/items-per-page/adapter.js","client/pods/simple-editor/lists/styling/line-count/adapter.js","client/pods/simple-editor/lists/styling/margin-sizes/adapter.js","client/pods/simple-editor/lists/styling/order-horizontal/adapter.js","client/pods/simple-editor/lists/styling/padding-sizes/adapter.js","client/pods/simple-editor/lists/styling/products-display-by/adapter.js","client/pods/simple-editor/lists/styling/products-display-styles/adapter.js","client/pods/simple-editor/lists/styling/products-grid-row-items/adapter.js","client/pods/simple-editor/lists/styling/products-product-per-page/adapter.js","client/pods/simple-editor/lists/styling/sizes-units/adapter.js","client/pods/simple-editor/lists/styling/sizes/adapter.js","client/pods/simple-editor/lists/styling/social-links-types/adapter.js","client/pods/simple-editor/lists/styling/text-display-styles/adapter.js","client/pods/simple-editor/lists/styling/title-styles/adapter.js","client/pods/simple-editor/lists/styling/transparency/adapter.js","client/pods/simple-editor/lists/styling/video-display-styles/adapter.js","client/pods/simple-editor/lists/templates/adapter.js","client/pods/simple-editor/nav-tree/adapter.js","client/pods/simple-editor/nav-tree/model.js","client/pods/simple-editor/page-blocks/adapter.js","client/pods/simple-editor/page-blocks/blogs/adapter.js","client/pods/simple-editor/page-blocks/blogs/content/adapter.js","client/pods/simple-editor/page-blocks/blogs/content/model.js","client/pods/simple-editor/page-blocks/blogs/model.js","client/pods/simple-editor/page-blocks/blogs/service.js","client/pods/simple-editor/page-blocks/buttons/adapter.js","client/pods/simple-editor/page-blocks/buttons/content/adapter.js","client/pods/simple-editor/page-blocks/buttons/content/model.js","client/pods/simple-editor/page-blocks/buttons/model.js","client/pods/simple-editor/page-blocks/contentModel.js","client/pods/simple-editor/page-blocks/custom/adapter.js","client/pods/simple-editor/page-blocks/custom/content/adapter.js","client/pods/simple-editor/page-blocks/custom/content/model.js","client/pods/simple-editor/page-blocks/custom/model.js","client/pods/simple-editor/page-blocks/data/links/adapter.js","client/pods/simple-editor/page-blocks/data/links/model.js","client/pods/simple-editor/page-blocks/data/schedule/adapter.js","client/pods/simple-editor/page-blocks/data/schedule/model.js","client/pods/simple-editor/page-blocks/faqs/adapter.js","client/pods/simple-editor/page-blocks/faqs/content/adapter.js","client/pods/simple-editor/page-blocks/faqs/content/model.js","client/pods/simple-editor/page-blocks/faqs/model.js","client/pods/simple-editor/page-blocks/features/adapter.js","client/pods/simple-editor/page-blocks/features/content/adapter.js","client/pods/simple-editor/page-blocks/features/content/model.js","client/pods/simple-editor/page-blocks/features/model.js","client/pods/simple-editor/page-blocks/flows/adapter.js","client/pods/simple-editor/page-blocks/flows/content/adapter.js","client/pods/simple-editor/page-blocks/flows/content/model.js","client/pods/simple-editor/page-blocks/flows/model.js","client/pods/simple-editor/page-blocks/flows/service.js","client/pods/simple-editor/page-blocks/images/adapter.js","client/pods/simple-editor/page-blocks/images/content/adapter.js","client/pods/simple-editor/page-blocks/images/content/model.js","client/pods/simple-editor/page-blocks/images/model.js","client/pods/simple-editor/page-blocks/model.js","client/pods/simple-editor/page-blocks/news/adapter.js","client/pods/simple-editor/page-blocks/news/content/adapter.js","client/pods/simple-editor/page-blocks/news/content/model.js","client/pods/simple-editor/page-blocks/news/model.js","client/pods/simple-editor/page-blocks/news/service.js","client/pods/simple-editor/page-blocks/products/adapter.js","client/pods/simple-editor/page-blocks/products/content/adapter.js","client/pods/simple-editor/page-blocks/products/content/model.js","client/pods/simple-editor/page-blocks/products/model.js","client/pods/simple-editor/page-blocks/products/service.js","client/pods/simple-editor/page-blocks/service.js","client/pods/simple-editor/page-blocks/social-links/adapter.js","client/pods/simple-editor/page-blocks/social-links/content/adapter.js","client/pods/simple-editor/page-blocks/social-links/content/model.js","client/pods/simple-editor/page-blocks/social-links/model.js","client/pods/simple-editor/page-blocks/tabs/adapter.js","client/pods/simple-editor/page-blocks/tabs/content/adapter.js","client/pods/simple-editor/page-blocks/tabs/content/model.js","client/pods/simple-editor/page-blocks/tabs/model.js","client/pods/simple-editor/page-blocks/texts/adapter.js","client/pods/simple-editor/page-blocks/texts/content/adapter.js","client/pods/simple-editor/page-blocks/texts/content/model.js","client/pods/simple-editor/page-blocks/texts/model.js","client/pods/simple-editor/page-blocks/videos/adapter.js","client/pods/simple-editor/page-blocks/videos/content/adapter.js","client/pods/simple-editor/page-blocks/videos/content/model.js","client/pods/simple-editor/page-blocks/videos/model.js","client/pods/simple-editor/service.js","client/pods/simple-editor/theme/service.js","client/pods/socket/service.js","client/pods/specs/adapter.js","client/pods/specs/child/adapter.js","client/pods/specs/child/model.js","client/pods/specs/child/transforms/adapter.js","client/pods/specs/child/transforms/model.js","client/pods/specs/collection/adapter.js","client/pods/specs/collection/model.js","client/pods/specs/lists/method/adapter.js","client/pods/specs/model.js","client/pods/status-schedules/adapter.js","client/pods/status-schedules/model.js","client/pods/statuses/adapter.js","client/pods/storage/service.js","client/pods/store-location/adapter.js","client/pods/store-location/details/batch/adapter.js","client/pods/store-location/filters/adapter.js","client/pods/store-location/filters/model.js","client/pods/store-location/lists/filters/search/adapter.js","client/pods/store-location/lists/filters/sort/adapter.js","client/pods/store-location/lists/filters/status/adapter.js","client/pods/store-location/lists/menu/adapter.js","client/pods/store-location/lists/tags/adapter.js","client/pods/store-location/model.js","client/pods/swatches/adapter.js","client/pods/swatches/model.js","client/pods/tabs-manager/model.js","client/pods/tabs-manager/service-new-but-doesnt-work.js","client/pods/tabs-manager/service.js","client/pods/tax-methods/adapter.js","client/pods/tax-methods/filters/adapter.js","client/pods/taxes/adapter.js","client/pods/terminal/service.js","client/pods/tiktok/service.js","client/pods/times/seconds-recommended/adapter.js","client/pods/toggles/all-custom/adapter.js","client/pods/toggles/auto/adapter.js","client/pods/toggles/on-off/adapter.js","client/pods/toggles/yes-no/adapter.js","client/pods/transporter/adapter.js","client/pods/transporter/filters/sub-tab/adapter.js","client/pods/transporter/filters/sub-tab/model.js","client/pods/transporter/lists/credentials-modal/adapter.js","client/pods/transporter/lists/pickup-editor-extension/adapter.js","client/pods/transporter/service.js","client/pods/transporter/waybill-record/adapter.js","client/pods/transporter/waybill-record/filters/adapter.js","client/pods/transporter/waybill-record/filters/model.js","client/pods/transporter/waybill-record/lists/shipping-waybill-status-type/adapter.js","client/pods/transporter/waybill-record/model.js","client/pods/transporter/waybill-record/shipping-waybill-status/adapter.js","client/pods/transporter/waybill-record/shipping-waybill-status/model.js","client/pods/transporter/waybill-record/statuses/adapter.js","client/pods/transporter/waybill-record/statuses/model.js","client/pods/units/adapter.js","client/pods/units/dimensions/adapter.js","client/pods/units/weight/adapter.js","client/pods/updates/service.js","client/pods/uploadcare/service.js","client/pods/uploads/adapter.js","client/pods/uploads/batch/adapter.js","client/pods/uploads/collection/adapter.js","client/pods/uploads/collection/model.js","client/pods/uploads/filters/adapter.js","client/pods/uploads/filters/model.js","client/pods/uploads/lists/resources/adapter.js","client/pods/uploads/lists/resources/model.js","client/pods/uploads/lists/tags/adapter.js","client/pods/uploads/lists/tags/model.js","client/pods/uploads/model.js","client/pods/uploads/service.js","client/pods/users/adapter.js","client/pods/users/associates/adapter.js","client/pods/users/associates/filters/adapter.js","client/pods/users/associates/filters/model.js","client/pods/users/associates/model.js","client/pods/users/einvoices-printers-terminals/adapter.js","client/pods/users/einvoices-printers-terminals/filters/adapter.js","client/pods/users/einvoices-printers-terminals/filters/model.js","client/pods/users/einvoices-printers-terminals/model.js","client/pods/users/filters/adapter.js","client/pods/users/filters/model.js","client/pods/users/lists/ip-addresses/adapter.js","client/pods/users/lists/menu/adapter.js","client/pods/users/lists/roles/external/adapter.js","client/pods/users/lists/roles/internal/adapter.js","client/pods/users/lists/roles/terminal/adapter.js","client/pods/users/lists/types/adapter.js","client/pods/users/model.js","client/pods/users/personal-filters/adapter.js","client/pods/users/personal-filters/collection/adapter.js","client/pods/users/personal-filters/collection/model.js","client/pods/users/personal-filters/filters/adapter.js","client/pods/users/personal-filters/filters/model.js","client/pods/users/personal-filters/model.js","client/pods/users/personal-menu/adapter.js","client/pods/users/personal-menu/collection/adapter.js","client/pods/users/personal-menu/collection/model.js","client/pods/users/personal-menu/filters/adapter.js","client/pods/users/personal-menu/filters/model.js","client/pods/users/personal-menu/groups-sub/adapter.js","client/pods/users/personal-menu/model.js","client/pods/users/personal-settings/adapter.js","client/pods/users/personal-settings/collection/adapter.js","client/pods/users/personal-settings/collection/model.js","client/pods/users/personal-settings/filters/adapter.js","client/pods/users/personal-settings/filters/model.js","client/pods/users/personal-settings/model.js","client/pods/users/related/adapter.js","client/pods/users/related/filters/adapter.js","client/pods/users/related/filters/model.js","client/pods/users/service.js","client/pods/validation/service.js","client/pods/video-sources/adapter.js","client/pods/websites/adapter.js","client/pods/websites/blog-tags-filters/adapter.js","client/pods/websites/filters/adapter.js","client/pods/websites/filters/model.js","client/pods/websites/links/adapter.js","client/pods/websites/links/model.js","client/pods/websites/lists/content-width/adapter.js","client/pods/websites/lists/editor-sub-panels/adapter.js","client/pods/websites/lists/filters/search/adapter.js","client/pods/websites/lists/filters/sort/adapter.js","client/pods/websites/lists/filters/status/adapter.js","client/pods/websites/lists/header-image-ratio/adapter.js","client/pods/websites/lists/layout/btns-border-radius/adapter.js","client/pods/websites/lists/layout/menu-alignment/adapter.js","client/pods/websites/lists/layout/menu-expand-behavior/adapter.js","client/pods/websites/lists/layout/menu-font-size/adapter.js","client/pods/websites/lists/layout/menu-logo-height-separate-line/adapter.js","client/pods/websites/lists/layout/menu-logo-height/adapter.js","client/pods/websites/lists/layout/menu-logo-size/adapter.js","client/pods/websites/lists/layout/menu-position/adapter.js","client/pods/websites/lists/layout/menu-spacing/adapter.js","client/pods/websites/lists/layout/menu-style/adapter.js","client/pods/websites/lists/link-thumbnail-image-ratio/adapter.js","client/pods/websites/lists/logo-centered-scroll-method/adapter.js","client/pods/websites/lists/logo-icon-position/adapter.js","client/pods/websites/lists/logo-menu-position/adapter.js","client/pods/websites/lists/menu/adapter.js","client/pods/websites/lists/new-website-wizard/adapter.js","client/pods/websites/lists/page-import-btn-sub-panels/adapter.js","client/pods/websites/lists/shared-color-themes/adapter.js","client/pods/websites/lists/sub-panels/adapter.js","client/pods/websites/lists/template-types/adapter.js","client/pods/websites/lists/templates/adapter.js","client/pods/websites/lists/types/adapter.js","client/pods/websites/lists/types/links/adapter.js","client/pods/websites/lists/types/links/targets/adapter.js","client/pods/websites/model.js","client/pods/websites/news-tags-filters/adapter.js","client/pods/websites/pages/adapter.js","client/pods/websites/pages/collection/adapter.js","client/pods/websites/pages/collection/model.js","client/pods/websites/pages/filters/adapter.js","client/pods/websites/pages/filters/model.js","client/pods/websites/pages/model.js","client/pods/websites/pages/products/adapter.js","client/pods/websites/service.js","client/pods/websites/store-location-tags-filters/adapter.js","client/pods/wizards/adapter.js","client/pods/wizards/model.js","client/pods/workflows/adapter.js","client/pods/workflows/batch/adapter.js","client/pods/workflows/filters/adapter.js","client/pods/workflows/filters/model.js","client/pods/workflows/items/activities/adapter.js","client/pods/workflows/items/activities/collection/adapter.js","client/pods/workflows/items/activities/collection/filters/adapter.js","client/pods/workflows/items/activities/collection/filters/model.js","client/pods/workflows/items/activities/collection/model.js","client/pods/workflows/items/activities/model.js","client/pods/workflows/items/adapter.js","client/pods/workflows/items/filters/adapter.js","client/pods/workflows/items/filters/model.js","client/pods/workflows/items/model.js","client/pods/workflows/lists/create-dynamic/adapter.js","client/pods/workflows/lists/filters/search/adapter.js","client/pods/workflows/lists/filters/sort/adapter.js","client/pods/workflows/lists/filters/status/adapter.js","client/pods/workflows/lists/items/activities/templates/adapter.js","client/pods/workflows/lists/items/activities/templates/model.js","client/pods/workflows/lists/items/activities/types/adapter.js","client/pods/workflows/lists/items/statuses/adapter.js","client/pods/workflows/lists/menu/adapter.js","client/pods/workflows/lists/menu/notifications/adapter.js","client/pods/workflows/lists/tags/adapter.js","client/pods/workflows/model.js","client/pods/workflows/related/adapter.js","client/pods/workflows/related/model.js","client/pods/workflows/related/types/adapter.js","client/pods/workflows/service.js","client/pods/workflows/stages-collection/adapter.js","client/pods/workflows/stages-collection/filters/adapter.js","client/pods/workflows/stages-collection/filters/model.js","client/pods/workflows/stages-collection/model.js","client/pods/workflows/stages/adapter.js","client/pods/workflows/stages/model.js","client/router.js","client/serializers/-default.js","client/serializers/-json-api.js","client/serializers/-rest.js","client/services/-in-viewport.js","client/services/in-viewport.js","client/services/intl.js","client/services/page-blocks.js","client/services/resize-observer.js","client/services/store.js","client/templates/application.js","client/transforms/boolean.js","client/transforms/date.js","client/transforms/number.js","client/transforms/string.js","client/translations/en-us.js","client/translations/zh-tw.js","client/utils/intl/missing-message.js","client/utils/nventor.js","client/utils/play-muted-video.js","client/utils/reserved-block-height.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(\"client/CHANGELOG\", [], function () {\n  \"use strict\";\n\n  module.exports = changes;\n  const changes = [{\n    date: '2023-04-28',\n    changes: ['updated automations view', 'can add custom seo keywords and descriptions to each individual webpage', 'can see which shops are using which zones', 'shortcut to shipping zone from shop']\n  }];\n});","define(\"client/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 () {\n      return _jsonApi.default;\n    }\n  });\n});","define(\"client/app\", [\"exports\", \"ember-resolver\", \"ember-load-initializers\", \"client/config/environment\", \"@sentry/ember\"], function (_exports, _emberResolver, _emberLoadInitializers, _environment, Sentry) {\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  const isProdLikeEnvironment = ['production', 'staging', 'beta'].includes(_environment.default.environment);\n\n  // Only initialize Sentry on real deploys. Setting `enabled: false` is not enough:\n  // browserTracingIntegration still instruments XHR/fetch (hasTracingEnabled checks\n  // tracesSampleRate, not `enabled`) and attaches sentry-trace/baggage headers to\n  // outgoing requests. In local dev the API is a different localhost port, so those\n  // extra headers force a CORS preflight the dev API rejects, which breaks login.\n  if (isProdLikeEnvironment) {\n    Sentry.init({\n      dsn: 'https://0ad8d82db62681d30144c43831ac8c2c@o4511567539929088.ingest.us.sentry.io/4511567574466560',\n      // tag every event with the deploy target and app version\n      environment: _environment.default.environment,\n      release: `client@${_environment.default.version}`,\n      integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration({\n        maskAllText: true,\n        blockAllMedia: true\n      })],\n      // performance tracing (Ember routing / runloop auto-instrumented)\n      tracesSampleRate: _environment.default.environment === 'production' ? 0.2 : 1.0,\n      // Only propagate trace headers (sentry-trace, baggage) to same-origin requests.\n      // The API is a different origin, so adding it here makes Sentry attach those\n      // headers cross-origin, which triggers a CORS preflight the API rejects. To\n      // enable distributed tracing to the backend, first allow the sentry-trace and\n      // baggage headers in the API's CORS config, then add config.APP.apiUrl back.\n      tracePropagationTargets: [/^\\//],\n      // session replay: never for healthy sessions, always for ones that errored\n      replaysSessionSampleRate: 0.0,\n      replaysOnErrorSampleRate: 1.0,\n      // drop known browser / third-party noise so real errors stay visible\n      ignoreErrors: ['ResizeObserver loop limit exceeded', 'ResizeObserver loop completed with undelivered notifications', 'Non-Error promise rejection captured',\n      // Transient network drops (XHR status 0) surface as a rejected\n      // 'not connected' error from the ajax service. Common on mobile during\n      // WiFi <-> cellular handoffs; expected and self-recovering, not a bug.\n      // Anchored so it can't match unrelated text like 'domain not connected';\n      // case-insensitive to stay robust against casing variations.\n      /^not connected$/i,\n      // Guests can't call api/protected/*; the ajax service short-circuits these\n      // to a rejected AjaxError (see app/pods/ajax/service.js). Expected and\n      // self-inflicted — drop it so real failures stay visible.\n      /^guest blocked protected request$/i,\n      // API rejects with this exact message for any 400 Joi validation failure\n      // (bad email format, missing field, etc). User input problem, not a code\n      // bug — drop it so real failures stay visible.\n      /^validation error$/i,\n      // Facebook in-app browser's Android WebView bridge (iabjs://). Its Java\n      // object gets torn down before a queued postMessage callback fires,\n      // usually on beforeunload. Third-party native bridge bug, not ours.\n      /^Error invoking postMessage: Java object is gone$/i],\n      denyUrls: [/extensions\\//i, /^chrome:\\/\\//i, /^moz-extension:\\/\\//i],\n      // The ajax service (app/pods/ajax/service.js) attaches request context to\n      // the errors it rejects with on a failed request. Without this hook every\n      // such failure collapses into one generic 'error occurred' issue because\n      // they share the same throw site and message. Re-fingerprint by endpoint +\n      // status so distinct failures become distinct issues, and surface the\n      // status, endpoint, request id, and response body for triage.\n      beforeSend(event, hint) {\n        const originalException = hint?.originalException;\n        if (originalException && originalException.httpStatus != null) {\n          const {\n            httpStatus,\n            method,\n            endpoint,\n            requestId,\n            responseData\n          } = originalException;\n          event.fingerprint = ['ajax-failure', method, String(httpStatus), endpoint];\n          event.tags = {\n            ...event.tags,\n            http_status: httpStatus,\n            endpoint\n          };\n          event.extra = {\n            ...event.extra,\n            requestId,\n            responseData\n          };\n        }\n        return event;\n      }\n    });\n  }\n  class App extends Ember.Application {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modulePrefix\", _environment.default.modulePrefix);\n      _defineProperty(this, \"podModulePrefix\", _environment.default.podModulePrefix);\n      _defineProperty(this, \"Resolver\", _emberResolver.default);\n    }\n  }\n  _exports.default = App;\n  (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","define(\"client/cldrs/en\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /*jslint eqeq: true*/\n  var _default = _exports.default = [{\n    \"locale\": \"en-US\",\n    \"parentLocale\": \"en\"\n  }, {\n    \"locale\": \"en\",\n    \"pluralRuleFunction\": function (n, ord) {\n      var s = String(n).split(\".\"),\n        v0 = !s[1],\n        t0 = Number(s[0]) == n,\n        n10 = t0 && s[0].slice(-1),\n        n100 = t0 && s[0].slice(-2);\n      if (ord) return n10 == 1 && n100 != 11 ? \"one\" : n10 == 2 && n100 != 12 ? \"two\" : n10 == 3 && n100 != 13 ? \"few\" : \"other\";\n      return n == 1 && v0 ? \"one\" : \"other\";\n    },\n    \"fields\": {\n      \"year\": {\n        \"displayName\": \"year\",\n        \"relative\": {\n          \"0\": \"this year\",\n          \"1\": \"next year\",\n          \"-1\": \"last year\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} year\",\n            \"other\": \"in {0} years\"\n          },\n          \"past\": {\n            \"one\": \"{0} year ago\",\n            \"other\": \"{0} years ago\"\n          }\n        }\n      },\n      \"year-short\": {\n        \"displayName\": \"yr.\",\n        \"relative\": {\n          \"0\": \"this yr.\",\n          \"1\": \"next yr.\",\n          \"-1\": \"last yr.\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} yr.\",\n            \"other\": \"in {0} yr.\"\n          },\n          \"past\": {\n            \"one\": \"{0} yr. ago\",\n            \"other\": \"{0} yr. ago\"\n          }\n        }\n      },\n      \"month\": {\n        \"displayName\": \"month\",\n        \"relative\": {\n          \"0\": \"this month\",\n          \"1\": \"next month\",\n          \"-1\": \"last month\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} month\",\n            \"other\": \"in {0} months\"\n          },\n          \"past\": {\n            \"one\": \"{0} month ago\",\n            \"other\": \"{0} months ago\"\n          }\n        }\n      },\n      \"month-short\": {\n        \"displayName\": \"mo.\",\n        \"relative\": {\n          \"0\": \"this mo.\",\n          \"1\": \"next mo.\",\n          \"-1\": \"last mo.\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} mo.\",\n            \"other\": \"in {0} mo.\"\n          },\n          \"past\": {\n            \"one\": \"{0} mo. ago\",\n            \"other\": \"{0} mo. ago\"\n          }\n        }\n      },\n      \"day\": {\n        \"displayName\": \"day\",\n        \"relative\": {\n          \"0\": \"today\",\n          \"1\": \"tomorrow\",\n          \"-1\": \"yesterday\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} day\",\n            \"other\": \"in {0} days\"\n          },\n          \"past\": {\n            \"one\": \"{0} day ago\",\n            \"other\": \"{0} days ago\"\n          }\n        }\n      },\n      \"day-short\": {\n        \"displayName\": \"day\",\n        \"relative\": {\n          \"0\": \"today\",\n          \"1\": \"tomorrow\",\n          \"-1\": \"yesterday\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} day\",\n            \"other\": \"in {0} days\"\n          },\n          \"past\": {\n            \"one\": \"{0} day ago\",\n            \"other\": \"{0} days ago\"\n          }\n        }\n      },\n      \"hour\": {\n        \"displayName\": \"hour\",\n        \"relative\": {\n          \"0\": \"this hour\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} hour\",\n            \"other\": \"in {0} hours\"\n          },\n          \"past\": {\n            \"one\": \"{0} hour ago\",\n            \"other\": \"{0} hours ago\"\n          }\n        }\n      },\n      \"hour-short\": {\n        \"displayName\": \"hr.\",\n        \"relative\": {\n          \"0\": \"this hour\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} hr.\",\n            \"other\": \"in {0} hr.\"\n          },\n          \"past\": {\n            \"one\": \"{0} hr. ago\",\n            \"other\": \"{0} hr. ago\"\n          }\n        }\n      },\n      \"minute\": {\n        \"displayName\": \"minute\",\n        \"relative\": {\n          \"0\": \"this minute\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} minute\",\n            \"other\": \"in {0} minutes\"\n          },\n          \"past\": {\n            \"one\": \"{0} minute ago\",\n            \"other\": \"{0} minutes ago\"\n          }\n        }\n      },\n      \"minute-short\": {\n        \"displayName\": \"min.\",\n        \"relative\": {\n          \"0\": \"this minute\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} min.\",\n            \"other\": \"in {0} min.\"\n          },\n          \"past\": {\n            \"one\": \"{0} min. ago\",\n            \"other\": \"{0} min. ago\"\n          }\n        }\n      },\n      \"second\": {\n        \"displayName\": \"second\",\n        \"relative\": {\n          \"0\": \"now\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} second\",\n            \"other\": \"in {0} seconds\"\n          },\n          \"past\": {\n            \"one\": \"{0} second ago\",\n            \"other\": \"{0} seconds ago\"\n          }\n        }\n      },\n      \"second-short\": {\n        \"displayName\": \"sec.\",\n        \"relative\": {\n          \"0\": \"now\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"one\": \"in {0} sec.\",\n            \"other\": \"in {0} sec.\"\n          },\n          \"past\": {\n            \"one\": \"{0} sec. ago\",\n            \"other\": \"{0} sec. ago\"\n          }\n        }\n      }\n    },\n    \"numbers\": {\n      \"decimal\": {\n        \"long\": [[1000, {\n          \"one\": [\"0 thousand\", 1],\n          \"other\": [\"0 thousand\", 1]\n        }], [10000, {\n          \"one\": [\"00 thousand\", 2],\n          \"other\": [\"00 thousand\", 2]\n        }], [100000, {\n          \"one\": [\"000 thousand\", 3],\n          \"other\": [\"000 thousand\", 3]\n        }], [1000000, {\n          \"one\": [\"0 million\", 1],\n          \"other\": [\"0 million\", 1]\n        }], [10000000, {\n          \"one\": [\"00 million\", 2],\n          \"other\": [\"00 million\", 2]\n        }], [100000000, {\n          \"one\": [\"000 million\", 3],\n          \"other\": [\"000 million\", 3]\n        }], [1000000000, {\n          \"one\": [\"0 billion\", 1],\n          \"other\": [\"0 billion\", 1]\n        }], [10000000000, {\n          \"one\": [\"00 billion\", 2],\n          \"other\": [\"00 billion\", 2]\n        }], [100000000000, {\n          \"one\": [\"000 billion\", 3],\n          \"other\": [\"000 billion\", 3]\n        }], [1000000000000, {\n          \"one\": [\"0 trillion\", 1],\n          \"other\": [\"0 trillion\", 1]\n        }], [10000000000000, {\n          \"one\": [\"00 trillion\", 2],\n          \"other\": [\"00 trillion\", 2]\n        }], [100000000000000, {\n          \"one\": [\"000 trillion\", 3],\n          \"other\": [\"000 trillion\", 3]\n        }]],\n        \"short\": [[1000, {\n          \"one\": [\"0K\", 1],\n          \"other\": [\"0K\", 1]\n        }], [10000, {\n          \"one\": [\"00K\", 2],\n          \"other\": [\"00K\", 2]\n        }], [100000, {\n          \"one\": [\"000K\", 3],\n          \"other\": [\"000K\", 3]\n        }], [1000000, {\n          \"one\": [\"0M\", 1],\n          \"other\": [\"0M\", 1]\n        }], [10000000, {\n          \"one\": [\"00M\", 2],\n          \"other\": [\"00M\", 2]\n        }], [100000000, {\n          \"one\": [\"000M\", 3],\n          \"other\": [\"000M\", 3]\n        }], [1000000000, {\n          \"one\": [\"0B\", 1],\n          \"other\": [\"0B\", 1]\n        }], [10000000000, {\n          \"one\": [\"00B\", 2],\n          \"other\": [\"00B\", 2]\n        }], [100000000000, {\n          \"one\": [\"000B\", 3],\n          \"other\": [\"000B\", 3]\n        }], [1000000000000, {\n          \"one\": [\"0T\", 1],\n          \"other\": [\"0T\", 1]\n        }], [10000000000000, {\n          \"one\": [\"00T\", 2],\n          \"other\": [\"00T\", 2]\n        }], [100000000000000, {\n          \"one\": [\"000T\", 3],\n          \"other\": [\"000T\", 3]\n        }]]\n      }\n    }\n  }];\n});","define(\"client/cldrs/zh\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /*jslint eqeq: true*/\n  var _default = _exports.default = [{\n    \"locale\": \"zh-tw\",\n    \"parentLocale\": \"zh\"\n  }, {\n    \"locale\": \"zh\",\n    \"pluralRuleFunction\": function (n, ord) {\n      if (ord) return \"other\";\n      return \"other\";\n    },\n    \"fields\": {\n      \"year\": {\n        \"displayName\": \"年\",\n        \"relative\": {\n          \"0\": \"今年\",\n          \"1\": \"明年\",\n          \"-1\": \"去年\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}年后\"\n          },\n          \"past\": {\n            \"other\": \"{0}年前\"\n          }\n        }\n      },\n      \"year-short\": {\n        \"displayName\": \"年\",\n        \"relative\": {\n          \"0\": \"今年\",\n          \"1\": \"明年\",\n          \"-1\": \"去年\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}年后\"\n          },\n          \"past\": {\n            \"other\": \"{0}年前\"\n          }\n        }\n      },\n      \"month\": {\n        \"displayName\": \"月\",\n        \"relative\": {\n          \"0\": \"本月\",\n          \"1\": \"下个月\",\n          \"-1\": \"上个月\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}个月后\"\n          },\n          \"past\": {\n            \"other\": \"{0}个月前\"\n          }\n        }\n      },\n      \"month-short\": {\n        \"displayName\": \"月\",\n        \"relative\": {\n          \"0\": \"本月\",\n          \"1\": \"下个月\",\n          \"-1\": \"上个月\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}个月后\"\n          },\n          \"past\": {\n            \"other\": \"{0}个月前\"\n          }\n        }\n      },\n      \"day\": {\n        \"displayName\": \"日\",\n        \"relative\": {\n          \"0\": \"今天\",\n          \"1\": \"明天\",\n          \"2\": \"后天\",\n          \"-2\": \"前天\",\n          \"-1\": \"昨天\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}天后\"\n          },\n          \"past\": {\n            \"other\": \"{0}天前\"\n          }\n        }\n      },\n      \"day-short\": {\n        \"displayName\": \"日\",\n        \"relative\": {\n          \"0\": \"今天\",\n          \"1\": \"明天\",\n          \"2\": \"后天\",\n          \"-2\": \"前天\",\n          \"-1\": \"昨天\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}天后\"\n          },\n          \"past\": {\n            \"other\": \"{0}天前\"\n          }\n        }\n      },\n      \"hour\": {\n        \"displayName\": \"小时\",\n        \"relative\": {\n          \"0\": \"这一时间 \\u002F 此时\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}小时后\"\n          },\n          \"past\": {\n            \"other\": \"{0}小时前\"\n          }\n        }\n      },\n      \"hour-short\": {\n        \"displayName\": \"小时\",\n        \"relative\": {\n          \"0\": \"这一时间 \\u002F 此时\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}小时后\"\n          },\n          \"past\": {\n            \"other\": \"{0}小时前\"\n          }\n        }\n      },\n      \"minute\": {\n        \"displayName\": \"分钟\",\n        \"relative\": {\n          \"0\": \"此刻\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}分钟后\"\n          },\n          \"past\": {\n            \"other\": \"{0}分钟前\"\n          }\n        }\n      },\n      \"minute-short\": {\n        \"displayName\": \"分\",\n        \"relative\": {\n          \"0\": \"此刻\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}分钟后\"\n          },\n          \"past\": {\n            \"other\": \"{0}分钟前\"\n          }\n        }\n      },\n      \"second\": {\n        \"displayName\": \"秒\",\n        \"relative\": {\n          \"0\": \"现在\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}秒钟后\"\n          },\n          \"past\": {\n            \"other\": \"{0}秒钟前\"\n          }\n        }\n      },\n      \"second-short\": {\n        \"displayName\": \"秒\",\n        \"relative\": {\n          \"0\": \"现在\"\n        },\n        \"relativeTime\": {\n          \"future\": {\n            \"other\": \"{0}秒后\"\n          },\n          \"past\": {\n            \"other\": \"{0}秒前\"\n          }\n        }\n      }\n    },\n    \"numbers\": {\n      \"decimal\": {\n        \"long\": [[1000, {\n          \"other\": [\"0\", 1]\n        }], [10000, {\n          \"other\": [\"0万\", 1]\n        }], [100000, {\n          \"other\": [\"00万\", 2]\n        }], [1000000, {\n          \"other\": [\"000万\", 3]\n        }], [10000000, {\n          \"other\": [\"0000万\", 4]\n        }], [100000000, {\n          \"other\": [\"0亿\", 1]\n        }], [1000000000, {\n          \"other\": [\"00亿\", 2]\n        }], [10000000000, {\n          \"other\": [\"000亿\", 3]\n        }], [100000000000, {\n          \"other\": [\"0000亿\", 4]\n        }], [1000000000000, {\n          \"other\": [\"0兆\", 1]\n        }], [10000000000000, {\n          \"other\": [\"00兆\", 2]\n        }], [100000000000000, {\n          \"other\": [\"000兆\", 3]\n        }]],\n        \"short\": [[1000, {\n          \"other\": [\"0\", 1]\n        }], [10000, {\n          \"other\": [\"0万\", 1]\n        }], [100000, {\n          \"other\": [\"00万\", 2]\n        }], [1000000, {\n          \"other\": [\"000万\", 3]\n        }], [10000000, {\n          \"other\": [\"0000万\", 4]\n        }], [100000000, {\n          \"other\": [\"0亿\", 1]\n        }], [1000000000, {\n          \"other\": [\"00亿\", 2]\n        }], [10000000000, {\n          \"other\": [\"000亿\", 3]\n        }], [100000000000, {\n          \"other\": [\"0000亿\", 4]\n        }], [1000000000000, {\n          \"other\": [\"0兆\", 1]\n        }], [10000000000000, {\n          \"other\": [\"00兆\", 2]\n        }], [100000000000000, {\n          \"other\": [\"000兆\", 3]\n        }]]\n      }\n    }\n  }];\n});","define(\"client/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 () {\n      return _emberComponentManager.default;\n    }\n  });\n});","define(\"client/components/ember-chart\", [\"exports\", \"ember-cli-chart/components/ember-chart\"], function (_exports, _emberChart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberChart.default;\n});","define(\"client/components/froala-content\", [\"exports\", \"ember-froala-editor/components/froala-content\"], function (_exports, _froalaContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _froalaContent.default;\n    }\n  });\n});","define(\"client/components/froala-editor\", [\"exports\", \"ember-froala-editor/components/froala-editor\"], function (_exports, _froalaEditor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _froalaEditor.default;\n    }\n  });\n});","define(\"client/components/sticky-element\", [\"exports\", \"ember-sticky-element/components/sticky-element\"], function (_exports, _stickyElement) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _stickyElement.default;\n    }\n  });\n});","define(\"client/components/sticky-element/trigger\", [\"exports\", \"ember-sticky-element/components/sticky-element/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 () {\n      return _trigger.default;\n    }\n  });\n});","define(\"client/components/welcome-page\", [\"exports\", \"ember-welcome-page/components/welcome-page\"], function (_exports, _welcomePage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _welcomePage.default;\n    }\n  });\n});","define(\"client/constants/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const constants = {\n    dataTypes: {\n      text: 'text',\n      number: 'number',\n      email: 'email',\n      telephone: 'telephone',\n      date: 'date'\n    },\n    dataKeys: {\n      name: 'name',\n      email: 'email',\n      telephone: 'telephone',\n      address: 'address',\n      gender: 'gender',\n      birthday: 'birthday',\n      date: 'date',\n      custom: 'custom'\n    },\n    status: {\n      inactive: 'inactive',\n      suspended: 'suspended',\n      active: 'active'\n    },\n    publicStatus: {\n      public: 'public',\n      private: 'private'\n    },\n    notificationsStatus: {\n      read: 'read',\n      unread: 'unread'\n    },\n    productTracking: {\n      on: 'on',\n      off: 'off'\n    },\n    productTypes: {\n      inventory: 'inventory',\n      service: 'service',\n      virtual: 'virtual',\n      collectOnBehalf: 'collectOnBehalf'\n    },\n    contactsRelationship: {\n      customer: 'customer',\n      supplier: 'supplier'\n    },\n    dispatchStatus: {\n      undispatched: 'undispatched',\n      onHold: 'onHold',\n      dispatched: 'dispatched'\n    },\n    productsStatus: {\n      active: 'active',\n      inactive: 'inactive',\n      preOrder: 'preOrder',\n      outOfStock: 'outOfStock',\n      // @deprecated no longer used\n      soldOut: 'soldOut',\n      draft: 'draft'\n    },\n    documentsStatus: {\n      draft: 'draft',\n      final: 'final',\n      void: 'void'\n    },\n    emailsCampaignsEditStatus: {\n      draft: 'draft',\n      inactive: 'inactive',\n      active: 'active'\n    },\n    paymentCreditCardStatus: {\n      /** @type {'approved'} */\n      approved: 'approved',\n      /** @type {'declined'} */\n      declined: 'declined',\n      /** @type {'refundRequested'} */\n      refundRequested: 'refundRequested',\n      /** @type {'refunded'} */\n      refunded: 'refunded',\n      /** @type {'paidOut'} */\n      paidOut: 'paidOut',\n      /** @type {'pending'} */\n      pending: 'pending'\n    },\n    paymentVirtualAccountStatus: {\n      /** @type {'approved'} */\n      approved: 'approved',\n      /** @type {'pending'} */\n      pending: 'pending',\n      /** @type {'expired'} */\n      expired: 'expired',\n      /** @type {'attentionRequired'} */\n      attentionRequired: 'attentionRequired'\n    },\n    paymentLinePayStatus: {\n      approved: 'approved',\n      pending: 'pending',\n      declined: 'declined',\n      refundRequested: 'refundRequested',\n      refunded: 'refunded',\n      paidOut: 'paidOut',\n      canceled: 'canceled'\n    },\n    banksStatus: {\n      inactive: 'inactive',\n      suspended: 'suspended',\n      active: 'active'\n    },\n    pendingStatus: {\n      new: 'new',\n      pending: 'pending',\n      complete: 'complete'\n    },\n    campaignStatus: {\n      online: 'online',\n      offline: 'offline',\n      archived: 'archived'\n    },\n    campaignProductsImageRatio: {\n      oneByOne: 'oneByOne',\n      twoByThree: 'twoByThree',\n      threeByTwo: 'threeByTwo',\n      threeByFour: 'threeByFour',\n      fourByThree: 'fourByThree'\n    },\n    campaignProductsImageFit: {\n      fit: 'fit',\n      scaleCrop: 'scale_crop'\n    },\n    dispatchProcess: {\n      unprepared: 'unprepared',\n      undispatched: 'undispatched',\n      awaitingPayment: 'awaitingPayment',\n      awaitingRecurringPayment: 'awaitingRecurringPayment',\n      outOfStock: 'outOfStock',\n      preparing: 'preparing',\n      dispatched: 'dispatched'\n    },\n    discountTypes: {\n      rate: 'rate',\n      amount: 'amount'\n    },\n    discountMethods: {\n      onTotal: 'onTotal',\n      perLine: 'perLine'\n    },\n    eInvoicesAllocationsStatus: {\n      started: 'started',\n      finished: 'finished',\n      disallowed: 'disallowed',\n      fresh: 'fresh'\n    },\n    eInvoicesStatus: {\n      queued: 'queued',\n      // processing: 'processing',\n      unsuccessful: 'unsuccessful',\n      successful: 'successful',\n      cancelled: 'cancelled',\n      pending: 'pending',\n      attentionRequired: 'attentionRequired',\n      // will no longer retry\n      // willRetry: 'willRetry',\n      pendingCancellation: 'pendingCancellation'\n      // failed: 'failed'\n    },\n    eInvoicesUploadStatus: {\n      notIssued: 'notIssued',\n      issued: 'issued',\n      uploaded: 'uploaded',\n      uploadedConfirmed: 'uploadedConfirmed'\n    },\n    schedulesStatus: {\n      inactive: 'inactive',\n      cancelled: 'cancelled',\n      pending: 'pending',\n      complete: 'complete'\n    },\n    taxMethods: {\n      auto: 'auto',\n      none: 'none',\n      exclusive: 'exclusive',\n      inclusive: 'inclusive'\n    },\n    taxes: {\n      auto: 'auto',\n      zero: 'zero'\n    },\n    paymentMethods: {\n      /** @type {'none'} */\n      none: 'none',\n      /** @type {'cash'} */\n      cash: 'cash',\n      /** @type {'cashBeforeDelivery'} */\n      cashBeforeDelivery: 'cashBeforeDelivery',\n      /** @type {'creditCard'} */\n      creditCard: 'creditCard',\n      /** @type {'account'} */\n      account: 'account',\n      /** @type {'consignment'} */\n      consignment: 'consignment',\n      /** @type {'free'} */\n      free: 'free',\n      /** @type {'linePay'} */\n      linePay: 'linePay',\n      /** @type {'other'} */\n      other: 'other',\n      /** @type {'applePay'} */\n      applePay: 'applePay',\n      /** @type {'googlePay'} */\n      googlePay: 'googlePay',\n      /** @type {'samsungPay'} */\n      samsungPay: 'samsungPay'\n    },\n    paymentTermsFrom: {\n      invoiceDate: 'invoiceDate',\n      invoiceMonth: 'invoiceMonth'\n    },\n    paymentTermsEnd: {\n      exactDate: 'exactDate',\n      monthEnd: 'monthEnd'\n    },\n    deliveryDateOptions: {\n      single: 'single',\n      multiple: 'multiple'\n    },\n    invoicing: {\n      auto: 'auto',\n      on: 'on',\n      off: 'off'\n    },\n    ledgers: {\n      active: 'active',\n      inactive: 'inactive'\n    },\n    isTransporter: {\n      on: 'on',\n      off: 'off'\n    },\n    togglesAuto: {\n      auto: 'auto',\n      on: 'on',\n      off: 'off'\n    },\n    togglesOnOff: {\n      on: 'on',\n      off: 'off'\n    },\n    deliveryDateSettings: {\n      fromOrderDate: 'fromOrderDate',\n      fromSetDate: 'fromSetDate'\n    },\n    detailTypes: {\n      shippingFee: 'shippingFee',\n      automations: 'automations'\n    },\n    shippingFeeType: {\n      zones: 'zones',\n      flat: 'flat'\n    },\n    shippingFeeZoneType: {\n      single: 'single',\n      multiple: 'multiple',\n      convenienceStore: 'convenienceStore',\n      lalamove: 'lalamove'\n    },\n    /**\n     * @type {IUserTypes}\n     */\n    userTypes: {\n      employee: 'employee',\n      apiAccess: 'apiAccess',\n      external: 'external',\n      eInvoicePrinterTerminal: 'eInvoicePrinterTerminal'\n    },\n    commissionMethod: {\n      baseCost: 'baseCost',\n      flat: 'flat',\n      percentagePrice: 'percentagePrice'\n    },\n    automationsWhen: {\n      orderValue: 'orderValue',\n      itemQty: 'itemQty',\n      itemValue: 'itemValue'\n    },\n    automationsWhenItemQtyType: {\n      products: 'products',\n      tags: 'tags',\n      all: 'all'\n    },\n    automationsCriterias: {\n      greaterThan: 'greaterThan',\n      greaterThanOrEqualTo: 'greaterThanOrEqualTo',\n      isBetween: 'isBetween',\n      lessThan: 'lessThan',\n      lessThanOrEqualTo: 'lessThanOrEqualTo',\n      equals: 'equals',\n      notEquals: 'notEquals'\n    },\n    automationsThenActions: {\n      mustAdd: 'mustAdd',\n      mayAdd: 'mayAdd'\n    },\n    automationsThenSelectionTypes: {\n      all: 'all',\n      between: 'between'\n    },\n    transporterExtensions: {\n      /** @type {'hct'} */\n      hct: 'hct',\n      /** @type {'kerry'} */\n      kerry: 'kerry',\n      /** @type {'t-cat'} */\n      tCat: 't-cat',\n      /** @type {'seven-eleven'} */\n      sevenEleven: 'seven-eleven',\n      /** @type {'payuni-seven-eleven'} */\n      payuniSevenEleven: 'payuni-seven-eleven'\n    },\n    templateTypes: {\n      blocks: 'blocks',\n      templates: 'templates'\n    },\n    templateOptions: {\n      /** @type {'basicWebPage'} */\n      basicWebPage: 'basicWebPage',\n      /** @type {'advancedTemplate'} */\n      advancedTemplate: 'advancedTemplate'\n    },\n    websitePageTypes: {\n      page: 'page',\n      link: 'link',\n      category: 'category'\n    },\n    websitePageLinkTypes: {\n      url: 'url',\n      // category: 'category',\n      // page: 'page',\n      product: 'product',\n      pageAndCategory: 'pageAndCategory',\n      blog: 'blog',\n      news: 'news',\n      storeLocation: 'storeLocation',\n      flows: 'flows'\n    },\n    detailLimitTypes: {\n      inventory: 'inventory',\n      campaign: 'campaign'\n    },\n    timePeriods: {\n      days: 'days',\n      weeks: 'weeks',\n      months: 'months',\n      years: 'years'\n    },\n    rewardEvents: {\n      birthday: 'birthday',\n      order: 'order',\n      signup: 'signup',\n      promotion: 'promotion',\n      opening: 'opening',\n      adjustment: 'adjustment',\n      memberLevelAdjustment: 'memberLevelAdjustment',\n      pointsAdjustment: 'pointsAdjustment',\n      referral: 'referral'\n    },\n    rewardEarningTypes: {\n      rate: 'rate',\n      amount: 'amount'\n    },\n    rewardOrderTypes: {\n      total: 'total',\n      quantity: 'quantity'\n    },\n    rewardMaxDeductionType: {\n      rate: 'rate',\n      amount: 'amount'\n    },\n    rewardMethod: {\n      earn: 'earn',\n      use: 'use'\n    },\n    rewardPointStatus: {\n      valid: 'valid',\n      pending: 'pending'\n    },\n    workflowsItemsStatuses: {\n      open: 'open',\n      successful: 'successful',\n      unsuccessful: 'unsuccessful'\n    },\n    workflowsItemsActivitiesTypes: {\n      activity: 'activity',\n      call: 'call',\n      email: 'email',\n      event: 'event',\n      meeting: 'meeting',\n      notes: 'notes',\n      review: 'review',\n      authorization: 'authorization',\n      todo: 'todo',\n      attentionRequired: 'attentionRequired',\n      refund: 'refund'\n    },\n    pickupMethods: {\n      homeDelivery: {\n        label: 'transport',\n        value: 'homeDelivery'\n      },\n      convenienceStore: {\n        label: 'convenience store',\n        value: 'convenienceStore'\n      },\n      storeLocationPickup: {\n        label: 'store location pick up',\n        value: 'storeLocationPickup'\n      }\n    },\n    convenienceStoresBrands: {\n      sevenEleven: 'sevenEleven',\n      familyMart: 'familyMart'\n    },\n    variantSelectorStyle: {\n      buttons: 'buttons',\n      dropdown: 'dropdown'\n    },\n    recurringShippingFeeBehavior: {\n      all: 'all',\n      first: 'first'\n    },\n    recurringPromoCodeBehavior: {\n      first: 'first',\n      last: 'last'\n    },\n    shippingStatus: {\n      waybillCreated: 'waybillCreated',\n      shipped: 'shipped',\n      attentionRequired: 'attentionRequired',\n      readyForPickupAtDestination: 'readyForPickupAtDestination',\n      readyForPickupAtReturnDestination: 'readyForPickupAtReturnDestination',\n      outForDelivery: 'outForDelivery',\n      toReturn: 'toReturn',\n      delivered: 'delivered',\n      // @deprecated. use completed\n      cancelled: 'cancelled',\n      exception: 'exception',\n      completed: 'completed',\n      addressChangeRequired: 'addressChangeRequired'\n    },\n    videoSources: {\n      youtube: 'youtube',\n      youtubeShorts: 'youtube-shorts',\n      tiktok: 'tiktok'\n    },\n    productAttachmentsTypes: {\n      video: 'video',\n      link: 'link'\n    },\n    pageBlockTypes: {\n      /** @type {'buttons'} */\n      buttons: 'buttons',\n      /** @type {'texts'} */\n      texts: 'texts',\n      /** @type {'images'} */\n      images: 'images',\n      /** @type {'products'} */\n      products: 'products',\n      /** @type {'features'} */\n      features: 'features',\n      /** @type {'sliders'} */\n      sliders: 'sliders',\n      /** @type {'videos'} */\n      videos: 'videos',\n      /** @type {'socialLinks'} */\n      socialLinks: 'social-links',\n      /** @type {'mailingList'} */\n      mailingList: 'mailingList',\n      /** @type {'flows'} */\n      flows: 'flows',\n      /** @type {'tips'} */\n      tips: 'tips',\n      /** @type {'instagramPosts'} */\n      instagramPosts: 'instagramPosts',\n      /** @type {'facebookPosts'} */\n      facebookPosts: 'facebookPosts',\n      /** @type {'tikTokPosts'} */\n      tikTokPosts: 'tikTokPosts',\n      /** @type {'threadsPosts'} */\n      threadsPosts: 'threadsPosts',\n      /** @type {'blogs'} */\n      blogs: 'blogs',\n      /** @type {'news'} */\n      news: 'news',\n      /** @type {'faqs'} */\n      faqs: 'faqs',\n      /** @type {'custom'} */\n      custom: 'custom',\n      /** @type {'links'} */\n      links: 'links',\n      /** @type {'tabs'} */\n      tabs: 'tabs'\n    },\n    sizes: {\n      none: 'none',\n      small: 'small',\n      medium: 'medium',\n      large: 'large',\n      xLarge: 'xLarge',\n      fullWidth: 'fullWidth',\n      custom: 'custom'\n    },\n    sizesUnits: {\n      px: 'px',\n      '%': '%'\n    },\n    alignment: {\n      left: 'left',\n      center: 'center',\n      right: 'right'\n    },\n    alignmentVertical: {\n      top: 'top',\n      center: 'center',\n      bottom: 'bottom',\n      equalHeights: 'equalHeights'\n    },\n    transparency: {\n      none: 'none',\n      slight: 'slight',\n      half: 'half',\n      very: 'very',\n      full: 'full'\n    },\n    fontStyles: {\n      bold: 'bold',\n      italic: 'italic',\n      underline: 'underline'\n    },\n    colorOptions: {\n      none: 'none',\n      solid: 'solid'\n    },\n    buttonsDisplayStyles: {\n      /** @type {'vertical'} */\n      vertical: 'vertical',\n      /** @type {'horizontal'} */\n      horizontal: 'horizontal'\n    },\n    interactionMethods: {\n      link: 'link',\n      button: 'button'\n    },\n    buttonImagesOptions: {\n      none: 'none',\n      left: 'left',\n      right: 'right'\n    },\n    buttonImagesTypes: {\n      icon: 'icon',\n      image: 'image'\n    },\n    textDisplayStyles: {\n      basic: 'basic',\n      advanced: 'advanced'\n    },\n    videosDisplayStyles: {\n      fullWidth: 'fullWidth',\n      fixedWidth: 'fixedWidth'\n    },\n    menuExpandBehavior: {\n      autoHide: 'autoHide',\n      autoExpand: 'autoExpand'\n    },\n    featuresDisplayStyles: {\n      /** @type {'slider'} */\n      slider: 'slider',\n      /** @type {'grid'} */\n      grid: 'grid',\n      /** @type {'story'} */\n      story: 'story',\n      /** @type {'tabs'} */\n      tabs: 'tabs'\n    },\n    supportedFeaturesDisplayStyles: ['slider', 'grid', 'story'],\n    featuresContentDisplayStyles: {\n      /** @type {'imageOnlyOne'} */\n      imageOnlyOne: 'image-only-one',\n      // text on image advanced\n      /** @type {'textOnImageOne'} */\n      textOnImageOne: 'text-on-image-one',\n      // text on image basic\n      /** @type {'textOnImageTwo'} */\n      textOnImageTwo: 'text-on-image-two',\n      // text on image basic\n      /** @type {'textAndImageSplitOne'} */\n      textAndImageSplitOne: 'text-and-image-split-one',\n      // half text, half image\n      /** @type {'topDownOne'} */\n      topDownOne: 'top-down-one' // top down\n    },\n    imagesDisplayStyles: {\n      /** @type {'slider'} */\n      slider: 'slider',\n      /** @type {'grid'} */\n      grid: 'grid'\n    },\n    imagesGridStyle: {\n      /** @type {'original'} */\n      original: 'original',\n      /** @type {'square'} */\n      square: 'square'\n    },\n    productsDisplayStyles: {\n      /** @type {'slider'} */\n      slider: 'slider',\n      /** @type {'grid'} */\n      grid: 'grid'\n    },\n    productsDisplayBy: {\n      /** @type {'tags'} */\n      tags: 'tags',\n      /** @type {'products'} */\n      products: 'products'\n    },\n    blogsSortBy: {\n      /** @type {'index'} */\n      index: 'index',\n      /** @type {'createdDate'} */\n      createdDate: 'createdDateZ',\n      /** @type {'updatedDate'} */\n      updatedDate: 'timestampZ_update'\n    },\n    displayBy: {\n      /** @type {'tags'} */\n      tags: 'tags',\n      /** @type {'items'} */\n      items: 'items'\n    },\n    imagesSliderSizeOptions: {\n      /** @type {'small'} */\n      small: 'small',\n      /** @type {'medium'} */\n      medium: 'medium',\n      /** @type {'large'} */\n      large: 'large'\n    },\n    imagesSliderElementPosition: {\n      /** @type {'inside'} */\n      inside: 'inside',\n      /** @type {'outside'} */\n      outside: 'outside'\n    },\n    imagesSliderDotsStyles: {\n      /** @type {'dots'} */\n      dots: 'dots',\n      /** @type {'lines'} */\n      lines: 'lines'\n    },\n    creditCardProvider: {\n      ecPay: 'ecPay',\n      tapPay: 'tapPay',\n      payuni: 'payuni'\n    },\n    /**\n     * @type {IPrinter}\n     */\n    twEInvoicePrinter: {\n      allowPrintingFrom: {\n        printerAllocatedNumbers: 'printerAllocatedNumbers',\n        anyNextAvailableNumbers: 'anyNextAvailableNumbers'\n      },\n      models: {\n        microchip: 'escpos-microchip-04d8-000a',\n        hprtTp805: 'escpos-hprt-tp805'\n      },\n      defaultModel: 'escpos-microchip-04d8-000a',\n      // The printer app's first-install links. Every release is copied to these fixed\n      // names, so the links never change; the names are `LATEST_NAMES` in\n      // bigordr-printer-v3/scripts/release.mjs and must stay identical to them.\n      downloadsBaseUrl: 'https://cdn.bigordr.com/files/printer/latest',\n      downloads: [{\n        key: 'macArm',\n        label: 'printer download mac arm',\n        file: 'BigOrdr-Printer-macos-arm64.dmg'\n      }, {\n        key: 'macIntel',\n        label: 'printer download mac intel',\n        file: 'BigOrdr-Printer-macos-x64.dmg'\n      }, {\n        key: 'windows',\n        label: 'printer download windows',\n        file: 'BigOrdr-Printer-windows-x64-setup.exe'\n      }]\n    },\n    paymentProvider: {\n      ecPay: 'ecPay',\n      tapPay: 'tapPay',\n      payuni: 'payuni'\n    },\n    socialLinksTypes: {\n      /** @type {'facebook'} */\n      facebook: 'facebook',\n      /** @type {'line'} */\n      line: 'line',\n      /** @type {'instagram'} */\n      instagram: 'instagram',\n      /** @type {'thread'} */\n      thread: 'thread',\n      /** @type {'x'} */\n      x: 'x'\n    },\n    containerMarginOption: {\n      /** @type {'topAndBottom'} */\n      topAndBottom: 'topAndBottom',\n      /** @type {'custom'} */\n      custom: 'custom'\n    },\n    containerPaddingOption: {\n      /** @type {'all'} */\n      all: 'all',\n      /** @type {'custom'} */\n      custom: 'custom'\n    },\n    containerWidth: {\n      default: 'default',\n      fullWidth: 'fullWidth'\n    },\n    billingTypeProviders: {\n      /** @type {'systemlead'} */\n      systemlead: 'systemlead'\n    },\n    /** How the API changed a PayUni 7-11 waybill's declared value before sending it (same values as the API) */\n    declaredAmountAdjustments: {\n      /** @type {'capped'} */\n      capped: 'capped',\n      /** @type {'raised'} */\n      raised: 'raised'\n    },\n    /** The declared value per waybill that PayUni 7-11 accepts without the API changing it (same values as the API's MIN_DECLARED_TRADE_AMOUNT and MAX_PACKAGE_AMOUNT) */\n    payuniSevenElevenDeclaredAmountLimits: {\n      min: 1,\n      max: 19999\n    }\n  };\n  var _default = _exports.default = constants;\n  /**\n   * @typedef {Object} IUserTypes\n   * @property {'employee'} employee\n   * @property {'external'} external\n   * @property {'eInvoicePrinterTerminal'} eInvoicePrinterTerminal\n   */\n  /**\n   * @typedef {Object} IPrinter\n   * @property {IPrinterAllowPrintingFrom} allowPrintingFrom\n   * @property {IPrinterModels} models\n   * @property {'escpos-microchip-04d8-000a'} defaultModel\n   * @property {string} downloadsBaseUrl - the CDN folder the latest installers live in\n   * @property {IPrinterDownload[]} downloads - one first-install link per platform\n   */\n  /**\n   * @typedef {Object} IPrinterDownload\n   * @property {'macArm'|'macIntel'|'windows'} key\n   * @property {string} label - translation key of the link text\n   * @property {string} file - the fixed installer name under `downloadsBaseUrl`\n   */\n  /**\n   * @typedef {Object} IPrinterAllowPrintingFrom\n   * @property {'printerAllocatedNumbers'} printerAllocatedNumbers\n   * @property {'anyNextAvailableNumbers'} anyNextAvailableNumbers\n   */\n  /**\n   * The values are the driver ids of the BigOrdr printer app.\n   * @typedef {Object} IPrinterModels\n   * @property {'escpos-microchip-04d8-000a'} microchip\n   * @property {'escpos-hprt-tp805'} hprtTp805\n   */\n});","define(\"client/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 () {\n      return _debug.default;\n    }\n  });\n});","define(\"client/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      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    date: {\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    number: {\n      EUR: {\n        style: 'currency',\n        currency: 'EUR',\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(\"client/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 () {\n      return _and.and;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _and.default;\n    }\n  });\n});","define(\"client/helpers/app-version\", [\"exports\", \"client/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _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(_, hash = {}) {\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 = Ember.Helper.helper(appVersion);\n});","define(\"client/helpers/arr\", [\"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 = Ember.Helper.extend({\n    compute(params /* , hash */) {\n      return params;\n    }\n  });\n});","define(\"client/helpers/bToKb\", [\"exports\", \"client/mixins/big\"], function (_exports, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params) {\n      let size = params[0];\n      if (size) {\n        size = this.newBig(size);\n        return size.div(1024).toFixed(2) + ' KB';\n      }\n      return '0 KB';\n    }\n  });\n});","define(\"client/helpers/badgeCount\", [\"exports\", \"client/mixins/big\", \"ramda\", \"ramda-adjunct\"], function (_exports, _big, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      const array = params[0] || [];\n      return R.pipe(R.reject(RA.isNilOrEmpty), R.length)(array);\n    }\n  });\n});","define(\"client/helpers/boolean\", [\"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 = Ember.Helper.extend({\n    compute(params /* , hash */) {\n      const value = params[0];\n      if (value == null) {\n        return false;\n      }\n      return value;\n    }\n  });\n});","define(\"client/helpers/calculate\", [\"exports\", \"client/mixins/big\"], function (_exports, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params, hash) {\n      const rounding = hash.rounding || 0;\n\n      // eg. {{calculate index '+' '1'}}\n\n      const n1 = params[0] || 0;\n      const operation = params[1];\n      const n2 = params[2] || 0;\n      if (operation === '+' || operation === 'plus') {\n        return this.newBig(n1).plus(n2).toFixed(rounding);\n      }\n      if (operation === '-' || operation === 'minus') {\n        return this.newBig(n1).minus(n2).toFixed(rounding);\n      }\n      if (operation === '*' || operation === 'times') {\n        return this.newBig(n1).times(n2).toFixed(rounding);\n      }\n      if (operation === '/' || operation === 'div') {\n        return this.newBig(n1).div(n2).toFixed(rounding);\n      }\n      throw new Error(`invalid operation: ${operation}`);\n    }\n  });\n});","define(\"client/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 () {\n      return _cancelAll.default;\n    }\n  });\n});","define(\"client/helpers/compare\", [\"exports\", \"client/mixins/date\", \"ramda\"], function (_exports, _date, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_date.default, {\n    compute(params /* ,  hash */) {\n      // @TODO: clean up and test\n      if (params[3]) {\n        // handle case insensitive conditions if 4 param is passed.\n        let paramsZero = params[0];\n        if (R.is(String, paramsZero)) {\n          paramsZero = paramsZero.toLowerCase();\n          params[0] = paramsZero;\n        }\n        let paramsTwo = params[2];\n        if (R.is(String, paramsTwo)) {\n          paramsTwo = paramsTwo.toLowerCase();\n          params[2] = paramsTwo;\n        }\n      }\n      const v1 = params[0];\n      const operator = params[1];\n      const v2 = params[2];\n      switch (operator) {\n        case '==':\n          return v1 == v2;\n        case '!=':\n          return v1 != v2;\n        case '===':\n          return v1 === v2;\n        case '<':\n          return v1 < v2;\n        case '<=':\n          return v1 <= v2;\n        case '>':\n          return v1 > v2;\n        case '>=':\n          return v1 >= v2;\n        case '&&':\n          return !!(v1 && v2);\n        case '||':\n          return !!(v1 || v2);\n        default:\n          return false;\n      }\n    }\n  });\n});","define(\"client/helpers/component-exist\", [\"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 = Ember.Helper.extend({\n    compute(params /* , hash */) {\n      const path = params[0];\n      if (!path) {\n        return false;\n      }\n      const owner = Ember.getOwner(this);\n      // Use Ember's resolver to check if a component with this path exists\n      // The 'component:' prefix is crucial for the resolver.\n      return !!owner.resolveRegistration(`component:${path}`);\n    }\n  });\n});","define(\"client/helpers/contains\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params /* , hash */) {\n      const key = params[0];\n      const array = params[1] || [];\n      return R.includes(key, array);\n    }\n  });\n});","define(\"client/helpers/count\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    /**\n     * get length of values.\n     * can pass in multiple arrays as params\n     */\n    compute(params /* , hash */) {\n      const values = R.values(params) || [];\n      return R.reduce((acc, value) => {\n        if (value != null) {\n          const length = value.length || 0;\n          return acc + length;\n        }\n        return acc;\n      }, 0, values);\n    }\n  });\n});","define(\"client/helpers/currency\", [\"exports\", \"client/mixins/big\"], function (_exports, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      let number = params[0];\n      const defaultValue = params[1];\n      const rounding = hash.rounding;\n      const autoRound = hash.autoRound;\n      const negative = hash.negative;\n      const dontWrapHtmlSafe = hash?.dontWrapHtmlSafe;\n      const str = number + '';\n      if (number == null || str.trim() === '') {\n        if (defaultValue != null) {\n          return defaultValue;\n        }\n        return '$ 0';\n      }\n      if (negative) {\n        number = this.newBig(number).times(-1).toFixed();\n      }\n      let options = {};\n      if (rounding != null) {\n        if (autoRound) {\n          number = this.newBig(number);\n          number = this.autoRound(rounding, number);\n        } else {\n          number = this.newBig(number).toFixed(rounding);\n        }\n        options = {\n          maximumFractionDigits: rounding\n        };\n      }\n      const prefix = '$ ';\n      if (dontWrapHtmlSafe) {\n        return prefix + this.intl.formatNumber(number, options);\n      }\n      return Ember.String.htmlSafe('<span class=\"u-no-wrap\">' + prefix + this.intl.formatNumber(number, options) + '</span>');\n    }\n  });\n});","define(\"client/helpers/date\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_date.default, {\n    intl: Ember.inject.service(),\n    compute(params /* ,  hash */) {\n      const dateZ = params[0];\n      const format = params[1];\n      return this.formatDate(dateZ, format);\n    }\n  });\n});","define(\"client/helpers/dateRange\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_date.default, {\n    intl: Ember.inject.service(),\n    compute(params /* ,  hash */) {\n      const startDateZ = params[0];\n      const endDateZ = params[1];\n      const format = params[2];\n      const range = this.formatDate(startDateZ, format);\n      if (range && endDateZ) {\n        return range + ' ~ ' + this.formatDate(endDateZ, format);\n      }\n      if (endDateZ) {\n        return ' < ' + this.formatDate(endDateZ, format);\n      }\n      if (range) {\n        return range + ' > ';\n      }\n      return '';\n    }\n  });\n});","define(\"client/helpers/dateTime\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_date.default, {\n    intl: Ember.inject.service(),\n    compute(params /* ,  hash */) {\n      const dateZ = params[0];\n      const format = params[1] || 'YYYY-MM-DD HH:mm:ss';\n      return this.formatDate(dateZ, format);\n    }\n  });\n});","define(\"client/helpers/dateTimeWithAlternative\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_date.default, {\n    intl: Ember.inject.service(),\n    compute(params /*, hash */) {\n      const dateZ = params[0];\n      const alternativeDateZ = params[1];\n      const format = params[2] || 'YYYY-MM-DD HH:mm:ss';\n      if (!dateZ) {\n        return '';\n      }\n      let momentDate = this.getMoment(dateZ);\n      const isDefaultTime = momentDate.format('HH:mm:ss') === '00:00:00';\n      if (isDefaultTime && alternativeDateZ) {\n        const timeSource = this.getMoment(alternativeDateZ);\n        momentDate.set({\n          hour: timeSource.hour(),\n          minute: timeSource.minute(),\n          second: timeSource.second()\n        });\n      }\n      return momentDate.format(format);\n    }\n  });\n});","define(\"client/helpers/dayOfWeek\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_date.default, {\n    intl: Ember.inject.service(),\n    compute(params /* ,  hash */) {\n      // 0 = sunday\n      const day = params[0];\n      if (day === 0) {\n        return 'sunday';\n      }\n      if (day === 1) {\n        return 'monday';\n      }\n      if (day === 2) {\n        return 'tuesday';\n      }\n      if (day === 3) {\n        return 'wednesday';\n      }\n      if (day === 4) {\n        return 'thursday';\n      }\n      if (day === 5) {\n        return 'friday';\n      }\n      if (day === 6) {\n        return 'saturday';\n      }\n      return '';\n    }\n  });\n});","define(\"client/helpers/docDispatchStatus\", [\"exports\", \"client/mixins/big\", \"client/constants/index\"], function (_exports, _big, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      const status = params[0];\n      const dispatchStatus = params[1];\n      if (status === _index.default.documentsStatus.void || status === _index.default.documentsStatus.draft) {\n        return status;\n      }\n      if (!dispatchStatus) {\n        return _index.default.dispatchStatus.undispatched;\n      }\n      return dispatchStatus;\n    }\n  });\n});","define(\"client/helpers/docStatus\", [\"exports\", \"client/mixins/big\", \"client/constants/index\"], function (_exports, _big, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      const status = params[0];\n      const dispatchStatus = params[1];\n      if (status === _index.default.documentsStatus.void || status === _index.default.documentsStatus.draft) {\n        return status;\n      }\n      if (!dispatchStatus) {\n        return status;\n      }\n      return dispatchStatus;\n    }\n  });\n});","define(\"client/helpers/either\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      const value = params[0];\n      if (RA.isNotNilOrEmpty(value)) {\n        return value;\n      }\n      const defaultValue = params[1];\n      return defaultValue;\n    }\n  });\n});","define(\"client/helpers/eq\", [\"exports\", \"ember-truth-helpers/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 () {\n      return _equal.default;\n    }\n  });\n  Object.defineProperty(_exports, \"equal\", {\n    enumerable: true,\n    get: function () {\n      return _equal.equal;\n    }\n  });\n});","define(\"client/helpers/findBy\", [\"exports\", \"ramda\", \"ramda-extension\"], function (_exports, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params, hash) {\n      const value = params[0];\n      const array = R.propOr('', 'array')(hash);\n      const dotPath = R.propOr('', 'dotPath')(hash);\n      const defaultValue = R.propOr('', 'defaultValue')(hash);\n      return R.find(R_.dotPathEq(dotPath, value))(array) || defaultValue;\n    }\n  });\n});","define(\"client/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 () {\n      return _formatDate.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _formatMessage.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _formatNumber.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _formatRelative.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _formatTime.default;\n    }\n  });\n});","define(\"client/helpers/froala-arg\", [\"exports\", \"ember-froala-editor/helpers/froala-arg\"], function (_exports, _froalaArg) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _froalaArg.default;\n    }\n  });\n  Object.defineProperty(_exports, \"froalaArg\", {\n    enumerable: true,\n    get: function () {\n      return _froalaArg.froalaArg;\n    }\n  });\n});","define(\"client/helpers/froala-html\", [\"exports\", \"ember-froala-editor/helpers/froala-html\"], function (_exports, _froalaHtml) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _froalaHtml.default;\n    }\n  });\n  Object.defineProperty(_exports, \"froalaHtml\", {\n    enumerable: true,\n    get: function () {\n      return _froalaHtml.froalaHtml;\n    }\n  });\n});","define(\"client/helpers/froala-method\", [\"exports\", \"ember-froala-editor/helpers/froala-method\"], function (_exports, _froalaMethod) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _froalaMethod.default;\n    }\n  });\n  Object.defineProperty(_exports, \"froalaMethod\", {\n    enumerable: true,\n    get: function () {\n      return _froalaMethod.froalaMethod;\n    }\n  });\n});","define(\"client/helpers/get-dot-path\", [\"exports\", \"ramda\", \"ramda-extension\"], function (_exports, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.helper(function getDotPath(params) {\n    const model = R.last(params);\n    if (!model || R.isEmpty(model)) {\n      return '';\n    }\n    const path = R.pipe(R.dropLast(1), R.map(path => {\n      if (R.type(path) !== 'String') {\n        return R.toString(path);\n      }\n      return path;\n    }), R.map(R.split('.')), R.flatten, R.join('.'))(params);\n    return R_.dotPathOr(null, path)(model);\n  });\n});","define(\"client/helpers/get-error-by-index\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.helper(function getErrorByIndex(params /*, hash*/) {\n    const errors = R.path([0])(params);\n    const index = R.path([1])(params);\n    if (RA.isNotNilOrEmpty(errors)) {\n      return R.find(R.propEq('index', index))(errors);\n    }\n    return params;\n  });\n});","define(\"client/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 () {\n      return _gt.default;\n    }\n  });\n  Object.defineProperty(_exports, \"gt\", {\n    enumerable: true,\n    get: function () {\n      return _gt.gt;\n    }\n  });\n});","define(\"client/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 () {\n      return _gte.default;\n    }\n  });\n  Object.defineProperty(_exports, \"gte\", {\n    enumerable: true,\n    get: function () {\n      return _gte.gte;\n    }\n  });\n});","define(\"client/helpers/has\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params) {\n      const arrayOrObject = params[0] || [];\n      const key = params[1];\n      if (key) {\n        if (R.is(Array, arrayOrObject)) {\n          if (arrayOrObject.indexOf(key) > -1) {\n            return true;\n          }\n        }\n        if (R.is(Object)) {\n          if (arrayOrObject[key] != null) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n  });\n});","define(\"client/helpers/hasNotEnoughColumns\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params, hash) {\n      const columnsForCurrentRow = params[0] || [];\n      const allRows = params[1];\n      const adjustments = hash.adjustments || 0;\n      const maxColumns = R.reduce((acc, columns) => {\n        const currentRowLength = columns.length + adjustments;\n        if (currentRowLength > acc) {\n          return currentRowLength;\n        }\n        return acc;\n      }, 0)(allRows);\n      if (columnsForCurrentRow.length < maxColumns) {\n        return true;\n      }\n      return false;\n    }\n  });\n});","define(\"client/helpers/highlight\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params, hash) {\n      const string = params[0] || '';\n      let query = params[1] || '';\n      if (hash.disabled) {\n        return string;\n      }\n\n      // @TODO: take care of mixed case\n      // instead of replacing sting:\n      // make string and query same case, then find start and end pos of matching.\n      // insert span at start and end pos\n\n      let safeString = Ember.Handlebars.Utils.escapeExpression(string);\n      query = R.toLower(query);\n      const s = R.toLower(safeString);\n\n      // find pos start\n      const posStart = R.indexOf(query, s);\n      const posEnd = posStart + query.length;\n      const foundQuery = safeString.substring(posStart, posEnd);\n      if (R.toLower(foundQuery) === query) {\n        safeString = safeString.replace(foundQuery, `<span class='u-highlight'>${foundQuery}</span>`);\n        return Ember.String.htmlSafe(safeString);\n      }\n      return Ember.String.htmlSafe(safeString);\n    }\n  });\n});","define(\"client/helpers/html-safe\", [\"exports\", \"ember-froala-editor/helpers/html-safe\"], function (_exports, _htmlSafe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _htmlSafe.default;\n    }\n  });\n});","define(\"client/helpers/ifZero\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params /* , hash */) {\n      const value = params[0];\n      const defaultValue = params[1];\n      if (R.isEmpty(value) || value === 0 || value === '0') {\n        return defaultValue;\n      }\n      return value;\n    }\n  });\n});","define(\"client/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 () {\n      return _isArray.default;\n    }\n  });\n  Object.defineProperty(_exports, \"isArray\", {\n    enumerable: true,\n    get: function () {\n      return _isArray.isArray;\n    }\n  });\n});","define(\"client/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 () {\n      return _isEmpty.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _isEqual.default;\n    }\n  });\n  Object.defineProperty(_exports, \"isEqual\", {\n    enumerable: true,\n    get: function () {\n      return _isEqual.isEqual;\n    }\n  });\n});","define(\"client/helpers/isEmptyProp\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params) {\n      const obj = params[0];\n      const prop = params[1];\n      const value = obj.get(prop);\n      return RA.isNilOrEmpty(value);\n    }\n  });\n});","define(\"client/helpers/isEven\", [\"exports\", \"client/mixins/big\", \"client/utils/nventor\"], function (_exports, _big, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params) {\n      const n = parseInt(params[0]);\n      return _nventor.default.isEven(n);\n    }\n  });\n});","define(\"client/helpers/isExcluded\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params) {\n      const model = params[0];\n      const excludePath = params[1];\n      if (!excludePath) {\n        return false;\n      }\n      const excludeWhen = params[2];\n      const value = model.get(excludePath);\n      if (value === excludeWhen) {\n        return true;\n      }\n      return false;\n    }\n  });\n});","define(\"client/helpers/isGreaterThan\", [\"exports\", \"client/mixins/big\"], function (_exports, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params) {\n      const a = parseInt(params[0]);\n      const b = parseInt(params[1]);\n      return a > b;\n    }\n  });\n});","define(\"client/helpers/isLast\", [\"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 = Ember.Helper.extend({\n    compute(params) {\n      const array = params[0] || [];\n      let index = parseInt(params[1]) || 0;\n      const length = array.length || 0;\n      if (length === 0) {\n        return true;\n      }\n      if (length === index + 1) {\n        return true;\n      }\n      return false;\n    }\n  });\n});","define(\"client/helpers/isLessThan\", [\"exports\", \"client/mixins/big\"], function (_exports, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params) {\n      const a = Number(params[0]) || 0;\n      const b = Number(params[1]) || 0;\n      return a < b;\n    }\n  });\n});","define(\"client/helpers/isNextEmptyProp\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params) {\n      const array = params[0] || [];\n      const index = parseInt(params[1], 10) || 0;\n      const prop = params[2];\n      const next = array[index + 1];\n      if (!next) {\n        return false;\n      }\n      const value = typeof next.get === 'function' ? next.get(prop) : next[prop];\n      return RA.isNilOrEmpty(value);\n    }\n  });\n});","define(\"client/helpers/isNotExcluded\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params) {\n      const model = params[0];\n      const excludePath = params[1];\n      if (!excludePath) {\n        return true;\n      }\n      const excludeWhen = params[2];\n      const value = model.get(excludePath);\n      if (value === excludeWhen) {\n        return false;\n      }\n      return true;\n    }\n  });\n});","define(\"client/helpers/isNotNumeric\", [\"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 = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      const number = params[0];\n      if (!isNaN(parseFloat(number)) && isFinite(number)) {\n        return false;\n      }\n      return true;\n    }\n  });\n});","define(\"client/helpers/isNumeric\", [\"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 = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      const number = params[0];\n      return !isNaN(parseFloat(number)) && isFinite(number);\n    }\n  });\n});","define(\"client/helpers/isSameAsPreviousValue\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, R, RA, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params, hash) {\n      const currentValue = params[0];\n      const array = hash.array || [];\n      const index = hash.index;\n      const path = hash.path;\n      if (RA.isNilOrEmpty(array)) {\n        return false;\n      }\n      const previousIndex = Number(index) - 1;\n      if (previousIndex < 0) {\n        return false;\n      }\n      let previousValue = R.path([previousIndex])(array);\n      if (path) {\n        previousValue = R_.dotPath(path)(previousValue);\n      }\n      if (currentValue === previousValue) {\n        return true;\n      }\n      return false;\n    }\n  });\n});","define(\"client/helpers/isZero\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params /* , hash */) {\n      const value = params[0];\n      if (R.isEmpty(value) || value === 0 || value === '0') {\n        return true;\n      }\n      return false;\n    }\n  });\n});","define(\"client/helpers/kbToMb\", [\"exports\", \"client/mixins/big\"], function (_exports, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params) {\n      let size = params[0];\n      if (size) {\n        size = this.newBig(size);\n        return size.div(1024).div(1024).toFixed(2) + ' MB';\n      }\n      return '0 MB';\n    }\n  });\n});","define(\"client/helpers/listlabel\", [\"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 = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      // {{list-label itemLabelKey list needle itemValueKey}}\n\n      // const key = params[0];\n      let list = [];\n      let itemValueKey = '_data.value';\n      let itemLabelKey = '_data.label';\n      let defaultValue = '';\n      let needle = '';\n      let label = '';\n      let translate = true;\n      if (hash.translate === false) {\n        translate = false;\n      }\n      if (hash.list) {\n        list = hash.list;\n      }\n      if (hash.itemValueKey) {\n        itemValueKey = hash.itemValueKey;\n      }\n      if (hash.itemLabelKey) {\n        itemLabelKey = hash.itemLabelKey;\n      }\n      if (hash.needle) {\n        needle = hash.needle;\n      }\n      if (hash.defaultValue) {\n        defaultValue = hash.defaultValue;\n      }\n      const found = list.findBy(itemValueKey, needle);\n      if (found) {\n        label = found.get(itemLabelKey);\n        if (translate && label) {\n          return this.intl.t(label);\n        }\n        if (label) {\n          return label;\n        }\n      }\n      if (defaultValue) {\n        return defaultValue;\n      }\n      return '';\n    }\n  });\n});","define(\"client/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 () {\n      return _lt.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lt\", {\n    enumerable: true,\n    get: function () {\n      return _lt.lt;\n    }\n  });\n});","define(\"client/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 () {\n      return _lte.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lte\", {\n    enumerable: true,\n    get: function () {\n      return _lte.lte;\n    }\n  });\n});","define(\"client/helpers/multiply\", [\"exports\", \"client/mixins/big\"], function (_exports, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params, hash) {\n      const rounding = hash.rounding || 0;\n      const n1 = parseInt(params[0]) || 0;\n      const n2 = parseInt(params[1]) || 0;\n      return this.newBig(n1).times(n2).toFixed(rounding);\n    }\n  });\n});","define(\"client/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-equal\"], function (_exports, _notEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notEqual.default;\n    }\n  });\n  Object.defineProperty(_exports, \"notEq\", {\n    enumerable: true,\n    get: function () {\n      return _notEqual.notEq;\n    }\n  });\n});","define(\"client/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 () {\n      return _not.default;\n    }\n  });\n  Object.defineProperty(_exports, \"not\", {\n    enumerable: true,\n    get: function () {\n      return _not.not;\n    }\n  });\n});","define(\"client/helpers/notEmpty\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params) {\n      const obj = params[0];\n      const prop = params[1];\n      let value;\n      if (obj.get) {\n        value = obj.get(prop);\n      } else {\n        value = obj[prop];\n      }\n      if (R.is(Array, value) || R.is(Object)) {\n        return !R.isEmpty(value);\n      }\n      if (value) {\n        return false;\n      }\n      return true;\n    }\n  });\n});","define(\"client/helpers/number\", [\"exports\", \"client/mixins/big\"], function (_exports, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      let number = params[0];\n      const defaultValue = hash.defaultValue;\n      const rounding = hash.rounding;\n      const negative = hash.negative;\n      const str = number + '';\n      if (number == null || str.trim() === '') {\n        if (defaultValue != null) {\n          return defaultValue;\n        }\n        return '0';\n      }\n      let options = {};\n      if (rounding != null) {\n        number = this.newBig(number).toFixed(rounding);\n        options = {\n          maximumFractionDigits: rounding\n        };\n      }\n      const finalNumber = this.intl.formatNumber(number, options);\n      if (negative) {\n        return `- ${finalNumber}`;\n      }\n      return finalNumber;\n    }\n  });\n});","define(\"client/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 () {\n      return _or.default;\n    }\n  });\n  Object.defineProperty(_exports, \"or\", {\n    enumerable: true,\n    get: function () {\n      return _or.or;\n    }\n  });\n});","define(\"client/helpers/padStart\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params = [], hash = {}) {\n      let str = R.pathOr('', [0])(params);\n      const length = R.pathOr('', [1])(params);\n      const char = R.pathOr({}, [2])(params);\n      try {\n        if (!R.is(String, str)) {\n          str = str.toString();\n        }\n      } catch (e) {\n        str = '';\n      }\n      return str.padStart(length, char);\n    }\n  });\n});","define(\"client/helpers/percentage\", [\"exports\", \"client/mixins/big\", \"ramda\"], function (_exports, _big, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params, hash) {\n      const value = params[0];\n      const defaultValue = params[1];\n      const autoCalculate = R.propOr(true, 'autoCalculate')(hash);\n      const negative = R.propOr(false, 'negative')(hash);\n      let returnValue = '';\n      if (value != null && value !== '') {\n        if (autoCalculate) {\n          returnValue = this.newBig(value).times(100).toFixed() + '%';\n          return returnValue;\n        }\n        returnValue = value + '%';\n        return returnValue;\n      }\n      if (defaultValue != null) {\n        returnValue = defaultValue;\n      }\n      if (negative) {\n        return `- ${returnValue}`;\n      }\n      return returnValue;\n    }\n  });\n});","define(\"client/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 () {\n      return _perform.default;\n    }\n  });\n});","define(\"client/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(\"client/helpers/pod/get\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    settings: Ember.inject.service(),\n    compute(params, hash) {\n      const dotPath = params[0];\n      const defaultValue = hash?.defaultValue;\n      const value = this.settings.getProp(dotPath);\n      if (R.isNil(value) && !R.isNil(defaultValue)) {\n        return defaultValue;\n      }\n      return value;\n    }\n  });\n});","define(\"client/helpers/pod/logo\", [\"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 = Ember.Helper.extend({\n    settings: Ember.inject.service(),\n    compute() {\n      return this.settings.getDefaultLogo();\n    }\n  });\n});","define(\"client/helpers/product-title\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params) {\n      const name = params[0];\n      const code = params[1];\n      if (code) {\n        return `${name} (${code})`;\n      }\n      return name;\n    }\n  });\n});","define(\"client/helpers/ramda\", [\"exports\", \"client/mixins/big\", \"ramda\"], function (_exports, _big, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params, hash = {}) {\n      const fnName = params[0];\n      const args = R.drop(1, params);\n      try {\n        return R.apply(R[fnName], args);\n      } catch (e) {\n        return R.prop('defaultValue')(hash) || '';\n      }\n    }\n  });\n});","define(\"client/helpers/relativeTime\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_date.default, {\n    intl: Ember.inject.service(),\n    compute(params /* ,  hash */) {\n      const dateZ = params[0];\n      const format = params[1];\n      return this.getMoment(dateZ, format).fromNow();\n    }\n  });\n});","define(\"client/helpers/replace\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    compute(params /* , hash */) {\n      const pattern = params[0];\n      const replaceWith = params[1];\n      const str = params[2];\n      return R.replace(pattern, replaceWith)(str);\n    }\n  });\n});","define(\"client/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(\"client/helpers/strip-html\", [\"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 = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params = '') {\n      var tmp = document.implementation.createHTMLDocument('New').body;\n      tmp.innerHTML = params;\n      return tmp.textContent || tmp.innerText || '';\n    }\n  });\n});","define(\"client/helpers/substr\", [\"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 = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params /* , hash */) {\n      //returns substring using start index and length of characters to return\n\n      //@NOTE: don't confuse with substring.\n\n      const str = params[0] + '';\n      const indexStart = params[1];\n      const length = params[2];\n      if (str) {\n        return str.substr(indexStart, length);\n      }\n      return '';\n    }\n  });\n});","define(\"client/helpers/substring\", [\"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 = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params /* , hash */) {\n      //returns substring using start and end indexes\n\n      //@NOTE: don't confuse with substr.\n\n      const str = params[0] + '';\n      const indexStart = params[1];\n      const indexEnd = params[2];\n      if (str) {\n        return str.substring(indexStart, indexEnd);\n      }\n      return '';\n    }\n  });\n});","define(\"client/helpers/substringFrom\", [\"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 = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      // returns substring using start index and length of characters to return\n\n      // @NOTE: don't confuse with substring.\n\n      const str = params[0] + '';\n      const from = hash.from;\n      const fromOffset = hash.fromOffset;\n      const end = hash.end;\n      let fromIndex = from;\n      if (typeof from === 'string') {\n        fromIndex = str.indexOf(from);\n      }\n      if (fromOffset) {\n        fromIndex = fromIndex + fromOffset;\n      }\n      let endIndex = end;\n      if (end == null) {\n        endIndex = str.length;\n      }\n      if (typeof end === 'string') {\n        endIndex = str.indexOf(end);\n      }\n      if (str) {\n        return str.substring(fromIndex, endIndex);\n      }\n      return '';\n    }\n  });\n});","define(\"client/helpers/sum\", [\"exports\", \"ramda\", \"client/mixins/big\"], function (_exports, R, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params, hash) {\n      const rounding = hash.rounding || 0;\n      const values = R.values(params) || [];\n      const total = R.reduce((acc, value) => {\n        return acc + value;\n      }, 0, values);\n      if (rounding != null) {\n        return Math.round(total, rounding);\n      }\n      return total;\n    }\n  });\n});","define(\"client/helpers/sumBig\", [\"exports\", \"ramda\", \"client/mixins/big\"], function (_exports, R, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    compute(params, hash) {\n      const rounding = hash.rounding || 0;\n      const values = R.values(params) || [];\n      let accBig = this.newBig(0);\n      accBig = R.reduce((acc, value) => {\n        return acc.plus(value);\n      }, accBig, values);\n      return accBig.toFixed(rounding);\n    }\n  });\n});","define(\"client/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 () {\n      return _t.default;\n    }\n  });\n});","define(\"client/helpers/tab-copy\", [\"exports\", \"ramda\", \"ramda-extension\"], function (_exports, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    tabsManager: Ember.inject.service(),\n    compute(params /* , hash */) {\n      const tab = params[0] || [];\n      return this.tabsManager.copyTab({\n        tab\n      });\n    }\n  });\n});","define(\"client/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 () {\n      return _task.default;\n    }\n  });\n});","define(\"client/helpers/taxCalculator\", [\"exports\", \"client/mixins/big\"], function (_exports, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend(_big.default, {\n    constants: Ember.inject.service(),\n    rounding: 8,\n    unrounded: 8,\n    compute(params /* , hash */) {\n      const price = params[0];\n      const taxMethodKey = params[1];\n      const taxRate = params[2];\n      const returnValue = params[3] || false;\n      // const rounding = hash.rounding || this.get('rounding')\n      const unrounded = this.unrounded;\n      const taxRateBig = this.newBig(taxRate).plus(1);\n      const priceBig = this.newBig(this.get(price));\n      let inclPriceBig;\n      let exclPriceBig;\n      if (taxMethodKey === this.get('constants.taxMethods.exclusive')) {\n        exclPriceBig = priceBig;\n        inclPriceBig = exclPriceBig.times(taxRateBig);\n      } else {\n        inclPriceBig = priceBig;\n        exclPriceBig = inclPriceBig.div(taxRateBig);\n      }\n      const taxAmtBig = inclPriceBig.minus(exclPriceBig);\n      const values = {\n        tax: taxAmtBig.toFixed(unrounded),\n        exclPrice: exclPriceBig.toFixed(unrounded),\n        inclPrice: inclPriceBig.toFixed(unrounded)\n      };\n      if (returnValue) {\n        return values[returnValue];\n      }\n      return values;\n    }\n  });\n});","define(\"client/helpers/tconcat\", [\"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 = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      let first = params[0];\n      const seperator = params[1];\n      let second = params[2];\n      let string;\n      let translate = true;\n      if (hash.translate === false) {\n        translate = false;\n      }\n      if (translate) {\n        return this.intl.t(first) + seperator + this.intl.t(second);\n      }\n      string = first + seperator + second;\n      return string;\n    }\n  });\n});","define(\"client/helpers/to-string\", [\"exports\", \"ember-froala-editor/helpers/to-string\"], function (_exports, _toString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toString.default;\n    }\n  });\n});","define(\"client/helpers/truncate\", [\"exports\", \"client/utils/nventor\"], function (_exports, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params, hash) {\n      const text = params[0] || '';\n      const char = hash.char;\n\n      // if no limit is set, return the original text\n      if (!char) {\n        return text;\n      }\n      const byLines = hash.byLines || false;\n      return _nventor.default.truncate({\n        text,\n        char,\n        byLines\n      });\n    }\n  });\n});","define(\"client/helpers/tt\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    intl: Ember.inject.service(),\n    compute(params = [], hash = {}) {\n      const key = R.pathOr('', [0])(params);\n      const defaultKey = R.pathOr('', [1])(params);\n      const optionalHash = R.pathOr({}, [2])(params);\n      hash = R.mergeRight(hash, optionalHash);\n      if (!key && defaultKey) {\n        return this.intl.t(defaultKey, hash);\n      }\n      let translate = true;\n\n      // in the event no translate key is passed, use default translate settings\n      if (hash.translate === '' || hash.translate == null) {\n        if (hash.defaultTranslate != null) {\n          translate = hash.defaultTranslate;\n        }\n      }\n      if (hash.translate === false) {\n        translate = false;\n      }\n      if (translate && key) {\n        return this.intl.t(key, hash);\n      }\n      return key;\n    }\n  });\n});","define(\"client/helpers/uploadcareSrc\", [\"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 = Ember.Helper.extend({\n    uploadcare: Ember.inject.service(),\n    /**\n     * params are unnamed params passed in to the helper. order is important for params\n     * hashes are named params\n     * hash.defaultImage - defaultImage fileName\n     * hash.images - array of fileNames\n     * eg. {{helper-name param1 param2 hash1=123 hash2=345}}\n     */\n    compute(params) {\n      const baseUrl = this.uploadcare.get('cdnBase');\n\n      // params = R.map(param => {\n      //   let array = R.splitEvery(1, param)\n      //   if (array[0] === '/') {\n      //     array = R.drop(1, array)\n      //   }\n      //   if (array[array.length - 1] === '/') {\n      //     array = R.dropLast(1, array)\n      //   }\n      //   return R.join('', array)\n      // })(params)\n\n      let path = params.join('');\n      return baseUrl + '/' + path + '/';\n    }\n  });\n});","define(\"client/helpers/user/get\", [\"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 = Ember.Helper.extend({\n    users: Ember.inject.service(),\n    compute(params /* ,  hash */) {\n      return this.users.getProp(params[0]);\n    }\n  });\n});","define(\"client/helpers/user/hasBigOrdrOperatorRights\", [\"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 = Ember.Helper.extend({\n    users: Ember.inject.service(),\n    compute(params /* ,  hash */) {\n      const isBigOrdrOperator = this.users.getProp('isBigOrdrOperator');\n      if (!isBigOrdrOperator) {\n        return false;\n      }\n      const rights = this.users.getProp('bigOrdrOperatorRights') ?? {};\n      const hasRight = rights[params[0]] ?? false;\n      return hasRight;\n    }\n  });\n});","define(\"client/helpers/websitePageUrl\", [\"exports\", \"client/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    constants: Ember.inject.service(),\n    compute(params, hash) {\n      const website = params[0];\n      const page = params[1];\n      const options = params[2];\n      let domain = `${website?._data?.subdomain}.${_environment.default.APP.websiteHost}`;\n      if (website?._data?.domainVerified && website?._data?.domain && website?._data?.hasCustomDomain) {\n        domain = website?._data?.domain || '';\n      }\n      let defaultUrl = `https://${domain}`;\n      if (_environment.default.isProduction === false) {\n        defaultUrl = _environment.default.APP.bigordrHost;\n      }\n      if (!page?._data?.url) {\n        return defaultUrl;\n      }\n      const omitDomain = options?.omitDomain === true;\n      if (omitDomain) {\n        defaultUrl = '';\n      }\n      const pageType = page?._data?.type;\n      if (pageType === this.constants.websitePageTypes.page) {\n        const shopProductsUrl = `${defaultUrl}/shop/products`;\n        if (page?._data?.name === 'shop') {\n          return shopProductsUrl;\n        }\n        if (page?._data?.name === 'faqs') {\n          return `${shopProductsUrl}/${page?._data?.url}`;\n        }\n        return `${defaultUrl}/${page?._data?.url}`;\n      }\n      if (pageType === this.constants.websitePageTypes.category) {\n        if (!website?._data?.shopKey) {\n          return defaultUrl;\n        }\n        return `${defaultUrl}/shop/products/category/${page?._data?.url}`;\n      }\n      if (pageType === this.constants.websitePageTypes.link) {\n        const urlByPageTypeLinkHash = {\n          [this.constants.websitePageLinkTypes.url]: page?._data?.linkUrl,\n          [this.constants.websitePageLinkTypes.pageAndCategory]: `${defaultUrl}/${page?._data?.linkUrl}`,\n          [this.constants.websitePageLinkTypes.blog]: `${defaultUrl}/blogs/${page?._data?.linkResourceKey}/${page?._data?.linkResourceName}`,\n          [this.constants.websitePageLinkTypes.news]: `${defaultUrl}/news/${page?._data?.linkResourceKey}/${page?._data?.linkResourceName}`,\n          [this.constants.websitePageLinkTypes.storeLocation]: `${defaultUrl}/store-location/${page?._data?.linkResourceKey}`,\n          // @TODO: Does flow have url? or is an event?\n          [this.constants.websitePageLinkTypes.flows]: defaultUrl,\n          [this.constants.websitePageLinkTypes.product]: `${defaultUrl}/shop/products/item/${page?._data?.linkResourceKey}/${page?._data?.linkResourceName}`\n        };\n        const linkType = page?._data?.linkType;\n        return urlByPageTypeLinkHash[linkType] || defaultUrl;\n      }\n      return defaultUrl;\n    }\n  });\n});","define(\"client/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 () {\n      return _xor.default;\n    }\n  });\n  Object.defineProperty(_exports, \"xor\", {\n    enumerable: true,\n    get: function () {\n      return _xor.xor;\n    }\n  });\n});","define(\"client/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"client/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(\"client/initializers/constants\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'constants', 'service:constants');\n    application.inject('adapter', 'constants', 'service:constants');\n    application.inject('component', 'constants', 'service:constants');\n  }\n  var _default = _exports.default = {\n    name: 'constants',\n    initialize: initialize\n  };\n});","define(\"client/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      app.inject('container-debug-adapter:main', 'namespace', 'application:main');\n    }\n  };\n});","define(\"client/initializers/crud\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'crud', 'service:crud');\n    application.inject('adapter', 'crud', 'service:crud');\n    application.inject('component', 'crud', 'service:crud');\n  }\n  var _default = _exports.default = {\n    name: 'crud',\n    initialize: initialize\n  };\n});","define(\"client/initializers/data-manager\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'dataManager', 'service:dataManager');\n    application.inject('adapter', 'dataManager', 'service:dataManager');\n    application.inject('component', 'dataManager', 'service:dataManager');\n    application.inject('service:socket', 'dataManager', 'service:dataManager');\n    application.inject('service:search', 'dataManager', 'service:dataManager');\n    application.inject('service:crud', 'dataManager', 'service:dataManager');\n  }\n  var _default = _exports.default = {\n    name: 'dataManager',\n    initialize: initialize\n  };\n});","define(\"client/initializers/ember-concurrency\", [\"exports\", \"ember-concurrency/initializers/ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberConcurrency.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _setup.default;\n    }\n  });\n});","define(\"client/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(\"client/initializers/export-application-global\", [\"exports\", \"client/config/environment\"], function (_exports, _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.String.classify(_environment.default.modulePrefix);\n      }\n      if (!theGlobal[globalName]) {\n        theGlobal[globalName] = application;\n        application.reopen({\n          willDestroy: function () {\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(\"client/initializers/extensions\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'extensions', 'service:extensions');\n    application.inject('adapter', 'extensions', 'service:extensions');\n    application.inject('component', 'extensions', 'service:extensions');\n  }\n  var _default = _exports.default = {\n    name: 'extensions',\n    initialize: initialize\n  };\n});","define(\"client/initializers/intl\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'intl', 'service:intl');\n    application.inject('adapter', 'intl', 'service:intl');\n    application.inject('component', 'intl', 'service:intl');\n    application.inject('service:date', 'intl', 'service:intl');\n    application.inject('service:crud', 'intl', 'service:intl');\n  }\n  var _default = _exports.default = {\n    name: 'intl',\n    initialize: initialize\n  };\n});","define(\"client/initializers/pikaday\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'pikaday', 'service:pikaday');\n    application.inject('adapter', 'pikaday', 'service:pikaday');\n    application.inject('component', 'pikaday', 'service:pikaday');\n  }\n  var _default = _exports.default = {\n    name: 'pikaday',\n    initialize: initialize\n  };\n});","define(\"client/initializers/products\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'productsService', 'service:products');\n    application.inject('adapter', 'productsService', 'service:products');\n    application.inject('component', 'productsService', 'service:products');\n  }\n  var _default = _exports.default = {\n    name: 'productsService',\n    initialize: initialize\n  };\n});","define(\"client/initializers/search\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'search', 'service:search');\n    application.inject('adapter', 'search', 'service:search');\n    application.inject('component', 'search', 'service:search');\n  }\n  var _default = _exports.default = {\n    name: 'search',\n    initialize: initialize\n  };\n});","define(\"client/initializers/server\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'server', 'service:server');\n    application.inject('adapter', 'server', 'service:server');\n    application.inject('component', 'server', 'service:server');\n    application.inject('service:crud', 'server', 'service:server');\n  }\n  var _default = _exports.default = {\n    name: 'server',\n    initialize: initialize\n  };\n});","define(\"client/initializers/settings\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'settings', 'service:settings');\n    application.inject('adapter', 'settings', 'service:settings');\n    application.inject('component', 'settings', 'service:settings');\n  }\n  var _default = _exports.default = {\n    name: 'settings',\n    after: 'dataManager',\n    initialize: initialize\n  };\n});","define(\"client/initializers/socket\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'socket', 'service:socket');\n    application.inject('adapter', 'socket', 'service:socket');\n    application.inject('component', 'socket', 'service:socket');\n  }\n  var _default = _exports.default = {\n    name: 'socket',\n    after: 'dataManager',\n    initialize: initialize\n  };\n});","define(\"client/initializers/storage\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'storage', 'service:storage');\n    application.inject('adapter', 'storage', 'service:storage');\n    application.inject('component', 'storage', 'service:storage');\n    application.inject('service:server', 'storage', 'service:storage');\n    application.inject('service:extensions', 'storage', 'service:storage');\n    application.inject('service:search', 'storage', 'service:storage');\n    application.inject('service:socket', 'storage', 'service:storage');\n    application.inject('service:grapesjs', 'storage', 'service:storage');\n  }\n  var _default = _exports.default = {\n    name: 'storage',\n    initialize: initialize\n  };\n});","define(\"client/initializers/tabs-manager\", [\"exports\"], function (_exports) {\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(application) {\n    application.inject('route', 'tabsManager', 'service:tabsManager');\n    application.inject('adapter', 'tabsManager', 'service:tabsManager');\n    application.inject('component', 'tabsManager', 'service:tabsManager');\n    application.inject('service:date', 'tabsManager', 'service:tabsManager');\n  }\n  var _default = _exports.default = {\n    name: 'tabsManager',\n    initialize: initialize\n  };\n});","define(\"client/initializers/viewport-config\", [\"exports\", \"ember-in-viewport/initializers/viewport-config\"], function (_exports, _viewportConfig) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _viewportConfig.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function () {\n      return _viewportConfig.initialize;\n    }\n  });\n});","define(\"client/instance-initializers/ember-data\", [\"exports\", \"ember-data/initialize-store-service\"], function (_exports, _initializeStoreService) {\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-data',\n    initialize: _initializeStoreService.default\n  };\n});","define(\"client/instance-initializers/froala-editor-elements\", [\"exports\", \"froala-editor\"], function (_exports, _froalaEditor) {\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(applicationInstance) {\n    const intl = applicationInstance.lookup('service:intl');\n    const storage = applicationInstance.lookup('service:storage');\n    const language = storage.getWithoutPrefix('language') || 'zh-tw';\n    intl.setLocale(language);\n    _froalaEditor.default.DefineIcon('imageManager', {\n      NAME: 'info',\n      SVG_KEY: 'imageManager'\n    });\n    _froalaEditor.default.RegisterCommand('imageManager', {\n      title: intl.t('upload image'),\n      focus: false,\n      undo: false,\n      refreshAfterCallback: false,\n      callback() {\n        this.component.showFileUploader();\n      }\n    });\n    _froalaEditor.default.DefineIconTemplate('file_import', '<i class=\"fas fa-file-import\" aria-hidden=\"true\"></i>');\n    _froalaEditor.default.DefineIcon('fileImportIcon', {\n      NAME: 'fileImport',\n      template: 'file_import'\n    });\n    _froalaEditor.default.RegisterCommand('fileImportButton', {\n      title: 'file import',\n      icon: 'fileImportIcon',\n      // Save the button action into undo stack.\n      undo: true,\n      // Focus inside the editor before the callback.\n      focus: true,\n      // Show the button on mobile or not.\n      showOnMobile: true,\n      // Refresh the buttons state after the callback.\n      refreshAfterCallback: false,\n      // Called when the button is hit.\n      callback: function () {\n        // The current context is the editor instance.\n        // console.log(this.html.get())\n      },\n      // Called when the button state might have changed.\n      refresh: function ($btn) {\n        // The current context is the editor instance.\n        // console.log(this.selection.element())\n      }\n    });\n    _froalaEditor.default.RegisterCommand('imageCaption', {\n      title: intl.t('image caption'),\n      focus: true,\n      undo: true,\n      refreshAfterCallback: true,\n      callback() {\n        try {\n          this.selection.save();\n          this.popups.hideAll();\n          const image = this.image.get();\n          const currentImageArr = image.get();\n          const currentImage = currentImageArr[0];\n          this.component.args.showImageCaptionModal(this, currentImage);\n          return;\n        } catch (error) {\n          console.error('Error while toggling showImageCaption', error);\n        }\n      },\n      refresh: function () {\n        // The current context is the editor instance.\n        // console.log(this.selection.element())\n        return;\n      }\n    });\n\n    // Froala ERP options on Modal\n    _froalaEditor.default.DefineIconTemplate('cogs', '<i class=\"fas fa-cogs\" aria-hidden=\"true\"></i>');\n    _froalaEditor.default.DefineIcon('cogs', {\n      NAME: 'cogs',\n      template: 'cogs'\n    });\n    _froalaEditor.default.RegisterCommand('customOptions', {\n      title: intl.t('settings'),\n      icon: 'cogs',\n      // Save the button action into undo stack.\n      undo: true,\n      // Focus inside the editor before the callback.\n      focus: true,\n      // Show the button on mobile or not.\n      showOnMobile: true,\n      // Refresh the buttons state after the callback.\n      refreshAfterCallback: false,\n      // Called when the button is hit.\n      callback() {\n        this.component.args.showOptionsModal(this);\n      },\n      // Called when the button state might have changed.\n      refresh($btn) {\n        // The current context is the editor instance.\n        // console.log(this.selection.element())\n      }\n    });\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"client/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 () {\n      return _sentryPerformance.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function () {\n      return _sentryPerformance.initialize;\n    }\n  });\n});","define(\"client/mixins/adapters-new\", [\"exports\", \"client/utils/nventor\", \"client/config/environment\", \"ramda\"], function (_exports, _nventor, _environment, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    ajax: Ember.inject.service(),\n    host: _environment.default.APP.serverUrl,\n    getAdapter(adapterName) {\n      const adapter = Ember.getOwner(this).lookup(`adapter:${adapterName}`);\n      if (!adapter) {\n        _nventor.default.throw(`ADAPTER MIXIN: getAdapterError. Invalid adpaterName: ${adapterName}.`);\n      }\n      adapter.set('syncAdapterName', adapterName);\n      return adapter;\n    },\n    getPath(pathName, appendPath) {\n      let path = this.get(pathName) || this.resourcePath;\n      if (appendPath) {\n        if (path && appendPath.charAt(0) !== '/') {\n          path = `${path}/${appendPath}`;\n        } else {\n          path = path + appendPath;\n        }\n      }\n      return path;\n    },\n    /**\n     * Retrieves the full path of a specified file or directory.\n     *\n     * @param {object} options - The options for getting the full path.\n     * @param {string} [options.pathName=''] - The name of the path.\n     * @param {string} [options.appendPath=''] - The additional path to append to the base path.\n     * @param {IServerType} [options.serverType=''] - The server type.\n     * @returns {string} - The full path of the specified file or directory.\n     */\n    getFullPath({\n      pathName,\n      appendPath,\n      serverType = ''\n    }) {\n      let host = this.host;\n      if (serverType === 'jobs') {\n        host = _environment.default.APP.serverJobsUrl;\n      }\n      const path = this.getPath(pathName, appendPath);\n      const fullPath = `${host}/${path}`;\n      return fullPath;\n    },\n    /**\n     * Executes an AJAX method call with the specified parameters.\n     *\n     * @param {string} method - The HTTP method to use.\n     * @param {string} appendPath - The path to append to the base path.\n     * @param {object} data - The data to send in the request body.\n     * @param {object} options - The additional options for the AJAX call.\n     * @param {string} serverType - The type of server to send the request to.\n     * @param {function} options.filters.set - The function to set the filters.\n     *\n     * @return {Promise} A Promise that resolves with the response data.\n     */\n    call({\n      method,\n      appendPath,\n      data,\n      options = {},\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'resourcePath',\n        appendPath,\n        serverType\n      });\n      data = this._addAdapterInfo(data, appendPath);\n      const {\n        filters = {}\n      } = options;\n      return this.ajax[method](path, data).then(res => {\n        if (filters?.set) {\n          const hasFullCount = R.hasPath(['fullCount'])(res);\n          if (hasFullCount) {\n            let fullCount = R.path(['fullCount'])(res);\n            fullCount = parseInt(fullCount) || 0;\n            filters.set('fullCount', fullCount);\n          }\n          const hasCustom = R.hasPath(['custom'])(res);\n          if (hasCustom) {\n            const custom = R.pathOr({}, ['custom'])(res);\n            filters.set('custom', custom);\n          }\n        }\n        return res.data;\n      });\n    },\n    createModel: function (adapterName, adapter, data, attrs = {}) {\n      // attrs.adapterName = adapterName\n      // attrs.adapter = adapter\n      return _nventor.default.createModel(this.modelObj, data, attrs);\n    },\n    isModel: function (obj) {\n      if (obj._data != null) {\n        return true;\n      }\n      return false;\n    },\n    serialize(model) {\n      // serialize on model\n\n      // if (model.serialize) {\n      // @NOTE: the problem with this is that existing custom serialize on adapters need to be moved to model first\n      //   return model.serialize()\n      // }\n      // return this._getAllData(model)\n      if (model == null) {\n        return '';\n      }\n      return this._serialize(model._data);\n    },\n    _serialize(data = {}) {\n      // if (typeof data === 'string') {\n      if (data == null) {\n        return '';\n      }\n      if (!Ember.isArray(data) && !_nventor.default.confirm.isObject(data)) {\n        return data;\n      }\n      if (Ember.isArray(data)) {\n        return this._serializeArray(data);\n      }\n      if (data._data) {\n        return this._serializeObject(data._data);\n      }\n      return this._serializeObject(data);\n    },\n    _serializeArray(data) {\n      data = data.filter(item => item != null);\n      return data.map(item => {\n        let serialized;\n        if (item._data) {\n          serialized = this._serialize(item._data);\n        } else {\n          serialized = this._serialize(item);\n        }\n        if (serialized._data) {\n          return serialized._data;\n        }\n        return serialized;\n      });\n    },\n    _serializeObject(data) {\n      const newData = {};\n      Object.keys(data).map(key => {\n        const value = data[key];\n        if (Ember.isArray(value)) {\n          newData[key] = this._serializeArray(value);\n          return key;\n        }\n\n        // if (nventor.confirm.get(value, '_data')) {\n        if (!R.isNil(value?._data)) {\n          newData[key] = this._serialize(value._data);\n          return key;\n        }\n        newData[key] = this._serialize(value);\n        return key;\n      });\n      return newData;\n    },\n    isNotEmptyDetail(detail, requiredDataAttrs) {\n      return requiredDataAttrs.reduce((isEmpty, attr) => {\n        if (isEmpty === false) {\n          return false;\n        }\n        if (detail[attr]) {\n          return true;\n        }\n        return false;\n      }, true);\n    },\n    /**\n     * Add adapter information to the given data object.\n     * This method is used to associate the data object with related adapters.\n     *\n     * @param {Object} data - The data object to add the adapter information to.\n     * @param {Boolean} [appendPath] - Indicates whether to append the path to the adapter name.\n     * @return {Object} - The data object with adapter information added.\n     */\n    _addAdapterInfo(data = {}, appendPath) {\n      // use related adapters when a model belongs to two lists. this way it will push\n      // the model changes to both lists\n      const adapters = [{\n        adapterName: this.syncAdapterName,\n        appendPath\n      }];\n      const relatedAdapterNames = this.relatedAdapters || [];\n      data.adapter = {\n        adapters: adapters.concat(relatedAdapterNames),\n        cacheId: data._cacheId\n      };\n      delete data._cacheId;\n      return data;\n    },\n    /**\n     * Finds data based on given parameters.\n     *\n     * @param {Object} options - The options object.\n     * @param {Object} [options.data={}] - The data object to be sent in the request.\n     * @param {string} [options.appendPath] - The additional path to be appended to the base path.\n     * @param {string} options.token - The token for authentication.\n     * @param {IServerType} options.serverType - The type of server to send the request to.\n     * @returns {Promise} A Promise that resolves with the response data.\n     */\n    find({\n      data = {},\n      appendPath,\n      token,\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'findPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.GET(path, data, token).then(res => res.data);\n    },\n    /**\n     * Finds all data using the specified options and returns the result.\n     * If options.filters is provided, it will also update the fullCount value.\n     *\n     * @param {Object} options - The options for finding the data.\n     * @param {Object} options.data - The data payload to send.\n     * @param {string} options.appendPath - The path to append to the base path.\n     * @param {Object} options.options - The additional options.\n     * @param {IServerType} options.serverType - The server type.\n     * @returns {Promise<Array>} - A promise that resolves to an array of data or an empty array.\n     */\n    findAll({\n      data = {},\n      appendPath = '',\n      options = {},\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      const filters = options.filters;\n      const method = options.method || 'GET';\n      let token;\n      if (filters) {\n        token = filters.get('token');\n      }\n      return this.ajax[method](path, data, token).then(function (res) {\n        const hasFullCount = R.hasPath(['fullCount'])(res);\n        if (hasFullCount) {\n          let fullCount = R.path(['fullCount'])(res);\n          fullCount = parseInt(fullCount) || 0;\n          if (filters?.set) {\n            filters.set('fullCount', fullCount);\n          }\n        }\n        const hasCustom = R.hasPath(['custom'])(res);\n        if (hasCustom) {\n          const custom = R.pathOr({}, ['custom'])(res);\n          if (filters?.set) {\n            filters.set('custom', custom);\n          }\n        }\n        return res.data || [];\n      });\n    },\n    /**\n     * Searches for data based on given criteria.\n     *\n     * @param {object} options - The options object.\n     * @param {any} options.data - The data to search for.\n     * @param {string} options.appendPath - The path to append to the data during search.\n     * @param {IServerType} options.serverType - The type of server to search the data on.\n     * @return {Promise} - A promise that resolves with the search results.\n     */\n    search({\n      data,\n      appendPath,\n      serverType\n    }) {\n      return this.findAll({\n        data,\n        appendPath,\n        serverType\n      });\n    },\n    /**\n     * Save data to the server.\n     *\n     * @param {Object} options - The options for saving the data.\n     * @param {Object} options.data - The data to be saved.\n     * @param {string} options.appendPath - The path to append to the base path.\n     * @param {IServerType} options.serverType - The type of server to save the data to.\n     * @param {string} options.method - The request method. Defaults to POST\n     * @return {Promise} A promise that resolves to the saved data.\n     */\n    save({\n      data,\n      appendPath,\n      serverType,\n      method = 'POST'\n    }) {\n      // @TODO: test\n      const path = this.getFullPath({\n        pathName: 'createPath',\n        appendPath,\n        serverType\n      });\n      data = this._addAdapterInfo(data, appendPath);\n      return this.ajax[method](path, data).then(res => {\n        return res.data;\n      });\n    },\n    /**\n     * Saves a batch of data to the server.\n     *\n     * @param {Object} options - The options for saving the batch.\n     * @param {any} options.data - The data to be saved.\n     * @param {string} [options.appendPath='batch'] - The path to append to the base path.\n     * @param {IServerType} options.serverType - The type of server to send the request to.\n     *\n     * @return {Promise} A promise that resolves with the saved data.\n     */\n    saveBatch({\n      data,\n      appendPath = 'batch',\n      serverType\n    }) {\n      // @TODO: test\n      const path = this.getFullPath({\n        pathName: 'createPath',\n        appendPath,\n        serverType\n      });\n      data = this._addAdapterInfo(data, appendPath);\n      return this.ajax.POST(path, data).then(res => {\n        return res.data;\n      });\n    },\n    /**\n     * Update method for sending PATCH request to server.\n     *\n     * @param {object} options - The options for updating data.\n     * @param {object} options.data - The data to be updated.\n     * @param {string} options.appendPath - The path to append to the base path.\n     * @param {IServerType} options.serverType - The type of server to send request to.\n     * @returns {Promise} A Promise that resolves to the updated data.\n     */\n    update({\n      data,\n      appendPath,\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'updatePath',\n        appendPath,\n        serverType\n      });\n      data = this._addAdapterInfo(data, appendPath);\n      return this.ajax.PATCH(path, data).then(res => {\n        return res.data;\n      });\n    },\n    /**\n     * Updates a batch of data using PATCH method.\n     *\n     * @param {Object} options - The options for updating the batch.\n     * @param {Object} options.data - The data to update.\n     * @param {string} [options.appendPath='batch'] - The path to append to the base path.\n     * @param {IServerType} options.serverType - The server type.\n     *\n     * @return {Promise} - A Promise that resolves with the updated data.\n     */\n    updateBatch({\n      data,\n      appendPath = 'batch',\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'updatePath',\n        appendPath,\n        serverType\n      });\n      data = this._addAdapterInfo(data, appendPath);\n      return this.ajax.PATCH(path, data).then(res => {\n        return res.data;\n      });\n    },\n    /**\n     * Replaces data on the server.\n     *\n     * @param {Object} options - The options for replacing data.\n     * @param {Object} options.data - The data to be replaced.\n     * @param {string} options.appendPath - The path to append to the base path.\n     * @param {IServerType} options.serverType - The type of server.\n     *\n     * @returns {Promise} A promise that resolves with the result of the replace operation.\n     */\n    replace({\n      data,\n      appendPath,\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'replacePath',\n        appendPath,\n        serverType\n      });\n      data = this._addAdapterInfo(data, appendPath);\n      return this.ajax.PUT(path, data).then(res => {\n        if (this.afterUpdateRecord) {\n          // trigger afterUpdate hook with raw response\n          return this.afterUpdateRecord(res.data);\n        } else {\n          // return model data\n          return _nventor.default.confirm.get(res.data, 'model', res.data);\n        }\n      });\n    },\n    /**\n     * Removes a batch of data.\n     *\n     * @param {Object} options - The options object.\n     * @param {Array} options.data - The data to be removed.\n     * @param {string} [options.appendPath='batch'] - The path to append to the delete path.\n     * @param {IServerType} options.serverType - The server type.\n     * @returns {Promise} A Promise that resolves to the removed data.\n     */\n    removeBatch({\n      data,\n      appendPath = 'batch',\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'deletePath',\n        appendPath,\n        serverType\n      });\n      data = this._addAdapterInfo(data, appendPath);\n      return this.ajax.DELETE(path, data).then(res => {\n        return res.data;\n      });\n    },\n    /**\n     * Removes data from the server.\n     *\n     * @param {Object} options - The options for the remove method.\n     * @param {Object} options.data - The data to be removed from the server.\n     * @param {string} [options.appendPath=''] - The additional path to be appended to the delete path.\n     * @param {IServerType} options.serverType - The server type.\n     *\n     * @return {Promise} - A promise that resolves with the response data after the delete operation is complete.\n     */\n    remove({\n      data,\n      appendPath = '',\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'deletePath',\n        appendPath,\n        serverType\n      });\n      data = this._addAdapterInfo(data, appendPath);\n      return this.ajax.DELETE(path, data).then(res => {\n        const responseData = res.data;\n        if (this.afterDeleteRecord) {\n          // trigger afterDelete with raw response\n          return this.afterDeleteRecord(responseData);\n        } else {\n          // return deleted keys\n          if (R.is(Array(responseData))) {\n            return responseData;\n          }\n          return _nventor.default.confirm.get(responseData, 'deleted', true);\n        }\n      });\n    }\n  });\n  /**\n   * The server type to use.\n   * @typedef {''|'jobs'} IServerType\n   * */\n});","define(\"client/mixins/big\", [\"exports\", \"client/utils/nventor\", \"ramda\"], function (_exports, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const self = {\n    /**\n     * create new big number\n     * @param  {string|integer|float} number\n     * @return {class} big number class instance\n     */\n    newBig: function (number) {\n      number = parseFloat(number);\n      return new Big(number || 0);\n    },\n    /**\n     * create new big number from object's property value\n     * @param  {string} property name\n     * @return {class} big number class instance\n     */\n    getBig: function (prop) {\n      var number = parseFloat(this.get(prop));\n      return new Big(number || 0);\n    },\n    /**\n     * create new big number from object's _data.property value\n     * @param  {string} property name\n     * @return {class} big number class instance\n     */\n    getDataBig: function (prop) {\n      var number = parseFloat(this.getData(prop));\n      return new Big(number || 0);\n    },\n    toFixed: R.curry((rounding, bigNumber) => {\n      bigNumber = self.newBig(bigNumber);\n      if (rounding == null) {\n        rounding = 8;\n      }\n      rounding = parseInt(rounding);\n      return bigNumber.toFixed(rounding);\n    }),\n    autoRound: R.curry((rounding, bigNumber) => {\n      bigNumber = self.newBig(bigNumber);\n      if (rounding === 0) {\n        return self.toFixed(rounding, bigNumber);\n      }\n      return R.pipe(self.toFixed(rounding), R.dropLastWhile(x => x === '0'), R.dropLastWhile(x => x === '.'))(bigNumber);\n    }),\n    sumArray: R.reduce((accumulator, amt) => accumulator.plus(amt), new Big(0)),\n    sumPropAndAutoRound: R.curry((rounding, param, arrayOfObjects) => {\n      arrayOfObjects = arrayOfObjects || [];\n      return R.pipe(R.pluck(param), R.reject(_nventor.default.isNilOrEmpty), self.sumArray, self.autoRound(rounding))(arrayOfObjects);\n    }),\n    sumProp: R.curry((param, arrayOfObjects) => {\n      arrayOfObjects = arrayOfObjects || [];\n      return R.pipe(R.pluck(param), R.reject(_nventor.default.isNilOrEmpty), self.sumArray)(arrayOfObjects);\n    })\n  };\n  var _default = _exports.default = Ember.Mixin.create(self);\n});","define(\"client/mixins/blogs-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      adapterName,\n      appendPath,\n      match,\n      status,\n      query = '',\n      byLatest,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (status) {\n        if (!Ember.isArray(status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (byLatest) {\n        filters.setData('sort', [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    })\n\n    // actions: {\n    //   listByDate (onHideDropdown, dateZ, date) {\n    //     return this.get('listByTask').perform({ date, dateZ, resultsToggle: 'resultsToggle' }, onHideDropdown)\n    //   }\n    // }\n  });\n});","define(\"client/mixins/contacts-departments\", [\"exports\", \"ramda\", \"client/mixins/contacts-details\", \"client/mixins/contacts-persons\", \"client/utils/nventor\"], function (_exports, R, _contactsDetails, _contactsPersons, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_contactsDetails.default, _contactsPersons.default, {\n    init() {\n      this._super(...arguments);\n      this.setData('departments', []);\n    },\n    /**\n    * transform array of data into models\n    */\n    transformDepartments(rawData) {\n      const self = this;\n      if (R.is(Array, rawData.departments)) {\n        let transformed = rawData.departments.map(function (data) {\n          self.transformDetails(data);\n          self.transformPersons(data);\n          return self._createDepartmentModel(data);\n        });\n        rawData.departments = transformed;\n      }\n    },\n    /**\n    * create department model\n    */\n    _createDepartmentModel(data) {\n      return this.dataManager.setAsRecord({\n        adapterName: 'contacts/departments',\n        data\n      });\n    },\n    addDepartment(data) {\n      const department = this._createDepartmentModel(data);\n      const departments = this.getOrSetData('departments', []);\n      const departmentId = _nventor.default.random.alphaNum(8);\n      department.setData('departmentId', departmentId);\n      departments.addObject(department);\n      return department;\n    },\n    removeDepartment(department) {\n      const departments = this.getData('departments');\n      departments.removeObject(department);\n    }\n\n    // hasChildren: computed('_data.{details.[],persons.[]}', function () {\n    //   const departments = this.get('departments') || []\n    //   const persons = departments.getData('persons') || []\n    //   const details = departments.getData('details') || []\n\n    //   console.log('==============')\n    //   console.log(persons)\n    //   console.log(details)\n\n    //   if (persons.length > 0) {\n    //     return true\n    //   }\n\n    //   if (details.length > 0) {\n    //     return true\n    //   }\n\n    //   return false\n    // })\n  });\n});","define(\"client/mixins/contacts-details\", [\"exports\", \"client/utils/nventor\"], function (_exports, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * helper methods for setting up lists for tabs and panels\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    init() {\n      this._super(...arguments);\n      this.setData('details', []);\n    },\n    populate(data = {}) {\n      this._super(...arguments);\n      data = this.transformDetails(data);\n    },\n    /**\n     * transforms details array into array of models\n     * (should be called before populate)\n     */\n    transformDetails(rawData) {\n      const self = this;\n      if (Ember.isArray(rawData.details)) {\n        rawData.details = rawData.details.map(function (data) {\n          return self._createDetailModel(data);\n        });\n      }\n      return rawData;\n    },\n    /**\n     * create detail model\n     */\n    _createDetailModel(data) {\n      return this.dataManager.setAsRecord({\n        adapterName: 'contacts/details',\n        data\n      });\n    },\n    addDetail(data) {\n      data = data || {};\n      const detail = this._createDetailModel(data);\n      const details = this.getOrSetData('details', []);\n      const detailId = _nventor.default.random.alphaNum(8);\n      detail.setData('detailId', detailId);\n      this.setIfNotHasDefault(detail);\n      details.pushObject(detail);\n      return detail;\n    },\n    removeDetail(detail) {\n      const details = this.getData('details');\n      details.removeObject(detail);\n    },\n    // setFirstAsDefault (detail) {\n    //   const type = detail.getData('type')\n    //   if (type !== 'note') {\n    //     const details = this.getData('details')\n\n    //     let found\n    //     if (type === 'address') {\n    //       found = details.findBy('_data.type', type)\n    //     } else {\n    //       const subType = detail.getData('subType')\n\n    //       found = nventor.findByDotPaths({\n    //         '_data.type': type,\n    //         '_data.subType': subType\n    //       }, details)\n    //     }\n\n    //     if (!found) {\n    //       detail.setData('isDefault', true)\n    //     }\n    //   }\n    // },\n\n    setIfNotHasDefault(detail) {\n      const type = detail.getData('type');\n      if (type !== 'note') {\n        const details = this.getData('details');\n        let found;\n        if (type === 'address') {\n          found = _nventor.default.findByDotPaths({\n            '_data.type': type,\n            '_data.isDefault': true\n          }, details);\n        } else {\n          const subType = detail.getData('subType');\n          found = _nventor.default.findByDotPaths({\n            '_data.type': type,\n            '_data.subType': subType,\n            '_data.isDefault': true\n          }, details);\n        }\n        if (!found) {\n          detail.setData('isDefault', true);\n        }\n      }\n    }\n  });\n});","define(\"client/mixins/contacts-is-parent\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * helper methods for setting up lists for tabs and panels\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    departmentsList: Ember.computed('_data.departments.[]', function () {\n      return this.getData('departments') || [];\n    }),\n    allPersonsAndDepartmentsList: Ember.computed('_data.persons.[]', 'departmentsList._data.persons.[]', function () {\n      const persons = this.getData('persons') || [];\n      const departments = this.departmentsList;\n      const personsInDepartments = R.pipe(R.map(department => {\n        const persons = department.getData('persons') || [];\n        return R.map(person => {\n          person.context = department.getData('name');\n          person.parent = department;\n          return person;\n        })(persons);\n      }), R.flatten)(departments);\n      return R.pipe(R.concat(personsInDepartments), R.concat(persons))(departments);\n    }),\n    allDetailsList: Ember.computed('_data.details.[]', 'allPersonsAndDepartmentsList._data.details.[]', function () {\n      const details = this.getData('details') || [];\n      const otherDetails = R.pipe(R.map(parent => {\n        const details = parent.getData('details');\n        return R.map(detail => {\n          detail.context = parent.getData('name');\n          detail.parent = parent;\n          return detail;\n        }, details);\n      }), R.flatten)(this.allPersonsAndDepartmentsList);\n      return R.concat(details, otherDetails);\n    }),\n    detailsList: Ember.computed('_data.details.[]', function () {\n      return this.getData('details') || [];\n    }),\n    allPhonesList: Ember.computed('allDetailsList.[]', function () {\n      const allDetailsList = this.allDetailsList || [];\n      return this.getDetailsTypeList(allDetailsList, 'phone');\n    }),\n    allEmailsList: Ember.computed('allDetailsList.[]', function () {\n      const allDetailsList = this.allDetailsList || [];\n      return this.getDetailsTypeList(allDetailsList, 'email');\n    }),\n    allAddressesList: Ember.computed('allDetailsList.[]', function () {\n      const allDetailsList = this.allDetailsList || [];\n      return this.getDetailsTypeList(allDetailsList, 'address');\n    }),\n    phonesList: Ember.computed('detailsList.[]', function () {\n      const detailsList = this.detailsList || [];\n      return this.getDetailsTypeList(detailsList, 'phone');\n    }),\n    emailsList: Ember.computed('detailsList.[]', function () {\n      const detailsList = this.detailsList || [];\n      return this.getDetailsTypeList(detailsList, 'email');\n    }),\n    addressesList: Ember.computed('detailsList.[]', function () {\n      const detailsList = this.detailsList || [];\n      return this.getDetailsTypeList(detailsList, 'address');\n    }),\n    getDetailsTypeList(detailsList, type, subType) {\n      return R.filter(detail => {\n        if (detail.getData('type') === type) {\n          if (subType != null) {\n            if (detail.getData('subType') === subType) {\n              return true;\n            }\n          } else {\n            return true;\n          }\n        }\n        return false;\n      }, detailsList);\n    },\n    getDefaultPersonOrDepartment(docType, docName) {\n      const personsList = this.allPersonsAndDepartmentsList || [];\n      // load default person\n      const docCode = `${docType}-${docName}`;\n      const defaults = R.filter(p => {\n        const isDefault = p.getData('isDefault');\n        const isDefaultFor = p.getData('isDefaultFor');\n        if (isDefault && isDefaultFor === 'all') {\n          return true;\n        }\n        const isDefaultForDocs = p.getData('isDefaultForDocs');\n        if (!R.isEmpty(isDefaultForDocs) && !R.isNil(isDefaultForDocs)) {\n          if (isDefaultForDocs.indexOf(docCode) > -1) {\n            return true;\n          }\n        }\n        return false;\n      }, personsList);\n      const personOrDepartment = defaults.get('firstObject');\n      return personOrDepartment;\n    },\n    getDefaultDetail({\n      contact,\n      type,\n      subType\n    }) {\n      const detailsList = this.detailsList || [];\n      const detailsTypeList = this.getDetailsTypeList(detailsList, type, subType);\n      let defaults = R.filter(detail => detail.getData('isDefault'), detailsTypeList);\n      if (RA.isNilOrEmpty(defaults)) {\n        defaults = R.take(1, detailsTypeList) || [];\n      }\n      let defaultDetail = defaults.get('firstObject');\n      if (defaultDetail) {\n        return defaultDetail;\n      }\n      const parent = this.parent;\n      if (parent) {\n        defaultDetail = parent.getDefaultDetail({\n          type,\n          subType\n        });\n        if (defaultDetail) {\n          return defaultDetail;\n        }\n      }\n      if (contact) {\n        return contact.getDefaultDetail({\n          type,\n          subType\n        });\n      }\n      return defaultDetail;\n    }\n  });\n});","define(\"client/mixins/contacts-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      match,\n      status,\n      query = '',\n      filters,\n      byLatest,\n      relationship,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (status) {\n        if (!Ember.isArray(status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (byLatest) {\n        filters.setData('sort', [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]);\n      }\n      if (relationship) {\n        filters.setData('relationships', [relationship]);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    })\n\n    // actions: {\n    //   listByDate (onHideDropdown, dateZ, date) {\n    //     return this.get('listByTask').perform({ date, dateZ, resultsToggle: 'resultsToggle' }, onHideDropdown)\n    //   }\n    // }\n  });\n});","define(\"client/mixins/contacts-persons\", [\"exports\", \"client/mixins/contacts-details\", \"client/utils/nventor\"], function (_exports, _contactsDetails, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * helper methods for setting up lists for tabs and panels\n   */\n  var _default = _exports.default = Ember.Mixin.create(_contactsDetails.default, {\n    init() {\n      this._super(...arguments);\n      this.setData('persons', []);\n    },\n    /**\n     * populate with array of data into models\n     */\n    transformPersons(rawData) {\n      const self = this;\n      if (Ember.isArray(rawData.persons)) {\n        let transformed = rawData.persons.map(function (data) {\n          self.transformDetails(data);\n          const personModel = self._createPersonModel(data, rawData);\n          return personModel;\n        });\n        rawData.persons = transformed;\n      }\n    },\n    /**\n     * create person model\n     */\n    _createPersonModel(data, {\n      transporterExtension\n    } = {}) {\n      return this.dataManager.setAsRecord({\n        adapterName: 'contacts/persons',\n        data,\n        attrs: {\n          transporterExtension\n        }\n      });\n    },\n    addPerson(data) {\n      const person = this._createPersonModel(data);\n      const persons = this.getOrSetData('persons', []);\n      const personId = _nventor.default.random.alphaNum(8);\n      person.setData('personId', personId);\n      persons.pushObject(person);\n      return person;\n    },\n    removePerson(person) {\n      const persons = this.getData('persons');\n      persons.removeObject(person);\n    }\n  });\n});","define(\"client/mixins/crud\", [\"exports\", \"ember-concurrency\", \"client/utils/nventor\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, _nventor, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    page: 1,\n    /**\n     * @deprecated\n     * */\n    setValidationErrors(errorsProp, err) {\n      const errors = err.data || {};\n      if (R.is(String, errors) || !err.data) {\n        const msg = this.intl.t('error occurred please try again later');\n        // window.alert(msg)\n        console.log('Error!!!');\n        console.log(msg);\n        return false;\n      }\n      // when handlers are still using old nvalidator, there will not be an errors.errors array\n      if (!errors.errors) {\n        try {\n          errors.errors = R.values(errors);\n          errors.errors = R.map(error => {\n            error.context = {\n              key: error.context\n            };\n            return error;\n          })(errors.errors);\n          this.set(errorsProp, errors.errors);\n        } catch (e) {\n          console.log(e);\n        }\n      }\n\n      // let errorsTracker = this.get('errorsTracker')\n      // if (errorsTracker && errors.errors) {\n      //   errors.errors = R.map(error => {\n      //     const context = R.pathOr('', ['context', 'key'], error)\n\n      //     if (errorsTracker[context]) {\n      //       error.tab = errorsTracker[context]\n      //       error.label = error.tab.label\n      //     }\n      //     return error\n      //   })(errors.errors)\n      // }\n    },\n    setNewValidationErrors(errorsProp = 'errors', err, options = {}) {\n      const {\n        dirty\n      } = options;\n      const errors = err.data || {};\n      const isOutOfDate = R.prop('isOutOfDate')(errors);\n      if (isOutOfDate) {\n        dirty.set('isOutOfDate', isOutOfDate);\n        const msg = this.intl.t('update failed the data is out of date as it may have been changed by someone else please cancel and try again');\n        alert(msg);\n      }\n      if (R.is(String, errors) || !err.data) {\n        const msg = this.intl.t('error occurred please try again later');\n        console.log('error', msg);\n        // window.alert(msg)\n        return false;\n      }\n      // when handlers are still using old nvalidator, there will not be an errors.errors array\n      try {\n        if (!errors.errors) {\n          errors.errors = R.values(errors);\n          errors.errors = R.map(error => {\n            if (R.is(String, error)) {\n              return {\n                context: {\n                  key: error\n                }\n              };\n            }\n            error.context = {\n              key: error.context\n            };\n            return error;\n          })(errors.errors);\n        }\n        errors.errors = R.pipe(R.propOr([], 'errors'), R.map(error => {\n          const hasIndex = RA.isNotNilOrEmpty(error.index);\n          if (hasIndex && RA.isNotNilOrEmpty(error.context)) {\n            const keyWithIndex = R.join(`[${error.index}].`, error.path);\n            error.context.keyWithIndex = keyWithIndex;\n          }\n          return error;\n        }))(errors);\n      } catch (e) {\n        console.log('error setting validation errors');\n        console.log(e);\n      }\n      if (dirty) {\n        if (dirty.set) {\n          dirty.set('apiErrors', errors.errors);\n        } else {\n          dirty.apiErrors = errors.errors;\n        }\n      }\n      return errors;\n    },\n    /**\n     * @deprecated\n     * */\n    clearValidationErrors(errorsProp) {\n      this.set(errorsProp, '');\n    },\n    /**\n     * @deprecated\n     * */\n    getAdapter(adapterName) {\n      adapterName = adapterName || this.adapterName;\n      return this.server.getAdapter(adapterName);\n    },\n    /**\n     * @deprecated\n     * @param {NewRecordType?} dataOptions\n     * @return {Object}\n     */\n    setupNewRecord(dataOptions = {}) {\n      let {\n        adapterName,\n        data = {},\n        attrs = {}\n      } = dataOptions;\n      adapterName = adapterName || this.adapterName;\n      data = data || {};\n      attrs = attrs || {};\n      const model = this.dataManager.newRecord({\n        adapterName,\n        data,\n        attrs\n      });\n      model.instanceId = _nventor.default.random.alphaNum(8);\n      return model;\n    },\n    /**\n     * @deprecated\n     * */\n    setupDirty({\n      adapterName,\n      model\n    } = {}) {\n      model = model || this.model;\n      model = model || this.get('tab.model');\n      adapterName = adapterName || this.adapterName;\n      const dirty = this.dataManager.getDirtyRecord(adapterName, model);\n      dirty.instanceId = _nventor.default.random.alphaNum(8);\n\n      // const originalDirtyCopy = dirty.serialize()\n      // dirty.set('originalDirtyCopy', R.clone(originalDirtyCopy))\n\n      return dirty;\n    },\n    /**\n     * fetch default data task. should be implemented by tab-container\n     * @deprecated\n     * */\n    fetchDefaultDataTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      filters,\n      resultsProperty,\n      byLatest = true\n    }) {\n      // the function implementing needs to also have the correct list by mixin\n      const results = yield this.listByTask.perform({\n        adapterName,\n        filters,\n        byLatest\n      });\n      if (resultsProperty) {\n        this.set(resultsProperty, results);\n      }\n      return results;\n    }).drop(),\n    /**\n     * @deprecated\n     * */\n    searchAdvancedTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      resultsProperty = 'results'\n    }) {\n      const DEBOUNCE_MS = 550;\n      yield (0, _emberConcurrency.timeout)(DEBOUNCE_MS);\n      const adapterName = this.adapterName;\n      filters.setData('page', 1);\n      filters.setData('query', '');\n      const results = yield this.searchRecordsTask.perform({\n        adapterName,\n        appendPath: '/advanced',\n        filters\n      });\n      this.set(resultsProperty, results);\n      return results;\n    }).restartable(),\n    /**\n     * @deprecated\n     * */\n    searchInputTask: (0, _emberConcurrency.task)(function* ({\n      debug,\n      adapterName,\n      appendPath,\n      data,\n      filters,\n      options,\n      resultsProperty = 'results',\n      lastSearchSettingsProperty,\n      newFilters = false,\n      copyFilters = false,\n      onAfter\n    } = {}, query, e) {\n      const DEBOUNCE_MS = 550;\n      yield (0, _emberConcurrency.timeout)(DEBOUNCE_MS);\n      filters.setData('page', 1);\n      query = query || filters.getData('query');\n      query = query.trim();\n      filters.setData('query', query);\n      const results = yield this.searchRecordsTask.perform({\n        adapterName,\n        appendPath,\n        query,\n        data,\n        filters,\n        newFilters,\n        copyFilters,\n        options,\n        resultsProperty,\n        lastSearchSettingsProperty\n      }, e);\n      if (onAfter) {\n        return onAfter(results);\n      }\n      if (this.afterSearchInputTask) {\n        return this.afterSearchInputTask(results);\n      }\n      return results;\n    }).restartable(),\n    /**\n     * @deprecated\n     * */\n    paginateSearchRecordsTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      lastSearchSettingsProperty = 'lastSearchSettings',\n      resultsProperty,\n      searchSettings\n    }) {\n      if (RA.isNilOrEmpty(searchSettings)) {\n        searchSettings = filters.get(lastSearchSettingsProperty);\n      }\n      if (RA.isNilOrEmpty(searchSettings)) {\n        searchSettings = {};\n      }\n      searchSettings.lastSearchSettingsProperty = lastSearchSettingsProperty;\n      searchSettings.resultsProperty = resultsProperty || filters.getData('resultsProperty');\n      searchSettings.filters = filters;\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (this.afterPaginateSearchRecordsTask) {\n        return this.afterPaginateSearchRecordsTask(results);\n      }\n      return results;\n    }),\n    /**\n     * @deprecated\n     * */\n    reloadSearchRecordsTask: (0, _emberConcurrency.task)(function* (args) {\n      const {\n        filters,\n        lastSearchSettingsProperty = 'lastSearchSettings',\n        reset = false,\n        onAfter\n      } = args;\n      let {\n        searchSettings\n      } = args;\n      filters.setData('page', 1);\n      if (reset) {\n        filters.reset(args);\n      }\n      if (RA.isNilOrEmpty(searchSettings)) {\n        searchSettings = filters.get(lastSearchSettingsProperty);\n      }\n      if (RA.isNilOrEmpty(searchSettings)) {\n        searchSettings = {};\n      }\n\n      // a plain refresh must repeat the last search as it was, including a search bar search\n      if (reset) {\n        searchSettings.isSearchBar = false;\n      }\n      searchSettings.lastSearchSettingsProperty = lastSearchSettingsProperty;\n      searchSettings.filters = filters;\n      searchSettings.onAfter = onAfter;\n      return yield this.searchRecordsTask.perform(searchSettings);\n    }),\n    /**\n     * @deprecated\n     * */\n    searchRecordsTask: (0, _emberConcurrency.task)(function* /* searchSettings, e */\n    () {\n      return yield this.searchRecordsConcurrentlyTask.perform(...arguments);\n    }),\n    /**\n     * api/p/messages/{fb}/{name}\n     * adapterName: 'channels/shop/details'\n     * appendPath: `/${type}/${name}`\n     * @deprecated\n     * */\n    searchRecordsConcurrentlyTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      modelAdapterName,\n      appendPath,\n      rawResponse,\n      newFilters = false,\n      copyFilters = false,\n      query = '',\n      data = {},\n      filters,\n      isSearchBar = false,\n      options,\n      resultsProperty = 'results',\n      lastSearchSettingsProperty = 'lastSearchSettings',\n      errorsProp = 'errors',\n      onAfter\n    } = {} /* ,  e */) {\n      adapterName = adapterName || this.adapterName;\n      if (copyFilters) {\n        filters = this.search.copyFilters({\n          filters\n        });\n      }\n      query = query || filters.getData('query');\n      // CATCH CASE WHEN QUERY IS NOT A STRING AND SET IT TO AN EMPTY STRING\n      const isNotString = typeof query !== 'string';\n      if (isNotString) {\n        query = '';\n      }\n      if (newFilters) {\n        filters = this.search.setupFilters({\n          adapterName: filters._data.filtersAdapterName\n        });\n      }\n      if (filters && query !== filters?.currentQuerySubmitted) {\n        filters.setData('page', 1);\n      }\n      filters.setData('query', query);\n      resultsProperty = R.path(['_data', 'resultsProperty'])(filters) || resultsProperty;\n      if (!resultsProperty) {\n        resultsProperty = 'results';\n      }\n      try {\n        this.clearValidationErrors(errorsProp);\n        if (query?.trim?.() !== '') {\n          data.query = query.trim();\n        }\n        const results = yield this.dataManager.findAll({\n          adapterName,\n          appendPath,\n          modelAdapterName,\n          data,\n          filters,\n          isSearchBar,\n          options,\n          rawResponse\n        });\n        if (filters) {\n          if (!filters.getData('page')) {\n            this.set('page', 1);\n          }\n        }\n        if (!data.page) {\n          this.set('page', 1);\n        }\n        if (filters) {\n          filters.set('lastSearchSettingsProperty', lastSearchSettingsProperty);\n          filters.set(lastSearchSettingsProperty, {\n            adapterName,\n            appendPath,\n            resultsProperty,\n            query,\n            options,\n            data,\n            filters,\n            isSearchBar\n          });\n          const previousQueries = filters?.previousQueries || [];\n          previousQueries.unshiftObject(query);\n          filters.set('previousQueries', previousQueries);\n          filters.set('currentQuerySubmitted', query);\n        }\n        if (resultsProperty) {\n          this.set(resultsProperty, results);\n          if (filters) {\n            filters.set(resultsProperty, results);\n            filters.updateSynced();\n          }\n        }\n        if (onAfter) {\n          return onAfter(results);\n        }\n        if (this.afterSearchRecordsTask) {\n          return this.afterSearchRecordsTask(results);\n        }\n        return results;\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err);\n        _nventor.default.throw('searchRecordsTask failed', err);\n        return false;\n      }\n    }).enqueue(),\n    /**\n     * @deprecated\n     * */\n    findTask: (0, _emberConcurrency.task)(function* /* { adapterName, appendPath, params, errorsProp = 'errors', rawResponse } = {} */\n    () {\n      return yield this.findConcurrentTask.perform(...arguments);\n    }).drop(),\n    /**\n     * @deprecated\n     * */\n    findConcurrentTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      params,\n      errorsProp = 'errors',\n      rawResponse\n    } = {}) {\n      adapterName = adapterName || this.adapterName;\n\n      // debugger @TODDO: check not to use this\n      try {\n        this.clearValidationErrors(errorsProp);\n        const model = yield this.dataManager.findRecord({\n          adapterName,\n          appendPath,\n          params,\n          rawResponse\n        });\n        if (this.afterFindRecordTask) {\n          return this.afterFindRecordTask(model);\n        }\n        return model;\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err);\n        _nventor.default.throw('findTask failed', err);\n        return false;\n      }\n    }).enqueue().maxConcurrency(4),\n    /**\n     * @deprecated\n     * */\n    validateTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      model,\n      errorsProp = 'errors'\n    } = {}) {\n      try {\n        this.clearValidationErrors(errorsProp);\n        adapterName = adapterName || this.adapterName;\n        const adapter = this.dataManager.getAdapter(adapterName);\n        const data = adapter.serialize(model);\n        const path = adapter.getPath('resourcePath', appendPath);\n        const validated = yield this.server.call('POST', path, data);\n        model.populate(validated.data);\n        return model;\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err);\n        _nventor.default.throw('validation failed', err);\n        return false;\n      }\n    }).drop(),\n    /**\n     * @deprecated\n     * */\n    createRecordTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      model,\n      errorsProp = 'errors',\n      onAfter,\n      onAfterOptions,\n      onAfterCreateRecordTask,\n      rawResponse\n    } = {}) {\n      adapterName = adapterName || this.adapterName;\n      model = model || this.model;\n      try {\n        this.clearValidationErrors(errorsProp);\n        this.tabsManager.resetErrorsWrappers(model);\n        if (this.beforeCreateRecord) {\n          model = this.beforeCreateRecord(model);\n        }\n        const saved = yield this.dataManager.createRecord({\n          adapterName,\n          appendPath,\n          model,\n          rawResponse\n        });\n        if (onAfter) {\n          return onAfter(saved, onAfterOptions);\n        }\n        if (this.afterCreateRecordTask) {\n          return this.afterCreateRecordTask(saved, onAfterOptions);\n        }\n        if (onAfterCreateRecordTask) {\n          return onAfterCreateRecordTask(saved, onAfterOptions);\n        }\n        if (this.onAfterCreateRecordTask) {\n          return this.onAfterCreateRecordTask(saved, onAfterOptions);\n        }\n        if (this.onDisplay) {\n          this.onDisplay(saved, onAfterOptions);\n          return saved;\n        }\n        return saved;\n      } catch (err) {\n        const dirty = model;\n        this.setValidationErrors(errorsProp, err);\n        this.setNewValidationErrors(errorsProp, err, {\n          dirty\n        });\n        if (dirty.instanceId) {\n          const parentTab = this.tabsManager.getOuterMostTab();\n          this.tabsManager.registerErrors({\n            dirty,\n            parentTab,\n            tab: this.tab\n          });\n        }\n        _nventor.default.throw('createRecordTask failed', err);\n        throw err;\n      }\n    }).drop(),\n    queueUpdateRecordTask: (0, _emberConcurrency.task)(function* () {\n      return yield this.updateRecordTask(...arguments);\n    }).enqueue(),\n    /**\n     * @TODO: rename all updateRecordTask model to dirty\n     * @deprecated\n     * */\n    updateRecordTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      model,\n      errorsProp = 'errors',\n      onBefore,\n      onAfter,\n      onAfterOptions,\n      rawResponse,\n      hasUpdateProps = false\n    } = {}) {\n      adapterName = adapterName || this.adapterName;\n      model = model || this.dirty;\n      let updateProps;\n      if (hasUpdateProps) {\n        const originalModel = model.get('originalSerialized');\n        const originalData = JSON.parse(originalModel);\n        const modifiedData = JSON.parse(JSON.stringify(model.serialize()));\n        updateProps = this.getDifferentProperties(originalData, modifiedData);\n      }\n\n      // when updating specific properties but there is no changes at all\n      if (hasUpdateProps && RA.isNilOrEmpty(updateProps)) {\n        return model;\n      }\n      try {\n        this.clearValidationErrors(errorsProp);\n        this.tabsManager.resetErrorsWrappers(model);\n        if (this.beforeUpdateRecord) {\n          model = this.beforeUpdateRecord(model);\n        }\n        if (onBefore) {\n          model = onBefore(model);\n        }\n        const saved = yield this.dataManager.updateRecord({\n          adapterName,\n          appendPath,\n          dirty: model,\n          rawResponse,\n          updateProps\n        });\n        if (onAfter) {\n          return onAfter(saved, onAfterOptions);\n        }\n        if (this.afterUpdateRecordTask) {\n          this.afterUpdateRecordTask(saved, onAfterOptions);\n        }\n        if (this.onDisplay) {\n          // if (!onAfterOptions) {\n          //   const activeSubTab = this.tabsManager.getActiveSubTab(this.tab)\n          //   onAfterOptions = {\n          //     loadInstructions: {\n          //       component: activeSubTab.get('component')\n          //     }\n          //   }\n          // }\n          return this.onDisplay(saved, onAfterOptions);\n        }\n        return saved;\n      } catch (err) {\n        const dirty = model;\n        this.setValidationErrors(errorsProp, err);\n        this.setNewValidationErrors(errorsProp, err, {\n          dirty\n        });\n        if (dirty.instanceId) {\n          const parentTab = this.tabsManager.getOuterMostTab();\n          this.tabsManager.registerErrors({\n            dirty,\n            parentTab,\n            tab: this.tab\n          });\n        }\n        _nventor.default.throw('updateRecordTask failed', err);\n        throw err;\n      }\n    }).drop(),\n    /**\n     * @deprecated\n     * */\n    replaceRecordTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      model,\n      errorsProp = 'errors',\n      onAfter,\n      rawResponse\n    } = {}) {\n      adapterName = adapterName || this.adapterName;\n      model = model || this.dirty;\n      try {\n        this.clearValidationErrors(errorsProp);\n        if (this.beforeReplaceRecord) {\n          model = this.beforeReplaceRecord(model);\n        }\n        const saved = yield this.dataManager.replaceRecord({\n          adapterName,\n          appendPath,\n          dirty: model,\n          rawResponse\n        });\n        if (onAfter) {\n          return onAfter(saved);\n        }\n        if (this.afterReplaceRecordTask) {\n          return this.afterReplaceRecordTask(saved);\n        }\n        if (this.onDisplay) {\n          return this.onDisplay(saved);\n        }\n        return saved;\n      } catch (err) {\n        const dirty = model;\n        this.setValidationErrors(errorsProp, err);\n        this.setNewValidationErrors(errorsProp, err, {\n          dirty\n        });\n        if (dirty.instanceId) {\n          const parentTab = this.tabsManager.getOuterMostTab();\n          this.tabsManager.registerErrors({\n            dirty,\n            parentTab,\n            tab: this.tab\n          });\n        }\n        _nventor.default.throw('replaceRecordTask failed', err);\n        throw err;\n      }\n    }).drop(),\n    /**\n     * @deprecated\n     * */\n    removeRecordTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      batch,\n      model,\n      errorsProp = 'errors',\n      onAfter,\n      confirmMsg,\n      rawResponse,\n      noConfirm = false\n    } = {}) {\n      const intl = this.intl;\n      const msg = confirmMsg || intl.t('are you sure you want to delete');\n      const confirmed = noConfirm || window.confirm(msg);\n      if (confirmed) {\n        adapterName = adapterName || this.adapterName;\n        if (RA.isNilOrEmpty(batch)) {\n          model = model || this.model;\n          model = model || this.dirty;\n        }\n        this.set('hasError', false);\n        try {\n          if (this.beforeRemoveRecord) {\n            model = this.beforeRemoveRecord(model);\n          }\n          const success = yield this.dataManager.removeRecord({\n            adapterName,\n            appendPath,\n            batch,\n            model,\n            rawResponse\n          });\n          if (onAfter) {\n            if (!RA.isNilOrEmpty(batch)) {\n              return onAfter(batch);\n            }\n            return onAfter(model);\n          }\n          if (this.afterRemoveRecordTask) {\n            if (!RA.isNilOrEmpty(batch)) {\n              return this.afterRemoveRecordTask(batch);\n            }\n            return this.afterRemoveRecordTask(model);\n          }\n          if (this.onDash) {\n            if (!RA.isNilOrEmpty(batch)) {\n              return this.onDash(batch);\n            }\n            return this.onDash(model);\n          }\n          return success;\n        } catch (err) {\n          this.setValidationErrors(errorsProp, err);\n          _nventor.default.throw('removeRecordTask failed', err);\n        }\n      }\n    }).drop(),\n    /**\n     * @deprecated\n     * */\n    cancelEditing({\n      adapterName,\n      dirty,\n      onAfter\n    } = {}) {\n      adapterName = adapterName || this.adapterName;\n      dirty = dirty || this.dirty;\n      const original = this.dataManager.cancelDirty(adapterName, dirty);\n      if (onAfter) {\n        return onAfter();\n      }\n      if (this.afterCancelEditing) {\n        return this.afterCancelEditing(original);\n      }\n      if (this.onDisplay) {\n        return this.onDisplay(original);\n      }\n      return original;\n    },\n    getDifferentProperties(original, modified) {\n      if (R.equals(original, modified)) {\n        return [];\n      }\n      return R.pipe(R.keys, R.concat(R.keys(modified)), R.map(key => {\n        if (modified[key] !== original[key] && !R.equals(original[key], modified[key])) {\n          return key;\n        }\n      }), R.reject(RA.isNilOrEmpty), R.uniq)(original);\n    },\n    /**\n     * @deprecated\n     * */\n    fetchUploadsTask: (0, _emberConcurrency.task)(function* ({\n      resource,\n      resourceKey,\n      filters,\n      adapterName,\n      appendPath,\n      params = {}\n    }) {\n      const collectionModel = yield this.findTask.perform({\n        adapterName,\n        appendPath,\n        params: {\n          resource,\n          resourceKey,\n          filters,\n          ...params\n        }\n      });\n      return collectionModel;\n    }).enqueue(),\n    /**\n     * @deprecated\n     * */\n    adapterCallTask: (0, _emberConcurrency.task)(function* (method, {\n      adapterName,\n      appendPath,\n      data,\n      serverType = ''\n    } = {}) {\n      return yield this.dataManager.adapterCall({\n        method,\n        adapterName,\n        appendPath,\n        data,\n        serverType\n      });\n    }).drop(),\n    actions: {\n      /**\n       * @deprecated\n       * */\n      cancelEditing() {\n        this.cancelEditing(...arguments);\n      },\n      /**\n       * @deprecated\n       * */\n      setupDirty() {\n        return this.setupDirty(...arguments);\n      },\n      /**\n       * @deprecated\n       * */\n      afterSearch(dashComponent, results) {\n        const tab = this.tab;\n        if (!_nventor.default.isNilOrEmpty(results)) {\n          if (this.tabsManager.isActiveSubTab(tab, {\n            component: dashComponent\n          })) {\n            return this.dash({}, results);\n          }\n        }\n        return this.set('showResults', true);\n      }\n    }\n  });\n});","define(\"client/mixins/data\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @todo: test\n  // @TODO: move to base (dont need a mixin for this...see what implements this mixin and remove)\n  // classes that need this functionality should just extend the base model\n  /**\n   * Use for Ember model objects only\n   * this provides models with utility functions to convert to json, populate model\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    // init () {\n    //   this._super(...arguments)\n\n    //   // private is required so that certain properties can be set on the model\n    //   // that will not be included in the data that will be sent to the server.\n    //   // eg. parent is the outer model. the child model may require a parent model but\n    //   // when getData is called it should ignore 'parent' (will result in a circular reference error)\n    //   this.set('_private', {})\n    // },\n    _setupDefaults: function () {\n\n      // var self = this;\n      //\n      // //copy defaults\n      // var defaults = self.get('_defaults');\n      // if (defaults) {\n      //   //ensure the original defaults are not altered\n      //   defaults = JSON.stringify(defaults);\n      //   self.set('_data', JSON.parse(defaults));\n      // }\n    },\n    /**\n     * start up a model by populating data and setting original state\n     * should call this instead of populate on initiate\n     */\n    // _startup() {\n    //\n    // },\n    /**\n     * check if object is a model\n     * @param  {class|object}  obj - object to check\n     * @return {Boolean}\n     */\n    // isModel: function (obj) {\n\n    //   if (obj._data != null) {\n    //     return true;\n    //   }\n\n    //   return false;\n    // },\n\n    /**\n     * set original state of model on first populate.\n     * used for when checking if a model has been modified\n     */\n    setOriginalState(data) {\n      // setting original data\n      data = data | this._data;\n      this.set('_original', data);\n    },\n    /**\n     * populate for inserting data into new instances\n     * (first populates with _default and then data )\n     */\n    // populate: function (data) {\n    //   const self = this\n\n    //   data = data || {}\n\n    //   self.overwriteData(data)\n    // },\n\n    /**\n     * re-populates by over writing _data\n     */\n    // rePopulate: function (data) {\n    //   if (data) {\n    //     //data cannot be a astring\n    //     if (typeof data === 'string') {\n    //       throw 'data cannot be a string when populating model';\n    //     }\n    //\n    //     //first transform then set properties..\n    //     //(when setting properties observers may be fired so it must be done after transform)\n    //     if (this.transform) {\n    //       //does not alter model yet, only transforms data\n    //       //eg. if data.contact should also be a class, then it will convert data.contact to a class NOT model._data.contact\n    //       this.transform(data);\n    //     }\n    //\n    //     //then set properties (also sets transformed properties)\n    //     this.set('_data', data);\n    //\n    //     //a hook for the model to perform custom tasks\n    //     if (this.wasPopulated) {\n    //       //@todo: test\n    //       this.wasPopulated();\n    //     }\n    //   }\n    //   return this;\n    // },\n    /**\n     * set _data with model data\n     * @param {object} data - object hash\n     */\n    overwriteData: function (data) {\n      const self = this;\n      data = data || {};\n\n      // if (typeof data !== 'object') {\n      //\n      //   //@TODO: use custom error handler method\n      //   throw 'data is not an object';\n      // }\n\n      // if (typeof data === 'object' && !Ember.isEmpty(data)) {\n\n      // ensures that a _data prop exists\n      // var _data = self.get('_data');\n      // if (!_data) {\n      //   self.set('_data', {});\n      // }\n\n      // only overrides properties that exists\n      // (eg data from server doesn't have contact, it will keep the contact property on model)\n      // var keys = Object.keys(data);\n      // keys.forEach(function (key) {\n      //   var d = data[key];\n      //   self.setData(key, d);\n      // });\n\n      // overrides all properties in _data\n      self.set('_data', data);\n\n      // a hook for the model to perform custom tasks\n      if (this.wasPopulated) {\n        // @todo: test\n        this.wasPopulated();\n      }\n    },\n    // sync: function (data) {\n    //   @TODO: remove not required. use populate directly\n    //   this.populate(data);\n    // },\n    // save: function (method, editor) {\n    //     var data = this.serialize();\n    //     var self = this;\n    //     self.startSaving();\n    //     return this.server.rpc(method, data, editor).then(function (res) {\n    //         self.stopSaving();\n    //         /**\n    //          * @todo: problem. if model is not 'synced' on server, it will not update\n    //          */\n    //         return res;\n    //     }).catch(function (err) {\n    //         self.stopSaving();\n    //         if (err.revisionError) {\n    //             //handle revision error..\n    //             self.setOutOfDate();\n    //             //throw an error to allow the other .catch to chain\n    //             throw {};\n    //         } else {\n    //             //pass the error back down\n    //             throw err;\n    //         }\n    //     });\n    // },\n    startSaving: function () {\n      this.set('isSaving', true);\n    },\n    stopSaving: function () {\n      this.set('isSaving', false);\n    },\n    setOutOfDate: function (newData) {\n      // only set out of date if not busing saving..\n      // during saving, the sync response will return when successful, this will happen whilst the copy is still on the editing list. this will\n      // result in the copy being set as out of date.\n      if (!this.isSaving) {\n        this.set('isOutOfDate', 'data out of date');\n        this.set('isEditable', false);\n        this.set('modified', newData);\n        const synced = Math.random();\n        this.set('synced', synced);\n      }\n    },\n    /**\n     * set isDeleted\n     */\n    setIsDeleted() {\n      this.set('isDeleted', true);\n      this.set('isEditable', false);\n    },\n    /**\n     * sets parent for the model. the parent will be in _private so that getData will not be circular\n     * parents are usually set for parent-child (one-to-many) relationship models\n     */\n    setParent: function (parent) {\n      this.set('_private.parent', parent);\n    },\n    getParent: function (param) {\n      if (param) {\n        return this.get('_private.parent.' + param);\n      }\n      return this.get('_private.parent');\n    },\n    /**\n     * get all _data (including nested)\n     * @param  {object} model (optional) the model to get data from\n     * @return {object}\n     */\n    // _getAllData: function (model) {\n    //   // @TODO: this is one giant mess.\n    //   // @TODO: problem:  can have model nested in plain objects or within objects within array...too many possibilities\n    //   // model._data = {\n    //   //\n    //   //  object: {\n    //   //    model: {\n    //   //      _data: modelData\n    //   //    }\n    //   //  }\n    //   //\n    //   //  array: [{\n    //   //    object: {\n    //   //      model: {\n    //   //        _data: modelData\n    //   //      }\n    //   //    }\n    //   //  }]\n    //   //\n    //   // }\n    //   //\n    //   // proposed solution. flatten everything from model._data into pure json.\n    //   // then move all data out of _data\n    //   // eg. for above object\n    //   // model._data = {\n    //   //  object: {\n    //   //    model: modelData\n    //   //  },\n    //   //\n    //   //  array: [{\n    //   //    object: {\n    //   //      model: modelData\n    //   //    }\n    //   //  }]\n    //   // }\n\n    //   var self = this\n    //   model = model || this\n    //   var onlyData = {}\n    //   if (model._data != null) {\n    //     var allData = model._data\n\n    //     if (!Ember.isEmpty(allData)) {\n    //       var keys = Object.keys(allData)\n    //       keys.forEach(function (key) {\n    //         var propValue = allData[key]\n\n    //         // ignore prop if propValue is a function\n    //         if (!Nventor.confirm.isFunction(propValue)) {\n    //           if (Ember.isArray(propValue)) {\n    //             // is an array...copy each within array\n\n    //             // value is an array..need to check in each array\n    //             if (!Ember.isEmpty(propValue)) {\n    //               onlyData[key] = []\n    //               propValue.forEach(function (arrayVal, i) {\n    //                 if (typeof arrayVal === 'object') {\n    //                   if (arrayVal._data || Array.isArray(arrayVal)) {\n    //                     // array value is array/object\n    //                     onlyData[key][i] = self._getAllData(arrayVal)\n    //                   } else {\n    //                     onlyData[key][i] = arrayVal\n    //                   }\n    //                 } else {\n    //                   // array value is string/integer\n    //                   onlyData[key][i] = arrayVal\n    //                 }\n    //               })\n    //             }\n    //           } else if (typeof propValue === 'object') {\n    //             // is an object..\n    //             // check if propValue has a child model? (eg. it has _data)\n    //             if (propValue == null) {\n    //               // value is null\n    //               onlyData[key] = propValue\n    //             } else if (self.isModel(propValue)) {\n    //               onlyData[key] = self._getAllData(propValue)\n    //             } else {\n    //               // copy object: first stringify then parse\n    //               if (propValue._data) {\n    //                 onlyData[key] = JSON.parse(JSON.stringify(self._getAllData(propValue)))\n    //               } else {\n    //                 onlyData[key] = JSON.parse(JSON.stringify(propValue))\n    //               }\n    //             }\n    //           } else {\n    //             // normal value (string/integer)\n    //             onlyData[key] = propValue\n    //           }\n    //         }\n    //       })\n    //     }\n    //   }\n\n    // need to stringify _data and parse it so that the original classes/objects are not affected when copied\n    // onlyData = JSON.stringify(onlyData);\n    // onlyData = JSON.parse(onlyData);\n    //   return onlyData\n    // },\n    /**\n     * get as JSON stringified\n     * @return {json}\n     */\n    getJsonString: function () {\n      return JSON.stringify(this._getAllData());\n    }\n    /**\n     * get a plain javascript object (ready to be sent to the server)\n     */\n    // serialize: function () {\n    //   return this._getAllData()\n    // }\n  }); // App.DataObj = Ember.Object.extend(App.DataMixin);\n});","define(\"client/mixins/date\", [\"exports\", \"ramda\", \"moment-timezone\"], function (_exports, R, _momentTimezone) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * use moment js to manipulate dates/save\n   * use formatjs formatDate to display dates\n   */\n\n  const APP_TIMEZONE = 'Asia/Taipei';\n  _momentTimezone.default.tz.setDefault(APP_TIMEZONE);\n\n  /**\n   * mixin to format dates\n   * requires Intl service\n   * (which is not available in models but is available in components)\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    // @TODO: GET FROM USER SETTINGS\n    dateFormat: 'YYYY-MM-DD',\n    nonWorkDays: [6, 7],\n    // isoWeekdays (1=mon, 7=sun). default non-working days are sat/sun\n\n    // @NOTE: mm is never JS mm. its js mm + 1\n    // eg. js for feb = 1. but here mm would be 2\n\n    /**\n     * @deprecated\n     * @param startingFrom\n     * @returns {string[]}\n     */\n    getWeekdays(startingFrom) {\n      if (startingFrom === 'sunday') {\n        return ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'];\n      }\n      return ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'];\n    },\n    // utcOffset: 8,\n\n    /**\n     * return moment js\n     * moment will check if string is an ISO8601 Date\n     * @deprecated\n     */\n    getMoment(string, format) {\n      // TODO: allow setting of utcOffset?\n      // client will use devices time settings to generate date.\n      // the problem is that if an offset is set, pikaday (datepicker) does not use the same offset\n      // pikaday uses moment but always uses devices time settings\n\n      // return moment(string, format).utcOffset(this.get('utcOffset'));\n      if (string) {\n        return (0, _momentTimezone.default)(string, format);\n      }\n      return (0, _momentTimezone.default)();\n    },\n    /**\n     * @deprecated\n     * @returns {*}\n     */\n    getLocaleData() {\n      return _momentTimezone.default.localeData();\n    },\n    /**\n     * @deprecated\n     * @returns {*}\n     */\n    getNowZ() {\n      return this.getMoment().toISOString();\n    },\n    /**\n     * @deprecated\n     * @returns {*}\n     */\n    getToday() {\n      return this.getMoment().startOf('day');\n    },\n    /**\n     * @deprecated\n     * @param dateZ\n     * @param format\n     * @returns {*}\n     */\n    isBeforeToday(dateZ, format) {\n      return this.getMoment(dateZ, format).isBefore(this.getToday());\n    },\n    /**\n     * @deprecated\n     * @param dateZ\n     * @param format\n     * @returns {*}\n     */\n    isSameOrBefore(dateZ, format) {\n      return this.getMoment(dateZ, format).isSameOrBefore(this.getToday());\n    },\n    /**\n     * return the start of day at local time\n     * (converted to Zulu Time)\n     * @param {string} dateString (optional)\n     * @param {string} format (optional) (eg. 'yyyy-mm-dd')\n     * @return {string} Zulu Time in ISO 8601 format\n     * @deprecated\n     */\n    getStartOfDayZ(dateString, format) {\n      return this.getMoment(dateString, format).startOf('day').toISOString();\n    },\n    /**\n     * @deprecated\n     * @param dateString\n     * @param format\n     * @returns {*}\n     */\n    getEndOfDayZ(dateString, format) {\n      return this.getMoment(dateString, format).endOf('day').toISOString();\n    },\n    /**\n     * get working next available working date\n     * @deprecated\n     * @param {moment|dateZ} - can be moment, dateZ or date string (will require format)\n     * @param {integer} nonWorkDays - (optional) isoWeekday 1=monday, 7=sunday\n     * @param {string} format - (optional) only required for date=string\n     * @return {class} moment instance\n     */\n    getNextWorkDate(today, nonWorkDays, format) {\n      const self = this;\n      if (!today) {\n        today = self.getMoment(today, format);\n      }\n      if (typeof nonWorkDays === 'string') {\n        format = nonWorkDays;\n      }\n\n      // determines what are non working days\n      nonWorkDays = nonWorkDays || self.get('nonWorkDays');\n\n      // if today is not a moment instance\n      if (typeof today === 'string') {\n        today = self.getMoment(today, format);\n      }\n      let tomorrow = today.add(1, 'days');\n      let count = 1;\n      while (count <= 7) {\n        const isNonWorkDay = self._isNonWorkDay(tomorrow.isoWeekday(), nonWorkDays);\n        if (isNonWorkDay) {\n          tomorrow = tomorrow.add(1, 'days');\n          count++;\n        } else {\n          count = 8;\n        }\n      }\n      return tomorrow;\n    },\n    /**\n     * @deprecated\n     * @param today\n     * @param format\n     * @returns {*}\n     */\n    getTomorrow(today, format) {\n      const self = this;\n      if (!today) {\n        today = self.getMoment(today, format);\n      }\n      if (typeof today === 'string') {\n        today = self.getMoment(today, format);\n      }\n      return today.add(1, 'days');\n    },\n    /**\n     * @deprecated\n     * @param today\n     * @param format\n     * @returns {*}\n     */\n    getTomorrowZ(today, format) {\n      const tomorrow = this.getTomorrow(today, format);\n      return tomorrow.toISOString();\n    },\n    /**\n     * @deprecated\n     * @param mm\n     * @returns {string|*}\n     */\n    getMM(mm) {\n      if (parseInt(mm) < 10) {\n        return `0${mm}`;\n      }\n      return mm;\n    },\n    /**\n     * get working next available working date\n     * @deprecated\n     * @param {moment|dateZ} - can be moment, dateZ or date string (will require format)\n     * @param {integer} nonWorkDays - (optional) isoWeekday 1=monday, 7=sunday\n     * @param {string} format - (optional) only required for date=string\n     * @return {string} Zulu Time in ISO 8601 format\n     */\n    getNextWorkDateZ(today, nonWorkDays, format) {\n      return this.getNextWorkDate(today, nonWorkDays, format).toISOString();\n    },\n    /**\n     * check if day is a nonWorkingDay\n     * @deprecated\n     * @param  {integer}  day         isoWeekday (1=mon, 7=sun)\n     * @param  {array}  nonWorkDays   array of nonWorkDays\n     * @return {Boolean}\n     */\n    _isNonWorkDay(day, nonWorkDays) {\n      nonWorkDays = nonWorkDays || this.nonWorkDays;\n      if (nonWorkDays.indexOf(day) > -1) {\n        // day is a nonWorkingDay\n        return true;\n      }\n      return false;\n    },\n    /**\n     * @deprecated\n     * @param date\n     * @param day\n     * @returns {boolean}\n     */\n    isEqualWeekday(date, day) {\n      if (typeof date === 'string') {\n        date = this.getMoment(date);\n      }\n      if (date.isoWeekday() === day) {\n        return true;\n      }\n      return false;\n    },\n    /**\n     * @deprecated\n     * @param yyyy\n     * @param mm\n     * @returns {*}\n     */\n    getMonthEnd(yyyy, mm) {\n      // @NOTE: this mm is not js mm. its js mm + 1\n      // eg. js for feb = 1. but here mm would be 2\n      let current;\n      if (yyyy && mm) {\n        current = this.getMoment(`${yyyy}-${mm}-01`, this.dateFormat);\n      } else if (yyyy) {\n        current = this.getMoment(yyyy, this.dateFormat);\n      } else {\n        current = this.getToday();\n      }\n      return current.endOf('month');\n    },\n    /**\n     * @deprecated\n     * @param yyyy\n     * @param mm\n     * @returns {*}\n     */\n    getMonthStart(yyyy, mm) {\n      let current;\n      if (yyyy && mm) {\n        current = this.getMoment(`${yyyy}-${mm}-01`, this.dateFormat);\n      } else if (yyyy) {\n        current = this.getMoment(yyyy, this.dateFormat);\n      } else {\n        current = this.getToday();\n      }\n      return current.startOf('month');\n    },\n    /**\n     * @deprecated\n     * @param yyyy\n     * @param mm\n     * @returns {*}\n     */\n    getYearEnd(yyyy, mm) {\n      let current;\n      if (yyyy && mm) {\n        current = this.getMoment(`${yyyy}-${mm}-01`, this.dateFormat);\n      } else if (yyyy) {\n        current = this.getMoment(yyyy, this.dateFormat);\n      } else {\n        current = this.getToday();\n      }\n      return current.endOf('year');\n    },\n    /**\n     * @deprecated\n     * @param yyyy\n     * @param mm\n     * @returns {*}\n     */\n    getYearStart(yyyy, mm) {\n      let current;\n      if (yyyy && mm) {\n        current = this.getMoment(`${yyyy}-${mm}-01`, this.dateFormat);\n      } else if (yyyy) {\n        current = this.getMoment(yyyy, this.dateFormat);\n      } else {\n        current = this.getToday();\n      }\n      return current.startOf('year');\n    },\n    /**\n     * @deprecated\n     * @returns {*}\n     */\n    getLocale() {\n      return this.intl.get('locale')[0];\n    },\n    /**\n     * get correct date format based on locale\n     * @deprecated\n     * @param  {string|date object} date - if string is passed, will convert to date object\n     * @return {string} formatted date string\n     */\n    formatDate(date, format) {\n      // uses moment to parse date into date object,\n      // then use moment to show date using dateFormat\n\n      if (!date) {\n        return '';\n      }\n      if (typeof date === 'string') {\n        date = this.getMoment(date);\n      }\n\n      // display date using format\n      // WHY NOT using ember-intl:\n      //  ember intl will display date for current locale\n      //  BUT we cannot know which format it used.\n      //  ie. if locale is en-us it will display date using 'mm/dd/yyyy',\n      //  but we cannot get this locale date string in the code to parse dates.\n      //  intl only allows u to specify how year, date and month\n      //  is to be displayed but not the order in which they appear which is useless\n      //  when you need to parse the date.\n      // Reason for needing to parse date: when the user manually types in a date string\n      //  in the input (instead of picking from calendar) it needs to be parsed\n      //  then converted to dateZ.\n\n      format = format || this.dateFormat;\n\n      // set timezone to taiwan on momentjs\n      try {\n        date.tz('Asia/Taipei');\n      } catch (error) {\n        // Fallback to local timezone if Asia/Taipei is not available\n        console.warn('Timezone Asia/Taipei not available, using local timezone:', error.message);\n      }\n      return date.format(format);\n    },\n    /**\n     * @deprecated\n     * @param date\n     * @returns {*}\n     */\n    formatDateForUrl(date) {\n      if (typeof date === 'string') {\n        date = this.getMoment(date, this.dateFormat);\n      }\n      return date.format('YYYY-MM-DD');\n    },\n    /**\n     * @deprecated\n     * @param date\n     * @returns {*[]}\n     */\n    getAllDatesForMonth(date) {\n      if (!date) {\n        date = this.getToday();\n      }\n      if (typeof date === 'string') {\n        date = this.getMoment(date);\n      }\n      const mm = date.month() + 1;\n      const yyyy = date.year();\n\n      // get all days for month\n      // const monthEnd = this.getMonthEnd(date)\n      const daysInMonth = date.daysInMonth();\n      return R.times(index => {\n        const day = index + 1;\n        return this.getMoment(`${yyyy}-${mm}-${day}`, 'YYYY-MM-DD');\n      }, daysInMonth);\n    },\n    /**\n     * @deprecated\n     * @param date\n     * @returns {unknown}\n     */\n    getDaysOfMonthForCalendar(date) {\n      const dates = this.getAllDatesForMonth(date);\n      const firstDayOfWeek = dates.get('firstObject').day();\n      const lastDayOfWeek = dates.get('lastObject').day();\n      const numberOfDaysInFirstWeek = 7 - firstDayOfWeek;\n      const numberOfPreviousMonthDaysForFirstWeek = 7 - numberOfDaysInFirstWeek;\n      const fillersForFirstWeek = R.times(() => R.clone({}), numberOfPreviousMonthDaysForFirstWeek);\n      const numberOfDaysInLastWeek = lastDayOfWeek + 1;\n      const numberOfPreviousMonthDaysForLastWeek = 7 - numberOfDaysInLastWeek;\n      const fillersForLastWeek = R.times(() => R.clone({}), numberOfPreviousMonthDaysForLastWeek);\n      const firstWeek = R.pipe(R.splitAt(numberOfDaysInFirstWeek), R.head, R.map(date => this.getPeriod(date)), R.prepend(fillersForFirstWeek), R.flatten)(dates);\n      const lastWeek = R.pipe(R.splitAt(dates.length - numberOfDaysInLastWeek), R.last, R.map(date => this.getPeriod(date)), R.append(fillersForLastWeek), R.flatten)(dates);\n      const byWeeks = R.pipe(R.drop(numberOfDaysInFirstWeek), R.dropLast(numberOfDaysInLastWeek), R.map(date => this.getPeriod(date)), R.splitEvery(7), R.prepend(firstWeek), R.append(lastWeek))(dates);\n      return byWeeks;\n    },\n    /**\n     * return array of past months\n     * @deprecated\n     * @param  {integer} number defaults to 12\n     * @return {[type]}        [description]\n     */\n    getPastMonths(number, year) {\n      number = number || 12;\n      const today = this.getMoment();\n      year = year || today.year();\n      let month = today.month() + 1; // js month starts with 0 so need to add 1\n      const pastMonths = [];\n      while (number > 0) {\n        if (month === 0) {\n          month = 12;\n          // decrease year\n          year = year - 1;\n        }\n        const mm = month;\n        const period = Ember.Object.create({\n          name: `month${mm}`,\n          // used for translation\n          mm: mm,\n          yyyy: year\n        });\n        pastMonths.push(period);\n        month--;\n        number--;\n      }\n      return pastMonths;\n    },\n    /**\n     * return array of past years\n     * @deprecated\n     * @return {[type]}        [description]\n     */\n    getPastYears({\n      number,\n      year,\n      futureYearsNumber = 0\n    }) {\n      const today = this.getMoment();\n      year = year || today.year();\n      number = number || 5;\n      const pastYears = [];\n      let futureYears = year + futureYearsNumber;\n      while (futureYearsNumber > 0) {\n        const period = Ember.Object.create({\n          yyyy: futureYears\n        });\n        pastYears.push(period);\n        futureYears--;\n        futureYearsNumber--;\n      }\n      while (number > 0) {\n        const period = Ember.Object.create({\n          yyyy: year\n        });\n        pastYears.push(period);\n        year--;\n        number--;\n      }\n      return pastYears;\n    },\n    /**\n     * return array of past days\n     * @deprecated\n     * @param  {integer} number defaults to 7\n     * @param  {string} from (optional) - from date string (defaults to today)\n     * @return {array} past days from date given\n     */\n    getPastDays(number, from) {\n      const self = this;\n      number = number || 7;\n      from = this.getMoment(from).add(1, 'days');\n\n      // let date = today.date();\n      const pastDays = [];\n      while (number > 0) {\n        const current = from.subtract(1, 'days');\n        const mm = current.month() + 1;\n        const period = Ember.Object.create({\n          weekday: 'weekday' + current.isoWeekday(),\n          dateZ: current.toISOString(),\n          startOfDateZ: current.startOf('day').toISOString(),\n          date: current.format(self.get('dateFormat')),\n          day: current.isoWeekday(),\n          dd: current.date(),\n          mm: mm,\n          yyyy: current.year(),\n          q: current.quarter()\n        });\n        pastDays.push(period);\n        number--;\n      }\n      return pastDays;\n    },\n    /**\n     * @deprecated\n     * @param dateZ\n     * @param format\n     * @returns {{date: *, dd: *, mm: *, monthEnd: *, q: *, dateZ: *, monthStart: *, weekday: string, yyyy: *}}\n     */\n    getPreviousPeriod(dateZ, format) {\n      let current;\n      if (!dateZ) {\n        current = this.getToday();\n      }\n      if (typeof dateZ === 'string') {\n        // if ISO format then no \"format\" is required\n        // if other format then format must be supplied\n\n        current = this.getMoment(dateZ, format);\n      }\n      if (!current) {\n        current = dateZ;\n      }\n      const previous = current.subtract(1, 'months');\n      return this.getPeriod(previous);\n    },\n    /**\n     * @deprecated\n     * @param dateZ\n     * @param format\n     * @returns {{date: *, dd: *, mm: *, monthEnd: *, q: *, dateZ: *, monthStart: *, weekday: string, yyyy: *}}\n     */\n    getNextPeriod(dateZ, format) {\n      let current;\n      if (!dateZ) {\n        current = this.getToday();\n      }\n      if (typeof dateZ === 'string') {\n        // if ISO format then no \"format\" is required\n        // if other format then format must be supplied\n\n        current = this.getMoment(dateZ, format);\n      }\n      if (!current) {\n        current = dateZ;\n      }\n      const next = current.add(1, 'months');\n      return this.getPeriod(next);\n    },\n    /**\n     * @deprecated\n     * @param dateZ\n     * @param format\n     * @returns {{date: *, dd: *, mm: *, monthEnd: *, q: *, dateZ: *, monthStart: *, weekday: string, yyyy: *}}\n     */\n    getPeriod(dateZ, format) {\n      let current;\n      if (!dateZ) {\n        current = this.getToday();\n      } else {\n        if (typeof dateZ === 'string') {\n          // if ISO format then no \"format\" is required\n          // if other format then format must be supplied\n\n          current = this.getMoment(dateZ, format);\n        }\n      }\n      if (!current) {\n        current = dateZ;\n      }\n\n      // @NOTE: date is the actual date for the current timezone.\n      // eg. current timezone (UTC +8) may be 16th 0:00 am,\n      // but dateZ will be 15th at 16:00 pm.\n\n      const dd = current.date();\n\n      // @NOTE: js jan starts at 0\n      // should +1 to month\n      const mm = current.month() + 1;\n      const yyyy = current.year();\n      const quarter = current.quarter();\n      return {\n        weekday: 'weekday' + current.isoWeekday(),\n        dateZ: current.toISOString(),\n        date: current.format(this.dateFormat),\n        dd: dd,\n        mm: mm,\n        yyyy: yyyy,\n        q: quarter,\n        monthEnd: this.getMonthEnd(yyyy, mm).format(this.dateFormat),\n        monthStart: this.getMonthStart(yyyy, mm).format(this.dateFormat)\n      };\n    }\n  });\n});","define(\"client/mixins/dispatch\", [\"exports\", \"ramda\", \"client/mixins/date\"], function (_exports, R, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* eslint-disable ember/no-new-mixins */\n  var _default = _exports.default = Ember.Mixin.create(_date.default, {\n    actions: {\n      showPreDispatchProcessDialog(modelProxy, dispatchDateZ, dispatchDate) {\n        modelProxy.set('showPreDispatchProcess', true);\n        dispatchDateZ = dispatchDateZ || this.getStartOfDayZ();\n        modelProxy.set('dispatchDateZ', dispatchDateZ);\n        dispatchDate = dispatchDate || this.getMoment(dispatchDateZ).format('YYYY-MM-DD');\n        modelProxy.set('dispatchDate', dispatchDate);\n      },\n      closePreDispatchProcessDialog(modelProxy) {\n        modelProxy.set('showPreDispatchProcess', false);\n      },\n      showWaybills(modelProxy, model, dispatchProcess) {\n        if (!R.is(Array, model) && dispatchProcess.getData('code') === 'dispatched' && model.getData('transporterExtension') === 'hct') {\n          const postDispatchShippingWaybillsModal = this.settings.getProp('postDispatchShippingWaybillsModal');\n          if (postDispatchShippingWaybillsModal) {\n            modelProxy.set('showWaybills', true);\n          }\n        }\n      }\n    }\n  });\n});","define(\"client/mixins/doc-contacts\", [\"exports\", \"client/mixins/transporter\", \"ramda-extension\"], function (_exports, _transporter, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * helper methods for setting up lists for tabs and panels\n   */\n  var _default = _exports.default = Ember.Mixin.create(_transporter.default, {\n    /**\n       * load settings from contact\n       */\n    loadContact(docType, contact) {\n      // @TODO TEST\n      const model = this.model;\n      this._loadContact(model, docType, contact);\n    },\n    _loadContact(model, docType, contact) {\n      this.set('linksList', []);\n      this.set('selectedContact', contact);\n      model.loadContact({\n        docType,\n        contact,\n        paymentMethodsList: R_.dotPath('crud.lists.paymentMethods')(this),\n        paymentTermsList: R_.dotPath('crud.lists.paymentTerms')(this)\n      });\n      this.fetchAndLoadTransporterForContactTask.perform({\n        contact,\n        model\n      });\n    },\n    loadContactAndUpdateDoInfo(model, contact) {\n      const docType = this.docType;\n      const adapterName = this.adapterName;\n      const dirty = this.onSetupDirty({\n        adapterName,\n        model: this.model\n      });\n      dirty.setData('contact', contact.getData('name'));\n      this._loadContact(dirty, docType, contact);\n      return this.onUpdateDocInfoTask.linked().perform(dirty);\n    },\n    /**\n     * unload contact\n     */\n    unloadContact(model) {\n      // @TODO: test\n\n      const empty = '';\n      const emptyArray = [];\n      this.set('selectedContact', empty);\n      this.set('linksList', emptyArray);\n      model.setData('exclTotal', '0');\n      model.setData('inclTotal', '0');\n      model.setData('taxTotal', '0');\n      model.unloadContact();\n      this.unloadTransporter(model);\n      this.removeAllDetails();\n    },\n    loadContactPerson(model, personOrDepartment) {\n      return model.loadContactPerson(personOrDepartment);\n    },\n    actions: {\n      loadContact(docType, contact) {\n        this.loadContact(docType, contact);\n      },\n      loadContactAndUpdateDoInfo() {\n        return this.loadContactAndUpdateDoInfo(...arguments);\n      },\n      unloadContact(model) {\n        this.unloadContact(model);\n      },\n      loadContactPerson(model, personOrDepartment) {\n        this.loadContactPerson(model, personOrDepartment);\n      },\n      loadContactDetail(model, prop, detail) {\n        const value = detail.getData('value');\n        model.setData(prop, value);\n      },\n      addContactDetail(model, prop, detail) {\n        const value = detail.getData('value');\n        let existing = model.getData(prop);\n        if (existing) {\n          existing = `${existing} / ${value}`;\n        } else {\n          existing = value;\n        }\n        model.setData(prop, existing);\n      }\n    }\n  });\n});","define(\"client/mixins/doc-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  // import { isEmpty } from '@ember/utils'\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      match,\n      documentStatus,\n      dispatchStatus,\n      filters,\n      query,\n      notDispatchStatus,\n      date,\n      dateStart,\n      dateEnd,\n      showCampaignPeriodDataOnly,\n      campaignPeriodDateStart,\n      campaignPeriodDateEnd,\n      isVoid,\n      contact,\n      contactKey,\n      sourceKey,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.reset();\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (isVoid) {\n        filters.setData('isVoid', true);\n      }\n      if (documentStatus) {\n        if (!Ember.isArray(documentStatus)) {\n          documentStatus = [documentStatus];\n        }\n        filters.setData('documentStatus', documentStatus);\n        filters.setData('documentStatuses', documentStatus);\n      }\n      if (dispatchStatus) {\n        if (!Ember.isArray(dispatchStatus)) {\n          dispatchStatus = [dispatchStatus];\n        }\n        filters.setData('dispatchStatus', dispatchStatus);\n      }\n      if (notDispatchStatus) {\n        if (!Ember.isArray(notDispatchStatus)) {\n          notDispatchStatus = [notDispatchStatus];\n        }\n        filters.setData('notDispatchStatus', notDispatchStatus);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        filters.setData('query', date);\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      if (showCampaignPeriodDataOnly) {\n        filters.setData('showCampaignPeriodDataOnly', showCampaignPeriodDataOnly);\n      }\n      if (campaignPeriodDateStart) {\n        filters.setData('campaignPeriodDateStart', campaignPeriodDateStart);\n      }\n      if (campaignPeriodDateEnd) {\n        filters.setData('campaignPeriodDateEnd', campaignPeriodDateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }),\n    listByDetailsTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      adapterName,\n      match,\n      documentStatus,\n      dispatchStatus,\n      notDispatchStatus,\n      date,\n      dateStart,\n      dateEnd,\n      query = '',\n      contact,\n      contactKey,\n      itemKey,\n      sourceKey,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (itemKey) {\n        filters.setData('itemKey', itemKey);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (documentStatus) {\n        if (!Ember.isArray(documentStatus)) {\n          documentStatus = [documentStatus];\n        }\n        filters.setData('documentStatus', documentStatus);\n      }\n      if (dispatchStatus) {\n        if (!Ember.isArray(dispatchStatus)) {\n          dispatchStatus = [dispatchStatus];\n        }\n        filters.setData('dispatchStatus', dispatchStatus);\n      }\n      if (notDispatchStatus) {\n        if (!Ember.isArray(notDispatchStatus)) {\n          notDispatchStatus = [notDispatchStatus];\n        }\n        filters.setData('notDispatchStatus', notDispatchStatus);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        query = date;\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath: '/details',\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }),\n    listByDate(onHideDropdown, dateZ, date) {\n      return this.listByTask.perform({\n        filters: this.filters,\n        date: this.getMoment(date).format('YYYY-MM-DD'),\n        dateZ,\n        resultsToggle: 'resultsToggle'\n      }, onHideDropdown);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"listByDate\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"listByDate\"), _obj), _obj));\n});","define(\"client/mixins/doc-status\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { isEmpty } from '@ember/utils'\n  // import { computed } from '@ember/object'\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    // isReadonly: true,\n    dispatch: Ember.inject.service(),\n    batchDispatchDateZ: null,\n    // user can use datepicker to set default date for batch\n\n    init() {\n      this._super(...arguments);\n      this.set('batchDispatchDateZ', this.getStartOfDayZ());\n    },\n    toggleIsVoidTask: (0, _emberConcurrency.task)(function* ({\n      dirty,\n      onAfter\n    }) {\n      try {\n        const adapterName = dirty.adapterName;\n        if (!dirty) {\n          const model = this.model;\n          const adapterName = model.adapterName;\n          dirty = this.dataManager.getDirtyRecord(adapterName, model);\n        }\n        let isVoid = dirty.getData('isVoid', false);\n        let status;\n\n        // let msg = 'are you sure you want to void document'\n        if (isVoid === false) {\n          isVoid = true;\n          status = this.get('constants.documentsStatus.void');\n        } else {\n          // make void = false\n          isVoid = false;\n          // msg = 'are you sure you want to undo void for document'\n          status = this.get('constants.documentsStatus.draft');\n        }\n        const key = dirty.getData('_key');\n        const appendPath = `/status/${key}`;\n        dirty.setData('isVoid', isVoid);\n        dirty.setData('status', status);\n        const saved = yield this.dataManager.updateRecord({\n          adapterName,\n          appendPath,\n          dirty\n        });\n        if (onAfter) {\n          onAfter(saved);\n        }\n        return saved;\n      } catch (e) {\n        return e;\n      }\n    }).drop(),\n    actions: {\n      /**\n       * toggle dispatched status from 'undispatched' -> 'dispatched'\n       */\n      toggleDispatched(model) {\n        model = model || this.model;\n        let confirmed = true;\n        let appendPath;\n        let dispatchStatus = model.getData('dispatchStatus', this.get('constants.dispatchStatus.undispatched'));\n        if (dispatchStatus !== this.get('constants.dispatchStatus.dispatched')) {\n          dispatchStatus = this.get('constants.dispatchStatus.dispatched');\n          appendPath = '/dispatch';\n        } else {\n          // check if dispatchDate is today, otherwise ask for confirmation\n          if (model.get('isDispatchedBeforeToday')) {\n            const msg = this.intl.t('this may already have been dispatched on a previous day- are you sure you want to change its dispatch status');\n            confirmed = window.confirm(msg);\n          }\n          dispatchStatus = this.get('constants.dispatchStatus.undispatched');\n          appendPath = '/undispatch';\n        }\n        if (confirmed) {\n          this.updateDispatchStatusTask.perform({\n            model,\n            appendPath,\n            dispatchStatus\n          });\n        }\n      },\n      toggleOnHold(model) {\n        model = model || this.model;\n        let dispatchStatus = model.getData('dispatchStatus', this.get('constants.dispatchStatus.undispatched'));\n        let appendPath;\n        if (dispatchStatus !== this.get('constants.dispatchStatus.onHold')) {\n          let confirmed = true;\n          const dispatchDateZ = model.getData('dispatchDateZ');\n          if (this.getStartOfDayZ() !== dispatchDateZ && dispatchDateZ) {\n            const msg = this.intl.t('this may already have been dispatched on a previous day- are you sure you want to change its dispatch status');\n            confirmed = window.confirm(msg);\n          }\n          if (confirmed) {\n            appendPath = '/hold';\n            dispatchStatus = this.get('constants.dispatchStatus.onHold');\n            this.updateDispatchStatusTask.perform({\n              model,\n              appendPath,\n              dispatchStatus\n            });\n          }\n        } else {\n          appendPath = '/undispatch';\n          dispatchStatus = this.get('constants.dispatchStatus.undispatched');\n          this.updateDispatchStatusTask.perform({\n            model,\n            appendPath,\n            dispatchStatus\n          });\n        }\n      },\n      dispatchAll() {\n        const msg = this.intl.t('are you sure you want to dispatch all?');\n        if (window.confirm(msg)) {\n          const fromStatus = this.get('constants.dispatchStatus.undispatched');\n          const toStatus = this.get('constants.dispatchStatus.dispatched');\n          const appendPath = '/dispatch';\n          this.updateDispatchStatusBatchTask.perform({\n            appendPath,\n            fromStatus,\n            toStatus\n          });\n        }\n      },\n      undispatchAll() {\n        const msg = this.intl.t('are you sure you want to undispatch all?');\n        if (window.confirm(msg)) {\n          const fromStatus = this.get('constants.dispatchStatus.dispatched');\n          const toStatus = this.get('constants.dispatchStatus.undispatched');\n          const appendPath = '/undispatch';\n          this.updateDispatchStatusBatchTask.perform({\n            appendPath,\n            fromStatus,\n            toStatus\n          });\n        }\n      },\n      holdAll() {\n        const msg = this.intl.t('are you sure you want to hold all?');\n        if (window.confirm(msg)) {\n          const fromStatus = this.get('constants.dispatchStatus.undispatched');\n          const toStatus = this.get('constants.dispatchStatus.onHold');\n          const appendPath = '/hold';\n          this.updateDispatchStatusBatchTask.perform({\n            appendPath,\n            fromStatus,\n            toStatus\n          });\n        }\n      },\n      unholdAll() {\n        const msg = this.intl.t('are you sure you want to unhold all?');\n        if (window.confirm(msg)) {\n          const fromStatus = this.get('constants.dispatchStatus.onHold');\n          const toStatus = this.get('constants.dispatchStatus.dispatched');\n          const appendPath = 'undispatch';\n          this.updateDispatchStatusBatchTask.perform({\n            appendPath,\n            fromStatus,\n            toStatus\n          });\n        }\n      }\n    }\n  });\n});","define(\"client/mixins/draggable\", [\"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 = Ember.Mixin.create({\n    attributeBindings: ['isDraggable:draggable'],\n    classNameBindings: ['isDraggable:draggable', 'isDragging:is-dragging'],\n    draggable: true,\n    isDragging: false,\n    disableWhenReadonly: false,\n    isDraggable: Ember.computed('draggable', 'disableWhenReadonly', function () {\n      if (this.disableWhenReadonly) {\n        return false;\n      }\n      return this.draggable;\n    }),\n    dragStart(event) {\n      if (this.isDraggable) {\n        this.set('isDragging', true);\n        let data = this.data;\n\n        // if (nventor.confirm.isObject(data)) {\n        data = JSON.stringify(this.data);\n        // }\n\n        event.dataTransfer.setData('text/data', data);\n        var img = new Image();\n        img.src = \"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3C/svg%3E\";\n        // Set as drag image\n        event.dataTransfer.setDragImage(img, 0, 0);\n        if (this.onDragStart) {\n          // @note this function may contain additional params that are passed to onDragStart\n          // based on if fn was curried\n          this.onDragStart(data);\n        }\n\n        // @note stopPropagation (not preventDefault/`return false`) so this drag\n        // doesn't also trigger dragStart on an ancestor DragContainer wrapping\n        // this one (e.g. a nested reorderable list inside another reorderable\n        // list) - preventDefault here would cancel the drag itself per the\n        // HTML5 dnd spec, so it must never be used on dragstart\n        event.stopPropagation();\n      }\n    },\n    dragEnd(event) {\n      this.set('isDragging', false);\n      if (this.onDragEnd) {\n        // @note fires for every completed or cancelled drag (dropped inside a\n        // droppable zone, outside one, or cancelled entirely) so the source's\n        // dragDetail can always be cleared once its drag is truly over\n        this.onDragEnd();\n      }\n\n      // @note same reasoning as dragStart above - stop this dragend from also\n      // firing onDragEnd on an ancestor DragContainer that never sourced it\n      if (event) {\n        event.stopPropagation();\n      }\n    },\n    mouseOut() {\n      if (this.isDragging) {\n        this.set('isDragging', false);\n      }\n    }\n  });\n});","define(\"client/mixins/droppable\", [\"exports\", \"client/utils/nventor\"], function (_exports, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Mixin.create((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    // classNameBindings: ['dropPositionClassName'],\n    classNameBindings: ['_isDragOver:is-drag-over', 'dropPositionClassName'],\n    droppable: true,\n    disableWhenReadonly: false,\n    hasLeft: false,\n    didInsertElement() {\n      // @TODO: in glimmer, element needs to be passed in\n      this.set('currentElement', this.element);\n\n      // this.element.addEventListener('mouseenter', this.handleMouseEnter)\n      // this.element.addEventListener('mouseleave', this.handleMouseLeave)\n    },\n    // @action\n    // handleMouseEnter () {\n    //   console.log('mouse enter')\n    //   this.set('hasLeft', false)\n    // },\n\n    // @action\n    // handleMouseLeave () {\n    //   console.log('mouse leave')\n    //   this.set('hasLeft', true)\n    // },\n\n    isDroppable: Ember.computed('droppable', 'disableWhenReadonly', function () {\n      if (this.disableWhenReadonly) {\n        return false;\n      }\n      return this.droppable;\n    }),\n    _isDragOver: Ember.computed('isDragOver', 'isDroppable', function () {\n      if (!this.isDroppable) {\n        return false;\n      }\n      return this.isDragOver;\n    }),\n    getTransferData(event) {\n      let data = event.dataTransfer.getData('text/data');\n      data = _nventor.default.safeParseJSON(data);\n      return data;\n    },\n    dropPositionClassName: Ember.computed('dropPosition', 'isDragOver', function () {\n      if (!this.isDragOver) {\n        return '';\n      }\n      return this.dropPosition;\n    }),\n    dragLeave(event) {\n      event.preventDefault();\n      this.set('hasLeft', true);\n      if (!this.isDroppable) {\n        return false;\n      }\n      this.set('dragLeaveEvent', event);\n      Ember.run.debounce(this, this._dragLeave, 100);\n    },\n    _dragLeave() {\n      if (!this.hasLeft) {\n        return;\n      }\n      this.set('isDragOver', false);\n      const event = this.dragLeaveEvent;\n      const targetElement = event.target;\n      const dropContainerElement = targetElement.closest('.drop-container');\n      if (!dropContainerElement || !dropContainerElement.classList.contains('is-drag-over')) {\n        return;\n      }\n    },\n    dragOver(event) {\n      event.preventDefault();\n      if (!this.isDroppable) {\n        return false;\n      }\n      this.set('hasLeft', false);\n      const targetElement = event.target;\n      if (this.isDragOver) {\n        return;\n      }\n      const dragDetail = this.outerComponent?.dragDetail;\n      const modelIdPath = this.modelIdPath;\n      const model = this.model;\n      if (dragDetail?.get && modelIdPath && model?.get) {\n        const dragModelId = dragDetail.get(modelIdPath);\n        const dropModelId = model.get(modelIdPath);\n        if (dragModelId === dropModelId) {\n          return;\n        }\n      }\n      const dropContainerElement = targetElement.closest('.drop-container');\n      if (!dropContainerElement || dropContainerElement.classList.contains('is-drag-over')) {\n        return;\n      }\n      this.set('isDragOver', true);\n      if (this.onDragOver) {\n        this.onDragOver(dropContainerElement, event);\n      }\n    },\n    drop(event) {\n      event.preventDefault();\n      if (this.isDroppable) {\n        this.set('isDragOver', false);\n        const data = this.getTransferData(event);\n        if (this.onDrop) {\n          this.onDrop(data, event);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"dragLeave\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"dragLeave\"), _obj), _applyDecoratedDescriptor(_obj, \"_dragLeave\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"_dragLeave\"), _obj), _applyDecoratedDescriptor(_obj, \"dragOver\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"dragOver\"), _obj), _obj));\n});","define(\"client/mixins/e-invoices-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      adapterName,\n      appendPath,\n      match,\n      abandoned,\n      status,\n      date,\n      dateStart,\n      dateEnd,\n      query = '',\n      contact,\n      contactKey,\n      sourceKey,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (abandoned) {\n        filters.setData('abandoned', abandoned);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (status) {\n        if (!Ember.isArray(status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        query = date;\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }),\n    actions: {\n      listByDate(onHideDropdown, dateZ, date) {\n        return this.listByTask.perform({\n          date,\n          dateZ,\n          resultsToggle: 'resultsToggle'\n        }, onHideDropdown);\n      }\n    }\n  });\n});","define(\"client/mixins/editor\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../utils/nventor';\n  //\n  /**\n   * common functions shared by all components that have editing capabilities\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    didRender() {\n      this._super(...arguments);\n      this.setTabAsEditing();\n    },\n    setTabAsEditing() {\n      const tab = this.tab;\n      if (tab) {\n        tab.set('isEditing', true);\n      }\n    }\n  });\n});","define(\"client/mixins/emails-dispatched\", [\"exports\", \"ramda\", \"ember-concurrency\", \"client/utils/nventor\", \"ramda-adjunct\"], function (_exports, R, _emberConcurrency, _nventor, _ramdaAdjunct) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    dispatch: Ember.inject.service(),\n    getToSendBatchEmailsTask: (0, _emberConcurrency.task)(function* ({\n      dispatchProcess,\n      dispatchDate,\n      dispatchDateZ,\n      transporterExtension = '',\n      waybillStatus = '',\n      waybillLastStatus = '',\n      daysOld = '',\n      errorsProp = 'errors'\n    }) {\n      try {\n        this.clearValidationErrors(errorsProp);\n        dispatchDateZ = dispatchDateZ || this.get('period.dateZ');\n        dispatchDate = dispatchDate || this.get('period.date');\n        const response = yield this.server.call('GET', 'api/protected/documents/emails/process', {\n          dispatchDate,\n          dispatchDateZ,\n          dispatchProcessesCriterias: dispatchProcess.getData('criterias'),\n          dispatchProcess: dispatchProcess.getData('code'),\n          transporterExtension,\n          waybillStatus,\n          waybillLastStatus,\n          daysOld\n        });\n        return R.propOr([], 'data')(response);\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err);\n        _nventor.default.throw('getToSendBatchEmailsTask failed', err);\n        return false;\n      }\n    }),\n    sendBatchEmailsTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, {\n      subject,\n      message,\n      dispatchProcess,\n      errorsProp = 'errors',\n      selectedProxyArray = [],\n      sendByFilter = false,\n      expectedCount = 0,\n      useDefaultsDispatchedEmailEstimatedTransporterArrivalDate = true,\n      dispatchedEmailHasEstimateTransporterArrivalDate = true,\n      dispatchedEmailEstimateTransporterArrivalDaysFromDispatch = 1,\n      dispatchedEmailTransporterArrivalDateSkipWeekends = false\n    }) {\n      try {\n        this.clearValidationErrors(errorsProp);\n        const selectedRows = selectedProxyArray || [];\n        const hasRowSelection = _ramdaAdjunct.default.isNotNilOrEmpty(selectedRows);\n        const emailMessage = {\n          subject,\n          message,\n          useDefaultsDispatchedEmailEstimatedTransporterArrivalDate,\n          dispatchedEmailHasEstimateTransporterArrivalDate,\n          dispatchedEmailEstimateTransporterArrivalDaysFromDispatch,\n          dispatchedEmailTransporterArrivalDateSkipWeekends\n        };\n        const listScope = {\n          filters: this.filters,\n          dispatchProcess: dispatchProcess || this.dispatchProcess,\n          period: this.period\n        };\n        let resp;\n        if (hasRowSelection) {\n          const selectedPayload = this.dispatch.buildProcessEmailSendSelectedPayload({\n            ...listScope,\n            ...emailMessage,\n            selectedDocuments: selectedRows\n          });\n          if (_ramdaAdjunct.default.isNilOrEmpty(selectedPayload.docKeys)) {\n            onCloseDialogAction();\n            window.alert('sent: 0 emails.');\n            return false;\n          }\n          resp = yield this.dispatch.sendSelectedProcessEmailsTask.perform(selectedPayload);\n        } else if (sendByFilter) {\n          const sendAllPayload = this.dispatch.buildProcessEmailSendAllPayload({\n            ...listScope,\n            ...emailMessage,\n            expectedCount\n          });\n          resp = yield this.dispatch.sendAllProcessEmailsTask.perform(sendAllPayload);\n        } else {\n          onCloseDialogAction();\n          window.alert('sent: 0 emails.');\n          return false;\n        }\n        let sent = 0;\n        if (resp.data) {\n          sent = resp.data.length;\n        }\n        onCloseDialogAction();\n        window.alert('sent: ' + sent + ' emails.');\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err);\n        _nventor.default.throw('sendBatchEmailsTask failed', err);\n        return false;\n      }\n    }),\n    getToSendAllDispatchedEmailsTask: (0, _emberConcurrency.task)(function* ({\n      dispatchDate,\n      dispatchDateZ,\n      errorsProp = 'errors'\n    }) {\n      try {\n        this.clearValidationErrors(errorsProp);\n        dispatchDate = dispatchDate || this.get('period.date');\n        dispatchDateZ = dispatchDateZ || this.get('period.dateZ');\n        const response = yield this.server.call('GET', 'api/protected/documents/emails/dispatched', {\n          dispatchDate,\n          dispatchDateZ\n        });\n        return R.propOr([], 'data')(response);\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err);\n        _nventor.default.throw('getToSendBatchEmailsTask failed', err);\n        return false;\n      }\n    }),\n    sendAllDispatchedEmailsTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, {\n      useDefaultDispatchedEmailMessage,\n      subject,\n      message,\n      dispatchDate,\n      dispatchDateZ,\n      useDefaultsDispatchedEmailEstimatedTransporterArrivalDate = true,\n      dispatchedEmailHasEstimateTransporterArrivalDate = true,\n      dispatchedEmailEstimateTransporterArrivalDaysFromDispatch = 1,\n      dispatchedEmailTransporterArrivalDateSkipWeekends = false,\n      errorsProp = 'errors'\n    }) {\n      try {\n        this.clearValidationErrors(errorsProp);\n        dispatchDate = dispatchDate || this.get('period.date');\n        dispatchDateZ = dispatchDateZ || this.get('period.dateZ');\n        if (useDefaultDispatchedEmailMessage) {\n          subject = '';\n          message = '';\n        }\n        const resp = yield this.server.call('PUT', 'api/protected/documents/emails/dispatched', {\n          subject,\n          message,\n          dispatchDate,\n          dispatchDateZ,\n          useDefaultsDispatchedEmailEstimatedTransporterArrivalDate,\n          dispatchedEmailHasEstimateTransporterArrivalDate,\n          dispatchedEmailEstimateTransporterArrivalDaysFromDispatch,\n          dispatchedEmailTransporterArrivalDateSkipWeekends,\n          useDefaultDispatchedEmailMessage\n        });\n        let sent = 0;\n        if (resp.data) {\n          sent = resp.data.length;\n        }\n        onCloseDialogAction();\n        window.alert('sent: ' + sent + ' emails.');\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err);\n        _nventor.default.throw('getToSendBatchEmailsTask failed', err);\n        return false;\n      }\n    }),\n    getToSendDispatchedEmailsTask: (0, _emberConcurrency.task)(function* ({\n      errorsProp = 'errors'\n    }) {\n      // dispatchDateZ is not used\n      const docKey = this.get('model._data._key');\n      try {\n        this.clearValidationErrors(errorsProp);\n        const docType = this.get('model._data.docType');\n        const docName = this.get('model._data.docName');\n        const groupId = this.get('model._data.groupId');\n        const response = yield this.server.call('GET', `api/protected/documents/emails/dispatched/${docKey}`, {\n          docType,\n          docName,\n          groupId\n        });\n        return R.propOr([], 'data')(response);\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err);\n        _nventor.default.throw('getToSendBatchEmailsTask failed', err);\n        return false;\n      }\n    }),\n    sendDispatchedEmailsTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, {\n      useDefaultDispatchedEmailMessage,\n      message,\n      dispatchDate,\n      dispatchDateZ,\n      useDefaultsDispatchedEmailEstimatedTransporterArrivalDate = true,\n      dispatchedEmailHasEstimateTransporterArrivalDate = true,\n      dispatchedEmailEstimateTransporterArrivalDaysFromDispatch = 1,\n      dispatchedEmailTransporterArrivalDateSkipWeekends = false,\n      docKey,\n      docType,\n      docName\n    }) {\n      dispatchDateZ = dispatchDateZ || this.get('period.dateZ');\n      if (useDefaultDispatchedEmailMessage) {\n        message = '';\n      }\n      const groupId = this.get('model._data.groupId');\n      const resp = yield this.server.call('PUT', `api/protected/documents/emails/dispatched/${docKey}`, {\n        message,\n        dispatchDate,\n        // seems not used by API (not on schema and not used in function)\n        dispatchDateZ,\n        // seems not used by API (not on schema and not used in function)\n        docType,\n        docName,\n        groupId,\n        useDefaultsDispatchedEmailEstimatedTransporterArrivalDate,\n        dispatchedEmailHasEstimateTransporterArrivalDate,\n        dispatchedEmailEstimateTransporterArrivalDaysFromDispatch,\n        dispatchedEmailTransporterArrivalDateSkipWeekends\n      });\n      const data = resp?.data || [];\n      const failedEmails = R.filter(R.equals(false))(data);\n      const sentEmails = R.reject(R.equals(false))(data);\n      let msg = '';\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(failedEmails)) {\n        msg += `${this.intl.t('email not sent')}: ${R.length(failedEmails)}`;\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(sentEmails)) {\n          msg += '\\\\n';\n        }\n      }\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(sentEmails)) {\n        const emails = R.pipe(R.pluck('email'), R.reject(_ramdaAdjunct.default.isNilOrEmpty), R.uniq, R.join(', '))(sentEmails);\n        msg += this.intl.t('email sent to') + ': ' + emails;\n        onCloseDialogAction();\n      }\n      window.alert(msg);\n    }),\n    sendPaymentReminderEmailsTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, {\n      email,\n      message,\n      dispatchDateZ,\n      docKey,\n      docType,\n      docName\n    }) {\n      const payload = email._data || {};\n      payload.docType = docType;\n      payload.docName = docName;\n      const resp = yield this.server.call('POST', `api/protected/documents/emails/payment-reminder/${docKey}`, payload);\n      const emailSent = R.path(['data', 'email'], resp);\n      let msg = this.intl.t('email not sent');\n      if (emailSent) {\n        msg = this.intl.t('email sent to') + ': ' + emailSent;\n        onCloseDialogAction();\n      }\n      window.alert(msg);\n    })\n  });\n});","define(\"client/mixins/errors\", [\"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 = Ember.Mixin.create({\n    validationError: Ember.computed('errorIndex', 'errors.[]', function () {\n      const errors = this.errors || [];\n      if (errors.length > 0) {\n        const errorIndex = this.errorIndex;\n        return errors.filterBy('index', errorIndex);\n      }\n      return [];\n    })\n  });\n});","define(\"client/mixins/files\", [], function () {\n  \"use strict\";\n});","define(\"client/mixins/has-dropdown\", [\"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 = Ember.Mixin.create({\n    //@TODO: redo this:\n    //all inputs will perform this show/hide dropdown\n    //even tho its not used in a dropdown\n\n    focusIn(e) {\n      this._super(e);\n      this.showDropdown();\n    },\n    showDropdown() {\n      if (this.disabled !== true) {\n        this.set('isDropdownVisible', true);\n      }\n    },\n    hideDropdown() {\n      this.set('isDropdownVisible', false);\n    }\n    // toggleDropdown() {\n    //\n    // }\n  });\n});","define(\"client/mixins/hct-fetch\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    /**\n     * This is no longer require on the new HCT api\n     * @deprecated\n     */\n    fetchHCTRegionDataTask: (0, _emberConcurrency.task)(function* (model) {\n      return true;\n      // model.setData('transporterRegion', '')\n      // model.setData('transporterRegionIsOuter', '')\n      //\n      // const data = {\n      //   address: model.getData('address')\n      // }\n      // try {\n      //   const result = yield this.server.call('GET', `api/protected/extensions/apps/tw/transporters/hct`, data)\n      //   model.set('isFetching', false)\n      //   let region = ''\n      //\n      //   if (result.data.region) {\n      //     region = result.data.region\n      //     model.setData('transporterRegion', result.data.region)\n      //     model.setData('transporterRegionIsOuter', result.data.isOuter)\n      //   } else {\n      //     model.setData('transporterRegion', '')\n      //     model.setData('transporterRegionIsOuter', '')\n      //   }\n      //\n      //   return region\n      // } catch (err) {\n      //   this.set('errors', err)\n      // }\n    }),\n    // async fetchHCTRegionData (model) {\n    //   // model.set('isFetching', true)\n    //   this.get('fetchHCTRegionDataTask').perform(model)\n    // },\n\n    isHCTIncomplete(model) {\n      let errors = [];\n      let hasErrors = false;\n      if (model.getData('transporterExtension') === 'hct') {\n        if (!model.getData('address')) {\n          errors.push({\n            context: {\n              key: 'address'\n            },\n            message: 'required'\n          });\n          hasErrors = true;\n        }\n        if (model.getData('transporterLabel') === false || model.getData('transporterLabel') === 'false') {\n          errors.push({\n            context: {\n              key: 'transporterLabel'\n            },\n            message: 'required'\n          });\n          hasErrors = true;\n        }\n        const packages = parseInt(model.getData('packages'));\n        if (packages <= 0 || isNaN(packages)) {\n          errors.push({\n            context: {\n              key: 'packages'\n            },\n            message: 'required'\n          });\n          hasErrors = true;\n        }\n        if (!model.getData('telephone')) {\n          errors.push({\n            context: {\n              key: 'telephone'\n            },\n            message: 'required'\n          });\n          hasErrors = true;\n        }\n      }\n      if (hasErrors) {\n        this.set('errors', errors);\n        return errors;\n      }\n      this.set('errors', '');\n      return false;\n    }\n  });\n});","define(\"client/mixins/is-dirty\", [\"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 = Ember.Mixin.create({\n    originalValue: null,\n    setOriginalValue(value) {\n      this.set('originalValue', value);\n    },\n    getOriginalValue() {\n      return this.originalValue;\n    },\n    resetOriginalValue() {\n      this.set('originalValue', this.get('value'));\n    },\n    isDirty: Ember.computed('originalValue', 'value', function () {\n      var originalValue = this.getOriginalValue();\n      var value = this.value;\n      if (Ember.isEmpty(value) && Ember.isEmpty(originalValue)) {\n        // no original value set..therefore not dirty\n        return false;\n      }\n\n      // @NOTE: intenionally use non-strict ==\n      // this is so that numbers and string numbers will match\n      if (value == originalValue) {\n        return false;\n      }\n      return true;\n    })\n  });\n});","define(\"client/mixins/news-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      adapterName,\n      appendPath,\n      match,\n      status,\n      query = '',\n      byLatest,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (status) {\n        if (!Ember.isArray(status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (byLatest) {\n        filters.setData('sort', [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    })\n\n    // actions: {\n    //   listByDate (onHideDropdown, dateZ, date) {\n    //     return this.get('listByTask').perform({ date, dateZ, resultsToggle: 'resultsToggle' }, onHideDropdown)\n    //   }\n    // }\n  });\n});","define(\"client/mixins/payments-list-by\", [\"exports\", \"ramda\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, R, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    crud: Ember.inject.service(),\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      adapterName,\n      appendPath,\n      match,\n      abandoned,\n      status,\n      paymentCreditCardStatus,\n      date,\n      dateStart,\n      dateEnd,\n      query = '',\n      contact,\n      contactKey,\n      sourceKey,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (abandoned) {\n        filters.setData('abandoned', abandoned);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (status) {\n        if (!R.is(Array, status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (paymentCreditCardStatus) {\n        if (!R.is(Array, paymentCreditCardStatus)) {\n          paymentCreditCardStatus = [paymentCreditCardStatus];\n        }\n        filters.setData('paymentCreditCardStatus', paymentCreditCardStatus);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        query = date;\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters,\n        component: this\n      };\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }),\n    actions: {\n      listByDate(onHideDropdown, filters, dateZ, date) {\n        if (dateZ && !date) {\n          date = this.formatDate(dateZ, 'YYYY-MM-DD');\n        }\n        return this.listByTask.perform({\n          filters,\n          date,\n          dateZ,\n          resultsToggle: 'resultsToggle'\n        }, onHideDropdown);\n      }\n    }\n  });\n});","define(\"client/mixins/processes\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Process from '../pods/processes/model';\n  var _default = _exports.default = Ember.Mixin.create({\n    classNameBindings: ['isProcessing'],\n    processes: [],\n    // init() {\n    //\n    //   this._super(...arguments);\n    // },\n    // isProcessing: Ember.computed('processes.[]', function () {\n    //\n    //   const active = this.get('processes').length;\n    //\n    //   if (active > 0) {\n    //\n    //     //has processes running\n    //     return true;\n    //   }\n    //\n    //   //no processes running\n    //   return false;\n    // }),\n    whenReady() {\n      // const isProcessing = this.get('isProcessing');\n      // if (isProcessing) {\n      //\n      // }\n      const self = this;\n      const promises = self.get('processes');\n      return new Ember.RSVP.all(promises);\n      //\n      // return new Ember.RSVP.Promise(function (resolve, reject) {\n      //   /* jshint unused: false */\n      //   return resolve(data);\n      // });\n    },\n    startProcess(process) {\n      // const process = new Ember.RSVP.Promise(function (resolve, reject) {\n      //   /* jshint unused: false */\n      //   return resolve(data);\n      // });\n      const processes = this.processes;\n      if (Ember.isArray(processes)) {\n        //   const process = Process.create();\n        processes.pushObject(process);\n\n        //   return process;\n      }\n      //\n      // return false;\n    },\n    stopProcess(process) {\n      if (process) {\n        this.processes.removeObject(process);\n        return true;\n      }\n      return false;\n    }\n    // create: function (component) {\n    //   if (this.get('disableOnProcessing') === false || this.get('disableOnProcessing') === true) {\n    //     this.set('disableOnProcessing', true);\n    //     this.set('disabled', true);\n    //   }\n    //   //creates new process\n    //   //@TODO: this is causing problems for list-picker\n    //   //when an item is searched, the input removes the values when isProcessing is set\n    //   // this.set('isProcessing', true);\n    //\n    //   var process = Process.create();\n    // \tvar promise = process.start(component);\n    // \tvar processes = this.get('processes');\n    // \tvar promises = this.get('promises');\n    // \tprocesses.pushObject(process);\n    // \tpromises.pushObject(promise);\n    // \treturn process;\n    // },\n    // end: function (process) {\n    //   //remove process from process manager\n    //   var processes = this.get('processes');\n    //   var promises = this.get('promises');\n    //   var promise = process.get('promise');\n    //   promises.removeObject(promise);\n    //   processes.removeObject(process);\n    //\n    //   if (!this.get('isDestroyed')) {\n    //     if (this.get('disableOnProcessing')) {\n    //       this.set('disableOnProcessing', false);\n    //       this.set('disabled', false);\n    //     }\n    //\n    //     // if (this.get('processManager.processes').length < 1) {\n    //       //@TODO: this is causing problems for list-picker\n    //       //when an item is searched, the input removes the values when isProcessing is set\n    //       // this.set('isProcessing', false);\n    //     // }\n    //   }\n    // },\n    // /**\n    // * waits for all process to be ready before starting async operation. while it is waiting it sets isProcessing=true.\n    // * @param  {boolean}  setProcessing - defaults to true. if set to false then it does not alter isProcessing.\n    // */\n    // isReady: function (setProcessing) {\n    //   var self = this;\n    //\n    //   //disableOnProcessing only when the component has this property AND is disableOnProcessing argument is not set to false\n    //   var componentHasDisableOnProcessing = false;\n    //   if ((self.get('disableOnProcessing') === false || self.get('disableOnProcessing') === true) && setProcessing !== false) {\n    //     componentHasDisableOnProcessing = true;\n    //   }\n    //\n    //   //start processing..\n    //   if (setProcessing !== false) {\n    //     self.set('isProcessing', true);\n    //   }\n    //\n    //   if (setProcessing === true || componentHasDisableOnProcessing) {\n    //     self.set('disableOnProcessing', true);\n    //     self.set('disabled', true);\n    //   }\n    //\n    //   var promises = this.get('promises');\n    // \tpromises = Ember.RSVP.Promise.all(promises);\n    //   return promises.all().then(function () {\n    //     //when complete stop processing\n    //     if (setProcessing !== false) {\n    //       self.set('isProcessing', false);\n    //     }\n    //     if (setProcessing === true || componentHasDisableOnProcessing) {\n    //       self.set('disableOnProcessing', false);\n    //       self.set('disabled', false);\n    //     }\n    //   });\n    // }\n  });\n});","define(\"client/mixins/products-children\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, _ramdaAdjunct) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    init() {\n      this._super(...arguments);\n      this.set('childAdapters.choices', 'products/choices');\n      this.set('childAdapters.choices-details', 'products/choices/details');\n      this.set('childAdapters.sets-details', 'products/sets/details');\n      this.set('childAdapters.variants', 'products/variants');\n      this.set('childAdapters.variants-options', 'products/variants/options');\n      this.set('childAdapters.variants-children', 'products/variants/children');\n      this.set('childAdapters.customizations', 'products/customizations');\n      this.set('childAdapters.customizations-options', 'products/customizations/options');\n    },\n    populate(data = {}) {\n      this._super(...arguments);\n      if (_ramdaAdjunct.default.isObj(data)) {\n        data = this.transformSetDetails(data);\n        data = this.transformSetWithChoices(data);\n        data = this.transformVariants(data);\n        data = this.transformCustomizations(data);\n      }\n    },\n    // statusClass: computed('_data.status', function () {\n    //   const status = this.get('_data.status')\n    //   const statusClasses = this.get('statusClasses')\n    //   return R.propOr('is-danger', status, statusClasses)\n    // }),\n\n    isOnSale: Ember.computed('_data.onSale', function () {\n      if (this.get('_data.onSale') === 'on') {\n        return true;\n      }\n      return false;\n    }),\n    oldPrice: Ember.computed('_data.{isSetWithChoices,hasVariants,price,priceDiscounted,isSetPriceOnBundle}', 'synced', function () {\n      if (this.get('_data.isSetWithChoices')) {\n        return this.lowestSetWithChoicesPriceOld;\n      }\n      if (this.get('_data.hasVariants')) {\n        return this.lowestVariantPriceOld;\n      }\n      return this.get('_data.price');\n    }),\n    currentPrice: Ember.computed('isOnSale', '_data.{price,priceDiscounted,isSetPriceOnBundle}', 'synced', function () {\n      if (this.get('_data.isSetWithChoices')) {\n        if (this.isOnSale) {\n          return this.lowestSetWithChoicesPricePossible;\n        }\n        return this.lowestSetWithChoicesPriceOld;\n      }\n      if (this.get('_data.hasVariants')) {\n        if (this.isOnSale) {\n          return this.lowestVariantPriceCurrent;\n        }\n        return this.lowestVariantPriceOld;\n      }\n      if (this.isOnSale) {\n        const priceDiscounted = this?._data?.priceDiscounted;\n\n        // need to return 0 as well, not just skip\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(priceDiscounted)) {\n          return priceDiscounted;\n        }\n      }\n      return this.get('_data.price');\n    }),\n    variantChildrenData: Ember.computed('_data.variantChildren', function () {\n      const variantChildrenData = R.pipe(R.pathOr([], ['_data', 'variantChildren']), R.pluck('_data'))(this);\n      return variantChildrenData;\n    }),\n    lowestVariantOldPriceRange: Ember.computed('_data.{variantChildren.[],price,priceDiscounted}', 'variantChildrenData.@each.{price,priceDiscounted}', function () {\n      const variantChildrenData = this.variantChildrenData;\n      const variantChildren = this.get('_data.variantChildren') || [];\n      const diff = function (a, b) {\n        return parseFloat(a) - parseFloat(b);\n      };\n      const allPriceFilled = R.pipe(R.map(child => {\n        return child._data.price || 0;\n      }), R.reject(n => R.equals(n, 0)), R.length, R.equals(variantChildren.length))(variantChildren);\n      let variantMasterPrice = this.get('_data.price');\n      if (!variantMasterPrice) {\n        variantMasterPrice = 0;\n      }\n      if (allPriceFilled) {\n        variantMasterPrice = 0;\n      }\n      const isEmpty = R.curry((prop, child) => {\n        return R.isEmpty(R.path(['_data', prop], child));\n      });\n      return R.pipe(R.reject(R.allPass([isEmpty('price'), isEmpty('priceDiscounted')])), R.map(variantChild => {\n        const price = R.path(['_data', 'price'])(variantChild);\n        if (price) {\n          return price || 0;\n        }\n\n        // return R.path(['_data', 'priceDiscounted'])(variantChild)\n        return variantMasterPrice || 0;\n      }), R.concat([variantMasterPrice]), R.reject(n => R.equals(n, 0)), R.uniq, R.sort(diff))(variantChildren);\n    }),\n    lowestVariantPriceOld: Ember.computed('_data.{variantChildren.[],price,priceDiscounted}', 'variantChildrenData.@each.{price,priceDiscounted}', function () {\n      const variantChildrenData = this.variantChildrenData;\n      const lowestVariantPrices = this.lowestVariantOldPriceRange || [];\n      let lowestVariantPrice;\n      if (lowestVariantPrices.length > 0) {\n        lowestVariantPrice = lowestVariantPrices[0];\n      }\n      return lowestVariantPrice;\n    }),\n    lowestVariantCurrentPriceRange: Ember.computed('_data.{variantChildren.[],price,priceDiscounted,onSale}', 'variantChildrenData.@each.{price,priceDiscounted}', function () {\n      const variantChildrenData = this.variantChildrenData;\n      const variantChildren = this.get('_data.variantChildren') || [];\n      const diff = (a, b) => parseFloat(a) - parseFloat(b);\n      const onSale = this.get('_data.onSale');\n      const allPriceFilled = R.pipe(R.map(child => {\n        return child._data.price || 0;\n      }), R.reject(n => R.equals(n, 0)), R.length, R.equals(variantChildren.length))(variantChildren);\n      const allPriceDiscountedFilled = R.pipe(R.map(child => {\n        return child._data.priceDiscounted || 0;\n      }), R.reject(n => R.equals(n, 0)), R.length, R.equals(variantChildren.length))(variantChildren);\n      let variantMasterPrice = this.get('_data.price');\n      if (!variantMasterPrice || onSale) {\n        variantMasterPrice = this.get('_data.priceDiscounted') || 0;\n        if (allPriceDiscountedFilled) {\n          variantMasterPrice = 0;\n        }\n      } else {\n        if (allPriceFilled) {\n          variantMasterPrice = 0;\n        }\n      }\n      const isEmpty = R.curry((prop, child) => {\n        return R.isEmpty(R.path(['_data', prop], child));\n      });\n      return R.pipe(R.reject(R.allPass([isEmpty('price'), isEmpty('priceDiscounted')])), R.map(variantChild => {\n        if (onSale === 'on') {\n          // if (variantChild._data.onSale === 'on') {\n          return variantChild._data.priceDiscounted || 0;\n          // }\n        }\n        return variantChild._data.price || 0;\n      }), R.concat([variantMasterPrice]), R.reject(n => R.equals(n, 0)), R.uniq, R.sort(diff))(variantChildren);\n    }),\n    lowestVariantPriceCurrent: Ember.computed('_data.{variantChildren.[],price,priceDiscounted,onSale}', 'variantChildrenData.@each.{price,priceDiscounted}', function () {\n      const variantChildrenData = this.variantChildrenData;\n      const lowestVariantPrices = this.lowestVariantCurrentPriceRange || [];\n      let lowestVariantPrice;\n      if (lowestVariantPrices.length > 0) {\n        lowestVariantPrice = lowestVariantPrices[0];\n      }\n      return lowestVariantPrice;\n    }),\n    lowestSetWithChoicesPriceOld: Ember.computed('_data.{choices.[]}', 'synced', function () {\n      const choices = this.get('_data.choices') || [];\n      const diff = function (a, b) {\n        return parseFloat(a) - parseFloat(b);\n      };\n      const lowestTotalPrice = R.pipe(R.map(choice => {\n        const chooseQty = choice._data.qty;\n        const isSetPriceOnBundle = choice._data.isSetPriceOnBundle;\n        const details = choice._data.details || [];\n        const lowestPrices = R.map(detail => {\n          if (detail._data.hasVariants) {\n            return detail.lowestVariantPriceOld;\n          }\n          if (detail._data.price) {\n            return detail._data.price;\n          }\n          return detail._data.priceDiscounted;\n        })(details);\n        let lowestPrice = R.pipe(R.sort(diff), R.head)(lowestPrices);\n        if (isSetPriceOnBundle) {\n          if (choice._data.price) {\n            lowestPrice = choice._data.price || 0;\n          } else {\n            lowestPrice = choice._data.priceDiscounted || 0;\n          }\n          return lowestPrice;\n        }\n        return chooseQty * lowestPrice;\n      }), R.flatten, R.reduce((acc, lowestPrice) => {\n        acc = parseInt(acc) + parseInt(lowestPrice);\n        return acc;\n      }, 0))(choices);\n      return lowestTotalPrice;\n    }),\n    lowestSetWithChoicesPricePossible: Ember.computed('_data.{choices.[],onSale}', 'synced', function () {\n      const choices = this.get('_data.choices') || [];\n      const diff = function (a, b) {\n        return parseFloat(a) - parseFloat(b);\n      };\n      const onSale = this.get('_data.onSale');\n      const lowestTotalPrice = R.pipe(R.map(choice => {\n        const chooseQty = choice._data.qty;\n        const isSetPriceOnBundle = choice._data.isSetPriceOnBundle;\n        const details = choice._data.details || [];\n        const lowestPrices = R.map(detail => {\n          if (onSale === 'on') {\n            if (detail._data.hasVariants) {\n              return detail.lowestVariantPriceCurrent;\n            }\n\n            // if (detail._data.onSale === 'on') {\n            return detail._data.priceDiscounted;\n            // }\n          }\n          return detail._data.price;\n        })(details);\n        let lowestPrice = R.pipe(R.sort(diff), R.head)(lowestPrices);\n        if (isSetPriceOnBundle) {\n          if (onSale === 'on') {\n            lowestPrice = choice._data.priceDiscounted || 0;\n          } else {\n            lowestPrice = choice._data.price || 0;\n          }\n          return lowestPrice;\n        }\n        return chooseQty * lowestPrice;\n      }), R.flatten, R.reduce((acc, lowestPrice) => {\n        acc = parseInt(acc) + parseInt(lowestPrice);\n        return acc;\n      }, 0))(choices);\n      return lowestTotalPrice;\n    }),\n    hasPriceRange: Ember.computed('_data.{choices.[],onSale,variantChildren.[]}', 'synced', 'variantChildrenData.@each.{price,priceDiscounted}', function () {\n      const variantChildrenData = this.variantChildrenData;\n      const choices = this.get('_data.choices') || [];\n      const onSale = this.get('_data.onSale');\n      if (this.get('_data.hasVariants')) {\n        const lowestVariantCurrentPriceRange = this.lowestVariantCurrentPriceRange || [];\n        if (lowestVariantCurrentPriceRange.length > 1) {\n          return true;\n        }\n        return false;\n      }\n      const onlyChoicesWithPriceRanges = R.filter(choice => {\n        const details = choice._data.details || [];\n        const isSetPriceOnBundle = choice._data.isSetPriceOnBundle;\n        if (isSetPriceOnBundle) {\n          return false;\n        }\n        const allUniqueDetailPrices = R.pipe(R.map(detail => {\n          if (onSale === 'on') {\n            // if (detail._data.onSale === 'on') {\n            return detail._data.priceDiscounted;\n            // }\n          }\n          return detail._data.price;\n        }), R.uniq)(details);\n        if (allUniqueDetailPrices.length > 1) {\n          return true;\n        }\n        return false;\n      })(choices);\n      if (onlyChoicesWithPriceRanges.length > 0) {\n        return true;\n      }\n      return false;\n    }),\n    transformSetDetails(data) {\n      if (_ramdaAdjunct.default.isArray(data.setDetails)) {\n        const detailsRequiredAttrs = this.setDetailsRequiredAttrs;\n        data.setDetails = R.pipe(R.propOr([], 'setDetails'), R.map(detailData => {\n          const detailModel = this.dataManager.setAsRecord({\n            adapterName: this.get('childAdapters.sets-details'),\n            data: detailData,\n            attrs: {\n              requiredAttrs: detailsRequiredAttrs\n            }\n          });\n          return detailModel;\n        }))(data);\n      }\n      return data;\n    },\n    transformSetWithChoices(data) {\n      data.choices = R.pipe(R.propOr([], 'choices'), R.map(choiceData => {\n        const details = choiceData.details || [];\n        choiceData.details = R.map(detailData => {\n          if (detailData.hasVariants) {\n            detailData = this.transformVariants(detailData);\n          } else if (detailData.isSet) {\n            detailData = this.transformSetDetails(detailData);\n          }\n          return this.dataManager.setAsRecord({\n            adapterName: this.get('childAdapters.choices-details'),\n            data: detailData\n          });\n        })(details);\n        return this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.choices'),\n          data: choiceData\n        });\n      }))(data);\n      return data;\n    },\n    transformVariants(data) {\n      data.variants = R.pipe(R.propOr([], 'variants'), R.map(variantData => {\n        variantData.options = R.pipe(R.propOr([], 'options'), R.map(optionData => {\n          return this.dataManager.setAsRecord({\n            adapterName: this.get('childAdapters.variants-options'),\n            data: optionData\n          });\n        }))(variantData);\n        return this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.variants'),\n          data: variantData\n        });\n      }))(data);\n      data.variantChildren = R.pipe(R.propOr([], 'variantChildren'), R.map(variantChild => {\n        const variantChildModel = this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.variants-children'),\n          data: variantChild\n        });\n        return variantChildModel;\n      }))(data);\n      return data;\n    },\n    transformCustomizations(data) {\n      data.customizations = R.pipe(R.propOr([], 'customizations'), R.map(customization => {\n        customization.options = R.pipe(R.propOr([], 'options'), R.map(option => {\n          return this.dataManager.setAsRecord({\n            adapterName: this.get('childAdapters.customizations-options'),\n            data: option\n          });\n        }))(customization);\n        return this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.customizations'),\n          data: customization\n        });\n      }))(data);\n      return data;\n    },\n    isSetOrHasVariants: Ember.computed('_data.setType', function () {\n      const setType = this.get('_data.setType') || '';\n      if (setType === '') {\n        return false;\n      }\n      if (setType === 'isVariantChild') {\n        return false;\n      }\n      return true;\n    }),\n    hasVariantsOrChoices: Ember.computed('_data.{isSetWithChoices,hasVariants}', function () {\n      if (this.get('_data.hasVariants')) {\n        return true;\n      }\n      if (this.get('_data.isSetWithChoices')) {\n        return true;\n      }\n      return false;\n    }),\n    _getAllChildModels() {\n      const setDetailsModels = this._getIsSetDetailsModels();\n      const choicesChildrenModels = this._getIsSetWithChoicesChildrenModels();\n      return R.concat(setDetailsModels, choicesChildrenModels);\n    },\n    _getIsSetDetailsModels() {\n      return this.get('_data.setDetails') || [];\n    },\n    _getIsSetWithChoicesChildrenModels() {\n      const isSetWithChoices = this.get('_data.isSetWithChoices');\n      if (isSetWithChoices) {\n        const choices = this.get('_data.choices');\n        return R.pipe(R.pluck('_data'), R.pluck('details'), R.flatten)(choices);\n      }\n      return [];\n    },\n    isSetChoicesDetailsProxyArray: Ember.computed('_data.{isSetWithChoices,choices._data.[]}', function () {\n      const isSetWithChoices = this.get('_data.isSetWithChoices');\n      if (isSetWithChoices) {\n        const isSetWithChoicesDetailsModels = this._getIsSetWithChoicesChildrenModels();\n        return R.pluck('_data')(isSetWithChoicesDetailsModels);\n      }\n      return [];\n    }),\n    // isSetDetailsProxyArray: computed('_data.{isSet,setDetails.[]}', function () {\n    //   const isSet = this.get('_data.isSet')\n    //   if (isSet) {\n    //     const isSetDetailsModels = this._getIsSetDetailsModels()\n    //     return R.pluck('_data')(isSetDetailsModels)\n    //   }\n    //   return []\n    // }),\n\n    allChildModels: Ember.computed('_data.{setDetails.[],variantChildren.[]}', 'isSetChoicesDetailsProxyArray.@each.itemKey', 'variantChildrenData.@each.{price,priceDiscounted}', function () {\n      const variantChildrenData = this.variantChildrenData;\n      const setDetails = this.get('_data.setDetails') || [];\n      const variantChildren = this.get('_data.variantChildren') || [];\n      const setWithChoicesChildrenModels = this._getIsSetWithChoicesChildrenModels() || [];\n      return R.pipe(R.concat(setDetails), R.concat(setWithChoicesChildrenModels))(variantChildren);\n    })\n  });\n});","define(\"client/mixins/products-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      match,\n      status,\n      byLatest,\n      filters,\n      query,\n      resultsProperty,\n      resultsToggle,\n      onAfter\n    } = {}, onHideDropdown) {\n      // when list by always set to page 1\n      // filters.setData('page', 1)\n\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (status) {\n        if (!Ember.isArray(status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (byLatest) {\n        filters.setData('sort', [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters,\n        onAfter\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    })\n  });\n});","define(\"client/mixins/sales-persons\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  /**\n   * helper methods for setting up lists for tabs and panels\n   */\n  var _default = _exports.default = Ember.Mixin.create((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    init() {\n      this._super(...arguments);\n      this.setData('salesPersons', []);\n    },\n    /**\n     * transform salesPersons array into array of models\n     */\n    transformSalesPersons(rawData) {\n      const self = this;\n      if (R.is(Array, rawData.salesPersons)) {\n        const transformed = rawData.salesPersons.map(function (data) {\n          return self._createSalesPersonModel(data);\n        });\n        rawData.salesPersons = transformed;\n      }\n    },\n    _createSalesPersonModel(data) {\n      // returned from api\n      // data = {\n      //   _key: 12321312,\n      //   name: 'darwin'\n      // }\n\n      // looks like this in db\n      // data = {\n      //   _key: 12321312,\n      //   _id: members/12321312\n      //   name: 'darwin'\n      // }\n\n      if (!data._id) {\n        // this is for backwards compatibility\n        data._id = `members/${data._key}`;\n      }\n      return this.dataManager.setAsRecord({\n        adapterName: 'users',\n        data: data\n      });\n    },\n    addSalesPerson(personModel) {\n      const data = personModel.serialize();\n      const salesPersons = this.getOrSetData('salesPersons', []);\n      const hasPerson = salesPersons.findBy('_data._key', data._key);\n      if (!hasPerson) {\n        const salesPerson = this._createSalesPersonModel(data);\n        this.getData('salesPersons').pushObject(salesPerson);\n      }\n    },\n    removeSalesPerson(salesPerson) {\n      const salesPersons = this.getData('salesPersons');\n      salesPersons.removeObject(salesPerson);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"addSalesPerson\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"addSalesPerson\"), _obj), _applyDecoratedDescriptor(_obj, \"removeSalesPerson\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"removeSalesPerson\"), _obj), _obj));\n});","define(\"client/mixins/search-contacts\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\"], function (_exports, _emberConcurrency, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, {\n    filtersAdapterName: 'contacts/filters',\n    /**\n     * Deprecated fn, should use contacts service instead\n     * @deprecated\n     */\n    searchContactsTask: (0, _emberConcurrency.task)(function* ({\n      relationship,\n      query,\n      resultsProperty,\n      resultsToggle = false,\n      disallowForFlatFees = false\n    }) {\n      if (query?.trim?.() !== '') {\n        const relationships = [];\n        if (relationship === 'all') {\n          relationships.push('customer');\n          relationships.push('supplier');\n        } else {\n          relationships.push(relationship);\n        }\n        const filters = this.search.setupFilters({\n          adapterName: this.filtersAdapterName,\n          defaultFiltersData: {\n            relationships,\n            query,\n            match: ['name', 'code', 'taxNumber'],\n            sort: [{\n              by: 'name',\n              direction: 'ASC'\n            }],\n            status: [this.get('constants.status.active')],\n            disallowForFlatFees\n          }\n        });\n        const adapterName = 'contacts';\n        const results = yield this.searchInputTask.perform({\n          adapterName,\n          filters,\n          query,\n          resultsProperty,\n          resultsToggle\n        });\n        return results;\n      }\n      return [];\n    })\n  });\n});","define(\"client/mixins/settings\", [\"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 = Ember.Mixin.create({\n    // getDefaultTaxRate (taxes) {\n    //   taxes = taxes || []\n    //   const defaultTaxRateKey = this.get('taxRateKey')\n    //   const defaultTax = taxes.findBy('_data._key', defaultTaxRateKey)\n\n    //   if (defaultTax) {\n    //     return defaultTax.getData('value')\n    //   }\n\n    //   const firstObject = taxes.get('firstObject')\n\n    //   if (firstObject) {\n    //     return firstObject.getData('value')\n    //   }\n\n    //   return '0'\n    // },\n\n    storeSettings: function (settings) {\n      /* jshint unused: false */\n      // @TODO: redo\n      // locker.remove('settings');\n      // locker.set('settings', settings);\n    },\n    /**\n     * gets a specific setting.\n     * @param {string} prop - settings property\n     * @param {class} preferred - (optional) first check preferred, return settings set in preferred otherwise return settings\n     * @param {string} preferredProp - (optional) settings property for preferred\n     */\n    getSetting: function (prop, preferred, preferredProp) {\n      /* jshint unused: false */\n\n      return '';\n      // var setting;\n      // if (preferred) {\n      //   preferredProp = preferredProp || prop;\n      //   setting = preferred.getData(preferredProp);\n      // }\n      // if (!setting) {\n      //   var settings = App.Factory.model('BaseModel', locker.get('settings'));\n      //   setting = settings.getData(prop);\n      // }\n      //\n      // return setting;\n    },\n    // getToday: function () {\n    //   return ''\n    //   // return moment().format('YYYY-MM-DD');\n    // },\n    /**\n    * checks if pod settings allow tax and disables elements\n    * used for both setting element to disabled when processing and\n    * for setting disabled/enabled depending on taxAllowed setting\n    */\n    isTaxDisabled: Ember.computed('model.taxAllowed', 'disabled', function () {\n      // set to true if disabled=true (eg. when processing)\n      if (this.disabled) {\n        return true;\n      }\n      if (this.getSetting('taxAllowed') === 0 || this.getSetting('taxAllowed') === '0') {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/mixins/sortable-actions\", [\"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 = Ember.Mixin.create({\n    modelProp: 'model',\n    indexProp: '_data.index',\n    getModel() {\n      const modelProp = this.modelProp;\n      return this.get(modelProp);\n    },\n    actions: {\n      dragStartItem(detail) {\n        this.set('dragDetail', detail);\n      },\n      /**\n       * Clear dragDetail once this drag is over (dropped anywhere or cancelled).\n       * Without this, a later unmatched drop on the same editor replays a stale item.\n       * @return {void}\n       */\n      dragEndItem() {\n        this.set('dragDetail', null);\n        this.set('dropPosition', '');\n      },\n      /**\n       * Set insert-above/below from the hovered row vs the dragged row.\n       * @param {Object} detail - row the pointer is over\n       * @param {Object} [dragItem] - row being dragged; falls back to `this.dragDetail`\n       * @return {string|boolean} drop position class, or false when there is no drag item\n       */\n      dragOverItem(detail, dragItem) {\n        dragItem = dragItem || this.dragDetail;\n        const indexProp = this.indexProp;\n        if (!detail?.get || !dragItem?.get) {\n          this.set('dropPosition', '');\n          return false;\n        }\n        const dragIndex = dragItem.get(indexProp);\n        const onOverItemIndex = detail.get(indexProp);\n        let dropPosition = '';\n        if (dragIndex === onOverItemIndex) {\n          dropPosition = '';\n        } else if (dragIndex < onOverItemIndex) {\n          dropPosition = 'insert-below';\n        } else {\n          dropPosition = 'insert-above';\n        }\n        this.set('dropPosition', dropPosition);\n        return dropPosition;\n      },\n      /**\n       * Reorder the model's details to the dropped row.\n       * Skips when there is no matching drag-start (external file drop, stale target).\n       * @param {Object} detail - row the pointer dropped on\n       * @return {void}\n       */\n      reorderDetails(detail) {\n        const model = this.getModel();\n        const dragItem = this.dragDetail;\n        if (!model || !detail || !dragItem) {\n          return;\n        }\n        model.reorderDetails(detail, dragItem);\n      }\n    }\n  });\n});","define(\"client/mixins/sortable-details\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    sortOrderChanged: 0,\n    toSortProp: '_data.details',\n    sortArrayInstructions: null,\n    indexProp: '_data.index',\n    // to be overriden if sort prop is different to detail\n    toSortArray: Ember.computed('_data.details.@each.synced', 'synced', function () {\n      return this.get('_data.details');\n    }),\n    _detailsArray: Ember.computed('toSortArray.[]', 'synced', 'toSortProp', 'sortOrderChanged', '_data._rev', function () {\n      const toSortArray = this.toSortArray;\n      return R.pluck('_data', toSortArray);\n    }),\n    sorted: Ember.computed('_detailsArray.@each.{_key,_id,_rev}', 'synced', 'sortOrderChanged', 'sortArrayInstructions.[]', 'details', '_data.details', function () {\n      const detailsArray = this.toSortArray || [];\n      let sortArrayInstructions = this.sortArrayInstructions || [{\n        direction: 'ascend',\n        prop: this.indexProp\n      }];\n      if (!R.is(Array, sortArrayInstructions)) {\n        sortArrayInstructions = [sortArrayInstructions];\n      }\n      sortArrayInstructions = R.map(instructions => {\n        const pathArray = R.split('.', instructions.prop);\n        if (instructions.direction === 'descend') {\n          return R.descend(R.path(pathArray));\n        }\n        return R.ascend(R.path(pathArray));\n      })(sortArrayInstructions);\n      return R.sortWith(sortArrayInstructions)(detailsArray);\n    }),\n    lastIndex: Ember.computed('sorted.[]', function () {\n      const sorted = this.sorted || [];\n      return this._getLastIndex(sorted);\n    }),\n    _getLastIndex(details) {\n      const last = details.get('lastObject');\n      const indexProp = this.indexProp;\n      if (last) {\n        return parseInt(last.get(indexProp)) || 0;\n      }\n      return 0;\n    },\n    nextIndex: Ember.computed('sorted.[]', 'lastIndex', function () {\n      return this._getNextIndex();\n    }),\n    _getNextIndex(nextIndex) {\n      const indexProp = this.indexProp;\n      const sorted = this.sorted || [];\n      if (nextIndex) {\n        nextIndex = nextIndex + 1;\n      } else {\n        const lastIndex = this.lastIndex;\n        nextIndex = parseInt(lastIndex) + 1;\n        if (sorted.length > nextIndex) {\n          nextIndex = sorted.length;\n        }\n      }\n\n      // check if nextindex exists\n      const path = R.split('.', indexProp);\n      const exists = R.find(R.pathEq(path, nextIndex), sorted);\n      if (exists) {\n        nextIndex = this._getNextIndex(nextIndex);\n      }\n      return nextIndex;\n    },\n    moveDetailAbove(detail, fromIndex, toIndex) {\n      const indexProp = this.indexProp;\n      const currentIndex = detail.get(indexProp);\n      if (currentIndex >= toIndex && currentIndex < fromIndex) {\n        detail.set(indexProp, currentIndex + 1);\n        detail.set('changed', true);\n      }\n      if (currentIndex === fromIndex) {\n        detail.set(indexProp, toIndex);\n        detail.set('changed', true);\n      }\n      this.resetSortOrder();\n      return detail;\n    },\n    moveDetailBelow(detail, fromIndex, toIndex) {\n      const indexProp = this.indexProp;\n      const currentIndex = detail.get(indexProp);\n      detail.set('fromIndex', fromIndex);\n      if (currentIndex > fromIndex && currentIndex <= toIndex) {\n        detail.set(indexProp, currentIndex - 1);\n        detail.set('changed', true);\n      }\n      if (currentIndex === fromIndex) {\n        detail.set(indexProp, toIndex);\n        detail.set('changed', true);\n      }\n      this.resetSortOrder();\n      return detail;\n    },\n    resetSortOrder() {\n      this.set('sortOrderChanged', Math.random());\n      if (this.updateSynced) {\n        this.updateSynced();\n      }\n    },\n    resetIndexes() {\n      this.resetSortOrder();\n      let previousIndex;\n      const indexProp = this.indexProp;\n      const details = this.sorted || [];\n      let currentIndex = 0;\n      details.forEach(detail => {\n        if (detail._data.isSetChild) {\n          currentIndex = previousIndex || 1;\n        } else {\n          currentIndex = currentIndex + 1;\n        }\n        detail.set(indexProp, currentIndex);\n        previousIndex = currentIndex;\n      });\n      this.resetSortOrder();\n    },\n    /**\n     * Move dragItem to detail's index and mark changed rows.\n     * Returns an empty list without mutating when the drop has no matching drag-start.\n     * @param {Object} detail - row the pointer dropped on\n     * @param {string} [detail._data.index] - sort index used when indexProp is `_data.index`\n     * @param {Object} dragItem - row that was dragged\n     * @param {string} [dragItem._data.index] - sort index used when indexProp is `_data.index`\n     * @return {Object[]} details whose index changed\n     */\n    reorderDetails(detail, dragItem) {\n      if (!detail?.get || !dragItem?.get) {\n        return [];\n      }\n      const toSortProp = this.toSortProp;\n      const indexProp = this.indexProp;\n      const dragIndex = dragItem.get(indexProp);\n      const onOverItemIndex = detail.get(indexProp);\n      const details = this.get(toSortProp);\n      if (dragIndex === onOverItemIndex) {\n        // do nothing\n      } else if (dragIndex < onOverItemIndex) {\n        // move to below onOverItemIndex\n        this.set(toSortProp, details.map(detail => this.moveDetailBelow(detail, dragIndex, onOverItemIndex)));\n      } else {\n        // move to above onOverItemIndex\n        this.set(toSortProp, details.map(detail => this.moveDetailAbove(detail, dragIndex, onOverItemIndex)));\n      }\n      if (this.updateSynced) {\n        this.updateSynced();\n      }\n      if (this.sortDetails) {\n        this.sortDetails();\n      }\n      return R.filter(R.pathEq(['changed'], true))(details);\n    }\n  });\n});","define(\"client/mixins/statuses\", [\"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 = Ember.Mixin.create({\n    unknownStatusClass: 'is-danger',\n    addStatusClasses(param, key) {\n      this.set(`statusClasses.${param}`, key);\n    },\n    statusClass: Ember.computed('_data.status', function () {\n      const status = this.get('_data.status');\n      if (this.productsService) {\n        return this.productsService.getStatusClass(status);\n      }\n      return '';\n    }),\n    calculatedStatusClass: Ember.computed('_data.calculatedStatusBeforeCart', function () {\n      const calculatedStatusBeforeCart = this?._data?.calculatedStatusBeforeCart || '';\n      if (this.productsService) {\n        return this.productsService.getStatusClass(calculatedStatusBeforeCart);\n      }\n      return '';\n    }),\n    isActive: Ember.computed('_data.status', function () {\n      const status = this.get('_data.status');\n      if (status === this.get('constants.status.active')) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/mixins/store-location-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      adapterName,\n      appendPath,\n      match,\n      status,\n      query = '',\n      byLatest,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (status) {\n        if (!Ember.isArray(status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (byLatest) {\n        filters.setData('sort', [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    })\n\n    // actions: {\n    //   listByDate (onHideDropdown, dateZ, date) {\n    //     return this.get('listByTask').perform({ date, dateZ, resultsToggle: 'resultsToggle' }, onHideDropdown)\n    //   }\n    // }\n  });\n});","define(\"client/mixins/tabbable\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    getTabbable() {\n      return (0, _jquery.default)(this.element).find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]');\n    },\n    tabCycleForward(e) {\n      const tabbable = this.getTabbable();\n      if (document.activeElement === tabbable[tabbable.length - 1]) {\n        e.preventDefault();\n        this.$(tabbable[0]).focus();\n      }\n    },\n    tabCycleBackward(e) {\n      const tabbable = this.getTabbable();\n      if (document.activeElement === tabbable[0]) {\n        e.preventDefault();\n        this.$(tabbable[tabbable.length - 1]).focus();\n      }\n    }\n  });\n});","define(\"client/mixins/templates\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const self = {\n    replaceTemplate(template, templateImages = []) {\n      this.setData('template', template);\n      this.setData('templateImages', templateImages);\n    },\n    insertTemplate(template, templateImages = []) {\n      const currentTemplate = this.getData('template');\n      const currentTemplateImages = this.getData('templateImages') || [];\n      let newTemplate = '';\n      if (currentTemplate) {\n        newTemplate = `${currentTemplate}<br>`;\n      }\n      newTemplate = `${newTemplate} ${template}`;\n      const newTemplateImages = R.concat(currentTemplateImages, templateImages);\n      this.setData('template', newTemplate);\n      this.setData('templateImages', newTemplateImages);\n    }\n  };\n  var _default = _exports.default = Ember.Mixin.create(self);\n});","define(\"client/mixins/translate\", [\"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 = Ember.Mixin.create({\n    intl: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    translatePlaceholder: true,\n    translatedPlaceholder: Ember.computed('placeholder', 'translatePlaceholder', function () {\n      const placeholder = this.placeholder;\n      if (placeholder == null) {\n        return '';\n      }\n      if (!this.translatePlaceholder) {\n        return placeholder;\n      }\n      return this.intl.t(placeholder);\n    }),\n    shouldTranslateLabel(value, itemTranslate) {\n      return this.settings.shouldTranslateLabel(value, this.translate, itemTranslate);\n    }\n  });\n});","define(\"client/mixins/transporter-accounts\", [\"exports\", \"client/utils/nventor\"], function (_exports, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @deprecated\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    /**\n     * @deprecated\n     */\n    transporterAccounts: Ember.computed('transporter', function () {\n      return this.get('transporter._data.transporterAccounts') || [];\n    }),\n    /**\n     * @deprecated\n     */\n    defaultTransporterAccount: Ember.computed('transporterAccounts.[]', 'transporterAccounts.@each.synced', function () {\n      const defaultAccount = this.transporterAccounts.find(transporterAccount => transporterAccount?._data?.isDefault);\n      if (!defaultAccount) {\n        return _nventor.default.safeHeadOr({})(this.transporterAccounts);\n      }\n      return defaultAccount;\n    }),\n    /**\n     * @deprecated\n     */\n    defaultTransporterAccountNumber: Ember.computed('defaultTransporterAccount', function () {\n      return this.get('defaultTransporterAccount._data.account') || '';\n    })\n  });\n});","define(\"client/mixins/transporter\", [\"exports\", \"ramda\", \"client/mixins/crud\", \"client/mixins/search-contacts\", \"ember-concurrency\", \"ramda-extension\", \"client/utils/nventor\", \"ramda-adjunct\"], function (_exports, R, _crud, _searchContacts, _emberConcurrency, R_, _nventor, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _searchContacts.default, {\n    crud: Ember.inject.service(),\n    autoFetchTransportersList: true,\n    didInsertElement() {\n      if (this.autoFetchTransportersList) {\n        this.crud.addLists(this, ['contacts/transporters'], {\n          onAfter: this.afterLoadTransporters(this)\n        });\n      } else {\n        const transporters = R_.dotPath('crud.lists.contacts-transporters')(this) || [];\n        if (!R.isEmpty(transporters)) {\n          const model = this.dirty || this.model;\n          if (model) {\n            this.setSelectedTransporter(model);\n          }\n        }\n      }\n      this._super(...arguments);\n    },\n    afterLoadTransporters: R.curry((component, results) => {\n      if (!component?.isDestroyed) {\n        const transporters = R_.dotPath('crud.lists.contacts-transporters')(component) || [];\n        if (!R.isEmpty(transporters)) {\n          const model = component.dirty || component.model;\n          if (model) {\n            component.setSelectedTransporter(model);\n          }\n        }\n        component.set('listsIsLoaded', Math.random());\n      }\n    }),\n    transportersList: Ember.computed('listsIsLoaded', 'crud.lists.contacts-transporters.[]', 'externalTransportersList.[]', function () {\n      if (this.externalTransportersList) {\n        return this.externalTransportersList;\n      }\n      return R_.dotPath('crud.lists.contacts-transporters')(this) || [];\n    }),\n    findTransporterByKey(transporterKey) {\n      return this.transportersList.findBy('_data._key', transporterKey);\n    },\n    findTransporterByName(transporterName) {\n      return this.transportersList.findBy('_data.name', transporterName);\n    },\n    /**\n     * @param model\n     * @param transporter\n     * @deprecated\n     */\n    loadTransporter(model, transporter) {\n      const key = transporter.getData('_key');\n      model.setData('transporterKey', key);\n      if (RA.isNilOrEmpty(model.getData('packages'))) {\n        model.setData('packages', 1);\n      }\n      if (!this.isPickerOnly) {\n        model.setData('transporterExtension', transporter.getData('transporterExtension'));\n        const convenienceStoresList = [this.constants.transporterExtensions.sevenEleven, this.constants.transporterExtensions.payuniSevenEleven];\n        const isConvenienceStore = convenienceStoresList.includes(transporter.getData('transporterExtension'));\n        model.setData('isConvenienceStore', isConvenienceStore);\n        this.setSelectedTransporter(model);\n      }\n    },\n    // selectedTransporter: computed('updatedTransporter', 'model._data.transporterKey', 'dirty._data.transporterKey', 'transportersList.[]', function () {\n    //   console.log('====selectedTransporter===')\n    //   const model = this.get('dirty') || this.get('model')\n\n    //   const transporterKey = model.getData('transporterKey')\n\n    //   if (transporterKey) {\n    //     return this.findTransporterByKey(transporterKey)\n    //   }\n    //   return false\n    // }),\n\n    // transporterAccounts: computed('selectedTransporter', function () {\n    //   console.log('====transporterAccounts===')\n\n    //   return this.get('selectedTransporter._data.transporterAccounts') || []\n    // }),\n\n    setTransporterAccounts(transporter) {\n      // @TODO: not used?\n      let accounts = [];\n      if (transporter) {\n        accounts = transporter._data.transporterAccounts || [];\n      }\n      this.set('accounts', accounts);\n    },\n    setSelectedTransporter(model) {\n      const transporterKey = R.pathOr('', ['_data', 'transporterKey'])(model);\n      let transporter = false;\n      if (transporterKey) {\n        transporter = this.findTransporterByKey(transporterKey);\n      }\n      this.set('selectedTransporter', transporter);\n      this.setTransporterAccounts(transporter);\n    },\n    setTransporterDataWithDefaultPickupLocation(model, transporter) {\n      const pickupLocationList = transporter?.pickupLocationList ?? [];\n      if (RA.isNilOrEmpty(pickupLocationList)) {\n        return;\n      }\n\n      // just use first pickup location?\n      const defaultSenderModel = _nventor.default.safeHeadOr({}, pickupLocationList);\n      model.setData('transporterDefaultPickupLocationPersonId', defaultSenderModel.getData('personId'));\n      if (model?.setTransporterData) {\n        model.setTransporterData(transporter, defaultSenderModel);\n      }\n    },\n    // @TODO: remove side effects\n    unloadTransporter(model) {\n      model.setData('transporterKey', '');\n      if (!this.isPickerOnly) {\n        model.setData('transporterExtension', '');\n        model.setData('transporter', '');\n        model.setData('transporterBatchNumber', '');\n        model.setData('transporterBatchLabel', '');\n        model.setData('transporterAccountNumber', '');\n        model.setData('transporterAccount', '');\n        model.setData('transporterPreferredArrivalTimePeriod', '');\n        model.setData('transporterDeliveryTime', '');\n        model.setData('transporterPackageSize', '');\n        model.setData('transporterPackageType', '');\n        model.setData('transporterSenderAddress', '');\n        model.setData('transporterSenderTelephone', '');\n        model.setData('packages', '');\n        model.setData('transporterWeightRate', '');\n        model.setData('transporterRegion', '');\n        model.setData('transporterRegionIsOuter', '');\n        model.setData('person', '');\n        model.setData('transporterContactPhone', '');\n        this.setSelectedTransporter(model);\n      }\n    },\n    fetchTransporterTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      const transporterKey = model.getData('transporterKey');\n      if (transporterKey) {\n        const transporter = yield this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: transporterKey\n        });\n        this.loadTransporterAccounts(model, transporter);\n      }\n    }),\n    loadTransporterAccounts(model, transporter = {}) {\n      const transporterAccounts = transporter?._data?.transporterAccounts || [];\n      this.set('transporterAccounts', transporterAccounts);\n      if (!model.getData('transporterAccountNumber')) {\n        const setDefaultTransporterAccount = R.pipe(R.filter(account => account.getData('isDefault') === true), R.map(defaultAccount => {\n          model.setData('transporterAccount', defaultAccount.getData('name'));\n          model.setData('transporterAccountNumber', defaultAccount.getData('account'));\n        }));\n        setDefaultTransporterAccount(transporterAccounts);\n      }\n    },\n    // @TODO: setting/checking isHCT will not be used by all clients.\n    // @TODO: only should do this step if HCT module is in use.\n    // @TODO: how to use modules and also automation module functions?\n\n    fetchAndLoadTransporterForContactTask: (0, _emberConcurrency.task)(function* ({\n      contact,\n      model\n    }) {\n      const transporterKey = contact.getData('transporterKey');\n      const transporterLabel = contact.getData('transporterLabel');\n      if (transporterKey) {\n        const transporter = yield this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: transporterKey\n        });\n        if (transporter) {\n          model.setData('transporterLabel', transporter.getData('name'));\n          this.loadTransporter(model, transporter);\n          // model.setData('transporterExtension', transporter.getData('transporterExtension'))\n          // model.setData('transporterKey', transporterKey)\n          // this.set('selectedTransporter', transporter)\n        }\n      } else {\n        // this.set('selectedTransporter', '')\n        model.setData('transporterExtension', '');\n        model.setData('transporterLabel', transporterLabel);\n        model.setData('transporterKey', transporterKey);\n      }\n      this.setSelectedTransporter(model);\n    }),\n    actions: {\n      loadTransporter(model, transporter) {\n        return this.loadTransporter(model, transporter);\n      },\n      unloadTransporter(model) {\n        return this.unloadTransporter(model);\n      }\n    }\n  });\n});","define(\"client/mixins/uploads\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, R, RA, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    populate(data = {}) {\n      if (!this.isUploadsCollection) {\n        const uploadsCollection = R.propOr([], 'uploadsCollection', data);\n        let uploadsCollectionModel = {};\n        if (!_nventor.default.isNilOrEmpty(uploadsCollection)) {\n          uploadsCollectionModel = this.dataManager.mergeAndSetPartialRecord({\n            adapterName: 'uploads/collection',\n            data: uploadsCollection\n          });\n          delete data.uploadsCollection;\n        }\n        this.set('uploadsCollection', uploadsCollectionModel);\n      }\n      const uploads = R.propOr([], 'uploads')(data);\n      if (!R.isEmpty(uploads)) {\n        data.uploads = RA.mapIndexed((file, index) => {\n          if (RA.isNilOrEmpty(data.index)) {\n            data.index = index;\n          }\n\n          /*\n            Ignore upload with missing _id.\n            When _id is missing, the uploads are corrupted. By returning, empty the UI will render no image, and make it\n            easy to find the issue.\n          */\n          if (!file?._data?._id && !file?._id) {\n            return;\n          }\n          return this.dataManager.setPartialRecord({\n            adapterName: 'uploads',\n            data: file\n          });\n        })(uploads);\n      }\n      this._super(...arguments);\n    },\n    /**\n     * @deprecated\n     * */\n    defaultImage: Ember.computed('uploadsCollection._data.uploads.[]', '_data.{defaultImage,uploads.[]}', 'synced', function () {\n      // TODO: REMOVE AND IMPLEMENT ISSUE #420\n      // @TODO: should get default image from _data.uploads (the one with isDefault = true)\n      // this.get('_data.upload')\n      // filter..\n      // return is default one\n\n      if (this.get('_data.defaultImage')) {\n        return this.get('_data.defaultImage');\n      }\n      let uploadsCollection = this.get('uploadsCollection._data.uploads') || this.get('_data.uploads.[]');\n      uploadsCollection = uploadsCollection || [];\n      uploadsCollection = R.sortWith([R.ascend(R.path(['_data', 'timestampZ']))])(uploadsCollection);\n      return this.getFirstImage(uploadsCollection);\n    }),\n    getFirstImage(files = []) {\n      const allUploads = R.pipe(R.flatten, R.filter(R.pathEq(['_data', 'isImage'], true)), R.reject(_nventor.default.isNilOrEmpty))(files);\n      const firstImage = allUploads.get('firstObject');\n      if (firstImage) {\n        return R.pathOr(false, ['_data', 'uuid'], firstImage);\n      }\n      return false;\n    },\n    defaultImageUrl: Ember.computed('defaultImage', function () {\n      const defaultImage = this.defaultImage;\n      this.uploadcare.getFileUrl(defaultImage);\n    }),\n    getDefaultImageUrl(transform) {\n      const uuid = this.defaultImage;\n      return this.uploadcare.getFileUrl(uuid, transform);\n    }\n  });\n});","define(\"client/mixins/users-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      adapterName,\n      appendPath,\n      match,\n      status,\n      query = '',\n      byLatest,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (status) {\n        if (!Ember.isArray(status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (byLatest) {\n        filters.setData('sort', [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }, {\n          by: 'timestampZ_update',\n          direction: 'DESC'\n        }, {\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    })\n  });\n});","define(\"client/mixins/validator\", [\"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 = Ember.Mixin.create({\n\n    // validator: null,\n    //\n    // validate(model) {\n    //\n    //   this.get('validator')\n    //   this.set('originalValue', value);\n    // }\n  });\n});","define(\"client/modifiers/add-style\", [\"exports\", \"ember-modifier\", \"ramda\"], function (_exports, _emberModifier, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _emberModifier.modifier)(function addStyle(element, [style]) {\n    R.mapObjIndexed((value, key) => {\n      element.style[key] = value;\n    })(style);\n  });\n});","define(\"client/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 () {\n      return _didInsert.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _didUpdate.default;\n    }\n  });\n});","define(\"client/modifiers/guide-id\", [\"exports\", \"ember-modifier\", \"client/pods/documentation/guide-id\"], function (_exports, _emberModifier, _guideId) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Guide id for a role, prefixed with the nearest tab so each screen has its own.\n   * With no tab ancestor the role is the id, which is how app chrome such as a tab header is marked.\n   * @param {HTMLElement} element - element the modifier is on\n   * @param {string} role - role name, eg 'sidebar-left' or 'header'\n   * @return {string|undefined}\n   */\n  function guideIdForRole(element, role) {\n    if (!role) {\n      return undefined;\n    }\n    const tabValue = element.closest('[data-tabs-content]')?.dataset?.tabsContent;\n    if (!tabValue) {\n      return role;\n    }\n    return `${tabValue}-${role}`;\n  }\n\n  /**\n   * Set data-guide-id so a New Feature step can point at this element.\n   * An explicit id or the help documentation fields are used as written.\n   * A role is prefixed with the nearest tab value, eg role 'sidebar-left' on Dispatch becomes 'dispatch-sidebar-left'.\n   */\n  var _default = _exports.default = (0, _emberModifier.modifier)(function guideId(element, positional, named = {}) {\n    const [positionalId] = positional;\n    const explicitId = (0, _guideId.resolveGuideId)({\n      guideId: positionalId || named.guideId,\n      documentationId: named.documentationId,\n      documentationResource: named.documentationResource,\n      context: named.context\n    });\n    const id = explicitId || guideIdForRole(element, named.role);\n    if (!id) {\n      element.removeAttribute('data-guide-id');\n      return;\n    }\n    element.setAttribute('data-guide-id', id);\n  });\n});","define(\"client/modifiers/in-viewport\", [\"exports\", \"ember-in-viewport/modifiers/in-viewport\"], function (_exports, _inViewport) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inViewport.default;\n    }\n  });\n});","define(\"client/modifiers/on-resize\", [\"exports\", \"ember-on-resize-modifier/modifiers/on-resize\"], function (_exports, _onResize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _onResize.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _willDestroy.default;\n    }\n  });\n});","define(\"client/pods/admin/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/base/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/admin/extensions/apps/tw/e-invoices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/base/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin/extensions/apps/tw/e-invoices',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/admin/extensions/apps/tw/e-invoices/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/admin/extensions/apps/tw/e-invoices/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/extensions/apps/tw/e-invoices/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/admin/members/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin/members',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/members/lists/plans/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'free',\n        label: 'free',\n        fee: 0,\n        feeType: 'amount'\n      }, {\n        value: 'paid1',\n        label: 'paid 1',\n        fee: '1980',\n        feeType: 'amount'\n      }, {\n        value: 'paid2',\n        label: 'paid 2',\n        fee: '4990',\n        feeType: 'amount'\n      }, {\n        value: 'virtual0',\n        label: 'virtual 0',\n        fee: '0',\n        feeType: 'amount'\n      }, {\n        value: 'virtual1',\n        label: 'virtual 1',\n        fee: '300',\n        feeType: 'amount'\n      }, {\n        value: 'commission',\n        label: 'commission',\n        fee: '1',\n        feeType: 'rate'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/admin/payments/card/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin/payments/card',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/checkout-logs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/admin/payments/card/checkout-logs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin/checkout/logs',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/checkout-logs/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/admin/payments/card/checkout-logs/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/checkout-logs/filters/model\", [\"exports\", \"client/pods/filters/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class AdminPaymentsCardCheckoutLogsFiltersModel extends _model.default {\n    defaults() {\n      return {\n        resultsProperty: 'results',\n        page: 1,\n        count: 5,\n        podKey: '',\n        query: '',\n        match: ['all'],\n        statuses: [],\n        dateStart: '',\n        dateEnd: '',\n        abandoned: '',\n        contact: '',\n        contactKey: '',\n        paymentCreditCardStatus: [],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  }\n  _exports.default = AdminPaymentsCardCheckoutLogsFiltersModel;\n});","define(\"client/pods/admin/payments/card/checkout-logs/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class AdminPaymentsCardCheckoutLogsModel extends _model.default {\n    get status() {\n      const hasError = R.pipe(R.pathOr('', ['_data', 'error']), RA.isNotNilOrEmpty)(this);\n      if (hasError) {\n        return 'unsuccessful';\n      }\n      return 'successful';\n    }\n    get isSuccessful() {\n      return this.status === 'successful';\n    }\n    get totalStepsIndex() {\n      return R.pipe(R.pathOr([], ['_data', 'steps']), R.length, R.dec)(this);\n    }\n    get allQty() {\n      return R.pipe(R.pathOr([], ['_data', 'cartItems']), R.pluck('qty'), R.sum)(this);\n    }\n    get prettyErrorStack() {\n      return R.pipe(R.pathOr([], ['_data', 'steps']), R.last, R.pathOr('', ['error', 'stack']), R.split('\\n'), R.join('<br>'))(this);\n    }\n  }\n  _exports.default = AdminPaymentsCardCheckoutLogsModel;\n});","define(\"client/pods/admin/payments/card/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/admin/payments/card/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        resultsProperty: 'results',\n        page: 1,\n        count: 20,\n        podKey: '',\n        query: '',\n        match: ['all'],\n        statuses: [],\n        dateStart: '',\n        dateEnd: '',\n        abandoned: '',\n        contact: '',\n        contactKey: '',\n        paymentCreditCardStatus: [],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/admin/payments/card/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'email',\n        label: 'email'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'address',\n        label: 'address'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/admin/payments/card/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'timestampZ',\n        label: 'created date'\n      }, {\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'podKey',\n        label: 'company'\n      }, {\n        value: 'sourceKey',\n        label: 'shop'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'email',\n        label: 'email'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/admin/payments/card/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'isSuccessful',\n        label: 'successful'\n      }, {\n        value: 'isUnsuccessful',\n        label: 'unsuccessful'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/admin/payments/card/lists/panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'payments',\n        label: 'payments',\n        component: 'admin/payments/card/panels-payments'\n      }, {\n        value: 'refunds',\n        label: 'refunds',\n        component: 'admin/payments/card/panels-refunds'\n      }, {\n        value: 'abandoned',\n        label: 'abandoned',\n        component: 'admin/payments/card/panels-abandoned'\n      }, {\n        value: 'activity',\n        label: 'activity',\n        component: 'admin/payments/card/panels-activity'\n      }, {\n        value: 'checkoutLogs',\n        label: 'checkout logs',\n        component: 'admin/payments/card/panels-checkout-logs'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/admin/payments/card/server-logs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/admin/payments/card/server-logs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin/server/logs',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/server-logs/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/admin/payments/card/server-logs/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/server-logs/filters/model\", [\"exports\", \"client/pods/filters/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class AdminPaymentsCardServerLogsFiltersModel extends _model.default {\n    defaults() {\n      return {\n        resultsProperty: 'results',\n        page: 1,\n        count: 5,\n        podKey: '',\n        query: '',\n        match: ['all'],\n        statuses: [],\n        dateStart: '',\n        dateEnd: '',\n        abandoned: '',\n        contact: '',\n        contactKey: '',\n        paymentCreditCardStatus: [],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  }\n  _exports.default = AdminPaymentsCardServerLogsFiltersModel;\n});","define(\"client/pods/admin/payments/card/server-logs/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class AdminPaymentsCardServerLogsModel extends _model.default {\n    get start() {\n      return R.pathOr([''], ['_data', 'init'])(this);\n    }\n    get restart() {\n      return R.pathOr([''], ['_data', 'sigint'])(this);\n    }\n    get uncaughtException() {\n      return R.pathOr([''], ['_data', 'uncaughtException'])(this);\n    }\n    get unhandledRejection() {\n      return R.pathOr([''], ['_data', 'unhandledRejection'])(this);\n    }\n    get isStart() {\n      return R.pipe(R.pathOr([''], ['_data', 'type']), R.equals('init'))(this);\n    }\n    get isRestart() {\n      return R.pipe(R.pathOr([''], ['_data', 'type']), R.equals('sigint'))(this);\n    }\n    get isUncaughtException() {\n      return R.pipe(R.pathOr([''], ['_data', 'type']), R.equals('uncaughtException'))(this);\n    }\n    get isUnhandledRejection() {\n      return R.pipe(R.pathOr([''], ['_data', 'type']), R.equals('unhandledRejection'))(this);\n    }\n  }\n  _exports.default = AdminPaymentsCardServerLogsModel;\n});","define(\"client/pods/admin/payments/card/statements/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin/payments/card/statements',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/statements/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin/payments/card/statements/details',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/statements/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/admin/payments/card/statements/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/statements/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        dateStart: '',\n        dateEnd: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/admin/payments/card/temp/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin/payments/card/temp',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/admin/payments/card/transactions/filters/model\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/admin/pods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/base/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/admin/pods',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/admin/service\", [\"exports\", \"ember-concurrency\", \"client/mixins/date\", \"ramda\", \"ramda-extension\"], function (_exports, _emberConcurrency, _date, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Service.extend(_date.default, {\n    dataManager: Ember.inject.service(),\n    server: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    activePods: null,\n    connectAsAdminTask: (0, _emberConcurrency.task)(function* () {\n      const model = yield this.dataManager.findRecord({\n        adapterName: 'admin'\n      });\n      yield this.server.call('GET', 'api/protected/admin/connections');\n      return model;\n    }),\n    getAllActivePodsTask: (0, _emberConcurrency.task)(function* () {\n      const results = yield this.server.call('GET', 'api/protected/admin/pods', {});\n      if (this.activePods) {\n        return this.activePods;\n      }\n      const activePods = R.pipe(R_.dotPathOr([], 'data'), R.map(data => {\n        if (!data.relatedPods) {\n          data.relatedPods = [];\n        }\n        return Ember.Object.create({\n          _data: data\n        });\n      }))(results);\n      this.set('activePods', activePods);\n      return activePods;\n    }).drop()\n  });\n});","define(\"client/pods/ages/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '<17',\n        label: '<17'\n      }, {\n        value: '18-24',\n        label: '18-24'\n      }, {\n        value: '25-34',\n        label: '25-34'\n      }, {\n        value: '35-44',\n        label: '35-44'\n      }, {\n        value: '45-54',\n        label: '45-54'\n      }, {\n        value: '55-64',\n        label: '55-64'\n      }, {\n        value: '>65',\n        label: '>65'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/ajax/service\", [\"exports\", \"client/utils/nventor\", \"client/config/environment\", \"jquery\"], function (_exports, _nventor, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { isArray } from '@ember/array'\n\n  // Reduce a request URL to a low-cardinality endpoint so Sentry can group\n  // failures by endpoint + status instead of collapsing every failed request\n  // into a single generic 'error occurred' issue. Dynamic segments (numeric\n  // ids, uuids, long keys) are replaced with ':id' to keep the value stable\n  // across requests that hit the same logical endpoint.\n  function normalizeEndpoint(url) {\n    if (!url) {\n      return 'unknown';\n    }\n    let pathname = url;\n    try {\n      pathname = new URL(url, window.location.origin).pathname;\n    } catch (parseError) {\n      // url was already a bare path with no origin — keep it as-is\n    }\n    const replaceDynamicSegment = segment => {\n      const isNumericId = /^[0-9]+$/.test(segment);\n      const isUuid = /^[0-9a-f]{8}-[0-9a-f]{4}/i.test(segment);\n      // A long segment is only treated as a key when it isn't a plain word —\n      // i.e. it contains a digit or other non-alpha character. This keeps long\n      // static segments like 'editor-custom-checkout-fields' intact so distinct\n      // endpoints don't get collapsed together.\n      const isLongKey = segment.length >= 20 && !/^[a-z_-]+$/i.test(segment);\n      return isNumericId || isUuid || isLongKey ? ':id' : segment;\n    };\n    return pathname.split('/').map(replaceDynamicSegment).join('/');\n  }\n\n  // crypto.randomUUID() only exists in secure contexts (HTTPS, or the literal\n  // host 'localhost'). Dev servers accessed over plain HTTP via a LAN/Tailscale\n  // hostname lose that API entirely, which threw here and silently killed every\n  // request before it reached the network. This id is only used for request\n  // tracing/Sentry correlation, so a non-cryptographic fallback is fine.\n  function generateRequestId() {\n    try {\n      return crypto.randomUUID();\n    } catch (error) {\n      console.warn('crypto.randomUUID() is not available, falling back to a non-cryptographic UUID generator');\n      return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, char => {\n        const random = Math.random() * 16 | 0;\n        return (char === 'x' ? random : random & 0x3 | 0x8).toString(16);\n      });\n    }\n  }\n  var _default = _exports.default = Ember.Service.extend({\n    guests: Ember.inject.service(),\n    auth: Ember.inject.service(),\n    storage: Ember.inject.service(),\n    router: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    server: Ember.inject.service(),\n    dataManager: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    socket: Ember.inject.service(),\n    requestId: '',\n    // Concurrent merchant 401s must logout once and not reject (no catch on fetchSettingsTask)\n    _loggingOutOnUnauthorized: false,\n    // Shared in-flight session probe for a merchant-401 burst (at most one GET)\n    _sessionProbePromise: null,\n    GET(url, data, token, hasToken = true) {\n      return this._ajax('GET', url, {\n        data,\n        token,\n        hasToken\n      });\n    },\n    POST(url, data, token, hasToken = true) {\n      data = JSON.stringify(data);\n      const config = {\n        // contentType: 'application/vnd.bigordr.v1+json; charset=utf-8'\n        contentType: 'application/json; charset=utf-8'\n      };\n      return this._ajax('POST', url, {\n        data,\n        config,\n        token,\n        hasToken\n      });\n    },\n    PUT(url, data, token, hasToken = true) {\n      data = JSON.stringify(data);\n      const config = {\n        contentType: 'application/json; charset=utf-8'\n      };\n      return this._ajax('PUT', url, {\n        data,\n        config,\n        token,\n        hasToken\n      });\n    },\n    PATCH(url, data, token, hasToken = true) {\n      data = JSON.stringify(data);\n      const config = {\n        contentType: 'application/json; charset=utf-8'\n      };\n      return this._ajax('PATCH', url, {\n        data,\n        config,\n        token,\n        hasToken\n      });\n    },\n    DELETE(url, data, token, hasToken = true) {\n      const key = _nventor.default.confirm.get(data, '_key');\n      if (key) {\n        url = url + '/' + key;\n      }\n\n      // always stringify data when sending to Server\n      data = JSON.stringify(data);\n      const config = {\n        contentType: 'application/json; charset=utf-8'\n      };\n      return this._ajax('DELETE', url, {\n        data,\n        config,\n        token,\n        hasToken\n      });\n    },\n    /**\n     * Raw GET /api/protected/settings so a probe 401 cannot recurse into the logout branch.\n     * Shares one in-flight probe across a merchant-401 burst.\n     */\n    _awaitMerchantSessionProbe(token) {\n      if (this._sessionProbePromise) {\n        return this._sessionProbePromise;\n      }\n      const locale = this.intl.get('locale')[0] || 'zh_TW';\n      const requestId = generateRequestId();\n      const probeUrl = `${this.server.host}/api/protected/settings`;\n      const probeRequest = new Ember.RSVP.Promise(resolve => {\n        _jquery.default.ajax({\n          type: 'GET',\n          url: probeUrl,\n          beforeSend: request => {\n            request.setRequestHeader('Accept-Language', locale);\n            request.setRequestHeader('x-request-id', requestId);\n            request.setRequestHeader('Authorization', 'Bearer ' + token);\n            const socketId = this.socket?.get('socketId');\n            if (socketId) {\n              request.setRequestHeader('x-socket-id', socketId);\n            }\n          }\n        }).done((_response, _textStatus, res) => {\n          resolve(res?.status || 200);\n        }).fail(jqXHR => {\n          resolve(jqXHR?.status || 0);\n        });\n      });\n      this._sessionProbePromise = probeRequest.then(probeHttpStatus => {\n        const sessionIsDead = probeHttpStatus === 401 || probeHttpStatus === 0;\n        if (sessionIsDead) {\n          this._loggingOutOnUnauthorized = true;\n          this.auth.logout(true);\n          return false;\n        }\n        return true;\n      }).finally(() => {\n        this._sessionProbePromise = null;\n      });\n      return this._sessionProbePromise;\n    },\n    _ajax(method, url, {\n      data,\n      config,\n      token = false,\n      hasToken = true\n    } = {}) {\n      const requestId = generateRequestId();\n      this.set('requestId', requestId);\n\n      // jshint unused: false\n      const self = this;\n      if (self.guests.isGuest) {\n        token = self.get('guests').getToken();\n      } else {\n        token = token || self.get('storage').get('token');\n      }\n\n      // Guests only ever hold a guest token, so any api/protected/* request is\n      // guaranteed to 401. Short-circuit before hitting the network and reject\n      // with the standard AjaxError shape (same as the 'not connected' path\n      // below). The message is listed in ignoreErrors in app/app.js so this\n      // expected, self-inflicted rejection never reaches Sentry. The real fix for\n      // any caller that trips this is an isGuest guard at that call site, but this\n      // keeps a guest's generic-component leaks from firing doomed requests or\n      // polluting Sentry.\n      const isProtectedEndpoint = url && /\\/api\\/protected\\//.test(url);\n      if (self.guests?.isGuest && isProtectedEndpoint) {\n        const error = new Error('guest blocked protected request');\n        error.name = 'AjaxError';\n        error.data = 'guest blocked protected request';\n        error.httpStatus = 401;\n        error.method = method;\n        error.endpoint = normalizeEndpoint(url);\n        error.requestId = requestId;\n        return Ember.RSVP.Promise.reject(error);\n      }\n      const locale = this.intl.get('locale')[0] || 'zh_TW';\n      if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n        console.log('>>>>>>>>AJAX CALL>>>>>>>');\n        console.log('path: ' + url);\n        console.log('method:' + method);\n        console.log('data:');\n        console.log(typeof data);\n        console.log(data);\n        console.log('token');\n        console.log(token);\n        console.log('----------');\n      }\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        config = config || {};\n        config.timeout = 0;\n        config.async = true;\n        config.type = method;\n        config.url = url;\n        config.data = data;\n        config.beforeSend = function (request, options) {\n          // @NOTE: cannot test\n          // console.log('check for token');\n          // console.log(self.attr.token);\n\n          // console.log('---SENDING TOKEN---');\n          // console.log(token);\n\n          request.setRequestHeader('Accept-Language', locale);\n          request.setRequestHeader('x-request-id', requestId);\n\n          // Identify this tab's socket connection so the API can broadcast a\n          // response back to only this tab (broadcaster.toInitiator on the API).\n          // Absent before the socket has connected or for guests.\n          const socketId = self.socket?.get('socketId');\n          if (socketId) {\n            request.setRequestHeader('x-socket-id', socketId);\n          }\n          if (token && hasToken) {\n            request.setRequestHeader('Authorization', 'Bearer ' + token);\n          }\n        };\n        return _jquery.default.ajax(config).done((response, textStatus, res) => {\n          // @TODO: start process and other things here\n          // console.log('*******Response*******')\n          // console.log(response)\n          // console.log('......................')\n          if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n            console.log('====response====');\n            console.log(response);\n          }\n\n          // if (response.autoExtendedToken) {\n          //   const autoExtendedToken = response.autoExtendedToken\n          //   this.auth.setAutoExtendedToken(autoExtendedToken)\n          //   delete response.autoExtendedToken\n          // }\n\n          return resolve(response);\n          // return response;\n        }).fail(async (jqXHR, textStatus, errorThrown) => {\n          const httpStatus = jqXHR.status;\n\n          // Handle error when data exceeds the limit\n          const isPayloadOverLimit = httpStatus === 413;\n          if (isPayloadOverLimit) {\n            const message = this.intl.t('data exceeds its size limit. cannot save');\n            alert(message);\n          }\n          if (httpStatus === 0) {\n            // Same shape as the AjaxError built below, so downstream handlers\n            // see consistent metadata. (This error is dropped before Sentry by\n            // the 'not connected' ignoreErrors rule, so it's for callers only.)\n            const error = new Error('not connected');\n            error.name = 'AjaxError';\n            error.data = 'not connected';\n            error.httpStatus = httpStatus;\n            error.method = method;\n            error.endpoint = normalizeEndpoint(url);\n            error.requestId = requestId;\n            return reject(error);\n          }\n\n          // Merchant 401: probe the session once before logging out. Resource /\n          // ACL-shaped 401s must not end a still-valid JWT session. Only when\n          // this request sent the merchant token — external callOuter /\n          // Uploadcare 401s must reject without ending the ERP session. Guest\n          // and login 401s also fall through so callers can show the error.\n          // After a true session-expiry logout, swallow the rest of the burst\n          // (do not reject — fetchSettingsTask has no catch).\n          if (httpStatus === 401 && hasToken && !this.guests?.isGuest) {\n            if (this._loggingOutOnUnauthorized) {\n              return;\n            }\n            if (this.auth?.isLoggedIn) {\n              const sessionStillAlive = await this._awaitMerchantSessionProbe(token);\n              if (!sessionStillAlive) {\n                return;\n              }\n            }\n          }\n          const err = jqXHR.responseJSON;\n\n          // console.log('*******ERROR Response*******');\n          // console.log(err);\n          // // console.log(err.message);\n          // // console.log(err.data);\n          // console.log('......................');\n\n          const msg = _nventor.default.confirm.get(err, 'message', 'error occurred');\n          const errData = _nventor.default.confirm.get(err, 'data', 'error occurred');\n          const errorMessage = err?.data?.error;\n          if (errorMessage) {\n            const translate = err?.data?.translate === true;\n            if (translate) {\n              window.alert(this.intl.t(errorMessage));\n            } else {\n              window.alert(errorMessage);\n            }\n          }\n          // console.log('========error details=======');\n          // console.log(details);\n          // console.log('>>>>>>>>>>>>>>>>>>>>>>');\n\n          // reject(nventor.error(msg, details));\n          // reject(details);\n\n          // Build an Error that carries enough request context for Sentry to\n          // group failures by endpoint + status instead of collapsing every\n          // failed request into one generic 'error occurred' issue. These props\n          // are read back in the Sentry `beforeSend` hook in app/app.js to set\n          // the fingerprint, tags, and extra context. Passing the message into\n          // the constructor (rather than assigning it after) also captures the\n          // stack at the throw site and gives the event a meaningful title.\n          // The name becomes the title prefix in Sentry: 'AjaxError: <message>'\n          // instead of a generic 'Error: …', so failures are easy to scan and\n          // group by type alongside the endpoint/status fingerprint.\n          const error = new Error(msg || 'error occurred');\n          error.name = 'AjaxError';\n          error.data = errData || 'error occurred';\n          error.httpStatus = httpStatus;\n          error.method = method;\n          error.endpoint = normalizeEndpoint(url);\n          error.requestId = requestId;\n          error.responseData = err;\n          if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n            console.log('>>>>>>>>>>>>>ERRRRRR>>>>>>>>>>');\n            console.log(jqXHR);\n            console.log(textStatus);\n            console.log(errorThrown);\n          }\n          reject(error);\n          // throw new Error();\n        });\n      });\n    }\n  });\n});","define(\"client/pods/application-loading/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hSt9Z+v4\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[true]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/application-loading/template.hbs\"\n    }\n  });\n});","define(\"client/pods/application/change-logs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/change-logs',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/application/lists/main/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/application/lists/main/model\", \"ramda-adjunct\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    settings: Ember.inject.service(),\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    async findAll(options) {\n      const data = await this._super(...arguments);\n      const apps = this.settings.settingsModel?._data?.features?.apps;\n      if (RA.isNilOrEmpty(apps)) {\n        return data;\n      }\n      const defaultSubData = {\n        resource: '/api/protected/app',\n        // @TODO: change to apps\n        component: 'apps/tab-container',\n        disallowPin: true,\n        translate: false\n      };\n      const appsSubData = R.map(app => {\n        return R.mergeRight(defaultSubData)(app);\n      })(apps);\n      const appsMenuData = {\n        label: 'extensions',\n        value: 'extensions',\n        pinLabel: 'extensions',\n        isExpanded: false,\n        icon: 'fas fa-toolbox',\n        disallowPin: true,\n        sub: appsSubData\n      };\n      data.push(appsMenuData);\n      return data;\n    }\n  });\n});","define(\"client/pods/application/lists/main/groups-sub/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/application/lists/main/model\", [\"exports\", \"client/pods/base/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    populate(data, attrs) {\n      data.groups = this._transformGroups(data.groups);\n      data.sub = this._transformSub(data.sub);\n      this._super(...arguments);\n    },\n    _transformGroups(groups = []) {\n      return groups.map(group => {\n        return group.map(data => {\n          data.sub = this._transformSubNested(data.sub);\n          return this.dataManager.setPartialRecord({\n            adapterName: 'application/lists/main/groups-sub',\n            data\n          });\n        });\n      });\n    },\n    _transformSub(sub = []) {\n      return sub.map(data => {\n        data.groups = this._transformGroups(data.groups);\n        data.sub = this._transformSubNested(data.sub);\n        return this.dataManager.setPartialRecord({\n          adapterName: 'application/lists/main/groups-sub',\n          data\n        });\n      });\n    },\n    _transformSubNested(sub = []) {\n      return sub.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'application/lists/main/groups-sub',\n          data\n        });\n      });\n    }\n  });\n});","define(\"client/pods/application/lists/progress/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\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 ApplicationListsProgressAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"resourcePath\", 'api/protected/app/lists/wizards');\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", false);\n    }\n    findAll() {\n      const data = [{\n        value: 'unfinished',\n        label: 'is finished'\n      }, {\n        value: 'isFinished',\n        label: 'is finished'\n      }, {\n        value: 'all',\n        label: 'all'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  }\n  _exports.default = ApplicationListsProgressAdapter;\n});","define(\"client/pods/application/lists/wizards/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/application/lists/wizards/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\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 ApplicationListsWizardsAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"resourcePath\", 'api/protected/app/lists/wizards');\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", false);\n    }\n    async afterFindAll(dataArray = []) {\n      return R.map(data => {\n        const adapterName = data?.adapterName ?? 'application/lists/wizards';\n        return this.dataManager.setAsRecord({\n          adapterName,\n          data\n        });\n      })(dataArray);\n    }\n  }\n  _exports.default = ApplicationListsWizardsAdapter;\n});","define(\"client/pods/application/lists/wizards/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, _ramda) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ApplicationListsWizardsModel extends _model.default {\n    populate(data = {}, attrs) {\n      data.help = this._transformHelp(data);\n      super.populate(data, attrs);\n    }\n    get isAllStepsFinished() {\n      return false;\n    }\n    _transformHelp(data) {\n      return _ramda.default.pipe(_ramda.default.propOr([], 'help'), _ramda.default.map(help => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'documentation',\n          data: help\n        });\n      }))(data);\n    }\n  }\n  _exports.default = ApplicationListsWizardsModel;\n});","define(\"client/pods/application/route\", [\"exports\", \"client/config/environment\", \"ramda\"], function (_exports, _environment, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Route.extend({\n    // inject ember intl service\n    intl: Ember.inject.service(),\n    server: Ember.inject.service(),\n    storage: Ember.inject.service(),\n    uploadcare: Ember.inject.service(),\n    applicationService: Ember.inject.service('application'),\n    lastErrorMsgs: [],\n    beforeModel: function () {\n      // Handler Redirect with params\n      // Example: response may be in query string or fragment\n      function parseQuery(qs) {\n        const params = new URLSearchParams(qs.replace(/^\\?/, ''));\n        const out = {};\n        for (const [k, v] of params.entries()) out[k] = v;\n        return out;\n      }\n      // Read from either search or hash\n      const data = window.location.search ? parseQuery(window.location.search) : parseQuery(window.location.hash.replace(/^#/, '?'));\n      // Send to opener\n      if (window.opener && !window.opener.closed && data?.opener) {\n        // specify targetOrigin for security; use opener origin if known\n        window.opener.postMessage({\n          source: data?.opener,\n          payload: data\n        }, window.location.origin);\n        // close the popup\n        window.close();\n      }\n\n      // add script\n      this.setupScript();\n      this.applicationService.setupReloadOnHistoryTraversal();\n      (() => {\n        const self = this;\n        window.addEventListener('error', function (evt) {\n          console.log('Caught[via \\'error\\' event]:  \\'' + evt.message + '\\' from ' + evt.filename + ':' + evt.lineno);\n          console.log(evt); // has srcElement / target / etc\n          if (_environment.default.environment === 'production' || _environment.default.environment === 'staging') {\n            const error = {\n              from: 'bigordr-app',\n              filename: evt.filename,\n              lineno: evt.lineno,\n              error: evt.message,\n              stack: evt?.error?.stack || ''\n            };\n            const previousErrorMessages = self.get('lastErrorMsgs') || [];\n            const currentErrorMsg = `${evt.filename}_${evt.lineno}`;\n            if (!R.includes(currentErrorMsg)(previousErrorMessages)) {\n              previousErrorMessages.pushObject(currentErrorMsg);\n              self.set('lastErrorMsgs', previousErrorMessages);\n              self.server.logError({\n                error\n              });\n            }\n            evt.preventDefault();\n\n            // const msg = self.intl.t('encountered unknown error')\n            // window.alert(msg)\n          }\n        });\n      })();\n\n      // set locale\n      // @TODO: set locale dynamically based on url/location\n      // let preferredLanguage = this.get('storage').get('preferredLanguage')\n\n      // if (!preferredLanguage) {\n      const preferredLanguage = 'zh-tw';\n      // }\n\n      // this.get('storage').set('preferredLanguage', preferredLanguage)\n      document.getElementById('initial-spinner').classList.remove('is-visible');\n      return this.intl.setLocale(preferredLanguage);\n    },\n    setupScript() {\n      // Setup CKEDITOR\n      // add script\n      const ckeditor = 'https://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.21.0/ckeditor.js';\n      const ckeditorAlternative = 'https://cdn.jsdelivr.net/npm/ckeditor4@4.21.0/ckeditor.js';\n      this.applicationService.addScript.perform(ckeditor, {\n        alternativeUrls: [ckeditorAlternative]\n      });\n    }\n  });\n});","define(\"client/pods/application/service\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"client/config/environment\"], function (_exports, R, RA, _nventor, _emberConcurrencyDecorators, _emberConcurrency, _environment) {\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, _dec0, _dec1, _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, _dec40, _dec41, _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 stickyRowSelector = '.is-sticky-row, .is-sticky-row-auto, .is-fixed-row-auto, .is-fixed-row';\n  let ApplicationService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _dec31 = Ember._action, _dec32 = Ember._action, _dec33 = Ember._action, _dec34 = Ember._action, _dec35 = Ember._action, _dec36 = Ember._action, _dec37 = Ember._action, _dec38 = Ember._action, _dec39 = Ember._action, _dec40 = Ember._action, _dec41 = Ember._action, _class = class ApplicationService extends Ember.Service {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isMobile\", _descriptor5, this);\n      _initializerDefineProperty(this, \"documentationIsMinimized\", _descriptor6, this);\n      _initializerDefineProperty(this, \"eventPosition\", _descriptor7, this);\n      _defineProperty(this, \"betaMessage\", 'we have new features. dispatch is now faster and easier. before we move you over, we want to give you time to get familiar with the new way. do you want to try them out now?');\n      _defineProperty(this, \"_splitBy\", R.curry((char, data) => {\n        return R.pipe(R.split(char), R.map(R.trim), R.reject(_nventor.default.isNilOrEmpty))(data);\n      }));\n      const host = window.location.hostname;\n      const isBetaHost = host.startsWith('beta.bigordr.com');\n      this.isBetaMode = _environment.default.APP.isBetaMode || isBetaHost;\n      this.checkIsMobile();\n      window.appName = _environment.default.appName;\n    }\n\n    /**\n     * Whether this pod may offer the beta login.\n     * Staging tests the current app, so the offer stays off there.\n     *\n     * @returns {boolean}\n     */\n    get hasBetaAvailable() {\n      if (_environment.default.environment === 'staging') {\n        return false;\n      }\n\n      // Consume settings so the prompt updates after load/save. Do not write a\n      // tracked flag from setupTask: that re-render runs during logged-in boot.\n      this.settings.settingsModel?.synced;\n      return this.settings.isBetaAllowed('beta.hasBetaLogin') === true;\n    }\n\n    /**\n     * Load Resource Asynchronously\n     * @param {String} id - Resource Id.\n     * @param {String} src - Resource Source | URL | URI\n     * @param {Document} d - DOM document.\n     * @param {String} s - Type Script as default.\n     * */\n    loadAsyncResource(id, src, d, s = 'script', options = {}) {\n      const asyncJs = d.getElementsByTagName(s)[0];\n      if (d.getElementById(id)) {\n        if (options.onload) {\n          options.onload(asyncJs);\n        }\n        return asyncJs;\n      }\n      const js = d.createElement(s);\n      if (options.onload) {\n        js.onload = options.onload;\n      }\n      js.id = id;\n      js.src = src;\n      asyncJs.parentNode.insertBefore(js, asyncJs);\n      return js;\n    }\n    trackMouseEventPosition(event) {\n      if (!event) {\n        return;\n      }\n      if (!event?.clientX) {\n        return;\n      }\n      if (!event?.clientY) {\n        return;\n      }\n      const now = this.dateService.getMoment();\n      const expiry = now.add(1, 'seconds');\n      this.eventPosition = {\n        expiry,\n        x: event?.clientX,\n        y: event?.clientY\n      };\n    }\n    getMouseEventPosition() {\n      const now = this.dateService.getMoment();\n      const eventPosition = this.eventPosition || {};\n      if (RA.isNilOrEmpty(eventPosition)) {\n        return {};\n      }\n      const expiry = eventPosition.expiry;\n      if (now.isAfter(expiry)) {\n        return {};\n      }\n      return eventPosition;\n    }\n\n    /**\n     * a wrapper to add onAfter to a function\n     *\n     * @param {Object} options\n     * @param {Function} options.func The function to be wrapped.\n     * @param {Function} [options.onAfter] The function to be executed after the wrapped function.\n     * @param {...*} args The arguments to be passed to the wrapped function.\n     */\n    addOnAfter({\n      func,\n      onAfter\n    }, ...args) {\n      const response = func(...args);\n      if (onAfter) {\n        onAfter(response);\n      }\n      return response;\n    }\n\n    /**\n     * a wrapper to add onAfter to a task\n     *\n     * @param {Object} options\n     * @param {Function} options.func The function to be wrapped.\n     * @param {Function} [options.onAfter] The function to be executed after the wrapped function.\n     * @param {...*} args The arguments to be passed to the wrapped function.\n     */\n    *addOnAfterTask({\n      func,\n      onAfter\n    }, ...args) {\n      const response = yield func(...args);\n      if (onAfter) {\n        onAfter(response);\n      }\n      return response;\n    }\n    addOnBefore({\n      func,\n      onBefore\n    }, ...args) {\n      if (onBefore) {\n        onBefore();\n      }\n      const response = func(...args);\n      return response;\n    }\n    *addOnBeforeTask({\n      func,\n      onBefore\n    }, ...args) {\n      let argsCopy = args;\n      if (onBefore) {\n        argsCopy = onBefore(...args);\n      }\n      argsCopy = RA.ensureArray(argsCopy);\n      const response = yield func(...argsCopy);\n      return response;\n    }\n    stubFunction() {}\n    checkIsMobile() {\n      let isMobile = false;\n      if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n        isMobile = true;\n      } else {\n        isMobile = false;\n        // if (width <= 1024) {\n        //   isMobile = true\n        // } else {\n        //   isMobile = false\n        // }\n      }\n      Ember.set(this, 'isMobile', isMobile);\n    }\n\n    /**\n     * iOS Safari stops showing alert/confirm/prompt once the page has navigated\n     * back to a pushState entry (the swipe-back gesture), and confirm() then\n     * returns false silently. A fresh document resets that, so on iOS a\n     * traversal to one of the app's own history entries reloads the page.\n     *\n     * Only entries the app created count: Ember's history location stamps\n     * every entry it pushes or replaces with a state object, while a fragment\n     * navigation (a tap on an <a href='#'> link) creates an entry whose state\n     * is null and also fires popstate.\n     * @param {Object} [options]\n     * @param {Object} [options.navigatorLike=navigator] - overridable for tests\n     * @param {Object} [options.windowLike=globalThis] - overridable for tests\n     */\n    setupReloadOnHistoryTraversal({\n      navigatorLike = navigator,\n      windowLike = globalThis\n    } = {}) {\n      if (!this.isIosDevice(navigatorLike)) {\n        return;\n      }\n      windowLike.addEventListener('popstate', event => {\n        const isFragmentNavigation = event?.state === null || event?.state === undefined;\n        if (isFragmentNavigation) {\n          return;\n        }\n        windowLike.location.reload();\n      });\n    }\n\n    /**\n     * iPadOS reports itself as a Mac, so a touch-capable Mac counts as iOS.\n     * @param {Object} navigatorLike - userAgent, platform and maxTouchPoints\n     * @returns {boolean}\n     */\n    isIosDevice(navigatorLike) {\n      const isIphoneOrIpad = /iPhone|iPad|iPod/i.test(navigatorLike?.userAgent || '');\n      const isIpadWithDesktopUserAgent = navigatorLike?.platform === 'MacIntel' && navigatorLike?.maxTouchPoints > 1;\n      return isIphoneOrIpad || isIpadWithDesktopUserAgent;\n    }\n    *resizeTask({\n      contentRect: {\n        width,\n        height\n      }\n    }) {\n      const DEBOUNCE_MS = 500;\n      yield (0, _emberConcurrency.timeout)(DEBOUNCE_MS);\n      this.checkIsMobile();\n      if (width <= 1245) {\n        this.documentationIsMinimized = true;\n      } else {\n        this.documentationIsMinimized = false;\n      }\n    }\n    splitToArray(data = '') {\n      if (data == null) {\n        return '';\n      }\n      return R.pipe(R.trim, R.replace(/,/g, ' '), R.replace(/\\n/g, ' '), this._splitBy(' '))(data);\n    }\n    joinAsString(data = []) {\n      return R.pipe(_nventor.default.convertToArray, R.join('\\n'))(data);\n    }\n    copyText(text = '', onAfter) {\n      const el = document.createElement('textarea');\n      el.value = text;\n      el.setAttribute('readonly', '');\n      el.style.position = 'absolute';\n      el.style.left = '-9999px';\n      document.body.appendChild(el);\n      el.select();\n      document.execCommand('copy');\n      document.body.removeChild(el);\n      if (onAfter) {\n        onAfter();\n      }\n    }\n    copyModelData(model) {\n      const data = model.serialize();\n      const dataString = JSON.stringify(data);\n      this.copyText(dataString);\n      return data;\n    }\n    copyAllModelData(models) {\n      let dataStrings = R.map(model => {\n        return model.serialize();\n      })(models);\n      dataStrings = JSON.stringify(dataStrings);\n      this.copyText(dataStrings);\n      return dataStrings;\n    }\n    processMenu({\n      allowed = [],\n      allPinned = [],\n      onlyPinned = false\n    }) {\n      const isSidebarMenuBetaAllowed = menu => {\n        const label = menu?._data?.label;\n        const value = menu?._data?.value;\n        const isBillingManagement = value === 'billing' || label === 'billing management';\n        if (isBillingManagement) {\n          return this.settings.isBetaAllowed('beta.billing') === true;\n        }\n        const betaPath = menu?._data?.beta;\n        if (RA.isNilOrEmpty(betaPath)) {\n          return true;\n        }\n        return this.settings.isBetaAllowed(betaPath) === true;\n      };\n      allowed = R.filter(isSidebarMenuBetaAllowed)(allowed);\n      const setIsPinned = ({\n        allPinned,\n        menu\n      }) => {\n        let isPinned = false;\n        let pinnedKey = false;\n        const menuLabel = R.pathOr('', ['_data', 'pinLabel'])(menu);\n        const pinnedItem = R.find(R.pathEq(['_data', 'pinLabel'], menuLabel))(allPinned);\n        const pinnedItemIndex = R.findIndex(R.pathEq(['_data', 'pinLabel'], menuLabel))(allPinned);\n        if (pinnedItem) {\n          isPinned = true;\n          pinnedKey = pinnedItem.getData('_key');\n          const isFinished = pinnedItem.getData('isFinished');\n          if (typeof isFinished === 'boolean') {\n            menu.setData('isFinished', isFinished);\n          }\n          if (onlyPinned) {\n            const id = pinnedItem.getData('_id');\n            const copy = this.dataManager.copyRecord('users/personal-menu', menu);\n            copy.setData('_id', id);\n            copy.setData('_key', pinnedKey);\n            copy.setData('isPinned', true);\n            copy.setData('pinnedItem', null);\n            copy.setData('isExpanded', false);\n            allPinned.replace(pinnedItemIndex, 1, [copy]);\n          } else {\n            menu.set('pinnedItem', pinnedItem);\n          }\n        }\n        menu.setData('_key', pinnedKey);\n        menu.setData('isPinned', isPinned);\n        return menu;\n      };\n      const allowedMenu = R.map(menu => {\n        setIsPinned({\n          menu,\n          allPinned\n        });\n        const groups = R.pipe(R.pathOr([], ['_data', 'groups']), R.map(group => {\n          return R.map(groupMenu => {\n            const sub = R.pipe(R.pathOr([], ['_data', 'sub']), R.map(subMenu => {\n              return setIsPinned({\n                menu: subMenu,\n                allPinned\n              });\n            }))(groupMenu);\n            groupMenu.setData('sub', sub);\n            return setIsPinned({\n              menu: groupMenu,\n              allPinned\n            });\n          })(group);\n        }))(menu);\n        menu.setData('groups', groups);\n        const sub = R.pipe(R.pathOr([], ['_data', 'sub']), R.map(subMenu => {\n          return setIsPinned({\n            menu: subMenu,\n            allPinned\n          });\n        }))(menu);\n        menu.setData('sub', sub);\n        return menu;\n      })(allowed);\n      if (onlyPinned) {\n        return R.filter(isSidebarMenuBetaAllowed)(allPinned);\n      }\n      return allowedMenu;\n    }\n    toggleComponentProperty(component, prop) {\n      const value = !component[prop];\n      Ember.set(component, prop, value);\n    }\n    toggleModelPath(model, prop) {\n      const value = this._getModelValue(model, prop);\n      const newValue = !value;\n      this._setModelValue(model, prop, newValue);\n    }\n    _getModelValue(model, prop) {\n      if (R.startsWith('_data.')(prop)) {\n        const key = R.replace('_data.', '')(prop);\n        return model.getData(key);\n      }\n      if (model.get) {\n        return model.get(prop);\n      }\n      return model?.[prop];\n    }\n    _setModelValue(model, prop, value) {\n      if (R.startsWith('_data.')(prop)) {\n        const key = R.replace('_data.', '')(prop);\n        model.setData(key, value);\n      } else if (model.set) {\n        model.set(prop, value);\n      } else {\n        Ember.set(model, prop, value);\n      }\n      return model;\n    }\n\n    /**\n     * toggle and set path value\n     * @param {Object|DS.Model|Component} model\n     * @param {String} prop dot notation path\n     * @param {String} value value to set\n     */\n    toggleThenSetPath(model, prop, value) {\n      const currentValue = this._getModelValue(model, prop);\n      if (RA.isNotNilOrEmpty(currentValue)) {\n        value = '';\n      }\n      this._setModelValue(model, prop, value);\n    }\n    modelSetPath(model, prop, value) {\n      this._setModelValue(model, prop, value);\n    }\n    modelSetPathFromModelPath(model, prop, fromModelPath, fromModel) {\n      const value = this._getModelValue(fromModel, fromModelPath);\n      this._setModelValue(model, prop, value);\n    }\n    modelArrayRemove(model, prop, obj) {\n      const array = this._getModelValue(model, prop) || [];\n      array.removeObject(obj);\n      this._setModelValue(model, prop, array);\n    }\n    reIndex(model, prop, indexProp) {\n      const array = this._getModelValue(model, prop) || [];\n      const reIndexed = RA.mapIndexed((item, index) => {\n        this._setModelValue(item, indexProp, index);\n        return item;\n      })(array);\n      return this._setModelValue(model, prop, reIndexed);\n    }\n\n    /**\n     * move an object index 1 position up\n     * for model._data.array[ { _data.index }]\n     * @param {*} model\n     * @param {*} prop\n     * @param {*} indexProp\n     * @param {*} obj\n     */\n    modelArrayMoveUp(model, prop, indexProp, obj) {\n      const array = this._getModelValue(model, prop) || [];\n      const sortedArray = _nventor.default.moveObjectUp(obj, array);\n      const reIndexed = RA.mapIndexed((item, index) => {\n        this._setModelValue(item, indexProp, index);\n        return item;\n      })(sortedArray);\n      this._setModelValue(model, prop, reIndexed);\n    }\n\n    /**\n     * move an object index 1 position down\n     * for model._data.array[ { _data.index }]\n     * @param {*} model\n     * @param {*} prop\n     * @param {*} indexProp\n     * @param {*} obj\n     */\n    modelArrayMoveDown(model, prop, indexProp, obj) {\n      const array = this._getModelValue(model, prop) || [];\n      const sortedArray = _nventor.default.moveObjectDown(obj, array);\n      const reIndexed = RA.mapIndexed((item, index) => {\n        this._setModelValue(item, indexProp, index);\n        return item;\n      })(sortedArray);\n      this._setModelValue(model, prop, reIndexed);\n    }\n    modelSetIsForceReloading(model) {\n      const prop = 'isForceReloading';\n      Ember.set(model, prop, true);\n      setTimeout(() => {\n        Ember.set(model, prop, false);\n      }, 250);\n    }\n    clearModelPaths({\n      model,\n      paths = []\n    }) {\n      R.forEach(path => {\n        model.setData(path, '');\n      })(paths);\n    }\n    setStickyTopDebug(element) {\n      this.setStickyTop(element, {\n        debug: true\n      });\n    }\n\n    /**\n     * calculate and set sticky top on element\n     * @param {HTMLElement} element\n     * @void\n     */\n    setStickyTop(element, {\n      allowMobile = false,\n      debug = false\n    } = {}) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      if (this.isMobile && !allowMobile) {\n        return;\n      }\n      if (RA.isNilOrEmpty(element)) {\n        return;\n      }\n      Ember.run.scheduleOnce('afterRender', () => {\n        if (debug) {\n          debugger; //eslint-disable-line\n        }\n        // dont set for when inside a modal dialog\n        // this should change to only traverse as far as modal-dialog\n\n        let parentElementClassName = '';\n        let parentElement;\n        const modalDialog = element.closest('.modal-dialog__content');\n        if (modalDialog) {\n          parentElementClassName = 'modal-dialog__content';\n          parentElement = element.closest(`.${parentElementClassName}`);\n        }\n        if (!parentElement) {\n          parentElementClassName = 'modal-container__content';\n          parentElement = element.closest(`.${parentElementClassName}`);\n        }\n        if (!parentElement) {\n          parentElementClassName = 'tab-grid__content';\n          parentElement = element.closest(`.${parentElementClassName}`);\n        }\n        if (!parentElement) {\n          parentElementClassName = 'tab-grid__sidebar-right';\n          parentElement = element.closest(`.${parentElementClassName}`);\n        }\n        if (!parentElement) {\n          parentElementClassName = 'app-grid';\n          parentElement = element.closest(`.${parentElementClassName}`);\n        }\n        if (!parentElement) {\n          return;\n        }\n        const stickyHeaderAbove = this.findStickyHeaderAbove(element, parentElement);\n        if (!stickyHeaderAbove) {\n          element.style.top = '0px';\n          return;\n        }\n        const stickyHeaderAboveTop = parseFloat(window.getComputedStyle(stickyHeaderAbove).top) || 0;\n        const stickyHeaderAboveHeight = stickyHeaderAbove.getBoundingClientRect().height;\n        element.style.top = `${stickyHeaderAboveTop + stickyHeaderAboveHeight}px`;\n      });\n    }\n\n    /**\n     * Nearest visible sticky row that stays stuck above the element, or null.\n     * Only preceding siblings of the element or its ancestors qualify: a sticky row\n     * unsticks when its parent scrolls away, so rows nested elsewhere never stack above it.\n     * Rows beside the element (e.g. a sticky sidebar) are skipped.\n     * @param {HTMLElement} element\n     * @param {HTMLElement} scrollContainer - search stops here\n     * @returns {HTMLElement|null}\n     */\n    findStickyHeaderAbove(element, scrollContainer) {\n      const elementRect = element.getBoundingClientRect();\n      const isStickyHeaderAbove = candidate => {\n        if (!candidate.matches(stickyRowSelector) || !this.isElementVisible(candidate)) {\n          return false;\n        }\n        const candidateRect = candidate.getBoundingClientRect();\n        const overlapsHorizontally = candidateRect.left < elementRect.right && candidateRect.right > elementRect.left;\n        return overlapsHorizontally;\n      };\n      let currentElement = element;\n      while (currentElement && currentElement !== scrollContainer) {\n        let sibling = currentElement.previousElementSibling;\n        while (sibling) {\n          if (isStickyHeaderAbove(sibling)) {\n            return sibling;\n          }\n          sibling = sibling.previousElementSibling;\n        }\n        currentElement = currentElement.parentElement;\n      }\n      return null;\n    }\n    setStickyTopMobile(element) {\n      this.setStickyTop(element, {\n        allowMobile: true\n      });\n    }\n    setStickyTopMobileDebug(element) {\n      this.setStickyTop(element, {\n        allowMobile: true,\n        debug: true\n      });\n    }\n\n    // @action\n    // setFixedTopDebug (element) {\n    //   this.setFixedTop(\n    //     element,\n    //     {\n    //       debug: true\n    //     }\n    //   )\n    // }\n\n    /**\n     * calculate and set sticky top on element\n     * @param {HTMLElement} element\n     * @void\n     */\n    // @action\n    // setFixedTop (\n    //   element,\n    //   {\n    //     debug = false\n    //   } = {}\n    // ) {\n    //   if (debug) {\n    //     debugger //eslint-disable-line\n    //   }\n\n    //   if (RA.isNilOrEmpty(element)) {\n    //     return\n    //   }\n\n    //   const isVisible = this.isElementVisible(element)\n    //   if (!isVisible) {\n    //     return\n    //   }\n    //   // dont set for when inside a modal dialog\n    //   // this should change to only traverse as far as modal-dialog\n\n    //   const rect = element.getBoundingClientRect()\n    //   const elementHeight = rect?.height || 0\n    //   if (!elementHeight) {\n    //     return\n    //   }\n\n    //   let parentElementClassName = 'app-grid'\n\n    //   const modalDialog = element.closest('.modal-container')\n    //   if (modalDialog) {\n    //     parentElementClassName = 'modal-container'\n    //   }\n\n    //   const parentElement = element.closest(`.${parentElementClassName}`)\n    //   if (!parentElement) {\n    //     return\n    //   }\n\n    //   const isSetup = element.getAttribute('is-setup')\n    //   if (!isSetup) {\n    //     const elements = parentElement.querySelectorAll('.is-sticky-row, .is-sticky-row-auto, .is-fixed-row-auto')\n    //     let currentIndex = Array.from(elements).indexOf(element)\n    //     if (currentIndex <= -1) {\n    //       currentIndex = elements.length\n    //     }\n    //     let index = 0\n\n    //     let totalHeight = 0\n    //     R.forEach(currentElement => {\n    //       if (index >= currentIndex) {\n    //         return\n    //       }\n\n    //       index = index + 1\n\n    //       const isVisible = this.isElementVisible(currentElement)\n    //       if (!isVisible) {\n    //         return\n    //       }\n\n    //       const currentRect = currentElement.getBoundingClientRect()\n\n    //       const currentHeight = currentRect?.height || 0\n\n    //       const computedStyle = window.getComputedStyle(currentElement)\n    //       const borderTopWidth = parseInt(computedStyle.getPropertyValue('border-top-width')) || 0\n    //       const borderBottomWidth = parseInt(computedStyle.getPropertyValue('border-bottom-width')) || 0\n\n    //       // if (currentElement.classList.contains('app-grid__header-fixed')) {\n    //       //   // somehow app-grid__header-fixed's height is changed whilst loading?\n    //       //   currentHeight = currentHeight - 1\n    //       // }\n\n    //       totalHeight = R.sum(\n    //         [\n    //           totalHeight,\n    //           currentHeight,\n    //           borderTopWidth,\n    //           borderBottomWidth\n    //         ]\n    //       )\n    //     })(elements)\n    //     element.style.top = `${totalHeight}px`\n    //     element.style.position = 'fixed'\n    //     element.setAttribute('is-setup', 'true')\n    //   }\n\n    //   const parent = element.parentNode\n    //   if (!parent) {\n    //     return\n    //   }\n\n    //   let spacerElement\n    //   let spacerId = element.getAttribute('data-spacer-id')\n    //   if (spacerId) {\n    //     // dont set when it has already been set.\n    //     // there is a problem when modal is opened and closed.\n    //     // return\n    //     spacerElement = parent.querySelector(`.${spacerId}`)\n    //   }\n\n    //   scheduleOnce('afterRender', () => {\n    //     if (!spacerElement) {\n    //       spacerId = `spacer-${nventor.random.alphaNum(8)}`\n    //       element.setAttribute('data-spacer-id', spacerId)\n    //       element.setAttribute('data-spacer-height', elementHeight)\n\n    //       spacerElement = document.createElement('div')\n    //       spacerElement.classList.add('spacer')\n    //       spacerElement.classList.add(`${spacerId}`)\n    //       element.parentNode.insertBefore(spacerElement, element)\n    //     }\n\n    //     spacerElement.style.marginBottom = `${elementHeight}px`\n    //   })\n\n    //   // element.style.marginBottom = `${elementHeight}px`\n    // }\n\n    isElementVisible(element) {\n      const style = window.getComputedStyle(element);\n      return style.display !== 'none' && style.visibility !== 'hidden';\n    }\n    *addScript(url, {\n      alternativeUrls = []\n    } = {}) {\n      const script = document.createElement('script');\n      script.src = url;\n      script.async = true;\n      script.defer = true;\n      document.head.appendChild(script);\n      script.onload = () => {\n        if (_environment.default.environment !== 'production') {\n          console.log('script loaded: ', url);\n        }\n      };\n      script.onerror = error => {\n        console.error('script error: ', {\n          url,\n          error\n        });\n        if (alternativeUrls.length) {\n          alternativeUrls.forEach(url => {\n            return this.addScript.perform(url);\n          });\n        }\n      };\n    }\n    checkHasOverflowX(element) {\n      if (!element) {\n        return false;\n      }\n      const hasOverflowX = element.scrollWidth > element.clientWidth;\n      return {\n        clientWidth: element.clientWidth,\n        scrollWidth: element.scrollWidth,\n        hasOverflowX\n      };\n    }\n    toggleSidebarRight(component, sidebarOptions) {\n      const path = 'sidebarRight';\n      const currentSelected = this._getModelValue(component, path);\n      let selected = sidebarOptions;\n      if (currentSelected?.component && currentSelected?.component === selected?.component) {\n        selected = '';\n      }\n      Ember.set(component, path, selected);\n    }\n    closeSidebarRight(component) {\n      const path = 'sidebarRight';\n      Ember.set(component, path, '');\n    }\n\n    /**\n     * teleport an element to a new parent\n     * @param {HTMLElement} fromElement\n     * @param {HTMLElement} toElement\n     */\n    teleportElement({\n      toElementSelector,\n      toParentSelector,\n      toElement\n    }, {\n      fromElementSelector,\n      fromElement\n    }) {\n      if (!fromElement) {\n        return;\n      }\n      const fromContentContainer = fromElement.querySelector(fromElementSelector);\n      const fromContent = fromContentContainer.querySelector('.to-teleport-content');\n      if (!fromContent) {\n        return;\n      }\n      let toParent = toElement;\n      if (!toElement) {\n        toParent = fromContentContainer.closest(toParentSelector);\n        if (!toParent) {\n          return;\n        }\n      }\n      const toContent = toParent.querySelector(toElementSelector);\n      if (!toContent) {\n        return;\n      }\n      while (toContent.firstChild) {\n        toContent.removeChild(toContent.firstChild);\n      }\n      toContent.append(fromContent);\n    }\n    *markAsReadTask(documentation) {\n      if (RA.isNilOrEmpty(documentation)) {\n        return;\n      }\n      const type = documentation.getData('type');\n      const documentationResource = documentation.getData('documentationResource');\n      const documentationId = documentation.getData('documentationId');\n      // update read status for document\n      const resp = yield this.server.call('PATCH', `api/protected/documentation/${encodeURIComponent(type)}/${encodeURIComponent(documentationResource)}/${encodeURIComponent(documentationId)}`, {});\n      return resp;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isMobile\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"documentationIsMinimized\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"eventPosition\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadAsyncResource\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"loadAsyncResource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"trackMouseEventPosition\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"trackMouseEventPosition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getMouseEventPosition\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"getMouseEventPosition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addOnAfter\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"addOnAfter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addOnAfterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addOnAfterTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addOnBefore\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"addOnBefore\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addOnBeforeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addOnBeforeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stubFunction\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"stubFunction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkIsMobile\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"checkIsMobile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupReloadOnHistoryTraversal\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"setupReloadOnHistoryTraversal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resizeTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"resizeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"splitToArray\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"splitToArray\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"joinAsString\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"joinAsString\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyText\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"copyText\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyModelData\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"copyModelData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyAllModelData\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"copyAllModelData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"processMenu\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"processMenu\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleComponentProperty\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleComponentProperty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleModelPath\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleModelPath\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getModelValue\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"_getModelValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setModelValue\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"_setModelValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleThenSetPath\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleThenSetPath\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelSetPath\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"modelSetPath\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelSetPathFromModelPath\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"modelSetPathFromModelPath\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelArrayRemove\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"modelArrayRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reIndex\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"reIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelArrayMoveUp\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"modelArrayMoveUp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelArrayMoveDown\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"modelArrayMoveDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelSetIsForceReloading\", [_dec31], Object.getOwnPropertyDescriptor(_class.prototype, \"modelSetIsForceReloading\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearModelPaths\", [_dec32], Object.getOwnPropertyDescriptor(_class.prototype, \"clearModelPaths\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setStickyTopDebug\", [_dec33], Object.getOwnPropertyDescriptor(_class.prototype, \"setStickyTopDebug\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setStickyTop\", [_dec34], Object.getOwnPropertyDescriptor(_class.prototype, \"setStickyTop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setStickyTopMobile\", [_dec35], Object.getOwnPropertyDescriptor(_class.prototype, \"setStickyTopMobile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setStickyTopMobileDebug\", [_dec36], Object.getOwnPropertyDescriptor(_class.prototype, \"setStickyTopMobileDebug\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isElementVisible\", [_dec37], Object.getOwnPropertyDescriptor(_class.prototype, \"isElementVisible\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addScript\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addScript\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkHasOverflowX\", [_dec38], Object.getOwnPropertyDescriptor(_class.prototype, \"checkHasOverflowX\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSidebarRight\", [_dec39], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSidebarRight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeSidebarRight\", [_dec40], Object.getOwnPropertyDescriptor(_class.prototype, \"closeSidebarRight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"teleportElement\", [_dec41], Object.getOwnPropertyDescriptor(_class.prototype, \"teleportElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markAsReadTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"markAsReadTask\"), _class.prototype), _class);\n});","define(\"client/pods/application/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aG+LzABn\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"global-modals\\\"],[8],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/application/template.hbs\"\n    }\n  });\n});","define(\"client/pods/auth/service\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"@sentry/ember\"], function (_exports, _emberConcurrency, R, RA, Sentry) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Service.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    server: Ember.inject.service(),\n    storage: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    socket: Ember.inject.service(),\n    dataManager: Ember.inject.service(),\n    router: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    grapesjs: Ember.inject.service(),\n    language: 'zh-tw',\n    twoFactorAuthToken: null,\n    // true while the pending 2FA step belongs to a try new features (beta) login.\n    // not reset in logout: a wrong 2FA code runs setNotAuthenticated -> logout, and the retry must stay on the beta flow\n    isTwoFactorAuthForBeta: false,\n    changeToPodKey: null,\n    /**\n     * Starts with no pending login.\n     *\n     * @returns {void}\n     */\n    init() {\n      this._super(...arguments);\n      this.set('twoFactorAuthToken', null);\n      this.set('isTwoFactorAuthForBeta', false);\n      Ember.set(this, 'changeToPodKey', null);\n    },\n    selectCompanyToLoginTask: (0, _emberConcurrency.task)(function* ({\n      confirm = false,\n      onChange\n    } = {}) {\n      let podKey = this.changeToPodKey;\n      if (!podKey) {\n        this.logout();\n        return;\n      }\n      const pods = this.getUserProp('pods') || [];\n      const defaultPod = this.getUserProp('pod') || [];\n      let confirmed = true;\n      if (confirm) {\n        const podData = R.find(R.propEq('podKey', podKey))(pods);\n        const msg = this.intl.t('log into new company?', {\n          company: podData.company\n        });\n        confirmed = window.confirm(msg);\n      }\n      if (!confirmed) {\n        podKey = defaultPod;\n      }\n      if (confirmed) {\n        let loginData;\n        const tokenData = this.getTokenData();\n        if (tokenData.pod === podKey) {\n          // same podKey, dont need to re-login\n          // no need to re-login with server\n          const token = this.getToken();\n          loginData = yield this.loginToCompanyTask.perform(podKey, {\n            token,\n            tokenData\n          });\n        } else {\n          loginData = yield this.loginToCompanyTask.perform(podKey);\n        }\n        if (onChange) {\n          // clear local storage\n          this.dataManager.resetCache();\n          this.tabsManager.resetTabs();\n          // reload pod settings\n          yield this.settings.setupTask.perform();\n          onChange(loginData);\n          this.router.transitionTo('protected.company', loginData.username, loginData.userId, loginData.company, {\n            queryParams: {\n              reload: true\n            }\n          });\n        } else {\n          // return this.router.transitionTo('protected.company', loginData.username, loginData.userId, loginData.company)\n          return this.router.transitionTo('protected.company', loginData.username, loginData.userId, loginData.company, {\n            queryParams: {\n              reload: true\n            }\n          });\n        }\n      }\n    }).drop(),\n    setLanguage(language) {\n      if (language) {\n        this.set('language', language);\n        if (this.get('isLoggedIn')) {\n          this.storage.setWithoutPrefix('language', language);\n        }\n        return this.intl.setLocale(language);\n      }\n      return false;\n    },\n    // setPreferredLanguage (language) {\n    //   this.get('storage').set('preferredLanguage', language)\n    // },\n\n    /**\n     * Clears a pending login, including its 2FA step and which login flow it belongs to.\n     *\n     * @returns {void}\n     */\n    resetLogin() {\n      this.set('step', 0);\n      this.set('loginFailed', false);\n      this.set('twoFactorAuthToken', null);\n      this.set('isTwoFactorAuthForBeta', false);\n    },\n    /**\n     * Logs in to this host.\n     *\n     * @param {Object} credentials - login form values\n     * @param {string} credentials.username - email entered on the login page\n     * @param {string} credentials.password - password entered on the login page\n     * @param {string} credentials.app - app query param of the login page\n     * @param {string} credentials.redirect - redirect query param of the login page\n     * @returns {Promise<Object|undefined>} `{ isTwoFactorAuth: true }` when a 2FA code is needed, otherwise the signed-in transition\n     */\n    loginTask: (0, _emberConcurrency.task)(function* (credentials) {\n      this.set('loginFailed', false);\n      this.set('twoFactorAuthToken', null);\n      this.set('isTwoFactorAuthForBeta', false);\n\n      // Remove localstorage on longin\n      try {\n        const res = yield this.server.login(credentials);\n        const token = R.prop('token')(res);\n        const tokenData = this.parseToken(token);\n        if (tokenData.isTwoFactorAuthToken) {\n          this.set('twoFactorAuthToken', token);\n          return {\n            isTwoFactorAuth: true\n          };\n        }\n        return yield this._completeLoginTask.perform(res);\n      } catch (err) {\n        let reload = false;\n        if (err.data === 'not connected') {\n          reload = true;\n        }\n        // invalid credentials\n        this.setNotAuthenticated('invalid username or password', reload);\n      }\n    }).drop(),\n    /**\n     * Logs in to beta (try new features). On success the browser leaves for the beta address returned by the API.\n     *\n     * @param {Object} credentials - login form values\n     * @param {string} credentials.username - email entered on the login page\n     * @param {string} credentials.password - password entered on the login page\n     * @param {string} credentials.app - app query param of the login page\n     * @returns {Promise<Object|boolean|undefined>} `{ isTwoFactorAuth: true }` when a 2FA code is needed, true when leaving for beta, false or undefined on failure\n     */\n    loginToBetaTask: (0, _emberConcurrency.task)(function* (credentials) {\n      this.set('loginFailed', false);\n      this.set('twoFactorAuthToken', null);\n      this.set('isTwoFactorAuthForBeta', false);\n      try {\n        const res = yield this.server.loginToBeta(credentials);\n        const token = res?.token;\n        const tokenData = this.parseToken(token);\n        if (tokenData?.isTwoFactorAuthToken) {\n          this.set('twoFactorAuthToken', token);\n          this.set('isTwoFactorAuthForBeta', true);\n          return {\n            isTwoFactorAuth: true\n          };\n        }\n        return this.openBetaWithLoginCode(res);\n      } catch (err) {\n        let reload = false;\n        if (err.data === 'not connected') {\n          reload = true;\n        }\n        // invalid credentials\n        this.setNotAuthenticated('invalid username or password', reload);\n      }\n    }).drop(),\n    /**\n     * Finishes a login that paused for a 2FA code, against the login flow that started it.\n     *\n     * @param {string} code - two factor authentication code from the email\n     * @returns {Promise<boolean|undefined>} truthy when the login is finished, falsy when the code is rejected\n     */\n    loginTwoFactorTask: (0, _emberConcurrency.task)(function* (code) {\n      this.set('loginFailed', false);\n      // Remove localstorage on longin\n      try {\n        const twoFactorAuthToken = this.twoFactorAuthToken;\n        if (this.isTwoFactorAuthForBeta) {\n          const betaRes = yield this.server.loginToBetaWithTwoFactorAuth(code, twoFactorAuthToken);\n          return this.openBetaWithLoginCode(betaRes);\n        }\n        const res = yield this.server.loginWithTwoFactorAuth(code, twoFactorAuthToken);\n        return yield this._completeLoginTask.perform(res);\n      } catch (err) {\n        let reload = false;\n        if (err.data === 'not connected') {\n          reload = true;\n        }\n        // invalid credentials\n        this.setNotAuthenticated('invalid two factor authentication code', reload);\n      }\n    }).drop(),\n    resendTwoFactorCodeTask: (0, _emberConcurrency.task)(function* () {\n      this.set('loginFailed', false);\n      // Remove localstorage on longin\n      try {\n        const twoFactorAuthToken = this.twoFactorAuthToken;\n        yield this.server.loginWithTwoFactorAuth('', twoFactorAuthToken, 'resend');\n        return true;\n      } catch (err) {\n        let reload = false;\n        if (err.data === 'not connected') {\n          reload = true;\n        }\n        // invalid credentials\n        this.setNotAuthenticated('invalid two factor authentication code', reload);\n        return false;\n      }\n    }).drop(),\n    /**\n     * Sends the browser to the beta address returned by the beta login API.\n     * The API returns the address as JSON (not an HTTP 302) because ajax follows a 302 without moving the browser.\n     * The address carries only a one-time code, never a login token, so it is used as given.\n     *\n     * @param {Object} res - finished beta login response\n     * @param {Object} res.data - response payload\n     * @param {string} res.data.redirectUrl - beta address with a one-time `code` query param\n     * @returns {boolean} true when the browser is leaving for beta, false when the response has no address\n     */\n    openBetaWithLoginCode(res) {\n      const redirectUrl = res?.data?.redirectUrl;\n      if (!redirectUrl) {\n        this.setNotAuthenticated('connection error');\n        return false;\n      }\n      window.location.assign(redirectUrl);\n      return true;\n    },\n    /**\n     * Asks the API for a beta address for the current login, then leaves for it.\n     * A missing address or a failed request stays on this page.\n     *\n     * @returns {Promise<boolean>} true when the browser is leaving for beta\n     */\n    redirectToBetaTask: (0, _emberConcurrency.task)(function* () {\n      try {\n        const res = yield this.server.redirectToBeta();\n        const redirectUrl = res?.data?.redirectUrl;\n        if (!redirectUrl) {\n          return false;\n        }\n        return this.openBetaWithLoginCode(res);\n      } catch (err) {\n        return false;\n      }\n    }).drop(),\n    /**\n     * Trades a one-time beta login code for a login token and signs in like a normal login.\n     * A missing, expired or used code leaves the normal login page with no error.\n     *\n     * @param {string} code - one-time code from the beta redirect address\n     * @returns {Promise<Object|boolean|undefined>} the signed-in transition, or false when the code is not accepted\n     */\n    exchangeBetaLoginCodeTask: (0, _emberConcurrency.task)(function* (code) {\n      try {\n        const res = yield this.server.exchangeBetaLoginCode(code);\n        if (!res?.token) {\n          return false;\n        }\n        return yield this._completeLoginTask.perform(res);\n      } catch (err) {\n        if (err.data === 'not connected') {\n          return this.logout(true);\n        }\n        return false;\n      }\n    }).drop(),\n    _completeLoginTask: (0, _emberConcurrency.task)(function* (res) {\n      const token = R.prop('token')(res);\n      const tokenData = this.parseToken(token);\n      const userId = tokenData.uid;\n      const username = tokenData.username;\n      this.checkIfShouldRedirectAfterLogin({\n        tokenData,\n        token\n      });\n      const company = tokenData.company;\n      this.setAsLoggedIn(company, token, tokenData);\n      let hasMultiplePods = R.pipe(R.propOr([], 'pods'), R.length, R.gt(R.__, 1))(tokenData);\n      if (tokenData.isAdmin || tokenData.isBigOrdrOperator && tokenData?.bigOrdrOperatorRights?.loginToAllPods) {\n        hasMultiplePods = true;\n      }\n      if (hasMultiplePods) {\n        return this.router.transitionTo('protected.companies', username, userId);\n      }\n      const podKey = tokenData.pod;\n      const loginData = yield this.loginToCompanyTask.perform(podKey, {\n        token,\n        tokenData\n      });\n      return this.router.transitionTo('protected.company', loginData.username, loginData.userId, loginData.company);\n    }).drop(),\n    checkIfShouldRedirectAfterLogin({\n      tokenData,\n      token\n    }) {\n      if (tokenData.redirect) {\n        const encodedToken = encodeURIComponent(token);\n        window.location.href = `${tokenData.redirect}#token=${encodedToken}`;\n        return;\n      }\n    },\n    loginToCompanyTask: (0, _emberConcurrency.task)(function* (podKey, {\n      token,\n      tokenData = {}\n    } = {}) {\n      try {\n        if (RA.isNilOrEmpty(tokenData)) {\n          const userToken = this.getToken();\n          const res = yield this.server.loginToCompany(podKey, userToken);\n          token = R.prop('token')(res);\n          tokenData = this.parseToken(token);\n        }\n        if (RA.isNilOrEmpty(token) || !token) {\n          return this.logout();\n        }\n        this.checkIfShouldRedirectAfterLogin({\n          tokenData,\n          token\n        });\n        const company = tokenData.company;\n        this.setAsLoggedIn(company, token, tokenData);\n        return {\n          company,\n          username: tokenData.username,\n          userId: tokenData.uid,\n          language: this.language\n        };\n      } catch (err) {\n        return this.logout();\n      }\n    }),\n    setAsLoggedIn(company, token, tokenData) {\n      this.storage.setup(company, tokenData.uid);\n      // set is loggedIn = true\n\n      this.storage.set('uid', tokenData.uid);\n      this.storage.set('token', token);\n      this.storage.set('tokenData', tokenData);\n      const language = this.language || tokenData.language;\n      this.storage.setWithoutPrefix('language', language);\n\n      // Sentry identification happens in _setIsLoggedIn so it also covers reload\n      // rehydration (isAlreadyAuthenticated), not just this fresh-login path.\n      this._setIsLoggedIn(true);\n    },\n    /**\n     * Attach the current user's identity to every Sentry event (errors + session\n     * replay) for this session. Reads tokenData from storage so it runs on both\n     * fresh login and reload rehydration -- without the reload path, refreshed\n     * sessions show up in Sentry as 'Anonymous User' / an IP address.\n     */\n    identifyUserToSentry() {\n      const tokenData = this.getTokenData();\n      if (!tokenData?.uid) {\n        Sentry.setUser(null);\n        return;\n      }\n      Sentry.setUser({\n        id: tokenData.uid,\n        username: tokenData.username,\n        podKey: tokenData.pod,\n        email: tokenData.email,\n        name: tokenData.name,\n        company: tokenData.company\n      });\n    },\n    /**\n     * Attach a guest viewer's identity to every Sentry event (errors + session\n     * replay). Guest sessions carry a separate token (see guests/service.js) that\n     * has no uid/email/name -- it identifies the viewing member and the shop /\n     * campaign instead -- so without this guests show up in Sentry as an\n     * anonymous IP. Use memberId as the stable id (falling back to shopKey, then\n     * the guest resource) and flag isGuest so guest noise is easy to separate\n     * from real user errors.\n     */\n    identifyGuestToSentry(tokenData, resource) {\n      if (!tokenData && !resource) {\n        Sentry.setUser(null);\n        return;\n      }\n      Sentry.setUser({\n        id: tokenData?.memberId || tokenData?.shopKey || resource,\n        username: tokenData?.username,\n        podKey: tokenData?.pod,\n        isGuest: true,\n        guestResource: resource,\n        memberId: tokenData?.memberId,\n        shopKey: tokenData?.shopKey,\n        campaignKey: tokenData?.campaignKey,\n        hash: tokenData?.hash,\n        version: tokenData?.version\n      });\n    },\n    setAutoExtendedToken(token) {\n      const tokenData = this.parseToken(token);\n      this.storage.set('token', token);\n      this.storage.set('tokenData', tokenData);\n    },\n    getPods() {\n      const tokenData = this.storage.get('tokenData') || {};\n      return R.propOr([], 'pods')(tokenData);\n    },\n    getToken() {\n      return this.storage.get('token'); // || this.token\n    },\n    getTokenData() {\n      return this.storage.get('tokenData') || {};\n    },\n    parseToken(token) {\n      if (token) {\n        try {\n          return jwt_decode(token);\n        } catch (err) {\n          this.setNotAuthenticated('connection error');\n          return false;\n        }\n      }\n    },\n    isAlreadyAuthenticated(companyName, userId, params) {\n      if (companyName && userId) {\n        this.storage.setup(companyName, userId);\n        const language = params.language || this.language;\n        this.set('language', language);\n        const isLoggedIn = this.storage.get('isLoggedIn') || false;\n        return this._setIsLoggedIn(isLoggedIn);\n      }\n      return this.logout();\n    },\n    _setIsLoggedIn(isLoggedIn) {\n      if (isLoggedIn) {\n        const language = this.storage.getWithoutPrefix('language');\n        this.setLanguage(language);\n        this.set('isLoggedIn', true);\n        this.storage.set('isLoggedIn', true);\n\n        // runs on fresh login and on reload rehydration (isAlreadyAuthenticated)\n        this.identifyUserToSentry();\n        this.socket.connect();\n        return true;\n      }\n      return this.logout();\n    },\n    /**\n     * set loginFailed\n     */\n    setNotAuthenticated(errorMsg, reload = false) {\n      // remove token from session\n      this.logout(reload);\n      this.set('loginFailed', true);\n      if (errorMsg) {\n        this.set('loginErrorMsg', errorMsg);\n      }\n    },\n    logout(reload = false) {\n      const storageService = this.storage;\n      const activeEditors = storageService.get('activeEditors') || [];\n      R.forEach(this.grapesjs.removeFromStorage, activeEditors);\n      storageService.set('activeEditors', []);\n      this.storage.clear();\n\n      // detach the user so post-logout events aren't attributed to them\n      Sentry.setUser(null);\n      this.set('loginFailed', false);\n      this.set('isLoggedIn', false);\n\n      // setting token\n      this.dataManager.resetCache();\n      this.tabsManager.resetTabs();\n\n      // window.localStorage.clear()\n\n      this.socket.disconnect();\n      if (reload) {\n        return this.router.transitionTo('index', {\n          queryParams: {\n            reload: true\n          }\n        });\n      }\n      return this.router.transitionTo('index');\n    },\n    getUserProp(prop) {\n      const userData = this.storage.get('tokenData');\n      if (userData) {\n        return userData[prop];\n      }\n      return '';\n    },\n    actions: {\n      logout() {\n        this.logout();\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"checkIfShouldRedirectAfterLogin\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"checkIfShouldRedirectAfterLogin\"), _obj), _applyDecoratedDescriptor(_obj, \"logout\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"logout\"), _obj), _obj));\n});","define(\"client/pods/automations/criterias/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"client/constants\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'greater than or equal to',\n        value: _constants.default.automationsCriterias.greaterThanOrEqualTo,\n        isAllowCumulative: true\n      }, {\n        label: 'greater than',\n        value: _constants.default.automationsCriterias.greaterThan,\n        isAllowCumulative: true\n      }, {\n        label: 'is between',\n        value: _constants.default.automationsCriterias.isBetween,\n        isAllowCumulative: false\n        // }, {\n        //   label: 'less than or equal to',\n        //   value: constants.automationsCriterias.lessThanOrEqualTo\n        // }, {\n        //   label: 'less than',\n        //   value: constants.automationsCriterias.lessThan\n      }, {\n        label: 'equals',\n        value: _constants.default.automationsCriterias.equals,\n        isAllowCumulative: false\n        // }, {\n        //   label: 'not equals',\n        //   value: constants.automationsCriterias.notEquals\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/automations/then-actions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"client/constants/index\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'automation_action_mustAdd',\n        value: _index.default.automationsThenActions.mustAdd\n      }, {\n        label: 'automation_action_mayAdd',\n        value: _index.default.automationsThenActions.mayAdd\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","// import DS from 'ember-data'\n// import AdapterMixin from '../../../mixins/adapters-new'\n// import Model from './model'\n\n// export default DS.Adapter.extend(AdapterMixin, {\n//   modelObj: Model,\n//   idParam: false\n// })\ndefine(\"client/pods/automations/then-details/adapter\", [], function () {\n  \"use strict\";\n});","// import BaseModel from '../../base/model'\n\n// export default BaseModel.extend({\n// })\ndefine(\"client/pods/automations/then-details/model\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/automations/then-selection-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"client/constants/index\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'all',\n        value: _index.default.automationsThenSelectionTypes.all\n      }, {\n        label: 'choose between',\n        value: _index.default.automationsThenSelectionTypes.between\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/automations/when/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _constants, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: _constants.default.automationsWhen.orderValue,\n        label: 'order value',\n        component: 'channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/order-value'\n      }, {\n        value: _constants.default.automationsWhen.itemQty,\n        label: 'item quantity',\n        component: 'channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-qty'\n      }, {\n        value: _constants.default.automationsWhen.itemValue,\n        label: 'item value',\n        type: 'value',\n        component: 'channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-value'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/automations/when/item-qty/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _constants, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: _constants.default.automationsWhenItemQtyType.products,\n        label: 'products'\n      }, {\n        value: _constants.default.automationsWhenItemQtyType.tags,\n        label: 'tags'\n      }, {\n        value: _constants.default.automationsWhenItemQtyType.all,\n        label: 'all qty'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/automations/when/item-value/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _constants, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: _constants.default.automationsWhenItemQtyType.products,\n        label: 'products'\n      }, {\n        value: _constants.default.automationsWhenItemQtyType.tags,\n        label: 'tags'\n      }, {\n        value: _constants.default.automationsWhenItemQtyType.all,\n        label: 'all qty'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/availability/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'enabled',\n        label: 'enabled',\n        classNames: 'is-primary'\n      }, {\n        value: 'disabled',\n        label: 'disabled',\n        classNames: 'is-danger'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/barcodes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'EAN13',\n        label: 'EAN13'\n      }, {\n        value: 'EAN8',\n        label: 'EAN8'\n      }, {\n        value: 'EAN5',\n        label: 'EAN5'\n      }, {\n        value: 'EAN2',\n        label: 'EAN2'\n      }, {\n        value: 'CODE39',\n        label: 'CODE39'\n      }, {\n        value: 'CODE128',\n        label: 'CODE128'\n      }, {\n        value: 'other',\n        label: this.intl.t('other')\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/base/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/base/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/base/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"client/mixins/big\", \"client/mixins/data\", \"client/mixins/date\", \"client/mixins/statuses\", \"client/mixins/settings\", \"client/utils/nventor\"], function (_exports, R, RA, R_, _big, _data, _date, _statuses, _settings, _nventor) {\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, _obj;\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  // a reset snapshot may only hold plain data: populate() rebuilds nested models from plain data,\n  // and a shared model instance would leak later edits (setData) into the snapshot\n  const isPlainData = value => {\n    if (typeof value === 'function' || value instanceof Ember.Object) {\n      return false;\n    }\n    if (value === null || typeof value !== 'object') {\n      return true;\n    }\n    return R.all(isPlainData)(R.values(value));\n  };\n  const pickPlainData = R.pipe(R.filter(isPlainData), R.clone);\n  var _default = _exports.default = Ember.Object.extend(_big.default, _data.default, _date.default, _settings.default, _statuses.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _obj = {\n    _data: null,\n    incompleteItems: null,\n    isDirtyMessage: 'not yet saved',\n    syncCount: 1,\n    isForceReloading: false,\n    isDataReloading: false,\n    init: function () {\n      this._super(...arguments);\n      this.set('incompleteItems', []);\n      this.set('_data', {});\n      this.set('childAdapters', {});\n    },\n    setupWithDefaults(originalData = {}) {\n      let defaultData;\n      if (typeof this.defaults === 'function') {\n        defaultData = this.defaults();\n      } else {\n        defaultData = this.defaults || {};\n      }\n      Object.keys(defaultData).map(key => {\n        const value = R.path(['_data', key])(this);\n        if (R.isNil(value)) {\n          this.setData(key, defaultData[key]);\n        }\n        return key;\n      });\n      Object.keys(defaultData).map(key => {\n        const value = R.path([key])(originalData);\n        if (R.isNil(value)) {\n          originalData[key] = defaultData[key];\n        }\n        return key;\n      });\n      return originalData;\n    },\n    /**\n     * problem here is that some editors will add some data on init\n     * either to add missing data or new data for new featuers.\n     * this would then always return true\n     * @returns difference between original and dirty\n     */\n    // hasDirtyData () {\n    //   const originalDirtyCopy = this.originalDirtyCopy || {}\n    //   const serializedData = this.serialize()\n    //   const difference = nventor.getObjectDifference(serializedData, originalDirtyCopy)\n    //   return difference\n    // },\n\n    getDefaultProps() {\n      const defaults = this.defaults();\n      return R.keys(defaults);\n    },\n    isRead: Ember.computed('isReadDotPath', '_data.notificationStatus', 'synced', function () {\n      const isReadDotPath = this.isReadDotPath || '_data.notificationStatus';\n      if (this?.read === true) {\n        // @TODO: remove once broad cast alerts are refactored\n        return true;\n      }\n      const isRead = R_.dotPath(isReadDotPath)(this);\n      if (isRead === true) {\n        return true;\n      }\n      if (isRead === 'true') {\n        return true;\n      }\n      if (isRead === 'read') {\n        return true;\n      }\n      return false;\n    }),\n    isOutOfDateOrDeleted: Ember.computed('isDeleted', 'isOutOfDate', function () {\n      const isOutOfDate = this.isOutOfDate;\n      const isDeleted = this.isDeleted;\n      if (isOutOfDate || isDeleted) {\n        return true;\n      }\n      return false;\n    }),\n    hasRequiredData() {\n      const requiredAttrs = this.requiredAttrs || [];\n      return R.pipe(R.propOr({}, '_data'), R.pick(requiredAttrs), R.values, R.reject(_nventor.default.isNilOrEmpty), R.length, R.equals(requiredAttrs.length))(this);\n    },\n    /**\n     * clear incomplete data properties.\n     * eg. when you have an array of child details. remove incomplete children\n     */\n    _clearIncomplete(prop) {\n      let array = this.getData(prop);\n      array = R.filter(childModel => {\n        return childModel.hasRequiredData();\n      })(array);\n      this.setData(prop, array);\n    },\n    reset(options = {}) {\n      const resetData = this.getResetData(options);\n      this.populate(resetData);\n    },\n    /**\n     * Remember `data` as the state a reset goes back to.\n     * Only plain values are kept, deep cloned; keys holding nested models fall back to defaults() on reset.\n     * @param {Object} [data] - defaults to the current data\n     */\n    snapshotSetupData(data = this._data) {\n      this.set('setupData', pickPlainData(data));\n    },\n    /**\n     * Current data with defaults restored, skipping keys excluded from reset.\n     * Values given at setup (`setupData`, see search.setupFilters) win over model defaults,\n     * so a reset goes back to the state the record started in rather than the bare model.\n     * @param {Object} [options]\n     * @param {string[]} [options.resetExcludes] - extra keys to keep as they are\n     * @returns {Object}\n     */\n    getResetData(options = {}) {\n      let defaults = this.defaults();\n      const adhocResetExcludes = R.propOr([], 'resetExcludes')(options);\n      if (RA.isNotNilOrEmpty(adhocResetExcludes)) {\n        defaults = R.omit(adhocResetExcludes)(defaults);\n      }\n      const resetExcludes = R.propOr([], 'resetExcludes')(this);\n      if (RA.isNotNilOrEmpty(resetExcludes)) {\n        defaults = R.omit(resetExcludes)(defaults);\n      }\n      const dynamicFilterKeys = R.propOr([], 'dynamicFilterKeys')(this);\n      if (RA.isNotNilOrEmpty(dynamicFilterKeys)) {\n        defaults = R.omit(dynamicFilterKeys)(defaults);\n      }\n\n      // only keys the model resets; keys outside defaults() are never touched by a reset.\n      // cloned so pickers mutating arrays in place (addObject / removeObject) never reach the snapshot\n      const setupDefaults = R.pipe(R.pick(R.keys(defaults)), R.clone)(this.setupData || {});\n      defaults = R.mergeRight(defaults, setupDefaults);\n\n      // shallow copy: R.clone strips the owner from nested models (eg. filter transactions), breaking their injected services\n      const currentData = {\n        ...this?._data\n      };\n      return R.mergeRight(currentData, defaults);\n    },\n    // setup (data) {\n    //   this.populate(data)\n    // },\n\n    isModel: true,\n    // isModel: function (obj) {\n    //   if (obj._data != null) {\n    //     return true\n    //   }\n\n    //   return false\n    // },\n\n    getAdapter(adapterName) {\n      // eg 'application/lists/main'\n      return Ember.getOwner(this).lookup(`adapter:${adapterName}`);\n    },\n    populate(data = {}, attrs = {}) {\n      // may be overridden\n      this.setProperties(attrs);\n      this.set('_data', data);\n      this.setupWithDefaults();\n      this.set('_attrs', Object.keys(attrs));\n      this.updateSynced();\n      this._super(...arguments);\n    },\n    populatePartial(data = {}, attrs = {}) {\n      // may be overridden\n      R.mapObjIndexed((value, key) => {\n        this.setData(key, value);\n      })(data);\n      R.mapObjIndexed((value, key) => {\n        this.set(key, value);\n      })(attrs);\n      this.updateSynced();\n      this._super(...arguments);\n    },\n    updateSynced() {\n      const synced = Math.random();\n      Ember.set(this, 'synced', synced);\n    },\n    serialize(options) {\n      const exclude = R.propOr([], 'exclude', options);\n      let serialized = R.clone(this._serialize(this._data));\n      R.forEach(field => {\n        delete serialized[field];\n      })(exclude);\n      return serialized;\n    },\n    _serialize(data) {\n      if (!R.is(Array, data) && !R.is(Object, data)) {\n        if (data == null) {\n          return '';\n        }\n        return data;\n      }\n      if (R.is(Array, data)) {\n        return this._serializeArray(data);\n      }\n      return this._serializeObject(data);\n    },\n    _serializeArray(data) {\n      data = data.filter(item => item != null);\n      return data.map(item => {\n        let serialized;\n        if (item._data) {\n          serialized = this._serialize(item._data);\n        } else {\n          serialized = this._serialize(item);\n        }\n        if (serialized._data) {\n          return serialized._data;\n        }\n        return serialized;\n      });\n    },\n    _serializeObject(data) {\n      const newData = {};\n      Object.keys(data).map(key => {\n        const value = data[key];\n        if (R.is(Array, value)) {\n          newData[key] = this._serializeArray(value);\n          return key;\n        }\n        if (R.prop('_data', value)) {\n          newData[key] = this._serialize(value._data);\n          return key;\n        }\n        newData[key] = this._serialize(value);\n        return key;\n      });\n      return newData;\n    },\n    // isComplete: Ember.computed('incompleteItems.[]', function () {\n    //\n    //   const incompleteItems = this.get('incompleteItems');\n    //\n    //   if (incompleteItems.length > 0) {\n    //\n    //     return false;\n    //   }\n    //\n    //   return true;\n    // }),\n\n    addToIncomplete(key, hasIncomplete) {\n      if (hasIncomplete) {\n        this._addIncomplete(key);\n      } else {\n        this._removeIncomplete(key);\n      }\n    },\n    _addIncomplete(key) {\n      const incompleteItems = this.incompleteItems;\n      const found = incompleteItems.findBy('key', key);\n      if (!found) {\n        incompleteItems.pushObject({\n          key: key\n        });\n      }\n    },\n    _removeIncomplete(key) {\n      const incompleteItems = this.incompleteItems;\n      const found = incompleteItems.findBy('key', key);\n      if (found) {\n        incompleteItems.removeObject(found);\n      }\n    },\n    /**\n     * sets validation rules\n     * @param {string} rule - the name of the rules to use for validation on the server\n     */\n    setRule: function (rule) {\n      this.setData('rule', rule);\n    },\n    getRule: function () {\n      return this.getData('rule');\n    },\n    setAdapter: function (name) {\n      this.set('adapter', name);\n    },\n    /**\n     * wrapper for get\n     * @param  {string} key\n     * @return {mixed}\n     */\n    getData: function (key, defaultValue) {\n      key = '_data.' + key;\n\n      // return nventor.confirm.get(this.get('_data'), key, defaultValue)\n      const data = this.get(key);\n      if ((data == null || data === '') && defaultValue != null) {\n        return defaultValue;\n      }\n      if (data == null) {\n        return '';\n      }\n      return data;\n    },\n    setData(key, value) {\n      if (!R.startsWith('_data.')(key)) {\n        key = '_data.' + key;\n      }\n      try {\n        Ember.set(this, key, value);\n        if (R.is(Object, value) || R.is(Array, value)) {\n          this.updateSynced();\n        }\n      } catch (error) {\n        console.error(key);\n        console.error(error);\n      }\n    },\n    getOrSetData(key, setValue) {\n      // @TODO: test\n\n      var data = this.getData(key);\n      if ((data == null || data === '') && setValue != null) {\n        this.setData(key, setValue);\n        return this.getData(key);\n      }\n      return data;\n    },\n    /**\n     * get but will set with provided default if none exists\n     */\n    getAndSet(key, defaultValue) {\n      // @TODO: test\n\n      var data = this.get(key);\n      if (data == null && defaultValue != null) {\n        this.set(key, defaultValue);\n        return this.get(key);\n      }\n      return data;\n    },\n    getDataInt() {\n      return parseInt(this.getData(...arguments)) || 0;\n    },\n    _transformUsers(data) {\n      return R.pipe(R.propOr([], 'users'), R.reject(RA.isNilOrEmpty), R.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'users',\n          data\n        });\n      }))(data);\n    },\n    _transformRelated(data) {\n      return R.pipe(R.propOr([], 'related'), R.reject(RA.isNilOrEmpty), R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'workflows/related',\n          data\n        });\n      }))(data);\n    },\n    addRelated(data = {}) {\n      data = data || {};\n      const related = this.getOrSetData('related', []);\n\n      // get last index\n      let index = 0;\n      const last = related.get('lastObject');\n      if (RA.isNotNilOrEmpty(last)) {\n        index = last?._data?.index + 1;\n      }\n      data.index = index;\n      const model = this.dataManager.setAsRecord({\n        adapterName: 'workflows/related',\n        data\n      });\n      related.pushObject(model);\n      this.setData('related', related);\n      return model;\n    },\n    removeRelated(relatedModel) {\n      const related = this.getData('related') || [];\n      related.removeObject(relatedModel);\n    },\n    loadSelected({\n      props\n    }, selected) {\n      R.mapObjIndexed((toProp, fromProp) => {\n        const fromValue = selected.getData(fromProp);\n        this.set(toProp, fromValue);\n      })(props);\n    },\n    unloadSelected({\n      props\n    }, selected) {\n      R.mapObjIndexed((toProp, fromProp) => {\n        this.set(toProp, '');\n      })(props);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateSynced\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateSynced\"), _obj), _applyDecoratedDescriptor(_obj, \"setData\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"setData\"), _obj), _applyDecoratedDescriptor(_obj, \"getOrSetData\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"getOrSetData\"), _obj), _applyDecoratedDescriptor(_obj, \"addRelated\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"addRelated\"), _obj), _applyDecoratedDescriptor(_obj, \"removeRelated\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"removeRelated\"), _obj), _applyDecoratedDescriptor(_obj, \"loadSelected\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"loadSelected\"), _obj), _applyDecoratedDescriptor(_obj, \"unloadSelected\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"unloadSelected\"), _obj), _obj));\n});","define(\"client/pods/big/service\", [\"exports\", \"client/utils/nventor\", \"ramda\", \"ramda-extension\"], function (_exports, _nventor, R, R_) {\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); } // import * as RA from 'ramda-adjunct'\n  class BigService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"toFixed\", R.curry((rounding, bigNumber) => {\n        bigNumber = this.newBig(bigNumber);\n        if (rounding == null) {\n          rounding = 8;\n        }\n        rounding = parseInt(rounding);\n        return bigNumber.toFixed(rounding);\n      }));\n      _defineProperty(this, \"autoRound\", R.curry((rounding, bigNumber) => {\n        bigNumber = this.newBig(bigNumber);\n        if (rounding === 0) {\n          return this.toFixed(rounding, bigNumber);\n        }\n        return R.pipe(this.toFixed(rounding), R.dropLastWhile(x => x === '0'), R.dropLastWhile(x => x === '.'))(bigNumber);\n      }));\n      _defineProperty(this, \"sumArray\", R.reduce((accumulator, amt) => accumulator.plus(amt), new Big(0)));\n      _defineProperty(this, \"sumPropAndAutoRound\", R.curry((rounding, dotPath, arrayOfObjects) => {\n        arrayOfObjects = arrayOfObjects || [];\n        return R.pipe(R.map(R_.dotPath(dotPath)), R.reject(_nventor.default.isNilOrEmpty), this.sumArray, this.autoRound(rounding))(arrayOfObjects);\n      }));\n      _defineProperty(this, \"sumPropAndRound\", R.curry((rounding, dotPath, arrayOfObjects) => {\n        arrayOfObjects = arrayOfObjects || [];\n        return R.pipe(R.map(R_.dotPath(dotPath)), R.reject(_nventor.default.isNilOrEmpty), this.sumArray, this.toFixed(rounding))(arrayOfObjects);\n      }));\n      _defineProperty(this, \"sumProp\", R.curry((dotPath, arrayOfObjects) => {\n        arrayOfObjects = arrayOfObjects || [];\n        return R.pipe(R.map(R_.dotPath(dotPath)), R.reject(_nventor.default.isNilOrEmpty), this.sumArray)(arrayOfObjects);\n      }));\n      _defineProperty(this, \"eq\", R.curry((value, bigNumber) => {\n        bigNumber = this.newBig(bigNumber);\n        return bigNumber.eq(value);\n      }));\n    }\n    /**\n     * create new big number\n     * @param  {string|integer|float} number\n     * @return {class} big number class instance\n     */\n    newBig(number) {\n      number = parseFloat(number) || 0;\n      return new Big(number || 0);\n    }\n\n    /**\n     * create new big number from object's property value\n     * @param  {string} property name\n     * @return {class} big number class instance\n     */\n    getBig(prop) {\n      var number = parseFloat(this.get(prop));\n      return new Big(number || 0);\n    }\n\n    /**\n     * create new big number from object's _data.property value\n     * @param  {string} property name\n     * @return {class} big number class instance\n     */\n    getDataBig(prop, model) {\n      var number = parseFloat(model.getData(prop));\n      return new Big(number || 0);\n    }\n  }\n  _exports.default = BigService;\n});","define(\"client/pods/billing/addons/invoices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/billing/addons/invoices/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/billing/add-ons/invoices',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/billing/addons/invoices/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {};\n    }\n  });\n});","define(\"client/pods/billing/credits/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/billing/credits/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/billing/credits',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/billing/credits/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {};\n    }\n  });\n});","define(\"client/pods/billing/credits/settings/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/billing/credits/settings/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/billing/credits/settings',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/billing/credits/settings/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        isEnabled: false,\n        autoTopupAmount: 1000,\n        whenAmountBelow: 300\n      };\n    }\n  });\n});","define(\"client/pods/billing/lists/auto-topup-amounts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 500,\n        label: '500'\n      }, {\n        value: 1000,\n        label: '1000'\n      }, {\n        value: 1500,\n        label: '1500'\n      }, {\n        value: 3000,\n        label: '3000'\n      }, {\n        value: 5000,\n        label: '5000'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/billing/lists/auto-topup-when-amounts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 0,\n        label: '0'\n      }, {\n        value: 300,\n        label: '300'\n      }, {\n        value: 500,\n        label: '500'\n      }, {\n        value: 1000,\n        label: '1000'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/billing/lists/sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const list = [{\n        value: 'plan',\n        label: 'billing_plan',\n        resource: 'api/protected/billing/sub-panels/plans',\n        component: 'billing/panels-display/plans',\n        tabType: 'replaceSubTab'\n      }, {\n        value: 'invoices',\n        label: 'billing_invoices_history',\n        resource: 'api/protected/billing/sub-panels/invoices-history',\n        component: 'billing/panels-display/invoices-history',\n        tabType: 'replaceSubTab'\n      }\n      // @TODO: Enable when we implement and test backend credits\n      // {\n      //   value: 'credits',\n      //   label: 'billing_credits_history',\n      //   resource: 'api/protected/billing/sub-panels/credits-history',\n      //   component: 'billing/panels-display/credits-history',\n      //   tabType: 'replaceSubTab'\n      // }\n      ];\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/billing/payment-methods/credit-cards/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/billing/payment-methods/credit-cards/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/billing/payment-methods/credit-cards',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/billing/payment-methods/credit-cards/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        ccHolder: '',\n        email: '',\n        phoneNumber: '',\n        primeData: {\n          prime: '',\n          lastfour: ''\n        }\n      };\n    }\n  });\n});","define(\"client/pods/billing/plans/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/billing/plans/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/billing/plans',\n    modelObj: _model.default,\n    idParam: '_key'\n  });\n});","define(\"client/pods/billing/plans/invoices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/billing/plans/invoices/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/billing/plans/invoices',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/billing/plans/invoices/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/billing/plans/invoices/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/billing/plans/invoices/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        keys: [],\n        tags: [],\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/billing/plans/invoices/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {};\n    }\n  });\n});","define(\"client/pods/billing/plans/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    defaults() {\n      return {\n        recurringSchedules: []\n      };\n    },\n    /**\n     * Normalize plan payload so nested recurring schedules are Ember records\n     * with a stable `recurringScheduleKey` for list dropdowns.\n     * @param {Object} [data={}] - raw billing plan / campaign-detail payload\n     * @param {Object[]} [data.recurringSchedules] - schedule refs joined from product or campaign detail\n     * @param {string} [data.recurringSchedules[].recurringScheduleKey] - schedule key when present on the product/detail ref\n     * @param {string} [data.recurringSchedules[]._key] - schedule document key from the schedules collection\n     * @param {string} [data.recurringSchedules[].label] - human-readable schedule label\n     * @param {Object} [attrs={}] - optional model attrs passed through to BaseModel.populate\n     * @return {void}\n     */\n    populate(data = {}, attrs = {}) {\n      data.recurringSchedules = this._transformRecurringSchedules(data);\n      this._super(data, attrs);\n    },\n    /**\n     * Turn API schedule plain objects into `recurring/schedules` records.\n     * Fills `recurringScheduleKey` from `_key` when the join only returns `_key`.\n     * @param {Object} data - plan payload being populated\n     * @param {Object[]} [data.recurringSchedules] - raw schedule objects from getPlans\n     * @param {string} [data.recurringSchedules[].recurringScheduleKey] - preferred schedule id\n     * @param {string} [data.recurringSchedules[]._key] - fallback schedule id\n     * @param {string} [data.recurringSchedules[].label] - schedule label for dropdowns\n     * @return {Object[]} Ember schedule models for `_data.recurringSchedules`\n     * @return {Object} return[]._data - schedule fields on each model\n     * @return {string} return[]._data.recurringScheduleKey - id used by Lists::ListDropdown\n     * @return {string} return[]._data.label - label used by Lists::ListDropdown\n     */\n    _transformRecurringSchedules(data) {\n      return R.pipe(R.propOr([], 'recurringSchedules'), R.map(schedule => {\n        const scheduleData = RA.isNilOrEmpty(schedule) ? {} : {\n          ...schedule\n        };\n        if (RA.isNilOrEmpty(scheduleData.recurringScheduleKey) && RA.isNotNilOrEmpty(scheduleData._key)) {\n          scheduleData.recurringScheduleKey = scheduleData._key;\n        }\n        return this.dataManager.setAsRecord({\n          adapterName: 'recurring/schedules',\n          data: scheduleData\n        });\n      }))(data);\n    }\n  });\n});","define(\"client/pods/billing/service\", [\"exports\", \"ember-concurrency-decorators\"], function (_exports, _emberConcurrencyDecorators) {\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 BillingService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class BillingService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n    }\n    /**\n     * Fetches invoices for the specified add-on provider.\n     *\n     * @param {'systemlead'} provider='systemlead' - The provider for which invoices need to be fetched. Allowed value: 'systemlead'.\n     * @returns {Generator} The task generator.\n     */\n    *fetchInvoicesByAddOnProviderTask(provider = 'systemlead') {\n      return yield this.crud.findTask.perform({\n        adapterName: 'billing/addons/invoices',\n        appendPath: provider\n      });\n    }\n    /**\n     * Subscribe to AddOn.\n     *\n     * @param {'systemlead'} provider='systemlead' - The provider for which invoices need to be fetched. Allowed value: 'systemlead'.\n     * @param {string} addon - AddOn Plan Key\n     * @returns {Generator} The task generator.\n     */\n    *createAddOnInvoiceByProviderTask(provider = 'systemlead', addon) {\n      return yield this.server.call('POST', `api/protected/billing/add-ons/invoices/${provider}`, {\n        provider,\n        addon\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchInvoicesByAddOnProviderTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchInvoicesByAddOnProviderTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createAddOnInvoiceByProviderTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"createAddOnInvoiceByProviderTask\"), _class.prototype), _class);\n});","define(\"client/pods/blogs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/blogs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/blogs',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/blogs/details/batch/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/blogs/details/batch',\n    idParam: false,\n    serialize(details) {\n      return R.map(detail => {\n        return this._serialize(detail._data);\n      })(details);\n    },\n    updateIndexes({\n      data,\n      appendPath,\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'updatePath',\n        appendPath,\n        serverType\n      });\n      data = R.map(R.pick(['_key', 'index']))(data);\n      data = this._addAdapterInfo(data, appendPath);\n      const payload = {\n        batch: data\n      };\n      try {\n        return this.ajax.PATCH(path, payload);\n      } catch (e) {\n        console.error(e);\n      }\n    }\n  });\n});","define(\"client/pods/blogs/details/batch/statuses/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/blogs/details/master',\n    idParam: false,\n    serialize(details) {\n      const batch = R.map(detail => {\n        return {\n          _key: detail?._data._key\n        };\n      })(details);\n      return {\n        batch\n      };\n    }\n  });\n});","define(\"client/pods/blogs/details/batch/tags/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/blogs/details/master',\n    idParam: false,\n    serialize(details) {\n      const batch = R.map(detail => {\n        return {\n          _key: detail?._data._key\n        };\n      })(details);\n      return {\n        batch\n      };\n    }\n  });\n});","define(\"client/pods/blogs/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/blogs/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/blogs/filters/model\", [\"exports\", \"client/pods/filters/model\", \"ramda\"], function (_exports, _model, R) {\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    defaults() {\n      return {\n        keys: [],\n        tags: [],\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    },\n    get resultsSortedByKeys() {\n      if (!this._data.keys) {\n        return this.results;\n      }\n      const keys = R.pathOr([], ['_data', 'keys'])(this);\n      return R.pipe(R.propOr([], 'results'), R.sortBy(R.pipe(R.path(['_data', '_key']), R.indexOf(R.__, keys))))(this);\n    },\n    reIndexResults() {\n      const keys = R.pathOr([], ['_data', 'keys'])(this);\n      R.pipe(R.propOr([], 'results'), R.sortBy(R.pipe(R.path(['_data', '_key']), R.indexOf(R.__, keys))), R.mapObjIndexed((value, index) => {\n        value.set('_data.index', parseInt(index));\n        return value;\n      }), R.values)(this);\n    }\n  });\n});","define(\"client/pods/blogs/lists/bigordr-blogs-slider-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'slider',\n        label: 'slider'\n      }, {\n        value: 'grid',\n        label: 'images_grid'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'description',\n        label: 'description'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'timestampZ_latest',\n        label: 'updated date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: this.get('constants.status.active'),\n        label: this.get('constants.status.active')\n      }, {\n        value: this.get('constants.status.inactive'),\n        label: this.get('constants.status.inactive')\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/font-alignment/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _adaptersNew, _nventor, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: _constants.default.alignment.left,\n        label: 'align_left'\n      }, {\n        value: _constants.default.alignment.center,\n        label: 'align_center'\n      }, {\n        value: _constants.default.alignment.right,\n        label: 'align_right'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/font-family/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _adaptersNew, _nventor, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const ss = ', sans-serif';\n      const ms = ', monospace';\n      const data = [{\n        value: `Arial Black, Gadget${ss}`,\n        label: 'Arial Black'\n      }, {\n        value: `Arial, Helvetica${ss}`,\n        label: 'Arial'\n      }, {\n        value: `Brush Script MT${ss}`,\n        label: 'Brush Script MT'\n      }, {\n        value: `Comic Sans MS, cursive${ss}`,\n        label: 'Comic Sans MS'\n      }, {\n        value: `Courier New, Courier${ms}`,\n        label: 'Courier New'\n      }, {\n        value: `Georgia, serif${ss}`,\n        label: 'Georgia'\n      }, {\n        value: `Helvetica${ss}`,\n        label: 'Helvetica'\n      }, {\n        value: `Impact, Charcoal${ss}`,\n        label: 'Impact'\n      }, {\n        value: `Lucida Sans Unicode, Lucida Grande${ss}`,\n        label: 'Lucida Sans Unicode'\n      }, {\n        value: `Noto Sans TC${ss}`,\n        label: 'Noto Sans TC'\n      }, {\n        value: `Noto Serif TC${ss}`,\n        label: 'Noto Serif TC'\n      }, {\n        value: `Tahoma, Geneva${ss}`,\n        label: 'Tahoma'\n      }, {\n        value: `Times New Roman, Times, serif${ss}`,\n        label: 'Times New Roman'\n      }, {\n        value: `Trebuchet MS, Helvetica${ss}`,\n        label: 'Trebuchet MS'\n      }, {\n        value: `Verdana, Geneva${ss}`,\n        label: 'Verdana'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/font-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'small',\n        label: 'small'\n      }, {\n        value: 'medium',\n        label: 'medium'\n      }, {\n        value: 'large',\n        label: 'large'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/font-weight/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'normal',\n        label: 'font_weight_normal'\n      }, {\n        value: 'bold',\n        label: 'font_weight_bold'\n        // }, {\n        //   value: 'lighter',\n        //   label: 'font_weight_lighter'\n        // }, {\n        //   value: 'bolder',\n        //   label: 'font_weight_bolder'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/line-count/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: '1'\n      }, {\n        value: 2,\n        label: '2'\n      }, {\n        value: 3,\n        label: '3'\n      }, {\n        value: 4,\n        label: '4'\n      }, {\n        value: 5,\n        label: '5'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/blogs/lists/menu/actions/dash',\n          component: 'blogs/panels-dash',\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'refreshDash',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }, {\n          resource: 'api/protected/blogs/lists/menu/actions/new',\n          component: 'blogs/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'new',\n          tabType: 'reuseSubTab',\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/blogs/lists/styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'style1',\n        label: 'blogs_style1'\n        // svgIconTop: '<svg id=\"a\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 150 150\"><defs><style>.b{fill:#58585b;}</style></defs><path class=\"b\" d=\"M112.5,112.5H37.5V37.5H112.5V112.5Zm-73.53-1.47H111.03V38.97H38.97V111.03Z\"/><g><path class=\"b\" d=\"M63.26,67.21v18.12h-2.77v-14.79c-1.09,1.04-2.49,1.8-4.16,2.28v-2.74c.81-.2,1.65-.56,2.56-1.07,.91-.56,1.67-1.14,2.28-1.8h2.08Z\"/><path class=\"b\" d=\"M71.4,72.21l2.89,4.16,2.87-4.16h3.15l-4.54,6.14,5.1,6.98h-3.15l-3.43-5-3.45,5h-3.17l5.13-6.98-4.54-6.14h3.15Z\"/><path class=\"b\" d=\"M90.86,67.21v18.12h-2.77v-14.79c-1.09,1.04-2.49,1.8-4.16,2.28v-2.74c.81-.2,1.65-.56,2.56-1.07,.91-.56,1.67-1.14,2.28-1.8h2.08Z\"/></g></svg>'\n      }, {\n        value: 'style2',\n        label: 'blogs_style2'\n        // svgIconTop: '<svg id=\"a\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 150 150\"><defs><style>.b{fill:#58585b;}</style></defs><path class=\"b\" d=\"M124.95,112.5H25.05V37.5H124.95V112.5Zm-98.42-1.47H123.47V38.97H26.53V111.03Z\"/><g><path class=\"b\" d=\"M63.14,66.9v11.98h2.74v2.21h-2.74v3.93h-2.64v-3.93h-8.83v-2.61l8.93-11.57h2.54Zm-9.21,11.98h6.57v-8.48h-.08l-6.5,8.48Z\"/><path class=\"b\" d=\"M72.15,71.89l2.89,4.16,2.87-4.16h3.15l-4.54,6.14,5.1,6.98h-3.15l-3.42-5-3.45,5h-3.17l5.13-6.98-4.54-6.14h3.15Z\"/><path class=\"b\" d=\"M95.82,67.86c1.07,.89,1.62,2.11,1.62,3.65,0,1.98-1.01,3.32-2.99,3.98,1.07,.33,1.88,.84,2.44,1.5,.61,.69,.91,1.57,.91,2.64,0,1.67-.58,3.04-1.73,4.11-1.22,1.07-2.82,1.62-4.75,1.62s-3.35-.48-4.47-1.42c-1.27-1.07-1.98-2.61-2.13-4.64h2.79c.05,1.22,.43,2.16,1.19,2.82,.66,.61,1.52,.91,2.59,.91,1.17,0,2.11-.36,2.82-1.01,.61-.61,.94-1.34,.94-2.26,0-1.07-.33-1.85-.99-2.36-.61-.51-1.52-.76-2.71-.76h-1.32v-2.08h1.29c1.12,0,1.95-.25,2.51-.74,.56-.48,.86-1.19,.86-2.11s-.28-1.6-.79-2.08c-.56-.51-1.4-.74-2.46-.74s-1.95,.28-2.56,.84c-.61,.56-.99,1.4-1.09,2.51h-2.71c.15-1.8,.81-3.2,2-4.21,1.12-1.01,2.56-1.5,4.34-1.5s3.27,.43,4.39,1.32Z\"/></g></svg>'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/blogs/lists/tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/blogs/tags',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/blogs/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/uploads\", \"client/mixins/statuses\"], function (_exports, _model, _uploads, _statuses) {\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(_uploads.default, _statuses.default, {\n    defaults() {\n      return {\n        index: 1,\n        isCanonical: true,\n        customUrl: ''\n      };\n    },\n    index: Ember.computed('_data.index', function () {\n      return this._data.index;\n    }),\n    displayIndex: Ember.computed('_data.index', function () {\n      return this._data.index; // cannot + 1, because when editing will not +1\n    })\n  });\n});","define(\"client/pods/bsp/virtual-accounts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/bsp/virtual-accounts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/bsp/virtual-accounts',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/bsp/virtual-accounts/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        merchantId: '',\n        hash: {\n          A1: '',\n          A2: '',\n          B1: '',\n          B2: ''\n        }\n      };\n    }\n  });\n});","define(\"client/pods/campaigns-products/service\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"client/utils/nventor\", \"ember-concurrency\"], function (_exports, R, RA, R_, _nventor, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Service.extend({\n    intl: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    dataManager: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    server: Ember.inject.service(),\n    bigService: Ember.inject.service('big'),\n    constants: Ember.inject.service(),\n    unknownStatusClass: 'is-danger',\n    init() {\n      this._super('...arguments');\n      this.set('statusClasses', {\n        [this.get('constants.productsStatus.active')]: 'is-primary',\n        [this.get('constants.productsStatus.inactive')]: 'is-danger',\n        [this.get('constants.productsStatus.preOrder')]: 'is-warning',\n        [this.get('constants.productsStatus.outOfStock')]: 'is-black',\n        [this.get('constants.productsStatus.draft')]: 'is-danger',\n        [this.get('constants.productsStatus.soldOut')]: 'is-black'\n      });\n    },\n    getStatusClass(status) {\n      const statusClasses = this.statusClasses;\n      return R.propOr(this.unknownStatusClass, status, statusClasses);\n    },\n    getCampaignDetailModel(data = {}) {\n      const detail = this.crud.setupNewRecord({\n        adapterName: 'channels/shop/campaigns/details',\n        data\n      });\n      return detail;\n    },\n    hasDuplicate(campaignOrAutomationModel, item, product) {\n      // just do it for automations for now?\n      const adapterName = campaignOrAutomationModel?.adapterName ?? '';\n      if (!R.includes('automations', adapterName)) {\n        return false;\n      }\n      const details = campaignOrAutomationModel?._data?.details ?? [];\n      const hasEqualItemKey = R.pathEq(['_data', 'itemKey'], product.getData('_key'));\n      const found = R.find(hasEqualItemKey)(details);\n      if (RA.isNilOrEmpty(found)) {\n        return false;\n      }\n      const msg = this.get('intl').t('duplicate product');\n      window.alert(msg);\n      item.resetDetail(item);\n      return true;\n    },\n    addProductTask: (0, _emberConcurrency.task)(function* ({\n      campaign,\n      product,\n      campaignDetail\n    }) {\n      let detail = campaignDetail;\n      if (!campaignDetail) {\n        detail = campaign.addDetail({\n          status: this?.constants?.productsStatus?.draft\n        });\n      }\n      try {\n        yield this.loadProductTask.perform(campaign, detail, product);\n        const created = yield this.crud.createRecordTask.perform({\n          adapterName: detail.adapterName,\n          model: detail\n        });\n        if (created) {\n          product.set('campaignDetail', created);\n        }\n        if (!created) {\n          product.set('isSelected', false);\n        }\n        return created;\n      } catch (e) {\n        product.set('isSelected', false);\n        console.log('error', e);\n        return false;\n      }\n    }),\n    removeProductTask: (0, _emberConcurrency.task)(function* ({\n      campaign,\n      product\n    }) {\n      try {\n        const campaignDetail = product.campaignDetail;\n        if (campaignDetail) {\n          const status = campaignDetail?._data?.status;\n          const removed = yield this.crud.removeRecordTask.perform({\n            adapterName: campaignDetail.adapterName,\n            model: campaignDetail,\n            noConfirm: R.equals(status, this.constants.productsStatus.draft)\n          });\n          if (removed) {\n            product.set('campaignDetail', '');\n          } else {\n            product.set('isSelected', true);\n          }\n        }\n      } catch (e) {\n        product.set('isSelected', true);\n        console.log('error', e);\n        return false;\n      }\n    }),\n    loadProductTask: (0, _emberConcurrency.task)(function* (campaignOrAutomationModel, item, product) {\n      if (!this.hasDuplicate(campaignOrAutomationModel, item, product)) {\n        return yield this._loadProductTask.perform(...arguments);\n      }\n      return item;\n    }),\n    _loadProductTask: (0, _emberConcurrency.task)(function* (campaignOrAutomationModel, item, product, {\n      isResync = false\n    } = {}) {\n      yield item.loadProduct(campaignOrAutomationModel, item, product, {\n        isResync\n      });\n      if (R_.dotPathEq('_data.isSet', true, item)) {\n        item.recalculatePriceForSet(item, item);\n        item.setData('isSetNew', true);\n      }\n      const isAutomationMustAdd = campaignOrAutomationModel?.isAutoAdd || false;\n      if (isAutomationMustAdd) {\n        // set customizations to off\n        item.setData('hasCustomizations', false);\n        item.setData('priceDiscounted', '0');\n        item.setData('priceFinal', '0');\n        item.setData('onSale', 'on');\n        if (item.getData('isSet') || item.getData('isSetNew')) {\n          const setDetails = item.getData('setDetails') || [];\n          R.forEach(detailChild => {\n            detailChild.setData('priceDiscounted', '0');\n            detailChild.setData('priceFinal', '0');\n            detailChild.setData('onSale', 'on');\n          })(setDetails);\n        }\n      }\n      if (R_.dotPathEq('_data.isSetWithChoices', true, item)) {\n        R.forEach(choice => {\n          const isSetPriceOnBundle = R.pathOr('', ['_data', 'isSetPriceOnBundle'], choice);\n          if (!isSetPriceOnBundle) {\n            choice.setData('isSetPriceOnBundle', false);\n          }\n        })(_nventor.default.ensurePathOr([], ['_data', 'choices'], item));\n        item.recalculatePrice(item);\n      }\n      return item;\n    }),\n    reSyncProductTask: (0, _emberConcurrency.task)(function* (campaignOrAutomationModel, item, itemKey, {\n      onAfter\n    } = {}) {\n      const product = yield this.crud.findTask.perform({\n        adapterName: 'products',\n        appendPath: `/${itemKey}`\n      });\n      return this._loadProductTask.perform(campaignOrAutomationModel, item, product, {\n        isResync: true\n      });\n    }).drop(),\n    fetchDocHistoryTask: (0, _emberConcurrency.task)(function* (docModel, preferredKey, product, itemKey) {\n      const docType = docModel.getData('docType');\n      const docName = docModel.getData('docName');\n      const contactKey = docModel.getData('contactKey');\n      const contact = docModel.getData('contact');\n      const priceHistoryData = yield this.getHistoryTask.perform({\n        docType,\n        docName,\n        contact,\n        contactKey,\n        itemKey\n      });\n      let preferredHistoryData;\n      preferredHistoryData = this.getLatestFor(preferredKey, priceHistoryData);\n      if (!preferredHistoryData) {\n        preferredHistoryData = product.serialize({\n          exclude: ['_key', '_rev', '_id']\n        });\n      }\n      return {\n        priceHistoryData,\n        preferredHistoryData\n      };\n    }),\n    fetchPurchasesHistoryTask: (0, _emberConcurrency.task)(function* (docModel, preferredKey, product, itemKey) {\n      docModel.setData('docType', 'purchases');\n      docModel.setData('docName', 'invoices');\n      return yield this.fetchDocHistoryTask.perform(docModel, preferredKey, product, itemKey);\n    }),\n    getHistoryTask: (0, _emberConcurrency.task)(function* ({\n      docType,\n      docName,\n      contact,\n      contactKey,\n      item,\n      itemKey,\n      docTypes\n    }) {\n      const data = {\n        contact,\n        contactKey,\n        item,\n        itemKey,\n        docTypes\n      };\n      const results = yield this.server.call('GET', `api/protected/documents/data/prices/${docType}/${docName}`, data);\n      return R.propOr({}, 'data', results);\n    }),\n    fetchHistoryCampaignsTask: (0, _emberConcurrency.task)(function* (product, itemKey, isSet, isSetWithChoices, campaignKey = '', options = {}) {\n      const isAutomation = options?.isAutomation || false;\n      const thenAction = options?.thenAction;\n      const results = yield this.server.call('GET', 'api/protected/documents/data/prices/campaigns', {\n        itemKey,\n        isSet,\n        isSetWithChoices,\n        isAutomation,\n        thenAction\n      });\n      const priceHistoryData = R.propOr({}, 'data', results);\n      let prop = 'campaigns';\n      if (isAutomation) {\n        prop = 'automations';\n      }\n      let preferredHistoryData = this.getLatestFor(prop, priceHistoryData);\n      if (!preferredHistoryData && RA.isNotNilOrEmpty(product)) {\n        preferredHistoryData = product.serialize({\n          exclude: ['_key', '_rev', '_id']\n        });\n      }\n      let preferredPriceData = preferredHistoryData || {};\n      // @TODO: move to backend\n      const docsHistoryPrice = R.pipe(R.pathOr([], ['history', 'documents']), R.sortWith([R.descend(R.prop('dateZ')), R.descend(R.prop('timestampZ_latest'))]))(priceHistoryData);\n      if (RA.isNilOrEmpty(preferredPriceData) && RA.isNotNilOrEmpty(docsHistoryPrice)) {\n        // this fetches latest for current campaign. only applicable if item has been removed from campaign, and wanting to put back\n        // the problem here is any other campaign is created, it will always get the price from the other campaign.\n        // so this block is never really used.\n        // ideally there should be a setting, ALWAYS GET FROM CURRENT CAMPAIGN or ALWAYS GET FROM ANY CAMPAIGN (by latest)\n        // if (campaignKey) {\n        //   preferredPriceData = R.find(\n        //     R.propEq('sourceKey', campaignKey)\n        //   )(docsHistoryPrice)\n        // }\n\n        // currenlty alway get from ANY LATEST CAMPAIGN\n        if (RA.isNilOrEmpty(preferredPriceData)) {\n          preferredPriceData = R.find(R.pipe(R.prop('sourceKey'), RA.isNotNilOrEmpty))(docsHistoryPrice);\n        }\n      }\n      return {\n        priceHistoryData,\n        preferredHistoryData: preferredPriceData\n      };\n    }),\n    getFor(prop, historyData) {\n      return R.pathOr([], ['history', prop], historyData);\n    },\n    getLatestFor(prop, historyData) {\n      // return R.pathOr([], ['history', prop], historyData)\n      const forProp = this.getFor(prop, historyData);\n      let found = false;\n      if (!R.isEmpty(forProp)) {\n        found = R.head(forProp);\n      }\n      return found;\n    },\n    getLatestDetail(props, historyData) {\n      let found = '';\n      R.forEach(prop => {\n        if (!found) {\n          const forProp = this.getFor(prop, historyData);\n          if (!R.isEmpty(forProp)) {\n            found = R.head(forProp);\n          }\n        }\n      }, props);\n      return found || false;\n    },\n    setPrice(model, historyData, onHideDropdown) {\n      model.setPrice(historyData);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    },\n    setDetailPrice(campaignOrAutomationModel, detail, child, historyData, onHideDropdown) {\n      detail.setDetailPrice(campaignOrAutomationModel, child, historyData);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    },\n    selectChildHistoryPrice(campaignOrAutomationModel, parent, detail, child, historyData, onHideDropdown) {\n      parent.setChildProductPrice(campaignOrAutomationModel, child, historyData);\n      if (R.pathEq(['_data', 'isSet'], true, detail)) {\n        parent.recalculatePriceForSet(detail, parent);\n      }\n      if (R.pathEq(['_data', 'isSetWithChoices'], true, detail)) {\n        parent.recalculatePrice(detail);\n      }\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    },\n    getTaxRate(docType, taxes, product) {\n      // @TODO: should get taxRateKey from product to fetch tax rate from lists.tax\n      // also fetch tax rate label from lists.tax\n      // if no taxRate from product then get from settings\n      // PRO: if tax rate is removed, then assume taxrate no longer available\n      //      but if using taxrate and label stored in products, it will use old taxrate/label instead of settings\n      // CON: requires additional step to search lists.tax\n\n      const taxRateKey = product.getData(`${docType}TaxRateKey`);\n      let taxRate;\n      if (taxRateKey) {\n        const productTax = taxes.findBy('_data._key', taxRateKey);\n        if (productTax) {\n          taxRate = productTax.getData('value');\n        }\n      }\n      if (!taxRateKey || taxRateKey === 'auto') {\n        const defaultTaxRate = this.settings.getDefaultTaxRate(taxes);\n        taxRate = defaultTaxRate;\n      }\n      if (taxRateKey === 'none') {\n        taxRate = 0;\n      }\n      return taxRate;\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    emails: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    resourcePath: 'api/protected/channels/shop/campaigns',\n    idParam: '_id',\n    modelObj: _model.default,\n    serialize(model) {\n      const data = this._super(model);\n\n      // dont allow '__' in url\n      let url = data.shopUrl || '';\n      url = R.replace(/__/g, '')(url);\n      url = R.replace(/--/g, '')(url);\n      data.shopUrl = url;\n      data.orderedEmailCopyTo = this.emails.splitToArray(data.orderedEmailCopyTo);\n      data.orderMessagesEmailCopyTo = this.emails.splitToArray(data.orderMessagesEmailCopyTo);\n      const settingsData = this.settings?.settingsModel?._data;\n      if (data.useDefaultsCheckoutSummaryDescription) {\n        data.checkoutSummaryDescription = R.propOr('', 'shopCheckoutSummaryDescription')(settingsData);\n      }\n      if (data.useDefaultsCheckoutDetailsDescription) {\n        data.checkoutDetailsDescription = R.propOr('', 'shopCheckoutDetailsDescription')(settingsData);\n      }\n      if (data.useDefaultsCheckoutPaymentDescription) {\n        data.checkoutPaymentDescription = R.propOr('', 'shopCheckoutPaymentDescription')(settingsData);\n      }\n      delete data.details;\n      return data;\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/advanced-template/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/websites/pages/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/campaigns/automations/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/automations/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/automations',\n    modelObj: _model.default,\n    idParam: '_id',\n    serialize(model) {\n      const data = this._super(model);\n      const detailsRequiredAttrs = ['itemKey'];\n      const details = data.details || [];\n      data.details = details.filter(detail => this.isNotEmptyDetail(detail, detailsRequiredAttrs));\n      return data;\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/automations/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/automations/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/automations/collection',\n    modelObj: _model.default,\n    idParam: 'master',\n    idPrefix: 'automations/collection'\n  });\n});","define(\"client/pods/channels/shop/campaigns/automations/collection/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/sortable-details\", \"ramda\"], function (_exports, _model, _sortableDetails, R) {\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(_sortableDetails.default, {\n    toSortProp: '_data.automations',\n    toSortArray: Ember.computed('_detailsArray.[]', 'synced', function () {\n      return this.get('_data.automations');\n    }),\n    init() {\n      this._super(...arguments);\n      this.set('childAdapters.automations', 'channels/shop/campaigns/automations');\n    },\n    populate(data, attrs) {\n      data.automations = this._transformAutomations(data.automations);\n      this._super(data, attrs);\n    },\n    _transformAutomations(automations = []) {\n      return automations.map(automation => {\n        return this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.automations'),\n          data: automation\n        });\n      });\n    },\n    newBlankAutomation(data) {\n      return this.dataManager.newRecord({\n        adapterName: this.get('childAdapters.automations'),\n        data: data\n      });\n    },\n    _nextIndex(details = []) {\n      return details.length + 1;\n    },\n    pushAutomation(automationModel) {\n      const automations = this.getData('automations') || [];\n      automationModel.setData('index', this._nextIndex(automations));\n      automations.pushObject(automationModel);\n    },\n    removeAutomation(automation) {\n      // @TODO: is this used?\n      const automations = this.getData('automations');\n\n      // remove detail\n      automations.removeObject(automation);\n\n      // recalulate index for each detail\n      automations.forEach((automation, index) => {\n        automation.setData('index', index + 1);\n      });\n    },\n    sorted: Ember.computed('_data.automations.@each.synced', 'synced', function () {\n      const detailsArray = R.pipe(R.pathOr([], ['_data', 'automations']), R.reject(R.propEq('isDeleted', true)))(this);\n      let sortArrayInstructions = this.sortArrayInstructions || [{\n        direction: 'ascend',\n        prop: this.indexProp\n      }];\n      if (!R.is(Array, sortArrayInstructions)) {\n        sortArrayInstructions = [sortArrayInstructions];\n      }\n      sortArrayInstructions = R.map(instructions => {\n        const pathArray = R.split('.', instructions.prop);\n        if (instructions.direction === 'descend') {\n          return R.descend(R.path(pathArray));\n        }\n        return R.ascend(R.path(pathArray));\n      })(sortArrayInstructions);\n      return R.sortWith(sortArrayInstructions)(detailsArray);\n    })\n  });\n});","define(\"client/pods/channels/shop/campaigns/automations/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/automations/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/automations/details',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/campaigns/automations/details/model\", [\"exports\", \"client/mixins/products-children\", \"client/pods/channels/shop/campaigns/details/model\"], function (_exports, _productsChildren, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelShopCampaignsAutomationsDetailsBaseModel = _model.default.extend(_productsChildren.default, {\n    init() {\n      this._super(...arguments);\n      this.set('requiredAttrs', ['_data.itemKey', '_data.item', '_data.priceDiscounted']);\n    },\n    defaults() {\n      return {\n        productSync: ['item', 'templates', 'productTags', 'productDisplayTags', 'description', 'additionalDescription', 'recurringSchedules'],\n        automationQty: 1,\n        templates: [],\n        status: this.get('constants.status.active'),\n        deliveryDateSettings: this.get('constants.togglesAuto.auto'),\n        // showOriginalPrice: this.get('constants.togglesAuto.auto'),\n        onSale: this.get('constants.togglesOnOff.on'),\n        showLimitedQty: this.get('constants.togglesAuto.auto'),\n        showCountdownTimer: this.get('constants.togglesAuto.auto'),\n        shippingFeeType: this.get('constants.shippingFeeType.flat'),\n        commissionMethod: this.get('constants.togglesAuto.auto')\n      };\n    }\n  });\n  let ChannelShopCampaignsAutomationsDetailsModel = _exports.default = (_dec = Ember._tracked, _class = class ChannelShopCampaignsAutomationsDetailsModel extends ChannelShopCampaignsAutomationsDetailsBaseModel {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/channels/shop/campaigns/automations/model\", [\"exports\", \"ramda\", \"client/pods/base/model\", \"client/mixins/sortable-details\"], function (_exports, R, _model, _sortableDetails) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = _model.default.extend(_sortableDetails.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    toSortProp: '_data.details',\n    init() {\n      this._super(...arguments);\n      this.set('adapters', {\n        products: 'products',\n        details: 'channels/shop/campaigns/automations/details'\n      });\n      this.crud.addLists(this, ['automations/criterias']);\n    },\n    defaults() {\n      return {\n        when: this.get('constants.automationsWhen.orderValue'),\n        whenItemQtyType: this.get('constants.automationsWhenItemQtyType.products'),\n        whenItemQtyTags: [],\n        criteria: this.get('constants.automationsCriterias.greaterThanOrEqualTo'),\n        thenAction: this.get('constants.automationsThenActions.mustAdd'),\n        thenSelectionType: this.get('constants.automationsThenSelectionTypes.all'),\n        thenSelectionQty: 1,\n        status: this.get('constants.status.active'),\n        isCumulative: false,\n        automationsShippingBehavior: this.settings.getProp('automationsShippingBehavior')\n      };\n    },\n    /**\n     * Load automation fields from the API. Drops leftover `cumulativeValue`\n     * so ERP never re-saves the retired stacking-step field.\n     * @param {Object} data - raw automation document\n     * @param {Object[]} [data.details] - gift/add-on lines\n     * @param {string|number} [data.cumulativeValue] - ignored; stacking uses When `value`\n     * @param {Object} [attrs] - extra attrs passed into nested detail records\n     * @return {void}\n     */\n    populate(data, attrs) {\n      data.details = this._transformDetails(data.details, attrs);\n      this._super(data, attrs);\n    },\n    _transformDetails(details = [], attrs = {}) {\n      return details.map(detail => {\n        return this.dataManager.setAsRecord({\n          adapterName: this.get('adapters.details'),\n          data: detail,\n          attrs\n        });\n      });\n    },\n    hasDetails: Ember.computed('_data.details.@each.synced', function () {\n      let details = this.get('_data.details') || [];\n      details = R.reject(R.propEq('isDeleted', true))(details);\n      if (R.isEmpty(details)) {\n        return false;\n      }\n      return true;\n    }),\n    isAutoAdd: Ember.computed('_data.thenAction', function () {\n      return this.get('_data.thenAction') === this.get('constants.automationsThenActions.mustAdd');\n    }),\n    isMayAdd: Ember.computed('_data.thenAction', function () {\n      return this.get('_data.thenAction') === this.get('constants.automationsThenActions.mayAdd');\n    }),\n    isChooseBetween: Ember.computed('_data.thenSelectionType', function () {\n      return this.get('_data.thenSelectionType') === this.get('constants.automationsThenSelectionTypes.between');\n    }),\n    isItemQtyProducts: Ember.computed('_data.{when,whenItemQtyType}', function () {\n      const when = this?._data?.when || '';\n      const whenItemQtyType = this?._data?.whenItemQtyType || '';\n      return when === 'itemQty' && whenItemQtyType === 'products';\n    }),\n    isItemQtyTags: Ember.computed('_data.{when,whenItemQtyType}', function () {\n      const when = this?._data?.when || '';\n      const whenItemQtyType = this?._data?.whenItemQtyType || '';\n      return when === 'itemQty' && whenItemQtyType === 'tags';\n    }),\n    isCriteriaBetween: Ember.computed('_data.criteria', function () {\n      const criteria = this?._data?.criteria || '';\n      return criteria === 'isBetween';\n    }),\n    isAllowCumulative: Ember.computed('isAutoAdd', '_data.criteria', function () {\n      const isAutoAdd = this?.isAutoAdd || false;\n      const criteria = this?._data?.criteria;\n      const criterias = this.crud.lists['automations-criterias'] || [];\n      const selectedCriteria = R.find(R.pathEq(['_data', 'value'], criteria))(criterias);\n      const isAllowCumulative = selectedCriteria?._data?.isAllowCumulative || false;\n      if (isAutoAdd && isAllowCumulative) {\n        return true;\n      }\n      return false;\n    }),\n    setCumulative(model, selected) {\n      const isAllowCumulative = selected?._data?.isAllowCumulative || false;\n      if (!isAllowCumulative) {\n        model.set('_data.isCumulative', false);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setCumulative\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setCumulative\"), _obj), _obj));\n});","define(\"client/pods/channels/shop/campaigns/automations/shipping-behavior/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/base/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'shipWithCartItems',\n        label: 'shipWithCartItems'\n      }, {\n        value: 'allowShipSeparately',\n        label: 'allowShipSeparately'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/automations/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'active',\n        label: 'active',\n        classNames: 'is-primary'\n      }, {\n        value: 'inactive',\n        label: 'inactive',\n        classNames: 'is-warning'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/bulk-discounts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/bulk-discounts',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/bulk-discounts/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/mixins/sortable-details\", \"client/mixins/date\", \"client/utils/nventor\"], function (_exports, R, RA, _model, _sortableDetails, _date, _nventor) {\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(_sortableDetails.default, _date.default, {\n    defaults() {\n      return {\n        name: '',\n        status: 'enabled',\n        schedules: [],\n        productTags: [],\n        isShowDescriptions: true,\n        isAllowWithPromoCode: true\n      };\n    },\n    populate(data, attrs) {\n      data.schedules = this._transformSchedules(data);\n      this._super(data, attrs);\n    },\n    _transformSchedules(data) {\n      const schedules = R.propOr([], 'schedules')(data);\n      return R.addIndex(R.map)((schedule, index) => {\n        if (RA.isNilOrEmpty(schedule.index)) {\n          schedule.index = index;\n        }\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/bulk-discounts/schedules',\n          data: schedule\n        });\n      })(schedules);\n    },\n    addSchedule(schedule = {}) {\n      const schedules = this.getData('schedules') || [];\n      schedule.index = schedules.length; // set newIndex\n      if (RA.isNilOrEmpty(schedule.scheduleId)) {\n        schedule.scheduleId = _nventor.default.random.alphaNum(18);\n      }\n      const scheduleModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/campaigns/bulk-discounts/schedules',\n        data: schedule\n      });\n      scheduleModel.addRuleSet();\n      schedules.pushObject(scheduleModel);\n      this.setData('schedules', schedules);\n    },\n    recalculateScheduleIndex() {\n      const schedules = this.getData('schedules') || [];\n      R.addIndex(R.forEach)((schedule, index) => {\n        schedule.setData('index', index);\n      })(schedules);\n    },\n    statusClass: Ember.computed('_data.status', function () {\n      const status = this.getData('status');\n      if (status === 'enabled') {\n        return 'is-primary';\n      }\n      return 'is-danger';\n    }),\n    checkOverlapDate({\n      bulkDiscount\n    }) {\n      const schedules = bulkDiscount.getData('schedules') || [];\n      if (R.length(schedules) < 2) {\n        return {\n          hasOverlap: false,\n          ids: []\n        };\n      }\n      const emptyStartDateZSchedules = R.filter(R.pathEq(['_data', 'dateStartZ'], ''))(schedules);\n      if (R.length(emptyStartDateZSchedules) > 1) {\n        return {\n          hasOverlap: true,\n          ids: R.pipe(R.pluck('_data'), R.pluck('scheduleId'))(emptyStartDateZSchedules)\n        };\n      }\n      const emptyDateEndZSchedules = R.filter(R.pathEq(['_data', 'dateEndZ'], ''))(schedules);\n      if (R.length(emptyDateEndZSchedules) > 1) {\n        return {\n          hasOverlap: true,\n          ids: R.pipe(R.pluck('_data'), R.pluck('scheduleId'))(emptyDateEndZSchedules)\n        };\n      }\n      const emptyStartDateZSchedule = R.head(emptyStartDateZSchedules) || {};\n      const emptyDateEndZSchedule = R.head(emptyDateEndZSchedules) || {};\n      const scheduleWithoutEmptyDate = R.reject(R.anyPass([R.pathEq(['_data', 'dateStartZ'], ''), R.pathEq(['_data', 'dateEndZ'], '')]))(schedules);\n      const overlappedIds = [];\n      const hasOverlap = R.pipe(R.sortBy(R.path(['_data', 'dateEndZ'])), R.sortBy(R.path(['_data', 'dateStartZ'])), R.prepend(emptyStartDateZSchedule), R.append(emptyDateEndZSchedule), R.reject(RA.isNilOrEmpty), RA.mapIndexed((data, i, sortedDatas) => {\n        const dateEndZ = data.getData('dateEndZ') || '';\n        let nextDateStartZ = '';\n        const nextData = sortedDatas[i + 1];\n        if (RA.isNotNilOrEmpty(nextData)) {\n          nextDateStartZ = nextData.getData('dateStartZ');\n          if (nextDateStartZ <= dateEndZ) {\n            overlappedIds.push(data.getData('scheduleId'));\n            overlappedIds.push(nextData.getData('scheduleId'));\n            return true;\n          }\n        }\n        return false;\n      }), R.includes(true))(scheduleWithoutEmptyDate);\n      return {\n        hasOverlap,\n        ids: R.uniq(overlappedIds)\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/rule-sets/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/bulk-discounts/rule-sets/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/rule-sets/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    defaults() {\n      return {\n        ruleSetId: '',\n        index: '',\n        rules: []\n      };\n    },\n    populate(data, attrs) {\n      data.rules = this._transformRules(data);\n      this._super(data, attrs);\n    },\n    _transformRules(data) {\n      const rules = data?.rules ?? [];\n      return R.map(rule => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/bulk-discounts/rules',\n          data: rule\n        });\n      })(rules);\n    },\n    addRule(rule = {}) {\n      const rules = this.getData('rules') || [];\n      const ruleModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/campaigns/bulk-discounts/rules',\n        data: rule\n      });\n      rules.pushObject(ruleModel);\n      this.setData('rules', rules);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/rules/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/bulk-discounts/rules/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/rules/member-levels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/bulk-discounts/rules/member-levels/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/rules/member-levels/model\", [\"exports\", \"ramda\", \"client/pods/base/model\"], function (_exports, R, _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    defaults() {\n      return {\n        memberLevelId: '',\n        discountType: this.constants.discountTypes.rate,\n        discountAmount: '',\n        discountRate: '',\n        description: '',\n        isDefaultDescription: true\n      };\n    },\n    populate(data, attrs) {\n      const discountType = R.propOr(this.constants.discountTypes.rate, 'discountType')(data);\n      if (discountType === this.constants.discountTypes.rate) {\n        data.discountAmount = '';\n      }\n      if (discountType === this.constants.discountTypes.amount) {\n        data.discountRate = '';\n      }\n      this._super(data, attrs);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/rules/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/mixins/sortable-details\", \"client/utils/nventor\"], function (_exports, R, RA, _model, _sortableDetails, _nventor) {\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(_sortableDetails.default, {\n    toSortProp: '_data.value',\n    defaults() {\n      return {\n        discountType: this.constants.discountTypes.rate,\n        discountAmount: '',\n        discountRate: '',\n        when: this.constants.automationsWhen.itemQty,\n        criteria: this.constants.automationsCriterias.greaterThanOrEqualTo,\n        value: '',\n        valueMax: '',\n        description: '',\n        isShowLineDescription: true,\n        isDefaultDescription: true,\n        hasMemberLevels: false,\n        memberLevelId: '',\n        status: this.constants.status.active,\n        ruleId: _nventor.default.random.alphaNum(8)\n      };\n    },\n    populate(data, attrs) {\n      const discountType = R.propOr(this.constants.discountTypes.rate, 'discountType')(data);\n      if (discountType === this.constants.discountTypes.rate) {\n        data.discountAmount = '';\n      }\n      if (discountType === this.constants.discountTypes.amount) {\n        data.discountRate = '';\n      }\n      const isDefaultDescription = R.propOr(false, 'isDefaultDescription')(data);\n      attrs.description = R.propOr('', 'description')(data);\n      if (isDefaultDescription) {\n        attrs.description = this.getBulkDiscountDescription({\n          data\n        });\n      }\n\n      // Legacy / missing ruleId: keep stable empty like ruleSetId migrate. Minting\n      // here would churn a new id on every populate and persist on the next save.\n      if (!data?.ruleId) {\n        data.ruleId = '';\n      }\n\n      // Keep API pair in sync: memberLevelId required only when hasMemberLevels is true.\n      const memberLevelId = data?.memberLevelId;\n      if (RA.isNilOrEmpty(memberLevelId)) {\n        data.hasMemberLevels = false;\n        data.memberLevelId = '';\n      } else if (data.hasMemberLevels !== true && data.hasMemberLevels !== false) {\n        data.hasMemberLevels = true;\n      }\n      this._super(data, attrs);\n    },\n    // should be the same as the shop getBulkDiscountDescription\n    getBulkDiscountDescription({\n      data\n    }) {\n      const when = data.when;\n      const criteria = data.criteria;\n      const criteriaValue = data.value;\n      const criteriaValueMax = data.valueMax;\n      const discountType = data.discountType;\n      let discountValue = data.discountAmount;\n      let discountDesc = `$ ${discountValue}`;\n      if (discountType === 'rate') {\n        discountValue = data.discountRate;\n        discountDesc = `${discountValue}%`;\n      }\n      const hasCriteriaValues = criteriaValue && (criteria !== this.constants.automationsCriterias.isBetween || criteriaValueMax);\n      if (criteria && hasCriteriaValues && discountType && discountValue) {\n        // 10% discount when buy items greater than or equal to 4\n        let whenDescription = '';\n        if (when === 'itemQty') {\n          whenDescription = this.intl.t('discount when buy items');\n        }\n\n        // 10% discount when items value greater than or equal to 4\n        if (when === 'itemValue') {\n          whenDescription = this.intl.t('discount when items value');\n        }\n        let criteriaDescription = `${this.intl.t(criteria)} ${criteriaValue}`;\n        if (criteria === this.constants.automationsCriterias.isBetween) {\n          criteriaDescription = `${criteriaDescription} ${this.intl.t('range separator')} ${criteriaValueMax}`;\n        }\n        return `${discountDesc} ${whenDescription} ${criteriaDescription}`;\n      }\n      return '';\n    },\n    statusClass: Ember.computed('_data.status', function () {\n      const status = this.getData('status');\n      if (status === this.constants.status.active) {\n        return 'is-primary';\n      }\n      return 'is-danger';\n    }),\n    criteriaSymbol: Ember.computed('_data.criteria', function () {\n      const criteriaMap = {\n        greaterThanOrEqualTo: '>=',\n        greaterThan: '>',\n        isBetween: '<>',\n        equals: '='\n      };\n      const criteria = this?._data?.criteria;\n      return criteriaMap[criteria];\n    })\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/schedules/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/bulk-discounts/schedules/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/bulk-discounts/schedules/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    defaults() {\n      return {\n        index: '',\n        scheduleId: '',\n        dateStartZ: '',\n        dateEndZ: '',\n        ruleSets: []\n      };\n    },\n    populate(data, attrs) {\n      const isOldBulkDiscount = RA.isNilOrEmpty(data?.ruleSets) && RA.isNotNilOrEmpty(data.rules);\n      if (isOldBulkDiscount) {\n        data.ruleSets = [{\n          ruleSetId: '',\n          index: 0,\n          rules: data?.rules || []\n        }];\n      }\n      data.ruleSets = this._transformRuleSets(data);\n      delete data.rules;\n      this._super(data, attrs);\n    },\n    isActive: Ember.computed('_data.{dateStartZ,dateEndZ}', function () {\n      const todayZ = this.getStartOfDayZ();\n      const dateStartZ = this.getData('dateStartZ');\n      const dateEndZ = this.getData('dateEndZ');\n      if (dateStartZ && !dateEndZ && dateStartZ <= todayZ) {\n        return true;\n      }\n      if (dateEndZ && !dateStartZ && dateEndZ >= todayZ) {\n        return true;\n      }\n      if (dateStartZ <= todayZ && dateEndZ >= todayZ) {\n        return true;\n      }\n      return false;\n    }),\n    isActiveNext: Ember.computed('_data.{dateStartZ,dateEndZ}', function () {\n      const todayZ = this.getStartOfDayZ();\n      const dateStartZ = this.getData('dateStartZ');\n      if (dateStartZ > todayZ) {\n        return true;\n      }\n      return false;\n    }),\n    _transformRuleSets(data) {\n      const ruleSets = data?.ruleSets ?? [];\n      return R.addIndex(R.map)((ruleSet, index) => {\n        if (RA.isNilOrEmpty(ruleSet.index)) {\n          ruleSet.index = index;\n        }\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/bulk-discounts/rule-sets',\n          data: ruleSet\n        });\n      })(ruleSets);\n    },\n    addRuleSet(ruleSet = {}) {\n      const ruleSets = this.getData('ruleSets') || [];\n      if (ruleSets.length >= 2) {\n        return;\n      }\n      ruleSet.index = ruleSets.length; // set newIndex\n      const ruleSetModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/campaigns/bulk-discounts/rule-sets',\n        data: ruleSet\n      });\n      ruleSetModel.addRule();\n      ruleSets.pushObject(ruleSetModel);\n      this.setData('ruleSets', ruleSets);\n    },\n    recalculateRuleSetIndex() {\n      const ruleSets = this.getData('ruleSets') || [];\n      R.addIndex(R.forEach)((ruleSet, index) => {\n        ruleSet.setData('index', index);\n      })(ruleSets);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/calendar-type-settings/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'set number of days',\n        value: 'settingPeriodOfTime'\n      }, {\n        label: 'specify first and last date',\n        value: 'settingFirstAndLastDate'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/commission-base-cost-method/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/commission-base-cost-method/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/commission-base-cost-method',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/campaigns/commission-base-cost-method/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/channels/shop/campaigns/commissions-date-ranges/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'use campaign period',\n        value: 'campaignPeriod'\n      }, {\n        label: 'last month',\n        value: 'lastMonth'\n      }, {\n        label: 'this month',\n        value: 'thisMonth'\n      }, {\n        label: 'use custom date',\n        value: 'customDate'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/delivery-date-settings-items/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'auto',\n        value: 'auto'\n      }, {\n        label: 'from day of order',\n        value: 'fromOrderDate'\n      }, {\n        label: 'on set date',\n        value: 'fromSetDate'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/delivery-date-settings/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'from day of order',\n        value: 'fromOrderDate'\n      }, {\n        label: 'on set date',\n        value: 'fromSetDate'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details',\n    modelObj: _model.default,\n    idParam: '_id',\n    serialize(model) {\n      const data = this._super(model);\n      if (data.useDefaultsFromProduct) {\n        data.checkoutDescription = data.defaultCheckoutDescription;\n      }\n      const dirtyLimitsSortedByItem = model?.dirtyLimitsSortedByItem ?? [];\n      data.limits = R.map(limit => {\n        return limit.serialize();\n      })(dirtyLimitsSortedByItem);\n      return data;\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/batch/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details/master',\n    idParam: false,\n    serialize(details) {\n      return R.map(detail => {\n        return this._serialize(detail._data);\n      })(details);\n    },\n    updateIndexes({\n      data,\n      appendPath,\n      serverType\n    } = {}) {\n      const path = this.getFullPath({\n        pathName: 'updatePath',\n        appendPath,\n        serverType\n      });\n      data = R.map(detail => {\n        const toUpdateIndexData = R.pick(['_key', 'index', 'fromIndex', 'indexKey'])(detail);\n        toUpdateIndexData.campaignKey = detail.master;\n        return toUpdateIndexData;\n      })(data);\n      data = this._addAdapterInfo(data, appendPath);\n      const payload = {\n        batch: data\n      };\n      try {\n        return this.ajax.PATCH(path, payload);\n      } catch (e) {\n        // console.log(e)\n      }\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/batch/statuses/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details/master',\n    idParam: false,\n    serialize(details) {\n      const batch = R.map(detail => {\n        return {\n          _key: detail?._data._key\n        };\n      })(details);\n      return {\n        batch\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/batch/tags/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details/master',\n    idParam: false,\n    serialize(details) {\n      const batch = R.map(detail => {\n        return {\n          _key: detail?._data._key\n        };\n      })(details);\n      return {\n        batch\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/bulk-discount-conflicts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/bulk-discount-conflicts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/bulk-discount-conflicts/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        bulkDiscountId: '',\n        name: ''\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/commission-base-cost/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/commission-base-cost/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details/commission-base-cost',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/commission-base-cost/history/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/commission-base-cost/history/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details/commission-base-cost/history',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/commission-base-cost/history/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/commission-base-cost/history/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/commission-base-cost/history/filters/model\", [\"exports\", \"client/pods/channels/shop/campaigns/filters/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    defaults() {\n      return {\n        isUsingSetChild: false,\n        isForCommission: true,\n        adjustedShippingFee: false,\n        selectedCommissionBaseCostMethod: '',\n        type: '',\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/commission-base-cost/history/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import * as R from 'ramda'\n  // import * as RA from 'ramda-adjunct'\n  var _default = _exports.default = _model.default.extend({});\n});","define(\"client/pods/channels/shop/campaigns/details/commission-base-cost/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    defaults() {\n      return {\n        choices: [],\n        variantChildren: [],\n        setDetails: []\n      };\n    },\n    populate(data) {\n      const choices = data.choices || [];\n      const variantChildren = data.variantChildren || [];\n      const setDetails = data.setDetails || [];\n      if (RA.isNotNilOrEmpty(choices)) {\n        data = this.transformSetWithChoices(data);\n      }\n      if (RA.isNotNilOrEmpty(variantChildren)) {\n        data = this.transformVariants(data);\n      }\n      if (RA.isNotNilOrEmpty(setDetails)) {\n        data = this.transformSetDetails(data);\n      }\n      this._super(...arguments);\n    },\n    transformSetDetails(data) {\n      if (data.setDetails) {\n        const detailsRequiredAttrs = this.setDetailsRequiredAttrs;\n        data.setDetails = R.pipe(R.propOr([], 'setDetails'), R.map(detailData => {\n          const detailModel = this.dataManager.setAsRecord({\n            adapterName: 'products/sets/details',\n            data: detailData,\n            attrs: {\n              requiredAttrs: detailsRequiredAttrs\n            }\n          });\n          return detailModel;\n        }))(data);\n      }\n      return data;\n    },\n    transformSetWithChoices(data) {\n      data.choices = R.pipe(R.propOr([], 'choices'), R.map(choiceData => {\n        const details = choiceData.details || [];\n        choiceData.details = R.map(detailData => {\n          if (detailData.hasVariants) {\n            detailData = this.transformVariants(detailData);\n          } else if (detailData.isSet) {\n            detailData = this.transformSetDetails(detailData);\n          }\n          return this.dataManager.setAsRecord({\n            adapterName: 'products/choices/details',\n            data: detailData\n          });\n        })(details);\n        return this.dataManager.setAsRecord({\n          adapterName: 'products/choices',\n          data: choiceData\n        });\n      }))(data);\n      return data;\n    },\n    transformVariants(data) {\n      data.variants = R.pipe(R.propOr([], 'variants'), R.map(variantData => {\n        variantData.options = R.pipe(R.propOr([], 'options'), R.map(optionData => {\n          return this.dataManager.setAsRecord({\n            adapterName: 'products/variants/options',\n            data: optionData\n          });\n        }))(variantData);\n        return this.dataManager.setAsRecord({\n          adapterName: 'products/variants',\n          data: variantData\n        });\n      }))(data);\n      data.variantChildren = R.pipe(R.propOr([], 'variantChildren'), R.map(variantChild => {\n        const variantChildModel = this.dataManager.setAsRecord({\n          adapterName: 'products/variants/children',\n          data: variantChild\n        });\n        return variantChildModel;\n      }))(data);\n      return data;\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/export/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details',\n    modelObj: _model.default,\n    idParam: false,\n    serialize(model) {\n      const data = this._super(model);\n      let isOnSale = model.get('isOnSale');\n      if (isOnSale === true) {\n        isOnSale = 'on';\n      } else {\n        isOnSale = 'off';\n      }\n      data.onSale = isOnSale;\n      if (data.useDefaultsFromProduct) {\n        data.checkoutDescription = data.defaultCheckoutDescription;\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/filters/model\", [\"exports\", \"client/pods/filters/model\", \"client/utils/nventor\", \"client/pods/filters/sort/model\", \"client/constants\"], function (_exports, _model, _nventor, _model2, _constants) {\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 ChannelsShopCampaignsDetailsFiltersModel = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _class = class ChannelsShopCampaignsDetailsFiltersModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settings\", _descriptor, this);\n      _initializerDefineProperty(this, \"results\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_data\", _descriptor3, this);\n    }\n    defaults() {\n      const baseDefaults = super.defaults() || {};\n      return {\n        ...baseDefaults,\n        tags: [],\n        campaignDetailTags: [],\n        itemKeys: [],\n        setTypes: [],\n        recurringFilters: [],\n        hasImages: '',\n        price: '',\n        item: '',\n        itemCode: '',\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [],\n        shopProductsSort: this.settings.settingsModel?._data?.shopProductsSort || 'recommended',\n        statuses: [_constants.default.productsStatus.draft, _constants.default.productsStatus.soldOut, _constants.default.productsStatus.preOrder, _constants.default.productsStatus.inactive, _constants.default.productsStatus.active],\n        sort: [_nventor.default.createModel(_model2.default, {\n          by: 'index',\n          direction: 'ASC'\n        })]\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/channels/shop/campaigns/details/limits/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/limits/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details/limits',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/limits/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/limits/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/limits/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        product: {\n          name: '',\n          code: '',\n          hasImages: '',\n          types: [],\n          setTypes: [],\n          salesLimitedTypes: []\n        },\n        fetchMax: false,\n        hasLimitTypes: [],\n        sort: [{\n          by: 'product.name',\n          direction: 'ASC'\n        }]\n      };\n    },\n    typesCount: Ember.computed('_data.product.types.[]', function () {\n      return this.getPropLength('_data.product.types');\n    }),\n    setTypesCount: Ember.computed('_data.product.setTypes.[]', function () {\n      return this.getPropLength('_data.product.setTypes');\n    }),\n    hasLimitTypesCount: Ember.computed('_data.hasLimitTypes.[]', function () {\n      return this.getPropLength('_data.hasLimitTypes');\n    })\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/limits/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    constants: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.set('childAdapters.products', 'products');\n    },\n    defaults() {\n      return {\n        useInventoryAsLimitedQty: false,\n        overrideUseInventoryAsLimitedQty: false,\n        salesLimitedType: this.get('constants.detailLimitTypes.campaign'),\n        hasSalesLimitedQty: false,\n        qty: 0\n      };\n    },\n    populate(data, attrs) {\n      data = this._transformProduct(data);\n      let isOverSalesLimitedQty = true;\n      data.overSalesLimitedQtyStatus = data?.calculatedStatusBeforeCart || '';\n      if (R.equals(data.calculatedStatusBeforeCart, 'active')) {\n        isOverSalesLimitedQty = false;\n        data.overSalesLimitedQtyStatus = '';\n      }\n      data.isOverSalesLimitedQty = isOverSalesLimitedQty;\n      const commissionBaseCostNew = this._transformCommissionBaseCost(data);\n      // if (RA.isNotNilOrEmpty(commissionBaseCostNew)) {\n      this.set('commissionBaseCostNew', commissionBaseCostNew);\n      // }\n      this._super(data, attrs);\n    },\n    _transformCommissionBaseCost(data) {\n      let commissionBaseCostNew = R.propOr({}, 'commissionBaseCostNew')(data);\n      // if (RA.isNotNilOrEmpty(commissionBaseCostNew)) {\n      delete data.commissionBaseCostNew;\n      const mapIndexed = R.addIndex(R.map);\n      const mergeArrayOfObjects = (key, left, right) => {\n        if (R.equals(key, 'setDetails') || R.equals(key, 'variantChildren')) {\n          return mapIndexed((val, idx) => R.mergeDeepRight(val, right[idx]), left);\n        }\n        if (R.equals(key, 'choices') || R.equals(key, 'details')) {\n          return mapIndexed((val, idx) => {\n            return R.mergeDeepWithKey(mergeArrayOfObjects, val, right[idx]);\n          })(left);\n        }\n        return right;\n      };\n      commissionBaseCostNew = R.pipe(R.pick(['choices', 'setDetails', 'variantChildren', 'itemKey', 'item', 'salesQty', 'campaignKey', 'isSet', 'isSetWithChoices', 'hasVariants']), R.mergeDeepWithKey(mergeArrayOfObjects, commissionBaseCostNew))(data);\n      commissionBaseCostNew.master = data._key;\n      commissionBaseCostNew.campaignKey = data.master;\n      if (commissionBaseCostNew._key) {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/details/commission-base-cost',\n          data: commissionBaseCostNew\n        });\n      } else {\n        return this.dataManager.newRecord({\n          adapterName: 'channels/shop/campaigns/details/commission-base-cost',\n          data: commissionBaseCostNew\n        });\n      }\n      // }\n    },\n    _transformProduct(data) {\n      if (data.product) {\n        const product = this.dataManager.setPartialRecord({\n          adapterName: this.get('childAdapters.products'),\n          data: data.product\n        });\n        this.set('product', product);\n        delete data.product;\n      }\n      return data;\n    },\n    overSalesLimitedQtyStatusClass: Ember.computed('_data.overSalesLimitedQtyStatus', function () {\n      const status = this.get('_data.overSalesLimitedQtyStatus');\n      return this.productsService.getStatusClass(status);\n    }),\n    calculatedAvailablePreOrderQtyOnlyBeforeCart: Ember.computed('_data.{calculatedAvailableQtyBeforeCart,calculatedAvailablePreOrderQtyBeforeCart}', 'limits.@each.synced', function () {\n      let calculatedAvailablePreOrderQtyOnlyBeforeCart = this.getData('calculatedAvailablePreOrderQtyBeforeCart');\n      const calculatedAvailableQtyBeforeCart = this.getData('calculatedAvailableQtyBeforeCart');\n      const salesPreOrderLimitedQty = this.getData('salesPreOrderLimitedQty') || '0';\n      if (R.gt(calculatedAvailableQtyBeforeCart, 0)) {\n        calculatedAvailablePreOrderQtyOnlyBeforeCart = salesPreOrderLimitedQty;\n      }\n      return calculatedAvailablePreOrderQtyOnlyBeforeCart;\n    })\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/model\", [\"exports\", \"ramda\", \"client/pods/base/model\", \"client/mixins/products-children\", \"client/mixins/statuses\", \"client/mixins/templates\", \"client/mixins/date\", \"client/utils/nventor\", \"ramda-adjunct\"], function (_exports, R, _model, _productsChildren, _statuses, _templates, _date, _nventor, _ramdaAdjunct) {\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, _obj, _dec0, _dec1, _dec10, _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 _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\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  const ChannelsShopCampaignsDetailsBaseModel = _model.default.extend(_productsChildren.default, _statuses.default, _templates.default, _date.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _obj = {\n    productsService: Ember.inject.service('products'),\n    init() {\n      this._super(...arguments);\n      this.set('childAdapters.detailsLimits', 'channels/shop/campaigns/details/limits');\n    },\n    defaults() {\n      return {\n        productSync: ['item', 'templates', 'productTags', 'productDisplayTags', 'description', 'additionalDescription', 'recurringSchedules'],\n        shop: '',\n        status: this.get('constants.status.active'),\n        deliveryDateSettings: this.get('constants.togglesAuto.auto'),\n        onSale: this.get('constants.togglesAuto.on'),\n        showLimitedQty: this.get('constants.togglesAuto.auto'),\n        showCountdownTimer: this.get('constants.togglesAuto.auto'),\n        shippingFeeType: this.get('constants.shippingFeeType.flat'),\n        commissionMethod: this.get('constants.togglesAuto.auto'),\n        hasPassword: false,\n        isHidePriceWhenHasPassword: false,\n        hasProductSchedules: false,\n        hasOnSaleSchedules: false,\n        recurringSchedulesEnabled: false,\n        recurringSchedulesOnly: false,\n        recurringSchedules: [],\n        templates: [],\n        hasCustomizations: false,\n        customizations: []\n      };\n    },\n    populate(data, attrs = {}) {\n      data = this._transformLimits(data);\n      data.productSchedules = this._transformSchedules({\n        data,\n        schedulesProp: 'productSchedules'\n      });\n      data.onSaleSchedules = this._transformSchedules({\n        data,\n        schedulesProp: 'onSaleSchedules'\n      });\n      data.templates = this._transformTemplates(data);\n      data.conflictsList = this._transformConflictsList(data);\n      data.productDisplayTags = this._transformProductDisplayTags(data);\n      if (_ramdaAdjunct.default.isNilOrEmpty(attrs.commissionBaseCostNew)) {\n        const commissionBaseCostNew = this._transformCommissionBaseCost(data);\n        attrs.commissionBaseCostNew = commissionBaseCostNew;\n      }\n      data.recurringSchedules = this._transformRecurringSchedules(data);\n      const isAutomationWithProduct = data?.isAutomation && _ramdaAdjunct.default.isNotNilOrEmpty(data?.product);\n      if (_ramdaAdjunct.default.isNilOrEmpty(attrs.product) || isAutomationWithProduct) {\n        const product = this._transformProduct(data);\n        attrs.product = product;\n      }\n      attrs.defaultCheckoutDescription = data.defaultCheckoutDescription;\n      this._super(data, attrs);\n    },\n    populatePartial(data, attrs) {\n      data.productSchedules = this._transformSchedules({\n        data,\n        schedulesProp: 'productSchedules'\n      });\n      this._super(data, attrs);\n    },\n    _transformRecurringSchedules(data) {\n      return R.pipe(R.propOr([], 'recurringSchedules'), R.map(schedule => this.dataManager.setAsRecord({\n        adapterName: 'recurring/schedules',\n        data: schedule\n      })))(data);\n    },\n    _transformConflictsList(data) {\n      const conflictsList = R.propOr([], 'conflictsList')(data);\n      return R.map(conflict => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/details/bulk-discount-conflicts',\n          data: conflict\n        });\n      })(conflictsList);\n    },\n    _transformProduct(data) {\n      const productData = R.propOr({}, 'product')(data);\n      delete data.product;\n      return this.dataManager.setPartialRecord({\n        adapterName: 'products',\n        data: productData\n      });\n    },\n    _getSyncProp(detailProp, productProp) {\n      const productSync = this.getData('productSync') || [];\n      const hasSync = R.includes(detailProp)(productSync);\n      if (hasSync) {\n        return this.get(productProp);\n      }\n      return this.getData(detailProp);\n    },\n    item: Ember.computed('_data.item', 'product._data.name', '_data.productSync.[]', 'synced', function () {\n      return this._getSyncProp('item', 'product._data.name');\n    }),\n    productTags: Ember.computed('_data.productTags', 'product._data.tags', '_data.productSync.[]', function () {\n      return this._getSyncProp('productTags', 'product._data.tags');\n    }),\n    productDisplayTags: Ember.computed('_data.productDisplayTags', 'product._data.productDisplayTags', '_data.productSync.[]', function () {\n      return this._getSyncProp('productDisplayTags', 'product._data.productDisplayTags');\n    }),\n    description: Ember.computed('_data.description', 'product._data.description', '_data.productSync.[]', function () {\n      return this._getSyncProp('description', 'product._data.description');\n    }),\n    additionalDescription: Ember.computed('_data.additionalDescription', 'product._data.additionalDescription', '_data.productSync.[]', function () {\n      return this._getSyncProp('additionalDescription', 'product._data.additionalDescription');\n    }),\n    templates: Ember.computed('_data.templates', 'product._data.templates', '_data.productSync.[]', function () {\n      return this._getSyncProp('templates', 'product._data.templates');\n    }),\n    activeProductSchedule: Ember.computed('_data.productSchedules.@each.isActive', function () {\n      const productSchedules = this.getData('productSchedules') || [];\n      return R.find(R.propEq('isActive', true))(productSchedules);\n    }),\n    nextProductSchedule: Ember.computed('_data.productSchedules.@each.isActiveNext', function () {\n      const productSchedules = this.getData('productSchedules') || [];\n      return R.find(R.propEq('isActiveNext', true))(productSchedules);\n    }),\n    calculatedAvailablePreOrderQtyOnlyBeforeCart: Ember.computed('_data.{calculatedAvailableQtyBeforeCart,calculatedAvailablePreOrderQtyBeforeCart,itemKey}', 'limits.@each.synced', function () {\n      let calculatedAvailablePreOrderQtyOnlyBeforeCart = this.getData('calculatedAvailablePreOrderQtyBeforeCart');\n      const calculatedAvailableQtyBeforeCart = this.getData('calculatedAvailableQtyBeforeCart');\n      const itemKey = this.getData('itemKey');\n      const limitsByItemKey = R.find(R.pathEq(['_data', 'itemKey'], itemKey))(this.limits) || {};\n      if (R.gt(calculatedAvailableQtyBeforeCart, 0)) {\n        let salesPreOrderLimitedQty = limitsByItemKey?._data?.salesPreOrderLimitedQty || '0';\n        const isSet = this.getData('isSet');\n        if (isSet) {\n          const calculatedAvailablePreOrderQtyBeforeCart = this.getData('calculatedAvailablePreOrderQtyBeforeCart');\n          const calculatedAvailableQtyBeforeCart = this.getData('calculatedAvailableQtyBeforeCart');\n          salesPreOrderLimitedQty = this.big.newBig(calculatedAvailablePreOrderQtyBeforeCart).minus(calculatedAvailableQtyBeforeCart).toFixed(0);\n        }\n        calculatedAvailablePreOrderQtyOnlyBeforeCart = salesPreOrderLimitedQty;\n      }\n      if (calculatedAvailablePreOrderQtyOnlyBeforeCart < 0) {\n        return 0;\n      }\n      return calculatedAvailablePreOrderQtyOnlyBeforeCart;\n    }),\n    // activeStatus: computed('_data.hasProductSchedules', 'activeProductSchedule._data.status', '_data.calculatedStatusBeforeCart', function () {\n    //   const hasProductSchedules = this.getData('hasProductSchedules') || false\n    //   const activeProductSchedule = this.get('activeProductSchedule')\n\n    //   if (hasProductSchedules && RA.isNotNilOrEmpty(activeProductSchedule)) {\n    //     return activeProductSchedule.getData('status')\n    //   }\n\n    //   return this.getData('calculatedStatusBeforeCart')\n    // }),\n\n    isStatusAndCalculatedStatusDifferent: Ember.computed('_data.{calculatedStatusBeforeCart,status}', function () {\n      const calculatedStatusBeforeCart = this?._data?.calculatedStatusBeforeCart || '';\n      const status = this?._data?.status || '';\n      if (R.equals(calculatedStatusBeforeCart, status)) {\n        return false;\n      }\n      return true;\n    }),\n    activeOnSaleSchedule: Ember.computed('_data.{hasOnSaleSchedules,onSaleSchedules.@each.isActive}', function () {\n      const hasOnSaleSchedules = this.getData('hasOnSaleSchedules') || false;\n      if (!hasOnSaleSchedules) {\n        return false;\n      }\n      const onSaleSchedules = this.getData('onSaleSchedules') || [];\n      return R.find(R.propEq('isActive', true))(onSaleSchedules);\n    }),\n    nextOnSaleSchedule: Ember.computed('_data.onSaleSchedules.@each.isActiveNext', function () {\n      const onSaleSchedules = this.getData('onSaleSchedules') || [];\n      return R.find(R.propEq('isActiveNext', true))(onSaleSchedules);\n    }),\n    isOnSale: Ember.computed('_data.hasOnSaleSchedules', 'activeOnSaleSchedule', '_data.onSale', function () {\n      const hasOnSaleSchedules = this.getData('hasOnSaleSchedules') || false;\n      if (!hasOnSaleSchedules) {\n        const onSale = this.getData('onSale');\n        if (onSale === 'on') {\n          return true;\n        }\n        return false;\n      }\n      const activeOnSaleSchedule = this.get('activeOnSaleSchedule');\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(activeOnSaleSchedule)) {\n        return true;\n      }\n      return false;\n    }),\n    isStandardProduct: Ember.computed('_data.hasVariants', '_data.isSet', '_data.isSetNew', '_data.isSetPriceOnBundle', '_data.isSetWithChoices', function () {\n      const hasVariants = this.getData('hasVariants') || false;\n      const isSet = this.getData('isSet') || false;\n      const isSetNew = this.getData('isSetNew') || false;\n      const isSetPriceOnBundle = this.getData('isSetPriceOnBundle') || false;\n      const isSetWithChoices = this.getData('isSetWithChoices') || false;\n      if (hasVariants || isSet || isSetNew || isSetPriceOnBundle || isSetWithChoices) {\n        return false;\n      }\n      return true;\n    }),\n    hasUnsetWeight: Ember.computed('_data.{allowedShippingZones.@each._key,weight,weightUnit}', function () {\n      const allowedShippingZones = this?._data?.allowedShippingZones || [];\n      const shippingZonesWithWeight = R.filter(zone => {\n        const isWeightBased = zone?.isWeightBased || false;\n        const weightBasedRates = zone?.weightBasedRates || [];\n        if (isWeightBased && _ramdaAdjunct.default.isNotNilOrEmpty(weightBasedRates)) {\n          return true;\n        }\n        return false;\n      })(allowedShippingZones);\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(shippingZonesWithWeight)) {\n        const weight = this?._data?.weight || ''; // default is empty, not 0\n\n        if (!weight) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    hasAllowedChildItemsInDisallowedZones: Ember.computed('_data.disallowedShippingZones.@each.{allowedChildProducts}', function () {\n      const disallowedShippingZones = this?._data?.disallowedShippingZones || [];\n      if (_ramdaAdjunct.default.isNilOrEmpty(disallowedShippingZones)) {\n        return false;\n      }\n      return R.pipe(R.pluck('allowedChildProducts'), R.reject(_ramdaAdjunct.default.isNilOrEmpty), R.flatten, _ramdaAdjunct.default.isNotNilOrEmpty)(disallowedShippingZones);\n    }),\n    _transformTemplates(data) {\n      return R.pipe(R.pathOr([], ['templates']), R.map(template => this.dataManager.setAsRecord({\n        adapterName: 'products/templates',\n        data: this.getTemplateHash(template)\n      })))(data);\n    },\n    getTemplateHash(args = {}) {\n      const {\n        template,\n        header,\n        status\n      } = args;\n      return {\n        component: 'products/products-editor/template',\n        get label() {\n          return this.header;\n        },\n        action: 'new',\n        tabType: 'reuseSubTab',\n        header,\n        template,\n        status\n      };\n    },\n    getBulkDiscountSchedule({\n      campaign\n    }) {\n      let isActive = {};\n      let isActiveNext = {};\n      let hasIsActive = false;\n      let hasIsActiveNext = false;\n      let hasAnyActive = false;\n      const campaignBulkDiscountId = this.getData('bulkDiscountId') || '';\n      const bulkDiscounts = campaign?._data?.bulkDiscounts || [];\n      const bulkDiscount = R.find(R.pathEq(['_data', 'bulkDiscountId'], campaignBulkDiscountId))(bulkDiscounts) || {};\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(bulkDiscount)) {\n        const status = bulkDiscount?._data?.status || 'enabled';\n        if (status === 'disabled') {\n          return {\n            hasAnyActive: false,\n            hasIsActive: false,\n            hasIsActiveNext: false,\n            isActive: false,\n            isActiveNext: false\n          };\n        }\n        const schedules = bulkDiscount.getData('schedules') || [];\n        isActive = R.find(R.propEq('isActive', true))(schedules) || {};\n        isActiveNext = R.find(R.propEq('isActiveNext', true))(schedules) || {};\n        hasIsActive = _ramdaAdjunct.default.isNotNilOrEmpty(isActive);\n        hasIsActiveNext = _ramdaAdjunct.default.isNotNilOrEmpty(isActiveNext);\n        hasAnyActive = hasIsActive || hasIsActiveNext;\n      }\n      return {\n        hasAnyActive,\n        hasIsActive,\n        hasIsActiveNext,\n        isActive,\n        isActiveNext\n      };\n    },\n    addNewTemplate() {\n      const newTemplate = this.dataManager.newRecord({\n        adapterName: 'products/templates',\n        data: this.getTemplateHash()\n      });\n      this?._data?.templates?.pushObject(newTemplate);\n      return newTemplate;\n    },\n    removeTemplate(template) {\n      if (template._data) {\n        this?._data?.templates?.removeObject(template);\n      } else {\n        const header = R.propOr('', 'header')(template);\n        const templateModel = R.pipe(R.pathOr([], ['_data', 'templates']), R.find(R.pathEq(['_data', 'header'], header)))(this);\n        this?._data?.templates?.removeObject(templateModel);\n      }\n    },\n    _transformProductDisplayTags(data) {\n      const productDisplayTags = R.propOr([], 'productDisplayTags')(data);\n      return R.map(productDisplayTag => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'products/product-display-tags',\n          data: productDisplayTag\n        });\n      })(productDisplayTags);\n    },\n    addProductDisplayTags(productDisplayTag = {}) {\n      const productDisplayTags = this.getData('productDisplayTags') || [];\n      const productDisplayTagModel = this.dataManager.setAsRecord({\n        adapterName: 'products/product-display-tags',\n        data: productDisplayTag\n      });\n      productDisplayTags.pushObject(productDisplayTagModel);\n      this.setData('productDisplayTags', productDisplayTags);\n    },\n    removeProductDisplayTag(productDisplayTag = {}) {\n      const productDisplayTags = this.getData('productDisplayTags') || [];\n      productDisplayTags.removeObject(productDisplayTag);\n      this.setData('productDisplayTags', productDisplayTags);\n    },\n    _transformSchedules({\n      data,\n      schedulesProp\n    }) {\n      const schedules = R.propOr([], schedulesProp)(data);\n      return R.map(schedule => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'status-schedules',\n          data: schedule\n        });\n      })(schedules);\n    },\n    addSchedule({\n      schedule = {},\n      schedulesProp = ''\n    }) {\n      if (schedulesProp) {\n        const schedules = this.getData(schedulesProp) || [];\n        const scheduleModel = this.dataManager.setAsRecord({\n          adapterName: 'status-schedules',\n          data: schedule\n        });\n        schedules.pushObject(scheduleModel);\n        this.setData(schedulesProp, schedules);\n      }\n    },\n    _transformCommissionBaseCost(data) {\n      let commissionBaseCostNew = R.propOr({}, 'commissionBaseCostNew')(data);\n      delete data.commissionBaseCostNew;\n      const mapIndexed = R.addIndex(R.map);\n      const mergeArrayOfObjects = (key, left, right) => {\n        if (R.equals(key, 'setDetails') || R.equals(key, 'variantChildren')) {\n          return mapIndexed((val, idx) => R.mergeDeepRight(val, right[idx]), left);\n        }\n        if (R.equals(key, 'choices') || R.equals(key, 'details')) {\n          return mapIndexed((val, idx) => {\n            return R.mergeDeepWithKey(mergeArrayOfObjects, val, right[idx]);\n          })(left);\n        }\n        return right;\n      };\n      commissionBaseCostNew = R.pipe(R.pick(['choices', 'setDetails', 'variantChildren', 'itemKey', 'item', 'salesQty', 'campaignKey', 'isSet', 'isSetWithChoices', 'hasVariants']), R.mergeDeepWithKey(mergeArrayOfObjects, commissionBaseCostNew))(data);\n      commissionBaseCostNew.master = data._key;\n      commissionBaseCostNew.campaignKey = data.master;\n      if (commissionBaseCostNew._key) {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/details/commission-base-cost',\n          data: commissionBaseCostNew\n        });\n      } else {\n        return this.dataManager.newRecord({\n          adapterName: 'channels/shop/campaigns/details/commission-base-cost',\n          data: commissionBaseCostNew\n        });\n      }\n    },\n    _transformLimits(data) {\n      if (data.limits) {\n        const limits = R.pipe(R.propOr([], 'limits'),\n        // R.sortWith([\n        //   R.ascend(R.prop('item'))\n        // ]),\n        R.map(limitData => {\n          return this.dataManager.setPartialRecord({\n            adapterName: this.get('childAdapters.detailsLimits'),\n            data: limitData\n          });\n        }))(data);\n        this.set('limits', limits);\n        delete data.limits;\n      }\n      return data;\n    },\n    // overSalesLimitedQtyStatusClass: computed('_data.overSalesLimitedQtyStatus', function () {\n    //   const status = this.get('_data.overSalesLimitedQtyStatus')\n    //   return this.get('productsService').getStatusClass(status)\n    // }),\n\n    hasOnSaleSchedules: Ember.computed('_data.{hasOnSaleSchedules,onSaleSchedules.[]}', function () {\n      const hasOnSaleSchedules = this?._data?.hasOnSaleSchedules === true;\n      const onSaleSchedules = this?._data?.onSaleSchedules || [];\n      if (hasOnSaleSchedules && _ramdaAdjunct.default.isNotNilOrEmpty(onSaleSchedules)) {\n        return true;\n      }\n      return false;\n    }),\n    limitsSorted: Ember.computed('limits.@each.synced', function () {\n      const limits = this.limits || [];\n      return R.pipe(R.filter(R.pathEq(['_data', 'hasSalesLimitedQty'], true)), R.sortWith([R.ascend(R.path(['_data', 'salesLimitedQty']))]))(limits);\n    }),\n    limitsProducts: Ember.computed('limits.@each.synced', 'limits.@each.product', function () {\n      const limits = this.limits || [];\n      return R.pluck('product')(limits);\n    }),\n    limitsSortedByItem: Ember.computed('limits.@each.synced', 'limitsProducts.@each.synced', function () {\n      const limits = this.limits || [];\n      return _nventor.default.sortTextAscendingByPath(['product', '_data', 'name'])(limits);\n    }),\n    hasAllSalesLimitedQty: Ember.computed('synced', 'limits.@each.synced', function () {\n      const limits = this.limits || [];\n      return R.pipe(R.pluck('_data'), R.reject(_ramdaAdjunct.default.isNilOrEmpty), R.pluck('hasSalesLimitedQty'), R.reject(_ramdaAdjunct.default.isNilOrEmpty), _ramdaAdjunct.default.allEqualTo(true))(limits);\n    }),\n    hasAnySalesLimitedQty: Ember.computed('synced', 'limits.@each.synced', function () {\n      const limits = this.limits || [];\n      return R.reduce((acc, limitedDetail) => {\n        if (acc) {\n          return acc;\n        }\n        if (limitedDetail?._data?.hasSalesLimitedQty) {\n          return true;\n        }\n        return false;\n      }, false)(limits);\n    }),\n    hasAnyAllowSalesPreOrder: Ember.computed('synced', 'limits.@each.synced', function () {\n      const limits = this.limits || [];\n      return R.reduce((acc, limitedDetail) => {\n        if (acc) {\n          return acc;\n        }\n        if (limitedDetail?._data?.allowPreOrder) {\n          return true;\n        }\n        return false;\n      }, false)(limits);\n    }),\n    hasAllSalesPreOrderLimitedQty: Ember.computed('synced', 'limits.@each.synced', function () {\n      const limits = this.limits || [];\n      return R.pipe(R.pluck('_data'), R.reject(_ramdaAdjunct.default.isNilOrEmpty), R.pluck('isUnlimitedPreOrder'), R.reject(_ramdaAdjunct.default.isNilOrEmpty), R.any(R.equals(true)), R.not)(limits);\n    }),\n    hasAnySalesPreOrderLimitedQty: Ember.computed('synced', 'limits.@each.synced', function () {\n      const limits = this.limits || [];\n      return R.reduce((acc, limitedDetail) => {\n        if (acc) {\n          return acc;\n        }\n        if (limitedDetail?._data?.hasSalesPreOrderLimitedQty) {\n          return true;\n        }\n        return false;\n      }, false)(limits);\n    }),\n    salesLimitedQtyLabel: Ember.computed('synced', '_data.{isSetWithChoices,isSet,hasVariants,isUnlimited}', function () {\n      const isUnlimited = this._data?.isUnlimited;\n      if (isUnlimited) {\n        return '∞';\n      }\n      return '';\n    }),\n    calculatedSalesLimitedQty: Ember.computed('synced', '_data.{isSetWithChoices,isSet,hasVariants,isUnlimited}', function () {\n      const isUnlimited = this._data?.isUnlimited;\n      if (isUnlimited) {\n        return 0;\n      }\n      return this._calculateSalesLimitedQty(this._data);\n    }),\n    salesPreOrderLimitedQtyLabel: Ember.computed('synced', '_data.{isSetWithChoices,isSet,hasVariants,calculatedSalesPreOrderLimitedQty}', 'minSalesPreOrderLimitedQtyLabel', function () {\n      if (this._data?.isSetWithChoices || this._data?.hasVariants || this._data?.isSet) {\n        if (this._data?.hasVariants && !this.hasAllSalesPreOrderLimitedQty) {\n          return '...';\n        }\n        return '';\n      }\n      if (!this.hasAnyAllowSalesPreOrder) {\n        return '0';\n      }\n      if (!this.hasAnySalesPreOrderLimitedQty) {\n        return '∞';\n      }\n      return '';\n    }),\n    _calculateSalesPreOrderLimitedQty(data = {}) {\n      let calculatedSalesPreOrderLimitedQty = 0;\n      if (data?.isSetWithChoices || data?.hasVariants || data?.isSet) {\n        if (data?.hasVariants && !this.hasAllSalesPreOrderLimitedQty) {\n          return 0;\n        }\n        calculatedSalesPreOrderLimitedQty = data?.calculatedSalesPreOrderLimitedQty || 0;\n        const isSet = data?.isSet;\n        if (isSet) {\n          const qtyPerBuy = data?.qtyPerBuy || 1;\n          calculatedSalesPreOrderLimitedQty = R.pipe(R.divide(R.__, qtyPerBuy), _ramdaAdjunct.default.floor)(calculatedSalesPreOrderLimitedQty);\n        }\n      } else {\n        calculatedSalesPreOrderLimitedQty = this.minSalesLimitedData?.minSalesPreOrderLimitedQty;\n      }\n      calculatedSalesPreOrderLimitedQty = Number(calculatedSalesPreOrderLimitedQty) || 0;\n      if (!this.hasAnyAllowSalesPreOrder) {\n        return 0;\n      }\n      if (calculatedSalesPreOrderLimitedQty < 0) {\n        return 0;\n      }\n      return calculatedSalesPreOrderLimitedQty;\n    },\n    calculatedSalesPreOrderLimitedQty: Ember.computed('synced', '_data.{isSetWithChoices,isSet,hasVariants,calculatedSalesPreOrderLimitedQty}', 'minSalesPreOrderLimitedQtyLabel', function () {\n      if (this._data?.isSetWithChoices || this._data?.hasVariants || this._data?.isSet) {\n        if (this._data?.hasVariants && !this.hasAllSalesPreOrderLimitedQty) {\n          return 0;\n        }\n        return this._calculateSalesPreOrderLimitedQty(this._data);\n      }\n      if (!this.hasAnyAllowSalesPreOrder) {\n        return 0;\n      }\n      if (!this.hasAnySalesPreOrderLimitedQty) {\n        return 0;\n      }\n      return this.minSalesLimitedData?.minSalesPreOrderLimitedQty;\n    }),\n    minSalesLimitedQtyLabel: Ember.computed('synced', '_data.isSetWithChoices', 'minSalesLimitedData.{hasSalesLimitedChoices,minSalesLimitedQty,minSalesPreOrderLimitedQty,minAvailableSalesLimitedQty,minAvailableSalesPreOrderLimitedQty}', 'hasAnySalesLimitedQty', 'isUnlimited', function () {\n      // only for normal set now, other is handled on API\n      if (!this.hasAnySalesLimitedQty) {\n        return '-';\n      }\n      if (this.isUnlimited) {\n        return '∞';\n      }\n\n      // if (this._data?.isSetWithChoices && !this.minSalesLimitedData?.hasSalesLimitedChoices) {\n      //   return '-'\n      // }\n\n      return this.intl.t('limited sales qty') + ': ' + this.intl.formatNumber(this.minSalesLimitedData?.minSalesLimitedQty || 0);\n    }),\n    minSalesPreOrderLimitedQtyLabel: Ember.computed('synced', 'minSalesLimitedData.{hasSalesLimitedChoices,minSalesLimitedQty,minSalesPreOrderLimitedQty,minAvailableSalesLimitedQty,minAvailableSalesPreOrderLimitedQty}', 'hasAnyAllowSalesPreOrder', 'hasAnySalesPreOrderLimitedQty', function () {\n      if (!this.hasAnyAllowSalesPreOrder) {\n        return '-';\n      }\n      if (!this.hasAnySalesPreOrderLimitedQty) {\n        return '∞';\n      }\n      return this.intl.t('limited preOrder qty') + ': ' + this.intl.formatNumber(this.minSalesLimitedData?.minSalesPreOrderLimitedQty || 0);\n    }),\n    minAvailableToSellQtyLabel: Ember.computed('_data.isSetWithChoices', 'hasAnySalesLimitedQty', 'hasAnyAllowSalesPreOrder', 'hasAnySalesPreOrderLimitedQty', 'minSalesLimitedData.{hasSalesLimitedChoices,minSalesLimitedQty,minSalesPreOrderLimitedQty,minAvailableSalesLimitedQty,minAvailableSalesPreOrderLimitedQty}', function () {\n      if (!this.hasAnySalesLimitedQty) {\n        return '∞';\n      }\n      if (this.hasAnyAllowSalesPreOrder && !this.hasAnySalesPreOrderLimitedQty) {\n        return '∞';\n      }\n      if (this?._data?.isSetWithChoices && !this.minSalesLimitedData?.hasSalesLimitedChoices) {\n        return '∞';\n      }\n      let minAvailableSalesLimitedQty = this.minSalesLimitedData?.minAvailableSalesLimitedQty || 0;\n      // let minAvailableSalesPreOrderLimitedQty = 0\n      // if (this.hasAnyAllowSalesPreOrder) {\n      //   minAvailableSalesPreOrderLimitedQty = this.minSalesLimitedData?.minAvailableSalesPreOrderLimitedQty\n      // }\n\n      return this.intl.formatNumber(minAvailableSalesLimitedQty);\n    }),\n    _calculateSalesLimitedQty(data = {}) {\n      let calculatedSalesLimitedQty = 0;\n      if (data?.isSetWithChoices || data?.hasVariants || data?.isSet) {\n        calculatedSalesLimitedQty = data?.calculatedSalesLimitedQty || 0;\n        const isSet = data?.isSet;\n        if (isSet) {\n          const qtyPerBuy = data?.qtyPerBuy || 1;\n          calculatedSalesLimitedQty = R.pipe(R.divide(R.__, qtyPerBuy), _ramdaAdjunct.default.floor)(calculatedSalesLimitedQty);\n        }\n      } else {\n        calculatedSalesLimitedQty = this.minSalesLimitedData?.minSalesLimitedQty;\n      }\n      return calculatedSalesLimitedQty;\n    },\n    _calculateSalesPreOrderLimitedQty(data = {}) {\n      let calculatedSalesPreOrderLimitedQty = this.calculatedAvailablePreOrderQtyOnlyBeforeCart || 0;\n      const isSet = data?.isSet;\n      if (isSet) {\n        const qtyPerBuy = data?.qtyPerBuy || 1;\n        calculatedSalesPreOrderLimitedQty = R.pipe(R.divide(R.__, qtyPerBuy), _ramdaAdjunct.default.floor)(calculatedSalesPreOrderLimitedQty);\n      }\n      return calculatedSalesPreOrderLimitedQty;\n    },\n    hasSalesLimitedQtyProgressByAvailableQty: Ember.computed('synced', '_data.{isSetWithChoices,isUnlimited,calculatedSalesLimitedQty,isSetWithChoices,hasVariants,isSet}', 'calculatedAvailableQtyBeforeCart', 'minSalesLimitedData.minSalesLimitedQty', function () {\n      // delete?\n      if (this._data?.isSetWithChoices) {\n        return false;\n      }\n      const isUnlimited = this._data?.isUnlimited;\n      if (isUnlimited) {\n        return false;\n      }\n      const calculatedSalesLimitedQty = this._calculateSalesLimitedQty(this._data);\n      if (!calculatedSalesLimitedQty) {\n        return false;\n      }\n      if (calculatedSalesLimitedQty < 0) {\n        return false;\n      }\n      return true;\n    }),\n    hasSalesPreOrderLimitedQtyProgressByAvailableQty: Ember.computed('synced', '_data.{isSetWithChoices,isUnlimited,calculatedSalesPreOrderLimitedQty,isSetWithChoices,hasVariants,isSet}', 'calculatedAvailableQtyBeforeCart', 'minSalesLimitedData.minSalesPreOrderLimitedQty', function () {\n      if (this._data?.isSetWithChoices || this._data?.hasVariants || this._data?.isSet) {\n        if (this._data?.hasVariants && !this.hasAllSalesPreOrderLimitedQty) {\n          return '-';\n        }\n        let calculatedSalesPreOrderLimitedQty = this._data?.calculatedSalesPreOrderLimitedQty || 0;\n        const isSet = this.getData('isSet');\n        if (isSet) {\n          const qtyPerBuy = this.getData('qtyPerBuy') || 1;\n          calculatedSalesPreOrderLimitedQty = R.pipe(R.divide(R.__, qtyPerBuy), _ramdaAdjunct.default.floor)(calculatedSalesPreOrderLimitedQty);\n        }\n        return this.intl.formatNumber(calculatedSalesPreOrderLimitedQty);\n      }\n      if (!this.hasAnyAllowSalesPreOrder) {\n        return '-';\n      }\n      if (!this.hasAnySalesPreOrderLimitedQty) {\n        return '∞';\n      }\n      return this.intl.t('limited preOrder qty') + ': ' + this.intl.formatNumber(this.minSalesLimitedData?.minSalesPreOrderLimitedQty || 0);\n      return this.minSalesPreOrderLimitedQtyLabel;\n\n      // const calculatedSalesPreOrderLimitedQty = this._calculateSalesPreOrderLimitedQty(this._data)\n\n      // if (!calculatedSalesPreOrderLimitedQty) {\n      //   return false\n      // }\n\n      // if (calculatedSalesPreOrderLimitedQty < 0) {\n      //   return false\n      // }\n\n      // return true\n    }),\n    salesLimitedQtyProgressByAvailableQty: Ember.computed('synced', 'hasSalesLimitedQtyProgressByAvailableQty', '_data.calculatedAvailableQtyBeforeCart', function () {\n      if (!this.hasSalesLimitedQtyProgressByAvailableQty) {\n        return 0;\n      }\n      const calculatedSalesLimitedQty = this._calculateSalesLimitedQty(this._data);\n      const calculatedAvailableQtyBeforeCart = Number(this._data?.calculatedAvailableQtyBeforeCart) || 0;\n      const progress = this.big.newBig(calculatedAvailableQtyBeforeCart).div(calculatedSalesLimitedQty).toFixed(1);\n      return progress;\n    }),\n    isOverSalesLimitedQtyItems: Ember.computed('hasAnySalesLimitedQty', 'limits.@each.synced', 'synced', function () {\n      const hasAnySalesLimitedQty = this.hasAnySalesLimitedQty;\n      if (hasAnySalesLimitedQty) {\n        const limitsSorted = this.limitsSorted || [];\n        return R.filter(limitDetail => {\n          return R.path(['_data', 'isOverSalesLimitedQty'])(limitDetail);\n        })(limitsSorted);\n      }\n      return [];\n    }),\n    currentStatus: Ember.computed('._data.{status,calculatedStatusBeforeCart}', 'isStatusAndCalculatedStatusDifferent', function () {\n      const status = this?._data?.status;\n      const calculatedStatusBeforeCart = this?._data?.calculatedStatusBeforeCart;\n      const isStatusAndCalculatedStatusDifferent = this.isStatusAndCalculatedStatusDifferent || false;\n      if (isStatusAndCalculatedStatusDifferent) {\n        return calculatedStatusBeforeCart;\n      }\n      return status;\n    }),\n    currentStatusClass: Ember.computed('currentStatus', function () {\n      const currentStatus = this?.currentStatus;\n      return this.productsService.getStatusClass(currentStatus);\n    }),\n    setChildProductPrice(campaignOrAutomationModel, child, historyData) {\n      const isCampaign = R.prop('campaign', historyData);\n      this._setItemPrice(campaignOrAutomationModel, isCampaign, child, historyData);\n      this._setVariantChildrenPrices(campaignOrAutomationModel, isCampaign, child, historyData);\n    },\n    _setItemPrice(campaignOrAutomationModel, isCampaign, item, historyData) {\n      const isAutomationMustAdd = campaignOrAutomationModel?.isAutoAdd || false;\n      if (isCampaign) {\n        const price = R.propOr('', 'price', historyData);\n        let priceDiscounted = R.propOr('', 'priceDiscounted', historyData);\n        let priceFinal = R.propOr('', 'priceFinal', historyData);\n        let onSale = R.propOr('', 'onSale', historyData);\n        if (isAutomationMustAdd) {\n          priceDiscounted = '0';\n          priceFinal = '0';\n          onSale = 'on';\n        }\n        const isSetNew = R.propOr('', 'isSetNew', historyData);\n        if (onSale) {\n          item.setData('onSale', onSale);\n        }\n        if (isSetNew) {\n          item.setData('isSetNew', isSetNew);\n        }\n        item.setData('price', price);\n        item.setData('priceDiscounted', priceDiscounted);\n        item.setData('priceFinal', priceFinal);\n      } else {\n        let price;\n        price = historyData.inclPrice;\n        if (!price) {\n          price = R.propOr('', 'salesInclPrice', historyData);\n        }\n        let priceDiscounted = '';\n        if (isAutomationMustAdd) {\n          priceDiscounted = 0;\n        }\n        item.setData('price', price);\n        item.setData('priceDiscounted', priceDiscounted);\n      }\n    },\n    _setVariantChildrenPrices(campaignOrAutomationModel, isCampaign, item, historyData) {\n      const variantChildrenHistory = R.propOr([], 'variantChildren')(historyData);\n      R.pipe(R.pathOr([], ['_data', 'variantChildren']), R.forEach(child => {\n        const variantChildId = child._data.variantChildId;\n        let childHistory = R.find(R.propEq('variantChildId', variantChildId))(variantChildrenHistory);\n        if (!childHistory) {\n          const variantChildUid = child._data.variantChildUid;\n          childHistory = R.find(R.propEq('variantChildUid', variantChildUid))(variantChildrenHistory);\n        }\n        if (childHistory) {\n          this._setItemPrice(campaignOrAutomationModel, isCampaign, child, childHistory);\n        }\n      }))(item);\n    },\n    _setSetDetailsPrices(campaign, isCampaign, item, historyData) {\n      const setDetailsHistory = R.propOr([], 'setDetails')(historyData);\n      R.pipe(R.pathOr([], ['_data', 'setDetails']), R.forEach(child => {\n        const setDetailItemKey = child?._data?.itemKey;\n        const setDetailHistory = R.find(R.propEq('itemKey', setDetailItemKey))(setDetailsHistory);\n        if (setDetailHistory) {\n          this._setItemPrice(campaign, isCampaign, child, setDetailHistory);\n        }\n      }))(item);\n    },\n    isOverSalesLimitedQtyForTag: Ember.computed('synced', '_data.{isSetWithChoices,isSet,hasVariants,calculatedStatusBeforeCart}', 'isOverSalesLimitedQty', function () {\n      if (this._data?.isSetWithChoices || this._data?.hasVariants || this._data?.isSet) {\n        const calculatedStatusBeforeCart = this._data.calculatedStatusBeforeCart;\n        if (R.equals(calculatedStatusBeforeCart, 'active')) {\n          return false;\n        }\n        return true;\n      }\n      return this.isOverSalesLimitedQty;\n    }),\n    isOverSalesLimitedQty: Ember.computed('isOverSalesLimitedQtyItems.[]', '_data.status', function () {\n      if (this._data.status === this.constants.productsStatus.inactive) {\n        return false;\n      }\n      const isOverSalesLimitedQtyItems = this.isOverSalesLimitedQtyItems;\n      if (!R.isEmpty(isOverSalesLimitedQtyItems)) {\n        return R.reduce((acc, limitDetail) => {\n          if (acc) {\n            return acc;\n          }\n          return R.path(['_data', 'isOverSalesLimitedQty'])(limitDetail);\n        }, false)(isOverSalesLimitedQtyItems);\n      }\n      return false;\n    }),\n    // calculatedStatusBeforeCartForTag: computed('synced', '_data.{isSetWithChoices,isSet,hasVariants,calculatedStatusBeforeCart}', 'isOverSalesLimitedQtyStatus', function () {\n    //   if (this._data?.isSetWithChoices || this._data?.hasVariants || this._data?.isSet) {\n    //     return this._data.calculatedStatusBeforeCart\n    //   }\n\n    //   return this.isOverSalesLimitedQtyStatus\n    // }),\n\n    isOverSalesLimitedQtyStatus: Ember.computed('isOverSalesLimitedQtyItems.[]', 'isOverSalesLimitedQty', function () {\n      const isOverSalesLimitedQtyItems = this.isOverSalesLimitedQtyItems;\n      if (!R.isEmpty(isOverSalesLimitedQtyItems)) {\n        const result = R.reduce((acc, limitDetail) => {\n          if (acc === this.constants.productsStatus.soldOut) {\n            return acc;\n          }\n          return R.path(['_data', 'overSalesLimitedQtyStatus'])(limitDetail);\n        }, false)(isOverSalesLimitedQtyItems);\n        if (!result) {\n          return this._data.overSalesLimitedQtyStatus;\n        }\n        return result;\n      }\n      return this._data.overSalesLimitedQtyStatus;\n    }),\n    // minSalesDetailsLimitData: computed('hasAnySalesLimitedQty', 'limitsSorted.@each.synced', '_data.salesLimitedType', function () {\n    //   const hasAnySalesLimitedQty = this.hasAnySalesLimitedQty\n    //   if (hasAnySalesLimitedQty) {\n    //     const limitsSorted = this.limitsSorted || []\n    //     return nventor.safeHeadOr({})(limitsSorted)\n    //   }\n\n    //   return {}\n    // }),\n\n    // minSalesLimitedQty: computed('minSalesDetailsLimitData.{itemKey,salesLimitedQty,salesLimitedType}', function () {\n    //   const minSalesDetailsLimitData = this.minSalesDetailsLimitData || {}\n    //   const preOrderQty = parseInt(R.pathOr(0, ['salesPreOrderLimitedQty'])(minSalesDetailsLimitData)) || 0\n    //   const salesLimitedQty = parseInt(R.pathOr(0, ['salesLimitedQty'])(minSalesDetailsLimitData)) || 0\n    //   return preOrderQty + salesLimitedQty\n    // }),\n\n    _calculateMinSalesLimitedDataForSet(detail, limits) {\n      const limitedDetail = R.find(R.pathEq(['_data', 'itemKey'], detail?._data?.itemKey))(limits);\n      const salesLimitedQtys = [];\n      const salesPreOrderLimitedQtys = [];\n      const availableSalesLimitedQtys = [];\n      const availableSalesPreOrderLimitedQtys = [];\n      if (limitedDetail?._data?.hasSalesLimitedQty) {\n        salesLimitedQtys.push(parseInt(limitedDetail?._data?.salesLimitedQty) || 0);\n        availableSalesLimitedQtys.push(parseInt(limitedDetail?._data?.calculatedAvailableQtyBeforeCart) || 0);\n      }\n      if (limitedDetail?._data?.allowPreOrder) {\n        if (limitedDetail?._data?.hasSalesPreOrderLimitedQty) {\n          salesPreOrderLimitedQtys.push(parseInt(limitedDetail?._data?.salesPreOrderLimitedQty) || 0);\n          availableSalesPreOrderLimitedQtys.push(parseInt(limitedDetail?._data?.calculatedAvailablePreOrderQtyBeforeCart) || 0);\n        }\n      } else if (limitedDetail?._data?.hasSalesLimitedQty) {\n        salesPreOrderLimitedQtys.push(0);\n        availableSalesPreOrderLimitedQtys.push(0);\n      }\n      R.pipe(R.pathOr([], ['_data', 'setDetails']), R.forEach(setDetail => {\n        const childLimitedDetail = R.find(R.pathEq(['_data', 'itemKey'], setDetail?._data?.itemKey))(limits);\n        const setChildQty = parseInt(setDetail?._data?.qty) || 1;\n        if (childLimitedDetail) {\n          if (childLimitedDetail?._data?.hasSalesLimitedQty) {\n            const salesLimitedQty = parseInt(childLimitedDetail?._data?.salesLimitedQty) || 0;\n            const parentSalesLimitedQty = Math.floor(salesLimitedQty / setChildQty);\n            salesLimitedQtys.push(parentSalesLimitedQty);\n            const availableSalesLimitedQty = parseInt(childLimitedDetail?._data?.calculatedAvailableQtyBeforeCart) || 0;\n            const parentAvailableSalesLimitedQty = Math.floor(availableSalesLimitedQty / setChildQty);\n            availableSalesLimitedQtys.push(parentAvailableSalesLimitedQty);\n          }\n          if (childLimitedDetail?._data?.allowPreOrder) {\n            if (childLimitedDetail?._data.hasSalesLimitedQty) {\n              const salesPreOrderLimitedQty = parseInt(childLimitedDetail?._data?.salesPreOrderLimitedQty) || 0;\n              const parentSalesPreOrderLimitedQty = Math.floor(salesPreOrderLimitedQty / setChildQty);\n              salesPreOrderLimitedQtys.push(parentSalesPreOrderLimitedQty);\n              const availableSalesPreOrderLimitedQty = parseInt(childLimitedDetail?._data?.calculatedAvailablePreOrderQtyBeforeCart) || 0;\n              const parentAvailableSalesPreOrderLimitedQty = Math.floor(availableSalesPreOrderLimitedQty / setChildQty);\n              availableSalesPreOrderLimitedQtys.push(parentAvailableSalesPreOrderLimitedQty);\n            }\n          } else if (childLimitedDetail?._data?.hasSalesLimitedQty) {\n            salesPreOrderLimitedQtys.push(0);\n            availableSalesPreOrderLimitedQtys.push(0);\n          }\n        }\n      }))(detail);\n      return {\n        hasSalesLimitedChoices: false,\n        minSalesLimitedQty: R.pipe(_nventor.default.sortAscending, R.propOr(false, 0))(salesLimitedQtys),\n        minSalesPreOrderLimitedQty: R.pipe(_nventor.default.sortAscending, R.propOr(false, 0))(salesPreOrderLimitedQtys),\n        minAvailableSalesLimitedQty: R.pipe(_nventor.default.sortAscending, R.propOr(false, 0))(availableSalesLimitedQtys),\n        minAvailableSalesPreOrderLimitedQty: R.pipe(_nventor.default.sortAscending, R.propOr(false, 0))(availableSalesPreOrderLimitedQtys)\n      };\n    },\n    minSalesLimitedData: Ember.computed('limits.@each.synced', 'synced', function () {\n      const limits = this.limits || [];\n      const isSet = this?._data?.isSet;\n      if (isSet) {\n        return this._calculateMinSalesLimitedDataForSet(this, limits);\n      }\n      const isSetWithChoices = this?._data?.isSetWithChoices;\n      if (isSetWithChoices) {\n        const salesLimitedQtys = [];\n        const salesPreOrderLimitedQtys = [];\n        const availableSalesLimitedQtys = [];\n        const availableSalesPreOrderLimitedQtys = [];\n        let hasSalesLimitedChoices = false;\n        R.pipe(R.pathOr([], ['_data', 'choices']), R.forEach(choice => {\n          const choiceSalesLimitedQtys = [];\n          const choiceSalesPreOrderLimitedQtys = [];\n          const choiceAvailableSalesLimitedQtys = [];\n          const choiceAvailableSalesPreOrderLimitedQtys = [];\n          const choiceDetails = R.pathOr([], ['_data', 'details'])(choice);\n          R.forEach(detail => {\n            if (detail?._data?.isSet) {\n              const setLimitedData = this._calculateMinSalesLimitedDataForSet(detail, limits);\n              if (setLimitedData.minSalesLimitedQty !== false) {\n                choiceSalesLimitedQtys.push(parseInt(setLimitedData.minSalesLimitedQty) || 0);\n              }\n              if (setLimitedData.minAvailableSalesLimitedQty !== false) {\n                choiceAvailableSalesLimitedQtys.push(parseInt(setLimitedData.minAvailableSalesLimitedQty) || 0);\n              }\n              if (setLimitedData.minSalesLimitedQty !== false) {\n                choiceSalesPreOrderLimitedQtys.push(parseInt(setLimitedData.minSalesPreOrderLimitedQty) || 0);\n              }\n              if (setLimitedData.minAvailableSalesPreOrderLimitedQty !== false) {\n                choiceAvailableSalesPreOrderLimitedQtys.push(parseInt(setLimitedData.minAvailableSalesPreOrderLimitedQty) || 0);\n              }\n            } else {\n              // find childLimitData\n              const childLimitedDetail = R.find(R.pathEq(['_data', 'itemKey'], detail?._data.itemKey))(limits);\n              if (childLimitedDetail?._data.hasSalesLimitedQty) {\n                choiceSalesLimitedQtys.push(parseInt(childLimitedDetail?._data.salesLimitedQty) || 0);\n                choiceAvailableSalesLimitedQtys.push(parseInt(childLimitedDetail?._data?.calculatedAvailableQtyBeforeCart) || 0);\n              }\n              if (childLimitedDetail?._data?.allowPreOrder) {\n                if (childLimitedDetail?._data.hasSalesPreOrderLimitedQty) {\n                  choiceSalesPreOrderLimitedQtys.push(parseInt(childLimitedDetail?._data.salesPreOrderLimitedQty) || 0);\n                  choiceAvailableSalesPreOrderLimitedQtys.push(parseInt(childLimitedDetail?._data?.calculatedAvailablePreOrderQtyBeforeCart) || 0);\n                }\n              } else if (childLimitedDetail?._data?.hasSalesLimitedQty) {\n                choiceSalesPreOrderLimitedQtys.push(0);\n                choiceAvailableSalesPreOrderLimitedQtys.push(0);\n              }\n            }\n          })(choiceDetails);\n          if (choiceSalesLimitedQtys.length === choiceDetails.length) {\n            hasSalesLimitedChoices = true;\n            const choiceQty = choice?._data?.qty || 1;\n            if (choiceSalesLimitedQtys.length > 0) {\n              salesLimitedQtys.push(Math.floor(R.sum(choiceSalesLimitedQtys) / choiceQty));\n            }\n            if (choiceAvailableSalesLimitedQtys.length > 0) {\n              availableSalesLimitedQtys.push(Math.floor(R.sum(choiceAvailableSalesLimitedQtys) / choiceQty));\n            }\n            if (choiceSalesPreOrderLimitedQtys.length > 0) {\n              salesPreOrderLimitedQtys.push(Math.floor(R.sum(choiceSalesPreOrderLimitedQtys) / choiceQty));\n            }\n            if (choiceAvailableSalesPreOrderLimitedQtys.length > 0) {\n              availableSalesPreOrderLimitedQtys.push(Math.floor(R.sum(choiceAvailableSalesPreOrderLimitedQtys) / choiceQty));\n            }\n          }\n        }))(this);\n        return {\n          hasSalesLimitedChoices,\n          minSalesLimitedQty: R.pipe(_nventor.default.sortAscending, R.propOr(false, 0))(salesLimitedQtys),\n          minSalesPreOrderLimitedQty: R.pipe(_nventor.default.sortAscending, R.propOr(false, 0))(salesPreOrderLimitedQtys),\n          minAvailableSalesLimitedQty: R.pipe(_nventor.default.sortAscending, R.propOr(false, 0))(availableSalesLimitedQtys),\n          minAvailableSalesPreOrderLimitedQty: R.pipe(_nventor.default.sortAscending, R.propOr(false, 0))(availableSalesPreOrderLimitedQtys)\n        };\n      }\n      const limitedDetail = R.find(R.pathEq(['_data', 'itemKey'], this?._data?.itemKey))(limits);\n      let minSalesLimitedQty = false;\n      let minAvailableSalesLimitedQty = false;\n      if (limitedDetail?._data?.hasSalesLimitedQty) {\n        minSalesLimitedQty = R.pathOr(false, ['_data', 'salesLimitedQty'])(limitedDetail);\n        minAvailableSalesLimitedQty = R.pathOr(false, ['_data', 'calculatedAvailableQtyBeforeCart'])(limitedDetail);\n      }\n      let minSalesPreOrderLimitedQty = false;\n      let minAvailableSalesPreOrderLimitedQty = false;\n      if (limitedDetail?._data.allowPreOrder) {\n        if (limitedDetail?._data?.hasSalesPreOrderLimitedQty) {\n          minSalesPreOrderLimitedQty = R.pathOr(false, ['_data', 'salesPreOrderLimitedQty'])(limitedDetail);\n          minAvailableSalesPreOrderLimitedQty = R.pathOr(false, ['_data', 'calculatedAvailablePreOrderQtyBeforeCart'])(limitedDetail);\n        }\n      }\n      return {\n        hasSalesLimitedChoices: false,\n        minSalesLimitedQty,\n        minSalesPreOrderLimitedQty,\n        minAvailableSalesLimitedQty,\n        minAvailableSalesPreOrderLimitedQty\n      };\n    }),\n    availableQty: Ember.computed('_data.salesQty', 'minSalesLimitedData.{hasSalesLimitedChoices,minSalesLimitedQty,minSalesPreOrderLimitedQty,minAvailableSalesLimitedQty,minAvailableSalesPreOrderLimitedQty}', function () {\n      const minAvailableSalesLimitedQty = this.minSalesLimitedData?.minAvailableSalesLimitedQty;\n      if (minAvailableSalesLimitedQty === false) {\n        return '';\n      }\n      if (this._data.isSetWithChoices) {\n        if (!this.minSalesLimitedData?.hasSalesLimitedChoices) {\n          return '';\n        }\n      }\n      return this.intl.formatNumber(parseInt(minAvailableSalesLimitedQty) || 0);\n    }),\n    availablePreOrderQty: Ember.computed('_data.salesQty', 'minSalesLimitedData.{hasSalesLimitedChoices,minSalesLimitedQty,minSalesPreOrderLimitedQty,minAvailableSalesLimitedQty,minAvailableSalesPreOrderLimitedQty}', function () {\n      const minAvailableSalesPreOrderLimitedQty = this.minSalesLimitedData?.minAvailableSalesPreOrderLimitedQty;\n      if (minAvailableSalesPreOrderLimitedQty === false) {\n        return '';\n      }\n      if (this._data.isSetWithChoices) {\n        if (!this.minSalesLimitedData?.hasSalesLimitedChoices) {\n          return '';\n        }\n      }\n      return this.intl.formatNumber(parseInt(minAvailableSalesPreOrderLimitedQty) || 0);\n    }),\n    // currentStatus: computed('hasAnySalesLimitedQty', '_data.status', 'limitsSorted.[]', function () {\n    //   const limits = this.get('limitsSorted') || []\n    //   if (limits)\n    // }),\n\n    loadProduct(campaign, item, product, {\n      isResync = false\n    } = {}) {\n      if (isResync) {\n        return this._resyncProduct(campaign, item, product);\n      }\n      const itemDataBeforeReset = R.clone(item.serialize());\n      itemDataBeforeReset.campaign = true;\n      this.resetDetail();\n      const itemData = this.serialize();\n      // @TODO: get from settings?\n      if (_ramdaAdjunct.default.isEmptyArray(itemData.productSync)) {\n        itemData.productSync = ['item', 'templates', 'productTags', 'productDisplayTags', 'description', 'additionalDescription', 'recurringSchedules'];\n      }\n\n      // @NOTE: WHEN OVERRIDING DETAIL WITH PRODUCT OMIT THIS KEYS\n      const exclude = ['_key', '_rev', '_id', 'status', 'creator', 'createdDateZ', 'modified', 'timestampZ', 'timestampZ_update', 'timestampZ_latest'];\n      const productData = product.serialize({\n        exclude\n      });\n      itemData.itemKey = product.getData('_key');\n      itemData.item = productData.name || itemData?.item;\n      itemData.checkoutDescription = productData.checkoutDescription;\n      itemData.itemCode = productData.code;\n      itemData.productTags = R.pathOr([], ['_data', 'tags'], product) || itemData?.productTags || [];\n      itemData.roundingInventoryQty = productData.roundingInventoryQty || this.settings.getProp('roundingInventoryQty');\n      itemData.roundingInventoryPrice = productData.roundingInventoryPrice || this.settings.getProp('roundingInventoryPrice');\n      const onSale = itemData.onSale;\n      this._loadIsSetWithChoices(campaign, productData, onSale);\n      this._loadVariantChildren(campaign, productData, onSale);\n      this._loadCustomizationsPrice(itemData, productData); // @TODO darwin: is this correct? should be itemDataBeforeReset?\n\n      const newItemData = R.mergeRight(itemData, productData);\n      this.populate(newItemData);\n\n      // @NOTE: DO NOT SET PRICES ON LOAD OR RE-SYNC\n      // setting price back when resync. if adding product for the first time will not set anything\n      this.setDetailPrice(campaign, item, itemDataBeforeReset);\n    },\n    _resyncProduct(campaign, item, product, {\n      isResync = false\n    } = {}) {\n      const itemData = R.clone(item.serialize());\n      itemData.campaign = true;\n\n      // @TODO: get from settings?\n      if (_ramdaAdjunct.default.isEmptyArray(itemData.productSync)) {\n        itemData.productSync = ['item', 'templates', 'productTags', 'productDisplayTags', 'description', 'additionalDescription', 'recurringSchedules'];\n      }\n\n      // @NOTE: WHEN OVERRIDING DETAIL WITH PRODUCT OMIT THIS KEYS\n      const exclude = ['_key', '_rev', '_id', 'status', 'creator', 'createdDateZ', 'modified', 'timestampZ', 'timestampZ_update', 'timestampZ_latest'];\n      const productSync = this._data?.productSync || [];\n      if (!R.includes('item')(productSync)) {\n        exclude.pushObject('name');\n      }\n      if (!R.includes('description')(productSync)) {\n        exclude.pushObject('description');\n      }\n      if (!R.includes('additionalDescription')(productSync)) {\n        exclude.pushObject('additionalDescription');\n      }\n      if (!R.includes('templates')(productSync)) {\n        exclude.pushObject('template');\n        exclude.pushObject('templates');\n      }\n      if (!R.includes('productTags')(productSync)) {\n        exclude.pushObject('tags');\n      }\n      if (!R.includes('productDisplayTags')(productSync)) {\n        exclude.pushObject('productDisplayTags');\n      }\n      const productData = product.serialize({\n        exclude\n      });\n      itemData.itemKey = product.getData('_key');\n      itemData.item = productData.name || itemData?.item;\n      itemData.checkoutDescription = productData.checkoutDescription;\n      itemData.itemCode = productData.code;\n      itemData.productTags = R.pathOr([], ['_data', 'tags'], product) || itemData?.productTags || [];\n      itemData.roundingInventoryQty = productData.roundingInventoryQty || this.settings.getProp('roundingInventoryQty');\n      itemData.roundingInventoryPrice = productData.roundingInventoryPrice || this.settings.getProp('roundingInventoryPrice');\n      const onSale = itemData.onSale;\n      this._loadIsSetWithChoices(campaign, productData, onSale);\n      this._loadVariantChildren(campaign, productData, onSale);\n\n      // @TODO darwin: is this correct? should be itemDataBeforeReset?\n      this._loadCustomizationsPrice(itemData, productData);\n      const newItemData = R.mergeDeepWithKey(this._mergeDeepConditionForResyncProduct, itemData, productData);\n      this.populate(newItemData);\n\n      // @NOTE: DO NOT SET PRICES ON LOAD OR RE-SYNC\n      // setting price back when resync. if adding product for the first time will not set anything\n      this.setDetailPrice(campaign, item, itemData);\n    },\n    _mergeDeepConditionForResyncProduct(param, itemDataVal, productDataVal) {\n      if (param === 'status') {\n        // if campaignDetail status is active, then get from productData, else always use campaignDetails one.\n        if (itemDataVal === 'active') {\n          return productDataVal;\n        } else {\n          return itemDataVal;\n        }\n      }\n      if (param === 'choices') {\n        // remove choice status from campaignDetails, should always get from productData\n        R.forEach(choice => {\n          delete choice.status;\n        })(itemDataVal);\n      }\n      const arrayOfObjectsParam = ['setDetails', 'variantChildren', 'choices', 'details' //choiceDetails\n      ];\n      if (R.includes(param, arrayOfObjectsParam)) {\n        return this._mergeDeepConditionForResyncProductArrayOfObjects(param, itemDataVal, productDataVal);\n      }\n\n      // always return right ones for other for now\n      return productDataVal;\n    },\n    _mergeDeepConditionForResyncProductArrayOfObjects(param, itemDataArrayOfObjects, productDataArrayOfObjects) {\n      if (R.length(itemDataArrayOfObjects) === 0) {\n        // return early no need check\n        return productDataArrayOfObjects;\n      }\n      return R.map(productDataObject => {\n        let identifier = 'itemKey';\n        if (param === 'choices') {\n          identifier = 'name';\n        }\n        let productDataObjectValue = R.propOr('', identifier)(productDataObject);\n        if (!productDataObjectValue) {\n          return productDataObject;\n        }\n        const itemDataObject = R.find(R.propEq(identifier, productDataObjectValue))(itemDataArrayOfObjects);\n        return R.mergeDeepWithKey(this._mergeDeepConditionForResyncProduct, itemDataObject, productDataObject);\n      })(productDataArrayOfObjects);\n    },\n    _loadCustomizationsPrice(itemData, productData) {\n      // USED TO ADD BACK THE PRICE BASED ON OPTIONUID AFTER SYNC\n      const itemDataCustomizationsOptions = R.pipe(R.propOr([], 'customizations'), R.map(R.propOr([], 'options')), R.flatten, R.reject(_ramdaAdjunct.default.isNilOrEmpty))(itemData);\n      productData.customizations = R.pipe(R.propOr([], 'customizations'), R.map(customization => {\n        const options = customization?.options || [];\n        R.forEach(option => {\n          const optionUid = option?.optionUid;\n          const itemDataCustomizationOption = R.find(R.propEq('optionUid', optionUid))(itemDataCustomizationsOptions);\n          if (_ramdaAdjunct.default.isNotNilOrEmpty(itemDataCustomizationOption)) {\n            option.price = itemDataCustomizationOption?.price;\n            option.priceDiscounted = itemDataCustomizationOption?.priceDiscounted;\n          }\n        })(options);\n        return customization;\n      }))(productData);\n    },\n    _loadIsSetWithChoices(campaign, productData, onSale) {\n      // isSetWithChoices is ignored for now (refactoring on new branch)\n      if (productData.isSetWithChoices) {\n        productData.choices = R.pipe(R.propOr([], 'choices'), R.map(choiceData => {\n          // const details = choiceData.details || []\n          choiceData.onSale = onSale;\n          choiceData.details = R.pipe(R.propOr([], 'details'), R.map(detailData => {\n            detailData.onSale = onSale;\n            if (detailData.hasVariants) {\n              detailData = this._loadVariantChildren(campaign, detailData, onSale);\n            }\n            return detailData;\n          }))(choiceData);\n          return choiceData;\n        }))(productData);\n        productData.price = 0;\n        productData.priceDiscounted = 0;\n      }\n      return productData;\n    },\n    _loadVariantChildren(campaign, productData, onSale) {\n      const hasVariants = productData.hasVariants;\n      if (hasVariants) {\n        productData.variantChildren = R.pipe(R.propOr([], 'variantChildren'), R.map(variantChild => {\n          variantChild.onSale = onSale;\n\n          // when child product is isSetWithChoice.variant it already has child.itemKey\n          // but when child product is from hasVariants (not in set with choice) then it does not have itemKey (as its coming from the products collection)\n          if (!variantChild.itemKey) {\n            variantChild.itemKey = variantChild._key || '';\n          }\n          if (!variantChild.item) {\n            variantChild.item = variantChild.name || '';\n          }\n          if (!variantChild.itemCode) {\n            variantChild.itemCode = variantChild.code || '';\n          }\n          variantChild.price = '';\n          variantChild.priceDiscounted = '';\n          variantChild.priceFinal = '';\n\n          // product data has variantChildren hasVariants = false, fucking up schema in API to ignore price when hasVariants=true\n          delete variantChild.hasVariants;\n          return variantChild;\n        }))(productData);\n      }\n      return productData;\n    },\n    setDetailPrice(campaignOrAutomationModel, item, historyData) {\n      // if from campaign:\n      //    - use price\n      //    - set priceDiscounted\n      //    - set onSale\n      //\n      // if from history doc\n      //    - use inclPrice\n      // if from product\n      //    - use salesInclPrice\n      const isCampaign = R.prop('campaign', historyData);\n      this._setItemPrice(campaignOrAutomationModel, isCampaign, item, historyData);\n      // @TODO darwin: refactor set with choices in new branch\n      this._setIsSetWithChoicesPrices(campaignOrAutomationModel, isCampaign, item, historyData);\n      this._setVariantChildrenPrices(campaignOrAutomationModel, isCampaign, item, historyData);\n      this._setSetDetailsPrices(campaignOrAutomationModel, isCampaign, item, historyData);\n      this.recalculatePrice(item);\n    },\n    // @TODO darwin: refactor in new branch\n    _setIsSetWithChoicesPrices(campaignOrAutomationModel, isCampaign, item, historyData) {\n      const choicesChildrenHistory = R.pipe(R.propOr([], 'choices'), R.pluck('details'), R.flatten)(historyData);\n      const choicesHistory = R.pipe(R.propOr([], 'choices'), R.flatten)(historyData);\n      R.pipe(R.pathOr([], ['_data', 'choices']), R.forEach(choice => {\n        const name = choice.getData('name');\n        const index = choice.getData('index');\n        const choiceHistory = R.find(R.allPass([R.propEq('name', name), R.propEq('index', index)]), choicesHistory);\n        if (!choiceHistory) {\n          return false;\n        }\n        if (choiceHistory.isSetPriceOnBundle) {\n          choice.setData('isSetPriceOnBundle', choiceHistory.isSetPriceOnBundle);\n        }\n        if (choiceHistory.price) {\n          choice.setData('price', choiceHistory.price);\n        }\n        if (choiceHistory.priceDiscounted) {\n          choice.setData('priceDiscounted', choiceHistory.priceDiscounted);\n        }\n        if (choiceHistory.priceFinal) {\n          choice.setData('priceFinal', choiceHistory.priceFinal);\n        }\n      }))(item);\n      R.pipe(R.pathOr([], ['_data', 'choices']), R.pluck('_data'), R.pluck('details'), R.flatten, R.forEach(child => {\n        const itemKey = child.getData('itemKey');\n        const childHistory = R.find(R.propEq('itemKey', itemKey))(choicesChildrenHistory);\n        this._setVariantChildrenPrices(campaignOrAutomationModel, isCampaign, child, childHistory);\n        this._setSetDetailsPrices(campaignOrAutomationModel, isCampaign, child, childHistory);\n        this._setItemPrice(campaignOrAutomationModel, isCampaign, child, childHistory);\n      }))(item);\n    },\n    resetDetail: function () {\n      this.setData('item', '');\n      this.setData('itemKey', '');\n      this.setData('itemCode', '');\n      this.setData('setType', '');\n      this.setData('hasVariants', false);\n      this.setData('variantChildren', []);\n      this.setData('isSetWithChoices', false);\n      this.setData('choices', []);\n      this.setData('isSet', false);\n      this.setData('setDetails', []);\n    },\n    recalculatePriceForSet(detail, parent) {\n      const isSetNew = R.pathOr(false, ['_data', 'isSetNew'], detail);\n      if (isSetNew) {\n        const setDetailsArray = _nventor.default.ensurePathOr([], ['_data', 'setDetails'], detail);\n        let totalPrice = detail.big.newBig(0);\n        let totalPriceDiscounted = detail.big.newBig(0);\n        let totalPriceFinal = detail.big.newBig(0);\n        let totalCommissionBaseCost = detail.big.newBig(0);\n        R.forEach(detailChild => {\n          const detailChildData = R.propOr({}, '_data', detailChild);\n          const detailChildPrice = detail.big.newBig(detailChildData.price || 0).times(detailChildData.qty);\n          const detailChildPriceDiscounted = detail.big.newBig(detailChildData.priceDiscounted || 0).times(detailChildData.qty);\n          const detailChildPriceFinal = detail.big.newBig(detailChildData.priceFinal || 0).times(detailChildData.qty);\n          totalPrice = totalPrice.plus(detailChildPrice);\n          totalPriceDiscounted = totalPriceDiscounted.plus(detailChildPriceDiscounted);\n          totalPriceFinal = totalPriceFinal.plus(detailChildPriceFinal);\n        })(setDetailsArray);\n        detail.setData('price', totalPrice.toFixed(0));\n        detail.setData('priceDiscounted', totalPriceDiscounted.toFixed(0));\n        detail.setData('priceFinal', totalPriceFinal.toFixed(0));\n        if (parent?.updateSynced) {\n          parent.updateSynced();\n        }\n      }\n      return detail;\n    },\n    recalculatePrice(detail) {\n      if (detail.updateSynced) {\n        detail.updateSynced();\n      }\n      return detail;\n    }\n  }, _applyDecoratedDescriptor(_obj, \"addNewTemplate\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"addNewTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"removeTemplate\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"removeTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"addProductDisplayTags\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"addProductDisplayTags\"), _obj), _applyDecoratedDescriptor(_obj, \"removeProductDisplayTag\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"removeProductDisplayTag\"), _obj), _applyDecoratedDescriptor(_obj, \"_calculateSalesLimitedQty\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"_calculateSalesLimitedQty\"), _obj), _applyDecoratedDescriptor(_obj, \"_calculateSalesPreOrderLimitedQty\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"_calculateSalesPreOrderLimitedQty\"), _obj), _applyDecoratedDescriptor(_obj, \"_mergeDeepConditionForResyncProduct\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"_mergeDeepConditionForResyncProduct\"), _obj), _applyDecoratedDescriptor(_obj, \"_mergeDeepConditionForResyncProductArrayOfObjects\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"_mergeDeepConditionForResyncProductArrayOfObjects\"), _obj), _applyDecoratedDescriptor(_obj, \"recalculatePrice\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"recalculatePrice\"), _obj), _obj));\n  let ChannelsShopCampaignsDetailsModel = _exports.default = (_dec0 = Ember.inject.service, _dec1 = Ember._tracked, _dec10 = Ember._action, _class = class ChannelsShopCampaignsDetailsModel extends ChannelsShopCampaignsDetailsBaseModel {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"uploadcare\", _descriptor, this);\n      _initializerDefineProperty(this, \"_data\", _descriptor2, this);\n    }\n    get hasProductSync() {\n      const productSync = R.pathOr([], ['_data', 'productSync'])(this);\n      const syncName = R.includes('item');\n      const syncTemplates = R.includes('templates');\n      const syncTags = R.includes('productTags');\n      const syncDisplayTags = R.includes('productDisplayTags');\n      return R.anyPass([syncName, syncTemplates, syncTags, syncDisplayTags])(productSync);\n    }\n    get parseAsProduct() {\n      const productOriginalData = this?.product?._data;\n      const detail = this._data;\n      const productData = R.mergeRight(productOriginalData, {\n        name: detail.item,\n        code: detail?.itemCode,\n        salesExclPrice: detail.price\n      });\n      const product = this.dataManager.newRecord({\n        adapterName: 'products',\n        data: productData\n      });\n      return product;\n    }\n    getDefaultImageUrl(transform) {\n      const defaultUploadUuid = R.pipe(R.pathOr([], ['_data', 'uploads']), R.find(R.pathEq(['_data', 'isDefault'], true)), R.pathOr('', ['_data', 'uuid']))(this);\n      return this.uploadcare.getFileUrl(defaultUploadUuid, transform);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uploadcare\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getDefaultImageUrl\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"getDefaultImageUrl\"), _class.prototype), _class);\n});","define(\"client/pods/channels/shop/campaigns/details/preset-commissions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/preset-commissions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details/preset-commissions',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/preset-commissions/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/preset-commissions/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/preset-commissions/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 100,\n        query: '',\n        match: ['all'],\n        status: [],\n        item: '',\n        product: {\n          name: '',\n          code: '',\n          hasImages: '',\n          types: [],\n          setTypes: [],\n          hasLimitTypes: [],\n          salesLimitedTypes: []\n        },\n        sort: [{\n          by: 'product.name',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/preset-commissions/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    // constants: service(),\n\n    // init () {\n    //   this._super(...arguments)\n\n    //   this.set('childAdapters.products', 'products')\n    // },\n\n    // defaults () {\n    //   return {\n    //     salesLimitedType: this.get('constants.detailLimitTypes.campaign'),\n    //     hasSalesLimitedQty: false,\n    //     qty: 0\n    //   }\n    // },\n\n    populate(data, attrs) {\n      // data = this._transformProduct(data)\n      const commissionBaseCostNew = this._transformCommissionBaseCost(data);\n      // if (RA.isNotNilOrEmpty(commissionBaseCostNew)) {\n      this.set('commissionBaseCostNew', commissionBaseCostNew);\n      // }\n      this._super(data, attrs);\n    },\n    _transformCommissionBaseCost(data) {\n      let commissionBaseCostNew = R.propOr({}, 'commissionBaseCostNew')(data);\n      // if (RA.isNotNilOrEmpty(commissionBaseCostNew)) {\n      delete data.commissionBaseCostNew;\n      const mapIndexed = R.addIndex(R.map);\n      const mergeArrayOfObjects = (key, left, right) => {\n        if (R.equals(key, 'setDetails') || R.equals(key, 'variantChildren')) {\n          return mapIndexed((val, idx) => R.mergeDeepRight(val, right[idx]), left);\n        }\n        if (R.equals(key, 'choices') || R.equals(key, 'details')) {\n          return mapIndexed((val, idx) => {\n            return R.mergeDeepWithKey(mergeArrayOfObjects, val, right[idx]);\n          })(left);\n        }\n        return right;\n      };\n      commissionBaseCostNew = R.pipe(R.pick(['choices', 'setDetails', 'variantChildren', 'itemKey', 'itemCode', 'item', 'items', 'minPriceFinal', 'maxPriceFinal', 'salesQty', 'campaignKey', 'isSet', 'isSetWithChoices', 'hasVariants']), R.mergeDeepWithKey(mergeArrayOfObjects, commissionBaseCostNew))(data);\n\n      // commissionBaseCostNew.master = data._key\n      // commissionBaseCostNew.campaignKey = data.campaignKey\n      if (commissionBaseCostNew._key) {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/details/commission-base-cost',\n          data: commissionBaseCostNew\n        });\n      } else {\n        return this.dataManager.newRecord({\n          adapterName: 'channels/shop/campaigns/details/commission-base-cost',\n          data: commissionBaseCostNew\n        });\n      }\n      // }\n    }\n\n    // _transformProduct (data) {\n    //   if (data.product) {\n    //     const product = this.dataManager.setPartialRecord({\n    //       adapterName: this.get('childAdapters.products'),\n    //       data: data.product\n    //     })\n\n    //     this.set('product', product)\n    //     delete data.product\n    //   }\n    //   return data\n    // },\n\n    // overSalesLimitedQtyStatusClass: computed('_data.overSalesLimitedQtyStatus', function () {\n    //   const status = this.get('_data.overSalesLimitedQtyStatus')\n    //   return this.productsService.getStatusClass(status)\n    // })\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/search-results-item/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopCampaignsDetailsSearchResultsItemComponent extends _component.default {}\n  _exports.default = ChannelsShopCampaignsDetailsSearchResultsItemComponent;\n});","define(\"client/pods/channels/shop/campaigns/details/search-results-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"brnTLuld\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@result\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@statusLabel\\\",\\\"@statusBadgeClassNames\\\"],[[28,\\\"if\\\",[[23,1,[\\\"product\\\",\\\"isDeletedOrInactive\\\"]],\\\"campaignDetail_inactive\\\",[28,\\\"concat\\\",[\\\"campaignDetail_\\\",[23,1,[\\\"_data\\\",\\\"status\\\"]]],null]],null],[23,1,[\\\"statusClass\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__table-thumb\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\"],[[23,1,[\\\"defaultImage\\\"]],\\\"/-/resize/40x\\\"]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"_data\\\",\\\"item\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"itemCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/items/item-price\\\",[],[[\\\"@item\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--wrap u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"products/over-sales-limited-qty-tag\\\",[],[[\\\"@isOverSalesLimitedQty\\\",\\\"@overSalesLimitedQtyStatus\\\"],[[23,1,[\\\"isStatusAndCalculatedStatusDifferent\\\"]],[23,1,[\\\"_data\\\",\\\"calculatedStatusBeforeCart\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"setType_\\\",[23,1,[\\\"_data\\\",\\\"setType\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/channels/shop/campaigns/details/search-results-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/details/templates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details',\n    modelObj: _model.default,\n    idParam: false\n\n    // serialize (model) {\n    //   const data = this._super(model)\n\n    //   // let isOnSale = model.get('isOnSale')\n    //   // if (isOnSale === true) {\n    //   //   isOnSale = 'on'\n    //   // } else {\n    //   //   isOnSale = 'off'\n    //   // }\n    //   // data.onSale = isOnSale\n    //   return data\n    // }\n  });\n});","define(\"client/pods/channels/shop/campaigns/export/items-by-payment-status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/export/items-by-payment-status/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/export/items-by-payment-status',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/export/items-by-payment-status/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/channels/shop/campaigns/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        isMaster: false,\n        match: ['all'],\n        campaignStatus: '',\n        campaignStatuses: ['online', 'offline'],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/influencers/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/influencers/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/influencer',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/campaigns/influencers/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        isActive: true,\n        showCommissionsInGuestsView: false,\n        showActivityInGuestsView: false\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/linked/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    emails: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    resourcePath: 'api/protected/channels/shop/campaigns',\n    idParam: '_id',\n    idPrefix: 'campaigns/linked',\n    modelObj: _model.default,\n    serialize(model) {\n      const data = this._super(model);\n\n      // dont allow '__' in url\n      let url = data.shopUrl || '';\n      url = R.replace(/__/g, '')(url);\n      url = R.replace(/--/g, '')(url);\n      data.shopUrl = url;\n      data.orderedEmailCopyTo = this.emails.splitToArray(data.orderedEmailCopyTo);\n      data.orderMessagesEmailCopyTo = this.emails.splitToArray(data.orderMessagesEmailCopyTo);\n      const settingsData = this.settings?.settingsModel?._data;\n      if (data.useDefaultsCheckoutSummaryDescription) {\n        data.checkoutSummaryDescription = R.propOr('', 'shopCheckoutSummaryDescription')(settingsData);\n      }\n      if (data.useDefaultsCheckoutDetailsDescription) {\n        data.checkoutDetailsDescription = R.propOr('', 'shopCheckoutDetailsDescription')(settingsData);\n      }\n      if (data.useDefaultsCheckoutPaymentDescription) {\n        data.checkoutPaymentDescription = R.propOr('', 'shopCheckoutPaymentDescription')(settingsData);\n      }\n      delete data.details;\n      return data;\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/campaigns-details-export-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'adjustPrices',\n        label: 'adjust prices'\n      }, {\n        value: 'adjustIndexes',\n        label: 'adjust indexes'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/cart-btn-style/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    constants: Ember.inject.service(),\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        label: 'addToCartAndChooseOptions',\n        value: 'addToCartAndChooseOptions',\n        translate: true\n      }, {\n        label: 'addToCartForAll',\n        value: 'addToCartForAll',\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/commission-filler/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'fillTop',\n        label: 'fill above'\n      }, {\n        value: 'fillBottom',\n        label: 'fill below'\n      }, {\n        value: 'fillTopAndBottom',\n        label: 'fill all'\n      }, {\n        value: 'clearTop',\n        label: 'clear above'\n      }, {\n        value: 'clearBottom',\n        label: 'clear below'\n      }, {\n        value: 'clearTopAndBottom',\n        label: 'clear all'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/commission-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'normalPercent',\n        label: 'use normal percentage'\n      }, {\n        value: 'twPercent',\n        label: 'use taiwan percentage'\n      }, {\n        value: 'byBaseCost',\n        label: 'set commission base cost'\n      }, {\n        value: 'byAmount',\n        label: 'set commission amount'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/editor-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          value: 'settings',\n          label: 'settings',\n          component: 'channels/shop/campaigns/campaigns-editor/settings-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          tabType: 'reuseSubTab',\n          hasSubTabs: true,\n          subTabsAdapter: 'channels/shop/campaigns/lists/settings-editor/editor-sub-panels'\n        }, {\n          value: 'webpages',\n          label: 'webpages',\n          component: 'channels/shop/campaigns/campaigns-editor/pages-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/webpages',\n          tabType: 'reuseSubTab',\n          errorsTracker: [{\n            context: 'template',\n            label: 'home page'\n          }, {\n            context: 'expiredTemplate',\n            label: 'message to display when campaign has ended'\n          }]\n        }, {\n          value: 'advancedTemplate',\n          label: 'advancedTemplate',\n          withoutPanelFooter: true,\n          component: 'channels/shop/campaigns/campaigns-editor/advanced-template',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/webpages',\n          // allow free plan to use advanced templates\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'salesLimits',\n          label: 'sales limits',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/sales-limits',\n          // allow free plan to use advanced templates\n          component: 'channels/shop/campaigns/campaigns-editor/sales-limits-editor',\n          tabType: 'reuseSubTab'\n        },\n        // {\n        //   value: 'emails',\n        //   label: 'emails',\n        //   component: 'channels/shop/campaigns/campaigns-editor/emails-editor',\n        //   resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/emails',\n        //   tabType: 'reuseSubTab',\n        //   errorsTracker: [\n        //     {\n        //       context: 'emailFromName',\n        //       label: 'from email name'\n        //     },\n        //     {\n        //       context: 'emailFromAddress',\n        //       label: 'from email address'\n        //     },\n        //     {\n        //       context: 'emailSignature',\n        //       label: 'email signature'\n        //     },\n        //     {\n        //       context: 'orderedEmailSubject',\n        //       label: 'email subject'\n        //     },\n        //     {\n        //       context: 'orderedEmailMessage',\n        //       label: 'email message'\n        //     },\n        //     {\n        //       context: 'orderedEmailCopyTo',\n        //       label: 'send a copy of order email to addresses'\n        //     },\n        //     {\n        //       context: 'orderMessagesEmailCopyTo',\n        //       label: 'send a copy of order messages to addresses'\n        //     },\n        //     {\n        //       context: 'dispatchedEmailSubject',\n        //       label: 'email subject'\n        //     },\n        //     {\n        //       context: 'dispatchedEmailMessage',\n        //       label: 'email message'\n        //     }\n        //   ]\n        // },\n        // {\n        //   value: '3rd-party',\n        //   label: '3rd-party',\n        //   component: 'channels/shop/campaigns/campaigns-editor/3rd-party-editor',\n        //   resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/3rd-party',\n        //   tabType: 'reuseSubTab',\n        //   errorsTracker: [\n        //     {\n        //       context: 'facebookUrl',\n        //       label: 'facebook page url'\n        //     },\n        //     {\n        //       context: 'instagramUrl',\n        //       label: 'instagram url'\n        //     },\n        //     {\n        //       context: 'youtubeUrl',\n        //       label: 'youtube channel url'\n        //     },\n        //     {\n        //       context: 'lineId',\n        //       label: 'line id'\n        //     }\n        //   ]\n        // },\n        {\n          value: 'reward',\n          label: 'reward',\n          component: 'channels/shop/campaigns/campaigns-editor/reward-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/reward',\n          tabType: 'reuseSubTab',\n          errorsTracker: [{\n            context: 'rewardName',\n            label: 'reward name'\n          }]\n        }, {\n          value: 'commissions',\n          label: 'commissions',\n          component: 'channels/shop/campaigns/campaigns-editor/commissions-editor',\n          tabType: 'reuseSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/commissions',\n          errorsTracker: [{\n            context: 'commissions',\n            label: 'commissions'\n          }]\n        }\n        // {\n        //   value: 'bulk discounts',\n        //   label: 'bulk discounts',\n        //   component: 'channels/shop/campaigns/campaigns-editor/bulk-discounts-editor',\n        //   resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/bulk-discounts',\n        //   tabType: 'reuseSubTab',\n        //   errorsTracker: [\n        //     {\n        //       context: 'name',\n        //       label: 'name'\n        //     }\n        //   ]\n        // }\n        ]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(res => res?.data || []);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'url',\n        label: 'url'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'url',\n        label: 'url'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: this.get('constants.campaignStatus.online'),\n        label: 'online'\n      }, {\n        value: this.get('constants.campaignStatus.offline'),\n        label: 'offline'\n      }, {\n        value: this.get('constants.campaignStatus.archived'),\n        label: 'archived'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/import/limits/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    async findAll() {\n      return [{\n        headerValue: this.intl.t('product'),\n        label: 'product',\n        value: 'item'\n      }, {\n        headerValue: this.intl.t('product code'),\n        label: 'product code',\n        value: 'itemCode'\n      }, {\n        headerValue: this.intl.t('limited sales qty'),\n        label: 'limited sales qty',\n        value: 'hasSalesLimitedQty',\n        transform(value, row, header) {\n          if (_nventor.default.try(R.toUpper, value) === 'Y') {\n            return true;\n          }\n          return false;\n        }\n      }, {\n        headerValue: this.intl.t('limited qty'),\n        label: 'limited qty',\n        value: 'salesLimitedQty'\n      }, {\n        headerValue: this.intl.t('increase/decrease limited qty'),\n        label: 'increase/decrease limited qty',\n        value: 'salesLimitedQtyAdjustment'\n      }, {\n        headerValue: this.intl.t('allow preOrder'),\n        label: 'allow preOrder',\n        value: 'allowPreOrder',\n        transform(value, row, header) {\n          if (_nventor.default.try(R.toUpper, value) === 'Y') {\n            return true;\n          }\n          return false;\n        }\n      }, {\n        headerValue: this.intl.t('limited preOrder qty'),\n        label: 'limited preOrder qty',\n        value: 'hasSalesPreOrderLimitedQty',\n        transform(value, row, header) {\n          if (_nventor.default.try(R.toUpper, value) === 'Y') {\n            return true;\n          }\n          return false;\n        }\n      }, {\n        headerValue: this.intl.t('limit preOrder qty'),\n        label: 'limit preOrder qty',\n        value: 'salesPreOrderLimitedQty'\n      }, {\n        headerValue: this.intl.t('preOrder-notes'),\n        label: 'preOrder-notes',\n        value: 'salesPreOrderLimitedQtyDesc'\n      }, {\n        headerValue: this.intl.t('increase/decrease preOrder qty'),\n        label: 'increase/decrease preOrder qty',\n        value: 'salesPreOrderLimitedQtyAdjustment'\n      }];\n      // return [{\n      //   headerValue: '',\n      //   label:  ',\n      // }, {\n      //   headerValue: '帳號',\n      //   label:   value: 'paymentLastFiveDigits,\n      //   required: true\n      // }, {\n      //   headerValue: '存',\n      //   label:   value: 'inclTotal,\n      //   required: true\n      // }]\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/import/price/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"ramda\", \"ramda-extension\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    async findAll() {\n      return [{\n        headerValue: this.intl.t('index'),\n        label: 'index',\n        value: 'index'\n      }, {\n        headerValue: this.intl.t('product'),\n        label: 'product',\n        value: 'item'\n      }, {\n        headerValue: this.intl.t('product code'),\n        label: 'product code',\n        value: 'itemCode'\n      }, {\n        //   headerValue: this.intl.t('product tags'),\n        //   label: 'product tags',\n        //   value: 'productTags',\n        //   transform (value, row, spec) {\n        //     if (R.is(String, value)) {\n        //       return R.pipe(\n        //         R.split(','),\n        //         R.reject(R.equals(''))\n        //       )(value)\n        //     }\n\n        //     return value\n        //   }\n        // }, {\n        //   headerValue: this.intl.t('campaign detail product tags'),\n        //   label: 'campaign detail product tags',\n        //   value: 'campaignDetailProductTags'\n        // }, {\n        headerValue: this.intl.t('product type'),\n        label: 'product type',\n        value: 'productType',\n        transform(value, row, spec, intl) {\n          if (R.equals(value, intl.t('product_set'))) {\n            return 'isSet';\n          }\n          if (R.equals(value, intl.t('product_sets_contents'))) {\n            return 'isSetChild';\n          }\n          if (R.equals(value, intl.t('product_sets_with_choices'))) {\n            return 'isSetWithChoices';\n          }\n          if (R.equals(value, intl.t('variants'))) {\n            return 'hasVariants';\n          }\n          if (R.equals(value, intl.t('variant child'))) {\n            return 'isVariantChild';\n          }\n          if (R.equals(value, intl.t('choices'))) {\n            return 'choices';\n          }\n          if (R.equals(value, intl.t('product_general'))) {\n            return 'normal';\n          }\n          return value;\n        }\n      }, {\n        headerValue: this.intl.t('status'),\n        label: 'status',\n        value: 'status',\n        transform(value, row, spec, intl) {\n          if (R.equals(value, intl.t('active'))) {\n            return 'active';\n          }\n          if (R.equals(value, intl.t('inactive'))) {\n            return 'inactive';\n          }\n          if (R.equals(value, intl.t('preOrder'))) {\n            return 'preOrder';\n          }\n          if (R.equals(value, intl.t('soldOut'))) {\n            return 'soldOut';\n          }\n          if (R.equals(value, intl.t('draft'))) {\n            return 'draft';\n          }\n          return value;\n        }\n      }, {\n        headerValue: this.intl.t('on sale'),\n        label: 'on sale',\n        value: 'onSale',\n        transform(value, row, spec) {\n          if (_nventor.default.try(R.toUpper, value) === 'Y') {\n            return 'on';\n          }\n          return 'off';\n        }\n      }, {\n        headerValue: this.intl.t('inclusive price'),\n        label: 'inclusive price',\n        value: 'price'\n      }, {\n        headerValue: this.intl.t('inclusive discounted price'),\n        label: 'inclusive discounted price',\n        value: 'priceDiscounted'\n      }, {\n        headerValue: this.intl.t('choose qty'),\n        label: 'choose qty',\n        value: 'chooseQty'\n      }, {\n        headerValue: this.intl.t('set price on bundle'),\n        label: 'set price on bundle',\n        value: 'isSetPriceOnBundle',\n        transform(value, row, spec) {\n          if (_nventor.default.try(R.toUpper, value) === 'Y') {\n            return true;\n          }\n          return false;\n        }\n      }, {\n        headerValue: `${this.intl.t('product_sets_contents')} ${this.intl.t('qty')}`,\n        label: 'qty',\n        value: 'qty'\n      }];\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/inventory-sync-toggle/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'toggleOff',\n        label: 'toggle off all override'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/item-editor-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'basic',\n        label: 'basic information',\n        component: 'channels/shop/campaigns/campaigns-item-editor/basic-editor',\n        tabType: 'reuseSubTab'\n      }, {\n        value: 'template',\n        label: 'template',\n        disallowedFor: ['templates', 'description', 'additionalDescription'],\n        // disallow for when productSync includes 'templates'\n        component: 'channels/shop/campaigns/campaigns-item-editor/template-editor',\n        tabType: 'reuseSubTab'\n      }, {\n        value: 'recurringSchedules',\n        label: 'recurring schedules',\n        disallowedFor: ['recurringSchedules'],\n        // disallow for when productSync includes 'recurringSchedules'\n        component: 'channels/shop/campaigns/campaigns-item-editor/recurring-schedules-editor',\n        tabType: 'reuseSubTab'\n      }];\n      data.pushObject({\n        value: 'customizations',\n        label: 'customizations',\n        resource: 'api/protected/products/customizations',\n        component: 'channels/shop/campaigns/campaigns-item-editor/customizations-editor',\n        tabType: 'reuseSubTab',\n        editingComponent: 'channels/shop/campaigns/campaigns-item-editor/customizations-editor'\n      });\n      data.pushObject({\n        value: 'productLimits',\n        label: 'product limits',\n        component: 'channels/shop/campaigns/campaigns-item-editor/limits-editor',\n        tabType: 'reuseSubTab'\n      });\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/limit-adjust-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'adjustTotalQty',\n        label: 'adjust total qty'\n      }, {\n        value: 'adjustCurrentlyAvailableQty',\n        label: 'adjust currently available qty'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/limit-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'campaign',\n        label: 'campaign qty'\n      }, {\n        value: 'inventory',\n        label: 'inventory qty'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/locations/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/lists/locations/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/lists/locations',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/locations/model\", [\"exports\", \"client/pods/options/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    defaults() {\n      return {\n        // @TODO: change\n        deliveryDatesSelectSettings: {\n          enable: false,\n          prepareDays: null,\n          deliveryMaxDays: null,\n          expectedArrivalDateSubTitle: '',\n          disallowedDispatchDays: [],\n          isRequired: true,\n          isAllowedToday: false,\n          latestShippingTime: ''\n        },\n        productTags: [],\n        productTagsWhen: 'any',\n        denyProductTags: []\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          component: 'channels/shop/campaigns/panels-dash',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/actions/dash',\n          label: 'dashboard',\n          action: 'dash',\n          tabType: 'replaceSubTab',\n          className: 'hide-when-overflow'\n        }, {\n          component: 'channels/shop/campaigns/panels-schedule',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/actions/schedule',\n          label: 'schedule',\n          action: 'schedule',\n          tabType: 'replaceSubTab',\n          className: 'hide-when-overflow'\n        }, {\n          component: 'channels/shop/campaigns/panels-new',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/actions/new',\n          label: 'new',\n          action: 'new',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/no-of-lines/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: '1'\n      }, {\n        value: 2,\n        label: '2'\n      }, {\n        value: 3,\n        label: '3'\n      }, {\n        value: 4,\n        label: '4'\n      }, {\n        value: 5,\n        label: '5'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/page-import-btn-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'campaigns',\n        label: 'campaigns',\n        component: 'channels/shop/campaigns/page-import-btn/campaigns-results'\n      }, {\n        value: 'campaignsDetails',\n        label: 'campaign products',\n        component: 'channels/shop/campaigns/page-import-btn/campaigns-details-results'\n      }, {\n        value: 'products',\n        label: 'products',\n        component: 'products/page-import-btn/products-results'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/products-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        label: 'recommended',\n        value: 'recommended'\n      }, {\n        label: 'newestFirst',\n        value: 'newestFirst'\n      }, {\n        label: 'priceAsc',\n        value: 'priceAsc'\n      }, {\n        label: 'priceDesc',\n        value: 'priceDesc'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/products-images-fit/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        label: 'scale crop',\n        value: 'scale_crop'\n      }, {\n        label: 'fit',\n        value: 'fit'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/products-images-ratio/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'oneByOne',\n        label: 'oneByOne',\n        svgIconTop: '<svg id=\"a\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 150 150\"><defs><style>.b{fill:#58585b;}</style></defs><path class=\"b\" d=\"M112.5,112.5H37.5V37.5H112.5V112.5Zm-73.53-1.47H111.03V38.97H38.97V111.03Z\"/><g><path class=\"b\" d=\"M63.26,67.21v18.12h-2.77v-14.79c-1.09,1.04-2.49,1.8-4.16,2.28v-2.74c.81-.2,1.65-.56,2.56-1.07,.91-.56,1.67-1.14,2.28-1.8h2.08Z\"/><path class=\"b\" d=\"M71.4,72.21l2.89,4.16,2.87-4.16h3.15l-4.54,6.14,5.1,6.98h-3.15l-3.43-5-3.45,5h-3.17l5.13-6.98-4.54-6.14h3.15Z\"/><path class=\"b\" d=\"M90.86,67.21v18.12h-2.77v-14.79c-1.09,1.04-2.49,1.8-4.16,2.28v-2.74c.81-.2,1.65-.56,2.56-1.07,.91-.56,1.67-1.14,2.28-1.8h2.08Z\"/></g></svg>',\n        allowedForBlogsStyles: ['style1', 'style2']\n      }, {\n        value: 'fourByThree',\n        label: 'fourByThree',\n        svgIconTop: '<svg id=\"a\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 150 150\"><defs><style>.b{fill:#58585b;}</style></defs><path class=\"b\" d=\"M124.95,112.5H25.05V37.5H124.95V112.5Zm-98.42-1.47H123.47V38.97H26.53V111.03Z\"/><g><path class=\"b\" d=\"M63.14,66.9v11.98h2.74v2.21h-2.74v3.93h-2.64v-3.93h-8.83v-2.61l8.93-11.57h2.54Zm-9.21,11.98h6.57v-8.48h-.08l-6.5,8.48Z\"/><path class=\"b\" d=\"M72.15,71.89l2.89,4.16,2.87-4.16h3.15l-4.54,6.14,5.1,6.98h-3.15l-3.42-5-3.45,5h-3.17l5.13-6.98-4.54-6.14h3.15Z\"/><path class=\"b\" d=\"M95.82,67.86c1.07,.89,1.62,2.11,1.62,3.65,0,1.98-1.01,3.32-2.99,3.98,1.07,.33,1.88,.84,2.44,1.5,.61,.69,.91,1.57,.91,2.64,0,1.67-.58,3.04-1.73,4.11-1.22,1.07-2.82,1.62-4.75,1.62s-3.35-.48-4.47-1.42c-1.27-1.07-1.98-2.61-2.13-4.64h2.79c.05,1.22,.43,2.16,1.19,2.82,.66,.61,1.52,.91,2.59,.91,1.17,0,2.11-.36,2.82-1.01,.61-.61,.94-1.34,.94-2.26,0-1.07-.33-1.85-.99-2.36-.61-.51-1.52-.76-2.71-.76h-1.32v-2.08h1.29c1.12,0,1.95-.25,2.51-.74,.56-.48,.86-1.19,.86-2.11s-.28-1.6-.79-2.08c-.56-.51-1.4-.74-2.46-.74s-1.95,.28-2.56,.84c-.61,.56-.99,1.4-1.09,2.51h-2.71c.15-1.8,.81-3.2,2-4.21,1.12-1.01,2.56-1.5,4.34-1.5s3.27,.43,4.39,1.32Z\"/></g></svg>',\n        allowedForBlogsStyles: ['style1']\n      }, {\n        value: 'twoByThree',\n        label: 'twoByThree',\n        svgIconTop: '<svg id=\"a\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 150 150\"><defs><style>.b{fill:#58585b;}</style></defs><path class=\"b\" d=\"M112.5,131.25H37.5V18.75H112.5v112.5Zm-73.53-1.48H111.03V20.23H38.97v109.54Z\"/><g><path class=\"b\" d=\"M64.34,68.76c1.09,1.02,1.65,2.31,1.65,3.91s-.61,2.99-1.78,4.29c-.71,.74-1.95,1.7-3.75,2.92-1.95,1.29-3.12,2.44-3.5,3.42h9.06v2.44h-12.48c0-1.8,.58-3.38,1.8-4.75,.66-.79,2.03-1.88,4.08-3.3,1.22-.86,2.08-1.55,2.59-2.08,.81-.91,1.24-1.9,1.24-2.97s-.28-1.78-.84-2.28c-.56-.51-1.4-.76-2.46-.76-1.14,0-2,.38-2.59,1.17-.61,.76-.91,1.85-.96,3.32h-2.77c.03-2.03,.61-3.65,1.75-4.87,1.17-1.32,2.74-1.95,4.67-1.95,1.73,0,3.17,.48,4.29,1.5Z\"/><path class=\"b\" d=\"M73.14,72.61l2.89,4.16,2.87-4.16h3.15l-4.54,6.14,5.1,6.98h-3.15l-3.43-5-3.45,5h-3.17l5.13-6.98-4.54-6.14h3.15Z\"/><path class=\"b\" d=\"M96.82,68.58c1.07,.89,1.62,2.11,1.62,3.65,0,1.98-1.01,3.32-2.99,3.98,1.07,.33,1.88,.84,2.44,1.5,.61,.69,.91,1.57,.91,2.64,0,1.67-.58,3.04-1.73,4.11-1.22,1.07-2.82,1.62-4.75,1.62s-3.35-.48-4.47-1.42c-1.27-1.07-1.98-2.61-2.13-4.64h2.79c.05,1.22,.43,2.16,1.19,2.82,.66,.61,1.52,.91,2.59,.91,1.17,0,2.11-.36,2.82-1.01,.61-.61,.94-1.34,.94-2.26,0-1.07-.33-1.85-.99-2.36-.61-.51-1.52-.76-2.71-.76h-1.32v-2.08h1.29c1.12,0,1.95-.25,2.51-.74,.56-.48,.86-1.19,.86-2.11s-.28-1.6-.79-2.08c-.56-.51-1.4-.74-2.46-.74s-1.95,.28-2.56,.84c-.61,.56-.99,1.4-1.09,2.51h-2.72c.15-1.8,.81-3.2,2-4.21,1.12-1.01,2.56-1.5,4.34-1.5s3.27,.43,4.39,1.32Z\"/></g></svg>',\n        allowedForBlogsStyles: ['style1', 'style2']\n      }, {\n        value: 'threeByTwo',\n        label: 'threeByTwo',\n        svgIconTop: '<svg id=\"a\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 150 150\"><defs><style>.b{fill:#58585b;}</style></defs><path class=\"b\" d=\"M131.25,112.5H18.75V37.5h112.5V112.5Zm-111.02-1.47h109.54V38.97H20.23V111.03Z\"/><g><path class=\"b\" d=\"M63.36,67.86c1.07,.89,1.62,2.11,1.62,3.65,0,1.98-1.02,3.32-2.99,3.98,1.07,.33,1.88,.84,2.44,1.5,.61,.69,.91,1.57,.91,2.64,0,1.67-.58,3.04-1.73,4.11-1.22,1.07-2.82,1.62-4.75,1.62s-3.35-.48-4.47-1.42c-1.27-1.07-1.98-2.61-2.13-4.64h2.79c.05,1.22,.43,2.16,1.19,2.82,.66,.61,1.52,.91,2.59,.91,1.17,0,2.11-.36,2.82-1.01,.61-.61,.94-1.34,.94-2.26,0-1.07-.33-1.85-.99-2.36-.61-.51-1.52-.76-2.72-.76h-1.32v-2.08h1.29c1.12,0,1.95-.25,2.51-.74s.86-1.19,.86-2.11-.28-1.6-.79-2.08c-.56-.51-1.4-.74-2.46-.74s-1.95,.28-2.56,.84c-.61,.56-.99,1.4-1.09,2.51h-2.72c.15-1.8,.81-3.2,2-4.21,1.12-1.01,2.56-1.5,4.34-1.5s3.27,.43,4.39,1.32Z\"/><path class=\"b\" d=\"M72.16,71.9l2.89,4.16,2.87-4.16h3.15l-4.54,6.14,5.1,6.98h-3.15l-3.42-5-3.45,5h-3.17l5.13-6.98-4.54-6.14h3.15Z\"/><path class=\"b\" d=\"M95.83,68.04c1.09,1.02,1.65,2.31,1.65,3.91s-.61,2.99-1.78,4.29c-.71,.74-1.95,1.7-3.75,2.92-1.95,1.29-3.12,2.44-3.5,3.42h9.06v2.44h-12.48c0-1.8,.58-3.38,1.8-4.75,.66-.79,2.03-1.88,4.08-3.3,1.22-.86,2.08-1.55,2.59-2.08,.81-.91,1.24-1.9,1.24-2.97s-.28-1.78-.84-2.28c-.56-.51-1.4-.76-2.46-.76-1.14,0-2,.38-2.59,1.17-.61,.76-.91,1.85-.96,3.32h-2.77c.03-2.03,.61-3.65,1.75-4.87,1.17-1.32,2.74-1.95,4.67-1.95,1.73,0,3.17,.48,4.29,1.5Z\"/></g></svg>',\n        allowedForBlogsStyles: ['style1']\n      }, {\n        value: 'threeByFour',\n        label: 'threeByFour',\n        svgIconTop: '<svg id=\"a\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 150 150\"><defs><style>.b{fill:#58585b;}</style></defs><path class=\"b\" d=\"M112.5,124.95H37.5V25.05H112.5V124.95Zm-73.53-1.48H111.03V26.53H38.97V123.47Z\"/><g><path class=\"b\" d=\"M62.56,67.86c1.07,.89,1.62,2.11,1.62,3.65,0,1.98-1.02,3.32-2.99,3.98,1.07,.33,1.88,.84,2.44,1.5,.61,.69,.91,1.57,.91,2.64,0,1.67-.58,3.04-1.73,4.11-1.22,1.07-2.82,1.62-4.75,1.62s-3.35-.48-4.47-1.42c-1.27-1.07-1.98-2.61-2.13-4.64h2.79c.05,1.22,.43,2.16,1.19,2.82,.66,.61,1.52,.91,2.59,.91,1.17,0,2.11-.36,2.82-1.01,.61-.61,.94-1.34,.94-2.26,0-1.07-.33-1.85-.99-2.36-.61-.51-1.52-.76-2.72-.76h-1.32v-2.08h1.29c1.12,0,1.95-.25,2.51-.74s.86-1.19,.86-2.11-.28-1.6-.79-2.08c-.56-.51-1.4-.74-2.46-.74s-1.95,.28-2.56,.84c-.61,.56-.99,1.4-1.09,2.51h-2.72c.15-1.8,.81-3.2,2-4.21,1.12-1.01,2.56-1.5,4.34-1.5s3.27,.43,4.39,1.32Z\"/><path class=\"b\" d=\"M71.36,71.89l2.89,4.16,2.87-4.16h3.15l-4.54,6.14,5.1,6.98h-3.15l-3.42-5-3.45,5h-3.17l5.13-6.98-4.54-6.14h3.15Z\"/><path class=\"b\" d=\"M94.83,66.9v11.98h2.74v2.21h-2.74v3.93h-2.64v-3.93h-8.83v-2.61l8.93-11.57h2.54Zm-9.21,11.98h6.57v-8.48h-.08l-6.5,8.48Z\"/></g></svg>',\n        allowedForBlogsStyles: ['style1', 'style2']\n        // }, {\n        //   value: 'original',\n        //   label: 'ratio_original'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/products-images-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'small',\n        label: 'small'\n      }, {\n        value: 'medium',\n        label: 'medium'\n      }, {\n        value: 'large',\n        label: 'large'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/products-name-font-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'small',\n        label: 'small'\n      }, {\n        value: 'medium',\n        label: 'medium'\n      }, {\n        value: 'large',\n        label: 'large'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/products-name-line-count/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: '1'\n      }, {\n        value: 2,\n        label: '2'\n      }, {\n        value: 3,\n        label: '3'\n      }, {\n        value: 4,\n        label: '4'\n      }, {\n        value: 5,\n        label: '5'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/products-overview/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'condensed',\n        label: 'shop_products_overview_style_condensed'\n      }, {\n        value: 'full',\n        label: 'shop_products_overview_style_full'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/products-tags-display-style/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'onlyCategories',\n        label: 'only categories'\n      }, {\n        value: 'onlyTags',\n        label: 'only tags'\n      }, {\n        value: 'all',\n        label: 'all'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/review-steps/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/lists/review-steps/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/lists/review-steps',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/review-steps/model\", [\"exports\", \"client/pods/base/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    populate(data, attrs) {\n      data.users = this._transformUsers(data.users);\n      this._super(data, attrs);\n    },\n    _transformUsers(users = []) {\n      return users.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'users',\n          data\n        });\n      });\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/settings-editor/editor-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n\n  const filterTabs = (list, filterByLabel) => R.map(R.pipe(R.unless(R.propSatisfies(R.includes(R.__, filterByLabel), 'label'), R.set(R.lensProp('component'), null))))(list);\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          value: 'basic',\n          label: 'basic',\n          component: 'channels/shop/campaigns/campaigns-editor/settings-editor/basic-editor',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor/basic-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'style',\n          label: 'settings_style',\n          component: 'channels/shop/campaigns/campaigns-editor/settings-editor/style-editor',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor/style-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'payments',\n          label: 'payments',\n          component: 'channels/shop/campaigns/campaigns-editor/settings-editor/payments-editor',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor/payments-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'shipping',\n          label: 'shipping',\n          component: 'channels/shop/campaigns/campaigns-editor/settings-editor/shipping-editor',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor/shipping-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'checkout',\n          label: 'checkout',\n          component: 'channels/shop/campaigns/campaigns-editor/settings-editor/checkout-editor',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor/checkout-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'emails',\n          label: 'emails',\n          component: 'channels/shop/campaigns/campaigns-editor/settings-editor/emails-editor',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor/emails-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: '3rd-party',\n          label: 'settings_social',\n          component: 'channels/shop/campaigns/campaigns-editor/settings-editor/3rd-party-editor',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor/3rd-party-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'advanced',\n          label: 'advanced',\n          component: 'channels/shop/campaigns/campaigns-editor/settings-editor/advanced-editor',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor/advanced-editor',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          tabType: 'reuseSubTab'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(res => res?.data || []);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/show-customizations-price-type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'hideIfZeroPrice',\n        label: 'hide customization prices if 0'\n      }, {\n        value: 'hideAllPrice',\n        label: 'hide all customization prices'\n      }, {\n        value: 'showAllPrice',\n        label: 'show all customization prices (including 0)'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'active',\n        label: 'active',\n        classNames: 'is-primary'\n      }, {\n        value: 'inactive',\n        label: 'inactive',\n        classNames: 'is-danger'\n      }, {\n        value: 'archived',\n        label: 'archived',\n        classNames: 'is-warning'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // const filterTabs = (list, filterByLabel) => R.map(\n  //   R.pipe(\n  //     R.unless(\n  //       R.propSatisfies(R.includes(R.__, filterByLabel), 'label'),\n  //       R.set(R.lensProp('component'), null)\n  //     )\n  //   )\n  // )(list)\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath = '',\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          group: 'overview',\n          value: 'overview',\n          label: 'overview',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-overview',\n          tabType: 'replaceSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/overview',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor'\n        }, {\n          group: 'overview',\n          value: 'activity',\n          label: 'activity',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-activity',\n          tabType: 'replaceSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/activity',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor'\n        }, {\n          group: 'settings',\n          value: 'settings',\n          label: 'settings',\n          hasSubTabs: true,\n          component: 'channels/shop/campaigns/panels-display/sub-panels-settings',\n          tabType: 'reuseSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/settings',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor'\n        },\n        // {\n        //   group: 'settings',\n        //   value: 'emails',\n        //   label: 'emails',\n        //   component: 'channels/shop/campaigns/panels-display/sub-panels-emails',\n        //   tabType: 'reuseSubTab',\n        //   resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/emails',\n        //   editingComponent: 'channels/shop/campaigns/campaigns-editor/emails-editor'\n        // },\n        // {\n        //   group: 'settings',\n        //   value: '3rd-party',\n        //   label: '3rd-party',\n        //   component: 'channels/shop/campaigns/panels-display/sub-panels-3rd-party',\n        //   tabType: 'reuseSubTab',\n        //   resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/3rd-party',\n        //   editingComponent: 'channels/shop/campaigns/campaigns-editor/3rd-party-editor'\n        // },\n        {\n          group: 'products',\n          value: 'products',\n          label: 'products',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-products',\n          tabType: 'replaceSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/products'\n        }, {\n          group: 'products',\n          value: 'productsLimits',\n          label: 'product limits',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-products-limits',\n          tabType: 'replaceSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/products-limits',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/products-editor'\n        }, {\n          group: 'products',\n          value: 'salesLimits',\n          label: 'sales limits',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-sales-limits',\n          tabType: 'replaceSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/sales-limits',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/sales-limits-editor'\n        }, {\n          group: 'webpages',\n          value: 'webpages',\n          label: 'basic_webpage',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-pages',\n          tabType: 'reuseSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/webpages',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/pages-editor'\n        }, {\n          group: 'webpages',\n          value: 'advancedTemplate',\n          label: 'advancedTemplate',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-advanced-template',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/webpages',\n          // this allows free plan to use advanced templates\n          tabType: 'reuseSubTab',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/advanced-template'\n        }, {\n          group: 'webpages',\n          value: 'faqs',\n          label: 'faqs',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-faqs',\n          tabType: 'reuseSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/faqs',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor'\n        }, {\n          group: 'promo',\n          value: 'automations',\n          label: 'automations',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-automations',\n          tabType: 'replaceSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/automations',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/settings-editor'\n        }, {\n          group: 'promo',\n          value: 'reward',\n          label: 'reward',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-reward',\n          tabType: 'replaceSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/reward',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/reward-editor'\n        }, {\n          group: 'promo',\n          value: 'bulk discounts',\n          label: 'bulk discounts',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-bulk-discounts',\n          tabType: 'replaceSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/bulk-discounts',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/bulk-discounts-editor'\n        }, {\n          group: 'commissions',\n          value: 'commissions',\n          label: 'commissions',\n          component: 'channels/shop/campaigns/panels-display/sub-panels-commissions',\n          tabType: 'replaceSubTab',\n          resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/commissions',\n          editingComponent: 'channels/shop/campaigns/campaigns-editor/commissions-editor'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/variant-selector-style/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    constants: Ember.inject.service(),\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        label: 'dropdown',\n        value: this.constants.variantSelectorStyle.dropdown\n      }, {\n        label: 'buttons',\n        value: this.constants.variantSelectorStyle.buttons\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/lists/website-page-display/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'basicWebPage',\n        label: 'display basic web page'\n      }, {\n        value: 'advancedTemplate',\n        label: 'display advanced template'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/members-campaign-menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/members-campaign-menu/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/members-campaign-menu',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/campaigns/members-campaign-menu/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/members-campaign-menu/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/members-campaign-menu/collection',\n    modelObj: _model.default,\n    idParam: 'userKey',\n    idPrefix: 'channels/shop/campaigns/members-campaign-menu/collection'\n  });\n});","define(\"client/pods/channels/shop/campaigns/members-campaign-menu/collection/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    populate(data = {}) {\n      data.collection = this._transformCollection(data);\n      this._super(...arguments);\n    },\n    _transformCollection(data) {\n      return R.pipe(R.propOr([], 'collection'), R.map(menuData => {\n        // menuData.isPinned = true\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/members-campaign-menu',\n          data: menuData\n        });\n      }))(data);\n    },\n    userCampaignMenu: Ember.computed('synced', 'settings.settingsModel.synced', function () {\n      const campaignsBookmarkCollection = R.pathOr([], ['_data', 'collection'])(this);\n      const campaignsBookmark = R.pipe(R.sortWith([R.descend(R.path(['_data', 'timestampZ_latest']))]), R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('campaign'), R.reject(RA.isNilOrEmpty), R.map(campaign => {\n        campaign.setData('isPinned', true);\n        return campaign;\n      }))(campaignsBookmarkCollection);\n      return campaignsBookmark;\n    })\n  });\n});","define(\"client/pods/channels/shop/campaigns/members-campaign-menu/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/members-campaign-menu/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/members-campaign-menu/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        userKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/members-campaign-menu/model\", [\"exports\", \"client/pods/base/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    populate(data, attrs) {\n      data.campaign = this._transformCampaign(data.campaign);\n      this._super(...arguments);\n    },\n    _transformCampaign(data = {}) {\n      return this.dataManager.setPartialRecord({\n        adapterName: 'channels/shop/campaigns',\n        data\n      });\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/templates\", \"client/mixins/sales-persons\", \"client/mixins/sortable-details\", \"client/utils/nventor\", \"client/pods/faqs/model\", \"ramda\", \"ramda-adjunct\", \"client/pods/open-hours/model\"], function (_exports, _model, _templates, _salesPersons, _sortableDetails, _nventor, _model2, R, RA, _model3) {\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, _obj;\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  var _default = _exports.default = _model.default.extend(_salesPersons.default, _sortableDetails.default, _templates.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    application: Ember.inject.service('application'),\n    users: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    dataManager: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    indexProp: '_data.index',\n    toSortProp: 'details',\n    init() {\n      this._super(...arguments);\n      this.set('requiredDataAttrs', ['name', 'description', 'shippingFee', 'shippingFeeCondition']);\n      this.set('detailsRequiredAttrs', ['itemKey', 'item']);\n      this.set('draftRequiredDataAttrs', ['name']);\n      this.set('childAdapters.salesPersons', 'users');\n      this.set('childAdapters.reviewSteps', 'workflows/items/activities');\n      this.set('childAdapters.influencers', 'channels/shop/campaigns/influencers');\n      this.set('childAdapters.workflowsListsItemsActivitiesTemplates', 'workflows/lists/items/activities/templates');\n      this.set('childAdapters.automations', 'channels/shop/campaigns/automations/details');\n      this.set('childAdapters.products', 'products');\n      this.set('childAdapters.details', 'channels/shop/campaigns/details');\n      this.set('childAdapters.price-filter', 'channels/shop/campaigns/price-filter');\n      this.set('childAdapters.choices', 'products/choices');\n      this.set('childAdapters.choices-details', 'products/choices/details');\n      this.set('childAdapters.sets-details', 'products/sets/details');\n      this.set('childAdapters.variants', 'products/variants');\n      this.set('childAdapters.variants-options', 'products/variants/options');\n      this.set('childAdapters.variants-children', 'products/variants/children');\n    },\n    defaults() {\n      const companyName = this.settings.getProp('company') || '';\n      const shopGroupByTags = this.settings.getProp('shopGroupByTags');\n      const shopShowEnterPromoCode = this.settings.getProp('shopShowEnterPromoCode', true);\n      const shopAllowShipping = this.settings.getProp('shopAllowShipping');\n      const shopAllowPickup = this.settings.getProp('shopAllowPickup');\n      const variantSelectorStyle = this.settings.getProp('variantSelectorStyle') || this.get('constants.variantSelectorStyle.dropdown');\n      const shopCampaignExpiredTemplate = this.settings.getProp('shopCampaignExpiredTemplate');\n      const shopOverSalesLimitedQtyStatus = this.settings.getProp('shopOverSalesLimitedQtyStatus');\n      const facebookPage = this.settings.getProp('facebookDefaultPage');\n      const password = _nventor.default.random.alphaNum(8).toLowerCase();\n      const autoPrintInvoicesForShop = this.settings.getProp('autoPrintInvoicesForShop') || this.settings.getProp('autoPrintInvoices');\n      const showCustomizationsPriceType = this.settings.getProp('showCustomizationsPriceType') || 'hideIfZeroPrice';\n      const isAllowMultipleBulkDiscounts = true;\n\n      // if not yet set, use from settings\n      let isAllowToCrawl = this?._data?.isAllowToCrawl;\n      if (RA.isNilOrEmpty(isAllowToCrawl)) {\n        isAllowToCrawl = this.settings.getProp('isAllowToCrawl');\n      }\n      let cartBtnStyle = this?._data?.cartBtnStyle;\n      if (RA.isNilOrEmpty(cartBtnStyle)) {\n        cartBtnStyle = this.settings.getProp('cartBtnStyle');\n      }\n      let shopCheckoutNoteMaxCharacterLimit = this?._data?.shopCheckoutNoteMaxCharacterLimit;\n      const useDefaultsShopCheckoutNoteMaxCharacterLimit = R.pathOr(true, ['_data', 'useDefaultsShopCheckoutNoteMaxCharacterLimit'])(this);\n      if (useDefaultsShopCheckoutNoteMaxCharacterLimit) {\n        shopCheckoutNoteMaxCharacterLimit = this.settings.getProp('shopCheckoutNoteMaxCharacterLimit');\n      }\n      let successOrderDescription = this?._data?.successOrderDescription || '';\n      const useDefaultsSuccessOrderDescription = R.pathOr(true, ['_data', 'useDefaultsSuccessOrderDescription'])(this);\n      if (useDefaultsSuccessOrderDescription) {\n        successOrderDescription = this.settings.getProp('successOrderDescription');\n      }\n      let paymentMethods = this?._data?.paymentMethods || [];\n      let paymentMethodsDefault = this?._data?.paymentMethodsDefault || '';\n      let cashPaymentMethodFee = this?._data?.cashPaymentMethodFee || 0;\n      let bankingDetails = this?._data?.bankingDetails || '';\n\n      //     // @TODO: set default to true\n      //     const useDefaultsPaymentMethods = this?._data?.useDefaultsPaymentMethods ?? true\n\n      // // debugger\n      // //     // @TODO: remove and use the line above once all data has been converted\n      // //     let useDefaultsPaymentMethods = this?._data?.useDefaultsPaymentMethods ?? false\n      // //     if (RA.isNilOrEmpty(this?._data?.useDefaultsPaymentMethods) && !this?._data?._key) {\n      // //       // set new campaigns to use default payments to true\n      // //       useDefaultsPaymentMethods = true\n      // //     }\n\n      //     if (useDefaultsPaymentMethods) {\n      //       paymentMethods = this.settings.getProp('shopPaymentMethods')\n      //       paymentMethodsDefault = this.settings.getProp('shopPaymentMethodsDefault')\n      //       cashPaymentMethodFee = this.settings.getProp('cashShopPaymentMethodFee')\n      //       bankingDetails = this.settings.getProp('bankingDetails')\n      //     }\n\n      return {\n        autoEnd: this.get('constants.togglesAuto.on'),\n        companyName,\n        companyTel: '',\n        companyAddress: '',\n        showCountdownTimer: this.get('constants.togglesOnOff.on'),\n        showCampaignHeader: this.get('constants.togglesOnOff.on'),\n        showEnterPromoCode: shopShowEnterPromoCode,\n        // onSale: this.get('constants.togglesOnOff.off'),\n        showLimitedQty: this.get('constants.togglesOnOff.off'),\n        showProductDescription: false,\n        showItemDescriptionLinesCount: 2,\n        deliveryDateSettings: this.get('constants.deliveryDateSettings.fromOrderDate'),\n        status: this.get('constants.status.active'),\n        taxMethodKey: this.get('constants.taxMethods.inclusive'),\n        leadTime: 0,\n        shippingFeeType: this.get('constants.shippingFeeType.zones'),\n        useDefaultsShippingZones: true,\n        shippingFee: this.settings.getProp('shippingFee'),\n        shippingFeeAlwaysCharge: this.settings.getProp('shippingFeeAlwaysCharge'),\n        shippingFeeCondition: this.settings.getProp('shippingFeeCondition'),\n        defaultReviewStepsKey: [],\n        useDefaultsSocialLinks: true,\n        useDefaultsFacebook: true,\n        useDefaultsContactInfo: true,\n        useDefaultsShopPriceFilter: true,\n        useDefaultsShippingFlatFee: false,\n        useDefaultsPaymentMethodsAllowInstallments: true,\n        useDefaultsPickupSettings: true,\n        useDefaultsVariantSelectorStyle: true,\n        useDefaultsRecurringAgreement: true,\n        useDefaultsGoogleTrackingKeys: true,\n        useDefaultsFacebookPixelKeys: true,\n        useDefaultsCheckoutSummaryDescription: true,\n        useDefaultsCheckoutDetailsDescription: true,\n        useDefaultsCheckoutPaymentDescription: true,\n        useDefaultsSuccessOrderDescription: true,\n        useDefaultsExpectedDateMethod: true,\n        // useDefaultsPaymentMethods, // @TODO: remove this once all data has been converted. old erp must also be closed\n        checkoutSummaryDescription: this.settings.getProp('shopCheckoutSummaryDescription'),\n        checkoutDetailsDescription: this.settings.getProp('shopCheckoutDetailsDescription'),\n        checkoutPaymentDescription: this.settings.getProp('shopCheckoutPaymentDescription'),\n        successOrderDescription,\n        facebookPluginEnable: true,\n        variantSelectorStyle: variantSelectorStyle,\n        paymentMethods,\n        paymentMethodsDefault,\n        cashPaymentMethodFee,\n        bankingDetails,\n        expiredTemplate: shopCampaignExpiredTemplate,\n        groupByTags: shopGroupByTags,\n        allowPickup: shopAllowPickup,\n        allowShipping: shopAllowShipping,\n        enableShopPriceFilter: true,\n        overSalesLimitedQtyStatus: shopOverSalesLimitedQtyStatus,\n        facebookPage: facebookPage,\n        facebookPixelKeys: [],\n        googleTrackingKeys: [],\n        pickupLocations: [],\n        productsImagesRatio: this.settings.getProp('shopProductsImagesRatio'),\n        productsOverviewStyle: this.settings.getProp('shopProductsOverviewStyle'),\n        password: password,\n        shippingZonesIds: [],\n        shippingRateMethod: 'highest',\n        shippingRateMethodFreeShipping: 'includeFreeShipping',\n        faqs: [],\n        thirdParty: {\n          rss: {\n            enabled: false\n          },\n          shopDotCom: {\n            advertiserId: '',\n            enabled: false,\n            commissinRatio: '',\n            offerId: '',\n            useDefaultsFromSettings: false,\n            antiFraudText: ''\n          }\n        },\n        isAllowEarnReward: true,\n        isAllowSpendReward: true,\n        isAllowReferrals: true,\n        isCheckoutNotesRequired: false,\n        advancedTemplate: {\n          pageBlocks: [],\n          templateOptions: [this.constants.templateOptions.basicWebPage, this.constants.templateOptions.advancedTemplate],\n          templateType: this.settings.getProp('websitesTemplateType')\n        },\n        openHours: {\n          hasBreakTime: false,\n          monday: {},\n          tuesday: {},\n          wednesday: {},\n          thursday: {},\n          friday: {},\n          saturday: {},\n          sunday: {}\n        },\n        docSalesInvoicesAuthorizationRequest: [],\n        defaultWorkflowsItemsActivities: {},\n        workflowsItemsActivities: [],\n        influencers: [],\n        shopPriceFilters: [],\n        recurringAgreement: '',\n        transporterUseDefaultPickupLocation: true,\n        useDefaultsProductsDisplaySettings: true,\n        productsImagesSize: this.settings.getProp('productsImagesSize'),\n        productsImagesHoverFilter: this.settings.getProp('imagesHoverFilter'),\n        productsImagesHoverTransform: this.settings.getProp('imagesHoverTransform'),\n        productsNameFontSize: this.settings.getProp('productsNameFontSize'),\n        showOnSaleTag: this.settings.getProp('showOnSaleTag'),\n        onSaleTagDisplayPosition: this.settings.getProp('onSaleTagDisplayPosition'),\n        onSaleTagDisplayStyle: this.settings.getProp('onSaleTagDisplayStyle'),\n        productsNameLineCount: this.settings.getProp('productsNameLineCount'),\n        showBackToShoppingButton: this.settings.getProp('showBackToShoppingButton'),\n        hasCustomLimitedQtyPerPersonText: this.settings.getProp('hasCustomLimitedQtyPerPersonText'),\n        customLimitedQtyPerPersonText: this.settings.getProp('customLimitedQtyPerPersonText'),\n        autoPrintInvoicesForShop,\n        filterTags: 'all',\n        showItemCode: this.settings.getProp('showItemCode'),\n        isAllowToCrawl,\n        isAllowShopping: true,\n        isDisallowShopping: false,\n        useInventoryAsLimitedQty: this.settings.getProp('useInventoryAsLimitedQty') ?? false,\n        isShowPrices: false,\n        cartBtnStyle,\n        shopCheckoutNoteMaxCharacterLimit,\n        expectedDateMethod: 'expectedArrivalDate',\n        openGraph: {},\n        showCustomizationsPriceType,\n        hasOneItemLimitPerCheckout: false,\n        productsPerRow: this.settings.getProp('productsPerRow'),\n        limitsPerDay: {\n          weekdays: [{\n            enabled: false,\n            dayOfWeek: 0,\n            limit: 0\n          }, {\n            enabled: false,\n            dayOfWeek: 1,\n            limit: 0\n          }, {\n            enabled: false,\n            dayOfWeek: 2,\n            limit: 0\n          }, {\n            enabled: false,\n            dayOfWeek: 3,\n            limit: 0\n          }, {\n            enabled: false,\n            dayOfWeek: 4,\n            limit: 0\n          }, {\n            enabled: false,\n            dayOfWeek: 5,\n            limit: 0\n          }, {\n            enabled: false,\n            dayOfWeek: 6,\n            limit: 0\n          }],\n          dates: []\n        },\n        useDefaultsShopCheckoutDisallowNote: true,\n        useDefaultsShopCheckoutDisallowUseAlternateAddress: true,\n        useDefaultsShopCheckoutDisallowSubscribeToNewsletter: true,\n        isAllowMultipleBulkDiscounts\n      };\n    },\n    populate(data, attrs) {\n      data.salesPersons = this._transformSalesPersons(data.salesPersons);\n      data.reviewSteps = this._transformReviewSteps(data.reviewSteps);\n      data.influencers = this._transformInfluencers(data.influencers);\n      data.workflowsItemsActivities = this._transformWorkflowsItemsActivities(data.workflowsItemsActivities);\n      data.orderedEmailCopyTo = this.emails.joinAsString(data.orderedEmailCopyTo);\n      data.orderMessagesEmailCopyTo = this.emails.joinAsString(data.orderMessagesEmailCopyTo);\n      data.faqs = this._transformFaqs(data);\n      data.bulkDiscounts = this._transformBulkDiscounts(data);\n      data.bulkDiscountConflictDetails = this._transformBulkDiscountConflictDetails(data);\n      data.advancedTemplate = this._transformAdvancedTemplate(data);\n      data.shopPriceFilters = this._transformRates(data.shopPriceFilters);\n      data.openHours = this._transformOpenHours(data);\n      data.productTagsWithIndexes = this._transformProductTagsWithIndexes(data);\n      data.rewardData = R.propOr({}, 'rewardData')(data);\n      if (!R.is(Object, data.rewardData)) {\n        data.rewardData = {};\n      }\n      data.rewardData.memberLevels = R.pipe(R.pathOr([], ['rewardData', 'memberLevels']), R.map(memberLevel => {\n        return Ember.Object.create(memberLevel || {});\n      }))(data);\n      data.thirdParty = this._transformThirdParty(data);\n      data.children = this._transformChildren(data);\n\n      // @TODO: remove once all data has been converted and old erp is closed (move to defaults)\n      let useDefaultsPaymentMethods = data?.useDefaultsPaymentMethods ?? false;\n      if (RA.isNilOrEmpty(data?.useDefaultsPaymentMethods) && !data?._key) {\n        // set new campaigns to use default payments to true\n        useDefaultsPaymentMethods = true;\n      }\n      if (useDefaultsPaymentMethods) {\n        data.paymentMethods = this.settings.getProp('shopPaymentMethods');\n        data.paymentMethodsDefault = this.settings.getProp('shopPaymentMethodsDefault');\n        data.cashPaymentMethodFee = this.settings.getProp('cashShopPaymentMethodFee');\n        data.bankingDetails = this.settings.getProp('bankingDetails');\n      }\n      data.useDefaultsPaymentMethods = useDefaultsPaymentMethods;\n      // ^^^^\n\n      this._super(data, attrs);\n    },\n    _transformChildren(data) {\n      return R.pipe(R.propOr([], 'children'), R.map(child => {\n        try {\n          return this.dataManager.setPartialRecord({\n            adapterName: 'channels/shop/campaigns',\n            data: child\n          });\n        } catch (error) {\n          console.error('Error creating child model', error);\n          return null;\n        }\n      }), R.reject(R.isNil))(data);\n    },\n    _transformThirdParty(data) {\n      const defaults = this.defaults() || {};\n      return R.pipe(R.propOr({}, 'thirdParty'), R.mergeRight(defaults.thirdParty))(data);\n    },\n    populatePartial(data, attrs) {\n      data.bulkDiscountConflictDetails = this._transformBulkDiscountConflictDetails(data);\n      if (data.detailsUpdated) {\n        data.detailsLimitsUpdated = true;\n        data.detailsUpdated = R.pipe(R.propOr([], 'detailsUpdated'), R.map(newDetailData => {\n          return this.dataManager.setPartialRecord({\n            adapterName: this.get('childAdapters.details'),\n            data: newDetailData\n          });\n        }))(data);\n      }\n      if (data.influencers) {\n        data.influencers = this._transformInfluencers(data.influencers);\n      }\n      data.children = this._transformChildren(data);\n      this._super(data, attrs);\n    },\n    _transformOpenHours(data) {\n      const defaults = this.defaults() || {};\n      const defaultsOpenHours = defaults.openHours || {};\n      const openHours = R.propOr(defaultsOpenHours, 'openHours')(data);\n      return R.mapObjIndexed((value, key) => {\n        if (R.type(value) === 'Boolean') {\n          return value;\n        }\n        value.name = key;\n        return _nventor.default.createModel(_model3.default, value);\n      })(openHours);\n    },\n    _transformBulkDiscountConflictDetails(data) {\n      const bulkDiscountConflictDetails = R.propOr([], 'bulkDiscountConflictDetails')(data);\n      return R.map(conflict => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'channels/shop/campaigns/details',\n          data: conflict\n        });\n      })(bulkDiscountConflictDetails);\n    },\n    _transformFaqs(data) {\n      return R.pipe(R.propOr([], 'faqs'), R.reject(_nventor.default.isNilOrEmpty), R.map(faq => _nventor.default.createModel(_model2.default, faq)))(data);\n    },\n    _transformSalesPersons(salesPersons = []) {\n      return salesPersons.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: this.get('childAdapters.salesPersons'),\n          data\n        });\n      });\n    },\n    _transformRates(shopPriceFilters) {\n      if (!shopPriceFilters) {\n        const _ranges = [{\n          _data: {\n            min: 0,\n            max: 99\n          }\n        }, {\n          _data: {\n            min: 100,\n            max: 499\n          }\n        }, {\n          _data: {\n            min: 500,\n            max: 999\n          }\n        }, {\n          _data: {\n            min: 1000\n          }\n        }];\n        return _ranges;\n      }\n      return shopPriceFilters.map(range => {\n        return this.dataManager.setPartialRecord({\n          adapterName: this.get('childAdapters.price-filter'),\n          data: range\n        });\n      });\n    },\n    _transformReviewSteps(reviewSteps = []) {\n      return reviewSteps.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: this.get('childAdapters.reviewSteps'),\n          data\n        });\n      });\n    },\n    _transformInfluencers(reviewSteps = []) {\n      return reviewSteps.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: this.get('childAdapters.influencers'),\n          data\n        });\n      });\n    },\n    _transformWorkflowsItemsActivities(reviewSteps = []) {\n      return reviewSteps.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: this.get('childAdapters.workflowsListsItemsActivitiesTemplates'),\n          data\n        });\n      });\n    },\n    enabledBulkDiscountsList: Ember.computed('synced', '_data.bulkDiscounts.@each.synced', function () {\n      const bulkDiscounts = this.getData('bulkDiscounts') || [];\n      return R.filter(R.pathEq(['_data', 'status'], 'enabled'))(bulkDiscounts);\n    }),\n    isOnSale: Ember.computed('_data.onSale', function () {\n      if (this.get('_data.onSale') === this.get('constants.togglesOnOff.on')) {\n        return true;\n      }\n      return false;\n    }),\n    isPage: Ember.computed('_data', function () {\n      return true;\n    }),\n    hasCashPaymentFee: Ember.computed('_data.paymentMethods.[]', function () {\n      const paymentMethods = this.getData('paymentMethods');\n      if (paymentMethods.indexOf('cash') > -1) {\n        return true;\n      }\n      return false;\n    }),\n    hasCashBeforeDelivery: Ember.computed('_data.paymentMethods.[]', function () {\n      const paymentMethods = this.getData('paymentMethods');\n      if (paymentMethods.indexOf('cashBeforeDelivery') > -1) {\n        return true;\n      }\n      return false;\n    }),\n    hasSalesPersons: Ember.computed('_data.salesPersons.[]', function () {\n      const salesPersons = this.getData('salesPersons') || [];\n      if (R.isEmpty(salesPersons)) {\n        return false;\n      }\n      return salesPersons;\n    }),\n    isAllChildrenSynced: Ember.computed('_data.children.@each.synced', function () {\n      const isChildrenSynced = R.pipe(R.pathOr([], ['_data', 'children']), R.pluck('_data'), R.pluck('isSyncedWithMaster'), R.reject(RA.isNilOrEmpty), RA.allEqualTo(true))(this);\n      return isChildrenSynced;\n    }),\n    addDetail(data) {\n      const adapterName = this.childAdapters.details;\n      const detail = this._addDetail({\n        adapterName,\n        data\n      });\n      const onSale = this.getData('onSale');\n      detail.setData('onSale', onSale);\n      return detail;\n    },\n    _addDetail({\n      adapterName,\n      data\n    }) {\n      const detail = this.campaignsProductsService.getCampaignDetailModel(data);\n      const master = this.getData('_key');\n      const overSalesLimitedQtyStatus = this.getData('overSalesLimitedQtyStatus');\n      detail.setData('master', master);\n      detail.setData('shop', this.getData('name'));\n      detail.setData('overSalesLimitedQtyStatus', overSalesLimitedQtyStatus);\n      return detail;\n    },\n    addFaq(faq) {\n      this.getData('faqs').pushObject(faq);\n    },\n    hasDetailsChanged: Ember.computed('detailsUpdated.[]', function () {\n      const detailsUpdated = this.detailsUpdated || [];\n      if (R.isEmpty(detailsUpdated)) {\n        return [];\n      }\n      return detailsUpdated;\n    }),\n    hasDetailsChangedByOthers: Ember.computed('hasDetailsChanged.[]', function () {\n      const hasDetailsChanged = this.hasDetailsChanged || [];\n      const uid = this.users.getProp('uid');\n      const detailsUpdatedByOthers = R.reject(R.pathEq(['_data', 'creator', 'userKey'], uid))(hasDetailsChanged);\n      if (R.isEmpty(detailsUpdatedByOthers)) {\n        return [];\n      }\n      return detailsUpdatedByOthers;\n    }),\n    hasDetailsLimitsChanged: Ember.computed('hasDetailsChanged.[]', 'detailsLimitsUpdated', function () {\n      const hasDetailsChanged = this.hasDetailsChanged || [];\n      if (this.detailsLimitsUpdated) {\n        if (R.isEmpty(hasDetailsChanged)) {\n          return false;\n        }\n        return hasDetailsChanged;\n      }\n      return false;\n    }),\n    isLinkToWebsite: Ember.computed('_data.website', function () {\n      const website = this?._data?.website || {};\n      if (RA.isNotNilOrEmpty(website)) {\n        return true;\n      }\n      return false;\n    }),\n    shippingZonesIds: Ember.computed('_data.shippingZonesIds', 'settings.settingsModel._data.defaultShippingZonesIds', function () {\n      let shippingZonesIds = this?._data?.shippingZonesIds || [];\n      if (this?._data?.useDefaultsShippingZones) {\n        shippingZonesIds = this?.settings?.getProp('defaultShippingZonesIds');\n      }\n      return shippingZonesIds;\n    }),\n    _transformBulkDiscounts(data) {\n      const bulkDiscounts = R.sortBy(R.prop('index'))(data?.bulkDiscounts ?? []);\n      return R.map(bulkDiscount => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/bulk-discounts',\n          data: bulkDiscount\n        });\n      })(bulkDiscounts);\n    },\n    _transformProductTagsWithIndexes(data) {\n      const productTagsWithIndexes = R.propOr([], 'productTagsWithIndexes')(data);\n      return R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/products-tags-filters',\n          data\n        });\n      })(productTagsWithIndexes);\n    },\n    addBulkDiscount(bulkDiscount = {}) {\n      const bulkDiscounts = this.getData('bulkDiscounts') || [];\n      const bulkDiscountModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/campaigns/bulk-discounts',\n        data: bulkDiscount\n      });\n      bulkDiscounts.pushObject(bulkDiscountModel);\n      this.setData('bulkDiscounts', bulkDiscounts);\n      bulkDiscountModel.addSchedule();\n      return bulkDiscountModel;\n    },\n    _transformAdvancedTemplate(data) {\n      return R.pipe(R.propOr({}, 'advancedTemplate'), advancedTemplate => {\n        let templateOptions = advancedTemplate?.templateOptions || [];\n        if (RA.isNilOrEmpty(templateOptions)) {\n          templateOptions = [this.constants.templateOptions.basicWebPage, this.constants.templateOptions.advancedTemplate];\n        }\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/advanced-template',\n          data: {\n            displayInShop: false,\n            displayProductsInShop: true,\n            templateTypes: [],\n            ...advancedTemplate,\n            templateOptions,\n            hasTemplate: true,\n            url: data.url\n          }\n        });\n      })(data);\n    },\n    sortedOpenHours: Ember.computed('_data.openHours.monday.{open,close,hasOpeningHours}', '_data.openHours.tuesday.{open,close,hasOpeningHours}', '_data.openHours.wednesday.{open,close,hasOpeningHours}', '_data.openHours.thursday.{open,close,hasOpeningHours}', '_data.openHours.friday.{open,close,hasOpeningHours}', '_data.openHours.saturday.{open,close,hasOpeningHours}', '_data.openHours.sunday.{open,close,hasOpeningHours}', function () {\n      const openHours = this._data.openHours;\n      const weekdays = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'];\n      const sortDays = R.pipe(R.toPairs, R.sortBy(R.pipe(R.head, R.indexOf(R.__, weekdays))), R.fromPairs, R.values, R.reject(day => R.type(day) === 'Boolean'));\n      return sortDays(openHours);\n    }),\n    hasProductTagsFilters: Ember.computed('_data.{filterTags.[],groupByTags}', function () {\n      const groupByTags = this._data?.groupByTags || false;\n      if (!groupByTags) {\n        return false;\n      }\n      const filterTags = this._data?.filterTags || [];\n      if (R.includes('all')(filterTags)) {\n        return true;\n      }\n      if (R.includes('onlyTags')(filterTags)) {\n        return true;\n      }\n      return false;\n    }),\n    setupProductTagsWithIndexes(productTagsWithIndexes) {\n      const latestProductTagsWithIndexes = this._transformProductTagsWithIndexes({\n        productTagsWithIndexes\n      });\n      this.setData('productTagsWithIndexes', latestProductTagsWithIndexes);\n    },\n    productTagsWithIndexesSorted: Ember.computed('synced', '_data.productTagsWithIndexes.@each.index', function () {\n      const productTagsWithIndexes = this._data?.productTagsWithIndexes || [];\n      return R.sortWith([R.ascend(R.path(['_data', 'index']))])(productTagsWithIndexes);\n    }),\n    url: Ember.computed('_data.website.{domain,url}', function () {\n      const shopUrl = R.pathOr('', ['_data', 'url'])(this);\n      const bigordrUrl = R.pathOr('', ['settings', 'config', 'APP', 'shopUrl'])(this);\n      const bigordrShopUrl = `${bigordrUrl}/${shopUrl}`;\n      const isProduction = R.pathEq(['settings', 'config', 'isProduction'], true)(this);\n      if (!isProduction) {\n        return bigordrShopUrl;\n      }\n      const hasVerifiedDomain = R.pathEq(['_data', 'website', 'domainVerified'], true)(this);\n      if (hasVerifiedDomain) {\n        const domain = R.pathOr('', ['_data', 'website', 'domain'])(this);\n        return `https://${domain}/shop/${shopUrl}`;\n      }\n      const subdomain = R.path(['_data', 'website', 'subdomain'])(this);\n      if (subdomain) {\n        const websiteHost = R.pathOr('', ['settings', 'config', 'APP', 'websiteHost'])(this);\n        return `https://${subdomain}.${websiteHost}/shop/${shopUrl}`;\n      }\n      return bigordrShopUrl;\n    }),\n    reorderDetails(details, detail, dragItem) {\n      if (!detail?.get || !dragItem?.get) {\n        return [];\n      }\n      const toSortProp = this.toSortProp;\n      const indexProp = this.indexProp;\n      const dragIndex = dragItem.get(indexProp);\n      const onOverItemIndex = detail.get(indexProp);\n      details = R.reject(R.pathEq(['_data', 'isAutomation'], true))(details);\n      if (dragIndex === onOverItemIndex) {\n        // do nothing\n      } else if (dragIndex < onOverItemIndex) {\n        // move to below onOverItemIndex\n        this.set(toSortProp, details.map(detail => this.moveDetailBelow(detail, dragIndex, onOverItemIndex)));\n      } else {\n        // move to above onOverItemIndex\n        this.set(toSortProp, details.map(detail => this.moveDetailAbove(detail, dragIndex, onOverItemIndex)));\n      }\n      if (this.updateSynced) {\n        this.updateSynced();\n      }\n      if (this.sortDetails) {\n        this.sortDetails();\n      }\n      return R.filter(R.pathEq(['changed'], true))(details);\n    },\n    loadSalesPersonSettings(model = {}) {\n      let selectedCommissionBaseCostMethod;\n      let isUsingAverage;\n      let isCalculatedByExclAmt;\n      let isUsingSetChild;\n      let hasAdjustedShippingFee;\n      const settingsModel = this?.settings?.settingsModel || {};\n      if (RA.isNotNilOrEmpty(settingsModel)) {\n        selectedCommissionBaseCostMethod = R.pathOr('normalPercent', ['_data', 'selectedCommissionBaseCostMethod'], settingsModel);\n        isUsingAverage = R.pathOr(true, ['_data', 'isCommissionsUsingAverage'], settingsModel);\n        isCalculatedByExclAmt = R.pathOr(true, ['_data', 'isCommissionsCalculatedByExclAmt'], settingsModel);\n        isUsingSetChild = R.pathOr(false, ['_data', 'isCommissionsUsingSetChild'], settingsModel);\n        hasAdjustedShippingFee = R.pathOr(false, ['_data', 'isCommissionsHasAdjustedShippingFee'], settingsModel);\n      }\n      const salesPersons = this.getData('salesPersons') || [];\n      const salesPerson = _nventor.default.safeHead(salesPersons);\n      if (RA.isNotNilOrEmpty(salesPerson)) {\n        selectedCommissionBaseCostMethod = R.pathOr(selectedCommissionBaseCostMethod, ['_data', 'selectedCommissionBaseCostMethod'], salesPerson);\n        isUsingAverage = R.pathOr(isUsingAverage, ['_data', 'isCommissionsUsingAverage'], salesPerson);\n        isCalculatedByExclAmt = R.pathOr(isCalculatedByExclAmt, ['_data', 'isCommissionsCalculatedByExclAmt'], salesPerson);\n        isUsingSetChild = R.pathOr(isUsingSetChild, ['_data', 'isCommissionsUsingSetChild'], salesPerson);\n        hasAdjustedShippingFee = R.pathOr(hasAdjustedShippingFee, ['_data', 'isCommissionsHasAdjustedShippingFee'], salesPerson);\n      }\n      this.setData('selectedCommissionBaseCostMethod', selectedCommissionBaseCostMethod);\n      this.setData('isCommissionsUsingAverage', isUsingAverage);\n      this.setData('isCommissionsCalculatedByExclAmt', isCalculatedByExclAmt);\n      this.setData('isCommissionsUsingSetChild', isUsingSetChild);\n      this.setData('isCommissionsHasAdjustedShippingFee', hasAdjustedShippingFee);\n    },\n    customMinDateZ: Ember.computed('_data.{showCampaignPeriodDataOnly,dateStartZ}', function () {\n      const showCampaignPeriodDataOnly = R.pathOr(false, ['_data', 'showCampaignPeriodDataOnly'])(this);\n      if (showCampaignPeriodDataOnly) {\n        const dateStartZ = R.pathOr('', ['_data', 'dateStartZ'])(this);\n        return dateStartZ;\n      }\n      return '';\n    }),\n    campaignStatusClassName: Ember.computed('_data.{status,dateStartZ,dateEndZ}', function () {\n      const status = this?._data?.status ?? this.constants.status.active;\n      const now = this.dateService.getMoment();\n      const dateStartZ = this?._data?.dateStart ?? now;\n      const dateEndZ = this.dateService.getMoment(this?._data?.dateEndZ ?? now).endOf('day').toISOString();\n      if (now.isSameOrAfter(dateStartZ) && now.isSameOrBefore(dateEndZ) && status === this.constants.status.active) {\n        return 'is-primary';\n      }\n      if (status === this.constants.campaignStatus.archived) {\n        return 'is-dark';\n      }\n      return 'is-danger';\n    }),\n    customMaxDateZ: Ember.computed('_data.{showCampaignPeriodDataOnly,dateEndZ}', function () {\n      const showCampaignPeriodDataOnly = R.pathOr(false, ['_data', 'showCampaignPeriodDataOnly'])(this);\n      if (showCampaignPeriodDataOnly) {\n        const dateEndZ = R.pathOr('', ['_data', 'dateEndZ'])(this);\n        return dateEndZ;\n      }\n      return '';\n    }),\n    addLimitsPerDayByDates() {\n      const byDates = this?._data?.limitsPerDay?.dates || [];\n      const todayZ = this.dateService.getStartOfDayZ();\n      byDates.pushObject({\n        dateZ: todayZ,\n        limit: ''\n      });\n    },\n    removeLimitsPerDayByDates(dayData) {\n      const byDates = this?._data?.limitsPerDay?.dates || [];\n      byDates.removeObject(dayData);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupProductTagsWithIndexes\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupProductTagsWithIndexes\"), _obj), _applyDecoratedDescriptor(_obj, \"reorderDetails\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"reorderDetails\"), _obj), _applyDecoratedDescriptor(_obj, \"loadSalesPersonSettings\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"loadSalesPersonSettings\"), _obj), _applyDecoratedDescriptor(_obj, \"addLimitsPerDayByDates\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"addLimitsPerDayByDates\"), _obj), _applyDecoratedDescriptor(_obj, \"removeLimitsPerDayByDates\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"removeLimitsPerDayByDates\"), _obj), _obj));\n});","define(\"client/pods/channels/shop/campaigns/over-sales-limited-qty-statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'preOrder',\n        label: 'pre order',\n        classNames: 'is-dark'\n      }, {\n        value: 'soldOut',\n        label: 'soldOut',\n        classNames: 'is-dark'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/price-filter/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/price-filter/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/campaigns/price-filter/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopCampaignsPriceFilterModel extends _model.default {\n    constructor() {\n      super(...arguments);\n      this.requiredAttrs = ['min', 'max'];\n    }\n  }\n  _exports.default = ChannelsShopCampaignsPriceFilterModel;\n});","define(\"client/pods/channels/shop/campaigns/products-tags-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/product-tags-filters',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/campaigns/reports/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll: function () {\n      const data = [{\n        value: 'ordered',\n        label: 'orders by date'\n        // }, {\n        //   value: 'expectedDispatch',\n        //   label: 'expected dispatch date'\n      }, {\n        value: 'dispatched',\n        label: 'dispatched by date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _emberConcurrencyDecorators, RA) {\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  let ChannelsShopCampaignsService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._action, _class = class ChannelsShopCampaignsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"shopsList\", _descriptor5, this);\n    }\n    getSearchFilters() {\n      return this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters'\n      });\n    }\n    *searchInputTask(args) {\n      let {\n        query = '',\n        resultsProperty = 'results',\n        adapterName = 'channels/shop/campaigns',\n        filtersAdapterName = 'channels/shop/campaigns/filters',\n        component,\n        resultsToggle = false,\n        global = true,\n        filters\n      } = args;\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.search.setupFilters({\n          adapterName: filtersAdapterName,\n          defaultFiltersData: {\n            query\n          }\n        });\n      }\n      const results = yield this.crud.searchInputTask.perform({\n        adapterName,\n        filters,\n        resultsProperty,\n        component,\n        resultsToggle,\n        allowEmptyQuery: true\n      }, query);\n      if (global && resultsProperty) {\n        this[resultsProperty] = results;\n      }\n      return results;\n    }\n    *checkHasAnyCommissionData({\n      model\n    }) {\n      let results = [];\n      const master = model.getData('_key');\n      if (!master) {\n        return results;\n      }\n      results = yield this.crud.findTask.perform({\n        adapterName: 'channels/shop/campaigns/details/preset-commissions',\n        appendPath: `/master/${master}/exists`,\n        rawResponse: true\n      });\n      return results || {};\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"shopsList\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getSearchFilters\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"getSearchFilters\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchInputTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkHasAnyCommissionData\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"checkHasAnyCommissionData\"), _class.prototype), _class);\n});","define(\"client/pods/channels/shop/campaigns/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      // these are campaign details statuses. this file should be in campaigns details not campaigns\n      const data = [{\n        value: 'active',\n        label: 'campaignDetail_active',\n        classNames: 'is-primary'\n      }, {\n        value: 'inactive',\n        label: 'campaignDetail_inactive',\n        classNames: 'is-warning'\n      }, {\n        value: 'preOrder',\n        label: 'campaignDetail_preOrder',\n        classNames: 'is-dark'\n      }, {\n        value: 'soldOut',\n        label: 'campaignDetail_soldOut',\n        classNames: 'is-dark'\n      }, {\n        value: 'draft',\n        label: 'campaignDetail_draft',\n        classNames: 'is-warning'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/campaigns/templates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    emails: Ember.inject.service(),\n    resourcePath: 'api/protected/channels/shop/campaigns',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/delivery-date-options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/delivery-date-options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/delivery-date-options',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/delivery-date-options/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        prepareDays: '',\n        deliveryMaxDays: '',\n        expectedArrivalDateSubTitle: '',\n        disallowedDispatchDays: [],\n        isRequired: false,\n        isAllowedToday: false,\n        latestShippingTime: '',\n        calendarSettingType: 'settingPeriodOfTime',\n        earliestDeliveryDateZ: '',\n        lastestDeliveryDateZ: '',\n        excludedSpecificDates: []\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/promo-codes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/promo-codes/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    applicationService: Ember.inject.service('application'),\n    resourcePath: 'api/protected/channels/shop/promo-codes',\n    idParam: '_id',\n    modelObj: _model.default,\n    serialize(model) {\n      const type = model._data.type;\n      if (type === this.constants.discountTypes.amount) {\n        model.setData('discountRate', '');\n        model.setData('discountRateOnSale', '');\n      } else {\n        model.setData('discountAmount', '');\n      }\n      if (!model._data.allowOnSale) {\n        model.setData('discountRateOnSale', '');\n      }\n      const data = this._super(model);\n      data.emails = this.applicationService.splitToArray(data.emails || '');\n      data.telephones = this.applicationService.splitToArray(data.telephones || '');\n      return data;\n    }\n  });\n});","define(\"client/pods/channels/shop/promo-codes/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/promo-codes/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/promo-codes/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/promo-codes/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'code',\n        label: 'code'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/promo-codes/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'code',\n        label: 'code'\n      }, {\n        value: 'dateStartZ',\n        label: 'date start'\n      }, {\n        value: 'dateEndZ',\n        label: 'date end'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/promo-codes/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/channels/shop/promo-codes/menu/actions/dash',\n          component: 'channels/shop/promo-codes/panels-dash',\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'dash',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }, {\n          resource: 'api/protected/channels/shop/promo-codes/menu/actions/new',\n          component: 'channels/shop/promo-codes/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'new',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/channels/shop/promo-codes/model\", [\"exports\", \"client/pods/base/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    settings: Ember.inject.service(),\n    defaults() {\n      const allowAllocatePromoCodeToShipping = this.settings.getProp('allowAllocatePromoCodeToShipping') || false;\n      return {\n        status: this.constants.status.active,\n        type: this.constants.discountTypes.rate,\n        discountAmount: '',\n        discountRate: '',\n        discountRateOnSale: '',\n        emails: '',\n        telephones: '',\n        productTags: [],\n        denyProductTags: [],\n        usageLimit: 1,\n        hasUsageLimitPerPerson: false,\n        usageLimitPerPerson: '',\n        expiryDateStartUnit: 'days',\n        expiryDateEndUnit: 'days',\n        useExpiryDate: false,\n        allowAllocatePromoCodeToShipping\n      };\n    },\n    populate(data = {}) {\n      data.emails = this.applicationService.joinAsString(data.emails || []);\n      data.telephones = this.applicationService.joinAsString(data.telephones || []);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/rewards/model\", \"ramda\", \"ramda-adjunct\", \"client/constants\"], function (_exports, _adapter, _adaptersNew, _model, R, RA, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/rewards',\n    idParam: '_id',\n    modelObj: _model.default,\n    serialize(model) {\n      const memberLevelsData = R.pathOr([], ['_data', 'memberLevels'])(model);\n      if (RA.isNotNilOrEmpty(memberLevelsData)) {\n        R.forEach(memberLevel => {\n          const rewardsEventsData = R.pathOr([], ['_data', 'rewardsEvents'])(memberLevel);\n          if (RA.isNotNilOrEmpty(rewardsEventsData)) {\n            R.forEach(rewardEvent => {\n              if (rewardEvent._data.isNeverExpire) {\n                rewardEvent.set('_data.expiryTime', '');\n              }\n              if (rewardEvent._data.earnType === _constants.default.rewardEarningTypes.amount) {\n                rewardEvent.set('_data.earnRate', '');\n              } else {\n                rewardEvent.set('_data.earnAmount', '');\n              }\n              if (rewardEvent._data.spendMaximumType === _constants.default.rewardMaxDeductionType.amount) {\n                rewardEvent.set('_data.spendMaximumRate', '');\n              } else {\n                rewardEvent.set('_data.spendMaximumAmount', '');\n              }\n              if (rewardEvent._data.earnRequirementValue) {\n                rewardEvent.setData('earnRequirementValue', Number(rewardEvent.getData('earnRequirementValue') || 0));\n              }\n              if (rewardEvent._data.earnAmount) {\n                rewardEvent.setData('earnAmount', Number(rewardEvent.getData('earnAmount') || 0));\n              }\n            })(rewardsEventsData);\n          }\n        })(memberLevelsData);\n      }\n      return this._serialize(model);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/deductions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: '',\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: _constants.default.rewardMaxDeductionType.rate,\n        label: _constants.default.rewardMaxDeductionType.rate\n      }, {\n        value: _constants.default.rewardMaxDeductionType.amount,\n        label: _constants.default.rewardMaxDeductionType.amount\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/earnings/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: '',\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: _constants.default.rewardEarningTypes.rate,\n        label: _constants.default.rewardEarningTypes.rate\n      }, {\n        value: _constants.default.rewardEarningTypes.amount,\n        label: _constants.default.rewardEarningTypes.amount\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/rewards/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/rewards/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/item-events/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/rewards/item-events/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/rewards/item-events/model\", [\"exports\", \"client/pods/base/model\", \"client/constants\"], function (_exports, _model, _constants) {\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    defaults() {\n      return {\n        productTags: [],\n        itemKeys: [],\n        memberLevelId: '',\n        status: _constants.default.status.active,\n        expiryTime: 1,\n        expiryPeriod: _constants.default.timePeriods.years,\n        ratePerPoints: 1,\n        spendMaximumType: _constants.default.rewardMaxDeductionType.rate,\n        spendMaximumRate: 100\n      };\n    },\n    populate(data, attrs) {\n      this._super(data, attrs);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'name',\n        label: 'name'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'dateStartZ',\n        label: 'date start'\n      }, {\n        value: 'dateEndZ',\n        label: 'date end'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/channels/shop/rewards/menu/actions/dash',\n          component: 'channels/shop/rewards/panels-dash',\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'dash',\n          tabType: 'replaceSubTab'\n        }, {\n          resource: 'api/protected/channels/shop/rewards/menu/actions/new',\n          component: 'channels/shop/rewards/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'new',\n          tabType: 'replaceSubTab'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/lists/reward-event-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"client/constants\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: _constants.default.rewardEvents.order,\n        label: `reward_${_constants.default.rewardEvents.order}`,\n        isOptionDisabled: true\n      }, {\n        value: _constants.default.rewardEvents.signup,\n        label: `reward_${_constants.default.rewardEvents.signup}`\n      }, {\n        value: _constants.default.rewardEvents.birthday,\n        label: `reward_${_constants.default.rewardEvents.birthday}`\n      }, {\n        value: _constants.default.rewardEvents.referral,\n        label: `reward_${_constants.default.rewardEvents.referral}`\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/lists/sub-panels-editor/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'details',\n        label: 'details',\n        component: 'channels/shop/rewards/rewards-editor/details-editor',\n        tabType: 'reuseSubTab',\n        resource: 'api/protected/channels/shop/rewards'\n      }, {\n        value: 'member levels',\n        label: 'member levels',\n        component: 'channels/shop/rewards/rewards-editor/member-levels-editor',\n        tabType: 'reuseSubTab',\n        resource: 'api/protected/channels/shop/rewards'\n      }, {\n        value: 'emails',\n        label: 'emails',\n        component: 'channels/shop/rewards/rewards-editor/emails-editor',\n        tabType: 'reuseSubTab',\n        resource: 'api/protected/channels/shop/rewards'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/lists/sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      options,\n      serverType\n    } = {}) {\n      const list = [{\n        value: 'details',\n        label: 'details',\n        component: 'channels/shop/rewards/panels-display/sub-panels-details',\n        tabType: 'reuseSubTab',\n        resource: 'api/protected/channels/shop/rewards',\n        editingComponent: 'channels/shop/rewards/rewards-editor/details-editor'\n      }, {\n        value: 'member levels',\n        label: 'member levels',\n        component: 'channels/shop/rewards/panels-display/sub-panels-member-levels',\n        tabType: 'reuseSubTab',\n        resource: 'api/protected/channels/shop/rewards',\n        editingComponent: 'channels/shop/rewards/rewards-editor/member-levels-editor'\n      }, {\n        value: 'emails',\n        label: 'emails',\n        component: 'channels/shop/rewards/panels-display/sub-panels-emails',\n        tabType: 'reuseSubTab',\n        resource: 'api/protected/channels/shop/rewards',\n        editingComponent: 'channels/shop/rewards/rewards-editor/emails-editor'\n      }];\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/member-levels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/rewards/member-levels/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/rewards/member-levels/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\", \"client/constants\"], function (_exports, _model, R, RA, _constants) {\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    defaults() {\n      return {\n        name: '',\n        description: '',\n        requiredPoints: '',\n        requiredLevelPoints: '',\n        type: '',\n        status: _constants.default.status.active,\n        expiryTime: 1,\n        expiryPeriod: _constants.default.timePeriods.years,\n        isNeverExpire: false,\n        productTags: []\n      };\n    },\n    populate(data, attrs) {\n      const rewardsEvents = R.propOr([], 'rewardsEvents')(data);\n      attrs.selectedRewardEvents = R.pipe(R.pluck('type'), R.reject(RA.isNilOrEmpty), R.append('order'), R.uniq)(rewardsEvents);\n      data.rewardsEvents = this.transformRewardEvents(data);\n      this._super(data, attrs);\n    },\n    transformRewardEvents(data) {\n      const rewardsEvents = R.propOr([], 'rewardsEvents')(data);\n      const sortedTypes = ['signup', 'order', 'birthday', 'referral'];\n      return R.pipe(R.map(rewardEvent => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/rewards/member-levels/rewards-events',\n          data: rewardEvent\n        });\n      }), R.sortBy(R.pipe(R.path(['_data', 'type']), R.flip(R.indexOf)(sortedTypes))))(rewardsEvents);\n    },\n    addRewardEvent(data) {\n      let rewardsEvents = this.getData('rewardsEvents') || [];\n      const rewardEventModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/rewards/member-levels/rewards-events',\n        data\n      });\n      rewardsEvents.pushObject(rewardEventModel);\n      const sortedTypes = ['signup', 'order', 'birthday', 'referral'];\n      rewardsEvents = R.sortBy(R.pipe(R.path(['_data', 'type']), R.flip(R.indexOf)(sortedTypes)))(rewardsEvents);\n      this.setData('rewardsEvents', rewardsEvents);\n    },\n    currentRequiredLevelPoints: Ember.computed('_data.requiredLevelPoints', function () {\n      return Number(this?._data?.requiredLevelPoints) || 0;\n    })\n  });\n});","define(\"client/pods/channels/shop/rewards/member-levels/rewards-events/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/rewards/member-levels/rewards-events/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/rewards/member-levels/rewards-events/model\", [\"exports\", \"client/pods/base/model\", \"client/constants\"], function (_exports, _model, _constants) {\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    defaults() {\n      return {\n        type: _constants.default.rewardEvents.order,\n        earnRequirementType: _constants.default.rewardOrderTypes.total,\n        earnRequirementValue: '',\n        earnType: _constants.default.rewardEarningTypes.rate,\n        earnRate: '',\n        earnAmount: '',\n        expiryPeriod: _constants.default.timePeriods.years,\n        expiryTime: 1,\n        isNeverExpire: false,\n        spendMaximumType: _constants.default.rewardMaxDeductionType.rate,\n        spendMaximumRate: '100',\n        spendMaximumAmount: '',\n        ratePerPoint: 1,\n        allowOnSale: false,\n        allowWithPromoCode: false,\n        messageSuccess: '',\n        status: _constants.default.status.active,\n        rewardType: _constants.default.discountTypes.rate,\n        isAllowToEarnPoints: true\n      };\n    },\n    populate(data, attrs) {\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"client/constants\"], function (_exports, _model, R, _constants) {\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    defaults() {\n      return {\n        name: '',\n        websites: [],\n        emailFromName: '',\n        emailFromAddress: '',\n        emailSignature: '',\n        emailContent: '',\n        status: _constants.default.status.active,\n        hasExpirePointsNotification: false,\n        expirePointsTime: 0,\n        expirePointsPeriod: 'days',\n        startTime: '',\n        startPeriod: 'days',\n        itemEvents: []\n      };\n    },\n    populate(data, attrs) {\n      data.memberLevels = this._transformMemberLevels(data);\n      data.itemEvents = this._transformItemEvents(data);\n      this._super(data, attrs);\n    },\n    _transformItemEvents(data) {\n      const itemEvents = R.propOr([], 'itemEvents')(data);\n      return R.map(itemEvent => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/rewards/item-events',\n          data: itemEvent\n        });\n      })(itemEvents);\n    },\n    addItemEvent(data = {}) {\n      const itemEvents = this.getData('itemEvents') || [];\n      const itemEventModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/rewards/item-events',\n        data\n      });\n      itemEvents.pushObject(itemEventModel);\n      this.setData('itemEvents', itemEvents);\n    },\n    _transformMemberLevels(data) {\n      let memberLevels = R.propOr([], 'memberLevels')(data);\n      const itemEvents = R.propOr([], 'itemEvents')(data);\n      memberLevels = R.map(memberLevel => {\n        memberLevel.productTags = R.pipe(R.find(R.propEq('memberLevelId', memberLevel.memberLevelId)), R.propOr([], 'productTags'))(itemEvents);\n        memberLevel.reward = data?.name || '';\n        return memberLevel;\n      })(memberLevels);\n      return R.map(memberLevel => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/rewards/member-levels',\n          data: memberLevel\n        });\n      })(memberLevels);\n    },\n    addMemberLevel(data = {}) {\n      const memberLevels = this.getData('memberLevels') || [];\n      const memberLevelModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/rewards/member-levels',\n        data\n      });\n      memberLevels.pushObject(memberLevelModel);\n      this.setData('memberLevels', memberLevels);\n      memberLevelModel.addRewardEvent();\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/periods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: '',\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: _constants.default.timePeriods.days,\n        label: _constants.default.timePeriods.days\n      }, {\n        value: _constants.default.timePeriods.weeks,\n        label: _constants.default.timePeriods.weeks\n      }, {\n        value: _constants.default.timePeriods.months,\n        label: _constants.default.timePeriods.months\n      }, {\n        value: _constants.default.timePeriods.years,\n        label: _constants.default.timePeriods.years\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/requirements/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: '',\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: _constants.default.rewardOrderTypes.total,\n        label: _constants.default.rewardOrderTypes.total\n      }, {\n        value: _constants.default.rewardOrderTypes.quantity,\n        label: _constants.default.rewardOrderTypes.quantity\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/rewards/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: '',\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: _constants.default.rewardEvents.birthday,\n        label: `reward_${_constants.default.rewardEvents.birthday}`\n      }, {\n        value: _constants.default.rewardEvents.order,\n        label: `reward_${_constants.default.rewardEvents.order}`\n      }, {\n        value: _constants.default.rewardEvents.signup,\n        label: `reward_${_constants.default.rewardEvents.signup}`\n      }, {\n        value: _constants.default.rewardEvents.promotion,\n        label: `reward_${_constants.default.rewardEvents.promotion}`\n      }, {\n        value: _constants.default.rewardEvents.opening,\n        label: `reward_${_constants.default.rewardEvents.opening}`\n      }, {\n        value: _constants.default.rewardEvents.adjustment,\n        label: `reward_${_constants.default.rewardEvents.adjustment}`\n      }, {\n        value: _constants.default.rewardEvents.memberLevelAdjustment,\n        label: `reward_${_constants.default.rewardEvents.memberLevelAdjustment}`\n      }, {\n        value: _constants.default.rewardEvents.pointsAdjustment,\n        label: `reward_${_constants.default.rewardEvents.pointsAdjustment}`\n      }, {\n        value: _constants.default.rewardEvents.referral,\n        label: `reward_${_constants.default.rewardEvents.referral}`\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/shipping-zones',\n    idPrefix: 'shippingZones',\n    idParam: '_id',\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/all/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/shipping-zones/all',\n    idPrefix: 'shippingZones',\n    idParam: '_id',\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/countries/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/countries/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/settings/countries',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/countries/districts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/countries/districts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/countries/districts/lists/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/countries/districts/lists/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/settings/countries/districts',\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/countries/districts/lists/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/channels/shop/shipping-zones/countries/districts/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/channels/shop/shipping-zones/countries/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/countries/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/countries/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/countries/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        name: '',\n        code: '',\n        regions: [],\n        districts: []\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/countries/regions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/countries/regions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/settings/countries/regions',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/countries/regions/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    populate(data, attrs) {\n      data.hasSelected = false;\n      data.isShow = true;\n      data.districts = R.pipe(R.propOr([], 'districts'), R.map(district => {\n        return attrs.dataManager.setAsRecord({\n          adapterName: 'channels/shop/shipping-zones/countries/districts',\n          data: district\n        });\n      }))(data);\n      this._super(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [],\n        fetchWithCampaigns: '',\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/free-shipping-rule/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/free-shipping-rule/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/free-shipping-rule/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    defaults() {\n      return {\n        matchRule: 'none',\n        rules: []\n      };\n    },\n    populate(data, attrs) {\n      data.rules = this._transformRules(data);\n      this._super(data, attrs);\n    },\n    _transformRules(data) {\n      const rules = R.propOr([], 'rules')(data);\n      return R.map(rule => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/shipping-zones/free-shipping-rule/rule',\n          data: rule\n        });\n      })(rules);\n    },\n    addRule(data = {}) {\n      const rules = this?._data?.rules || [];\n      const ruleModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/shipping-zones/free-shipping-rule/rule',\n        data\n      });\n      rules.pushObject(ruleModel);\n      this.setData('rules', rules);\n    },\n    rulesLength: Ember.computed('rules.[]', function () {\n      const rules = this?._data?.rules || [];\n      return R.length(rules);\n    })\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/free-shipping-rule/rule/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/free-shipping-rule/rule/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/free-shipping-rule/rule/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        when: 'qty',\n        criteria: 'greaterThanOrEqualTo',\n        value: '',\n        valueMax: '',\n        productTags: []\n      };\n    },\n    populate(data, attrs) {\n      this._super(data, attrs);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/campaigns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/shipping-zones/campaigns-list',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'name',\n        label: 'name'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'name',\n        label: 'name'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/free-shipping-when/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      let data = [{\n        value: 'any',\n        label: 'free_shipping_any'\n      }, {\n        value: 'only',\n        label: 'free_shipping_only'\n      }, {\n        value: 'none',\n        label: 'free_shipping_none'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    }) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/channels/shop/shipping-zones/menu/actions/dash',\n          component: 'channels/shop/shipping-zones/panels-dash',\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'dash',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }, {\n          resource: 'api/protected/channels/shop/shipping-zones/menu/actions/new',\n          component: 'channels/shop/shipping-zones/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'new',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/product-tags-when/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'any',\n        label: 'product_tags_any'\n      }, {\n        value: 'only',\n        label: 'product_tags_only'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/rate-base/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      let data = [{\n        value: 'orderValue',\n        label: 'orderValue'\n      }, {\n        value: 'qty',\n        label: 'qty'\n      }, {\n        value: 'weight',\n        label: 'weight'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/rate-method/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'highest',\n        label: 'highest'\n      }, {\n        value: 'lowest',\n        label: 'lowest'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/rate-method/free-shipping/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'includeFreeShipping',\n        label: 'includeFreeShipping'\n      }, {\n        value: 'excludeFreeShipping',\n        label: 'excludeFreeShipping'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/sub-panels-editor/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'details',\n        label: 'details',\n        component: 'channels/shop/shipping-zones/shipping-zones-editor/details-editor',\n        tabType: 'reuseSubTab',\n        resource: 'api/protected/channels/shop/shipping-zones',\n        errorsTracker: [{\n          context: 'name',\n          label: 'name'\n        }, {\n          context: 'status',\n          label: 'status'\n        }, {\n          context: 'zoneType',\n          label: 'zoneType'\n        }, {\n          context: 'productTags',\n          label: 'productTags'\n        }, {\n          context: 'denyProductTags',\n          label: 'denyProductTags'\n        }, {\n          context: 'additionalFreeShippingRule.when',\n          label: 'additionalFreeShippingRule.when'\n        }, {\n          context: 'additionalFreeShippingRule.productTags',\n          label: 'additionalFreeShippingRule.productTags'\n        }, {\n          context: 'transporterLabel',\n          label: 'transporterLabel'\n        }, {\n          context: 'transporterAccountNumber',\n          label: 'transporterAccountNumber'\n        }, {\n          context: 'shopPaymentMethods',\n          label: 'shopPaymentMethods'\n        }]\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      options,\n      serverType\n    }) {\n      const list = [{\n        value: 'details',\n        label: 'details',\n        component: 'channels/shop/shipping-zones/panels-display/sub-panels-details',\n        tabType: 'reuseSubTab',\n        resource: 'api/protected/channels/shop/shipping-zones',\n        editingComponent: 'channels/shop/shipping-zones/shipping-zones-editor/details-editor'\n      }];\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/lists/zone-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: this.get('constants.shippingFeeZoneType.single'),\n        label: 'shipping_single'\n      }, {\n        value: this.get('constants.shippingFeeZoneType.multiple'),\n        label: 'shipping_multiple'\n      }, {\n        value: this.get('constants.shippingFeeZoneType.convenienceStore'),\n        label: 'shipping_convenience_store'\n      }, {\n        value: this.get('constants.shippingFeeZoneType.lalamove'),\n        label: 'shipping_lalamove'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\", \"client/constants\", \"client/utils/nventor\"], function (_exports, _model, R, RA, _constants, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _obj = {\n    defaults() {\n      return {\n        zoneId: '',\n        zoneType: _constants.default.shippingFeeZoneType.single,\n        name: '',\n        isSplit: false,\n        isDefault: false,\n        isLabelOnly: false,\n        priorityZone: '',\n        productTags: [],\n        denyProductTags: [],\n        shopPaymentMethods: [],\n        shopPaymentMethodsDefault: '',\n        supplierKey: '',\n        supplierLabel: '',\n        transporterKey: '',\n        transporterLabel: '',\n        transporterAccount: '',\n        transporterAccountNumber: '',\n        transporterExtension: '',\n        additionalFreeShippingRule: {},\n        countries: [],\n        surcharges: [],\n        hasSurchargeWhenFreeShipping: false,\n        weightUnit: 'g',\n        hasNoRates: false,\n        isValueBased: true,\n        isWeightBased: false,\n        isQuantityBased: false,\n        valueBasedRates: [],\n        weightBasedRates: [],\n        quantityBasedRates: [],\n        productTagsWhen: 'any',\n        transporterDefaultPickupLocationPersonId: '',\n        transporterUseDefaultPickupLocation: true,\n        hasCustomAdditionalFreeShippingMessage: false,\n        customAdditionalFreeShippingMessage: '',\n        allowTransporterArriveTimePeriod: false\n      };\n    },\n    populate(data, attrs) {\n      data.countries = this._transformCountries(data);\n      data.rates = this._transformRates(data);\n      data.surcharges = this._transformSurcharges(data);\n      data.freeShippingRules = this._transformFreeShippingRules(data);\n      data.valueBasedRates = this._transformBasedRates({\n        data,\n        prop: 'valueBasedRates'\n      });\n      data.weightBasedRates = this._transformBasedRates({\n        data,\n        prop: 'weightBasedRates'\n      });\n      data.quantityBasedRates = this._transformBasedRates({\n        data,\n        prop: 'quantityBasedRates'\n      });\n      if (RA.isNotNilOrEmpty(data.campaigns)) {\n        this._transformCampaigns(data);\n      }\n      this._super(data, attrs);\n    },\n    _transformCampaigns(data) {\n      const campaigns = R.propOr([], 'campaigns')(data);\n      const campaignModels = R.map(campaign => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'channels/shop/campaigns',\n          data: campaign\n        });\n      })(campaigns);\n      this.set('campaigns', campaignModels);\n      delete data.campaigns;\n    },\n    _transformCountries(data) {\n      const countries = R.propOr([], 'countries')(data);\n      return R.map(country => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/shipping-zones/countries',\n          data: country\n        });\n      })(countries);\n    },\n    _transformRates(data) {\n      const rates = R.propOr([], 'rates')(data);\n      return R.map(rate => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/shipping-zones/rates',\n          data: rate\n        });\n      })(rates);\n    },\n    _transformSurcharges(data) {\n      const surcharges = R.propOr([], 'surcharges')(data);\n      return R.map(surcharge => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/shipping-zones/surcharges',\n          data: surcharge\n        });\n      })(surcharges);\n    },\n    addSurcharge(data = {}) {\n      const surcharges = this.getData('surcharges') || [];\n      const surchargeModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/shipping-zones/surcharges',\n        data\n      });\n      surcharges.pushObject(surchargeModel);\n      this.setData('surcharges', surcharges);\n    },\n    _transformFreeShippingRules(data) {\n      const freeShippingRules = R.propOr([], 'freeShippingRules')(data);\n      return R.map(freeShippingRule => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/shipping-zones/free-shipping-rule',\n          data: freeShippingRule\n        });\n      })(freeShippingRules);\n    },\n    addFreeShippingRule(data = {}) {\n      const freeShippingRules = this?._data?.freeShippingRules || [];\n      const freeShippingRuleModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/shipping-zones/free-shipping-rule',\n        data\n      });\n      freeShippingRules.pushObject(freeShippingRuleModel);\n      this.setData('freeShippingRules', freeShippingRules);\n    },\n    clearIncomplete() {\n      this._clearIncomplete('rates');\n      this.set('updated', Math.random());\n    },\n    isLastRateIndex(rate) {\n      const rates = this.getData('rates') || [];\n      const rateIndex = rates.indexOf(rate);\n      if (rateIndex === rates.length - 1) {\n        return true;\n      }\n      return false;\n    },\n    updateMinRates() {\n      const rates = this.getData('rates') || [];\n      let previousRate;\n      const newRates = RA.mapIndexed((rate, index) => {\n        let previousMax = 0;\n        if (previousRate) {\n          previousMax = previousRate.getData('max');\n        }\n        let currentMin = previousMax;\n        const initialMin = rate.getData('min') || 0;\n        if (index === 0 && RA.isNotNilOrEmpty(initialMin)) {\n          currentMin = initialMin;\n        }\n        if (index > 0) {\n          currentMin = previousMax + 1;\n        }\n        rate.setData('min', currentMin);\n        let currentMax = parseFloat(rate.getData('max')) || 0;\n        if (currentMax > 0) {\n          if (currentMax < currentMin) {\n            currentMax = 0;\n          }\n          rate.setData('max', currentMax);\n        }\n        previousRate = rate;\n        return rate;\n      })(rates);\n      this.setData('rates', newRates);\n    },\n    newBlankRate(rate = false, rateData = {}) {\n      // check if current rate is the last one\n      if (this.isLastRateIndex(rate)) {\n        const hasRequiredData = rate.hasRequiredData();\n        if (hasRequiredData) {\n          this.newRate(rateData);\n        }\n      }\n    },\n    newRate(rateData = {}) {\n      const rateModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/shipping-zones/rates',\n        data: rateData\n      });\n      this.addRate(rateModel);\n    },\n    addRate(rate) {\n      const rates = this.getData('rates') || [];\n      rates.pushObject(rate);\n      this.setData('rates', rates);\n    },\n    removeRate(rate) {\n      const rates = this.getData('rates') || [];\n      const currentRateIndex = rates.indexOf(rate);\n      const isLast = this.isLastRateIndex(rate);\n      rates.removeObject(rate);\n      const previousRate = rates[currentRateIndex - 1] || {};\n      const isZeroPrevMax = parseInt(previousRate?._data?.max || 0) === 0;\n      const isZeroOrOneCurrentMin = parseInt(rates?._data?.min || 0) === 0 || parseInt(rates?._data?.max || 0) === 1;\n      const isRateRemoveable = isZeroPrevMax && isZeroOrOneCurrentMin;\n      const isOnlyOne = rates.length === 0;\n      if (isOnlyOne) {\n        this.newRate();\n      } else if (isLast && !isRateRemoveable) {\n        this.newRate();\n      } else {\n        this.setData('rates', rates);\n      }\n      return rate;\n    },\n    newCountry(countryData = {}) {\n      return this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/shipping-zones/countries',\n        data: countryData\n      });\n    },\n    addCountry(country) {\n      const countries = this.getData('countries') || [];\n      countries.pushObject(country);\n      this.setData('countries', countries);\n    },\n    removeCountry(country) {\n      const countries = this.getData('countries') || [];\n      countries.removeObject(country);\n      this.setData('countries', countries);\n      return country;\n    },\n    _transformBasedRates({\n      data,\n      prop\n    }) {\n      const rates = R.propOr([], prop)(data);\n      return R.map(rate => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/shipping-zones/rates',\n          data: rate\n        });\n      })(rates);\n    },\n    isLastBasedRateIndex({\n      rateProp,\n      rate\n    }) {\n      const rates = this.getData(rateProp) || [];\n      const rateIndex = rates.indexOf(rate);\n      if (rateIndex === rates.length - 1) {\n        return true;\n      }\n      return false;\n    },\n    updateMinBasedRates({\n      rateProp\n    }) {\n      const rates = this.getData(rateProp) || [];\n      let previousRate;\n      const newRates = RA.mapIndexed((rate, index) => {\n        let previousMax = 0;\n        if (previousRate) {\n          previousMax = previousRate.getData('max');\n        }\n        let currentMin = previousMax;\n        const initialMin = rate.getData('min') || 0;\n        if (index === 0 && RA.isNotNilOrEmpty(initialMin)) {\n          currentMin = initialMin;\n        }\n        if (index > 0) {\n          currentMin = previousMax + 1;\n        }\n        rate.setData('min', currentMin);\n        let currentMax = parseFloat(rate.getData('max')) || 0;\n        if (currentMax > 0) {\n          if (currentMax < currentMin) {\n            currentMax = 0;\n          }\n          rate.setData('max', currentMax);\n        }\n        previousRate = rate;\n        return rate;\n      })(rates);\n      this.setData(rateProp, newRates);\n    },\n    newBlankBasedRate({\n      rateProp,\n      rate = false,\n      rateData = {}\n    }) {\n      // check if current rate is the last one\n      if (this.isLastBasedRateIndex({\n        rateProp,\n        rate\n      })) {\n        const hasRequiredData = rate.hasRequiredData();\n        if (hasRequiredData) {\n          rateData.rateProp = rateProp;\n          const prevMax = Number(rate?._data?.max) || 0;\n          if (prevMax) {\n            const prevMaxStr = this.big.newBig(prevMax).plus(1).toFixed(4);\n            rateData.min = Number(prevMaxStr);\n          }\n          this.newBasedRate({\n            rateProp,\n            rateData\n          });\n        }\n      }\n    },\n    newBasedRate({\n      rateProp,\n      rateData = {}\n    }) {\n      const rateModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/shipping-zones/rates',\n        data: rateData\n      });\n      this.addBasedRate({\n        rateProp,\n        rateModel\n      });\n    },\n    addBasedRate({\n      rateProp,\n      rateModel\n    }) {\n      const rates = this.getData(rateProp) || [];\n      rates.pushObject(rateModel);\n      this.setData(rateProp, rates);\n    },\n    removeBasedRate({\n      rateProp,\n      rate\n    }) {\n      const rates = this.getData(rateProp) || [];\n      const isLast = this.isLastBasedRateIndex({\n        rateProp,\n        rate\n      });\n      rates.removeObject(rate);\n      if (isLast) {\n        this.newBasedRate({\n          rateProp\n        });\n      } else {\n        this.setData(rateProp, rates);\n      }\n      return rate;\n    },\n    hasManyCampaigns: Ember.computed('campaigns.[]', function () {\n      return R.pipe(R.propOr([], 'campaigns'), R.propSatisfies(R.gte(R.__, 3), 'length'))(this);\n    }),\n    hasNotZeroMinimumRates: Ember.computed('_data.{valueBasedRates.@each.synced,weightBasedRates.@each.synced,quantityBasedRates.@each.synced}', function () {\n      const rateBases = ['valueBasedRates', 'weightBasedRates', 'quantityBasedRates'];\n      const hasNotZeroMinimumRates = {};\n      R.forEach(rateBase => {\n        const rates = R.pathOr([], ['_data', rateBase])(this);\n        let hasNotZeroMinimumRate = true;\n        const firstRate = _nventor.default.safeHeadOr({}, rates);\n        if (RA.isNilOrEmpty(firstRate)) {\n          hasNotZeroMinimumRate = false;\n        }\n        const minRate = parseInt(firstRate?._data?.min) || 0;\n        if (minRate === 0) {\n          hasNotZeroMinimumRate = false;\n        }\n        hasNotZeroMinimumRates[rateBase] = hasNotZeroMinimumRate;\n      })(rateBases);\n      return hasNotZeroMinimumRates;\n    }),\n    minimumRates: Ember.computed('_data.{valueBasedRates.@each.synced,weightBasedRates.@each.synced,quantityBasedRates.@each.synced}', function () {\n      const rateBases = ['valueBasedRates', 'weightBasedRates', 'quantityBasedRates'];\n      const minimumRates = {};\n      R.forEach(rateBase => {\n        const rates = R.pathOr([], ['_data', rateBase])(this);\n        const firstRate = _nventor.default.safeHeadOr({}, rates);\n        minimumRates[rateBase] = parseInt(firstRate?._data?.min) || 0;\n      })(rateBases);\n      return minimumRates;\n    }),\n    hasIncorrectRates: Ember.computed('_data.{valueBasedRates.@each.synced,weightBasedRates.@each.synced,quantityBasedRates.@each.synced}', function () {\n      const rateBases = ['valueBasedRates', 'weightBasedRates', 'quantityBasedRates'];\n      const hasIncorrectRates = {};\n      R.forEach(rateBase => {\n        const rates = R.pathOr([], ['_data', rateBase])(this);\n        hasIncorrectRates[rateBase] = R.pipe(RA.mapIndexed((rate, index) => {\n          const nextRate = rates[index + 1];\n          if (RA.isNotNilOrEmpty(nextRate)) {\n            const currentMin = parseInt(rate?._data?.min || 0);\n            const nextMin = nextRate?._data?.min; // dont set default value\n\n            if (nextMin && parseInt(nextMin) < currentMin) {\n              return true;\n            }\n          }\n          return false;\n        }), R.includes(true, R.__))(rates);\n      })(rateBases);\n      return hasIncorrectRates;\n    }),\n    hasAnyIncorrectRates: Ember.computed('hasIncorrectRates.{valueBasedRates,weightBasedRates,quantityBasedRates}', function () {\n      const hasIncorrectRates = this.hasIncorrectRates || {};\n      if (hasIncorrectRates?.valueBasedRates || hasIncorrectRates?.weightBasedRates || hasIncorrectRates?.quantityBasedRates) {\n        return true;\n      }\n      return false;\n    }),\n    hasEnableDeliveryDateOptions: Ember.computed('_data.deliveryDateOptionsKey', '_data.deliveryDateOptionsEnabled', function () {\n      const deliveryDateOptionsKey = R.pathOr('', ['_data', 'deliveryDateOptionsKey'])(this);\n      const deliveryDateOptionsEnabled = R.pathOr(false, ['_data', 'deliveryDateOptionsEnabled'])(this);\n      if (RA.isNotNilOrEmpty(deliveryDateOptionsKey) && deliveryDateOptionsEnabled) {\n        return true;\n      }\n      return false;\n    }),\n    hasCashPaymentMethod: Ember.computed('_data.shopPaymentMethods.[]', function () {\n      const shopPaymentMethods = this?._data?.shopPaymentMethods || [];\n      if (RA.isNilOrEmpty(shopPaymentMethods)) {\n        return true;\n      }\n      if (R.includes('cash', shopPaymentMethods)) {\n        return true;\n      }\n      return false;\n    })\n  }, _applyDecoratedDescriptor(_obj, \"newBlankBasedRate\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"newBlankBasedRate\"), _obj), _obj));\n});","define(\"client/pods/channels/shop/shipping-zones/rates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/rates/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/rates/model\", [\"exports\", \"client/pods/base/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    init() {\n      this.set('requiredAttrs', ['min', 'max', 'rate']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/surcharges/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/shipping-zones/surcharges/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/channels/shop/shipping-zones/surcharges/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        surchargeId: '',\n        label: '',\n        rate: ''\n      };\n    },\n    populate(data, attrs) {\n      this._super(data, attrs);\n    }\n  });\n});","define(\"client/pods/channels/shop/web/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/web/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions',\n    idParam: 'ref',\n    modelObj: _model.default\n  });\n});","define(\"client/pods/channels/shop/web/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/color-picker/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/color-picker/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/color-picker/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        defaultSwatches: ['#F6F5F5', '#145374', '#00334E', '#EE6F57', '#206A5D', '#81B214', '#BFDCAE', '#F1F1E8', '#1B262C', '#0F4C75', '#00B7C2', '#FDCB9E', '#B0CAC7', '#F7D6BF'],\n        userSwatches: []\n      };\n    }\n  });\n});","define(\"client/pods/comments/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/comments/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/comments',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/comments/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/comments/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/comments/collection',\n    modelObj: _model.default,\n    idParam: ['master', 'type'],\n    idPrefix: 'comments/collection'\n  });\n});","define(\"client/pods/comments/collection/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\"], function (_exports, R, RA, _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    init() {\n      this._super(...arguments);\n      this.set('adapters', {\n        comments: 'comments'\n      });\n    },\n    populate(data, attrs) {\n      const incomingComments = data.comments;\n      const loadedComments = this._data?.comments;\n      const incomingIsEmpty = R.isNil(incomingComments) || R.isEmpty(incomingComments);\n      const hasLoadedComments = RA.isNotNilOrEmpty(loadedComments);\n\n      // Count-only list fetches send comments: []. Do not wipe a thread\n      // already loaded in another tab (modal open) that shares this cache.\n      if (incomingIsEmpty && hasLoadedComments) {\n        data.comments = loadedComments;\n      } else {\n        data.comments = this._transformComments(incomingComments);\n      }\n      this._super(data, attrs);\n    },\n    /**\n     * Create broadcasts arrayPush/arrayUnshift onto comments[]; delete uses\n     * arrayPop. Count-only list badges read commentsCount, so keep it in step.\n     * @param {string} action - arrayPush, arrayUnshift, or arrayPop\n     * @param {Object} incomingData - row that was added or removed\n     * @return {Object} incomingData unchanged\n     */\n    beforeSyncRefresh(action, incomingData) {\n      const commentsCount = this._data?.commentsCount;\n      if (R.isNil(commentsCount)) {\n        return incomingData;\n      }\n      if (action === 'arrayPush' || action === 'arrayUnshift') {\n        const nextCommentsCount = commentsCount + 1;\n        this.setData('commentsCount', nextCommentsCount);\n        return incomingData;\n      }\n      if (action !== 'arrayPop' || commentsCount < 1) {\n        return incomingData;\n      }\n      const nextCommentsCount = commentsCount - 1;\n      this.setData('commentsCount', nextCommentsCount);\n      return incomingData;\n    },\n    _transformComments(comments) {\n      const commentRows = comments || [];\n      return commentRows.map(comment => {\n        return this.dataManager.setAsRecord({\n          adapterName: this.get('adapters.comments'),\n          data: comment\n        });\n      });\n    }\n  });\n});","define(\"client/pods/comments/contacts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/comments/contacts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/comments/orders/contacts',\n    modelObj: _model.default,\n    idPrefix: 'commentsContacts',\n    idParam: '_id'\n  });\n});","define(\"client/pods/comments/contacts/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/comments/contacts/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/comments/contacts/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        keys: [],\n        tags: [],\n        page: 1,\n        count: 10,\n        query: '',\n        master: '',\n        docType: '',\n        docname: '',\n        status: '',\n        match: ['all'],\n        statuses: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/comments/contacts/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\"], function (_exports, R, RA, _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    /**\n     * Create broadcasts status/readBadge on this first-comment row and omits\n     * commentsCount. Public list badges read that count, so bump it when the\n     * incoming payload has no count of its own.\n     * @param {string} _action - sync action; unused on this merge broadcast\n     * @param {Object} incomingData - sync payload before merge\n     * @return {Object} payload to merge, with commentsCount filled in when needed\n     */\n    beforeSyncRefresh(_action, incomingData) {\n      const previousCommentsCount = this._data?.commentsCount;\n      if (R.isNil(previousCommentsCount) || RA.isNotNil(incomingData?.commentsCount)) {\n        return incomingData;\n      }\n      const nextCommentsCount = previousCommentsCount + 1;\n      return R.assoc('commentsCount', nextCommentsCount, incomingData);\n    }\n  });\n});","define(\"client/pods/comments/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/comments/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/comments/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        keys: [],\n        tags: [],\n        page: 1,\n        count: 10,\n        query: '',\n        status: '',\n        match: ['all'],\n        statuses: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/comments/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    populate(data, attrs) {\n      data.workflowsItemsActivities = this._transformWorkflowsItemsActivities(data);\n      this._super(data, attrs);\n    },\n    _transformWorkflowsItemsActivities(data) {\n      return R.pipe(R.pathOr([], ['workflowsItemsActivities']), workflowsItemsActivities => {\n        // ensure array\n        if (!R.is(Array, workflowsItemsActivities)) {\n          return [];\n        }\n        return workflowsItemsActivities;\n      }, R.map(workflowsItemsActivity => this.dataManager.setAsRecord({\n        adapterName: 'workflows/items/activities',\n        data: workflowsItemsActivity\n      })))(data);\n    }\n  });\n});","define(\"client/pods/commissions/lists/panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../../../../utils/nventor'\n  // import AdapterMixin from '../../../../../../mixins/adapters-new'\n  // import OptionsModel from '../../../../../options/model'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'overview',\n        label: 'overview',\n        component: 'reports/commissions/panels-all',\n        className: 'show-when-overflow'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/commissions/methods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'percentagePrice',\n        label: 'percentage of price'\n      }, {\n        value: 'baseCost',\n        label: 'base cost'\n      }, {\n        value: 'flat',\n        label: 'flat fee'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/components/accordion-help-section/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 AccordionHelpSectionComponent = _exports.default = (_dec = Ember._tracked, _class = class AccordionHelpSectionComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"listName\", _descriptor, this);\n    }\n    get translate() {\n      if (RA.isNotNilOrEmpty(this.args.translate)) {\n        return this.args.translate;\n      }\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"listName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/accordion-help-section/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AeSjC1N0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"documentationWrapper\\\",\\\"accordianContainer\\\",\\\"@hasOpenNewTabLink\\\",\\\"@autoFetchDocumentation\\\",\\\"@context\\\",\\\"&default\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@documentationResource\\\",\\\"@fetchDocumentationList\\\",\\\"@hasToggleIcon\\\",\\\"@label\\\"],\\\"statements\\\":[[5,\\\"documentation/documentation\\\",[[12,\\\"class\\\",\\\"\\\"]],[[\\\"@tab\\\",\\\"@isHelp\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@fetchDocumentationList\\\",\\\"@options\\\"],[[23,7,[]],true,[23,8,[\\\"documentationId\\\"]],[23,9,[]],[23,5,[]],[23,10,[]],[28,\\\"hash\\\",null,[[\\\"documentationId\\\",\\\"documentationResource\\\",\\\"context\\\"],[[23,8,[\\\"documentationId\\\"]],[23,9,[]],[23,5,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"help-container\\\"]],[[\\\"@toggleIsOn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/accordian-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@container\\\",\\\"@ignoreClickSelector\\\"],[[23,11,[]],[23,2,[]],\\\".documentation-edit-btn-container\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,12,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"documentation/documentation-icon\\\",[],[[\\\"@isHelp\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@updateDocumentation\\\",\\\"@documentationWrapper\\\",\\\"@tab\\\",\\\"@onlyShowForIsDocumentationsEditor\\\"],[true,[23,9,[]],[23,5,[]],[23,1,[\\\"documentation\\\"]],[23,1,[\\\"documentationId\\\"]],[23,1,[\\\"updateDocumentation\\\"]],[23,1,[]],[23,7,[]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"documentation/documentation-desc\\\",[[12,\\\"class\\\",\\\"documentation-description-title\\\"]],[[\\\"@hasOpenNewTabLink\\\",\\\"@autoFetchDocumentation\\\",\\\"@documentationWrapper\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@context\\\"],[[23,3,[]],[23,4,[]],[23,1,[]],[23,1,[\\\"documentation\\\"]],[23,1,[\\\"documentationId\\\"]],[23,1,[\\\"documentationResource\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[14,6,[[23,2,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/accordion-help-section/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/accordion/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 AccordionComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class AccordionComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"listName\", _descriptor, this);\n      _initializerDefineProperty(this, \"isActive\", _descriptor2, this);\n      this.isActive = R.pathOr(false, ['args', 'expanded'])(this);\n    }\n    toggleIsActive() {\n      this.isActive = !this.isActive;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"listName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isActive\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleIsActive\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsActive\"), _class.prototype), _class);\n});","define(\"client/pods/components/accordion/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"apciYjl6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@accordionPanelClassNames\\\",\\\"@label\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"card accordion-panel \\\",[28,\\\"if\\\",[[23,0,[\\\"isActive\\\"]],\\\"accordion-panel-active\\\"],null],\\\" \\\",[23,2,[]]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"a\\\",false],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleIsActive\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[1,[28,\\\"tt\\\",[[23,3,[]]],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"a\\\",true],[10,\\\"class\\\",\\\"card-header-icon\\\"],[10,\\\"aria-label\\\",\\\"more options\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\",true],[11,\\\"class\\\",[29,[\\\"fas \\\",[28,\\\"if\\\",[[23,0,[\\\"isActive\\\"]],\\\"fa-angle-up\\\",\\\"fa-angle-down\\\"],null]]]],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[10,\\\"style\\\",\\\"padding-top: 5px\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/accordion/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"client/mixins/e-invoices-list-by\", \"ember-concurrency\"], function (_exports, _date, _crud, _eInvoicesListBy, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import EmberObject from '@ember/object'\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _eInvoicesListBy.default, {\n    count: 20,\n    page: 1,\n    hasStatement: false,\n    init() {\n      this._super(...arguments);\n      const period = this.get('tab.period');\n      this.set('period', period);\n\n      // const filters = this.search.setupFilters({\n      //   adapterName: this.get('filtersAdapterName')\n      // })\n      // this.set('filters', filters)\n\n      // const { dateStart, dateEnd } = period\n      // const status = ['all']\n      // const adapterName = 'admin/extensions/apps/tw/e-invoices'\n      // this.get('listByTask').perform({ adapterName, dateStart, dateEnd, status })\n\n      if (this.hasStatement) {\n        this.fetchStatementTask.perform(period);\n      }\n    },\n    fetchStatementTask: (0, _emberConcurrency.task)(function* (period) {\n      period.provider = this.provider;\n      const response = yield this.server.call('GET', 'api/protected/admin/extensions/apps/tw/e-invoices/statement', period);\n      this.set('statements', response.data);\n      return response.data;\n    })\n  });\n});","define(\"client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"E5/Dnt6k\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_captured\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_captured_invoices\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"capturedTotals\\\",\\\"capturedInvoicesInclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_captured_returns\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"capturedTotals\\\",\\\"capturedReturnsInclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_uncaptured_total\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"capturedTotals\\\",\\\"uncapturedInclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/component\", [\"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 = Ember.Component.extend({\n    tagName: 'tr'\n  });\n});","define(\"client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"51WeIp4X\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[7,\\\"td\\\",true],[8],[0,\\\"\\\\n  \\\"],[1,[24,[\\\"statement\\\",\\\"company\\\"]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"tw_eInvoice_provider_\\\",[24,[\\\"provider\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n  \\\"],[1,[24,[\\\"statement\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"statusTotals\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"statusTotals\\\",\\\"pending\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"statusTotals\\\",\\\"cancelled\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"statusTotals\\\",\\\"pendingCancellation\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"statusTotals\\\",\\\"successful\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"capturedTotals\\\",\\\"capturedInvoicesInclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"capturedTotals\\\",\\\"capturedReturnsInclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"capturedTotals\\\",\\\"uncapturedInclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"disabled\\\",\\\"hasSectionWrapper\\\"],[\\\"fas fa-eye\\\",[24,[\\\"disabled\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/panels-display\\\",null,[[\\\"period\\\",\\\"podKey\\\",\\\"selectedTableView\\\",\\\"hasManagementBtns\\\",\\\"hasStatement\\\",\\\"provider\\\",\\\"adapterName\\\"],[[24,[\\\"period\\\"]],[24,[\\\"statement\\\",\\\"podKey\\\"]],\\\"invoice\\\",false,true,[24,[\\\"provider\\\"]],\\\"admin/extensions/apps/tw/e-invoices\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/panels-statement/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"G1JrEPC+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"statement\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasStatement\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title u-header-1\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"period\\\",\\\"dateStart\\\"]],false],[0,\\\" ~ \\\"],[1,[24,[\\\"period\\\",\\\"dateEnd\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasStatement\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onFetchStatementTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"company\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"provider\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total_invoices_amount\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total_invoices_pending\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total_invoices_cancelled\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total_invoices_pendingCancellation\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total_invoices_successful\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_captured_invoices\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_captured_returns\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_uncaptured_total\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\\n              \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"statements\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"admin/extensions/apps/tw/e-invoices/panels-display/panels-statement\\\",null,[[\\\"hasManagementBtns\\\",\\\"period\\\",\\\"provider\\\",\\\"statement\\\"],[false,[24,[\\\"period\\\"]],[24,[\\\"provider\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/extensions/apps/tw/e-invoices/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/extensions/apps/tw/e-invoices/tab-container/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/big\", \"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _big, _invoices, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _invoices.default, _big.default, _date.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    model: null,\n    errors: null,\n    customDateZ: '',\n    adapterName: 'admin/extensions/apps/tw/e-invoices',\n    filtersAdapterName: 'admin/extensions/apps/tw/e-invoices/filters',\n    selectedProvider: 'bigOrdr',\n    showResults: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['periods/months', 'periods/years', 'extensions/apps/tw/e-invoices/lists/providers']);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      const pastDays = this.getPastDays(14);\n      this.set('pastDays', pastDays);\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n    },\n    afterSearchInputTask(results) {\n      this.set('hasStatement', false);\n      return results;\n    },\n    displaySummaryPanel(period) {\n      const subTabOptions = {\n        component: 'admin/extensions/apps/tw/e-invoices/panels-display',\n        period\n      };\n      this.set('hasStatement', true);\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    checkPendingEInvoicesTask: (0, _emberConcurrency.task)(function* () {\n      if (window.confirm('check all pending?')) {\n        yield this.server.call('POST', 'api/protected/admin/einvoices/pending');\n      }\n    }),\n    checkPendingSchedulesTask: (0, _emberConcurrency.task)(function* () {\n      if (window.confirm('check all pending?')) {\n        yield this.server.call('POST', 'api/protected/admin/schedules/pending');\n      }\n    }),\n    actions: {\n      displayByMonth(period) {\n        const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n        const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n        // this.get('displaySummaryPanelTask').perform({ dateEnd, dateStart })\n        this.displaySummaryPanel({\n          dateEnd,\n          dateStart\n        });\n        this.set('mm', period.mm);\n        this.set('yyyy', period.yyyy);\n      },\n      displayByCustomMonth(mm, yyyy) {\n        const dateStart = this.formatDateForUrl(`${yyyy}-${mm}-01`);\n        const dateEnd = this.formatDateForUrl(this.getMonthEnd(yyyy, mm));\n        // this.get('displaySummaryPanelTask').perform({ dateEnd, dateStart })\n        this.displaySummaryPanel({\n          dateEnd,\n          dateStart\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/admin/extensions/apps/tw/e-invoices/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1tLk4fpK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"period\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-lists-providers\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[24,[\\\"selectedProvider\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[false,\\\"update all pending e-invoices\\\",[24,[\\\"checkPendingEInvoicesTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"checkPendingEInvoicesTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[false,\\\"run all pending schedules\\\",[24,[\\\"checkPendingSchedulesTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"checkPendingSchedulesTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"admin-e-invoices\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\"],[true,true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustomMonth\\\",[24,[\\\"mm\\\"]],[24,[\\\"yyyy\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,2,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"hasStatement\\\",\\\"filters\\\",\\\"results\\\",\\\"provider\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[24,[\\\"hasStatement\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[23,0,[\\\"selectedProvider\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/extensions/apps/tw/e-invoices/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/maintenance/tab-container/component\", [\"exports\", \"ember-concurrency\", \"ramda\"], function (_exports, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    admin: Ember.inject.service(),\n    createIndexesTask: (0, _emberConcurrency.task)(function* () {\n      yield this.server.call('POST', 'api/protected/admin/maintenance/indexes', {});\n    }).drop(),\n    createAllIndexesTask: (0, _emberConcurrency.task)(function* () {\n      yield this.server.call('POST', 'api/protected/admin/maintenance/indexes/all', {});\n    }).drop(),\n    createInventoryCachesTask: (0, _emberConcurrency.task)(function* () {\n      yield this.server.call('POST', 'api/protected/admin/maintenance/createInventoryCaches', {});\n    }).drop(),\n    createDetailsSimplifiedTask: (0, _emberConcurrency.task)(function* () {\n      yield this.server.call('POST', 'api/protected/admin/maintenance/createDetailsSimplified', {});\n    }).drop(),\n    sendReadyForPickupAtDestinationTask: (0, _emberConcurrency.task)(function* () {\n      yield this.server.call('POST', 'api/protected/admin/maintenance/sendReadyForPickupAtDestination', {});\n    }).drop(),\n    createContactsCacheTotalsTask: (0, _emberConcurrency.task)(function* () {\n      yield this.server.call('POST', 'api/protected/admin/maintenance/createContactsCacheTotals', {});\n    }).drop(),\n    manualRecacheProductInventoryTask: (0, _emberConcurrency.task)(function* () {\n      const productKeysForManualRecacheProductInventoryTask = this.productKeysForManualRecacheProductInventoryTask ?? '';\n      yield this.server.call('POST', 'api/protected/admin/maintenance/manualRecacheProductInventory', {\n        productKeys: productKeysForManualRecacheProductInventoryTask\n      });\n    }).drop(),\n    getAutomationsTask: (0, _emberConcurrency.task)(function* () {\n      const results = yield this.server.call('GET', 'api/protected/admin/get-automations', {});\n      this.set('automationsResults', R.propOr([], 'data')(results));\n    }).drop(),\n    updateAutomationsTask: (0, _emberConcurrency.task)(function* ({\n      podKey = '',\n      campaignKey = '',\n      automationKey = '',\n      itemKey = ''\n    }) {\n      yield this.server.call('PUT', 'api/protected/admin/update-automations', {\n        podKey,\n        campaignKey,\n        automationKey,\n        itemKey\n      });\n      yield this.getAutomationsTask.perform();\n    }).drop(),\n    updateMissingEarnRewardDocTask: (0, _emberConcurrency.task)(function* () {\n      yield this.server.call('PATCH', 'api/protected/admin/fix-missing-earn-reward', {});\n    }).drop()\n  });\n});","define(\"client/pods/components/admin/maintenance/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UEyAN6Nb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"campaign\\\",\\\"automation\\\",\\\"index\\\",\\\"@tab\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"updateNotifyAdmin\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,\\\"create indexes\\\",[28,\\\"perform\\\",[[23,0,[\\\"createIndexesTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"updateNotifyAdmin\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,\\\"create all indexes\\\",[28,\\\"perform\\\",[[23,0,[\\\"createAllIndexesTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"updateAutomations\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"list automations\\\",[28,\\\"perform\\\",[[23,0,[\\\"getAutomationsTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"automationsResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"update all\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateAutomationsTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"automationsResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"999\\\"],[8],[1,[28,\\\"tt\\\",[\\\"podKey\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"podKey\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"campaign key\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"shop name\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"automation key\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"automation index\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"item key\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"item name\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"automationsData\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[\\\"automations\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[11,\\\"rowspan\\\",[29,[[23,2,[\\\"automations\\\",\\\"length\\\"]]]]],[8],[1,[23,2,[\\\"_key\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[11,\\\"rowspan\\\",[29,[[23,2,[\\\"automations\\\",\\\"length\\\"]]]]],[8],[0,\\\"\\\\n                      \\\"],[1,[23,2,[\\\"name\\\"]],false],[0,\\\"\\\\n                      \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n                      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"update by campaign\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateAutomationsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"podKey\\\",\\\"campaignKey\\\"],[[23,1,[\\\"podKey\\\"]],[23,2,[\\\"_key\\\"]]]]]],null]]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"automationKey\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"automationIndex\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"itemKey\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"item\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"update\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateAutomationsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"podKey\\\",\\\"campaignKey\\\",\\\"automationKey\\\",\\\"itemKey\\\"],[[23,1,[\\\"podKey\\\"]],[23,2,[\\\"_key\\\"]],[23,3,[\\\"automationKey\\\"]],[23,3,[\\\"itemKey\\\"]]]]]],null]]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"automationKey\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"automationIndex\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"itemKey\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"item\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"update\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateAutomationsTask\\\"]]],null]]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[2]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"updateDocumentsEarnReward\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"update documents\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateMissingEarnRewardDocTask\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"createInventoryCaches\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"isRunning\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,[23,0,[\\\"createInventoryCachesTask\\\",\\\"isRunning\\\"]],\\\"create inventory caches\\\",[28,\\\"perform\\\",[[23,0,[\\\"createInventoryCachesTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"createDetailsSimplified\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"isRunning\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,[23,0,[\\\"createDetailsSimplifiedTask\\\",\\\"isRunning\\\"]],\\\"create simplified invoices details\\\",[28,\\\"perform\\\",[[23,0,[\\\"createDetailsSimplifiedTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sendReadyForPickupAtDestination\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"isRunning\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,[23,0,[\\\"sendReadyForPickupAtDestinationTask\\\",\\\"isRunning\\\"]],\\\"sendReadyForPickupAtDestination\\\",[28,\\\"perform\\\",[[23,0,[\\\"sendReadyForPickupAtDestinationTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"createContactsCacheTotals\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"isRunning\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,[23,0,[\\\"createContactsCacheTotalsTask\\\",\\\"isRunning\\\"]],\\\"create document cache totals for all contacts\\\",[28,\\\"perform\\\",[[23,0,[\\\"createContactsCacheTotalsTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"manualRecacheProductInventory\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"productKeys\\\",[23,6,[]],false,\\\"product keys\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@rows\\\",\\\"@value\\\"],[2,[23,0,[\\\"productKeysForManualRecacheProductInventoryTask\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"isRunning\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,[23,0,[\\\"manualRecacheProductInventoryTask\\\",\\\"isRunning\\\"]],\\\"manualRecacheProductInventory\\\",[28,\\\"perform\\\",[[23,0,[\\\"manualRecacheProductInventoryTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/maintenance/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/members/tab-container/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-extension\", \"client/config/environment\"], function (_exports, _emberConcurrency, R, R_, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    admin: Ember.inject.service(),\n    adapterName: 'admin',\n    resultsToggle: false,\n    query: '',\n    shopVersion: '',\n    reloadShopApiVersions: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['admin/members/lists/plans']);\n      this.set('created', []);\n      this.resetNewCompany();\n      this.set('shopVersion', _environment.default.apiVersion);\n      this.set('reloadShopApiVersions', '');\n    },\n    resetNewCompany() {\n      this.set('newCompany', {\n        company: '',\n        shopUrlPrefix: '',\n        name: '',\n        email: '',\n        password: '',\n        plan: 'free'\n      });\n    },\n    resetPods(onCloseDialogAction) {\n      this.set('selectedPodKey', '');\n      this.set('selectedPodModel', '');\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    },\n    selectPod(selectedPodKey) {\n      const activePods = this.activePods || [];\n      const selected = R.find(R.pathEq(['_data', 'podKey'], selectedPodKey))(activePods);\n      this.set('selectedPodModel', selected);\n    },\n    getAllActivePods: (0, _emberConcurrency.task)(function* () {\n      const data = this.newCompany;\n      const results = yield this.server.call('GET', 'api/protected/admin/pods', data);\n      const activePods = R.pipe(R_.dotPathOr([], 'data'), R.map(data => {\n        if (!data.relatedPods) {\n          data.relatedPods = [];\n        }\n        return Ember.Object.create({\n          _data: data\n        });\n      }))(results);\n      this.set('activePods', activePods);\n    }).drop(),\n    allPodsExcludingSelected: Ember.computed('selectedPodKey', function () {\n      const selectedPodKey = this.get('selectedPodKey');\n      const activePods = this.get('activePods') || [];\n      if (selectedPodKey) {\n        return R.reject(R.pathEq(['_data', 'podKey'], selectedPodKey))(activePods);\n      }\n      return activePods;\n    }),\n    // async didReceiveAttrs () {\n    //   this._super(...arguments)\n    //   const adminModel = await this.admin.get('connectAsAdminTask').perform()\n    //   this.set('adminModel', adminModel)\n    // },\n\n    getConnectedUsersTask: (0, _emberConcurrency.task)(function* () {\n      const data = this.newCompany;\n      const results = yield this.server.call('GET', 'api/protected/admin/connections', data);\n      this.set('connectionsCount', R_.dotPath('data.count')(results));\n      this.set('connections', R_.dotPath('data.connections')(results));\n    }).drop(),\n    saveNewCompanyTask: (0, _emberConcurrency.task)(function* () {\n      const data = this.newCompany;\n      const results = yield this.server.call('POST', 'api/protected/admin/members', data);\n      const podKey = R.path(['data', 'podKey'])(results);\n      this.set('newCompany.podKey', podKey);\n      this.created.pushObject(this.newCompany);\n      this.resetNewCompany();\n    }).drop(),\n    updateRelationshipsTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction) {\n      const selectedPodModel = this.get('selectedPodModel');\n      const data = selectedPodModel.get('_data');\n      const selectedPodKey = data.podKey;\n      const results = yield this.server.call('PATCH', `api/protected/admin/pods/related/${selectedPodKey}`, data);\n      this.resetPods(onCloseDialogAction);\n      // const podKey = R.path(['data', 'podKey'])(results)\n      // this.set('newCompany.podKey', podKey)\n      // this.created.pushObject(this.newCompany)\n      // this.resetNewCompany()\n    }).drop(),\n    getShopVersionTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction) {\n      const selectedPodModel = this.get('selectedPodModel');\n      const shopVersion = this.shopVersion;\n      const results = yield this.server.call('GET', `api/protected/admin/shop/version`, {});\n      this.set('shopVersion', results?.data?.latestShopApiVersion || shopVersion);\n      this.set('reloadShopApiVersions', results?.data?.reloadShopApiVersions);\n    }).drop(),\n    updateShopVersionTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction) {\n      const shopVersion = this.shopVersion;\n      const results = yield this.server.call('PATCH', `api/protected/admin/shop/version/${shopVersion}`, {\n        reloadShopApiVersions: this.reloadShopApiVersions || ''\n      });\n      alert(`\n      Shop version updated: ${shopVersion}: ${results.data}.\n      reloadShopApiVersions: ${this.reloadShopApiVersions}\n    `);\n      this.resetPods(onCloseDialogAction);\n    }).drop()\n  }, _applyDecoratedDescriptor(_obj, \"resetPods\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"resetPods\"), _obj), _applyDecoratedDescriptor(_obj, \"selectPod\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"selectPod\"), _obj), _obj));\n});","define(\"client/pods/components/admin/members/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oOG3XSSU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"company\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"user\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"onSubmit\\\",\\\"hasSectionWrapper\\\"],[\\\"update shop version\\\",false,[28,\\\"perform\\\",[[24,[\\\"getShopVersionTask\\\"]]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"disabled\\\",\\\"translatedPlaceholder\\\",\\\"value\\\"],[false,\\\"version\\\",[23,0,[\\\"shopVersion\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"disabled\\\",\\\"translatedPlaceholder\\\",\\\"value\\\"],[false,\\\"disallow versions\\\",[23,0,[\\\"reloadShopApiVersions\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,\\\"update shop version\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateShopVersionTask\\\"]],[23,5,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,\\\"get connected users\\\",[28,\\\"perform\\\",[[24,[\\\"getConnectedUsersTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"connections\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[0,\\\"          Connections: \\\"],[1,[28,\\\"number\\\",[[24,[\\\"connectionsCount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"connections\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,4,[\\\"username\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"dateTime\\\",[[23,4,[\\\"connectedAt\\\"]]],null],false],[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"(\\\"],[1,[23,4,[\\\"version\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@hasSectionWrapper\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-sitemap\\\",true,false,[28,\\\"perform\\\",[[23,0,[\\\"getAllActivePods\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"updateTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"activePods\\\"]],\\\"_data.podKey\\\",\\\"_data.company\\\",[23,0,[\\\"selectedPodKey\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectPod\\\"]],[23,0,[\\\"selectedPodKey\\\"]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"p\\\",true],[8],[1,[23,0,[\\\"selectedPodModel\\\",\\\"_data\\\",\\\"podKey\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[8],[1,[23,0,[\\\"selectedPodModel\\\",\\\"_data\\\",\\\"company\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"selectedPodModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\"],[[23,0,[\\\"isReadonly\\\"]],\\\"fas fa-sitemap\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[true,false,[23,0,[\\\"allPodsExcludingSelected\\\"]],\\\"list-selector\\\",[23,0,[\\\"selectedPodModel\\\"]],\\\"_data.relatedPods\\\",\\\"_data.podKey\\\",\\\"_data.company\\\",\\\"list-selector__item\\\",true,true]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n              \\\\n              \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@translate\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@list\\\",\\\"@value\\\"],[false,\\\"_data.podKey\\\",\\\"_data.company\\\",[23,0,[\\\"activePods\\\"]],[23,0,[\\\"selectedPodModel\\\",\\\"_data\\\",\\\"relatedPods\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"selectedPodKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"updateRelationshipsTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[24,[\\\"resetPods\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"updateRelationshipsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"updateRelationshipsTask\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"company\\\",\\\"company\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"newCompany\\\",\\\"company\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"url\\\",\\\"shopUrlPrefix\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"newCompany\\\",\\\"shopUrlPrefix\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"name\\\",\\\"name\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"newCompany\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"email\\\",\\\"email\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"newCompany\\\",\\\"email\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"password\\\",\\\"password\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"newCompany\\\",\\\"password\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"plan\\\",\\\"plan\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-members-lists-plans\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"newCompany\\\",\\\"plan\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveNewCompanyTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"saveNewCompanyTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"created\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"company\\\",\\\"company\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"company\\\"]],false],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            podKey: \\\"],[1,[23,1,[\\\"podKey\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"url\\\",\\\"shopUrlPrefix\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"shopUrlPrefix\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"name\\\",\\\"name\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"email\\\",\\\"email\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"email\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"password\\\",\\\"password\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"password\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"plan\\\",\\\"plan\\\",\\\"admin\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"plan\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/members/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-abandoned/component\", [\"exports\", \"client/config/environment\", \"client/mixins/crud\", \"client/mixins/payments-list-by\", \"ember-concurrency\"], function (_exports, _environment, _crud, _paymentsListBy, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _paymentsListBy.default, {\n    adapterName: 'admin/payments/card/temp',\n    filtersAdapterName: 'admin/payments/card/filters',\n    init() {\n      this.set('config', _environment.default);\n      this._super(...arguments);\n      this.fetchAbandoned(true);\n    },\n    fetchAbandoned(allUnsuccessful = false) {\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      this.set('provider', this.selectedProvider);\n      filters.setData('provider', this.selectedProvider);\n      filters.setData('abandoned', true);\n      filters.setData('allUnsuccessful', allUnsuccessful);\n      this.listByTask.perform({\n        adapterName: 'admin/payments/card/temp',\n        filters: filters,\n        abandoned: true\n      });\n    },\n    // customPaginateSearchRecordsTask: task(function * () {\n    //   this.crud.paginateSearchRecordsTask.perform({\n    //     filters: this.filters,\n    //   })\n    // },\n\n    markIsSuccessfulTask: (0, _emberConcurrency.task)(function* (transactionCode, tempDoc) {\n      const self = this;\n      const key = tempDoc._data._key;\n      if (window.confirm('successful?')) {\n        yield self.get('server').call('PUT', `api/protected/admin/payments/card/abandoned/successful/${key}`, {\n          transactionCode\n        });\n        tempDoc.setData('isUnsuccessful', false);\n        tempDoc.setData('isSuccessful', true);\n        if (transactionCode) {\n          tempDoc.setData('paymentResponse.transactionCode', transactionCode);\n        }\n      }\n    }),\n    markIsUnsuccessfulTask: (0, _emberConcurrency.task)(function* (tempDoc) {\n      const self = this;\n      const key = tempDoc._data._key;\n      yield self.get('server').call('PUT', `api/protected/admin/payments/card/abandoned/unsuccessful/${key}`, {});\n      tempDoc.setData('isUnsuccessful', true);\n      tempDoc.setData('isSuccessful', false);\n    }),\n    markIsUnsuccessfulAndConfirmedTask: (0, _emberConcurrency.task)(function* (tempDoc) {\n      const self = this;\n      const key = tempDoc._data._key;\n      yield self.get('server').call('PUT', `api/protected/admin/payments/card/abandoned/unsuccessful/confirmed/${key}`, {});\n      tempDoc.setData('isUnsuccessful', true);\n      tempDoc.setData('isSuccessful', false);\n      tempDoc.setData('isConfirmed', true);\n    })\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-abandoned/payments-detail/component\", [\"exports\", \"ember-concurrency\", \"ramda\"], function (_exports, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.set('transactionCode', this?.tempDoc?._data?.paymentResponse?.transactionCode);\n    },\n    fetchGMODataTask: (0, _emberConcurrency.task)(function* (tempDoc) {\n      const response = yield this.server.call('GET', 'api/protected/admin/payments/card/temp/response', {\n        _key: tempDoc._data._key,\n        eventId: tempDoc._data.eventId\n      });\n      const request = R.pathOr({}, ['data', 'request'])(response);\n      tempDoc.set('request', request);\n      const event = R.pathOr('', ['data', 'event'])(response);\n      tempDoc.set('event', event);\n      const response3ds = R.pathOr('', ['data', 'response3ds'])(response);\n      tempDoc.set('response3ds', response3ds);\n      try {\n        const requestString = JSON.stringify(request, undefined, 2);\n        tempDoc.set('requestString', requestString);\n        const eventString = JSON.stringify(event, undefined, 2);\n        tempDoc.set('eventString', eventString);\n        const response3dsString = JSON.stringify(response3ds, undefined, 2);\n        tempDoc.set('response3dsString', response3dsString);\n      } catch (e) {\n        console.log(e);\n      }\n    })\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-abandoned/payments-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"grZXelXR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"response\\\",\\\"detail\\\",\\\"isTooltipVisible\\\",\\\"failed\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"transporterContactPhone\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"transporterContactPhone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"pod\\\",\\\"company\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/new-browser-tab-link\\\",null,[[\\\"link\\\"],[[28,\\\"concat\\\",[[24,[\\\"config\\\",\\\"APP\\\",\\\"shopUrl\\\"]],\\\"/\\\",[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"campaign\\\",\\\"url\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"campaign\\\",\\\"creator\\\",\\\"username\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"count\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"unsuccessful\\\"]]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"count\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"unsuccessful\\\"]]],null],false],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"error message\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"last 4 digits\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"unsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"dateTime\\\",[[23,8,[\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,8,[\\\"errDesc\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,8,[\\\"Last4digitPAN\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"isUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"isSuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\"],[\\\"view\\\",true,[28,\\\"perform\\\",[[23,0,[\\\"fetchGMODataTask\\\"]],[24,[\\\"tempDoc\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,6,[\\\"qty\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[23,6,[\\\"item\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,6,[\\\"price\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,6,[\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"paymentCreditCard\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"tempDoc\\\",\\\"request\\\",\\\"responses\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"response\\\",\\\"status\\\"]],\\\"1\\\"],null],\\\"success\\\",\\\"failed\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"trans_code: \\\"],[1,[23,5,[\\\"response\\\",\\\"trans_code\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"o/n: \\\"],[1,[23,5,[\\\"order_number\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[1,[23,5,[\\\"response\\\",\\\"err_code\\\"]],false],[0,\\\": \\\"],[1,[23,5,[\\\"response\\\",\\\"err_detail\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"tempDoc\\\",\\\"request\\\",\\\"event\\\",\\\"error\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"translate\\\",\\\"label\\\"],[true,false,\\\"response\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"pre\\\",true],[8],[0,\\\"            \\\"],[1,[24,[\\\"tempDoc\\\",\\\"requestString\\\"]],false],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"translate\\\",\\\"label\\\"],[true,false,\\\"event\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"pre\\\",true],[8],[0,\\\"            \\\"],[1,[24,[\\\"tempDoc\\\",\\\"eventString\\\"]],false],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"translate\\\",\\\"label\\\"],[true,false,\\\"payment notifications\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"pre\\\",true],[8],[0,\\\"            \\\"],[1,[24,[\\\"tempDoc\\\",\\\"response3dsString\\\"]],false],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"transactionCode\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"transactionCode\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"isSuccessful\\\"]],[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"isConfirmed\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[false,\\\"successful\\\",[24,[\\\"onMarkIsSuccessfulTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"onMarkIsSuccessfulTask\\\"]],[24,[\\\"transactionCode\\\"]],[24,[\\\"tempDoc\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"isUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"u-btn\\\",\\\"unsuccessful\\\",[24,[\\\"onMarkIsUnsuccessfulTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"onMarkIsUnsuccessfulTask\\\"]],[24,[\\\"tempDoc\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"isSuccessful\\\"]],[24,[\\\"tempDoc\\\",\\\"_data\\\",\\\"isConfirmed\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"u-btn\\\",\\\"confirm_ignore\\\",[24,[\\\"onMarkIsUnsuccessfulAndConfirmedTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"onMarkIsUnsuccessfulAndConfirmedTask\\\"]],[24,[\\\"tempDoc\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-abandoned/payments-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-abandoned/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ajXmnID7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tempDoc\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[\\\"search\\\",true,[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]],[24,[\\\"query\\\"]]],null],true]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\"],[true,true,[24,[\\\"resultsToggle\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"admin/payments/card/search-filters-abandoned\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"listByTask\\\",\\\"onListByDate\\\",\\\"resultsToggle\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"listByTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"listByDate\\\"],null],[24,[\\\"resultsToggle\\\"]],[24,[\\\"filters\\\",\\\"results\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[28,\\\"or\\\",[[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"admin/payments/card/panels-abandoned/payments-detail\\\",null,[[\\\"onMarkIsSuccessfulTask\\\",\\\"onMarkIsUnsuccessfulTask\\\",\\\"onMarkIsUnsuccessfulAndConfirmedTask\\\",\\\"tempDoc\\\"],[[24,[\\\"markIsSuccessfulTask\\\"]],[24,[\\\"markIsUnsuccessfulTask\\\"]],[24,[\\\"markIsUnsuccessfulAndConfirmedTask\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"filters\\\"]],[24,[\\\"filters\\\",\\\"results\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-abandoned/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-activity/component\", [\"exports\", \"client/config/environment\", \"client/mixins/crud\", \"client/mixins/payments-list-by\"], function (_exports, _environment, _crud, _paymentsListBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _paymentsListBy.default, {\n    adapterName: 'admin/payments/card',\n    filtersAdapterName: 'admin/payments/card/filters',\n    crud: Ember.inject.service(),\n    init() {\n      this.set('config', _environment.default);\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      this.listByTask.perform({\n        adapterName: 'admin/payments/card',\n        filters\n      });\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-activity/payments-detail/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-activity/payments-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"in5+LoMY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"detail\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"transporterContactPhone\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"transporterContactPhone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"pod\\\",\\\"company\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/new-browser-tab-link\\\",null,[[\\\"link\\\"],[[28,\\\"concat\\\",[[24,[\\\"config\\\",\\\"APP\\\",\\\"shopUrl\\\"]],\\\"/\\\",[24,[\\\"doc\\\",\\\"_data\\\",\\\"campaign\\\",\\\"url\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"campaign\\\",\\\"creator\\\",\\\"username\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"paymentCreditCardFee\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"label\\\"],[true,\\\"view\\\"]],{\\\"statements\\\":[[0,\\\"      \\\\n      \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"qty\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"item\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"price\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"doc\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-activity/payments-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PbGTQOQc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"doc\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[\\\"search\\\",true,[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]],[24,[\\\"query\\\"]]],null],true]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\"],[true,true,[24,[\\\"resultsToggle\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"admin/payments/card/search-filters-activity\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"listByTask\\\",\\\"onListByDate\\\",\\\"resultsToggle\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"listByTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"listByDate\\\"],null],[24,[\\\"resultsToggle\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[28,\\\"or\\\",[[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"admin/payments/card/panels-activity/payments-detail\\\",null,[[\\\"onMarkIsSuccessfulTask\\\",\\\"onMarkIsUnsuccessfulTask\\\",\\\"doc\\\"],[[24,[\\\"markIsSuccessfulTask\\\"]],[24,[\\\"markIsUnsuccessfulTask\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"filters\\\"]],[24,[\\\"filters\\\",\\\"results\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-checkout-logs/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 AdminPaymentsCardPanelsCheckoutLogsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _class = class AdminPaymentsCardPanelsCheckoutLogsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor3, this);\n      _initializerDefineProperty(this, \"filtersServerLogs\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", 'admin/payments/card/checkout-logs');\n      _defineProperty(this, \"adapterNameServerLogs\", 'admin/payments/card/server-logs');\n      _defineProperty(this, \"adapterNameServerLogsFilters\", 'admin/payments/card/server-logs/filters');\n      this.filters = this.search.setupFilters({\n        adapterName: 'admin/payments/card/checkout-logs/filters'\n      });\n      this.fetchCheckoutIdLogs.perform();\n      this.filtersServerLogs = this.search.setupFilters({\n        adapterName: this.adapterNameServerLogsFilters\n      });\n      this.fetchServerLogs.perform();\n    }\n    *fetchCheckoutIdLogs() {\n      return yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters\n      });\n    }\n    *fetchServerLogs() {\n      return yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterNameServerLogs,\n        filters: this.filtersServerLogs\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"filtersServerLogs\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchCheckoutIdLogs\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCheckoutIdLogs\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchServerLogs\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchServerLogs\"), _class.prototype), _class);\n});","define(\"client/pods/components/admin/payments/card/panels-checkout-logs/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 AdminPaymentsCardPanelsCheckoutLogsTableViewDetailRowComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class AdminPaymentsCardPanelsCheckoutLogsTableViewDetailRowComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showCartItems\", _descriptor, this);\n      _initializerDefineProperty(this, \"showSteps\", _descriptor2, this);\n    }\n    toggleCartItemsView() {\n      this.showCartItems = !this.showCartItems;\n    }\n    toggleStepsView() {\n      this.showSteps = !this.showSteps;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showCartItems\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showSteps\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleCartItemsView\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCartItemsView\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleStepsView\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleStepsView\"), _class.prototype), _class);\n});","define(\"client/pods/components/admin/payments/card/panels-checkout-logs/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jmtdsxcH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"step\\\",\\\"index\\\",\\\"isTooltipVisible\\\",\\\"cartItem\\\",\\\"@model\\\",\\\"@isDetailRow\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      PodKey\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\" ID\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      Random Hash\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"member\\\"],null],false],[0,\\\" ID\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"member email\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@hideOpenTabBtn\\\"],[false,[23,5,[\\\"_data\\\",\\\"timestampZ\\\"]],[23,5,[\\\"_data\\\",\\\"timestampZ\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"dateTime\\\",[[23,5,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,5,[\\\"_data\\\",\\\"podKey\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,5,[\\\"_data\\\",\\\"shopKey\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,5,[\\\"_data\\\",\\\"randomHash\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,5,[\\\"_data\\\",\\\"memberId\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,5,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,5,[\\\"_data\\\",\\\"telephone\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[23,5,[\\\"_data\\\",\\\"email\\\"]],false],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n       \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,5,[\\\"isSuccessful\\\"]],\\\"tag is-success\\\",\\\"tag is-danger\\\"],null]],[8],[0,\\\"\\\\n         \\\"],[1,[28,\\\"tt\\\",[[23,5,[\\\"status\\\"]]],null],false],[0,\\\"\\\\n       \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@badge\\\",\\\"@tooltipLabel\\\"],[\\\"fas fa-box\\\",[23,0,[\\\"toggleCartItemsView\\\"]],[23,5,[\\\"allQty\\\"]],\\\"campaign products\\\"]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[\\\"fas fa-tasks\\\",[23,0,[\\\"toggleStepsView\\\"]],\\\"task\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showCartItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,\\\"_key\\\",false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,\\\"_rev\\\",false],[0,\\\" \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"cartItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,4,[\\\"qty\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,4,[\\\"_key\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,4,[\\\"_rev\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"nav\\\",true],[10,\\\"class\\\",\\\"breadcrumb has-arrow-separator\\\"],[10,\\\"aria-label\\\",\\\"breadcrumbs\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"steps\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"totalStepsIndex\\\"]],[23,2,[]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"isSuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"is-active\\\"],[8],[7,\\\"a\\\",true],[10,\\\"href\\\",\\\"#\\\"],[10,\\\"aria-current\\\",\\\"page\\\"],[8],[1,[23,1,[\\\"name\\\"]],false],[9],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"is-active\\\"],[8],[7,\\\"a\\\",true],[10,\\\"href\\\",\\\"#\\\"],[10,\\\"aria-current\\\",\\\"page\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[23,1,[\\\"name\\\"]],false],[0,\\\"\\\\n                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[9],[0,\\\"\\\\n\\\\n                    \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-link--text\\\",false,[23,5,[\\\"prettyErrorStack\\\"]]]]],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                  \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"li\\\",true],[8],[7,\\\"a\\\",true],[8],[1,[23,1,[\\\"name\\\"]],false],[9],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1,2]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-checkout-logs/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-checkout-logs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Uy+17KPD\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"server logs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchCheckoutIdLogs\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"flex-container-column table-view__detail-row-style\\\",\\\"admin/payments/card/panels-server-logs/table-view/detail-row\\\",[23,0,[\\\"filtersServerLogs\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[22,\\\"onDisplay\\\"],[22,\\\"onEdit\\\"],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"filtersServerLogs\\\",\\\"results\\\"]],[22,\\\"onPaginationTask\\\"],[28,\\\"hash\\\",null,[[\\\"logType\\\"],[\\\"init\\\"]]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"flex-container-column table-view__detail-row-style\\\",\\\"admin/payments/card/panels-server-logs/table-view/detail-row\\\",[23,0,[\\\"filtersServerLogs\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[22,\\\"onDisplay\\\"],[22,\\\"onEdit\\\"],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"filtersServerLogs\\\",\\\"results\\\"]],[22,\\\"onPaginationTask\\\"],[28,\\\"hash\\\",null,[[\\\"logType\\\"],[\\\"sigint\\\"]]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"flex-container-column table-view__detail-row-style\\\",\\\"admin/payments/card/panels-server-logs/table-view/detail-row\\\",[23,0,[\\\"filtersServerLogs\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[22,\\\"onDisplay\\\"],[22,\\\"onEdit\\\"],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"filtersServerLogs\\\",\\\"results\\\"]],[22,\\\"onPaginationTask\\\"],[28,\\\"hash\\\",null,[[\\\"logType\\\"],[\\\"uncaughtException\\\"]]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"flex-container-column table-view__detail-row-style\\\",\\\"admin/payments/card/panels-server-logs/table-view/detail-row\\\",[23,0,[\\\"filtersServerLogs\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[22,\\\"onDisplay\\\"],[22,\\\"onEdit\\\"],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"filtersServerLogs\\\",\\\"results\\\"]],[22,\\\"onPaginationTask\\\"],[28,\\\"hash\\\",null,[[\\\"logType\\\"],[\\\"unhandledRejection\\\"]]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"checkoutId logs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchCheckoutIdLogs\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@maxlength\\\",\\\"@size\\\",\\\"@translatedPlaceholder\\\",\\\"@autofocus\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@isSearchBar\\\"],[100,100,\\\"Search by checkoutId\\\",true,[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\",\\\"resultsProperty\\\",\\\"component\\\",\\\"allowEmptyQuery\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[\\\"adapterName\\\"]],\\\"results\\\",[23,0,[]],true]]],[24,[\\\"query\\\"]]],null],true]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@onPaginationTask\\\"],[\\\"admin/payments/card/panels-checkout-logs/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[22,\\\"onDisplay\\\"],[22,\\\"onEdit\\\"],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[22,\\\"onPaginationTask\\\"]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-checkout-logs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-payments/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/date\", \"ember-concurrency\"], function (_exports, _crud, _date, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, {\n    dateService: Ember.inject.service('date'),\n    crud: Ember.inject.service(),\n    // adapterName: 'admin/payments/card',\n    filtersAdapterName: 'admin/payments/card/filters',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['periods/months', 'periods/years']);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      const nowZ = this.dateService.getMoment();\n      const monthNow = nowZ.month() + 1;\n      const yearNow = nowZ.year();\n      this.set('mm', monthNow);\n      this.set('yyyy', yearNow);\n      const period = this.getPeriod();\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      this.displayByMonth(period);\n    },\n    refreshTask: (0, _emberConcurrency.task)(function* () {\n      const period = this.period;\n      this.displayByMonth(period);\n    }),\n    displayByMonth(period) {\n      const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n      this.display({\n        dateStart,\n        dateEnd\n      });\n      this.set('mm', period.mm);\n      this.set('yyyy', period.yyyy);\n    },\n    display(period) {\n      // const { dateStart, dateEnd } = period\n\n      // this.set('period', period)\n      // this.set('dateStart', dateStart)\n      // this.set('dateEnd', dateEnd)\n\n      // this.get('listByTask').perform({ dateStart, dateEnd })\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'admin/payments/card/panels-payments/panels-statements',\n        period\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    actions: {\n      // dash () {\n      //   this.set('resultsToggle', false)\n\n      //   this.dash()\n      // },\n\n      display(model) {\n        this.display(model);\n      },\n      displayByMonth(period) {\n        this.displayByMonth(period);\n      }\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-payments/panels-statements/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/date\", \"ember-concurrency\"], function (_exports, _crud, _date, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, {\n    search: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    adapterName: 'admin/payments/card',\n    filtersAdapterName: 'admin/payments/card/filters',\n    didInsertElement() {\n      // fetch payments\n      this._super(...arguments);\n      const period = this.get('tab.period');\n      this.set('period', period);\n      const statementFilters = this.search.setupFilters({\n        adapterName: 'admin/payments/card/statements/filters'\n      });\n      this.set('statementFilters', statementFilters);\n      this.fetchStatementsTask.perform();\n    },\n    fetchStatementsTask: (0, _emberConcurrency.task)(function* () {\n      const appendPath = this.selectedProvider;\n      const period = this.period;\n      const statementFilters = this.statementFilters;\n      statementFilters.setData('dateStart', period.dateStart);\n      statementFilters.setData('dateEnd', period.dateEnd);\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'admin/payments/card/statements',\n        appendPath: `/${appendPath}`,\n        filters: statementFilters\n      });\n      this.set('statements', results);\n    }),\n    fetchStatementDetailsTask: (0, _emberConcurrency.task)(function* ({\n      statement,\n      filters\n    }) {\n      filters.setData('provider', this.selectedProvider);\n      const podKey = statement.getData('podKey');\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'admin/payments/card/statements/details',\n        appendPath: `/${podKey}`,\n        filters,\n        resultsProperty: ''\n      });\n      statement.set('details', results);\n    }),\n    paginateStatementDetailsTask: (0, _emberConcurrency.task)(function* ({\n      context,\n      filters\n    }) {\n      yield this.fetchStatementDetailsTask.perform({\n        statement: context,\n        filters\n      });\n    })\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-payments/panels-statements/statement-row/component\", [\"exports\", \"client/mixins/big\", \"client/mixins/crud\", \"client/mixins/date\", \"ember-concurrency\"], function (_exports, _big, _crud, _date, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_big.default, _crud.default, _date.default, {\n    tagName: 'tr',\n    adapterName: 'admin/payments/card',\n    filtersAdapterName: 'admin/payments/card/filters',\n    init() {\n      this._super(...arguments);\n      // const roundingCurrency = settingsModel.getData('roundingCurrency')\n      this.set('roundingCurrency', 0);\n      const period = this.period;\n      const statement = this.statement;\n      if (statement) {\n        const filters = this.search.setupFilters({\n          adapterName: this.filtersAdapterName,\n          defaultFiltersData: {\n            podKey: statement.podKey,\n            dateStart: period.dateStart,\n            dateEnd: period.dateEnd\n          }\n        });\n        this.set('filters', filters);\n      }\n    },\n    didReceiveAttrs() {\n      this._super(...arguments);\n      if (!this.isHeader) {\n        // fetch payments\n        const period = this.period;\n        const statement = this.statement;\n        this.fetchPaymentsTask.perform(period, statement);\n      }\n    },\n    fetchPaymentsTask: (0, _emberConcurrency.task)(function* (period, statement) {\n      // const payload = period\n      // payload.podKey = statement.podKey\n\n      // const response = yield this.server.call('GET', 'api/protected/admin/payments/card/payouts', payload)\n      // let results = response.data || []\n      // results = R.map(result => EmberObject.create(result), results)\n\n      // this.set('payouts', results)\n    }),\n    markAsPaidOutTask: (0, _emberConcurrency.task)(function* (statement, payoutAmount) {\n      // @TODO: Darwin, is this still used?\n      const period = this.period;\n      const ref = period.dateStart;\n      const dateZ = this.getNowZ();\n      const payload = {\n        podKey: statement.podKey,\n        accountKey: statement.podKey,\n        account: statement.company,\n        amount: payoutAmount,\n        ref: ref,\n        dateZ: dateZ\n      };\n      yield this.server.call('POST', 'api/protected/admin/payments/card/payout', payload);\n      yield this.fetchPaymentsTask.perform(period, statement);\n    }),\n    payoutsTotal: Ember.computed('payouts.[]', function () {\n      const payouts = this.payouts;\n      const roundingCurrency = this.roundingCurrency;\n      return this.sumPropAndAutoRound(roundingCurrency, 'amount', payouts);\n    }),\n    outstandingTotal: Ember.computed('statement.totalDue', 'payoutsTotal', function () {\n      const payoutsTotal = this.payoutsTotal;\n      const totalDueBig = this.newBig(this.get('statement.totalDue'));\n      const roundingCurrency = this.roundingCurrency;\n      return totalDueBig.minus(payoutsTotal).toFixed(roundingCurrency);\n    }),\n    hasOutstanding: Ember.computed('outstandingTotal', function () {\n      const outstandingTotal = this.newBig(this.outstandingTotal);\n      return outstandingTotal.gt(0);\n    })\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-payments/panels-statements/statement-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2FlwdoyB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeader\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"company\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total credit card amount\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"cc_refunded\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"subtotal\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"number of transactions\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-desc--bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"fees\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[1,[24,[\\\"statement\\\",\\\"_data\\\",\\\"company\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[24,[\\\"statement\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"refunded\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"dispatched\\\"]]],null],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"number\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"count\\\"]]],null],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-desc--bold\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"fees\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"onSubmit\\\",\\\"hasSectionWrapper\\\"],[\\\"view\\\",[28,\\\"perform\\\",[[23,0,[\\\"onFetchStatementDetailsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"statement\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"statement\\\"]]]]]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onFetchStatementDetailsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"admin/payments/card/payments-display\\\",null,[[\\\"statement\\\",\\\"payoutsTotal\\\",\\\"payouts\\\",\\\"outstandingTotal\\\"],[[24,[\\\"statement\\\"]],[24,[\\\"payoutsTotal\\\"]],[24,[\\\"payouts\\\"]],[24,[\\\"outstandingTotal\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"context\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"filters\\\"]],[24,[\\\"statement\\\"]],[24,[\\\"statement\\\",\\\"_data\\\",\\\"details\\\"]],[24,[\\\"onPaginateStatementDetailsTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-payments/panels-statements/statement-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-payments/panels-statements/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PrRmCvDO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"statement\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title u-header-1\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"period\\\",\\\"dateStart\\\"]],false],[0,\\\" ~ \\\"],[1,[24,[\\\"period\\\",\\\"dateEnd\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchStatementsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"statements\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"admin/payments/card/panels-payments/panels-statements/statement-row\\\",null,[[\\\"isHeader\\\"],[true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[28,\\\"admin/payments/card/panels-payments/panels-statements/statement-row\\\",null,[[\\\"index\\\",\\\"period\\\",\\\"filters\\\",\\\"onFetchStatementDetailsTask\\\",\\\"onPaginateStatementDetailsTask\\\",\\\"statement\\\"],[[23,2,[]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"fetchStatementDetailsTask\\\"]],[24,[\\\"paginateStatementDetailsTask\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-payments/panels-statements/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-payments/payout-btn/component\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    actions: {\n      setPayoutDetails() {\n        this.set('payoutAmount', this.outstandingTotal);\n        this.set('payoutDateZ', this.getStartOfDayZ());\n      }\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-payments/payout-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Wxz/mJb1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasOutstanding\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onFetchPaymentsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"label\\\",\\\"classNames\\\",\\\"onSubmit\\\"],[true,\\\"payout\\\",\\\"is-primary\\\",[28,\\\"action\\\",[[23,0,[]],\\\"setPayoutDetails\\\"],null]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"amount\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"isRunning\\\",\\\"value\\\"],[[24,[\\\"onMarkAsPaidOutTask\\\",\\\"isRunning\\\"]],[24,[\\\"payoutAmount\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[24,[\\\"onMarkAsPaidOut\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"onMarkAsPaidOut\\\"]],[24,[\\\"statement\\\"]],[24,[\\\"payoutAmount\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-payments/payout-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-payments/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"k/ZqIWgo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"period\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"or\\\",[[24,[\\\"fetchMonthTask\\\",\\\"isRunning\\\"]],[24,[\\\"fetchYearTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\",[28,\\\"hash\\\",null,[[\\\"mm\\\",\\\"yyyy\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\" \\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,2,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"selectedProvider\\\",\\\"period\\\",\\\"results\\\"],[[23,1,[]],[24,[\\\"selectedProvider\\\"]],[24,[\\\"period\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-payments/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-refunds/component\", [\"exports\", \"client/config/environment\", \"client/mixins/crud\", \"client/mixins/payments-list-by\", \"ember-concurrency\"], function (_exports, _environment, _crud, _paymentsListBy, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _paymentsListBy.default, {\n    adapterName: 'admin/payments/card',\n    filtersAdapterName: 'admin/payments/card/filters',\n    init() {\n      this.set('config', _environment.default);\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      filters.setData('provider', this.selectedProvider);\n      const refundRequested = this.get('constants.paymentCreditCardStatus.refundRequested');\n      this.listByTask.perform({\n        adapterName: 'admin/payments/card',\n        filters,\n        paymentCreditCardStatus: refundRequested\n      });\n    },\n    markIsRefundedTask: (0, _emberConcurrency.task)(function* (doc) {\n      const self = this;\n      const key = doc._data._key;\n      const payload = {\n        _rev: doc._data._rev\n      };\n      yield self.get('server').call('PUT', `api/protected/admin/payments/card/refunded/${key}`, payload);\n      doc.setData('paymentCreditCardStatus', this.get('constants.paymentCreditCardStatus.refunded'));\n    })\n\n    // markIsUnsuccessfulTask: task(function * (tempDoc) {\n    //   const self = this\n    //   const key = tempDoc._data._key\n\n    //   yield self.get('server').call('PUT', `api/protected/admin/payments/card/abandoned/unsuccessful/${key}`, {})\n\n    //   tempDoc.setData('isUnsuccessful', true)\n    //   tempDoc.setData('isSuccessful', false)\n    // })\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-refunds/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FjxNv7Fc\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[28,\\\"or\\\",[[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"admin/payments/card/payments-display/payments-details\\\",null,[[\\\"details\\\",\\\"onMarkIsRefundedTask\\\"],[[24,[\\\"filters\\\",\\\"results\\\"]],[24,[\\\"markIsRefundedTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"filters\\\"]],[24,[\\\"filters\\\",\\\"results\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-refunds/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/panels-server-logs/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class AdminPaymentsCardPanelsServerLogsTableViewDetailRowComponent extends _component.default {}\n  _exports.default = AdminPaymentsCardPanelsServerLogsTableViewDetailRowComponent;\n});","define(\"client/pods/components/admin/payments/card/panels-server-logs/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lbSJduIY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@tableViewOptions\\\",\\\"@isDetailRow\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"logType\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],[23,2,[\\\"logType\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag tag__margin-2\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@hideOpenTabBtn\\\"],[false,[23,1,[\\\"_data\\\",\\\"timestampZ\\\"]],[23,1,[\\\"_data\\\",\\\"timestampZ\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags has-addons tag__margin-2\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-dark\\\"],[8],[0,\\\"v\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-info\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"version\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags has-addons tag__margin-2\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-dark\\\"],[8],[0,\\\"IP\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-info\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"serverIp\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags has-addons tag__margin-2\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-dark\\\"],[8],[0,\\\"HOST\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-info\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"host\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags has-addons tag__margin-2\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-dark\\\"],[8],[0,\\\"ERROR\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"message\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags\\\"],[8],[9],[0,\\\"\\\\n\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/panels-server-logs/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/payments-display/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/admin/payments/card/payments-display/payments-details/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/admin/payments/card/payments-display/payments-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tHP+FDcJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"doc\\\",\\\"index\\\",\\\"onCloseDialogAction\\\",\\\"detail\\\",\\\"isTooltipVisible\\\",\\\"failed\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"details\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"company\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"last 4 digits\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"payment status\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"user\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"errors\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onMarkIsRefundedTask\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"pod\\\",\\\"company\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"transporterContactPhone\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"transporterContactPhone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"paymentCreditCard\\\",\\\"Last4digitPAN\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"paymentCreditCard\\\",\\\"Last4digitPAN\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"paymentCreditCardLastFourDigits\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"paymentCreditCardPaymentId\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"inclTotal\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/new-browser-tab-link\\\",null,[[\\\"link\\\"],[[28,\\\"concat\\\",[[24,[\\\"config\\\",\\\"APP\\\",\\\"shopUrl\\\"]],\\\"/\\\",[23,1,[\\\"_data\\\",\\\"campaign\\\",\\\"url\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"campaign\\\",\\\"creator\\\",\\\"username\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"count\\\",[[23,1,[\\\"_data\\\",\\\"unsuccessful\\\"]]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"count\\\",[[23,1,[\\\"_data\\\",\\\"unsuccessful\\\"]]],null],false],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"error message\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"last 4 digits\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"unsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"dateTime\\\",[[23,6,[\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[23,6,[\\\"errDesc\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[23,6,[\\\"Last4digitPAN\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n     \\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"hasSectionWrapper\\\"],[\\\"view\\\",true]],{\\\"statements\\\":[[0,\\\"          \\\\n          \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,4,[\\\"qty\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,4,[\\\"item\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,4,[\\\"price\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,4,[\\\"inclAmt\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"_data\\\",\\\"inclTotal\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onMarkIsRefundedTask\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]],[24,[\\\"constants\\\",\\\"paymentCreditCardStatus\\\",\\\"refunded\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[false,\\\"refund\\\",[24,[\\\"onMarkIsRefundedTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"onMarkIsRefundedTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/payments-display/payments-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/payments-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TP6898Jk\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"statement\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total credit card amount\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"undispatched\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"notYetDispatched\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"refunded\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"cc_refunded\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"refunded\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"subtotal\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"dispatched\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"fees\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"fees\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"amount due\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"totalDue\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"admin/payments/card/payments-display/payments-details\\\",null,[[\\\"details\\\",\\\"onMarkIsRefundedTask\\\"],[[24,[\\\"statement\\\",\\\"details\\\"]],[24,[\\\"onMarkIsRefundedTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/payments-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/search-filters-abandoned/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'admin/payments/cards',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['admin/payments/card/lists/filters/search', 'admin/payments/card/lists/filters/status', 'admin/payments/card/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/search-filters-abandoned/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nTfSZxbT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-payments-card-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"abandoned\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"abandoned\\\"],[[24,[\\\"filters\\\"]],true]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"successful\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"status\\\"],[[24,[\\\"filters\\\"]],\\\"isSuccessful\\\"]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"unsuccessful\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"status\\\"],[[24,[\\\"filters\\\"]],\\\"isUnsuccessful\\\"]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-payments-card-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-payments-card-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-payments-card-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.status\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/search-filters-abandoned/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/search-filters-activity/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'admin/payments/cards',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['admin/payments/card/lists/filters/search', 'admin/payments/card/lists/filters/status', 'admin/payments/card/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/search-filters-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nO6PZfny\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-payments-card-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-payments-card-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-payments-card-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-payments-card-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.status\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/search-filters-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/tab-container/component\", [\"exports\", \"client/mixins/payments-list-by\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _paymentsListBy, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _paymentsListBy.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    adapterName: 'admin/payments/card',\n    resultsToggle: false,\n    query: '',\n    init() {\n      this._super(...arguments);\n      this.set('results', []);\n      this.crud.addLists(this, ['admin/payments/card/lists/panels', 'payments/card/lists/providers']);\n      const provider = 'tapPay';\n      this.set('selectedProvider', provider);\n    },\n    reApplyVirtualAccountsTask: (0, _emberConcurrency.task)(function* () {\n      if (window.confirm('are you sure you want to re-apply virtual account web hook requests?')) {\n        yield this.server.call('POST', 'api/protected/admin/payments/card/virtual-accounts/webhooks/reapply', {});\n      }\n    }).drop(),\n    actions: {\n      displayPanel(resource) {\n        const tab = this.tab;\n        const subTabOptions = {\n          component: resource.getData('component')\n        };\n        this.tabsManager.replaceSubTab(tab, subTabOptions);\n      }\n    }\n  });\n});","define(\"client/pods/components/admin/payments/card/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vWkGnmhH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"value\\\"],[true,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-providers\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[24,[\\\"selectedProvider\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"re-apply atm payments\\\",[28,\\\"perform\\\",[[23,0,[\\\"reApplyVirtualAccountsTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"admin-payments-card\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-payments-card-lists-panels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"displayPanel\\\"],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"lists\\\",\\\"selectedProvider\\\",\\\"tab\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"lists\\\"]],[24,[\\\"selectedProvider\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/payments/card/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/admin/pods/search-results/component\", [\"exports\", \"client/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.set('config', _environment.default);\n    }\n  });\n});","define(\"client/pods/components/admin/pods/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"o8/haNOM\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"company\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"companyTel\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"podKey\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/admin/pods/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/alerts/confirm-msg/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    msg: 'confirm',\n    actions: {\n      confirmAction() {\n        const msg = this.intl.t(this.msg);\n        if (window.confirm(msg)) {\n          this.onConfirmed(...arguments);\n        } else {\n          if (this.onDeclined) {\n            this.onDeclined(...arguments);\n          }\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/alerts/confirm-msg/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CNCxLhMa\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1,[[28,\\\"action\\\",[[23,0,[]],\\\"confirmAction\\\"],null]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/alerts/confirm-msg/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/app-companies/modal/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, R, _emberConcurrencyDecorators) {\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;\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 AppCompaniesModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _class = class AppCompaniesModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"auth\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor7, this);\n      _initializerDefineProperty(this, \"pods\", _descriptor8, this);\n      _initializerDefineProperty(this, \"defaultPod\", _descriptor9, this);\n      const pods = this.auth.getUserProp('pods') || [];\n      const defaultPod = this.auth.getUserProp('pod') || [];\n      this.defaultPod = defaultPod;\n      Ember.set(this, 'auth.changeToPodKey', defaultPod);\n      this.pods = R.map(pod => {\n        return Ember.Object.create(pod);\n      })(pods);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"auth\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"pods\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"defaultPod\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/app-companies/modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CGFc4/SG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@onClose\\\",\\\"@hasModalDialogHeader\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@outerFormInitData\\\",\\\"@isAlreadyLoggedIn\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@fitContent\\\",\\\"@width\\\",\\\"@onClose\\\",\\\"@hasModalDialogHeader\\\"],[true,false,true,\\\"small\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"companies\\\",false,true,[28,\\\"if\\\",[[23,7,[]],[23,7,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"companies\\\",true,[23,6,[]],[23,5,[]],[23,4,[]]]]]],null],[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@isBasic\\\",\\\"@context\\\",\\\"@formInitData\\\"],[true,\\\"company_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"company\\\",[23,1,[]],\\\"company\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"app-companies/selector\\\",[],[[\\\"@hasFooter\\\",\\\"@isAlreadyLoggedIn\\\",\\\"@overlayClassNames\\\",\\\"@modalContainerClassNames\\\"],[true,[23,8,[]],\\\"list-dropdown-nested-global-overlay\\\",\\\"list-dropdown-nested-global-container\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,[[\\\"classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"logout\\\",[28,\\\"fn\\\",[[23,0,[\\\"auth\\\",\\\"logout\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"\\\",\\\"select\\\",[23,0,[\\\"auth\\\",\\\"selectCompanyToLoginTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"auth\\\",\\\"selectCompanyToLoginTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/app-companies/modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/app-companies/selector/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, R, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 AppCompaniesSelectorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember.inject.service, _dec9 = Ember.inject.service, _dec0 = Ember.inject.service, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember.computed('auth.changeToPodKey', 'defaultPod', 'company'), _dec13 = Ember._action, _dec14 = Ember._action, _class = class AppCompaniesSelectorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"auth\", _descriptor, this);\n      _initializerDefineProperty(this, \"users\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor7, this);\n      _initializerDefineProperty(this, \"search\", _descriptor8, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor9, this);\n      _initializerDefineProperty(this, \"server\", _descriptor0, this);\n      _initializerDefineProperty(this, \"pods\", _descriptor1, this);\n      _initializerDefineProperty(this, \"defaultPod\", _descriptor10, this);\n      _initializerDefineProperty(this, \"company\", _descriptor11, this);\n      this.setupPodsTask.perform();\n    }\n    get isBigOrdrOperatorloginToAllPods() {\n      return this.users.hasBigOrdrOperatorRights('loginToAllPods');\n    }\n    *setupPodsTask() {\n      const isBigOrdrOperatorloginToAllPods = this.users.hasBigOrdrOperatorRights('loginToAllPods');\n      let pods = [];\n      const tokenData = this.auth.getTokenData();\n      const defaultPod = tokenData?.pod || '';\n      if (isBigOrdrOperatorloginToAllPods) {\n        this._setupSearchPodsFilters();\n        pods = yield this.searchOperatorPodsTask.perform({\n          query: ''\n        });\n        this.company = tokenData?.company;\n      } else if (this.args.isAlreadyLoggedIn) {\n        pods = yield this.searchUserPodsTask.perform({\n          query: ''\n        });\n      } else {\n        pods = this.auth.getUserProp('pods') || [];\n      }\n      this.defaultPod = defaultPod;\n      Ember.set(this, 'auth.changeToPodKey', defaultPod);\n      this.pods = R.map(pod => {\n        return Ember.Object.create(pod);\n      })(pods);\n    }\n    _setupSearchPodsFilters() {\n      const filters = this.search.setupFilters({\n        adapterName: 'operator/pods/filters',\n        defaultFiltersData: {\n          match: ['all'],\n          sort: [{\n            by: 'timestampZ',\n            direction: 'DESC'\n          }]\n        }\n      });\n      this.filters = filters;\n    }\n    *searchOperatorPodsTask({\n      query = ''\n    }) {\n      const results = yield this.crud.searchInputTask.perform({\n        adapterName: 'operator/pods',\n        filters: this.filters,\n        allowEmptyQuery: true\n      }, query);\n      return results;\n    }\n    *searchUserPodsTask({\n      query = ''\n    }) {\n      const response = yield this.server.call('GET', 'api/protected/app/pods', {});\n      const results = response.data ?? [];\n      return results;\n    }\n    *selectPodTask(pod) {\n      Ember.set(this, 'auth.changeToPodKey', pod?._data?.podKey);\n    }\n    deselectPod() {\n      Ember.set(this, 'auth.changeToPodKey', null);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"auth\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"users\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"pods\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"defaultPod\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"company\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isBigOrdrOperatorloginToAllPods\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"isBigOrdrOperatorloginToAllPods\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupPodsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPodsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setupSearchPodsFilters\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"_setupSearchPodsFilters\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchOperatorPodsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchOperatorPodsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchUserPodsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchUserPodsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectPodTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"selectPodTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectPod\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectPod\"), _class.prototype), _class);\n});","define(\"client/pods/components/app-companies/selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"N+wcnSep\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@companyLogoUrl\\\",\\\"@overlayClassNames\\\",\\\"@modalContainerClassNames\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupPodsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isBigOrdrOperatorloginToAllPods\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"tagName\\\",\\\"inputPvtClassNames\\\",\\\"placeholder\\\",\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"selectedItemValueKey\\\",\\\"hasSelectedKey\\\",\\\"hasSelected\\\",\\\"hasSelectedIcon\\\",\\\"disabled\\\",\\\"readonly\\\",\\\"isRunning\\\",\\\"filters\\\",\\\"hasPagination\\\",\\\"onSearch\\\",\\\"onPaginationTask\\\",\\\"onSelect\\\",\\\"context\\\",\\\"onDeselect\\\"],[\\\"span\\\",\\\"\\\",\\\"search companies\\\",false,[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"_data.podKey\\\",\\\"_data.company\\\",[23,0,[\\\"company\\\"]],\\\"_data.company\\\",\\\"_data.podKey\\\",[23,0,[\\\"auth\\\",\\\"changeToPodKey\\\"]],\\\"fas fa-bookmark\\\",false,false,[23,0,[\\\"searchOperatorPodsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"filters\\\"]],true,[28,\\\"perform\\\",[[23,0,[\\\"searchOperatorPodsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,0,[\\\"company\\\"]]]]]],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"selectPodTask\\\"]]],null],\\\"auth.changeToPodKey\\\",[28,\\\"fn\\\",[[23,0,[\\\"deselectPod\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@imageUrl\\\",\\\"@imageHeight\\\",\\\"@imageWidth\\\",\\\"@imageTransform\\\",\\\"@imageSrcsetTransform\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@onSelect\\\",\\\"@overlayClassNames\\\",\\\"@modalContainerClassNames\\\"],[[23,1,[]],\\\"30px\\\",\\\"auto\\\",\\\"/-/scale_crop/60x60/center/-/format/webp/-/progressive/yes/\\\",\\\"/-/scale_crop/120x120/center/-/format/webp/-/progressive/yes/ 2x\\\",true,[23,0,[\\\"pods\\\"]],false,\\\"podKey\\\",\\\"company\\\",[23,0,[\\\"auth\\\",\\\"changeToPodKey\\\"]],[23,0,[\\\"auth\\\",\\\"selectCompanyToLoginTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"auth\\\",\\\"selectCompanyToLoginTask\\\"]]],null],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/app-companies/selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/app-container/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // the only purpose the app-container serves is to keep track of isLoggedIn state\n  var _default = _exports.default = Ember.Component.extend({\n    auth: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    classNames: ['u-full-height'],\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['languages']);\n    },\n    didReceiveAttrs() {\n      this._super(...arguments);\n      if (!this.auth.get('isLoggedIn')) {\n        this.auth.logout();\n      }\n    }\n  });\n});","define(\"client/pods/components/app-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ksC198Bw\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"auth\\\",\\\"isLoggedIn\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[22,\\\"app-logged-in\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/app-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/app-logged-in/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"client/config/environment\"], function (_exports, _emberConcurrency, R, RA, _environment) {\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, _obj;\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  // the only purpose the app-container serves is to keep track of isLoggedIn state\n  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    usersService: Ember.inject.service('users'),\n    auth: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    users: Ember.inject.service(),\n    search: Ember.inject.service(),\n    excel: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    socket: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    notificationsService: Ember.inject.service('notifications'),\n    updates: Ember.inject.service(),\n    token: '',\n    // token is only stored if its valid\n    classNames: ['u-full-height'],\n    isMaintenanceMode: false,\n    isBotVisible: false,\n    isNotificationsVisible: false,\n    tabHeaderContainerClassNames: '.tab-header-container',\n    hasFetchedSettings: false,\n    betaPromptIsVisible: false,\n    init() {\n      this._super(...arguments);\n      this.setupListsTask.perform();\n    },\n    setupListsTask: (0, _emberConcurrency.task)(function* () {\n      yield this.fetchSettingsTask.perform();\n      this.crud.addLists(this, ['application/lists/main', 'languages']);\n      const userKey = this.users.getUserKey();\n      const userMenuFilters = this.search.setupFilters({\n        adapterName: 'users/personal-menu/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'index',\n            direction: 'ASC'\n          }],\n          userKey,\n          menuId: 'application/lists/main'\n        }\n      });\n      this.set('userMenuFilters', userMenuFilters);\n      this.socket.connect();\n    }),\n    afterLoadLists() {\n      this.setupCustomMenuTask.perform();\n    },\n    setupCustomMenuTask: (0, _emberConcurrency.task)(function* () {\n      yield this.getCustomizedUserMenuTask.perform();\n      if (_environment.default.environment === 'production' || _environment.default.environment === 'staging') {\n        this.turnOffHelpEditor();\n      }\n      this.openHomeTab();\n    }),\n    allowedMenu: Ember.computed('crud.lists.application-lists-main.[]', 'userMenu.synced', 'settings.settingsModel.synced', 'settings.settingsModel._data.beta.billing', function () {\n      let allowed = this.crud.lists['application-lists-main'] || [];\n      allowed = R.filter(menu => {\n        return this.isSidebarMenuBetaAllowed(menu);\n      })(allowed);\n      const allPinned = R.pathOr([], ['userMenu', '_data', 'collection'])(this);\n      return this.applicationService.processMenu({\n        allowed,\n        allPinned\n      });\n    }),\n    /**\n     * Whether a main-sidebar menu row may show for the current pod beta flags.\n     * Billing Management is always gated on beta.billing === true (even if the\n     * API menu row omits the beta path).\n     * @param {Object} menu\n     * @returns {boolean}\n     */\n    isSidebarMenuBetaAllowed(menu) {\n      const label = menu?._data?.label;\n      const value = menu?._data?.value;\n      const isBillingManagement = value === 'billing' || label === 'billing management';\n      if (isBillingManagement) {\n        return this.settings.isBetaAllowed('beta.billing') === true;\n      }\n      const betaPath = menu?._data?.beta;\n      if (RA.isNilOrEmpty(betaPath)) {\n        return true;\n      }\n      return this.settings.isBetaAllowed(betaPath) === true;\n    },\n    getCustomizedUserMenuTask: (0, _emberConcurrency.task)(function* () {\n      const userMenu = yield this.crud.findTask.perform({\n        adapterName: 'users/personal-menu/collection',\n        filters: this.userMenuFilters\n      });\n      const allowedMenu = this.allowedMenu || [];\n      userMenu.set('allowedMenu', allowedMenu);\n      this.set('userMenu', userMenu);\n    }),\n    fetchSettingsTask: (0, _emberConcurrency.task)(function* () {\n      yield this.settings.setupTask.perform();\n      this.hasFetchedSettings = true;\n      this.openNewFeaturesPromptAfterLogin();\n    }),\n    /**\n     * Opens the try new features prompt when this pod offers it.\n     */\n    openNewFeaturesPromptAfterLogin() {\n      // This load is about to reload for the latest version. The next load checks again.\n      const reloadParam = new URLSearchParams(window.location.search).get('reload');\n      if (reloadParam === 'true') {\n        return;\n      }\n      if (this.applicationService.isBetaMode) {\n        return;\n      }\n      if (this.applicationService.hasBetaAvailable !== true) {\n        return;\n      }\n      this.set('betaPromptIsVisible', true);\n    },\n    total: 0,\n    successful: 0,\n    tries: 0,\n    // maintenanceTask: task(function * () {\n    // //   const model = this.settings.settingsModel\n    // //   console.log(model)\n    // // yield this.server.call('PATCH', 'api/protected/admin/payments/card/query-and-update/449343849733/BK1YKRON5DP0')\n    // //   // if (this.isMaintenanceMode) {\n    // //   //   // count = count || 1\n    // //   //   // console.log('===count: ' + count)\n    //   yield this.server.call('GET', 'api/protected/admin/notify-update').then(results => {\n    //       //     if (this?.isDestroyed === false) {\n    //       //       this.set('total', this.total + results.total)\n    //       //       this.set('tries', this.tries + results.tries)\n    //       //       this.set('successful', this.successful + results.successful)\n    //       //       if (results.hasMore === false) {\n    //       //         // console.log('DONE!!')\n    //       //       } else {\n    //       //         this.maintenanceTask.perform()\n    //       //       }\n    //       //     }\n    //   })\n    //   // }\n    // }),\n\n    hasMultiplePods: Ember.computed('podChanged', function () {\n      const pods = this.auth.getUserProp('pods') || [];\n      if (pods.length > 1) {\n        return true;\n      }\n      return false;\n    }),\n    companyStatusClassNames: Ember.computed('socket.isConnected', function () {\n      const isSocketConnected = this.socket.isConnected;\n      if (!isSocketConnected) {\n        return 'inactive';\n      }\n      return 'active';\n    }),\n    companyLogoUrl: Ember.computed('settings.settingsModel._data.company', function () {\n      return this.settings.settingsModel?._data?.defaultLogo || '';\n    }),\n    companyName: Ember.computed('settings.settingsModel._data.company', function () {\n      return this.settings.settingsModel?._data?.company || this.intl.t('logged out');\n    }),\n    companyNameShort: Ember.computed('companyName', 'applicationService.isMobile', 'socket.isConnected', function () {\n      let label = this.companyName;\n      let isConnected = this.socket.isConnected;\n      if (!label || !isConnected) {\n        return this.intl.t('logged out');\n      }\n      return label;\n    }),\n    loggedInAsLabel: Ember.computed('podChanged', 'companyName', function () {\n      return this.auth.getUserProp('username');\n    }),\n    // loggedInAsLabelShort: computed('loggedInAsLabel', 'applicationService.isMobile', function () {\n    //   let label = this.loggedInAsLabel\n    //   let limit = 15\n\n    //   if (this.applicationService.isMobile) {\n    //     limit = 8\n    //   }\n\n    //   if (label.length > limit) {\n    //     label = label.substring(0, limit - 3) + '...'\n    //   }\n\n    //   return label\n    // }),\n\n    getUserMenuLabelList() {\n      const userMenu = this.userMenu;\n      if (RA.isNilOrEmpty(userMenu)) {\n        return [];\n      }\n      const userMenuSub = userMenu.getData('sub');\n      return R.map(menu => {\n        const label = R.pathOr('', ['_data', 'label'])(menu);\n        return R.pathOr(label, ['_data', 'pinLabel'])(menu);\n      })(userMenuSub);\n    },\n    getPinnedUserMenu(menuLabel) {\n      const userMenu = this.userMenu;\n      const userMenuSub = userMenu.getData('sub');\n      let pinnedUserMenu = R.find(R.pathEq(['_data', 'pinLabel'], menuLabel))(userMenuSub);\n      if (RA.isNilOrEmpty(pinnedUserMenu)) {\n        pinnedUserMenu = R.find(R.pathEq(['_data', 'label'], menuLabel))(userMenuSub);\n      }\n      return pinnedUserMenu;\n    },\n    pinMenuTask: (0, _emberConcurrency.task)(function* (menu) {\n      const userMenu = this.userMenu || [];\n      const lastIndex = userMenu.length || 0;\n      const isPinned = menu.getData('isPinned');\n      if (isPinned) {\n        const toRemove = menu.get('pinnedItem') || menu;\n        yield this.crud.removeRecordTask.perform({\n          adapterName: 'users/personal-menu',\n          model: toRemove,\n          noConfirm: true\n        });\n\n        // yield this.updateMenuIndexTask.perform({ resetIndex: true })\n      } else {\n        const userKey = this.users.getUserKey();\n        menu.setData('userKey', userKey);\n        menu.setData('menuId', 'application/lists/main');\n        menu.setData('index', lastIndex);\n        yield this.crud.createRecordTask.perform({\n          adapterName: 'users/personal-menu',\n          model: menu\n        });\n      }\n    }),\n    _updateMenuIndexTask: (0, _emberConcurrency.task)(function* (menu) {\n      const dirty = this.crud.setupDirty({\n        adapterName: 'users/personal-menu',\n        model: menu\n      });\n      yield this.crud.updateRecordTask.perform({\n        adapterName: 'users/personal-menu',\n        model: dirty\n      });\n    }).enqueue(),\n    updateMenuIndexTask: (0, _emberConcurrency.task)(function* ({\n      resetIndex = false\n    }) {\n      if (resetIndex) {\n        yield this.getCustomizedUserMenuTask.perform();\n      }\n      const userMenu = this.userMenu;\n      let userMenuSub = userMenu.getData('sub');\n      const q = [];\n      if (resetIndex) {\n        userMenuSub = this.resetIndexInArrayOfObject({\n          array: userMenuSub,\n          indexPropName: 'index'\n        });\n      }\n      R.forEach(menu => {\n        q.push(this._updateMenuIndexTask.perform(menu));\n      })(userMenuSub);\n      yield (0, _emberConcurrency.all)(q);\n      yield this.getCustomizedUserMenuTask.perform();\n    }),\n    userNavInsertedTask: (0, _emberConcurrency.task)(function* (event) {\n      // const DEBOUNCE_MS = 500\n      // yield timeout(DEBOUNCE_MS)\n\n      // const userNav = event?.target\n      // const tabHeaderContainer = userNav?.querySelector?.(this.tabHeaderContainerClassNames)\n      // const inlineSize = window?.innerWidth\n\n      // if (!tabHeaderContainer || !inlineSize) {\n      //   return\n      // }\n\n      // const offsetLeft = tabHeaderContainer?.offsetLeft\n      // const maxTabHeaderWidth = inlineSize - offsetLeft\n\n      // tabHeaderContainer.style.maxWidth = '100%'\n    }).restartable(),\n    resetIndexInArrayOfObject({\n      array = [],\n      indexPropName = 'index'\n    }) {\n      const mapIndexed = R.addIndex(R.map);\n      return mapIndexed((obj, idx) => {\n        obj.setData(indexPropName, idx);\n        return obj;\n      })(array);\n    },\n    goToBeta() {\n      return this.auth.redirectToBetaTask.perform();\n    },\n    openBetaPrompt() {\n      this.set('betaPromptIsVisible', true);\n    },\n    closeBetaPrompt() {\n      this.set('betaPromptIsVisible', false);\n    },\n    openTab(tabOptions) {\n      // hide menu\n      this.toggleProperty('mainMenuActive');\n      const isExternalLink = tabOptions.getData('externalLink');\n      if (isExternalLink) {\n        window.open(tabOptions.getData('externalLink'), '_blank');\n        return;\n      }\n      this.tabsManager.openTab('left', tabOptions);\n    },\n    openHomeTab() {\n      const menuList = this.crud.lists['application-lists-main'];\n\n      // eg. 'contacts' or 'products' etc\n      // change this to open default tab. currently cannot handle nested menu items\n      // add nested item to favorites first if you need it to open automatically\n      let defaultTabLabels = [];\n      defaultTabLabels.push('home');\n      if (_environment.default.environment === 'development') {\n        defaultTabLabels = R.concat([\n        // 'cash book',\n        // 'workflows',\n        // 'contacts',\n        // 'sales-invoices',\n        // 'products',\n        // 'importHelper',\n        // 'campaigns',\n        // 'products',\n        // 'line pay',\n        // 'credit card',\n        // 'promo codes',\n        // 'websites',\n        // 'settings',\n        // 'home',\n        // 'customer service',\n        // 'flows',\n        'dispatch'\n        // 'debtors',\n        // 'creditors',\n        // 'shipping zones',\n        // 'tw_eInvoicing',\n        // 'rewards',\n        // 'settings',\n        // 'billing management',\n        // 'users',\n        // 'pos'\n        ])(defaultTabLabels);\n      }\n      const favorites = R.pathOr([], ['userMenu', '_data', 'collection'])(this);\n      if (RA.isNotNilOrEmpty(menuList) && defaultTabLabels) {\n        // const tabOptions = R.find(R.pathEq(['_data', 'label'], 'home'))(menuList)\n        let tabOptions = R.filter(menu => {\n          const menuLabel = menu?._data?.label;\n          return R.includes(menuLabel)(defaultTabLabels);\n        })(menuList);\n        let tabOptionsForFavorites = [];\n        tabOptionsForFavorites = R.filter(menu => {\n          const menuLabel = menu?._data?.label;\n          return R.includes(menuLabel)(defaultTabLabels);\n        })(favorites);\n        let allTabOptions = R.concat(tabOptions, tabOptionsForFavorites);\n        if (allTabOptions) {\n          R.pipe(R.uniqBy(R.path(['_data', 'component'])), R.forEach(tabOptions => {\n            this.tabsManager.openTab('left', tabOptions);\n          }))(allTabOptions);\n        }\n      }\n    },\n    turnOffHelpEditor() {\n      Ember.set(this, 'users.isDocumentationsEditorGlobal', false);\n    },\n    actions: {\n      openChatTab() {\n        this.toggleProperty('isMessagesVisible');\n        const tabOptions = {\n          resource: '/api/protected/messages',\n          component: 'messages/tab-container',\n          label: 'chat messages',\n          icon: 'fas fa-comments',\n          tabPosition: 'sidebarRight',\n          tabType: 'singleton'\n        };\n        this.tabsManager.openTab('sidebarRight', tabOptions);\n      },\n      logout() {\n        const reload = true;\n        this.auth.logout(reload);\n      },\n      setLanguage(item) {\n        this.auth.setLanguage(item.getData('value'));\n        window.location.reload();\n      },\n      onChangePod(onCloseDialogAction, loginData) {\n        this.set('podChanged', Math.random());\n      }\n    }\n\n    // exportTask: task(function * (onCloseDialogAction /* filter */) {\n    //   let data = invData\n\n    //   data = R.pipe(\n    //     R.reject(R.propEq('void', true)),\n    //     R.map(d => {\n    //       d.dispatchedDate = this.dateService.formatDate(d.dispatchDateZ, 'YYYY-MM-DD')\n    //       d.timestamp = this.dateService.formatDate(d.timestampZ, 'YYYY-MM-DD')\n\n    //       d.inclTotal = parseInt(d.inclTotal)\n\n    //       d.item = R.join(' | ')(d.item)\n\n    //       return R.omit([\n    //         'docNo',\n    //         'cancelledInvoiceNumber',\n    //         'dispatchDateZ',\n    //         'timestampZ',\n    //         'void',\n    //         'status',\n    //         'invoiceTotal'\n    //       ])(d)\n    //     }),\n    //     R.reject(R.equals(false))\n    //   )(data)\n\n    //   const columns = R.keys(data[0])\n\n    //   data = R.map(R.values)(data)\n    //   data.unshift(columns)\n\n    //   const worksheets = [{\n    //     sheetName: 'data',\n    //     data\n    //   }]\n\n    //   yield this.excel.exportFile({\n    //     worksheets,\n    //     title: '11DataexportFile'\n    //   })\n    // }).drop()\n  }, _applyDecoratedDescriptor(_obj, \"goToBeta\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"goToBeta\"), _obj), _applyDecoratedDescriptor(_obj, \"openBetaPrompt\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"openBetaPrompt\"), _obj), _applyDecoratedDescriptor(_obj, \"closeBetaPrompt\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"closeBetaPrompt\"), _obj), _applyDecoratedDescriptor(_obj, \"openTab\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"openTab\"), _obj), _applyDecoratedDescriptor(_obj, \"openHomeTab\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"openHomeTab\"), _obj), _applyDecoratedDescriptor(_obj, \"turnOffHelpEditor\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"turnOffHelpEditor\"), _obj), _obj));\n});","define(\"client/pods/components/app-logged-in/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"75RGGvE5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tab\\\",\\\"maintenance\\\",\\\"tab\\\",\\\"tab\\\",\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"setupListsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"setupCustomMenuTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"app-grid u-no-print \\\",[28,\\\"if\\\",[[23,0,[\\\"applicationService\\\",\\\"isMobile\\\"]],\\\"is-mobile\\\",\\\"is-desktop\\\"],null]]]],[3,\\\"on-resize\\\",[[28,\\\"perform\\\",[[23,0,[\\\"applicationService\\\",\\\"resizeTask\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__header\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__header-title\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"user-nav\\\"],[3,\\\"on-resize\\\",[[28,\\\"perform\\\",[[23,0,[\\\"userNavInsertedTask\\\"]]],null]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"user-nav__item\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"updates\\\",\\\"hasNewVersion\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"updates\\\",\\\"forceLogout\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"logout\\\",[28,\\\"action\\\",[[23,0,[]],\\\"logout\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"companyStatusClassNames\\\"]],\\\"active\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@labelClassNames\\\",\\\"@toggleIsOn\\\",\\\"@translate\\\"],[\\\"fas fa-bars\\\",\\\"main-menu-btn element-btn--border\\\",true,true,[29,[\\\"logged-in-company \\\",[23,0,[\\\"companyStatusClassNames\\\"]]]],[23,0,[\\\"mainMenuActive\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@labelClassNames\\\",\\\"@toggleIsOn\\\",\\\"@translate\\\"],[\\\"fas fa-bars\\\",\\\"element-btn--border\\\",true,true,[29,[\\\"logged-in-company \\\",[23,0,[\\\"companyStatusClassNames\\\"]]]],[23,0,[\\\"mainMenuActive\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"user-nav__item\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"notifications/bell-button\\\",[],[[\\\"@isNotificationsVisible\\\"],[[23,0,[\\\"isNotificationsVisible\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"socket\\\",\\\"isConnected\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasFetchedSettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"company-logo-container user-nav__item\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@btnClassNames\\\",\\\"@imageUrl\\\",\\\"@label\\\",\\\"@imageHeight\\\",\\\"@imageWidth\\\",\\\"@translate\\\",\\\"@imageTransform\\\",\\\"@imageSrcsetTransform\\\",\\\"@hasCustomModalDialog\\\"],[[28,\\\"if\\\",[[23,0,[\\\"companyLogoUrl\\\"]],\\\"element-image-btn\\\",\\\"\\\"],null],[23,0,[\\\"companyLogoUrl\\\"]],[28,\\\"if\\\",[[23,0,[\\\"companyLogoUrl\\\"]],\\\"\\\",[23,0,[\\\"companyNameShort\\\"]]],null],\\\"30px\\\",\\\"auto\\\",false,\\\"/-/scale_crop/60x60/center/-/format/webp/-/progressive/yes/\\\",\\\"/-/scale_crop/120x120/center/-/format/webp/-/progressive/yes/ 2x\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"app-companies/modal\\\",[],[[\\\"@onClose\\\",\\\"@hasModalDialogHeader\\\",\\\"@confirm\\\",\\\"@onChange\\\",\\\"@isAlreadyLoggedIn\\\"],[[23,5,[]],true,true,[28,\\\"action\\\",[[23,0,[]],\\\"onChangePod\\\"],null],true]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"updates\\\",\\\"forceLogout\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"user-nav__item\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"logout\\\",[28,\\\"action\\\",[[23,0,[]],\\\"logout\\\"],null]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"udpates\\\",\\\"forceLogout\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"tabsManager\\\",\\\"left\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"tabs/tab-header\\\",[],[[\\\"@tabs\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@label\\\",\\\"@showTooltip\\\"],[[23,0,[\\\"tabsManager\\\",\\\"left\\\"]],[23,4,[]],[23,4,[\\\"title\\\"]],[23,4,[\\\"label\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"layouts/left-bar\\\",null,[[\\\"isShowing\\\"],[[24,[\\\"mainMenuActive\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-nav\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"applicationService\\\",\\\"hasBetaAvailable\\\"]],[28,\\\"not\\\",[[23,0,[\\\"applicationService\\\",\\\"isBetaMode\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-tree__item app-nav__beta-prompt\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"try new features\\\",\\\"is-primary\\\",[28,\\\"action\\\",[[23,0,[]],\\\"openBetaPrompt\\\"],null]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"userMenu\\\",\\\"allowedUserMenu\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"menus/nav-tree\\\",null,[[\\\"list\\\",\\\"classNames\\\",\\\"isExpanded\\\",\\\"isPinnedMenu\\\",\\\"onPin\\\",\\\"onPinTask\\\",\\\"onUpdateMenuIndexTask\\\",\\\"onSelect\\\"],[[23,0,[\\\"userMenu\\\",\\\"allowedUserMenu\\\"]],\\\"app-nav\\\",true,true,[28,\\\"perform\\\",[[23,0,[\\\"pinMenuTask\\\"]]],null],[23,0,[\\\"pinMenuTask\\\"]],[23,0,[\\\"updateMenuIndexTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"openTab\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[28,\\\"menus/nav-tree\\\",null,[[\\\"list\\\",\\\"classNames\\\",\\\"isExpanded\\\",\\\"onPin\\\",\\\"onPinTask\\\",\\\"onUpdateMenuIndexTask\\\",\\\"onSelect\\\"],[[23,0,[\\\"allowedMenu\\\"]],\\\"app-nav\\\",true,[28,\\\"perform\\\",[[23,0,[\\\"pinMenuTask\\\"]]],null],[23,0,[\\\"pinMenuTask\\\"]],[23,0,[\\\"updateMenuIndexTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"openTab\\\"],null]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-tree__item u-margin-top-10\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@translate\\\"],[[28,\\\"if\\\",[[23,0,[\\\"socket\\\",\\\"isConnected\\\"]],\\\"is-primary\\\",\\\"is-danger\\\"],null],[23,0,[\\\"loggedInAsLabel\\\"]],false]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-tree__item u-margin-top-10\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"readonly\\\",\\\"confirm\\\",\\\"confirmMessage\\\",\\\"placeholder\\\",\\\"list\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,\\\"change language? will reload page\\\",\\\"current_lang\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"languages\\\"]],[24,[\\\"language\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setLanguage\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-tree__item u-margin-top-10\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"logout\\\",[28,\\\"action\\\",[[23,0,[]],\\\"logout\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isDocumentationsEditor\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-tree__item u-margin-top-10\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\"],[\\\"help editor\\\",[23,0,[\\\"users\\\",\\\"isDocumentationsEditorGlobal\\\"]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"v\\\"],[1,[24,[\\\"updates\\\",\\\"version\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"api: v\\\"],[1,[24,[\\\"socket\\\",\\\"apiVersion\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"updates\\\",\\\"forceLogout\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\"],[[22,\\\"modalDialogIsVisible\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"modalDialogIsVisible\\\"]]],null]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"logout\\\",[28,\\\"action\\\",[[23,0,[]],\\\"logout\\\"],null]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tabsManager\\\",\\\"left\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\",\\\"@isParent\\\"],[[24,[\\\"tabsManager\\\",\\\"left\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"component\\\",[[23,3,[\\\"component\\\"]]],[[\\\"tabs\\\",\\\"tab\\\"],[[24,[\\\"tabsManager\\\",\\\"left\\\"]],[23,3,[]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[28,\\\"user/get\\\",[\\\"username\\\"],null],\\\"SHOPEETEST\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"section\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"style\\\",\\\"background-color:whitesmoke;padding:20px;\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"h3\\\",true],[10,\\\"style\\\",\\\"margin-bottom:5px;\\\"],[8],[0,\\\"【Shop.com 美安】\\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"➤ 串接目的與方法\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\" 1. 客戶希望藉由 Shop.com 導入其他客戶  \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\" 2. 在官網或商店網址後所帶入的參數 RID 和 Click_ID 會由 Shop.com 方檢查是否來源於他們  \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\" 3. 在【設定>第三方平台】或 【商店>活動>第三方平台】中可設定客戶向 Shop.com 取得的參數 \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"  (Advertiser_ID 和 Offer_ID 以及約定的佣金比例)  \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\" 4. 下單時系統會向 Shop.com 發出 Request，成功將會紀錄該次訂單的佣金 \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"➤ 串接檢查\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\" 1. 在主選單中，選擇【銷貨>出貨單】  \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\" 2. 在【銷貨>出貨單】 中，選擇有美安的單號(#137) \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"img\\\",true],[10,\\\"src\\\",\\\"https://ucarecdn.com/9c6b0183-598c-4c27-8107-0c674a4eac40/-/resize/1024x/\\\"],[10,\\\"alt\\\",\\\"\\\"],[8],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"p\\\",true],[8],[0,\\\" 3. 在【通路】 欄位會看到記錄在訂單上的美安相關資訊以及抽成 \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"img\\\",true],[10,\\\"src\\\",\\\"https://ucarecdn.com/6a0ed197-c160-4bca-8853-8ad465d2b560/-/resize/1024x/\\\"],[10,\\\"alt\\\",\\\"\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[28,\\\"pod/get\\\",[\\\"maintenances\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"section\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"html-safe\\\",[[23,2,[\\\"message\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[8],[0,\\\"notifyStartDateZ (local): \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"notifyStartDateZ\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[8],[0,\\\"startDateTimeZ (local): \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"startDateTimeZ\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[8],[0,\\\"endDateTimeZ (local): \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"endDateTimeZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__sidebar-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"layouts/right-bar\\\",null,[[\\\"isShowing\\\",\\\"hasModalOverlay\\\"],[[24,[\\\"isNotificationsVisible\\\"]],true]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"notifications/container\\\",[],[[\\\"@notificationsManager\\\"],[[23,0,[\\\"notificationsService\\\",\\\"notificationsManager\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"beta.botBuilder\\\"],null]],null,{\\\"statements\\\":[[4,\\\"layouts/right-bar\\\",null,[[\\\"isShowing\\\"],[[24,[\\\"isMessagesVisible\\\"]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[22,\\\"bot/message-window\\\"],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tabsManager\\\",\\\"sidebarRight\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabs\\\",\\\"tab\\\"],[[24,[\\\"tabsManager\\\",\\\"sidebarRight\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"guides/player\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"users\\\",\\\"isDocumentationsEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"guides/setup-helper\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"id\\\",\\\"print-container\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"id\\\",\\\"podKey\\\"],[10,\\\"class\\\",\\\"u-hidden\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"betaPromptIsVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@closeOnOverlayClick\\\",\\\"@fitContent\\\",\\\"@width\\\"],[true,[28,\\\"action\\\",[[23,0,[]],\\\"closeBetaPrompt\\\"],null],\\\"try new features\\\",true,true,true,\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"app-nav__beta-prompt-message beta-message\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"applicationService\\\",\\\"betaMessage\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[\\\"@hideFooterSpacer\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"stay on old\\\",\\\"stay on old\\\",[28,\\\"action\\\",[[23,0,[]],\\\"closeBetaPrompt\\\"],null]]]],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"try new\\\",\\\"is-primary\\\",[23,0,[\\\"auth\\\",\\\"redirectToBetaTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"auth\\\",\\\"redirectToBetaTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"goToBeta\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/app-logged-in/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/apps/tab-container/component\", [\"exports\", \"@glimmer/component\", \"client/config/environment\"], function (_exports, _component, _environment) {\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;\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 AppsTabContainerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._action, _class = class AppsTabContainerComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"storage\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _defineProperty(this, \"iframeId\", `iframe-${Math.random()}`);\n    }\n    didInsert() {\n      const iframe = document.getElementById(this.iframeId);\n      const iframeOrigin = this.src;\n\n      // Or send immediately after iframe loads\n      const token = this.storage.get('token');\n      const data = {\n        token,\n        apiBaseUrl: _environment.default.APP.serverJobsUrl,\n        apiJobsBaseUrl: _environment.default.APP.serverUrl,\n        language: this.intl.get('locale')[0]\n      };\n      iframe.addEventListener('load', () => {\n        iframe.contentWindow.postMessage({\n          type: 'bigordr-data',\n          data\n        }, iframeOrigin);\n      });\n      iframe.src = this.src;\n    }\n    get src() {\n      if (_environment.default.environment === 'development') {\n        return 'http://localhost:3000';\n      }\n      const random = Math.random();\n      return `${this.args.tab.value}?random=${random}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"storage\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class);\n});","define(\"client/pods/components/apps/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0g8km39O\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,1,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchDefaultDataTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"iframe\\\",false],[12,\\\"id\\\",[23,0,[\\\"iframeId\\\"]]],[12,\\\"src\\\",[23,0,[\\\"src\\\"]]],[12,\\\"title\\\",[23,1,[\\\"label\\\"]]],[12,\\\"class\\\",\\\"u-height-100vh u-full-width\\\"],[12,\\\"sandbox\\\",\\\"allow-scripts allow-same-origin\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsert\\\"]]]],[8],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/apps/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/barcode/generator/component\", [\"exports\", \"@glimmer/component\", \"jsbarcode\", \"ramda\"], function (_exports, _component, _jsbarcode, R) {\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;\n  /* global JsBarcode */\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 BarcodeGeneratorComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class BarcodeGeneratorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"barcodeDomElement\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasBarcodeError\", _descriptor2, this);\n      _defineProperty(this, \"svgId\", `barcode-svg-${Ember.guidFor(this)}`);\n    }\n    get label() {\n      const label = this.args.label;\n      if (!label) {\n        return '';\n      }\n      const labelLength = this.args.labelLength || 0;\n      if (labelLength >= 1) {\n        return label.slice(0, labelLength);\n      }\n      return label;\n    }\n    setBarcode(value, format) {\n      try {\n        const svgElement = document.querySelector(`#${this.svgId}`);\n        this.barcodeDomElement = document.createElement('img');\n        const barcodeValue = this.cropString(value, format);\n        const options = {\n          format,\n          margin: 0,\n          height: 70,\n          width: 2,\n          // fontSize: 18,\n          textMargin: 0\n          // flat: true\n        };\n        (0, _jsbarcode.default)(svgElement, barcodeValue, options);\n      } catch (error) {\n        this.hasBarcodeError = true;\n      }\n    }\n    cropString(str = '', format) {\n      // Max Length\n      const upc = 12;\n      const ean8 = 7;\n      const ean5 = 5;\n      const ean2 = 2;\n      switch (format) {\n        case 'UPC':\n          return R.take(upc)(str);\n        case 'EAN8':\n          return R.take(ean8)(str);\n        case 'EAN5':\n          return R.take(ean5)(str);\n        case 'EAN2':\n          return R.take(ean2)(str);\n        default:\n          return str;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"barcodeDomElement\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasBarcodeError\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setBarcode\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setBarcode\"), _class.prototype), _class);\n});","define(\"client/pods/components/barcode/generator/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gljxMR6b\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@format\\\",\\\"@value\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[]],[23,1,[]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-page-break u-full-width u-margin-5\\\"],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setBarcode\\\"]],[23,2,[]],[23,1,[]]],null]]],[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setBarcode\\\"]],[23,2,[]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[8],[1,[23,0,[\\\"label\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"svg\\\",true],[11,\\\"id\\\",[29,[[23,0,[\\\"svgId\\\"]]]]],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasBarcodeError\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc has-text-danger\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"barcode_generator_error\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/barcode/generator/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/barcode/modal/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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  /* global JsBarcode */\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 BarcodeGeneratorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _class = class BarcodeGeneratorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"barcodeCanvas\", _descriptor2, this);\n      _defineProperty(this, \"labelLengthDefault\", 15);\n      this.crud.addLists(this, ['barcodes']);\n    }\n    get badgeCount() {\n      const models = this.args.models || [];\n      const modelsWithBarcode = R.pipe(R.filter(R.allPass([R.pipe(R.pathOr('', ['_data', 'barcode']), RA.isNotNilOrEmpty), R.pipe(R.pathOr('', ['_data', 'barcodeType']), RA.isNotNilOrEmpty)])), R.length)(models);\n      return modelsWithBarcode || '';\n    }\n    get barcodeItemLabel() {\n      return '';\n      const modelData = this.args?.model?._data || {};\n      const name = R.pipe(R.pathOr('', ['name']), R.take(4))(modelData);\n      const price = R.pathOr('0', ['price'])(modelData);\n      return `${name} - NT ${price}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"barcodeCanvas\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/barcode/modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UJ72X+0J\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"model\\\",\\\"model\\\",\\\"onCloseDialogAction\\\",\\\"model\\\",\\\"@models\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@readonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[4,\\\"elements/print-btn\\\",null,[[\\\"icon\\\",\\\"showCancelBtn\\\"],[\\\"fas fa-barcode\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"barcode/generator\\\",[],[[\\\"@labelLength\\\",\\\"@label\\\",\\\"@value\\\",\\\"@format\\\"],[[23,0,[\\\"labelLengthDefault\\\"]],[23,8,[\\\"_data\\\",\\\"name\\\"]],[23,8,[\\\"_data\\\",\\\"barcode\\\"]],[23,8,[\\\"_data\\\",\\\"barcodeType\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,7,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,6,[\\\"_data\\\",\\\"barcode\\\"]],[23,6,[\\\"_data\\\",\\\"barcodeType\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"barcode/generator\\\",[],[[\\\"@labelLength\\\",\\\"@label\\\",\\\"@value\\\",\\\"@format\\\"],[[23,0,[\\\"labelLengthDefault\\\"]],[23,6,[\\\"_data\\\",\\\"name\\\"]],[23,6,[\\\"_data\\\",\\\"barcode\\\"]],[23,6,[\\\"_data\\\",\\\"barcodeType\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[6]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@hasSectionWrapper\\\",\\\"@modalDialogTitle\\\",\\\"@modalSize\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@closeOnOverlayClick\\\"],[\\\"fas fa-barcode\\\",true,\\\"barcode\\\",\\\"small\\\",\\\"barcode\\\",false,[28,\\\"not\\\",[[23,8,[\\\"_data\\\",\\\"barcode\\\"]]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"barcode\\\",\\\"products\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"barcode\\\"],null],\\\" (\\\",[23,8,[\\\"_data\\\",\\\"barcodeType\\\"]],\\\")\\\"],null],false,[23,8,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,10,[]],[23,8,[\\\"_data\\\",\\\"barcode\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@rowClassNames\\\"],[\\\"\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"barcode/generator\\\",[],[[\\\"@labelLength\\\",\\\"@label\\\",\\\"@value\\\",\\\"@format\\\"],[[23,0,[\\\"labelLengthDefault\\\"]],[23,8,[\\\"_data\\\",\\\"name\\\"]],[23,8,[\\\"_data\\\",\\\"barcode\\\"]],[23,8,[\\\"_data\\\",\\\"barcodeType\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,7,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"_data\\\",\\\"barcode\\\"]],[23,4,[\\\"_data\\\",\\\"barcodeType\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@rowClassNames\\\"],[\\\"\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"barcode/generator\\\",[],[[\\\"@labelLength\\\",\\\"@label\\\",\\\"@value\\\",\\\"@format\\\"],[[23,0,[\\\"labelLengthDefault\\\"]],[23,4,[\\\"_data\\\",\\\"name\\\"]],[23,4,[\\\"_data\\\",\\\"barcode\\\"]],[23,4,[\\\"_data\\\",\\\"barcodeType\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"showCancelBtn\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"barcode/generator\\\",[],[[\\\"@labelLength\\\",\\\"@label\\\",\\\"@value\\\",\\\"@format\\\"],[[23,0,[\\\"labelLengthDefault\\\"]],[23,8,[\\\"_data\\\",\\\"name\\\"]],[23,8,[\\\"_data\\\",\\\"barcode\\\"]],[23,8,[\\\"_data\\\",\\\"barcodeType\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,7,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"barcode\\\"]],[23,3,[\\\"_data\\\",\\\"barcodeType\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"barcode/generator\\\",[],[[\\\"@labelLength\\\",\\\"@label\\\",\\\"@value\\\",\\\"@format\\\"],[[23,0,[\\\"labelLengthDefault\\\"]],[23,3,[\\\"_data\\\",\\\"name\\\"]],[23,3,[\\\"_data\\\",\\\"barcode\\\"]],[23,3,[\\\"_data\\\",\\\"barcodeType\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tw-invoices__page-break u-no-print\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/barcode/modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/barcode/print-modal/component\", [\"exports\", \"@glimmer/component\", \"jsbarcode\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _jsbarcode, R, RA) {\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, _dec0, _dec1, _dec10, _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 BarcodePrintModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class BarcodePrintModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showModal\", _descriptor3, this);\n      _initializerDefineProperty(this, \"selectedBarcodeType\", _descriptor4, this);\n      _initializerDefineProperty(this, \"iframeElement\", _descriptor5, this);\n      _defineProperty(this, \"iframeId\", `iframe-${Ember.guidFor(this)}`);\n      this.selectedBarcodeType = this.args.selectedBarcodeType || 'EAN13';\n      this.crud.addLists(this, ['barcodes']);\n    }\n    selectBarcodeType(onCloseDialogAction, selected) {\n      this.selectedBarcodeType = selected?._data?.value;\n      this.showModal = true;\n    }\n    get iframeElement() {\n      return document.querySelector(`#${this.iframeId}`);\n    }\n    get allBarcodeModels() {\n      const models = RA.ensureArray(this.args.model) || [];\n      const synced = R.map(R.prop('synced'))(models);\n      const modelsWithBarcode = R.pipe(R.map(model => {\n        const barcodes = model?._data?.barcodes || [];\n        return R.map(barcodeModel => {\n          if (barcodeModel?._data?.barcode && barcodeModel?._data?.barcodeType) {\n            barcodeModel._data._key = model?._data?._key;\n            barcodeModel._data.name = model?._data?.name;\n            barcodeModel._data.code = model?._data?.code;\n            return barcodeModel;\n          }\n        })(barcodes);\n      }), R.flatten, R.reject(RA.isNilOrEmpty))(models);\n      return modelsWithBarcode || '';\n    }\n    get allBarcodeModelsCount() {\n      const synced = this.synced;\n      const models = this.allBarcodeModels || [];\n      return models?.length || 0;\n    }\n    get barcodeModelsForType() {\n      const models = this.allBarcodeModels || [];\n      const selectedBarcodeType = this.selectedBarcodeType;\n      const modelsWithBarcode = R.filter(barcodeModel => {\n        if (barcodeModel?._data?.barcodeType !== selectedBarcodeType) {\n          return false;\n        }\n        return true;\n      })(models);\n      return modelsWithBarcode || '';\n    }\n    get barcodesWithCount() {\n      const selectedBarcodeModels = this.allBarcodeModels || [];\n      const groupedByTypes = R.groupBy(R.path(['_data', 'barcodeType']))(selectedBarcodeModels);\n      const barcodesList = this.crud.lists.barcodes || [];\n      if (RA.isNilOrEmpty(barcodesList)) {\n        return [];\n      }\n\n      // recreate the list so that count can be added\n      const barcodesListCopy = R.pipe(R.map(barcodeModel => {\n        const barcodeModelCopy = this.dataManager.copyRecord('barcodes', barcodeModel);\n        const barcodeType = barcodeModelCopy?._data?.value;\n        const barcodeModelsForType = groupedByTypes[barcodeType];\n        const barcodeModelsForTypeCount = barcodeModelsForType?.length || 0;\n        if (!barcodeModelsForTypeCount) {\n          return;\n        }\n        barcodeModelCopy.setData('count', barcodeModelsForTypeCount);\n        return barcodeModelCopy;\n      }), R.reject(RA.isNilOrEmpty))(barcodesList);\n      return barcodesListCopy;\n    }\n    setupIframe(iframeElement) {\n      const barcodeHtml = this.generateBarcodeHtml();\n      this.iframeElement = iframeElement;\n      const html = this._getHtmlDefaults(barcodeHtml);\n      iframeElement.src = this._parseHtmlAsSrc(html);\n      iframeElement.srcdoc = html;\n    }\n    resetIframe() {\n      this.setupIframe(this.iframeElement);\n    }\n    _getHtmlDefaults(content) {\n      return `<html>\n      <head>\n        <style>\n          html, body {\n            margin: 0;\n            page-break-after: avoid;\n            page-break-before: avoid;\n          }\n\n          .p-label {\n            margin: 0;\n            font-size: 9pt;\n            text-align: center;\n            max-width: 98%;\n            overflow: hidden;\n            white-space: nowrap;\n            text-overflow:ellipsis;\n          }\n\n          .svg-barcode {\n            padding: 0;\n            margin: 0;\n            width: 100%;\n            max-width: 98%;\n            height: auto;\n          }\n            \n          .barcode-wrapper {\n            page-break-inside: avoid; /* Prevents breaking the wrapper across pages */\n            height: 100%;\n            width: 100%;\n            max-height: 100%;\n            max-width: 100%;\n            page-break-after: always;\n          }\n        </style>\n      </head>\n      <body>${content}</body>\n    </html>`;\n    }\n    _parseHtmlAsSrc(html) {\n      return `data:text/html;charset=utf-8,${encodeURI(html)}`;\n    }\n    generateBarcodeHtml() {\n      const models = RA.ensureArray(this.barcodeModelsForType) || [];\n      const html = models.map(model => {\n        const label = R.pathOr('', ['_data', 'name'])(model);\n        const value = model?._data?.barcode;\n        const format = model?._data?.barcodeType;\n        if (!value || !format) {\n          return '';\n        }\n        const options = {\n          format,\n          // margin: 0,\n          height: 50\n          // width: 2,\n          // fontSize: 18,\n          // textMargin: 0,\n          // flat: true\n        };\n        const div = document.createElement('div');\n        div.classList.add('barcode-wrapper');\n        const p = document.createElement('p');\n        p.classList.add('p-label');\n        p.textContent = label;\n        const svg = document.createElement('svg');\n        svg.classList.add('svg-barcode');\n        (0, _jsbarcode.default)(svg, value, options);\n        div.appendChild(p);\n        div.appendChild(svg);\n        return div.outerHTML;\n      });\n      return html.join('\\n');\n    }\n    printIFrameContent() {\n      const iframeElement = this.iframeElement;\n      iframeElement.contentWindow.focus();\n      iframeElement.contentWindow.print();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showModal\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"selectedBarcodeType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'EAN13';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"iframeElement\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectBarcodeType\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"selectBarcodeType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupIframe\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"setupIframe\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetIframe\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"resetIframe\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getHtmlDefaults\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"_getHtmlDefaults\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_parseHtmlAsSrc\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"_parseHtmlAsSrc\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"generateBarcodeHtml\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"generateBarcodeHtml\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"printIFrameContent\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"printIFrameContent\"), _class.prototype), _class);\n});","define(\"client/pods/components/barcode/print-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NYSbhE02\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@hasBadge\\\",\\\"@badge\\\",\\\"@icon\\\"],[[28,\\\"if\\\",[[23,0,[\\\"allBarcodeModelsCount\\\"]],false,true],null],[28,\\\"if\\\",[[23,0,[\\\"allBarcodeModelsCount\\\"]],true,false],null],[28,\\\"number\\\",[[23,0,[\\\"allBarcodeModelsCount\\\"]]],null],\\\"fas fa-barcode\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@badgePath\\\",\\\"@hasBadge\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\"],[\\\"_data.count\\\",true,[23,0,[\\\"barcodesWithCount\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectBarcodeType\\\"]],[23,2,[]]],null],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\"],[[23,0,[\\\"showModal\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"showModal\\\"]]],null]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"iframe\\\",false],[12,\\\"id\\\",[29,[[23,0,[\\\"iframeId\\\"]]]]],[12,\\\"class\\\",\\\"u-height-100vh\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"setupIframe\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemBadgePath\\\",\\\"@itemHasBadge\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"barcodesWithCount\\\"]],\\\"_data.count\\\",true,\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"selectedBarcodeType\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetIframe\\\"]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-print\\\",\\\"print\\\",[23,0,[\\\"printIFrameContent\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/barcode/print-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/billing-details-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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  const ADAPTER_NAME = 'settings';\n  const BILLING_DETAILS_DATA_PATHS = ['bigOrdrBillingCompanyName', 'bigOrdrBillingEmail', 'bigOrdrBillingTelephone'];\n  let BillingBillingDetailsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class BillingBillingDetailsEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor3, this);\n    }\n    /**\n     * Rebuilds the dirty settings model every time the modal dialog opens, so cancelling\n     * leaves the cached settings model untouched.\n     * @return {void}\n     */\n    setupDirty() {\n      this.dirty = this.crud.setupDirty({\n        adapterName: ADAPTER_NAME,\n        model: this.args.model\n      });\n    }\n\n    /**\n     * Partially save billing company name, email, and telephone on pod settings, then close the modal.\n     * @param {Function} onCloseDialogAction - closes the billing-details modal dialog\n     * @return {Generator} ember-concurrency task iterator\n     */\n    *saveTask(onCloseDialogAction) {\n      yield this.settings.updatePartiallyTask.perform(this.dirty, BILLING_DETAILS_DATA_PATHS);\n      this.dirty = null;\n      onCloseDialogAction();\n    }\n\n    /**\n     * Discard dirty billing-details edits and close the modal.\n     * @param {Function} onCloseDialogAction - closes the billing-details modal dialog\n     * @return {void}\n     */\n    cancel(onCloseDialogAction) {\n      this.crud.cancelEditing({\n        adapterName: ADAPTER_NAME,\n        dirty: this.dirty\n      });\n      this.dirty = null;\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/billing/billing-details-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tj+47x/C\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[[23,4,[]],\\\"fas fa-pencil-alt\\\",true,\\\"manage billing details\\\",[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],\\\"edit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setupDirty\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,2,[]],\\\"billing_details_fields\\\",[23,3,[]],\\\"billing_details\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"bigOrdrBillingCompanyName\\\",[23,3,[]],\\\"billing_company_name\\\",[23,0,[\\\"dirty\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrBillingCompanyName\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"bigOrdrBillingEmail\\\",[23,3,[]],\\\"billing_email\\\",[23,0,[\\\"dirty\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrBillingEmail\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"bigOrdrBillingTelephone\\\",[23,3,[]],\\\"billing_telephone\\\",[23,0,[\\\"dirty\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrBillingTelephone\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/billing-details-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/contact-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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  const ADAPTER_NAME = 'settings';\n  const BILLING_CONTACT_DATA_PATHS = ['bigOrdrBillingCompanyName', 'bigOrdrBillingEmail', 'bigOrdrBillingTelephone'];\n  let BillingContactEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class BillingContactEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor3, this);\n    }\n    /**\n     * Rebuilds the dirty settings model every time the modal dialog opens, so cancelling\n     * leaves the cached settings model untouched.\n     * @return {void}\n     */\n    setupDirty() {\n      this.dirty = this.crud.setupDirty({\n        adapterName: ADAPTER_NAME,\n        model: this.settings.getModel() || this.args.model\n      });\n    }\n\n    /**\n     * Partially save billing company name, email, and telephone on pod settings, then close the modal.\n     * @param {Function} onCloseDialogAction - closes the billing-contact modal dialog\n     * @return {Generator} ember-concurrency task iterator\n     */\n    *saveTask(onCloseDialogAction) {\n      yield this.settings.updatePartiallyTask.perform(this.dirty, BILLING_CONTACT_DATA_PATHS);\n      this.dirty = null;\n      onCloseDialogAction();\n    }\n\n    /**\n     * Discard dirty billing-contact edits and close the modal.\n     * @param {Function} onCloseDialogAction - closes the billing-contact modal dialog\n     * @return {void}\n     */\n    cancel(onCloseDialogAction) {\n      this.crud.cancelEditing({\n        adapterName: ADAPTER_NAME,\n        dirty: this.dirty\n      });\n      this.dirty = null;\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/billing/contact-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"b/JvzAzo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[[23,4,[]],\\\"fas fa-pencil-alt\\\",true,\\\"billing_contact\\\",[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],\\\"edit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setupDirty\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,2,[]],\\\"billing_contact_group\\\",[23,3,[]],\\\"billing_contact\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrBillingCompanyName\\\",[23,3,[]],\\\"billing_company_name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@context\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,\\\"bigOrdrBillingCompanyName\\\",[23,0,[\\\"dirty\\\",\\\"billingCompanyName\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrBillingCompanyName\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrBillingEmail\\\",[23,3,[]],\\\"billing_email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[\\\"bigOrdrBillingEmail\\\",[23,0,[\\\"dirty\\\",\\\"billingEmail\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrBillingEmail\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrBillingTelephone\\\",[23,3,[]],\\\"billing_telephone\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[\\\"bigOrdrBillingTelephone\\\",[23,0,[\\\"dirty\\\",\\\"billingTelephone\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrBillingTelephone\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/contact-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/panels-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SettingsPanelsDisplayComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _class = class SettingsPanelsDisplayComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", 'settings');\n      this.crud.addLists(this, ['billing/lists/sub-panels']);\n    }\n\n    // afterLoadLists () {\n    //   this.setupTask.perform()\n    // }\n\n    // @action\n    // displaySubPanel () {\n    //   const tab = this.args.tab\n    //   const activeSubTab = this.tabsManager.getActiveSubTab(tab)\n    //   const tabOptions = {\n    //     loadInstructions: {\n    //       component: activeSubTab.get?.('component')\n    //     }\n    //   }\n    //   this.args.onDisplay?.(this.args?.model, { tabOptions })\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/billing/panels-display/credits-history/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class BillingPanelsDisplayCreditsHistoryComponent extends _component.default {\n    // @service crud\n    // @service tabsManager\n\n    // @tracked dirty\n\n    // adapterName = 'settings'\n\n    // constructor () {\n    //   super(...arguments)\n    //   this.dirty = this.crud.setupDirty({\n    //     adapterName: this.adapterName,\n    //     model: this.args.model,\n    //     tab: this.args.tab\n    //   })\n    // }\n\n    // @action\n    // displaySubPanel () {\n    //   const tab = this.args.tab\n    //   const activeSubTab = this.tabsManager.getActiveSubTab(tab)\n    //   const tabOptions = {\n    //     loadInstructions: {\n    //       component: activeSubTab.get?.('component')\n    //     }\n    //   }\n    //   this.args.onDisplay?.(this.args?.model, { tabOptions })\n    // }\n  }\n  _exports.default = BillingPanelsDisplayCreditsHistoryComponent;\n});","define(\"client/pods/components/billing/panels-display/credits-history/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"78KRHAhM\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[0,\\\"credits history\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/panels-display/credits-history/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/panels-display/invoices-history/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 BillingPanelsDisplayInvoicesComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class BillingPanelsDisplayInvoicesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'billing/plans/invoices');\n      _defineProperty(this, \"filtersAdapterName\", 'billing/plans/invoices/filters');\n      this.filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.fetchInvoicesHistoryTask.perform();\n    }\n    get formInitData() {\n      if (this.args?.outerFormInitData) {\n        return this.args?.outerFormInitData;\n      }\n      return {\n        tab: this.args?.tab,\n        documentationResource: 'billing',\n        documentationIsMinimized: this.args?.documentationIsMinimized,\n        resourceList: this.args?.resourceList,\n        wizardContainerComponent: this.args?.wizardContainerComponent\n      };\n    }\n    *fetchInvoicesHistoryTask() {\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchInvoicesHistoryTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchInvoicesHistoryTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/billing/panels-display/invoices-history/table-view/panels-activity/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember.computed('model._data.paymentData.status'), _dec2 = Ember.computed('model._data.paymentData.status'), _dec3 = Ember._action, _obj = {\n    constants: Ember.inject.service(),\n    tagName: '',\n    get statusBadgeClassNames() {\n      if (this.model?._data?.paymentData.status === this.constants.paymentCreditCardStatus.approved) {\n        return 'is-success';\n      }\n      return 'is-warning';\n    },\n    get statusLabel() {\n      const defaultPaymentStatus = this.constants.paymentVirtualAccountStatus.pending;\n      const paymentMethodKey = this.model?._data?.paymentMethodKey;\n      if (paymentMethodKey === this.constants.paymentMethods.creditCard) {\n        const creditCardPaymentStatusHash = {\n          [this.constants.paymentCreditCardStatus.approved]: 'cc_approved',\n          [this.constants.paymentCreditCardStatus.declined]: 'cc_declined',\n          [this.constants.paymentCreditCardStatus.refundRequested]: 'cc_refundRequested',\n          [this.constants.paymentCreditCardStatus.refunded]: 'cc_refunded',\n          [this.constants.paymentCreditCardStatus.paidOut]: 'cc_paidOut',\n          [this.constants.paymentCreditCardStatus.pending]: 'cc_pending'\n        };\n        const status = this.model?._data?.paymentCreditCardStatus || defaultPaymentStatus;\n        return creditCardPaymentStatusHash[status];\n      } else if (paymentMethodKey === this.constants.paymentMethods.cashBeforeDelivery) {\n        const cashBeforeDeliveryPaymentStatusHash = {\n          [this.constants.paymentVirtualAccountStatus.approved]: 'atm_approved',\n          [this.constants.paymentVirtualAccountStatus.pending]: 'atm_pending',\n          [this.constants.paymentVirtualAccountStatus.expired]: 'atm_expired',\n          [this.constants.paymentVirtualAccountStatus.attentionRequired]: 'atm_attentionRequired'\n        };\n        const status = this.model?._data?.paymentData?.status || defaultPaymentStatus;\n        return cashBeforeDeliveryPaymentStatusHash[status];\n      }\n      return defaultPaymentStatus;\n    },\n    toggleView() {\n      this.toggleProperty('showDetails');\n    }\n  }, _applyDecoratedDescriptor(_obj, \"statusBadgeClassNames\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"statusBadgeClassNames\"), _obj), _applyDecoratedDescriptor(_obj, \"statusLabel\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"statusLabel\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleView\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"toggleView\"), _obj), _obj));\n});","define(\"client/pods/components/billing/panels-display/invoices-history/table-view/panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GTtIu2st\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"payment method\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@statusBadgeClassNames\\\",\\\"@statusLabel\\\"],[[23,0,[\\\"statusBadgeClassNames\\\"]],[23,0,[\\\"statusLabel\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"date\\\",[[23,4,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,4,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,4,[\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,4,[\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,4,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,4,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"account last 5 digits\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n          : \\\"],[1,[23,4,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,4,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleView\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\",\\\"model\\\",\\\"hasGroups\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"qty\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,1,[\\\"item\\\"]]]]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[23,1,[\\\"itemCode\\\"]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[23,1,[\\\"unit\\\"]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"discInclPrice\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"postDiscInclAmt\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,4,[\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,4,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,4,[\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/panels-display/invoices-history/table-view/panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/panels-display/invoices-history/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NhUFIfCd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@isUserAllowed\\\",\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[true,\\\"billing-plans\\\",false,[23,0,[\\\"formInitData\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,2,[]],\\\"plan_group\\\",[23,1,[]],\\\"plan\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchInvoicesHistoryTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@results\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"billing/panels-display/invoices-history/table-view/panels-activity\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"selectedProvider\\\",\\\"adapterName\\\"],[[24,[\\\"selectedProvider\\\"]],\\\"payments/card\\\"]]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/panels-display/invoices-history/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/panels-display/plans/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 BillingPanelsDisplayPlansComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _class = class BillingPanelsDisplayPlansComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"billingCreditsSettings\", _descriptor5, this);\n      this.crud.addLists(this, ['billing/lists/auto-topup-amounts', 'billing/lists/auto-topup-when-amounts']);\n      this.fetchBillingCreditsSettingsTask.perform();\n    }\n    *fetchBillingCreditsSettingsTask() {\n      const model = yield this.crud.findTask.perform({\n        adapterName: 'billing/credits/settings'\n      });\n      this.billingCreditsSettings = model;\n    }\n    *saveBillingCreditsSettingsTask(onCloseDialogAction) {\n      onCloseDialogAction();\n      yield this.fetchBillingCreditsSettingsTask.perform();\n    }\n    *buyCreditsNowTask(amount) {\n      const resp = yield this.server.call('POST', 'api/protected/billing/credits/topup', {\n        amount\n      });\n      console.log(resp);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"billingCreditsSettings\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchBillingCreditsSettingsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchBillingCreditsSettingsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveBillingCreditsSettingsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveBillingCreditsSettingsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"buyCreditsNowTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"buyCreditsNowTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/billing/panels-display/plans/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LFeMUacO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@disabled\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@isUserAllowed\\\",\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[true,\\\"billing-plans\\\",false,[28,\\\"if\\\",[[23,9,[]],[23,9,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"billing\\\",[23,8,[]],[23,3,[]],[23,7,[]],[23,6,[]]]]]],null],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"plan_group\\\",[23,1,[]],\\\"plan\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],[28,\\\"concat\\\",[\\\"billing_plan_\\\",[23,5,[\\\"_data\\\",\\\"bigOrdrPlan\\\"]]],null],\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,5,[\\\"_data\\\",\\\"bigOrdrPlanStartDateZ\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[23,5,[\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[false,[28,\\\"pod/get\\\",[\\\"beta.billingCredits\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billing_credits\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,5,[\\\"_data\\\",\\\"credits\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billing_credits_buy\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@onSubmit\\\"],[\\\"500\\\",false,[28,\\\"perform\\\",[[23,0,[\\\"buyCreditsNowTask\\\"]],500],null]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@onSubmit\\\"],[\\\"1000\\\",false,[28,\\\"perform\\\",[[23,0,[\\\"buyCreditsNowTask\\\"]],1000],null]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@onSubmit\\\"],[\\\"1500\\\",false,[28,\\\"perform\\\",[[23,0,[\\\"buyCreditsNowTask\\\"]],1500],null]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@onSubmit\\\"],[\\\"3000\\\",false,[28,\\\"perform\\\",[[23,0,[\\\"buyCreditsNowTask\\\"]],3000],null]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@onSubmit\\\"],[\\\"4000\\\",false,[28,\\\"perform\\\",[[23,0,[\\\"buyCreditsNowTask\\\"]],4000],null]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@onSubmit\\\"],[\\\"5000\\\",false,[28,\\\"perform\\\",[[23,0,[\\\"buyCreditsNowTask\\\"]],5000],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"billing_contact_group\\\",[23,1,[]],\\\"billing_contact\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billing_company_name\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"billingCompanyName\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billing_email\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"billingEmail\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billing_telephone\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"billingTelephone\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"billing/contact-editor\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@disabled\\\"],[[23,5,[]],[23,3,[]],[23,1,[]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"plan_payments\\\",[23,1,[]],\\\"payments\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"bigOrdrPlanPaymentMethod\\\",\\\"payment method\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,5,[\\\"billingPaymentMethod\\\"]]],null],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"beta.allowChangingBillingPaymentMethod\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"billing/plan-payments-editor\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@disabled\\\"],[[23,5,[]],[23,3,[]],[23,1,[]],[23,4,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[false,[28,\\\"pod/get\\\",[\\\"beta.billingCredits\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"autoTopup_group\\\",[23,1,[]],\\\"billing_credits_auto_topup\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billingCredits.isEnabled\\\",\\\"billing_credits_auto_topup\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"billingCreditsSettings\\\",\\\"_data\\\",\\\"isEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@labelOn\\\"],[true,[23,0,[\\\"billingCreditsSettings\\\",\\\"_data\\\",\\\"isEnabled\\\"]],\\\"billing_credits_auto_topup_enabled\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"billing_credits_auto_topup_disabled\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"billingCreditsSettings\\\",\\\"_data\\\",\\\"isEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billingCredits.autoTopupAmount\\\",\\\"billing_credits_auto_topup_amount\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"billingCreditsSettings\\\",\\\"_data\\\",\\\"autoTopupAmount\\\"]]],null],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billingCredits.whenAmountBelow\\\",\\\"billing_credits_auto_topup_when_amount_below\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"billingCreditsSettings\\\",\\\"_data\\\",\\\"whenAmountBelow\\\"]]],null],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[[23,4,[]],\\\"fas fa-pencil-alt\\\",true,\\\"manage auto topup\\\",[23,0,[\\\"saveBillingCreditsSettingsTask\\\",\\\"isRunning\\\"]],\\\"edit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"billing/topup-editor\\\",[],[[\\\"@model\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@onCloseDialogAction\\\"],[[23,0,[\\\"billingCreditsSettings\\\"]],[23,1,[]],[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"saveBillingCreditsSettingsTask\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"systemleadAddon_group\\\",[23,1,[]],\\\"billing_systemlead_addon\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"billing/systemlead-addon\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@disabled\\\"],[[23,5,[]],[23,3,[]],[23,1,[]],[23,4,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/panels-display/plans/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nHpJs2aQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,2,[]],[23,2,[\\\"subTabs\\\"]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"billing-lists-sub-panels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,2,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,2,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"errors\\\",\\\"model\\\",\\\"tab\\\",\\\"resourceList\\\"],[[23,3,[]],[23,4,[]],[23,1,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"billing-lists-sub-panels\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/payment-methods/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 BillingPaymentMethodsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class BillingPaymentMethodsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      this.crud.addLists(this, ['paymentMethods']);\n    }\n    get bigOrdrPlanPaymentMethods() {\n      return R.pipe(R.pathOr([], ['crud', 'lists', 'paymentMethods']), R.filter(R.pathEq(['_data', 'isNotEditable'], true)), R.filter(R.anyPass([R.pathEq(['_data', 'value'], this.constants.paymentMethods.creditCard), R.pathEq(['_data', 'value'], this.constants.paymentMethods.cashBeforeDelivery)])))(this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/billing/payment-methods/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YxcpYXL8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@multiSelect\\\"],[false,true,[23,0,[\\\"bigOrdrPlanPaymentMethods\\\"]],\\\"list-selector\\\",[23,1,[]],\\\"_data.bigOrdrPlanPaymentMethod\\\",\\\"_data.value\\\",\\\"_data.customLabel\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,[23,2,[]],false]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/payment-methods/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/plan-payments-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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;\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 ADAPTER_NAME = 'settings';\n  const PLAN_PAYMENT_DATA_PATHS = ['bigOrdrPlanPaymentMethod', 'bigOrdrPlanAutoRenew', 'bigOrdrPaymentLastFiveDigits'];\n  let BillingPlanPaymentsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _class = class BillingPlanPaymentsEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor4, this);\n    }\n    /**\n     * Rebuilds the dirty settings model every time the modal dialog opens, so cancelling\n     * leaves the cached settings model untouched.\n     * Seeds top-level payment method from bigOrdrPlanData when the mirror is empty.\n     */\n    setupDirty() {\n      this.dirty = this.crud.setupDirty({\n        adapterName: ADAPTER_NAME,\n        model: this.args.model\n      });\n      if (RA.isNotNilOrEmpty(this.dirty?._data?.bigOrdrPlanPaymentMethod)) {\n        return;\n      }\n      const nestedPaymentMethod = this.dirty?._data?.bigOrdrPlanData?.bigOrdrPlanPaymentMethod;\n      if (RA.isNilOrEmpty(nestedPaymentMethod)) {\n        return;\n      }\n      this.dirty.setData('bigOrdrPlanPaymentMethod', nestedPaymentMethod);\n    }\n    *saveTask(onCloseDialogAction) {\n      yield this.settings.updatePartiallyTask.perform(this.dirty, PLAN_PAYMENT_DATA_PATHS);\n      this.dirty = null;\n      onCloseDialogAction();\n    }\n    cancel(onCloseDialogAction) {\n      this.crud.cancelEditing({\n        adapterName: ADAPTER_NAME,\n        dirty: this.dirty\n      });\n      this.dirty = null;\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/billing/plan-payments-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AN56qOds\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[[23,4,[]],\\\"fas fa-pencil-alt\\\",true,\\\"payments\\\",[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],\\\"edit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setupDirty\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,2,[]],\\\"plan_payments_methods\\\",[23,3,[]],\\\"payment methods\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlanPaymentMethod\\\",[23,3,[]],\\\"payment method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"billing/payment-methods\\\",[],[[\\\"@model\\\"],[[23,0,[\\\"dirty\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrPlanPaymentMethod\\\"]],[23,0,[\\\"constants\\\",\\\"paymentMethods\\\",\\\"creditCard\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,2,[]],\\\"credit_card_group\\\",[23,3,[]],\\\"credit card\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"billing/tap-pay/card-management\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,3,[]],\\\"auto renew plan\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrPlanAutoRenew\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrPlanPaymentMethod\\\"]],[23,0,[\\\"constants\\\",\\\"paymentMethods\\\",\\\"cashBeforeDelivery\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,2,[]],\\\"cashBeforeDelivery_bigOrdrPaymentLastFiveDigits_group\\\",[23,3,[]],\\\"cash before delivery\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,3,[]],\\\"account last 5 digits\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRequired\\\",\\\"@minlength\\\",\\\"@maxlength\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"bigOrdrPaymentLastFiveDigits\\\"]],true,5,5]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/plan-payments-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/systemlead-addon/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\n  /**\n   * SAMPLE: SystemLead E-Invoice Addon — Billing Management UI\n   *\n   * Matches the existing backend contract (bigordr-api):\n   * - Addon state lives on the pod settings document:\n   *   settings._data.tw_eInvoice_systemlead ({ enabled, renewalDateZ, ... })\n   * - Subscribing/renewing creates an add-on invoice via\n   *   POST api/protected/billing/add-ons/invoices/systemlead\n   *   (handlers.manuallyCreateAddOnInvoice; schema createAddOnInvoice\n   *   requires provider + plan)\n   * - Plan/pricing is defined server-side in\n   *   lib/services/extensions/apps/tw/e-invoices/systemlead.js:\n   *   single plan '1200' (1,200 e-invoices/year) at 6000/year,\n   *   billed yearly with the renewal invoice issued in November.\n   *\n   * The plan/price constants below mirror those backend values for\n   * display only — the backend remains the source of truth.\n   */\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 BillingSystemleadAddonComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('billing'), _dec6 = Ember.inject.service('date'), _dec7 = Ember._tracked, _class = class BillingSystemleadAddonComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"server\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"billingService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"addOnInvoice\", _descriptor7, this);\n      // mirrors the plans map in bigordr-api systemlead.js billing._getInvoiceDataForPlan\n      _defineProperty(this, \"addon\", 'systemlead');\n      _defineProperty(this, \"yearlyPrice\", 6930);\n      _defineProperty(this, \"provider\", this.constants.billingTypeProviders.systemlead);\n      // renewal opens this many days before renewalDateZ — anchored to the backend\n      // auto-renew *reminder email* lead time, not the charge date. The email cron\n      // (bigordr-api cronjobs/_billing.js emailNotificationsForAutoRenewAddOn) first\n      // notifies at `today + 1 month == renewalDateZ`, i.e. ~1 month before renewal.\n      // Because the backend pins renewalDateZ to Dec 1, 30 days before == that\n      // 1-month reminder date (Nov 1). The backend actually charges on renewalDateZ\n      // itself (getAutoRenewalSystemleadPodKeys: renewalDateZ <= startOfToday), one\n      // month after this window opens — so users get a month to renew manually first.\n      _defineProperty(this, \"renewalWindowDays\", 30);\n      this.fetchSubscriptionTask.perform();\n    }\n    get systemleadSettings() {\n      return this.args.model?._data?.tw_eInvoice_systemlead;\n    }\n    get isEnabled() {\n      return this.systemleadSettings?.enabled || false;\n    }\n\n    // start of the renewal window: renewalWindowDays (~1 month) before the stored\n    // renewalDateZ — i.e. when the backend sends its first auto-renew reminder email\n    get renewalWindowStartZ() {\n      const renewalDateZ = this.systemleadSettings?.renewalDateZ;\n      if (!renewalDateZ) {\n        return null;\n      }\n      return this.dateService.getDaysBeforeZ(renewalDateZ, this.renewalWindowDays);\n    }\n\n    // true once we reach the renewal window (~1 month before renewalDateZ). No\n    // upper bound: the backend auto-renew cron stops at 3 months overdue as a\n    // safety floor, but a user-initiated manual renew of a still-enabled addon\n    // stays allowed indefinitely.\n    get isWithinRenewalWindow() {\n      if (!this.renewalWindowStartZ) {\n        return false;\n      }\n      return this.dateService.getMoment().isSameOrAfter(this.renewalWindowStartZ);\n    }\n\n    // an add-on invoice counts as \"paid\" once the virtual-account payment is approved\n    get isAddOnInvoicePaid() {\n      return this.addOnInvoice?._data?.paymentData?.status === 'approved';\n    }\n\n    // only an unpaid invoice blocks renewing/subscribing — it must be settled first,\n    // so we show its payment status instead of the renew button. A paid invoice lets\n    // the renewal-window logic decide (renew when inside the window)\n    get hasOutstandingInvoice() {\n      if (!this.addOnInvoice) {\n        return false;\n      }\n      return !this.isAddOnInvoicePaid;\n    }\n\n    // subscribing (first-time, not yet enabled) is always allowed;\n    // renewing is only allowed inside the renewal window\n    get isRenewDisabled() {\n      if (this.args.disabled) {\n        return true;\n      }\n      if (!this.isEnabled) {\n        return false;\n      }\n      return !this.isWithinRenewalWindow;\n    }\n\n    // ElementBtn's requiresConfirmation flow calls intl.t without interpolation\n    // values, so we resolve the message here (price passed in) and hand it over\n    // already-translated via @confirmMsg with @confirmMsgTranslate={{false}}.\n    get confirmMsg() {\n      const price = this.intl.formatNumber(this.yearlyPrice);\n      return this.intl.t('billing_systemlead_addon_confirm', {\n        price\n      });\n    }\n    *fetchSubscriptionTask() {\n      const addOnInvoiceData = yield this.billingService.fetchInvoicesByAddOnProviderTask.perform(this.provider);\n      if (!addOnInvoiceData?._data?._key) {\n        return;\n      }\n      this.addOnInvoice = addOnInvoiceData;\n    }\n    *subscribeTask() {\n      yield this.billingService.createAddOnInvoiceByProviderTask.perform(this.provider, this.addon);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"billingService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"addOnInvoice\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchSubscriptionTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchSubscriptionTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"subscribeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"subscribeTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/billing/systemlead-addon/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y3ZA33tY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,3,[]],\\\"systemleadAddon.enabled\\\",\\\"billing_systemlead_addon\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@labelOn\\\"],[true,[23,0,[\\\"isEnabled\\\"]],\\\"billing_systemlead_addon_enabled\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"billing_systemlead_addon_disabled\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,3,[]],\\\"systemleadAddon.plan\\\",\\\"billing_systemlead_addon_plan\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"billing_systemlead_addon_plan_12000\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,3,[]],\\\"systemleadAddon.yearlyPrice\\\",\\\"billing_systemlead_addon_yearly_price\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"yearlyPrice\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"systemleadSettings\\\",\\\"renewalDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,3,[]],\\\"systemleadAddon.renewalDateZ\\\",\\\"billing_systemlead_addon_renewal_date\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"date\\\",[[23,0,[\\\"systemleadSettings\\\",\\\"renewalDateZ\\\"]]],null],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchSubscriptionTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"addOnInvoice\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\",\\\"@displayAsRows\\\"],[[23,0,[\\\"addOnInvoice\\\"]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\",\\\"model\\\",\\\"hasGroups\\\"],[[23,1,[]],[23,2,[]],[23,0,[\\\"addOnInvoice\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isWithinRenewalWindow\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@labelClassNames\\\",\\\"@translate\\\",\\\"@label\\\"],[[23,3,[]],\\\"systemleadAddon.renewAvailableFrom\\\",\\\"u-desc\\\",false,[28,\\\"tt\\\",[\\\"billing_systemlead_addon_renew_available_from\\\"],[[\\\"date\\\"],[[28,\\\"date\\\",[[23,0,[\\\"renewalWindowStartZ\\\"]]],null]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\",\\\"@disabled\\\"],[\\\"is-primary\\\",\\\"fas fa-redo\\\",\\\"billing_systemlead_addon_renew\\\",[23,0,[\\\"subscribeTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"subscribeTask\\\"]]],null],true,[23,0,[\\\"confirmMsg\\\"]],false,[23,0,[\\\"isRenewDisabled\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\"],[\\\"is-primary\\\",\\\"fas fa-plus\\\",\\\"billing_systemlead_addon_subscribe\\\",[23,0,[\\\"subscribeTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"subscribeTask\\\"]]],null],true,[23,0,[\\\"confirmMsg\\\"]],false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/systemlead-addon/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/tab-container/component\", [\"exports\", \"ember-concurrency\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    adapterName: 'settings',\n    query: '',\n    init() {\n      this._super(...arguments);\n      this.fetchAndDisplayTask.perform();\n    },\n    fetchAndDisplayTask: (0, _emberConcurrency.task)(function* () {\n      const model = yield this.crud.findTask.perform({\n        adapterName: this.adapterName\n      });\n      this.display(model);\n    }),\n    display(model, {\n      tabOptions\n    } = {}) {\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'billing/panels-display',\n        model\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions, tabOptions);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"display\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"display\"), _obj), _obj));\n});","define(\"client/pods/components/billing/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hvKeKNcl\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,2,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"fetchAndDisplayTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,0,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"documentationResource\\\",\\\"model\\\",\\\"tab\\\",\\\"tabParent\\\"],[\\\"settings\\\",[23,1,[\\\"model\\\"]],[23,1,[]],[23,0,[\\\"tab\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/tap-pay/card-management/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 BillingTapPayCardManagementComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember.computed('creditCard._data._key'), _dec5 = Ember.computed('creditCard._data.ccNumberLastFour'), _dec6 = Ember.computed('creditCard._data.ccExpiry'), _class = class BillingTapPayCardManagementComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      // get payment methods from payment methods\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"creditCard\", _descriptor3, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      yield this.fetchCreditCardTask.perform();\n    }\n    *fetchCreditCardTask() {\n      this.creditCard = {};\n      const creditCard = yield this.crud.findTask.perform({\n        adapterName: 'billing/payment-methods/credit-cards',\n        component: this\n      });\n      if (creditCard?._data?._key) {\n        this.creditCard = creditCard;\n      }\n    }\n    get hasCreditCard() {\n      const creditCard = this.creditCard;\n      if (creditCard?._data?._key) {\n        return true;\n      }\n      return false;\n    }\n    get creditCardNumber() {\n      const creditCard = this.creditCard;\n      const ccNumberLastFour = creditCard?._data?.ccNumberLastFour;\n      if (!ccNumberLastFour) {\n        return '';\n      }\n      const ccNumber = R.join(' ', R.concat(R.repeat('⦁⦁⦁⦁', 3), [ccNumberLastFour]));\n      return ccNumber;\n    }\n    get creditCardExpiry() {\n      const creditCard = this.creditCard;\n      const ccExpiry = creditCard?._data?.ccExpiry;\n      if (!ccExpiry) {\n        return '';\n      }\n      const yyyy = R.take(4)(ccExpiry);\n      const mm = R.takeLast(2)(ccExpiry);\n      return `${yyyy}-${mm}`;\n    }\n    *upsertCreditCardTask(onCloseDialogAction, creditCardData) {\n      const model = this.crud.setupNewRecord({\n        adapterName: 'billing/payment-methods/credit-cards',\n        data: creditCardData\n      });\n      const resp = yield this.crud.createRecordTask.perform({\n        adapterName: 'billing/payment-methods/credit-cards',\n        model\n      });\n      yield this.fetchCreditCardTask.perform();\n      return onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"creditCard\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchCreditCardTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCreditCardTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasCreditCard\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"hasCreditCard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"creditCardNumber\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"creditCardNumber\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"creditCardExpiry\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"creditCardExpiry\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"upsertCreditCardTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"upsertCreditCardTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/billing/tap-pay/card-management/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"4dntlnOZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@disabled\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"creditCard\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,0,[\\\"creditCardNumber\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"creditCardExpiry\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"creditCardExpiry\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,0,[\\\"creditCard\\\",\\\"_data\\\",\\\"ccHolder\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@label\\\"],[[23,2,[]],[28,\\\"if\\\",[[23,0,[\\\"hasCreditCard\\\"]],\\\"fas fa-pen\\\",\\\"fas fa-plus\\\"],null],true,[28,\\\"if\\\",[[23,0,[\\\"hasCreditCard\\\"]],\\\"change credit card\\\",\\\"add credit card\\\"],null],[28,\\\"if\\\",[[23,0,[\\\"hasCreditCard\\\"]],\\\"change credit card\\\",\\\"add credit card\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"billing/tap-pay/card\\\",[],[[\\\"@upsertCreditCardTask\\\",\\\"@onCloseDialogAction\\\"],[[23,0,[\\\"upsertCreditCardTask\\\"]],[23,1,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/tap-pay/card-management/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/tap-pay/card/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency\", \"ember-concurrency-decorators\", \"client/config/environment\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, _emberConcurrency, _emberConcurrencyDecorators, _environment, RA, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;\n  /* global TPDirect */\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 TapPayCardComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember.computed('canGetPrime', 'tapPayNumberStatus', 'tapPayExpiryStatus', 'tapPayCCVStatus', 'tapPayCCHolderStatus', 'email', 'phoneNumber', 'hasTriedSave', 'isErrorStatusesInitialized', 'tapPayCCPhoneNumberStatus', 'tapPayCCEmailStatus'), _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _class = class TapPayCardComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"server\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isSettingUp\", _descriptor3, this);\n      _initializerDefineProperty(this, \"wasAlreadyLoaded\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasTriedSave\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isErrorStatusesInitialized\", _descriptor6, this);\n      _initializerDefineProperty(this, \"tapPayNumberStatus\", _descriptor7, this);\n      _initializerDefineProperty(this, \"tapPayExpiryStatus\", _descriptor8, this);\n      _initializerDefineProperty(this, \"tapPayCCVStatus\", _descriptor9, this);\n      _initializerDefineProperty(this, \"tapPayCCHolderStatus\", _descriptor0, this);\n      _initializerDefineProperty(this, \"tapPayCCPhoneNumberStatus\", _descriptor1, this);\n      _initializerDefineProperty(this, \"tapPayCCEmailStatus\", _descriptor10, this);\n      _initializerDefineProperty(this, \"tapPayUpdateStatus\", _descriptor11, this);\n      _initializerDefineProperty(this, \"canGetPrime\", _descriptor12, this);\n      _initializerDefineProperty(this, \"couldNotGetPrime\", _descriptor13, this);\n      _initializerDefineProperty(this, \"refreshRequired\", _descriptor14, this);\n      _initializerDefineProperty(this, \"cardType\", _descriptor15, this);\n      _initializerDefineProperty(this, \"hasGetPrimeError\", _descriptor16, this);\n      _initializerDefineProperty(this, \"ccHolder\", _descriptor17, this);\n      _initializerDefineProperty(this, \"email\", _descriptor18, this);\n      _initializerDefineProperty(this, \"phoneNumber\", _descriptor19, this);\n    }\n    // constructor () {\n    //   super(...arguments)\n\n    //   // if (config.environment !== 'production') {\n    //   //   this.ccHolder = 'test'\n    //   //   this.email = 'test@9889.co'\n    //   //   this.phoneNumber = '0987654321'\n    //   // }\n    // }\n\n    *setupTapPaySDKTask() {\n      yield (0, _emberConcurrency.timeout)(150);\n      try {\n        yield this.setupSDK.perform(true);\n      } catch (error) {\n        yield (0, _emberConcurrency.timeout)(500);\n        yield this.setupSDK.perform(true);\n      }\n    }\n    get errorMessages() {\n      const errors = {};\n      // const isCheckingOutWithoutInitializingErrors = this.hasTriedSave && !this.isErrorStatusesInitialized\n      if (this.tapPayNumberStatus === 2 || this.tapPayNumberStatus !== 0 && this.hasTriedSave) {\n        errors.ccNumber = {\n          message: 'error_ccNumber'\n        };\n      }\n      if (this.tapPayExpiryStatus === 2 || this.tapPayExpiryStatus !== 0 && this.hasTriedSave) {\n        errors.ccExpiry = {\n          message: 'error_ccExpiry'\n        };\n      }\n      if (this.tapPayCCVStatus === 2 || this.tapPayCCVStatus !== 0 && this.hasTriedSave) {\n        errors.ccSecureCode = {\n          message: 'error_ccSecureCode'\n        };\n      }\n      if (this.tapPayCCHolderStatus === 2 || this.tapPayCCHolderStatus !== 0 && this.hasTriedSave) {\n        // errors.pushObject('error_ccHolder')\n        errors.ccHolder = {\n          message: 'error_ccHolder'\n        };\n      }\n      if (this.tapPayCCPhoneNumberStatus === 2 || this.tapPayCCPhoneNumberStatus !== 0 && this.hasTriedSave) {\n        errors.phoneNumber = {\n          message: 'error_ccPhoneNumber'\n        };\n      }\n      if (this.tapPayCCEmailStatus === 2 || this.tapPayCCEmailStatus !== 0 && this.hasTriedSave) {\n        errors.email = {\n          message: 'error_ccEmail'\n        };\n      }\n      return errors;\n    }\n    get ccCardIcon() {\n      switch (this.cardType) {\n        case 'mastercard':\n          return 'fab fa-cc-mastercard';\n        case 'visa':\n          return 'fab fa-cc-visa';\n        case 'jcb':\n          return 'fab fa-cc-jcb';\n        case 'amex':\n          return 'fab fa-cc-amex';\n        case 'unknown':\n        default:\n          return 'far fa-credit-card';\n      }\n    }\n    *setupTapPayFields() {\n      return yield new Promise(resolve => {\n        const loadedIframes = [];\n        // 以下提供必填 CCV 以及選填 CCV 的 Example\n        // 必填 CCV Example\n        const domElementCardNumber = document.querySelector('#card-number');\n        const domElementCardExpirationDate = document.querySelector('#card-expiration-date');\n        const domElementCardCcv = document.querySelector('#card-ccv');\n        const fields = {\n          number: {\n            // css selector\n            element: domElementCardNumber,\n            placeholder: '**** **** **** ****'\n          },\n          expirationDate: {\n            // DOM object\n            element: domElementCardExpirationDate,\n            placeholder: 'MM / YY'\n          },\n          ccv: {\n            element: domElementCardCcv,\n            placeholder: '⦁⦁⦁' || '後三碼'\n          }\n        };\n        const styles = {\n          // Style all elements\n          input: {\n            color: 'gray',\n            'font-size': '16px',\n            'font-family': `BlinkMacSystemFont,\n            -apple-system, \"Segoe UI\", \"Roboto\",\n            \"Oxygen\", \"Ubuntu\", \"Cantarell\",\n            \"Fira Sans\", \"Droid Sans\",\n            \"Helvetica Neue\", \"Helvetica\", \"Arial\",\n            sans-serif`\n          },\n          // Styling ccv field\n          'input.cvc': {\n            // 'font-size': '16px'\n          },\n          // Styling expiration-date field\n          'input.expiration-date': {\n            // 'font-size': '16px'\n          },\n          // Styling card-number field\n          'input.card-number': {\n            // 'font-size': '16px'\n          },\n          // style focus state\n          ':focus': {\n            // 'color': 'black'\n          },\n          // style valid state\n          '.valid': {\n            color: 'green'\n          },\n          // style invalid state\n          '.invalid': {\n            color: 'red'\n          },\n          // Media queries\n          // Note that these apply to the iframe, not the root window.\n          '@media screen and (max-width: 400px)': {\n            input: {\n              color: 'orange'\n            }\n          }\n        };\n        const onLoadIframe = iframe => {\n          loadedIframes.push(iframe);\n          if (loadedIframes.length === 3) {\n            onUpdate();\n            resolve(true);\n          }\n        };\n\n        // set fields\n        TPDirect.card.setup({\n          fields,\n          styles\n        });\n        domElementCardNumber.querySelector('iframe').onload = onLoadIframe;\n        domElementCardExpirationDate.querySelector('iframe').onload = onLoadIframe;\n        domElementCardCcv.querySelector('iframe').onload = onLoadIframe;\n\n        // Set on update event\n\n        const onUpdate = () => {\n          return TPDirect.card.onUpdate(update => {\n            this.isErrorStatusesInitialized = true;\n            this.cardType = update.cardType;\n            this.canGetPrime = update.canGetPrime;\n            this.tapPayNumberStatus = update.status.number;\n            this.tapPayExpiryStatus = update.status.expiry;\n            this.tapPayCCVStatus = update.status.ccv;\n            this.tapPayUpdateStatus = update;\n          });\n        };\n      });\n    }\n    *loadTapPaySDK() {\n      const tapPayConfig = _environment.default.tapPay;\n      return yield new Promise(resolve => {\n        this.applicationService.loadAsyncResource('tapPay-sdk', tapPayConfig.sdkUrl, document, 'script', {\n          onload(...args) {\n            TPDirect.setupSDK(tapPayConfig.appId, tapPayConfig.appKey, tapPayConfig.env);\n            // console.log('tapPay loaded')\n            resolve(...args);\n          }\n        });\n      });\n    }\n    validateCCHolder(ccHolder, allowEmpty = true) {\n      this.tapPayCCHolderStatus = -1;\n      try {\n        ccHolder = R.trim(ccHolder);\n      } catch (error) {\n        ccHolder = '';\n      }\n      if (!allowEmpty && !ccHolder) {\n        this.tapPayCCHolderStatus = 2;\n        return false;\n      }\n      // Only allow English Names, dashes and spaces\n      const ccHolderRegex = /^[a-zA-Z\\-\\s\\/.,']+$/;\n      const isValid = ccHolderRegex.test(ccHolder);\n      if (!isValid) {\n        this.tapPayCCHolderStatus = 2;\n        return false;\n      }\n      this.tapPayCCHolderStatus = 0;\n      return true;\n    }\n    validateCCPhoneNumber(ccPhoneNumber) {\n      this.tapPayCCPhoneNumberStatus = -1;\n      try {\n        ccPhoneNumber = R.trim(ccPhoneNumber);\n      } catch (error) {\n        ccPhoneNumber = '';\n      }\n      if (!ccPhoneNumber) {\n        this.tapPayCCPhoneNumberStatus = 2;\n        return false;\n      }\n      this.tapPayCCPhoneNumberStatus = 0;\n      return true;\n    }\n    validateCCEmail(ccEmail) {\n      this.tapPayCCEmailStatus = -1;\n      try {\n        ccEmail = R.trim(ccEmail);\n      } catch (error) {\n        ccEmail = '';\n      }\n      if (!ccEmail) {\n        this.tapPayCCEmailStatus = 2;\n        return false;\n      }\n      this.tapPayCCEmailStatus = 0;\n      return true;\n    }\n    *delay(time) {\n      return yield new Promise(resolve => setTimeout(resolve, time));\n    }\n    *setupSDK(useFields) {\n      const setupSDK = () => {\n        this.isSettingUp = true;\n        this.tapPayNumberStatus = '';\n        this.tapPayExpiryStatus = '';\n        this.tapPayCCVStatus = '';\n\n        // @TODO: cannot get appkey\n        // const tapPayConfig = config.tapPay\n        // TPDirect.setupSDK(tapPayConfig.appId, tapPayConfig.appKey, tapPayConfig.env)\n\n        const defaultCardViewStyle = {\n          color: 'rgb(0,0,0)',\n          fontSize: '15px',\n          lineHeight: '24px',\n          fontWeight: '300',\n          errorColor: 'red',\n          placeholderColor: ''\n        };\n        const tapPayIframe = document.getElementById('tappay-iframe');\n        if (!tapPayIframe) {\n          this.refreshRequired = true;\n          return false;\n        }\n        TPDirect.card.setup('#tappay-iframe', defaultCardViewStyle);\n        TPDirect.card.onUpdate(update => {\n          this.tapPayNumberStatus = update.status.number;\n          this.tapPayExpiryStatus = update.status.expiry;\n          this.tapPayCCVStatus = update.status.ccv;\n          this.canGetPrime = update.canGetPrime;\n          this.tapPayUpdateStatus = update;\n        });\n        setTimeout(() => {\n          this.isSettingUp = false;\n        }, 1200);\n      };\n      const onload = () => {\n        setupSDK();\n        this.wasAlreadyLoaded = true;\n      };\n      if (this.wasAlreadyLoaded) {\n        setupSDK();\n      } else {\n        yield this.loadTapPaySDK.perform();\n        if (useFields) {\n          yield this.setupTapPayFields.perform();\n        } else {\n          onload();\n        }\n      }\n    }\n    *getPrimeByTapPayFields() {\n      return yield new Promise((resolve, reject) => {\n        const status = TPDirect.card.getTappayFieldsStatus();\n        const hasError = R.propOr(true, 'hasError')(status);\n        if (hasError) {\n          return this.handleCannotGetPrime.perform({\n            errorBeforeGetPrime: true\n          }, status).then(() => reject({\n            message: 'error before getting prime'\n          }));\n        } else {\n          TPDirect.card.getPrimeForTappayFields(result => {\n            if (result.status !== 0) {\n              return this.handleCannotGetPrime.perform(result, status).then(() => reject({\n                message: 'can not get prime'\n              }));\n            }\n            return resolve(result.card);\n          });\n        }\n      });\n    }\n    *getPrimeTask() {\n      return yield this.getPrimeByTapPayFields.perform();\n    }\n    *getLinePayPrimeTask() {\n      return yield new Promise((resolve, reject) => {\n        TPDirect.linePay.getPrime(result => {\n          if (result.status !== 0) {\n            this.handleCannotGetPrime.perform(result);\n            return reject({\n              message: 'can not get prime'\n            });\n          }\n          result.primeType = 'linePay';\n          return resolve(result);\n        });\n      });\n    }\n    *handleCannotGetPrime(result, status) {\n      this.couldNotGetPrime = true;\n    }\n    refresh() {\n      window.location.reload(true);\n    }\n    *saveTask() {\n      this.hasTriedSave = true;\n      this.hasGetPrimeError = false;\n      const primeData = yield this.getPrimeTask.perform();\n      const errors = this.errorMessages || {};\n      if (RA.isNotNilOrEmpty(errors)) {\n        return;\n      }\n      if (!primeData?.prime) {\n        this.hasGetPrimeError = true;\n        return;\n      }\n      const data = {\n        ccHolder: this.ccHolder,\n        email: this.email,\n        phoneNumber: this.phoneNumber,\n        primeData\n      };\n      const onCloseDialogAction = this.args.onCloseDialogAction;\n      return this.args.upsertCreditCardTask.perform(onCloseDialogAction, data);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isSettingUp\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"wasAlreadyLoaded\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasTriedSave\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isErrorStatusesInitialized\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"tapPayNumberStatus\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"tapPayExpiryStatus\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"tapPayCCVStatus\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"tapPayCCHolderStatus\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"tapPayCCPhoneNumberStatus\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"tapPayCCEmailStatus\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"tapPayUpdateStatus\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"canGetPrime\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"couldNotGetPrime\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"refreshRequired\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"cardType\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"hasGetPrimeError\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"ccHolder\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"email\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"phoneNumber\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTapPaySDKTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTapPaySDKTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"errorMessages\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"errorMessages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupTapPayFields\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTapPayFields\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadTapPaySDK\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTapPaySDK\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateCCHolder\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"validateCCHolder\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateCCPhoneNumber\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"validateCCPhoneNumber\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateCCEmail\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"validateCCEmail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"delay\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"delay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupSDK\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupSDK\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getPrimeByTapPayFields\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getPrimeByTapPayFields\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getPrimeTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"getPrimeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getLinePayPrimeTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"getLinePayPrimeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleCannotGetPrime\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"handleCannotGetPrime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refresh\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"refresh\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/billing/tap-pay/card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"iGBYg/Dp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"&attrs\\\",\\\"@onCloseDialogAction\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@isUserAllowed\\\",\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[true,\\\"billing-tappay\\\",false,[28,\\\"if\\\",[[23,6,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"billing\\\",[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]]],null],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"tappay_group\\\",[23,1,[]],\\\"credit card\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\"],[\\\"creditCardHolder\\\",[23,1,[]],\\\"ccHolder\\\",[23,0,[\\\"errorMessages\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@tagName\\\",\\\"@type\\\",\\\"@autocomplete\\\",\\\"@leftIcon\\\",\\\"@leftIconClassNames\\\",\\\"@value\\\",\\\"@classNames\\\",\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@placeholder\\\",\\\"@required\\\",\\\"@minlength\\\",\\\"@maxlength\\\",\\\"@onInput\\\",\\\"@onFocusOut\\\"],[\\\"div\\\",\\\"text\\\",\\\"cc-name\\\",\\\"fa-regular fa-user\\\",\\\"cc-payment__name cc-payment__name--overrideHeight\\\",[23,0,[\\\"ccHolder\\\"]],\\\"tapPay-tpfield_container u-full-width input\\\",\\\"u-full-width\\\",\\\"tapPay-tpfield_input\\\",\\\"credit_card_name_placeholder\\\",true,2,50,[28,\\\"fn\\\",[[23,0,[\\\"validateCCHolder\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"validateCCHolder\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\"],[\\\"phoneNumber\\\",[23,1,[]],\\\"mobile\\\",[23,0,[\\\"errorMessages\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@tagName\\\",\\\"@type\\\",\\\"@autocomplete\\\",\\\"@leftIcon\\\",\\\"@leftIconClassNames\\\",\\\"@value\\\",\\\"@classNames\\\",\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@placeholder\\\",\\\"@required\\\",\\\"@minlength\\\",\\\"@maxlength\\\",\\\"@onInput\\\",\\\"@onFocusOut\\\"],[\\\"div\\\",\\\"text\\\",\\\"tel\\\",\\\"fas fa-phone\\\",\\\"cc-payment__name cc-payment__name--overrideHeight\\\",[23,0,[\\\"phoneNumber\\\"]],\\\"tapPay-tpfield_container u-full-width input\\\",\\\"u-full-width\\\",\\\"tapPay-tpfield_input\\\",\\\"mobile\\\",true,2,50,[28,\\\"fn\\\",[[23,0,[\\\"validateCCPhoneNumber\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"validateCCPhoneNumber\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\"],[\\\"email\\\",[23,1,[]],\\\"email\\\",[23,0,[\\\"errorMessages\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@tagName\\\",\\\"@type\\\",\\\"@autocomplete\\\",\\\"@leftIcon\\\",\\\"@leftIconClassNames\\\",\\\"@value\\\",\\\"@classNames\\\",\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@placeholder\\\",\\\"@required\\\",\\\"@minlength\\\",\\\"@maxlength\\\",\\\"@onInput\\\",\\\"@onFocusOut\\\"],[\\\"div\\\",\\\"text\\\",\\\"email\\\",\\\"fas fa-at\\\",\\\"cc-payment__name cc-payment__name--overrideHeight\\\",[23,0,[\\\"email\\\"]],\\\"tapPay-tpfield_container u-full-width input\\\",\\\"u-full-width\\\",\\\"tapPay-tpfield_input\\\",\\\"email\\\",true,2,50,[28,\\\"fn\\\",[[23,0,[\\\"validateCCEmail\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"validateCCEmail\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",false],[13,7],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupTapPaySDKTask\\\"]]],null]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@errors\\\"],[\\\"creditCardNumber\\\",\\\"ccNumber\\\",[23,0,[\\\"errorMessages\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"control has-icons-left\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tpfield ember-text-field input\\\"],[10,\\\"id\\\",\\\"card-number\\\"],[10,\\\"autocomplete\\\",\\\"cc-number\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupSDK\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon is-small is-left\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-icon\\\",[[12,\\\"class\\\",\\\"cc-payment__number cc-payment__number--overrideHeight\\\"]],[[\\\"@icon\\\"],[[23,0,[\\\"ccCardIcon\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@errors\\\"],[\\\"creditCardExpiryDate\\\",\\\"ccExpiry\\\",[23,0,[\\\"errorMessages\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tpfield ember-text-field input\\\"],[10,\\\"id\\\",\\\"card-expiration-date\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupSDK\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@errors\\\"],[\\\"creditCardSecureCode\\\",\\\"ccSecureCode\\\",[23,0,[\\\"errorMessages\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tpfield ember-text-field input\\\"],[10,\\\"id\\\",\\\"card-ccv\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupSDK\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasGetPrimeError\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"bank processing error\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center flex-container--justify-end\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"ccbrand-logo\\\"],[10,\\\"src\\\",\\\"https://js.tappaysdk.com/tpdirect/image/visa.svg\\\"],[10,\\\"alt\\\",\\\"visa\\\"],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"ccbrand-logo\\\"],[10,\\\"src\\\",\\\"https://js.tappaysdk.com/tpdirect/image/mastercard.svg\\\"],[10,\\\"alt\\\",\\\"mastercard\\\"],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"ccbrand-logo\\\"],[10,\\\"src\\\",\\\"https://js.tappaysdk.com/tpdirect/image/jcb.svg\\\"],[10,\\\"alt\\\",\\\"jcb\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tapPay-logo-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"tapPay-logo\\\"],[10,\\\"src\\\",\\\"https://docs.tappaysdk.com/images/logo.png\\\"],[10,\\\"alt\\\",\\\"tap pay\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-small\\\"],[8],[0,\\\"\\\\n        BigOrdr.com 採用喬睿科技 TapPay SSL 2048 bit\\\\n        交易系統，免跳轉結帳頁面。消費者刷卡時直接在銀行端系統中交易，本公司絕不留下您的信用卡資料，以保障您的權益。\\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n        TapPay 交易系統通過 PCI-DSS 國際信用卡組織安全稽核，周全保護您的信用卡資料安全。\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"setupSDK\\\",\\\"isRunning\\\"]]],null],[23,8,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save\\\",[28,\\\"or\\\",[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"setupSDK\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/tap-pay/card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/billing/topup-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 BillingTopupEditorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember.computed('dirty._data.autoTopupAmount', 'crud.lists.billing-lists-auto-topup-when-amounts.[]'), _dec5 = Ember._action, _dec6 = Ember._action, _class = class BillingTopupEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"model\", _descriptor3, this);\n      this.crud.addLists(this, ['billing/lists/auto-topup-amounts', 'billing/lists/auto-topup-when-amounts']);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const model = this.args.model;\n      if (!model?._data?._id) {\n        // new model\n        this.dirty = model;\n        return;\n      }\n      this.dirty = this.crud.setupDirty({\n        adapterName: 'billing/credits/settings',\n        model: this.args.model\n      });\n    }\n    get topupWhenAmounts() {\n      const model = this.dirty;\n      const selectedAmount = model?._data?.autoTopupAmount || 0;\n      const topupWhenAmounts = this.crud.lists['billing-lists-auto-topup-when-amounts'] || [];\n      if (selectedAmount <= 0) {\n        return topupWhenAmounts;\n      }\n      return R.filter(topupWhenAmountData => {\n        if (topupWhenAmountData?._data?.value < selectedAmount) {\n          return true;\n        }\n        return false;\n      })(topupWhenAmounts);\n    }\n    resetWhenAmountBelow() {\n      const topupWhenAmounts = this.topupWhenAmounts ?? [];\n      const last = R.last(topupWhenAmounts);\n      const model = this.dirty;\n      const currentTopupWhenAmountBelow = model?._data?.whenAmountBelow;\n      const lastTopupWhenAmountBelow = last?._data?.value;\n      if (currentTopupWhenAmountBelow > lastTopupWhenAmountBelow) {\n        model.setData('whenAmountBelow', last?._data?.value);\n        this.applicationService.modelSetIsForceReloading(model);\n      }\n    }\n    *saveTask() {\n      const dirty = this.dirty;\n      if (dirty?._data?._id) {\n        yield this.crud.updateRecordTask.perform({\n          adapterName: 'billing/credits/settings',\n          model: dirty\n        });\n      } else {\n        yield this.crud.createRecordTask.perform({\n          adapterName: 'billing/credits/settings',\n          model: dirty\n        });\n      }\n      const onCloseDialogAction = this.args.onCloseDialogAction;\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    cancel() {\n      const dirty = this.dirty;\n      if (dirty?._data?._id) {\n        this.crud.cancelEditing({\n          adapterName: 'billing/credits/settings',\n          dirty\n        });\n      }\n      const onCloseDialogAction = this.args.onCloseDialogAction;\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"topupWhenAmounts\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"topupWhenAmounts\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetWhenAmountBelow\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"resetWhenAmountBelow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/billing/topup-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CdKZqV++\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"dirty\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@isUserAllowed\\\",\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[true,\\\"billing-plans-auto-topup\\\",false,[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"autoTopup_group\\\",[23,1,[]],\\\"billing_credits_auto_topup\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billingCredits.isEnabled\\\",\\\"billing_credits_auto_topup\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isEnabled\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billingCredits.autoTopupAmount\\\",\\\"billing_credits_auto_topup_amount\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@onSelect\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemClassNames\\\",\\\"@model\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@valueKey\\\",\\\"@multiSelect\\\",\\\"@allowEmpty\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"resetWhenAmountBelow\\\"]]],null],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"billing-lists-auto-topup-amounts\\\"]],\\\"list-selector__item list-selector__item--horizontal\\\",[23,0,[\\\"dirty\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"_data.autoTopupAmount\\\",false,false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"billingCredits.whenAmountBelow\\\",\\\"billing_credits_auto_topup_when_amount_below\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"helpers/force-reloading\\\",[],[[\\\"@isForceReloading\\\"],[[23,0,[\\\"dirty\\\",\\\"isForceReloading\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemClassNames\\\",\\\"@model\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@valueKey\\\",\\\"@multiSelect\\\",\\\"@allowEmpty\\\"],[[28,\\\"if\\\",[[28,\\\"gt\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"autoTopupAmount\\\"]],0],null],false,true],null],false,[23,0,[\\\"topupWhenAmounts\\\"]],\\\"list-selector__item list-selector__item--horizontal\\\",[23,0,[\\\"dirty\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"_data.whenAmountBelow\\\",false,false]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/billing/topup-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/blogs-card/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 BlogsBlogsCardComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _class = class BlogsBlogsCardComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['blogs/lists/tags', 'statuses']);\n    }\n    get isAdded() {\n      const blog = this.args.model;\n      const sliderBlogsArray = this.args.sliderBlogsArray;\n      return sliderBlogsArray.includes(blog);\n    }\n\n    // @TODO: remove\n    emptyFn(data) {\n      return data;\n    }\n    onClick() {\n      // @TODO: change to R.identity\n      const onDisplay = R.pathOr(this.emptyFn, ['args', 'onDisplay'])(this);\n      onDisplay(this.args.model);\n    }\n    onRemove() {\n      const onRemove = R.pathOr(this.emptyFn, ['args', 'onRemove'])(this);\n      onRemove(this.args.model);\n    }\n    onAdd() {\n      const onAdd = R.pathOr(this.emptyFn, ['args', 'onAdd'])(this);\n      onAdd(this.args.model);\n    }\n    onPreview() {\n      const onPreview = R.pathOr(this.emptyFn, ['args', 'onPreview'])(this);\n      onPreview(this.args.model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onRemove\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAdd\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onAdd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPreview\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onPreview\"), _class.prototype), _class);\n});","define(\"client/pods/components/blogs/blogs-card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6oCq+5ZV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@onSetImage\\\",\\\"@onPreview\\\",\\\"@onRemove\\\",\\\"@onAdd\\\",\\\"@topRightRemove\\\",\\\"&attrs\\\",\\\"@compactMode\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"blogs-card__container\\\"],[13,7],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"onClick\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card blogs-card\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-image\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-1by1\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"blogs/files/files-default-image\\\",[],[[\\\"@fetchUploads\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\",\\\"@onSetImage\\\"],[true,[23,1,[]],\\\"blogs\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]],\\\"/-/scale_crop/500x500/smart\\\",[23,2,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content blogs-card__card-content\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-content blogs-card__title-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"title is-5\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-medium bigordr-slider-image-delete-btn\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,6,[]],[23,1,[]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-image\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-1by1\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"blogs/files/files-default-imageire\\\",[],[[\\\"@fetchUploads\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\",\\\"@onSetImage\\\"],[true,[23,1,[]],\\\"blogs\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]],\\\"/-/scale_crop/500x500/smart\\\",[23,2,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-content blogs-card__title-container\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@tagClassNames\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,1,[\\\"statusClass\\\"]],[23,1,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"title is-5\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content blogs-card__desc-container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[true,true,[23,1,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",[23,0,[\\\"onPreview\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isAdded\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@typeToDelete\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[true,\\\"\\\",\\\"fas fa-trash\\\",[23,0,[\\\"onRemove\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"isAdded\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",[23,0,[\\\"onAdd\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/blogs-card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/blogs-editor/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    classNames: ['col-container'],\n    disabled: false,\n    translate: true,\n    defaultProductType: null,\n    defaultProductStatus: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['blogs/lists/tags', 'statuses']);\n    },\n    actions: {\n      autoSetUrl(value) {\n        const model = this.model;\n        const url = R.pipe(R.trim, R.toLower, R.replace(/\\\\/g, ''), R.replace(/\\s/g, '-'))(value);\n        model.setData('url', url);\n      }\n\n      // replaceTemplate (onCloseDialogAction, template) {\n      //   const model = this.get('model')\n      //   model.setData('template', template)\n      //   onCloseDialogAction()\n      // },\n      // insertTemplate (onCloseDialogAction, template) {\n      //   const model = this.get('model')\n      //   const currentTemplate = model.getData('template')\n      //   let newTemplate = ''\n      //   if (currentTemplate) {\n      //     newTemplate = `${currentTemplate}<br>`\n      //   }\n      //   newTemplate = `${newTemplate} ${template}`\n\n      //   model.setData('template', newTemplate)\n      //   onCloseDialogAction()\n      // }\n    }\n  });\n});","define(\"client/pods/components/blogs/blogs-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gnoPYiSx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@onDash\\\",\\\"@disabled\\\",\\\"@onEdit\\\",\\\"@onRemoveRecordTask\\\",\\\"@isNew\\\",\\\"@onCancel\\\",\\\"@saveTask\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@hasErrors\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,4,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"_key\\\"]],\\\"edit\\\",\\\"new\\\"],null]],null],false],[0,\\\":\\\\n          \\\"],[1,[23,4,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"blogs\\\",false,true,[28,\\\"if\\\",[[23,15,[]],[23,15,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"blogs\\\",[23,14,[]],[23,3,[]],[23,13,[]],[23,12,[]]]]]],null],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"status_group\\\",[23,1,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"status\\\",[23,1,[]],[23,16,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,4,[\\\"statusClass\\\"]],true,[23,17,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,4,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"index\\\",[23,1,[]],true,\\\"display order\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"input--80\\\",[23,17,[]],[23,4,[\\\"_data\\\",\\\"index\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"basicInformation_group\\\",[23,1,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"name\\\",[23,1,[]],[23,16,[]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,17,[]],[23,4,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"description\\\",[23,1,[]],[23,16,[]],\\\"short description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,17,[]],[23,4,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"customAuthorDisplay\\\",[23,1,[]],[23,16,[]],\\\"custom author display\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,17,[]],[23,4,[\\\"_data\\\",\\\"customAuthorDisplay\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"customDateZDisplay\\\",[23,1,[]],[23,16,[]],\\\"custom date display\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.customDateZDisplay\\\",[23,4,[]],[23,4,[\\\"_data\\\",\\\"customDateZDisplay\\\"]],[23,17,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"seo_group\\\",[23,3,[]],\\\"seo\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"context\\\",\\\"formInitData\\\",\\\"label\\\"],[\\\"keywords\\\",[23,1,[]],\\\"website_seo_keywords\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"seoKeywords\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"context\\\",\\\"formInitData\\\",\\\"label\\\"],[\\\"description\\\",[23,1,[]],\\\"website_seo_description\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@maxlength\\\",\\\"@rows\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\"],[\\\"300\\\",\\\"3\\\",[22,\\\"isReadonly\\\"],[23,4,[\\\"_data\\\",\\\"seoDescription\\\"]],[23,4,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"isCanonical\\\",\\\"website_is_canonical\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,4,[\\\"_data\\\",\\\"isCanonical\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[23,1,[]],\\\"customUrl\\\",false,\\\"website_seo_custom_url\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[false,[23,17,[]],[23,4,[\\\"_data\\\",\\\"customUrl\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"headers\\\",[23,1,[]],[23,16,[]],false,\\\"website_headers\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,17,[]],[23,4,[\\\"_data\\\",\\\"headers\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"scripts\\\",[23,1,[]],[23,16,[]],false,\\\"website_scripts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,17,[]],[23,4,[\\\"_data\\\",\\\"scripts\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"uploads_group\\\",[23,1,[]],\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"uploads\\\",[23,1,[]],\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@adapterName\\\",\\\"@allowSetDefault\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\"],[[23,3,[]],\\\"uploads/collection\\\",true,true,[23,4,[]],false,\\\"blogs\\\",[23,4,[\\\"_data\\\",\\\"_key\\\"]],true]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"tags_group\\\",[23,1,[]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"tags\\\",[23,1,[]],[23,16,[]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"icon\\\",\\\"list\\\"],[[24,[\\\"isReadonly\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"adapterName\\\",\\\"legend\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"tab\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"allowEmpty\\\"],[true,\\\"blogs/lists/tags\\\",\\\"tags\\\",false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],[23,4,[]],true,\\\"_data._key\\\",\\\"_data.tags\\\",[23,3,[]],\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],false,[23,4,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"template_group\\\",[23,1,[]],\\\"template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInputClassNames\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"form__input--full-width\\\",\\\"template\\\",[23,16,[]],\\\"template\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"template\\\"]],true,true,[23,17,[]],[23,3,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,4,[]],[23,18,[]],[23,16,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,19,[]],[23,9,[]]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],[23,8,[\\\"isRunning\\\"]],[23,8,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[23,11,[\\\"isRunning\\\"]],[23,6,[]],[23,10,[]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[23,11,[\\\"isRunning\\\"]],[23,6,[]],[28,\\\"perform\\\",[[23,11,[]]],null]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@type\\\",\\\"@isPreview\\\",\\\"@master\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",[23,3,[]],\\\"blogs\\\",true,[23,4,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"blog\\\",\\\"blogKey\\\",\\\"name\\\"],[[23,4,[\\\"_data\\\",\\\"name\\\"]],[23,4,[\\\"_data\\\",\\\"_key\\\"]],[23,4,[\\\"_data\\\",\\\"name\\\"]]]]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/btn-back\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[23,6,[]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[23,6,[]],[28,\\\"action\\\",[[23,0,[]],[23,7,[]],[23,4,[]]],null]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/blogs-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/files/delete-files-gallery-uploader/component\", [\"exports\", \"client/pods/components/blogs/files/mixins/blogs-files\"], function (_exports, _blogsFiles) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_blogsFiles.default, {\n    fetchUploads: true,\n    allowSetDefault: true,\n    allowUploads: false,\n    showDefaultImagePreview: true\n  });\n});","define(\"client/pods/components/blogs/files/delete-files-gallery-uploader/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gr+9zRO5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"response\\\"],\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"classNames\\\"],[\\\"has-text-centered\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"files/files-fetcher\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"adapterName\\\",\\\"fetchUploadsOnInit\\\",\\\"fetchUploadsCollectionOnInit\\\"],[[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],\\\"uploads/collection\\\",false,true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"files/files-gallery\\\",null,[[\\\"adapterName\\\",\\\"showDefaultImagePreview\\\",\\\"uploads\\\",\\\"defaultImage\\\",\\\"onSetAsDefaultImageTask\\\",\\\"label\\\",\\\"translate\\\",\\\"allowSetDefault\\\",\\\"resource\\\",\\\"resourceKey\\\"],[\\\"uploads/collection\\\",[24,[\\\"showDefaultImagePreview\\\"]],[23,1,[\\\"uploadsCollection\\\",\\\"_data\\\",\\\"uploads\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"defaultImage\\\"]],[28,\\\"perform\\\",[[24,[\\\"setAsDefaultImageTask\\\"]]],null],[24,[\\\"label\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"allowSetDefault\\\"]],[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allowUploads\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"classNames\\\"],[\\\"has-text-centered\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"files/files-uploader\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"label\\\",\\\"tagName\\\"],[[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],\\\"upload images\\\",\\\"span\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/files/delete-files-gallery-uploader/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/files/files-default-image/component\", [\"exports\", \"client/pods/components/blogs/files/mixins/blogs-files\"], function (_exports, _blogsFiles) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_blogsFiles.default, {\n    fetchUploads: true\n  });\n});","define(\"client/pods/components/blogs/files/files-default-image/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oHs3sClP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"response\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"resourceKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"files/files-fetcher\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"adapterName\\\",\\\"fetchUploadsOnInit\\\",\\\"fetchUploadsCollectionOnInit\\\",\\\"onSetImage\\\"],[[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],\\\"uploads/collection\\\",false,true,[24,[\\\"onSetImage\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\",\\\"width\\\",\\\"height\\\"],[[23,1,[\\\"uploadsCollection\\\",\\\"defaultImageUuid\\\"]],[24,[\\\"transform\\\"]],[24,[\\\"width\\\"]],[24,[\\\"height\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/files/files-default-image/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/files/mixins/blogs-files\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"client/utils/nventor\"], function (_exports, _emberConcurrency, _crud, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { computed } from '@ember/object'\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, {\n    adapterNameForSetDefault: 'blogs',\n    adapterName: 'blogs',\n    // fetchUploadsTask: task(function * () {\n    //   const resourceKey = this.get('resourceKey')\n    //   if (resourceKey) {\n    //     const adapterName = this.get('adapterName')\n    //     const blog = yield this.get('dataManager').findRecord(adapterName, `/${resourceKey}`)\n    //     this.set('blog', blog)\n    //   }\n    // }),\n\n    setAsDefaultImageTask: (0, _emberConcurrency.task)(function* (file) {\n      if (this.allowSetDefault) {\n        // no need to send entire record over, should only update record, not replace\n        const adapterNameForSetDefault = this.adapterNameForSetDefault;\n        const resourceKey = this.resourceKey;\n        const blog = yield this.dataManager.findRecord({\n          adapterName: adapterNameForSetDefault,\n          appendPath: `/${resourceKey}`\n        });\n        const dirty = this.dataManager.getDirtyRecord(adapterNameForSetDefault, blog);\n        dirty.setData('defaultImage', file._data.uuid);\n        try {\n          return yield this.dataManager.updateRecord({\n            adapterName: adapterNameForSetDefault,\n            dirty\n          });\n        } catch (err) {\n          this.set('errors', err.data);\n          _nventor.default.throw('setAsDefaultImageTask failed', err);\n        }\n      }\n    }).drop()\n  });\n});","define(\"client/pods/components/blogs/panels-dash/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    search: Ember.inject.service(),\n    isGuest: false,\n    adapterName: 'blogs',\n    selectedStatusKey: null,\n    selectedTagKeys: null,\n    untagSelectedTagKeys: false,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['blogs/lists/tags', 'statuses']);\n      this.set('selectedItems', []);\n      this.set('selectedStatusKey', null);\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n    },\n    actions: {\n      selectItem(item, isSelected) {\n        const selected = this.get('selectedItems') || [];\n        if (isSelected === true) {\n          selected.pushObject(item);\n        } else {\n          selected.removeObject(item);\n        }\n        this.set('selectedItems', selected);\n      },\n      toggleSelectAllItems() {\n        const results = this.get('results') || [];\n        const selectedItems = this.get('selectedItems') || [];\n        if (selectedItems === results) {\n          this.set('selectedItems', []);\n        } else {\n          this.set('selectedItems', results);\n        }\n      },\n      resetSelectedItems() {\n        this.set('selectedItems', []);\n      },\n      resetSelectedStatusKeyAndSelectedItems() {\n        this.set('selectedStatusKey', null);\n        this.set('selectedItems', []);\n      },\n      resetSelectedTagKeys() {\n        this.set('selectedTagKeys', []);\n        this.set('untagSelectedTagKeys', false);\n      },\n      resetSelectedTagKeysAndSelectedItems() {\n        this.set('selectedTagKeys', []);\n        this.set('untagSelectedTagKeys', false);\n        this.set('selectedItems', []);\n      },\n      resetSelectedTagKeysAndStatusKeyAndSelectedItems() {\n        this.set('selectedStatusKey', null);\n        this.set('selectedTagKeys', []);\n        this.set('untagSelectedTagKeys', false);\n        this.set('selectedItems', []);\n      }\n    }\n  });\n});","define(\"client/pods/components/blogs/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VLyqyTGe\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content flex-container-row flex-container--wrap flex-container--justify-center\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableClassNames\\\",\\\"@tableViewOptions\\\"],[\\\"blogs/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,0,[\\\"onDisplay\\\"]],[23,0,[\\\"onEdit\\\"]],[23,0,[\\\"onDisplay\\\"]],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"fetchBlogsTask\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"tab\\\"]],\\\"blogs-dash\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isBulkEditing\\\",\\\"isAllowReorder\\\",\\\"onRemove\\\",\\\"onSelectItem\\\",\\\"onToggleSelectAllItems\\\",\\\"selectedItems\\\"],[[23,0,[\\\"adapterName\\\"]],[28,\\\"if\\\",[[24,[\\\"isGuest\\\"]],false,true],null],true,[24,[\\\"onRemove\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleSelectAllItems\\\"],null],[23,0,[\\\"selectedItems\\\"]]]]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\",\\\"@tagName\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[\\\"results\\\"]],[23,0,[\\\"onPaginationTask\\\"]],true,\\\"span\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@badge\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"filters\\\",\\\"tagsCount\\\"]],[28,\\\"if\\\",[[23,0,[\\\"selectedItems\\\"]],false,true],null],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"additionalData\\\",\\\"allowSubmitWhenEmpty\\\",\\\"appendPath\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"blogs/details/batch/tags\\\",[28,\\\"hash\\\",null,[[\\\"tags\\\",\\\"untag\\\"],[[23,0,[\\\"selectedTagKeys\\\"]],[23,0,[\\\"untagSelectedTagKeys\\\"]]]]],[23,0,[\\\"selectedTagKeys\\\"]],[28,\\\"concat\\\",[\\\"/\\\",[23,0,[\\\"master\\\"]],\\\"/tags\\\"],null],[23,0,[\\\"selectedItems\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resetSelectedTagKeysAndSelectedItems\\\"],null]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"resetSelectedTagKeys\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@hasUnsetToggle\\\",\\\"@isDisabledUnsetToggle\\\",\\\"@isModal\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@unsetToggleLabel\\\",\\\"@unsetToggleLabelTranslate\\\",\\\"@unsetToggleValue\\\"],[\\\"blogs/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,true,[28,\\\"if\\\",[[23,0,[\\\"selectedTagKeys\\\"]],false,true],null],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],[23,0,[]],true,\\\"_data._key\\\",[23,0,[\\\"tab\\\"]],false,\\\"selectedTagKeys\\\",\\\"untag\\\",true,[23,0,[\\\"untagSelectedTagKeys\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@badge\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"filters\\\",\\\"tagsCount\\\"]],[28,\\\"if\\\",[[23,0,[\\\"selectedItems\\\"]],false,true],null],\\\"fas fa-circle\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"additionalData\\\",\\\"allowSubmitWhenEmpty\\\",\\\"appendPath\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"blogs/details/batch/statuses\\\",[28,\\\"hash\\\",null,[[\\\"status\\\"],[[23,0,[\\\"selectedStatusKey\\\"]]]]],[23,0,[\\\"selectedStatusKey\\\"]],[28,\\\"concat\\\",[\\\"/\\\",[23,0,[\\\"master\\\"]],\\\"/statuses\\\"],null],[23,0,[\\\"selectedItems\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resetSelectedStatusKeyAndSelectedItems\\\"],null]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"resetSelectedTagKeys\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@isModal\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"blogs/details/batch/statuses\\\",true,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,0,[]],false,\\\"_data.value\\\",true,\\\"selectedStatusKey\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"selectedItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"selected items\\\"],null],false],[0,\\\":\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-badge\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"count\\\",[[23,0,[\\\"selectedItems\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"resetSelectedTagKeysAndStatusKeyAndSelectedItems\\\"]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/panels-display/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    adapterName: 'blogs',\n    errorMsg: Ember.computed(function () {\n      return this.intl.t('error occurred please try again later');\n    }),\n    init() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const model = this.get('tab.model');\n      this.set('model', model);\n    }\n  });\n});","define(\"client/pods/components/blogs/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LtJ3tn+3\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"blogs/blogs-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"onEdit\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"tab\\\",\\\"isDuplicate\\\",\\\"onDash\\\",\\\"onCancel\\\"],[[24,[\\\"model\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"updateRecordTask\\\"]],[24,[\\\"onEdit\\\"]],false,false,true,true,[24,[\\\"tab\\\"]],[24,[\\\"isDuplicate\\\"]],[24,[\\\"onDash\\\"]],[24,[\\\"onCancel\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/panels-edit/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    adapterName: 'blogs',\n    init() {\n      this.setup();\n      this._super(...arguments);\n    },\n    setup() {\n      const dirty = this.setupDirty({\n        model: this.get('tab.model')\n      });\n      this.set('dirty', dirty);\n    }\n  });\n});","define(\"client/pods/components/blogs/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yDH6KjuO\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"blogs/blogs-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"tab\\\",\\\"isDuplicate\\\",\\\"onCancel\\\",\\\"onRemoveRecordTask\\\"],[[24,[\\\"dirty\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"updateRecordTask\\\"]],false,true,false,false,[24,[\\\"tab\\\"]],[24,[\\\"isDuplicate\\\"]],[24,[\\\"onCancel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"noConfirm\\\"],[true]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/panels-new/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    server: Ember.inject.service(),\n    adapterName: 'blogs',\n    init: function () {\n      this._super(...arguments);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      if (!this.model) {\n        const master = this.master;\n        const result = yield this.server.call('GET', `api/protected/blogs/index/next`, {\n          master\n        });\n        const index = result.data ?? 1;\n        const name = this.name || '';\n        const data = {\n          name,\n          master,\n          index,\n          status: this.get('constants.status.active')\n        };\n\n        // setup new blogs model\n        const model = this.setupNewRecord({\n          data\n        });\n        this.set('model', model);\n      }\n    })\n  });\n});","define(\"client/pods/components/blogs/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SCc+WIDA\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"blogs/blogs-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"isNew\\\",\\\"tab\\\",\\\"isDuplicate\\\",\\\"onCancel\\\"],[[24,[\\\"model\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"createRecordTask\\\"]],true,[24,[\\\"tab\\\"]],[24,[\\\"isDuplicate\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/search-bar/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 BlogsSearchBarComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class BlogsSearchBarComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor4, this);\n      _initializerDefineProperty(this, \"displayFilters\", _descriptor5, this);\n      _initializerDefineProperty(this, \"blogs\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sliderBlogsArray\", _descriptor7, this);\n      _defineProperty(this, \"adapterName\", 'blogs');\n      _defineProperty(this, \"blogsFiltersAdapterName\", 'blogs/filters');\n      this.crud.addLists(this, ['blogs/lists/menu', 'blogs/lists/tags', 'blogs/lists/bigordr-blogs-slider-types', 'blogs/lists/line-count', 'filters/count', 'filters/sortDirection', 'statuses']);\n      this.filters = this.search.setupFilters({\n        adapterName: this.blogsFiltersAdapterName,\n        defaultFiltersData: {\n          resultsProperty: 'results',\n          master: this.args.master\n        }\n      });\n      this.sliderBlogsArray = this.args.preSelected || this.sliderBlogsArray;\n      this.searchInputTask.perform('', {\n        allowEmptyQuery: true\n      });\n    }\n    markBlogsAsIsSelected() {\n      R.pipe(R.pathOr([], ['filters', 'results']), R.map(blog => {\n        blog.set('isSelected', false);\n        return blog;\n      }), R.filter(R.includes(R.__, this.sliderBlogsArray)), R.forEach(blog => {\n        blog.set('isSelected', true);\n      }))(this);\n    }\n    *searchInputTask(query, {\n      allowEmptyQuery = false\n    } = {}) {\n      yield this.crud.searchInputTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters,\n        resultsProperty: 'blogs',\n        component: this,\n        allowEmptyQuery\n      }, query);\n      this.markBlogsAsIsSelected();\n    }\n    *fetchBlogsTask() {\n      this.blogs = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters\n      });\n      this.filters.reIndexResults();\n    }\n    *paginateSearchRecordsTask() {\n      yield this.crud.paginateSearchRecordsTask.perform({\n        filters: this.filters\n      });\n      this.markBlogsAsIsSelected();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"displayFilters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"blogs\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"sliderBlogsArray\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchInputTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchBlogsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchBlogsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"paginateSearchRecordsTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"paginateSearchRecordsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/blogs/search-bar/search-results/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/filters/status']);\n    }\n  });\n});","define(\"client/pods/components/blogs/search-bar/search-results/search-row/component\", [\"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 = Ember.Component.extend({\n    tagName: 'tr'\n  });\n});","define(\"client/pods/components/blogs/search-bar/search-results/search-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"S56QQJV8\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-search\\\"]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\"],[\\\"products\\\",[24,[\\\"item\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"40\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-left u-padding--3\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[true,[24,[\\\"item\\\",\\\"_data\\\",\\\"onSale\\\"]],\\\"on\\\",\\\"off\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"channels/shop/items/item-price\\\",null,[[\\\"campaign\\\",\\\"item\\\"],[[24,[\\\"campaign\\\"]],[24,[\\\"item\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[24,[\\\"item\\\",\\\"_data\\\",\\\"productTags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"tagClassNames\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"statusTagClassName\\\"]],[24,[\\\"item\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"add\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelect\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/search-bar/search-results/search-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/search-bar/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Grmh2PmH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"index\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"products/search-bar/search-results/search-row\\\",null,[[\\\"isHeaders\\\"],[true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/search-bar/search-results/search-row\\\",null,[[\\\"isDetailRow\\\",\\\"tab\\\",\\\"item\\\",\\\"onSelect\\\"],[true,[24,[\\\"tab\\\"]],[23,1,[]],[24,[\\\"onSelect\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/search-bar/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/search-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bMw0fpjF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onSelect\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header panel-grid__header-title__no-sticky\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container flex-row-space-between\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-row-space-around\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"placeholder\\\",\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[true,\\\"blogs\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[23,0,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,0,[\\\"searchInputTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"blogs/search-filters\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"crud\\\",\\\"fetchBlogsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onMainAction\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@list\\\",\\\"@paginationIsFooter\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"blogs/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"blogs\\\"]],false,[23,0,[\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isAllowReorder\\\",\\\"tab\\\",\\\"onSelect\\\"],[[23,0,[\\\"adapterName\\\"]],false,[23,2,[]],[23,1,[]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/search-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/search-filters/component\", [\"exports\", \"client/mixins/blogs-list-by\", \"client/mixins/crud\"], function (_exports, _blogsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _blogsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['blogs/lists/filters/search', 'blogs/lists/filters/sort', 'blogs/lists/filters/status', 'filters/count', 'filters/sortDirection']);\n    }\n  });\n});","define(\"client/pods/components/blogs/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5v4aRexR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"byLatest\\\"],[[24,[\\\"filters\\\"]],true]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.status\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/search-results/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['statuses']);\n    },\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/blogs/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yUE3gXBU\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"list-results__table\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"list-results__table-thumb\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\"],[[24,[\\\"result\\\",\\\"defaultImage\\\"]],\\\"/-/resize/40x\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"tagClassNames\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"statusTagClassName\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/tab-container/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\", \"client/mixins/blogs-list-by\", \"client/mixins/sortable-actions\"], function (_exports, _crud, _emberConcurrency, _blogsListBy, _sortableActions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _blogsListBy.default, _sortableActions.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    results: null,\n    resultsToggle: false,\n    adapterName: 'blogs',\n    filtersAdapterName: 'blogs/filters',\n    blogs: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['blogs/lists/menu', 'blogs/lists/tags', 'statuses']);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          master: this.master\n        }\n      });\n      this.set('filters', filters);\n      this.loadTabTask.perform();\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const model = loadInstructions.getData('model');\n        if (model) {\n          this.display(loadInstructions.getData('model'));\n        } else {\n          const id = loadInstructions.getData('find.id');\n          const found = yield this.findTask.perform({\n            appendPath: id\n          });\n          this.display(found);\n        }\n      } else {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        const results = yield this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters\n        });\n        this.set('results', results);\n        this.dash(results);\n      }\n    }),\n    fetchBlogsTask: (0, _emberConcurrency.task)(function* () {\n      const blogs = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters\n      });\n      this.set('blogs', blogs);\n    }),\n    refreshDash() {\n      this.dash();\n    },\n    dash(results) {\n      this.set('filters.showResults', false);\n      if (!results) {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        filters.setData('query', '');\n        this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters,\n          resultsProperty: 'results'\n        });\n      }\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'blogs/panels-dash'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    display(model, additionalOptions = {}) {\n      this.set('filters.showResults', false);\n      const panelOptions = {\n        component: 'blogs/panels-display',\n        model: model\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n    },\n    new(subTabOptions) {\n      this.set('resultsToggle', false);\n\n      // create tab within product tab\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    actions: {\n      dash() {\n        this.set('resultsToggle', false);\n        // should deselect results if any..\n        // this.deselectResult();\n        this.dash();\n      },\n      display(model, options) {\n        this.set('resultsToggle', false);\n        if (model) {\n          this.display(model, options);\n        } else {\n          // if no model then display dash (when model has been deleted)\n          this.dash();\n        }\n      },\n      new(subTabOptions) {\n        this.new(subTabOptions);\n      },\n      edit(model, additionalOptions) {\n        this.set('resultsToggle', false);\n        const tab = this.tab;\n        const panelOptions = {\n          component: 'blogs/panels-edit',\n          model: model\n        };\n        this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n      },\n      import(subTabOptions) {\n        const tab = this.tab;\n        this.tabsManager.replaceSubTab(tab, subTabOptions);\n      }\n    }\n  });\n});","define(\"client/pods/components/blogs/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"o2FAfPxL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterSearch\\\",\\\"blogs/panels-dash\\\"],null],\\\"blogs\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"classNames\\\",\\\"itemClassNames\\\",\\\"page\\\",\\\"count\\\",\\\"onPaginationTask\\\",\\\"lastSearchSettings\\\",\\\"onSelect\\\"],[[24,[\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[24,[\\\"page\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"lastSearchSettings\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"blogs/search-results\\\",null,[[\\\"query\\\",\\\"result\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"master\\\",\\\"filters\\\",\\\"results\\\",\\\"onEdit\\\",\\\"onDisplay\\\",\\\"onDash\\\",\\\"onCancel\\\",\\\"onImportTask\\\",\\\"onPaginationTask\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[24,[\\\"master\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[24,[\\\"importTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/blogs/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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, _dec0, _dec1, _dec10, _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 BlogsTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class BlogsTableViewDetailRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragAndDrop\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor3, this);\n      _initializerDefineProperty(this, \"showUploadsRow\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isReadyMode\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isEditMode\", _descriptor6, this);\n      _initializerDefineProperty(this, \"modelProxy\", _descriptor7, this);\n      _defineProperty(this, \"adapterName\", 'blogs');\n      this.crud.addLists(this, ['blogs/lists/menu', 'blogs/lists/tags', 'statuses']);\n      this.modelProxy = this.args.model;\n    }\n    get isDraggable() {\n      if (this.args.tableViewOptions.isReadonly) {\n        return false;\n      }\n      if (!this.args.tableViewOptions.isAllowReorder) {\n        return false;\n      }\n      return true;\n    }\n    get rowClassName() {\n      return `table-view__detail-row ${this.dropPosition}`;\n    }\n    get description() {\n      const div = document.createElement('div');\n      div.innerHTML = R.pathOr('', ['args', 'model', '_data', 'description'])(this);\n      return div.innerText;\n    }\n    get updateRecordIndexOnDrop() {\n      return R.pathOr(true, ['args', 'tableViewOptions', 'updateRecordIndexOnDrop'])(this);\n    }\n    get isSelected() {\n      const selectedItems = R.pathOr([], ['args', 'tableViewOptions', 'selectedItems'])(this);\n      if (selectedItems.indexOf(this.args.model) > -1) {\n        return true;\n      }\n      return false;\n    }\n    *updateRecordTask() {\n      this.modelProxy = yield this.crud.updateRecordTask.perform({\n        adapterName: this.adapterName,\n        model: this.modelProxy,\n        tab: this.args.tab\n      });\n      this.cancelDirty();\n    }\n    setupDirty() {\n      this.modelProxy = this.crud.setupDirty({\n        model: this.args.model,\n        adapterName: this.adapterName\n      });\n      this.isReadyMode = false;\n      this.isEditMode = true;\n    }\n    cancelDirty() {\n      if (this.modelProxy.isDirty) {\n        this.crud.cancelEditing({\n          adapterName: this.adapterName,\n          dirty: this.modelProxy\n        });\n      }\n      this.isReadyMode = true;\n      this.isEditMode = false;\n    }\n    drop(indexStart, indexEnd, results) {\n      let reIndexBlogs;\n      if (indexStart > indexEnd) {\n        reIndexBlogs = R.slice(indexEnd, R.inc(indexStart))(results);\n      } else {\n        reIndexBlogs = R.slice(indexStart, R.inc(indexEnd))(results);\n      }\n      const master = R.view(R.lensPath([0, '_data', 'master']))(results);\n      if (this.updateRecordIndexOnDrop) {\n        this.crud.adapterCallTask.perform('updateIndexes', {\n          adapterName: 'blogs/details/batch',\n          appendPath: `/${master}/indexes`,\n          model: reIndexBlogs\n        });\n      }\n      if (this.args.tableViewOptions.onReorder) {\n        this.args.tableViewOptions.onReorder(...arguments);\n      }\n    }\n    dragOver() {\n      if (this.args.tableViewOptions.onDragOver) {\n        this.dropPosition = this.args.tableViewOptions.onDragOver(...arguments);\n      }\n    }\n    dragStart() {\n      if (this.args.tableViewOptions.onDragStart) {\n        this.args.tableViewOptions.onDragStart(...arguments);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragAndDrop\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showUploadsRow\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isReadyMode\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isEditMode\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"modelProxy\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateRecordTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelDirty\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"drop\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"drop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragOver\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"dragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragStart\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"dragStart\"), _class.prototype), _class);\n});","define(\"client/pods/components/blogs/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LAClfkU1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@tableViewOptions\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@results\\\",\\\"@isDetailRow\\\",\\\"@isReadyMode\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"onToggleSelectAllItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"u-margin-right-10\\\",\\\"select all\\\",[23,7,[]],[23,2,[\\\"onToggleSelectAllItems\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"index\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"display order\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"images\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"images\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"name\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"blog\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"timestampZ\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"created date\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"timestampZ_latest\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"customDateZDisplay\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"custom date display\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"productsTags\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"status\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\",\\\"@tagName\\\"],[[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],[23,0,[\\\"isDraggable\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"index\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDrop\\\"]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"index\\\"]],[23,5,[]],[23,0,[\\\"drop\\\"]]],null],\\\"tr\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"onSelectItem\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-checkbox\\\",[[12,\\\"class\\\",\\\"u-icon-size-20\\\"]],[[\\\"@value\\\",\\\"@disabled\\\",\\\"@onToggle\\\"],[[23,0,[\\\"isSelected\\\"]],false,[28,\\\"fn\\\",[[23,2,[\\\"onSelectItem\\\"]],[23,0,[\\\"modelProxy\\\"]]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@onDragStart\\\",\\\"@data\\\"],[[23,0,[\\\"isDraggable\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"index\\\"]],[23,0,[\\\"modelProxy\\\"]]],null],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"index\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"modelProxy\\\",\\\"displayIndex\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowUploads\\\",\\\"@model\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\"],[[23,1,[]],false,false,false,[23,0,[\\\"modelProxy\\\"]],true,\\\"blogs\\\",[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"/-/scale_crop/64x64/smart\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"store-items__advanced-toggler-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\",\\\"isReadonly\\\",\\\"disabled\\\"],[\\\"fas fa-images\\\",true,true,[23,0,[\\\"showUploadsRow\\\"]],[23,2,[\\\"isReadonly\\\"]],[23,2,[\\\"isReadonly\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"description\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"timestampZ\\\"]],\\\"YYYY-MM-DD HH:mm\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"timestampZ_latest\\\"]],\\\"YYYY-MM-DD HH:mm\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"customDateZDisplay\\\"]],\\\"YYYY-MM-DD\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],\\\"_data._key\\\",false,[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"tags\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@tagClassNames\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,0,[\\\"modelProxy\\\",\\\"statusClass\\\"]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-pen\\\",[28,\\\"fn\\\",[[23,4,[]],[23,0,[\\\"modelProxy\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",[28,\\\"fn\\\",[[23,3,[]],[23,0,[\\\"modelProxy\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"onSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,0,[\\\"modelProxy\\\",\\\"isSelected\\\"]],[28,\\\"fn\\\",[[23,2,[\\\"onSelect\\\"]],[23,0,[\\\"modelProxy\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"onRemove\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,2,[\\\"isSelectedByTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-trash\\\",[23,2,[\\\"isReadonly\\\"]],[28,\\\"fn\\\",[[23,2,[\\\"onRemove\\\"]],[23,0,[\\\"modelProxy\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"store-items__advanced-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-row\\\",[[12,\\\"class\\\",\\\"has-text-centered\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\"],[[23,1,[]],true,[23,0,[\\\"modelProxy\\\"]],[23,2,[\\\"adapterName\\\"]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"_key\\\"]],false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/blogs/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/bot/message-window-toggler/component\", [\"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 = Ember.Component.extend({\n    actions: {\n      toggleBotMessageWindow() {\n        this.onToggle();\n      }\n    }\n  });\n});","define(\"client/pods/components/bot/message-window-toggler/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GEIS6rvS\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bot-chat-toggle\\\"],[11,\\\"onclick\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleBotMessageWindow\\\"],null]],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"figure\\\",true],[10,\\\"style\\\",\\\"margin: auto\\\"],[10,\\\"class\\\",\\\"image is-48x48\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"is-rounded\\\"],[10,\\\"src\\\",\\\"https://img.icons8.com/plasticine/344/bot.png\\\"],[10,\\\"alt\\\",\\\"User Profile Picture\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"status\\\"],[8],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/bot/message-window-toggler/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/bot/message-window/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    storage: Ember.inject.service(),\n    searchService: Ember.inject.service('search'),\n    filtersAdapterName: 'messages/messages/filters',\n    isBotVisible: false,\n    async init() {\n      this._super(...arguments);\n      const tokenData = this.storage.get('tokenData');\n      const locale = this.storage.getWithoutPrefix('language');\n      const model = this.dataManager.setAsRecord({\n        adapterName: 'messages/users',\n        data: {\n          id: tokenData.uid,\n          name: tokenData.name,\n          email: tokenData.email,\n          locale\n        }\n      });\n      this.set('model', model);\n      this.getFlows.perform();\n      this.getPrivateFlows.perform();\n    },\n    getFlows: (0, _emberConcurrency.task)(function* () {\n      const flows = yield this.server.call('GET', 'api/protected/bot/flows');\n      this.set('flows', flows.data);\n    }),\n    getPrivateFlows: (0, _emberConcurrency.task)(function* () {\n      const privateFlows = yield this.server.call('GET', 'api/protected/bot/flows/private');\n      this.set('privateFlows', privateFlows.data);\n    })\n  });\n});","define(\"client/pods/components/bot/message-window/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hdkgpVQU\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"classNames\\\"],[\\\"has-text-right\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"label\\\",\\\"toggleValue\\\"],[\\\"bot\\\",[24,[\\\"isBotVisible\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"isBotVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"messages/tab-container/messages-window\\\",null,[[\\\"model\\\",\\\"isBot\\\",\\\"flows\\\",\\\"privateFlows\\\"],[[24,[\\\"model\\\"]],true,[24,[\\\"flows\\\"]],[24,[\\\"privateFlows\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/bot/message-window/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/bsp/virtual-account-editor/component\", [\"exports\", \"ramda\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, R, _component, _emberConcurrencyDecorators, _nventor, _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;\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: Future backend validation\n  let BspVirtualAccountEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class BspVirtualAccountEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      // @service tabsManager\n      _initializerDefineProperty(this, \"modelProxy\", _descriptor2, this);\n      _initializerDefineProperty(this, \"virtualAccountErrors\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hashKeysErrors\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args?.adapterName || 'settings');\n      const isEditing = this?.args?.isEditing;\n      const model = this.args?.model || {};\n      const tab = this.args?.tab || {};\n      this.tab = tab;\n      this.modelProxy = _nventor.default.createModel(_model.default, {\n        enabled: false,\n        isDefault: false,\n        merchantId: '',\n        hash: {}\n      });\n      if (isEditing) {\n        const parentModel = R.pathOr(null, ['args', 'parentModel'])(this);\n        const twPaymentsBsp = R.pathOr({}, ['_data', 'tw_payments_bsp'])(parentModel);\n        const virtualAccounts = R.pathOr([], ['virtualAccounts'])(twPaymentsBsp);\n        const data = R.pipe(R.pathOr({}, ['_data']), R.clone)(model);\n        const currentEditModelIndex = R.findIndex(R.pathEq(['_data', 'merchantId'], data.merchantId))(virtualAccounts);\n        this.modelProxy.set('_data', data);\n        this.modelProxy.set('index', currentEditModelIndex);\n      }\n    }\n    get hasErrors() {\n      if (this.virtualAccountErrors.length !== 0 || this.hashKeysErrors.length !== 0) {\n        return true;\n      }\n      return false;\n    }\n\n    // @TODO: should all use backend validation\n    validateVirtualAccount() {\n      // Uniq names\n      const currentMerchantId = R.pathOr('', ['modelProxy', '_data', 'merchantId'])(this);\n      if (!currentMerchantId) {\n        this.virtualAccountErrors = [{\n          type: 'isRequired',\n          message: 'is required',\n          path: ['merchantId'],\n          context: {\n            key: 'merchantId'\n          },\n          isError: true\n        }];\n      } else if (currentMerchantId?.length !== 10) {\n        this.virtualAccountErrors = [{\n          type: 'incorrectLength',\n          message: 'incorrect length',\n          path: ['merchantId'],\n          context: {\n            key: 'merchantId'\n          },\n          isError: true\n        }];\n      }\n      const hash = R.pathOr({}, ['modelProxy', '_data', 'hash'])(this);\n      const HASH_KEYS = ['A1', 'A2', 'B1', 'B2'];\n      HASH_KEYS.forEach(key => {\n        if (!hash?.[key]) {\n          this.hashKeysErrors.push({\n            type: 'isRequired',\n            message: 'is required',\n            path: [`hash.${key}`],\n            context: {\n              key: `hash.${key}`\n            },\n            isError: true\n          });\n        } else if (hash[key].length !== 16) {\n          this.hashKeysErrors.push({\n            type: 'incorrctLength',\n            message: 'incorrect length',\n            path: [`hash.${key}`],\n            context: {\n              key: `hash.${key}`\n            },\n            isError: true\n          });\n        }\n      });\n      if (this.hasErrors) {\n        throw new Error('Frontend Validation Error: BspVirtualAccountEditor Error');\n      }\n    }\n    isMerchantIdUniq() {\n      // Uniq names\n      const virtualAccounts = R.pathOr([], ['args', 'parentModel', '_data', 'tw_payments_bsp', 'virtualAccounts'])(this);\n      const currentMerchantId = R.pathOr('', ['modelProxy', '_data', 'merchantId'])(this);\n      const virtualAccountMerchantIds = R.pipe(R.map(R.pathOr('', ['_data', 'merchantId'])))(virtualAccounts);\n      const duplicateMerchantId = virtualAccountMerchantIds?.find(id => id === currentMerchantId);\n      if (duplicateMerchantId) {\n        this.virtualAccountErrors = [{\n          type: 'isUnique',\n          message: 'not unique',\n          path: ['merchantId'],\n          context: {\n            key: 'merchantId'\n          },\n          isError: true\n        }];\n        throw new Error('MerchantId Already in Used!!!');\n      }\n    }\n    *updateVirtualAccountsTask({\n      remove = false\n    } = {}) {\n      const parentModel = R.pathOr(null, ['args', 'parentModel'])(this);\n      try {\n        if (parentModel) {\n          const twPaymentsBsp = R.pathOr({}, ['_data', 'tw_payments_bsp'])(parentModel);\n          const virtualAccounts = R.pathOr([], ['virtualAccounts'])(twPaymentsBsp);\n          this.hashKeysErrors = [];\n          this.virtualAccountErrors = [];\n          if (this?.args?.isEditing) {\n            const index = this.modelProxy.index;\n            virtualAccounts.removeAt(index);\n            if (!remove) {\n              virtualAccounts.insertAt(index, this.modelProxy);\n              this.validateVirtualAccount();\n              this.isMerchantIdUniq();\n            }\n          } else {\n            this.validateVirtualAccount();\n            const isFirstVirtualAccount = R.length(virtualAccounts) === 0;\n            if (isFirstVirtualAccount) {\n              const merchantId = this?.modelProxy?._data?.merchantId;\n              parentModel.set('_data.tw_payments_bsp.defaultVirtualAccount', merchantId);\n              this.modelProxy.setData('enabled', true);\n              this.modelProxy.setData('isDefault', true);\n            }\n            virtualAccounts.addObject(this.modelProxy);\n          }\n          parentModel.setData('tw_payments_bsp.virtualAccounts', virtualAccounts);\n        }\n        this.onCloseDialogAction();\n      } catch (error) {\n        console.log(error.message);\n      }\n    }\n    *cancelEdittingTask() {\n      this.onCloseDialogAction();\n    }\n    onCloseDialogAction() {\n      const toggleShowEditor = R.pathOr(null, ['args', 'toggleShowEditor'])(this);\n      const onCloseDialogAction = R.pathOr(null, ['args', 'onCloseDialogAction'])(this);\n      const onCloseDialogActionListSelector = R.pathOr(null, ['args', 'addItemOptions', 'onCloseDialogActionListSelector'])(this);\n      const virtualAccounts = R.pathOr(null, ['args', 'parentModel', '_data', 'tw_payments_bsp', 'virtualAccounts'])(this);\n      const isFirstVirtualAccount = R.length(virtualAccounts) === 1;\n      if (isFirstVirtualAccount) {\n        return onCloseDialogActionListSelector();\n      }\n      if (onCloseDialogAction) {\n        return onCloseDialogAction();\n      }\n      if (toggleShowEditor) {\n        return toggleShowEditor(false);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"modelProxy\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"virtualAccountErrors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hashKeysErrors\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateVirtualAccountsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateVirtualAccountsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEdittingTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEdittingTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCloseDialogAction\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onCloseDialogAction\"), _class.prototype), _class);\n});","define(\"client/pods/components/bsp/virtual-account-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FHGDqRM8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"twPaymentsBsp\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"extensions_tw_bsp\\\",[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,6,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"bsp_virtualAccount\\\",\\\"bsp_virtualAccount_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"merchantId\\\",[23,1,[]],[23,0,[\\\"virtualAccountErrors\\\"]],\\\"bsp_merchant_id\\\",[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,7,[]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"merchantId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"hash.A1\\\",[23,1,[]],[23,0,[\\\"hashKeysErrors\\\"]],\\\"bsp_hash\\\",[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,[23,7,[]],\\\"A1\\\",[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"hash\\\",\\\"A1\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@tab\\\"],[\\\"hash.A2\\\",[23,1,[]],[23,0,[\\\"hashKeysErrors\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,[23,7,[]],\\\"A2\\\",[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"hash\\\",\\\"A2\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@tab\\\"],[\\\"hash.B1\\\",[23,1,[]],[23,0,[\\\"hashKeysErrors\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,[23,7,[]],\\\"B1\\\",[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"hash\\\",\\\"B1\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@tab\\\"],[\\\"hash.B2\\\",[23,1,[]],[23,0,[\\\"hashKeysErrors\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,[23,7,[]],\\\"B2\\\",[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"hash\\\",\\\"B2\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-trash\\\",[23,0,[\\\"updateVirtualAccountsTask\\\",\\\"isRunning\\\"]],\\\"\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateVirtualAccountsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"remove\\\"],[true]]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"updateVirtualAccountsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"cancelEdittingTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"cancelEdittingTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"update\\\",[23,0,[\\\"updateVirtualAccountsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateVirtualAccountsTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add\\\",[23,0,[\\\"updateVirtualAccountsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateVirtualAccountsTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/bsp/virtual-account-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/calendar/calendar-day/component\", [\"exports\", \"ramda\", \"client/mixins/date\"], function (_exports, R, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    tagName: '',\n    isToday: Ember.computed('day.dateZ', 'todayZ', 'dateZ', function () {\n      if (this.todayZ === this.get('day.dateZ')) {\n        return true;\n      }\n      return false;\n    }),\n    schedule: Ember.computed('data.[]', 'day.dateZ', 'dateZ', function () {\n      const data = this.data || [];\n      const currentZ = this.get('day.dateZ');\n      const schedule = R.filter(item => this.getStartOfDayZ(item._data.dateStartZ) <= currentZ && this.getStartOfDayZ(item._data.dateEndZ) >= currentZ)(data);\n      return schedule;\n    })\n  });\n});","define(\"client/pods/components/calendar/calendar-day/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nXzvSmMx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"model\\\"],\\\"statements\\\":[[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-calendar__td\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"u-calendar__day \\\",[28,\\\"if\\\",[[24,[\\\"isToday\\\"]],\\\" u-calendar__day--is-today \\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"day\\\",\\\"dd\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"schedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-left u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[24,[\\\"scheduleComponent\\\"]]],[[\\\"isToday\\\",\\\"model\\\"],[[24,[\\\"isToday\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/calendar/calendar-day/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/calendar/calendar-month/component\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    crud: Ember.inject.service(),\n    firstWeekday: 'sunday',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['periods/months', 'periods/years']);\n      const period = this.period;\n      this.setCalendarMonth(period);\n    },\n    setCalendarMonth(period) {\n      const today = this.getPeriod();\n      const current = period || today;\n      const daysByWeeks = this.getDaysOfMonthForCalendar(current.dateZ);\n      const mm = current.mm;\n      this.set('daysByWeeks', daysByWeeks);\n      this.set('dateZ', current.dateZ);\n      this.set('mm', mm);\n      this.set('yyyy', current.yyyy);\n      this.set('todayZ', today.dateZ);\n      this.set('current', current);\n    },\n    daysOfWeek: Ember.computed('firstWeekday', 'dateZ', function () {\n      return this.getWeekdays(this.firstWeekday);\n    }),\n    daysByWeeks: Ember.computed('firstWeekday', 'dateZ', function () {\n      return this.getWeekdays(this.firstWeekday);\n    }),\n    actions: {\n      previousMonth(current) {\n        const previous = this.getPreviousPeriod(current.dateZ);\n        this.setCalendarMonth(previous);\n        return this.onPreviousMonth(previous);\n      },\n      nextMonth(current) {\n        const next = this.getNextPeriod(current.dateZ);\n        this.setCalendarMonth(next);\n        return this.onNextMonth(next);\n      },\n      displayByCustom(onCloseDialogAction) {\n        const yyyy = this.yyyy;\n        const mm = this.mm;\n        const selected = this.getMonthStart(yyyy, mm);\n        const toPeriod = this.getPeriod(selected);\n        this.setCalendarMonth(toPeriod);\n        try {\n          if (onCloseDialogAction) {\n            onCloseDialogAction();\n          }\n        } catch (e) {\n          console.error('could not close dialog. no dialog action');\n        }\n        return this.onNextMonth(toPeriod);\n      }\n    }\n  });\n});","define(\"client/pods/components/calendar/calendar-month/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dmGcLBTZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"week\\\",\\\"day\\\",\\\"weekday\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-section\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-arrow-left\\\",[28,\\\"action\\\",[[23,0,[]],\\\"previousMonth\\\",[24,[\\\"current\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n  \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"month\\\",[24,[\\\"current\\\",\\\"mm\\\"]]],null]],null],false],[0,\\\" \\\"],[1,[24,[\\\"current\\\",\\\"yyyy\\\"]],false],[0,\\\"\\\\n  \\\\n\\\"],[4,\\\"elements/element-dropdown-btn\\\",null,[[\\\"icon\\\"],[\\\"fas fa-calendar\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"label\\\",\\\"value\\\"],[false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-months\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"month\\\",[24,[\\\"mm\\\"]]],null]],null],[24,[\\\"mm\\\"]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"label\\\",\\\"value\\\"],[false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-years\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"yyyy\\\"]],[24,[\\\"yyyy\\\"]]]]],false],[0,\\\"\\\\t\\\\t\\\\t\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[false,\\\"generate\\\",[28,\\\"or\\\",[[24,[\\\"fetchMonthTask\\\",\\\"isRunning\\\"]],[24,[\\\"fetchYearTask\\\",\\\"isRunning\\\",\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustom\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-arrow-right\\\",[28,\\\"action\\\",[[23,0,[]],\\\"nextMonth\\\",[24,[\\\"current\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-calendar__table u-full-width\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"daysOfWeek\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-calendar__header\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,3,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"daysByWeeks\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-calendar__tr\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"calendar/calendar-day\\\",null,[[\\\"scheduleComponent\\\",\\\"day\\\",\\\"dateZ\\\",\\\"todayZ\\\",\\\"data\\\"],[[24,[\\\"scheduleComponent\\\"]],[23,2,[]],[24,[\\\"dateZ\\\"]],[24,[\\\"todayZ\\\"]],[24,[\\\"data\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/calendar/calendar-month/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/advanced-template/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopCampaignsCampaignsEditorAdvancedTemplateComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsEditorAdvancedTemplateComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/advanced-template/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+kZrWhGQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onSaveTask\\\",\\\"@onCancel\\\",\\\"@errors\\\",\\\"@pagesCollection\\\",\\\"@website\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isNew\\\",\\\"@onEdit\\\",\\\"@isEditing\\\",\\\"@tab\\\",\\\"@allowWebBuilder\\\",\\\"@dataTabContainer\\\",\\\"@channelsShopAdapterName\\\",\\\"@channelsShopKey\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"advancedTemplate\\\",\\\"_data\\\",\\\"templateType\\\"]],[23,0,[\\\"constants\\\",\\\"templateTypes\\\",\\\"blocks\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor\\\",[],[[\\\"@website\\\",\\\"@page\\\",\\\"@tab\\\",\\\"@pagesCollection\\\",\\\"@onSaveTask\\\",\\\"@onEdit\\\",\\\"@isEditing\\\",\\\"@channelsShopKey\\\",\\\"@channelsShopAdapterName\\\",\\\"@dataTabContainer\\\",\\\"@hasFooterBtns\\\",\\\"@hasPreviewBtnsOnly\\\",\\\"@yieldFooter\\\"],[[23,5,[]],[23,6,[\\\"_data\\\",\\\"advancedTemplate\\\"]],[23,11,[]],[23,4,[]],[23,1,[]],[23,9,[]],[23,10,[]],[23,15,[]],[23,14,[]],[23,13,[]],false,true,true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,16,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,16,[]],[23,1,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"websites/websites-editor/pages-editor\\\",null,[[\\\"channelsShopKey\\\",\\\"channelsShopAdapterName\\\",\\\"dataTabContainer\\\",\\\"allowWebBuilder\\\",\\\"tab\\\",\\\"isEditing\\\",\\\"onEdit\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"website\\\",\\\"fullscreenOnInit\\\",\\\"pagesCollection\\\",\\\"errors\\\",\\\"onCancel\\\",\\\"onSaveTask\\\"],[[23,15,[]],[23,14,[]],[23,13,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[\\\"_data\\\",\\\"advancedTemplate\\\"]],[23,5,[]],true,[23,4,[]],[23,3,[]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/advanced-template/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    applicationService: Ember.inject.service('application'),\n    showEditModal: false,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['automations/when', 'automations/when/itemQty', 'automations/when/itemValue', 'automations/criterias', 'automations/thenActions', 'automations/thenSelectionTypes', 'channels/shop/campaigns/statuses', 'products/lists/tags']);\n    },\n    // addAutomationModelTask: task(function * (automationModel) {\n    //   const model = this.get('model')\n    //   automationModel.setData('master', model.getData('_key'))\n    //   return yield this.get('createRecordTask').perform({\n    //     adapterName: 'channels/shop/campaigns/automations',\n    //     model: automationModel,\n    //     errorsProp: 'automationErrors'\n    //   })\n    // }),\n\n    actions: {\n      cancel(onCloseDialogAction) {\n        onCloseDialogAction();\n      },\n      // newAutomationModel () {\n      //   const automationsCollection = this.get('automationsCollection')\n      //   const index = automationsCollection.get('lastObject._data.index') || 0\n      //   const newBlankAutomationModel = this.setupNewRecord({\n      //     adapterName: 'channels/shop/campaigns/automations',\n      //     data: {\n      //       index: index + 1\n      //     }\n      //   })\n\n      //   this.set('newBlankAutomationModel', newBlankAutomationModel)\n      // },\n\n      // editAutomation (automationModel) {\n      //   const dirty = this.get('dataManager').getDirtyRecord('channels/shop/campaigns/automations', automationModel)\n\n      //   return dirty\n      // },\n      async cancelEditAutomation(automationModel) {\n        return this.dataManager.cancelDirty('channels/shop/campaigns/automations', automationModel);\n      },\n      async updateAutomation(automationModel) {\n        this.replaceRecordTask.perform({\n          adapterName: 'channels/shop/campaigns/automations',\n          model: automationModel,\n          errorsProp: 'automationErrors'\n        });\n        Ember.set(this, 'showEditModal', false);\n      },\n      async removeAutomation(automationModel) {\n        return this.removeRecordTask.perform({\n          adapterName: 'channels/shop/campaigns/automations',\n          model: automationModel\n        });\n      },\n      loadItem(product) {\n        const automationModel = this.automationModel;\n        automationModel.setData('itemCode', product.getData('code'));\n      },\n      resetItem() {\n        const automationModel = this.automationModel;\n        automationModel.setData('itemCode', '');\n      },\n      toggleAdvanced() {\n        this.toggleProperty('showAdvanced');\n      }\n    },\n    editAutomation(automationModel) {\n      Ember.set(this, 'showEditModal', true);\n      const dirty = this.setupDirty({\n        adapterName: 'channels/shop/campaigns/automations',\n        model: automationModel\n      });\n      this.set('dirty', dirty);\n      this.set('errors', null);\n    },\n    cancel() {\n      Ember.set(this, 'showEditModal', false);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"editAutomation\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"editAutomation\"), _obj), _applyDecoratedDescriptor(_obj, \"cancel\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"cancel\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class CampaignsCampaignsEditorAutomationsEditorPanelsDisplay extends _component.default {}\n  _exports.default = CampaignsCampaignsEditorAutomationsEditorPanelsDisplay;\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SWTv14k9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@automationDetails\\\",\\\"@automationModel\\\",\\\"@master\\\",\\\"@productsList\\\",\\\"@searchProductsTask\\\",\\\"@tab\\\",\\\"@isDisabled\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@onEditAutomationItem\\\",\\\"@onLoadItem\\\",\\\"@onResetItem\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@selectedAutomation\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,2,[\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor\\\",[],[[\\\"@automationDetails\\\",\\\"@automationModel\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@productsList\\\",\\\"@searchProductsTask\\\",\\\"@tab\\\"],[[23,1,[]],[23,2,[]],false,false,true,[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details\\\",[],[[\\\"@automationDetails\\\",\\\"@automationModel\\\",\\\"@isDisabled\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@onEditAutomationItem\\\",\\\"@onLoadItem\\\",\\\"@onResetItem\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@productsList\\\",\\\"@searchProductsTask\\\",\\\"@selectedAutomation\\\",\\\"@tab\\\"],[[23,1,[]],[23,2,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,3,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,4,[]],[23,5,[]],[23,15,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-new/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    isEditing: false,\n    isNew: true,\n    isReadonly: false,\n    init() {\n      this._super(...arguments);\n      this.newAutomationModel();\n    },\n    newAutomationModel() {\n      const master = this.master;\n      const automations = this.get('automationsCollection._data.automations') || [];\n      const index = automations.get('lastObject._data.index') || 0;\n      const newBlankAutomationModel = this.crud.setupNewRecord({\n        adapterName: 'channels/shop/campaigns/automations',\n        data: {\n          index: index + 1,\n          master: master.getData('_key')\n        }\n      });\n      newBlankAutomationModel.set('instance', Math.random());\n      this.set('automationModel', newBlankAutomationModel);\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        this.set('automationModel', '');\n        this._super(...arguments);\n      }\n    },\n    actions: {\n      nextStep(saved) {\n        this.set('automationModel', saved);\n        this.set('isNew', false);\n        this.set('isEditing', false);\n        this.set('isReadonly', true);\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tHyvPFr5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@onCloseDialogAction\\\",\\\"@master\\\",\\\"@productsList\\\",\\\"@searchProductsTask\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"automationModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor\\\",[],[[\\\"@automationModel\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@onAfterCreate\\\",\\\"@onCancel\\\",\\\"@onSaveTask\\\",\\\"@productsList\\\",\\\"@searchProductsTask\\\",\\\"@tab\\\"],[[23,0,[\\\"automationModel\\\"]],[23,0,[\\\"isEditing\\\"]],[23,0,[\\\"isNew\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,3,[]],[28,\\\"action\\\",[[23,0,[]],\\\"nextStep\\\"],null],[23,2,[]],[22,\\\"createRecordTask\\\"],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details\\\",[],[[\\\"@automationModel\\\",\\\"@isDisabled\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@onEditAutomationItem\\\",\\\"@onLoadItem\\\",\\\"@onResetItem\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@productsList\\\",\\\"@searchProductsTask\\\",\\\"@selectedAutomation\\\",\\\"@tab\\\"],[[23,0,[\\\"automationModel\\\"]],[22,\\\"isDisabled\\\"],true,[23,3,[]],[22,\\\"onEditAutomationItem\\\"],[22,\\\"onLoadItem\\\"],[22,\\\"onResetItem\\\"],[22,\\\"onSetAsDefaultImageTask\\\"],[23,4,[]],[23,5,[]],[22,\\\"selectedAutomation\\\"],[23,6,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,0,[\\\"automationModel\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n        \\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"channels/shop/campaigns/automations\\\",[23,0,[\\\"automationModel\\\"]],true,[23,2,[]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"automationModel\\\",\\\"hasDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@closeOnOverlayClick\\\"],[\\\"fas fa-plus\\\",\\\"add product\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"channels/shop/campaigns/campaigns-item-editor\\\",[],[[\\\"@campaignDetailAdapterName\\\",\\\"@campaign\\\",\\\"@campaignDetails\\\",\\\"@automationModel\\\",\\\"@isAutomations\\\",\\\"@isDisplay\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@onDone\\\",\\\"@onCancel\\\",\\\"@tab\\\"],[\\\"channels/shop/campaigns/automations/details\\\",[23,3,[]],[23,0,[\\\"automationModel\\\",\\\"sorted\\\"]],[23,0,[\\\"automationModel\\\"]],true,false,false,true,[23,1,[]],[23,1,[]],[23,6,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uw+xswtJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"automationModel\\\",\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@productsList\\\",\\\"@tab\\\",\\\"@automationsCollection\\\",\\\"@fetchAutomationsCollectionTask\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,9,[\\\"isRunning\\\"]],[23,0,[\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"createRecordTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,8,[\\\"_data\\\",\\\"totalDetailsWithoutShippingZones\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@classNames\\\",\\\"@icon\\\"],[[28,\\\"tt\\\",[\\\"total details without shipping zones\\\"],[[\\\"total\\\"],[[23,8,[\\\"_data\\\",\\\"totalDetailsWithoutShippingZones\\\"]]]]],false,\\\"is-danger\\\",\\\"fas fa-circle-exclamation\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\",\\\"@tab\\\"],[\\\"automations\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"automations\\\",[23,11,[]],[23,7,[]],[23,10,[]]]]],true,[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"automations_group\\\",[23,1,[]],[23,7,[]],\\\"automations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,8,[\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\",\\\"@isAccordian\\\",\\\"@onEdit\\\",\\\"@onDelete\\\"],[\\\"description_attachments_sub-group\\\",[23,1,[]],[23,7,[]],false,[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"index\\\"]],\\\": \\\",[23,3,[\\\"_data\\\",\\\"title\\\"]]],null],true,[28,\\\"fn\\\",[[23,0,[\\\"editAutomation\\\"]],[23,3,[]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"channels/shop/campaigns/automations\\\",[23,3,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-criteria\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@automationModel\\\"],[[23,1,[]],true,[23,5,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-cummulative\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@automationModel\\\"],[[23,1,[]],true,[23,5,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-settings\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@automationModel\\\"],[[23,1,[]],true,[23,5,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@hasFilters\\\",\\\"@paginationIsFooter\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[\\\"channels/shop/campaigns/items/table-view/detail-row\\\",false,false,[23,3,[\\\"sorted\\\"]],[23,7,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"campaign\\\",\\\"automationModel\\\",\\\"campaignDetails\\\",\\\"isAutomations\\\"],[\\\"channels/shop/campaigns/automations/details\\\",[23,5,[]],[23,3,[]],[23,3,[\\\"sorted\\\"]],true]]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"details\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@iconRight\\\",\\\"@label\\\",\\\"@btnClassNames\\\"],[false,\\\"fas fa-plus\\\",\\\"add product\\\",\\\"element-btn-with-modal-dialog--no-border\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"channels/shop/campaigns/campaigns-item-editor\\\",[],[[\\\"@campaignDetailAdapterName\\\",\\\"@campaign\\\",\\\"@campaignDetails\\\",\\\"@isAutomations\\\",\\\"@isDisplay\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@onDone\\\",\\\"@onCancel\\\",\\\"@automationModel\\\",\\\"@tab\\\"],[\\\"channels/shop/campaigns/automations/details\\\",[23,5,[]],[23,3,[\\\"sorted\\\"]],true,false,false,true,[23,4,[]],[23,4,[]],[23,3,[]],[23,7,[]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showEditModal\\\"]],[23,0,[\\\"dirty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@onClose\\\"],[true,false,[28,\\\"concat\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"index\\\"]],\\\": \\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"title\\\"]]],null],false,[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor\\\",[],[[\\\"@automationModel\\\",\\\"@isEditing\\\",\\\"@master\\\",\\\"@onCancel\\\",\\\"@onCloseDialogAction\\\",\\\"@onRemoveTask\\\",\\\"@onSaveTask\\\",\\\"@productsList\\\",\\\"@searchProductsTask\\\",\\\"@tab\\\"],[[23,0,[\\\"dirty\\\"]],true,[23,5,[]],[23,2,[]],[23,2,[]],[22,\\\"removeRecordTask\\\"],[22,\\\"replaceRecordTask\\\"],[23,6,[]],[22,\\\"searchProductsTask\\\"],[23,7,[]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import SortableActionsMixin from '../../../../../../../../mixins/sortable-actions'\n  // export default Component.extend(SortableActionsMixin, {\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    // modelProp: 'automationModel',\n    showAdvanced: false\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-editor/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    adapterName: 'channels/shop/campaigns/automations/details',\n    init() {\n      this.setup();\n      this._super(...arguments);\n    },\n    async setup() {\n      const item = this.item;\n      const dirty = this.setupDirty({\n        model: item\n      });\n      this.set('dirty', dirty);\n      const product = await this.findTask.perform({\n        adapterName: 'products',\n        appendPath: dirty.getData('itemKey')\n      });\n      dirty.set('product', product);\n    },\n    afterUpdateRecordTask() {\n      this.onCloseDialogAction();\n    },\n    afterCancelEditing() {\n      this.onCloseDialogAction();\n    }\n\n    // actions: {\n    //   cancelEditing () {\n    //     console.log('cancel editing of automation item')\n    //   }\n    // }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MoYj4ugG\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor\\\",null,[[\\\"tab\\\",\\\"campaign\\\",\\\"item\\\",\\\"errors\\\",\\\"isEditing\\\",\\\"isAutomations\\\",\\\"product\\\",\\\"limitedQty\\\",\\\"isNew\\\",\\\"saveTask\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"campaign\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"errors\\\"]],true,true,[24,[\\\"product\\\"]],[24,[\\\"campaign\\\",\\\"isMayAdd\\\"]],false,[24,[\\\"updateRecordTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEditing\\\",[28,\\\"hash\\\",null,[[\\\"dirty\\\"],[[24,[\\\"dirty\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-row/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // export default Component.extend(CampaignsProductsMixin, CrudMixin, DroppableMixin, ErrorsMixin, {\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    adapterName: 'channels/shop/campaigns/automations/details'\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Ae6rcPGV\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"item\\\",\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"paginationIsFooter\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onMainAction\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"channels/shop/campaigns/items/table-view/detail-row\\\",false,[24,[\\\"sortedDetails\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"onSearchTask\\\"]],[24,[\\\"onReloadSearchRecordsTask\\\"]],[24,[\\\"onDisplay\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"onDisplay\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"campaign\\\",\\\"campaignDetails\\\",\\\"isAutomations\\\"],[\\\"channels/shop/campaigns/automations/details\\\",[24,[\\\"model\\\"]],[24,[\\\"campaignDetails\\\"]],true]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-thumbnail/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/errors\"], function (_exports, _crud, _errors) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import DroppableMixin from '../../../../../../../../../mixins/droppable'\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _errors.default, {\n    // export default Component.extend(CrudMixin, DroppableMixin, ErrorsMixin, {\n    tagName: '',\n    disabled: false,\n    translate: true\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-thumbnail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"g6pyHnwV\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"td\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"automations-editor__details-thumbnail-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"defaultImage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"store-items__thumbnail\\\"],[11,\\\"src\\\",[28,\\\"uploadcareSrc\\\",[[24,[\\\"defaultImage\\\"]],\\\"/-/resize/40x\\\"],null]],[10,\\\"alt\\\",\\\"Placeholder image\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"qty\\\"]]],null],false],[0,\\\" x \\\"],[1,[24,[\\\"item\\\",\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"itemCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"item\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"channels/shop/items/item-price\\\",null,[[\\\"campaign\\\",\\\"item\\\"],[[24,[\\\"campaign\\\"]],[24,[\\\"item\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-thumbnail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EJFy4yJv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@automationModel\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[\\\"@classNames\\\",\\\"@contentClassNames\\\"],[\\\"form-section__outer-container--no-border\\\",\\\"is-gray\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-view-container\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@tableClassNames\\\",\\\"@hasFilters\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@paginationIsFooter\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[\\\"channels/shop/campaigns/items/table-view/detail-row\\\",\\\"new-table-view\\\",false,[22,\\\"onDisplay\\\"],[22,\\\"onEdit\\\"],[22,\\\"onDisplay\\\"],false,[23,1,[\\\"sorted\\\"]],[23,2,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"campaign\\\",\\\"campaignDetails\\\",\\\"isAutomations\\\"],[\\\"channels/shop/campaigns/automations/details\\\",[23,1,[]],[24,[\\\"automationDetails\\\"]],true]]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"details\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor/component\", [\"exports\", \"client/mixins/sortable-actions\"], function (_exports, _sortableActions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_sortableActions.default, (_dec = Ember._action, _obj = {\n    tagName: '',\n    modelProp: 'automationModel',\n    resetThenSelectionQty() {\n      const automationModel = this.automationModel || {};\n      const thenSelectionType = automationModel?._data?.thenSelectionType;\n      if (automationModel.isAutoAdd && thenSelectionType === 'all') {\n        automationModel.setData('thenSelectionQty', '');\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"resetThenSelectionQty\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"resetThenSelectionQty\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"acCcIxcO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@automationModel\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationThen\\\",[23,1,[]],\\\"automation_then\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"table-form__input\\\",[28,\\\"or\\\",[[23,2,[]],[23,3,[\\\"hasDetails\\\"]]],null],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-thenActions\\\"]],true,true,[23,3,[\\\"_data\\\",\\\"thenAction\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isAutoAdd\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationSelectionType\\\",[23,1,[]],\\\"automation_selection_type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@onSelect\\\"],[\\\"table-form__input\\\",[23,2,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-thenSelectionTypes\\\"]],true,true,[23,3,[\\\"_data\\\",\\\"thenSelectionType\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetThenSelectionQty\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isChooseBetween\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationNumberOfSelections\\\",[23,1,[]],\\\"number of selections\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"table-form__input\\\",[23,2,[]],[23,3,[\\\"_data\\\",\\\"thenSelectionQty\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/then-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor-flows/component\", [\"exports\", \"client/mixins/crud\", \"ramda\", \"ramda-extension\"], function (_exports, _crud, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    isNew: false,\n    isEditing: false,\n    hasThen: true,\n    adapterName: 'channels/shop/campaigns/automations',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['automations/criterias', 'automations/when', 'automations/when/itemQty', 'channels/shop/campaigns/automations/shipping-behavior']);\n    },\n    selectedAutomation: Ember.computed('crud.lists.automations-when.[]', 'automationModel._data.when', function () {\n      const when = this.get('automationModel._data.when');\n      const list = R_.dotPath('crud.lists.automations-when')(this) || [];\n      return list.findBy('_data.value', when);\n    }),\n    conditionsComponent: Ember.computed('selectedAutomation.[]', function () {\n      return this.selectedAutomation.getData('component');\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor-flows/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fiWLE2Aw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@automationModel\\\",\\\"@master\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationWhen\\\",[23,3,[]],\\\"automation_when\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@classNames\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,4,[]],true,\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-when\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"_data\\\",\\\"when\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"selectedAutomation\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"conditionsComponent\\\"]]],[[\\\"formInitData\\\",\\\"master\\\",\\\"automationModel\\\",\\\"isHeader\\\"],[[23,3,[]],[23,2,[]],[23,1,[]],true]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor-flows/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/component\", [\"exports\", \"client/mixins/crud\", \"ramda\", \"ramda-extension\"], function (_exports, _crud, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    isNew: false,\n    isEditing: false,\n    hasThen: true,\n    adapterName: 'channels/shop/campaigns/automations',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['automations/criterias', 'automations/when', 'automations/when/itemQty', 'channels/shop/campaigns/automations/shipping-behavior']);\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        if (this.isNew) {\n          this.cancelEditing({\n            adapterName: this.adapterName,\n            dirty: this.automationModel\n          });\n          this.set('automationModel', '');\n        }\n        this._super(...arguments);\n      }\n    },\n    actions: {\n      loadItem(product) {\n        const automationModel = this.automationModel;\n        automationModel.setData('itemCode', product.getData('code'));\n      },\n      resetItem() {\n        const automationModel = this.automationModel;\n        automationModel.setData('itemCode', '');\n      },\n      toggleAdvanced() {\n        this.toggleProperty('showAdvanced');\n      },\n      async editAutomation(automationModel) {\n        const dirty = this.setupDirty({\n          adapterName: this.adapterName,\n          model: automationModel\n        });\n        this.set('dirty', dirty);\n        this.set('errors', null);\n      },\n      // async updateAutomation (dirty, onCloseDialogAction) {\n      //   return this.get('replaceRecordTask').perform({\n      //     adapterName: this.adapterName,\n      //     model: automationModel,\n      //     errorsProp: 'automationErrors'\n      //   })\n      //   if (updated) {\n      //     this.set('dirty', '')\n      //     onCloseDialogAction()\n      //   }\n      // },\n      async removeAutomation(automationModel, onCloseDialogAction) {\n        const removed = await this.onRemove(automationModel);\n        if (removed) {\n          this.set('dirty', '');\n          onCloseDialogAction();\n        }\n      },\n      cancel(dirty, onCloseDialogAction) {\n        this.cancelEditing({\n          adapterName: this.adapterName,\n          dirty\n        });\n        this.set('dirty', '');\n        onCloseDialogAction();\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-qty/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    tagName: '',\n    autofocus: false,\n    init() {\n      this._super(...arguments);\n      this.filters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          onlyForCampaignKey: this?.master?._data?.shopKey || '',\n          resultsProperty: 'productsList'\n        }\n      });\n    },\n    isBetweenAutomation: Ember.computed('automationModel._data.criteria', function () {\n      const automationModel = this.get('automationModel');\n      const criteria = automationModel.getData('criteria');\n      if (criteria === 'isBetween') {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-qty/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1NP/ISCn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@automationModel\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationItem\\\",[23,3,[]],\\\"item\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-when-itemQty\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"whenItemQtyType\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"whenItemQtyType\\\"]],\\\"products\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"inputPvtClassNames\\\",\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelectedKey\\\",\\\"hasSelected\\\",\\\"hasSelectedIcon\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[\\\"table-form__input\\\",false,[23,0,[\\\"productsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"item\\\"]],\\\"_data._key\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"fas fa-bookmark\\\",[24,[\\\"isReadonly\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"filters\\\",\\\"resultsProperty\\\"],[[23,0,[]],\\\"products\\\",[23,0,[\\\"filters\\\"]],\\\"productsList\\\"]]],[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"item\\\"]]],null],[24,[\\\"onLoadItem\\\"]],[24,[\\\"onResetItem\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"whenItemQtyType\\\"]],\\\"tags\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"whenItemQtyTags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"icon\\\",\\\"list\\\"],[[24,[\\\"isReadonly\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"adapterName\\\",\\\"legend\\\",\\\"tab\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"addItemOptions\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"addItemComponent\\\",\\\"allowEmpty\\\"],[true,\\\"products/lists/tags\\\",\\\"tags\\\",[23,2,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[24,[\\\"automationModel\\\"]],true,[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],\\\"_data._key\\\",\\\"_data.whenItemQtyTags\\\",\\\"tags/tags-editor\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationCriteria\\\",[23,3,[]],\\\"criteria\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"inputPvtClassNames\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,[24,[\\\"isReadonly\\\"]],true,\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-criterias\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"criteria\\\"]],[28,\\\"fn\\\",[[23,4,[\\\"setCumulative\\\"]],[23,4,[]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"documents__details-error\\\",\\\"criteria\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationQty\\\",[23,3,[]],\\\"automation_qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],\\\"table-form__input\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"documents__details-error\\\",\\\"value\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\t\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isBetweenAutomation\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t-\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],\\\"table-form__input\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"valueMax\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-qty/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-value/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    tagName: '',\n    autofocus: false,\n    init() {\n      this._super(...arguments);\n      this.filters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          onlyForCampaignKey: this?.master?._data?.shopKey || '',\n          resultsProperty: 'productsList'\n        }\n      });\n    },\n    isBetweenAutomation: Ember.computed('automationModel._data.criteria', function () {\n      const automationModel = this.get('automationModel');\n      const criteria = automationModel.getData('criteria');\n      if (criteria === 'isBetween') {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-value/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pAow42cq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@formInitData\\\",\\\"@automationModel\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationItem\\\",[23,2,[]],\\\"item\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-when-itemQty\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"whenItemQtyType\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"whenItemQtyType\\\"]],\\\"products\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"inputPvtClassNames\\\",\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelectedKey\\\",\\\"hasSelected\\\",\\\"hasSelectedIcon\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[\\\"table-form__input\\\",false,[23,0,[\\\"productsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"item\\\"]],\\\"_data._key\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"fas fa-bookmark\\\",[24,[\\\"isReadonly\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"filters\\\",\\\"resultsProperty\\\"],[[23,0,[]],\\\"products\\\",[23,0,[\\\"filters\\\"]],\\\"productsList\\\"]]],[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"item\\\"]]],null],[24,[\\\"onLoadItem\\\"]],[24,[\\\"onResetItem\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"whenItemQtyType\\\"]],\\\"tags\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"whenItemQtyTags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"icon\\\",\\\"list\\\"],[[24,[\\\"isReadonly\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"adapterName\\\",\\\"legend\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"addItemOptions\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"addItemComponent\\\",\\\"allowEmpty\\\"],[true,\\\"products/lists/tags\\\",\\\"tags\\\",false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[24,[\\\"automationModel\\\"]],true,[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],\\\"_data._key\\\",\\\"_data.whenItemQtyTags\\\",\\\"tags/tags-editor\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"documents__details-error\\\",\\\"itemKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationCriteria\\\",[23,2,[]],\\\"criteria\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"inputPvtClassNames\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,[24,[\\\"isReadonly\\\"]],true,\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-criterias\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"criteria\\\"]],[28,\\\"fn\\\",[[23,3,[\\\"setCumulative\\\"]],[23,3,[]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"documents__details-error\\\",\\\"criteria\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationQty\\\",[23,2,[]],\\\"automation_qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],\\\"table-form__input\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"documents__details-error\\\",\\\"value\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isBetweenAutomation\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t-\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],\\\"table-form__input\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"valueMax\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/item-value/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/order-value/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    autofocus: false,\n    isBetweenAutomation: Ember.computed('automationModel._data.criteria', function () {\n      const automationModel = this.get('automationModel');\n      const criteria = automationModel.getData('criteria');\n      if (criteria === 'isBetween') {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/order-value/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"R2wDm0rr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@automationModel\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationCriteria\\\",[23,1,[]],\\\"criteria\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"inputPvtClassNames\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,[24,[\\\"isReadonly\\\"]],true,\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-criterias\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"criteria\\\"]],[28,\\\"fn\\\",[[23,2,[\\\"setCumulative\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationQty\\\",[23,1,[]],\\\"automation_qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],\\\"table-form__input\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isBetweenAutomation\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t~\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],\\\"table-form__input\\\",[24,[\\\"automationModel\\\",\\\"_data\\\",\\\"valueMax\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/order-value/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"a1mSH6yW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@isReadonly\\\",\\\"@automationModel\\\",\\\"@master\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"automations-when\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"automations-when\\\",[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]]]]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@title\\\",\\\"@formInitData\\\"],[\\\"criteria_group\\\",\\\"automations\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-criteria\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@automationModel\\\"],[[23,1,[]],[23,2,[]],[23,4,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasThen\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@title\\\",\\\"@formInitData\\\"],[\\\"cumulative_group\\\",\\\"cumulative\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-cummulative\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@automationModel\\\"],[[23,1,[]],[23,2,[]],[23,4,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"settings\\\",\\\"settings_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-settings\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@automationModel\\\"],[[23,1,[]],[23,2,[]],[23,4,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"onSaveTask\\\"]],[24,[\\\"onCancel\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,3,[]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,2,[]],[28,\\\"or\\\",[[24,[\\\"onSaveTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[23,3,[]],true,[24,[\\\"onCloseDialogAction\\\"]]]]]],null],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onCancel\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,2,[]],[22,\\\"onCancel\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onSaveTask\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[22,\\\"isReadonly\\\"],[24,[\\\"onSaveTask\\\",\\\"isRunning\\\"]],\\\"next step\\\",[28,\\\"perform\\\",[[24,[\\\"onSaveTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[23,3,[]],[24,[\\\"onAfterCreate\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[28,\\\"or\\\",[[24,[\\\"onSaveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onRemoveTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSaveTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[23,3,[]],[24,[\\\"onCloseDialogAction\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-criteria/component\", [\"exports\", \"@glimmer/component\", \"ramda-extension\"], function (_exports, _component, R_) {\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;\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 ChannelsShopCampaignsCampaignsEditorAutomationEditorWhenEditorWhenEditorCriteriaComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember.computed('args.automationModel._data.when', 'crud.lists.automations-when.[]'), _dec4 = Ember.computed('selectedAutomation.[]'), _class = class ChannelsShopCampaignsCampaignsEditorAutomationEditorWhenEditorWhenEditorCriteriaComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasThen\", _descriptor2, this);\n      this.crud.addLists(this, ['statuses', 'automations/when']);\n    }\n    get selectedAutomation() {\n      const when = this.args.automationModel._data.when;\n      const list = R_.dotPath('crud.lists.automations-when')(this) || [];\n      return list.findBy('_data.value', when);\n    }\n    get conditionsComponent() {\n      return this.selectedAutomation.getData('component');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasThen\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectedAutomation\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"selectedAutomation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"conditionsComponent\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"conditionsComponent\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-criteria/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pZZO3gPg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@automationModel\\\",\\\"@master\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"status\\\",[23,1,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],true,[23,2,[\\\"statusClass\\\"]],true,[23,2,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"title\\\",[23,1,[]],\\\"automation_title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,4,[]],[23,2,[\\\"_data\\\",\\\"title\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"when\\\",[23,1,[]],\\\"automation_when\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@classNames\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,4,[]],true,\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-when\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"when\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"selectedAutomation\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"conditionsComponent\\\"]]],[[\\\"formInitData\\\",\\\"master\\\",\\\"automationModel\\\",\\\"isReadonly\\\",\\\"isHeader\\\"],[[23,1,[]],[23,3,[]],[23,2,[]],[23,4,[]],true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasThen\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/then-editor\\\",[],[[\\\"@formInitData\\\",\\\"@automationModel\\\",\\\"@isHeader\\\",\\\"@master\\\",\\\"@isReadonly\\\"],[[23,1,[]],[23,2,[]],true,[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-criteria/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-cummulative/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 ChannelsShopCampaignsCampaignsEditorAutomationEditorWhenEditorWhenEditorCummulativeComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember.computed('args.automationModel.{_data.thenAction,isAllowCumulative}'), _class = class ChannelsShopCampaignsCampaignsEditorAutomationEditorWhenEditorWhenEditorCummulativeComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasThen\", _descriptor2, this);\n      this.crud.addLists(this, ['statuses', 'automations/when']);\n    }\n    get isCumulativeDisabled() {\n      const automationModel = this.args.automationModel;\n      if (!automationModel?.isAllowCumulative) {\n        return true;\n      }\n      if (automationModel?._data?.thenAction === 'mustAdd') {\n        return false;\n      }\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasThen\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isCumulativeDisabled\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"isCumulativeDisabled\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-cummulative/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"z0eR92T7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@automationModel\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"cumulative\\\",\\\"isCumulative\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\"],[[23,2,[\\\"_data\\\",\\\"isCumulative\\\"]],[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"isCumulativeDisabled\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-cummulative/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-settings/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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 ChannelsShopCampaignsCampaignsEditorAutomationEditorWhenEditorWhenEditorSettingsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _class = class ChannelsShopCampaignsCampaignsEditorAutomationEditorWhenEditorWhenEditorSettingsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasThen\", _descriptor2, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/automations/shipping-behavior']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasThen\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7iQGbXhm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@automationModel\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"index\\\",[23,1,[]],\\\"display order\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,2,[\\\"_data\\\",\\\"index\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"thenAction\\\"]],\\\"mustAdd\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"automationsShippingBehavior\\\",[23,1,[]],\\\"automations shipping behavior\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@disabled\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-automations-shipping-behavior\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"automationsShippingBehavior\\\"]],[23,3,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/automations-editor/when-editor/when-editor-settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/bulk-discount-conflicts/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, _ramdaAdjunct) {\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  let ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorBulkDiscountConflictsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorBulkDiscountConflictsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"wasSaved\", _descriptor4, this);\n      _initializerDefineProperty(this, \"conflictsList\", _descriptor5, this);\n    }\n    setup() {\n      const conflictsList = this.args?.conflict?._data?.conflictsList || [];\n      Ember.set(this, 'conflictsList', conflictsList);\n    }\n    *updateCampaignDetailBulkDiscountTask(model, selected) {\n      // model is campaignDetailModel\n      const selectedBulkDiscountId = selected?._data?.bulkDiscountId || '';\n      model.setData('bulkDiscountId', selectedBulkDiscountId);\n      Ember.set(this, 'wasSaved', false);\n      const bulkDiscountId = model.getData('bulkDiscountId') || '';\n      const campaignModel = this.args?.model || {};\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(campaignModel)) {\n        const key = campaignModel.getData('_key');\n        const campaignDetailMaster = model.getData('master') || '';\n        if (!campaignDetailMaster) {\n          model.setData('master', key);\n        }\n      }\n      try {\n        const response = yield this.crud.replaceRecordTask.perform({\n          adapterName: 'channels/shop/campaigns/details',\n          appendPath: '/bulk-discount-conflict/skip',\n          model,\n          component: this\n        });\n        // need to return false/empty after done\n\n        Ember.set(this, 'wasSaved', true);\n        const detailModel = this.args?.detailModel || {};\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(detailModel)) {\n          Ember.set('detailModel', 'isShowBulkDiscountConflictDialogInDetailRow', false);\n          Ember.set('detailModel', 'isShowBulkDiscountConflictDialogInDetailEditor', false);\n        }\n      } catch (e) {\n        Ember.set(this, 'wasSaved', false);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"wasSaved\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"conflictsList\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateCampaignDetailBulkDiscountTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateCampaignDetailBulkDiscountTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/bulk-discount-conflicts/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"4zaG89we\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@conflict\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@onSelect\\\"],[[23,0,[\\\"conflictsList\\\"]],\\\"list-selector\\\",[23,1,[]],\\\"_data.bulkDiscountId\\\",\\\"_data.bulkDiscountId\\\",\\\"_data.name\\\",\\\"list-selector__item\\\",false,[28,\\\"perform\\\",[[23,0,[\\\"updateCampaignDetailBulkDiscountTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/bulk-discount-conflicts/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, _ramdaAdjunct) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let ChannelsShopCampaignsCampaignsEditorBulkDiscountsConflictsDialogComponent = _exports.default = (_dec = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorBulkDiscountsConflictsDialogComponent extends _component.default {\n    get modalDialogIsVisible() {\n      const model = this.args.model;\n      if (model) {\n        const bulkDiscountConflictDetails = model.getData('bulkDiscountConflictDetails') || [];\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(bulkDiscountConflictDetails)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    onCloseBulkDiscountConflictDialog(onCloseDialogAction) {\n      const model = this.args.model;\n      const bulkDiscountConflictDetails = model.getData('bulkDiscountConflictDetails') || [];\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(bulkDiscountConflictDetails)) {\n        model.setData('bulkDiscountConflictDetails', []);\n      }\n      if (this.args.onDone) {\n        this.args.onDone();\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onCloseBulkDiscountConflictDialog\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"onCloseBulkDiscountConflictDialog\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8K8oZJE6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"conflict\\\",\\\"@model\\\",\\\"@detailModel\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onClose\\\"],[\\\"bulk discount conflicts\\\",[23,0,[\\\"modalDialogIsVisible\\\"]],false,[28,\\\"fn\\\",[[23,0,[\\\"onCloseBulkDiscountConflictDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"bulkDiscountConflictDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/bulk-discount-conflicts\\\",[],[[\\\"@model\\\",\\\"@conflict\\\",\\\"@onCloseDialogAction\\\",\\\"@detailModel\\\"],[[23,3,[]],[23,2,[]],[23,1,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[28,\\\"fn\\\",[[23,0,[\\\"onCloseBulkDiscountConflictDialog\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, R, _ramdaAdjunct, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _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 ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorBulkDiscountEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service('application'), _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorBulkDiscountEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"date\", _descriptor5, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isReadonly\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor8, this);\n      const bulkDiscount = this.args.bulkDiscount;\n      const schedules = bulkDiscount.getData('schedules') || [];\n      if (_ramdaAdjunct.default.isNilOrEmpty(schedules)) {\n        bulkDiscount.addSchedule({\n          scheduleId: _nventor.default.random.alphaNum(18),\n          dateStartZ: this.date.getStartOfDayZ()\n        });\n      }\n      this.filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/bulk-discounts/filters',\n        defaultFiltersData: {\n          query: ''\n        }\n      });\n    }\n    get isDisabled() {\n      const isReadonly = this?.isReadonly;\n      const isNew = this.args?.isNew || false;\n      const isEditing = this.args?.isEditing || false;\n      if (isEditing) {\n        return false;\n      }\n      if (isNew) {\n        return false;\n      }\n      return isReadonly;\n    }\n    checkOverlapDate({\n      isRemove = false\n    } = {}) {\n      const bulkDiscount = this.args.bulkDiscount;\n      const overlapDate = bulkDiscount.checkOverlapDate({\n        bulkDiscount\n      });\n      const schedules = bulkDiscount.getData('schedules') || [];\n      if (overlapDate.hasOverlap && !isRemove) {\n        const overlapIds = overlapDate.ids || [];\n        R.forEach(schedule => {\n          const scheduleId = schedule.getData('scheduleId');\n          // Empty ids must not match via includes('', overlapIds) — that marks every blank sibling.\n          const isOverlapping = _ramdaAdjunct.default.isNotNilOrEmpty(scheduleId) && R.includes(scheduleId, overlapIds);\n          schedule.set('hasOverlap', isOverlapping);\n        })(schedules);\n        bulkDiscount.set('hasBulkDiscountOverlap', true);\n      }\n      if (!overlapDate.hasOverlap || isRemove) {\n        R.forEach(schedule => {\n          schedule.set('hasOverlap', false);\n        })(schedules);\n        bulkDiscount.set('hasBulkDiscountOverlap', false);\n      }\n    }\n    *fetchAllCampaignsBulkDiscounts({\n      query = ''\n    }) {\n      if (query) {\n        query = query.trim();\n        const filters = this.filters;\n        filters.setData('query', query);\n        yield this.crud.searchInputTask.perform({\n          adapterName: 'channels/shop/campaigns/bulk-discounts',\n          filters,\n          component: this\n        });\n      }\n    }\n    onSubmitAddRule(ruleSet) {\n      ruleSet.addRule();\n    }\n    onSubmitAddRuleSet(schedule) {\n      const ruleSets = schedule.getData('ruleSets') || [];\n      if (R.length(ruleSets) >= 2) {\n        return;\n      }\n      schedule.addRuleSet();\n    }\n    onSubmitRemoveRuleSet(schedule, ruleSet) {\n      const ruleSets = schedule.getData('ruleSets') || [];\n      if (R.length(ruleSets) > 1) {\n        ruleSets.removeObject(ruleSet);\n        schedule.recalculateRuleSetIndex();\n      }\n    }\n    onSubmitAddSchedule(bulkDiscount) {\n      const schedule = {\n        scheduleId: _nventor.default.random.alphaNum(18),\n        dateStartZ: this.date.getStartOfDayZ()\n      };\n      bulkDiscount.addSchedule(schedule);\n      this.checkOverlapDate();\n    }\n    onSubmitRemoveSchedule(bulkDiscount, schedule) {\n      const schedules = bulkDiscount.getData('schedules');\n      if (R.length(schedules) > 1) {\n        schedules.removeObject(schedule);\n        bulkDiscount.recalculateScheduleIndex();\n      }\n      this.checkOverlapDate();\n    }\n    onSelectAndCopyBulkDiscount(args, selectedBulkDiscount) {\n      const {\n        bulkDiscount\n      } = args;\n      if (selectedBulkDiscount) {\n        const selectedBulkDiscountName = selectedBulkDiscount.getData('name') || '';\n        const selectedBulkDiscountCopy = this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/campaigns/bulk-discounts',\n          data: selectedBulkDiscount.serialize()\n        });\n        R.forEach(schedule => {\n          schedule.setData('scheduleId', _nventor.default.random.alphaNum(18));\n          R.forEach(ruleSet => {\n            ruleSet.setData('ruleSetId', _nventor.default.random.alphaNum(18));\n            R.forEach(rule => {\n              rule.setData('ruleId', _nventor.default.random.alphaNum(18));\n            })(ruleSet.getData('rules') || []);\n          })(schedule.getData('ruleSets') || []);\n        })(selectedBulkDiscountCopy.getData('schedules') || []);\n        const bulkDiscounts = this.args.model.getData('bulkDiscounts');\n        const duplicateBulkDiscountsLength = R.pipe(R.filter(R.pathEq(['_data', 'name'], selectedBulkDiscountName)), R.length)(bulkDiscounts);\n        selectedBulkDiscountCopy.setData('bulkDiscountId', '');\n        selectedBulkDiscountCopy.setData('name', `${selectedBulkDiscountName} (${duplicateBulkDiscountsLength})`);\n        selectedBulkDiscountCopy.setData('isApplyToAllProducts', false);\n        const bulkDiscountName = bulkDiscount.getData('name') || '';\n        if (bulkDiscountName && bulkDiscountName !== selectedBulkDiscountName) {\n          const msg = `${this.intl.t('replace')} ${bulkDiscountName} ${this.intl.t('to')} ${selectedBulkDiscountName}?`;\n          if (window.confirm(msg)) {\n            bulkDiscount.set('_data', R.propOr({}, '_data')(selectedBulkDiscountCopy));\n            this.checkOverlapDate();\n          }\n        }\n        if (!bulkDiscountName) {\n          bulkDiscount.set('_data', R.propOr({}, '_data')(selectedBulkDiscountCopy));\n          this.checkOverlapDate();\n        }\n      }\n    }\n    onToggleCheckHasActiveAllProduct(bulkDiscount) {\n      const model = this.args.model;\n      const bulkDiscounts = model.getData('bulkDiscounts');\n      const bulkDiscountId = bulkDiscount.getData('bulkDiscountId');\n      const isApplyToAllProducts = bulkDiscount.getData('isApplyToAllProducts');\n      if (isApplyToAllProducts !== true) {\n        return;\n      }\n\n      // Multiple mode may stack several campaign-wide discounts; uniqueness is legacy-only.\n      const allowsMultipleBulkDiscounts = model.getData('isAllowMultipleBulkDiscounts') === true;\n      if (allowsMultipleBulkDiscounts) {\n        bulkDiscount.setData('isApplyToAllProducts', true);\n        bulkDiscount.set('hasErrorForAllProduct', false);\n        return;\n      }\n      const hasActiveAllProduct = R.pipe(R.reject(bulkDiscount => {\n        const eachBulkDiscountId = R.pathOr('', ['_data', 'bulkDiscountId'])(bulkDiscount);\n        if (_ramdaAdjunct.default.isNilOrEmpty(eachBulkDiscountId) || eachBulkDiscountId === bulkDiscountId) {\n          return true;\n        }\n        return false;\n      }), R.find(R.pathEq(['_data', 'isApplyToAllProducts'], true)), _ramdaAdjunct.default.isNotNilOrEmpty)(bulkDiscounts);\n      if (hasActiveAllProduct) {\n        bulkDiscount.setData('isApplyToAllProducts', false);\n        R.forEach(bulkDiscount => {\n          bulkDiscount.set('hasErrorForAllProduct', false);\n        })(bulkDiscounts);\n        bulkDiscount.set('hasErrorForAllProduct', true);\n        return;\n      }\n      bulkDiscount.setData('isApplyToAllProducts', true);\n      bulkDiscount.set('hasErrorForAllProduct', false);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isReadonly\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"checkOverlapDate\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"checkOverlapDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchAllCampaignsBulkDiscounts\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchAllCampaignsBulkDiscounts\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitAddRule\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitAddRule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitAddRuleSet\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitAddRuleSet\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitRemoveRuleSet\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitRemoveRuleSet\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitAddSchedule\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitAddSchedule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitRemoveSchedule\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitRemoveSchedule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectAndCopyBulkDiscount\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectAndCopyBulkDiscount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleCheckHasActiveAllProduct\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleCheckHasActiveAllProduct\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rule-set/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorBulkDiscountEditorRuleSetComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorBulkDiscountEditorRuleSetComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isExpanded\", _descriptor, this);\n    }\n    onToggleExpanded() {\n      this.isExpanded = !this.isExpanded;\n    }\n    onToggleExpandedWithKeyboard(event) {\n      if (R.includes(event.key, ['Enter', ' '])) {\n        event.preventDefault();\n        this.onToggleExpanded();\n      }\n    }\n    get isDisabled() {\n      return this.args.isReadonly || false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isExpanded\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onToggleExpanded\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleExpandedWithKeyboard\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleExpandedWithKeyboard\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rule-set/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7RcirL7B\",\n    \"block\": \"{\\\"symbols\\\":[\\\"rule\\\",\\\"@formInitData\\\",\\\"@bulkDiscount\\\",\\\"@model\\\",\\\"@ruleSet\\\",\\\"@schedule\\\",\\\"@onSubmitAddRule\\\",\\\"@onSubmitRemoveRuleSet\\\",\\\"@ruleSets\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__choices-header\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"colspan\\\",\\\"99\\\"],[12,\\\"class\\\",\\\"product-children-table__choices-header-td\\\"],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"tabindex\\\",\\\"0\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"onToggleExpanded\\\"]]]],[3,\\\"on\\\",[\\\"keyup\\\",[23,0,[\\\"onToggleExpandedWithKeyboard\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-v-align-auto u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggle-wrapper\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@iconOn\\\",\\\"@iconOff\\\"],[true,false,[23,0,[\\\"isExpanded\\\"]],\\\"fas fa-angle-down\\\",\\\"fas fa-angle-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"rule set\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"calculate\\\",[[23,5,[\\\"_data\\\",\\\"index\\\"]],\\\"+\\\",1],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-v-align-auto\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"get\\\",[[23,9,[]],\\\"_data.ruleSets.length\\\"],null],1],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-trash\\\",\\\"\\\",[23,0,[\\\"isDisabled\\\"]],[28,\\\"fn\\\",[[23,8,[]],[23,6,[]],[23,5,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__items\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"automation_when\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"criteria\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"automation_qty\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"rewardKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member levels\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"discount\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"rules\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rules-editor\\\",[],[[\\\"@formInitData\\\",\\\"@bulkDiscount\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@rules\\\",\\\"@rule\\\",\\\"@ruleSets\\\",\\\"@schedule\\\"],[[23,2,[]],[23,3,[]],[23,0,[\\\"isDisabled\\\"]],[23,4,[]],[23,5,[\\\"_data\\\",\\\"rules\\\"]],[23,1,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__items\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isDisabled\\\"]],\\\"fas fa-plus\\\",\\\"add new rule\\\",[28,\\\"fn\\\",[[23,7,[]],[23,5,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-table__separator\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rule-set/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rules-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorRulesEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.computed('crud.lists.automations-criterias.[]'), _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorRulesEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"big\", _descriptor4, this);\n    }\n    get criterias() {\n      const criteriaLists = this.crud.lists['automations-criterias'] || [];\n\n      // bulk rules only support executable meetsCriteria ops (not automations `cumulative`)\n      return R.filter(criteriaData => {\n        const criteria = R.pathOr('', ['_data', 'value'])(criteriaData);\n        return criteria !== this.constants.automationsCriterias.cumulative;\n      })(criteriaLists);\n    }\n    get bulkDiscountsWhen() {\n      const whenLists = this.crud.lists['automations-when'];\n      const bulkDiscountsWhenLists = R.concat(whenLists, []);\n      return R.filter(whenData => {\n        const when = R.pathOr('', ['_data', 'value'])(whenData);\n        return R.includes(when, ['itemQty', 'itemValue']);\n      })(bulkDiscountsWhenLists);\n    }\n    get rewardMemberLevels() {\n      const model = this.args.model;\n      const rewardData = model.getData('rewardData') || {};\n      let memberLevels = [Ember.Object.create({\n        memberLevelId: '',\n        name: this.intl.t('all')\n      })];\n      if (RA.isNotNilOrEmpty(rewardData)) {\n        const rewardMemberLevels = rewardData?.memberLevels ?? [];\n        memberLevels = R.concat(memberLevels, rewardMemberLevels);\n      }\n      return memberLevels;\n    }\n    onSubmitRemoveRule(ruleSets, rule) {\n      const rules = ruleSets.getData('rules');\n      rules.removeObject(rule);\n      this._updateDuplicateErrors(rules);\n    }\n    onToggleSetDescription(rule) {\n      const isDefaultDescription = rule.getData('isDefaultDescription');\n      if (isDefaultDescription) {\n        rule.setData('description', '');\n      }\n    }\n    onSelectMemberLevel(rule) {\n      const memberLevelId = rule.getData('memberLevelId');\n      // API requires memberLevelId when hasMemberLevels is true; All uses empty id.\n      rule.setData('hasMemberLevels', RA.isNotNilOrEmpty(memberLevelId));\n      this.onInputCheckHasDuplicate();\n    }\n    onInputCheckHasDuplicate() {\n      const ruleSets = this.args?.ruleSets || {};\n      const rules = ruleSets.getData('rules') || [];\n      this._updateDuplicateErrors(rules);\n    }\n    _getDuplicateKey(rule) {\n      const value = rule.getData('value');\n      if (RA.isNilOrEmpty(value)) {\n        return '';\n      }\n      const criteria = rule.getData('criteria') || '';\n      const normalizedValue = this._normalizeDuplicateValue(value);\n      const normalizedValueMax = criteria === this.constants.automationsCriterias.isBetween ? this._normalizeDuplicateValue(rule.getData('valueMax')) : '';\n      return JSON.stringify([rule.getData('when') || '', criteria, normalizedValue, normalizedValueMax, rule.getData('memberLevelId') || '']);\n    }\n    _normalizeDuplicateValue(value) {\n      if (RA.isNilOrEmpty(value)) {\n        return '';\n      }\n      return this.big.newBig(value).toString();\n    }\n    _updateDuplicateErrors(rules) {\n      const duplicateKeys = R.pipe(R.map(rule => this._getDuplicateKey(rule)), R.reject(RA.isNilOrEmpty), R.countBy(R.identity), R.pickBy(R.lt(1)), R.keys)(rules);\n      R.forEach(rule => {\n        const duplicateKey = this._getDuplicateKey(rule);\n        rule.set('hasDuplicate', R.includes(duplicateKey, duplicateKeys));\n      })(rules);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"criterias\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"criterias\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitRemoveRule\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitRemoveRule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleSetDescription\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSetDescription\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectMemberLevel\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectMemberLevel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onInputCheckHasDuplicate\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"onInputCheckHasDuplicate\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rules-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rR96ZUmK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@rule\\\",\\\"@ruleSets\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@rules\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__items\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@classNames\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@context\\\"],[true,[23,4,[]],[23,4,[]],true,\\\"table-form__input\\\",[23,0,[\\\"bulkDiscountsWhen\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"when\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onInputCheckHasDuplicate\\\"]]],null],\\\"bulkDiscounts.schedules.ruleSets.rules.when\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@context\\\",\\\"@isRequired\\\"],[true,[23,4,[]],[23,4,[]],true,\\\"table-form__input\\\",[23,0,[\\\"criterias\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"criteria\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onInputCheckHasDuplicate\\\"]]],null],\\\"bulkDiscounts.schedules.ruleSets.rules.criteria\\\",true]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center flex-gap-5\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@size\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"value\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onInputCheckHasDuplicate\\\"]]],null],\\\"bulkDiscounts.schedules.ruleSets.rules.value\\\",true,10]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"criteria\\\"]],\\\"isBetween\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"range separator\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@size\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"valueMax\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onInputCheckHasDuplicate\\\"]]],null],\\\"bulkDiscounts.schedules.ruleSets.rules.valueMax\\\",true,10]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"rewardKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@classNames\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@context\\\"],[true,[23,4,[]],[23,4,[]],false,\\\"table-form__input\\\",[23,0,[\\\"rewardMemberLevels\\\"]],\\\"memberLevelId\\\",\\\"name\\\",[23,2,[\\\"_data\\\",\\\"memberLevelId\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectMemberLevel\\\"]],[23,2,[]]],null],\\\"bulkDiscounts.schedules.ruleSets.rules.memberLevelId\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"discountType\\\"]],\\\"amount\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@size\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"discountAmount\\\"]],\\\"bulkDiscounts.schedules.ruleSets.rules.discountAmount\\\",true,10]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@size\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"discountRate\\\"]],\\\"bulkDiscounts.schedules.ruleSets.rules.discountRate\\\",true,10]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@context\\\",\\\"@isRequired\\\"],[true,[23,4,[]],\\\"table-form__input\\\",[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"discounts-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"discountType\\\"]],\\\"bulkDiscounts.schedules.ruleSets.rules.discountType\\\",true]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@onClose\\\"],[\\\"\\\",\\\"fas fa-ellipsis\\\",false,false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"bulkDiscounts_schedules_ruleSets_rules_description_group\\\",[23,6,[]],[23,7,[]],\\\"description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,6,[]],\\\"show description\\\",\\\"bulkDiscounts.schedules.ruleSets.rules.isShowLineDescription\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"isShowLineDescription\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,6,[]],\\\"use default description\\\",\\\"bulkDiscounts.schedules.ruleSets.rules.isDefaultDescription\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"isDefaultDescription\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetDescription\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,6,[]],\\\"description\\\",\\\"bulkDiscounts.schedules.ruleSets.rules.description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[]],[23,2,[\\\"_data\\\",\\\"isDefaultDescription\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,4,[]],[23,2,[\\\"_data\\\",\\\"isDefaultDescription\\\"]]],null],[23,2,[\\\"description\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,4,[]],[23,2,[\\\"_data\\\",\\\"isDefaultDescription\\\"]]],null],[23,2,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[\\\"@hideFooterSpacer\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"done\\\",[23,1,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@context\\\"],[true,true,[23,2,[\\\"statusClass\\\"]],[23,4,[]],[23,4,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"status\\\"]],\\\"bulkDiscounts.schedules.ruleSets.rules.status\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,8,[\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"fas fa-trash\\\",\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSubmitRemoveRule\\\"]],[23,3,[]],[23,2,[]]],null],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"hasDuplicate\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"fas fa-exclamation-circle has-text-danger \\\"],[8],[9],[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"error-msg\\\"],[8],[1,[28,\\\"tt\\\",[\\\"duplicated\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rules-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SgRYxe4K\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"schedule\\\",\\\"ruleSet\\\",\\\"@bulkDiscount\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isEditing\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not\\\",[[28,\\\"or\\\",[[23,0,[\\\"isDisabled\\\"]],[23,8,[]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"copy\\\",\\\"copy existing bulk discounts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,0,[\\\"isDisabled\\\"]],[23,4,[\\\"useExistingBulkDiscount\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"useExistingBulkDiscount\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"btns-seperator\\\"],[8],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@hasSelected\\\",\\\"@hasSelectedKey\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onDeselect\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@tagName\\\",\\\"@value\\\"],[true,[23,0,[\\\"isDisabled\\\"]],[23,0,[\\\"filters\\\"]],true,[23,4,[\\\"selectedBulkDiscountId\\\"]],\\\"_data.bulkDiscountId\\\",[23,0,[\\\"fetchAllCampaignsBulkDiscounts\\\",\\\"isRunning\\\"]],\\\"_data.name\\\",\\\"_data.bulkDiscountId\\\",[23,0,[\\\"filters\\\",\\\"results\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectAndCopyBulkDiscount\\\"]],[28,\\\"hash\\\",null,[[\\\"bulkDiscount\\\"],[[23,4,[]]]]]],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchAllCampaignsBulkDiscounts\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,4,[\\\"selectedBulkDiscountName\\\"]]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onSelectAndCopyBulkDiscount\\\"]],[28,\\\"hash\\\",null,[[\\\"bulkDiscount\\\"],[[23,4,[]]]]]],null],\\\"search bulk discounts\\\",[23,0,[\\\"isDisabled\\\"]],\\\"_data.name\\\",\\\"span\\\",[23,4,[\\\"selectedBulkDiscountName\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\"],[\\\"bulk discounts\\\",[23,7,[]],true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,10,[]],[23,7,[]],[23,9,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"bulkDiscounts_group\\\",[23,1,[]],[23,7,[]],\\\"bulk discounts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[23,5,[]],\\\"bulkDiscounts.name\\\",true,\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,0,[\\\"isDisabled\\\"]],\\\"bulkDiscounts.name\\\",true,[23,4,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"bulkDiscounts.isApplyToAllProducts\\\",\\\"apply to all products\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,0,[\\\"isDisabled\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleCheckHasActiveAllProduct\\\"]],[23,4,[]]],null],false,true,[23,4,[\\\"_data\\\",\\\"isApplyToAllProducts\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"hasErrorForAllProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-5\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"fas fa-exclamation-circle has-text-danger\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"error-msg\\\"],[8],[1,[28,\\\"tt\\\",[\\\"only one bulk discount allowed with all product tags\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[\\\"_data\\\",\\\"isApplyToAllProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"bulkDiscounts.productTags\\\",\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,0,[\\\"isDisabled\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@tab\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\"],[\\\"products/lists/tags\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,4,[]],true,\\\"_data._key\\\",false,\\\"_data.productTags\\\",[23,7,[]],\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,4,[\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"bulkDiscounts.isAllowWithPromoCode\\\",\\\"allow with promo code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,0,[\\\"isDisabled\\\"]],[23,4,[\\\"_data\\\",\\\"isAllowWithPromoCode\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@description\\\",\\\"@descriptionClassNames\\\",\\\"@label\\\",\\\"@translateDescription\\\"],[[23,5,[]],\\\"bulkDiscounts.status\\\",\\\"this status will override all schedule statuses\\\",\\\"has-text-danger\\\",\\\"status\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"isDisabled\\\"]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"availability\\\"]],[23,0,[\\\"isDisabled\\\"]],[23,4,[\\\"statusClass\\\"]],true,[23,4,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@isAccordian\\\",\\\"@contentClassNames\\\"],[\\\"bulkDiscounts_schedules_group\\\",[23,1,[]],[23,7,[]],\\\"schedules\\\",true,\\\"form-group__content-container--u-full-width\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"schedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@contentClassNames\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@isAccordian\\\",\\\"@translate\\\",\\\"@title\\\"],[\\\"form-group__content-container--u-full-width\\\",\\\"description_attachments_sub-group\\\",[23,5,[]],[23,7,[]],true,false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"schedule\\\"],null],\\\": \\\",[28,\\\"dateRange\\\",[[23,2,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,2,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@formInputClassNames\\\",\\\"@context\\\"],[[23,5,[]],\\\"flex-gap-5\\\",\\\"bulkDiscounts.status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\",\\\"@isDateRange\\\",\\\"@context\\\"],[\\\"_data.dateStartZ\\\",[23,2,[]],[23,2,[\\\"_data\\\",\\\"dateStartZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"checkOverlapDate\\\"]]],null],[23,0,[\\\"isDisabled\\\"]],true,\\\"bulkDiscounts.schedules.dateStartZ\\\"]]],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"to\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\",\\\"@isDateRange\\\",\\\"@context\\\"],[\\\"_data.dateEndZ\\\",[23,2,[]],[23,2,[\\\"_data\\\",\\\"dateEndZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"checkOverlapDate\\\"]]],null],[23,0,[\\\"isDisabled\\\"]],true,\\\"bulkDiscounts.schedules.dateEndZ\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"status\\\"]],\\\"disabled\\\"],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-primary\\\"],[8],[1,[28,\\\"tt\\\",[\\\"currently active schedule\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[1,[28,\\\"tt\\\",[\\\"inactive\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"hasOverlap\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"*\\\"],[1,[28,\\\"tt\\\",[\\\"overlap date description\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"lt\\\",[[23,2,[\\\"_data\\\",\\\"ruleSets\\\",\\\"length\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isDisabled\\\"]],\\\"fas fa-plus\\\",\\\"add new rule set\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSubmitAddRuleSet\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table product-children-table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"product-children-table__choices-body\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"ruleSets\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/rule-set\\\",[],[[\\\"@formInitData\\\",\\\"@bulkDiscount\\\",\\\"@model\\\",\\\"@ruleSet\\\",\\\"@ruleSets\\\",\\\"@schedule\\\",\\\"@isReadonly\\\",\\\"@onSubmitAddRule\\\",\\\"@onSubmitRemoveRuleSet\\\"],[[23,5,[]],[23,4,[]],[23,6,[]],[23,3,[]],[23,2,[]],[23,2,[]],[23,0,[\\\"isDisabled\\\"]],[23,0,[\\\"onSubmitAddRule\\\"]],[23,0,[\\\"onSubmitRemoveRuleSet\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-end\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,4,[\\\"_data\\\",\\\"schedules\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"fas fa-trash\\\",\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSubmitRemoveSchedule\\\"]],[23,4,[]],[23,2,[]]],null],[23,0,[\\\"isDisabled\\\"]]]]],[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,0,[\\\"isDisabled\\\"]],[28,\\\"isLast\\\",[[23,4,[\\\"_data\\\",\\\"schedules\\\"]],[23,2,[\\\"_data\\\",\\\"index\\\"]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,4,[]],\\\"_data.schedules\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,0,[\\\"isDisabled\\\"]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"index\\\"]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,4,[]],\\\"_data.schedules\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isDisabled\\\"]],\\\"fas fa-plus\\\",\\\"add new schedule\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSubmitAddSchedule\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember.computed('args.model._data.isAllowMultipleBulkDiscounts'), _dec4 = Ember._action, _dec5 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorBulkDiscountsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dirtyCampaignModel\", _descriptor2, this);\n      this.crud.addLists(this, ['availability', 'products/lists/tags']);\n    }\n    get isAllowMultipleBulkDiscounts() {\n      return this.args.model?._data?.isAllowMultipleBulkDiscounts === true;\n    }\n    setupDirtyCampaignModel() {\n      const dirty = this.crud.setupDirty({\n        adapterName: 'channels/shop/campaigns',\n        model: this.args.model\n      });\n      this.dirtyCampaignModel = dirty;\n      return dirty;\n    }\n    *migrateMultipleBulkDiscountsTask() {\n      const dirty = this.setupDirtyCampaignModel();\n      dirty.setData('isAllowMultipleBulkDiscounts', true);\n      try {\n        yield this.crud.updateRecordTask.perform({\n          adapterName: 'channels/shop/campaigns',\n          model: dirty,\n          tab: this.args?.tab\n        });\n      } finally {\n        // Same deregister as panels-new/edit — migrate has no form on this dirty.\n        this.cancelBulkDiscountEdit();\n      }\n    }\n    cancelBulkDiscountEdit() {\n      if (!this.dirtyCampaignModel) {\n        return;\n      }\n      this.crud.cancelEditing({\n        adapterName: 'channels/shop/campaigns',\n        dirty: this.dirtyCampaignModel\n      });\n      this.dirtyCampaignModel = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dirtyCampaignModel\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isAllowMultipleBulkDiscounts\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"isAllowMultipleBulkDiscounts\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDirtyCampaignModel\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirtyCampaignModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"migrateMultipleBulkDiscountsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"migrateMultipleBulkDiscountsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelBulkDiscountEdit\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelBulkDiscountEdit\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-edit/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 ChannelsShopCampaignsCampaignsEditorPanelsEditComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorPanelsEditComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor2, this);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n\n      // Glimmer never runs classic willDestroyElement; X/Escape can hide the dialog\n      // without Cancel — still deregister BD + campaign dirties if they remain.\n      if (this.dirty) {\n        this.crud.cancelEditing({\n          adapterName: 'channels/shop/campaigns/bulk-discounts',\n          dirty: this.dirty\n        });\n        this.dirty = '';\n      }\n      if (this.args?.onCancelBulkDiscountEdit) {\n        this.args.onCancelBulkDiscountEdit();\n      }\n    }\n    setupDirty() {\n      const bulkDiscount = this.args?.bulkDiscount || {};\n      const dirty = this.crud.setupDirty({\n        adapterName: 'channels/shop/campaigns/bulk-discounts',\n        model: bulkDiscount\n      });\n      this.dirty = dirty;\n\n      // tabs-manager maps API bulkDiscounts[N]… errors onto the modal DOM; only paint\n      // errors for the BD currently open in this modal.\n      const dirtyCampaignModel = this.args?.dirtyCampaignModel;\n      if (dirtyCampaignModel) {\n        const campaignBulkDiscounts = dirtyCampaignModel.getData('bulkDiscounts') || [];\n        const openBulkDiscountId = dirty.getData('bulkDiscountId');\n        const openTopLevelGroupIndex = R.findIndex(campaignBulkDiscount => {\n          const eachId = campaignBulkDiscount?.getData?.('bulkDiscountId') ?? campaignBulkDiscount?._data?.bulkDiscountId;\n          return eachId === openBulkDiscountId;\n        })(campaignBulkDiscounts);\n        // findIndex -1 would disable the sibling filter (>= 0 guard) — only set a real hit.\n        if (openTopLevelGroupIndex >= 0) {\n          dirtyCampaignModel.set('tabsManagerOpenTopLevelGroupIndex', openTopLevelGroupIndex);\n        }\n      }\n    }\n    cancelEdit() {\n      if (this.dirty) {\n        this.crud.cancelEditing({\n          adapterName: 'channels/shop/campaigns/bulk-discounts',\n          dirty: this.dirty\n        });\n      }\n      this.dirty = '';\n      if (this.args?.onCancelBulkDiscountEdit) {\n        this.args?.onCancelBulkDiscountEdit();\n      }\n      if (this.args?.onCloseDialogAction) {\n        this.args?.onCloseDialogAction();\n      }\n    }\n    *removeBulkDiscountTask() {\n      const dirty = this?.dirty || {};\n      dirty.set('isRemove', true);\n      if (this.args?.onUpdateBulkDiscountTask) {\n        yield this.args?.onUpdateBulkDiscountTask.perform(dirty, this.args.dirtyCampaignModel);\n      }\n\n      // Same deregister path as Cancel so BD + campaign dirites leave editingRegistry.\n      this.cancelEdit();\n    }\n    *editBulkDiscount() {\n      const dirty = this?.dirty || {};\n      if (this.args?.onUpdateBulkDiscountTask) {\n        yield this.args?.onUpdateBulkDiscountTask.perform(dirty, this.args.dirtyCampaignModel);\n      }\n      this.cancelEdit();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEdit\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeBulkDiscountTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeBulkDiscountTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editBulkDiscount\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"editBulkDiscount\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"4fP5Ow+m\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@onUpdateBulkDiscountTask\\\",\\\"@dirtyCampaignModel\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,5,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__content\\\"],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupDirty\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor\\\",[],[[\\\"@formInitData\\\",\\\"@bulkDiscount\\\",\\\"@model\\\",\\\"@isEditing\\\",\\\"@tab\\\"],[[23,1,[]],[23,0,[\\\"dirty\\\"]],[23,2,[]],true,[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@typeToDelete\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"fas fa-trash\\\",true,\\\"\\\",[28,\\\"perform\\\",[[23,0,[\\\"removeBulkDiscountTask\\\"]]],null],[23,4,[\\\"isRunning\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"cancelEdit\\\"]]],null],[23,4,[\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[23,0,[\\\"dirty\\\",\\\"hasBulkDiscountOverlap\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"editBulkDiscount\\\"]]],null],[23,4,[\\\"isRunning\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-new/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 ChannelsShopCampaignsCampaignsEditorPanelsNewComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorPanelsNewComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"isNew\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirtyCampaignModel\", _descriptor3, this);\n      _initializerDefineProperty(this, \"bulkDiscountModel\", _descriptor4, this);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n\n      // Glimmer never runs classic willDestroyElement; X/Escape can hide the dialog\n      // without Cancel — still deregister the campaign dirty if it remains.\n      if (this.dirtyCampaignModel) {\n        this.crud.cancelEditing({\n          adapterName: 'channels/shop/campaigns',\n          dirty: this.dirtyCampaignModel\n        });\n        this.dirtyCampaignModel = null;\n      }\n    }\n    setupDirty() {\n      // Same campaign dirty adapter as edit/migrate cancel so cancelEditing can deregister it.\n      const dirtyCampaignModel = this.crud.setupDirty({\n        adapterName: 'channels/shop/campaigns',\n        model: this.args.model\n      });\n      // New BD is appended on save — relative error paint targets that last index.\n      const existingBulkDiscounts = dirtyCampaignModel.getData('bulkDiscounts') || [];\n      dirtyCampaignModel.set('tabsManagerOpenTopLevelGroupIndex', existingBulkDiscounts.length);\n      this.dirtyCampaignModel = dirtyCampaignModel;\n      this.newBulkDiscountModel();\n    }\n    newBulkDiscountModel() {\n      const newModel = this.crud.setupNewRecord({\n        adapterName: 'channels/shop/campaigns/bulk-discounts',\n        data: {}\n      });\n      this.bulkDiscountModel = newModel;\n    }\n    *addBulkDiscount() {\n      const bulkDiscountModel = this?.bulkDiscountModel;\n      if (this.args?.onUpdateBulkDiscountTask) {\n        yield this.args?.onUpdateBulkDiscountTask.perform(bulkDiscountModel, this.dirtyCampaignModel);\n      }\n\n      // Deregister campaign dirty on success (Cancel already does this).\n      this.cancelEdit();\n    }\n    cancelEdit() {\n      if (this.dirtyCampaignModel) {\n        this.crud.cancelEditing({\n          adapterName: 'channels/shop/campaigns',\n          dirty: this.dirtyCampaignModel\n        });\n        this.dirtyCampaignModel = null;\n      }\n      if (this.args?.onCloseDialogAction) {\n        this.args?.onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isNew\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirtyCampaignModel\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"bulkDiscountModel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newBulkDiscountModel\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"newBulkDiscountModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addBulkDiscount\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addBulkDiscount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEdit\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEdit\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"V6azvdBY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@tab\\\",\\\"@onUpdateBulkDiscountTask\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"dirtyCampaignModel\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__content\\\"],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupDirty\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"bulkDiscountModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/bulk-discount-editor\\\",[],[[\\\"@bulkDiscount\\\",\\\"@model\\\",\\\"@isNew\\\",\\\"@tab\\\"],[[23,0,[\\\"bulkDiscountModel\\\"]],[23,1,[]],true,[23,2,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[23,0,[\\\"cancelEdit\\\"]],[23,3,[\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[23,0,[\\\"bulkDiscountModel\\\",\\\"hasBulkDiscountOverlap\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"addBulkDiscount\\\"]]],null],[23,3,[\\\"isRunning\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"L2Y2ReDl\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"bulkDiscount\\\",\\\"onCloseDialogAction\\\",\\\"schedule\\\",\\\"ruleSet\\\",\\\"rule\\\",\\\"isTooltipVisible\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@onUpdateBulkDiscountTask\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\"],[\\\"bulk-discounts\\\",[23,8,[]],true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,12,[]],[23,8,[]],[23,11,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"bulkDiscounts_group\\\",[23,1,[]],[23,8,[]],\\\"bulk discounts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isAllowMultipleBulkDiscounts\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[\\\"this bulk discount method is outdated\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isRunning\\\",\\\"@label\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"migrateMultipleBulkDiscountsTask\\\",\\\"isRunning\\\"]],\\\"migrate\\\",true,\\\"confirm migrate to multiple bulk discounts\\\",true,[28,\\\"perform\\\",[[23,0,[\\\"migrateMultipleBulkDiscountsTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"bulkDiscounts\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,9,[\\\"_data\\\",\\\"bulkDiscounts\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@isAccordian\\\",\\\"@title\\\"],[\\\"bulkDiscounts_sub-group\\\",[23,1,[]],[23,8,[]],false,true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"bulk discount\\\"],null],\\\": \\\",[23,2,[\\\"_data\\\",\\\"name\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-gap-8\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@tagClassNames\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"availability\\\"]],[23,2,[\\\"statusClass\\\"]],[23,2,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isAllowWithPromoCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"allow with promo code\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\":\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isApplyToAllProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-info\\\"],[8],[1,[28,\\\"tt\\\",[\\\"apply to all products\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,2,[\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"schedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\"],[\\\"bulkDiscount_schedules_sub-group\\\",[23,1,[]],[23,8,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"schedule\\\"],null],false],[0,\\\":\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"status\\\"]],\\\"disabled\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__status-badge tag is-danger\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__status-badge tag is-primary\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__status-badge tag\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[1,[28,\\\"dateRange\\\",[[23,4,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,4,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-gap-8\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"ruleSets\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table product-children-table u-full-width\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"product-children-table__choices-body\\\"],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__choices-header\\\"],[8],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"criteria\\\"],null],false],[9],[0,\\\"\\\\n                            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"discount\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"rewardKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"                              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member levels\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[9],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"rules\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__choices-sub-header\\\"],[8],[0,\\\"\\\\n                              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"criteria\\\"]],\\\"isBetween\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                  \\\"],[1,[28,\\\"tt\\\",[[23,6,[\\\"_data\\\",\\\"when\\\"]]],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[23,6,[\\\"_data\\\",\\\"criteria\\\"]]],null],false],[0,\\\" \\\"],[1,[23,6,[\\\"_data\\\",\\\"value\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"range separator\\\"],null],false],[0,\\\" \\\"],[1,[23,6,[\\\"_data\\\",\\\"valueMax\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                  \\\"],[1,[28,\\\"tt\\\",[[23,6,[\\\"_data\\\",\\\"when\\\"]]],null],false],[0,\\\" \\\"],[1,[23,6,[\\\"criteriaSymbol\\\"]],false],[0,\\\" \\\"],[1,[23,6,[\\\"_data\\\",\\\"value\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                              \\\"],[9],[0,\\\"\\\\n                              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"discountType\\\"]],\\\"amount\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                                  \\\"],[1,[28,\\\"currency\\\",[[23,6,[\\\"_data\\\",\\\"discountAmount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                  \\\"],[1,[23,6,[\\\"_data\\\",\\\"discountRate\\\"]],false],[0,\\\"%\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"isShowLineDescription\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                  \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,false]],{\\\"statements\\\":[[0,\\\"\\\\n                                    \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-circle-info\\\"]]],[0,\\\"\\\\n\\\\n                                    \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@hasModalOverlay\\\",\\\"@isViewable\\\"],[false,[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"description\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[23,6,[\\\"_data\\\",\\\"description\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                        \\\"],[1,[23,6,[\\\"description\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                                  \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"rewardKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"memberLevelId\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                    \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,9,[\\\"_data\\\",\\\"rewardData\\\",\\\"memberLevels\\\"]],\\\"memberLevelId\\\",\\\"name\\\",false,[23,6,[\\\"_data\\\",\\\"memberLevelId\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"all\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                                \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@statusBadgeClassNames\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,6,[\\\"statusClass\\\"]],[23,6,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n                              \\\"],[9],[0,\\\"\\\\n                            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"                        \\\"],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@modalDialogTitle\\\",\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@isReadonly\\\",\\\"@onSubmit\\\"],[\\\"update bulk discount\\\",false,\\\"fas fa-pen\\\",[23,0,[\\\"isDisabled\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setupDirtyCampaignModel\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-edit\\\",[],[[\\\"@formInitData\\\",\\\"@tab\\\",\\\"@bulkDiscount\\\",\\\"@dirtyCampaignModel\\\",\\\"@model\\\",\\\"@onCloseDialogAction\\\",\\\"@onUpdateBulkDiscountTask\\\",\\\"@onCancelBulkDiscountEdit\\\"],[[23,1,[]],[23,8,[]],[23,2,[]],[23,0,[\\\"dirtyCampaignModel\\\"]],[23,9,[]],[23,3,[]],[23,10,[]],[23,0,[\\\"cancelBulkDiscountEdit\\\"]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\"],[\\\"bulkDiscounts_sub-group\\\",[23,1,[]],[23,8,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"no data\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog\\\",[],[[\\\"@model\\\"],[[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/commission-base-cost-history-prices/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import * as R from 'ramda'\n\n  class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostHistorySelectorCommissionBaseCostHistoryPrices extends _component.default {}\n  _exports.default = ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostHistorySelectorCommissionBaseCostHistoryPrices;\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/commission-base-cost-history-prices/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0aWkCGBS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@history\\\",\\\"@type\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@onSelect\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-results__item\\\"],[3,\\\"action\\\",[[23,0,[]],[23,4,[]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__details\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"campaignName\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"from\\\"]],\\\"commissionBaseCost\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"from\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"preset commissions\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"from\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"commissions\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"salesPersonName\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"sales person\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"salesPersonName\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"normalPercent\\\"]],[28,\\\"eq\\\",[[23,3,[]],\\\"normalPercent\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[28,\\\"concat\\\",[\\\"u-results__text u-desc u-desc--bold\\\"],null]],[8],[1,[28,\\\"tt\\\",[\\\"normal percentage\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"normalPercent\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"twPercent\\\"]],[28,\\\"eq\\\",[[23,3,[]],\\\"twPercent\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[28,\\\"concat\\\",[\\\"u-results__text u-desc u-desc--bold\\\"],null]],[8],[1,[28,\\\"tt\\\",[\\\"taiwan percentage\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"twPercent\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"byBaseCost\\\"]],[28,\\\"eq\\\",[[23,3,[]],\\\"byBaseCost\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[28,\\\"concat\\\",[\\\"u-results__text u-desc u-desc--bold\\\"],null]],[8],[1,[28,\\\"tt\\\",[\\\"commission base cost\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"byBaseCost\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"byAmount\\\"]],[28,\\\"eq\\\",[[23,3,[]],\\\"byAmount\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[28,\\\"concat\\\",[\\\"u-results__text u-desc u-desc--bold\\\"],null]],[8],[1,[28,\\\"tt\\\",[\\\"commission amount\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"byAmount\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],\\\"adjustedShippingFee\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[28,\\\"concat\\\",[\\\"u-results__text u-desc u-desc--bold\\\"],null]],[8],[1,[28,\\\"tt\\\",[\\\"shipping fee adjustment\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"adjustedShippingFee\\\"]],false],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/commission-base-cost-history-prices/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostHistorySelector = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostHistorySelector extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"big\", _descriptor4, this);\n      _initializerDefineProperty(this, \"commissionBaseCostHistoryFilters\", _descriptor5, this);\n      _initializerDefineProperty(this, \"commissionBaseCostHistoryData\", _descriptor6, this);\n      _defineProperty(this, \"tagName\", 'span');\n      _defineProperty(this, \"classNames\", ['']);\n      _defineProperty(this, \"isReadonly\", false);\n      _defineProperty(this, \"adapterName\", 'channels/shop/campaigns/details/commission-base-cost/history');\n      _defineProperty(this, \"filtersAdapterName\", 'channels/shop/campaigns/details/commission-base-cost/history/filters');\n      const commissionBaseCostHistoryFilters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.commissionBaseCostHistoryFilters = commissionBaseCostHistoryFilters;\n    }\n    *fetchHistoryOnInitTask() {\n      const isUsingAverage = this?.args?.isUsingAverage;\n      const itemKey = this?.args?.itemKey;\n      const selectedCommissionBaseCostMethod = this.args.selectedCommissionBaseCostMethod;\n      const hasAdjustedShippingFee = this.args.hasAdjustedShippingFee;\n      const type = this.args.type;\n      const commissionBaseCostHistoryFilters = this.commissionBaseCostHistoryFilters;\n      commissionBaseCostHistoryFilters.setData('itemKey', itemKey);\n      commissionBaseCostHistoryFilters.setData('isUsingAverage', isUsingAverage);\n      commissionBaseCostHistoryFilters.setData('selectedCommissionBaseCostMethod', selectedCommissionBaseCostMethod);\n      commissionBaseCostHistoryFilters.setData('hasAdjustedShippingFee', hasAdjustedShippingFee);\n      commissionBaseCostHistoryFilters.setData('type', type);\n      if (hasAdjustedShippingFee) {\n        let taxRate = this?.args?.model?._data?.taxRate;\n        if (RA.isNilOrEmpty(taxRate)) {\n          const taxRateFromSettings = this?.settings?.settingsModel?._data?.taxRate || 0;\n          taxRate = taxRateFromSettings;\n        }\n        const isModelCalculatedByExclAmt = R.pathOr(true, ['args', 'isCalculatedByExclAmt'])(this);\n        commissionBaseCostHistoryFilters.setData('taxRate', taxRate);\n        commissionBaseCostHistoryFilters.setData('isModelCalculatedByExclAmt', isModelCalculatedByExclAmt);\n      }\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: commissionBaseCostHistoryFilters\n      });\n      this.commissionBaseCostHistoryData = results;\n    }\n    get isDisabled() {\n      if (!this?.args?.itemKey) {\n        return true;\n      }\n      return this.isReadonly;\n    }\n    select(model, campaignsDetailsModel, selectedCommissionBaseCostMethod, type, history, onHideDropdown) {\n      this.args.onSelect.perform({\n        model,\n        campaignsDetailsModel,\n        selectedCommissionBaseCostMethod,\n        type,\n        history,\n        onHideDropdown\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"commissionBaseCostHistoryFilters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"commissionBaseCostHistoryData\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchHistoryOnInitTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchHistoryOnInitTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Od6p/Wfq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"history\\\",\\\"@type\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@campaignsDetailsModel\\\",\\\"@model\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@list\\\"],[[22,\\\"isDisabled\\\"],[28,\\\"or\\\",[[23,0,[\\\"fetchHistoryOnInitTask\\\",\\\"isRunning\\\"]],[23,7,[]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchHistoryOnInitTask\\\"]]],null],[28,\\\"array\\\",[1],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"commissionBaseCostHistoryData\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"commissionBaseCostHistoryData\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/commission-base-cost-history-prices\\\",[],[[\\\"@history\\\",\\\"@onSelect\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@type\\\"],[[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"select\\\"]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]],[23,1,[]]],null],[23,4,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"no data\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRow = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRow extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"big\", _descriptor3, this);\n      _initializerDefineProperty(this, \"campaignsProducts\", _descriptor4, this);\n      _initializerDefineProperty(this, \"productList\", _descriptor5, this);\n      _initializerDefineProperty(this, \"commissionBaseCostNew\", _descriptor6, this);\n      _initializerDefineProperty(this, \"campaignsDetailsModel\", _descriptor7, this);\n    }\n    getCommissionBaseCostNew() {\n      const model = this.args.model;\n      const commissionBaseCostNew = R.propOr({}, 'commissionBaseCostNew', model);\n      this.commissionBaseCostNew = commissionBaseCostNew;\n      this.campaignsDetailsModel = model;\n    }\n    *searchProductsTask({\n      adapterName = 'products',\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        const campaignKey = this.args.campaignKey;\n        const filters = this.productsFilters;\n        const results = yield this.crud.searchInputTask.perform({\n          adapterName,\n          appendPath: `/campaigns/${campaignKey}`,\n          filters\n        }, query);\n        return results;\n      }\n    }\n    *setCommissionBaseCostFromHistoryTask({\n      model,\n      campaignsDetailsModel,\n      selectedCommissionBaseCostMethod,\n      type,\n      history,\n      onHideDropdown\n    }) {\n      // selectedCommissionBaseCostMethod = selectedCommissionBaseCostMethod || this?.args?.tableViewOptions?.selectedCommissionBaseCostMethod || ''\n      const isUsingAverage = this?.args?.tableViewOptions?.isUsingAverage;\n      if (RA.isNotNilOrEmpty(selectedCommissionBaseCostMethod)) {\n        const commissionBaseCosts = ['normalPercent', 'twPercent', 'byBaseCost', 'byAmount'];\n        R.forEach(commissionBaseCost => {\n          let commissionHistory = '';\n          if (R.equals(selectedCommissionBaseCostMethod, 'normalPercent') && R.equals(commissionBaseCost, 'normalPercent')) {\n            commissionHistory = history.getData(commissionBaseCost);\n          }\n          if (R.equals(selectedCommissionBaseCostMethod, 'twPercent') && R.equals(commissionBaseCost, 'twPercent')) {\n            commissionHistory = history.getData(commissionBaseCost);\n          }\n          if (R.equals(selectedCommissionBaseCostMethod, 'byBaseCost') && R.equals(commissionBaseCost, 'byBaseCost')) {\n            commissionHistory = history.getData(commissionBaseCost);\n          }\n          if (R.equals(selectedCommissionBaseCostMethod, 'byAmount') && R.equals(commissionBaseCost, 'byAmount')) {\n            commissionHistory = history.getData(commissionBaseCost);\n          }\n          model.setData(commissionBaseCost, commissionHistory);\n        })(commissionBaseCosts);\n      }\n      if (RA.isNotNilOrEmpty(type) && R.equals(type, 'adjustedShippingFee')) {\n        const adjustmentShippingFeeHistory = history.getData('adjustedShippingFee') || '';\n        model.setData('adjustedShippingFee', adjustmentShippingFeeHistory);\n      }\n      yield this.args.tableViewOptions.saveCommissionBaseCostNewModelTask.perform({\n        model,\n        campaignsDetailsModel,\n        selectedCommissionBaseCostMethod,\n        isUsingAverage\n      });\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"campaignsProducts\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"productList\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"commissionBaseCostNew\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"campaignsDetailsModel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getCommissionBaseCostNew\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"getCommissionBaseCostNew\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchProductsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchProductsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCommissionBaseCostFromHistoryTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setCommissionBaseCostFromHistoryTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA) {\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, _dec0, _dec1, _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 ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRowDetails = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRowDetails extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"big\", _descriptor3, this);\n      _initializerDefineProperty(this, \"campaignsProducts\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"productList\", _descriptor7, this);\n      _initializerDefineProperty(this, \"fillerType\", _descriptor8, this);\n      _defineProperty(this, \"productsFilters\", null);\n      _defineProperty(this, \"productsFiltersAdapterName\", 'products/filters');\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/commission-filler']);\n      let excludes = [];\n      if (this.isAutomations) {\n        excludes = [{\n          key: 'setType',\n          value: 'isSetWithChoices'\n        }, {\n          key: 'setType',\n          value: 'hasVariants'\n        }];\n      }\n      const productsFilters = this.search.setupFilters({\n        adapterName: this.productsFiltersAdapterName,\n        defaultFiltersData: {\n          resultsProperty: 'productsList',\n          excludes,\n          count: 20,\n          page: 1\n        }\n      });\n      this.productsFilters = productsFilters;\n      this.productList = [];\n      if (this?.args?.model && !this.args.isPresetTableView && !R.equals(this?.args?.tableViewOptions?.selectedCommissionBaseCostMethod, 'byBaseCost')) {\n        this.args.tableViewOptions.recalculateCommissionTotal({\n          useExclAmt: this.useExclAmt,\n          item: this?.args?.model,\n          isFromCommissionAmount: true\n        });\n      }\n      this.commissionErrorMsg = this.intl.t('commission_adjustment_error_msg');\n    }\n    *setAllCommissionsTask({\n      model,\n      commissionPropertyName\n    }) {\n      const fillerType = model.get('fillerType');\n      const fillerValue = model.getData(commissionPropertyName);\n      const selectedCommissionBaseCostMethod = this?.args?.tableViewOptions?.selectedCommissionBaseCostMethod || 'normalPercent';\n      const isUsingAverage = this?.args?.tableViewOptions?.isUsingAverage || true;\n      const itemKey = model.getData('itemKey');\n      const filterResults = this?.args?.results || [];\n      const modelIndex = R.findIndex(R.pathEq(['_data', 'itemKey'], itemKey))(filterResults);\n      const isPresetTableView = this.args.isPresetTableView;\n      const q = [];\n      let commissionBaseCostNew;\n      RA.mapIndexed((result, index) => {\n        commissionBaseCostNew = result;\n        if (isPresetTableView) {\n          commissionBaseCostNew = result.commissionBaseCostNew;\n        }\n        if ((R.equals(fillerType, 'fillTop') && R.lt(index, modelIndex) || R.equals(fillerType, 'fillBottom') && R.gt(index, modelIndex) || R.equals(fillerType, 'fillTopAndBottom')) && RA.isNilOrEmpty(commissionBaseCostNew.getData(commissionPropertyName))) {\n          commissionBaseCostNew.setData(commissionPropertyName, fillerValue);\n          if (isPresetTableView) {\n            q.push(this.args.tableViewOptions.saveCommissionBaseCostNewModelTask.perform({\n              model: commissionBaseCostNew,\n              campaignsDetailsModel: result,\n              selectedCommissionBaseCostMethod,\n              isUsingAverage\n            }));\n          }\n        }\n        if (R.equals(fillerType, 'clearTop') && R.lte(index, modelIndex) || R.equals(fillerType, 'clearBottom') && R.gte(index, modelIndex) || R.equals(fillerType, 'clearTopAndBottom')) {\n          commissionBaseCostNew.setData(commissionPropertyName, '');\n          if (isPresetTableView) {\n            q.push(this.args.tableViewOptions.saveCommissionBaseCostNewModelTask.perform({\n              model: commissionBaseCostNew,\n              campaignsDetailsModel: result,\n              selectedCommissionBaseCostMethod,\n              isUsingAverage\n            }));\n          }\n        }\n      })(filterResults);\n      if (RA.isNilOrEmpty(q) && !isPresetTableView) {\n        this.args.tableViewOptions.recalculateAdjustmentTable();\n      } else {\n        yield (0, _emberConcurrency.all)(q);\n      }\n      Ember.set(model, 'fillerType', '');\n      Ember.set(model, 'fillerLabel', '');\n    }\n    get commissionPropertyName() {\n      const adjustmentModel = this?.args?.tableViewOptions?.adjustmentModel;\n      let selectedCommissionBaseCostMethod;\n      if (adjustmentModel) {\n        selectedCommissionBaseCostMethod = adjustmentModel.getData('selectedCommissionBaseCostMethod') || '';\n      } else {\n        selectedCommissionBaseCostMethod = this.args.tableViewOptions.selectedCommissionBaseCostMethod;\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'normalPercent')) {\n        return 'normalPercent';\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'twPercent')) {\n        return 'twPercent';\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'byBaseCost')) {\n        return 'byBaseCost';\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'byAmount')) {\n        return 'byAmount';\n      }\n      return '';\n    }\n    get totalPrice() {\n      const model = this?.args?.model || {};\n      const isPresetTableView = R.pathOr(false, ['args', 'isPresetTableView'])(this);\n      const adjustedShippingFee = this.big.newBig(model?._data?.adjustedShippingFee || 0);\n      let totalPriceProp;\n      if (!isPresetTableView) {\n        let qty = model?._data?.commissionQty || '';\n        if (RA.isNilOrEmpty(qty)) {\n          qty = model?._data?.qty || 0;\n        }\n        const qtyBig = this.big.newBig(qty);\n        const useExclAmt = this.useExclAmt;\n        let amountBig = this.big.newBig(0);\n        if (useExclAmt) {\n          let exclAmt = model?._data?.discExclPriceExclShipping || '';\n          if (RA.isNilOrEmpty(exclAmt)) {\n            exclAmt = model?._data?.discExclPrice || '';\n          }\n          if (RA.isNilOrEmpty(exclAmt)) {\n            exclAmt = model?._data?.exclAmt || '';\n          }\n          amountBig = this.big.newBig(exclAmt);\n        } else {\n          let inclAmt = model?._data?.discInclPriceExclShipping || '';\n          if (RA.isNilOrEmpty(inclAmt)) {\n            inclAmt = model?._data?.discInclPrice || '';\n          }\n          if (RA.isNilOrEmpty(inclAmt)) {\n            inclAmt = model?._data?.inclAmt || '';\n          }\n          amountBig = this.big.newBig(inclAmt);\n        }\n        amountBig = amountBig.minus(adjustedShippingFee);\n        totalPriceProp = amountBig.times(qtyBig);\n        return this.big.autoRound(0, totalPriceProp.toFixed());\n      }\n    }\n    get useExclAmt() {\n      let useExclAmt = this?.args?.tableViewOptions?.adjustmentModel?._data?.isCalculatedByExclAmt;\n      if (RA.isNilOrEmpty(useExclAmt)) {\n        useExclAmt = true;\n      }\n      return useExclAmt;\n    }\n    get isInputReadonly() {\n      if (this?.args?.isChoices) {\n        return true;\n      }\n      if (this?.args?.model?._data?.isSetWithChoices) {\n        return true;\n      }\n      if (this?.args?.model?._data?.hasVariants) {\n        return true;\n      }\n\n      // if (this?.args?.model?._data?.isSet && !this?.args?.model?._data?.isSetChild) {\n      //   return true\n      // }\n    }\n    loadItem(item, product) {\n      item.setData('item', product.getData('name'));\n    }\n    unloadItem(item, product) {\n      item.setData('item', '');\n    }\n    removeAdjustmentRow(item, onAfter) {\n      const details = this?.args?.tableViewOptions?.details || [];\n      if (RA.isNotNilOrEmpty(details)) {\n        details.removeObject(item);\n      }\n      if (onAfter) {\n        onAfter();\n      }\n    }\n    *searchProductsTask({\n      adapterName = 'products',\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        let campaignKey;\n        if (this.args.isPresetTableView) {\n          campaignKey = this.args.campaignKey;\n        } else {\n          campaignKey = this.args.tableViewOptions.campaignKey;\n        }\n        const filters = this.productsFilters;\n        const results = yield this.crud.searchInputTask.perform({\n          adapterName,\n          appendPath: `/campaigns/${campaignKey}`,\n          filters\n        }, query);\n        return results;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"campaignsProducts\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"productList\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"fillerType\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setAllCommissionsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setAllCommissionsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadItem\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"loadItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadItem\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAdjustmentRow\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAdjustmentRow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchProductsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchProductsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6jCL8Y5Z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@adjustmentModel\\\",\\\"@isRowAdder\\\",\\\"@tableViewOptions\\\",\\\"@model\\\",\\\"@campaignsDetailsModel\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\",\\\"@wasSaved\\\",\\\"@whiteSpace\\\",\\\"@isPresetTableView\\\",\\\"@rowIndex\\\",\\\"@index\\\",\\\"@isChoices\\\",\\\"@isDetailRow\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isFilters\\\",\\\"@showFilters\\\",\\\"@hasHeadersSort\\\",\\\"@results\\\",\\\"@hasFilters\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,24,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@paramPrefix\\\",\\\"@keepParamPrefix\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[23,4,[\\\"adapterName\\\"]],\\\"product\\\",true,\\\"product.name\\\",[23,16,[]],[23,21,[]],[28,\\\"perform\\\",[[23,18,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,16,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"price range\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"hasAdjustedShippingFee\\\"]],[28,\\\"not-eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"shipping fee adjustment\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"auto fill shipping fee adjustment\\\",[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,4,[\\\"autoFillCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"results\\\"],[\\\"adjustedShippingFee\\\",[23,22,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[23,4,[\\\"adapterName\\\"]],\\\"item\\\",[23,16,[]],[23,21,[]],[28,\\\"perform\\\",[[23,18,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,16,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"delivered qty\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"commission qty\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@paramPrefix\\\",\\\"@keepParamPrefix\\\",\\\"@by\\\",\\\"@toNumber\\\",\\\"@onSort\\\"],[[23,21,[]],[23,16,[]],\\\"commissionBaseCostNew\\\",true,[28,\\\"concat\\\",[\\\"commissionBaseCostNew.\\\",[23,0,[\\\"commissionPropertyName\\\"]]],null],true,[28,\\\"perform\\\",[[23,18,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,16,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"commission_\\\",[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"auto fill commissions\\\",[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,4,[\\\"autoFillCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"results\\\"],[\\\"commissions\\\",[23,22,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"isCalculatedByExclAmt\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"exclusive selling price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive selling price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"hasAdjustedShippingFee\\\"]],[28,\\\"not-eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"shipping fee adjustment\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"auto fill shipping fee adjustment\\\",[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,4,[\\\"autoFillCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"results\\\"],[\\\"adjustedShippingFee\\\",[23,22,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"normalPercent\\\"],null],[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"twPercent\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\",\\\"@toNumber\\\"],[[23,4,[\\\"adapterName\\\"]],[23,0,[\\\"commissionPropertyName\\\"]],[23,16,[]],[23,21,[]],[28,\\\"perform\\\",[[23,18,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,16,[]]]]]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"commission_\\\",[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"auto fill commissions\\\",[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,4,[\\\"autoFillCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"results\\\"],[\\\"commissions\\\",[23,22,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"commission per unit\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byBaseCost\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@toNumber\\\",\\\"@onSort\\\"],[[23,21,[]],[23,16,[]],[23,0,[\\\"commissionPropertyName\\\"]],true,[28,\\\"perform\\\",[[23,18,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,16,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"commission base cost\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"auto fill commissions\\\",[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,4,[\\\"autoFillCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"results\\\"],[\\\"commissions\\\",[23,22,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@toNumber\\\",\\\"@onSort\\\"],[[23,21,[]],[23,16,[]],[23,0,[\\\"commissionPropertyName\\\"]],true,[28,\\\"perform\\\",[[23,18,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,16,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"commission amount\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"auto fill commissions\\\",[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,4,[\\\"autoFillCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"results\\\"],[\\\"commissions\\\",[23,22,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@toNumber\\\",\\\"@onSort\\\"],[[23,21,[]],[23,16,[]],\\\"commissionInclTotal\\\",true,[28,\\\"perform\\\",[[23,18,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,16,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"total commission\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,23,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"icon\\\",\\\"toggleIsOn\\\"],[true,true,\\\"fas fa-filter\\\",[23,20,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,19,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@isSearchBar\\\"],[[23,16,[\\\"_data\\\",\\\"item\\\"]],[23,17,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,17,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[[23,4,[\\\"adapterName\\\"]],[23,16,[]]]]]],null],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"hasAdjustedShippingFee\\\"]],[28,\\\"not-eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[[23,16,[\\\"_data\\\",\\\"item\\\"]],[23,17,[\\\"isRunning\\\"]],true,[28,\\\"perform\\\",[[23,17,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[[23,4,[\\\"adapterName\\\"]],[23,16,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"hasAdjustedShippingFee\\\"]],[28,\\\"not-eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"normalPercent\\\"],null],[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"twPercent\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byBaseCost\\\"],null],[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",-1,[28,\\\"perform\\\",[[23,18,[]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[23,16,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,15,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,13,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,12,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"concat\\\",[[23,10,[]],[23,5,[\\\"_data\\\",\\\"item\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,5,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@inputPvtClassNames\\\",\\\"@placeholder\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@onSearch\\\",\\\"@hasSelectedIcon\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@disabled\\\",\\\"@readonly\\\"],[\\\"span\\\",\\\"table-form__input table-form__input--120\\\",\\\"search products\\\",true,[23,0,[\\\"productsFilters\\\",\\\"productsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,5,[\\\"_data\\\",\\\"code\\\"]],\\\"_data.code\\\",\\\"_data._key\\\",[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"searchProductsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,5,[\\\"_data\\\",\\\"code\\\"]]]]]],null],\\\"fas fa-bookmark\\\",[28,\\\"fn\\\",[[23,0,[\\\"loadItem\\\"]],[23,5,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadItem\\\"]],[23,5,[]]],null],[28,\\\"not\\\",[[23,5,[\\\"_data\\\",\\\"manual\\\"]]],null],[28,\\\"not\\\",[[23,5,[\\\"_data\\\",\\\"manual\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"concat\\\",[[23,10,[]],[23,5,[\\\"_data\\\",\\\"item\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,5,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"warningMsg\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-info-circle\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,5,[\\\"_data\\\",\\\"warningMsg\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"minPriceFinal\\\"]],[23,5,[\\\"_data\\\",\\\"maxPriceFinal\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"_data\\\",\\\"maxPriceFinal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"_data\\\",\\\"minPriceFinal\\\"]]],null],false],[0,\\\" - \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"_data\\\",\\\"maxPriceFinal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"hasAdjustedShippingFee\\\"]],[28,\\\"not-eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@value\\\",\\\"@isFloat\\\",\\\"@onFocusOutSave\\\",\\\"@readonly\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"adjustedShippingFee\\\"]],true,[28,\\\"perform\\\",[[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"campaignsDetailsModel\\\",\\\"selectedCommissionBaseCostMethod\\\",\\\"isUsingAverage\\\"],[[23,7,[]],[23,6,[]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"isUsingAverage\\\"]]]]]],null],[23,0,[\\\"isInputReadonly\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector\\\",[],[[\\\"@itemKey\\\",\\\"@campaignDetailKey\\\",\\\"@model\\\",\\\"@isUsingAverage\\\",\\\"@salesPersonKey\\\",\\\"@type\\\",\\\"@hasAdjustedShippingFee\\\",\\\"@isCalculatedByExclAmt\\\",\\\"@campaignsDetailsModel\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,7,[]],[23,4,[\\\"isUsingAverage\\\"]],[23,4,[\\\"salesPersonKey\\\"]],\\\"adjustedShippingFee\\\",[23,4,[\\\"hasAdjustedShippingFee\\\"]],[23,4,[\\\"isCalculatedByExclAmt\\\"]],[23,6,[]],[28,\\\"or\\\",[[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]],null],[23,8,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"fillerType\\\"]],[23,5,[\\\"fillerLabel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setAllCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"commissionPropertyName\\\"],[[23,5,[]],\\\"adjustedShippingFee\\\"]]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,5,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@maxValue\\\",\\\"@isFloat\\\",\\\"@onFocusOut\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@readonly\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"qty\\\"]],true,[28,\\\"fn\\\",[[23,4,[\\\"recalculateAdjustmentTable\\\"]]],null],[23,5,[\\\"_data\\\",\\\"commissionQty\\\"]],[23,5,[\\\"_data\\\",\\\"manual\\\"]],[23,5,[\\\"_data\\\",\\\"manual\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"normalPercent\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@value\\\",\\\"@isFloat\\\",\\\"@onFocusOutSave\\\",\\\"@readonly\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"normalPercent\\\"]],true,[28,\\\"perform\\\",[[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"campaignsDetailsModel\\\",\\\"selectedCommissionBaseCostMethod\\\",\\\"isUsingAverage\\\"],[[23,7,[]],[23,6,[]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"isUsingAverage\\\"]]]]]],null],[23,0,[\\\"isInputReadonly\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"twPercent\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@value\\\",\\\"@isFloat\\\",\\\"@onFocusOutSave\\\",\\\"@readonly\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"twPercent\\\"]],true,[28,\\\"perform\\\",[[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"campaignsDetailsModel\\\",\\\"selectedCommissionBaseCostMethod\\\",\\\"isUsingAverage\\\"],[[23,7,[]],[23,6,[]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"isUsingAverage\\\"]]]]]],null],[23,0,[\\\"isInputReadonly\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector\\\",[],[[\\\"@itemKey\\\",\\\"@campaignDetailKey\\\",\\\"@model\\\",\\\"@isUsingAverage\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@salesPersonKey\\\",\\\"@campaignsDetailsModel\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,7,[]],[23,4,[\\\"isUsingAverage\\\"]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"salesPersonKey\\\"]],[23,6,[]],[28,\\\"or\\\",[[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]],null],[23,8,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byBaseCost\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@value\\\",\\\"@isFloat\\\",\\\"@onFocusOutSave\\\",\\\"@readonly\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"byBaseCost\\\"]],true,[28,\\\"perform\\\",[[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"campaignsDetailsModel\\\",\\\"selectedCommissionBaseCostMethod\\\",\\\"isUsingAverage\\\"],[[23,7,[]],[23,6,[]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"isUsingAverage\\\"]]]]]],null],[23,0,[\\\"isInputReadonly\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector\\\",[],[[\\\"@itemKey\\\",\\\"@campaignDetailKey\\\",\\\"@model\\\",\\\"@isUsingAverage\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@salesPersonKey\\\",\\\"@campaignsDetailsModel\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,7,[]],[23,4,[\\\"isUsingAverage\\\"]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"salesPersonKey\\\"]],[23,6,[]],[28,\\\"or\\\",[[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]],null],[23,8,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@value\\\",\\\"@isFloat\\\",\\\"@onFocusOutSave\\\",\\\"@readonly\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"byAmount\\\"]],true,[28,\\\"perform\\\",[[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"campaignsDetailsModel\\\",\\\"selectedCommissionBaseCostMethod\\\",\\\"isUsingAverage\\\"],[[23,7,[]],[23,6,[]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"isUsingAverage\\\"]]]]]],null],[23,0,[\\\"isInputReadonly\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector\\\",[],[[\\\"@itemKey\\\",\\\"@campaignDetailKey\\\",\\\"@model\\\",\\\"@isUsingAverage\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@salesPersonKey\\\",\\\"@campaignsDetailsModel\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,7,[]],[23,4,[\\\"isUsingAverage\\\"]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"salesPersonKey\\\"]],[23,6,[]],[28,\\\"or\\\",[[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]],null],[23,8,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"fillerType\\\"]],[23,5,[\\\"fillerLabel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setAllCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"commissionPropertyName\\\"],[[23,5,[]],[23,0,[\\\"commissionPropertyName\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\",\\\"@hasPlaceholder\\\",\\\"@hasSavedLabel\\\",\\\"@wasSaved\\\"],[[28,\\\"or\\\",[[23,4,[\\\"saveCommissionBaseCostNewModelTask\\\",\\\"isRunning\\\"]]],null],true,true,[23,9,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"isCalculatedByExclAmt\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"discExclPriceExclShipping\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@readonly\\\",\\\"@isFloat\\\",\\\"@value\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,true,[23,5,[\\\"_data\\\",\\\"discExclPriceExclShipping\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"discExclPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@readonly\\\",\\\"@isFloat\\\",\\\"@value\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,true,[23,5,[\\\"_data\\\",\\\"discExclPrice\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@readonly\\\",\\\"@isFloat\\\",\\\"@value\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,true,[23,5,[\\\"_data\\\",\\\"exclAmt\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"discInclPriceExclShipping\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@readonly\\\",\\\"@isFloat\\\",\\\"@value\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,true,[23,5,[\\\"_data\\\",\\\"discInclPriceExclShipping\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"discInclPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@readonly\\\",\\\"@isFloat\\\",\\\"@value\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,true,[23,5,[\\\"_data\\\",\\\"discInclPrice\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@readonly\\\",\\\"@isFloat\\\",\\\"@value\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,true,[23,5,[\\\"_data\\\",\\\"inclAmt\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"hasAdjustedShippingFee\\\"]],[28,\\\"not-eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@value\\\",\\\"@isFloat\\\",\\\"@onFocusOut\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"adjustedShippingFee\\\"]],true,[28,\\\"fn\\\",[[23,4,[\\\"checkAdjustedShippingFeeAndRecalculateCommissionTotal\\\"]],[23,5,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector\\\",[],[[\\\"@itemKey\\\",\\\"@campaignDetailKey\\\",\\\"@model\\\",\\\"@isUsingAverage\\\",\\\"@salesPersonKey\\\",\\\"@type\\\",\\\"@campaignsDetailsModel\\\",\\\"@hasAdjustedShippingFee\\\",\\\"@isCalculatedByExclAmt\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,5,[]],[23,4,[\\\"isUsingAverage\\\"]],[23,4,[\\\"salesPersonKey\\\"]],\\\"adjustedShippingFee\\\",[23,6,[]],[23,4,[\\\"hasAdjustedShippingFee\\\"]],[23,4,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"isCalculatedByExclAmt\\\"]],[28,\\\"or\\\",[[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]],null],[23,4,[\\\"setCommissionBaseCostFromHistoryTask\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"fillerType\\\"]],[23,5,[\\\"fillerLabel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setAllCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"commissionPropertyName\\\"],[[23,5,[]],\\\"adjustedShippingFee\\\"]]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[\\\"_data\\\",\\\"manual\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@isFloat\\\",\\\"@value\\\",\\\"@readonly\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,[23,0,[\\\"totalPrice\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"normalPercent\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"manual\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@value\\\",\\\"@isFloat\\\",\\\"@onFocusOut\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"normalPercent\\\"]],true,[28,\\\"fn\\\",[[23,4,[\\\"recalculateCommissionTotal\\\"]],[28,\\\"hash\\\",null,[[\\\"useExclAmt\\\",\\\"item\\\",\\\"isFromCommissionBaseCostInPercent\\\"],[[23,0,[\\\"useExclAmt\\\"]],[23,5,[]],true]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector\\\",[],[[\\\"@itemKey\\\",\\\"@campaignDetailKey\\\",\\\"@model\\\",\\\"@isUsingAverage\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@salesPersonKey\\\",\\\"@campaignsDetailsModel\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,5,[]],[23,4,[\\\"isUsingAverage\\\"]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"salesPersonKey\\\"]],[23,6,[]],[28,\\\"or\\\",[[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]],null],[23,4,[\\\"setCommissionBaseCostFromHistoryTask\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"fillerType\\\"]],[23,5,[\\\"fillerLabel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setAllCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"commissionPropertyName\\\"],[[23,5,[]],[23,0,[\\\"commissionPropertyName\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@isFloat\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,true,[23,5,[\\\"_data\\\",\\\"byAmount\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"twPercent\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"manual\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@value\\\",\\\"@isFloat\\\",\\\"@onFocusOut\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"twPercent\\\"]],true,[28,\\\"fn\\\",[[23,4,[\\\"recalculateCommissionTotal\\\"]],[28,\\\"hash\\\",null,[[\\\"useExclAmt\\\",\\\"item\\\",\\\"isFromCommissionBaseCostInTwPercent\\\"],[[23,0,[\\\"useExclAmt\\\"]],[23,5,[]],true]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector\\\",[],[[\\\"@itemKey\\\",\\\"@campaignDetailKey\\\",\\\"@model\\\",\\\"@isUsingAverage\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@salesPersonKey\\\",\\\"@campaignsDetailsModel\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,5,[]],[23,4,[\\\"isUsingAverage\\\"]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"salesPersonKey\\\"]],[23,6,[]],[28,\\\"or\\\",[[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]],null],[23,4,[\\\"setCommissionBaseCostFromHistoryTask\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"fillerType\\\"]],[23,5,[\\\"fillerLabel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setAllCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"commissionPropertyName\\\"],[[23,5,[]],[23,0,[\\\"commissionPropertyName\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@readonly\\\",\\\"@isFloat\\\",\\\"@value\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,true,[23,5,[\\\"_data\\\",\\\"byAmount\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byBaseCost\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"manual\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@isFloat\\\",\\\"@value\\\",\\\"@onFocusOut\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,[23,5,[\\\"_data\\\",\\\"byBaseCost\\\"]],[28,\\\"fn\\\",[[23,4,[\\\"recalculateCommissionTotal\\\"]],[28,\\\"hash\\\",null,[[\\\"useExclAmt\\\",\\\"item\\\",\\\"isFromCommissionBaseCost\\\"],[[23,0,[\\\"useExclAmt\\\"]],[23,5,[]],true]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector\\\",[],[[\\\"@itemKey\\\",\\\"@campaignDetailKey\\\",\\\"@model\\\",\\\"@isUsingAverage\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@salesPersonKey\\\",\\\"@campaignsDetailsModel\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,5,[]],[23,4,[\\\"isUsingAverage\\\"]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"salesPersonKey\\\"]],[23,6,[]],[28,\\\"or\\\",[[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]],null],[23,4,[\\\"setCommissionBaseCostFromHistoryTask\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"fillerType\\\"]],[23,5,[\\\"fillerLabel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setAllCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"commissionPropertyName\\\"],[[23,5,[]],[23,0,[\\\"commissionPropertyName\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"manual\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@isFloat\\\",\\\"@value\\\",\\\"@onFocusOut\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",true,[23,5,[\\\"_data\\\",\\\"byAmount\\\"]],[28,\\\"fn\\\",[[23,4,[\\\"recalculateCommissionTotal\\\"]],[28,\\\"hash\\\",null,[[\\\"useExclAmt\\\",\\\"item\\\",\\\"isFromCommissionAmount\\\"],[[23,0,[\\\"useExclAmt\\\"]],[23,5,[]],true]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-history-selector\\\",[],[[\\\"@itemKey\\\",\\\"@campaignDetailKey\\\",\\\"@model\\\",\\\"@isUsingAverage\\\",\\\"@selectedCommissionBaseCostMethod\\\",\\\"@salesPersonKey\\\",\\\"@campaignsDetailsModel\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,5,[]],[23,4,[\\\"isUsingAverage\\\"]],[23,4,[\\\"selectedCommissionBaseCostMethod\\\"]],[23,4,[\\\"salesPersonKey\\\"]],[23,6,[]],[28,\\\"or\\\",[[23,4,[\\\"autoFillCommissionsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]],null],[23,4,[\\\"setCommissionBaseCostFromHistoryTask\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"fillerType\\\"]],[23,5,[\\\"fillerLabel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setAllCommissionsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"commissionPropertyName\\\"],[[23,5,[]],[23,0,[\\\"commissionPropertyName\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@containerClassNames\\\",\\\"@value\\\",\\\"@isFloat\\\",\\\"@readonly\\\",\\\"@onFocusOut\\\"],[\\\"table-form__input has-text-right u-full-width\\\",\\\"u-full-width\\\",[23,5,[\\\"_data\\\",\\\"commissionInclTotal\\\"]],true,[28,\\\"and\\\",[[28,\\\"not\\\",[[23,5,[\\\"_data\\\",\\\"manual\\\"]]],null]],null],[28,\\\"fn\\\",[[23,4,[\\\"calculateTotalCommission\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"manual\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeAdjustmentRow\\\"]],[23,5,[]],[23,4,[\\\"calculateTotalCommission\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add new adjustment\\\",[28,\\\"fn\\\",[[23,2,[\\\"addNewRow\\\"]],\\\"\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/has-variants/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRowHasVariants extends _component.default {}\n  _exports.default = ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRowHasVariants;\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/has-variants/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"P3i3KWab\",\n    \"block\": \"{\\\"symbols\\\":[\\\"variantChild\\\",\\\"childIndex\\\",\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@index\\\",\\\"@model\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\",\\\"@commissionBaseCostNew\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[[23,3,[]],[23,4,[]],[23,16,[]],[23,5,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]]]]],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,16,[\\\"_data\\\",\\\"variantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@model\\\",\\\"@index\\\",\\\"@details\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[[23,3,[]],[23,4,[]],[23,1,[]],[28,\\\"concat\\\",[[23,5,[]],\\\".\\\",[28,\\\"calculate\\\",[[23,2,[]],\\\"+\\\",\\\"1\\\"],null]],null],[23,6,[\\\"_data\\\",\\\"variantChildren\\\"]],[28,\\\"concat\\\",[\\\"\\\\t\\\",[23,7,[]]],null],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/has-variants/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set-with-choices/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRowIsSetWithChoices extends _component.default {}\n  _exports.default = ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRowIsSetWithChoices;\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set-with-choices/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"c4jOhVjc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"choice\\\",\\\"childIndex\\\",\\\"detail\\\",\\\"grandChildIndex\\\",\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\",\\\"@commissionBaseCostNew\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@model\\\",\\\"@isCampaignsDetails\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[[23,5,[]],[23,6,[]],[23,17,[]],true,[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]]]]],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,17,[\\\"_data\\\",\\\"choices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@model\\\",\\\"@isCampaignsDetails\\\",\\\"@index\\\",\\\"@isChoices\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[[23,5,[]],[23,6,[]],[23,1,[]],true,[28,\\\"concat\\\",[[23,7,[]],\\\".\\\",[28,\\\"calculate\\\",[[23,2,[]],\\\"+\\\",\\\"1\\\"],null]],null],true,[28,\\\"concat\\\",[\\\"\\\\t\\\",[23,8,[]]],null],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]]]]],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@commissionBaseCostNew\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[[23,5,[]],[23,6,[]],[23,3,[]],[23,3,[]],[28,\\\"concat\\\",[[23,7,[]],\\\".\\\",[28,\\\"calculate\\\",[[23,2,[]],\\\"+\\\",\\\"1\\\"],null],\\\".\\\",[28,\\\"calculate\\\",[[23,4,[]],\\\"+\\\",\\\"1\\\"],null]],null],[28,\\\"concat\\\",[\\\"\\\\t\\\\t\\\",[23,8,[]]],null],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"hasVariants\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/has-variants\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@commissionBaseCostNew\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[[23,5,[]],[23,6,[]],[23,3,[]],[23,3,[]],[28,\\\"concat\\\",[[23,7,[]],\\\".\\\",[28,\\\"calculate\\\",[[23,2,[]],\\\"+\\\",\\\"1\\\"],null],\\\".\\\",[28,\\\"calculate\\\",[[23,4,[]],\\\"+\\\",\\\"1\\\"],null]],null],[28,\\\"concat\\\",[\\\"\\\\t\\\\t\\\",[23,8,[]]],null],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[[23,5,[]],[23,6,[]],[23,3,[]],[28,\\\"concat\\\",[[23,7,[]],\\\".\\\",[28,\\\"calculate\\\",[[23,2,[]],\\\"+\\\",\\\"1\\\"],null],\\\".\\\",[28,\\\"calculate\\\",[[23,4,[]],\\\"+\\\",\\\"1\\\"],null]],null],[28,\\\"concat\\\",[\\\"\\\\t\\\\t\\\",[23,8,[]]],null],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set-with-choices/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRowIsSet extends _component.default {}\n  _exports.default = ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionBaseCostTableCommissionBaseCostRowIsSet;\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7mYqr+B2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"setDetail\\\",\\\"childIndex\\\",\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\",\\\"@commissionBaseCostNew\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[[23,3,[]],[23,4,[]],[23,15,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]]]]],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,15,[\\\"_data\\\",\\\"setDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[[23,3,[]],[23,4,[]],[23,1,[]],[28,\\\"concat\\\",[[23,5,[]],\\\".\\\",[28,\\\"calculate\\\",[[23,2,[]],\\\"+\\\",\\\"1\\\"],null]],null],[28,\\\"concat\\\",[\\\"\\\\t\\\",[23,6,[]]],null],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vLy+JerD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isDetailRow\\\",\\\"@rowIndex\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@model\\\",\\\"@isFilters\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@hasFilters\\\",\\\"@showFilters\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isHeaders\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@hasFilters\\\",\\\"@showFilters\\\"],[true,true,[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,9,[]],[23,11,[]],[23,12,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isFilters\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@hasFilters\\\"],[true,[23,8,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,9,[]],[23,10,[]],[23,11,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"getCommissionBaseCostNew\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@commissionBaseCostNew\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[true,[23,1,[]],[23,0,[\\\"commissionBaseCostNew\\\"]],[23,7,[]],[23,2,[]],[23,3,[\\\"whiteSpace\\\"]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"commissionBaseCostNew\\\"]],[23,0,[\\\"campaignsDetailsModel\\\"]],[23,0,[\\\"campaignsDetailsModel\\\",\\\"wasSaved\\\"]],[23,0,[\\\"setCommissionBaseCostFromHistoryTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"hasVariants\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/has-variants\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@commissionBaseCostNew\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[true,[23,1,[]],[23,0,[\\\"commissionBaseCostNew\\\"]],[23,7,[]],[23,2,[]],[23,3,[\\\"whiteSpace\\\"]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"commissionBaseCostNew\\\"]],[23,0,[\\\"campaignsDetailsModel\\\"]],[23,0,[\\\"campaignsDetailsModel\\\",\\\"wasSaved\\\"]],[23,0,[\\\"setCommissionBaseCostFromHistoryTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"isSetWithChoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/is-set-with-choices\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@commissionBaseCostNew\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[true,[23,1,[]],[23,0,[\\\"commissionBaseCostNew\\\"]],[23,7,[]],[23,2,[]],[23,3,[\\\"whiteSpace\\\"]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"commissionBaseCostNew\\\"]],[23,0,[\\\"campaignsDetailsModel\\\"]],[23,0,[\\\"campaignsDetailsModel\\\",\\\"wasSaved\\\"]],[23,0,[\\\"setCommissionBaseCostFromHistoryTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isPresetTableView\\\",\\\"@isDetailRow\\\",\\\"@model\\\",\\\"@index\\\",\\\"@whiteSpace\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@commissionBaseCostNewModel\\\",\\\"@campaignsDetailsModel\\\",\\\"@wasSaved\\\",\\\"@setCommissionBaseCostFromHistoryTask\\\"],[true,[23,1,[]],[23,0,[\\\"commissionBaseCostNew\\\"]],[23,2,[]],[23,3,[\\\"whiteSpace\\\"]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"commissionBaseCostNew\\\"]],[23,0,[\\\"campaignsDetailsModel\\\"]],[23,0,[\\\"campaignsDetailsModel\\\",\\\"wasSaved\\\"]],[23,0,[\\\"setCommissionBaseCostFromHistoryTask\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15; // import { all } from 'ember-concurrency'\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 ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionsAdjustmentEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionsAdjustmentEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"server\", _descriptor4, this);\n      _initializerDefineProperty(this, \"guests\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"big\", _descriptor7, this);\n      _initializerDefineProperty(this, \"commissionBaseCostModel\", _descriptor8, this);\n      _initializerDefineProperty(this, \"original\", _descriptor9, this);\n      _initializerDefineProperty(this, \"campaignsDetails\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isMethodSelectorDisabled\", _descriptor1, this);\n      _initializerDefineProperty(this, \"commissionBaseCostMethodModel\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isNew\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isEditing\", _descriptor12, this);\n      _initializerDefineProperty(this, \"salesPersonKey\", _descriptor13, this);\n      _initializerDefineProperty(this, \"showResults\", _descriptor14, this);\n      _initializerDefineProperty(this, \"showPersistentResult\", _descriptor15, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/commissions-date-ranges', 'channels/shop/campaigns/lists/commission-types']);\n      const model = this.args.model;\n      const salesPersons = model.getData('salesPersons') || [];\n      const salesPerson = _nventor.default.safeHead(salesPersons);\n      const salesPersonKey = R.pathOr('', ['_data', '_key'], salesPerson);\n      this.salesPersonKey = salesPersonKey;\n    }\n    *setupCommissionBaseCostMethodTask() {\n      const model = this.args.model;\n      const campaignKey = model.getData('_key');\n      const campaignName = model.getData('name');\n      const salesPersons = model.getData('salesPersons') || [];\n      const salesPerson = _nventor.default.safeHead(salesPersons);\n      const salesPersonKey = R.pathOr(true, ['_data', '_key'], salesPerson);\n      const salesPersonName = R.pathOr(true, ['_data', 'name'], salesPerson);\n      const result = yield this.crud.findTask.perform({\n        adapterName: 'channels/shop/campaigns/commission-base-cost-method',\n        appendPath: `/${campaignKey}/${salesPersonKey}`\n      });\n      const resultDataCampaignKey = result?._data?.campaignKey || '';\n      if (RA.isNilOrEmpty(resultDataCampaignKey)) {\n        this.isNew = true;\n        this.isEditing = false;\n        const data = {\n          campaignKey,\n          campaignName,\n          salesPersonKey,\n          salesPersonName,\n          selectedCommissionBaseCostMethod: R.pathOr('normalPercent', ['_data', 'selectedCommissionBaseCostMethod'], model),\n          isUsingAverage: R.pathOr(true, ['_data', 'isCommissionsUsingAverage'], model),\n          isCalculatedByExclAmt: R.pathOr(true, ['_data', 'isCommissionsCalculatedByExclAmt'], model),\n          isUsingSetChild: R.pathOr(false, ['_data', 'isCommissionsUsingSetChild'], model),\n          hasAdjustedShippingFee: R.pathOr(false, ['_data', 'isCommissionsHasAdjustedShippingFee'], model)\n        };\n        const dirty = this.dataManager.newRecord({\n          adapterName: 'channels/shop/campaigns/commission-base-cost-method',\n          data\n        });\n        this.commissionBaseCostMethodModel = dirty;\n      } else {\n        this.isEditing = true;\n        this.isNew = false;\n        const dirty = this.crud.setupDirty({\n          adapterName: 'channels/shop/campaigns/commission-base-cost-method',\n          model: result\n        });\n        this.isMethodSelectorDisabled = true;\n        this.commissionBaseCostMethodModel = dirty;\n        yield this.fetchPresetCommissionsTask.perform();\n      }\n    }\n    *fetchPresetCommissionsTask() {\n      const commissionBaseCostMethodModel = this.commissionBaseCostMethodModel;\n      const isUsingSetChild = commissionBaseCostMethodModel.getData('isUsingSetChild');\n      const isUsingAverage = commissionBaseCostMethodModel.getData('isUsingAverage');\n      this.args.commissionBaseCostFilters.setData('isUsingSetChild', isUsingSetChild);\n      let results = [];\n      if (isUsingAverage) {\n        const model = this.args.model;\n        const master = model.getData('_key');\n        if (!master) {\n          return results;\n        }\n        results = yield this.crud.searchRecordsTask.perform({\n          adapterName: 'channels/shop/campaigns/details/preset-commissions',\n          appendPath: `/master/${master}`,\n          filters: this.args.commissionBaseCostFilters,\n          resultsProperty: 'results'\n        });\n      } else {\n        results = yield this.crud.searchRecordsTask.perform({\n          adapterName: 'channels/shop/campaigns/details',\n          filters: this.args.commissionBaseCostFilters,\n          resultsProperty: 'results'\n        });\n      }\n      this.createDirtyDetails({\n        filters: this.args.commissionBaseCostFilters\n      });\n    }\n    *saveSelectedCommissionBaseCostMethodTask() {\n      const commissionBaseCostMethodModel = this.commissionBaseCostMethodModel;\n      const isNew = this.isNew;\n      if (isNew) {\n        yield this.crud.createRecordTask.perform({\n          adapterName: 'channels/shop/campaigns/commission-base-cost-method',\n          model: commissionBaseCostMethodModel\n        });\n      } else {\n        yield this.crud.updateRecordTask.perform({\n          adapterName: 'channels/shop/campaigns/commission-base-cost-method',\n          model: commissionBaseCostMethodModel\n        });\n      }\n      yield this.setupCommissionBaseCostMethodTask.perform();\n    }\n    createDirtyDetails({\n      filters\n    }) {\n      const results = filters.get('results') || [];\n      const dirtyResults = R.map(model => {\n        const commissionBaseCostNew = R.propOr({}, 'commissionBaseCostNew', model);\n        const _key = R.pathOr('', ['_data', '_key'], commissionBaseCostNew);\n        let isNew = false;\n        if (RA.isNilOrEmpty(_key)) {\n          isNew = true;\n        }\n        const dirty = this.crud.setupDirty({\n          adapterName: 'channels/shop/campaigns/details/commission-base-cost',\n          model: commissionBaseCostNew,\n          isNew\n        });\n        const campaignModel = this.args.model;\n        const campaignName = campaignModel.getData('name');\n        const salesPersons = campaignModel.getData('salesPersons') || [];\n        const salesPerson = _nventor.default.safeHead(salesPersons);\n        const salesPersonKey = R.pathOr(true, ['_data', '_key'], salesPerson);\n        const salesPersonName = R.pathOr(true, ['_data', 'name'], salesPerson);\n        dirty.setData('campaignName', campaignName);\n        dirty.setData('salesPersonKey', salesPersonKey);\n        dirty.setData('salesPersonName', salesPersonName);\n        model.set('commissionBaseCostNew', dirty);\n        return model;\n      })(results);\n      filters.set('results', dirtyResults);\n      this.showResults = true;\n    }\n    *resetPresetCommissionsTask() {\n      const commissionBaseCostMethodModel = this.commissionBaseCostMethodModel;\n      const model = this.args.model;\n      const campaignKey = model.getData('_key');\n      const salesPersons = model.getData('salesPersons') || [];\n      const salesPerson = _nventor.default.safeHead(salesPersons);\n      const salesPersonKey = R.pathOr('', ['_data', '_key'], salesPerson);\n      const data = {\n        campaignKey,\n        salesPersonKey,\n        isForCommission: true,\n        isUsingAverage: model.getData('isCommissionsUsingAverage'),\n        isCalculatedByExclAmt: model.getData('isCommissionsCalculatedByExclAmt'),\n        isUsingSetChild: model.getData('isCommissionsUsingSetChild'),\n        hasAdjustedShippingFee: model.getData('isCommissionsHasAdjustedShippingFee'),\n        isReset: true,\n        page: 1,\n        count: 1000\n      };\n      yield this.server.call('PATCH', 'api/protected/channels/shop/campaigns/commission-base-cost/reset', data);\n      this.isMethodSelectorDisabled = false;\n      this.showResults = false;\n      const commissionBaseCostFilters = this?.args?.commissionBaseCostFilters || {};\n      if (RA.isNotNilOrEmpty(commissionBaseCostFilters)) {\n        commissionBaseCostFilters.set('results', []);\n        commissionBaseCostFilters.setData('page', 1);\n      }\n    }\n    cancelAllModels(onCloseDialogAction) {\n      if (this?.isDestroyed === false) {\n        const commissionBaseCostMethodModel = this.commissionBaseCostMethodModel || {};\n        const campaignsDetails = this.campaignsDetails || [];\n        this.crud.cancelEditing({\n          adapterName: 'channels/shop/campaigns/commission-base-cost-method',\n          dirty: commissionBaseCostMethodModel\n        });\n        R.forEach(model => {\n          this.crud.cancelEditing({\n            adapterName: 'channels/shop/campaigns/details/commission-base-cost',\n            dirty: model.commissionBaseCostNew\n          });\n        })(campaignsDetails);\n        if (onCloseDialogAction) {\n          onCloseDialogAction();\n        }\n      }\n    }\n    *saveCommissionBaseCostNewModelTask({\n      model,\n      campaignsDetailsModel,\n      selectedCommissionBaseCostMethod,\n      isUsingAverage\n    }) {\n      const results = this?.args?.commissionBaseCostFilters?.results || [];\n      const dirtyIndex = results.indexOf(campaignsDetailsModel);\n      const adapterName = 'channels/shop/campaigns/details/commission-base-cost';\n      model.setData('selectedCommissionBaseCostMethod', selectedCommissionBaseCostMethod);\n      if (R.equals(selectedCommissionBaseCostMethod, 'normalPercent')) {\n        model.setData('twPercent', '');\n        model.setData('byBaseCost', '');\n        model.setData('byAmount', '');\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'twPercent')) {\n        model.setData('normalPercent', '');\n        model.setData('byBaseCost', '');\n        model.setData('byAmount', '');\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'byBaseCost')) {\n        model.setData('normalPercent', '');\n        model.setData('twPercent', '');\n        model.setData('byAmount', '');\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'byAmount')) {\n        model.setData('normalPercent', '');\n        model.setData('twPercent', '');\n        model.setData('byBaseCost', '');\n      }\n      if (isUsingAverage) {\n        model.setData('isUsingAverage', true);\n      }\n      const _key = R.pathOr('', ['_data', '_key'], model);\n      let savedModel;\n      if (RA.isNilOrEmpty(_key)) {\n        savedModel = yield this.crud.queueCreateRecordTask.perform({\n          adapterName,\n          model,\n          component: this\n        });\n      } else {\n        savedModel = yield this.crud.queueUpdateRecordTask.perform({\n          adapterName,\n          model,\n          component: this\n        });\n      }\n      const dirty = this.createDirtyDetail({\n        savedModel,\n        campaignsDetailsModel,\n        isUsingAverage\n      });\n      dirty.set('wasSaved', true);\n      setTimeout(() => {\n        if (dirty && !dirty.isDestroyed) {\n          Ember.set(dirty, 'wasSaved', false);\n        }\n      }, 5000);\n      results.replace(dirtyIndex, 1, RA.list(dirty));\n    }\n    createDirtyDetail({\n      savedModel,\n      campaignsDetailsModel,\n      isUsingAverage\n    }) {\n      Ember.set(campaignsDetailsModel, '_data.commissionBaseCostNew', R.propOr({}, '_data', savedModel));\n      let newModel;\n      if (isUsingAverage) {\n        newModel = this.crud.setupDirty({\n          adapterName: 'channels/shop/campaigns/details/preset-commissions',\n          model: campaignsDetailsModel\n        });\n      } else {\n        newModel = this.crud.setupDirty({\n          adapterName: 'channels/shop/campaigns/details',\n          model: campaignsDetailsModel\n        });\n      }\n      const commissionBaseCostNew = R.propOr({}, 'commissionBaseCostNew', newModel);\n      const dirty = this.crud.setupDirty({\n        adapterName: 'channels/shop/campaigns/details/commission-base-cost',\n        model: commissionBaseCostNew,\n        isNew: true\n      });\n      newModel.commissionBaseCostNew = dirty;\n      return newModel;\n    }\n    setShowPersistentResult(value) {\n      this.showPersistentResult = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"guests\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"commissionBaseCostModel\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"original\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"campaignsDetails\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"isMethodSelectorDisabled\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"commissionBaseCostMethodModel\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isNew\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isEditing\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"salesPersonKey\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"showResults\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"showPersistentResult\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupCommissionBaseCostMethodTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupCommissionBaseCostMethodTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchPresetCommissionsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchPresetCommissionsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveSelectedCommissionBaseCostMethodTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveSelectedCommissionBaseCostMethodTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createDirtyDetails\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"createDirtyDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetPresetCommissionsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"resetPresetCommissionsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelAllModels\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelAllModels\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveCommissionBaseCostNewModelTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveCommissionBaseCostNewModelTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createDirtyDetail\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"createDirtyDetail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setShowPersistentResult\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"setShowPersistentResult\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6OmDeMYr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@commissionBaseCostFilters\\\",\\\"@isUsingAverage\\\",\\\"@model\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@title\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@isPushBtn\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[[23,6,[]],false,\\\"is-primary\\\",[23,7,[]],[28,\\\"perform\\\",[[23,0,[\\\"setupCommissionBaseCostMethodTask\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"cancelAllModels\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"commissions calculation method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@disabled\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"isMethodSelectorDisabled\\\"]],[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use average prices for each product\\\",[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"isUsingAverage\\\"]],true,true,false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use exclusive selling price to calculate commission\\\",[23,0,[\\\"isMethodSelectorDisabled\\\"]],[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"isCalculatedByExclAmt\\\"]],true,false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use product set children\\\",[23,0,[\\\"isMethodSelectorDisabled\\\"]],[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"isUsingSetChild\\\"]],true,false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use shipping fee adjustment\\\",[23,0,[\\\"isMethodSelectorDisabled\\\"]],[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"hasAdjustedShippingFee\\\"]],true,false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"resetPresetCommissionsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchCampaignDetailsTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showResults\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"showPersistentResult\\\"]],[23,3,[\\\"results\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content table-form--no-last-border u-full-width table-form__td--padding-8\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@paginationIsFooter\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[[23,2,[]],\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row\\\",false,[23,3,[\\\"results\\\"]],[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"onAfter\\\"],[\\\"channels/shop/campaigns/details/preset-commissions\\\",[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"setShowPersistentResult\\\"]],true],null]]]]],null],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"results\\\",\\\"model\\\",\\\"isUsingAverage\\\",\\\"whiteSpace\\\",\\\"onReloadAdjustmentTask\\\",\\\"selectedCommissionBaseCostMethod\\\",\\\"isCalculatedByExclAmt\\\",\\\"hasAdjustedShippingFee\\\",\\\"salesPersonKey\\\",\\\"saveCommissionBaseCostNewModelTask\\\",\\\"wasSaved\\\"],[\\\"channels/shop/campaigns/details/preset-commissions\\\",[23,3,[\\\"results\\\"]],[23,5,[]],[23,4,[]],\\\"\\\",[23,0,[\\\"fetchCampaignDetailsTask\\\"]],[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]],[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"isCalculatedByExclAmt\\\"]],[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"hasAdjustedShippingFee\\\"]],[23,0,[\\\"salesPersonKey\\\"]],[23,0,[\\\"saveCommissionBaseCostNewModelTask\\\"]],[23,0,[\\\"wasSaved\\\"]]]]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/no-data\\\",[],[[],[]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isMethodSelectorDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\"],[[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"queueCreateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"queueUpdateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"setupCommissionBaseCostMethodTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"resetPresetCommissionsTask\\\",\\\"isRunning\\\"]]],null],\\\"reset commission presets\\\",[28,\\\"perform\\\",[[23,0,[\\\"resetPresetCommissionsTask\\\"]]],null],true,\\\"are you sure you want to reset all rows?\\\",true]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@classNames\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"queueCreateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"queueUpdateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"setupCommissionBaseCostMethodTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"resetPresetCommissionsTask\\\",\\\"isRunning\\\"]]],null],\\\"u-btn--cancel\\\",\\\"close\\\",[28,\\\"fn\\\",[[23,0,[\\\"cancelAllModels\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,3,[\\\"results\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"is-primary\\\",[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"queueCreateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"queueUpdateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"setupCommissionBaseCostMethodTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"resetPresetCommissionsTask\\\",\\\"isRunning\\\"]]],null],\\\"next\\\",[28,\\\"perform\\\",[[23,0,[\\\"saveSelectedCommissionBaseCostMethodTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA, _nventor) {\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, _dec0, _dec1, _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, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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  let ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionsAdjustmentEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember.inject.service, _dec9 = Ember.inject.service, _dec0 = Ember.inject.service('channels/shop/campaigns'), _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, _dec21 = Ember._tracked, _dec22 = Ember._tracked, _dec23 = Ember._tracked, _dec24 = Ember._tracked, _dec25 = Ember._tracked, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _dec31 = Ember._action, _dec32 = Ember._action, _dec33 = Ember._action, _dec34 = Ember._action, _dec35 = Ember._action, _dec36 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionsAdjustmentEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"server\", _descriptor4, this);\n      _initializerDefineProperty(this, \"guests\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"big\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor9, this);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedPeriod\", _descriptor1, this);\n      _initializerDefineProperty(this, \"customDateEndZ\", _descriptor10, this);\n      _initializerDefineProperty(this, \"customDateStartZ\", _descriptor11, this);\n      _initializerDefineProperty(this, \"adjustmentModel\", _descriptor12, this);\n      _initializerDefineProperty(this, \"shownDateStart\", _descriptor13, this);\n      _initializerDefineProperty(this, \"shownDateEnd\", _descriptor14, this);\n      _initializerDefineProperty(this, \"dateParams\", _descriptor15, this);\n      _initializerDefineProperty(this, \"commissionAdjustmentListFilters\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isExcludingShipping\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isUsingPresetCommissions\", _descriptor18, this);\n      _initializerDefineProperty(this, \"totalCommission\", _descriptor19, this);\n      _initializerDefineProperty(this, \"totalSales\", _descriptor20, this);\n      _initializerDefineProperty(this, \"commissionBaseCostMethodModel\", _descriptor21, this);\n      _initializerDefineProperty(this, \"hasPresetCommission\", _descriptor22, this);\n      _initializerDefineProperty(this, \"isGenerated\", _descriptor23, this);\n      _initializerDefineProperty(this, \"salesPersonKey\", _descriptor24, this);\n      _initializerDefineProperty(this, \"isTryingToSaveWithoutDetails\", _descriptor25, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/commissions-date-ranges', 'channels/shop/campaigns/lists/commission-types', 'paymentTerms', 'paymentTerms/from', 'paymentTerms/end']);\n      this.selectedPeriod = 'campaignPeriod';\n      if (!this.hasEndDate) {\n        this.selectedPeriod = 'lastMonth';\n      }\n      this.thisMonthPeriod = this.date.getPeriod();\n      this.lastMonthPeriod = this.date.getPreviousPeriod();\n      this.customDateEndZ = this.thisMonthPeriod.monthEnd;\n      this.customDateStartZ = this.thisMonthPeriod.monthStart;\n      this.adapterName = 'channels/shop/campaigns/details';\n      this.commissionErrorMsg = this.intl.t('commission_adjustment_error_msg');\n      this.commissionAdjustmentListFilters = this.search.setupFilters({\n        adapterName: 'reports/commissions/data/adjustment/lists/filters'\n      });\n      const model = this.args.model;\n      const salesPersons = model.getData('salesPersons') || [];\n      const salesPerson = _nventor.default.safeHead(salesPersons);\n      const salesPersonKey = R.pathOr('', ['_data', '_key'], salesPerson);\n      this.salesPersonKey = salesPersonKey;\n    }\n    get hasEndDate() {\n      const periodDateEndZ = this?.args?.model?._data?.dateEndZ;\n      if (RA.isNilOrEmpty(periodDateEndZ)) {\n        return false;\n      }\n      return true;\n    }\n    get commissionDateRanges() {\n      const commissionDateRanges = this.crud?.lists['channels-shop-campaigns-commissions-date-ranges'] || [];\n      const hasEndDate = this.hasEndDate;\n      if (!hasEndDate) {\n        return R.reject(model => R.equals(model?._data?.value, 'campaignPeriod'))(commissionDateRanges);\n      }\n      return commissionDateRanges;\n    }\n    get commissionPaymentTerms() {\n      const paymentTermsList = R.pathOr([], ['crud', 'lists', 'paymentTerms'])(this);\n      const noneObject = this.crud.setupNewRecord({\n        adapterName: 'payment-terms',\n        data: {\n          _key: '',\n          label: 'none',\n          translate: true,\n          isNotEditable: true\n        }\n      });\n      return R.prepend(noneObject)(paymentTermsList);\n    }\n    updateDateParams() {\n      const model = this.args.model;\n      const selectedPeriod = this.selectedPeriod;\n      let periodDateStartZ = model._data.dateStartZ;\n      let periodDateEndZ = model._data.dateEndZ;\n      const customDateStartZ = this.customDateStartZ;\n      const customDateEndZ = this.customDateEndZ;\n      const dateParams = this.dateParams || {};\n      let dateStartString = '';\n      let dateEndString = '';\n      if (this.args.isEditing) {\n        periodDateStartZ = this?.adjustmentModel?._data?.dateStartZ;\n        periodDateEndZ = this?.adjustmentModel?._data?.dateEndZ;\n        dateStartString = periodDateStartZ;\n        dateEndString = periodDateEndZ;\n      } else {\n        if (R.equals(selectedPeriod, 'campaignPeriod')) {\n          if (periodDateStartZ) {\n            dateStartString = periodDateStartZ;\n          }\n          if (periodDateEndZ) {\n            dateEndString = periodDateEndZ;\n          }\n        }\n        if (R.equals(selectedPeriod, 'customDate')) {\n          dateStartString = customDateStartZ;\n          dateEndString = customDateEndZ;\n        }\n        if (R.equals(selectedPeriod, 'thisMonth')) {\n          dateStartString = this.thisMonthPeriod.monthStartZ;\n          dateEndString = this.thisMonthPeriod.monthEndZ;\n        }\n        if (R.equals(selectedPeriod, 'lastMonth')) {\n          dateStartString = this.lastMonthPeriod.monthStartZ;\n          dateEndString = this.lastMonthPeriod.monthEndZ;\n        }\n\n        // default date range if not specified is this month start - end for now\n        if (RA.isNilOrEmpty(dateStartString)) {\n          dateStartString = this.thisMonthPeriod.monthStartZ;\n        }\n        if (RA.isNilOrEmpty(dateEndString)) {\n          dateEndString = this.thisMonthPeriod.monthEndZ;\n        }\n      }\n      let dateEnd;\n      let dateStart;\n      if (dateStartString > dateEndString) {\n        dateEnd = this.date.formatDate(dateStartString);\n        dateStart = this.date.formatDate(dateEndString);\n      } else {\n        dateEnd = this.date.formatDate(dateEndString);\n        dateStart = this.date.formatDate(dateStartString);\n      }\n      dateParams.dateStart = dateStart;\n      dateParams.dateEnd = dateEnd;\n      this.dateParams = dateParams;\n      this.shownDateStart = dateStart;\n      this.shownDateEnd = dateEnd;\n    }\n    *saveAdjustmentTask({\n      adapterName,\n      model,\n      onAfter\n    }) {\n      const details = R.pipe(R.pathOr([], ['_data', 'details']), R.reject(detail => RA.isNilOrEmpty(detail?._data?.commissionInclTotal) || R.equals(Number(detail?._data?.commissionInclTotal || 0), 0)))(model);\n      if (RA.isNilOrEmpty(details)) {\n        this.isTryingToSaveWithoutDetails = true;\n        return;\n      }\n      model.setData('details', details);\n      const isAutoGenerated = model?._data?.isAutoGenerated || false;\n      let dateStartZ = '';\n      let dateEndZ = '';\n      const dateParams = this.dateParams;\n      const campaign = this.args.model;\n      const campaignSalesPersons = campaign.getData('salesPersons') || [];\n      const campaignKey = campaign.getData('_key');\n      const campaignName = campaign.getData('name');\n      const salesPerson = campaignSalesPersons[0] || {};\n      const salesPersonKey = salesPerson?._data?._key || '';\n      const salesPersonName = salesPerson?._data?.name || '';\n      const salesPersonUserName = salesPerson?._data?.username || '';\n      const periodEnd = this.date.getPeriod(dateParams.dateEnd);\n      dateStartZ = this.date.getStartOfDayZ(dateParams.dateStart);\n      dateEndZ = this.date.getEndOfDayZ(dateParams.dateEnd);\n      const dateZ = R.clone(dateEndZ);\n      const grandCommissionTotal = R.pipe(R.pathOr([], ['_data', 'details']), R.map(item => {\n        return item._data.commissionInclTotal || 0;\n      }), this.big.sumArray, this.big.autoRound(0))(model);\n      R.pipe(R.propOr({}, '_data'), data => {\n        data.isAutoGenerated = isAutoGenerated;\n        data.dateStartZ = dateStartZ;\n        data.dateEndZ = dateEndZ;\n        data.campaignKey = campaignKey;\n        data.campaignName = campaignName;\n        data.salesPersonKey = salesPersonKey;\n        data.salesPersonName = salesPersonName;\n        data.salesPersonUserName = salesPersonUserName;\n        data.campaignSalesPersons = campaignSalesPersons;\n        data.grandCommissionTotal = grandCommissionTotal;\n        if (RA.isNilOrEmpty(data.dateZ)) {\n          const period = this.date.getPeriod(dateZ);\n          data.dateZ = dateZ;\n          data.dd = period.dd;\n          data.mm = period.mm;\n          data.yyyy = period.yyyy;\n          data.ref = this.date.getStartOfDayZ(period.monthStart);\n        } else {\n          const period = this.date.getPeriod(data.dateZ);\n          data.dd = period.dd;\n          data.mm = period.mm;\n          data.yyyy = period.yyyy;\n          data.ref = this.date.getStartOfDayZ(period.monthStart);\n        }\n        data.ddEnd = periodEnd.dd;\n        data.mmEnd = periodEnd.mm;\n        data.yyyyEnd = periodEnd.yyyy;\n        return data;\n      })(model);\n      const payload = this.dataManager.setAsRecord({\n        adapterName,\n        data: model\n      });\n      if (this.args.isEditing) {\n        yield this.crud.updateRecordTask.perform({\n          adapterName,\n          model: payload,\n          onAfter\n        });\n      } else {\n        yield this.crud.createRecordTask.perform({\n          adapterName,\n          model: payload,\n          onAfter\n        });\n      }\n    }\n    calculateTotalCommission() {\n      const model = this.adjustmentModel;\n      const totalCommission = R.pipe(R.pathOr([], ['_data', 'details']), R.map(item => {\n        return item._data.commissionInclTotal || 0;\n      }), this.big.sumArray, this.big.autoRound(0))(model);\n      this.totalCommission = totalCommission;\n      this.calculateTotalSales();\n    }\n    calculateTotalSales() {\n      const details = this?.adjustmentModel?.getData('details') || [];\n      const useExclAmt = R.pathOr(true, ['adjustmentModel', '_data', 'isCalculatedByExclAmt'])(this);\n      const totalSales = R.pipe(R.map(item => {\n        let qty = item?._data?.commissionQty || '';\n        if (RA.isNilOrEmpty(qty)) {\n          qty = item?._data?.qty || 0;\n        }\n        const qtyBig = this.big.newBig(qty || 0);\n        let amount = 0;\n        if (useExclAmt) {\n          amount = item?._data?.discExclPriceExclShipping || '';\n          if (RA.isNilOrEmpty(amount)) {\n            amount = item?._data?.discExclPrice || '';\n          }\n          if (RA.isNilOrEmpty(amount)) {\n            amount = item?._data?.exclAmt || 0;\n          }\n        } else {\n          amount = item?._data?.discInclPriceExclShipping || '';\n          if (RA.isNilOrEmpty(amount)) {\n            amount = item?._data?.discInclPrice || '';\n          }\n          if (RA.isNilOrEmpty(amount)) {\n            amount = item?._data?.inclAmt || 0;\n          }\n        }\n        const amountBig = this.big.newBig(amount || 0);\n        const adjustedShippingFeeBig = this.big.newBig(item?._data?.adjustedShippingFee || 0);\n        const totalPriceBig = amountBig.minus(adjustedShippingFeeBig).times(qtyBig);\n        return this.big.autoRound(0, totalPriceBig);\n      }), this.big.sumArray, this.big.autoRound(0))(details);\n      this.totalSales = totalSales;\n    }\n    get addSalesInvoiceForCommissionsAdjustmentResetConfirmation() {\n      const details = this.adjustmentModel.getData('details') || [];\n      if (RA.isNotNilOrEmpty(details)) {\n        return true;\n      }\n      return false;\n    }\n    *addSalesInvoiceForCommissionsAdjustmentTask() {\n      const commissionBaseCostMethodModel = this.commissionBaseCostMethodModel;\n      const commissionAdjustmentListFilters = this.commissionAdjustmentListFilters;\n      const isUsingPresetCommissions = this.isUsingPresetCommissions;\n      const dateParams = R.clone(this.dateParams);\n      const model = this.args.model;\n      const sourceKey = model.getData('_key');\n      const selectedPeriod = this.selectedPeriod;\n      const dateStartZ = model.getData('dateStartZ');\n      const dateEndZ = model.getData('dateEndZ');\n      if (RA.isNilOrEmpty(dateStartZ) && RA.isNilOrEmpty(dateEndZ) && R.equals(selectedPeriod, 'campaignPeriod')) {\n        dateParams.dateEnd = '';\n        dateParams.dateStart = '';\n      }\n      if (R.equals(selectedPeriod, 'campaignPeriod')) {\n        dateParams.dateEnd = '';\n        dateParams.dateStart = '';\n      }\n      commissionAdjustmentListFilters.setData('sourceKey', sourceKey);\n      commissionAdjustmentListFilters.setData('dateStart', dateParams.dateStart);\n      commissionAdjustmentListFilters.setData('dateEnd', dateParams.dateEnd);\n      commissionAdjustmentListFilters.setData('isExcludingShipping', this.isExcludingShipping);\n      commissionAdjustmentListFilters.setData('isUsingAverage', commissionBaseCostMethodModel.getData('isUsingAverage'));\n      commissionAdjustmentListFilters.setData('isUsingSetChild', commissionBaseCostMethodModel.getData('isUsingSetChild'));\n      commissionAdjustmentListFilters.setData('hasAdjustedShippingFee', commissionBaseCostMethodModel.getData('hasAdjustedShippingFee'));\n      commissionAdjustmentListFilters.setData('isUsingPresetCommissions', isUsingPresetCommissions);\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'reports/commissions/data/adjustment/lists',\n        filters: commissionAdjustmentListFilters,\n        resultsProperty: 'results'\n      });\n      if (RA.isNilOrEmpty(results)) {\n        // @TODO: use a better method\n        window.alert(this.intl.t('no dispatched data'));\n      }\n      this.originalAdjustmentList = results;\n      this.adjustmentModel.setData('selectedCommissionBaseCostMethod', commissionBaseCostMethodModel.getData('selectedCommissionBaseCostMethod'));\n      this.adjustmentModel.setData('isUsingAverage', commissionBaseCostMethodModel.getData('isUsingAverage'));\n      this.adjustmentModel.setData('isCalculatedByExclAmt', commissionBaseCostMethodModel.getData('isCalculatedByExclAmt'));\n      this.adjustmentModel.setData('isUsingSetChild', commissionBaseCostMethodModel.getData('isUsingSetChild'));\n      this.adjustmentModel.setData('hasAdjustedShippingFee', commissionBaseCostMethodModel.getData('hasAdjustedShippingFee'));\n      this.adjustmentModel.setData('details', results);\n      this.adjustmentModel.setData('isAutoGenerated', true);\n      this.adjustmentModel.setData('docSalesInvoicesCountBeforeSplit', commissionAdjustmentListFilters.custom.fullCountBeforeSplit);\n      this.adjustmentModel.setData('docSalesInvoicesCount', commissionAdjustmentListFilters.fullCount);\n      yield this.autoFillCommissionsTask.perform({\n        results\n      });\n      if (commissionBaseCostMethodModel.getData('hasAdjustedShippingFee') && !R.equals(commissionBaseCostMethodModel.getData('selectedCommissionBaseCostMethod'), 'byAmount')) {\n        yield this.autoFillCommissionsTask.perform({\n          results,\n          type: 'adjustedShippingFee'\n        });\n      }\n      this.isGenerated = true;\n      this.recalculateAdjustmentTable();\n    }\n    *autoFillCommissionsTask({\n      results = [],\n      type = 'commissions'\n    }) {\n      const adjustmentModel = this.adjustmentModel;\n      const selectedCommissionBaseCostMethod = adjustmentModel.getData('selectedCommissionBaseCostMethod');\n      const isUsingAverage = adjustmentModel.getData('isUsingAverage');\n      const hasAdjustedShippingFee = adjustmentModel.getData('hasAdjustedShippingFee');\n      const isCalculatedByExclAmt = adjustmentModel.getData('isCalculatedByExclAmt');\n      const salesPersonKey = this.salesPersonKey;\n      let commissionPropertyName = this.getCommissionBaseCostProp(selectedCommissionBaseCostMethod);\n      const autoFillCommissionsFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/commission-base-cost/history/filters'\n      });\n      autoFillCommissionsFilters.setData('isUsingAverage', isUsingAverage);\n      autoFillCommissionsFilters.setData('salesPersonKey', salesPersonKey);\n      if (R.equals(type, 'commissions')) {\n        autoFillCommissionsFilters.setData('selectedCommissionBaseCostMethod', selectedCommissionBaseCostMethod);\n      }\n      if (R.equals(type, 'adjustedShippingFee')) {\n        autoFillCommissionsFilters.setData('type', 'adjustedShippingFee');\n        autoFillCommissionsFilters.setData('hasAdjustedShippingFee', hasAdjustedShippingFee);\n        autoFillCommissionsFilters.setData('isModelCalculatedByExclAmt', isCalculatedByExclAmt);\n        commissionPropertyName = 'adjustedShippingFee';\n      }\n      let q = [];\n      R.forEach(detail => {\n        const itemKey = detail.getData('itemKey');\n        const currentValue = detail.getData(commissionPropertyName);\n        if (RA.isNilOrEmpty(itemKey) || RA.isNotNilOrEmpty(currentValue)) {\n          q.push({});\n          return;\n        }\n        const filters = this.search.copyFilters({\n          adapterName: 'channels/shop/campaigns/details/commission-base-cost/history/filters',\n          filters: autoFillCommissionsFilters\n        });\n        filters.setData('itemKey', itemKey);\n        let taxRate = detail.getData('taxRate');\n        if (RA.isNilOrEmpty(taxRate)) {\n          taxRate = this?.settings?.settingsModel?._data?.taxRate || 0;\n        }\n        filters.setData('taxRate', taxRate);\n        const hasMultipleTaxRate = detail.getData('hasMultipleTaxRate');\n        if (R.equals(type, 'adjustedShippingFee') && hasMultipleTaxRate) {\n          q.push({});\n          return;\n        }\n        q.push(this.crud.searchRecordsTask.perform({\n          adapterName: 'channels/shop/campaigns/details/commission-base-cost/history',\n          filters\n        }));\n      })(results);\n      const allResults = yield (0, _emberConcurrency.all)(q);\n      q = [];\n      if (RA.isNotNilOrEmpty(allResults) && R.equals(R.length(allResults), R.length(results))) {\n        RA.mapIndexed((detail, index) => {\n          if (RA.isNilOrEmpty(allResults[index])) {\n            return;\n          }\n          const history = _nventor.default.safeHead(allResults[index]);\n          if (RA.isNilOrEmpty(history)) {\n            return;\n          }\n          if (R.equals(type, 'adjustedShippingFee')) {\n            q.push(this.setCommissionBaseCostFromHistoryTask.perform({\n              model: detail,\n              selectedCommissionBaseCostMethod,\n              type: 'adjustedShippingFee',\n              history\n            }));\n            return;\n          }\n          q.push(this.setCommissionBaseCostFromHistoryTask.perform({\n            model: detail,\n            selectedCommissionBaseCostMethod,\n            history\n          }));\n        })(results);\n      }\n      if (RA.isNotNilOrEmpty(q)) {\n        yield (0, _emberConcurrency.all)(q);\n      }\n    }\n    getCommissionBaseCostProp(selectedCommissionBaseCostMethod) {\n      if (R.equals(selectedCommissionBaseCostMethod, 'normalPercent')) {\n        return 'normalPercent';\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'twPercent')) {\n        return 'twPercent';\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'byBaseCost')) {\n        return 'byBaseCost';\n      }\n      if (R.equals(selectedCommissionBaseCostMethod, 'byAmount')) {\n        return 'byAmount';\n      }\n      return '';\n    }\n    *setupCommissionBaseCostMethodTask() {\n      const model = this.args.model;\n      const campaignKey = model.getData('_key');\n      const campaignName = model.getData('name');\n      const salesPersons = model.getData('salesPersons') || [];\n      const salesPerson = _nventor.default.safeHead(salesPersons);\n      const salesPersonKey = R.pathOr('', ['_data', '_key'], salesPerson);\n      const salesPersonName = R.pathOr('', ['_data', 'name'], salesPerson);\n      const data = {\n        campaignKey,\n        campaignName,\n        salesPersonKey,\n        salesPersonName,\n        selectedCommissionBaseCostMethod: R.pathOr('normalPercent', ['_data', 'selectedCommissionBaseCostMethod'], model),\n        isUsingAverage: R.pathOr(true, ['_data', 'isCommissionsUsingAverage'], model),\n        isCalculatedByExclAmt: R.pathOr(true, ['_data', 'isCommissionsCalculatedByExclAmt'], model),\n        isUsingSetChild: R.pathOr(false, ['_data', 'isCommissionsUsingSetChild'], model),\n        hasAdjustedShippingFee: R.pathOr(false, ['_data', 'isCommissionsHasAdjustedShippingFee'], model),\n        isNew: true\n      };\n      const dirty = this.dataManager.newRecord({\n        adapterName: 'channels/shop/campaigns/commission-base-cost-method',\n        data\n      });\n      this.commissionBaseCostMethodModel = dirty;\n    }\n    *setCommissionBaseCostFromHistoryTask({\n      model,\n      selectedCommissionBaseCostMethod,\n      type,\n      history,\n      onHideDropdown\n    }) {\n      // const selectedCommissionBaseCostMethod = selectedCommissionBaseCostMethod || this.adjustmentModel.getData('selectedCommissionBaseCostMethod') || ''\n\n      if (RA.isNotNilOrEmpty(selectedCommissionBaseCostMethod)) {\n        const commissionBaseCosts = ['normalPercent', 'twPercent', 'byBaseCost', 'byAmount'];\n        R.forEach(commissionBaseCost => {\n          let commissionHistory = '';\n          if (R.equals(selectedCommissionBaseCostMethod, 'normalPercent') && R.equals(commissionBaseCost, 'normalPercent')) {\n            commissionHistory = history.getData(commissionBaseCost);\n          }\n          if (R.equals(selectedCommissionBaseCostMethod, 'twPercent') && R.equals(commissionBaseCost, 'twPercent')) {\n            commissionHistory = history.getData(commissionBaseCost);\n          }\n          if (R.equals(selectedCommissionBaseCostMethod, 'byBaseCost') && R.equals(commissionBaseCost, 'byBaseCost')) {\n            commissionHistory = history.getData(commissionBaseCost);\n          }\n          if (R.equals(selectedCommissionBaseCostMethod, 'byAmount') && R.equals(commissionBaseCost, 'byAmount')) {\n            commissionHistory = history.getData(commissionBaseCost);\n          }\n          model.setData(commissionBaseCost, commissionHistory);\n        })(commissionBaseCosts);\n      }\n      if (RA.isNotNilOrEmpty(type) && R.equals(type, 'adjustedShippingFee')) {\n        const adjustmentShippingFeeHistory = history.getData('adjustedShippingFee') || '';\n        model.setData('adjustedShippingFee', adjustmentShippingFeeHistory);\n      }\n      this.recalculateAdjustmentTable();\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    }\n    *createDirtyTask(model) {\n      if (this.args.isEditing) {\n        this.crud.setupDirty({\n          adapterName: 'reports/commissions/data/adjustment',\n          model: this.args.adjustmentModel,\n          component: this,\n          resultsProperty: 'adjustmentModel'\n        });\n        this.originalAdjustmentList = this.adjustmentModel.getData('details');\n      } else {\n        const adjustmentModel = this.crud.setupNewRecord({\n          adapterName: 'reports/commissions/data/adjustment',\n          data: {\n            campaignKey: model?._data?._key || '',\n            campaignSalesPersons: model?._data?.salesPersons || [],\n            details: this.details || []\n          }\n        });\n        this.adjustmentModel = adjustmentModel;\n        const salesPersons = model.getData('salesPersons') || [];\n        const salesPerson = _nventor.default.safeHead(salesPersons);\n        const salesPersonHasPaymentTerms = R.pathOr(false, ['_data', 'hasPaymentTerms'], salesPerson);\n        if (salesPersonHasPaymentTerms) {\n          const salesPersonPaymentTermsKey = R.pathOr('', ['_data', 'paymentTermsKey'], salesPerson);\n          const paymentTermsList = R.pathOr([], ['crud', 'lists', 'paymentTerms'])(this);\n          const usedPaymentTerms = R.find(R.pathEq(['_data', '_key'], salesPersonPaymentTermsKey))(paymentTermsList);\n          this.adjustmentModel.setData('hasPaymentTerms', true);\n          this.loadPaymentTerms(usedPaymentTerms);\n        }\n      }\n      this.updateDateParams();\n      yield this.campaignsService.checkHasAnyCommissionData.perform({\n        model: this.args.model\n      });\n      this.isUsingPresetCommissions = false;\n      this.hasPresetCommission = false;\n      if (!this.args.isEditing) {\n        yield this.setupCommissionBaseCostMethodTask.perform();\n      }\n    }\n    cancel(onCloseDialogAction) {\n      const commissionBaseCostMethodModel = this.commissionBaseCostMethodModel || {};\n      const adjustmentModel = this.adjustmentModel;\n      if (RA.isNotNilOrEmpty(commissionBaseCostMethodModel)) {\n        this.crud.cancelEditing({\n          adapterName: 'channels/shop/campaigns/commission-base-cost-method',\n          dirty: commissionBaseCostMethodModel\n        });\n      }\n      this.crud.cancelEditing({\n        adapterName: 'reports/commissions/data/adjustment',\n        dirty: adjustmentModel\n      });\n      this.isExcludingShipping = true;\n      this.isUsingPresetCommissions = true;\n      this.selectedPeriod = 'campaignPeriod';\n      if (!this.hasEndDate) {\n        this.selectedPeriod = 'lastMonth';\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    closeAndReloadAdjustment(onReloadAdjustmentTask, onCloseDialogAction) {\n      onReloadAdjustmentTask.perform();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    loadPaymentTerms(paymentTerms) {\n      const adjustmentModel = this?.adjustmentModel || {};\n      if (RA.isNilOrEmpty(adjustmentModel)) {\n        return;\n      }\n      const hasPaymentTerms = adjustmentModel.getData('hasPaymentTerms');\n      if (!hasPaymentTerms) {\n        adjustmentModel.setData('paymentTermsKey', '');\n        adjustmentModel.setData('paymentTerms', '');\n        adjustmentModel.setData('paymentTermsMonths', '');\n        adjustmentModel.setData('paymentTermsDays', '');\n        adjustmentModel.setData('paymentTermsFrom', '');\n        adjustmentModel.setData('paymentTermsEnd', '');\n        adjustmentModel.setData('paymentTermsLastDayOfMonth', '');\n        return false;\n      }\n      if (RA.isNotNilOrEmpty(paymentTerms)) {\n        adjustmentModel.setData('paymentTerms', paymentTerms.getData('label'));\n        adjustmentModel.setData('paymentTermsKey', paymentTerms.getData('_key'));\n        adjustmentModel.setData('paymentTermsMonths', paymentTerms.getData('months'));\n        adjustmentModel.setData('paymentTermsDays', paymentTerms.getData('days'));\n        adjustmentModel.setData('paymentTermsFrom', paymentTerms.getData('from'));\n        adjustmentModel.setData('paymentTermsEnd', paymentTerms.getData('end'));\n        adjustmentModel.setData('paymentTermsLastDayOfMonth', paymentTerms.getData('lastDayOfMonth'));\n      }\n      return true;\n    }\n    recalculateCommissionTotal({\n      useExclAmt,\n      item,\n      isFromCommissionBaseCostInPercent,\n      isFromCommissionBaseCostInTwPercent,\n      isFromCommissionBaseCost,\n      isFromCommissionAmount\n    }) {\n      if (item._data.manual) {\n        this.calculateTotalCommission();\n        return item;\n      }\n      const normalPercent = Number(item?._data?.normalPercent) || '';\n      const twPercent = Number(item?._data?.twPercent) || '';\n      const byBaseCost = Number(item?._data?.byBaseCost) || '';\n      const byAmount = Number(item?._data?.byAmount) || '';\n      let exclAmt = this.big.newBig(item._data.discExclPriceExclShipping || 0);\n      if (exclAmt.lte(0)) {\n        exclAmt = this.big.newBig(item._data.discExclPrice || 0);\n      }\n      if (exclAmt.lte(0)) {\n        exclAmt = this.big.newBig(item._data.exclAmt || 0);\n      }\n      if (!useExclAmt) {\n        exclAmt = this.big.newBig(item._data.discInclPriceExclShipping || 0);\n        if (exclAmt.lte(0)) {\n          exclAmt = this.big.newBig(item._data.discInclPrice || 0);\n        }\n        if (exclAmt.lte(0)) {\n          exclAmt = this.big.newBig(item._data.inclAmt || 0);\n        }\n      }\n      const adjustedShippingFeeBig = this.big.newBig(item?._data?.adjustedShippingFee || 0);\n      exclAmt = exclAmt.minus(adjustedShippingFeeBig);\n      if (isFromCommissionBaseCostInPercent && RA.isNotNilOrEmpty(normalPercent)) {\n        if (RA.isNotNilOrEmpty(normalPercent)) {\n          const qty = this.big.newBig(item?._data?.commissionQty || 0);\n          // const totalExclAmt = qty.times(exclAmt)\n          const byAmountBig = this.big.newBig(exclAmt).times(normalPercent).div(100);\n          // const byBaseCostBig = byAmountBig.plus(exclAmt)\n          const byAmount = this.big.autoRound(8, byAmountBig);\n          // const byBaseCost = this.big.autoRound(8, byBaseCostBig)\n\n          const commissionInclTotal = byAmountBig.times(qty).toFixed(0);\n\n          // item.setData('changedCommissionTotal', commissionAmt)\n          // item.setData('commissionPerUnit', commissionPerUnit)\n          item.setData('byAmount', byAmount);\n          item.setData('commissionInclTotal', commissionInclTotal);\n        }\n        this.calculateTotalCommission();\n        return item;\n      }\n      if (isFromCommissionBaseCostInPercent && RA.isNilOrEmpty(normalPercent)) {\n        // item.setData('changedCommissionTotal', '')\n        // item.setData('commissionPerUnit', '')\n        item.setData('byAmount', '');\n        item.setData('commissionInclTotal', '');\n        this.calculateTotalCommission();\n        return item;\n      }\n      if (isFromCommissionBaseCostInTwPercent && RA.isNotNilOrEmpty(twPercent)) {\n        let normalPercentUsed;\n        normalPercentUsed = R.clone(twPercent);\n        if (R.lte(normalPercentUsed, 10)) {\n          normalPercentUsed = 100 - twPercent * 10;\n          const qty = this.big.newBig(item?._data?.commissionQty || 0);\n          const byAmountBig = this.big.newBig(exclAmt).times(normalPercentUsed).div(100);\n          const byAmount = this.big.autoRound(8, byAmountBig);\n          const commissionInclTotal = byAmountBig.times(qty).toFixed(0);\n          item.setData('byAmount', byAmount);\n          item.setData('commissionInclTotal', commissionInclTotal);\n        } else {\n          item.setData('byAmount', this.commissionErrorMsg);\n          item.setData('commissionInclTotal', this.commissionErrorMsg);\n        }\n        this.calculateTotalCommission();\n        return item;\n      }\n      if (isFromCommissionBaseCostInTwPercent && RA.isNilOrEmpty(twPercent)) {\n        item.setData('byAmount', '');\n        item.setData('commissionInclTotal', '');\n        this.calculateTotalCommission();\n        return item;\n      }\n      if (isFromCommissionBaseCost && RA.isNotNilOrEmpty(byBaseCost) && item._data.itemKey) {\n        const qty = this.big.newBig(item?._data?.commissionQty || 0);\n        const byAmountBig = this.big.newBig(exclAmt).minus(byBaseCost);\n        const byAmount = this.big.autoRound(8, byAmountBig);\n        const commissionInclTotal = byAmountBig.times(qty).toFixed(0);\n        item.setData('byAmount', byAmount);\n        item.setData('commissionInclTotal', commissionInclTotal);\n        this.calculateTotalCommission();\n        return item;\n      }\n      if (isFromCommissionBaseCost && RA.isNilOrEmpty(byBaseCost) && item._data.itemKey) {\n        item.setData('byAmount', '');\n        item.setData('commissionInclTotal', '');\n        this.calculateTotalCommission();\n        return item;\n      }\n      if (isFromCommissionAmount && RA.isNotNilOrEmpty(byAmount) && !item._data.manual) {\n        const qty = this.big.newBig(item?._data?.commissionQty || 0);\n        const commissionBaseCostBig = this.big.newBig(byAmount).plus(exclAmt);\n        const commissionBaseCost = this.big.autoRound(8, commissionBaseCostBig);\n        const commissionInclTotal = qty.times(byAmount).toFixed(0);\n        item.setData('byBaseCost', commissionBaseCost);\n        item.setData('commissionInclTotal', commissionInclTotal);\n        this.calculateTotalCommission();\n        return item;\n      }\n      if (isFromCommissionAmount && RA.isNilOrEmpty(byAmount) && !item._data.manual) {\n        item.setData('byBaseCost', '');\n        item.setData('commissionInclTotal', '');\n        this.calculateTotalCommission();\n        return item;\n      }\n      this.calculateTotalCommission();\n      return item;\n    }\n    checkAdjustedShippingFeeAndRecalculateCommissionTotals() {\n      const results = this.filteredResults || [];\n      R.forEach(model => {\n        this.checkAdjustedShippingFeeAndRecalculateCommissionTotal(model);\n      })(results);\n    }\n    checkAdjustedShippingFeeAndRecalculateCommissionTotal(model) {\n      const hasAdjustedShippingFee = R.pathOr(false, ['adjustmentModel', '_data', 'hasAdjustedShippingFee'])(this);\n      if (hasAdjustedShippingFee) {\n        const adjustedShippingFeeBig = this.big.newBig(model?._data?.adjustedShippingFee || 0);\n        const isPresetTableView = R.pathOr(false, ['args', 'isPresetTableView'])(this);\n        if (isPresetTableView) {\n          const maxPriceFinalBig = this.big.newBig(model?._data?.maxPriceFinal || 0);\n          if (RA.isNotNilOrEmpty(model?._data?.maxPriceFinal) && adjustedShippingFeeBig.gt(maxPriceFinalBig)) {\n            model.setData('adjustedShippingFee', maxPriceFinalBig.toFixed());\n          }\n        } else {\n          const useExclAmt = this.useExclAmt;\n          let amountBig = this.big.newBig(0);\n          if (useExclAmt) {\n            let exclAmt = model?._data?.discExclPriceExclShipping || '';\n            if (RA.isNilOrEmpty(exclAmt)) {\n              exclAmt = model?._data?.discExclPrice || '';\n            }\n            if (RA.isNilOrEmpty(exclAmt)) {\n              exclAmt = model?._data?.exclAmt || '';\n            }\n            amountBig = this.big.newBig(exclAmt);\n          } else {\n            let inclAmt = model?._data?.discInclPriceExclShipping || '';\n            if (RA.isNilOrEmpty(inclAmt)) {\n              inclAmt = model?._data?.discInclPrice || '';\n            }\n            if (RA.isNilOrEmpty(inclAmt)) {\n              inclAmt = model?._data?.inclAmt || '';\n            }\n            amountBig = this.big.newBig(inclAmt);\n          }\n          if (adjustedShippingFeeBig.gt(amountBig)) {\n            model.setData('adjustedShippingFee', amountBig.toFixed());\n          }\n        }\n      } else {\n        model.setData('adjustedShippingFee', '');\n      }\n      this.recalculateAdjustmentTable();\n    }\n    recalculateAdjustmentTable() {\n      const adjustmentModel = this?.adjustmentModel || {};\n      const originalAdjustmentList = this.originalAdjustmentList || [];\n      const customCommissionModelDetails = R.pipe(R.pathOr([], ['_data', 'details']), R.filter(detail => R.pathEq(['_data', 'manual'], true, detail)))(adjustmentModel);\n      const useExclAmt = adjustmentModel._data.isCalculatedByExclAmt;\n      const selectedCommissionBaseCostMethod = adjustmentModel._data.selectedCommissionBaseCostMethod;\n      let isFromCommissionBaseCostInPercent = false;\n      let isFromCommissionBaseCostInTwPercent = false;\n      let isFromCommissionBaseCost = false;\n      let isFromCommissionAmount = false;\n      let adjustmentModelDetails = R.concat(originalAdjustmentList, customCommissionModelDetails);\n      adjustmentModelDetails = adjustmentModel.getData('details');\n      if (R.equals('normalPercent', selectedCommissionBaseCostMethod)) {\n        isFromCommissionBaseCostInPercent = true;\n      }\n      if (R.equals('twPercent', selectedCommissionBaseCostMethod)) {\n        isFromCommissionBaseCostInTwPercent = true;\n      }\n      if (R.equals('byBaseCost', selectedCommissionBaseCostMethod)) {\n        isFromCommissionBaseCost = true;\n      }\n      if (R.equals('byAmount', selectedCommissionBaseCostMethod)) {\n        isFromCommissionAmount = true;\n      }\n      adjustmentModelDetails = R.map(item => {\n        const commissionQty = R.pathOr('', ['_data', 'commissionQty'])(item);\n        if (RA.isNilOrEmpty(commissionQty)) {\n          const qty = R.pathOr('', ['_data', 'qty'])(item);\n          item.setData('commissionQty', qty);\n        }\n        item = this.recalculateCommissionTotal({\n          useExclAmt,\n          item,\n          isFromCommissionBaseCostInPercent,\n          isFromCommissionBaseCostInTwPercent,\n          isFromCommissionBaseCost,\n          isFromCommissionAmount\n        });\n        return item;\n      })(adjustmentModelDetails);\n      adjustmentModel.setData('details', adjustmentModelDetails);\n      this.calculateTotalCommission();\n    }\n    *searchAdvancedTaskAndSetAdjustmentModel({\n      ...args\n    }) {\n      // NOT USED FOR NOW\n      // const results = yield this.crud.searchAdvancedTask.perform({ ...args })\n      // this.adjustmentModel.setData('details', results)\n    }\n    *reloadSearchRecordsTaskAndSetAdjustmentModel({\n      ...args\n    }) {\n      if (args.reset) {\n        this.commissionAdjustmentListFilters.reset(...arguments);\n      }\n      // NOT USED FOR NOW\n      // const results = yield this.crud.reloadSearchRecordsTask.perform({ ...args })\n      // this.adjustmentModel.setData('details', results)\n    }\n    *paginateSearchRecordsTaskAndSetAdjustmentModel({\n      ...args\n    }) {\n      // NOT USED FOR NOW\n      // const results = yield this.crud.paginateSearchRecordsTask.perform({ ...args })\n      // this.adjustmentModel.setData('details', results)\n    }\n    get filteredResults() {\n      let filteredResults;\n      const results = this.adjustmentModel.getData('details');\n      const filters = this.commissionAdjustmentListFilters;\n      const productFilter = R.toLower(filters.getData('item'));\n      if (!productFilter) {\n        filteredResults = results;\n      } else {\n        filteredResults = R.filter(model => R.includes(productFilter, R.toLower(model.getData('item'))))(results);\n      }\n      // just to trigger computed\n      const sortData = filters.getData('sort');\n      const sortArray = filters?.getRamdaSortWithArray('_data.') || [];\n      filteredResults = R.sortWith(sortArray)(filteredResults);\n      return filteredResults;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"guests\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"selectedPeriod\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"customDateEndZ\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"customDateStartZ\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"adjustmentModel\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"shownDateStart\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"shownDateEnd\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"dateParams\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"commissionAdjustmentListFilters\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isExcludingShipping\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isUsingPresetCommissions\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"totalCommission\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"totalSales\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"commissionBaseCostMethodModel\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"hasPresetCommission\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"isGenerated\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"salesPersonKey\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"isTryingToSaveWithoutDetails\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateDateParams\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDateParams\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveAdjustmentTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveAdjustmentTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"calculateTotalCommission\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"calculateTotalCommission\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"calculateTotalSales\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"calculateTotalSales\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addSalesInvoiceForCommissionsAdjustmentTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addSalesInvoiceForCommissionsAdjustmentTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"autoFillCommissionsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"autoFillCommissionsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getCommissionBaseCostProp\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"getCommissionBaseCostProp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupCommissionBaseCostMethodTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupCommissionBaseCostMethodTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCommissionBaseCostFromHistoryTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setCommissionBaseCostFromHistoryTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createDirtyTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"createDirtyTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeAndReloadAdjustment\", [_dec31], Object.getOwnPropertyDescriptor(_class.prototype, \"closeAndReloadAdjustment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadPaymentTerms\", [_dec32], Object.getOwnPropertyDescriptor(_class.prototype, \"loadPaymentTerms\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"recalculateCommissionTotal\", [_dec33], Object.getOwnPropertyDescriptor(_class.prototype, \"recalculateCommissionTotal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkAdjustedShippingFeeAndRecalculateCommissionTotals\", [_dec34], Object.getOwnPropertyDescriptor(_class.prototype, \"checkAdjustedShippingFeeAndRecalculateCommissionTotals\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkAdjustedShippingFeeAndRecalculateCommissionTotal\", [_dec35], Object.getOwnPropertyDescriptor(_class.prototype, \"checkAdjustedShippingFeeAndRecalculateCommissionTotal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"recalculateAdjustmentTable\", [_dec36], Object.getOwnPropertyDescriptor(_class.prototype, \"recalculateAdjustmentTable\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchAdvancedTaskAndSetAdjustmentModel\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchAdvancedTaskAndSetAdjustmentModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadSearchRecordsTaskAndSetAdjustmentModel\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadSearchRecordsTaskAndSetAdjustmentModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"paginateSearchRecordsTaskAndSetAdjustmentModel\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"paginateSearchRecordsTaskAndSetAdjustmentModel\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionsAdjustmentEditorTableViewDetailRow = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorCommissionsEditorCommissionsAdjustmentEditorTableViewDetailRow extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showDetails\", _descriptor, this);\n    }\n    // @action\n    // toggleAllDetails () {\n    //   const results = this?.args?.tableViewOptions?.results || []\n    //   R.forEach(model => {\n    //     this.toggleDetail(model)\n    //   })(results)\n    // }\n\n    toggleDetail(model) {\n      this.showDetails = !this.showDetails;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showDetails\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleDetail\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDetail\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9HDumIVC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"index\\\",\\\"@tableViewOptions\\\",\\\"@model\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@rowIndex\\\",\\\"@isDetailRow\\\",\\\"@isFilters\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"index\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"created date\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"commission due date\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"date_period\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"commission total amount\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[23,7,[]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,4,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,4,[\\\"_data\\\",\\\"createdDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,4,[\\\"_data\\\",\\\"paymentDueDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,4,[\\\"_data\\\",\\\"dateStartZ\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[23,4,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[23,4,[\\\"_data\\\",\\\"campaignName\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,4,[\\\"_data\\\",\\\"grandCommissionTotal\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"iconOnly\\\",\\\"model\\\"],[true,[23,4,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor\\\",[],[[\\\"@onReloadAdjustmentTask\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@title\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@adjustmentModel\\\"],[[23,3,[\\\"onReloadAdjustmentTask\\\"]],true,[23,3,[\\\"model\\\"]],\\\"commissions\\\",[23,5,[]],[23,6,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleDetail\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"index\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]],\\\"normalPercent\\\"],null],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]],\\\"twPercent\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"commission %\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"commission per unit\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"subtotal\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"calculate\\\",[[23,2,[]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"item\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"code\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"qty\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"isCalculatedByExclAmt\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discExclPriceExclShipping\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discExclPriceExclShipping\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discExclPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discExclPrice\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discInclPriceExclShipping\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discInclPriceExclShipping\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discInclPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discInclPrice\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]],\\\"normalPercent\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"normalPercent\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"byAmount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]],\\\"twPercent\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"twPercent\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"byAmount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byBaseCost\\\"],null],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"byBaseCost\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]],\\\"byAmount\\\"],null],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"byAmount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]],[23,1,[\\\"_data\\\",\\\"code\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"commissionInclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"grandCommissionTotals\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5TOZ713V\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@onReloadAdjustmentTask\\\",\\\"@title\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@isNew\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@isPushBtn\\\",\\\"@icon\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[[23,10,[]],[28,\\\"if\\\",[[23,11,[]],true,false],null],[28,\\\"if\\\",[[23,11,[]],\\\"fas fa-pen fa-xs\\\"],null],\\\"is-primary\\\",[28,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"showCampaignPeriodDataOnly\\\"]],true,false],null],[28,\\\"perform\\\",[[23,0,[\\\"createDirtyTask\\\"]],[23,5,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"generate settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"set period\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"commissionDateRanges\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"selectedPeriod\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedPeriod\\\"]],\\\"customDate\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isDateRange\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]]],null],true]]],[0,\\\"\\\\n            ~\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isDateRange\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]]],null],true]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\"],[\\\"periodDateStartZ\\\",[23,7,[]],\\\"dispatch date start\\\",[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@disabled\\\"],[true,[23,0,[\\\"shownDateStart\\\"]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\"],[\\\"periodDateEndZ\\\",[23,7,[]],\\\"dispatch date end\\\",[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@disabled\\\"],[true,[23,0,[\\\"shownDateEnd\\\"]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gte\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"selectedCommissionBaseCostMethod\\\",[23,7,[]],\\\"commissions calculation method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"isExcludingShipping\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[28,\\\"gte\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null],\\\"exclude shipping from sales history\\\",[23,0,[\\\"isExcludingShipping\\\"]],true,false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"selectedCommissionBaseCostMethod\\\",[23,7,[]],\\\"commissions calculation method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"isUsingAverage\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use average prices for each product\\\",[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"isUsingAverage\\\"]],true,true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"isCalculatedByExclAmt\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use exclusive selling price to calculate commission\\\",[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"isCalculatedByExclAmt\\\"]],true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"isUsingSetChild\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use product set children\\\",[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"isUsingSetChild\\\"]],true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"hasAdjustedShippingFee\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use shipping fee adjustment\\\",[23,0,[\\\"commissionBaseCostMethodModel\\\",\\\"_data\\\",\\\"hasAdjustedShippingFee\\\"]],true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"isUsingAverage\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use average prices for each product\\\",[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"isUsingAverage\\\"]],true,true,false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"isCalculatedByExclAmt\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use exclusive selling price to calculate commission\\\",[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"isCalculatedByExclAmt\\\"]],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\"]],true,false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"isUsingSetChild\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use product set children\\\",[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"isUsingSetChild\\\"]],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\"]],true,false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"hasAdjustedShippingFee\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggle\\\"],[\\\"use shipping fee adjustment\\\",[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"hasAdjustedShippingFee\\\"]],false,true,false,[23,0,[\\\"checkAdjustedShippingFeeAndRecalculateCommissionTotals\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"payments and due date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"date\\\",[23,7,[]],\\\"date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@readonly\\\",\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[[23,8,[]],\\\"_data.dateZ\\\",[23,0,[\\\"adjustmentModel\\\"]],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"dateZ\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"invoiceNumber\\\",[23,7,[]],\\\"invoice number\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"invoiceNumber\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"context\\\",\\\"formInitData\\\",\\\"documentationResource\\\",\\\"label\\\"],[\\\"paymentTermsKey\\\",[23,7,[]],\\\"documents\\\",\\\"payment terms\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"allowDynamicLabelChanges\\\",\\\"itemValueKey\\\",\\\"labelValueKey\\\",\\\"onSelect\\\",\\\"value\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"tab\\\"],[true,true,[28,\\\"not\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"hasPaymentTerms\\\"]]],null],false,[23,0,[\\\"commissionPaymentTerms\\\"]],false,\\\"_data._key\\\",\\\"_data.label\\\",[28,\\\"fn\\\",[[23,0,[\\\"loadPaymentTerms\\\"]]],null],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"paymentTermsKey\\\"]],\\\"payment-terms-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"payment terms\\\",true]]],[24,[\\\"tab\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"context\\\",\\\"documentationResource\\\",\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\"],[\\\"paymentDueDateZ\\\",\\\"documents\\\",[23,7,[]],\\\"payment due date\\\",[23,9,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@readonly\\\",\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[[23,0,[\\\"isPaymentMethodReadonly\\\"]],\\\"_data.paymentDueDateZ\\\",[23,0,[\\\"adjustmentModel\\\"]],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"paymentDueDateZ\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content table-form--no-last-border u-full-width table-form__td--padding-8\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@tableViewOptions\\\"],[[23,4,[]],\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[23,0,[\\\"filteredResults\\\"]],[23,0,[\\\"commissionAdjustmentListFilters\\\"]],[23,0,[\\\"searchAdvancedTaskAndSetAdjustmentModel\\\"]],[23,0,[\\\"reloadSearchRecordsTaskAndSetAdjustmentModel\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"adjustmentModel\\\",\\\"recalculateCommissionTotal\\\",\\\"isNew\\\",\\\"isUsingAverage\\\",\\\"setCommissionBaseCostFromHistoryTask\\\",\\\"calculateTotalCommission\\\",\\\"details\\\",\\\"campaignKey\\\",\\\"selectedCommissionBaseCostMethod\\\",\\\"hasAdjustedShippingFee\\\",\\\"autoFillCommissionsTask\\\",\\\"salesPersonKey\\\",\\\"recalculateAdjustmentTable\\\",\\\"checkAdjustedShippingFeeAndRecalculateCommissionTotal\\\"],[\\\"reports/commissions/data/adjustment/lists\\\",[23,0,[\\\"adjustmentModel\\\"]],[23,0,[\\\"recalculateCommissionTotal\\\"]],[23,6,[]],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"isUsingAverage\\\"]],[23,0,[\\\"setCommissionBaseCostFromHistoryTask\\\"]],[23,0,[\\\"calculateTotalCommission\\\"]],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\"]],[23,5,[\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]],[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"hasAdjustedShippingFee\\\"]],[23,0,[\\\"autoFillCommissionsTask\\\"]],[23,0,[\\\"salesPersonKey\\\"]],[23,0,[\\\"recalculateAdjustmentTable\\\"]],[23,0,[\\\"checkAdjustedShippingFeeAndRecalculateCommissionTotal\\\"]]]]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commission-base-cost-table/commission-base-cost-row/details\\\",[],[[\\\"@isRowAdder\\\",\\\"@adjustmentModel\\\"],[true,[23,0,[\\\"adjustmentModel\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-trash\\\",[28,\\\"or\\\",[[23,0,[\\\"addSalesInvoiceForCommissionsAdjustmentTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"saveAdjustmentTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],\\\"delete\\\",[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"reports/commissions/data/adjustment\\\",[23,0,[\\\"adjustmentModel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"closeAndReloadAdjustment\\\"]],[23,2,[]],[23,1,[]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"u-btn--cancel\\\",\\\"cancel\\\",[28,\\\"or\\\",[[23,0,[\\\"addSalesInvoiceForCommissionsAdjustmentTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"saveAdjustmentTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"addSalesInvoiceForCommissionsAdjustmentTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"saveAdjustmentTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"saveAdjustmentTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"reports/commissions/data/adjustment\\\",[23,0,[\\\"adjustmentModel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"closeAndReloadAdjustment\\\"]],[23,2,[]],[23,1,[]]],null]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isTryingToSaveWithoutDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"translate\\\"],[\\\"cannot have empty commission\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"total sales\\\"],null],false],[0,\\\" (\\\"],[1,[28,\\\"if\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"isCalculatedByExclAmt\\\"]],[28,\\\"tt\\\",[\\\"exclusive selling price\\\"],null],[28,\\\"tt\\\",[\\\"inclusive selling price\\\"],null]],null],false],[0,\\\"): \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"totalSales\\\"]]],null],false],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"total commission\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"totalCommission\\\"]]],null],false],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[28,\\\"number\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"docSalesInvoicesCountBeforeSplit\\\"]]],null],[28,\\\"number\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"docSalesInvoicesCount\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"docSalesInvoicesCount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders (before split)\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"docSalesInvoicesCountBeforeSplit\\\"]]],null],false],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders (after split)\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"adjustmentModel\\\",\\\"_data\\\",\\\"docSalesInvoicesCount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\"],[false,[23,0,[\\\"addSalesInvoiceForCommissionsAdjustmentTask\\\",\\\"isRunning\\\"]],\\\"generate\\\",[28,\\\"perform\\\",[[23,0,[\\\"addSalesInvoiceForCommissionsAdjustmentTask\\\"]]],null],[23,0,[\\\"addSalesInvoiceForCommissionsAdjustmentResetConfirmation\\\"]],\\\"are you sure you want to reset all rows?\\\",true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/search-contacts\", \"client/mixins/crud\", \"client/mixins/transporter\", \"ember-concurrency\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, R, RA, _searchContacts, _crud, _transporter, _emberConcurrency, R_, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, _transporter.default, {\n    crud: Ember.inject.service(),\n    search: Ember.inject.service(),\n    date: Ember.inject.service(),\n    contacts: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    campaignsService: Ember.inject.service('channels/shop/campaigns'),\n    transporterAccounts: null,\n    hasCommissionBaseCost: false,\n    summaryDataAdapterName: 'reports/commissions/data/all',\n    adjustmentListAdapterName: 'reports/commissions/data/adjustment',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/tags']);\n      const model = this.model;\n      const master = model.getData('_key');\n      this.set('thisMonth', this.date.getPeriod());\n      const commissionBaseCostFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/preset-commissions/filters',\n        defaultFiltersData: {\n          master\n        }\n      });\n      this.set('commissionBaseCostFilters', commissionBaseCostFilters);\n      if (this.get('model._data.transporterKey')) {\n        this.fetchTransporterTask.perform({\n          model: this.model\n        });\n      }\n      model.loadSalesPersonSettings();\n      this.makeSummaryDataTask.perform();\n      this.setupTask.perform();\n    },\n    makeSummaryDataTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const bySalesPersonsFilters = this.search.setupFilters({\n        adapterName: 'reports/commissions/data/all/filters'\n      });\n      const salesPersons = model.getData('salesPersons') || [];\n      const salesPerson = _nventor.default.safeHead(salesPersons);\n      if (RA.isNilOrEmpty(salesPerson)) {\n        return false;\n      }\n      const salesPersonFilter = {\n        name: salesPerson?._data?.name,\n        key: salesPerson?._data?._key,\n        username: salesPerson?._data?.username\n      };\n      bySalesPersonsFilters.setData('salesPersons', RA.list(salesPersonFilter));\n      bySalesPersonsFilters.setData('sourceKey', model.getData('_key'));\n      bySalesPersonsFilters.setData('query', '');\n      bySalesPersonsFilters.setData('mm', this.thisMonth.mm);\n      bySalesPersonsFilters.setData('yyyy', this.thisMonth.yyyy);\n      bySalesPersonsFilters.setData('isDispatched', true);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.summaryDataAdapterName,\n        filters: bySalesPersonsFilters,\n        appendPath: '/by-sales-persons'\n      });\n      this.set('bySalesPersonsFilters', bySalesPersonsFilters);\n      this.set('bySalesPersonsSummary', R.head(this.bySalesPersonsFilters.results));\n    }),\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const adjustmentFilters = this.search.setupFilters({\n        adapterName: 'reports/commissions/data/adjustment/filters'\n      });\n      this.set('adjustmentFilters', adjustmentFilters);\n      if (!this.isEditing && !this.isNew) {\n        yield this.loadAdjustmentTask.perform();\n      }\n      if (this.isEditing) {\n        const hasAnyCommissionData = yield this.campaignsService.checkHasAnyCommissionData.perform({\n          model: this.model\n        });\n        this.set('hasAnyCommissionData', hasAnyCommissionData?.hasAnyCommissions);\n      }\n      const associatesContactsFilters = this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          isAssociates: true\n        }\n      });\n      const associatesContacts = yield this.contacts.loadContactTask.perform(associatesContactsFilters);\n      this.set('associatesContacts', associatesContacts);\n    }),\n    loadAdjustmentTask: (0, _emberConcurrency.task)(function* () {\n      const campaignKey = this?.model?._data?._key || '';\n      const salesPersons = R.pipe(R_.dotPathOr([], 'model._data.salesPersons'), R.map(user => {\n        return {\n          name: user?._data?.name || '',\n          _key: user?._data?._key || '',\n          username: user?._data?.username || ''\n        };\n      }))(this);\n      const adjustmentFilters = this.get('adjustmentFilters');\n      adjustmentFilters.setData('query', '');\n      adjustmentFilters.setData('campaignKey', campaignKey);\n      adjustmentFilters.setData('campaignSalesPersons', salesPersons);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adjustmentListAdapterName,\n        filters: adjustmentFilters\n      });\n      const results = adjustmentFilters.results;\n      const grandCommissionTotals = R.pipe(R.map(result => {\n        return result._data.grandCommissionTotal;\n      }), R.sum)(results);\n      this.set('adjustmentFilters', adjustmentFilters);\n      this.set('grandCommissionTotals', grandCommissionTotals);\n    }),\n    actions: {\n      assignSalesPerson() {\n        const model = this.model;\n        this.onAssignSalesPerson(...arguments);\n        model.loadSalesPersonSettings();\n        this.loadAdjustmentTask.perform();\n      },\n      unassignSalesPerson() {\n        const model = this.model;\n        this.onUnassignSalesPerson(...arguments);\n        model.loadSalesPersonSettings();\n      },\n      toggleCommissionMethod() {\n        this.onToggleCommissionMethod(...arguments);\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"e51UnTzm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isGuest\\\",\\\"&default\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@isUserAllowed\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"commissions\\\",[23,5,[]],[23,4,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,8,[]],[23,4,[]],[23,7,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@contentClassNames\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"commissionPayableTo_group\\\",\\\"form-group__content-container--u-full-width\\\",[23,1,[]],[23,4,[]],\\\"commission\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"salesPersons\\\",\\\"associate\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"users/users-selector\\\",[],[[\\\"@disabled\\\",\\\"@isGuest\\\",\\\"@list\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onUnassignSalesPerson\\\",\\\"@readonly\\\",\\\"@salesPersons\\\"],[[28,\\\"or\\\",[[23,0,[\\\"hasAnyCommissionData\\\"]],[23,2,[]]],null],[23,5,[]],[23,0,[\\\"associatesContacts\\\"]],[23,3,[]],[28,\\\"action\\\",[[23,0,[]],\\\"assignSalesPerson\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unassignSalesPerson\\\"],null],[28,\\\"or\\\",[[23,0,[\\\"hasAnyCommissionData\\\"]],[23,2,[]]],null],[23,3,[\\\"_data\\\",\\\"salesPersons\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@translate\\\",\\\"@label\\\"],[[23,1,[]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"estimated commissions percentage\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"optional\\\"],null],\\\")\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@suffix\\\",\\\"@value\\\"],[\\\"use normal percentage\\\",[23,2,[]],\\\"%\\\",[23,3,[\\\"_data\\\",\\\"estimatedCommissionNormalPercent\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,9,[]],[23,3,[\\\"_data\\\",\\\"salesPersons\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],\\\"commissions calculation method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-types\\\"]],true,[23,3,[\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[true,\\\"use average prices for each product\\\",false,true,[23,3,[\\\"_data\\\",\\\"isCommissionsUsingAverage\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[true,\\\"use exclusive selling price to calculate commission\\\",false,true,[23,3,[\\\"_data\\\",\\\"isCommissionsCalculatedByExclAmt\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[true,\\\"use product set children\\\",false,true,[23,3,[\\\"_data\\\",\\\"isCommissionsUsingSetChild\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[true,\\\"use shipping fee adjustment\\\",false,true,[23,3,[\\\"_data\\\",\\\"isCommissionsHasAdjustedShippingFee\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"commissions summary for this month\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"reports/commissions/panels-all/panels-statement\\\",[],[[\\\"@isEachSalesPerson\\\",\\\"@isGuest\\\",\\\"@mm\\\",\\\"@onReloadAfterPayout\\\",\\\"@onFetchReportSummaryTask\\\",\\\"@reportsSummary\\\",\\\"@yyyy\\\"],[true,[23,5,[]],[23,0,[\\\"thisMonth\\\",\\\"mm\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"makeSummaryDataTask\\\"]]],null],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\"]],[23,0,[\\\"bySalesPersonsSummary\\\"]],[23,0,[\\\"thisMonth\\\",\\\"yyyy\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"adjustmentFilters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInputClassNames\\\",\\\"@context\\\"],[\\\"commissions\\\",\\\"form__input--full-width\\\",\\\"commissionsAdjustment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content table-form--no-last-border u-full-width table-form__td--padding-8\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@onPaginationTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@paginationIsFooter\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/table-view/detail-row\\\",[23,0,[\\\"adjustmentFilters\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],false,[23,0,[\\\"adjustmentFilters\\\",\\\"results\\\"]],[23,4,[]],[28,\\\"hash\\\",null,[[\\\"results\\\",\\\"model\\\",\\\"isGuest\\\",\\\"grandCommissionTotals\\\",\\\"onReloadAdjustmentTask\\\"],[[23,0,[\\\"adjustmentFilters\\\",\\\"results\\\"]],[23,3,[]],[23,5,[]],[23,0,[\\\"grandCommissionTotals\\\"]],[23,0,[\\\"loadAdjustmentTask\\\"]]]]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"record commissions\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor\\\",[],[[\\\"@formInitData\\\",\\\"@isCalculatedByExclAmt\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isUsingAverage\\\",\\\"@isUsingSetChild\\\",\\\"@label\\\",\\\"@model\\\",\\\"@onReloadAdjustmentTask\\\",\\\"@title\\\"],[[23,1,[]],[23,3,[\\\"_data\\\",\\\"isCommissionsCalculatedByExclAmt\\\"]],false,true,[23,3,[\\\"_data\\\",\\\"isCommissionsUsingAverage\\\"]],[23,3,[\\\"_data\\\",\\\"isCommissionsUsingSetChild\\\"]],\\\"record commissions\\\",[23,3,[]],[23,0,[\\\"loadAdjustmentTask\\\"]],\\\"commissions\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasSalesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"commissionMethod\\\",\\\"commission calculation\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,2,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"commissions-methods\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleCommissionMethod\\\"],null],true,true,[23,3,[\\\"_data\\\",\\\"commissionMethod\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"commissionMethod\\\"]],[23,0,[\\\"constants\\\",\\\"commissionMethod\\\",\\\"percentagePrice\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"commissionPercentage\\\",true,\\\"commission % per item\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"commissionPercentage\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"commissionMethod\\\"]],[23,0,[\\\"constants\\\",\\\"commissionMethod\\\",\\\"flat\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"commissionFlat\\\",true,\\\"commission amount per item\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"commissionFlat\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"commissionMethod\\\"]],[23,0,[\\\"constants\\\",\\\"commissionMethod\\\",\\\"baseCost\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"commissionBaseCost\\\",true,\\\"base cost\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"commissionBaseCost\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[25,6]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,6],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"influencers\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/influencers/table-view\\\",[],[[\\\"@isReadonly\\\",\\\"@influencers\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"influencers\\\"]],[23,3,[]],[23,4,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/commissions-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/component\", [\"exports\", \"client/config/environment\", \"client/mixins/transporter\", \"ramda\", \"ramda-extension\"], function (_exports, _environment, _transporter, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_transporter.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    uploadcare: Ember.inject.service(),\n    tagName: 'div',\n    classNames: ['col-container'],\n    translate: true,\n    initialPanel: null,\n    headerBottom: null,\n    // Only used for guide menu nav\n\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['users', 'statuses', 'availability', 'toggles/auto', 'toggles/onOff', 'paymentMethods/shop', 'channels/shop/campaigns/statuses', 'channels/shop/campaigns/overSalesLimitedQtyStatuses', 'channels/shop/campaigns/lists/subPanels', 'channels/shop/campaigns/lists/editorSubPanels', 'channels/shop/campaigns/lists/noOfLines', 'channels/shop/campaigns/lists/statuses', 'channels/shop/campaigns/deliveryDateSettings', 'channels/shop/campaigns/deliveryDateSettingsItems', 'extensions/apps/tw/invoicingAuto', 'channels/shop/campaigns/lists/locations', 'channels/shop/campaigns/lists/productsOverview', 'channels/shop/campaigns/lists/productsImagesRatio', 'channels/shop/campaigns/lists/productsImagesSize', 'channels/shop/campaigns/lists/productsNameFontSize', 'products/lists/onSaleTagDisplayPosition', 'products/lists/onSaleTagDisplayStyle', 'channels/shop/campaigns/lists/productsNameLineCount', 'settings/imagesHoverFilter', 'settings/imagesHoverTransform', 'shipping/feeType', 'commissions/methods']);\n      this.set('productsList', []);\n      this.set('config', _environment.default);\n    },\n    activeTab: Ember.computed('listsIsLoaded', 'isNew', 'tab.isAdvancedTemplate', 'crud.lists.channels-shop-campaigns-lists-editorSubPanels.[]', function () {\n      return this.tabsManager.getActiveSubTab(this.tab);\n    }),\n    editingPanels: Ember.computed('listsIsLoaded', 'isNew', 'tab.isAdvancedTemplate', 'crud.lists.channels-shop-campaigns-lists-editorSubPanels.[]', function () {\n      if (this.isDisplay) {\n        return [];\n      }\n      const panels = R_.dotPath('crud.lists.channels-shop-campaigns-lists-editorSubPanels')(this) || [];\n      const isAdvancedTemplate = this.tab?.isAdvancedTemplate;\n      if (isAdvancedTemplate) {\n        return R.filter(panel => {\n          return panel._data?.component === 'channels/shop/campaigns/campaigns-editor/advanced-template';\n        })(panels);\n      }\n      return R.reject(panel => {\n        return panel._data?.component === 'channels/shop/campaigns/campaigns-editor/advanced-template';\n      })(panels);\n    }),\n    resourceList: Ember.computed('listsIsLoaded', 'isNew', 'isEditing', 'crud.lists.channels-shop-campaigns-lists-subPanels.[]', 'editingPanels.[]', function () {\n      if (!this.isNew) {\n        return this.crud?.lists?.['channels-shop-campaigns-lists-subPanels'] || [];\n      }\n      if (!this.isEditing) {\n        return this.crud?.lists?.['channels-shop-campaigns-lists-subPanels'] || [];\n      }\n      return this.crud?.lists?.['channels-shop-campaigns-lists-editorSubPanels'] || [];\n    }),\n    isReadonly: Ember.computed('isEditing', 'saveTask.isRunning', function () {\n      if (this.get('saveTask.isRunning')) {\n        return true;\n      }\n      if (this.isEditing === true) {\n        return false;\n      }\n      return true;\n    }),\n    hasSalesPersons: Ember.computed('model._data.salesPersons.[]', function () {\n      // @TODO TEST\n      const salesPersons = this.get('model._data.salesPersons');\n      if (Ember.isEmpty(salesPersons)) {\n        return false;\n      }\n      return salesPersons;\n    }),\n    actions: {\n      assignSalesPerson(person) {\n        const model = this.model;\n        model.addSalesPerson(person);\n\n        // set commission default to\n        model.setData('commissionMethod', this.get('constants.commissionMethod.percentagePrice'));\n      },\n      unassignSalesPerson(person) {\n        const model = this.model;\n        model.removeSalesPerson(person);\n      },\n      toggleCommissionMethod() {\n        const model = this.model;\n        model.setData('commissionFlat', '');\n        model.setData('commissionPercentage', '');\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/emails-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopCampaignsCampaignsEditorPagesEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsEditorPagesEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/emails-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aO1tsnWR\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/emails-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/faqs-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopCampaignsCampaignsEditorFaqsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsEditorFaqsEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/faqs-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FkLgcAte\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@isDisabled\\\",\\\"@isReadonly\\\",\\\"@lists\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"faqs\\\",false,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"faqsSettings_group\\\",[23,1,[]],[23,4,[]],\\\"defaults faqs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"faqs\\\",[],[[\\\"@adapterName\\\",\\\"@appendPath\\\",\\\"@isDisabled\\\",\\\"@isReadonly\\\",\\\"@lists\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"channels/shop/campaigns\\\",\\\"/update-settings-faqs\\\",[23,6,[]],[23,7,[]],[23,8,[]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\"]],[23,4,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"faqsCampaigns_group\\\",[23,1,[]],[23,4,[]],\\\"faqs for shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"faqs\\\",[],[[\\\"@adapterName\\\",\\\"@appendPath\\\",\\\"@isDisabled\\\",\\\"@isReadonly\\\",\\\"@lists\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"channels/shop/campaigns\\\",\\\"\\\",[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,4,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/faqs-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/filters-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 ChannelsShopCampaignsCampaignsEditorFiltersEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _class = class ChannelsShopCampaignsCampaignsEditorFiltersEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor3, this);\n      _initializerDefineProperty(this, \"allProductTags\", _descriptor4, this);\n    }\n    // all tags that exist in campaign\n\n    *reorderProductTagsWithIndexes(productTagsWithIndexes, tag, dragDetail) {\n      const onOverItemIndex = tag?._data?.index;\n      this.dragDropSort.reorderItemsByIndex(productTagsWithIndexes, dragDetail, onOverItemIndex);\n    }\n    *getAllProductTagsForFilterTask() {\n      const model = this.args.model;\n      const campaignKey = model?._data?._key;\n      if (!campaignKey) {\n        return;\n      }\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'channels/shop/campaigns/productsTagsFilters',\n        appendPath: campaignKey\n      });\n      this.allProductTags = results;\n      model.setupProductTagsWithIndexes(this.allProductTags);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"allProductTags\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"reorderProductTagsWithIndexes\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderProductTagsWithIndexes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getAllProductTagsForFilterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getAllProductTagsForFilterTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/filters-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"I4IcBUGC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"dragAndDropManager\\\",\\\"tag\\\",\\\"@model\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"getAllProductTagsForFilterTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[23,3,[\\\"productTagsWithIndexesSorted\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[\\\"no tags detected. please add product tags first\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/drag-and-drop\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"productTagsWithIndexesSorted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/drag-and-drop/drop-container\\\",[],[[\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[[23,1,[\\\"dropPosition\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"reorderProductTagsWithIndexes\\\"]],[23,3,[\\\"productTagsWithIndexesSorted\\\"]],[23,2,[]],[23,1,[\\\"dragDetail\\\"]]],null],[28,\\\"fn\\\",[[23,1,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,1,[]],[23,2,[]],[23,1,[\\\"dragDetail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/drag-and-drop/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\"],[true,\\\"has-grip\\\",[28,\\\"fn\\\",[[23,1,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,1,[]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,1,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,1,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,2,[\\\"_data\\\",\\\"index\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag product-tags-filters\\\"],[8],[1,[23,2,[\\\"_data\\\",\\\"label\\\"]],false],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/filters-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/pages-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ChannelsShopCampaignsCampaignsEditorPagesEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorPagesEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n    }\n    updateContent(template) {\n      this.args.model?.setData?.('template', template);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateContent\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"updateContent\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/pages-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5W7TOxP7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"webpages\\\",[23,2,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,6,[]],[23,2,[]],[23,5,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"pod/get\\\",[\\\"shopHideCampaignHeader\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"description_group\\\",[23,1,[]],[23,2,[]],\\\"campaign_description_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"description\\\",\\\"campaign_description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,3,[]],10,[23,4,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"template_group\\\",[23,1,[]],[23,2,[]],\\\"main content settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"template\\\",\\\"main content\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@classNames\\\"],[[23,1,[]],\\\"has-text-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"channels/shop/campaigns/page-import-btn\\\",[],[[\\\"@disabled\\\",\\\"@model\\\",\\\"@onUpdateContent\\\",\\\"@tab\\\"],[[23,3,[]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"updateContent\\\"]]],null],[23,2,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[23,2,[]],true,true,[23,3,[]],[23,4,[\\\"_data\\\",\\\"template\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"bannerTop_group\\\",[23,1,[]],[23,2,[]],\\\"banner top\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"img-banner\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@imageUuidPath\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@valuePath\\\"],[\\\"topBanner\\\",\\\"banner top\\\",\\\"_data.topBanner.uuid\\\",[23,3,[]],[23,4,[]],[23,2,[]],\\\"_data.topBanner\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"bannerBottom_group\\\",[23,1,[]],[23,2,[]],\\\"banner bottom\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"img-banner\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@imageUuidPath\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@valuePath\\\"],[\\\"bottomBanner\\\",\\\"banner bottom\\\",\\\"_data.bottomBanner.uuid\\\",[23,3,[]],[23,4,[]],[23,2,[]],\\\"_data.bottomBanner\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/pages-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/products-editor/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"ember-concurrency\", \"client/mixins/sortable-actions\"], function (_exports, R, R_, _emberConcurrency, _sortableActions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @deprecated\n   * can delete\n   */\n  var _default = _exports.default = Ember.Component.extend(_sortableActions.default, {\n    crud: Ember.inject.service(),\n    modelProp: 'model',\n    indexProp: '_data.index',\n    adapterName: 'channels/shop/campaigns/details',\n    filtersAdapterName: 'channels/shop/campaigns/details/filters',\n    isSearchDetailsWithoutShippingZones: false,\n    itemModel: null,\n    isEditing: false,\n    mode: 'overview',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/noOfLines', 'channels/shop/campaigns/lists/productsOverview', 'channels/shop/campaigns/lists/productsImagesRatio', 'channels/shop/campaigns/lists/productsImagesSize', 'settings/imagesHoverFilter', 'settings/imagesHoverTransform', 'channels/shop/campaigns/lists/productsNameFontSize', 'products/lists/onSaleTagDisplayPosition', 'products/lists/onSaleTagDisplayStyle', 'channels/shop/campaigns/lists/productsNameLineCount', 'channels/shop/campaigns/lists/products-tags-display-style', 'products/lists/bigordr-products-slider-items', 'products/lists/bigordr-products-per-row']);\n      if (this.model._data.allowShipping === true && this.model._data.shippingFeeType === this.get('constants.shippingFeeType.zones')) {\n        this.getTotalDetailsWithoutShippingZones.perform();\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const isEditing = this.get('isEditing');\n      if (!isEditing) {\n        this.fetchCampaignDetailsTask.perform();\n      }\n    },\n    toDisplayResults: Ember.computed('_dirtyDetails.@each.synced', 'model.synced', function () {\n      return this.get('_dirtyDetails') || [];\n    }),\n    _getSortedDetails() {\n      const details = this.get('filters.results') || [];\n      let results = details;\n      const shopProductsSort = this.filters?.getData('shopProductsSort') || 'recommended';\n      const existingSortBy = [{\n        label: 'recommended',\n        by: 'index',\n        direction: 'ASC',\n        toNumber: true\n      }, {\n        label: 'newestFirst',\n        by: 'index',\n        direction: 'DESC',\n        toNumber: true\n      }, {\n        label: 'priceAsc',\n        by: 'priceFinal',\n        direction: 'ASC',\n        toNumber: true\n      }, {\n        label: 'priceDesc',\n        by: 'priceFinal',\n        direction: 'DESC',\n        toNumber: true\n      }];\n      const sortArray = R.filter(R.propEq('label', shopProductsSort))(existingSortBy);\n      const sortBy = R.pathOr('', ['firstObject', 'by'])(sortArray);\n      if (sortBy && sortArray.length === 1) {\n        const sortDirection = R.pathOr('', ['firstObject', 'direction'])(sortArray);\n        const sortToNumber = R.pathOr(false, ['firstObject', 'toNumber'])(sortArray);\n        if (sortDirection === 'ASC') {\n          results = R.pipe(R.reject(R.pathEq(['isDeleted'], true)), R.sortWith([sortToNumber ? R.ascend(data => Number(R.path(['_data', sortBy])(data))) : R.ascend(R.path(['_data', sortBy]))]))(details);\n        }\n        if (sortDirection === 'DESC') {\n          results = R.pipe(R.reject(R.pathEq(['isDeleted'], true)), R.sortWith([sortToNumber ? R.descend(data => Number(R.path(['_data', sortBy])(data))) : R.descend(R.path(['_data', sortBy]))]))(details);\n        }\n      }\n      return results;\n    },\n    _dirtyDetails: Ember.computed('filters.results.[]', 'filters.synced', 'model.synced', function () {\n      return this._getSortedDetails();\n    }),\n    showOnSaleTagSettings: Ember.computed('dirty._data.{useDefaultsProductsDisplaySettings,showOnSaleTag}', 'settings.settingsModel._data.showOnSaleTag', function () {\n      const dirty = this.dirty;\n      const useDefaultsProductsDisplaySettings = R.pathOr(true, ['_data', 'useDefaultsProductsDisplaySettings'])(dirty);\n      if (useDefaultsProductsDisplaySettings) {\n        return this.settings.getProp('showOnSaleTag');\n      }\n      return R.pathOr(true, ['_data', 'showOnSaleTag'])(dirty);\n    }),\n    reorderAndSaveDetailsTask: (0, _emberConcurrency.task)(function* (details) {\n      if (!R.isEmpty(details) && !this.isGuest) {\n        const adapterName = 'channels/shop/campaigns/details/batch';\n        const master = this.get('model._data._key');\n        const appendPath = `/${master}/indexes`;\n        return yield this.crud.adapterCallTask.perform('updateIndexes', {\n          adapterName,\n          appendPath,\n          model: details\n        });\n      }\n      return false;\n    }).drop(),\n    fixIndexesTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction) {\n      if (!this.isGuest) {\n        const master = this.get('model._data._key');\n        const msg = this.intl.t('are you sure you want to re-index all products? this may take some time.');\n        if (window.confirm(msg)) {\n          const resp = yield this.server.call('PATCH', `api/protected/channels/shop/campaigns/details/master/${master}/fix-indexes`);\n          if (onCloseDialogAction) {\n            onCloseDialogAction();\n          }\n          return resp;\n        }\n      }\n      return false;\n    }).drop(),\n    saveProductSettingsTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction) {\n      yield this.crud.replaceRecordTask.perform({\n        adapterName: 'channels/shop/campaigns',\n        model: this.dirty\n      });\n      onCloseDialogAction();\n    }).drop(),\n    // drafts: computed('results.@each.synced', function () {\n    //   const campaignDetails = this.results || []\n    //   return R.filter(R.pathEq(['_data', 'status'], 'draft'))(campaignDetails)\n    // }),\n\n    getTotalDetailsWithoutShippingZones: (0, _emberConcurrency.task)(function* () {\n      const master = this?.model?._data?._key;\n      const result = yield this.server.call('GET', `api/protected/channels/shop/campaigns/details/master/${master}/details-without-shipping-zones`);\n      const totalDetailsWithoutShippingZones = result?.data || 0;\n      this.set('totalDetailsWithoutShippingZones', totalDetailsWithoutShippingZones);\n    }),\n    searchDetailsWithoutShippingZones: (0, _emberConcurrency.task)(function* (isReset = false) {\n      const filters = this?.filters || {};\n      let hasNoShippingZones = false;\n      if (!isReset) {\n        hasNoShippingZones = true;\n      }\n      filters.setData('hasNoShippingZones', hasNoShippingZones);\n      yield this.crud.searchAdvancedTask.perform({\n        filters\n      });\n      if (isReset) {\n        this.set('isSearchDetailsWithoutShippingZones', false);\n      } else {\n        this.set('isSearchDetailsWithoutShippingZones', true);\n      }\n    }),\n    actions: {\n      resetDetailsUpdated() {\n        this.model.set('detailsUpdated', []);\n      },\n      /**\n       * Persist campaign product order after a drop.\n       * Skips when there is no matching drag-start so an external drop cannot call `.get` on nil.\n       * @param {Object} detail - row the pointer dropped on\n       * @return {void}\n       */\n      reorderAndSaveDetails(detail) {\n        const model = this.model;\n        const dragItem = this.dragDetail;\n        if (!model || !detail || !dragItem) {\n          return;\n        }\n        const details = this.filters?.results || [];\n        const sortedDetails = model.reorderDetails(details, detail, dragItem);\n        this.reorderAndSaveDetailsTask.perform(sortedDetails);\n      },\n      editProductSettings() {\n        const dirty = this.crud.setupDirty({\n          adapterName: 'channels/shop/campaigns',\n          model: this.model\n        });\n        this.set('dirty', dirty);\n      },\n      cancelProductSettingsEditing(onCloseDialogAction) {\n        this.crud.cancelEditing({\n          adapterName: 'channels/shop/campaigns',\n          dirty: this.dirty\n        });\n        this.set('dirty', false);\n        onCloseDialogAction();\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/products-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7qUsEKBY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@selectedItems\\\",\\\"@onToggleSelectAllItems\\\",\\\"@onSelectItem\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-sub\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/starred\\\",[],[[\\\"@filters\\\",\\\"@onSearchTask\\\"],[[23,1,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,1,[]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-grid__filter-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"products/shop/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\"],[[23,1,[]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchCampaignDetailsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,1,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"totalDetailsWithoutShippingZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@classNames\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[28,\\\"tt\\\",[\\\"total details without shipping zones\\\"],[[\\\"total\\\"],[[23,0,[\\\"totalDetailsWithoutShippingZones\\\"]]]]],false,\\\"is-danger\\\",\\\"fas fa-circle-exclamation\\\",[28,\\\"perform\\\",[[23,0,[\\\"searchDetailsWithoutShippingZones\\\"]],false],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isSearchDetailsWithoutShippingZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"is-danger\\\",\\\"fas fa-x\\\",[28,\\\"perform\\\",[[23,0,[\\\"searchDetailsWithoutShippingZones\\\"]],true],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"tableClassNames\\\",\\\"detailsRowComponent\\\",\\\"paginationIsFooter\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onResetSearchRecordsTask\\\",\\\"onPaginationTask\\\",\\\"allowShowStarred\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"new-table-view\\\",\\\"channels/shop/campaigns/items/table-view/detail-row\\\",false,[24,[\\\"toDisplayResults\\\"]],[24,[\\\"filters\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[24,[\\\"filters\\\"]],true]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],false,[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isGuest\\\",\\\"isBulkEditing\\\",\\\"removeProductsBatchTask\\\",\\\"campaign\\\",\\\"campaignDetails\\\",\\\"dropPosition\\\",\\\"dragDetail\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"onDragOver\\\",\\\"onDrop\\\",\\\"onSelectItem\\\",\\\"onToggleSelectAllItems\\\",\\\"selectedItems\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"isGuest\\\"]],[28,\\\"if\\\",[[24,[\\\"isGuest\\\"]],false,true],null],[24,[\\\"removeProductsBatchTask\\\"]],[24,[\\\"model\\\"]],[24,[\\\"toDisplayResults\\\"]],[24,[\\\"dropPosition\\\"]],[24,[\\\"dragDetail\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dragStartItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragEndItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragOverItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"reorderAndSaveDetails\\\"],null],[23,4,[]],[23,3,[]],[23,2,[]]]]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/products-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/products-limits-editor/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/sortable-actions\", \"ember-concurrency\"], function (_exports, R, RA, _sortableActions, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_sortableActions.default, {\n    crud: Ember.inject.service(),\n    server: Ember.inject.service(),\n    modelProp: 'model',\n    indexProp: '_data.index',\n    adapterName: 'channels/shop/campaigns/details/limits',\n    filtersAdapterName: 'channels/shop/campaigns/details/limits/filters',\n    selectedToggleUseInventory: '',\n    init() {\n      this._super(...arguments);\n      let limitAdjustType = 'adjustTotalQty';\n      const adjustCampaignsDetailsLimitQtyBy = this.settings.getProp('adjustCampaignsDetailsLimitQtyBy');\n      if (RA.isNotNilOrEmpty(adjustCampaignsDetailsLimitQtyBy)) {\n        limitAdjustType = adjustCampaignsDetailsLimitQtyBy;\n      }\n      this.set('limitAdjustType', limitAdjustType);\n    },\n    toggleAllOverrideUseInventoryAsLimitQtyTask: (0, _emberConcurrency.task)(function* () {\n      const campaignKey = this?.campaignModel?._data?._key || '';\n      yield this.server.call('PATCH', 'api/protected/channels/shop/campaigns/details/limits/overrideUseInventoryAsLimitQtyBatch', {\n        campaignKey\n      });\n      yield this.fetchCampaignDetailsLimitsTask.perform();\n      this.set('selectedToggleUseInventory', '');\n    }),\n    actions: {\n      resetDetailsLimitsUpdated() {\n        this.model.set('detailsLimitsUpdated', false);\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/products-limits-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rqbuo+Gr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-sub\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/starred\\\",[],[[\\\"@filters\\\",\\\"@onSearchTask\\\"],[[23,1,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,1,[]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"products/shop/limits/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\"],[[23,1,[]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,1,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasDetailsLimitsChanged\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/data-updated\\\",[],[[\\\"@wasUpdated\\\",\\\"@hasBadge\\\",\\\"@badge\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[24,[\\\"model\\\",\\\"hasDetailsLimitsChanged\\\"]],true,[28,\\\"count\\\",[[24,[\\\"model\\\",\\\"hasDetailsLimitsChanged\\\"]]],null],[24,[\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[24,[\\\"filters\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resetDetailsLimitsUpdated\\\"],null]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"paginationIsFooter\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onPaginationTask\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onMainAction\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"channels/shop/campaigns/items/table-view/detail-limit-row\\\",false,[23,1,[\\\"results\\\"]],[23,1,[]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[24,[\\\"onPaginationTask\\\"]],[24,[\\\"onDisplay\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"onDisplay\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"campaignModel\\\",\\\"isBulkEditing\\\",\\\"isReadonly\\\",\\\"limitAdjustType\\\",\\\"selectedToggleUseInventory\\\",\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\"],[\\\"channels/shop/campaigns/details/limits\\\",[24,[\\\"campaignModel\\\"]],[28,\\\"if\\\",[[24,[\\\"isGuest\\\"]],false,true],null],[24,[\\\"isReadonly\\\"]],[23,0,[\\\"limitAdjustType\\\"]],[23,0,[\\\"selectedToggleUseInventory\\\"]],[23,0,[\\\"toggleAllOverrideUseInventoryAsLimitQtyTask\\\"]]]]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[9],[0,\\\"\\\\t\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/products-limits-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/reward-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopCampaignsCampaignsEditorRewardEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorRewardEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/rewards');\n      this.filters = this.search.setupFilters({\n        adapterName: 'channels/shop/rewards/filters',\n        defaultFiltersData: {\n          query: '',\n          status: ['active']\n        }\n      });\n      const query = this.args.model._data.rewardName || '';\n      this.filters.setData('query', query);\n      this.crud.searchInputTask.perform({\n        adapterName: 'channels/shop/rewards',\n        filters: this.filters,\n        component: this,\n        allowEmptyQuery: true\n      }, query);\n    }\n\n    // @task\n    // * fetchRewardTask ({ query }) {\n    //   query = query.trim()\n    //   if (query) {\n    //     const filters = this.filters\n    //     const adapterName = this.adapterName\n    //     filters.setData('query', query)\n\n    //     const results = yield this.crud.searchInputTask.perform({\n    //       adapterName,\n    //       filters,\n    //       component: this,\n    //       resultsProperty: 'rewardsList'\n    //     })\n\n    //     return results\n    //   }\n    // }\n\n    onLoadItem(selectedItem) {\n      this.args.model.set('_data.rewardKey', selectedItem._data._key);\n      this.args.model.set('_data.isAllowSpendReward', true);\n      this.args.model.set('_data.isAllowEarnReward', true);\n    }\n    onResetItem() {\n      this.args.model.set('_data.rewardKey', '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onLoadItem\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onLoadItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onResetItem\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onResetItem\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/reward-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vXdzkptZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"reward\\\",[23,4,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,6,[]],[23,4,[]],[23,5,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"rewardsEditor_group\\\",[23,1,[]],[23,4,[]],\\\"reward\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"rewardName\\\",[23,1,[]],\\\"reward\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@hasPagination\\\",\\\"@filters\\\",\\\"@hasSelected\\\",\\\"@hasSelectedKey\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onDeselect\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@tagName\\\",\\\"@value\\\"],[true,[23,2,[]],true,[23,0,[\\\"filters\\\"]],[23,3,[\\\"_data\\\",\\\"rewardKey\\\"]],\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"filters\\\",\\\"results\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onResetItem\\\"]]],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"query\\\",\\\"filters\\\",\\\"component\\\"],[\\\"channels/shop/rewards\\\",[23,3,[\\\"_data\\\",\\\"rewardName\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[]]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onLoadItem\\\"]]],null],\\\"search reward name\\\",[23,2,[]],\\\"_data.name\\\",\\\"span\\\",[23,3,[\\\"_data\\\",\\\"rewardName\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"rewardKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isAllowSpendReward\\\",[23,1,[]],\\\"allow to spend reward points\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"isAllowSpendReward\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isAllowEarnReward\\\",[23,1,[]],\\\"allow to earn reward points\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"isAllowEarnReward\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"isAllowReferrals\\\",[23,1,[]],[23,0,[\\\"errors\\\"]],\\\"referral_reward\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"isAllowReferrals\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/reward-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/sales-limits-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopCampaignsCampaignsEditorSalesLimitsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsEditorSalesLimitsEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/sales-limits-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dWnHaGrH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"dayData\\\",\\\"weekdayData\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"salesLimits\\\",[23,5,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,8,[]],[23,5,[]],[23,7,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"perDayLimits_group\\\",[23,1,[]],[23,5,[]],\\\"sales limits by weekdays\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"shippingFeeType\\\"]],\\\"flat\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"flatShippingFeeWarning\\\",\\\"must use shipping zones to set limits per day\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-table\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-title\\\",[],[[\\\"@title\\\"],[\\\"day of week\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-title\\\",[],[[\\\"@title\\\"],[\\\"enabled\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-title\\\",[],[[\\\"@title\\\"],[\\\"sales limits per day\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"limitsPerDay\\\",\\\"weekdays\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"dayOfWeek\\\",[[23,3,[\\\"dayOfWeek\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@tab\\\",\\\"@context\\\"],[[23,4,[]],[23,3,[\\\"enabled\\\"]],[23,5,[]],\\\"limitsPerDay.weekdays.enabled\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[[23,4,[]],[23,3,[\\\"limit\\\"]],[23,3,[]],[23,5,[]],\\\"limitsPerDay.weekdays.limit\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"shippingFeeType\\\"]],\\\"flat\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"perDayLimitsByDates_group\\\",[23,1,[]],[23,5,[]],\\\"sales limits by specific dates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"limitsPerDay.byDates\\\",\\\"limits for specific dates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[23,4,[]],\\\"date\\\",\\\"fas fa-plus\\\",[28,\\\"fn\\\",[[23,6,[\\\"addLimitsPerDayByDates\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"limitsPerDay\\\",\\\"dates\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-table\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-title\\\",[],[[\\\"@title\\\"],[\\\"date\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-title\\\",[],[[\\\"@title\\\"],[\\\"sales limits per day\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"limitsPerDay\\\",\\\"dates\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"dateZ\\\",[23,2,[]],[23,2,[\\\"dateZ\\\"]],[23,4,[]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[[23,4,[]],[23,2,[\\\"limit\\\"]],[23,2,[]],[23,5,[]],\\\"limitsPerDay.dates.limit\\\"]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,4,[]],[28,\\\"fn\\\",[[23,6,[\\\"removeLimitsPerDayByDates\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/sales-limits-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/3rd-party-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopCampaignsCampaignsEditorSettingsEditor3rdPartyEditor extends _component.default {}\n  _exports.default = ChannelsShopCampaignsCampaignsEditorSettingsEditor3rdPartyEditor;\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/3rd-party-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5RIPLUFN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],\\\"statements\\\":[[5,\\\"settings/defaults/3rd-party-editor\\\",[],[[\\\"@documentationResource\\\",\\\"@hideGuideMenu\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@hideRss\\\"],[\\\"campaigns\\\",false,[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/3rd-party-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/advanced-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\", \"ember-concurrency-decorators\"], function (_exports, _component, RA, _emberConcurrencyDecorators) {\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;\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 ChannelsShopCampaignsCampaignsEditorSettingsEditorAdvancedEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('pos'), _dec4 = Ember.inject.service('terminal'), _dec5 = Ember.inject.service('helpers'), _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class ChannelsShopCampaignsCampaignsEditorSettingsEditorAdvancedEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"posService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"terminalService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"helpersService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"campaignFilters\", _descriptor6, this);\n      _initializerDefineProperty(this, \"einvoicesPrintersTerminalsFilters\", _descriptor7, this);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {\n          isMaster: true\n        }\n      });\n      this.campaignFilters = campaignFilters;\n      this.preloadCampaignsFiltersResultsTask.perform();\n      const einvoicesPrintersTerminalsFilters = this.search.setupFilters({\n        adapterName: 'users/einvoices-printers-terminals/filters'\n      });\n      this.terminalService.fetchEInvoicesPrinterTerminalsTask.perform({\n        filters: einvoicesPrintersTerminalsFilters\n      });\n      this.einvoicesPrintersTerminalsFilters = einvoicesPrintersTerminalsFilters;\n    }\n    *preloadCampaignsFiltersResultsTask() {\n      if (RA.isNilOrEmpty(this.campaignFilters?.results)) {\n        yield this.crud.searchInputTask.perform({\n          adapterName: 'channels/shop/campaigns',\n          filters: this.campaignFilters,\n          allowEmptyQuery: true\n        }, '');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"posService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"terminalService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"helpersService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"campaignFilters\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"einvoicesPrintersTerminalsFilters\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"preloadCampaignsFiltersResultsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"preloadCampaignsFiltersResultsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/advanced-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D8Nsez9S\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onUnloadShopSource\\\",\\\"@onLoadShopSource\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"advanced\\\",[23,7,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,9,[]],[23,7,[]],[23,8,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.allowMasterChildCampaigns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"linkedCampaigns_group\\\",[23,7,[]],\\\"linked campaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"isMaster\\\",\\\"is master campaign\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,4,[\\\"_data\\\",\\\"isChild\\\"]],[23,3,[]]],null],[23,4,[\\\"_data\\\",\\\"isMaster\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"isChild\\\",\\\"is child campaign\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,4,[\\\"_data\\\",\\\"isMaster\\\"]],[23,3,[]]],null],[23,4,[\\\"_data\\\",\\\"isChild\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"isChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"childOf\\\",\\\"master campaign\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@hasSelected\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSearch\\\",\\\"@onDeselect\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@selectedItemValueKey\\\",\\\"@tab\\\",\\\"@value\\\"],[false,[28,\\\"or\\\",[[28,\\\"not\\\",[[23,4,[\\\"_data\\\",\\\"isChild\\\"]]],null],[23,4,[\\\"_data\\\",\\\"isMaster\\\"]],[23,3,[]]],null],[23,4,[\\\"_data\\\",\\\"childOfKey\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"campaignFilters\\\",\\\"results\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"allowEmptyQuery\\\"],[\\\"channels/shop/campaigns\\\",[23,0,[\\\"campaignFilters\\\"]],true]]],[23,0,[\\\"campaignFilters\\\",\\\"_data\\\",\\\"query\\\"]]],null],[23,5,[]],[23,6,[]],[23,3,[]],\\\"channels/shop/campaigns/search-results\\\",\\\"_data.name\\\",[23,7,[]],[23,0,[\\\"campaignFilters\\\",\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@allowedForFeatures\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"supplierPortal_group\\\",[28,\\\"array\\\",[\\\"features.allowSupplierPortal\\\"],null],[23,7,[]],\\\"supplier portal\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"allowSupplierPortal\\\",\\\"allow this shop to appear in supplier portal\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"allowSupplierPortal\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"posSettings_group\\\",[23,1,[]],[23,7,[]],\\\"pos\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"hasPos\\\",[23,1,[]],true,\\\"pos\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,3,[]],false,true,[23,4,[\\\"_data\\\",\\\"hasPos\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@allowedForFeatures\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[28,\\\"array\\\",[\\\"features.hasWebPos\\\"],null],\\\"hasWebPos\\\",[23,1,[]],true,\\\"allow web pos\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,3,[]],false,true,[23,4,[\\\"_data\\\",\\\"hasWebPos\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@allowedForFeatures\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[[28,\\\"array\\\",[\\\"features.hasWebPos\\\"],null],\\\"tw_eInvoices_print_allow_print\\\",\\\"pos\\\",\\\"tw_eInvoices_print_allow_print\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,3,[]],false,true,[23,4,[\\\"_data\\\",\\\"autoIssueEInvoice\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@allowedForFeatures\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[28,\\\"array\\\",[\\\"features.hasWebPos\\\"],null],\\\"posPaymentMethods\\\",[23,1,[]],true,\\\"payment method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\"],[[23,3,[]],\\\"fas fa-plus\\\",\\\"payment methods\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[true,true,[23,0,[\\\"posService\\\",\\\"posPaymentMethods\\\"]],\\\"list-selector\\\",[23,4,[]],\\\"_data.posPaymentMethods\\\",\\\"_data._id\\\",\\\"_data.customLabel\\\",\\\"list-selector__item\\\",false,true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"posPaymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@translate\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@list\\\",\\\"@value\\\"],[false,\\\"_data._id\\\",\\\"_data.customLabel\\\",[23,0,[\\\"posService\\\",\\\"posPaymentMethods\\\"]],[23,4,[\\\"_data\\\",\\\"posPaymentMethods\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"disallowShoppingSettings_group\\\",[23,7,[]],\\\"disallow shopping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"isDisallowShopping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,3,[]],\\\"disallow shopping\\\",[23,4,[\\\"_data\\\",\\\"isDisallowShopping\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"isDisallowShopping\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"isShowPrices\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,3,[]],\\\"show prices\\\",[23,4,[\\\"_data\\\",\\\"isShowPrices\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/advanced-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/basic-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopCampaignsCampaignsEditorSettingsEditorBasicEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsEditorSettingsEditorBasicEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/basic-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JcRhtCbq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@generateRandomPassword\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@checkValidStartAndEndDateZ\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"basic\\\",[23,2,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,8,[]],[23,2,[]],[23,7,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"campaignStatusSettings_group\\\",[23,2,[]],\\\"campaign status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"status\\\",\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-statuses\\\"]],true,[23,5,[\\\"statusClass\\\"]],true,[23,5,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"campaignSettings_group\\\",[23,2,[]],\\\"campaign settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[23,1,[]],\\\"name\\\",true,\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\"],[true,[23,4,[]],true,[23,5,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[23,1,[]],\\\"shopUrl\\\",true,\\\"shop url (at least 6 characters)\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,4,[]],true,[23,5,[\\\"_data\\\",\\\"shopUrl\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"campaignPassword\\\",\\\"password\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"campaignPassword\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,4,[]],\\\"generate password\\\",[28,\\\"fn\\\",[[23,6,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"dateStartZ\\\",\\\"date start\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@date\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onSelectDate\\\",\\\"@target\\\"],[[23,5,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,4,[]],[23,5,[]],[28,\\\"fn\\\",[[23,9,[]]],null],\\\"_data.dateStartZ\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"dateEndZ\\\",\\\"date end\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@date\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onSelectDate\\\",\\\"@target\\\"],[[23,5,[\\\"_data\\\",\\\"dateEndZ\\\"]],[23,4,[]],[23,5,[]],[28,\\\"fn\\\",[[23,9,[]]],null],\\\"_data.dateEndZ\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"dateError\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-exclamation-circle\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"date error\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"autoEnd\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],\\\"automatically end campaign\\\",\\\"off\\\",\\\"on\\\",[23,5,[\\\"_data\\\",\\\"autoEnd\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"showCountdownTimer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],\\\"show countdown timer\\\",\\\"off\\\",\\\"on\\\",[23,5,[\\\"_data\\\",\\\"showCountdownTimer\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"beta.showCampaignPeriodDataOnly\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"showCampaignPeriodDataOnly\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,4,[]],\\\"show data for campaign period only\\\",[23,5,[\\\"_data\\\",\\\"showCampaignPeriodDataOnly\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\\n\\\"],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"expiredSettings_group\\\",[23,1,[]],[23,2,[]],\\\"campaign expired settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"useDefaultsExpiredRedirectUrl\\\",\\\"use default auto redirect url from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"useDefaultsExpiredRedirectUrl\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"expiredRedirectUrl\\\",[28,\\\"unless\\\",[[23,5,[\\\"_data\\\",\\\"useDefaultsExpiredRedirectUrl\\\"]],\\\"auto redirect to url when campaign has ended\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"useDefaultsExpiredRedirectUrl\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopExpiredRedirectUrl\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopExpiredRedirectUrl\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"u-input--large\\\",[23,4,[]],[23,5,[\\\"_data\\\",\\\"expiredRedirectUrl\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"expiredTemplate\\\",\\\"campaign_expired_template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@options\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[23,2,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],true,true,[23,4,[]],[23,5,[\\\"_data\\\",\\\"expiredTemplate\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"beta.useInventoryAsLimitedQty\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"inventory_group\\\",[23,2,[]],\\\"inventory\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useInventoryAsLimitedQty\\\",\\\"use inventory qty as product limits\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"bulkDiscountsModeCampaign_group\\\",[23,1,[]],[23,2,[]],\\\"bulk discounts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isAllowMultipleBulkDiscounts\\\",[23,1,[]],\\\"allow multiple bulk discounts per item\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,5,[\\\"_data\\\",\\\"isAllowMultipleBulkDiscounts\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"promoCode_group\\\",[23,2,[]],\\\"promo code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"showEnterPromoCode\\\",\\\"promo code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,4,[]],\\\"allow customers to see enter promo code on checkout\\\",[23,5,[\\\"_data\\\",\\\"showEnterPromoCode\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.extensions.tw_eInvoices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"twEInvoicesAndTwInvoices_group\\\",[23,2,[]],\\\"tw_eInvoices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"useDefaultsAutoPrintInvoicesForShop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@ontoggle\\\",\\\"@toggleValue\\\"],[[23,4,[]],\\\"use defaults from settings\\\",[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,5,[\\\"_data\\\",\\\"useDefaultsAutoPrintInvoicesForShop\\\"]]],null]],null],[23,5,[\\\"_data\\\",\\\"useDefaultsAutoPrintInvoicesForShop\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"useDefaultsAutoPrintInvoicesForShop\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"tw_eInvoices\\\"]],[23,0,[\\\"constants\\\",\\\"togglesOnOff\\\",\\\"on\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\"],[[23,1,[]],\\\"autoPrintInvoicesForShop\\\",\\\"tw_auto_print_invoices_for_shop\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"autoPrintInvoicesForShop\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"autoPrintInvoicesForShop\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"autoPrintInvoices\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"tw_eInvoices\\\"]],[23,0,[\\\"constants\\\",\\\"togglesOnOff\\\",\\\"on\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\"],[[23,1,[]],\\\"autoPrintInvoicesForShop\\\",\\\"tw_auto_print_invoices_for_shop\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-invoicing\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,5,[\\\"_data\\\",\\\"autoPrintInvoicesForShop\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"seo_group\\\",[23,2,[]],\\\"seo\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@description\\\",\\\"@translateDescription\\\"],[[23,1,[]],\\\"isAllowToCrawl\\\",\\\"allow seo\\\",[23,5,[]],[23,2,[]],[28,\\\"if\\\",[[23,5,[\\\"isLinkToWebsite\\\"]],\\\"to change please check allow seo settings on website\\\",\\\"\\\"],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"isLinkToWebsite\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,5,[\\\"_data\\\",\\\"website\\\",\\\"allowSeo\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"isAllowToCrawl\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[\\\"_data\\\",\\\"website\\\",\\\"allowAllCampaigns\\\"]],[23,5,[\\\"_data\\\",\\\"website\\\",\\\"allowSeo\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"openGraph_group\\\",[23,2,[]],\\\"open graph\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"open-graph\\\",[],[[\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,2,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"settings/defaults/company-editor\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],[23,4,[]],[23,5,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/basic-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/checkout-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopCampaignsCampaignsEditorSettingsEditorCheckoutEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsEditorSettingsEditorCheckoutEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/checkout-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"guqMZtwr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"field\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@formFilters\\\",\\\"@onLoadCheckoutForm\\\",\\\"@onUnloadCheckoutForm\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"checkout\\\",[23,4,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,10,[]],[23,4,[]],[23,9,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"checkoutSettingsEditor_group\\\",[23,4,[]],\\\"checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"showEnterPromoCode\\\",\\\"promo code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"allow customers to see enter promo code on checkout\\\",[23,3,[\\\"_data\\\",\\\"showEnterPromoCode\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.hasCustomProductsDisplaySettings\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"hasOneItemLimitPerCheckout\\\",[23,1,[]],\\\"one item limit per checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"hasOneItemLimitPerCheckout\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"isCheckoutNotesRequired\\\",\\\"note is required on checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"isCheckoutNotesRequired\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsCheckoutSummaryDescription\\\",\\\"checkout summary description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"use defaults from settings\\\",false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsCheckoutSummaryDescription\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"checkoutSummaryDescription\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsCheckoutSummaryDescription\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopCheckoutSummaryDescription\\\"]],true,[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,true,[23,3,[\\\"_data\\\",\\\"checkoutSummaryDescription\\\"]],[23,5,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsCheckoutDetailsDescription\\\",\\\"checkout details description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"use defaults from settings\\\",false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsCheckoutDetailsDescription\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"checkoutDetailsDescription\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsCheckoutDetailsDescription\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopCheckoutDetailsDescription\\\"]],true,[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,true,[23,3,[\\\"_data\\\",\\\"checkoutDetailsDescription\\\"]],[23,5,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsCheckoutPaymentDescription\\\",\\\"checkout payment description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"use defaults from settings\\\",false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsCheckoutPaymentDescription\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"checkoutPaymentDescription\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsCheckoutPaymentDescription\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopCheckoutPaymentDescription\\\"]],true,[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,true,[23,3,[\\\"_data\\\",\\\"checkoutPaymentDescription\\\"]],[23,5,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"useDefaultsShopCheckoutNoteMaxCharacterLimit\\\",[23,1,[]],\\\"shop checkout note character limit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"use defaults from settings\\\",false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutNoteMaxCharacterLimit\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"shopCheckoutNoteMaxCharacterLimit\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutNoteMaxCharacterLimit\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopCheckoutNoteMaxCharacterLimit\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"shopCheckoutNoteMaxCharacterLimit\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsSuccessOrderDescription\\\",\\\"success order description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"use defaults from settings\\\",false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsSuccessOrderDescription\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"successOrderDescription\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsSuccessOrderDescription\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"successOrderDescription\\\"]],true,[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,true,[23,3,[\\\"_data\\\",\\\"successOrderDescription\\\"]],[23,5,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.hasCustomCheckoutFields\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"hasCustomCheckoutFields\\\",[23,1,[]],\\\"allow custom checkout fields\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"hasCustomCheckoutFields\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"hasCustomCheckoutFields\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"useDefaultsCustomCheckoutFields\\\",[23,1,[]],\\\"allow custom checkout fields - use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[true,false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsCustomCheckoutFields\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"customCheckoutFields\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"customCheckoutFields\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"customCheckoutFields\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[23,2,[\\\"text\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isReplyRequired\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"tt\\\",[\\\"is required\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"empty\\\"],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                * \\\"],[1,[28,\\\"tt\\\",[\\\"contact customer service to update\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],\\\"show form on checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenFalse\\\"],[[23,5,[]],\\\"show form on checkout\\\",false,true,[23,3,[\\\"_data\\\",\\\"checkoutForm\\\"]],[23,8,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"checkoutForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@hasSelected\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@tagName\\\"],[true,[23,5,[]],[23,6,[]],true,[23,3,[\\\"_data\\\",\\\"checkoutFormKey\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,6,[\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"component\\\"],[\\\"flows\\\",[23,6,[]],[23,0,[]]]]]],null],[23,7,[]],[23,8,[]],\\\"choose form\\\",[23,5,[]],\\\"_data.name\\\",[23,3,[\\\"_data\\\",\\\"checkoutFormName\\\"]],\\\"span\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@allowedForFeatures\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[28,\\\"array\\\",[\\\"features.shopCheckoutDisallowNote\\\"],null],[23,1,[]],\\\"checkoutSettingsEditor_shopCheckoutDisallowNote_group\\\",[23,4,[]],\\\"notes on checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsShopCheckoutDisallowNote\\\",\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@ontoggle\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowNote\\\"]]],null]],null],true,false,[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowNote\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shopCheckoutDisallowNote\\\",\\\"disallow notes on checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowNote\\\"]],true,[23,5,[]]],null],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"shopCheckoutDisallowNote\\\"]]],null]],null],false,true,[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowNote\\\"]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopCheckoutDisallowNote\\\"]],[23,3,[\\\"_data\\\",\\\"shopCheckoutDisallowNote\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@allowedForFeatures\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[28,\\\"array\\\",[\\\"features.shopCheckoutDisallowSubscribeToNewsletter\\\"],null],[23,1,[]],\\\"checkoutSettingsEditor_shopCheckoutDisallowSubscribeToNewsletter_group\\\",[23,4,[]],\\\"subscribe to newsletter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsShopCheckoutDisallowSubscribeToNewsletter\\\",\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@ontoggle\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowSubscribeToNewsletter\\\"]]],null]],null],true,false,[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowSubscribeToNewsletter\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shopCheckoutDisallowSubscribeToNewsletter\\\",\\\"disallow subscribe to newsletter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowSubscribeToNewsletter\\\"]],true,[23,5,[]]],null],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"shopCheckoutDisallowSubscribeToNewsletter\\\"]]],null]],null],false,true,[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowSubscribeToNewsletter\\\"]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopCheckoutDisallowSubscribeToNewsletter\\\"]],[23,3,[\\\"_data\\\",\\\"shopCheckoutDisallowSubscribeToNewsletter\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@allowedForFeatures\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[28,\\\"array\\\",[\\\"features.shopCheckoutDisallowUseAlternateAddress\\\"],null],[23,1,[]],\\\"checkoutSettingsEditor_shopCheckoutDisallowUseDifferentDeliveryInfo_group\\\",[23,4,[]],\\\"use different delivery info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsShopCheckoutDisallowUseAlternateAddress\\\",\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@ontoggle\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowUseAlternateAddress\\\"]]],null]],null],true,false,[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowUseAlternateAddress\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shopCheckoutDisallowUseAlternateAddress\\\",\\\"disallow use different delivery info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowUseAlternateAddress\\\"]],true,[23,5,[]]],null],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"shopCheckoutDisallowUseAlternateAddress\\\"]]],null]],null],false,true,[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopCheckoutDisallowUseAlternateAddress\\\"]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopCheckoutDisallowUseAlternateAddress\\\"]],[23,3,[\\\"_data\\\",\\\"shopCheckoutDisallowUseAlternateAddress\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"contactsTagsSettingsEditor_group\\\",[23,4,[]],\\\"customer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"contactsTags\\\",\\\"customer tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],\\\"_data._key\\\",false,[23,3,[\\\"_data\\\",\\\"contactsTags\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@itemClassNames\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"contacts/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true,true,\\\"list-selector__item list-selector__item--horizontal\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],[23,3,[]],true,\\\"_data._key\\\",[23,4,[]],false,\\\"_data.contactsTags\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/checkout-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/search-contacts\", \"client/mixins/crud\", \"client/mixins/transporter\", \"ember-concurrency-decorators\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, R, RA, _searchContacts, _crud, _transporter, _emberConcurrencyDecorators, R_, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _obj;\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  // import { task } from 'ember-concurrency'\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, _transporter.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    search: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    tabsManager: Ember.inject.service(),\n    contacts: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    transporterService: Ember.inject.service('transporter'),\n    transporterAccounts: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/tags', 'dispatch/lists/processes', 'extensions/apps/tw/invoicing', 'extensions/apps/tw/convenience-stores/lists/brands', 'channels/shop/campaigns/lists/settings-editor/editor-sub-panels', 'channels/shop/campaigns/lists/review-steps', 'channels/shop/campaigns/lists/statuses', 'channels/shop/campaigns/lists/variantSelectorStyle', 'channels/shop/campaigns/lists/cartBtnStyle', 'channels/shop/campaigns/lists/show-customizations-price-type', 'settings/checkout-date-method', {\n        name: 'workflows/lists/items/activities/templates',\n        appendPath: 'authorization'\n      }]);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters'\n      });\n      this.set('campaignFilters', campaignFilters);\n      const formFilters = this.search.setupFilters({\n        adapterName: 'flows/filters',\n        defaultFiltersData: {\n          type: 'form'\n        }\n      });\n      this.set('formFilters', formFilters);\n      this.loadDefaultFormFlowsTask.perform();\n\n      // const shippingZonesFilters = this.search.setupFilters({\n      //   adapterName: 'channels/shop/shipping-zones/filters',\n      //   defaultFiltersData: {\n      //     resultsProperty: 'shippingZonesLists',\n      //     query: ''\n      //   }\n      // })\n\n      // this.set('shippingZonesFilters', shippingZonesFilters)\n\n      if (this.isNew) {\n        // @NOTE: always use defaults from settings when creating new campaign\n        this.model.setData('useDefaultsShippingFlatFee', true);\n      }\n      if (this.isCopy) {\n        this.setupCommissionTask.perform();\n      }\n      this.setupTransporterTask.perform();\n    },\n    *loadDefaultFormFlowsTask() {\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: 'flows',\n        filters: this.formFilters\n      });\n    },\n    *setupTransporterTask() {\n      const model = this.model;\n      const transporter = yield this.transporterService.fetchTransporterTask.perform({\n        model\n      });\n      this.set('transporterModel', transporter);\n      this.loadTransporterAccounts(model, transporter);\n    },\n    *setupCommissionTask() {\n      const model = this.model;\n      model.loadSalesPersonSettings();\n      if (this.isEditing) {\n        const hasAnyCommissionData = yield this.campaignsService.checkHasAnyCommissionData.perform({\n          model: this.model\n        });\n        this.set('hasAnyCommissionData', hasAnyCommissionData?.hasAnyCommissions);\n      }\n      const associatesContactsFilters = this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          isAssociates: true\n        }\n      });\n      const associatesContacts = yield this.contacts.loadContactTask.perform(associatesContactsFilters);\n      this.set('associatesContacts', associatesContacts);\n    },\n    allowPickup: Ember.computed('model._data.useDefaultsPickupSettings', 'model._data.allowPickup', function () {\n      const useDefaultsPickupSettings = this.model?._data?.useDefaultsPickupSettings;\n      if (useDefaultsPickupSettings) {\n        return this.settings?.settingsModel?._data?.shopAllowPickup || false;\n      }\n      return this.model?._data?.allowPickup || false;\n    }),\n    allowedPaymentMethods: Ember.computed('crud.lists.paymentMethods-shop.[]', 'model._data.paymentMethods.[]', function () {\n      return this.crud.lists['paymentMethods-shop'] || [];\n    }),\n    defaultShippingZonesIds: Ember.computed('crud.lists.channels-shop-shipping-zones-all.@each.synced', function () {\n      const shippingZones = this.crud.lists['channels-shop-shipping-zones-all'] || [];\n      return R.map(R.path(['_data', 'zoneId']))(shippingZones);\n    }),\n    selectedShippingZonesIds: Ember.computed('model._data.shippingZonesIds.[]', 'crud.lists.channels-shop-shipping-zones-all.@each.synced', function () {\n      const shippingZonesIds = this.get('model._data.shippingZonesIds') || [];\n      const shippingZones = this.crud.lists['channels-shop-shipping-zones-all'] || [];\n      return R.filter(zone => {\n        return R.pipe(R.path(['_data', 'zoneId']), R.indexOf(R.__, shippingZonesIds), R.gt(R.__, -1))(zone);\n      })(shippingZones);\n    }),\n    allowedDispatchProcesses: Ember.computed('crud.lists.dispatch-lists-processes', function () {\n      const allDispatchProcesses = this.get('crud.lists.dispatch-lists-processes') || [];\n      return R.reject(R.pathEq(['_data', 'isDispatched'], true))(allDispatchProcesses);\n    }),\n    openTab() {\n      this.tabsManager.openTab('left', {\n        component: 'channels/shop/shipping-zones/tab-container',\n        title: 'shipping zones'\n      });\n    },\n    loadShopSource(shop) {\n      const model = this.model;\n      model.setData('childOfKey', shop.getData('_key'));\n      model.setData('childOf', shop.getData('name'));\n    },\n    unloadShopSource() {\n      const model = this.model;\n      model.setData('childOfKey', '');\n      model.setData('childOf', '');\n    },\n    generateRandomPassword() {\n      const password = _nventor.default.random.alphaNum(8).toLowerCase();\n      const model = this.model;\n      model.setData('campaignPassword', password);\n    },\n    refreshModel(model) {\n      this.set('transporterModel', model);\n    },\n    updateSenderDetails(person) {\n      const personId = person?.personId;\n      const defaultPickupLocationPersonId = this.transporterModel?._data?.defaultPickupLocationPersonId || '';\n      if (defaultPickupLocationPersonId !== personId) {\n        this.model.set('_data.defaultPickupLocationPersonId', personId);\n      }\n    },\n    onSelectTransporter(model, transporter) {\n      this.set('transporterModel', transporter);\n      this.loadTransporter(model, transporter);\n    },\n    loadCheckoutForm(forms) {\n      const model = this.model;\n      model.setData('checkoutFormKey', forms?._data?._key);\n    },\n    unloadCheckoutForm() {\n      const model = this.model;\n      model.setData('checkoutFormKey', '');\n      model.setData('checkoutFormName', '');\n    },\n    unloadTransporter(model) {\n      model.setData('transporterKey', '');\n      model.setData('transporterAccountNumber', '');\n      model.setData('transporterAccount', '');\n      this.set('transporterAccounts', '');\n    },\n    setTransporterAccountLabel(model, account) {\n      model.setData('transporterAccount', account.getData('name'));\n    },\n    addDispatchProcess(model, dispatchProcess) {\n      const dispatchProcessLabelTranslate = dispatchProcess.getData('translate');\n      const dispatchProcessLabel = dispatchProcess.getData('name');\n      model.setData('dispatchProcessLabel', dispatchProcessLabel);\n      model.setData('dispatchProcessLabelTranslate', dispatchProcessLabelTranslate);\n    },\n    removeDispatchProcess(model) {\n      model.setData('dispatchProcessLabel', '');\n      model.setData('dispatchProcessLabelTranslate', '');\n    },\n    checkValidStartAndEndDateZ() {\n      const model = this?.model || {};\n      const dateStartZ = model?._data?.dateStartZ || '';\n      const dateEndZ = model?._data?.dateEndZ || '';\n      if (RA.isNotNilOrEmpty(dateStartZ) && RA.isNotNilOrEmpty(dateEndZ) && dateEndZ < dateStartZ) {\n        model.set('dateError', true);\n      } else {\n        model.set('dateError', false);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"loadDefaultFormFlowsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"loadDefaultFormFlowsTask\"), _obj), _applyDecoratedDescriptor(_obj, \"setupTransporterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"setupTransporterTask\"), _obj), _applyDecoratedDescriptor(_obj, \"setupCommissionTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"setupCommissionTask\"), _obj), _applyDecoratedDescriptor(_obj, \"openTab\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"openTab\"), _obj), _applyDecoratedDescriptor(_obj, \"loadShopSource\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"loadShopSource\"), _obj), _applyDecoratedDescriptor(_obj, \"unloadShopSource\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"unloadShopSource\"), _obj), _applyDecoratedDescriptor(_obj, \"generateRandomPassword\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"generateRandomPassword\"), _obj), _applyDecoratedDescriptor(_obj, \"refreshModel\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"refreshModel\"), _obj), _applyDecoratedDescriptor(_obj, \"updateSenderDetails\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"updateSenderDetails\"), _obj), _applyDecoratedDescriptor(_obj, \"onSelectTransporter\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"onSelectTransporter\"), _obj), _applyDecoratedDescriptor(_obj, \"loadCheckoutForm\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"loadCheckoutForm\"), _obj), _applyDecoratedDescriptor(_obj, \"unloadCheckoutForm\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"unloadCheckoutForm\"), _obj), _applyDecoratedDescriptor(_obj, \"unloadTransporter\", [_dec0], Object.getOwnPropertyDescriptor(_obj, \"unloadTransporter\"), _obj), _applyDecoratedDescriptor(_obj, \"setTransporterAccountLabel\", [_dec1], Object.getOwnPropertyDescriptor(_obj, \"setTransporterAccountLabel\"), _obj), _applyDecoratedDescriptor(_obj, \"addDispatchProcess\", [_dec10], Object.getOwnPropertyDescriptor(_obj, \"addDispatchProcess\"), _obj), _applyDecoratedDescriptor(_obj, \"removeDispatchProcess\", [_dec11], Object.getOwnPropertyDescriptor(_obj, \"removeDispatchProcess\"), _obj), _applyDecoratedDescriptor(_obj, \"checkValidStartAndEndDateZ\", [_dec12], Object.getOwnPropertyDescriptor(_obj, \"checkValidStartAndEndDateZ\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/emails-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopCampaignsCampaignsEditorSettingsEditorEmailsEditor = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsEditorSettingsEditorEmailsEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settings\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/emails-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KlOOLo/W\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"emails\\\",[23,4,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,6,[]],[23,4,[]],[23,5,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"emailSettings_group\\\",[23,1,[]],[23,4,[]],\\\"from email name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"emailFromName\\\",\\\"from email name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"emailFromName\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"emailFromName\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,2,[\\\"_data\\\",\\\"emailFromName\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"emailFromAddress\\\",\\\"from email address\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"emailFromAddress\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"emailFromAddress\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,2,[\\\"_data\\\",\\\"emailFromAddress\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"emailSignature\\\",\\\"email signature\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"emailSignature\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"emailSignature\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,2,[\\\"_data\\\",\\\"emailSignature\\\"]],true,true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"orderSuccessEmail_group\\\",[23,1,[]],[23,4,[]],\\\"order success email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"orderedEmailSubject\\\",\\\"email subject\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderedEmailSubject\\\"]],\\\"\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderedEmailSubject\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderedEmailSubject\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderedEmailSubject\\\"]],\\\"\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderedEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[\\\"order summary\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,2,[\\\"_data\\\",\\\"orderedEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"orderedEmailMessage\\\",\\\"email message\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderedEmailMessage\\\"]],\\\"\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderedEmailMessage\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderedEmailMessage\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderedEmailMessage\\\"]],\\\"\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderedEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"defaultOrderedEmailMessage\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,2,[\\\"_data\\\",\\\"orderedEmailMessage\\\"]],true,true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"orderedEmailCopyTo\\\",\\\"send a copy of order email to addresses\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderedEmailCopyTo\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderedEmailCopyTo\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,3,[]],2,[23,2,[\\\"_data\\\",\\\"orderedEmailCopyTo\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"orderMessagesEmailCopyTo\\\",\\\"send a copy of order messages to addresses\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderMessagesEmailCopyTo\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderMessagesEmailCopyTo\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,3,[]],2,[23,2,[\\\"_data\\\",\\\"orderMessagesEmailCopyTo\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"dispatchedEmailSettings_group\\\",[23,1,[]],[23,4,[]],\\\"order dispatched email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"dispatchedEmailSubject\\\",\\\"email subject\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]],\\\"\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]],\\\"\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"email_dispatched_default_subject\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,2,[\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"dispatchedEmailMessage\\\",\\\"email message\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]],\\\"\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]],\\\"\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"defaultDispatchedEmailMessage\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,2,[\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]],true,true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"orderCanceledEmailSettings_group\\\",[23,1,[]],[23,4,[]],\\\"order canceled email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"orderCanceledEmailSubject\\\",\\\"email subject\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]],\\\"\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]],\\\"\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"email_canceled_order_default_subject\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,2,[\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"orderCanceledEmailMessage\\\",\\\"email message\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]],\\\"\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]],\\\"\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"defaultCanceledEmailMessage\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,2,[\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]],true,true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"creditCardRefundedEmailSettings_group\\\",[23,1,[]],[23,4,[]],\\\"credit card refunded email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"creditCardRefundedEmailSubject\\\",\\\"email subject\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]],\\\"\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]],\\\"\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"email_refunded_order_default_subject\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,2,[\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"creditCardRefundedEmailMessage\\\",\\\"email message\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]],\\\"\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]],\\\"\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"defaultRefundedEmailMessage\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,2,[\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]],true,true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"pod/get\\\",[\\\"beta.allowRecurringSchedules\\\"],null],[28,\\\"pod/get\\\",[\\\"features.allowRecurringSchedules\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"shopRecurringOrderEmailSettings_group\\\",[23,1,[]],[23,4,[]],\\\"recurring order email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shopRecurringLastOrderEmailMessage\\\",\\\"email message to buy more\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"shopRecurringLastOrderEmailMessage\\\"]],\\\"\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopRecurringLastOrderEmailMessage\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopRecurringLastOrderEmailMessage\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"shopRecurringLastOrderEmailMessage\\\"]],\\\"\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopRecurringLastOrderEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"defaultShopRecurringLastOrderEmailMessage\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,2,[\\\"_data\\\",\\\"shopRecurringLastOrderEmailMessage\\\"]],true,true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/emails-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/payments-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, R, RA, R_) {\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;\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 ChannelsShopCampaignsCampaignsEditorSettingsEditorPaymentsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.computed('args.model._data.{useDefaultsPaymentMethods,paymentMethods.[]}', 'settings.settingsModel._data.shopPaymentMethods.[]'), _dec4 = Ember.computed('selectedPaymentMethods.[]', 'settings.settingsModel.hasInstallments'), _dec5 = Ember.computed('crud.lists.paymentMethods-shop.[]', 'selectedPaymentMethods.[]'), _dec6 = Ember._action, _class = class ChannelsShopCampaignsCampaignsEditorSettingsEditorPaymentsEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n    }\n    get selectedPaymentMethods() {\n      const model = this.args?.model || {};\n      const useDefaultsPaymentMethods = model?._data?.useDefaultsPaymentMethods;\n      const campaignPaymentMethods = model?._data?.paymentMethods || [];\n      const settings = this.settings?.settingsModel;\n      const settingsPaymentMethods = settings?._data?.shopPaymentMethods || [];\n      let selectedPaymentMethods = campaignPaymentMethods;\n      if (useDefaultsPaymentMethods) {\n        selectedPaymentMethods = settingsPaymentMethods;\n      }\n      return selectedPaymentMethods;\n    }\n    get hasCreditCardInstallmentsPaymentMethod() {\n      const hasInstallments = this.settings?.settingsModel?.hasInstallments || false;\n      const selectedPaymentMethods = this?.selectedPaymentMethods || [];\n      const hasCreditCardSelected = R.includes('creditCard', selectedPaymentMethods);\n      if (hasInstallments && hasCreditCardSelected) {\n        return true;\n      }\n      return false;\n    }\n    get shopPaymentMethodsDefaultsList() {\n      const paymentMethods = R_.dotPath('crud.lists.paymentMethods-shop')(this) || [];\n      const selectedPaymentMethods = this.selectedPaymentMethods || [];\n      return R.filter(method => R.includes(method.getData('value'), selectedPaymentMethods), paymentMethods);\n    }\n    setShopPaymentMethodsDefault(model) {\n      const shopPaymentMethodsDefaultsList = this.shopPaymentMethodsDefaultsList || [];\n      const currentDefault = model.getData('paymentMethodsDefault');\n      let resetDefault = false;\n      if (!R.includes(currentDefault, shopPaymentMethodsDefaultsList)) {\n        resetDefault = true;\n      }\n      if (!currentDefault) {\n        resetDefault = true;\n      }\n      if (resetDefault) {\n        const first = shopPaymentMethodsDefaultsList.get('firstObject');\n        const hasFirst = RA.isNotNilOrEmpty(first);\n        if (hasFirst) {\n          model.setData('paymentMethodsDefault', first.getData('value'));\n        } else {\n          model.setData('paymentMethodsDefault', '');\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectedPaymentMethods\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"selectedPaymentMethods\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasCreditCardInstallmentsPaymentMethod\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"hasCreditCardInstallmentsPaymentMethod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"shopPaymentMethodsDefaultsList\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"shopPaymentMethodsDefaultsList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setShopPaymentMethodsDefault\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setShopPaymentMethodsDefault\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/payments-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cBh0GI3j\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"payments\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,7,[]],[23,4,[]],[23,6,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"shopPaymentMethodsSettings_group\\\",[23,4,[]],\\\"payment methods\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsPaymentMethods\\\",\\\"use default payment methods\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"useDefaultsPaymentMethods\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"paymentMethods\\\",\\\"payment methods\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPaymentMethods\\\"]],[23,2,[]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPaymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-shop\\\"]],\\\"_data.value\\\",true,[23,3,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopPaymentMethods\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-shop\\\"]],\\\"_data.value\\\",true,[23,3,[\\\"_data\\\",\\\"paymentMethods\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@itemClassNames\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@onDeselect\\\",\\\"@onSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"list-selector__item list-selector__item--horizontal\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-shop\\\"]],[23,3,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"setShopPaymentMethodsDefault\\\"]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"setShopPaymentMethodsDefault\\\"]],[23,3,[]]],null],\\\"_data.value\\\",[23,4,[]],true,\\\"_data.paymentMethods\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"paymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"paymentMethodsDefault\\\",\\\"default payment method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPaymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"shopPaymentMethodsDefaultsList\\\"]],true,[23,3,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopPaymentMethodsDefault\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,2,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"shopPaymentMethodsDefaultsList\\\"]],true,[23,3,[\\\"_data\\\",\\\"paymentMethodsDefault\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasCreditCardInstallmentsPaymentMethod\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsPaymentMethodsAllowInstallments\\\",\\\"credit card installments: use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,2,[]],false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsPaymentMethodsAllowInstallments\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"paymentMethodsAllowInstallments\\\",[23,5,[]],\\\"allow credit card installments\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPaymentMethodsAllowInstallments\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"defaultPaymentMethodsAllowInstallments\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"paymentMethodsAllowInstallments\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasCashPaymentFee\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"cashPaymentMethodFee\\\",\\\"cash payment fee\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPaymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,3,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"cashShopPaymentMethodFee\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"cashPaymentMethodFee\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasCashBeforeDelivery\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"bankingDetails\\\",\\\"banking details\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPaymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,[23,3,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"bankingDetails\\\"]],true,[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,[23,3,[\\\"_data\\\",\\\"bankingDetails\\\"]],[23,2,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"recurringSettings_group\\\",[23,4,[]],\\\"recurring settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsRecurringAgreement\\\",\\\"checkout summary description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,2,[]],\\\"use defaults from settings\\\",false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsRecurringAgreement\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"recurringAgreement\\\",\\\"stereotyped contract content\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsRecurringAgreement\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[true,5,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"recurringAgreement\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,2,[]],5,[23,3,[\\\"_data\\\",\\\"recurringAgreement\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/payments-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/review-steps/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopCampaignsCampaignsEditorSettingsEditorReviewSteps = _exports.default = (_dec = Ember.inject.service('workflows'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _class = class ChannelsShopCampaignsCampaignsEditorSettingsEditorReviewSteps extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/review-steps/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wFgrCjch\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@reviewStep\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"workflows-item-activity__container\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"workflows/items/mark-as-completed\\\",[],[[\\\"@workflowsItemsActivities\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/review-steps/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/shipping-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopCampaignsCampaignsEditorSettingsEditorShippingEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsEditorSettingsEditorShippingEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/shipping-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"slwd11L4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@openTab\\\",\\\"@fetchTransporterTask\\\",\\\"@transporterAccounts\\\",\\\"@setTransporterAccountLabel\\\",\\\"@transporterModel\\\",\\\"@refreshModel\\\",\\\"@updateSenderDetails\\\",\\\"@searchContactsTask\\\",\\\"@transportersList\\\",\\\"@unloadTransporter\\\",\\\"@onSelectTransporter\\\",\\\"@resourceList\\\",\\\"@allowedDispatchProcesses\\\",\\\"@removeDispatchProcess\\\",\\\"@addDispatchProcess\\\",\\\"@allowPickup\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"shipping\\\",[23,4,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,17,[]],[23,4,[]],[23,5,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"shippingSettingsEditor_group\\\",[23,4,[]],\\\"shipping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"allowShipping\\\",\\\"allow shipping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,2,[]],false,true,[23,3,[\\\"_data\\\",\\\"allowShipping\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"allowShipping\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shippingFeeType\\\",\\\"shipping fee type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,2,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"shipping-feeType\\\"]],true,[23,3,[\\\"_data\\\",\\\"shippingFeeType\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"shippingFeeType\\\"]],[23,0,[\\\"constants\\\",\\\"shippingFeeType\\\",\\\"flat\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"transporterLabel\\\",\\\"transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@isRunning\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@list\\\",\\\"@onDeselect\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@selectedItemValueKey\\\",\\\"@tab\\\",\\\"@value\\\"],[true,[23,2,[]],[23,3,[\\\"_data\\\",\\\"transporterKey\\\"]],\\\"fas fa-address-book\\\",[23,13,[\\\"isRunning\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,14,[]],[28,\\\"fn\\\",[[23,15,[]],[23,3,[]]],null],[28,\\\"perform\\\",[[23,13,[]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"relationship\\\",\\\"resultsProperty\\\",\\\"disallowForFlatFees\\\"],[[23,3,[\\\"_data\\\",\\\"transporterLabel\\\"]],\\\"supplier\\\",\\\"transportersList\\\",true]]]],null],[28,\\\"fn\\\",[[23,16,[]],[23,3,[]]],null],\\\"_data.name\\\",[23,4,[]],[23,3,[\\\"_data\\\",\\\"transporterLabel\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,10,[\\\"_data\\\",\\\"transporterExtension\\\"]],\\\"t-cat\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"extensions/apps/tw/t-cat/sender-list-btn\\\",[],[[\\\"@formInitData\\\",\\\"@showUseDefaultsToggle\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@transporterModel\\\",\\\"@onRefreshModel\\\",\\\"@onSelect\\\",\\\"@defaultPersonId\\\",\\\"@listSelectorValueKey\\\"],[[23,1,[]],true,[23,2,[]],[23,3,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,3,[\\\"_data\\\",\\\"transporterDefaultPickupLocationPersonId\\\"]],\\\"_data.transporterDefaultPickupLocationPersonId\\\"]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"transporterAccountNumber\\\",\\\"transporter account\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"transporterAccountNumber\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"transporterKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,2,[]],[23,7,[\\\"isRunning\\\"]],true,\\\"_data.account\\\",\\\"_data.name\\\",[23,8,[]],[28,\\\"fn\\\",[[23,9,[]],[23,3,[]]],null],true,false,[23,3,[\\\"_data\\\",\\\"transporterAccountNumber\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"transporterAccountNumber\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsShippingFlatFee\\\",\\\"use defaults flat fee\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@ontoggle\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@toggleValue\\\"],[[23,2,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShippingFlatFee\\\"]]],null]],null],true,false,[23,3,[\\\"_data\\\",\\\"useDefaultsShippingFlatFee\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShippingFlatFee\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shippingFee\\\",\\\"shipping fee\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shippingFee\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shippingFeeAlwaysCharge\\\",\\\"always charge shipping fee\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shippingFeeAlwaysCharge\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shippingFeeAlwaysCharge\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shippingFeeCondition\\\",\\\"free shipping for orders greater and equal to\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"shippingFee\\\",true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shippingFeeCondition\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shippingFee\\\",\\\"shipping fee\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"shippingFee\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shippingFeeAlwaysCharge\\\",\\\"always charge shipping fee\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"shippingFeeAlwaysCharge\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"_data\\\",\\\"shippingFeeAlwaysCharge\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"shippingFeeCondition\\\",\\\"free shipping for orders greater and equal to\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"shippingFee\\\",[23,2,[]],[23,3,[\\\"_data\\\",\\\"shippingFeeCondition\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"allowShipping\\\"]],[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"shippingFeeType\\\"]],[23,0,[\\\"constants\\\",\\\"shippingFeeType\\\",\\\"zones\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"shippingZonesSettings_group\\\",[23,1,[]],\\\"shipping zones\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"useDefaultsShippingZones\\\",[23,1,[]],\\\"use defaults shipping zones\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@ontoggle\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@toggleValue\\\"],[[23,2,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShippingZones\\\"]]],null]],null],true,false,[23,3,[\\\"_data\\\",\\\"useDefaultsShippingZones\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShippingZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@isTabLink\\\",\\\"@tabLinkKey\\\",\\\"@tabOptionsData\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-all\\\"]],\\\"_data.name\\\",\\\"_data.zoneId\\\",false,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"defaultShippingZonesIds\\\"]],true,\\\"_data._key\\\",[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\"],[\\\"channels/shop/shipping-zones/tab-container\\\",\\\"shipping zones\\\"]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@wizardContainerComponent\\\"],[\\\"shippingZonesIds\\\",[23,1,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shipping fee type\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"zones fee\\\"],null]],null],[23,3,[]],false,[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@list\\\"],[[23,2,[]],\\\"fas fa-plus\\\",\\\"shipping zones\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-all\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@label\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionClassNames\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@suffixKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[true,true,\\\"regions\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-all\\\"]],[23,3,[]],true,\\\"has-text-weight-bold\\\",\\\"_data.name\\\",\\\"_data.zoneId\\\",\\\"_data.description\\\",false,\\\"_data.shippingZonesIds\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@wizardContainerComponent\\\"],[[23,1,[]],[23,3,[]],[23,4,[]],false,[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@isTabLink\\\",\\\"@tabLinkKey\\\",\\\"@tabOptionsData\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-all\\\"]],\\\"_data.name\\\",\\\"_data.zoneId\\\",false,[23,3,[\\\"_data\\\",\\\"shippingZonesIds\\\"]],true,\\\"_data._key\\\",[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\"],[\\\"channels/shop/shipping-zones/tab-container\\\",\\\"shipping zones\\\"]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@wizardContainerComponent\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],[23,3,[]],true,[23,5,[]],\\\"shippingRateMethod\\\",\\\"shipping rate method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-lists-rate-method\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,2,[]],[23,2,[]],[23,3,[\\\"_data\\\",\\\"shippingRateMethod\\\"]],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@wizardContainerComponent\\\"],[[23,1,[]],[23,3,[]],[23,4,[]],false,[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@class\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-margin-left-5\\\",\\\"fas fa-truck\\\",\\\"set shipping zones\\\",[28,\\\"fn\\\",[[23,6,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"expectedDateMethodSettings_group\\\",[23,1,[]],\\\"select dispatch or arrival date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"use defaults from settings\\\",\\\"useDefaultsExpectedDateMethod\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,2,[]],false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsExpectedDateMethod\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsExpectedDateMethod\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"expectedDateMethod\\\",[23,1,[]],\\\"checkout page on select dispatch or arrival date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-checkout-date-method\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"expectedDateMethod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"expectedDateMethod\\\",[23,1,[]],\\\"checkout page on select dispatch or arrival date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-checkout-date-method\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,2,[]],true,[23,3,[\\\"_data\\\",\\\"expectedDateMethod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"dispatchProcess_group\\\",[23,4,[]],\\\"dispatch\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"dispatchProcess\\\",\\\"dispatch process for new orders\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@translate\\\"],[[23,2,[]],\\\"fas fa-box-open\\\",[23,3,[\\\"_data\\\",\\\"dispatchProcessLabel\\\"]],[23,3,[\\\"_data\\\",\\\"dispatchProcessLabelTranslate\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@list\\\",\\\"@model\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@multiSelect\\\",\\\"@onDeselect\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"list-selector\\\",[23,18,[]],[23,3,[]],\\\"_data.name\\\",\\\"_data.code\\\",false,[28,\\\"fn\\\",[[23,19,[]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,20,[]],[23,3,[]]],null],false,\\\"_data.dispatchProcess\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"allowPickupSettings_group\\\",[23,4,[]],\\\"pick up\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsPickupSettings\\\",\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@ontoggle\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@toggleValue\\\"],[[23,2,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPickupSettings\\\"]]],null]],null],true,false,[23,3,[\\\"_data\\\",\\\"useDefaultsPickupSettings\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"allowPickup\\\",\\\"allow pick up\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPickupSettings\\\"]],true,[23,2,[]]],null],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"allowPickup\\\"]]],null]],null],false,true,[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPickupSettings\\\"]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopAllowPickup\\\"]],[23,3,[\\\"_data\\\",\\\"allowPickup\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,21,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopAllowPickup\\\"]],[23,3,[\\\"_data\\\",\\\"useDefaultsPickupSettings\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"shopPickupLocations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@list\\\"],[true,\\\"fas fa-map-marker-alt\\\",\\\"custom pick up locations\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"channels/shop/campaigns/lists/locations\\\",\\\"channels/shop/campaigns/locations-editor\\\",true,true,\\\"addresses\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\"]],true,\\\"_data._key\\\",[23,4,[]],false,\\\"_data.shopPickupLocations\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]],\\\"_data._key\\\",false,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopPickupLocations\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"allowPickup\\\"]],[28,\\\"not\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsPickupSettings\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"pickupLocations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@list\\\"],[[23,2,[]],\\\"fas fa-map-marker-alt\\\",\\\"custom pick up locations\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"channels/shop/campaigns/lists/locations\\\",\\\"channels/shop/campaigns/locations-editor\\\",true,true,\\\"addresses\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]],[23,3,[]],true,\\\"_data._key\\\",[23,4,[]],false,\\\"_data.pickupLocations\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]],\\\"_data._key\\\",false,[23,3,[\\\"_data\\\",\\\"pickupLocations\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/shipping-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/style-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ChannelsShopCampaignsCampaignsEditorSettingsEditorStyleEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.computed('model._data.{useDefaultsProductsDisplaySettings,hasCustomLimitedQtyPerPersonText}', 'settings.settingsModel._data.hasCustomLimitedQtyPerPersonText'), _class = class ChannelsShopCampaignsCampaignsEditorSettingsEditorStyleEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor3, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/noOfLines', 'channels/shop/campaigns/lists/products-tags-display-style', 'channels/shop/campaigns/lists/productsImagesRatio', 'channels/shop/campaigns/lists/productsImagesSize', 'channels/shop/campaigns/lists/productsNameFontSize', 'channels/shop/campaigns/lists/productsNameLineCount', 'channels/shop/campaigns/lists/productsOverview', 'channels/shop/campaigns/lists/website-page-display', 'products/lists/bigordrProductsPerRow', 'products/lists/onSaleTagDisplayPosition', 'products/lists/onSaleTagDisplayStyle', 'settings/imagesHoverFilter', 'settings/imagesHoverTransform', 'websites/lists/template-types']);\n    }\n    get showCustomLimitedQtyPerPersonTextSettings() {\n      const model = this.args.model;\n      const useDefaultsProductsDisplaySettings = R.pathOr(true, ['_data', 'useDefaultsProductsDisplaySettings'])(model);\n      if (useDefaultsProductsDisplaySettings) {\n        return this.settings.getProp('hasCustomLimitedQtyPerPersonText');\n      }\n      return R.pathOr(false, ['_data', 'hasCustomLimitedQtyPerPersonText'])(model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"showCustomLimitedQtyPerPersonTextSettings\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"showCustomLimitedQtyPerPersonTextSettings\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/style-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MzL1Kxe2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"style\\\",[23,5,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,8,[]],[23,5,[]],[23,7,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\"],[[23,1,[]],\\\"webpage_template\\\",\\\"template_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@allowedForFeatures\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[28,\\\"array\\\",[\\\"features.hasLegacyWebsitesTemplateTypes\\\"],null],\\\"advancedTemplate.templateType\\\",[23,1,[]],[23,6,[]],false,\\\"advanced_template_type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-template-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",true,[23,3,[\\\"_data\\\",\\\"advancedTemplate\\\",\\\"_data\\\",\\\"templateType\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"advancedTemplate.templateOptions\\\",[23,1,[]],[23,6,[]],false,\\\"advanced template options\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--horizontal\\\",false,true,true,[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-website-page-display\\\"]],[23,3,[]],\\\"_data.advancedTemplate._data.templateOptions\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"shopPriceRangeFilter_group\\\",[23,5,[]],\\\"shop filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"group by tags\\\",[23,6,[]],\\\"groupByTags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,3,[\\\"_data\\\",\\\"groupByTags\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"show tags on filter\\\",[23,6,[]],\\\"filterTags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,[28,\\\"or\\\",[[23,4,[]],[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"groupByTags\\\"]],false,true],null]],null],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-products-tags-display-style\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"filterTags\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasProductTagsFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"tags_filters_sort\\\",[23,6,[]],\\\"productTagsWithIndexes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@hasSectionWrapper\\\",\\\"@label\\\",\\\"@modalSize\\\"],[[23,4,[]],true,\\\"tags_filters_sort\\\",\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/filters-editor\\\",[],[[\\\"@model\\\"],[[23,3,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsShopPriceFilter\\\",\\\"use defaults shop price filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsShopPriceFilter\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsShopPriceFilter\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"enableShopPriceFilter\\\",\\\"enable shop price filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[true,false,true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"enableShopPriceFilter\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"enableShopPriceFilter\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"channels/shop/campaigns/price-filter\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"enableShopPriceFilter\\\",\\\"enable shop price filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,3,[\\\"_data\\\",\\\"enableShopPriceFilter\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"enableShopPriceFilter\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"channels/shop/campaigns/price-filter\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,4,[]],[23,3,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"productsSettings_group\\\",[23,5,[]],\\\"product display\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"showItemDescription\\\",\\\"show product description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,3,[\\\"_data\\\",\\\"showItemDescription\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"showItemDescription\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"showItemDescriptionLinesCount\\\",\\\"show number of lines for description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@onChange\\\",\\\"@value\\\"],[true,[23,4,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-noOfLines\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"\\\",[23,3,[\\\"_data\\\",\\\"showItemDescriptionLinesCount\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"showLabelMore\\\",\\\"show label more\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,3,[\\\"_data\\\",\\\"showLabelMore\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"products overview name\\\",[23,6,[]],\\\"productsOverviewShowName\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,3,[\\\"_data\\\",\\\"productsOverviewShowName\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"use default products display settings from settings\\\",\\\"useDefaultsProductsDisplaySettings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"number of lines for product name\\\",[23,6,[]],\\\"productsNameLineCount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsNameLineCount\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"productsNameLineCount\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,4,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsNameLineCount\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"productsNameLineCount\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"show item code\\\",\\\"showItemCode\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"showItemCode\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,3,[\\\"_data\\\",\\\"showItemCode\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isLinkToWebsite\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"productsPerRow\\\",[23,1,[]],\\\"display items per row\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-bigordrProductsPerRow\\\"]],false,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"productsPerRow\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-bigordrProductsPerRow\\\"]],false,[23,3,[\\\"_data\\\",\\\"productsPerRow\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"products images ratio\\\",[23,6,[]],\\\"productsImagesRatio\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesRatio\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"shopProductsImagesRatio\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,4,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesRatio\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"productsImagesRatio\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"products images size\\\",\\\"productsImagesSize\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesSize\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"productsImagesSize\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,4,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesSize\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"productsImagesSize\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"products images hover brightness effect\\\",[23,6,[]],\\\"productsImagesHoverFilter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-imagesHoverFilter\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"imagesHoverFilter\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,4,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-imagesHoverFilter\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"productsImagesHoverFilter\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"products images hover zoom effect\\\",[23,6,[]],\\\"productsImagesHoverTransform\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-imagesHoverTransform\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"imagesHoverTransform\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,4,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-imagesHoverTransform\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"productsImagesHoverTransform\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"font size for product name\\\",\\\"productsNameFontSize\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsNameFontSize\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"productsNameFontSize\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,4,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsNameFontSize\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"productsNameFontSize\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"on sale tag display position\\\",\\\"onSaleTagDisplayPosition\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-onSaleTagDisplayPosition\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"onSaleTagDisplayPosition\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,4,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-onSaleTagDisplayPosition\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"onSaleTagDisplayPosition\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.hasCustomProductsDisplaySettings\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"hasCustomLimitedQtyPerPersonText\\\",[23,1,[]],\\\"has custom limited qty per person text\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"hasCustomLimitedQtyPerPersonText\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,3,[\\\"_data\\\",\\\"hasCustomLimitedQtyPerPersonText\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showCustomLimitedQtyPerPersonTextSettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"customLimitedQtyPerPersonText\\\",[23,1,[]],\\\"custom limited qty per person text\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"limited qty per person\\\",true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"customLimitedQtyPerPersonText\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"limited qty per person\\\",false,[23,3,[\\\"_data\\\",\\\"customLimitedQtyPerPersonText\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showBackToShoppingButton\\\",[23,1,[]],\\\"show back to shopping button\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsProductsDisplaySettings\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"showBackToShoppingButton\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,3,[\\\"_data\\\",\\\"showBackToShoppingButton\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"stylesCustomizations_group\\\",[23,5,[]],\\\"customizations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],\\\"showCustomizationsPriceType\\\",\\\"customizations price behavior\\\",[23,3,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-show-customizations-price-type\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"showCustomizationsPriceType\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"stylesSettings_group\\\",[23,5,[]],\\\"button styles\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,1,[]],\\\"useDefaultsVariantSelectorStyle\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@ontoggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],\\\"use defaults from settings\\\",[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsVariantSelectorStyle\\\"]]],null]],null],false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsVariantSelectorStyle\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsVariantSelectorStyle\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\"],[[23,1,[]],\\\"variantSelectorStyle\\\",\\\"variant selector style\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-variantSelectorStyle\\\"]],[23,5,[]],true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"variantSelectorStyle\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\"],[[23,1,[]],\\\"variantSelectorStyle\\\",\\\"variant selector style\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-variantSelectorStyle\\\"]],[23,5,[]],true,[23,3,[\\\"_data\\\",\\\"variantSelectorStyle\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\"],[[23,1,[]],\\\"cartBtnStyle\\\",\\\"cart button style\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-cartBtnStyle\\\"]],[23,5,[]],true,[23,3,[\\\"_data\\\",\\\"cartBtnStyle\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"faqSettings_group\\\",[23,5,[]],\\\"faqs display\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"showFaqsOnFooter\\\",\\\"show faqs on footer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,3,[\\\"_data\\\",\\\"showFaqsOnFooter\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/style-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"n6le0QO1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"&default\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,3,[]],[23,3,[\\\"subTabs\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-settings-editor-editor-sub-panels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,3,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"isDisabled\\\",\\\"isDuplicate\\\",\\\"isCopy\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isNew\\\",\\\"model\\\",\\\"tab\\\",\\\"parentTab\\\",\\\"campaignFilters\\\",\\\"onLoadShopSource\\\",\\\"onUnloadShopSource\\\",\\\"onLoadCheckoutForm\\\",\\\"onUnloadCheckoutForm\\\",\\\"onSelectTransporter\\\",\\\"transporterModel\\\",\\\"refreshModel\\\",\\\"updateSenderDetails\\\",\\\"openTab\\\",\\\"formFilters\\\",\\\"generateRandomPassword\\\",\\\"checkValidStartAndEndDateZ\\\",\\\"resourceList\\\",\\\"allowPickup\\\",\\\"allowedPaymentMethods\\\",\\\"defaultShippingZonesIds\\\",\\\"selectedShippingZonesIds\\\",\\\"allowedDispatchProcesses\\\",\\\"transportersList\\\",\\\"transporterAccounts\\\",\\\"addDispatchProcess\\\",\\\"removeDispatchProcess\\\",\\\"unloadTransporter\\\",\\\"searchContactsTask\\\",\\\"setTransporterAccountLabel\\\",\\\"fetchTransporterTask\\\"],[[24,[\\\"isDisabled\\\"]],[24,[\\\"isDuplicate\\\"]],[24,[\\\"isCopy\\\"]],[23,6,[]],[23,5,[]],[24,[\\\"isNew\\\"]],[23,4,[]],[23,1,[]],[23,3,[]],[23,0,[\\\"campaignFilters\\\"]],[23,0,[\\\"loadShopSource\\\"]],[23,0,[\\\"unloadShopSource\\\"]],[23,0,[\\\"loadCheckoutForm\\\"]],[23,0,[\\\"unloadCheckoutForm\\\"]],[23,0,[\\\"onSelectTransporter\\\"]],[23,0,[\\\"transporterModel\\\"]],[23,0,[\\\"refreshModel\\\"]],[23,0,[\\\"updateSenderDetails\\\"]],[23,0,[\\\"openTab\\\"]],[23,0,[\\\"formFilters\\\"]],[23,0,[\\\"generateRandomPassword\\\"]],[23,0,[\\\"checkValidStartAndEndDateZ\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-settings-editor-editor-sub-panels\\\"]],[23,0,[\\\"allowPickup\\\"]],[23,0,[\\\"allowedPaymentMethods\\\"]],[23,0,[\\\"defaultShippingZonesIds\\\"]],[23,0,[\\\"selectedShippingZonesIds\\\"]],[23,0,[\\\"allowedDispatchProcesses\\\"]],[23,0,[\\\"transportersList\\\"]],[23,0,[\\\"transporterAccounts\\\"]],[23,0,[\\\"addDispatchProcess\\\"]],[23,0,[\\\"removeDispatchProcess\\\"]],[23,0,[\\\"unloadTransporter\\\"]],[23,0,[\\\"searchContactsTask\\\"]],[23,0,[\\\"setTransporterAccountLabel\\\"]],[23,0,[\\\"fetchTransporterTask\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/settings-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XowdrKbH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"salesPerson\\\",\\\"@errors\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@onEditItem\\\",\\\"@onEdit\\\",\\\"@onDisplayItem\\\",\\\"@onAddItem\\\",\\\"@isEditing\\\",\\\"@isNew\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,4,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@tabContentOnly\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,6,[]],[23,6,[\\\"subTabs\\\"]],[23,7,[]],[23,0,[\\\"editingPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,6,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,4,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"channels/shop/shop-status\\\",[],[[\\\"@model\\\",\\\"@tagClassNames\\\"],[[23,4,[]],\\\"\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,4,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"dateRange\\\",[[23,4,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,4,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"shopUrl\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[28,\\\"concat\\\",[[23,0,[\\\"config\\\",\\\"APP\\\",\\\"shopUrl\\\"]],\\\"/\\\",[28,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"shopUrlPrefix\\\"]],[28,\\\"concat\\\",[[23,0,[\\\"settings\\\",\\\"shopUrlPrefix\\\"]],\\\"-\\\"],null]],null],[23,4,[\\\"_data\\\",\\\"shopUrl\\\"]]],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"msgs/deleted-error\\\",[],[[\\\"@model\\\"],[[23,4,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,6,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"allowCancel\\\",\\\"allowWebBuilder\\\",\\\"channelsShopAdapterName\\\",\\\"channelsShopKey\\\",\\\"dataTabContainer\\\",\\\"errors\\\",\\\"hasNoShop\\\",\\\"hasWebBuilder\\\",\\\"headerBottom\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"isRunning\\\",\\\"isEditing\\\",\\\"model\\\",\\\"onAddItem\\\",\\\"onAssignSalesPerson\\\",\\\"onCancel\\\",\\\"onDisplayItem\\\",\\\"onEdit\\\",\\\"onEditItem\\\",\\\"onLoadTransporter\\\",\\\"onSaveTask\\\",\\\"onSetAsDefaultImageTask\\\",\\\"onToggleCommissionMethod\\\",\\\"onUnassignSalesPerson\\\",\\\"onUnloadTransporter\\\",\\\"parentTab\\\",\\\"resourceList\\\",\\\"showWebBuilder\\\",\\\"tab\\\",\\\"tabContentOnly\\\",\\\"transportersList\\\",\\\"website\\\"],[true,true,\\\"channels/shop/campaigns\\\",[23,4,[\\\"_data\\\",\\\"_key\\\"]],\\\"campaigns\\\",[23,3,[]],[23,4,[\\\"_data\\\",\\\"_key\\\"]],true,[23,0,[\\\"headerBottom\\\"]],[23,13,[]],[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,12,[]],[23,4,[]],[23,11,[]],[28,\\\"action\\\",[[23,0,[]],\\\"assignSalesPerson\\\"],null],[23,5,[]],[23,10,[]],[23,9,[]],[23,8,[]],[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\",[23,4,[]]],null],[28,\\\"perform\\\",[[24,[\\\"saveTask\\\"]]],null],[24,[\\\"onSetAsDefaultImageTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleCommissionMethod\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unassignSalesPerson\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadTransporter\\\",[23,4,[]]],null],[23,6,[]],[23,0,[\\\"resourceList\\\"]],false,[23,1,[]],[23,7,[]],[24,[\\\"transportersList\\\"]],[23,4,[]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar-right hidden\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__footer-spacer\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"activeTab\\\",\\\"withoutPanelFooter\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,4,[]],[24,[\\\"hasErrors\\\"]],[23,3,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[23,4,[\\\"dateError\\\"]]],null],[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/basic-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, R_, _ramdaAdjunct) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\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 ChannelsShopCampaignsCampaignsBasicEditorInformationEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('modals'), _dec4 = Ember.inject.service('products'), _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember.computed('args.model._data.bulkDiscountIds.[]', 'args.model._data.bulkDiscountId'), _dec11 = Ember.computed('args.model._data.productSync.[]'), _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _class = class ChannelsShopCampaignsCampaignsBasicEditorInformationEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaignsProducts\", _descriptor2, this);\n      _initializerDefineProperty(this, \"modalsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"productsList\", _descriptor7, this);\n      _initializerDefineProperty(this, \"productsFilters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"productsFiltersAdapterName\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showPricelistsAfterChangeItem\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isShowPriceModal\", _descriptor1, this);\n      this.crud.addLists(this, ['users', 'toggles/auto', 'toggles/onOff', 'channels/shop/campaigns/deliveryDateSettings', 'channels/shop/campaigns/deliveryDateSettingsItems', 'channels/shop/campaigns/overSalesLimitedQtyStatuses', 'channels/shop/campaigns/lists/itemEditorSubPanels', 'products/lists/tags', 'products/lists/display-tags', 'products/lists/product-display-position', 'extensions/apps/tw/invoicingAuto', 'shipping/feeType', 'commissions/methods', 'statuses', 'products/lists/pageImportBtnSubPanels', 'products/lists/sync', 'admin/members/lists/plans']);\n      const isAutomations = this.args?.isAutomations;\n      if (isAutomations) {\n        this.crud.addLists(this, ['channels/shop/campaigns/automations/statuses']);\n      } else {\n        this.crud.addLists(this, ['channels/shop/campaigns/statuses']);\n      }\n      this.productsList = [];\n      let excludes = [];\n      if (isAutomations) {\n        excludes = [{\n          key: 'setType',\n          value: 'isSetWithChoices'\n        }, {\n          key: 'setType',\n          value: 'hasVariants'\n        }];\n      }\n      const productsFilters = this.search.setupFilters({\n        adapterName: this.productsFiltersAdapterName,\n        defaultFiltersData: {\n          resultsProperty: 'productsList',\n          excludes,\n          count: 20,\n          page: 1\n        }\n      });\n      this.productsFilters = productsFilters;\n      const automationModel = this.args?.automationModel || {};\n      const isAutomationMustAdd = automationModel?.isAutoAdd || false;\n      if (isAutomationMustAdd) {\n        const model = this.args?.model || {};\n        model.setData('priceDiscounted', '0');\n        model.setData('onSale', 'on');\n        if (model.getData('isSet') || model.getData('isSetNew')) {\n          const setDetails = model?.getData('setDetails') || [];\n          R.forEach(detailChild => {\n            detailChild.setData('priceDiscounted', '0');\n            detailChild.setData('priceFinal', '0');\n            detailChild.setData('onSale', 'on');\n          })(setDetails);\n        }\n      }\n    }\n    get isPriceReadonly() {\n      const isReadonly = this.args?.isReadonly;\n      if (isReadonly) {\n        return isReadonly;\n      }\n      const model = this.args?.model || {};\n      if (model?._data?.isSet) {\n        if (model?._data?.isSetNew) {\n          return true;\n        }\n        return false;\n      }\n      if (model?._data?.isSetWithChoices) {\n        return true;\n      }\n      return false;\n    }\n\n    /**\n     * Tags value for multiple-BD mode. Explicit `bulkDiscountIds` (including []) is\n     * authoritative — same as API normalize. Fall back to legacy scalar only when\n     * the array key is missing (e.g. in-memory rows right after migrate).\n     * @returns {string[]}\n     */\n    get displayedBulkDiscountIds() {\n      const detailData = this.args.model?._data || {};\n      if (Object.prototype.hasOwnProperty.call(detailData, 'bulkDiscountIds')) {\n        return _ramdaAdjunct.default.ensureArray(detailData.bulkDiscountIds || []);\n      }\n      const legacyBulkDiscountId = detailData.bulkDiscountId;\n      if (_ramdaAdjunct.default.isNilOrEmpty(legacyBulkDiscountId)) {\n        return [];\n      }\n      return [legacyBulkDiscountId];\n    }\n    get isShowPriceSelectorDialog() {\n      return this.args?.showPricelists || this?.showPricelistsAfterChangeItem || false;\n    }\n    get campaignOrAutomationModel() {\n      const isAutomations = this.args?.isAutomations || false;\n      if (isAutomations) {\n        return this.args?.automationModel;\n      }\n      return this.args.campaign;\n    }\n    get showItemInput() {\n      if (this.args.isAutomations) {\n        return true;\n      }\n      const productSync = this.args?.model?._data?.productSync || [];\n      if (R.includes('item', productSync)) {\n        return false;\n      }\n      return true;\n    }\n    *searchProductsTask({\n      adapterName = 'products',\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        // const model = this.get('model')\n        // const contact = model.getData('contact')\n        // const contactKey = model.getData('contactKey')\n        // const docType = this.get('docType')\n        // const docName = this.get('docName')\n        // const salesPersons = this.get('hasSalesPersons');\n        // get search term\n        const campaign = this?.args?.campaign || {};\n        const campaignKey = campaign?._data?._key;\n        const filters = this.productsFilters;\n        if (this?.args?.isAutomations) {\n          const automationModel = this?.args?.automationModel || {};\n          const automationKey = automationModel?._data?._key;\n          filters.setData('isAutomation', true);\n          filters.setData('automationKey', automationKey);\n        } else {\n          filters.setData('isAutomation', false);\n        }\n\n        // filters.setData('query', query)\n        let results = [];\n        if (campaignKey) {\n          results = yield this.crud.searchInputTask.perform({\n            adapterName,\n            appendPath: `/campaigns/${campaignKey}`,\n            filters\n          }, query);\n          this.productsList = results;\n        }\n        return results;\n      }\n    }\n    *selectProductTask(campaignOrAutomationModel, model, selectedProduct) {\n      yield this.campaignsProducts.loadProductTask.perform(campaignOrAutomationModel, model, selectedProduct);\n      Ember.set(this, 'showPricelistsAfterChangeItem', true);\n    }\n    *fetchPriceHistoryTask(itemModel = {}) {\n      const campaign = this.args?.campaign || {};\n      const automationModel = this.args?.automationModel || {};\n      const isAutomations = this.args?.isAutomations || false;\n      let item = this.args?.model || {};\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(itemModel)) {\n        item = itemModel;\n      }\n      const product = this.args?.product || {};\n      const campaignKey = campaign?._data?._key;\n      const itemKey = item?._data?.itemKey;\n      const isSet = item?._data?.isSet || item?._data?.isSetNew || false;\n      const isSetWithChoices = item?._data?.isSetWithChoices || false;\n      const thenAction = automationModel?._data?.thenAction;\n      const priceHistory = yield this.campaignsProducts.fetchHistoryCampaignsTask.perform(product, itemKey, isSet, isSetWithChoices, campaignKey, {\n        isAutomation: isAutomations,\n        thenAction\n      });\n      return priceHistory;\n    }\n    resetItem(model) {\n      model.resetDetail();\n    }\n    showPriceModal(\n      /* modalDialogComponent */\n    ) {\n      this.isShowPriceModal = true;\n    }\n    updateOnSale(model) {\n      if (model.isStandardProduct) {\n        model.setData('onSale', 'off');\n        return;\n      }\n      let isOnSale = model?.isOnSale;\n      if (isOnSale === true) {\n        isOnSale = 'on';\n      } else {\n        isOnSale = 'off';\n      }\n      model.setData('onSale', isOnSale);\n      const priceDiscounted = model.getData('priceDiscounted') || '';\n      if (isOnSale === 'on' && !priceDiscounted) {\n        const activeOnSaleSchedules = R.pipe(R.pathOr([], ['_data', 'onSaleSchedules']), R.find(R.propEq('isActive', true)))(model) || {};\n        const scheduledPriceDiscounted = activeOnSaleSchedules?._data?.priceDiscounted || '0';\n        model.setData('priceDiscounted', scheduledPriceDiscounted);\n      }\n    }\n    toggleIsSetNew(child, model) {\n      child.setData('isSetNew', true);\n      model.recalculatePriceForSet(child, model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaignsProducts\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"modalsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"productsList\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"productsFilters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"productsFiltersAdapterName\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'products/filters';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"showPricelistsAfterChangeItem\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"isShowPriceModal\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"displayedBulkDiscountIds\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"displayedBulkDiscountIds\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showItemInput\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"showItemInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchProductsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchProductsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectProductTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"selectProductTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchPriceHistoryTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchPriceHistoryTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetItem\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"resetItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showPriceModal\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"showPriceModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateOnSale\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"updateOnSale\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsSetNew\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsSetNew\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/basic-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uZM1arlh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"productDisplayTag\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@campaign\\\",\\\"@automationModel\\\",\\\"@product\\\",\\\"@isAutomations\\\",\\\"@item\\\",\\\"@validationError\\\",\\\"@disabled\\\",\\\"@priceHistoryData\\\",\\\"@onlyTemplate\\\",\\\"@showPricelists\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\",\\\"@tab\\\"],[\\\"basic\\\",false,[28,\\\"if\\\",[[23,24,[]],[23,24,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"campaignsDetails\\\",[23,23,[]],[23,10,[]],[23,22,[]],[23,21,[]]]]]],null],true,[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,8,[]]],null],[28,\\\"and\\\",[[23,9,[\\\"_data\\\",\\\"isSet\\\"]],[28,\\\"not\\\",[[23,9,[\\\"_data\\\",\\\"isSetNew\\\"]]],null]],null]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"is-warning\\\",\\\"this product set is outdated, click here to change it to the new type (set item prices individually)\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleIsSetNew\\\"]],[23,9,[]],[23,9,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,8,[]],[28,\\\"and\\\",[[23,9,[\\\"_data\\\",\\\"isSet\\\"]],[28,\\\"not\\\",[[23,9,[\\\"_data\\\",\\\"isSetNew\\\"]]],null]],null]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"this product set is outdated\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],[28,\\\"if\\\",[[24,[\\\"isAutomations\\\"]],\\\"basicInformationAutomations_group\\\",\\\"basicInformation_group\\\"],null],[23,1,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"isOutOfSync\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInputClassNames\\\"],[[23,1,[]],\\\"\\\",[22,\\\"errors\\\"],\\\"isOutOfSyncTag\\\",\\\"u-display-block\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"isOutOfSync\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInputClassNames\\\"],[[23,1,[]],\\\"\\\",[22,\\\"errors\\\"],\\\"isOutOfSyncMsg\\\",\\\"u-display-block\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[\\\"this campaign detail is currently not online because it is out of sync. please update the product and make sure there is nothing wrong\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"formInputClassNames\\\"],[[23,1,[]],\\\"status\\\",[24,[\\\"errors\\\"]],\\\"status\\\",\\\"u-display-block\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[23,9,[\\\"statusClass\\\"]],true,[23,8,[]],true,[28,\\\"if\\\",[[24,[\\\"isAutomations\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-automations-statuses\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]]],null],\\\"_data.value\\\",\\\"_data.label\\\",[23,9,[\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[[23,8,[]],\\\"far fa-clock\\\",true,\\\"product schedules\\\",\\\"\\\",\\\"schedules\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"status-schedules\\\",[],[[\\\"@model\\\",\\\"@schedules\\\",\\\"@hasSchedules\\\",\\\"@listsStatuses\\\",\\\"@type\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@onCloseDialogAction\\\"],[[23,9,[]],[23,9,[\\\"_data\\\",\\\"productSchedules\\\"]],[23,9,[\\\"_data\\\",\\\"hasProductSchedules\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],\\\"productSchedules\\\",[23,8,[]],[23,7,[]],[23,6,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"label\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"status\\\",\\\"details.status\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,14,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"hasProductSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width u-margin-top-10\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"activeProductSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"current schedule\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,9,[\\\"activeProductSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]]],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,9,[\\\"activeProductSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,9,[\\\"nextProductSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"next schedule\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,9,[\\\"nextProductSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]]],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,9,[\\\"nextProductSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@allowedForFeatures\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isAllowProductSync\\\",\\\"syncProducts\\\",[23,1,[]],\\\"sync product properties\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[true,[23,8,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-sync\\\"]],\\\"list-selector--horizontal\\\",[23,9,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",false,\\\"_data.productSync\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showItemInput\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"isRequired\\\"],[[23,1,[]],\\\"name\\\",[23,7,[]],\\\"item\\\",true]],{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,9,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,9,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"inputPvtClassNames\\\",\\\"placeholder\\\",\\\"allowCustom\\\",\\\"disallowDeselect\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"resultsItemComponent\\\",\\\"value\\\",\\\"filters\\\",\\\"hasPagination\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"autofocus\\\",\\\"selectedItemValueKey\\\",\\\"hasSelectedKey\\\",\\\"hasSelected\\\",\\\"prependHasSelected\\\",\\\"hasSelectedIcon\\\",\\\"hasAddedItemKey\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onPaginationTask\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[\\\"table-form__input table-form__input--120\\\",\\\"search products\\\",false,true,[23,0,[\\\"productsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"products/search-results-item\\\",[23,9,[\\\"_data\\\",\\\"itemCode\\\"]],[23,0,[\\\"productsFilters\\\"]],true,[23,8,[]],[23,8,[]],true,\\\"_data.code\\\",\\\"_data._key\\\",[23,9,[\\\"_data\\\",\\\"itemKey\\\"]],[23,9,[\\\"product\\\",\\\"_data\\\",\\\"name\\\"]],\\\"fas fa-bookmark\\\",\\\"_data.campaignDetail.campaignDetailKey\\\",[23,0,[\\\"searchProductsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"searchProductsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,9,[\\\"_data\\\",\\\"itemCode\\\"]]]]]],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"selectProductTask\\\"]],[23,0,[\\\"campaignOrAutomationModel\\\"]],[23,9,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"resetItem\\\"]],[23,9,[]]],null]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"errors\\\",\\\"context\\\",\\\"isRequired\\\"],[[23,1,[]],[23,7,[]],\\\"item\\\",true]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"contains\\\",[\\\"item\\\",[23,9,[\\\"_data\\\",\\\"productSync\\\"]]],null],[23,8,[]]],null],true,false],null],[23,9,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"index\\\",[23,1,[]],true,\\\"display order\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"input--80\\\",[23,8,[]],[23,9,[\\\"_data\\\",\\\"index\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"isBigOrdrPlans\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"plan\\\",[23,1,[]],\\\"plan\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@allowDeselect\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@value\\\"],[false,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-members-lists-plans\\\"]],false,[23,8,[]],[23,8,[]],[23,9,[\\\"_data\\\",\\\"bigOrdrPlan\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,19,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"price_group\\\",[23,1,[]],\\\"price\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"isRequired\\\"],[[23,1,[]],\\\"inclusive price\\\",[23,7,[]],\\\"price\\\",true]],{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,9,[\\\"_data\\\",\\\"isSetWithChoices\\\"]],[28,\\\"and\\\",[[23,9,[\\\"_data\\\",\\\"isSet\\\"]],[23,9,[\\\"_data\\\",\\\"isSetNew\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"channels/shop/items/item-price\\\",[],[[\\\"@item\\\"],[[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"products/price-selectors/price-selector-campaigns\\\",null,[[\\\"itemKey\\\",\\\"campaignDetailKey\\\",\\\"item\\\",\\\"campaign\\\",\\\"isDisabled\\\",\\\"priceHistoryData\\\",\\\"product\\\",\\\"docType\\\",\\\"isTaxExclusive\\\",\\\"isRunning\\\",\\\"onFetchPriceHistoryTask\\\",\\\"onSelect\\\",\\\"isAutomations\\\"],[[23,9,[\\\"_data\\\",\\\"itemKey\\\"]],[23,9,[\\\"_data\\\",\\\"_key\\\"]],[23,9,[]],[23,0,[\\\"campaignOrAutomationModel\\\"]],[23,8,[]],[23,18,[]],[23,13,[]],\\\"sales\\\",false,[23,0,[\\\"campaignsProducts\\\",\\\"fetchHistoryCampaignsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchPriceHistoryTask\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[23,0,[\\\"campaignsProducts\\\",\\\"setDetailPrice\\\"]],[23,0,[\\\"campaignOrAutomationModel\\\"]],[23,9,[]],[23,9,[]]],null],[23,14,[]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@isRunning\\\",\\\"@value\\\"],[[23,0,[\\\"isPriceReadonly\\\"]],[23,0,[\\\"campaignsProducts\\\",\\\"fetchHistoryCampaignsTask\\\",\\\"isRunning\\\"]],[23,9,[\\\"_data\\\",\\\"price\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"products/price-selectors/price-selector-campaigns\\\",null,[[\\\"itemKey\\\",\\\"campaignDetailKey\\\",\\\"item\\\",\\\"campaign\\\",\\\"isDisabled\\\",\\\"priceHistoryData\\\",\\\"product\\\",\\\"docType\\\",\\\"isTaxExclusive\\\",\\\"isRunning\\\",\\\"onFetchPriceHistoryTask\\\",\\\"onSelect\\\",\\\"isAutomations\\\"],[[23,9,[\\\"_data\\\",\\\"itemKey\\\"]],[23,9,[\\\"_data\\\",\\\"_key\\\"]],[23,9,[]],[23,0,[\\\"campaignOrAutomationModel\\\"]],[23,8,[]],[23,18,[]],[23,13,[]],\\\"sales\\\",false,[23,0,[\\\"campaignsProducts\\\",\\\"fetchHistoryCampaignsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchPriceHistoryTask\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[23,0,[\\\"campaignsProducts\\\",\\\"setDetailPrice\\\"]],[23,0,[\\\"campaignOrAutomationModel\\\"]],[23,9,[]],[23,9,[]]],null],[23,14,[]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,9,[\\\"_data\\\",\\\"isSetWithChoices\\\"]],[28,\\\"and\\\",[[23,9,[\\\"_data\\\",\\\"isSet\\\"]],[23,9,[\\\"_data\\\",\\\"isSetNew\\\"]]],null]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"isRequired\\\"],[[23,1,[]],[28,\\\"unless\\\",[[28,\\\"or\\\",[[23,9,[\\\"_data\\\",\\\"isSetWithChoices\\\"]],[28,\\\"and\\\",[[23,9,[\\\"_data\\\",\\\"isSet\\\"]],[23,9,[\\\"_data\\\",\\\"isSetNew\\\"]]],null]],null],\\\"inclusive discounted price\\\"],null],[23,7,[]],\\\"priceDiscounted\\\",true]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"isRunning\\\",\\\"value\\\"],[[28,\\\"or\\\",[[23,8,[]],[23,12,[\\\"isAutoAdd\\\"]]],null],[23,0,[\\\"campaignsProducts\\\",\\\"fetchHistoryCampaignsTask\\\",\\\"isRunning\\\"]],[23,9,[\\\"_data\\\",\\\"priceDiscounted\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@translateDescription\\\"],[\\\"on sale\\\",[23,7,[]],\\\"onSale\\\",[23,1,[]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,9,[\\\"_data\\\",\\\"hasOnSaleSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[28,\\\"or\\\",[[23,8,[]],[23,12,[\\\"isAutoAdd\\\"]]],null],[23,9,[\\\"_data\\\",\\\"onSale\\\"]],\\\"on\\\",\\\"off\\\"]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@label\\\"],[[23,17,[]],\\\"far fa-clock\\\",true,\\\"on sale schedules\\\",\\\"schedules\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"status-schedules\\\",[],[[\\\"@model\\\",\\\"@schedules\\\",\\\"@hasSchedules\\\",\\\"@type\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@onCloseDialogAction\\\",\\\"@isDateOnly\\\",\\\"@onAfterSave\\\",\\\"@hasCustomComponent\\\",\\\"@customComponent\\\",\\\"@isStandardProduct\\\"],[[23,9,[]],[23,9,[\\\"_data\\\",\\\"onSaleSchedules\\\"]],[23,9,[\\\"_data\\\",\\\"hasOnSaleSchedules\\\"]],\\\"onSaleSchedules\\\",[23,8,[]],[23,7,[]],[23,5,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"updateOnSale\\\"]],[23,9,[]]],null],true,\\\"channels/shop/campaigns/campaigns-item-editor/onsale-schedules\\\",[23,9,[\\\"isStandardProduct\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"hasOnSaleSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table has-text-small\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"activeOnSaleSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"current schedule\\\"],null],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"dateRange\\\",[[23,9,[\\\"activeOnSaleSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],[23,9,[\\\"activeOnSaleSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"isStandardProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"currency\\\",[[23,9,[\\\"activeOnSaleSchedule\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[\\\"activeOnSaleSchedule\\\",\\\"_data\\\",\\\"isOnSale\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,9,[\\\"nextOnSaleSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"next schedule\\\"],null],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"dateRange\\\",[[23,9,[\\\"nextOnSaleSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],[23,9,[\\\"nextOnSaleSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"isStandardProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"currency\\\",[[23,9,[\\\"nextOnSaleSchedule\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[\\\"nextOnSaleSchedule\\\",\\\"_data\\\",\\\"isOnSale\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[[23,1,[]],\\\"tax on sales\\\",[23,7,[]],\\\"taxRate\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,8,[]],[28,\\\"percentage\\\",[[23,9,[\\\"_data\\\",\\\"salesTaxRate\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/is-set\\\",null,[[\\\"tab\\\",\\\"automationModel\\\",\\\"campaign\\\",\\\"campaignOrAutomationModel\\\",\\\"formInitData\\\",\\\"hasSalesPersons\\\",\\\"parentModel\\\",\\\"item\\\",\\\"validationError\\\",\\\"isReadonly\\\",\\\"fetchPriceHistoryTask\\\"],[[23,10,[]],[23,12,[]],[23,11,[]],[23,0,[\\\"campaignOrAutomationModel\\\"]],[23,1,[]],[23,11,[\\\"_data\\\",\\\"salesPersons\\\"]],[23,9,[]],[23,9,[]],[23,16,[]],[23,8,[]],[23,0,[\\\"fetchPriceHistoryTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"isSetWithChoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/is-set-with-choices\\\",null,[[\\\"tab\\\",\\\"campaign\\\",\\\"formInitData\\\",\\\"parentModel\\\",\\\"item\\\",\\\"onToggleIsSetNew\\\",\\\"validationError\\\",\\\"isPriceReadonly\\\",\\\"isReadonly\\\",\\\"fetchPriceHistoryTask\\\"],[[23,10,[]],[23,11,[]],[23,1,[]],[23,9,[]],[23,9,[]],[28,\\\"fn\\\",[[23,0,[\\\"toggleIsSetNew\\\"]]],null],[23,16,[]],[23,0,[\\\"isPriceReadonly\\\"]],[23,8,[]],[23,0,[\\\"fetchPriceHistoryTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"hasVariants\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/has-variants\\\",null,[[\\\"tab\\\",\\\"campaign\\\",\\\"formInitData\\\",\\\"item\\\",\\\"isSetPriceOnBundle\\\",\\\"validationError\\\",\\\"onRecalculatePrice\\\",\\\"isReadonly\\\"],[[23,10,[]],[23,11,[]],[23,1,[]],[23,9,[]],false,[23,16,[]],[28,\\\"fn\\\",[[23,9,[\\\"recalculatePrice\\\"]],[23,15,[]]],null],[23,8,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,20,[]],[23,0,[\\\"showPricelistsAfterChangeItem\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@onInit\\\",\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@modalSize\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"showPriceModal\\\"]]],null],[23,0,[\\\"isShowPriceModal\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"modalsService\\\",\\\"closeDialog\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"prop\\\"],[[23,0,[]],\\\"isShowPriceModal\\\"]]]],null],false,[23,9,[\\\"_data\\\",\\\"item\\\"]],false,\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"channels/shop/campaigns/campaigns-item-editor/price-selector-dialog\\\",[],[[\\\"@model\\\",\\\"@setDetailPrice\\\",\\\"@campaign\\\",\\\"@product\\\",\\\"@onCloseDialogAction\\\",\\\"@onSelect\\\",\\\"@automationModel\\\",\\\"@isAutomations\\\",\\\"@onFetchPriceHistoryTask\\\"],[[23,9,[]],[23,0,[\\\"campaignsProducts\\\",\\\"setDetailPrice\\\"]],[23,11,[]],[23,13,[]],[23,4,[]],[28,\\\"action\\\",[[23,0,[]],[23,0,[\\\"campaignsProducts\\\",\\\"setDetailPrice\\\"]],[23,0,[\\\"campaignOrAutomationModel\\\"]],[23,9,[]],[23,9,[]]],null],[23,12,[]],[23,14,[]],[28,\\\"perform\\\",[[23,0,[\\\"fetchPriceHistoryTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,12,[\\\"isAutoAdd\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"automationsQty_group\\\",[23,1,[]],\\\"qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"errors\\\",\\\"label\\\",\\\"context\\\"],[[23,1,[]],[23,7,[]],\\\"qty\\\",\\\"automationQty\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"automationQty\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,12,[\\\"isAutoAdd\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"limits_group\\\",[23,1,[]],\\\"limit sales qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"errors\\\",\\\"label\\\",\\\"context\\\"],[[23,1,[]],[23,7,[]],\\\"limited qty per person\\\",\\\"personLimitedQty\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"personLimitedQty\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"uploads_group\\\",[23,1,[]],\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\"],[\\\"images\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,10,[]],\\\"auto\\\",40,true,true,true,[23,9,[]],\\\"products\\\",[23,9,[\\\"_data\\\",\\\"itemKey\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"tags_group\\\",[23,1,[]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"campaign detail product tags\\\",[23,7,[]],\\\"campaignDetailProductTags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,8,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@adapterName\\\",\\\"@legend\\\",\\\"@translate\\\",\\\"@tab\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"products/lists/tags\\\",\\\"tags\\\",false,[23,10,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,9,[]],true,\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],\\\"_data._key\\\",\\\"_data.campaignDetailProductTags\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[23,9,[\\\"_data\\\",\\\"campaignDetailProductTags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"contains\\\",[\\\"productDisplayTags\\\",[23,9,[\\\"_data\\\",\\\"productSync\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\"],[\\\"display tags\\\",[23,1,[]],\\\"productDisplayTags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,8,[]],\\\"fas fa-plus\\\",\\\"add display tags\\\",[28,\\\"fn\\\",[[23,9,[\\\"addProductDisplayTags\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"productDisplayTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-v-align-middle\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"position\\\"],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"display tags\\\"],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,9,[\\\"_data\\\",\\\"productDisplayTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\"],[\\\"productDisplayTags.position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-product-display-position\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,8,[]],true,[23,2,[\\\"_data\\\",\\\"position\\\"]]]]],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\"],[\\\"productDisplayTags.tag\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,8,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@tab\\\",\\\"@translate\\\"],[\\\"products/lists/display-tags\\\",\\\"display-tags/display-tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-display-tags\\\"]],[23,2,[]],false,\\\"_data._key\\\",\\\"_data.tag\\\",[23,10,[]],false]]],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"tag\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@classNames\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"u-margin-left-10\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-display-tags\\\"]],\\\"_data._key\\\",false,[23,2,[\\\"_data\\\",\\\"tag\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[23,8,[]],\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[23,9,[\\\"removeProductDisplayTag\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"bulkDiscounts_group\\\",[23,1,[]],\\\"bulk discount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@error\\\",\\\"@context\\\"],[[23,1,[]],\\\"bulk discount\\\",[23,7,[]],[28,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"isAllowMultipleBulkDiscounts\\\"]],\\\"bulkDiscountIds\\\",\\\"bulkDiscountId\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,11,[\\\"enabledBulkDiscountsList\\\"]],\\\"_data.bulkDiscountId\\\",\\\"_data.name\\\",false,[23,0,[\\\"displayedBulkDiscountIds\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,12,[\\\"isAutoAdd\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"lock_group\\\",[23,1,[]],\\\"lock\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"hide add to cart button with a password\\\",[23,7,[]],\\\"hasPassword\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"hasPassword\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"hasPassword\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"password (at least 4 characters)\\\",[23,7,[]],\\\"password\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"password\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"password button label\\\",[23,7,[]],\\\"passwordBtnLabel\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@placeholder\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"passwordBtnLabel\\\"]],\\\"unlock\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"password description\\\",[23,7,[]],\\\"passwordDescription\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"passwordDescription\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/basic-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/component\", [\"exports\", \"ramda\", \"client/mixins/crud\", \"ember-concurrency\", \"client/utils/nventor\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, R, _crud, _emberConcurrency, _nventor, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj; // import jQuery from 'jquery'\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    server: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    uploadcare: Ember.inject.service(),\n    productsService: Ember.inject.service('products'),\n    campaignsService: Ember.inject.service('channels/shop/campaigns'),\n    campaignsProducts: Ember.inject.service(),\n    big: Ember.inject.service(),\n    date: Ember.inject.service(),\n    tagName: 'div',\n    classNames: ['col-container'],\n    campaignFilters: null,\n    isEditing: false,\n    isNew: false,\n    translate: true,\n    allowUploads: true,\n    activeTemplateIndex: null,\n    productsFiltersAdapterName: 'products/filters',\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        if (this?.model?.isDirty) {\n          this.crud.cancelEditing({\n            adapterName: this?.model?.adapterName,\n            dirty: this?.model\n          });\n        }\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.initTask.perform();\n    },\n    initTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      tab.resetTabs();\n      this.set('model', null);\n      this.crud.addLists(this, ['users', 'toggles/auto', 'toggles/onOff', 'channels/shop/campaigns/deliveryDateSettings', 'channels/shop/campaigns/deliveryDateSettingsItems', 'channels/shop/campaigns/overSalesLimitedQtyStatuses', 'channels/shop/campaigns/lists/itemEditorSubPanels', 'products/lists/tags', 'products/lists/display-tags', 'products/lists/product-display-position', 'extensions/apps/tw/invoicingAuto', 'shipping/feeType', 'commissions/methods', 'statuses', 'products/lists/pageImportBtnSubPanels', 'products/lists/sync']);\n      if (this.isAutomations) {\n        this.crud.addLists(this, ['channels/shop/campaigns/automations/statuses']);\n      } else {\n        this.crud.addLists(this, ['channels/shop/campaigns/statuses']);\n      }\n      this.setupNew();\n      yield this.setupEditingTask.perform();\n      if (this.isReadonly) {\n        this.set('model', this.item);\n      }\n      const campaignFilters = this.campaignsService.getSearchFilters();\n      Ember.set(this, 'campaignFilters', campaignFilters);\n      Ember.set(this, 'selectedCampaign', this.campaign);\n      const templateModel = this.model.getData('templates').get('firstObject');\n      this.selectTemplate(templateModel);\n    }),\n    setupNew() {\n      const isNew = this.isNew;\n      if (isNew) {\n        const campaign = this.campaign;\n        const adapterName = this.campaignDetailAdapterName;\n        const model = this.crud.setupNewRecord({\n          adapterName\n        });\n        const master = campaign.getData('_key');\n        const overSalesLimitedQtyStatus = campaign.getData('overSalesLimitedQtyStatus');\n        model.setData('master', master);\n        model.setData('index', '');\n        model.setData('overSalesLimitedQtyStatus', overSalesLimitedQtyStatus);\n        if (this.isAutomations) {\n          this._setupIsAutomations(model);\n        } else {\n          this._setupIsCampaignDetail(model, campaign);\n        }\n        Ember.set(this, 'model', model);\n        if (this.loadProduct) {\n          this.campaignsProducts.loadProductTask.perform(campaign, model, this.loadProduct);\n        }\n      }\n    },\n    campaignOrAutomationModel: Ember.computed('isAutomations', 'campaign._data._key', function () {\n      const isAutomations = this.isAutomations || false;\n      if (isAutomations) {\n        return this.automationModel;\n      }\n      return this.campaign;\n    }),\n    subPanels: Ember.computed('crud.lists.{channels-shop-campaigns-lists-itemEditorSubPanels.[],products-lists-sync.[]}', 'model._data.productSync.[]', function () {\n      let subPanels = R_.dotPath('crud.lists.channels-shop-campaigns-lists-itemEditorSubPanels')(this) || [];\n      const isAutomations = this.isAutomations || false;\n      const productSync = this.model?._data?.productSync || [];\n      subPanels = R.filter(panel => {\n        if (panel?._data?.value === 'basic') {\n          return true;\n        }\n\n        // @TODO: remove this once limits for automations are implemented on the backend\n        if (panel?._data?.value === 'productLimits' && isAutomations) {\n          return false;\n        }\n        if (panel?._data?.value === 'customizations' && RA.isNilOrEmpty(this.model?._data?.customizations)) {\n          return false;\n        }\n        if (RA.isNilOrEmpty(panel?._data?.disallowedFor)) {\n          return true;\n        }\n        const isDisallowed = R_.containsAll(panel?._data?.disallowedFor || [], productSync);\n        if (isDisallowed) {\n          return false;\n        }\n        return true;\n      })(subPanels);\n      return subPanels;\n    }),\n    _setupIsAutomations(model) {\n      const automationModel = this.automationModel;\n      const automationKey = automationModel?._data?._key;\n      model.setData('automationKey', automationKey);\n      const campaign = this.campaign;\n      const campaignKey = campaign._data._key;\n      model.setData('master', campaignKey);\n    },\n    _setupIsCampaignDetail(model, campaign) {\n      const onSale = campaign.getData('onSale');\n      model.setData('onSale', onSale);\n    },\n    setupEditingTask: (0, _emberConcurrency.task)(function* () {\n      const campaign = this.campaign;\n      const isEditing = this.isEditing;\n      if (isEditing) {\n        const model = this.item;\n        const adapterName = this.campaignDetailAdapterName;\n        const dirty = this.crud.setupDirty({\n          adapterName,\n          model: model\n        });\n        if (model?._data?.status === this.constants.productsStatus.draft) {\n          dirty.setData('status', this.constants.productsStatus.active);\n        }\n        if (R_.dotPathEq('_data.isSetWithChoices', true, dirty)) {\n          R.forEach(choice => {\n            const isSetPriceOnBundle = R.pathOr('', ['_data', 'isSetPriceOnBundle'], choice);\n            if (!isSetPriceOnBundle) {\n              choice.setData('isSetPriceOnBundle', false);\n            }\n          })(_nventor.default.ensurePathOr([], ['_data', 'choices'], dirty));\n        }\n        const noIsSetNew = R.pipe(R_.dotPath('_data.isSetNew'), RA.isNilOrEmpty)(dirty);\n        if (R_.dotPathEq('_data.isSet', true, dirty) && noIsSetNew) {\n          dirty.setData('isSetNew', false);\n        }\n        yield this.campaignsProducts.reSyncProductTask.perform(this.campaignOrAutomationModel, dirty, model?._data?.itemKey);\n        const detailData = dirty.serialize();\n        const response = yield this.server.call('PATCH', 'api/protected/channels/shop/campaigns/details/limits/to-update', detailData);\n        let limitsSortedByItem = response?.data || [];\n        limitsSortedByItem = R.map(limit => {\n          const limitDirty = this.crud.setupNewRecord({\n            adapterName: 'channels/shop/campaigns/details/limits',\n            data: limit\n          });\n          limitDirty.product = limit.product;\n          return limitDirty;\n        })(limitsSortedByItem);\n        dirty.set('dirtyLimitsSortedByItem', limitsSortedByItem);\n        this.set('model', dirty);\n      }\n    }),\n    cancel() {\n      const model = this.model;\n      let dirtyLimitsSortedByItem = model?.dirtyLimitsSortedByItem ?? [];\n      R.map(limit => {\n        return this.crud.cancelEditing({\n          adapterName: 'channels/shop/campaigns/details/limits',\n          dirty: limit\n        });\n      })(dirtyLimitsSortedByItem);\n      const adapterName = this.campaignDetailAdapterName;\n      this.crud.cancelEditing({\n        adapterName,\n        dirty: model\n      });\n      if (this.onCancel) {\n        const originalModel = this.item;\n        this.onCancel(originalModel);\n      }\n    },\n    bulkDiscountSchedule: Ember.computed('model._data.bulkDiscountId', 'campaign._data.bulkDiscounts.@each.synced', function () {\n      const model = this.model;\n      const campaign = this?.campaign || {};\n      if (RA.isNilOrEmpty(model)) {\n        return {};\n      }\n      const bulkDiscountSchedule = model.getBulkDiscountSchedule({\n        campaign\n      });\n      return {\n        hasAnyActive: bulkDiscountSchedule.hasAnyActive,\n        hasIsActive: bulkDiscountSchedule.hasIsActive,\n        hasIsActiveNext: bulkDiscountSchedule.hasIsActiveNext,\n        isActive: bulkDiscountSchedule.isActive,\n        isActiveNext: bulkDiscountSchedule.isActiveNext\n      };\n    }),\n    _isEditing: Ember.computed('isEditing', function () {\n      // this is only needed for old components.\n      // isEditing may be passed in from outside the component and set inside the component.\n      // this will need to be refactored\n      if (this.isEditing) {\n        return true;\n      }\n      return false;\n    }),\n    isReadonly: Ember.computed('isEditing', 'isNew', 'saveTask.isRunning', function () {\n      if (this.get('saveTask.isRunning')) {\n        return true;\n      }\n      if (this.get('isEditing') === true) {\n        return false;\n      }\n      if (this.get('isNew') === true) {\n        return false;\n      }\n\n      // @TODO: QUICK FIX...\n      if (this?.model?.isDirty === true) {\n        return false;\n      }\n      return true;\n    }),\n    setDetailsData: Ember.computed('model._data.setDetails.@each._data', function () {\n      const detailsData = R.pipe(R_.dotPathOr([], 'model._data.setDetails'), R.map(detail => {\n        const data = R_.dotPathOr('', '_data')(detail);\n        return data;\n      }))(this);\n      return detailsData;\n    }),\n    _filterByProductTags(zone, itemTags) {\n      const allowedProductTagsInZone = R_.dotPathOr([], '_data.productTags')(zone);\n      const deniedProductTagsInZone = R_.dotPathOr([], '_data.denyProductTags')(zone);\n      let allowedItemsByProductTagsInZone = R_.containsAny(itemTags, allowedProductTagsInZone);\n      if (RA.isNilOrEmpty(allowedProductTagsInZone)) {\n        allowedItemsByProductTagsInZone = true;\n      }\n      let deniedItemsByProductTagsInZone = R_.containsAny(itemTags, deniedProductTagsInZone);\n      if (RA.isNilOrEmpty(deniedProductTagsInZone)) {\n        deniedItemsByProductTagsInZone = false;\n      }\n      return R.and(R.equals(true)(allowedItemsByProductTagsInZone), R.equals(false)(deniedItemsByProductTagsInZone));\n    },\n    // overSalesLimitedQtyStatusClass: computed('model._data.overSalesLimitedQtyStatus', function () {\n    //   const status = this.get('model._data.overSalesLimitedQtyStatus')\n    //   return this.get('productsService').getStatusClass(status)\n    // }),\n\n    afterReplaceRecordTask() {\n      if (this.onDone) {\n        this.onDone();\n      }\n    },\n    afterCreateRecordTask() {\n      if (this.onDone) {\n        this.onDone();\n      }\n    },\n    afterCancelEditing() {\n      if (this.onDone) {\n        this.onDone();\n      }\n    },\n    updateContent(template) {\n      this.model.setData('template', template);\n    },\n    selectTemplate(templateModel = false) {\n      const templates = this.model?._data?.templates || [];\n      let index = templates?.indexOf(templateModel) || 0;\n      if (index < 0) {\n        index = 0;\n      }\n      this.set('activeTemplateIndex', index);\n    },\n    saveAsDraftTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      model,\n      onAfter\n    }) {\n      model.setData('status', this.get('constants.productsStatus.draft'));\n      yield this.replaceRecordTask.perform({\n        adapterName,\n        model,\n        onAfter,\n        tab: this.tab\n      });\n    }),\n    actions: {\n      // replaceTemplate (onCloseDialogAction, template, templateImages = []) {\n      //   const model = this.get('model')\n      //   model.replaceTemplate(template, templateImages)\n      //   onCloseDialogAction()\n      // },\n\n      // insertTemplate (onCloseDialogAction, template, templateImages = []) {\n      //   const model = this.get('model')\n      //   model.insertTemplate(template, templateImages)\n      //   onCloseDialogAction()\n      // },\n\n      showBulkDiscountConflictsModal(saved) {\n        this.onDone();\n      },\n      edit() {\n        this.set('isEditing', true);\n        this.setupEditingTask.perform();\n      },\n      cancel() {\n        this.cancel();\n      },\n      updateContent(template) {\n        this.model.setData('template', template);\n      },\n      onSubmitDeleteProductDisplayTags(productDisplayTag) {\n        const productDisplayTags = this.model.getData('productDisplayTags');\n        productDisplayTags.removeObject(productDisplayTag);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateContent\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateContent\"), _obj), _applyDecoratedDescriptor(_obj, \"selectTemplate\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"selectTemplate\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/customizations-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopCampaignsCampaignsItemEditorCustomizationsEditorComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsItemEditorCustomizationsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/show-customizations-price-type']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/customizations-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Ovs7dM5q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"customization\\\",\\\"index\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@automationModel\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"customizations\\\",\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@description\\\"],[\\\"hasCustomizations\\\",\\\"campaignsDetails\\\",\\\"enable customizations\\\",[23,7,[]],[23,3,[]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"thenAction\\\"]],\\\"mustAdd\\\"],null],\\\"customizations are disabled for mustAdd\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,4,[]],[23,0,[\\\"isCustomizationsEmpty\\\"]],[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"thenAction\\\"]],\\\"mustAdd\\\"],null]],null],false,true,[23,7,[\\\"_data\\\",\\\"hasCustomizations\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"hasCustomizations\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,7,[\\\"_data\\\",\\\"customizations\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content is-form-content--no-last-border\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"products/products-editor/customizations-editor/customization-editor\\\",[],[[\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@autoAddCustomizationOption\\\",\\\"@customization\\\",\\\"@isFromCampaignDetail\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],false,[23,1,[]],true]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/customizations-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/component\", [\"exports\", \"ramda\", \"client/mixins/crud\"], function (_exports, R, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    tagName: '',\n    showVariantDetails: false,\n    hasTitle: true,\n    title: Ember.computed('hasTitle', function () {\n      if (this.hasTitle) {\n        return 'variant children';\n      }\n      return '';\n    }),\n    isExpanded: Ember.computed('hasTitle', function () {\n      if (this.hasTitle) {\n        return false;\n      }\n      return true;\n    }),\n    variantChildrenSorted: Ember.computed('item._data.variantChildren.@each.variantChildIndex', function () {\n      const variantChildren = this.get('item._data.variantChildren') || [];\n      return R.sortWith([R.ascend(R.path(['_data', 'variantChildIndex']))])(variantChildren);\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"3j1GI06m\",\n    \"block\": \"{\\\"symbols\\\":[\\\"child\\\",\\\"childIndex\\\",\\\"child\\\",\\\"childIndex\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@isRowsOnly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"variantChildrenSorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/has-variants/variants-detail\\\",null,[[\\\"tab\\\",\\\"campaign\\\",\\\"item\\\",\\\"isSetPriceOnBundle\\\",\\\"onRecalculatePrice\\\",\\\"child\\\",\\\"childIndex\\\",\\\"variantChildrenSorted\\\",\\\"isReadonly\\\",\\\"isRowsOnly\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"campaign\\\"]],[24,[\\\"item\\\"]],[24,[\\\"isSetPriceOnBundle\\\"]],[24,[\\\"onRecalculatePrice\\\"]],[23,3,[]],[23,4,[]],[24,[\\\"variantChildrenSorted\\\"]],[23,5,[]],[23,8,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@contentClassNames\\\",\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"variantChildrenPrice_group\\\",\\\"form-group__content-container--u-full-width\\\",[23,6,[]],true,[23,7,[]],\\\"variant children\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content product-children-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/has-variants/variants-detail\\\",null,[[\\\"tab\\\",\\\"salesPersons\\\",\\\"isHeaders\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"campaign\\\",\\\"_data\\\",\\\"salesPersons\\\"]],true]]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"variantChildrenSorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/has-variants/variants-detail\\\",null,[[\\\"tab\\\",\\\"campaign\\\",\\\"item\\\",\\\"isSetPriceOnBundle\\\",\\\"isReadonly\\\",\\\"onRecalculatePrice\\\",\\\"child\\\",\\\"childIndex\\\",\\\"variantChildrenSorted\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"campaign\\\"]],[24,[\\\"item\\\"]],[24,[\\\"isSetPriceOnBundle\\\"]],[23,5,[]],[24,[\\\"onRecalculatePrice\\\"]],[23,1,[]],[23,2,[]],[24,[\\\"variantChildrenSorted\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/variants-detail/component\", [\"exports\", \"client/mixins/crud\", \"ramda\", \"ramda-adjunct\"], function (_exports, _crud, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/commission-filler']);\n    },\n    setAllChild({\n      child,\n      commissionPropertyName,\n      childIndex\n    }) {\n      const fillerType = child.get('fillerType');\n      const fillerValue = child.getData(commissionPropertyName);\n      const itemModel = this?.item || {};\n      R.pipe(R.pathOr([], ['_data', 'variantChildren']), RA.mapIndexed((variantChild, index) => {\n        if (R.equals(fillerType, 'fillTop') && R.lt(index, childIndex) || R.equals(fillerType, 'fillBottom') && R.gt(index, childIndex) || R.equals(fillerType, 'fillTopAndBottom')) {\n          variantChild.setData(commissionPropertyName, fillerValue);\n        }\n        if (R.equals(fillerType, 'clearTop') && R.lte(index, childIndex) || R.equals(fillerType, 'clearBottom') && R.gte(index, childIndex) || R.equals(fillerType, 'clearTopAndBottom')) {\n          variantChild.setData(commissionPropertyName, '');\n        }\n      }))(itemModel);\n      if (this.onRecalculatePrice) {\n        this.onRecalculatePrice();\n      }\n      Ember.set(child, 'fillerType', '');\n      Ember.set(child, 'fillerLabel', '');\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setAllChild\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setAllChild\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/variants-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"E5c4l62A\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@isRowsOnly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive discounted price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-set-with-choices__items-children\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,2,[]],\\\"has-text-indented\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"child\\\",\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"child\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--no-wrap\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@onInput\\\"],[\\\"table-form__input table-form__input--80 has-text-right\\\",[28,\\\"or\\\",[[24,[\\\"isReadonly\\\"]],[24,[\\\"isSetPriceOnBundle\\\"]]],null],[24,[\\\"item\\\",\\\"_data\\\",\\\"price\\\"]],[24,[\\\"child\\\",\\\"_data\\\",\\\"price\\\"]],[22,\\\"onRecalculatePrice\\\"]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@isHiddenPlaceholder\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,[22,\\\"isReadonly\\\"],[28,\\\"is-empty\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"price\\\"]]],null],\\\"fa-solid fa-ellipsis-vertical\\\",\\\"fa-solid fa-ellipsis-vertical\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"child\\\",\\\"fillerType\\\"]],[24,[\\\"child\\\",\\\"fillerLabel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setAllChild\\\"]],[28,\\\"hash\\\",null,[[\\\"child\\\",\\\"commissionPropertyName\\\",\\\"childIndex\\\"],[[24,[\\\"child\\\"]],\\\"price\\\",[24,[\\\"childIndex\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--no-wrap\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@onInput\\\"],[\\\"variantChildren.priceDiscounted\\\",\\\"table-form__input table-form__input--80 has-text-right\\\",[28,\\\"or\\\",[[24,[\\\"isReadonly\\\"]],[24,[\\\"isSetPriceOnBundle\\\"]]],null],[24,[\\\"item\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]],[24,[\\\"child\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]],[22,\\\"onRecalculatePrice\\\"]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@isHiddenPlaceholder\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,[28,\\\"is-empty\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]]],null],\\\"fa-solid fa-ellipsis-vertical\\\",\\\"fa-solid fa-ellipsis-vertical\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"child\\\",\\\"fillerType\\\"]],[24,[\\\"child\\\",\\\"fillerLabel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setAllChild\\\"]],[28,\\\"hash\\\",null,[[\\\"child\\\",\\\"commissionPropertyName\\\",\\\"childIndex\\\"],[[24,[\\\"child\\\"]],\\\"priceDiscounted\\\",[24,[\\\"childIndex\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[24,[\\\"child\\\",\\\"statusClass\\\"]],[24,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"choices.details.status\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\",\\\"@isToggler\\\",\\\"@parentComponent\\\",\\\"@toggleProperty\\\",\\\"@toggleIsOn\\\"],[\\\"products\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"30\\\",true,[23,0,[]],\\\"showUploadsRow\\\",[23,0,[\\\"showUploadsRow\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"files-row bg-1\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,1,[]],\\\"auto\\\",40,true,true,true,true,[22,\\\"child\\\"],\\\"products\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/has-variants/variants-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/information-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wwtL0BZc\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/information-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/choice/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 ChannelsShopCampaignsCampaignsItemEditorIsSetWithChoicesChoiceComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class ChannelsShopCampaignsCampaignsItemEditorIsSetWithChoicesChoiceComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaignsProducts\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isExpanded\", _descriptor4, this);\n    }\n    toggleOldSetAndRecalculatePrice(model, choice) {\n      R.pipe(R.pathOr([], ['_data', 'details']), R.map(detail => {\n        const isSet = detail.get('_data.isSet');\n        if (isSet) {\n          detail.setData('isSetNew', true);\n        }\n      }))(choice);\n      model.recalculatePrice(model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaignsProducts\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isExpanded\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleOldSetAndRecalculatePrice\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleOldSetAndRecalculatePrice\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/choice/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SnASunlH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"child\\\",\\\"@fetchPriceHistoryTask\\\",\\\"@choice\\\",\\\"@onToggleIsSetNew\\\",\\\"@item\\\",\\\"@parentModel\\\",\\\"@campaign\\\",\\\"@isPriceReadonly\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"product-children-table__choices-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__choices-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",false],[12,\\\"colspan\\\",\\\"99\\\"],[12,\\\"class\\\",\\\"product-children-table__choices-header-td\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,0,[]],\\\"isExpanded\\\"],null]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-v-align-auto u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggle-wrapper\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@iconOn\\\",\\\"@iconOff\\\"],[true,false,[23,0,[\\\"isExpanded\\\"]],\\\"fas fa-angle-down\\\",\\\"fas fa-angle-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@content\\\"],[[23,3,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-v-align-auto\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"choose qty\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,3,[\\\"_data\\\",\\\"qty\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@list\\\",\\\"@status\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,3,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__choices-sub-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"product-children-table__choices-sub-header-td\\\"],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"formInitData\\\"],[\\\"set price on bundle\\\",[23,12,[]],\\\"isSetPriceOnBundle\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\",\\\"onToggleWhenTrue\\\",\\\"onToggleWhenFalse\\\"],[[23,9,[]],[23,3,[\\\"_data\\\",\\\"isSetPriceOnBundle\\\"]],true,false,[28,\\\"fn\\\",[[23,0,[\\\"toggleOldSetAndRecalculatePrice\\\"]],[23,5,[]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,5,[\\\"recalculatePrice\\\"]],[23,5,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"isSetPriceOnBundle\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"formInitData\\\"],[\\\"total inclusive price\\\",[23,12,[]],\\\"price\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"isRunning\\\",\\\"value\\\",\\\"onInput\\\"],[[23,9,[]],[23,0,[\\\"campaignsProducts\\\",\\\"fetchHistoryCampaignsTask\\\",\\\"isRunning\\\"]],[23,3,[\\\"_data\\\",\\\"price\\\"]],[28,\\\"fn\\\",[[23,5,[\\\"recalculatePrice\\\"]],[23,5,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"formInitData\\\"],[\\\"total inclusive discounted price\\\",[23,12,[]],\\\"priceDiscounted\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"isRunning\\\",\\\"value\\\",\\\"isRequired\\\",\\\"onInput\\\"],[[23,9,[]],[23,0,[\\\"campaignsProducts\\\",\\\"fetchHistoryCampaignsTask\\\",\\\"isRunning\\\"]],[23,3,[\\\"_data\\\",\\\"priceDiscounted\\\"]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"onSale\\\"]],\\\"on\\\"],null],true,false],null],[28,\\\"fn\\\",[[23,5,[\\\"recalculatePrice\\\"]],[23,5,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/is-set-with-choices-detail\\\",null,[[\\\"tab\\\",\\\"hasSalesPersons\\\",\\\"isHeaders\\\"],[[23,10,[]],[23,7,[\\\"_data\\\",\\\"salesPersons\\\"]],true]]],false],[0,\\\"\\\\t\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/is-set-with-choices-detail\\\",null,[[\\\"tab\\\",\\\"isReadonly\\\",\\\"hasSalesPersons\\\",\\\"isPriceReadonly\\\",\\\"campaign\\\",\\\"parentModel\\\",\\\"item\\\",\\\"onToggleIsSetNew\\\",\\\"choice\\\",\\\"child\\\",\\\"fetchPriceHistoryTask\\\"],[[23,10,[]],[23,9,[]],[23,7,[\\\"_data\\\",\\\"salesPersons\\\"]],[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,1,[]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-table__separator\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/choice/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/component\", [\"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 = Ember.Component.extend({\n    campaignsProducts: Ember.inject.service(),\n    tagName: ''\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/is-set-with-choices-detail/component\", [\"exports\", \"client/mixins/crud\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _crud, R, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    campaignsProducts: Ember.inject.service(),\n    productsService: Ember.inject.service('products'),\n    big: Ember.inject.service(),\n    tagName: '',\n    hasChangedStatus: false,\n    init() {\n      this._super(...arguments);\n      this.set('showSetDetails', false);\n      const isSet = R.pathEq(['child', '_data', 'isSet'], true, this);\n      const hasVariants = R.pathEq(['child', '_data', 'hasVariants'], true, this);\n      if (isSet || hasVariants) {\n        this.set('showSetDetails', true);\n      }\n    },\n    setDetailsData: Ember.computed('model._data.setDetails.@each._data', function () {\n      const detailsData = R.pipe(R_.dotPathOr([], 'model._data.setDetails'), R.map(detail => {\n        const price = R_.dotPathOr('', '_data')(detail);\n        return price;\n      }))(this);\n      return detailsData;\n    }),\n    setPriceEqualsDetailsPrice: Ember.computed('model._data.{price,priceDiscounted}', 'setDetailsData.@each.{price,priceDiscounted}', function () {\n      const setPrice = Number(this.model._data.price) || 0;\n      const setPriceDiscounted = Number(this.model._data.priceDiscounted) || 0;\n      // const setCommissionBaseCost = Number(this.model._data.commissionBaseCost) || 0\n      let detailsPrice = this.big.newBig(0);\n      let detailsPriceDiscounted = this.big.newBig(0);\n      // const detailsCommissionBaseCost = this.big.newBig(0)\n\n      R.forEach(detail => {\n        const price = R_.dotPathOr('', 'price')(detail);\n        const priceDiscounted = R_.dotPathOr('', 'priceDiscounted')(detail);\n        // const commissionBaseCost = R_.dotPathOr('', 'commissionBaseCost')(detail)\n        const qty = R_.dotPathOr('', 'qty')(detail);\n        detailsPrice = detailsPrice.plus(this.big.newBig(price).times(qty));\n        detailsPriceDiscounted = detailsPriceDiscounted.plus(this.big.newBig(priceDiscounted).times(qty));\n        // detailsCommissionBaseCost = detailsCommissionBaseCost.plus(this.big.newBig(commissionBaseCost).times(qty))\n      })(this.setDetailsData);\n      const priceIsEqual = R.equals(RA.floor(setPrice), RA.floor(detailsPrice.toFixed(0)));\n      const priceDiscountedIsEqual = R.equals(RA.floor(setPriceDiscounted), RA.floor(detailsPriceDiscounted.toFixed(0)));\n      // const commissionBaseCostIsEqual = R.equals(RA.floor(setCommissionBaseCost), RA.floor(detailsCommissionBaseCost.toFixed(0)))\n      return priceIsEqual && priceDiscountedIsEqual;\n    }),\n    toggleBtnLabel: Ember.computed('child.{_data.isSet,hasVariants}', function () {\n      if (this.get('child._data.isSet')) {\n        return 'product_sets_contents';\n      }\n      return 'variants';\n    }),\n    isDisabled: Ember.computed('choice._data.isSetPriceOnBundle', function () {\n      return this.get('choice._data.isSetPriceOnBundle');\n    }),\n    isSetNew: Ember.computed('child._data.isSetNew', function () {\n      if (this.get('child._data.isSetNew')) {\n        return this.get('child._data.isSetNew');\n      }\n      return false;\n    }),\n    isSetWithChoicesPriceRequired: Ember.computed('isSetNew', 'choice._data.isSetPriceOnBundle', 'child._data.isSet', function () {\n      const isSetPriceOnBundle = this.get('choice._data.isSetPriceOnBundle');\n      const isSetNew = this.isSetNew;\n      const isSet = this.get('child._data.isSet');\n      if (isSetPriceOnBundle) {\n        return false;\n      }\n      if (isSet) {\n        if (isSetNew) {\n          return false;\n        }\n        return true;\n      }\n      return true;\n    }),\n    isSetWithChoicesPriceDiscountedRequired: Ember.computed('item._data.{onSale}', 'isSetNew', 'choice._data.isSetPriceOnBundle', function () {\n      const isSetPriceOnBundle = this.get('choice._data.isSetPriceOnBundle');\n      const isSetNew = this.isSetNew;\n      const isSet = this.get('child._data.isSet');\n      const itemOnSale = this.get('item._data.onSale');\n      if (isSetPriceOnBundle) {\n        return false;\n      }\n      if (isSet && isSetNew) {\n        return false;\n      } else {\n        if (itemOnSale === 'on') {\n          return true;\n        }\n        return false;\n      }\n    }),\n    showOriginalProductStatus: Ember.computed('hasChangedStatus', 'child._data.{status,originalProductStatus}', function () {\n      const hasChangedStatus = this.hasChangedStatus ?? false;\n      if (!hasChangedStatus) {\n        return false;\n      }\n      const status = this?.child?._data?.status;\n      if (status !== 'active') {\n        return false;\n      }\n      const originalProductStatus = this?.child?._data?.originalProductStatus;\n      if (originalProductStatus === 'active') {\n        return false;\n      }\n      return true;\n    }),\n    setHasChangedStatus() {\n      this.set('hasChangedStatus', true);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setHasChangedStatus\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setHasChangedStatus\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/is-set-with-choices-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YyCMYCuE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@fetchPriceHistoryTask\\\",\\\"@tab\\\",\\\"@child\\\",\\\"@item\\\",\\\"@parentModel\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__items\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive discounted price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__items\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"u-desc u-desc--bold \\\",[28,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"isSet\\\"]],[24,[\\\"child\\\",\\\"_data\\\",\\\"hasVariants\\\"]]],null],\\\"has-children\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,0,[]],\\\"showSetDetails\\\"],null]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggle-wrapper\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@hasToggleIconRight\\\",\\\"@isToggler\\\",\\\"@toggleIsOn\\\",\\\"@iconOn\\\",\\\"@iconOff\\\"],[true,false,[28,\\\"or\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"isSet\\\"]],[24,[\\\"child\\\",\\\"_data\\\",\\\"hasVariants\\\"]]],null],[23,0,[\\\"showSetDetails\\\"]],\\\"fas fa-angle-down\\\",\\\"fas fa-angle-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"child\\\",\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"child\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"choice\\\",\\\"_data\\\",\\\"isSetPriceOnBundle\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@isRequired\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\"],[\\\"table-form__input table-form__input--80 has-text-right\\\",[23,0,[\\\"isSetWithChoicesPriceRequired\\\"]],[28,\\\"or\\\",[[23,0,[\\\"isDisabled\\\"]],[23,0,[\\\"isSetNew\\\"]]],null],[23,1,[]],[23,4,[\\\"_data\\\",\\\"price\\\"]],[28,\\\"fn\\\",[[23,6,[\\\"recalculatePrice\\\"]],[23,5,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/price-selectors/price-selector-campaigns\\\",null,[[\\\"itemKey\\\",\\\"campaign\\\",\\\"campaignDetailKey\\\",\\\"item\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"priceHistoryData\\\",\\\"product\\\",\\\"docType\\\",\\\"isTaxExclusive\\\",\\\"isRunning\\\",\\\"onFetchPriceHistoryTask\\\",\\\"onSelect\\\"],[[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],[24,[\\\"campaign\\\"]],[24,[\\\"child\\\",\\\"_data\\\",\\\"_key\\\"]],[24,[\\\"item\\\"]],[23,1,[]],[28,\\\"or\\\",[[23,1,[]],[28,\\\"or\\\",[[24,[\\\"isDisabled\\\"]],[24,[\\\"isSetNew\\\"]]],null]],null],[24,[\\\"priceHistoryData\\\"]],[24,[\\\"product\\\"]],\\\"sales\\\",false,[23,0,[\\\"campaignsProducts\\\",\\\"fetchHistoryCampaignsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,2,[]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"campaignsProducts\\\",\\\"selectChildHistoryPrice\\\"]],[24,[\\\"campaign\\\"]],[24,[\\\"parentModel\\\"]],[24,[\\\"item\\\"]],[24,[\\\"child\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"isRequired\\\",\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"value\\\",\\\"onInput\\\"],[[24,[\\\"isSetWithChoicesPriceDiscountedRequired\\\"]],\\\"table-form__input table-form__input--80 has-text-right\\\",[23,1,[]],[28,\\\"or\\\",[[24,[\\\"isDisabled\\\"]],[24,[\\\"isSetNew\\\"]]],null],[24,[\\\"child\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]],[28,\\\"fn\\\",[[24,[\\\"parentModel\\\",\\\"recalculatePrice\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,[24,[\\\"child\\\",\\\"statusClass\\\"]],true,[23,1,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"status\\\"]],[23,0,[\\\"setHasChangedStatus\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showOriginalProductStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"msgs/info-msg\\\",[],[[\\\"@msg\\\",\\\"@translate\\\"],[\\\"product status\\\",true]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[28,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"originalProductStatus\\\"]],[23,0,[\\\"constants\\\",\\\"status\\\",\\\"active\\\"]]],null],\\\"is-primary\\\",\\\"is-danger\\\"],null],true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"originalProductStatus\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"choices.details.status\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\",\\\"@isToggler\\\",\\\"@parentComponent\\\",\\\"@toggleProperty\\\",\\\"@toggleIsOn\\\"],[\\\"products\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"30\\\",true,[23,0,[]],\\\"showUploadsRow\\\",[23,0,[\\\"showUploadsRow\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"files-row bg-1\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,3,[]],\\\"auto\\\",40,true,true,true,true,[22,\\\"child\\\"],\\\"products\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,1,[]]],null],[28,\\\"and\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"isSet\\\"]],[28,\\\"not\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"isSetNew\\\"]]],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"is-warning\\\",\\\"this product set is outdated, click here to change it to the new type (set item prices individually)\\\",[28,\\\"fn\\\",[[24,[\\\"onToggleIsSetNew\\\"]],[24,[\\\"child\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[]],[28,\\\"and\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"isSet\\\"]],[28,\\\"not\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"isSetNew\\\"]]],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"this product set is outdated\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"isSet\\\"]],[23,0,[\\\"showSetDetails\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/is-set\\\",null,[[\\\"tab\\\",\\\"hasTitle\\\",\\\"campaign\\\",\\\"choice\\\",\\\"parentModel\\\",\\\"item\\\",\\\"isSetPriceOnBundle\\\",\\\"hasSalesPersons\\\",\\\"validationError\\\",\\\"isReadonly\\\",\\\"fetchPriceHistoryTask\\\",\\\"isRowsOnly\\\"],[[24,[\\\"tab\\\"]],false,[24,[\\\"campaign\\\"]],[24,[\\\"choice\\\"]],[24,[\\\"item\\\"]],[24,[\\\"child\\\"]],[24,[\\\"choice\\\",\\\"_data\\\",\\\"isSetPriceOnBundle\\\"]],[24,[\\\"campaign\\\",\\\"_data\\\",\\\"salesPersons\\\"]],[24,[\\\"validationError\\\"]],[23,1,[]],[23,2,[]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"child\\\",\\\"_data\\\",\\\"hasVariants\\\"]],[23,0,[\\\"showSetDetails\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/has-variants\\\",null,[[\\\"tab\\\",\\\"hasTitle\\\",\\\"campaign\\\",\\\"choice\\\",\\\"fetchPriceHistoryTask\\\",\\\"isSetPriceOnBundle\\\",\\\"item\\\",\\\"validationError\\\",\\\"onRecalculatePrice\\\",\\\"isReadonly\\\",\\\"isRowsOnly\\\"],[[24,[\\\"tab\\\"]],false,[24,[\\\"campaign\\\"]],[24,[\\\"choice\\\"]],[23,2,[]],[24,[\\\"choice\\\",\\\"_data\\\",\\\"isSetPriceOnBundle\\\"]],[24,[\\\"child\\\"]],[24,[\\\"validationError\\\"]],[28,\\\"fn\\\",[[24,[\\\"parentModel\\\",\\\"recalculatePrice\\\"]],[24,[\\\"item\\\"]]],null],[23,1,[]],true]]],false],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/is-set-with-choices-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xJOAO/Ur\",\n    \"block\": \"{\\\"symbols\\\":[\\\"choice\\\",\\\"choice\\\",\\\"@fetchPriceHistoryTask\\\",\\\"@formInitData\\\",\\\"@isPriceReadonly\\\",\\\"@isReadonly\\\",\\\"@item\\\",\\\"@onToggleIsSetNew\\\",\\\"@parentModel\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@isRowsOnly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,7,[\\\"_data\\\",\\\"choices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/choice\\\",[],[[\\\"@choice\\\",\\\"@fetchPriceHistoryTask\\\",\\\"@formInitData\\\",\\\"@isPriceReadonly\\\",\\\"@isReadonly\\\",\\\"@item\\\",\\\"@onToggleIsSetNew\\\",\\\"@parentModel\\\",\\\"@tab\\\",\\\"@errors\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"choices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@contentClassNames\\\",\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"setWithChoicesPrice_group\\\",\\\"form-group__content-container--u-full-width\\\",[23,4,[]],true,[23,10,[]],\\\"product_sets_with_choices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table product-children-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,7,[\\\"_data\\\",\\\"choices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/choice\\\",[],[[\\\"@choice\\\",\\\"@fetchPriceHistoryTask\\\",\\\"@formInitData\\\",\\\"@isPriceReadonly\\\",\\\"@isReadonly\\\",\\\"@item\\\",\\\"@onToggleIsSetNew\\\",\\\"@parentModel\\\",\\\"@tab\\\",\\\"@errors\\\"],[[23,1,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set-with-choices/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    title: Ember.computed('hasTitle', function () {\n      if (this.hasTitle) {\n        return 'product_sets_contents';\n      }\n      return '';\n    }),\n    isExpanded: Ember.computed('hasTitle', function () {\n      if (this.hasTitle) {\n        return false;\n      }\n      return true;\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/is-set-detail/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    big: Ember.inject.service(),\n    campaignsProducts: Ember.inject.service(),\n    productsService: Ember.inject.service('products'),\n    tagName: '',\n    isSetPriceRequired: Ember.computed('item._data.isSetNew', 'isSetPriceOnBundle', function () {\n      const isSetPriceOnBundle = this.get('isSetPriceOnBundle');\n      const isSetNew = this.get('item._data.isSetNew');\n      if (isSetPriceOnBundle) {\n        if (isSetNew) {\n          return false;\n        }\n        return true;\n      }\n      if (isSetNew) {\n        return true;\n      }\n      return false;\n    }),\n    isSetPriceDiscountedRequired: Ember.computed('item._data.{onSale,isSetNew}', 'parentModel._data.onSale', 'isSetPriceOnBundle', function () {\n      const isSetPriceOnBundle = this.get('isSetPriceOnBundle');\n      const isSetNew = this.get('item._data.isSetNew');\n      const itemOnSale = this.get('item._data.onSale');\n      const parentOnSale = this.get('parentModel._data.onSale');\n      if (isSetPriceOnBundle) {\n        if (itemOnSale === 'on' || parentOnSale === 'on') {\n          return true;\n        }\n        return false;\n      }\n      if (isSetNew) {\n        if (itemOnSale === 'on' || parentOnSale === 'on') {\n          return true;\n        }\n        return false;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/is-set-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KyJq1GqC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@child\\\",\\\"@item\\\",\\\"@parentModel\\\",\\\"@campaignOrAutomationModel\\\",\\\"@fetchPriceHistoryTask\\\",\\\"@automationModel\\\",\\\"@isRowsOnly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive discounted price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"product-children-table__items-children\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,9,[]],\\\"has-text-indented\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"child\\\",\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"x \\\"],[1,[24,[\\\"child\\\",\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"child\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isSetPriceOnBundle\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"isSetNew\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\",\\\"@isRequired\\\"],[\\\"table-form__input has-text-right\\\",[23,2,[]],[24,[\\\"child\\\",\\\"_data\\\",\\\"price\\\"]],[28,\\\"fn\\\",[[24,[\\\"parentModel\\\",\\\"recalculatePriceForSet\\\"]],[24,[\\\"item\\\"]],[24,[\\\"parentModel\\\"]]],null],[22,\\\"isSetPriceRequired\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/price-selectors/price-selector-campaigns\\\",null,[[\\\"itemKey\\\",\\\"campaign\\\",\\\"campaignDetailKey\\\",\\\"item\\\",\\\"readonly\\\",\\\"isDisabled\\\",\\\"priceHistoryData\\\",\\\"product\\\",\\\"docType\\\",\\\"isTaxExclusive\\\",\\\"isRunning\\\",\\\"onFetchPriceHistoryTask\\\",\\\"onSelect\\\"],[[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],[23,6,[]],[24,[\\\"item\\\",\\\"_data\\\",\\\"_key\\\"]],[24,[\\\"item\\\"]],[23,2,[]],[23,2,[]],[24,[\\\"priceHistoryData\\\"]],[24,[\\\"product\\\"]],\\\"sales\\\",false,[23,0,[\\\"campaignsProducts\\\",\\\"fetchHistoryCampaignsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,7,[]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"campaignsProducts\\\",\\\"selectChildHistoryPrice\\\"]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"isRunning\\\",\\\"value\\\",\\\"onInput\\\",\\\"isRequired\\\"],[\\\"table-form__input has-text-right\\\",[28,\\\"or\\\",[[23,2,[]],[23,8,[\\\"isAutoAdd\\\"]]],null],[23,0,[\\\"campaignsProducts\\\",\\\"fetchHistoryCampaignsTask\\\",\\\"isRunning\\\"]],[24,[\\\"child\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"parentModel\\\",\\\"recalculatePriceForSet\\\"]],[24,[\\\"item\\\"]],[24,[\\\"parentModel\\\"]]],null],[24,[\\\"isSetPriceDiscountedRequired\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"child\\\",\\\"statusClass\\\"]],true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"choices.details.status\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\",\\\"@isToggler\\\",\\\"@parentComponent\\\",\\\"@toggleProperty\\\",\\\"@toggleIsOn\\\"],[\\\"products\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"30\\\",true,[23,0,[]],\\\"showUploadsRow\\\",[23,0,[\\\"showUploadsRow\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"files-row bg-1\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,1,[]],\\\"auto\\\",40,true,true,true,true,[22,\\\"child\\\"],\\\"products\\\",[24,[\\\"child\\\",\\\"_data\\\",\\\"itemKey\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/is-set-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Q8Z8MVk4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"child\\\",\\\"index\\\",\\\"child\\\",\\\"index\\\",\\\"@fetchPriceHistoryTask\\\",\\\"@formInitData\\\",\\\"@campaignOrAutomationModel\\\",\\\"@automationModel\\\",\\\"@campaign\\\",\\\"@tab\\\",\\\"@isRowsOnly\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/is-set/is-set-detail\\\",null,[[\\\"tab\\\",\\\"campaign\\\",\\\"automationModel\\\",\\\"campaignOrAutomationModel\\\",\\\"formInitData\\\",\\\"parentModel\\\",\\\"item\\\",\\\"isSetPriceOnBundle\\\",\\\"hasSalesPersons\\\",\\\"child\\\",\\\"fetchPriceHistoryTask\\\",\\\"isReadonly\\\",\\\"isRowsOnly\\\"],[[24,[\\\"tab\\\"]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]],[24,[\\\"parentModel\\\"]],[24,[\\\"item\\\"]],[24,[\\\"isSetPriceOnBundle\\\"]],[24,[\\\"hasSalesPersons\\\"]],[23,3,[]],[23,5,[]],[23,12,[]],[23,11,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@contentClassNames\\\",\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"setDetailsPrice_group\\\",\\\"form-group__content-container--u-full-width\\\",[23,6,[]],true,[23,10,[]],\\\"product_sets_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content product-children-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/is-set/is-set-detail\\\",null,[[\\\"tab\\\",\\\"hasSalesPersons\\\",\\\"isHeaders\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"hasSalesPersons\\\"]],true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-item-editor/is-set/is-set-detail\\\",null,[[\\\"tab\\\",\\\"campaign\\\",\\\"automationModel\\\",\\\"campaignOrAutomationModel\\\",\\\"formInitData\\\",\\\"parentModel\\\",\\\"item\\\",\\\"isSetPriceOnBundle\\\",\\\"isReadonly\\\",\\\"hasSalesPersons\\\",\\\"child\\\",\\\"fetchPriceHistoryTask\\\"],[[24,[\\\"tab\\\"]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]],[24,[\\\"parentModel\\\"]],[24,[\\\"item\\\"]],[24,[\\\"isSetPriceOnBundle\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"hasSalesPersons\\\"]],[23,1,[]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/is-set/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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 ChannelsShopCampaignsCampaignsItemLimitsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsItemLimitsEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/limits-editor-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _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 ChannelsShopCampaignsCampaignsItemLimitsEditorLimitsEditorRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember.computed('args.model.{_data.overrideUseInventoryAsLimitedQty,_data.useInventoryAsLimitedQty,product._data.isSet}', 'args.campaign._data.useInventoryAsLimitedQty', 'settings.settingsModel._data.beta.useInventoryAsLimitedQty'), _dec13 = Ember.computed('settings.settingsModel._data.beta.useInventoryAsLimitedQty', 'args.{campaign._data.useInventoryAsLimitedQty,model._data.hasSalesLimitedQty}'), _class = class ChannelsShopCampaignsCampaignsItemLimitsEditorLimitsEditorRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"big\", _descriptor4, this);\n      _initializerDefineProperty(this, \"products\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\", _descriptor6, this);\n      _initializerDefineProperty(this, \"children\", _descriptor7, this);\n      this.fetchProductTask.perform();\n    }\n    *fetchProductTask() {\n      const model = this.args?.model || {};\n      if (!model) {\n        return;\n      }\n      const itemKey = model?._data?.itemKey || {};\n      if (!model.get('product.inventory') && itemKey) {\n        const product = yield this.crud.findTask.perform({\n          adapterName: 'products',\n          appendPath: itemKey\n        });\n        model.set('product', product);\n      }\n      const children = yield this.products.fetchChildrenInventoryTask.perform(model?.product || {});\n      this.children = children;\n    }\n    toggleHasSalesLimitedQty(model) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.args?.model || {};\n      }\n      if (RA.isNilOrEmpty(model)) {\n        return;\n      }\n      const hasSalesLimitedQty = R.pathOr(false, ['_data', 'hasSalesLimitedQty'])(model);\n      model.setData('salesLimitedQty', '');\n      model.setData('salesPreOrderLimitedQty', '');\n      if (!hasSalesLimitedQty) {\n        model.setData('allowPreOrder', false);\n        model.setData('hasSalesPreOrderLimitedQty', false);\n      }\n    }\n    toggleUseInventoryAsLimitedQty(model) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.args?.model || {};\n      }\n      if (RA.isNilOrEmpty(model)) {\n        return;\n      }\n      const hasSalesLimitedQty = R.pathOr(false, ['_data', 'hasSalesLimitedQty'])(model);\n      if (!hasSalesLimitedQty) {\n        model.setData('allowPreOrder', false);\n        model.setData('hasSalesPreOrderLimitedQty', false);\n      }\n    }\n    toggleAllowPreOrder(model) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.args?.model || {};\n      }\n      if (RA.isNilOrEmpty(model)) {\n        return;\n      }\n      model.setData('salesPreOrderLimitedQty', '');\n      model.setData('hasSalesPreOrderLimitedQty', false);\n    }\n    toggleHasPreOrderLimitedQty(model) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.args?.model || {};\n      }\n      if (RA.isNilOrEmpty(model)) {\n        return;\n      }\n      model.setData('salesPreOrderLimitedQty', '');\n    }\n    calculateSalesLimitedQty(operator) {\n      const model = this?.args?.model || {};\n      if (RA.isNilOrEmpty(model)) {\n        return;\n      }\n      let newSalesLimitedQtyBig = this.big.newBig(model?._data?.salesLimitedQty || 0);\n      let newCalculatedAvailableQtyBeforeCartBig = this.big.newBig(model?._data?.calculatedAvailableQtyBeforeCart || 0);\n      const salesQty = model?._data?.salesQty || 0;\n      if (R.equals(operator, 'add')) {\n        newSalesLimitedQtyBig = newSalesLimitedQtyBig.plus(1);\n        newCalculatedAvailableQtyBeforeCartBig = newSalesLimitedQtyBig.minus(salesQty);\n      } else if (R.equals(operator, 'subtract')) {\n        newSalesLimitedQtyBig = newSalesLimitedQtyBig.minus(1);\n        newCalculatedAvailableQtyBeforeCartBig = newSalesLimitedQtyBig.minus(salesQty);\n      } else if (R.equals(operator, 'direct')) {\n        newCalculatedAvailableQtyBeforeCartBig = newSalesLimitedQtyBig.minus(salesQty);\n      } else if (R.equals(operator, 'addAvailableQty')) {\n        newCalculatedAvailableQtyBeforeCartBig = newCalculatedAvailableQtyBeforeCartBig.plus(1);\n        newSalesLimitedQtyBig = newCalculatedAvailableQtyBeforeCartBig.plus(salesQty);\n      } else if (R.equals(operator, 'subtractAvailableQty')) {\n        newCalculatedAvailableQtyBeforeCartBig = newCalculatedAvailableQtyBeforeCartBig.minus(1);\n        newSalesLimitedQtyBig = newCalculatedAvailableQtyBeforeCartBig.plus(salesQty);\n      } else if (R.equals(operator, 'directAvailableQty')) {\n        newSalesLimitedQtyBig = newCalculatedAvailableQtyBeforeCartBig.plus(salesQty);\n      }\n      if (newSalesLimitedQtyBig.lte(0)) {\n        newSalesLimitedQtyBig = this.big.newBig(0);\n      }\n      if (newCalculatedAvailableQtyBeforeCartBig.lte(0)) {\n        newCalculatedAvailableQtyBeforeCartBig = this.big.newBig(0);\n      }\n      const roundingInventoryQty = this.settings.getProp('roundingInventoryQty');\n      model.setData('salesLimitedQty', newSalesLimitedQtyBig.toFixed(roundingInventoryQty));\n      model.setData('calculatedAvailableQtyBeforeCart', newCalculatedAvailableQtyBeforeCartBig.toFixed(roundingInventoryQty));\n      let limitedQtyDeficitBig = this.big.newBig(0);\n      if (newCalculatedAvailableQtyBeforeCartBig.lte(0)) {\n        limitedQtyDeficitBig = this.big.newBig(newSalesLimitedQtyBig).minus(salesQty);\n      }\n      let newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = this.big.newBig(this?.tempCalculatedAvailablePreOrderQtyOnlyBeforeCart || 0);\n      const newSalesPreOrderLimitedQtyBig = this.big.newBig(model?._data?.salesPreOrderLimitedQty || 0);\n      newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newSalesPreOrderLimitedQtyBig.plus(limitedQtyDeficitBig);\n      this.tempCalculatedAvailablePreOrderQtyOnlyBeforeCart = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.toFixed(roundingInventoryQty);\n    }\n    calculateSalesPreOrderLimitedQty(operator) {\n      const model = this?.args?.model || {};\n      if (RA.isNilOrEmpty(model)) {\n        return;\n      }\n      let newSalesPreOrderLimitedQtyBig = this.big.newBig(model?._data?.salesPreOrderLimitedQty || 0);\n      let newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = this.big.newBig(this?.tempCalculatedAvailablePreOrderQtyOnlyBeforeCart || 0);\n      const salesLimitedQty = model?._data?.salesLimitedQty || 0;\n      const salesQty = model?._data?.salesQty || 0;\n      const calculatedAvailableQtyBeforeCartBig = this.big.newBig(model?._data?.calculatedAvailableQtyBeforeCart || 0);\n      let limitedQtyDeficitBig = this.big.newBig(0);\n      if (calculatedAvailableQtyBeforeCartBig.lte(0)) {\n        limitedQtyDeficitBig = this.big.newBig(salesLimitedQty).minus(salesQty);\n      }\n      if (R.equals(operator, 'add')) {\n        newSalesPreOrderLimitedQtyBig = newSalesPreOrderLimitedQtyBig.plus(1);\n        newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newSalesPreOrderLimitedQtyBig.plus(limitedQtyDeficitBig);\n      } else if (R.equals(operator, 'subtract')) {\n        newSalesPreOrderLimitedQtyBig = newSalesPreOrderLimitedQtyBig.minus(1);\n        newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newSalesPreOrderLimitedQtyBig.plus(limitedQtyDeficitBig);\n      } else if (R.equals(operator, 'direct')) {\n        newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newSalesPreOrderLimitedQtyBig.plus(limitedQtyDeficitBig);\n      } else if (R.equals(operator, 'addAvailablePreOrderQty')) {\n        newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.plus(1);\n        newSalesPreOrderLimitedQtyBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.minus(limitedQtyDeficitBig);\n      } else if (R.equals(operator, 'subtractAvailablePreOrderQty')) {\n        newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.minus(1);\n        newSalesPreOrderLimitedQtyBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.minus(limitedQtyDeficitBig);\n      } else if (R.equals(operator, 'directAvailablePreOrderQty')) {\n        newSalesPreOrderLimitedQtyBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.minus(limitedQtyDeficitBig);\n      }\n      if (newSalesPreOrderLimitedQtyBig.lte(0)) {\n        newSalesPreOrderLimitedQtyBig = this.big.newBig(0);\n      }\n      const roundingInventoryQty = this.settings.getProp('roundingInventoryQty');\n      model.setData('salesPreOrderLimitedQty', newSalesPreOrderLimitedQtyBig.toFixed(roundingInventoryQty));\n      this.tempCalculatedAvailablePreOrderQtyOnlyBeforeCart = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.toFixed(roundingInventoryQty);\n    }\n    get isLimitedQtyDisabled() {\n      const isSet = this?.args?.model?.product?._data?.isSet ?? false;\n      if (isSet) {\n        return false;\n      }\n      const betaUseInventoryAsLimitedQty = this?.settings?.settingsModel?._data?.beta?.useInventoryAsLimitedQty ?? false;\n      if (betaUseInventoryAsLimitedQty) {\n        const campaignUseInventoryAsLimitedQty = this?.args?.campaign?._data?.useInventoryAsLimitedQty ?? false;\n        if (campaignUseInventoryAsLimitedQty) {\n          const overrideUseInventoryAsLimitedQty = this?.args?.model?._data?.overrideUseInventoryAsLimitedQty ?? false;\n          if (!overrideUseInventoryAsLimitedQty) {\n            return true;\n          }\n        } else {\n          const useInventoryAsLimitedQty = this?.args?.model?._data?.useInventoryAsLimitedQty ?? false;\n          if (useInventoryAsLimitedQty) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    get isUseInventoryAsLimitedQtyDisabled() {\n      const betaUseInventoryAsLimitedQty = this?.settings?.settingsModel?._data?.beta?.useInventoryAsLimitedQty ?? false;\n      if (betaUseInventoryAsLimitedQty) {\n        const campaignUseInventoryAsLimitedQty = this?.args?.campaign?._data?.useInventoryAsLimitedQty ?? false;\n        if (!campaignUseInventoryAsLimitedQty) {\n          const hasSalesLimitedQty = this?.args?.model?._data?.hasSalesLimitedQty ?? false;\n          if (!hasSalesLimitedQty) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"products\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this?.args?.model?.calculatedAvailablePreOrderQtyOnlyBeforeCart || 0;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchProductTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchProductTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleHasSalesLimitedQty\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleHasSalesLimitedQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleUseInventoryAsLimitedQty\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleUseInventoryAsLimitedQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleAllowPreOrder\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleAllowPreOrder\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleHasPreOrderLimitedQty\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleHasPreOrderLimitedQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"calculateSalesLimitedQty\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"calculateSalesLimitedQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"calculateSalesPreOrderLimitedQty\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"calculateSalesPreOrderLimitedQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isLimitedQtyDisabled\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"isLimitedQtyDisabled\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isUseInventoryAsLimitedQtyDisabled\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"isUseInventoryAsLimitedQtyDisabled\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/limits-editor-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"McVXI0Y1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@model\\\",\\\"@limitAdjustType\\\",\\\"@tab\\\",\\\"@campaign\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\"],[\\\"productLimit_sub-group\\\",[23,1,[]],[23,6,[]],false,[28,\\\"product-title\\\",[[23,4,[\\\"product\\\",\\\"_data\\\",\\\"name\\\"]],[23,4,[\\\"product\\\",\\\"_data\\\",\\\"code\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,7,[\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]],[28,\\\"not\\\",[[23,4,[\\\"product\\\",\\\"_data\\\",\\\"isSet\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"overrideUseInventoryAsLimitedQty\\\",[23,1,[]],true,\\\"do not use inventory qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,2,[]],[23,4,[\\\"_data\\\",\\\"overrideUseInventoryAsLimitedQty\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"hasSalesLimitedQty\\\",[23,1,[]],true,\\\"has limit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenFalse\\\"],[[28,\\\"or\\\",[[23,2,[]],[23,0,[\\\"isLimitedQtyDisabled\\\"]]],null],[23,4,[\\\"_data\\\",\\\"hasSalesLimitedQty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleHasSalesLimitedQty\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"beta\\\",\\\"useInventoryAsLimitedQty\\\"]],[28,\\\"not\\\",[[23,7,[\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"isUseInventoryAsLimitedQtyDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"useInventoryAsLimitedQty\\\",[23,1,[]],true,\\\"sync limit qty with inventory\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,2,[]],[23,4,[\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleUseInventoryAsLimitedQty\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isLimitedQtyDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"inventory\\\",[23,1,[]],true,\\\"inventory\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"products/inventory/inventory-manager\\\",[],[[\\\"@product\\\",\\\"@isTable\\\",\\\"@allowAdjustment\\\",\\\"@fetchChildrenInventory\\\",\\\"@children\\\"],[[23,4,[\\\"product\\\"]],true,true,false,[23,0,[\\\"children\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"hasSalesLimitedQty\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[]],\\\"adjustTotalQty\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@formInputClassNames\\\",\\\"@label\\\"],[\\\"salesLimitedQty\\\",[23,1,[]],true,\\\"flex-container-row flex-container--nowrap\\\",\\\"limited qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-minus-circle\\\",[28,\\\"lte\\\",[[28,\\\"number\\\",[[23,4,[\\\"_data\\\",\\\"salesLimitedQty\\\"]]],null],0],null],[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesLimitedQty\\\"]],\\\"subtract\\\"],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onFocusOutSave\\\"],[\\\"input--80 campaign-details-limit__salesLimitQty\\\",\\\"has-text-right\\\",\\\"salesLimitedQty\\\",[23,2,[]],[23,4,[\\\"_data\\\",\\\"salesLimitedQty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesLimitedQty\\\"]],\\\"direct\\\"],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus-circle\\\",[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesLimitedQty\\\"]],\\\"add\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@formInputClassNames\\\",\\\"@label\\\"],[\\\"calculatedAvailableQtyBeforeCart\\\",[23,1,[]],true,\\\"flex-container-row flex-container--nowrap\\\",\\\"available qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-minus-circle\\\",[28,\\\"lte\\\",[[28,\\\"number\\\",[[23,4,[\\\"_data\\\",\\\"calculatedAvailableQtyBeforeCart\\\"]]],null],0],null],[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesLimitedQty\\\"]],\\\"subtractAvailableQty\\\"],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onFocusOutSave\\\",\\\"@errors\\\"],[\\\"input--80 campaign-details-limit__salesLimitQty\\\",\\\"has-text-right\\\",\\\"salesLimitedQty\\\",[23,2,[]],[23,4,[\\\"_data\\\",\\\"calculatedAvailableQtyBeforeCart\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesLimitedQty\\\"]],\\\"directAvailableQty\\\"],null],[23,3,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus-circle\\\",[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesLimitedQty\\\"]],\\\"addAvailableQty\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"allowPreOrder\\\",[23,1,[]],true,\\\"can preOrder\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,2,[]],[23,4,[\\\"_data\\\",\\\"allowPreOrder\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleAllowPreOrder\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"salesPreOrderLimitedQtyDesc\\\",[23,1,[]],true,\\\"preOrder-notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"optional\\\",[23,2,[]],[23,4,[\\\"_data\\\",\\\"salesPreOrderLimitedQtyDesc\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"_data\\\",\\\"hasSalesLimitedQty\\\"]],[23,4,[\\\"_data\\\",\\\"allowPreOrder\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"hasSalesPreOrderLimitedQty\\\",[23,1,[]],true,\\\"limit preOrder qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenFalse\\\"],[[23,2,[]],[23,4,[\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleHasPreOrderLimitedQty\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[]],\\\"adjustTotalQty\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@formInputClassNames\\\",\\\"@label\\\"],[\\\"salesPreOrderLimitedQty\\\",[23,1,[]],true,\\\"flex-container-row flex-container--nowrap\\\",\\\"limited preOrder qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-minus-circle\\\",[28,\\\"lte\\\",[[28,\\\"number\\\",[[23,4,[\\\"_data\\\",\\\"salesPreOrderLimitedQty\\\"]]],null],0],null],[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],\\\"subtract\\\"],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onFocusOutSave\\\"],[\\\"input--80 campaign-details-limit__salesLimitQty\\\",\\\"has-text-right\\\",\\\"salesPreOrderLimitedQty\\\",[23,2,[]],[23,4,[\\\"_data\\\",\\\"salesPreOrderLimitedQty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],\\\"direct\\\"],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus-circle\\\",[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],\\\"add\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@formInputClassNames\\\",\\\"@label\\\"],[\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\",[23,1,[]],true,\\\"flex-container-row flex-container--nowrap\\\",\\\"available preOrder qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-minus-circle\\\",[28,\\\"lte\\\",[[28,\\\"number\\\",[[23,0,[\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\"]]],null],0],null],[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],\\\"subtractAvailablePreOrderQty\\\"],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onFocusOutSave\\\",\\\"@errors\\\"],[\\\"input--80 campaign-details-limit__salesLimitQty\\\",\\\"has-text-right\\\",\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\",[23,2,[]],[23,0,[\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],\\\"directAvailablePreOrderQty\\\"],null],[23,3,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus-circle\\\",[28,\\\"fn\\\",[[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],\\\"addAvailablePreOrderQty\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"salesQty\\\",[23,1,[]],\\\"qty sold\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"channels/shop/qty-status\\\",[],[[\\\"@model\\\"],[[23,4,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"overSalesLimitedQtyStatus\\\",[23,1,[]],true,\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"products/over-sales-limited-qty-tag\\\",[],[[\\\"@model\\\",\\\"@overSalesLimitedQtyStatus\\\"],[[23,4,[]],[23,4,[\\\"_data\\\",\\\"overSalesLimitedQtyStatus\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/limits-editor-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vCjyzOVt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"campaignDetailLimit\\\",\\\"@campaign\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,5,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"limits\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"campaignsDetails\\\",[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]]]]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,8,[]],\\\"productLimit_group\\\",[23,1,[]],\\\"product limits\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"dirtyLimitsSortedByItem\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-item-editor/limits-editor/limits-editor-row\\\",[],[[\\\"@formInitData\\\",\\\"@model\\\",\\\"@campaign\\\",\\\"@limitAdjustType\\\",\\\"@isReadonly\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"limitAdjustType\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/limits-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/onsale-schedules/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"phlM30rm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@schedule\\\",\\\"@model\\\",\\\"@isHeader\\\",\\\"@isBody\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isStandardProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive discounted price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\" \\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,2,[\\\"_data\\\",\\\"isOnSale\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isStandardProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"priceDiscounted\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\" \\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/onsale-schedules/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/price-selector-dialog/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, _ramdaAdjunct) {\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;\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 ChannelsShopCampaignsCampaignsItemEditorPriceSelectorDialogComponent = _exports.default = (_dec = Ember.inject.service('products'), _dec2 = Ember.inject.service('campaigns-products'), _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember._action, _class = class ChannelsShopCampaignsCampaignsItemEditorPriceSelectorDialogComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"productsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaignsProductsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"priceHistoryData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"preferredPriceData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasNoPriceHistory\", _descriptor5, this);\n    }\n    *fetchHistoryOnInitTask() {\n      const {\n        preferredHistoryData,\n        priceHistoryData\n      } = yield this.args.onFetchPriceHistoryTask();\n      this.hasNoPriceHistory = _ramdaAdjunct.default.isNilOrEmpty(preferredHistoryData);\n      this.priceHistoryData = priceHistoryData;\n      this.preferredPriceData = preferredHistoryData;\n    }\n    get sortedData() {\n      const priceHistoryData = this?.priceHistoryData || [];\n      const forCampaigns = this.productsService.getFor('campaigns', priceHistoryData);\n      const forAutomations = this.productsService.getFor('automations', priceHistoryData);\n      const forDocuments = this.productsService.getFor('documents', priceHistoryData);\n      const nonePrice = [{\n        type: 'none',\n        price: '',\n        discPrice: '',\n        priceFinal: '',\n        inclPrice: '',\n        exclPrice: ''\n      }];\n      if (_ramdaAdjunct.default.isNilOrEmpty(forCampaigns) && _ramdaAdjunct.default.isNilOrEmpty(forDocuments) && _ramdaAdjunct.default.isNilOrEmpty(forAutomations)) {\n        return [];\n      }\n      return _ramdaAdjunct.default.concatAll([nonePrice, forCampaigns, forAutomations, forDocuments]);\n    }\n    get preferredPrice() {\n      const preferredPriceData = this.preferredPriceData || {};\n      // from doc (inclPrice), from campaign (priceFinal)\n      const preferredPrice = _ramdaAdjunct.default.defaultWhen(_ramdaAdjunct.default.isNilOrEmpty, preferredPriceData?.priceFinal, preferredPriceData?.inclPrice);\n      return preferredPrice;\n    }\n    get selectedPrice() {\n      const preferredPriceData = this?.preferredPriceData || {};\n      if (preferredPriceData.type === 'none') {\n        return 'none';\n      }\n      if (preferredPriceData?.doc?.contact) {\n        return preferredPriceData.inclPrice;\n      }\n      return preferredPriceData.price;\n    }\n    select(history, onHideDropdown) {\n      if (this.selectedPrice === 'none') {\n        if (onHideDropdown) {\n          return onHideDropdown();\n        }\n        return;\n      }\n      this.args.onSelect(history, onHideDropdown);\n    }\n    selectPreferredPriceData(history) {\n      this.preferredPriceData = history;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaignsProductsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"priceHistoryData\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"preferredPriceData\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasNoPriceHistory\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchHistoryOnInitTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchHistoryOnInitTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectPreferredPriceData\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"selectPreferredPriceData\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/price-selector-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OIRCulT+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"history\\\",\\\"@onCloseDialogAction\\\",\\\"@model\\\",\\\"@errors\\\",\\\"@automationModel\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"fetchHistoryOnInitTask\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchHistoryOnInitTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasNoPriceHistory\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-dialog-msg__container has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"no price history found\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isStandardProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"inclusive price\\\",[23,4,[]],\\\"price\\\",\\\"campaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[false,[23,3,[\\\"_data\\\",\\\"price\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"inclusive discounted price\\\",[23,4,[]],\\\"priceDiscounted\\\",\\\"campaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[\\\"isAutoAdd\\\"]],[23,3,[\\\"_data\\\",\\\"priceDiscounted\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"on sale\\\",[23,4,[]],\\\"onSale\\\",\\\"campaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,5,[\\\"isAutoAdd\\\"]],[23,3,[\\\"_data\\\",\\\"onSale\\\"]],\\\"on\\\",\\\"off\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-dialog-msg__container has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"set_price_confirmation\\\"],[[\\\"price\\\"],[[28,\\\"currency\\\",[[23,0,[\\\"preferredPrice\\\"]]],[[\\\"dontWrapHtmlSafe\\\"],[true]]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--wrap u-margin-top-10\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"sortedData\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"products/price-selectors/price-selector-campaigns/history-prices\\\",[],[[\\\"@history\\\",\\\"@isPriceSelectorDialog\\\",\\\"@preferredPriceData\\\",\\\"@onSelect\\\"],[[23,1,[]],true,[23,0,[\\\"preferredPriceData\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectPreferredPriceData\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasNoPriceHistory\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"isStandardProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"done\\\",[23,0,[\\\"fetchHistoryOnInitTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"close\\\",[23,0,[\\\"fetchHistoryOnInitTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"set price\\\"],null],\\\": \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedPrice\\\"]],\\\"none\\\"],null],[28,\\\"tt\\\",[[23,0,[\\\"selectedPrice\\\"]]],null],[28,\\\"currency\\\",[[23,0,[\\\"selectedPrice\\\"]]],[[\\\"dontWrapHtmlSafe\\\"],[true]]]],null]],null],false,[23,0,[\\\"fetchHistoryOnInitTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"select\\\"]],[23,0,[\\\"preferredPriceData\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/price-selector-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/recurring-schedules-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopCampaignsCampaignsItemEditorRecurringSchedulesEditorComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopCampaignsCampaignsItemEditorRecurringSchedulesEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['users', 'toggles/auto', 'toggles/onOff', 'channels/shop/campaigns/deliveryDateSettings', 'channels/shop/campaigns/deliveryDateSettingsItems', 'channels/shop/campaigns/overSalesLimitedQtyStatuses', 'channels/shop/campaigns/lists/itemEditorSubPanels', 'products/lists/tags', 'products/lists/display-tags', 'products/lists/product-display-position', 'extensions/apps/tw/invoicingAuto', 'shipping/feeType', 'commissions/methods', 'statuses', 'products/lists/pageImportBtnSubPanels', 'products/lists/sync']);\n      if (this.args?.isAutomations) {\n        this.crud.addLists(this, ['channels/shop/campaigns/automations/statuses']);\n      } else {\n        this.crud.addLists(this, ['channels/shop/campaigns/statuses']);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/recurring-schedules-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"92Lqn9tc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isAutomations\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"pod/get\\\",[\\\"beta.allowRecurringSchedules\\\"],null],[28,\\\"pod/get\\\",[\\\"features.allowRecurringSchedules\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\",\\\"@tab\\\"],[\\\"recurringSchedules\\\",false,[28,\\\"if\\\",[[23,6,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"campaignsDetails\\\",[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]]],null],true,[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"recurringSchedules_group\\\",[23,1,[]],\\\"recurring schedules\\\"]],{\\\"statements\\\":[[0,\\\" \\\\n          \\\"],[5,\\\"recurring/schedules-table\\\",[],[[\\\"@model\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\"],[[23,7,[]],[23,1,[]],[28,\\\"or\\\",[[28,\\\"contains\\\",[\\\"recurringSchedules\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null],[23,8,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/recurring-schedules-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/template-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ChannelsShopCampaignsCampaignsItemEditorTemplateEditorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember._action, _class = class ChannelsShopCampaignsCampaignsItemEditorTemplateEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      this.crud.addLists(this, ['users', 'toggles/auto', 'toggles/onOff', 'channels/shop/campaigns/deliveryDateSettings', 'channels/shop/campaigns/deliveryDateSettingsItems', 'channels/shop/campaigns/overSalesLimitedQtyStatuses', 'channels/shop/campaigns/lists/itemEditorSubPanels', 'products/lists/tags', 'products/lists/display-tags', 'products/lists/product-display-position', 'extensions/apps/tw/invoicingAuto', 'shipping/feeType', 'commissions/methods', 'statuses', 'products/lists/pageImportBtnSubPanels', 'products/lists/sync']);\n      if (this.args?.isAutomations) {\n        this.crud.addLists(this, ['channels/shop/campaigns/automations/statuses']);\n      } else {\n        this.crud.addLists(this, ['channels/shop/campaigns/statuses']);\n      }\n    }\n    newTemplate(model) {\n      const templateModel = model.addNewTemplate();\n      this.args.selectTemplate(templateModel);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"newTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"newTemplate\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/template-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"z8H7u/pO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"templateModel\\\",\\\"index\\\",\\\"@errors\\\",\\\"@selectTemplate\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@activeTemplateIndex\\\",\\\"@isShopDotComEnabled\\\",\\\"@showAdditionalDescription\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\",\\\"@tab\\\"],[\\\"webpages\\\",false,[28,\\\"if\\\",[[23,15,[]],[23,15,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"campaignsDetails\\\",[23,14,[]],[23,8,[]],[23,13,[]],[23,12,[]]]]]],null],true,[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[28,\\\"and\\\",[[28,\\\"contains\\\",[\\\"description\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null],[28,\\\"contains\\\",[\\\"additionalDescription\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"descriptions_group\\\",[23,1,[]],[23,8,[]],\\\"description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"contains\\\",[\\\"description\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\",\\\"@description\\\",\\\"@translateDescription\\\",\\\"@descriptionClassNames\\\"],[\\\"description\\\",\\\"product_short description\\\",[23,1,[]],[28,\\\"if\\\",[[23,10,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shop.com characters limit\\\"],null],\\\"4000\\\"],null]],null],false,\\\"has-text-info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@basicToolbar\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[23,8,[]],true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"contains\\\",[\\\"description\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null],[23,6,[]]],null],true,false],null],[23,7,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"contains\\\",[\\\"additionalDescription\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\",\\\"@description\\\",\\\"@translateDescription\\\",\\\"@descriptionClassNames\\\"],[\\\"showAdditionalDescription\\\",\\\"additional description\\\",[23,1,[]],[28,\\\"if\\\",[[23,10,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shop.com characters limit\\\"],null],\\\"4000\\\"],null]],null],false,\\\"has-text-info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"contains\\\",[\\\"additionalDescription\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null],[23,6,[]]],null],true,false],null],\\\"additional description\\\",[23,11,[]]]]],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,11,[]],[23,7,[\\\"_data\\\",\\\"additionalDescription\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@resource\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@content\\\"],[[23,8,[]],true,\\\"products\\\",[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"contains\\\",[\\\"additionalDescription\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null],[23,6,[]]],null],true,false],null],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,7,[\\\"_data\\\",\\\"additionalDescription\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"contains\\\",[\\\"templates\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isMenu\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"template_group\\\",true,[23,8,[]],\\\"template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"new template\\\",\\\"u-margin-top-10\\\",\\\"fas fa-plus\\\",[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"contains\\\",[\\\"templates\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null],[23,6,[]]],null],true,false],null],[28,\\\"fn\\\",[[23,0,[\\\"newTemplate\\\"]],[23,7,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@menuLabelKey\\\",\\\"@onSelect\\\",\\\"@translate\\\"],[[23,8,[]],[23,8,[\\\"subTabs\\\"]],[23,4,[]],[23,7,[\\\"_data\\\",\\\"templates\\\"]],\\\"_data.header\\\",[28,\\\"fn\\\",[[23,5,[]]],null],false]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,7,[\\\"_data\\\",\\\"templates\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,9,[]],[23,3,[]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"products/products-editor/template\\\",null,[[\\\"tab\\\",\\\"parentModel\\\",\\\"model\\\",\\\"isReadonly\\\",\\\"reselectFirst\\\",\\\"errors\\\"],[[23,8,[]],[23,7,[]],[23,2,[]],[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"contains\\\",[\\\"templates\\\",[23,7,[\\\"_data\\\",\\\"productSync\\\"]]],null],[23,6,[]]],null],true,false],null],[28,\\\"fn\\\",[[23,5,[]]],null],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2,3]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/template-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-item-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YEv/Q/Mh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@onDone\\\",\\\"@tab\\\",\\\"@campaignDetailAdapterName\\\",\\\"@onCloseAll\\\",\\\"@errors\\\",\\\"@automationModel\\\",\\\"@model\\\",\\\"@campaign\\\",\\\"@showPricelists\\\",\\\"@isAutomations\\\",\\\"@isDisplay\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,3,[]],[23,3,[\\\"subTabs\\\"]],[23,6,[]],[23,0,[\\\"subPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,3,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,9,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"edit\\\"],null],false],[0,\\\":\\\\n              \\\"],[1,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"product\\\",\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,8,[\\\"product\\\",\\\"_data\\\",\\\"code\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"model\\\",\\\"isDeleted\\\"]],[23,0,[\\\"model\\\",\\\"isOutOfDate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,0,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,3,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"model\\\",\\\"item\\\",\\\"product\\\",\\\"errors\\\",\\\"campaign\\\",\\\"automationModel\\\",\\\"isReadonly\\\",\\\"disabled\\\",\\\"isDisplay\\\",\\\"isEditing\\\",\\\"isDisabled\\\",\\\"isAutomations\\\",\\\"priceHistoryData\\\",\\\"selectTemplate\\\",\\\"onlyTemplate\\\",\\\"validationError\\\",\\\"showAdditionalDescription\\\",\\\"activeTemplateIndex\\\",\\\"showPricelists\\\"],[[23,1,[]],[23,0,[\\\"model\\\"]],[24,[\\\"item\\\"]],[24,[\\\"product\\\"]],[23,6,[]],[23,0,[\\\"selectedCampaign\\\"]],[23,7,[]],[24,[\\\"isReadonly\\\"]],[24,[\\\"disabled\\\"]],[23,12,[]],[23,0,[\\\"_isEditing\\\"]],[23,0,[\\\"isDisabled\\\"]],[23,11,[]],[24,[\\\"priceHistoryData\\\"]],[23,0,[\\\"selectTemplate\\\"]],[24,[\\\"onlyTemplate\\\"]],[24,[\\\"validationError\\\"]],[24,[\\\"showAdditionalDescription\\\"]],[23,0,[\\\"activeTemplateIndex\\\"]],[23,10,[]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,0,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@model\\\",\\\"@hasErrors\\\",\\\"@errors\\\"],[[23,7,[]],[22,\\\"hasErrors\\\"],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"selectedCampaign\\\"]],[24,[\\\"hasErrors\\\"]],[23,6,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"_isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@title\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[\\\"remove product from shop\\\",\\\"remove product from shop\\\",[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,4,[]],[23,0,[\\\"model\\\"]],true,[23,2,[]],[23,3,[]]]]]],null],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close\\\",[24,[\\\"onDone\\\"]]]]],false],[0,\\\"\\\\n\\\\n          \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOnMainAction\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[24,[\\\"tableViewOptions\\\",\\\"onMainActionIcon\\\"]],[24,[\\\"tableViewOptions\\\",\\\"onMainActionLabel\\\"]],[22,\\\"onMainAction\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"onCloseAll\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"],null]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onCloseAll\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],\\\"set prices later\\\",\\\"set prices later\\\",\\\"\\\",[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[false,\\\"save\\\",[22,\\\"disabled\\\"],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,4,[]],[23,0,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"showBulkDiscountConflictsModal\\\"],null],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"onSkip\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"btnClassNames\\\",\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"is-warning\\\",\\\"save as draft\\\",[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"saveAsDraftTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,4,[]],[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"showBulkDiscountConflictsModal\\\"],null],[23,3,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isTooltipVisible\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",true,[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,4,[]],[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"showBulkDiscountConflictsModal\\\"],null],[23,3,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"channels/shop/items/item-price\\\",null,[[\\\"item\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"isShowBulkDiscountConflictDialogInDetailEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog\\\",[],[[\\\"@model\\\",\\\"@onDone\\\",\\\"@detailModel\\\"],[[23,0,[\\\"selectedCampaign\\\"]],[23,2,[]],[23,0,[\\\"model\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-item-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-report/component\", [\"exports\", \"ember-concurrency\", \"ramda\"], function (_exports, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    guests: Ember.inject.service(),\n    router: Ember.inject.service(),\n    revenueBy: 'ordered',\n    productsBySetsWithChoices: false,\n    showReportBy: 'month',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['channels/shop/campaigns/reports/filters', 'reports/lists/show-reports-by', 'taxMethods/filters', 'periods/months', 'periods/years']);\n      this.set('showCampaignReportBy', Ember.Object.create({\n        revenueBy: this.revenueBy,\n        taxMethods: 'inclusive'\n      }));\n    },\n    dispatchStatusFilter: Ember.computed('showCampaignReportBy.revenueBy', function () {\n      const revenueBy = this.get('showCampaignReportBy.revenueBy');\n      if (revenueBy === 'ordered') {\n        return 'all';\n      }\n      return this.get('constants.dispatchStatus.dispatched');\n    }),\n    didInsertElement() {\n      this._super(...arguments);\n      let sourceKey = '';\n      if (!this.isGuest) {\n        const model = this.model;\n        sourceKey = model.getData('_key');\n        const hasPos = model.getData('hasPos');\n        if (hasPos) {\n          this.set('showReportBy', 'day');\n        }\n        if (!model?._data?.dateEndZ) {\n          this._setCurrentPeriod();\n        }\n      } else {\n        const tokenData = this.tokenData || {};\n        if (tokenData?.version) {\n          if (!tokenData?.campaignDateEndZ) {\n            this._setCurrentPeriod();\n          }\n        }\n      }\n      this.fetchRevenueReportTask.perform({\n        sourceKey\n      });\n    },\n    _setCurrentPeriod() {\n      const period = this.dateService.getPeriod();\n      const todayZ = this.dateService.getStartOfDayZ();\n      this.set('mm', period.mm);\n      this.set('yyyy', period.yyyy);\n      this.set('customDateStartZ', todayZ);\n    },\n    resetPeriodTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey,\n      onAfter\n    }) {\n      this.set('dateStart', '');\n      this.set('dateEnd', '');\n      this.set('mm', '');\n      this.set('yyyy', '');\n      yield this.fetchRevenueReportTask.perform({\n        sourceKey,\n        onAfter\n      });\n    }),\n    fetchRevenueReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey,\n      onAfter\n    }) {\n      const campaignsRevenue = yield this._fetchReportTask.perform('campaigns-revenue', {\n        sourceKey,\n        segments: ['activity', 'orderDateZ', 'expectedDispatchDateZ', 'dispatchDateZ', 'contact', 'item', 'itemWithGroupedSetWithChoices', 'trackingCodes', 'paymentMethodKey', 'status']\n      });\n      this.set('campaignsRevenue', campaignsRevenue);\n      this.set('activityReport', []);\n      this.set('itemReport', []);\n      this.set('paymentMethodKeyReport', []);\n      this.set('contactReport', []);\n      if (onAfter) {\n        onAfter();\n      }\n    }),\n    displayActivityReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const activityReport = yield this._fetchReportTask.perform('campaigns-activity', {\n        sourceKey,\n        segments: ['activity', 'itemWithGroupedSetWithChoices', 'trackingCodes']\n      });\n      this.set('activityReport', activityReport);\n    }),\n    displayItemReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const itemReport = yield this._fetchReportTask.perform('campaigns-activity', {\n        sourceKey,\n        segments: ['orderDateZ', 'expectedDispatchDateZ', 'dispatchDateZ', 'item', 'itemWithGroupedSetWithChoices', 'trackingCodes', 'status']\n      });\n      this.set('itemReport', itemReport);\n    }),\n    displayPaymentMethodKeyReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const paymentMethodKeyReport = yield this._fetchReportTask.perform('campaigns-activity', {\n        sourceKey,\n        segments: ['paymentMethodKey']\n      });\n      this.set('paymentMethodKeyReport', paymentMethodKeyReport);\n    }),\n    displayContactReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const isGuest = this?.isGuest;\n      let segments = ['customerType', 'memberType', 'gender', 'age'];\n      if (isGuest) {\n        segments = R.append('maskedContact')(segments);\n      } else {\n        segments = R.append('contact')(segments);\n        segments = R.append('contactTags')(segments);\n      }\n      const contactReport = yield this._fetchReportTask.perform('campaigns-activity', {\n        sourceKey,\n        segments\n      });\n      this.set('contactReport', contactReport);\n    }),\n    _fetchReportTask: (0, _emberConcurrency.task)(function* (reportName, {\n      sourceKey,\n      segments = []\n    }) {\n      const params = {\n        status: this.get('constants.documentsStatus.final'),\n        dispatchStatus: this.dispatchStatusFilter,\n        // segments: [\n        //   'activity',\n        //   'orderDateZ',\n        //   'expectedDispatchDateZ',\n        //   'dispatchDateZ',\n        //   'contact',\n        //   'item',\n        //   'itemWithGroupedSetWithChoices',\n        //   'trackingCodes',\n        //   'paymentMethodKey',\n        //   'status',\n        //   'customerType',\n        //   'memberType',\n        //   'gender',\n        //   'age'\n        // ]\n        segments\n      };\n      let dateStart = '';\n      let dateEnd = '';\n      const showReportBy = this.showReportBy;\n      if (R.equals(showReportBy, 'month')) {\n        const mm = this.mm;\n        const yyyy = this.yyyy;\n        if (mm && yyyy) {\n          const monthEnd = this.dateService.getMonthEnd(yyyy, mm).format('YYYY-MM-DD');\n          dateStart = `${yyyy}-${mm}-01`;\n          dateEnd = monthEnd;\n        }\n      }\n      if (R.equals(showReportBy, 'day')) {\n        const customDateStartZ = R.clone(this?.customDateStartZ || '');\n        if (customDateStartZ) {\n          dateStart = this.dateService.getMoment(customDateStartZ).format('YYYY-MM-DD');\n          dateEnd = R.clone(dateStart);\n        }\n      }\n      const revenueBy = this.showCampaignReportBy?.revenueBy;\n      if (revenueBy === 'dispatched') {\n        params.dispatchDateStart = dateStart;\n        params.dispatchDateEnd = dateEnd;\n      } else {\n        params.dateStart = dateStart;\n        params.dateEnd = dateEnd;\n      }\n      this.set('dateStart', dateStart);\n      this.set('dateEnd', dateEnd);\n      let report;\n      if (this.isGuest) {\n        params.report = reportName;\n        const tokenData = this.tokenData || {};\n        params.showCampaignPeriodDataOnly = R.pathOr(false, ['showCampaignPeriodDataOnly'])(tokenData);\n        params.campaignPeriodDateStart = R.pathOr('', ['campaignDateStartZ'])(tokenData);\n        params.campaignPeriodDateEnd = R.pathOr('', ['campaignDateEndZ'])(tokenData);\n        try {\n          report = yield this.guests.call('GET', 'api/guests/channels/shop/campaigns/report', params);\n        } catch (e) {\n          return this.guests.logout();\n        }\n      } else {\n        const model = this.model;\n        params.showCampaignPeriodDataOnly = R.pathOr(false, ['_data', 'showCampaignPeriodDataOnly'])(model);\n        params.campaignPeriodDateStart = R.pathOr('', ['_data', 'dateStartZ'])(model);\n        params.campaignPeriodDateEnd = R.pathOr('', ['_data', 'dateEndZ'])(model);\n        params.sourceKey = sourceKey;\n        report = yield this.server.call('GET', `api/protected/reports/${reportName}`, params);\n      }\n      return report.data;\n    }),\n    isTaxExclusive: Ember.computed('showCampaignReportBy.taxMethods', function () {\n      if (this.get('showCampaignReportBy.taxMethods') === 'exclusive') {\n        return true;\n      }\n      return false;\n    }),\n    showCampaignPeriodDataOnly: Ember.computed('isGuest', 'tokenData.showCampaignPeriodDataOnly', 'model._data.showCampaignPeriodDataOnly', function () {\n      let showCampaignPeriodDataOnly;\n      if (this.isGuest) {\n        showCampaignPeriodDataOnly = R.pathOr(false, ['tokenData', 'showCampaignPeriodDataOnly'])(this);\n      } else {\n        showCampaignPeriodDataOnly = R.pathOr(false, ['model', '_data', 'showCampaignPeriodDataOnly'])(this);\n      }\n      return showCampaignPeriodDataOnly;\n    }),\n    campaignsReportsFilters: Ember.computed('showCampaignPeriodDataOnly', 'crud.lists.channels-shop-campaigns-reports-filters.[]', function () {\n      const campaignsReportsFilters = R.pathOr([], ['crud', 'lists', 'channels-shop-campaigns-reports-filters'])(this);\n      const showCampaignPeriodDataOnly = this.showCampaignPeriodDataOnly;\n      if (showCampaignPeriodDataOnly) {\n        return R.reject(R.pathEq(['_data', 'value'], 'dispatched'))(campaignsReportsFilters);\n      }\n      return campaignsReportsFilters;\n    }),\n    customMinDateZ: Ember.computed('showCampaignPeriodDataOnly', 'model._data.dateStartZ', function () {\n      const showCampaignPeriodDataOnly = this.showCampaignPeriodDataOnly;\n      if (showCampaignPeriodDataOnly) {\n        const dateStartZ = R.pathOr('', ['model', '_data', 'dateStartZ'])(this);\n        return dateStartZ;\n      }\n      return '';\n    }),\n    customMaxDateZ: Ember.computed('showCampaignPeriodDataOnly', 'model._data.dateEndZ', function () {\n      const showCampaignPeriodDataOnly = this.showCampaignPeriodDataOnly;\n      if (showCampaignPeriodDataOnly) {\n        const dateEndZ = R.pathOr('', ['model', '_data', 'dateEndZ'])(this);\n        return dateEndZ;\n      }\n      return '';\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/campaigns-report/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jwX44ok/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"doc\\\",\\\"@isGuest\\\",\\\"@chartOptions\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[\\\"list-selector list-selector--horizontal\\\",\\\"revenueBy\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true,[23,0,[\\\"campaignsReportsFilters\\\"]],[23,0,[\\\"showCampaignReportBy\\\"]],false,false,[28,\\\"perform\\\",[[23,0,[\\\"fetchRevenueReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[\\\"list-selector list-selector--horizontal\\\",\\\"taxMethods\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],[23,0,[\\\"showCampaignReportBy\\\"]],false,false]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"reports-lists-show-reports-by\\\"]],[23,0,[\\\"showReportBy\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",false,false]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"showReportBy\\\"]],\\\"month\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[23,0,[\\\"fetchRevenueReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchRevenueReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[23,4,[\\\"_data\\\",\\\"_key\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@btnClassNames\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[true,true,\\\"u-margin-right-5\\\",[23,0,[\\\"campaignsReportsFilters\\\"]],[24,[\\\"showCampaignReportBy\\\",\\\"revenueBy\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",false,false,[28,\\\"perform\\\",[[23,0,[\\\"fetchRevenueReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[23,4,[\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@dateConstraint\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]],[28,\\\"hash\\\",null,[[\\\"min\\\",\\\"max\\\"],[[23,0,[\\\"customMinDateZ\\\"]],[23,0,[\\\"customMaxDateZ\\\"]]]]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@btnClassNames\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[true,true,\\\"u-margin-right-5\\\",[23,0,[\\\"campaignsReportsFilters\\\"]],[24,[\\\"showCampaignReportBy\\\",\\\"revenueBy\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",false,false,[28,\\\"perform\\\",[[23,0,[\\\"fetchRevenueReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[23,4,[\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"is-primary u-margin-left-3\\\",[24,[\\\"fetchMonthTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchRevenueReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[23,4,[\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"dateStart\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"is-danger u-margin-left-5\\\",\\\"fas fa-times\\\",[23,0,[\\\"resetPeriodTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"resetPeriodTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[23,4,[\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-half-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchRevenueReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-stats\\\",null,[[\\\"title\\\",\\\"isTaxExclusive\\\",\\\"report\\\",\\\"fetchReportTask\\\",\\\"isGuest\\\",\\\"tokenData\\\",\\\"model\\\"],[\\\"stats for campaign\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"campaignsRevenue\\\"]],[24,[\\\"fetchRevenueReportTask\\\"]],[23,0,[\\\"isGuest\\\"]],[23,0,[\\\"tokenData\\\"]],[23,0,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-half-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"reports/dashboard/card-stat\\\",null,[[\\\"title\\\"],[\\\"total\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__dash-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"campaignsRevenue\\\",\\\"segments\\\",\\\"status\\\",\\\"invoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,1,[\\\"docCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"docDispatchStatus\\\",[[23,1,[\\\"segmentValue\\\",\\\"status\\\"]],[23,1,[\\\"segmentValue\\\",\\\"dispatchStatus\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"docCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchRevenueReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"showCampaignReportBy\\\",\\\"revenueBy\\\"]],\\\"ordered\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"orders by date\\\",\\\"bar\\\",[23,3,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"campaignsRevenue\\\"]],[23,0,[\\\"campaignsRevenue\\\",\\\"segments\\\",\\\"orderDateZ\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"showCampaignReportBy\\\",\\\"revenueBy\\\"]],\\\"expectedDispatch\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"expected dispatch date\\\",\\\"bar\\\",[23,3,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"campaignsRevenue\\\"]],[23,0,[\\\"campaignsRevenue\\\",\\\"segments\\\",\\\"expectedDispatchDateZ\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"dispatched by date\\\",\\\"bar\\\",[23,3,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"campaignsRevenue\\\"]],[23,0,[\\\"campaignsRevenue\\\",\\\"segments\\\",\\\"dispatchDateZ\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"activityReport\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchActivityReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-page-views\\\",null,[[\\\"title\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"page views\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"activityReport\\\",\\\"segments\\\",\\\"activity\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchItemReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"productsBySetsWithChoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-by-group\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@segmentByLabelKey\\\",\\\"@chartOptions\\\",\\\"@averageByItemQty\\\",\\\"@isTaxExclusive\\\",\\\"@showAverages\\\",\\\"@isItemSets\\\",\\\"@productsBySetsWithChoices\\\",\\\"@data\\\",\\\"@showProductsBySetsWithChoicesToggle\\\"],[\\\"revenue by product\\\",\\\"horizontalBar\\\",\\\"item\\\",[22,\\\"chartOptions\\\"],true,[23,0,[\\\"isTaxExclusive\\\"]],true,true,[23,0,[\\\"productsBySetsWithChoices\\\"]],[23,0,[\\\"itemReport\\\",\\\"segments\\\",\\\"itemWithGroupedSetWithChoices\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-by-group\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@averageByItemQty\\\",\\\"@isTaxExclusive\\\",\\\"@isItem\\\",\\\"@productsBySetsWithChoices\\\",\\\"@data\\\",\\\"@showProductsBySetsWithChoicesToggle\\\"],[\\\"revenue by product\\\",\\\"horizontalBar\\\",[22,\\\"chartOptions\\\"],true,[23,0,[\\\"isTaxExclusive\\\"]],true,[23,0,[\\\"productsBySetsWithChoices\\\"]],[23,0,[\\\"itemReport\\\",\\\"segments\\\",\\\"item\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchPaymentMethodKeyReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by payment method\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"paymentMethodKeyReport\\\",\\\"segments\\\",\\\"paymentMethodKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchContactReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by contact\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"maskedContact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by contact\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchContactReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-tags\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"hasWarning\\\",\\\"warningText\\\",\\\"isContactTags\\\",\\\"data\\\"],[\\\"revenue by contact tags\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,\\\"may contain duplicate data\\\",true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contactTags\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchContactReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by customer type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"customerType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchContactReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by member type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"memberType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchContactReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by gender\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"gender\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchContactReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by age\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"age\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"activityReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by activity\\\",[24,[\\\"displayActivityReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"displayActivityReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by product\\\",[24,[\\\"displayItemReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"displayItemReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by payment method\\\",[24,[\\\"displayPaymentMethodKeyReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"displayPaymentMethodKeyReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by contact\\\",[23,0,[\\\"displayContactReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayContactReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/campaigns-report/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/copy-link-btn/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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;\n  /* global QRCode, Blob, saveAs, XMLSerializer */\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 ChannelsShopCampaignsCopyLinkBtnComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember._action, _class = class ChannelsShopCampaignsCopyLinkBtnComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"promoCode\", _descriptor2, this);\n      _initializerDefineProperty(this, \"utmSource\", _descriptor3, this);\n      _initializerDefineProperty(this, \"utmMedium\", _descriptor4, this);\n      _initializerDefineProperty(this, \"utmCampaign\", _descriptor5, this);\n    }\n    get baseLink() {\n      return this.args.model?.url || '';\n    }\n    get link() {\n      const base = this.baseLink;\n      if (RA.isNilOrEmpty(base)) {\n        return '';\n      }\n      try {\n        const url = new URL(base);\n        const appendIfPresent = (key, value) => {\n          if (RA.isNotNilOrEmpty(value)) {\n            url.searchParams.set(key, value);\n          }\n        };\n        appendIfPresent('promo', this.promoCode);\n        appendIfPresent('utm_source', this.utmSource);\n        appendIfPresent('utm_medium', this.utmMedium);\n        appendIfPresent('utm_campaign', this.utmCampaign);\n        return url.toString();\n      } catch (e) {\n        return base;\n      }\n    }\n    copyLink(onCloseDialogAction) {\n      this.applicationService.copyText(this.link, false);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    downloadQr() {\n      const link = this.link;\n      if (RA.isNilOrEmpty(link)) {\n        return;\n      }\n      const svg = QRCode.generateSVG(link);\n      if (!svg) {\n        return;\n      }\n      const svgString = new XMLSerializer().serializeToString(svg);\n      const blob = new Blob([svgString], {\n        type: 'image/svg+xml;charset=utf-8'\n      });\n      const campaignName = this.args.model?._data?.name;\n      const filename = RA.isNotNilOrEmpty(campaignName) ? `${campaignName}-qr.svg` : 'campaign-qr.svg';\n      saveAs(blob, filename);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"promoCode\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"utmSource\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"utmMedium\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"utmCampaign\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"copyLink\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"copyLink\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"downloadQr\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"downloadQr\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/copy-link-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7LmjGVkH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@label\\\",\\\"@resourceList\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@modalDialogTitle\\\"],[\\\"\\\",\\\"far fa-copy\\\",[23,3,[]],\\\"copy shop link\\\",\\\"copy shop link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"campaigns_shareLink\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"tab\\\",\\\"resourceList\\\"],[\\\"campaigns\\\",[23,5,[]],[23,4,[]]]]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"shareLinkOptions_group\\\",[23,2,[]],\\\"link options\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"promoCode\\\",[23,2,[]],\\\"promo code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\"],[\\\"optional\\\",[23,0,[\\\"promoCode\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"utmSource\\\",[23,2,[]],\\\"utm source\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\"],[\\\"optional\\\",[23,0,[\\\"utmSource\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"utmMedium\\\",[23,2,[]],\\\"utm medium\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\"],[\\\"optional\\\",[23,0,[\\\"utmMedium\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"utmCampaign\\\",[23,2,[]],\\\"utm campaign\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\"],[\\\"optional\\\",[23,0,[\\\"utmCampaign\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"shareLinkPreview_group\\\",[23,2,[]],\\\"preview\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"link\\\",[23,2,[]],\\\"link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--break-all\\\"],[8],[1,[23,0,[\\\"link\\\"]],false],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"qr code\\\",[23,2,[]],\\\"qr code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"qr-code-generator\\\",[],[[\\\"@data\\\",\\\"@inlineSvg\\\"],[[23,0,[\\\"link\\\"]],true]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"cancel\\\",[23,1,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-download\\\",\\\"download qr code\\\",[23,0,[\\\"downloadQr\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\"],[\\\"far fa-copy\\\",\\\"copy link\\\",\\\"is-primary\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"copyLink\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/copy-link-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 ChannelsShopCampaignsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('products'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class ChannelsShopCampaignsFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"recurringFilters\", _descriptor4, this);\n      this.setup();\n    }\n    setup() {\n      this.crud.addLists(this, ['filters/count', 'channels/shop/campaigns/lists/statuses']);\n    }\n    addSalesPerson(filters, person) {\n      let salesPersons = filters?._data?.salesPersons || [];\n      salesPersons.pushObject(person);\n      salesPersons = R.uniq(salesPersons);\n      filters.setData('salesPersons', salesPersons);\n    }\n    removeSalesPerson(filters, person) {\n      let salesPersons = filters?._data?.salesPersons || [];\n      salesPersons.removeObject(person);\n      filters.setData('salesPersons', salesPersons);\n    }\n    get showStatusTags() {\n      // @TODO: move to filter model\n      const statuses = this?.crud?.lists?.statuses || [];\n      const selectedStatuses = this.args.filters?._data?.statuses || [];\n      if (selectedStatuses.length === 0) {\n        return false;\n      }\n      if (selectedStatuses.length === statuses.length) {\n        return false;\n      }\n      return true;\n    }\n    get showResetFilter() {\n      // @TODO: move to filter model\n      const filtersData = this?.args?.filters?._data;\n      if (RA.isNilOrEmpty(filtersData)) {\n        return false;\n      }\n      const statuses = filtersData.statuses;\n      const hasImages = filtersData.hasImages;\n      const item = filtersData.item;\n      const itemCode = filtersData.itemCode;\n      const price = filtersData.price;\n      const setTypes = filtersData.setTypes;\n      const tags = filtersData.tags;\n      if (statuses.length !== 5 || tags.length !== 0 || setTypes.length !== 0 || RA.isNilOrEmpty(hasImages) !== true || item !== '' || itemCode !== '' || price !== '') {\n        return true;\n      }\n      return false;\n    }\n    *updateFiltersTask() {\n      // @TODO: how can this be improved?\n      const filters = this.args.filters || {};\n      Ember.set(filters, '_data', filters?._data || {}); // reset data\n\n      return yield this.args.onSearchTask(...arguments);\n    }\n    *clearSelectedItemsTask() {\n      yield this?.crud?.reloadSearchRecordsTask.perform({\n        filters: this.args.filters,\n        reset: true\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"recurringFilters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addSalesPerson\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"addSalesPerson\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSalesPerson\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSalesPerson\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateFiltersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedItemsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedItemsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dMAJ4OSd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"name\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"url\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"url\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"users/users-selector\\\",[],[[\\\"@placeholder\\\",\\\"@allowIsAssociates\\\",\\\"@onAssignSalesPerson\\\",\\\"@onUnassignSalesPerson\\\",\\\"@salesPersons\\\"],[\\\"associate\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"addSalesPerson\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"removeSalesPerson\\\"]],[23,1,[]]],null],[23,1,[\\\"_data\\\",\\\"salesPersons\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@hasDivider\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[false,true,\\\"status\\\",\\\"filter-group-legend\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-statuses\\\"]],[23,1,[]],true,true,\\\"_data.value\\\",\\\"_data.statuses\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,false,[23,1,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--tags\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags-container tags-container--margin-right-all\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-statuses\\\"]],[23,1,[\\\"_data\\\",\\\"statuses\\\"]],true]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"hide\\\",\\\"fas fa-angle-up\\\",[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,1,[]],\\\"showFilters\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,1,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,4,[]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,1,[]],true]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,4,[]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/influencers/table-view/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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 ChannelsShopCampaignsInfluencersTableViewComponent = _exports.default = (_dec = Ember.inject.service('influencer'), _dec2 = Ember.inject.service, _class = class ChannelsShopCampaignsInfluencersTableViewComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"influencerService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/campaigns/influencers');\n    }\n    *updateInfluencerStatusTask(influencerModel) {\n      const campaignModel = this?.args?.model || {};\n      if (RA.isNotNilOrEmpty(campaignModel)) {\n        const shopKey = campaignModel.getData('_key') || '';\n        const memberId = influencerModel.getData('memberId') || '';\n        if (shopKey && memberId) {\n          yield this.crud.updateRecordTask.perform({\n            adapterName: this.adapterName,\n            appendPath: memberId,\n            model: influencerModel\n          });\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"influencerService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateInfluencerStatusTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateInfluencerStatusTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/influencers/table-view/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"u45lKOCc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"influencer\\\",\\\"@isReadonly\\\",\\\"@influencers\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[],[[\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"isAssociatesSettings\\\",\\\"influencersTableView_group\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"updateInfluencerStatusTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"active\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"show commissions tab in guests view\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"show activity tab in guest view\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,2,[]],[23,0,[\\\"updateInfluencerStatusTask\\\",\\\"isRunning\\\"]],[23,1,[\\\"_data\\\",\\\"isActive\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateInfluencerStatusTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,2,[]],[23,0,[\\\"updateInfluencerStatusTask\\\",\\\"isRunning\\\"]],[23,1,[\\\"_data\\\",\\\"showCommissionsInGuestsView\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateInfluencerStatusTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,2,[]],[23,0,[\\\"updateInfluencerStatusTask\\\",\\\"isRunning\\\"]],[23,1,[\\\"_data\\\",\\\"showActivityInGuestsView\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateInfluencerStatusTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/influencers/table-view/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/items/limit-qty-progress-bar-modal-trigger/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopCampaignsItemsLimitQtyProgressBarComponent = _exports.default = (_dec = Ember.inject.service('big'), _class = class ChannelsShopCampaignsItemsLimitQtyProgressBarComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"bigService\", _descriptor, this);\n    }\n    get isSoldOut() {\n      const numerator = Number(this.args.options?.numerator) || 0;\n      if (numerator <= 0) {\n        return true;\n      }\n      return false;\n    }\n    get currentProgress() {\n      const denominator = Number(this.args.options?.denominator) || 0;\n      if (!denominator) {\n        return 0;\n      }\n      const numerator = Number(this.args.options?.numerator) || 0;\n      return this.bigService.newBig(numerator).div(denominator).toFixed(1);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"bigService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/items/limit-qty-progress-bar-modal-trigger/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"d1fw1jET\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@options\\\",\\\"@onSubmit\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"progress-bar-container sales-limits-progress-bar-container u-tappable u-no-wrap\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,2,[]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"isSetWithChoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc sales-limits-progress-bar-container-descriptions\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"show limits\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"alternateLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc sales-limits-progress-bar-container-descriptions\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[5,[23,1,[\\\"numeratorLabel\\\"]]]]],[0,\\\":\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"alternateLabel\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc sales-limits-progress-bar-container-descriptions\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isSoldOut\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc has-text-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[5,[23,1,[\\\"numeratorLabel\\\"]]]]],[0,\\\":  \\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"numerator\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        / \\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"showDenominatorLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[5,[23,1,[\\\"denominatorLabel\\\"]]]]],[0,\\\":  \\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"denominator\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"progress\\\",true],[10,\\\"class\\\",\\\"progress\\\"],[11,\\\"value\\\",[23,1,[\\\"numerator\\\"]]],[11,\\\"max\\\",[23,1,[\\\"denominator\\\"]]],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"currentProgress\\\"]]],null],false],[0,\\\"%\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/items/limit-qty-progress-bar-modal-trigger/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/items/limit-qty-selector/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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 ChannelsShopCampaignsItemsLimitQtySelectorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ChannelsShopCampaignsItemsLimitQtySelectorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/campaigns/details/limits');\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/limit-adjust-types']);\n      this.limitAdjustType = this?.args?.limitAdjustType || 'adjustTotalQty';\n    }\n    get modalDialogTitle() {\n      const type = this?.args?.type || '';\n      if (R.equals(type, 'preOrder')) {\n        return 'adjust limit preorder qty';\n      }\n      return 'adjust limit qty';\n    }\n    get modalLabel() {\n      const model = this?.args?.model || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        const type = this?.args?.type || 'normal';\n        const limitAdjustType = this?.args?.limitAdjustType || 'adjustTotalQty';\n        if (R.equals(type, 'preOrder')) {\n          if (R.equals(limitAdjustType, 'adjustTotalQty')) {\n            const salesPreOrderLimitedQty = R.pathOr('', ['_data', 'salesPreOrderLimitedQty'])(model);\n            return R.is(Number, salesPreOrderLimitedQty) ? R.toString(salesPreOrderLimitedQty) : salesPreOrderLimitedQty;\n          } else {\n            return this?.args?.tempCalculatedAvailablePreOrderQtyOnlyBeforeCart || '';\n          }\n        } else {\n          if (R.equals(limitAdjustType, 'adjustTotalQty')) {\n            const salesLimitedQty = R.pathOr('', ['_data', 'salesLimitedQty'])(model);\n            return R.is(Number, salesLimitedQty) ? R.toString(salesLimitedQty) : salesLimitedQty;\n          } else {\n            return model?._data?.calculatedAvailableQtyBeforeCart || '';\n          }\n        }\n      }\n      return '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/items/limit-qty-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"L90diZlW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@onUpdateBulkEditingTask\\\",\\\"@model\\\",\\\"@tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\",\\\"@onCalculateSalesPreOrderLimitedQty\\\",\\\"@isLimitedQtyDisabled\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@onGoToNextRow\\\",\\\"@original\\\",\\\"@onCalculateSalesLimitedQty\\\",\\\"@onEdit\\\",\\\"@onCancelEditingLimitQty\\\",\\\"@isGuest\\\",\\\"@type\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@btnClassNames\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@modalDialogTitle\\\",\\\"@translate\\\",\\\"@onSubmit\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\"],[\\\"has-border\\\",[28,\\\"or\\\",[[23,2,[\\\"isRunning\\\"]],[23,7,[]]],null],[23,0,[\\\"modalLabel\\\"]],[23,0,[\\\"modalDialogTitle\\\"]],false,[28,\\\"fn\\\",[[23,12,[]]],null],[28,\\\"fn\\\",[[23,13,[]]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"choose how to adjust qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,2,[\\\"isRunning\\\"]],[23,7,[]],[23,14,[]]],null],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-limit-adjust-types\\\"]],true,[23,0,[\\\"limitAdjustType\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"original value\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"new value\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"limited qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,10,[\\\"_data\\\",\\\"salesLimitedQty\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,14,[]]],null],[28,\\\"eq\\\",[[23,0,[\\\"limitAdjustType\\\"]],\\\"adjustTotalQty\\\"],null],[28,\\\"eq\\\",[[23,15,[]],\\\"normal\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@rowClassNames\\\",\\\"@formInputClassNames\\\"],[\\\"u-desc u-desc--bold\\\",\\\"flex-container-row flex-container--nowrap flex-container--justify-center\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-minus-circle\\\",[28,\\\"fn\\\",[[23,11,[]],\\\"subtract\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onFocusOutSave\\\",\\\"@errors\\\",\\\"@onKeyUp\\\"],[\\\"input--80 campaign-details-limit__salesLimitQty\\\",\\\"has-text-right\\\",\\\"salesLimitedQty\\\",[28,\\\"or\\\",[[23,2,[\\\"isRunning\\\"]],[23,7,[]],[23,6,[]]],null],[23,3,[\\\"_data\\\",\\\"salesLimitedQty\\\"]],[28,\\\"fn\\\",[[23,11,[]],\\\"direct\\\"],null],[23,8,[]],[28,\\\"fn\\\",[[23,9,[]],\\\"campaign-details-limit__salesLimitQty\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus-circle\\\",[28,\\\"fn\\\",[[23,11,[]],\\\"add\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"number\\\",[[23,3,[\\\"_data\\\",\\\"salesLimitedQty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"limited preOrder qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,10,[\\\"_data\\\",\\\"salesPreOrderLimitedQty\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,14,[]]],null],[28,\\\"eq\\\",[[23,0,[\\\"limitAdjustType\\\"]],\\\"adjustTotalQty\\\"],null],[28,\\\"eq\\\",[[23,15,[]],\\\"preOrder\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@rowClassNames\\\",\\\"@formInputClassNames\\\"],[\\\"u-desc u-desc--bold\\\",\\\"flex-container-row flex-container--nowrap flex-container--justify-center\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-minus-circle\\\",[28,\\\"fn\\\",[[23,5,[]],\\\"subtract\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onFocusOutSave\\\",\\\"@errors\\\",\\\"@onKeyUp\\\"],[\\\"input--80 campaign-details-limit__salesLimitQty\\\",\\\"has-text-right\\\",\\\"salesPreOrderLimitedQty\\\",[28,\\\"or\\\",[[23,2,[\\\"isRunning\\\"]],[23,7,[]],[23,6,[]]],null],[23,3,[\\\"_data\\\",\\\"salesPreOrderLimitedQty\\\"]],[28,\\\"fn\\\",[[23,5,[]],\\\"direct\\\"],null],[23,8,[]],[28,\\\"fn\\\",[[23,9,[]],\\\"campaign-details-limit__salesLimitQty\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus-circle\\\",[28,\\\"fn\\\",[[23,5,[]],\\\"add\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"number\\\",[[23,3,[\\\"_data\\\",\\\"salesPreOrderLimitedQty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"qty sold\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/qty-status\\\",[],[[\\\"@model\\\"],[[23,10,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/qty-status\\\",[],[[\\\"@model\\\"],[[23,3,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"available_sales_qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,10,[\\\"_data\\\",\\\"calculatedAvailableQtyBeforeCart\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,14,[]]],null],[28,\\\"eq\\\",[[23,0,[\\\"limitAdjustType\\\"]],\\\"adjustCurrentlyAvailableQty\\\"],null],[28,\\\"eq\\\",[[23,15,[]],\\\"normal\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@rowClassNames\\\",\\\"@formInputClassNames\\\"],[\\\"u-desc u-desc--bold\\\",\\\"flex-container-row flex-container--nowrap flex-container--justify-center\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-minus-circle\\\",[28,\\\"fn\\\",[[23,11,[]],\\\"subtractAvailableQty\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onFocusOutSave\\\",\\\"@errors\\\",\\\"@onKeyUp\\\"],[\\\"input--80 campaign-details-limit__salesLimitQty\\\",\\\"has-text-right\\\",\\\"salesLimitedQty\\\",[28,\\\"or\\\",[[23,2,[\\\"isRunning\\\"]],[23,7,[]],[23,6,[]]],null],[23,3,[\\\"_data\\\",\\\"calculatedAvailableQtyBeforeCart\\\"]],[28,\\\"fn\\\",[[23,11,[]],\\\"directAvailableQty\\\"],null],[23,8,[]],[28,\\\"fn\\\",[[23,9,[]],\\\"campaign-details-limit__salesLimitQty\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus-circle\\\",[28,\\\"fn\\\",[[23,11,[]],\\\"addAvailableQty\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"number\\\",[[23,3,[\\\"_data\\\",\\\"calculatedAvailableQtyBeforeCart\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"available preOrder qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,10,[\\\"_data\\\",\\\"allowPreOrder\\\"]],[23,10,[\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"number\\\",[[23,4,[]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,10,[\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]]],null],[23,10,[\\\"_data\\\",\\\"allowPreOrder\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            ∞\\\\n          \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,14,[]]],null],[28,\\\"eq\\\",[[23,0,[\\\"limitAdjustType\\\"]],\\\"adjustCurrentlyAvailableQty\\\"],null],[28,\\\"eq\\\",[[23,15,[]],\\\"preOrder\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@rowClassNames\\\",\\\"@formInputClassNames\\\"],[\\\"u-desc u-desc--bold\\\",\\\"flex-container-row flex-container--nowrap flex-container--justify-center\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-minus-circle\\\",[28,\\\"fn\\\",[[23,5,[]],\\\"subtractAvailablePreOrderQty\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@context\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onFocusOutSave\\\",\\\"@errors\\\",\\\"@onKeyUp\\\"],[\\\"input--80 campaign-details-limit__salesLimitQty\\\",\\\"has-text-right\\\",\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\",[28,\\\"or\\\",[[23,2,[\\\"isRunning\\\"]],[23,7,[]],[23,6,[]]],null],[23,4,[]],[28,\\\"fn\\\",[[23,5,[]],\\\"directAvailablePreOrderQty\\\"],null],[23,8,[]],[28,\\\"fn\\\",[[23,9,[]],\\\"campaign-details-limit__salesLimitQty\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus-circle\\\",[28,\\\"fn\\\",[[23,5,[]],\\\"addAvailablePreOrderQty\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"allowPreOrder\\\"]],[23,3,[\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[23,4,[]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,3,[\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]]],null],[23,3,[\\\"_data\\\",\\\"allowPreOrder\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              ∞\\\\n            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[23,14,[]],[23,6,[]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,2,[]],[28,\\\"hash\\\",null,[[\\\"onCloseDialogAction\\\"],[[23,1,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/items/limit-qty-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/items/table-view/detail-limit-row/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    big: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'channels/shop/campaigns/details/limits',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/limit-types', 'channels/shop/campaigns/lists/limit-types', 'channels/shop/campaigns/lists/inventory-sync-toggle']);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const model = this?.model || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        const product = yield this.fetchProductTask.perform({\n          model\n        });\n        model.set('product', product);\n      }\n      const tempCalculatedAvailablePreOrderQtyOnlyBeforeCart = model?.calculatedAvailablePreOrderQtyOnlyBeforeCart || 0;\n      this.set('tempCalculatedAvailablePreOrderQtyOnlyBeforeCart', tempCalculatedAvailablePreOrderQtyOnlyBeforeCart);\n    }),\n    isSingleOrBulkEditing: Ember.computed('isSingleEditing', 'tableViewOptions.isBulkEditing', function () {\n      return this.isSingleEditing || this.tableViewOptions.isBulkEditing;\n    }),\n    isReadonly: Ember.computed('isSingleOrBulkEditing', function () {\n      return !this.isSingleOrBulkEditing;\n    }),\n    updateBulkEditingTask: (0, _emberConcurrency.task)(function* ({\n      model,\n      onCloseDialogAction\n    }) {\n      if (this.tableViewOptions?.isBulkEditing) {\n        if (RA.isNilOrEmpty(model)) {\n          model = this?.model || {};\n        }\n        let salesLimitedQty = model.getData('salesLimitedQty');\n        const salesPreOrderLimitedQty = model.getData('salesPreOrderLimitedQty');\n        const hasSalesLimitedQty = model.getData('hasSalesLimitedQty');\n        const salesPreOrderLimitedQtyDesc = model.getData('salesPreOrderLimitedQtyDesc');\n        const hasSalesPreOrderLimitedQty = model.getData('hasSalesPreOrderLimitedQty');\n        const allowPreOrder = model.getData('allowPreOrder');\n        const overrideUseInventoryAsLimitedQty = model.getData('overrideUseInventoryAsLimitedQty');\n        if (hasSalesLimitedQty && RA.isNilOrEmpty(salesLimitedQty) && allowPreOrder) {\n          model.setData('salesLimitedQty', 0);\n          salesLimitedQty = 0;\n        }\n        if (hasSalesLimitedQty && RA.isNilOrEmpty(salesLimitedQty) && overrideUseInventoryAsLimitedQty) {\n          model.setData('hasSalesLimitedQty', false);\n        }\n        if (allowPreOrder && hasSalesPreOrderLimitedQty && RA.isNilOrEmpty(salesPreOrderLimitedQty && !salesPreOrderLimitedQtyDesc)) {\n          model.setData('hasSalesPreOrderLimitedQty', false);\n        }\n        yield this.updateTask.perform({\n          model\n        });\n        const updatedModel = this?.model || {};\n        const tempCalculatedAvailablePreOrderQtyOnlyBeforeCart = updatedModel?.calculatedAvailablePreOrderQtyOnlyBeforeCart || 0;\n        this.set('tempCalculatedAvailablePreOrderQtyOnlyBeforeCart', tempCalculatedAvailablePreOrderQtyOnlyBeforeCart);\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }),\n    updateTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.model || {};\n      }\n      let product = model.product;\n      const updated = yield this.crud.queueUpdateRecordTask.perform({\n        adapterName: 'channels/shop/campaigns/details/limits',\n        appendPath: model.getData('_key'),\n        model,\n        component: this\n      });\n      product = yield this.fetchProductTask.perform({\n        model\n      });\n      if (updated && !this.tableViewOptions?.isBulkEditing) {\n        this.set('model', updated);\n        this.set('original', false);\n        this.set('isSingleEditing', false);\n      } else if (updated && this.tableViewOptions?.isBulkEditing) {\n        const adapterName = this.adapterName;\n        const dirty = this.crud.setupDirty({\n          adapterName,\n          model: updated,\n          attrs: {\n            product\n          }\n        });\n        this.set('model', dirty);\n      }\n      if (updated) {\n        this.set('errors', false);\n      }\n    }),\n    fetchProductTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.model || {};\n      }\n      const itemKey = model.getData('itemKey') || '';\n      const isGuest = R.pathOr(false, ['tableViewOptions', 'isGuest'])(this);\n      if (!this.get('product.inventory') && itemKey && !isGuest) {\n        const product = yield this.crud.findTask.perform({\n          adapterName: 'products',\n          appendPath: itemKey\n        });\n        return product;\n      } else {\n        const product = model.get('product');\n        return product;\n      }\n    }),\n    cancel() {\n      const original = this.original;\n      const dirty = this.model;\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty\n      });\n      this.set('model', original);\n      this.set('original', false);\n      this.set('isSingleEditing', false);\n      this.set('errors', false);\n      const model = this?.model || {};\n      const tempCalculatedAvailablePreOrderQtyOnlyBeforeCart = model?.calculatedAvailablePreOrderQtyOnlyBeforeCart || 0;\n      this.set('tempCalculatedAvailablePreOrderQtyOnlyBeforeCart', tempCalculatedAvailablePreOrderQtyOnlyBeforeCart);\n    },\n    actions: {\n      edit() {\n        const adapterName = this.adapterName;\n        const model = this.model;\n        const dirty = this.crud.setupDirty({\n          adapterName,\n          model,\n          attrs: {\n            product: model.product\n          }\n        });\n        this.set('original', model);\n        // dirty.set('product', model.get('product'))\n        this.set('model', dirty);\n        this.set('isSingleEditing', true);\n        this.set('errors', false);\n      },\n      cancel() {\n        this.cancel();\n      },\n      setDefaultAllowPreOrder(model) {\n        const overSalesLimitedQtyStatus = model.getData('overSalesLimitedQtyStatus');\n        const allowPreOrder = model.getData('allowPreOrder');\n        if (RA.isNilOrEmpty(allowPreOrder)) {\n          model.setData('allowPreOrder', false);\n          if (R.equals(overSalesLimitedQtyStatus, 'preOrder')) {\n            model.setData('allowPreOrder', true);\n          }\n        }\n      }\n    },\n    cancelEditingLimitQty(onCloseDialogAction) {\n      this.cancel();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    },\n    calculateSalesLimitedQty(operator) {\n      const model = this?.model || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        let newSalesLimitedQtyBig = this.big.newBig(model?._data?.salesLimitedQty || 0);\n        let newCalculatedAvailableQtyBeforeCartBig = this.big.newBig(model?._data?.calculatedAvailableQtyBeforeCart || 0);\n        const salesQty = model?._data?.salesQty || 0;\n        if (R.equals(operator, 'add')) {\n          newSalesLimitedQtyBig = newSalesLimitedQtyBig.plus(1);\n          newCalculatedAvailableQtyBeforeCartBig = newSalesLimitedQtyBig.minus(salesQty);\n        } else if (R.equals(operator, 'subtract')) {\n          newSalesLimitedQtyBig = newSalesLimitedQtyBig.minus(1);\n          newCalculatedAvailableQtyBeforeCartBig = newSalesLimitedQtyBig.minus(salesQty);\n        } else if (R.equals(operator, 'direct')) {\n          newCalculatedAvailableQtyBeforeCartBig = newSalesLimitedQtyBig.minus(salesQty);\n        } else if (R.equals(operator, 'addAvailableQty')) {\n          newCalculatedAvailableQtyBeforeCartBig = newCalculatedAvailableQtyBeforeCartBig.plus(1);\n          newSalesLimitedQtyBig = newCalculatedAvailableQtyBeforeCartBig.plus(salesQty);\n        } else if (R.equals(operator, 'subtractAvailableQty')) {\n          newCalculatedAvailableQtyBeforeCartBig = newCalculatedAvailableQtyBeforeCartBig.minus(1);\n          newSalesLimitedQtyBig = newCalculatedAvailableQtyBeforeCartBig.plus(salesQty);\n        } else if (R.equals(operator, 'directAvailableQty')) {\n          newSalesLimitedQtyBig = newCalculatedAvailableQtyBeforeCartBig.plus(salesQty);\n        }\n        if (newSalesLimitedQtyBig.lte(0)) {\n          newSalesLimitedQtyBig = this.big.newBig(0);\n        }\n        if (newCalculatedAvailableQtyBeforeCartBig.lte(0)) {\n          newCalculatedAvailableQtyBeforeCartBig = this.big.newBig(0);\n        }\n        const roundingInventoryQty = this.settings.getProp('roundingInventoryQty');\n        model.setData('salesLimitedQty', newSalesLimitedQtyBig.toFixed(roundingInventoryQty));\n        model.setData('calculatedAvailableQtyBeforeCart', newCalculatedAvailableQtyBeforeCartBig.toFixed(roundingInventoryQty));\n        let limitedQtyDeficitBig = this.big.newBig(0);\n        if (newCalculatedAvailableQtyBeforeCartBig.lte(0)) {\n          limitedQtyDeficitBig = this.big.newBig(newSalesLimitedQtyBig).minus(salesQty);\n        }\n        let newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = this.big.newBig(this?.tempCalculatedAvailablePreOrderQtyOnlyBeforeCart || 0);\n        const newSalesPreOrderLimitedQtyBig = this.big.newBig(model?._data?.salesPreOrderLimitedQty || 0);\n        newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newSalesPreOrderLimitedQtyBig.plus(limitedQtyDeficitBig);\n        this.set('tempCalculatedAvailablePreOrderQtyOnlyBeforeCart', newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.toFixed(roundingInventoryQty));\n      }\n    },\n    calculateSalesPreOrderLimitedQty(operator) {\n      const model = this?.model || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        let newSalesPreOrderLimitedQtyBig = this.big.newBig(model?._data?.salesPreOrderLimitedQty || 0);\n        let newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = this.big.newBig(this?.tempCalculatedAvailablePreOrderQtyOnlyBeforeCart || 0);\n        const salesLimitedQty = model?._data?.salesLimitedQty || 0;\n        const salesQty = model?._data?.salesQty || 0;\n        const calculatedAvailableQtyBeforeCartBig = this.big.newBig(model?._data?.calculatedAvailableQtyBeforeCart || 0);\n        let limitedQtyDeficitBig = this.big.newBig(0);\n        if (calculatedAvailableQtyBeforeCartBig.lte(0)) {\n          limitedQtyDeficitBig = this.big.newBig(salesLimitedQty).minus(salesQty);\n        }\n        if (R.equals(operator, 'add')) {\n          newSalesPreOrderLimitedQtyBig = newSalesPreOrderLimitedQtyBig.plus(1);\n          newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newSalesPreOrderLimitedQtyBig.plus(limitedQtyDeficitBig);\n        } else if (R.equals(operator, 'subtract')) {\n          newSalesPreOrderLimitedQtyBig = newSalesPreOrderLimitedQtyBig.minus(1);\n          newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newSalesPreOrderLimitedQtyBig.plus(limitedQtyDeficitBig);\n        } else if (R.equals(operator, 'direct')) {\n          newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newSalesPreOrderLimitedQtyBig.plus(limitedQtyDeficitBig);\n        } else if (R.equals(operator, 'addAvailablePreOrderQty')) {\n          newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.plus(1);\n          newSalesPreOrderLimitedQtyBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.minus(limitedQtyDeficitBig);\n        } else if (R.equals(operator, 'subtractAvailablePreOrderQty')) {\n          newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.minus(1);\n          newSalesPreOrderLimitedQtyBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.minus(limitedQtyDeficitBig);\n        } else if (R.equals(operator, 'directAvailablePreOrderQty')) {\n          newSalesPreOrderLimitedQtyBig = newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.minus(limitedQtyDeficitBig);\n        }\n        if (newSalesPreOrderLimitedQtyBig.lte(0)) {\n          newSalesPreOrderLimitedQtyBig = this.big.newBig(0);\n        }\n        const roundingInventoryQty = this.settings.getProp('roundingInventoryQty');\n        model.setData('salesPreOrderLimitedQty', newSalesPreOrderLimitedQtyBig.toFixed(roundingInventoryQty));\n        this.set('tempCalculatedAvailablePreOrderQtyOnlyBeforeCart', newTempCalculatedAvailablePreOrderQtyOnlyBeforeCartBig.toFixed(roundingInventoryQty));\n      }\n    },\n    toggleAllowPreOrderTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.model || {};\n      }\n      model.setData('salesPreOrderLimitedQty', '');\n      model.setData('hasSalesPreOrderLimitedQty', false);\n      yield this.updateBulkEditingTask.perform({\n        model\n      });\n    }),\n    toggleHasPreOrderLimitedQtyTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.model || {};\n      }\n      model.setData('salesPreOrderLimitedQty', '');\n      yield this.updateBulkEditingTask.perform({\n        model\n      });\n    }),\n    toggleHasSalesLimitedQtyTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.model || {};\n      }\n      const hasSalesLimitedQty = R.pathOr(false, ['_data', 'hasSalesLimitedQty'])(model);\n      model.setData('salesLimitedQty', '');\n      model.setData('salesPreOrderLimitedQty', '');\n      if (!hasSalesLimitedQty) {\n        model.setData('allowPreOrder', false);\n        model.setData('hasSalesPreOrderLimitedQty', false);\n      }\n      yield this.updateBulkEditingTask.perform({\n        model\n      });\n    }),\n    toggleUseInventoryAsLimitedQtyTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      if (RA.isNilOrEmpty(model)) {\n        model = this?.model || {};\n      }\n      const hasSalesLimitedQty = R.pathOr(false, ['_data', 'hasSalesLimitedQty'])(model);\n      if (!hasSalesLimitedQty) {\n        model.setData('allowPreOrder', false);\n        model.setData('hasSalesPreOrderLimitedQty', false);\n      }\n      yield this.updateBulkEditingTask.perform({\n        model\n      });\n    }),\n    isLimitedQtyDisabled: Ember.computed('tableViewOptions.campaignModel._data.useInventoryAsLimitedQty', 'settings.settingsModel._data.beta.useInventoryAsLimitedQty', 'model._data.{useInventoryAsLimitedQty,overrideUseInventoryAsLimitedQty}', 'model.product._data.isSet', function () {\n      const isSet = R.pathOr(false, ['model', 'product', '_data', 'isSet'])(this);\n      if (isSet) {\n        return false;\n      }\n      const betaUseInventoryAsLimitedQty = R.pathOr(false, ['settings', 'settingsModel', '_data', 'beta', 'useInventoryAsLimitedQty'])(this);\n      if (betaUseInventoryAsLimitedQty) {\n        const campaignUseInventoryAsLimitedQty = R.pathOr(false, ['tableViewOptions', 'campaignModel', '_data', 'useInventoryAsLimitedQty'])(this);\n        if (campaignUseInventoryAsLimitedQty) {\n          const overrideUseInventoryAsLimitedQty = R.pathOr(false, ['model', '_data', 'overrideUseInventoryAsLimitedQty'])(this);\n          if (!overrideUseInventoryAsLimitedQty) {\n            return true;\n          }\n        } else {\n          const useInventoryAsLimitedQty = R.pathOr(false, ['model', '_data', 'useInventoryAsLimitedQty'])(this);\n          if (useInventoryAsLimitedQty) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }),\n    isUseInventoryAsLimitedQtyDisabled: Ember.computed('tableViewOptions.campaignModel._data.useInventoryAsLimitedQty', 'settings.settingsModel._data.beta.useInventoryAsLimitedQty', 'model._data.hasSalesLimitedQty', function () {\n      const betaUseInventoryAsLimitedQty = R.pathOr(false, ['settings', 'settingsModel', '_data', 'beta', 'useInventoryAsLimitedQty'])(this);\n      if (betaUseInventoryAsLimitedQty) {\n        const campaignUseInventoryAsLimitedQty = R.pathOr(false, ['tableViewOptions', 'campaignModel', '_data', 'useInventoryAsLimitedQty'])(this);\n        if (!campaignUseInventoryAsLimitedQty) {\n          const hasSalesLimitedQty = R.pathOr(false, ['model', '_data', 'hasSalesLimitedQty'])(this);\n          if (!hasSalesLimitedQty) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }),\n    isSalesLimitedQtySelectorAllowed: Ember.computed('tableViewOptions.{adjustTotalQty,campaignModel._data.useInventoryAsLimitedQty}', 'settings.settingsModel._data.beta.useInventoryAsLimitedQty', 'model._data.{useInventoryAsLimitedQty,overrideUseInventoryAsLimitedQty}', function () {\n      let isAllowed = false;\n      const isAdjustTotalQty = R.pipe(R.pathOr('', ['tableViewOptions', 'limitAdjustType']), R.equals('adjustTotalQty'))(this);\n      if (isAdjustTotalQty) {\n        isAllowed = true;\n      }\n      const betaUseInventoryAsLimitedQty = R.pathOr(false, ['settings', 'settingsModel', '_data', 'beta', 'useInventoryAsLimitedQty'])(this);\n      if (betaUseInventoryAsLimitedQty) {\n        const campaignUseInventoryAsLimitedQty = R.pathOr(false, ['tableViewOptions', 'campaignModel', '_data', 'useInventoryAsLimitedQty'])(this);\n        if (campaignUseInventoryAsLimitedQty) {\n          const overrideUseInventoryAsLimitedQty = R.pathOr(false, ['model', '_data', 'overrideUseInventoryAsLimitedQty'])(this);\n          if (!overrideUseInventoryAsLimitedQty) {\n            isAllowed = false;\n          }\n        } else {\n          const useInventoryAsLimitedQty = R.pathOr(false, ['model', '_data', 'useInventoryAsLimitedQty'])(this);\n          if (useInventoryAsLimitedQty) {\n            isAllowed = false;\n          }\n        }\n      }\n      return isAllowed;\n    })\n  }, _applyDecoratedDescriptor(_obj, \"cancelEditingLimitQty\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"cancelEditingLimitQty\"), _obj), _applyDecoratedDescriptor(_obj, \"calculateSalesLimitedQty\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"calculateSalesLimitedQty\"), _obj), _applyDecoratedDescriptor(_obj, \"calculateSalesPreOrderLimitedQty\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"calculateSalesPreOrderLimitedQty\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/items/table-view/detail-limit-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JlSEjSrn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"images\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"product.name\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"product.code\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product code\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],[28,\\\"array\\\",[\\\"product.type\\\",\\\"product.setType\\\"],null],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product type\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"campaignModel\\\",\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"do not use inventory qty\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@isRunning\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],true,[23,0,[\\\"crud\\\",\\\"queueUpdateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-inventory-sync-toggle\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"selectedToggleUseInventory\\\"]],[28,\\\"perform\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"has limit\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"beta\\\",\\\"useInventoryAsLimitedQty\\\"]],[28,\\\"not\\\",[[23,5,[\\\"campaignModel\\\",\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"sync limit qty with inventory\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"can preOrder\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"limit preOrder qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inventory\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"limited qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"limited preOrder qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"qty sold\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"available qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"available preOrder qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"timestampZ_latest\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[23,5,[\\\"adapterName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"onClose\\\"],[[23,0,[\\\"isReadonly\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[23,5,[\\\"adapterName\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"legend\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"allowDeselect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[\\\"has images\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[24,[\\\"filters\\\"]],false,true,\\\"_data.value\\\",\\\"_data.product.hasImages\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"product\\\",\\\"hasImages\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"product\\\",\\\"name\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[23,5,[\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"product\\\",\\\"code\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[23,5,[\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"badge\\\",\\\"onClose\\\"],[[23,0,[\\\"isReadonly\\\"]],[28,\\\"sum\\\",[[24,[\\\"filters\\\",\\\"typesCount\\\"]],[24,[\\\"filters\\\",\\\"setTypesCount\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[23,5,[\\\"adapterName\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\" \\\\n        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"adapterName\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[\\\"products/lists/types\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[24,[\\\"filters\\\"]],true,\\\"_data.value\\\",\\\"_data.product.types\\\",true]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypesFilters\\\"]],[24,[\\\"filters\\\"]],true,\\\"_data.value\\\",\\\"_data.product.setTypes\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"campaignModel\\\",\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"badge\\\",\\\"onClose\\\"],[[23,0,[\\\"isReadonly\\\"]],[24,[\\\"filters\\\",\\\"hasLimitTypesCount\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[23,5,[\\\"adapterName\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"adapterName\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[\\\"products/lists/types\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[24,[\\\"filters\\\"]],true,\\\"_data.value\\\",\\\"_data.hasLimitTypes\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"beta\\\",\\\"useInventoryAsLimitedQty\\\"]],[28,\\\"not\\\",[[23,5,[\\\"campaignModel\\\",\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"detail\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[24,[\\\"detail\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",false],[12,\\\"class\\\",\\\"table-view__detail-row\\\"],[3,\\\"did-insert\\\",[[28,\\\"action\\\",[[23,0,[]],\\\"setDefaultAllowPreOrder\\\",[24,[\\\"model\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"store-items__thumbnail-container\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\",\\\"@isToggler\\\",\\\"@parentComponent\\\",\\\"@toggleProperty\\\",\\\"@toggleIsOn\\\"],[\\\"products\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"30\\\",true,[23,0,[]],\\\"showUploadsRow\\\",[23,0,[\\\"showUploadsRow\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"not\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"product\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"preOrder-notes\\\"],null],false],[0,\\\": \\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@onFocusOutSave\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"salesPreOrderLimitedQtyDesc\\\",[23,0,[\\\"errors\\\"]],[28,\\\"if\\\",[[23,5,[\\\"isBulkEditing\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateBulkEditingTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"updateTask\\\"]]],null]],null],\\\"optional\\\",[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isReadonly\\\"]]],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"salesPreOrderLimitedQtyDesc\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"model\\\",\\\"product\\\",\\\"_data\\\",\\\"type\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"product\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"model\\\",\\\"product\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"campaignModel\\\",\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"product\\\",\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"onToggle\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isReadonly\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"overrideUseInventoryAsLimitedQty\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateBulkEditingTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"onToggleWhenFalse\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllDetailsInventorySyncTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"isLimitedQtyDisabled\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"hasSalesLimitedQty\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"toggleHasSalesLimitedQtyTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"beta\\\",\\\"useInventoryAsLimitedQty\\\"]],[28,\\\"not\\\",[[23,5,[\\\"campaignModel\\\",\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"product\\\",\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"onToggle\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllDetailsInventorySyncTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"isUseInventoryAsLimitedQtyDisabled\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"toggleUseInventoryAsLimitedQtyTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"hasSalesLimitedQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"onToggle\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllDetailsInventorySyncTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"isLimitedQtyDisabled\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"allowPreOrder\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"toggleAllowPreOrderTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"hasSalesLimitedQty\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"allowPreOrder\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"onToggleWhenFalse\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllDetailsInventorySyncTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"isLimitedQtyDisabled\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"toggleHasPreOrderLimitedQtyTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"products/inventory/inventory-status-tooltip\\\",null,[[\\\"itemKey\\\",\\\"showQty\\\",\\\"product\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],true,[24,[\\\"model\\\",\\\"product\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"hasSalesLimitedQty\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesLimitedType\\\"]],[24,[\\\"constants\\\",\\\"detailLimitTypes\\\",\\\"campaign\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isSalesLimitedQtySelectorAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"channels/shop/campaigns/items/limit-qty-selector\\\",[],[[\\\"@isLimitedQtyDisabled\\\",\\\"@isGuest\\\",\\\"@model\\\",\\\"@original\\\",\\\"@limitAdjustType\\\",\\\"@type\\\",\\\"@onEdit\\\",\\\"@onUpdateBulkEditingTask\\\",\\\"@onUpdateTask\\\",\\\"@onCalculateSalesLimitedQty\\\",\\\"@onCalculateSalesPreOrderLimitedQty\\\",\\\"@tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\",\\\"@onGoToNextRow\\\",\\\"@onCancelEditingLimitQty\\\"],[[23,0,[\\\"isLimitedQtyDisabled\\\"]],[23,5,[\\\"isGuest\\\"]],[22,\\\"model\\\"],[22,\\\"original\\\"],[23,5,[\\\"limitAdjustType\\\"]],\\\"normal\\\",[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[22,\\\"updateBulkEditingTask\\\"],[28,\\\"perform\\\",[[24,[\\\"updateTask\\\"]]],null],[23,0,[\\\"calculateSalesLimitedQty\\\"]],[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],[23,0,[\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\"]],[22,\\\"onGoToNextRow\\\"],[23,0,[\\\"cancelEditingLimitQty\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesLimitedQty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]],[28,\\\"eq\\\",[[23,5,[\\\"limitAdjustType\\\"]],\\\"adjustTotalQty\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"channels/shop/campaigns/items/limit-qty-selector\\\",[],[[\\\"@isLimitedQtyDisabled\\\",\\\"@isGuest\\\",\\\"@model\\\",\\\"@original\\\",\\\"@limitAdjustType\\\",\\\"@type\\\",\\\"@onEdit\\\",\\\"@onUpdateBulkEditingTask\\\",\\\"@onUpdateTask\\\",\\\"@onCalculateSalesLimitedQty\\\",\\\"@onCalculateSalesPreOrderLimitedQty\\\",\\\"@tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\",\\\"@onGoToNextRow\\\",\\\"@onCancelEditingLimitQty\\\"],[[23,0,[\\\"isLimitedQtyDisabled\\\"]],[23,5,[\\\"isGuest\\\"]],[22,\\\"model\\\"],[22,\\\"original\\\"],[23,5,[\\\"limitAdjustType\\\"]],\\\"preOrder\\\",[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[22,\\\"updateBulkEditingTask\\\"],[28,\\\"perform\\\",[[24,[\\\"updateTask\\\"]]],null],[23,0,[\\\"calculateSalesLimitedQty\\\"]],[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],[23,0,[\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\"]],[22,\\\"onGoToNextRow\\\"],[23,0,[\\\"cancelEditingLimitQty\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPreOrderLimitedQty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"channels/shop/qty-status\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"hasSalesLimitedQty\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"limitAdjustType\\\"]],\\\"adjustCurrentlyAvailableQty\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"channels/shop/campaigns/items/limit-qty-selector\\\",[],[[\\\"@isLimitedQtyDisabled\\\",\\\"@isGuest\\\",\\\"@model\\\",\\\"@original\\\",\\\"@limitAdjustType\\\",\\\"@type\\\",\\\"@onEdit\\\",\\\"@onUpdateBulkEditingTask\\\",\\\"@onUpdateTask\\\",\\\"@onCalculateSalesLimitedQty\\\",\\\"@onCalculateSalesPreOrderLimitedQty\\\",\\\"@tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\",\\\"@onGoToNextRow\\\",\\\"@onCancelEditingLimitQty\\\"],[[23,0,[\\\"isLimitedQtyDisabled\\\"]],[23,5,[\\\"isGuest\\\"]],[22,\\\"model\\\"],[22,\\\"original\\\"],[23,5,[\\\"limitAdjustType\\\"]],\\\"normal\\\",[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[22,\\\"updateBulkEditingTask\\\"],[28,\\\"perform\\\",[[24,[\\\"updateTask\\\"]]],null],[23,0,[\\\"calculateSalesLimitedQty\\\"]],[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],[23,0,[\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\"]],[22,\\\"onGoToNextRow\\\"],[23,0,[\\\"cancelEditingLimitQty\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"calculatedAvailableQtyBeforeCart\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"allowPreOrder\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"limitAdjustType\\\"]],\\\"adjustCurrentlyAvailableQty\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"channels/shop/campaigns/items/limit-qty-selector\\\",[],[[\\\"@isLimitedQtyDisabled\\\",\\\"@isGuest\\\",\\\"@model\\\",\\\"@original\\\",\\\"@limitAdjustType\\\",\\\"@type\\\",\\\"@onEdit\\\",\\\"@onUpdateBulkEditingTask\\\",\\\"@onUpdateTask\\\",\\\"@onCalculateSalesLimitedQty\\\",\\\"@onCalculateSalesPreOrderLimitedQty\\\",\\\"@tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\",\\\"@onGoToNextRow\\\",\\\"@onCancelEditingLimitQty\\\"],[[23,0,[\\\"isLimitedQtyDisabled\\\"]],[23,5,[\\\"isGuest\\\"]],[22,\\\"model\\\"],[22,\\\"original\\\"],[23,5,[\\\"limitAdjustType\\\"]],\\\"preOrder\\\",[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[22,\\\"updateBulkEditingTask\\\"],[28,\\\"perform\\\",[[24,[\\\"updateTask\\\"]]],null],[23,0,[\\\"calculateSalesLimitedQty\\\"]],[23,0,[\\\"calculateSalesPreOrderLimitedQty\\\"]],[23,0,[\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\"]],[22,\\\"onGoToNextRow\\\"],[23,0,[\\\"cancelEditingLimitQty\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"tempCalculatedAvailablePreOrderQtyOnlyBeforeCart\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"hasSalesPreOrderLimitedQty\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"allowPreOrder\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        ∞\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"products/over-sales-limited-qty-tag\\\",[],[[\\\"@model\\\",\\\"@overSalesLimitedQtyStatus\\\"],[[22,\\\"model\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"overSalesLimitedQtyStatus\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"iconOnly\\\",\\\"model\\\"],[true,[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]],{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isBulkEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\",\\\"@hasPlaceholder\\\",\\\"@hasSavedLabel\\\",\\\"@wasSaved\\\"],[[28,\\\"or\\\",[[23,5,[\\\"onToggleAllOverrideUseInventoryAsLimitQtyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]]],null],true,true,[23,0,[\\\"wasSaved\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"store-items__advanced-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,4,[]],\\\"auto\\\",40,[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[23,0,[\\\"model\\\"]],\\\"products\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/items/table-view/detail-limit-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/items/table-view/detail-row/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _emberConcurrency, R, RA, _nventor) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    date: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'channels/shop/campaigns/details',\n    showDetails: false,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['filters/count', 'products/lists/menu', 'products/lists/tags', 'products/lists/types', 'products/lists/setTypesFilters', 'statuses', 'channels/shop/campaigns/statuses', 'toggles/yesNo']);\n      const model = this?.model || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        const bulkDiscountSchedule = this?.bulkDiscountSchedule || {};\n        if (!bulkDiscountSchedule?.hasAnyActive) {\n          model.setData('bulkDiscountId', '');\n        }\n      }\n      if (!this.applicationService.isMobile) {\n        this.set('showDetails', true);\n      }\n    },\n    bulkDiscountSchedule: Ember.computed('model._data.bulkDiscountId', 'tableViewOptions.campaign._data.bulkDiscounts.@each.synced', function () {\n      const model = this.model;\n      const campaign = this?.tableViewOptions?.campaign || {};\n      if (RA.isNilOrEmpty(model)) {\n        return {};\n      }\n      const bulkDiscountSchedule = model.getBulkDiscountSchedule({\n        campaign\n      });\n      return {\n        hasAnyActive: bulkDiscountSchedule.hasAnyActive,\n        hasIsActive: bulkDiscountSchedule.hasIsActive,\n        hasIsActiveNext: bulkDiscountSchedule.hasIsActiveNext,\n        isActive: bulkDiscountSchedule.isActive,\n        isActiveNext: bulkDiscountSchedule.isActiveNext\n      };\n    }),\n    /**\n     * Tags value for multiple-BD mode. Explicit `bulkDiscountIds` (including []) is\n     * authoritative — same as API normalize. Fall back to legacy scalar only when\n     * the array key is missing (e.g. in-memory rows right after migrate).\n     */\n    displayedBulkDiscountIds: Ember.computed('model._data.bulkDiscountIds.[]', 'model._data.bulkDiscountId', function () {\n      const detailData = this.model?._data || {};\n      if (Object.prototype.hasOwnProperty.call(detailData, 'bulkDiscountIds')) {\n        return RA.ensureArray(detailData.bulkDiscountIds || []);\n      }\n      const legacyBulkDiscountId = detailData.bulkDiscountId;\n      if (RA.isNilOrEmpty(legacyBulkDiscountId)) {\n        return [];\n      }\n      return [legacyBulkDiscountId];\n    }),\n    isSelected: Ember.computed('tableViewOptions.selectedItems.[]', function () {\n      const selectedItems = this?.tableViewOptions?.selectedItems || [];\n      if (selectedItems.indexOf(this.model) > -1) {\n        return true;\n      }\n      return false;\n    }),\n    hasContentsIcon: Ember.computed('model._data.setType', 'showDetails', function () {\n      const model = this.model;\n      const setType = model?._data?.setType;\n      if (!R.includes(setType, ['hasVariants', 'isSet', 'isSetWithChoices'])) {\n        return '';\n      }\n      const showDetails = this.showDetails;\n      if (showDetails) {\n        return 'fas fa-angle-down';\n      }\n      return 'fas fa-angle-right';\n    }),\n    isDraggable: Ember.computed('filters._data.sort.[]', function () {\n      const shopProductsSort = this.filters?.getData('shopProductsSort') || 'recommended';\n      const existingSortBy = [{\n        label: 'recommended',\n        by: 'index',\n        direction: 'ASC',\n        toNumber: true\n      }, {\n        label: 'newestFirst',\n        by: 'index',\n        direction: 'DESC',\n        toNumber: true\n      }, {\n        label: 'priceAsc',\n        by: 'priceFinal',\n        direction: 'ASC',\n        toNumber: true\n      }, {\n        label: 'priceDesc',\n        by: 'priceFinal',\n        direction: 'DESC',\n        toNumber: true\n      }];\n      const sortArray = R.filter(R.propEq('label', shopProductsSort))(existingSortBy);\n      const sortBy = R.pathOr('', ['firstObject', 'by'])(sortArray);\n      if (sortBy === 'index') {\n        return true;\n      }\n      return false;\n    }),\n    isAllSelected: Ember.computed('tableViewOptions.{selectedItems.[],campaignDetails.[]}', function () {\n      const tableViewOptions = this?.tableViewOptions || {};\n      const selectedItems = tableViewOptions?.selectedItems || [];\n      const campaignDetails = tableViewOptions?.campaignDetails || [];\n      if (R.length(selectedItems) === R.length(campaignDetails)) {\n        return true;\n      }\n      return false;\n    }),\n    isSingleOrBulkEditing: Ember.computed('isSingleEditing', 'tableViewOptions.isBulkEditing', function () {\n      return this.isSingleEditing || this.tableViewOptions.isBulkEditing;\n    }),\n    isReadonly: Ember.computed('isSingleOrBulkEditing', function () {\n      return !this.isSingleOrBulkEditing;\n    }),\n    isShowProductSchedules: Ember.computed('tableViewOptions.{isAutomations,isProductsSelector}', function () {\n      const isAutomations = this?.tableViewOptions?.isAutomations || false;\n      if (isAutomations) {\n        return false;\n      }\n      const isProductsSelector = this?.tableViewOptions?.isProductsSelector || false;\n      if (isProductsSelector) {\n        return false;\n      }\n      return true;\n    }),\n    isShowExtraRowColumnPadding: Ember.computed('tableViewOptions.{isProductsSelector,fromGrapesJs}', function () {\n      const isProductsSelector = this?.tableViewOptions?.isProductsSelector || false;\n      if (isProductsSelector) {\n        return false;\n      }\n      const fromGrapesJs = this?.tableViewOptions?.fromGrapesJs || false;\n      if (fromGrapesJs) {\n        return false;\n      }\n      return true;\n    }),\n    /**\n     * Index of this row in the loaded Contents results.\n     * @return {number} zero-based index, or -1 when the row is not in results\n     */\n    handPickRowIndex: Ember.computed('filters.results.[]', 'model', function () {\n      const results = this.filters?.results;\n      if (!results) {\n        return -1;\n      }\n      return results.indexOf(this.model);\n    }),\n    /**\n     * Whether the per-row move-up control should be disabled.\n     * @return {boolean} true on the first row or when move is not allowed\n     */\n    isHandPickMoveUpDisabled: Ember.computed('handPickRowIndex', 'tableViewOptions.allowHandPickRowMove', function () {\n      if (!this.tableViewOptions?.allowHandPickRowMove) {\n        return true;\n      }\n      return this.handPickRowIndex <= 0;\n    }),\n    /**\n     * Whether the per-row move-down control should be disabled.\n     * @return {boolean} true on the last row or when move is not allowed\n     */\n    isHandPickMoveDownDisabled: Ember.computed('handPickRowIndex', 'filters.results.[]', 'tableViewOptions.allowHandPickRowMove', function () {\n      if (!this.tableViewOptions?.allowHandPickRowMove) {\n        return true;\n      }\n      const results = this.filters?.results || [];\n      const lastIndex = results.length - 1;\n      return this.handPickRowIndex < 0 || this.handPickRowIndex >= lastIndex;\n    }),\n    hasDetailShippingZones: Ember.computed('model._data.{allowedShippingZones.[],disallowedShippingZones.[]}', function () {\n      const model = this?.model || {};\n      const allowedShippingZones = model?._data?.allowedShippingZones || [];\n      const disallowedShippingZones = model?._data?.disallowedShippingZones || [];\n      if (RA.isNotNilOrEmpty(allowedShippingZones) || RA.isNotNilOrEmpty(disallowedShippingZones)) {\n        return true;\n      }\n      return false;\n    }),\n    allowedShippingErrorMessage: Ember.computed('model.hasAllowedChildItemsInDisallowedZones', function () {\n      const model = this?.model || {};\n      const tableViewOptions = this.tableViewOptions;\n      // console.log('tableViewOptions', tableViewOptions?.campaign)\n      if (tableViewOptions?.campaign?._data?.shippingFeeType === this.constants.shippingFeeType.flat) {\n        return '';\n      }\n      if (RA.isNilOrEmpty(tableViewOptions?.campaign?.shippingZonesIds) && tableViewOptions?.campaign?._data?.shippingFeeType === this.constants.shippingFeeType.zones) {\n        return this.intl.t('no shipping zones set in campaign');\n      }\n      const hasAllowedChildItemsInDisallowedZones = model?.hasAllowedChildItemsInDisallowedZones || false;\n      if (hasAllowedChildItemsInDisallowedZones) {\n        return this.intl.t('some items have incorrect shipping zones');\n      }\n      return this.intl.t('no applicable shipping zones');\n    }),\n    // showResetFilter: computed('filters._data.{statuses.[],tags.[],setTypes.[],hasImages,item,itemCode,price}', function () {\n    //   const filtersData = this?.filters?._data\n    //   if (RA.isNilOrEmpty(filtersData)) {\n    //     return false\n    //   }\n\n    //   const statuses = filtersData.statuses\n    //   const hasImages = filtersData.hasImages\n    //   const item = filtersData.item\n    //   const itemCode = filtersData.itemCode\n    //   const price = filtersData.price\n    //   const setTypes = filtersData.setTypes\n    //   const tags = filtersData.tags\n\n    //   if (\n    //     statuses.length !== 5 ||\n    //     tags.length !== 0 ||\n    //     setTypes.length !== 0 ||\n    //     RA.isNilOrEmpty(hasImages) !== true ||\n    //     item !== '' ||\n    //     itemCode !== '' ||\n    //     price !== ''\n    //   ) {\n    //     return true\n    //   }\n\n    //   return false\n    // }),\n\n    refetchCampaignDetail: (0, _emberConcurrency.task)(function* (model) {\n      const updated = yield this.crud.findTask.perform({\n        adapterName: 'channels/shop/campaigns/details',\n        appendPath: `/${model?._data?._key}`\n      });\n      this.set('model', model);\n    }),\n    updateTask: (0, _emberConcurrency.task)(function* ({\n      appendPath,\n      model\n    }) {\n      model = model || this.model;\n      let dirty = model;\n      if (!model.isDirty) {\n        dirty = this.crud.setupDirty({\n          adapterName: 'channels/shop/campaigns/details',\n          model\n        });\n      }\n      const product = model.product;\n      const updated = yield this.crud.replaceRecordTask.perform({\n        adapterName: 'channels/shop/campaigns/details',\n        appendPath,\n        model: dirty,\n        component: this\n      });\n      if (updated && !this.tableViewOptions?.isBulkEditing) {\n        this.set('model', updated);\n        this.set('original', false);\n        this.set('isSingleEditing', false);\n        // } else if (updated && this.tableViewOptions?.isBulkEditing) {\n        // const adapterName = this.adapterName\n        // const dirty = this.crud.setupDirty({\n        //   adapterName,\n        //   model: updated,\n        //   attrs: {\n        //     product\n        //   }\n        // })\n\n        // this.set('model', dirty)\n      }\n      if (updated) {\n        this.set('errors', false);\n      }\n    }),\n    cancel() {\n      const original = this.original;\n      const dirty = this.model;\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty\n      });\n      this.set('model', original);\n      this.set('original', false);\n      this.set('isSingleEditing', false);\n      this.set('errors', false);\n    },\n    isEvenOrOddClassName: Ember.computed('model._data.index', function () {\n      const index = this?.model?._data?.index || '';\n      if (R.is(Number)(index)) {\n        if (_nventor.default.isEven(index)) {\n          return 'even';\n        }\n        return 'odd';\n      }\n      return '';\n    }),\n    rowClassName: Ember.computed('dropPosition', 'isEvenOrOddClassName', function () {\n      const dropPosition = this.get('dropPosition') || '';\n      // @TODO: remove classnames\n      // table-view__detail-row\n      // new-table-view__tr--detail-row\n      // first check drag/drop\n      return `new-table-view__tr table-view__detail-row new-table-view__tr--detail-row ${dropPosition}`;\n    }),\n    /**\n     * Tint class for the whole Contents group after a hand-pick swap.\n     * @return {string} `just-swapped-source`, `just-swapped-target`, or empty\n     */\n    handPickSwapClassName: Ember.computed('model.handPickSwapRole', function () {\n      const handPickSwapRole = this.model?.handPickSwapRole;\n      if (!handPickSwapRole) {\n        return '';\n      }\n      return `just-swapped-${handPickSwapRole}`;\n    }),\n    mainFocusAction(model) {\n      if (this.onDisplay) {\n        return this.onDisplay(model);\n      }\n    },\n    mainActionWithModel(onCloseDialogAction, model) {\n      // this should be deprecated?\n      if (this.onMainAction) {\n        return this.onMainAction(model);\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    },\n    toggleDetails() {\n      let showDetails = this.showDetails;\n      this.toggleProperty('showDetails');\n    },\n    startEditingHandPickIndex() {\n      if (this.handPickRowIndex < 0) {\n        return;\n      }\n      this.set('handPickIndexDraft', this.handPickRowIndex + 1);\n    },\n    setHandPickIndexDraft(displayIndex) {\n      this.set('handPickIndexDraft', displayIndex);\n    },\n    submitHandPickIndex(onCloseDialogAction) {\n      if (this.tableViewOptions?.onMoveHandPickProductToIndex) {\n        this.tableViewOptions.onMoveHandPickProductToIndex(this.model, this.handPickIndexDraft);\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    },\n    actions: {\n      onCloseUpdateProductTags() {\n        const model = this.model;\n        const isAllowMultipleBulkDiscounts = this.tableViewOptions?.campaign?._data?.isAllowMultipleBulkDiscounts === true;\n\n        // Persist via updateTask for both modes (Contents BD tags are read-only ListTags;\n        // tag close must still recalculate / conflict on legacy scalar id).\n        if (isAllowMultipleBulkDiscounts) {\n          this.updateTask.perform({\n            model\n          });\n          return;\n        }\n        this.updateTask.perform({\n          appendPath: '/bulk-discount-conflict',\n          model\n        });\n        model.set('isShowBulkDiscountConflictDialogInDetailRow', true);\n      },\n      drop() {\n        if (this.get('tableViewOptions.onDrop')) {\n          this.get('tableViewOptions.onDrop')(...arguments);\n        }\n      },\n      dragOver() {\n        if (this.get('tableViewOptions.onDragOver')) {\n          const dropPosition = this.get('tableViewOptions.onDragOver')(...arguments);\n          this.set('dropPosition', dropPosition);\n        }\n      },\n      dragStart() {\n        if (this.get('tableViewOptions.onDragStart')) {\n          this.get('tableViewOptions.onDragStart')(...arguments);\n        }\n      },\n      dragEnd() {\n        if (this.get('tableViewOptions.onDragEnd')) {\n          this.get('tableViewOptions.onDragEnd')(...arguments);\n        }\n      },\n      edit() {\n        const adapterName = this.adapterName;\n        const model = this.model;\n        const dirty = this.crud.setupDirty({\n          adapterName,\n          model\n        });\n        this.set('original', model);\n        // dirty.set('product', model.get('product'))\n        this.set('model', dirty);\n        this.set('isSingleEditing', true);\n        this.set('errors', false);\n      },\n      cancel() {\n        this.cancel();\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"mainFocusAction\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"mainFocusAction\"), _obj), _applyDecoratedDescriptor(_obj, \"mainActionWithModel\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"mainActionWithModel\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleDetails\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"toggleDetails\"), _obj), _applyDecoratedDescriptor(_obj, \"startEditingHandPickIndex\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"startEditingHandPickIndex\"), _obj), _applyDecoratedDescriptor(_obj, \"setHandPickIndexDraft\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"setHandPickIndexDraft\"), _obj), _applyDecoratedDescriptor(_obj, \"submitHandPickIndex\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"submitHandPickIndex\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/items/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jmeLjgyd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"isTooltipVisible\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"shippingZone\\\",\\\"shippingZone\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"schedule\\\",\\\"index\\\",\\\"productSchedule\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@tableViewOptions\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isSelectedByProductTags\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"new-table-view__tr--detail-row \\\",[28,\\\"if\\\",[[23,16,[\\\"isAutomations\\\"]],\\\"automations-details-row\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,16,[\\\"onToggleSelectAllItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,0,[\\\"isAllSelected\\\"]],\\\"fas fa-xl fa-check-square\\\",\\\"far fa-xl fa-square\\\"],null],[23,20,[]],\\\"element-btn--no-border\\\",[28,\\\"fn\\\",[[23,16,[\\\"onToggleSelectAllItems\\\"]],[23,16,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"modalClassNames\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"modal-container--bottom-0\\\",\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"onSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,16,[\\\"fromGrapesJs\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-v-align-middle-important td--column-index\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,16,[\\\"isCompactHandPickRows\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--small has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product info\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,16,[\\\"isCompactHandPickRows\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,16,[\\\"automationModel\\\",\\\"isAutoAdd\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-padding-left-5 has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"tax on sales\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,16,[\\\"isAutomations\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"bulk discount\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowProductSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"product schedules\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tbody\\\",true],[11,\\\"class\\\",[29,[\\\"new-table-view__tr-group \\\",[23,0,[\\\"handPickSwapClassName\\\"]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/drop-container\\\",null,[[\\\"tagName\\\",\\\"classNames\\\",\\\"model\\\",\\\"dropPosition\\\",\\\"onDrop\\\",\\\"onDragOver\\\"],[\\\"tr\\\",[23,0,[\\\"rowClassName\\\"]],[24,[\\\"model\\\"]],[23,0,[\\\"dropPosition\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"drop\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragOver\\\",[24,[\\\"model\\\"]],[24,[\\\"tableViewOptions\\\",\\\"dragDetail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,16,[\\\"onToggleSelectAllItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--column-selection-box\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-checkbox\\\",[[12,\\\"class\\\",\\\"u-icon-size-20\\\"]],[[\\\"@value\\\",\\\"@disabled\\\",\\\"@onToggle\\\"],[[23,0,[\\\"isSelected\\\"]],[23,16,[\\\"removeProductsBatchTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,16,[\\\"onSelectItem\\\"]],[23,0,[\\\"model\\\"]]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--column-index u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/drag-container\\\",null,[[\\\"draggable\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"data\\\"],[[23,0,[\\\"isDraggable\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dragStart\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragEnd\\\",[24,[\\\"model\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"index\\\"]]]]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isDraggable\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@iconClassNames\\\"],[\\\"fa-solid fa-grip-vertical\\\",\\\"show-on-row-hover\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"index\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"onSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"toggleValue\\\",\\\"disabled\\\",\\\"onToggle\\\"],[[24,[\\\"model\\\",\\\"isSelected\\\"]],[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"disableUnselectedToggle\\\"]],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"isSelected\\\"]]],null]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"tableViewOptions\\\",\\\"onSelect\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"fromGrapesJs\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--column-index u-no-wrap\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-center flex-children-v-align-auto flex-gap-10\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"tableViewOptions\\\",\\\"allowHandPickRowMove\\\"]],[24,[\\\"tableViewOptions\\\",\\\"onDragStart\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[4,\\\"helpers/drag-container\\\",null,[[\\\"draggable\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"data\\\"],[true,[28,\\\"action\\\",[[23,0,[]],\\\"dragStart\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragEnd\\\",[24,[\\\"model\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"index\\\"]]]]]]],{\\\"statements\\\":[[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-grip-vertical\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gte\\\",[[23,0,[\\\"handPickRowIndex\\\"]],0],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"allowHandPickRowMove\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@btnClassNames\\\",\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@modalDialogTitle\\\",\\\"@modalSize\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\",\\\"@tooltipTranslate\\\",\\\"@translate\\\"],[\\\"element-btn-with-modal-dialog--no-border\\\",false,\\\"fas fa-pen fa-xs\\\",[28,\\\"sum\\\",[[23,0,[\\\"handPickRowIndex\\\"]],1],null],\\\"edit display order\\\",\\\"small\\\",[23,0,[\\\"startEditingHandPickIndex\\\"]],\\\"edit display order\\\",true,false]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@tab\\\"],[\\\"handPickRowIndex\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"tab\\\"],[\\\"simpleEditor-blocks\\\",[24,[\\\"tab\\\"]]]]],false,true,[22,\\\"tab\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isBasic\\\"],[\\\"hand_pick_index_group\\\",[23,15,[]],true]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isModal\\\",\\\"@label\\\",\\\"@rowClassNames\\\",\\\"@tab\\\"],[\\\"index\\\",[23,15,[]],true,\\\"display order\\\",\\\"form-input-row--inline\\\",[22,\\\"tab\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@max\\\",\\\"@min\\\",\\\"@onInput\\\",\\\"@step\\\",\\\"@type\\\",\\\"@value\\\"],[true,true,[24,[\\\"filters\\\",\\\"results\\\",\\\"length\\\"]],\\\"1\\\",[23,0,[\\\"setHandPickIndexDraft\\\"]],\\\"1\\\",\\\"number\\\",[23,0,[\\\"handPickIndexDraft\\\"]]]]],[0,\\\"\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[15]}],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"layouts/footer-btns\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,14,[]]]]],[0,\\\"\\\\n                        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"confirm\\\",[28,\\\"fn\\\",[[23,0,[\\\"submitHandPickIndex\\\"]],[23,14,[]]],null]]]],[0,\\\"\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[14]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"sum\\\",[[23,0,[\\\"handPickRowIndex\\\"]],1],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,16,[\\\"isCompactHandPickRows\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@statusLabel\\\",\\\"@statusBadgeClassNames\\\"],[[28,\\\"if\\\",[[23,17,[\\\"product\\\",\\\"isDeletedOrInactive\\\"]],\\\"campaignDetail_inactive\\\",[28,\\\"concat\\\",[\\\"campaignDetail_\\\",[23,17,[\\\"_data\\\",\\\"status\\\"]]],null]],null],[23,17,[\\\"statusClass\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"products/over-sales-limited-qty-tag\\\",[],[[\\\"@isOverSalesLimitedQty\\\",\\\"@overSalesLimitedQtyStatus\\\"],[[23,17,[\\\"isStatusAndCalculatedStatusDifferent\\\"]],[23,17,[\\\"_data\\\",\\\"calculatedStatusBeforeCart\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-tappable new-table-view__tr--detail-row__td\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"not\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-main-focus\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"customTriggerComponent\\\",\\\"disabled\\\",\\\"closeOnOverlayClick\\\",\\\"label\\\",\\\"translate\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"elements/element-btn-with-modal-dialog/custom-label\\\",[28,\\\"or\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],[24,[\\\"model\\\",\\\"product\\\",\\\"isDeletedOrInactive\\\"]]],null],false,[23,17,[\\\"item\\\"]],false,[23,17,[\\\"item\\\"]],false]],{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"products/products-shop-wizard/editor\\\",[],[[\\\"@tab\\\",\\\"@isNew\\\",\\\"@name\\\",\\\"@isFromShop\\\",\\\"@mode\\\",\\\"@isAutomations\\\",\\\"@campaign\\\",\\\"@campaignDetails\\\",\\\"@automationModel\\\",\\\"@campaignDetail\\\",\\\"@campaignDetailAdapterName\\\",\\\"@onDone\\\",\\\"@onCancel\\\"],[[23,18,[]],true,[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],true,\\\"campaignDetail\\\",[23,16,[\\\"isAutomations\\\"]],[23,16,[\\\"campaign\\\"]],[23,16,[\\\"campaignDetails\\\"]],[23,16,[\\\"automationModel\\\"]],[23,17,[]],[23,16,[\\\"adapterName\\\"]],[23,13,[]],[23,13,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[13]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,16,[\\\"isCompactHandPickRows\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,16,[\\\"automationModel\\\",\\\"isAutoAdd\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,17,[\\\"_data\\\",\\\"automationQty\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"channels/shop/items/item-price\\\",null,[[\\\"item\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesTaxRate\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,16,[\\\"isAutomations\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,16,[\\\"campaign\\\",\\\"enabledBulkDiscountsList\\\"]],\\\"_data.bulkDiscountId\\\",\\\"_data.name\\\",false,[23,0,[\\\"displayedBulkDiscountIds\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowProductSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"hasProductSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table has-text-small\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"start date\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"end date\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"product status\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"productSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,12,[\\\"isActive\\\"]],\\\"u-bg--green\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"dateTime\\\",[[23,12,[\\\"_data\\\",\\\"dateStartZ\\\"]]],null],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"dateTime\\\",[[23,12,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,12,[\\\"statusClass\\\"]]]]],[8],[1,[28,\\\"tt\\\",[[23,12,[\\\"_data\\\",\\\"status\\\"]]],null],false],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[12]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,16,[\\\"isCompactHandPickRows\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,17,[\\\"_data\\\",\\\"setType\\\"]],[23,17,[\\\"_data\\\",\\\"recurringSchedulesEnabled\\\"]],[23,17,[\\\"_data\\\",\\\"isOutOfSync\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[23,17,[\\\"_data\\\",\\\"setType\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[\\\"_data\\\",\\\"recurringSchedulesEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"recurring schedules\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[\\\"_data\\\",\\\"recurringSchedulesOnly\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  (\\\"],[1,[28,\\\"tt\\\",[\\\"recurring_only\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,17,[\\\"_data\\\",\\\"recurringSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,10,[\\\"_data\\\",\\\"label\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10,11]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[\\\"_data\\\",\\\"isOutOfSync\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"isOutOfSync\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,18,[]],\\\"auto\\\",40,[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[23,0,[\\\"model\\\"]],\\\"products\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,16,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column u-width-50\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"product tags\\\"]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column--content-tags\\\"],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\"],[[28,\\\"or\\\",[[23,0,[\\\"isReadonly\\\"]],[28,\\\"contains\\\",[\\\"productTags\\\",[23,17,[\\\"_data\\\",\\\"productSync\\\"]]],null]],null],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onCloseUpdateProductTags\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@adapterName\\\",\\\"@legend\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@isBulkEditing\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@tab\\\",\\\"@allowEmpty\\\"],[true,\\\"products/lists/tags\\\",\\\"tags\\\",[28,\\\"or\\\",[[23,0,[\\\"isReadonly\\\"]],[28,\\\"contains\\\",[\\\"productTags\\\",[23,17,[\\\"_data\\\",\\\"productSync\\\"]]],null]],null],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,17,[]],true,[23,16,[\\\"isBulkEditing\\\"]],\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],\\\"_data._key\\\",\\\"_data.productTags\\\",[22,\\\"tab\\\"],true]]],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[9]}],[0,\\\"\\\\n\\\\n                    \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,17,[\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"campaign detail product tags\\\"]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column--content-tags\\\"],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\"],[[23,0,[\\\"isReadonly\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onCloseUpdateProductTags\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@adapterName\\\",\\\"@legend\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@isBulkEditing\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@tab\\\",\\\"@allowEmpty\\\"],[true,\\\"products/lists/tags\\\",\\\"tags\\\",[23,0,[\\\"isReadonly\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,17,[]],true,[23,16,[\\\"isBulkEditing\\\"]],\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],\\\"_data._key\\\",\\\"_data.campaignDetailProductTags\\\",[22,\\\"tab\\\"],true]]],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\\n                    \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,17,[\\\"_data\\\",\\\"campaignDetailProductTags\\\"]]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,16,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,16,[\\\"campaign\\\",\\\"_data\\\",\\\"allowShipping\\\"]],[28,\\\"eq\\\",[[23,16,[\\\"campaign\\\",\\\"_data\\\",\\\"shippingFeeType\\\"]],\\\"zones\\\"],null],[28,\\\"not\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,17,[\\\"product\\\",\\\"_data\\\",\\\"type\\\"]],\\\"virtual\\\"],null],[28,\\\"eq\\\",[[23,17,[\\\"product\\\",\\\"_data\\\",\\\"type\\\"]],\\\"collectOnBehalf\\\"],null]],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,16,[\\\"isAutomations\\\"]]],null],[28,\\\"and\\\",[[23,16,[\\\"isAutomations\\\"]],[23,16,[\\\"automationModel\\\",\\\"isMayAdd\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column u-width-50\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[\\\"_data\\\",\\\"allowedShippingZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                          \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"allowed shipping zones\\\"]]],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column--content-tags\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,17,[\\\"_data\\\",\\\"allowedShippingZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[23,7,[\\\"_key\\\"]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/shipping-zones/tab-container\\\",\\\"shipping zones\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,7,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag u-truncate\\\"],[8],[0,\\\"\\\\n                            \\\"],[1,[23,7,[\\\"name\\\"]],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n                            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column--content-desc\\\"],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-circle-exclamation\\\"],[8],[9],[0,\\\" \\\"],[1,[23,0,[\\\"allowedShippingErrorMessage\\\"]],false],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[\\\"_data\\\",\\\"disallowedShippingZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                          \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"disallowed shipping zones\\\"]]],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column--content-tags\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,17,[\\\"_data\\\",\\\"disallowedShippingZones\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContentComponent\\\",\\\"@tabOptions\\\"],[true,[23,6,[\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"model\\\"],[\\\"channels/shop/items/item-shipping-zones\\\",[23,6,[]]]]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/shipping-zones/tab-container\\\",\\\"shipping zones\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,6,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                              \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag u-truncate \\\",[28,\\\"if\\\",[[23,6,[\\\"disallowedChildProducts\\\"]],\\\"is-warning\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"disallowedChildProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"                                  \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-circle-info\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                                \\\"],[1,[23,6,[\\\"name\\\"]],false],[0,\\\"\\\\n                              \\\"],[9],[0,\\\"\\\\n                            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,17,[\\\"hasUnsetWeight\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column\\\"],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column--content\\\"],[8],[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-circle-exclamation\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"has unset weight\\\"],null],false],[9],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--extra-row__td--content-column--content\\\"],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"span\\\",true],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-circle-info\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"shipping zones according to selected cart items\\\"],null],false],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/info-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"layouts/info-row/card\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[1,[28,\\\"tt\\\",[\\\"qty sold\\\"],null],false],[0,\\\": \\\"],[9],[0,\\\"\\\\n                \\\"],[5,\\\"channels/shop/qty-status\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/info-row/card\\\",[],[[\\\"@isBtn\\\"],[\\\"true\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"customTriggerComponent\\\",\\\"customTriggerOptions\\\",\\\"btnClassNames\\\",\\\"modalDialogTitle\\\",\\\"translate\\\",\\\"closeOnOverlayClick\\\",\\\"isRunning\\\",\\\"onClose\\\"],[\\\"channels/shop/campaigns/items/limit-qty-progress-bar-modal-trigger\\\",[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"numerator\\\",\\\"numeratorLabel\\\",\\\"denominator\\\",\\\"denominatorLabel\\\",\\\"showDenominatorLabel\\\",\\\"alternateLabel\\\"],[[24,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"calculatedAvailableQtyBeforeCart\\\"]],[28,\\\"tt\\\",[\\\"available_sales_qty\\\"],null],[24,[\\\"model\\\",\\\"calculatedSalesLimitedQty\\\"]],[28,\\\"tt\\\",[\\\"limited sales qty\\\"],null],false,[24,[\\\"model\\\",\\\"salesLimitedQtyLabel\\\"]]]]],\\\"has-border\\\",\\\"product limits\\\",false,false,[23,0,[\\\"refetchCampaignDetail\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"refetchCampaignDetail\\\"]],[24,[\\\"model\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"onSearchTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"paginationIsFooter\\\",\\\"results\\\",\\\"hasFilters\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"channels/shop/campaigns/items/table-view/detail-limit-row\\\",[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],false,[24,[\\\"model\\\",\\\"limitsSortedByItem\\\"]],false,[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"campaignModel\\\",\\\"isBulkEditing\\\",\\\"isReadonly\\\",\\\"isGuest\\\",\\\"limitAdjustType\\\"],[\\\"channels/shop/campaigns/details/limits\\\",[24,[\\\"tableViewOptions\\\",\\\"campaign\\\"]],[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[24,[\\\"isReadonly\\\"]],[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"limitAdjustType\\\"]]]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isSetWithChoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasAnyAllowSalesPreOrder\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"layouts/info-row/card\\\",[],[[\\\"@isBtn\\\"],[\\\"true\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"customTriggerComponent\\\",\\\"customTriggerOptions\\\",\\\"btnClassNames\\\",\\\"modalDialogTitle\\\",\\\"translate\\\",\\\"onClose\\\",\\\"closeOnOverlayClick\\\"],[\\\"channels/shop/campaigns/items/limit-qty-progress-bar-modal-trigger\\\",[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"numerator\\\",\\\"numeratorLabel\\\",\\\"denominator\\\",\\\"denominatorLabel\\\",\\\"showDenominatorLabel\\\",\\\"alternateLabel\\\"],[[24,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"calculatedAvailablePreOrderQtyOnlyBeforeCart\\\"]],[28,\\\"tt\\\",[\\\"available preOrder qty\\\"],null],[24,[\\\"model\\\",\\\"calculatedSalesPreOrderLimitedQty\\\"]],[28,\\\"tt\\\",[\\\"limited preOrder qty\\\"],null],false,[24,[\\\"model\\\",\\\"salesPreOrderLimitedQtyLabel\\\"]]]]],\\\"has-border\\\",\\\"product limits\\\",false,[28,\\\"perform\\\",[[23,0,[\\\"refetchCampaignDetail\\\"]],[24,[\\\"model\\\"]]],null],false]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"onSearchTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"paginationIsFooter\\\",\\\"results\\\",\\\"hasFilters\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"channels/shop/campaigns/items/table-view/detail-limit-row\\\",[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],false,[24,[\\\"model\\\",\\\"limitsSortedByItem\\\"]],false,[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"campaignModel\\\",\\\"isBulkEditing\\\",\\\"isReadonly\\\",\\\"isGuest\\\",\\\"limitAdjustType\\\"],[\\\"channels/shop/campaigns/details/limits\\\",[24,[\\\"tableViewOptions\\\",\\\"campaign\\\"]],[28,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],false,true],null],[24,[\\\"isReadonly\\\"]],[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"limitAdjustType\\\"]]]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[4,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"iconOnly\\\",\\\"isBtn\\\",\\\"model\\\"],[true,true,[23,17,[]]]]],false],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,17,[\\\"_data\\\",\\\"hasPassword\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-lock\\\"]]],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[1,[23,17,[\\\"_data\\\",\\\"password\\\"]],false],[0,\\\"\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\\n                    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"onRemove\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,19,[]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-trash\\\",\\\"remove item from page\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"tableViewOptions\\\",\\\"onRemove\\\"]],[24,[\\\"model\\\"]]],null]]]],[0,\\\"\\\\n\\\\n                      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"                      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,0,[\\\"showDetails\\\"]],\\\"fas fa-chevron-down\\\",\\\"fas fa-chevron-right\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleDetails\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"disabled\\\",\\\"closeOnOverlayClick\\\",\\\"modalDialogTitle\\\"],[\\\"fas fa-pen\\\",[24,[\\\"model\\\",\\\"product\\\",\\\"isDeletedOrInactive\\\"]],false,\\\"edit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"                        \\\"],[5,\\\"products/products-shop-wizard/editor\\\",[],[[\\\"@tab\\\",\\\"@isNew\\\",\\\"@name\\\",\\\"@isFromShop\\\",\\\"@mode\\\",\\\"@isAutomations\\\",\\\"@campaign\\\",\\\"@campaignDetails\\\",\\\"@automationModel\\\",\\\"@campaignDetail\\\",\\\"@campaignDetailAdapterName\\\",\\\"@onDone\\\",\\\"@onCancel\\\"],[[23,18,[]],true,[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],true,\\\"campaignDetail\\\",[23,16,[\\\"isAutomations\\\"]],[23,16,[\\\"campaign\\\"]],[23,16,[\\\"campaignDetails\\\"]],[23,16,[\\\"automationModel\\\"]],[23,17,[]],[23,16,[\\\"adapterName\\\"]],[23,2,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[0,\\\"                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]],[28,\\\"or\\\",[[24,[\\\"tableViewOptions\\\",\\\"allowProductRowEdit\\\"]],[24,[\\\"tableViewOptions\\\",\\\"allowHandPickRowMove\\\"]],[24,[\\\"tableViewOptions\\\",\\\"allowRemoveFromBlock\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"allowRemoveFromBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\",\\\"@tooltipLabel\\\"],[\\\"remove_from_block_confirm\\\",true,\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[24,[\\\"tableViewOptions\\\",\\\"onRemoveHandPickProductFromBlock\\\"]],[23,17,[]]],null],true,\\\"remove from block\\\"]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"tableViewOptions\\\",\\\"allowHandPickRowMove\\\"]],[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"allowProductRowEdit\\\"]],[24,[\\\"tableViewOptions\\\",\\\"productRowEditTab\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"allowHandPickRowMove\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[23,0,[\\\"isHandPickMoveUpDisabled\\\"]],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[24,[\\\"tableViewOptions\\\",\\\"onMoveHandPickProductUp\\\"]],[23,17,[]]],null],\\\"move up\\\"]]],[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[23,0,[\\\"isHandPickMoveDownDisabled\\\"]],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[24,[\\\"tableViewOptions\\\",\\\"onMoveHandPickProductDown\\\"]],[23,17,[]]],null],\\\"move down\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"allowProductRowEdit\\\"]],[24,[\\\"tableViewOptions\\\",\\\"productRowEditTab\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"disabled\\\",\\\"closeOnOverlayClick\\\",\\\"modalDialogTitle\\\",\\\"onClose\\\"],[\\\"fas fa-pen\\\",[24,[\\\"model\\\",\\\"product\\\",\\\"isDeletedOrInactive\\\"]],false,\\\"edit\\\",[24,[\\\"tableViewOptions\\\",\\\"onProductRowEditClose\\\"]]]],{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"products/products-shop-wizard/editor\\\",[],[[\\\"@tab\\\",\\\"@isNew\\\",\\\"@isFromShop\\\",\\\"@mode\\\",\\\"@isAutomations\\\",\\\"@campaign\\\",\\\"@campaignDetails\\\",\\\"@automationModel\\\",\\\"@campaignDetail\\\",\\\"@campaignDetailAdapterName\\\",\\\"@onDone\\\",\\\"@onCancel\\\"],[[24,[\\\"tableViewOptions\\\",\\\"productRowEditTab\\\"]],true,true,\\\"campaignDetail\\\",[23,16,[\\\"isAutomations\\\"]],[23,16,[\\\"campaign\\\"]],[23,16,[\\\"campaignDetails\\\"]],[23,16,[\\\"automationModel\\\"]],[23,17,[]],[23,16,[\\\"adapterName\\\"]],[23,1,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,16,[\\\"isCompactHandPickRows\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group new-table-view__tr-group--separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"new-table-view__tr--separator \\\",[28,\\\"if\\\",[[23,16,[\\\"isAutomations\\\"]],\\\"automations-details-row\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[\\\"isShowBulkDiscountConflictDialogInDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-conflicts-dialog\\\",[],[[\\\"@model\\\",\\\"@detailModel\\\"],[[23,16,[\\\"campaign\\\"]],[23,17,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/items/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/locations-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ChannelsShopCampaignsLocationsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('products'), _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _class = class ChannelsShopCampaignsLocationsEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args?.adapterName);\n      this.crud.addLists(this, ['products/lists/tags', 'channels/shop/campaigns/lists/locations', {\n        adapterName: 'channels/shop/delivery-date-options',\n        appendPath: 'dispatch-type/pickupLocations'\n      }]);\n      const model = this.args?.model || {};\n      const tab = this.args?.tab || {};\n      this.tab = tab;\n      const isEditing = this.args?.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    get includeProductTagsList() {\n      const deniedProductTags = this.args?.model?._data?.denyProductTags || [];\n      return this.productsService.getProductTagList({\n        exclude: deniedProductTags\n      });\n    }\n    get excludeProductTagsList() {\n      const allowedProductTags = this.args?.model?._data?.productTags || [];\n      return this.productsService.getProductTagList({\n        exclude: allowedProductTags\n      });\n    }\n    get hasRunningTasks() {\n      const isRemoveRecordTaskRunning = this.crud.removeRecordTask.isRunning;\n      const isReplaceRecordTaskRunning = this.crud.replaceRecordTask.isRunning;\n      const isUdpdateRecordTaskRunning = this.crud.updateRecordTask.isRunning;\n      const isCreateRecordTaskRunning = this.crud.createRecordTask.isRunning;\n      return isRemoveRecordTaskRunning || isReplaceRecordTaskRunning || isUdpdateRecordTaskRunning || isCreateRecordTaskRunning;\n    }\n    afterCreateRecordTask(model) {\n      this.args?.onAddItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args?.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask() {\n      this.args?.onRemoveItem?.(this.model);\n    }\n    cancel() {\n      this.args?.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/locations-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"URb2VEKC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@disabled\\\",\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@isUserAllowed\\\",\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@tab\\\"],[true,\\\"store-location-settings\\\",false,[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"storeLocationSettings_group\\\",[23,1,[]],\\\"store location settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"campaignsLocations\\\",true,\\\"label\\\",[23,0,[\\\"model\\\"]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[\\\"label\\\",true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"address\\\",\\\"campaignsLocations\\\",true,\\\"address\\\",[23,0,[\\\"model\\\"]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[\\\"address\\\",false,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"address\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"deliveryDateOptionsEnabled\\\",\\\"campaignsLocations\\\",[23,6,[]],\\\"on checkout pickup date selection\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],[28,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"deliveryDateOptionsEnabled\\\"]],\\\"enabled\\\",\\\"disabled\\\"],null],false,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"deliveryDateOptionsEnabled\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"deliveryDateOptionsEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"pickup date settings\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"deliveryDateOptionsKey\\\",\\\"campaignsLocations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@tab\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@alwaysShowEditor\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\"],[true,true,false,[23,3,[]],[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-delivery-date-options--dispatch-type-pickupLocations\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"deliveryDateOptionsKey\\\"]],true,\\\"channels/shop/delivery-date-options/pickup-date-options-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"delivery date options\\\",true]]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"productTags\\\",[23,6,[]],\\\"allowed product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,5,[]],\\\"fas fa-tags\\\",[23,0,[\\\"includeProductTagsList\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"includeProductTagsList\\\"]],[23,0,[\\\"model\\\"]],true,\\\"_data._key\\\",[23,3,[]],false,\\\"_data.productTags\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"includeProductTagsList\\\"]],\\\"_data._key\\\",false,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"denyProductTags\\\",[23,6,[]],\\\"denied product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,5,[]],\\\"fas fa-tags\\\",[23,0,[\\\"excludeProductTagsList\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"excludeProductTagsList\\\"]],[23,0,[\\\"model\\\"]],true,\\\"_data._key\\\",[23,3,[]],false,\\\"_data.denyProductTags\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"excludeProductTagsList\\\"]],\\\"_data._key\\\",false,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"denyProductTags\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterRemoveRecordTask\\\"]],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"hasRunningTasks\\\"]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterCreateRecordTask\\\"]],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/locations-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/mixins/campaigns-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      query,\n      filters,\n      match,\n      byLatest,\n      campaignStatus,\n      dateStart,\n      dateEnd,\n      resultsProperty,\n      resultsToggle,\n      component\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      if (campaignStatus) {\n        filters.setData('campaignStatus', campaignStatus);\n      }\n      if (byLatest || campaignStatus) {\n        filters.setData('sort', [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters,\n        component\n      };\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n\n      // this.set('showResults', true)\n\n      return results;\n    }),\n    actions: {\n      listByDate(onHideDropdown, dateZ, date) {\n        return this.listByTask.perform({\n          filters: this.filters,\n          date,\n          dateZ,\n          resultsToggle: 'resultsToggle'\n        }, onHideDropdown);\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-details-results/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-details-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"U1l+HVPB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"templateModel\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"campaignsFilter\\\",\\\"campaignsDetailsList\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"templates\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-import-btn__item-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"header\\\"]]],null,{\\\"statements\\\":[[0,\\\"          - \\\"],[1,[23,2,[\\\"_data\\\",\\\"header\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-import-btn__template-preview\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"helpers/content-display\\\",null,[[\\\"content\\\"],[[23,2,[\\\"_data\\\",\\\"template\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"replace\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onReplaceTemplate\\\"]],[23,2,[\\\"_data\\\",\\\"template\\\"]],[23,1,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"insert\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onInsertTemplate\\\"]],[23,2,[\\\"_data\\\",\\\"template\\\"]],[23,1,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"campaignsFilter\\\"]],[24,[\\\"campaignsDetailsList\\\"]],[24,[\\\"onPaginationTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-details-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-results/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Jg3+K0HR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"campaign\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"campaignsList\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-import-btn__item-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-import-btn__template-preview\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"helpers/content-display\\\",null,[[\\\"content\\\"],[[23,1,[\\\"_data\\\",\\\"template\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"replace\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onReplaceTemplate\\\"]],[23,1,[\\\"_data\\\",\\\"template\\\"]],[23,1,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"insert\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onInsertTemplate\\\"]],[23,1,[\\\"_data\\\",\\\"template\\\"]],[23,1,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/page-import-btn/campaigns-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/page-import-btn/component\", [\"exports\", \"client/mixins/crud\", \"client/utils/nventor\", \"ember-concurrency\", \"ramda\", \"ramda-extension\"], function (_exports, _crud, _nventor, _emberConcurrency, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tagName: 'span',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/pageImportBtnSubPanels']);\n      const productsFilter = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'productsList'\n        }\n      });\n      const campaignsDetailsFilter = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        defaultFiltersData: {\n          resultsProperty: 'campaignsDetailsList'\n        }\n      });\n      const campaignsFilter = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {\n          resultsProperty: 'campaignsList'\n        }\n      });\n      this.set('productsFilter', productsFilter);\n      this.set('campaignsDetailsFilter', campaignsDetailsFilter);\n      this.set('campaignsFilter', campaignsFilter);\n    },\n    pageImportBtnSubPanels: Ember.computed('crud.lists.channels-shop-campaigns-lists-pageImportBtnSubPanels.[]', 'productsList.[]', 'campaignsDetailsList.[]', 'campaignsList.[]', function () {\n      const subPanels = R_.dotPath('crud.lists.channels-shop-campaigns-lists-pageImportBtnSubPanels')(this) || [];\n      if (!R.isEmpty(subPanels)) {\n        const productsList = this.productsList || [];\n        const campaignsList = this.campaignsList || [];\n        const campaignsDetailsList = this.campaignsDetailsList || [];\n        return R.map(panel => {\n          if (panel._data.value === 'products') {\n            panel.setData('badge', productsList.length);\n          }\n          if (panel._data.value === 'campaigns') {\n            panel.setData('badge', campaignsList.length);\n          }\n          if (panel._data.value === 'campaignsDetails') {\n            panel.setData('badge', campaignsDetailsList.length);\n          }\n          return panel;\n        }, subPanels);\n      }\n      return subPanels;\n    }),\n    searchTask: (0, _emberConcurrency.task)(function* () {\n      const q = [];\n      const query = this.query || '';\n      q.push(this._searchTask.perform({\n        adapterName: 'channels/shop/campaigns/templates',\n        resultsProperty: 'campaignsList',\n        query,\n        filters: this.campaignsFilter\n      }));\n      q.push(this._searchTask.perform({\n        adapterName: 'channels/shop/campaigns/details/templates',\n        resultsProperty: 'campaignsDetailsList',\n        query,\n        filters: this.campaignsDetailsFilter\n      }));\n      q.push(this._searchTask.perform({\n        adapterName: 'products',\n        resultsProperty: 'productsList',\n        query,\n        filters: this.productsFilter\n      }));\n      yield (0, _emberConcurrency.all)(q);\n    }),\n    _searchTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      query,\n      filters,\n      resultsProperty\n    }) {\n      const results = yield this.searchRecordsConcurrentlyTask.perform({\n        adapterName,\n        query,\n        filters\n      });\n      this.set(resultsProperty, results);\n      return results;\n    }).enqueue(),\n    actions: {\n      replaceTemplate(onCloseDialogAction, template, templateImages = []) {\n        const model = this.model;\n        model.replaceTemplate(template, templateImages);\n        this.onUpdateContent(model.getData('template'));\n        onCloseDialogAction();\n      },\n      insertTemplate(onCloseDialogAction, template, templateImages = []) {\n        const model = this.model;\n        model.insertTemplate(template, templateImages);\n        this.onUpdateContent(model.getData('template'));\n        onCloseDialogAction();\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/page-import-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"msEva+ke\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"subTab\\\",\\\"@tab\\\",\\\"@disabled\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@modalDialogTitle\\\",\\\"@onSubmit\\\",\\\"@closeOnOverlayClick\\\"],[\\\"fas fa-file-import\\\",[23,4,[]],\\\"insert or replace templates\\\",[28,\\\"perform\\\",[[23,0,[\\\"searchTask\\\"]]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,3,[]],[23,3,[\\\"subTabs\\\"]],[23,5,[]],[23,0,[\\\"pageImportBtnSubPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,3,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRunning\\\",\\\"@value\\\",\\\"@placeholder\\\",\\\"@autofocus\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"searchTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"query\\\"]],\\\"search\\\",true,true,[28,\\\"perform\\\",[[23,0,[\\\"searchTask\\\"]]],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"searchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"campaignsList\\\"]],[23,0,[\\\"campaignsDetailsList\\\"]],[23,0,[\\\"productsList\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,3,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"component\\\",[[23,2,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"onReplaceTemplate\\\",\\\"onInsertTemplate\\\",\\\"productsList\\\",\\\"campaignsDetailsList\\\",\\\"campaignsList\\\",\\\"productsFilter\\\",\\\"campaignsFilter\\\",\\\"onPaginationTask\\\"],[[23,2,[]],[28,\\\"action\\\",[[23,0,[]],\\\"replaceTemplate\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"insertTemplate\\\",[23,1,[]]],null],[23,0,[\\\"productsList\\\"]],[23,0,[\\\"campaignsDetailsList\\\"]],[23,0,[\\\"campaignsList\\\"]],[23,0,[\\\"productsFilter\\\"]],[23,0,[\\\"campaignsFilter\\\"]],[23,0,[\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/page-import-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-dash-linked/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 ChannelsShopCampaignsCampaignsPanelsDashLinkedComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('settings'), _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _class = class ChannelsShopCampaignsCampaignsPanelsDashLinkedComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"selectedItems\", _descriptor4, this);\n    }\n    selectItem(item, isSelected) {\n      const selected = this.selectedItems || [];\n      if (isSelected === true) {\n        selected.pushObject(item);\n      } else {\n        selected.removeObject(item);\n      }\n      Ember.set(this, 'selectedItems', selected);\n    }\n    toggleSelectAllItems() {\n      const selectedItems = this.selectedItems || [];\n      let results = this.args?.linkedFilters?.results || [];\n      results = R.reject(R.propEq('isAllChildrenSynced', true))(results);\n      if (R.equals(selectedItems, results)) {\n        Ember.set(this, 'selectedItems', []);\n      } else {\n        Ember.set(this, 'selectedItems', results);\n      }\n    }\n    *syncCampaignsTask() {\n      if (!this.settingsService.getProp('features.allowMasterChildCampaigns')) {\n        return false;\n      }\n      const selectedItems = this?.selectedItems || [];\n      const masters = R.map(selected => {\n        const campaign = selected.serialize();\n        return {\n          _id: campaign._id,\n          _key: campaign._key\n        };\n      })(selectedItems);\n      const data = {\n        masters\n      };\n      yield this.server.call('PATCH', `api/protected/channels/shop/campaigns/master/batch`, data);\n      Ember.set(this, 'selectedItems', []);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"selectedItems\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectItem\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"selectItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelectAllItems\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelectAllItems\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"syncCampaignsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"syncCampaignsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/panels-dash-linked/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"I2huX4Ov\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@linkedFilters\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[\\\"@contentClassNames\\\"],[\\\"is-gray\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@tableClassNames\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[\\\"channels/shop/campaigns/table-view/detail-row/linked\\\",[23,1,[]],\\\"new-table-view\\\",[23,1,[\\\"results\\\"]],[23,2,[]],[28,\\\"hash\\\",null,[[\\\"onSelectItem\\\",\\\"onToggleSelectAllItems\\\",\\\"selectedItems\\\"],[[23,0,[\\\"selectItem\\\"]],[23,0,[\\\"toggleSelectAllItems\\\"]],[23,0,[\\\"selectedItems\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\",\\\"@tagName\\\"],[[23,1,[]],[23,1,[\\\"results\\\"]],[23,0,[\\\"onPaginationTask\\\"]],true,\\\"span\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"sync campaigns\\\",[28,\\\"perform\\\",[[23,0,[\\\"syncCampaignsTask\\\"]]],null],[23,0,[\\\"syncCampaignsTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-dash-linked/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-dash/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/date\", \"client/pods/components/channels/shop/campaigns/mixins/campaigns-list-by\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, _date, _campaignsListBy, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_campaignsListBy.default, _date.default, {\n    crud: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    adapterName: 'channels/shop/campaigns',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['periods/months', 'periods/years', 'channels/shop/campaigns/reports/filters', 'taxMethods/filters']);\n      const customDateStartZ = this.dateService.getMonthStart().toISOString();\n      const customDateEndZ = this.dateService.getMonthEnd().toISOString();\n      this.customDateStartZ = customDateStartZ;\n      this.customDateEndZ = customDateEndZ;\n      this.set('showCampaignReportBy', Ember.Object.create({\n        revenueBy: 'ordered',\n        taxMethods: 'inclusive'\n      }));\n      const period = this.getPeriod();\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      this.displayByMonth(period);\n      this.tabsManager.setHeader(this.tabParent, this.intl.t('overview'));\n    },\n    displayByMonth(period) {\n      const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n      this.display({\n        dateStart,\n        dateEnd\n      });\n    },\n    display(period) {\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      this.set('period', period);\n      this.set('dateStart', dateStart);\n      this.set('dateEnd', dateEnd);\n      this.fetchReportsTask.perform({\n        dateStart,\n        dateEnd\n      });\n    },\n    dispatchStatusFilter: Ember.computed('showCampaignReportBy.revenueBy', function () {\n      const revenueBy = this.get('showCampaignReportBy.revenueBy');\n      if (revenueBy === 'ordered') {\n        return 'all';\n      }\n      return this.get('constants.dispatchStatus.dispatched');\n    }),\n    fetchReportsTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd\n    }) {\n      const monthlyReport = yield this._fetchReportTask.perform({\n        dateStart,\n        dateEnd,\n        segments: ['dateZ']\n      });\n      this.set('monthlyReport', monthlyReport);\n      this.set('itemReport', []);\n      this.set('sourceReport', []);\n      this.set('paymentMethodKeyReport', []);\n      this.set('contactReport', []);\n      // this.fetchYearTask.perform({ dateStart, dateEnd })\n    }),\n    displayItemReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const itemReport = yield this._fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['item']\n        });\n        this.set('itemReport', itemReport);\n      }\n    }),\n    displaySourceReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const sourceReport = yield this._fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['source']\n        });\n        this.set('sourceReport', sourceReport);\n      }\n    }),\n    displayPaymentMethodKeyReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const paymentMethodKeyReport = yield this._fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['paymentMethodKey']\n        });\n        this.set('paymentMethodKeyReport', paymentMethodKeyReport);\n      }\n    }),\n    displayContactReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const contactReport = yield this._fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['contact', 'contactTags', 'customerType', 'memberType', 'gender', 'age']\n        });\n        this.set('contactReport', contactReport);\n      }\n    }),\n    _fetchReportTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd,\n      segments = []\n    }) {\n      const monthParams = {\n        docType: 'sales',\n        dateStart,\n        dateEnd,\n        match: ['channel'],\n        status: this.get('constants.documentsStatus.final'),\n        dispatchStatus: this.dispatchStatusFilter,\n        query: 'shop',\n        // segments: [\n        //   'dateZ',\n        //   'contact',\n        //   'item',\n        //   'channel',\n        //   'source',\n        //   'paymentMethodKey',\n        //   'promoCode',\n        //   'customerType',\n        //   'memberType',\n        //   'gender',\n        //   'age'\n        // ]\n        segments\n        // segments: ['dateZ', 'contact', 'item', 'itemWithGroupedSetWithChoices', 'channel', 'source', 'paymentMethodKey', 'promoCode']\n      };\n      const results = yield this.server.call('GET', 'api/protected/reports/dashboard/', monthParams);\n      return results.data;\n      // this.set('monthlyReport', month.data)\n    }),\n    fetchYearTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd\n    }) {\n      // @NOTE: this is taking too long\n      // const yearParams = {\n      //   docType: 'sales',\n      //   dateStart: this.formatDateForUrl(this.getYearStart(dateStart)),\n      //   dateEnd: this.formatDateForUrl(this.getYearEnd(dateEnd)),\n      //   match: ['channel'],\n      //   status: this.get('constants.documentsStatus.final'),\n      //   dispatchStatus: this.dispatchStatusFilter,\n      //   query: 'shop',\n      //   segments: ['month']\n      // }\n      // const year = yield this.server.call('GET', 'api/protected/reports/dashboard/', yearParams)\n      // this.set('yearlyReport', year.data)\n    }),\n    isTaxExclusive: Ember.computed('showCampaignReportBy.taxMethods', function () {\n      if (this.get('showCampaignReportBy.taxMethods') === 'exclusive') {\n        return true;\n      }\n      return false;\n    }),\n    actions: {\n      display(model) {\n        this.display(model);\n      },\n      displayByMonth(period) {\n        this.displayByMonth(period);\n      },\n      displayByCustom() {\n        if (!this.customDateEndZ || !this.customDateStartZ) {\n          return;\n        }\n        const period = this.dateService.getCustomPeriod(this.customDateEndZ, this.customDateStartZ);\n        this.display(period);\n      },\n      fetchReports({\n        dateStart,\n        dateEnd\n      }) {\n        dateStart = dateStart || this.dateStart;\n        dateEnd = dateEnd || this.dateEnd;\n        this.fetchReportsTask.perform({\n          dateStart,\n          dateEnd\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tIgGccld\",\n    \"block\": \"{\\\"symbols\\\":[\\\"period\\\",\\\"@chartOptions\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-3 u-margin-right-3\\\"],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"is-primary u-margin-left-3\\\",[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustom\\\"],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\" \\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,1,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"date_period\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[24,[\\\"monthlyReport\\\",\\\"dateStartZ\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"monthlyReport\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\",\\\"onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-reports-filters\\\"]],\\\"list-selector list-selector--horizontal\\\",[24,[\\\"showCampaignReportBy\\\"]],\\\"revenueBy\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false,[28,\\\"action\\\",[[23,0,[]],\\\"fetchReports\\\",[28,\\\"hash\\\",null,[[\\\"dateStart\\\",\\\"dateEnd\\\"],[\\\"\\\",\\\"\\\"]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],\\\"list-selector list-selector--horizontal\\\",[24,[\\\"showCampaignReportBy\\\"]],\\\"taxMethods\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-half-item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-stats\\\",null,[[\\\"title\\\",\\\"isTaxExclusive\\\",\\\"report\\\",\\\"fetchReportTask\\\"],[\\\"stats for month\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"monthlyReport\\\"]],[24,[\\\"fetchReportTask\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-half-item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartHeight\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"revenue for month\\\",\\\"bar\\\",\\\"200\\\",[23,2,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"monthlyReport\\\"]],[23,0,[\\\"monthlyReport\\\",\\\"segments\\\",\\\"dateZ\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"isItem\\\",\\\"data\\\"],[\\\"revenue by product\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",true,[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"itemReport\\\",\\\"segments\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"sourceReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by campaign\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"sourceReport\\\",\\\"segments\\\",\\\"source\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"translate\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by payment method\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",true,[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"paymentMethodKeyReport\\\",\\\"segments\\\",\\\"paymentMethodKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by contact\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-tags\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"hasWarning\\\",\\\"warningText\\\",\\\"isContactTags\\\",\\\"data\\\"],[\\\"revenue by contact tags\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],true,\\\"may contain duplicate data\\\",true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contactTags\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by customer type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"customerType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by member type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"memberType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by gender\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"gender\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by age\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"age\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by product\\\",[23,0,[\\\"displayItemReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayItemReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"sourceReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by shop\\\",[23,0,[\\\"displaySourceReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displaySourceReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by payment method\\\",[23,0,[\\\"displayPaymentMethodKeyReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayPaymentMethodKeyReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by contact\\\",[23,0,[\\\"displayContactReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayContactReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\", \"client/mixins/crud\", \"client/config/environment\", \"client/utils/nventor\", \"ember-concurrency\"], function (_exports, R, R_, RA, _crud, _environment, _nventor, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    posService: Ember.inject.service('pos'),\n    adapterName: 'channels/shop/campaigns',\n    copyErrors: null,\n    headerBottom: null,\n    selectedItems: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['users', 'statuses', 'toggles/auto', 'toggles/onOff', 'toggles/onOff', 'paymentMethods/shop', 'channels/shop/campaigns/statuses', 'channels/shop/campaigns/overSalesLimitedQtyStatuses', 'channels/shop/campaigns/lists/subPanels', 'channels/shop/campaigns/lists/settings-editor/editor-sub-panels', 'channels/shop/campaigns/deliveryDateSettings', 'channels/shop/campaigns/deliveryDateSettingsItems', 'extensions/apps/tw/invoicingAuto', 'products/lists/tags', 'shipping/feeType', 'commissions/methods', 'dispatch/lists/processes']);\n      this.set('copyErrors', []);\n      this.set('selectedItems', []);\n      this.set('config', _environment.default);\n      const master = this.model.getData('_key');\n      const productsFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        props: {\n          showStarred: true,\n          showFilters: true,\n          // dynamicFilterKeys will never be saved, but will always get from current filters to load from saved\n          dynamicFilterKeys: ['master', 'resultsProperty', 'resultsAdapterName', 'appendPath']\n        },\n        defaultFiltersData: {\n          master,\n          resultsProperty: 'results',\n          resultsAdapterName: 'channels/shop/campaigns/details',\n          appendPath: `/master/${master}`,\n          shopProductsSort: this.settings.settingsModel?._data?.shopProductsSort || 'recommended',\n          statuses: ['active', 'inactive', 'preOrder', 'soldOut', 'draft'],\n          sort: [{\n            by: 'index',\n            direction: 'ASC'\n          }]\n        }\n      });\n      this.set('productsFilters', productsFilters);\n      this.tabsManager.setHeader(this.tabParent, this.model.getData('name'));\n    },\n    webPosLink: Ember.computed('config.APP.{appUrl,shopUrl}', 'settings.shopUrlPrefix', 'model._data.shopUrl', function () {\n      return this.posService.generateWebPosLink(this.model);\n    }),\n    hasSalesPersons: Ember.computed('model._data.salesPersons.[]', function () {\n      // @TODO TEST\n      const salesPersons = this.get('model._data.salesPersons');\n      if (Ember.isEmpty(salesPersons)) {\n        return false;\n      }\n      return salesPersons;\n    }),\n    filteredSubPanels: Ember.computed('model._data.showCampaignPeriodDataOnly', 'crud.lists.channels-shop-campaigns-lists-subPanels.[]', function () {\n      const subPanels = R.pathOr([], ['crud', 'lists', 'channels-shop-campaigns-lists-subPanels'])(this);\n      return subPanels;\n    }),\n    duplicateRecordTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      model,\n      onAfter\n    } = {}) {\n      adapterName = adapterName || this.adapterName;\n      model = model || this.dirty;\n      return yield this.crud.createRecordTask.perform({\n        adapterName,\n        model,\n        errorsProp: 'copyErrors',\n        onAfter\n      });\n      // try {\n      //   let saved = yield this.get('dataManager').createRecord(adapterName, model)\n\n      //   return this.get('onDisplay')(saved)\n      // } catch (err) {\n      //   this.set('copyErrors', err.data)\n      //   nventor.throw('duplicateRecordTask failed', err)\n      // }\n    }).drop(),\n    // displaySubPanel (resourceModel) {\n    //   const subTabOptions = {\n    //     component: resourceModel.getData('component'),\n    //     value: resourceModel.getData('value')\n    //   }\n    //   const tab = this.tab\n    //   this.tabsManager.reuseSubTab(tab, subTabOptions)\n    // },\n\n    removeProductsBatchTask: (0, _emberConcurrency.task)(function* (e, originatingComponent, additionalOptions = {}) {\n      const master = this.get('model._data._key');\n      let selectedItems = this.get('selectedItems') || [];\n      selectedItems = R.filter(item => {\n        if (item.isDeleted) {\n          return false;\n        }\n        if (item?._data?.isDeleted) {\n          return false;\n        }\n        return true;\n      })(selectedItems);\n      if (RA.isNilOrEmpty(selectedItems) || !master) {\n        return false;\n      }\n      const removedBatch = yield this.crud.removeBatchTask.perform({\n        adapterName: 'channels/shop/campaigns/details',\n        appendPath: `/master/${master}/batch`,\n        batch: selectedItems,\n        noConfirm: true\n      }, e, originatingComponent, additionalOptions);\n      const hasRemovedBatch = RA.isNotNilOrEmpty(removedBatch);\n      if (!hasRemovedBatch) {\n        return;\n      }\n\n      // @TODO: display unsuccessful removed details on table view\n      const removedItems = R.pipe(R.pathOr([], ['resolved']), R.map(data => {\n        const campaignDetailId = R.pathOr('', ['removed', 'campaignDetail', '_id'])(data);\n        const item = R.find(R.pathEq(['_data', '_id'], campaignDetailId))(selectedItems);\n        if (!item) {\n          return;\n        }\n        item.set('isDeleted', true);\n        return item;\n      }))(removedBatch);\n      this.set('selectedItems', []);\n      return removedItems;\n    }).drop(),\n    editPanel() {\n      const tab = this.tab;\n      const model = this.model;\n      const loadInstructionsForActivePanels = this.tabsManager.getLoadInstructionsForActivePanels(tab, [{\n        componentPath: '_data.editingComponent',\n        menu: R_.dotPath('crud.lists.channels-shop-campaigns-lists-subPanels')(this) || []\n      }, {\n        componentPath: '_data.component',\n        menu: R_.dotPath('crud.lists.channels-shop-campaigns-lists-settings-editor-editor-sub-panels')(this)\n      }]);\n      const activeTab = this.tabsManager.getActiveSubTab(tab);\n      let isAdvancedTemplate = false;\n      if (activeTab?.editingComponent === 'channels/shop/campaigns/campaigns-editor/advanced-template') {\n        isAdvancedTemplate = true;\n      }\n      const tabOptions = {\n        loadInstructionsForActivePanels,\n        isAdvancedTemplate\n      };\n      this.onEdit(model, {\n        tabOptions\n      });\n    },\n    resetProductFilters() {\n      this.productsFilters.reset();\n    },\n    actions: {\n      selectItem(item, isSelected) {\n        const selected = this.get('selectedItems') || [];\n        if (isSelected === true) {\n          selected.pushObject(item);\n        } else {\n          selected.removeObject(item);\n        }\n        this.set('selectedItems', selected);\n      },\n      toggleSelectAllItems(tableViewOptions) {\n        const campaignDetails = tableViewOptions.campaignDetails;\n        const selectedItems = this.get('selectedItems') || [];\n        if (selectedItems === campaignDetails) {\n          this.set('selectedItems', []);\n        } else {\n          this.set('selectedItems', campaignDetails);\n        }\n      },\n      prepareDuplicateRecord() {\n        const model = this.model;\n        const adapterName = this.adapterName;\n        const adapter = this.dataManager.getAdapter(adapterName);\n        const data = adapter.serialize(model);\n        const newModel = this.setupNewRecord({\n          adapterName,\n          data\n        });\n        let name = model.getData('name');\n        let shopUrl = model.getData('shopUrl');\n        name = `${name}-copy-` + _nventor.default.random.digits(3);\n        shopUrl = `${shopUrl}-copy-` + _nventor.default.random.digits(3);\n        newModel.setData('status', this.get('constants.status.inactive'));\n        newModel.setData('name', name);\n        newModel.setData('password', '');\n        newModel.setData('shopUrl', shopUrl);\n        newModel.setData('_key', '');\n        newModel.setData('_id', '');\n        newModel.setData('_rev', '');\n        newModel.setData('modified', '');\n        newModel.setData('created', '');\n        newModel.setData('copyFromKey', model.getData('_key'));\n        this.set('dirty', newModel);\n      },\n      cancelDuplicateRecord(dirty) {\n        const adapterName = this.adapterName;\n        this.dataManager.cancelDirty(adapterName, dirty);\n        // this.cancelEditing({\n        //   adapterName,\n        //   dirty\n        // })\n      },\n      assignSalesPerson(person) {\n        const dirty = this.dirty;\n        dirty.addSalesPerson(person);\n\n        // set commission default to\n        dirty.setData('commissionMethod', this.get('constants.commissionMethod.percentagePrice'));\n      },\n      unassignSalesPerson(person) {\n        const dirty = this.dirty;\n        dirty.removeSalesPerson(person);\n      },\n      toggleCommissionMethod() {\n        const dirty = this.dirty;\n        dirty.setData('commissionFlat', '');\n        dirty.setData('commissionPercentage', '');\n      },\n      resetSelectedItems() {\n        this.set('selectedItems', []);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"editPanel\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"editPanel\"), _obj), _applyDecoratedDescriptor(_obj, \"resetProductFilters\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"resetProductFilters\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-3rd-party/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-3rd-party/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WEPGVutZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@headerBottom\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/3rd-party-editor\\\",[],[[\\\"@headerBottom\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[[23,1,[]],false,true,[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],true,[23,2,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-3rd-party/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, R, R_, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.set('docType', 'sales');\n      this.crud.addLists(this, [{\n        name: 'documents/lists/types/sales'\n      }]);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const initialPanel = this.tabsManager.getLoadInstructions(this.tab) || _nventor.default.safeHeadOr({}, this.activityDocTypes);\n      this.tabsManager.displaySubPanel(this, initialPanel);\n    },\n    activityDocTypes: Ember.computed('crud.lists.documents-lists-types-sales.[]', function () {\n      const docTypesList = R_.dotPath('crud.lists.documents-lists-types-sales')(this) || [];\n      return R.pipe(R.filter(option => option._data.docName === 'invoices' || option._data.docName === 'returns'), R.map(resourceData => {\n        const docType = resourceData.getData('docType');\n        const docName = resourceData.getData('docName');\n        resourceData.setData('tabType', 'replaceSubTab');\n        resourceData.setData('id', `${docType}-${docName}`);\n        resourceData.setData('component', 'channels/shop/campaigns/panels-display/sub-panels-activity/sub-panels-activity-doc');\n        return resourceData;\n      }))(docTypesList);\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/sub-panels-activity-doc/component\", [\"exports\", \"ramda\", \"client/mixins/doc-list-by\", \"client/mixins/crud\", \"client/mixins/doc-status\", \"ember-concurrency\", \"client/pods/documents/proxy/model\", \"client/utils/nventor\"], function (_exports, R, _docListBy, _crud, _docStatus, _emberConcurrency, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _docListBy.default, _docStatus.default, {\n    crud: Ember.inject.service(),\n    filtersAdapterName: 'documents/dispatch/filters',\n    page: 1,\n    count: 20,\n    isSearching: false,\n    adapterName: Ember.computed('tab.{docType,docName}', function () {\n      const docType = this.get('tab.docType');\n      const docName = this.get('tab.docName');\n      return `documents/${docType}/${docName}`;\n    }),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['documents/lists/filters/search', 'documents/lists/filters/statuses', 'documents/lists/filters/dispatchStatus', 'documents/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n      const model = this.model;\n      const sourceKey = model.getData('_key');\n      const source = model.getData('name');\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          source,\n          sourceKey,\n          query: '',\n          includeIsPos: true\n        }\n      });\n      this.set('filters', filters);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.fetchCampaignActivityTask.perform();\n    },\n    fetchCampaignActivityTask: (0, _emberConcurrency.task)(function* ({\n      match,\n      documentStatus,\n      dispatchStatus,\n      notDispatchStatus,\n      date,\n      dateStart,\n      dateEnd,\n      query = '',\n      isVoid\n    } = {}, onHideDropdown) {\n      const sourceKey = this.model.getData('_key');\n      const filters = this.filters;\n      const docType = this.get('tab.docType');\n      const docName = this.get('tab.docName');\n      const adapterName = `documents/${docType}/${docName}`;\n      const results = yield this.listByTask.perform({\n        filters,\n        adapterName,\n        match,\n        notDispatchStatus,\n        query,\n        isVoid,\n        sourceKey,\n        documentStatus,\n        dispatchStatus,\n        date,\n        dateStart,\n        dateEnd,\n        showCampaignPeriodDataOnly: R.pathOr(false, ['model', '_data', 'showCampaignPeriodDataOnly'])(this),\n        campaignPeriodDateStart: R.pathOr('', ['model', '_data', 'dateStartZ'])(this),\n        campaignPeriodDateEnd: R.pathOr('', ['model', '_data', 'dateEndZ'])(this)\n      });\n      this.set('results', results);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    }),\n    searchCampaignTask: (0, _emberConcurrency.task)(function* (query) {\n      const filters = this.filters;\n      const docType = this.get('tab.docType');\n      const docName = this.get('tab.docName');\n      if (query === '') {\n        return yield this.fetchCampaignActivityTask.perform();\n      }\n      const results = yield this.searchInputTask.perform({\n        adapterName: `documents/${docType}/${docName}`,\n        filters\n      }, query) || [];\n      this.set('results', results);\n      return results;\n    }),\n    allActivity: Ember.computed('listByResults.[]', function () {\n      // const isSearching = this.get('isSearching')\n      // if (isSearching) {\n      const searchResults = this.listByResults || [];\n      if (!Ember.isEmpty(searchResults)) {\n        return searchResults;\n      }\n      return [];\n      // }\n\n      // return this.get('listByResults') || []\n    }),\n    resultsProxy: Ember.computed('results.[]', function () {\n      const results = this.results || [];\n      return R.map(result => _nventor.default.createModel(_model.default, {}, {\n        model: result,\n        isSelected: false,\n        showDetails: false // @TODO: get this from settings\n      }), results);\n    }),\n    actions: {\n      listByDate(onHideDropdown, dateZ, date) {\n        return this.fetchCampaignActivityTask.perform({\n          date: this.getMoment(date).format('YYYY-MM-DD'),\n          dateZ,\n          resultsToggle: 'resultsToggle'\n        }, onHideDropdown);\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/sub-panels-activity-doc/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"npOjKSK+\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-sub\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[\\\"activity\\\",true,[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[24,[\\\"searchCampaignTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"searchCampaignTask\\\"]]],null],true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar hidden\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[28,\\\"or\\\",[[24,[\\\"searchCampaignTask\\\",\\\"isRunning\\\"]],[24,[\\\"fetchCampaignActivityTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"paginationIsFooter\\\",\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"listAdapters\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onMainAction\\\",\\\"tableViewOptions\\\"],[false,[24,[\\\"tab\\\"]],\\\"documents/table-view/doc-row\\\",[28,\\\"array\\\",[\\\"documents/lists/filters/statuses\\\",\\\"filters/count\\\",\\\"toggles/yesNo\\\",\\\"paymentMethods\\\",\\\"paymentTerms\\\",\\\"units\\\",[28,\\\"hash\\\",null,[[\\\"name\\\",\\\"appendPath\\\"],[\\\"users\\\",\\\"internal\\\"]]],\\\"documents/lists/filters/statuses\\\",\\\"documents/lists/filters/productsStatus\\\",\\\"dispatch/lists/processes\\\",\\\"contacts/lists/tags\\\",\\\"extensions/apps/tw/t-cat/lists/waybillPrintType\\\",\\\"dispatch/lists/processes\\\",\\\"channels/shop/campaigns/lists/locations\\\"],null],[24,[\\\"resultsProxy\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"searchAdvancedTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"reloadSearchRecordsTask\\\"]],[24,[\\\"onDisplay\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"onDisplay\\\"]],[28,\\\"hash\\\",null,[[\\\"hasDispatchProcess\\\",\\\"isCampaignsTab\\\"],[[28,\\\"eq\\\",[[23,0,[\\\"adapterName\\\"]],\\\"documents/sales/invoices\\\"],null],true]]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar-right hidden\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__footer-spacer\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__footer\\\"],[8],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/sub-panels-activity-doc/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZQaLdCHn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,2,[]],[23,2,[\\\"subTabs\\\"]],[23,0,[\\\"activityDocTypes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"campaigns-products-content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,2,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"model\\\",\\\"tab\\\"],[[23,3,[]],[23,1,[]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],false,[23,3,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-advanced-template/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopCampaignsPanelsDisplaySubPanelsAdvancedTemplateComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopCampaignsPanelsDisplaySubPanelsAdvancedTemplateComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-advanced-template/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"R8gkxnRQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onSaveTask\\\",\\\"@onCancel\\\",\\\"@errors\\\",\\\"@pagesCollection\\\",\\\"@website\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isNew\\\",\\\"@onEdit\\\",\\\"@isEditing\\\",\\\"@tab\\\",\\\"@allowWebBuilder\\\",\\\"@dataTabContainer\\\",\\\"@channelsShopAdapterName\\\",\\\"@channelsShopKey\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"advancedTemplate\\\",\\\"_data\\\",\\\"templateType\\\"]],[23,0,[\\\"constants\\\",\\\"templateTypes\\\",\\\"blocks\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor\\\",[],[[\\\"@website\\\",\\\"@page\\\",\\\"@tab\\\",\\\"@pagesCollection\\\",\\\"@onSaveTask\\\",\\\"@onEdit\\\",\\\"@channelsShopKey\\\",\\\"@channelsShopAdapterName\\\",\\\"@dataTabContainer\\\",\\\"@hasPreviewBtnsOnly\\\",\\\"@yieldFooter\\\",\\\"@isReadonly\\\"],[[23,5,[]],[23,6,[\\\"_data\\\",\\\"advancedTemplate\\\"]],[23,11,[]],[23,4,[]],[23,1,[]],[23,9,[]],[23,15,[]],[23,14,[]],[23,13,[]],true,true,[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@hasPanelFooter\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tagName\\\"],[[23,16,[]],[23,17,[]],[23,18,[]],[23,19,[]],[23,20,[]],true,false,[23,6,[]],[23,21,[]],[23,22,[]],[23,23,[]],[23,24,[]],[23,25,[]],[23,26,[]],[23,27,[]],[23,28,[]],[23,11,[]],\\\"\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"websites/websites-editor/pages-editor\\\",null,[[\\\"channelsShopKey\\\",\\\"channelsShopAdapterName\\\",\\\"dataTabContainer\\\",\\\"allowWebBuilder\\\",\\\"tab\\\",\\\"isEditing\\\",\\\"onEdit\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"website\\\",\\\"fullscreenOnInit\\\",\\\"pagesCollection\\\",\\\"errors\\\",\\\"onCancel\\\",\\\"onSaveTask\\\"],[[23,15,[]],[23,14,[]],[23,13,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[\\\"_data\\\",\\\"advancedTemplate\\\"]],[23,5,[]],true,[23,4,[]],[23,3,[]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-advanced-template/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-analytics/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    init() {\n      // is this used? can't find any component calling sub-panels-analytics.\n      this._super(...arguments);\n      this.crud.addLists(this, ['channels/shop/campaigns/reports/filters', 'taxMethods/filters']);\n      this.set('showCampaignReportBy', Ember.Object.create({\n        revenueBy: 'ordered',\n        taxMethods: 'inclusive'\n      }));\n    },\n    dispatchStatusFilter: Ember.computed('showCampaignReportBy.revenueBy', function () {\n      const revenueBy = this.get('showCampaignReportBy.revenueBy');\n      if (revenueBy === 'ordered') {\n        return 'all';\n      }\n      return this.get('constants.dispatchStatus.dispatched');\n    }),\n    didInsertElement() {\n      this._super(...arguments);\n      const model = this.model;\n      const sourceKey = model.getData('_key');\n      this.fetchReportTask.perform({\n        sourceKey\n      });\n    },\n    fetchReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const report = yield this._fetchReportTask.perform({\n        sourceKey,\n        segments: ['orderDateZ', 'expectedDispatchDateZ', 'dispatchDateZ', 'itemWithGroupedSetWithChoices', 'trackingCodes', 'status']\n      });\n      this.set('report', report);\n      this.set('itemReport', []);\n      this.set('paymentMethodKeyReport', []);\n      this.set('contactReport', []);\n    }),\n    displayItemReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const itemReport = yield this._fetchReportTask.perform({\n        sourceKey,\n        segments: ['item']\n      });\n      this.set('itemReport', itemReport);\n    }),\n    displayPaymentMethodKeyReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const paymentMethodKeyReport = yield this._fetchReportTask.perform({\n        sourceKey,\n        segments: ['paymentMethodKey']\n      });\n      this.set('paymentMethodKeyReport', paymentMethodKeyReport);\n    }),\n    displayContactReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const contactReport = yield this._fetchReportTask.perform({\n        sourceKey,\n        segments: ['contact', 'contactTags', 'customerType', 'memberType', 'gender', 'age']\n      });\n      this.set('contactReport', contactReport);\n    }),\n    _fetchReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey,\n      segments = []\n    }) {\n      const params = {\n        sourceKey,\n        status: this.get('constants.documentsStatus.final'),\n        dispatchStatus: this.dispatchStatusFilter,\n        // segments: [\n        //   'orderDateZ',\n        //   'expectedDispatchDateZ',\n        //   'dispatchDateZ',\n        //   'contact',\n        //   'item',\n        //   'itemWithGroupedSetWithChoices',\n        //   'trackingCodes',\n        //   'paymentMethodKey',\n        //   'status',\n        //   'customerType',\n        //   'memberType',\n        //   'gender',\n        //   'age'\n        // ]\n        segments\n      };\n      const results = yield this.server.call('GET', 'api/protected/reports/campaigns/', params);\n      return results.data;\n    }),\n    isTaxExclusive: Ember.computed('showCampaignReportBy.taxMethods', function () {\n      if (this.get('showCampaignReportBy.taxMethods') === 'exclusive') {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-analytics/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"r+bVlsNm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"doc\\\",\\\"@chartOptions\\\"],\\\"statements\\\":[[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__table\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\",\\\"onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-reports-filters\\\"]],\\\"list-selector list-selector--horizontal\\\",[24,[\\\"showCampaignReportBy\\\"]],\\\"revenueBy\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false,[28,\\\"perform\\\",[[24,[\\\"fetchReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],\\\"list-selector list-selector--horizontal\\\",[24,[\\\"showCampaignReportBy\\\"]],\\\"taxMethods\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-stats\\\",null,[[\\\"title\\\",\\\"isTaxExclusive\\\",\\\"report\\\",\\\"fetchReportTask\\\"],[\\\"stats for campaign\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"report\\\"]],[24,[\\\"fetchReportTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"reports/dashboard/card-stat\\\",null,[[\\\"title\\\"],[\\\"total\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__dash-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"number\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"report\\\",\\\"segments\\\",\\\"status\\\",\\\"invoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,1,[\\\"docCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"docDispatchStatus\\\",[[23,1,[\\\"segmentValue\\\",\\\"status\\\"]],[23,1,[\\\"segmentValue\\\",\\\"dispatchStatus\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"docCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"showCampaignReportBy\\\",\\\"revenueBy\\\"]],\\\"ordered\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"orders by date\\\",\\\"bar\\\",[23,2,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"report\\\"]],[23,0,[\\\"report\\\",\\\"segments\\\",\\\"orderDateZ\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"showCampaignReportBy\\\",\\\"revenueBy\\\"]],\\\"expectedDispatch\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"expected dispatch date\\\",\\\"bar\\\",[23,2,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"report\\\"]],[23,0,[\\\"report\\\",\\\"segments\\\",\\\"expectedDispatchDateZ\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"dispatched by date\\\",\\\"bar\\\",[23,2,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"report\\\"]],[23,0,[\\\"report\\\",\\\"segments\\\",\\\"dispatchDateZ\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"isItem\\\",\\\"data\\\"],[\\\"revenue by product\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],true,[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"itemReport\\\",\\\"segments\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by payment method\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"paymentMethodKeyReport\\\",\\\"segments\\\",\\\"paymentMethodKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by contact\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-tags\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"hasWarning\\\",\\\"warningText\\\",\\\"isContactTags\\\",\\\"data\\\"],[\\\"revenue by contact tags\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,\\\"may contain duplicate data\\\",true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contactTags\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by customer type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"customerType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by member type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"memberType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by gender\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"gender\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by age\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"age\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by product\\\",[23,0,[\\\"displayItemReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayItemReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by payment method\\\",[23,0,[\\\"displayPaymentMethodKeyReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayPaymentMethodKeyReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by contact\\\",[23,0,[\\\"displayContactReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayContactReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[1,[28,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",null,[[\\\"tab\\\",\\\"hasEditBtn\\\",\\\"copyErrors\\\",\\\"model\\\",\\\"dirty\\\",\\\"onEditPanel\\\",\\\"allowDuplicating\\\",\\\"onPrepareDuplicateRecord\\\",\\\"onCancelDuplicateRecord\\\",\\\"duplicateRecordTask\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\",\\\"onToggleCommissionMethod\\\",\\\"errorMsg\\\"],[[24,[\\\"tab\\\"]],true,[24,[\\\"copyErrors\\\"]],[24,[\\\"model\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"onEditPanel\\\"]],[24,[\\\"allowDuplicating\\\"]],[24,[\\\"onPrepareDuplicateRecord\\\"]],[24,[\\\"onCancelDuplicateRecord\\\"]],[24,[\\\"duplicateRecordTask\\\"]],[24,[\\\"onAssignSalesPerson\\\"]],[24,[\\\"onUnassignSalesPerson\\\"]],[24,[\\\"onToggleCommissionMethod\\\"]],[24,[\\\"errorMsg\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-analytics/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-automations/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['automations/when', 'automations/when/itemQty', 'automations/criterias', 'automations/thenActions', 'automations/thenSelectionTypes', 'channels/shop/campaigns/statuses', 'products/lists/tags']);\n      this.set('productsList', []);\n      this.fetchAutomationsCollectionTask.perform();\n    },\n    fetchAutomationsCollectionTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const key = model.getData('_key');\n      const collectionModel = yield this.crud.findTask.perform({\n        adapterName: 'channels/shop/campaigns/automations/collection',\n        appendPath: key\n      });\n      this.set('automationsCollection', collectionModel);\n    })\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-automations/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Vr4bokTg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@headerBottom\\\",\\\"@model\\\",\\\"@onEditAutomationItem\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor\\\",[],[[\\\"@headerBottom\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onEditAutomationItem\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@automationsCollection\\\",\\\"@fetchAutomationsCollectionTask\\\",\\\"@productsList\\\"],[[23,1,[]],false,false,[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,0,[\\\"automationsCollection\\\"]],[23,0,[\\\"fetchAutomationsCollectionTask\\\"]],[23,0,[\\\"productsList\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@isAutomations\\\",\\\"@automationsCollection\\\",\\\"@productsList\\\"],[[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],false,[23,2,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,18,[]],[23,4,[]],[23,5,[]],[23,6,[]],true,[23,0,[\\\"automationsCollection\\\"]],[23,0,[\\\"productsList\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-automations/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-bulk-discounts/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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 ChannelsShopCampaignsPanelsDisplaySubPanelsBulkDiscountsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _class = class ChannelsShopCampaignsPanelsDisplaySubPanelsBulkDiscountsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"batch\", _descriptor4, this);\n    }\n    *updateBulkDiscountTask(toUpdateBulkDiscount, modalCampaignDirty) {\n      // Reuse the modal's campaign dirty so validation failure does not leave a\n      // second registered dirty, and success deregisters the same instance Cancel uses.\n      const dirtyModel = modalCampaignDirty || this.crud.setupDirty({\n        adapterName: 'channels/shop/campaigns',\n        model: this.args.model\n      });\n      let dirtyBulkDiscounts = dirtyModel.getData('bulkDiscounts') || [];\n      const isNew = RA.isNilOrEmpty(toUpdateBulkDiscount?._data.bulkDiscountId);\n      const isRemove = toUpdateBulkDiscount?.isRemove ?? false;\n      if (isNew) {\n        // Failed save leaves this dirty with the empty-id BD already appended;\n        // retry must not append again.\n        if (!R.includes(toUpdateBulkDiscount, dirtyBulkDiscounts)) {\n          dirtyBulkDiscounts = R.append(toUpdateBulkDiscount, dirtyBulkDiscounts);\n        }\n      } else if (isRemove) {\n        dirtyBulkDiscounts = R.reject(R.pathEq(['_data', 'bulkDiscountId'], toUpdateBulkDiscount?._data?.bulkDiscountId))(dirtyBulkDiscounts);\n      } else {\n        dirtyBulkDiscounts = R.map(dirtyBulkDiscount => {\n          if (dirtyBulkDiscount?._data?.bulkDiscountId === toUpdateBulkDiscount?._data?.bulkDiscountId) {\n            dirtyBulkDiscount = toUpdateBulkDiscount;\n          }\n          return dirtyBulkDiscount;\n        })(dirtyBulkDiscounts);\n      }\n      dirtyModel.setData('bulkDiscounts', dirtyBulkDiscounts);\n      yield this.crud.updateRecordTask.perform({\n        adapterName: 'channels/shop/campaigns',\n        appendPath: '/bulk-discounts',\n        model: dirtyModel,\n        tab: this.args.tab\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"batch\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateBulkDiscountTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateBulkDiscountTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-bulk-discounts/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DR0WSuo1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@headerBottom\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-editor\\\",[],[[\\\"@headerBottom\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@onUpdateBulkDiscountTask\\\"],[[23,1,[]],false,true,[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"updateBulkDiscountTask\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@isBulkDiscount\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@onUpdateBulkDiscountTask\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],false,true,[23,2,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,0,[\\\"updateBulkDiscountTask\\\"]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-bulk-discounts/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-commissions/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopCampaignsPanelsDisplaySubPanelsCommissionsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _class = class ChannelsShopCampaignsPanelsDisplaySubPanelsCommissionsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"batch\", _descriptor3, this);\n      _initializerDefineProperty(this, \"results\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isBulkEditing\", _descriptor5, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"batch\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isBulkEditing\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-commissions/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yOdcmRxQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@dirty\\\",\\\"@errorMsg\\\",\\\"@headerBottom\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@duplicateRecordTask\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor\\\",[],[[\\\"@dirty\\\",\\\"@errorMsg\\\",\\\"@headerBottom\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],false,true,[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,12,[]],[23,13,[]],[23,1,[]],[23,14,[]],[23,2,[]],true,[23,4,[]],[23,5,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-commissions/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-emails/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-emails/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"P7XKCicr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@headerBottom\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onEditPanel\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/emails-editor\\\",[],[[\\\"@headerBottom\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[[23,1,[]],false,true,[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onEditPanel\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],true,[23,2,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-emails/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-faqs/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SubPanelsFaqsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class SubPanelsFaqsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-faqs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7PScRqih\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@headerBottom\\\",\\\"@isDisabled\\\",\\\"@isReadonly\\\",\\\"@lists\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/faqs-editor\\\",[],[[\\\"@headerBottom\\\",\\\"@isDisabled\\\",\\\"@isReadonly\\\",\\\"@lists\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-faqs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns-bulk-edit/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"ember-concurrency-decorators\"], function (_exports, R, RA, R_, _emberConcurrencyDecorators) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    settingsService: Ember.inject.service('settings'),\n    dateService: Ember.inject.service('date'),\n    server: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    selectedStatusKey: null,\n    selectedTagKeys: null,\n    untagSelectedTagKeys: false,\n    init() {\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.crud.addLists(this, ['dispatch/lists/processes', 'users/lists/menu', 'periods/months', 'periods/years']);\n      this._super(...arguments);\n      const period = this.dateService.getPeriod();\n      const dateStart = this.dateService.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.dateService.formatDateForUrl(this.dateService.getMonthEnd(period.yyyy, period.mm));\n      this.setNewPeriod({\n        dateStart,\n        dateEnd\n      });\n    },\n    setNewPeriod(period) {\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      this.set('period', period);\n      this.set('dateStart', dateStart);\n      this.set('dateEnd', dateEnd);\n    },\n    isDispatchedDispatchProcess: Ember.computed('crud.lists.dispatch-lists-processes.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      return R.find(R.pathEq(['_data', 'code'], 'dispatched'), dispatchProcesses);\n    }),\n    emptyCampaignDetailModel: Ember.computed('selectedItems.@each.synced', function () {\n      return this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/campaigns/details',\n        data: {}\n      });\n    }),\n    archiveButtonLabel: Ember.computed('model._data.status', function () {\n      const status = this.model.getData('status');\n      if (status === 'archived') {\n        return 'unarchive';\n      }\n      return 'archive';\n    }),\n    *updateChildrenUsingMasterTask(model) {\n      const msg = this.intl.t('are you sure you want to copy from master to children');\n      const confirmed = window.confirm(msg);\n      if (confirmed) {\n        if (!this.settingsService.getProp('features.allowMasterChildCampaigns')) {\n          return false;\n        }\n        const isMaster = model?._data?.isMaster;\n        let master;\n        if (isMaster) {\n          master = model?._data?._key;\n        } else {\n          master = model?._data?.childOfKey;\n        }\n        if (!master) {\n          const errorMsg = this.intl.t('no master campaign found');\n          alert(errorMsg);\n          return false;\n        }\n        const response = yield this.server.call('PATCH', `api/protected/channels/shop/campaigns/master/${master}`, {});\n        const syncMsg = this.intl.t('campaigns_are_syncing');\n        alert(syncMsg);\n      }\n    },\n    *updateArchiveCampaignTask() {\n      const model = this.model || {};\n      const status = model.getData('status');\n      let msg = this.intl.t('are you sure you want to archive');\n      if (status === 'archived') {\n        msg = this.intl.t('are you sure you want to unarchive');\n      }\n      const confirmed = window.confirm(msg);\n      if (confirmed) {\n        const dirty = this.crud.setupDirty({\n          adapterName: 'channels/shop/campaigns',\n          model\n        });\n        if (status === 'archived') {\n          dirty.setData('status', 'inactive');\n        } else {\n          dirty.setData('status', 'archived');\n        }\n        yield this.crud.updateRecordTask.perform({\n          adapterName: 'channels/shop/campaigns',\n          model: dirty,\n          hasUpdateProps: true\n        });\n      }\n    },\n    *reCacheAllAndReloadCampaignDetailsTask({\n      model,\n      onAfter\n    }) {\n      const campaignKey = model.getData('_key');\n      const data = {\n        campaignKey,\n        details: [],\n        refetchActivityFromDb: true\n      };\n      // call the refetchActivityFromDb function\n      const activity = yield this.server.call('GET', 'api/protected/channels/shop/campaigns/details/refetchActivity', data);\n      if (onAfter) {\n        onAfter();\n      }\n    },\n    *onDuplicateRecordTask(onCloseDialogAction, dirty) {\n      const saved = yield this.duplicateRecordTask.perform({\n        adapterName: 'channels/shop/campaigns',\n        model: dirty\n      });\n      const duplicateKey = saved?._data?._key;\n      if (duplicateKey) {\n        const tabOptions = {\n          component: 'channels/shop/campaigns/tab-container',\n          title: 'campaigns',\n          loadInstructions: {\n            find: {\n              id: duplicateKey\n            }\n          }\n        };\n        this.tabsManager.openTab('left', tabOptions);\n        onCloseDialogAction();\n      }\n    },\n    *batchUpdateProductStatusSchedulesTask() {\n      const campaignModel = this.model;\n      const campaignDetailModel = this.emptyCampaignDetailModel || {};\n      const productSchedulesModel = campaignDetailModel.getData('productSchedules') || [];\n      const productSchedules = R.pipe(R.map(schedule => {\n        return R.propOr({}, '_data')(schedule);\n      }), R.reject(RA.isNilOrEmpty))(productSchedulesModel);\n      let selectedItems = this.selectedItems || [];\n      if (RA.isNotNilOrEmpty(selectedItems)) {\n        selectedItems = R.map(item => {\n          return item.serialize();\n        })(selectedItems);\n      }\n      const saved = yield this.server.call('PATCH', `api/protected/channels/shop/campaigns/details/master/${campaignModel.getData('_key')}/product-schedules`, {\n        hasProductSchedules: campaignDetailModel.getData('hasProductSchedules') || false,\n        productSchedules,\n        batch: selectedItems\n      });\n      if (saved.success) {\n        this.resetSelectedStatusKeyAndSelectedItems();\n      }\n    },\n    resetSelectedStatusKey() {\n      this.set('selectedStatusKey', null);\n    },\n    resetSelectedStatusKeyAndSelectedItems() {\n      this.set('selectedStatusKey', null);\n      this.onResetSelectedItems();\n    },\n    resetSelectedTagKeys() {\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n    },\n    resetSelectedTagKeysAndSelectedItems() {\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.onResetSelectedItems();\n    },\n    resetSelectedTagKeysAndStatusKeyAndSelectedItems() {\n      this.set('selectedStatusKey', null);\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.onResetSelectedItems();\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateChildrenUsingMasterTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_obj, \"updateChildrenUsingMasterTask\"), _obj), _applyDecoratedDescriptor(_obj, \"updateArchiveCampaignTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_obj, \"updateArchiveCampaignTask\"), _obj), _applyDecoratedDescriptor(_obj, \"reCacheAllAndReloadCampaignDetailsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"reCacheAllAndReloadCampaignDetailsTask\"), _obj), _applyDecoratedDescriptor(_obj, \"onDuplicateRecordTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"onDuplicateRecordTask\"), _obj), _applyDecoratedDescriptor(_obj, \"batchUpdateProductStatusSchedulesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"batchUpdateProductStatusSchedulesTask\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedStatusKey\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedStatusKey\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedStatusKeyAndSelectedItems\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedStatusKeyAndSelectedItems\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeys\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeys\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeysAndSelectedItems\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeysAndSelectedItems\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeysAndStatusKeyAndSelectedItems\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeysAndStatusKeyAndSelectedItems\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns-bulk-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gm2N60H0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@selectedItems\\\",\\\"@removeProductsBatchTask\\\",\\\"@model\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"selected items\\\"],null],false],[0,\\\":\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-badge\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"count\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"resetSelectedTagKeysAndStatusKeyAndSelectedItems\\\"]],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/btn-delete\\\",[[12,\\\"isRunning\\\",[23,3,[\\\"isRunning\\\"]]]],[[\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,3,[\\\"isRunning\\\"]],\\\"remove selected products\\\",[28,\\\"perform\\\",[[23,3,[]]],null],true]]],[0,\\\"\\\\n\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@badge\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@tooltipTranslate\\\",\\\"@list\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[[24,[\\\"filters\\\",\\\"tagsCount\\\"]],[28,\\\"if\\\",[[23,2,[]],false,true],null],\\\"fas fa-tags\\\",\\\"campaign detail product tags\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetSelectedTagKeys\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"allowSubmitWhenEmpty\\\",\\\"model\\\",\\\"additionalData\\\",\\\"onAfter\\\"],[\\\"channels/shop/campaigns/details/batch/tags\\\",[28,\\\"concat\\\",[\\\"/\\\",[23,4,[\\\"_data\\\",\\\"_key\\\"]],\\\"/tags\\\"],null],[23,0,[\\\"selectedTagKeys\\\"]],[23,2,[]],[28,\\\"hash\\\",null,[[\\\"tags\\\",\\\"untag\\\"],[[23,0,[\\\"selectedTagKeys\\\"]],[23,0,[\\\"untagSelectedTagKeys\\\"]]]]],[28,\\\"fn\\\",[[23,0,[\\\"resetSelectedTagKeysAndSelectedItems\\\"]]],null]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@hasUnsetToggle\\\",\\\"@unsetToggleValue\\\",\\\"@unsetToggleLabel\\\",\\\"@unsetToggleLabelTranslate\\\",\\\"@isDisabledUnsetToggle\\\",\\\"@multiSelect\\\",\\\"@isModal\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],[22,\\\"tab\\\"],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,0,[]],true,[23,0,[\\\"untagSelectedTagKeys\\\"]],\\\"untag\\\",true,[28,\\\"if\\\",[[23,0,[\\\"selectedTagKeys\\\"]],false,true],null],true,true,\\\"_data._key\\\",\\\"selectedTagKeys\\\",true]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@badge\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[[24,[\\\"filters\\\",\\\"tagsCount\\\"]],[28,\\\"if\\\",[[23,2,[]],false,true],null],\\\"fas fa-circle\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetSelectedTagKeys\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"allowSubmitWhenEmpty\\\",\\\"model\\\",\\\"additionalData\\\",\\\"onAfter\\\"],[\\\"channels/shop/campaigns/details/batch/statuses\\\",[28,\\\"concat\\\",[\\\"/\\\",[23,4,[\\\"_data\\\",\\\"_key\\\"]],\\\"/statuses\\\"],null],[23,0,[\\\"selectedStatusKey\\\"]],[23,2,[]],[28,\\\"hash\\\",null,[[\\\"status\\\"],[[23,0,[\\\"selectedStatusKey\\\"]]]]],[28,\\\"fn\\\",[[23,0,[\\\"resetSelectedStatusKeyAndSelectedItems\\\"]]],null]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@adapterName\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@isModal\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[false,\\\"channels/shop/campaigns/statuses\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],[23,0,[]],false,true,\\\"_data.value\\\",\\\"selectedStatusKey\\\",true]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[[28,\\\"if\\\",[[23,2,[]],false,true],null],\\\"far fa-clock\\\",true,\\\"product schedules\\\",\\\"\\\",\\\"product schedules\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"status-schedules\\\",[],[[\\\"@model\\\",\\\"@schedules\\\",\\\"@hasSchedules\\\",\\\"@listsStatuses\\\",\\\"@type\\\",\\\"@errors\\\",\\\"@onCloseDialogAction\\\",\\\"@onAfterSave\\\"],[[23,0,[\\\"emptyCampaignDetailModel\\\"]],[23,0,[\\\"emptyCampaignDetailModel\\\",\\\"_data\\\",\\\"productSchedules\\\"]],[23,0,[\\\"emptyCampaignDetailModel\\\",\\\"_data\\\",\\\"hasProductSchedules\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],\\\"productSchedules\\\",[23,5,[]],[23,1,[]],[28,\\\"perform\\\",[[23,0,[\\\"batchUpdateProductStatusSchedulesTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns-bulk-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns/component\", [\"exports\", \"client/config/environment\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"ember-concurrency-decorators\"], function (_exports, _environment, R, RA, R_, _emberConcurrencyDecorators) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    settingsService: Ember.inject.service('settings'),\n    dateService: Ember.inject.service('date'),\n    server: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    selectedStatusKey: null,\n    selectedTagKeys: null,\n    untagSelectedTagKeys: false,\n    init() {\n      this.set('config', _environment.default);\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.crud.addLists(this, ['dispatch/lists/processes', 'users/lists/menu', 'periods/months', 'periods/years']);\n      this._super(...arguments);\n      const period = this.dateService.getPeriod();\n      const dateStart = this.dateService.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.dateService.formatDateForUrl(this.dateService.getMonthEnd(period.yyyy, period.mm));\n      this.setNewPeriod({\n        dateStart,\n        dateEnd\n      });\n    },\n    setNewPeriod(period) {\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      this.set('period', period);\n      this.set('dateStart', dateStart);\n      this.set('dateEnd', dateEnd);\n    },\n    isDispatchedDispatchProcess: Ember.computed('crud.lists.dispatch-lists-processes.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      return R.find(R.pathEq(['_data', 'code'], 'dispatched'), dispatchProcesses);\n    }),\n    emptyCampaignDetailModel: Ember.computed('selectedItems.@each.synced', function () {\n      return this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/campaigns/details',\n        data: {}\n      });\n    }),\n    archiveButtonLabel: Ember.computed('model._data.status', function () {\n      const status = this.model.getData('status');\n      if (status === 'archived') {\n        return 'unarchive';\n      }\n      return 'archive';\n    }),\n    *updateChildrenUsingMasterTask(model) {\n      const msg = this.intl.t('are you sure you want to copy from master to children');\n      const confirmed = window.confirm(msg);\n      if (confirmed) {\n        if (!this.settingsService.getProp('features.allowMasterChildCampaigns')) {\n          return false;\n        }\n        const isMaster = model?._data?.isMaster;\n        let master;\n        if (isMaster) {\n          master = model?._data?._key;\n        } else {\n          master = model?._data?.childOfKey;\n        }\n        if (!master) {\n          const errorMsg = this.intl.t('no master campaign found');\n          alert(errorMsg);\n          return false;\n        }\n        const response = yield this.server.call('PATCH', `api/protected/channels/shop/campaigns/master/${master}`, {});\n        const syncMsg = this.intl.t('campaigns_are_syncing');\n        alert(syncMsg);\n      }\n    },\n    *updateArchiveCampaignTask() {\n      const model = this.model || {};\n      const status = model.getData('status');\n      let msg = this.intl.t('are you sure you want to archive');\n      if (status === 'archived') {\n        msg = this.intl.t('are you sure you want to unarchive');\n      }\n      const confirmed = window.confirm(msg);\n      if (confirmed) {\n        const dirty = this.crud.setupDirty({\n          adapterName: 'channels/shop/campaigns',\n          model\n        });\n        if (status === 'archived') {\n          dirty.setData('status', 'inactive');\n        } else {\n          dirty.setData('status', 'archived');\n        }\n        yield this.crud.updateRecordTask.perform({\n          adapterName: 'channels/shop/campaigns',\n          model: dirty,\n          hasUpdateProps: true\n        });\n      }\n    },\n    *reCacheAllAndReloadCampaignDetailsTask({\n      model,\n      onAfter\n    }) {\n      const campaignKey = model.getData('_key');\n      const data = {\n        campaignKey,\n        details: [],\n        refetchActivityFromDb: true\n      };\n      // call the refetchActivityFromDb function\n      const activity = yield this.server.call('GET', 'api/protected/channels/shop/campaigns/details/refetchActivity', data);\n      if (onAfter) {\n        onAfter();\n      }\n    },\n    *reCacheShopTask({\n      model\n    }) {\n      const data = {\n        url: model?._data?.url\n      };\n\n      // call the refetchActivityFromDb function\n      const response = yield this.server.callJobs('POST', 'api/protected/channels/shop/campaigns/re-cache-shop', data);\n      if (response.success) {\n        alert(this.intl.t('cache updated'));\n      } else {\n        alert(this.intl.t('failed to update cache'));\n      }\n    },\n    *onDuplicateRecordTask(onCloseDialogAction, dirty) {\n      const saved = yield this.duplicateRecordTask.perform({\n        adapterName: 'channels/shop/campaigns',\n        model: dirty\n      });\n      const duplicateKey = saved?._data?._key;\n      if (duplicateKey) {\n        const tabOptions = {\n          component: 'channels/shop/campaigns/tab-container',\n          title: 'campaigns',\n          loadInstructions: {\n            find: {\n              id: duplicateKey\n            }\n          }\n        };\n        this.tabsManager.openTab('left', tabOptions);\n        onCloseDialogAction();\n      }\n    },\n    *batchUpdateProductStatusSchedulesTask() {\n      const campaignModel = this.model;\n      const campaignDetailModel = this.emptyCampaignDetailModel || {};\n      const productSchedulesModel = campaignDetailModel.getData('productSchedules') || [];\n      const productSchedules = R.pipe(R.map(schedule => {\n        return R.propOr({}, '_data')(schedule);\n      }), R.reject(RA.isNilOrEmpty))(productSchedulesModel);\n      let selectedItems = this.selectedItems || [];\n      if (RA.isNotNilOrEmpty(selectedItems)) {\n        selectedItems = R.map(item => {\n          return item.serialize();\n        })(selectedItems);\n      }\n      const saved = yield this.server.call('PATCH', `api/protected/channels/shop/campaigns/details/master/${campaignModel.getData('_key')}/product-schedules`, {\n        hasProductSchedules: campaignDetailModel.getData('hasProductSchedules') || false,\n        productSchedules,\n        batch: selectedItems\n      });\n      if (saved.success) {\n        this.resetSelectedStatusKeyAndSelectedItems();\n      }\n    },\n    resetSelectedStatusKey() {\n      this.set('selectedStatusKey', null);\n    },\n    resetSelectedStatusKeyAndSelectedItems() {\n      this.set('selectedStatusKey', null);\n      this.onResetSelectedItems();\n    },\n    resetSelectedTagKeys() {\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n    },\n    resetSelectedTagKeysAndSelectedItems() {\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.onResetSelectedItems();\n    },\n    resetSelectedTagKeysAndStatusKeyAndSelectedItems() {\n      this.set('selectedStatusKey', null);\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.onResetSelectedItems();\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateChildrenUsingMasterTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_obj, \"updateChildrenUsingMasterTask\"), _obj), _applyDecoratedDescriptor(_obj, \"updateArchiveCampaignTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_obj, \"updateArchiveCampaignTask\"), _obj), _applyDecoratedDescriptor(_obj, \"reCacheAllAndReloadCampaignDetailsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"reCacheAllAndReloadCampaignDetailsTask\"), _obj), _applyDecoratedDescriptor(_obj, \"reCacheShopTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"reCacheShopTask\"), _obj), _applyDecoratedDescriptor(_obj, \"onDuplicateRecordTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"onDuplicateRecordTask\"), _obj), _applyDecoratedDescriptor(_obj, \"batchUpdateProductStatusSchedulesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"batchUpdateProductStatusSchedulesTask\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedStatusKey\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedStatusKey\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedStatusKeyAndSelectedItems\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedStatusKeyAndSelectedItems\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeys\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeys\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeysAndSelectedItems\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeysAndSelectedItems\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeysAndStatusKeyAndSelectedItems\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeysAndStatusKeyAndSelectedItems\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mtPLv7yL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onHideDropdown\\\",\\\"onCloseDialogAction\\\",\\\"isTooltipVisible\\\",\\\"onHideDropdown\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@afterCreateItem\\\",\\\"@isReadonly\\\",\\\"@automationsCollection\\\",\\\"@isAutomations\\\",\\\"@onUpdateBulkDiscountTask\\\",\\\"@onEditPanel\\\",\\\"@hasEditBtn\\\",\\\"@isBulkDiscount\\\",\\\"@onAssignSalesPerson\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@hasPanelFooter\\\"],\\\"statements\\\":[[5,\\\"layouts/panels/panel-footer\\\",[],[[\\\"@hasPanelFooter\\\"],[[23,23,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@isPreview\\\",\\\"@master\\\",\\\"@metaData\\\",\\\"@tab\\\",\\\"@type\\\"],[\\\"comments/comments-manager/modal-btn\\\",true,[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"campaign\\\",\\\"campaignKey\\\",\\\"name\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],[22,\\\"tab\\\"],\\\"campaigns\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,9,[\\\"_data\\\",\\\"status\\\"]],\\\"archived\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-file-export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/items-by-payment-status-export-btn\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/items-limits-export-btn\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/items-limits-import-btn\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/items-export-btn\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/items-import-btn\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"dispatch/export-excel-btn\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filteredResults\\\",\\\"campaignModel\\\",\\\"source\\\",\\\"sourceKey\\\"],[[23,0,[\\\"isDispatchedDispatchProcess\\\"]],[23,0,[\\\"period\\\"]],[24,[\\\"results\\\"]],[24,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"channels/shop/campaigns/share-btn\\\",[],[[\\\"@link\\\",\\\"@model\\\"],[[28,\\\"concat\\\",[[24,[\\\"config\\\",\\\"APP\\\",\\\"shopUrl\\\"]],\\\"/\\\",[23,9,[\\\"_data\\\",\\\"url\\\"]],\\\"/influencer\\\"],null],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-ellipsis\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.allowMasterChildCampaigns\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isChild\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"isMaster\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"updateChildrenUsingMasterTask\\\",\\\"isRunning\\\"]],\\\"sync master to all children\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateChildrenUsingMasterTask\\\"]],[24,[\\\"model\\\"]]],null]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ_synced\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-info-circle\\\"]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ_synced\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"archiveButtonLabel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateArchiveCampaignTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"allowDuplicating\\\"]],[28,\\\"not-eq\\\",[[23,9,[\\\"_data\\\",\\\"status\\\"]],\\\"archived\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@modalDialogContainerClassName\\\",\\\"@onClose\\\",\\\"@onSubmit\\\"],[\\\"far fa-copy\\\",\\\"copy\\\",\\\"panel-grid is-modal\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelDuplicateRecord\\\"]],[24,[\\\"dirty\\\"]]],null],[22,\\\"onPrepareDuplicateRecord\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/settings-editor\\\",[],[[\\\"@errors\\\",\\\"@headerBottom\\\",\\\"@isCopy\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[22,\\\"copyErrors\\\"],0,true,[22,\\\"dirty\\\"],[23,18,[]],[23,19,[]],[23,20,[]],[23,21,[]],[23,22,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"errors\\\"],[[24,[\\\"dirty\\\"]],[24,[\\\"copyErrors\\\"]]]]],false],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[24,[\\\"onDuplicateRecordTask\\\",\\\"isRunning\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n                    \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save as copy\\\",[24,[\\\"onDuplicateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onDuplicateRecordTask\\\"]],[23,5,[]],[24,[\\\"dirty\\\"]]],null]]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sync-alt\\\",\\\"update cache\\\",[23,0,[\\\"reCacheShopTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"reCacheShopTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[24,[\\\"onReCacheAfter\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sync-alt\\\",\\\"re-sync product stats\\\",[23,0,[\\\"reCacheAllAndReloadCampaignDetailsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"reCacheAllAndReloadCampaignDetailsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"onAfter\\\"],[[24,[\\\"model\\\"]],[24,[\\\"onReCacheAfter\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\\n    \\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,9,[\\\"_data\\\",\\\"status\\\"]],\\\"archived\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@disabled\\\",\\\"@tooltipLabel\\\",\\\"@tooltipTranslate\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"edit\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"shop\\\"],null]],null],false,[23,15,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@label\\\"],[false,[23,11,[]],\\\"is-primary\\\",\\\"fas fa-plus\\\",\\\"new bulk discount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/bulk-discounts-editor/panels-new\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@onCloseDialogAction\\\",\\\"@onUpdateBulkDiscountTask\\\"],[[23,9,[]],[23,8,[]],[23,3,[]],[23,14,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@btnClassNames\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\"],[false,\\\"is-primary\\\",[23,11,[]],\\\"fas fa-plus\\\",\\\"add automation\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/panels-new\\\",[],[[\\\"@automationsCollection\\\",\\\"@master\\\",\\\"@onCloseDialogAction\\\",\\\"@productsList\\\",\\\"@showAdvanced\\\",\\\"@tab\\\"],[[23,12,[]],[23,9,[]],[23,2,[]],[23,0,[\\\"productsList\\\"]],true,[23,8,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"btnClassNames\\\",\\\"closeOnOverlayClick\\\",\\\"onClose\\\"],[\\\"fas fa-plus\\\",\\\"bulk add\\\",\\\"is-primary\\\",false,[23,10,[]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"products/products-picker\\\",[],[[\\\"@tab\\\",\\\"@campaign\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@adapterName\\\",\\\"@onCloseDialogAction\\\",\\\"@onDone\\\"],[[23,8,[]],[23,9,[]],false,true,[22,\\\"adapterName\\\"],[23,1,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-footer-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-overview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopCampaignsPanelsDisplaySubPanelsOverView extends _component.default {}\n  _exports.default = ChannelsShopCampaignsPanelsDisplaySubPanelsOverView;\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-overview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fq1fsgyb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-report\\\",[],[[\\\"@model\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],true,[23,1,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-overview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-pages/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-pages/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"k9yggEpp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@headerBottom\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/pages-editor\\\",[],[[\\\"@headerBottom\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[[23,1,[]],false,true,[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],true,[23,2,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-pages/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products-limits/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 ChannelsShopCampaignsPanelsDisplaySubPanelsProductsLimitsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _class = class ChannelsShopCampaignsPanelsDisplaySubPanelsProductsLimitsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"batch\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isBulkEditing\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n      _initializerDefineProperty(this, \"listsIsLoaded\", _descriptor6, this);\n      const model = this.args.model;\n      const master = model.getData('_key');\n      const filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/limits/filters',\n        defaultFiltersData: {\n          master\n        }\n      });\n      this.filters = filters;\n      this.crud.addLists(this, ['filters/count', 'channels/shop/campaigns/lists/limitTypes', 'channels/shop/campaigns/overSalesLimitedQtyStatuses', 'products/lists/menu', 'products/lists/tags', 'products/lists/types', 'products/lists/setTypesFilters', 'statuses', 'toggles/yesNo']);\n    }\n    _getBulkEditingDirty(batch) {\n      return R.map(detail => {\n        return this.crud.setupDirty({\n          adapterName: 'channels/shop/campaigns/details/limits',\n          model: detail,\n          attrs: {\n            product: detail.product\n          }\n        });\n      })(batch);\n    }\n    *fetchCampaignDetailsLimitsTask() {\n      const model = this.args.model;\n      const master = model.getData('_key');\n      let batch = [];\n      if (master) {\n        model.set('detailsLimitsUpdated', false);\n        batch = yield this.crud.searchRecordsTask.perform({\n          adapterName: 'channels/shop/campaigns/details/limits',\n          appendPath: `/master/${master}`,\n          filters: this.filters,\n          component: this\n        });\n        model.set('detailsLimits', batch);\n      } else {\n        model.set('detailsLimits', batch);\n      }\n      this.batch = batch;\n    }\n    *customPaginateSearchRecordsTask() {\n      let batch = yield this.crud.paginateSearchRecordsTask.perform(...arguments);\n      if (this.isBulkEditing) {\n        batch = this._getBulkEditingDirty(batch);\n      }\n      this.batch = batch;\n      const model = this.args.model;\n      model.set('detailsLimits', batch);\n    }\n    bulkEdit() {\n      this.isBulkEditing = true;\n      const batch = this.batch || [];\n      this.batch = this._getBulkEditingDirty(batch);\n    }\n    toggleBulkEdit() {\n      this.isBulkEditing = !this.isBulkEditing;\n      if (!this.isBulkEditing) {\n        this.fetchCampaignDetailsLimitsTask.perform();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"batch\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isBulkEditing\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"listsIsLoaded\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignDetailsLimitsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignDetailsLimitsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"customPaginateSearchRecordsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"customPaginateSearchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"bulkEdit\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"bulkEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleBulkEdit\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleBulkEdit\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products-limits/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qPfdw/1u\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@onAddItem\\\",\\\"@onEditItem\\\",\\\"@onDisplayItem\\\",\\\"@tab\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"fetchCampaignDetailsLimitsTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"campaigns-products-content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"fetchCampaignDetailsLimitsTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/products-limits-editor\\\",[],[[\\\"@campaignModel\\\",\\\"@fetchCampaignDetailsLimitsTask\\\",\\\"@filters\\\",\\\"@isBulkEditing\\\",\\\"@isReadonly\\\",\\\"@onAddItem\\\",\\\"@onEditItem\\\",\\\"@onDisplayItem\\\",\\\"@onPaginationTask\\\",\\\"@tab\\\"],[[23,1,[]],[23,0,[\\\"fetchCampaignDetailsLimitsTask\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"isBulkEditing\\\"]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,0,[\\\"customPaginateSearchRecordsTask\\\"]],[23,6,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@isBulkEditing\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onBulkEdit\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleBulkEdit\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],false,[22,\\\"isBulkEditing\\\"],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[23,1,[]],[23,11,[]],[28,\\\"fn\\\",[[23,0,[\\\"bulkEdit\\\"]]],null],[23,12,[]],[23,13,[]],[23,14,[]],[28,\\\"fn\\\",[[23,0,[\\\"toggleBulkEdit\\\"]]],null],[23,15,[]],[23,16,[]],[23,17,[]],[23,18,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products-limits/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 ChannelsShopCampaignsPanelsDisplaySubPanelsProductsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _class = class ChannelsShopCampaignsPanelsDisplaySubPanelsProductsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"batch\", _descriptor5, this);\n      _initializerDefineProperty(this, \"results\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isEditing\", _descriptor7, this);\n      _initializerDefineProperty(this, \"mode\", _descriptor8, this);\n      _initializerDefineProperty(this, \"itemModel\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isBulkEditing\", _descriptor0, this);\n      if (this.args.productsFilters) {\n        Ember.set(this, 'filters', this.args.productsFilters);\n      } else {\n        // @TODO: is this necessary?\n        const model = this.args.model;\n        const master = model.getData('_key');\n        const filters = this.search.setupFilters({\n          adapterName: 'channels/shop/campaigns/details/filters',\n          props: {\n            showStarred: true,\n            showFilters: true,\n            // dynamicFilterKeys will never be saved, but will always get from current filters to load from saved\n            dynamicFilterKeys: ['master', 'resultsProperty', 'resultsAdapterName', 'appendPath']\n          },\n          defaultFiltersData: {\n            master,\n            resultsProperty: 'results',\n            resultsAdapterName: 'channels/shop/campaigns/details',\n            appendPath: `/master/${master}`,\n            shopProductsSort: this.settings.settingsModel?._data?.shopProductsSort || 'recommended',\n            statuses: ['active', 'inactive', 'preOrder', 'soldOut', 'draft'],\n            sort: [{\n              by: 'index',\n              direction: 'ASC'\n            }]\n          }\n        });\n        Ember.set(this, 'filters', filters);\n      }\n    }\n\n    // _getBulkEditingDirty (batch) {\n    //   return R.map(detail => {\n    //     return this.crud.setupDirty({\n    //       adapterName: 'channels/shop/campaigns/details',\n    //       model: detail\n    //     })\n    //   })(batch)\n    // }\n\n    *fetchCampaignDetailsTask() {\n      const model = this.args.model;\n      const master = model.getData('_key');\n      if (master) {\n        model.set('detailsUpdated', false);\n        yield this.crud.searchRecordsTask.perform({\n          adapterName: 'channels/shop/campaigns/details',\n          appendPath: `/master/${master}`,\n          filters: this.filters\n        });\n      }\n    }\n\n    // @TODO: use the new crud service. but this does not work correctly\n    // @task\n    // * customPaginateSearchRecordsTask ({ filters }) {\n    //   const model = this.args.model\n    //   const master = model.getData('_key')\n    //   let batch = yield this.crud.paginateSearchRecordsTask.perform({\n    //     adapterName: 'channels/shop/campaigns/details',\n    //     appendPath: `/master/${master}`,\n    //     filters,\n    //   })\n\n    //   if (this.isBulkEditing) {\n    //     batch = this._getBulkEditingDirty(batch)\n    //   }\n\n    //   this.batch = batch\n\n    //   model.set('details', batch)\n    // }\n    selectMode(mode, toDisplayResults = []) {\n      if (this.mode === mode) {\n        return;\n      }\n      Ember.set(this, 'mode', mode);\n      if (mode === 'browse') {\n        if (RA.isNotNilOrEmpty(toDisplayResults)) {\n          const tab = this.args.tab;\n          const itemModel = R.path([0])(toDisplayResults);\n          if (RA.isNilOrEmpty(itemModel)) {\n            Ember.set(this, 'mode', 'overview');\n          }\n\n          // this.displayItem(tab, itemModel)\n        }\n      }\n    }\n\n    // @action\n    // editItem (tab, itemModel) {\n    //   this.selectMode('browse')\n\n    //   set(this, 'isEditing', true)\n\n    //   const panelOptions = {\n    //     component: 'channels/shop/campaigns/campaigns-item-editor',\n    //     model: itemModel\n    //   }\n\n    //   this.tabsManager.replaceSubTab(tab, panelOptions)\n\n    //   set(this, 'itemModel', itemModel)\n    // }\n\n    // @action\n    // displayItem (tab, itemModel) {\n    //   this.selectMode('browse')\n\n    //   set(this, 'isEditing', false)\n\n    //   const panelOptions = {\n    //     component: 'channels/shop/campaigns/campaigns-item-editor',\n    //     model: itemModel\n    //   }\n\n    //   this.tabsManager.replaceSubTab(tab, panelOptions)\n\n    //   set(this, 'itemModel', itemModel)\n    // }\n\n    bulkEdit() {\n      this.isBulkEditing = true;\n      // const batch = this.batch || []\n      // const model = this.args.model\n      // this.batch = this._getBulkEditingDirty(batch)\n\n      // model.set('batch', this._getBulkEditingDirty(batch))\n    }\n    toggleBulkEdit() {\n      this.isBulkEditing = !this.isBulkEditing;\n      if (!this.isBulkEditing) {\n        this.fetchCampaignDetailsTask.perform();\n      }\n    }\n    afterCreateItem(onCloseDialogAction) {\n      this.fetchCampaignDetailsTask.perform();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"batch\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isEditing\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"mode\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'overview';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"itemModel\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"isBulkEditing\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignDetailsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignDetailsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectMode\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"selectMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"bulkEdit\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"bulkEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleBulkEdit\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleBulkEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterCreateItem\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateItem\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wHP0xoaK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onResetSelectedItems\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@removeProductsBatchTask\\\",\\\"@resourceList\\\",\\\"@selectedItems\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@onSelectItem\\\",\\\"@onToggleSelectAllItems\\\",\\\"@onAddItem\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"campaigns-products-content\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/products-editor\\\",[],[[\\\"@fetchCampaignDetailsTask\\\",\\\"@filters\\\",\\\"@isBulkEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@mode\\\",\\\"@onSelectItem\\\",\\\"@onToggleSelectAllItems\\\",\\\"@onAddItem\\\",\\\"@selectMode\\\",\\\"@itemModel\\\",\\\"@isEditing\\\",\\\"@onEditPanel\\\",\\\"@removeProductsBatchTask\\\",\\\"@selectedItems\\\",\\\"@tab\\\"],[[23,0,[\\\"fetchCampaignDetailsTask\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"isBulkEditing\\\"]],[23,19,[]],[23,6,[]],[23,0,[\\\"mode\\\"]],[23,20,[]],[23,21,[]],[23,22,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectMode\\\"]]],null],[23,0,[\\\"itemModel\\\"]],[23,0,[\\\"isEditing\\\"]],[23,9,[]],[23,15,[]],[23,17,[]],[23,18,[]]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,17,[]],[28,\\\"eq\\\",[[23,0,[\\\"mode\\\"]],\\\"overview\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns-bulk-edit\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@hideEditBtn\\\",\\\"@isBulkEditing\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onBulkEdit\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onReCacheAfter\\\",\\\"@onResetSelectedItems\\\",\\\"@onToggleBulkEdit\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@afterCreateItem\\\",\\\"@parentTab\\\",\\\"@removeProductsBatchTask\\\",\\\"@resourceList\\\",\\\"@selectedItems\\\",\\\"@tab\\\",\\\"@mode\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],false,true,[22,\\\"isBulkEditing\\\"],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[23,6,[]],[23,7,[]],[28,\\\"fn\\\",[[23,0,[\\\"bulkEdit\\\"]]],null],[23,8,[]],[23,9,[]],[23,10,[]],[28,\\\"perform\\\",[[23,0,[\\\"fetchCampaignDetailsTask\\\"]]],null],[23,11,[]],[28,\\\"fn\\\",[[23,0,[\\\"toggleBulkEdit\\\"]]],null],[23,12,[]],[23,13,[]],[28,\\\"fn\\\",[[23,0,[\\\"afterCreateItem\\\"]]],null],[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,18,[]],[23,0,[\\\"mode\\\"]],[23,19,[]],[23,0,[\\\"isEditing\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@isProducts\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@hideEditBtn\\\",\\\"@isBulkEditing\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onBulkEdit\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onReCacheAfter\\\",\\\"@onResetSelectedItems\\\",\\\"@onToggleBulkEdit\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@afterCreateItem\\\",\\\"@parentTab\\\",\\\"@removeProductsBatchTask\\\",\\\"@resourceList\\\",\\\"@selectedItems\\\",\\\"@tab\\\",\\\"@mode\\\",\\\"@selectMode\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\"],[true,[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],false,true,[22,\\\"isBulkEditing\\\"],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[23,6,[]],[23,7,[]],[28,\\\"fn\\\",[[23,0,[\\\"bulkEdit\\\"]]],null],[23,8,[]],[23,9,[]],[23,10,[]],[28,\\\"perform\\\",[[23,0,[\\\"fetchCampaignDetailsTask\\\"]]],null],[23,11,[]],[28,\\\"fn\\\",[[23,0,[\\\"toggleBulkEdit\\\"]]],null],[23,12,[]],[23,13,[]],[28,\\\"fn\\\",[[23,0,[\\\"afterCreateItem\\\"]]],null],[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,18,[]],[23,0,[\\\"mode\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectMode\\\"]]],null],[23,19,[]],[23,0,[\\\"isEditing\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-products/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-reward/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopCampaignsPanelsDisplaySubPanelsRewardComponent extends _component.default {}\n  _exports.default = ChannelsShopCampaignsPanelsDisplaySubPanelsRewardComponent;\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-reward/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EYNt8chi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@headerBottom\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/reward-editor\\\",[],[[\\\"@headerBottom\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[[23,1,[]],false,true,[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],true,[23,2,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-reward/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-sales-limits/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-sales-limits/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"BkY/qxVq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@headerBottom\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/sales-limits-editor\\\",[],[[\\\"@headerBottom\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[[23,1,[]],false,true,[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onEditPanel\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],true,[23,2,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-sales-limits/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-settings/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopCampaignsPanelsDisplaySubPanelsSettings extends _component.default {}\n  _exports.default = ChannelsShopCampaignsPanelsDisplaySubPanelsSettings;\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wkwXVfoT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@headerBottom\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@onEditPanel\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor/settings-editor\\\",[],[[\\\"@headerBottom\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[[23,1,[]],false,true,[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/campaigns/panels-display/sub-panels-footer-btns\\\",[],[[\\\"@allowDuplicating\\\",\\\"@copyErrors\\\",\\\"@dirty\\\",\\\"@duplicateRecordTask\\\",\\\"@errorMsg\\\",\\\"@hasEditBtn\\\",\\\"@model\\\",\\\"@onEditPanel\\\",\\\"@onAssignSalesPerson\\\",\\\"@onCancelDuplicateRecord\\\",\\\"@onPrepareDuplicateRecord\\\",\\\"@onToggleCommissionMethod\\\",\\\"@onUnassignSalesPerson\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],true,[23,2,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,3,[]],[23,17,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/sub-panels-settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FUKvjnyN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@model\\\",\\\"@onPinMenu\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\",\\\"@onEditAutomationItem\\\",\\\"@onCancel\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"panel-grid \\\",[28,\\\"if\\\",[[23,5,[]],\\\"\\\",\\\"panel-grid--has-header\\\"],null]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@tabContentOnly\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,4,[]],[23,4,[\\\"subTabs\\\"]],[23,5,[]],[23,0,[\\\"filteredSubPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnBefore\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onBefore\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"resetProductFilters\\\"]]],null]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"flex-container--align-content-end element-icon--s\\\",[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isPinned\\\"]],\\\"fas fa-star\\\",\\\"far fa-star\\\"],null],[23,3,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,3,[]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@iconOnly\\\",\\\"@model\\\"],[true,[23,2,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"channels/shop/shop-status\\\",[],[[\\\"@model\\\"],[[23,2,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,2,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"dateRange\\\",[[23,2,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,2,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[23,2,[\\\"url\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"channels/shop/campaigns/copy-link-btn\\\",[],[[\\\"@model\\\",\\\"@tab\\\"],[[23,2,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"hasWebPos\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[23,0,[\\\"webPosLink\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\"],[\\\"fas fa-cash-register\\\",\\\"open web pos\\\"]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"allowSupplierPortal\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[28,\\\"concat\\\",[[24,[\\\"config\\\",\\\"APP\\\",\\\"appUrl\\\"]],\\\"/guests/portal/\\\",[23,0,[\\\"settings\\\",\\\"shopUrlPrefix\\\"]],\\\"/login\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-industry\\\"]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"channels/shop/shop-sales-persons\\\",[],[[\\\"@model\\\"],[[23,2,[]]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"channels/shop/shop-commissions-status\\\",[],[[\\\"@model\\\"],[[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[\\\"_data\\\",\\\"isMaster\\\"]],[23,2,[\\\"_data\\\",\\\"childOf\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"channels/shop/linked-campaigns-status\\\",[],[[\\\"@model\\\",\\\"@hasLink\\\"],[[23,2,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isDisallowShopping\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[\\\"shopping is disallowed\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[5,\\\"msgs/deleted-error\\\",[],[[\\\"@model\\\"],[[23,2,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,4,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"allowCancel\\\",\\\"allowDuplicating\\\",\\\"allowWebBuilder\\\",\\\"channelsShopKey\\\",\\\"channelsShopAdapterName\\\",\\\"copyErrors\\\",\\\"dataTabContainer\\\",\\\"dirty\\\",\\\"duplicateRecordTask\\\",\\\"hasNoShop\\\",\\\"headerBottom\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"onAddItem\\\",\\\"onAssignSalesPerson\\\",\\\"onEditItem\\\",\\\"onCancel\\\",\\\"onCancelDuplicateRecord\\\",\\\"onDisplayItem\\\",\\\"onEdit\\\",\\\"onEditAutomationItem\\\",\\\"onEditPanel\\\",\\\"onPrepareDuplicateRecord\\\",\\\"onResetSelectedItems\\\",\\\"onSelectItem\\\",\\\"onToggleCommissionMethod\\\",\\\"onToggleSelectAllItems\\\",\\\"onUnassignSalesPerson\\\",\\\"parentTab\\\",\\\"productsFilters\\\",\\\"removeProductsBatchTask\\\",\\\"resourceList\\\",\\\"selectedItems\\\",\\\"tab\\\",\\\"tabContentOnly\\\",\\\"website\\\"],[true,[24,[\\\"allowDuplicating\\\"]],true,[23,2,[\\\"_data\\\",\\\"_key\\\"]],\\\"channels/shop/campaigns\\\",[23,0,[\\\"copyErrors\\\"]],\\\"campaigns\\\",[23,0,[\\\"dirty\\\"]],[23,0,[\\\"duplicateRecordTask\\\"]],[23,2,[\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"headerBottom\\\"]],false,false,true,[23,2,[]],[24,[\\\"onAddItem\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"assignSalesPerson\\\"],null],[24,[\\\"onEditItem\\\"]],[23,7,[]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelDuplicateRecord\\\"],null],[24,[\\\"onDisplayItem\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"editPanel\\\"]]],null],[23,6,[]],[28,\\\"fn\\\",[[23,0,[\\\"editPanel\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"prepareDuplicateRecord\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"resetSelectedItems\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"selectItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleCommissionMethod\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleSelectAllItems\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unassignSalesPerson\\\"],null],[23,4,[]],[23,0,[\\\"productsFilters\\\"]],[23,0,[\\\"removeProductsBatchTask\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-subPanels\\\"]],[23,0,[\\\"selectedItems\\\"]],[23,1,[]],[23,5,[]],[23,2,[]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-edit/component\", [\"exports\", \"client/mixins/crud\", \"ramda-extension\", \"ramda-adjunct\", \"ember-concurrency\"], function (_exports, _crud, R_, RA, _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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    adapterName: 'channels/shop/campaigns',\n    init() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/subPanels', 'channels/shop/campaigns/lists/editorSubPanels', 'channels/shop/campaigns/lists/settings-editor/editor-sub-panels']);\n      const model = this.get('tab.model');\n      const dirty = this.setupDirty({\n        model\n      });\n      this.set('dirty', dirty);\n\n      // if (!dirty.getData('password')) {\n      //   const password = nventor.random.alphaNum(8).toLowerCase()\n      //   dirty.setData('password', password)\n      // }\n\n      this.tabsManager.setHeader(this.tabParent, model.getData('name'));\n    },\n    _displayCampaign(model) {\n      const tab = this.tab;\n      const loadInstructionsForActivePanels = this.tabsManager.getLoadInstructionsForActivePanels(tab, [{\n        matchBy: 'value',\n        componentPath: '_data.component',\n        menu: R_.dotPath('crud.lists.channels-shop-campaigns-lists-subPanels')(this) || []\n      }, {\n        matchBy: 'value',\n        componentPath: '_data.component',\n        menu: R_.dotPath('crud.lists.channels-shop-campaigns-lists-settings-editor-editor-sub-panels')(this)\n      }]);\n      const tabOptions = {\n        loadInstructionsForActivePanels\n      };\n      return this.onDisplay(model, {\n        tabOptions\n      });\n    },\n    afterUpdateRecordTask(saved) {\n      this._displayCampaign(saved);\n    },\n    afterReplaceRecordTask(saved) {\n      this._displayCampaign(saved);\n    },\n    afterCancelEditing(original) {\n      this._displayCampaign(original);\n    },\n    onSaveTask: (0, _emberConcurrency.task)(function* () {\n      yield this.crud.replaceRecordTask.perform({\n        component: this,\n        adapterName: this.adapterName,\n        model: this.dirty,\n        tab: this.tab,\n        onAfter: this.afterReplaceRecordTask\n      });\n    }),\n    cancel(dirty) {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: dirty,\n        onAfter: this._displayCampaign\n      });\n    }\n  }, _applyDecoratedDescriptor(_obj, \"_displayCampaign\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"_displayCampaign\"), _obj), _applyDecoratedDescriptor(_obj, \"afterUpdateRecordTask\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"afterUpdateRecordTask\"), _obj), _applyDecoratedDescriptor(_obj, \"afterReplaceRecordTask\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"afterReplaceRecordTask\"), _obj), _applyDecoratedDescriptor(_obj, \"afterCancelEditing\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"afterCancelEditing\"), _obj), _applyDecoratedDescriptor(_obj, \"cancel\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"cancel\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+vCx1D5A\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onAddItem\\\",\\\"@onDash\\\",\\\"@onDisplayItem\\\",\\\"@onEditItem\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@parentTab\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor\\\",[],[[\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onAddItem\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onDisplayItem\\\",\\\"@onEditItem\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@parentTab\\\",\\\"@saveTask\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[true,false,false,[23,0,[\\\"dirty\\\"]],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,0,[\\\"dirty\\\"]]],null],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"onSaveTask\\\"]],[23,7,[]],[23,8,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-new/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    adapterName: 'channels/shop/campaigns',\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      // set default campaign settings\n      const model = this.crud.setupNewRecord({\n        adapterName: this.adapterName,\n        data: {}\n      });\n      this.set('model', model);\n      this.tabsManager.setHeader(this.tabParent, this.intl.t('new'));\n    },\n    saveTask: (0, _emberConcurrency.task)(function* () {\n      const adapterName = this.adapterName;\n      const model = this.model;\n      const onDisplay = this.onDisplay;\n      return yield this.crud.createRecordTask.perform({\n        adapterName,\n        model,\n        onAfter: onDisplay\n      });\n    }),\n    cancel() {\n      return this.onDash();\n    }\n  }, _applyDecoratedDescriptor(_obj, \"cancel\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"cancel\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IMEHS35Q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@parentTab\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],\\\"statements\\\":[[5,\\\"channels/shop/campaigns/campaigns-editor\\\",[],[[\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@saveTask\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[true,true,[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null],[23,1,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-editorSubPanels\\\"]],[23,0,[\\\"saveTask\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-schedule/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/date\", \"client/pods/components/channels/shop/campaigns/mixins/campaigns-list-by\"], function (_exports, _emberConcurrency, _date, _campaignsListBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_campaignsListBy.default, _date.default, {\n    filtersAdapterName: 'channels/shop/campaigns/filters',\n    init() {\n      this._super(...arguments);\n      // fetch all campaigns for month\n      const current = this.getPeriod();\n      this.set('current', current);\n      const dateStart = current.monthStart;\n      const dateEnd = current.monthEnd;\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          count: 1000\n        }\n      });\n      this.set('filters', filters);\n      this.fetchScheduleTask.perform({\n        dateStart,\n        dateEnd\n      });\n      this.tabsManager.setHeader(this.tabParent, `${dateStart}-${dateEnd}`);\n    },\n    fetchScheduleTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd\n    }) {\n      const filters = this.filters;\n      const results = yield this.listByTask.perform({\n        adapterName: 'channels/shop/campaigns',\n        filters,\n        dateStart: dateStart,\n        dateEnd: dateEnd\n      });\n      this.set('results', results);\n    }),\n    actions: {\n      previousMonth(previous) {\n        this.fetchScheduleTask.perform({\n          dateStart: previous.monthStart,\n          dateEnd: previous.monthEnd\n        });\n      },\n      nextMonth(next) {\n        this.fetchScheduleTask.perform({\n          dateStart: next.monthStart,\n          dateEnd: next.monthEnd\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-schedule/day-schedule/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-schedule/day-schedule/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AalxkyOk\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-calendar__item u-truncate\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[false,[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"channels/shop/shop-status\\\",null,[[\\\"model\\\",\\\"badgeOnly\\\"],[[24,[\\\"model\\\"]],true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"commissionsLatest\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fa-solid fa-sack-dollar\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-schedule/day-schedule/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/panels-schedule/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nqIzX+h9\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"calendar/calendar-month\\\",null,[[\\\"period\\\",\\\"data\\\",\\\"scheduleComponent\\\",\\\"onPreviousMonth\\\",\\\"onNextMonth\\\"],[[24,[\\\"current\\\"]],[24,[\\\"results\\\"]],\\\"channels/shop/campaigns/panels-schedule/day-schedule\\\",[28,\\\"action\\\",[[23,0,[]],\\\"previousMonth\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"nextMonth\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/panels-schedule/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/price-filter/component\", [\"exports\", \"ramda-adjunct\", \"@glimmer/component\"], function (_exports, RA, _component) {\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;\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 ChannelsShopCampaignsPriceFilterComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _class = class ChannelsShopCampaignsPriceFilterComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor, this);\n      this.updateMinRanges();\n    }\n    newRange(rangeData = {}, max = null) {\n      let min = rangeData.min;\n      if (max) {\n        min = parseInt(max) + 1;\n      }\n      const rangeModel = this.dataManager.setAsRecord({\n        adapterName: 'channels/shop/campaigns/price-filter',\n        data: {\n          min\n        }\n      });\n      this.addRange(rangeModel);\n    }\n    addRange(range) {\n      const model = this.args.model;\n      const shopPriceFilters = model._data.shopPriceFilters || [];\n      shopPriceFilters.pushObject(range);\n    }\n    newBlankRange(range) {\n      this.updateMinRanges();\n      const isLast = this.isLastRangeIndex(range);\n      if (!isLast) {\n        return;\n      }\n      const max = parseInt(range._data.max) || 0;\n      if (max !== 0) {\n        this.newRange(range, max);\n      }\n    }\n    isLastRangeIndex(range) {\n      const model = this.args.model;\n      const shopPriceFilters = model._data?.shopPriceFilters || [];\n      const rangeIndex = shopPriceFilters.indexOf(range);\n      if (rangeIndex === shopPriceFilters.length - 1) {\n        return true;\n      }\n      return false;\n    }\n    removeRange(range) {\n      const isLast = this.isLastRangeIndex(range);\n      const model = this.args.model;\n      const shopPriceFilters = model._data?.shopPriceFilters || [];\n      shopPriceFilters.removeObject(range);\n      if (isLast) {\n        this.newRange();\n      } else {\n        model.setData('shopPriceFilters', shopPriceFilters);\n      }\n      this.updateMinRanges();\n    }\n    updateMinRanges() {\n      const model = this.args.model || {};\n      const shopPriceFilters = model._data?.shopPriceFilters || [];\n      if (shopPriceFilters.length === 0) {\n        this.newRange({\n          min: 0\n        });\n      }\n      let previousRange;\n      const newRanges = RA.mapIndexed((range, index) => {\n        let previousMax = 0;\n        if (previousRange) {\n          previousMax = previousRange._data.max;\n        }\n        let currentMin = previousMax;\n        const initialMin = range._data?.min || 0;\n        if (index === 0 && RA.isNotNilOrEmpty(initialMin)) {\n          currentMin = initialMin;\n        }\n        if (index > 0) {\n          currentMin = previousMax + 1;\n        }\n        Ember.set(range, '_data.min', currentMin);\n        let currentMax = parseFloat(range._data?.max) || 0;\n        if (currentMax > 0) {\n          if (currentMax < currentMin) {\n            currentMax = 0;\n          }\n          Ember.set(range, '_data.max', currentMax);\n        }\n        previousRange = range;\n        return range;\n      })(shopPriceFilters);\n      Ember.set(model, '_data.shopPriceFilters', newRanges);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"newBlankRange\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"newBlankRange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeRange\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"removeRange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateMinRanges\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"updateMinRanges\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/price-filter/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"iAcNajDB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"range\\\",\\\"index\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"min price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"max price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"shopPriceFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[true,[23,1,[\\\"_data\\\",\\\"min\\\"]],\\\"shopPriceFilters.min\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@onFocusOut\\\",\\\"@value\\\",\\\"@context\\\"],[[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"newBlankRange\\\"]],[23,1,[]]],null],[23,1,[\\\"_data\\\",\\\"max\\\"]],\\\"shopPriceFilters.max\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@disabled\\\",\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@tab\\\",\\\"@onSubmit\\\"],[[23,3,[]],\\\"u-close-btn\\\",-1,[23,0,[\\\"tab\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"removeRange\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/price-filter/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/review-steps-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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, _dec0, _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 ChannelsShopCampaignsReviewStepsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('users'), _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class ChannelsShopCampaignsReviewStepsEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"usersService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"associatesContacts\", _descriptor5, this);\n      _initializerDefineProperty(this, \"model\", _descriptor6, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args?.adapterName);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/review-steps']);\n      const model = this.args?.model || {};\n      const tab = this.args?.tab || {};\n      this.tab = tab;\n      const isEditing = this.args?.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n      const associatesContactsFilters = this.search.setupFilters({\n        adapterName: 'users/related/filters',\n        defaultFiltersData: {\n          isAssociates: false,\n          allMembers: true\n        }\n      });\n      this.loadContactTask.perform(associatesContactsFilters);\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    get hasRunningTasks() {\n      const isRemoveRecordTaskRunning = this.crud.removeRecordTask.isRunning;\n      const isReplaceRecordTaskRunning = this.crud.replaceRecordTask.isRunning;\n      const isCreateRecordTaskRunning = this.crud.createRecordTask.isRunning;\n      return isRemoveRecordTaskRunning || isReplaceRecordTaskRunning || isCreateRecordTaskRunning;\n    }\n    *loadContactTask(associatesContactsFilters) {\n      const associatesContacts = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'users/related',\n        filters: associatesContactsFilters\n      });\n      this.associatesContacts = associatesContacts;\n    }\n    afterCreateRecordTask(model) {\n      this.args?.onAddItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args?.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask(model) {\n      this.args?.onRemoveItem?.(model);\n    }\n    cancel() {\n      this.args?.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"associatesContacts\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadContactTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadContactTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/review-steps-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NIJ8OhEp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"campaigns\\\",true,\\\"review steps\\\",[23,0,[\\\"model\\\"]],[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\",\\\"@context\\\"],[[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"hasRunningTasks\\\"]]],null],true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]],\\\"label\\\"]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"users\\\",\\\"campaigns\\\",\\\"users\\\",[23,0,[\\\"model\\\"]],[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"users/users-selector\\\",[],[[\\\"@adapterName\\\",\\\"@disabled\\\",\\\"@filtersName\\\",\\\"@isSingleSelect\\\",\\\"@list\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onUnassignSalesPerson\\\",\\\"@readonly\\\",\\\"@salesPersons\\\",\\\"@context\\\"],[\\\"users/related\\\",[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"hasRunningTasks\\\"]]],null],\\\"users/related/filters\\\",false,[23,0,[\\\"associatesContacts\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"assign\\\"]],[23,0,[\\\"model\\\"]],\\\"_data.users\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"unassign\\\"]],[23,0,[\\\"model\\\"]],\\\"_data.users\\\"],null],[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"hasRunningTasks\\\"]]],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"users\\\"]],\\\"users\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,0,[\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterRemoveRecordTask\\\"]],[23,1,[]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,0,[\\\"hasRunningTasks\\\"]],[23,0,[\\\"cancel\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"disabled\\\"]],[23,0,[\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,1,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"disabled\\\"]],[23,0,[\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterCreateRecordTask\\\"]],[23,1,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/review-steps-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/search-filters/component\", [\"exports\", \"client/mixins/crud\", \"client/pods/components/channels/shop/campaigns/mixins/campaigns-list-by\"], function (_exports, _crud, _campaignsListBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _campaignsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/filters/search', 'channels/shop/campaigns/lists/filters/status', 'channels/shop/campaigns/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n    }\n\n    // actions: {\n    //   listByDate (onHideDropdown, dateZ, date) {\n    //     return this.get('listByTask').perform({ date, dateZ, resultsToggle: 'resultsToggle' }, onHideDropdown)\n    //   }\n    // }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5YyjOH+y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"online\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"campaignStatus\\\"],[[24,[\\\"filters\\\"]],\\\"online\\\"]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"offline\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"campaignStatus\\\"],[[24,[\\\"filters\\\"]],\\\"offline\\\"]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"byLatest\\\"],[[24,[\\\"filters\\\"]],true]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"archived\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"campaignStatus\\\"],[[24,[\\\"filters\\\"]],\\\"archived\\\"]]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\"],[\\\"campaignFilterDateZ\\\",[23,0,[\\\"campaignFilterDateZ\\\"]],[23,0,[\\\"campaignFilterDateZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"listByDate\\\",[23,1,[]],[23,0,[\\\"campaignFilterDateZ\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.campaignStatuses\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/search-results/component\", [\"exports\", \"client/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.set('config', _environment.default);\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ecpsVMHU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@showMinimalResult\\\",\\\"@result\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t(/\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"url\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\")\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[0,\\\"/\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"url\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/shop-sales-persons\\\",[],[[\\\"@model\\\"],[[22,\\\"result\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[5,\\\"channels/shop/shop-commissions-status\\\",[],[[\\\"@model\\\"],[[22,\\\"result\\\"]]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"channels/shop/shop-status\\\",null,[[\\\"model\\\"],[[24,[\\\"result\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[\\\"_data\\\",\\\"isMaster\\\"]],[23,2,[\\\"_data\\\",\\\"childOf\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"channels/shop/linked-campaigns-status\\\",[],[[\\\"@model\\\",\\\"@hasLink\\\"],[[22,\\\"result\\\"],false]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"dateRange\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/share-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 ChannelsShopCampaignsShareBtnComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('settings'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('pos'), _class = class ChannelsShopCampaignsShareBtnComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"posService\", _descriptor5, this);\n    }\n    get webPosLink() {\n      return this.posService.generateWebPosLink(this.args.model);\n    }\n    get isRunning() {\n      return this.updateRecordTask.isRunning;\n    }\n    get hasShopShareBtn() {\n      const isVirtualOnly = this.settingsService?.isFeatureAllowed('features.isVirtualOnly');\n      if (isVirtualOnly) {\n        return false;\n      }\n      return true;\n    }\n    *updateRecordTask() {\n      const msg = this.intl.t('from now on only persons with the latest code will be linked');\n      if (window.confirm(msg)) {\n        const adapterName = this.args.model.adapterName;\n        const dirty = this.crud.setupDirty({\n          adapterName,\n          model: this.args.model\n        });\n        dirty.setData('updateHash', true);\n        yield this.crud.updateRecordTask.perform({\n          adapterName,\n          model: dirty\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"posService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateRecordTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateRecordTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/share-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JoI1Aztt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@link\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasShopShareBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\"],[[23,4,[]],\\\"fas fa-share\\\",\\\"\\\",\\\"share\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"legend\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"shop url\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"hash\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[23,2,[\\\"url\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"fas fa-share\\\",false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shop url\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"open_window\\\"],null]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/campaigns/copy-link-btn\\\",[],[[\\\"@model\\\",\\\"@label\\\"],[[23,2,[]],\\\"copy shop link\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"legend\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"report\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[28,\\\"concat\\\",[[23,3,[]],\\\"?token=\\\",[23,2,[\\\"_data\\\",\\\"hash\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"fas fa-share\\\",false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"report\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"open_window\\\"],null]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isRunning\\\",\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@tabindex\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isRunning\\\"]],\\\"far fa-copy\\\",true,-1,false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"report link\\\"],null],\\\": \\\",[23,2,[\\\"_data\\\",\\\"hash\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"copyText\\\"]],[28,\\\"concat\\\",[[23,3,[]],\\\"?token=\\\",[23,2,[\\\"_data\\\",\\\"hash\\\"]]],null],false],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"regenerate access code\\\",[23,0,[\\\"isRunning\\\"]],\\\"fas fa-sync-alt\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateRecordTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"hasWebPos\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"legend\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"pos\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[23,0,[\\\"webPosLink\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"fas fa-share\\\",false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"pos link\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"open_window\\\"],null]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isRunning\\\",\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@tabindex\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isRunning\\\"]],\\\"far fa-copy\\\",true,-1,false,[28,\\\"tt\\\",[\\\"copy link\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"copyText\\\"]],[23,0,[\\\"webPosLink\\\"]],false],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/share-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/tab-container/component\", [\"exports\", \"ramda\", \"client/mixins/crud\", \"client/pods/components/channels/shop/campaigns/mixins/campaigns-list-by\", \"ramda-extension\", \"ramda-adjunct\", \"ember-concurrency\", \"ember-concurrency-decorators\", \"client/utils/nventor\"], function (_exports, R, _crud, _campaignsListBy, R_, RA, _emberConcurrency, _emberConcurrencyDecorators, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend(_campaignsListBy.default, _crud.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    users: Ember.inject.service(),\n    results: null,\n    allowDuplicating: true,\n    query: '',\n    adapterName: 'channels/shop/campaigns',\n    filtersAdapterName: 'channels/shop/campaigns/filters',\n    showResults: false,\n    showResultsWithStatus: false,\n    menuBarList: Ember.A(['showResults', 'showResultsWithStatus']),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['automations/when', 'automations/criterias', 'channels/shop/campaigns/lists/menu', 'channels/shop/shipping-zones/all', 'channels/shop/shipping-zones/lists/rate-method', 'channels/shop/shipping-zones/lists/rate-method/free-shipping', 'contacts/lists/tags', 'discounts/types', 'products/lists/tags', 'products/lists/display-tags', 'products/lists/product-display-position', 'channels/shop/campaigns/lists/itemEditorSubPanels', 'statuses', 'availability', {\n        name: 'workflows/lists/items/activities/templates',\n        appendPath: 'authorization'\n      }]);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      filters.set('showStarred', true);\n      this.set('filters', filters);\n      const upcomingCampaignStatusFilter = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          campaignStatus: 'upcoming',\n          count: 10\n        }\n      });\n      this.set('upcomingCampaignStatusFilter', upcomingCampaignStatusFilter);\n      const inProgressCampaignStatusFilter = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          campaignStatus: 'inProgress',\n          count: 10\n        }\n      });\n      this.set('inProgressCampaignStatusFilter', inProgressCampaignStatusFilter);\n      const expiredNoCommissionDataCampaignStatusFilter = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          campaignStatus: 'expiredNoCommissionData',\n          count: 10\n        }\n      });\n      this.set('expiredNoCommissionDataCampaignStatusFilter', expiredNoCommissionDataCampaignStatusFilter);\n      const expiredHaveCommissionDataCampaignStatusFilter = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          campaignStatus: 'expiredHaveCommissionData',\n          count: 10\n        }\n      });\n      this.set('expiredHaveCommissionDataCampaignStatusFilter', expiredHaveCommissionDataCampaignStatusFilter);\n      const noDateCampaignStatusFilter = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          campaignStatus: 'noDate',\n          count: 10\n        }\n      });\n      this.set('noDateCampaignStatusFilter', noDateCampaignStatusFilter);\n      const userKey = this.users.getUserKey();\n      const campaignsBookmarkFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/members-campaign-menu/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'timestampZ_latest',\n            direction: 'DESC'\n          }],\n          userKey,\n          menuId: 'channels/shop/campaigns/panels-display'\n        }\n      });\n      this.set('campaignsBookmarkFilters', campaignsBookmarkFilters);\n      const pinnedCampaignFilter = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          campaignStatuses: ['online', 'offline', 'archived']\n        }\n      });\n      this.set('pinnedCampaignFilter', pinnedCampaignFilter);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.loadTabTask.perform();\n    },\n    /**\n     * @param {HTMLDivElement} tabHeader \n     * @void\n     */\n    updateStickyTop(tabHeader) {\n      const top = tabHeader?.offsetTop;\n      if (top) {\n        tabHeader.style.top = `${top}px`;\n      }\n    },\n    getCustomizedCampaignsBookmarkTask: (0, _emberConcurrency.task)(function* () {\n      const campaignsBookmarkMemberMenu = yield this.crud.findTask.perform({\n        adapterName: 'channels/shop/campaigns/members-campaign-menu/collection',\n        filters: this.campaignsBookmarkFilters\n      });\n      this.set('campaignsBookmarkMemberMenu', campaignsBookmarkMemberMenu);\n    }),\n    resultsProxy: Ember.computed('synced', 'results', function () {\n      const results = this.results || [];\n      const userCampaignMenu = this?.campaignsBookmarkMemberMenu?.userCampaignMenu || [];\n      const userCampaignMenuKey = R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('_key'), R.reject(RA.isNilOrEmpty))(userCampaignMenu);\n      return R.map(result => {\n        const campaignKey = result.getData('_key') || '';\n        if (R.includes(campaignKey, userCampaignMenuKey)) {\n          result.setData('isPinned', true);\n        }\n        return result;\n      })(results);\n    }),\n    *pinMenuTask(menu) {\n      const campaignsBookmark = this.campaignsBookmark || [];\n      const lastIndex = campaignsBookmark.length || 0;\n      const isPinned = menu.getData('isPinned');\n      const campaignKey = menu.getData('_key');\n      const campaignName = menu.getData('name');\n      if (isPinned) {\n        const campaignsBookmarkMemberMenuCollection = this?.campaignsBookmarkMemberMenu?._data?.collection || [];\n        const toRemove = R.find(R.pathEq(['_data', 'campaignKey'], campaignKey))(campaignsBookmarkMemberMenuCollection);\n        menu.setData('isPinned', false);\n        if (toRemove) {\n          yield this.crud.removeRecordTask.perform({\n            adapterName: 'channels/shop/campaigns/members-campaign-menu',\n            model: toRemove,\n            noConfirm: true\n          });\n        }\n      } else {\n        const userKey = this.users.getUserKey();\n        menu.setData('userKey', userKey);\n        menu.setData('menuId', 'channels/shop/campaigns/panels-display');\n        menu.setData('index', lastIndex);\n        menu.setData('campaignKey', campaignKey);\n        menu.setData('campaignName', campaignName);\n        yield this.crud.createRecordTask.perform({\n          adapterName: 'channels/shop/campaigns/members-campaign-menu',\n          model: menu\n        });\n      }\n      const DEBOUNCE_MS = 1000;\n      yield (0, _emberConcurrency.timeout)(DEBOUNCE_MS);\n\n      // yield this.getCustomizedCampaignsBookmarkTask.perform()\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      if (this.preloadedModel) {\n        this.display(this.preloadedModel);\n        return true;\n      }\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        Ember.set(this, 'filters.showResults', false);\n        const model = loadInstructions.getData('model');\n        if (model) {\n          this.display(loadInstructions.getData('model'));\n        } else {\n          const id = loadInstructions.getData('find.id');\n          const found = yield this.crud.findTask.perform({\n            adapterName: this.adapterName,\n            appendPath: id\n          });\n          this.display(found);\n        }\n      } else {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        yield this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters,\n          resultsProperty: 'results'\n        });\n        this.schedule();\n        let showResults = true;\n        Ember.set(this, 'filters.showResults', showResults);\n        yield this.getCustomizedCampaignsBookmarkTask.perform();\n      }\n    }),\n    dash(results) {\n      const menuActionsList = R_.dotPath('crud.lists.channels-shop-campaigns-lists-menu')(this) || [];\n      const found = menuActionsList.findBy('_data.component', 'channels/shop/campaigns/panels-dash');\n      if (!found) {\n        return this.schedule();\n      }\n      if (!results) {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters,\n          resultsProperty: 'results'\n        });\n      }\n      const tab = this.tab;\n      const panelOptions = {\n        component: 'channels/shop/campaigns/panels-dash'\n      };\n      return this.tabsManager.replaceSubTab(tab, panelOptions);\n    },\n    schedule() {\n      this.set('filters.showResults', false);\n      const tab = this.tab;\n      const panelOptions = {\n        component: 'channels/shop/campaigns/panels-schedule'\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions);\n    },\n    display(model, {\n      tabOptions\n    } = {}) {\n      const tab = this.tab;\n      const panelOptions = {\n        component: 'channels/shop/campaigns/panels-display',\n        model\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions, tabOptions);\n    },\n    new(panelOptions) {\n      this.set('filters.showResults', false);\n\n      // add new contact sub tab\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, panelOptions);\n    },\n    edit(model, {\n      tabOptions\n    } = {}) {\n      this.set('filters.showResults', false);\n      const tab = this.tab;\n      const panelOptions = {\n        component: 'channels/shop/campaigns/panels-edit',\n        model\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions, tabOptions);\n    },\n    actions: {\n      dash() {\n        this.set('filters.showResults', false);\n        // should deselect results if any..\n        // this.deselectResult();\n        this.dash();\n      },\n      schedule() {\n        // should deselect results if any..\n        // this.deselectResult();\n        this.schedule();\n      },\n      display(model, {\n        tabOptions\n      } = {}) {\n        this.set('filters.showResults', false);\n        if (model) {\n          this.display(...arguments);\n        } else {\n          // if no model then display dash (when model has been deleted)\n          this.dash();\n        }\n      },\n      new(panelOptions) {\n        this.new(...arguments);\n      },\n      editAutomationItem(automation, campaign, item) {\n        this.set('filters.showResults', false);\n        const tab = this.tab;\n        const panelOptions = {\n          component: 'channels/shop/campaigns/campaigns-editor/automations-editor/then-editor-details/item-editor',\n          campaign,\n          automation,\n          item\n        };\n        this.tabsManager.replaceSubTab(tab, panelOptions);\n      }\n    },\n    dashLinked: (0, _emberConcurrency.task)(function* (options, onHideDropdown) {\n      // should different adapter with 'channels/shop/campaigns'\n      const adapterName = 'channels/shop/campaigns/linked';\n      const linkedFilters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      linkedFilters.setData('linkedOption', options);\n      this.set('linkedFilters', linkedFilters);\n      yield this.fetchDefaultDataTask.perform({\n        adapterName,\n        filters: linkedFilters\n      });\n      const filters = this.filters;\n      filters.set('showResults', false);\n      filters.set('showResultsWithStatus', false);\n      const tab = this.tab;\n      const panelOptions = {\n        component: 'channels/shop/campaigns/panels-dash-linked'\n      };\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return this.tabsManager.replaceSubTab(tab, panelOptions);\n    }),\n    displayPinnedCampaignTask: (0, _emberConcurrency.task)(function* (campaignKey) {\n      const pinnedCampaignFilter = this?.pinnedCampaignFilter || {};\n      if (RA.isNotNilOrEmpty(pinnedCampaignFilter)) {\n        pinnedCampaignFilter.setData('campaignKey', campaignKey);\n        const results = yield this.searchInputTask.perform({\n          adapterName: this.adapterName,\n          filters: pinnedCampaignFilter\n        });\n        const campaignModel = _nventor.default.safeHeadOr({}, results);\n        if (RA.isNilOrEmpty(campaignModel)) {\n          return;\n        }\n        this.display(campaignModel);\n      }\n    }),\n    showResults() {\n      Ember.set(this, 'filters.showResults', true);\n      this.toggleShowResults();\n    },\n    toggleShowResults() {\n      Ember.set(this, 'filters.showResultsWithStatus', false);\n    },\n    toggleShowResultsWithStatusTask: (0, _emberConcurrency.task)(function* /* event, btnComponent */\n    () {\n      const toggleValue = this.filters?.showResultsWithStatus || false;\n      if (!toggleValue) {\n        Ember.set(this, 'filters.showResults', true);\n        return;\n      }\n      const upcomingCampaignStatusFilter = this.upcomingCampaignStatusFilter;\n      const inProgressCampaignStatusFilter = this.inProgressCampaignStatusFilter;\n      const expiredNoCommissionDataCampaignStatusFilter = this.expiredNoCommissionDataCampaignStatusFilter;\n      const expiredHaveCommissionDataCampaignStatusFilter = this.expiredHaveCommissionDataCampaignStatusFilter;\n      const noDateCampaignStatusFilter = this.noDateCampaignStatusFilter;\n      if (RA.isNilOrEmpty(upcomingCampaignStatusFilter?.results)) {\n        yield this.listByTask.perform({\n          adapterName: this.adapterName,\n          filters: upcomingCampaignStatusFilter,\n          resultsProperty: 'results'\n        });\n      }\n      if (RA.isNilOrEmpty(inProgressCampaignStatusFilter?.results)) {\n        yield this.listByTask.perform({\n          adapterName: this.adapterName,\n          filters: inProgressCampaignStatusFilter,\n          resultsProperty: 'results'\n        });\n      }\n      if (RA.isNilOrEmpty(expiredNoCommissionDataCampaignStatusFilter?.results)) {\n        yield this.listByTask.perform({\n          adapterName: this.adapterName,\n          filters: expiredNoCommissionDataCampaignStatusFilter,\n          resultsProperty: 'results'\n        });\n      }\n      if (RA.isNilOrEmpty(expiredHaveCommissionDataCampaignStatusFilter?.results)) {\n        yield this.listByTask.perform({\n          adapterName: this.adapterName,\n          filters: expiredHaveCommissionDataCampaignStatusFilter,\n          resultsProperty: 'results'\n        });\n      }\n      if (RA.isNilOrEmpty(noDateCampaignStatusFilter?.results)) {\n        yield this.listByTask.perform({\n          adapterName: this.adapterName,\n          filters: noDateCampaignStatusFilter,\n          resultsProperty: 'results'\n        });\n      }\n      Ember.set(this, 'filters.showResults', false);\n    }),\n    toggleCampaignStatusAndListByTask: (0, _emberConcurrency.task)(function* (campaignStatusToggled) {\n      let newCampaignStatus = R.clone(campaignStatusToggled);\n      const filters = this.filters;\n      const currentCampaignStatus = filters.getData('campaignStatus') || '';\n      if (currentCampaignStatus === campaignStatusToggled) {\n        newCampaignStatus = '';\n        filters.setData('campaignStatus', '');\n      }\n      yield this.listByTask.perform({\n        campaignStatus: newCampaignStatus,\n        filters,\n        resultsProperty: 'results',\n        component: this\n      });\n      Ember.set(this, 'filters.showResults', true);\n      Ember.set(this, 'filters.showResultsWithStatus', false);\n    })\n  }, _applyDecoratedDescriptor(_obj, \"pinMenuTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_obj, \"pinMenuTask\"), _obj), _applyDecoratedDescriptor(_obj, \"edit\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"edit\"), _obj), _applyDecoratedDescriptor(_obj, \"showResults\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"showResults\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleShowResults\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"toggleShowResults\"), _obj), _obj));\n});","define(\"client/pods/components/channels/shop/campaigns/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"U/25PjIr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"pinnedCampaign\\\",\\\"index\\\",\\\"result\\\",\\\"result\\\",\\\"result\\\",\\\"result\\\",\\\"result\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onHideDropdown\\\",\\\"subTab\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,0,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,14,[\\\"component\\\"]]],[[\\\"allowDuplicating\\\",\\\"model\\\",\\\"onCancel\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onEditAutomationItem\\\",\\\"tab\\\",\\\"tabContentOnly\\\",\\\"tabParent\\\"],[false,[23,14,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"edit\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"editAutomationItem\\\"],null],[23,14,[]],true,[23,0,[\\\"tab\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[14]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,15,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"afterTabSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\",\\\"ignoreForComponent\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[]],\\\"channels/shop/campaigns/panels-dash\\\"]]]],null],\\\"shops\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@displayAsSubHeaderLabel\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[\\\"fas fa-star\\\",[28,\\\"if\\\",[[23,11,[]],\\\"starred\\\",\\\"\\\"],null],true,true,[23,0,[\\\"filters\\\",\\\"showStarred\\\"]],[23,12,[]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[[12,\\\"class\\\",\\\"hide-in-overflow-menu\\\"]],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-ellipsis\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"latest\\\",[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"byLatest\\\"],[[24,[\\\"filters\\\"]],true]]],[23,13,[]]],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"upcoming\\\"],null],true,false],null],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_upcoming\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"upcoming\\\"],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"online\\\"],null],true,false],null],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],\\\"online\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"online\\\"],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"inProgress\\\"],null],true,false],null],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_inProgress\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"inProgress\\\"],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"noDate\\\"],null],true,false],null],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_noDate\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"noDate\\\"],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"offline\\\"],null],true,false],null],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],\\\"offline\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"offline\\\"],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"expiredNoCommissionData\\\"],null],true,false],null],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_expiredNoCommissionData\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"expiredNoCommissionData\\\"],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"expiredHaveCommissionData\\\"],null],true,false],null],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_expiredHaveCommissionData\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"expiredHaveCommissionData\\\"],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"archived\\\"],null],true,false],null],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],\\\"archived\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"archived\\\"],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.allowMasterChildCampaigns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"shop_status_linked_all\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"dashLinked\\\"]],\\\"linkedAll\\\",[23,13,[]]],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"shop_status_linked_out_of_sync\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"dashLinked\\\"]],\\\"linkedOutOfSync\\\",[23,13,[]]],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[13]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"campaigns\\\",[23,10,[]],[23,12,[]],[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[10,11,12]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"fetchDefaultDataTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@query\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"resultsProxy\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/search-results\\\",[],[[\\\"@query\\\",\\\"@result\\\"],[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,9,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[9]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showResultsWithStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"upcomingCampaignStatusFilter\\\"]],[23,0,[\\\"upcomingCampaignStatusFilter\\\",\\\"results\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[\\\"@contentClassNames\\\",\\\"@isNarrowOuterContainer\\\",\\\"@isAccordian\\\",\\\"@toggle\\\",\\\"@translate\\\",\\\"@title\\\"],[\\\"u-overflow-x-visible u-padding--0\\\",true,true,true,true,\\\"shop_status_upcoming\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@query\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"upcomingCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"upcomingCampaignStatusFilter\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"upcomingCampaignStatusFilter\\\"]],[23,0,[\\\"upcomingCampaignStatusFilter\\\",\\\"_data\\\",\\\"count\\\"]],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/search-results\\\",[],[[\\\"@query\\\",\\\"@showMinimalResult\\\",\\\"@result\\\"],[[23,0,[\\\"upcomingCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],true,[23,8,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"inProgressCampaignStatusFilter\\\"]],[23,0,[\\\"inProgressCampaignStatusFilter\\\",\\\"results\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[\\\"@contentClassNames\\\",\\\"@isNarrowOuterContainer\\\",\\\"@isAccordian\\\",\\\"@toggle\\\",\\\"@translate\\\",\\\"@title\\\"],[\\\"u-overflow-x-visible u-padding--0\\\",true,true,true,true,\\\"shop_status_inProgress\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@query\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"inProgressCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"inProgressCampaignStatusFilter\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"inProgressCampaignStatusFilter\\\"]],[23,0,[\\\"inProgressCampaignStatusFilter\\\",\\\"_data\\\",\\\"count\\\"]],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/search-results\\\",[],[[\\\"@query\\\",\\\"@showMinimalResult\\\",\\\"@result\\\"],[[23,0,[\\\"inProgressCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],true,[23,7,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"noDateCampaignStatusFilter\\\"]],[23,0,[\\\"noDateCampaignStatusFilter\\\",\\\"results\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[\\\"@contentClassNames\\\",\\\"@isNarrowOuterContainer\\\",\\\"@isAccordian\\\",\\\"@toggle\\\",\\\"@translate\\\",\\\"@title\\\"],[\\\"u-overflow-x-visible u-padding--0\\\",true,true,true,true,\\\"shop_status_noDate\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@query\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"noDateCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"noDateCampaignStatusFilter\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"noDateCampaignStatusFilter\\\"]],[23,0,[\\\"noDateCampaignStatusFilter\\\",\\\"_data\\\",\\\"count\\\"]],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/search-results\\\",[],[[\\\"@query\\\",\\\"@showMinimalResult\\\",\\\"@result\\\"],[[23,0,[\\\"noDateCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],true,[23,6,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"expiredNoCommissionDataCampaignStatusFilter\\\"]],[23,0,[\\\"expiredNoCommissionDataCampaignStatusFilter\\\",\\\"results\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[\\\"@contentClassNames\\\",\\\"@isNarrowOuterContainer\\\",\\\"@isAccordian\\\",\\\"@toggle\\\",\\\"@translate\\\",\\\"@title\\\"],[\\\"u-overflow-x-visible u-padding--0\\\",true,true,true,true,\\\"shop_status_expiredNoCommissionData\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@query\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"expiredNoCommissionDataCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"expiredNoCommissionDataCampaignStatusFilter\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"expiredNoCommissionDataCampaignStatusFilter\\\"]],[23,0,[\\\"expiredNoCommissionDataCampaignStatusFilter\\\",\\\"_data\\\",\\\"count\\\"]],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/search-results\\\",[],[[\\\"@query\\\",\\\"@showMinimalResult\\\",\\\"@result\\\"],[[23,0,[\\\"expiredNoCommissionDataCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],true,[23,5,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"expiredHaveCommissionDataCampaignStatusFilter\\\"]],[23,0,[\\\"expiredHaveCommissionDataCampaignStatusFilter\\\",\\\"results\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[\\\"@contentClassNames\\\",\\\"@isNarrowOuterContainer\\\",\\\"@isAccordian\\\",\\\"@toggle\\\",\\\"@translate\\\",\\\"@title\\\"],[\\\"u-overflow-x-visible u-padding--0\\\",true,true,true,true,\\\"shop_status_expiredHaveCommissionData\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@query\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"expiredHaveCommissionDataCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"expiredHaveCommissionDataCampaignStatusFilter\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"expiredHaveCommissionDataCampaignStatusFilter\\\"]],[23,0,[\\\"expiredHaveCommissionDataCampaignStatusFilter\\\",\\\"_data\\\",\\\"count\\\"]],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/campaigns/search-results\\\",[],[[\\\"@query\\\",\\\"@showMinimalResult\\\",\\\"@result\\\"],[[23,0,[\\\"expiredHaveCommissionDataCampaignStatusFilter\\\",\\\"_data\\\",\\\"query\\\"]],true,[23,4,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[[12,\\\"class\\\",\\\"u-no-padding-top\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showStarred\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,0,[\\\"campaignsBookmarkMemberMenu\\\",\\\"userCampaignMenu\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/scroll-into-view\\\",[[12,\\\"class\\\",\\\"row-container u-overflow-scroll\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-display-flex\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"campaignsBookmarkMemberMenu\\\",\\\"userCampaignMenu\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@translate\\\"],[\\\"button--small pinned\\\",true,[23,2,[\\\"campaignStatusClassName\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[23,2,[\\\"_data\\\",\\\"name\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayPinnedCampaignTask\\\"]],[23,2,[\\\"_data\\\",\\\"_key\\\"]]],null],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/scroll-into-view\\\",[[12,\\\"class\\\",\\\"tab-grid__filter-container\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/campaigns/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowResults\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,0,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"allowDuplicating\\\",\\\"dataTabContainer\\\",\\\"model\\\",\\\"onCancel\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onEditAutomationItem\\\",\\\"onPinMenu\\\",\\\"tab\\\",\\\"tabParent\\\",\\\"linkedFilters\\\"],[[23,0,[\\\"allowDuplicating\\\"]],\\\"campaigns\\\",[23,1,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"edit\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"editAutomationItem\\\"],null],[23,0,[\\\"pinMenuTask\\\"]],[23,1,[]],[23,0,[\\\"tab\\\"]],[23,0,[\\\"linkedFilters\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/table-view/detail-row/linked/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopCampaignsTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopCampaignsTableViewDetailRowComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    get isSelected() {\n      const selectedItems = R.pathOr([], ['args', 'tableViewOptions', 'selectedItems'])(this);\n      if (selectedItems.indexOf(this.args.model) > -1) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/campaigns/table-view/detail-row/linked/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zzj6Ry3H\",\n    \"block\": \"{\\\"symbols\\\":[\\\"child\\\",\\\"child\\\",\\\"child\\\",\\\"@model\\\",\\\"@tableViewOptions\\\",\\\"@isDetailRow\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"u-margin-right-10\\\",\\\"select all\\\",false,[28,\\\"fn\\\",[[23,5,[\\\"onToggleSelectAllItems\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"master campaign\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"children campaign\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"sync date\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"in sync\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-checkbox\\\",[[12,\\\"class\\\",\\\"u-icon-size-20\\\"]],[[\\\"@value\\\",\\\"@disabled\\\",\\\"@onToggle\\\"],[[23,0,[\\\"isSelected\\\"]],[23,4,[\\\"isAllChildrenSynced\\\"]],[28,\\\"fn\\\",[[23,5,[\\\"onSelectItem\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[23,4,[\\\"_data\\\",\\\"_key\\\"]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,4,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[23,4,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"updated\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,4,[\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"children\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[23,3,[\\\"_data\\\",\\\"_key\\\"]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[1,[23,3,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"children\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"li\\\",true],[8],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"_data\\\",\\\"timestampZ_synced_latest\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"children\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isSyncedWithMaster\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-success\\\"],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-check\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-xmark\\\"],[8],[9],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/table-view/detail-row/linked/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/campaigns/tracking-code/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VdeiW1IX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@trackingData\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"trackingCode\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"trackingCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"replace\\\",[\\\"big_o=\\\",\\\"\\\",[23,1,[\\\"trackingCode\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/campaigns/tracking-code/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/delivery-date-options/delivery-date-options-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopDeliveryDateOptionsDeliveryDateOptionsEditor extends _component.default {}\n  _exports.default = ChannelsShopDeliveryDateOptionsDeliveryDateOptionsEditor;\n});","define(\"client/pods/components/channels/shop/delivery-date-options/delivery-date-options-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ETM8qjdJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@addItemComponent\\\",\\\"@customAdapterName\\\",\\\"@isEditing\\\",\\\"@addItemOptions\\\",\\\"@isNew\\\",\\\"@onAddItem\\\",\\\"@onAfterAddItem\\\",\\\"@onCloseDialogAction\\\",\\\"@parentModel\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"channels/shop/delivery-date-options/info-editor\\\",[],[[\\\"@dispatchType\\\",\\\"@model\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@subtitle\\\",\\\"@allowTodayLabel\\\",\\\"@latestShippingTimeLabel\\\",\\\"@latestShippingTimeDescription\\\",\\\"@dispatchMinDayDescription\\\",\\\"@dispatchMaxDayDescription\\\",\\\"@minDayLabel\\\",\\\"@maxDayLabel\\\",\\\"@disallowedDispatchDaysLabel\\\",\\\"@disallowedArrivalDaysLabel\\\",\\\"@addItemComponent\\\",\\\"@customAdapterName\\\",\\\"@isEditing\\\",\\\"@addItemOptions\\\",\\\"@isNew\\\",\\\"@onAddItem\\\",\\\"@onAfterAddItem\\\",\\\"@onCloseDialogAction\\\",\\\"@parentModel\\\",\\\"@tab\\\"],[\\\"zones\\\",[23,1,[]],[23,2,[]],[23,3,[]],\\\"expected arrival date subtitle\\\",\\\"calculate dispatch days starting from today\\\",\\\"latest dispatch time\\\",\\\"latest dispatch time description\\\",\\\"dispatch min day description\\\",\\\"dispatch max day description\\\",\\\"delivery min days\\\",\\\"delivery max days\\\",\\\"disallowed dispatch days\\\",\\\"disallowed arrival days\\\",[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/delivery-date-options/delivery-date-options-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/delivery-date-options/info-editor/component\", [\"exports\", \"ramda\", \"@glimmer/component\"], function (_exports, R, _component) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\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 ChannelsShopDeliveryDateOptionsInfoEditor = _exports.default = (_dec = Ember.inject.service('date'), _dec2 = Ember.inject.service('application'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _class = class ChannelsShopDeliveryDateOptionsInfoEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"dateService\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"trackedDeliveryMinDays\", _descriptor4, this);\n      _initializerDefineProperty(this, \"trackedDeliveryMaxDays\", _descriptor5, this);\n      _initializerDefineProperty(this, \"disallowedDispatchDays\", _descriptor6, this);\n      _initializerDefineProperty(this, \"disallowedArrivalDays\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dayOptions\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isAllowedToday\", _descriptor9, this);\n      _initializerDefineProperty(this, \"trackedShippingDays\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedDates\", _descriptor1, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/delivery-date-options');\n      const tab = this.args?.tab;\n      const isEditing = this.args?.isEditing;\n      let model = this.args.model;\n      if (isEditing) {\n        model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n      this.model = model;\n      this.trackedDeliveryMinDays = this.getPrepareDays();\n      this.trackedDeliveryMaxDays = this.getDeliveryMaxDays();\n      this.trackedShippingDays = this.getShippingDays();\n      this.isAllowedToday = this.getIsAllowedToday();\n      this.selectedDates = model?._data?.excludedSpecificDates || [];\n      model.setData('dispatchType', this.args.dispatchType);\n      this.crud.addLists(this, ['days-of-week', 'channels/shop/campaigns/calendar-type-settings']);\n    }\n    getPrepareDays() {\n      const model = this.model;\n      return R.pathOr([''], ['_data', 'prepareDays'])(model);\n    }\n    getDeliveryMaxDays() {\n      const model = this.model;\n      return R.pathOr([''], ['_data', 'deliveryMaxDays'])(model);\n    }\n    getIsAllowedToday() {\n      const model = this.model;\n      return R.pathOr([''], ['_data', 'isAllowedToday'])(model);\n    }\n    getShippingDays() {\n      const model = this.model;\n      return R.pathOr([''], ['_data', 'shippingDays'])(model);\n    }\n    get isRunning() {\n      return this.crud.removeRecordTask.isRunning || this.crud.updateRecordTask.isRunning || this.crud.createRecordTask.isRunning;\n    }\n\n    /**\n     * calculate the min selectday\n     * @return {minDate} the min date\n     * if isAllowedToday, include today, if not exclude today\n     */\n    get calculatedMinDate() {\n      const today = this.dateService.getToday();\n      let minDate = '';\n      const trackedDeliveryMinDays = parseInt(this.trackedDeliveryMinDays) || 0;\n      if (this.isAllowedToday) {\n        minDate = today.add(trackedDeliveryMinDays, 'days');\n      } else {\n        minDate = today.add(trackedDeliveryMinDays + 1, 'days');\n      }\n      return minDate.add(this.trackedShippingDays, 'days');\n    }\n\n    /**\n     * calculate the max selectday\n     * @return {maxDate} the max date\n     */\n    get calculatedMaxDate() {\n      const minDate = this.calculatedMinDate;\n      const trackedDeliveryMaxDays = parseInt(this.trackedDeliveryMaxDays) || 0;\n      const maxDate = minDate.add(trackedDeliveryMaxDays, 'days');\n      return this.dateService.formatDate(maxDate, 'YYYY-MM-DD');\n    }\n\n    /**\n     * calculate the min selectday for dispatch method\n     * @return {minDate} the min date\n     * if isAllowedToday, include today, if not exclude today\n     */\n    get minDateForDispatchMethod() {\n      const today = this.dateService.getToday();\n      const trackedDeliveryMinDays = parseInt(this.trackedDeliveryMinDays) || 0;\n      let minDate = '';\n      let trackedDeliveryMinDaysToAdd = trackedDeliveryMinDays;\n      if (!this.isAllowedToday) {\n        trackedDeliveryMinDaysToAdd = trackedDeliveryMinDaysToAdd + 1;\n      }\n      minDate = today.add(trackedDeliveryMinDaysToAdd, 'days');\n      return minDate;\n    }\n\n    /**\n     * calculate the max selectday for dispatch method\n     * @return {maxDate} the max date\n     */\n    get maxDateForDispatchMethod() {\n      const minDate = this.minDateForDispatchMethod;\n      const trackedDeliveryMaxDays = parseInt(this.trackedDeliveryMaxDays) || 0;\n      const maxDate = minDate.add(trackedDeliveryMaxDays, 'days');\n      return this.dateService.formatDate(maxDate, 'YYYY-MM-DD');\n    }\n    updateMinDays(event) {\n      const inputValue = parseInt(event?.target?.value, 10) || 0;\n      this.trackedDeliveryMinDays = inputValue;\n    }\n    updateMaxDays(event) {\n      this.trackedDeliveryMaxDays = parseInt(event?.target?.value, 10) || 0;\n    }\n    updateShippingDays(event) {\n      this.trackedShippingDays = parseInt(event?.target?.value, 10) || 0;\n    }\n    updateIsAllowedToday(newValue) {\n      this.isAllowedToday = newValue;\n    }\n    cancel() {\n      this.args?.onCloseDialogAction?.();\n    }\n    afterCreateRecordTask(model) {\n      this.args?.onAddItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterUpdateRecordTask(model) {\n      this.args?.onUpdateItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask(model) {\n      this.args?.onRemoveItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    handleDatesSelection({\n      dates\n    }) {\n      this.selectedDates = dates.map(date => date.toISOString().substring(0, 10));\n    }\n    removeExcludedSpecificDates(date) {\n      const excludedSpecificDates = R.pathOr([], ['model', '_data', 'excludedSpecificDates'])(this);\n      excludedSpecificDates.removeObject(date);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"trackedDeliveryMinDays\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"trackedDeliveryMaxDays\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"disallowedDispatchDays\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"disallowedArrivalDays\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dayOptions\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [0, 1, 2, 3, 4, 5, 6];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isAllowedToday\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"trackedShippingDays\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"selectedDates\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateMinDays\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"updateMinDays\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateMaxDays\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"updateMaxDays\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateShippingDays\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"updateShippingDays\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateIsAllowedToday\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"updateIsAllowedToday\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterUpdateRecordTask\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"afterUpdateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleDatesSelection\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"handleDatesSelection\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeExcludedSpecificDates\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"removeExcludedSpecificDates\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/delivery-date-options/info-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/8pqxVm8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"excludeDate\\\",\\\"@disabled\\\",\\\"@tab\\\",\\\"@isEditing\\\",\\\"@disallowedArrivalDaysLabel\\\",\\\"@isReadonly\\\",\\\"@minDayLabel\\\",\\\"@dispatchType\\\",\\\"@maxDayLabel\\\",\\\"@latestShippingTimeLabel\\\",\\\"@latestShippingTimeDescription\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\",\\\"@subtitle\\\",\\\"@allowTodayLabel\\\",\\\"@disallowedDispatchDaysLabel\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"deliveryDateOptionsEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"deliveryDateOptions\\\",[23,15,[]],[23,4,[]],[23,14,[]],[23,13,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,16,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"basic information\\\",\\\"basicInformation_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],\\\"name\\\",true,\\\"name\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[\\\"name\\\",[28,\\\"or\\\",[[23,7,[]],[23,0,[\\\"isRunning\\\"]]],null],true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"isRequired\\\",\\\"date is required\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,7,[]],false,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"isRequired\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"arrivalDateSubTitle\\\",[23,17,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@options\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"expectedArrivalDateSubTitle\\\"]],false,false,[23,7,[]],[23,4,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[50]]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,16,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"dispatch-settings\\\",\\\"dispatchSettings_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"isAllowedToday\\\",[23,18,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,7,[]],[28,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"isAllowedToday\\\"]],\\\"set today as the first day\\\"],null],false,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"isAllowedToday\\\"]],[23,0,[\\\"updateIsAllowedToday\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"isAllowedToday\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@description\\\"],[[23,1,[]],\\\"latestShippingTime\\\",[23,11,[]],[23,12,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@size\\\",\\\"@value\\\",\\\"@type\\\"],[100,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"latestShippingTime\\\"]],\\\"time\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,16,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"calendar settings\\\",\\\"calendarSettings_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"calendar settings type\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"calendarSettingType\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@tab\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@alwaysShowEditor\\\"],[true,true,true,[23,4,[]],[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-calendar-type-settings\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"calendarSettingType\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"calendarSettingType\\\"]],\\\"settingPeriodOfTime\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@translateDescription\\\",\\\"@inputValue\\\",\\\"@translateMoreDescription\\\"],[[23,1,[]],\\\"prepareDays\\\",true,[23,8,[]],true,[23,0,[\\\"trackedDeliveryMinDays\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[[3,\\\"on\\\",[\\\"input\\\",[28,\\\"fn\\\",[[23,0,[\\\"updateMinDays\\\"]]],null]]]],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@disabled\\\",\\\"@value\\\"],[\\\"prepareDays\\\",true,[23,7,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"prepareDays\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"days\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"prepareDays\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\",\\\"@translateDescription\\\"],[[23,1,[]],\\\"disallowed prepare days\\\",\\\"disallowedPrepareDays\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"days-of-week\\\"]],\\\"list-selector\\\",[23,0,[\\\"model\\\"]],\\\"_data.disallowedPrepareDays\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true,true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,9,[]],\\\"zones\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@translate\\\"],[[23,1,[]],\\\"shippingDays\\\",\\\"shipping days\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[[3,\\\"on\\\",[\\\"input\\\",[28,\\\"fn\\\",[[23,0,[\\\"updateShippingDays\\\"]]],null]]]],[[\\\"@isRequired\\\",\\\"@disabled\\\",\\\"@value\\\"],[false,[23,7,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"shippingDays\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"days\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@translateDescription\\\",\\\"@descriptionValue\\\",\\\"@translateMoreDescription\\\"],[[23,1,[]],\\\"deliveryMaxDays\\\",true,[23,10,[]],true,[28,\\\"date\\\",[[23,0,[\\\"calculatedMaxDate\\\"]]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[[3,\\\"on\\\",[\\\"input\\\",[28,\\\"fn\\\",[[23,0,[\\\"updateMaxDays\\\"]]],null]]]],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@disabled\\\",\\\"@value\\\"],[\\\"deliveryMaxDays\\\",true,[23,7,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"deliveryMaxDays\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"days\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"calendarSettingType\\\"]],\\\"settingFirstAndLastDate\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"prepareDays\\\",[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[[3,\\\"on\\\",[\\\"input\\\",[28,\\\"fn\\\",[[23,0,[\\\"updateMinDays\\\"]]],null]]]],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@disabled\\\",\\\"@value\\\"],[\\\"prepareDays\\\",true,[23,7,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"prepareDays\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"days\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,9,[]],\\\"zones\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@translate\\\"],[[23,1,[]],\\\"shippingDays\\\",\\\"shipping days\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[[3,\\\"on\\\",[\\\"input\\\",[28,\\\"fn\\\",[[23,0,[\\\"updateShippingDays\\\"]]],null]]]],[[\\\"@isRequired\\\",\\\"@disabled\\\",\\\"@value\\\"],[false,[23,7,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"shippingDays\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"days\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[23,1,[]],\\\"earliestDeliveryDateZ\\\",true,\\\"earliest delivery date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@context\\\",\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"earliestDeliveryDateZ\\\",\\\"_data.earliestDeliveryDateZ\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"earliestDeliveryDateZ\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[23,1,[]],\\\"lastestDeliveryDateZ\\\",true,\\\"lastest delivery date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@context\\\",\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"lastestDeliveryDateZ\\\",\\\"_data.lastestDeliveryDateZ\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"lastestDeliveryDateZ\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\",\\\"@translateDescription\\\"],[[23,1,[]],[23,19,[]],\\\"disallowedDispatchDays\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"days-of-week\\\"]],\\\"list-selector\\\",[23,0,[\\\"model\\\"]],\\\"_data.disallowedDispatchDays\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true,true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,9,[]],\\\"zones\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\",\\\"@translateDescription\\\"],[[23,1,[]],[23,6,[]],\\\"disallowedArrivalDays\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"days-of-week\\\"]],\\\"list-selector\\\",[23,0,[\\\"model\\\"]],\\\"_data.disallowedArrivalDays\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true,true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"excludeSpecificDates\\\",\\\"exclude specific dates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-multiple-picker\\\",[],[[\\\"@selectedDates\\\",\\\"@onSelect\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"excludedSpecificDates\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPath\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"excludedSpecificDates\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"excluded dates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"excludedSpecificDates\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,2,[]],\\\"YYYY/MM/DD\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeExcludedSpecificDates\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,0,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterRemoveRecordTask\\\"]],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isRunning\\\"]],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,0,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterUpdateRecordTask\\\"]],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,0,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterCreateRecordTask\\\"]],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/delivery-date-options/info-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/delivery-date-options/pickup-date-options-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopDeliveryDateOptionsPickupDateOptionsEditor extends _component.default {}\n  _exports.default = ChannelsShopDeliveryDateOptionsPickupDateOptionsEditor;\n});","define(\"client/pods/components/channels/shop/delivery-date-options/pickup-date-options-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lI1PaM2O\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@addItemComponent\\\",\\\"@customAdapterName\\\",\\\"@isEditing\\\",\\\"@addItemOptions\\\",\\\"@isNew\\\",\\\"@onAddItem\\\",\\\"@onAfterAddItem\\\",\\\"@onCloseDialogAction\\\",\\\"@parentModel\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"channels/shop/delivery-date-options/info-editor\\\",[],[[\\\"@dispatchType\\\",\\\"@model\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@subtitle\\\",\\\"@allowTodayLabel\\\",\\\"@latestShippingTimeLabel\\\",\\\"@latestShippingTimeDescription\\\",\\\"@minDayLabel\\\",\\\"@maxDayLabel\\\",\\\"@disallowedDispatchDaysLabel\\\",\\\"@addItemComponent\\\",\\\"@customAdapterName\\\",\\\"@isEditing\\\",\\\"@addItemOptions\\\",\\\"@isNew\\\",\\\"@onAddItem\\\",\\\"@onAfterAddItem\\\",\\\"@onCloseDialogAction\\\",\\\"@parentModel\\\",\\\"@tab\\\"],[\\\"pickupLocations\\\",[23,1,[]],[23,2,[]],[23,3,[]],\\\"pickup date subtitle\\\",\\\"allow today pickup\\\",\\\"latest pickup time\\\",\\\"latest pickup time description\\\",\\\"delivery min days\\\",\\\"delivery max days\\\",\\\"select store closed day\\\",[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/delivery-date-options/pickup-date-options-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items-by-payment-status-export-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-extension\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R_, R) {\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, _dec0, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 ChannelsShopCampaignsItemsByPaymentStatusExportBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('date'), _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _class = class ChannelsShopCampaignsItemsByPaymentStatusExportBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"export\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"fileName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"exportData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"deconstructSet\", _descriptor8, this);\n      _initializerDefineProperty(this, \"onlyHasActivity\", _descriptor9, this);\n      _initializerDefineProperty(this, \"today\", _descriptor0, this);\n      this.today = this.dateService.formatDate(this.dateService.getToday(), 'YYYYMMDD');\n      this.fileName = this.getDefaultFilename();\n    }\n    getDefaultFilename() {\n      const name = R.path(['args', 'model', '_data', 'name'])(this) || '';\n      return `${name}-${this.today}`;\n    }\n    *fetchDataTask(onCloseDialogAction) {\n      const model = this.args.model;\n      const params = {\n        deconstructSet: this.deconstructSet,\n        onlyHasActivity: this.onlyHasActivity\n      };\n      // fetch data\n      const exportData = yield this.crud.findTask.perform({\n        adapterName: 'channels/shop/campaigns/export/items-by-payment-status',\n        appendPath: model?._data?._key,\n        params\n      });\n      const specsForSummary = [{\n        column: this.intl.t('product'),\n        prop: 'item'\n      }, {\n        column: this.intl.t('product code'),\n        prop: 'itemCode'\n      }, {\n        column: this.intl.t('export_paid-available'),\n        color: '',\n        prop: 'available.paid',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_unpaid-available'),\n        color: '',\n        prop: 'available.unpaid',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_total-available'),\n        color: '',\n        prop: 'available.total',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_paid-preOrder'),\n        color: '',\n        prop: 'preOrder.paid',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_unpaid-preOrder'),\n        color: '',\n        prop: 'preOrder.unpaid',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_total-preOrder'),\n        color: '',\n        prop: 'preOrder.total',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_paid-total'),\n        color: '',\n        prop: 'total.paid',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_unpaid-total'),\n        color: '',\n        prop: 'total.unpaid',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_total-total'),\n        color: '',\n        prop: 'total.total',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_salesLimitedQty'),\n        color: '',\n        prop: 'salesLimitedQty',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_salesLimitedQty_remaining'),\n        color: '',\n        prop: 'salesLimitedQtyRemaining',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_preOrderLimitedQty'),\n        color: '',\n        prop: 'salesPreOrderLimitedQty',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('export_preOrderLimitedQty_remaining'),\n        color: '',\n        prop: 'salesPreOrderLimitedQtyRemaining',\n        transform(value, row, spec) {\n          if (row.hasSalesPreOrderLimitedQty) {\n            return parseInt(value) || 0;\n          }\n          return '';\n        }\n      }];\n      const worksheetData = R.pipe(R.pathOr([], ['_data', 'itemsByPaymentStatus']), R.map(row => {\n        return R.map(spec => {\n          let value;\n          const path = spec.prop;\n          if (!path) {\n            value = '';\n          }\n          value = R_.dotPath(path)(row);\n          if (spec.transform) {\n            value = spec.transform(value, row, spec);\n          }\n          return value;\n        })(specsForSummary);\n      }))(exportData);\n      const headers = R.pluck('column')(specsForSummary);\n      this.exportData = {\n        headers,\n        data: worksheetData\n      };\n    }\n    *exportTask(onCloseDialogAction) {\n      const exportData = this.exportData;\n      const headers = exportData.headers || [];\n      const worksheetData = exportData.data || [];\n      const sheetWithHeaders = R.prepend(headers)(worksheetData);\n      const worksheets = [];\n      worksheets.push({\n        sheetName: this.today,\n        data: sheetWithHeaders\n      });\n      yield this.excel.exportFile({\n        worksheets,\n        title: this.fileName\n      });\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"export\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"fileName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"exportData\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"deconstructSet\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"onlyHasActivity\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"today\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchDataTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"exportTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"exportTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/items-by-payment-status-export-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EESz+AIK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"row\\\",\\\"cell\\\",\\\"header\\\",\\\"@isReadonly\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"export items by payment status\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchDataTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchDataTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"file name\\\",[23,0,[\\\"errors\\\"]],\\\"fileName\\\",\\\"export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,5,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"fileName\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"only include items with sales activity\\\",[23,0,[\\\"errors\\\"]],\\\"onlyHasActivity\\\",\\\"export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggle\\\"],[[23,0,[\\\"onlyHasActivity\\\"]],true,false,[28,\\\"perform\\\",[[23,0,[\\\"fetchDataTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"exportData\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"exportData\\\",\\\"headers\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,4,[]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"exportData\\\",\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,3,[]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"export\\\",[23,6,[]],\\\"fas fa-file-export\\\",[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items-by-payment-status-export-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items-export-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"client/constants/index\", \"ramda-extension\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, _index, R_, RA, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ChannelsShopItemsLimitsExportBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _class = class ChannelsShopItemsLimitsExportBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor3, this);\n      _initializerDefineProperty(this, \"export\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"fileName\", _descriptor7, this);\n      _initializerDefineProperty(this, \"exportData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"deconstructSet\", _descriptor9, this);\n      _initializerDefineProperty(this, \"onlyHasActivity\", _descriptor0, this);\n      _initializerDefineProperty(this, \"today\", _descriptor1, this);\n      _initializerDefineProperty(this, \"notEditableStringIndicator\", _descriptor10, this);\n      _initializerDefineProperty(this, \"exportType\", _descriptor11, this);\n      _initializerDefineProperty(this, \"fullCount\", _descriptor12, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/campaigns-details-export-types']);\n      this.today = this.dateService.formatDate(this.dateService.getToday(), 'YYYYMMDD');\n      this.fileName = this.getDefaultFilename();\n    }\n    getDefaultFilename() {\n      const name = R.path(['args', 'model', '_data', 'name'])(this) || '';\n      return `${name}-${this.intl.t('products')}-${this.today}`;\n    }\n    *fetchDataTask({\n      fetchMax = false,\n      onPreFetchDataTask\n    }) {\n      if (onPreFetchDataTask) {\n        yield onPreFetchDataTask();\n      }\n      const model = this.args.model;\n      const master = model.getData('_key');\n      const filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        defaultFiltersData: {\n          master,\n          fetchMax\n        }\n      });\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'channels/shop/campaigns/details/export',\n        appendPath: `/export/master/${master}`,\n        filters,\n        serverType: 'jobs'\n      });\n      this.fullCount = filters?.fullCount;\n      const specsForSummary = [{\n        column: this.intl.t('index'),\n        validInput: this.intl.t('dataType_number'),\n        prop: '_data.index',\n        productTypes: ['']\n      }, {\n        column: this.intl.t('product'),\n        validInput: this.intl.t('not editable'),\n        prop: '_data.item'\n      }, {\n        column: this.intl.t('product code'),\n        validInput: this.intl.t('not editable'),\n        prop: '_data.itemCode',\n        transform(value, row, spec, intl, notEditableStringIndicator) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return value;\n          }\n          return notEditableStringIndicator;\n        }\n      }, {\n        //   column: this.intl.t('product tags'),\n        //   prop: '_data.productTags',\n        //   validInput: this.intl.t('not editable'),\n        //   transform (value, row, spec, intl, notEditableStringIndicator) {\n        //     return R.pipe(\n        //       RA.ensureArray,\n        //       R.map(R.propOr('', 'label')),\n        //       R.reject(RA.isNilOrEmpty),\n        //       R.join(', ')\n        //     )(value)\n        //   }\n        // }, {\n        //   column: this.intl.t('campaign detail product tags'),\n        //   prop: '_data.campaignDetailProductTags',\n        //   validInput: this.intl.t('not editable'),\n        //   transform (value, row, spec, intl, notEditableStringIndicator) {\n        //     return R.pipe(\n        //       RA.ensureArray,\n        //       R.map(R.propOr('', 'label')),\n        //       R.reject(RA.isNilOrEmpty),\n        //       R.join(', ')\n        //     )(value)\n        //   }\n        // }, {\n        column: this.intl.t('product type'),\n        validInput: this.intl.t('not editable'),\n        prop: '_data.productType',\n        transform(value, row, spec, intl, notEditableStringIndicator) {\n          const isSet = R_.dotPathOr(false, '_data.isSet')(row);\n          const isSetWithChoices = R_.dotPathOr(false, '_data.isSetWithChoices')(row);\n          const hasVariants = R_.dotPathOr(false, '_data.hasVariants')(row);\n          const isChoices = R_.dotPathOr(false, '_data.isChoices')(row);\n          const variantChildId = R_.dotPathOr('', '_data.variantChildId')(row);\n          if (isSet) {\n            value = intl.t('product_set');\n            const isSetChild = R_.dotPathOr(false, '_data.isSetChild')(row);\n            if (isSetChild) {\n              value = intl.t('product_sets_contents');\n            }\n          } else if (isSetWithChoices) {\n            value = intl.t('product_sets_with_choices');\n          } else if (hasVariants) {\n            value = intl.t('variants');\n          } else if (isChoices) {\n            value = intl.t('choices');\n          } else if (RA.isNotNilOrEmpty(variantChildId)) {\n            value = intl.t('variant child');\n          } else {\n            value = intl.t('product_general');\n          }\n          return value;\n        }\n      }, {\n        column: this.intl.t('status'),\n        validInput: `${this.intl.t(_index.default.productsStatus.active)} / ${this.intl.t(_index.default.productsStatus.inactive)} / ${this.intl.t(_index.default.productsStatus.preOrder)} / ${this.intl.t(_index.default.productsStatus.soldOut)} / ${this.intl.t(_index.default.productsStatus.draft)}`,\n        prop: '_data.status',\n        transform(value, row, spec, intl, notEditableStringIndicator) {\n          const isChoices = row?._data?.isChoices;\n          if (isChoices) {\n            return notEditableStringIndicator;\n          }\n          const isSetChild = R_.dotPathOr(false, '_data.isSetChild')(row);\n          if (isSetChild) {\n            return notEditableStringIndicator;\n          }\n          return intl.t(value);\n        }\n      }, {\n        column: this.intl.t('on sale'),\n        validInput: 'Y / N',\n        prop: '_data.onSale',\n        transform(value, row, spec, intl, notEditableStringIndicator) {\n          const isMainRow = R.pathOr(false, ['_data', 'isMainRow'])(row);\n          if (!isMainRow) {\n            return notEditableStringIndicator;\n          }\n          if (value === 'on') {\n            return 'Y';\n          }\n          return 'N';\n        }\n      }, {\n        column: this.intl.t('inclusive price'),\n        validInput: this.intl.t('dataType_number'),\n        prop: '_data.price',\n        transform(value, row, spec, intl, notEditableStringIndicator) {\n          const isSetWithChoices = R_.dotPathOr(false, '_data.isSetWithChoices')(row);\n          if (isSetWithChoices) {\n            return notEditableStringIndicator;\n          }\n          const isChoices = row?._data?.isChoices;\n          if (isChoices) {\n            const isSetPriceOnBundle = row?._data?.isSetPriceOnBundle;\n            if (isSetPriceOnBundle) {\n              return RA.isNotNilOrEmpty(value) ? Number(value) : value;\n            }\n            return '';\n          }\n          return RA.isNotNilOrEmpty(value) ? Number(value) : value;\n        }\n      }, {\n        column: this.intl.t('inclusive discounted price'),\n        validInput: `${this.intl.t('dataType_number')} (${this.intl.t('must be smaller than inclusive price')})`,\n        prop: '_data.priceDiscounted',\n        transform(value, row, spec, intl, notEditableStringIndicator) {\n          const isSetWithChoices = R_.dotPathOr(false, '_data.isSetWithChoices')(row);\n          if (isSetWithChoices) {\n            return notEditableStringIndicator;\n          }\n          const isChoices = row?._data?.isChoices;\n          if (isChoices) {\n            const isSetPriceOnBundle = row?._data?.isSetPriceOnBundle;\n            if (isSetPriceOnBundle) {\n              return RA.isNotNilOrEmpty(value) ? Number(value) : value;\n            }\n            return '';\n          }\n          return RA.isNotNilOrEmpty(value) ? Number(value) : value;\n        }\n      }, {\n        column: this.intl.t('choose qty'),\n        validInput: this.intl.t('dataType_number'),\n        prop: '_data.choiceQty',\n        transform(value, row, spec, intl, notEditableStringIndicator) {\n          const isChoices = row?._data?.isChoices;\n          if (isChoices) {\n            return RA.isNotNilOrEmpty(value) ? Number(value) : value;\n          }\n          return notEditableStringIndicator;\n        }\n      }, {\n        column: this.intl.t('set price on bundle'),\n        validInput: 'Y / N',\n        prop: '_data.isSetPriceOnBundle',\n        transform(value, row, spec, intl, notEditableStringIndicator) {\n          if (row?._data?.isChoices) {\n            if (value === true) {\n              return 'Y';\n            }\n            if (value === false) {\n              return 'N';\n            }\n            return notEditableStringIndicator;\n          }\n          return notEditableStringIndicator;\n        }\n      }, {\n        column: `${this.intl.t('product_sets_contents')} ${this.intl.t('qty')}`,\n        validInput: this.intl.t('not editable'),\n        prop: '_data.qty',\n        transform(value, row, spec, intl, notEditableStringIndicator) {\n          const isSetChild = row?._data?.isSetChild;\n          if (isSetChild) {\n            return RA.isNotNilOrEmpty(value) ? Number(value) : value;\n          }\n          return notEditableStringIndicator;\n        }\n      }];\n      const createRow = row => R.map(spec => {\n        let value;\n        const path = spec.prop;\n        if (!path) {\n          value = '';\n        }\n        value = R_.dotPath(path)(row);\n        if (spec.transform) {\n          value = spec.transform(value, row, spec, this.intl, this.notEditableStringIndicator);\n        }\n        return value;\n      })(specsForSummary);\n      const worksheetData = R.pipe(RA.mapIndexed((row, index0) => {\n        // use campaignIndex so it won't flip when the ordering is by latest campaign detail\n        // do the resorting on export later when customer is complaining?\n        // row._data.index = `${index0+1}`\n        row._data.isMainRow = true;\n        const isSet = R_.dotPathOr(false, '_data.isSet')(row);\n        const isSetWithChoices = R_.dotPathOr(false, '_data.isSetWithChoices')(row);\n        const hasVariants = R_.dotPathOr(false, '_data.hasVariants')(row);\n        const isNormalProduct = !isSet && !isSetWithChoices && !hasVariants;\n        if (isNormalProduct) {\n          const rowValue = createRow(row);\n          return [rowValue];\n        }\n        if (isSet) {\n          const parentRow = createRow(row);\n          const setDetails = row?._data?.setDetails || [];\n          const setDetailsRow = RA.mapIndexed((setDetail, index1) => {\n            setDetail._data.index = `${row._data.index}.${index1 + 1}`;\n            return createRow(setDetail);\n          })(setDetails);\n          return R.concat([parentRow])(setDetailsRow);\n        }\n        if (hasVariants) {\n          const parentRow = createRow(row);\n          const variantChildren = row?._data?.variantChildren || [];\n          const variantChildrenRow = RA.mapIndexed((variantChild, index1) => {\n            variantChild._data.index = `${row._data.index}.${index1 + 1}`;\n            return createRow(variantChild);\n          })(variantChildren);\n          return R.concat([parentRow])(variantChildrenRow);\n        }\n        if (isSetWithChoices) {\n          const parentRow = createRow(row);\n          const choices = row?._data?.choices || [];\n          const choicesRow = R.pipe(RA.mapIndexed((choice, index1) => {\n            choice._data.choiceQty = choice?._data?.qty || '';\n            choice._data.item = choice?._data?.name || '';\n            choice._data.index = `${row._data.index}.${index1 + 1}`;\n            choice._data.isChoices = true;\n            const choiceRow = createRow(choice);\n            const details = choice?._data?.details || [];\n            const detailsRow = R.pipe(RA.mapIndexed((detail, index2) => {\n              detail._data.index = `${choice._data.index}.${index2 + 1}`;\n              const detailRow = createRow(detail);\n              const isSet = R_.dotPathOr(false, '_data.isSet')(detail);\n              const hasVariants = R_.dotPathOr(false, '_data.hasVariants')(detail);\n              if (isSet) {\n                const setDetails = detail?._data?.setDetails || [];\n                const setDetailsRow = RA.mapIndexed((setDetail, index3) => {\n                  setDetail._data.index = `${detail._data.index}.${index3 + 1}`;\n                  return createRow(setDetail);\n                })(setDetails);\n                return R.concat([detailRow])(setDetailsRow);\n              }\n              if (hasVariants) {\n                const variantChildren = detail?._data?.variantChildren || [];\n                const variantChildrenRow = RA.mapIndexed((variantChild, index3) => {\n                  variantChild._data.index = `${detail._data.index}.${index3 + 1}`;\n                  return createRow(variantChild);\n                })(variantChildren);\n                return R.concat([detailRow])(variantChildrenRow);\n              }\n              return [detailRow];\n            }), R.unnest)(details);\n            return R.concat([choiceRow])(detailsRow);\n          }), R.unnest)(choices);\n          return R.concat([parentRow])(choicesRow);\n        }\n      }), R.unnest)(results);\n      const headers = R.pluck('column')(specsForSummary);\n      const subHeaders = R.pluck('validInput')(specsForSummary);\n      const exportData = {\n        headers,\n        subHeaders,\n        data: worksheetData\n      };\n      this.exportData = exportData;\n      return exportData;\n    }\n    *exportTask(onCloseDialogAction) {\n      const exportData = yield this.fetchDataTask.perform({\n        fetchMax: true\n      });\n      const headers = exportData.headers || [];\n      const subHeaders = exportData.subHeaders || [];\n      const worksheetData = exportData.data || [];\n      const sheetWithHeaders = R.pipe(worksheetData => {\n        if (this.exportType === 'adjustIndexes') {\n          return R.filter(data => {\n            const indexValue = R.head(data);\n            if (R.includes('.', indexValue)) {\n              return false;\n            }\n            return true;\n          })(worksheetData);\n        }\n        return worksheetData;\n      }, R.prepend(subHeaders), R.prepend(headers))(worksheetData);\n      const worksheets = [];\n      worksheets.push({\n        sheetName: this.today,\n        data: sheetWithHeaders\n      });\n      yield this.excel.exportFile({\n        worksheets,\n        title: this.fileName\n      });\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"export\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"fileName\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"exportData\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"deconstructSet\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"onlyHasActivity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"today\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"notEditableStringIndicator\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '-';\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"exportType\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'adjustPrices';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"fullCount\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchDataTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"exportTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"exportTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/items-export-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IpDLsQ5L\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"row\\\",\\\"cell\\\",\\\"subHeader\\\",\\\"header\\\",\\\"@label\\\",\\\"@onPreFetchDataTask\\\",\\\"@onClose\\\",\\\"@btnClassNames\\\",\\\"@isReadonly\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\",\\\"@onClose\\\",\\\"@btnClassNames\\\"],[[28,\\\"if\\\",[[23,6,[]],[23,6,[]],\\\"export products\\\"],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchDataTask\\\"]],[28,\\\"hash\\\",null,[[\\\"fetchMax\\\",\\\"onPreFetchDataTask\\\"],[false,[23,7,[]]]]]],null],[23,8,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchDataTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"file name\\\",[23,0,[\\\"errors\\\"]],\\\"fileName\\\",\\\"export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,10,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"fileName\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"export type\\\",[23,0,[\\\"errors\\\"]],\\\"exportType\\\",\\\"export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-campaigns-details-export-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",true,[23,0,[\\\"exportType\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"exportData\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"exportData\\\",\\\"headers\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,5,[]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"exportData\\\",\\\"subHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,4,[]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"exportData\\\",\\\"data\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[24,[\\\"exportType\\\"]],\\\"adjustIndexes\\\"],null],[28,\\\"ramda\\\",[\\\"includes\\\",\\\".\\\",[28,\\\"ramda\\\",[\\\"head\\\",[23,2,[]]],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[23,3,[]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@badge\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"export\\\",[23,11,[]],\\\"fas fa-file-export\\\",[23,0,[\\\"fullCount\\\"]],[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items-export-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items-import-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda-adjunct\", \"ramda-extension\", \"ramda\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, RA, R_, R, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ChannelsShopItemsLimitsImportBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 3\n  }), _dec24 = Ember._action, _dec25 = Ember._action, _class = class ChannelsShopItemsLimitsImportBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor3, this);\n      _initializerDefineProperty(this, \"export\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"server\", _descriptor7, this);\n      _initializerDefineProperty(this, \"hasUnsuccessful\", _descriptor8, this);\n      _initializerDefineProperty(this, \"hasSuccessful\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isImported\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isPaidImported\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isShowImportModal\", _descriptor10, this);\n      _initializerDefineProperty(this, \"sheets\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedSheets\", _descriptor12, this);\n      _initializerDefineProperty(this, \"showImportPaidModal\", _descriptor13, this);\n      _initializerDefineProperty(this, \"successful\", _descriptor14, this);\n      _initializerDefineProperty(this, \"successfulImportData\", _descriptor15, this);\n      _initializerDefineProperty(this, \"templateFilename\", _descriptor16, this);\n      _initializerDefineProperty(this, \"importData\", _descriptor17, this);\n      _initializerDefineProperty(this, \"importedSheetHeaders\", _descriptor18, this);\n      _initializerDefineProperty(this, \"unsuccessful\", _descriptor19, this);\n      _initializerDefineProperty(this, \"unsuccessfulImportData\", _descriptor20, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/import/price/specs']);\n      this.resetImportData();\n    }\n    get specsForImportDataHeaders() {\n      const specsForImportData = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-price-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('headerValue'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }\n    get specsForImportDataValues() {\n      const specsForImportData = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-price-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('value'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }\n    resetImportData() {\n      this.hasUnsuccessful = false;\n      this.hasSuccessful = false;\n      this.isImported = false;\n      this.isPaidImported = false;\n      this.sheets = [];\n      this.selectedSheets = [];\n      this.showImportPaidModal = false;\n      this.successful = [];\n      this.successfulImportData = [];\n      this.templateFilename = '';\n      this.importData = '';\n      this.importedSheetHeaders = [];\n      this.unsuccessful = [];\n      this.unsuccessfulImportData = [];\n    }\n    zipHeadersWithRowData(headers, row) {\n      const specsForImportData = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-price-specs')(this) || [];\n      const importDataHeaders = R.pluck('value')(headers);\n      const rowData = {};\n      _nventor.default.mapIndexed((header, index) => {\n        if (!R.isEmpty(header)) {\n          let value = row[index];\n          const spec = R.find(R.pathEq(['_data', 'value'], header))(specsForImportData);\n          if (spec?._data?.transform) {\n            value = spec._data?.transform(value, row, header, this.intl);\n          }\n          rowData[header] = value;\n        }\n      })(importDataHeaders);\n      return rowData;\n    }\n    getSheetData(sheetObj) {\n      const sheetData = R.propOr([], 'data', sheetObj);\n      const sheetHeaders = R.propOr([], 'headers', sheetObj);\n      return R.pipe(R.map(row => {\n        const rowData = this.zipHeadersWithRowData(sheetHeaders, row);\n        return rowData;\n      }))(sheetData);\n    }\n    *importDataTask() {\n      const filteredWorkbook = this.filteredWorkbook;\n      const specsForImportData = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-price-specs')(this) || [];\n      let sheetHeaders = [];\n      const importData = R.pipe(R.mapObjIndexed(sheetObj => {\n        if (RA.isNilOrEmpty(sheetHeaders)) {\n          sheetHeaders = R.propOr([], 'headers', sheetObj);\n        }\n        return this.getSheetData(sheetObj);\n      }), R.values, R.flatten)(filteredWorkbook);\n      sheetHeaders = R.pipe(R.map(header => {\n        const spec = R.find(R.pathEq(['_data', 'value'], header.value))(specsForImportData);\n        if (spec) {\n          header.label = spec?._data?.label;\n          return header;\n        }\n        return false;\n      }), R.reject(R.equals(false)))(sheetHeaders);\n      this.importedSheetHeaders = sheetHeaders;\n      const groupedImportData = R.pipe(R.map(row => {\n        const index = row?.index || '';\n        row.indexHead = R.pipe(index => {\n          if (!R.is(String, index)) {\n            return R.toString(index);\n          }\n          return index;\n        }, R.split('.'), R.head)(index);\n        row.isMain = !R.includes('.')(index);\n        return row;\n      }), R.groupBy(R.prop('indexHead')), R.values)(importData);\n      let fullResponse = {\n        successful: [],\n        unsuccessful: []\n      };\n      const q = [];\n      const path = 'api/protected/channels/shop/campaigns/details/import';\n      R.pipe(R.splitEvery(50), R.map(importDataChunk => {\n        q.push(this.queueUpdateFromImportTask.perform({\n          path,\n          data: importDataChunk\n        }));\n      }))(groupedImportData);\n      yield (0, _emberConcurrency.all)(q).then(responses => {\n        R.forEach(response => {\n          const successful = R.pathOr([], ['data', 'successful'])(response);\n          const unsuccessful = R.pathOr([], ['data', 'unsuccessful'])(response);\n          fullResponse.successful = R.concat(successful, fullResponse.successful || []);\n          fullResponse.unsuccessful = R.concat(unsuccessful, fullResponse.unsuccessful || []);\n        })(responses);\n      });\n      const specsForImportDataValues = this.specsForImportDataValues;\n      try {\n        this.isImported = true;\n        const unsuccessful = R.pipe(R.pathOr([], ['unsuccessful']), R.sortWith([R.ascend(row => Number(R.prop('index', row)))]), R.map(row => {\n          row.cells = R.values(R.pickAll(specsForImportDataValues, row));\n          return row;\n        }), R.values)(fullResponse);\n        if (unsuccessful.length > 0) {\n          this.hasUnsuccessful = true;\n          this.unsuccessfulImportData = unsuccessful;\n        }\n        const successful = R.pipe(R.pathOr([], ['successful']), R.sortWith([R.ascend(row => Number(R.prop('index', row)))]), R.map(resp => {\n          const row = R.propOr({}, 'model')(resp);\n          row.cells = R.values(R.pickAll(specsForImportDataValues, row));\n          return row;\n        }), R.values)(fullResponse);\n        this.successful = successful;\n        if (successful.length > 0) {\n          this.hasSuccessful = true;\n          this.successfulImportData = successful;\n        }\n      } catch (err) {\n        this.isImported = false;\n        this.crud.setValidationErrors('errors', err, this);\n      }\n    }\n    *queueUpdateFromImportTask({\n      path,\n      data\n    }) {\n      const payload = {\n        groupedBatch: data,\n        master: this.args.model.getData('_key')\n      };\n      return yield this.server.callJobs('PATCH', path, payload);\n    }\n    get importParamValues() {\n      const specs = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-price-specs')(this) || [];\n      const values = R.pipe(R.map(R.path(['_data', 'value'])), R.reject(RA.isNilOrEmpty))(specs);\n      return values;\n    }\n    get toDisplayImportData() {\n      if (!this.isImported) {\n        return this.importData || [];\n      }\n      return this.unsuccessfulImportData;\n    }\n    get successfulCount() {\n      const data = this.successful || [];\n      return data.length;\n    }\n    get unsuccessfulCount() {\n      const data = this.unsuccessfulImportData || [];\n      return data.length;\n    }\n    get sheetNames() {\n      const workbook = this.workbook || {};\n      const sheetNames = R.keys(workbook) || [];\n      return R.map(sheetName => {\n        return Ember.Object.create({\n          value: sheetName,\n          label: sheetName\n        });\n      })(sheetNames);\n    }\n    get workbook() {\n      const sheets = this.sheets || {};\n      const name = R.pathOr([], [0, 'specsForImportDataHeaders'])(this);\n      return R.mapObjIndexed(sheetData => {\n        const sheetObject = Ember.Object.create();\n        sheetObject.set('headers', this.matchDataWithHeaders(sheetData));\n        sheetData = R.reject(row => {\n          if (R.includes(name, row)) {\n            return true;\n          }\n          return false;\n        })(sheetData);\n        sheetObject.set('data', sheetData);\n        return sheetObject;\n      })(sheets);\n    }\n    get filteredWorkbook() {\n      const sheets = this.workbook || {};\n      const selectedSheets = this.selectedSheets || [];\n      const allowedSheets = {};\n      R.mapObjIndexed((sheetObject, sheetName) => {\n        if (R.includes(sheetName, selectedSheets)) {\n          allowedSheets[sheetName] = sheetObject;\n          return sheetObject;\n        }\n      })(sheets);\n      return allowedSheets;\n    }\n    matchDataWithHeaders(data) {\n      if (data.length > 0) {\n        const importDataHeaders = R.head(data);\n        const allowedHeaders = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-price-specs')(this) || [];\n        return R.map(importDataHeader => {\n          importDataHeader = R.trim(`${importDataHeader}`);\n          const found = R.find(R.pathEq(['_data', 'headerValue'], importDataHeader))(allowedHeaders);\n          const value = R.pathOr('', ['_data', 'value'], found);\n          return Ember.Object.create({\n            value\n          });\n        })(importDataHeaders);\n      }\n      return false;\n    }\n    showImportModal(sheets) {\n      this.sheets = sheets;\n      const sheetNames = this.sheetNames || [];\n      const selectedSheets = R.map(sheetName => {\n        return sheetName.value;\n      }, sheetNames);\n      this.selectedSheets = selectedSheets;\n      this.isShowImportModal = true;\n    }\n    closeImportModal() {\n      // always reset after closing\n      this.resetImportData();\n      if (this.isShowImportModal) {\n        this.isShowImportModal = false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"export\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hasUnsuccessful\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"hasSuccessful\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"isImported\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"isPaidImported\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isShowImportModal\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"sheets\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedSheets\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"showImportPaidModal\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"successful\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"successfulImportData\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"templateFilename\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"importData\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"importedSheetHeaders\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"unsuccessful\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"unsuccessfulImportData\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"resetImportData\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"resetImportData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"zipHeadersWithRowData\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"zipHeadersWithRowData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"importDataTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"importDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"queueUpdateFromImportTask\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"queueUpdateFromImportTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showImportModal\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"showImportModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeImportModal\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"closeImportModal\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/items-import-btn/data-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopItemsLimitsImportBtnDataRowComponent extends _component.default {}\n  _exports.default = ChannelsShopItemsLimitsImportBtnDataRowComponent;\n});","define(\"client/pods/components/channels/shop/items-import-btn/data-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bITsuPCw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"cell\\\",\\\"cell\\\",\\\"@rowData\\\",\\\"@hasUnsuccessful\\\",\\\"@hasSuccessful\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"cells\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,3,[\\\"cells\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],true],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\tY\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],false],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\tN\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[]],true],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\tY\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[]],false],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\tN\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-times-circle\\\",\\\"has-text-danger\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-check-circle\\\",\\\"has-text-success\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-indent\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\"],[[23,3,[\\\"error\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items-import-btn/data-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items-import-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JqlcsijZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"hasImportData\\\",\\\"toImportData\\\",\\\"sheetObject\\\",\\\"sheetName\\\",\\\"rowData\\\",\\\"headerObject\\\",\\\"rowData\\\",\\\"header\\\",\\\"rowData\\\",\\\"header\\\"],\\\"statements\\\":[[4,\\\"files/import-btn\\\",null,[[\\\"tagName\\\",\\\"label\\\",\\\"accept\\\",\\\"multiple\\\",\\\"onUploadsChanged\\\"],[\\\"div\\\",\\\"import products\\\",[28,\\\"array\\\",[\\\"xls\\\",\\\"csv\\\"],null],\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"showImportModal\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\"],[\\\"import\\\",[23,0,[\\\"isShowImportModal\\\"]],[23,0,[\\\"closeImportModal\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"successfulImportData\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"importedSheetHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"importedSheetHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,10,[\\\"label\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"successfulImportData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/items-limits-import-btn/data-row\\\",[],[[\\\"@rowData\\\",\\\"@hasSuccessful\\\"],[[23,9,[]],[23,0,[\\\"hasSuccessful\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"unsuccessfulImportData\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"importedSheetHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"importedSheetHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,8,[\\\"label\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"unsuccessfulImportData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/items-limits-import-btn/data-row\\\",[],[[\\\"@rowData\\\",\\\"@hasUnsuccessful\\\"],[[23,7,[]],[23,0,[\\\"hasUnsuccessful\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"translate\\\"],[[23,0,[\\\"sheetName\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"itemClassNames\\\",\\\"model\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"multiSelect\\\",\\\"allowEmpty\\\"],[false,[23,0,[\\\"sheetNames\\\"]],\\\"list-selector__item list-selector__item--horizontal\\\",[23,0,[]],\\\"value\\\",\\\"label\\\",\\\"selectedSheets\\\",true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,0,[\\\"filteredWorkbook\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"translate\\\"],[[23,4,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"hasUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"headers\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-import-price-specs\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,6,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/items-limits-import-btn/data-row\\\",[],[[\\\"@rowData\\\",\\\"@hasUnsuccessful\\\"],[[23,5,[]],[23,0,[\\\"hasUnsuccessful\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[23,0,[\\\"hasErrors\\\"]],[23,0,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close\\\",[28,\\\"fn\\\",[[23,0,[\\\"closeImportModal\\\"]],true],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"closeImportModal\\\"]],true],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"import\\\",[23,0,[\\\"importDataTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"importDataTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items-import-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items-limits-export-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-extension\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R_, R) {\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, _dec0, _dec1, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ChannelsShopItemsLimitsExportBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _class = class ChannelsShopItemsLimitsExportBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor3, this);\n      _initializerDefineProperty(this, \"export\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"fileName\", _descriptor7, this);\n      _initializerDefineProperty(this, \"exportData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"deconstructSet\", _descriptor9, this);\n      _initializerDefineProperty(this, \"onlyHasActivity\", _descriptor0, this);\n      _initializerDefineProperty(this, \"today\", _descriptor1, this);\n      _initializerDefineProperty(this, \"fullCount\", _descriptor10, this);\n      this.today = this.dateService.formatDate(this.dateService.getToday(), 'YYYYMMDD');\n      this.fileName = this.getDefaultFilename();\n    }\n    getDefaultFilename() {\n      const name = R.path(['args', 'model', '_data', 'name'])(this) || '';\n      return `${name}-${this.intl.t('limited qty')}-${this.today}`;\n    }\n    *fetchDataTask({\n      fetchMax = false\n    }) {\n      const model = this.args.model;\n      const master = model.getData('_key');\n      const filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/limits/filters',\n        defaultFiltersData: {\n          master,\n          fetchMax\n        }\n      });\n      filters.setData('product.status', ['active']);\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'channels/shop/campaigns/details/limits',\n        appendPath: `/master/${master}`,\n        filters\n      });\n      this.fullCount = filters?.fullCount;\n      const specsForSummary = [{\n        column: this.intl.t('product'),\n        prop: '_data.item'\n      }, {\n        column: this.intl.t('product code'),\n        prop: '_data.itemCode'\n      }, {\n        column: this.intl.t('qty sold'),\n        color: '',\n        prop: '_data.salesQty',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('limited sales qty'),\n        color: '',\n        prop: '_data.hasSalesLimitedQty',\n        transform(value, row, spec) {\n          if (value) {\n            return 'Y';\n          }\n          return 'N';\n        }\n      }, {\n        column: this.intl.t('limited qty'),\n        color: '',\n        prop: '_data.salesLimitedQty',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('increase/decrease limited qty'),\n        color: '',\n        prop: '',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('allow preOrder'),\n        color: '',\n        prop: '_data.allowPreOrder',\n        transform(value, row, spec) {\n          if (value) {\n            return 'Y';\n          }\n          return 'N';\n        }\n      }, {\n        column: this.intl.t('limited preOrder qty'),\n        color: '',\n        prop: '_data.hasSalesPreOrderLimitedQty',\n        transform(value, row, spec) {\n          if (value) {\n            return 'Y';\n          }\n          return 'N';\n        }\n      }, {\n        column: this.intl.t('limit preOrder qty'),\n        color: '',\n        prop: '_data.salesPreOrderLimitedQty',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }, {\n        column: this.intl.t('preOrder-notes'),\n        color: '',\n        prop: '_data.salesPreOrderLimitedQtyDesc',\n        transform(value, row, spec) {\n          try {\n            return R.trim(value || '');\n          } catch (e) {\n            return '';\n          }\n        }\n      }, {\n        column: this.intl.t('increase/decrease preOrder qty'),\n        color: '',\n        prop: '',\n        transform(value, row, spec) {\n          return parseInt(value) || 0;\n        }\n      }];\n      const worksheetData = R.map(row => {\n        return R.map(spec => {\n          let value;\n          const path = spec.prop;\n          if (!path) {\n            value = '';\n          }\n          value = R_.dotPath(path)(row);\n          if (spec.transform) {\n            value = spec.transform(value, row, spec);\n          }\n          return value;\n        })(specsForSummary);\n      })(results || []);\n      const headers = R.pluck('column')(specsForSummary);\n      const exportData = {\n        headers,\n        data: worksheetData\n      };\n      this.exportData = exportData;\n      return exportData;\n    }\n    *exportTask(onCloseDialogAction) {\n      const exportData = yield this.fetchDataTask.perform({\n        fetchMax: true\n      });\n      const headers = exportData.headers || [];\n      const worksheetData = exportData.data || [];\n      const sheetWithHeaders = R.prepend(headers)(worksheetData);\n      const worksheets = [];\n      worksheets.push({\n        sheetName: this.today,\n        data: sheetWithHeaders\n      });\n      yield this.excel.exportFile({\n        worksheets,\n        title: this.fileName\n      });\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"export\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"fileName\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"exportData\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"deconstructSet\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"onlyHasActivity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"today\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"fullCount\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchDataTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"exportTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"exportTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/items-limits-export-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"h+K86Yh5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"row\\\",\\\"cell\\\",\\\"header\\\",\\\"@isReadonly\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"export limited qtys\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchDataTask\\\"]],[28,\\\"hash\\\",null,[[\\\"fetchMax\\\"],[false]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchDataTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"file name\\\",[23,0,[\\\"errors\\\"]],\\\"fileName\\\",\\\"export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,5,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"fileName\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"exportData\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"exportData\\\",\\\"headers\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,4,[]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"exportData\\\",\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,3,[]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@badge\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"export\\\",[23,6,[]],\\\"fas fa-file-export\\\",[23,0,[\\\"fullCount\\\"]],[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items-limits-export-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items-limits-import-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"ramda-extension\", \"ramda\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, RA, R_, R, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;\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 ChannelsShopItemsLimitsImportBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, _dec21 = Ember._tracked, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _class = class ChannelsShopItemsLimitsImportBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor3, this);\n      _initializerDefineProperty(this, \"export\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"server\", _descriptor7, this);\n      _initializerDefineProperty(this, \"hasUnsuccessful\", _descriptor8, this);\n      _initializerDefineProperty(this, \"hasSuccessful\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isImported\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isPaidImported\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isShowImportModal\", _descriptor10, this);\n      _initializerDefineProperty(this, \"sheets\", _descriptor11, this);\n      _initializerDefineProperty(this, \"sheetNames\", _descriptor12, this);\n      _initializerDefineProperty(this, \"selectedSheets\", _descriptor13, this);\n      _initializerDefineProperty(this, \"showImportPaidModal\", _descriptor14, this);\n      _initializerDefineProperty(this, \"successful\", _descriptor15, this);\n      _initializerDefineProperty(this, \"successfulImportData\", _descriptor16, this);\n      _initializerDefineProperty(this, \"templateFilename\", _descriptor17, this);\n      _initializerDefineProperty(this, \"importData\", _descriptor18, this);\n      _initializerDefineProperty(this, \"importedSheetHeaders\", _descriptor19, this);\n      _initializerDefineProperty(this, \"unsuccessful\", _descriptor20, this);\n      _initializerDefineProperty(this, \"unsuccessfulImportData\", _descriptor21, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/import/limits/specs']);\n      this.resetImportData();\n    }\n    get specsForImportDataHeaders() {\n      const specsForImportData = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-limits-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('headerValue'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }\n    get specsForImportDataValues() {\n      const specsForImportData = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-limits-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('value'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }\n    resetImportData() {\n      this.importData = '';\n      this.successful = [];\n      this.importedSheetHeaders = [];\n      this.hasUnsuccessful = false;\n      this.unsuccessfulImportData = [];\n      this.isImported = false;\n    }\n    zipHeadersWithRowData(headers, row) {\n      const specsForImportData = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-limits-specs')(this) || [];\n      const importDataHeaders = R.pluck('value')(headers);\n      const rowData = {};\n      _nventor.default.mapIndexed((header, index) => {\n        if (!R.isEmpty(header)) {\n          let value = row[index];\n          const spec = R.find(R.pathEq(['_data', 'value'], header))(specsForImportData);\n          if (spec?._data?.transform) {\n            value = spec._data?.transform(value, row, header);\n          }\n          rowData[header] = value;\n        }\n      })(importDataHeaders);\n      return rowData;\n    }\n    getSheetData(sheetObj) {\n      const sheetData = R.propOr([], 'data', sheetObj);\n      const sheetHeaders = R.propOr([], 'headers', sheetObj);\n      return R.pipe(R.map(row => {\n        const rowData = this.zipHeadersWithRowData(sheetHeaders, row);\n        return rowData;\n      }))(sheetData);\n    }\n    *importDataTask() {\n      const filteredWorkbook = this.filteredWorkbook;\n      const specsForImportData = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-limits-specs')(this) || [];\n      let sheetHeaders = [];\n      const importData = R.pipe(R.mapObjIndexed(sheetObj => {\n        if (RA.isNilOrEmpty(sheetHeaders)) {\n          sheetHeaders = R.propOr([], 'headers', sheetObj);\n        }\n        return this.getSheetData(sheetObj);\n      }), R.values, R.flatten)(filteredWorkbook);\n      sheetHeaders = R.pipe(R.map(header => {\n        const spec = R.find(R.pathEq(['_data', 'value'], header.value))(specsForImportData);\n        if (spec) {\n          header.label = spec?._data?.label;\n          return header;\n        }\n        return false;\n      }), R.reject(R.equals(false)))(sheetHeaders);\n      this.importedSheetHeaders = sheetHeaders;\n      const path = 'api/protected/channels/shop/campaigns/details/limits/import';\n      const payload = {\n        batch: importData,\n        master: this.args.model.getData('_key')\n      };\n      const specsForImportDataValues = this.specsForImportDataValues;\n      try {\n        const response = yield this.server.call('PATCH', path, payload);\n        this.isImported = true;\n        const unsuccessful = R.pipe(R.pathOr([], ['data', 'unsuccessful']), R.map(row => {\n          row.cells = R.values(R.pick(specsForImportDataValues, row));\n          return row;\n        }), R.values)(response);\n        if (unsuccessful.length > 0) {\n          this.hasUnsuccessful = true;\n          this.unsuccessfulImportData = unsuccessful;\n        }\n        const successful = R.pipe(R.pathOr([], ['data', 'successful']), R.map(resp => {\n          const row = R.propOr({}, 'model')(resp);\n          row.cells = R.values(R.pick(specsForImportDataValues, row));\n          return row;\n        }), R.values)(response);\n        this.successful = successful;\n        if (successful.length > 0) {\n          this.hasSuccessful = true;\n          this.successfulImportData = successful;\n        }\n      } catch (err) {\n        this.isImported = false;\n        this.crud.setValidationErrors('errors', err, this);\n      }\n    }\n    get importParamValues() {\n      const specs = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-limits-specs')(this) || [];\n      const values = R.pipe(R.map(R.path(['_data', 'value'])), R.reject(RA.isNilOrEmpty))(specs);\n      return values;\n    }\n    get toDisplayImportData() {\n      if (!this.isImported) {\n        return this.importData || [];\n      }\n      return this.unsuccessfulImportData;\n    }\n    get successfulCount() {\n      const data = this.successful || [];\n      return data.length;\n    }\n    get unsuccessfulCount() {\n      const data = this.unsuccessfulImportData || [];\n      return data.length;\n    }\n    get filteredWorkbook() {\n      const workbook = this.workbook || {};\n      const selectedSheets = this.selectedSheets || [];\n      const allowedWorkbook = {};\n      R.mapObjIndexed((sheetObject, sheetName) => {\n        if (R.includes(sheetName, selectedSheets)) {\n          allowedWorkbook[sheetName] = sheetObject;\n          return sheetObject;\n        }\n      })(workbook);\n      return allowedWorkbook;\n    }\n    matchDataWithHeaders(data) {\n      if (data.length > 0) {\n        const importDataHeaders = R.head(data);\n        const allowedHeaders = R_.dotPath('crud.lists.channels-shop-campaigns-lists-import-limits-specs')(this) || [];\n        return R.map(importDataHeader => {\n          importDataHeader = R.trim(`${importDataHeader}`);\n          const found = R.find(R.pathEq(['_data', 'headerValue'], importDataHeader))(allowedHeaders);\n          const value = R.pathOr('', ['_data', 'value'], found);\n          return Ember.Object.create({\n            value\n          });\n        })(importDataHeaders);\n      }\n      return false;\n    }\n    showImportModal(sheets) {\n      this.sheets = sheets;\n      const sheetNames = R.pipe(R.keys, R.map(sheetName => {\n        return Ember.Object.create({\n          value: sheetName,\n          label: sheetName\n        });\n      }))(sheets);\n      this.sheetNames = sheetNames;\n      this.workbook = this.createWorkbook();\n      const selectedSheets = R.map(sheetName => {\n        return sheetName.value;\n      }, sheetNames);\n      this.selectedSheets = selectedSheets;\n      this.isShowImportModal = true;\n    }\n    closeImportModal() {\n      const hasSuccessful = R.pipe(R.propOr([], 'successful'), RA.isNotNilOrEmpty)(this);\n      if (this.isShowImportModal) {\n        this.isShowImportModal = false;\n      }\n    }\n    createWorkbook() {\n      const sheets = this.sheets || {};\n      const name = R.pathOr([], ['specsForImportDataHeaders', 0])(this);\n      return R.mapObjIndexed(sheetData => {\n        const sheetObject = Ember.Object.create();\n        sheetObject.set('headers', this.matchDataWithHeaders(sheetData));\n        sheetData = R.reject(row => {\n          if (R.includes(name, row)) {\n            return true;\n          }\n          return false;\n        })(sheetData);\n        sheetObject.set('data', sheetData);\n        return sheetObject;\n      })(sheets);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"export\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hasUnsuccessful\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"hasSuccessful\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"isImported\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"isPaidImported\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isShowImportModal\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"sheets\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"sheetNames\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"selectedSheets\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"showImportPaidModal\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"successful\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"successfulImportData\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"templateFilename\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"importData\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"importedSheetHeaders\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"unsuccessful\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"unsuccessfulImportData\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"resetImportData\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"resetImportData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"zipHeadersWithRowData\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"zipHeadersWithRowData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"importDataTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"importDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showImportModal\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"showImportModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeImportModal\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"closeImportModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createWorkbook\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"createWorkbook\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/items-limits-import-btn/data-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopItemsLimitsImportBtnDataRowComponent extends _component.default {}\n  _exports.default = ChannelsShopItemsLimitsImportBtnDataRowComponent;\n});","define(\"client/pods/components/channels/shop/items-limits-import-btn/data-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vxPR/TQA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"cell\\\",\\\"cell\\\",\\\"@rowData\\\",\\\"@hasUnsuccessful\\\",\\\"@hasSuccessful\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"cells\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,3,[\\\"cells\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],true],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\tY\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],false],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\tN\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[]],true],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\tY\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[]],false],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\tN\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-times-circle\\\",\\\"has-text-danger\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,3,[\\\"isUnsuccessfulMsg\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-check-circle\\\",\\\"has-text-success\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-indent\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\"],[[23,3,[\\\"error\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items-limits-import-btn/data-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items-limits-import-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dR4C+gMW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"hasImportData\\\",\\\"toImportData\\\",\\\"sheetObject\\\",\\\"sheetName\\\",\\\"rowData\\\",\\\"headerObject\\\",\\\"rowData\\\",\\\"header\\\",\\\"rowData\\\",\\\"header\\\"],\\\"statements\\\":[[4,\\\"files/import-btn\\\",null,[[\\\"tagName\\\",\\\"label\\\",\\\"accept\\\",\\\"multiple\\\",\\\"onUploadsChanged\\\"],[\\\"div\\\",\\\"import limited qtys\\\",[28,\\\"array\\\",[\\\"xls\\\",\\\"csv\\\"],null],\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"showImportModal\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\"],[\\\"import\\\",[23,0,[\\\"isShowImportModal\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"closeImportModal\\\"]],false],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"unsuccessfulImportData\\\"]],[23,0,[\\\"successfulImportData\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"unsuccessfulImportData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"importedSheetHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"importedSheetHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,10,[\\\"label\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"unsuccessfulImportData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/items-limits-import-btn/data-row\\\",[],[[\\\"@rowData\\\",\\\"@hasUnsuccessful\\\"],[[23,9,[]],[23,0,[\\\"hasUnsuccessful\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"successfulImportData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"importedSheetHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"importedSheetHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,8,[\\\"label\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"successfulImportData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/items-limits-import-btn/data-row\\\",[],[[\\\"@rowData\\\",\\\"@hasSuccessful\\\"],[[23,7,[]],[23,0,[\\\"hasSuccessful\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"itemClassNames\\\",\\\"model\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"multiSelect\\\",\\\"allowEmpty\\\"],[false,[23,0,[\\\"sheetNames\\\"]],\\\"list-selector__item list-selector__item--horizontal\\\",[23,0,[]],\\\"value\\\",\\\"label\\\",\\\"selectedSheets\\\",true,false]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,0,[\\\"filteredWorkbook\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,4,[]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"hasUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"headers\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-import-limits-specs\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,6,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"channels/shop/items-limits-import-btn/data-row\\\",[],[[\\\"@rowData\\\",\\\"@hasUnsuccessful\\\"],[[23,5,[]],[23,0,[\\\"hasUnsuccessful\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[23,0,[\\\"hasErrors\\\"]],[23,0,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close\\\",[28,\\\"fn\\\",[[23,0,[\\\"closeImportModal\\\"]],true],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"closeImportModal\\\"]],true],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"import\\\",[23,0,[\\\"importDataTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"importDataTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items-limits-import-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items/item-card/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    tagName: 'div',\n    classNames: ['store-item__card', 'card']\n  });\n});","define(\"client/pods/components/channels/shop/items/item-card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tlIm9pSy\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-image\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[28,\\\"uploadcareSrc\\\",[[24,[\\\"defaultImage\\\"]],\\\"/-/resize/300x\\\"],null]],[10,\\\"alt\\\",\\\"Placeholder image\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content card-desc\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[1,[28,\\\"files/files-gallery\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"defaultImage\\\",\\\"fetchUploads\\\",\\\"uploadsCollection\\\",\\\"onSetAsDefaultImageTask\\\"],[\\\"products\\\",[24,[\\\"item\\\",\\\"_data\\\",\\\"itemKey\\\"]],[24,[\\\"defaultImage\\\"]],false,[24,[\\\"productsUploadsCollection\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSetAsDefaultImageTask\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n          \\\"],[1,[28,\\\"files/files-gallery\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"defaultImage\\\",\\\"fetchUploads\\\",\\\"uploadsCollection\\\",\\\"onSetAsDefaultImageTask\\\"],[\\\"products-campaigns\\\",[24,[\\\"item\\\",\\\"_data\\\",\\\"itemKey\\\"]],[24,[\\\"defaultImage\\\"]],false,[24,[\\\"productsCampaignsUploadsCollection\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSetAsDefaultImageTask\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"files/files-uploader\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"label\\\",\\\"imagesOnly\\\",\\\"tagName\\\"],[\\\"products-campaigns\\\",[24,[\\\"item\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"upload images\\\",true,\\\"span\\\"]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"item\\\",\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[24,[\\\"item\\\",\\\"_data\\\",\\\"desc\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"footer\\\",true],[10,\\\"class\\\",\\\"card-footer\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"card-footer-item\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"channels/shop/items/item-price\\\",null,[[\\\"campaign\\\",\\\"item\\\"],[[24,[\\\"campaign\\\"]],[24,[\\\"item\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"card-footer-item\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"edit\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onEditItem\\\"]],[24,[\\\"campaign\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items/item-card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items/item-page/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: [],\n    images: Ember.computed('item.product.uploadedFiles.[]', function () {\n      const images = this.get('item.product.uploadedFiles') || [];\n      return images.sortBy('_key');\n    }),\n    defaultImage: Ember.computed('images', 'item._data.defaultImage', function () {\n      if (this.get('item._data.defaultImage')) {\n        return this.get('item._data.defaultImage');\n      }\n      if (this.images.get('firstObject')) {\n        const firstImage = this.images.get('firstObject');\n        if (firstImage) {\n          return firstImage.uuid;\n        }\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/channels/shop/items/item-page/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dnKPsN9P\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"section\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items/item-page/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items/item-price/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    hasStrikeThrough: true,\n    isOnSale: Ember.computed('item.{isOnSale,activeOnSaleSchedule,isStandardProduct}', function () {\n      const item = this?.item || {};\n      const isOnSale = item?.isOnSale || false;\n      const isStandardProduct = item?.isStandardProduct;\n      const activeOnSaleSchedule = item?.activeOnSaleSchedule || {};\n      let hasActiveOnSaleScheduleForNotStandardProduct = false;\n      if (!isStandardProduct && activeOnSaleSchedule?._data?.isOnSale) {\n        hasActiveOnSaleScheduleForNotStandardProduct = true;\n      }\n      return isOnSale || hasActiveOnSaleScheduleForNotStandardProduct;\n    })\n  });\n});","define(\"client/pods/components/channels/shop/items/item-price/item-price-current/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    currentPrice: Ember.computed('price', 'item.currentPrice', function () {\n      if (this.price) {\n        return this.price;\n      }\n      return this.get('item.currentPrice');\n    }),\n    currentIsOnSale: Ember.computed('onSale', 'item.isOnSale', function () {\n      if (this.onSale) {\n        return this.onSale;\n      }\n      return this.get('item.isOnSale');\n    }),\n    currentHasPriceRange: Ember.computed('hasPriceRange', 'item.hasPriceRange', 'item.synced', function () {\n      if (this.hasPriceRange) {\n        return this.hasPriceRange;\n      }\n      return this.get('item.hasPriceRange');\n    })\n  });\n});","define(\"client/pods/components/channels/shop/items/item-price/item-price-current/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YRhppIAr\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"store-item__price \\\",[28,\\\"if\\\",[[24,[\\\"currentIsOnSale\\\"]],\\\"store-item__price--sale\\\"],null]]]],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"currentPrice\\\"]]],null],false],[0,\\\" \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"currentHasPriceRange\\\"]]],null,{\\\"statements\\\":[[0,\\\"    +\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items/item-price/item-price-current/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items/item-price/item-price-old/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    oldPrice: Ember.computed('price', 'item.oldPrice', 'item.priceDiscounted', function () {\n      if (this.price) {\n        return this.price;\n      }\n      return this.get('item.oldPrice') || this.get('item.priceDiscounted');\n    })\n  });\n});","define(\"client/pods/components/channels/shop/items/item-price/item-price-old/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6slDEXsC\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"store-item__price \\\",[28,\\\"if\\\",[[24,[\\\"hasStrikeThrough\\\"]],\\\"store-item__price--old\\\"],null]]]],[8],[1,[28,\\\"currency\\\",[[24,[\\\"oldPrice\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items/item-price/item-price-old/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items/item-price/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2CFWbYw3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@item\\\"],\\\"statements\\\":[[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isOnSale\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[28,\\\"lte\\\",[[23,2,[\\\"oldPrice\\\"]],\\\"0\\\"],null],[28,\\\"eq\\\",[[23,2,[\\\"oldPrice\\\"]],[23,2,[\\\"currentPrice\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"channels/shop/items/item-price/item-price-old\\\",null,[[\\\"item\\\",\\\"hasStrikeThrough\\\"],[[23,2,[]],[23,0,[\\\"hasStrikeThrough\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"store-item__price \\\",[28,\\\"if\\\",[[23,0,[\\\"isOnSale\\\"]],\\\"store-item__price--sale\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"isStandardProduct\\\"]],[23,2,[\\\"activeOnSaleSchedule\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"activeOnSaleSchedule\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"channels/shop/items/item-price/item-price-current\\\",null,[[\\\"item\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items/item-price/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items/item-shipping-zones/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZAnQkziy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"child\\\",\\\"child\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"disallowedChildProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-link__tooltip-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__outer-wrapper\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__wrapper\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"allowedChildProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-success\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-circle-check\\\"],[8],[9],[0,\\\" \\\\n              \\\"],[1,[23,2,[\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"disallowedChildProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-circle-xmark\\\"],[8],[9],[0,\\\" \\\\n              \\\"],[1,[23,1,[\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items/item-shipping-zones/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items/search-bar/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"client/mixins/crud\", \"client/mixins/products-list-by\"], function (_exports, _emberConcurrency, R, _crud, _productsListBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _productsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    query: '',\n    filters: null,\n    autofocus: true,\n    adapterName: 'channels/shop/campaigns/details',\n    filtersAdapterName: 'channels/shop/campaigns/details/filters',\n    searchMethod: 'searchInputTask',\n    searchOptions: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/filters/search', 'products/lists/filters/sort', 'products/lists/filters/status', 'products/lists/types', 'filters/count', 'filters/sortDirection']);\n      const shopKey = this.shopKey;\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          master: shopKey,\n          sort: [{\n            by: 'index',\n            direction: 'asc'\n          }]\n        }\n      });\n      this.set('filters', filters);\n      this.set('searchOptions', {\n        adapterName: this.adapterName,\n        appendPath: `/master/${shopKey}`\n      });\n      this.set('appendPath', `/master/${shopKey}`);\n      const defaultTableViewOptions = {\n        tab: this.tab,\n        onMainActionIcon: 'fas fa-check-circle',\n        onMainActionLabel: this.select,\n        adapterName: this.adapterName,\n        campaign: this.model,\n        campaignDetails: this.results,\n        isProductsSelector: true\n      };\n      const tableViewOptions = this.tableViewOptions || {};\n      this.tableViewOptions = R.mergeRight(defaultTableViewOptions, tableViewOptions);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.fetchDefaultDataTask.perform();\n    },\n    fetchDefaultDataTask: (0, _emberConcurrency.task)(function* () {\n      const results = yield this.listByTask.perform({\n        adapterName: this.adapterName,\n        appendPath: this.appendPath,\n        filters: this.filters,\n        onAfter: this.onAfterSearch\n      });\n      this.set('results', results);\n    }),\n    searchTask: (0, _emberConcurrency.task)(function* (customSearchOptions, defaultSearchOptions, ...rest) {\n      const searchMethod = this.searchMethod;\n      const searchOptions = R.mergeRight(defaultSearchOptions, customSearchOptions);\n      const results = yield this.get(searchMethod).perform(searchOptions, ...rest);\n      this.set('results', results);\n    }),\n    customPaginationTask: (0, _emberConcurrency.task)(function* () {\n      if (this?.onPaginationSearchTask) {\n        // used only by product slider\n        yield this.onPaginationSearchTask.perform(this.paginateSearchRecordsTask, {\n          filters: this.filters\n        });\n      } else {\n        const results = yield this.crud.paginateSearchRecordsTask.perform({\n          onAfter: this.onAfterSearch,\n          filters: this.filters\n        });\n        this.set('results', results);\n      }\n    })\n  });\n});","define(\"client/pods/components/channels/shop/items/search-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uq9G/fJt\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"placeholder\\\",\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"autofocus\\\"]],\\\"search\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[24,[\\\"searchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"searchTask\\\"]],[24,[\\\"searchOptions\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"filters\\\",\\\"onAfter\\\"],[[24,[\\\"query\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"onAfterSearch\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"tableClassNames\\\",\\\"detailsRowComponent\\\",\\\"filters\\\",\\\"onPaginationTask\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onMainAction\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onSearchTask\\\",\\\"paginationIsFooter\\\",\\\"results\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"new-table-view\\\",\\\"channels/shop/campaigns/items/table-view/detail-row\\\",[24,[\\\"filters\\\"]],[23,0,[\\\"customPaginationTask\\\"]],[24,[\\\"onDisplay\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"onSelect\\\"]],[24,[\\\"reloadSearchRecordsTask\\\"]],[24,[\\\"searchAdvancedTask\\\"]],false,[24,[\\\"results\\\"]],[24,[\\\"tableViewOptions\\\"]]]]],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items/search-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/items/search-results/links/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div'\n  });\n});","define(\"client/pods/components/channels/shop/items/search-results/links/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"or9agx3I\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"item\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"itemCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"itemCode\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/items/search-results/links/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/linked-campaigns-status/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopLinkedCampaignsStatusComponent extends _component.default {}\n  _exports.default = ChannelsShopLinkedCampaignsStatusComponent;\n});","define(\"client/pods/components/channels/shop/linked-campaigns-status/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MJQR7aeI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isMaster\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"master campaign\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"childOf\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"child campaign\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[30,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"master campaign\\\"],null],\\\": \\\",[23,1,[\\\"_data\\\",\\\"childOf\\\"]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/linked-campaigns-status/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/panels-dash/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    search: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    filtersAdapterName: 'products/filters',\n    loadPrintDataTask: (0, _emberConcurrency.task)(function* () {\n      // const filters = this.filters\n      const toPrintFilters = this.search.copyFilters({\n        filters: this.filters,\n        adapterName: this.filtersAdapterName,\n        altStorageProp: 'toPrintResults',\n        defaultFiltersData: {\n          types: ['inventory']\n        }\n      });\n\n      // toPrintFilters.setData('count', 30)\n\n      const lastSearchSettingsProperty = this.filters.get('lastSearchSettingsProperty');\n      const lastSearchSettings = this.filters.get(lastSearchSettingsProperty);\n      toPrintFilters.set(lastSearchSettingsProperty, lastSearchSettings);\n      this.set('toPrintFilters', toPrintFilters);\n      const toPrintResults = yield this.crud.reloadSearchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: toPrintFilters\n      });\n      this.set('toPrintResults', toPrintResults);\n    })\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oAkwF47L\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@onDisplay\\\",\\\"@filters\\\",\\\"@onPaginationTask\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"tableClassNames\\\",\\\"detailsRowComponent\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onEdit\\\",\\\"onPaginationTask\\\",\\\"onDisplay\\\"],[[24,[\\\"tab\\\"]],\\\"promo-codes-dash\\\",\\\"channels/shop/promo-codes/table-view/detail-row\\\",[24,[\\\"filters\\\",\\\"results\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"onSearchTask\\\"]],[24,[\\\"onReloadSearchRecordsTask\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"onPaginationTask\\\"]],[23,4,[]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n    \\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\"],[[23,5,[]],[23,5,[\\\"results\\\"]],[23,6,[]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/promo-codes/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/panels-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopPromoCodesPanelsDisplayComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopPromoCodesPanelsDisplayComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/promo-codes/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VkErhc6j\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@errors\\\",\\\"@onDash\\\",\\\"@onEdit\\\"],\\\"statements\\\":[[5,\\\"channels/shop/promo-codes/promo-codes-editor\\\",[],[[\\\"@model\\\",\\\"@errors\\\",\\\"@isRunning\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@onCancel\\\",\\\"@onEdit\\\",\\\"@onRemoveRecordTask\\\"],[[23,1,[\\\"model\\\"]],[23,2,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],false,false,true,[23,1,[]],[23,3,[]],[23,4,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"channels/shop/promoCodes\\\",[23,0,[]],[23,1,[\\\"model\\\"]],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/promo-codes/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/panels-edit/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    adapterName: 'channels/shop/promoCodes',\n    init() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const model = this.tab.model;\n      this.set('model', model);\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QLXaSoyE\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"channels/shop/promo-codes/promo-codes-editor\\\",[],[[\\\"@model\\\",\\\"@showUseExpiryDateToggler\\\",\\\"@errors\\\",\\\"@isRunning\\\",\\\"@onSaveTask\\\",\\\"@onRemoveRecordTask\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@tab\\\",\\\"@onCancel\\\"],[[22,\\\"model\\\"],false,[22,\\\"errors\\\"],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"component\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[24,[\\\"model\\\"]],[23,0,[]],[24,[\\\"onDash\\\"]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[24,[\\\"model\\\"]],[24,[\\\"onDash\\\"]]]]]],null],false,true,[22,\\\"tab\\\"],[22,\\\"onDash\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/promo-codes/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/panels-new/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    adapterName: 'channels/shop/promoCodes',\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      if (!this.model) {\n        const adapterName = this.adapterName;\n        const model = this.crud.setupNewRecord({\n          adapterName\n        });\n        this.set('model', model);\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"A/QsSRvv\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"channels/shop/promo-codes/promo-codes-editor\\\",[],[[\\\"@model\\\",\\\"@showUseExpiryDateToggler\\\",\\\"@errors\\\",\\\"@isRunning\\\",\\\"@onSaveTask\\\",\\\"@onImportTask\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@tab\\\",\\\"@onCancel\\\"],[[22,\\\"model\\\"],false,[22,\\\"errors\\\"],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"component\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[24,[\\\"model\\\"]],[23,0,[]],[24,[\\\"onDash\\\"]]]]]],null],[22,\\\"onImportTask\\\"],true,true,[22,\\\"tab\\\"],[22,\\\"onDash\\\"]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/promo-codes/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/promo-codes-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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, _dec0, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6; // import Component from '@ember/component'\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 ChannelsShopPromoCodesPromoCodesEditorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class ChannelsShopPromoCodesPromoCodesEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isSetupPreset\", _descriptor6, this);\n      _defineProperty(this, \"disabled\", false);\n      _defineProperty(this, \"translate\", true);\n      _defineProperty(this, \"filtersAdapterName\", 'channels/shop/campaigns/filters');\n      this.crud.addLists(this, ['discounts/types', 'statuses', 'date/lists/unit-of-time']);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.campaignFilters = campaignFilters;\n    }\n    get isReadonly() {\n      if (this.args.isNew) {\n        return false;\n      }\n      if (this.args.isEditing) {\n        return false;\n      }\n      return true;\n    }\n    loadShopSource(model, shop) {\n      model.setData('allowedShopKey', shop.getData('_key'));\n    }\n    unloadShopSource(model) {\n      model.setData('allowedShopKey', '');\n    }\n    editPanel() {\n      this.args.onEdit(this.args.model);\n    }\n    resetDate() {\n      const model = this?.args?.model || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        const useExpiryDate = R.pathOr(false, ['_data', 'useExpiryDate'])(model);\n        if (useExpiryDate) {\n          model.setData('dateStartZ', '');\n          model.setData('dateEndZ', '');\n        } else {\n          model.setData('expiryDateStart', '');\n          model.setData('expiryDateStartUnit', 'days');\n          model.setData('expiryDateEnd', '');\n          model.setData('expiryDateEndUnit', 'days');\n        }\n      }\n    }\n    get allowedProductTagLists() {\n      const model = this?.args?.model || {};\n      if (RA.isNilOrEmpty(model)) {\n        return [];\n      }\n      const allProductTags = this.crud.lists['products-lists-tags'] || [];\n      const deniedProductTags = this?._data?.denyProductTags || [];\n      return R.reject(productTag => {\n        const productTagKey = productTag?._data?._key || '';\n        return R.includes(productTagKey, deniedProductTags);\n      })(allProductTags);\n    }\n    get deniedProductTagLists() {\n      const model = this?.args?.model || {};\n      if (RA.isNilOrEmpty(model)) {\n        return [];\n      }\n      const allProductTags = this.crud.lists['products-lists-tags'] || [];\n      const allowedProductTags = this?._data?.productTags || [];\n      return R.reject(productTag => {\n        const productTagKey = productTag.getData('_key') || '';\n        return R.includes(productTagKey, allowedProductTags);\n      })(allProductTags);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isSetupPreset\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.isSetupPreset || false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadShopSource\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"loadShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadShopSource\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editPanel\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"editPanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetDate\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"resetDate\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/promo-codes/promo-codes-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"iiZNRLpS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@isReadonly\\\",\\\"@isRunning\\\",\\\"@onCancel\\\",\\\"@onSaveTask\\\",\\\"@model\\\",\\\"@onEdit\\\",\\\"@onRemoveRecordTask\\\",\\\"@isNew\\\",\\\"@errors\\\",\\\"@isEditing\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@formGroupClassNames\\\",\\\"@showUseExpiryDateToggler\\\",\\\"@isFromFlows\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,6,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isSetupPreset\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"_key\\\"]],\\\"edit\\\",\\\"new\\\"],null]],null],false],[0,\\\": \\\\n          \\\"],[1,[23,6,[\\\"_data\\\",\\\"code\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"isReferral\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"referral_reward\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,6,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,6,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateRange\\\",[[23,6,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,6,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@isUserAllowed\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"promoCodes\\\",true,false,[28,\\\"if\\\",[[23,16,[]],[23,16,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"promoCodes\\\",[23,15,[]],[23,14,[]],[23,13,[]],[23,12,[]]]]]],null],[23,14,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,17,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,14,[]],\\\"basicInformation_group\\\",[23,1,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"status\\\",[23,1,[]],[23,10,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],true,[23,6,[\\\"statusClass\\\"]],true,[23,6,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isSetupPreset\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\"],[\\\"code\\\",[23,10,[]],[23,1,[]],true,\\\"promo code (at least 6 characters)\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,[23,0,[\\\"isReadonly\\\"]],[28,\\\"tt\\\",[\\\"auto\\\"],null],[23,6,[\\\"_data\\\",\\\"code\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\"],[\\\"description\\\",[23,1,[]],[23,10,[]],true,\\\"description\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,6,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\"],[\\\"publicDescription\\\",[23,1,[]],[23,10,[]],true,\\\"public description\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,6,[\\\"_data\\\",\\\"publicDescription\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,18,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,0,[\\\"isReadonly\\\"]],\\\"use expiry date instead\\\",[23,6,[\\\"_data\\\",\\\"useExpiryDate\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetDate\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"useExpiryDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\"],[\\\"expiryDateStart\\\",[23,10,[]],[23,1,[]],\\\"expiry start from\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,6,[\\\"_data\\\",\\\"expiryDateStart\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"date-lists-unit-of-time\\\"]],true,[23,6,[\\\"_data\\\",\\\"expiryDateStartUnit\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-left-5\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"from now\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\"],[\\\"expiryDateEnd\\\",[23,10,[]],[23,1,[]],\\\"expiry end at\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,6,[\\\"_data\\\",\\\"expiryDateEnd\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"date-lists-unit-of-time\\\"]],true,[23,6,[\\\"_data\\\",\\\"expiryDateEndUnit\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-left-5\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"from now\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\"],[\\\"dateStartZ\\\",[23,10,[]],[23,1,[]],\\\"start date\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateStartZ\\\",[23,6,[]],[23,6,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,0,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@model\\\"],[\\\"dateEndZ\\\",[23,1,[]],[23,10,[]],\\\"end date\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateEndZ\\\",[23,6,[]],[23,6,[\\\"_data\\\",\\\"dateEndZ\\\"]],[23,0,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,17,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,14,[]],\\\"discount_group\\\",[23,1,[]],\\\"discount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"type\\\",[23,10,[]],\\\"type\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"discounts-types\\\"]],true,[23,6,[\\\"_data\\\",\\\"type\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constants\\\",\\\"discountTypes\\\",\\\"amount\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"discountAmount\\\",[23,1,[]],[23,10,[]],\\\"discount amount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"discountAmount\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@isRequired\\\"],[\\\"discountRate\\\",[23,1,[]],[23,10,[]],\\\"discount rate\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@suffix\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,\\\"%\\\",[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"discountRate\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"allow discount for on sale items\\\",[23,10,[]],\\\"allowOnSale\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"allowOnSale\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"allowOnSale\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"discountRateOnSale\\\",[23,1,[]],[23,10,[]],\\\"discount rate for on sale items\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@suffix\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"%\\\",[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"discountRateOnSale\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"allowAllocatePromoCodeToShipping\\\",[23,1,[]],\\\"apply discount to shipping fee and payment fee\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"allowAllocatePromoCodeToShipping\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,17,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,14,[]],\\\"limits_group\\\",[23,1,[]],\\\"usage limits\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"isUnlimited\\\",[23,1,[]],[23,10,[]],\\\"is unlimited\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"isReferral\\\"]]],null],[23,6,[\\\"_data\\\",\\\"isUnlimited\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[\\\"_data\\\",\\\"isUnlimited\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"usageLimit\\\",[23,1,[]],[23,10,[]],\\\"usage limit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"isReferral\\\"]]],null],[23,6,[\\\"_data\\\",\\\"usageLimit\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"hasUsageLimitPerPerson\\\",[23,1,[]],[23,10,[]],\\\"has usage limit per person\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"isReferral\\\"]]],null],[23,6,[\\\"_data\\\",\\\"hasUsageLimitPerPerson\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"hasUsageLimitPerPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"usageLimitPerPerson\\\",[23,1,[]],[23,10,[]],\\\"usage limit per person\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"isReferral\\\"]]],null],[23,6,[\\\"_data\\\",\\\"usageLimitPerPerson\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,17,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,14,[]],\\\"requirements_group\\\",[23,1,[]],\\\"order requirements\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"minRequiredAmount\\\",[23,1,[]],[23,10,[]],\\\"minimum cart amount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,6,[\\\"_data\\\",\\\"minRequiredAmount\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,17,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,14,[]],\\\"shops_group\\\",[23,1,[]],\\\"shops\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"allowedShop\\\",[23,1,[]],[23,10,[]],\\\"allowed shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@hasSelected\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@isRunning\\\",\\\"@onDeselect\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\"],[false,[23,0,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"allowedShopKey\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"shopsList\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"unloadShopSource\\\"]],[23,6,[]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"filters\\\",\\\"resultsProperty\\\"],[\\\"channels/shop/campaigns\\\",[23,0,[]],[23,0,[\\\"campaignFilters\\\"]],\\\"shopsList\\\"]]],[23,6,[\\\"_data\\\",\\\"allowedShop\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"loadShopSource\\\"]],[23,6,[]]],null],[23,0,[\\\"isReadonly\\\"]],\\\"channels/shop/campaigns/search-results\\\",\\\"_data.name\\\",[23,6,[\\\"_data\\\",\\\"allowedShop\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,17,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,14,[]],\\\"emails_group\\\",[23,1,[]],\\\"emails\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"emails\\\",[23,1,[]],[23,10,[]],\\\"allowed emails\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],2,[23,6,[\\\"_data\\\",\\\"emails\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"telephones\\\",[23,1,[]],[23,10,[]],\\\"allowed telephones\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],2,[23,6,[\\\"_data\\\",\\\"telephones\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,17,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,14,[]],\\\"products_group\\\",[23,1,[]],\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"productTags\\\",[23,1,[]],[23,10,[]],\\\"allowed product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,0,[\\\"isReadonly\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"allowedProductTagLists\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@disabled\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],[23,0,[\\\"isReadonly\\\"]],true,true,\\\"tags\\\",[23,0,[\\\"allowedProductTagLists\\\"]],[23,6,[]],true,\\\"_data._key\\\",[23,14,[]],false,\\\"_data.productTags\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"allowedProductTagLists\\\"]],\\\"_data._key\\\",false,[23,6,[\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"denyProductTags\\\",[23,1,[]],[23,10,[]],\\\"denied product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,0,[\\\"isReadonly\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"deniedProductTagLists\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@disabled\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],[23,0,[\\\"isReadonly\\\"]],true,true,\\\"tags\\\",[23,0,[\\\"deniedProductTagLists\\\"]],[23,6,[]],true,\\\"_data._key\\\",[23,14,[]],false,\\\"_data.denyProductTags\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"deniedProductTagLists\\\"]],\\\"_data._key\\\",false,[23,6,[\\\"_data\\\",\\\"denyProductTags\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,19,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@errors\\\",\\\"@hasErrors\\\",\\\"@model\\\"],[[23,10,[]],[23,0,[\\\"hasErrors\\\"]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,11,[]],[23,6,[\\\"_data\\\",\\\"isReferral\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"and\\\",[[23,2,[]],[28,\\\"not-eq\\\",[[23,6,[\\\"_data\\\",\\\"isReferral\\\"]],true],null]],null],[23,3,[]],[23,8,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[28,\\\"fn\\\",[[23,4,[]]],null],\\\"overview\\\"]]],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[\\\"_data\\\",\\\"isReferral\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-pen\\\",[23,3,[]],[28,\\\"fn\\\",[[23,7,[]],[23,6,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,3,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/promo-codes/promo-codes-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/search-filters/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    init() {\n      this.crud.addLists(this, ['channels/shop/promo-codes/lists/filters/search', 'channels/shop/promo-codes/lists/filters/sort', 'discounts/types', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"c5COkDFc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"onListByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"byLatest\\\",\\\"filters\\\"],[[24,[\\\"adapterName\\\"]],true,[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-promo-codes-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-promo-codes-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-promo-codes-lists-types\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.types\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-promo-codes-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.statuses\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/promo-codes/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/search-results-item/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    init() {\n      this.crud.addLists(this, ['discounts/types', 'statuses']);\n      this._super(...arguments);\n    },\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/search-results-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fL6Zu+Nn\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"list-results__table\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"list-results__table-thumb\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\"],[[24,[\\\"result\\\",\\\"defaultImage\\\"]],\\\"/-/resize/40x\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"discounts-types\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dateRange\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/promo-codes/search-results-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/tab-container/component\", [\"exports\", \"ember-concurrency\", \"client/utils/nventor\", \"ramda\"], function (_exports, _emberConcurrency, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    results: null,\n    resultsToggle: false,\n    adapterName: 'channels/shop/promo-codes',\n    filtersAdapterName: 'channels/shop/promo-codes/filters',\n    init() {\n      this.crud.addLists(this, ['filters/count', 'filters/criterias', 'channels/shop/promo-codes/lists/menu', 'discounts/types', 'statuses', 'toggles/yesNo', 'products/lists/tags']);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.loadTabTask.perform();\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const model = loadInstructions.getData('model');\n        if (model) {\n          this.display(loadInstructions.getData('model'));\n        } else {\n          const id = loadInstructions.getData('find.id');\n          const found = yield this.crud.findTask.perform({\n            appendPath: id\n          });\n          this.set('isOnLoad', true);\n          this.display(found);\n        }\n      } else {\n        this.set('isOnLoad', true);\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        const results = yield this.crud.fetchDefaultDataTask.perform({\n          adapterName,\n          filters,\n          listByTask: this.listByTask\n        });\n        this.set('results', results);\n        this.dash({}, results);\n      }\n    }),\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      match,\n      status,\n      byLatest,\n      filters,\n      query,\n      resultsProperty = 'results',\n      resultsToggle\n    } = {}, onHideDropdown) {\n      // when list by always set to page 1\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (status) {\n        if (!R.is(Array, status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (byLatest) {\n        query = '';\n        filters.setData('query', '');\n        filters.setData('sort', [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      this.set(resultsProperty, results);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }),\n    dash(model, results) {\n      this.set('filters.showResults', false);\n      const tab = this.tab;\n      if (_nventor.default.isNilOrEmpty(results) && !this.get('isOnLoad')) {\n        const filters = this.filters;\n        filters.setData('query', '');\n        this.loadTabTask.perform();\n      }\n      this.set('isOnLoad', false);\n      const subTabOptions = {\n        component: 'channels/shop/promo-codes/panels-dash'\n      };\n      this.tabsManager.reuseSubTab(tab, subTabOptions);\n    },\n    display(model, additionalOptions = {}) {\n      this.set('filters.showResults', false);\n      const panelOptions = {\n        component: 'channels/shop/promo-codes/panels-display',\n        model: model\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n    },\n    new(subTabOptions) {\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    actions: {\n      dash() {\n        this.dash();\n      },\n      display(model, options) {\n        if (model) {\n          this.display(model, options);\n        } else {\n          // if no model then display dash (when model has been deleted)\n          this.dash();\n        }\n      },\n      new(subTabOptions) {\n        // create tab within product tab\n        this.new(subTabOptions);\n      },\n      edit(model, additionalOptions) {\n        const tab = this.tab;\n        const panelOptions = {\n          component: 'channels/shop/promo-codes/panels-edit',\n          model: model\n        };\n        this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n      },\n      import(subTabOptions) {\n        const tab = this.tab;\n        this.tabsManager.replaceSubTab(tab, subTabOptions);\n      }\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"npciXl1I\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@placeholder\\\"],[\\\"channels/shop/promo-codes\\\",[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],\\\"promo codes\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"promo-codes\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-promo-codes-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"lists\\\",\\\"onEdit\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[24,[\\\"results\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"searchAdvancedTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/promo-codes/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/table-view/detail-row/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    allowedProductTagLists: Ember.computed('crud.lists.products-lists-tags', 'model._data.denyProductTags', function () {\n      const allProductTags = this.crud.lists['products-lists-tags'] || [];\n      const deniedProductTags = this?._data?.denyProductTags || [];\n      return R.reject(productTag => {\n        const productTagKey = productTag?._data?._key || '';\n        return R.includes(productTagKey, deniedProductTags);\n      })(allProductTags);\n    }),\n    deniedProductTagLists: Ember.computed('crud.lists.products-lists-tags', 'model._data.productTags', function () {\n      const allProductTags = this.crud.lists['products-lists-tags'] || [];\n      const allowedProductTags = this?._data?.productTags || [];\n      return R.reject(productTag => {\n        const productTagKey = productTag.getData('_key') || '';\n        return R.includes(productTagKey, allowedProductTags);\n      })(allProductTags);\n    })\n  });\n});","define(\"client/pods/components/channels/shop/promo-codes/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"e4qqyHA5\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"promo code\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date start\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date end\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"    \\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"type\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"discount\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"allow on sale items\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"discount for on sale items\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"usage limit\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"usage limit per person\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"minimum cart amount\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"allowed product tags\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"denied product tags\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFilters\\\"]]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isReferral\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"referral_reward\\\"],null],false],[0,\\\": \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isReferralEarn\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"referral_reward_for_referrer\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"referral_reward_for_recipient\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],\\\"YYYY-MM-DD\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"dateEndZ\\\"]],\\\"YYYY-MM-DD\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isReferral\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"referral\\\",\\\"referrerEmail\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-no-wrap\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"referral_reward_referrer\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"referral\\\",\\\"referrerEmail\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-no-wrap\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"referral_reward_recipient\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"referral\\\",\\\"recipientEmail\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"discounts-types\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"discountTypes\\\",\\\"amount\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"discountAmount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"discountRate\\\"]]],null],false],[0,\\\"%\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"discountTypes\\\",\\\"amount\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\"],[true,[24,[\\\"model\\\",\\\"_data\\\",\\\"allowOnSale\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"discountTypes\\\",\\\"amount\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"allowOnSale\\\"]],true],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"discountRateOnSale\\\"]]],null],false],[0,\\\"%\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"allowedShop\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isUnlimited\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"is unlimited\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"usageLimit\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isReferral\\\"]]],null,{\\\"statements\\\":[[0,\\\"        1\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"hasUsageLimitPerPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"usageLimitPerPerson\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"is unlimited\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"minRequiredAmount\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"minRequiredAmount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"allowedProductTagLists\\\"]],\\\"_data._key\\\",false,[24,[\\\"model\\\",\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"deniedProductTagLists\\\"]],\\\"_data._key\\\",false,[24,[\\\"model\\\",\\\"_data\\\",\\\"denyProductTags\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"iconOnly\\\",\\\"model\\\"],[true,[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-eye\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onDisplay\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isReferral\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-pen\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/promo-codes/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/qty-status/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopQtyStatus extends _component.default {}\n  _exports.default = ChannelsShopQtyStatus;\n});","define(\"client/pods/components/channels/shop/qty-status/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"k1zTXlav\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"number\\\",[[23,2,[\\\"_data\\\",\\\"calculatedTempQty\\\"]]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag has-text-primary\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"_data\\\",\\\"salesQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"real qty sold\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"calculate\\\",[[23,2,[\\\"_data\\\",\\\"salesQty\\\"]],\\\"-\\\",[23,2,[\\\"_data\\\",\\\"calculatedTempQty\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"on hold qty (checkout in progress)\\\"],null],false],[0,\\\": \\\"],[1,[23,2,[\\\"_data\\\",\\\"calculatedTempQty\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"_data\\\",\\\"salesQty\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/qty-status/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/panels-dash/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopRewardsPanelsDashComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ChannelsShopRewardsPanelsDashComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      const model = this.args.tab.model;\n      Ember.set(this, 'model', model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ChannelsShopRewardsPanelsDashRewardsDialogComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _class = class ChannelsShopRewardsPanelsDashRewardsDialogComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"server\", _descriptor5, this);\n      _initializerDefineProperty(this, \"date\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor7, this);\n      _initializerDefineProperty(this, \"useDefaultEmailMessage\", _descriptor8, this);\n      _initializerDefineProperty(this, \"emailMessage\", _descriptor9, this);\n      _initializerDefineProperty(this, \"emailSubject\", _descriptor0, this);\n      _initializerDefineProperty(this, \"toSendPoints\", _descriptor1, this);\n      _initializerDefineProperty(this, \"expiryTime\", _descriptor10, this);\n      _initializerDefineProperty(this, \"expiryPeriod\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isCompilingMessage\", _descriptor12, this);\n      _initializerDefineProperty(this, \"campaignFilters\", _descriptor13, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor14, this);\n      _initializerDefineProperty(this, \"shopName\", _descriptor15, this);\n      _initializerDefineProperty(this, \"rewardName\", _descriptor16, this);\n      _initializerDefineProperty(this, \"contactsData\", _descriptor17, this);\n      _initializerDefineProperty(this, \"countContactsData\", _descriptor18, this);\n      _initializerDefineProperty(this, \"rewardFilters\", _descriptor19, this);\n      _initializerDefineProperty(this, \"memberLevelsList\", _descriptor20, this);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters'\n      });\n      this.campaignFilters = campaignFilters;\n      const rewardFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/rewards/filters'\n      });\n      this.rewardFilters = rewardFilters;\n      const filters = this.search.setupFilters({\n        adapterName: 'contacts/rewards/recipients/filters'\n      });\n      this.filters = filters;\n      this.crud.addLists(this, ['channels/shop/rewards/types', 'channels/shop/rewards', 'channels/shop/rewards/periods', 'channels/shop/campaigns']);\n    }\n    afterLoadLists() {\n      let rewardLists = this.crud.lists['channels-shop-rewards'];\n      if (R.length(rewardLists) === 1) {\n        const selectedReward = _nventor.default.safeHeadOr({}, rewardLists);\n        const selectedRewardKey = selectedReward.getData('_key') || '';\n        this.filters.setData('rewardKey', selectedRewardKey);\n        this.filters.setData('rewardKeys', [selectedRewardKey]);\n        this.getRewardRecipients.perform();\n      }\n    }\n    get rewardTypes() {\n      const rewardTypesList = this.crud.lists['channels-shop-rewards-types'] || [];\n      const rewardTypesListClone = R.concat(rewardTypesList, []);\n      if (RA.isNotNilOrEmpty(rewardTypesListClone)) {\n        return R.pipe(R.filter(rewardType => {\n          const type = R.pathOr('', ['_data', 'value'])(rewardType);\n          return R.includes(type, [this.constants.rewardEvents.birthday, this.constants.rewardEvents.promotion, this.constants.rewardEvents.opening]);\n        }), R.sortWith([R.descend(R.path(['_data', 'value']))]))(rewardTypesListClone);\n      }\n      return [];\n    }\n    get totalCount() {\n      const results = this?.filters.get('results') || {};\n      const totalCount = results?.totalCount?._data || results?.totalCount || 0;\n      return totalCount;\n    }\n    get headerTabs() {\n      const results = this?.filters.get('results') || {};\n      return {\n        badge: this.totalCount,\n        label: 'to send'\n      };\n    }\n    get panelData() {\n      const results = this?.filters.get('results') || {};\n      if (RA.isNotNilOrEmpty(results)) {\n        return RA.defaultWhen(RA.isNilOrEmpty, results.contacts, results.contacts._data);\n      }\n      return [];\n    }\n    *getRewardRecipients() {\n      const filters = this.filters;\n      const rewardEvent = filters.getData('rewardEvent');\n      const rewardKeys = filters.getData('rewardKeys') || [];\n      let response = {};\n      if (RA.isNotNilOrEmpty(rewardKeys)) {\n        filters.setData('isSubscribed', false);\n        let appendPath = '';\n        if (rewardEvent === this.constants.rewardEvents.birthday) {\n          filters.setData('isBirthday', true);\n          appendPath = '/birthday';\n        }\n        if (rewardEvent === this.constants.rewardEvents.promotion || rewardEvent === this.constants.rewardEvents.opening) {\n          filters.setData('isBirthday', false);\n          appendPath = '/promotion';\n        }\n        response = yield this.crud.searchRecordsTask.perform({\n          adapterName: 'contacts/rewards/recipients',\n          appendPath,\n          filters,\n          rawResponse: true\n        });\n        filters.set('fullCount', R.propOr(0, 'totalCount')(response));\n      }\n    }\n    *sendRewardTask(onCloseDialogAction, args) {\n      const {\n        useDefaultEmailMessage,\n        toSendPoints,\n        expiryTime,\n        expiryPeriod,\n        subject,\n        message\n      } = args;\n      const filters = this.filters;\n      const rewardEvent = filters.get('_data.rewardEvent');\n      let appendPath = '';\n      if (rewardEvent === this.constants.rewardEvents.birthday) {\n        appendPath = '/birthday';\n      }\n      if (rewardEvent === this.constants.rewardEvents.promotion || rewardEvent === this.constants.rewardEvents.opening) {\n        if (!this.toSendPoints) {\n          window.alert(this.intl.t('no reward points set'));\n          return false;\n        }\n        if (!this.expiryTime) {\n          window.alert(this.intl.t('no reward expiry set'));\n          return false;\n        }\n        appendPath = '/promotion';\n      }\n      filters.setData('useDefaultEmailMessage', useDefaultEmailMessage);\n      filters.setData('toSendPoints', toSendPoints);\n      filters.setData('expiryTime', expiryTime);\n      filters.setData('expiryPeriod', expiryPeriod);\n      filters.setData('subject', subject);\n      filters.setData('message', message);\n      filters.setData('isNotification', false);\n      const filtersData = filters._data || {};\n\n      // const emailData = {\n      //   useDefaultEmailMessage,\n      //   toSendPoints,\n      //   expiryTime,\n      //   expiryPeriod,\n      //   rewardEvent: filters.get('_data.rewardEvent'),\n      //   subject,\n      //   message,\n      //   dateStart: filters.get('_data.dateStart'),\n      //   dateEnd: filters.get('_data.dateEnd'),\n      //   rewardKeys: filters.get('_data.rewardKeys'),\n      //   memberLevelIds: filters.get('_data.memberLevelIds'),\n      //   hasBirthdayFilter: filters.get('_data.hasBirthdayFilter'),\n      //   hasSubscriptionFilter: filters.get('_data.hasSubscriptionFilter'),\n      //   shopKeys: filters.get('_data.shopKeys'),\n      //   statuses: ['active'],\n      //   isNotification: false\n      // }\n\n      const response = yield this.server.call('PUT', `api/protected/contacts/rewards/send${appendPath}`, filtersData);\n      let sent = 0;\n      if (response.data) {\n        sent = R.length(response.data);\n      }\n      onCloseDialogAction();\n      window.alert('sent: ' + sent + ' rewards.');\n    }\n    next() {\n      this.isCompilingMessage = true;\n    }\n    back() {\n      this.isCompilingMessage = false;\n    }\n    onToggleSetCustomMessage() {\n      const useDefaultEmailMessage = this.useDefaultEmailMessage;\n      if (useDefaultEmailMessage) {\n        this.useDefaultEmailMessage = true;\n        this.emailSubject = '';\n      } else {\n        this.useDefaultEmailMessage = false;\n        this.emailSubject = '';\n      }\n    }\n    onSelectDateStart() {\n      const filters = this.filters;\n      const dateEnd = filters.getData('dateEnd');\n      if (RA.isNilOrEmpty(dateEnd)) {\n        filters.setData('dateEnd', this.date.formatDate(this.date.getEndOfDay(), 'YYYY-MM-DD'));\n      }\n      this.getRewardRecipients.perform();\n    }\n    onSelectDateEnd() {\n      const filters = this.filters;\n      const dateStart = filters.getData('dateStart');\n      if (RA.isNilOrEmpty(dateStart)) {\n        filters.setData('dateStart', this.date.formatDate(this.date.getToday(), 'YYYY-MM-DD'));\n      }\n      this.getRewardRecipients.perform();\n    }\n    onSelectRewardEvent(selectedItem) {\n      const rewardEvent = selectedItem._data.value;\n      if (rewardEvent !== this.constants.rewardEvents.birthday) {\n        this.filters.setData('dateStart', '');\n        this.filters.setData('dateEnd', '');\n      }\n      this.getRewardRecipients.perform();\n    }\n    selectCampaigns(shop) {\n      const filters = this.filters;\n      filters.setData('shopKeys', [shop.getData('_key')]);\n      this.getRewardRecipients.perform();\n    }\n    deselectCampaigns() {\n      const filters = this.filters;\n      filters.setData('shopKeys', []);\n      this.getRewardRecipients.perform();\n    }\n    selectRewards(reward) {\n      const filters = this.filters;\n      filters.setData('rewardKeys', [reward.getData('_key')]);\n      const memberLevelsList = R.pathOr([], ['_data', 'memberLevels'])(reward);\n      this.memberLevelsList = memberLevelsList;\n      this.getRewardRecipients.perform();\n    }\n    deselectRewards() {\n      const filters = this.filters;\n      filters.setData('rewardKeys', []);\n      filters.setData('memberLevelIds', []);\n      this.memberLevelsList = [];\n      this.getRewardRecipients.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"useDefaultEmailMessage\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"emailMessage\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"emailSubject\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"toSendPoints\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"expiryTime\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"expiryPeriod\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'days';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isCompilingMessage\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"campaignFilters\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"shopName\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"rewardName\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"contactsData\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"countContactsData\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"rewardFilters\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"memberLevelsList\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getRewardRecipients\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getRewardRecipients\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sendRewardTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"sendRewardTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"next\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"next\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"back\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleSetCustomMessage\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSetCustomMessage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectDateStart\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectDateStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectDateEnd\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectDateEnd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectRewardEvent\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectRewardEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectCampaigns\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"selectCampaigns\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectCampaigns\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectCampaigns\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectRewards\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"selectRewards\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectRewards\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectRewards\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/rewards-recipients/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, R, RA, _nventor) {\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 ChannelsShopRewardsPanelsDashRewardsDialogRewardsRecipientsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class ChannelsShopRewardsPanelsDashRewardsDialogRewardsRecipientsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"contact\", _descriptor3, this);\n    }\n    getBirthday(contact) {\n      const birthdays = [];\n      const contactBirthday = R.propOr('', 'birthday')(contact);\n      const memberBirthday = R.pathOr('', ['member', 'birthday'])(contact);\n      const createdDateZ = R.propOr('', 'createdDateZ')(contact);\n      if (RA.isNotNilOrEmpty(contactBirthday)) {\n        birthdays.push({\n          date: contactBirthday,\n          source: 'contact'\n        });\n      }\n      if (RA.isNotNilOrEmpty(memberBirthday)) {\n        birthdays.push({\n          date: memberBirthday,\n          source: 'member'\n        });\n      }\n      if (RA.isNilOrEmpty(birthdays)) {\n        birthdays.push({\n          date: createdDateZ,\n          source: 'created date'\n        });\n      }\n      return birthdays;\n    }\n    getEarnedPointsForBirthday(contact) {\n      return R.pipe(R.propOr([], 'contactRewardsData'), R.map(contactReward => {\n        return R.pipe(R.pathOr([], ['level', 'rewardsEvents']), R.find(R.propEq('type', this.constants.rewardEvents.birthday)), R.propOr(0, 'earnAmount'))(contactReward);\n      }), _nventor.default.safeHeadOr(0))(contact);\n    }\n    get birthdays() {\n      const contact = this.args.contact || {};\n      return this.getBirthday(contact);\n    }\n    get birthdayPoints() {\n      const contact = this.args.contact || {};\n      return this.getEarnedPointsForBirthday(contact);\n    }\n    get emails() {\n      const contact = this.args.contact || {};\n      return R.pipe(R.propOr([], 'details'), R.filter(R.propEq('type', 'email')))(contact);\n    }\n    get memberEmail() {\n      const contact = this.args.contact || {};\n      return R.pathOr('', ['member', 'email'])(contact);\n    }\n    get contactRewardsData() {\n      const contact = this.args.contact || {};\n      let contactRewardsData = contact.contactRewardsData || {};\n      if (RA.isArray(contactRewardsData)) {\n        return _nventor.default.safeHeadOr({}, contactRewardsData);\n      }\n      return contactRewardsData;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"contact\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/rewards-recipients/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CPudEC1/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"birthday\\\",\\\"@toSendPoints\\\",\\\"@contact\\\",\\\"@filters\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"name\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[23,0,[\\\"memberEmail\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"birthdays\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"li\\\",true],[8],[1,[28,\\\"date\\\",[[23,1,[\\\"date\\\"]]],null],false],[0,\\\" (\\\"],[1,[23,1,[\\\"source\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"memberId\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"member\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[1,[28,\\\"tt\\\",[\\\"not member\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[23,0,[\\\"contactRewardsData\\\",\\\"rewardData\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[23,0,[\\\"contactRewardsData\\\",\\\"level\\\",\\\"name\\\"]],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"contactRewardsData\\\",\\\"level\\\",\\\"points\\\"]]]]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"contactRewardsData\\\",\\\"pointsData\\\",\\\"validPoints\\\"]]]]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"contactRewardsData\\\",\\\"pointsData\\\",\\\"pendingPoints\\\"]]]]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"rewardEvent\\\"]],[23,0,[\\\"constants\\\",\\\"rewardEvents\\\",\\\"birthday\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"birthdayPoints\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"contactRewardsData\\\",\\\"isSubscribed\\\"]],true],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"on\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"contactRewardsData\\\",\\\"isSubscribed\\\"]],false],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"off\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"not yet set\\\"],null],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/rewards-recipients/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9no4HJVh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"contact\\\",\\\"onCloseDialogAction\\\",\\\"@disabled\\\",\\\"@sendLabel\\\",\\\"@onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@readonly\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog/modal-header\\\",[],[[\\\"@onClose\\\"],[[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"u-inline-flex\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"button\\\"],[11,\\\"disabled\\\",[23,0,[\\\"isDisabled\\\"]]],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"headerTabs\\\",\\\"label\\\"]]],null],false],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__badge\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"headerTabs\\\",\\\"badge\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"getRewardRecipients\\\",\\\"isRunning\\\"]],[23,0,[\\\"sendRewardTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isCompilingMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,7,[]],\\\"use default message in settings\\\",[23,0,[\\\"useDefaultEmailMessage\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetCustomMessage\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"rewardEvent\\\"]],[23,0,[\\\"constants\\\",\\\"rewardEvents\\\",\\\"promotion\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"points to send\\\",[23,0,[\\\"errors\\\"]],\\\"toSendPoints\\\",\\\"rewards\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,6,[]],[23,0,[\\\"translatedPlaceholder\\\"]],[23,0,[\\\"toSendPoints\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"reward event expiry\\\",[23,0,[\\\"errors\\\"]],\\\"expiryTime\\\",\\\"rewards\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,6,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"expiryTime\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@onChange\\\",\\\"@value\\\"],[true,[23,6,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-periods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"\\\",[23,0,[\\\"expiryPeriod\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"email subject\\\",[23,0,[\\\"errors\\\"]],\\\"subject\\\",\\\"rewards\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,6,[]],[23,0,[\\\"useDefaultEmailMessage\\\"]]],null],[23,0,[\\\"translatedPlaceholder\\\"]],[23,0,[\\\"emailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"email message\\\",[23,0,[\\\"errors\\\"]],\\\"message\\\",\\\"rewards\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[true,true,[28,\\\"or\\\",[[23,6,[]],[23,0,[\\\"useDefaultEmailMessage\\\"]]],null],[23,0,[\\\"emailMessage\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"filter\\\",\\\"rewards\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"reward event type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@inputPvtClassNames\\\"],[true,true,[23,0,[\\\"rewardTypes\\\"]],\\\"_data.value\\\",[23,6,[]],\\\"_data.label\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"rewardEvent\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectRewardEvent\\\"]]],null],\\\"table-form__input table-form__input--40\\\"]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"reward\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@inputPvtClassNames\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards\\\"]],\\\"_data._key\\\",[23,6,[]],\\\"_data.name\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"rewardKey\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectRewards\\\"]]],null],\\\"table-form__input table-form__input--40\\\"]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"rewardKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"member level\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\"],[[23,0,[\\\"isReadonly\\\"]],\\\"fas fa-level-up-alt\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@inputPvtClassNames\\\"],[true,false,[23,0,[\\\"memberLevelsList\\\"]],\\\"list-selector\\\",[23,0,[\\\"filters\\\"]],\\\"_data.memberLevelIds\\\",\\\"_data.memberLevelId\\\",\\\"_data.name\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true,true,[28,\\\"perform\\\",[[23,0,[\\\"getRewardRecipients\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"getRewardRecipients\\\"]]],null],\\\"table-form__input table-form__input--40\\\"]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"inputPvtClassNames\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"resultsItemComponent\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[false,[23,0,[\\\"campaignFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",\\\"table-form__input table-form__input--40\\\",[23,0,[\\\"shopName\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"shopKey\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"isReadonly\\\"]],\\\"channels/shop/campaigns/search-results\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"channels/shop/campaigns\\\",[23,0,[\\\"campaignFilters\\\"]]]]],[23,0,[\\\"shopName\\\"]]],null],[23,0,[\\\"selectCampaigns\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"deselectCampaigns\\\"]]],null]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"rewardEvent\\\"]],[23,0,[\\\"constants\\\",\\\"rewardEvents\\\",\\\"birthday\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"filter\\\",\\\"rewards\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"rewards-dialog__table-filter\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"date start\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"date end\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\"],[\\\"_data.dateStart\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"dateStart\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectDateStart\\\"]]],null],[28,\\\"or\\\",[[23,0,[\\\"isReadonly\\\"]],[28,\\\"not-eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"rewardEvent\\\"]],[23,0,[\\\"constants\\\",\\\"rewardEvents\\\",\\\"birthday\\\"]]],null]],null]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\"],[\\\"_data.dateEnd\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"dateEnd\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectDateEnd\\\"]]],null],[28,\\\"or\\\",[[23,0,[\\\"isReadonly\\\"]],[28,\\\"not-eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"rewardEvent\\\"]],[23,0,[\\\"constants\\\",\\\"rewardEvents\\\",\\\"birthday\\\"]]],null]],null]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"birthday\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"member\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"reward name\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member level\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"valid points\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"pending points\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points to send\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"mailing list\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"panelData\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"panelData\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"channels/shop/rewards/panels-dash/rewards-dialog/rewards-recipients\\\",[],[[\\\"@contact\\\",\\\"@filters\\\",\\\"@toSendPoints\\\"],[[23,1,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"toSendPoints\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"12\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"rewardKeys\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"i\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"no data\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"i\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"select reward program first\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@showPageNumbers\\\",\\\"@onPaginationTask\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[\\\"panelData\\\"]],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,8,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,0,[\\\"totalCount\\\"]],0],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isCompilingMessage\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,0,[\\\"totalCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"back to previous\\\",[23,3,[]],\\\"fas fa-arrow-circle-left\\\",[28,\\\"or\\\",[[23,0,[\\\"getRewardRecipients\\\",\\\"isRunning\\\"]],[23,0,[\\\"sendRewardTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"back\\\"]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@hasBadge\\\",\\\"@badge\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,4,[]],[23,3,[]],true,[23,0,[\\\"totalCount\\\"]],\\\"fas fa-mail-bulk\\\",[23,0,[\\\"sendRewardTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"sendRewardTask\\\"]],[23,5,[]],[28,\\\"hash\\\",null,[[\\\"useDefaultEmailMessage\\\",\\\"toSendPoints\\\",\\\"expiryTime\\\",\\\"expiryPeriod\\\",\\\"subject\\\",\\\"message\\\"],[[23,0,[\\\"useDefaultEmailMessage\\\"]],[23,0,[\\\"toSendPoints\\\"]],[23,0,[\\\"expiryTime\\\"]],[23,0,[\\\"expiryPeriod\\\"]],[23,0,[\\\"emailSubject\\\"]],[23,0,[\\\"emailMessage\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@hasBadge\\\",\\\"@badge\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"next\\\",[23,3,[]],\\\"fas fa-arrow-circle-right\\\",true,[23,0,[\\\"totalCount\\\"]],[28,\\\"or\\\",[[23,0,[\\\"getRewardRecipients\\\",\\\"isRunning\\\"]],[23,0,[\\\"sendRewardTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"next\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/panels-dash/rewards-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"M0Qe6vcS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onEdit\\\",\\\"@onDisplay\\\",\\\"@onPaginationTask\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onEdit\\\",\\\"@onDisplay\\\"],[[23,5,[]],\\\"rewards-dash\\\",\\\"channels/shop/rewards/table-view/detail-row\\\",[23,0,[\\\"model\\\"]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@showPageNumbers\\\",\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\"],[true,[23,6,[]],[23,0,[\\\"model\\\"]],[23,11,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@hasModalDialogHeader\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[false,\\\"fas fa-gift\\\",true,\\\"reward\\\",\\\"\\\",\\\"send reward manually\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"channels/shop/rewards/panels-dash/rewards-dialog\\\",[],[[\\\"@tab\\\",\\\"@sendLabel\\\",\\\"@onCloseDialogAction\\\",\\\"@errors\\\"],[[23,5,[]],\\\"send reward\\\",[23,4,[]],[23,12,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\\n  \\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/panels-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopRewardsPanelsDisplayComponent extends _component.default {}\n  _exports.default = ChannelsShopRewardsPanelsDisplayComponent;\n});","define(\"client/pods/components/channels/shop/rewards/panels-display/sub-panels-details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopRewardsPanelsDisplaySubPanelsDetailsComponent extends _component.default {}\n  _exports.default = ChannelsShopRewardsPanelsDisplaySubPanelsDetailsComponent;\n});","define(\"client/pods/components/channels/shop/rewards/panels-display/sub-panels-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OTnMPFvi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[5,\\\"channels/shop/rewards/rewards-editor/details-editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,1,[]],true]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/panels-display/sub-panels-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/panels-display/sub-panels-emails/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopRewardsPanelsDisplaySubPanelsEmailsComponent extends _component.default {}\n  _exports.default = ChannelsShopRewardsPanelsDisplaySubPanelsEmailsComponent;\n});","define(\"client/pods/components/channels/shop/rewards/panels-display/sub-panels-emails/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Sfjt6AKB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[5,\\\"channels/shop/rewards/rewards-editor/emails-editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,1,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/panels-display/sub-panels-emails/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/panels-display/sub-panels-member-levels/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopRewardsPanelsDisplaySubPanelsDetailsComponent extends _component.default {}\n  _exports.default = ChannelsShopRewardsPanelsDisplaySubPanelsDetailsComponent;\n});","define(\"client/pods/components/channels/shop/rewards/panels-display/sub-panels-member-levels/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Lbn0dgXD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[5,\\\"channels/shop/rewards/rewards-editor/member-levels-editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,1,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/panels-display/sub-panels-member-levels/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KWs1Fbqc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@errors\\\",\\\"@onEdit\\\"],\\\"statements\\\":[[5,\\\"channels/shop/rewards/rewards-editor\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@onEdit\\\"],[[23,1,[]],[23,1,[\\\"model\\\"]],[23,2,[]],false,false,[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/panels-edit/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopRewardsPanelsEditComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class ChannelsShopRewardsPanelsEditComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/rewards');\n      const model = this.args.tab.model;\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model\n      });\n      Ember.set(this, 'dirty', dirty);\n    }\n    getActiveSubTab() {\n      const activeSubTab = this.tabsManager.getActiveSubTab(this.args.tab);\n      return {\n        loadInstructions: {\n          component: activeSubTab.get('component')\n        }\n      };\n    }\n    _display(model) {\n      const tabOptions = this.getActiveSubTab();\n      this.onDisplay(model, tabOptions);\n    }\n    afterCancelEditing(original) {\n      this._display(original);\n    }\n    afterUpdateRecordTask(model) {\n      this._display(model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/rewards/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AQwixxl6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@onDisplay\\\",\\\"@onDash\\\",\\\"@onCancel\\\"],\\\"statements\\\":[[5,\\\"channels/shop/rewards/rewards-editor\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isRunning\\\",\\\"@onSaveTask\\\",\\\"@onRemoveRecordTask\\\",\\\"@onCancel\\\"],[[23,1,[]],[23,0,[\\\"dirty\\\"]],[23,0,[\\\"errors\\\"]],true,false,[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"onAfterOptions\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"dirty\\\"]],[23,2,[]],[28,\\\"hash\\\",null,[[\\\"tab\\\"],[[23,1,[]]]]],[23,1,[]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\",\\\"onAfterOptions\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"dirty\\\"]],true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"tab\\\"],[[23,1,[]]]]],[23,1,[]]]]]],null],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/panels-new/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopRewardsPanelsNewComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class ChannelsShopRewardsPanelsNewComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/rewards');\n      const model = this.crud.setupNewRecord({\n        adapterName: this.adapterName\n      });\n      model.addMemberLevel();\n      Ember.set(this, 'model', model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/rewards/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cPFTqTB1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@onDisplay\\\",\\\"@onCancel\\\"],\\\"statements\\\":[[5,\\\"channels/shop/rewards/rewards-editor\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isRunning\\\",\\\"@onSaveTask\\\",\\\"@onCancel\\\"],[[23,1,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"errors\\\"]],true,true,[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"onAfterOptions\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"model\\\"]],[23,2,[]],[28,\\\"hash\\\",null,[[\\\"tab\\\"],[[23,1,[]]]]],[23,1,[]]]]]],null],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, _component, R_, _nventor) {\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;\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 ChannelsShopRewardsRewardsEditorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._action, _class = class ChannelsShopRewardsRewardsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      this.crud.addLists(this, ['channels/shop/rewards/lists/sub-panels-editor', 'channels/shop/rewards/lists/reward-event-types']);\n    }\n    get isReadonly() {\n      if (this.args.isEditing) {\n        return false;\n      }\n      return true;\n    }\n    get isDisabled() {\n      if (this.args.isEditing) {\n        return false;\n      }\n      return true;\n    }\n    editPanel() {\n      const activeSubTab = this.tabsManager.getActiveSubTab(this.args.tab);\n      const tabOptions = {\n        loadInstructions: {\n          component: activeSubTab.get('component')\n        }\n      };\n      this.args.onEdit(this.args.model, tabOptions);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"editPanel\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"editPanel\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/details-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ChannelsShopRewardsRewardsEditorDetailsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._action, _dec4 = Ember._action, _class = class ChannelsShopRewardsRewardsEditorDetailsEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n    }\n    addItemEvent(model) {\n      model.addItemEvent();\n    }\n    removeItemEvent(model, itemEvent) {\n      const itemEvents = model.getData('itemEvents');\n      itemEvents.removeObject(itemEvent);\n    }\n    get memberLevelsList() {\n      const model = this.args.model;\n      const memberLevels = model.getData('memberLevels') || [];\n      return memberLevels;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"addItemEvent\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"addItemEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeItemEvent\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"removeItemEvent\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/details-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"br8hJRwg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"details\\\",false,[28,\\\"if\\\",[[23,9,[]],[23,9,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"rewards\\\",[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]]]]]],null],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,10,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,7,[]],\\\"basicInformation_group\\\",[23,1,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\"],[\\\"status\\\",[23,1,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,4,[\\\"statusClass\\\"]],[23,3,[]],[23,3,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,4,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"reward name\\\",true,\\\"name\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,3,[]],true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,4,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"allow track reward for non member\\\",true,\\\"isAllowTrackRewardForNonMember\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"isAllowTrackRewardForNonMember\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"expiring reward points notification\\\",\\\"hasExpirePointsNotification\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"hasExpirePointsNotification\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"hasExpirePointsNotification\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"expirePointsTime\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"expirePointsTime\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@onChange\\\",\\\"@value\\\"],[true,[23,3,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-periods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"\\\",[23,4,[\\\"_data\\\",\\\"expirePointsPeriod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"points become valid after number of days\\\",\\\"startTime\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"startTime\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@onChange\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-periods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"\\\",[23,4,[\\\"_data\\\",\\\"startPeriod\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,10,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,7,[]],\\\"websiteInformation_group\\\",[23,1,[]],\\\"website\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInputClassNames\\\",\\\"@formInitData\\\"],[\\\"website\\\",\\\"websiteKeys\\\",\\\"u-display-block\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\"],[[23,3,[]],\\\"fas fa-tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@translate\\\",\\\"@adapterName\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[true,false,\\\"websites\\\",\\\"websites\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites\\\"]],\\\"list-selector\\\",[23,4,[]],\\\"_data.websiteKeys\\\",\\\"_data._key\\\",\\\"_data.name\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites\\\"]],false,[23,4,[\\\"_data\\\",\\\"websiteKeys\\\"]],\\\"_data._key\\\",\\\"_data.name\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/rewards-editor/details-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/emails-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopRewardsRewardsEditorEmailsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ChannelsShopRewardsRewardsEditorEmailsEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/emails-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/erG+m9q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@formGroupClassNames\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"emails\\\",false,[28,\\\"if\\\",[[23,6,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"rewards\\\",[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]]],null],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"rewardsEmail_group\\\",[23,1,[]],\\\"email settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"from email name\\\",\\\"emailFromName\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,8,[]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,9,[\\\"_data\\\",\\\"emailFromName\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"from email address\\\",\\\"emailFromAddress\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,8,[]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,9,[\\\"_data\\\",\\\"emailFromAddress\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email signature\\\",\\\"emailSignature\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,4,[]],true,true,[23,8,[]],[23,9,[\\\"_data\\\",\\\"emailSignature\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"birthdayEmail_group\\\",[23,1,[]],\\\"birthday email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email subject\\\",\\\"birthdayEmailSubject\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"birthdayEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email message\\\",\\\"birthdayEmailMessage\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,4,[]],true,true,[23,8,[]],[23,9,[\\\"_data\\\",\\\"birthdayEmailMessage\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"signupEmail_group\\\",[23,1,[]],\\\"signup reward email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email subject\\\",\\\"signupEmailSubject\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"signupEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email message\\\",false,\\\"signupEmailMessage\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@options\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[23,4,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],true,true,[23,8,[]],[23,9,[\\\"_data\\\",\\\"signupEmailMessage\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"levelAdjusmentEmail_group\\\",[23,1,[]],\\\"member level adjustment email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email subject\\\",\\\"memberLevelAdjustmentEmailSubject\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"memberLevelAdjustmentEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email message\\\",false,\\\"memberLevelAdjustmentEmailMessage\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,4,[]],true,true,[23,8,[]],[23,9,[\\\"_data\\\",\\\"memberLevelAdjustmentEmailMessage\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"pointsAdjusmentEmail_group\\\",[23,1,[]],\\\"points adjustment email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email subject\\\",\\\"pointsAdjustmentEmailSubject\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"pointsAdjustmentEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email message\\\",false,\\\"pointsAdjustmentEmailMessage\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,4,[]],true,true,[23,8,[]],[23,9,[\\\"_data\\\",\\\"pointsAdjustmentEmailMessage\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\",\\\"points-to-adjust\\\",\\\"points-to-adjust-expiry-date\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"expirePointsEmail_group\\\",[23,1,[]],\\\"expiring reward points notification email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email subject\\\",\\\"expiredPointsNotificationEmailSubject\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"expiredPointsNotificationEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email message\\\",false,\\\"expiredPointsNotificationEmailMessage\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,4,[]],true,true,[23,8,[]],[23,9,[\\\"_data\\\",\\\"expiredPointsNotificationEmailMessage\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"referralEmail_group\\\",[23,1,[]],\\\"referral email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email subject for recipient\\\",\\\"referralEmailSubjectForRecipient\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"referralEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email message for recipient\\\",false,\\\"referralEmailMessageForRecipient\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,4,[]],true,true,[23,8,[]],[23,9,[\\\"_data\\\",\\\"referralEmailMessageForRecipient\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email subject for referrer\\\",\\\"referralEmailSubjectForReferrer\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,9,[\\\"_data\\\",\\\"referralEmailSubjectForReferrer\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email message for referrer\\\",false,\\\"referralEmailMessageForReferrer\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,4,[]],true,true,[23,8,[]],[23,9,[\\\"_data\\\",\\\"referralEmailMessageForReferrer\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/rewards-editor/emails-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, R, RA, R_) {\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;\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 ChannelsShopRewardsRewardsEditorMemberLevelsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class ChannelsShopRewardsRewardsEditorMemberLevelsEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"earningTypeList\", _descriptor3, this);\n    }\n    /**\n     * Append new member level Model to reward Model\n     * @param {Model} reward - reward Model\n     * @returns {Void}\n     */\n    addMemberLevelAction(reward) {\n      reward.addMemberLevel();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"earningTypeList\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R_.dotPathOr([], 'crud.lists.channels-shop-rewards-earnings')(this);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addMemberLevelAction\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"addMemberLevelAction\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, R, RA, R_) {\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;\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 ChannelsShopRewardsRewardsEditorMemberLevelsEditorMemberLevelEditorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember.computed('args.memberLevelIndex', 'crud.lists.channels-shop-rewards-lists-reward-event-types.[]'), _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _class = class ChannelsShopRewardsRewardsEditorMemberLevelsEditorMemberLevelEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"earningTypeList\", _descriptor4, this);\n      this.crud.addLists(this, ['channels/shop/rewards/lists/reward-event-types']);\n\n      // when editing\n      if (!this.args?.isReadonly) {\n        const memberLevel = this.args?.memberLevel;\n        const rewardsEvents = memberLevel?._data?.rewardsEvents || [];\n        const hasRewardEventForOrder = R.find(R.pathEq(['_data', 'type'], 'order'))(rewardsEvents);\n        if (!hasRewardEventForOrder) {\n          memberLevel.addRewardEvent({\n            type: 'order',\n            earnType: 'rate'\n          });\n        }\n      }\n    }\n    get hasRewardForSpecificProductTags() {\n      const settings = this.args?.model?.settings || {};\n      if (RA.isNotNilOrEmpty(settings)) {\n        const betaHasRewardForSpecificProductTags = settings.getProp('beta.hasRewardForSpecificProductTags') || false;\n        const featureHasRewardForSpecificProductTags = settings.getProp('features.hasRewardForSpecificProductTags') || false;\n        return betaHasRewardForSpecificProductTags && featureHasRewardForSpecificProductTags;\n      }\n      return false;\n    }\n    get rewardEventList() {\n      const rewardEventTypes = this.crud.lists['channels-shop-rewards-lists-reward-event-types'] || [];\n      const memberLevelIndex = this.args?.memberLevelIndex || 0;\n      if (memberLevelIndex === 0) {\n        return rewardEventTypes;\n      }\n      return R.reject(R.pathEq(['_data', 'value'], 'signup'))(rewardEventTypes);\n    }\n\n    /**\n     * Remove member level Model from reward Model\n     * @param {Model} reward - reward Model\n     * @param {Model} memberLevel - member level Model\n     * @returns {Void}\n     */\n    onSubmitRemoveMemberLevel(reward, memberLevel) {\n      const memberLevelList = reward.get('_data.memberLevels');\n      memberLevelList.removeObject(memberLevel);\n    }\n    addRewardEvent(option) {\n      const type = option?._data?.value;\n      const memberLevel = this.args?.memberLevel || {};\n      const hasNoSelectedRewardEvent = R.pipe(R.pathOr([], ['_data', 'rewardsEvents']), R.find(R.pathEq(['_data', 'type'], type)), RA.isNilOrEmpty)(memberLevel);\n      if (hasNoSelectedRewardEvent) {\n        let earnType = this.constants.rewardEarningTypes.amount;\n        if (type === 'order') {\n          earnType = this.constants.rewardEarningTypes.rate;\n        }\n        memberLevel.addRewardEvent({\n          type,\n          earnType\n        });\n      }\n    }\n    removeRewardEvent(option) {\n      const type = option?._data?.value;\n      const memberLevel = this.args?.memberLevel || {};\n      const rewardEvents = memberLevel?._data?.rewardsEvents || [];\n      const selectedRewardEvent = R.find(R.pathEq(['_data', 'type'], type))(rewardEvents);\n      if (RA.isNotNilOrEmpty(selectedRewardEvent)) {\n        rewardEvents.removeObject(selectedRewardEvent);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"earningTypeList\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R_.dotPathOr([], 'crud.lists.channels-shop-rewards-earnings')(this);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"rewardEventList\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"rewardEventList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitRemoveMemberLevel\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitRemoveMemberLevel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addRewardEvent\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"addRewardEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeRewardEvent\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"removeRewardEvent\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/reward-event-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, R, RA, R_) {\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;\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 ChannelsShopRewardsRewardsEditorMemberLevelsEditorMemberLevelEditorRewardEventEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('application'), _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class ChannelsShopRewardsRewardsEditorMemberLevelsEditorMemberLevelEditorRewardEventEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"earningTypeList\", _descriptor4, this);\n    }\n    get isBaseMemberLevel() {\n      // lowest memberLevel\n      const memberLevel = this.args?.memberLevel || {};\n      const memberLevelId = memberLevel.getData('memberLevelId') || '';\n      const model = this.args?.model || {};\n      const memberLevels = model.getData('memberLevels') || [];\n\n      // const memberLevelIndex = this.args.memberLevelIndex || 0\n      // if (memberLevelIndex > 1) {\n      //   return false\n      // }\n\n      return R.pipe(R.find(memberLevel => {\n        const memberLevelProductTags = memberLevel.getData('productTags') || [];\n        const requiredLevelPoints = Number(memberLevel?.currentRequiredLevelPoints) || 0;\n        const rewardMemberLevelId = memberLevel.getData('memberLevelId');\n        const isBaseMemberLevel = RA.isNilOrEmpty(memberLevelProductTags) && requiredLevelPoints === 0 && rewardMemberLevelId === memberLevelId;\n        if (isBaseMemberLevel) {\n          return true;\n        }\n        return false;\n      }), RA.isNotNilOrEmpty)(memberLevels);\n    }\n\n    /**\n     * Remove reward event Model from member level Model\n     * @param {Model} memberLevel - member level Model\n     * @param {Model} rewardEvent - reward event Model\n     * @returns {Void}\n     */\n    onSubmitRemoveRewardEvent(memberLevel, rewardEvent) {\n      const rewardEventList = memberLevel.get('_data.rewardsEvents');\n      rewardEventList.removeObject(rewardEvent);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"earningTypeList\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R_.dotPathOr([], 'crud.lists.channels-shop-rewards-earnings')(this);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSubmitRemoveRewardEvent\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitRemoveRewardEvent\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/reward-event-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1PA7XK8F\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@rewardEvent\\\",\\\"@tab\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@contentClassNames\\\",\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@isAccordian\\\"],[\\\"form-group__content-container--u-full-width\\\",[23,3,[]],\\\"rewardEvents_group\\\",[23,4,[]],[29,[\\\"reward_\\\",[23,2,[\\\"_data\\\",\\\"type\\\"]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"referral\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"referral_message\\\",\\\"memberLevels.rewardsEvents.referralDescription\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"referralDescription\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\"],[\\\"reward event expiry\\\",[23,4,[]],\\\"expiry\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"expiryTime\\\"]],\\\"memberLevels.rewardsEvents.expiryTime\\\"]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\"],[true,[23,1,[]],[23,1,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-periods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",true,[23,2,[\\\"_data\\\",\\\"expiryPeriod\\\"]],\\\"memberLevels.rewardsEvents.expiryPeriod\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\\n    \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"referral_referrer_group\\\",[23,4,[]],\\\"referral_reward_referrer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"referral_reward_limit per day\\\",\\\"memberLevels.rewardsEvents.limitPerDay\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"limitPerDay\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"reward event earn as promo code\\\",\\\"memberLevels.rewardsEvents.isEarnAsPromoCode\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"isEarnAsPromoCode\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[\\\"_data\\\",\\\"isEarnAsPromoCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\"],[\\\"reward_event_referral\\\",[23,4,[]],\\\"reward_event_referral\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@context\\\",\\\"@translate\\\"],[true,[23,1,[]],[23,1,[]],[23,0,[\\\"earningTypeList\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"earnType\\\"]],\\\"memberLevels.rewardsEvents.earnType\\\",true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"earnType\\\"]],[23,0,[\\\"constants\\\",\\\"rewardEarningTypes\\\",\\\"rate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@context\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"earnRate\\\"]],\\\"%\\\",\\\"memberLevels.rewardsEvents.earnRate\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"earnAmount\\\"]],\\\"memberLevels.rewardsEvents.earnAmount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[\\\"_data\\\",\\\"isEarnAsPromoCode\\\"]],[23,0,[\\\"isBaseMemberLevel\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"referralPromoCode_group\\\",[23,4,[]],\\\"promo code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\"],[\\\"discount\\\",[23,4,[]],\\\"discount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"rewardType\\\"]],\\\"rate\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@context\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"rewardRate\\\"]],\\\"%\\\",\\\"memberLevels.rewardsEvents.rewardRate\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"rewardAmount\\\"]],\\\"memberLevels.rewardsEvents.rewardAmount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@context\\\"],[true,[23,1,[]],[23,1,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"discounts-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"rewardType\\\"]],\\\"memberLevels.rewardsEvents.rewardType\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"rewardType\\\"]],\\\"rate\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"allow discount for on sale items\\\",\\\"memberLevels.rewardsEvents.allowOnSale\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"allowOnSale\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"allowOnSale\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\"],[\\\"discount rate for on sale items\\\",\\\"memberLevels.rewardsEvents.rewardRateOnSale\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@suffix\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"rewardRateOnSale\\\"]],\\\"%\\\"]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"minimum spend requirement\\\",\\\"memberLevels.rewardsEvents.spendRequirementAmount\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"spendRequirementAmount\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"allowed product tags\\\",\\\"memberLevels.rewardsEvents.productTags\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,1,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,2,[]],true,\\\"_data._key\\\",false,\\\"_data.productTags\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,2,[\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"memberLevels.rewardsEvents.denyProductTags\\\",\\\"denied product tags\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,1,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,2,[]],true,\\\"_data._key\\\",false,\\\"_data.denyProductTags\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,2,[\\\"_data\\\",\\\"denyProductTags\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"reward event status\\\",\\\"memberLevels.rewardsEvents.status\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@classNames\\\",\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[\\\"u-width-important-100\\\",true,true,[23,2,[\\\"statusClass\\\"]],[23,1,[]],[23,1,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],[28,\\\"concat\\\",[\\\"rewardEventsEarn_\\\",[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"_group\\\"],null],[23,4,[]],\\\"reward event earn\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"order\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"reward event allow to earn points\\\",\\\"memberLevels.rewardsEvents.isAllowToEarnPoints\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"isAllowToEarnPoints\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"reward event requirement\\\",\\\"memberLevels.rewardsEvents.earnRequirementValue\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,1,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"earnRequirementValue\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@readonly\\\",\\\"@disabled\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-requirements\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"earnRequirementType\\\"]],[23,1,[]],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\"],[[28,\\\"concat\\\",[\\\"reward_event_\\\",[23,2,[\\\"_data\\\",\\\"type\\\"]]],null],[23,4,[]],[28,\\\"concat\\\",[\\\"reward_event_\\\",[23,2,[\\\"_data\\\",\\\"type\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[28,\\\"or\\\",[[23,1,[]],[28,\\\"not-eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constants\\\",\\\"rewardEvents\\\",\\\"order\\\"]]],null]],null],[28,\\\"or\\\",[[23,1,[]],[28,\\\"not-eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constants\\\",\\\"rewardEvents\\\",\\\"order\\\"]]],null]],null],true,[23,0,[\\\"earningTypeList\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"earnType\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"earnType\\\"]],[23,0,[\\\"constants\\\",\\\"rewardEarningTypes\\\",\\\"rate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@suffix\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],\\\"%\\\",[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"earnRate\\\"]],\\\"memberLevels.rewardsEvents.earnRate\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"earnAmount\\\"]],\\\"memberLevels.rewardsEvents.earnAmount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"reward event expiry\\\",\\\"memberLevels.rewardsEvents.expiryTime\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,1,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"expiryTime\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@onChange\\\",\\\"@value\\\"],[true,[23,1,[]],[23,1,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-periods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"\\\",[23,2,[\\\"_data\\\",\\\"expiryPeriod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"signup\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"notes\\\",\\\"memberLevels.rewardsEvents.messageSuccess\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,1,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"messageSuccess\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"order\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],[28,\\\"concat\\\",[\\\"rewardEventsSpend_\\\",[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"_group\\\"],null],[23,4,[]],\\\"reward event spend\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"minimum spend requirement\\\",\\\"memberLevels.rewardsEvents.spendRequirementAmount\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,1,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"spendRequirementAmount\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\"],[\\\"reward event max deduction\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@readonly\\\",\\\"@disabled\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-deductions\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"spendMaximumType\\\"]],[23,1,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"spendMaximumType\\\"]],[23,0,[\\\"constants\\\",\\\"rewardMaxDeductionType\\\",\\\"rate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@suffix\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],\\\"%\\\",[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"spendMaximumRate\\\"]],\\\"memberLevels.rewardsEvents.spendMaximumRate\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"spendMaximumAmount\\\"]],\\\"memberLevels.rewardsEvents.spendMaximumAmount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"reward event allow with promo code\\\",\\\"memberLevels.rewardsEvents.allowWithPromoCode\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"allowWithPromoCode\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/reward-event-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZDej3rNF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"rewardEvent\\\",\\\"index\\\",\\\"@memberLevel\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@memberLevelIndex\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@index\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@contentClassNames\\\",\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@isAccordian\\\"],[\\\"form-group__content-container--u-full-width\\\",[23,8,[]],\\\"memberLevels_group\\\",[23,7,[]],[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"name\\\"]],[23,3,[\\\"_data\\\",\\\"name\\\"]],[28,\\\"tt\\\",[\\\"new member level\\\"],null]],null],false,true]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@model\\\",\\\"@formInitData\\\"],[\\\"member level name\\\",true,\\\"memberLevels.name\\\",[23,4,[]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,5,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,3,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@model\\\",\\\"@formInitData\\\"],[\\\"member level description\\\",true,\\\"memberLevels.description\\\",[23,4,[]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,5,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,3,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@model\\\",\\\"@formInitData\\\"],[\\\"member level order value\\\",true,\\\"memberLevels.requiredLevelPoints\\\",[23,4,[]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,5,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,3,[\\\"_data\\\",\\\"requiredLevelPoints\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"gt\\\",[[23,3,[\\\"currentRequiredLevelPoints\\\"]],0],null],[23,3,[\\\"_data\\\",\\\"productTags\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@model\\\",\\\"@formInitData\\\"],[\\\"member level expiry time\\\",true,\\\"memberLevels.expiryTime\\\",[23,4,[]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"isNeverExpire\\\"]],[23,5,[]]],null],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,3,[\\\"_data\\\",\\\"expiryTime\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@onChange\\\",\\\"@value\\\"],[true,[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"isNeverExpire\\\"]],[23,5,[]]],null],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-periods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"\\\",[23,3,[\\\"_data\\\",\\\"expiryPeriod\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"member level status\\\",\\\"memberLevels.status\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,3,[\\\"statusClass\\\"]],true,[23,5,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@multiSelect\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,\\\"list-selector--horizontal\\\",false,[23,5,[]],[23,0,[\\\"rewardEventList\\\"]],[23,3,[]],\\\"selectedRewardEvents\\\",[28,\\\"fn\\\",[[23,0,[\\\"addRewardEvent\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"removeRewardEvent\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"rewardsEvents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/reward-event-editor\\\",[],[[\\\"@memberLevel\\\",\\\"@memberLevelIndex\\\",\\\"@rewardEvent\\\",\\\"@model\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@index\\\"],[[23,3,[]],[23,6,[]],[23,1,[]],[23,4,[]],[23,7,[]],[23,5,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-end\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,4,[\\\"_data\\\",\\\"memberLevels\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSubmitRemoveMemberLevel\\\"]],[23,4,[]],[23,3,[]]],null],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,5,[]],[28,\\\"isLast\\\",[[23,4,[\\\"_data\\\",\\\"memberLevels\\\"]],[23,9,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,4,[]],\\\"_data.memberLevels\\\",\\\"_data.index\\\",[23,3,[]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,9,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,4,[]],\\\"_data.memberLevels\\\",\\\"_data.index\\\",[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"J140ngKr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"memberLevel\\\",\\\"memberLevelIndex\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"member levels\\\",[28,\\\"if\\\",[[23,10,[]],[23,10,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"rewards\\\",[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]]]]]],null],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"member_levels_group\\\",[23,1,[]],[23,8,[]],\\\"member levels\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"memberLevels\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/rewards/rewards-editor/member-levels-editor/member-level-editor\\\",[],[[\\\"@memberLevel\\\",\\\"@memberLevelIndex\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@formInitData\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n    \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"memberLevels\\\"]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[23,4,[]],\\\"new member level\\\",\\\"fas fa-plus\\\",[28,\\\"fn\\\",[[23,0,[\\\"addMemberLevelAction\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/rewards-editor/member-levels-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/rewards-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tGrf6L/s\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@isReadonly\\\",\\\"@isRunning\\\",\\\"@onRemoveRecordTask\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onSaveTask\\\",\\\"@isEditing\\\",\\\"@tab\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,6,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,10,[]],[23,10,[\\\"subTabs\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-lists-sub-panels-editor\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,10,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,9,[]],true],null],[28,\\\"eq\\\",[[23,5,[]],false],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"edit\\\"],null],false],[0,\\\": \\\"],[1,[23,6,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,9,[]],true],null],[28,\\\"eq\\\",[[23,5,[]],true],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"new\\\"],null],false],[0,\\\": \\\"],[1,[23,6,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,6,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,10,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"model\\\",\\\"errors\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"tab\\\",\\\"parentTab\\\",\\\"resourceList\\\"],[[23,6,[]],[23,11,[]],[23,9,[]],[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"isDisabled\\\"]],[23,1,[]],[23,10,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-lists-sub-panels-editor\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@model\\\",\\\"@hasErrors\\\",\\\"@errors\\\"],[[23,6,[]],[23,0,[\\\"hasErrors\\\"]],[23,11,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@typeToDelete\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[23,2,[]],[23,3,[]],[28,\\\"fn\\\",[[23,7,[]],[23,6,[]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"disabled\\\"]],[23,3,[]],[23,8,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"edit\\\",\\\"u-btn\\\",[28,\\\"action\\\",[[23,0,[]],\\\"editPanel\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/rewards-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/search-filters/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopRewardsSearchFiltersComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopRewardsSearchFiltersComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _defineProperty(this, \"tagName\", '');\n      this.crud.addLists(this, ['channels/shop/rewards/lists/filters/search', 'channels/shop/rewards/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/rewards/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oZVmmNHy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[5,\\\"lists/list-btn\\\",[],[[\\\"@list\\\",\\\"@icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"latest\\\",[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onListByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"byLatest\\\",\\\"filters\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-cell\\\",[],[[\\\"@label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-cell\\\",[],[[\\\"@label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-cell\\\",[],[[\\\"@label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-lists-filters-search\\\"]],\\\"list-selector\\\",[23,0,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-lists-filters-status\\\"]],\\\"list-selector\\\",[23,0,[\\\"filters\\\"]],\\\"_data.statuses\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/search-results/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopRewardsSearchResultsComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopRewardsSearchResultsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _defineProperty(this, \"tagName\", 'div');\n      this.crud.addLists(this, ['statuses']);\n    }\n\n    /**\n     * Add class for active/inactive status tags\n     * @returns {String} className\n     */\n    get statusTagClassName() {\n      const rewardStatus = this.args.result._data.status;\n      if (rewardStatus === this.constants.status.active) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/rewards/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"3Suk4U3g\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"highlight\\\",[[23,0,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"highlight\\\",[[23,0,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]],[23,0,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,0,[\\\"result\\\",\\\"_data\\\",\\\"statuses\\\"]]]]],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/tab-container/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _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 ChannelsShopRewardsTabContainerComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class ChannelsShopRewardsTabContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"listsIsLoaded\", _descriptor7, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/rewards');\n      _defineProperty(this, \"filtersAdapterName\", 'channels/shop/rewards/filters');\n      this.crud.addLists(this, ['statuses', 'channels/shop/rewards/deductions', 'channels/shop/rewards/earnings', 'channels/shop/rewards/periods', 'channels/shop/rewards/requirements', 'channels/shop/rewards/types', 'channels/shop/rewards/lists/menu', 'channels/shop/rewards/lists/sub-panels', 'channels/shop/rewards/lists/sub-panels-editor', 'discounts/types', 'websites', 'products/lists/tags']);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      Ember.set(this, 'filters', filters);\n    }\n    afterLoadLists() {\n      this.fetchAndDisplayTask.perform();\n    }\n    *fetchAndDisplayTask() {\n      const filters = this.filters;\n      const model = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        query: '',\n        filters\n      });\n      Ember.set(this, 'results', model);\n      this.dashFn(model);\n    }\n    dashFn(model, additionalOptions) {\n      const subTabOptions = {\n        component: 'channels/shop/rewards/panels-dash',\n        model: model\n      };\n      if (!model) {\n        const filters = this.filters;\n        filters.setData('query', '');\n        this.fetchAndDisplayTask.perform();\n      }\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions, additionalOptions);\n    }\n    displayFn(model, additionalOptions) {\n      const subTabOptions = {\n        component: 'channels/shop/rewards/panels-display',\n        model: model\n      };\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions, additionalOptions);\n    }\n    editFn(model, additionalOptions) {\n      const subTabOptions = {\n        component: 'channels/shop/rewards/panels-edit',\n        model: model\n      };\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions, additionalOptions);\n    }\n    dash() {\n      this.dashFn();\n    }\n    display(model) {\n      if (model) {\n        this.displayFn(model);\n      } else {\n        this.dashFn();\n      }\n    }\n    edit(model, additionalOptions) {\n      this.editFn(model, additionalOptions);\n    }\n    new() {\n      const subTabOptions = {\n        component: 'channels/shop/rewards/panels-new'\n      };\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"listsIsLoaded\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchAndDisplayTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchAndDisplayTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dash\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"dash\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"display\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"display\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"edit\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"edit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"new\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"new\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/rewards/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Vmsy98Xk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[\\\"channels/shop/rewards\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"afterTabSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\",\\\"ignoreForComponent\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[]],\\\"rewards/panels-dash\\\"]]]],null],\\\"rewards\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"rewards\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"fetchAndDisplayTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,5,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onCancel\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\"],[[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"dash\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"edit\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dash\\\"]]],null],[23,0,[\\\"results\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/rewards/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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 ChannelsShopRewardsTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _class = class ChannelsShopRewardsTableViewDetailRowComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasExpiringDate\", _descriptor3, this);\n      _initializerDefineProperty(this, \"expiringDateStartZ\", _descriptor4, this);\n      _initializerDefineProperty(this, \"expiringDateEndZ\", _descriptor5, this);\n    }\n    get isDisabled() {\n      const hasExpiringDate = this.hasExpiringDate;\n      const expiringDateStartZ = this.expiringDateStartZ || '';\n      const expiringDateEndZ = this.expiringDateEndZ || '';\n      if (hasExpiringDate && (!expiringDateStartZ || !expiringDateEndZ)) {\n        return true;\n      }\n      return false;\n    }\n    *sendExpiringRewardNotification(model, onCloseDialogAction) {\n      const hasExpiringDate = this.hasExpiringDate;\n      const rewardKey = model.getData('_key');\n      let dateStartZ = '';\n      let dateEndZ = '';\n      if (hasExpiringDate) {\n        dateStartZ = this.expiringDateStartZ;\n        dateEndZ = this.expiringDateEndZ;\n      }\n      const payload = {\n        rewardKey,\n        dateStartZ,\n        dateEndZ\n      };\n      const response = yield this.server.call('PUT', 'api/protected/contacts/rewards/send/expire-notification', payload);\n      let sent = 0;\n      if (response.data) {\n        sent = R.length(response.data);\n      }\n      onCloseDialogAction();\n      window.alert('sent: ' + sent + ' emails.');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasExpiringDate\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"expiringDateStartZ\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"expiringDateEndZ\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"sendExpiringRewardNotification\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"sendExpiringRewardNotification\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/rewards/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wKJbZY9l\",\n    \"block\": \"{\\\"symbols\\\":[\\\"memberLevel\\\",\\\"@rowIndex\\\",\\\"@query\\\",\\\"@model\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@isDetailRow\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[[12,\\\"hasHeadersSort\\\",[23,9,[]]],[12,\\\"filters\\\",[23,8,[]]],[12,\\\"by\\\",\\\"name\\\"],[12,\\\"adapterName\\\",\\\"channels/shop/rewards\\\"],[12,\\\"onSort\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,8,[]]]]]],null]]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"reward name\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"member level\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[[12,\\\"hasHeadersSort\\\",[23,9,[]]],[12,\\\"filters\\\",[23,8,[]]],[12,\\\"by\\\",\\\"status\\\"],[12,\\\"adapterName\\\",\\\"channels/shop/rewards\\\"],[12,\\\"onSort\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,8,[]]]]]],null]]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[[12,\\\"hasHeadersSort\\\",[23,9,[]]],[12,\\\"filters\\\",[23,8,[]]],[12,\\\"by\\\",\\\"timestampZ_latest\\\"],[12,\\\"adapterName\\\",\\\"channels/shop/rewards\\\"],[12,\\\"onSort\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,8,[]]]]]],null]]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered w-5\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[23,4,[\\\"_data\\\",\\\"name\\\"]],[23,3,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"u-ul u-ul--with-list-bullet\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"memberLevels\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"li\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,4,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@iconOnly\\\",\\\"@model\\\"],[true,[23,4,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",[28,\\\"fn\\\",[[23,5,[]],[23,4,[]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-pen\\\",[28,\\\"fn\\\",[[23,6,[]],[23,4,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/rewards/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/panels-dash/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopShippingZonesPanelsDashComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopShippingZonesPanelsDashComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oMU04iqY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@filters\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onSearchTask\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableClassNames\\\"],[\\\"channels/shop/shipping-zones/table-view/detail-row\\\",true,[23,4,[]],[23,5,[]],[23,6,[]],[23,5,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,4,[\\\"results\\\"]],[23,10,[]],\\\"shipping-zones-dash\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\"],[[23,4,[]],[23,4,[\\\"results\\\"]],[23,8,[]],true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/panels-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopShippingZonesPanelsDisplayComponent extends _component.default {}\n  _exports.default = ChannelsShopShippingZonesPanelsDisplayComponent;\n});","define(\"client/pods/components/channels/shop/shipping-zones/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EwBajzNe\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@tab\\\",\\\"@onDash\\\",\\\"@onEdit\\\"],\\\"statements\\\":[[5,\\\"channels/shop/shipping-zones/shipping-zones-editor\\\",[],[[\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@onDash\\\",\\\"@onEdit\\\",\\\"@tab\\\"],[[23,1,[]],false,false,[23,2,[\\\"model\\\"]],[23,3,[]],[23,4,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/panels-edit/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopShippingZonesPanelsEditComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class ChannelsShopShippingZonesPanelsEditComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/shipping-zones');\n      const model = this.args.tab.model;\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model\n      });\n      Ember.set(this, 'dirty', dirty);\n    }\n    getActiveSubTab() {\n      const activeSubTab = this.tabsManager.getActiveSubTab(this.args.tab);\n      return {\n        loadInstructions: {\n          component: activeSubTab.get('component')\n        }\n      };\n    }\n    _display(model) {\n      const tabOptions = this.getActiveSubTab();\n      this.onDisplay(model, tabOptions);\n    }\n    afterCancelEditing(original) {\n      this._display(original);\n    }\n    afterUpdateRecordTask(model) {\n      this._display(model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hOu/ATtg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@onDisplay\\\",\\\"@onDash\\\",\\\"@onCancel\\\"],\\\"statements\\\":[[5,\\\"channels/shop/shipping-zones/shipping-zones-editor\\\",[],[[\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@onSaveTask\\\",\\\"@onRemoveRecordTask\\\",\\\"@onCancel\\\",\\\"@tab\\\"],[[23,0,[\\\"errors\\\"]],true,false,[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],[23,0,[\\\"dirty\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"onAfterOptions\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"dirty\\\"]],[23,2,[]],[28,\\\"hash\\\",null,[[\\\"tab\\\"],[[23,1,[]]]]],[23,1,[]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\",\\\"onAfterOptions\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"dirty\\\"]],true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"tab\\\"],[[23,1,[]]]]],[23,1,[]]]]]],null],[23,4,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/panels-new/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopShippingZonesPanelsNewComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class ChannelsShopShippingZonesPanelsNewComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/shipping-zones');\n      const model = this.crud.setupNewRecord({\n        adapterName: this.adapterName\n      });\n      Ember.set(this, 'model', model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cXplxSQc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onCancel\\\",\\\"@tab\\\",\\\"@onDisplay\\\"],\\\"statements\\\":[[5,\\\"channels/shop/shipping-zones/shipping-zones-editor\\\",[],[[\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onSaveTask\\\",\\\"@tab\\\"],[[23,0,[\\\"errors\\\"]],true,true,[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"model\\\"]],[23,1,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"onAfterOptions\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"model\\\"]],[23,3,[]],[28,\\\"hash\\\",null,[[\\\"tab\\\"],[[23,2,[]]]]],[23,2,[]]]]]],null],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/search-results/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopShippingZonesSearchResultsComponent extends _component.default {}\n  _exports.default = ChannelsShopShippingZonesSearchResultsComponent;\n});","define(\"client/pods/components/channels/shop/shipping-zones/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y3U7YqFB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@result\\\",\\\"@query\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,2,[]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"transporterLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"transporterLabel\\\"]],false],[0,\\\" \\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"transporterAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t(\\\"],[1,[23,1,[\\\"_data\\\",\\\"transporterAccount\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, _component, R_, _nventor) {\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;\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 ChannelsShopShippingZonesShippingZonesEditorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._action, _class = class ChannelsShopShippingZonesShippingZonesEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      this.crud.addLists(this, ['channels/shop/shipping-zones/lists/sub-panels-editor']);\n    }\n    get isReadonly() {\n      if (this.args.isEditing) {\n        return false;\n      }\n      return true;\n    }\n    get isDisabled() {\n      if (this.args.isEditing) {\n        return false;\n      }\n      return true;\n    }\n    editPanel() {\n      const activeSubTab = this.tabsManager.getActiveSubTab(this.args.tab);\n      const tabOptions = {\n        loadInstructions: {\n          component: activeSubTab.get('component')\n        }\n      };\n      this.args.onEdit(this.args.model, tabOptions);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"editPanel\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"editPanel\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, R_, _ramdaAdjunct) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _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 ChannelsShopShippingZonesShippingZonesEditorDetailsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember.computed('isAllowAllPaymentMethods', 'args.model.{settings.settingsModel._data.shopPaymentMethods.[],_data.shopPaymentMethods.[]}'), _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _class = class ChannelsShopShippingZonesShippingZonesEditorDetailsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"contacts\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"transporter\", _descriptor4, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"zoneType\", _descriptor6, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor7, this);\n      _initializerDefineProperty(this, \"updateTimestampZ\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isAllowAllPaymentMethods\", _descriptor9, this);\n      this.crud.addLists(this, [{\n        adapterName: 'channels/shop/delivery-date-options',\n        appendPath: 'dispatch-type/zones'\n      }, 'channels/shop/shipping-zones/lists/rate-base', 'channels/shop/shipping-zones/lists/free-shipping-when', 'automations/criterias', 'paymentMethods/shop']);\n      this.setupTask.perform();\n      const model = this.args?.model;\n      if (_ramdaAdjunct.default.isNilOrEmpty(model?._data?.shopPaymentMethods)) {\n        this.isAllowAllPaymentMethods = true;\n        this.resetShopPaymentMethods();\n      }\n      const freeShippingRules = model?._data?.freeShippingRules || [];\n      if (model && _ramdaAdjunct.default.isNilOrEmpty(freeShippingRules)) {\n        model.addFreeShippingRule({\n          matchRule: 'none',\n          rules: []\n        });\n      }\n    }\n    get allowedProductTagLists() {\n      const model = this.args.model;\n      const allProductTags = this.crud.lists['products-lists-tags'] || [];\n      const deniedProductTags = model.getData('denyProductTags') || [];\n      return R.reject(productTag => {\n        const productTagKey = productTag.getData('_key') || '';\n        return R.includes(productTagKey, deniedProductTags);\n      })(allProductTags);\n    }\n    get deniedProductTagLists() {\n      const model = this.args.model;\n      const allProductTags = this.crud.lists['products-lists-tags'] || [];\n      const allowedProductTags = model.getData('productTags') || [];\n      return R.reject(productTag => {\n        const productTagKey = productTag.getData('_key') || '';\n        return R.includes(productTagKey, allowedProductTags);\n      })(allProductTags);\n    }\n    get zonePaymentMethodsDefaultsList() {\n      const paymentMethods = R_.dotPathOr([], 'crud.lists.paymentMethods-shop')(this);\n      const paymentMethodsInZone = this.args.model.getData('shopPaymentMethods') || [];\n      let allowedPaymentMethods = paymentMethodsInZone;\n      if (_ramdaAdjunct.default.isNilOrEmpty(paymentMethodsInZone)) {\n        const paymentMethodsInSettings = this.args.model.settings.getProp('shopPaymentMethods') || [];\n        allowedPaymentMethods = paymentMethodsInSettings;\n      }\n      return R.filter(method => {\n        return R.includes(method.getData('value'), allowedPaymentMethods);\n      }, paymentMethods);\n    }\n    get paymentMethodsList() {\n      const paymentMethods = R_.dotPathOr([], 'crud.lists.paymentMethods-shop')(this);\n      return paymentMethods;\n    }\n    setupBasedRates({\n      rateProp = 'valueBasedRates'\n    }) {\n      const model = this.args.model;\n      const isReadonly = this.args?.isReadonly;\n      if (!isReadonly) {\n        const rates = model.getData(rateProp) || [];\n        let lastRateHasMax = false;\n        const lastRate = R.last(rates) || {};\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(lastRate)) {\n          const lastMax = parseFloat(lastRate.getData('max')) || 0;\n          if (lastMax > 0) {\n            lastRateHasMax = true;\n          }\n        }\n        if (rates.length === 0 || lastRateHasMax) {\n          model.newBasedRate({\n            rateProp\n          });\n        }\n      }\n    }\n    get isConvenienceStoreTransporter() {\n      const transporterKey = this.args?.model?._data?.transporterKey;\n      const transporterExtension = R.pipe(R.propOr([], 'transportersList'), R.find(R.pathEq(['_data', '_key'], transporterKey)), R.pathOr('', ['_data', 'transporterExtension']))(this) || this?.transporterModel?._data?.transporterExtension;\n      const isConvenience = R.anyPass([R.equals(this.constants.transporterExtensions.sevenEleven)])(transporterExtension);\n      if (isConvenience) {\n        return true;\n      }\n      return false;\n    }\n    get transporterAccountsList() {\n      const transporterModelHasTransporterAccounts = _ramdaAdjunct.default.isNotNilOrEmpty(this?.transporterModel?.transporterAccounts);\n      if (transporterModelHasTransporterAccounts) {\n        return this.transporterModel.transporterAccounts;\n      }\n      const transporterHasTransporterAccounts = _ramdaAdjunct.default.isNotNilOrEmpty(this?.transporter?.transporterAccounts);\n      if (transporterHasTransporterAccounts) {\n        return this.transporter.transporterAccounts;\n      }\n      return [];\n    }\n    *searchTransportersTask(query) {\n      query = query || this.args.model?._data?.transporterLabel || '';\n      const searchInputTaskOptions = {\n        relationship: 'supplier',\n        query,\n        resultsProperty: 'transportersList',\n        component: this,\n        match: ['name', 'code', 'taxNumber']\n      };\n      const transportersList = yield this.transporter.fetchTransportersTask.perform(searchInputTaskOptions);\n      Ember.set(this, 'transportersList', transportersList);\n    }\n    *setupTask() {\n      const model = this.args.model;\n      this.transporterModel = yield this.transporter.fetchTransporterTask.perform({\n        model\n      });\n      const transportersList = this.transporter.transportersList;\n      Ember.set(this, 'transportersList', transportersList);\n\n      // setup rates\n      if (!this.args.isReadonly) {\n        const rates = model.getData('rates') || [];\n        let lastRateHasMax = false;\n        const lastRate = R.last(rates) || {};\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(lastRate)) {\n          const lastMax = parseFloat(lastRate.getData('max')) || 0;\n          if (lastMax > 0) {\n            lastRateHasMax = true;\n          }\n        }\n        if (rates.length === 0 || lastRateHasMax) {\n          model.newRate();\n        }\n      }\n      this.setupBasedRates({\n        rateProp: 'valueBasedRates'\n      });\n      // setup default transporter account\n      this._setupDefaultTransporterAccount(model);\n    }\n    resetShopPaymentMethods() {\n      if (this.isAllowAllPaymentMethods) {\n        const model = this.args.model;\n        Ember.set(model, '_data.shopPaymentMethods', []);\n      }\n    }\n    _setupDefaultTransporterAccount(model) {\n      const transporterAccountNumber = model.getData('transporterAccountNumber');\n      const transporterAccounts = this.transporterAccountsList;\n      const transporterAccountName = R.pipe(R.pluck('_data'), R.find(R.propEq('account', transporterAccountNumber)), R.prop('name'))(transporterAccounts);\n      if (!transporterAccountName) {\n        return;\n      }\n      model.setData('transporterAccount', transporterAccountName);\n    }\n    setEmptyRates(model) {\n      model.setData('hasNoRates', true);\n      model.setData('isValueBased', true);\n      model.setData('isWeightBased', false);\n      model.setData('isQuantityBased', false);\n      model.setData('valueBasedRates', []);\n      model.setData('weightBasedRates', []);\n      model.setData('quantityBasedRates', []);\n    }\n    loadTransporterForZone(model, transporter) {\n      this.updateTimestampZ = new Date().getTime();\n      const key = transporter.getData('_key');\n      model.setData('transporterKey', key);\n      this.transporterModel = model;\n      this.transporter.loadTransporterAccounts(model, transporter);\n    }\n    unloadTransporterForZone(model) {\n      model.setData('transporterKey', '');\n      // model.setData('transporterExtension', '')\n      model.setData('transporterAccountNumber', '');\n      model.setData('transporterAccount', '');\n      this.transporterModel = null;\n    }\n    setTransporterAccountLabel(model, account) {\n      model.setData('transporterAccount', account.getData('name'));\n    }\n    setZonePaymentMethodsDefault(model) {\n      const zonePaymentMethodsDefaultsList = this.zonePaymentMethodsDefaultsList || [];\n      const currentDefault = model.getData('shopPaymentMethodsDefault');\n      let resetDefault = false;\n      const found = R.find(R.pathEq(['_data', 'value'], currentDefault))(zonePaymentMethodsDefaultsList);\n      if (!found) {\n        resetDefault = true;\n      }\n      if (!currentDefault) {\n        resetDefault = true;\n      }\n      if (resetDefault) {\n        const first = R.head(zonePaymentMethodsDefaultsList);\n        if (first) {\n          model.setData('shopPaymentMethodsDefault', first.getData('value'));\n        } else {\n          model.setData('shopPaymentMethodsDefault', '');\n        }\n      }\n    }\n    onSelectZoneType(option) {\n      const value = option?._data?.value || '';\n      const model = this.args.model;\n      if (value !== this.constants?.shippingFeeZoneType?.convenienceStore) {\n        model.setData('convenienceStoreBrand', '');\n        return;\n      }\n      const countryModel = model.newCountry({\n        name: 'Taiwan',\n        code: 'TW',\n        regions: [],\n        districts: []\n      });\n      model.setData('countries', [countryModel]);\n      const shopPaymentMethods = model._data.shopPaymentMethods;\n      const _paymentMethods = R.filter(method => !R.pathEq(['_data', 'value'], this.constants.paymentMethods.cash)(method))(shopPaymentMethods);\n      if (_paymentMethods?.length === 0) {\n        const shopPaymentMethods = this.paymentMethodsList.map(paymentMethodModel => paymentMethodModel.getData('value'));\n        model.setData('shopPaymentMethods', shopPaymentMethods);\n      } else {\n        model.setData('shopPaymentMethods', _paymentMethods);\n      }\n    }\n    setEmptyRatesData() {\n      const model = this?.args?.model || {};\n      const hasNoRates = model?._data?.hasNoRates || false;\n      const valueBasedRates = model?._data?.valueBasedRates || [];\n\n      // only add blank rates when has no rates\n      if (!hasNoRates && _ramdaAdjunct.default.isNilOrEmpty(valueBasedRates?.[0]?._data)) {\n        this.setBasedRates({\n          rateProp: 'valueBasedRates',\n          type: 'isValueBased'\n        });\n      }\n    }\n    newBlankRate(rate) {\n      const model = this.args.model;\n      model.updateMinRates();\n      const max = parseInt(rate.getData('max')) || 0;\n      if (max !== 0) {\n        model.newBlankRate(rate);\n      }\n    }\n    removeRate(rate) {\n      const model = this.args.model;\n      model.removeRate(rate);\n      model.updateMinRates();\n    }\n    onSubmitAddSurcharge() {\n      const model = this.args.model;\n      model.addSurcharge();\n    }\n    setBasedRates({\n      rateProp,\n      type\n    }) {\n      const model = this.args.model;\n      const isBased = model.getData(type) || false;\n      if (isBased) {\n        this.setupBasedRates({\n          rateProp\n        });\n      } else {\n        model.setData(rateProp, []);\n      }\n    }\n    refreshModel(model) {\n      this.transporterModel = model;\n    }\n    updateSenderDetails(transporterModel, person) {\n      const hasPerson = _ramdaAdjunct.default.isNotNilOrEmpty(person);\n      if (!hasPerson) {\n        return;\n      }\n      const personId = person._data?.personId;\n      this.args.model.set('_data.transporterDefaultPickupLocationPersonId', personId);\n      const transporterAccountNumber = person.transporterAccount || '';\n      this.args.model.set('_data.transporterAccountNumber', transporterAccountNumber);\n      let transporterAccounts = this.transporterModel.getData('transporterAccounts');\n      const hasTransporterAccounts = _ramdaAdjunct.default.isNotNilOrEmpty(transporterAccounts);\n      if (!hasTransporterAccounts) {\n        transporterAccounts = this.transporterModel.transporterAccounts || [];\n      }\n      let transporterAccountName = R.pipe(R.pluck('_data'), R.find(R.propEq('account', transporterAccountNumber)), R.prop('name'))(transporterAccounts);\n      if (!transporterAccountName) {\n        const personDetail = person._data.details.find(detailModel => detailModel._data.transporterKey === 'transporterAccount');\n        transporterAccountName = personDetail._data.value;\n      }\n      if (transporterAccountName) {\n        this.args.model.set('_data.transporterAccount', transporterAccountName);\n      }\n    }\n    newBlankBasedRate({\n      rate,\n      rateProp\n    }) {\n      const model = this.args.model;\n      model.updateMinBasedRates({\n        rateProp\n      });\n      const max = parseInt(rate.getData('max')) || 0;\n      if (max !== 0) {\n        model.newBlankBasedRate({\n          rateProp,\n          rate\n        });\n      }\n    }\n    removeBasedRate({\n      rate,\n      rateProp\n    }) {\n      const model = this.args.model;\n      model.removeBasedRate({\n        rateProp,\n        rate\n      });\n      model.updateMinBasedRates({\n        rateProp\n      });\n    }\n    onSelectAction(model, transporterModel) {\n      this.loadTransporterForZone(model, transporterModel);\n      this.refreshModel(transporterModel);\n    }\n    addNewFreeShippingRule() {\n      const model = this.args?.model;\n      model.addFreeShippingRule({\n        matchRule: 'any',\n        rules: []\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contacts\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"transporter\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"zoneType\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args?.model?._data?.zoneType || '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"updateTimestampZ\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isAllowAllPaymentMethods\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"zonePaymentMethodsDefaultsList\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"zonePaymentMethodsDefaultsList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupBasedRates\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setupBasedRates\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchTransportersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchTransportersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetShopPaymentMethods\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"resetShopPaymentMethods\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setEmptyRates\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"setEmptyRates\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadTransporterForZone\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTransporterForZone\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadTransporterForZone\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadTransporterForZone\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTransporterAccountLabel\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"setTransporterAccountLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setZonePaymentMethodsDefault\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"setZonePaymentMethodsDefault\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectZoneType\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectZoneType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setEmptyRatesData\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"setEmptyRatesData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newBlankRate\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"newBlankRate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeRate\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"removeRate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitAddSurcharge\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitAddSurcharge\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setBasedRates\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"setBasedRates\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateSenderDetails\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"updateSenderDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newBlankBasedRate\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"newBlankBasedRate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeBasedRate\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"removeBasedRate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectAction\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewFreeShippingRule\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewFreeShippingRule\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/convenience-store-zones/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"@glimmer/component\"], function (_exports, R, RA, _component) {\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 ChannelsShopShippingZonesShippingZonesEditorDetailsEditorConvenienceStoreZones = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class ChannelsShopShippingZonesShippingZonesEditorDetailsEditorConvenienceStoreZones extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"isMainSelected\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isOutlyingSelected\", _descriptor3, this);\n      const regions = this.crud.lists['settings-countries-regions'];\n      const selectedRegions = isOutlyingValue => R.pipe(R.map(region => {\n        const districts = R.pipe(R.pathOr([], ['_data', 'districts']), R.filter(R.pathEq(['_data', 'is_outlying_island'], isOutlyingValue.toString())))(region);\n        if (RA.isNotNilOrEmpty(districts)) {\n          return R.path(['_data', 'key'])(region);\n        }\n        return false;\n      }), R.reject(R.equals(false)))(regions);\n      const selectedDistricts = isOutlyingValue => R.pipe(R.map(region => {\n        const districts = R.pipe(R.pathOr([], ['_data', 'districts']), R.filter(R.pathEq(['_data', 'is_outlying_island'], isOutlyingValue.toString())), R.map(R.path(['_data', 'postcode'])))(region);\n        const totalDistricts = R.length(region._data.districts);\n        if (totalDistricts !== R.length(districts)) {\n          return districts;\n        }\n        return false;\n      }), R.reject(R.equals(false)), R.flatten)(regions);\n      this.mainRegions = selectedRegions(false) || [];\n      this.outlyingRegions = selectedRegions(true) || [];\n      this.mainDistricts = selectedDistricts(false) || [];\n      this.outlyingDistricts = selectedDistricts(true) || [];\n    }\n    setup(model) {\n      this.isMainSelected = model?._data?.isMainSelected || false;\n      this.isOutlyingSelected = model?._data?.isOutlyingSelected || false;\n    }\n    onToggleSelectRegionsGroup(toggleOutlying) {\n      const model = this.args.model;\n      const countries = model.getData('countries') || [];\n      const country = R.find(R.pathEq(['_data', 'code'], 'TW'))(countries); // only TW is allowed\n\n      if (toggleOutlying) {\n        this.isOutlyingSelected = !this.isOutlyingSelected;\n        model.setData('isOutlyingSelected', this.isOutlyingSelected);\n      } else {\n        this.isMainSelected = !this.isMainSelected;\n        model.setData('isMainSelected', this.isMainSelected);\n      }\n      let mainRegions = [];\n      let outlyingRegions = [];\n      let mainDistricts = [];\n      let outlyingDistricts = [];\n      if (this.isOutlyingSelected) {\n        outlyingRegions = this.outlyingRegions;\n        outlyingDistricts = this.outlyingDistricts;\n      }\n      if (this.isMainSelected) {\n        mainRegions = this.mainRegions;\n        mainDistricts = this.mainDistricts;\n      }\n      country._data.regions = R.uniq(R.concat(mainRegions, outlyingRegions));\n      country._data.districts = [];\n      if (!(this.isOutlyingSelected && this.isMainSelected)) {\n        country._data.districts = R.concat(mainDistricts, outlyingDistricts);\n      }\n      model.setData('countries', []);\n      Ember.run.scheduleOnce('afterRender', () => {\n        model.setData('countries', [country]);\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isMainSelected\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isOutlyingSelected\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleSelectRegionsGroup\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSelectRegionsGroup\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/convenience-store-zones/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GeN4kA4r\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setup\\\"]],[23,1,[]]],null]]],[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setup\\\"]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@translate\\\"],[[23,2,[]],[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isMainSelected\\\"]],\\\"fas fa-check\\\"],null],\\\"main island\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleSelectRegionsGroup\\\"]],false],null],true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@translate\\\"],[[23,2,[]],[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isOutlyingSelected\\\"]],\\\"fas fa-check\\\"],null],\\\"outlying islands\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleSelectRegionsGroup\\\"]],true],null],true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/convenience-store-zones/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ChannelsShopShippingZonesShippingZonesEditorDetailsEditorFreeShippingRulesEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _class = class ChannelsShopShippingZonesShippingZonesEditorDetailsEditorFreeShippingRulesEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    removeFreeShippingRule(freeShippingRule) {\n      const freeShippingRules = this.args?.model?._data?.freeShippingRules || [];\n      freeShippingRules.removeObject(freeShippingRule);\n    }\n    addNewRule(freeShippingRule) {\n      freeShippingRule.addRule();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"removeFreeShippingRule\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"removeFreeShippingRule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewRule\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewRule\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/rule-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 ChannelsShopShippingZonesShippingZonesEditorDetailsEditorFreeShippingRulesEditorRuleEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember.computed('args.{model._data.productTags.[],model._data.denyProductTags.[],rule._data.productTags.[]}'), _dec4 = Ember._action, _dec5 = Ember._action, _class = class ChannelsShopShippingZonesShippingZonesEditorDetailsEditorFreeShippingRulesEditorRuleEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"allowedFreeShippingProductTags\", _descriptor2, this);\n      this.crud.addLists(this, ['products/lists/tags']);\n    }\n    get matchRule() {\n      const freeShippingRule = this.args?.freeShippingRule;\n      return freeShippingRule?._data?.matchRule || 'any';\n    }\n    get availableProductTags() {\n      return this.args?.productTags || [];\n    }\n    get hasTagsOutsideOfZone() {\n      const ruleProductTags = this.args?.rule?._data?.productTags;\n      if (RA.isNilOrEmpty(ruleProductTags)) {\n        return false;\n      }\n      const model = this.args?.model;\n      const allowedProductTags = model?._data?.productTags || [];\n      const deniedProductTags = model?._data?.denyProductTags || [];\n      if (RA.isNotNilOrEmpty(allowedProductTags)) {\n        return !R.equals(allowedProductTags, ruleProductTags);\n      }\n      if (RA.isNotNilOrEmpty(deniedProductTags)) {\n        return R.pipe(R.filter(tagKey => {\n          return R.includes(tagKey, ruleProductTags);\n        }), RA.isNotNilOrEmpty)(deniedProductTags);\n      }\n      return false;\n    }\n    removeRule(freeShippingRule, rule) {\n      const rules = freeShippingRule?._data?.rules || [];\n      rules.removeObject(rule);\n    }\n    getAllowedFreeShippingProductTags() {\n      const freeShippingRule = this.args?.freeShippingRule;\n      const matchRule = freeShippingRule?._data?.matchRule || 'any';\n      const allowedProductTags = this.crud.lists['products-lists-tags'] || [];\n      const rule = this.args?.rule;\n      const currentRuleTags = rule?._data?.productTags || [];\n      let allowedFreeShippingProductTags = allowedProductTags || [];\n      if (matchRule === 'only') {\n        const freeShippingRule = this.args?.freeShippingRule;\n        let usedProductTags = R.pipe(R.pathOr([], ['_data', 'rules']), R.map(rule => {\n          return rule?._data?.productTags || [];\n        }), R.flatten, R.uniq, R.reject(RA.isNilOrEmpty))(freeShippingRule);\n        usedProductTags = R.difference(usedProductTags, currentRuleTags);\n        allowedFreeShippingProductTags = R.reject(productTag => {\n          const value = productTag?._data?._key;\n          return R.includes(value, usedProductTags);\n        })(allowedFreeShippingProductTags);\n      }\n      Ember.set(this, 'allowedFreeShippingProductTags', allowedFreeShippingProductTags);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"allowedFreeShippingProductTags\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"hasTagsOutsideOfZone\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"hasTagsOutsideOfZone\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeRule\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"removeRule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getAllowedFreeShippingProductTags\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"getAllowedFreeShippingProductTags\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/rule-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5m+FqW5l\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@rule\\\",\\\"@isReadonly\\\",\\\"@productTags\\\",\\\"@tab\\\",\\\"@freeShippingRule\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onSubmit\\\",\\\"@context\\\"],[[23,3,[]],\\\"fas fa-tags\\\",[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"getAllowedFreeShippingProductTags\\\"]]],null],\\\"freeShippingRules.rules.productTags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,[23,0,[\\\"allowedFreeShippingProductTags\\\"]],[23,2,[]],true,\\\"_data._key\\\",[23,5,[]],false,\\\"_data.productTags\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasTagsOutsideOfZone\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"has disallowed product tags\\\"],null],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,2,[\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\"],[[28,\\\"or\\\",[[23,3,[]],[28,\\\"is-empty\\\",[[23,2,[\\\"_data\\\",\\\"productTags\\\"]]],null]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-lists-rate-base\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,2,[\\\"_data\\\",\\\"when\\\"]],\\\"freeShippingRules.rules.when\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\"],[[28,\\\"or\\\",[[23,3,[]],[28,\\\"is-empty\\\",[[23,2,[\\\"_data\\\",\\\"productTags\\\"]]],null]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"automations-criterias\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,2,[\\\"_data\\\",\\\"criteria\\\"]],\\\"freeShippingRules.rules.criteria\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[[28,\\\"or\\\",[[23,3,[]],[28,\\\"is-empty\\\",[[23,2,[\\\"_data\\\",\\\"productTags\\\"]]],null]],null],[23,2,[\\\"_data\\\",\\\"value\\\"]],\\\"freeShippingRules.rules.value\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"criteria\\\"]],\\\"isBetween\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      ~\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[[28,\\\"or\\\",[[23,3,[]],[28,\\\"is-empty\\\",[[23,2,[\\\"_data\\\",\\\"productTags\\\"]]],null]],null],[23,2,[\\\"_data\\\",\\\"valueMax\\\"]],\\\"freeShippingRules.rules.valueMax\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"fas fa-trash\\\",\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeRule\\\"]],[23,6,[]],[23,2,[]]],null],[23,3,[]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/rule-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Jznr1P9w\",\n    \"block\": \"{\\\"symbols\\\":[\\\"rule\\\",\\\"@freeShippingRule\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@productTags\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-lists-free-shipping-when\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,2,[\\\"_data\\\",\\\"matchRule\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"_data\\\",\\\"rules\\\"]],[28,\\\"not-eq\\\",[[23,2,[\\\"_data\\\",\\\"matchRule\\\"]],\\\"none\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"product tags\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"automation_when\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"criteria\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"automation_qty\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"rules\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/rule-editor\\\",[],[[\\\"@rule\\\",\\\"@freeShippingRule\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@productTags\\\"],[[23,1,[]],[23,2,[]],[23,4,[]],[23,3,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"freeShippingRules.rules\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"matchRule\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"add\\\",\\\"fas fa-plus\\\",[28,\\\"fn\\\",[[23,0,[\\\"addNewRule\\\"]],[23,2,[]]],null],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ChannelsShopShippingZonesShippingZonesEditorDetailsEditorRateEditorComponent = _exports.default = (_dec = Ember.inject.service, _class = class ChannelsShopShippingZonesShippingZonesEditorDetailsEditorRateEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n    }\n    get rates() {\n      const rates = this.args.rates || [];\n      return R.pluck('_data')(rates);\n    }\n    get minRate() {\n      const rates = this.rates;\n      const index = this.args.index;\n      if (index > 0) {\n        const previousRate = rates[index - 1];\n        const previousMax = parseFloat(previousRate.max) || 0;\n        return previousMax + 1;\n      }\n      return '0';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cQwaoh7w\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@rate\\\",\\\"@rateProp\\\",\\\"@onRemove\\\",\\\"@onNewRow\\\",\\\"@index\\\",\\\"@isHeader\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[]],\\\"quantityBasedRates\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"min order qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[]],\\\"weightBasedRates\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"min order weight\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"min order price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[]],\\\"quantityBasedRates\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"max order qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[]],\\\"weightBasedRates\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"max order weight\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"max order price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"shipping fee\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@onFocusOut\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],[28,\\\"fn\\\",[[23,5,[]],[28,\\\"hash\\\",null,[[\\\"rateProp\\\",\\\"rate\\\"],[[23,3,[]],[23,2,[]]]]]],null],[23,2,[\\\"_data\\\",\\\"min\\\"]],[29,[[23,3,[]],\\\".min\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[\\\"_data\\\",\\\"min\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@onFocusOut\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],[28,\\\"fn\\\",[[23,5,[]],[28,\\\"hash\\\",null,[[\\\"rateProp\\\",\\\"rate\\\"],[[23,3,[]],[23,2,[]]]]]],null],[23,2,[\\\"_data\\\",\\\"max\\\"]],[29,[[23,3,[]],\\\".max\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@onFocusOut\\\",\\\"@value\\\",\\\"@context\\\"],[[23,1,[]],[28,\\\"fn\\\",[[23,5,[]],[28,\\\"hash\\\",null,[[\\\"rateProp\\\",\\\"rate\\\"],[[23,3,[]],[23,2,[]]]]]],null],[23,2,[\\\"_data\\\",\\\"rate\\\"]],[29,[[23,3,[]],\\\".rate\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@disabled\\\",\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@tab\\\",\\\"@onSubmit\\\"],[[23,1,[]],\\\"u-close-btn\\\",-1,[23,0,[\\\"tab\\\"]],[28,\\\"fn\\\",[[23,4,[]],[28,\\\"hash\\\",null,[[\\\"rateProp\\\",\\\"rate\\\"],[[23,3,[]],[23,2,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/surcharge-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 ChannelsShopShippingZonesShippingZonesEditorDetailsEditorSurchargeEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class ChannelsShopShippingZonesShippingZonesEditorDetailsEditorSurchargeEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    onSubmitRemoveSurcharge(surcharge) {\n      const surcharges = this.args.model.getData('surcharges') || [];\n      surcharges.removeObject(surcharge);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSubmitRemoveSurcharge\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitRemoveSurcharge\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/surcharge-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PJcrfT87\",\n    \"block\": \"{\\\"symbols\\\":[\\\"surcharge\\\",\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@productTags\\\",\\\"@tab\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"label\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"label for transporter\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"shipping fee\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"product tags\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"surcharges\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[[23,3,[]],[23,1,[\\\"_data\\\",\\\"label\\\"]],\\\"surcharges.label\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@context\\\"],[[23,3,[]],[23,1,[\\\"_data\\\",\\\"label\\\"]],[23,1,[\\\"_data\\\",\\\"labelForTransporter\\\"]],\\\"surcharges.labelForTransporter\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[[23,3,[]],[23,1,[\\\"_data\\\",\\\"rate\\\"]],\\\"surcharges.rate\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@context\\\"],[[23,3,[]],\\\"fas fa-tags\\\",[23,4,[]],\\\"surcharges.productTags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@adapterName\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\"],[true,\\\"products/lists/tags\\\",[23,5,[]],false,[23,4,[]],[23,1,[]],true,\\\"_data._key\\\",\\\"_data.productTags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,4,[]],false,[23,1,[\\\"_data\\\",\\\"productTags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"fas fa-trash\\\",\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSubmitRemoveSurcharge\\\"]],[23,1,[]]],null],[23,3,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"surcharges\\\"]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/surcharge-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Hb2rd3jJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"freeShippingRule\\\",\\\"rate\\\",\\\"index\\\",\\\"rate\\\",\\\"index\\\",\\\"rate\\\",\\\"index\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@formGroupClassNames\\\",\\\"@wizardContainerComponent\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@fetchTransporterTask\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@isUserAllowed\\\",\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[true,\\\"shippingZones\\\",false,[28,\\\"if\\\",[[23,16,[]],[23,16,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"shippingZones\\\",[23,15,[]],[23,12,[]],[23,14,[]]]]]],null],[23,12,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,[23,12,[]],\\\"basicInformation_group\\\",[23,1,[]],\\\"shipping zone details\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"zoneType\\\",[23,9,[]],\\\"shipping type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",[28,\\\"or\\\",[[23,10,[]],[23,17,[\\\"isRunning\\\"]]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-lists-zone-types\\\"]],[23,11,[]],false,[23,0,[\\\"onSelectZoneType\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,\\\"_data.zoneType\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"zoneType\\\"]],[23,0,[\\\"constants\\\",\\\"shippingFeeZoneType\\\",\\\"convenienceStore\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"convenienceStoreBrand\\\",[23,9,[]],\\\"convenience store brand\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,10,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-convenience-stores-lists-brands\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,11,[\\\"_data\\\",\\\"convenienceStoreBrand\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"convenienceStoreBrand\\\"]],[23,0,[\\\"constants\\\",\\\"convenienceStoresBrands\\\",\\\"familyMart\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"same-line-message\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"family mart only provides room temperature delivery\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"name\\\",[23,9,[]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"description\\\",[23,9,[]],\\\"description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"isLabelOnly\\\",[23,9,[]],\\\"only show shipping description, rate is quoted after order\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleValue\\\"],[[23,10,[]],[28,\\\"fn\\\",[[23,0,[\\\"setEmptyRates\\\"]],[23,11,[]]],null],[23,11,[\\\"_data\\\",\\\"isLabelOnly\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"isLabelOnly\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"hasCustomLabelOnlyShippingMessage\\\",[23,9,[]],\\\"use custom message for quoted rate shipping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"hasCustomLabelOnlyShippingMessage\\\"]],false,true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"hasCustomLabelOnlyShippingMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"customLabelOnlyShippingMessage\\\",[23,9,[]],\\\"custom message for quoted rate shipping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@options\\\"],[[23,11,[\\\"_data\\\",\\\"customLabelOnlyShippingMessage\\\"]],false,false,[23,10,[]],[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[50]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"isSplit\\\",[23,1,[]],[23,9,[]],\\\"can split by transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"isSplit\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"hasCustomAdditionalFreeShippingMessage\\\",[23,9,[]],\\\"use custom message for additional free shipping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"hasCustomAdditionalFreeShippingMessage\\\"]],false,true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"hasCustomAdditionalFreeShippingMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"customAdditionalFreeShippingMessage\\\",[23,9,[]],\\\"custom message for additional free shipping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@options\\\"],[[23,11,[\\\"_data\\\",\\\"customAdditionalFreeShippingMessage\\\"]],false,false,[23,10,[]],[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[50]]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"countries_group\\\",[23,1,[]],\\\"shipping locations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables\\\",[],[[\\\"@isReadonly\\\",\\\"@isConvenienceStore\\\",\\\"@model\\\"],[[23,10,[]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"zoneType\\\"]],[23,0,[\\\"constants\\\",\\\"shippingFeeZoneType\\\",\\\"convenienceStore\\\"]]],null],true,false],null],[23,11,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"countries\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"products_group\\\",[23,1,[]],\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"productTags\\\",[23,9,[]],\\\"allowed product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,10,[]],\\\"fas fa-tags\\\",[23,0,[\\\"allowedProductTagLists\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"allowedProductTagLists\\\"]],[23,11,[]],true,\\\"_data._key\\\",[23,12,[]],false,\\\"_data.productTags\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"allowedProductTagLists\\\"]],\\\"_data._key\\\",false,[23,11,[\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"denyProductTags\\\",[23,9,[]],\\\"denied product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,10,[]],\\\"fas fa-tags\\\",[23,0,[\\\"deniedProductTagLists\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"deniedProductTagLists\\\"]],[23,11,[]],true,\\\"_data._key\\\",[23,12,[]],false,\\\"_data.denyProductTags\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"deniedProductTagLists\\\"]],\\\"_data._key\\\",false,[23,11,[\\\"_data\\\",\\\"denyProductTags\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"hasRates_group\\\",[23,1,[]],\\\"shipping rates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"hasNoRates\\\",[23,9,[]],\\\"no rates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[28,\\\"or\\\",[[23,10,[]],[23,11,[\\\"_data\\\",\\\"isLabelOnly\\\"]]],null],[23,11,[\\\"_data\\\",\\\"hasNoRates\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setEmptyRatesData\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[\\\"_data\\\",\\\"hasNoRates\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"valueBasedRates_group\\\",[23,1,[]],\\\"value based rates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"isValueBased\\\",[23,9,[]],\\\"rate table\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"isValueBased\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setBasedRates\\\"]],[28,\\\"hash\\\",null,[[\\\"rateProp\\\",\\\"type\\\"],[\\\"valueBasedRates\\\",\\\"isValueBased\\\"]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"isValueBased\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor\\\",[],[[\\\"@isHeader\\\",\\\"@isReadonly\\\",\\\"@rateProp\\\"],[true,[28,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"isLabelOnly\\\"]],true,[23,10,[]]],null],\\\"valueBasedRates\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,11,[\\\"_data\\\",\\\"valueBasedRates\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor\\\",[],[[\\\"@index\\\",\\\"@isReadonly\\\",\\\"@onNewRow\\\",\\\"@onRemove\\\",\\\"@rate\\\",\\\"@rates\\\",\\\"@rateProp\\\"],[[23,8,[]],[28,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"isLabelOnly\\\"]],true,[23,10,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"newBlankBasedRate\\\"]],[28,\\\"hash\\\",null,[[\\\"rate\\\",\\\"rateProp\\\"],[[23,7,[]],\\\"valueBasedRates\\\"]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"removeBasedRate\\\"]],[28,\\\"hash\\\",null,[[\\\"rate\\\",\\\"rateProp\\\"],[[23,7,[]],\\\"valueBasedRates\\\"]]]],null],[23,7,[]],[23,11,[\\\"_data\\\",\\\"valueBasedRates\\\"]],\\\"valueBasedRates\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7,8]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasNotZeroMinimumRates\\\",\\\"valueBasedRates\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[8],[0,\\\"*\\\"],[1,[28,\\\"tt\\\",[\\\"min order to allow shipping\\\"],[[\\\"amount\\\"],[[28,\\\"currency\\\",[[23,11,[\\\"minimumRates\\\",\\\"valueBasedRates\\\"]]],null]]]],true],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasIncorrectRates\\\",\\\"valueBasedRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"*\\\"],[1,[28,\\\"tt\\\",[\\\"shipping rates warning\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"valueBasedRates\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"valueBasedRates_group\\\",[23,1,[]],\\\"weight based rates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"isWeightBased\\\",[23,9,[]],\\\"rate table\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"isWeightBased\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setBasedRates\\\"]],[28,\\\"hash\\\",null,[[\\\"rateProp\\\",\\\"type\\\"],[\\\"weightBasedRates\\\",\\\"isWeightBased\\\"]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"isWeightBased\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"weightUnit\\\",[23,9,[]],\\\"weight unit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@readonly\\\",\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@value\\\",\\\"@label\\\"],[[23,10,[]],[23,10,[]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units-weight\\\"]],\\\"_data.value\\\",[23,11,[\\\"_data\\\",\\\"weightUnit\\\"]],[23,11,[\\\"_data\\\",\\\"weightUnit\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor\\\",[],[[\\\"@isHeader\\\",\\\"@isReadonly\\\",\\\"@rateProp\\\"],[true,[23,10,[]],\\\"weightBasedRates\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,11,[\\\"_data\\\",\\\"weightBasedRates\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor\\\",[],[[\\\"@index\\\",\\\"@isReadonly\\\",\\\"@onNewRow\\\",\\\"@onRemove\\\",\\\"@rate\\\",\\\"@rates\\\",\\\"@rateProp\\\"],[[23,6,[]],[23,10,[]],[28,\\\"fn\\\",[[23,0,[\\\"newBlankBasedRate\\\"]],[28,\\\"hash\\\",null,[[\\\"rate\\\",\\\"rateProp\\\"],[[23,5,[]],\\\"weightBasedRates\\\"]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"removeBasedRate\\\"]],[28,\\\"hash\\\",null,[[\\\"rate\\\",\\\"rateProp\\\"],[[23,5,[]],\\\"weightBasedRates\\\"]]]],null],[23,5,[]],[23,11,[\\\"_data\\\",\\\"weightBasedRates\\\"]],\\\"weightBasedRates\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasNotZeroMinimumRates\\\",\\\"weightBasedRates\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[8],[0,\\\"*\\\"],[1,[28,\\\"tt\\\",[\\\"min order to allow shipping\\\"],[[\\\"amount\\\"],[[23,11,[\\\"minimumRates\\\",\\\"weightBasedRates\\\"]]]]],true],[0,\\\" \\\"],[1,[23,11,[\\\"_data\\\",\\\"weightUnit\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasIncorrectRates\\\",\\\"weightBasedRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"*\\\"],[1,[28,\\\"tt\\\",[\\\"shipping rates warning\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"weightBasedRates\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"isQuantityBased_group\\\",[23,1,[]],\\\"quantity based rates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"isQuantityBased\\\",[23,9,[]],\\\"rate table\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"isQuantityBased\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setBasedRates\\\"]],[28,\\\"hash\\\",null,[[\\\"rateProp\\\",\\\"type\\\"],[\\\"quantityBasedRates\\\",\\\"isQuantityBased\\\"]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"isQuantityBased\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor\\\",[],[[\\\"@isHeader\\\",\\\"@isReadonly\\\",\\\"@rateProp\\\"],[true,[23,10,[]],\\\"quantityBasedRates\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,11,[\\\"_data\\\",\\\"quantityBasedRates\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/rate-editor\\\",[],[[\\\"@index\\\",\\\"@isReadonly\\\",\\\"@onNewRow\\\",\\\"@onRemove\\\",\\\"@rate\\\",\\\"@rates\\\",\\\"@rateProp\\\"],[[23,4,[]],[23,10,[]],[28,\\\"fn\\\",[[23,0,[\\\"newBlankBasedRate\\\"]],[28,\\\"hash\\\",null,[[\\\"rate\\\",\\\"rateProp\\\"],[[23,3,[]],\\\"quantityBasedRates\\\"]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"removeBasedRate\\\"]],[28,\\\"hash\\\",null,[[\\\"rate\\\",\\\"rateProp\\\"],[[23,3,[]],\\\"quantityBasedRates\\\"]]]],null],[23,3,[]],[23,11,[\\\"_data\\\",\\\"quantityBasedRates\\\"]],\\\"quantityBasedRates\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasNotZeroMinimumRates\\\",\\\"quantityBasedRates\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[8],[0,\\\"*\\\"],[1,[28,\\\"tt\\\",[\\\"min order to allow shipping\\\"],[[\\\"amount\\\"],[[23,11,[\\\"minimumRates\\\",\\\"quantityBasedRates\\\"]]]]],true],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasIncorrectRates\\\",\\\"quantityBasedRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"*\\\"],[1,[28,\\\"tt\\\",[\\\"shipping rates warning\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"quantityBasedRates\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"surcharge_group\\\",[23,1,[]],\\\"surcharge\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"hasSurchargeWhenFreeShipping\\\",[23,9,[]],\\\"has surcharge on free shipping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"hasSurchargeWhenFreeShipping\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"hasSurchargeWhenFreeShipping\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/surcharge-editor\\\",[],[[\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@productTags\\\"],[[23,12,[]],[23,10,[]],[23,11,[]],[23,0,[\\\"allowedProductTagLists\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"surcharges\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@translate\\\"],[[23,10,[]],\\\"fas fa-plus\\\",\\\"add surcharge\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSubmitAddSurcharge\\\"]]],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[\\\"_data\\\",\\\"hasNoRates\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"shippingZones_group\\\",[23,1,[]],\\\"additional free shipping rule\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,11,[\\\"_data\\\",\\\"freeShippingRules\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/free-shipping-rules-editor\\\",[],[[\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@freeShippingRule\\\",\\\"@productTags\\\"],[[23,12,[]],[23,10,[]],[23,11,[]],[23,2,[]],[23,0,[\\\"allowedProductTagLists\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"freeShippingRules\\\"]]],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"transporter_group\\\",[23,1,[]],\\\"transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"transporterLabel\\\",[23,9,[]],\\\"transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@list\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@onDeselect\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\"],[true,[23,10,[]],[23,11,[\\\"_data\\\",\\\"transporterKey\\\"]],\\\"fas fa-address-book\\\",[23,0,[\\\"transportersList\\\"]],[23,0,[\\\"searchTransportersTask\\\",\\\"isRunning\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[28,\\\"fn\\\",[[23,0,[\\\"unloadTransporterForZone\\\"]],[23,11,[]]],null],[28,\\\"perform\\\",[[23,0,[\\\"searchTransportersTask\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onSelectAction\\\"]],[23,11,[]]],null],\\\"_data.name\\\",[23,11,[\\\"_data\\\",\\\"transporterLabel\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"transporterModel\\\"]],[23,0,[\\\"transporterModel\\\",\\\"hasPickupLocations\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"pickup locations\\\",[23,9,[]],\\\"pickupLocations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"transporters/sender-list-btn\\\",[],[[\\\"@isReadonly\\\",\\\"@showUseDefaultsToggle\\\",\\\"@model\\\",\\\"@transporterModel\\\",\\\"@onRefreshModel\\\",\\\"@onSelect\\\",\\\"@defaultPersonId\\\",\\\"@listSelectorValueKey\\\"],[[23,10,[]],true,[23,11,[]],[23,0,[\\\"transporterModel\\\"]],[23,0,[\\\"refreshModel\\\"]],[23,0,[\\\"updateSenderDetails\\\"]],[23,11,[\\\"_data\\\",\\\"transporterDefaultPickupLocationPersonId\\\"]],\\\"_data.transporterDefaultPickupLocationPersonId\\\"]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"transporterAccountNumber\\\",[23,9,[]],\\\"transporter account\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"transporterKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@isRunning\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,10,[]],true,[23,0,[\\\"fetchTransporterTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"transporterAccountsList\\\"]],\\\"_data.name\\\",\\\"_data.account\\\",[28,\\\"fn\\\",[[23,0,[\\\"setTransporterAccountLabel\\\"]],[23,11,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadTransporterForZone\\\"]],[23,11,[]]],null],true,false,[23,11,[\\\"_data\\\",\\\"transporterAccountNumber\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"transporterAccountNumber\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"deliveryDateOptionsEnabled\\\",[23,9,[]],\\\"on checkout delivery date selection\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,10,[]],[28,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"deliveryDateOptionsEnabled\\\"]],\\\"enabled\\\",\\\"disabled\\\"],null],false,true,[23,11,[\\\"_data\\\",\\\"deliveryDateOptionsEnabled\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"deliveryDateOptionsEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@context\\\"],[[23,1,[]],\\\"delivery date settings\\\",true,true,\\\"deliveryDateOptionsKey\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@tab\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\"],[true,true,false,[23,12,[]],[23,10,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-delivery-date-options--dispatch-type-zones\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,11,[\\\"_data\\\",\\\"deliveryDateOptionsKey\\\"]],\\\"channels/shop/delivery-date-options/delivery-date-options-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"pickup date options\\\",true]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"allowTransporterArriveTimePeriod\\\",[23,1,[]],\\\"allow transporter arrive time period\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,10,[]],[28,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"allowTransporterArriveTimePeriod\\\"]],\\\"enabled\\\",\\\"disabled\\\"],null],false,true,[23,11,[\\\"_data\\\",\\\"allowTransporterArriveTimePeriod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,13,[]]]],[[\\\"@isUserAllowed\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,\\\"paymentMethods_group\\\",[23,1,[]],\\\"payment methods\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"isAllowAllPaymentMethods\\\",\\\"all_payment_methods_in_shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,10,[]],[23,0,[\\\"isAllowAllPaymentMethods\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetShopPaymentMethods\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"shopPaymentMethods\\\",[23,9,[]],\\\"shipping payment method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isAllowAllPaymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"all_payment_methods_in_shop\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-shop\\\"]],\\\"_data.value\\\",true,[23,11,[\\\"_data\\\",\\\"shopPaymentMethods\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@itemClassNames\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@onDeselect\\\",\\\"@onSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\"],[true,\\\"list-selector__item list-selector__item--horizontal\\\",[23,0,[\\\"paymentMethodsList\\\"]],[23,11,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"setZonePaymentMethodsDefault\\\"]],[23,11,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"setZonePaymentMethodsDefault\\\"]],[23,11,[]]],null],\\\"_data.value\\\",\\\"_data.shopPaymentMethods\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isAllowAllPaymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"class\\\",\\\"has-text-danger\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-label\\\",[[12,\\\"class\\\",\\\"has-text-danger\\\"]],[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fas fa-circle-info\\\",\\\"empty shipping payment methods warning\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"shopPaymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"shopPaymentMethodsDefault\\\",[23,9,[]],\\\"shipping default payment method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,10,[]],true,[23,0,[\\\"zonePaymentMethodsDefaultsList\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,[23,11,[\\\"_data\\\",\\\"shopPaymentMethodsDefault\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasCashPaymentMethod\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\"],[\\\"hasCashPaymentMethodFee\\\",[23,1,[]],\\\"has cash payment fee\\\",[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"hasCashPaymentMethodFee\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"hasCashPaymentMethodFee\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\"],[\\\"cashPaymentMethodFee\\\",[23,1,[]],\\\"cash payment fee\\\",[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,10,[]],[23,11,[\\\"_data\\\",\\\"cashPaymentMethodFee\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _ramda, _ramdaAdjunct) {\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, _dec0, _dec1, _dec10, _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 SettingsSettingsEditorZonesEditorZoneEditorZoneTablesComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class SettingsSettingsEditorZonesEditorZoneEditorZoneTablesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"countries\", _descriptor4, this);\n      _initializerDefineProperty(this, \"regionQuery\", _descriptor5, this);\n      _initializerDefineProperty(this, \"districtQuery\", _descriptor6, this);\n      _initializerDefineProperty(this, \"temp\", _descriptor7, this);\n      _initializerDefineProperty(this, \"regionsByCountries\", _descriptor8, this);\n      _defineProperty(this, \"hasSelectedIcon\", null);\n      _defineProperty(this, \"tagAutoFocus\", false);\n      _defineProperty(this, \"isShowDeselectClassNames\", null);\n      const model = this.args.model;\n      const countries = model.getData('countries') || [];\n      this.countries = countries;\n      const countryNames = _ramda.default.map(_ramda.default.path(['_data', 'code']))(countries);\n      const temp = Ember.Object.create({\n        countryNames\n      });\n      this.temp = temp;\n      const regions = this.crud.lists['settings-countries-regions'] || [];\n      const regionsByCountries = _ramda.default.groupBy(_ramda.default.path(['_data', 'code']))(regions);\n      this.regionsByCountries = regionsByCountries;\n    }\n    get countriesList() {\n      const countries = this.crud.lists['settings-countries'] || [];\n      const taiwan = _ramda.default.find(_ramda.default.pathEq(['_data', 'code'], 'TW'))(countries);\n      countries.removeObject(taiwan);\n      countries.unshiftObject(taiwan);\n      return countries;\n    }\n    updateCountries(selectedCountry) {\n      const model = this.args.model;\n      const countries = model.getData('countries') || [];\n      const code = selectedCountry.getData('code');\n      const toRemove = _ramda.default.find(_ramda.default.pathEq(['_data', 'code'], code))(countries);\n      if (toRemove) {\n        model.removeCountry(toRemove);\n      } else {\n        const code = selectedCountry.getData('code');\n        const countryModel = model.newCountry({\n          name: selectedCountry.getData('name'),\n          code,\n          regions: [],\n          districts: []\n        });\n        model.addCountry(countryModel);\n      }\n    }\n    onToggleSelectAllRegion() {\n      const model = this.args.model;\n      const countries = model.getData('countries') || [];\n      _ramda.default.forEach(country => {\n        country.setData('regions', []);\n        country.setData('districts', []);\n        const code = country?._data?.code;\n        const regions = this.crud.lists['settings-countries-regions'];\n        const selectedRegions = _ramda.default.pipe(_ramda.default.filter(_ramda.default.pathEq(['_data', 'code'], code)), _ramda.default.map(_ramda.default.path(['_data', 'key'])))(regions);\n        country.set('_data.regions', selectedRegions);\n      })(countries);\n      model.setData('countries', []);\n      Ember.run.scheduleOnce('afterRender', () => {\n        model.setData('countries', countries);\n      });\n    }\n    onToggleDeselectAllRegion() {\n      const model = this.args.model;\n      const countries = model.getData('countries') || [];\n      _ramda.default.forEach(country => {\n        country.set('_data.regions', []);\n      })(countries);\n      model.setData('countries', []);\n      Ember.run.scheduleOnce('afterRender', () => {\n        model.setData('countries', countries);\n      });\n    }\n    onToggleSelectRegionsGroup(isOutlying) {\n      const isOutlyingValue = isOutlying.toString();\n      const model = this.args.model;\n      const countries = model.getData('countries') || [];\n      _ramda.default.forEach(country => {\n        const regions = this.crud.lists['settings-countries-regions'];\n        const selected = _ramda.default.pipe(_ramda.default.filter(region => {\n          const districts = _ramda.default.pipe(_ramda.default.pathOr([], ['_data', 'districts']), _ramda.default.filter(_ramda.default.pathEq(['_data', 'is_outlying_island'], isOutlyingValue)))(region);\n          if (_ramdaAdjunct.default.isNotNilOrEmpty(districts)) {\n            return true;\n          }\n          return false;\n        }))(regions);\n        const selectedRegions = _ramda.default.map(_ramda.default.path(['_data', 'key']))(selected);\n        const selectedDistricts = _ramda.default.pipe(_ramda.default.map(region => {\n          const districts = _ramda.default.pipe(_ramda.default.pathOr([], ['_data', 'districts']), _ramda.default.filter(_ramda.default.pathEq(['_data', 'is_outlying_island'], isOutlyingValue)), _ramda.default.map(_ramda.default.path(['_data', 'postcode'])))(region);\n          const totalDistricts = _ramda.default.length(region._data.districts);\n          if (totalDistricts !== _ramda.default.length(districts)) {\n            return districts;\n          }\n          return false;\n        }), _ramda.default.reject(_ramda.default.equals(false)), _ramda.default.flatten)(selected);\n        country.set('_data.regions', selectedRegions);\n        country.set('_data.districts', selectedDistricts);\n      })(countries);\n      model.setData('countries', []);\n      Ember.run.scheduleOnce('afterRender', () => {\n        model.setData('countries', countries);\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"countries\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"regionQuery\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"districtQuery\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"temp\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"regionsByCountries\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateCountries\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"updateCountries\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleSelectAllRegion\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSelectAllRegion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleDeselectAllRegion\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleDeselectAllRegion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleSelectRegionsGroup\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSelectRegionsGroup\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, _ramda) {\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;\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 SettingsSettingsEditorZonesEditorZoneEditorZoneTablesDistrictsColumnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _class = class SettingsSettingsEditorZonesEditorZoneEditorZoneTablesDistrictsColumnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"showDistricts\", _descriptor2, this);\n      _initializerDefineProperty(this, \"selectedDistrictsForRegion\", _descriptor3, this);\n      this.setSelectedDistrictsForRegion();\n    }\n    setSelectedDistrictsForRegion() {\n      const region = this.args.region || {};\n      const country = this.args.country;\n      const allSelectedDistricts = country?._data?.districts || [];\n      this.selectedDistrictsForRegion = _ramda.default.pipe(_ramda.default.pathOr([], ['_data', 'districts']), _ramda.default.filter(district => {\n        const postcode = district.getData('postcode');\n        return _ramda.default.includes(postcode)(allSelectedDistricts);\n      }))(region);\n    }\n    get filteredDistricts() {\n      const region = this.args.region || [];\n      const districts = region.getData('districts') || [];\n      return districts;\n    }\n    onToggleSelectAllDistrict() {\n      const country = this.args.country;\n      const region = this.args.region || {};\n      const districtsForRegion = _ramda.default.pathOr([], ['_data', 'districts'])(region);\n      const selectedDistricts = country.getData('districts') || [];\n\n      // R.forEach(country => {\n      // const code = country?._data?.code\n      _ramda.default.forEach(district => {\n        const postcode = _ramda.default.path(['_data', 'postcode'])(district);\n        selectedDistricts.pushObject(postcode);\n      })(districtsForRegion);\n      country.setData('districts', []);\n      this.showDistricts = false;\n      Ember.run.scheduleOnce('afterRender', () => {\n        country.setData('districts', selectedDistricts);\n        this.setSelectedDistrictsForRegion();\n        this.showDistricts = true;\n      });\n    }\n    onToggleDeselectAllDistrict() {\n      const country = this.args.country;\n      const region = this.args.region || {};\n      const districtsForRegion = _ramda.default.pathOr([], ['_data', 'districts'])(region);\n      const selectedDistricts = country.getData('districts') || [];\n      _ramda.default.forEach(district => {\n        const postcode = _ramda.default.path(['_data', 'postcode'])(district);\n        selectedDistricts.removeObject(postcode);\n      })(districtsForRegion);\n      this.showDistricts = false;\n      country.setData('districts', []);\n      Ember.run.scheduleOnce('afterRender', () => {\n        country.setData('districts', selectedDistricts);\n        this.setSelectedDistrictsForRegion();\n        this.showDistricts = true;\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showDistricts\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"selectedDistrictsForRegion\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setSelectedDistrictsForRegion\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setSelectedDistrictsForRegion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleSelectAllDistrict\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSelectAllDistrict\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleDeselectAllDistrict\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleDeselectAllDistrict\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/districts-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, _ramda) {\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;\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 SettingsSettingsEditorZonesEditorZoneEditorZoneTablesDistrictsColumnDistrictsRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class SettingsSettingsEditorZonesEditorZoneEditorZoneTablesDistrictsColumnDistrictsRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isSelected\", _descriptor4, this);\n      const district = this.args.district;\n      const districtCode = district?._data?.postcode;\n      const selectedDistrictsForRegion = this.args.selectedDistrictsForRegion || [];\n      this.isSelected = !!_ramda.default.find(_ramda.default.pathEq(['_data', 'postcode'], districtCode))(selectedDistrictsForRegion);\n    }\n    onToggleSetSelectedDistrict(country, district, isSelected) {\n      const selectedDistrictPostCode = _ramda.default.pathOr('', ['_data', 'postcode'])(district);\n      let districts = _ramda.default.pathOr([], ['_data', 'districts'])(country);\n      if (isSelected) {\n        districts = _ramda.default.append(selectedDistrictPostCode, districts);\n      } else {\n        districts = _ramda.default.reject(_ramda.default.equals(selectedDistrictPostCode))(districts);\n      }\n      country.set('_data.districts', districts);\n      this.args.setSelectedDistrictsForRegion();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isSelected\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onToggleSetSelectedDistrict\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSetSelectedDistrict\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/districts-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"k57VMljF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@district\\\",\\\"@country\\\",\\\"@isReadonly\\\",\\\"@selectedDistrictsForRegion\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-padding-top-5 u-padding-bottom-5\\\"],[8],[0,\\\"\\\\n        - [\\\"],[1,[23,1,[\\\"_data\\\",\\\"postcode\\\"]],false],[0,\\\"] \\\"],[1,[23,1,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-padding-top-5 u-padding-bottom-5\\\"],[8],[0,\\\"\\\\n      - [\\\"],[1,[23,1,[\\\"_data\\\",\\\"postcode\\\"]],false],[0,\\\"] \\\"],[1,[23,1,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-padding-top-5 u-padding-bottom-5\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-checkbox\\\",[[12,\\\"class\\\",\\\"u-display-block\\\"]],[[\\\"@value\\\",\\\"@onToggleProperty\\\",\\\"@onAfterToggle\\\",\\\"@disabled\\\"],[[23,0,[\\\"isSelected\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"isSelected\\\"]]],null]],null],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetSelectedDistrict\\\"]],[23,2,[]],[23,1,[]]],null],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      [\\\"],[1,[23,1,[\\\"_data\\\",\\\"postcode\\\"]],false],[0,\\\"] \\\"],[1,[23,1,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/districts-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0g2TkT9K\",\n    \"block\": \"{\\\"symbols\\\":[\\\"district\\\",\\\"@country\\\",\\\"@isRegionSelected\\\",\\\"@isReadonly\\\",\\\"@region\\\",\\\"@toggleRegion\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[23,5,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"selectedDistrictsForRegion\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"all\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@class\\\",\\\"@value\\\",\\\"@onToggleProperty\\\",\\\"@onAfterToggle\\\",\\\"@disabled\\\"],[\\\"u-display-block\\\",[23,3,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[]]],null]],null],[28,\\\"fn\\\",[[23,6,[]]],null],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,5,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"selectedDistrictsForRegion\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"all\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDistricts\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"districts\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/districts-row\\\",[],[[\\\"@country\\\",\\\"@selectedDistrictsForRegion\\\",\\\"@setSelectedDistrictsForRegion\\\",\\\"@isRegionSelected\\\",\\\"@district\\\",\\\"@isReadonly\\\"],[[23,2,[]],[23,0,[\\\"selectedDistrictsForRegion\\\"]],[23,0,[\\\"setSelectedDistrictsForRegion\\\"]],[23,3,[]],[23,1,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _ramda, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SettingsSettingsEditorZonesEditorZoneEditorZoneTablesRegionsColumnComponent = _exports.default = (_dec = Ember.inject.service, _class = class SettingsSettingsEditorZonesEditorZoneEditorZoneTablesRegionsColumnComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    get regions() {\n      const regionQuery = this.args.regionQuery || '';\n      const regionsForCountry = this.args.regionsForCountry || [];\n      if (RA.isNotNilOrEmpty(regionQuery)) {\n        return _ramda.default.filter(region => {\n          return _ramda.default.anyPass([_ramda.default.pathSatisfies(name => _ramda.default.includes(_ramda.default.toLower(regionQuery), _ramda.default.toLower(name)), ['_data', 'en']), _ramda.default.pathSatisfies(name => _ramda.default.includes(_ramda.default.toLower(regionQuery), _ramda.default.toLower(name)), ['_data', 'label']), _ramda.default.pathSatisfies(name => _ramda.default.includes(_ramda.default.toLower(regionQuery), _ramda.default.toLower(name)), ['_data', 'zh-cn']), _ramda.default.pathSatisfies(name => _ramda.default.includes(_ramda.default.toLower(regionQuery), _ramda.default.toLower(name)), ['_data', 'zh-tw'])])(region);\n        })(regionsForCountry);\n      }\n      return regionsForCountry;\n    }\n    get hasSelectedRegions() {\n      const regions = this.regions;\n      const selectedRegions = _ramda.default.filter(_ramda.default.propEq('isSelected', true))(regions);\n      if (_ramda.default.length(selectedRegions) > 0) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/regions-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, _ramda) {\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;\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 SettingsSettingsEditorZonesEditorZoneEditorZoneTablesRegionsColumnRegionsRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class SettingsSettingsEditorZonesEditorZoneEditorZoneTablesRegionsColumnRegionsRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isSelected\", _descriptor4, this);\n      const country = this.args.country;\n      const countryRegions = country?._data?.regions;\n      const region = this.args.region;\n      const regionCode = region?._data?.key;\n      this.isSelected = _ramda.default.includes(regionCode, countryRegions);\n      region.isSelected = this.isSelected;\n    }\n    onToggleSetSelectedRegion(country, region, isSelected) {\n      const selectedRegionKey = _ramda.default.pathOr('', ['_data', 'key'])(region);\n      let regions = _ramda.default.pathOr([], ['_data', 'regions'])(country);\n      if (isSelected) {\n        regions = _ramda.default.append(selectedRegionKey, regions);\n      } else {\n        regions = _ramda.default.reject(_ramda.default.equals(selectedRegionKey))(regions);\n      }\n      country.set('_data.regions', regions);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isSelected\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onToggleSetSelectedRegion\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSetSelectedRegion\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/regions-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yLYmwoFu\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@shippingZone\\\",\\\"@country\\\",\\\"@region\\\",\\\"@isReadonly\\\",\\\"@hasSelectedRegions\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-padding-top-5 u-padding-bottom-5\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isSelected\\\"]],[23,7,[]]],null]],null,{\\\"statements\\\":[[0,\\\"      - \\\"],[1,[23,5,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,7,[]],false],null]],null,{\\\"statements\\\":[[0,\\\"      - \\\"],[1,[23,5,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"isPushBtn\\\",\\\"icon\\\",\\\"btnClassNames\\\"],[true,[28,\\\"if\\\",[[23,6,[]],\\\"fas fa-eye fa-xs\\\",\\\"fas fa-pen fa-xs\\\"],null],\\\"element-btn-with-modal-dialog--no-border\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column\\\",[],[[\\\"@shippingZone\\\",\\\"@country\\\",\\\"@region\\\",\\\"@toggleRegion\\\",\\\"@isRegionSelected\\\",\\\"@onCloseDialogAction\\\",\\\"@isReadonly\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetSelectedRegion\\\"]],[23,4,[]],[23,5,[]]],null],[23,0,[\\\"isSelected\\\"]],[23,2,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\",\\\"@class\\\",\\\"@value\\\",\\\"@onToggleProperty\\\",\\\"@onAfterToggle\\\"],[[23,6,[]],\\\"u-display-block\\\",[23,0,[\\\"isSelected\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"isSelected\\\"]]],null]],null],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetSelectedRegion\\\"]],[23,4,[]],[23,5,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[23,5,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isSelected\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"isPushBtn\\\",\\\"icon\\\",\\\"btnClassNames\\\"],[true,[28,\\\"if\\\",[[23,6,[]],\\\"fas fa-eye fa-xs\\\",\\\"fas fa-pen fa-xs\\\"],null],\\\"element-btn-with-modal-dialog--no-border\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/districts-column\\\",[],[[\\\"@shippingZone\\\",\\\"@country\\\",\\\"@region\\\",\\\"@toggleRegion\\\",\\\"@isRegionSelected\\\",\\\"@onCloseDialogAction\\\",\\\"@isReadonly\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetSelectedRegion\\\"]],[23,4,[]],[23,5,[]]],null],[23,0,[\\\"isSelected\\\"]],[23,1,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/regions-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VKq5nQIp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"region\\\",\\\"@isReadonly\\\",\\\"@country\\\",\\\"@shippingZone\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"regions\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"regions\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/regions-row\\\",[],[[\\\"@country\\\",\\\"@hasSelectedRegions\\\",\\\"@isReadonly\\\",\\\"@shippingZone\\\",\\\"@region\\\"],[[23,3,[]],[23,0,[\\\"hasSelectedRegions\\\"]],[23,2,[]],[23,4,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-padding-top-5 u-padding-bottom-5\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\",\\\"@class\\\",\\\"@allowToggle\\\",\\\"@value\\\"],[[23,2,[]],\\\"u-display-block\\\",false,true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"all\\\"],null],false],[0,\\\" - \\\"],[1,[23,3,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"H7Fcji/3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"country\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@isConvenienceStore\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width zone-editor__table-zone\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-width-20\\\"],[8],[1,[28,\\\"tt\\\",[\\\"countries\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"regions\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-width-20\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\"],[[28,\\\"or\\\",[[23,2,[]],[23,4,[]]],null],\\\"fas fa-plus\\\",\\\"country\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@filterFromStart\\\",\\\"@label\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@onDeselect\\\",\\\"@onSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[true,true,true,\\\"countries\\\",[23,0,[\\\"countriesList\\\"]],[23,0,[\\\"temp\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"updateCountries\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"updateCountries\\\"]]],null],\\\"_data.name\\\",\\\"_data.code\\\",false,\\\"countryNames\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-padding-top-10 u-padding-bottom-10\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"countries\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"regionQuery\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[true,\\\"select all\\\",\\\"mr-0\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleSelectAllRegion\\\"]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[true,\\\"deselect all\\\",\\\"mr-0=\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleDeselectAllRegion\\\"]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[true,\\\"select all outlying\\\",\\\"mr-0\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleSelectRegionsGroup\\\"]],true],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[true,\\\"select all main island\\\",\\\"mr-0\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleSelectRegionsGroup\\\"]],false],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"countries\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-width-20\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"zone-editor__span--block-heading\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/regions-column\\\",[],[[\\\"@country\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onToggleSelectRegionsGroup\\\",\\\"@regionsForCountry\\\",\\\"@regionQuery\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,0,[\\\"onToggleSelectRegionsGroup\\\"]],[28,\\\"get\\\",[[23,0,[\\\"regionsByCountries\\\"]],[23,1,[\\\"_data\\\",\\\"code\\\"]]],null],[23,0,[\\\"regionQuery\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/details-editor/zone-tables/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IjI5oTjb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@onDash\\\",\\\"@isReadonly\\\",\\\"@isRunning\\\",\\\"@onRemoveRecordTask\\\",\\\"@isNew\\\",\\\"@onCancel\\\",\\\"@model\\\",\\\"@onSaveTask\\\",\\\"@isEditing\\\",\\\"@tab\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,8,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,11,[]],[23,11,[\\\"subTabs\\\"]],[23,12,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-lists-sub-panels-editor\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,11,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,10,[]],true],null],[28,\\\"eq\\\",[[23,6,[]],false],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"edit\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,10,[]],true],null],[28,\\\"eq\\\",[[23,6,[]],true],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"new\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,8,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,11,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"errors\\\",\\\"isDisabled\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"tab\\\"],[[23,12,[]],[23,0,[\\\"isDisabled\\\"]],[23,10,[]],[23,0,[\\\"isReadonly\\\"]],[23,8,[]],[23,1,[]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@model\\\",\\\"@hasErrors\\\",\\\"@errors\\\"],[[23,8,[]],[23,0,[\\\"hasErrors\\\"]],[23,12,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[23,3,[]],[23,4,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"disabled\\\"]],[23,8,[\\\"hasAnyIncorrectRates\\\"]]],null],[23,4,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[false,[23,2,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"edit\\\",\\\"u-btn\\\",[28,\\\"fn\\\",[[23,0,[\\\"editPanel\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/shipping-zones-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/tab-container/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _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 ChannelsShopShippingZonesTabContainerComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class ChannelsShopShippingZonesTabContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"hasLoadedInstructions\", _descriptor7, this);\n      _initializerDefineProperty(this, \"listsIsLoaded\", _descriptor8, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/shipping-zones');\n      _defineProperty(this, \"filtersAdapterName\", 'channels/shop/shipping-zones/filters');\n      this.crud.addLists(this, ['statuses', 'channels/shop/shipping-zones/lists/menu', 'channels/shop/shipping-zones/lists/sub-panels', 'channels/shop/shipping-zones/lists/sub-panels-editor', 'channels/shop/shipping-zones/lists/zone-types', 'channels/shop/shipping-zones/lists/product-tags-when', 'contacts/transporters', 'extensions/apps/tw/convenience-stores/lists/brands', 'paymentMethods/shop', 'products/lists/tags', 'settings/countries', 'settings/countries/regions', 'websites', 'units/weight']);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          fetchWithCampaigns: true\n        }\n      });\n      Ember.set(this, 'filters', filters);\n    }\n    afterLoadLists() {\n      this.fetchAndDisplayTask.perform();\n    }\n    *fetchAndDisplayTask() {\n      const tab = this.args?.tab || {};\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions && !this.hasLoadedInstructions) {\n        this.hasLoadedInstructions = true;\n        const model = loadInstructions?._data?.model;\n        if (model) {\n          this.display(loadInstructions?._data?.model);\n        } else {\n          const id = loadInstructions?._data?.find?.id || '';\n          const found = yield this.crud.findTask.perform({\n            adapterName: this.adapterName,\n            appendPath: id\n          });\n          this.display(found);\n        }\n      } else {\n        const filters = this.filters;\n        const model = yield this.crud.searchRecordsTask.perform({\n          adapterName: this.adapterName,\n          query: '',\n          filters\n        });\n\n        // PREVENT INFINITE LOOP OF SEARCHING\n        if (model) {\n          this.dashFn(model);\n        }\n      }\n    }\n    dashFn(model, additionalOptions) {\n      const subTabOptions = {\n        component: 'channels/shop/shipping-zones/panels-dash',\n        model: model\n      };\n      if (!model) {\n        const filters = this.filters;\n        filters.setData('query', '');\n        this.fetchAndDisplayTask.perform();\n      }\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions, additionalOptions);\n    }\n    displayFn(model, additionalOptions) {\n      const subTabOptions = {\n        component: 'channels/shop/shipping-zones/panels-display',\n        model\n      };\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions, additionalOptions);\n    }\n    editFn(model, additionalOptions) {\n      const subTabOptions = {\n        component: 'channels/shop/shipping-zones/panels-edit',\n        model\n      };\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions, additionalOptions);\n    }\n    dash() {\n      this.dashFn();\n    }\n    display(model) {\n      if (model) {\n        this.displayFn(model);\n      } else {\n        this.dashFn();\n      }\n    }\n    edit(model, additionalOptions) {\n      this.editFn(model, additionalOptions);\n    }\n    new() {\n      const subTabOptions = {\n        component: 'channels/shop/shipping-zones/panels-new'\n      };\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"hasLoadedInstructions\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"listsIsLoaded\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchAndDisplayTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchAndDisplayTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dash\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"dash\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"display\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"display\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"edit\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"edit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"new\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"new\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"z4nQQ2Hy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[\\\"channels/shop/shipping-zones\\\",[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"afterTabSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\",\\\"ignoreForComponent\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[]],\\\"channels/shop/shipping-zones/panels-dash\\\"]]]],null],\\\"shipping zones\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"shipping-zones\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@classNames\\\",\\\"@count\\\",\\\"@filters\\\",\\\"@itemClassNames\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[\\\"u-results__list\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[23,0,[\\\"filters\\\"]],\\\"u-results__item\\\",\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"channels/shop/shipping-zones/search-results\\\",[],[[\\\"@result\\\",\\\"@query\\\"],[[23,2,[]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"fetchAndDisplayTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,6,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"filters\\\",\\\"onCancel\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onSearchTask\\\",\\\"results\\\",\\\"tab\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dash\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dash\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"edit\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 ChannelsShopShippingZonesTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _class = class ChannelsShopShippingZonesTableViewDetailRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaigns\", _descriptor2, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/locations', {\n        adapterName: 'channels/shop/delivery-date-options',\n        appendPath: 'dispatch-type/zones'\n      }]);\n    }\n    *fetchCampaignsListTask() {\n      const zoneId = this?.args?.model?._data?.zoneId;\n      const campaigns = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'channels/shop/shipping-zones/lists/campaigns',\n        appendPath: zoneId,\n        options: {\n          isPartial: true\n        }\n      });\n      this.campaigns = campaigns;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaigns\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignsListTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignsListTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/channels/shop/shipping-zones/table-view/detail-row/detail-row-rates/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"u78hEkwX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"rate\\\",\\\"@rates\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content table-form--no-border\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"min\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"max\\\"]],\\\"0\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"max\\\"]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"          +\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          ~\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"max\\\"]],\\\"0\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"max\\\"]],0],null]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"max\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"rate\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/table-view/detail-row/detail-row-rates/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shipping-zones/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5Zu1pHNv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"campaign\\\",\\\"campaign\\\",\\\"freeShippingRule\\\",\\\"rule\\\",\\\"ruleIndex\\\",\\\"country\\\",\\\"@model\\\",\\\"@onEdit\\\",\\\"@onDisplay\\\",\\\"@rowIndex\\\",\\\"@query\\\",\\\"@isDetailRow\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,14,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[\\\"channels/shop/shipping-zones\\\",\\\"name\\\",[23,14,[]],[23,15,[]],[28,\\\"perform\\\",[[23,16,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,14,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[\\\"channels/shop/shipping-zones\\\",\\\"zoneType\\\",[23,14,[]],[23,15,[]],[28,\\\"perform\\\",[[23,16,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,14,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"shipping type\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"area\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[\\\"channels/shop/shipping-zones\\\",\\\"transporterLabel\\\",[23,14,[]],[23,15,[]],[28,\\\"perform\\\",[[23,16,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,14,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"product tags\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"shipping rate\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"shipping payment method\\\"],null],false],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"delivery date settings\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"additional free shipping rule\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[\\\"channels/shop/shipping-zones\\\",\\\"timestampZ_latest\\\",[23,14,[]],[23,15,[]],[28,\\\"perform\\\",[[23,16,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,14,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered w-5\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,11,[]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",\\\"u-main-focus u-no-wrap\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,10,[]],[23,8,[]]],null]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[23,8,[\\\"_data\\\",\\\"name\\\"]],[23,12,[]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"isSplit\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-cut\\\"]]],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"split_shipping\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-lists-zone-types\\\"]],\\\"_data.value\\\",true,[23,8,[\\\"_data\\\",\\\"zoneType\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,8,[\\\"_data\\\",\\\"countries\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[8],[1,[23,7,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,8,[\\\"_data\\\",\\\"transporterLabel\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"transporterAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          (\\\"],[1,[23,8,[\\\"_data\\\",\\\"transporterAccount\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,8,[\\\"_data\\\",\\\"productTags\\\"]],[23,8,[\\\"_data\\\",\\\"denyProductTags\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"productTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,8,[\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"denyProductTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",\\\"fas fa-times\\\",false,[23,8,[\\\"_data\\\",\\\"denyProductTags\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"all\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"hasNoRates\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"no rates\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"isValueBased\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"value based rates\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[5,\\\"channels/shop/shipping-zones/table-view/detail-row/detail-row-rates\\\",[],[[\\\"@rates\\\"],[[23,8,[\\\"_data\\\",\\\"valueBasedRates\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"isWeightBased\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"weight based rates\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[5,\\\"channels/shop/shipping-zones/table-view/detail-row/detail-row-rates\\\",[],[[\\\"@rates\\\"],[[23,8,[\\\"_data\\\",\\\"weightBasedRates\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"isQuantityBased\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"quantity based rates\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[5,\\\"channels/shop/shipping-zones/table-view/detail-row/detail-row-rates\\\",[],[[\\\"@rates\\\"],[[23,8,[\\\"_data\\\",\\\"quantityBasedRates\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,8,[\\\"_data\\\",\\\"isValueBased\\\"]]],null],[28,\\\"not\\\",[[23,8,[\\\"_data\\\",\\\"isWeightBased\\\"]]],null],[28,\\\"not\\\",[[23,8,[\\\"_data\\\",\\\"isQuantityBased\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"channels/shop/shipping-zones/table-view/detail-row/detail-row-rates\\\",[],[[\\\"@rates\\\"],[[23,8,[\\\"_data\\\",\\\"rates\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,8,[\\\"hasCashPaymentMethod\\\"]],[23,8,[\\\"_data\\\",\\\"hasCashPaymentMethodFee\\\"]],[28,\\\"gt\\\",[[23,8,[\\\"_data\\\",\\\"cashPaymentMethodFee\\\"]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"cash payment fee\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"currency\\\",[[23,8,[\\\"_data\\\",\\\"cashPaymentMethodFee\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"shopPaymentMethods\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-shop\\\",\\\"length\\\"]],[23,8,[\\\"_data\\\",\\\"shopPaymentMethods\\\",\\\"length\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"all_payment_methods_in_shop\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-shop\\\"]],\\\"_data.value\\\",true,[23,8,[\\\"_data\\\",\\\"shopPaymentMethods\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"all_payment_methods_in_shop\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"hasEnableDeliveryDateOptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-delivery-date-options--dispatch-type-zones\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",false,[23,8,[\\\"_data\\\",\\\"deliveryDateOptionsKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"freeShippingRules\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,8,[\\\"_data\\\",\\\"freeShippingRules\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"matchRule\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              -\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag u-margin-bottom-5\\\"],[8],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"free_shipping_\\\",[23,4,[\\\"_data\\\",\\\"matchRule\\\"]]],null]],null],false],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"rules\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,5,[\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\":\\\\n                    \\\"],[1,[28,\\\"tt\\\",[[23,5,[\\\"_data\\\",\\\"when\\\"]]],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[23,5,[\\\"_data\\\",\\\"criteria\\\"]]],null],false],[0,\\\" \\\"],[1,[23,5,[\\\"_data\\\",\\\"value\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          -\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"dateTime\\\",[[23,8,[\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@iconOnly\\\",\\\"@model\\\"],[true,[23,8,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@classNames\\\"],[\\\"shop\\\",\\\"is-btn-like\\\"]]],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row tags-container flex-children-v-align-auto\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,8,[\\\"campaigns\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-truncate\\\"],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[23,3,[\\\"_data\\\",\\\"_key\\\"]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"unless\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"status\\\"]],\\\"active\\\"],null],\\\"is-danger\\\"],null]]]],[8],[0,\\\"\\\\n                      \\\"],[1,[23,3,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"hasManyCampaigns\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@hasToggleIconRight\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[false,false,\\\"fas fa-ellipsis-h\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchCampaignsListTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchCampaignsListTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"campaigns\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-truncate\\\"],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[23,2,[\\\"_data\\\",\\\"_key\\\"]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"unless\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"status\\\"]],\\\"active\\\"],null],\\\"is-danger\\\"],null]]]],[8],[0,\\\"\\\\n                            \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n                        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",\\\"view\\\",[28,\\\"fn\\\",[[23,10,[]],[23,8,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-pen\\\",[28,\\\"fn\\\",[[23,9,[]],[23,8,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group new-table-view__tr-group--separator\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shipping-zones/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shop-commissions-status/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopShopCommissionsStatusComponent extends _component.default {}\n  _exports.default = ChannelsShopShopCommissionsStatusComponent;\n});","define(\"client/pods/components/channels/shop/shop-commissions-status/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"iFeLsM5b\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"commissionsLatest\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"icon fa-solid fa-sack-dollar\\\"]]],false],[0,\\\"\\\\n     \\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"commissions calculated\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"commissionsLatest\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shop-commissions-status/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shop-sales-persons/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ChannelsShopShopSalesPersonsComponent extends _component.default {}\n  _exports.default = ChannelsShopShopSalesPersonsComponent;\n});","define(\"client/pods/components/channels/shop/shop-sales-persons/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PrwdyfSP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"salesPerson\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shop-sales-persons/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/channels/shop/shop-status/component\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    tagName: '',\n    badgeOnly: false,\n    // classNames: ['tag'],\n    // classNameBindings: ['isOnline:is-primary:is-danger'],\n    getDateEndZ() {\n      const now = this.getMoment();\n      let dateEndZ = this.get('model._data.dateEndZ') || now;\n      return this.getEndOfDayZ(dateEndZ);\n    },\n    status: Ember.computed('model.{_data.status,_data.dateStartZ,_data.dateEndZ}', function () {\n      const status = this.get('model._data.status');\n      const now = this.getMoment();\n      const dateStartZ = this.get('model._data.dateStartZ') || now;\n      const dateEndZ = this.getDateEndZ();\n      const intl = this.intl;\n      if (status === 'archived') {\n        return intl.t('archived');\n      }\n      if (now.isSameOrAfter(dateStartZ) && now.isSameOrBefore(dateEndZ) && status === this.get('constants.status.active')) {\n        return intl.t('online');\n      }\n      if (status === this.get('constants.status.inactive') || status === this.get('constants.status.suspended')) {\n        return intl.t('offline') + ': ' + intl.t(status);\n      }\n      if (now.isBefore(dateStartZ)) {\n        return intl.t('offline') + ': ' + intl.t(status);\n      }\n      if (now.isAfter(dateEndZ)) {\n        return intl.t('offline') + ': ' + intl.t('expired');\n      }\n    }),\n    statusClassName: Ember.computed('model.{_data.status,_data.dateStartZ,_data.dateEndZ}', function () {\n      const status = this.get('model._data.status');\n      const now = this.getMoment();\n      const dateStartZ = this.get('model._data.dateStartZ') || now;\n      const dateEndZ = this.getDateEndZ();\n      if (now.isSameOrAfter(dateStartZ) && now.isSameOrBefore(dateEndZ) && status === this.constants.status.active) {\n        return 'is-primary';\n      }\n      if (status === this.constants.campaignStatus.archived) {\n        return 'is-dark';\n      }\n      return 'is-danger';\n    })\n  });\n});","define(\"client/pods/components/channels/shop/shop-status/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"d2txiV42\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@tagClassNames\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"badgeOnly\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[28,\\\"if\\\",[[24,[\\\"isOnline\\\"]],\\\"has-text-primary\\\",\\\"has-text-danger\\\"],null],\\\" \\\",[23,2,[]]]]],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-circle\\\"]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"],[1,[28,\\\"channels/shop/shop-status\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,0,[\\\"statusClassName\\\"]],\\\" \\\",[23,2,[]]]]],[8],[0,\\\"\\\\n    \\\"],[1,[23,0,[\\\"status\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/channels/shop/shop-status/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/color-picker/component\", [\"exports\", \"@ctrl/tinycolor\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _tinycolor, _component, R, RA, R_) {\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, _dec0, _dec1, _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, _dec40, _dec41, _dec42, _dec43, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ColorPickerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember.computed('args.defaultSwatchesList.[]', 'crud.lists.swatches.[]'), _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _dec31 = Ember._action, _dec32 = Ember._action, _dec33 = Ember._action, _dec34 = Ember._action, _dec35 = Ember._action, _dec36 = Ember._action, _dec37 = Ember._action, _dec38 = Ember._action, _dec39 = Ember._action, _dec40 = Ember._action, _dec41 = Ember._action, _dec42 = Ember._action, _dec43 = Ember._action, _class = class ColorPickerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"markAsDeletedArr\", _descriptor2, this);\n      _initializerDefineProperty(this, \"editUserSwatches\", _descriptor3, this);\n      _initializerDefineProperty(this, \"colorPickerModel\", _descriptor4, this);\n      _initializerDefineProperty(this, \"currentColor\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hue\", _descriptor6, this);\n      _initializerDefineProperty(this, \"saturation\", _descriptor7, this);\n      _initializerDefineProperty(this, \"lightness\", _descriptor8, this);\n      _initializerDefineProperty(this, \"icon\", _descriptor9, this);\n      _initializerDefineProperty(this, \"swatches\", _descriptor0, this);\n      _initializerDefineProperty(this, \"spectrumCanvas\", _descriptor1, this);\n      _initializerDefineProperty(this, \"spectrumCtx\", _descriptor10, this);\n      _initializerDefineProperty(this, \"spectrumCursor\", _descriptor11, this);\n      _initializerDefineProperty(this, \"spectrumRect\", _descriptor12, this);\n      _initializerDefineProperty(this, \"hueCanvas\", _descriptor13, this);\n      _initializerDefineProperty(this, \"hueCtx\", _descriptor14, this);\n      _initializerDefineProperty(this, \"hueCursor\", _descriptor15, this);\n      _initializerDefineProperty(this, \"hueRect\", _descriptor16, this);\n      _initializerDefineProperty(this, \"hex\", _descriptor17, this);\n      _defineProperty(this, \"adapterName\", 'color-picker');\n      _defineProperty(this, \"iconId\", `drop-${Ember.guidFor(this)}`);\n      _defineProperty(this, \"swatchesId\", `default-swatches-${Ember.guidFor(this)}`);\n      _defineProperty(this, \"spectrumCanvasId\", `spectrum-canvas-${Ember.guidFor(this)}`);\n      _defineProperty(this, \"spectrumCursorId\", `spectrum-cursor-${Ember.guidFor(this)}`);\n      _defineProperty(this, \"hueCanvasId\", `hue-canvas-${Ember.guidFor(this)}`);\n      _defineProperty(this, \"hueCursorId\", `hue-cursor-${Ember.guidFor(this)}`);\n      _defineProperty(this, \"hexId\", `hex-${Ember.guidFor(this)}`);\n      _defineProperty(this, \"isVisible\", elem => !!elem && !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length));\n      this.crud.addLists(this, ['swatches']);\n    }\n    get isMarkAsDeletedArrEmpty() {\n      return this.markAsDeletedArr.length === 0;\n    }\n    get defaultSwatchesList() {\n      const defaultSwatchesList = this.args.defaultSwatchesList || [];\n      if (RA.isNotNilOrEmpty(defaultSwatchesList)) {\n        return defaultSwatchesList;\n      }\n      return R.pipe(R_.dotPathOr([], 'crud.lists.swatches'), R.filter(R.propEq('isDefault', true)))(this);\n    }\n    get defaultSwatches() {\n      return R.pipe(R_.dotPathOr([], 'defaultSwatchesList'), R.map(R.pathOr([{}], ['_data'])), R.pluck('color'), R.reject(RA.isNilOrEmpty))(this);\n    }\n    get userSwatchModels() {\n      return R.pipe(R_.dotPathOr([], 'crud.lists.swatches'), R.reject(R.anyPass([R.pathEq(['_data', 'isDefault'], true)])), R.map(R.over(R.lensPath(['_data', 'color']), color => new _tinycolor.default(color))))(this);\n    }\n    get userSwatches() {\n      if (this.editUserSwatches) {\n        return this.setAlpha(this.userSwatchModels);\n      } else {\n        return this.userSwatchModels;\n      }\n    }\n    get isOverLimit() {\n      return this.userSwatches.length >= 21;\n    }\n    setAlpha(colors) {\n      return R.map(R.over(R.lensPath(['_data', 'color']), color => new _tinycolor.default(color).setAlpha(0.5)))(colors);\n    }\n    getElementByClassName(elementId) {\n      return document.getElementsByClassName(elementId)[0];\n    }\n    getContext2d(canvasElement) {\n      return canvasElement.getContext('2d');\n    }\n    setModelColor(color) {\n      const colorKey = R.pathOr(null, ['colorKey'])(this.args);\n      if (colorKey) {\n        this.args.model.setData(colorKey, color.toHexString());\n      }\n    }\n    hideOnClickOutside(element) {\n      const outsideClickListener = event => {\n        if (!element.contains(event.target) && this.isVisible(element)) {\n          // or use: event.target.closest(selector) === null\n          this.args.toggleColorPicker();\n          removeClickListener();\n        }\n      };\n      const removeClickListener = () => document.removeEventListener('click', outsideClickListener);\n      document.addEventListener('click', outsideClickListener);\n    }\n    initialSetup(element) {\n      this.hideOnClickOutside(element);\n      this.icon = this.getElementByClassName(this.iconId);\n      this.swatches = this.getElementByClassName(this.swatchesId);\n      this.spectrumCanvas = this.getElementByClassName(this.spectrumCanvasId);\n      this.spectrumCtx = this.getContext2d(this.spectrumCanvas);\n      this.spectrumCursor = this.getElementByClassName(this.spectrumCursorId);\n      this.spectrumRect = this.spectrumCanvas.getBoundingClientRect();\n      this.hueCanvas = this.getElementByClassName(this.hueCanvasId);\n      this.hueCtx = this.getContext2d(this.hueCanvas);\n      this.hueCursor = this.getElementByClassName(this.hueCursorId);\n      this.hueRect = this.hueCanvas.getBoundingClientRect();\n      this.hex = this.getElementByClassName(this.hexId);\n      this.createShadeSpectrum();\n      this.createHueSpectrum();\n      if (this.args.color) {\n        this.setColorFromModel();\n      }\n      this.addEventListeners();\n    }\n    setColorFromModel() {\n      const color = new _tinycolor.default(this.args.color);\n      if (color.isValid) {\n        this.colorToPos(color);\n        this.setColorValues(color);\n      }\n    }\n    addIcon(element, options) {\n      const {\n        iconColor = '#fff',\n        spanClassName = 'icon',\n        iconClassName = 'fas fa-dizzy'\n      } = options;\n      const span = document.createElement('span');\n      const icon = document.createElement('i');\n      icon.style.color = iconColor;\n      span.appendChild(icon);\n      span.className = spanClassName;\n      icon.className = iconClassName;\n      element.appendChild(span);\n      element.classList.add('button');\n    }\n    setButtonBackgroundColor(element) {\n      const hexColor = R.pathOr('#fff', ['dataset', 'color'])(element);\n      const color = new _tinycolor.default(hexColor);\n      const style = R.pathOr({}, ['style'])(element);\n      const isDeleted = R.pathOr(null, ['dataset', 'deleted'])(element);\n      if (isDeleted) {\n        color.setAlpha(0.3);\n        this.addIcon(element, {\n          spanClassName: 'icon is-small',\n          iconClassName: 'fas fa-ban'\n        });\n      }\n      style.backgroundColor = color;\n    }\n    addEventListeners() {\n      window.addEventListener('resize', this.refreshElementRects);\n      this.spectrumCanvas.addEventListener('mousedown', this.startGetSpectrumColor);\n    }\n\n    /**\n     * Feature: This event is to register the color picker hex input\n     * it can be use to convert hex values in the colours spectrum\n     *\n     * ```js\n     *     @action\n     *     addEventListeners () {\n     *       window.addEventListener('resize', this.refreshElementRects)\n     *       this.hex.addEventListener('input', () => {\n     *         this.hex.value = this.hex.value.toUpperCase()\n     *         const color = new TinyColor(this.hex.value)\n     *         this.setCurrentColor(color)\n     *       })\n     *       this.spectrumCanvas.addEventListener('mousedown', this.startGetSpectrumColor)\n     *     }\n     * ```\n     */\n\n    addUserSwatch() {\n      const color = new _tinycolor.default(this.currentColor);\n      const swatchesModel = this.crud.setupNewRecord({\n        adapterName: 'swatches',\n        data: {\n          color\n        }\n      });\n      this.crud.createRecordTask.perform({\n        adapterName: 'swatches',\n        model: swatchesModel\n      });\n    }\n    markAsDeleted(e) {\n      // Get selected color\n      const {\n        currentTarget\n      } = e;\n      const colorIndex = currentTarget.dataset.index;\n      const userSwatches = this.userSwatchModels;\n      const colorId = R.view(R.lensPath([colorIndex, '_data', '_id']))(userSwatches);\n      const isMarked = R.pipe(R.filter(R.pathEq(['_data', '_id'], colorId)), R.isEmpty, R.not)(this.markAsDeletedArr);\n      if (isMarked) {\n        const markedIndex = R.findIndex(R.pathEq(['_data', '_id'], colorId))(this.markAsDeletedArr);\n        this.markAsDeletedArr.removeAt(markedIndex);\n        const hasChild = currentTarget.childElementCount >= 1;\n        if (hasChild) {\n          currentTarget.removeChild(currentTarget.firstChild);\n        }\n      } else {\n        this.markAsDeletedArr.pushObject(userSwatches[colorIndex]);\n        this.addIcon(currentTarget, {\n          iconColor: '#414141',\n          spanClassName: 'icon is-small',\n          iconClassName: 'far fa-check-circle'\n        });\n      }\n    }\n\n    /**\n     * Swatch on click set color\n     * */\n    colorController(e) {\n      const {\n        currentTarget\n      } = e;\n      const isDeleted = R.pathEq(['dataset', 'deleted'], 'true')(currentTarget);\n      if (isDeleted) {\n        return;\n      }\n      if (this.editUserSwatches) {\n        this.markAsDeleted(e);\n      } else {\n        const color = new _tinycolor.default(currentTarget.dataset.color);\n        this.colorToPos(color);\n        this.setColorValues(color);\n      }\n    }\n    setColorValues(c) {\n      // convert to new TinyColor object\n      const color = new _tinycolor.default(c);\n      const hexValue = color.toHex();\n      // set inputs\n      this.hex.value = hexValue.toUpperCase();\n      this.icon.style.color = color;\n    }\n    colorToPos(c) {\n      const color = new _tinycolor.default(c);\n      const hsl = color.toHsl();\n      this.hue = hsl.h;\n      const hsv = color.toHsv();\n      const x = this.spectrumRect.width * hsv.s;\n      const y = this.spectrumRect.height * (1 - hsv.v);\n      const hueY = this.hueRect.height - this.hue / 360 * this.hueRect.height;\n      this.updateSpectrumCursor(x, y);\n      this.updateHueCursor(hueY);\n      this.setCurrentColor(color);\n      this.createShadeSpectrum(this.colorToHue(color));\n    }\n    updateSpectrumCursor(x, y) {\n      // assign position\n      this.spectrumCursor.style.left = `${x}px`;\n      this.spectrumCursor.style.top = `${y}px`;\n    }\n    updateHueCursor(y) {\n      this.hueCursor.style.top = `${y}px`;\n    }\n\n    /**\n     * Set button 'toggle' color\n     * */\n    setCurrentColor(c) {\n      const color = new _tinycolor.default(c);\n      this.setModelColor(color);\n      this.currentColor = color;\n      this.spectrumCursor.style.backgroundColor = color;\n      this.hueCursor.style.backgroundColor = new _tinycolor.default({\n        h: color.toHsl().h,\n        s: 1,\n        l: 0.5\n      });\n    }\n    createHueSpectrum() {\n      const canvas = this.hueCanvas;\n      const ctx = this.hueCtx;\n      const hueGradient = ctx.createLinearGradient(0, 0, 0, canvas.height);\n      hueGradient.addColorStop(0.00, 'hsl(0,100%,50%)');\n      hueGradient.addColorStop(0.17, 'hsl(298.8, 100%, 50%)');\n      hueGradient.addColorStop(0.33, 'hsl(241.2, 100%, 50%)');\n      hueGradient.addColorStop(0.50, 'hsl(180, 100%, 50%)');\n      hueGradient.addColorStop(0.67, 'hsl(118.8, 100%, 50%)');\n      hueGradient.addColorStop(0.83, 'hsl(61.2,100%,50%)');\n      hueGradient.addColorStop(1.00, 'hsl(360,100%,50%)');\n      ctx.fillStyle = hueGradient;\n      ctx.fillRect(0, 0, canvas.width, canvas.height);\n      canvas.addEventListener('mousedown', this.startGetHueColor);\n    }\n    startGetHueColor(e) {\n      this.getHueColor(e);\n      this.hueCursor.classList.add('dragging');\n      window.addEventListener('mousemove', this.getHueColor);\n      window.addEventListener('mouseup', this.endGetHueColor);\n    }\n    endGetHueColor() {\n      this.hueCursor.classList.remove('dragging');\n      window.removeEventListener('mousemove', this.getHueColor);\n    }\n    colorToHue(c) {\n      const color = new _tinycolor.default(c);\n      return new _tinycolor.default({\n        h: color.toHsl().h,\n        s: 1,\n        l: 0.5\n      });\n    }\n    createShadeSpectrum(color) {\n      const canvas = this.spectrumCanvas;\n      const ctx = this.spectrumCtx;\n      ctx.clearRect(0, 0, canvas.width, canvas.height);\n      if (!color) {\n        color = '#f00';\n      }\n      ctx.fillStyle = color;\n      ctx.fillRect(0, 0, canvas.width, canvas.height);\n      const whiteGradient = ctx.createLinearGradient(0, 0, canvas.width, 0);\n      whiteGradient.addColorStop(0, '#fff');\n      whiteGradient.addColorStop(1, 'transparent');\n      ctx.fillStyle = whiteGradient;\n      ctx.fillRect(0, 0, canvas.width, canvas.height);\n      const blackGradient = ctx.createLinearGradient(0, 0, 0, canvas.height);\n      blackGradient.addColorStop(0, 'transparent');\n      blackGradient.addColorStop(1, '#000');\n      ctx.fillStyle = blackGradient;\n      ctx.fillRect(0, 0, canvas.width, canvas.height);\n    }\n    startGetSpectrumColor(e) {\n      this.getSpectrumColor(e);\n      this.spectrumCursor.classList.add('dragging');\n      window.addEventListener('mousemove', this.getSpectrumColor);\n      window.addEventListener('mouseup', this.endGetSpectrumColor);\n    }\n    getSpectrumColor(e) {\n      this.refreshElementRects();\n      // got some help here - http://stackoverflow.com/questions/23520909/get-hsl-value-given-x-y-and-hue\n      e.preventDefault();\n      // get x/y coordinates\n      let x = e.clientX - this.spectrumRect.left;\n      let y = e.clientY - this.spectrumRect.top;\n      // constrain x max\n      if (x > this.spectrumRect.width) {\n        x = this.spectrumRect.width;\n      }\n      if (x < 0) {\n        x = 0;\n      }\n      if (y > this.spectrumRect.height) {\n        y = this.spectrumRect.height;\n      }\n      if (y < 0) {\n        y = 0.1;\n      }\n      // convert between hsv and hsl\n      const xRatio = x / this.spectrumRect.width * 100;\n      const yRatio = y / this.spectrumRect.height * 100;\n      const hsvValue = 1 - yRatio / 100;\n      const hsvSaturation = xRatio / 100;\n      this.lightness = hsvValue / 2 * (2 - hsvSaturation);\n      this.saturation = hsvValue * hsvSaturation / (1 - Math.abs(2 * this.lightness - 1));\n      const color = new _tinycolor.default({\n        h: this.hue,\n        s: this.saturation,\n        l: this.lightness\n      });\n      this.setCurrentColor(color);\n      this.setColorValues(color);\n      this.updateSpectrumCursor(x, y);\n    }\n    endGetSpectrumColor() {\n      this.spectrumCursor.classList.remove('dragging');\n      window.removeEventListener('mousemove', this.getSpectrumColor);\n    }\n    getHueColor(e) {\n      this.refreshElementRects();\n      e.preventDefault();\n      let y = e.clientY - this.hueRect.top;\n      if (y > this.hueRect.height) {\n        y = this.hueRect.height;\n      }\n      if (y < 0) {\n        y = 0;\n      }\n      const percent = y / this.hueRect.height;\n      this.hue = 360 - 360 * percent;\n      const hueColor = new _tinycolor.default({\n        h: this.hue,\n        s: 1,\n        l: 0.5\n      }).toHslString();\n      const color = new _tinycolor.default({\n        h: this.hue,\n        s: this.saturation,\n        l: this.lightness\n      }).toHslString();\n      this.createShadeSpectrum(hueColor);\n      this.updateHueCursor(y, hueColor);\n      this.setCurrentColor(color);\n      this.setColorValues(color);\n    }\n    refreshElementRects() {\n      this.spectrumRect = this.spectrumCanvas.getBoundingClientRect();\n      this.hueRect = this.hueCanvas.getBoundingClientRect();\n    }\n    toggleEdit() {\n      this.markAsDeletedArr.clear();\n      this.editUserSwatches = !this.editUserSwatches;\n    }\n    removeColors() {\n      this.crud.removeBatchTask.perform({\n        method: 'DELETE',\n        adapterName: 'swatches',\n        batch: this.markAsDeletedArr\n      });\n      this.toggleEdit();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"markAsDeletedArr\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"editUserSwatches\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"colorPickerModel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"currentColor\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hue\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"saturation\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"lightness\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0.5;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"icon\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"swatches\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"spectrumCanvas\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"spectrumCtx\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"spectrumCursor\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"spectrumRect\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"hueCanvas\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"hueCtx\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"hueCursor\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"hueRect\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"hex\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"defaultSwatchesList\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"defaultSwatchesList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hideOnClickOutside\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"hideOnClickOutside\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"initialSetup\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"initialSetup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setColorFromModel\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"setColorFromModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setButtonBackgroundColor\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"setButtonBackgroundColor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addEventListeners\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"addEventListeners\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addUserSwatch\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"addUserSwatch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markAsDeleted\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"markAsDeleted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"colorController\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"colorController\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setColorValues\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"setColorValues\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"colorToPos\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"colorToPos\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateSpectrumCursor\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"updateSpectrumCursor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateHueCursor\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"updateHueCursor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCurrentColor\", [_dec31], Object.getOwnPropertyDescriptor(_class.prototype, \"setCurrentColor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createHueSpectrum\", [_dec32], Object.getOwnPropertyDescriptor(_class.prototype, \"createHueSpectrum\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startGetHueColor\", [_dec33], Object.getOwnPropertyDescriptor(_class.prototype, \"startGetHueColor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"endGetHueColor\", [_dec34], Object.getOwnPropertyDescriptor(_class.prototype, \"endGetHueColor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"colorToHue\", [_dec35], Object.getOwnPropertyDescriptor(_class.prototype, \"colorToHue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createShadeSpectrum\", [_dec36], Object.getOwnPropertyDescriptor(_class.prototype, \"createShadeSpectrum\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startGetSpectrumColor\", [_dec37], Object.getOwnPropertyDescriptor(_class.prototype, \"startGetSpectrumColor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getSpectrumColor\", [_dec38], Object.getOwnPropertyDescriptor(_class.prototype, \"getSpectrumColor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"endGetSpectrumColor\", [_dec39], Object.getOwnPropertyDescriptor(_class.prototype, \"endGetSpectrumColor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getHueColor\", [_dec40], Object.getOwnPropertyDescriptor(_class.prototype, \"getHueColor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshElementRects\", [_dec41], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshElementRects\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleEdit\", [_dec42], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeColors\", [_dec43], Object.getOwnPropertyDescriptor(_class.prototype, \"removeColors\"), _class.prototype), _class);\n});","define(\"client/pods/components/color-picker/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xytPHDmS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"swatch\\\",\\\"index\\\",\\\"swatch\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"box color-picker__wrapper\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"initialSetup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"panel\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-block\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"swatches \\\",[23,0,[\\\"swatchesId\\\"]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"defaultSwatches\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"swatch\\\"],[12,\\\"data-color\\\",[23,3,[]]],[3,\\\"did-insert\\\",[[23,0,[\\\"setButtonBackgroundColor\\\"]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"colorController\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-block\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"spectrum-map\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",true],[11,\\\"class\\\",[29,[\\\"color-cursor spectrum-cursor \\\",[23,0,[\\\"spectrumCursorId\\\"]]]]],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"canvas\\\",true],[11,\\\"class\\\",[29,[\\\"spectrum-canvas \\\",[23,0,[\\\"spectrumCanvasId\\\"]]]]],[8],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"hue-map\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",true],[11,\\\"class\\\",[29,[\\\"color-cursor hue-cursor \\\",[23,0,[\\\"hueCursorId\\\"]]]]],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"canvas\\\",true],[11,\\\"class\\\",[29,[\\\"hue-canvas \\\",[23,0,[\\\"hueCanvasId\\\"]]]]],[8],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-block flex-container--justify-center\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"hex-field\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"field width-120\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"control has-icons-left\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"label\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"input\\\",true],[11,\\\"class\\\",[29,[\\\"input hex \\\",[23,0,[\\\"hexId\\\"]]]]],[10,\\\"placeholder\\\",\\\"HEX\\\"],[10,\\\"maxlength\\\",\\\"6\\\"],[10,\\\"readonly\\\",\\\"\\\"],[10,\\\"type\\\",\\\"text\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon is-small is-left\\\"],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-hashtag\\\"],[8],[9],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"panel\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"panel-heading\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"user colors\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"panel-block flex-container--align-content-space-evenly\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"editUserSwatches\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"button\\\"],[12,\\\"disabled\\\",[23,0,[\\\"isMarkAsDeletedArrEmpty\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"removeColors\\\"]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-trash-alt\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"remove\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"button\\\"],[12,\\\"disabled\\\",[23,0,[\\\"isOverLimit\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"addUserSwatch\\\"]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[23,0,[\\\"iconId\\\"]]]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-brush\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"add\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggleEdit\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-pencil-alt\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-block flex-container--wrap-reverse\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"userSwatches\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"swatch\\\"],[12,\\\"data-color\\\",[23,1,[\\\"_data\\\",\\\"color\\\"]]],[12,\\\"data-deleted\\\",[29,[[23,1,[\\\"_data\\\",\\\"isDeleted\\\"]]]]],[12,\\\"data-index\\\",[23,2,[]]],[3,\\\"did-insert\\\",[[23,0,[\\\"setButtonBackgroundColor\\\"]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"colorController\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/color-picker/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/color-preview/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _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 ColorPreviewComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('channels/shop/campaigns'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class ColorPreviewComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      // websites-lists-layout-btns-border-radius\n      _initializerDefineProperty(this, \"grapesjs\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"colors\", _descriptor5, this);\n      _initializerDefineProperty(this, \"websiteToCopy\", _descriptor6, this);\n      _initializerDefineProperty(this, \"websiteKeyToCopy\", _descriptor7, this);\n      _defineProperty(this, \"page\", {\n        pageDataJson: {\n          html: `<div class=' fb_reset'\n     id='fb-root'\n>\n  <div style='position: absolute; top: -10000px; width: 0px; height: 0px;'>\n    <div></div>\n  </div>\n</div>\n<div class='ember-view'\n     id='ember3'\n>\n  <div id='ga-scripts'></div>\n  <div>\n    <div class='ember-view'\n         id='ember4'\n    >\n      <div class='my-navbar-header'>\n        <div class='my-navbar-container flex-container-row flex-container--justify-space-between'>\n          <div class='flex-container-row flex-container--justify-start flex-container--align-items-center'>\n            <span class='nav-item'></span>\n            <span class='nav-item'>\n                      <span class='logo-text button button--no-border button--no-border has-text-weight-bold' data-ember-action='' data-ember-action-5='5'>\n                        <svg style='width: 30px'\n                             viewBox='0 0 128 128'\n                             xmlns='http://www.w3.org/2000/svg'\n                        >\n                          <path\n                            d='M40.2,89l-12.8,28.8c-0.7,1.5,0,3.3,1.5,4c0.4,0.2,0.8,0.3,1.2,0.3c1.1,0,2.2-0.7,2.7-1.8l12.9-29c2,0.5,4.2,0.8,6.3,0.8 h23.6c2.2,0,4.4-0.3,6.5-0.9l12.9,29.1c0.5,1.1,1.6,1.8,2.7,1.8c0.4,0,0.8-0.1,1.2-0.3c1.5-0.7,2.2-2.4,1.5-4L87.9,88.9 c2.9-1.6,5.5-3.8,7.6-6.5c4.8-6.1,6.4-13.9,4.5-21.4l-9.4-37.5C88.1,13.2,79,6,68.4,6h-8.8C49,6,39.9,13.2,37.3,23.4l-9.4,37.5 c-1.9,7.5-0.2,15.3,4.5,21.4C34.6,85.1,37.3,87.4,40.2,89z M45.6,44.5l2.4-9.7C50.6,24.3,60,17,70.8,17h9.6 c2.1,2.1,3.7,4.8,4.5,7.9L94.2,62H59.3C50.1,62,43.4,53.4,45.6,44.5z M49.7,76.9c0.8,0.1,1.6,0.1,2.5,0.1h23.6 c8.3,0,15.2-4.5,19-11c0.2,4.5-1.1,9-4,12.7c-3.6,4.6-9.1,7.3-15,7.3H52.2c-3.3,0-6.4-0.8-9.1-2.3C42.6,80.2,45.2,76.3,49.7,76.9z'\n                          ></path>\n                        </svg>\n                        Furniture Store\n                      </span>\n                    </span>\n          </div>\n\n          <div class='flex-container-row flex-container--justify-end flex-container--align-items-center'>\n                    <span class='nav-item desktop-only desktop-only--inline-block'>\n                      <div class='nav-menu__container horizontal right'>\n                        <div class='nav-menu__content'>\n                          <div id='ember3712' class='nav-tree ember-view'>\n                            <!-- MENU DEPTH: 0 -->\n                            <div id='ember3713' class='ember-view'>\n                              <div class='nav-tree__item ' data-ember-action='' data-ember-action-3714='3714'>\n                                <a href='/' class='nav-item__container is-expanded nav-item__link flex-container-row flex-container--justify-start flex-container--align-items-center   ' data-ember-action='' data-ember-action-3715='3715'>\n                                    HOME\n                                </a>\n                              </div>\n                            </div>\n                            <!--  -->\n\n                            <!-- MENU DEPTH: 0 -->\n                            <div id='ember3716' class='ember-view'>\n                              <div class='nav-tree__item ' data-ember-action='' data-ember-action-3717='3717'>\n                                <a href='/shop/some-shop' class='nav-item__container is-expanded nav-item__link flex-container-row flex-container--justify-start flex-container--align-items-center   ' data-ember-action='' data-ember-action-3718='3718'>\n                                    STORE\n                                </a>\n                              </div>\n                            </div>\n                            <!--  -->\n\n                            <div id='ember3737' class='nav-nested ember-view'>\n                              <div id='ember3738' class='ember-view'>\n                                <!-- MENU DEPTH: 0 -->\n                                <div class='nav-tree__item ' data-ember-action='' data-ember-action-3739='3739'>\n                                  <div class='nav-item__container flex-container-row flex-container--justify-space-between flex-container--align-items-center'>\n                                    <a href='/submenu-0' class='nav-item__link '>\n                                        子選單\n                                    </a>\n\n                                    <span class='nav-item__toggler is-expandable'>\n                                      <span>\n                                        <i class='element-icon nav-item__toggler-icon fas fa-angle-up fa-rotate-180'></i>\n                                      </span>\n                                    </span>\n                                  </div>\n                                </div>\n                                <!--  -->\n                              </div>\n\n                              <div id='ember3769' class='nav-tree nav-tree__children-container nav-tree__children-container-scrollable ember-view'>\n                                <div id='ember3770' class='nav-nested is-sub ember-view'>\n\n                                  <div id='ember3771' class='ember-view'>\n                                    <!-- MENU DEPTH: 1 -->\n                                    <div class='nav-tree__item ' data-ember-action='' data-ember-action-3772='3772'>\n                                      <div class='nav-item__container flex-container-row flex-container--justify-space-between flex-container--align-items-center'>\n                                        <a href='/submenu-1' class='nav-item__link '>\n                                            一些選項\n                                        </a>\n\n                                        <span class='nav-item__toggler is-expandable'>\n                                          <span>\n                                            <i class='element-icon nav-item__toggler-icon fas fa-angle-up fa-rotate-180'></i>\n                                          </span>\n                                        </span>\n                                      </div>\n                                    </div>\n                                    <!--  -->\n                                  </div>\n\n                                  <div id='ember3781' class='nav-tree nav-tree__children-container nav-tree__children-container-scrollable ember-view'>\n\n                                    <div id='ember3782' class='nav-nested is-sub ember-view'>\n                                      <div id='ember3783' class='ember-view'>\n                                        <!-- MENU DEPTH: 2 -->\n                                        <div class='nav-tree__item ' data-ember-action='' data-ember-action-3784='3784'>\n                                          <div class='nav-item__container flex-container-row flex-container--justify-space-between flex-container--align-items-center'>\n                                            <a href='/submenu-1-0' class='nav-item__link '>\n                                                選項一\n                                            </a>\n\n                                            <span class='nav-item__toggler is-expandable'>\n                                              <span>\n                                                <i class='element-icon nav-item__toggler-icon fas fa-angle-up'></i>\n                                              </span>\n\n                                            </span>\n                                          </div>\n                                        </div>\n                                        <!--  -->\n                                      </div>\n                                    </div>\n\n                                    <div id='ember3785' class='nav-nested is-sub ember-view'>\n                                      <div id='ember3786' class='ember-view'>\n                                        <!-- MENUDEPTH: 2 -->\n                                        <div class='nav-tree__item ' data-ember-action='' data-ember-action-3787='3787'>\n                                          <div class='nav-item__container flex-container-row flex-container--justify-space-between flex-container--align-items-center'>\n                                            <a href='/submenu-1-2' class='nav-item__link '>\n                                                選項二\n                                            </a>\n\n                                            <span class='nav-item__toggler is-expandable'>\n                                              <span>\n                                                <i class='element-icon nav-item__toggler-icon fas fa-angle-up'></i>\n                                              </span>\n                                            </span>\n                                          </div>\n                                        </div>\n                                        <!--  -->\n                                      </div>\n                                    </div>\n\n                                  </div>\n                                </div>\n\n                                <!-- MENU DEPTH: 1 -->\n                                <div id='ember3773' class='ember-view'>\n                                  <div class='nav-tree__item is-route' data-ember-action='' data-ember-action-3774='3774'>\n                                    <a href='/other' class='nav-item__container is-expanded nav-item__link flex-container-row flex-container--justify-start flex-container--align-items-center   is-active' data-ember-action='' data-ember-action-3775='3775'>\n                                        OTHER\n                                    </a>\n                                  </div>\n                                </div>\n                                <!--  -->\n                              </div>\n                            </div>\n\n                            <!-- MENU DEPTH: 0 -->\n                            <div id='ember3764' class='ember-view'>\n                              <div class='nav-tree__item ' data-ember-action='' data-ember-action-3765='3765'>\n                                <a href='/preview' class='nav-item__container is-expanded nav-item__link flex-container-row flex-container--justify-start flex-container--align-items-center   ' data-ember-action='' data-ember-action-3766='3766'>\n                                    PREVIEW\n                                </a>\n                              </div>\n                            </div>\n                            <!--  -->\n                          </div>\n                        </div>\n                      </div>\n\n                    </span>\n\n            <span class='nav-item'>\n                      <a class='button button-right button--no-border'\n                         data-ember-action=''\n                         data-ember-action-16='16'\n                      >\n                        <i class='fas fa-search'></i>\n                      </a>\n                    </span>\n\n            <span class='nav-item'>\n                      <a class='button button-right button--no-border'\n                         data-ember-action=''\n                         data-ember-action-16='16'\n                      >\n                        <i class='fas fa-user'></i>\n                      </a>\n                    </span>\n\n\n            <span class='nav-item'>\n                      <a class='nav-menu-btn button button-right button--no-border'\n                         data-ember-action=''\n                         data-ember-action-17='17'\n                      >\n                        <span class='nav-btn ember-view'\n                              id='ember18'\n                        >\n                          <span>\n                            <span>\n                              <i class='element-icon fas fa-bars'></i>\n                            </span>\n\n                          </span>\n                        </span>\n                      </a>\n                    </span>\n          </div>\n        </div>\n        <div class='sticky-footer'\n             style='bottom: 25px;'\n        >\n          <div class='ember-view'\n               id='ember19'\n          >\n          </div>\n        </div>\n      </div>\n\n      <div class='my-navbar-container-spacer'\n           style='height: 60px;'\n      >\n      </div>\n    </div>\n    <div class='columns page-container '>\n\n      <div class='column page__content right'>\n        <div class='message-block ember-view'\n             id='ember20'\n        >\n        </div>\n\n        <div class='ember-view'\n             id='ember21'\n        >\n          <div id='page-custom-content' style='background-color: var(--themeBackgroundPrimaryColor);'>\n            <div class='bigordr-inner-row'\n                 id='i4nzj'\n            >\n              <div class='bigordr-cell'>\n                <div id='icjq'>\n                  <p>\n                            <span style='color:#000000'>\n                              <span style='font-family:Trebuchet MS,Helvetica,sans-serif'>\n                                <span style='font-size:72px'>Modern Furniture</span>\n                              </span>\n                            </span>\n                  </p>\n                </div>\n                <div class='bigordr-inner-row'\n                     id='i3zq'\n                >\n                  <div class='bigordr-cell'\n                       id='ize3'\n                  ></div>\n                </div>\n                <div class='bigordr-inner-row'\n                     id='icif'\n                >\n                  <div class='bigordr-cell'\n                       id='i6q3'\n                  >\n                    <div id='igcp'>\n                      <p style='text-align:center'>\n                                <span style='color:#ffffff;'>\n                                  <span style='font-size:20px'>\n                                    <span\n                                      style='background-color:#000000;'\n                                    >&nbsp;Beautiful Hand Made Furniture&nbsp;\n                                    </span>\n                                  </span>\n                                </span>\n                      </p>\n                    </div>\n                  </div>\n                </div>\n                <div class='bigordr-inner-row'\n                     id='iffj'\n                >\n                  <div class='bigordr-cell'\n                       id='ial9r'\n                  >\n                    <a class='button'\n                       content='Shop Now'\n                       rel='noreferrer noopener'\n                       target='_blank'\n                    >Shop Now\n                    </a>\n                  </div>\n                </div>\n                <div class='bigordr-inner-row'\n                     id='iuns7'\n                >\n                  <div class='bigordr-cell'\n                       id='ihioa'\n                  ></div>\n                </div>\n              </div>\n            </div>\n            <div class='bigordr-inner-row'\n                 id='i91nt'\n            >\n              <div class='bigordr-cell'>\n                <div id='inofi'>\n                  <p>\n                    <span style='color:#000000;'><strong>Unique &amp; Beautiful</strong><br></span>\n                  </p>\n                  <p>\n                    All designs are created in-house and are hand made by our carpenters.\n                    <br>\n                  </p>\n                </div>\n              </div>\n            </div>\n\n            <!-- SLIDER START -->\n            <div class='bigordr-inner-row' style='background-color: var(--themeBackgroundPrimaryColor);'>\n              <div class='bigordr-cell'>\n                <div class='components-group checkout-form checkout-form__extra-max-width  components-group--grid bigordr-products-wrapper' id='ember238'>\n                  <div class='has-animation-slow components-group-content   bigordr-products' id='ember238-content' style='position: relative;'>\n                    <div class='store-item__card is-condensed '>\n                      <div class='card-item__card-wrapper'>\n                        <div class='card-image store-item__card-image-container '><a class='this.linkToClassNamesComputed ember-view' href='/shop/bigordr-templates-boutique/item/3040094474159/brown-sunglasses' id='ember252'>\n                          <!---->\n                          <figure class='store-item__full-grid-position' style='background: none; width: 180px; height: 180px;'>\n                            <img alt='image' class='image-display--defaults ' height='180' src='https://ucarecdn.com/0a5b897b-0bde-4468-a35e-6e4c827b92d9/-/scale_crop/180x180/smart/center/-/format/webp/-/progressive/yes/' srcset='https://ucarecdn.com/0a5b897b-0bde-4468-a35e-6e4c827b92d9/-/scale_crop/360x360/smart/center/-/quality/lighter/-/format/webp/-/progressive/yes/ 2x' style='visibility: visible;' width='180'>\n                          </figure>\n                        </a></div>\n                        <div class='store-item__card-content card-content--center'><a class='this.linkToClassNamesComputed ember-view' href='/shop/bigordr-templates-boutique/item/3040094474159/brown-sunglasses' id='ember254'>\n                          <div class='is-condensed'>\n                            <div class='store-item__card-name'> brown sunglasses</div>\n                            <div class='price-container'>\n                              <span class='store-item__price store-item__price--old ' style='color: var(--themeOriginalPriceTextColor);'>    NT 9,266    <!---->  </span>                    <!---->\n                              <span class='store-item__price store-item__price--sale ' style='color: var(--themeSalePriceTextColor);'>    NT 8,266    <!---->  </span>                    <!---->\n                            </div>\n                          </div>                <!---->\n                          <div><a class='view-more-btn is-condensed'> 更多... </a></div>\n                        </a></div>\n                        <footer class='store-item__card-footer is-condensed'><span class='ember-view' id='ember256'>          <div class='cart-add-btn__container flex-container--justify-center'>              <button class='has-animation-quick button button--action cart-add-btn                 button--solid                 is-condensed                 ' data-ember-action='' data-ember-action-258='258'>                  + 加入購物車              </button>    </div>      </span>\n                          <!---->            </footer>\n                      </div>\n                    </div>\n                    <div class='store-item__card is-condensed '>\n                      <div class='card-item__card-wrapper'>\n                        <div class='card-image store-item__card-image-container '><a class='this.linkToClassNamesComputed ember-view' href='/shop/bigordr-templates-boutique/item/3040094474160/pendant-necklacec' id='ember262'>\n                          <!---->\n                          <figure class='store-item__full-grid-position' style='background: none; width: 180px; height: 180px;'>\n                            <img alt='image' class='image-display--defaults ' height='180' src='https://ucarecdn.com/53cd4c82-ea03-460f-9ec8-b1b6d68792e2/-/scale_crop/180x180/smart/center/-/format/webp/-/progressive/yes/' srcset='https://ucarecdn.com/53cd4c82-ea03-460f-9ec8-b1b6d68792e2/-/scale_crop/360x360/smart/center/-/quality/lighter/-/format/webp/-/progressive/yes/ 2x' style='visibility: visible;' width='180'>\n                          </figure>\n                        </a></div>\n                        <div class='store-item__card-content card-content--center'><a class='this.linkToClassNamesComputed ember-view' href='/shop/bigordr-templates-boutique/item/3040094474160/pendant-necklacec' id='ember264'>\n                          <div class='is-condensed'>\n                            <div class='store-item__card-name'> pendant necklacec</div>\n                            <div class='price-container'><span class='store-item__price '>    NT 8,487    <!---->  </span>                    <!----></div>\n                          </div>                <!---->\n                          <div><a class='view-more-btn is-condensed'> 更多... </a></div>\n                        </a></div>\n                        <footer class='store-item__card-footer is-condensed'><span class='ember-view' id='ember266'>          <div class='cart-add-btn__container flex-container--justify-center'>              <button class='has-animation-quick button button--action cart-add-btn                 button--solid                 is-condensed                 ' data-ember-action='' data-ember-action-268='268'>                  + 加入購物車              </button>    </div>      </span>\n                          <!---->            </footer>\n                      </div>\n                    </div>\n                    <div class='store-item__card is-condensed '>\n                      <div class='card-item__card-wrapper'>\n                        <div class='card-image store-item__card-image-container '><a class='this.linkToClassNamesComputed ember-view' href='/shop/bigordr-templates-boutique/item/3040094474157/three-Vought-F4U-Corsair' id='ember272'>\n                          <!---->\n                          <figure class='store-item__full-grid-position' style='background: none; width: 180px; height: 180px;'>\n                            <img alt='image' class='image-display--defaults ' height='180' src='https://ucarecdn.com/30f1fcce-e9f2-4daa-a21a-5a8f4b1f0934/-/scale_crop/180x180/smart/center/-/format/webp/-/progressive/yes/' srcset='https://ucarecdn.com/30f1fcce-e9f2-4daa-a21a-5a8f4b1f0934/-/scale_crop/360x360/smart/center/-/quality/lighter/-/format/webp/-/progressive/yes/ 2x' style='visibility: visible;' width='180'>\n                          </figure>\n                        </a></div>\n                        <div class='store-item__card-content card-content--center'><a class='this.linkToClassNamesComputed ember-view' href='/shop/bigordr-templates-boutique/item/3040094474157/three-Vought-F4U-Corsair' id='ember274'>\n                          <div class='is-condensed'>\n                            <div class='store-item__card-name'> three Vought F4U Cor...</div>\n                            <div class='price-container'><span class='store-item__price '>    NT 3,703    <!---->  </span>                    <!----></div>\n                          </div>                <!---->\n                          <div><a class='view-more-btn is-condensed'> 更多... </a></div>\n                        </a></div>\n                        <footer class='store-item__card-footer is-condensed'><span class='ember-view' id='ember276'>          <div class='cart-add-btn__container flex-container--justify-center'>              <button class='has-animation-quick button button--action cart-add-btn                 button--solid                 is-condensed                 ' data-ember-action='' data-ember-action-278='278'>                  + 加入購物車              </button>    </div>      </span>\n                          <!---->            </footer>\n                      </div>\n                    </div>\n                    <div class='store-item__card is-condensed '>\n                      <div class='card-item__card-wrapper'>\n                        <div class='card-image store-item__card-image-container '>\n                          <a class='this.linkToClassNamesComputed ember-view' href='/shop/bigordr-templates-boutique/item/3040094474165/white-and-gold-colored-accessories' id='ember282'>\n                            <!---->\n                            <figure class='store-item__full-grid-position' style='background: none; width: 180px; height: 180px;'>\n                              <img alt='image' class='image-display--defaults ' height='180' src='https://ucarecdn.com/18c2f665-e306-49b5-8e58-1a6133277823/-/scale_crop/180x180/smart/center/-/format/webp/-/progressive/yes/' srcset='https://ucarecdn.com/18c2f665-e306-49b5-8e58-1a6133277823/-/scale_crop/360x360/smart/center/-/quality/lighter/-/format/webp/-/progressive/yes/ 2x' style='visibility: visible;' width='180'>\n                            </figure>\n                          </a></div>\n                        <div class='store-item__card-content card-content--center'>\n                          <a class='this.linkToClassNamesComputed ember-view' href='/shop/bigordr-templates-boutique/item/3040094474165/white-and-gold-colored-accessories' id='ember284'>\n                            <div class='is-condensed'>\n                              <div class='store-item__card-name'> white and gold-color...</div>\n                              <div class='price-container'><span class='store-item__price '>    NT 9,892    <!---->  </span>                    <!----></div>\n                            </div>                <!---->\n                            <div><a class='view-more-btn is-condensed'> 更多... </a></div>\n                          </a></div>\n                        <footer class='store-item__card-footer is-condensed'><span class='ember-view' id='ember286'>          <div class='cart-add-btn__container flex-container--justify-center'>              <button class='has-animation-quick button button--action cart-add-btn                 button--solid                 is-condensed                 ' data-ember-action='' data-ember-action-288='288'>                  + 加入購物車              </button>    </div>      </span>\n                          <!---->            </footer>\n                      </div>\n                    </div>\n                  </div>\n                  <a class='button slider-button components-group-controls components-group-button-left'> <span class='icon'><i class='fas fa-angle-left'></i></span></a>\n                  <a class='button slider-button components-group-controls components-group-button-right'> <span class='icon'><i class='fas fa-angle-right'></i></span></a>\n                </div>\n              </div>\n            </div>\n            <!-- SLIDER END -->\n            <div class='bigordr-inner-row' style='background-color: var(--themeBackgroundPrimaryColor);'>\n              <div class='bigordr-cell' style='display: flex;justify-content: center;'>\n                <button class='button' style='margin: 0 10px; border-radius: var(--themeButtonBorderRadius) !important'>\n                  button1\n                </button>\n                <button class='button button2' style='margin: 0 10px;'>\n                  button2\n                </button>\n                <button class='button button3' style='margin: 0 10px;'>\n                  button3\n                </button>\n                <button class='button button-variant' style='margin: 0 10px; border-radius: var(--themeVariantButtonBorderRadius) !important'>\n                  variant button\n                </button>\n              </div>\n            </div>\n\n            <!--            PAYMENT STUFF-->\n            <div class='bigordr-inner-row' style='background-color: var(--themeBackgroundPrimaryColor);'>\n              <div class='bigordr-cell' style='display: flex;justify-content: center;'>\n                <div class='checkout-form'>\n                  <div class='page-steps-container ember-view'\n                       id='ember713'\n                  >\n                    <div class='page-step current-step'\n                         data-ember-action=''\n                         data-ember-action-715='715'\n                    >\n                      <div class='page-step__number'>1</div>\n                      <div>購物車內容</div>\n                    </div>\n                    <div class='page-step page-step__arrow'>\n                    </div>\n                    <div class='page-step next-step'\n                         data-ember-action=''\n                         data-ember-action-717='717'\n                    >\n                      <div class='page-step__number'>2</div>\n                      <div>顧客資料</div>\n                    </div>\n                    <div class='page-step page-step__arrow'>\n                    </div>\n                    <div class='page-step next-step'\n                         data-ember-action=''\n                         data-ember-action-719='719'\n                    >\n                      <div class='page-step__number'>3</div>\n                      <div>付款</div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n            <div class='bigordr-inner-row' style='background-color: var(--themeBackgroundPrimaryColor);'>\n              <div class='bigordr-cell' style='display: flex;justify-content: center;'>\n                <div class='checkout-form'>\n                  <div class='card ember-view'\n                       id='ember721'\n                       style='background-color:var(--themeBackgroundPrimaryColor);color:var(--themeTextColor);'\n                  >\n                    <header class='card-header page-card-header ember-view'\n                            id='ember722'\n                            style='background-color:var(--themeBackgroundPrimaryColor);color:var(--themeTextColor);'\n                    >\n                      <p class='card-header-title'>\n                        購物車\n                      </p>\n\n                    </header>\n\n                    <div class='card-content ember-view'\n                         id='ember723'\n                    >\n                      <table class='checkout-table table is-fullwidth' style='background-color:var(--themeBackgroundPrimaryColor);color:var(--themeTextColor);'>\n\n                        <tr>\n                          <td colspan='3'>\n                            <div class='flex-container-row flex-container--wrap flex-container--align-items-center'>\n                              <div class='desc-child__item'>\n                                <a class='text--main ember-view'\n                                   href='/shop/bigordr-templates-boutique/item/3040094474163/white-and%20brown%20wooden%20table%20decor'\n                                   id='ember727'\n                                >\n                                  <figure class='image cart-item__thumb'>\n                                    <img alt='Placeholder image'\n                                         src='https://ucarecdn.com/2caabed4-aeaf-45ab-918f-8261894a20ac/-/resize/100x/'\n                                         srcset='https://ucarecdn.com/2caabed4-aeaf-45ab-918f-8261894a20ac/-/resize/100x/ 2x'\n                                    >\n                                  </figure>\n\n                                </a>\n                              </div>\n\n                              <div class='desc-child__item'>\n                                    <span class='store-item__qty-selector ember-view'\n                                          id='ember728'\n                                    >\n                                      <div class='has-value'>\n                                        <a class='button--square minus '\n                                           data-ember-action=''\n                                           data-ember-action-729='729'\n                                        >\n                                          -\n                                        </a>\n\n                                        <input autocomplete='off'\n                                               class='ember-text-field ember-view input'\n                                               type='text'\n                                               value='3'\n                                        >\n\n                                        <a class='button--square plus '\n                                           data-ember-action=''\n                                           data-ember-action-731='731'\n                                        >\n                                          +\n                                        </a>\n                                      </div>\n                                    </span>\n                              </div>\n\n                              <div class='flex-container-row flex-container--nowrap flex-container--align-items-center'>\n                                <div class='desc-child__item'>\n                                  <a class='text--main ember-view'\n                                     href='/shop/bigordr-templates-boutique/item/3040094474163/white-and%20brown%20wooden%20table%20decor'\n                                     id='ember733'\n                                  >      <!---->            white and brown wooden table decor\n\n                                  </a>\n                                  <!---->\n                                  <!---->\n\n                                  <!---->        </div>\n\n                                <!---->\n                                <!---->      </div>\n\n                              <div class='desc-child__item flex-push-right'>\n\n                                NT 990\n\n                              </div>\n                            </div>\n                          </td>\n                        </tr>\n\n                        <!---->\n                        <!---->\n\n                        <tr>\n                          <td style='border-bottom: 0'></td>\n                          <td class='has-text-right'\n                              style='border-bottom: 0'\n                          >\n                            小計:\n                          </td>\n                          <td class='has-text-right'\n                              style='border-bottom: 0'\n                          >\n                            NT 990\n                          </td>\n                        </tr>\n\n                        <tr>\n                          <td style='border-bottom: 0'></td>\n                          <td class='has-text-right'\n                              style='border-bottom: 0'\n                          >\n                            運費 - 運費:\n                            <div class='has-text-danger'>\n                              差「NT 10」就可免運費嘍!\n                            </div>\n                          </td>\n                          <td class='has-text-right'\n                              style='border-bottom: 0'\n                          >\n                            NT 100\n                          </td>\n                        </tr>\n\n                        <!---->\n                        <!---->\n                        <tr>\n                          <td style='border-bottom: 0'></td>\n                          <td class='has-text-right'\n                              style='border-bottom: 0'\n                          >\n                            總金額:\n                          </td>\n                          <td class='has-text-right'\n                              style='border-bottom: 0'\n                          >\n\n                            NT 1,090\n\n                          </td>\n                        </tr>\n\n                      </table>\n                      <div>\n                        <button class='button is-delete'\n                                data-ember-action=''\n                                data-ember-action-736='736'\n                        >全部移除\n                        </button>\n                      </div>\n\n\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n            <!--            PAYMENT STUFF-->\n          </div>\n        </div>\n\n\n      </div>\n    </div>\n\n    <div class='chat-btn__container ember-view'\n         id='ember22'\n         style='bottom: 25px;'\n    >\n              <span class='chat-options__btn'>\n                <i class='element-icon fab fa-facebook-messenger'\n                   style='position: relative;top: 7px;'\n                ></i>\n              </span>\n    </div>\n    <div>\n      <footer class='footer footer-margin'>\n        <div class='container'>\n          <div class='columns'>\n            <div class='column'>\n              <aside class='menu menu-list__footer-header-color'>\n                <p class='menu-label'>\n                  Sitemap\n                </p>\n                <ul class='menu-list menu-list__no-hover'>\n                  <li><a href='/template003'>super products</a></li>\n                </ul>\n              </aside>\n            </div>\n            <div class='column'>\n              <aside class='menu menu-list__footer-header-color'>\n                <p class='menu-label'>\n                  Support\n                </p>\n                <ul class='menu-list menu-list__no-hover'>\n                  <li><a href='/shop/dev-tmptmp/faqs'>常見問題</a></li>\n                  <li><a href='/shop/dev-tmptmp/orders'>訂單查詢</a></li>\n                </ul>\n              </aside>\n            </div>\n            <div class='column'>\n              <aside class='menu menu-list__footer-header-color'>\n                <p class='menu-label'>\n                  customer service\n                </p>\n                <ul class='menu-list menu-list__no-hover'>\n                  <li><a href='tel:+1-801-484-7311'>+1-801-484-7311</a></li>\n                  <li><a>Tokyo Shin LTD.</a></li>\n                  <li><a></a></li>\n                </ul>\n              </aside>\n            </div>\n            <div class='column'>\n              <aside class='menu menu-list__footer-header-color'>\n                <p class='menu-label'>\n                  open hours\n                </p>\n                <ul class='menu-list menu-list__no-hover'>\n                  <li class='flex-container-row flex-container--align-items-center'>\n                    <a>monday - 09:30~06:00</a>\n                  </li>\n                  <li class='flex-container-row flex-container--align-items-center'>\n                    <a>tuesday - 09:30~06:00</a>\n                  </li>\n                  <li class='flex-container-row flex-container--align-items-center'>\n                    <a>wednesday - 09:30~06:00</a>\n                  </li>\n                  <li class='flex-container-row flex-container--align-items-center'>\n                    <a>thursday - 09:30~06:00</a>\n                  </li>\n                  <li class='flex-container-row flex-container--align-items-center'>\n                    <a>friday - 09:30~06:00</a>\n                  </li>\n                  <li class='flex-container-row flex-container--align-items-center'>\n                    <a>saturday - 09:30~06:00</a>\n                  </li>\n                  <li class='flex-container-row flex-container--align-items-center'>\n                    <a>sunday - 09:30~06:00</a>\n                  </li>\n                </ul>\n              </aside>\n            </div>\n            <div class='column has-text-centered flex-item--align-self-center'>\n\n              <div class='social-icons__container ember-view' id='ember467'><a href='https://google.co.uk' target='_blank'>\n      <span>\n    <i class='element-icon fab fa-facebook-square'></i>\n  </span>\n\n              </a>\n                <a href='https://google.co.uk' target='_blank'>\n      <span>\n    <i class='element-icon fab fa-instagram'></i>\n  </span>\n\n                </a>\n                <a href='https://google.co.uk' target='_blank'>\n      <span>\n    <i class='element-icon fab fa-youtube'></i>\n  </span>\n\n                </a>\n                <a href='https://line.me/R/ti/p/123123123' target='_blank'>\n      <span>\n    <i class='element-icon fab fa-line'></i>\n  </span>\n\n                </a>\n              </div>\n\n            </div>\n          </div>\n          <div class='columns'>\n            <div class='column has-text-centered flex-item--align-self-center'>\n              <div class='section ember-view' id='ember470'>\n                <div class='container'>\n                  <div class='content-display ember-view' id='ember471'><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque tempus congue pharetra. Etiam pretium eros nec lectus efficitur volutpat. Curabitur sit amet ligula\n                                                                           congue, tristique odio vitae, facilisis dui. Ut elementum non elit sit amet aliquam. Interdum et malesuada fames ac ante ipsum primis in faucibus.</p>\n\n                    <div class='flow-container ember-view' id='ember472'><!----></div>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </footer>\n    </div>\n  </div>\n</div>\n      `\n        }\n      });\n      this.crud.addLists(this, ['websites/lists/layout/btns-border-radius']);\n      this.updateColors(null, this.args.model);\n      const filtersToCopyTheme = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {}\n      });\n      this.filtersToCopyTheme = filtersToCopyTheme;\n      this.fetchWebsiteToCopyThemeTask.perform({\n        query: ''\n      });\n    }\n    removeOldStyles() {\n      R.pipe(R.pathOr({}, ['args', 'editor']), editor => {\n        if (editor.getStyle) {\n          return editor.getStyle();\n        }\n        return {};\n      }, R.pathOr([], ['models']), R.filter(R.pathEq(['attributes', 'selectorsAdd'], ':root')), R.forEach(m => {\n        if (m.destroy) {\n          m.destroy();\n        }\n      }))(this);\n    }\n    updateColors(updateStyle, model) {\n      this.colors = R.pipe(R.pathOr({}, ['_data']), R.toPairs, R.filter(R.pipe(R.head, R.test(/^theme(?!Name)/))), R.sort(([a], [b]) => a.localeCompare(b)), R.map(R.zipObj(['key', 'value'])))(model);\n      if (updateStyle) {\n        updateStyle(model);\n      }\n    }\n    open() {\n      if (this.args.onOpen) {\n        this.args.onOpen();\n      }\n    }\n    save(onCloseDialogAction) {\n      const saveTask = this.args.saveTask;\n      if (saveTask.perform) {\n        saveTask.perform();\n      } else {\n        saveTask();\n      }\n      if (this.args.editor) {\n        this.removeOldStyles();\n        this.args.editor.getStyle().add(this.grapesjs.genThemeFromWebsiteModel(this.args.model));\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    loadWebsiteColorTheme(website, websiteToCopy) {\n      const colorThemes = ['themeMenuBackgroundPrimaryColor', 'themeMenuBorderColor', 'themeMenuItemBorderColor', 'themeMenuLinkColor', 'themeMenuLinkHoverColor', 'themeMenuButtonColor', 'themeMenuButtonHoverColor', 'themeSubmenuBackgroundPrimaryColor', 'themeSubmenuBorderColor', 'themeSubmenuItemBorderColor', 'themeSubmenuLinkColor', 'themeSubmenuLinkHoverColor', 'themeTextColor', 'themeLinkColor', 'themeLinkHoverColor', 'themeFaqsQuestionColor', 'themeFaqsQuestionHoverColor', 'themeFaqsAnswerColor', 'themeBreadcrumbsTextColor', 'themeBreadcrumbsBackgroundColor', 'themeInputBackgroundColor', 'themeInputTextColor', 'themeInputBorderColor', 'themeInputBorderFocusColor', 'themeBackgroundPrimaryColor', 'themeBackgroundSecondaryColor', 'themeBorderColor', 'themeActionColor', 'themeActionTextColor', 'themeActionHoverColor', 'themeActionFinalColor', 'themeActionFinalTextColor', 'themeButtonBorderColor', 'themeButtonColor', 'themeButtonHoverColor', 'themeButtonHoverTextColor', 'themeButtonTextColor', 'themeButtonBorderRadius', 'themeButtonBorderColor2', 'themeButtonColor2', 'themeButtonHoverColor2', 'themeButtonHoverTextColor2', 'themeButtonTextColor2', 'themeButtonBorderRadius2', 'themeButtonBorderColor3', 'themeButtonColor3', 'themeButtonHoverColor3', 'themeButtonHoverTextColor3', 'themeButtonTextColor3', 'themeButtonBorderRadius3', 'themeVariantButtonColor', 'themeVariantButtonTextColor', 'themeVariantButtonBorderColor', 'themeVariantButtonHoverColor', 'themeVariantButtonHoverTextColor', 'themeVariantButtonHoverBorderColor', 'themeVariantButtonSelectedColor', 'themeVariantButtonSelectedTextColor', 'themeVariantButtonSelectedBorderColor', 'themeVariantButtonBorderRadius', 'themeSliderArrowsBorderColor', 'themeSliderArrowsBackgroundColor', 'themeSliderArrowsHoverBackgroundColor', 'themeSliderArrowsTextColor', 'themeSliderDotsColor', 'themeSliderDotsActiveColor', 'themeChatButtonColor', 'themeChatButtonHoverColor', 'themeChatButtonTextColor', 'themeFooterBackgroundColor', 'themeFooterHeaderColor', 'themeFooterLinkColor', 'themeFooterLinkHoverColor', 'themeFooterTextColor', 'themeSaleColor', 'themeSaleTextColor', 'themeSalePriceTextColor', 'themeOriginalPriceTextColor', 'themeAlmostSoldOutTextColor', 'themeCampaignHeaderBackgroundColor', 'themeCampaignHeaderTitleColor', 'themeCampaignHeaderSubtitleColor', 'themeCampaignHeaderNoticeColor', 'themeActiveColor', 'themeTagColor', 'themeTagTextColor', 'themeCountDownColor', 'themeCountDownTextColor', 'themeCarouselBannerColor', 'themeCarouselBannerTextColor', 'themeCarouselBannerLinkHoverColor'];\n      R.forEach(colorTheme => {\n        const colorThemeToCopy = R.pathOr('', ['_data', colorTheme])(websiteToCopy);\n        if (RA.isNotNilOrEmpty(colorThemeToCopy)) {\n          website.setData(colorTheme, colorThemeToCopy);\n        }\n      })(colorThemes);\n    }\n    unloadWebsiteColorTheme() {\n      this.websiteToCopy = '';\n      this.websiteKeyToCopy = '';\n    }\n    *fetchWebsiteToCopyThemeTask({\n      query\n    }) {\n      yield this.campaignsService.searchInputTask.perform({\n        query,\n        filters: this.filtersToCopyTheme,\n        adapterName: 'websites'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"grapesjs\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"colors\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"websiteToCopy\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"websiteKeyToCopy\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateColors\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"updateColors\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"open\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"open\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadWebsiteColorTheme\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"loadWebsiteColorTheme\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadWebsiteColorTheme\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadWebsiteColorTheme\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchWebsiteToCopyThemeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchWebsiteToCopyThemeTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/color-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ieJMjKZK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"customActions\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@onClose\\\",\\\"@modalDialogContentClassName\\\"],[\\\"fas fa-palette\\\",[23,6,[]],\\\"edit theme colors and styles\\\",[28,\\\"fn\\\",[[23,0,[\\\"open\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"willDestroy\\\"]]],null],\\\"modal-dialog__content--color-picker-override\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"grapesjs/preview-container\\\",[],[[\\\"@model\\\",\\\"@page\\\"],[[23,4,[]],[23,0,[\\\"page\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordion\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_section_nav\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_menu_background_primary_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeMenuBackgroundPrimaryColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeMenuBackgroundPrimaryColor\\\",[23,4,[\\\"_data\\\",\\\"themeMenuBackgroundPrimaryColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_menu_border_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeMenuBorderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeMenuBorderColor\\\",[23,4,[\\\"_data\\\",\\\"themeMenuBorderColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_menu_item_border_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeMenuItemBorderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeMenuItemBorderColor\\\",[23,4,[\\\"_data\\\",\\\"themeMenuItemBorderColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_menu_link_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeMenuLinkColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeMenuLinkColor\\\",[23,4,[\\\"_data\\\",\\\"themeMenuLinkColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_menu_link_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeMenuLinkHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeMenuLinkHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeMenuLinkHoverColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_menu_button_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeMenuButtonColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeMenuButtonColor\\\",[23,4,[\\\"_data\\\",\\\"themeMenuButtonColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_menu_button_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeMenuButtonHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeMenuButtonHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeMenuButtonHoverColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_section_submenu\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"themeSubmenuBackgroundPrimaryColor\\\",\\\"websites\\\",[23,0,[\\\"errors\\\"]],\\\"website_submenu_background_primary_color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@colorKey\\\",\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"themeSubmenuBackgroundPrimaryColor\\\",[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],[23,4,[\\\"_data\\\",\\\"themeSubmenuBackgroundPrimaryColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"themeSubmenuBorderColor\\\",\\\"websites\\\",[23,0,[\\\"errors\\\"]],\\\"website_submenu_border_color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@colorKey\\\",\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"themeSubmenuBorderColor\\\",[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],[23,4,[\\\"_data\\\",\\\"themeSubmenuBorderColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_submenu_item_border_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeSubmenuItemBorderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeSubmenuItemBorderColor\\\",[23,4,[\\\"_data\\\",\\\"themeSubmenuItemBorderColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"themeSubmenuLinkColor\\\",\\\"websites\\\",[23,0,[\\\"errors\\\"]],\\\"website_submenu_link_color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@colorKey\\\",\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"themeSubmenuLinkColor\\\",[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],[23,4,[\\\"_data\\\",\\\"themeSubmenuLinkColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"themeSubmenuLinkHoverColor\\\",\\\"websites\\\",[23,0,[\\\"errors\\\"]],\\\"website_submenu_link_hover_color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@colorKey\\\",\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"themeSubmenuLinkHoverColor\\\",[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],[23,4,[\\\"_data\\\",\\\"themeSubmenuLinkHoverColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_section_text\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_text_basic\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_links\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_link_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeLinkColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeLinkColor\\\",[23,4,[\\\"_data\\\",\\\"themeLinkColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_link_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeLinkHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeLinkHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeLinkHoverColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_faqs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_faqs_question_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeFaqsQuestionColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeFaqsQuestionColor\\\",[23,4,[\\\"_data\\\",\\\"themeFaqsQuestionColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_faqs_question_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeFaqsQuestionHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeFaqsQuestionHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeFaqsQuestionHoverColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_faqs_answer_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeFaqsAnswerColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeFaqsAnswerColor\\\",[23,4,[\\\"_data\\\",\\\"themeFaqsAnswerColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_breadcrumbs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_breadcrumbs_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeBreadcrumbsTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeBreadcrumbsTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeBreadcrumbsTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_breadcrumbs_background_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeBreadcrumbsBackgroundColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeBreadcrumbsBackgroundColor\\\",[23,4,[\\\"_data\\\",\\\"themeBreadcrumbsBackgroundColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_inputs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_input_background_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeInputBackgroundColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeInputBackgroundColor\\\",[23,4,[\\\"_data\\\",\\\"themeInputBackgroundColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_input_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeInputTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeInputTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeInputTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_input_border_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeInputBorderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeInputBorderColor\\\",[23,4,[\\\"_data\\\",\\\"themeInputBorderColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_input_border_focus_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeInputBorderFocusColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeInputBorderFocusColor\\\",[23,4,[\\\"_data\\\",\\\"themeInputBorderFocusColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_section_backgrounds\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_background_primary_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeBackgroundPrimaryColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeBackgroundPrimaryColor\\\",[23,4,[\\\"_data\\\",\\\"themeBackgroundPrimaryColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_background_secondary_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeBackgroundSecondaryColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeBackgroundSecondaryColor\\\",[23,4,[\\\"_data\\\",\\\"themeBackgroundSecondaryColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_border_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeBorderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeBorderColor\\\",[23,4,[\\\"_data\\\",\\\"themeBorderColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_section_buttons\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_action\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_action_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeActionColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@colorKey\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],\\\"themeActionColor\\\",[23,5,[]],[23,4,[\\\"_data\\\",\\\"themeActionColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_action_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeActionTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeActionTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeActionTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_action_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeActionHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeActionHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeActionHoverColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_action_final_btn\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_action_final_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeActionFinalColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeActionFinalColor\\\",[23,4,[\\\"_data\\\",\\\"themeActionFinalColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_action_final_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeActionFinalTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeActionFinalTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeActionFinalTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_button_1\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_border_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonBorderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonBorderColor\\\",[23,4,[\\\"_data\\\",\\\"themeButtonBorderColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonColor\\\",[23,4,[\\\"_data\\\",\\\"themeButtonColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeButtonHoverColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_hover_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonHoverTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonHoverTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeButtonHoverTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeButtonTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_border_radius\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonBorderRadius\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-btns-border-radius\\\"]],[28,\\\"fn\\\",[[23,3,[\\\"updateStyle\\\"]],[23,4,[]]],null],false,[23,4,[\\\"_data\\\",\\\"themeButtonBorderRadius\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_button_2\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_border_color2\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonBorderColor2\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonBorderColor2\\\",[23,4,[\\\"_data\\\",\\\"themeButtonBorderColor2\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_color2\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonColor2\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonColor2\\\",[23,4,[\\\"_data\\\",\\\"themeButtonColor2\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_hover_color2\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonHoverColor2\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonHoverColor2\\\",[23,4,[\\\"_data\\\",\\\"themeButtonHoverColor2\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_hover_text_color2\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonHoverTextColor2\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonHoverTextColor2\\\",[23,4,[\\\"_data\\\",\\\"themeButtonHoverTextColor2\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_text_color2\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonTextColor2\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonTextColor2\\\",[23,4,[\\\"_data\\\",\\\"themeButtonTextColor2\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_border_radius_2\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonBorderRadius2\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-btns-border-radius\\\"]],[28,\\\"fn\\\",[[23,3,[\\\"updateStyle\\\"]],[23,4,[]]],null],false,[23,4,[\\\"_data\\\",\\\"themeButtonBorderRadius2\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_button_3\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_border_color3\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonBorderColor3\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonBorderColor3\\\",[23,4,[\\\"_data\\\",\\\"themeButtonBorderColor3\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_color3\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonColor3\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonColor3\\\",[23,4,[\\\"_data\\\",\\\"themeButtonColor3\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_hover_color3\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonHoverColor3\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonHoverColor3\\\",[23,4,[\\\"_data\\\",\\\"themeButtonHoverColor3\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_hover_text_color3\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonHoverTextColor3\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonHoverTextColor3\\\",[23,4,[\\\"_data\\\",\\\"themeButtonHoverTextColor3\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_text_color3\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonTextColor3\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeButtonTextColor3\\\",[23,4,[\\\"_data\\\",\\\"themeButtonTextColor3\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_border_radius_3\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonBorderRadius3\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-btns-border-radius\\\"]],[28,\\\"fn\\\",[[23,3,[\\\"updateStyle\\\"]],[23,4,[]]],null],false,[23,4,[\\\"_data\\\",\\\"themeButtonBorderRadius3\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_variant_button\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_variant_button_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeVariantButtonColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeVariantButtonColor\\\",[23,4,[\\\"_data\\\",\\\"themeVariantButtonColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_variant_button_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeVariantButtonTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeVariantButtonTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeVariantButtonTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_variant_button_border_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeVariantButtonBorderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeVariantButtonBorderColor\\\",[23,4,[\\\"_data\\\",\\\"themeVariantButtonBorderColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_variant_button_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeVariantButtonHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeVariantButtonHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeVariantButtonHoverColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_variant_button_hover_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeVariantButtonHoverTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeVariantButtonHoverTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeVariantButtonHoverTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_variant_button_hover_border_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeVariantButtonHoverBorderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeVariantButtonHoverBorderColor\\\",[23,4,[\\\"_data\\\",\\\"themeVariantButtonHoverBorderColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_variant_button_selected_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeVariantButtonSelectedColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeVariantButtonSelectedColor\\\",[23,4,[\\\"_data\\\",\\\"themeVariantButtonSelectedColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_variant_button_selected_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeVariantButtonSelectedTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeVariantButtonSelectedTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeVariantButtonSelectedTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_variant_button_selected_border_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeVariantButtonSelectedBorderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeVariantButtonSelectedBorderColor\\\",[23,4,[\\\"_data\\\",\\\"themeVariantButtonSelectedBorderColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_button_border_radius\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonBorderRadius\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-btns-border-radius\\\"]],[28,\\\"fn\\\",[[23,3,[\\\"updateStyle\\\"]],[23,4,[]]],null],false,[23,4,[\\\"_data\\\",\\\"themeVariantButtonBorderRadius\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\\n        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_section_chat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_chat_button_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeChatButtonColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeChatButtonColor\\\",[23,4,[\\\"_data\\\",\\\"themeChatButtonColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_chat_button_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeChatButtonHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeChatButtonHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeChatButtonHoverColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_chat_button_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeChatButtonTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeChatButtonTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeChatButtonTextColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_section_footer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_footer_background_primary_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeFooterBackgroundColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeFooterBackgroundColor\\\",[23,4,[\\\"_data\\\",\\\"themeFooterBackgroundColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_footer_header_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeFooterHeaderColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeFooterHeaderColor\\\",[23,4,[\\\"_data\\\",\\\"themeFooterHeaderColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_footer_link_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeFooterLinkColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeFooterLinkColor\\\",[23,4,[\\\"_data\\\",\\\"themeFooterLinkColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_footer_link_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeFooterLinkHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeFooterLinkHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeFooterLinkHoverColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_footer_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeFooterTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeFooterTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeFooterTextColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_section_sales\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_sale_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeSaleColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeSaleColor\\\",[23,4,[\\\"_data\\\",\\\"themeSaleColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_sale_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeSaleTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeSaleTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeSaleTextColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_sale_price_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeSalePriceTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeSalePriceTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeSalePriceTextColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_original_price_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeOriginalPriceTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeOriginalPriceTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeOriginalPriceTextColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_almost_sold_out_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeAlmostSoldOutTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeAlmostSoldOutTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeAlmostSoldOutTextColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"allowAllCampaigns\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_campaign_header\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_campaign_header_background_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeCampaignHeaderBackgroundColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeCampaignHeaderBackgroundColor\\\",[23,4,[\\\"_data\\\",\\\"themeCampaignHeaderBackgroundColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_campaign_header_title_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeCampaignHeaderTitleColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeCampaignHeaderTitleColor\\\",[23,4,[\\\"_data\\\",\\\"themeCampaignHeaderTitleColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_campaign_header_subtitle_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeCampaignHeaderSubtitleColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeCampaignHeaderSubtitleColor\\\",[23,4,[\\\"_data\\\",\\\"themeCampaignHeaderSubtitleColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_campaign_header_notice_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeCampaignHeaderNoticeColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeCampaignHeaderNoticeColor\\\",[23,4,[\\\"_data\\\",\\\"themeCampaignHeaderNoticeColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[false,\\\"website_section_other\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_active_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeActiveColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeActiveColor\\\",[23,4,[\\\"_data\\\",\\\"themeActiveColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_tag_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeTagColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeTagColor\\\",[23,4,[\\\"_data\\\",\\\"themeTagColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_tag_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeTagTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeTagTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeTagTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_count_down\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_count_down_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeCountDownColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeCountDownColor\\\",[23,4,[\\\"_data\\\",\\\"themeCountDownColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_count_down_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeCountDownTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeCountDownTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeCountDownTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-sub-section\\\",[],[[\\\"@label\\\"],[\\\"website_section_carousel_banner\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_section_carousel_banner_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeCarouselBannerColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeCarouselBannerColor\\\",[23,4,[\\\"_data\\\",\\\"themeCarouselBannerColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_section_carousel_banner_text_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeCarouselBannerTextColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeCarouselBannerTextColor\\\",[23,4,[\\\"_data\\\",\\\"themeCarouselBannerTextColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"website_section_carousel_banner_link_hover_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeCarouselBannerLinkHoverColor\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,3,[\\\"updateStyle\\\"]],[23,5,[]],\\\"themeCarouselBannerLinkHoverColor\\\",[23,4,[\\\"_data\\\",\\\"themeCarouselBannerLinkHoverColor\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,2,[]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"save\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@modalSize\\\"],[[23,6,[]],\\\"copy theme from another website\\\",\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"website\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@isRequired\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@filters\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,true,[23,0,[\\\"filtersToCopyTheme\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"filtersToCopyTheme\\\"]],[23,0,[\\\"websiteToCopy\\\"]],[23,0,[\\\"websiteKeyToCopy\\\"]],[23,5,[]],[23,5,[]],\\\"websites/search-results\\\",[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchWebsiteToCopyThemeTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,0,[\\\"websiteToCopy\\\"]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"loadWebsiteColorTheme\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadWebsiteColorTheme\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"save\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/color-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/color-themes/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R) {\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 ColorThemesComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class ColorThemesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"colorsResults\", _descriptor3, this);\n      if (!this.args.displaySelected) {\n        this.colorsFilters = this.search.setupFilters({\n          adapterName: 'websites/filters',\n          defaultFiltersData: {\n            resultsProperty: 'colorsResults',\n            match: ['all']\n          }\n        });\n        this.searchTask.perform();\n      }\n    }\n    *searchTask() {\n      const q = [];\n      const query = this.query;\n      q.push(this.searchColorTemplatesTask.perform({\n        query,\n        filters: this.colorsFilters\n      }));\n      yield (0, _emberConcurrency.all)(q);\n      if (this.args.autoSelect) {\n        this.selectColorTheme(this.colorsResults[0]);\n      }\n    }\n    *searchColorTemplatesTask({\n      adapterName = 'websites',\n      query,\n      filters\n    }) {\n      const resultsProperty = R.pathOr('', ['_data', 'resultsProperty'])(filters);\n      this[resultsProperty] = yield this.crud.searchRecordsConcurrentlyTask.unlinked().perform({\n        adapterName,\n        appendPath: 'sharedColorThemes',\n        filters,\n        query\n      });\n      return this[resultsProperty];\n    }\n    displayColorTemplateModal() {\n      this.args.toggleColorTemplates();\n    }\n    selectColorTheme(selectedTheme) {\n      if (this.args.isReadonly) {\n        return;\n      }\n      if (this.args.displaySelected) {\n        return this.displayColorTemplateModal(...arguments);\n      }\n      const themeName = R.pathOr('', ['_data', 'name'])(selectedTheme);\n      R.pipe(R.pathOr({}, ['_data']), R.toPairs, R.filter(R.pipe(R.head, R.test(/^theme/))), R.fromPairs, R.mapObjIndexed((value, key) => {\n        this.args.model.setData(key, value);\n      }))(selectedTheme);\n      this.args.model.setData('themeName', themeName);\n      const onSelect = this.args.onSelect;\n      if (onSelect) {\n        onSelect(selectedTheme);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"colorsResults\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchColorTemplatesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchColorTemplatesTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayColorTemplateModal\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"displayColorTemplateModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectColorTheme\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"selectColorTheme\"), _class.prototype), _class);\n});","define(\"client/pods/components/color-themes/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"E/qhnZPS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"theme\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@displaySelected\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[24,[\\\"searchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"color-themes/theme\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-margin-left-5\\\",[23,3,[]],true,\\\"select a preset website theme\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectColorTheme\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@contentClassNames\\\"],[\\\"flex-container-row\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"colorsResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[[28,\\\"unless\\\",[[23,3,[]],\\\"u-tappable\\\"],null],\\\"\\\\n          quick-template\\\\n          \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"themeName\\\"]],[23,1,[\\\"_data\\\",\\\"name\\\"]]],null],\\\"quick-template-is-selected\\\"],null],\\\"\\\\n        \\\"]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectColorTheme\\\"]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n          \\\"],[5,\\\"color-themes/theme\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,1,[]],[23,3,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/color-themes/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/color-themes/theme/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ColorThemesThemeComponent extends _component.default {\n    get label() {\n      if (this.args?.model?._data?.themeName) {\n        return this.args?.model?._data?.themeName;\n      }\n      if (this.args?.model?._data?.name) {\n        return this.args?.model?._data?.name;\n      }\n      return '';\n    }\n  }\n  _exports.default = ColorThemesThemeComponent;\n});","define(\"client/pods/components/color-themes/theme/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TREz8fBG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@errors\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@formInputClassNames\\\"],[\\\"description\\\",\\\"websites\\\",[23,2,[]],[23,0,[\\\"label\\\"]],false,[29,[[28,\\\"if\\\",[[23,0,[\\\"isActive\\\"]],\\\"is-active\\\"],null]]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"palette-wrapper\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"palette\\\"],[12,\\\"title\\\",[28,\\\"tt\\\",[\\\"website_action_color\\\"],null]],[3,\\\"add-style\\\",[[28,\\\"hash\\\",null,[[\\\"color\\\",\\\"backgroundColor\\\"],[[23,3,[\\\"_data\\\",\\\"themeActionColor\\\"]],[23,3,[\\\"_data\\\",\\\"themeActionColor\\\"]]]]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"palette\\\"],[12,\\\"title\\\",[28,\\\"tt\\\",[\\\"website_chat_button_color\\\"],null]],[3,\\\"add-style\\\",[[28,\\\"hash\\\",null,[[\\\"color\\\",\\\"backgroundColor\\\"],[[23,3,[\\\"_data\\\",\\\"themeChatButtonColor\\\"]],[23,3,[\\\"_data\\\",\\\"themeChatButtonColor\\\"]]]]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"palette\\\"],[12,\\\"title\\\",[28,\\\"tt\\\",[\\\"website_link_color\\\"],null]],[3,\\\"add-style\\\",[[28,\\\"hash\\\",null,[[\\\"color\\\",\\\"backgroundColor\\\"],[[23,3,[\\\"_data\\\",\\\"themeLinkColor\\\"]],[23,3,[\\\"_data\\\",\\\"themeLinkColor\\\"]]]]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"palette\\\"],[12,\\\"title\\\",[28,\\\"tt\\\",[\\\"website_menu_background_primary_color\\\"],null]],[3,\\\"add-style\\\",[[28,\\\"hash\\\",null,[[\\\"color\\\",\\\"backgroundColor\\\"],[[23,3,[\\\"_data\\\",\\\"themeMenuBackgroundPrimaryColor\\\"]],[23,3,[\\\"_data\\\",\\\"themeMenuBackgroundPrimaryColor\\\"]]]]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"palette\\\"],[12,\\\"title\\\",[28,\\\"tt\\\",[\\\"website_background_primary_color\\\"],null]],[3,\\\"add-style\\\",[[28,\\\"hash\\\",null,[[\\\"color\\\",\\\"backgroundColor\\\"],[[23,3,[\\\"_data\\\",\\\"themeBackgroundPrimaryColor\\\"]],[23,3,[\\\"_data\\\",\\\"themeBackgroundPrimaryColor\\\"]]]]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"palette\\\"],[12,\\\"title\\\",[28,\\\"tt\\\",[\\\"website_submenu_background_primary_color\\\"],null]],[3,\\\"add-style\\\",[[28,\\\"hash\\\",null,[[\\\"color\\\",\\\"backgroundColor\\\"],[[23,3,[\\\"_data\\\",\\\"themeSubmenuBackgroundPrimaryColor\\\"]],[23,3,[\\\"_data\\\",\\\"themeSubmenuBackgroundSecondaryColor\\\"]]]]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/color-themes/theme/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/chat-container/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"client/mixins/date\", \"client/mixins/crud\", \"client/utils/nventor\", \"ember-concurrency\"], function (_exports, R, R_, _date, _crud, _nventor, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, {\n    crud: Ember.inject.service(),\n    tagName: 'span',\n    classNames: ['comments__display-container'],\n    tooltipLabel: 'comments',\n    label: '',\n    adapterName: 'comments',\n    showEditor: false,\n    isEditing: false,\n    init() {\n      this._super(...arguments);\n      this.set('isEditing', false);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      this.setupNewCommentRecord();\n      const master = this.master;\n      if (master) {\n        this.fetchCommentsTask.perform(master);\n      }\n    },\n    setupNewCommentRecord() {\n      if (this?.isDestroyed === false) {\n        const master = this.master;\n        const tokenData = this.storage.get('tokenData');\n        const data = {\n          username: tokenData.username,\n          master: master\n        };\n        const model = this.setupNewRecord({\n          data\n        });\n        this.set('newModel', model);\n      }\n    },\n    comments: Ember.computed('commentsCollection._data.comments.[]', 'commentsCollection.synced', function () {\n      return this.get('commentsCollection._data.comments') || [];\n    }),\n    commentsCount: Ember.computed('comments.[]', 'commentsCollection.synced', function () {\n      const comments = this.comments || [];\n      return comments.length;\n    }),\n    // comments: computed('related.[]', function () {\n    //   console.log('========fetching comments=====for related')\n    //   // console.log(this.get('master'))\n    //   console.log(this.get('related'))\n    //   // const master = this.get('master')\n    //   // if (master) {\n    //   return this.get('fetchCommentsTask').perform()\n    //   // }\n    //   // return []\n    // }),\n\n    fetchCommentsTask: (0, _emberConcurrency.task)(function* (master) {\n      let data = {};\n      if (master) {\n        data.master = master;\n      }\n      const metaData = this.metaData;\n      if (metaData) {\n        data = R.mergeRight(data, metaData);\n      }\n      data.related = this.related || [];\n      this.crud.fetchBatch({\n        data,\n        adapterName: 'comments/collection',\n        appendPath: '/batch/master'\n      }, (populatedBatch = []) => {\n        if (this?.isDestroyed === false) {\n          if (!R.is(Array, populatedBatch)) {\n            return false;\n          }\n          const commentsCollection = R.find(R_.dotPathEq('_data.master', master))(populatedBatch) || [];\n          this.set('commentsCollection', commentsCollection);\n        }\n      });\n    }),\n    createCommentTask: (0, _emberConcurrency.task)(function* (onUpdateContent) {\n      try {\n        const nowZ = this.getNowZ();\n        const type = this.type;\n        const subType = this.subType;\n        const model = this.newModel;\n        // const message = model.getData('message.string')\n        // model.setData('message', message)\n\n        if (!model.getData('message')) {\n          return false;\n        }\n        model.setData('dateZ', nowZ);\n        model.setData('type', type);\n        if (subType) {\n          model.setData('subType', subType);\n        }\n        const metaData = this.metaData;\n        if (metaData) {\n          Object.keys(metaData).map(key => {\n            const value = metaData[key];\n            model.setData(key, value);\n          });\n        }\n        if (this.onBeforeCreateComment) {\n          this.onBeforeCreateComment(model);\n        }\n        yield this.createRecordTask.perform({\n          model\n        });\n        this.setupNewCommentRecord();\n        if (onUpdateContent) {\n          onUpdateContent();\n        }\n      } catch (err) {\n        this.set('errors', err.data);\n        _nventor.default.throw('createCommentTask failed', err);\n      }\n    }).drop(),\n    afterRemoveRecordTask(model) {\n      const dirty = this.dirty;\n      const comments = this.comments;\n      comments.removeObject(model);\n      if (dirty && model) {\n        if (dirty.getData('_id') === model.getData('_id')) {\n          this.cancelEdit();\n        }\n      }\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        this.cancelEdit();\n      }\n    },\n    cancelEdit() {\n      this.set('dirty', '');\n      this.set('isEditing', false);\n    },\n    actions: {\n      toggleEditor() {\n        this.toggleProperty('showEditor');\n      },\n      edit(model) {\n        const dirty = this.setupDirty({\n          adapterName: this.adapterName,\n          model\n        });\n        this.set('dirty', dirty);\n        this.set('isEditing', true);\n      },\n      cancelEdit() {\n        this.cancelEdit();\n      }\n    }\n  });\n});","define(\"client/pods/components/comments/chat-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"49ZC8nYp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"comment\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"chat-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"chat-grid__messages\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[28,\\\"or\\\",[[24,[\\\"isRunning\\\"]],[24,[\\\"fetchCommentsTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"comments\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"comments\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"comments/comments-manager/display-item\\\",null,[[\\\"comments\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"model\\\",\\\"onEdit\\\",\\\"onRemoveRecordTask\\\"],[[24,[\\\"comments\\\"]],[24,[\\\"contact\\\"]],[24,[\\\"contactKey\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\",[23,1,[]]],null],[28,\\\"perform\\\",[[24,[\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[23,1,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"chat-grid__footer\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"master\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"comments/comments-manager/editor-container\\\",null,[[\\\"isFooter\\\",\\\"master\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"model\\\",\\\"onCancel\\\",\\\"height\\\",\\\"isRunning\\\",\\\"onSubmitTask\\\"],[false,[24,[\\\"master\\\"]],[24,[\\\"contact\\\"]],[24,[\\\"contactKey\\\"]],[24,[\\\"dirty\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEdit\\\"],null],100,[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"onAfter\\\"],[[24,[\\\"dirty\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEdit\\\"],null]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"newModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"comments/comments-manager/editor-container\\\",null,[[\\\"isFooter\\\",\\\"master\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"model\\\",\\\"isRunning\\\",\\\"height\\\",\\\"onSubmitTask\\\"],[false,[24,[\\\"master\\\"]],[24,[\\\"contact\\\"]],[24,[\\\"contactKey\\\"]],[24,[\\\"newModel\\\"]],[24,[\\\"createCommentTask\\\",\\\"isRunning\\\"]],100,[28,\\\"perform\\\",[[24,[\\\"createCommentTask\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/chat-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/comments-manager/comments-container/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 CommentsCommentsManagerCommentsContainerComponent = _exports.default = (_dec = Ember.inject.service, _class = class CommentsCommentsManagerCommentsContainerComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _defineProperty(this, \"hasCommentEditorFooter\", R.pathOr(true, ['args', 'options', 'hasCommentEditorFooter'])(this));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/comments/comments-manager/comments-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fhCgPxUG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"comment\\\",\\\"@commentsManager\\\",\\\"@options\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"comments-container\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section comments-container__comments-display\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,4,[]],[23,2,[\\\"fetchCommentsTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"comments\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[\\\"comments\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"comments/comments-manager/display-item\\\",null,[[\\\"comments\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"model\\\",\\\"onEdit\\\",\\\"onRemoveRecordTask\\\",\\\"hasCommentEditorFooter\\\",\\\"master\\\",\\\"metaData\\\",\\\"type\\\",\\\"subType\\\"],[[23,2,[\\\"comments\\\"]],[23,3,[\\\"contact\\\"]],[23,3,[\\\"contactKey\\\"]],[23,1,[]],[28,\\\"fn\\\",[[23,2,[\\\"edit\\\"]],[23,1,[]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[[23,3,[\\\"adapterName\\\"]],[23,1,[]]]]]],null],[23,0,[\\\"hasCommentEditorFooter\\\"]],[23,3,[\\\"master\\\"]],[23,3,[\\\"metaData\\\"]],[23,3,[\\\"type\\\"]],[23,3,[\\\"subType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"hasCommentEditorFooter\\\"]],[23,2,[\\\"hasLoadedCommentsThread\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"isEditing\\\"]],[23,2,[\\\"dirty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"comments/comments-manager/editor-container\\\",null,[[\\\"tab\\\",\\\"master\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"model\\\",\\\"onCancel\\\",\\\"isRunning\\\",\\\"onSubmitTask\\\",\\\"onUpdateStatusTask\\\",\\\"metaData\\\",\\\"type\\\",\\\"subType\\\",\\\"isPublic\\\",\\\"isFooter\\\",\\\"height\\\",\\\"firstCommentModel\\\",\\\"commentStatus\\\"],[[23,3,[\\\"tab\\\"]],[23,3,[\\\"master\\\"]],[23,3,[\\\"contact\\\"]],[23,3,[\\\"contactKey\\\"]],[23,2,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,2,[\\\"cancelEdit\\\"]]],null],[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,3,[\\\"adapterName\\\"]],[23,2,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,2,[\\\"cancelEdit\\\"]]],null]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[\\\"comments/contacts\\\",[23,2,[\\\"firstCommentModel\\\"]]]]]],null],[23,3,[\\\"metaData\\\"]],[23,3,[\\\"type\\\"]],[23,3,[\\\"subType\\\"]],[23,3,[\\\"isPublic\\\"]],true,100,[23,2,[\\\"firstCommentModel\\\"]],[23,2,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"newModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"comments/comments-manager/editor-container\\\",null,[[\\\"tab\\\",\\\"master\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"model\\\",\\\"isRunning\\\",\\\"onSubmitTask\\\",\\\"onUpdateStatusTask\\\",\\\"metaData\\\",\\\"type\\\",\\\"subType\\\",\\\"isPublic\\\",\\\"isFooter\\\",\\\"height\\\",\\\"firstCommentModel\\\",\\\"commentStatus\\\"],[[23,3,[\\\"tab\\\"]],[23,3,[\\\"master\\\"]],[23,3,[\\\"contact\\\"]],[23,3,[\\\"contactKey\\\"]],[23,2,[\\\"newModel\\\"]],[23,2,[\\\"createCommentTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,2,[\\\"createCommentTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[\\\"comments/contacts\\\",[23,2,[\\\"firstCommentModel\\\"]]]]]],null],[23,3,[\\\"metaData\\\"]],[23,3,[\\\"type\\\"]],[23,3,[\\\"subType\\\"]],[23,3,[\\\"isPublic\\\"]],true,100,[23,2,[\\\"firstCommentModel\\\"]],[23,2,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/comments-manager/comments-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/comments-manager/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency\", \"client/utils/nventor\"], function (_exports, R, RA, _emberConcurrency, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    settingsService: Ember.inject.service('settings'),\n    tagName: 'span',\n    classNames: ['comments__display-container'],\n    tooltipLabel: 'internal comments',\n    label: '',\n    firstCommentDocNo: '',\n    adapterName: 'comments',\n    showEditor: false,\n    isEditing: false,\n    // icon: 'far fa-comment',\n\n    _btnTooltipLabel: Ember.computed('btnTooltipLabel', 'tooltipLabel', function () {\n      return this.btnTooltipLabel || this.tooltipLabel || '';\n    }),\n    isAllowed: Ember.computed('isPublic', function () {\n      if (!this.isPublic) {\n        return true;\n      }\n      if (!R.equals(this.subType, 'sales-invoices')) {\n        return false;\n      }\n      return this.settingsService?.settingsModel?._data?.allowOrderMessages;\n    }),\n    init() {\n      this._super(...arguments);\n      this.set('isEditing', false);\n      const firstCommentFilters = this.search.setupFilters({\n        adapterName: 'comments/contacts/filters',\n        defaultFiltersData: {\n          fetchWithActiveCampaigns: true\n        }\n      });\n      this.set('firstCommentFilters', firstCommentFilters);\n    },\n    /**\n     * Insert-time setup: always prepare a new comment draft.\n     * Public rows batch first-comment + commentsCount. Internal modal-btn\n     * rows batch a count-only collection search. Inline comments-container\n     * still loads the full thread here.\n     * @return {boolean|undefined} false when comments are not allowed\n     */\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      if (!this.isAllowed) {\n        return false;\n      }\n      this.setupNewCommentRecord();\n      const master = this.master;\n      if (!master) {\n        return;\n      }\n      if (this.isPublic) {\n        yield this.fetchFirstCommentDataTask.perform({\n          adapterName: 'comments',\n          filters: this.firstCommentFilters,\n          useBatch: true\n        });\n        return;\n      }\n\n      // modal rows only need a count on insert; bodies load when the modal opens\n      if (this.componentName === 'comments/comments-manager/modal-btn') {\n        yield this.fetchCommentsTask.perform(master, {\n          includeComments: false\n        });\n        return;\n      }\n      yield this.fetchCommentsTask.perform(master);\n    }),\n    setupNewCommentRecord() {\n      if (this?.isDestroyed === false) {\n        const master = this.master;\n        const tokenData = this.storage.get('tokenData');\n        const data = {\n          username: tokenData.username,\n          master: master\n        };\n        const model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          data\n        });\n        this.set('newModel', model);\n      }\n    },\n    /**\n     * metaData used for display and for creating comments. Public threads\n     * carry their document number as `name`, which downstream workflows read\n     * as the related resource value. Kept separate from the raw `metaData`\n     * passed in by callers so the search payload never gains a `name` filter.\n     * @return {Object} metaData, plus name for public threads\n     */\n    commentsMetaData: Ember.computed('metaData', 'isPublic', 'firstCommentDocNo', function () {\n      const metaData = this.metaData || {};\n      if (!this.isPublic || !this.firstCommentDocNo) {\n        return metaData;\n      }\n      return R.mergeRight(metaData, {\n        name: this.firstCommentDocNo\n      });\n    }),\n    comments: Ember.computed('commentsCollection._data.comments.[]', 'commentsCollection.synced', function () {\n      return this.get('commentsCollection._data.comments') || [];\n    }),\n    commentsCount: Ember.computed('comments.[]', 'hasLoadedCommentsThread', 'commentsCollection._data.commentsCount', 'commentsCollection.synced', 'firstCommentModel._data.commentsCount', function () {\n      if (this.hasLoadedCommentsThread) {\n        const comments = this.comments || [];\n        return comments.length;\n      }\n      const collectionCount = this.commentsCollection?._data?.commentsCount;\n      if (RA.isNotNil(collectionCount)) {\n        return collectionCount;\n      }\n      const firstCommentCount = this.firstCommentModel?._data?.commentsCount;\n      if (RA.isNotNil(firstCommentCount)) {\n        return firstCommentCount;\n      }\n      return 0;\n    }),\n    /**\n     * Load the public first-comment header (and commentsCount) for this master.\n     * List insert uses the contacts batch destination; create/reply still uses GET.\n     * @param {Object} params - adapter and filters\n     * @param {string} params.adapterName - comments adapter prefix (eg: 'comments')\n     * @param {Object} params.filters - contacts search filters model\n     * @param {Function} [params.filters.setData] - writes a filter field\n     * @param {Object} [params.filters._data] - current filter snapshot\n     * @param {boolean} [params.useBatch=false] - true on insert (POST /contacts/batch)\n     * @return {undefined}\n     */\n    fetchFirstCommentDataTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      filters,\n      useBatch = false\n    }) {\n      const master = this.master;\n      if (filters?.setData) {\n        filters.setData('master', master);\n      }\n      if (useBatch) {\n        const filterSnapshot = R.clone(filters?._data || {});\n        if (master) {\n          filterSnapshot.master = master;\n        }\n        yield this.crud.fetchBatch({\n          adapterName: `${adapterName}/contacts`,\n          appendPath: '/batch',\n          data: filterSnapshot\n        }, (populatedBatch = [], result) => {\n          if (this?.isDestroyed === false) {\n            const contacts = R.is(Array, result) ? result : R.find(list => {\n              const head = _nventor.default.safeHeadOr({}, list);\n              return head?._data?.master === master || head?.master === master;\n            })(populatedBatch) || [];\n            const firstCommentModel = _nventor.default.safeHeadOr({}, contacts);\n            if (RA.isNotNilOrEmpty(firstCommentModel)) {\n              this.set('firstCommentModel', firstCommentModel);\n            }\n            if (this.isPublic) {\n              this.set('firstCommentDocNo', firstCommentModel?._data?.docNo || '');\n            }\n          }\n        });\n        return;\n      }\n      const results = yield this.crud.searchRecordsConcurrentlyTask.perform({\n        adapterName: `${adapterName}/contacts`,\n        filters\n      });\n      const firstCommentModel = _nventor.default.safeHeadOr({}, results);\n      if (RA.isNotNilOrEmpty(firstCommentModel)) {\n        this.set('firstCommentModel', firstCommentModel);\n      }\n      if (this.isPublic) {\n        this.set('firstCommentDocNo', firstCommentModel?._data?.docNo || '');\n      }\n    }),\n    /**\n     * Load comments for this document via fetchBatch (collection batch).\n     * @param {string} master - document key\n     * @param {Object} [extra={}] - fetch flags\n     * @param {boolean} [extra.immediate=false] - skip fetchBatch debounce (modal open)\n     * @param {boolean} [extra.includeComments=true] - false returns count only\n     * @return {boolean|undefined} false when comments are not allowed\n     */\n    fetchCommentsTask: (0, _emberConcurrency.task)(function* (master, extra = {}) {\n      if (!this.isAllowed) {\n        return false;\n      }\n      const includeComments = extra.includeComments !== false;\n      const immediate = extra.immediate === true;\n      let data = {};\n      if (!includeComments) {\n        data.includeComments = false;\n      }\n      if (master) {\n        data.master = master;\n      }\n      if (this.type) {\n        data.type = this.type;\n      }\n      if (RA.isNotNilOrEmpty(this.metaData)) {\n        data = R.mergeRight(data, this.metaData);\n      }\n\n      // the api turns every payload key into a filter. `name` holds the document\n      // number for public threads, while a comment's own `name` is the commenter,\n      // so leaving it in matches nothing.\n      const excludeFromFilters = R.union(this.excludeFromFilters || [], ['name']);\n      data = R.omit(excludeFromFilters)(data);\n      data.related = this.related || [];\n      yield this.crud.fetchBatch({\n        data,\n        adapterName: 'comments/collection',\n        appendPath: '/batch/master',\n        immediate\n      }, (populatedBatch = [], result) => {\n        if (this?.isDestroyed === false) {\n          let commentsCollection = result;\n          const resultHasThread = RA.isNotNilOrEmpty(result?._data?.comments);\n          if (!resultHasThread && R.is(Array, populatedBatch)) {\n            const type = this.type;\n            const matchingCollection = R.find(item => {\n              const matchesMaster = item?._data?.master === master;\n              const matchesType = type ? item?._data?.type === type : true;\n              if (!matchesMaster || !matchesType) {\n                return false;\n              }\n              if (!includeComments) {\n                return true;\n              }\n              return RA.isNotNilOrEmpty(item?._data?.comments);\n            })(populatedBatch);\n            commentsCollection = matchingCollection || result || [];\n          }\n          this.set('commentsCollection', commentsCollection);\n          if (includeComments) {\n            this.set('hasLoadedCommentsThread', true);\n          }\n        }\n      });\n    }),\n    createCommentTask: (0, _emberConcurrency.task)(function* (onUpdateContent) {\n      try {\n        const nowZ = this.dateService.getNowZ();\n        const type = this.type;\n        const subType = this.subType;\n        const model = this.newModel;\n        // const message = model.getData('message.string')\n        // model.setData('message', message)\n\n        if (!model.getData('message')) {\n          return false;\n        }\n        let confirmed = true;\n        if (this.isPublic) {\n          const msg = this.intl.t('are you sure you want to comment and notify customer');\n          confirmed = window.confirm(msg);\n        }\n        if (confirmed) {\n          model.setData('dateZ', nowZ);\n          model.setData('type', type);\n          if (subType) {\n            model.setData('subType', subType);\n          }\n          const metaData = this.commentsMetaData;\n          if (metaData) {\n            Object.keys(metaData).map(key => {\n              const value = metaData[key];\n              model.setData(key, value);\n            });\n          }\n          if (this.onBeforeCreateComment) {\n            this.onBeforeCreateComment(model);\n          }\n          let firstCommentModel = this.firstCommentModel;\n          // Public threads need the first-comment header (contact, doc no).\n          // Internal threads do not render that header; fetching it here\n          // flips the modal IsLoading flag and tears down the editor.\n          if (this.isPublic && RA.isNilOrEmpty(firstCommentModel)) {\n            // check if there's first comment model one more time\n            // first comment will not be there if somehow APP user is already inside comment modal, and the broadcast updated customer message from SHOP\n            yield this.fetchFirstCommentDataTask.perform({\n              adapterName: this.adapterName,\n              filters: this.firstCommentFilters\n            });\n            firstCommentModel = this.firstCommentModel;\n          }\n\n          // set as isFirst if there's still no firstCommentModel\n          if (RA.isNilOrEmpty(firstCommentModel)) {\n            model.setData('isFirst', true);\n          }\n          const msg = yield this.crud.createRecordTask.perform({\n            adapterName: this.adapterName,\n            model\n          });\n          if (this.isPublic && RA.isNilOrEmpty(firstCommentModel)) {\n            yield this.fetchFirstCommentDataTask.perform({\n              adapterName: this.adapterName,\n              filters: this.firstCommentFilters\n            });\n          }\n          this.setupNewCommentRecord();\n          if (onUpdateContent) {\n            onUpdateContent(msg);\n          }\n        }\n      } catch (err) {\n        this.set('errors', err.data);\n        _nventor.default.throw('createCommentTask failed', err);\n      }\n    }).drop(),\n    afterRemoveRecordTask(model) {\n      const dirty = this.dirty;\n      const comments = this.comments;\n      comments.removeObject(model);\n      if (dirty && model) {\n        if (dirty.getData('_id') === model.getData('_id')) {\n          this.cancelEdit();\n        }\n      }\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        this.cancelEdit();\n      }\n    },\n    cancelEdit() {\n      this.set('dirty', '');\n      this.set('isEditing', false);\n    },\n    edit(model) {\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model\n      });\n      this.set('dirty', dirty);\n      this.set('isEditing', true);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"cancelEdit\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"cancelEdit\"), _obj), _applyDecoratedDescriptor(_obj, \"edit\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"edit\"), _obj), _obj));\n});","define(\"client/pods/components/comments/comments-manager/display-item/component\", [\"exports\", \"client/mixins/crud\", \"ramda\"], function (_exports, _crud, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    classNames: ['comments__display-item'],\n    username: '',\n    isEditing: false,\n    adapterName: 'comments',\n    init() {\n      this._super(...arguments);\n      const tokenData = this.storage.get('tokenData');\n      this.set('username', tokenData.username);\n      const model = this.model;\n      if (model?._data?.emailType === 'fromMerchantToCustomer') {\n        this.set('classNames', ['comments__display-item-right']);\n      }\n    },\n    isEditable: Ember.computed('model._data.{emailType,isPublic}', 'hasCommentEditorFooter', function () {\n      const model = this.model || {};\n      const isPublic = R.pathOr(false, ['_data', 'isPublic'])(model);\n      const username = model?._data?.username || '';\n      const hasCommentEditorFooter = R.propOr(true, 'hasCommentEditorFooter')(this);\n      if (!hasCommentEditorFooter) {\n        return false;\n      }\n      if (!R.equals(this.username, username)) {\n        return false;\n      }\n      if (isPublic) {\n        return false;\n      }\n      return true;\n    })\n  });\n});","define(\"client/pods/components/comments/comments-manager/display-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"h9wvsHiD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"workflowsOptions\\\",\\\"@onRemoveRecordTask\\\",\\\"@tab\\\",\\\"@master\\\",\\\"@metaData\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@firstCommentModel\\\",\\\"@model\\\",\\\"@hasCommentEditorFooter\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"username\\\"]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"modified\\\"]]],null,{\\\"statements\\\":[[0,\\\"        (\\\"],[1,[28,\\\"tt\\\",[\\\"updated\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        (\\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"helpers/content-display\\\",null,[[\\\"content\\\",\\\"className\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"message\\\"]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"emailType\\\"]],\\\"fromCustomer\\\"],null],\\\"u-pre-line\\\",\\\"\\\"],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]],[28,\\\"substringFrom\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]]],[[\\\"from\\\",\\\"end\\\"],[0,\\\"-\\\"]]],[28,\\\"substringFrom\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]]],[[\\\"from\\\",\\\"fromOffset\\\"],[\\\"-\\\",1]]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]]],null],false],[0,\\\" #\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"workflows/create-dynamic\\\",[],[[\\\"@tab\\\",\\\"@master\\\",\\\"@metaData\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@compactMode\\\",\\\"@firstCommentModel\\\",\\\"@model\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],true,[23,8,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isEditable\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"edit\\\",[24,[\\\"onEdit\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"delete\\\",[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/comments-manager/display-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/comments-manager/editor-container/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    isFooter: true,\n    isFooterSpacer: false,\n    classNames: ['comments__editor-container'],\n    height: 60\n  });\n});","define(\"client/pods/components/comments/comments-manager/editor-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bU1KgtCz\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFooter\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"comments__editor\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isPublic\\\"]],[24,[\\\"firstCommentModel\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"comments__editor-info\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@classNames\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[\\\"u-link--text\\\",[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@classNames\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[\\\"u-link--text\\\",[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"master\\\"]],[28,\\\"tt\\\",[\\\"sales-invoices\\\"],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",\\\"sales-invoices\\\",\\\"sales\\\",\\\"invoices\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                #\\\"],[1,[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"threadId\\\"]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"status\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasSidebarEdit\\\",\\\"@basicToolbar\\\",\\\"@options\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[22,\\\"tab\\\"],false,true,[28,\\\"hash\\\",null,[[\\\"toolbarBottom\\\",\\\"width\\\",\\\"height\\\"],[true,\\\"100%\\\",[24,[\\\"height\\\"]]]]],[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"message\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-center\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isPublic\\\"]],[24,[\\\"firstCommentModel\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"eq\\\",[[24,[\\\"commentStatus\\\"]],\\\"resolved\\\"],null],[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"commentStatus\\\"]],\\\"resolved\\\"],null],\\\"mark as unresolved\\\",\\\"mark as resolved\\\"],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onUpdateStatusTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isPublic\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@label\\\"],[\\\"u-padding-right-5 has-text-danger\\\",\\\"fa-solid fa-bullhorn\\\",\\\"this comment will be public\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"onCancel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"comment\\\",[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"message\\\"]],false,true],null],[28,\\\"or\\\",[[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[24,[\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSubmitTask\\\"]],[24,[\\\"workflowsOptions\\\",\\\"onCreateContact\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isPublic\\\"]],[24,[\\\"firstCommentModel\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"comments__editor-info\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@classNames\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[\\\"u-link--text\\\",[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@classNames\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[\\\"u-link--text\\\",[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"master\\\"]],[28,\\\"tt\\\",[\\\"sales-invoices\\\"],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",\\\"sales-invoices\\\",\\\"sales\\\",\\\"invoices\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            #\\\"],[1,[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"threadId\\\"]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"firstCommentModel\\\",\\\"_data\\\",\\\"status\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@basicToolbar\\\",\\\"@hasSidebarEdit\\\",\\\"@options\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[22,\\\"tab\\\"],true,false,[28,\\\"hash\\\",null,[[\\\"toolbarBottom\\\",\\\"toolbarStickyOffset\\\",\\\"width\\\",\\\"height\\\"],[true,40,\\\"100%\\\",[24,[\\\"height\\\"]]]]],[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"message\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-center\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isPublic\\\"]],[24,[\\\"firstCommentModel\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"eq\\\",[[24,[\\\"commentStatus\\\"]],\\\"resolved\\\"],null],[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"commentStatus\\\"]],\\\"resolved\\\"],null],\\\"mark as unresolved\\\",\\\"mark as resolved\\\"],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onUpdateStatusTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"onCancel\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"comment\\\",[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"message\\\"]],false,true],null],[28,\\\"or\\\",[[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[24,[\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSubmitTask\\\"]],[24,[\\\"workflowsOptions\\\",\\\"onCreateContact\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/comments-manager/editor-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/comments-manager/modal-btn/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\", \"ember-concurrency\"], function (_exports, R, R_, RA, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    // commentsService: service('comments'),\n    // dateService: service('date'),\n    // settingsService: service('settings'),\n\n    // tagName: 'span',\n    // classNames: ['comments__display-container'],\n    // tooltipLabel: 'internal comments',\n    // label: '',\n    // adapterName: 'comments',\n    // showEditor: false,\n    // isEditing: false,\n    _icon: 'far fa-comment',\n    icon: Ember.computed('options.btnIcon', '_icon', function () {\n      return this?.options?.btnIcon || this._icon;\n    }),\n    isAllowed: Ember.computed('isPublic', function () {\n      if (!this.isPublic) {\n        return true;\n      }\n      if (!R.equals(this.subType, 'sales-invoices')) {\n        return false;\n      }\n      return this.settingsService?.settingsModel?._data?.allowOrderMessages;\n    })\n\n    // init () {\n    //   this._super(...arguments)\n    //   this.set('isEditing', false)\n\n    //   const firstCommentFilters = this.search.setupFilters(\n    //     {\n    //       adapterName: 'comments/contacts/filters',\n    //       defaultFiltersData: {\n    //         fetchWithActiveCampaigns: true\n    //       }\n    //     }\n    //   )\n\n    //   this.set('firstCommentFilters', firstCommentFilters)\n    // },\n\n    // didInsertElement () {\n    //   this._super(...arguments)\n\n    //   this.setup()\n    // },\n\n    // setup () {\n    //   if (!this.isAllowed) {\n    //     return false\n    //   }\n\n    //   this.setupNewCommentRecord()\n\n    //   const master = this.master\n    //   if (master) {\n    //     this.fetchCommentsTask.perform(master)\n    //     const filters = this.firstCommentFilters\n    //     this.fetchFirstCommentDataTask.perform({ adapterName: 'comments', filters })\n    //   }\n    // },\n\n    // setupNewCommentRecord () {\n    //   if (this?.isDestroyed === false) {\n    //     const master = this.master\n    //     const tokenData = this.storage.get('tokenData')\n    //     const data = {\n    //       username: tokenData.username,\n    //       master: master\n    //     }\n    //     const model = this.crud.setupNewRecord({ data })\n    //     this.set('newModel', model)\n    //   }\n    // },\n\n    // comments: computed('commentsCollection._data.comments.[]', 'commentsCollection.synced', function () {\n    //   return this.get('commentsCollection._data.comments') || []\n    // }),\n\n    // commentsCount: computed('comments.[]', 'commentsCollection.synced', function () {\n    //   const comments = this.comments || []\n    //   return comments.length\n    // }),\n\n    // fetchFirstCommentDataTask: task(function * ({ adapterName, filters }) {\n    //   const master = this.master\n\n    //   filters.setData('master', master)\n\n    //   const results = yield this.crud.searchRecordsConcurrentlyTask.perform({\n    //     adapterName: `${adapterName}/contacts`,\n    //     filters\n    //   })\n\n    //   const firstCommentModel = nventor.safeHeadOr({}, results)\n    //   if (RA.isNotNilOrEmpty(firstCommentModel)) {\n    //     this.set('firstCommentModel', firstCommentModel)\n    //   }\n\n    //   if (this.isPublic) {\n    //     this.metaData.name = firstCommentModel?._data?.docNo || ''\n    //   }\n    // }),\n\n    // fetchCommentsTask: task(function * (master) {\n    //   if (!this.isAllowed) {\n    //     return false\n    //   }\n\n    //   let data = {}\n\n    //   if (master) {\n    //     data.master = master\n    //   }\n\n    //   if (this.type) {\n    //     data.type = this.type\n    //   }\n\n    //   const metaData = this.metaData\n    //   if (metaData) {\n    //     data = R.mergeRight(data, metaData)\n    //   }\n\n    //   const excludeFromFilters = this.excludeFromFilters || []\n    //   data = R.omit(excludeFromFilters)(data)\n\n    //   data.related = this.related || []\n\n    //   this.commentsService.qFetch({ data }, (batchCommentsCollection = []) => {\n    //     if (this?.isDestroyed === false) {\n    //       if (!R.is(Array, batchCommentsCollection)) {\n    //         return false\n    //       }\n    //       const type = this.type\n    //       let criteria = R_.dotPathEq('_data.master', master)\n\n    //       if (type) {\n    //         criteria = R.allPass(\n    //           [\n    //             R_.dotPathEq('_data.master', master),\n    //             R_.dotPathEq('_data.type', type)\n    //           ]\n    //         )\n    //       }\n    //       const commentsCollection = R.find(criteria)(batchCommentsCollection) || []\n    //       this.set('commentsCollection', commentsCollection)\n    //     }\n    //   })\n    // }),\n\n    //   createCommentTask: task(function * (onUpdateContent) {\n    //     try {\n    //       const nowZ = this.dateService.getNowZ()\n    //       const type = this.type\n    //       const subType = this.subType\n    //       const model = this.newModel\n    //       // const message = model.getData('message.string')\n    //       // model.setData('message', message)\n\n    //       if (!model.getData('message')) {\n    //         return false\n    //       }\n\n    //       let confirmed = true\n    //       if (this.isPublic) {\n    //         const msg = this.intl.t('are you sure you want to comment and notify customer')\n    //         confirmed = window.confirm(msg)\n    //       }\n    //       if (confirmed) {\n    //         model.setData('dateZ', nowZ)\n    //         model.setData('type', type)\n\n    //         if (subType) {\n    //           model.setData('subType', subType)\n    //         }\n\n    //         const metaData = this.metaData\n    //         if (metaData) {\n    //           Object.keys(metaData).map(key => {\n    //             const value = metaData[key]\n    //             model.setData(key, value)\n    //           })\n    //         }\n\n    //         if (this.onBeforeCreateComment) {\n    //           this.onBeforeCreateComment(model)\n    //         }\n\n    //         let firstCommentModel = this.firstCommentModel\n    //         if (RA.isNilOrEmpty(firstCommentModel)) {\n    //         // check if there's first comment model one more time\n    //         // first comment will not be there if somehow APP user is already inside comment modal, and the broadcast updated customer message from SHOP\n    //           yield this.fetchFirstCommentDataTask.perform({ adapterName: 'comments', filters: this.firstCommentFilters })\n    //           firstCommentModel = this.firstCommentModel\n    //         }\n\n    //         // set as isFirst if there's still no firstCommentModel\n    //         if (RA.isNilOrEmpty(firstCommentModel)) {\n    //           model.setData('isFirst', true)\n    //         }\n\n    //         const msg = yield this.createRecordTask.perform({ model })\n\n    //         if (RA.isNilOrEmpty(firstCommentModel)) {\n    //           yield this.fetchFirstCommentDataTask.perform({ adapterName: 'comments', filters: this.firstCommentFilters })\n    //         }\n\n    //         this.setupNewCommentRecord()\n\n    //         if (onUpdateContent) {\n    //           onUpdateContent(msg)\n    //         }\n    //       }\n    //     } catch (err) {\n    //       this.set('errors', err.data)\n    //       nventor.throw('createCommentTask failed', err)\n    //     }\n    //   }).drop(),\n\n    //   afterRemoveRecordTask (model) {\n    //     const dirty = this.dirty\n    //     const comments = this.comments\n    //     comments.removeObject(model)\n    //     if (dirty && model) {\n    //       if (dirty.getData('_id') === model.getData('_id')) {\n    //         this.cancelEdit()\n    //       }\n    //     }\n    //   },\n\n    //   willDestroyElement () {\n    //     if (this?.isDestroyed === false) {\n    //       this.cancelEdit()\n    //     }\n    //   },\n\n    //   cancelEdit () {\n    //     this.set('dirty', '')\n    //     this.set('isEditing', false)\n    //   },\n\n    //   actions: {\n    //     toggleEditor () {\n    //       this.toggleProperty('showEditor')\n    //     },\n\n    //     edit (model) {\n    //       const dirty = this.setupDirty({\n    //         adapterName: this.adapterName,\n    //         model\n    //       })\n    //       this.set('dirty', dirty)\n    //       this.set('isEditing', true)\n    //     },\n\n    //     cancelEdit () {\n    //       this.cancelEdit()\n    //     }\n    //   }\n  });\n});","define(\"client/pods/components/comments/comments-manager/modal-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gWsJzgF3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@commentsManager\\\",\\\"@isRunning\\\",\\\"@options\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"master\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@badge\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@modalDialogContainerClassName\\\",\\\"@modalDialogTitle\\\",\\\"@onClose\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[23,2,[\\\"commentsCount\\\"]],[23,0,[\\\"icon\\\"]],[28,\\\"or\\\",[[23,3,[]],[23,2,[\\\"fetchCommentsTask\\\",\\\"isRunning\\\"]]],null],[23,4,[\\\"btnLabel\\\"]],[28,\\\"if\\\",[[23,4,[\\\"isPublic\\\"]],\\\"public-comments\\\"],null],[28,\\\"if\\\",[[23,4,[\\\"isPublic\\\"]],\\\"customer comments\\\",\\\"internal comments\\\"],null],[23,2,[\\\"cancelEdit\\\"]],[28,\\\"perform\\\",[[23,2,[\\\"fetchCommentsTask\\\"]],[23,4,[\\\"master\\\"]],[28,\\\"hash\\\",null,[[\\\"immediate\\\"],[true]]]],null],[23,4,[\\\"btnTooltipLabel\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"comments/comments-manager/comments-container\\\",[],[[\\\"@isRunning\\\",\\\"@commentsManager\\\",\\\"@options\\\"],[[23,3,[]],[23,2,[]],[23,4,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/comments-manager/modal-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/comments-manager/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2NFy9tGK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@type\\\",\\\"@tab\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@hasCommentEditorFooter\\\",\\\"@isPublic\\\",\\\"@contactKey\\\",\\\"@contact\\\",\\\"@btnLabel\\\",\\\"@btnIcon\\\",\\\"@componentName\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isAllowed\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupTask\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"component\\\",[[23,11,[]]],[[\\\"commentsManager\\\",\\\"options\\\"],[[23,0,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"btnIcon\\\",\\\"btnLabel\\\",\\\"btnTooltipLabel\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"isPublic\\\",\\\"hasCommentEditorFooter\\\",\\\"master\\\",\\\"metaData\\\",\\\"subType\\\",\\\"tab\\\",\\\"type\\\"],[[23,0,[\\\"adapterName\\\"]],[23,10,[]],[23,9,[]],[23,0,[\\\"_btnTooltipLabel\\\"]],[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,0,[\\\"commentsMetaData\\\"]],[23,3,[]],[23,2,[]],[23,1,[]]]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/comments-manager/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/panels-display/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/crud\", \"client/mixins/date\", \"client/utils/nventor\", \"ember-concurrency\"], function (_exports, R, RA, _crud, _date, _nventor, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    settingsService: Ember.inject.service('settings'),\n    tagName: 'span',\n    classNames: ['comments__display-container'],\n    tooltipLabel: 'internal comments',\n    label: '',\n    adapterName: 'comments',\n    showEditor: false,\n    isEditing: false,\n    icon: 'far fa-comment',\n    init() {\n      this._super(...arguments);\n      // this.crud.addLists(this, [\n      //   {\n      //     name: 'taxes',\n      //     appendPath: 'products'\n      //   },\n      //   'products/lists/displaySubPanels',\n      //   'products/lists/editorSubPanels',\n      //   'products/lists/tags',\n      //   'products/lists/types',\n      //   'products/lists/setTypes',\n      //   'products/lists/setTypes/variants',\n      //   'products/lists/tracking',\n      //   'products/lists/invoiceDescriptions',\n      //   'statuses'\n      // ])\n\n      this.set('isEditing', false);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const model = this.get('tab.model');\n\n      // images is required to be an array\n      // if (!isArray(model.getData('images'))) {\n      //   model.setData('images', [])\n      // }\n      this.set('model', model);\n      this.setPropertiesFromModel(model);\n      this.tabsManager.setHeader(this.tabParent, model.getData('name'));\n      this.setupNewCommentRecord();\n      const master = model.getData('master');\n      if (master) {\n        this.fetchCommentsTask.perform(master);\n      }\n    },\n    setPropertiesFromModel(model) {\n      this.set('type', model.getData('type'));\n      this.set('subType', model.getData('subType'));\n      this.set('metaData', {\n        type: 'documents-public',\n        subType: model?._data?.subType || '',\n        contact: model?._data?.contact || '',\n        contactKey: model?._data?.contactKey || '',\n        emailToAddress: model?._data?.emailToAddress || '',\n        emailToName: model?._data?.contact || '',\n        locale: model?._data?.locale || '',\n        ref: model?._data?.ref || '',\n        threadId: model?._data?.threadId || '',\n        isPublic: true,\n        emailType: 'fromMerchantToCustomer',\n        shopKey: model?._data?.shopKey || '',\n        sourceHost: model?._data?.sourceHost || '',\n        sourceHostName: model?._data?.sourceHostName || '',\n        name: model?._data?.docNo || ''\n      });\n    },\n    setupNewCommentRecord() {\n      if (this?.isDestroyed === false) {\n        const oldModel = this.model;\n        const master = oldModel.getData('master') || '';\n        const tokenData = this.storage.get('tokenData');\n        const data = {\n          username: tokenData.username,\n          master: master\n        };\n        const model = this.setupNewRecord({\n          data\n        });\n        this.set('newModel', model);\n      }\n    },\n    comments: Ember.computed('commentsCollection._data.comments.[]', 'commentsCollection.synced', function () {\n      return this.get('commentsCollection._data.comments') || [];\n    }),\n    commentsCount: Ember.computed('comments.[]', 'commentsCollection.synced', function () {\n      const comments = this.comments || [];\n      return comments.length;\n    }),\n    errorMsg: Ember.computed(function () {\n      return this.intl.t('error occurred please try again later');\n    }),\n    trackingTagLabel: Ember.computed(function () {\n      return this.intl.t('tracking') + ': ';\n    }),\n    isAllowed: Ember.computed('isPublic', function () {\n      if (!this.isPublic) {\n        return true;\n      }\n      return this.settingsService?.settingsModel?._data?.allowOrderMessages;\n    }),\n    /**\n     * Load the public CS inbox thread via collection fetchBatch.\n     * Prefer the indexed `result` slot. A shared flush can also contain\n     * count-only rows (`comments: []`) for the same master; scanning the\n     * whole batch by contact `type` used to pick those and blank the chat.\n     * @param {string} master - document key for this ticket\n     * @return {undefined}\n     */\n    fetchCommentsTask: (0, _emberConcurrency.task)(function* (master) {\n      let data = {};\n      if (master) {\n        data.master = master;\n      }\n      if (this.type) {\n        data.type = this.type;\n      }\n      if (this.subType) {\n        data.subType = this.subType;\n      }\n      const metaData = this.metaData;\n      if (metaData) {\n        data = R.mergeRight(data, metaData);\n      }\n\n      // Collection search filters on every remaining key. `name` on the\n      // contact is the document number; comment `name` is the commenter.\n      const excludeFromFilters = R.union(this.excludeFromFilters || [], ['name']);\n      data = R.omit(excludeFromFilters)(data);\n      data.related = this.related || [];\n      yield this.crud.fetchBatch({\n        data,\n        adapterName: 'comments/collection',\n        appendPath: '/batch/master'\n      }, (populatedBatch = [], result) => {\n        if (this?.isDestroyed === false) {\n          this.set('commentsCollection', this._commentsCollectionFromBatch({\n            master,\n            populatedBatch,\n            result\n          }));\n        }\n      });\n    }),\n    /**\n     * Pick the collection record that should render in the CS chat.\n     * @param {Object} params - batch callback values\n     * @param {string} params.master - document key requested for this panel\n     * @param {Object[]} params.populatedBatch - all slots from this flush\n     * @param {Object} params.populatedBatch[]._data - collection fields on one slot\n     * @param {string} params.populatedBatch[]._data.master - document key on the slot\n     * @param {string} params.populatedBatch[]._data.type - collection type on the slot\n     * @param {Object[]} params.populatedBatch[]._data.comments - comment bodies when loaded\n     * @param {Object} [params.result] - slot for this panel's payload\n     * @param {Object} [params.result._data] - collection fields\n     * @param {string} [params.result._data.master] - document key on the slot\n     * @param {string} [params.result._data.type] - collection type on the slot\n     * @param {Object[]} [params.result._data.comments] - comment bodies when loaded\n     * @return {Object|Array} collection record, or [] when nothing matched\n     */\n    _commentsCollectionFromBatch({\n      master,\n      populatedBatch,\n      result\n    }) {\n      if (RA.isNotNilOrEmpty(result?._data?.comments)) {\n        return result;\n      }\n      if (!R.is(Array, populatedBatch)) {\n        return result || [];\n      }\n\n      // Collection rows use documents-public; the contacts list row `type`\n      // is not a reliable match key after fetchBatch.\n      const collectionType = this.metaData?.type || this.type;\n      const matchingCollection = R.find(item => {\n        const matchesMaster = item?._data?.master === master;\n        const matchesType = collectionType ? item?._data?.type === collectionType : true;\n        if (!matchesMaster || !matchesType) {\n          return false;\n        }\n        return RA.isNotNilOrEmpty(item?._data?.comments);\n      })(populatedBatch);\n      return matchingCollection || result || [];\n    },\n    createCommentTask: (0, _emberConcurrency.task)(function* (onUpdateContent) {\n      try {\n        const nowZ = this.getNowZ();\n        const type = this.type;\n        const subType = this.subType;\n        const model = this.newModel;\n        // const message = model.getData('message.string')\n        // model.setData('message', message)\n\n        if (!model.getData('message')) {\n          return false;\n        }\n        let confirmed = true;\n        if (this.isPublic) {\n          const msg = this.intl.t('are you sure you want to comment and notify customer');\n          confirmed = window.confirm(msg);\n        }\n        if (confirmed) {\n          model.setData('dateZ', nowZ);\n          model.setData('type', type);\n          if (subType) {\n            model.setData('subType', subType);\n          }\n          const metaData = this.metaData;\n          if (metaData) {\n            Object.keys(metaData).map(key => {\n              const value = metaData[key];\n              model.setData(key, value);\n            });\n          }\n          if (this.onBeforeCreateComment) {\n            this.onBeforeCreateComment(model);\n          }\n          const msg = yield this.createRecordTask.perform({\n            model\n          });\n          this.setupNewCommentRecord();\n          if (onUpdateContent) {\n            onUpdateContent(msg);\n          }\n        }\n      } catch (err) {\n        this.set('errors', err.data);\n        _nventor.default.throw('createCommentTask failed', err);\n      }\n    }).drop(),\n    afterRemoveRecordTask(model) {\n      const dirty = this.dirty;\n      const comments = this.comments;\n      comments.removeObject(model);\n      if (dirty && model) {\n        if (dirty.getData('_id') === model.getData('_id')) {\n          this.cancelEdit();\n        }\n      }\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        this.cancelEdit();\n      }\n    },\n    cancelEdit() {\n      this.set('dirty', '');\n      this.set('isEditing', false);\n    },\n    actions: {\n      toggleEditor() {\n        this.toggleProperty('showEditor');\n      },\n      edit(model) {\n        const dirty = this.setupDirty({\n          adapterName: this.adapterName,\n          model\n        });\n        this.set('dirty', dirty);\n        this.set('isEditing', true);\n      },\n      cancelEdit() {\n        this.cancelEdit();\n      }\n    }\n  });\n});","define(\"client/pods/components/comments/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D8M0pWV8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"comment\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"emailToName\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"emailToAddress\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t#\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"chat-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[24,[\\\"isRunning\\\"]],[24,[\\\"fetchCommentsTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"chat-grid__messages\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"comments\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"comments\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"comments/comments-manager/display-item\\\",null,[[\\\"comments\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"hasCommentEditorFooter\\\",\\\"model\\\",\\\"firstCommentModel\\\",\\\"onEdit\\\",\\\"onRemoveRecordTask\\\",\\\"master\\\",\\\"metaData\\\",\\\"type\\\",\\\"subType\\\"],[[24,[\\\"comments\\\"]],[24,[\\\"contact\\\"]],[24,[\\\"contactKey\\\"]],true,[23,1,[]],[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\",[23,1,[]]],null],[28,\\\"perform\\\",[[24,[\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[23,1,[]]]]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"master\\\"]],[24,[\\\"metaData\\\"]],[24,[\\\"type\\\"]],[24,[\\\"subType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/footer-btns\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"master\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"comments/comments-manager/editor-container\\\",null,[[\\\"tab\\\",\\\"master\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"model\\\",\\\"onCancel\\\",\\\"isRunning\\\",\\\"onSubmitTask\\\",\\\"onUpdateStatusTask\\\",\\\"metaData\\\",\\\"type\\\",\\\"isPublic\\\",\\\"isFooter\\\",\\\"height\\\",\\\"firstCommentModel\\\",\\\"commentStatus\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"master\\\"]],[24,[\\\"contact\\\"]],[24,[\\\"contactKey\\\"]],[24,[\\\"dirty\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEdit\\\"],null],[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"onAfter\\\"],[[24,[\\\"dirty\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEdit\\\"],null]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[\\\"comments/contacts\\\",[24,[\\\"model\\\"]]]]]],null],[24,[\\\"metaData\\\"]],[24,[\\\"type\\\"]],[24,[\\\"isPublic\\\"]],false,100,[24,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"comments/comments-manager/editor-container\\\",null,[[\\\"tab\\\",\\\"master\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"model\\\",\\\"isRunning\\\",\\\"onSubmitTask\\\",\\\"onUpdateStatusTask\\\",\\\"metaData\\\",\\\"type\\\",\\\"isPublic\\\",\\\"isFooter\\\",\\\"height\\\",\\\"firstCommentModel\\\",\\\"commentStatus\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"master\\\"]],[24,[\\\"contact\\\"]],[24,[\\\"contactKey\\\"]],[24,[\\\"newModel\\\"]],[24,[\\\"createCommentTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"createCommentTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[\\\"comments/contacts\\\",[24,[\\\"model\\\"]]]]]],null],[24,[\\\"metaData\\\"]],[24,[\\\"type\\\"]],[24,[\\\"isPublic\\\"]],false,100,[24,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/rules-sidebar/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class CommentsHelpComponent extends _component.default {\n    get master() {\n      const master = this.args.sidebarOptions?.master;\n      if (master) {\n        return master;\n      }\n      return this.args.sidebarOptions?.type;\n    }\n  }\n  _exports.default = CommentsHelpComponent;\n});","define(\"client/pods/components/comments/rules-sidebar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wRFQkU5l\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@sidebarOptions\\\"],\\\"statements\\\":[[5,\\\"layouts/section-container\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@btnLabel\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\"],[\\\"comments/comments-manager/modal-btn\\\",[23,1,[]],\\\"manage rules\\\",[23,2,[\\\"type\\\"]],\\\"rules\\\",[23,0,[\\\"master\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-container help-container u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"rules_notes\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@hasCommentEditorFooter\\\"],[\\\"comments/comments-manager/comments-container\\\",[23,1,[]],[23,2,[\\\"type\\\"]],\\\"rules\\\",[23,0,[\\\"master\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/rules-sidebar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/search-results-item/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this.crud.addLists(this, ['products/lists/types', 'products/lists/tracking', 'statuses']);\n      this._super(...arguments);\n    },\n    trackingTagLabel: Ember.computed(function () {\n      return this.intl.t('tracking') + ': ';\n    }),\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/comments/search-results-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wy1vm5Bk\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"emailToName\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"emailToAddress\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t#\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"docNo\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\" - \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"ref\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-margin-left--auto u-padding-left-5\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]],\\\"resolved\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"resolved\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"readBadge\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-badge\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"result\\\",\\\"_data\\\",\\\"readBadge\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/search-results-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/comments/tab-container/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _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 ChannelsShopRewardsTabContainerComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _class = class ChannelsShopRewardsTabContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      // this.crud.addLists(this, [\n      //   {\n      //     name: 'taxes',\n      //     appendPath: 'products'\n      //   },\n      //   'filters/count',\n      //   'filters/criterias',\n      //   'products/lists/menu',\n      //   'products/inventory/lists/qtyTypes',\n      //   'products/lists/invoiceDescriptions',\n      //   'products/lists/tags',\n      //   'products/lists/tracking',\n      //   'products/lists/types',\n      //   'products/lists/setTypes',\n      //   'products/lists/setTypesFilters',\n      //   'settings/roundingAuto',\n      //   'statuses',\n      //   'toggles/yesNo',\n      //   'units',\n      //   'units/dimensions',\n      //   'units/weight'\n      // ])\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor7, this);\n      _initializerDefineProperty(this, \"resultsToggle\", _descriptor8, this);\n      _defineProperty(this, \"adapterName\", 'comments/contacts');\n      _defineProperty(this, \"filtersAdapterName\", 'comments/contacts/filters');\n      _defineProperty(this, \"defaultStatus\", 'awaitingReplyFromMerchant');\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          fetchWithActiveCampaigns: true,\n          status: this.defaultStatus || ''\n        }\n      });\n      filters.set('showResults', true);\n      this.filters = filters;\n      this.loadTabTask.perform();\n    }\n\n    // afterLoadLists () {\n    //   this.super(...arguments)\n    //   this.loadTabTask.perform()\n    // }\n\n    *loadTabTask() {\n      const tab = this.args.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const model = loadInstructions.getData('model');\n        if (model) {\n          this.display(loadInstructions.getData('model'));\n        } else {\n          const id = loadInstructions.getData('find.id');\n          const found = yield this.crud.findTask.perform({\n            adapterName: this.adapterName,\n            appendPath: id\n          });\n          const filters = this.filters;\n          filters.set('results', RA.list(found));\n          filters.setData('query', found.getData('docNo'));\n          this.display(found);\n        }\n      } else {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        yield this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters\n        });\n      }\n    }\n    *filterDefaultDataTask({\n      status\n    }) {\n      const adapterName = this.adapterName;\n      const filters = this.filters || {};\n      if (RA.isNotNilOrEmpty(filters)) {\n        const originalStatus = filters.getData('status') || '';\n        if (R.equals(status, originalStatus)) {\n          filters.setData('status', '');\n        } else {\n          filters.setData('status', status);\n        }\n      }\n      yield this.fetchDefaultDataTask.perform({\n        adapterName,\n        filters\n      });\n      const subTabs = this?.args?.tab?.subTabs || [];\n      if (RA.isNotNilOrEmpty(subTabs) && RA.isNotNilOrEmpty(subTabs[0])) {\n        this.tabsManager.closeTab(subTabs, subTabs[0]);\n      }\n    }\n    *fetchDefaultDataTask({\n      adapterName,\n      filters\n    }) {\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: `${this.adapterName}`,\n        filters: this.filters\n      });\n    }\n\n    /**\n     * display the product\n     * @param  {object} product model\n     */\n    display(model, {\n      tabOptions\n    } = {}) {\n      if (this.applicationService.isMobile) {\n        Ember.set(this, 'filters.showResults', false);\n      }\n      const tab = this.args.tab;\n      const panelOptions = {\n        component: 'comments/panels-display',\n        model: model\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions, tabOptions);\n    }\n    toggleFiltersShowResults(onToggleOverflowMenu) {\n      const filters = this.filters;\n      if (filters) {\n        filters.set('showResults', true);\n      }\n      if (onToggleOverflowMenu) {\n        onToggleOverflowMenu();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"resultsToggle\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadTabTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTabTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"filterDefaultDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"filterDefaultDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDefaultDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDefaultDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"display\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"display\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleFiltersShowResults\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleFiltersShowResults\"), _class.prototype), _class);\n});","define(\"client/pods/components/comments/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jvWsCULA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],\\\"comments\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"status\\\"]],\\\"awaitingReplyFromMerchant\\\"],null],[23,0,[\\\"filterDefaultDataTask\\\",\\\"isRunning\\\"]],\\\"awaitingReplyFromMerchant\\\",[28,\\\"perform\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfterTask\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"filterDefaultDataTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\"],[\\\"awaitingReplyFromMerchant\\\"]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleFiltersShowResults\\\"]],[23,5,[]]],null]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"status\\\"]],\\\"awaitingReplyFromCustomer\\\"],null],[23,0,[\\\"filterDefaultDataTask\\\",\\\"isRunning\\\"]],\\\"awaitingReplyFromCustomer\\\",[28,\\\"perform\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfterTask\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"filterDefaultDataTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\"],[\\\"awaitingReplyFromCustomer\\\"]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleFiltersShowResults\\\"]],[23,5,[]]],null]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"status\\\"]],\\\"resolved\\\"],null],[23,0,[\\\"filterDefaultDataTask\\\",\\\"isRunning\\\"]],\\\"resolved\\\",[28,\\\"perform\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfterTask\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"filterDefaultDataTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\"],[\\\"resolved\\\"]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleFiltersShowResults\\\"]],[23,5,[]]],null]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"comments\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"comments/search-results-item\\\",[],[[\\\"@result\\\",\\\"@query\\\"],[[23,2,[]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,6,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"filters\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onSearchTask\\\",\\\"results\\\",\\\"tab\\\",\\\"tabParent\\\",\\\"isPublic\\\",\\\"excludeFromFilters\\\"],[[24,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"results\\\"]],[23,1,[]],[23,0,[\\\"tab\\\"]],true,[28,\\\"array\\\",[\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"emailType\\\",\\\"emailFromAddress\\\",\\\"emailFromName\\\",\\\"locale\\\",\\\"ref\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\",\\\"name\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/comments/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/components-group-stories/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _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 ComponentsGroupStoriesComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _class = class ComponentsGroupStoriesComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isSliderModalVisible\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentActive\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isAutoSlideshow\", _descriptor3, this);\n      _initializerDefineProperty(this, \"slideshowInterval\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isPaused\", _descriptor5, this);\n      _initializerDefineProperty(this, \"progress\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isOpen\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isImgLoaded\", _descriptor8, this);\n      _defineProperty(this, \"progressLimit\", 5);\n    }\n    onClickShowSliderModal(story, imageObject, index) {\n      this.isSliderModalVisible = true;\n      this.setActiveImageObject(story, imageObject);\n      this.progress = 0;\n      this.isImgLoaded = false;\n    }\n    setActiveImageObject(story, imageObject) {\n      const imageObjects = story.imageObjects || [];\n      R.forEach(imageObject => {\n        Ember.set(imageObject, 'isActive', false);\n      })(imageObjects);\n      Ember.set(imageObject, 'isActive', true);\n      Ember.set(imageObject, 'isOpen', true);\n      this.currentActive = imageObject;\n      this.stopSlideshow();\n    }\n    startSlideshow(story) {\n      this.stopSlideshow();\n      this.isAutoSlideshow = true;\n\n      // set 5s for each slider\n      this.slideshowInterval = setInterval(() => {\n        if (!this.isPaused) {\n          this.progress += 1;\n          this.isImgLoaded = true;\n        }\n        if (this.progress > this.progressLimit) {\n          this.nextImage(story);\n        }\n      }, 1000);\n    }\n    nextImage(story) {\n      this.progress = 0;\n      this.isImgLoaded = false;\n      const currentActive = this.currentActive;\n      if (!currentActive) {\n        return;\n      }\n      const imageObjects = story.imageObjects || [];\n      const currentIndex = imageObjects.indexOf(currentActive);\n      const nextImageObject = imageObjects.objectAt(currentIndex + 1);\n      if (!nextImageObject) {\n        return this.closeModal();\n      }\n      this.setActiveImageObject(story, nextImageObject);\n    }\n    toBackSlide(story) {\n      this.isPaused = false;\n      this.progress = 0;\n      this.isImgLoaded = false;\n      const currentActive = this.currentActive;\n      if (!currentActive) {\n        return;\n      }\n      const imageObjects = story.imageObjects || [];\n      const currentIndex = imageObjects.indexOf(currentActive);\n      const previousImageObject = imageObjects.objectAt(currentIndex - 1);\n      if (!previousImageObject) {\n        return this.closeModal();\n      }\n      this.setActiveImageObject(story, previousImageObject);\n    }\n    toNextSlide(story) {\n      this.isPaused = false;\n      this.nextImage(story);\n    }\n    stopSlideshow() {\n      this.isAutoSlideshow = false;\n      if (this.slideshowInterval) {\n        clearInterval(this.slideshowInterval);\n        this.slideshowInterval = null;\n      }\n    }\n    onModalClose(imageObject) {\n      this.isSliderModalVisible = false;\n      Ember.set(imageObject, 'isActive', false);\n      this.stopSlideshow();\n    }\n    handleMouseDown() {\n      this.isPaused = true;\n    }\n    handleMouseUp() {\n      this.isPaused = false;\n    }\n    closeModal() {\n      this.isSliderModalVisible = false;\n      this.stopSlideshow();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isSliderModalVisible\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentActive\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isAutoSlideshow\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"slideshowInterval\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isPaused\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"progress\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isImgLoaded\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClickShowSliderModal\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"onClickShowSliderModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setActiveImageObject\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setActiveImageObject\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startSlideshow\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"startSlideshow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextImage\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"nextImage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toBackSlide\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"toBackSlide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toNextSlide\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"toNextSlide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopSlideshow\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"stopSlideshow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onModalClose\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"onModalClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseDown\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseUp\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseUp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeModal\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"closeModal\"), _class.prototype), _class);\n});","define(\"client/pods/components/components-group-stories/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"l+sNYmds\",\n    \"block\": \"{\\\"symbols\\\":[\\\"story\\\",\\\"imageObject\\\",\\\"index\\\",\\\"@website\\\",\\\"@stories\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bigordr-stories-header-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bigordr-stories-header\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"imageObjects\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bigordr-stories-header__bubbles\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"bigordr-stories-header__circle \\\",[28,\\\"if\\\",[[23,2,[\\\"isOpen\\\"]],\\\"open\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClickShowSliderModal\\\"]],[23,1,[]],[23,2,[]],[23,3,[]]],null]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bigordr-stories-header__crop-img\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"content-display\\\",[],[[\\\"@website\\\",\\\"@content\\\",\\\"@isStories\\\"],[[23,4,[]],[23,2,[\\\"modalContent\\\"]],true]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"stories\\\",[],[[\\\"@isSliderModalVisible\\\",\\\"@sliderContent\\\",\\\"@mouseDown\\\",\\\"@mouseUp\\\",\\\"@toNextSlide\\\",\\\"@toBackSlide\\\",\\\"@onModalClose\\\",\\\"@story\\\",\\\"@onloadImg\\\",\\\"@isImgLoaded\\\",\\\"@isPaused\\\"],[[23,0,[\\\"isSliderModalVisible\\\"]],[23,2,[\\\"modalContent\\\"]],[23,0,[\\\"handleMouseDown\\\"]],[23,0,[\\\"handleMouseUp\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toNextSlide\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"toBackSlide\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onModalClose\\\"]],[23,2,[]]],null],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"startSlideshow\\\"]],[23,1,[]]],null],[23,0,[\\\"isImgLoaded\\\"]],[23,0,[\\\"isPaused\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2,3]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/components-group-stories/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/bigordr-plan-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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;\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 ADAPTER_NAME = 'contacts';\n  let ContactsBigordrPlanEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class ContactsBigordrPlanEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dirtyContact\", _descriptor2, this);\n    }\n    setupDirty() {\n      this.dirtyContact = this.crud.setupDirty({\n        adapterName: ADAPTER_NAME,\n        model: this.args.model\n      });\n    }\n    clearDirty() {\n      this.crud.cancelEditing({\n        adapterName: ADAPTER_NAME,\n        dirty: this.dirtyContact\n      });\n      this.dirtyContact = null;\n    }\n\n    /**\n     * Rebuild the contact display sub tab around the saved record, the same way\n     * the contacts edit panel refreshes after `updateRecordTask`.\n     * @param {Object} savedContact - contact record returned by the save\n     * @return {void}\n     */\n    redisplayContact(savedContact) {\n      const onDisplay = this.args.onDisplay;\n      if (!onDisplay) {\n        return;\n      }\n      onDisplay(savedContact);\n    }\n    clearShouldUpdateFlag(model) {\n      if (!model?._data) {\n        return;\n      }\n      delete model._data.shouldUpdateBigOrdrMemberPodSettings;\n    }\n    *saveTask(onCloseDialogAction) {\n      const contact = this.dirtyContact;\n      contact.setData('shouldUpdateBigOrdrMemberPodSettings', true);\n      const contactKey = contact?._data?._key;\n      try {\n        let saved;\n        if (RA.isNotNilOrEmpty(contactKey)) {\n          saved = yield this.crud.updateRecordTask.perform({\n            adapterName: ADAPTER_NAME,\n            model: contact,\n            component: this\n          });\n        } else {\n          saved = yield this.crud.createRecordTask.perform({\n            adapterName: ADAPTER_NAME,\n            model: contact,\n            component: this\n          });\n        }\n        this.clearShouldUpdateFlag(contact);\n        onCloseDialogAction();\n        this.redisplayContact(saved || contact);\n      } catch (err) {\n        this.clearShouldUpdateFlag(contact);\n        throw err;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dirtyContact\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearDirty\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"clearDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/bigordr-plan-editor/fields/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _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 ContactsBigordrPlanEditorFieldsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class ContactsBigordrPlanEditorFieldsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"admin\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"big\", _descriptor4, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor5, this);\n      _initializerDefineProperty(this, \"billingPlans\", _descriptor6, this);\n      this.crud.addLists(this, ['admin/members/lists/plans', 'recurring/schedules/options']);\n      this.loadActivePodsTask.perform();\n      this.loadBillingPlansTask.perform();\n    }\n    get selectedBillingPlan() {\n      const selectedPlanKey = this.args.model?._data?.planKey;\n      if (RA.isNilOrEmpty(selectedPlanKey)) {\n        return null;\n      }\n      return R.find(plan => plan?._data?._key === selectedPlanKey, this.billingPlans || []);\n    }\n    getRecurringScheduleKey(schedule) {\n      return schedule?._data?.recurringScheduleKey || schedule?._data?._key || '';\n    }\n    findPlanRecurringSchedule(recurringScheduleKey) {\n      if (RA.isNilOrEmpty(recurringScheduleKey)) {\n        return null;\n      }\n      const planSchedules = this.selectedBillingPlan?._data?.recurringSchedules || [];\n      return R.find(schedule => {\n        return this.getRecurringScheduleKey(schedule) === recurringScheduleKey;\n      }, planSchedules) || null;\n    }\n\n    /**\n     * Mirror API billing `_setPriceFinal`: base plan price, then apply schedule\n     * amount/rate discount when a recurring schedule is selected.\n     */\n    computePriceForPlanAndSchedule(planSourceData = {}, scheduleData = {}) {\n      const basePrice = RA.isNotNilOrEmpty(planSourceData?.priceFinal) ? planSourceData.priceFinal : planSourceData?.price ?? 0;\n      if (RA.isNilOrEmpty(scheduleData) || RA.isNilOrEmpty(scheduleData?.recurringScheduleKey)) {\n        return basePrice;\n      }\n      const discountType = scheduleData.discountType;\n      const roundingCurrency = 0;\n      if (discountType === this.constants.discountTypes.amount) {\n        const discountAmount = scheduleData.discountAmount || 0;\n        return this.big.newBig(basePrice).minus(discountAmount).toFixed(roundingCurrency);\n      }\n      if (discountType === this.constants.discountTypes.rate) {\n        let discountRate = scheduleData.discountRate;\n        const isOnSale = planSourceData.onSale === 'on';\n        if (isOnSale) {\n          discountRate = 0;\n          if (scheduleData.allowOnSale) {\n            discountRate = Number(scheduleData.discountRateOnSale) || 0;\n          }\n        }\n        if (discountRate) {\n          return this.big.newBig(100).minus(discountRate).div(100).times(basePrice).toFixed(roundingCurrency);\n        }\n      }\n      return basePrice;\n    }\n    *loadBillingPlansTask() {\n      const plans = yield this.dataManager.findAll({\n        adapterName: 'billing/plans'\n      });\n      this.billingPlans = plans || [];\n    }\n    *loadActivePodsTask() {\n      yield this.admin.getAllActivePodsTask.perform();\n    }\n    toggleLegacyPlan(isLegacy) {\n      if (isLegacy) {\n        this.args.model.setData('bigOrdrPlanIsLegacy', true);\n        this.args.model.setData('planKey', '');\n        this.args.model.setData('recurringScheduleKey', '');\n        this.args.model.setData('recurringScheduleSelected', {});\n        return;\n      }\n      this.args.model.setData('bigOrdrPlanIsLegacy', false);\n    }\n    selectBillingPlan(selectedPlan) {\n      if (this.args.model?._data?.bigOrdrPlanIsLegacy) {\n        return;\n      }\n      const planData = selectedPlan?._data || {};\n      const planKey = planData.planKey || planData._key || '';\n      this.args.model.setData('item', planData?.item || '');\n      this.args.model.setData('status', planData?.status || '');\n      this.args.model.setData('isRecurring', planData?.isRecurring || '');\n      this.args.model.setData('planKey', planKey);\n      this.args.model.setData('bigOrdrPlan', planData?.bigOrdrPlan);\n      this.args.model.setData('bigOrdrPlanIsLegacy', false);\n      this.selectRecurringSchedule({});\n    }\n    selectRecurringSchedule(selectedSchedule) {\n      const recurringScheduleKey = this.getRecurringScheduleKey(selectedSchedule);\n      const planSchedule = this.findPlanRecurringSchedule(recurringScheduleKey);\n      const planSourceData = this.selectedBillingPlan?._data || this.args.model?._data;\n      const planScheduleData = planSchedule?._data || {};\n      const price = this.computePriceForPlanAndSchedule(planSourceData, planScheduleData);\n      this.args.model.setData('recurringScheduleKey', recurringScheduleKey);\n      if (RA.isNilOrEmpty(planSchedule)) {\n        this.args.model.setData('recurringScheduleSelected', {});\n        this.args.model.setData('priceFinal', price);\n        return;\n      }\n      this.args.model.setData('recurringScheduleSelected', planSchedule);\n      this.args.model.setData('priceFinal', price);\n    }\n    clearRecurringSchedule() {\n      const planSourceData = this.selectedBillingPlan?._data || this.args.model?._data;\n      const price = this.computePriceForPlanAndSchedule(planSourceData, {});\n      this.args.model.setData('recurringScheduleKey', '');\n      this.args.model.setData('recurringScheduleSelected', {});\n      this.args.model.setData('price', price);\n      this.args.model.setData('priceFinal', price);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"admin\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"billingPlans\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadBillingPlansTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadBillingPlansTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadActivePodsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadActivePodsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleLegacyPlan\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleLegacyPlan\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectBillingPlan\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"selectBillingPlan\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectRecurringSchedule\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"selectRecurringSchedule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearRecurringSchedule\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"clearRecurringSchedule\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/bigordr-plan-editor/fields/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QRbGfr6R\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@contact\\\",\\\"@tab\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isBigordrMember\\\",[23,1,[]],\\\"bigordr customer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"isBigOrdrMember\\\"]],true,false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"isBigOrdrMember\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"company\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@label\\\"],[[23,2,[]],\\\"fa-solid fa-building\\\",[23,0,[\\\"admin\\\",\\\"activePods\\\"]],false,[23,3,[\\\"_data\\\",\\\"bigOrdrMemberPodKey\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[true,true,[23,0,[\\\"admin\\\",\\\"activePods\\\"]],[23,3,[]],false,\\\"_data.podKey\\\",\\\"_data.company\\\",[23,4,[]],false,\\\"_data.bigOrdrMemberPodKey\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"auto renew plan\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,2,[]],[23,5,[\\\"_data\\\",\\\"bigOrdrPlanAutoRenew\\\"]],true,false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"legacy plan\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggle\\\"],[[23,2,[]],[23,5,[\\\"_data\\\",\\\"bigOrdrPlanIsLegacy\\\"]],true,false,[23,0,[\\\"toggleLegacyPlan\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"plan name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@allowDeselect\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@onSelect\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,false,[23,2,[]],[23,2,[]],[23,0,[\\\"selectBillingPlan\\\"]],[23,0,[\\\"billingPlans\\\"]],\\\"_data._key\\\",\\\"_data.item\\\",[23,5,[\\\"_data\\\",\\\"planKey\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"recurring schedule\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@allowDeselect\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,false,[23,2,[]],[23,2,[]],[23,0,[\\\"selectRecurringSchedule\\\"]],[23,0,[\\\"clearRecurringSchedule\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"recurring-schedules-options\\\"]],\\\"_data._key\\\",\\\"_data.label\\\",[23,5,[\\\"_data\\\",\\\"recurringScheduleKey\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"plan\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@allowDeselect\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@value\\\"],[false,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"admin-members-lists-plans\\\"]],false,[23,2,[]],[23,2,[]],[23,5,[\\\"_data\\\",\\\"bigOrdrPlan\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"plan name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isReadonly\\\"],[[23,5,[\\\"_data\\\",\\\"item\\\"]],true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"price\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isReadonly\\\"],[[23,5,[\\\"_data\\\",\\\"priceFinal\\\"]],true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"contract start date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.bigOrdrPlanStartDateZ\\\",[23,5,[]],[23,5,[\\\"_data\\\",\\\"bigOrdrPlanStartDateZ\\\"]],[23,2,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"contract end date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.bigOrdrPlanEndDateZ\\\",[23,5,[]],[23,5,[\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]],[23,2,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bigOrdrPlan\\\",[23,1,[]],\\\"payment method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"billing/payment-methods\\\",[],[[\\\"@disabled\\\",\\\"@model\\\"],[[23,2,[]],[23,5,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/bigordr-plan-editor/fields/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/bigordr-plan-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"F3M3FU02\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"contacts/bigordr-plan-editor/fields\\\",[],[[\\\"@contact\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,4,[]],[23,3,[]],true,[23,4,[\\\"_data\\\",\\\"bigOrdrPlanData\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[\\\"fas fa-pencil-alt\\\",true,\\\"manage bigordr plan\\\",[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],\\\"edit\\\",[23,0,[\\\"setupDirty\\\"]],[23,0,[\\\"clearDirty\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirtyContact\\\",\\\"_data\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,2,[]],\\\"bigordr_plan_modal_fields\\\",[23,3,[]],\\\"bigordr plan\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"contacts/bigordr-plan-editor/fields\\\",[],[[\\\"@contact\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,0,[\\\"dirtyContact\\\"]],[23,3,[]],false,[23,0,[\\\"dirtyContact\\\",\\\"_data\\\",\\\"bigOrdrPlanData\\\"]],[23,2,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/bigordr-plan-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/contacts-editor/add-btn/component\", [\"exports\", \"ramda\", \"ember-concurrency\", \"client/mixins/crud\"], function (_exports, R, _emberConcurrency, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    adapterName: 'contacts',\n    tagName: 'span',\n    showDetailEditor: false,\n    hasAddDepartment: true,\n    hasAddPerson: true,\n    hasAddDetail: true,\n    init: function () {\n      this.crud.addLists(this, ['contacts/lists/detailTypes']);\n      this._super(...arguments);\n    },\n    contactListsDetailsTypes: Ember.computed('crud.lists.contacts-lists-detailTypes', function () {\n      const list = this.crud.lists['contacts-lists-detailTypes'];\n      return list;\n    }),\n    updateContactTask: (0, _emberConcurrency.task)(function* (dirty, {\n      onCloseDialogAction\n    } = {}) {\n      const adapterName = this.adapterName;\n      if (!dirty.isDirty) {\n        dirty = this.dirty;\n      }\n      try {\n        const saved = yield this.dataManager.updateRecord({\n          adapterName,\n          dirty\n        });\n        this.set('showDetailEditor', false);\n        if (onCloseDialogAction) {\n          onCloseDialogAction();\n        }\n        return saved;\n      } catch (err) {\n        // contacts handler uses populateArrayItems to validate details. must normalize the errors\n        // to be the same as other newer handlers\n        const errors = err.data || {};\n        const detailErrors = R.pipe(R.pathOr([], ['details', 'errors']), R.concat(R.pathOr([], ['persons', 'details', 'errors'], errors)), R.concat(R.pathOr([], ['departments', 'details', 'errors'], errors)), R.concat(R.pathOr([], ['departments', 'persons', 'details', 'errors'], errors)), R.concat(R.pathOr([], ['persons', 'errors'], errors)), R.concat(R.pathOr([], ['departments', 'persons', 'errors'], errors)), R.concat(R.pathOr([], ['departments', 'errors'], errors)))(errors);\n        this.set('errors', detailErrors);\n      }\n    }),\n    modalDialogTitle: Ember.computed('parent', 'newPerson', 'newDepartment', 'newDetail', function () {\n      const parent = this.parent || {};\n      let title = `${parent?._data?.name}: ` || '';\n      if (this.newPerson) {\n        return title + this.intl.t('add person');\n      }\n      if (this.newDepartment) {\n        return title + this.intl.t('add department');\n      }\n      if (this.newDetail) {\n        return title + this.intl.t('add detail');\n      }\n      return title + this.intl.t('add');\n    }),\n    getDirtyParentModel(parent, dirty) {\n      let parentModel;\n      if (parent) {\n        const personId = parent.getData('personId');\n        if (personId) {\n          parentModel = this.findByPersonId(personId, dirty);\n        }\n        const departmentId = parent.getData('departmentId');\n        if (departmentId) {\n          parentModel = this.findByDepartmentId(departmentId, dirty);\n        }\n      }\n      if (!parentModel) {\n        return dirty;\n      }\n      return parentModel;\n    },\n    _findBy(idParam, id, arrayParam, parentArray) {\n      let found;\n      parentArray.forEach(child => {\n        const childArray = child.getData(arrayParam);\n        const childFound = childArray.findBy(idParam, id);\n        if (childFound) {\n          found = childFound;\n        }\n      });\n      return found;\n    },\n    findByDetailId(detailId, model) {\n      const modelDetails = model.getData('details') || [];\n      let found = modelDetails.findBy('_data.detailId', detailId);\n      if (!found) {\n        const persons = model.getData('persons') || [];\n        found = this._findBy('_data.detailId', detailId, 'details', persons);\n      }\n      if (!found) {\n        const departments = model.getData('departments') || [];\n        found = this._findBy('_data.detailId', detailId, 'details', departments);\n        departments.forEach(department => {\n          const personsInDepartment = department.getData('persons');\n          const foundInDeptPerson = this._findBy('_data.detailId', detailId, 'details', personsInDepartment);\n          if (foundInDeptPerson) {\n            found = foundInDeptPerson;\n          }\n        });\n      }\n      return found;\n    },\n    findByPersonId(personId, model) {\n      const persons = model.getData('persons') || [];\n      let found = persons.findBy('_data.personId', personId);\n      if (!found) {\n        const departments = model.getData('departments') || [];\n        departments.forEach(department => {\n          if (!found) {\n            const deptPersons = department.getData('persons') || [];\n            const foundPerson = deptPersons.findBy('_data.personId', personId);\n            if (foundPerson) {\n              found = foundPerson;\n            }\n          }\n        });\n      }\n      return found;\n    },\n    findByDepartmentId(departmentId, model) {\n      const departments = model.getData('departments') || [];\n      return departments.findBy('_data.departmentId', departmentId);\n    },\n    clearAllDirty() {\n      const dirty = this.dirty;\n      if (dirty) {\n        const adapterName = this.adapterName;\n        this.dataManager.cancelDirty(adapterName, dirty);\n      }\n      this.set('dirty', '');\n      this.set('newDetail', '');\n      this.set('newPerson', '');\n      this.set('newDepartment', '');\n      this.set('errors', []);\n    },\n    /**\n     * SOMEHOW, DETAIL IS MISSING IN SOME SCENARIOS\n     * @param parent\n     * @param detail\n     * @param detailData\n     * @private\n     */\n    _editDetail({\n      parent,\n      detail,\n      detailData\n    }) {\n      this.clearAllDirty();\n\n      // how does person.detail get added?\n      const adapterName = this.adapterName;\n      const model = this.model;\n      const dirty = this.setupDirty({\n        adapterName,\n        model\n      });\n      this.set('dirty', dirty);\n      const dirtyParent = this.getDirtyParentModel(parent, dirty);\n      if (detailData) {\n        detail = dirtyParent.addDetail(detailData);\n        this.set('newDetail', detail);\n      } else if (detail) {\n        const detailId = detail.getData('detailId');\n        const dirtyDetail = this.findByDetailId(detailId, dirtyParent);\n        this.set('newDetail', dirtyDetail);\n      }\n      if (dirtyParent) {\n        this.set('dirtyParent', dirtyParent);\n        this.set('showDetailEditor', true);\n      }\n    },\n    _editPerson({\n      parent,\n      person\n    }) {\n      this.clearAllDirty();\n      const adapterName = this.adapterName;\n      const model = this.model;\n      const dirty = this.setupDirty({\n        adapterName,\n        model\n      });\n      this.set('dirty', dirty);\n      const dirtyParent = this.getDirtyParentModel(parent, dirty);\n      if (!person) {\n        person = dirtyParent.addPerson();\n        this.set('newPerson', person);\n      } else {\n        // when editing parent == person (set in display-person template)\n        const personId = person.getData('personId');\n        const dirtyPerson = this.findByPersonId(personId, dirtyParent);\n        this.set('newPerson', dirtyPerson);\n      }\n      this.set('dirtyParent', dirtyParent);\n      this.set('showDetailEditor', true);\n    },\n    _editDepartment({\n      parent,\n      department\n    }) {\n      this.clearAllDirty();\n\n      // how does person.detail get added?\n      const adapterName = this.adapterName;\n      const model = this.model;\n      const dirty = this.setupDirty({\n        adapterName,\n        model\n      });\n      this.set('dirty', dirty);\n      const dirtyParent = this.getDirtyParentModel(parent, dirty);\n      if (!department) {\n        department = dirtyParent.addDepartment();\n        this.set('newDepartment', department);\n      } else {\n        const departmentId = department.getData('departmentId');\n        const dirtyDepartment = this.findByDepartmentId(departmentId, dirtyParent);\n        this.set('newDepartment', dirtyDepartment);\n      }\n      this.set('dirtyParent', dirtyParent);\n      this.set('showDetailEditor', true);\n    },\n    addNewPickupLocation({\n      parent,\n      person\n    }) {\n      this.clearAllDirty();\n      const adapterName = this.adapterName;\n      const model = this.model;\n      const dirty = this.setupDirty({\n        adapterName,\n        model\n      });\n      this.set('dirty', dirty);\n      const dirtyParent = this.getDirtyParentModel(parent, dirty);\n      const personId = person?._data?.personId;\n      if (personId) {\n        const dirtyPerson = this.findByPersonId(personId, dirtyParent);\n        this.set('newPickupLocation', dirtyPerson);\n      } else {\n        person = dirtyParent.addPerson();\n        this.set('newPickupLocation', person);\n      }\n      this.set('dirtyParent', dirtyParent);\n      this.set('showDetailEditor', true);\n    },\n    actions: {\n      newDetail(parent, detailType) {\n        const detailData = {\n          type: detailType.getData('value'),\n          subType: detailType.getData('defaultSubType')\n        };\n        this._editDetail({\n          parent,\n          detailData\n        });\n      },\n      newPerson(parent) {\n        this._editPerson({\n          parent\n        });\n      },\n      newDepartment(parent) {\n        this.clearAllDirty();\n\n        // how does person.detail get added?\n        const adapterName = this.adapterName;\n        const model = this.model;\n        const dirty = this.setupDirty({\n          adapterName,\n          model\n        });\n        this.set('dirty', dirty);\n        const dirtyParent = this.getDirtyParentModel(parent, dirty);\n        const department = dirtyParent.addDepartment();\n        this.set('dirtyParent', dirtyParent);\n        this.set('newDepartment', department);\n        this.set('showDetailEditor', true);\n      },\n      cancel() {\n        this.clearAllDirty();\n        this.set('showDetailEditor', false);\n      },\n      editDetail(parent, detail) {\n        this._editDetail({\n          parent,\n          detail\n        });\n      },\n      editPerson(parent, person) {\n        this._editPerson({\n          parent,\n          person\n        });\n      },\n      editDepartment(parent, department) {\n        this._editDepartment({\n          parent,\n          department\n        });\n      },\n      removeDetail(dirtyParent, detail) {\n        const msg = this.intl.t('are you sure you want to delete');\n        if (window.confirm(msg)) {\n          dirtyParent.removeDetail(detail);\n          this.updateContactTask.perform(detail);\n        }\n      },\n      removePerson(dirtyParent, person) {\n        const msg = this.intl.t('are you sure you want to delete');\n        if (window.confirm(msg)) {\n          dirtyParent.removePerson(person);\n          this.updateContactTask.perform(person);\n        }\n      },\n      removeDepartment(dirtyParent, department) {\n        const msg = this.intl.t('are you sure you want to delete');\n        if (window.confirm(msg)) {\n          dirtyParent.removeDepartment(department);\n          this.updateContactTask.perform(department);\n        }\n      },\n      toggleMarkAsDefault(detail) {\n        if (detail.getData('isDefault')) {\n          detail.setData('isDefault', true);\n          detail.setData('markAsDefault', true);\n        } else {\n          detail.setData('isDefault', false);\n          detail.setData('markAsDefault', false);\n        }\n      },\n      toggleMarkAsDefaultForDocs(detail) {\n        if (detail.getData('isDefault')) {\n          detail.setData('isDefault', true);\n          detail.setData('isDefaultFor', 'all');\n          detail.setData('isDefaultForDocs', []);\n          detail.setData('markAsDefault', true);\n        } else {\n          detail.setData('isDefault', false);\n          detail.setData('isDefaultFor', '');\n          detail.setData('isDefaultForDocs', []);\n          detail.setData('markAsDefault', false);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"addNewPickupLocation\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"addNewPickupLocation\"), _obj), _obj));\n});","define(\"client/pods/components/contacts/contacts-editor/add-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xbeiWbYd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@parent\\\",\\\"@person\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@allowAddMultiplePickupLocations\\\"],\\\"statements\\\":[[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"editDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-pen fa-xs\\\",[28,\\\"action\\\",[[23,0,[]],\\\"editDetail\\\",[24,[\\\"parent\\\"]],[24,[\\\"editDetail\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"editPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-pen fa-xs\\\",[28,\\\"action\\\",[[23,0,[]],\\\"editPerson\\\",[24,[\\\"parent\\\"]],[24,[\\\"editPerson\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"editDepartment\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-pen fa-xs\\\",[28,\\\"action\\\",[[23,0,[]],\\\"editDepartment\\\",[24,[\\\"parent\\\"]],[24,[\\\"editDepartment\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[\\\"allowMultiplePickupLocations\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@closeOnOverlayClick\\\"],[\\\"fas fa-pen fa-xs\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"contacts/persons/pickup-location/editor\\\",[],[[\\\"@tab\\\",\\\"@parentModel\\\",\\\"@model\\\",\\\"@isEditing\\\",\\\"@onCloseDialogAction\\\"],[[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,3,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"contactListsDetailsTypes\\\"]],\\\"fas fa-plus\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasAddDepartment\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"fas fa-network-wired\\\",\\\"department\\\",[28,\\\"action\\\",[[23,0,[]],\\\"newDepartment\\\",[24,[\\\"parent\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasAddPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"fas fa-user\\\",\\\"person\\\",[28,\\\"action\\\",[[23,0,[]],\\\"newPerson\\\",[24,[\\\"parent\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,9,[]],[23,8,[\\\"allowMultiplePickupLocations\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\"],[\\\"transporter pickup location\\\",\\\"fas fa-dolly\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"contacts/persons/pickup-location/editor\\\",[],[[\\\"@tab\\\",\\\"@parentModel\\\",\\\"@model\\\",\\\"@isEditing\\\",\\\"@onCloseDialogAction\\\"],[[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,2,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"hasAddPerson\\\"]],[24,[\\\"hasAddDepartment\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasAddDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-detailTypes\\\"]],true,[28,\\\"action\\\",[[23,0,[]],\\\"newDetail\\\",[24,[\\\"parent\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@hasSectionWrapper\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@hasModalDialogHeader\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@closeOnOverlayClick\\\"],[true,[22,\\\"showDetailEditor\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"showDetailEditor\\\"]]],null]],null],true,[23,0,[\\\"modalDialogTitle\\\"]],false,true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"newDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"contacts/details/editor-details\\\",null,[[\\\"detail\\\",\\\"parent\\\",\\\"errors\\\",\\\"autofocus\\\",\\\"saveTask\\\",\\\"onRemove\\\",\\\"onToggleMarkAsDefault\\\",\\\"onSave\\\",\\\"onCancel\\\"],[[24,[\\\"newDetail\\\"]],[24,[\\\"parent\\\"]],[24,[\\\"errors\\\"]],true,[24,[\\\"updateContactTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"removeDetail\\\",[24,[\\\"dirtyParent\\\"]],[24,[\\\"newDetail\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleMarkAsDefault\\\"],null],[28,\\\"perform\\\",[[24,[\\\"updateContactTask\\\"]],[24,[\\\"newDetail\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"newPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"contacts/persons/editor-person\\\",null,[[\\\"person\\\",\\\"parent\\\",\\\"hasSales\\\",\\\"hasPurchases\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"autofocus\\\",\\\"onRemove\\\",\\\"onToggleMarkAsDefault\\\",\\\"onSave\\\",\\\"onCancel\\\"],[[24,[\\\"newPerson\\\"]],[24,[\\\"parent\\\"]],[24,[\\\"model\\\",\\\"hasSales\\\"]],[24,[\\\"model\\\",\\\"hasPurchases\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"updateContactTask\\\"]],true,[28,\\\"action\\\",[[23,0,[]],\\\"removePerson\\\",[24,[\\\"dirtyParent\\\"]],[24,[\\\"newPerson\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleMarkAsDefaultForDocs\\\"],null],[28,\\\"perform\\\",[[24,[\\\"updateContactTask\\\"]],[24,[\\\"newPerson\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"newDepartment\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"contacts/departments/editor-department\\\",null,[[\\\"department\\\",\\\"parent\\\",\\\"hasSales\\\",\\\"hasPurchases\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"autofocus\\\",\\\"onToggleMarkAsDefault\\\",\\\"onSave\\\",\\\"onCancel\\\",\\\"onRemove\\\"],[[24,[\\\"newDepartment\\\"]],[24,[\\\"parent\\\"]],[24,[\\\"model\\\",\\\"hasSales\\\"]],[24,[\\\"model\\\",\\\"hasPurchases\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"updateContactTask\\\"]],true,[28,\\\"action\\\",[[23,0,[]],\\\"toggleMarkAsDefaultForDocs\\\"],null],[28,\\\"perform\\\",[[24,[\\\"updateContactTask\\\"]],[24,[\\\"newDepartment\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeDepartment\\\",[24,[\\\"dirtyParent\\\"]],[24,[\\\"newDepartment\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/contacts-editor/add-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/contacts-editor/component\", [\"exports\", \"client/mixins/search-contacts\", \"client/mixins/editor\", \"client/mixins/date\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _searchContacts, _editor, _date, _emberConcurrencyDecorators, R, RA) {\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, _obj; // import { task } from 'ember-concurrency'\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  var _default = _exports.default = Ember.Component.extend(_searchContacts.default, _editor.default, _date.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    contactsList: null,\n    tagName: 'div',\n    classNames: ['col-container'],\n    disabled: false,\n    translate: true,\n    isEditing: false,\n    disable: false,\n    isRendered: false,\n    formGroupClassNames: 'form-group__container--column-3',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['statuses', 'contacts/lists/taxMethods', 'contacts/lists/relationships', 'contacts/lists/detailTypes', 'contacts/lists/tags', 'contacts/lists/isTransporter', 'contacts/transporters', 'paymentMethods', 'paymentTerms', 'channels/shop/campaigns/lists/commission-types', {\n        name: 'users',\n        appendPath: 'internal'\n      }, 'transporter', 'transporter/lists/credentials-modal']);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.set('isRendered', true);\n    },\n    /**\n     * only focus child components when component has finished rendering.\n     * eg. when creating new contact it will autofocus on first input,\n     * when editing, child components with autofocus\n     * should not override first inputs autofocus\n     */\n    autofocusComponents: Ember.computed('isRendered', function () {\n      if (this.isRendered) {\n        return true;\n      }\n      return false;\n    }),\n    // determines if min form requirements are met\n    isMinRequiredMet: Ember.computed('model._data.name', function () {\n      const minRequired = ['name'];\n      const model = this.model;\n      let met = true;\n      minRequired.forEach(function (required) {\n        if (Ember.isEmpty(model.getData(required))) {\n          met = false;\n        }\n      });\n      return met;\n    }),\n    transporterCredentialsComponent: Ember.computed('model._data.transporterExtension', 'crud.lists.transporter-lists-credentials-modal.[]', function () {\n      const transporterExtension = this.model?._data?.transporterExtension;\n      const transporterListsCredentialsModal = this.crud.lists['transporter-lists-credentials-modal'] || [];\n      const transporterCredentialsModal = transporterListsCredentialsModal.find(item => item._data.value === transporterExtension);\n      return transporterCredentialsModal?._data?.component;\n    }),\n    transporterSettingsComponent: Ember.computed('model._data.transporterExtension', function () {\n      return `extensions/apps/tw/${this.model?._data?.transporterExtension}/settings`;\n    }),\n    setAssociatesDefaults() {\n      const model = this.model;\n      if (RA.isNotNilOrEmpty(model)) {\n        let selectedCommissionBaseCostMethod;\n        let isUsingAverage;\n        let isCalculatedByExclAmt;\n        let isUsingSetChild;\n        let hasAdjustedShippingFee;\n        const settingsModel = model?.settings?.settingsModel || {};\n        if (RA.isNotNilOrEmpty(settingsModel)) {\n          selectedCommissionBaseCostMethod = R.pathOr('normalPercent', ['_data', 'selectedCommissionBaseCostMethod'], settingsModel);\n          isUsingAverage = R.pathOr(true, ['_data', 'isCommissionsUsingAverage'], settingsModel);\n          isCalculatedByExclAmt = R.pathOr(true, ['_data', 'isCommissionsCalculatedByExclAmt'], settingsModel);\n          isUsingSetChild = R.pathOr(false, ['_data', 'isCommissionsUsingSetChild'], settingsModel);\n          hasAdjustedShippingFee = R.pathOr(false, ['_data', 'isCommissionsHasAdjustedShippingFee'], settingsModel);\n        }\n        model.setData('selectedCommissionBaseCostMethod', selectedCommissionBaseCostMethod);\n        model.setData('isCommissionsUsingAverage', isUsingAverage);\n        model.setData('isCommissionsCalculatedByExclAmt', isCalculatedByExclAmt);\n        model.setData('isCommissionsUsingSetChild', isUsingSetChild);\n        model.setData('isCommissionsHasAdjustedShippingFee', hasAdjustedShippingFee);\n        const supplierOption = R.pipe(R.pathOr({}, ['crud', 'lists', 'contacts-lists-relationships']), R.find(R.pathEq(['_data', 'value'], 'supplier')))(this);\n        if (RA.isNotNilOrEmpty(supplierOption)) {\n          const relationships = model.getData('relationships') || [];\n          const newRelationships = R.pipe(R.concat(['supplier']), R.uniq)(relationships);\n          model.setData('relationships', newRelationships);\n          this.addRelationship(supplierOption);\n        }\n      }\n    },\n    addRelationship(option) {\n      const relationship = option.getData('value');\n      const model = this.model;\n      let type = 'sales';\n      if (relationship === 'supplier') {\n        type = 'purchases';\n      }\n      const settingsModel = this.settings.getModel();\n      model.setData(`${type}PaymentMethodKey`, settingsModel.getData(`${type}PaymentMethodKey`, this.get('constants.paymentMethods.cash')));\n      model.setData(`${type}TaxMethodKey`, this.get('constants.taxMethods.auto'));\n    },\n    removeRelationship(option) {\n      const self = this;\n      const relationship = option.getData('value');\n      const model = this.model;\n      let type = 'sales';\n      if (relationship === 'supplier') {\n        type = 'purchases';\n        model.setData('isTransporter', self.get('constants.isTransporter.off'));\n        model.setData('transporterAccounts', []);\n        model.setData('defaultTransporterAccount', '');\n      }\n      model.setData(`${type}HasPaymentTerms`, '');\n      model.setData(`${type}PaymentTerms`, '');\n      model.setData(`${type}PaymentTermsKey`, '');\n    },\n    *onSaveTask(model) {\n      return yield this.saveTask.perform(model);\n    },\n    toggleIsTransporter(model) {\n      const isTransporter = model?._data?.isTransporter;\n      if (!isTransporter || isTransporter === 'off') {\n        model.setData('transporterKey', '');\n        model.setData('transporterExtension', '');\n      }\n    },\n    setBlackListedDateZ() {\n      const model = this.model;\n      model.setData('blackListedDateZ', this.dateService.getStartOfDayZ());\n    },\n    unsetBlackListedDateZ() {\n      const model = this.model;\n      model.setData('blackListedDateZ', null);\n    },\n    actions: {\n      /**\n       * pass model to outer component's save action\n       * (do not handle saving here as different actions are required for create/update)\n       */\n      // submit () {\n      //   const model = this.get('model')\n\n      //   // should remove customer/supplier tax rates if not required\n      //   this.removeNotRequired()\n\n      //   this.get('onSubmit')(model)\n      // },\n      // cancel () {\n      //   if (this.confirmClose()) {\n      //     this.get('onCancel')()\n      //   }\n      // },\n\n      /**\n       * assign sales rep to contact\n       */\n      assignSalesPerson(person) {\n        this.assignSalesPerson(person);\n      },\n      /**\n       * unassign sales rep\n       */\n      unassignSalesPerson(person) {\n        this.unassignSalesPerson(person);\n      },\n      /**\n       * add detail to model based on detail type\n       */\n      addDetail(model, detailType) {\n        model.addDetail({\n          type: detailType.getData('value'),\n          subType: detailType.getData('defaultSubType')\n        });\n      },\n      /**\n       * remove detail from model\n       */\n      removeDetail(model, detail /* , component */) {\n        model.removeDetail(detail);\n      },\n      /**\n       * add person to model\n       */\n      addPerson(model /* , component */) {\n        model.addPerson();\n      },\n      /**\n       * remove deparment from model\n       */\n      removePerson(model, person) {\n        model.removePerson(person);\n      },\n      /**\n       * add department to model\n       */\n      addDepartment(model /* , component */) {\n        model.addDepartment();\n      },\n      /**\n       * remove deparment from model\n       */\n      removeDepartment(model, department) {\n        model.removeDepartment(department);\n      },\n      // loadPaymentMethod(type, paymentMethod) {\n      //\n      //   if (paymentMethod) {\n      //     // check paymentMethod selection to determine if has payment terms\n      //     const hasPaymentTerms = paymentMethod.getData('hasPaymentTerms');\n      //\n      //     this.get('model').setData(`${type}HasPaymentTerms`, hasPaymentTerms);\n      //   }\n      // },\n      //\n      // loadPaymentTerm(type, paymentTerm) {\n      //\n      //   this.get('model').setData(`${type}PaymentTerms`, paymentTerm.getData('label'));\n      // },\n      //\n      // // searchContact(relationship, e, value) {\n      // //\n      // //   /* jshint unused: false */\n      // //\n      // //   this.searchContact(relationship, value);\n      // // },\n      //\n      // loadAccount(type, contact) {\n      //   // @TODO TEST\n      //\n      //   const key = contact.getData('_key');\n      //   const  model = this.get('model');\n      //   model.setData(`${type}AccountKey`, key);\n      //\n      //   model.setData(`${type}PaymentMethodKey`, contact.getData(`${type}PaymentMethodKey`));\n      //   model.setData(`${type}HasPaymentTerms`, contact.getData(`${type}HasPaymentTerms`));\n      //   model.setData(`${type}PaymentTermsKey`, contact.getData(`${type}PaymentTermsKey`));\n      //   model.setData(`${type}PaymentTerms`, contact.getData(`${type}paymentTerms`));\n      // },\n      //\n      // unloadAccount(type) {\n      //\n      //   const model = this.get('model');\n      //   model.setData(`${type}AccountKey`, '');\n      // },\n      //\n      // loadTransporter(contact) {\n      //   // @TODO TEST\n      //\n      //   const key = contact.getData('_key');\n      //   const  model = this.get('model');\n      //   model.setData('transporterKey', key);\n      // },\n      //\n      // unloadTransporter() {\n      //\n      //   const model = this.get('model');\n      //   model.setData('transporterKey', '');\n      // },\n\n      setTransporterAccountsList() {\n        const model = this.model;\n        const accounts = model.getData('transporterAccounts');\n        if (!accounts) {\n          model.setData('transporterAccounts', []);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setAssociatesDefaults\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setAssociatesDefaults\"), _obj), _applyDecoratedDescriptor(_obj, \"addRelationship\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"addRelationship\"), _obj), _applyDecoratedDescriptor(_obj, \"removeRelationship\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"removeRelationship\"), _obj), _applyDecoratedDescriptor(_obj, \"onSaveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"onSaveTask\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleIsTransporter\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"toggleIsTransporter\"), _obj), _applyDecoratedDescriptor(_obj, \"setBlackListedDateZ\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"setBlackListedDateZ\"), _obj), _applyDecoratedDescriptor(_obj, \"unsetBlackListedDateZ\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"unsetBlackListedDateZ\"), _obj), _obj));\n});","define(\"client/pods/components/contacts/contacts-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zSzzXVmK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"wizardContainerComponent\\\",\\\"formInitData\\\",\\\"portalUser\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@isWizard\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@wizardData\\\"],\\\"statements\\\":[[5,\\\"wizards/wizard-container\\\",[],[[\\\"@isWizard\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@tab\\\",\\\"@wizardData\\\",\\\"@allowStepSkipping\\\"],[[23,10,[]],[23,6,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,5,[]],[23,15,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,6,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@classNames\\\",\\\"@menu\\\",\\\"@onSelect\\\",\\\"@wizardContainerComponent\\\",\\\"@isGrouped\\\"],[[23,5,[]],[23,5,[\\\"subTabs\\\"]],\\\"tabs u-tab-menu\\\",[23,0,[\\\"subPanelsList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,5,[]]],null],[23,1,[]],true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[\\\"edit\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[\\\"new\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"class\\\",\\\"form-container--columns\\\"]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"details\\\",false,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"contacts\\\",[23,9,[]],[23,5,[]],[23,8,[]],[23,1,[]]]]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-column\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"basicInformation_group\\\",[23,2,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"status\\\",[23,2,[]],true,\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"model\\\",\\\"statusClass\\\"]],true,[24,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"relationships\\\",[23,2,[]],true,\\\"relationships\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@allowEmpty\\\"],[\\\"list-selector--horizontal\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-relationships\\\"]],[23,6,[]],\\\"_data.relationships\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"addRelationship\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"removeRelationship\\\"]]],null],false]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"name\\\",true,\\\"name\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"valueKey\\\",\\\"value\\\"],[true,\\\"name\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"code\\\",\\\"code\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"valueKey\\\",\\\"value\\\"],[\\\"code\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"description\\\",\\\"description\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"rows\\\",\\\"valueKey\\\",\\\"value\\\"],[2,\\\"description\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"tags_group\\\",[23,2,[]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"tags\\\",\\\"tags\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"icon\\\",\\\"list\\\"],[[24,[\\\"isReadonly\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"adapterName\\\",\\\"legend\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"tab\\\",\\\"valueKey\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"allowEmpty\\\"],[true,\\\"contacts/lists/tags\\\",\\\"tags\\\",false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],[24,[\\\"model\\\"]],true,\\\"_data._key\\\",[24,[\\\"tab\\\"]],\\\"_data.tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],false,[23,6,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"isBlackListed\\\",\\\"black list\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@onToggleWhenTrue\\\",\\\"@onToggleWhenFalse\\\"],[[23,6,[\\\"_data\\\",\\\"isBlackListed\\\"]],[28,\\\"or\\\",[[23,7,[]],[23,6,[\\\"isTransporterLocked\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"setBlackListedDateZ\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unsetBlackListedDateZ\\\"]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"isBlackListed\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"blackListedReason\\\",\\\"black list reason\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@placeholder\\\"],[[23,6,[\\\"_data\\\",\\\"blackListedReason\\\"]],\\\"optional\\\"]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"associates_group\\\",[23,2,[]],\\\"associates\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"contacts/details/associates\\\",[],[[\\\"@model\\\",\\\"@formInitData\\\",\\\"@isEditing\\\",\\\"@onSetAssociatesDefaults\\\",\\\"@commissionTypeList\\\"],[[23,6,[]],[23,2,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"setAssociatesDefaults\\\"]]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-types\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasPurchases\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"transporter_group\\\",[23,2,[]],\\\"transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"isTransporter\\\",[23,2,[]],true,\\\"is transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"toggleValue\\\",\\\"disabled\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\",\\\"onToggle\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"isTransporter\\\"]],[28,\\\"or\\\",[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"isTransporterLocked\\\"]]],null],\\\"on\\\",\\\"off\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleIsTransporter\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isTransporter\\\"]],\\\"on\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"defaultTransporterAccount\\\",[23,2,[]],\\\"transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[28,\\\"or\\\",[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"isTransporterLocked\\\"]]],null],[28,\\\"or\\\",[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"isTransporterLocked\\\"]]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"transporter\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterExtension\\\"]],[28,\\\"fn\\\",[[24,[\\\"model\\\",\\\"setTransporterExtensionsDefaults\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterExtension\\\"]]],null]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@allowedForFeatures\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"supplierPortal_group\\\",[28,\\\"array\\\",[\\\"features.allowSupplierPortal\\\"],null],[23,2,[]],\\\"supplier portal\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"allowSupplierPortal\\\",[23,2,[]],true,\\\"allow access to supplier portal\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"toggleValue\\\",\\\"disabled\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"allowSupplierPortal\\\"]],[24,[\\\"isReadonly\\\"]]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"allowSupplierPortal\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"supplierPortalUsers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@isRequired\\\"],[\\\"supplierPortalUsers.supplierPortalEmail\\\",[23,2,[]],\\\"supplier portal login email\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@value\\\",\\\"@readonly\\\"],[true,[23,3,[\\\"_data\\\",\\\"supplierPortalEmail\\\"]],[22,\\\"isReadonly\\\"]]]],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"supplierPortalUsers.supplierPortalPassword\\\",[23,2,[]],\\\"supplier portal password (minimum 8 characters)\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@placeholder\\\",\\\"@isRequired\\\",\\\"@readonly\\\"],[[23,3,[\\\"_data\\\",\\\"supplierPortalPassword\\\"]],\\\"auto generate if empty\\\",true,[22,\\\"isReadonly\\\"]]]],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"supplierPortalUsers.supplierPortalExpiryDateZ\\\",[23,2,[]],\\\"supplier portal login expiration date (optional)\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.supplierPortalExpiryDateZ\\\",[23,3,[]],[23,3,[\\\"_data\\\",\\\"supplierPortalExpiryDateZ\\\"]],[23,7,[]]]]],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"transporterExtension\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"component-exist\\\",[[23,0,[\\\"transporterCredentialsComponent\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"transporterCredentials_group\\\",[23,2,[]],\\\"transporter credentials\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"transporterCredentialsComponent\\\"]]],[[\\\"model\\\",\\\"isReadonly\\\",\\\"formInitData\\\",\\\"wizardContainerComponent\\\",\\\"tab\\\",\\\"documentationIsMinimized\\\",\\\"resourceList\\\"],[[23,6,[]],[23,7,[]],[23,2,[]],[23,1,[]],[23,5,[]],[23,9,[]],[23,8,[]]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"component-exist\\\",[[23,0,[\\\"transporterSettingsComponent\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"transporterSettings_group\\\",[23,2,[]],\\\"transporter settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"transporterSettingsComponent\\\"]]],[[\\\"model\\\",\\\"isReadonly\\\",\\\"formInitData\\\"],[[23,6,[]],[23,7,[]],[23,2,[]]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isTransporter\\\"]],\\\"on\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isNew\\\"]],[23,6,[\\\"_data\\\",\\\"transporterExtension\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"transporterPickupLocations_group\\\",[23,2,[]],\\\"transporter pickup location\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"transporters/sender-details\\\",[],[[\\\"@formInitData\\\",\\\"@parentModel\\\"],[[23,2,[]],[23,6,[]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"additionalInformation_group\\\",[23,2,[]],\\\"additional information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\"],[\\\"auto link member\\\",[23,2,[]],\\\"isAllowedLinkMember\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,6,[\\\"_data\\\",\\\"isAllowedLinkMember\\\"]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"birthday\\\",\\\"birthday\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.birthday\\\",[23,6,[]],[23,6,[\\\"_data\\\",\\\"birthday\\\"]],[23,7,[]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"gender\\\",\\\"gender\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-genders\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,6,[\\\"_data\\\",\\\"gender\\\"]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"gender\\\"]],\\\"other\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"otherGender\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@valueKey\\\",\\\"@disabled\\\",\\\"@value\\\"],[\\\"otherGender\\\",[23,7,[]],[23,6,[\\\"_data\\\",\\\"otherGender\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"test user\\\",\\\"isTestContact\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,6,[\\\"_data\\\",\\\"isTestContact\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"isBigOrdr\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"bigordr_group\\\",[23,2,[]],\\\"bigordr\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"contacts/bigordr-plan-editor\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\"],[[23,6,[]],[23,5,[]],[23,2,[]],[23,7,[]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"details_group\\\",[23,2,[]],\\\"details\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"contacts/details/display-details\\\",null,[[\\\"allowEditing\\\",\\\"model\\\",\\\"parent\\\"],[false,[24,[\\\"model\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"contacts/persons/display-persons\\\",null,[[\\\"allowEditing\\\",\\\"model\\\",\\\"parent\\\"],[false,[24,[\\\"model\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"contacts/departments/display-departments\\\",null,[[\\\"allowEditing\\\",\\\"model\\\"],[false,[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-column\\\",[[12,\\\"class\\\",\\\"flex-item--grow-1\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"contacts/contacts-info-accordian\\\",null,[[\\\"toggleIsOn\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"formInitData\\\",\\\"model\\\",\\\"errors\\\",\\\"tab\\\"],[true,[24,[\\\"isReadonly\\\"]],[24,[\\\"isDisabled\\\"]],[23,2,[]],[24,[\\\"model\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"tab\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content \\\"],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onSaveTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/contacts-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/contacts-info-accordian/component\", [\"exports\", \"client/mixins/search-contacts\", \"client/mixins/editor\", \"client/mixins/transporter\", \"ramda\", \"ramda-adjunct\"], function (_exports, _searchContacts, _editor, _transporter, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_searchContacts.default, _editor.default, _transporter.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    documentsService: Ember.inject.service('documents'),\n    tagName: '',\n    // isValidating=true when an input is busy validating\n    isValidating: false,\n    disableOnProcessing: false,\n    disabled: false,\n    translate: true,\n    isEditing: false,\n    disable: false,\n    isRendered: false,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['statuses', 'contacts/lists/taxMethods', 'contacts/lists/relationships', 'contacts/lists/detailTypes', 'extensions/apps/tw/invoicingAuto', 'paymentMethods', 'contacts/transporters', 'paymentTerms', 'users', 'transporter', 'extensions/apps/tw/e-invoices/carrier-types']);\n    },\n    didRender() {\n      this._super(...arguments);\n      this.set('isRendered', true);\n    },\n    /**\n     * only focus child components when component has finished rendering.\n     * eg. when creating new contact it will autofocus on first input,\n     * when editing, child components with autofocus\n     * should not override first inputs autofocus\n     */\n    autofocusComponents: Ember.computed('isRendered', function () {\n      if (this.isRendered) {\n        return true;\n      }\n      return false;\n    }),\n    // hasSales: computed('model._data.relationships.[]', function () {\n    //   const model = this.get('model')\n    //   const relationships = model.getData('relationships') || []\n    //   if (relationships.indexOf('customer') > -1) {\n    //     return true\n    //   }\n\n    //   return false\n    // }),\n\n    // hasPurchases: computed('model._data.relationships.[]', function () {\n    //   const model = this.get('model')\n    //   const relationships = model.getData('relationships') || []\n\n    //   if (relationships.indexOf('supplier') > -1) {\n    //     return true\n    //   }\n\n    //   return false\n    // }),\n\n    isTransporter: Ember.computed('model._data.isTransporter', function () {\n      if (this.get('model._data.isTransporter') === this.get('constants.isTransporter.on')) {\n        return true;\n      }\n      return false;\n    }),\n    salesPaymentMethodLabelPrefix: Ember.computed('model._data.salesPaymentMethodCustomLabel', function () {\n      const salesPaymentMethodCustomLabel = R.pathOr('', ['model', '_data', 'salesPaymentMethodCustomLabel'])(this);\n      if (RA.isNotNilOrEmpty(salesPaymentMethodCustomLabel)) {\n        return `${salesPaymentMethodCustomLabel} (`;\n      }\n      return '';\n    }),\n    salesPaymentMethodLabelSuffix: Ember.computed('model._data.salesPaymentMethodCustomLabel', function () {\n      const salesPaymentMethodCustomLabel = R.pathOr('', ['model', '_data', 'salesPaymentMethodCustomLabel'])(this);\n      if (RA.isNotNilOrEmpty(salesPaymentMethodCustomLabel)) {\n        return ')';\n      }\n      return '';\n    }),\n    purchasesPaymentMethodLabelPrefix: Ember.computed('model._data.purchasesPaymentMethodCustomLabel', function () {\n      const purchasesPaymentMethodCustomLabel = R.pathOr('', ['model', '_data', 'purchasesPaymentMethodCustomLabel'])(this);\n      if (RA.isNotNilOrEmpty(purchasesPaymentMethodCustomLabel)) {\n        return `${purchasesPaymentMethodCustomLabel} (`;\n      }\n      return '';\n    }),\n    purchasesPaymentMethodLabelSuffix: Ember.computed('model._data.purchasesPaymentMethodCustomLabel', function () {\n      const purchasesPaymentMethodCustomLabel = R.pathOr('', ['model', '_data', 'purchasesPaymentMethodCustomLabel'])(this);\n      if (RA.isNotNilOrEmpty(purchasesPaymentMethodCustomLabel)) {\n        return ')';\n      }\n      return '';\n    }),\n    accountsEditorComponent: Ember.computed('model._data.transporterExtension', function () {\n      const transporterExtension = this.model?._data?.transporterExtension || '';\n      if (transporterExtension === this.constants.transporterExtensions.sevenEleven) {\n        return 'extensions/apps/tw/seven-eleven/accounts-editor';\n      }\n      return 'contacts/transporters-accounts-editor';\n    }),\n    // determines if min form requirements are met\n    isMinRequiredMet: Ember.computed('model._data.name', function () {\n      const minRequired = ['name'];\n      const model = this.model;\n      let met = true;\n      minRequired.forEach(function (required) {\n        if (Ember.isEmpty(model.getData(required))) {\n          met = false;\n        }\n      });\n      return met;\n    }),\n    /**\n     * assign sales rep to contact\n     */\n    assignSalesPerson(person) {\n      const model = this.model;\n      model.addSalesPerson(person);\n    },\n    /**\n     * assign sales rep to contact\n     */\n    unassignSalesPerson(person) {\n      const model = this.model;\n      model.removeSalesPerson(person);\n    },\n    unloadPaymentTerm(type) {\n      this.model.setData(`${type}PaymentTerms`, '');\n      this.model.setData(`${type}PaymentTermsKey`, '');\n    },\n    setTransporterKey(model, transporter) {\n      const key = transporter.getData('_key');\n      model.setData('transporterKey', key);\n    },\n    actions: {\n      loadPaymentMethod(type, paymentMethod) {\n        if (paymentMethod) {\n          // check paymentMethod selection to determine if has payment terms\n          const hasPaymentTerms = paymentMethod.getData('hasPaymentTerms');\n          this.model.setData(`${type}HasPaymentTerms`, hasPaymentTerms);\n          const paymentMethodIsNotDefault = R.pipe(R.hasPath(['_data', 'isNotEditable']), R.not)(paymentMethod);\n          if (paymentMethodIsNotDefault) {\n            const paymentMethodCustomLabel = paymentMethod.getData('customLabel');\n            this.model.setData(`${type}PaymentMethodCustomLabel`, paymentMethodCustomLabel);\n          } else {\n            this.model.setData(`${type}PaymentMethodCustomLabel`, '');\n            delete this.model._data[`${type}PaymentMethodCustomLabel`];\n            this.model.updateSynced();\n          }\n          if (!hasPaymentTerms) {\n            this.unloadPaymentTerm(type);\n          }\n        }\n      },\n      loadPaymentTerm(type, paymentTerm) {\n        this.model.setData(`${type}PaymentTerms`, paymentTerm.getData('label'));\n      }\n\n      // addTransporterAccount (transporterAccount) {\n      //   const model = this.get('model')\n      //   const transporterAccounts = model.getData('transporterAccounts') || []\n      //   transporterAccounts.pushObject(transporterAccount)\n      //   model.setData('transporterAccounts', transporterAccounts)\n      // },\n      // updateTransporterAccount () {\n\n      // }\n\n      // loadAccount (type, contact) {\n      //   const key = contact.getData('_key')\n      //   const model = this.get('model')\n      //   model.setData(`${type}AccountKey`, key)\n\n      //   model.setData(`${type}PaymentMethodKey`, contact.getData(`${type}PaymentMethodKey`))\n      //   model.setData(`${type}HasPaymentTerms`, contact.getData(`${type}HasPaymentTerms`))\n      //   model.setData(`${type}PaymentTermsKey`, contact.getData(`${type}PaymentTermsKey`))\n      //   model.setData(`${type}PaymentTerms`, contact.getData(`${type}paymentTerms`))\n      // },\n\n      // unloadAccount (type) {\n      //   const model = this.get('model')\n      //   model.setData(`${type}AccountKey`, '')\n      // }\n\n      // loadTransporter(contact) {\n      //   // @TODO TEST\n      //\n      //   console.log('---> hey im here');\n      //   const key = contact.getData('_key');\n      //   const  model = this.get('model');\n      //   model.setData('transporterKey', key);\n      // },\n      //\n      // unloadTransporter() {\n      //\n      //   const model = this.get('model');\n      //   model.setData('transporterKey', '');\n      // }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setTransporterKey\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setTransporterKey\"), _obj), _obj));\n});","define(\"client/pods/components/contacts/contacts-info-accordian/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vvD9Tefv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"accordianContainer\\\",\\\"accordianContainer\\\",\\\"accordianContainer\\\",\\\"accordianContainer\\\",\\\"accordianContainer\\\",\\\"accordianContainer\\\",\\\"@toggleIsOn\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@isDisabled\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasSales\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__container form-group__container--column-1\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width accordian-container--form-group\\\"]],[[\\\"@toggleIsOn\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"payment\\\"],null],false],[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"customer\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPaymentMethodKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPaymentMethodCustomLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPaymentMethodCustomLabel\\\"]],\\\" (\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[1,[28,\\\"listlabel\\\",null,[[\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"defaultValue\\\",\\\"needle\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods\\\"]],\\\"_data.value\\\",\\\"_data.customLabel\\\",[28,\\\"tt\\\",[\\\"cash\\\"],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPaymentMethodKey\\\"]]]]],false],[0,\\\".\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPaymentMethodCustomLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,\\\")\\\",false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"salesPaymentMethodKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPaymentTermsKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"listlabel\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"itemValueKey\\\",\\\"needle\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],false,\\\"_data._key\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPaymentTermsKey\\\"]]]]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"salesPaymentTermsKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"salesAccount\\\"]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"salesAccount\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,8,[]],\\\"customer payment method\\\",[22,\\\"errors\\\"],\\\"salesPaymentMethodKey\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"prefix\\\",\\\"suffix\\\",\\\"value\\\",\\\"onSelect\\\",\\\"addItemComponent\\\"],[true,true,true,[24,[\\\"isDisabled\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods\\\"]],\\\"_data.value\\\",\\\"_data.customLabel\\\",[23,0,[\\\"salesPaymentMethodLabelPrefix\\\"]],[23,0,[\\\"salesPaymentMethodLabelSuffix\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPaymentMethodKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loadPaymentMethod\\\",\\\"sales\\\"],null],\\\"payment-methods-editor\\\"]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesHasPaymentTerms\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,8,[]],\\\"payment terms\\\",\\\"errors\\\",\\\"salesPaymentTermsKey\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"tab\\\"],[true,[24,[\\\"isDisabled\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],\\\"_data._key\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"salesPaymentTermsKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loadPaymentTerm\\\",\\\"sales\\\"],null],\\\"payment-terms-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"payment terms\\\",true]]],[24,[\\\"tab\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasPurchases\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__container form-group__container--column-1\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width accordian-container--form-group\\\"]],[[\\\"@toggleIsOn\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"payment\\\"],null],false],[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"supplier\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesPaymentMethodKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesPaymentMethodCustomLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesPaymentMethodCustomLabel\\\"]],\\\" (\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[1,[28,\\\"listlabel\\\",null,[[\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"defaultValue\\\",\\\"needle\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods\\\"]],\\\"_data.value\\\",\\\"_data.customLabel\\\",[28,\\\"tt\\\",[\\\"cash\\\"],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesPaymentMethodKey\\\"]]]]],false],[0,\\\".\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesPaymentMethodCustomLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,\\\")\\\",false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"purchasesPaymentMethodKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesPaymentTermsKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"listlabel\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"needle\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],false,\\\"_data._key\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesPaymentTermsKey\\\"]]]]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"purchasesPaymentTermsKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesAccount\\\"]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"purchasesAccount\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,8,[]],\\\"supplier payment method\\\",[22,\\\"errors\\\"],\\\"purchasesPaymentMethodKey\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"prefix\\\",\\\"suffix\\\",\\\"value\\\",\\\"onSelect\\\",\\\"addItemComponent\\\"],[true,true,[24,[\\\"isReadonly\\\"]],[24,[\\\"isDisabled\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods\\\"]],\\\"_data.value\\\",\\\"_data.customLabel\\\",[23,0,[\\\"purchasesPaymentMethodLabelPrefix\\\"]],[23,0,[\\\"purchasesPaymentMethodLabelSuffix\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesPaymentMethodKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loadPaymentMethod\\\",\\\"purchases\\\"],null],\\\"payment-methods-editor\\\"]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesHasPaymentTerms\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,8,[]],\\\"payment terms\\\",[22,\\\"errors\\\"],\\\"purchasesPaymentTermsKey\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"tab\\\"],[true,[24,[\\\"isDisabled\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],\\\"_data._key\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesPaymentTermsKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loadPaymentTerm\\\",\\\"purchases\\\"],null],\\\"payment-terms-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"payment terms\\\",true]]],[24,[\\\"tab\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__container form-group__container--column-1\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width accordian-container--form-group\\\"]],[[\\\"@toggleIsOn\\\",\\\"@waitBeforeClosingTask\\\"],[[23,7,[]],[23,0,[\\\"documentsService\\\",\\\"fetchAllDetailsFromGovTask\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"taxes\\\"],null],false],[0,\\\" / \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices\\\"],null],false],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasSales\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tax on sales\\\"],null],false],[0,\\\":\\\\n            \\\"],[1,[28,\\\"tt\\\",[[28,\\\"listlabel\\\",null,[[\\\"needle\\\",\\\"list\\\",\\\"translate\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesTaxMethodKey\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-taxMethods\\\"]],false]]],\\\"auto\\\"],null],false],[0,\\\".\\\\n            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"salesTaxMethodKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"listlabel\\\",null,[[\\\"list\\\",\\\"needle\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods\\\"]],[23,9,[\\\"_data\\\",\\\"taxMethodKey\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,11,[]],\\\"taxMethodKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,9,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]],\\\"b2b\\\"],null],[28,\\\"isEmptyProp\\\",[[23,9,[]],\\\"_data.twEInvoiceCarrierType\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,9,[\\\"_data\\\",\\\"taxNumber\\\"]],false],[0,\\\".\\\\n\\\\n                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,11,[]],\\\"taxNumber\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[23,9,[\\\"_data\\\",\\\"companyName\\\"]],false],[0,\\\".\\\\n\\\\n                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,11,[]],\\\"companyName\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoice_carrier_type\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[23,9,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]]],null],false],[0,\\\". \\\"],[1,[23,9,[\\\"_data\\\",\\\"twEInvoiceCarrierId\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,11,[]],\\\"twEInvoiceCarrierId\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasPurchases\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tax on purchases\\\"],null],false],[0,\\\":\\\\n            \\\"],[1,[28,\\\"tt\\\",[[28,\\\"listlabel\\\",null,[[\\\"needle\\\",\\\"list\\\",\\\"translate\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesTaxMethodKey\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-taxMethods\\\"]],false]]],\\\"auto\\\"],null],false],[0,\\\".\\\\n            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"purchasesTaxMethodKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasSales\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"tw_eInvoices\\\",\\\"autoPrintInvoices\\\",[22,\\\"formInitData\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"translate\\\",\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[24,[\\\"isDisabled\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-invoicingAuto\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"autoPrintInvoices\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,8,[]],\\\"tax on sales\\\",[22,\\\"errors\\\"],\\\"salesTaxMethodKey\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"isDisabled\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-taxMethods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"salesTaxMethodKey\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasPurchases\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,8,[]],\\\"tax on purchases\\\",[22,\\\"errors\\\"],\\\"purchasesTaxMethodKey\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"isDisabled\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-taxMethods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesTaxMethodKey\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"context\\\",\\\"twEInvoiceCarrierType\\\"]],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\"],[[23,8,[]],\\\"tw_eInvoice_carrier_type_optional\\\",\\\"@errors\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"classNames\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-carrier-types\\\"]],[23,9,[]],\\\"list-selector\\\",\\\"_data.twEInvoiceCarrierType\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector list-selector--horizontal\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,9,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]],\\\"b2b\\\"],null],[28,\\\"isEmptyProp\\\",[[23,9,[]],\\\"_data.twEInvoiceCarrierType\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[[23,8,[]],\\\"tax number\\\",[24,[\\\"errors\\\"]],\\\"taxNumber\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"extensions/apps/tw/e-invoices/tax-number-input\\\",[],[[\\\"@isReadonly\\\",\\\"@modelData\\\",\\\"@setupTaxDetails\\\",\\\"@parentComponent\\\"],[[28,\\\"or\\\",[[23,10,[]],[23,12,[]]],null],[23,9,[\\\"_data\\\"]],[28,\\\"fn\\\",[[23,9,[\\\"setupTaxDetails\\\"]]],null],[23,0,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[[23,8,[]],\\\"tw_eInvoice_company_name\\\",[23,11,[]],\\\"companyName\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"translatePlaceholder\\\",\\\"placeholder\\\",\\\"value\\\"],[[23,10,[]],false,[28,\\\"tt\\\",[\\\"auto\\\"],null],[23,9,[\\\"_data\\\",\\\"companyName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,9,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]],[28,\\\"not-eq\\\",[[23,9,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]],\\\"b2b\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[[23,8,[]],\\\"tw_eInvoice_carrier_id\\\",[23,11,[]],\\\"twEInvoiceCarrierId\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,10,[]],[23,9,[\\\"_data\\\",\\\"twEInvoiceCarrierId\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"hasSales\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__container form-group__container--column-1\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width accordian-container--form-group\\\"]],[[\\\"@toggleIsOn\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"either\\\",[[28,\\\"listlabel\\\",null,[[\\\"needle\\\",\\\"list\\\",\\\"translate\\\"],[[23,9,[\\\"_data\\\",\\\"salesPersons\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users--internal\\\"]],false]]],[28,\\\"tt\\\",[\\\"sales persons\\\"],null]],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@formInitData\\\",\\\"@context\\\"],[\\\"salesPersons\\\",\\\"sales persons\\\",[22,\\\"errors\\\"],[23,8,[]],\\\"salesPaymentMethodKey\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"users/users-selector\\\",null,[[\\\"label\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"model\\\",\\\"salesPersons\\\",\\\"list\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\"],[\\\"sales persons\\\",[24,[\\\"isReadonly\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\"]],[23,9,[\\\"_data\\\",\\\"salesPersons\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users--internal\\\"]],[28,\\\"fn\\\",[[23,9,[\\\"addSalesPerson\\\"]]],null],[28,\\\"fn\\\",[[23,9,[\\\"removeSalesPerson\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isTransporter\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"allowAddTransporterAccounts\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__container form-group__container--column-1\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width accordian-container--form-group\\\"]],[[\\\"@toggleIsOn\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"transporter accounts\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccounts\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"listlabel\\\",null,[[\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"needle\\\",\\\"translate\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"defaultTransporterAccount\\\"]],[24,[\\\"model\\\",\\\"translateAccountName\\\"]]]]],false],[0,\\\".\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"transporterAccounts\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"transporters/accounts-editor\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,8,[]],\\\"default\\\",[22,\\\"errors\\\"],\\\"defaultTransporterAccount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"addItemComponent\\\",\\\"value\\\"],[true,[24,[\\\"model\\\",\\\"translateAccountName\\\"]],true,[24,[\\\"isDisabled\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",\\\"contacts/transporters-accounts-editor\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"defaultTransporterAccount\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__container form-group__container--column-1\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width accordian-container--form-group\\\"]],[[\\\"@toggleIsOn\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"shipping\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterLabel\\\"]],false],[0,\\\".\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"errors\\\"]],\\\"transporterLabel\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"transporters/editor-component\\\",null,[[\\\"isReadonly\\\",\\\"model\\\",\\\"documentationResource\\\",\\\"hideTitleContainer\\\",\\\"transportersList\\\",\\\"onLoadTransporter\\\",\\\"onUnloadTransporter\\\",\\\"isPickerOnly\\\"],[[24,[\\\"isDisabled\\\"]],[24,[\\\"model\\\"]],\\\"contacts\\\",true,[24,[\\\"transportersList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setTransporterKey\\\"]],[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadTransporter\\\",[24,[\\\"model\\\"]]],null],true]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/contacts-info-accordian/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/departments/display-departments/component\", [\"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 = Ember.Component.extend({\n    allowEditing: true\n  });\n});","define(\"client/pods/components/contacts/departments/display-departments/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IVA+41CY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"department\\\",\\\"doc\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"departments\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group-header level\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-department__name level-left\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"contacts/icons/default-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"default for documents\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"defaultForDocs\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isPreview\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allowEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/contacts-editor/add-btn\\\",null,[[\\\"isEditing\\\",\\\"model\\\",\\\"parent\\\",\\\"editDepartment\\\"],[true,[24,[\\\"model\\\"]],[24,[\\\"model\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isPreview\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allowEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/contacts-editor/add-btn\\\",null,[[\\\"model\\\",\\\"parent\\\",\\\"hasAddDepartment\\\",\\\"hasAddPerson\\\",\\\"hasAddDetails\\\"],[[24,[\\\"model\\\"]],[23,1,[]],false,true,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,1,[\\\"_data\\\",\\\"details\\\"]],[23,1,[\\\"_data\\\",\\\"persons\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__child\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/details/display-details\\\",null,[[\\\"isPreview\\\",\\\"allowEditing\\\",\\\"model\\\",\\\"parent\\\"],[[24,[\\\"isPreview\\\"]],[24,[\\\"allowEditing\\\"]],[24,[\\\"model\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"persons\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/persons/display-persons\\\",null,[[\\\"isPreview\\\",\\\"allowEditing\\\",\\\"model\\\",\\\"parent\\\"],[[24,[\\\"isPreview\\\"]],[24,[\\\"allowEditing\\\"]],[24,[\\\"model\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/departments/display-departments/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/departments/editor-department/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { computed } from '@ember/object'\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"client/pods/components/contacts/departments/editor-department/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"djY9M2Sj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@parent\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,2,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\"],[\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"contacts\\\",[23,5,[]],[23,4,[]],[23,3,[]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@title\\\",\\\"@hideTitleContainer\\\",\\\"@formInitData\\\"],[\\\"contacts-persons_group\\\",\\\"departments\\\",false,[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"customBlock\\\",\\\"errors\\\",\\\"context\\\"],[[23,1,[]],true,[24,[\\\"errors\\\"]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-label\\\",null,[[\\\"isRequired\\\",\\\"context\\\",\\\"documentationResource\\\"],[true,\\\"departmentName\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[24,[\\\"department\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"department name\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputClassNames\\\",\\\"autofocus\\\",\\\"isRequired\\\",\\\"context\\\",\\\"value\\\"],[\\\"form__input-large\\\",[24,[\\\"autofocus\\\"]],true,\\\"name\\\",[24,[\\\"department\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\",\\\"@onToggle\\\"],[[24,[\\\"department\\\",\\\"_data\\\",\\\"isDefault\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"department\\\",\\\"_data\\\",\\\"isDefault\\\"]]],null]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onToggleMarkAsDefault\\\"]],[24,[\\\"department\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"set as default\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"department\\\",\\\"_data\\\",\\\"isDefault\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[[23,1,[]],\\\"for documents\\\",[24,[\\\"errors\\\"]],\\\"departmentDocuments\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"documents/documents-selector\\\",null,[[\\\"model\\\",\\\"valueKey\\\",\\\"selectedType\\\",\\\"hasSales\\\",\\\"hasPurchases\\\"],[[24,[\\\"department\\\"]],\\\"_data.isDefaultForDocs\\\",[24,[\\\"department\\\",\\\"_data\\\",\\\"isDefaultFor\\\"]],[24,[\\\"hasSales\\\"]],[24,[\\\"hasPurchases\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/btn-delete\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onRemove\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSave\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/departments/editor-department/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/details/associates/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { action } from '@ember/object'\n  // import { tracked } from '@glimmer/tracking'\n  // import * as R from 'ramda'\n\n  class ContactsDetailsAssociates extends _component.default {}\n  _exports.default = ContactsDetailsAssociates;\n});","define(\"client/pods/components/contacts/details/associates/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NVdwietC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isEditing\\\",\\\"@commissionTypeList\\\",\\\"@model\\\",\\\"@onSetAssociatesDefaults\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"isAssociates\\\",\\\"is associates\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggleWhenTrue\\\"],[[28,\\\"not\\\",[[23,2,[]]],null],[23,4,[\\\"_data\\\",\\\"isAssociates\\\"]],true,false,[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"isAssociates\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"selectedCommissionBaseCostMethod\\\",[23,1,[]],\\\"commissions calculation method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[28,\\\"not\\\",[[23,2,[]]],null],[23,3,[]],\\\"_data.value\\\",\\\"_data.label\\\",[23,4,[\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isCommissionsUsingAverage\\\",[23,1,[]],\\\"use average prices for each product\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[true,[23,4,[\\\"_data\\\",\\\"isCommissionsUsingAverage\\\"]],true,false]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isCommissionsCalculatedByExclAmt\\\",[23,1,[]],\\\"use exclusive selling price to calculate commission\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[28,\\\"not\\\",[[23,2,[]]],null],[23,4,[\\\"_data\\\",\\\"isCommissionsCalculatedByExclAmt\\\"]],true,false]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isCommissionsUsingSetChild\\\",[23,1,[]],\\\"use product set children\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[28,\\\"not\\\",[[23,2,[]]],null],[23,4,[\\\"_data\\\",\\\"isCommissionsUsingSetChild\\\"]],true,false]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isCommissionsHasAdjustedShippingFee\\\",[23,1,[]],\\\"use shipping fee adjustment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[28,\\\"not\\\",[[23,2,[]]],null],[23,4,[\\\"_data\\\",\\\"isCommissionsHasAdjustedShippingFee\\\"]],true,false]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/details/associates/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/details/display-details/component\", [\"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 = Ember.Component.extend({\n    allowEditing: true\n  });\n});","define(\"client/pods/components/contacts/details/display-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KtzMx2g0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"parent\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"pickupLocation\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"value\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-label\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"customLabel\\\"]],[23,1,[\\\"_data\\\",\\\"customLabel\\\"]],[23,1,[\\\"_data\\\",\\\"subType\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-detail__container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isPreview\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:30px;\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"max-width: 300px;\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"translate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"value\\\"]]],null],\\\"span\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[23,1,[\\\"_data\\\",\\\"value\\\"]],\\\"span\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[23,1,[\\\"_data\\\",\\\"notes\\\"]],\\\"span\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:20px;\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"contacts/icons/default-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[10,\\\"style\\\",\\\"width:20px;\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isPreview\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"allowEditing\\\"]],[28,\\\"not\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"pickupLocation\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"contacts/contacts-editor/add-btn\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"onEdit\\\",\\\"model\\\",\\\"parent\\\",\\\"editDetail\\\"],[[23,2,[]],true,[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]],[24,[\\\"parent\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:30px;\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"max-width: 300px;\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"translate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"value\\\"]]],null],\\\"span\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[23,1,[\\\"_data\\\",\\\"value\\\"]],\\\"span\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[23,1,[\\\"_data\\\",\\\"notes\\\"]],\\\"span\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:20px;\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"contacts/icons/default-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[10,\\\"style\\\",\\\"width:20px;\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isPreview\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"allowEditing\\\"]],[28,\\\"not\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"pickupLocation\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"contacts/contacts-editor/add-btn\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"onEdit\\\",\\\"model\\\",\\\"parent\\\",\\\"editDetail\\\"],[[23,2,[]],true,[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]],[24,[\\\"parent\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/details/display-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/component\", [\"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 = Ember.Component.extend({\n    personId: Ember.computed('parent._data.personId', function () {\n      return this.get('parent._data.personId');\n    }),\n    departmentId: Ember.computed('parent._data.departmentId', function () {\n      return this.get('parent._data.departmentId');\n    }),\n    actions: {\n      checkForDefaults() {\n        const parent = this.parent;\n        const detail = this.detail;\n        parent.setIfNotHasDefault(detail);\n      }\n    }\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/editor-address/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: '',\n    autofocus: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/subTypesAddress']);\n    },\n    contactsListsSubTypesAddress: Ember.computed('crud.lists.contacts-lists-subTypesAddress', function () {\n      const list = this.crud.lists['contacts-lists-subTypesAddress'];\n      return list;\n    })\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/editor-address/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Tl7Dlt2x\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"customBlock\\\",\\\"errors\\\",\\\"context\\\"],[[24,[\\\"formInitData\\\"]],true,[24,[\\\"errors\\\"]],\\\"value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-label\\\",null,[[\\\"isRequired\\\",\\\"context\\\",\\\"documentationResource\\\"],[[24,[\\\"isRequired\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"type\\\"]],\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isLabel\\\",\\\"readonly\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"translate\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,[23,0,[\\\"contactsListsSubTypesAddress\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,[24,[\\\"detail\\\",\\\"_data\\\",\\\"subType\\\"]],[24,[\\\"onCheckForDefaults\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[24,[\\\"detail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"autofocus\\\",\\\"value\\\"],[[24,[\\\"autofocus\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/default-icon\\\",null,[[\\\"detail\\\"],[[24,[\\\"detail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/details/editor-details/editor-address/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/editor-email/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    autofocus: true\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/editor-email/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/7DL2rnw\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"customBlock\\\",\\\"errors\\\",\\\"context\\\"],[[24,[\\\"formInitData\\\"]],\\\"email\\\",true,[24,[\\\"errors\\\"]],\\\"value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\n\\\"],[4,\\\"forms/form-label\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"type\\\"]],\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[24,[\\\"detail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\n\\\"],[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"value\\\",\\\"onSelect\\\"],[[24,[\\\"autofocus\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"value\\\"]],[24,[\\\"onCheckForDefaults\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/default-icon\\\",null,[[\\\"detail\\\"],[[24,[\\\"detail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/details/editor-details/editor-email/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/editor-note/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    listAdapters: null,\n    tagName: '',\n    autofocus: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/subTypesNote']);\n    }\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/editor-note/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zI/NHsIb\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"customBlock\\\",\\\"errors\\\",\\\"context\\\"],[[24,[\\\"formInitData\\\"]],true,[24,[\\\"errors\\\"]],\\\"value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-label\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"type\\\"]],\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isLabel\\\",\\\"readonly\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"translate\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-subTypesNote\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,[24,[\\\"detail\\\",\\\"_data\\\",\\\"subType\\\"]],[24,[\\\"onCheckForDefaults\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[24,[\\\"detail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"autofocus\\\",\\\"value\\\"],[[24,[\\\"autofocus\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/details/editor-details/editor-note/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/editor-phone/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'span',\n    classNames: ['contacts-detail'],\n    autofocus: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/subTypesPhone']);\n    }\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/editor-phone/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"umdKsbZD\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"customBlock\\\",\\\"errors\\\",\\\"context\\\"],[[24,[\\\"formInitData\\\"]],true,[24,[\\\"errors\\\"]],\\\"value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-label\\\",null,[[\\\"isRequired\\\",\\\"context\\\",\\\"documentationResource\\\"],[[24,[\\\"isRequired\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"type\\\"]],\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isLabel\\\",\\\"readonly\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"translate\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-subTypesPhone\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,[24,[\\\"detail\\\",\\\"_data\\\",\\\"subType\\\"]],[24,[\\\"onCheckForDefaults\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[24,[\\\"detail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"value\\\"],[[24,[\\\"autofocus\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/default-icon\\\",null,[[\\\"detail\\\"],[[24,[\\\"detail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/details/editor-details/editor-phone/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/details/editor-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Qqfb0ytb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\"],[\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"contacts\\\",[23,4,[]],[23,3,[]],[23,2,[]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@title\\\",\\\"@hideTitleContainer\\\",\\\"@formInitData\\\"],[\\\"contacts-details_group\\\",\\\"details\\\",false,[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[24,[\\\"detail\\\",\\\"component\\\"]]],[[\\\"formInitData\\\",\\\"parent\\\",\\\"departmentId\\\",\\\"personId\\\",\\\"detail\\\",\\\"errors\\\",\\\"autofocus\\\",\\\"onCheckForDefaults\\\"],[[23,1,[]],[24,[\\\"parent\\\"]],[24,[\\\"departmentId\\\"]],[24,[\\\"personId\\\"]],[24,[\\\"detail\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"autofocus\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"checkForDefaults\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"detail\\\",\\\"component\\\"]],\\\"contacts/details/editor-note\\\"],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\"],[[23,1,[]],\\\"notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"value\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"notes\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\",\\\"@onToggle\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isDefault\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isDefault\\\"]]],null]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onToggleMarkAsDefault\\\"]],[24,[\\\"detail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"personId\\\"]],[24,[\\\"departmentId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"set as default for\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"parent\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"set as default\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-delete\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onRemove\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSave\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/details/editor-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/export-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-extension\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R_, RA, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 DispatchExportReportBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('date'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, _dec21 = Ember._action, _class = class DispatchExportReportBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"fileName\", _descriptor7, this);\n      _initializerDefineProperty(this, \"exportData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"today\", _descriptor9, this);\n      _initializerDefineProperty(this, \"campaignKeys\", _descriptor0, this);\n      _initializerDefineProperty(this, \"mm\", _descriptor1, this);\n      _initializerDefineProperty(this, \"yyyy\", _descriptor10, this);\n      _initializerDefineProperty(this, \"customDateStartZ\", _descriptor11, this);\n      _initializerDefineProperty(this, \"customDateEndZ\", _descriptor12, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedCampaigns\", _descriptor14, this);\n      _initializerDefineProperty(this, \"exportDateType\", _descriptor15, this);\n      _initializerDefineProperty(this, \"customDateRangeInMonth\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isAllCampaignSelected\", _descriptor17, this);\n      _initializerDefineProperty(this, \"maxSelectableCount\", _descriptor18, this);\n      _initializerDefineProperty(this, \"availableSpecsForExport\", _descriptor19, this);\n      _initializerDefineProperty(this, \"selectedSpecsForExport\", _descriptor20, this);\n      this.crud.addLists(this, ['reports/lists/export-date-type']);\n      this.today = this.dateService.formatDate(this.dateService.getToday(), 'YYYYMMDD');\n      this.fileName = this.getDefaultFilename();\n      this.availableSpecsForExport = [{\n        column: this.intl.t('name'),\n        value: 'name',\n        // to filter out if the checklist is not there\n        prop: 'name'\n      }, {\n        column: this.intl.t('code'),\n        value: 'code',\n        // to filter out if the checklist is not there\n        prop: 'code'\n      }, {\n        column: this.intl.t('email'),\n        // should be just the default or first one\n        value: 'email',\n        // to filter out if the checklist is not there\n        prop: 'details',\n        transform(value, row, spec, dateService) {\n          if (RA.isNotNilOrEmpty(value)) {\n            const filteredValue = R.filter(R.propEq('type', 'email'))(value);\n            const defaultFilteredValue = R.find(R.pathEq('isDefault', true))(filteredValue);\n            if (RA.isNotNilOrEmpty(defaultFilteredValue)) {\n              return defaultFilteredValue?.value ?? '';\n            } else {\n              return R.pathOr('', [0, 'value'])(filteredValue);\n            }\n          }\n          return '';\n        }\n      }, {\n        column: this.intl.t('telephone'),\n        // should be just the default or first one\n        value: 'telephone',\n        // to filter out if the checklist is not there\n        prop: 'details',\n        transform(value, row, spec, dateService) {\n          if (RA.isNotNilOrEmpty(value)) {\n            const filteredValue = R.filter(R.propEq('type', 'phone'))(value); // should add subType?\n            const defaultFilteredValue = R.find(R.pathEq('isDefault', true))(filteredValue);\n            if (RA.isNotNilOrEmpty(defaultFilteredValue)) {\n              return defaultFilteredValue?.value ?? '';\n            } else {\n              return R.pathOr('', [0, 'value'])(filteredValue);\n            }\n          }\n          return '';\n        }\n      }, {\n        column: this.intl.t('birthday'),\n        value: 'birthday',\n        // to filter out if the checklist is not there\n        prop: 'birthday',\n        transform(value, row, spec, dateService) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return dateService.formatDate(value);\n          }\n          if (row?.member?.birthday) {\n            return dateService.formatDate(row?.member?.birthday);\n          }\n          return '';\n        }\n      }, {\n        column: this.intl.t('address'),\n        // should be just the default or first one\n        value: 'address',\n        // to filter out if the checklist is not there\n        prop: 'details',\n        transform(value, row, spec, dateService) {\n          if (RA.isNotNilOrEmpty(value)) {\n            const filteredValue = R.filter(R.propEq('type', 'address'))(value); // should add subType?\n            const defaultFilteredValue = R.find(R.pathEq('isDefault', true))(filteredValue);\n            if (RA.isNotNilOrEmpty(defaultFilteredValue)) {\n              return defaultFilteredValue?.value ?? '';\n            } else {\n              return R.pathOr('', [0, 'value'])(filteredValue);\n            }\n          }\n          return '';\n        }\n      }, {\n        column: this.intl.t('gender'),\n        value: 'gender',\n        // to filter out if the checklist is not there\n        prop: 'gender',\n        transform(value, row, spec, dateService) {\n          if (value === 'other') {\n            return row?.otherGender;\n          }\n          if (row?.member?.gender === 'other') {\n            return row?.member?.otherGender;\n          }\n          if (row?.member?.gender) {\n            return row?.member?.gender;\n          }\n          return value;\n        }\n      }, {\n        column: this.intl.t('news and offers email consent'),\n        value: 'mailingList',\n        // to filter out if the checklist is not there\n        prop: 'mailingList',\n        transform(value, row, spec, dateService, intl) {\n          if (value === true) {\n            return intl.t('yes');\n          }\n          return intl.t('no');\n        }\n      }\n\n      // add more for next phase?\n      ];\n    }\n    getDefaultFilename() {\n      return `${this.intl.t('contacts')}-${this.today}`;\n    }\n    *fetchDataTask() {\n      const useFilters = this?.args?.useFilters ?? false;\n      let exportFilters = this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          fetchMax: true\n        }\n      });\n      if (useFilters) {\n        exportFilters = this.search.copyFilters({\n          filters: this?.args?.filters ?? {},\n          adapterName: 'contacts/filters',\n          defaultFiltersData: {\n            fetchMax: true\n          }\n        });\n      }\n      const results = yield this.crud.searchAdvancedTask.perform({\n        adapterName: 'contacts',\n        filters: exportFilters,\n        serverType: 'jobs',\n        rawResponse: true\n      });\n      const specsForSummary = R.filter(data => {\n        const selectedSpecsForExport = this.selectedSpecsForExport;\n        if (R.includes(data.value, selectedSpecsForExport)) {\n          return true;\n        }\n      })(this.availableSpecsForExport);\n      const worksheetData = R.map(row => {\n        return R.map(spec => {\n          let value;\n          const path = spec.prop;\n          if (!path) {\n            value = '';\n          }\n          value = R_.dotPath(path)(row);\n          if (spec.transform) {\n            value = spec.transform(value, row, spec, this.dateService, this.intl);\n          }\n          return value;\n        })(specsForSummary);\n      })(results || []);\n      const headers = R.pluck('column')(specsForSummary);\n      const exportData = {\n        headers,\n        data: worksheetData\n      };\n      this.exportData = exportData;\n      return exportData;\n    }\n    *exportTask(onCloseDialogAction) {\n      const exportData = yield this.fetchDataTask.perform();\n      const headers = exportData.headers || [];\n      const worksheetData = exportData.data || [];\n      const sheetWithHeaders = R.prepend(headers)(worksheetData);\n      const worksheets = [];\n      worksheets.push({\n        sheetName: this.today,\n        data: sheetWithHeaders\n      });\n      yield this.excel.exportFile({\n        worksheets,\n        title: this.fileName\n      });\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"fileName\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"exportData\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"today\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"campaignKeys\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"mm\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"yyyy\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"customDateStartZ\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"customDateEndZ\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaigns\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"exportDateType\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'campaignPeriod';\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"customDateRangeInMonth\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '3';\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isAllCampaignSelected\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"maxSelectableCount\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 20;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"availableSpecsForExport\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"selectedSpecsForExport\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return ['name', 'code', 'email', 'telephone', 'birthday', 'address', 'gender', 'mailingList'];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"getDefaultFilename\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"getDefaultFilename\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDataTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"exportTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"exportTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/export-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZQ4ToQjy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@disabled\\\",\\\"@label\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\"],[[23,4,[]]]],{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"file name\\\",[23,0,[\\\"errors\\\"]],\\\"fileName\\\",\\\"export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,2,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"fileName\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"data to export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-sub-section\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[false,false,[23,0,[\\\"availableSpecsForExport\\\"]],\\\"list-selector\\\",[23,0,[]],\\\"selectedSpecsForExport\\\",\\\"value\\\",\\\"column\\\",\\\"list-selector__item\\\",false,true]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/footer-btns\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"export\\\",[23,3,[]],\\\"fas fa-file-export\\\",[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/export-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/export-contact-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, R_) {\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;\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 ContactsExportContactBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('date'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _class = class ContactsExportContactBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"export\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"server\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isExporting\", _descriptor8, this);\n      _initializerDefineProperty(this, \"filename\", _descriptor9, this);\n      this.crud.addLists(this, ['dispatch/lists/dispatch-sort', 'dispatch/lists/dispatch-sort-direction']);\n    }\n    getDefaultFilename() {\n      const today = this.dateService.formatDate(this.dateService.getToday(), 'YYYYMMDD');\n      const name = this.intl.t('contacts');\n      return `${name}-${today}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"export\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isExporting\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"filename\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.getDefaultFilename();\n    }\n  }), _class);\n});","define(\"client/pods/components/contacts/export-contact-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fBkhi/Vk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@formInitData\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\"],[\\\"exportContactBtn\\\",[23,2,[]],true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"contacts\\\",[23,4,[]],[23,2,[]],[23,3,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"exportSheetsInfo_group\\\",[23,5,[]],[23,2,[]],\\\"file name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\"],[\\\"file name\\\",\\\"fileName\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"filename\\\"]]]]],[0,\\\"\\\\n      \\\"],[1,\\\" .\\\",false],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-export-file-type\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"exportFileType\\\"]],[23,0,[\\\"exportFileTypeLabel\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"defaultExportSheets_group\\\",[23,5,[]],[23,2,[]],\\\"export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"sortBy\\\",\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-dispatch-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,6,[\\\"_data\\\",\\\"sortBy\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,6,[\\\"_data\\\",\\\"sortBy\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-dispatch-sort-direction\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"sortByDirection\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/export-contact-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _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 ContactsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('contacts'), _dec3 = Ember.inject.service('date'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember.computed('args.filters._data.rewardKeys.[]'), _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _class = class ContactsFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"big\", _descriptor6, this);\n      _initializerDefineProperty(this, \"recurringFilters\", _descriptor7, this);\n      this.setup();\n    }\n    setup() {\n      this.crud.addLists(this, ['ages', 'filters/count', 'channels/shop/rewards', 'channels/shop/campaigns', 'contacts/lists/tags', 'contacts/lists/filters/extra', 'contacts/lists/filters/transactions/props', 'contacts/lists/filters/transactions/criterias', 'documents/lists/types/doc-types', 'channels/shop/rewards', 'toggles/yesNo', 'contacts/lists/relationships', 'paymentTerms', 'statuses', {\n        name: 'users',\n        appendPath: 'internal'\n      }, 'periods/months']);\n    }\n\n    // @action\n    // selectItem (item, isSelected) {\n    //   if (this?.args?.onSearchTask) {\n    //     this.args.onSearchTask.perform()\n    //   }\n    // }\n\n    get memberLevelsList() {\n      const rewardKeys = this.args.filters?._data?.rewardKeys || [];\n      if (RA.isNilOrEmpty(rewardKeys)) {\n        return [];\n      }\n      const rewards = this.crud.lists['channels-shop-rewards'] || [];\n      return R.pipe(R.filter(reward => {\n        return R.includes(reward?._data?._key || '', rewardKeys);\n      }), R.map(reward => {\n        return reward?._data?.memberLevels || [];\n      }), R.flatten)(rewards);\n    }\n    get availableTransporterExtensions() {\n      const transporters = this.crud.lists['contacts-transporters'] || [];\n      return R.reduce((acc, model) => {\n        const isTransporterExtensionAlreadyAdded = acc.some(accModel => accModel?._data?.transporterExtension === model?._data?.transporterExtension);\n        if (isTransporterExtensionAlreadyAdded) {\n          return acc;\n        }\n        return acc.concat(model);\n      }, [])(transporters);\n    }\n    get showStatusTags() {\n      // @TODO: move to filter model\n      const statuses = this?.crud?.lists?.statuses || [];\n      const selectedStatuses = this.args.filters?._data?.statuses || [];\n      if (selectedStatuses.length === 0) {\n        return false;\n      }\n      if (selectedStatuses.length === statuses.length) {\n        return false;\n      }\n      return true;\n    }\n    get birthdayMonthTagSuffix() {\n      const filters = this?.args?.filters;\n      const birthdayMonthStart = filters.getData('birthdayMonthStart') || '';\n      const birthdayMonthStartLabel = filters.getData('birthdayMonthStartLabel') || '';\n      const birthdayMonthEnd = filters.getData('birthdayMonthEnd') || '';\n      const birthdayMonthEndLabel = filters.getData('birthdayMonthEndLabel') || '';\n      let birthdayMonthTagSuffix = '';\n      if (birthdayMonthStart) {\n        birthdayMonthTagSuffix = `: ${birthdayMonthStartLabel}`;\n      }\n      if (birthdayMonthEnd) {\n        birthdayMonthTagSuffix = `${birthdayMonthTagSuffix} - ${birthdayMonthEndLabel}`;\n      }\n      return birthdayMonthTagSuffix;\n    }\n    deselectBirthdayMonth() {\n      const filters = this?.args?.filters;\n      filters.setData('birthdayMonthStart', '');\n      filters.setData('birthdayMonthStartLabel', '');\n      filters.setData('birthdayMonthEnd', '');\n      filters.setData('birthdayMonthEndLabel', '');\n    }\n    get birthdayYearTagSuffix() {\n      const filters = this?.args?.filters;\n      const birthdayYearStart = filters.getData('birthdayYearStart') || '';\n      const birthdayYearEnd = filters.getData('birthdayYearEnd') || '';\n      let birthdayYearTagSuffix = '';\n      if (birthdayYearStart) {\n        birthdayYearTagSuffix = `: ${birthdayYearStart}`;\n      }\n      if (birthdayYearEnd) {\n        birthdayYearTagSuffix = `${birthdayYearTagSuffix} - ${birthdayYearEnd}`;\n      }\n      return birthdayYearTagSuffix;\n    }\n    deselectBirthdayYear() {\n      const filters = this?.args?.filters;\n      filters.setData('birthdayYearStart', '');\n      filters.setData('birthdayYearEnd', '');\n    }\n    get ageSuffix() {\n      const filters = this?.args?.filters;\n      const ageStart = filters.getData('ageStart') || '';\n      const ageEnd = filters.getData('ageEnd') || '';\n      if (ageStart && ageEnd) {\n        return `: ${ageStart} - ${ageEnd}`;\n      }\n      if (ageStart) {\n        return `: ${ageStart}`;\n      }\n      if (ageEnd) {\n        return `: ${ageEnd}`;\n      }\n      return '';\n    }\n    deselectAgeStartAndAgeEnd() {\n      const filters = this?.args?.filters;\n      filters.setData('ageStart', '');\n      filters.setData('ageEnd', '');\n    }\n    deselectIsAssociates() {\n      const filters = this?.args?.filters;\n      filters.setData('isAssociates', '');\n    }\n    deselectIsMember() {\n      const filters = this?.args?.filters;\n      filters.setData('isMember', '');\n    }\n    deselectMailingList() {\n      const filters = this?.args?.filters;\n      filters.setData('mailingList', '');\n    }\n    verifyAgeStartAndAgeEnd() {\n      const filters = this?.args?.filters;\n      const ageStart = filters.getData('ageStart') || '';\n      const ageEnd = filters.getData('ageEnd') || '';\n\n      // FLIP THE AGE IF REVERSED\n      if (RA.isNotNilOrEmpty(ageStart) && RA.isNotNilOrEmpty(ageEnd) && this.big.newBig(ageEnd).lt(ageStart)) {\n        filters.setData('ageStart', ageEnd);\n        filters.setData('ageEnd', ageStart);\n      }\n    }\n\n    // get showResetFilter () {\n    //   return true\n    //   //   // @TODO: move to filter model\n    //   //   const filtersData = this?.args?.filters?._data\n    //   //   if (RA.isNilOrEmpty(filtersData)) {\n    //   //     return false\n    //   //   }\n\n    //   //   const statuses = filtersData.statuses\n    //   //   // const hasImages = filtersData.hasImages\n    //   //   const name = filtersData.name\n    //   //   const code = filtersData.code\n    //   //   const price = filtersData.price\n    //   //   const setTypes = filtersData.setTypes\n    //   //   const tags = filtersData.tags\n\n    //   //   if (\n    //   //     statuses.length !== 5 ||\n    //   //     tags.length !== 0 ||\n    //   //     setTypes.length !== 0 ||\n    //   //     RA.isNilOrEmpty(hasImages) !== true ||\n    //   //     item !== '' ||\n    //   //     itemCode !== '' ||\n    //   //     price !== ''\n    //   //   ) {\n    //   //     return true\n    //   //   }\n\n    // //   return false\n    // }\n\n    // @task\n    // * updateFiltersTask () {\n    //   // @TODO: how can this be improved?\n    //   const filters = this.args.filters || {}\n    //   set(filters, '_data', filters?._data || {})// reset data\n\n    //   return yield this.args.onSearchTask.perform(...arguments)\n    // }\n\n    // @task\n    // * clearSelectedItemsTask () {\n    //   if (this?.crud?.reloadSearchRecordsTask) {\n    //     yield this?.crud?.reloadSearchRecordsTask.perform({ filters: this.args.filters, reset: true })\n    //     const filters = this.args.filters || {}\n    //     set(filters, '_data', filters?._data || {}) // reset data\n    //   }\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"recurringFilters\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"memberLevelsList\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"memberLevelsList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectBirthdayMonth\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectBirthdayMonth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectBirthdayYear\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectBirthdayYear\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectAgeStartAndAgeEnd\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectAgeStartAndAgeEnd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectIsAssociates\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectIsAssociates\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectIsMember\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectIsMember\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectMailingList\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectMailingList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"verifyAgeStartAndAgeEnd\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"verifyAgeStartAndAgeEnd\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/filters-advanced/doc-totals/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 ContactsFiltersAdvancedDocTotalsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.computed('args.transaction._data.dataRangeType', 'crud.lists.contacts-lists-filters-doc-totals-props.[]'), _dec3 = Ember.computed('args.{index,filters._data.docTotals.[]}'), _dec4 = Ember._action, _class = class ContactsFiltersAdvancedDocTotalsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['documents/lists/types/doc-types', 'contacts/lists/filters/doc-totals/data-ranges', 'contacts/lists/filters/doc-totals/props', 'contacts/lists/filters/transactions/criterias', 'periods/months', 'periods/years']);\n    }\n    get transactionProps() {\n      const docTotalsProps = this.crud.lists['contacts-lists-filters-doc-totals-props'];\n      if (RA.isNilOrEmpty(docTotalsProps)) {\n        return [];\n      }\n      const dataRangeType = this?.args?.transaction?._data?.dataRangeType ?? '';\n      if (dataRangeType === 'monthly') {\n        return R.reject(R.pathEq(['_data', 'value'], 'averageDays'))(docTotalsProps);\n      }\n      return docTotalsProps;\n    }\n    get isLastIndex() {\n      const docTotals = this.args?.filters?._data?.docTotals || [];\n      const docTotalsLength = R.length(docTotals);\n      const index = this.args?.index;\n      if (docTotalsLength - 1 === index) {\n        return true;\n      }\n      return false;\n    }\n    addNewDocTotal() {\n      const filters = this.args?.filters;\n      filters.addDocTotal();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"transactionProps\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"transactionProps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isLastIndex\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"isLastIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewDocTotal\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewDocTotal\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/filters-advanced/doc-totals/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"3q7gCK+i\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@docTotal\\\",\\\"@filters\\\",\\\"@isHeader\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[1,[28,\\\"tt\\\",[\\\"data range\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"type\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"property\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"criteria\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"value\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@label\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-doc-totals-data-ranges\\\"]],true,[23,2,[\\\"_data\\\",\\\"dataRangeType\\\"]],[23,2,[\\\"_data\\\",\\\"dataRangeTypeLabel\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"dataRangeType\\\"]],\\\"monthly\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-months\\\"]],[23,2,[\\\"_data\\\",\\\"mmStart\\\"]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-years\\\"]],[23,2,[\\\"_data\\\",\\\"yyyyStart\\\"]]]]],[0,\\\"\\\\n        ~\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-months\\\"]],[23,2,[\\\"_data\\\",\\\"mmEnd\\\"]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-years\\\"]],[23,2,[\\\"_data\\\",\\\"yyyyEnd\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"dataRangeType\\\"]],\\\"yearly\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-years\\\"]],[23,2,[\\\"_data\\\",\\\"yyyyStart\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-types-doc-types\\\"]],true,[23,2,[\\\"_data\\\",\\\"docType\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@value\\\",\\\"@label\\\",\\\"@translate\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"transactionProps\\\"]],[23,2,[\\\"_data\\\",\\\"prop\\\"]],[23,2,[\\\"_data\\\",\\\"propLabel\\\"]],false]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@value\\\",\\\"@label\\\",\\\"@translate\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-transactions-criterias\\\"]],[23,2,[\\\"_data\\\",\\\"criteria\\\"]],[23,2,[\\\"_data\\\",\\\"criteriaLabel\\\"]],true]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[23,1,[]],\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[23,3,[\\\"removeDocTotal\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n      \\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/filters-advanced/doc-totals/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Px362QZy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"docTotal\\\",\\\"docTotal\\\",\\\"index\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@filters\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@isGuest\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@isSearchBar\\\",\\\"@translatedPlaceholder\\\"],[[23,13,[\\\"_data\\\",\\\"name\\\"]],[23,16,[]],[23,17,[]],true,[28,\\\"tt\\\",[\\\"name\\\"],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@isSearchBar\\\",\\\"@translatedPlaceholder\\\"],[[23,13,[\\\"_data\\\",\\\"code\\\"]],[23,16,[]],[23,17,[]],true,[28,\\\"tt\\\",[\\\"code\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"translatedPlaceholder\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,13,[\\\"_data\\\",\\\"telephone\\\"]],[28,\\\"tt\\\",[\\\"telephone\\\"],null],[23,16,[]],[23,17,[]],true]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"translatedPlaceholder\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,13,[\\\"_data\\\",\\\"fax\\\"]],[28,\\\"tt\\\",[\\\"fax\\\"],null],[23,16,[]],[23,17,[]],true]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"translatedPlaceholder\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,13,[\\\"_data\\\",\\\"email\\\"]],[28,\\\"tt\\\",[\\\"email\\\"],null],[23,16,[]],[23,17,[]],true]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"translatedPlaceholder\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,13,[\\\"_data\\\",\\\"address\\\"]],[28,\\\"tt\\\",[\\\"address\\\"],null],[23,16,[]],[23,17,[]],true]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"badge\\\"],[\\\"transporter\\\",[28,\\\"or\\\",[[23,14,[]],[28,\\\"not\\\",[[23,0,[\\\"availableTransporterExtensions\\\"]]],null]],null],[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"transporterExtensions\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[false,[23,0,[\\\"availableTransporterExtensions\\\"]],[23,13,[]],true,\\\"_data.transporterExtension\\\",\\\"transporterLabel\\\",\\\"_data.transporterExtensions\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[12]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"badge\\\"],[\\\"relationships\\\",[23,14,[]],[28,\\\"sum\\\",[[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"relationships\\\"]]],null],[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"isAssociates\\\"]],true],null],[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"isAssociates\\\"]],false],null]],null],1,0],null],[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"isMember\\\"]],true],null],[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"isMember\\\"]],false],null]],null],1,0],null],[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"mailingList\\\"]],true],null],[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"mailingList\\\"]],false],null]],null],1,0],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-relationships\\\"]],[23,13,[]],true,\\\"_data.value\\\",\\\"_data.relationships\\\",true]]],false],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n          \\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@onDeselect\\\"],[\\\"is associates\\\",\\\"filter-group-legend\\\",false,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,13,[]],false,true,\\\"_data.value\\\",\\\"_data.isAssociates\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"deselectIsAssociates\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@onDeselect\\\"],[\\\"is member\\\",\\\"filter-group-legend\\\",false,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,13,[]],false,true,\\\"_data.value\\\",\\\"_data.isMember\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"deselectIsMember\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@onDeselect\\\"],[\\\"news and offers email consent\\\",\\\"filter-group-legend\\\",false,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,13,[]],false,true,\\\"_data.value\\\",\\\"_data.mailingList\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"deselectMailingList\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[11]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"badge\\\",\\\"list\\\"],[\\\"tags\\\",[23,14,[]],[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"tags\\\"]]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"adapterName\\\",\\\"tab\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"allowEmpty\\\"],[true,\\\"contacts/lists/tags\\\",[23,15,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],[23,13,[]],true,\\\"_data._key\\\",\\\"_data.tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"badge\\\"],[\\\"birthday\\\",[23,14,[]],[28,\\\"badgeCount\\\",[[28,\\\"array\\\",[[23,13,[\\\"_data\\\",\\\"birthdayMonthStart\\\"]],[23,13,[\\\"_data\\\",\\\"birthdayYearStart\\\"]],[23,13,[\\\"_data\\\",\\\"ages\\\"]],[23,13,[\\\"_data\\\",\\\"ageStart\\\"]],[23,13,[\\\"_data\\\",\\\"ageEnd\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"birthday months\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@allowDeselect\\\",\\\"@allowEmpty\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-months\\\"]],true,true,\\\"_data.value\\\",\\\"_data.label\\\",[23,13,[\\\"_data\\\",\\\"birthdayMonthStart\\\"]],[23,13,[\\\"_data\\\",\\\"birthdayMonthStartLabel\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"birthday years\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@allowDeselect\\\",\\\"@allowEmpty\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,0,[\\\"contactsService\\\",\\\"birthdayPeriodYears\\\"]],true,true,\\\"value\\\",\\\"label\\\",[23,13,[\\\"_data\\\",\\\"birthdayYearStart\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"age categories\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@allowDeselect\\\",\\\"@allowEmpty\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ages\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,13,[\\\"_data\\\",\\\"ages\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"ages\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@classNames\\\",\\\"@onFocusOut\\\"],[[23,13,[\\\"_data\\\",\\\"ageStart\\\"]],\\\"input--80\\\",[28,\\\"fn\\\",[[23,0,[\\\"verifyAgeStartAndAgeEnd\\\"]]],null]]]],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-5 u-margin-right-5\\\"],[8],[0,\\\" ~ \\\"],[9],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@classNames\\\",\\\"@onFocusOut\\\"],[[23,13,[\\\"_data\\\",\\\"ageEnd\\\"]],\\\"input--80\\\",[28,\\\"fn\\\",[[23,0,[\\\"verifyAgeStartAndAgeEnd\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@badge\\\"],[\\\"rewards\\\",[23,14,[]],[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"rewardKeys\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@model\\\",\\\"@valueKey\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards\\\"]],true,true,\\\"_data._key\\\",\\\"_data.name\\\",[23,13,[]],\\\"_data.rewardKeys\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"memberLevelsList\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@badge\\\"],[\\\"member level\\\",[23,14,[]],[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"memberLevelIds\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@optionGroupLabel\\\",\\\"@model\\\",\\\"@valueKey\\\"],[true,false,[23,0,[\\\"memberLevelsList\\\"]],true,true,\\\"_data.memberLevelId\\\",\\\"_data.name\\\",\\\"_data.reward\\\",[23,13,[]],\\\"_data.memberLevelIds\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"badge\\\"],[\\\"payment methods\\\",[23,14,[]],[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"paymentTerms\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],[23,13,[]],true,\\\"_data._key\\\",\\\"_data.label\\\",\\\"_data.paymentTerms\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"badge\\\"],[\\\"commissions\\\",[23,14,[]],[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"salesPersons\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users--internal\\\"]],[23,13,[]],true,\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.salesPersons\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"label\\\",\\\"badge\\\"],[[23,14,[]],\\\"status\\\",[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"statuses\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"allowDeselect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,13,[]],true,true,\\\"_data.value\\\",\\\"_data.statuses\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,14,[]],[23,13,[\\\"docTotalsBadgeCount\\\"]],\\\"sales or purchases metrics\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"contacts/filters-advanced/doc-totals\\\",[],[[\\\"@isHeader\\\"],[true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,13,[\\\"_data\\\",\\\"docTotals\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"contacts/filters-advanced/doc-totals\\\",[],[[\\\"@index\\\",\\\"@docTotal\\\",\\\"@filters\\\",\\\"@isReadonly\\\"],[[23,3,[]],[23,2,[]],[23,13,[]],[23,14,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,13,[\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--tags\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags-container tags-container--margin-right-all\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"statuses\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,13,[\\\"_data\\\",\\\"statuses\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"transporterExtensions\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,[23,0,[\\\"availableTransporterExtensions\\\"]],\\\"_data.transporterExtension\\\",\\\"transporterLabel\\\",false,[23,13,[\\\"_data\\\",\\\"transporterExtensions\\\"]],true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"not\\\",[[28,\\\"is-empty\\\",[[23,13,[\\\"_data\\\",\\\"relationships\\\"]]],null]],null],[28,\\\"not-eq\\\",[[23,13,[\\\"_data\\\",\\\"isAssociates\\\"]],\\\"\\\"],null],[28,\\\"not-eq\\\",[[23,13,[\\\"_data\\\",\\\"isMember\\\"]],\\\"\\\"],null],[28,\\\"not-eq\\\",[[23,13,[\\\"_data\\\",\\\"mailingList\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"relationships\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-relationships\\\"]],[23,13,[\\\"_data\\\",\\\"relationships\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"isAssociates\\\"]],\\\"\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-extra\\\"]],\\\"isAssociates\\\",[28,\\\"concat\\\",[\\\": \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"isAssociates\\\"]],true],null],[28,\\\"tt\\\",[\\\"yes\\\"],null],[28,\\\"tt\\\",[\\\"no\\\"],null]],null]],null],true,[28,\\\"fn\\\",[[23,0,[\\\"deselectIsAssociates\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"isMember\\\"]],\\\"\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-extra\\\"]],\\\"isMember\\\",[28,\\\"concat\\\",[\\\": \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"isMember\\\"]],true],null],[28,\\\"tt\\\",[\\\"yes\\\"],null],[28,\\\"tt\\\",[\\\"no\\\"],null]],null]],null],true,[28,\\\"fn\\\",[[23,0,[\\\"deselectIsMember\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"mailingList\\\"]],\\\"\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-extra\\\"]],\\\"mailingList\\\",[28,\\\"concat\\\",[\\\": \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"mailingList\\\"]],true],null],[28,\\\"tt\\\",[\\\"yes\\\"],null],[28,\\\"tt\\\",[\\\"no\\\"],null]],null]],null],true,[28,\\\"fn\\\",[[23,0,[\\\"deselectMailingList\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"tags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],[23,13,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"badgeCount\\\",[[28,\\\"array\\\",[[23,13,[\\\"_data\\\",\\\"birthdayMonthStart\\\"]],[23,13,[\\\"_data\\\",\\\"birthdayYearStart\\\"]],[23,13,[\\\"_data\\\",\\\"ages\\\"]],[23,13,[\\\"_data\\\",\\\"ageStart\\\"]],[23,13,[\\\"_data\\\",\\\"ageEnd\\\"]]],null]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"birthdayMonthStart\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-extra\\\"]],\\\"_data.value\\\",\\\"birthdayMonth\\\",[23,0,[\\\"birthdayMonthTagSuffix\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"deselectBirthdayMonth\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"birthdayYearStart\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-extra\\\"]],\\\"_data.value\\\",\\\"birthdayYear\\\",[23,0,[\\\"birthdayYearTagSuffix\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"deselectBirthdayYear\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\",\\\"@onDeselect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ages\\\"]],[23,13,[\\\"_data\\\",\\\"ages\\\"]],true,[28,\\\"tt\\\",[\\\"age categories\\\"],null],[28,\\\"fn\\\",[[23,13,[\\\"deselectParam\\\"]],\\\"ages\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,13,[\\\"_data\\\",\\\"ageStart\\\"]],[23,13,[\\\"_data\\\",\\\"ageEnd\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-extra\\\"]],\\\"age\\\",[23,0,[\\\"ageSuffix\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"deselectAgeStartAndAgeEnd\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"sum\\\",[[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"rewardKeys\\\"]]],null],[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"memberLevelIds\\\"]]],null]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowDeselect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards\\\"]],[23,13,[\\\"_data\\\",\\\"rewardKeys\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowDeselect\\\"],[true,false,[23,0,[\\\"memberLevelsList\\\"]],[23,13,[\\\"_data\\\",\\\"memberLevelIds\\\"]],\\\"_data.memberLevelId\\\",\\\"_data.name\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"paymentTerms\\\"]]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowDeselect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],[23,13,[\\\"_data\\\",\\\"paymentTerms\\\"]],\\\"_data._key\\\",\\\"_data.label\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"docTotalsBadgeCount\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,13,[\\\"_data\\\",\\\"docTotals\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"hasRequiredValues\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-extra\\\"]],\\\"_data.value\\\",\\\"docTotal\\\",[23,1,[\\\"tagSuffix\\\"]],true,[28,\\\"fn\\\",[[23,13,[\\\"removeDocTotal\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"count\\\",[[23,13,[\\\"_data\\\",\\\"salesPersons\\\"]]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowDeselect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users--internal\\\"]],[23,13,[\\\"_data\\\",\\\"salesPersons\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"hide\\\",\\\"fas fa-angle-up\\\",[23,14,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,13,[]],\\\"showFilters\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,18,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,13,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,14,[]],[23,16,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,13,[]],true]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,14,[]],[23,16,[]],[23,17,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/filters-advanced/transaction/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 ContactsFiltersAdvancedTransactionComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.computed('args.transaction._data.prop', 'crud.lists.contacts-lists-filters-transactions-props.[]'), _dec3 = Ember.computed('args.transaction._data.prop', 'crud.lists.contacts-lists-filters-transactions-criterias.[]'), _dec4 = Ember.computed('args.transaction._data.{prop,value}', 'args.filters._data.transactions.[]'), _dec5 = Ember.computed('args.{index,filters._data.transactions.[]}'), _dec6 = Ember._action, _dec7 = Ember._action, _class = class ContactsFiltersAdvancedTransactionComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['contacts/lists/filters/transactions/props', 'contacts/lists/filters/transactions/criterias', 'channels/shop/rewards', 'channels/shop/campaigns']);\n    }\n    get transactionProps() {\n      const transactionsProps = this.crud.lists['contacts-lists-filters-transactions-props'];\n      if (RA.isNilOrEmpty(transactionsProps)) {\n        return [];\n      }\n      const transactions = this.args?.filters?._data?.transactions || [];\n      const rewardTransaction = R.find(R.pathEq(['_data', 'prop'], 'reward'))(transactions);\n      if (rewardTransaction) {\n        return transactionsProps;\n      }\n      return R.reject(R.pathEq(['_data', 'value'], 'memberLevel'))(transactionsProps);\n    }\n    get transactionCriterias() {\n      const transactionsCriterias = this.crud.lists['contacts-lists-filters-transactions-criterias'];\n      if (RA.isNilOrEmpty(transactionsCriterias)) {\n        return [];\n      }\n      const transactionProps = this.transactionProps;\n      const selectedProp = this.args?.transaction?._data?.prop;\n      const transactionProp = R.find(R.pathEq(['_data', 'value'], selectedProp))(transactionProps);\n      const criterias = transactionProp?._data?.criterias || [];\n      return R.filter(criteria => {\n        const criteriaValue = criteria?._data?.value;\n        return R.includes(criteriaValue, criterias);\n      })(transactionsCriterias);\n    }\n    get activeRewardsList() {\n      const rewards = this.crud.lists['channels-shop-rewards'] || [];\n      return R.filter(R.pathEq(['_data', 'status'], 'active'))(rewards) || [];\n    }\n    get memberLevelsList() {\n      const transactions = this.args?.filters?._data?.transactions || [];\n      const rewardTransactions = R.filter(R.pathEq(['_data', 'prop'], 'reward'))(transactions);\n      if (RA.isNilOrEmpty(rewardTransactions)) {\n        return [];\n      }\n      const selectedRewardKeys = R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('value'), R.reject(RA.isNilOrEmpty))(rewardTransactions);\n      const rewards = this?.activeRewardsList;\n      return R.pipe(R.map(reward => {\n        const rewardKey = reward?._data?._key;\n        if (R.includes(rewardKey, selectedRewardKeys)) {\n          return reward?._data?.memberLevels || [];\n        }\n        return;\n      }), R.flatten, R.reject(RA.isNilOrEmpty))(rewards);\n    }\n    get isLastIndex() {\n      const transactions = this.args?.filters?._data?.transactions || [];\n      const transactionsLength = R.length(transactions);\n      const index = this.args?.index;\n      if (transactionsLength - 1 === index) {\n        return true;\n      }\n      return false;\n    }\n    setDefaultCriteria() {\n      const transaction = this.args?.transaction;\n      const transactionCriterias = this.transactionCriterias;\n      if (RA.isNotNilOrEmpty(transactionCriterias)) {\n        const criteria = R.head(transactionCriterias);\n        Ember.set(transaction, '_data.criteria', criteria?._data?.value);\n      } else {\n        Ember.set(transaction, '_data.criteria', 'equals');\n      }\n    }\n    addNewTransaction() {\n      const filters = this.args?.filters;\n      filters.addTransaction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"transactionProps\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"transactionProps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transactionCriterias\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"transactionCriterias\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"memberLevelsList\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"memberLevelsList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isLastIndex\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"isLastIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultCriteria\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultCriteria\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewTransaction\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewTransaction\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/filters-advanced/transaction/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Z0ZasOTg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@transaction\\\",\\\"@filters\\\",\\\"@isHeader\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"property\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"criteria\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"value\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"transactionProps\\\"]],[23,2,[\\\"_data\\\",\\\"prop\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setDefaultCriteria\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,1,[]],\\\"table-form__input\\\",[23,0,[\\\"transactionCriterias\\\"]],[23,2,[\\\"_data\\\",\\\"criteria\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"prop\\\"]],\\\"transactionDate\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"criteria\\\"]],\\\"isBetween\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\",\\\"@isDateRange\\\"],[\\\"_data.value\\\",[23,2,[]],[23,2,[\\\"_data\\\",\\\"value\\\"]],[23,1,[]],true]]],[0,\\\"\\\\n          ~\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\",\\\"@isDateRange\\\"],[\\\"_data.valueMax\\\",[23,2,[]],[23,2,[\\\"_data\\\",\\\"valueMax\\\"]],[23,1,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"_data.value\\\",[23,2,[]],[23,2,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"prop\\\"]],\\\"shop\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@model\\\",\\\"@valueKey\\\"],[true,false,[23,1,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns\\\"]],true,true,\\\"_data._key\\\",\\\"_data.name\\\",[23,2,[]],\\\"_data.value\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@translate\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@list\\\",\\\"@value\\\"],[false,\\\"_data._key\\\",\\\"_data.name\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns\\\"]],[23,2,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[23,1,[]],\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[23,3,[\\\"removeTransaction\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n      \\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isLastIndex\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[23,1,[]],\\\"fas fa-plus\\\",[28,\\\"fn\\\",[[23,0,[\\\"addNewTransaction\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/filters-advanced/transaction/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/groups/groups-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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, _dec0, _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 ContactsGroupsGroupsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _class = class ContactsGroupsGroupsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"contacts\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor6, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_isEditing\", _descriptor8, this);\n      this.crud.addLists(this, ['contacts/lists/relationships']);\n      if (this.args.isNew || this.args.isEditing) {\n        this.setupDirty();\n      } else {\n        this.dirty = this.args.model;\n        const dataContactsGroupsFilters = this.search.setupFilters({\n          adapterName: 'contacts/filters',\n          defaultFiltersData: {\n            sort: [{\n              by: 'name',\n              direction: 'ASC'\n            }],\n            status: [this.constants.status.active]\n          }\n        });\n\n        // this.contacts.searchContactsByGroupsTask.perform({\n        //   group: this.args.model,\n        //   filters: dataContactsGroupsFilters,\n        //   hasEmailOnly: false\n        // })\n      }\n    }\n    setupDirty() {\n      const dirty = this.crud.setupDirty({\n        adapterName: 'contacts/groups',\n        model: this.args.model,\n        isNew: this.args.isNew\n      });\n      this.dirty = dirty;\n      this.tabsManager.setHeader(this.args.tabParent, dirty.getData('name'));\n    }\n    setAsEditing() {\n      this._isEditing = true;\n      this.setupDirty();\n    }\n    get disabled() {\n      return !this.args.isNew && !this.args.isEditing && !this._isEditing;\n    }\n    get isReadonly() {\n      return this.disabled;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contacts\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_isEditing\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setAsEditing\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setAsEditing\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/groups/groups-editor/criteria-editor/by/reward/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 ContactsGroupsGroupsEditorCriteriaEditorByRewardsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class ContactsGroupsGroupsEditorCriteriaEditorByRewardsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"fetchedReward\", _descriptor3, this);\n      this.filters = this.search.setupFilters({\n        adapterName: 'channels/shop/rewards/filters',\n        defaultFiltersData: {\n          query: ''\n        }\n      });\n      const rewardKey = this.args.model.get('_data.rewardKey');\n      if (rewardKey) {\n        this.fetchRewardByKey.perform(rewardKey);\n      }\n    }\n    *fetchRewardByKey(rewardKey) {\n      // fetch rewards\n      if (!rewardKey) {\n        return false;\n      }\n      const found = yield this.crud.findTask.perform({\n        adapterName: 'channels/shop/rewards',\n        appendPath: `/${rewardKey}`\n      });\n      if (found) {\n        this.fetchedReward = found;\n      }\n    }\n    onLoadItem(selectedItem) {\n      this.args.model.set('_data.rewardKey', selectedItem._data._key);\n    }\n    onResetItem() {\n      this.args.model.set('_data.rewardKey', '');\n    }\n    get selectedReward() {\n      const results = this.filters?.results || [];\n      if (RA.isNilOrEmpty(results) && RA.isNotNilOrEmpty(this.fetchedReward)) {\n        return this.fetchedReward;\n      }\n      const rewardKey = this.args.model.get('_data.rewardKey');\n      if (!rewardKey) {\n        return {};\n      }\n      const found = R.find(R.pathEq(['_data', '_key'], rewardKey))(results);\n      if (!found) {\n        return {};\n      }\n      return found;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"fetchedReward\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchRewardByKey\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchRewardByKey\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onLoadItem\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onLoadItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onResetItem\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onResetItem\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/groups/groups-editor/criteria-editor/by/reward/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DA8hRe2s\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"rewardsEditor\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"reward\\\",[23,0,[\\\"errors\\\"]],\\\"rewardName\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@placeholder\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@value\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"span\\\",true,[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"search reward name\\\",\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",\\\"_data._key\\\",[23,2,[\\\"_data\\\",\\\"rewardKey\\\"]],[23,2,[\\\"_data\\\",\\\"rewardName\\\"]],[23,1,[]],[23,1,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"query\\\",\\\"filters\\\",\\\"component\\\",\\\"allowEmptyQuery\\\"],[\\\"channels/shop/rewards\\\",[23,2,[\\\"_data\\\",\\\"rewardName\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[]],true]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onLoadItem\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onResetItem\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"rewardKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"member level\\\",[23,0,[\\\"errors\\\"]],\\\"memberLevel\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@hasSelectAll\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[false,true,[23,1,[]],false,[23,0,[\\\"selectedReward\\\",\\\"_data\\\",\\\"memberLevels\\\"]],\\\"list-selector\\\",[23,2,[]],\\\"_data.memberLevelIds\\\",\\\"_data.memberLevelId\\\",\\\"_data.name\\\",\\\"list-selector__item\\\",true,true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/groups/groups-editor/criteria-editor/by/reward/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/groups/groups-editor/criteria-editor/by/shop/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ContactsGroupsGroupsEditorCriteriaEditorByShopComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._action, _dec4 = Ember._action, _class = class ContactsGroupsGroupsEditorCriteriaEditorByShopComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      this.filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {\n          query: ''\n        }\n      });\n    }\n    loadShopSource(model, shop) {\n      model.setData('shopKey', shop.getData('_key'));\n    }\n    unloadShopSource(model) {\n      model.setData('shopKey', '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadShopSource\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"loadShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadShopSource\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadShopSource\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/groups/groups-editor/criteria-editor/by/shop/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GgKwrp6k\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"rewardsEditor\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"shop\\\",[24,[\\\"errors\\\"]],\\\"shopKey\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"resultsItemComponent\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[false,[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,1,[\\\"_data\\\",\\\"shop\\\"]],[23,1,[\\\"_data\\\",\\\"shopKey\\\"]],[23,2,[]],[23,2,[]],\\\"channels/shop/campaigns/search-results\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"query\\\"],[\\\"channels/shop/campaigns\\\",[23,0,[\\\"filters\\\"]],[23,1,[\\\"_data\\\",\\\"source\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadShopSource\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadShopSource\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/groups/groups-editor/criteria-editor/by/shop/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/groups/groups-editor/criteria-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ContactsGroupsGroupsEditorCriteriaEditorComponent = _exports.default = (_dec = Ember.inject.service, _class = class ContactsGroupsGroupsEditorCriteriaEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['contacts/groups/criterias/by']);\n    }\n    get criteriaByComponent() {\n      const criteria = this.args?.criteria;\n      if (!criteria) {\n        return '';\n      }\n      const by = criteria.getData('by');\n      if (by) {\n        return `contacts/groups/groups-editor/criteria-editor/by/${this.args?.criteria?._data?.by}`;\n      }\n      return '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/contacts/groups/groups-editor/criteria-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DTcHnivf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errorIndex\\\",\\\"@errors\\\",\\\"@criteria\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-width-20\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInputClassNames\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"flex-container-row flex-container--justify-space-between\\\",[23,2,[]],\\\"criterias.by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,4,[]],[23,4,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-groups-criterias-by\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"by\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,4,[]],[28,\\\"fn\\\",[[23,5,[\\\"removeCriteria\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"criteriaByComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"criteriaByComponent\\\"]]],[[\\\"isReadonly\\\",\\\"model\\\",\\\"errors\\\",\\\"errorIndex\\\"],[[23,4,[]],[23,3,[]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/groups/groups-editor/criteria-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/groups/groups-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rawWNcJj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"criteria\\\",\\\"index\\\",\\\"@saveTask\\\",\\\"@onAfter\\\",\\\"@model\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title products-display__name\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-header-2\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"args\\\",\\\"isNew\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"new\\\"],null],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"edit\\\"],null],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\\n          \\\"],[1,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar u-container\\\"],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/grid-container\\\",null,[[\\\"classNames\\\"],[\\\"form-grid--2\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"detailsContacts\\\",\\\"contactsGroups\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"name\\\",true,[24,[\\\"errors\\\"]],\\\"name\\\",\\\"contactsGroups\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"valueKey\\\",\\\"readonly\\\",\\\"value\\\"],[true,\\\"name\\\",[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"description\\\",[24,[\\\"errors\\\"]],\\\"description\\\",\\\"contactsGroups\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"rows\\\",\\\"valueKey\\\",\\\"readonly\\\",\\\"value\\\"],[2,\\\"description\\\",[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"relationshipsContacts\\\",\\\"contactsGroups\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-label\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"relationships\\\",\\\"contactsGroups\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"relationships\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"list\\\",\\\"model\\\",\\\"valueKey\\\",\\\"disabled\\\",\\\"multiSelect\\\",\\\"allowEmpty\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-relationships\\\"]],[23,0,[\\\"dirty\\\"]],\\\"_data.relationships\\\",[23,0,[\\\"isReadonly\\\"]],true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"criterias\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"contacts/groups/groups-editor/criteria-editor\\\",[],[[\\\"@model\\\",\\\"@criteria\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@errorIndex\\\"],[[23,0,[\\\"dirty\\\"]],[23,1,[]],[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"errors\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-width-20\\\"],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add criteria\\\",[28,\\\"fn\\\",[[23,0,[\\\"dirty\\\",\\\"newCriteria\\\"]]],null]]]],[0,\\\"                \\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content \\\"],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,5,[]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,0,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"contacts/groups\\\",[23,5,[]],true,[23,4,[]]]]]],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,4,[]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"setAsEditing\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"disabled\\\"]],[23,3,[\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"cancelEditing\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"dirty\\\",\\\"component\\\",\\\"onAfter\\\"],[\\\"contacts/groups\\\",[23,0,[\\\"dirty\\\"]],[23,0,[]],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"disabled\\\"]],[23,3,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,3,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"component\\\"],[\\\"contacts/groups\\\",[23,0,[\\\"dirty\\\"]],[23,4,[]],[23,0,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/groups/groups-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/groups/panels-dash/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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  // import RA from 'ramda-adjunct'\n  let ContactsGroupsPanelsDisplayComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class ContactsGroupsPanelsDisplayComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor3, this);\n      const filters = this.search.setupFilters({\n        adapterName: 'contacts/groups/filters'\n      });\n      this.filters = filters;\n      this.fetchDefaultDataTask.perform();\n    }\n    *fetchDefaultDataTask(onCloseDialogAction) {\n      const filters = this.filters;\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: 'contacts/groups',\n        appendPath: '',\n        filters\n      });\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchDefaultDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDefaultDataTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/groups/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ENi6ZApk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onPaginationTask\\\",\\\"@onReloadSearchRecordsTask\\\"],\\\"statements\\\":[[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onPaginationTask\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onMainAction\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"contacts/groups/table-view/detail-row\\\",[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"filters\\\"]],[24,[\\\"onSearchTask\\\"]],[23,2,[]],[23,1,[]],[24,[\\\"onDisplay\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"onDisplay\\\"]],[28,\\\"hash\\\",null,[[\\\"onDash\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"fetchDefaultDataTask\\\"]]],null]]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/groups/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/groups/table-view/detail-row/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n    // classNameBindings: ['isDetailRow:table-view__detail-row']\n  });\n});","define(\"client/pods/components/contacts/groups/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"u0WmjZKq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@onDash\\\",\\\"@model\\\",\\\"@tableViewOptions\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onClose\\\"],[\\\"new_contacts_groups\\\",true,[23,6,[\\\"onDash\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"contacts/groups/groups-editor\\\",[],[[\\\"@model\\\",\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@saveTask\\\",\\\"@onAfter\\\"],[[22,\\\"model\\\"],[23,0,[\\\"errors\\\"]],false,true,[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"name\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"description\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"criterias\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"name\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"description\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"detail\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[24,[\\\"detail\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\"],[[23,5,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"icon\\\"],[true,\\\"fas fa-eye\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"contacts/groups/groups-editor\\\",[],[[\\\"@model\\\",\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@onDash\\\",\\\"@saveTask\\\",\\\"@onAfter\\\"],[[22,\\\"model\\\"],[23,0,[\\\"errors\\\"]],false,false,[23,4,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"icon\\\"],[true,\\\"fas fa-pen\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"contacts/groups/groups-editor\\\",[],[[\\\"@model\\\",\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@onDash\\\",\\\"@saveTask\\\",\\\"@onAfter\\\"],[[22,\\\"model\\\"],[23,0,[\\\"errors\\\"]],true,false,[23,4,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/groups/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/icons/default-icon/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/contacts/icons/default-icon/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CuwevK3h\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isDefault\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-star\\\",\\\"element-icon--xs element-icon--margin\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-star\\\",\\\"element-icon--xs element-icon--margin\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/icons/default-icon/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/icons/detail-icon/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    iconName: Ember.computed('detail._data.subType', function () {\n      const icon = this?.detail?._data?.icon || '';\n      if (icon) {\n        return `element-icon--margin ${icon}`;\n      }\n      let subType = this.get('detail._data.subType');\n      if (this.get('detail._data.departmentId')) {\n        subType = 'department';\n      }\n      if (this.get('detail._data.personId')) {\n        subType = 'person';\n      }\n      const isPickupLocation = R.pathEq(['detail', '_data', 'type'], 'pickupLocation')(this);\n      const isPerson = R.hasPath(['detail', '_data', 'personId'])(this);\n      if (isPerson && isPickupLocation) {\n        subType = 'pickupAddress';\n      }\n      const iconsList = {\n        telephone: 'phone',\n        fax: 'fax',\n        mobile: 'mobile-alt',\n        address: 'map-marker-alt',\n        billingAddress: 'file-invoice-dollar',\n        deliveryAddress: 'box-open',\n        note: 'comment-alt',\n        link: 'link',\n        email: 'at',\n        person: 'user',\n        department: 'network-wired',\n        pickupAddress: 'dolly'\n      };\n      return 'element-icon--margin fas fa-' + iconsList[subType] || '';\n    })\n  });\n});","define(\"client/pods/components/contacts/icons/detail-icon/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zRDEWiV/\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[[24,[\\\"iconName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/icons/detail-icon/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-dash/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    isGuest: false,\n    adapterName: 'contacts',\n    selectedStatusKey: null,\n    selectedTagKeys: null,\n    untagSelectedTagKeys: false,\n    init() {\n      this._super(...arguments);\n      this.tabsManager.setHeader(this.tabParent, '');\n      this.crud.addLists(this, ['contacts/lists/tags', 'statuses']);\n      this.set('selectedItems', []);\n      this.set('selectedStatusKey', null);\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n    },\n    // didInsertElement () {\n    //   this._super(...arguments)\n    //   this.tabsManager.setHeader(this.tabParent, '')\n    // },\n\n    actions: {\n      selectItem(item, isSelected) {\n        const selected = this.get('selectedItems') || [];\n        if (isSelected === true) {\n          selected.pushObject(item);\n        } else {\n          selected.removeObject(item);\n        }\n        this.set('selectedItems', selected);\n      },\n      toggleSelectAllItems() {\n        const results = this.filters?.results || [];\n        const selectedItems = this.get('selectedItems') || [];\n        if (selectedItems === results) {\n          this.set('selectedItems', []);\n        } else {\n          this.set('selectedItems', results);\n        }\n      },\n      resetSelectedItems() {\n        this.set('selectedItems', []);\n      },\n      resetSelectedStatusKeyAndSelectedItems() {\n        this.set('selectedStatusKey', null);\n        this.set('selectedItems', []);\n      },\n      resetSelectedTagKeys() {\n        this.set('selectedTagKeys', []);\n        this.set('untagSelectedTagKeys', false);\n      },\n      resetSelectedTagKeysAndSelectedItems() {\n        this.set('selectedTagKeys', []);\n        this.set('untagSelectedTagKeys', false);\n        this.set('selectedItems', []);\n      },\n      resetSelectedTagKeysAndStatusKeyAndSelectedItems() {\n        this.set('selectedStatusKey', null);\n        this.set('selectedTagKeys', []);\n        this.set('untagSelectedTagKeys', false);\n        this.set('selectedItems', []);\n      }\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9ensdzo6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@model\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableClassNames\\\",\\\"@tableViewOptions\\\"],[\\\"contacts/table-view/detail-row\\\",[22,\\\"filters\\\"],[23,0,[\\\"model\\\"]],[23,0,[\\\"onDisplay\\\"]],[23,0,[\\\"onEdit\\\"]],[23,0,[\\\"onDisplay\\\"]],[23,0,[\\\"onReloadSearchRecordsTask\\\"]],[23,0,[\\\"onSearchTask\\\"]],[24,[\\\"filters\\\",\\\"results\\\"]],[23,2,[]],\\\"contacts-dash\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isBulkEditing\\\",\\\"onSelectItem\\\",\\\"onToggleSelectAllItems\\\",\\\"selectedItems\\\"],[\\\"contacts\\\",[28,\\\"if\\\",[[23,0,[\\\"isGuest\\\"]],false,true],null],[28,\\\"action\\\",[[23,0,[]],\\\"selectItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleSelectAllItems\\\"],null],[23,0,[\\\"selectedItems\\\"]]]]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\",\\\"@tagName\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[\\\"results\\\"]],[23,0,[\\\"onPaginationTask\\\"]],true,\\\"span\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@badge\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"filters\\\",\\\"tagsCount\\\"]],[28,\\\"if\\\",[[23,0,[\\\"selectedItems\\\"]],false,true],null],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"additionalData\\\",\\\"allowSubmitWhenEmpty\\\",\\\"appendPath\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"contacts/batch/tags\\\",[28,\\\"hash\\\",null,[[\\\"tags\\\",\\\"untag\\\"],[[23,0,[\\\"selectedTagKeys\\\"]],[23,0,[\\\"untagSelectedTagKeys\\\"]]]]],[23,0,[\\\"selectedTagKeys\\\"]],[28,\\\"concat\\\",[\\\"/batch/tags\\\"],null],[23,0,[\\\"selectedItems\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resetSelectedTagKeysAndSelectedItems\\\"],null]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"resetSelectedTagKeys\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@hasUnsetToggle\\\",\\\"@isDisabledUnsetToggle\\\",\\\"@isModal\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@unsetToggleLabel\\\",\\\"@unsetToggleLabelTranslate\\\",\\\"@unsetToggleValue\\\"],[\\\"contacts/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[[23,0,[\\\"model\\\"]],true,true,\\\"tags\\\",true]]],true,true,true,[28,\\\"if\\\",[[23,0,[\\\"selectedTagKeys\\\"]],false,true],null],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],[23,0,[]],true,\\\"_data._key\\\",[23,2,[]],false,\\\"selectedTagKeys\\\",\\\"untag\\\",true,[23,0,[\\\"untagSelectedTagKeys\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-file-export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"contacts/export-btn\\\",[],[[\\\"@tab\\\",\\\"@label\\\",\\\"@useFilters\\\",\\\"@filters\\\",\\\"@onHideDropdown\\\"],[[23,2,[]],\\\"export all search results\\\",true,[22,\\\"filters\\\"],[23,1,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"contacts/export-btn\\\",[],[[\\\"@tab\\\",\\\"@label\\\",\\\"@onHideDropdown\\\"],[[23,2,[]],\\\"export all\\\",[23,1,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"selectedItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"selected items\\\"],null],false],[0,\\\":\\\\n\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-badge\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"count\\\",[[23,0,[\\\"selectedItems\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"resetSelectedTagKeysAndStatusKeyAndSelectedItems\\\"]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/component\", [\"exports\", \"client/mixins/crud\", \"client/utils/nventor\", \"ramda\", \"ramda-extension\"], function (_exports, _crud, _nventor, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    adapterName: 'contacts',\n    errorMsg: Ember.computed(function () {\n      return this.intl.t('error occurred please try again later');\n    }),\n    init() {\n      this._super(...arguments);\n      const model = this.get('tab.model');\n      this.set('model', model);\n      this.tabsManager.setHeader(this.tabParent, model.getData('name'));\n      this.crud.addLists(this, ['taxes', 'statuses', 'contacts/lists/relationships', 'contacts/lists/tags', 'contacts/lists/panels', 'contacts/lists/allowed-payment-method', 'dispatch/lists/processes', 'documents/lists/types/purchases', 'documents/lists/types/sales']);\n    },\n    panelsList: Ember.computed('model.{hasSales,hasPurchases}', 'crud.lists.contacts-lists-panels.[]', function () {\n      let panels = [];\n      let allowedPaymentMethodForStatement = [];\n      const model = this.model;\n      const salesPaymentMethodKey = model.getData('salesPaymentMethodKey');\n      const purchasesPaymentMethodKey = model.getData('purchasesPaymentMethodKey');\n      const isAssociates = model.getData('isAssociates');\n      // @TODO: Make easier to change in the future\n      // @TODO: make statement for other payment method. ignore for now\n\n      panels = R_.dotPath('crud.lists.contacts-lists-panels')(this) || [];\n      allowedPaymentMethodForStatement = R.pipe(R_.dotPathOr([], 'crud.lists.contacts-lists-allowed-payment-method'), R.pluck('_data'))(this);\n      if (!R.isEmpty(panels)) {\n        if (!R.includes(salesPaymentMethodKey, allowedPaymentMethodForStatement)) {\n          panels = R.reject(R.pathEq(['_data', 'label'], 'customer statements'))(panels);\n        }\n        if (!R.includes(purchasesPaymentMethodKey, allowedPaymentMethodForStatement) && !isAssociates) {\n          panels = R.reject(R.pathEq(['_data', 'label'], 'supplier reconciliations'))(panels);\n        }\n      }\n      return panels;\n    }),\n    /**\n     * dynamically determine classname for status tag.\n     * green if active, otherwise gray for inactive\n     */\n    statusTagClassName: Ember.computed('model._data.status', function () {\n      const status = this.get('model._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    }),\n    editPanel() {\n      const tab = this.tab;\n      const activeSubTab = this.tabsManager.getActiveSubTab(tab);\n      const tabOptions = {};\n      if (activeSubTab?.component) {\n        tabOptions.loadInstructions = {\n          component: activeSubTab.get('component')\n        };\n      }\n      this.onEdit(this.model, {\n        tabOptions,\n        tab\n      });\n    }\n  }, _applyDecoratedDescriptor(_obj, \"editPanel\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"editPanel\"), _obj), _obj));\n});","define(\"client/pods/components/contacts/panels-display/info-header/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['taxes', 'statuses', 'contacts/lists/relationships', 'contacts/lists/tags', 'contacts/lists/panels']);\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/info-header/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"s0YlyavE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"alias\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"aliases\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"aliases\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t(\\\"],[1,[23,1,[]],false],[0,\\\")\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"model\\\",\\\"iconOnly\\\"],[[24,[\\\"model\\\"]],true]]],false],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-relationships\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"relationships\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],false,[24,[\\\"model\\\",\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isBigOrdrMember\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-bigordr-customer\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"bigordr customer\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlan\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t(\\\"],[1,[28,\\\"date\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]]],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"memberId\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"btns-seperator\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"member\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"memberEmail\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"memberEmail\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"memberId\\\"]],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"btns-seperator\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"member\\\",\\\"facebookMemberId\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-facebook\\\"],[8],[1,[28,\\\"tt\\\",[\\\"facebook\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"member\\\",\\\"lineMemberId\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-line\\\"],[8],[1,[28,\\\"tt\\\",[\\\"line\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"member\\\",\\\"facebookMemberId\\\"]]],null],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"member\\\",\\\"lineMemberId\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-bigordr\\\"],[8],[1,[28,\\\"tt\\\",[\\\"bigordr\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"btns-seperator\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"gender\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"gender\\\"]],\\\"male\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-person\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"male\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"gender\\\"]],\\\"female\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-person-dress\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"female\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"gender\\\"]],\\\"other\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-person\\\"],[8],[9],[0,\\\" \\\"],[1,[24,[\\\"model\\\",\\\"otherGender\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"age\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"age\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"years_old\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"birthday\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-cake-candles\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"date\\\",[[24,[\\\"model\\\",\\\"birthday\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"hasSales\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag u-margin-left-7 is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"not member\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-display/info-header/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-activity/component\", [\"exports\", \"ramda\", \"client/mixins/date\", \"client/mixins/crud\", \"client/mixins/doc-status\"], function (_exports, R, _date, _crud, _docStatus) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _docStatus.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      const docType = this.get('tab.docType');\n      this.set('docType', docType);\n      this.crud.addLists(this, ['dispatch/lists/processes', 'documents/lists/types/sales', 'documents/lists/types/purchases']);\n    },\n    docTypesList: Ember.computed('docType', 'crud.lists.{documents-lists-types-sales.[],documents-lists-types-purchases.[]}', 'model._data.relationships.[]', function () {\n      const docType = this.docType;\n      const docTypesList = this.crud.lists[`documents-lists-types-${docType}`] || [];\n      const relationships = this?.model?._data?.relationships || [];\n      return R.pipe(R.map(resourceData => {\n        const docType = resourceData.getData('docType');\n        const docName = resourceData.getData('docName');\n        if (R.equals(R.length(relationships), 1)) {\n          const relationship = R.head(relationships);\n          const allowedDocName = ['invoices', 'returns'];\n          if (R.equals(relationship, 'customer') && R.equals(docType, 'purchases') && !R.includes(docName, allowedDocName)) {\n            return false;\n          }\n          if (R.equals(relationship, 'supplier') && R.equals(docType, 'sales') && !R.includes(docName, allowedDocName)) {\n            return false;\n          }\n        }\n        resourceData.setData('tabType', 'replaceSubTab');\n        resourceData.setData('id', `${docType}-${docName}`);\n        resourceData.setData('component', 'contacts/panels-display/sub-panels-activity/sub-panels-activity-doc');\n        return resourceData;\n      }), R.reject(R.equals(false)))(docTypesList);\n    })\n  });\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-activity/sub-panels-activity-doc/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/settings\", \"client/mixins/crud\", \"client/mixins/doc-list-by\", \"ember-concurrency\"], function (_exports, _date, _settings, _crud, _docListBy, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _docListBy.default, _settings.default, {\n    crud: Ember.inject.service(),\n    filtersAdapterName: 'contacts/activity/filters',\n    init() {\n      this._super(...arguments);\n      const docType = this.get('tab.docType');\n      const docName = this.get('tab.docName');\n      this.set('docType', docType);\n      this.set('docName', docName);\n      this.set('adapterName', `documents/${docType}/${docName}`);\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      const count = this.count;\n      this.set('count', count);\n      const model = this.model;\n      const contactKey = model.getData('_key');\n      const contact = model.getData('name');\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      this.fetchDataTask.perform({\n        contactKey,\n        contact\n      });\n    },\n    fetchDataTask: (0, _emberConcurrency.task)(function* ({\n      contactKey,\n      contact,\n      dateStart,\n      dateEnd\n    }) {\n      const filters = this.filters;\n      const results = yield this.listByTask.perform({\n        adapterName: this.adapterName,\n        filters,\n        contactKey,\n        contact,\n        dateStart,\n        dateEnd\n      });\n      this.set('results', results);\n    }),\n    actions: {\n      displayByMonth(period) {\n        const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n        const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n        const model = this.model;\n        const contactKey = model.getData('_key');\n        const contact = model.getData('name');\n        this.fetchDataTask.perform({\n          contactKey,\n          contact,\n          dateStart,\n          dateEnd\n        });\n      },\n      displayByCustomMonth() {\n        const dateEndString = this.customDateEndZ;\n        const dateStartString = this.customDateStartZ;\n        let dateEnd;\n        let dateStart;\n        if (dateEndString) {\n          if (!dateStartString) {\n            const dateEndObj = this.getMonthEnd(dateEndString);\n            dateStart = this.formatDateForUrl(dateEndObj.startOf('month'));\n            dateStart = this.getStartOfDayZ(dateStart);\n            dateEnd = dateEndString;\n          } else {\n            if (dateStartString > dateEndString) {\n              dateEnd = dateStartString;\n              dateStart = dateEndString;\n            } else {\n              dateEnd = dateEndString;\n              dateStart = dateStartString;\n            }\n          }\n          const model = this.model;\n          const contactKey = model.getData('_key');\n          const contact = model.getData('name');\n          this.fetchDataTask.perform({\n            contactKey,\n            contact,\n            dateStart,\n            dateEnd\n          });\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-activity/sub-panels-activity-doc/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FV3w+PXi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"period\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-3 u-margin-right-3\\\"],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"is-primary u-margin-left-3\\\",[23,0,[\\\"fetchDataTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustomMonth\\\"],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,1,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"documents/activity-list-by-contact\\\",null,[[\\\"results\\\",\\\"onPaginationTask\\\",\\\"lastSearchSettings\\\",\\\"filters\\\"],[[24,[\\\"results\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"filters\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-display/sub-panels-activity/sub-panels-activity-doc/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nE9drysv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,2,[]],[23,2,[\\\"subTabs\\\"]],[23,3,[]],[23,0,[\\\"docTypesList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,2,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"errors\\\",\\\"model\\\",\\\"tab\\\"],[[23,3,[]],[23,4,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-display/sub-panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-details/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    contactsService: Ember.inject.service('contacts'),\n    adapterName: 'contacts',\n    editAction: 'edit',\n    updateAction: 'update',\n    dashAction: 'dash',\n    showDetailEditor: false,\n    hideSupplierPassword: true,\n    errorMsg: Ember.computed(function () {\n      return this.intl.t('error occurred please try again later');\n    }),\n    init: function () {\n      this._super(...arguments);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/commission-types', 'contacts/lists/detailTypes', 'contacts/lists/filters/doc-totals/props', 'contacts/lists/panels', 'contacts/lists/relationships', 'statuses', 'taxes']);\n    },\n    supplierPasswordInputType: Ember.computed('hideSupplierPassword', function () {\n      return this.hideSupplierPassword ? 'password' : 'text';\n    }),\n    supplierPasswordInputRightIcon: Ember.computed('hideSupplierPassword', function () {\n      return this.hideSupplierPassword ? 'fas fa-eye' : 'fas fa-eye-slash';\n    }),\n    toggleSupplierPortalPassword() {\n      this.set('hideSupplierPassword', !this.hideSupplierPassword);\n    },\n    setAssociatesDefaults() {\n      const model = this.model;\n      model.setData('selectedCommissionBaseCostMethod', 'normalPercent');\n      model.setData('isCommissionsUsingAverage', true);\n      model.setData('isCommissionsCalculatedByExclAmt', true);\n      model.setData('isCommissionsUsingSetChild', false);\n      model.setData('isCommissionsHasAdjustedShippingFee', false);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleSupplierPortalPassword\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleSupplierPortalPassword\"), _obj), _applyDecoratedDescriptor(_obj, \"setAssociatesDefaults\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"setAssociatesDefaults\"), _obj), _obj));\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7y7SIYqx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"portalUser\\\",\\\"@model\\\",\\\"@onDisplay\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@isReadonly\\\",\\\"@errors\\\"],\\\"statements\\\":[[4,\\\"forms/grid-container\\\",null,[[\\\"classNames\\\"],[\\\"form-grid--2 form-grid--contacts\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group-header level\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-left\\\"],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-right\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isPreview\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"contacts/contacts-editor/add-btn\\\",null,[[\\\"allowAddMultiplePickupLocations\\\",\\\"tab\\\",\\\"model\\\",\\\"parent\\\",\\\"hasAddDepartment\\\",\\\"hasAddPerson\\\",\\\"hasAddDetails\\\",\\\"hasPickupLocations\\\"],[true,[24,[\\\"tab\\\"]],[24,[\\\"model\\\"]],[24,[\\\"model\\\"]],true,true,true,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__main u-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"value\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"code\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]],\\\"code\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-detail__container\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"value\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"description\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]],\\\"description\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-detail__container\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[1,[28,\\\"contacts/details/display-details\\\",null,[[\\\"isPreview\\\",\\\"model\\\",\\\"parent\\\"],[[24,[\\\"isPreview\\\"]],[24,[\\\"model\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"contacts/persons/display-persons\\\",null,[[\\\"model\\\",\\\"parent\\\",\\\"isPreview\\\"],[[24,[\\\"model\\\"]],[24,[\\\"model\\\"]],[24,[\\\"isPreview\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"contacts/departments/display-departments\\\",null,[[\\\"isPreview\\\",\\\"model\\\"],[[24,[\\\"isPreview\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isTransporter\\\"]],\\\"on\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group-header level\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"additional information\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__main u-container u-height-max-content\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@value\\\",\\\"@documentationResource\\\"],[\\\"auto link member\\\",\\\"isAllowedLinkMember\\\",[23,2,[\\\"_data\\\",\\\"isAllowedLinkMember\\\"]],\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,2,[\\\"_data\\\",\\\"isAllowedLinkMember\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"value\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"birthday\\\",[28,\\\"date\\\",[[24,[\\\"model\\\",\\\"birthday\\\"]]],null],\\\"birthday\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-detail__container\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[28,\\\"date\\\",[[24,[\\\"model\\\",\\\"birthday\\\"]]],null]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"rowClassNames\\\",\\\"translate\\\",\\\"label\\\",\\\"value\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"u-margin-bottom-0\\\",true,\\\"gender\\\",[24,[\\\"model\\\",\\\"gender\\\"]],\\\"gender\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-detail__container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"gender\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[28,\\\"tt\\\",[[24,[\\\"model\\\",\\\"gender\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"gender\\\"]],\\\"other\\\"],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"rowClassNames\\\",\\\"formInputClassNames\\\",\\\"label\\\",\\\"value\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"u-margin-top-0\\\",\\\"u-padding-top-0\\\",\\\"\\\",[24,[\\\"model\\\",\\\"otherGender\\\"]],\\\"otherGender\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-detail__container u-margin-top-0 u-padding-top-0\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"model\\\",\\\"otherGender\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isTestContact\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"test user\\\",[23,7,[]],\\\"isTestContact\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,2,[\\\"_data\\\",\\\"isTestContact\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isBlackListed\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@value\\\"],[\\\"black list\\\",\\\"isBlackListed\\\",[23,2,[\\\"_data\\\",\\\"isBlackListed\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,2,[\\\"_data\\\",\\\"isBlackListed\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@value\\\"],[\\\"black list reason\\\",\\\"blackListedReason\\\",[23,2,[\\\"_data\\\",\\\"blackListedReason\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@value\\\"],[true,[23,2,[\\\"_data\\\",\\\"blackListedReason\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.allowSupplierPortal\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"hasPurchases\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group-header level\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"supplier portal\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__main u-container u-height-max-content\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"allowSupplierPortal\\\",\\\"allow access to supplier portal\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"toggleValue\\\",\\\"disabled\\\"],[[23,2,[\\\"_data\\\",\\\"allowSupplierPortal\\\"]],true]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"allowSupplierPortal\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"supplierPortalUsers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-sub-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"supplierPortalUsers.supplierPortalEmail\\\",[22,\\\"formInitData\\\"],\\\"supplier portal login email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,1,[\\\"_data\\\",\\\"supplierPortalEmail\\\"]],true]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"supplierPortalUsers.supplierPortalPassword\\\",[22,\\\"formInitData\\\"],\\\"supplier portal password (minimum 8 characters)\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@type\\\",\\\"@hasRightBtn\\\",\\\"@rightBtnIcon\\\",\\\"@onSubmit\\\"],[true,[23,1,[\\\"_data\\\",\\\"supplierPortalPassword\\\"]],[23,0,[\\\"supplierPasswordInputType\\\"]],true,[23,0,[\\\"supplierPasswordInputRightIcon\\\"]],[23,0,[\\\"toggleSupplierPortalPassword\\\"]]]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"supplierPortalUsers.supplierPortalExpiryDateZ\\\",[22,\\\"formInitData\\\"],\\\"supplier portal login expiration date (optional)\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.supplierPortalExpiryDateZ\\\",[23,1,[]],[23,1,[\\\"_data\\\",\\\"supplierPortalExpiryDateZ\\\"]],true]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\"],[\\\"allowSupplierPortal\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\"],[\\\"fas fa-envelope\\\",\\\"send email\\\",[23,6,[]],[28,\\\"perform\\\",[[23,0,[\\\"contactsService\\\",\\\"notifySupplierTask\\\"]],[23,2,[]],[23,1,[]]],null],[23,0,[\\\"contactsService\\\",\\\"notifySupplierTask\\\",\\\"isRunning\\\"]],true,\\\"are you sure you want to send an email to the supplier\\\",true]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"isBigOrdr\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group-header level\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"bigordr\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__main u-container u-height-max-content\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"contacts/bigordr-plan-editor\\\",[],[[\\\"@model\\\",\\\"@onDisplay\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"contacts\\\",[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-panels\\\"]],[23,5,[]]]]],true]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isAssociates\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group-header level\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"associates\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__main u-container u-height-max-content\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"contacts/details/associates\\\",[],[[\\\"@model\\\",\\\"@isEditing\\\",\\\"@onSetAssociatesDefaults\\\",\\\"@commissionTypeList\\\"],[[23,0,[\\\"model\\\"]],false,[28,\\\"fn\\\",[[23,0,[\\\"setAssociatesDefaults\\\"]]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-types\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"contacts/contacts-info-accordian\\\",null,[[\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"model\\\",\\\"tab\\\",\\\"formInitData\\\"],[true,true,[24,[\\\"model\\\"]],[24,[\\\"tab\\\"]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"contacts\\\",[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-panels\\\"]],[23,5,[]]]]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-display/sub-panels-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-member-levels/adjust-member-level-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9xDvkB/V\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-display/sub-panels-member-levels/adjust-member-level-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-member-levels/adjust-reward-dialog/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ContactsPanelsDisplaySubPanelsMemberLevelsAdjustMemberLevelDialogComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._action, _dec19 = Ember._action, _class = class ContactsPanelsDisplaySubPanelsMemberLevelsAdjustMemberLevelDialogComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"date\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedMemberLevel\", _descriptor7, this);\n      _initializerDefineProperty(this, \"adjustedMemberLevelPoints\", _descriptor8, this);\n      _initializerDefineProperty(this, \"memberLevelExpiryDateZ\", _descriptor9, this);\n      _initializerDefineProperty(this, \"points\", _descriptor0, this);\n      _initializerDefineProperty(this, \"pointsExpiryTime\", _descriptor1, this);\n      _initializerDefineProperty(this, \"pointsExpiryPeriod\", _descriptor10, this);\n      _initializerDefineProperty(this, \"sendEmail\", _descriptor11, this);\n      _initializerDefineProperty(this, \"rewardEvent\", _descriptor12, this);\n      _initializerDefineProperty(this, \"rewardKey\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedRewardData\", _descriptor14, this);\n      _initializerDefineProperty(this, \"memberLevelPointsToAdd\", _descriptor15, this);\n      _initializerDefineProperty(this, \"useDefaultMessage\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isSetByMemberLevelPoints\", _descriptor17, this);\n      this.crud.addLists(this, ['channels/shop/rewards']);\n    }\n    afterLoadLists() {\n      const contactReward = this.args.contactReward || {};\n      if (RA.isNilOrEmpty(contactReward)) {\n        const activeRewardsList = this?.activeRewardsList || [];\n        if (R.length(activeRewardsList) == 1) {\n          const selectedReward = R.head(activeRewardsList);\n          const rewardKey = R.pathOr('', ['_data', '_key'])(selectedReward);\n          Ember.set(this, 'selectedRewardData', selectedReward);\n          Ember.set(this, 'rewardKey', rewardKey);\n        }\n      }\n    }\n    get isDisabled() {\n      const type = this.args.type;\n      const memberLevelExpiryDateZ = this.memberLevelExpiryDateZ;\n      const currentMemberLevel = this.currentMemberLevel;\n      const selectedMemberLevelId = this.selectedMemberLevelId;\n      const isSetByMemberLevelPoints = this.isSetByMemberLevelPoints;\n      const contactReward = this?.args?.contactReward || {};\n      const rewardKey = this.rewardKey || '';\n      const points = this.points || 0;\n      const pointsExpiryTime = this.pointsExpiryTime;\n      if (type === 'member level') {\n        if (!selectedMemberLevelId || !memberLevelExpiryDateZ) {\n          return true;\n        }\n        if (!isSetByMemberLevelPoints && currentMemberLevel?.memberLevelId === selectedMemberLevelId) {\n          return true;\n        }\n      }\n      if (type === 'points') {\n        if (RA.isNilOrEmpty(contactReward) && !rewardKey) {\n          return true;\n        }\n        if (Number(points) === 0 || Number(pointsExpiryTime) === 0) {\n          return true;\n        }\n      }\n      return false;\n    }\n    get memberLevelsList() {\n      let memberLevels = this?.args?.contactReward?.rewardData?.memberLevels || [];\n\n      // used when contact doesnt have contact reward data\n      const selectedRewardData = this.selectedRewardData;\n      if (RA.isNilOrEmpty(memberLevels) && RA.isNotNilOrEmpty(selectedRewardData)) {\n        memberLevels = selectedRewardData?._data?.memberLevels || [];\n      }\n\n      // currently remove memberLevels with productTags\n      memberLevels = R.reject(memberLevel => {\n        const productTags = memberLevel?._data?.productTags || [];\n        if (RA.isNotNilOrEmpty(productTags)) {\n          return true;\n        }\n        return false;\n      })(memberLevels);\n      const memberLevelsModel = R.map(memberLevel => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'channels/shop/rewards/member-levels',\n          data: memberLevel\n        });\n      })(memberLevels);\n      return memberLevelsModel;\n    }\n    get rewardTypes() {\n      const rewardTypesList = this.crud.lists['channels-shop-rewards-types'] || [];\n      const rewardTypesListClone = R.concat(rewardTypesList, []);\n      if (RA.isNotNilOrEmpty(rewardTypesListClone)) {\n        return R.pipe(R.filter(rewardType => {\n          const type = R.pathOr('', ['_data', 'value'])(rewardType);\n          return R.includes(type, [this.constants.rewardEvents.birthday,\n          // this.constants.rewardEvents.promotion,\n          // this.constants.rewardEvents.opening,\n          this.constants.rewardEvents.pointsAdjustment]);\n        }), R.sortWith([R.descend(R.path(['_data', 'value']))]))(rewardTypesListClone);\n      }\n      return [];\n    }\n    get currentMemberLevel() {\n      let currentMemberLevel = this?.args?.contactReward?.level || {};\n      const selectedRewardData = this.selectedRewardData;\n      if (RA.isNilOrEmpty(currentMemberLevel) && RA.isNotNilOrEmpty(selectedRewardData)) {\n        const rewardData = selectedRewardData.serialize();\n        currentMemberLevel = R.pipe(R.propOr([], 'memberLevels'), R.find(memberLevel => {\n          const requiredLevelPoints = memberLevel.requiredLevelPoints || 0;\n          if (Number(requiredLevelPoints) === 0) {\n            return true;\n          }\n        }))(rewardData);\n      }\n      return currentMemberLevel;\n    }\n    get selectedMemberLevelRequiredLevelPoints() {\n      const selectedMemberLevel = this.selectedMemberLevel || {};\n      if (RA.isNotNilOrEmpty(selectedMemberLevel)) {\n        return selectedMemberLevel?.requiredLevelPoints || 0;\n      }\n      return 0;\n    }\n    get addedMemberLevelPoints() {\n      const currentMemberLevel = this.currentMemberLevel || {};\n      const currentMemberLevelPoints = currentMemberLevel?.points || 0;\n      const memberLevelPointsToAdd = this.memberLevelPointsToAdd || 0;\n      return R.add(currentMemberLevelPoints, memberLevelPointsToAdd);\n    }\n    get activeRewardsList() {\n      const rewards = this.crud.lists['channels-shop-rewards'] || [];\n      return R.filter(R.pathEq(['_data', 'status'], 'active'))(rewards) || [];\n    }\n    *sendRewardTask(onCloseDialogAction) {\n      const type = this.args.type;\n      const contactReward = this?.args?.contactReward || {};\n      const contactModel = this?.args?.contactModel || {};\n      let rewardData = contactReward?.rewardData || {};\n      if (RA.isNilOrEmpty(rewardData) && this.selectedRewardData) {\n        try {\n          rewardData = this.selectedRewardData.serialize();\n        } catch (error) {\n          console.error(error);\n        }\n      }\n      const level = this.currentMemberLevel;\n      const contactKey = contactModel.getData('_key');\n      const memberId = contactModel.getData('memberId');\n      const rewardKey = this?.rewardKey || rewardData?._key;\n      const rewardName = rewardData?.name;\n      const sendEmail = this.sendEmail;\n      const useDefaultMessage = this.useDefaultMessage;\n      const adjustmentEmailSubject = this.adjustmentEmailSubject || '';\n      const adjustmentEmailMessage = this.adjustmentEmailMessage || '';\n      if (type === 'member level') {\n        const selectedMemberLevelId = this.selectedMemberLevelId;\n        const adjustedMemberLevelPoints = this.adjustedMemberLevelPoints || 0;\n        const memberLevelExpiryDateZ = this.memberLevelExpiryDateZ;\n        const startDateZ = this.date.getToday().subtract(1, 'days').toISOString();\n        const expireDateZ = this.date.getEndOfDay().subtract(1, 'days').toISOString();\n        let memberLevelPoints = this.selectedMemberLevelRequiredLevelPoints;\n        if (this.isSetByMemberLevelPoints) {\n          memberLevelPoints = this.addedMemberLevelPoints;\n        }\n        const payload = {\n          memberLevelData: {\n            contactKey,\n            rewardKey,\n            memberLevelId: selectedMemberLevelId,\n            levelExpiryDateZ: memberLevelExpiryDateZ,\n            timestampZ_active: this.date.getStartOfDayZ(),\n            points: memberLevelPoints\n          },\n          contactRewardData: {\n            contactKey,\n            memberId,\n            rewardKey,\n            method: 'earn',\n            name: rewardName,\n            type: 'memberLevelAdjustment',\n            points: adjustedMemberLevelPoints,\n            levelPoints: adjustedMemberLevelPoints,\n            startDateZ,\n            expireDateZ,\n            dateZ: startDateZ,\n            isCalculatedForMemberLevel: true,\n            isNeverExpire: false\n          },\n          sendEmail,\n          useDefaultMessage,\n          adjustmentEmailSubject,\n          adjustmentEmailMessage\n        };\n        const response = yield this.server.call('POST', 'api/protected/contacts/rewards/adjust/member-level', payload);\n        if (response.data) {\n          onCloseDialogAction();\n          window.alert(this.intl.t('sent_member_level_adjustment'));\n        }\n      }\n      if (type === 'points') {\n        const rewardEvent = this.rewardEvent;\n        const points = this.points || 0;\n        const pointsExpiryTime = this.pointsExpiryTime || 1;\n        const pointsExpiryPeriod = this.pointsExpiryPeriod || 'days';\n        const payload = {\n          contactRewardData: {\n            contactKey,\n            memberId,\n            rewardKey,\n            method: 'earn',\n            name: rewardName,\n            type: rewardEvent,\n            points,\n            startDateZ: this.date.getStartOfDayZ(),\n            expireDateZ: this.date.getEndOfDay().add(pointsExpiryTime, pointsExpiryPeriod).toISOString(),\n            dateZ: this.date.getStartOfDayZ(),\n            isCalculatedForMemberLevel: false,\n            isNeverExpire: false\n          },\n          sendEmail,\n          useDefaultMessage,\n          adjustmentEmailSubject,\n          adjustmentEmailMessage\n        };\n\n        // when contact doenst have contact reward data, need to set member level\n        if (RA.isNilOrEmpty(contactReward)) {\n          payload.memberLevelData = {\n            contactKey,\n            rewardKey,\n            memberLevelId: level.memberLevelId,\n            levelExpiryDateZ: this.memberLevelExpiryDateZ,\n            points: 0\n          };\n        }\n        const response = yield this.server.call('POST', 'api/protected/contacts/rewards/adjust/points', payload);\n        if (response.data) {\n          // fetch reward if rewardHistory is displayed\n          if (this?.args?.isShowHistory) {\n            this.args.onAfterAdjustPointsTask();\n          }\n          onCloseDialogAction();\n          window.alert(this.intl.t('sent_valid_points_adjustment'));\n        }\n      }\n    }\n    onChangeMemberLevel(selectedItem) {\n      let selectedMemberLevel = {};\n      let adjustedMemberLevelPoints = 0;\n      const currentMemberLevel = this.currentMemberLevel;\n      const addedMemberLevelPoints = this.addedMemberLevelPoints;\n      if (this.isSetByMemberLevelPoints) {\n        const contactReward = this?.args?.contactReward || {};\n        const rewardData = contactReward.rewardData || this.selectedRewardData.serialize() || {};\n        selectedMemberLevel = R.pipe(R.propOr([], 'memberLevels'), R.sortWith([R.descend(R.prop('requiredLevelPoints'))]), R.find(memberLevel => {\n          const requiredLevelPoints = Number(memberLevel?.requiredLevelPoints) || 0;\n          return R.lte(requiredLevelPoints)(addedMemberLevelPoints);\n        }))(rewardData) || {};\n        adjustedMemberLevelPoints = Number(selectedItem); // memberLevelPoints before added with current points\n\n        Ember.set(this, 'selectedMemberLevelId', selectedMemberLevel.memberLevelId);\n      } else {\n        selectedMemberLevel = selectedItem?._data || {};\n        const currentMemberLevelPoints = currentMemberLevel?.points || 0;\n        const selectedMemberLevelRequiredLevelPoints = selectedMemberLevel?.requiredLevelPoints || 0;\n        adjustedMemberLevelPoints = Number(selectedMemberLevelRequiredLevelPoints) - Number(currentMemberLevelPoints) || 0;\n      }\n      Ember.set(this, 'selectedMemberLevel', selectedMemberLevel);\n      const expiryTime = R.propOr(1, 'expiryTime')(selectedMemberLevel);\n      const expiryPeriod = R.propOr('years', 'expiryPeriod')(selectedMemberLevel);\n      const memberLevelExpiryDateZ = this.date.getEndOfDay().add(expiryTime, expiryPeriod).toISOString();\n      Ember.set(this, 'memberLevelExpiryDateZ', memberLevelExpiryDateZ);\n      Ember.set(this, 'memberLevelExpiryDate', this.date.formatDate(memberLevelExpiryDateZ, 'YYYY-MM-DD'));\n      Ember.set(this, 'adjustedMemberLevelPoints', adjustedMemberLevelPoints);\n    }\n    onSelectRewards(selectedItem) {\n      this.selectedRewardData = selectedItem;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedMemberLevel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"adjustedMemberLevelPoints\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"memberLevelExpiryDateZ\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"points\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"pointsExpiryTime\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"pointsExpiryPeriod\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.constants.timePeriods.months;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"sendEmail\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"rewardEvent\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'pointsAdjustment';\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"rewardKey\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"selectedRewardData\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"memberLevelPointsToAdd\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"useDefaultMessage\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isSetByMemberLevelPoints\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"sendRewardTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"sendRewardTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeMemberLevel\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeMemberLevel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectRewards\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectRewards\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-member-levels/adjust-reward-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TZCav+8G\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@contactReward\\\",\\\"@type\\\",\\\"@isRunning\\\",\\\"@onCloseDialogAction\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table table-member-level\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member level\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\":\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[23,4,[\\\"level\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member level points\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\":\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,4,[\\\"level\\\",\\\"points\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"valid points\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\":\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,4,[\\\"pointsData\\\",\\\"validPoints\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"pending points\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\":\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,4,[\\\"pointsData\\\",\\\"pendingPoints\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"sendRewardTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"reward\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"activeRewardsList\\\"]],\\\"_data._key\\\",[23,2,[]],\\\"_data.name\\\",[23,0,[\\\"rewardKey\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectRewards\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[]],\\\"points\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\"],[\\\"points to adjust\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,2,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"points\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\"],[\\\"points expiry time\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,2,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"pointsExpiryTime\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@onChange\\\",\\\"@value\\\"],[true,[23,2,[]],[23,2,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-rewards-periods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"\\\",[23,0,[\\\"pointsExpiryPeriod\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\"],[\\\"reward event type\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"rewardTypes\\\"]],\\\"_data.value\\\",[23,2,[]],\\\"_data.label\\\",[23,0,[\\\"rewardEvent\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[]],\\\"member level\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@errors\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@label\\\"],[[23,0,[\\\"isSetByMemberLevelPoints\\\"]],\\\"set member level by value\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isSetByMemberLevelPoints\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@description\\\",\\\"@translateDescription\\\"],[\\\"member level points\\\",[23,1,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"added member level points will be added to current member level points\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"addedMemberLevelPoints\\\"]]]]],\\\")\\\"],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\"],[[23,2,[]],[23,0,[\\\"memberLevelPointsToAdd\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onChangeMemberLevel\\\"]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@description\\\",\\\"@translateDescription\\\"],[\\\"member level\\\",[23,1,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"member level points will be set to member level minimum points\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"selectedMemberLevelRequiredLevelPoints\\\"]]]]],\\\")\\\"],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,true,[23,2,[]],[23,2,[]],[23,0,[\\\"memberLevelsList\\\"]],\\\"_data.memberLevelId\\\",\\\"_data.name\\\",[23,0,[\\\"selectedMemberLevelId\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onChangeMemberLevel\\\"]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\"],[\\\"member level expiry date\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"memberLevelExpiryDateZ\\\",[23,0,[]],[23,0,[\\\"memberLevelExpiryDateZ\\\"]],[23,2,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@errors\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"send email\\\",[23,0,[\\\"sendEmail\\\"]],[23,2,[]],true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"sendEmail\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@errors\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"use default message in settings\\\",[23,0,[\\\"useDefaultMessage\\\"]],[23,2,[]],true,false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"useDefaultMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\"],[\\\"email subject\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,0,[\\\"adjustmentEmailSubject\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\"],[\\\"email message\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,3,[]],true,true,[23,2,[]],[23,0,[\\\"adjustmentEmailMessage\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,6,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"send\\\",[23,0,[\\\"isDisabled\\\"]],[23,0,[\\\"sendRewardTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"sendRewardTask\\\"]],[23,7,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-display/sub-panels-member-levels/adjust-reward-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-member-levels/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ContactsPanelsDisplaySubPanelsMemberLevelsComponent = _exports.default = (_dec = Ember.inject.service('date'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._action, _class = class ContactsPanelsDisplaySubPanelsMemberLevelsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dateService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"contactRewardData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isShowHistory\", _descriptor5, this);\n      _initializerDefineProperty(this, \"levelChanges\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedMonths\", _descriptor7, this);\n      _initializerDefineProperty(this, \"rewardHistory\", _descriptor8, this);\n      _initializerDefineProperty(this, \"nextExpirePoints\", _descriptor9, this);\n      _initializerDefineProperty(this, \"openingPoints\", _descriptor0, this);\n      _initializerDefineProperty(this, \"currentPoints\", _descriptor1, this);\n      _initializerDefineProperty(this, \"pendingPoints\", _descriptor10, this);\n      _initializerDefineProperty(this, \"currentLevel\", _descriptor11, this);\n      _initializerDefineProperty(this, \"currentLevelPoints\", _descriptor12, this);\n      _initializerDefineProperty(this, \"selectedRewardKey\", _descriptor13, this);\n    }\n    *fetchContactRewardHistoryTask({\n      rewardKey\n    }) {\n      if (RA.isNotNilOrEmpty(rewardKey)) {\n        const model = this.args.model;\n        const contactKey = model.getData('_key');\n        let startDateZ = '';\n        let endDateZ = '';\n        const selectedMonths = this.selectedMonths;\n        if (parseInt(selectedMonths) > 0) {\n          startDateZ = this.dateService.getMoment().subtract(selectedMonths, 'months').toISOString();\n          endDateZ = this.dateService.getMoment().toISOString();\n        }\n        const contact = yield this.crud.findTask.perform({\n          adapterName: 'contacts/rewards',\n          appendPath: contactKey,\n          params: {\n            rewardKey,\n            startDateZ,\n            endDateZ\n          }\n        });\n        const contactRewardsData = contact.getData('pointsData') || {};\n        const selectedRewardKey = R.propOr('', 'rewardKey')(contactRewardsData);\n        const currentPoints = R.propOr(0, 'validPoints')(contactRewardsData);\n        const pendingPoints = R.propOr(0, 'pendingPoints')(contactRewardsData);\n        const currentLevel = R.propOr(0, 'memberLevel')(contactRewardsData);\n        const currentLevelPoints = contactRewardsData?.memberLevelPoints || 0;\n        let rewardHistory = R.propOr([], 'rewardHistory')(contactRewardsData);\n        const nextExpirePoints = R.find(R.propEq('isExpireSoon', true))(rewardHistory);\n        const openingPoints = R.find(R.propEq('isOpening', true))(rewardHistory);\n        rewardHistory = R.reject(R.propEq('isOpening', true))(rewardHistory);\n        rewardHistory = R.map(contactReward => {\n          const levelPoints = Number(contactReward?.levelPoints) || 0;\n          const points = Number(contactReward?.points) || 0;\n          if (levelPoints !== 0 || points !== 0) {\n            contactReward.isShow = true;\n          }\n          return contactReward;\n        })(rewardHistory);\n        Ember.set(this, 'rewardHistory', rewardHistory);\n        Ember.set(this, 'nextExpirePoints', nextExpirePoints);\n        Ember.set(this, 'openingPoints', openingPoints);\n        Ember.set(this, 'currentPoints', currentPoints);\n        Ember.set(this, 'pendingPoints', pendingPoints);\n        Ember.set(this, 'currentLevel', currentLevel);\n        Ember.set(this, 'currentLevelPoints', currentLevelPoints);\n        Ember.set(this, 'selectedRewardKey', selectedRewardKey);\n      }\n    }\n    *onSubmitShowRewardHistoryTask(rewardKey) {\n      Ember.set(this, 'isShowHistory', true);\n      yield this.fetchContactRewardHistoryTask.perform({\n        rewardKey\n      });\n    }\n    *onSubmitGetRewardHistoryTask() {\n      // const model = this.args.model\n      const rewardKey = this.selectedRewardKey ?? '';\n      yield this.fetchContactRewardHistoryTask.perform({\n        rewardKey\n      });\n    }\n    showLevelHistory(rewardKey) {\n      const model = this.args.model;\n      const contactRewardData = R.pipe(R.pathOr([], ['_data', 'contactRewardsData']), R.find(R.pathEq(['rewardData', '_key'], rewardKey)))(model);\n      const levelChanges = R.pathOr([], ['level', 'levelChanges'])(contactRewardData);\n      Ember.set(this, 'levelChanges', levelChanges);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"contactRewardData\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isShowHistory\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"levelChanges\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedMonths\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 3;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"rewardHistory\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"nextExpirePoints\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"openingPoints\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"currentPoints\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"pendingPoints\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"currentLevel\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"currentLevelPoints\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"selectedRewardKey\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchContactRewardHistoryTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchContactRewardHistoryTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitShowRewardHistoryTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitShowRewardHistoryTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitGetRewardHistoryTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitGetRewardHistoryTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showLevelHistory\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"showLevelHistory\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-member-levels/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QQogTEW6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"reward\\\",\\\"contactReward\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[\\\"fas fa-hand-holding-medical\\\",true,\\\"reward_pointsAdjustment\\\",\\\"\\\",\\\"reward_pointsAdjustment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"contacts/panels-display/sub-panels-member-levels/adjust-reward-dialog\\\",[],[[\\\"@tab\\\",\\\"@sendLabel\\\",\\\"@type\\\",\\\"@contactModel\\\",\\\"@onCloseDialogAction\\\"],[[23,7,[]],\\\"send\\\",\\\"points\\\",[23,8,[]],[23,6,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[\\\"fas fa-hand-holding-medical\\\",true,\\\"reward_memberLevelAdjustment\\\",\\\"\\\",\\\"reward_memberLevelAdjustment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"contacts/panels-display/sub-panels-member-levels/adjust-reward-dialog\\\",[],[[\\\"@tab\\\",\\\"@sendLabel\\\",\\\"@type\\\",\\\"@contactModel\\\",\\\"@onCloseDialogAction\\\"],[[23,7,[]],\\\"send\\\",\\\"member level\\\",[23,8,[]],[23,5,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"reward name\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member level\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member level points\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"valid points\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"pending points\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"contactRewardsData\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,8,[\\\"_data\\\",\\\"contactRewardsData\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,2,[\\\"rewardData\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"rewardData\\\",\\\"status\\\"]],\\\"inactive\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"inactive\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,2,[\\\"level\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"level\\\",\\\"points\\\"]]],null],false],[0,\\\"\\\\n\\\"],[0,\\\"                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,2,[\\\"pointsData\\\",\\\"validPoints\\\"]]]]],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,2,[\\\"pointsData\\\",\\\"pendingPoints\\\"]]]]],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-history\\\",\\\"reward history\\\",[28,\\\"perform\\\",[[23,0,[\\\"onSubmitShowRewardHistoryTask\\\"]],[23,2,[\\\"rewardData\\\",\\\"_key\\\"]],[23,2,[\\\"rewardData\\\",\\\"name\\\"]]],null]]]],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[\\\"fas fa-hand-holding-medical\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"rewardData\\\",\\\"status\\\"]],\\\"inactive\\\"],null],true,false],null],true,\\\"reward_pointsAdjustment\\\",\\\"\\\",\\\"reward_pointsAdjustment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"contacts/panels-display/sub-panels-member-levels/adjust-reward-dialog\\\",[],[[\\\"@tab\\\",\\\"@sendLabel\\\",\\\"@type\\\",\\\"@contactReward\\\",\\\"@contactModel\\\",\\\"@onCloseDialogAction\\\",\\\"@isShowHistory\\\",\\\"@onAfterAdjustPointsTask\\\",\\\"@errors\\\"],[[23,7,[]],\\\"send\\\",\\\"points\\\",[23,2,[]],[23,8,[]],[23,4,[]],[23,0,[\\\"isShowHistory\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchContactRewardHistoryTask\\\"]],[28,\\\"hash\\\",null,[[\\\"rewardKey\\\"],[[23,2,[\\\"rewardData\\\",\\\"_key\\\"]]]]]],null],[23,9,[]]]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-hand-holding-medical\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"rewardData\\\",\\\"status\\\"]],\\\"inactive\\\"],null],true,false],null],true,\\\"reward_memberLevelAdjustment\\\",\\\"\\\",\\\"reward_memberLevelAdjustment\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchContactRewardHistoryTask\\\"]],[28,\\\"hash\\\",null,[[\\\"rewardKey\\\"],[[23,2,[\\\"rewardData\\\",\\\"_key\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"contacts/panels-display/sub-panels-member-levels/adjust-reward-dialog\\\",[],[[\\\"@tab\\\",\\\"@sendLabel\\\",\\\"@type\\\",\\\"@contactReward\\\",\\\"@contactModel\\\",\\\"@onCloseDialogAction\\\",\\\"@isShowHistory\\\",\\\"@onAfterAdjustPointsTask\\\",\\\"@errors\\\"],[[23,7,[]],\\\"send\\\",\\\"member level\\\",[23,2,[]],[23,8,[]],[23,3,[]],[23,0,[\\\"isShowHistory\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchContactRewardHistoryTask\\\"]],[28,\\\"hash\\\",null,[[\\\"rewardKey\\\"],[[23,2,[\\\"rewardData\\\",\\\"_key\\\"]]]]]],null],[23,9,[]]]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"6\\\"],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/no-data\\\",[],[[],[]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowHistory\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@title\\\",\\\"@translate\\\"],[[23,0,[\\\"selectedRewardName\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-rewards-lists-historyPeriods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"selectedMonths\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"submit\\\",[23,0,[\\\"fetchContactRewardHistoryTask\\\",\\\"isRunning\\\"]],\\\"is-primary\\\",[28,\\\"perform\\\",[[23,0,[\\\"onSubmitGetRewardHistoryTask\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"opening points\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"member level\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold has-text-right u-width-15\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"member level points\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-width-15\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"openingPoints\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"openingPoints\\\",\\\"currentPoints\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[0]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"rewardHistory\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"rewardHistory\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isShow\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"dateString\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"signup\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"reward_signup_points\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"promotion\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"reward_promotion_points\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"adjustment\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"pointsAdjustment\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"reward_adjustment_points\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"referral\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"reward_referral_points\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"order\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"docName\\\"]],\\\"returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"tt\\\",[\\\"reward_return\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"method\\\"]],\\\"use\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"tt\\\",[\\\"reward_spent_points\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,1,[\\\"method\\\"]],\\\"earn\\\"],null],[23,1,[\\\"isReturnAdjustment\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"tt\\\",[\\\"reward_adjustment\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,1,[\\\"method\\\"]],\\\"earn\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"isReturnAdjustment\\\"]],false],null]],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"tt\\\",[\\\"reward_earned_points\\\"],null],false],[0,\\\"                      \\\\n                        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"docNo\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[5,\\\"helpers/tab-link\\\",[[12,\\\"classNames\\\",\\\"u-link--text\\\"]],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"master\\\"]],[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"docName\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"docName\\\"]]],null],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-inline-flex u-tappable u-main-focus\\\"],[8],[0,\\\"\\\\n                              (\\\"],[1,[23,1,[\\\"docNo\\\"]],false],[0,\\\")\\\\n                            \\\"],[9],[0,\\\"\\\\n\\\\n                          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"opening\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"reward_opening_points\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"birthday\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"reward_birthday_points\\\"],null],false],[0,\\\"\\\\n                      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isExpiredDuplicate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"expired\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[23,1,[\\\"levelData\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,1,[\\\"levelPoints\\\"]],0],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"docName\\\"]],\\\"returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                          -\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"levelPoints\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"levelPoints\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"gt\\\",[[23,1,[\\\"points\\\"]],0],null],[28,\\\"lt\\\",[[23,1,[\\\"points\\\"]],0],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"lt\\\",[[23,1,[\\\"points\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"points\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"method\\\"]],\\\"use\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"docName\\\"]],\\\"returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                            +\\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"points\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            -\\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"points\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,1,[\\\"method\\\"]],\\\"earn\\\"],null],[23,1,[\\\"isExpired\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,1,[\\\"docName\\\"]],\\\"returns\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"isReturnAdjustment\\\"]],false],null]],null]],null,{\\\"statements\\\":[[0,\\\"                            -\\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"points\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,1,[\\\"docName\\\"]],\\\"returns\\\"],null],[23,1,[\\\"isReturnAdjustment\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                            +\\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"points\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isExpiredDuplicate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                              -\\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"points\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                              +\\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"points\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                          \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"i\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"reward_no_data\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"reward_current_points\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,0,[\\\"currentLevel\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentLevelPoints\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"currentPoints\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,0,[\\\"pendingPoints\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"pending points\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"pendingPoints\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"nextExpirePoints\\\",\\\"expireDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"reward_expire_soon\\\"],null],false],[0,\\\" (\\\"],[1,[28,\\\"date\\\",[[23,0,[\\\"nextExpirePoints\\\",\\\"expireDateZ\\\"]]],null],false],[0,\\\"): \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"nextExpirePoints\\\",\\\"currentPoints\\\"]]]]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-display/sub-panels-member-levels/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-statements/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, R_) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ContactsPanelsDisplaySubPanelsStatements = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._action, _class = class ContactsPanelsDisplaySubPanelsStatements extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"date\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"server\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"statement\", _descriptor7, this);\n      _initializerDefineProperty(this, \"selectedBankAccountKey\", _descriptor8, this);\n      _initializerDefineProperty(this, \"resourceData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"paymentDueDateZ\", _descriptor0, this);\n      _initializerDefineProperty(this, \"currentPeriod\", _descriptor1, this);\n      _initializerDefineProperty(this, \"showTotalDuePrintStatement\", _descriptor10, this);\n      _initializerDefineProperty(this, \"showTotalDuePrintAll\", _descriptor11, this);\n      _defineProperty(this, \"adapterName\", 'contacts/statements');\n      this.crud.addLists(this, ['ledgers/accounts/lists/banks', 'ledgers/journals/cashbook/lists/menu']);\n      this.docType = this?.args.tab?.docType || '';\n\n      // get list for 12 month\n      const pastMonths = this.date.getPastMonths(12);\n      this.pastMonths = pastMonths;\n      const settings = this.settings?.settingsModel || {};\n      if (RA.isNotNilOrEmpty(settings)) {\n        const defaultShowTotalDue = R.pathOr(false, ['_data', 'showTotalDue'])(settings);\n        this.showTotalDuePrintStatement = defaultShowTotalDue;\n        this.showTotalDuePrintAll = defaultShowTotalDue;\n      }\n    }\n    afterLoadLists() {\n      // when tab component is created, it will automatically fetch txData for default bank account.\n      // this can only happen once list of bank accounts has been fetched.\n      const defaultBankAccountKey = this.getDefaultBankAccountKey();\n      if (RA.isNotNilOrEmpty(defaultBankAccountKey)) {\n        this.selectedBankAccountKey = defaultBankAccountKey;\n      }\n\n      // show current month statement\n      if (this?.args?.isFromLedgersAccountAging) {\n        this.docType = this?.args?.tab?.docType || '';\n        const period = this?.args?.period || {};\n        const dateStart = this.date.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n        const dateEnd = this.date.formatDateForUrl(this.date.getMonthEnd(period.yyyy, period.mm));\n        this.paymentDueDateZ = this?.args?.paymentDueDateZ || '';\n        this.currentPeriod = {\n          dateStart,\n          dateEnd\n        };\n        this.fetchStatementTask.perform(dateStart, dateEnd);\n      } else {\n        const thisMonth = this.date.getPeriod();\n        this.displayByMonth.perform(thisMonth);\n      }\n\n      // get resourceData for quick links to cashbook\n      this.getResourceData();\n    }\n    getResourceData() {\n      const resourceData = R.pipe(R_.dotPathOr([], 'crud.lists.ledgers-journals-cashbook-lists-menu'), R.find(R.pathEq(['_data', 'docType'], this.docType)))(this);\n      this.resourceData = resourceData;\n    }\n    getDefaultBankAccountKey() {\n      const bankAccounts = R_.dotPath('crud.lists.ledgers-accounts-lists-banks')(this) || [];\n      let defaultAccount = bankAccounts.findBy('_data.isDefault', true);\n      const bankAccountsLength = R.length(bankAccounts);\n      if (!defaultAccount && R.equals(bankAccountsLength, 1)) {\n        defaultAccount = bankAccounts.get('firstObject');\n      }\n      if (defaultAccount) {\n        return defaultAccount?._data?._key || '';\n      }\n      return '';\n    }\n    *fetchStatementTask(dateStart, dateEnd) {\n      const model = this?.args?.model || {};\n      const key = model?._data?._key || '';\n      const docType = this?.docType || '';\n      const allowedPaymentMethodForStatement = R.pipe(R_.dotPathOr([], 'crud.lists.contacts-lists-allowed-payment-method'), R.pluck('_data'))(this);\n      const params = {\n        key,\n        docType,\n        dateStart,\n        dateEnd,\n        paymentDueDateZ: this.paymentDueDateZ,\n        allowedPaymentMethodForStatement\n      };\n      const result = yield this.crud.findTask.perform({\n        adapterName: this.adapterName,\n        appendPath: `/${docType}`,\n        params\n      });\n      this.statement = result;\n    }\n    *displayByMonth(period) {\n      const dateStart = this.date.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.date.formatDateForUrl(this.date.getMonthEnd(period.yyyy, period.mm));\n      this.paymentDueDateZ = this.date.getMoment(dateEnd).toISOString();\n      this.currentPeriod = {\n        dateStart,\n        dateEnd\n      };\n      yield this.fetchStatementTask.perform(dateStart, dateEnd);\n    }\n    *displayByCustomMonth() {\n      const dateEndString = this.customDateEndZ;\n      const dateStartString = this.customDateStartZ;\n      let dateEnd;\n      let dateStart;\n      if (dateEndString) {\n        if (!dateStartString) {\n          const dateEndObj = this.date.getMonthEnd(dateEndString);\n          dateStart = this.date.formatDateForUrl(dateEndObj.startOf('month'));\n          dateStart = this.date.getStartOfDayZ(dateStart);\n          dateEnd = dateEndString;\n        } else {\n          if (dateStartString > dateEndString) {\n            dateEnd = dateStartString;\n            dateStart = dateEndString;\n          } else {\n            dateEnd = dateEndString;\n            dateStart = dateStartString;\n          }\n        }\n        Ember.set(this, 'paymentDueDateZ', dateEnd);\n        this.currentPeriod = {\n          dateStart,\n          dateEnd\n        };\n        yield this.fetchStatementTask.perform(dateStart, dateEnd);\n      }\n    }\n    openCashbookTab() {\n      const model = this?.args?.model || {};\n      const resourceData = this.resourceData;\n      const contactKey = model?._data?._key || '';\n      const contra = model?._data?.name || '';\n      const docType = this?.docType || '';\n      let relationship = 'customer';\n      if (R.equals(docType, 'purchases')) {\n        relationship = 'supplier';\n      }\n      resourceData.setData('contactKey', contactKey);\n      resourceData.setData('contra', contra);\n      resourceData.setData('relationship', relationship);\n      resourceData.setData('isFromContactsStatements', true);\n      const tabOptions = {\n        component: 'ledgers/journals/cashbook/tab-container',\n        title: 'cash book',\n        resourceData,\n        loadInstructions: {\n          find: {\n            id: this.selectedBankAccountKey\n          }\n        }\n      };\n      this.tabsManager.openTab('left', tabOptions);\n\n      // reset selectedBankAccountKey\n      this.selectedBankAccountKey = '';\n      const defaultBankAccountKey = this.getDefaultBankAccountKey();\n      if (RA.isNotNilOrEmpty(defaultBankAccountKey)) {\n        this.selectedBankAccountKey = defaultBankAccountKey;\n      }\n    }\n    *reloadStatementOnDueDateChangeTask() {\n      const currentPeriod = this.currentPeriod;\n      const dateStart = currentPeriod?.dateStart || '';\n      const dateEnd = currentPeriod?.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        yield this.fetchStatementTask.perform(dateStart, dateEnd);\n      }\n    }\n    get showContactsStatementAging() {\n      const docType = this.docType ?? '';\n      // default is true if there's not settings set\n      const showCustomerContactsStatementAging = this.settings?.settingsModel?._data?.showCustomerContactsStatementAging ?? true;\n      const showSupplierContactsStatementAging = this.settings?.settingsModel?._data?.showSupplierContactsStatementAging ?? true;\n      return docType === 'sales' && showCustomerContactsStatementAging || docType === 'purchases' && showSupplierContactsStatementAging;\n    }\n\n    // printStatement() {\n    //\n    //   window.open('https://localhost:9000/api/protected/contacts/statements/print/sales/2017-11-01/2017-11-30/3040087962211', '_blank');\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"statement\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"selectedBankAccountKey\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"resourceData\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"paymentDueDateZ\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"currentPeriod\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"showTotalDuePrintStatement\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"showTotalDuePrintAll\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchStatementTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchStatementTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayByMonth\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"displayByMonth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayByCustomMonth\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"displayByCustomMonth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openCashbookTab\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"openCashbookTab\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadStatementOnDueDateChangeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadStatementOnDueDateChangeTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/panels-display/sub-panels-statements/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tsqnW04N\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"period\\\",\\\"@model\\\",\\\"@isFromLedgersAccountAging\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-3 u-margin-right-3\\\"],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"is-primary u-margin-left-3\\\",[23,0,[\\\"displayByCustomMonth\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayByCustomMonth\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@list\\\",\\\"@onSelect\\\"],[[23,0,[\\\"pastMonths\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayByMonth\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,4,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,4,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"statement\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"payment due date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\"],[\\\"paymentDueDateZ\\\",[23,0,[]],[23,0,[\\\"paymentDueDateZ\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"reloadStatementOnDueDateChangeTask\\\"]]],null],[22,\\\"isReadonly\\\"]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"contacts/statement-details\\\",[],[[\\\"@statement\\\",\\\"@paymentDueDateZ\\\"],[[23,0,[\\\"statement\\\"]],[23,0,[\\\"paymentDueDateZ\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showContactsStatementAging\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"contacts/statement-aging\\\",[],[[\\\"@statement\\\"],[[23,0,[\\\"statement\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"paymentDueDateZ\\\"]],[28,\\\"gt\\\",[[23,0,[\\\"statement\\\",\\\"_data\\\",\\\"totalDue\\\"]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"total due at\\\"],[[\\\"date\\\"],[[28,\\\"date\\\",[[23,0,[\\\"paymentDueDateZ\\\"]]],null]]]],false],[0,\\\": \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"statement\\\",\\\"_data\\\",\\\"totalDue\\\"]]],null],false],[0,\\\" \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"payment terms\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"get\\\",[[23,5,[\\\"_data\\\"]],[28,\\\"concat\\\",[[23,0,[\\\"docType\\\"]],\\\"PaymentTerms\\\"],null]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[\\\"@hasPanelFooter\\\",\\\"@nonPanelFooterHasWrapper\\\",\\\"@nonPanelFooterClassNames\\\"],[[28,\\\"if\\\",[[23,6,[]],true,false],null],true,\\\"layouts-section flex-container-row flex-container--justify-center\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/print-btn\\\",[],[[\\\"@label\\\",\\\"@hasTotalDue\\\",\\\"@showTotalDue\\\"],[\\\"print statement\\\",true,[23,0,[\\\"showTotalDuePrintStatement\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"contacts/statement-print\\\",[],[[\\\"@contact\\\",\\\"@docType\\\",\\\"@statement\\\",\\\"@paymentDueDateZ\\\",\\\"@showTotalDue\\\",\\\"@showContactsStatementAging\\\",\\\"@onCloseDialogAction\\\",\\\"@onPrintDialogAction\\\"],[[23,5,[]],[23,0,[\\\"docType\\\"]],[23,0,[\\\"statement\\\"]],[23,0,[\\\"paymentDueDateZ\\\"]],[23,0,[\\\"showTotalDuePrintStatement\\\"]],[23,0,[\\\"showContactsStatementAging\\\"]],[23,3,[]],[22,\\\"onPrintDialogAction\\\"]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/print-btn\\\",[],[[\\\"@label\\\",\\\"@hasTotalDue\\\",\\\"@showTotalDue\\\"],[\\\"print all\\\",true,[23,0,[\\\"showTotalDuePrintAll\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"contacts/statement-print-with-documents\\\",[],[[\\\"@contact\\\",\\\"@docType\\\",\\\"@statement\\\",\\\"@paymentDueDateZ\\\",\\\"@showTotalDue\\\",\\\"@showContactsStatementAging\\\",\\\"@onCloseDialogAction\\\",\\\"@onPrintDialogAction\\\"],[[23,5,[]],[23,0,[\\\"docType\\\"]],[23,0,[\\\"statement\\\"]],[23,0,[\\\"paymentDueDateZ\\\"]],[23,0,[\\\"showTotalDuePrintAll\\\"]],[23,0,[\\\"showContactsStatementAging\\\"]],[23,1,[]],[23,2,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[1,2]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"selectedBankAccountKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"docType\\\"]],\\\"sales\\\"],null],\\\"receipt\\\",\\\"payment\\\"],null],[28,\\\"if\\\",[[23,0,[\\\"selectedBankAccountKey\\\"]],false,true],null],[28,\\\"fn\\\",[[23,0,[\\\"openCashbookTab\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@classNames\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@onSelect\\\"],[true,[22,\\\"isReadonly\\\"],\\\"list-dropdown u-tappable-flex-start\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ledgers-accounts-lists-banks\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,0,[\\\"selectedBankAccountKey\\\"]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"docType\\\"]],\\\"sales\\\"],null],[28,\\\"tt\\\",[\\\"receipt\\\"],null],[28,\\\"tt\\\",[\\\"payment\\\"],null]],null],\\\"ledgers/accounts/banks-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"bank accounts\\\",true]]],[28,\\\"fn\\\",[[23,0,[\\\"openCashbookTab\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-display/sub-panels-statements/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qtwIYbw+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@onEdit\\\",\\\"@onDisplay\\\",\\\"@onDash\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,2,[]],[23,2,[\\\"subTabs\\\"]],[23,3,[]],[23,0,[\\\"panelsList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,2,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"contacts/panels-display/info-header\\\",[],[[\\\"@model\\\",\\\"@tab\\\"],[[23,0,[\\\"model\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,2,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"fromContactsTab\\\",\\\"model\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"tab\\\"],[true,[23,0,[\\\"model\\\"]],[23,5,[]],[23,4,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"msg\\\"],[[24,[\\\"errorMsg\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"overview\\\",[28,\\\"fn\\\",[[23,6,[]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@type\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",[23,2,[]],\\\"contacts\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,[23,0,[\\\"model\\\",\\\"relatedComments\\\"]],[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"contactKey\\\",\\\"name\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@disabled\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],\\\"edit\\\",[28,\\\"fn\\\",[[23,0,[\\\"editPanel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/contacts-editor/add-btn\\\",null,[[\\\"allowAddMultiplePickupLocations\\\",\\\"tab\\\",\\\"model\\\",\\\"parent\\\",\\\"hasAddDepartment\\\",\\\"hasAddPerson\\\",\\\"hasAddDetails\\\"],[true,[23,2,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"model\\\"]],true,true,true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"contacts/shortcuts\\\",[],[[\\\"@contactKey\\\",\\\"@contact\\\",\\\"@isRunning\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-duplicates/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 ContactsPanelsDuplicatesComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class ContactsPanelsDuplicatesComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"duplicatesByEmails\", _descriptor2, this);\n      _initializerDefineProperty(this, \"duplicates\", _descriptor3, this);\n    }\n    onDidInsert() {\n      this.fetchDuplicatesTask.perform();\n    }\n    *fetchDuplicatesTask() {\n      this.duplicatesByEmails = yield this.dataManager.ajaxCall({\n        method: 'GET',\n        adapterName: 'contacts',\n        appendPath: '/duplicates',\n        data: {}\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"duplicatesByEmails\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"duplicates\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDidInsert\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onDidInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDuplicatesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDuplicatesTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/panels-duplicates/row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 ContactsPanelsDuplicatesComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _class = class ContactsPanelsDuplicatesComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"mergedData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"mergedIntoKey\", _descriptor4, this);\n      _initializerDefineProperty(this, \"mergePreviewModel\", _descriptor5, this);\n    }\n    *fetchMergePreviewModelTask(duplicateData) {\n      const mergePreviewData = yield this.dataManager.ajaxCall({\n        method: 'GET',\n        adapterName: 'contacts',\n        appendPath: '/duplicates/merge',\n        data: {\n          email: duplicateData.email\n        }\n      });\n      const previewModelData = mergePreviewData?.modelPreview || {};\n      this.mergePreviewModel = this.dataManager.setAsRecord({\n        adapterName: 'contacts/preview',\n        data: previewModelData\n      });\n    }\n    *mergeContactsTask(duplicateData, onCloseDialogAction) {\n      const msg = this.intl.t('are you sure you want to merge contacts');\n      if (window.confirm(msg)) {\n        this.mergedData = yield this.dataManager.ajaxCall({\n          method: 'PATCH',\n          adapterName: 'contacts',\n          appendPath: '/duplicates/merge',\n          data: {\n            email: duplicateData.email\n          }\n        });\n        this.mergedIntoKey = this.mergedData?.model?._key;\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"mergedData\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"mergedIntoKey\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"mergePreviewModel\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchMergePreviewModelTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchMergePreviewModelTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"mergeContactsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"mergeContactsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/panels-duplicates/row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+BO0wewf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"duplicateContact\\\",\\\"duplicateContact\\\",\\\"@duplicateData\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[23,4,[\\\"email\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"contacts\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"if\\\",[[23,0,[\\\"mergedIntoKey\\\"]],false,[23,3,[\\\"_key\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[23,3,[\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"contacts\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"memberId\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"mergedIntoKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,0,[\\\"mergedIntoKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,0,[\\\"mergedIntoKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@translate\\\"],[\\\"fas fa-check-circle\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"merged\\\"],null],\\\": \\\",[23,0,[\\\"mergedData\\\",\\\"model\\\",\\\"name\\\"]]],null],false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"hasMultipleMemberIds\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"cannot merge. contacts are linked to different members\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"preview merge\\\",[23,4,[\\\"hasMultipleMemberIds\\\"]],[23,0,[\\\"fetchMergePreviewModelTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchMergePreviewModelTask\\\"]],[23,4,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"mergePreviewModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"contacts/panels-display/info-header\\\",null,[[\\\"model\\\",\\\"tab\\\"],[[23,0,[\\\"mergePreviewModel\\\"]],[23,5,[]]]]],false],[0,\\\"\\\\n          \\\"],[5,\\\"contacts/panels-display/sub-panels-details\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@isPreview\\\"],[[23,5,[]],[23,0,[\\\"mergePreviewModel\\\"]],true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"mergeContactsTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@hasBadge\\\",\\\"@badge\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-users\\\",\\\"merge\\\",\\\"merge\\\",[23,4,[\\\"hasMultipleMemberIds\\\"]],true,[23,4,[\\\"duplicatesCount\\\"]],[23,0,[\\\"mergeContactsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"mergeContactsTask\\\"]],[23,4,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-duplicates/row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-duplicates/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zvHHEkQK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"duplicateData\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"table\\\",false],[12,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"onDidInsert\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"duplicatesByEmails\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"contacts/panels-duplicates/row\\\",[],[[\\\"@tab\\\",\\\"@duplicateData\\\"],[[23,2,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-duplicates/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-edit/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    adapterName: 'contacts',\n    init: function () {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/panels']);\n      const model = this.tab?.model;\n      const dirty = this.crud.setupDirty({\n        adapterName: 'contacts',\n        model\n      });\n      this.set('dirty', dirty);\n      this.tabsManager.setHeader(this.tabParent, dirty.getData('name'));\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yBqerKqB\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"contacts/contacts-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"isEditing\\\",\\\"onDash\\\",\\\"saveTask\\\",\\\"onDisplay\\\",\\\"onCancel\\\",\\\"tab\\\",\\\"resourceList\\\"],[[24,[\\\"dirty\\\"]],[24,[\\\"errors\\\"]],true,[24,[\\\"onDash\\\"]],[24,[\\\"updateRecordTask\\\"]],[24,[\\\"onDisplay\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEditing\\\",[28,\\\"hash\\\",null,[[\\\"dirty\\\"],[[24,[\\\"dirty\\\"]]]]]],null],[24,[\\\"tab\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-panels\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-new/component\", [\"exports\", \"client/mixins/crud\", \"ramda-adjunct\"], function (_exports, _crud, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    isWizard: false,\n    adapterName: 'contacts',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['taxes', 'documents/lists/print', 'contacts/wizard/transporter/hct']);\n      const tab = this.tab;\n      if (tab?.wizardMode === true) {\n        return this.setupWizard();\n      }\n      this.setup();\n    },\n    setupWizard() {\n      this.set('isWizard', true);\n      const wizardDataStepsList = this?.wizardData?.stepsList || [];\n      const firstStep = wizardDataStepsList[0];\n      const contactDefaults = firstStep?._data?.modelData || {};\n      this.setup(contactDefaults);\n    },\n    setup({\n      name = '',\n      relationships = [],\n      isTransporter,\n      transporterExtension = '',\n      ...rest\n    } = {}) {\n      this.crud.addLists(this, ['contacts/lists/panels']);\n      if (RA.isNilOrEmpty(relationships)) {\n        relationships = this.tab?.relationships || this.relationships;\n      }\n      name = name || this.name || '';\n      isTransporter = isTransporter || this.isTransporter;\n      const settingsModel = this.settings.getModel();\n      const data = {\n        name,\n        relationships,\n        salesPaymentMethodKey: settingsModel.getData('salesPaymentMethodKey', this.get('constants.paymentMethods.cash')),\n        salesTaxMethodKey: this.get('constants.taxMethods.auto'),\n        purchasesPaymentMethodKey: settingsModel.getData('purchasesPaymentMethodKey', this.get('constants.paymentMethods.cash')),\n        purchasesTaxMethodKey: this.get('constants.taxMethods.auto'),\n        status: this.get('constants.status.active'),\n        invoicing: this.get('constants.invoicing.auto'),\n        isTransporter,\n        transporterExtension,\n        ...rest\n      };\n      const model = this.setupNewRecord({\n        data\n      });\n      this.set('model', model);\n      this.tabsManager.setHeader(this.tabParent, this.intl.t('new'));\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/t4Hf2qH\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"contacts/contacts-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"isNew\\\",\\\"onCancel\\\",\\\"resourceList\\\",\\\"isWizard\\\",\\\"wizardData\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"createRecordTask\\\"]],true,[24,[\\\"onCancel\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-panels\\\"]],[24,[\\\"isWizard\\\"]],[24,[\\\"wizardData\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/panels-report/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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  // import RA from 'ramda-adjunct'\n  let ContactsPanelsReportComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class ContactsPanelsReportComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor3, this);\n      _initializerDefineProperty(this, \"results\", _descriptor4, this);\n      const filters = this.search.setupFilters({\n        adapterName: 'contacts/report/filters'\n      });\n      this.filters = filters;\n    }\n    get contactsWithNoReward() {\n      const results = this.results;\n      return R.pipe(R.find(R.propEq('reward', '')), R.propOr(0, 'total'))(results);\n    }\n    *fetchContactWithRewardDataTask() {\n      const filters = this.filters;\n      const response = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'contacts/report',\n        appendPath: '',\n        filters,\n        rawResponse: true\n      });\n      this.results = response;\n    }\n    getContactWithRewardData() {\n      this.fetchContactWithRewardDataTask.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchContactWithRewardDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchContactWithRewardDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getContactWithRewardData\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"getContactWithRewardData\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/panels-report/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"locG0jvE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"reward\\\",\\\"memberLevel\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"report-row\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"getContactWithRewardData\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-half-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"reports/dashboard/card-stat\\\",null,[[\\\"title\\\"],[\\\"contacts rewards\\\"]],{\\\"statements\\\":[[0,\\\"    \\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchContactWithRewardDataTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"is-5 has-text-left u-margin-bottom-important-5 u-margin-top-important-10\\\"],[8],[1,[28,\\\"tt\\\",[\\\"reward\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"rewardName\\\"]],false],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__dash-table u-half-width\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-width-40\\\"],[8],[1,[28,\\\"tt\\\",[\\\"member level\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"levels\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[23,2,[\\\"name\\\"]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[23,2,[\\\"total\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/panels-report/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/persons/display-persons/component\", [\"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 = Ember.Component.extend({\n    allowEditing: true\n  });\n});","define(\"client/pods/components/contacts/persons/display-persons/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y89nW66N\",\n    \"block\": \"{\\\"symbols\\\":[\\\"person\\\",\\\"doc\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"parent\\\",\\\"_data\\\",\\\"persons\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__group-header level\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-person__name level-left\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\" (\\\"],[1,[23,1,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"position\\\"]]],null,{\\\"statements\\\":[[0,\\\"            (\\\"],[1,[23,1,[\\\"_data\\\",\\\"position\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"contacts/icons/default-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"default for documents\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"defaultForDocs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-right\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isPreview\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allowEditing\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"pickupLocation\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"contacts/contacts-editor/add-btn\\\",null,[[\\\"isEditing\\\",\\\"model\\\",\\\"parent\\\",\\\"person\\\",\\\"hasPickupLocations\\\"],[true,[24,[\\\"model\\\"]],[24,[\\\"parent\\\"]],[23,1,[]],true]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"contacts/contacts-editor/add-btn\\\",null,[[\\\"isEditing\\\",\\\"model\\\",\\\"parent\\\",\\\"editPerson\\\"],[true,[24,[\\\"model\\\"]],[24,[\\\"parent\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isPreview\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allowEditing\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"pickupLocation\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"contacts/contacts-editor/add-btn\\\",null,[[\\\"model\\\",\\\"parent\\\",\\\"hasAddDepartment\\\",\\\"hasAddPerson\\\",\\\"hasAddDetails\\\"],[[24,[\\\"model\\\"]],[23,1,[]],false,false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"contacts-display__child\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"contacts/details/display-details\\\",null,[[\\\"isPreview\\\",\\\"allowEditing\\\",\\\"model\\\",\\\"parent\\\"],[[24,[\\\"isPreview\\\"]],[24,[\\\"allowEditing\\\"]],[24,[\\\"model\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/persons/display-persons/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/persons/editor-person/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/contacts/persons/editor-person/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aboc/U0M\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@parent\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,2,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\"],[\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"contacts\\\",[23,5,[]],[23,4,[]],[23,3,[]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@title\\\",\\\"@hideTitleContainer\\\",\\\"@formInitData\\\"],[\\\"contacts-persons_group\\\",\\\"persons\\\",false,[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"customBlock\\\",\\\"errors\\\",\\\"context\\\"],[[23,1,[]],true,[24,[\\\"errors\\\"]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-label\\\",null,[[\\\"isRequired\\\",\\\"context\\\",\\\"documentationResource\\\"],[true,\\\"name\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[24,[\\\"person\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"person name\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputClassNames\\\",\\\"autofocus\\\",\\\"isRequired\\\",\\\"context\\\",\\\"value\\\"],[\\\"form__input-large\\\",[24,[\\\"autofocus\\\"]],true,\\\"name\\\",[24,[\\\"person\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[[23,1,[]],\\\"position\\\",[24,[\\\"errors\\\"]],\\\"position\\\",\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputClassNames\\\",\\\"value\\\"],[\\\"form__input-large\\\",[24,[\\\"person\\\",\\\"_data\\\",\\\"position\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\",\\\"@onToggle\\\"],[[24,[\\\"person\\\",\\\"_data\\\",\\\"isDefault\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"person\\\",\\\"_data\\\",\\\"isDefault\\\"]]],null]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onToggleMarkAsDefault\\\"]],[24,[\\\"person\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"set as default\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"person\\\",\\\"_data\\\",\\\"isDefault\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\"],[[23,1,[]],\\\"for documents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"documents/documents-selector\\\",null,[[\\\"model\\\",\\\"valueKey\\\",\\\"selectedType\\\",\\\"hasSales\\\",\\\"hasPurchases\\\"],[[24,[\\\"person\\\"]],\\\"_data.isDefaultForDocs\\\",[24,[\\\"person\\\",\\\"_data\\\",\\\"isDefaultFor\\\"]],[24,[\\\"hasSales\\\"]],[24,[\\\"hasPurchases\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-delete\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onRemove\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSave\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/persons/editor-person/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/persons/pickup-location/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ContactsPersonsPickupLocationComponent extends _component.default {}\n  _exports.default = ContactsPersonsPickupLocationComponent;\n});","define(\"client/pods/components/contacts/persons/pickup-location/editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 ContactsPersonsPickupLocationEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('transporter'), _dec3 = Ember.inject.service('settings'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember._action, _class = class ContactsPersonsPickupLocationEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      _initializerDefineProperty(this, \"modelTransporter\", _descriptor5, this);\n      _defineProperty(this, \"adapterName\", 'contacts/persons');\n      _defineProperty(this, \"modelTransporterAdapterName\", 'contacts');\n      this.crud.addLists(this, ['transporter/lists/pickup-editor-extension']);\n      this.setupModelTransporterDirty(this.args.parentModel);\n      // this.setupDirty(this.args.model)\n    }\n    get isRunning() {\n      return this.removeTask.isRunning || this.updateTask.isRunning || this.addTask.isRunning;\n    }\n    setupModelTransporterDirty(model) {\n      this.modelTransporter = this.crud.setupDirty({\n        adapterName: this.modelTransporterAdapterName,\n        model\n      });\n      this.modelTransporter.setTransporterKeysToPersonDetailsModel();\n    }\n    setupDirty(model) {\n      const isEditing = this.args?.isEditing === true;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          data: {\n            type: 'pickupLocation',\n            name: this.settingsService?.settingsModel?._data?.company\n          }\n        });\n        const transporterExtension = this.args.parentModel._data.transporterExtension;\n        const setupPersonOptions = {\n          transporterExtension,\n          transporterSenderTelephone: this.settingsService?.settingsModel?._data?.companyTel\n        };\n        // this.model.setupPerson(setupPersonOptions)\n      }\n    }\n    *updateTask(onCloseDialogAction, parentModel, model) {\n      yield this.transporterService.replacePersonTask.perform(parentModel, model);\n      onCloseDialogAction();\n    }\n    *removeTask(onCloseDialogAction, parentModel, model) {\n      yield this.transporterService.removePersonTask.perform(parentModel, model);\n      onCloseDialogAction();\n    }\n    *addTask(onCloseDialogAction, parentModel, model) {\n      yield this.transporterService.addPersonTask.perform(parentModel, model);\n      onCloseDialogAction();\n    }\n    *upsertPersonTask(onCloseDialogAction, parentModel, model) {\n      if (this.args?.isEditing === true) {\n        yield this.updateTask.perform(onCloseDialogAction, parentModel, model);\n      } else {\n        yield this.addTask.perform(onCloseDialogAction, parentModel, model);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"modelTransporter\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupModelTransporterDirty\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setupModelTransporterDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"upsertPersonTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"upsertPersonTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/persons/pickup-location/editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ekZVTjIU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@onCloseDialogAction\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,0,[\\\"modelTransporter\\\",\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\"],[\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"contacts\\\",[23,5,[]],[23,4,[]],[23,3,[]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@title\\\",\\\"@hideTitleContainer\\\",\\\"@formInitData\\\"],[\\\"contacts-pickup-locations_group\\\",\\\"transporter pickup location\\\",false,[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"transporters/sender-details\\\",[],[[\\\"@formInitData\\\",\\\"@parentModel\\\",\\\"@person\\\",\\\"@isEditing\\\"],[[23,1,[]],[23,0,[\\\"modelTransporter\\\"]],[23,0,[\\\"model\\\"]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"removeTask\\\"]],[23,2,[]],[23,0,[\\\"modelTransporter\\\"]],[23,0,[\\\"model\\\"]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isRunning\\\"]],[23,2,[]]]]],[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateTask\\\"]],[23,2,[]],[23,0,[\\\"modelTransporter\\\"]],[23,0,[\\\"model\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/persons/pickup-location/editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/persons/pickup-location/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"3Hm/n2ke\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detailModel\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"strong\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"label\\\"],null],false],[0,\\\": \\\"],[1,[23,2,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"sender name\\\"],null],false],[0,\\\": \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"value\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"label\\\"]]],null],false],[0,\\\":\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"translate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"value\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,1,[\\\"_data\\\",\\\"value\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/persons/pickup-location/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/pickup/editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _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 ContactsPickupEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('constants'), _dec3 = Ember.inject.service('settings'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class ContactsPickupEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      _initializerDefineProperty(this, \"personModel\", _descriptor5, this);\n      _initializerDefineProperty(this, \"detailAddressModel\", _descriptor6, this);\n      _initializerDefineProperty(this, \"detailTelephoneModel\", _descriptor7, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor8, this);\n      _initializerDefineProperty(this, \"personDetails\", _descriptor9, this);\n      _defineProperty(this, \"adapterName\", 'contacts');\n      this.crud.addLists(this, ['transporter/lists/pickup-editor-extension']);\n      this.setupDirty();\n    }\n    get outerModel() {\n      let model = this?.args?.model;\n      const addItemOptions = this.args?.addItemOptions || {};\n      const isListSelector = addItemOptions.isListSelector === true;\n      if (isListSelector) {\n        model = this?.args?.parentModel;\n      }\n      const transporterModel = addItemOptions.transporterModel;\n      if (transporterModel) {\n        model = transporterModel;\n      }\n      return model;\n    }\n    get tCatPersonDetails() {\n      return [{\n        customLabel: 'preferred delivery time',\n        icon: 'fas fa-clock',\n        type: 'deliveryTime',\n        value: 'anytime',\n        translate: true\n      }, {\n        customLabel: 'transporter package temperature',\n        icon: 'fas fa-thermometer-half',\n        type: 'transporterAccount',\n        value: 'unrefrigerated',\n        translate: true\n      }, {\n        customLabel: 'package size',\n        icon: 'fas fa-ruler-combined',\n        type: 'packageSize',\n        value: '60cm'\n      }, {\n        customLabel: 'product type',\n        icon: 'fas fa-cube',\n        type: 'packageType',\n        value: 'specialty and local good',\n        translate: true\n      }];\n    }\n    get hctPersonDetails() {\n      return [{\n        customLabel: 'transporter package temperature',\n        icon: 'fas fa-thermometer-half',\n        type: 'transporterPackageTemperature',\n        value: 'unrefrigerated',\n        translate: true\n      }, {\n        customLabel: 'transporter account',\n        icon: 'fas fa-user-circle',\n        type: 'transporterAccount',\n        value: 'unrefrigerated',\n        translate: true\n      }];\n    }\n    get sevenElevenPersonDetails() {\n      return [{\n        customLabel: 'return storeId',\n        icon: 'fas fa-user-circle',\n        type: 'storeId',\n        value: ''\n      }, {\n        customLabel: 'return storeName',\n        icon: 'fas fa-user-circle',\n        type: 'storeName',\n        value: ''\n      }, {\n        customLabel: 'return storeAddress',\n        icon: 'fas fa-user-circle',\n        type: 'storeAddress',\n        value: ''\n      }, {\n        customLabel: 'transporter package temperature',\n        icon: 'fas fa-thermometer-half',\n        type: 'transporterAccount',\n        value: 'unrefrigerated',\n        translate: true\n      }];\n    }\n    get isNewPerson() {\n      const personId = this.personModel._data.personId;\n      const transporterPickupLocations = this.outerModel?._data?.persons || [];\n      const personInTransporter = transporterPickupLocations.find(person => person._data.personId === personId);\n      return RA.isNilOrEmpty(personInTransporter);\n    }\n    get transporterExtension() {\n      const model = this.outerModel;\n      return model?._data?.transporterExtension || '';\n    }\n    get transporterDefaultTypes() {\n      if (this.transporterExtension === this.constantsService.transporterExtensions.tCat) {\n        return this.tCatPersonDetails;\n      } else if (this.transporterExtension === this.constantsService.transporterExtensions.hct) {\n        return this.hctPersonDetails;\n      } else if (this.transporterExtension === this.constantsService.transporterExtensions.sevenEleven) {\n        return this.sevenElevenPersonDetails;\n      }\n    }\n    get transporterEditorExtensionComponent() {\n      const transporterListsCredentialsModal = this.crud.lists['transporter-lists-pickup-editor-extension'] || [];\n      const transporterCredentialsModal = transporterListsCredentialsModal.find(item => item._data.value === this.transporterExtension);\n      return transporterCredentialsModal?._data?.component;\n    }\n    getDetailByType(type) {\n      return R.pipe(R.pathOr([], ['personModel', '_data', 'details']), R.find(R.pathEq(['_data', 'subType'], type)))(this);\n    }\n    setupDirty() {\n      const model = this.outerModel;\n      const isListSelector = this?.args?.addItemOptions?.isListSelector === true;\n      if (model._data._key) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model\n        });\n      } else {\n        this.model = model;\n      }\n      let person = this?.args?.person;\n      const isEditing = this.args.isEditing === true;\n      if (isListSelector && isEditing && !person) {\n        person = this?.args?.model?.model;\n      }\n      if (person) {\n        this.personModel = R.pipe(R.pathOr([], ['model', '_data', 'persons']), R.find(R.pathEq(['_data', 'personId'], person?._data?.personId)))(this);\n        this.detailAddressModel = this.getDetailByType('address');\n        this.detailTelephoneModel = this.getDetailByType('telephone');\n        this.setupPersonDetails(person);\n      } else {\n        this.personModel = this.model.addTransporterPerson({\n          type: 'pickupLocation',\n          name: this.settingsService.settingsModel._data.company\n        });\n        if (!this.args?.model?.isSevenEleven) {\n          this.detailAddressModel = this.personModel.addDetail({\n            type: 'pickupLocation',\n            subType: 'address',\n            isDefault: true,\n            value: this.settingsService.settingsModel._data.address\n          });\n        }\n        this.detailTelephoneModel = this.personModel.addDetail({\n          type: 'pickupLocation',\n          subType: 'telephone',\n          isDefault: true,\n          value: this.settingsService.settingsModel._data.companyTel\n        });\n        this.setupPersonDetails();\n        // this.mock()\n      }\n    }\n\n    // NOTE: THIS FN SHOULD ONLY BE CALLED WHEN TRANSPORTER KEY IS T-CAT\n    setupPersonDetails(person) {\n      this.personDetails = {};\n      const types = this.transporterDefaultTypes;\n      types.forEach(({\n        type = '',\n        value = '',\n        customLabel = '',\n        icon = '',\n        translate = false\n      } = {}) => {\n        if (person) {\n          this.personDetails[type] = this.getDetailByType(type);\n        } else {\n          this.personDetails[type] = this.personModel.addDetail({\n            customLabel,\n            icon,\n            type: 'pickupLocation',\n            subType: type,\n            isDefault: true,\n            value,\n            translate\n          });\n        }\n      });\n      this.personDetails = R.prop('personDetails')(this);\n    }\n\n    /**\n     * @description this is only for development. Set sender name, address and telephone\n     */\n    mock() {\n      const timestamp = new Date().getTime().toString().substring(10);\n      this.personModel.set('_data.name', `Mr Mike_${timestamp}`);\n      this.detailAddressModel.set('_data.value', `406台中市北屯區芳庭路${timestamp}號`);\n      const telephone = `0${Math.floor(Math.random() * (999999999 - 900000000 + 1) + 900000000)}`;\n      this.detailTelephoneModel.set('_data.value', telephone.slice(0, 7) + timestamp);\n    }\n    *updateTask(onCloseDialogAction, {\n      dirty\n    } = {}) {\n      const fn = args => args;\n      const addItemOptions = this.args?.addItemOptions || {};\n      const refreshModel = addItemOptions.refreshModel || fn;\n      const refreshTransporterModel = addItemOptions.refreshTransporterModel || fn;\n      const pickupLocations = R.pathOr([], ['model', '_data', 'pickupLocations'])(this);\n      // this.personModel.set('_data.details', [this.detailAddressModel, this.detailTelephoneModel])\n      pickupLocations.push(this.personModel);\n      this.model.set('_data.pickupLocations', pickupLocations);\n      dirty = dirty || this.model;\n      if (!dirty?._data?._key) {\n        const model = this.outerModel;\n        model.set('_data.defaultPickupLocationPersonId', this?.personModel?._data?.personId);\n        refreshModel(model);\n        return onCloseDialogAction();\n      }\n      if (this.args.updateContactTask) {\n        return this.args.updateContactTask.perform(dirty, {\n          onCloseDialogAction\n        });\n      } else {\n        const updatedModel = yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterName,\n          model: dirty,\n          component: this\n        });\n        if (!updatedModel) {\n          return;\n        }\n        refreshModel(updatedModel);\n        refreshTransporterModel(updatedModel);\n      }\n      onCloseDialogAction();\n    }\n    *deleteTask(person, model, onCloseDialogAction = fn => fn) {\n      const pickupLocations = model?._data?.persons || this?.model?._data?.persons || [];\n      const updatedPickupLocations = pickupLocations.filter(personModel => {\n        return personModel._data.personId !== person._data.personId;\n      });\n      let dirty = model;\n      if (!model.isDirty) {\n        dirty = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model\n        });\n      }\n      dirty.set('_data.persons', updatedPickupLocations);\n      return this.updateTask.perform(onCloseDialogAction, {\n        dirty\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"personModel\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"detailAddressModel\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"detailTelephoneModel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"personDetails\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupPersonDetails\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPersonDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"mock\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"mock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/pickup/editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"goSMHrVV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onCloseDialogAction\\\",\\\"@model\\\",\\\"@person\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\"],[\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"transporter pickup location name\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,true,\\\"label\\\",[23,0,[\\\"personModel\\\",\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"personModel\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"sender name\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@placeholder\\\",\\\"@value\\\"],[\\\"name\\\",true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"personModel\\\",\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"sender telephone\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"telephone\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[\\\"telephone\\\",true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"detailTelephoneModel\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[\\\"isSevenEleven\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"sender address\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"address\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[\\\"address\\\",true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"detailAddressModel\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"transporterEditorExtensionComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"transporterEditorExtensionComponent\\\"]]],[[\\\"transporterModel\\\",\\\"personDetails\\\",\\\"tab\\\",\\\"personModel\\\",\\\"upsertPersonTask\\\",\\\"outerOnCloseDialogAction\\\",\\\"isNewPerson\\\"],[[23,0,[\\\"outerModel\\\"]],[23,0,[\\\"personDetails\\\"]],[24,[\\\"tab\\\"]],[23,0,[\\\"personModel\\\"]],[23,0,[\\\"updateTask\\\"]],[23,1,[]],[23,0,[\\\"isNewPerson\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isNewPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"deleteTask\\\"]],[23,3,[]],[23,2,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"updateTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"updateTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/pickup/editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/results/contact-details-results/component\", [\"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 = Ember.Component.extend({\n    classNames: ['list-selector'],\n    itemClassNames: ['list-selector__item'],\n    legendClassNames: ['list-selector__legend'],\n    optionLabelKey: 'label',\n    // key that points to option's label\n    optionValueKey: 'value',\n    // key that points to option's value\n    value: '',\n    /**\n     * trigger onSelect action\n     * @param {object} option - selected object\n     * @param {object} optionComponent - the component sending the toggle action,\n     *                                    used to keep track of selected state\n     */\n    selectOption(option /* ,  optionComponent */) {\n      // send action to onSelect event..only used for when list is in a dropdown\n      if (this.onSelect) {\n        this.onSelect(option, this);\n      }\n    },\n    actions: {\n      /**\n       * listen for toggle event sent from options component\n       */\n      toggleOption(option, optionComponent) {\n        // list results only allows select (no deselect)\n        // handle select event\n        this.selectOption(option, optionComponent);\n      }\n    }\n  });\n});","define(\"client/pods/components/contacts/results/contact-details-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5VeDylXI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"legend\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"legend\\\",true],[11,\\\"class\\\",[22,\\\"legendClassNames\\\"]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"legend\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"list\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-option\\\",null,[[\\\"translate\\\",\\\"rememberSelected\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"option\\\",\\\"onToggle\\\"],[[24,[\\\"translate\\\"]],false,[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey\\\"]],[24,[\\\"itemClassNames\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleOption\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,1,[\\\"_data\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]]],null],false],[0,\\\" \\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/default-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"context\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"context\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"notes\\\"]],\\\"span\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/results/contact-details-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/results/contact-persons-results/component\", [\"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 = Ember.Component.extend({\n    classNames: ['list-selector'],\n    itemClassNames: ['list-selector__item'],\n    legendClassNames: ['list-selector__legend'],\n    optionLabelKey: 'label',\n    // key that points to option's label\n    optionValueKey: 'value',\n    // key that points to option's value\n    value: '',\n    /**\n     * trigger onSelect action\n     * @param {object} option - selected object\n     * @param {object} optionComponent - the component sending the toggle action,\n     *                                    used to keep track of selected state\n     */\n    selectOption(option /* ,  optionComponent */) {\n      // send action to onSelect event..only used for when list is in a dropdown\n      if (this.onSelect) {\n        this.onSelect(option, this);\n      }\n    },\n    actions: {\n      /**\n       * listen for toggle event sent from options component\n       */\n      toggleOption(option, optionComponent) {\n        // list results only allows select (no deselect)\n        // handle select event\n        this.selectOption(option, optionComponent);\n      }\n    }\n  });\n});","define(\"client/pods/components/contacts/results/contact-persons-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TmXM9DFA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\",\\\"doc\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"legend\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"legend\\\",true],[11,\\\"class\\\",[22,\\\"legendClassNames\\\"]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"legend\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"list\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-option\\\",null,[[\\\"translate\\\",\\\"rememberSelected\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"option\\\",\\\"onToggle\\\"],[[24,[\\\"translate\\\"]],false,[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey\\\"]],[24,[\\\"itemClassNames\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleOption\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"contacts/icons/detail-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]]],false],[0,\\\" \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"contacts/icons/default-icon\\\",null,[[\\\"detail\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"default for documents\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"defaultForDocs\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"context\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"context\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/results/contact-persons-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/search-filters/component\", [\"exports\", \"client/mixins/contacts-list-by\", \"client/mixins/crud\"], function (_exports, _contactsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _contactsListBy.default, {\n    crud: Ember.inject.service(),\n    date: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/filters/search', 'contacts/lists/filters/relationships', 'contacts/lists/filters/status', 'contacts/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n    }\n  });\n});","define(\"client/pods/components/contacts/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QAAs9Mbk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"byLatest\\\"],[[24,[\\\"filters\\\"]],true]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest customers\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"byLatest\\\",\\\"relationship\\\"],[[24,[\\\"filters\\\"]],true,\\\"customer\\\"]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest suppliers\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"byLatest\\\",\\\"relationship\\\"],[[24,[\\\"filters\\\"]],true,\\\"supplier\\\"]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"relationships\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-relationships\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.relationships\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.statuses\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/search-results-documents/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/tags']);\n    }\n  });\n});","define(\"client/pods/components/contacts/search-results-documents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xoKkbG51\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@result\\\",\\\"@query\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"_data\\\",\\\"code\\\"]],[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"defaultEmail\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"defaultEmail\\\"]],[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"defaultTelephone\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"defaultTelephone\\\"]],[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"defaultAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"defaultAddress\\\"]],[23,2,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"timestampZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"tags\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"optionValueKey\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],false,\\\"_data._key\\\",[23,1,[\\\"_data\\\",\\\"tags\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isBigOrdrMember\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-bigordr-customer\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"bigordr customer\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlan\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t(\\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]]],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"relationships\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"optionValueKey\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-relationships\\\"]],true,\\\"_data.value\\\",[23,1,[\\\"_data\\\",\\\"relationships\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/search-results-documents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/search-results/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/relationships', 'contacts/lists/tags', 'statuses']);\n    },\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/contacts/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GgXPMxEO\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"defaultEmail\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"defaultEmail\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"defaultTelephone\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"defaultTelephone\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"defaultAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"defaultAddress\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"isBigOrdrMember\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-bigordr-customer\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"bigordr customer\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"result\\\",\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlan\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t(\\\"],[1,[28,\\\"date\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]]],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-relationships\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"relationships\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"optionValueKey\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],false,\\\"_data._key\\\",[24,[\\\"result\\\",\\\"_data\\\",\\\"tags\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/shortcuts/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 ContactsShortcutsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ContactsShortcutsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"application\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _defineProperty(this, \"onSubmit\", R.path(['args', 'onSubmit'])(this) || this.application.stubFunction);\n      //list btn requires a function\n      _defineProperty(this, \"onCloseModalDialog\", R.path(['args', 'onCloseModalDialog'])(this) || this.application.stubFunction);\n      //list btn requires a function\n      _defineProperty(this, \"hasModalOverlay\", R.pathOr(true, ['args', 'hasModalOverlay'])(this));\n      this.crud.addLists(this, ['documents/lists/types/sales', 'documents/lists/types/purchases']);\n    }\n    get allowedSalesShortcuts() {\n      const hasSales = this.args.hasSales;\n      const contact = this.args.contact;\n      if (contact?.hasSales || hasSales) {\n        return this.crud.lists['documents-lists-types-sales'] || [];\n      }\n      return [];\n    }\n    get allowedPurchasesShortcuts() {\n      const hasPurchases = this.args.hasPurchases;\n      const contact = this.args.contact;\n      if (contact?.hasPurchases || hasPurchases) {\n        return this.crud.lists['documents-lists-types-purchases'] || [];\n      }\n      return [];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"application\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/contacts/shortcuts/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/xXyuV1W\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"shortcut\\\",\\\"onHideDropdown\\\",\\\"shortcut\\\",\\\"@contactKey\\\",\\\"@contact\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowedSalesShortcuts\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@hasModalOverlay\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[\\\"fas fa-plus\\\",\\\"sales\\\",[23,0,[\\\"hasModalOverlay\\\"]],[23,0,[\\\"onSubmit\\\"]],[23,0,[\\\"onCloseModalDialog\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"sales\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"allowedSalesShortcuts\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@isHoverLink\\\",\\\"@tabOptions\\\"],[[23,5,[]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"docType\\\",\\\"docName\\\",\\\"isNew\\\",\\\"loadInstructions\\\",\\\"title\\\",\\\"header\\\"],[\\\"documents/tab-container\\\",[23,4,[\\\"_data\\\",\\\"docType\\\"]],[23,4,[\\\"_data\\\",\\\"docName\\\"]],true,[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"contactKey\\\"],[[23,6,[]],[23,5,[]]]]],[28,\\\"concat\\\",[[23,4,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,4,[\\\"_data\\\",\\\"docName\\\"]]],null],[28,\\\"tt\\\",[\\\"new\\\"],null]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",[28,\\\"concat\\\",[[23,4,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,4,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,3,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowedPurchasesShortcuts\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@hasModalOverlay\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[\\\"fas fa-plus\\\",\\\"purchases\\\",[23,0,[\\\"hasModalOverlay\\\"]],[23,0,[\\\"onSubmit\\\"]],[23,0,[\\\"onCloseModalDialog\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"purchases\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"allowedPurchasesShortcuts\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@isHoverLink\\\",\\\"@tabOptions\\\"],[[23,5,[]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"docType\\\",\\\"docName\\\",\\\"isNew\\\",\\\"loadInstructions\\\",\\\"title\\\",\\\"header\\\"],[\\\"documents/tab-container\\\",[23,2,[\\\"_data\\\",\\\"docType\\\"]],[23,2,[\\\"_data\\\",\\\"docName\\\"]],true,[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"contactKey\\\"],[[23,6,[]],[23,5,[]]]]],[28,\\\"concat\\\",[[23,2,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"_data\\\",\\\"docName\\\"]]],null],[28,\\\"tt\\\",[\\\"new\\\"],null]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",[28,\\\"concat\\\",[[23,2,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/shortcuts/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-aging/component\", [\"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 = Ember.Component.extend({\n    classNames: ['documents__aging-summary']\n  });\n});","define(\"client/pods/components/contacts/statement-aging/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5s8ZQTXW\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-table-layout-fixed\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"120+ days\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"90 days\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"60 days\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"30 days\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"current\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"aging\\\",\\\"4\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"aging\\\",\\\"3\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"aging\\\",\\\"2\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"aging\\\",\\\"1\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"aging\\\",\\\"0\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-aging/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 ContactsStatementDetails = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _class = class ContactsStatementDetails extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showStatementDetails\", _descriptor, this);\n    }\n    toggleStatementDetails() {\n      const showStatementDetails = this.showStatementDetails;\n      this.showStatementDetails = !showStatementDetails;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showStatementDetails\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleStatementDetails\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleStatementDetails\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/constants/index\"], function (_exports, R, RA, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    bigService: Ember.inject.service('big'),\n    tagName: '',\n    txComponent: Ember.computed('data._data.{docName,txType}', function () {\n      const data = this?.data || {};\n      if (RA.isNotNilOrEmpty(data)) {\n        let txComponent = data.getData('docName') || '';\n        if (!txComponent) {\n          txComponent = data.getData('txType') || '';\n        }\n        if (!txComponent) {\n          txComponent = 'commission';\n        }\n        if (txComponent && R.is(String, txComponent)) {\n          txComponent = txComponent.toLowerCase();\n        }\n        return `contacts/statement-details/statement-transactions/tx-${txComponent}`;\n      }\n      return '';\n    }),\n    txDateZ: Ember.computed('data._data.{docName,txType}', function () {\n      let txDateZ = '';\n      const data = this?.data || {};\n      if (RA.isNotNilOrEmpty(data)) {\n        let txComponent = data.getData('docName') || '';\n        if (!txComponent) {\n          txComponent = data.getData('txType') || '';\n        }\n        if (!txComponent) {\n          txComponent = 'commission';\n        }\n        if (txComponent && R.is(String, txComponent)) {\n          txComponent = txComponent.toLowerCase();\n        }\n        if (R.equals(txComponent, 'invoices')) {\n          txDateZ = data?._data?.dispatchDateZ || data?._data?.dateZ || '';\n        } else {\n          txDateZ = data?._data?.dateZ || '';\n        }\n      }\n      return txDateZ;\n    }),\n    cumulativeTotal: Ember.computed('openingBalance', 'transactionIndex', 'transactions', function () {\n      const cumulativeTotalBig = this.bigService.newBig(0);\n      const openingBalanceBig = this.bigService.newBig(this?.openingBalance || 0);\n      const transactions = this?.transactions || [];\n      const transactionIndex = parseInt(this.bigService.newBig(this?.transactionIndex || 0).plus(1).toFixed(0));\n      const transactionsToAccumulate = R.pipe(R.take(transactionIndex), R.map(transaction => {\n        const docType = transaction?._data?.docType || '';\n        let txValue = this.bigService.newBig(0);\n        let txComponent = transaction?._data?.docName || '';\n        if (RA.isNilOrEmpty(txComponent)) {\n          txComponent = transaction?._data?.txType || '';\n        }\n        if (RA.isNilOrEmpty(txComponent)) {\n          txComponent = 'commission';\n        }\n        if (R.includes(txComponent, ['cashIn', 'cashOut'])) {\n          txValue = this.bigService.newBig(transaction?._data?.total);\n          const isValueNegative = R.equals(txComponent, 'cashIn') && R.equals(docType, 'sales') || R.equals(txComponent, 'cashOut') && !R.equals(docType, 'sales');\n          if (isValueNegative) {\n            txValue = txValue.times(-1);\n          }\n        }\n        if (R.includes(txComponent, ['invoices', 'returns'])) {\n          if (!R.equals(transaction?._data?.paymentMethodKey || '', 'creditCard')) {\n            txValue = this.bigService.newBig(transaction?._data?.inclTotal);\n            let isValueNegative = R.equals(txComponent, 'returns') && R.equals(docType, 'sales') || R.equals(txComponent, 'invoices') && !R.equals(docType, 'sales');\n            const relationship = transaction?._data?.contactRelationship || _index.default.contactsRelationship.customer;\n            if (R.equals(relationship, 'supplier')) {\n              isValueNegative = R.not(isValueNegative);\n            }\n            if (isValueNegative) {\n              txValue = txValue.times(-1);\n            }\n          }\n        }\n        if (R.equals(txComponent, 'commission')) {\n          txValue = this.bigService.newBig(transaction?._data?.grandCommissionTotal);\n        }\n        return txValue.toFixed();\n      }), R.sum)(transactions);\n      return cumulativeTotalBig.plus(openingBalanceBig).plus(transactionsToAccumulate).toFixed();\n    })\n  });\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"G8BM2crd\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"component\\\",[[24,[\\\"txComponent\\\"]]],[[\\\"data\\\",\\\"showStatementDetails\\\",\\\"isStatementPrint\\\",\\\"txDateZ\\\",\\\"cumulativeTotal\\\"],[[24,[\\\"data\\\"]],[23,0,[\\\"showStatementDetails\\\"]],[23,0,[\\\"isStatementPrint\\\"]],[23,0,[\\\"txDateZ\\\"]],[23,0,[\\\"cumulativeTotal\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-details/statement-transactions/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-cashin/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ContactsStatementDetailsStatementTransactionsTxCashin extends _component.default {}\n  _exports.default = ContactsStatementDetailsStatementTransactionsTxCashin;\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-cashin/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UIaaIV+t\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@data\\\",\\\"@cumulativeTotal\\\",\\\"@txDateZ\\\",\\\"@isStatementPrint\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,3,[]]],null],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[23,1,[\\\"_data\\\",\\\"description\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"description\\\"]],\\\" (\\\",[23,1,[\\\"_data\\\",\\\"account\\\"]],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"amount\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"amount\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discount\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[28,\\\"calculate\\\",[[23,2,[]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"sales\\\"],null],\\\"+\\\",\\\"-\\\"],null],[23,1,[\\\"_data\\\",\\\"discount\\\"]]],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discount\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"discount\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discount\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discount\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-details/statement-transactions/tx-cashin/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-cashout/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ContactsStatementDetailsStatementTransactionsTxCashout extends _component.default {}\n  _exports.default = ContactsStatementDetailsStatementTransactionsTxCashout;\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-cashout/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"v6gBNjtk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@data\\\",\\\"@cumulativeTotal\\\",\\\"@isStatementPrint\\\",\\\"@txDateZ\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,4,[]]],null],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"commissions\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"commission payout\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"commission payout\\\"],null],\\\" (\\\",[23,1,[\\\"_data\\\",\\\"account\\\"]],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,1,[\\\"_data\\\",\\\"description\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"description\\\"]],\\\" (\\\",[23,1,[\\\"_data\\\",\\\"account\\\"]],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"amount\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"amount\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discount\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[28,\\\"calculate\\\",[[23,2,[]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"sales\\\"],null],\\\"-\\\",\\\"+\\\"],null],[23,1,[\\\"_data\\\",\\\"discount\\\"]]],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discount\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"discount\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discount\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discount\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-details/statement-transactions/tx-cashout/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-commission/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ContactsStatementDetailsStatementTransactionsTxCashin extends _component.default {}\n  _exports.default = ContactsStatementDetailsStatementTransactionsTxCashin;\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-commission/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UKRcflR3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@data\\\",\\\"@txDateZ\\\",\\\"@cumulativeTotal\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,2,[]]],null],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"commissions\\\"],null],false],[0,\\\" \\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"campaignName\\\"]]],null,{\\\"statements\\\":[[0,\\\"      (\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"campaignName\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"invoiceNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"          - \\\"],[1,[23,1,[\\\"_data\\\",\\\"invoiceNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      )\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"isLessThan\\\",[[23,1,[\\\"_data\\\",\\\"grandCommissionTotal\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"grandCommissionTotal\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"grandCommissionTotal\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[23,3,[]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-details/statement-transactions/tx-commission/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-details/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"G14Fx6kc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"detail\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]],\\\"u-desc--italics\\\"],null],\\\" \\\",[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSet\\\"]],\\\"u-no-print\\\"],null]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-minus-circle\\\",\\\"has-text-danger\\\"]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"hasReturns\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-popup-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"returnsDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"documents/table-view/doc-row/detail-row\\\",null,[[\\\"isReturnsDetail\\\",\\\"detail\\\",\\\"model\\\"],[true,[23,2,[]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]],\\\"is-set-child\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"isAdditionalDetail\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"setItem\\\"]],\\\"is-set-with-choices-child\\\"],null],\\\" \\\",[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]],\\\"is-set-child\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"isLessThan\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]],1],null],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"statusClass\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[24,[\\\"detail\\\",\\\"statusClass\\\"]]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"hasPreOrder\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"isLessThan\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]],1],null],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"isLessThan\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]],1],null],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"discInclPrice\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"isLessThan\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]],1],null],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"discInclPrice\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"discInclPrice\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]],[24,[\\\"detail\\\",\\\"isAdditionalDetail\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"isLessThan\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]],1],null],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsPostDiscInclAmt\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"postDiscInclAmt\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-details/statement-transactions/tx-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-invoices/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, R, _emberConcurrencyDecorators) {\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 ContactsStatementDetailsStatementTransactionsTxInvoices = _exports.default = (_dec = Ember.inject.service('crud'), _dec2 = Ember._tracked, _class = class ContactsStatementDetailsStatementTransactionsTxInvoices extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crudService\", _descriptor, this);\n      _defineProperty(this, \"collectionAdapterName\", 'extensions/apps/tw/e-invoices/collection');\n      _initializerDefineProperty(this, \"eInvoicesData\", _descriptor2, this);\n      this.fetchEInvoicesTask.perform({\n        master: this.args.data?._data?._key\n      });\n    }\n    get eInvoicesNumbersText() {\n      const eInvoices = this.eInvoicesData ?? [];\n      // use ramda pipe\n      return R.pipe(R.reject(eInvoices => {\n        if (!eInvoices?._data?.number) {\n          return true;\n        }\n        if (eInvoices?._data?.status !== 'successful') {\n          return true;\n        }\n        return false;\n      }), R.map(eInvoice => eInvoice?._data?.number ?? ''), R.join(', '))(eInvoices);\n    }\n    *fetchEInvoicesTask({\n      master\n    }) {\n      if (!master) {\n        return;\n      }\n      const collectionAdapterName = this.collectionAdapterName;\n      const params = {\n        master\n      };\n      const eInvoicesCollection = yield this.crudService.findTask.perform({\n        adapterName: collectionAdapterName,\n        params,\n        resultsProperty: false\n      });\n      this.eInvoicesData = eInvoicesCollection?._data?.invoices ?? [];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crudService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"eInvoicesData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchEInvoicesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchEInvoicesTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-invoices/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yC+whbNJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\",\\\"@data\\\",\\\"@showStatementDetails\\\",\\\"@rowIndex\\\",\\\"@cumulativeTotal\\\",\\\"@txDateZ\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,7,[]]],null],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[23,3,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,3,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,3,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,3,[\\\"_data\\\",\\\"docType\\\"]],[23,3,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,3,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\" - #\\\"],[1,[23,3,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchEInvoicesTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"count\\\",[[23,0,[\\\"eInvoicesData\\\"]]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"invoice numbers\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"eInvoicesNumbersText\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"paymentDueDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"payment due date\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[23,3,[\\\"_data\\\",\\\"paymentDueDateZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],\\\"creditCard\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[28,\\\"calculate\\\",[[23,6,[]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"sales\\\"],null],\\\"+\\\",\\\"-\\\"],null],[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,6,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],\\\"creditCard\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"credit card\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"cc_\\\",[23,3,[\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]]],null]],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,3,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\" - #\\\"],[1,[23,3,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,6,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"table-view__detail-row--alt \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,5,[]]],null],\\\"even\\\",\\\"odd\\\"],null],\\\" table-view__detail-row--alt-details \\\",[28,\\\"if\\\",[[23,4,[]],\\\"is-expanded\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[10,\\\"style\\\",\\\"min-width: 35em;\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"contacts/statement-details/statement-transactions/tx-details\\\",null,[[\\\"detail\\\",\\\"model\\\",\\\"isReturnsDetail\\\",\\\"tableViewOptions\\\"],[[23,1,[]],[23,3,[]],false,[28,\\\"hash\\\",null,[[\\\"isDispatchTab\\\"],[false]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-details/statement-transactions/tx-invoices/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-returns/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ContactsStatementDetailsStatementTransactionsTxReturns extends _component.default {}\n  _exports.default = ContactsStatementDetailsStatementTransactionsTxReturns;\n  ;\n});","define(\"client/pods/components/contacts/statement-details/statement-transactions/tx-returns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"r+bf8ngw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\",\\\"@data\\\",\\\"@showStatementDetails\\\",\\\"@rowIndex\\\",\\\"@cumulativeTotal\\\",\\\"@txDateZ\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,7,[]]],null],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[23,3,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,3,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,3,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,3,[\\\"_data\\\",\\\"docType\\\"]],[23,3,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\\n      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,3,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\" - #\\\"],[1,[23,3,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],\\\"creditCard\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[28,\\\"calculate\\\",[[23,6,[]],[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"sales\\\"],null],\\\"-\\\",\\\"+\\\"],null],[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,6,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],\\\"creditCard\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,3,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,3,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,3,[\\\"_data\\\",\\\"docType\\\"]],[23,3,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],\\\"creditCard\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refunded\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,3,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\" - #\\\"],[1,[23,3,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,3,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\" - #\\\"],[1,[23,3,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,6,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"table-view__detail-row--alt \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,5,[]]],null],\\\"even\\\",\\\"odd\\\"],null],\\\" table-view__detail-row--alt-details \\\",[28,\\\"if\\\",[[23,4,[]],\\\"is-expanded\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[10,\\\"style\\\",\\\"min-width: 35em;\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"contacts/statement-details/statement-transactions/tx-details\\\",null,[[\\\"detail\\\",\\\"model\\\",\\\"isReturnsDetail\\\",\\\"tableViewOptions\\\"],[[23,1,[]],[23,3,[]],false,[28,\\\"hash\\\",null,[[\\\"isDispatchTab\\\"],[false]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-details/statement-transactions/tx-returns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KfgFSkoD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tx\\\",\\\"transactionIndex\\\",\\\"@statement\\\",\\\"@isStatementPrint\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__section documents__details\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"documents__details-table\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"documents__details-table--date\\\"],[8],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"documents__details-table--ref\\\"],[8],[1,[28,\\\"tt\\\",[\\\"reference\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"documents__details-table--description\\\"],[8],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"debit\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"credit\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"cumulative total\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleStatementDetails\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,3,[\\\"_data\\\",\\\"dateStartZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"opening balance\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"opening\\\"]],\\\">=\\\",0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"opening\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"opening\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"opening\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"opening\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"opening\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"transactions\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"contacts/statement-details/statement-transactions\\\",[],[[\\\"@data\\\",\\\"@transactionIndex\\\",\\\"@openingBalance\\\",\\\"@transactions\\\",\\\"@showStatementDetails\\\",\\\"@isStatementPrint\\\"],[[23,1,[]],[23,2,[]],[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"opening\\\"]],[23,3,[\\\"_data\\\",\\\"transactions\\\"]],[23,0,[\\\"showStatementDetails\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,3,[\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"closing balance\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"closing\\\"]],\\\">=\\\",0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"closing\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"closing\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,3,[\\\"_data\\\",\\\"docType\\\"]],\\\"===\\\",\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"closing\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"statement\\\",\\\"closing\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-print-with-documents/component\", [\"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 = Ember.Component.extend({\n    dataManager: Ember.inject.service(),\n    classNames: ['u-print-container'],\n    init() {\n      this._super(...arguments);\n      const contact = this.contact;\n      const addressesList = contact.getDetailsList({\n        type: 'address',\n        defaultProp: 'defaultAddress'\n      });\n      let defaultAddress = contact.get('defaultAdress');\n      if (!defaultAddress) {\n        defaultAddress = addressesList.get('firstObject');\n      }\n      if (defaultAddress) {\n        this.set('defaultAddress', defaultAddress._data.value);\n      }\n    }\n\n    // transactionsModel: computed('statement._data.transactions.[]', function () {\n    //   const transactions = this?.statement?._data?.transactions || []\n\n    //   if (RA.isNotNilOrEmpty(transactions)) {\n    //     const transformedTransactions = R.map(transaction => {\n    //       const docName = transaction?.docName || ''\n    //       const docType = transaction?.docType || ''\n    //       return this.dataManager.setAsRecord({\n    //         adapterName: `documents/${docType}/${docName}`,\n    //         data: transaction\n    //       })\n    //     })(transactions)\n\n    //     return transformedTransactions\n    //   }\n\n    //   return transactions\n    // })\n  });\n});","define(\"client/pods/components/contacts/statement-print-with-documents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/1lBxWTb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transaction\\\",\\\"@showContactsStatementAging\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-page\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__section documents__header-self\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__header-item documents__header-item--logo\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"settings/pod-logo\\\",null,[[\\\"transform\\\"],[\\\"/-/resize/100x/\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__header-item documents__header-item--company\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"pod/get\\\",[\\\"company\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"pod/get\\\",[\\\"address\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tel\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"companyTel\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"fax\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"companyFax\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"taxNumber\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__header-item documents__header-item--date\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-header-2\\\"],[8],[1,[28,\\\"tt\\\",[\\\"statement\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"date\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__section documents__header-contact\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-top\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"to\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"contact\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"contact\\\",\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[24,[\\\"contact\\\",\\\"_data\\\",\\\"taxNumber\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-top\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"address\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"defaultAddress\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"contacts/statement-details\\\",[],[[\\\"@statement\\\",\\\"@paymentDueDateZ\\\",\\\"@isStatementPrint\\\"],[[22,\\\"statement\\\"],[22,\\\"paymentDueDateZ\\\"],true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"contacts/statement-aging\\\",[],[[\\\"@statement\\\"],[[22,\\\"statement\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showTotalDue\\\"]],[23,0,[\\\"paymentDueDateZ\\\"]],[28,\\\"gt\\\",[[23,0,[\\\"statement\\\",\\\"_data\\\",\\\"totalDue\\\"]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"total due at\\\"],[[\\\"date\\\"],[[28,\\\"date\\\",[[23,0,[\\\"paymentDueDateZ\\\"]]],null]]]],false],[0,\\\": \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"statement\\\",\\\"_data\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"payment terms\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"get\\\",[[24,[\\\"contact\\\",\\\"_data\\\"]],[28,\\\"concat\\\",[[23,0,[\\\"docType\\\"]],\\\"PaymentTerms\\\"],null]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"transactions\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"hasPrintBtn\\\",\\\"model\\\",\\\"isPrintAllFromContactStatements\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[false,[23,1,[]],true,[24,[\\\"contact\\\"]],[24,[\\\"onCloseDialogAction\\\"]],[24,[\\\"onPrintDialogAction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-print-with-documents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-print/component\", [\"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 = Ember.Component.extend({\n    classNames: ['u-print-container'],\n    init() {\n      this._super(...arguments);\n      const contact = this.contact;\n      const addressesList = contact.getDetailsList({\n        type: 'address',\n        defaultProp: 'defaultAddress'\n      });\n      let defaultAddress = contact.get('defaultAdress');\n      if (!defaultAddress) {\n        defaultAddress = addressesList.get('firstObject');\n      }\n      if (defaultAddress) {\n        this.set('defaultAddress', defaultAddress._data.value);\n      }\n    }\n  });\n});","define(\"client/pods/components/contacts/statement-print/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"h8mWK88b\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@showContactsStatementAging\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__section documents__header-self\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__header-item documents__header-item--logo\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"settings/pod-logo\\\",null,[[\\\"transform\\\"],[\\\"/-/resize/100x/\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__header-item documents__header-item--company\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"pod/get\\\",[\\\"company\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"pod/get\\\",[\\\"address\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tel\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"companyTel\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"fax\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"companyFax\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"taxNumber\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__header-item documents__header-item--date\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-header-2\\\"],[8],[1,[28,\\\"tt\\\",[\\\"statement\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"date\\\",[[24,[\\\"statement\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__section documents__header-contact\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-top\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"to\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"contact\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"contact\\\",\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[24,[\\\"contact\\\",\\\"_data\\\",\\\"taxNumber\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-top\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"address\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"defaultAddress\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"contacts/statement-details\\\",[],[[\\\"@statement\\\",\\\"@paymentDueDateZ\\\",\\\"@isStatementPrint\\\"],[[22,\\\"statement\\\"],[22,\\\"paymentDueDateZ\\\"],true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"contacts/statement-aging\\\",[],[[\\\"@statement\\\"],[[22,\\\"statement\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showTotalDue\\\"]],[23,0,[\\\"paymentDueDateZ\\\"]],[28,\\\"gt\\\",[[23,0,[\\\"statement\\\",\\\"_data\\\",\\\"totalDue\\\"]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"total due at\\\"],[[\\\"date\\\"],[[28,\\\"date\\\",[[23,0,[\\\"paymentDueDateZ\\\"]]],null]]]],false],[0,\\\": \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"statement\\\",\\\"_data\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"payment terms\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"get\\\",[[24,[\\\"contact\\\",\\\"_data\\\"]],[28,\\\"concat\\\",[[23,0,[\\\"docType\\\"]],\\\"PaymentTerms\\\"],null]],null],false],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/statement-print/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/tab-container/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/contacts-list-by\", \"ember-concurrency\", \"client/utils/nventor\", \"ramda-adjunct\"], function (_exports, _crud, _contactsListBy, _emberConcurrency, _nventor, RA) {\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, _dec0, _dec1, _dec10, _obj;\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  var _default = _exports.default = Ember.Component.extend(_contactsListBy.default, _crud.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    transporterService: Ember.inject.service('transporter'),\n    constantsService: Ember.inject.service('constants'),\n    adapterName: 'contacts',\n    filtersAdapterName: 'contacts/filters',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['statuses', 'contacts/lists/genders', 'contacts/lists/taxMethods', 'contacts/lists/relationships', 'contacts/lists/detailTypes', 'contacts/lists/importColumns', 'contacts/lists/menu', 'contacts/lists/tags', 'contacts/lists/isTransporter', 'contacts/rewards/lists/historyPeriods', 'contacts/transporters', 'documents/lists/types/doc-types', 'paymentMethods', 'paymentTerms', 'channels/shop/rewards/periods', 'channels/shop/rewards/types', 'channels/shop/rewards', 'settings/wizard', 'contacts/wizard/transporter/hct', 'contacts/wizard/transporter/t-cat', 'contacts/wizard/transporter/seven-eleven', 'contacts/wizard/transporter/payuni-seven-eleven', {\n        name: 'users',\n        appendPath: 'internal'\n      }]);\n      this.setup();\n    },\n    setup() {\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      filters.set('showStarred', true);\n      this.set('filters', filters);\n      const loadInstructions = this?.tab?.loadInstructions || {};\n      if (loadInstructions.wizardMode === true) {\n        this.setupWizard({\n          loadInstructions\n        });\n      }\n    },\n    setupWizard({\n      loadInstructions\n    }) {\n      this.set('isWizard', true);\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'contacts/panels-new',\n        title: 'contacts',\n        adapterName: 'contacts',\n        target: 'contacts'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions, loadInstructions);\n    },\n    wizardDataStepList: Ember.computed('wizardItem._data.subTypeOptions.transporterExtension', function () {\n      const transporterExtension = this.wizardItem?._data?.subTypeOptions?.transporterExtension;\n      if (!transporterExtension) {\n        return [];\n      }\n      const stepList = this.crud.lists[`contacts-wizard-transporter-${transporterExtension}`];\n      if (RA.isNilOrEmpty(stepList)) {\n        console.error('wizardDataStepList:: is empty!');\n        return [];\n      }\n      return stepList;\n    }),\n    afterLoadLists() {\n      this.loadTabTask.perform();\n    },\n    /**\n     * Load the initial contacts tab state from tab instructions or the default contacts list.\n     * @return {Promise<void>} resolves after the initial panel is selected\n     */\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const model = loadInstructions.getData('model');\n        if (model) {\n          this.display(loadInstructions.getData('model'));\n        } else {\n          const id = loadInstructions.getData('find.id');\n          if (id) {\n            const found = yield this.findTask.perform({\n              appendPath: id\n            });\n            this.display(found);\n          }\n          const query = loadInstructions.getData('search.query');\n          if (query) {\n            const filters = this.filters;\n            filters.setData('query', query);\n            const results = yield this.searchRecordsTask.perform({\n              filters\n            });\n            const found = results.get('firstObject');\n            this.display(found);\n          }\n        }\n      } else {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        const results = yield this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters\n        });\n        this.dash({\n          model: {},\n          results\n        });\n      }\n    }),\n    fetchDefaultDataTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.filters;\n      const adapterName = this.adapterName;\n      const results = yield this.listByTask.perform({\n        adapterName,\n        filters,\n        byLatest: true\n      });\n      return results;\n    }),\n    generic(tab, subTabOptions) {\n      // subTabOptions = {\n      //   componentName,\n      //   model (option)\n      // }\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    async dash({\n      model = {},\n      results\n    } = {}) {\n      const tab = this.tab;\n      this.filters.set('showResults', false);\n      if (_nventor.default.isNilOrEmpty(results)) {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        filters.setData('query', '');\n        await this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters\n        });\n      }\n      const subTabOptions = {\n        component: 'contacts/panels-dash',\n        model\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    display(model) {\n      if (_nventor.default.isNilOrEmpty(model)) {\n        return this.dash();\n      }\n      const subTabOptions = {\n        component: 'contacts/panels-display',\n        model: model\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    toggleResults(results) {\n      const subTab = this.tabsManager.getActiveSubTab(this.tab);\n      if (subTab?.component === 'contacts/panels-dash') {\n        return results;\n      }\n      Ember.set(this, 'showResults', true);\n      return results;\n    },\n    new(subTabOptions) {\n      this.filters.set('showResults', false);\n\n      // add new contact sub tab\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    report(subTabOptions) {\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    groups(subTabOptions) {\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    edit(model, {\n      tabOptions\n    } = {}) {\n      this.filters.set('showResults', false);\n      const subTabOptions = {\n        component: 'contacts/panels-edit',\n        model\n      };\n      this.tabsManager.replaceSubTab(this.tab, subTabOptions, tabOptions);\n    },\n    import(subTabOptions) {\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    wizard() {},\n    async wizardNext(model, {\n      updateProps = ''\n    } = {}) {\n      if (!updateProps.some(prop => prop.includes('transporterCredentials'))) {\n        return false;\n      }\n      const transporterKeysToIgnoreTransporter = [this.constantsService.transporterExtensions.sevenEleven];\n      if (transporterKeysToIgnoreTransporter.includes(model._data.transporterExtension)) {\n        return true;\n      }\n      await this.transporterService.validateTransporterCredentials.perform(model);\n      return true;\n    },\n    wizardCancel() {\n      if (this.onCloseDialogActionWizard) {\n        this.onCloseDialogActionWizard();\n      }\n    },\n    async wizardDone(model) {\n      await this.crud.createRecordTask.perform({\n        adapterName: 'contacts',\n        model\n      });\n      if (this.wizardItem?.fetchTransportersByExtensionTask?.perform) {\n        const transporterExtension = model.getData('transporterExtension');\n        await this.wizardItem?.fetchTransportersByExtensionTask?.perform(transporterExtension);\n      }\n      if (this.onCloseDialogActionWizard) {\n        this.onCloseDialogActionWizard();\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"dash\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"dash\"), _obj), _applyDecoratedDescriptor(_obj, \"display\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"display\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleResults\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"toggleResults\"), _obj), _applyDecoratedDescriptor(_obj, \"new\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"new\"), _obj), _applyDecoratedDescriptor(_obj, \"report\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"report\"), _obj), _applyDecoratedDescriptor(_obj, \"groups\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"groups\"), _obj), _applyDecoratedDescriptor(_obj, \"edit\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"edit\"), _obj), _applyDecoratedDescriptor(_obj, \"import\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"import\"), _obj), _applyDecoratedDescriptor(_obj, \"wizard\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"wizard\"), _obj), _applyDecoratedDescriptor(_obj, \"wizardNext\", [_dec0], Object.getOwnPropertyDescriptor(_obj, \"wizardNext\"), _obj), _applyDecoratedDescriptor(_obj, \"wizardCancel\", [_dec1], Object.getOwnPropertyDescriptor(_obj, \"wizardCancel\"), _obj), _applyDecoratedDescriptor(_obj, \"wizardDone\", [_dec10], Object.getOwnPropertyDescriptor(_obj, \"wizardDone\"), _obj), _obj));\n});","define(\"client/pods/components/contacts/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aKbwN0h7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,7,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[\\\"@isWizard\\\"],[[23,0,[\\\"isWizard\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"afterTabSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\",\\\"ignoreForComponent\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[]],\\\"contacts/panels-dash\\\"]]]],null],\\\"contacts\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@disallowedForFeatures\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@displayAsSubHeaderLabel\\\",\\\"@icon\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,4,[]],\\\"advanced search\\\",\\\"\\\"],null],\\\"fas fa-filter\\\",true,true,[23,0,[\\\"filters\\\",\\\"showFilters\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@displayAsSubHeaderLabel\\\",\\\"@icon\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,4,[]],\\\"favorites\\\",\\\"\\\"],null],\\\"fas fa-star\\\",true,true,[23,0,[\\\"filters\\\",\\\"showStarred\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"contacts\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@hasSectionWrapper\\\"],[\\\"manage duplicates\\\",\\\"hide-when-overflow\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"contacts/panels-duplicates\\\",[],[[\\\"@tab\\\",\\\"@onCloseDialogAction\\\"],[[23,7,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[[12,\\\"class\\\",\\\"hide-when-overflow hide-in-overflow-menu\\\"]],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"products/search-results-item\\\",[],[[\\\"@result\\\",\\\"@filters\\\",\\\"@query\\\"],[[23,2,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/scroll-into-view\\\",[[12,\\\"class\\\",\\\"tab-grid__filter-container\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"contacts/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleResults\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\",\\\"@documentationResource\\\"],[[23,7,[\\\"subTabs\\\"]],\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"filters\\\",\\\"onCancel\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onSearchTask\\\",\\\"results\\\",\\\"tab\\\",\\\"tabParent\\\",\\\"isWizard\\\",\\\"wizardData\\\"],[[24,[\\\"filters\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"reloadSearchRecordsTask\\\"]],[24,[\\\"searchAdvancedTask\\\"]],[24,[\\\"filters\\\",\\\"results\\\"]],[23,1,[]],[23,7,[]],[23,0,[\\\"isWizard\\\"]],[28,\\\"hash\\\",null,[[\\\"isWizard\\\",\\\"onWizard\\\",\\\"onWizardCancel\\\",\\\"onWizardDone\\\",\\\"onWizardNext\\\",\\\"stepsList\\\",\\\"target\\\",\\\"adapterName\\\",\\\"isRunning\\\"],[[23,0,[\\\"isWizard\\\"]],[23,0,[\\\"wizard\\\"]],[23,0,[\\\"wizardCancel\\\"]],[23,0,[\\\"wizardDone\\\"]],[23,0,[\\\"wizardNext\\\"]],[23,0,[\\\"wizardDataStepList\\\"]],[23,1,[\\\"target\\\"]],\\\"contacts\\\",[23,0,[\\\"transporterService\\\",\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]]]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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; // import Component from '@ember/component'\n  // export default Component.extend({\n  //   tagName: ''\n  //   // classNameBindings: ['isDetailRow:table-view__detail-row']\n  // })\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 ContactsTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _class = class ContactsTableViewDetailRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n      _initializerDefineProperty(this, \"rewardKey\", _descriptor3, this);\n      _initializerDefineProperty(this, \"memberLevelId\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n      _defineProperty(this, \"adapterName\", 'contacts');\n      _defineProperty(this, \"tagName\", '');\n      this.crud.addLists(this, ['contacts/lists/filters/doc-totals/props', 'contacts/lists/menu', 'contacts/lists/tags', 'statuses', 'periods/months', 'periods/years', 'ages']);\n      this.filters = this.args.filters;\n    }\n    get isSelected() {\n      const selectedItems = R.pathOr([], ['args', 'tableViewOptions', 'selectedItems'])(this);\n      if (selectedItems.indexOf(this.args.model) > -1) {\n        return true;\n      }\n      return false;\n    }\n    get rowClass() {\n      const rowIndex = this.args.rowIndex;\n      if (rowIndex % 2 == 0) {\n        return 'is-even';\n      }\n      return 'is-odd';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"rewardKey\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"memberLevelId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/contacts/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"H4bxZDxF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"person\\\",\\\"subscription\\\",\\\"@model\\\",\\\"@onEdit\\\",\\\"@onDisplay\\\",\\\"@filters\\\",\\\"@tableViewOptions\\\",\\\"@rowIndex\\\",\\\"@tab\\\",\\\"@isDetailRow\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@hasHeadersSort\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"u-margin-right-10\\\",\\\"select all\\\",false,[23,7,[\\\"onToggleSelectAllItems\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[23,0,[\\\"filters\\\"]],\\\"contacts\\\"]]]],null],true,false,[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,0,[\\\"filters\\\"]],\\\"name\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,0,[\\\"filters\\\"]],\\\"code\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,0,[\\\"filters\\\"]],\\\"relationships\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"relationships\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"address\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-checkbox\\\",[[12,\\\"class\\\",\\\"u-icon-size-20\\\"]],[[\\\"@value\\\",\\\"@disabled\\\",\\\"@onToggle\\\"],[[23,0,[\\\"isSelected\\\"]],false,[28,\\\"fn\\\",[[23,7,[\\\"onSelectItem\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,8,[]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@list\\\",\\\"@status\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,3,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"u-main-focus\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"action\\\",[[23,0,[]],[23,5,[]],[23,3,[]]],null]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"highlight\\\",[[23,3,[\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[23,3,[\\\"_data\\\",\\\"code\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-relationships\\\"]],[23,3,[\\\"_data\\\",\\\"relationships\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"transporterExtension\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-truck\\\"],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"transporterExtension\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[[23,3,[\\\"_data\\\",\\\"transporterExtension\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"isAssociates\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"is associates\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[23,3,[\\\"defaultTelephone\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[23,3,[\\\"defaultEmail\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[23,3,[\\\"defaultAddress\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"isBigOrdrMember\\\"]],[23,3,[\\\"_data\\\",\\\"memberId\\\"]],[23,3,[\\\"hasSales\\\"]],[23,3,[\\\"gender\\\"]],[23,3,[\\\"age\\\"]],[23,3,[\\\"birthday\\\"]],[23,3,[\\\"_data\\\",\\\"mailingListSubscriptions\\\",\\\"length\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"isBigOrdrMember\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-bigordr-customer\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"bigordr customer\\\"],null],false],[0,\\\": \\\"],[1,[23,3,[\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlan\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"                (\\\"],[1,[28,\\\"date\\\",[[23,3,[\\\"_data\\\",\\\"bigOrdrPlanData\\\",\\\"_data\\\",\\\"bigOrdrPlanEndDateZ\\\"]]],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"memberId\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"member\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"member\\\",\\\"facebookMemberId\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-facebook\\\"],[8],[1,[28,\\\"tt\\\",[\\\"facebook\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"member\\\",\\\"lineMemberId\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-line\\\"],[8],[1,[28,\\\"tt\\\",[\\\"line\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,3,[\\\"_data\\\",\\\"member\\\",\\\"facebookMemberId\\\"]]],null],[28,\\\"not\\\",[[23,3,[\\\"_data\\\",\\\"member\\\",\\\"lineMemberId\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-bigordr\\\"],[8],[1,[28,\\\"tt\\\",[\\\"bigordr\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"memberEmail\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,3,[\\\"_data\\\",\\\"memberEmail\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,3,[\\\"_data\\\",\\\"memberId\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"hasSales\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"not member\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"isBigOrdrMember\\\"]],[23,3,[\\\"_data\\\",\\\"memberId\\\"]],[23,3,[\\\"hasSales\\\"]]],null],[28,\\\"or\\\",[[23,3,[\\\"gender\\\"]],[23,3,[\\\"age\\\"]],[23,3,[\\\"birthday\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"btns-seperator\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"gender\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"gender\\\"]],\\\"male\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-person\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"male\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"gender\\\"]],\\\"female\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-person-dress\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"female\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"gender\\\"]],\\\"other\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-person\\\"],[8],[9],[0,\\\" \\\"],[1,[23,3,[\\\"otherGender\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"age\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,3,[\\\"age\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"years_old\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"birthday\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-cake-candles\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"date\\\",[[23,3,[\\\"birthday\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"mailingListSubscriptions\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"isBigOrdrMember\\\"]],[23,3,[\\\"_data\\\",\\\"memberId\\\"]],[23,3,[\\\"hasSales\\\"]],[23,3,[\\\"gender\\\"]],[23,3,[\\\"age\\\"]],[23,3,[\\\"birthday\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"btns-seperator\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"mailingListSubscriptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,2,[\\\"websiteName\\\"]],false],[0,\\\"\\\\n                \\\"],[1,[28,\\\"concat\\\",[\\\" - \\\",[28,\\\"tt\\\",[\\\"news and offers email consent\\\"],null]],null],false],[0,\\\"\\\\n                \\\"],[1,[28,\\\"concat\\\",[\\\": \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"isSubscribed\\\"]],true],null],[28,\\\"tt\\\",[\\\"yes\\\"],null],[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"isSubscribed\\\"]],false],null],[28,\\\"tt\\\",[\\\"no\\\"],null],[28,\\\"tt\\\",[\\\"not yet set\\\"],null]],null]],null]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"allowSupplierPortal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fa-solid fa-warehouse\\\"],[8],[9],[1,[28,\\\"tt\\\",[\\\"supplier portal\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"tags\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],false,[23,3,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"defaultFax\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"fax\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"highlight\\\",[[23,3,[\\\"defaultFax\\\"]],[23,6,[\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"salesPaymentTermsKey\\\"]],[23,3,[\\\"_data\\\",\\\"purchasesPaymentTermsKey\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"payment terms\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],false,[23,3,[\\\"_data\\\",\\\"salesPaymentTermsKey\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],false,[23,3,[\\\"_data\\\",\\\"purchasesPaymentTermsKey\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"sales persons\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,6,[\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"is-descriptions\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"iconOnly\\\",\\\"model\\\",\\\"isBtn\\\"],[true,[23,3,[]],true]]],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@type\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",[23,9,[]],\\\"contacts\\\",[23,3,[\\\"_data\\\",\\\"_key\\\"]],true,[23,3,[\\\"relatedComments\\\"]],[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"contactKey\\\",\\\"name\\\"],[[23,3,[\\\"_data\\\",\\\"name\\\"]],[23,3,[\\\"_data\\\",\\\"_key\\\"]],[23,3,[\\\"_data\\\",\\\"name\\\"]]]]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"onSubmit\\\"],[\\\"fas fa-eye\\\",\\\"view\\\",[28,\\\"action\\\",[[23,0,[]],[23,5,[]],[23,3,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"onSubmit\\\"],[\\\"fas fa-pen\\\",\\\"edit\\\",[28,\\\"action\\\",[[23,0,[]],[23,4,[]],[23,3,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group new-table-view__tr-group--separator\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/transporters-accounts-editor/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/payuni-seven-eleven/accounts', 'extensions/apps/tw/payuni-seven-eleven/type']);\n      const self = this;\n      let isEditing = this.isEditing;\n      if (isEditing) {\n        const original = self.get('model');\n        const dirty = this.dataManager.setAsRecord({\n          adapterName: 'base',\n          data: original.serialize()\n        });\n        self.set('model', dirty);\n        self.set('original', original);\n      } else {\n        const model = this.dataManager.setAsRecord({\n          adapterName: 'base',\n          data: {\n            accountType: 'unrefrigerated'\n          }\n        });\n        self.set('model', model);\n      }\n    },\n    isMinRequiredMet: Ember.computed('model._data.{account,name}', function () {\n      const minRequired = ['account', 'name'];\n      const model = this.model;\n      let met = true;\n      minRequired.forEach(function (required) {\n        if (Ember.isEmpty(model.getData(required))) {\n          met = false;\n        }\n      });\n      return met;\n    }),\n    create() {\n      const self = this;\n      const model = self.get('model');\n      self.get('onAddItem')(model);\n      self.get('onCloseDialogAction')();\n    },\n    update() {\n      const self = this;\n      const dirty = self.get('model');\n      const original = self.get('original');\n      original.populate(dirty.serialize());\n      self.get('onUpdateItem')(original);\n    },\n    delete() {\n      const self = this;\n      const intl = self.get('intl');\n      const msg = intl.t('are you sure you want to delete');\n      if (window.confirm(msg)) {\n        const model = self.get('original');\n        self.get('onRemoveItem')(model);\n      }\n    },\n    actions: {\n      submit() {\n        if (this.isEditing) {\n          this.update();\n        } else {\n          this.create();\n        }\n      },\n      delete() {\n        this.delete();\n      },\n      cancel() {\n        if (this.isEditing) {\n          this.set('showEditor', false);\n        } else {\n          this.onCloseDialogAction();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/contacts/transporters-accounts-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xVAoekLQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@disabled\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\",\\\"@errors\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\"],[\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"contacts\\\",[23,5,[]],[23,4,[]],[23,3,[]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"transporterAccounts_group\\\",[23,4,[]],[23,1,[]],\\\"transporter accounts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"account\\\",[23,1,[]],\\\"transporter account\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@value\\\"],[true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"account\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"name\\\",[23,1,[]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"rate\\\",[23,1,[]],\\\"rate\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"rate\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"transporterPackageTemperature\\\",[23,1,[]],\\\"transporter package temperature\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"accountType\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@model\\\",\\\"@hasErrors\\\",\\\"@errors\\\"],[[23,0,[\\\"model\\\"]],[22,\\\"hasErrors\\\"],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,2,[]],[28,\\\"action\\\",[[23,0,[]],\\\"delete\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,2,[]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[23,0,[\\\"model\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isMinRequiredMet\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,2,[]],[28,\\\"action\\\",[[23,0,[]],\\\"submit\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/transporters-accounts-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/contacts/wizard/transporter/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ContactsWizardTransporterComponent extends _component.default {}\n  _exports.default = ContactsWizardTransporterComponent;\n});","define(\"client/pods/components/contacts/wizard/transporter/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cu3Xk5hK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transporter\\\",\\\"@wizardItem\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[\\\"transporters\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag tag__margin-2\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@classNames\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[\\\"u-link--text\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/contacts/wizard/transporter/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/content-display/component\", [\"exports\", \"jquery\", \"ramda\"], function (_exports, _jquery, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    ajax: Ember.inject.service(),\n    tagName: 'div',\n    classNames: ['content-display no-margin'],\n    didInsertElement() {\n      this._super(...arguments);\n      this.removeGifImgSrcFormTemplate();\n      const isStories = this.get('isStories');\n      if (isStories) {\n        const _content = this.get('_content');\n        const images = (0, _jquery.default)(_content).find('img');\n        if (images.length > 0) {\n          // Handle images that are already loaded\n          images.each((_, image) => {\n            // Check if the image is already fully loaded\n            if (image.complete) {\n              this.handleImageLoad(); // Call your load handler\n            } else {\n              // Attach a load event handler as a fallback\n              (0, _jquery.default)(image).on('load', () => this.handleImageLoad());\n              image.onload = () => this.handleImageLoad();\n            }\n          });\n        } else {\n          this.handleImageLoad();\n        }\n      }\n    },\n    removeGifImgSrcFormTemplate() {\n      const parser = new DOMParser();\n      const content = this.get('content') || '';\n      const virtualDocument = parser.parseFromString(`<div id='virtual-div'>${content}</div>`, 'text/html');\n      const virtualDiv = virtualDocument.getElementById('virtual-div');\n      const container = (0, _jquery.default)(this.element).closest('body');\n      const defaultWidth = container.outerWidth();\n      const images = (0, _jquery.default)(virtualDiv).find('img');\n      const isStories = this.get('isStories');\n      if (!isStories) {\n        this.optimizeImages(defaultWidth, images);\n      }\n      this.set('_content', virtualDiv.innerHTML);\n    },\n    handleImageLoad() {\n      if (this.get('onloadImg')) {\n        this.get('onloadImg')();\n      }\n    },\n    willDestroyElement() {\n      const isStories = this.get('isStories');\n      if (!isStories) {\n        return;\n      }\n      const _content = this.get('_content');\n      const images = (0, _jquery.default)(_content).find('img');\n      if (!R.length(images)) {\n        return;\n      }\n      images.off('load');\n    }\n  });\n});","define(\"client/pods/components/content-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jpT1+jtw\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"_content\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"_content\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/content-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/bulk-split/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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, _dec0, _dec1, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 DispatchBulkSplitComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('products'), _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _class = class DispatchBulkSplitComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dispatch\", _descriptor3, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor6, this);\n      _initializerDefineProperty(this, \"nextDispatchProcessCode\", _descriptor7, this);\n      _initializerDefineProperty(this, \"products\", _descriptor8, this);\n      _initializerDefineProperty(this, \"productQuery\", _descriptor9, this);\n      _initializerDefineProperty(this, \"errorMsg\", _descriptor0, this);\n      this.crud.addLists(this, ['dispatch/lists/processes']);\n      this.setup();\n    }\n    get currentDispatchProcessCode() {\n      return this.args?.dispatchProcess?._data?.code || '';\n    }\n    get isSplitBulkDisabled() {\n      if (this.isBulkSplitBusy) {\n        return true;\n      }\n      const fullCount = Number(this?.filters?.fullCount) || 0;\n      if (this?.nextDispatchProcess?._data?.code && fullCount > 0) {\n        return false;\n      }\n      return true;\n    }\n    get isBulkSplitBusy() {\n      return this.dispatch.isBulkSplitRequestInFlight() || this.bulkSplitTask.isRunning;\n    }\n    setup() {\n      const filters = this.search.setupFilters({\n        adapterName: 'documents/filters'\n      });\n      this.filters = filters;\n      this.errorMsg = '';\n    }\n\n    // shown while another tab's batch holds the pod, whether it started before\n    // or after this dialog opened\n    get bulkSplitLockMessage() {\n      if (this.bulkSplitTask.isRunning) {\n        return '';\n      }\n      return this.dispatch.getBulkSplitLockTranslationKey();\n    }\n    get nextDispatchProcess() {\n      const dispatchProcesses = this.crud.lists['dispatch-lists-processes'];\n      const nextDispatchProcessCode = this.nextDispatchProcessCode;\n      if (!nextDispatchProcessCode) {\n        return {};\n      }\n      const nextDispatchProcess = R.find(R.pathEq(['_data', 'code'], nextDispatchProcessCode))(dispatchProcesses);\n      return nextDispatchProcess;\n    }\n    *fetchPreviewDocsToSplit() {\n      const products = this.products;\n      // @TODO: needs filter model\n      const filters = this.filters;\n      filters.setData('products', products);\n      filters.setData('currentDispatchProcess', this?.args?.dispatchProcess?._data?.code || '');\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: 'documents/sales/invoices/preview',\n        filters\n      });\n    }\n    *selectProductTask(item) {\n      this.productQuery = '';\n      const products = this.products || [];\n      const itemData = {\n        itemKey: item?._data?._key,\n        item: item?._data?.name\n      };\n      products.removeObject(itemData);\n      products.pushObject(itemData);\n      this.products = products;\n      yield this.fetchPreviewDocsToSplit.perform();\n    }\n    *removeSelectedTask(item) {\n      const products = this.products || [];\n      products.removeObject(item);\n      this.products = products;\n      yield this.fetchPreviewDocsToSplit.perform();\n    }\n    *bulkSplitTask() {\n      // the footer already shows bulkSplitLockMessage while the pod is locked\n      if (this.dispatch.isBulkSplitRequestInFlight()) {\n        return;\n      }\n      this.errorMsg = '';\n      const nextDispatchProcess = this.nextDispatchProcess;\n      const bulkSplitData = {\n        products: this.products,\n        currentDispatchProcess: this.currentDispatchProcessCode,\n        nextDispatchProcess: nextDispatchProcess?._data?.code,\n        nextDispatchProcessLabel: nextDispatchProcess?._data?.name,\n        nextDispatchProcessLabelTranslate: nextDispatchProcess?._data?.translate\n      };\n\n      // unlinked: closing this dialog mid-request cancels this task, but the\n      // service task must still finish so it can free the pod lock and alert the user\n      try {\n        yield this.dispatch.sendBulkSplitRequestTask.unlinked().perform({\n          data: bulkSplitData\n        });\n        this.args.onCloseDialogAction?.();\n      } catch (err) {\n        this.errorMsg = this.dispatch.bulkSplitRequestErrorTranslationKey(err);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dispatch\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"nextDispatchProcessCode\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"products\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"productQuery\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"errorMsg\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchPreviewDocsToSplit\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchPreviewDocsToSplit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectProductTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"selectProductTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSelectedTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSelectedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"bulkSplitTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"bulkSplitTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/dispatch/bulk-split/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mfBizBYV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"doc\\\",\\\"detail\\\",\\\"detail\\\",\\\"product\\\",\\\"@formGroupClassNames\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid\\\"],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setup\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"splitEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"split\\\",[23,10,[]],[23,7,[]],[23,9,[]],[23,8,[]]]]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"isBulkSplitBusy\\\"]],[24,[\\\"onFetchUnpaginatedDispatchDataTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,6,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,7,[]],\\\"bulk split\\\",\\\"bulkSplit_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"item name\\\",\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,\\\"span\\\",false,false,[23,0,[\\\"productsService\\\",\\\"all\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",false,\\\"_data.name\\\",[23,0,[\\\"productQuery\\\"]],false,\\\"fas fa-bookmark\\\",[23,0,[\\\"productsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"productsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resultsProperty\\\",\\\"query\\\",\\\"component\\\",\\\"global\\\"],[\\\"all\\\",[23,0,[\\\"productQuery\\\"]],[23,0,[]],true]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"selectProductTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"removeSelectedTask\\\"]]],null]]]],[0,\\\"\\\\n            \\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"products\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,5,[\\\"item\\\"]],false],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"button\\\",true],[11,\\\"onclick\\\",[28,\\\"perform\\\",[[23,0,[\\\"removeSelectedTask\\\"]],[23,5,[]]],null]],[10,\\\"class\\\",\\\"delete is-small\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"person\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[23,2,[\\\"_data\\\",\\\"person\\\"]],false],[0,\\\"\\\\n                      (\\\"],[1,[23,2,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[23,2,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[23,2,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[23,2,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"original\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                            \\\"],[1,[23,4,[\\\"item\\\"]],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"hasReturns\\\"]]],null,{\\\"statements\\\":[[0,\\\"                              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--strikethrough\\\"],[8],[1,[23,4,[\\\"qty\\\"]],false],[9],[0,\\\" \\\"],[7,\\\"span\\\",true],[8],[1,[23,4,[\\\"netReturnsQty\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                              \\\"],[1,[23,4,[\\\"qty\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                          \\\"],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n                      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"toSplit\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                            \\\"],[1,[23,3,[\\\"item\\\"]],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasReturns\\\"]]],null,{\\\"statements\\\":[[0,\\\"                              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--strikethrough\\\"],[8],[1,[23,3,[\\\"qty\\\"]],false],[9],[0,\\\" \\\"],[7,\\\"span\\\",true],[8],[1,[23,3,[\\\"netReturnsQty\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                              \\\"],[1,[23,3,[\\\"qty\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                          \\\"],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"          \\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@showPageNumbers\\\",\\\"@classNames\\\",\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\"],[true,\\\"pagination-controls-container--small\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"tooltip\\\",\\\"error\\\"],[true,[28,\\\"or\\\",[[23,0,[\\\"errorMsg\\\"]],[23,0,[\\\"bulkSplitLockMessage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"defaultLabel\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[28,\\\"tt\\\",[\\\"status\\\"],null],\\\"_data.code\\\",\\\"_data.name\\\",[23,0,[\\\"nextDispatchProcessCode\\\"]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@hasBadge\\\",\\\"@badge\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isSplitBulkDisabled\\\"]],\\\"fas fa-cut\\\",\\\"bulk split\\\",true,true,[28,\\\"number\\\",[[24,[\\\"filters\\\",\\\"fullCount\\\"]]],null],[28,\\\"or\\\",[[23,0,[\\\"isBulkSplitBusy\\\"]],[23,0,[\\\"fetchPreviewDocsToSplit\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\",\\\"isRunning\\\"]],[24,[\\\"isExporting\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"bulkSplitTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/bulk-split/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/dispatch-process-label/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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 DispatchDispatchProcessLabelComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class DispatchDispatchProcessLabelComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      this.crud.addLists(this, ['dispatch/lists/processes']);\n    }\n    get dispatchProcessLabelTranslated() {\n      const dispatchProcess = this.args.dispatchProcess;\n      const dispatchProcesses = this.crud.lists['dispatch-lists-processes'] || [];\n      const found = R.find(R.pathEq('_data.dispatchProcess', dispatchProcess))(dispatchProcesses);\n      if (RA.isNilOrEmpty(found)) {\n        return dispatchProcess;\n      }\n      if (!found?.dispatchProcessLabelTranslate) {\n        return found?.dispatchProcessLabel || '';\n      }\n      try {\n        const hash = {\n          translate: true\n        };\n        return this.intl.t(found.dispatchProcessLabel, hash);\n      } catch (e) {\n        console.error(e);\n        return dispatchProcess;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/dispatch/dispatch-process-label/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"V1vNB/rm\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[23,0,[\\\"dispatchProcessLabelTranslated\\\"]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/dispatch-process-label/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/export-btn/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/date\", \"client/mixins/big\", \"client/mixins/crud\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"ramda-extension\", \"ramda-adjunct\", \"ramda\"], function (_exports, _emberConcurrency, _date, _big, _crud, _adaptersNew, _nventor, R_, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_adaptersNew.default, _big.default, _date.default, _crud.default, (_dec = Ember._action, _obj = {\n    server: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    dispatchService: Ember.inject.service('dispatch'),\n    excel: Ember.inject.service(),\n    exportService: Ember.inject.service('export'),\n    tagName: '',\n    isDispatched: false,\n    dispatchDate: '',\n    dispatchDateZ: '',\n    resultsToExport: null,\n    nextDispatchProcessCode: '',\n    // exportOrdersTotal: true,\n    // exportPayOnDeliveryOrders: true,\n    // exportPayOnDeliveryTransporter: true,\n    // exportPaidOrders: true,\n    // exportPaidTransporter: true,\n    // exportTransportersTotal: true,\n    isExporting: false,\n    selectedSpec: '',\n    sharedWorksheets: null,\n    customWorksheets: null,\n    groupDocumentsByTransporterProxy: false,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['dispatch/lists/exportOptions', 'dispatch/lists/export-file-type', 'dispatch/lists/date-header']);\n      this.set('filename', this.getDefaultFilename());\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      this.set('dispatchProcesses', dispatchProcesses);\n\n      // this.set('exportOption', 'exportAndUpdateStatus')\n      this.set('exportOption', 'exportOnly');\n      if (this.dispatchProcess) {\n        const model = this.crud.setupDirty({\n          adapterName: 'dispatch/lists/processes',\n          model: this.dispatchProcess\n        });\n        const exportFileType = model.getData('exportFileType');\n        const exportFileTypeLabel = model.getData('exportFileType');\n        if (RA.isNilOrEmpty(exportFileType) || RA.isNilOrEmpty(exportFileTypeLabel)) {\n          model.setData('exportFileType', 'xlsx');\n          model.setData('exportFileTypeLabel', 'xlsx');\n        }\n        this.set('model', model);\n      }\n\n      // always true when sortExportProductByIndex and disable the toggle on export data\n      if (this?.settings?.settingsModel?._data?.features?.sortExportProductByIndex) {\n        this.model.setData('showSetDetails', true);\n        this.model.setData('hideSetParents', true);\n      }\n      this.model.set('isGroupDocs', true);\n      const defaultExportSheets = this.get('model._data.defaultExportSheets') || [];\n      const defaultExportCustomSheets = this.get('model._data.defaultExportCustomSheets') || {};\n      this.set('sharedWorksheets', defaultExportSheets);\n      this.set('customWorksheets', defaultExportCustomSheets);\n      const groupDocumentsByTransporter = this?.groupDocumentsByTransporter || false;\n      this.set('groupDocumentsByTransporterProxy', groupDocumentsByTransporter);\n      this.fetchSpecsTask.perform();\n      const selectedResults = this?.selectedResults || [];\n      if (RA.isNotNilOrEmpty(selectedResults)) {\n        this.set('resultsToExport', selectedResults);\n      }\n    },\n    // addCustomWorksheetSpec (specKey = '') {\n    //   const customWorksheets = this.get('customWorksheets') || []\n    //   customWorksheets.pushObject(EmberObject.create({\n    //     specKey\n    //   }))\n\n    //   this.set('customWorksheets', customWorksheets)\n    // },\n\n    getDefaultFilename() {\n      const today = this.formatDate(this.getToday(), 'YYYYMMDD');\n      const dispatchProcess = this.dispatchProcess;\n      const name = R.path(['_data', 'name'])(dispatchProcess);\n      const translate = dispatchProcess.getData('translate') || false;\n      if (!translate) {\n        return `${name}-${today}`;\n      }\n      const translatedName = this.intl.t(name);\n      return `${translatedName}-${today}`;\n    },\n    _sumProperty({\n      property,\n      docData,\n      groups = []\n    }) {\n      const roundingCurrency = docData.roundingCurrency || 0;\n      let totalBig = this.newBig(docData[property]);\n      R.forEach(group => {\n        const groupTotalBig = this.newBig(group[property]);\n        totalBig = totalBig.add(groupTotalBig);\n      })(groups);\n      return totalBig.toFixed(roundingCurrency);\n    },\n    _transformGroupedDocs({\n      serialized,\n      isGroupDocs = true\n    }) {\n      const toSumProps = ['cashCollectionInclTotal', 'discExclTotal', 'discInclTotal', 'exclTotal', 'exclTotalOnSale', 'inclTotal', 'inclTotalOnSale', 'netInclTotal', 'paidInclTotal', 'preDiscExclTotal', 'preDiscInclTotal', 'postDiscExclTotal', 'postDiscInclTotal', 'returnRewardAdjustmentAmount', 'returnRewardAdjustmentPoints', 'rewardAmountTotal', 'rewardAmountTotalWithoutPromoCode', 'rewardExclTotal', 'rewardInclTotal', 'rewardPointApplied', 'rewardPointEarned', 'taxTotal'];\n      if (isGroupDocs) {\n        serialized = R.map(docData => {\n          const groups = R.propOr([], 'groups')(docData);\n          const paymentMethodKey = R.propOr('', 'paymentMethodKey')(docData);\n          let details = R.propOr([], 'details')(docData);\n          let paymentMethodKeys = [paymentMethodKey];\n          let unpaidInclTotal = this.newBig(0);\n          if (docData.paymentMethodKey === 'cash') {\n            unpaidInclTotal = this.newBig(docData.cashCollectionInclTotal);\n          }\n          R.forEach(group => {\n            const groupDetails = R.propOr([], 'details')(group);\n            details = R.concat(details, groupDetails);\n            const groupPaymentMethodKey = R.propOr('', 'paymentMethodKey')(group);\n            paymentMethodKeys = R.append(groupPaymentMethodKey, paymentMethodKeys);\n            if (group.paymentMethodKey === 'cash') {\n              unpaidInclTotal = unpaidInclTotal.add(group.cashCollectionInclTotal);\n            }\n          })(groups);\n          R.forEach(property => {\n            docData[property] = this._sumProperty({\n              property,\n              docData,\n              groups\n            });\n          })(toSumProps);\n          docData.details = details;\n          docData.paymentMethodKey = R.uniq(paymentMethodKeys) || [];\n          docData.unpaidInclTotal = unpaidInclTotal.toFixed(docData.roundingCurrency);\n          return docData;\n        })(serialized);\n      } else if (!isGroupDocs) {\n        serialized = R.pipe(R.reduce((obj, docData) => {\n          const groups = R.propOr([], 'groups')(docData);\n          const docDataMaster = [R.omit(['groups'], docData)]; // should be array\n\n          const docDataMasterAndChilds = R.concat(docDataMaster, groups);\n          return R.concat(obj, docDataMasterAndChilds);\n        }, []), R.flatten)(serialized);\n      }\n      return serialized;\n    },\n    fetchSpecsTask: (0, _emberConcurrency.task)(function* () {\n      const specsCollection = yield this.dispatchService.fetchSpecsTask.perform();\n      this.set('specsCollection', specsCollection);\n      return specsCollection;\n    }),\n    exportTask: (0, _emberConcurrency.task)(function* /* filter */\n    () {\n      let resultsToExport = this.resultsToExport || [];\n      if (RA.isNilOrEmpty(resultsToExport)) {\n        const allUnpaginated = yield this.onFetchAllUnpaginatedTask.perform({\n          filters: this.filters\n        });\n        this.set('resultsToExport', allUnpaginated);\n      }\n      if (this.hasUpdateStatus && !this.nextDispatchProcessCode) {\n        this.set('errorMsg', 'please select');\n        return false;\n      }\n      this.set('isExporting', true);\n      try {\n        let filename = this.filename;\n        if (!filename) {\n          filename = this.getDefaultFilename();\n        }\n\n        // specsCollection is loaded asynchronously in init via fetchSpecsTask;\n        // re-fetch here if the user opened export before that resolved\n        let specsCollection = this.specsCollection;\n        if (!specsCollection) {\n          specsCollection = yield this.fetchSpecsTask.perform();\n        }\n        // bail out if the fetch returned nothing — the API may be down or the\n        // record may not exist; without specsCollection we cannot serialize\n        if (RA.isNilOrEmpty(specsCollection)) {\n          window.alert(this.intl.t('error occurred please try again later'));\n          return;\n        }\n        const serializedCustomSpecs = specsCollection.getSerializedByProp({\n          prop: 'custom',\n          worksheets: this.customWorksheets,\n          selected: true\n        });\n        const serializedSharedSpecs = specsCollection.getSerializedByProp({\n          prop: 'shared',\n          worksheets: this.sharedWorksheets,\n          selected: false\n        });\n        let newSerializedCustomSpecs = [];\n        R.forEach(customWorksheet => {\n          const key = R_.dotPathOr('', '_data.value', customWorksheet);\n          R.forEach(serializedCustomSpec => {\n            if (R.equals(key, serializedCustomSpec._key)) {\n              newSerializedCustomSpecs = R.append(R.merge(customWorksheet, serializedCustomSpec), newSerializedCustomSpecs);\n            }\n          })(serializedCustomSpecs);\n        })(this.customWorksheets);\n        const worksheets = [];\n        const specsModel = this.crud.setupNewRecord({\n          adapterName: 'specs'\n        });\n\n        // for dispatch, default true\n        const isGroupDocs = R.pathOr(true, ['model', '_data', 'isGroupDocs'])(this);\n        const options = {\n          showSetDetails: R.pathOr(false, ['model', '_data', 'showSetDetails'])(this),\n          hideSetParents: R.pathOr(false, ['model', '_data', 'hideSetParents'])(this),\n          showProductSetWithChoices: R.pathOr(false, ['model', '_data', 'showProductSetWithChoices'])(this),\n          hideShippingFee: R.pathOr(false, ['model', '_data', 'hideShippingFee'])(this),\n          availableNormalSpecs: R.pathOr([], ['availableNormalSpecs'])(specsModel),\n          detailsProp: 'details',\n          isGroupDocs\n        };\n        let serialized = R.propOr([], 'resultsData')(this);\n        serialized = this._transformGroupedDocs({\n          serialized,\n          isGroupDocs\n        });\n        serialized = this.exportService.calculateDocsNetReturns({\n          serialized,\n          useOriginalCashCollectionInclTotal: false,\n          options\n        });\n        let shopSortOrderDetailsByIndexCount = 0;\n        R.forEach(spec => {\n          if (spec.shopSortOrderDetailsByIndex) {\n            shopSortOrderDetailsByIndexCount += 1;\n          }\n        })(R.concat(serializedSharedSpecs, newSerializedCustomSpecs));\n        if (R.gt(shopSortOrderDetailsByIndexCount, 0)) {\n          // @TODO: cannot do this due to performance issues\n          // const sourceKeys = R.pipe(\n          //   R.pluck('sourceKey'),\n          //   R.reject(RA.isNilOrEmpty),\n          //   R.uniq,\n          //   R.take(5)\n          // )(serialized)\n\n          // const data = {\n          //   sourceKeys\n          // }\n\n          // const itemWithIndexesByShopKey = yield this.server.call('GET', 'api/protected/dispatch/processes/export/getShopCampaignInfoAndDetailsDataByKey', data) || {}\n          // const itemWithIndexesByShopKeyData = R.mergeAll(RA.ensureArray(itemWithIndexesByShopKey.data || []))\n\n          // serialized = R.map(docData => {\n          //   const sourceKey = docData.sourceKey\n          //   if (RA.isNotNilOrEmpty(sourceKey)) {\n          //     const itemWithIndexes = itemWithIndexesByShopKeyData[sourceKey]\n          //     const docDataDetails = R.map(docDataDetail => {\n          //       const itemKey = docDataDetail.itemKey\n          //       const shopIndex = R.pipe(\n          //         R.find(R.propEq('itemKey', itemKey)),\n          //         R.propOr(itemWithIndexes.length, 'index')\n          //       )(itemWithIndexes)\n          //       docDataDetail.index = shopIndex\n          //       return docDataDetail\n          //     })(docData.details || [])\n          //     docData.details = docDataDetails\n          //   }\n          //   return docData\n          // })(serialized)\n        }\n        R.forEach(worksheet => {\n          const method = R.prop('method')(worksheet);\n          if (method) {\n            const sharedSheetToPush = this.exportService.exportByMethod({\n              specs: worksheet,\n              docData: serialized,\n              options\n            });\n            worksheets.push(sharedSheetToPush);\n          }\n        })(serializedSharedSpecs);\n        R.forEach(worksheet => {\n          const method = R.prop('method')(worksheet);\n          if (method) {\n            const customSheetToPush = this.exportService.exportByMethod({\n              specs: worksheet,\n              docData: serialized,\n              options\n            });\n            worksheets.push(customSheetToPush);\n          }\n        })(newSerializedCustomSpecs);\n\n        // TEMP solution for customer\n        // TEMP solution for customer\n        // TEMP solution for customer\n        // const specsForSummary = [{\n        //   column: '收貨人',\n        //   prop: 'contact'\n        // }, {\n        //   column: '單號',\n        //   prop: 'ref'\n        // }, {\n        //   column: '雪蛤人篸',\n        //   item: '唐太盅甜湯-雪蛤人蔘燉雪耳',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '紅豆紫米',\n        //   item: '唐太盅甜湯-紅豆桂圓紫米粥',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '雪蓮四寶',\n        //   item: '唐太盅甜湯-雪蓮子燉四寶湯',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '寒天枸杞',\n        //   item: '',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '胡椒豬肚',\n        //   item: '唐太盅-胡椒豬肚雞盅',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '何首烏',\n        //   item: '唐太盅-何首烏燉雞盅',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '黑蒜頭',\n        //   item: '唐太盅-黑蒜頭燉雞盅',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '人嵾糯米',\n        //   item: '唐太盅-人蔘糯米雞盅',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '十全排骨',\n        //   item: '唐太盅-十全藥膳排骨',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '十全豬腳',\n        //   item: '唐太盅-十全藥膳豬腳',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '素當歸羊',\n        //   item: '',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '南洋肉骨',\n        //   item: '',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '狗尾草',\n        //   item: '唐太盅-狗尾草燉雞盅',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '四物雞',\n        //   item: '唐太盅-四物燉雞盅',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '麻油燉雞',\n        //   item: '唐太盅-麻油燉雞盅',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '滴雞精',\n        //   item: '',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '十入保冷袋 ',\n        //   item: '贈唐太盅保冷袋(可裝盅湯10包)隨機出貨',\n        //   isDetailColumn: true\n        // }, {\n        //   column: '四入保冷袋',\n        //   item: '贈唐太盅保冷袋(可裝盅湯4包)',\n        //   isDetailColumn: true\n        // }]\n\n        // const detailSpecsForSummary = [{\n        //   column: '',\n        //   prop: 'item',\n        //   transform (value, data) {\n        //     const columns = R.pipe(\n        //       R.filter(R.propEq('isDetailColumn', true)),\n        //       R.pluck('item')\n        //     )(specsForSummary)\n\n        //     return R.reduce((acc, item) => {\n        //       const detail = R.find(R.propEq('item', item))(data)\n        //       if (detail) {\n        //         acc.push(detail.qty)\n        //       } else {\n        //         acc.push('')\n        //       }\n        //       return acc\n        //     }, [])(columns)\n        //   }\n        // }]\n        // worksheets.push({\n        //   sheetName: 'Summary',\n        //   data: this._exportSummary(today, specsForSummary, detailSpecsForSummary, serialized, false)\n        // })\n        // // /// ////^^^above^^ temp solution for customer ^^^//////\n        // // /// ////^^^above^^ temp solution for customer ^^^//////\n        // // /// ////^^^above^^ temp solution for customer ^^^//////\n        // // /// ////^^^above^^ temp solution for customer ^^^//////\n\n        // // TEMP solution for customer\n        // // TEMP solution for customer\n        // // TEMP solution for customer\n        // const self = this\n        // const productData = [\n        //   { itemCode: 'Z012', items: ['農純鄉 滴雞精40+10入 (冷凍/無盒)'], item: '農純鄉 滴雞精40+10入 (冷凍/無盒)', transporterAccount: 3 },\n        //   { itemCode: 'M260', items: ['農純鄉 滴雞精21+2入 (冷凍)'], item: '農純鄉 滴雞精21+2入 (冷凍)', transporterAccount: 3 },\n        //   { itemCode: 'Z101', items: ['農純鄉 媽媽茶28入(盒裝)'], item: '農純鄉 媽媽茶28入(盒裝)', transporterAccount: 1 },\n        //   { itemCode: 'M212', items: ['農純鄉 媽媽茶56(盒裝)+5入'], item: '農純鄉 媽媽茶56(盒裝)+5入', transporterAccount: 1 },\n        //   { itemCode: 'M204', items: ['農純鄉 媽媽茶80 (無盒)+彈力燕窩飲7入'], item: '農純鄉 媽媽茶80 (無盒)+彈力燕窩飲7入', transporterAccount: 1 },\n        //   { itemCode: 'M261', items: ['寶寶粥28入(豬肉/南瓜/干貝/雞肉)+益生菌5入+蘋果肉燥醬2包'], item: '寶寶粥28入(豬肉/南瓜/干貝/雞肉)+益生菌5入+蘋果肉燥醬2包', transporterAccount: 1 },\n        //   { itemCode: 'M111', items: ['農純鄉 寶寶粥28入(豬肉/南瓜/干貝/鮭魚)+大本山益生菌5入'], item: '農純鄉 寶寶粥28入(豬肉/南瓜/干貝/鮭魚)+大本山益生菌5入', transporterAccount: 1 },\n        //   { itemCode: 'M245', items: ['農純鄉 飽寶醬16入(蘋果肉燥+番茄牛肉)+波菜麵8入'], item: '農純鄉 飽寶醬16入(蘋果肉燥+番茄牛肉)+波菜麵8入', transporterAccount: 1 },\n        //   { itemCode: 'Z902', items: ['農純鄉 蔓越莓珍珠粉30入 x 4盒'], item: '農純鄉 蔓越莓珍珠粉30入 x 4盒', transporterAccount: 1 },\n        //   { itemCode: 'M218', items: ['農純鄉 彈力燕窩飲 28入+蔓越莓珍珠粉10入'], item: '農純鄉 彈力燕窩飲 28入+蔓越莓珍珠粉10入', transporterAccount: 1 },\n        //   { itemCode: 'M226', items: ['農純鄉 燕盞3片x6g+蔓越莓珍珠粉30入'], item: '農純鄉 燕盞3片x6g+蔓越莓珍珠粉30入', transporterAccount: 1 },\n        //   { itemCode: 'Z723', items: ['大本山益生菌 150入+加贈30入<草莓90+香蕉90>'], item: '大本山益生菌 150入+加贈30入<草莓90+香蕉90>', transporterAccount: 1 },\n        //   { itemCode: 'Z727', items: ['【預購中8/3後依序出貨】大本山益生菌 150入+30入(草莓90+香蕉60+隨機30)', '大本山益生菌 150入+30入(草莓90+香蕉60+隨機30)'], transporterAccount: 1 },\n        //   { itemCode: 'Z708', items: ['大本山益生菌 150入+30入(草莓180)', '【預購中8/3後依序出貨】大本山益生菌 150入+30入(草莓180)'], transporterAccount: 1 },\n        //   { itemCode: 'HD09', items: ['贈農純鄉飽寶醬4入/盒(不挑款)'], item: '贈農純鄉飽寶醬4入/盒(不挑款)', transporterAccount: 1 }\n        // ]\n\n        // const specsForSummary = [{\n        //   column: '訂購日',\n        //   prop: 'dateZ',\n        //   transform (value) {\n        //     return self.dateService.formatDate(value, 'YYYY/MM/DD')\n        //   }\n        // }, {\n        //   column: '訂購時間',\n        //   prop: 'timestampZ',\n        //   transform (value) {\n        //     return self.dateService.formatDate(value, 'YYYY/MM/DD HH:mm:ss')\n        //   }\n        // }, {\n        //   column: '訂單編號',\n        //   prop: 'ref'\n        // }, {\n        //   column: '出貨物流',\n        //   prop: '',\n        //   returnValue: '宅配'\n        // }, {\n        //   column: '收件人',\n        //   prop: ['person', 'contact'],\n        //   joinWith: ' / '\n        // }, {\n        //   column: '收件人電話',\n        //   prop: 'telephone'\n        // }, {\n        //   column: '收件人地址',\n        //   prop: 'address'\n        // }, {\n        //   column: '會員備註',\n        //   prop: 'notes'\n        // }, {\n        //   column: '規格編號',\n        //   prop: 'itemCode',\n        //   isDetail: true,\n        //   transform (code, data) {\n        //     if (!code) {\n        //       const item = data.item\n        //       const found = R.find(detail => {\n        //         return R.includes(item)(detail.items)\n        //       })(productData)\n        //       return R.prop('itemCode')(found) || ''\n        //     }\n        //     return code\n        //   }\n        // }, {\n        //   column: '商品名稱',\n        //   prop: 'item',\n        //   isDetail: true,\n        //   transform (item) {\n        //     const found = R.find(detail => {\n        //       return R.includes(item)(detail.items)\n        //     })(productData)\n        //     return R.prop('item')(found) || item\n        //   }\n        // }, {\n        //   column: '訂購數',\n        //   prop: 'qty',\n        //   isDetail: true\n        // }, {\n        //   column: '商品金額',\n        //   prop: 'postDiscInclAmt',\n        //   isDetail: true\n        // }, {\n        //   column: '單價',\n        //   prop: 'discInclPrice',\n        //   isDetail: true\n        // }, {\n        //   column: '出貨時間',\n        //   prop: ''\n        // }, {\n        //   column: '到貨時間',\n        //   prop: ''\n        // }, {\n        //   column: '指定時段',\n        //   prop: ''\n        // }, {\n        //   column: '配送溫層',\n        //   prop: 'itemCode',\n        //   isDetail: true,\n        //   transform (code, data) {\n        //     let found = R.find(R.propEq('code', code))(productData)\n        //     if (!found) {\n        //       const item = data.item\n        //       found = R.find(detail => {\n        //         return R.includes(item)(detail.items)\n        //       })(productData)\n        //     }\n        //     if (found) {\n        //       return R.prop('transporterAccount')(found) || ''\n        //     }\n\n        //     return ''\n        //   }\n        // }]\n\n        // worksheets.push({\n        //   sheetName: 'Summary',\n        //   data: this._exportByDetails(today, specsForSummary, serialized, false)\n        // })\n        // // /// ////^^^above^^ temp solution for customer ^^^//////\n        // // /// ////^^^above^^ temp solution for customer ^^^//////\n        // // /// ////^^^above^^ temp solution for customer ^^^//////\n        // // /// ////^^^above^^ temp solution for customer ^^^//////\n        // // /// ////^^^above^^ temp solution for customer ^^^//////\n\n        if (!R.isEmpty(worksheets)) {\n          yield this.excel.exportFile({\n            worksheets,\n            title: filename,\n            bookType: this?.model?._data?.exportFileType,\n            bookTypeLabel: this?.model?._data?.exportFileTypeLabel\n          });\n          if (this.hasUpdateStatus) {\n            yield this.setDispatchProcessAfterExportTask.perform();\n          }\n          if (this.deselectAll) {\n            this.deselectAll();\n          }\n          this.onCloseDialogAction();\n        } else {\n          const msg = this.intl.t('no data to export');\n          window.alert(msg);\n        }\n      } finally {\n        this.set('isExporting', false);\n      }\n    }).drop(),\n    _exportOrders(today, specs, detailSpecs = [], results, hasSummary = false) {\n      // const intl = this.intl\n      const columns = R.pluck('column', specs);\n      // const props = R.pluck('prop', specs)\n      let detailProps = false;\n      if (!R.isEmpty(detailSpecs)) {\n        detailProps = R.pluck('prop', detailSpecs);\n      }\n      let index = 0;\n      // let totalQty = 0\n      let data = R.pipe(R.map(doc => {\n        index = index + 1;\n        let detailsRows = R.propOr([], 'details', doc);\n        let inclTotalBig = this.newBig(0);\n        detailsRows = R.map(detailData => {\n          inclTotalBig = inclTotalBig.plus(detailData.postDiscInclAmt);\n          return this._getDataBySpecs({\n            data: detailData\n          }, detailSpecs);\n        })(detailsRows);\n        // detailsRows = R.pipe(\n\n        //   // @TODO: filter by product/tag/supplier\n        //   // R.filter(\n        //   //   detail => {\n        //   //     if (R.pathEq(['_data', 'itemKey'], '3040094470030', detail)) {\n        //   //       totalQty = totalQty + parseInt(R.path(['_data', 'qty'], detail))\n        //   //     }\n\n        //   //     return R.pathEq(['_data', 'itemKey'], '3040094470030', detail) || R.pathEq(['_data', 'item'], '運費', detail)\n        //   //   }\n        //   // ),\n        //   R.map(detailData => {\n        //     inclTotalBig = inclTotalBig.plus(detailData.postDiscInclAmt)\n        //     return R.pipe(\n        //       R.pick(detailProps),\n        //       R.values,\n        //       R.concat(['']),\n        //       R.concat([''])\n        //     )(detailData)\n        //   })\n        // )(detailsRows)\n        // }\n\n        const docInfoRow = this._getDataBySpecs({\n          data: doc,\n          inclTotalBig,\n          index,\n          today\n        }, specs);\n        // const docInfoRow = R.map(prop => {\n        //   if (prop === '_index_') {\n        //     return index\n        //   }\n        //   if (prop === '_today_') {\n        //     return today\n        //   }\n        //   if (prop === 'paymentMethodKey') {\n        //     const v = R.propOr('', prop, doc)\n        //     if (v) {\n        //       return intl.t(v)\n        //     }\n        //     return ''\n        //   }\n\n        //   if (prop === '_inclTotal_') {\n        //     return parseInt(inclTotalBig.toFixed(0))\n        //   }\n\n        //   if (prop === 'qty') {\n        //     return parseInt(R.propOr('', prop, doc))\n        //   }\n\n        //   return R.propOr('', prop, doc)\n        // }, props)\n\n        if (detailProps) {\n          return R.concat([docInfoRow], detailsRows);\n        } else {\n          return [docInfoRow];\n        }\n      }), R.unnest, R.concat([columns]))(results);\n      if (hasSummary && detailProps) {\n        data = this._summaryRows(data, results);\n      }\n      return data;\n    },\n    _summaryRows(data, results) {\n      const intl = this.intl;\n      const groupByItem = doc => {\n        const itemKey = R.prop('itemKey')(doc);\n        if (itemKey) {\n          return itemKey;\n        }\n        return R.prop('item')(doc);\n      };\n      let grandTotal = 0;\n      data = R.pipe(R.pluck('details'), R.flatten, R.groupBy(groupByItem), R.mapObjIndexed(groupData => {\n        const groupTotalQty = parseInt(this.sumPropAndAutoRound(0, 'qty', groupData)) || 0;\n        const groupTotalInclAmt = parseInt(this.sumPropAndAutoRound(0, 'postDiscInclAmt', groupData)) || 0;\n        grandTotal = grandTotal + groupTotalInclAmt;\n        const item = R.pipe(R.head, R.propOr('', 'item'))(groupData);\n        const itemCode = R.pipe(R.head, R.propOr('', 'itemCode'))(groupData);\n        return ['', '', groupTotalQty, item, itemCode, groupTotalInclAmt];\n      }), R.values, R.concat([[], ['', '', intl.t('qty'), intl.t('product'), intl.t('code'), intl.t('total')]]), R.concat(data), R.append([]))(results);\n      data = R.append(['', '', '', '', intl.t('total'), grandTotal], data);\n      return data;\n    },\n    _exportSummary(today, specs, detailSpecs = [], results, hasSummary = false) {\n      // const intl = this.get('intl')\n\n      const allSpecs = R.concat(specs, detailSpecs);\n      const columns = R.pluck('column', allSpecs);\n      // const props = R.pluck('prop', specs)\n      if (!R.is(Array)(detailSpecs)) {\n        detailSpecs = [detailSpecs];\n      }\n      let detailProps = false;\n      if (!R.isEmpty(detailSpecs)) {\n        detailProps = R.pipe(R.pluck('prop'), R.uniq)(detailSpecs);\n      }\n      let index = 0;\n      // let totalQty = 0\n      const data = R.pipe(R.map(doc => {\n        index = index + 1;\n        let detailsRows = R.propOr([], 'details', doc);\n        detailsRows = R.pipe(R.map(R.pick(['item', 'qty'])), R.groupBy(R.prop('item')), R.mapObjIndexed(group => {\n          return R.reduce((acc, detail) => {\n            acc.item = detail.item;\n            const qty = parseInt(detail.qty);\n            acc.qty = qty + acc.qty;\n            return acc;\n          }, {\n            qty: 0\n          })(group);\n        }), R.values, R.flatten)(detailsRows);\n        detailsRows = this._getDataBySpecs({\n          data: detailsRows\n        }, detailSpecs);\n        const docInfoRow = this._getDataBySpecs({\n          data: doc,\n          index,\n          today\n        }, specs);\n        if (detailProps) {\n          return [R.concat([docInfoRow[0], docInfoRow[1]], detailsRows[0])];\n        } else {\n          return [docInfoRow];\n        }\n      }), R.unnest, R.concat([columns]))(results);\n      return data;\n    },\n    _exportByDetails(today, specs, results, hasSummary = false) {\n      const columns = R.pluck('column', specs);\n      // if (!R.is(Array)(detailSpecs)) {\n      //   detailSpecs = [detailSpecs]\n      // }\n\n      let detailProps = [];\n      // if (!R.isEmpty(detailSpecs)) {\n      detailProps = R.pipe(R.filter(R.propEq('isDetail', true)), R.pluck('prop'))(specs);\n      // }\n\n      let index = 0;\n      const details = R.pipe(R.map(doc => {\n        const details = R.pipe(R.propOr([], 'details'), R.map(detail => {\n          const detailData = R.pick(detailProps)(detail);\n          return R.mergeRight(doc, detailData);\n        }))(doc);\n        return details;\n      }), R.flatten)(results);\n      const data = R.pipe(R.map(detail => {\n        index = index + 1;\n        const row = this._getDataBySpecs({\n          data: detail,\n          index,\n          today\n        }, specs);\n        return row;\n      }), R.concat([columns]))(details);\n      return data;\n    },\n    _getDataBySpecs({\n      data,\n      inclTotalBig = false,\n      index,\n      today\n    }, specs) {\n      return R.map(spec => {\n        const returnValue = R.prop('returnValue')(spec);\n        if (returnValue) {\n          return returnValue;\n        }\n        let props = R.prop('prop', spec);\n        if (!R.is(Array, props)) {\n          props = [props];\n        }\n        const values = R.map(prop => {\n          return this._getPropData({\n            today,\n            index,\n            data,\n            spec,\n            prop,\n            inclTotalBig\n          });\n        })(props);\n        if (props.length > 1) {\n          const joinWith = R.prop('joinWith', spec) || '-';\n          return R.pipe(R.reject(RA.isNilOrEmpty), R.join(joinWith))(values);\n        }\n        return _nventor.default.safeHeadOr('', values);\n      }, specs);\n    },\n    _getPropData({\n      today,\n      index,\n      data,\n      spec,\n      prop,\n      inclTotalBig\n    }) {\n      const intl = this.intl;\n      if (prop == null) {\n        return '';\n      }\n      if (spec.returnProp) {\n        return R.propOr('', spec.returnProp)(data);\n      }\n      const transform = R.prop('transform')(spec);\n      let value = R_.dotPathOr('', prop, data);\n      if (prop === '_index_') {\n        value = index;\n      }\n      if (prop === '_today_') {\n        return today;\n      }\n\n      // if (prop === 'dateZ') {\n      //   value = this.dateService.formatDate(value)\n      // }\n\n      // if (prop === 'timestampZ') {\n      //   value = this.dateService.formatDate(value)\n      // }\n\n      if (prop === 'paymentMethodKey') {\n        const v = R_.dotPathOr('', prop, data);\n        if (v) {\n          value = intl.t(v);\n        }\n      }\n      if (prop === '_inclTotal_' && inclTotalBig) {\n        value = inclTotalBig.toFixed(0);\n      }\n      if (transform) {\n        value = transform(value, data, spec);\n      }\n      return value;\n    },\n    exportData({\n      results,\n      filterByProp,\n      filterValue,\n      isReject = false,\n      fromNo,\n      toNo\n    } = {}) {\n      let resultsClone = R.clone(results);\n      if (fromNo != null && toNo != null) {\n        resultsClone = R.pipe(R.drop(fromNo), R.take(toNo))(resultsClone);\n      }\n      let filterByPath = filterByProp;\n      if (!R.is(Array, filterByProp)) {\n        filterByPath = [filterByProp];\n      }\n      if (filterByProp) {\n        if (isReject) {\n          resultsClone = R.reject(R.pathEq(filterByPath, filterValue))(resultsClone);\n        } else {\n          resultsClone = R.filter(R.pathEq(filterByPath, filterValue))(resultsClone);\n        }\n      }\n      return resultsClone;\n    },\n    setDefaultDispatchDateZ(dispatchProcessModel) {\n      Ember.set(this, 'isDispatched', false);\n      if (dispatchProcessModel?._data?.isDispatched) {\n        const todayZ = this.dateService.getStartOfDayZ();\n        Ember.set(this, 'dispatchDateZ', todayZ);\n        Ember.set(this, 'dispatchDate', this.dateService.getMoment(todayZ).format('YYYY-MM-DD'));\n        Ember.set(this, 'isDispatched', true);\n      }\n    },\n    hasUpdateStatus: Ember.computed('exportOption', function () {\n      if (this.exportOption === 'exportAndUpdateStatus') {\n        return true;\n      }\n      return false;\n    }),\n    hasSelected: Ember.computed('resultsToExport.[]', function () {\n      const resultsToExport = this?.resultsToExport ?? [];\n      if (RA.isNilOrEmpty(resultsToExport)) {\n        return false;\n      }\n      return true;\n    }),\n    exportLabel: Ember.computed('nextDispatchProcessCode', 'hasUpdateStatus', function () {\n      const nextDispatchProcessCode = this.nextDispatchProcessCode;\n      let label = this.intl.t('export');\n      if (this.hasUpdateStatus) {\n        label = this.intl.t('export data and update status');\n        if (nextDispatchProcessCode) {\n          const dispatchProcesses = this.dispatchProcesses || [];\n          const nextDispatchProcess = this.dispatchService.findDispatchProcess(dispatchProcesses, nextDispatchProcessCode);\n          if (nextDispatchProcess) {\n            let name = nextDispatchProcess.getData('name');\n            if (nextDispatchProcess.getData('translate')) {\n              name = this.intl.t(name);\n            }\n            label = `${label}: ${name}`;\n          }\n        }\n        return label;\n      }\n      return label;\n    }),\n    isDisableSetNextDispatchProcess: Ember.computed('nextDispatchProcessCode', 'hasUpdateStatus', function () {\n      if (!this.hasUpdateStatus) {\n        return false;\n      }\n      const nextDispatchProcessCode = this.nextDispatchProcessCode;\n      if (nextDispatchProcessCode) {\n        return false;\n      }\n      return true;\n    }),\n    resultsData: Ember.computed('resultsToExport.[]', function () {\n      const results = this.resultsToExport || [];\n      return R.pipe(R.map(result => {\n        const model = result.model;\n        const serializedModel = this.serialize(model);\n        const docType = serializedModel?.docType || '';\n        const docName = serializedModel?.docName || '';\n        if (R.equals(docType, 'sales') && R.equals(docName, 'invoices')) {\n          // add eInvoices to serializedModel\n          const eInvoicesModel = model?.eInvoicesCollection?._data?.invoices || [];\n          const eInvoices = {\n            // only need number for now\n            numbers: R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('number'), R.reject(RA.isNilOrEmpty), R.join(','))(eInvoicesModel)\n          };\n          serializedModel.eInvoices = eInvoices;\n        }\n        return serializedModel;\n      }))(results);\n    }),\n    setDispatchProcessAfterExportTask: (0, _emberConcurrency.task)(function* () {\n      const results = this.resultsToExport || [];\n      const models = R.pluck('model')(results);\n      const dispatchProcesses = this.dispatchProcesses || [];\n      const dispatchProcess = this.dispatchProcess;\n      const dispatchDate = this.dispatchDate;\n      const dispatchDateZ = this.dispatchDateZ;\n      const nextDispatchProcessCode = this.nextDispatchProcessCode;\n      if (dispatchProcess.getData('code') !== nextDispatchProcessCode) {\n        const nextDispatchProcess = this.dispatchService.findDispatchProcess(dispatchProcesses, nextDispatchProcessCode);\n        if (nextDispatchProcess) {\n          yield this.dispatchService.setDispatchProcessTask.perform({\n            model: models,\n            dispatchProcess: nextDispatchProcess,\n            dispatchDate,\n            dispatchDateZ\n          });\n          if (this.onRefresh) {\n            let period = false;\n            if (nextDispatchProcess.getData('code') === this.get('constants.dispatchStatus.dispatched')) {\n              period = this.dateService.getPeriod(dispatchDateZ);\n            }\n            this.onRefresh(nextDispatchProcess, period);\n          }\n        }\n      }\n      return false;\n    }).drop(),\n    actions: {\n      // addCustomWorksheetSpec () {\n      //   this.addCustomWorksheetSpec(...arguments)\n      // }\n      setDispatchDate() {\n        const dispatchDateZ = this.dispatchDateZ;\n        Ember.set(this, 'dispatchDate', this.dateService.getMoment(dispatchDateZ).format('YYYY-MM-DD'));\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setDefaultDispatchDateZ\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setDefaultDispatchDateZ\"), _obj), _obj));\n});","define(\"client/pods/components/dispatch/export-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gsfALZmz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@onCloseDialogAction\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@filters\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"resultsToExport\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-info\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"export data\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\" \\\"],[1,[28,\\\"count\\\",[[24,[\\\"resultsData\\\"]]],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"no_of_documents_unit\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onFetchUnpaginatedDispatchDataTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"dispatch-export-btn\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"export\\\",[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]]]]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"export/worksheet/editor\\\",[],[[\\\"@model\\\",\\\"@filters\\\",\\\"@hasSelected\\\",\\\"@onFetchSpecsTask\\\",\\\"@specsCollection\\\",\\\"@groupDocumentsByTransporter\\\",\\\"@source\\\",\\\"@formInitData\\\"],[[23,0,[\\\"model\\\"]],[23,7,[]],[23,0,[\\\"hasSelected\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchSpecsTask\\\"]]],null],[23,0,[\\\"specsCollection\\\"]],[23,0,[\\\"groupDocumentsByTransporterProxy\\\"]],\\\"dispatch\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"file name\\\",\\\"fileName\\\",\\\"dispatch\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"filename\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[1,\\\" .\\\",false],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-export-file-type\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"exportFileType\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"exportFileTypeLabel\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-exportOptions\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"exportOption\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isExporting\\\"]]],null],[23,2,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasUpdateStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"tooltip\\\",\\\"error\\\"],[true,[24,[\\\"errorMsg\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"defaultLabel\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[28,\\\"tt\\\",[\\\"status\\\"],null],\\\"_data.code\\\",\\\"_data.name\\\",[24,[\\\"nextDispatchProcessCode\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setDefaultDispatchDateZ\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"nextDispatchProcessCode\\\"]],\\\"dispatched\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSetDate\\\"],[\\\"dispatchDateZ\\\",[23,0,[]],[23,0,[\\\"dispatchDateZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setDispatchDate\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"disabled\\\",\\\"label\\\",\\\"translate\\\",\\\"hasBadge\\\",\\\"badge\\\",\\\"classNames\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[false,[24,[\\\"isDisableSetNextDispatchProcess\\\"]],[23,0,[\\\"exportLabel\\\"]],false,true,[28,\\\"count\\\",[[24,[\\\"resultsData\\\"]]],null],\\\"is-primary\\\",[28,\\\"or\\\",[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isExporting\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/export-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/export-excel-btn/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/date\", \"client/mixins/big\", \"client/mixins/adapters-new\", \"client/mixins/crud\", \"client/utils/nventor\", \"ramda-extension\", \"ramda-adjunct\", \"ramda\"], function (_exports, _emberConcurrency, _date, _big, _adaptersNew, _crud, _nventor, R_, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_adaptersNew.default, _big.default, _crud.default, _date.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    dispatchService: Ember.inject.service('dispatch'),\n    settingsService: Ember.inject.service('settings'),\n    excel: Ember.inject.service(),\n    bigService: Ember.inject.service('big'),\n    exportService: Ember.inject.service('export'),\n    dateService: Ember.inject.service('date'),\n    tagName: '',\n    isPosToggleReadonly: false,\n    isExporting: false,\n    nextDispatchProcessCode: '',\n    exportOrdersTotal: true,\n    exportOrdersDetails: true,\n    exportPayOnDeliveryOrders: true,\n    exportPayOnDeliveryTransporter: true,\n    exportPaidOrders: true,\n    exportPaidTransporter: true,\n    exportTransportersTotal: true,\n    isSaveBtnClicked: false,\n    dispatchProcesses: null,\n    documentStatuses: null,\n    filtersAdapterName: 'channels/shop/campaigns/filters',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['channels/shop/campaigns/commissions-date-ranges', 'dispatch/lists/processes', 'dispatch/lists/exportByStatuses', 'dispatch/lists/export-pos', 'dispatch/lists/export-file-type', 'documents/lists/statuses', 'documents/lists/statuses']);\n      this.set('documentStatuses', [this.constants.documentsStatus.final]);\n      const groupDocumentsByTransporter = this.settingsService.getProp('groupDocumentsByTransporter');\n      this.set('groupDocumentsByTransporter', groupDocumentsByTransporter);\n      this.fetchSpecsTask.perform();\n    },\n    fetchSpecsTask: (0, _emberConcurrency.task)(function* () {\n      const specsCollection = yield this.dispatchService.fetchSpecsTask.perform();\n      this.set('specsCollection', specsCollection);\n      return specsCollection;\n    }),\n    setup() {\n      this.set('customSource', this?.source || '');\n      this.set('customSourceKey', this?.sourceKey || '');\n      this.set('selectedDispatchProcess', []);\n      this.set('useOriginalCashCollectionInclTotal', true);\n      this.set('filename', this.getDefaultFilename());\n      this.set('dispatchProcesses', []);\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      let selectedPeriod = 'campaignPeriod';\n      let selectedDispatchPeriod = 'campaignPeriod';\n      if (!this.hasEndDate) {\n        selectedPeriod = 'lastMonth';\n        selectedDispatchPeriod = 'lastMonth';\n      }\n      this.set('selectedPeriod', selectedPeriod);\n      this.set('selectedDispatchPeriod', selectedDispatchPeriod);\n      this.set('thisMonthPeriod', this.dateService.getPeriod());\n      this.set('lastMonthPeriod', this.dateService.getPreviousPeriod());\n      this.set('customDateStartZ', this.thisMonthPeriod.monthStart);\n      this.set('customDateEndZ', this.thisMonthPeriod.monthEnd);\n      this.set('customDispatchDateStartZ', this.thisMonthPeriod.monthStart);\n      this.set('customDispatchDateEndZ', this.thisMonthPeriod.monthEnd);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('campaignFilters', campaignFilters);\n      if (this.dispatchProcess) {\n        const model = this.crud.setupDirty({\n          adapterName: 'dispatch/lists/processes',\n          model: this.dispatchProcess\n        });\n        const exportFileType = model.getData('exportFileType');\n        const exportFileTypeLabel = model.getData('exportFileType');\n        if (RA.isNilOrEmpty(exportFileType) || RA.isNilOrEmpty(exportFileTypeLabel)) {\n          model.setData('exportFileType', 'xlsx');\n          model.setData('exportFileTypeLabel', 'xlsx');\n        }\n        this.set('model', model);\n      }\n      const defaultExportSheets = this.get('model._data.defaultExportSheets') || [];\n      const defaultExportCustomSheets = this.get('model._data.defaultExportCustomSheets') || {};\n      this.set('sharedWorksheets', defaultExportSheets);\n      this.set('customWorksheets', defaultExportCustomSheets);\n      const dispatchFilters = this.search.setupFilters({\n        adapterName: 'dispatch/export/filters',\n        defaultFiltersData: {\n          count: 1000,\n          dispatchProcess: 'customSelected',\n          exportByStatus: 'byDispatchProcesses',\n          sort: [{\n            by: 'timestampZ_latest',\n            direction: 'DESC'\n          }]\n        }\n      });\n      this.set('dispatchFilters', dispatchFilters);\n      this.set('selectedDispatchProcess', []);\n      this.set('selectedDispatchProcessCode', []);\n      const isDispatchedDispatchProcess = R.find(R.pathEq(['_data', 'isDispatched'], true))(dispatchProcesses);\n      this.dispatchProcesses.pushObject(isDispatchedDispatchProcess?._data?.code);\n      this.addDispatchProcess(isDispatchedDispatchProcess);\n\n      // do it twice, once for normal date, once for dispatch date\n      this.updateDateParams(false);\n      this.updateDateParams(true);\n      if (this.campaignModel) {\n        this.setupPosToggle(this.campaignModel);\n      }\n    },\n    setupPosToggle(shopModel) {\n      const isPos = shopModel?.getData('hasPos') ?? false;\n      if (isPos) {\n        Ember.set(this, 'isPosToggleReadonly', false);\n        this.dispatchFilters.setData('exportPosType', 'include');\n      } else {\n        Ember.set(this, 'isPosToggleReadonly', true);\n        this.dispatchFilters.setData('exportPosType', 'exclude');\n      }\n    },\n    getDefaultFilename() {\n      const today = this.formatDate(this.getToday(), 'YYYYMMDD');\n      const returnString = `export-${today}`;\n      return returnString;\n    },\n    fetchExportDataTask: (0, _emberConcurrency.task)(function* ({\n      documentStatuses,\n      dispatchProcess,\n      period,\n      sourceKey\n    }) {\n      let dispatchProcessesCriterias = {};\n      R.forEach(dispatchProcess => {\n        const criterias = R_.dotPathOr([], '_data.criterias.dispatchProcesses')(dispatchProcess);\n        dispatchProcessesCriterias.dispatchProcesses = R.concat(dispatchProcessesCriterias?.dispatchProcesses || [], criterias);\n      })(this.selectedDispatchProcess);\n      const dispatchFilters = this.dispatchFilters;\n      const model = this.model;\n      const groupDocumentsByTransporter = this?.groupDocumentsByTransporter || false;\n      this.dispatchService.setFiltersBasedOnDispatchProcessModel({\n        filters: dispatchFilters,\n        model,\n        groupDocumentsByTransporter\n      });\n      dispatchFilters.setData('sourceKey', sourceKey);\n      const exportByStatus = dispatchFilters.getData('exportByStatus');\n      if (exportByStatus === 'byDispatchProcesses') {\n        dispatchFilters.setData('dispatchProcessesCriterias', dispatchProcessesCriterias);\n        dispatchFilters.setData('documentStatuses', []);\n      } else {\n        dispatchFilters.setData('documentStatuses', documentStatuses);\n        dispatchFilters.setData('dispatchProcessesCriterias', []);\n      }\n      const dateParams = this.dateParams || {};\n      if (this.hasUndispatchedSelected) {\n        if (RA.isNotNilOrEmpty(dateParams?.dateStart)) {\n          const dateStart = this.dateService.getStartOfDayZ(dateParams?.dateStart);\n          dispatchFilters.setData('dateStart', dateStart);\n        }\n        if (RA.isNotNilOrEmpty(dateParams?.dateEnd)) {\n          const dateEnd = this.dateService.getEndOfDayZ(dateParams?.dateEnd);\n          dispatchFilters.setData('dateEnd', dateEnd);\n        }\n      }\n      if (this.hasDispatchedSelected) {\n        if (RA.isNotNilOrEmpty(dateParams?.dispatchDateStart)) {\n          const dispatchDateStart = this.dateService.getStartOfDayZ(dateParams?.dispatchDateStart);\n          dispatchFilters.setData('dispatchDateStart', dispatchDateStart);\n        }\n        if (RA.isNotNilOrEmpty(dateParams?.dispatchDateEnd)) {\n          const dispatchDateEnd = this.dateService.getEndOfDayZ(dateParams?.dispatchDateEnd);\n          dispatchFilters.setData('dispatchDateEnd', dispatchDateEnd);\n        }\n      }\n      const adapterName = 'dispatch/export';\n      let results = yield this.crud.searchRecordsTask.perform({\n        adapterName,\n        filters: dispatchFilters,\n        rawResponse: true,\n        serverType: 'jobs'\n      });\n      results = R.map(result => {\n        const docType = result?.docType || '';\n        const docName = result?.docName || '';\n        if (R.equals(docType, 'sales') && R.equals(docName, 'invoices')) {\n          // modify e-invoice data for export\n          const eInvoices = R.clone(result?.eInvoices || []);\n          const newEInvoices = {\n            // only need number for now\n            numbers: R.pipe(R.pluck('number'), R.reject(RA.isNilOrEmpty), R.join(','))(eInvoices)\n          };\n          result.eInvoices = newEInvoices;\n        }\n        return result;\n      })(results);\n      return results;\n    }),\n    preExportTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction) {\n      this.set('isSaveBtnClicked', true);\n      if (this.isValidationError) {\n        return;\n      }\n\n      // ensure specsCollection is loaded before kicking off the export,\n      // so the save button stays in isRunning state during the initial fetch\n      if (!this.specsCollection) {\n        yield this.fetchSpecsTask.perform();\n      }\n      yield this.exportTask.perform(onCloseDialogAction);\n    }).drop(),\n    exportTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction) {\n      if (this.hasUpdateStatus && !this.nextDispatchProcessCode) {\n        this.set('errorMsg', 'please select');\n        return false;\n      }\n      this.set('isExporting', true);\n      try {\n        let filename = this.filename;\n        if (!filename) {\n          filename = this.getDefaultFilename();\n        }\n        const dispatchProcess = this.dispatchProcess;\n        const period = {\n          dateStart: this.dateStart,\n          dateEnd: this.dateEnd\n        };\n        const sourceKey = this.customSourceKey;\n        const documentStatuses = this.documentStatuses || [];\n        const specsModel = this.crud.setupNewRecord({\n          adapterName: 'specs'\n        });\n\n        // for sales report, default false\n        const isGroupDocs = R.pathOr(false, ['model', '_data', 'isGroupDocs'])(this);\n        const options = {\n          showSetDetails: R.pathOr(false, ['model', '_data', 'showSetDetails'])(this),\n          hideSetParents: R.pathOr(false, ['model', '_data', 'hideSetParents'])(this),\n          showProductSetWithChoices: R.pathOr(false, ['model', '_data', 'showProductSetWithChoices'])(this),\n          hideShippingFee: R.pathOr(false, ['model', '_data', 'hideShippingFee'])(this),\n          availableNormalSpecs: R.pathOr([], ['availableNormalSpecs'])(specsModel),\n          detailsProp: 'details',\n          isGroupDocs\n        };\n        let isGroupDocsFromDifferentShops = R.pathOr(false, ['model', '_data', 'isGroupDocsFromDifferentShops'])(this);\n        if (!sourceKey) {\n          isGroupDocsFromDifferentShops = true;\n        }\n        let serialized = yield this.fetchExportDataTask.perform({\n          documentStatuses,\n          dispatchProcess,\n          period,\n          sourceKey\n        });\n\n        // don't change the order _transformGroupDocsFromDifferentShops, then _transformGroupedDocs\n        serialized = this._transformGroupDocsFromSpecificShops({\n          serialized,\n          isGroupDocsFromDifferentShops,\n          sourceKey\n        });\n        serialized = this._transformGroupedDocs({\n          serialized,\n          isGroupDocs\n        });\n        const useOriginalCashCollectionInclTotal = this.useOriginalCashCollectionInclTotal;\n        serialized = this.exportService.calculateDocsNetReturns({\n          serialized,\n          useOriginalCashCollectionInclTotal,\n          options\n        });\n\n        // specsCollection is loaded asynchronously in init via fetchSpecsTask;\n        // re-fetch here if the user opened export before that resolved\n        let specsCollection = this.specsCollection;\n        if (!specsCollection) {\n          specsCollection = yield this.fetchSpecsTask.perform();\n        }\n        // bail out if the fetch returned nothing — the API may be down or the\n        // record may not exist; without specsCollection we cannot serialize\n        if (RA.isNilOrEmpty(specsCollection)) {\n          window.alert(this.intl.t('error occurred please try again later'));\n          return;\n        }\n        const serializedCustomSpecs = specsCollection.getSerializedByProp({\n          prop: 'custom',\n          worksheets: this.customWorksheets,\n          selected: true\n        });\n        let serializedSharedSpecs = specsCollection.getSerializedByProp({\n          prop: 'shared',\n          worksheets: this.sharedWorksheets,\n          selected: false\n        });\n        let newSerializedCustomSpecs = [];\n        R.forEach(customWorksheet => {\n          const key = R_.dotPathOr('', '_data.value', customWorksheet);\n          R.forEach(serializedCustomSpec => {\n            if (R.equals(key, serializedCustomSpec._key)) {\n              newSerializedCustomSpecs = R.append(R.merge(customWorksheet, serializedCustomSpec), newSerializedCustomSpecs);\n            }\n          })(serializedCustomSpecs);\n        })(this.customWorksheets);\n        const worksheets = [];\n        // const serialized = this.resultsData || []\n\n        // @TODO: move the logic into 3rdParty service\n        const showShopDotComCommissions = R.pathOr(null, ['model', 'settings', 'settingsModel', '_data', 'thirdParty', 'shopDotCom', 'enabled'])(this);\n        if (!showShopDotComCommissions) {\n          serializedSharedSpecs = R.map(specs => {\n            specs.specs = R.pipe(R.propOr([], 'specs'), R.map(specRow => {\n              return R.reject(R.propEq('prop', 'shopDotComCommission'))(specRow);\n            }))(specs);\n            return specs;\n          })(serializedSharedSpecs);\n        }\n        R.forEach(worksheet => {\n          const method = R.prop('method')(worksheet);\n          if (method) {\n            const sharedSheetToPush = this.exportService.exportByMethod({\n              specs: worksheet,\n              docData: serialized,\n              options\n            });\n            worksheets.push(sharedSheetToPush);\n          }\n        })(serializedSharedSpecs);\n        R.forEach(worksheet => {\n          const method = R.prop('method')(worksheet);\n          if (method) {\n            const customSheetToPush = this.exportService.exportByMethod({\n              specs: worksheet,\n              docData: serialized,\n              options\n            });\n            worksheets.push(customSheetToPush);\n          }\n        })(newSerializedCustomSpecs);\n        if (!R.isEmpty(worksheets)) {\n          yield this.excel.exportFile({\n            worksheets,\n            title: filename,\n            bookType: this?.model?._data?.exportFileType,\n            bookTypeLabel: this?.model?._data?.exportFileTypeLabel\n          });\n          if (this.hasUpdateStatus) {\n            yield this.setDispatchProcessAfterExportTask.perform();\n          }\n          onCloseDialogAction();\n        } else {\n          const msg = this.intl.t('no data to export');\n          window.alert(msg);\n        }\n      } finally {\n        this.set('isExporting', false);\n      }\n    }).drop(),\n    _exportOrders(specs, detailsSpecs = [], results, hasSummary = false) {\n      const columns = R.pluck('column', specs);\n      let detailProps = false;\n      if (!R.isEmpty(detailsSpecs)) {\n        detailProps = R.pluck('prop', detailsSpecs);\n      }\n      let index = 0;\n      // let totalQty = 0\n      let data = R.pipe(R.map(doc => {\n        index = index + 1;\n        let detailsRows = [];\n        if (this.exportOrdersDetails) {\n          detailsRows = R.propOr([], 'details', doc);\n        }\n        let inclTotalBig = this.newBig(0);\n        // detailsRows = R.pipe(\n\n        // @TODO: filter by product/tag/supplier\n        // R.filter(\n        //   detail => {\n        //     if (R.pathEq(['_data', 'itemKey'], '3040094470030', detail)) {\n        //       totalQty = totalQty + parseInt(R.path(['_data', 'qty'], detail))\n        //     }\n\n        //     return R.pathEq(['_data', 'itemKey'], '3040094470030', detail) || R.pathEq(['_data', 'item'], '運費', detail)\n        //   }\n        // ),\n        detailsRows = R.map(detailData => {\n          inclTotalBig = inclTotalBig.plus(detailData.postDiscInclAmt);\n          return this._getDataBySpecs({\n            data: detailData\n          }, detailsSpecs);\n        })(detailsRows);\n\n        // return R.pipe(\n        //   R.pick(detailProps),\n        //   R.values,\n        //   R.concat(['']),\n        //   R.concat([''])\n        // )(detailData)\n        // })\n        // )(detailsRows)\n        // }\n        const docInfoRow = this._getDataBySpecs({\n          data: doc,\n          inclTotalBig,\n          index\n        }, specs);\n        if (detailProps) {\n          return R.concat([docInfoRow], detailsRows);\n        } else {\n          return [docInfoRow];\n        }\n      }), R.unnest, R.concat([columns]))(results);\n      if (hasSummary && detailProps) {\n        data = this._summaryRows(data, results);\n      }\n      return data;\n    },\n    _summaryRows(data, results) {\n      const intl = this.intl;\n      const groupByItem = doc => {\n        const itemKey = R.prop('itemKey')(doc);\n        if (itemKey) {\n          return itemKey;\n        }\n        return R.prop('item')(doc);\n      };\n      let grandTotal = 0;\n      data = R.pipe(R.pluck('details'), R.flatten, R.groupBy(groupByItem), R.mapObjIndexed(groupData => {\n        // const groupTotalQty = parseInt(this.sumPropAndAutoRound(0, 'qty', groupData)) || 0\n        const groupTotalInclAmt = parseInt(this.sumPropAndAutoRound(0, 'postDiscInclAmt', groupData)) || 0;\n        const groupedByPrice = R.groupBy(R.prop('discInclPrice'))(groupData);\n        const item = R.pipe(R.head, R.propOr('', 'item'))(groupData);\n        const itemCode = R.pipe(R.head, R.propOr('', 'itemCode'))(groupData);\n        const byPricesRows = R.pipe(R.mapObjIndexed((byPriceGroupData, groupPrice) => {\n          const groupTotalQty = parseInt(this.sumPropAndAutoRound(0, 'qty', byPriceGroupData)) || 0;\n          const groupTotalInclAmt = parseInt(this.sumPropAndAutoRound(0, 'postDiscInclAmt', byPriceGroupData)) || 0;\n          groupPrice = R.pipe(this.bigService.toFixed(2), parseInt)(groupPrice);\n          return ['', item, itemCode, groupTotalQty, groupPrice, groupTotalInclAmt];\n        }), R.values)(groupedByPrice);\n        grandTotal = grandTotal + groupTotalInclAmt;\n        return byPricesRows;\n        // let mainRow = [\n        //   groupTotalQty,\n        //   item,\n        //   itemCode,\n        //   groupTotalInclAmt\n        // ]\n\n        // // if (byPricesRows.length > 1) {\n        // mainRow = R.concat([mainRow])(byPricesRows)\n        // return mainRow\n        // }\n\n        // return [mainRow]\n      }), R.values, R.unnest, R.concat([[], ['', intl.t('product'), intl.t('code'), intl.t('qty'), intl.t('price'), intl.t('inclusive amount')]]), R.concat(data), R.append([]))(results);\n      data = R.append(['', '', '', intl.t('total'), grandTotal], data);\n      return data;\n    },\n    _exportSummary(today, specs, detailSpecs = [], results, hasSummary = false) {\n      // const intl = this.get('intl')\n\n      const allSpecs = R.concat(specs, detailSpecs);\n      const columns = R.pluck('column', allSpecs);\n      // const props = R.pluck('prop', specs)\n      if (!R.is(Array)(detailSpecs)) {\n        detailSpecs = [detailSpecs];\n      }\n      let detailProps = false;\n      if (!R.isEmpty(detailSpecs)) {\n        detailProps = R.pipe(R.pluck('prop'), R.uniq)(detailSpecs);\n      }\n      let index = 0;\n      // let totalQty = 0\n      const data = R.pipe(R.map(doc => {\n        index = index + 1;\n        let detailsRows = R.propOr([], 'details', doc);\n        detailsRows = R.pipe(R.map(R.pick(['item', 'qty'])), R.groupBy(R.prop('item')), R.mapObjIndexed(group => {\n          return R.reduce((acc, detail) => {\n            acc.item = detail.item;\n            const qty = parseInt(detail.qty);\n            acc.qty = qty + acc.qty;\n            return acc;\n          }, {\n            qty: 0\n          })(group);\n        }), R.values, R.flatten)(detailsRows);\n        detailsRows = this._getDataBySpecs({\n          data: detailsRows\n        }, detailSpecs);\n        const docInfoRow = this._getDataBySpecs({\n          data: doc,\n          index,\n          today\n        }, specs);\n        if (detailProps) {\n          return [R.concat([docInfoRow[0], docInfoRow[1]], detailsRows[0])];\n        } else {\n          return [docInfoRow];\n        }\n      }), R.unnest, R.concat([columns]))(results);\n      return data;\n    },\n    _getDataBySpecs({\n      data,\n      inclTotalBig = false,\n      index,\n      today\n    }, specs) {\n      return R.map(spec => {\n        let props = R.prop('prop', spec);\n        if (!R.is(Array, props)) {\n          props = [props];\n        }\n        const values = R.map(prop => {\n          return this._getPropData({\n            today,\n            index,\n            data,\n            spec,\n            prop,\n            inclTotalBig\n          });\n        })(props);\n        if (props.length > 1) {\n          const joinWith = R.prop('joinWith', spec) || '-';\n          return R.pipe(R.reject(RA.isNilOrEmpty), R.join(joinWith))(values);\n        }\n        return _nventor.default.safeHeadOr('', values);\n      }, specs);\n    },\n    _getPropData({\n      today,\n      index,\n      data,\n      spec,\n      prop,\n      inclTotalBig\n    }) {\n      const intl = this.intl;\n      if (prop == null) {\n        return '';\n      }\n      if (spec.returnProp) {\n        return R.propOr('', spec.returnProp)(data);\n      }\n      const transform = R.prop('transform')(spec);\n      let value = R_.dotPathOr('', prop, data);\n      if (prop === '_index_') {\n        value = index;\n      }\n      if (prop === '_today_') {\n        return today;\n      }\n      if (prop === 'paymentMethodKey') {\n        const v = R_.dotPathOr('', prop, data);\n        if (v) {\n          value = intl.t(v);\n        }\n      }\n      if (prop === '_inclTotal_' && inclTotalBig) {\n        value = inclTotalBig.toFixed(0);\n      }\n      if (transform) {\n        value = transform(value, data);\n      }\n      return value;\n    },\n    exportData({\n      results,\n      filterByProp,\n      filterValue,\n      isReject = false,\n      fromNo,\n      toNo\n    } = {}) {\n      if (fromNo != null && toNo != null) {\n        results = R.pipe(R.drop(fromNo), R.take(toNo))(results);\n      }\n      let filterByPath = filterByProp;\n      if (!R.is(Array, filterByProp)) {\n        filterByPath = [filterByProp];\n      }\n      if (filterByProp) {\n        if (isReject) {\n          results = R.reject(R.pathEq(filterByPath, filterValue))(results);\n        } else {\n          results = R.filter(R.pathEq(filterByPath, filterValue))(results);\n        }\n      }\n      return results;\n    },\n    hasUpdateStatus: Ember.computed('exportOption', function () {\n      if (this.exportOption === 'exportAndUpdateStatus') {\n        return true;\n      }\n      return false;\n    }),\n    hasDispatchedSelected: Ember.computed('dispatchProcesses.[]', 'dispatchFilters._data.exportByStatus', function () {\n      const exportByStatus = R.pathOr('', ['dispatchFilters', '_data', 'exportByStatus'])(this);\n      if (R.equals(exportByStatus, 'byDispatchProcesses')) {\n        const dispatchProcesses = this?.dispatchProcesses || [];\n        if (R.includes('dispatched', dispatchProcesses)) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    hasUndispatchedSelected: Ember.computed('dispatchProcesses.[]', 'dispatchFilters._data.exportByStatus', function () {\n      const exportByStatus = R.pathOr('', ['dispatchFilters', '_data', 'exportByStatus'])(this);\n      if (R.equals(exportByStatus, 'byDispatchProcesses')) {\n        let dispatchProcesses = R.reject(R.equals('dispatched'))(this?.dispatchProcesses || []);\n        if (RA.isNotNilOrEmpty(dispatchProcesses)) {\n          return true;\n        }\n      } else if (R.equals(exportByStatus, 'byDocumentsStatuses')) {\n        return true;\n      }\n      return false;\n    }),\n    allowExport: Ember.computed('hasDispatchedSelected', 'hasUndispatchedSelected', 'dateParams', function () {\n      const hasDispatchedSelected = this.hasDispatchedSelected;\n      const hasUndispatchedSelected = this.hasUndispatchedSelected;\n      const dateParams = this.dateParams || {};\n      const dateStart = this.dateService.getStartOfDayZ(dateParams?.dateStart || '');\n      const dateEnd = this.dateService.getEndOfDayZ(dateParams?.dateEnd || '');\n      const dispatchDateStart = this.dateService.getStartOfDayZ(dateParams?.dispatchDateStart || '');\n      const dispatchDateEnd = this.dateService.getEndOfDayZ(dateParams?.dispatchDateEnd || '');\n      if (hasDispatchedSelected) {\n        if (RA.isNilOrEmpty(dispatchDateStart) || RA.isNilOrEmpty(dispatchDateEnd)) {\n          return false;\n        }\n        return true;\n      }\n      if (hasUndispatchedSelected) {\n        if (RA.isNilOrEmpty(dateStart) || RA.isNilOrEmpty(dateEnd)) {\n          return false;\n        }\n        return true;\n      }\n      return false;\n    }),\n    // resultsData: computed('filteredResults.[]', function () {\n    //   const results = this.filteredResults\n    //   return R.pipe(\n    //     R.map(result => {\n    //       const model = result.model\n    //       return this.serialize(model)\n    //     })\n    //   )(results)\n    // }),\n\n    isValidationError: Ember.computed('sourceKey', 'dispatchProcesses.[]', 'documentStatuses', function () {\n      const sourceKey = this.customSourceKey;\n      const selectedDispatchProcess = this.selectedDispatchProcess;\n      const documentStatuses = this.documentStatuses;\n      if (RA.isNilOrEmpty(selectedDispatchProcess) && RA.isNilOrEmpty(this.documentStatuses)) {\n        // if (RA.isNilOrEmpty(sourceKey) || RA.isNilOrEmpty(selectedDispatchProcess)) {\n        return true;\n      }\n      return false;\n    }),\n    addDispatchProcess(dispatchProcess) {\n      let selectedDispatchProcess = this.get('selectedDispatchProcess') || [];\n      selectedDispatchProcess = R.append(dispatchProcess, selectedDispatchProcess);\n      this.set('selectedDispatchProcess', selectedDispatchProcess);\n    },\n    _sumProperty({\n      property,\n      docData,\n      groups = []\n    }) {\n      const roundingCurrency = docData.roundingCurrency || 0;\n      let totalBig = this.newBig(docData[property]);\n      R.forEach(group => {\n        const groupTotalBig = this.newBig(group[property]);\n        totalBig = totalBig.add(groupTotalBig);\n      })(groups);\n      return totalBig.toFixed(roundingCurrency);\n    },\n    _transformGroupDocsFromSpecificShops({\n      serialized,\n      isGroupDocsFromDifferentShops = true,\n      sourceKey = ''\n    }) {\n      if (!sourceKey) {\n        return serialized;\n      }\n      return R.map(docData => {\n        const groups = R.propOr([], 'groups')(docData);\n        let newGroups = groups;\n        if (sourceKey) {\n          // @NOTE: need to remove child docs inside master, because it cause duplicate (API dont use aql.filter('d.isGrouped != true')) when have sourceKey\n          // need to reject only from same shop\n          newGroups = R.reject(R.propEq('sourceKey', sourceKey))(groups);\n        }\n        if (!isGroupDocsFromDifferentShops) {\n          newGroups = R.filter(R.propEq('sourceKey', sourceKey))(newGroups);\n        }\n        docData.groups = newGroups;\n        return docData;\n      })(serialized);\n    },\n    _transformGroupedDocs({\n      serialized,\n      isGroupDocs = true\n    }) {\n      const toSumProps = ['cashCollectionInclTotal', 'discExclTotal', 'discInclTotal', 'exclTotal', 'exclTotalOnSale', 'inclTotal', 'inclTotalOnSale', 'netInclTotal', 'paidInclTotal', 'preDiscExclTotal', 'preDiscInclTotal', 'postDiscExclTotal', 'postDiscInclTotal', 'returnRewardAdjustmentAmount', 'returnRewardAdjustmentPoints', 'rewardAmountTotal', 'rewardAmountTotalWithoutPromoCode', 'rewardExclTotal', 'rewardInclTotal', 'rewardPointApplied', 'rewardPointEarned', 'taxTotal'];\n      if (isGroupDocs) {\n        serialized = R.map(docData => {\n          const groups = R.propOr([], 'groups')(docData);\n          const paymentMethodKey = R.propOr('', 'paymentMethodKey')(docData);\n          let details = R.propOr([], 'details')(docData);\n          let paymentMethodKeys = [paymentMethodKey];\n          let unpaidInclTotal = this.newBig(0);\n          if (docData.paymentMethodKey === 'cash') {\n            unpaidInclTotal = this.newBig(docData.cashCollectionInclTotal);\n          }\n          R.forEach(group => {\n            const groupDetails = R.propOr([], 'details')(group);\n            details = R.concat(details, groupDetails);\n            const groupPaymentMethodKey = R.propOr('', 'paymentMethodKey')(group);\n            paymentMethodKeys = R.append(groupPaymentMethodKey, paymentMethodKeys);\n            if (group.paymentMethodKey === 'cash') {\n              unpaidInclTotal = unpaidInclTotal.add(group.cashCollectionInclTotal);\n            }\n          })(groups);\n          R.forEach(property => {\n            docData[property] = this._sumProperty({\n              property,\n              docData,\n              groups\n            });\n          })(toSumProps);\n          docData.details = details;\n          docData.paymentMethodKey = R.uniq(paymentMethodKeys) || [];\n          docData.unpaidInclTotal = unpaidInclTotal.toFixed(docData.roundingCurrency);\n          return docData;\n        })(serialized);\n      } else if (!isGroupDocs) {\n        serialized = R.pipe(R.reduce((obj, docData) => {\n          const groups = R.propOr([], 'groups')(docData);\n          const docDataMaster = [R.omit(['groups'], docData)]; // should be array\n\n          const docDataMasterAndChilds = R.concat(docDataMaster, groups);\n          return R.concat(obj, docDataMasterAndChilds);\n        }, []), R.flatten)(serialized);\n      }\n      return serialized;\n    },\n    commissionDateRanges: Ember.computed('crud.lists.channels-shop-campaigns-commissions-date-ranges', 'hasEndDate', function () {\n      const commissionDateRanges = this.crud?.lists['channels-shop-campaigns-commissions-date-ranges'] || [];\n      const hasEndDate = this.hasEndDate;\n      if (!hasEndDate) {\n        return R.reject(model => R.equals(model?._data?.value, 'campaignPeriod'))(commissionDateRanges);\n      }\n      return commissionDateRanges;\n    }),\n    hasEndDate: Ember.computed('model._data.dateEndZ', function () {\n      const periodDateEndZ = this?.campaignModel?._data?.dateEndZ;\n      if (RA.isNilOrEmpty(periodDateEndZ)) {\n        return false;\n      }\n      return true;\n    }),\n    updateDateParams(isDispatchDate) {\n      let customDateStartParam = 'customDateStartZ';\n      let customDateEndParam = 'customDateEndZ';\n      let shownDateStartParam = 'shownDateStart';\n      let shownDateEndParam = 'shownDateEnd';\n      let dateStartParam = 'dateStart';\n      let dateEndParam = 'dateEnd';\n      let selectedPeriodParam = 'selectedPeriod';\n      if (isDispatchDate) {\n        customDateStartParam = 'customDispatchDateStartZ';\n        customDateEndParam = 'customDispatchDateEndZ';\n        shownDateStartParam = 'shownDispatchDateStart';\n        shownDateEndParam = 'shownDispatchDateEnd';\n        dateStartParam = 'dispatchDateStart';\n        dateEndParam = 'dispatchDateEnd';\n        selectedPeriodParam = 'selectedDispatchPeriod';\n      }\n      const model = this?.campaignModel || {};\n      const selectedPeriod = this.get(selectedPeriodParam);\n      let periodDateStartZ;\n      let periodDateEndZ;\n      if (RA.isNotNilOrEmpty(model)) {\n        periodDateStartZ = model._data.dateStartZ;\n        periodDateEndZ = model._data.dateEndZ;\n      }\n      const customDateStartZ = this.get(customDateStartParam);\n      const customDateEndZ = this.get(customDateEndParam);\n      const dateParams = this.dateParams || {};\n      let dateStartString = '';\n      let dateEndString = '';\n      if (R.equals(selectedPeriod, 'campaignPeriod')) {\n        // shouldn't have any dateStart and dateEnd when using campaignPeriod (but still show the shownDateParam)\n        dateParams[dateStartParam] = '';\n        dateParams[dateEndParam] = '';\n        if (periodDateStartZ) {\n          this.set(shownDateStartParam, this.dateService.formatDate(periodDateStartZ));\n        }\n        if (periodDateEndZ) {\n          this.set(shownDateEndParam, this.dateService.formatDate(periodDateEndZ));\n        }\n        return;\n      }\n      if (R.equals(selectedPeriod, 'customDate')) {\n        dateStartString = customDateStartZ;\n        dateEndString = customDateEndZ;\n      }\n      if (R.equals(selectedPeriod, 'thisMonth')) {\n        dateStartString = this.thisMonthPeriod.monthStartZ;\n        dateEndString = this.thisMonthPeriod.monthEndZ;\n      }\n      if (R.equals(selectedPeriod, 'lastMonth')) {\n        dateStartString = this.lastMonthPeriod.monthStartZ;\n        dateEndString = this.lastMonthPeriod.monthEndZ;\n      }\n\n      // default date range if not specified is this month start - end for now\n      if (RA.isNilOrEmpty(dateStartString)) {\n        dateStartString = this.thisMonthPeriod.monthStartZ;\n      }\n      if (RA.isNilOrEmpty(dateEndString)) {\n        dateEndString = this.thisMonthPeriod.monthEndZ;\n      }\n      let dateEnd;\n      let dateStart;\n      if (dateStartString > dateEndString) {\n        dateEnd = this.dateService.formatDate(dateStartString);\n        dateStart = this.dateService.formatDate(dateEndString);\n      } else {\n        dateEnd = this.dateService.formatDate(dateEndString);\n        dateStart = this.dateService.formatDate(dateStartString);\n      }\n      dateParams[dateStartParam] = dateStart;\n      dateParams[dateEndParam] = dateEnd;\n      this.set('dateParams', dateParams);\n      this.set(shownDateStartParam, dateStart);\n      this.set(shownDateEndParam, dateEnd);\n      if (R.equals(selectedPeriod, 'customDate')) {\n        this.set(customDateStartParam, dateStart);\n        this.set(customDateEndParam, dateEnd);\n      }\n    },\n    actions: {\n      cancel(onCloseDialogAction) {\n        onCloseDialogAction();\n      },\n      selectDispatchProcess(dispatchProcess) {\n        this.set('dispatchProcess', dispatchProcess);\n      },\n      addDispatchProcess(dispatchProcess) {\n        this.addDispatchProcess(dispatchProcess);\n      },\n      removeDispatchProcess(dispatchProcess) {\n        let selectedDispatchProcess = this.get('selectedDispatchProcess') || [];\n        selectedDispatchProcess = R.reject(selected => R.pathEq(['_data', 'code'], selected?._data?.code || '', dispatchProcess), selectedDispatchProcess);\n        this.set('selectedDispatchProcess', selectedDispatchProcess);\n      },\n      loadShopSource(shop) {\n        this.set('customSourceKey', shop.getData('_key'));\n        this.setupPosToggle(shop);\n      },\n      unloadShopSource() {\n        Ember.set(this, 'isPosToggleReadonly', false);\n        this.set('customSourceKey', '');\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setup\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setup\"), _obj), _applyDecoratedDescriptor(_obj, \"updateDateParams\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"updateDateParams\"), _obj), _obj));\n});","define(\"client/pods/components/dispatch/export-excel-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"haBSPUPF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@errors\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasModalDialogHeader\\\",\\\"hasSectionWrapper\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,false,\\\"export data\\\",[28,\\\"fn\\\",[[23,0,[\\\"setup\\\"]]],null]]],{\\\"statements\\\":[[4,\\\"modals/modal-dialog/modal-header\\\",null,[[\\\"onClose\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"export data\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@isUserAllowed\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"reportsDashboard\\\",true,[23,4,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"reportsDashboard\\\",[23,6,[]],[23,4,[]],[23,5,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"exportData_group\\\",[23,2,[]],[23,4,[]],\\\"export data\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,2,[]],\\\"shop\\\",\\\"shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,[23,0,[\\\"shopsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"customSource\\\"]],[23,0,[\\\"customSourceKey\\\"]],false,false,\\\"channels/shop/campaigns/search-results\\\",[23,0,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"resultsProperty\\\"],[\\\"channels/shop/campaigns\\\",[23,0,[\\\"campaignFilters\\\"]],\\\"shopsList\\\"]]],[23,0,[\\\"customSource\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadShopSource\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadShopSource\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"customSourceKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,2,[]],\\\"isGroupDocsFromDifferentShops\\\",[23,3,[]],\\\"show grouped documents from different shops\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"isGroupDocsFromDifferentShops\\\"]],true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,2,[]],\\\"exportByStatus\\\",[23,3,[]],\\\"export by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-exportByStatuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"dispatchFilters\\\",\\\"_data\\\",\\\"exportByStatus\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[1,[23,0,[\\\"selectedPodModel\\\",\\\"_data\\\",\\\"podKey\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[1,[23,0,[\\\"selectedPodModel\\\",\\\"_data\\\",\\\"company\\\"]],false],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"beta.pos\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@errors\\\"],[[23,2,[]],\\\"isPos\\\",\\\"pos\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"isPosToggleReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-export-pos\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"dispatchFilters\\\",\\\"_data\\\",\\\"exportPosType\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,2,[]],\\\"status\\\",\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"dispatchFilters\\\",\\\"_data\\\",\\\"exportByStatus\\\"]],\\\"byDispatchProcesses\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@allowEmpty\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@itemClassNames\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],\\\"list-selector\\\",\\\"_data.code\\\",\\\"_data.name\\\",[23,0,[]],\\\"dispatchProcesses\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true,[28,\\\"action\\\",[[23,0,[]],\\\"addDispatchProcess\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeDispatchProcess\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@allowEmpty\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@itemClassNames\\\",\\\"@multiSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-statuses\\\"]],\\\"list-selector\\\",\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[]],\\\"documentStatuses\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,2,[]],\\\"status\\\",[23,0,[\\\"dispatchFilters\\\",\\\"_data\\\",\\\"exportByStatus\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"dispatchFilters\\\",\\\"_data\\\",\\\"exportByStatus\\\"]],\\\"byDispatchProcesses\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],false,[23,0,[\\\"dispatchProcesses\\\"]],\\\"_data.code\\\",\\\"_data.name\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-statuses\\\"]],true,[23,0,[\\\"documentStatuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasUndispatchedSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,2,[]],\\\"date\\\",\\\"date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"commissionDateRanges\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"selectedPeriod\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]],false],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedPeriod\\\"]],\\\"customDate\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isDateRange\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]],false],null],true]]],[0,\\\"\\\\n            ~\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isDateRange\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]],false],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@isReadonly\\\",\\\"@date\\\"],[true,[23,0,[\\\"shownDateStart\\\"]]]]],[0,\\\"\\\\n            ~\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@isReadonly\\\",\\\"@date\\\"],[true,[23,0,[\\\"shownDateEnd\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasDispatchedSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,2,[]],\\\"date\\\",\\\"dispatch date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"commissionDateRanges\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"selectedDispatchPeriod\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]],true],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedDispatchPeriod\\\"]],\\\"customDate\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isDateRange\\\"],[\\\"customDispatchDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDispatchDateStartZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]],true],null],true]]],[0,\\\"\\\\n            ~\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isDateRange\\\"],[\\\"customDispatchDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDispatchDateEndZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]],true],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@isReadonly\\\",\\\"@date\\\"],[true,[23,0,[\\\"shownDispatchDateStart\\\"]]]]],[0,\\\"\\\\n            ~\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@isReadonly\\\",\\\"@date\\\"],[true,[23,0,[\\\"shownDispatchDateEnd\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,2,[]],\\\"fileName\\\",\\\"file name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"filename\\\"]]]]],[0,\\\"\\\\n        \\\"],[1,\\\" .\\\",false],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-export-file-type\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"exportFileType\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"exportFileTypeLabel\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasDispatchedSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,2,[]],\\\"useOriginalCashCollectionInclTotal\\\",\\\"use original amount at dispatch date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,0,[\\\"useOriginalCashCollectionInclTotal\\\"]],true,false]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"export/worksheet/editor\\\",[],[[\\\"@model\\\",\\\"@groupDocumentsByTransporter\\\",\\\"@onFetchSpecsTask\\\",\\\"@specsCollection\\\",\\\"@filters\\\",\\\"@source\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[[23,0,[\\\"model\\\"]],[23,0,[\\\"groupDocumentsByTransporter\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchSpecsTask\\\"]]],null],[23,0,[\\\"specsCollection\\\"]],[23,0,[\\\"dispatchFilters\\\"]],\\\"reports\\\",[23,2,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[28,\\\"or\\\",[[24,[\\\"preExportTask\\\",\\\"isRunning\\\"]],[24,[\\\"exportTask\\\",\\\"isRunning\\\"]],[24,[\\\"isExporting\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\",\\\"disabled\\\"],[[28,\\\"or\\\",[[24,[\\\"preExportTask\\\",\\\"isRunning\\\"]],[24,[\\\"exportTask\\\",\\\"isRunning\\\"]],[24,[\\\"isExporting\\\"]],[23,0,[\\\"fetchSpecsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"preExportTask\\\"]],[23,1,[]]],null],[28,\\\"or\\\",[[28,\\\"not\\\",[[24,[\\\"allowExport\\\"]]],null],[23,0,[\\\"fetchSpecsTask\\\",\\\"isRunning\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isSaveBtnClicked\\\"]],[23,0,[\\\"isValidationError\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"translate\\\"],[\\\"shop or dispatch status is empty!\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/export-excel-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/export-report-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-extension\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R_, RA, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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  let DispatchExportReportBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('date'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _class = class DispatchExportReportBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor4, this);\n      _initializerDefineProperty(this, \"export\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"search\", _descriptor7, this);\n      _initializerDefineProperty(this, \"fileName\", _descriptor8, this);\n      _initializerDefineProperty(this, \"exportData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"today\", _descriptor0, this);\n      _initializerDefineProperty(this, \"campaignKeys\", _descriptor1, this);\n      _initializerDefineProperty(this, \"mm\", _descriptor10, this);\n      _initializerDefineProperty(this, \"yyyy\", _descriptor11, this);\n      _initializerDefineProperty(this, \"customDateStartZ\", _descriptor12, this);\n      _initializerDefineProperty(this, \"customDateEndZ\", _descriptor13, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedCampaigns\", _descriptor15, this);\n      _initializerDefineProperty(this, \"exportDateType\", _descriptor16, this);\n      _initializerDefineProperty(this, \"customDateRangeInMonth\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isAllCampaignSelected\", _descriptor18, this);\n      _initializerDefineProperty(this, \"maxSelectableCount\", _descriptor19, this);\n      _defineProperty(this, \"adapterName\", 'channels/shop/campaigns');\n      _defineProperty(this, \"filtersAdapterName\", 'channels/shop/campaigns/filters');\n      this.crud.addLists(this, ['reports/lists/export-date-type']);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          count: 10\n        }\n      });\n      this.filters = filters;\n      this.today = this.dateService.formatDate(this.dateService.getToday(), 'YYYYMMDD');\n      this.fileName = this.getDefaultFilename();\n      this.setDefaultPeriod();\n    }\n    setDefaultPeriod() {\n      // set default month to last month\n      const previousMonth = this.dateService.getPreviousPeriod();\n      this.mm = previousMonth?.mm;\n      this.yyyy = previousMonth?.yyyy;\n\n      // need to set default customDate too?\n    }\n    getDefaultFilename() {\n      return `${this.intl.t('campaign reports')}-${this.today}`;\n    }\n    *fetchDataTask() {\n      const campaignKeys = this.campaignKeys || [];\n      let dateStart = '';\n      let dateEnd = '';\n      if (this.exportDateType === 'month') {\n        const mm = this.mm;\n        const yyyy = this.yyyy;\n        if (mm && yyyy) {\n          const monthEnd = this.dateService.getMonthEnd(yyyy, mm).format('YYYY-MM-DD');\n          dateStart = `${yyyy}-${mm}-01`;\n          dateEnd = monthEnd;\n        }\n      }\n      if (this.exportDateType === 'customDate') {\n        const customDateStartZ = R.clone(this?.customDateStartZ || '');\n        const customDateEndZ = R.clone(this?.customDateEndZ || '');\n        if (customDateStartZ) {\n          dateStart = this.dateService.getMoment(customDateStartZ).format('YYYY-MM-DD');\n          dateEnd = this.dateService.getMoment(customDateEndZ).format('YYYY-MM-DD');\n        }\n      }\n      const response = yield this.server.callJobs('GET', 'api/protected/channels/shop/campaigns/export/reports', {\n        exportDateType: this.exportDateType,\n        campaignKeys,\n        dateStart,\n        dateEnd\n      });\n      const results = response?.data || [];\n      const specsForSummary = [{\n        column: this.intl.t('name'),\n        prop: 'name'\n      }, {\n        column: this.intl.t('shop url'),\n        prop: 'shopUrl'\n      }, {\n        column: this.intl.t('date start'),\n        prop: 'dateStart'\n      }, {\n        column: this.intl.t('date end'),\n        prop: 'dateEnd'\n      }, {\n        column: `${this.intl.t('order value')} (${this.intl.t('qty')})`,\n        prop: 'report.revenue.invoices.docCount',\n        transform(value, row, spec) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return Number(value);\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('order value')} (${this.intl.t('tax exclusive')})`,\n        prop: 'report.revenue.net.exclTotal',\n        transform(value, row, spec) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return Number(value);\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('order value')} (${this.intl.t('tax inclusive')})`,\n        prop: 'report.revenue.net.inclTotal',\n        transform(value, row, spec) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return Number(value);\n          }\n          return 0;\n        }\n      }, {\n        column: this.intl.t('total commission'),\n        prop: 'commissionsData.grandCommissionTotal',\n        transform(value, row, spec) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return Number(value);\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('total commission')} (%)`,\n        prop: 'commissionsData.commissionsPercentageAvg',\n        transform(value, row, spec) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return Number(value);\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('dispatched')} (${this.intl.t('qty')})`,\n        prop: 'report.segments.status.invoices',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const statusObj = R.find(R.pathEq(['segmentValue', 'dispatchStatus'], 'dispatched'))(value);\n          if (RA.isNotNilOrEmpty(statusObj)) {\n            // should be qty or docCount?\n            return Number(statusObj?.docCount || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('dispatched')} (${this.intl.t('tax exclusive')})`,\n        prop: 'report.segments.status.invoices',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const statusObj = R.find(R.pathEq(['segmentValue', 'dispatchStatus'], 'dispatched'))(value);\n          if (RA.isNotNilOrEmpty(statusObj)) {\n            return Number(statusObj?.postDiscExclAmt || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('dispatched')} (${this.intl.t('tax inclusive')})`,\n        prop: 'report.segments.status.invoices',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const statusObj = R.find(R.pathEq(['segmentValue', 'dispatchStatus'], 'dispatched'))(value);\n          if (RA.isNotNilOrEmpty(statusObj)) {\n            return Number(statusObj?.postDiscInclAmt || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('undispatched')} (${this.intl.t('qty')})`,\n        prop: 'report.segments.status.invoices',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const statusObj = R.find(R.pathEq(['segmentValue', 'dispatchStatus'], 'undispatched'))(value);\n          if (RA.isNotNilOrEmpty(statusObj)) {\n            // should be qty or docCount?\n            return Number(statusObj?.docCount || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('undispatched')} (${this.intl.t('tax exclusive')})`,\n        prop: 'report.segments.status.invoices',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const statusObj = R.find(R.pathEq(['segmentValue', 'dispatchStatus'], 'undispatched'))(value);\n          if (RA.isNotNilOrEmpty(statusObj)) {\n            return Number(statusObj?.postDiscExclAmt || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('undispatched')} (${this.intl.t('tax inclusive')})`,\n        prop: 'report.segments.status.invoices',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const statusObj = R.find(R.pathEq(['segmentValue', 'dispatchStatus'], 'undispatched'))(value);\n          if (RA.isNotNilOrEmpty(statusObj)) {\n            return Number(statusObj?.postDiscInclAmt || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('export_paid-total')} (${this.intl.t('qty')})`,\n        prop: 'report.segments.paidStatus.net',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const paidStatusObj = R.find(R.pathEq(['segmentValue'], 'paid'))(value);\n          if (RA.isNotNilOrEmpty(paidStatusObj)) {\n            // should be qty or docCount?\n            return Number(paidStatusObj?.docCount || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('export_paid-total')} (${this.intl.t('tax exclusive')})`,\n        prop: 'report.segments.paidStatus.net',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const paidStatusObj = R.find(R.pathEq(['segmentValue'], 'paid'))(value);\n          if (RA.isNotNilOrEmpty(paidStatusObj)) {\n            return Number(paidStatusObj?.postDiscExclAmt || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('export_paid-total')} (${this.intl.t('tax inclusive')})`,\n        prop: 'report.segments.paidStatus.net',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const paidStatusObj = R.find(R.pathEq(['segmentValue'], 'paid'))(value);\n          if (RA.isNotNilOrEmpty(paidStatusObj)) {\n            return Number(paidStatusObj?.postDiscInclAmt || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('export_unpaid-total')} (${this.intl.t('qty')})`,\n        prop: 'report.segments.paidStatus.net',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const paidStatusObj = R.find(R.pathEq(['segmentValue'], 'unpaid'))(value);\n          if (RA.isNotNilOrEmpty(paidStatusObj)) {\n            // should be qty or docCount?\n            return Number(paidStatusObj?.docCount || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('export_unpaid-total')} (${this.intl.t('tax exclusive')})`,\n        prop: 'report.segments.paidStatus.net',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const paidStatusObj = R.find(R.pathEq(['segmentValue'], 'unpaid'))(value);\n          if (RA.isNotNilOrEmpty(paidStatusObj)) {\n            return Number(paidStatusObj?.postDiscExclAmt || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: `${this.intl.t('export_unpaid-total')} (${this.intl.t('tax inclusive')})`,\n        prop: 'report.segments.paidStatus.net',\n        transform(value, row, spec) {\n          if (RA.isNilOrEmpty(value)) {\n            return 0;\n          }\n          const paidStatusObj = R.find(R.pathEq(['segmentValue'], 'unpaid'))(value);\n          if (RA.isNotNilOrEmpty(paidStatusObj)) {\n            return Number(paidStatusObj?.postDiscInclAmt || '0');\n          }\n          return 0;\n        }\n      }, {\n        column: this.intl.t('page views'),\n        prop: 'report.segments.activity.totals.views',\n        transform(value, row, spec) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return Number(value);\n          }\n          return 0;\n        }\n      }, {\n        column: this.intl.t('page views per person'),\n        prop: 'report.segments.activity.totals.viewsPerPerson',\n        transform(value, row, spec) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return Number(value);\n          }\n          return 0;\n        }\n      }, {\n        column: this.intl.t('conversion rate'),\n        prop: 'report.segments.activity.totals.conversion.persons.successRate',\n        transform(value, row, spec) {\n          if (RA.isNotNilOrEmpty(value)) {\n            return Number(value);\n          }\n          return 0;\n        }\n      }];\n      const worksheetData = R.map(row => {\n        return R.map(spec => {\n          let value;\n          const path = spec.prop;\n          if (!path) {\n            value = '';\n          }\n          value = R_.dotPath(path)(row);\n          if (spec.transform) {\n            value = spec.transform(value, row, spec);\n          }\n          return value;\n        })(specsForSummary);\n      })(results || []);\n      const headers = R.pluck('column')(specsForSummary);\n      const exportData = {\n        headers,\n        data: worksheetData\n      };\n      this.exportData = exportData;\n      return exportData;\n    }\n    *exportTask(onCloseDialogAction) {\n      const exportData = yield this.fetchDataTask.perform();\n      const headers = exportData.headers || [];\n      const worksheetData = exportData.data || [];\n      const sheetWithHeaders = R.prepend(headers)(worksheetData);\n      const worksheets = [];\n      worksheets.push({\n        sheetName: this.today,\n        data: sheetWithHeaders\n      });\n      yield this.excel.exportFile({\n        worksheets,\n        title: this.fileName\n      });\n      onCloseDialogAction();\n    }\n    *toggleCampaignStatusAndListByTask(campaignStatusToggled) {\n      let newCampaignStatus = R.clone(campaignStatusToggled);\n      const filters = this.filters;\n      const currentCampaignStatus = filters.getData('campaignStatus') || '';\n      if (currentCampaignStatus === campaignStatusToggled) {\n        newCampaignStatus = '';\n      }\n      filters.setData('campaignStatus', newCampaignStatus);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters\n      });\n    }\n    *fetchDefaultDataTask() {\n      const filters = this.filters;\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters\n      });\n    }\n    selectAllCampaignLists(isSelected, selected, list) {\n      if (isSelected) {\n        R.forEach(selectedKey => {\n          const option = R.find(R.pathEq(['_data', '_key'], selectedKey))(list);\n          if (RA.isNilOrEmpty(option)) {\n            return;\n          }\n          this.addSelectedCampaignLists(option);\n        })(selected);\n      } else {\n        R.forEach(option => {\n          this.removeSelectedCampaignLists(option);\n        })(list);\n      }\n    }\n    addSelectedCampaignLists(campaign) {\n      const selectedCampaigns = this.selectedCampaigns;\n      const selectedCampaignsKeys = R.map(R.pathOr('', ['_data', '_key']))(selectedCampaigns);\n      if (R.includes(campaign?._data?._key, selectedCampaignsKeys)) {\n        return;\n      }\n      selectedCampaigns.pushObject(campaign);\n      this.selectedCampaigns = selectedCampaigns;\n    }\n    removeSelectedCampaignLists(campaign) {\n      const selectedCampaigns = this.selectedCampaigns;\n      selectedCampaigns.removeObject(campaign);\n      this.selectedCampaigns = selectedCampaigns;\n    }\n    get warningText() {\n      const exportDateType = this?.exportDateType;\n      if (!exportDateType) {\n        return '';\n      }\n      if (exportDateType === 'campaignPeriod') {\n        return 'will only export campaigns with start and end dates';\n      }\n      if (exportDateType === 'customDate') {\n        return 'max range 3 months';\n      }\n    }\n    get customMinDateStartZ() {\n      const customDateEndZ = this?.customDateEndZ || '';\n      if (!customDateEndZ) {\n        return '';\n      }\n      return this.dateService.getMoment(customDateEndZ).subtract(3, 'months').toISOString();\n    }\n    get customMaxDateEndZ() {\n      const customDateStartZ = this?.customDateStartZ || '';\n      if (!customDateStartZ) {\n        return '';\n      }\n      return this.dateService.getMoment(customDateStartZ).add(3, 'months').toISOString();\n    }\n    *prePaginateSearchRecordsTask() {\n      this.isAllCampaignSelected = false;\n      yield this.crud.paginateSearchRecordsTask.perform({\n        filters: this.filters\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"export\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"fileName\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"exportData\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"today\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"campaignKeys\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"mm\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"yyyy\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"customDateStartZ\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"customDateEndZ\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaigns\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"exportDateType\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'campaignPeriod';\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"customDateRangeInMonth\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '3';\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isAllCampaignSelected\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"maxSelectableCount\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 20;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setDefaultPeriod\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultPeriod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getDefaultFilename\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"getDefaultFilename\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDataTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"exportTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"exportTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleCampaignStatusAndListByTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCampaignStatusAndListByTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDefaultDataTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDefaultDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectAllCampaignLists\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAllCampaignLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addSelectedCampaignLists\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"addSelectedCampaignLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSelectedCampaignLists\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSelectedCampaignLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"prePaginateSearchRecordsTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"prePaginateSearchRecordsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/dispatch/export-report-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oJiUFuHt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onHideDropdown\\\",\\\"@disabled\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"export campaign reports\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchDefaultDataTask\\\"]]],null]]],{\\\"statements\\\":[[4,\\\"modals/modal-dialog/modal-header\\\",null,[[\\\"onClose\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"campaign reports\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"campaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-sub-section\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@placeholder\\\",\\\"@value\\\"],[true,[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"component\\\"],[\\\"channels/shop/campaigns\\\",[23,0,[\\\"filters\\\"]],[23,0,[]]]]],[24,[\\\"query\\\"]]],null],\\\"search\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n        \\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-ellipsis\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"upcoming\\\"],null],true,false],null],[23,0,[\\\"toggleCampaignStatusAndListByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_upcoming\\\",[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"upcoming\\\"],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"online\\\"],null],true,false],null],[23,0,[\\\"toggleCampaignStatusAndListByTask\\\",\\\"isRunning\\\"]],\\\"online\\\",[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"online\\\"],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"inProgress\\\"],null],true,false],null],[23,0,[\\\"toggleCampaignStatusAndListByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_inProgress\\\",[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"inProgress\\\"],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"noDate\\\"],null],true,false],null],[23,0,[\\\"toggleCampaignStatusAndListByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_noDate\\\",[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"noDate\\\"],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"offline\\\"],null],true,false],null],[23,0,[\\\"toggleCampaignStatusAndListByTask\\\",\\\"isRunning\\\"]],\\\"offline\\\",[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"offline\\\"],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"expiredNoCommissionData\\\"],null],true,false],null],[23,0,[\\\"toggleCampaignStatusAndListByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_expiredNoCommissionData\\\",[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"expiredNoCommissionData\\\"],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"expiredHaveCommissionData\\\"],null],true,false],null],[23,0,[\\\"toggleCampaignStatusAndListByTask\\\",\\\"isRunning\\\"]],\\\"shop_status_expiredHaveCommissionData\\\",[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"expiredHaveCommissionData\\\"],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isActivated\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"campaignStatus\\\"]],\\\"archived\\\"],null],true,false],null],[23,0,[\\\"toggleCampaignStatusAndListByTask\\\",\\\"isRunning\\\"]],\\\"archived\\\",[28,\\\"perform\\\",[[23,0,[\\\"toggleCampaignStatusAndListByTask\\\"]],\\\"archived\\\"],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-sub-section u-box\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"toggleCampaignStatusAndListByTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@label\\\",\\\"@list\\\",\\\"@model\\\",\\\"@maxSelectableCount\\\",\\\"@multiSelect\\\",\\\"@hasSelectAll\\\",\\\"@allSelected\\\",\\\"@optionClassNames\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@onToggleSelectAll\\\"],[true,\\\"campaigns\\\",[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[]],[23,0,[\\\"maxSelectableCount\\\"]],true,true,[23,0,[\\\"isAllCampaignSelected\\\"]],\\\"has-text-weight-bold\\\",\\\"_data.name\\\",\\\"_data._key\\\",false,\\\"campaignKeys\\\",[23,0,[\\\"addSelectedCampaignLists\\\"]],[23,0,[\\\"removeSelectedCampaignLists\\\"]],[23,0,[\\\"selectAllCampaignLists\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@lastSearchSettings\\\",\\\"@filters\\\",\\\"@showPageNumbers\\\",\\\"@list\\\",\\\"@onPaginationTask\\\"],[[23,0,[\\\"filters\\\",\\\"lastSearchSettings\\\"]],[23,0,[\\\"filters\\\"]],true,[23,0,[\\\"filters\\\",\\\"results\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"prePaginateSearchRecordsTask\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-sub-section\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@isTabLink\\\",\\\"@tabLinkKey\\\",\\\"@tabOptionsData\\\"],[[23,0,[\\\"selectedCampaigns\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",false,[23,0,[\\\"campaignKeys\\\"]],true,\\\"_data._key\\\",[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\"]]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"date range\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-sub-section\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@btnClassNames\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\"],[true,true,\\\"\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"reports-lists-export-date-type\\\"]],[23,0,[\\\"exportDateType\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",false]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"warningText\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-margin-top-8 u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"warningText\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"exportDateType\\\"]],\\\"month\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-sub-section\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@isRunning\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"exportDateType\\\"]],\\\"customDate\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-sub-section\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@dateConstraint\\\",\\\"@isDateRange\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]],[28,\\\"hash\\\",null,[[\\\"min\\\",\\\"max\\\"],[[23,0,[\\\"customMinDateStartZ\\\"]],[23,0,[\\\"customDateEndZ\\\"]]]]],true]]],[0,\\\"\\\\n          ~\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@dateConstraint\\\",\\\"@isDateRange\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]],[28,\\\"hash\\\",null,[[\\\"min\\\",\\\"max\\\"],[[23,0,[\\\"customDateStartZ\\\"]],[23,0,[\\\"customMaxDateEndZ\\\"]]]]],true]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/footer-btns\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"export\\\",[23,3,[]],\\\"fas fa-file-export\\\",[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/export-report-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/import-btn/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/date\", \"client/mixins/transporter\"], function (_exports, _crud, _date, _transporter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _transporter.default, {\n    crud: Ember.inject.service(),\n    excel: Ember.inject.service(),\n    tagName: 'span',\n    showImportModal: false,\n    showImportPaidModal: false,\n    isDispatchImported: false,\n    isPaidImported: false,\n    templateFilename: '',\n    sheets: null\n  });\n});","define(\"client/pods/components/dispatch/import-btn/import-data-rows/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/dispatch/import-btn/import-data-rows/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qs4GINTI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"rowData\\\",\\\"cell\\\",\\\"cell\\\",\\\"@hasUnsuccessful\\\",\\\"@importData\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"cells\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[\\\"cells\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,3,[]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@icon\\\",\\\"@iconClassNames\\\",\\\"@error\\\"],[\\\"fas fa-times-circle\\\",\\\"has-text-danger\\\",[23,1,[\\\"error\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/import-btn/import-data-rows/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/import-btn/import-dispatched/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"client/mixins/date\", \"client/mixins/transporter\", \"client/utils/nventor\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, _crud, _date, _transporter, _nventor, R, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _transporter.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    excel: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    tagName: 'span',\n    showImportModal: false,\n    showImportPaidModal: false,\n    isImported: false,\n    isPaidImported: false,\n    templateFilename: '',\n    sheets: null,\n    successful: null,\n    unsuccessful: null,\n    nextDispatchProcessCode: 'dispatched',\n    nextDispatchProcessLabel: 'dispatched',\n    nextDispatchProcessLabelTranslate: true,\n    isDispatched: true,\n    autoShowPrintAllDialogDispatched: false,\n    autoShowPrintAllDialog: true,\n    init() {\n      this._super(...arguments);\n      this.set('importTemplate', [{\n        headerValue: '收貨人',\n        prop: 'contact',\n        required: true\n      }, {\n        headerValue: '收貨人電話',\n        prop: 'telephone',\n        required: true\n      }, {\n        headerValue: '收貨人地址',\n        prop: 'address',\n        required: true\n      }, {\n        // headerValue: '付款方式',\n        headerValue: this.intl.t('payment method'),\n        prop: 'paymentMethodKey'\n      }, {\n        // headerValue: '總計',\n        headerValue: this.intl.t('total'),\n        prop: 'inclTotal'\n      }, {\n        // headerValue: '備註',\n        headerValue: this.intl.t('notes'),\n        prop: 'notes'\n      }, {\n        // headerValue: '參照編號',\n        headerValue: this.intl.t('ref'),\n        prop: 'ref'\n      }, {\n        headerValue: '#',\n        prop: 'docNo'\n      }, {\n        headerValue: '託運單號',\n        prop: 'waybill',\n        required: true\n      }, {\n        headerValue: this.intl.t('transporter'),\n        prop: 'transporterLabel',\n        required: true\n      }, {\n        headerValue: this.intl.t('transporter account'),\n        prop: 'transporterAccountNumber',\n        required: true\n      }]);\n      this.crud.addLists(this, ['documents/lists/import/dispatched/specs']);\n      const templateFilename = this.intl.t('import_transporter_template');\n      this.set('templateFilename', templateFilename);\n      this.set('selectedSheets', Ember.Object.create({\n        sheets: []\n      }));\n      const todayZ = this.dateService.getStartOfDayZ();\n      this.set('importDispatchDateZ', todayZ);\n      this.set('importDispatchDate', this.dateService.getMoment(todayZ).format('YYYY-MM-DD'));\n      this.resetImportData();\n    },\n    specsForImportDataHeaders: Ember.computed('crud.lists.documents-lists-import-dispatched-specs.[]', function () {\n      const specsForImportData = R_.dotPath('crud.lists.documents-lists-import-dispatched-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('headerValue'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }),\n    specsForImportDataValues: Ember.computed('crud.lists.documents-lists-import-dispatched-specs.[]', function () {\n      const specsForImportData = R_.dotPath('crud.lists.documents-lists-import-dispatched-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('value'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }),\n    resetImportData() {\n      this.set('importData', '');\n      this.set('successful', []);\n      this.set('hasUnsuccessful', false);\n      this.set('unsuccessfulImportData', []);\n      this.set('isImported', false);\n    },\n    zipHeadersWithRowData(headers, row) {\n      // const importDataHeaderObjects = this.get('importDataHeaders')\n      const importDataHeaders = R.pluck('value')(headers);\n      const rowData = {};\n      _nventor.default.mapIndexed((header, index) => {\n        if (!R.isEmpty(header)) {\n          rowData[header] = row[index];\n        }\n      })(importDataHeaders);\n      return rowData;\n    },\n    getSheetData({\n      importDispatchDate,\n      importDispatchDateZ,\n      sheetObj\n    }) {\n      const sheetData = R.propOr([], 'data', sheetObj);\n      const sheetHeaders = R.propOr([], 'headers', sheetObj);\n      const importTransporter = this.importTransporter;\n      // const importTransporterKey = this.get('importTransporterKey')\n      const importTransporterAccountNumber = this.importTransporterAccountNumber;\n      const todayZ = this.dateService.getStartOfDayZ();\n      return R.pipe(R.map(row => {\n        const rowData = this.zipHeadersWithRowData(sheetHeaders, row);\n        if (importTransporter && RA.isNilOrEmpty(rowData.transporterLabel)) {\n          rowData.transporterLabel = importTransporter;\n        }\n        if (importTransporterAccountNumber && RA.isNilOrEmpty(rowData.transporterAccountNumber)) {\n          rowData.transporterAccountNumber = importTransporterAccountNumber;\n        }\n        rowData.dispatchProcess = 'dispatched';\n        rowData.isDispatched = true;\n        if (!rowData.dispatchDateZ) {\n          rowData.dispatchDateZ = importDispatchDateZ;\n        }\n        if (RA.isNotNilOrEmpty(rowData.dispatchDateZ)) {\n          rowData.dispatchDate = importDispatchDate;\n        }\n        rowData.setTodayBasedOnCompanyLocale = false;\n        if (importDispatchDateZ === todayZ) {\n          rowData.setTodayBasedOnCompanyLocale = true;\n        }\n        return rowData;\n      }))(sheetData);\n    },\n    importDataTask: (0, _emberConcurrency.task)(function* ({\n      isImportDocumentStatus = false\n    } = {}) {\n      const filteredWorkbook = this.filteredWorkbook;\n      const importTransporter = this.importTransporter;\n      const importTransporterAccountNumber = this.importTransporterAccountNumber;\n      let importDispatchDateZ = this.importDispatchDateZ;\n      importDispatchDateZ = this.getStartOfDayZ(importDispatchDateZ);\n      const importDispatchDate = this.importDispatchDate;\n      const importData = R.pipe(R.mapObjIndexed(sheetObj => {\n        // here\n        return this.getSheetData({\n          importDispatchDate,\n          importDispatchDateZ,\n          sheetObj\n        });\n      }), R.values, R.flatten)(filteredWorkbook);\n      const {\n        path,\n        payload\n      } = this.getImportDataPayload({\n        importTransporter,\n        importTransporterAccountNumber,\n        importDispatchDate,\n        importDispatchDateZ,\n        setTodayBasedOnCompanyLocale: false,\n        importData,\n        isImportDocumentStatus\n      });\n      const todayZ = this.dateService.getStartOfDayZ();\n      if (importDispatchDateZ === todayZ) {\n        payload.setTodayBasedOnCompanyLocale = true;\n      }\n      const specsForImportDataValues = this.specsForImportDataValues;\n      try {\n        const response = yield this.server.callJobs('POST', path, payload);\n        this.set('isImported', true);\n        const successful = R.pathOr([], ['data', 'successful'], response);\n        this.set('successful', successful);\n        const unsuccessful = R.pipe(R.pathOr([], ['data', 'unsuccessful']), R.map(row => {\n          row.cells = R.values(R.pick(specsForImportDataValues, row));\n          return row;\n        }), R.values)(response);\n        // const unsuccessfulImportData = this.matchUnsuccessful(importData, unsuccessful) || []\n        if (unsuccessful.length > 0) {\n          this.set('hasUnsuccessful', true);\n          this.set('unsuccessfulImportData', unsuccessful);\n        }\n      } catch (err) {\n        this.set('isImported', false);\n        this.setValidationErrors('errors', err);\n      }\n    }).drop(),\n    importParamValues: Ember.computed('crud.lists.documents-lists-import-dispatched-specs.[]', function () {\n      const specs = R_.dotPath('crud.lists.documents-lists-import-dispatched-specs')(this) || [];\n      const values = R.pipe(R.map(R.path(['_data', 'value'])), R.reject(RA.isNilOrEmpty))(specs);\n      return values;\n    }),\n    // matchUnsuccessful (importData, unsuccessful) {\n    //   const allowedspecs = this.get('importParamValues')\n\n    //   unsuccessful = R.map(unsuccessfulDoc => {\n    //     const toMatchData = {}\n    //     R.mapObjIndexed((docData, key) => {\n    //       if (R.includes(key, allowedspecs)) {\n    //         toMatchData[key] = docData\n    //       }\n    //       return docData\n    //     }, unsuccessfulDoc)\n    //     return toMatchData\n    //   }, unsuccessful)\n\n    //   return R.filter(row => {\n    //     const rowData = this.zipHeadersWithRowData(row)\n\n    //     let isUnsuccessful = false\n    //     R.forEach(toMatchData => {\n    //       if (!isUnsuccessful) {\n    //         isUnsuccessful = R.equals(rowData, toMatchData)\n    //       }\n    //     }, unsuccessful)\n    //     return isUnsuccessful\n    //   })(importData)\n    // },\n\n    // toDisplayImportData: computed('isImported', 'importData.[]', 'unsuccessfulImportData.[]', function () {\n    //   if (!this.get('isImported')) {\n    //     return this.get('importData') || []\n    //   }\n\n    //   return this.get('unsuccessfulImportData')\n    // }),\n\n    successfulCount: Ember.computed('successful.[]', function () {\n      const data = this.successful || [];\n      return data.length;\n    }),\n    unsuccessfulCount: Ember.computed('unsuccessfulImportData.[]', function () {\n      const data = this.unsuccessfulImportData || [];\n      return data.length;\n    }),\n    createImportTemplateTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction) {\n      const templateFilename = this.templateFilename;\n      const importTemplate = this.get('importTemplate');\n      const importTemplateHeaders = R.pluck('headerValue')(importTemplate);\n      const worksheets = [];\n      worksheets.push({\n        sheetName: '物流資料',\n        data: [importTemplateHeaders]\n      });\n      yield this.excel.exportFile({\n        worksheets,\n        title: templateFilename\n      });\n      onCloseDialogAction();\n    }),\n    createWorkbook() {\n      const sheets = this.sheets || {};\n      const name = this.specsForImportDataHeaders[0];\n      return R.mapObjIndexed(sheetData => {\n        const sheetObject = Ember.Object.create();\n        sheetObject.set('headers', this.matchDataWithHeaders(sheetData));\n        sheetData = R.reject(row => {\n          if (R.includes(name, row)) {\n            return true;\n          }\n          return false;\n        })(sheetData);\n        sheetObject.set('data', sheetData);\n        return sheetObject;\n      })(sheets);\n    },\n    filteredWorkbook: Ember.computed('sheets.[]', 'workbook', 'selectedSheets.sheets.[]', function () {\n      const sheets = this.workbook || {};\n      const selectedSheets = this.get('selectedSheets.sheets') || [];\n      const allowedSheets = {};\n      R.mapObjIndexed((sheetObject, sheetName) => {\n        if (R.includes(sheetName, selectedSheets)) {\n          allowedSheets[sheetName] = sheetObject;\n          return sheetObject;\n        }\n      })(sheets);\n      return allowedSheets;\n    }),\n    matchDataWithHeaders(data) {\n      if (data.length > 0) {\n        const importDataHeaders = R.head(data);\n        const allowedHeaders = R_.dotPath('crud.lists.documents-lists-import-dispatched-specs')(this) || [];\n        return R.map(importDataHeader => {\n          importDataHeader = R.trim(`${importDataHeader}`);\n          const found = R.find(R.pathEq(['_data', 'headerValue'], importDataHeader))(allowedHeaders);\n          const value = R.pathOr('', ['_data', 'value'], found);\n          return Ember.Object.create({\n            value\n          });\n        })(importDataHeaders);\n      }\n      return false;\n    },\n    actions: {\n      resetImportData() {\n        this.resetImportData();\n      },\n      showImportModal(sheets) {\n        this.set('sheets', sheets);\n        const sheetNames = R.pipe(R.keys, R.map(sheetName => {\n          return Ember.Object.create({\n            value: sheetName,\n            label: sheetName\n          });\n        }))(sheets);\n        this.set('sheetNames', sheetNames);\n        const workbook = this.createWorkbook();\n        this.set('workbook', workbook);\n        const selectedSheets = this.get('selectedSheets.sheets');\n        R.forEach(sheetName => {\n          selectedSheets.pushObject(sheetName.value);\n        }, sheetNames);\n        this.set('showImportModal', true);\n      },\n      closeImportModal() {\n        const hasSuccessful = R.pipe(R.propOr([], 'successful'), RA.isNotNilOrEmpty)(this);\n        if (this.isImported && hasSuccessful) {\n          const importDispatchDateZ = this.importDispatchDateZ || this.getStartOfDayZ();\n          let period = this.getPeriod(importDispatchDateZ);\n          let isDispatched = this.isDispatched;\n          if (this.isDispatched) {\n            // handled by dispatch tab container already\n            this?.onRefreshDispatched?.(period, isDispatched, this.autoShowPrintAllDialog);\n          } else {\n            period = false;\n            isDispatched = false;\n            const nextDispatchProcessModel = this.nextDispatchProcessModel;\n            // handled by dispatch tab container already\n            this?.onRefresh?.(nextDispatchProcessModel, period, isDispatched, this.autoShowPrintAllDialog);\n          }\n        }\n        this.set('showImportModal', false);\n        this?.onCloseDialogAction?.();\n      },\n      closeImportModalDispatched() {\n        const hasSuccessful = R.pipe(R.propOr([], 'successful'), RA.isNotNilOrEmpty)(this);\n        if (this.isImported && hasSuccessful) {\n          const importDispatchDateZ = this.importDispatchDateZ || this.getStartOfDayZ();\n          const period = this.getPeriod(importDispatchDateZ);\n          if (this.isDispatched) {\n            // handled by dispatch tab container already\n            this?.onRefreshDispatched?.(period, this.isDispatched, this.autoShowPrintAllDialogDispatched);\n          }\n        }\n        this.set('showImportModal', false);\n        this?.onCloseDialogAction?.();\n      },\n      setDispatchData(dispatchProcessModel) {\n        this.set('isDispatched', false);\n        if (dispatchProcessModel?._data?.isDispatched) {\n          const todayZ = this.dateService.getStartOfDayZ();\n          this.set('importDispatchDateZ', todayZ);\n          this.set('importDispatchDate', this.dateService.getMoment(todayZ).format('YYYY-MM-DD'));\n          this.set('isDispatched', true);\n        }\n        this.set('nextDispatchProcessLabel', dispatchProcessModel?._data?.name);\n        this.set('nextDispatchProcessLabelTranslate', dispatchProcessModel?._data?.translate);\n        this.set('nextDispatchProcessModel', dispatchProcessModel);\n      },\n      setImportDispatchDate() {\n        const importDispatchDateZ = this.importDispatchDateZ;\n        this.set('importDispatchDate', this.dateService.getMoment(importDispatchDateZ).format('YYYY-MM-DD'));\n      }\n    },\n    getImportDataPayload({\n      importTransporter,\n      importTransporterAccountNumber,\n      importDispatchDate,\n      importDispatchDateZ,\n      importData,\n      isImportDocumentStatus = false\n    } = {}) {\n      let path = 'api/protected/documents/sales/invoices/import/dispatched';\n      const payload = {\n        transporterLabel: importTransporter,\n        transporterAccountNumber: importTransporterAccountNumber,\n        dispatchDate: importDispatchDate,\n        dispatchDateZ: importDispatchDateZ,\n        batch: importData\n      };\n      if (isImportDocumentStatus) {\n        path = 'api/protected/documents/sales/invoices/import/status';\n        payload.nextDispatchProcessCode = this.nextDispatchProcessCode;\n        payload.nextDispatchProcessLabel = this.nextDispatchProcessLabel;\n        payload.nextDispatchProcessLabelTranslate = this.nextDispatchProcessLabelTranslate;\n      }\n      return {\n        path,\n        payload\n      };\n    }\n  }, _applyDecoratedDescriptor(_obj, \"getImportDataPayload\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"getImportDataPayload\"), _obj), _obj));\n});","define(\"client/pods/components/dispatch/import-btn/import-dispatched/manual/component\", [\"exports\", \"@glimmer/component\", \"client/utils/nventor\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _nventor, _emberConcurrencyDecorators, R, R_, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 DispatchImportBtnImportDispatchedManual = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _class = class DispatchImportBtnImportDispatchedManual extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"server\", _descriptor4, this);\n      _defineProperty(this, \"tagName\", 'span');\n      _initializerDefineProperty(this, \"showImportModal\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isImported\", _descriptor6, this);\n      _initializerDefineProperty(this, \"successful\", _descriptor7, this);\n      _initializerDefineProperty(this, \"unsuccessful\", _descriptor8, this);\n      _initializerDefineProperty(this, \"unsuccessfulImportData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"nextDispatchProcessCode\", _descriptor0, this);\n      _initializerDefineProperty(this, \"nextDispatchProcessLabel\", _descriptor1, this);\n      _initializerDefineProperty(this, \"nextDispatchProcessLabelTranslate\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isDispatched\", _descriptor11, this);\n      _initializerDefineProperty(this, \"importDispatchDateZ\", _descriptor12, this);\n      _initializerDefineProperty(this, \"importDispatchDate\", _descriptor13, this);\n      _initializerDefineProperty(this, \"autoShowPrintAllDialog\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedTransporter\", _descriptor15, this);\n      this.crud.addLists(this, ['documents/lists/import/dispatched/specs']);\n      const todayZ = this.date.getStartOfDayZ();\n      this.importDispatchDateZ = todayZ;\n      this.importDispatchDate = this.date.getMoment(todayZ).format('YYYY-MM-DD');\n      this.resetImportData();\n    }\n    get specsForImportDataHeaders() {\n      const specsForImportData = R_.dotPath('crud.lists.documents-lists-import-dispatched-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('headerValue'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }\n    get specsForImportDataValues() {\n      const specsForImportData = R_.dotPath('crud.lists.documents-lists-import-dispatched-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('value'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }\n    *importDataTask() {\n      const importTransporter = this.importTransporter;\n      const importTransporterAccountNumber = this.importTransporterAccountNumber;\n      let importDispatchDateZ = this.importDispatchDateZ;\n      importDispatchDateZ = this.date.getStartOfDayZ(importDispatchDateZ);\n      const importDispatchDate = this.importDispatchDate;\n      const importData = R.pipe(R.propOr('', 'bulkRefInsert'), R.split(/\\n/), R.trim, R.reject(RA.isNilOrEmpty), R.map(ref => {\n        return {\n          ref\n        };\n      }))(this);\n      const transporterKey = this.selectedTransporter?._data?._key;\n      const transporterExtension = this.selectedTransporter?._data?.transporterExtension;\n      const path = 'api/protected/documents/sales/invoices/import/status';\n      const payload = {\n        transporterLabel: importTransporter,\n        transporterAccountNumber: importTransporterAccountNumber,\n        transporterKey,\n        transporterExtension,\n        dispatchDate: importDispatchDate,\n        dispatchDateZ: importDispatchDateZ,\n        setTodayBasedOnCompanyLocale: false,\n        nextDispatchProcessCode: this.nextDispatchProcessCode,\n        nextDispatchProcessLabel: this.nextDispatchProcessLabel,\n        nextDispatchProcessLabelTranslate: this.nextDispatchProcessLabelTranslate,\n        batch: importData\n      };\n      const todayZ = this.date.getStartOfDayZ();\n      if (importDispatchDateZ === todayZ) {\n        payload.setTodayBasedOnCompanyLocale = true;\n      }\n      const specsForImportDataValues = this.specsForImportDataValues;\n      try {\n        const response = yield this.server.callJobs('POST', path, payload);\n        this.isImported = true;\n        const successful = R.pathOr([], ['data', 'successful'], response);\n        this.successful = successful;\n        const unsuccessful = R.pipe(R.pathOr([], ['data', 'unsuccessful']), R.map(row => {\n          row.cells = R.values(R.pick(specsForImportDataValues, row));\n          return row;\n        }), R.values)(response);\n        if (unsuccessful.length > 0) {\n          this.hasUnsuccessful = true;\n          this.unsuccessfulImportData = unsuccessful;\n        }\n      } catch (err) {\n        this.isImported = false;\n        this.crud.setValidationErrors('errors', err);\n      }\n    }\n    get successfulCount() {\n      const data = this.successful || [];\n      return data.length;\n    }\n    get unsuccessfulCount() {\n      const data = this.unsuccessfulImportData || [];\n      return data.length;\n    }\n    selectTransporter(selectedTransporter) {\n      this.selectedTransporter = selectedTransporter;\n    }\n    resetImportData() {\n      this.importData = '';\n      this.successful = [];\n      this.hasUnsuccessful = false;\n      this.unsuccessfulImportData = [];\n      this.isImported = false;\n    }\n    toggleShowImportModal() {\n      this.showImportModal = true;\n      this.resetImportData();\n    }\n    closeImportModal() {\n      const hasSuccessful = R.pipe(R.propOr([], 'successful'), RA.isNotNilOrEmpty)(this);\n      if (this.isImported && hasSuccessful) {\n        const importDispatchDateZ = this.importDispatchDateZ || this.date.getStartOfDayZ();\n        let period = this.date.getPeriod(importDispatchDateZ);\n        let isDispatched = this.isDispatched;\n        if (this.isDispatched) {\n          this?.args?.onRefreshDispatched?.(period, isDispatched, this.autoShowPrintAllDialog);\n        } else {\n          period = false;\n          isDispatched = false;\n          const nextDispatchProcessModel = this.nextDispatchProcessModel;\n          this?.args?.onRefresh?.(nextDispatchProcessModel, period, isDispatched, this.autoShowPrintAllDialog);\n        }\n      }\n      this.showImportModal = false;\n      this?.args?.onCloseDialogAction?.();\n    }\n    setDispatchData(dispatchProcessModel) {\n      this.isDispatched = false;\n      if (dispatchProcessModel?._data?.isDispatched) {\n        const todayZ = this.date.getStartOfDayZ();\n        this.importDispatchDateZ = todayZ;\n        this.importDispatchDate = this.date.getMoment(todayZ).format('YYYY-MM-DD');\n        this.isDispatched = true;\n      }\n      this.nextDispatchProcessLabel = dispatchProcessModel?._data?.name;\n      this.nextDispatchProcessLabelTranslate = dispatchProcessModel?._data?.translate;\n      this.nextDispatchProcessModel = dispatchProcessModel;\n    }\n    setImportDispatchDate() {\n      const importDispatchDateZ = this.importDispatchDateZ;\n      this.importDispatchDate = this.date.getMoment(importDispatchDateZ).format('YYYY-MM-DD');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"showImportModal\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isImported\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"successful\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"unsuccessful\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"unsuccessfulImportData\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"nextDispatchProcessCode\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'dispatched';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"nextDispatchProcessLabel\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'dispatched';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"nextDispatchProcessLabelTranslate\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isDispatched\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"importDispatchDateZ\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"importDispatchDate\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"autoShowPrintAllDialog\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"selectedTransporter\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"importDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"importDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTransporter\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetImportData\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"resetImportData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowImportModal\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowImportModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeImportModal\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"closeImportModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDispatchData\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"setDispatchData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setImportDispatchDate\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"setImportDispatchDate\"), _class.prototype), _class);\n});","define(\"client/pods/components/dispatch/import-btn/import-dispatched/manual/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"R24IT0mi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseModalDialog\\\",\\\"@searchContactsTask\\\",\\\"@transportersList\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@modalDialogIsVisible\\\",\\\"@onSubmit\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\"],[\\\"bulk update document status and print\\\",[23,0,[\\\"showImportModal\\\"]],[23,0,[\\\"toggleShowImportModal\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"closeImportModal\\\"]]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-success\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"bulkRefInsert\\\",\\\"products\\\",\\\"ref\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"autofocus\\\",\\\"value\\\",\\\"placeholder\\\",\\\"rows\\\"],[true,[23,0,[\\\"bulkRefInsert\\\"]],\\\"insert documents ref here\\\",10]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"dispatch status\\\",[24,[\\\"errors\\\"]],\\\"nextDispatchProcessCode\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"defaultLabel\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[28,\\\"tt\\\",[\\\"dispatch status\\\"],null],\\\"_data.code\\\",\\\"_data.name\\\",[24,[\\\"nextDispatchProcessCode\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setDispatchData\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"nextDispatchProcessCode\\\"]],\\\"dispatched\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSetDate\\\",\\\"@isReadonly\\\"],[\\\"importDispatchDateZ\\\",[23,0,[]],[23,0,[\\\"importDispatchDateZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setImportDispatchDate\\\"]]],null],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"show print modal after import\\\",[24,[\\\"errors\\\"]],\\\"nextDispatchProcessCode\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[[23,0,[\\\"autoShowPrintAllDialog\\\"]],true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"isRequired\\\"],[\\\"transporter (optional)\\\",[24,[\\\"errors\\\"]],\\\"transporterLabel\\\",true]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"disabled\\\",\\\"onSearch\\\",\\\"isRunning\\\",\\\"onSelect\\\"],[true,[23,3,[]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"importTransporter\\\"]],[24,[\\\"importTransporterKey\\\"]],[24,[\\\"isReadonly\\\"]],[28,\\\"perform\\\",[[23,2,[]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"query\\\",\\\"resultsProperty\\\"],[\\\"supplier\\\",[24,[\\\"importTransporter\\\"]],\\\"transportersList\\\"]]]],null],[23,2,[\\\"isRunning\\\"]],[23,0,[\\\"selectTransporter\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"transporter account (optional)\\\",[24,[\\\"errors\\\"]],\\\"transporterAccountNumber\\\"]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"importTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"importTransporterKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isRunning\\\",\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[[24,[\\\"fetchTransporterTask\\\",\\\"isRunning\\\"]],true,false,true,[24,[\\\"isReadonly\\\"]],[24,[\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",[24,[\\\"importTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"importTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"unsuccessfulImportData\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"dispatch/import-btn/import-data-rows\\\",null,[[\\\"hasUnsuccessful\\\",\\\"importData\\\"],[[24,[\\\"hasUnsuccessful\\\"]],[24,[\\\"unsuccessfulImportData\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close\\\",[28,\\\"fn\\\",[[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"fn\\\",[[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"import\\\",[24,[\\\"importDataTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"importDataTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/import-btn/import-dispatched/manual/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/import-btn/import-dispatched/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wNsH1w1v\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"hasImportData\\\",\\\"toImportData\\\",\\\"onCloseModalDialog\\\",\\\"sheetObject\\\",\\\"sheetName\\\",\\\"headerObject\\\",\\\"hasImportData\\\",\\\"toImportData\\\",\\\"onCloseModalDialog\\\",\\\"sheetObject\\\",\\\"sheetName\\\",\\\"headerObject\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"files/import-btn\\\",null,[[\\\"tagName\\\",\\\"label\\\",\\\"accept\\\",\\\"multiple\\\",\\\"onUploadsChanged\\\"],[\\\"div\\\",\\\"import dispatched\\\",[28,\\\"array\\\",[\\\"xls\\\",\\\"csv\\\"],null],\\\"\\\",[28,\\\"action\\\",[[23,0,[]],\\\"showImportModal\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\"],[\\\"import\\\",[23,0,[\\\"showImportModal\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closeImportModalDispatched\\\"],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"isRequired\\\"],[\\\"transporter\\\",[24,[\\\"errors\\\"]],\\\"transporterLabel\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"disabled\\\",\\\"onSearch\\\",\\\"isRunning\\\"],[true,[24,[\\\"transportersList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"importTransporter\\\"]],[24,[\\\"importTransporterKey\\\"]],[24,[\\\"isReadonly\\\"]],[28,\\\"perform\\\",[[24,[\\\"searchContactsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"query\\\",\\\"resultsProperty\\\"],[\\\"supplier\\\",[24,[\\\"importTransporter\\\"]],\\\"transportersList\\\"]]]],null],[24,[\\\"searchContactsTask\\\",\\\"isRunning\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"transporter account\\\",[24,[\\\"errors\\\"]],\\\"transporterAccountNumber\\\"]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"importTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"importTransporterKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isRunning\\\",\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[[24,[\\\"fetchTransporterTask\\\",\\\"isRunning\\\"]],true,false,true,[24,[\\\"isReadonly\\\"]],[24,[\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",[24,[\\\"importTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"importTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"dispatch date\\\",[24,[\\\"errors\\\"]],\\\"dispatchDateZ\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSetDate\\\",\\\"@isReadonly\\\"],[\\\"importDispatchDateZ\\\",[23,0,[]],[23,0,[\\\"importDispatchDateZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setImportDispatchDate\\\"],null],[23,14,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"show print modal after import\\\",[24,[\\\"errors\\\"]],\\\"nextDispatchProcessCode\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[[23,0,[\\\"autoShowPrintAllDialogDispatched\\\"]],true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"unsuccessfulImportData\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/import-btn/import-data-rows\\\",null,[[\\\"hasUnsuccessful\\\",\\\"importData\\\"],[[24,[\\\"hasUnsuccessful\\\"]],[24,[\\\"unsuccessfulImportData\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"translate\\\"],[[24,[\\\"sheetName\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"itemClassNames\\\",\\\"model\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"multiSelect\\\",\\\"allowEmpty\\\"],[false,[24,[\\\"sheetNames\\\"]],\\\"list-selector__item list-selector__item--horizontal\\\",[24,[\\\"selectedSheets\\\"]],\\\"value\\\",\\\"label\\\",\\\"sheets\\\",true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"filteredWorkbook\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"translate\\\"],[[23,12,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hasUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,11,[\\\"headers\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-import-dispatched-specs\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,13,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[13]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/import-btn/import-data-rows\\\",null,[[\\\"importData\\\"],[[23,11,[\\\"data\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[11,12]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close\\\",[28,\\\"fn\\\",[[23,10,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"fn\\\",[[23,10,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"import\\\",[24,[\\\"importDataTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"importDataTask\\\"]],[28,\\\"hash\\\",null,[[\\\"isImportDocumentStatus\\\"],[false]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[10]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8,9]},null],[0,\\\"\\\\n\\\"],[4,\\\"files/import-btn\\\",null,[[\\\"tagName\\\",\\\"label\\\",\\\"accept\\\",\\\"multiple\\\",\\\"onUploadsChanged\\\"],[\\\"div\\\",\\\"import to bulk update status and print\\\",[28,\\\"array\\\",[\\\"xls\\\",\\\"csv\\\"],null],\\\"\\\",[28,\\\"action\\\",[[23,0,[]],\\\"showImportModal\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\"],[\\\"import to bulk update status and print\\\",[23,0,[\\\"showImportModal\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closeImportModal\\\"],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"dispatch status\\\",[24,[\\\"errors\\\"]],\\\"nextDispatchProcessCode\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"defaultLabel\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[28,\\\"tt\\\",[\\\"dispatch status\\\"],null],\\\"_data.code\\\",\\\"_data.name\\\",[24,[\\\"nextDispatchProcessCode\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setDispatchData\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"nextDispatchProcessCode\\\"]],\\\"dispatched\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSetDate\\\",\\\"@isReadonly\\\"],[\\\"importDispatchDateZ\\\",[23,0,[]],[23,0,[\\\"importDispatchDateZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setImportDispatchDate\\\"],null],[23,14,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"show print modal after import\\\",[24,[\\\"errors\\\"]],\\\"nextDispatchProcessCode\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[[23,0,[\\\"autoShowPrintAllDialog\\\"]],true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"isRequired\\\"],[\\\"transporter (optional)\\\",[24,[\\\"errors\\\"]],\\\"transporterLabel\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"disabled\\\",\\\"onSearch\\\",\\\"isRunning\\\"],[true,[24,[\\\"transportersList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"importTransporter\\\"]],[24,[\\\"importTransporterKey\\\"]],[24,[\\\"isReadonly\\\"]],[28,\\\"perform\\\",[[24,[\\\"searchContactsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"query\\\",\\\"resultsProperty\\\"],[\\\"supplier\\\",[24,[\\\"importTransporter\\\"]],\\\"transportersList\\\"]]]],null],[24,[\\\"searchContactsTask\\\",\\\"isRunning\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"transporter account (optional)\\\",[24,[\\\"errors\\\"]],\\\"transporterAccountNumber\\\"]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"importTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"importTransporterKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isRunning\\\",\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[[24,[\\\"fetchTransporterTask\\\",\\\"isRunning\\\"]],true,false,true,[24,[\\\"isReadonly\\\"]],[24,[\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",[24,[\\\"importTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"importTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"unsuccessfulImportData\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/import-btn/import-data-rows\\\",null,[[\\\"hasUnsuccessful\\\",\\\"importData\\\"],[[24,[\\\"hasUnsuccessful\\\"]],[24,[\\\"unsuccessfulImportData\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"translate\\\"],[[24,[\\\"sheetName\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"itemClassNames\\\",\\\"model\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"multiSelect\\\",\\\"allowEmpty\\\"],[false,[24,[\\\"sheetNames\\\"]],\\\"list-selector__item list-selector__item--horizontal\\\",[24,[\\\"selectedSheets\\\"]],\\\"value\\\",\\\"label\\\",\\\"sheets\\\",true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"filteredWorkbook\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"translate\\\"],[[23,6,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hasUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"headers\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-import-dispatched-specs\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,7,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/import-btn/import-data-rows\\\",null,[[\\\"importData\\\"],[[23,5,[\\\"data\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close\\\",[28,\\\"fn\\\",[[23,4,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"fn\\\",[[23,4,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"import\\\",[24,[\\\"importDataTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"importDataTask\\\"]],[28,\\\"hash\\\",null,[[\\\"isImportDocumentStatus\\\"],[true]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n\\\"],[5,\\\"dispatch/import-btn/import-dispatched/manual\\\",[],[[\\\"@onCloseDialogAction\\\",\\\"@onRefreshDispatched\\\",\\\"@onRefresh\\\",\\\"@searchContactsTask\\\",\\\"@transportersList\\\"],[[22,\\\"onCloseDialogAction\\\"],[22,\\\"onRefreshDispatched\\\"],[22,\\\"onRefresh\\\"],[22,\\\"searchContactsTask\\\"],[22,\\\"transportersList\\\"]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\"],[\\\"import_transporter_template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"file name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"templateFilename\\\"]]]]],false],[0,\\\" .xlsx\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"exportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"createImportTemplateTask\\\"]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/import-btn/import-dispatched/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/import-btn/import-paid/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"client/mixins/date\", \"client/mixins/transporter\", \"client/utils/nventor\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, _crud, _date, _transporter, _nventor, R, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _transporter.default, {\n    crud: Ember.inject.service(),\n    excel: Ember.inject.service(),\n    tagName: 'span',\n    showImportModal: false,\n    showImportPaidModal: false,\n    isImported: false,\n    isPaidImported: false,\n    templateFilename: '',\n    sheets: null,\n    successful: null,\n    unsuccessful: null,\n    init() {\n      this._super(...arguments);\n      this.set('importTemplate', [{\n        headerValue: '收貨人',\n        prop: 'contact',\n        required: true\n      }, {\n        headerValue: '收貨人電話',\n        prop: 'telephone',\n        required: true\n      }, {\n        headerValue: '收貨人地址',\n        prop: 'address',\n        required: true\n      }, {\n        headerValue: '付款方式',\n        prop: 'paymentMethodKey'\n      }, {\n        headerValue: '總計',\n        prop: 'inclTotal'\n      }, {\n        headerValue: '備註',\n        prop: 'notes'\n      }, {\n        headerValue: '單號',\n        prop: 'ref'\n      }, {\n        headerValue: '託運單號',\n        prop: 'waybill',\n        required: true\n      }]);\n      this.crud.addLists(this, ['documents/lists/import/paid/specs']);\n      const templateFilename = this.intl.t('import_transporter_template');\n      this.set('templateFilename', templateFilename);\n      this.set('selectedSheets', Ember.Object.create({\n        sheets: []\n      }));\n      this.resetImportData();\n    },\n    specsForImportDataHeaders: Ember.computed('crud.lists.documents-lists-import-paid-specs.[]', function () {\n      const specsForImportData = R_.dotPath('crud.lists.documents-lists-import-paid-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('headerValue'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }),\n    specsForImportDataValues: Ember.computed('crud.lists.documents-lists-import-paid-specs.[]', function () {\n      const specsForImportData = R_.dotPath('crud.lists.documents-lists-import-paid-specs')(this) || [];\n      return R.pipe(R.pluck('_data'), R.pluck('value'), R.reject(_nventor.default.isNilOrEmpty))(specsForImportData);\n    }),\n    resetImportData() {\n      this.set('importData', '');\n      this.set('successful', []);\n      this.set('hasUnsuccessful', false);\n      this.set('unsuccessfulImportData', []);\n      this.set('isImported', false);\n    },\n    zipHeadersWithRowData(headers, row) {\n      // const importDataHeaderObjects = this.get('importDataHeaders')\n      const importDataHeaders = R.pluck('value')(headers);\n      const rowData = {};\n      _nventor.default.mapIndexed((header, index) => {\n        if (!R.isEmpty(header)) {\n          rowData[header] = row[index];\n        }\n      })(importDataHeaders);\n      return rowData;\n    },\n    getSheetData(sheetObj) {\n      const sheetData = R.propOr([], 'data', sheetObj);\n      const sheetHeaders = R.propOr([], 'headers', sheetObj);\n      return R.pipe(R.map(row => {\n        const rowData = this.zipHeadersWithRowData(sheetHeaders, row);\n        return rowData;\n      }))(sheetData);\n    },\n    importDataTask: (0, _emberConcurrency.task)(function* () {\n      const filteredWorkbook = this.filteredWorkbook;\n      const importData = R.pipe(R.mapObjIndexed(sheetObj => {\n        return this.getSheetData(sheetObj);\n      }), R.values, R.flatten)(filteredWorkbook);\n      const path = 'api/protected/documents/sales/invoices/import/paid';\n      const payload = {\n        dispatchProcess: 'unprepared',\n        batch: importData\n      };\n      const specsForImportDataValues = this.specsForImportDataValues;\n      try {\n        const response = yield this.server.call('POST', path, payload);\n        this.set('isImported', true);\n        const successful = R.pathOr([], ['data', 'successful'], response);\n        this.set('successful', successful);\n        const unsuccessful = R.pipe(R.pathOr([], ['data', 'unsuccessful']), R.map(row => {\n          row.cells = R.values(R.pick(specsForImportDataValues, row));\n          return row;\n        }), R.values)(response);\n        // const unsuccessfulImportData = this.matchUnsuccessful(importData, unsuccessful) || []\n        if (unsuccessful.length > 0) {\n          this.set('hasUnsuccessful', true);\n          this.set('unsuccessfulImportData', unsuccessful);\n        }\n      } catch (err) {\n        this.set('isImported', false);\n        this.setValidationErrors('errors', err);\n      }\n    }).drop(),\n    importParamValues: Ember.computed('crud.lists.documents-lists-import-paid-specs.[]', function () {\n      const specs = R_.dotPath('crud.lists.documents-lists-import-paid-specs')(this) || [];\n      const values = R.pipe(R.map(R.path(['_data', 'value'])), R.reject(RA.isNilOrEmpty))(specs);\n      return values;\n    }),\n    // matchUnsuccessful (importData, unsuccessful) {\n    //   const allowedspecs = this.get('importParamValues')\n\n    //   unsuccessful = R.map(unsuccessfulDoc => {\n    //     const toMatchData = {}\n    //     R.mapObjIndexed((docData, key) => {\n    //       if (R.includes(key, allowedspecs)) {\n    //         toMatchData[key] = docData\n    //       }\n    //       return docData\n    //     }, unsuccessfulDoc)\n    //     return toMatchData\n    //   }, unsuccessful)\n\n    //   return R.filter(row => {\n    //     const rowData = this.zipHeadersWithRowData(row)\n\n    //     let isUnsuccessful = false\n    //     R.forEach(toMatchData => {\n    //       if (!isUnsuccessful) {\n    //         isUnsuccessful = R.equals(rowData, toMatchData)\n    //       }\n    //     }, unsuccessful)\n    //     return isUnsuccessful\n    //   })(importData)\n    // },\n\n    // toDisplayImportData: computed('isImported', 'importData.[]', 'unsuccessfulImportData.[]', function () {\n    //   if (!this.get('isImported')) {\n    //     return this.get('importData') || []\n    //   }\n\n    //   return this.get('unsuccessfulImportData')\n    // }),\n\n    successfulCount: Ember.computed('successful.[]', function () {\n      const data = this.successful || [];\n      return data.length;\n    }),\n    unsuccessfulCount: Ember.computed('unsuccessfulImportData.[]', function () {\n      const data = this.unsuccessfulImportData || [];\n      return data.length;\n    }),\n    createImportTemplateTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction) {\n      const templateFilename = this.templateFilename;\n      const importTemplate = this.get('importTemplate');\n      const importTemplateHeaders = R.pluck('headerValue')(importTemplate);\n      const worksheets = [];\n      worksheets.push({\n        sheetName: '物流資料',\n        data: [importTemplateHeaders]\n      });\n      yield this.excel.exportFile({\n        worksheets,\n        title: templateFilename\n      });\n      onCloseDialogAction();\n    }),\n    createWorkbook() {\n      const sheets = this.sheets || {};\n      const name = this.specsForImportDataHeaders[0];\n      return R.mapObjIndexed(sheetData => {\n        const sheetObject = Ember.Object.create();\n        sheetObject.set('headers', this.matchDataWithHeaders(sheetData));\n        sheetData = R.reject(row => {\n          if (R.includes(name, row)) {\n            return true;\n          }\n          return false;\n        })(sheetData);\n        sheetObject.set('data', sheetData);\n        return sheetObject;\n      })(sheets);\n    },\n    filteredWorkbook: Ember.computed('sheets.[]', 'workbook', 'selectedSheets.sheets.[]', function () {\n      const workbook = this.workbook || {};\n      const selectedSheets = this.get('selectedSheets.sheets') || [];\n      const allowedWorkbook = {};\n      R.mapObjIndexed((sheetObject, sheetName) => {\n        if (R.includes(sheetName, selectedSheets)) {\n          allowedWorkbook[sheetName] = sheetObject;\n          return sheetObject;\n        }\n      })(workbook);\n      return allowedWorkbook;\n    }),\n    matchDataWithHeaders(data) {\n      if (data.length > 0) {\n        const importDataHeaders = R.head(data);\n        const allowedHeaders = R_.dotPath('crud.lists.documents-lists-import-paid-specs')(this) || [];\n        return R.map(importDataHeader => {\n          importDataHeader = R.trim(`${importDataHeader}`);\n          const found = R.find(R.pathEq(['_data', 'headerValue'], importDataHeader))(allowedHeaders);\n          const value = R.pathOr('', ['_data', 'value'], found);\n          return Ember.Object.create({\n            value\n          });\n        })(importDataHeaders);\n      }\n      return false;\n    },\n    actions: {\n      resetImportData() {\n        this.resetImportData();\n      },\n      showImportModal(sheets) {\n        this.set('sheets', sheets);\n        const sheetNames = R.pipe(R.keys, R.map(sheetName => {\n          return Ember.Object.create({\n            value: sheetName,\n            label: sheetName\n          });\n        }))(sheets);\n        this.set('sheetNames', sheetNames);\n        const workbook = this.createWorkbook();\n        this.set('workbook', workbook);\n        const selectedSheets = this.get('selectedSheets.sheets');\n        R.forEach(sheetName => {\n          selectedSheets.pushObject(sheetName.value);\n        }, sheetNames);\n        this.set('showImportModal', true);\n      },\n      closeImportModal() {\n        const hasSuccessful = R.pipe(R.propOr([], 'successful'), RA.isNotNilOrEmpty)(this);\n        if (this.isImported && hasSuccessful) {\n          if (this.onRefresh) {\n            this.onRefresh(false, false);\n          }\n        }\n        this.set('showImportModal', false);\n      }\n    }\n  });\n});","define(\"client/pods/components/dispatch/import-btn/import-paid/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lLBpfwMf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"hasImportData\\\",\\\"toImportData\\\",\\\"onCloseModalDialog\\\",\\\"sheetObject\\\",\\\"sheetName\\\",\\\"headerObject\\\"],\\\"statements\\\":[[4,\\\"files/import-btn\\\",null,[[\\\"tagName\\\",\\\"label\\\",\\\"accept\\\",\\\"multiple\\\",\\\"onUploadsChanged\\\"],[\\\"div\\\",\\\"import paid\\\",[28,\\\"array\\\",[\\\"xls\\\",\\\"csv\\\"],null],\\\"\\\",[28,\\\"action\\\",[[23,0,[]],\\\"showImportModal\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\"],[\\\"import\\\",[23,0,[\\\"showImportModal\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closeImportModal\\\"],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"unsuccessfulImportData\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/import-btn/import-data-rows\\\",null,[[\\\"hasUnsuccessful\\\",\\\"importData\\\"],[[24,[\\\"hasUnsuccessful\\\"]],[24,[\\\"unsuccessfulImportData\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"translate\\\"],[[24,[\\\"sheetName\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"itemClassNames\\\",\\\"model\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"multiSelect\\\",\\\"allowEmpty\\\"],[false,[24,[\\\"sheetNames\\\"]],\\\"list-selector__item list-selector__item--horizontal\\\",[24,[\\\"selectedSheets\\\"]],\\\"value\\\",\\\"label\\\",\\\"sheets\\\",true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[24,[\\\"filteredWorkbook\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"translate\\\"],[[23,5,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hasUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"headers\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-import-paid-specs\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,6,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/import-btn/import-data-rows\\\",null,[[\\\"importData\\\"],[[23,4,[\\\"data\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4,5]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close\\\",[28,\\\"fn\\\",[[23,3,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"fn\\\",[[23,3,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"import\\\",[24,[\\\"importDataTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"importDataTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/import-btn/import-paid/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/import-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JWbwSSoZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"icon\\\",\\\"autoPosition\\\"],[\\\"import\\\",[24,[\\\"onSearchRecordsTask\\\",\\\"isRunning\\\"]],\\\"fas fa-file-import\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/import-btn/import-dispatched\\\",null,[[\\\"onRefresh\\\",\\\"onRefreshDispatched\\\",\\\"onCloseDialogAction\\\"],[[24,[\\\"onRefresh\\\"]],[24,[\\\"onRefreshDispatched\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/import-btn/import-paid\\\",null,[[\\\"onRefresh\\\"],[[24,[\\\"onRefreshPaid\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/import-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/component\", [\"exports\", \"ramda\", \"client/mixins/date\", \"client/mixins/emails-dispatched\", \"client/mixins/doc-status\", \"ember-concurrency\", \"ramda-extension\", \"ramda-adjunct\", \"client/utils/nventor\", \"client/pods/dispatch/model\"], function (_exports, R, _date, _emailsDispatched, _docStatus, _emberConcurrency, R_, RA, _nventor, _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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_date.default, _docStatus.default, _emailsDispatched.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    print: Ember.inject.service(),\n    settings: Ember.inject.service('settings'),\n    dateService: Ember.inject.service('date'),\n    showPrintDiaolog: false,\n    showMoreBtns: false,\n    allSelected: false,\n    isDispatchedBeforeToday: false,\n    customEmailMessage: '',\n    init() {\n      this._super(...arguments);\n      this.set('selectedTransporterDashboardKeys', []);\n      this.set('transporterDashboardRowKeysSnapshot', []);\n      this.setup();\n    },\n    didReceiveAttrs() {\n      this._super(...arguments);\n      // Shared filters and task state must change outside the render transaction.\n      Ember.run.scheduleOnce('afterRender', this, this.syncTransporterDashboardSelection);\n    },\n    setup() {\n      const dispatchProcess = this.get('tab.dispatchProcess');\n      this.set('dispatchProcess', dispatchProcess);\n      this.set('sortBy', this.get('tab.sortBy'));\n      const period = this.get('tab.period');\n      this.set('period', period);\n      if (period) {\n        const isDispatched = this.get('tab.isDispatched');\n        this.set('isDispatched', isDispatched);\n        if (this.isBeforeToday(period.dateZ) && isDispatched) {\n          this.set('isDispatchedBeforeToday', true);\n        }\n      }\n      this.tabsManager.setHeader(this.tabParent, this.tabHeader);\n      this.dispatch.tCatGetModel.perform();\n      const showImagesOnDocuments = this?.settings?.settingsModel?._data?.showImagesOnDocuments || false;\n      if (showImagesOnDocuments) {\n        this.set('dispatch.showDocumentDetailsThumbnailImage', true);\n      }\n    },\n    didInsert() {\n      if (this.get('tab.autoShowPrintAllDialog')) {\n        this.onOpenPrintSidebar();\n      }\n    },\n    tabHeader: Ember.computed('dispatchProcess._data.{name,translate}', 'period.{weekday,dateZ}', function () {\n      if (this.period) {\n        return `${this.intl.t('dispatched')} ${this.intl.t(this.period.weekday)} ${this.dateService.formatDate(this.period.dateZ)}`;\n      }\n      const name = this.dispatchProcess?._data?.name;\n      if (!name) {\n        return '';\n      }\n      if (this.dispatchProcess?._data?.translate) {\n        return this.intl.t(name);\n      }\n      return name;\n    }),\n    dispatchProcessCode: Ember.computed('dispatchProcess', function () {\n      return this.get('dispatchProcess._data.code');\n    }),\n    // dispatchSortByListName: computed('dispatchProcess', function () {\n    //   return 'settings__' + this.get('dispatchProcess._data.code')\n    // }),\n\n    sortedResults: Ember.computed('results.@each.{isSelected,showDetails}', 'sortBy.@each.{direction,param}', function () {\n      let sortBy = this.sortBy || [];\n      const results = this.results || [];\n      if (!R.isEmpty(results)) {\n        sortBy = R.map(sortByObject => {\n          if (sortByObject.direction === 'asc') {\n            return R.ascend(R.path(['model', '_data', sortByObject.param]));\n          }\n          return R.descend(R.path(['model', '_data', sortByObject.param]));\n        }, sortBy);\n        return R.sortWith(sortBy)(results);\n      }\n      return [];\n    }),\n    hasSelected: Ember.computed('results.@each.isSelected', 'dispatchProcess._data.code', function () {\n      return this.dispatch.filterSelectedDispatchDocuments(this.results || [], this.get('dispatchProcess._data.code'));\n    }),\n    hasSelectedModels: Ember.computed('hasSelected.[]', function () {\n      const hasSelected = this.hasSelected || [];\n      return R.map(R.prop('model'), hasSelected);\n    }),\n    /**\n     * Every document in this list (process, date, printed status pill, search) for Update All Status.\n     * @returns {Object}\n     */\n    allDocumentsScope: Ember.computed('filters', 'dispatchProcess', 'period', 'dashData.inView.total', function () {\n      return {\n        filters: this.filters,\n        dispatchProcess: this.dispatchProcess,\n        period: this.period,\n        count: this.dispatch.readDispatchPanelListTotal(this.dashData)\n      };\n    }),\n    /**\n     * Whether Update All Status is offered: only without row selection, and never on the All process list.\n     * @returns {boolean}\n     */\n    allowUpdateAllDocumentsStatus: Ember.computed('allowProcesses', 'hasSelected.[]', 'dispatchProcess._data.code', function () {\n      if (!this.allowProcesses) {\n        return false;\n      }\n      if (RA.isNotNilOrEmpty(this.hasSelected)) {\n        return false;\n      }\n      const isAllDispatchProcess = this.get('dispatchProcess._data.code') === 'all';\n      return !isAllDispatchProcess;\n    }),\n    allowProcesses: Ember.computed('isDispatched', 'period.date', function () {\n      const isDispatched = this.isDispatched;\n      const dispatchDate = this.get('period.date');\n      if (isDispatched && this.isBeforeToday(dispatchDate)) {\n        return false;\n      }\n      return true;\n    }),\n    // printBadge: computed('searchResults.@each.isSelected', 'filterByValue', 'hasSelected.@each.isSelected', function () {\n    //   const selected = this.get('hasSelected') || []\n    //   if (selected.length > 0) {\n    //     return selected.length\n    //   }\n\n    //   const searched = this.get('searchResults') || []\n    //   const filterByValue = this.get('filterByValue')\n\n    //   if (searched.length > 0 && filterByValue) {\n    //     return searched.length\n    //   }\n\n    //   return ''\n    // }),\n\n    // @TODO: remove\n    dispatchProcessesList: Ember.computed('crud.lists.dispatch-lists-processes-menu.[]', function () {\n      const dispatchProcessesList = R_.dotPath('crud.lists.dispatch-lists-processes-menu')(this) || [];\n      const isDispatchedProcessModel = this.isDispatchedProcessModel;\n      return R.concat(dispatchProcessesList, [isDispatchedProcessModel]);\n    }),\n    duplicateWaybills: Ember.computed('dashData.inView.duplicates.waybills', function () {\n      const dashDataInView = this.dispatch.readDispatchDashDataInView(this.dashData);\n      const duplicateWaybills = dashDataInView?.duplicates?.waybills || {};\n      const omitEmptyWaybills = R.pipe(R.pathOr([], ['values']), R.filter(R.pipe(R.path(['value']), RA.isNotNilOrEmpty)))(duplicateWaybills);\n      return R.mergeRight(duplicateWaybills, {\n        count: omitEmptyWaybills?.length,\n        values: omitEmptyWaybills\n      });\n    }),\n    duplicateWaybillsDocNos: Ember.computed('duplicateWaybills', function () {\n      const duplicateData = this.duplicateWaybills || {};\n      return this._getDuplicateDocNos(duplicateData);\n    }),\n    duplicateAddresses: Ember.computed('dashData.inView.duplicates.addresses.synced', function () {\n      const dashDataInView = this.dispatch.readDispatchDashDataInView(this.dashData);\n      const duplicateAddresses = dashDataInView?.duplicates?.addresses || {};\n      if (RA.isNilOrEmpty(duplicateAddresses)) {\n        return {};\n      }\n      const duplicateAddressesWithoutConvinienceStore = this.dispatch.getDuplicateAddressesWithoutConvinienceStore(duplicateAddresses);\n      Ember.set(duplicateAddresses, 'valuesWithoutConvinienceStores', duplicateAddressesWithoutConvinienceStore.values);\n      Ember.set(duplicateAddresses, 'countWithoutConvinienceStores', duplicateAddressesWithoutConvinienceStore.count);\n      return duplicateAddresses;\n    }),\n    duplicateAddressesDocNos: Ember.computed('duplicateAddresses.synced', function () {\n      const duplicateData = this.duplicateAddresses || {};\n      return this._getDuplicateDocNos(duplicateData);\n    }),\n    _getDuplicateDocNos(duplicateData) {\n      return R.pipe(R.propOr([], 'values'), R.pluck('docs'), R.flatten)(duplicateData);\n    },\n    // exportTransporterExtensionDataTask: task(function * (transporterExtension) {\n    //   const allHctData = this.get('hctExportData')\n    //   const today = this.formatDate(this.getToday(), 'YYYYMMDD')\n    //   const specs = this.get('settings').getProp('tw_hct_export_instructions')\n    //   const columns = R.pluck('column', specs)\n    //   const props = R.pluck('prop', specs)\n\n    //   const data = R.pipe(\n    //     R.map(doc => {\n    //       return R.map(prop => {\n    //         if (prop === '_today_') {\n    //           return today\n    //         }\n    //         return R.propOr('', prop, doc)\n    //       }, props)\n    //     }),\n    //     R.values,\n    //     R.concat([columns])\n    //   )(allHctData)\n\n    //   yield this.get('excel').xlsx({\n    // worksheets: [{\n    //   sheetName: '1',\n    //   data\n    // }],\n    //     title: `新竹物流匯出範例-${today}`\n    //   })\n    // }).drop(),\n\n    _filterByTransporters(filterTransporters, transporterExtension) {\n      if (Ember.isEmpty(filterTransporters)) {\n        return true;\n      }\n      if (filterTransporters.indexOf(transporterExtension) > -1) {\n        return true;\n      }\n      return false;\n    },\n    _filterByDispatchStatus(filterDispatchStatus, dispatchStatus) {\n      // no filter set, dont filter\n      if (Ember.isEmpty(filterDispatchStatus)) {\n        return true;\n      }\n\n      // match status\n      if (dispatchStatus === filterDispatchStatus) {\n        return true;\n      }\n      return false;\n    },\n    fetchAllUnpaginatedTask: (0, _emberConcurrency.task)(function* ({\n      filters\n    }) {\n      const dispatchProcess = this.dispatchProcess;\n      const period = this.period;\n      const allResults = yield this.onFetchUnpaginatedDispatchDataTask.perform({\n        dispatchProcess,\n        period,\n        setResults: false,\n        hidePrinted: '',\n        filters\n      });\n      let allUnpaginated = R.prop('docs')(allResults) || [];\n      allUnpaginated = R.map(result => _nventor.default.createModel(_model.default, {}, {\n        model: result,\n        isSelected: false,\n        showDetails: true // @TODO: get this from settings\n      }))(allUnpaginated);\n      // if (this.isDispatched) {\n      //   allUnpaginated = R.filter(R.pathEq(['model', '_data', 'dispatchProcess'], this.get('constants.dispatchProcess.dispatched')), allUnpaginated)\n      // }\n\n      return allUnpaginated;\n    }),\n    modelsList: Ember.computed('sortedResults.[]', function () {\n      const results = this.sortedResults || [];\n      return R.map(R.prop('model'), results);\n    }),\n    searchResults: Ember.computed('sortedResults.[]', 'filterByValue', function () {\n      const results = this.sortedResults;\n      let filterByValue = this.filterByValue;\n      if (filterByValue && R.is(String, filterByValue)) {\n        filterByValue = filterByValue.toLowerCase();\n        return R.filter(result => {\n          const doc = result.model;\n          const data = R.prop('_data', doc);\n          const details = R.pipe(R.propOr([], 'details'), R.pluck('_data'), R.map(R.pipe(R.pick(['item', 'itemCode']), R.values)), R.flatten, R.map(value => R.is(String, value) ? value.toLowerCase() : value))(data);\n          const values = R.pipe(R.pick(['telephone', 'email', 'contact', 'person', 'waybill', 'address', 'docNo', 'ref', 'transporterLabel', 'source']), R.values, R.concat(details))(data);\n          const matches = R.filter(value => {\n            if (R.is(String, value)) {\n              value = value.toLowerCase();\n              filterByValue.toLowerCase();\n            }\n            if (value.indexOf(filterByValue) > -1) {\n              return true;\n            }\n            return false;\n          })(values);\n          if (matches.length > 0) {\n            return true;\n          }\n          return false;\n        }, results);\n      }\n      return results;\n    }),\n    // print list\n    toPrintList: Ember.computed('hasSelected.[]', 'unpaginatedResults.[]', function () {\n      const hasSelected = this.hasSelected || [];\n      let results = hasSelected;\n      if (hasSelected.length === 0) {\n        results = this.unpaginatedResults || [];\n      }\n      if (this.isDispatched) {\n        results = R.filter(R.pathEq(['model', '_data', 'dispatchProcess'], this.get('constants.dispatchProcess.dispatched')), results);\n      }\n      // let lastSetId = ''\n      // results = R.map(detail => {\n      //   if (detail._data.setId && detail._data.setId !== lastSetId) {\n      //     detail.set('isFirstSetChoiceItem', true)\n\n      //     lastSetId = detail._data.setId\n      //   }\n\n      //   return detail\n      // })(results)\n\n      return results;\n    }),\n    toPrintListTCat: Ember.computed('dispatch.tCatModel._data._key', 'hasSelected.[]', 'unpaginatedResults.[]', function () {\n      return R.pipe(R.propOr([], 'toPrintList'), R.filter(R.pathEq(['model', '_data', 'transporterKey'], this?.dispatch?.tCatModel?._data?._key)))(this);\n    }),\n    toPrintModelsList: Ember.computed('toPrintList.[]', function () {\n      const toPrintList = this.toPrintList || [];\n      return R.map(R.prop('model'))(toPrintList);\n    }),\n    toggleTransporterDashboardSelection(transporterRow, nextSelected) {\n      const rowKey = this.dispatch.transporterDashboardKey(transporterRow);\n      let selectedKeys = R.slice(0, Infinity, this.selectedTransporterDashboardKeys || []);\n      const isSelected = R.includes(rowKey, selectedKeys);\n      const shouldSelect = typeof nextSelected === 'boolean' ? nextSelected : !isSelected;\n      if (shouldSelect) {\n        if (!isSelected) {\n          selectedKeys = R.append(rowKey, selectedKeys);\n        }\n      } else if (isSelected) {\n        selectedKeys = R.reject(R.equals(rowKey), selectedKeys);\n      }\n      this.set('selectedTransporterDashboardKeys', selectedKeys);\n      this.applyTransporterDashboardFilterTask.perform();\n    },\n    toggleTransporterDashboardSelectAll(nextSelected) {\n      const allKeys = this.transporterDashboardAllKeys || [];\n      if (RA.isNilOrEmpty(allKeys)) {\n        return;\n      }\n      const selectedKeys = nextSelected ? R.slice(0, Infinity, allKeys) : [];\n      this.set('selectedTransporterDashboardKeys', selectedKeys);\n      this.applyTransporterDashboardFilterTask.perform();\n    },\n    notifyPrintSidebarSelectionChange() {\n      if (this.onRowSelectionChange) {\n        this.onRowSelectionChange();\n      }\n    },\n    deselectAll() {\n      this.set('allSelected', false);\n      const allSelected = this.allSelected;\n      const results = this.searchResults;\n      let isSelected = false;\n      if (allSelected) {\n        isSelected = true;\n      }\n      results.forEach(result => {\n        if (result.model._data.status === this.get('constants.documentsStatus.final')) {\n          result.set('isSelected', isSelected);\n        }\n      });\n      this.notifyPrintSidebarSelectionChange();\n    },\n    fetchUnPaginatedDataTask: (0, _emberConcurrency.task)(function* ({\n      setResults = true,\n      hidePrinted\n    }) {\n      const dispatchProcess = this.dispatchProcess;\n      const period = this.period;\n      return yield this.onFetchUnpaginatedDispatchDataTask.perform({\n        dispatchProcess,\n        period,\n        setResults,\n        hidePrinted\n      });\n    }),\n    // Bar totals: dispatch.buildTransporterBarDashDisplay (shared area input state — pass filters only).\n    transporterBarDashData: Ember.computed('dashDataTransporterBar', 'dashData.inView.{total,packages,transporters}', 'dashData.dispatchProcess.printedStatusCounts', 'filters._data.{dashboardTransporters,query,printedStatus}', function () {\n      return this.dispatch.buildTransporterBarDashDisplay({\n        filters: this.filters,\n        dashData: this.dashData,\n        dashDataTransporterBar: this.dashDataTransporterBar\n      });\n    }),\n    syncTransporterDashboardSelection() {\n      if (this.isDestroying || this.isDestroyed) {\n        return;\n      }\n      const transporters = this.transporterBarDashData?.transporters || [];\n      const rowKeys = this.dispatch.transporterDashboardRowKeys(transporters);\n      const previousRowKeys = this.transporterDashboardRowKeysSnapshot || [];\n      if (!this.dispatch.haveTransporterDashboardRowKeysChanged(previousRowKeys, rowKeys)) {\n        return;\n      }\n      const filters = this.get('filters');\n      const transporterDashboardFilterState = this.dispatch.readTransporterDashboardFilterState(filters);\n      const hadPartialTransporterFilter = transporterDashboardFilterState.hasDashboardTransportersFilter;\n      this.set('transporterDashboardRowKeysSnapshot', rowKeys);\n      this.set('selectedTransporterDashboardKeys', rowKeys);\n      filters?.setData('dashboardTransporters', []);\n      if (hadPartialTransporterFilter) {\n        this.applyTransporterDashboardFilterTask.perform();\n      }\n    },\n    syncTransporterDashboardSelectionFromTransporters() {\n      const transporters = this.transporterBarDashData?.transporters || [];\n      const rowKeys = this.dispatch.transporterDashboardRowKeys(transporters);\n      this.set('selectedTransporterDashboardKeys', rowKeys);\n    },\n    transporterDashboardAllKeys: Ember.computed('transporterBarDashData.transporters.[]', function () {\n      const transporters = this.transporterBarDashData?.transporters || [];\n      return this.dispatch.transporterDashboardRowKeys(transporters);\n    }),\n    isTransporterDashboardAllSelected: Ember.computed('selectedTransporterDashboardKeys.[]', 'transporterDashboardAllKeys.[]', function () {\n      const allKeys = this.transporterDashboardAllKeys || [];\n      const selectedKeys = this.selectedTransporterDashboardKeys || [];\n      if (RA.isNilOrEmpty(allKeys)) {\n        return true;\n      }\n      if (selectedKeys.length !== allKeys.length) {\n        return false;\n      }\n      return R.all(key => R.includes(key, selectedKeys))(allKeys);\n    }),\n    transporterDashboardCheckedBarTotals: Ember.computed('transporterBarDashData.{total,packages,transporters}', 'selectedTransporterDashboardKeys.[]', function () {\n      const transporters = this.transporterBarDashData?.transporters || [];\n      const selectedKeys = this.selectedTransporterDashboardKeys || [];\n      if (RA.isNilOrEmpty(transporters)) {\n        return {\n          total: Number(this.transporterBarDashData?.total) || 0,\n          packages: Number(this.transporterBarDashData?.packages) || 0\n        };\n      }\n      return this.dispatch.sumTransporterBarTotalsForSelectedKeys(transporters, selectedKeys);\n    }),\n    transporterDashboardRows: Ember.computed('transporterBarDashData.transporters.[]', 'selectedTransporterDashboardKeys.[]', function () {\n      const transporters = this.transporterBarDashData?.transporters || [];\n      const selectedKeys = this.selectedTransporterDashboardKeys || [];\n      return R.map(row => {\n        const key = this.dispatch.transporterDashboardKey(row);\n        return {\n          row,\n          key,\n          isSelected: R.includes(key, selectedKeys)\n        };\n      })(transporters);\n    }),\n    applyTransporterDashboardFilterTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.filters;\n      const transporters = this.transporterBarDashData?.transporters || [];\n      const selectedKeys = this.selectedTransporterDashboardKeys || [];\n      const dashboardTransporters = this.dispatch.buildDashboardTransportersPayload(transporters, selectedKeys);\n      filters.setData('dashboardTransporters', dashboardTransporters);\n      filters.setData('transporterLabel', '');\n      filters.setData('transporterAccount', '');\n      filters.setData('onlyEmptyTransporter', false);\n      return yield this.onSearchAdvancedTask.perform({\n        filters,\n        clearQuery: false\n      });\n    }).restartable(),\n    filterByPrintedStatusTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      printedStatus = ''\n    }) {\n      filters.setData('printedStatus', printedStatus);\n      filters.setData('dashboardTransporters', []);\n      this.syncTransporterDashboardSelectionFromTransporters();\n      return yield this.onSearchAdvancedTask.perform({\n        filters,\n        clearQuery: false\n      });\n    }),\n    dispatchPanelHeaderTotal: Ember.computed('dashData.dispatchProcess.printedStatusCounts.all', function () {\n      return this.dispatch.readDispatchPanelHeaderTotal(this.dashData);\n    }),\n    dispatchProcessSidebarCount: Ember.computed('dispatchProcessesByCount.synced', 'dispatchProcess._data.code', function () {\n      const processCode = this.dispatchProcess?._data?.code ?? '';\n      return Number(this.dispatchProcessesByCount?._data?.[processCode]?.count) || 0;\n    }),\n    showDispatchPanelRefreshButton: Ember.computed('dispatchPanelNeedsRefresh', 'dispatchProcessSidebarCount', 'dispatchPanelHeaderTotal', 'dispatchProcessesByCount.synced', 'dispatchPanelCountsAreLoading', function () {\n      if (this.dispatchPanelNeedsRefresh) {\n        return true;\n      }\n      if (!this.dispatchProcessesByCount?.synced || this.dispatchPanelCountsAreLoading) {\n        return false;\n      }\n      return this.dispatchProcessSidebarCount !== this.dispatchPanelHeaderTotal;\n    }),\n    refreshDispatchPanelDataTask: (0, _emberConcurrency.task)(function* () {\n      yield this.onRefreshDispatchPanelDataTask.perform({\n        dispatchProcess: this.dispatchProcess,\n        period: this.period,\n        filters: this.filters\n      });\n    }),\n    selectedPrintedStatusPillLabel: Ember.computed('filters._data.printedStatus', function () {\n      const printedStatus = this?.filters?._data?.printedStatus ?? '';\n      return this.dispatch.readPrintedStatusLabel(printedStatus);\n    }),\n    /**\n     * Empty Unprinted queue: hint above search pointing at other printed-status pills.\n     * @returns {boolean}\n     */\n    showNothingToPrintHint: Ember.computed('filters._data.printedStatus', 'dashData.dispatchProcess.printedStatusCounts.unprinted', function () {\n      const selectedPrintedStatus = this.filters?._data?.printedStatus ?? '';\n      if (selectedPrintedStatus !== 'unprinted') {\n        return false;\n      }\n      const printedStatusCounts = this.dispatch.readDispatchProcessPrintedStatusCounts(this.dashData);\n      return (Number(printedStatusCounts?.unprinted) || 0) === 0;\n    }),\n    /**\n     * Hint copy for InfoMsg. Includes All / Printed / Has Issues only when that count is greater than 0.\n     * @returns {string}\n     */\n    nothingToPrintHintMessage: Ember.computed('dashData.dispatchProcess.printedStatusCounts.{all,printed,hasIssues}', function () {\n      const printedStatusCounts = this.dispatch.readDispatchProcessPrintedStatusCounts(this.dashData);\n      const hintPhrases = [];\n      if ((Number(printedStatusCounts?.all) || 0) > 0) {\n        hintPhrases.push(this.intl.t('all to view all'));\n      }\n      if ((Number(printedStatusCounts?.printed) || 0) > 0) {\n        hintPhrases.push(this.intl.t('printed to reprint'));\n      }\n      if ((Number(printedStatusCounts?.hasIssues) || 0) > 0) {\n        hintPhrases.push(this.intl.t('has issues to resolve issues'));\n      }\n      if (R.isEmpty(hintPhrases)) {\n        return this.intl.t('nothing to print');\n      }\n      const lastPhrase = R.last(hintPhrases);\n      const leadingPhrases = R.init(hintPhrases);\n      let joinedPhrases = lastPhrase;\n      if (RA.isNotNilOrEmpty(leadingPhrases)) {\n        const orLabel = this.intl.t('or');\n        if (leadingPhrases.length === 1) {\n          joinedPhrases = `${leadingPhrases[0]} ${orLabel} ${lastPhrase}`;\n        } else {\n          joinedPhrases = `${leadingPhrases.join(', ')}, ${orLabel} ${lastPhrase}`;\n        }\n      }\n      return `${this.intl.t('nothing to print, click on')} ${joinedPhrases}`;\n    }),\n    printedStatusPills: Ember.computed('dashData.dispatchProcess.printedStatusCounts', 'filters._data.printedStatus', 'tab.dispatchProcess._data.{isDispatched,allowPrintAllWaybills}', 'tab.period', function () {\n      const counts = this.dispatch.readDispatchProcessPrintedStatusCounts(this.dashData);\n      const selected = this?.filters?._data?.printedStatus ?? '';\n      const defaultPrintedStatus = this.dispatch.readDefaultPrintedStatus({\n        dispatchProcess: this.tab?.dispatchProcess,\n        period: this.tab?.period\n      });\n      return R.map(pill => {\n        const count = R.propOr(0, pill.countKey)(counts);\n        const isDefault = R.equals(defaultPrintedStatus, pill.value);\n        const hasIssuesToResolve = pill.value === 'hasIssues' && count > 0;\n        return R.mergeRight(pill, {\n          count,\n          isSelected: R.equals(selected, pill.value),\n          isHighlighted: isDefault || hasIssuesToResolve\n        });\n      })([{\n        value: 'unprinted',\n        countKey: 'unprinted',\n        label: 'unprinted'\n      }, {\n        value: 'hasIssues',\n        countKey: 'hasIssues',\n        label: 'has issues'\n      }, {\n        value: 'printed',\n        countKey: 'printed',\n        label: 'printed'\n      }, {\n        value: '',\n        countKey: 'all',\n        label: 'all'\n      }]);\n    }),\n    /**\n     * Why the panel opened on its printed status pill. Empty once the user picks a different pill.\n     * @returns {string} translation key\n     */\n    defaultPrintedStatusReason: Ember.computed('filters._data.printedStatus', 'tab.dispatchProcess._data.{isDispatched,allowPrintAllWaybills}', 'tab.period', function () {\n      const dispatchProcess = this.tab?.dispatchProcess;\n      const defaultPrintedStatus = this.dispatch.readDefaultPrintedStatus({\n        dispatchProcess,\n        period: this.tab?.period\n      });\n      const selectedPrintedStatus = this?.filters?._data?.printedStatus ?? '';\n      if (selectedPrintedStatus !== defaultPrintedStatus) {\n        return '';\n      }\n      const isUnprintedDefault = defaultPrintedStatus === 'unprinted';\n      if (dispatchProcess?._data?.isDispatched) {\n        return isUnprintedDefault ? 'unprinted is shown by default for today and future dispatch dates' : 'all is shown by default for past dispatch dates';\n      }\n      return isUnprintedDefault ? 'unprinted is shown by default when printing of waybills is allowed' : 'all is shown by default when printing of waybills is not allowed';\n    }),\n    actions: {\n      markDispatchPanelNeedsRefresh() {\n        const markDispatchPanelNeedsRefresh = this.onMarkDispatchPanelNeedsRefresh;\n        if (markDispatchPanelNeedsRefresh) {\n          markDispatchPanelNeedsRefresh();\n        }\n      },\n      setShowFiltersFromFilterToggle(_event, btn) {\n        const showFilters = Boolean(btn?.toggleIsOn);\n        this.filters?.set('showFilters', showFilters);\n      },\n      filterByValue() {\n        const value = this.searchValue;\n        this.deselectAll();\n        this.set('filterByValue', value);\n        this.set('reFilter', Math.random());\n      },\n      selectAll(allSelected) {\n        this.set('allSelected', allSelected);\n        const results = this.results;\n        results.forEach(result => {\n          if (result.model._data.status === this.get('constants.documentsStatus.final')) {\n            result.set('isSelected', allSelected);\n          }\n        });\n        this.notifyPrintSidebarSelectionChange();\n      },\n      deselectAll() {\n        this.set('allSelected', false);\n        const results = this.results;\n        results.forEach(result => {\n          if (result.model._data.status === this.get('constants.documentsStatus.final')) {\n            result.set('isSelected', false);\n          }\n        });\n        this.notifyPrintSidebarSelectionChange();\n      },\n      clearSearch() {\n        this.set('filterByValue', '');\n        this.set('searchValue', '');\n      },\n      fetchUnpaginatedData({\n        setResults = true,\n        hidePrinted\n      }) {\n        const dispatchProcess = this.dispatchProcess;\n        const period = this.period;\n        const hasSelected = this.hasSelected;\n        return this.onFetchUnpaginatedDispatchDataTask.perform({\n          dispatchProcess,\n          period,\n          setResults,\n          hidePrinted,\n          hasSelected\n        });\n      }\n    },\n    isBulkSplitDialogDisabled: Ember.computed('dispatch.bulkSplitRequestLock', function () {\n      return Boolean(this.dispatch?.isBulkSplitRequestInFlight());\n    }),\n    isShowBulkSplitBtn: Ember.computed('isDispatched', 'dispatchProcess.{name,isSystemProcess}', function () {\n      const isDispatched = this?.isDispatched || false;\n      if (isDispatched) {\n        return false;\n      }\n      const dispatchProcess = this?.dispatchProcess || {};\n      const dispatchProcessName = dispatchProcess?._data?.name || '';\n      const isSystemProcess = dispatchProcess?._data?.isSystemProcess || false;\n      if (isSystemProcess && dispatchProcessName === 'all') {\n        return false;\n      }\n      return true;\n    }),\n    onToggleModalDialog() {\n      // @TODO: remove?\n      this.set('showVerticalDispatchProcessBar', false);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"didInsert\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"didInsert\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleTransporterDashboardSelection\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"toggleTransporterDashboardSelection\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleTransporterDashboardSelectAll\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"toggleTransporterDashboardSelectAll\"), _obj), _applyDecoratedDescriptor(_obj, \"deselectAll\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"deselectAll\"), _obj), _applyDecoratedDescriptor(_obj, \"onToggleModalDialog\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"onToggleModalDialog\"), _obj), _obj));\n});","define(\"client/pods/components/dispatch/panels-display/delete-display-list-t-cat/component\", [\"exports\", \"ramda\", \"ember-concurrency\", \"client/mixins/dispatch\", \"client/mixins/transporter\"], function (_exports, R, _emberConcurrency, _dispatch, _transporter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_dispatch.default, _transporter.default, {\n    dispatch: Ember.inject.service(),\n    tagName: 'div',\n    afterRender: false,\n    init() {\n      this._super(...arguments);\n      let transporters = this.get('dashData.inView.transporters') || [];\n      transporters = R.pluck('transporter')(transporters);\n      const filterByTransportersData = {};\n      R.forEach(transporter => {\n        filterByTransportersData[transporter] = true;\n      }, transporters);\n      this.set('filterByTransporters', Ember.Object.create(filterByTransportersData));\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      if (!this.isPrinting) {\n        this.fetchAllProductsTask.perform();\n      }\n      Ember.run.scheduleOnce('afterRender', this, () => {\n        this.set('afterRender', true);\n      });\n    },\n    fetchAllProductsTask: (0, _emberConcurrency.task)(function* () {\n      const summaryData = this.summaryData;\n      const adapterName = 'products';\n      const fetchAllProductsQ = R.pipe(R.propOr([], 'items'), R.pluck('itemKey'), R.reject(R.anyPass([R.isNil, R.isEmpty])), R.uniq, R.map(itemKey => {\n        const appendPath = itemKey;\n        return this.dataManager.findRecord({\n          adapterName,\n          appendPath\n        });\n      }))(summaryData);\n      const productsList = yield (0, _emberConcurrency.all)(fetchAllProductsQ);\n      this.set('productsList', productsList);\n      // this.set('afterRenderAndLoaded', true)\n    }),\n    models: Ember.computed('filteredResults.[]', function () {\n      const filteredResults = this.filteredResults;\n      return filteredResults.map(result => {\n        return result.model;\n      });\n    }),\n    modelDatas: Ember.computed('models.@each._data', function () {\n      const models = this.models;\n      return models.map(result => {\n        return result._data;\n      });\n    }),\n    duplicateWaybills: Ember.computed('dashData.inView.duplicates.waybills', function () {\n      return this.get('dashData.inView.duplicates.waybills') || {};\n    }),\n    duplicateWaybillsDocNos: Ember.computed('duplicateWaybills', function () {\n      const duplicateData = this.duplicateWaybills || {};\n      return this._getDuplicateDocNos(duplicateData);\n    }),\n    duplicateAddresses: Ember.computed('dashData.inView.duplicates.addresses.values.[]', function () {\n      return this.get('dashData.inView.duplicates.addresses') || {};\n    }),\n    duplicateAddressesDocNos: Ember.computed('duplicateAddresses.values.[]', function () {\n      const duplicateData = this.duplicateAddresses || {};\n      return this._getDuplicateDocNos(duplicateData);\n    }),\n    _getDuplicateDocNos(duplicateData) {\n      return R.pipe(R.propOr([], 'values'), R.pluck('docs'), R.flatten)(duplicateData);\n    },\n    actions: {\n      setTransporterFilter(transporter, value) {\n        const filterByTransporters = this.filterByTransporters;\n        filterByTransporters.set(transporter, value);\n      },\n      afterSplit() {\n        const dispatchProcess = this.dispatchProcess;\n        const onAfterSplit = this.onAfterSplit;\n        onAfterSplit(dispatchProcess);\n      },\n      afterMerge() {\n        const dispatchProcess = this.dispatchProcess;\n        const onAfterMerge = this.onAfterMerge;\n        onAfterMerge(dispatchProcess);\n      },\n      toggleAllDetails(filteredResults) {\n        this.toggleProperty('showDetails');\n        const showDetails = this.showDetails;\n        filteredResults.forEach(modelProxy => {\n          modelProxy.set('showDetails', showDetails);\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/delete-display-list-t-cat/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"x+LCrkwP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"modelProxy\\\",\\\"index\\\",\\\"displayDocRowComponent\\\",\\\"onSetIsDispatchedProcessTask\\\",\\\"group\\\",\\\"group\\\",\\\"detail\\\",\\\"onSetIsDispatchedProcessTask\\\",\\\"onCloseDialogAction\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"accordianContainer\\\",\\\"duplicate\\\",\\\"duplicateDoc\\\",\\\"accordianContainer\\\",\\\"duplicate\\\",\\\"duplicateDoc\\\",\\\"byTransporter\\\",\\\"modelProxy\\\",\\\"index\\\",\\\"@onFetchOverviewTask\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isPrinting\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-header-1\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"period\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"dispatched\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"period\\\",\\\"weekday\\\"]]],null],false],[0,\\\" \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"filteredResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"dispatch/panels-display/print-item\\\",null,[[\\\"index\\\",\\\"errors\\\",\\\"error\\\",\\\"dispatchProcess\\\",\\\"printReturnsDisplay\\\",\\\"hasPrices\\\",\\\"hasGroups\\\",\\\"hasPrintTerms\\\",\\\"extName\\\",\\\"model\\\",\\\"tab\\\",\\\"onFetchOverviewTask\\\"],[[23,22,[]],[24,[\\\"errors\\\"]],[28,\\\"get-error-by-index\\\",[[24,[\\\"errors\\\"]],[23,22,[]]],null],[24,[\\\"dispatchProcess\\\"]],[24,[\\\"printReturnsDisplay\\\"]],[24,[\\\"hasPrices\\\"]],[24,[\\\"hasGroups\\\"]],[24,[\\\"hasPrintTerms\\\"]],[24,[\\\"extName\\\"]],[23,21,[\\\"model\\\"]],[24,[\\\"tab\\\"]],[23,23,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[21,22]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__item\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__header\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__body\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"dashData\\\",\\\"inView\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"dashData\\\",\\\"inView\\\",\\\"packages\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"dashData\\\",\\\"inView\\\",\\\"transporters\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__item\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__header\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\":\\\\n\\\"],[4,\\\"if\\\",[[23,20,[\\\"transporter\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,20,[\\\"transporter\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,20,[\\\"transporterAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"              (\\\"],[1,[23,20,[\\\"transporterAccount\\\"]],false],[0,\\\" - \\\"],[1,[23,20,[\\\"transporterAccountNumber\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__body\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,20,[\\\"count\\\"]]],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,20,[\\\"packages\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[20]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"duplicateAddresses\\\"]],[24,[\\\"duplicateWaybills\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"duplicateAddresses\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/accordian-container\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,17,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"message-header\\\"],[12,\\\"tabindex\\\",\\\"0\\\"],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"toggleAction\\\"]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"duplicate addresses\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"duplicateAddresses\\\",\\\"count\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,17,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"duplicateAddresses\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-error\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,18,[\\\"value\\\"]],false],[0,\\\":\\\\n\\\"],[4,\\\"each\\\",[[23,18,[\\\"docs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t#\\\"],[1,[23,19,[\\\"docNo\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,19,[\\\"docType\\\"]],\\\"-\\\",[23,19,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[19]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[18]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[17]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"duplicateWaybills\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,14,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"message-header\\\"],[12,\\\"tabindex\\\",\\\"0\\\"],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"toggleAction\\\"]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"duplicate addresses\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"duplicateWaybills\\\",\\\"count\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,14,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"duplicateWaybills\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-error\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,15,[\\\"value\\\"]],false],[0,\\\":\\\\n\\\"],[4,\\\"each\\\",[[23,15,[\\\"docs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t#\\\"],[1,[23,16,[\\\"docNo\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,16,[\\\"docType\\\"]],\\\"-\\\",[23,16,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[16]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[15]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[14]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-list__table u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\",\\\"@onToggle\\\"],[[22,\\\"allSelected\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"allSelected\\\"]]],null]],null],[22,\\\"onDeselectAll\\\"]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"docNo\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          #\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"timestampZ_latest\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"contact\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"ref\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"channel\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"paymentMethodKey\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"payment method\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"inclTotal\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"transporterLabel\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"transporterAccount\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"transporter account\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"packages\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"waybill\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"waybill\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"status\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleAllDetails\\\",[24,[\\\"filteredResults\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"filteredResults\\\"]]],null,{\\\"statements\\\":[[4,\\\"dispatch/panels-display/display-doc-row\\\",null,[[\\\"model\\\",\\\"filters\\\",\\\"dispatchProcess\\\",\\\"duplicateWaybillsDocNos\\\",\\\"duplicateAddressesDocNos\\\"],[[23,1,[\\\"model\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"dispatchProcess\\\"]],[24,[\\\"duplicateWaybillsDocNos\\\"]],[24,[\\\"duplicateAddressesDocNos\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"dispatch-list__table-info-row \\\",[28,\\\"if\\\",[[23,1,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"isDispatchableToday\\\"]],\\\"dispatch-item--dispatchable-today\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"allowCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,1,[\\\"isSelected\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,1,[\\\"isSelected\\\"]]],null]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                #\\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"isConsignment\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"u-icon-spacer--left\\\",\\\"fas fa-asterik\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,13,[]]]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"]],\\\"parameters\\\":[13]}],[0,\\\"\\\\n\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"dateZ\\\"]],\\\"MM/DD\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[28,\\\"not-eq\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                  (\\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[\\\"u-icon-spacer--left\\\",\\\"fas fa-address-card\\\"]]],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,12,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"address\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"address\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"telephone\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"taxNumber\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[12]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"hasDuplicateWaybill\\\"]],[23,3,[\\\"hasDuplicateContact\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,11,[]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"hasDuplicateWaybill\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-error\\\",\\\"duplicate waybills\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasDuplicateContact\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-error\\\",\\\"duplicate addresses\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"]],\\\"parameters\\\":[11]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]],false,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"account last 5 digits\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n                : \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive total\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"exclTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"taxTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"promoCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"promo code\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"promoCode\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[10]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@toggleIsOn\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@icon\\\"],[true,true,[23,1,[\\\"model\\\",\\\"isMissingHCTDataClassNames\\\"]],[23,1,[\\\"model\\\",\\\"isMissingHCTDataClassNames\\\"]],[23,1,[\\\"showPreDispatchProcess\\\"]],false,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterLabel\\\"]],\\\"fas fa-truck\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccount\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"packages\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterOBTNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterOBTNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"waybill\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@btnTooltipLabel\\\",\\\"@btnIcon\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@isPublic\\\",\\\"@metaData\\\",\\\"@excludeFromFilters\\\"],[\\\"comments/comments-manager/modal-btn\\\",[22,\\\"tab\\\"],\\\"customer comments\\\",\\\"fa-solid fa-comments\\\",\\\"documents-public\\\",[23,1,[\\\"_data\\\",\\\"txType\\\"]],[23,1,[\\\"_data\\\",\\\"_key\\\"]],true,[22,\\\"relatedComments\\\"],true,[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"subType\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"locale\\\",\\\"ref\\\",\\\"threadId\\\",\\\"isPublic\\\",\\\"emailType\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\"],[\\\"documents-public\\\",[23,1,[\\\"_data\\\",\\\"txType\\\"]],[23,1,[\\\"_data\\\",\\\"contact\\\"]],[23,1,[\\\"_data\\\",\\\"contactKey\\\"]],[23,1,[\\\"_data\\\",\\\"email\\\"]],[23,1,[\\\"_data\\\",\\\"contact\\\"]],[23,1,[\\\"_data\\\",\\\"locale\\\"]],[23,1,[\\\"_data\\\",\\\"ref\\\"]],[23,1,[\\\"_data\\\",\\\"externalUrl\\\"]],true,\\\"fromMerchantToCustomer\\\",[23,1,[\\\"_data\\\",\\\"sourceKey\\\"]],[23,1,[\\\"_data\\\",\\\"sourceHost\\\"]],[23,1,[\\\"_data\\\",\\\"sourceHostName\\\"]]]]],[28,\\\"array\\\",[\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"emailType\\\",\\\"emailFromAddress\\\",\\\"emailFromName\\\",\\\"locale\\\",\\\"ref\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"threadId\\\"],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@hasLabel\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",[22,\\\"tab\\\"],false,\\\"documents\\\",[23,1,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,[22,\\\"relatedComments\\\"],[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"docNo\\\",\\\"contactKey\\\",\\\"docType\\\",\\\"docName\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]]]]]]],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"documents/btn-split\\\",null,[[\\\"splitAppendPath\\\",\\\"model\\\",\\\"icon\\\",\\\"onAfterSplit\\\"],[\\\"final/split\\\",[23,1,[\\\"model\\\"]],\\\"fas fa-cut\\\",[28,\\\"action\\\",[[23,0,[]],\\\"afterSplit\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n            \\\"],[1,[28,\\\"documents/btn-merge\\\",null,[[\\\"model\\\",\\\"duplicateAddressesDocNos\\\",\\\"onAfterMerge\\\"],[[23,1,[\\\"model\\\"]],[24,[\\\"duplicateAddressesDocNos\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterMerge\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"documents/document-print/print-list\\\",null,[[\\\"dispatchProcess\\\",\\\"results\\\"],[[24,[\\\"dispatchProcess\\\"]],[28,\\\"array\\\",[[23,1,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"isToggleBtn\\\",\\\"toggleValue\\\",\\\"model\\\",\\\"disabled\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[true,[23,1,[\\\"showVerticalDispatchProcessBar\\\"]],[23,1,[\\\"model\\\"]],[23,1,[\\\"isSelected\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"dispatch/processes-bar-container\\\",null,[[\\\"model\\\",\\\"isBtn\\\",\\\"isVertical\\\",\\\"isModal\\\",\\\"hasPreDispatchDialog\\\",\\\"disabled\\\",\\\"selected\\\",\\\"steps\\\",\\\"showProcessBar\\\",\\\"onShowPreDispatchProcessDialog\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"onAfterSubmit\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\"],[[23,1,[\\\"model\\\"]],true,true,true,true,[23,1,[\\\"isSelected\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"dispatchProcess\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[23,1,[\\\"showVerticalDispatchProcessBar\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"showPreDispatchProcessDialog\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"closePreDispatchProcessDialog\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"showWaybills\\\",[23,1,[]]],null],\\\"_data.code\\\",\\\"_data.name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"dispatch/pre-dispatch-modal\\\",null,[[\\\"tab\\\",\\\"modalDialogIsVisible\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"model\\\",\\\"modelProxy\\\",\\\"errors\\\",\\\"externalTransportersList\\\",\\\"onSetIsDispatchedProcessTask\\\"],[[24,[\\\"tab\\\"]],[23,1,[\\\"showPreDispatchProcess\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closePreDispatchProcessDialog\\\",[23,1,[]]],null],[23,1,[\\\"model\\\"]],[23,1,[]],[24,[\\\"errors\\\"]],[24,[\\\"transportersList\\\"]],[23,8,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]],[24,[\\\"constants\\\",\\\"documentsStatus\\\",\\\"final\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@toggleIsOn\\\"],[true,[23,1,[\\\"showDetails\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"dispatch-list__table-details-row \\\",[28,\\\"if\\\",[[23,1,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"model\\\",\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[23,7,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                        \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,7,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                        \\\"],[1,[23,7,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                        \\\"],[1,[23,7,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,7,[\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,7,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"6\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-details-row\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"notes\\\"],null],false],[9],[0,\\\"\\\\n                      \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[23,6,[\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"transporter notes\\\"],null],false],[9],[0,\\\"\\\\n                      \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[23,5,[\\\"_data\\\",\\\"transporterNotes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-print dispatch-list__table-process-bar-row \\\",[28,\\\"if\\\",[[23,1,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"dispatch/processes-bar-container\\\",null,[[\\\"model\\\",\\\"hasPreDispatchDialog\\\",\\\"disabled\\\",\\\"selected\\\",\\\"steps\\\",\\\"onShowPreDispatchProcessDialog\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"onAfterSubmit\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\"],[[23,1,[\\\"model\\\"]],true,[23,1,[\\\"isSelected\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"dispatchProcess\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"showPreDispatchProcessDialog\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"closePreDispatchProcessDialog\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"showWaybills\\\",[23,1,[]]],null],\\\"_data.code\\\",\\\"_data.name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"showPreDispatchProcess\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"dispatch/pre-dispatch-modal\\\",null,[[\\\"tab\\\",\\\"modalDialogIsVisible\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"model\\\",\\\"modelProxy\\\",\\\"errors\\\",\\\"externalTransportersList\\\",\\\"onSetIsDispatchedProcessTask\\\"],[[24,[\\\"tab\\\"]],[23,1,[\\\"showPreDispatchProcess\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closePreDispatchProcessDialog\\\",[23,1,[]]],null],[23,1,[\\\"model\\\"]],[23,1,[]],[24,[\\\"errors\\\"]],[24,[\\\"transportersList\\\"]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-print dispatch-list__table-spacer-row \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"filterByValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-no-print\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"search\\\"],null],false],[0,\\\": \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold u-desc--italics\\\"],[8],[0,\\\"\\\\\\\"\\\"],[1,[22,\\\"filterByValue\\\"],false],[0,\\\"\\\\\\\"\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-badge\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"count\\\",[[24,[\\\"filteredResults\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSearch\\\"]]]],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-no-print\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"selected items\\\"],null],false],[0,\\\":\\\\n\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-badge\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"count\\\",[[24,[\\\"hasSelected\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onDeselectAll\\\"]]]],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"afterRender\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dispatch/panels-display/list-summary\\\",null,[[\\\"allowProcesses\\\",\\\"isDispatched\\\",\\\"isDispatchedProcessModel\\\",\\\"isDispatchedBeforeToday\\\",\\\"productsList\\\",\\\"autoFetchProduct\\\",\\\"summaryData\\\"],[[24,[\\\"allowProcesses\\\"]],[24,[\\\"isDispatched\\\"]],[24,[\\\"isDispatchedProcessModel\\\"]],[24,[\\\"isDispatchedBeforeToday\\\"]],[24,[\\\"productsList\\\"]],[24,[\\\"autoFetchProduct\\\"]],[24,[\\\"summaryData\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/panels-display/delete-display-list-t-cat/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/display-doc-row/component\", [\"exports\", \"ramda\", \"client/utils/nventor\"], function (_exports, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    allowCheckbox: Ember.computed('model._data.{status,dispatchProcess}', 'dispatchProcess', function () {\n      const model = this.model;\n      const currentDispatchProcess = this.get('dispatchProcess._data.code');\n      const dispatchProcess = model.getData('dispatchProcess') || 'unprepared';\n      if (dispatchProcess !== currentDispatchProcess && currentDispatchProcess !== 'all') {\n        return false;\n      }\n      if (model.getData('status') === this.get('constants.documentsStatus.final')) {\n        return true;\n      }\n      return false;\n    }),\n    hasDuplicateWaybill: Ember.computed('model._data.waybill', 'duplicateWaybillsDocNos.@each.selected', function () {\n      const modelValue = this.get('model._data.waybill');\n      const duplicates = this.duplicateWaybillsDocNos || [];\n      const found = R.find(R.propEq('value', modelValue), duplicates);\n      if (found) {\n        return true;\n      }\n      return false;\n    }),\n    hasDuplicateContact: Ember.computed('model._data.address', 'duplicateAddressesDocNos.[]', function () {\n      const model = this.model;\n      const modelValue = this.get('model._data.address');\n      const duplicates = this.duplicateAddressesDocNos || [];\n      const found = R.filter(R.allPass([R.propEq('value', modelValue), _nventor.default.allEqProps(['docType', 'docName'], model._data)]))(duplicates);\n      if (!R.isEmpty(found)) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/dispatch/panels-display/display-doc-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vp1Xe8vU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1,[[23,0,[]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/panels-display/display-doc-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/display-list/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency\", \"client/mixins/dispatch\", \"client/mixins/transporter\"], function (_exports, R, RA, _emberConcurrency, _dispatch, _transporter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_dispatch.default, _transporter.default, {\n    dispatch: Ember.inject.service(),\n    tagName: 'div',\n    afterRender: false,\n    scheduleOnceAfterRender: true,\n    init() {\n      this._super(...arguments);\n      let transporters = this.get('dashData.inView.transporters') || [];\n      transporters = R.pluck('transporter')(transporters);\n      const filterByTransportersData = {};\n      R.forEach(transporter => {\n        filterByTransportersData[transporter] = true;\n      }, transporters);\n      this.set('filterByTransporters', Ember.Object.create(filterByTransportersData));\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      if (!this.isPrinting) {\n        this.fetchAllProductsTask.perform();\n      }\n      Ember.run.scheduleOnce('afterRender', this, () => {\n        if (this.scheduleOnceAfterRender) {\n          this.set('afterRender', true);\n        }\n      });\n    },\n    fetchAllProductsTask: (0, _emberConcurrency.task)(function* () {\n      const summaryData = this.summaryData;\n      const adapterName = 'products';\n      const fetchAllProductsQ = R.pipe(R.propOr([], 'items'), R.pluck('itemKey'), R.reject(R.anyPass([R.isNil, R.isEmpty])), R.uniq, R.map(itemKey => {\n        const appendPath = itemKey;\n        return this.dataManager.findRecord({\n          adapterName,\n          appendPath\n        });\n      }))(summaryData);\n      const productsList = yield (0, _emberConcurrency.all)(fetchAllProductsQ);\n      this.set('productsList', productsList);\n      // this.set('afterRenderAndLoaded', true)\n    }),\n    models: Ember.computed('filteredResults.[]', function () {\n      const filteredResults = this.filteredResults;\n      return filteredResults.map(result => {\n        return result.model;\n      });\n    }),\n    modelDatas: Ember.computed('models.@each._data', function () {\n      const models = this.models;\n      return models.map(result => {\n        return result._data;\n      });\n    }),\n    duplicateWaybills: Ember.computed('dashData.inView.duplicates.waybills', function () {\n      return this.get('dashData.inView.duplicates.waybills') || {};\n    }),\n    duplicateWaybillsDocNos: Ember.computed('duplicateWaybills', function () {\n      const duplicateData = this.duplicateWaybills || {};\n      return this._getDuplicateDocNos(duplicateData);\n    }),\n    duplicateAddresses: Ember.computed('dashData.inView.duplicates.addresses.values.[]', function () {\n      return this.get('dashData.inView.duplicates.addresses') || {};\n    }),\n    duplicateAddressesDocNos: Ember.computed('duplicateAddresses.values.[]', function () {\n      const duplicateData = this.duplicateAddresses || {};\n      return this._getDuplicateDocNos(duplicateData);\n    }),\n    _getDuplicateDocNos(duplicateData) {\n      return R.pipe(R.propOr([], 'values'), R.pluck('docs'), R.flatten)(duplicateData);\n    },\n    actions: {\n      setTransporterFilter(transporter, value) {\n        const filterByTransporters = this.filterByTransporters;\n        filterByTransporters.set(transporter, value);\n      },\n      afterSplit() {\n        const dispatchProcess = this.dispatchProcess;\n        const onAfterSplit = this.onAfterSplit;\n        onAfterSplit(dispatchProcess);\n      },\n      afterMerge() {\n        const dispatchProcess = this.dispatchProcess;\n        const onAfterMerge = this.onAfterMerge;\n        onAfterMerge(dispatchProcess);\n      },\n      toggleAllDetails(filteredResults) {\n        this.toggleProperty('showDetails');\n        const showDetails = this.showDetails;\n        filteredResults.forEach(modelProxy => {\n          modelProxy.set('showDetails', showDetails);\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/display-list/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FMd8HoDs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"modelProxy\\\",\\\"index\\\",\\\"displayDocRowComponent\\\",\\\"onSetIsDispatchedProcessTask\\\",\\\"group\\\",\\\"group\\\",\\\"detail\\\",\\\"onSetIsDispatchedProcessTask\\\",\\\"onCloseDialogAction\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"accordianContainer\\\",\\\"duplicate\\\",\\\"duplicateDoc\\\",\\\"accordianContainer\\\",\\\"duplicate\\\",\\\"duplicateDoc\\\",\\\"byTransporter\\\",\\\"modelProxy\\\",\\\"@printReturnsDisplay\\\",\\\"@isRunning\\\",\\\"@onFetchOverviewTask\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isPrinting\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-header-1\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"period\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"dispatched\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"period\\\",\\\"weekday\\\"]]],null],false],[0,\\\" \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"filteredResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"dispatch/panels-display/print-item\\\",null,[[\\\"dispatchProcess\\\",\\\"printReturnsDisplay\\\",\\\"hasPrices\\\",\\\"hasGroups\\\",\\\"hasPrintTerms\\\",\\\"extName\\\",\\\"model\\\",\\\"isReadonly\\\",\\\"tab\\\",\\\"onFetchOverviewTask\\\",\\\"isRunning\\\"],[[24,[\\\"dispatchProcess\\\"]],[23,22,[]],[24,[\\\"hasPrices\\\"]],[24,[\\\"hasGroups\\\"]],[24,[\\\"hasPrintTerms\\\"]],[24,[\\\"extName\\\"]],[23,21,[\\\"model\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"tab\\\"]],[23,24,[]],[23,23,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[21]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__item\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__header\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__body\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"dashData\\\",\\\"inView\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"dashData\\\",\\\"inView\\\",\\\"packages\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"dashData\\\",\\\"inView\\\",\\\"transporters\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__item\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__header\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\":\\\\n\\\"],[4,\\\"if\\\",[[23,20,[\\\"transporter\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,20,[\\\"transporter\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,20,[\\\"transporterAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"              (\\\"],[1,[23,20,[\\\"transporterAccount\\\"]],false],[0,\\\" - \\\"],[1,[23,20,[\\\"transporterAccountNumber\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-dashboard-bar__body\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,20,[\\\"count\\\"]]],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,20,[\\\"packages\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[20]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"duplicateAddresses\\\"]],[24,[\\\"duplicateWaybills\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"duplicateAddresses\\\",\\\"valuesWithoutConvinienceStores\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,17,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"message-header\\\"],[12,\\\"tabindex\\\",\\\"0\\\"],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"toggleAction\\\"]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"duplicate addresses\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"duplicateAddresses\\\",\\\"countWithoutConvinienceStores\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,17,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"duplicateAddresses\\\",\\\"valuesWithoutConvinienceStores\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-error\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,18,[\\\"value\\\"]],false],[0,\\\":\\\\n\\\"],[4,\\\"each\\\",[[23,18,[\\\"docs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t#\\\"],[1,[23,19,[\\\"docNo\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,19,[\\\"docType\\\"]],\\\"-\\\",[23,19,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[19]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[18]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[17]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"duplicateWaybills\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,14,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"message-header\\\"],[12,\\\"tabindex\\\",\\\"0\\\"],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"toggleAction\\\"]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"duplicate addresses\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"duplicateWaybills\\\",\\\"count\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,14,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"duplicateWaybills\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-error\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,15,[\\\"value\\\"]],false],[0,\\\":\\\\n\\\"],[4,\\\"each\\\",[[23,15,[\\\"docs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t#\\\"],[1,[23,16,[\\\"docNo\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,16,[\\\"docType\\\"]],\\\"-\\\",[23,16,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[16]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[15]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[14]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-list__table u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\",\\\"@onToggle\\\"],[[22,\\\"allSelected\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"allSelected\\\"]]],null]],null],[22,\\\"onDeselectAll\\\"]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"docNo\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          #\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"timestampZ_latest\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"contact\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"ref\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"channel\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"paymentMethodKey\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"payment method\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"inclTotal\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"transporterLabel\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"transporterAccount\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"transporter account\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"packages\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"waybill\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"waybill\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"filters\\\"]],\\\"status\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleAllDetails\\\",[24,[\\\"filteredResults\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"filteredResults\\\"]]],null,{\\\"statements\\\":[[4,\\\"dispatch/panels-display/display-doc-row\\\",null,[[\\\"model\\\",\\\"filters\\\",\\\"dispatchProcess\\\",\\\"duplicateWaybillsDocNos\\\",\\\"duplicateAddressesDocNos\\\"],[[23,1,[\\\"model\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"dispatchProcess\\\"]],[24,[\\\"duplicateWaybillsDocNos\\\"]],[24,[\\\"duplicateAddressesDocNos\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"dispatch-list__table-info-row \\\",[28,\\\"if\\\",[[23,1,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"isDispatchableToday\\\"]],\\\"dispatch-item--dispatchable-today\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"allowCheckbox\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,1,[\\\"isSelected\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,1,[\\\"isSelected\\\"]]],null]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                #\\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"isConsignment\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"u-icon-spacer--left\\\",\\\"fas fa-asterik\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,13,[]]]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"]],\\\"parameters\\\":[13]}],[0,\\\"\\\\n\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"dateZ\\\"]],\\\"MM/DD\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[28,\\\"not-eq\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                  (\\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[\\\"u-icon-spacer--left\\\",\\\"fas fa-address-card\\\"]]],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,12,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"address\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"address\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"telephone\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"taxNumber\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[12]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"hasDuplicateWaybill\\\"]],[23,3,[\\\"hasDuplicateContact\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,11,[]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"hasDuplicateWaybill\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-error\\\",\\\"duplicate waybills\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasDuplicateContact\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-error\\\",\\\"duplicate addresses\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"]],\\\"parameters\\\":[11]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]],false,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"account last 5 digits\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n                : \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive total\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"exclTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"taxTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"promoCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"promo code\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"promoCode\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[10]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@toggleIsOn\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@icon\\\"],[true,true,[23,1,[\\\"model\\\",\\\"isMissingHCTDataClassNames\\\"]],[23,1,[\\\"model\\\",\\\"isMissingHCTDataClassNames\\\"]],[23,1,[\\\"showPreDispatchProcess\\\"]],false,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterLabel\\\"]],\\\"fas fa-truck\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccount\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"packages\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterOBTNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterOBTNumber\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"waybill\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@tooltipLabel\\\",\\\"@btnIcon\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@isPublic\\\",\\\"@metaData\\\",\\\"@excludeFromFilters\\\"],[\\\"comments/comments-manager/modal-btn\\\",[22,\\\"tab\\\"],\\\"customer comments\\\",\\\"fa-solid fa-comments\\\",\\\"documents-public\\\",[23,1,[\\\"_data\\\",\\\"txType\\\"]],[23,1,[\\\"_data\\\",\\\"_key\\\"]],true,[22,\\\"relatedComments\\\"],true,[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"subType\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"locale\\\",\\\"ref\\\",\\\"threadId\\\",\\\"isPublic\\\",\\\"emailType\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\"],[\\\"documents-public\\\",[23,1,[\\\"_data\\\",\\\"txType\\\"]],[23,1,[\\\"_data\\\",\\\"contact\\\"]],[23,1,[\\\"_data\\\",\\\"contactKey\\\"]],[23,1,[\\\"_data\\\",\\\"email\\\"]],[23,1,[\\\"_data\\\",\\\"contact\\\"]],[23,1,[\\\"_data\\\",\\\"locale\\\"]],[23,1,[\\\"_data\\\",\\\"ref\\\"]],[23,1,[\\\"_data\\\",\\\"externalUrl\\\"]],true,\\\"fromMerchantToCustomer\\\",[23,1,[\\\"_data\\\",\\\"sourceKey\\\"]],[23,1,[\\\"_data\\\",\\\"sourceHost\\\"]],[23,1,[\\\"_data\\\",\\\"sourceHostName\\\"]]]]],[28,\\\"array\\\",[\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"emailType\\\",\\\"emailFromAddress\\\",\\\"emailFromName\\\",\\\"locale\\\",\\\"ref\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"threadId\\\"],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@hasLabel\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",[22,\\\"tab\\\"],false,\\\"documents\\\",[23,1,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,[22,\\\"relatedComments\\\"],[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"docNo\\\",\\\"contactKey\\\",\\\"docType\\\",\\\"docName\\\"],[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]]]]]]],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"documents/btn-split\\\",null,[[\\\"splitAppendPath\\\",\\\"model\\\",\\\"icon\\\",\\\"onAfterSplit\\\"],[\\\"final/split\\\",[23,1,[\\\"model\\\"]],\\\"fas fa-cut\\\",[28,\\\"action\\\",[[23,0,[]],\\\"afterSplit\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n            \\\"],[1,[28,\\\"documents/btn-merge\\\",null,[[\\\"model\\\",\\\"duplicateAddressesDocNos\\\",\\\"onAfterMerge\\\"],[[23,1,[\\\"model\\\"]],[24,[\\\"duplicateAddressesDocNos\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterMerge\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"documents/document-print/print-list\\\",null,[[\\\"dispatchProcess\\\",\\\"printReturnsDisplay\\\",\\\"results\\\"],[[24,[\\\"dispatchProcess\\\"]],[23,22,[]],[28,\\\"array\\\",[[23,1,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"isToggleBtn\\\",\\\"toggleValue\\\",\\\"model\\\",\\\"disabled\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[true,[23,1,[\\\"showVerticalDispatchProcessBar\\\"]],[23,1,[\\\"model\\\"]],[23,1,[\\\"isSelected\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"dispatch/processes-bar-container\\\",null,[[\\\"model\\\",\\\"isBtn\\\",\\\"isVertical\\\",\\\"isModal\\\",\\\"hasPreDispatchDialog\\\",\\\"disabled\\\",\\\"selected\\\",\\\"steps\\\",\\\"showProcessBar\\\",\\\"onShowPreDispatchProcessDialog\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"onAfterSubmit\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\"],[[23,1,[\\\"model\\\"]],true,true,true,true,[23,1,[\\\"isSelected\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"dispatchProcess\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[23,1,[\\\"showVerticalDispatchProcessBar\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"showPreDispatchProcessDialog\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"closePreDispatchProcessDialog\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"showWaybills\\\",[23,1,[]]],null],\\\"_data.code\\\",\\\"_data.name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"dispatch/pre-dispatch-modal\\\",null,[[\\\"tab\\\",\\\"modalDialogIsVisible\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"model\\\",\\\"modelProxy\\\",\\\"errors\\\",\\\"externalTransportersList\\\",\\\"onSetIsDispatchedProcessTask\\\"],[[24,[\\\"tab\\\"]],[23,1,[\\\"showPreDispatchProcess\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closePreDispatchProcessDialog\\\",[23,1,[]]],null],[23,1,[\\\"model\\\"]],[23,1,[]],[24,[\\\"errors\\\"]],[24,[\\\"transportersList\\\"]],[23,8,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]],[24,[\\\"constants\\\",\\\"documentsStatus\\\",\\\"final\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@toggleIsOn\\\"],[true,[23,1,[\\\"showDetails\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"dispatch-list__table-details-row \\\",[28,\\\"if\\\",[[23,1,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"model\\\",\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[23,7,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                        \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,7,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                        \\\"],[1,[23,7,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,7,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                        \\\"],[1,[23,7,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,7,[\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,7,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"6\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"doc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-details-row\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"notes\\\"],null],false],[9],[0,\\\"\\\\n                      \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[23,6,[\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"transporter notes\\\"],null],false],[9],[0,\\\"\\\\n                      \\\"],[1,[23,1,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[23,5,[\\\"_data\\\",\\\"transpoterNotes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-print dispatch-list__table-process-bar-row \\\",[28,\\\"if\\\",[[23,1,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"dispatch/processes-bar-container\\\",null,[[\\\"model\\\",\\\"hasPreDispatchDialog\\\",\\\"disabled\\\",\\\"selected\\\",\\\"steps\\\",\\\"onShowPreDispatchProcessDialog\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"onAfterSubmit\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\"],[[23,1,[\\\"model\\\"]],true,[23,1,[\\\"isSelected\\\"]],[23,1,[\\\"model\\\",\\\"_data\\\",\\\"dispatchProcess\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"showPreDispatchProcessDialog\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"closePreDispatchProcessDialog\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"showWaybills\\\",[23,1,[]]],null],\\\"_data.code\\\",\\\"_data.name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"showPreDispatchProcess\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"dispatch/pre-dispatch-modal\\\",null,[[\\\"tab\\\",\\\"modalDialogIsVisible\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"model\\\",\\\"modelProxy\\\",\\\"errors\\\",\\\"externalTransportersList\\\",\\\"onSetIsDispatchedProcessTask\\\"],[[24,[\\\"tab\\\"]],[23,1,[\\\"showPreDispatchProcess\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closePreDispatchProcessDialog\\\",[23,1,[]]],null],[23,1,[\\\"model\\\"]],[23,1,[]],[24,[\\\"errors\\\"]],[24,[\\\"transportersList\\\"]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-print dispatch-list__table-spacer-row \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"filterByValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-no-print\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"search\\\"],null],false],[0,\\\": \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold u-desc--italics\\\"],[8],[0,\\\"\\\\\\\"\\\"],[1,[22,\\\"filterByValue\\\"],false],[0,\\\"\\\\\\\"\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-badge\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"count\\\",[[24,[\\\"filteredResults\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSearch\\\"]]]],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-no-print\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"selected items\\\"],null],false],[0,\\\":\\\\n\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-badge\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"count\\\",[[24,[\\\"hasSelected\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onDeselectAll\\\"]]]],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"afterRender\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dispatch/panels-display/list-summary\\\",null,[[\\\"allowProcesses\\\",\\\"isDispatched\\\",\\\"isDispatchedProcessModel\\\",\\\"isDispatchedBeforeToday\\\",\\\"productsList\\\",\\\"autoFetchProduct\\\",\\\"summaryData\\\"],[[24,[\\\"allowProcesses\\\"]],[24,[\\\"isDispatched\\\"]],[24,[\\\"isDispatchedProcessModel\\\"]],[24,[\\\"isDispatchedBeforeToday\\\"]],[24,[\\\"productsList\\\"]],[24,[\\\"autoFetchProduct\\\"]],[24,[\\\"summaryData\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/panels-display/display-list/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/list-summary/component\", [\"exports\", \"ramda\", \"client/mixins/big\", \"ramda-extension\"], function (_exports, R, _big, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_big.default, {\n    crud: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    tagName: '',\n    displaySummary: false,\n    didInsertElement() {\n      this._super(...arguments);\n      setTimeout(() => {\n        if (this?.isDestroyed === false) {\n          this.set('displaySummary', true);\n        }\n      }, 700);\n    },\n    hasMultipleProcesses: Ember.computed('summaryData.processes.[]', function () {\n      const processes = this.get('summaryData.processes') || [];\n      if (processes.length > 1) {\n        return true;\n      }\n      return false;\n    }),\n    dispatchProcessesList: Ember.computed('crud.lists.dispatch-lists-processes-menu.[]', function () {\n      const dispatchProcessesList = R_.dotPath('crud.lists.dispatch-lists-processes-menu')(this) || [];\n      const isDispatchedProcessModel = this.isDispatchedProcessModel;\n      return R.concat(dispatchProcessesList, [isDispatchedProcessModel]);\n    }),\n    summaryProcessesFilters: Ember.computed('filteredSummaryData.[]', function () {\n      const dispatchProcessCodes = this.get('summaryData.processes') || [];\n      const dispatchProcesses = this.dispatchProcessesList;\n      const unpreparedProcess = this.dispatch.findDispatchProcess(dispatchProcesses, 'unprepared');\n      return R.pipe(R.map(dispatchProcessCode => {\n        const dispatchProcess = this.dispatch.findDispatchProcess(dispatchProcesses, dispatchProcessCode) || unpreparedProcess;\n        return Ember.Object.create({\n          dispatchProcess,\n          index: R.path(['_data', 'index'])(dispatchProcess),\n          selected: true\n        });\n      }), R.uniq, R.sortWith([R.ascend(R.prop('index'))]))(dispatchProcessCodes);\n    }),\n    allowedDispatchProcessesCodes: Ember.computed('summaryProcessesFilters.@each.selected', function () {\n      const summaryProcessesFilters = this.summaryProcessesFilters || [];\n      return R.pipe(R.filter(R.propEq('selected', true)), R.pluck('dispatchProcess'), R.pluck('_data'), R.pluck('code'))(summaryProcessesFilters);\n    }),\n    filteredSummaryData: Ember.computed('dispatchProcessesList.[]', 'summaryData.{processes.[],items.[]}', function () {\n      const summaryData = Ember.Object.create(this.summaryData);\n      const dispatchProcessesList = this.dispatchProcessesList || [];\n      const processesModels = R.pipe(R.propOr([], 'processes'), R.map(dispatchProcess => {\n        return this.dispatch.findDispatchProcess(dispatchProcessesList, dispatchProcess);\n      }), R.reject(R.isNil), R.sortWith([R.ascend(R.path(['_data', 'index']))]))(summaryData);\n      const moveMiscItemDown = R.curry(arr => {\n        if (R.pathEq([0, 'itemId'], '', arr)) {\n          return R.append(R.head(arr), R.tail(arr));\n        }\n        return arr;\n      });\n\n      // Grouped invoices add line items but count as 0 documents. The list does not show them.\n      const documentTotal = Number(summaryData.get('total')) || 0;\n      const sortedItems = documentTotal > 0 ? R.pipe(R.propOr([], 'items'), moveMiscItemDown)(summaryData) : [];\n      summaryData.set('processes', processesModels);\n      summaryData.set('items', sortedItems);\n      return summaryData;\n    }),\n    summaryTotalPackages: Ember.computed('filteredSummaryData', 'allowedDispatchProcessesCodes.[]', function () {\n      const summaryData = this.filteredSummaryData || {};\n      const allowedDispatchProcessesCodes = this.allowedDispatchProcessesCodes || [];\n      const allowedProcessesData = R.pick(allowedDispatchProcessesCodes, summaryData);\n      const totals = R.pipe(R.pluck('packages'), R.values)(allowedProcessesData);\n      return this.sumArray(totals).toFixed(0);\n    }),\n    summaryTotal: Ember.computed('filteredSummaryData', 'allowedDispatchProcessesCodes.[]', function () {\n      const summaryData = this.filteredSummaryData || {};\n      const allowedDispatchProcessesCodes = this.allowedDispatchProcessesCodes || [];\n      const allowedProcessesData = R.pick(allowedDispatchProcessesCodes, summaryData);\n      const totals = R.pipe(R.pluck('total'), R.values)(allowedProcessesData);\n      return this.sumArray(totals).toFixed(0);\n    })\n  });\n});","define(\"client/pods/components/dispatch/panels-display/list-summary/summary-item/component\", [\"exports\", \"ramda\", \"client/mixins/big\", \"client/utils/nventor\"], function (_exports, R, _big, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_big.default, (_dec = Ember._action, _obj = {\n    tagName: '',\n    selectedProcesses: null,\n    init() {\n      this._super(...arguments);\n      let showDerivations = false;\n      const dispatchSummaryType = this?.settings?.settingsModel?._data?.dispatchSummaryType || 'collapseUnderProductName';\n      if (dispatchSummaryType === 'expandToShowAliases') {\n        showDerivations = true;\n      }\n      this.set('showDerivations', showDerivations);\n    },\n    product: Ember.computed('productsList.[]', 'item.itemKey', function () {\n      const productsList = this.productsList || [];\n      const itemKey = this.get('item.itemKey');\n      return R.find(R.pathEq(['inventory', '_data', 'itemKey'], itemKey), productsList);\n    }),\n    showDerivationBtn: Ember.computed('derivationsProxy.[]', function () {\n      const derivations = this?.derivationsProxy || [];\n      const itemId = this?.item?.itemId || '';\n      const derivationsItemIds = R.pluck('itemId')(derivations);\n      if (R.all(R.equals(itemId))(derivationsItemIds)) {\n        return false;\n      }\n      return true;\n    }),\n    derivationsProxy: Ember.computed('item.derivations.[]', function () {\n      const derivations = this?.item?.derivations || [];\n      const groupedDerivationsByItemId = R.pipe(R.groupBy(R.prop('itemId')), R.map(derivations => {\n        const dispatchProcesses = R.pluck('dispatchProcess')(derivations);\n        const firstDerivation = R.pipe(_nventor.default.safeHeadOr({}), R.clone)(derivations);\n        const newDispatchProcess = {};\n        R.forEach(dispatchProcess => {\n          newDispatchProcess[dispatchProcess.name] = dispatchProcess.qty;\n        })(dispatchProcesses);\n        firstDerivation.dispatchProcess = newDispatchProcess;\n        firstDerivation.totalQty = R.pipe(R.pluck('totalQty'), R.sum)(derivations);\n        firstDerivation.totalReturnQty = R.pipe(R.pluck('totalReturnQty'), R.sum)(derivations);\n        return firstDerivation;\n      }), R.values)(derivations);\n      return groupedDerivationsByItemId;\n    }),\n    totalQty: Ember.computed('item', 'product', 'allowedDispatchProcessesCodes.[]', function () {\n      const item = this.item;\n      const product = this.product;\n      const allowedDispatchProcessesCodes = this.allowedDispatchProcessesCodes || [];\n      const qtys = R.pipe(R.pluck('qty'), R.mapObjIndexed((qty, dispatchProcessCode) => {\n        if (R.includes(dispatchProcessCode, allowedDispatchProcessesCodes)) {\n          return qty;\n        }\n        return 0;\n      }), R.values, R.reject(R.isNil))(item);\n      const sumBig = this.sumArray(qtys);\n      const roundingInventoryQty = this.settings.getProp('roundingInventoryQty', 0, product);\n      return sumBig.toFixed(roundingInventoryQty);\n    }),\n    toggleDerivation() {\n      const showDerivations = this.showDerivations;\n      this.set('showDerivations', R.not(showDerivations));\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleDerivation\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleDerivation\"), _obj), _obj));\n});","define(\"client/pods/components/dispatch/panels-display/list-summary/summary-item/summary-item-derivation/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 DispatchPanelsDisplayListSummarySummaryItemSummaryItemDerivation = _exports.default = (_dec = Ember.inject.service('settings'), _dec2 = Ember.inject.service('big'), _class = class DispatchPanelsDisplayListSummarySummaryItemSummaryItemDerivation extends _component.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"tagName\", '');\n      _defineProperty(this, \"selectedProcesses\", null);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"bigService\", _descriptor2, this);\n    }\n    get totalQty() {\n      const derivation = this.args.derivation;\n      const allowedDispatchProcessesCodes = this.args.allowedDispatchProcessesCodes || [];\n      const qtys = R.pipe(R.propOr({}, 'dispatchProcess'), R.mapObjIndexed((qty, dispatchProcessCode) => {\n        if (R.includes(dispatchProcessCode, allowedDispatchProcessesCodes)) {\n          return qty;\n        }\n        return 0;\n      }), R.values)(derivation);\n      const sumBig = this.bigService.sumArray(qtys);\n      const roundingInventoryQty = this.settingsService?.settingsModel?._data?.roundingInventoryQty;\n      return sumBig.toFixed(roundingInventoryQty);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"bigService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/dispatch/panels-display/list-summary/summary-item/summary-item-derivation/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ebzJmsQV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"process\\\",\\\"@derivation\\\",\\\"@allowedDispatchProcessesCodes\\\",\\\"@hasMultipleProcesses\\\",\\\"@summaryData\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"is-derivation\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"itemId\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[23,2,[\\\"itemId\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"other\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[23,2,[\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"totalQty\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"processes\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"contains\\\",[[23,1,[\\\"_data\\\",\\\"code\\\"]],[23,3,[]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"ramda\\\",[\\\"pathOr\\\",\\\"\\\",[28,\\\"array\\\",[\\\"dispatchProcess\\\",[23,1,[\\\"_data\\\",\\\"code\\\"]]],null],[23,2,[]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[28,\\\"ramda\\\",[\\\"pathOr\\\",\\\"\\\",[28,\\\"array\\\",[\\\"dispatchProcess\\\",[23,1,[\\\"_data\\\",\\\"code\\\"]]],null],[23,2,[]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/panels-display/list-summary/summary-item/summary-item-derivation/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/list-summary/summary-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HmpWNFFZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"derivation\\\",\\\"process\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"is-item-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDerivationBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[[28,\\\"if\\\",[[23,0,[\\\"showDerivations\\\"]],\\\"fas fa-angle-up\\\",\\\"fas fa-angle-right\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleDerivation\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"itemId\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"item\\\",\\\"itemId\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"other\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[24,[\\\"item\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMultipleProcesses\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[24,[\\\"totalQty\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"summaryData\\\",\\\"processes\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"contains\\\",[[23,2,[\\\"_data\\\",\\\"code\\\"]],[24,[\\\"allowedDispatchProcessesCodes\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[28,\\\"get\\\",[[28,\\\"ramda\\\",[\\\"propOr\\\",\\\"0\\\",[23,2,[\\\"_data\\\",\\\"code\\\"]],[24,[\\\"item\\\"]]],null],\\\"qty\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allowProcesses\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"isDispatchedBeforeToday\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"product\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,[24,[\\\"product\\\"]],\\\"on hand qty\\\",\\\"_data.onHandQty\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"isEmptyWarning\\\",\\\"product\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,false,[24,[\\\"product\\\"]],\\\"pending\\\",\\\"_data.salesTotalPendingAndUndispatchedQty\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"product\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,[24,[\\\"product\\\"]],\\\"available qty\\\",\\\"_data.availableQty\\\"]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"products/inventory/inventory-status-tooltip\\\",null,[[\\\"autoFetchProduct\\\",\\\"itemKey\\\",\\\"product\\\"],[[24,[\\\"autoFetchProduct\\\"]],[24,[\\\"item\\\",\\\"itemKey\\\"]],[24,[\\\"product\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showDerivations\\\"]],[24,[\\\"showDerivationBtn\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"derivationsProxy\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"dispatch/panels-display/list-summary/summary-item/summary-item-derivation\\\",[],[[\\\"@derivation\\\",\\\"@hasMultipleProcesses\\\",\\\"@summaryData\\\",\\\"@allowedDispatchProcessesCodes\\\"],[[23,1,[]],[22,\\\"hasMultipleProcesses\\\"],[22,\\\"summaryData\\\"],[22,\\\"allowedDispatchProcessesCodes\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/panels-display/list-summary/summary-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/list-summary/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fwGdlsMx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"process\\\",\\\"process\\\",\\\"filterObj\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"displaySummary\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"filteredSummaryData\\\",\\\"items\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"dispatch-summary__table u-table\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMultipleProcesses\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"summaryProcessesFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMultipleProcesses\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,4,[\\\"selected\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,4,[\\\"selected\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,4,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[23,4,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMultipleProcesses\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"summaryTotal\\\"],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"filteredSummaryData\\\",\\\"processes\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"contains\\\",[[23,3,[\\\"_data\\\",\\\"code\\\"]],[24,[\\\"allowedDispatchProcessesCodes\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[28,\\\"get\\\",[[28,\\\"ramda\\\",[\\\"propOr\\\",\\\"0\\\",[23,3,[\\\"_data\\\",\\\"code\\\"]],[24,[\\\"filteredSummaryData\\\"]]],null],\\\"total\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"is-packages-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMultipleProcesses\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"summaryTotalPackages\\\"],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"filteredSummaryData\\\",\\\"processes\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"contains\\\",[[23,2,[\\\"_data\\\",\\\"code\\\"]],[24,[\\\"allowedDispatchProcessesCodes\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[28,\\\"get\\\",[[28,\\\"ramda\\\",[\\\"propOr\\\",\\\"0\\\",[23,2,[\\\"_data\\\",\\\"code\\\"]],[24,[\\\"filteredSummaryData\\\"]]],null],\\\"packages\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"filteredSummaryData\\\",\\\"items\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/panels-display/list-summary/summary-item\\\",null,[[\\\"item\\\",\\\"summaryProcessesFilters\\\",\\\"allowedDispatchProcessesCodes\\\",\\\"allowProcesses\\\",\\\"autoFetchProduct\\\",\\\"isDispatched\\\",\\\"isDispatchedBeforeToday\\\",\\\"productsList\\\",\\\"summaryData\\\",\\\"hasMultipleProcesses\\\"],[[23,1,[]],[24,[\\\"summaryProcessesFilters\\\"]],[24,[\\\"allowedDispatchProcessesCodes\\\"]],[24,[\\\"allowProcesses\\\"]],[24,[\\\"autoFetchProduct\\\"]],[24,[\\\"isDispatched\\\"]],[24,[\\\"isDispatchedBeforeToday\\\"]],[24,[\\\"productsList\\\"]],[24,[\\\"filteredSummaryData\\\"]],[24,[\\\"hasMultipleProcesses\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/panels-display/list-summary/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/print-item/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, R, RA, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n    },\n    isPrintable: Ember.computed('model._data.dispatchProcess', function () {\n      const model = this.model;\n      if (model && model.get('dispatchProcess') === this.get('dispatchProcess._data.code')) {\n        return true;\n      }\n      return false;\n    }),\n    // for print all, hasGroups always true\n    paymentMethodKeys: Ember.computed('model._data.{paymentMethodKey,groups.@each.synced}', function () {\n      const model = this.model || {};\n      if (model) {\n        return model.getGroupedDocumentsPaymentMethodKeys({\n          document: model,\n          hasGroups: true,\n          hasPaymentLastFiveDigits: false,\n          isJoinResults: true,\n          isTranslate: true\n        });\n      }\n      return [];\n    }),\n    groupedDocsTotal: Ember.computed('model._data.{groups.@each.synced,exclTotal,inclTotal,taxTotal,rewardPointEarned,returnRewardAdjustmentPoints,returnRewardAdjustmentAmount}', function () {\n      const model = this.model || {};\n      if (model) {\n        return model.getGroupedDocumentsTotal({\n          document: model,\n          hasGroups: true\n        });\n      }\n      return {\n        exclTotal: 0,\n        taxTotal: 0,\n        inclTotal: 0,\n        cashCollectionInclTotal: 0,\n        rewardPointEarned: 0,\n        returnRewardAdjustmentPoints: 0,\n        returnRewardAdjustmentAmount: 0\n      };\n    }),\n    groupedDocsInclTotal: Ember.computed('groupedDocsTotal.{inclTotal,cashCollectionInclTotal}', function () {\n      const cashCollectionInclTotal = this.groupedDocsTotal.cashCollectionInclTotal;\n      if (cashCollectionInclTotal && cashCollectionInclTotal !== '0') {\n        return cashCollectionInclTotal;\n      }\n      return this.groupedDocsTotal.inclTotal;\n    }),\n    hasGroupsReturns: Ember.computed('model._data.groups.@each.synced', function () {\n      const model = this.model || {};\n      let hasGroupsReturns = false;\n      if (model && this.model) {\n        const groups = model.getData('groups') || [];\n        R.forEach(group => {\n          const groupReturnDetails = group.get('returnsDetails') || [];\n          if (RA.isNotNilOrEmpty(groupReturnDetails)) {\n            hasGroupsReturns = true;\n          }\n        })(groups);\n      }\n      return hasGroupsReturns;\n    }),\n    maskedContact: Ember.computed('model._data.{transporterContactPerson,contact}', function () {\n      const model = this?.model || {};\n      let transporterContactPerson = model?._data?.transporterContactPerson || '';\n      transporterContactPerson = R.pipe(R.trim, R.take(3))(transporterContactPerson);\n      let contact = model?._data?.contact || '';\n      contact = R.pipe(R.trim, R.take(3))(contact);\n      let name;\n      if (transporterContactPerson) {\n        name = _nventor.default.maskString(transporterContactPerson, {\n          start: 1,\n          end: 1,\n          placeholder: '*'\n        });\n        if (contact && contact !== transporterContactPerson) {\n          const maskedContact = _nventor.default.maskString(contact, {\n            start: 1,\n            end: 1,\n            placeholder: '*'\n          });\n          name += `(${maskedContact})`;\n        }\n        return name;\n      } else {\n        name = contact;\n      }\n      return _nventor.default.maskString(name, {\n        start: 1,\n        end: 1,\n        placeholder: '*'\n      });\n    })\n  });\n});","define(\"client/pods/components/dispatch/panels-display/print-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1+J9zjsD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"group\\\",\\\"group\\\",\\\"group\\\",\\\"detail\\\",\\\"detail\\\",\\\"group\\\",\\\"detail\\\",\\\"detail\\\",\\\"@model\\\",\\\"@hasGroups\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@isRunning\\\",\\\"@onFetchOverviewTask\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isPrintable\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-item u-print-no-break\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"dispatch-item__table u-table u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]],[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null]],null],[28,\\\"substringFrom\\\",[[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]],[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null]],null]],[[\\\"from\\\",\\\"end\\\"],[0,\\\"-\\\"]]],[28,\\\"substringFrom\\\",[[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"subType\\\"]],[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null]],null]],[[\\\"from\\\",\\\"fromOffset\\\"],[\\\"-\\\",1]]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"master\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"master\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            #\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t(\\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\")\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"reference\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"payment method\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"invoice number\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"waybills\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__table-tr\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,0,[\\\"maskedContact\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"error\\\",\\\"context\\\",\\\"key\\\"]],\\\"contact\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"icon\\\"],[[24,[\\\"error\\\"]],\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"hasBirthdayNotification\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-cake-candles\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"date\\\",[[23,9,[\\\"_data\\\",\\\"birthday\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]],false,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],false,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[[23,0,[\\\"paymentMethodKeys\\\"]],false,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"groupedDocsInclTotal\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"successfulEInvoiceNumbers\\\"]],false],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,13,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"transporters/waybill-display\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@onFetchOverviewTask\\\"],[[23,9,[]],[23,11,[]],[23,14,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"packages\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"packages\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterLabel\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"transporter account\\\",[23,12,[]],\\\"transporterAccount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"transporters/accounts\\\",[],[[\\\"@isSelector\\\",\\\"@model\\\"],[true,[23,9,[]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterSenderCompany\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"sender company\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterSenderCompany\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterExtension\\\"]],\\\"seven-eleven\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"extensions/apps/tw/seven-eleven/print-item-meta\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\"],[[23,11,[]],[23,9,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"sortedDetailsWithDiscountAndReward\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[\\\"isFirstSetChoiceItem\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-print-no-break\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,8,[\\\"_data\\\",\\\"setItem\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,8,[\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-print-no-break\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"checked\\\"],[\\\"checkbox\\\",true,false]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"qty\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,8,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,8,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,8,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[8]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,9,[\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,6,[\\\"sortedDetailsWithDiscountAndReward\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[\\\"isFirstSetChoiceItem\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-print-no-break\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[23,7,[\\\"_data\\\",\\\"setItem\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,7,[\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-print-no-break\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"disabled\\\",\\\"checked\\\"],[\\\"checkbox\\\",true,false]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[23,7,[\\\"_data\\\",\\\"qty\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[23,7,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,7,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[23,7,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[7]},null]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[24,[\\\"printReturnsDisplay\\\"]],\\\"hideReturns\\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"returnsDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[23,5,[\\\"_data\\\",\\\"isSetWithChoices\\\"]],[23,5,[\\\"_data\\\",\\\"isSet\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-print-no-break\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-minus-circle\\\",\\\"has-text-danger\\\"]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,5,[\\\"_data\\\",\\\"qty\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,5,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,5,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,5,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"date\\\",[[23,5,[\\\"doc\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,10,[]],[23,0,[\\\"hasGroupsReturns\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,9,[\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,3,[\\\"returnsDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[23,4,[\\\"_data\\\",\\\"isSetWithChoices\\\"]],[23,4,[\\\"_data\\\",\\\"isSet\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"u-print-no-break\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-minus-circle\\\",\\\"has-text-danger\\\"]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[23,4,[\\\"_data\\\",\\\"qty\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[23,4,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,4,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[23,4,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-td\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"date\\\",[[23,4,[\\\"doc\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"dispatch-item__table u-table u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"notes\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],\\\"div\\\"]]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[23,2,[\\\"_data\\\",\\\"notes\\\"]],\\\"div\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"transporter notes\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"transporterNotes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/panels-display/print-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CMJ/6TY6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"duplicate\\\",\\\"duplicateDoc\\\",\\\"duplicate\\\",\\\"duplicateDoc\\\",\\\"dashboardRow\\\",\\\"pill\\\",\\\"@groupDocumentsByTransporter\\\",\\\"@onSearchAdvancedTask\\\",\\\"@isRunning\\\",\\\"@results\\\",\\\"@onFetchOverviewTask\\\",\\\"@onRowSelectionChange\\\",\\\"@filters\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid dispatch-panel\\\"],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"didInsert\\\"]]],null]]],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header dispatch-panel-header u-no-print\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"row-container\\\"],[3,\\\"guide-id\\\",null,[[\\\"role\\\"],[\\\"dispatch-panel-title\\\"]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tab\\\",\\\"isByShippingWaybillStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-panel-header__title-row\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[24,[\\\"tab\\\",\\\"dispatchWaybillLabel\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"period\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-panel-header__title-row\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"dispatched\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"period\\\",\\\"weekday\\\"]]],null],false],[0,\\\" \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDispatchPanelRefreshButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"is-warning\\\",\\\"fas fa-sync-alt\\\",\\\"refresh\\\",[23,0,[\\\"refreshDispatchPanelDataTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"refreshDispatchPanelDataTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-panel-header__title-row\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-panel-header__title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDispatchPanelRefreshButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"is-warning\\\",\\\"fas fa-sync-alt\\\",\\\"refresh\\\",[23,0,[\\\"refreshDispatchPanelDataTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"refreshDispatchPanelDataTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-tab flex-container-row u-no-print\\\"],[12,\\\"role\\\",\\\"tablist\\\"],[3,\\\"guide-id\\\",null,[[\\\"role\\\"],[\\\"printed-status\\\"]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"u-tab-menu tab-menu-group\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"printedStatusPills\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[\\\"u-tab-menu__item flex-container-row flex-container--align-items-center \\\",[28,\\\"if\\\",[[23,15,[\\\"isSelected\\\"]],\\\"is-active\\\"],null]]]],[12,\\\"role\\\",\\\"tab\\\"],[12,\\\"aria-selected\\\",[23,15,[\\\"isSelected\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,0,[\\\"filterByPrintedStatusTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"printedStatus\\\"],[[23,0,[\\\"filters\\\"]],[23,15,[\\\"value\\\"]]]]]],null]]],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,15,[\\\"label\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__badge \\\",[28,\\\"unless\\\",[[23,15,[\\\"isHighlighted\\\"]],\\\"u-badge--gray\\\"],null]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,15,[\\\"count\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[15]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"defaultPrintedStatusReason\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center u-padding-left-10\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@clickToView\\\",\\\"@tooltipLabel\\\"],[\\\"fas fa-info-circle\\\",true,[23,0,[\\\"defaultPrintedStatusReason\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filterByPrintedStatusTask\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-panel-loading\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[true]],{\\\"statements\\\":[],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showNothingToPrintHint\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-panel-nothing-to-print u-no-print\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"msgs/info-msg\\\",[],[[\\\"@msg\\\",\\\"@translate\\\",\\\"@isCallout\\\"],[[23,0,[\\\"nothingToPrintHintMessage\\\"]],false,true]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/search-panel\\\",[[12,\\\"class\\\",\\\"u-no-print\\\"]],[[\\\"@isOpen\\\"],[[24,[\\\"filters\\\",\\\"showFilters\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"row-container\\\"],[3,\\\"guide-id\\\",null,[[\\\"role\\\"],[\\\"search\\\"]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"translatedPlaceholder\\\",\\\"autofocus\\\",\\\"value\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\",\\\"omitGuideId\\\"],[[28,\\\"tt\\\",[[23,0,[\\\"selectedPrintedStatusPillLabel\\\"]]],null],true,[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],false,[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"dispatch\\\",[24,[\\\"filters\\\"]]]]]],null],true,true]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@omitGuideId\\\",\\\"@onSubmit\\\"],[\\\"fas fa-filter\\\",true,true,[23,0,[\\\"filters\\\",\\\"showFilters\\\"]],true,[28,\\\"action\\\",[[23,0,[]],\\\"setShowFiltersFromFilterToggle\\\"],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"filters\\\",\\\"showFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/scroll-into-view\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"documents/filters-advanced\\\",[],[[\\\"@isDispatch\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@disallowSaveFilters\\\",\\\"@onReloadSearchRecords\\\",\\\"@tableViewOptions\\\"],[true,[22,\\\"filters\\\"],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,17,[\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,17,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true,[28,\\\"perform\\\",[[24,[\\\"onResetSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],[28,\\\"hash\\\",null,[[\\\"hasDispatchStatus\\\",\\\"hasDispatchProcess\\\",\\\"allowDispatching\\\",\\\"groupDocumentsByTransporter\\\"],[true,false,true,[23,16,[]]]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"select-cards u-no-print\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tab\\\",\\\"waybillProcess\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",[29,[\\\"select-card \\\",[28,\\\"if\\\",[[23,0,[\\\"isTransporterDashboardAllSelected\\\"]],\\\"is-selected\\\"],null]]]],[12,\\\"aria-pressed\\\",[23,0,[\\\"isTransporterDashboardAllSelected\\\"]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"guide-id\\\",null,[[\\\"role\\\"],[\\\"transporter-total\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleTransporterDashboardSelectAll\\\"]],[28,\\\"not\\\",[[23,0,[\\\"isTransporterDashboardAllSelected\\\"]]],null]],null]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"select-card__mark \\\",[28,\\\"if\\\",[[23,0,[\\\"isTransporterDashboardAllSelected\\\"]],\\\"is-selected\\\"],null]]]],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isTransporterDashboardAllSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-check\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"select-card__body\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"select-card__name\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"select-card__counts\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"sales-invoices\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"transporterDashboardCheckedBarTotals\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n              ·\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"transporterDashboardCheckedBarTotals\\\",\\\"packages\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"each\\\",[[23,0,[\\\"transporterDashboardRows\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",[29,[\\\"select-card \\\",[28,\\\"if\\\",[[23,14,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[12,\\\"aria-pressed\\\",[23,14,[\\\"isSelected\\\"]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleTransporterDashboardSelection\\\"]],[23,14,[\\\"row\\\"]]],null]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"select-card__mark \\\",[28,\\\"if\\\",[[23,14,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"isSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-check\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"select-card__body\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"select-card__name\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"row\\\",\\\"transporter\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,14,[\\\"row\\\",\\\"transporter\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"row\\\",\\\"transporterAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@tooltipClassName\\\",\\\"@content\\\"],[\\\"select-card__secondary u-desc--italics\\\",[28,\\\"if\\\",[[23,14,[\\\"row\\\",\\\"transporterAccountNumber\\\"]],[28,\\\"concat\\\",[[23,14,[\\\"row\\\",\\\"transporterAccount\\\"]],\\\" - \\\",[23,14,[\\\"row\\\",\\\"transporterAccountNumber\\\"]]],null],[23,14,[\\\"row\\\",\\\"transporterAccount\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"select-card__counts\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"sales-invoices\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"number\\\",[[23,14,[\\\"row\\\",\\\"count\\\"]]],null],false],[0,\\\"\\\\n              ·\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"number\\\",[[23,14,[\\\"row\\\",\\\"packages\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[14]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"applyTransporterDashboardFilterTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"duplicateAddresses\\\"]],[24,[\\\"duplicateWaybills\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"duplicateAddresses\\\",\\\"valuesWithoutConvinienceStores\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\",\\\"@badge\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\"],[\\\"duplicate addresses\\\",[23,0,[\\\"duplicateAddresses\\\",\\\"countWithoutConvinienceStores\\\"]],true,false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"duplicateAddresses\\\",\\\"valuesWithoutConvinienceStores\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,12,[\\\"value\\\"]],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,12,[\\\"docs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,13,[\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,13,[\\\"docType\\\"]],\\\"-\\\",[23,13,[\\\"docName\\\"]]],null],[23,13,[\\\"docType\\\"]],[23,13,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,13,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                      #\\\"],[1,[23,13,[\\\"docNo\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,13,[\\\"docType\\\"]],\\\"-\\\",[23,13,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[13]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[12]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"duplicateWaybills\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\",\\\"@badge\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\"],[\\\"duplicate waybills\\\",[24,[\\\"duplicateWaybills\\\",\\\"count\\\"]],true,false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"duplicateWaybills\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,10,[\\\"value\\\"]],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,10,[\\\"docs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,11,[\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,11,[\\\"docType\\\"]],\\\"-\\\",[23,11,[\\\"docName\\\"]]],null],[23,11,[\\\"docType\\\"]],[23,11,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,11,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                      #\\\"],[1,[23,11,[\\\"docNo\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,11,[\\\"docType\\\"]],\\\"-\\\",[23,11,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[11]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,18,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@listAdapters\\\",\\\"@allowProcesses\\\",\\\"@autoFetchProduct\\\",\\\"@isDispatchedBeforeToday\\\",\\\"@showDetails\\\",\\\"@period\\\",\\\"@filters\\\",\\\"@hasTabLinks\\\",\\\"@isPrinting\\\",\\\"@hasHeadersSort\\\",\\\"@results\\\",\\\"@hasSelected\\\",\\\"@summaryData\\\",\\\"@dashData\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@onFilterByValue\\\",\\\"@onClearSearch\\\",\\\"@onDeselectAll\\\",\\\"@tableClassNames\\\",\\\"@tableViewOptions\\\"],[[22,\\\"tab\\\"],\\\"documents/table-view/doc-row\\\",[28,\\\"array\\\",[\\\"documents/lists/filters/statuses\\\",\\\"filters/count\\\",\\\"toggles/yesNo\\\",\\\"paymentMethods\\\",\\\"paymentTerms\\\",\\\"units\\\",[28,\\\"hash\\\",null,[[\\\"name\\\",\\\"appendPath\\\"],[\\\"users\\\",\\\"internal\\\"]]],\\\"documents/lists/filters/statuses\\\",\\\"documents/lists/filters/productsStatus\\\",\\\"dispatch/lists/processes\\\",\\\"contacts/lists/tags\\\",\\\"extensions/apps/tw/t-cat/lists/waybillPrintType\\\",\\\"dispatch/lists/processes\\\",\\\"channels/shop/campaigns/lists/locations\\\"],null],[22,\\\"allowProcesses\\\"],false,[22,\\\"isDispatchedBeforeToday\\\"],[22,\\\"showDetails\\\"],[22,\\\"period\\\"],[22,\\\"filters\\\"],true,false,false,[23,19,[]],[22,\\\"hasSelected\\\"],[22,\\\"summaryData\\\"],[22,\\\"dashData\\\"],[22,\\\"onReloadSearchRecordsTask\\\"],[22,\\\"onSearchAdvancedTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"filterByValue\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"clearSearch\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"deselectAll\\\"],null],\\\"new-table-view--data dispatch-table\\\",[28,\\\"hash\\\",null,[[\\\"allowDispatching\\\",\\\"hasDispatchProcess\\\",\\\"isDispatchTab\\\",\\\"dispatchProcess\\\",\\\"duplicateAddressesDocNos\\\",\\\"onAfterSplit\\\",\\\"onAfterMerge\\\",\\\"allSelected\\\",\\\"onSelectAll\\\",\\\"onRowSelectionChange\\\",\\\"onFetchOverviewTask\\\",\\\"onDispatchPanelNeedsRefresh\\\"],[true,true,true,[24,[\\\"dispatchProcess\\\"]],[24,[\\\"duplicateAddressesDocNos\\\"]],[24,[\\\"onAfterSplit\\\"]],[24,[\\\"onAfterMerge\\\"]],[24,[\\\"allSelected\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectAll\\\"],null],[23,21,[]],[23,20,[]],[28,\\\"action\\\",[[23,0,[]],\\\"markDispatchPanelNeedsRefresh\\\"],null]]]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dispatch/panels-display/list-summary\\\",null,[[\\\"allowProcesses\\\",\\\"isDispatched\\\",\\\"isDispatchedProcessModel\\\",\\\"isDispatchedBeforeToday\\\",\\\"productsList\\\",\\\"autoFetchProduct\\\",\\\"summaryData\\\"],[[24,[\\\"allowProcesses\\\"]],[24,[\\\"isDispatched\\\"]],[24,[\\\"isDispatchedProcessModel\\\"]],[24,[\\\"isDispatchedBeforeToday\\\"]],[24,[\\\"productsList\\\"]],[24,[\\\"autoFetchProduct\\\"]],[24,[\\\"summaryData\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[\\\"@hasOverflowMenu\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\",\\\"@hidePageListWhenOverflow\\\"],[[23,22,[]],[22,\\\"results\\\"],[22,\\\"onPaginateSearchRecordsTask\\\"],true,false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"or\\\",[[24,[\\\"hasSelected\\\"]],[24,[\\\"filterByValue\\\"]]],null],[24,[\\\"allowProcesses\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"filterByValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"count-chip\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"count-chip__label\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"search\\\"],null],false],[0,\\\": \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold u-desc--italics\\\"],[8],[0,\\\"\\\\\\\"\\\"],[1,[22,\\\"filterByValue\\\"],false],[0,\\\"\\\\\\\"\\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"count-chip__badge\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"count\\\",[[24,[\\\"results\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete count-chip__remove\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"clearSearch\\\"]],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"count-chip\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"count-chip__label\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"selected items\\\"],null],false],[0,\\\":\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"count-chip__badge\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"count\\\",[[24,[\\\"hasSelected\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete count-chip__remove\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"deselectAll\\\"]],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"label\\\",\\\"toggleIsOn\\\"],[true,true,\\\"update status\\\",[24,[\\\"showVerticalDispatchProcessBar\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showVerticalDispatchProcessBar\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@onToggleModalDialog\\\"],[true,[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"dispatch/processes-bar-container\\\",null,[[\\\"selected\\\",\\\"steps\\\",\\\"showProcessBar\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\",\\\"isVertical\\\",\\\"batch\\\",\\\"onRefresh\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"code\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[24,[\\\"showVerticalDispatchProcessBar\\\"]],\\\"_data.code\\\",\\\"_data.name\\\",true,[24,[\\\"hasSelectedModels\\\"]],[24,[\\\"onRefresh\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allowUpdateAllDocumentsStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"label\\\",\\\"badge\\\",\\\"disabled\\\",\\\"toggleIsOn\\\"],[true,true,\\\"update all status\\\",[24,[\\\"allDocumentsScope\\\",\\\"count\\\"]],[28,\\\"not\\\",[[24,[\\\"allDocumentsScope\\\",\\\"count\\\"]]],null],[24,[\\\"showVerticalDispatchProcessBar\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showVerticalDispatchProcessBar\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@onToggleModalDialog\\\"],[true,[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"dispatch/processes-bar-container\\\",null,[[\\\"selected\\\",\\\"steps\\\",\\\"showProcessBar\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\",\\\"isVertical\\\",\\\"allDocumentsScope\\\",\\\"onRefresh\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"code\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[24,[\\\"showVerticalDispatchProcessBar\\\"]],\\\"_data.code\\\",\\\"_data.name\\\",true,[24,[\\\"allDocumentsScope\\\"]],[24,[\\\"onRefresh\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"badge\\\"],[\\\"export data\\\",\\\"fas fa-file-export\\\",[24,[\\\"printSidebarCounts\\\",\\\"documentCount\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dispatch/export-btn\\\",null,[[\\\"dispatchProcess\\\",\\\"onSearchTask\\\",\\\"onFetchUnpaginatedDispatchDataTask\\\",\\\"onCloseDialogAction\\\",\\\"onFetchAllUnpaginatedTask\\\",\\\"selectedResults\\\",\\\"filters\\\",\\\"deselectAll\\\",\\\"groupDocumentsByTransporter\\\",\\\"onRefresh\\\"],[[24,[\\\"dispatchProcess\\\"]],[24,[\\\"onSearchTask\\\"]],[23,0,[\\\"onFetchUnpaginatedDispatchDataTask\\\"]],[23,9,[]],[23,0,[\\\"fetchAllUnpaginatedTask\\\"]],[23,0,[\\\"hasSelected\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"deselectAll\\\"]],[23,16,[]],[24,[\\\"onRefresh\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-ellipsis-h\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"isRunning\\\",\\\"icon\\\",\\\"label\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"onFetchUnpaginatedDispatchDataTask\\\",\\\"isRunning\\\"]]],null],\\\"fas fa-cog\\\",\\\"settings\\\",[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]],[28,\\\"if\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]],true,false],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"dispatch/processes-editor\\\",null,[[\\\"adapterName\\\",\\\"list\\\",\\\"onCloseDialogAction\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"hasProcessCount\\\",\\\"model\\\"],[\\\"dispatch/lists/processes/menu\\\",[24,[\\\"dispatchProcessesMenu\\\"]],[23,8,[]],false,true,[28,\\\"count\\\",[[24,[\\\"results\\\"]]],null],[24,[\\\"dispatchProcess\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"dispatch/processes-editor\\\",null,[[\\\"adapterName\\\",\\\"list\\\",\\\"onCloseDialogAction\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"model\\\"],[\\\"dispatch/lists/processes/menu\\\",[24,[\\\"dispatchProcessesMenu\\\"]],[23,8,[]],true,false,[24,[\\\"dispatchProcess\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[8]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowBulkSplitBtn\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"icon\\\",\\\"label\\\"],[[23,0,[\\\"isBulkSplitDialogDisabled\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"onFetchUnpaginatedDispatchDataTask\\\",\\\"isRunning\\\"]]],null],\\\"fas fa-cut\\\",\\\"bulk split\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"dispatch/bulk-split\\\",[],[[\\\"@dispatchProcess\\\",\\\"@onCloseDialogAction\\\"],[[22,\\\"dispatchProcess\\\"],[23,7,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[7]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"badge\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\",\\\"isRunning\\\",\\\"label\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"printSidebarCounts\\\",\\\"documentCount\\\"]],[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"sendAllDispatchedEmailsTask\\\",\\\"isRunning\\\"]]],null],\\\"send email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"emails/dispatch-batch\\\",null,[[\\\"tab\\\",\\\"isBatch\\\",\\\"sendLabel\\\",\\\"isDispatched\\\",\\\"errors\\\",\\\"dispatchProcess\\\",\\\"filters\\\",\\\"period\\\",\\\"onCloseDialogAction\\\",\\\"hasSelected\\\",\\\"onSendEmailsTask\\\"],[[24,[\\\"tab\\\"]],true,\\\"send all emails\\\",false,[24,[\\\"errors\\\"]],[24,[\\\"dispatchProcess\\\"]],[23,0,[\\\"filters\\\"]],[24,[\\\"period\\\"]],[23,6,[]],[24,[\\\"hasSelected\\\"]],[24,[\\\"sendBatchEmailsTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDispatched\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"badge\\\",\\\"isRunning\\\",\\\"label\\\"],[\\\"fas fa-truck\\\",[24,[\\\"printSidebarCounts\\\",\\\"documentCount\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"onFetchUnpaginatedDispatchDataTask\\\",\\\"isRunning\\\"]],[24,[\\\"sendAllDispatchedEmailsTask\\\",\\\"isRunning\\\"]]],null],\\\"send all dispatched emails\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"emails/dispatch-batch\\\",null,[[\\\"tab\\\",\\\"isBatch\\\",\\\"sendLabel\\\",\\\"isDispatched\\\",\\\"errors\\\",\\\"dispatchProcess\\\",\\\"onCloseDialogAction\\\",\\\"onGetToSendEmailsTask\\\",\\\"onSendEmailsTask\\\"],[[24,[\\\"tab\\\"]],true,\\\"send all dispatched emails\\\",true,[24,[\\\"errors\\\"]],[24,[\\\"dispatchProcess\\\"]],[23,5,[]],[24,[\\\"getToSendAllDispatchedEmailsTask\\\"]],[24,[\\\"sendAllDispatchedEmailsTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isDispatched\\\"]],[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"allowEInvoices\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-all-btn\\\",null,[[\\\"period\\\",\\\"dispatchProcess\\\",\\\"tagName\\\"],[[24,[\\\"period\\\"]],[24,[\\\"dispatchProcess\\\"]],\\\"span\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[24,[\\\"showPrintSidebar\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"badge\\\",\\\"onSubmit\\\"],[\\\"print\\\",\\\"fas fa-print\\\",[24,[\\\"printSidebarCounts\\\",\\\"documentCount\\\"]],[24,[\\\"onOpenPrintSidebar\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/panels-summary/component\", [\"exports\", \"ramda\", \"client/mixins/date\", \"client/mixins/emails-dispatched\", \"client/mixins/doc-status\", \"ember-concurrency\", \"ramda-extension\"], function (_exports, R, _date, _emailsDispatched, _docStatus, _emberConcurrency, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _docStatus.default, _emailsDispatched.default, {\n    crud: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.tabsManager.setHeader(this.tabParent, this.intl.t('inventory status report'));\n      this.fetchDispatchSummaryTask.perform();\n    },\n    dispatchProcessesList: Ember.computed('crud.lists.dispatch-lists-processes-menu.[]', function () {\n      const dispatchProcessesList = R_.dotPath('crud.lists.dispatch-lists-processes-menu')(this) || [];\n      const isDispatchedProcessModel = this.isDispatchedProcessModel;\n      return R.concat(dispatchProcessesList, [isDispatchedProcessModel]);\n    }),\n    fetchDispatchSummaryTask: (0, _emberConcurrency.task)(function* () {\n      const filterData = {\n        dispatchProcessesCriterias: {\n          dispatchProcesses: [{\n            criteria: 'notEquals',\n            value: 'dispatched'\n          }]\n        }\n      };\n      const results = yield this.dispatch.fetchDispatchSummaryTask.perform({\n        filterData\n      });\n      this.set('summaryData', results);\n    })\n  });\n});","define(\"client/pods/components/dispatch/panels-summary/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+dOXVeS5\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-sub u-no-print\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-header-1\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inventory status report\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"dispatch\\\",\\\"fetchDispatchSummaryTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/panels-display/list-summary\\\",null,[[\\\"autoFetchProduct\\\",\\\"allowProcesses\\\",\\\"isDispatchedProcessModel\\\",\\\"isDispatchedBeforeToday\\\",\\\"productsList\\\",\\\"summaryData\\\"],[true,[24,[\\\"allowProcesses\\\"]],[24,[\\\"isDispatchedProcessModel\\\"]],[24,[\\\"isDispatchedBeforeToday\\\"]],[24,[\\\"productsList\\\"]],[24,[\\\"summaryData\\\",\\\"summaryData\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/panels-summary/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/pre-dispatch-modal/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/transporter\", \"client/mixins/hct-fetch\", \"client/mixins/doc-contacts\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"moment\"], function (_exports, _date, _transporter, _hctFetch, _docContacts, _emberConcurrency, R, RA, moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _docContacts.default, _hctFetch.default, _transporter.default, {\n    dispatch: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    transporterService: Ember.inject.service('transporter'),\n    init() {\n      this._super(...arguments);\n      if (this.startWithDirty && this.model) {\n        this.setupDirty();\n        this.editTransporter.perform(this.model);\n        this.set('original', {\n          transporterLabel: this?.model?._data?.transporterLabel,\n          waybill: this?.model?._data?.waybill,\n          packages: this?.model?._data?.packages,\n          contactPerson: this?.model?._data?.person,\n          address: this?.model?._data?.address,\n          telephone: this?.model?._data?.telephone,\n          dateZ: this?.model?._data?.transporterArrivalDateZ,\n          account: this?.model?._data?.transporterAccountNumber,\n          transporterNotes: this?.model?._data?.transporterNotes,\n          transporterBatchLabel: this?.model?._data?.transporterBatchLabel,\n          transporterRegion: this?.model?._data?.transporterRegion,\n          transporterExtension: this?.model?._data?.transporterExtension\n        });\n      }\n    },\n    getAdapterName(model) {\n      const docType = model.getData('docType');\n      const docName = model.getData('docName');\n      return `documents/${docType}/${docName}`;\n    },\n    updateTransporterTask: (0, _emberConcurrency.task)(function* (onClosePreDispatchProcessDialog) {\n      const dirty = this.dirty;\n      const adapterName = this.getAdapterName(dirty);\n      const appendPath = 'transporter';\n      let saved;\n      /** @NOTE: NEW HCT IMPLEMENTATION DOES NOT REQUIRE REGION CODE */\n      const isNewHct = R.pipe(R.path(['_data', 'transporterDefaultPickupLocationPersonId']), RA.isNotNilOrEmpty)(dirty);\n      if (!isNewHct && this.settings.getProp('features.extensions.tw_hct') && dirty._data.transporterExtension === 'hct') {\n        // show modal\n        const transporterRegion = dirty.getData('transporterRegion');\n        if (!transporterRegion) {\n          // fetch\n          yield this.fetchHCTRegionDataTask.perform(dirty);\n        }\n        if (!this.isHCTIncomplete(dirty)) {\n          saved = yield this.updateRecordTask.perform({\n            adapterName,\n            appendPath,\n            model: dirty\n          });\n        }\n      } else {\n        saved = yield this.updateRecordTask.perform({\n          adapterName,\n          appendPath,\n          model: dirty\n        });\n      }\n      if (saved) {\n        const dirty = this.dirty;\n        const transporterChanged = this.original?.transporterExtension !== dirty.get('_data.transporterExtension');\n        const onDispatchPanelNeedsRefresh = this.onDispatchPanelNeedsRefresh;\n        if (transporterChanged && onDispatchPanelNeedsRefresh) {\n          onDispatchPanelNeedsRefresh();\n        }\n        this.set('original', {\n          transporterLabel: dirty.get('_data.transporterLabel'),\n          waybill: dirty.get('_data.waybill'),\n          packages: dirty.get('_data.packages'),\n          contactPerson: dirty.get('_data.person'),\n          address: dirty.get('_data.address'),\n          telephone: dirty.get('_data.telephone'),\n          dateZ: dirty.get('_data.transporterArrivalDateZ'),\n          account: dirty.get('_data.transporterAccountNumber'),\n          transporterNotes: dirty.get('_data.transporterNotes'),\n          transporterBatchLabel: dirty.get('_data.transporterBatchLabel'),\n          transporterRegion: dirty.get('_data.transporterRegion'),\n          transporterExtension: dirty.get('_data.transporterExtension')\n        });\n        this.set('dirty', '');\n        this.setupDirty();\n      }\n      if (this?.model?.isDispatched) {\n        const onClosePreDispatchProcessDialog = this.onClosePreDispatchProcessDialog;\n        if (onClosePreDispatchProcessDialog) {\n          onClosePreDispatchProcessDialog();\n        }\n      }\n      if (onClosePreDispatchProcessDialog) {\n        onClosePreDispatchProcessDialog();\n      }\n      return saved;\n    }),\n    preSetIsDispatchedProcessTask: (0, _emberConcurrency.task)(function* ({\n      dispatchDate,\n      dispatchDateZ\n    }) {\n      const modelProxy = this.modelProxy;\n      modelProxy.set('isSelected', false);\n      return yield this.onSetIsDispatchedProcessTask.perform({\n        dispatchDate,\n        dispatchDateZ\n      });\n    }),\n    setupDirty() {\n      const model = this.model;\n      const adapterName = this.getAdapterName(model);\n      const dirty = this.crud.setupDirty({\n        adapterName,\n        model\n      });\n      this.set('dirty', dirty);\n    },\n    editTransporter: (0, _emberConcurrency.task)(function* (model = this.model) {\n      const adapterName = this.getAdapterName(model);\n      const contactKey = model.getData('contactKey');\n      const dirty = this.dirty || this.dataManager.getDirtyRecord(adapterName, model);\n      // this.findAndLoadTransporterByKey(dirty, dirty.getData('transporterKey'))\n\n      if (contactKey) {\n        const contact = yield this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: contactKey\n        });\n        dirty.set('selectedContact', contact);\n      }\n      this.set('dirty', dirty);\n    }),\n    arrivalDateOverLimitLabel: Ember.computed('model._data.transporterArrivalDateZ', function () {\n      const arrivalDate = this.model.get('_data.transporterArrivalDateZ') || '';\n      if (RA.isNilOrEmpty(arrivalDate)) {\n        return false;\n      }\n      const date = this.dateService.formatDate(arrivalDate, 'YYYY-MM-DD');\n      return this.intl.t('arrival date is', {\n        date\n      });\n    }),\n    isArrivalDateOverLimit: Ember.computed('dirty._data.transporterArrivalDateZ', 'model._data.transporterArrivalDateZ', function () {\n      const model = this.model;\n      const arrivalDate = model.get('_data.transporterArrivalDateZ') || '';\n      if (RA.isNilOrEmpty(arrivalDate)) {\n        return false;\n      }\n      const arrivalDateMoment = moment(arrivalDate);\n      const twoDaysAfter = moment().add(2, 'days').startOf('day');\n      return twoDaysAfter.isBefore(arrivalDateMoment);\n    }),\n    hasTransporterDataChanged: Ember.computed('dirty._data.{transporterLabel,waybill,packages,person,address,telephone,dateZ,transporterAccountNumber,transporterNotes,transporterBatchLabel,transporterRegion}', 'original.{transporterLabel,waybill,packages,person,address,telephone,dateZ,transporterAccountNumber,transporterNotes,transporterBatchLabel,transporterRegion}', function () {\n      const dirty = this.dirty;\n      const transporterLabel = dirty.get('_data.transporterLabel');\n      const waybill = dirty.get('_data.waybill');\n      let packages = dirty.get('_data.packages');\n      if (R.is(Number)(packages)) {\n        packages = R.toString(packages);\n      }\n      let originalPackages = this?.original?.packages;\n      if (R.is(Number)(originalPackages)) {\n        originalPackages = R.toString(originalPackages);\n      }\n      const contactPerson = dirty.get('_data.person');\n      const address = dirty.get('_data.address');\n      const telephone = dirty.get('_data.telephone');\n      const dateZ = dirty.get('_data.transporterArrivalDateZ');\n      const account = dirty.get('_data.transporterAccountNumber');\n      const transporterNotes = dirty.get('_data.transporterNotes');\n      const transporterBatchLabel = dirty.get('_data.transporterBatchLabel');\n      const transporterRegion = dirty.get('_data.transporterRegion');\n      if (!R.isEmpty(dirty)) {\n        const original = this?.original;\n        if (original?.transporterLabel !== transporterLabel || original?.waybill !== waybill || originalPackages !== packages || original?.contactPerson !== contactPerson || original?.address !== address || original?.telephone !== telephone || original?.dateZ !== dateZ || original?.account !== account || original?.transporterNotes !== transporterNotes || original?.transporterBatchLabel !== transporterBatchLabel || original?.transporterRegion !== transporterRegion) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    actions: {\n      cancelEditTransporter() {\n        const dirty = this.dirty;\n        const adapterName = this.getAdapterName(dirty);\n        this.dataManager.cancelDirty(adapterName, dirty);\n        this.set('dirty', '');\n      },\n      close(onCloseDialogAction) {\n        onCloseDialogAction();\n        const onClosePreDispatchProcessDialog = this.onClosePreDispatchProcessDialog;\n        if (onClosePreDispatchProcessDialog) {\n          onClosePreDispatchProcessDialog();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/dispatch/pre-dispatch-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"RCQ3wFM0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"modalDialogIsVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\",\\\"@onClose\\\"],[[22,\\\"modalDialogIsVisible\\\"],[22,\\\"closeOnOverlayClick\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"modalDialogIsVisible\\\"]]],null]],null],[22,\\\"onClosePreDispatchProcessDialog\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"transporters/editor-component\\\",null,[[\\\"tab\\\",\\\"isReadonly\\\",\\\"canChangeConvenienceStoreOverride\\\",\\\"errors\\\",\\\"autoFetchTransporter\\\",\\\"docType\\\",\\\"docName\\\",\\\"autoSetArrivalDate\\\",\\\"transportersList\\\",\\\"deliveryDate\\\",\\\"transporter\\\",\\\"onUnloadContact\\\",\\\"onLoadContactPerson\\\",\\\"onLoadContactDetail\\\",\\\"onAddContactDetail\\\",\\\"onLoadTransporter\\\",\\\"onUnloadTransporter\\\",\\\"model\\\"],[[24,[\\\"tab\\\"]],[23,2,[]],true,[24,[\\\"errors\\\"]],false,[24,[\\\"dirty\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"dirty\\\",\\\"_data\\\",\\\"docName\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-transporters\\\"]],[24,[\\\"dirty\\\",\\\"_data\\\",\\\"dateZ\\\"]],[24,[\\\"selectedTransporter\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"unloadContact\\\",[24,[\\\"dirty\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadContactPerson\\\",[24,[\\\"dirty\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadContactDetail\\\",[24,[\\\"dirty\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"addContactDetail\\\",[24,[\\\"dirty\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\",[24,[\\\"dirty\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadTransporter\\\",[24,[\\\"dirty\\\"]]],null],[24,[\\\"dirty\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"allowSetAsDispatch\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isDispatched\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\",\\\"translate\\\",\\\"label\\\"],[\\\"far fa-calendar-alt\\\",true,true,[24,[\\\"selectCustomDate\\\"]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"dispatch date\\\"],null],\\\": \\\",[28,\\\"date\\\",[[24,[\\\"modelProxy\\\",\\\"dispatchDateZ\\\"]]],null]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"selectCustomDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[\\\"select dispatch date\\\",[22,\\\"selectCustomDate\\\"],true,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"selectCustomDate\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                \\\"],[1,[28,\\\"elements/date-picker\\\",null,[[\\\"dateZ\\\",\\\"onSelectDate\\\"],[[24,[\\\"modelProxy\\\",\\\"dispatchDateZ\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isArrivalDateOverLimit\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\"],[\\\"is-warning u-is-cursor-default\\\",false,[23,0,[\\\"arrivalDateOverLimitLabel\\\"]],\\\"fas fa-exclamation-triangle\\\"]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"prepare for dispatch\\\",[24,[\\\"onSetIsDispatchedProcessTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"preSetIsDispatchedProcessTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dispatchDate\\\",\\\"dispatchDateZ\\\"],[[24,[\\\"modelProxy\\\",\\\"dispatchDate\\\"]],[24,[\\\"modelProxy\\\",\\\"dispatchDateZ\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[24,[\\\"onSetIsDispatchedProcessTask\\\",\\\"isRunning\\\"]],[22,\\\"onClosePreDispatchProcessDialog\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"updateTransporterTask\\\",\\\"isRunning\\\"]],[24,[\\\"onClosePreDispatchProcessDialog\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"updateTransporterTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"updateTransporterTask\\\"]],[24,[\\\"onClosePreDispatchProcessDialog\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/pre-dispatch-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\", \"client/pods/dispatch/model\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA, _nventor, _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, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _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, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\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 PRINT_BATCH_MS_PER_DOCUMENT_STORAGE_KEY = 'dispatchPrintBatchMsPerDocument';\n  // Used for a carrier until Print All has timed it once on this browser.\n  const PRINT_BATCH_DEFAULT_MS_PER_DOCUMENT = 1000;\n  // Estimated progress stops short of full so a slow run never looks finished.\n  const PRINT_BATCH_ESTIMATE_MAX_PERCENT = 95;\n  const PRINT_BATCH_PROGRESS_REFRESH_MS = 500;\n  let DispatchPrintOptionsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember.inject.service('date'), _dec9 = Ember.inject.service, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, _dec21 = Ember._tracked, _dec22 = Ember._tracked, _dec23 = Ember._action, _dec24 = Ember.computed('crud.lists.contacts-transporters.[]'), _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember.computed('args.printSidebarCounts', 'args.printSidebarCounts.documentCount', 'args.dashData', 'args.filters', 'args.dashDataTransporterBar', 'args.dispatchProcess', 'args.dispatchProcessesByCount', 'activePrintBatchClaimReport'), _dec28 = Ember.computed('availableTransporterExtensionsModels.@each.enabled', 'args.printSidebarCounts.packagesByTransporterExtension'), _dec29 = Ember.computed('args.{isDispatched,dispatchProcess._data.allowPrintAllWaybills}', 'enabledTransporterExtensions.[]'), _dec30 = Ember.computed('pickingListPrintSettings.enabled', 'args.printSidebarCounts.documentCount'), _dec31 = Ember.computed('deliveryNotePrintSettings.enabled', 'args.printSidebarCounts.documentCount'), _dec32 = Ember._action, _dec33 = Ember._action, _dec34 = Ember._action, _dec35 = Ember.computed('printsPickingList', 'printsDeliveryNotes', 'printsWaybills'), _class = class DispatchPrintOptionsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dispatch\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"storage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor8, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor9, this);\n      _initializerDefineProperty(this, \"hidePrinted\", _descriptor0, this);\n      _initializerDefineProperty(this, \"deliveryNotePrintSettings\", _descriptor1, this);\n      _initializerDefineProperty(this, \"availableTransporterExtensionsModels\", _descriptor10, this);\n      _initializerDefineProperty(this, \"printAllError\", _descriptor11, this);\n      _initializerDefineProperty(this, \"activePrintBatchClaimReport\", _descriptor12, this);\n      _initializerDefineProperty(this, \"printBatchModalIsVisible\", _descriptor13, this);\n      _initializerDefineProperty(this, \"printBatchTabs\", _descriptor14, this);\n      _initializerDefineProperty(this, \"activePrintBatchTabValue\", _descriptor15, this);\n      _initializerDefineProperty(this, \"printBatchDocuments\", _descriptor16, this);\n      _initializerDefineProperty(this, \"printBatchDocumentModels\", _descriptor17, this);\n      _initializerDefineProperty(this, \"printBatchEstimates\", _descriptor18, this);\n      _initializerDefineProperty(this, \"printBatchCarriers\", _descriptor19, this);\n      _initializerDefineProperty(this, \"printBatchSummary\", _descriptor20, this);\n      _initializerDefineProperty(this, \"printBatchElapsedMs\", _descriptor21, this);\n      _initializerDefineProperty(this, \"refreshDispatchPanelWhenPrintBatchModalCloses\", _descriptor22, this);\n      _defineProperty(this, \"transporterExtensionComponents\", [{\n        transporterExtension: 'hct',\n        component: 'transporters/hct-waybills-settings'\n      }, {\n        transporterExtension: 't-cat',\n        component: 'transporters/t-cat-waybills-settings'\n      }, {\n        transporterExtension: 'seven-eleven',\n        component: 'transporters/seven-eleven-waybills-settings'\n      }, {\n        transporterExtension: 'payuni-seven-eleven',\n        component: 'transporters/payuni-seven-eleven-waybills-settings'\n      }]);\n      const settingsData = this.settings?.settingsModel?._data || {};\n      this.pickingListPrintSettings = Ember.Object.create({\n        enabled: true\n      });\n      let printReturnsDisplay;\n      if (this.args.isDispatchTab) {\n        printReturnsDisplay = settingsData?.printReturnsDisplayForDispatch ?? 'showReturnsSeparately';\n      } else {\n        printReturnsDisplay = settingsData?.printReturnsDisplayForInvoice ?? 'showReturnsSeparately';\n      }\n      this.deliveryNotePrintSettings = Ember.Object.create({\n        enabled: true,\n        deliveryNotePrintFormat: settingsData?.deliveryNotePrintFormat ?? 'default',\n        printReturnsDisplay,\n        hasGroups: true,\n        hasPrices: true,\n        // @TODO: add to settings\n        hasPrintTerms: true,\n        // @TODO: add to settings\n        hasImages: settingsData?.printImagesOnDocuments ?? false,\n        imagesSize: Number(settingsData?.printImagesSize) || 30,\n        showUnit: settingsData?.showUnit ?? 'showUnitBelowItems',\n        showProductCode: settingsData?.showProductCode ?? 'showCodeBelowItems',\n        showTelephoneOnDeliveryNotes: settingsData?.showTelephoneOnDeliveryNotes ?? true,\n        showTaxNumberOnDeliveryNotes: settingsData?.showTaxNumberOnDeliveryNotes ?? true,\n        showDateOnDeliveryNotes: settingsData?.showDateOnDeliveryNotes ?? true,\n        showDispatchDateOnDeliveryNotes: settingsData?.showDispatchDateOnDeliveryNotes ?? true,\n        deliveryNoteBarcodesMode: settingsData?.deliveryNoteBarcodesMode ?? 'showBarcodeImages',\n        showBarcodeOnDeliveryNotesForShopDocuments: settingsData?.showBarcodeOnDeliveryNotesForShopDocuments ?? true,\n        showBarcodeOnDeliveryNotesForNonShopDocuments: settingsData?.showBarcodeOnDeliveryNotesForNonShopDocuments ?? true\n      });\n      this.crud.addLists(this, ['documents/lists/hide-printed', 'documents/lists/print', 'contacts/transporters']);\n    }\n    afterLoadLists() {\n      this.setupTransporterExtensionsModels();\n      this.refreshActivePrintBatchClaimTask.perform();\n    }\n    setupTransporterExtensionsModels() {\n      const availableTransporterExtensions = this.availableTransporterExtensions;\n      this.availableTransporterExtensionsModels = R.map(transporterExtension => {\n        const transporterExtensionData = R.clone(transporterExtension);\n        const transporterExtensionDataModel = this.addTransporterExtensionModel(transporterExtensionData);\n        transporterExtensionDataModel.set('enabled', true);\n        return transporterExtensionDataModel;\n      })(availableTransporterExtensions);\n    }\n    get availableTransporterExtensions() {\n      const transporters = this.crud.lists?.['contacts-transporters'] || [];\n      const availableTransporterExtensions = R.pipe(R.map(model => {\n        return model?._data?.transporterExtension || '';\n      }), R.reject(RA.isNilOrEmpty), R.uniq)(transporters);\n      const transporterExtensionComponents = this.transporterExtensionComponents || [];\n      return R.filter(transporterExtensionComponent => {\n        return availableTransporterExtensions.includes(transporterExtensionComponent.transporterExtension);\n      })(transporterExtensionComponents);\n    }\n    addTransporterExtensionModel(data = {}) {\n      const model = Ember.Object.create(data);\n      return model;\n    }\n    toggleEnabled(printSettings, toggleValue) {\n      printSettings.set('enabled', !toggleValue);\n    }\n    get printInfoLabel() {\n      const documentsInPrintScope = Number(this.args.printSidebarCounts?.documentCount) || 0;\n      const totalInView = this.printInfoTotalInView;\n      const printScopeLabel = this.intl.t('to print') + ': ' + documentsInPrintScope + ' / ' + totalInView;\n      const activePrintBatchClaimReport = this.activePrintBatchClaimReport || '';\n      if (RA.isNilOrEmpty(activePrintBatchClaimReport)) {\n        return printScopeLabel;\n      }\n      return printScopeLabel + ' · ' + activePrintBatchClaimReport;\n    }\n    get printInfoTotalInView() {\n      return this.dispatch.resolvePrintScopeTotalInView({\n        filters: this.args.filters,\n        dashData: this.args.dashData,\n        dashDataTransporterBar: this.args.dashDataTransporterBar,\n        dispatchProcess: this.args.dispatchProcess,\n        dispatchProcessesByCount: this.args.dispatchProcessesByCount\n      });\n    }\n    get dispatchProcessCode() {\n      const filtersProcessCode = this.args.filters?.getData?.('dispatchProcess');\n      if (RA.isNotNilOrEmpty(filtersProcessCode)) {\n        return filtersProcessCode;\n      }\n      return this.args.dispatchProcess?.getData?.('code') ?? '';\n    }\n    get showSidebarWaybillPrintSections() {\n      if (this.args.isDispatched) {\n        return true;\n      }\n      return this.args.dispatchProcess?.getData?.('allowPrintAllWaybills') === true;\n    }\n    get enabledTransporterExtensions() {\n      return R.pipe(R.filter(transporterExtensionModel => {\n        return transporterExtensionModel?.enabled === true && this.carrierDocumentCount(transporterExtensionModel?.transporterExtension) > 0;\n      }), R.map(transporterExtensionModel => transporterExtensionModel?.transporterExtension || ''), R.reject(RA.isNilOrEmpty))(this.availableTransporterExtensionsModels || []);\n    }\n    get printsWaybills() {\n      if (!this.showSidebarWaybillPrintSections) {\n        return false;\n      }\n      return RA.isNotNilOrEmpty(this.enabledTransporterExtensions);\n    }\n    get printsPickingList() {\n      return this.pickingListPrintSettings?.enabled === true && this.printAllBadge > 0;\n    }\n    get printsDeliveryNotes() {\n      return this.deliveryNotePrintSettings?.enabled === true && this.printAllBadge > 0;\n    }\n    get printAllBadge() {\n      return Number(this.args.printSidebarCounts?.documentCount) || 0;\n    }\n    get printBadgeByTransporterExtension() {\n      const packagesByTransporterExtension = this.args.printSidebarCounts?.packagesByTransporterExtension || {};\n      return R.map(transporterExtensionCounts => {\n        return Number(transporterExtensionCounts?.count) || 0;\n      })(packagesByTransporterExtension);\n    }\n    get isPrintAllDisabled() {\n      return this.printAllBadge <= 0;\n    }\n    get printedStatus() {\n      return this.args.filters?.getData?.('printedStatus') ?? this.args.filters?._data?.printedStatus ?? '';\n    }\n    get printedStatusTabLabel() {\n      return this.dispatch.readPrintedStatusLabel(this.printedStatus);\n    }\n    get isReprintAllowed() {\n      return this.printedStatus === 'printed';\n    }\n    get isReprintDisabled() {\n      return !this.isReprintAllowed || this.isPrintAllDisabled;\n    }\n\n    /**\n     * Unprinted and Has Issues are the queues Print All clears.\n     * @param {string} printedStatus\n     * @returns {boolean}\n     */\n    shouldRefreshDispatchPanelAfterPrintAll(printedStatus) {\n      return printedStatus === 'unprinted' || printedStatus === 'hasIssues';\n    }\n    refreshDispatchPanelAfterPrintAll() {\n      const refreshDispatchPanel = this.args.onRefreshDispatchPanelDataTask;\n      if (!refreshDispatchPanel) {\n        return null;\n      }\n      return refreshDispatchPanel.perform({\n        dispatchProcess: this.args.dispatchProcess,\n        period: this.args.period,\n        filters: this.args.filters\n      });\n    }\n    get isDispatchedProcessModel() {\n      const dispatchProcesses = this.crud.lists?.['dispatch-lists-processes'] || [];\n      const dispatchedProcessCode = this.constants?.dispatchProcess?.dispatched;\n      return R.find(R.pathEq(['_data', 'code'], dispatchedProcessCode))(dispatchProcesses);\n    }\n    get isDispatchedBeforeToday() {\n      if (!this.args.isDispatched) {\n        return false;\n      }\n      const dispatchDateZ = this.args.period?.dateZ;\n      if (RA.isNilOrEmpty(dispatchDateZ)) {\n        return false;\n      }\n      return this.dateService.isBeforeToday(dispatchDateZ);\n    }\n    get allowProcesses() {\n      if (!this.args.isDispatched) {\n        return true;\n      }\n      const dispatchDateZ = this.args.period?.dateZ;\n      if (RA.isNilOrEmpty(dispatchDateZ)) {\n        return true;\n      }\n      return !this.dateService.isBeforeToday(dispatchDateZ);\n    }\n    get printReturnsDisplay() {\n      return this.deliveryNotePrintSettings?.printReturnsDisplay ?? 'showReturnsSeparately';\n    }\n    get deliveryNotePrintFormat() {\n      return this.deliveryNotePrintSettings?.deliveryNotePrintFormat ?? 'default';\n    }\n    get documentPrintHasPrices() {\n      return this.deliveryNotePrintSettings?.hasPrices ?? true;\n    }\n    get documentPrintHasGroups() {\n      return this.deliveryNotePrintSettings?.hasGroups ?? true;\n    }\n    get documentPrintHasPrintTerms() {\n      return this.deliveryNotePrintSettings?.hasPrintTerms ?? true;\n    }\n    get documentPrintHasImages() {\n      return this.deliveryNotePrintSettings?.hasImages ?? false;\n    }\n    get documentPrintImagesSize() {\n      return Number(this.deliveryNotePrintSettings?.imagesSize) || 30;\n    }\n    get documentPrintShowUnit() {\n      return this.deliveryNotePrintSettings?.showUnit ?? 'showUnitBelowItems';\n    }\n    get documentPrintShowProductCode() {\n      return this.deliveryNotePrintSettings?.showProductCode ?? 'showCodeBelowItems';\n    }\n    get activePrintBatchTab() {\n      return R.find(R.propEq('value', this.activePrintBatchTabValue))(this.printBatchTabs || []) || null;\n    }\n    get unsuccessfulDocumentRows() {\n      const unsuccessfulDocuments = this.activePrintBatchTab?.unsuccessful || [];\n      const carrierError = this.activePrintBatchTab?.error || '';\n      const screenDocuments = R.map(documentRow => {\n        return this.dispatch.readDispatchDocumentData(documentRow);\n      })(this.args.results || []);\n      return R.map(unsuccessfulDocument => {\n        const screenDocument = R.find(documentData => {\n          return this.samePrintBatchDocument(documentData, unsuccessfulDocument);\n        })(screenDocuments) || {};\n        return {\n          docNo: unsuccessfulDocument?.docNo || screenDocument.docNo,\n          ref: unsuccessfulDocument?.ref || screenDocument.ref,\n          contact: unsuccessfulDocument?.transporterContactPerson || unsuccessfulDocument?.contact || screenDocument.transporterContactPerson || screenDocument.contact,\n          telephone: unsuccessfulDocument?.telephone || screenDocument.telephone,\n          waybill: unsuccessfulDocument?.waybill || screenDocument.waybill,\n          packages: unsuccessfulDocument?.packages ?? screenDocument.packages,\n          message: unsuccessfulDocument?.message || unsuccessfulDocument?.error || carrierError,\n          translate: unsuccessfulDocument?.translate\n        };\n      })(unsuccessfulDocuments);\n    }\n    samePrintBatchDocument(documentData, unsuccessfulDocument) {\n      const sameKey = RA.isNotNilOrEmpty(unsuccessfulDocument?._key) && documentData?._key === unsuccessfulDocument._key;\n      const sameDocNo = RA.isNotNilOrEmpty(unsuccessfulDocument?.docNo) && String(documentData?.docNo) === String(unsuccessfulDocument.docNo);\n      return sameKey || sameDocNo;\n    }\n    assignPrintBatchDocuments(documentRows = []) {\n      const rows = documentRows || [];\n      this.printBatchDocuments = rows;\n      this.printBatchDocumentModels = R.map(documentRow => documentRow?.model)(rows);\n    }\n\n    /**\n     * Picking list summary for the documents being printed. Reprints, which skip Print All, use the dispatch page summary.\n     * @returns {Object}\n     */\n    get printBatchSummaryData() {\n      return this.printBatchSummary || this.args.summaryData;\n    }\n\n    /**\n     * Carrier documents that got no waybill, so Print All left them off the picking list and delivery notes.\n     * @returns {number}\n     */\n    get skippedPrintBatchDocumentCount() {\n      return R.pipe(R.chain(carrier => carrier?.unsuccessful || []), R.uniqBy(unsuccessfulDocument => unsuccessfulDocument?._key || unsuccessfulDocument?.docNo), R.length)(this.printBatchCarriers || []);\n    }\n    get printBatchNavMenu() {\n      return R.map(printBatchTab => {\n        return {\n          _data: {\n            value: printBatchTab.value,\n            label: printBatchTab.label,\n            badge: printBatchTab.documentCount || '',\n            icon: printBatchTab.hasIssues ? 'fas fa-exclamation-triangle' : ''\n          }\n        };\n      })(this.printBatchTabs || []);\n    }\n    get printBatchNavMenuSelected() {\n      return {\n        _data: {\n          value: this.activePrintBatchTabValue\n        }\n      };\n    }\n    findCarrierSettings(transporterExtension) {\n      return R.find(R.propEq('transporterExtension', transporterExtension))(this.availableTransporterExtensionsModels || []) || null;\n    }\n    readCarrierPrintSettings() {\n      const enabledCarrierSettings = R.filter(transporterExtensionModel => {\n        return transporterExtensionModel?.enabled === true;\n      })(this.availableTransporterExtensionsModels || []);\n      return R.map(transporterExtensionModel => {\n        return {\n          transporterExtension: transporterExtensionModel?.transporterExtension || '',\n          transporterWaybillPrintType: transporterExtensionModel?.printType || '',\n          waybillsPerPage: Number(transporterExtensionModel?.waybillsPerPage) || 4,\n          waybillsPerPageC2C: transporterExtensionModel?.waybillsPerPageC2C,\n          waybillsPerPageB2C: transporterExtensionModel?.waybillsPerPageB2C\n        };\n      })(enabledCarrierSettings);\n    }\n\n    /**\n     * Picking list and delivery notes rows for the print batch documents.\n     * @param {Object[]} documents - print batch documents from the API\n     * @returns {Object[]}\n     */\n    buildPrintBatchDocumentRows(documents = []) {\n      return R.map(document => {\n        const documentModel = this.dataManager.setAsRecord({\n          adapterName: 'dispatch',\n          data: document\n        });\n        return _nventor.default.createModel(_model.default, {}, {\n          model: documentModel,\n          isSelected: false,\n          showDetails: true\n        });\n      })(documents);\n    }\n    *refreshActivePrintBatchClaimTask() {\n      const claim = yield this.dispatch.fetchSidebarPrintBatchClaimTask.perform(this.dispatchProcessCode);\n      this.activePrintBatchClaimReport = this.dispatch.buildSidebarPrintBatchClaimReport(claim);\n      return claim;\n    }\n    readPrintBatchRequest() {\n      const selectedDocuments = this.dispatch.filterSelectedDispatchDocuments(this.args.results || [], this.dispatchProcessCode);\n      const printBatchRequest = this.dispatch.buildSidebarPrintBatchRequest({\n        filters: this.args.filters,\n        dispatchProcess: this.args.dispatchProcess,\n        period: this.args.period,\n        selectedDocuments,\n        carrierSettings: this.readCarrierPrintSettings(),\n        printWaybills: this.printsWaybills\n      });\n      return {\n        selectedDocuments,\n        printBatchRequest\n      };\n    }\n    *requestPrintBatchTask() {\n      const {\n        printBatchRequest\n      } = this.readPrintBatchRequest();\n      this.printBatchEstimates = this.buildPrintBatchEstimates({\n        printSidebarCounts: this.args.printSidebarCounts,\n        sidebarTransporterExtensions: this.enabledTransporterExtensions,\n        msPerDocumentByCarrier: this.readPrintBatchMsPerDocument()\n      });\n      this.trackPrintBatchElapsedTask.perform();\n      try {\n        const printBatch = yield this.dispatch.runSidebarPrintBatchTask.perform(printBatchRequest);\n        if (RA.isNotNilOrEmpty(printBatch?.carriers)) {\n          this.savePrintBatchMsPerDocument(printBatch);\n        }\n        return printBatch;\n      } finally {\n        this.trackPrintBatchElapsedTask.cancelAll();\n        this.printBatchEstimates = [];\n        this.printBatchElapsedMs = 0;\n      }\n    }\n    *trackPrintBatchElapsedTask() {\n      const startedAt = Date.now();\n      this.printBatchElapsedMs = 0;\n      while (true) {\n        yield (0, _emberConcurrency.timeout)(PRINT_BATCH_PROGRESS_REFRESH_MS);\n        this.printBatchElapsedMs = Date.now() - startedAt;\n      }\n    }\n    get printBatchProgressByTransporterExtension() {\n      const printBatchProgressRows = this.buildPrintBatchProgressRows({\n        estimates: this.printBatchEstimates,\n        elapsedMs: this.printBatchElapsedMs\n      });\n      return R.indexBy(R.prop('transporterExtension'))(printBatchProgressRows);\n    }\n    get sidebarTransporterExtensions() {\n      return R.pluck('transporterExtension')(this.availableTransporterExtensionsModels || []);\n    }\n\n    /**\n     * Estimated waybill generation time for each carrier with documents, in sidebar order.\n     * @param {Object} args\n     * @param {Object} args.printSidebarCounts - from buildDispatchPrintSidebarCounts\n     * @param {string[]} args.sidebarTransporterExtensions - carriers in the order the sidebar lists them\n     * @param {Object} args.msPerDocumentByCarrier - from readPrintBatchMsPerDocument\n     * @returns {Object[]}\n     */\n    buildPrintBatchEstimates({\n      printSidebarCounts = {},\n      sidebarTransporterExtensions = [],\n      msPerDocumentByCarrier = {}\n    } = {}) {\n      const packagesByTransporterExtension = printSidebarCounts?.packagesByTransporterExtension || {};\n      return R.pipe(R.map(transporterExtension => {\n        const documentCount = Number(packagesByTransporterExtension?.[transporterExtension]?.count) || 0;\n        const msPerDocument = Number(msPerDocumentByCarrier?.[transporterExtension]) || PRINT_BATCH_DEFAULT_MS_PER_DOCUMENT;\n        return {\n          transporterExtension,\n          documentCount,\n          estimatedMs: documentCount * msPerDocument\n        };\n      }), R.filter(estimate => estimate.documentCount > 0))(sidebarTransporterExtensions);\n    }\n\n    /**\n     * Estimated documents generated so far for each carrier after elapsedMs.\n     * @param {Object} args\n     * @param {Object[]} args.estimates - from buildPrintBatchEstimates\n     * @param {number} args.elapsedMs\n     * @returns {Object[]}\n     */\n    buildPrintBatchProgressRows({\n      estimates = [],\n      elapsedMs = 0\n    } = {}) {\n      return R.map(estimate => {\n        const elapsedPercent = estimate.estimatedMs > 0 ? elapsedMs / estimate.estimatedMs * 100 : PRINT_BATCH_ESTIMATE_MAX_PERCENT;\n        const percent = Math.min(elapsedPercent, PRINT_BATCH_ESTIMATE_MAX_PERCENT);\n        const estimatedGeneratedCount = Math.floor(estimate.documentCount * percent / 100);\n        return R.mergeRight(estimate, {\n          percent: Math.round(percent),\n          label: `${estimatedGeneratedCount} / ${estimate.documentCount}`\n        });\n      })(estimates);\n    }\n\n    /**\n     * Time per document for each carrier, averaged with the previous run so one slow run does not swing the estimate.\n     * @param {Object} args\n     * @param {Object} args.printBatch - response from runSidebarPrintBatchTask\n     * @param {Object} args.previousMsPerDocument - from readPrintBatchMsPerDocument\n     * @returns {Object}\n     */\n    buildPrintBatchMsPerDocument({\n      printBatch = {},\n      previousMsPerDocument = {}\n    } = {}) {\n      const measuredMsPerDocument = R.pipe(R.filter(carrier => {\n        return carrier?.status === 'done' && Number(carrier?.documentCount) > 0 && Number(carrier?.durationMs) > 0;\n      }), R.map(carrier => {\n        const measuredMs = Number(carrier.durationMs) / Number(carrier.documentCount);\n        const previousMs = Number(previousMsPerDocument?.[carrier.transporterExtension]) || 0;\n        const msPerDocument = previousMs > 0 ? (previousMs + measuredMs) / 2 : measuredMs;\n        return [carrier.transporterExtension, Math.round(msPerDocument)];\n      }), R.fromPairs)(printBatch?.carriers || []);\n      return R.mergeRight(previousMsPerDocument, measuredMsPerDocument);\n    }\n    readPrintBatchMsPerDocument() {\n      return this.storage.get(PRINT_BATCH_MS_PER_DOCUMENT_STORAGE_KEY) || {};\n    }\n    savePrintBatchMsPerDocument(printBatch) {\n      const msPerDocumentByCarrier = this.buildPrintBatchMsPerDocument({\n        printBatch,\n        previousMsPerDocument: this.readPrintBatchMsPerDocument()\n      });\n      this.storage.set(PRINT_BATCH_MS_PER_DOCUMENT_STORAGE_KEY, msPerDocumentByCarrier);\n    }\n    confirmNewWaybillNumbers() {\n      const message = this.intl.t('everytime you print it will generate a new Waybill number. are you sure you want to print?');\n      return window.confirm(message);\n    }\n\n    /**\n     * Generate every waybill on the API, then open the print modal with one tab per output.\n     * @returns {Promise<Object|null>} the print batch\n     */\n    *printAllTask() {\n      this.printAllError = '';\n      if (!this.hasAnyToPrint || this.args.dispatchPanelNeedsRefresh) {\n        return null;\n      }\n      try {\n        const {\n          selectedDocuments,\n          printBatchRequest\n        } = this.readPrintBatchRequest();\n        const documentsToCheck = RA.isNotNilOrEmpty(selectedDocuments) ? selectedDocuments : this.args.results || [];\n        let needsConfirm = false;\n        if (printBatchRequest.printWaybills) {\n          const enabledTransporterExtensions = this.enabledTransporterExtensions;\n          const waybillDocuments = R.filter(documentRow => {\n            const documentData = documentRow?.model?._data ?? documentRow?._data ?? documentRow;\n            return R.includes(documentData?.transporterExtension, enabledTransporterExtensions);\n          })(documentsToCheck);\n          needsConfirm = this.dispatch.documentsIncludeAlreadyPrintedWaybill(waybillDocuments);\n          if (!needsConfirm && RA.isNilOrEmpty(selectedDocuments)) {\n            const confirmCheck = yield this.dispatch.readPrintBatchNeedsConfirmTask.perform(printBatchRequest);\n            needsConfirm = confirmCheck?.needsConfirm === true;\n          }\n        }\n        if (needsConfirm && !this.confirmNewWaybillNumbers()) {\n          return null;\n        }\n        const printBatch = yield this.requestPrintBatchTask.perform();\n        this.openPrintBatchModal(printBatch);\n        if (RA.isNotNilOrEmpty(this.printBatchDocuments)) {\n          yield this.dispatch.markAsPrintedTask.perform(this.printBatchDocuments, true, true);\n        }\n        yield this.refreshActivePrintBatchClaimTask.perform();\n        if (this.shouldRefreshDispatchPanelAfterPrintAll(this.printedStatus)) {\n          if (this.printBatchModalIsVisible) {\n            this.refreshDispatchPanelWhenPrintBatchModalCloses = true;\n          } else {\n            yield this.refreshDispatchPanelAfterPrintAll();\n          }\n        }\n        return printBatch;\n      } catch (error) {\n        this.printAllError = error?.message || 'error occurred please try again later';\n        return null;\n      }\n    }\n    reprintDocumentRows() {\n      const selectedDocuments = this.dispatch.filterSelectedDispatchDocuments(this.args.results || [], this.dispatchProcessCode);\n      if (RA.isNotNilOrEmpty(selectedDocuments)) {\n        return selectedDocuments;\n      }\n      return RA.ensureArray(this.args.results);\n    }\n\n    /**\n     * Open the print modal for the print scope.\n     * Checked rows stay as they are. Otherwise load the filtered list, not only the current page.\n     * The caller describes the tab. A transporterExtension limits the rows to that carrier.\n     * @param {Object} reprintTab\n     * @param {string} reprintTab.kind\n     * @param {string} reprintTab.label\n     * @param {string} [reprintTab.transporterExtension]\n     */\n    openReprintModal(reprintTab) {\n      return this.openReprintModalTask.perform(reprintTab);\n    }\n    *openReprintModalTask(reprintTab) {\n      if (this.isReprintDisabled) {\n        return;\n      }\n      const sourceRows = yield this.readReprintSourceRowsTask.perform(reprintTab?.transporterExtension);\n      if (RA.isNilOrEmpty(sourceRows)) {\n        return;\n      }\n      const printRows = R.map(documentRow => {\n        if (documentRow?.model) {\n          return documentRow;\n        }\n        const documentData = documentRow?._data || documentRow;\n        return this.buildPrintBatchDocumentRows([documentData])[0];\n      })(sourceRows);\n      const printBatchTabs = this.buildReprintPrintBatchTabs({\n        reprintTab,\n        documentCount: printRows.length\n      });\n      this.assignPrintBatchDocuments(printRows);\n      this.printBatchCarriers = [];\n      this.printBatchTabs = printBatchTabs;\n      this.activePrintBatchTabValue = printBatchTabs[0]?.value || '';\n      this.printBatchModalIsVisible = true;\n    }\n\n    /**\n     * Reprint rows for the print scope, limited to one carrier when a transporter extension is given.\n     * Checked rows are that scope. Otherwise the filtered list is loaded so the count matches the sidebar.\n     * @param {string} [transporterExtension]\n     * @returns {Object[]}\n     */\n    *readReprintSourceRowsTask(transporterExtension) {\n      const selectedDocuments = this.dispatch.filterSelectedDispatchDocuments(this.args.results || [], this.dispatchProcessCode);\n      const documentRows = RA.isNotNilOrEmpty(selectedDocuments) ? selectedDocuments : yield this.fetchReprintDocumentRowsTask.perform();\n      return this.readReprintDocumentRows(transporterExtension, documentRows);\n    }\n\n    /**\n     * Every document in the current dispatch filters.\n     * @returns {Object[]}\n     */\n    *fetchReprintDocumentRowsTask() {\n      const fetchedResults = yield this.args.onFetchUnpaginatedDispatchDataTask.perform({\n        dispatchProcess: this.args.dispatchProcess,\n        period: this.args.period,\n        filters: this.args.filters,\n        setResults: false\n      });\n      return fetchedResults?.docs || [];\n    }\n\n    /**\n     * Reprint rows, limited to one carrier when a transporter extension is given.\n     * @param {string} [transporterExtension]\n     * @param {Object[]} [documentRows]\n     * @returns {Object[]}\n     */\n    readReprintDocumentRows(transporterExtension, documentRows = this.reprintDocumentRows()) {\n      if (RA.isNilOrEmpty(transporterExtension)) {\n        return documentRows;\n      }\n      return R.filter(documentRow => {\n        const documentData = this.dispatch.readDispatchDocumentData(documentRow);\n        return documentData?.transporterExtension === transporterExtension;\n      })(documentRows);\n    }\n\n    /**\n     * Print-modal tabs for a reprint. A carrier can declare more than one.\n     * @param {Object} args\n     * @param {Object} args.reprintTab - kind, label, and optional transporterExtension from the caller\n     * @param {number} args.documentCount\n     * @returns {Object[]}\n     */\n    buildReprintPrintBatchTabs({\n      reprintTab = {},\n      documentCount\n    } = {}) {\n      const transporterExtension = reprintTab?.transporterExtension || '';\n      const printBatchTab = {\n        value: transporterExtension || reprintTab?.kind,\n        kind: reprintTab?.kind,\n        transporterExtension,\n        label: reprintTab?.label,\n        documentCount\n      };\n      const printBatchTabWithDocumentStrategy = this.dispatch.applyDocumentPrintBatchStrategy(printBatchTab);\n      return this.attachCarrierPrintComponents([printBatchTabWithDocumentStrategy]);\n    }\n    openPrintBatchModal(printBatch) {\n      const printBatchTabs = this.dispatch.buildPrintBatchTabs({\n        printBatch,\n        sidebarTransporterExtensions: this.sidebarTransporterExtensions,\n        includeCarrierTabs: this.printsWaybills,\n        includePickingList: this.printsPickingList,\n        includeDeliveryNotes: this.printsDeliveryNotes\n      });\n      const printBatchTabsWithComponents = this.attachCarrierPrintComponents(printBatchTabs);\n      const firstTabValue = printBatchTabsWithComponents[0]?.value || '';\n      this.assignPrintBatchDocuments(this.buildPrintBatchDocumentRows(printBatch?.documents || []));\n      this.printBatchCarriers = printBatch?.carriers || [];\n      this.printBatchSummary = printBatch?.summary || null;\n      this.printBatchTabs = printBatchTabsWithComponents;\n      this.activePrintBatchTabValue = firstTabValue;\n      this.printBatchModalIsVisible = true;\n    }\n\n    /**\n     * Copy each carrier's print component onto its waybill tab, then any additional tabs that carrier declares.\n     * @param {Object[]} printBatchTabs\n     * @returns {Object[]}\n     */\n    attachCarrierPrintComponents(printBatchTabs = []) {\n      return R.chain(printBatchTab => {\n        const transporterExtension = printBatchTab?.transporterExtension || '';\n        if (RA.isNilOrEmpty(transporterExtension)) {\n          return [printBatchTab];\n        }\n        const carrierSettings = this.findCarrierSettings(transporterExtension);\n        if (RA.isNilOrEmpty(carrierSettings)) {\n          return [printBatchTab];\n        }\n        const waybillTab = R.mergeRight(printBatchTab, {\n          printComponent: carrierSettings.printComponent || printBatchTab.printComponent || '',\n          carrierSettings\n        });\n        const additionalPrintTabs = R.map(additionalPrintTab => {\n          return R.mergeRight(additionalPrintTab, {\n            transporterExtension,\n            documentCount: printBatchTab.documentCount,\n            carrierSettings\n          });\n        })(carrierSettings.additionalPrintTabs || []);\n        return R.prepend(waybillTab, additionalPrintTabs);\n      })(printBatchTabs || []);\n    }\n    selectPrintBatchTab(navMenuItem) {\n      const tabValue = navMenuItem?._data?.value || '';\n      this.activePrintBatchTabValue = tabValue;\n    }\n    carrierDocumentCount(transporterExtension) {\n      return Number(this.printBadgeByTransporterExtension?.[transporterExtension]) || 0;\n    }\n    closePrintBatchModal() {\n      const shouldRefreshDispatchPanel = this.refreshDispatchPanelWhenPrintBatchModalCloses;\n      this.printBatchModalIsVisible = false;\n      this.refreshDispatchPanelWhenPrintBatchModalCloses = false;\n      this.printBatchTabs = [];\n      this.printBatchCarriers = [];\n      this.printBatchSummary = null;\n      this.activePrintBatchTabValue = '';\n      this.assignPrintBatchDocuments([]);\n      if (shouldRefreshDispatchPanel) {\n        const refreshDispatchPanel = this.refreshDispatchPanelAfterPrintAll();\n        refreshDispatchPanel?.catch?.(error => {\n          this.printAllError = error?.message || 'error occurred please try again later';\n        });\n      }\n    }\n    get hasAnyToPrint() {\n      if (this.printsPickingList) {\n        return true;\n      }\n      if (this.printsDeliveryNotes) {\n        return true;\n      }\n      return this.printsWaybills;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dispatch\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"storage\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"hidePrinted\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'hidePrintedAll';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"deliveryNotePrintSettings\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"availableTransporterExtensionsModels\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"printAllError\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"activePrintBatchClaimReport\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"printBatchModalIsVisible\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"printBatchTabs\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"activePrintBatchTabValue\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"printBatchDocuments\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"printBatchDocumentModels\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"printBatchEstimates\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"printBatchCarriers\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"printBatchSummary\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"printBatchElapsedMs\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"refreshDispatchPanelWhenPrintBatchModalCloses\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTransporterExtensionsModels\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTransporterExtensionsModels\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"availableTransporterExtensions\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"availableTransporterExtensions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addTransporterExtensionModel\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"addTransporterExtensionModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleEnabled\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleEnabled\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"printInfoLabel\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"printInfoLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"enabledTransporterExtensions\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"enabledTransporterExtensions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"printsWaybills\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"printsWaybills\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"printsPickingList\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"printsPickingList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"printsDeliveryNotes\", [_dec31], Object.getOwnPropertyDescriptor(_class.prototype, \"printsDeliveryNotes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshActivePrintBatchClaimTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshActivePrintBatchClaimTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"requestPrintBatchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"requestPrintBatchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"trackPrintBatchElapsedTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"trackPrintBatchElapsedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"printAllTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"printAllTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openReprintModal\", [_dec32], Object.getOwnPropertyDescriptor(_class.prototype, \"openReprintModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openReprintModalTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"openReprintModalTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"readReprintSourceRowsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"readReprintSourceRowsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchReprintDocumentRowsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchReprintDocumentRowsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectPrintBatchTab\", [_dec33], Object.getOwnPropertyDescriptor(_class.prototype, \"selectPrintBatchTab\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closePrintBatchModal\", [_dec34], Object.getOwnPropertyDescriptor(_class.prototype, \"closePrintBatchModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasAnyToPrint\", [_dec35], Object.getOwnPropertyDescriptor(_class.prototype, \"hasAnyToPrint\"), _class.prototype), _class);\n});","define(\"client/pods/components/dispatch/print-options/delivery-notes/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DispatchPrintOptionsDeliveryNotesComponent extends _component.default {\n    get printTab() {\n      return Ember.Object.create({\n        value: 'deliveryNotes',\n        label: 'delivery notes'\n      });\n    }\n  }\n  _exports.default = DispatchPrintOptionsDeliveryNotesComponent;\n});","define(\"client/pods/components/dispatch/print-options/delivery-notes/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LaJPBURE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onClose\\\",\\\"@failed\\\",\\\"@printOptions\\\",\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@filters\\\",\\\"@summaryData\\\",\\\"@documentModels\\\"],\\\"statements\\\":[[5,\\\"dispatch/print-options/print-dialog\\\",[],[[\\\"@onClose\\\",\\\"@failed\\\",\\\"@printOptions\\\"],[[23,1,[]],[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[5,\\\"documents/document-print/print-list\\\",[],[[\\\"@tab\\\",\\\"@isPrinting\\\",\\\"@hasPrintBtn\\\",\\\"@isDispatchPrinting\\\",\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@filters\\\",\\\"@summaryData\\\",\\\"@results\\\",\\\"@toPrintDeliveryNotes\\\",\\\"@deliveryNotePrintFormat\\\",\\\"@deliveryNotePrintSettings\\\",\\\"@hasPrices\\\",\\\"@hasGroups\\\",\\\"@hasPrintTerms\\\",\\\"@hasImages\\\",\\\"@imagesSize\\\",\\\"@showUnit\\\",\\\"@showProductCode\\\",\\\"@printReturnsDisplay\\\"],[[23,0,[\\\"printTab\\\"]],true,false,true,[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,8,[]],[23,3,[\\\"deliveryNotePrintFormat\\\"]],[23,3,[\\\"deliveryNotePrintSettings\\\"]],[23,3,[\\\"documentPrintHasPrices\\\"]],[23,3,[\\\"documentPrintHasGroups\\\"]],[23,3,[\\\"documentPrintHasPrintTerms\\\"]],[23,3,[\\\"documentPrintHasImages\\\"]],[23,3,[\\\"documentPrintImagesSize\\\"]],[23,3,[\\\"documentPrintShowUnit\\\"]],[23,3,[\\\"documentPrintShowProductCode\\\"]],[23,3,[\\\"printReturnsDisplay\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/delivery-notes/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/hct-summary/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DispatchPrintOptionsHctSummaryComponent extends _component.default {\n    get carrierDocumentModels() {\n      const transporterExtension = this.args.transporterExtension || 'hct';\n      return R.filter(documentModel => {\n        return documentModel?._data?.transporterExtension === transporterExtension;\n      })(this.args.documentModels || []);\n    }\n  }\n  _exports.default = DispatchPrintOptionsHctSummaryComponent;\n});","define(\"client/pods/components/dispatch/print-options/hct-summary/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WgD6paoO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onClose\\\",\\\"@failed\\\",\\\"@period\\\",\\\"@isDispatched\\\",\\\"@dispatchProcess\\\"],\\\"statements\\\":[[5,\\\"dispatch/print-options/print-dialog\\\",[],[[\\\"@onClose\\\",\\\"@failed\\\"],[[23,1,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"transporters/hct-summary\\\",[],[[\\\"@results\\\",\\\"@period\\\",\\\"@isDispatched\\\",\\\"@dispatchProcess\\\"],[[23,0,[\\\"carrierDocumentModels\\\"]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/hct-summary/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/hct-waybills/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 DispatchPrintOptionsHctWaybillsComponent = _exports.default = (_dec = Ember.inject.service, _class = class DispatchPrintOptionsHctWaybillsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dispatch\", _descriptor, this);\n    }\n    get carrierDocumentModels() {\n      return this.dispatch.filterDocumentModelsByTransporterExtension(this.args.documentModels, this.args.transporterExtension || '');\n    }\n    get printTab() {\n      return Ember.Object.create({\n        value: 'waybills',\n        label: 'hct waybills',\n        dispatchProcess: this.args.dispatchProcess\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dispatch\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/dispatch/print-options/hct-waybills/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hhA/Xtga\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onClose\\\",\\\"@failed\\\",\\\"@dispatchProcess\\\",\\\"@filters\\\",\\\"@summaryData\\\",\\\"@carrierSettings\\\"],\\\"statements\\\":[[5,\\\"dispatch/print-options/print-dialog\\\",[],[[\\\"@onClose\\\",\\\"@failed\\\"],[[23,1,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[5,\\\"transporters/hct-waybills-list\\\",[],[[\\\"@results\\\",\\\"@dispatchProcess\\\",\\\"@filters\\\",\\\"@tab\\\",\\\"@isPrinting\\\",\\\"@summaryData\\\",\\\"@hideAccountFilters\\\",\\\"@filterTransporterAccountNumber\\\",\\\"@filterTransporterBatchNumber\\\",\\\"@filter\\\",\\\"@hctWaybillsPerPage\\\",\\\"@waybillsPrintStartPosition\\\",\\\"@printWaybillDefault\\\",\\\"@printWaybillDefaultRevision\\\"],[[23,0,[\\\"carrierDocumentModels\\\"]],[23,3,[]],[23,4,[]],[23,0,[\\\"printTab\\\"]],true,[23,5,[]],true,[23,6,[\\\"filterTransporterAccountNumber\\\"]],[23,6,[\\\"filterTransporterBatchNumber\\\"]],[23,6,[\\\"hctFilter\\\"]],[23,6,[\\\"hctWaybillsPerPage\\\"]],[23,6,[\\\"waybillsPrintStartPosition\\\"]],[23,6,[\\\"hctPrintWaybillDefault\\\"]],[23,6,[\\\"hctPrintWaybillDefaultRevision\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/hct-waybills/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/picking-list/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DispatchPrintOptionsPickingListComponent extends _component.default {\n    get printTab() {\n      return Ember.Object.create({\n        value: 'pickingList',\n        label: 'picking list'\n      });\n    }\n  }\n  _exports.default = DispatchPrintOptionsPickingListComponent;\n});","define(\"client/pods/components/dispatch/print-options/picking-list/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UW+CyUhp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onClose\\\",\\\"@failed\\\",\\\"@printOptions\\\",\\\"@isDispatched\\\",\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@filters\\\",\\\"@dashData\\\",\\\"@documentModels\\\"],\\\"statements\\\":[[5,\\\"dispatch/print-options/print-dialog\\\",[],[[\\\"@onClose\\\",\\\"@failed\\\",\\\"@printOptions\\\"],[[23,1,[]],[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[5,\\\"dispatch/panels-display/display-list\\\",[],[[\\\"@allowProcesses\\\",\\\"@isDispatched\\\",\\\"@isDispatchedProcessModel\\\",\\\"@isDispatchedBeforeToday\\\",\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@filters\\\",\\\"@dashData\\\",\\\"@tab\\\",\\\"@isPrinting\\\",\\\"@autoFetchProduct\\\",\\\"@summaryData\\\",\\\"@filteredResults\\\",\\\"@dispatchedResults\\\",\\\"@results\\\",\\\"@hasPrintBtn\\\",\\\"@printReturnsDisplay\\\"],[[23,3,[\\\"allowProcesses\\\"]],[23,4,[]],[23,3,[\\\"isDispatchedProcessModel\\\"]],[23,3,[\\\"isDispatchedBeforeToday\\\"]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,0,[\\\"printTab\\\"]],true,true,[23,3,[\\\"printBatchSummaryData\\\"]],[23,3,[\\\"printBatchDocuments\\\"]],[23,3,[\\\"printBatchDocuments\\\"]],[23,9,[]],false,[23,3,[\\\"printReturnsDisplay\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/picking-list/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/print-batch-footer/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DispatchPrintOptionsPrintBatchFooterComponent extends _component.default {}\n  _exports.default = DispatchPrintOptionsPrintBatchFooterComponent;\n});","define(\"client/pods/components/dispatch/print-options/print-batch-footer/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vp6l5WZF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onClose\\\",\\\"&default\\\"],\\\"statements\\\":[[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n    \\\"],[14,2],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/print-batch-footer/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/print-batch-tab/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DispatchPrintOptionsPrintBatchTabComponent extends _component.default {}\n  _exports.default = DispatchPrintOptionsPrintBatchTabComponent;\n});","define(\"client/pods/components/dispatch/print-options/print-batch-tab/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"E8PV6OIR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@printBatchTab\\\",\\\"@onClose\\\",\\\"@isDispatched\\\",\\\"@summaryData\\\",\\\"@dashData\\\",\\\"@filters\\\",\\\"@period\\\",\\\"@dispatchProcess\\\",\\\"@printOptions\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"printComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"printComponent\\\"]]],[[\\\"transporterExtension\\\",\\\"documentModels\\\",\\\"carrierSettings\\\",\\\"carriers\\\",\\\"printOptions\\\",\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\",\\\"dashData\\\",\\\"summaryData\\\",\\\"isDispatched\\\",\\\"onClose\\\",\\\"failed\\\"],[[23,1,[\\\"transporterExtension\\\"]],[23,9,[\\\"printBatchDocumentModels\\\"]],[23,1,[\\\"carrierSettings\\\"]],[23,9,[\\\"printBatchCarriers\\\"]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]],[23,1,[\\\"failed\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/print-batch-tab/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/print-dialog/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DispatchPrintOptionsPrintDialogComponent extends _component.default {}\n  _exports.default = DispatchPrintOptionsPrintDialogComponent;\n});","define(\"client/pods/components/dispatch/print-options/print-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mGU3Wv0a\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onPrintDialogAction\\\",\\\"@printOptions\\\",\\\"&default\\\",\\\"@onClose\\\",\\\"@failed\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/print-content-container\\\",[],[[\\\"@hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"skippedPrintBatchDocumentCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container u-no-print\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[\\\"documents without waybill were skipped\\\"]]],[0,\\\"\\\\n          (\\\"],[1,[23,2,[\\\"skippedPrintBatchDocumentCount\\\"]],false],[0,\\\")\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/print-content-container/print-content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[14,3],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[5,\\\"dispatch/print-options/print-batch-footer\\\",[],[[\\\"@onClose\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"fas fa-print\\\",\\\"print\\\",\\\"print\\\",[23,1,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/print-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/seven-eleven-waybill-page/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 DispatchPrintOptionsSevenElevenWaybillPageComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _class = class DispatchPrintOptionsSevenElevenWaybillPageComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dispatch\", _descriptor, this);\n      _defineProperty(this, \"waybillFrameResizeObserver\", null);\n    }\n    setupWaybillFrame(waybillFrame) {\n      waybillFrame.addEventListener('load', () => {\n        this.fitWaybillFrameToContent(waybillFrame);\n        this.dispatch.loadWaybillBarcodeImages(waybillFrame.contentDocument, {\n          provider: this.args.page?.provider || '',\n          transporterType: this.args.page?.transporterType || ''\n        });\n      });\n\n      // Frames on a hidden print tab measure zero height, so fit again once the tab is shown.\n      this.waybillFrameResizeObserver = new window.ResizeObserver(() => {\n        this.fitWaybillFrameToContent(waybillFrame);\n      });\n      this.waybillFrameResizeObserver.observe(waybillFrame);\n      this.args.onSetupWaybillFrame(waybillFrame);\n    }\n    teardownWaybillFrame() {\n      if (!this.waybillFrameResizeObserver) {\n        return;\n      }\n      this.waybillFrameResizeObserver.disconnect();\n    }\n    fitWaybillFrameToContent(waybillFrame) {\n      const waybillsHeight = Number(waybillFrame.contentDocument?.body?.scrollHeight) || 0;\n      if (!waybillsHeight) {\n        return;\n      }\n      waybillFrame.style.height = `${waybillsHeight + 50}px`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dispatch\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupWaybillFrame\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"setupWaybillFrame\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"teardownWaybillFrame\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"teardownWaybillFrame\"), _class.prototype), _class);\n});","define(\"client/pods/components/dispatch/print-options/seven-eleven-waybill-page/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GPWmmWKE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@page\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"span\\\",true],[8],[1,[23,1,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"iframe\\\",false],[12,\\\"class\\\",\\\"dispatch-print-batch__waybill-page-frame\\\"],[12,\\\"title\\\",[23,1,[\\\"title\\\"]]],[12,\\\"srcdoc\\\",[23,1,[\\\"html\\\"]]],[3,\\\"did-insert\\\",[[23,0,[\\\"setupWaybillFrame\\\"]]]],[3,\\\"will-destroy\\\",[[23,0,[\\\"teardownWaybillFrame\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/seven-eleven-waybill-page/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/seven-eleven-waybills/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 DispatchPrintOptionsSevenElevenWaybillsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class DispatchPrintOptionsSevenElevenWaybillsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"dispatch\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"waybillPages\", _descriptor3, this);\n      _initializerDefineProperty(this, \"waybillPagesError\", _descriptor4, this);\n      _defineProperty(this, \"waybillFrames\", []);\n      this.loadWaybillPagesTask.perform();\n    }\n    get carrierDocumentModels() {\n      return this.dispatch.filterDocumentModelsByTransporterExtension(this.args.documentModels, this.args.transporterExtension || '');\n    }\n    get printBatchCarrier() {\n      return R.find(R.propEq('transporterExtension', this.args.transporterExtension))(this.args.carriers || []);\n    }\n    get isPrintDisabled() {\n      return this.loadWaybillPagesTask.isRunning || RA.isNilOrEmpty(this.waybillPages);\n    }\n\n    /**\n     * Printable pages for this tab. Print All already downloaded them for PayUni; other carriers fetch them here.\n     */\n    *loadWaybillPagesTask() {\n      const transporterHtmlData = this.printBatchCarrier?.transporterHtmlData;\n      if (RA.isNotNilOrEmpty(transporterHtmlData)) {\n        this.waybillPages = this.dispatch.buildSevenElevenWaybillPages({\n          transporterExtension: this.args.transporterExtension,\n          transporterHtmlData,\n          waybillsPerPageC2C: this.args.carrierSettings?.waybillsPerPageC2C || 1\n        });\n        return;\n      }\n      try {\n        this.waybillPages = yield this.dispatch.fetchSevenElevenWaybillPagesTask.perform({\n          transporterExtension: this.args.transporterExtension,\n          documents: this.carrierDocumentModels,\n          carrierSettings: this.args.carrierSettings\n        }) || [];\n      } catch (error) {\n        this.waybillPagesError = error?.message || 'error occurred please try again later';\n      }\n    }\n    addWaybillFrame(waybillFrame) {\n      this.waybillFrames = R.append(waybillFrame, this.waybillFrames);\n    }\n\n    /**\n     * Print each waybill page in order. Stops at the first page whose barcodes fail to load.\n     */\n    *printWaybillPagesTask() {\n      const waybillFramesAndPages = R.zip(this.waybillFrames, this.waybillPages);\n      for (const [waybillFrame, waybillPage] of waybillFramesAndPages) {\n        const waybillWindow = waybillFrame?.contentWindow;\n        if (!waybillWindow) {\n          continue;\n        }\n        const allBarcodesLoaded = yield this.dispatch.loadWaybillBarcodeImages(waybillWindow.document, {\n          provider: waybillPage?.provider || this.args.transporterExtension || '',\n          transporterType: waybillPage?.transporterType || ''\n        });\n        if (!allBarcodesLoaded) {\n          window.alert(this.intl.t('error fetching barcode'));\n          return;\n        }\n        waybillWindow.focus();\n        waybillWindow.print();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dispatch\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"waybillPages\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"waybillPagesError\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadWaybillPagesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadWaybillPagesTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addWaybillFrame\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"addWaybillFrame\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"printWaybillPagesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"printWaybillPagesTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/dispatch/print-options/seven-eleven-waybills/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LAp6kcFs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"waybillPage\\\",\\\"@onClose\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadWaybillPagesTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"waybillPages\\\",\\\"length\\\"]],[23,0,[\\\"waybillPagesError\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"waybillPagesError\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@error\\\"],[[23,0,[\\\"waybillPagesError\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"loadWaybillPagesTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"waybillPages\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"dispatch/print-options/seven-eleven-waybill-page\\\",[],[[\\\"@page\\\",\\\"@onSetupWaybillFrame\\\"],[[23,1,[]],[23,0,[\\\"addWaybillFrame\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[5,\\\"dispatch/print-options/print-batch-footer\\\",[],[[\\\"@onClose\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@badge\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-print\\\",\\\"print\\\",\\\"print\\\",[23,0,[\\\"printBatchCarrier\\\",\\\"successfulCount\\\"]],[23,0,[\\\"isPrintDisabled\\\"]],[23,0,[\\\"printWaybillPagesTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"printWaybillPagesTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/seven-eleven-waybills/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/t-cat-download/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 DispatchPrintOptionsTCatDownloadComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class DispatchPrintOptionsTCatDownloadComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dispatch\", _descriptor, this);\n    }\n    /**\n     * Each print-batch download keeps its own transporterCredentials (multi-account safe).\n     * @returns {Object[]}\n     */\n    get fileDownloads() {\n      return this.dispatch.buildTCatLatestFileDownloads({\n        carriers: this.args.carriers || [],\n        transporterExtension: this.args.transporterExtension || this.dispatch.tCatExtension\n      });\n    }\n    get carrierDocumentModels() {\n      return this.dispatch.filterDocumentModelsByTransporterExtension(this.args.documentModels, this.args.transporterExtension || '');\n    }\n    get hasWaybillFile() {\n      return RA.isNotNilOrEmpty(this.fileDownloads);\n    }\n    downloadLatestFile() {\n      R.forEach(download => {\n        this.dispatch.tCatDownloadWaybill.perform(download);\n      })(this.fileDownloads);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dispatch\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"downloadLatestFile\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"downloadLatestFile\"), _class.prototype), _class);\n});","define(\"client/pods/components/dispatch/print-options/t-cat-download/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"z/0i0f3m\",\n    \"block\": \"{\\\"symbols\\\":[\\\"documentModel\\\",\\\"@onClose\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width dispatch-print-batch-documents\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"colgroup\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__doc-no\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__ref\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__contact\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__telephone\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__waybill\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__packages\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"document number\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"waybill\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"carrierDocumentModels\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"#\\\"],[1,[23,1,[\\\"_data\\\",\\\"docNo\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"or\\\",[[23,1,[\\\"_data\\\",\\\"transporterContactPerson\\\"]],[23,1,[\\\"_data\\\",\\\"contact\\\"]]],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"telephone\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"waybill\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"packages\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[5,\\\"dispatch/print-options/print-batch-footer\\\",[],[[\\\"@onClose\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-download\\\",\\\"download\\\",\\\"download\\\",[28,\\\"not\\\",[[23,0,[\\\"hasWaybillFile\\\"]]],null],[23,0,[\\\"dispatch\\\",\\\"tCatDownloadWaybill\\\",\\\"isRunning\\\"]],[23,0,[\\\"downloadLatestFile\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/t-cat-download/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/print-options/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lIRo/IBn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"printBatchTab\\\",\\\"unsuccessfulDocument\\\",\\\"transporterExtensionOptionsModel\\\",\\\"error\\\",\\\"@refreshDispatchPanelTask\\\",\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@filters\\\",\\\"@dashData\\\",\\\"@summaryData\\\",\\\"@isDispatched\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@outerFormInitData\\\",\\\"@onHidePrintSidebar\\\",\\\"@dispatchPanelNeedsRefresh\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sidebar-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"dispatch-print\\\",false,true,[28,\\\"if\\\",[[23,17,[]],[23,17,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"dispatch\\\",true,[23,16,[]],[23,15,[]],[23,14,[]]]]]],null],[23,16,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"printInfo_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,0,[\\\"printInfoLabel\\\"]],false,\\\"printingXOutOfY\\\",[23,1,[]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"showImages\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\"],[\\\"show images\\\",[23,0,[\\\"dispatch\\\",\\\"showDocumentDetailsThumbnailImage\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"printAllError\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@error\\\"],[[23,0,[\\\"printAllError\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showSidebarWaybillPrintSections\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"availableTransporterExtensionsModels\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@badge\\\",\\\"@progress\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[[28,\\\"concat\\\",[\\\"transporterExtension_\\\",[23,5,[\\\"transporterExtension\\\"]],\\\"_group\\\"],null],[23,1,[]],[23,5,[\\\"transporterExtension\\\"]],[28,\\\"get\\\",[[23,0,[\\\"printBadgeByTransporterExtension\\\"]],[23,5,[\\\"transporterExtension\\\"]]],null],[28,\\\"get\\\",[[23,0,[\\\"printBatchProgressByTransporterExtension\\\"]],[23,5,[\\\"transporterExtension\\\"]]],null],true,true,[28,\\\"contains\\\",[[23,5,[\\\"transporterExtension\\\"]],[23,0,[\\\"enabledTransporterExtensions\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleEnabled\\\"]],[23,5,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@error\\\",\\\"@translate\\\"],[[23,6,[\\\"Message\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,5,[\\\"component\\\"]]],[[\\\"formInitData\\\",\\\"printOptionsModel\\\",\\\"dashData\\\",\\\"transporterExtensionOptionsModel\\\",\\\"transporterExtension\\\"],[[23,1,[]],[23,0,[]],[23,11,[]],[23,5,[]],[23,5,[\\\"transporterExtension\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@badge\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[\\\"pickingList_group\\\",[23,1,[]],\\\"picking list\\\",[23,0,[\\\"printAllBadge\\\"]],true,true,[23,0,[\\\"printsPickingList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleEnabled\\\"]],[23,0,[\\\"pickingListPrintSettings\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@description\\\"],[\\\"reprint\\\",\\\"reprint\\\",[23,1,[]],[28,\\\"unless\\\",[[23,0,[\\\"isReprintAllowed\\\"]],\\\"reprint is only available in the printed tab\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"reprint\\\",\\\"fas fa-print\\\",[23,0,[\\\"isReprintDisabled\\\"]],[23,0,[\\\"openReprintModalTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"openReprintModal\\\"]],[28,\\\"hash\\\",null,[[\\\"kind\\\",\\\"label\\\"],[\\\"pickingList\\\",\\\"picking list\\\"]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@badge\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[\\\"deliveryNotes_group\\\",[23,1,[]],\\\"delivery notes\\\",[23,0,[\\\"printAllBadge\\\"]],true,true,[23,0,[\\\"printsDeliveryNotes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleEnabled\\\"]],[23,0,[\\\"deliveryNotePrintSettings\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@description\\\"],[\\\"reprint\\\",\\\"reprint\\\",[23,1,[]],[28,\\\"unless\\\",[[23,0,[\\\"isReprintAllowed\\\"]],\\\"reprint is only available in the printed tab\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"reprint\\\",\\\"fas fa-print\\\",[23,0,[\\\"isReprintDisabled\\\"]],[23,0,[\\\"openReprintModalTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"openReprintModal\\\"]],[28,\\\"hash\\\",null,[[\\\"kind\\\",\\\"label\\\"],[\\\"deliveryNotes\\\",\\\"delivery notes\\\"]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"documents/document-print/delivery-note-print-settings\\\",[],[[\\\"@printOptionsModel\\\",\\\"@isDispatchTab\\\",\\\"@formInitData\\\",\\\"@deliveryNotePrintSettings\\\",\\\"@docType\\\",\\\"@docName\\\"],[[23,0,[]],true,[23,1,[]],[23,0,[\\\"deliveryNotePrintSettings\\\"]],\\\"sales\\\",\\\"invoices\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"printBatchModalIsVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@hasModalDialogHeader\\\",\\\"@onClose\\\"],[true,false,[23,0,[\\\"closePrintBatchModal\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"modals/modal-dialog/modal-header\\\",[],[[\\\"@onClose\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@selected\\\",\\\"@onSelect\\\"],[[23,0,[\\\"printBatchNavMenu\\\"]],[23,0,[\\\"printBatchNavMenuSelected\\\"]],[23,0,[\\\"selectPrintBatchTab\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"applicationService\\\",\\\"isMobile\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-header__process\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,8,[\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[23,8,[\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"activePrintBatchTab\\\",\\\"hasIssues\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container u-no-print\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"activePrintBatchTab\\\",\\\"unsuccessful\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"activePrintBatchTab\\\",\\\"error\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@error\\\"],[[23,0,[\\\"activePrintBatchTab\\\",\\\"error\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"activePrintBatchTab\\\",\\\"unsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"error-msg u-section\\\"],[8],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\" (\\\"],[1,[23,0,[\\\"activePrintBatchTab\\\",\\\"unsuccessful\\\",\\\"length\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width dispatch-print-batch-documents\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"colgroup\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__doc-no\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__ref\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__contact\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__telephone\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__waybill\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__packages\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"col\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__error\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"document number\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"waybill\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"error message\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"unsuccessfulDocumentRows\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"#\\\"],[1,[23,4,[\\\"docNo\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,4,[\\\"ref\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,4,[\\\"contact\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,4,[\\\"telephone\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,4,[\\\"waybill\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[23,4,[\\\"packages\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__message\\\"],[8],[1,[28,\\\"tt\\\",[[23,4,[\\\"message\\\"]]],[[\\\"translate\\\"],[[23,4,[\\\"translate\\\"]]]]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"printBatchTabs\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,3,[\\\"value\\\"]],[23,0,[\\\"activePrintBatchTabValue\\\"]]],null],\\\"u-display-none\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"dispatch/print-options/print-batch-tab\\\",[],[[\\\"@printBatchTab\\\",\\\"@printOptions\\\",\\\"@onClose\\\",\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@filters\\\",\\\"@dashData\\\",\\\"@summaryData\\\",\\\"@isDispatched\\\"],[[23,3,[]],[23,0,[]],[23,2,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@hasToggleIconRight\\\",\\\"@onSubmit\\\",\\\"@guideId\\\"],[\\\"fas fa-angle-double-right\\\",false,[23,18,[]],\\\"hide-print-sidebar\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,19,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"is-warning\\\",\\\"fas fa-sync-alt\\\",\\\"refresh\\\",[23,7,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,7,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@btnClassNames\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@icon\\\",\\\"@badge\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"is-primary\\\",[28,\\\"tt\\\",[\\\"print: {printedStatus}\\\"],[[\\\"printedStatus\\\"],[[28,\\\"tt\\\",[[23,0,[\\\"printedStatusTabLabel\\\"]]],null]]]],false,\\\"fas fa-print\\\",[23,0,[\\\"printAllBadge\\\"]],[28,\\\"or\\\",[[23,0,[\\\"isPrintAllDisabled\\\"]],[28,\\\"not\\\",[[23,0,[\\\"hasAnyToPrint\\\"]]],null],[23,19,[]]],null],[23,0,[\\\"printAllTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"printAllTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/print-options/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/processes-bar-container/component\", [\"exports\", \"ramda\", \"ember-concurrency\"], function (_exports, R, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: 'div',\n    classNames: [],\n    dispatch: Ember.inject.service(),\n    date: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    showProcessBar: true,\n    selectCustomDate: false,\n    isDispatchProcessModel: Ember.computed('steps.@each.code', function () {\n      const dispatchProcesses = this.steps || [];\n      return R.find(R.pathEq(['_data', 'code'], 'dispatched'))(dispatchProcesses);\n    }),\n    allowDispatchProcesses: Ember.computed('model.allowDispatchProcesses', function () {\n      if (this.model) {\n        return this.get('model.allowDispatchProcesses');\n      }\n      return true;\n    }),\n    /**\n     * Ask before moving every document in allDocumentsScope. Always true for selected documents.\n     * @param {Object} toDispatchProcess\n     * @returns {boolean}\n     */\n    confirmMoveAllDocuments(toDispatchProcess) {\n      if (!this.allDocumentsScope) {\n        return true;\n      }\n      const toDispatchProcessName = toDispatchProcess.getData('name');\n      const toDispatchProcessLabel = toDispatchProcess.getData('translate') ? this.intl.t(toDispatchProcessName) : toDispatchProcessName;\n      const msg = this.intl.t('are you sure you want to move all documents to dispatch process', {\n        count: this.allDocumentsScope.count,\n        dispatchProcess: toDispatchProcessLabel\n      });\n      return window.confirm(msg);\n    },\n    alertDocumentsNotMoved(moveResult) {\n      const rejected = moveResult?.rejected || [];\n      if (R.isEmpty(rejected)) {\n        return;\n      }\n      const rejectedRefs = R.pipe(R.pluck('ref'), R.join(', '))(rejected);\n      window.alert(this.intl.t('some documents could not be moved', {\n        count: rejected.length,\n        refs: rejectedRefs\n      }));\n    },\n    submitTask: (0, _emberConcurrency.task)(function* (step) {\n      // dispatchDateZ doesn't even exist here? the submit from the elements/steps-bar/step-node doesn't pass it?\n      const model = this.model || this.batch;\n      if (!this.confirmMoveAllDocuments(step)) {\n        return;\n      }\n      const moveResult = yield this.preSetDispatchProcessTask.perform({\n        model,\n        dispatchProcess: step\n      });\n      this.alertDocumentsNotMoved(moveResult);\n      if (this.onAfterSubmit) {\n        this.onAfterSubmit(model, step);\n      }\n      if (this.onRefresh) {\n        this.onRefresh(step);\n      }\n    }).drop(),\n    submitCustomDateTask: (0, _emberConcurrency.task)(function* (step, onCloseDialogAction, batchDispatchDateZ, batchDispatchDate) {\n      // const batchDispatchDateZ = this.get('batchDispatchDateZ')\n      const model = this.model || this.batch;\n      if (!this.confirmMoveAllDocuments(step)) {\n        return;\n      }\n      const moveResult = yield this.preSetDispatchProcessTask.perform({\n        model,\n        dispatchProcess: step,\n        dispatchDateZ: batchDispatchDateZ,\n        dispatchDate: batchDispatchDate\n      });\n      this.alertDocumentsNotMoved(moveResult);\n      if (this.onAfterSubmit) {\n        this.onAfterSubmit(model, step, batchDispatchDateZ);\n      }\n      if (this.onRefresh) {\n        const period = this.date.getPeriod(batchDispatchDateZ);\n        this.onRefresh(step, period);\n      }\n      onCloseDialogAction();\n    }).drop(),\n    preSetDispatchProcessTask: (0, _emberConcurrency.task)(function* ({\n      model,\n      dispatchProcess,\n      dispatchDateZ,\n      dispatchDate\n    }) {\n      this.set('preDispatchProcess', '');\n      const preDispatchShippingModal = this.settings.getProp('preDispatchShippingModal');\n      if (!this.hasPreDispatchDialog || !preDispatchShippingModal || dispatchProcess.getData('code') !== 'dispatched') {\n        this.set('preDispatchProcess', dispatchProcess);\n        return yield this.get('dispatch.setDispatchProcessTask').perform({\n          model,\n          allDocumentsScope: this.allDocumentsScope,\n          dispatchProcess,\n          dispatchDate,\n          dispatchDateZ\n        });\n      }\n      if (!this.allDocumentsScope && !R.is(Array, model) && dispatchProcess.getData('code') === 'dispatched') {\n        if (this.hasPreDispatchDialog) {\n          this.set('preDispatchProcess', dispatchProcess);\n          const onShowPreDispatchProcessDialog = this.onShowPreDispatchProcessDialog;\n          if (onShowPreDispatchProcessDialog) {\n            onShowPreDispatchProcessDialog(dispatchDateZ, dispatchDate);\n          }\n        }\n      }\n    }).drop(),\n    setIsDispatchedProcessTask: (0, _emberConcurrency.task)(function* ({\n      dispatchDate,\n      dispatchDateZ\n    }) {\n      const model = this.model || this.batch;\n      let dispatchProcess = this.preDispatchProcess;\n      if (!dispatchProcess) {\n        dispatchProcess = this.isDispatchProcessModel;\n      }\n      const results = yield this.get('dispatch.setDispatchProcessTask').perform({\n        model,\n        dispatchProcess,\n        dispatchDate,\n        dispatchDateZ\n      });\n      const onClosePreDispatchProcessDialog = this.onClosePreDispatchProcessDialog;\n      if (onClosePreDispatchProcessDialog) {\n        onClosePreDispatchProcessDialog();\n      }\n      if (this.onAfterSubmit) {\n        this.onAfterSubmit(model, dispatchProcess, dispatchDateZ);\n      }\n      if (this.onRefresh) {\n        const period = this.date.getPeriod(dispatchDateZ);\n        this.onRefresh(dispatchProcess, period, true);\n      }\n      return results;\n    }).drop(),\n    onToggleModalDialog() {\n      this.set('showProcessBar', false);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onToggleModalDialog\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onToggleModalDialog\"), _obj), _obj));\n});","define(\"client/pods/components/dispatch/processes-bar-container/processes-bar/component\", [\"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 = Ember.Component.extend({\n    tagName: 'span'\n  });\n});","define(\"client/pods/components/dispatch/processes-bar-container/processes-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cqHXJAh5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"step\\\",\\\"index\\\",\\\"onSubmitStepAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/steps-bar\\\",null,[[\\\"tagName\\\",\\\"isVertical\\\",\\\"customBar\\\",\\\"disabled\\\",\\\"selected\\\",\\\"steps\\\",\\\"isRunning\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\",\\\"selectedIsEmptyWhen\\\",\\\"onSubmit\\\"],[\\\"span\\\",[24,[\\\"isVertical\\\"]],true,[24,[\\\"disabled\\\"]],[24,[\\\"selected\\\"]],[24,[\\\"steps\\\"]],[28,\\\"or\\\",[[24,[\\\"onSubmitCustomDateTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]]],null],[24,[\\\"stepValueParam\\\"]],[24,[\\\"stepLabelParam\\\"]],[24,[\\\"selectedIsEmptyWhen\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSubmitTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"steps\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"code\\\"]],[24,[\\\"constants\\\",\\\"dispatchProcess\\\",\\\"dispatched\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"elements/steps-bar/step-node\\\",null,[[\\\"disabled\\\",\\\"step\\\",\\\"index\\\",\\\"selected\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\",\\\"selectedIsEmptyWhen\\\",\\\"customStepLabel\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,1,[]],[23,2,[]],[24,[\\\"selected\\\"]],[24,[\\\"stepValueParam\\\"]],[24,[\\\"stepLabelParam\\\"]],\\\"unprepared\\\",true,[28,\\\"perform\\\",[[24,[\\\"onSubmitTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"step-node__label\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",false],[3,\\\"action\\\",[[23,0,[]],[23,3,[]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[23,1,[\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasDispatchStatus\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"dispatchDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[true,[28,\\\"hash\\\",null,[[\\\"title\\\",\\\"component\\\",\\\"loadInstructions\\\"],[\\\"dispatch\\\",\\\"dispatch/tab-container\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"dateZ\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"dispatchDateZ\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"dispatchDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isDispatched\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\"],[\\\"far fa-calendar-alt u-v-align-top\\\",\\\"step-node__btn\\\",[24,[\\\"disabled\\\"]],true,false,[24,[\\\"selectCustomDate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"selectCustomDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\"],[\\\"select dispatch date\\\",[22,\\\"selectCustomDate\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"selectCustomDate\\\"]]],null]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/date-picker\\\",null,[[\\\"dateZ\\\",\\\"onSelectDate\\\"],[[24,[\\\"batchDispatchDateZ\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSubmitCustomDateTask\\\"]],[23,1,[]],[23,5,[]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\"],[\\\"far fa-calendar-alt u-v-align-top\\\",\\\"step-node__btn\\\",[24,[\\\"disabled\\\"]],true,false,[24,[\\\"selectCustomDate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"selectCustomDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\"],[\\\"select dispatch date\\\",[22,\\\"selectCustomDate\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"selectCustomDate\\\"]]],null]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/date-picker\\\",null,[[\\\"dateZ\\\",\\\"onSelectDate\\\"],[[24,[\\\"batchDispatchDateZ\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSubmitCustomDateTask\\\"]],[23,1,[]],[23,4,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/steps-bar/step-node\\\",null,[[\\\"disabled\\\",\\\"step\\\",\\\"index\\\",\\\"selected\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\",\\\"selectedIsEmptyWhen\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,1,[]],[23,2,[]],[24,[\\\"selected\\\"]],[24,[\\\"stepValueParam\\\"]],[24,[\\\"stepLabelParam\\\"]],\\\"unprepared\\\",[28,\\\"perform\\\",[[24,[\\\"onSubmitTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/processes-bar-container/processes-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/processes-bar-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kby/f7ap\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[14,1,[[24,[\\\"setIsDispatchedProcessTask\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"allowDispatchProcesses\\\"]],[24,[\\\"showProcessBar\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@modalContentClassNames\\\",\\\"@onToggleModalDialog\\\"],[true,\\\"is-list-btn\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/processes-bar-container/processes-bar\\\",null,[[\\\"isVertical\\\",\\\"model\\\",\\\"isSelected\\\",\\\"selected\\\",\\\"disabled\\\",\\\"steps\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\",\\\"onSubmitTask\\\",\\\"onSubmitCustomDateTask\\\",\\\"selectCustomDate\\\"],[[24,[\\\"isVertical\\\"]],[24,[\\\"model\\\"]],[24,[\\\"isSelected\\\"]],[24,[\\\"selected\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"steps\\\"]],[24,[\\\"stepValueParam\\\"]],[24,[\\\"stepLabelParam\\\"]],[24,[\\\"submitTask\\\"]],[24,[\\\"submitCustomDateTask\\\"]],[24,[\\\"selectCustomDate\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/processes-bar-container/processes-bar\\\",null,[[\\\"model\\\",\\\"isVertical\\\",\\\"isSelected\\\",\\\"selected\\\",\\\"steps\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\",\\\"onSubmitTask\\\",\\\"onSubmitCustomDateTask\\\",\\\"selectCustomDate\\\"],[[24,[\\\"model\\\"]],[24,[\\\"isVertical\\\"]],[24,[\\\"isSelected\\\"]],[24,[\\\"selected\\\"]],[24,[\\\"steps\\\"]],[24,[\\\"stepValueParam\\\"]],[24,[\\\"stepLabelParam\\\"]],[24,[\\\"submitTask\\\"]],[24,[\\\"submitCustomDateTask\\\"]],[24,[\\\"selectCustomDate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/processes-bar-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/processes-editor/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, R, RA, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.nextCustomProcessIndex = nextCustomProcessIndex;\n  var _dec, _obj;\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  /**\n   * Next display index for a new custom dispatch process.\n   * Missing menu is treated as empty so new-editor init does not throw.\n   * @param {Object[]|undefined} list - processes menu rows, or missing\n   * @param {Object} [list[]._data] - row payload\n   * @param {string} [list[]._data._key] - saved custom-step key; omitted on synthetic rows\n   * @param {number} [list[]._data.index] - current display index of that row\n   * @return {number} last keyed custom index plus one, or 0 when none\n   */\n  function nextCustomProcessIndex(list) {\n    const menu = list || [];\n    const onlyCustomSteps = R.filter(R.hasPath(['_data', '_key']))(menu);\n    const lastStep = R.last(onlyCustomSteps);\n    if (!lastStep) {\n      return 0;\n    }\n    return lastStep?._data?.index + 1;\n  }\n  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    dispatchService: Ember.inject.service('dispatch'),\n    shopsList: '',\n    fetchSpecsTask: (0, _emberConcurrency.task)(function* () {\n      const specsCollection = yield this.dispatchService.fetchSpecsTask.perform();\n      this.set('specsCollection', specsCollection);\n      return specsCollection;\n    }),\n    /**\n     * Build the dirty process model for create or edit.\n     * New custom processes take the next index from `list` (empty when missing).\n     * @return {void}\n     */\n    init() {\n      this.crud.addLists(this, ['paymentMethods', 'dispatch/lists/export-file-type']);\n      this._super(...arguments);\n      const isEditing = this.isEditing;\n      const model = this.model;\n      if (isEditing) {\n        const dirty = this.crud.setupDirty({\n          adapterName: 'dispatch/lists/processes',\n          model\n        });\n        dirty.set('isPartial', true);\n        const exportFileType = dirty.getData('exportFileType');\n        const exportFileTypeLabel = dirty.getData('exportFileType');\n        if (RA.isNilOrEmpty(exportFileType) || RA.isNilOrEmpty(exportFileTypeLabel)) {\n          dirty.setData('exportFileType', 'xlsx');\n          dirty.setData('exportFileTypeLabel', 'xlsx');\n        }\n        this.set('dirty', dirty);\n      } else {\n        let data = {};\n        if (model) {\n          data = model.serialize();\n        }\n        const newModel = this.crud.setupNewRecord({\n          adapterName: 'dispatch/lists/processes'\n        });\n        newModel.populate(data);\n        const exportFileType = newModel.getData('exportFileType');\n        const exportFileTypeLabel = newModel.getData('exportFileType');\n        if (RA.isNilOrEmpty(exportFileType) || RA.isNilOrEmpty(exportFileTypeLabel)) {\n          newModel.setData('exportFileType', 'xlsx');\n          newModel.setData('exportFileTypeLabel', 'xlsx');\n        }\n        this.set('dirty', newModel);\n        if (!newModel.getData('isSystemProcess')) {\n          const nextIndex = nextCustomProcessIndex(this.list);\n          newModel.setData('index', nextIndex);\n        }\n      }\n      this.fetchSpecsTask.perform();\n    },\n    afterCreateRecordTask() {\n      this.onCloseDialogAction();\n    },\n    afterReplaceRecordTask(/*updatedDispatchProcessModel*/\n    ) {\n      const onRefresh = this.onRefresh;\n      if (onRefresh) {\n        onRefresh(this.model);\n      }\n      this.onCloseDialogAction();\n    },\n    afterRemoveRecordTask() {\n      this.onCloseDialogAction();\n    },\n    actions: {\n      cancel(model) {\n        if (this.isEditing) {\n          this.crud.cancelEditing({\n            adapterName: 'dispatch/lists/processes',\n            dirty: model\n          });\n        }\n        this.onCloseDialogAction();\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"afterReplaceRecordTask\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"afterReplaceRecordTask\"), _obj), _obj));\n});","define(\"client/pods/components/dispatch/processes-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6cUGfvFm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"dirty\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"dispatch-processes-btn\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"dispatch-processes\\\",[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"basic_group\\\",[23,1,[]],\\\"basic settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\",\\\"isRequired\\\"],[\\\"process_order\\\",[24,[\\\"errors\\\"]],\\\"index\\\",\\\"dispatch\\\",[28,\\\"not\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isSystemProcess\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"isRequired\\\",\\\"context\\\",\\\"value\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isSystemProcess\\\"]],[28,\\\"not\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isSystemProcess\\\"]]],null],\\\"index\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"index\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\",\\\"isRequired\\\"],[\\\"name\\\",[24,[\\\"errors\\\"]],\\\"name\\\",\\\"dispatch\\\",[28,\\\"not\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isSystemProcess\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"readonly\\\",\\\"isRequired\\\",\\\"context\\\",\\\"value\\\"],[true,[28,\\\"or\\\",[[24,[\\\"hasProcessCount\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isSystemProcess\\\"]]],null],[28,\\\"not\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isSystemProcess\\\"]]],null],\\\"name\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"public status\\\",[24,[\\\"errors\\\"]],\\\"publicStatus\\\",\\\"dispatch\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"placeholder\\\",\\\"value\\\"],[\\\"optional\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"publicStatus\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"dispatch\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"allow e-invoices to be issued\\\",[23,6,[]],\\\"allowEInvoices\\\",[23,0,[\\\"dirty\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"toggleValue\\\",\\\"disabled\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"allowEInvoices\\\"]],[28,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isDispatched\\\"]],true,false],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"allow printing of waybills\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"allowPrintAllWaybills\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"export/worksheet/editor\\\",[],[[\\\"@model\\\",\\\"@onFetchSpecsTask\\\",\\\"@specsCollection\\\",\\\"@source\\\",\\\"@hideSortBy\\\",\\\"@formInitData\\\"],[[23,0,[\\\"dirty\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchSpecsTask\\\"]]],null],[23,0,[\\\"specsCollection\\\"]],\\\"dispatch\\\",true,[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"export file format\\\",[24,[\\\"errors\\\"]],\\\"exportFormat\\\",\\\"dispatch\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-export-file-type\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"exportFileType\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"exportFileTypeLabel\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isSystemProcess\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"dirty\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-btn--cancel\\\",[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[24,[\\\"hasProcessCount\\\"]],[23,0,[\\\"dirty\\\",\\\"isSystemProcess\\\"]]],null],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],\\\"delete\\\",[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"dispatch/lists/processes\\\",[23,0,[]],[23,0,[\\\"dirty\\\"]],[24,[\\\"onCloseDialogAction\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[23,0,[\\\"dirty\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"dirty\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save\\\",[22,\\\"disabled\\\"],[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[]],\\\"dispatch/lists/processes\\\",[23,0,[\\\"dirty\\\"]],[23,0,[\\\"afterReplaceRecordTask\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save\\\",[22,\\\"disabled\\\"],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[]],\\\"dispatch/lists/processes\\\",[23,0,[\\\"dirty\\\"]],[24,[\\\"onCloseDialogAction\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,0,[\\\"dirty\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/processes-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/processes-item-dispatched/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    classNameBindings: ['isSelected:is-selected'],\n    isSelected: Ember.computed('sidebarSelection.periodDate', 'result.date', function () {\n      const selectedDate = this.get('sidebarSelection.periodDate') || '';\n      if (!selectedDate) {\n        return false;\n      }\n      return selectedDate === this.get('result.date');\n    }),\n    dispatchProcessCountComputed: Ember.computed('dispatchProcessesByCount._data.processes.[]', 'dateZ', function () {\n      const dispatchProcessesByCount = this.dispatchProcessesByCount;\n      if (dispatchProcessesByCount) {\n        const code = this.get('dateZ');\n        const count = R.pathOr(0, ['_data', code, 'count'])(dispatchProcessesByCount);\n        return Number(count);\n      }\n      return 0;\n    }),\n    click() {\n      if (this.onSubmit) {\n        this.onSubmit();\n      }\n    }\n  });\n});","define(\"client/pods/components/dispatch/processes-item-dispatched/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lmyOlZ1G\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isToday\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-process-row__hit\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__count\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"dispatchProcessCountComputed\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__badge \\\",[28,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"index\\\"]],0],null],\\\"u-badge--gray\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"dispatchProcessCountComputed\\\"],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__name\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"dispatch/sidebar-name\\\",[],[[\\\"@label\\\"],[[28,\\\"concat\\\",[[24,[\\\"result\\\",\\\"mm\\\"]],\\\"/\\\",[24,[\\\"result\\\",\\\"dd\\\"]],\\\" (\\\",[28,\\\"tt\\\",[[24,[\\\"result\\\",\\\"weekday\\\"]]],null],\\\")\\\"],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"list-results__item-header-end\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__flags\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@iconClassName\\\",\\\"@tooltipLabel\\\",\\\"@clickToView\\\"],[\\\"fas fa-print\\\",\\\"element-icon--s\\\",\\\"allow printing of waybills\\\",false]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__edit-slot\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/processes-item-dispatched/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/processes-item-waybills-seven-eleven/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: '',\n    dispatchProcessCount: Ember.computed('dispatchProcessesByCount._data.processes.[]', 'dispatchProcess._data.code', function () {\n      const dispatchProcessesByCount = this.dispatchProcessesByCount;\n      if (dispatchProcessesByCount) {\n        const code = this.get('dispatchProcess._data.code');\n        return R.pathOr(0, ['_data', code, 'count'])(dispatchProcessesByCount);\n      }\n      return 0;\n    }),\n    isEditable: Ember.computed('dispatchProcess._data._key', 'dispatchProcessCount', function () {\n      if (this.get('dispatchProcess._data._key')) {\n        return true;\n      }\n      return false;\n    }),\n    badgeClassNames: Ember.computed('waybillProcessReport', function () {\n      const waybillProcessReport = this?.waybillProcessReport || [];\n      const daysDanger = 2;\n      const docCountMoreThanDays = R.pipe(R.map(data => {\n        return R.pipe(R.propOr([], 'groupedByDaysOld'), R.filter(data => R.gt(data.daysOld, daysDanger)), R.pluck('total'), R.reject(RA.isNilOrEmpty), R.sum)(data);\n      }), R.sum)(waybillProcessReport);\n      if (docCountMoreThanDays > 0) {\n        return '';\n      }\n      return 'element-btn__badge-light';\n    }),\n    waybillProcessReportCount: Ember.computed('waybillProcessReport.@each.docCount', function () {\n      const waybillProcessReport = this?.waybillProcessReport || [];\n      return R.pipe(R.map(R.propOr(0, 'docCount')), R.sum)(waybillProcessReport);\n    }),\n    hasWaybillProcessReportCount: Ember.computed('waybillProcessReportCount', function () {\n      const waybillProcessReportCount = this.waybillProcessReportCount || 0;\n      if (waybillProcessReportCount > 0) {\n        return true;\n      }\n      return false;\n    }),\n    waybillProcessReport: Ember.computed('report', 'waybillProcessModel', function () {\n      const report = this?.report || {};\n      const waybillProcessModel = this?.waybillProcessModel || {};\n      const type = waybillProcessModel?.value || '';\n      if (type && RA.isNotNilOrEmpty(report)) {\n        return report[type];\n      }\n      return false;\n    }),\n    isSelected: Ember.computed('sidebarSelection.waybillStatus', 'sidebarSelection.waybillLastStatus', 'waybillProcessModel.value', function () {\n      const selectedStatus = this.get('sidebarSelection.waybillStatus') || '';\n      const selectedLastStatus = this.get('sidebarSelection.waybillLastStatus') || '';\n      if (!selectedStatus || selectedLastStatus) {\n        return false;\n      }\n      return selectedStatus === (this.waybillProcessModel?.value || '');\n    }),\n    isDispatchedWaybills: Ember.computed('waybillProcessModel.value', function () {\n      const value = this?.waybillProcessModel?.value || '';\n      if (value === 'shipped' || value === 'returns') {\n        return true;\n      }\n      return false;\n    }),\n    displayWaybillProxy({\n      waybillLastStatus = '',\n      daysOld = ''\n    }) {\n      // The status row is a heading when milestones are listed. Milestone rows still open.\n      if (this.isDispatchedWaybills && RA.isNilOrEmpty(waybillLastStatus)) {\n        return;\n      }\n      this.onDisplayWaybill({\n        waybillProcess: this.waybillProcessModel,\n        waybillLastStatus,\n        daysOld\n      });\n    }\n  }, _applyDecoratedDescriptor(_obj, \"displayWaybillProxy\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"displayWaybillProxy\"), _obj), _obj));\n});","define(\"client/pods/components/dispatch/processes-item-waybills-seven-eleven/last-milestone/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, R, RA, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 DispatchProcessesItemWaybillsSevenElevenLastMilestone = _exports.default = (_dec = Ember.inject.service, _class = class DispatchProcessesItemWaybillsSevenElevenLastMilestone extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _defineProperty(this, \"daysDangerObject\", {\n        shipped: {\n          waybillCreated: 1,\n          readyForPickupAtDestination: 2,\n          addressChangeRequired: 0\n        },\n        returns: {\n          waybillCreated: 1,\n          readyForPickupAtReturnDestination: 0,\n          addressChangeRequired: 0\n        }\n      });\n    }\n    get badgeClassNames() {\n      const daysDangerObject = this.daysDangerObject;\n      const waybillProcessType = this?.args?.waybillProcessType || '';\n      const milestoneData = this?.args?.milestoneData || {};\n      const lastMilestone = milestoneData?.lastMilestone || '';\n      let daysDanger = 0;\n      if (waybillProcessType && lastMilestone) {\n        daysDanger = R_.dotPathOr(0, 'waybillProcessType.lastMilestone')(daysDangerObject);\n      }\n      const docCountMoreThanDays = R.pipe(R.propOr([], 'groupedByDaysOld'), R.filter(data => R.gt(data.daysOld, daysDanger)), R.pluck('total'), R.reject(RA.isNilOrEmpty), R.sum)(milestoneData);\n      if (docCountMoreThanDays > 0) {\n        return '';\n      }\n      return 'element-btn__badge-light';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/dispatch/processes-item-waybills-seven-eleven/last-milestone/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DtbtFRw5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"daysOldGroup\\\",\\\"@milestoneData\\\",\\\"@sidebarSelection\\\",\\\"@waybillProcessType\\\",\\\"@onSubmit\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"lastMilestone\\\"]],\\\"readyForPickupAtDestination\\\"],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[\\\"newGroupedByDaysOld\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"list-results__item dispatch-process-row \\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,3,[\\\"waybillStatus\\\"]],[23,4,[]]],null],[28,\\\"eq\\\",[[23,3,[\\\"waybillLastStatus\\\"]],[23,2,[\\\"lastMilestone\\\"]]],null],[28,\\\"eq\\\",[[23,3,[\\\"daysOld\\\"]],[23,1,[\\\"daysOld\\\"]]],null]],null],\\\"is-selected\\\"],null]]]],[12,\\\"role\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,5,[]],[28,\\\"hash\\\",null,[[\\\"waybillLastStatus\\\",\\\"daysOld\\\"],[[23,2,[\\\"lastMilestone\\\"]],[23,1,[\\\"daysOld\\\"]]]]]],null]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item-header\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__count\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"total\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__badge \\\",[23,0,[\\\"badgeClassNames\\\"]]]]],[8],[0,\\\"\\\\n              \\\"],[1,[23,1,[\\\"total\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__name\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"dispatch/sidebar-name\\\",[],[[\\\"@label\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"shippingStatus_\\\",[23,2,[\\\"lastMilestone\\\"]]],null]],null],\\\" (\\\",[28,\\\"tt\\\",[[23,1,[\\\"daysOld\\\"]]],null],\\\")\\\"],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,2,[\\\"lastMilestone\\\"]],[23,0,[\\\"constants\\\",\\\"shippingStatus\\\",\\\"waybillCreated\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"list-results__item dispatch-process-row \\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,3,[\\\"waybillStatus\\\"]],[23,4,[]]],null],[28,\\\"eq\\\",[[23,3,[\\\"waybillLastStatus\\\"]],[23,2,[\\\"lastMilestone\\\"]]],null],[28,\\\"not\\\",[[23,3,[\\\"daysOld\\\"]]],null]],null],\\\"is-selected\\\"],null]]]],[12,\\\"role\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,5,[]],[28,\\\"hash\\\",null,[[\\\"waybillLastStatus\\\"],[[23,2,[\\\"lastMilestone\\\"]]]]]],null]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item-header\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__count\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"docCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__badge \\\",[23,0,[\\\"badgeClassNames\\\"]]]]],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"docCount\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__name\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"dispatch/sidebar-name\\\",[],[[\\\"@label\\\"],[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"shippingStatus_\\\",[23,2,[\\\"lastMilestone\\\"]]],null]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/processes-item-waybills-seven-eleven/last-milestone/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/processes-item-waybills-seven-eleven/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0HZ9PV1X\",\n    \"block\": \"{\\\"symbols\\\":[\\\"groupData\\\",\\\"@waybillProcessModel\\\",\\\"@sidebarSelection\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"showBtnForStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"list-results__item dispatch-process-row \\\",[28,\\\"if\\\",[[23,0,[\\\"isDispatchedWaybills\\\"]],\\\"disabled\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[12,\\\"role\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"displayWaybillProxy\\\"]],[28,\\\"hash\\\",null,[[\\\"waybillLastStatus\\\"],[\\\"\\\"]]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item-header\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__count\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasWaybillProcessReportCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__badge \\\",[23,0,[\\\"badgeClassNames\\\"]]]]],[8],[0,\\\"\\\\n            \\\"],[1,[23,0,[\\\"waybillProcessReportCount\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__name\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"dispatch/sidebar-name\\\",[],[[\\\"@label\\\"],[[28,\\\"tt\\\",[[23,2,[\\\"label\\\"]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isDispatchedWaybills\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"waybillProcessReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"dispatch/processes-item-waybills-seven-eleven/last-milestone\\\",[],[[\\\"@waybillProcessType\\\",\\\"@milestoneData\\\",\\\"@sidebarSelection\\\",\\\"@onSubmit\\\"],[[23,2,[\\\"value\\\"]],[23,1,[]],[23,3,[]],[23,0,[\\\"displayWaybillProxy\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/processes-item-waybills-seven-eleven/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/processes-item/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    dispatchProcessCount: Ember.computed('dispatchProcessesByCount._data.processes.[]', 'dispatchProcess._data.code', function () {\n      const dispatchProcessesByCount = this.dispatchProcessesByCount;\n      if (dispatchProcessesByCount) {\n        const code = this.get('dispatchProcess._data.code');\n        return R.pathOr(0, ['_data', code, 'count'])(dispatchProcessesByCount);\n      }\n      return 0;\n    }),\n    isSelected: Ember.computed('sidebarSelection.processCode', 'dispatchProcess._data.code', function () {\n      const selectedCode = this.get('sidebarSelection.processCode') || '';\n      if (!selectedCode) {\n        return false;\n      }\n      return selectedCode === this.get('dispatchProcess._data.code');\n    }),\n    hasProcessCount: Ember.computed('dispatchProcess._data._key', 'dispatchProcessCount', function () {\n      if (this.dispatchProcessCount > 0) {\n        return true;\n      }\n      return false;\n    }),\n    mustShow: Ember.computed('dispatchProcess.isDeleted', 'dispatchProcess._data._key', 'dispatchProcessCount', 'hasProcessCount', function () {\n      const isDeleted = R.pathEq(['dispatchProcess', 'isDeleted'], true)(this);\n      // Deleted with leftover docs must stay visible (warning) so users can move them out.\n      if (isDeleted && !this.hasProcessCount) {\n        return true;\n      }\n      const hideIfEmpty = R.pathEq(['dispatchProcess', '_data', 'hideIfEmpty'], true)(this);\n      if (hideIfEmpty && !this.hasProcessCount) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/dispatch/processes-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"89M1qbul\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"mustShow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"list-results__item dispatch-process-row dispatch-process-row--split \\\",[28,\\\"unless\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"dispatch-process-row--no-edit\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"dispatch-process-row__hit\\\"],[12,\\\"role\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[24,[\\\"onSubmit\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__count\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasProcessCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__badge\\\"],[8],[1,[22,\\\"dispatchProcessCount\\\"],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item-header\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__name\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"dispatchProcess\\\",\\\"isDeleted\\\"]],[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"isDangling\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"iconClassName\\\"],[\\\"fas fa-exclamation-triangle\\\",\\\"has-text-warning\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[5,\\\"dispatch/sidebar-name\\\",[],[[\\\"@label\\\"],[[28,\\\"tt\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]]]]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"allowEInvoices\\\"]],[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"allowPrintAllWaybills\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"list-results__item-header-end\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__flags\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"allowEInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@iconClassName\\\",\\\"@tooltipLabel\\\",\\\"@clickToView\\\"],[\\\"fas fa-file-invoice-dollar\\\",\\\"element-icon--s\\\",\\\"allow e-invoices to be issued\\\",false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"allowPrintAllWaybills\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@iconClassName\\\",\\\"@tooltipLabel\\\",\\\"@clickToView\\\"],[\\\"fas fa-print\\\",\\\"element-icon--s\\\",\\\"allow printing of waybills\\\",false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__edit-slot\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"btnClassNames\\\",\\\"closeOnOverlayClick\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"fas fa-cog\\\",\\\"element-btn--plain\\\",false,[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]],[28,\\\"if\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]],true,false],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"dispatch/processes-editor\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"hasProcessCount\\\",\\\"onCloseDialogAction\\\",\\\"isEditing\\\",\\\"onRefresh\\\"],[\\\"dispatch/lists/processes\\\",[24,[\\\"dispatchProcess\\\"]],[24,[\\\"hasProcessCount\\\"]],[23,1,[]],true,[24,[\\\"onRefresh\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/processes-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/search-filters/component\", [\"exports\", \"client/mixins/contacts-list-by\", \"client/mixins/crud\"], function (_exports, _contactsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _contactsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/filters/search', 'contacts/lists/filters/relationships', 'contacts/lists/filters/status', 'contacts/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n    }\n  });\n});","define(\"client/pods/components/dispatch/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CF5DiCWD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-filters-sort\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-statuses\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.documentStatus\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/sidebar-name/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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   * Truncated dispatch sidebar label. Hover shows the full text only when it is cut off.\n   */\n  let DispatchSidebarName = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _class = class DispatchSidebarName extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isLabelTruncated\", _descriptor, this);\n    }\n    checkIsLabelTruncated(event) {\n      const labelElement = event.currentTarget;\n      this.isLabelTruncated = labelElement.scrollWidth > labelElement.clientWidth;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isLabelTruncated\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"checkIsLabelTruncated\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"checkIsLabelTruncated\"), _class.prototype), _class);\n});","define(\"client/pods/components/dispatch/sidebar-name/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mwIkDkcG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@label\\\"],\\\"statements\\\":[[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"dispatch-sidebar__name-text\\\"],[3,\\\"on\\\",[\\\"mouseenter\\\",[23,0,[\\\"checkIsLabelTruncated\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[1,[23,2,[]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\"],[true,false,[23,1,[]],[28,\\\"and\\\",[[23,2,[]],[23,0,[\\\"isLabelTruncated\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[23,2,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/sidebar-name/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/dispatch/tab-container/component\", [\"exports\", \"ramda\", \"client/mixins/crud\", \"client/mixins/date\", \"ember-concurrency\", \"ember-concurrency-decorators\", \"client/pods/dispatch/model\", \"client/utils/nventor\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, R, _crud, _date, _emberConcurrency, _emberConcurrencyDecorators, _model, _nventor, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.applyDispatchSettingsSort = applyDispatchSettingsSort;\n  _exports.default = void 0;\n  var _obj;\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  /**\n   * Apply merchant Dispatch Sort By settings onto search filters.\n   * Clear resets dateHeaderValue to dateZ; Search uses settings instead.\n   * Call this after reset so Clear requests the same sort as Search / first load.\n   * @param {Object} filters - dispatch search filters model\n   * @param {Function} filters.setData - write a filters field\n   * @param {Function} filters.addSortNoModel - append a plain-object sort entry\n   * @param {Object} options - settings sort and grouping\n   * @param {string} options.sortBy - settings dispatchFiltersSortBy (eg: timestampZ_latest)\n   * @param {string} options.sortByDirection - settings dispatchFiltersSortByDirection (ASC or DESC)\n   * @param {boolean} [options.groupDocumentsByTransporter=false] - prepend transporter sort keys\n   * @param {Object} [options.sortByDefault] - dispatch-sort list row for sortBy\n   * @param {Object} [options.sortByDefault._data] - list row payload\n   * @param {string} [options.sortByDefault._data.value] - dateHeaderValue to store\n   * @param {string} [options.sortByDefault._data.label] - dateHeaderLabel to store\n   * @return {undefined}\n   */\n  function applyDispatchSettingsSort(filters, options) {\n    const sortBy = options.sortBy;\n    const sortByDirection = options.sortByDirection;\n    const groupDocumentsByTransporter = options.groupDocumentsByTransporter;\n    const sortByDefault = options.sortByDefault;\n    filters.setData('sort', []);\n    if (groupDocumentsByTransporter) {\n      filters.addSortNoModel('transporterLabel', 'ASC');\n      filters.addSortNoModel('transporterAccount', 'ASC');\n      filters.addSortNoModel('transporterAccountNumber', 'ASC');\n    }\n    filters.addSortNoModel(sortBy, sortByDirection);\n    const dateHeaderValue = sortByDefault?._data?.value || sortBy;\n    const dateHeaderLabel = sortByDefault?._data?.label;\n    filters.setData('dateHeaderValue', dateHeaderValue);\n    filters.setData('dateHeaderLabel', dateHeaderLabel);\n  }\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, (_obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    dispatch: Ember.inject.service(),\n    settingsService: Ember.inject.service('settings'),\n    transporterService: Ember.inject.service('transporter'),\n    model: null,\n    errors: null,\n    unprepared: null,\n    adapterName: 'dispatch',\n    results: null,\n    count: 20,\n    page: 1,\n    dispatchSortByListName: 'dispatchSortBy',\n    showDetails: true,\n    showSideBar: true,\n    showPrintSidebar: true,\n    dispatchPanelNeedsRefresh: false,\n    showRules: false,\n    showSevenElevenSideBar: false,\n    filtersAdapterName: 'documents/dispatch/filters',\n    resultsUpdated: '',\n    selectedTransporterExtension: '',\n    init() {\n      this._super(...arguments);\n      this.set('rowSelectionRevision', 0);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      this.set('results', []);\n      this.crud.addLists(this, ['dispatch/lists/menu', 'dispatch/lists/print-all-sub-panels', 'dispatch/lists/processes', 'dispatch/lists/processes/menu', 'dispatch/lists/processes/menu/waybills/seven-eleven', 'dispatch/lists/filters/dispatchstatuses', 'dispatch/lists/filters/sort', 'paymentMethods', 'paymentTerms', 'contacts/lists/tags', 'contacts/transporters', 'filters/count', 'filters/sortDirection', 'transporter', 'extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time', 'extensions/apps/tw/seven-eleven/lists/thermosphere', 'extensions/apps/tw/payuni-seven-eleven/accounts', 'extensions/apps/tw/payuni-seven-eleven/type', 'dispatch/lists/dispatch-sort']);\n      const pastDays = this.getPastDays(7);\n      this.set('pastDays', pastDays);\n      this.set('today', this.getPeriod(this.getToday()));\n      const groupDocumentsByTransporter = this.settingsService.getProp('groupDocumentsByTransporter');\n      this.set('groupDocumentsByTransporter', groupDocumentsByTransporter);\n      const sevenEleven = this.get('constants.transporterExtensions.sevenEleven');\n      const payuniSevenEleven = this.get('constants.transporterExtensions.payuniSevenEleven');\n      this.set('sevenElevenProviders', [sevenEleven, payuniSevenEleven]);\n      yield this.loadTabTask.perform();\n      yield this.fetchTransportersTask.perform();\n    }),\n    didInsertElement() {\n      this._super(...arguments);\n      this.fetchByProcessesCountTask.perform();\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const dateZ = loadInstructions.getData('find.dateZ');\n        yield this.displayDispatchedTask.perform({\n          dateZ\n        });\n        return true;\n      }\n      return false;\n    }),\n    todayLabel: Ember.computed('today.dateZ', function () {\n      const dateZ = this.today?.dateZ ?? this.dateService.getStartOfDayZ();\n      const intl = this.intl;\n      return intl.t('dispatched') + ': ' + this.formatDate(dateZ, 'MM/DD') + ' (' + intl.t('today') + ')';\n    }),\n    todayDispatchCount: Ember.computed('dispatchProcessesByCount.synced', function () {\n      const todayZ = this.dateService.getStartOfDayZ();\n      const count = R.path(['dispatchProcessesByCount', '_data', todayZ, 'count'])(this) || 0;\n      return count;\n    }),\n    currentDispatchProcessLabel: Ember.computed('currentDispatchProcess', function () {\n      const intl = this.intl;\n      const currentDispatchProcess = this.currentDispatchProcess;\n      if (currentDispatchProcess) {\n        const name = currentDispatchProcess.getData('name');\n        if (currentDispatchProcess.getData('translate') === true) {\n          return intl.t(name);\n        }\n        return name;\n      }\n      return intl.t('undispatched');\n    }),\n    dispatchPrintSidebarCounts: Ember.computed('rowSelectionRevision', 'resultsProxy.@each.isSelected', 'filters._data.dispatchProcess', 'currentDispatchProcess._data.code', 'dashData.inView.{total,packagesByTransporterExtension}', function () {\n      const dispatchProcessCode = this.get('filters._data.dispatchProcess') ?? this.get('currentDispatchProcess._data.code') ?? '';\n      return this.dispatch.buildDispatchPrintSidebarCounts({\n        results: this.resultsProxy || [],\n        dispatchProcessCode,\n        dashData: this.dashData\n      });\n    }),\n    activeDispatchPanelSubTab: Ember.computed('tab.subTabs.@each.isActive', function () {\n      return this.tabsManager.getActiveSubTab(this.tab);\n    }),\n    activeDispatchPanelPeriod: Ember.computed('activeDispatchPanelSubTab.period', function () {\n      return this.activeDispatchPanelSubTab?.period;\n    }),\n    activeDispatchPanelIsDispatched: Ember.computed('activeDispatchPanelSubTab.isDispatched', function () {\n      return this.activeDispatchPanelSubTab?.isDispatched ?? false;\n    }),\n    dispatchProcessesMenu: Ember.computed('crud.lists.dispatch-lists-processes-menu.@each.isDeleted', 'crud.lists.dispatch-lists-processes-menu.@each.synced', 'dispatchProcessesByCount.synced', function () {\n      const list = R_.dotPath('crud.lists.dispatch-lists-processes-menu')(this) || [];\n      const dispatchProcessesByCount = this.dispatchProcessesByCount || {};\n\n      // Keep deleted rows that still have docs so others can open settings / move them out.\n      // Empty deleted rows stay hidden.\n      const existingDispatchProcesses = R.pipe(R.reject(row => {\n        if (row?.isDeleted !== true) {\n          return false;\n        }\n        const code = row?._data?.code;\n        const count = R.pathOr(0, ['_data', code, 'count'])(dispatchProcessesByCount);\n        return count <= 0;\n      }), R.sortWith([R.ascend(R.path(['_data', 'index']))]))(list);\n      if (RA.isNilOrEmpty(existingDispatchProcesses)) {\n        return existingDispatchProcesses;\n      }\n\n      // Orphan process codes still on docs but missing from the menu list.\n      const danglingDisapatchProcesses = R.pipe(R.pathOr([], ['_data', 'processes']), R.reject(dispatchProcessByCountData => {\n        if (dispatchProcessByCountData?.dispatchProcess === 'dispatched') {\n          return true;\n        }\n        const code = dispatchProcessByCountData.process;\n        return R.find(R.pathEq(['_data', 'code'], code))(existingDispatchProcesses);\n      }), R.map(dispatchProcessByCountData => {\n        const code = dispatchProcessByCountData.process;\n        const hideIfEmpty = R.propEq('hideIfEmpty', true)(dispatchProcessByCountData);\n        return this.crud.setupNewRecord({\n          adapterName: 'dispatch/lists/processes/menu',\n          data: {\n            code: code,\n            name: code,\n            hideIfEmpty,\n            isDangling: true,\n            isEditable: false,\n            isLocked: true,\n            translate: false\n          }\n        });\n      }))(dispatchProcessesByCount);\n      return R.concat(existingDispatchProcesses, danglingDisapatchProcesses);\n    }),\n    wakeCallJobsServerTask: (0, _emberConcurrency.task)(function* () {\n      // ANY SERVER JOBS CALL\n      return yield this.server.callJobs('GET', 'api/version', {});\n    }),\n    fetchByProcessesCountTask: (0, _emberConcurrency.task)(function* () {\n      const adapterName = 'dispatch/processes/count';\n      const dispatchProcessesByCount = yield this.findTask.perform({\n        adapterName\n      });\n      this.set('dispatchProcessesByCount', dispatchProcessesByCount);\n    }),\n    fetchSevenElevenData: (0, _emberConcurrency.task)(function* () {\n      this.set('showSevenElevenSideBar', true);\n      yield this.fetchOverviewTask.perform({\n        type: 'overview'\n      });\n    }),\n    fetchDispatchDataTask: (0, _emberConcurrency.task)(function* ({\n      dispatchProcess,\n      period,\n      filters\n    }) {\n      this.set('unpaginatedResults', []);\n      filters.setData('dispatchProcessesCriterias', dispatchProcess.getData('criterias'));\n      const code = dispatchProcess.getData('code');\n      filters.setData('dispatchProcess', code);\n      if (period) {\n        filters.setData('dispatchDate', period.date);\n        filters.setData('dispatchDateZ', period.dateZ);\n      } else {\n        filters.setData('dispatchDate', '');\n        filters.setData('dispatchDateZ', '');\n      }\n\n      // Hide isPos on dispatch\n      filters.setData('isPos', false);\n      const query = String(filters?.getData?.('query') ?? '').trim();\n      const searchSettings = {\n        adapterName: 'dispatch',\n        resultsProperty: '',\n        resultsToggle: '',\n        query,\n        filters,\n        component: this,\n        options: {\n          isPartial: true\n        }\n      };\n      return yield this._fetchDispatchDataTask.perform({\n        searchSettings,\n        propResults: 'results'\n      });\n    }),\n    _fetchDispatchDataTask: (0, _emberConcurrency.task)(function* ({\n      searchSettings,\n      propResults = 'results',\n      setResults = true\n    }) {\n      // @TODO: use POST?\n      // searchSettings.method = 'POST' // intentionally use POST to avoid payload size limit\n\n      searchSettings.method = 'POST';\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      if (setResults !== true) {\n        return results;\n      }\n      this.setResultsData(results, {\n        propResults\n      });\n      return results;\n    }),\n    fetchDispatchSummaryTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      filterData,\n      propDashData = 'dashData'\n    }) {\n      const summaryFilterData = filterData ?? filters.serialize();\n      const results = yield this.dispatch.fetchDispatchSummaryTask.perform({\n        filterData: summaryFilterData\n      });\n      this.setSummaryData(results, {\n        propDashData\n      });\n      return results;\n    }),\n    refreshDispatchPanelTask: (0, _emberConcurrency.task)(function* () {\n      yield this.refreshDispatchPanelDataTask.perform({\n        dispatchProcess: this.currentDispatchProcess,\n        period: this.activeDispatchPanelPeriod,\n        filters: this.filters\n      });\n    }),\n    refreshDispatchPanelDataTask: (0, _emberConcurrency.task)(function* ({\n      dispatchProcess,\n      period,\n      filters\n    }) {\n      yield (0, _emberConcurrency.all)([this.fetchDispatchDataTask.perform({\n        dispatchProcess,\n        period,\n        filters\n      }), this.fetchDispatchSummaryTask.perform({\n        filters\n      })]);\n      yield this.fetchByProcessesCountTask.perform();\n      this.set('dispatchPanelNeedsRefresh', false);\n    }),\n    // used for export\n    fetchUnpaginatedDispatchDataTask: (0, _emberConcurrency.task)(function* ({\n      dispatchProcess,\n      period,\n      setResults = true,\n      filters,\n      hidePrinted = '',\n      hasSelected = []\n    }) {\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.filters;\n      }\n      const listScopeFilters = this.dispatch.buildDispatchListScopeFilters({\n        filters,\n        dispatchProcess,\n        period\n      });\n      if (hidePrinted) {\n        listScopeFilters.hidePrinted = hidePrinted;\n      }\n      const externalIds = R.pipe(RA.ensureArray, R.map(selectedProxyModel => selectedProxyModel?.model?._data?.externalId || ''), R.reject(RA.isNilOrEmpty))(hasSelected);\n      if (RA.isNotNilOrEmpty(externalIds)) {\n        listScopeFilters.externalIds = externalIds;\n      }\n      const unpaginatedFilters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: listScopeFilters\n      });\n      const searchSettings = {\n        adapterName: 'dispatch',\n        resultsProperty: '',\n        resultsToggle: '',\n        query: '',\n        filters: unpaginatedFilters,\n        component: this,\n        serverType: 'jobs'\n      };\n      const q = [this._fetchDispatchDataTask.perform({\n        searchSettings,\n        propResults: 'unpaginatedResults',\n        setResults\n      }), this.fetchDispatchSummaryTask.perform({\n        filters: unpaginatedFilters,\n        propDashData: 'unpaginatedDashData'\n      })];\n      // no isPartial because this is used for print-all-dialog\n      const results = yield (0, _emberConcurrency.all)(q);\n      return results[0] ?? [];\n    }),\n    customSearchTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      filters\n    } = {}, query) {\n      adapterName = adapterName || this.adapterName;\n      filters.setData('query', query);\n      const searchSettings = {\n        adapterName,\n        filters,\n        query,\n        options: {\n          isPartial: true\n        }\n      };\n      const q = [this._fetchDispatchDataTask.perform({\n        searchSettings,\n        propResults: 'results'\n      }), this.fetchDispatchSummaryTask.perform({\n        filters\n      })];\n      yield (0, _emberConcurrency.all)(q);\n      return this.results;\n    }),\n    /**\n     * Refetch list + summary with current filters. Advanced filter submit clears the search bar\n     * query (same as crud searchAdvancedTask); dashboard-only refetches keep it.\n     * @param {Object} args\n     * @param {Object} args.filters\n     * @param {boolean} [args.clearQuery=true] - when true, drop text query before fetch\n     */\n    customAdvancedSearchTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      clearQuery = true\n    }) {\n      if (clearQuery) {\n        filters.setData('query', '');\n      }\n      const adapterName = this.adapterName;\n      const query = String(filters?.getData?.('query') ?? '').trim();\n      const searchSettings = {\n        adapterName,\n        filters,\n        query,\n        options: {\n          isPartial: true\n        }\n      };\n      const q = [this._fetchDispatchDataTask.perform({\n        searchSettings\n      }), this.fetchDispatchSummaryTask.perform({\n        filters\n      })];\n      yield (0, _emberConcurrency.all)(q);\n      return this.results;\n    }),\n    customResetSearchTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      lastSearchSettingsProperty = 'lastSearchSettings',\n      searchSettings\n    }) {\n      const results = yield this.customReloadSearchTask.perform({\n        filters,\n        lastSearchSettingsProperty,\n        searchSettings,\n        reset: true\n      });\n      return results;\n    }),\n    customReloadSearchTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      lastSearchSettingsProperty = 'lastSearchSettings',\n      searchSettings,\n      reset = false\n    }) {\n      if (reset) {\n        filters.reset({\n          resetExcludes: ['dispatchProcess', 'dispatchProcessesCriterias', 'dispatchDate', 'dispatchDateZ', 'status']\n        });\n        this.setFiltersDefaultSort(filters);\n      }\n\n      // if (RA.isNilOrEmpty(filters?._data?.sort) || reset) {\n      // \tthis.setFiltersDefaultSort(filters)\n      // }\n\n      yield this.customAdvancedSearchTask.perform({\n        filters\n      });\n    }),\n    paginateDispatchDataTask: (0, _emberConcurrency.task)(function* () {\n      // don't fetch summary again for pagination\n      const results = yield this.paginateSearchRecordsTask.perform(...arguments);\n      this.setResultsData(results);\n    }),\n    isDispatchedProcessModel: Ember.computed('crud.lists.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      const isDispatched = this.get('constants.dispatchProcess.dispatched');\n      return R.find(R.pathEq(['_data', 'code'], isDispatched), dispatchProcesses);\n    }),\n    isNotDispatchedProcessModel: Ember.computed('crud.lists.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes-menu')(this) || [];\n      return R.find(R.pathEq(['_data', 'code'], 'all'), dispatchProcesses);\n    }),\n    isAwaitingPaymentProcessModel: Ember.computed('crud.lists.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      const awaitingPaymentCode = this.get('constants.dispatchProcess.awaitingPayment');\n      return R.find(R.pathEq(['_data', 'code'], awaitingPaymentCode), dispatchProcesses);\n    }),\n    // undispatchedPanels: computed('crud.lists.dispatch-lists-processes.[]', function () {\n    //   const processes = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || []\n    //   return R.reject(R.path(['_data', 'noPanel']), processes)\n    // }),\n\n    resultsProxy: Ember.computed('results.[]', function () {\n      const results = this.results || [];\n      return R.map(result => {\n        return _nventor.default.createModel(_model.default, {}, {\n          model: result,\n          isSelected: false,\n          showDetails: true // @TODO: get this from settings\n        });\n      })(results);\n    }),\n    unpaginatedResultsProxy: Ember.computed('unpaginatedResults.[]', function () {\n      const results = this.unpaginatedResults || [];\n      return R.map(result => _nventor.default.createModel(_model.default, {}, {\n        model: result,\n        isSelected: false,\n        showDetails: true // @TODO: get this from settings\n      }), results);\n    }),\n    selectDispatchProcessTask: (0, _emberConcurrency.task)(function* (dispatchProcess, onCloseDialogAction) {\n      yield this.displayTask.perform({\n        dispatchProcess,\n        onCloseDialogAction\n      });\n      if (this.applicationService.isMobile) {\n        this.applicationService.toggleModelPath(this, 'showSideBar');\n      }\n    }),\n    displayTask: (0, _emberConcurrency.task)(function* ({\n      dispatchProcess,\n      period,\n      isByShippingWaybillStatus = false,\n      waybillStatus = '',\n      waybillLastStatus = '',\n      daysOld = '',\n      dispatchWaybillLabel = '',\n      onCloseDialogAction,\n      autoShowPrintAllDialog\n    }) {\n      const isDispatched = dispatchProcess?._data?.isDispatched || false;\n      const selectedPeriodDate = period?.date || '';\n      const selectedFromDateList = RA.isNotNilOrEmpty(selectedPeriodDate);\n      this.set('sidebarSelection', {\n        processCode: isByShippingWaybillStatus || selectedFromDateList ? '' : dispatchProcess?.getData?.('code') || '',\n        periodDate: selectedFromDateList ? selectedPeriodDate : '',\n        waybillStatus: isByShippingWaybillStatus ? waybillStatus || '' : '',\n        waybillLastStatus: isByShippingWaybillStatus ? waybillLastStatus || '' : '',\n        daysOld: isByShippingWaybillStatus ? daysOld || '' : ''\n      });\n      if (!dispatchProcess) {\n        console.log('MISSING::dispatchProcess', {\n          dispatchProcess,\n          period,\n          isDispatched,\n          onCloseDialogAction\n        });\n      }\n      this.set('currentDispatchProcess', dispatchProcess);\n      const dispatchProcessCode = dispatchProcess.getData('code');\n      const count = this.settingsService.getProp('dispatchFiltersCount');\n      const sortBy = this.settingsService.getProp('dispatchFiltersSortBy');\n      const sortByDirection = this.settingsService.getProp('dispatchFiltersSortByDirection');\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        altStorageProp: this.filtersAdapterName + `__${dispatchProcessCode}`,\n        rememberProps: ['sortBy'],\n        rememberMe: true\n      });\n      const showAdvancedFilters = this.settingsService.getProp('dispatchFiltersShowAdvanced', false) === true;\n      filters.set('showFilters', showAdvancedFilters);\n      if (isByShippingWaybillStatus) {\n        filters.setData('transporterExtension', this.selectedTransporterExtension);\n        filters.setData('waybillStatus', waybillStatus);\n        filters.setData('waybillLastStatus', waybillLastStatus);\n        filters.setData('daysOld', daysOld);\n        // period = null\n      } else if (!period && dispatchProcessCode === this.get('constants.dispatchStatus.dispatched')) {\n        period = this.getPeriod();\n      }\n\n      // Always set it: stored filters can hold a printedStatus from the last visit.\n      const defaultPrintedStatus = this.dispatch.readDefaultPrintedStatus({\n        dispatchProcess,\n        period\n      });\n      filters.setData('printedStatus', defaultPrintedStatus);\n      filters.setData('count', count);\n      filters.setData('sort', []);\n      const groupDocumentsByTransporter = this.groupDocumentsByTransporter;\n      if (groupDocumentsByTransporter) {\n        filters.addSortNoModel('transporterLabel', 'ASC');\n        filters.addSortNoModel('transporterAccount', 'ASC');\n        filters.addSortNoModel('transporterAccountNumber', 'ASC');\n      }\n      filters.addSortNoModel(sortBy, sortByDirection);\n      const sortByDefault = R.pipe(R.pathOr([], ['crud', 'lists', 'dispatch-lists-dispatch-sort']), R.find(R.pathEq(['_data', 'value'], sortBy)))(this);\n      filters.setData('dateHeaderValue', sortByDefault?._data?.value);\n      filters.setData('dateHeaderLabel', sortByDefault?._data?.label);\n      this.set('filters', filters);\n      const subTabOptions = {\n        component: 'dispatch/panels-display',\n        dispatchProcess: dispatchProcess,\n        period: period,\n        isByShippingWaybillStatus,\n        transporterExtension: this.selectedTransporterExtension,\n        waybillStatus,\n        waybillLastStatus,\n        daysOld,\n        dispatchWaybillLabel,\n        isDispatched,\n        filters,\n        autoShowPrintAllDialog\n      };\n      yield (0, _emberConcurrency.all)([this.fetchDispatchDataTask.perform({\n        dispatchProcess,\n        period,\n        filters\n      }), this.fetchDispatchSummaryTask.perform({\n        filters\n      })]);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }),\n    displayWaybillTask: (0, _emberConcurrency.task)(function* ({\n      waybillProcess,\n      waybillLastStatus = '',\n      daysOld = '',\n      onCloseDialogAction\n    }) {\n      const waybillStatus = waybillProcess?.value || '';\n      let dispatchWaybillLabel = `${this.intl.t(this.selectedTransporterExtension)} - ${this.intl.t(waybillProcess?.label)}`;\n      if (RA.isNotNilOrEmpty(waybillLastStatus)) {\n        const waybillLastStatusLabel = this.intl.t(`shippingStatus_${waybillLastStatus}`);\n        let daysOldLabel = '';\n        if (daysOld) {\n          daysOldLabel = `(${this.intl.t(`${daysOld}`)})`;\n        }\n        dispatchWaybillLabel = `${dispatchWaybillLabel} - ${waybillLastStatusLabel} ${daysOldLabel}`;\n      }\n      const isDispatchedProcess = this.isDispatchedProcessModel;\n      const isNotDispatchedProcess = this.isNotDispatchedProcessModel;\n      if (waybillStatus === 'noWaybills' || waybillStatus === 'awaitingDispatch') {\n        yield this.displayTask.perform({\n          dispatchProcess: isNotDispatchedProcess,\n          isByShippingWaybillStatus: true,\n          waybillStatus,\n          waybillLastStatus,\n          daysOld,\n          dispatchWaybillLabel,\n          isDispatched: false,\n          onCloseDialogAction\n        });\n      } else {\n        yield this.displayTask.perform({\n          dispatchProcess: isDispatchedProcess,\n          isByShippingWaybillStatus: true,\n          waybillStatus,\n          waybillLastStatus,\n          daysOld,\n          dispatchWaybillLabel,\n          isDispatched: true,\n          onCloseDialogAction\n        });\n      }\n      if (this.applicationService.isMobile) {\n        this.applicationService.toggleModelPath(this, 'showSideBar');\n      }\n    }),\n    displayDispatchedTask: (0, _emberConcurrency.task)(function* ({\n      period,\n      dateZ\n    }) {\n      if (!period && dateZ) {\n        period = this.getPeriod(dateZ);\n      }\n      const dispatchProcess = this.isDispatchedProcessModel;\n      yield this.displayTask.perform({\n        dispatchProcess,\n        period,\n        isDispatched: true\n      });\n      if (this.applicationService.isMobile) {\n        this.applicationService.toggleModelPath(this, 'showSideBar');\n      }\n    }),\n    /**\n     * Sets the results and summary data for the given results.\n     *\n     * @param {Object} results - The results object.\n     * @param {Object} options - The options object containing optional properties.\n     * @param {string} options.propResults - The property name for the results (default: 'results').\n     * @param {string} options.propDashData - The property name for the dash data (default: 'dashData').\n     *\n     * @return {void}\n     */\n    setResultsData(results, {\n      propResults = 'results'\n    } = {}) {\n      const docs = R.prop('docs', results);\n      this.set(propResults, docs);\n    },\n    /**\n     * Writes summary onto the tab. Transporter-dashboard side effects (print aggregates, frozen bar)\n     * must stay in dispatch.prepareSummaryDashDataForTransporterDashboard — do not duplicate here.\n     *\n     * @param {Object} results - summary API payload\n     * @param {Object} [options]\n     * @param {string} [options.propDashData='dashData'] - target property (`unpaginatedDashData` skips bar snapshot)\n     * @return {void}\n     */\n    setSummaryData(results, {\n      propDashData = 'dashData'\n    } = {}) {\n      const summaryData = R.prop('summaryData', results);\n      const dashData = R.prop('dashData', results);\n      this.set('summaryData', summaryData);\n      const filters = this.filters;\n      const preparedSummary = this.dispatch.prepareSummaryDashDataForTransporterDashboard({\n        filters,\n        dashData,\n        summaryProp: propDashData\n      });\n      if (preparedSummary.transporterBarSnapshot) {\n        this.set('dashDataTransporterBar', preparedSummary.transporterBarSnapshot);\n      }\n      this.set(propDashData, preparedSummary.dashData);\n      const inViewTotal = this.dispatch.readDispatchPanelListTotal(preparedSummary.dashData);\n      if (filters?.set) {\n        filters.set('fullCount', inViewTotal);\n      }\n    },\n    /**\n     * Re-apply Dispatch Sort By after Clear reset so request sort matches Search.\n     * @param {Object} filters - dispatch search filters after reset\n     * @param {Function} filters.setData - write a filters field\n     * @param {Function} filters.addSortNoModel - append a plain-object sort entry\n     * @return {undefined}\n     */\n    setFiltersDefaultSort(filters) {\n      const sortBy = this.settingsService.getProp('dispatchFiltersSortBy');\n      const sortByDirection = this.settingsService.getProp('dispatchFiltersSortByDirection');\n      const sortByDefault = R.pipe(R.pathOr([], ['crud', 'lists', 'dispatch-lists-dispatch-sort']), R.find(R.pathEq(['_data', 'value'], sortBy)))(this);\n      applyDispatchSettingsSort(filters, {\n        sortBy,\n        sortByDirection,\n        groupDocumentsByTransporter: this.groupDocumentsByTransporter,\n        sortByDefault\n      });\n    },\n    actions: {\n      markDispatchPanelNeedsRefresh() {\n        this.set('dispatchPanelNeedsRefresh', true);\n      },\n      bumpRowSelectionRevision() {\n        this.incrementProperty('rowSelectionRevision');\n      },\n      openPrintSidebar() {\n        this.set('showPrintSidebar', true);\n      },\n      hidePrintSidebar() {\n        this.set('showPrintSidebar', false);\n      },\n      loadSevenElevenSidebar(isExpanded) {\n        if (!isExpanded) {\n          return;\n        }\n        this.fetchSevenElevenData.perform();\n      },\n      refresh(dispatchProcess, period, isDispatched, autoShowPrintAllDialog) {\n        this.displayTask.perform({\n          dispatchProcess,\n          period,\n          isDispatched,\n          autoShowPrintAllDialog\n        });\n      },\n      display(dispatchProcess, onCloseDialogAction) {\n        this.displayTask.perform({\n          dispatchProcess,\n          onCloseDialogAction\n        });\n      },\n      displaySummaryPanel(resourceData) {\n        const subTabOptions = {\n          component: resourceData.getData('component'),\n          value: resourceData.getData('value')\n        };\n        const tab = this.tab;\n        this.tabsManager.replaceSubTab(tab, subTabOptions);\n      },\n      afterSplit(dispatchProcess) {\n        this.displayTask.perform({\n          dispatchProcess\n        });\n      },\n      afterMerge(dispatchProcess) {\n        this.displayTask.perform({\n          dispatchProcess\n        });\n      }\n    },\n    fetchTransportersTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.search.setupFilters({\n        adapterName: 'contacts/transporters/filters',\n        defaultFiltersData: {\n          isTransporter: 'on',\n          transporterExtensions: this?.sevenElevenProviders || []\n        }\n      });\n      const sevenElevenTransporterList = yield this.transporterService.fetchTransportersTask.perform({\n        query: '',\n        filters,\n        component: this,\n        resultsToggle: false,\n        match: []\n      });\n      this.set('sevenElevenTransporterList', sevenElevenTransporterList);\n      const sevenElevenExtensions = this.sevenElevenExtensions;\n      // always use seven-eleven now\n      if (RA.isNotNilOrEmpty(sevenElevenExtensions)) {\n        this.set('selectedTransporterExtension', this.get('constants.transporterExtensions.sevenEleven'));\n      }\n    }),\n    sevenElevenExtensions: Ember.computed('sevenElevenTransporterList', function () {\n      const sevenElevenTransporterList = this.sevenElevenTransporterList || [];\n      const sevenElevenProviders = this?.sevenElevenProviders || [];\n      return R.reduce((acc, transporterModel) => {\n        const transporterExtension = transporterModel?._data?.transporterExtension || '';\n        if (!R.includes(transporterExtension, sevenElevenProviders)) {\n          return acc;\n        }\n        const found = R.find(R.pathEq(['_data', 'transporterExtension'], transporterExtension))(acc);\n        if (found) {\n          return acc;\n        }\n        acc.push(transporterModel);\n        return acc;\n      }, [])(sevenElevenTransporterList);\n    }),\n    *fetchOverviewTask({\n      type = 'overview',\n      onAfter\n    }) {\n      const reportData = yield this.fetchReportTask.perform({\n        type\n      });\n      this.set('report', reportData);\n      if (onAfter) {\n        onAfter();\n      }\n      return reportData;\n    },\n    *fetchReportTask({\n      type = 'overview',\n      segment\n    }) {\n      // segment is not used yet by the api.\n      const selectedTransporterExtension = this.selectedTransporterExtension;\n      const results = yield this.server.call('GET', `api/protected/extensions/apps/tw/transporters/report/status-days/${selectedTransporterExtension}/${type}`);\n      const reportData = R.propOr([], 'data')(results);\n      return reportData;\n    }\n\n    // @action\n    // refreshWaybill (dispatchProcess, period, isDispatched, models, nextDispatchProcess) {\n    //   // nextDispatchProcess = nextDispatchProcess || dispatchProcess\n    //   nextDispatchProcess = dispatchProcess\n    //   this.displayTask.perform({\n    //     dispatchProcess: nextDispatchProcess,\n    //     period,\n    //     isDispatched\n    //   })\n    // },  \n  }, _applyDecoratedDescriptor(_obj, \"fetchOverviewTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_obj, \"fetchOverviewTask\"), _obj), _applyDecoratedDescriptor(_obj, \"fetchReportTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_obj, \"fetchReportTask\"), _obj), _obj));\n});","define(\"client/pods/components/dispatch/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Z/yWPMJn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"waybillProcess\\\",\\\"waybillProcessModel\\\",\\\"result\\\",\\\"index\\\",\\\"onCloseDialogAction\\\",\\\"dispatchProcess\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"wakeCallJobsServerTask\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,11,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"showSideBar\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"label\\\",\\\"guideId\\\",\\\"isRunning\\\",\\\"hasBadge\\\",\\\"badge\\\",\\\"onSubmit\\\"],[false,[24,[\\\"todayLabel\\\"]],\\\"dispatched-today\\\",[23,0,[\\\"fetchDispatchDataTask\\\",\\\"isRunning\\\"]],true,[24,[\\\"todayDispatchCount\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayDispatchedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"period\\\"],[[24,[\\\"today\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"customDateZ\\\",[23,0,[]],[23,0,[\\\"customDateZ\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayDispatchedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dateZ\\\"],[[23,0,[\\\"customDateZ\\\"]]]]]],null],[23,0,[\\\"fetchDispatchDataTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"dispatch\\\",[23,8,[]],[23,10,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@errors\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-menu\\\"]],[22,\\\"errors\\\"],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"displaySummaryPanel\\\"],null],[23,10,[]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/import-btn\\\",null,[[\\\"btnTagName\\\",\\\"classNames\\\",\\\"onRefresh\\\",\\\"onRefreshDispatched\\\",\\\"onRefreshPaid\\\"],[\\\"span\\\",\\\"hide-when-overflow\\\",[28,\\\"action\\\",[[23,0,[]],\\\"refresh\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"refresh\\\",[24,[\\\"isDispatchedProcessModel\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"refresh\\\",[24,[\\\"isAwaitingPaymentProcessModel\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[8,9,10]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"showSideBar\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[]],\\\"showSideBar\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showSideBar\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sidebar-container dispatch-sidebar\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\",\\\"@isAccordian\\\"],[\\\"undispatched\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"dispatchProcessesMenu\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"dispatch/processes-item\\\",[],[[\\\"@tagName\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@dispatchProcess\\\",\\\"@dispatchProcessesMenu\\\",\\\"@dispatchProcessesByCount\\\",\\\"@sidebarSelection\\\",\\\"@onSubmit\\\",\\\"@onRefresh\\\"],[\\\"div\\\",\\\"dispatch-process-row\\\",[23,0,[\\\"fetchDispatchDataTask\\\",\\\"isRunning\\\"]],[23,7,[]],[23,0,[\\\"dispatchProcessesMenu\\\"]],[22,\\\"dispatchProcessesByCount\\\"],[23,0,[\\\"sidebarSelection\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"selectDispatchProcessTask\\\"]],[23,7,[]],[24,[\\\"onCloseDialogAction\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"refresh\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__add\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"disabled\\\",\\\"closeOnOverlayClick\\\"],[\\\"add\\\",\\\"fas fa-plus\\\",[24,[\\\"disabled\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/processes-editor\\\",null,[[\\\"adapterName\\\",\\\"list\\\",\\\"onCloseDialogAction\\\",\\\"isNew\\\",\\\"isEditing\\\"],[\\\"dispatch/lists/processes/menu\\\",[24,[\\\"dispatchProcessesMenu\\\"]],[23,6,[]],true,false]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\",\\\"@isAccordian\\\"],[\\\"dispatched\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__date\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"customDateZ\\\",[23,0,[]],[23,0,[\\\"customDateZ\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayDispatchedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"dateZ\\\"],[[23,0,[\\\"customDateZ\\\"]]]]]],null],[23,0,[\\\"fetchDispatchDataTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"pastDays\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"dispatch/processes-item-dispatched\\\",[],[[\\\"@index\\\",\\\"@result\\\",\\\"@dateZ\\\",\\\"@classNames\\\",\\\"@isToday\\\",\\\"@isRunning\\\",\\\"@dispatchProcessesByCount\\\",\\\"@sidebarSelection\\\",\\\"@onSubmit\\\"],[[23,5,[]],[23,4,[]],[23,4,[\\\"startOfDateZ\\\"]],\\\"list-results__item dispatch-process-row dispatch-process-row--split\\\",[28,\\\"eq\\\",[[23,4,[\\\"date\\\"]],[23,0,[\\\"today\\\",\\\"date\\\"]]],null],[23,0,[\\\"fetchDispatchDataTask\\\",\\\"isRunning\\\"]],[22,\\\"dispatchProcessesByCount\\\"],[23,0,[\\\"sidebarSelection\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayDispatchedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"period\\\"],[[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4,5]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[\\\"sevenEleven\\\",true,false,[28,\\\"action\\\",[[23,0,[]],\\\"loadSevenElevenSidebar\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchSevenElevenData\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showSevenElevenSideBar\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes-menu-waybills-seven-eleven\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-sidebar__group-title\\\"],[8],[1,[28,\\\"tt\\\",[[23,2,[\\\"_data\\\",\\\"label\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"statuses\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"dispatch/processes-item-waybills-seven-eleven\\\",[],[[\\\"@tagName\\\",\\\"@classNames\\\",\\\"@waybillProcessModel\\\",\\\"@report\\\",\\\"@dispatchProcessesByCount\\\",\\\"@sidebarSelection\\\",\\\"@onDisplayWaybill\\\"],[\\\"div\\\",\\\"u-padding--3\\\",[23,3,[]],[23,0,[\\\"report\\\"]],[23,0,[\\\"dispatchProcessesByCount\\\"]],[23,0,[\\\"sidebarSelection\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayWaybillTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"displayTask\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-panel-loading\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[true]],{\\\"statements\\\":[],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchByProcessesCountTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t  \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"onRefresh\\\",\\\"filters\\\",\\\"results\\\",\\\"unpaginatedResults\\\",\\\"summaryData\\\",\\\"dashData\\\",\\\"dashDataTransporterBar\\\",\\\"dispatchProcessesByCount\\\",\\\"onRefreshDispatchPanelDataTask\\\",\\\"dispatchPanelCountsAreLoading\\\",\\\"dispatchProcessesMenu\\\",\\\"onFetchUnpaginatedDispatchDataTask\\\",\\\"onSearchRecordsTask\\\",\\\"onPaginateSearchRecordsTask\\\",\\\"lastSearchSettings\\\",\\\"isDispatchedProcessModel\\\",\\\"showDetails\\\",\\\"onAfterSplit\\\",\\\"onAfterMerge\\\",\\\"onSearchTask\\\",\\\"onSearchAdvancedTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onResetSearchRecordsTask\\\",\\\"groupDocumentsByTransporter\\\",\\\"onGroupByTransporter\\\",\\\"isRunning\\\",\\\"onFetchOverviewTask\\\",\\\"onRowSelectionChange\\\",\\\"dispatchPanelNeedsRefresh\\\",\\\"onMarkDispatchPanelNeedsRefresh\\\",\\\"showPrintSidebar\\\",\\\"printSidebarCounts\\\",\\\"onOpenPrintSidebar\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"refresh\\\"],null],[24,[\\\"filters\\\"]],[24,[\\\"resultsProxy\\\"]],[24,[\\\"unpaginatedResultsProxy\\\"]],[24,[\\\"summaryData\\\"]],[24,[\\\"dashData\\\"]],[23,0,[\\\"dashDataTransporterBar\\\"]],[23,0,[\\\"dispatchProcessesByCount\\\"]],[23,0,[\\\"refreshDispatchPanelDataTask\\\"]],[28,\\\"or\\\",[[23,0,[\\\"fetchByProcessesCountTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchDispatchSummaryTask\\\",\\\"isRunning\\\"]]],null],[24,[\\\"dispatchProcessesMenu\\\"]],[24,[\\\"fetchUnpaginatedDispatchDataTask\\\"]],[24,[\\\"searchRecordsTask\\\"]],[24,[\\\"paginateDispatchDataTask\\\"]],[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"isDispatchedProcessModel\\\"]],[24,[\\\"showDetails\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterSplit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"afterMerge\\\"],null],[24,[\\\"customSearchTask\\\"]],[24,[\\\"customAdvancedSearchTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"customReloadSearchTask\\\"]],[24,[\\\"customResetSearchTask\\\"]],[23,0,[\\\"groupDocumentsByTransporter\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"or\\\",[[23,0,[\\\"_fetchDispatchDataTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchOverviewTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\"],[\\\"overview\\\"]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"bumpRowSelectionRevision\\\"],null],[23,0,[\\\"dispatchPanelNeedsRefresh\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"markDispatchPanelNeedsRefresh\\\"],null],[23,0,[\\\"showPrintSidebar\\\"]],[23,0,[\\\"dispatchPrintSidebarCounts\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"openPrintSidebar\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"currentDispatchProcess\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"dashData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@guideId\\\",\\\"@sidebarClassNames\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[false,\\\"print-options\\\",\\\"dispatch-print-sidebar\\\",[23,0,[\\\"showPrintSidebar\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"hidePrintSidebar\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"displayTask\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dispatch-panel-loading\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[true]],{\\\"statements\\\":[],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"dispatch/print-options\\\",[],[[\\\"@tab\\\",\\\"@lists\\\",\\\"@filters\\\",\\\"@onRefreshDispatchPanelDataTask\\\",\\\"@refreshDispatchPanelTask\\\",\\\"@dispatchPanelNeedsRefresh\\\",\\\"@printSidebarCounts\\\",\\\"@summaryData\\\",\\\"@dashData\\\",\\\"@dashDataTransporterBar\\\",\\\"@dispatchProcess\\\",\\\"@dispatchProcessesByCount\\\",\\\"@results\\\",\\\"@onFetchUnpaginatedDispatchDataTask\\\",\\\"@period\\\",\\\"@isDispatched\\\",\\\"@onHidePrintSidebar\\\"],[[23,11,[]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"refreshDispatchPanelDataTask\\\"]],[23,0,[\\\"refreshDispatchPanelTask\\\"]],[23,0,[\\\"dispatchPanelNeedsRefresh\\\"]],[23,0,[\\\"dispatchPrintSidebarCounts\\\"]],[23,0,[\\\"summaryData\\\"]],[23,0,[\\\"dashData\\\"]],[23,0,[\\\"dashDataTransporterBar\\\"]],[23,0,[\\\"currentDispatchProcess\\\"]],[23,0,[\\\"dispatchProcessesByCount\\\"]],[23,0,[\\\"resultsProxy\\\"]],[23,0,[\\\"fetchUnpaginatedDispatchDataTask\\\"]],[23,0,[\\\"activeDispatchPanelPeriod\\\"]],[23,0,[\\\"activeDispatchPanelIsDispatched\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"hidePrintSidebar\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/dispatch/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/display-tags/display-tags-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 DisplayTagsDisplayTagsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _class = class DisplayTagsDisplayTagsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args?.adapterName);\n      this.crud.addLists(this, ['products/lists/display-tags']);\n      const model = this.args.model || this.args.parentModel || {};\n      const tab = this.args.tab || {};\n      this.tab = tab;\n      const isEditing = this.args.isEditing;\n      if (isEditing) {\n        const dirty = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n        Ember.set(this, 'model', dirty);\n      } else {\n        const newModel = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n        Ember.set(this, 'model', newModel);\n      }\n    }\n    get hasRunningTasks() {\n      const isRemoveRecordTaskRunning = this.crud.removeRecordTask.isRunning;\n      const isReplaceRecordTaskRunning = this.crud.replaceRecordTask.isRunning;\n      const isCreateRecordTaskRunning = this.crud.createRecordTask.isRunning;\n      return isRemoveRecordTaskRunning || isReplaceRecordTaskRunning || isCreateRecordTaskRunning;\n    }\n    afterCreateRecordTask(model) {\n      this.args.onAddItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask() {\n      this.args.onRemoveItem?.(this.model);\n    }\n    cancel() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n      this.args.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/display-tags/display-tags-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"n2VebYDk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@disabled\\\",\\\"@tab\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"products\\\",\\\"display tag\\\",[23,0,[\\\"model\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,0,[\\\"hasRunningTasks\\\"]],true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"u-btn--cancel\\\",[23,1,[]],\\\"delete\\\",[23,0,[\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterRemoveRecordTask\\\"]],[23,2,[]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[23,0,[\\\"hasRunningTasks\\\"]],[23,1,[]],[23,0,[\\\"cancel\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save\\\",[23,1,[]],[23,0,[\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,2,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save\\\",[23,1,[]],[23,0,[\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterCreateRecordTask\\\"]],[23,2,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"msgs/deleted-error\\\",[],[[\\\"@model\\\"],[[23,0,[\\\"model\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/display-tags/display-tags-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documentation/documentation-desc/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency-decorators\"], function (_exports, _component, R, RA, _emberConcurrencyDecorators) {\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;\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 DocumentationDocumentationDescComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class DocumentationDocumentationDescComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"auth\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"fetchedDocumentation\", _descriptor4, this);\n      if (this.args.autoFetchDocumentation) {\n        this.fetchDocumentationTask.perform();\n      }\n    }\n    openNewTabTask() {\n      window.open(this.newTabLink, '_blank');\n    }\n    *fetchDocumentationTask() {\n      const fetchDocumentationResource = this.args.documentationResource;\n      const fetchDocumentationId = this.args.documentationId;\n      const filters = this.search.setupFilters({\n        adapterName: 'documentation/filters'\n      });\n      if (!fetchDocumentationResource || !fetchDocumentationId) {\n        return;\n      }\n      const documentation = yield this.crud.findTask.perform({\n        adapterName: 'documentation',\n        appendPath: `${encodeURIComponent(fetchDocumentationResource)}/${encodeURIComponent(fetchDocumentationId)}`,\n        filters,\n        resultsProperty: 'results'\n      });\n      if (RA.isNilOrEmpty(documentation)) {\n        return;\n      }\n      this.fetchedDocumentation = documentation;\n    }\n    get documentation() {\n      if (this.args.autoFetchDocumentation) {\n        return this.fetchedDocumentation;\n      }\n      return this.args.documentation;\n    }\n    get showDocumentation() {\n      if (!this.args.autoFetchDocumentation) {\n        return true;\n      }\n      if (RA.isNilOrEmpty(this.fetchedDocumentation)) {\n        return false;\n      }\n      return true;\n    }\n    get newTabLink() {\n      const documentationResource = encodeURIComponent(this.args.documentationResource);\n      const documentationId = encodeURIComponent(this.args.documentationId);\n      const tokenData = this.auth.getTokenData();\n      const username = tokenData.username;\n      const userKey = tokenData.uid;\n      const company = tokenData.company;\n      const link = `/p/c/${username}/${userKey}/${company}/help/${documentationResource}/${documentationId}`;\n      return link;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"auth\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"fetchedDocumentation\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openNewTabTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"openNewTabTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDocumentationTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDocumentationTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documentation/documentation-desc/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NCFz8/qh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@documentationResource\\\",\\\"@documentationId\\\",\\\"&attrs\\\",\\\"@documentationWrapper\\\",\\\"@hasOpenNewTabLink\\\",\\\"@isLabel\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"showDocumentation\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-external-link-alt\\\",\\\"open in new tab\\\",[28,\\\"fn\\\",[[23,0,[\\\"openNewTabTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,6,[]],[23,4,[\\\"showDocumentation\\\"]],[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"description\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"documentation-description documentation-description__description\\\"],[12,\\\"data-documentation-documentationResource\\\",[23,1,[]]],[12,\\\"data-documentation-documentationId\\\",[23,2,[]]],[12,\\\"data-documentation-key\\\",[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"_key\\\"]]],[13,3],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"showDocumentation\\\"]],[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"template\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"documentation-description documentation-description__template\\\"],[12,\\\"data-documentation-documentationResource\\\",[23,1,[]]],[12,\\\"data-documentation-documentationId\\\",[23,2,[]]],[12,\\\"data-documentation-key\\\",[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"_key\\\"]]],[13,3],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchDocumentationTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"template\\\"]]],null],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documentation/documentation-desc/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documentation/documentation-edit-modal/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _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 DocumentationDocumentationEditModalComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('documentation'), _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember.computed('dirty._data.type'), _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _class = class DocumentationDocumentationEditModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"documentationService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"guides\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor6, this);\n      _initializerDefineProperty(this, \"helpFilters\", _descriptor7, this);\n      _initializerDefineProperty(this, \"selectedTemplateIndex\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedTemplateModel\", _descriptor9, this);\n      _defineProperty(this, \"adapterName\", 'documentation');\n      this.crud.addLists(this, ['documentation/lists/help', 'statuses']);\n      this.documentationService.openEditModal();\n      this.setupTask.perform();\n    }\n\n    /**\n     * Let the New Feature slides show again after this edit modal is gone.\n     */\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.documentationService.closeEditModal();\n    }\n    *setupTask() {\n      const documentation = yield this.fetchDocumentationTask.perform();\n      const documentationId = R.pathOr(null, ['args', 'documentationId'])(this);\n      const documentationResource = R.pathOr(null, ['args', 'documentationResource'])(this);\n      this.helpFilters = this.search.setupFilters({\n        adapterName: 'documentation/filters',\n        defaultFiltersData: {\n          type: 'isHelp',\n          documentationResource\n        }\n      });\n      let model;\n      if (documentation?._data?._key) {\n        model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model: documentation\n        });\n      } else {\n        let index = 0;\n        let type = '';\n        if (this.args.isHelp || this.args.isNewFeature) {\n          index = this.args.index || 0;\n          type = 'isHelp';\n        }\n        model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          data: {\n            type,\n            documentationId,\n            documentationResource,\n            index\n          }\n        });\n        model.addNewTemplate();\n      }\n      this.dirty = model;\n      const templates = model.getData('templates');\n      if (RA.isNilOrEmpty(templates)) {\n        return;\n      }\n      const templateModel = templates.get('firstObject');\n      templateModel.instanceId = model?.instanceId;\n      this.selectTemplate(templateModel);\n    }\n    *fetchDocumentationTask() {\n      const fetchDocumentationResource = this.args.documentationResource;\n      const fetchDocumentationId = this.args.documentationId;\n      const filters = this.search.setupFilters({\n        adapterName: 'documentation/filters'\n      });\n      if (!fetchDocumentationResource || !fetchDocumentationId) {\n        return;\n      }\n      const documentation = yield this.crud.findTask.perform({\n        adapterName: 'documentation',\n        appendPath: `${encodeURIComponent(fetchDocumentationResource)}/${encodeURIComponent(fetchDocumentationId)}`,\n        filters,\n        resultsProperty: 'results'\n      });\n      if (RA.isNilOrEmpty(documentation)) {\n        return;\n      }\n      this.fetchedDocumentation = documentation;\n      return documentation;\n    }\n    get documentation() {\n      const documentation = this.fetchedDocumentation || {};\n      return documentation;\n    }\n    get isNewFeature() {\n      if (this.dirty?._data?.type === 'isNewFeature') {\n        return true;\n      }\n      return false;\n    }\n    get documentationIdLabel() {\n      if (this.args.isHelp) {\n        return 'label';\n      }\n      if (this.args.isNewFeature) {\n        return 'label';\n      }\n      return 'documentationId';\n    }\n    get documentationIdIsReadonly() {\n      if (this.args.isHelp) {\n        return false;\n      }\n      if (this.args.isNewFeature) {\n        return false;\n      }\n      return true;\n    }\n    get hasDescription() {\n      if (this.args.isLabel) {\n        return true;\n      }\n      return false;\n    }\n    get hasIndex() {\n      const documentation = this.documentation;\n      if (this.args.isHelp || documentation?.isHelp) {\n        return true;\n      }\n      return false;\n    }\n    get hasTemplate() {\n      const documentation = this.documentation;\n      if (this.args.isHelp || documentation?.isHelp) {\n        return true;\n      }\n      return true;\n      // if (this.args.isGroup || documentation?.isGroup) {\n      //   return true\n      // }\n\n      // return false\n    }\n\n    /**\n     * Create the new documentation, then refresh the setup helper and close.\n     */\n    *createDocumentationTask() {\n      const model = this.dirty;\n      yield this.crud.createRecordTask.perform({\n        adapterName: this.adapterName,\n        model,\n        onAfter: this.refreshSetupGuidesAndClose\n      });\n      this.crud.refreshList(this.crud.lists);\n    }\n\n    /**\n     * Save the edited documentation, then refresh the setup helper and close.\n     */\n    *updateDocumentationTask() {\n      yield this.crud.updateRecordTask.perform({\n        adapterName: this.adapterName,\n        model: this.dirty,\n        debug: true,\n        onAfter: this.refreshSetupGuidesAndClose\n      });\n    }\n\n    /**\n     * Delete the documentation, then refresh the setup helper and close.\n     */\n    *removeDocumentationTask() {\n      yield this.crud.removeRecordTask.perform({\n        adapterName: this.adapterName,\n        model: this.dirty,\n        onAfter: this.refreshSetupGuidesAndClose\n      });\n    }\n\n    /**\n     * Refresh the guide setup helper after a successful create, update or delete, then close the modal.\n     * Without the refresh, a New Feature saved with Setup on would only reach the helper after a tab switch.\n     * @param {...*} onAfterArgs - arguments the crud task passes to onAfter, forwarded to onCloseDialogAction\n     * @returns {*} result of onCloseDialogAction\n     */\n    refreshSetupGuidesAndClose(...onAfterArgs) {\n      this.guides.bumpSetupSearchVersion();\n      return this.args.onCloseDialogAction?.(...onAfterArgs);\n    }\n    selectTemplate(templateModel = false) {\n      const model = this.dirty;\n      const templates = model?._data?.templates || [];\n      let index = templates?.indexOf(templateModel) || 0;\n      if (index < 0) {\n        index = 0;\n      }\n      this.selectedTemplateIndex = index;\n      this.selectedTemplateModel = templateModel;\n    }\n    newTemplate() {\n      const model = this.dirty;\n      const templateModel = model.addNewTemplate();\n      this.selectTemplate(templateModel);\n    }\n    loadHelp(dirty, selected) {\n      dirty.setData('helpKey', selected._data._key);\n    }\n    unloadHelp(dirty) {\n      dirty.setData('helpKey', '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"documentationService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"guides\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"helpFilters\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"selectedTemplateIndex\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedTemplateModel\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDocumentationTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDocumentationTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isNewFeature\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"isNewFeature\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createDocumentationTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"createDocumentationTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateDocumentationTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDocumentationTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeDocumentationTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"removeDocumentationTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshSetupGuidesAndClose\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshSetupGuidesAndClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTemplate\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newTemplate\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"newTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadHelp\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"loadHelp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadHelp\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadHelp\"), _class.prototype), _class);\n});","define(\"client/pods/components/documentation/documentation-edit-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"44dP9MUd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"draftStep\\\",\\\"index\\\",\\\"templateModel\\\",\\\"index\\\",\\\"templateModel\\\",\\\"index\\\",\\\"@onCloseDialogAction\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@isHelp\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"errors\\\"],[\\\"type\\\",\\\"type\\\",[24,[\\\"errors\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documentation-lists-help\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\"],[\\\"category\\\",\\\"category\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"category\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\"],[\\\"version\\\",\\\"appVersion\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"appVersion\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"errors\\\"],[[23,0,[\\\"documentationIdLabel\\\"]],\\\"documentationId\\\",[24,[\\\"errors\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\",\\\"isRequired\\\"],[[23,0,[\\\"documentationIdIsReadonly\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"documentationId\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasIndex\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"errors\\\"],[\\\"index\\\",\\\"index\\\",[24,[\\\"errors\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRequired\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"index\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasDescription\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"errors\\\"],[\\\"description\\\",\\\"description\\\",[24,[\\\"errors\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"value\\\",\\\"isRequired\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"description\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasTemplate\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isNewFeature\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"errors\\\"],[\\\"open help\\\",\\\"helpKey\\\",[24,[\\\"errors\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@placeholder\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@onSearch\\\",\\\"@hasSelectedIcon\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"span\\\",\\\"help\\\",false,[23,0,[\\\"helpFilters\\\",\\\"results\\\"]],\\\"_data.helpDocumentationId\\\",\\\"_data.documentationId\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"helpDocumentationId\\\"]],\\\"_data.documentationId\\\",\\\"_data._helpKey\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"helpKey\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentationService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"filters\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"helpDocumentationId\\\"]],[23,0,[\\\"helpFilters\\\"]]]]]],null],\\\"fas fa-bookmark\\\",[28,\\\"fn\\\",[[23,0,[\\\"loadHelp\\\"]],[23,0,[\\\"dirty\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadHelp\\\"]],[23,0,[\\\"dirty\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-margin-top-10\\\",[28,\\\"or\\\",[[23,10,[]],[28,\\\"gt\\\",[[28,\\\"count\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"templates\\\"]]],null],4],null]],null],\\\"fas fa-plus\\\",\\\"new template\\\",[28,\\\"fn\\\",[[23,0,[\\\"newTemplate\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"templates\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tab flex-container-row\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"u-tab-menu tab-menu-group\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"templates\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[\\\"u-tab-menu__item \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedTemplateIndex\\\"]],[23,7,[]]],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectTemplate\\\"]],[23,6,[]]],null]]],[8],[0,\\\"\\\\n                      \\\"],[1,[23,6,[\\\"_data\\\",\\\"header\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6,7]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"templates\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedTemplateIndex\\\"]],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"products/products-editor/template\\\",[],[[\\\"@index\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentModel\\\",\\\"@reselectFirst\\\",\\\"@tab\\\"],[[23,5,[]],[23,10,[]],[23,4,[]],[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectTemplate\\\"]]],null],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4,5]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@description\\\"],[\\\"guide setup\\\",\\\"setup\\\",\\\"guide_setup_description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"setup\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\"],[\\\"guide steps\\\",\\\"draftSteps\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"draftSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"guides/step\\\",[],[[\\\"@stepNumber\\\",\\\"@parentGuideId\\\",\\\"@guideId\\\",\\\"@advanceOnClick\\\",\\\"@note\\\"],[[28,\\\"sum\\\",[[23,3,[]],1],null],[23,2,[\\\"parentGuideId\\\"]],[23,2,[\\\"guideId\\\"]],[23,2,[\\\"advanceOnClick\\\"]],[23,2,[\\\"note\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"label\\\",\\\"context\\\"],[\\\"template\\\",\\\"template\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@resource\\\",\\\"@resourceKey\\\"],[[23,9,[]],true,true,false,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"template\\\"]],\\\"documentation\\\",\\\"documentation\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"type\\\"]],\\\"isHelp\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[\\\"add to home page\\\",true,true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isHomePageHelp\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"dirty\\\"]],\\\"_data.isHomePageHelp\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\"],[\\\"home page help index\\\",\\\"isHomePageHelpIndex\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRequired\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isHomePageHelpIndex\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"errors\\\"],[\\\"description\\\",\\\"description\\\",[24,[\\\"errors\\\"]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"value\\\",\\\"isRequired\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"description\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"errors\\\"],[\\\"tags\\\",\\\"tags\\\",[24,[\\\"errors\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documentation-lists-tags\\\"]],false,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"icon\\\",\\\"list\\\"],[[24,[\\\"isReadonly\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documentation-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"adapterName\\\",\\\"legend\\\",\\\"tab\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"allowEmpty\\\"],[true,\\\"documentation/lists/tags\\\",\\\"tags\\\",[24,[\\\"tab\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documentation-lists-tags\\\"]],[23,0,[\\\"dirty\\\"]],true,\\\"_data._key\\\",\\\"_data.tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[23,0,[\\\"dirty\\\",\\\"statusClass\\\"]],true,[24,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"removeDocumentationTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"removeDocumentationTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[23,8,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[23,0,[\\\"createDocumentationTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"createDocumentationTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[23,0,[\\\"updateDocumentationTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateDocumentationTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documentation/documentation-edit-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documentation/documentation-icon/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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, _dec0, _dec1, _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 DocumentationDocumentationIconComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _class = class DocumentationDocumentationIconComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"users\", _descriptor2, this);\n      _initializerDefineProperty(this, \"displayModal\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isEditing\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isNew\", _descriptor7, this);\n      _initializerDefineProperty(this, \"displayMoreToggle\", _descriptor8, this);\n      _initializerDefineProperty(this, \"displayEditModal\", _descriptor9, this);\n      _defineProperty(this, \"adapterName\", 'documentation');\n    }\n    get iconVisible() {\n      const documentationId = R.pathOr(null, ['args', 'documentationId'])(this);\n      if (!documentationId) {\n        return false;\n      }\n      if (this.allowedEdit) {\n        return true;\n      }\n      if (this.args.onlyShowForEditor) {\n        return false;\n      }\n      return R.pathOr(false, ['args', 'documentation', 'hasDocumentation'])(this);\n    }\n    get allowedEdit() {\n      // const isAdmin = this.users.getProp('isAdmin')\n      const isEditor = this.users.isDocumentationsEditor;\n      return isEditor;\n    }\n    showInfo() {\n      this.displayModal = !this.displayModal;\n    }\n    toggleDisplayEditModal() {\n      this.displayEditModal = !this.displayEditModal;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"users\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"displayModal\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tags\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isEditing\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isNew\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"displayMoreToggle\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"displayEditModal\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"showInfo\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"showInfo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDisplayEditModal\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDisplayEditModal\"), _class.prototype), _class);\n});","define(\"client/pods/components/documentation/documentation-icon/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HhhUYDbX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"isTooltipVisible\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@tab\\\",\\\"@isHelp\\\",\\\"@isLabel\\\",\\\"@isGroup\\\",\\\"@documentation\\\",\\\"@documentationWrapper\\\",\\\"&attrs\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"iconVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",false],[12,\\\"data-documentation-documentationId\\\",[23,3,[]]],[12,\\\"data-documentation-documentationResource\\\",[23,4,[]]],[12,\\\"class\\\",\\\"documentation-edit-btn-container\\\"],[13,11],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[\\\"hasDocumentation\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[\\\"hasTemplate\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-info-circle\\\"]]],[0,\\\"\\\\n              \\\\n\\\"],[4,\\\"helpers/info-popup-content\\\",null,[[\\\"isViewable\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[23,5,[]],true,true,true,[23,9,[\\\"_data\\\",\\\"template\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@icon\\\",\\\"@tabindex\\\",\\\"@onSubmit\\\"],[\\\"fas fa-info-circle\\\",-1,[23,10,[\\\"toggleDocumentation\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowedEdit\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@tooltipTranslate\\\"],[\\\"documentation-edit-btn\\\",\\\"fas fa-pen\\\",[28,\\\"concat\\\",[[23,4,[]],\\\": \\\",[23,3,[]]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"documentation/documentation-edit-modal\\\",[],[[\\\"@tab\\\",\\\"@isHelp\\\",\\\"@isLabel\\\",\\\"@isGroup\\\",\\\"@displayEditModal\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@onCloseDialogAction\\\",\\\"@toggleDisplayEditModal\\\"],[[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,0,[\\\"displayEditModal\\\"]],[23,9,[]],[23,3,[]],[23,4,[]],[23,1,[]],[23,0,[\\\"toggleDisplayEditModal\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documentation/documentation-icon/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documentation/documentation/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 DocumentationDocumentationComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class DocumentationDocumentationComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"users\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_showDocumentation\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", 'documentation');\n      const fetchDocumentationList = this.args.fetchDocumentationList ?? true;\n      const lists = ['documentation/lists/tags', 'statuses'];\n      if (fetchDocumentationList) {\n        const dynamicList = {\n          name: 'documentation/lists/resource',\n          appendPath: this.documentationResource\n        };\n        lists.push(dynamicList);\n      }\n      this.crud.addLists(this, lists);\n    }\n    get documentationResource() {\n      const documentationResource = this?.args?.documentationResource;\n      return documentationResource || this?.args?.options?.documentationResource;\n    }\n    get documentationId() {\n      if (this.args.options) {\n        const {\n          documentationId,\n          documentationResource,\n          context\n        } = this.args.options;\n        if (documentationId) {\n          return documentationId;\n        }\n        if (documentationResource && context) {\n          return `${documentationResource}-${context}`;\n        }\n        return null;\n      }\n      return null;\n    }\n    get documentation() {\n      if (RA.isNotNilOrEmpty(this.args.documentation)) {\n        return this.args.documentation;\n      }\n      const documentationResource = `documentation-lists-resource--${this.documentationResource}`;\n      const documentation = R.pipe(R.pathOr([], ['crud', 'lists', documentationResource]), R.find(R.pathEq(['_data', 'documentationId'], this.documentationId)))(this);\n      if (!this.users.isDocumentationsEditor) {\n        if (documentation?._data?.status !== 'active') {\n          return {};\n        }\n      }\n      return documentation;\n    }\n    toggleDocumentation() {\n      this._showDocumentation = !this._showDocumentation;\n    }\n    get showDocumentation() {\n      const isHelp = this.args.isHelp;\n      if (isHelp) {\n        return true;\n      }\n      if (RA.isNilOrEmpty(this._showDocumentation)) {\n        // if _showDocumentation is NULL it means that its on init\n\n        if (this.applicationService.documentationIsMinimized && this.args.isGroup) {\n          return false;\n        }\n        if (RA.isNotNilOrEmpty(this.args.documentationIsMinimizedOverride)) {\n          return !this.args.documentationIsMinimizedOverride;\n        }\n        if (RA.isNilOrEmpty(this.args.documentationIsMinimized)) {\n          return true;\n        }\n        return !this.args.documentationIsMinimized;\n      }\n      return this._showDocumentation;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"users\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_showDocumentation\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleDocumentation\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDocumentation\"), _class.prototype), _class);\n});","define(\"client/pods/components/documentation/documentation/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"POVQ7oUC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"@isLabel\\\",\\\"@isHelp\\\",\\\"@isGroup\\\",\\\"@tab\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,6]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,6,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",false],[13,1],[8],[0,\\\"\\\\n    \\\"],[5,\\\"documentation/documentation-icon\\\",[],[[\\\"@isLabel\\\",\\\"@isHelp\\\",\\\"@isGroup\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@component\\\",\\\"@tab\\\",\\\"@documentationWrapper\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,0,[\\\"documentation\\\"]],[23,0,[\\\"documentationId\\\"]],[23,0,[\\\"documentationResource\\\"]],[23,0,[]],[23,5,[]],[23,0,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"documentation/documentation-desc\\\",[],[[\\\"@isLabel\\\",\\\"@isHelp\\\",\\\"@isGroup\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@documentationWrapper\\\",\\\"@tab\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,0,[\\\"documentation\\\"]],[23,0,[\\\"documentationId\\\"]],[23,0,[\\\"documentationResource\\\"]],[23,0,[]],[23,5,[]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documentation/documentation/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documentation/features-popup/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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;\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 DocumentationFeaturesPopupComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('documentation'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _class = class DocumentationFeaturesPopupComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"documentationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"guides\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"currentSlideIndex\", _descriptor5, this);\n      _initializerDefineProperty(this, \"modalDialogIsVisible\", _descriptor6, this);\n      _initializerDefineProperty(this, \"hasModalOverlay\", _descriptor7, this);\n      _initializerDefineProperty(this, \"fetchedDocumentation\", _descriptor8, this);\n      _defineProperty(this, \"adapterName\", 'documentation');\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const fetchDocumentationResource = this.args.fetchDocumentationResource;\n      const fetchDocumentationId = this.args.fetchDocumentationId;\n      if (fetchDocumentationResource && fetchDocumentationId) {\n        return yield this.fetchByResourceIdTask.perform();\n      }\n      if (fetchDocumentationResource) {\n        return yield this.fetchLatestFeaturesTask.perform();\n      }\n    }\n    *fetchByResourceIdTask() {\n      const fetchDocumentationResource = this.args.fetchDocumentationResource;\n      const fetchDocumentationId = this.args.fetchDocumentationId;\n      const filters = this.search.setupFilters({\n        adapterName: 'documentation/features/filters'\n      });\n      const documentation = yield this.crud.findTask.perform({\n        adapterName: 'documentation/features',\n        appendPath: `${encodeURIComponent(fetchDocumentationResource)}/${encodeURIComponent(fetchDocumentationId)}`,\n        filters,\n        resultsProperty: 'results'\n      });\n      if (RA.isNilOrEmpty(documentation)) {\n        return;\n      }\n      if (!this.documentationService.isDocumentationVisible(documentation)) {\n        return;\n      }\n      this.fetchedDocumentation = documentation;\n      this.startTourWithoutSlides();\n    }\n    *fetchLatestFeaturesTask() {\n      // @TODO: fetch documentation\n      const fetchDocumentationResource = this.args.fetchDocumentationResource;\n      const filters = this.search.setupFilters({\n        adapterName: 'documentation/features/filters'\n      });\n      if (!fetchDocumentationResource) {\n        return;\n      }\n      const documentation = yield this.crud.findTask.perform({\n        adapterName: 'documentation/features',\n        appendPath: fetchDocumentationResource,\n        filters,\n        resultsProperty: 'results'\n      });\n      if (RA.isNilOrEmpty(documentation)) {\n        return;\n      }\n      if (!this.documentationService.isDocumentationVisible(documentation)) {\n        return;\n      }\n      this.fetchedDocumentation = documentation;\n      this.startTourWithoutSlides();\n    }\n\n    /**\n     * Whether the fetched New Feature has slides to show in the modal.\n     * @return {boolean}\n     */\n    get hasSlides() {\n      return RA.isNotNilOrEmpty(this.fetchedDocumentation?._data?.templates);\n    }\n\n    /**\n     * Slides stay hidden while a documentation edit modal is open, so the form is not covered.\n     * @return {boolean}\n     */\n    get isEditModalOpen() {\n      return this.documentationService.editModalCount > 0;\n    }\n\n    /**\n     * Whether the fetched New Feature has published tour steps.\n     * Draft steps never play here; they play from the setup helper's preview.\n     * @return {boolean}\n     */\n    get hasTourSteps() {\n      return RA.isNotNilOrEmpty(this.fetchedDocumentation?._data?.steps);\n    }\n\n    /**\n     * Start the tour of the fetched New Feature.\n     * Hands the model to the service first, because onClose may destroy this popup.\n     */\n    startTour() {\n      const documentation = this.fetchedDocumentation;\n      this.guides.startGuideTask.perform({\n        guide: documentation,\n        steps: documentation._data.steps\n      });\n    }\n\n    /**\n     * With no slides there is no modal to close, so the tour starts at once.\n     * onClose still runs so the sidebar row collapses and does not cover the rows.\n     */\n    startTourWithoutSlides() {\n      if (this.hasSlides || !this.hasTourSteps) {\n        return;\n      }\n      this.startTour();\n      this.args.onClose?.();\n    }\n\n    /**\n     * Close the slides and start the tour when the New Feature has one.\n     */\n    closeDialog() {\n      const modalDialogIsVisible = this.modalDialogIsVisible;\n      if (!modalDialogIsVisible) {\n        return;\n      }\n      this.modalDialogIsVisible = !modalDialogIsVisible;\n\n      // the modal also calls closeDialog when it is torn down (tab closed, row collapsed).\n      // leaving during the slides must not start the tour, so the slides show again next visit\n      const isUserClose = !this.isDestroying && !this.isDestroyed;\n      if (isUserClose && this.hasTourSteps && !this.isEditModalOpen) {\n        this.startTour();\n      }\n      if (this.args.onClose) {\n        this.args.onClose();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"documentationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"guides\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"currentSlideIndex\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"modalDialogIsVisible\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"hasModalOverlay\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"fetchedDocumentation\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchByResourceIdTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByResourceIdTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchLatestFeaturesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchLatestFeaturesTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDialog\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDialog\"), _class.prototype), _class);\n});","define(\"client/pods/components/documentation/features-popup/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mLpdYh/q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"carouselComponent\\\",\\\"slide\\\",\\\"@modalDialogTitleSuffix\\\",\\\"@modalSize\\\",\\\"@modalDialogContainerClassName\\\",\\\"@modalDialogContentClassName\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"fetchedDocumentation\\\",\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"hasSlides\\\"]],[28,\\\"not\\\",[[23,0,[\\\"isEditModalOpen\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@onClose\\\",\\\"@modelContainerClassNames\\\",\\\"@modalDialogIsVisible\\\",\\\"@hasModalDialogHeader\\\",\\\"@hasModalOverlay\\\",\\\"@hasSectionWrapper\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@titleSuffix\\\",\\\"@closeOnOverlayClick\\\",\\\"@fitContent\\\",\\\"@modalSize\\\",\\\"@modalDialogContainerClassName\\\",\\\"@modalDialogContentClassName\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"closeDialog\\\"]]],null],\\\"documentation-features-popup\\\",[23,0,[\\\"modalDialogIsVisible\\\"]],true,[23,0,[\\\"hasModalOverlay\\\"]],false,\\\"new features\\\",true,[23,3,[]],true,true,[23,4,[]],[23,5,[]],[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/carousel\\\",[],[[\\\"@slides\\\",\\\"@onClose\\\"],[[23,0,[\\\"fetchedDocumentation\\\",\\\"_data\\\",\\\"templates\\\"]],[23,0,[\\\"closeDialog\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/content-display\\\",[],[[\\\"@content\\\"],[[23,2,[\\\"_data\\\",\\\"template\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1,2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documentation/features-popup/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documentation/sidebar/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 DocumentationSidebarComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('documentation'), _dec3 = Ember.inject.service, _class = class DocumentationSidebarComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"documentationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"users\", _descriptor3, this);\n      const documentationResource = this.args.sidebarOptions?.documentationHelp?.documentationResource;\n      const helpList = {\n        name: 'documentation/lists/resource',\n        appendPath: `isHelp/${documentationResource}`\n      };\n      const featuresList = {\n        name: 'documentation/lists/resource',\n        appendPath: `isNewFeature/${documentationResource}`\n      };\n      this.crud.addLists(this, ['documentation/lists/tags', 'statuses', helpList, featuresList]);\n    }\n    get allowedEdit() {\n      const isEditor = this.users.isDocumentationsEditor;\n      return isEditor;\n    }\n    get helpDocumentations() {\n      const documentationResource = this.args.sidebarOptions?.documentationHelp?.documentationResource;\n      const documentations = R.pathOr([], ['crud', 'lists', `documentation-lists-resource--isHelp-${documentationResource}`])(this) || [];\n      return this.visibleDocumentations(documentations);\n\n      // filters = this.search.setupFilters({ adapterName: filters._data.filtersAdapterName })\n\n      // const searchSettings = {\n      //   adapterName,\n      //   appendPath,\n      //   resultsProperty,\n      //   resultsToggle,\n      //   query,\n      //   filters\n      // }\n\n      // const results = yield this.crud.searchRecordsTask.perform(searchSettings)\n    }\n\n    /**\n     * New Features listed in the sidebar for the documentation resource.\n     * @return {Object[]} documentation models of type isNewFeature\n     */\n    get newFeaturesDocumentations() {\n      const documentationResource = this.args.sidebarOptions?.documentationHelp?.documentationResource;\n      const documentations = R.pathOr([], ['crud', 'lists', `documentation-lists-resource--isNewFeature-${documentationResource}`])(this) || [];\n      if (this.users.isDocumentationsEditor) {\n        return documentations;\n      }\n\n      // merchants, and editors with the Help Editor toggle off, must not see New Features still in setup\n      const publishedDocumentations = R.reject(documentation => documentation?._data?.setup === true)(documentations);\n      return this.visibleDocumentations(publishedDocumentations);\n    }\n\n    /**\n     * Help and New Features this app version may show.\n     * @param {Object[]} documentations - documentation models\n     * @return {Object[]}\n     */\n    visibleDocumentations(documentations) {\n      return R.filter(documentation => this.documentationService.isDocumentationVisible(documentation))(documentations);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"documentationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"users\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/documentation/sidebar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"sMphmLlS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"documentation\\\",\\\"documentation\\\",\\\"accordianContainer\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@sidebarOptions\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"allowedEdit\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@closeOnOverlayClick\\\"],[\\\"fas fa-plus\\\",\\\"help\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"documentation/documentation-edit-modal\\\",[],[[\\\"@isHelp\\\",\\\"@tab\\\",\\\"@documentationResource\\\",\\\"@onCloseDialogAction\\\",\\\"@index\\\"],[true,[23,5,[]],[23,6,[\\\"documentationHelp\\\",\\\"documentationResource\\\"]],[23,4,[]],[23,0,[\\\"helpDocumentations\\\",\\\"length\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"accordians-list accordians-features-list \\\",[28,\\\"if\\\",[[23,0,[\\\"allowedEdit\\\"]],\\\"is-editor\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"newFeaturesDocumentations\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__title-container\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"new features\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"newFeaturesDocumentations\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"accordion-help-section\\\",[],[[\\\"@fetchDocumentationList\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@tab\\\",\\\"@hasToggleIcon\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\"],[false,[23,2,[\\\"_data\\\",\\\"documentationId\\\"]],false,[23,5,[]],false,[23,2,[\\\"_data\\\",\\\"documentationResource\\\"]],[28,\\\"hash\\\",null,[[\\\"documentationId\\\"],[[23,2,[\\\"_data\\\",\\\"documentationId\\\"]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"documentation/features-popup\\\",[],[[\\\"@fetchDocumentationResource\\\",\\\"@fetchDocumentationId\\\",\\\"@onClose\\\"],[[23,2,[\\\"_data\\\",\\\"documentationResource\\\"]],[23,2,[\\\"_data\\\",\\\"documentationId\\\"]],[28,\\\"perform\\\",[[23,3,[\\\"toggleAccordianTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordians-list\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"helpDocumentations\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__title-container\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"help\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"helpDocumentations\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"accordion-help-section\\\",[],[[\\\"@hasOpenNewTabLink\\\",\\\"@fetchDocumentationList\\\",\\\"@autoFetchDocumentation\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@tab\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\"],[true,false,true,[23,1,[\\\"_data\\\",\\\"documentationId\\\"]],false,[23,5,[]],[23,1,[\\\"_data\\\",\\\"documentationId\\\"]],[23,1,[\\\"_data\\\",\\\"documentationResource\\\"]],[28,\\\"hash\\\",null,[[\\\"documentationId\\\"],[[23,1,[\\\"_data\\\",\\\"documentationId\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documentation/sidebar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documentation/viewer/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 DocumentationFeaturesPopupComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('application'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class DocumentationFeaturesPopupComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"currentSlideIndex\", _descriptor4, this);\n      _initializerDefineProperty(this, \"modalDialogIsVisible\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hasModalOverlay\", _descriptor6, this);\n      _initializerDefineProperty(this, \"fetchedDocumentation\", _descriptor7, this);\n      _defineProperty(this, \"adapterName\", 'documentation');\n    }\n    *fetchDocumentationTask() {\n      // @TODO: fetch documentation\n      const fetchDocumentationResource = this.args.fetchDocumentationResource;\n      const fetchDocumentationId = this.args.fetchDocumentationId;\n      const filters = this.search.setupFilters({\n        adapterName: 'documentation/filters'\n      });\n      if (!fetchDocumentationResource || !fetchDocumentationId) {\n        return;\n      }\n      const documentation = yield this.crud.findTask.perform({\n        adapterName: 'documentation',\n        appendPath: `${encodeURIComponent(fetchDocumentationResource)}/${encodeURIComponent(fetchDocumentationId)}`,\n        filters,\n        resultsProperty: 'results'\n      });\n      if (RA.isNilOrEmpty(documentation)) {\n        return;\n      }\n      this.fetchedDocumentation = documentation;\n    }\n    get documentation() {\n      const documentation = this.args.documentation;\n      if (RA.isNotNilOrEmpty(documentation)) {\n        return documentation;\n      }\n      return this.fetchedDocumentation;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentSlideIndex\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"modalDialogIsVisible\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasModalOverlay\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"fetchedDocumentation\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchDocumentationTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDocumentationTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documentation/viewer/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VL4TSlDU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@isPopupBtn\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@hasSectionWrapper\\\",\\\"@closeOnOverlayClick\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[\\\"more\\\",\\\"fas fa-question\\\",true,true,[23,2,[]],[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"fetchDocumentationTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfterTask\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"applicationService\\\",\\\"markAsReadTask\\\"]],[23,0,[\\\"documentation\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPath\\\"]],[23,0,[\\\"documentation\\\"]],\\\"_data.hasRead\\\",[28,\\\"hash\\\",null,[[\\\"_key\\\"],[true]]]],null]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"template\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"done\\\",[23,0,[\\\"fetchDocumentationTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"fetchDocumentationTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"documentation\\\",\\\"_data\\\",\\\"template\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documentation/viewer/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/activity-list-by-contact/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/documents/activity-list-by-contact/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SYGQx4ut\",\n    \"block\": \"{\\\"symbols\\\":[\\\"doc\\\",\\\"index\\\",\\\"detail\\\",\\\"index2\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"#\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isContactRelationshipAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"relationship\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"payment due date\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"detailsWithDiscountAndReward\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[\\\"detailsWithDiscountAndReward\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"eq\\\",[[23,4,[]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"eq\\\",[[23,4,[]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"eq\\\",[[23,4,[]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"fromMaster\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    - \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"fromMaster\\\"]],[23,3,[\\\"_data\\\",\\\"fromDocType\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,3,[\\\"_data\\\",\\\"fromDocType\\\"]],\\\"-\\\",[23,3,[\\\"_data\\\",\\\"fromDocName\\\"]]],null],[23,3,[\\\"_data\\\",\\\"fromDocType\\\"]],[23,3,[\\\"_data\\\",\\\"fromDocName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"fromMaster\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                    #\\\"],[1,[23,3,[\\\"_data\\\",\\\"fromDocNo\\\"]],false],[0,\\\"\\\\n\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isContactRelationshipAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"eq\\\",[[23,4,[]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"contactRelationship\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,3,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\\n                  \\\"],[1,[23,3,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,3,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                \\\"],[1,[23,3,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"qty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"number\\\",[[23,3,[\\\"_data\\\",\\\"qty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"price\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"number\\\",[[23,3,[\\\"_data\\\",\\\"price\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"exclAmt\\\"]]],[[\\\"rounding\\\"],[[23,3,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"taxAmt\\\"]]],[[\\\"rounding\\\"],[[23,3,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclAmt\\\"]]],[[\\\"rounding\\\"],[[23,3,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"paymentDueDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[23,1,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"model\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,1,[\\\"detailsWithDiscountAndReward\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"7\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\t\\\\t\\\\n              \\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasTaxRoundingDifference\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@clickToView\\\"],[[28,\\\"concat\\\",[\\\"*\\\",[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclTotal\\\"]]],[[\\\"dontWrapHtmlSafe\\\"],[true]]]],null],false,false]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"total_rounding_difference_explanation\\\"],null],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasTaxRoundingDifference\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@clickToView\\\"],[[28,\\\"concat\\\",[\\\"*\\\",[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"taxTotal\\\"]]],[[\\\"dontWrapHtmlSafe\\\"],[true]]]],null],false,false]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"total_rounding_difference_explanation\\\"],null],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,2,[]]],null],\\\"even\\\",\\\"odd\\\"],null]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"docNo\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"-\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"-\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"-\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"-\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"-\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"-\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"-\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"-\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[23,1,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"model\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"lastSearchSettings\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[24,[\\\"onPaginationTask\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/activity-list-by-contact/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/activity-list-by-details/component\", [\"exports\", \"ramda-extension\"], function (_exports, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    // showDetails: false,\n    hasTabLinks: true,\n    hasOrderDate: Ember.computed('showOrderDate', 'tab.{docType,docName}', function () {\n      if (this.showOrderDate && this.get('tab.docType') === 'sales' && this.get('tab.docName') === 'invoices') {\n        return true;\n      }\n      return false;\n    }),\n    dispatchProcessesSteps: Ember.computed('crud.lists.dispatch-lists-processes.[]', 'dispatchProcessesList.[]', function () {\n      if (this.dispatchProcessesList) {\n        return this.dispatchProcessesList;\n      }\n      return R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n    })\n  });\n});","define(\"client/pods/components/documents/activity-list-by-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"T/5ViYo4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"@isSetWithChoices\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOrderDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"order date\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOrderDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"expected dispatch date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          #\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"docType\\\"]],\\\"sales\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"inventory out\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"inventory in\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOrderDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n                  \\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"_key\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\" - \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"contactKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\\n              \\\"],[1,[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"ref\\\"]],[23,1,[\\\"_data\\\",\\\"ref\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\" \\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclPrice\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"percentage\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n          \\\\n\\\"],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\\n\\\"],[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"taxAmt\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[23,1,[\\\"doc\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onPaginationTask\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"lastSearchSettings\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[24,[\\\"onPaginationTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"no data\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/activity-list-by-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/activity-list/component\", [\"exports\", \"client/mixins/dispatch\", \"ramda-extension\"], function (_exports, _dispatch, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_dispatch.default, {\n    crud: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    showDetails: false,\n    hasTabLinks: true,\n    hasOrderDate: Ember.computed('showOrderDate', 'tab.{docType,docName}', function () {\n      if (this.showOrderDate && this.get('tab.docType') === 'sales' && this.get('tab.docName') === 'invoices') {\n        return true;\n      }\n      return false;\n    }),\n    dispatchProcessesSteps: Ember.computed('crud.lists.dispatch-lists-processes.[]', 'dispatchProcessesList.[]', function () {\n      if (this.dispatchProcessesList) {\n        return this.dispatchProcessesList;\n      }\n      return R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n    }),\n    actions: {\n      toggleView() {\n        this.toggleProperty('showDetails');\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/activity-list/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dLfjIZLN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"doc\\\",\\\"detail\\\",\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOrderDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"order date\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOrderDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"expected dispatch date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        #\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"payment method\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive total\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOrderDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"_key\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,1,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\" - \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n          \\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"contactKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,1,[\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"account last 5 digits\\\",true,\\\"u-desc\\\"]]],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"taxTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"rounding\\\"],[[23,1,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\"],[[23,1,[]],false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"isDropdownBtn\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[23,1,[]],true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"dispatch/processes-bar-container\\\",null,[[\\\"isVertical\\\",\\\"model\\\",\\\"selected\\\",\\\"steps\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\"],[true,[23,1,[]],[23,1,[\\\"_data\\\",\\\"dispatchProcess\\\"]],[24,[\\\"dispatchProcessesSteps\\\"]],\\\"_data.code\\\",\\\"_data.name\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isDispatched\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager\\\",null,[[\\\"document\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideActions\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/print-btn\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\\n                \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"subHeaderComponent\\\",\\\"detailsComponent\\\",\\\"title\\\",\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\"],[\\\"documents/document-print/sub-header-references\\\",\\\"documents/document-print/details-prices\\\",[23,1,[\\\"_data\\\",\\\"txType\\\"]],[23,1,[]],[24,[\\\"selectedContact\\\"]],[23,3,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[23,2,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\\n                      \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,2,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n                    \\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\\n                      \\\"],[1,[23,2,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n                    \\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\\n                      \\\"],[1,[23,2,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n                      \\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"exclPrice\\\"]]],null],false],[0,\\\"  \\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"taxRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"percentage\\\",[[23,2,[\\\"_data\\\",\\\"taxRate\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"  \\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"  \\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"taxAmt\\\"]]],null],false],[0,\\\"  \\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"  \\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,1,[\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"6\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\t\\\\t\\\\n                    \\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[23,1,[\\\"_data\\\",\\\"notes\\\"]],\\\"div\\\"]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onPaginationTask\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"lastSearchSettings\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[24,[\\\"onPaginationTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/activity-list/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/batch/status/component\", [\"exports\", \"ramda-adjunct\", \"@glimmer/component\"], function (_exports, RA, _component) {\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;\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 DocumentsBatchStatusComponent = _exports.default = (_dec = Ember.inject.service('dispatch'), _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class DocumentsBatchStatusComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor, this);\n      _initializerDefineProperty(this, \"showModal\", _descriptor2, this);\n    }\n    get successfulCount() {\n      return this.args.batch?.successful?.length || 0;\n    }\n    get unsuccessfulCount() {\n      return this.args.batch?.unsuccessful?.length || 0;\n    }\n    get warningCount() {\n      return this.args.batch?.warning?.length || 0;\n    }\n    get hasWarnings() {\n      return this.warningCount > 0;\n    }\n\n    // A warned document is already counted as successful or unsuccessful, so warnings are left out\n    // to keep this in step with the batch total.\n    get processedCount() {\n      return this.successfulCount + this.unsuccessfulCount;\n    }\n\n    // Any recorded outcome at all, which is what decides whether there is a table worth showing.\n    // Kept emptiness-based rather than count-based: print-content-container passes a raw waybill\n    // response, where successful is the waybill HTML string rather than an array of documents.\n    get hasAnyStatus() {\n      const batch = this.args.batch || {};\n      return RA.isNotNilOrEmpty(batch.successful) || RA.isNotNilOrEmpty(batch.unsuccessful) || RA.isNotNilOrEmpty(batch.warning);\n    }\n    get batchTotal() {\n      return this.args.batchTotal || this.processedCount;\n    }\n    get remainingCount() {\n      const remaining = this.batchTotal - this.processedCount;\n      return remaining > 0 ? remaining : 0;\n    }\n    get successPercentage() {\n      if (!this.batchTotal) {\n        return 0;\n      }\n      return Math.round(this.successfulCount / this.batchTotal * 100);\n    }\n    get unsuccessfulPercentage() {\n      if (!this.batchTotal) {\n        return 0;\n      }\n      return Math.round(this.unsuccessfulCount / this.batchTotal * 100);\n    }\n    get isRunning() {\n      return this.dispatchService.generateAndDownloadWaybillsTask.isRunning;\n    }\n\n    // onClose also fires from the modal's will-destroy hook, which runs inside a render when the\n    // parent's `{{#if}}` gate flips (e.g. a socket push clears the last unsuccessful entry).\n    // Resetting the batch synchronously there writes tracked state that was already read in the\n    // same render and trips Ember's backtracking assertion, so the reset is deferred to the next\n    // run loop.\n    onClose(onCloseDialogAction) {\n      const resetStatus = this.args.resetStatus;\n      if (resetStatus) {\n        Ember.run.next(() => resetStatus());\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showModal\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/batch/status/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"STTKhWKW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"document\\\",\\\"document\\\",\\\"document\\\",\\\"@batch\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\"],[true,[23,0,[\\\"hasAnyStatus\\\"]],[23,0,[\\\"onClose\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width u-v-align-top\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,0,[\\\"hasWarnings\\\"]],\\\"u-third-width\\\",\\\"u-half-width\\\"],null],\\\" has-text-centered\\\"]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\" (\\\"],[1,[23,0,[\\\"successfulCount\\\"]],false],[0,\\\")\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,0,[\\\"hasWarnings\\\"]],\\\"u-third-width\\\",\\\"u-half-width\\\"],null],\\\" error-msg has-text-centered\\\"]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\" (\\\"],[1,[23,0,[\\\"unsuccessfulCount\\\"]],false],[0,\\\")\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasWarnings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-third-width has-text-warning has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"warning\\\"],null],false],[0,\\\" (\\\"],[1,[23,0,[\\\"warningCount\\\"]],false],[0,\\\")\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"#\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"successful\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                #\\\"],[1,[23,4,[\\\"docNo\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,4,[\\\"ref\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"#\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"error message\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"unsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@classNames\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[\\\"u-link--text\\\",[23,3,[\\\"_key\\\"]],[28,\\\"tt\\\",[\\\"sales-invoices\\\"],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",\\\"sales-invoices\\\",\\\"sales\\\",\\\"invoices\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  #\\\"],[1,[23,3,[\\\"docNo\\\"]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,3,[\\\"ref\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,3,[\\\"message\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasWarnings\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"#\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"message\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"warning\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@classNames\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[\\\"u-link--text\\\",[23,2,[\\\"_key\\\"]],[28,\\\"tt\\\",[\\\"sales-invoices\\\"],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",\\\"sales-invoices\\\",\\\"sales\\\",\\\"invoices\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    #\\\"],[1,[23,2,[\\\"docNo\\\"]],false],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,2,[\\\"ref\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,2,[\\\"message\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"batch-status-summary__count\\\"],[8],[1,[23,0,[\\\"processedCount\\\"]],false],[0,\\\" / \\\"],[1,[23,0,[\\\"batchTotal\\\"]],false],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-ban\\\",[23,0,[\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onClose\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/batch/status/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/btn-collect-payment-now/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 DocumentsBtnCollectPaymentNowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class DocumentsBtnCollectPaymentNowComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"cards\", _descriptor3, this);\n      _initializerDefineProperty(this, \"selectedCcId\", _descriptor4, this);\n    }\n    get isSubmitDisabled() {\n      return RA.isNilOrEmpty(this.selectedCcId);\n    }\n    *fetchCardsTask() {\n      const contactKey = this.args?.model?._data?.contactKey;\n      if (!contactKey) {\n        this.cards = [];\n        return;\n      }\n      try {\n        const response = yield this.server.call('GET', `api/protected/admin/payments/card/contact/${contactKey}`);\n        const rawCards = response?.data || [];\n        const cards = R.map(card => {\n          const last4 = card.ccNumberLastFour || '';\n          const brand = card.ccBrand || '';\n          const holder = card.ccHolder || '';\n          const expiry = card.ccExpiry || '';\n          const defaultTag = card.isDefault ? ` (${this.intl.t('default')})` : '';\n          const cardLabel = `${brand}${last4 ? ` •••• ${last4}` : ''}${expiry ? ` ${expiry}` : ''}${holder ? ` - ${holder}` : ''}${defaultTag}`.trim();\n          return {\n            ...card,\n            cardLabel\n          };\n        })(rawCards);\n        this.cards = cards;\n        const defaultCard = R.find(R.propEq('isDefault', true))(cards);\n        this.selectedCcId = defaultCard?.ccId || cards[0]?.ccId || '';\n      } catch (error) {\n        this.cards = [];\n        this.selectedCcId = '';\n        throw error;\n      }\n    }\n    *collectPaymentTask(onCloseDialogAction) {\n      const docKey = this.args?.model?._data?._key;\n      const ccId = this.selectedCcId;\n      yield this.server.call('POST', `api/protected/admin/payments/card/sales/invoices/collect-payment-now/${docKey}`, {\n        ccId\n      });\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      const onAfterCollect = this.args?.onAfterCollect;\n      if (onAfterCollect) {\n        onAfterCollect();\n      }\n    }\n\n    /**\n     * Store the selected card id from a ListDropdown item.\n     * @param {Object} card Selected card row from the dropdown\n     * @returns {undefined}\n     */\n    onSelectCard(card) {\n      this.selectedCcId = card?.ccId || '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"cards\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"selectedCcId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchCardsTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCardsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"collectPaymentTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"collectPaymentTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectCard\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectCard\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/btn-collect-payment-now/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"RNTlS3zC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@modalDialogTitle\\\",\\\"@onSubmit\\\"],[\\\"fas fa-credit-card\\\",\\\"collect payment now\\\",[23,0,[\\\"collectPaymentTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"collectPaymentTask\\\",\\\"isRunning\\\"]],\\\"collect payment now\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchCardsTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchCardsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"cards\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"credit card\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"cards\\\"]],\\\"ccId\\\",\\\"cardLabel\\\",[23,0,[\\\"selectedCcId\\\"]],[23,0,[\\\"onSelectCard\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"cancel\\\",[23,1,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-credit-card\\\",\\\"confirm collect payment\\\",\\\"is-primary\\\",[28,\\\"or\\\",[[23,0,[\\\"isSubmitDisabled\\\"]],[23,0,[\\\"collectPaymentTask\\\",\\\"isRunning\\\"]]],null],[23,0,[\\\"collectPaymentTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"collectPaymentTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"no saved credit cards found for this member\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/btn-collect-payment-now/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/btn-merge/component\", [\"exports\", \"ramda\", \"ember-concurrency\", \"client/utils/nventor\", \"client/mixins/crud\"], function (_exports, R, _emberConcurrency, _nventor, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    tagName: '',\n    label: '',\n    bigService: Ember.inject.service('big'),\n    init() {\n      this._super(...arguments);\n      const mergeModel = Ember.Object.create({\n        documents: []\n      });\n      this.set('mergeModel', mergeModel);\n      this.set('toMergeDirty', '');\n    },\n    hasDuplicates: Ember.computed('model._data.{transporterKey,address}', 'duplicateAddressesDocNos.[]', function () {\n      const model = this.model;\n      const modelAddress = this.get('model._data.address');\n      const modelContact = this.get('model._data.contact');\n      const duplicates = this.duplicateAddressesDocNos || [];\n      const transporterKey = this.get('model._data.transporterKey');\n      const found = R.filter(duplicate => {\n        const hasSameContact = R.equals(duplicate?.contact, modelContact);\n        if (!hasSameContact) {\n          return false;\n        }\n        const hasSameAddress = R.equals(duplicate?.value, modelAddress);\n        if (!hasSameAddress) {\n          return false;\n        }\n        const hasSameDocType = R.equals(duplicate?.docType, model?._data?.docType);\n        if (!hasSameDocType) {\n          return false;\n        }\n        const hasSameDocName = R.equals(duplicate?.docName, model?._data?.docName);\n        if (!hasSameDocName) {\n          return false;\n        }\n        return true;\n      })(duplicates);\n      if (!R.isEmpty(found)) {\n        const DuplicateDocumentModel = Ember.Object.extend({\n          label: Ember.computed('docNo', 'ref', function () {\n            let label = `#${this.docNo}`;\n            if (this.ref) {\n              label += ` : ${this.ref}`;\n            }\n            return label;\n          })\n        });\n        return R.map(docData => {\n          docData.disabled = false;\n          if (docData.transporterKey !== transporterKey) {\n            docData.disabled = true;\n          }\n          return DuplicateDocumentModel.create(docData);\n        }, found);\n      }\n      return false;\n    }),\n    allowMergeWith: Ember.computed('model._data.docNo', 'allowMerge', 'hasDuplicates.[]', function () {\n      if (!this.allowMerge) {\n        return [];\n      }\n      const docNo = this.get('model._data.docNo');\n      const duplicates = this.hasDuplicates || [];\n      return R.reject(doc => {\n        const duplicateDocNo = doc.docNo || '';\n        if (duplicateDocNo === docNo) {\n          return true;\n        }\n        return false;\n      })(duplicates);\n    }),\n    allowMerge: Ember.computed('model._data.isDispatched', 'hasDuplicates.[]', function () {\n      const model = this.model;\n      const isDispatched = model.getData('isDispatched');\n      if (isDispatched) {\n        return false;\n      }\n      if (this.hasDuplicates) {\n        return true;\n      }\n      return false;\n    }),\n    hasNoMergeDocuments: Ember.computed('mergeModel.documents.[]', function () {\n      const docs = this.get('mergeModel.documents') || [];\n      return R.isEmpty(docs);\n    }),\n    mergeDocumentsTask: (0, _emberConcurrency.task)(function* () {\n      this.set('mergedDetails', []);\n      this.set('toMergeWithModels', []);\n      const documents = this.get('mergeModel.documents') || [];\n      const model = this.model;\n      const adapterName = model.get('docAdapterName');\n      const mergeToMaster = model.getData('_key');\n      const toMergeDirty = this.setupDirty({\n        adapterName,\n        model\n      });\n      const mergedWith = [];\n      toMergeDirty.setData('mergedWith', mergedWith);\n      const q = R.map(docNo => {\n        return this.findConcurrentTask.perform({\n          adapterName,\n          appendPath: `/doc/${docNo}`\n        });\n      }, documents);\n      let toMergeWithDocumentModels = yield (0, _emberConcurrency.all)(q);\n      let newDiscountAmount = this.bigService.newBig(toMergeDirty.getData('discountAmount'));\n      let newRewardAmount = this.bigService.newBig(toMergeDirty.getData('rewardAmountTotal'));\n      let newRewardInclTotal = this.bigService.newBig(toMergeDirty.getData('rewardInclTotal'));\n      let newRewardPointApplied = this.bigService.newBig(toMergeDirty.getData('rewardPointApplied'));\n      let newRewardAmountTotalWithoutPromoCode = this.bigService.newBig(toMergeDirty.getData('rewardAmountTotalWithoutPromoCode'));\n      let groupedDocumentModels = toMergeDirty.getData('groups') || [];\n      R.forEach(docModel => {\n        const groups = docModel.getData('groups') || [];\n        groupedDocumentModels = R.concat(groupedDocumentModels, groups);\n      })(toMergeWithDocumentModels);\n      toMergeWithDocumentModels = R.concat(toMergeWithDocumentModels, groupedDocumentModels);\n      const toMergeWithDirtyModels = R.map(model => {\n        const dirty = this.setupDirty({\n          adapterName,\n          model\n        });\n        dirty.setData('isMerged', true);\n        dirty.setData('mergedTo', mergeToMaster);\n        mergedWith.pushObject(dirty.getData('_key'));\n        newDiscountAmount = newDiscountAmount.plus(dirty.getData('discountAmount') || 0);\n        newRewardAmount = newRewardAmount.plus(dirty.getData('rewardAmountTotal') || 0);\n        newRewardInclTotal = newRewardInclTotal.plus(dirty.getData('rewardInclTotal') || 0);\n        newRewardPointApplied = newRewardPointApplied.plus(dirty.getData('rewardPointApplied') || 0);\n        newRewardAmountTotalWithoutPromoCode = newRewardAmountTotalWithoutPromoCode.plus(dirty.getData('rewardAmountTotalWithoutPromoCode') || 0);\n        return dirty;\n      })(toMergeWithDocumentModels);\n      toMergeDirty.setData('discountAmount', newDiscountAmount.toFixed(toMergeDirty.getData('roundingCurrency')));\n      toMergeDirty.setData('rewardAmountTotal', newRewardAmount.toFixed(toMergeDirty.getData('roundingCurrency')));\n      toMergeDirty.setData('rewardInclTotal', newRewardInclTotal.toFixed(toMergeDirty.getData('roundingCurrency')));\n      toMergeDirty.setData('rewardPointApplied', newRewardPointApplied.toFixed(0));\n\n      // const mergeDetailsProps = model.get('mergeDetailsProps')\n      const isTaxExclusive = model.get('isTaxExclusive');\n      let newIndex = 0;\n      const mergedToDocNo = toMergeDirty.getData('docNo');\n      const toMergeDetailsData = R.pipe(R.concat([toMergeDirty]), R.pluck('_data'), R.pluck('details'), R.flatten, R.map(detail => {\n        if (detail?._data?.docNo !== mergedToDocNo) {\n          detail.setData('docNo', mergedToDocNo);\n          detail.setData('master', toMergeDirty.getData('master'));\n        }\n        if (isTaxExclusive) {\n          detail.setData('price', detail?._data?.exclPrice);\n        } else {\n          detail.setData('price', detail?._data?.inclPrice);\n        }\n        if (!detail?._data?.isSetChild) {\n          newIndex = newIndex + 1;\n        }\n        detail.setData('index', newIndex);\n        return detail;\n      }))(toMergeWithDirtyModels);\n      toMergeDirty.setData('details', toMergeDetailsData);\n      toMergeDirty.sumTotals();\n      this.set('toMergeDirty', toMergeDirty);\n      this.set('toMergeWithModels', toMergeWithDirtyModels);\n      // merge all details to current model\n    }).enqueue().maxConcurrency(4),\n    actions: {\n      afterMerge(onCloseDialogAction) {\n        onCloseDialogAction();\n        const onAfterMerge = this.onAfterMerge;\n        if (onAfterMerge) {\n          onAfterMerge();\n        }\n      },\n      addMergeDoc(mergeWithData, isSelected) {\n        const documents = this.get('mergeModel.documents');\n        if (isSelected) {\n          documents.pushObject(mergeWithData.docNo);\n        } else {\n          documents.removeObject(mergeWithData.docNo);\n        }\n        const uniqDocs = new Set(documents);\n        this.set('mergeModel.documents', Array.from(uniqDocs));\n      },\n      clearMergeModel() {\n        this.set('mergeModel.documents', []);\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/btn-merge/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NOWVJuE2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"mergeWithData\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allowMergeWith\\\"]]],null,{\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"list\\\",\\\"onSubmit\\\"],[\\\"fas fa-file-import\\\",\\\"merge_document\\\",[24,[\\\"allowMergeWith\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"clearMergeModel\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"allowMergeWith\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-checkbox\\\",[[12,\\\"class\\\",\\\"list-btn__item\\\"]],[[\\\"@disabled\\\",\\\"@onAfterToggle\\\"],[[23,3,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"addMergeDoc\\\",[23,3,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        #\\\"],[1,[23,3,[\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"          : \\\"],[1,[23,3,[\\\"ref\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__footer-spacer\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__footer\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"btnClassNames\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"fas fa-file-import\\\",\\\"merge_document\\\",\\\"is-primary\\\",[24,[\\\"hasNoMergeDocuments\\\"]],[24,[\\\"mergeDocumentsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"mergeDocumentsTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"toMergeDirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"documents/panel-merge\\\",null,[[\\\"model\\\",\\\"dirty\\\",\\\"toMergeWithModels\\\",\\\"appendPath\\\",\\\"onCloseDialogAction\\\",\\\"onAfterMerge\\\"],[[24,[\\\"model\\\"]],[24,[\\\"toMergeDirty\\\"]],[24,[\\\"toMergeWithModels\\\"]],\\\"final/group\\\",[23,2,[]],[28,\\\"action\\\",[[23,0,[]],\\\"afterMerge\\\",[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/btn-merge/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/btn-refund/btn-void-dialog/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 DocumentsBtnRefundBtnVoidDialogComponent = _exports.default = (_dec = Ember._tracked, _class = class DocumentsBtnRefundBtnVoidDialogComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasErrorMessage\", _descriptor, this);\n    }\n    *onSubmitVoid(onCloseDialogAction) {\n      const result = yield this.args.onSubmit();\n      const message = result?.message || '';\n      if (message === 'cannot void document') {\n        Ember.set(this, 'hasErrorMessage', true);\n      } else {\n        Ember.set(this, 'hasErrorMessage', false);\n        onCloseDialogAction();\n      }\n    }\n    get isDocSalesInvoiceWithSourceKey() {\n      const model = this.args.model;\n      const docName = model.getData('docName');\n      const docType = model.getData('docType');\n      const sourceKey = model.getData('sourceKey');\n      if (docName === 'invoices' && docType === 'sales' && sourceKey) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasErrorMessage\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSubmitVoid\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitVoid\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/btn-refund/btn-void-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D1YZSiQz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@hasReturns\\\",\\\"@isRunning\\\",\\\"@setupDirtyTask\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@btnClassNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@modalSize\\\",\\\"@closeOnOverlayClick\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@onSubmit\\\"],[\\\"void\\\",\\\"fas fa-trash\\\",\\\"button--delete\\\",[23,3,[]],[23,4,[]],\\\"small\\\",true,\\\"void\\\",true,[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"are you sure you want to void document\\\"],null],\\\": \\\",[23,2,[\\\"_data\\\",\\\"docNo\\\"]],\\\"?\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isDocSalesInvoiceWithSourceKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,2,[\\\"_data\\\",\\\"sendVoidEmail\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,2,[\\\"_data\\\",\\\"sendVoidEmail\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"send void email\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"allowCreditCardRefunds\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"tt\\\",[\\\"the system will schedule a refund after voiding the order\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasErrorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-exclamation-circle\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"cannot void because document has used reward points\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"isSalesInvoices\\\"]],[23,2,[\\\"isCashBeforeDelivery\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"documents/btn-refund/workflow\\\",[],[[\\\"@inclTotal\\\",\\\"@model\\\",\\\"@isInclTotalReadonly\\\"],[[23,2,[\\\"_data\\\",\\\"createRefundWorkflowAmount\\\"]],[23,2,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"hasAutoCancelInvoice\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"label\\\",\\\"toggleValue\\\"],[\\\"cancel invoice\\\",[23,2,[\\\"isAutoCancelInvoice\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"no\\\",[23,1,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"hasErrorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"yes\\\",[28,\\\"perform\\\",[[23,0,[\\\"onSubmitVoid\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/btn-refund/btn-void-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/btn-refund/component\", [\"exports\", \"@glimmer/component\", \"client/pods/components/documents/docConfig\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"ramda-extension\", \"ramda\"], function (_exports, _component, _docConfig, _emberConcurrencyDecorators, RA, R_, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 DocumentsBtnRefundComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('date'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._action, _class = class DocumentsBtnRefundComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"documents\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"server\", _descriptor7, this);\n      _initializerDefineProperty(this, \"hasReturns\", _descriptor8, this);\n      _initializerDefineProperty(this, \"hasNoRemainingQtys\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor0, this);\n      _initializerDefineProperty(this, \"returnsByDocNo\", _descriptor1, this);\n      _initializerDefineProperty(this, \"quickLinkFromDocType\", _descriptor10, this);\n      _initializerDefineProperty(this, \"quickLinkFromDocName\", _descriptor11, this);\n      _initializerDefineProperty(this, \"quickLinkToDocType\", _descriptor12, this);\n      _initializerDefineProperty(this, \"quickLinkToDocName\", _descriptor13, this);\n      _initializerDefineProperty(this, \"showCancelInvoiceModal\", _descriptor14, this);\n      _defineProperty(this, \"filtersAdapterName\", 'documents/filters');\n      _defineProperty(this, \"title\", `${this.intl.t('new')}: ${this.intl.t('sales-returns')}`);\n      this.setupTask.perform();\n    }\n    get quickLinkToAdapterName() {\n      return `documents/${this.quickLinkToDocType}/${this.quickLinkToDocName}`;\n    }\n    *setupTask() {\n      const allowReturns = R_.dotPath('args.model.allowReturns')(this);\n      this.quickLinkFromDocType = R_.dotPathOr('sales', 'args.quickLinkFromDocType')(this);\n      this.quickLinkFromDocName = R_.dotPathOr('invoices', 'args.quickLinkFromDocName')(this);\n      this.quickLinkToDocType = R_.dotPathOr('sales', 'args.quickLinkToDocType')(this);\n      this.quickLinkToDocName = R_.dotPathOr('returns', 'args.quickLinkToDocName')(this);\n      const config = _docConfig.default.getFor({\n        docType: this.quickLinkToDocType,\n        docName: this.quickLinkToDocName\n      });\n      const tab = Ember.Object.create({\n        config\n      });\n      this.tab = tab;\n      this.adapterName = R_.dotPath('tab.config.adapterName')(this);\n      const model = this.args.model;\n      const master = model.getData('_key');\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      filters.setData('master', master);\n      this.filters = filters;\n      if (allowReturns) {\n        yield this.fetchReturnsByDetailKeyTask.perform();\n      }\n    }\n    *fetchReturnsByDetailKeyTask() {\n      const docType = this.quickLinkFromDocType;\n      const docName = this.quickLinkFromDocName;\n      const toDocType = this.quickLinkToDocType;\n      const toDocName = this.quickLinkToDocName;\n      const model = this.args.model;\n      const returnsByDetailKey = yield this.documents.hasReturns.perform(model, {\n        docType,\n        docName,\n        toDocType,\n        toDocName\n      });\n      this.hasReturns = RA.isNotNilOrEmpty(returnsByDetailKey);\n      this.returnsByDocNo = R.pipe(R.values, R.pluck('docData'), R.flatten, R.groupBy(R.prop('docNo')), R.map(groupData => {\n        const first = R.head(groupData);\n        first.details = R.pipe(R.pluck('details'), R.flatten)(groupData);\n        return first;\n      }), R.values)(returnsByDetailKey);\n      this.hasNoRemainingQtys = R.pipe(R.pathOr([], ['_data', 'details']), R.reduce((acc, detail) => {\n        if (acc === false) {\n          return false;\n        }\n        const originalQty = parseInt(detail.getData('qty')) || 0;\n        const detailKey = detail.getData('_key');\n        const allReturnedQty = parseInt(R.path([detailKey, 'qty'])(returnsByDetailKey)) || 0;\n        return allReturnedQty >= originalQty;\n      }, true))(model);\n      return returnsByDetailKey;\n    }\n    *setupDirtyTask() {\n      const model = this.args.model;\n      const hasAutoCancelInvoice = R.pathOr(false, ['lastSuccessfulEInvoice', '_data', 'number'], model);\n      const dirty = this.crud.setupDirty({\n        adapterName: model.adapterName,\n        model\n      });\n      dirty.set('hasAutoCancelInvoice', hasAutoCancelInvoice);\n      dirty.set('isAutoCancelInvoice', !!hasAutoCancelInvoice);\n      this._setupCreateRefundWorkflow(dirty);\n      this.dirty = dirty;\n    }\n    _setupCreateRefundWorkflow(dirty) {\n      let createRefundWorkflow = false;\n      if (dirty.isSalesInvoices || dirty.isSalesReturns) {\n        const inclTotal = dirty?._data?.inclTotal;\n        if (dirty?._data?.paymentMethodKey === 'cash' && dirty?._data?.dispatchProcess === 'dispatched') {\n          createRefundWorkflow = true;\n          dirty.setData('createRefundWorkflowAmount', inclTotal);\n        }\n        if (dirty?._data?.paymentMethodKey === 'cashBeforeDelivery' && dirty?._data?.dispatchProcess !== 'awaitingPayment') {\n          createRefundWorkflow = true;\n          dirty.setData('createRefundWorkflowAmount', inclTotal);\n        }\n      }\n      dirty.setData('createRefundWorkflow', createRefundWorkflow);\n      return dirty;\n    }\n    *setupDirtyReturnsTask(adapterName) {\n      const model = this.args.model;\n      const hasAutoCancelInvoice = R.pathOr(false, ['lastSuccessfulEInvoice', '_data', 'number'], model);\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model\n      });\n      this._setupCreateRefundWorkflow(dirty);\n      dirty.set('hasAutoCancelInvoice', hasAutoCancelInvoice);\n      dirty.set('isAutoCancelInvoice', !!hasAutoCancelInvoice);\n      const returnsByDetailKey = yield this.fetchReturnsByDetailKeyTask.perform();\n      const contactKey = dirty.getData('contactKey');\n      if (contactKey) {\n        const contact = yield this.crud.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: contactKey\n        });\n        this.selectedContact = contact;\n        dirty.set('selectedContact', contact);\n      }\n      dirty.setData('docNo', '');\n      dirty.setData('docType', this.quickLinkToDocType);\n      dirty.setData('docName', this.quickLinkToDocName);\n      dirty.setData('fromDocContactRewardsData', model.getData('contactRewardsData') || []);\n\n      // link details\n      const details = dirty.getData('details');\n      const newDetails = R.map(detail => {\n        const originalQty = parseInt(detail.getData('qty')) || 0;\n        const detailKey = detail.getData('detailKey');\n        const allReturnedQty = parseInt(R.path([detailKey, 'qty'])(returnsByDetailKey)) || 0;\n        const maxQty = originalQty - allReturnedQty;\n        detail.setData('maxQty', maxQty);\n        detail.setData('docType', this.quickLinkToDocType);\n        detail.setData('docName', this.quickLinkToDocName);\n        detail.setData('allReturnedQty', allReturnedQty);\n        const docRef = detail.getData('doc.ref') || model.getData('ref');\n        detail.setData('fromRef', docRef);\n        detail.setData('originalQty', originalQty);\n        detail.setData('qty', 0);\n\n        // always use original price\n        detail.setData('originalPrice', detail.getData('price'));\n        detail.setData('price', detail.getData('price'));\n        detail.setData('exclPrice', detail.getData('discExclPrice'));\n        detail.setData('inclPrice', detail.getData('discInclPrice'));\n        detail.setData('fromDocType', model.getData('docType'));\n        detail.setData('fromDocName', model.getData('docName'));\n        detail.setData('fromDocNo', model.getData('docNo'));\n        detail.setData('fromDocKey', model.getData('_key'));\n        detail.setData('fromMaster', model.getData('_key'));\n        detail.setData('fromDetail', detail.getData('_key'));\n        detail.setData('fromDetailKey', detailKey);\n        let supplierKey = detail.getData('supplierKey') || '';\n        let supplierName = detail.getData('supplierName') || '';\n        detail.setData('supplierKey', supplierKey);\n        detail.setData('supplierName', supplierName);\n\n        // @NOTE: ensure has paymentCreditCardTransActionCode\n\n        if (dirty.get('isAllowPartialCreditCardRefund')) {\n          detail.setData('paymentCreditCardStatus', this.constants.paymentCreditCardStatus.refundRequested);\n          if (dirty.getData('paymentCreditCardTransactionCode') && !detail.getData('paymentCreditCardTransactionCode')) {\n            detail.setData('paymentCreditCardTransactionCode', dirty.getData('paymentCreditCardTransactionCode'));\n            detail.setData('paymentCreditCardTransactionTimestampZ', dirty.getData('paymentCreditCardTransactionTimestampZ'));\n          }\n        }\n        return detail;\n      })(details);\n      dirty.setData('details', newDetails);\n      dirty.sumTotals();\n      this.dirty = dirty;\n    }\n    *createReturnsRecordTask({\n      appendPath = 'final',\n      onAfter\n    }) {\n      const adapterName = this.adapterName;\n      const dirty = this.dirty;\n      dirty.setData('dispatchStatus', '');\n      dirty.setData('dispatchProcess', '');\n      dirty.setData('dispatchDateZ', '');\n      dirty.setData('waybill', '');\n      dirty.setData('created', '');\n      dirty.setData('modified', '');\n      dirty.setData('dateZ', '');\n      dirty.setData('timestampZ', '');\n      dirty.setData('timestampZ_latest', '');\n      const details = R.pathOr([], ['_data', 'details'])(dirty);\n      const nonZeroDetails = R.pipe(R.map(detail => {\n        if (detail?._data?.isSetChild) {\n          // if (!detail?._data?.isSetWithChoicesChild) {\n          const needle = [R.pathEq(['_data', 'index'], detail?._data?.index), R.pathEq(['_data', 'itemKey'], detail?._data.isSetChildOf)];\n          // } else if (detail?._data?.isSetWithChoicesChild) {\n          //   needle = [\n          //     R.propEq('childIndex', detail?._data?.childIndex),\n          //     R.propEq('itemKey', detail?._data.isSetChildOf)\n          //   ]\n          // }\n          const parent = R.find(R.allPass(needle))(details);\n          const parentQty = parent?._data?.qty || 0;\n          if (parentQty) {\n            const childQty = detail?._data?.childQty || 1;\n            const qty = childQty * parentQty;\n            detail.setData('qty', qty);\n          }\n        }\n        return detail;\n      }), R.filter(detail => {\n        // dont filter out child items\n        const qty = parseInt(R.path(['_data', 'qty'])(detail)) || 0;\n        return R.gt(qty)(0);\n      }))(details);\n      dirty.setData('details', nonZeroDetails);\n      const isAutoCancelInvoice = dirty.get('isAutoCancelInvoice');\n      return yield this.crud.createRecordTask.perform({\n        adapterName,\n        appendPath,\n        model: dirty,\n        rawResponse: true,\n        onAfter,\n        onAfterOptions: {\n          isAutoCancelInvoice,\n          wasSaved: true\n        }\n      });\n    }\n    onAfter(onCloseDialogAction, saved, savedOptions = {}) {\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      this.fetchReturnsByDetailKeyTask.perform();\n\n      // @Derek\n      // @NOTE: this prevents onAfter from being called, which will not ask e-invoices to be cancelled\n      // think of a better way to do this\n      // if (this.args.onRefresh) {\n      //   const model = this.args?.model\n      //   this.args?.onRefresh?.(model)\n      // }\n\n      if (this.args.onAfterReturns) {\n        this.args.onAfterReturns(saved, savedOptions);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"documents\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hasReturns\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"hasNoRemainingQtys\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"returnsByDocNo\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"quickLinkFromDocType\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"quickLinkFromDocName\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"quickLinkToDocType\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"quickLinkToDocName\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"showCancelInvoiceModal\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchReturnsByDetailKeyTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchReturnsByDetailKeyTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDirtyTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirtyTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDirtyReturnsTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirtyReturnsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createReturnsRecordTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"createReturnsRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAfter\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfter\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/btn-refund/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+/xaH9VJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"returnDoc\\\",\\\"returnDetail\\\",\\\"@onToggleIsVoidTask\\\",\\\"@isRunning\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[\\\"allowReturns\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@badge\\\",\\\"@hasBadge\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[28,\\\"count\\\",[[23,0,[\\\"returnsByDocNo\\\"]]],null],[23,0,[\\\"returnsByDocNo\\\"]],\\\"fas fa-minus-circle\\\",[28,\\\"or\\\",[[23,5,[]],[23,0,[\\\"fetchReturnsByDetailKeyTask\\\",\\\"isRunning\\\"]],[23,4,[\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchReturnsByDetailKeyTask\\\"]]],null],\\\"sales-returns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"returnsByDocNo\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-left list-results__item width__fit-content\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[false,[23,2,[\\\"master\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,2,[\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"docName\\\"]]],null],[23,2,[\\\"docType\\\"]],[23,2,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n            #\\\"],[1,[23,2,[\\\"docNo\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,2,[\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            @ \\\"],[1,[28,\\\"date\\\",[[23,2,[\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[23,3,[\\\"item\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"itemCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[23,3,[\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[23,3,[\\\"unit\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"number\\\",[[23,3,[\\\"qty\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"postDiscExclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"postDiscInclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,0,[\\\"hasReturns\\\"]],\\\"modal-container__footer-spacer\\\"],null]]]],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,0,[\\\"hasReturns\\\"]],\\\"modal-container__footer\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"documents/btn-refund/btn-void-dialog\\\",[],[[\\\"@hasReturns\\\",\\\"@model\\\",\\\"@onToggleIsVoidTask\\\",\\\"@onAfter\\\",\\\"@isRunning\\\",\\\"@setupDirtyTask\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"hasReturns\\\"]],[23,0,[\\\"dirty\\\"]],[23,4,[]],[23,0,[\\\"onAfter\\\"]],[23,4,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setupDirtyTask\\\"]]],null],[28,\\\"perform\\\",[[23,4,[]],[28,\\\"hash\\\",null,[[\\\"dirty\\\",\\\"onAfter\\\"],[[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onAfter\\\"]],false],null]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"allowReturns\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@onSubmit\\\"],[\\\"fas fa-minus-circle\\\",\\\"sales return\\\",[23,0,[\\\"setupDirtyReturnsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"hasNoRemainingQtys\\\"]],[23,0,[\\\"title\\\"]],false,[28,\\\"perform\\\",[[23,0,[\\\"setupDirtyReturnsTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"documents/panel-refund\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"dirty\\\",\\\"isQuickLinkDoc\\\",\\\"quickLinkFromDocNo\\\",\\\"quickLinkFromDocType\\\",\\\"quickLinkFromDocName\\\",\\\"quickLinkToDocType\\\",\\\"quickLinkToDocName\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"createReturnsRecordTask\\\",\\\"onAfter\\\",\\\"showRefundWorkflow\\\"],[[23,0,[\\\"tab\\\"]],[23,6,[]],[23,0,[\\\"dirty\\\"]],true,[23,6,[\\\"_data\\\",\\\"docNo\\\"]],[23,0,[\\\"quickLinkFromDocType\\\"]],[23,0,[\\\"quickLinkFromDocName\\\"]],[23,0,[\\\"quickLinkToDocType\\\"]],[23,0,[\\\"quickLinkToDocName\\\"]],false,\\\"return qty\\\",[23,0,[\\\"createReturnsRecordTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onAfter\\\"]],[23,1,[]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"documents/btn-refund/btn-void-dialog\\\",[],[[\\\"@hasReturns\\\",\\\"@model\\\",\\\"@onToggleIsVoidTask\\\",\\\"@onAfter\\\",\\\"@isRunning\\\",\\\"@setupDirtyTask\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"hasReturns\\\"]],[23,0,[\\\"dirty\\\"]],[23,4,[]],[23,0,[\\\"onAfter\\\"]],[28,\\\"or\\\",[[23,5,[]],[23,0,[\\\"fetchReturnsByDetailKeyTask\\\",\\\"isRunning\\\"]],[23,4,[\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"setupDirtyTask\\\"]]],null],[28,\\\"perform\\\",[[23,4,[]],[28,\\\"hash\\\",null,[[\\\"dirty\\\",\\\"onAfter\\\"],[[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onAfter\\\"]],false],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/btn-refund/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/btn-refund/workflow/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DocumentsBtnRefundWorkflowComponent extends _component.default {}\n  _exports.default = DocumentsBtnRefundWorkflowComponent;\n});","define(\"client/pods/components/documents/btn-refund/workflow/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"agz2hGsK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@isInclTotalReadonly\\\",\\\"@inclTotal\\\",\\\"@isReadOnly\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\",\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,4,[]],[23,1,[\\\"_data\\\",\\\"createRefundWorkflow\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,1,[\\\"_data\\\",\\\"createRefundWorkflow\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"create workflow\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"refund\\\"],null],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"createRefundWorkflow\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\"],[\\\"refund reminder amount\\\",[23,0,[\\\"errors\\\"]],\\\"inclTotal\\\",[23,1,[]],\\\"workflows\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,2,[]],false,[23,3,[]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/btn-refund/workflow/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/btn-split/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    label: '',\n    splitQtyLabel: 'dispatched',\n    actions: {\n      afterSplit(onCloseDialogAction) {\n        onCloseDialogAction();\n        const onAfterSplit = this.onAfterSplit;\n        if (onAfterSplit) {\n          onAfterSplit();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/btn-split/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2r9/fU3w\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"allowSplit\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\"],[[24,[\\\"icon\\\"]],\\\"split_document\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"documents/panel-split\\\",null,[[\\\"model\\\",\\\"label\\\",\\\"splitQtyLabel\\\",\\\"appendPath\\\",\\\"onCloseDialogAction\\\",\\\"onAfterSplit\\\"],[[24,[\\\"model\\\"]],[24,[\\\"label\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"splitAppendPath\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"afterSplit\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/btn-split/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/btn-ungroup/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, _ramdaAdjunct) {\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 DocumentsBtnUngroupComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class DocumentsBtnUngroupComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"server\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n    }\n    *ungroupDocumentsTask() {\n      const model = this.args?.model || {};\n      const adapterName = model.get('docAdapterName');\n      const adapter = this.crud.getAdapter(adapterName);\n      const path = adapter.getPath('resourcePath', 'final/ungroup');\n      const docData = model.serialize();\n      const data = {\n        docData\n      };\n      yield this.server.call('PATCH', path, data);\n      const onAfterMerge = this.args?.onAfterMerge;\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(onAfterMerge)) {\n        onAfterMerge();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"ungroupDocumentsTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"ungroupDocumentsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/btn-ungroup/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JtB6lEvG\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"elements/element-btn\\\",[],[[\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"ungroup_document\\\",\\\"fas fa-file-circle-minus\\\",[28,\\\"perform\\\",[[23,0,[\\\"ungroupDocumentsTask\\\"]]],null],[23,0,[\\\"ungroupDocumentsTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/btn-ungroup/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/bulk/insert-helper/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\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  let DocumentsBulkInsertHelperComponent = _exports.default = (_class = class DocumentsBulkInsertHelperComponent extends _component.default {\n    get bulkInsertInstructionsLabel() {\n      const bulkInsertInstructions = this.args.bulkInsertInstructions || {};\n      const fields = R.pipe(R.propOr([], 'fields'), R.map(field => {\n        return `[${field}]`;\n      }))(bulkInsertInstructions);\n      const separator = bulkInsertInstructions.separator || '=';\n      return R.join(` ${separator} `)(fields);\n    }\n    *bulkInsertDetailsTask(onCloseDialogAction, bulkInsertInstructions) {\n      yield this.args.onBulkInsertDetailsTask.perform(bulkInsertInstructions);\n      onCloseDialogAction();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"bulkInsertDetailsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"bulkInsertDetailsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/bulk/insert-helper/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"O1vsnuL9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@outerFormInitData\\\",\\\"@bulkInsertInstructions\\\",\\\"@onBulkInsertDetailsTask\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\"],[true,\\\"fa-regular fa-rectangle-list\\\",\\\"bulk insert products\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,3,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"documentsBulkInsertHelper\\\",false,true,[28,\\\"if\\\",[[23,7,[]],[23,7,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"documents\\\",false,[23,6,[]],[23,5,[]],[23,4,[]]]]]],null],[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"bulkInsertInstructions_group\\\",[23,2,[]],\\\"bulk insert products\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"bulkInsertInstructions\\\",\\\"documents\\\",\\\"bulk insert products into document\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"autofocus\\\",\\\"value\\\",\\\"rows\\\"],[true,[23,8,[\\\"instructions\\\"]],10]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"separator\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[\\\"=\\\",[23,8,[\\\"separator\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,0,[\\\"bulkInsertInstructionsLabel\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"bulkInsertDetailsTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"next\\\",[23,0,[\\\"bulkInsertDetailsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"bulkInsertDetailsTask\\\"]],[23,1,[]],[23,8,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/bulk/insert-helper/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/copy-document-contents-btn/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _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 DocumentsCopyDocumentContentsBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _class = class DocumentsCopyDocumentContentsBtnComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"application\", _descriptor, this);\n      _initializerDefineProperty(this, \"isSetup\", _descriptor2, this);\n      _initializerDefineProperty(this, \"separator\", _descriptor3, this);\n      _initializerDefineProperty(this, \"listSelectorVersion\", _descriptor4, this);\n      _initializerDefineProperty(this, \"priceKindList\", _descriptor5, this);\n      _initializerDefineProperty(this, \"listSelectorModel\", _descriptor6, this);\n      _initializerDefineProperty(this, \"includeQty\", _descriptor7, this);\n      _initializerDefineProperty(this, \"includePrice\", _descriptor8, this);\n    }\n    setup() {\n      this.isSetup = false;\n      this.includeQty = true;\n      this.includePrice = true;\n      const isTaxExclusive = this.args.model?.isTaxExclusive ?? false;\n      this.listSelectorModel = Ember.Object.create({\n        priceKind: isTaxExclusive ? 'excl' : 'incl'\n      });\n      this.priceKindList = [Ember.Object.create({\n        _data: {\n          label: 'exclusive price',\n          value: 'excl'\n        }\n      }), Ember.Object.create({\n        _data: {\n          label: 'inclusive price',\n          value: 'incl'\n        }\n      })];\n      this.isSetup = true;\n    }\n    close() {\n      this.isSetup = false;\n    }\n    onListSelectorChange() {\n      this.listSelectorVersion++;\n    }\n    onIncludeQtyToggle(isSelected) {\n      this.includeQty = isSelected;\n      if (!isSelected) {\n        this.includePrice = false;\n      }\n    }\n    onIncludePriceToggle(isSelected) {\n      if (!this.includeQty) {\n        return;\n      }\n      this.includePrice = isSelected;\n    }\n    get useExclPrice() {\n      return this.listSelectorVersion, this.listSelectorModel.get('priceKind') === 'excl';\n    }\n    set useExclPrice(v) {\n      this.listSelectorModel.set('priceKind', v ? 'excl' : 'incl');\n      this.listSelectorVersion++;\n    }\n    get generatedText() {\n      const details = this.args.model?.sorted || [];\n      const sep = ` ${this.separator} `;\n      const lines = details.map(detail => {\n        const parts = [detail?._data?.itemCode || detail?._data?.item];\n        if (this.includeQty) {\n          parts.push(detail?._data?.qty);\n        }\n        if (this.includePrice) {\n          const price = this.useExclPrice ? detail?._data?.exclPrice : detail?._data?.price;\n          parts.push(price);\n        }\n        return parts.join(sep);\n      });\n      return lines.join('\\n');\n    }\n    copy(onCloseDialogAction) {\n      try {\n        this.application.copyText(this.generatedText);\n        onCloseDialogAction();\n      } catch (e) {\n        (true && Ember.warn(`copy-document-contents: clipboard write failed (${e})`));\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"application\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isSetup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"separator\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '=';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"listSelectorVersion\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"priceKindList\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"listSelectorModel\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"includeQty\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"includePrice\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onListSelectorChange\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"onListSelectorChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onIncludeQtyToggle\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"onIncludeQtyToggle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onIncludePriceToggle\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"onIncludePriceToggle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copy\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"copy\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/copy-document-contents-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ESQUz+8U\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@model\\\",\\\"@outerFormInitData\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@modalDialogTitle\\\",\\\"@onSubmit\\\",\\\"@onClose\\\",\\\"@hasSectionWrapper\\\"],[true,\\\"far fa-copy\\\",\\\"copy document contents\\\",\\\"copy document contents\\\",[28,\\\"fn\\\",[[23,0,[\\\"setup\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"close\\\"]]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isSetup\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,3,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"documents-copy\\\",false,true,[28,\\\"if\\\",[[23,4,[]],[23,4,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\"],[\\\"documents\\\",false]]]],null],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"copy document contents\\\",\\\"copyDocumentContents_group\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"copyDocumentContentsQty\\\",[23,2,[]],\\\"include qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,0,[\\\"includeQty\\\"]],[23,0,[\\\"onIncludeQtyToggle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"include qty\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"copyDocumentContentsPrice\\\",[23,2,[]],\\\"include price\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\",\\\"@value\\\",\\\"@onToggleProperty\\\"],[[28,\\\"not\\\",[[23,0,[\\\"includeQty\\\"]]],null],[23,0,[\\\"includePrice\\\"]],[23,0,[\\\"onIncludePriceToggle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"include price\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"copyDocumentContentsPriceType\\\",[23,2,[]],\\\"tax method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@onDeselect\\\",\\\"@onSelect\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--horizontal\\\",[28,\\\"not\\\",[[23,0,[\\\"includePrice\\\"]]],null],[23,0,[\\\"priceKindList\\\"]],[23,0,[\\\"listSelectorModel\\\"]],[23,0,[\\\"onListSelectorChange\\\"]],[23,0,[\\\"onListSelectorChange\\\"]],\\\"_data.value\\\",true,\\\"priceKind\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"copyDocumentContentsSeparator\\\",\\\"separator\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@onInput\\\"],[[23,0,[\\\"separator\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"separator\\\"]]],null]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"copyDocumentContentsOutput\\\",\\\"output\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@value\\\",\\\"@rows\\\",\\\"@readonly\\\"],[[23,0,[\\\"generatedText\\\"]],10,true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"far fa-copy\\\",\\\"copy\\\",[28,\\\"fn\\\",[[23,0,[\\\"copy\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/copy-document-contents-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/docConfig\", [\"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    getFor({\n      docType,\n      docName\n    }) {\n      const docConfig = this[docType][docName];\n      return Object.assign({\n        docType,\n        docName,\n        adapterName: `documents/${docType}/${docName}`,\n        displayComponent: 'documents/panel-display',\n        newComponent: 'documents/panel-new',\n        editComponent: 'documents/panel-edit'\n      }, docConfig);\n    },\n    sales: {\n      consignments: {\n        dontFetchRegionCode: false,\n        hasDeliveryDate: false,\n        hasTaxNumber: true,\n        hasCommission: true,\n        allowLinking: true\n      },\n      'consignments-returns': {\n        dontFetchRegionCode: true,\n        hasDeliveryDate: false,\n        hasTaxNumber: true,\n        hasCommission: true,\n        allowLinking: true\n      },\n      invoices: {\n        dontFetchRegionCode: false,\n        hasDeliveryDate: false,\n        hasTaxNumber: true,\n        hasCommission: true,\n        allowLinking: true\n      },\n      orders: {\n        dontFetchRegionCode: true,\n        hasDeliveryDate: true,\n        hasTaxNumber: true,\n        hasCommission: true,\n        allowLinking: true\n      },\n      quotes: {\n        dontFetchRegionCode: false,\n        hasDeliveryDate: false,\n        hasValidityDate: true,\n        hasTaxNumber: true,\n        hasCommission: true,\n        allowLinking: false\n      },\n      returns: {\n        dontFetchRegionCode: false,\n        hasDeliveryDate: false,\n        hasTaxNumber: true,\n        hasCommission: true,\n        allowLinking: true\n      }\n    },\n    purchases: {\n      consignments: {\n        dontFetchRegionCode: true,\n        hasDeliveryDate: false,\n        hasTaxNumber: false,\n        hasCommission: false,\n        allowLinking: true\n      },\n      'consignments-returns': {\n        dontFetchRegionCode: true,\n        hasDeliveryDate: false,\n        hasTaxNumber: false,\n        hasCommission: false,\n        allowLinking: true\n      },\n      invoices: {\n        dontFetchRegionCode: true,\n        hasDeliveryDate: false,\n        hasTaxNumber: false,\n        hasCommission: false,\n        allowLinking: true\n      },\n      orders: {\n        dontFetchRegionCode: true,\n        hasDeliveryDate: true,\n        hasTaxNumber: false,\n        hasCommission: false,\n        allowLinking: true\n      },\n      quotes: {\n        dontFetchRegionCode: true,\n        hasDeliveryDate: false,\n        hasVadlidityDate: true,\n        hasTaxNumber: false,\n        hasCommission: false,\n        allowLinking: false\n      },\n      returns: {\n        dontFetchRegionCode: true,\n        hasDeliveryDate: false,\n        hasTaxNumber: false,\n        hasCommission: false,\n        allowLinking: true\n      }\n    }\n  };\n});","define(\"client/pods/components/documents/document-print/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency\"], function (_exports, R, RA, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    server: Ember.inject.service(),\n    ifetch: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    classNames: ['u-print-container'],\n    hasPrices: true,\n    hasPrintBtn: true,\n    hasImages: false,\n    hasPrintTerms: true,\n    imageHeight: 48,\n    // 32 (actual image height) + 16 (margin)\n    imagesSize: 30,\n    originalRows: Ember.A([]),\n    // @NOTE: PAGE SIZE INFO\n    // A4: 210 × 297 millimeters OR 8.27 × 11.69 inches\n    // US Letter: 216 × 279 millimeters or 8.5 × 11 inches\n    // pixels (1px = 1/96th of 1in)\n    // inches (1in = 96px = 2.54cm)\n\n    // work out height in px for given page size\n    // A4 SIZES:\n    //  HEIGHT: 11.69*96 = 1122.24 ~ round to: 1122px for A4\n    //  WIDTH: 8.27*96 = 793.92 ~ round to: 793px\n    //\n    // US LETTER\n    // 11*96 = 1056\n\n    init() {\n      this.set('firstRender', true);\n      this.set('page', {\n        a4: 1040\n      });\n      this.crud.addLists(this, ['documents/lists/print', 'documents/lists/print/images-size', 'documents/lists/print/returns-display', 'documents/lists/print/barcodes-mode']);\n      this._super(...arguments);\n\n      // const model = this.model\n      // const details = model.getData('details')\n      // const details = model.detailsWithDiscountAndReward\n      const details = this.allDetails;\n      const pagesData = [{\n        page: 1,\n        details: details,\n        isLastPageWithDetails: false\n      }];\n      this.set('pagesData', pagesData);\n      if (!this.isDispatchPrinting) {\n        const printImagesOnDocuments = this?.settings?.settingsModel?._data?.printImagesOnDocuments || false;\n        if (printImagesOnDocuments) {\n          this.set('hasImages', true);\n        }\n        const printImagesSize = Number(this?.settings?.settingsModel?._data?.printImagesSize) || 30;\n        if (printImagesSize) {\n          this.set('imagesSize', printImagesSize);\n        }\n      }\n      this.applySidebarDeliveryNotePrintSettings();\n      this._setPrintReturnsDisplay();\n      if (RA.isNilOrEmpty(this.deliveryNotePrintSettings)) {\n        const settingsData = this.settings?.settingsModel?._data || {};\n        this.set('deliveryNotePrintSettings', Ember.Object.create({\n          showTelephoneOnDeliveryNotes: settingsData?.showTelephoneOnDeliveryNotes ?? true,\n          showTaxNumberOnDeliveryNotes: settingsData?.showTaxNumberOnDeliveryNotes ?? true,\n          showDateOnDeliveryNotes: settingsData?.showDateOnDeliveryNotes ?? true,\n          showDispatchDateOnDeliveryNotes: settingsData?.showDispatchDateOnDeliveryNotes ?? true,\n          deliveryNoteBarcodesMode: settingsData?.deliveryNoteBarcodesMode ?? 'showBarcodeImages',\n          showBarcodeOnDeliveryNotesForShopDocuments: settingsData?.showBarcodeOnDeliveryNotesForShopDocuments ?? true,\n          showBarcodeOnDeliveryNotesForNonShopDocuments: settingsData?.showBarcodeOnDeliveryNotesForNonShopDocuments ?? true\n        }));\n      }\n      this.setup();\n    },\n    _setPrintReturnsDisplay() {\n      const sidebarReturnsDisplay = this.deliveryNotePrintSettings?.printReturnsDisplay;\n      if (RA.isNotNilOrEmpty(sidebarReturnsDisplay)) {\n        this.set('printReturnsDisplay', sidebarReturnsDisplay);\n        return;\n      }\n      const printReturnsDisplayForInvoice = this?.printReturnsDisplay || this?.settings?.settingsModel?._data?.printReturnsDisplayForInvoice || 'showReturnsSeparately';\n      let printReturnsDisplay = printReturnsDisplayForInvoice;\n      if (this.isDispatchPrinting) {\n        const printReturnsDisplayForDispatch = this.printReturnsDisplayForDispatch || this?.settings?.settingsModel?._data?.printReturnsDisplayForDispatch || 'showReturnsTogether';\n        printReturnsDisplay = printReturnsDisplayForDispatch;\n      }\n      this.set('printReturnsDisplay', printReturnsDisplay);\n    },\n    /**\n     * Use the dispatch sidebar format when it is present. A passed format is kept.\n     * A sales invoice with neither uses the company delivery note format.\n     */\n    applySidebarDeliveryNotePrintSettings() {\n      const sidebarSettings = this.deliveryNotePrintSettings;\n      const sidebarFormat = sidebarSettings?.deliveryNotePrintFormat;\n      if (RA.isNotNilOrEmpty(sidebarFormat)) {\n        this.set('deliveryNotePrintFormat', sidebarFormat);\n      } else if (RA.isNilOrEmpty(this.deliveryNotePrintFormat)) {\n        const isSalesInvoices = this.model?.isSalesInvoices || false;\n        const companyFormat = this.settings?.settingsModel?._data?.deliveryNotePrintFormat || 'default';\n        this.set('deliveryNotePrintFormat', isSalesInvoices ? companyFormat : 'default');\n      }\n      const sidebarShowUnit = sidebarSettings?.showUnit;\n      if (RA.isNotNilOrEmpty(sidebarShowUnit)) {\n        this.set('showUnit', sidebarShowUnit);\n      } else if (RA.isNilOrEmpty(this.showUnit)) {\n        const companyShowUnit = this.settings?.settingsModel?._data?.showUnit || 'showUnitBelowItems';\n        this.set('showUnit', companyShowUnit);\n      }\n      const sidebarShowProductCode = sidebarSettings?.showProductCode;\n      if (RA.isNotNilOrEmpty(sidebarShowProductCode)) {\n        this.set('showProductCode', sidebarShowProductCode);\n      } else if (RA.isNilOrEmpty(this.showProductCode)) {\n        const companyShowProductCode = this.settings?.settingsModel?._data?.showProductCode || 'showCodeBelowItems';\n        this.set('showProductCode', companyShowProductCode);\n      }\n      if (RA.isNotNil(sidebarSettings?.hasImages)) {\n        this.set('hasImages', sidebarSettings.hasImages === true);\n      }\n      const sidebarImagesSize = Number(sidebarSettings?.imagesSize);\n      if (sidebarImagesSize) {\n        this.set('imagesSize', sidebarImagesSize);\n      }\n      if (RA.isNotNil(sidebarSettings?.hasPrices)) {\n        this.set('hasPrices', sidebarSettings.hasPrices === true);\n      }\n      if (RA.isNotNil(sidebarSettings?.hasPrintTerms)) {\n        this.set('hasPrintTerms', sidebarSettings.hasPrintTerms === true);\n      }\n      if (RA.isNotNil(sidebarSettings?.hasGroups)) {\n        this.set('hasGroups', sidebarSettings.hasGroups === true);\n      }\n    },\n    setShowFromPerson(docType, docName) {\n      let showFromPerson = false;\n      if (R.equals(docType, 'purchases')) {\n        if (R.equals(docName, 'consignments-returns')) {\n          showFromPerson = true;\n        }\n        if (R.equals(docName, 'quotes')) {\n          showFromPerson = true;\n        }\n        if (R.equals(docName, 'returns')) {\n          showFromPerson = true;\n        }\n      }\n      if (R.equals(docType, 'sales')) {\n        if (R.equals(docName, 'quotes')) {\n          showFromPerson = true;\n        }\n      }\n      this.set('showFromPerson', showFromPerson);\n    },\n    setHasGroups(docType, docName) {\n      let hasGroups = false;\n      if (R.equals(docType, 'sales')) {\n        if (R.equals(docName, 'invoices')) {\n          hasGroups = true;\n        }\n      }\n      this.set('hasGroups', hasGroups);\n    },\n    setHasEmptyRows(docType, docName) {\n      let hasEmptyRows = false;\n      if (R.equals(docType, 'purchases')) {\n        if (R.equals(docName, 'quotes')) {\n          hasEmptyRows = true;\n        }\n      }\n      this.set('hasEmptyRows', hasEmptyRows);\n    },\n    allDetails: Ember.computed('model.{detailsWithDiscountAndReward,_data.groups.[],returnsDetails.[]}', 'hasGroups', 'printReturnsDisplay', function () {\n      const model = this.model || {};\n      const details = model.detailsWithDiscountAndReward || [];\n      const hasReturnsDetails = RA.isNotNilOrEmpty(model.returnsDetails);\n      const printReturnsDisplay = this.printReturnsDisplay;\n      const hasGroups = this.hasGroups;\n      if (!hasGroups && printReturnsDisplay === 'hideReturns') {\n        return details;\n      }\n      const groups = model?._data?.groups || [];\n      let newDetails = [];\n      newDetails = R.concat(newDetails, details);\n      const returnsDetails = model?.returnsDetails || [];\n      if (hasReturnsDetails && printReturnsDisplay !== 'hideReturns') {\n        const newReturnDetails = this.getFormattedReturnsDetails({\n          details: returnsDetails\n        });\n        newDetails = R.concat(newDetails, newReturnDetails);\n      }\n      if (RA.isNotNilOrEmpty(groups) && hasGroups) {\n        R.forEach(group => {\n          const groupDetails = group?.detailsWithDiscountAndReward || [];\n          newDetails = R.concat(newDetails, groupDetails);\n          const groupReturnsDetails = group?.returnsDetails || [];\n          if (RA.isNotNilOrEmpty(groupReturnsDetails) && printReturnsDisplay !== 'hideReturns') {\n            const newGroupReturnDetails = this.getFormattedReturnsDetails({\n              details: groupReturnsDetails\n            });\n            newDetails = R.concat(newDetails, newGroupReturnDetails);\n          }\n        })(groups);\n      }\n      return newDetails;\n    }),\n    getFormattedReturnsDetails({\n      details = []\n    }) {\n      // return header (credit note)\n      const returnHeader = Ember.Object.create({\n        isReturnHeader: true,\n        isReturnDetail: true\n      });\n      let newReturnDetails = R.prepend(returnHeader, details);\n\n      // return points\n      R.pipe(R.pluck('_data'), R.pluck('docData'), R.reject(RA.isNilOrEmpty), R.uniqBy(R.prop('_key')), R.forEach(doc => {\n        const rewardPointApplied = doc?.rewardPointApplied || 0;\n        if (R.gt(rewardPointApplied, 0)) {\n          const returnPoints = Ember.Object.create({\n            rewardExclTotal: doc.rewardExclTotal,\n            rewardInclTotal: doc.rewardInclTotal,\n            rewardPointApplied,\n            isReturnPoints: true\n          });\n          newReturnDetails = R.append(returnPoints, newReturnDetails);\n        }\n      }))(details);\n      return newReturnDetails || [];\n    },\n    // detect any change from details and call setupPagesData()\n    allDetailsObserver: Ember.observer('allDetails', 'hasImages', 'imagesSize', 'hasGroups', 'hasPrices', 'printReturnsDisplay', 'printReturnsDisplayForDispatch',\n    // to observe from dispatch\n    'hasPrintTerms', 'deliveryNotePrintSettings.showTelephoneOnDeliveryNotes', 'deliveryNotePrintSettings.showTaxNumberOnDeliveryNotes', 'deliveryNotePrintSettings.showDateOnDeliveryNotes', 'deliveryNotePrintSettings.showDispatchDateOnDeliveryNotes', 'deliveryNotePrintSettings.deliveryNoteBarcodesMode', 'deliveryNotePrintSettings.deliveryNotePrintFormat', 'deliveryNotePrintSettings.showUnit', 'deliveryNotePrintSettings.showProductCode', 'deliveryNotePrintSettings.hasPrices', 'deliveryNotePrintSettings.hasPrintTerms', 'deliveryNotePrintSettings.hasGroups', 'deliveryNotePrintSettings.hasImages', 'deliveryNotePrintSettings.imagesSize', 'deliveryNotePrintSettings.printReturnsDisplay', 'deliveryNotePrintSettings.showBarcodeOnDeliveryNotesForShopDocuments', 'deliveryNotePrintSettings.showBarcodeOnDeliveryNotesForNonShopDocuments', function () {\n      this.applySidebarDeliveryNotePrintSettings();\n      if (this.deliveryNotePrintFormat === 'default') {\n        this._setPrintReturnsDisplay();\n        this.previewDocTask.perform();\n      } else if (this.element) {\n        this.setupPagesData();\n      }\n    }),\n    setup() {\n      const isPrintAllFromContactStatements = this?.isPrintAllFromContactStatements || false;\n      if (isPrintAllFromContactStatements) {\n        const model = this.model || {};\n        const docType = model?._data?.docType || '';\n        const docName = model?._data?.docName || '';\n        const showFromPerson = this?.showFromPerson;\n        if (RA.isNilOrEmpty(showFromPerson)) {\n          this.setShowFromPerson(docType, docName);\n        }\n        const hasGroups = this?.hasGroups;\n        if (RA.isNilOrEmpty(hasGroups)) {\n          this.setHasGroups(docType, docName);\n        }\n        const hasEmptyRows = this?.hasEmptyRows;\n        if (RA.isNilOrEmpty(hasEmptyRows)) {\n          this.setHasEmptyRows(docType, docName);\n        }\n      }\n    },\n    // didInsertElement () {\n    //   const self = this\n    //   self._super(...arguments)\n\n    //   const model = self.get('model')\n    //   // const details = model.getData('details')\n    //   // const details = model.detailsWithDiscountAndReward\n    //   const details = this.allDetails\n\n    //   const pageHeight = self.get('page.a4')\n    //   const headerHeight = self.$('.documents__header-container').outerHeight() || 0\n    //   const totalsHeight = self.$('.documents__totals-container').outerHeight() || 0\n\n    //   let allowedHeight = pageHeight - headerHeight - totalsHeight\n\n    //   let currentPage = 0\n    //   let pageAccumulatedHeight = 0\n\n    //   const pagesData = []\n    //   const rows = self.$('.u-print-table__data-row')\n\n    //   rows.each((index, row) => {\n    //     row = self.$(row)\n    //     const rowHeight = row.outerHeight() || 0\n\n    //     if (index === (rows.length - 1)) {\n    //       if (RA.isNotNilOrEmpty(pagesData[currentPage])) {\n    //         pagesData[currentPage].isLastPageWithDetails = true\n    //       }\n\n    //       allowedHeight = pageHeight - headerHeight - totalsHeight - 10\n    //     } else {\n    //       allowedHeight = pageHeight - headerHeight - totalsHeight - 50\n    //     }\n\n    //     pageAccumulatedHeight = pageAccumulatedHeight + rowHeight\n\n    //     if (pageAccumulatedHeight > allowedHeight) {\n    //       ++currentPage\n    //       pageAccumulatedHeight = 0\n    //     }\n\n    //     let isLastPageWithDetails = false\n    //     if (rows.length === 1) {\n    //       isLastPageWithDetails = true\n    //     }\n\n    //     if (!pagesData[currentPage]) {\n    //       pagesData[currentPage] = {\n    //         page: currentPage + 1,\n    //         details: [],\n    //         isLastPageWithDetails\n    //       }\n    //     }\n\n    //     pagesData[currentPage].details.pushObject(details.objectAt(index))\n    //   })\n\n    //   self.set('pagesData', pagesData)\n    // },\n\n    hasGroupsReturns: Ember.computed('model._data.groups.@each.synced', function () {\n      const model = this.model || {};\n      let hasGroupsReturns = false;\n      if (model && this.model) {\n        const groups = model.getData('groups') || [];\n        R.forEach(group => {\n          const groupReturnDetails = group.get('returnsDetails') || [];\n          if (RA.isNotNilOrEmpty(groupReturnDetails)) {\n            hasGroupsReturns = true;\n          }\n        })(groups);\n      }\n      return hasGroupsReturns;\n    }),\n    didRenderLastPage(pagesData, index) {\n      this._super(...arguments);\n      if (pagesData.length - 1 === index) {\n        if (this.firstRender) {\n          Ember.run.scheduleOnce('afterRender', () => {\n            const footerContainer = this.$('.documents__footer-container');\n            const footerContainerHeight = footerContainer.outerHeight() || 0;\n            const pageHeight = this.get('page.a4');\n            const pages = this.$('.u-print-page');\n            const lastPage = pages.last();\n            const lastPageHeight = lastPage.outerHeight() || 0;\n            const pagesData = this.pagesData;\n            if (lastPageHeight > pageHeight) {\n              this.$('.documents__footer-container').remove();\n              let nextPage = parseInt(pages.length);\n              nextPage = nextPage + 1;\n              pagesData.pushObject({\n                page: nextPage,\n                details: [],\n                isLastPageWithDetails: false\n              });\n              this.set('pagesData', pagesData);\n            }\n          });\n          this.set('firstRender', false);\n        }\n      }\n    },\n    previewDocTask: (0, _emberConcurrency.task)(function* () {\n      yield this.createDocPrintTask.perform({\n        isPreview: true,\n        isPaginatedPreview: false,\n        isDownload: false\n      });\n    }),\n    createDocPrintTask: (0, _emberConcurrency.task)(function* ({\n      isPreview = true,\n      isPaginatedPreview = false,\n      isDownload = false\n    }) {\n      if (this.deliveryNotePrintFormat === 'default') {\n        const sidebarSettings = this.deliveryNotePrintSettings || {};\n        const hasGroups = RA.isNotNil(sidebarSettings.hasGroups) ? sidebarSettings.hasGroups === true : this.hasGroups === true;\n        const hasPrices = RA.isNotNil(sidebarSettings.hasPrices) ? sidebarSettings.hasPrices === true : this.hasPrices === true;\n        const hasImages = RA.isNotNil(sidebarSettings.hasImages) ? sidebarSettings.hasImages === true : this.hasImages === true;\n        const hasPrintTerms = RA.isNotNil(sidebarSettings.hasPrintTerms) ? sidebarSettings.hasPrintTerms === true : this.hasPrintTerms === true;\n        const imagesSize = Number(sidebarSettings.imagesSize) || Number(this.imagesSize) || 30;\n        const printReturnsDisplay = RA.isNotNilOrEmpty(sidebarSettings.printReturnsDisplay) ? sidebarSettings.printReturnsDisplay : this.printReturnsDisplay;\n        const model = this.model || {};\n        const docKey = model?._data?._key;\n        if (RA.isNotNilOrEmpty(docKey)) {\n          const docType = model?._data?.docType;\n          const docName = model?._data?.docName;\n          const isBigOrdrBilling = model?._data?.isBigOrdrBilling === true;\n          const deliveryNotePrintSettings = this.deliveryNotePrintSettings || {};\n          const data = {\n            docKey,\n            isPreview,\n            isPaginatedPreview,\n            isDownload,\n            hasGroups,\n            printReturnsDisplay,\n            hasPrices,\n            hasImages,\n            hasPrintTerms,\n            imagesSize,\n            docType,\n            docName,\n            locale: R.pathOr('zh-TW', ['intl', 'locale', '0'])(this),\n            showTelephoneOnDeliveryNotes: deliveryNotePrintSettings?.showTelephoneOnDeliveryNotes ?? true,\n            showTaxNumberOnDeliveryNotes: deliveryNotePrintSettings?.showTaxNumberOnDeliveryNotes ?? true,\n            showDateOnDeliveryNotes: deliveryNotePrintSettings?.showDateOnDeliveryNotes ?? true,\n            showDispatchDateOnDeliveryNotes: deliveryNotePrintSettings?.showDispatchDateOnDeliveryNotes ?? true,\n            deliveryNoteBarcodesMode: deliveryNotePrintSettings?.deliveryNoteBarcodesMode ?? 'showBarcodeImages',\n            showBarcodeOnDeliveryNotesForShopDocuments: deliveryNotePrintSettings?.showBarcodeOnDeliveryNotesForShopDocuments ?? true,\n            showBarcodeOnDeliveryNotesForNonShopDocuments: deliveryNotePrintSettings?.showBarcodeOnDeliveryNotesForNonShopDocuments ?? true\n          };\n          let path = `api/protected/documents/${docType}/${docName}/document-preview`;\n          if (isBigOrdrBilling) {\n            path = `api/protected/billing/plans/invoices/document-preview`;\n          }\n          const documentPreviews = yield this.ifetch.iFetch({\n            method: 'GET',\n            path,\n            data,\n            isReturnAsPdfUrl: isPaginatedPreview\n          });\n          if (isPreview) {\n            Ember.set(this, 'documentPreviews', documentPreviews);\n          }\n          if (isPaginatedPreview) {\n            window.open(documentPreviews);\n          }\n        }\n      }\n    }),\n    useWebsiteLogo: Ember.computed('settings.settingsModel._data.useWebsiteLogo', function () {\n      return this.get('settings.settingsModel._data.useWebsiteLogo') || false;\n    }),\n    isDocumentHasWebsiteKeyAndLogo: Ember.computed('model._data.{websiteKey,docLogo}', function () {\n      const model = this?.model || {};\n      const websiteKey = model?._data?.websiteKey;\n      const docLogo = model?._data?.docLogo;\n      if (websiteKey && docLogo) {\n        return true;\n      }\n      return false;\n    }),\n    subHeaderComponent: Ember.computed('model._data.{docType,docName}', function () {\n      return 'documents/document-print/sub-header-references';\n    }),\n    detailsComponent: Ember.computed('model._data.{docType,docName}', function () {\n      return 'documents/document-print/details-prices';\n    }),\n    footerComponent: Ember.computed('model._data.{docType,docName}', function () {\n      const docType = this.model?._data?.docType;\n      const docName = this.model?._data?.docName;\n      if (docType === 'sales') {\n        if (docName === 'quotes') {\n          return 'documents/document-print/footer-sales-terms';\n        }\n        if (docName === 'orders') {\n          return 'documents/document-print/footer-sales-terms';\n        }\n        if (docName === 'invoices') {\n          return 'documents/document-print/footer-sales-delivery-notes';\n        }\n        if (docName === 'consignments') {\n          return 'documents/document-print/footer-sales-delivery-notes';\n        }\n      }\n      if (docType === 'purchases') {\n        if (docName === 'quotes') {\n          return 'documents/document-print/footer-purchases-terms';\n        }\n        if (docName === 'orders') {\n          return 'documents/document-print/footer-purchases-orders';\n        }\n        if (docName === 'invoices') {\n          return 'documents/document-print/footer-purchases-orders';\n        }\n        if (docName === 'consignments') {\n          return 'documents/document-print/footer-purchases-orders';\n        }\n      }\n      return '';\n    }),\n    showTaxes: Ember.computed('model.{_data.taxMethodKey}', 'settings.settingsModel._data.taxRateKey', function () {\n      const taxSettings = this.get('settings.settingsModel._data.taxRateKey');\n      if (taxSettings === 'none' || taxSettings === 'zero') {\n        return false;\n      }\n      const modelTaxMethod = this.get('model._data.taxMethodKey');\n      if (modelTaxMethod === 'none' || modelTaxMethod === 'zero') {\n        return false;\n      }\n      return true;\n    }),\n    setupInit() {\n      this.set('firstRender', true);\n      this.set('page', {\n        a4: 1040\n      });\n      this._super(...arguments);\n\n      // const model = this.model\n      // const details = model.detailsWithDiscountAndReward\n      const details = this.allDetails;\n      const pagesData = [{\n        page: 1,\n        details: details,\n        isLastPageWithDetails: false\n      }];\n      this.set('pagesData', pagesData);\n      this.setup();\n    },\n    setupPagesData() {\n      const self = this;\n      self._super(...arguments);\n\n      // const model = self.get('model')\n      // const details = model.getData('details')\n      // const details = model.detailsWithDiscountAndReward\n      const details = this.allDetails;\n      const pageHeight = self.get('page.a4');\n      const headerHeight = self.$('.documents__header-container').outerHeight() || 0;\n      const totalsHeight = self.$('.documents__totals-container').outerHeight() || 0;\n      let allowedHeight = pageHeight - headerHeight - totalsHeight;\n      let currentPage = 0;\n      let pageAccumulatedHeight = 0;\n      const pagesData = [];\n      self.set('pagesData', pagesData);\n      let rows = self.$('.u-print-table__data-row');\n      const rowsLength = parseInt(rows?.length) || 0;\n      const detailsLength = parseInt(details?.length) || 0;\n      if (rowsLength < detailsLength) {\n        const difference = detailsLength - rowsLength;\n        for (let i = 0; i < difference; i++) {\n          rows.push(rows[0]);\n        }\n      }\n      if (rowsLength > detailsLength) {\n        const difference = rowsLength - detailsLength;\n        rows = R.slice(0, -difference, rows);\n      }\n      const hasImages = this?.hasImages || false;\n      rows.each((index, row) => {\n        row = self.$(row);\n        const isProduct = row.attr('data-item-type') === 'product';\n        const originalHeight = R.pipe(R.find(R.propEq('index', index)), R.propOr(null, 'originalHeight'))(this.originalRows); // if not found, should be undefined or null\n\n        let rowHeight = originalHeight || row?.outerHeight() || 0;\n        if (hasImages && isProduct) {\n          this.originalRows.pushObject({\n            index,\n            originalHeight: rowHeight\n          });\n          if (rowHeight < this.imageHeight) {\n            rowHeight = this.imageHeight; // images + margin\n          }\n        }\n        if (index === rows.length - 1) {\n          allowedHeight = pageHeight - headerHeight - totalsHeight - 10;\n        } else {\n          allowedHeight = pageHeight - headerHeight - 50;\n        }\n        pageAccumulatedHeight = pageAccumulatedHeight + rowHeight;\n        if (pageAccumulatedHeight > allowedHeight) {\n          ++currentPage;\n          pageAccumulatedHeight = 0;\n        }\n        if (!pagesData[currentPage]) {\n          pagesData[currentPage] = {\n            page: currentPage + 1,\n            details: [],\n            isLastPageWithDetails: false\n          };\n        }\n        pagesData[currentPage].details.pushObject(details.objectAt(index));\n      });\n      if (RA.isNotNilOrEmpty(pagesData)) {\n        pagesData.forEach((pageData, index) => {\n          if (pagesData.length === index + 1) {\n            pageData.isLastPageWithDetails = true;\n          }\n        });\n      }\n      self.set('pagesData', pagesData);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"didRenderLastPage\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"didRenderLastPage\"), _obj), _applyDecoratedDescriptor(_obj, \"setupInit\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"setupInit\"), _obj), _applyDecoratedDescriptor(_obj, \"setupPagesData\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"setupPagesData\"), _obj), _obj));\n});","define(\"client/pods/components/documents/document-print/delivery-note-print-settings-menu/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 DocumentsDocumentPrintDeliveryNotePrintSettingsMenuComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _class = class DocumentsDocumentPrintDeliveryNotePrintSettingsMenuComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settings\", _descriptor, this);\n    }\n    onToggleSetting(key, value) {\n      this.args.deliveryNotePrintSettings.set(key, value);\n    }\n    onSelectBarcodesMode(listItem) {\n      const value = listItem?._data?.value;\n      if (value) {\n        this.args.deliveryNotePrintSettings.set('deliveryNoteBarcodesMode', value);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onToggleSetting\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSetting\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectBarcodesMode\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectBarcodesMode\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/document-print/delivery-note-print-settings-menu/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PyCn3l9c\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@deliveryNotePrintSettings\\\",\\\"@barcodesModeList\\\"],\\\"statements\\\":[[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\"],[\\\"beta.hideTaxNumberAndTelephoneOnDeliveryNote\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show telephone number on delivery notes\\\",false,true,[23,1,[\\\"showTelephoneOnDeliveryNotes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showTelephoneOnDeliveryNotes\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show tax number on delivery notes\\\",false,true,[23,1,[\\\"showTaxNumberOnDeliveryNotes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showTaxNumberOnDeliveryNotes\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show date on delivery notes\\\",false,true,[23,1,[\\\"showDateOnDeliveryNotes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showDateOnDeliveryNotes\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show dispatch date on delivery notes\\\",false,true,[23,1,[\\\"showDispatchDateOnDeliveryNotes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showDispatchDateOnDeliveryNotes\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\"],[\\\"beta.allowBarcodeInDeliveryNotes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@translate\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[true,[23,2,[]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"deliveryNoteBarcodesMode\\\"]],true,false,false,[23,0,[\\\"onSelectBarcodesMode\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show barcode for shop documents\\\",false,true,[23,1,[\\\"showBarcodeOnDeliveryNotesForShopDocuments\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showBarcodeOnDeliveryNotesForShopDocuments\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show barcode for non-shop documents\\\",false,true,[23,1,[\\\"showBarcodeOnDeliveryNotesForNonShopDocuments\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showBarcodeOnDeliveryNotesForNonShopDocuments\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/delivery-note-print-settings-menu/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/delivery-note-print-settings/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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;\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 DocumentsDocumentPrintDeliveryNotePrintSettingsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _class = class DocumentsDocumentPrintDeliveryNotePrintSettingsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['documents/lists/print', 'documents/lists/print/unit', 'documents/lists/print/product-code', 'documents/lists/print/returns-display', 'documents/lists/print/images-size', 'documents/lists/print/barcodes-mode']);\n    }\n    onToggleSetting(key, value) {\n      this.args.deliveryNotePrintSettings.set(key, value);\n    }\n\n    /**\n     * Store the selected list value on the delivery note print settings.\n     * @param {string} key\n     * @param {Object} listItem\n     */\n    onSelectSetting(key, listItem) {\n      const value = listItem?.get?.('_data.value') ?? listItem?._data?.value;\n      if (RA.isNilOrEmpty(value)) {\n        return;\n      }\n      this.args.deliveryNotePrintSettings.set(key, value);\n    }\n    onSelectBarcodesMode(listItem) {\n      const value = listItem?._data?.value;\n      if (value) {\n        this.args.deliveryNotePrintSettings.set('deliveryNoteBarcodesMode', value);\n      }\n    }\n    get showHasGroupsOptions() {\n      if (this.args.isDispatchTab) {\n        return true;\n      }\n      if (this.args.docType === 'sales' && this.args.docName === 'invoices' && RA.isNotNilOrEmpty(this.args.model?._data?.groups)) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onToggleSetting\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSetting\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectSetting\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectSetting\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectBarcodesMode\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectBarcodesMode\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/document-print/delivery-note-print-settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hs9dsMr4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@deliveryNotePrintSettings\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"printFormat\\\",[23,2,[]],\\\"print format\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"deliveryNotePrintFormat\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectSetting\\\"]],\\\"deliveryNotePrintFormat\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"deliveryNotePrintFormat\\\"]],\\\"thermal\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"printUnit\\\",[23,2,[]],\\\"print units\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@btnClassNames\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-unit\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"showUnit\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectSetting\\\"]],\\\"showUnit\\\"],null],\\\"u-margin-left-5\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"printProductCode\\\",[23,2,[]],\\\"product code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@btnClassNames\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-product-code\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"showProductCode\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectSetting\\\"]],\\\"showProductCode\\\"],null],\\\"u-margin-left-5\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\"],[\\\"print settings\\\",\\\"deliveryNotePrintSettings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-returns-display\\\"]],[23,1,[\\\"printReturnsDisplay\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",false,false,[28,\\\"fn\\\",[[23,0,[\\\"onSelectSetting\\\"]],\\\"printReturnsDisplay\\\"],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showHasGroupsOptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show after grouped\\\",[23,1,[\\\"hasGroups\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"hasGroups\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show prices\\\",[23,1,[\\\"hasPrices\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"hasPrices\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"terms\\\",[23,1,[\\\"hasPrintTerms\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"hasPrintTerms\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"deliveryNotePrintFormat\\\"]],\\\"default\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"print images\\\",[23,1,[\\\"hasImages\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"hasImages\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasImages\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@prefix\\\",\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[[28,\\\"tt\\\",[\\\"image size\\\"],null],true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-images-size\\\"]],[23,1,[\\\"imagesSize\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",false,false,[28,\\\"fn\\\",[[23,0,[\\\"onSelectSetting\\\"]],\\\"imagesSize\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\"],[\\\"beta.hideTaxNumberAndTelephoneOnDeliveryNote\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@rowClassNames\\\"],[\\\"company info\\\",\\\"companyInfoPrintSettings\\\",\\\"delivery-note-print-settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show telephone number on delivery notes\\\",false,true,[23,1,[\\\"showTelephoneOnDeliveryNotes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showTelephoneOnDeliveryNotes\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show tax number on delivery notes\\\",false,true,[23,1,[\\\"showTaxNumberOnDeliveryNotes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showTaxNumberOnDeliveryNotes\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show date on delivery notes\\\",false,true,[23,1,[\\\"showDateOnDeliveryNotes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showDateOnDeliveryNotes\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show dispatch date on delivery notes\\\",false,true,[23,1,[\\\"showDispatchDateOnDeliveryNotes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showDispatchDateOnDeliveryNotes\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\"],[\\\"beta.allowBarcodeInDeliveryNotes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@rowClassNames\\\"],[\\\"barcode print settings\\\",\\\"barcodePrintSettings\\\",\\\"delivery-note-print-settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show barcode for shop documents\\\",false,true,[23,1,[\\\"showBarcodeOnDeliveryNotesForShopDocuments\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showBarcodeOnDeliveryNotesForShopDocuments\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show barcode for non-shop documents\\\",false,true,[23,1,[\\\"showBarcodeOnDeliveryNotesForNonShopDocuments\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetting\\\"]],\\\"showBarcodeOnDeliveryNotesForNonShopDocuments\\\"],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,1,[\\\"showBarcodeOnDeliveryNotesForShopDocuments\\\"]],[23,1,[\\\"showBarcodeOnDeliveryNotesForNonShopDocuments\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@translate\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-barcodes-mode\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"deliveryNoteBarcodesMode\\\"]],true,false,false,[23,0,[\\\"onSelectBarcodesMode\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/delivery-note-print-settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/details-no-prices/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/document-print/details-no-prices/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0eyTtUll\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head\\\"],[8],[1,[28,\\\"tt\\\",[\\\"reference\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head\\\"],[8],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head\\\"],[8],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__body\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__row u-print-table__data-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-print-table__cell u-print-table__cell--border documents-print__description \\\",[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]],\\\"u-desc--italics u-padding-left-20\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,1,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-centered\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"qty\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"qty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/details-no-prices/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/details-prices/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/document-print/details-prices/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2oFBMnYX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"@model\\\",\\\"@showTaxes\\\",\\\"@hasImages\\\",\\\"@hasPrices\\\",\\\"@details\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__row\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head\\\"],[10,\\\"style\\\",\\\"width: 35%;\\\"],[8],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__body\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isReturnHeader\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__row u-print-table__data-row\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,2,[\\\"_data\\\",\\\"docType\\\"]],\\\"-returns\\\"],null]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border\\\"],[8],[9],[0,\\\"  \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border\\\"],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isReturnPoints\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__row u-print-table__data-row\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border documents-print__description\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/pre-line\\\",[],[[\\\"@value\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"return points spent\\\"],null],\\\"(\\\",[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"rewardPointApplied\\\"]]]]],\\\")\\\"],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-centered\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"rewardExclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"rewardInclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__row u-print-table__data-row\\\"],[11,\\\"data-item-type\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"isProduct\\\"]],\\\"product\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@imageClassNames\\\",\\\"@transform\\\",\\\"@image\\\"],[\\\"u-print-image\\\",\\\"/-/scale_crop/100x100/smart/-/quality/best\\\",[23,1,[\\\"_data\\\",\\\"defaultImage\\\"]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-print-table__cell u-print-table__cell--border documents-print__description \\\",[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]],\\\"u-desc--italics child-items\\\"],null]]]],[8],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/pre-line\\\",[],[[\\\"@value\\\"],[[23,1,[\\\"_data\\\",\\\"item\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"itemCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc--italics additional-info\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isReturnDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc--italics additional-info\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"tt\\\",[\\\"reference\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\" -\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc--italics additional-info\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"reference\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isGroupChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"additional-info\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,1,[\\\"docRef\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-centered\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"qty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"qty\\\"]]],[[\\\"negative\\\"],[[23,1,[\\\"isReturnDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"price\\\"]],[28,\\\"not\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"price\\\"]]],[[\\\"negative\\\"],[[23,1,[\\\"isReturnDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]],[28,\\\"not\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"percentage\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/details-prices/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/details-quotes/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    hasEmptyRows: false\n  });\n});","define(\"client/pods/components/documents/document-print/details-quotes/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DXEJQ9Jw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head\\\"],[8],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head\\\"],[8],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__head has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__body\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__row u-print-table__data-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border documents-print__description\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,1,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-centered\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[1,[28,\\\"ifZero\\\",[[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"qty\\\"]]],null],\\\"\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table__cell u-print-table__cell--border has-text-right\\\"],[8],[1,[28,\\\"ifZero\\\",[[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"price\\\"]]],null],\\\"\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\"],[2,\\\" <div class='u-print-table__row u-print-table__empty-row'>\\\\n        <div class='u-print-table__cell u-print-table__cell--border'></div>\\\\n        <div class='u-print-table__cell u-print-table__cell--border'></div>\\\\n\\\\n        <div class='u-print-table__cell u-print-table__cell--border has-text-centered'></div>\\\\n\\\\n        <div class='u-print-table__cell u-print-table__cell--border has-text-right'></div>\\\\n        <div class='u-print-table__cell u-print-table__cell--border has-text-right'></div>\\\\n      </div> \\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/details-quotes/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/document-thermal-print/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 DocumentsDocumentPrintDocumentThermalPrintComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember.computed('args.{printReturnsDisplay,model.returnsDetails,hasGroupsReturns}'), _class = class DocumentsDocumentPrintDocumentThermalPrintComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settings\", _descriptor, this);\n      _initializerDefineProperty(this, \"ifetch\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isTermsVisible\", _descriptor4, this);\n      _initializerDefineProperty(this, \"barcodeByItemKey\", _descriptor5, this);\n    }\n    refreshBarcodes() {\n      this.fetchBarcodesTask.perform();\n    }\n    get isHideTaxNumberAndTelephoneOnDeliveryNoteEnabled() {\n      return this.settings?.isBetaAllowed('beta.hideTaxNumberAndTelephoneOnDeliveryNote');\n    }\n    get showCompanyTel() {\n      if (!this.isHideTaxNumberAndTelephoneOnDeliveryNoteEnabled) {\n        return true;\n      }\n      return this.args.deliveryNotePrintSettings.showTelephoneOnDeliveryNotes;\n    }\n    get showCompanyTaxNumber() {\n      if (!this.isHideTaxNumberAndTelephoneOnDeliveryNoteEnabled) {\n        return true;\n      }\n      return this.args.deliveryNotePrintSettings.showTaxNumberOnDeliveryNotes;\n    }\n    get showDate() {\n      if (!this.isHideTaxNumberAndTelephoneOnDeliveryNoteEnabled) {\n        return true;\n      }\n      return this.args.deliveryNotePrintSettings.showDateOnDeliveryNotes;\n    }\n    get showDispatchDate() {\n      if (!this.isHideTaxNumberAndTelephoneOnDeliveryNoteEnabled) {\n        return false;\n      }\n      return this.args.deliveryNotePrintSettings.showDispatchDateOnDeliveryNotes;\n    }\n    get displayDispatchDateZ() {\n      const modelData = this.args?.model?._data || {};\n      if (RA.isNotNilOrEmpty(modelData.dispatchDateZ)) {\n        return modelData.dispatchDateZ;\n      }\n      if (RA.isNotNilOrEmpty(modelData.deliveryDateZ)) {\n        return modelData.deliveryDateZ;\n      }\n      return this.date.getNowZ();\n    }\n    get isShopDocument() {\n      return RA.isNotNilOrEmpty(this.args?.model?._data?.sourceKey);\n    }\n    get hasBarcodeColumn() {\n      if (!this.settings?.isBetaAllowed('beta.allowBarcodeInDeliveryNotes')) {\n        return false;\n      }\n      if (this.isShopDocument) {\n        return this.args.deliveryNotePrintSettings.showBarcodeOnDeliveryNotesForShopDocuments;\n      }\n      return this.args.deliveryNotePrintSettings.showBarcodeOnDeliveryNotesForNonShopDocuments;\n    }\n    get showBarcode() {\n      if (!this.hasBarcodeColumn) {\n        return false;\n      }\n      return this.args.deliveryNotePrintSettings.deliveryNoteBarcodesMode === 'showBarcodeImages';\n    }\n    get showBarcodeNumber() {\n      if (!this.hasBarcodeColumn) {\n        return false;\n      }\n      return this.args.deliveryNotePrintSettings.deliveryNoteBarcodesMode === 'showBarcodeNumbersOnly';\n    }\n    get source() {\n      const model = this.args?.model || {};\n      const source = model?._data?.source || '';\n      if (!source || typeof source !== 'string') {\n        return '';\n      }\n      if (source.length > 30) {\n        return `${source.substring(0, 27)}...`;\n      }\n      return source;\n    }\n    get paymentMethodKeys() {\n      const model = this.args?.model || {};\n      const hasGroups = this.args?.hasGroups || false;\n      if (model) {\n        return model.getGroupedDocumentsPaymentMethodKeys({\n          document: model,\n          hasGroups,\n          hasPaymentLastFiveDigits: true,\n          isJoinResults: true,\n          isTranslate: true\n        });\n      }\n      return [];\n    }\n    get showSubHeader() {\n      const model = this.args?.model || {};\n      const ref = model?._data?.ref || '';\n      const paymentMethodKey = model?._data?.paymentMethodKey || '';\n      const showFromPerson = this?.args?.showFromPerson || false;\n      if (ref) {\n        return true;\n      }\n      if (paymentMethodKey) {\n        return true;\n      }\n      if (showFromPerson) {\n        return true;\n      }\n      return false;\n    }\n    get hasPrintTerms() {\n      if (this.args.hasPrintTerms === false) {\n        return false;\n      }\n      if (!this.isTermsVisible) {\n        return false;\n      }\n      const model = this.args?.model || {};\n      return RA.isNotNilOrEmpty(model?._data?.terms);\n    }\n    get isShowReturnsSeparately() {\n      const printReturnsDisplay = this.args?.printReturnsDisplay;\n      const returnsDetails = this.args?.model?.returnsDetails || [];\n      const hasGroupsReturns = this.args?.hasGroupsReturns || false;\n      if ((RA.isNotNilOrEmpty(returnsDetails) || hasGroupsReturns) && printReturnsDisplay === 'showReturnsSeparately') {\n        return true;\n      }\n      return false;\n    }\n    *fetchBarcodesTask() {\n      if (!this.hasBarcodeColumn) {\n        return;\n      }\n      const model = this.args?.model || {};\n      const details = model?.detailsWithDiscountAndReward || [];\n      const itemKeys = R.pipe(R.map(detail => detail?._data?.itemKey), R.uniq, R.reject(RA.isNilOrEmpty))(details);\n      if (RA.isNilOrEmpty(itemKeys)) {\n        return;\n      }\n      try {\n        const barcodeMap = yield this.ifetch.iFetch({\n          method: 'POST',\n          path: 'api/protected/products/barcodes-for-print',\n          data: {\n            itemKeys\n          }\n        });\n        this.barcodeByItemKey = barcodeMap?.data ?? {};\n      } catch (error) {\n        this.barcodeByItemKey = {};\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"ifetch\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isTermsVisible\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"barcodeByItemKey\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"refreshBarcodes\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshBarcodes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isShowReturnsSeparately\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"isShowReturnsSeparately\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchBarcodesTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchBarcodesTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/document-print/document-thermal-print/details-print/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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  let DocumentsDocumentPrintDocumentThermalPrintDetailsPrintComponent = _exports.default = (_dec = Ember.inject.service('big'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _class = class DocumentsDocumentPrintDocumentThermalPrintDetailsPrintComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"bigService\", _descriptor, this);\n      _initializerDefineProperty(this, \"isShowDetail\", _descriptor2, this);\n      _initializerDefineProperty(this, \"inclAmt\", _descriptor3, this);\n      _initializerDefineProperty(this, \"exclAmt\", _descriptor4, this);\n      _initializerDefineProperty(this, \"qty\", _descriptor5, this);\n      this.setupDetail();\n    }\n    get barcodeData() {\n      const itemKey = this.args?.detail?._data?.itemKey;\n      if (!itemKey) {\n        return null;\n      }\n      return this.args?.barcodeByItemKey?.[itemKey] || null;\n    }\n    setupDetail() {\n      const model = this.args?.model;\n      const detail = this.args?.detail;\n      const printReturnsDisplay = this.args?.printReturnsDisplay;\n      const returnsDetails = model?.returnsDetails || [];\n      const roundingCurrency = model?._data?.roundingCurrency;\n      let inclAmt = detail?._data?.inclAmt || '0';\n      let exclAmt = detail?._data?.exclAmt || '0';\n      let qty = detail?._data?.qty || '0';\n      if (printReturnsDisplay === 'showReturnsTogether') {\n        const returnsQty = Number(detail?._data?.returnsQty) || 0;\n        const detailKey = detail?._data?.detailKey;\n        const returnsData = R.find(R.pathEq(['_data', 'fromDetailKey'], detailKey))(returnsDetails);\n        if (returnsQty > 0 && returnsData) {\n          const returnsInclAmt = returnsData?._data?.inclAmt || 0;\n          const returnsExclAmt = returnsData?._data?.exclAmt || 0;\n          const returnsQty = returnsData?._data?.qty || 0;\n          inclAmt = this.bigService.newBig(inclAmt).minus(returnsInclAmt).toFixed(roundingCurrency);\n          exclAmt = this.bigService.newBig(exclAmt).minus(returnsExclAmt).toFixed(roundingCurrency);\n          qty = this.bigService.newBig(qty).minus(returnsQty).toFixed(0);\n          if (Number(qty) === 0) {\n            Ember.set(this, 'isShowDetail', false);\n          }\n        }\n      }\n      Ember.set(this, 'inclAmt', inclAmt);\n      Ember.set(this, 'exclAmt', exclAmt);\n      Ember.set(this, 'qty', qty);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"bigService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isShowDetail\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"inclAmt\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"exclAmt\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"qty\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDetail\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDetail\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/document-print/document-thermal-print/details-print/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rhCVp6wF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@detail\\\",\\\"@model\\\",\\\"@hasBarcodeColumn\\\",\\\"@hasPrices\\\",\\\"@isReturnDetail\\\",\\\"@showBarcode\\\",\\\"@showProductCode\\\",\\\"@showUnit\\\",\\\"@showTaxes\\\",\\\"@printReturnsDisplay\\\",\\\"@isHeader\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[3,\\\"did-update\\\",[[23,0,[\\\"setupDetail\\\"]],[23,10,[]]]],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"barcode\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"product_description_short\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isShowDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__barcode-cell\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"barcodeData\\\",\\\"barcode\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"barcode/generator\\\",[],[[\\\"@value\\\",\\\"@format\\\",\\\"@labelLength\\\"],[[23,0,[\\\"barcodeData\\\",\\\"barcode\\\"]],[23,0,[\\\"barcodeData\\\",\\\"barcodeType\\\"]],0]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"barcodeData\\\",\\\"barcode\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-font-size-small\\\"],[8],[1,[23,0,[\\\"barcodeData\\\",\\\"barcode\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]],\\\"u-desc--italics is-child-item\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,7,[]],\\\"showCodeNextToItems\\\"],null],[23,1,[\\\"_data\\\",\\\"itemCode\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          (\\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,8,[]],\\\"showUnitNextToItems\\\"],null],[23,1,[\\\"_data\\\",\\\"unit\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          (\\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]],\\\"u-desc--italics is-child-item\\\"],null],\\\" has-text-right\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"qty\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"qty\\\"]]],[[\\\"negative\\\"],[[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]],\\\"u-desc--italics is-child-item\\\"],null],\\\" has-text-right\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"price\\\"]],[28,\\\"not\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"price\\\"]]],[[\\\"negative\\\"],[[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]],\\\"u-desc--italics is-child-item\\\"],null],\\\" has-text-right\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"exclAmt\\\"]]],[[\\\"negative\\\"],[[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"inclAmt\\\"]]],[[\\\"negative\\\"],[[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,7,[]],\\\"showCodeBelowItems\\\"],null],[23,1,[\\\"_data\\\",\\\"itemCode\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]],\\\"is-child-item-desc\\\",\\\"is-child-item\\\"],null]]]],[8],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,8,[]],\\\"showUnitBelowItems\\\"],null],[23,1,[\\\"_data\\\",\\\"unit\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]],\\\"is-child-item-desc\\\",\\\"is-child-item\\\"],null]]]],[8],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"is-child-item\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"is-child-item\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[]],[28,\\\"gt\\\",[[23,1,[\\\"_data\\\",\\\"allocatedRewardPointApplied\\\"]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"return points spent\\\"],null],\\\"(\\\",[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"_data\\\",\\\"allocatedRewardPointApplied\\\"]]]]],\\\")\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"allocatedExclRewardAmount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"allocatedInclRewardAmount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/document-thermal-print/details-print/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/document-thermal-print/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VZuk5oJI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"group\\\",\\\"group\\\",\\\"detail\\\",\\\"detail\\\",\\\"group\\\",\\\"detail\\\",\\\"detail\\\",\\\"@model\\\",\\\"@showTaxes\\\",\\\"@printReturnsDisplay\\\",\\\"@hasGroupsReturns\\\",\\\"@hasGroups\\\",\\\"@hasPrices\\\",\\\"@hasImages\\\",\\\"@showUnit\\\",\\\"@showProductCode\\\",\\\"@showFromPerson\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-page is-thermal-page\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"refreshBarcodes\\\"]]]],[3,\\\"did-update\\\",[[23,0,[\\\"refreshBarcodes\\\"]],[23,8,[]],[23,0,[\\\"hasBarcodeColumn\\\"]]]],[8],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__header-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__header\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width is-thermal\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"source\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"subtitle u-bold\\\"],[8],[1,[23,0,[\\\"source\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"status\\\"]],\\\"draft\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"draft\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-bold\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[[23,8,[\\\"title\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\\n              \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"isVoid\\\"]],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"(#\\\"],[1,[23,8,[\\\"refOrDocNo\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"date\\\",[[23,8,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"showDispatchDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"dispatch date\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[23,0,[\\\"displayDispatchDateZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-bold\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"pod/get\\\",[\\\"company\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"pod/get\\\",[\\\"address\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showCompanyTel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tel\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"companyTel\\\"],null],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[\\\"fax\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"companyFax\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"showCompanyTaxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"taxNumber\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width is-thermal\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-bold\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"to\\\"],null],false],[0,\\\": \\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,8,[\\\"_data\\\",\\\"person\\\"]],[28,\\\"not-eq\\\",[[23,8,[\\\"_data\\\",\\\"person\\\"]],[23,8,[\\\"_data\\\",\\\"contact\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"concat\\\",[[23,8,[\\\"_data\\\",\\\"person\\\"]],\\\" (\\\",[23,8,[\\\"_data\\\",\\\"contact\\\"]],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,8,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"telephone\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"billingTelephone\\\"]],[23,8,[\\\"_data\\\",\\\"telephone\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[\\\"phone\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"billingTelephone\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"tt\\\",[\\\"receivers mobile number\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"tt\\\",[\\\"phone\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"billingTelephone\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"payers phone number\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"billingTelephone\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[1,[23,8,[\\\"_data\\\",\\\"taxNumber\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,8,[\\\"_data\\\",\\\"address\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showSubHeader\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"from person\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"user/get\\\",[\\\"name\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"payment method\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"paymentMethodKeys\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"hr\\\",true],[10,\\\"style\\\",\\\"border-top: 1px dotted black; margin-bottom: 10px;\\\"],[8],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-table\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width is-thermal is-thermal-details\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"documents/document-print/document-thermal-print/details-print\\\",[],[[\\\"@model\\\",\\\"@hasPrices\\\",\\\"@hasImages\\\",\\\"@showTaxes\\\",\\\"@hasBarcodeColumn\\\",\\\"@showBarcode\\\",\\\"@showBarcodeNumber\\\",\\\"@barcodeByItemKey\\\",\\\"@isHeader\\\"],[[23,8,[]],[23,13,[]],[23,14,[]],[23,9,[]],[23,0,[\\\"hasBarcodeColumn\\\"]],[23,0,[\\\"showBarcode\\\"]],[23,0,[\\\"showBarcodeNumber\\\"]],[23,0,[\\\"barcodeByItemKey\\\"]],true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,8,[\\\"detailsWithDiscountAndReward\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"documents/document-print/document-thermal-print/details-print\\\",[],[[\\\"@model\\\",\\\"@detail\\\",\\\"@hasPrices\\\",\\\"@hasImages\\\",\\\"@showTaxes\\\",\\\"@showUnit\\\",\\\"@showProductCode\\\",\\\"@printReturnsDisplay\\\",\\\"@hasBarcodeColumn\\\",\\\"@showBarcode\\\",\\\"@showBarcodeNumber\\\",\\\"@barcodeByItemKey\\\"],[[23,8,[]],[23,7,[]],[23,13,[]],[23,14,[]],[23,9,[]],[23,15,[]],[23,16,[]],[23,10,[]],[23,0,[\\\"hasBarcodeColumn\\\"]],[23,0,[\\\"showBarcode\\\"]],[23,0,[\\\"showBarcodeNumber\\\"]],[23,0,[\\\"barcodeByItemKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,8,[\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,5,[\\\"sortedDetailsWithDiscountAndReward\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"documents/document-print/document-thermal-print/details-print\\\",[],[[\\\"@model\\\",\\\"@detail\\\",\\\"@hasPrices\\\",\\\"@hasImages\\\",\\\"@showTaxes\\\",\\\"@showUnit\\\",\\\"@showProductCode\\\",\\\"@hasBarcodeColumn\\\",\\\"@showBarcode\\\",\\\"@showBarcodeNumber\\\",\\\"@barcodeByItemKey\\\"],[[23,8,[]],[23,6,[]],[23,13,[]],[23,14,[]],[23,9,[]],[23,15,[]],[23,16,[]],[23,0,[\\\"hasBarcodeColumn\\\"]],[23,0,[\\\"showBarcode\\\"]],[23,0,[\\\"showBarcodeNumber\\\"]],[23,0,[\\\"barcodeByItemKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowReturnsSeparately\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,8,[\\\"_data\\\",\\\"docType\\\"]],\\\"-returns\\\"],null]],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,8,[\\\"returnsDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"documents/document-print/document-thermal-print/details-print\\\",[],[[\\\"@model\\\",\\\"@detail\\\",\\\"@hasPrices\\\",\\\"@hasImages\\\",\\\"@showTaxes\\\",\\\"@isReturnDetail\\\",\\\"@showUnit\\\",\\\"@showProductCode\\\",\\\"@hasBarcodeColumn\\\",\\\"@showBarcode\\\",\\\"@showBarcodeNumber\\\",\\\"@barcodeByItemKey\\\"],[[23,8,[]],[23,4,[]],[23,13,[]],[23,14,[]],[23,9,[]],true,[23,15,[]],[23,16,[]],[23,0,[\\\"hasBarcodeColumn\\\"]],[23,0,[\\\"showBarcode\\\"]],[23,0,[\\\"showBarcodeNumber\\\"]],[23,0,[\\\"barcodeByItemKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,8,[\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[\\\"returnsDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"documents/document-print/document-thermal-print/details-print\\\",[],[[\\\"@model\\\",\\\"@detail\\\",\\\"@hasPrices\\\",\\\"@hasImages\\\",\\\"@showTaxes\\\",\\\"@isReturnDetail\\\",\\\"@showUnit\\\",\\\"@showProductCode\\\",\\\"@hasBarcodeColumn\\\",\\\"@showBarcode\\\",\\\"@showBarcodeNumber\\\",\\\"@barcodeByItemKey\\\"],[[23,8,[]],[23,3,[]],[23,13,[]],[23,14,[]],[23,9,[]],true,[23,15,[]],[23,16,[]],[23,0,[\\\"hasBarcodeColumn\\\"]],[23,0,[\\\"showBarcode\\\"]],[23,0,[\\\"showBarcodeNumber\\\"]],[23,0,[\\\"barcodeByItemKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"hr\\\",true],[10,\\\"style\\\",\\\"border-top: 1px dotted black; margin: 0px;\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__totals-container is-thermal\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"documents/document-totals\\\",[],[[\\\"@showTaxes\\\",\\\"@printReturnsDisplay\\\",\\\"@hasGroupsReturns\\\",\\\"@hasGroups\\\",\\\"@model\\\",\\\"@isPrinting\\\"],[[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,8,[]],true]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-padding-top-0 u-padding-bottom-0\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"notes\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,8,[\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,1,[\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasPrintTerms\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-padding-top-0 u-padding-bottom-0\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"terms\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"terms\\\"]],false],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex u-no-print\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,0,[\\\"isTermsVisible\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"isTermsVisible\\\"]]],null]],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-padding-top-0 u-padding-bottom-0\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"terms\\\"],null],false],[0,\\\": \\\\n          \\\\n            \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,0,[\\\"isTermsVisible\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"isTermsVisible\\\"]]],null]],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"documents/document-print/footer-collect-on-behalf\\\",[],[[\\\"@model\\\"],[[23,8,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/document-thermal-print/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-collect-on-behalf/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 DocumentsDocumentPrintFooterCollectOnBehalfComponent = _exports.default = (_dec = Ember.inject.service, _class = class DocumentsDocumentPrintFooterCollectOnBehalfComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"date\", _descriptor, this);\n    }\n    get collectOnBehalfDateZ() {\n      const model = this.args.model;\n      const modelData = model?._data || {};\n      if (model?.isDispatched && RA.isNotNilOrEmpty(modelData.dispatchDateZ)) {\n        return modelData.dispatchDateZ;\n      }\n      return this.date.getNowZ();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/documents/document-print/footer-collect-on-behalf/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9r1S5ll4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\",\\\"@hideTitle\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"allCollectOnBehalfDetailsForPrint\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"documents-print__collect-on-behalf documents-print__collect-on-behalf--bordered has-text-left \\\",[28,\\\"if\\\",[[23,5,[]],\\\"u-desc u-desc--mini\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold documents-print__label\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"collect on behalf receipt\\\"],null],false],[0,\\\":\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__collect-on-behalf-line\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,0,[\\\"collectOnBehalfDateZ\\\"]],\\\"YYYY-MM-DD\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"allCollectOnBehalfDetailsForPrint\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"collectOnBehalfPreDescription\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__collect-on-behalf-line\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/pre-line\\\",[],[[\\\"@value\\\"],[[23,1,[\\\"_data\\\",\\\"collectOnBehalfPreDescription\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__collect-on-behalf-line\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/pre-line\\\",[],[[\\\"@value\\\"],[[28,\\\"concat\\\",[[28,\\\"or\\\",[[23,1,[\\\"_data\\\",\\\"collectOnBehalfDescription\\\"]],[23,1,[\\\"_data\\\",\\\"item\\\"]]],null],\\\" \\\",[23,1,[\\\"_data\\\",\\\"qty\\\"]],\\\" x \\\",[23,1,[\\\"_data\\\",\\\"price\\\"]]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__collect-on-behalf-line\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\": \\\"],[1,[23,2,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[]],[23,2,[\\\"_data\\\",\\\"collectOnBehalfCustomDescription\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__collect-on-behalf-line\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\"],[\\\"form__input-large\\\",[23,3,[]],[23,2,[\\\"_data\\\",\\\"collectOnBehalfCustomDescription\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/pre-line\\\",[],[[\\\"@value\\\"],[[23,2,[\\\"_data\\\",\\\"collectOnBehalfCustomDescription\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/footer-collect-on-behalf/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-notes/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/document-print/footer-notes/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ke9IFID7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"group\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__notes has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold documents-print__label\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"notes\\\"],null],false],[0,\\\":\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,1,[\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/footer-notes/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-purchases-orders/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/document-print/footer-purchases-orders/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WB1i2JxH\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"documents/document-print/footer-purchases-signature\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"documents/document-print/footer-purchases-terms\\\",null,[[\\\"model\\\",\\\"selectedTerms\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedTerms\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/footer-purchases-orders/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-purchases-signature/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/document-print/footer-purchases-signature/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vcxaEGCE\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__section\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-table u-border u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"from person\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[8],[1,[28,\\\"user/get\\\",[\\\"name\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[8],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterLabel\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"signature\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/footer-purchases-signature/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-purchases-terms/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isTermsVisible: true,\n    hasPrintTerms: Ember.computed('model._data.terms', 'isTermsVisible', function () {\n      if (!this.isTermsVisible) {\n        return false;\n      }\n      return this.get('model._data.terms');\n    }),\n    actions: {\n      togglePrintTerms() {\n        this.toggleProperty('isTermsVisible');\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-purchases-terms/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AREoZ5f9\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasPrintTerms\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__terms documents-print__section has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold documents-print__label\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"terms\\\"],null],false],[0,\\\": \\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[22,\\\"isTermsVisible\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"isTermsVisible\\\"]]],null]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"terms\\\"]]]]],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-no-print has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"terms\\\"],null],false],[0,\\\": \\\\n\\\\n    \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[22,\\\"isTermsVisible\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"isTermsVisible\\\"]]],null]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[5,\\\"documents/document-print/footer-collect-on-behalf\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/footer-purchases-terms/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-sales-delivery-notes/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/document-print/footer-sales-delivery-notes/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IO+mvCqJ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"documents/document-print/footer-sales-signature\\\",null,[[\\\"model\\\",\\\"hasGroups\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasGroups\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"documents/document-print/footer-sales-terms\\\",null,[[\\\"model\\\",\\\"selectedTerms\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedTerms\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/footer-sales-delivery-notes/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-sales-signature/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    totalItemsWithGroup: Ember.computed('hasGroups', 'model.{totalItems,_data.groups.@each.synced}', function () {\n      const model = this.model;\n      const hasGroups = this.get('hasGroups') || false;\n      const groups = model.getData('groups') || [];\n      let totalItems = model.get('totalItems') || 0;\n      if (hasGroups) {\n        R.forEach(group => {\n          const groupTotalItems = group.get('totalItems') || 0;\n          totalItems = totalItems + groupTotalItems;\n        })(groups);\n      }\n      return totalItems;\n    })\n  });\n});","define(\"client/pods/components/documents/document-print/footer-sales-signature/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"V+dw/rLS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__section\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-table u-border u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"from person\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[10,\\\"colspan\\\",\\\"3\\\"],[8],[1,[28,\\\"user/get\\\",[\\\"name\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value documents-print__signature-value--half\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"transporterLabel\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"waybill\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value documents-print__signature-value--half\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"waybill\\\"]],false],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"documents-print__signature-value \\\",[28,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"isShowTotalQty\\\"]],\\\"documents-print__signature-value--half\\\",\\\"\\\"],null]]]],[11,\\\"colspan\\\",[29,[[28,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"isShowTotalQty\\\"]],\\\"\\\",\\\"3\\\"],null]]]],[8],[1,[23,1,[\\\"_data\\\",\\\"packages\\\"]],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"isShowTotalQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total quantity\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value documents-print__signature-value--half\\\"],[8],[1,[23,0,[\\\"totalItemsWithGroup\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-label\\\"],[8],[1,[28,\\\"tt\\\",[\\\"signature\\\"],null],false],[0,\\\":\\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents-print__signature-value\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/footer-sales-signature/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-sales-terms/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isTermsVisible: true,\n    hasPrintTerms: Ember.computed('model._data.terms', 'isTermsVisible', function () {\n      if (!this.isTermsVisible) {\n        return false;\n      }\n      return this.get('model._data.terms');\n    }),\n    actions: {\n      togglePrintTerms() {\n        this.toggleProperty('isTermsVisible');\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/footer-sales-terms/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XTrnZqYc\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasPrintTerms\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-print__terms documents-print__section has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold documents-print__label\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"terms\\\"],null],false],[0,\\\": \\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[22,\\\"isTermsVisible\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"isTermsVisible\\\"]]],null]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"terms\\\"]]]]],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-no-print has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"terms\\\"],null],false],[0,\\\": \\\\n\\\\n    \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[22,\\\"isTermsVisible\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"isTermsVisible\\\"]]],null]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[5,\\\"documents/document-print/footer-collect-on-behalf\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/footer-sales-terms/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/packing-list-simple/component\", [\"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 = Ember.Component.extend({\n    classNames: ['u-print-container'],\n    // @NOTE: PAGE SIZE INFO\n    // A4: 210 × 297 millimeters OR 8.27 × 11.69 inches\n    // US Letter: 216 × 279 millimeters or 8.5 × 11 inches\n    // pixels (1px = 1/96th of 1in)\n    // inches (1in = 96px = 2.54cm)\n\n    // work out height in px for given page size\n    // A4 SIZES:\n    //  HEIGHT: 11.69*96 = 1122.24 ~ round to: 1122px for A4\n    //  WIDTH: 8.27*96 = 793.92 ~ round to: 793px\n    //\n    // US LETTER\n    // 11*96 = 1056\n\n    init() {\n      this._super(...arguments);\n      const pageHeight = 1040;\n      this.set('page', {\n        pageSize: pageHeight\n      });\n      const model = this.model;\n      const details = model.getData('details');\n      const pagesData = [{\n        page: 1,\n        details: details\n      }];\n      this.set('pagesData', pagesData);\n    },\n    didInsertElement() {\n      const self = this;\n      self._super(...arguments);\n      const model = self.get('model');\n      const details = model.getData('details');\n      const pageHeight = self.get('page.pageSize');\n      const entireHeight = self.$('.documents__outer-container').outerHeight() || 0;\n      const tBodyHeight = self.$('.u-print-table__body').outerHeight() || 0;\n      const allowedTBodyHeight = pageHeight - entireHeight + tBodyHeight;\n      let currentPage = 0;\n      let pageAccumulatedHeight = 0;\n      const pagesData = [];\n      const rows = self.$('.u-print-table__data-row');\n      rows.each(function (index, row) {\n        row = self.$(row);\n        const rowHeight = row.outerHeight() || 0;\n        pageAccumulatedHeight = pageAccumulatedHeight + rowHeight;\n        if (pageAccumulatedHeight > allowedTBodyHeight) {\n          ++currentPage;\n          pageAccumulatedHeight = 0;\n        }\n        if (!pagesData[currentPage]) {\n          pagesData[currentPage] = {\n            page: currentPage + 1,\n            details: []\n          };\n        }\n        pagesData[currentPage].details.pushObject(details.objectAt(index));\n      });\n      self.set('pagesData', pagesData);\n    },\n    didRender() {\n      const pageHeight = this.get('page.pageSize');\n      this.$('.documents__outer-container').outerHeight(pageHeight);\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/packing-list-simple/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wAyTUuFW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pageData\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"pagesData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-page-no-break documents__outer-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__section documents__header-self\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__header-item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"documents-print__label\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"documents-print__label\\\"],[8],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"taxNumber\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__header-item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"documents-print__label\\\"],[8],[1,[28,\\\"pod/get\\\",[\\\"company\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"documents-print__label\\\"],[8],[1,[28,\\\"pod/get\\\",[\\\"address\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[1,[28,\\\"tt\\\",[\\\"tel\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"companyTel\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[1,[28,\\\"tt\\\",[\\\"fax\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"companyFax\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"pod/get\\\",[\\\"taxNumber\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__header-item documents__header-item--date\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-header-3 u-bold\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"refOrDocNo\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[29,[\\\"u-header-3 u-bold documents-print__label \\\",[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isVoid\\\"]],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"#\\\"],[1,[24,[\\\"model\\\",\\\"refOrDocNo\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"documents-print__label\\\"],[8],[1,[28,\\\"date\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"documents-print__label u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-print-page-number__current\\\"],[8],[1,[23,1,[\\\"page\\\"]],false],[9],[0,\\\"/\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-print-page-number__total\\\"],[8],[1,[28,\\\"count\\\",[[24,[\\\"pagesData\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"subHeaderComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[24,[\\\"subHeaderComponent\\\"]]],[[\\\"model\\\",\\\"showFromPerson\\\",\\\"selectedContact\\\"],[[24,[\\\"model\\\"]],[24,[\\\"showFromPerson\\\"]],[24,[\\\"selectedContact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[24,[\\\"detailsComponent\\\"]]],[[\\\"model\\\",\\\"details\\\",\\\"selectedContact\\\",\\\"hasEmptyRows\\\"],[[24,[\\\"model\\\"]],[23,1,[\\\"details\\\"]],[24,[\\\"selectedContact\\\"]],[24,[\\\"hasEmptyRows\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"documents/document-print/footer-notes\\\",null,[[\\\"model\\\",\\\"selectedContact\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"footerComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__footer\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[24,[\\\"footerComponent\\\"]]],[[\\\"model\\\",\\\"selectedContact\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"documents/document-print/footer-collect-on-behalf\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/packing-list-simple/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/print-list/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    hasPrices: true,\n    hasGroups: true,\n    hasPrintTerms: true,\n    printReturnsDisplay: 'showReturnsTogether',\n    // init () {\n    //   this._super(...arguments)\n\n    //   this.\n    // },\n\n    // togglePrintAllAsPackingList () {\n    //   this.toggleProperty('printAsPackingList')\n    //   const all = this.get('results') || []\n    //   all.forEach(doc => doc.toggleProperty('printAsPackingList'))\n    // },\n\n    // togglePrintAllAsPackingListOn () {\n    //   this.set('printAsPackingList', true)\n    //   const all = this.get('results') || []\n    //   all.forEach(doc => doc.set('printAsPackingList', true))\n    // },\n\n    // togglePrintAsPackingList (model) {\n    //   model.toggleProperty('printAsPackingList')\n    // },\n\n    toPrint: Ember.computed('results.@each.{print}', 'filter', 'updated', function () {\n      const all = this.results;\n      const filter = this.filter;\n      const mapIndexed = R.addIndex(R.map);\n      return R.pipe(R.filter(doc => {\n        if (R.prop('print', doc) === false && !filter) {\n          return false;\n        }\n        if (filter) {\n          const data = R.prop('_data', doc);\n          const values = R.pipe(R.pick(['telephone', 'ref', 'docNo', 'contact', 'transporterContactPerson', '', 'address']), R.values)(data);\n          const matches = R.filter(value => {\n            if (value.indexOf(filter) > -1) {\n              return true;\n            }\n            return false;\n          })(values);\n          if (matches.length > 0) {\n            return true;\n          }\n          return false;\n        }\n        return true;\n      }), mapIndexed((doc, i) => {\n        doc.set('index', i);\n        return doc;\n      }))(all);\n    }),\n    hiddenItems: Ember.computed('results.@each.print', 'filter', function () {\n      const results = this.results;\n      return R.reject(R.prop('print'), results);\n    }),\n    actions: {\n      togglePrint(model) {\n        model.toggleProperty('print', false);\n      },\n      togglePrintAll() {\n        this.set('filter', '');\n        const all = this.results || [];\n        all.forEach(doc => doc.set('print', true));\n      },\n      toggleHidePrintAll() {\n        this.set('filter', '');\n        const all = this.results || [];\n        all.forEach(doc => doc.set('print', false));\n      },\n      // setPrintStyle (selected) {\n      //   const printStyle = selected._data.value\n      //   this.storage.set('printListStyle', printStyle)\n      // },\n      // togglePrintAsPackingList () {\n      //   this.togglePrintAsPackingList()\n      // },\n\n      // togglePrintAllAsPackingList () {\n      //   this.togglePrintAllAsPackingList()\n      // },\n\n      refreshList() {\n        this.set('updated', Math.random());\n        // const results = this.get('results')\n        // this.set('results', results)\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/print-list/print-doc/component\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    printDoc: Ember.computed('dispatchProcess._data.code', 'model._data.dispatchProcess', 'isAlwaysPrint', function () {\n      const dispatchProcess = this.get('model._data.dispatchProcess');\n      if (this.get('isAlwaysPrint')) {\n        return true;\n      }\n      if (this.get('dispatchProcess._data.code') === dispatchProcess) {\n        return true;\n      }\n      if (this.get('dispatchProcess._data.code') === 'unprepared' && dispatchProcess === '') {\n        return true;\n      }\n      return false;\n    }),\n    isLast: Ember.computed('index', 'toPrintDeliveryNotes', function () {\n      const index = Number(this?.index || 0);\n      const toPrintDeliveryNotes = this.toPrintDeliveryNotes || [];\n      if (RA.isNotNilOrEmpty(toPrintDeliveryNotes)) {\n        if (index === toPrintDeliveryNotes.length - 1) {\n          return true;\n        }\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/documents/document-print/print-list/print-doc/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rqHum9fs\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"printDoc\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isLast\\\"]],\\\"\\\",\\\"u-page-break\\\"],null]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"model\\\",\\\"hasPrices\\\",\\\"hasGroups\\\",\\\"hasPrintTerms\\\",\\\"hasImages\\\",\\\"imagesSize\\\",\\\"hasPrintBtn\\\",\\\"printReturnsDisplayForDispatch\\\",\\\"deliveryNotePrintFormat\\\",\\\"deliveryNotePrintSettings\\\",\\\"showUnit\\\",\\\"showProductCode\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"toPrint\\\",\\\"isDispatchPrinting\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasPrices\\\"]],[24,[\\\"hasGroups\\\"]],[24,[\\\"hasPrintTerms\\\"]],[24,[\\\"hasImages\\\"]],[24,[\\\"imagesSize\\\"]],[24,[\\\"hasPrintBtn\\\"]],[24,[\\\"printReturnsDisplay\\\"]],[24,[\\\"deliveryNotePrintFormat\\\"]],[24,[\\\"deliveryNotePrintSettings\\\"]],[24,[\\\"showUnit\\\"]],[24,[\\\"showProductCode\\\"]],[24,[\\\"selectedContact\\\"]],[24,[\\\"onCloseDialogAction\\\"]],[24,[\\\"toPrint\\\"]],[24,[\\\"isDispatchPrinting\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/print-list/print-doc/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/print-list/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hP3z3lKo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"model\\\",\\\"index\\\",\\\"model\\\",\\\"@isDispatchPrinting\\\",\\\"@toPrintDeliveryNotes\\\",\\\"@printReturnsDisplay\\\",\\\"@showProductCode\\\",\\\"@showUnit\\\",\\\"@deliveryNotePrintSettings\\\",\\\"@deliveryNotePrintFormat\\\",\\\"@hasPrintTerms\\\",\\\"@imagesSize\\\",\\\"@hasImages\\\",\\\"@hasGroups\\\",\\\"@hasPrices\\\",\\\"@hiddenDeliveryNotes\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title u-no-print\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"is-pulled-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-no-print panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"hiddenItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"hct-waybill__hidden has-text-centered u-desc u-desc--mini u-tappable\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"togglePrint\\\",[23,3,[]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"transporterContactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,3,[\\\"_data\\\",\\\"transporterContactPerson\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"contact\\\"]],[28,\\\"not-eq\\\",[[23,3,[\\\"_data\\\",\\\"transporterContactPerson\\\"]],[23,3,[\\\"_data\\\",\\\"contact\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                (\\\"],[1,[23,3,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,3,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            #\\\"],[1,[23,3,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-no-print\\\"],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"documents/document-print/print-list/print-doc\\\",null,[[\\\"selectedContact\\\",\\\"model\\\",\\\"isAlwaysPrint\\\",\\\"printStyle\\\",\\\"hasPrices\\\",\\\"hasGroups\\\",\\\"hasImages\\\",\\\"imagesSize\\\",\\\"hasPrintTerms\\\",\\\"deliveryNotePrintFormat\\\",\\\"deliveryNotePrintSettings\\\",\\\"showUnit\\\",\\\"showProductCode\\\",\\\"hasPrintBtn\\\",\\\"printReturnsDisplay\\\",\\\"dispatchProcess\\\",\\\"onCloseDialogAction\\\",\\\"toPrintDeliveryNotes\\\",\\\"index\\\",\\\"isDispatchPrinting\\\"],[[24,[\\\"selectedContact\\\"]],[23,1,[]],true,[24,[\\\"printStyle\\\"]],[23,15,[]],[23,14,[]],[23,13,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],false,[23,6,[]],[24,[\\\"dispatchProcess\\\"]],[24,[\\\"onCloseDialogAction\\\"]],[23,5,[]],[23,2,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/print-list/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/sub-header-references/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    showFromPerson: false,\n    showSubHeader: Ember.computed('model._data.{ref,paymentMethodKey}', 'showFromPerson', function () {\n      const ref = this.get('model._data.ref');\n      const paymentMethodKey = this.get('model._data.paymentMethodKey');\n      const showFromPerson = this.showFromPerson;\n      if (ref) {\n        return true;\n      }\n      if (paymentMethodKey) {\n        return true;\n      }\n      if (showFromPerson) {\n        return true;\n      }\n      return false;\n    }),\n    paymentMethodKeys: Ember.computed('hasGroups', 'model.{synced,_data.groups.@each.synced}', function () {\n      const model = this.model || {};\n      const hasGroups = this.hasGroups || false;\n      if (model) {\n        return model.getGroupedDocumentsPaymentMethodKeys({\n          document: model,\n          hasGroups,\n          hasPaymentLastFiveDigits: true,\n          isJoinResults: true,\n          isTranslate: true\n        });\n      }\n      return [];\n    }),\n    source: Ember.computed('model._data.source', function () {\n      const source = this.get('model._data.source');\n      if (!source || typeof source !== 'string') {\n        return '';\n      }\n      if (source.length > 30) {\n        return `${source.substring(0, 27)}...`;\n      }\n      return source;\n    })\n  });\n});","define(\"client/pods/components/documents/document-print/sub-header-references/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lze8jRD2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"showSubHeader\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"documents-print__sub-header-table u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__section documents__sub-header\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"reference\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__section documents__sub-header\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"payment method\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"paymentMethodKeys\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showFromPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__section documents__sub-header\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"from person\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"user/get\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"source\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__section documents__sub-header\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"source\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/sub-header-references/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-print/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OV7AZS2J\",\n    \"block\": \"{\\\"symbols\\\":[\\\"documentPreview\\\",\\\"@model\\\",\\\"@useWebsiteLogo\\\",\\\"@isDocumentHasWebsiteKeyAndLogo\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"deliveryNotePrintFormat\\\"]],\\\"thermal\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupInit\\\"]]],null]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"documents/document-print/document-thermal-print\\\",[],[[\\\"@model\\\",\\\"@useWebsiteLogo\\\",\\\"@isDocumentHasWebsiteKeyAndLogo\\\",\\\"@showFromPerson\\\",\\\"@hasGroups\\\",\\\"@hasPrintTerms\\\",\\\"@hasPrices\\\",\\\"@showUnit\\\",\\\"@showProductCode\\\",\\\"@printReturnsDisplay\\\",\\\"@hasGroupsReturns\\\",\\\"@showTaxes\\\",\\\"@footerComponent\\\",\\\"@selectedContact\\\",\\\"@deliveryNotePrintSettings\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,0,[\\\"showFromPerson\\\"]],[23,0,[\\\"hasGroups\\\"]],[23,0,[\\\"hasPrintTerms\\\"]],[23,0,[\\\"hasPrices\\\"]],[23,0,[\\\"showUnit\\\"]],[23,0,[\\\"showProductCode\\\"]],[23,0,[\\\"printReturnsDisplay\\\"]],[23,0,[\\\"hasGroupsReturns\\\"]],[23,0,[\\\"showTaxes\\\"]],[23,0,[\\\"footerComponent\\\"]],[23,0,[\\\"selectedContact\\\"]],[23,0,[\\\"deliveryNotePrintSettings\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"deliveryNotePrintFormat\\\"]],\\\"default\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"previewDocTask\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"createDocPrintTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"documentPreviews\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"documentPreviews\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[]],true],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[10,\\\"class\\\",\\\"u-no-print u-print-page-divider\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasPrintBtn\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/panels/panel-footer\\\",null,[[\\\"hideFooterSpacer\\\"],[true]],{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isSalesInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"deliveryNotePrintFormat\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"deliveryNotePrintFormat\\\"]],\\\"default\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"deliveryNotePaperSize\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-gear\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--justify-start flex-gap-4\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isSalesInvoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"deliveryNotePrintFormat\\\"]],\\\"thermal\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-unit\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"showUnit\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-product-code\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"showProductCode\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"documents/document-print/delivery-note-print-settings-menu\\\",[],[[\\\"@deliveryNotePrintSettings\\\",\\\"@barcodesModeList\\\"],[[23,0,[\\\"deliveryNotePrintSettings\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-barcodes-mode\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],\\\"invoices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-returns-display\\\"]],[22,\\\"printReturnsDisplay\\\"],\\\"_data.value\\\",\\\"_data.label\\\",false,false,[28,\\\"perform\\\",[[23,0,[\\\"createDocPrintTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"show groups\\\",[22,\\\"hasGroups\\\"],[28,\\\"perform\\\",[[23,0,[\\\"createDocPrintTask\\\"]]],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"label\\\",\\\"toggleValue\\\",\\\"onToggle\\\",\\\"togglerClassNames\\\"],[\\\"show prices\\\",[24,[\\\"hasPrices\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"createDocPrintTask\\\"]]],null],\\\"has-text-left\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"terms\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"terms\\\",[22,\\\"hasPrintTerms\\\"],[28,\\\"perform\\\",[[23,0,[\\\"createDocPrintTask\\\"]]],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"deliveryNotePrintFormat\\\"]],\\\"default\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\",\\\"@togglerClassNames\\\"],[\\\"print images\\\",[22,\\\"hasImages\\\"],[28,\\\"perform\\\",[[23,0,[\\\"createDocPrintTask\\\"]]],null],\\\"has-text-left\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasImages\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-images-size\\\"]],[22,\\\"imagesSize\\\"],\\\"_data.value\\\",\\\"_data.label\\\",false,false,[28,\\\"perform\\\",[[23,0,[\\\"createDocPrintTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"tooltipLabel\\\",\\\"icon\\\",\\\"onSubmit\\\"],[\\\"print\\\",\\\"fas fa-print\\\",[24,[\\\"onPrintDialogAction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-print/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-totals/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    big: Ember.inject.service(),\n    tagName: '',\n    roundingCurrency: 0,\n    isNotDocSalesInvoice: Ember.computed('model._data.{docName,docType}', function () {\n      const docName = this.model.getData('docName');\n      const docType = this.model.getData('docType');\n      if (docName === 'invoices' && docType === 'sales') {\n        return false;\n      }\n      return true;\n    }),\n    hasReward: Ember.computed('model._data.fetchedContactRewardData.{contactKey,validPoints,memberLevelId}', 'model._data.rewardData._key', function () {\n      const contactRewardData = this?.model?._data?.fetchedContactRewardData || {};\n      if (RA.isNilOrEmpty(contactRewardData)) {\n        return false;\n      }\n      const rewardData = this?.model?._data?.rewardData;\n      const memberLevelId = contactRewardData?.memberLevelId;\n      const rewardEventForOrder = R.pipe(R.propOr([], 'memberLevels'), R.find(R.propEq('memberLevelId', memberLevelId)), R.propOr([], 'rewardsEvents'), R.find(R.propEq('type', 'order')))(rewardData);\n      if (RA.isNilOrEmpty(rewardEventForOrder)) {\n        return false;\n      }\n      return true;\n    }),\n    groupedDocsTotal: Ember.computed('hasGroups', 'model._data.{groups.@each.synced,exclTotal,inclTotal,taxTotal,rewardPointEarned,returnRewardAdjustmentPoints,returnRewardAdjustmentAmount}', function () {\n      const model = this.model || {};\n      const hasGroups = this.get('hasGroups') || false;\n      if (model) {\n        return model.getGroupedDocumentsTotal({\n          document: model,\n          hasGroups\n        });\n      }\n      return {\n        exclTotal: 0,\n        taxTotal: 0,\n        inclTotal: 0,\n        cashCollectionInclTotal: 0,\n        rewardPointEarned: 0,\n        returnRewardAdjustmentPoints: 0,\n        returnRewardAdjustmentAmount: 0\n      };\n    }),\n    groupedDocsReturnsTotal: Ember.computed('hasGroups', 'hasGroupsReturns', 'model.{returnsInclTotal,netInclTotal,creditCardRefundTotal,_data.groups.@each.synced}', function () {\n      const model = this.model || {};\n      const hasGroups = this.hasGroups || false;\n      const hasGroupsReturns = this.hasGroupsReturns || false;\n      const roundingCurrency = model.getData('roundingCurrency') || 0;\n      let returnsInclTotal = this.big.newBig(model.get('returnsInclTotal') || 0);\n      let netInclTotal = this.big.newBig(model.get('netInclTotal') || 0);\n      let netExclTotal = this.big.newBig(model?._data?.netExclTotal || 0);\n      let netTaxTotal = this.big.newBig(model?._data?.netTaxTotal || 0);\n      let creditCardRefundTotal = this.big.newBig(model.get('creditCardRefundTotal') || 0);\n      if (hasGroups || hasGroupsReturns) {\n        const groups = model.getData('groups') || [];\n        R.forEach(group => {\n          const groupReturnsInclTotal = group.get('returnsInclTotal') || 0;\n          const groupCreditCardRefundTotal = group.get('creditCardRefundTotal') || 0;\n          let groupNetInclTotal = group.getData('inclTotal') || 0;\n          if (group.hasReturnsDetails) {\n            groupNetInclTotal = group.get('netInclTotal') || 0;\n          }\n          let groupNetExclTotal = group.getData('exclTotal') || 0;\n          if (group.hasReturnsDetails) {\n            groupNetExclTotal = group.get('netExclTotal') || 0;\n          }\n          let groupNetTaxTotal = group.getData('taxTotal') || 0;\n          if (group.hasReturnsDetails) {\n            groupNetTaxTotal = group.get('netTaxTotal') || 0;\n          }\n          returnsInclTotal = returnsInclTotal.add(groupReturnsInclTotal);\n          netInclTotal = netInclTotal.add(groupNetInclTotal);\n          netExclTotal = netExclTotal.add(groupNetExclTotal);\n          netTaxTotal = netTaxTotal.add(groupNetTaxTotal);\n          creditCardRefundTotal = creditCardRefundTotal.add(groupCreditCardRefundTotal);\n        })(groups);\n      }\n      return {\n        returnsInclTotal: returnsInclTotal.toFixed(roundingCurrency),\n        netInclTotal: netInclTotal.toFixed(roundingCurrency),\n        netExclTotal: netExclTotal.toFixed(roundingCurrency),\n        netTaxTotal: netTaxTotal.toFixed(roundingCurrency),\n        creditCardRefundTotal: creditCardRefundTotal.toFixed(roundingCurrency)\n      };\n    }),\n    isShowReturnsTotal: Ember.computed('hasGroupReturns', 'printReturnsDisplay', 'model.returnsDetails', function () {\n      const printReturnsDisplay = this?.printReturnsDisplay; // from thermal print\n      const hasGroupReturns = this?.hasGroupReturns || false;\n      const returnsDetails = this?.model?.returnsDetails || [];\n      if (hasGroupReturns) {\n        return true;\n      }\n      if (RA.isNotNilOrEmpty(returnsDetails) && printReturnsDisplay !== 'hideReturns') {\n        // empty printReturnsDisplay should show\n        return true;\n      }\n      return false;\n    }),\n    toggleShowQtyWarningMsg() {\n      const model = this?.model || {};\n      const detail = this?.detail || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        model.toggleShowQtyWarningMsg();\n      }\n      if (RA.isNotNilOrEmpty(detail)) {\n        detail.toggleShowQtyWarningMsg();\n      }\n    },\n    actions: {\n      removePromoCode(model) {\n        model.setData('promoCode', '');\n        model.setData('discountAmount', '');\n        model.setData('discountRate', '');\n      },\n      toggleDiscountType(item) {\n        const discType = item.getData('value');\n        const model = this.model;\n        if (discType === this.get('constants.discountTypes.rate')) {\n          const currentDiscValue = model.getData('discountAmount') || model.getData('discountRate');\n          model.setData('discountRate', currentDiscValue);\n          model.setData('discountAmount', '');\n        } else {\n          const currentDiscValue = model.getData('discountRate') || model.getData('discountAmount');\n          model.setData('discountAmount', currentDiscValue);\n          model.setData('discountRate', '');\n        }\n        model.sumTotals();\n      },\n      toggleShowQtyWarningMsg() {\n        this.toggleShowQtyWarningMsg();\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/document-totals/spend-rewards-dialog/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let DocumentsDocumentTotalsSpendRewardsDialogComponent = _exports.default = (_dec = Ember._action, _class = class DocumentsDocumentTotalsSpendRewardsDialogComponent extends _component.default {\n    setRewardDataUsage() {\n      this.args.onSumTotals();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"setRewardDataUsage\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"setRewardDataUsage\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/document-totals/spend-rewards-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DaqpH0+d\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onSumTotals\\\",\\\"@label\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@isRunning\\\",\\\"@onCloseDialogAction\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[[3,\\\"did-insert\\\",[[23,1,[]]]]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,2,[]],[23,0,[\\\"errors\\\"]],\\\"rewardPointApplied\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@onInput\\\",\\\"@value\\\"],[[23,3,[]],[23,1,[]],[23,4,[\\\"_data\\\",\\\"rewardPointApplied\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"valid points\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\":\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,4,[\\\"contactRewardData\\\",\\\"pointsData\\\",\\\"validPoints\\\"]]]]],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[23,7,[]],[23,6,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-totals/spend-rewards-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/document-totals/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+E9RmJFN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"isTooltipVisible\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@model\\\",\\\"@onSumTotals\\\",\\\"@isPrinting\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"isSplitting\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[11,\\\"class\\\",[29,[\\\"u-table documents__totals u-full-width \\\",[22,\\\"tableClassNames\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showTaxes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\"],[\\\"exclusive total\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"groupedDocsTotal\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showTaxes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\"],[\\\"tax\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"groupedDocsTotal\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,0,[\\\"groupedDocsTotal\\\",\\\"returnRewardAdjustmentPoints\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,false]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-exclamation-circle\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"adjustment amount\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"return_points_adjustment_explanation\\\"],null],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n          \\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n          (\\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"groupedDocsTotal\\\",\\\"returnRewardAdjustmentPoints\\\"]]]]],false],[0,\\\") \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"groupedDocsTotal\\\",\\\"returnRewardAdjustmentAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\"],[\\\"total\\\"]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"groupedDocsTotal\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowReturnsTotal\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\"],[\\\"returns inclusive total\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"groupedDocsReturnsTotal\\\",\\\"returnsInclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\"],[\\\"inclusive total after returns\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"groupedDocsReturnsTotal\\\",\\\"netInclTotal\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"promoCode\\\"]],[28,\\\"and\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"model\\\",\\\"allowDiscounts\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[23,7,[]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-v-align-middle\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"hasLineByLineDiscount\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"prefix\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"inclusive discount\\\"],null],\\\": \\\"],null],[28,\\\"or\\\",[[24,[\\\"isReadonly\\\"]],[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],\\\"returns\\\"],null]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"discounts-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"discountType\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleDiscountType\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasLineByLineDiscount\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"promoCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"promo code\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"promoCode\\\"]],false],[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"discountRate\\\"]]],[[\\\"autoCalculate\\\",\\\"negative\\\"],[false,true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"discountAllowOnSale\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"discountRate\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"discountRateOnSale\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                      (\\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"discountRateOnSale\\\"]]],[[\\\"autoCalculate\\\",\\\"negative\\\"],[false,true]]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"removePromoCode\\\",[24,[\\\"model\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isDiscountRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"onInput\\\",\\\"value\\\",\\\"onFocusOut\\\",\\\"type\\\",\\\"pattern\\\",\\\"inputmode\\\"],[[28,\\\"or\\\",[[24,[\\\"isReadonly\\\"]],[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],\\\"returns\\\"],null]],null],\\\"has-text-right\\\",[24,[\\\"onSumTotals\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"discountRate\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleShowQtyWarningMsg\\\"],null],\\\"text\\\",\\\"\\\\\\\\d*\\\",\\\"numeric\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"onInput\\\",\\\"value\\\",\\\"onFocusOut\\\",\\\"type\\\",\\\"pattern\\\",\\\"inputmode\\\"],[[28,\\\"or\\\",[[24,[\\\"isReadonly\\\"]],[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],\\\"returns\\\"],null]],null],\\\"has-text-right\\\",[24,[\\\"onSumTotals\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"discountAmount\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleShowQtyWarningMsg\\\"],null],\\\"text\\\",\\\"\\\\\\\\d*\\\",\\\"numeric\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"docType\\\"]],\\\"sales\\\"],null],[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"docName\\\"]],\\\"returns\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[\\\"isDiscountRate\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,5,[\\\"_data\\\",\\\"paymentCreditCardTransactionCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-v-align-middle\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"return all discount\\\"],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"onToggle\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"isReturnAllDiscountAmount\\\"]],[24,[\\\"onSumTotals\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,8,[]],[23,0,[\\\"hasReward\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@modalDialogTitleTranslate\\\",\\\"@disabled\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@title\\\"],[true,[28,\\\"or\\\",[[23,0,[\\\"isNotDocSalesInvoice\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionCode\\\"]]],null],\\\"spend reward points\\\",\\\"\\\",\\\"spend reward points\\\",\\\"spend reward points\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"documents/document-totals/spend-rewards-dialog\\\",[],[[\\\"@tab\\\",\\\"@label\\\",\\\"@onCloseDialogAction\\\",\\\"@errors\\\",\\\"@model\\\",\\\"@onSumTotals\\\"],[[23,3,[]],\\\"spend reward points\\\",[23,1,[]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value u-v-align-middle has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"            (\\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]]]]],false],[0,\\\")\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"rewardAmountCalculated\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"rewardAmountCalculated\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"rewardAmountTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,0,[\\\"groupedDocsReturnsTotal\\\",\\\"creditCardRefundTotal\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\"],[\\\"refund credit card total\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"groupedDocsReturnsTotal\\\",\\\"creditCardRefundTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"and\\\",[[28,\\\"gt\\\",[[23,0,[\\\"groupedDocsTotal\\\",\\\"rewardPointEarned\\\"]],0],null],[28,\\\"not\\\",[[24,[\\\"isEditing\\\"]]],null]],null],[28,\\\"and\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],\\\"returns\\\"],null],[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]],0],null]],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],\\\"returns\\\"],null],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"saveReturn\\\"]]],null],[24,[\\\"isEditing\\\"]]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],\\\"returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"deduct points earned\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"points earned\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,0,[\\\"groupedDocsTotal\\\",\\\"rewardPointEarned\\\"]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],\\\"returns\\\"],null],[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"return points spent\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"documents__totals-value has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showRefundWorkflow\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isSalesReturns\\\"]],[28,\\\"or\\\",[[24,[\\\"model\\\",\\\"isCashBeforeDelivery\\\"]],[24,[\\\"model\\\",\\\"isCashOnDelivery\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"documents/btn-refund/workflow\\\",[],[[\\\"@inclTotal\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isInclTotalReadonly\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]],[23,0,[\\\"model\\\"]],[22,\\\"isReadonly\\\"],[22,\\\"isReadonly\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/document-totals/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/documents-selector/component\", [\"exports\", \"ramda-extension\"], function (_exports, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['toggles/allCustom', 'documents/lists/types/sales', 'documents/lists/types/purchases']);\n    },\n    availableDocs: Ember.computed('crud.lists.{documents-lists-types-sales.[],documents-lists-types-purchases.[]}', 'hasSales', 'hasPurchases', function () {\n      let salesDocs = [];\n      if (this.hasSales) {\n        salesDocs = R_.dotPath('crud.lists.documents-lists-types-sales')(this) || [];\n      }\n      let purchasesDocs = [];\n      if (this.hasPurchases) {\n        purchasesDocs = R_.dotPath('crud.lists.documents-lists-types-purchases')(this) || [];\n      }\n      return salesDocs.concat(purchasesDocs);\n    })\n  });\n});","define(\"client/pods/components/documents/documents-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y+lJjurP\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\"],[true,true,true,[24,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-allCustom\\\"]],[24,[\\\"selectedType\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedType\\\"]],\\\"all\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,true,[24,[\\\"availableDocs\\\"]],\\\"list-selector list-selector--horizontal\\\",[24,[\\\"model\\\"]],[24,[\\\"valueKey\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/documents-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/settings\", \"client/utils/nventor\", \"client/mixins/doc-status\", \"client/mixins/dispatch\", \"client/mixins/sortable-actions\", \"client/pods/options/model\", \"ember-concurrency\", \"client/mixins/transporter\", \"client/mixins/doc-contacts\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _date, _settings, _nventor, _docStatus, _dispatch, _sortableActions, _model, _emberConcurrency, _transporter, _docContacts, R, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj; // import constants from '../../../../constants'\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  /**\n   * documents/editor-main component\n   * purpose of this component is to allow for shared properties\n   * of documents info and documents detail.\n   * (as compared to editor mixin where its properties/functions are only for doc info)\n   */\n  var _default = _exports.default = Ember.Component.extend(_date.default, _docContacts.default, _docStatus.default, _dispatch.default, _settings.default, _sortableActions.default, _transporter.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    big: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    storage: Ember.inject.service(),\n    classNames: [''],\n    contactsList: null,\n    productsList: null,\n    isEditing: false,\n    recalculateTotals: 0,\n    // determines whether totals need to be recalculated\n    alreadyAddedDetails: false,\n    linkFromDetails: null,\n    isVisibleLinkConflictsModal: false,\n    showDispatchProcesses: false,\n    hasManagePods: false,\n    submitDraftAppendPath: 'draft',\n    submitFinalAppendPath: 'final',\n    showCancelInvoiceModal: false,\n    bulkInsertInstructions: null,\n    init() {\n      this._super(...arguments);\n      this.setup();\n      const adapters = [{\n        adapterName: 'users',\n        appendPath: 'internal'\n      }, 'units', 'taxes', 'taxMethods', 'discounts/types', 'documents/lists/discountmethods', 'paymentMethods', 'paymentTerms', 'paymentTerms/from', 'paymentTerms/end', 'documents/lists/deliverydatesoptions', 'dispatch/lists/processes', 'extensions/apps/tw/invoicing', 'extensions/apps/tw/e-invoices/carrier-types', 'toggles/onOff'];\n      this.bulkInsertInstructions = {\n        instructions: '',\n        separator: '=',\n        // only used for display. allow user to change later when needed:\n        fields: ['item', 'qty', 'price']\n      };\n      const userData = this.storage.get('tokenData');\n      if (userData.isAdmin) {\n        this.set('hasManagePods', true);\n      }\n      const associatesContactsFilters = this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          count: 20,\n          isAssociates: true\n        }\n      });\n      this.loadContactTask.perform(associatesContactsFilters);\n      const docType = this.docType;\n      adapters.pushObject(`documents/${docType}/terms`);\n      this.crud.addLists(this, adapters);\n    },\n    setup() {\n      // products lists is populated when searching for products\n      this.set('contactsList', []);\n      this.set('productsList', []);\n      this.set('selectedPaymentMethods', []);\n      this.set('docType', this.get('tab.config.docType'));\n      this.set('docName', this.get('tab.config.docName'));\n      this.set('dontFetchRegionCode', this.get('tab.config.dontFetchRegionCode'));\n      this.set('hasDeliveryDate', this.get('tab.config.hasDeliveryDate'));\n      this.set('hasValidityDate', this.get('tab.config.hasValidityDate'));\n      this.set('hasTaxNumber', this.get('tab.config.hasTaxNumber'));\n      this.set('hasCommission', this.get('tab.config.hasCommission'));\n      this.set('adapterName', this.get('tab.config.adapterName'));\n      const docType = this?.docType || '';\n      let excludes = [{\n        key: 'setType',\n        value: 'isSetWithChoices'\n      }, {\n        key: 'setType',\n        value: 'hasVariants'\n      }];\n      if (R.equals(docType, 'purchases')) {\n        excludes = R.append({\n          key: 'setType',\n          value: 'isSet'\n        })(excludes);\n      }\n      const productsFilters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'productsList',\n          excludes\n        }\n      });\n      this.set('productsFilters', productsFilters);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.set('listsIsLoaded', Math.random());\n      this.setDefaultTerms();\n    },\n    // removed for now (will fix later on fixing pending)\n    // linkDocWithShortcutTask: task(function * () {\n    //   const isFromPendingShortcut = this.isFromPendingShortcut\n    //   const isFromDocument = this.isFromDocument\n    //   const isLinkingNeeded = this.isLinkingNeeded\n    //   if ((isFromPendingShortcut || isFromDocument) && isLinkingNeeded) {\n    //     const model = this.model\n    //     const linksList = yield this.searchForLinksTask.perform()\n    //     const details = model.getData('details')\n    //     const detailHead = R.take(1, details)\n    //     let filteredLinksList = []\n    //     R.forEach(detail => {\n    //       const detailKey = detail.getData('_key') || ''\n    //       if (RA.isNotNilOrEmpty(detailKey)) {\n    //         const filteredLink = R.find(R.pathEq(['_data', '_key'], detailKey), linksList)\n    //         filteredLinksList = R.append(filteredLink, filteredLinksList)\n    //       }\n    //     })(details)\n    //     if (RA.isNotNilOrEmpty(filteredLinksList)) {\n    //       model.setData('details', detailHead)\n    //       this.preLoadLinkedDetails(filteredLinksList, R.head(detailHead))\n    //     }\n    //     this.model.sumTotals()\n    //   }\n    // }),\n\n    requireContact: Ember.computed('tabParent.isPos', 'model._data.contact', function () {\n      const model = this.model;\n      if (!model) {\n        return true;\n      }\n      const isPos = R.pathEq(['tabParent', 'isPos'], true)(this);\n      if (isPos) {\n        return false;\n      }\n      const contact = model?._data?.contact;\n      if (contact) {\n        return false;\n      }\n      const isPosDocument = R.pathEq(['_data', 'isPos'], true)(model);\n      if (isPosDocument) {\n        return false;\n      }\n      return true;\n    }),\n    loadContactTask: (0, _emberConcurrency.task)(function* (associatesContactsFilters) {\n      const associatesContacts = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'contacts',\n        filters: associatesContactsFilters\n      });\n      this.set('associatesContacts', associatesContacts);\n    }),\n    async setDefaultTerms() {\n      if (this.isNew) {\n        const docType = this.docType;\n        const docName = this.docName;\n        const defaultTermsKey = await this.settings.getDefaultTerms(docType, docName);\n        const terms = this.docTermsList || [];\n        const found = terms.findBy('_data._key', defaultTermsKey);\n        if (found) {\n          this.loadTerms(found);\n        }\n      }\n    },\n    loadTerms(term) {\n      const model = this.model;\n      if (model && model?.setData) {\n        model.setData('terms', term.getData('value'));\n      } else {\n        // why does this throw an error sometimes?\n        _nventor.default.throw('model does not exist', model);\n      }\n    },\n    allowTwInvoicing: Ember.computed('docType', 'docName', '', function () {\n      const docType = this.docType;\n      const docName = this.docName;\n      return this.settings.allowTwInvoicing(docType, docName);\n    }),\n    docTermsList: Ember.computed('listsIsLoaded', 'docType', function () {\n      const docType = this.docType;\n      return this.get(`crud.lists.documents-${docType}-terms`);\n    }),\n    isAllowPrintInvoice: Ember.computed('docType', 'docName', 'model._data.status', function () {\n      const docType = this.docType;\n      const docName = this.docName;\n      const model = this.model;\n      const status = this.get('model._data.status');\n      if (docType === 'sales' && docName === 'invoices') {\n        if (status === 'final') {\n          return true;\n        }\n        if (status === 'void') {\n          if (model.get('hasEInvoices')) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }),\n    selectedTermLabel: Ember.computed('docTermsList', 'model._data.terms', function () {\n      const docTermsList = this.docTermsList;\n      const terms = this.model.getData('terms');\n      if (terms && docTermsList) {\n        return R.pipe(R.find(R.pathEq(['_data', 'value'], terms)), R.pathOr('', ['_data', 'label']))(docTermsList);\n      }\n      return '';\n    }),\n    printBtnsComponent: Ember.computed('docType', 'docName', function () {\n      const docType = this.docType;\n      const docName = this.docName;\n      return `documents/${docType}/${docName}/print-btns`;\n    }),\n    /**\n     * determines if document isDraft\n     * (computed property)\n     *\n     * @type {Boolean}\n     */\n    isDraft: Ember.computed('model._data.status', function () {\n      const status = this.get('model._data.status');\n      if (status === this.get('constants.documentsStatus.final')) {\n        return false;\n      }\n      return true;\n    }),\n    /**\n     * determines if document isReadonly based on isEditing\n     * isReadonly is opposite to isEditing\n     * (computed property)\n     *\n     * @type {Boolean}\n     */\n    isReadonly: Ember.computed('isEditing', 'onSubmitTask.isRunning', 'model._data.isVoid', function () {\n      if (this.get('model._data.isVoid')) {\n        return true;\n      }\n      if (this.get('onSubmitTask.isRunning')) {\n        return true;\n      }\n      if (this.isEditing === true) {\n        return false;\n      }\n      return true;\n    }),\n    // isEditingInfo: computed('isEditing', 'isSplitting', 'isMerging', function () {\n    //   if (this.get('isSplitting')) {\n    //     return false\n    //   }\n\n    //   if (this.get('isMerging')) {\n    //     return false\n    //   }\n\n    //   return this.get('isEditing')\n    // }),\n\n    /**\n     * determine if there is a single or mulitple delivery dates (line by line)\n     */\n    hasSingleDeliveryDate: Ember.computed('model._data.deliveryDateOption', function () {\n      const deliveryDateOption = this.get('model._data.deliveryDateOption');\n      if (deliveryDateOption === this.get('constants.deliveryDateOptions.single')) {\n        return true;\n      }\n      return false;\n    }),\n    hasDiscount: Ember.computed('model._data.{discountRate,discountAmount}', function () {\n      // @TODO: test\n      const model = this.model;\n      const discRateBig = model.getDataBig('discountRate');\n      const discAmountBig = model.getDataBig('discountAmount');\n      if (discRateBig.gt(0) || discAmountBig.gt(0)) {\n        return true;\n      }\n      return false;\n    }),\n    // /**\n    //  * returns true if discount is a %\n    //  * @type {Boolean}\n    //  */\n    // isDiscountRate: computed('model._data.discountType', function () {\n    //   const model = this.get('model')\n    //   const discType = model.getData('discountType')\n\n    //   if (discType === this.get('constants.discountTypes.rate')) {\n    //     return true\n    //   }\n\n    //   return false\n    // }),\n\n    /**\n     * check if any salesPersons are assigned to contact\n     * @type {Boolean}\n     */\n    hasSalesPersons: Ember.computed('model._data.salesPersons.[]', function () {\n      // @TODO TEST\n      const salesPersons = this.get('model._data.salesPersons');\n      if (Ember.isEmpty(salesPersons)) {\n        return false;\n      }\n      return salesPersons;\n    }),\n    // _linkAttrInfo (linkFromInfoObject, key, linkFromKey) {\n    //   console.log('=====link from info ===: ' + key)\n    //   const linkFromInfo = linkFromInfoObject[key]\n\n    //   console.log(linkFromInfo)\n\n    //   return this._linkAttr(linkFromInfo, key, linkFromKey)\n    // },\n\n    // _linkAttr (linkFromDetail, key, linkFromKey) {\n    //   const model = this.get('model')\n\n    //   linkFromKey = linkFromKey || key\n\n    //   let value = linkFromDetail.getData(linkFromKey)\n    //   if (value !== '') {\n    //     model.setData(key, value)\n    //   }\n\n    //   return true\n    // },\n\n    relatedComments: Ember.computed('model._data.details.[]', function () {\n      const related = [];\n      const model = this.model;\n      if (model) {\n        const details = model.getData('details', []);\n        R.forEach(function (detail) {\n          const fromMaster = R_.dotPath('_data.fromMaster')(detail);\n          if (fromMaster) {\n            if (!related.findBy('master', fromMaster)) {\n              related.push({\n                param: 'master',\n                value: fromMaster\n              });\n            }\n          }\n        })(details);\n      }\n      return related;\n    }),\n    hasGroupsReturns: Ember.computed('model._data.groups.@each.synced', function () {\n      const model = this.model || {};\n      let hasGroupsReturns = false;\n      if (model && this.model) {\n        const groups = model.getData('groups') || [];\n        R.forEach(group => {\n          const groupReturnDetails = group.get('returnsDetails') || [];\n          if (RA.isNotNilOrEmpty(groupReturnDetails)) {\n            hasGroupsReturns = true;\n          }\n        })(groups);\n      }\n      return hasGroupsReturns;\n    }),\n    /**\n       * gets delivery date to insert into new Detail\n       * will return todays date as default, or will\n       * return previous line\n       */\n    getNextDeliveryDateZ() {\n      // check previous line's delivery date\n      const lastDetail = this.getLastDetail();\n      if (lastDetail) {\n        const lastDeliveryDate = lastDetail.getData('deliveryDateZ');\n        if (lastDeliveryDate) {\n          return lastDeliveryDate;\n        }\n      }\n      const model = this.model;\n      return model.getData('deliveryDateZ') || this.getStartOfDayZ();\n    },\n    getLastDetail() {\n      const model = this.model;\n      if (model) {\n        const details = model.getData('details');\n        if (!Ember.isEmpty(details)) {\n          return details.get('lastObject');\n        }\n      }\n      return false;\n    },\n    async resetDetail(detail) {\n      const model = this.model;\n      model.resetDetail(detail);\n      const taxes = R_.dotPath('crud.lists.taxes')(this);\n      detail.setData('discountType', this.get('constants.discountTypes.rate'));\n      const defaultTaxRate = await this.settings.getDefaultTaxRate(taxes);\n      detail.setData('taxRate', defaultTaxRate);\n      if (this.docName === 'orders' || this.docName === 'quotes') {\n        const todayZ = this.getStartOfDayZ();\n        detail.setData('deliveryDateZ', todayZ);\n      }\n      model.sumTotals();\n    },\n    _getLinkConflicts(linkFromInfoResolutions) {\n      // const linkFromInfoResolutions = this.get('linkFromInfoResolutions') || []\n      if (Ember.isEmpty(linkFromInfoResolutions)) {\n        return [];\n      }\n      return linkFromInfoResolutions.filter(infoGroup => {\n        const values = infoGroup.values.filter(item => item.value != null);\n        // const values = infoGroup.values.filter(item => item.value !== '' && item.value != null)\n        if (values.length > 1) {\n          return true;\n        }\n        return false;\n      });\n    },\n    loadLinked() {\n      const model = this.model;\n      this.set('isVisibleLinkConflictsModal', false);\n      model.linkFromTemp();\n      const linkFromDetails = this.linkFromDetails;\n      linkFromDetails.filter(linkFromDetail => linkFromDetail.isEditorValue !== true).map(linkFromDetail => {\n        const linkToDetail = this.linkToDetail;\n        model.loadLinkedDetail(linkFromDetail, linkToDetail);\n        this.onAddNewDetail();\n        this.set('linkToDetail', this.get('model._data.details').get('lastObject'));\n      });\n      this.set('linkFromInfoResolutions', []);\n\n      // const transporterKey = model.getData('transporterKey')\n      // this.findAndLoadTransporterByKey(model, transporterKey)\n    },\n    searchProductsTask: (0, _emberConcurrency.task)(function* ({\n      adapterName = 'products',\n      query\n    }, inputQuery = '') {\n      query = inputQuery || query;\n      if (query?.trim?.() !== '') {\n        try {\n          const filters = this.productsFilters;\n          // filters.setData('query', query)\n\n          const results = yield this.searchRecordsTask.perform({\n            adapterName,\n            filters,\n            query\n          });\n          return results;\n        } catch (e) {\n          console.error(e);\n        }\n      }\n    }),\n    onBulkInsertDetailsTask: (0, _emberConcurrency.task)(function* (bulkInsertInstructions = {}) {\n      try {\n        const detailLines = R.pipe(R.propOr('', 'instructions'), R.split(/\\n/), R.trim, R.reject(RA.isNilOrEmpty), R.map(detailLine => {\n          // [name] == [qty] == [price]\n          // detail name == 123 == 12.2\n          const separator = bulkInsertInstructions.separator || '=';\n          const regex = new RegExp(separator, 'g');\n          const detailRawData = R.pipe(R.split(regex), R.trim)(detailLine);\n          const item = detailRawData?.[0] || '';\n          if (!item) {\n            return;\n          }\n          const qty = Number(detailRawData?.[1]) || null;\n          const price = Number(detailRawData?.[2]) || null;\n          return {\n            item,\n            qty,\n            price\n          };\n        }), R.reject(RA.isNilOrEmpty))(bulkInsertInstructions);\n\n        // search product, then add to detail\n        const taxesList = R_.dotPath('crud.lists.taxes')(this);\n        const model = this.model;\n        const q = R.map(detailLine => {\n          const item = detailLine?.item || '';\n          return this.searchProductsTask.perform({\n            query: item\n          });\n        })(detailLines);\n        const results = yield (0, _emberConcurrency.all)(q);\n        RA.mapIndexed((itemSearchResults, index) => {\n          let detailModel;\n          if (index === 0) {\n            const details = model?._data?.details || [];\n            const last = details.get('lastObject');\n            if (!last?.item && details.length <= 1) {\n              model.setData('details', []);\n            } else if (!last?.item) {\n              details.removeObject(last);\n            }\n          }\n          detailModel = model.newBlankDetail({\n            taxesList,\n            bulkInsert: true\n          });\n          const detailLine = detailLines[index] || '';\n          let item = detailLine.item;\n          let matchingResult = R.find(R.pathEq(['_data', 'code'], item))(itemSearchResults);\n          if (!matchingResult) {\n            matchingResult = R.find(R.pathEq(['_data', 'name'], item))(itemSearchResults);\n          }\n          if (!matchingResult) {\n            matchingResult = R.path([0])(itemSearchResults);\n          }\n          let itemCode = '';\n          let itemKey = '';\n          if (RA.isNotNilOrEmpty(matchingResult)) {\n            itemCode = matchingResult?._data?.code || '';\n            itemKey = matchingResult?._data?._key || '';\n            detailModel.set('autoLoadProductQuery', item);\n            detailModel.set('autoLoadProduct', matchingResult);\n            detailModel.set('autoLoadProductResults', itemSearchResults);\n            detailModel.setData('itemKey', itemKey);\n            detailModel.setData('itemCode', itemCode);\n          } else {\n            // detailModel.setData('itemCode', item)\n            detailModel.setData('item', item);\n          }\n          if (RA.isNotNil(detailLine?.qty)) {\n            detailModel.setData('qty', detailLine?.qty);\n          }\n          if (RA.isNotNil(detailLine?.price)) {\n            detailModel.setData('price', detailLine?.price);\n          }\n          return detailModel;\n        })(results);\n      } catch (e) {\n        console.error(e);\n      }\n    }),\n    selectConflictResolution(conflictCategory, valueGroup) {\n      const model = this.model;\n      const key = conflictCategory.param;\n      const linkFromDetail = valueGroup.get('linkFromDetails').get('firstObject');\n      conflictCategory.set('selected', []);\n      conflictCategory.get('selected').pushObject(valueGroup);\n      model.preLinkInfo(linkFromDetail, key);\n    },\n    sendEmailTask: (0, _emberConcurrency.task)(function* ({\n      email,\n      params\n    }) {\n      const model = this.model;\n      const key = model.getData('_key');\n      const adapterName = this.adapterName;\n      const adapter = this.server.getAdapter(adapterName);\n      const payload = R.mergeRight(email._data, params);\n      const result = yield adapter.call({\n        method: 'POST',\n        appendPath: `emails/${key}`,\n        data: payload\n      });\n      return result;\n    }),\n    removeAllDetails() {\n      const model = this.model;\n      model.removeAllDetails();\n      this.onAddNewDetail();\n    },\n    preLoadLinkedDetails(linkFromDetails, linkToDetail) {\n      // @TODO: this can be done whilst adding linked detail?\n      if (!Ember.isArray(linkFromDetails)) {\n        linkFromDetails = [linkFromDetails];\n      }\n      const model = this.model;\n      const editorValue = _nventor.default.createModel(_model.default, {\n        doc: model.serialize()\n      }, {\n        isEditorValue: true\n      });\n      linkFromDetails.pushObject(editorValue);\n      const possibleConflictProperties = model.get('linkAttrs').filter(key => {\n        if (key.excludeForDocName) {\n          if (!Ember.isArray(key.excludeForDocName)) {\n            key.excludeForDocName = [key.excludeForDocName];\n          }\n          if (key.excludeForDocName.indexOf(this.docName) > -1) {\n            return false;\n          }\n        }\n        return true;\n      });\n      const linkFromInfoResolutions = possibleConflictProperties.map(key => {\n        let component;\n        let param;\n        let group;\n        let label;\n        let translate;\n        let translatePrefix;\n        if (_nventor.default.confirm.isObject(key)) {\n          if (key.param) {\n            param = key.param;\n          }\n          if (key.group) {\n            group = key.group;\n          }\n          if (key.translate) {\n            translate = key.translate;\n          }\n          if (key.translatePrefix) {\n            translatePrefix = key.translatePrefix;\n          }\n          component = key.component;\n          label = key.label || param;\n        } else {\n          param = key;\n        }\n        if (!component) {\n          component = 'documents/links-conflict/generic-conflict';\n        }\n        let numberOfDifferentValues = linkFromDetails.map(item => {\n          if (group) {\n            return JSON.stringify(group.map(param => _nventor.default.confirm.get(item._data.doc, param, '')));\n          } else {\n            return _nventor.default.confirm.get(item._data.doc, param, '');\n          }\n        }).filter((value, index, self) => self.indexOf(value) === index);\n        if (group) {\n          numberOfDifferentValues = numberOfDifferentValues.map(JSON.parse);\n        }\n        const linkFromInfoResolutionsGroup = Ember.Object.create({\n          param: param,\n          label: label || param,\n          component,\n          translate,\n          translatePrefix,\n          group: group,\n          selected: [],\n          values: numberOfDifferentValues.map(value => {\n            let filteredLinkFromDetails;\n            if (group) {\n              filteredLinkFromDetails = group.reduce((filtered, param, index) => {\n                return filtered.filter(item => _nventor.default.confirm.get(item._data.doc, param, '') === value[index]);\n              }, linkFromDetails);\n              value = group.reduce((valueObj, param, index) => {\n                valueObj[param] = value[index];\n                return valueObj;\n              }, {});\n            } else {\n              filteredLinkFromDetails = linkFromDetails.filter(item => _nventor.default.confirm.get(item._data.doc, param, '') === value);\n            }\n            return Ember.Object.create({\n              value: value,\n              linkFromDetails: filteredLinkFromDetails\n            });\n          })\n        });\n\n        // if key == paymentMethod and have consignments, remove other values not consignments\n        if (R.equals(param, 'paymentMethod')) {\n          const values = linkFromInfoResolutionsGroup?.values || [];\n          const paymentMethodKeys = R.pipe(R.map(data => {\n            const paymentMethodKey = data?.value?.paymentMethodKey || '';\n            return paymentMethodKey;\n          }), R.uniq)(values);\n          if (R.includes('consignment', paymentMethodKeys)) {\n            linkFromInfoResolutionsGroup.values = R.filter(data => {\n              const paymentMethodKey = data?.value?.paymentMethodKey || '';\n              if (R.equals(paymentMethodKey, 'consignment')) {\n                return true;\n              }\n              return false;\n            })(values);\n          }\n        }\n        this.selectConflictResolution(linkFromInfoResolutionsGroup, linkFromInfoResolutionsGroup.get('values').get('firstObject'));\n        return linkFromInfoResolutionsGroup;\n      });\n      this.set('linkFromDetails', linkFromDetails);\n      this.set('linkToDetail', linkToDetail);\n      let hasLinkConflicts = this._getLinkConflicts(linkFromInfoResolutions);\n      const isFromPendingShortcut = this.isFromPendingShortcut;\n      const isFromDocument = this.isFromDocument;\n      if (!Ember.isEmpty(hasLinkConflicts)) {\n        this.set('hasLinkConflicts', hasLinkConflicts);\n        this.set('isVisibleLinkConflictsModal', true);\n        if (isFromPendingShortcut || isFromDocument) {\n          this.loadLinked();\n        }\n      } else {\n        this.set('hasLinkConflicts', []);\n        this.set('isVisibleLinkConflictsModal', false);\n        this.loadLinked();\n      }\n    },\n    actions: {\n      sumTotals() {\n        this.model.sumTotals();\n      },\n      loadLinked() {\n        this.loadLinked();\n      },\n      removeDetail(detail) {\n        const model = this.model;\n        const details = model.getData('details');\n        // only remove detail if current line is not last line\n        if (details.get('lastObject').getData('index') === detail.getData('index')) {\n          this.resetDetail(detail);\n        } else {\n          model.removeDetail(detail);\n        }\n\n        // recalculate totals\n        model.sumTotals();\n      },\n      resetDetail(detail) {\n        this.resetDetail(detail);\n      },\n      removeAllDetails() {\n        this.removeAllDetails();\n      },\n      toggleIsVoidStatus() {\n        const model = this.model;\n        let isVoid = model.getData('isVoid') || false;\n        if (isVoid) {\n          isVoid = false;\n        } else {\n          isVoid = true;\n        }\n        model.setData('isVoid', isVoid);\n      },\n      selectConflictResolution(conflictCategory, valueGroup) {\n        this.selectConflictResolution(conflictCategory, valueGroup);\n      },\n      setupSendEmail() {\n        const model = this.model;\n        const tokenData = this.storage.get('tokenData');\n        const docType = this.docType;\n        const docName = this.docName;\n        let docNo = model.getData('docNo');\n        if (model.getData('ref') && model.getData('sendRefAsDocNo')) {\n          docNo = model.getData('ref');\n        }\n        const subject = this.intl.t(`${docType}-${docName}`) + ' - #' + docNo;\n        const isUseCompanyEmail = this?.settings?.settingsModel?.getData('isUseCompanyEmail') || false;\n        let fromName = tokenData.name;\n        let fromAddress = tokenData.email;\n        if (isUseCompanyEmail) {\n          fromName = this?.settings?.settingsModel?.getData('emailFromName') || '';\n          fromAddress = this?.settings?.settingsModel?.getData('emailFromAddress') || '';\n        }\n        const email = Ember.Object.create({\n          _data: {\n            toAddress: model.getData('email'),\n            toName: model.getData('contact'),\n            fromName,\n            fromAddress,\n            subject\n          }\n        });\n        this.set('email', email);\n      },\n      setupSendPaymentReminderEmail() {\n        const model = this.model;\n        const tokenData = this.storage.get('tokenData');\n        const docType = this.docType;\n        const docName = this.docName;\n        let docNo = model.getData('docNo');\n        let subject;\n        if (model.getData('ref') && model.getData('sendRefAsDocNo')) {\n          docNo = model.getData('ref');\n          subject = this.intl.t(`email_payment_reminder_subject`) + ' - ' + docNo;\n        } else {\n          docNo = '#' + model.getData('docNo');\n          subject = this.intl.t(`${docType}-${docName}`) + ' - #' + docNo;\n        }\n        const isUseCompanyEmail = this?.settings?.settingsModel?.getData('isUseCompanyEmail') || false;\n        let fromName = tokenData.name;\n        let fromAddress = tokenData.email;\n        if (isUseCompanyEmail) {\n          fromName = this?.settings?.settingsModel?.getData('emailFromName') || '';\n          fromAddress = this?.settings?.settingsModel?.getData('emailFromAddress') || '';\n        }\n        const email = Ember.Object.create({\n          _data: {\n            toAddress: model.getData('email'),\n            toName: model.getData('contact'),\n            fromName,\n            fromAddress,\n            subject\n          }\n        });\n        this.set('email', email);\n      },\n      clearSendEmail() {\n        this.set('email', null);\n      },\n      async sendEmail(email, onCloseDialogAction, params = {}) {\n        await this.sendEmailTask.perform({\n          email,\n          params\n        });\n        onCloseDialogAction();\n      },\n      cancelSendEmail(onCloseDialogAction) {\n        onCloseDialogAction();\n        this.set('email', null);\n      },\n      loadTerms(term) {\n        this.loadTerms(term);\n      },\n      toggleDispatchProcesses() {\n        this.toggleProperty('showDispatchProcesses');\n      },\n      showPreDispatchProcessDialog() {\n        this.set('showPreDispatchProcess', true);\n      },\n      closePreDispatchProcessDialog() {\n        this.set('showPreDispatchProcess', false);\n      },\n      showWaybills(model, dispatchProcess) {\n        if (!R.is(Array, model) && dispatchProcess.getData('code') === 'dispatched' && model.getData('transporterExtension') === 'hct') {\n          this.set('showWaybills', true);\n        }\n      },\n      quickLinkAllQtys(isQuickLinkAll) {\n        const details = this.model.getData('details') || [];\n\n        // need to first set all as 0, otherwise detail.remainingQty will be wrong if user already entered a qty\n        let newDetails = R.map(detail => {\n          detail.setData('qty', 0);\n          return detail;\n        })(details);\n        if (isQuickLinkAll) {\n          newDetails = R.map(detail => {\n            detail.setData('qty', detail.remainingQty);\n            return detail;\n          })(details);\n        }\n        this.model.setData('details', newDetails);\n        this.model.sumTotals();\n      },\n      afterReturns(saved, savedOptions = {}) {\n        if (savedOptions.isAutoCancelInvoice) {\n          this.set('showCancelInvoiceModal', true);\n        } else if (saved) {\n          if ((saved?.model?._data?.isVoid === true || saved?._data?.isVoid === true) && this.docType === 'sales' && this.docName === 'invoices') {\n            if (saved.lastSuccessfulEInvoiceNumber) {\n              this.set('showCancelInvoiceModal', true);\n            }\n          }\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"preLoadLinkedDetails\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"preLoadLinkedDetails\"), _obj), _obj));\n});","define(\"client/pods/components/documents/editor-main/editor-btns-display/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: '',\n    server: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    documentsService: Ember.inject.service('documents'),\n    users: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    showVerticalDispatchProcessBar: false,\n    isReQueued: false,\n    showReQueueBtn: Ember.computed('model._data.isTempDocNo', function () {\n      const twoMinLater = this.dateService.getMoment(this.model?._data?.timestampZ).add(30, 'seconds');\n      const nowZ = this.dateService.getNowZ();\n      if (twoMinLater.isAfter(nowZ)) {\n        return false;\n      }\n      if (this.model?._data?.isTempDocNo) {\n        return true;\n      }\n      return false;\n    }),\n    showCollectPaymentNowBtn: Ember.computed('model._data.{isBigOrdrBilling,paymentCreditCardStatus}', function () {\n      const isBigOrdrBilling = this.model?._data?.isBigOrdrBilling === true;\n      if (!isBigOrdrBilling) {\n        return false;\n      }\n      const paymentCreditCardStatus = this.model?._data?.paymentCreditCardStatus;\n      const settledPaymentStatuses = [this.constants.paymentCreditCardStatus.approved, this.constants.paymentCreditCardStatus.refundRequested, this.constants.paymentCreditCardStatus.refunded];\n      if (settledPaymentStatuses.includes(paymentCreditCardStatus)) {\n        return false;\n      }\n      const isAdmin = this.users.getProp('isAdmin') === true;\n      const isBigOrdrOperator = this.users.getProp('isBigOrdrOperator') === true;\n      if (!isAdmin && !isBigOrdrOperator) {\n        return false;\n      }\n      return true;\n    }),\n    reQueueToGenerateDocumentNumber: (0, _emberConcurrency.task)(function* (model) {\n      const results = yield this.server.call('PATCH', `api/protected/documents/${model?._data?.docType}/${model?._data?.docName}/number/${model._data._key}`, {\n        tempDocNo: model?._data?.docNo\n      });\n      this.set('isReQueued', true);\n    }).drop(),\n    setupDirty() {\n      // @TODO: Move to load instructions\n      const model = this.model;\n      const dirty = this.crud.setupDirty({\n        adapterName: model.get('adapterName'),\n        model\n      });\n      this.set('dirtyModel', dirty);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupDirty\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupDirty\"), _obj), _obj));\n});","define(\"client/pods/components/documents/editor-main/editor-btns-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wMLJotkz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@onDisplay\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/btn-back\\\",null,[[\\\"tooltipLabel\\\",\\\"onSubmit\\\"],[\\\"overview\\\",[24,[\\\"onDash\\\"]]]]],false],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showReQueueBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"regenerate document number\\\",[24,[\\\"isReQueued\\\"]],[23,0,[\\\"reQueueToGenerateDocumentNumber\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"reQueueToGenerateDocumentNumber\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isVoid\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"documents/btn-refund\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@onRefresh\\\",\\\"@onCloseDialogAction\\\",\\\"@onToggleIsVoidTask\\\",\\\"@onAfterReturns\\\"],[[22,\\\"model\\\"],[22,\\\"tab\\\"],[23,2,[]],[22,\\\"onCloseDialogAction\\\"],[22,\\\"onToggleIsVoidTask\\\"],[22,\\\"onAfterReturns\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"schedules/btn-scheduled\\\",[],[[\\\"@model\\\",\\\"@resources\\\"],[[22,\\\"model\\\"],[28,\\\"array\\\",[[28,\\\"hash\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\"],[\\\"paymentCreditCardTransactionCode\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionCode\\\"]]]]],[28,\\\"hash\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\"],[\\\"scheduledPayment\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@btnTooltipLabel\\\",\\\"@btnIcon\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@isPublic\\\",\\\"@metaData\\\",\\\"@excludeFromFilters\\\"],[\\\"comments/comments-manager/modal-btn\\\",[22,\\\"tab\\\"],\\\"customer comments\\\",\\\"fa-solid fa-comments\\\",\\\"documents-public\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,[22,\\\"relatedComments\\\"],true,[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"subType\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"locale\\\",\\\"ref\\\",\\\"threadId\\\",\\\"isPublic\\\",\\\"emailType\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\"],[\\\"documents-public\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"locale\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"externalUrl\\\"]],true,\\\"fromMerchantToCustomer\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceKey\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceHost\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceHostName\\\"]]]]],[28,\\\"array\\\",[\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"emailType\\\",\\\"emailFromAddress\\\",\\\"emailFromName\\\",\\\"locale\\\",\\\"ref\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"threadId\\\"],null]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",[22,\\\"tab\\\"],\\\"documents\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,[22,\\\"relatedComments\\\"],[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"docNo\\\",\\\"contactKey\\\",\\\"docType\\\",\\\"docName\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]]]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isAllowPrintInvoice\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager\\\",null,[[\\\"document\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[1,[28,\\\"component\\\",[[24,[\\\"printBtnsComponent\\\"]]],[[\\\"tab\\\",\\\"model\\\",\\\"selectedContact\\\",\\\"email\\\",\\\"printBadge\\\",\\\"sendEmailTask\\\",\\\"onSetupSendEmail\\\",\\\"onSetupSendPaymentReminderEmail\\\",\\\"onClearSendEmail\\\",\\\"onSendEmail\\\",\\\"onCancelSendEmail\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[24,[\\\"email\\\"]],[24,[\\\"printBadge\\\"]],[24,[\\\"sendEmailTask\\\"]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"onSetupSendPaymentReminderEmail\\\"]],[24,[\\\"onClearSendEmail\\\"]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"onCancelSendEmail\\\"]]]]],false],[0,\\\"\\\\n  \\\\n\\\"],[0,\\\"    \\\\n  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"documents/copy-document-contents-btn\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"webhooks.orders.notify.enabled\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isSalesInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\"],[\\\"fas fa-file-export\\\",\\\"export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"resend order webhook event\\\",[23,0,[\\\"documentsService\\\",\\\"resendWebhookOnOrderEventTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentsService\\\",\\\"resendWebhookOnOrderEventTask\\\"]],[23,3,[\\\"_data\\\",\\\"_key\\\"]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"allowSplit\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"tooltipLabel\\\",\\\"icon\\\"],[\\\"split_document\\\",\\\"fas fa-cut\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"documents/panel-split\\\",null,[[\\\"model\\\",\\\"appendPath\\\",\\\"onCloseDialogAction\\\",\\\"onAfterSplit\\\"],[[24,[\\\"model\\\"]],\\\"final/split\\\",[23,1,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showCollectPaymentNowBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"documents/btn-collect-payment-now\\\",[],[[\\\"@model\\\",\\\"@onAfterCollect\\\"],[[22,\\\"model\\\"],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isLocked\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"onSubmit\\\"],[[24,[\\\"onEdit\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDraft\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[24,[\\\"model\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"isDropdownBtn\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[24,[\\\"model\\\"]],true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"dispatch/processes-bar-container\\\",null,[[\\\"isVertical\\\",\\\"model\\\",\\\"selected\\\",\\\"steps\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\"],[true,[24,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"dispatchProcess\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],\\\"_data.code\\\",\\\"_data.name\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-btns-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-btns-editing/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _emberConcurrency, R, RA, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    documents: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    big: Ember.inject.service(),\n    tagName: '',\n    hasReturns: true,\n    isApplyReturnAdjustment: true,\n    init() {\n      this._super(...arguments);\n      const docType = this.docType;\n      const docName = this.docName;\n      if (docType === 'sales' && docName === 'invoices') {\n        this.setup.perform();\n      } else {\n        this.set('hasReturns', false);\n      }\n      const originalInclTotal = R.pathOr('', ['model', '_data', 'inclTotal'])(this);\n      this.set('originalInclTotal', originalInclTotal);\n    },\n    setup: (0, _emberConcurrency.task)(function* () {\n      const quickLinkFromDocType = R_.dotPathOr('sales', 'args.quickLinkFromDocType')(this);\n      const quickLinkFromDocName = R_.dotPathOr('invoices', 'args.quickLinkFromDocName')(this);\n      const quickLinkToDocType = R_.dotPathOr('sales', 'args.quickLinkToDocType')(this);\n      const quickLinkToDocName = R_.dotPathOr('returns', 'args.quickLinkToDocName')(this);\n      const model = this.model;\n      const returnsByDetailKey = yield this.documents.hasReturns.perform(model, {\n        docType: quickLinkFromDocType,\n        docName: quickLinkFromDocName,\n        toDocType: quickLinkToDocType,\n        toDocName: quickLinkToDocName\n      });\n      this.set('hasReturns', RA.isNotNilOrEmpty(returnsByDetailKey));\n    }),\n    validateSalesReturnsTask: (0, _emberConcurrency.task)(function* () {\n      const isExceedingAllowedDiscountAmount = this.discountExceedsData?.isExceedingAllowedDiscountAmount === true;\n      if (isExceedingAllowedDiscountAmount) {\n        return;\n      }\n      const model = this.model;\n      const isApplyReturnAdjustment = this.isApplyReturnAdjustment;\n      model.setData('isApplyReturnAdjustment', isApplyReturnAdjustment);\n      const validatedModel = yield this.crud.createRecordTask.perform({\n        adapterName: 'documents/sales/returns',\n        appendPath: '/validateReturnsWithRewards',\n        model\n      });\n      if (validatedModel) {\n        const validatedData = validatedModel.serialize();\n        let returnRewardAdjustmentPoints = validatedData.returnRewardAdjustmentPoints || 0;\n        returnRewardAdjustmentPoints = parseInt(returnRewardAdjustmentPoints, 10);\n        model.populate(validatedData);\n        const isExceedingAfterValidate = this.discountExceedsData?.isExceedingAllowedDiscountAmount === true;\n        if (isExceedingAfterValidate) {\n          return;\n        }\n        const isApplyReturnAdjustmentAndHasNoReturnAdjustment = isApplyReturnAdjustment && returnRewardAdjustmentPoints === 0;\n        if (isApplyReturnAdjustmentAndHasNoReturnAdjustment) {\n          this.onPreSubmit(model, () => {});\n          yield this.onSubmitFinalTask();\n        }\n        model.set('isValidatedReturnsWithRewards', true);\n      }\n    }),\n    isOriginalPriceEqualNewPrice: Ember.computed('model.{isTaxExclusive,isSalesInvoices}', 'originalInclTotal', 'model._data.{inclTotal,detailsLocked}', function () {\n      const detailsLocked = this.get('model._data.detailsLocked') || false;\n      const isSalesInvoices = this.get('model.isSalesInvoices');\n      if (this.isSplitting || this.isMerging) {\n        return true;\n      }\n      if (detailsLocked && isSalesInvoices) {\n        const newInclTotal = this.get('model._data.inclTotal') || '';\n        const originalInclTotal = this.get('originalInclTotal') || '';\n        if (R.equals(`${originalInclTotal}`, `${newInclTotal}`)) {\n          return true;\n        }\n        return false;\n      }\n      return true;\n    }),\n    isSalesReturnsWithReward: Ember.computed('model._data.{docName,docType,rewardData}', function () {\n      const model = this.model;\n      if (RA.isNotNilOrEmpty(model)) {\n        const docName = model.getData('docName');\n        const docType = model.getData('docType');\n        const rewardData = model.getData('rewardData');\n        const isSalesReturns = docType === 'sales' && docName === 'returns';\n        if (isSalesReturns && RA.isNotNilOrEmpty(rewardData)) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    showValidateSalesReturnsBtn: Ember.computed('isSalesReturnsWithReward', 'model.isValidatedReturnsWithRewards', function () {\n      const isSalesReturnsWithReward = this.get('isSalesReturnsWithReward');\n      const isValidatedReturnsWithRewards = this.get('model.isValidatedReturnsWithRewards') || false;\n      if (isSalesReturnsWithReward && !isValidatedReturnsWithRewards) {\n        return true;\n      }\n      return false;\n    }),\n    discountExceedsData: Ember.computed('model.isSalesReturns', 'model._data.{discountAmount,discountRate,discountType}', 'model._data.details.@each.synced', 'model.synced', function () {\n      const model = this.model || {};\n      // Returns write discountAmount from original line allocations (return-all / partial qty).\n      // That can exceed current eligible inclAmt — do not treat it as an invoice user-cap.\n      if (model.isSalesReturns) {\n        return {\n          isExceedingAllowedDiscountAmount: false\n        };\n      }\n      const discountType = model.getData('discountType');\n      const discountAmount = model.getData('discountAmount') || 0;\n      if (discountType === 'rate') {\n        const discountRateBig = this.big.newBig(model.getData('discountRate') || 0);\n        return {\n          isExceedingAllowedDiscountAmount: discountRateBig.gt(100),\n          allowedDiscountAmount: 100\n        };\n      } else if (discountType === 'amount') {\n        const details = model.getData('details') || [];\n        let allowedDiscountAmountBig = this.big.newBig(0);\n        R.forEach(detail => {\n          const isDiscountAllowed = model.isDiscountAllowedForDetail(detail);\n          if (isDiscountAllowed && !detail?._data?.isSetChild) {\n            allowedDiscountAmountBig = allowedDiscountAmountBig.plus(detail?._data?.inclAmt || 0);\n          }\n        })(details);\n        const discountAmountBig = this.big.newBig(discountAmount);\n        const isExceedingAllowedDiscountAmount = discountAmountBig.gt(allowedDiscountAmountBig);\n        return {\n          isExceedingAllowedDiscountAmount,\n          allowedDiscountAmount: allowedDiscountAmountBig.toString()\n        };\n      }\n      return {\n        isExceedingAllowedDiscountAmount: false\n      };\n    }),\n    bulkInsertDetailsTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, bulkInsertInstructions) {\n      yield this.onBulkInsertDetailsTask.perform(bulkInsertInstructions);\n      onCloseDialogAction();\n    })\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-btns-editing/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LItJQ2QO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@bulkInsertInstructions\\\",\\\"@onBulkInsertDetailsTask\\\",\\\"@requireContact\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"isQuickLinkDoc\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isVoid\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"allowUndoVoid\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/btn-delete\\\",null,[[\\\"label\\\",\\\"requiresConfirmation\\\",\\\"icon\\\",\\\"isOn\\\",\\\"onSubmit\\\"],[\\\"undo void\\\",false,\\\"fas fa-trash\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"isVoid\\\"]],[24,[\\\"onToggleIsVoidStatus\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"isQuickLinkDoc\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isSalesReturns\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasAutoCancelInvoice\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"label\\\",\\\"toggleValue\\\"],[\\\"cancel invoice\\\",[24,[\\\"model\\\",\\\"isAutoCancelInvoice\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"translate\\\",\\\"label\\\",\\\"disabled\\\",\\\"onToggle\\\"],[false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[[24,[\\\"quickLinkQtyLabel\\\"]]],null],\\\": \\\",[28,\\\"tt\\\",[\\\"all\\\"],null]],null],[24,[\\\"model\\\",\\\"isValidatedReturnsWithRewards\\\"]],[24,[\\\"onQuickLinkAllQtys\\\"]]]]],false],[0,\\\"\\\\n    \\\\n    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isQuickLinkDoc\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"documents/bulk/insert-helper\\\",[],[[\\\"@bulkInsertInstructions\\\",\\\"@onBulkInsertDetailsTask\\\"],[[23,1,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"documents/copy-document-contents-btn\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isQuickLinkDoc\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isRunning\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",[22,\\\"tab\\\"],\\\"documents\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"or\\\",[[24,[\\\"toggleIsVoidTask\\\",\\\"isRunning\\\"]],[24,[\\\"onRemoveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[24,[\\\"fetchHCTRegionDataTask\\\",\\\"isRunning\\\"]]],null],true,[22,\\\"relatedComments\\\"],[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"docNo\\\",\\\"contactKey\\\",\\\"docType\\\",\\\"docName\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]]]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onCancel\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[28,\\\"or\\\",[[24,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[24,[\\\"fetchHCTRegionDataTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancel\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isVoid\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isQuickLinkDoc\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"btnClassNames\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save as draft\\\",\\\"is-warning\\\",[23,0,[\\\"discountExceedsData\\\",\\\"isExceedingAllowedDiscountAmount\\\"]],[28,\\\"or\\\",[[24,[\\\"toggleIsVoidTask\\\",\\\"isRunning\\\"]],[24,[\\\"onRemoveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[24,[\\\"fetchHCTRegionDataTask\\\",\\\"isRunning\\\"]]],null],[24,[\\\"onSubmitDraftTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isVoid\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showValidateSalesReturnsBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"next\\\",\\\"fas fa-arrow-circle-right\\\",[28,\\\"or\\\",[[28,\\\"if\\\",[[24,[\\\"isOriginalPriceEqualNewPrice\\\"]],false,true],null],[24,[\\\"model\\\",\\\"qtyWhenLinkedExceedAllowedQty\\\"]],[24,[\\\"model\\\",\\\"haveMultiplePendingId\\\"]],[24,[\\\"model\\\",\\\"qtyHaveValueBelowOne\\\"]],[23,0,[\\\"discountExceedsData\\\",\\\"isExceedingAllowedDiscountAmount\\\"]]],null],[28,\\\"or\\\",[[23,0,[\\\"validateSalesReturnsTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"validateSalesReturnsTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[28,\\\"or\\\",[[28,\\\"if\\\",[[24,[\\\"isOriginalPriceEqualNewPrice\\\"]],false,true],null],[24,[\\\"model\\\",\\\"qtyWhenLinkedExceedAllowedQty\\\"]],[24,[\\\"model\\\",\\\"haveMultiplePendingId\\\"]],[24,[\\\"model\\\",\\\"qtyHaveValueBelowOne\\\"]],[23,0,[\\\"discountExceedsData\\\",\\\"isExceedingAllowedDiscountAmount\\\"]]],null],[28,\\\"or\\\",[[24,[\\\"toggleIsVoidTask\\\",\\\"isRunning\\\"]],[24,[\\\"onRemoveTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[24,[\\\"fetchHCTRegionDataTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onPreSubmit\\\"]],[24,[\\\"model\\\"]],[24,[\\\"onSubmitFinalTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"showQtyWarningMsg\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"qtyWhenLinkedExceedAllowedQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"translate\\\"],[\\\"qty cannot be greater than the allowed qty\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"qtyHaveValueBelowOne\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"translate\\\"],[\\\"qty cannot be empty or have value below one\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"haveMultiplePendingId\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"translate\\\"],[\\\"having both linked consignments and orders in one document is not allowed\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"discountExceedsData\\\",\\\"isExceedingAllowedDiscountAmount\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"translate\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"discount amount exceeds allowed\\\"],null],\\\": \\\",[23,0,[\\\"discountExceedsData\\\",\\\"allowedDiscountAmount\\\"]]],null],false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isSalesInvoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"detailsLocked\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"original document total\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"originalInclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[24,[\\\"isOriginalPriceEqualNewPrice\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"translate\\\"],[\\\"new total must be equal to the original document total\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-btns-editing/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-custom-checkout-fields/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let EditorCustomCheckoutFieldsComponent = _exports.default = (_dec = Ember._action, _class = class EditorCustomCheckoutFieldsComponent extends _component.default {\n    onChangeValue(field, valueOrEvent) {\n      const value = valueOrEvent?.target?.value ?? valueOrEvent;\n      field.value = value;\n      if (!this.args.onChange) {\n        return;\n      }\n      this.args.onChange(field, value);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onChangeValue\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeValue\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/editor-main/editor-custom-checkout-fields/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uAhTEbjP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"field\\\",\\\"@isReadonly\\\",\\\"@customCheckoutFieldsValues\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"text\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[23,1,[\\\"text\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\",\\\"@onInput\\\"],[[23,1,[\\\"value\\\"]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"onChangeValue\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-custom-checkout-fields/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-details-additional/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 EDITABLE_PROPERTIES = ['supplierName', 'supplierKey', 'discountAllowed', 'isOnSale', 'discountRate', 'isRewardSpendAllowed', 'isRewardEarnAllowed'];\n  let DocumentsEditorMainEditorDetailsAdditionalComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class DocumentsEditorMainEditorDetailsAdditionalComponent extends _component.default {\n    /**\n     * Snapshot editable fields from the row model. Non-model rows stay empty.\n     * Snapshot supplier and QR ticket fields from the row model.\n     * Non-model rows stay at empty / false defaults.\n     * @return {void}\n     */\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"initialSupplierName\", _descriptor, this);\n      _initializerDefineProperty(this, \"initialSupplierKey\", _descriptor2, this);\n      _initializerDefineProperty(this, \"initialHasQrCodeTicket\", _descriptor3, this);\n      this.snapshotEditableFields();\n      this.snapshotQrCodeTicketFields();\n    }\n\n    /**\n     * Read a field from the document detail when it is a real model.\n     * After a dispatch-process save, list insert can pass a raw row with no getData;\n     * calling it would abort the {{#each}} insert and empty Glimmer boundList.\n     * @param {string} fieldName - _data field to read\n     * @returns {*} stored value, or undefined when the row cannot be read\n     */\n    readDetailField(fieldName) {\n      const detail = this.args.detail;\n      if (typeof detail?.getData !== 'function') {\n        return undefined;\n      }\n      return detail.getData(fieldName);\n    }\n\n    /**\n     * Read a boolean field from the document detail when it is a real model.\n     * @param {string} fieldName - _data field to read (eg: 'hasQrCodeTicket')\n     * @return {boolean} stored value, or false when the row cannot be read\n     */\n    readDetailBooleanField(fieldName) {\n      const detail = this.args.detail;\n      if (typeof detail?.getData !== 'function') {\n        return false;\n      }\n      return detail.getData(fieldName) === true;\n    }\n\n    /**\n     * Write a field onto the document detail when it is a real model.\n     * @param {string} fieldName - _data field to write (eg: 'supplierName')\n     * @param {string|boolean} fieldValue - value to store\n     * @return {void}\n     */\n    writeDetailField(fieldName, fieldValue) {\n      const detail = this.args.detail;\n      if (typeof detail?.setData !== 'function') {\n        return;\n      }\n      detail.setData(fieldName, fieldValue);\n    }\n\n    /**\n     * Mark the document detail as synced when it is a real model.\n     * @return {void}\n     */\n    markDetailSynced() {\n      const detail = this.args.detail;\n      if (typeof detail?.updateSynced !== 'function') {\n        return;\n      }\n      detail.updateSynced();\n    }\n\n    /**\n     * Copy current editable fields onto the snapshot used by cancel.\n     * Use getData so defaults apply; R.pick on raw _data can snapshot undefined\n     * and cancel would write those missing keys.\n     * @return {void}\n     */\n    snapshotEditableFields() {\n      const detail = this.args.detail;\n      if (typeof detail?.getData !== 'function') {\n        this.initialValues = {};\n        this.initialSupplierName = '';\n        this.initialSupplierKey = '';\n        return;\n      }\n      this.initialValues = EDITABLE_PROPERTIES.reduce((snapshot, property) => {\n        snapshot[property] = detail.getData(property);\n        return snapshot;\n      }, {});\n\n      // Still fed to EditorDetailsSupplier for initial supplier search seeding.\n      this.initialSupplierName = this.initialValues.supplierName || '';\n      this.initialSupplierKey = this.initialValues.supplierKey || '';\n    }\n\n    /**\n     * Copy current QR ticket flag onto the snapshot used by cancel.\n     * @return {void}\n     */\n    snapshotQrCodeTicketFields() {\n      this.initialHasQrCodeTicket = this.readDetailBooleanField('hasQrCodeTicket');\n    }\n\n    /**\n     * Keep the snapshot in sync with the current supplier and QR fields and mark the row synced.\n     * @return {void}\n     */\n    saveDetailSupplierModal() {\n      this.snapshotEditableFields();\n      this.snapshotQrCodeTicketFields();\n      this.markDetailSynced();\n    }\n\n    /**\n     * Restore the snapshot onto the row model. No-op when the row cannot be written.\n     * @return {void}\n     */\n    cancelDetailSupplierModal() {\n      R.forEach(property => {\n        this.writeDetailField(property, R.prop(property, this.initialValues));\n      })(EDITABLE_PROPERTIES);\n      this.writeDetailField('hasQrCodeTicket', this.initialHasQrCodeTicket);\n      if (this.args.onSumTotals) {\n        this.args.onSumTotals();\n      }\n    }\n\n    /**\n     * Restore editable fields then close the additional-details dialog.\n     * @param {Function} [onCloseDialogAction] - dialog close callback from the modal\n     * @return {void}\n     */\n    cancel(onCloseDialogAction) {\n      this.cancelDetailSupplierModal();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n\n    /**\n     * Snapshot editable fields then close the additional-details dialog.\n     * @param {Function} [onCloseDialogAction] - dialog close callback from the modal\n     * @return {void}\n     */\n    save(onCloseDialogAction) {\n      this.saveDetailSupplierModal();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"initialSupplierName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"initialSupplierKey\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"initialHasQrCodeTicket\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"saveDetailSupplierModal\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"saveDetailSupplierModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelDetailSupplierModal\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelDetailSupplierModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/editor-main/editor-details-additional/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8m/aaDmz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@detail\\\",\\\"@isReadonlyOrDisabledForAdditional\\\",\\\"@isReadonlyOrDisabled\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@appliedBulkDiscounts\\\",\\\"@isDiscountRate\\\",\\\"@onSumTotals\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@hasSectionWrapper\\\",\\\"@closeOnOverlayClick\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@onClose\\\"],[\\\"\\\",\\\"fas fa-ellipsis\\\",true,false,[23,2,[\\\"_data\\\",\\\"item\\\"]],false,[23,0,[\\\"cancel\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"documents/editor-main/editor-details-discount-and-reward\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@isReadonlyOrDisabled\\\",\\\"@appliedBulkDiscounts\\\",\\\"@isDiscountRate\\\",\\\"@onCloseDialogAction\\\",\\\"@onSumTotals\\\"],[[23,5,[]],[23,6,[]],[23,2,[]],[23,4,[]],[23,7,[]],[23,8,[]],[23,1,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"shouldShowSupplierInformation\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\"],[\\\"supplier\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"documents/editor-main/editor-details-supplier\\\",[],[[\\\"@detail\\\",\\\"@isReadonlyOrDisabledForAdditional\\\",\\\"@isReadonlyOrDisabled\\\",\\\"@initialSupplierName\\\",\\\"@initialSupplierKey\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,0,[\\\"initialSupplierName\\\"]],[23,0,[\\\"initialSupplierKey\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"shouldShowQrCodeTicketToggle\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\"],[\\\"tickets_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"hasQrCodeTicket\\\",\\\"generate qr code ticket\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\"],[[23,2,[\\\"_data\\\",\\\"hasQrCodeTicket\\\"]],[23,3,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"qrCodeId\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"qr code\\\"],null],false],[0,\\\": \\\"],[1,[23,2,[\\\"_data\\\",\\\"qrCodeId\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[false,\\\"save\\\",[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"save\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-details-additional/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-details-discount-and-reward/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, _ramdaAdjunct) {\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;\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 DocumentsEditorMainEditorEditorDetailsDiscountAndRewardComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class DocumentsEditorMainEditorEditorDetailsDiscountAndRewardComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showDiscountDescriptionMsg\", _descriptor, this);\n      _initializerDefineProperty(this, \"showSpendRewardDescriptionMsg\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showEarnRewardDescriptionMsg\", _descriptor3, this);\n    }\n    /**\n     * True when the document has real reward spend (parseInt > 0). Do not use\n     * isNotNilOrEmpty(rewardInclTotal) — API default `0` is non-empty and falsely\n     * treats ordinary no-reward invoices as live reward spend.\n     * @returns {boolean}\n     */\n    get hasLiveRewardSpend() {\n      return this.args.model?.hasRewards === true;\n    }\n\n    /**\n     * Prefer live client allocation (`allocatedDiscount` from sumTotals) only when this pass\n     * did not fold reward spend into that field. sumTotals uses combineWithExistingDiscount\n     * for rewards, so after reward apply the live value is discount+reward (or reward-only).\n     * Fall back to API `allocatedInclDiscountAmount` (discount-only) when reward spend is live.\n     * @returns {string|number|undefined}\n     */\n    get displayedAllocatedDiscountAmount() {\n      const detail = this.args.detail?._data || {};\n      const localAmount = detail.allocatedDiscount;\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(localAmount) && !this.hasLiveRewardSpend) {\n        return localAmount;\n      }\n      return detail.allocatedInclDiscountAmount;\n    }\n\n    /**\n     * After-save copy for allocated discount fields.\n     * Show when Allow discount was just toggled, the document is still unsaved, or the line\n     * has no API allocation yet (empty — not a calculated `0`). Do not key off `model.isDirty`;\n     * document rows are EmberObjects without that Ember Data flag.\n     * Also show while editing with live reward spend: displayed amount falls back to API\n     * `allocatedInclDiscountAmount` (live `allocatedDiscount` folds reward), so the figure\n     * can be stale until save.\n     * @returns {boolean}\n     */\n    get showDiscountAfterSaveDescription() {\n      if (this.showDiscountDescriptionMsg) {\n        return true;\n      }\n      const discountAllowed = this.args.detail?._data?.discountAllowed ?? false;\n      if (!discountAllowed) {\n        return false;\n      }\n      const modelKey = this.args.model?._data?._key;\n      if (_ramdaAdjunct.default.isNilOrEmpty(modelKey)) {\n        return true;\n      }\n      if (this.hasLiveRewardSpend && !this.args.isReadonlyOrDisabled) {\n        return true;\n      }\n      const apiAmount = this.args.detail?._data?.allocatedInclDiscountAmount;\n      return _ramdaAdjunct.default.isNilOrEmpty(apiAmount);\n    }\n\n    /**\n     * After-save copy for allocated reward spend — same rules as discount (toggle, unsaved doc,\n     * or missing API amount). Keep a plain API `0` for saved calculated zeros.\n     * Also show while editing with live reward spend: sumTotals never writes\n     * `allocatedInclRewardAmount`, so the spend figure can be stale until save.\n     * @returns {boolean}\n     */\n    get showSpendRewardAfterSaveDescription() {\n      if (this.showSpendRewardDescriptionMsg) {\n        return true;\n      }\n      const rewardSpendAllowed = this.args.detail?._data?.isRewardSpendAllowed ?? false;\n      if (!rewardSpendAllowed) {\n        return false;\n      }\n      const modelKey = this.args.model?._data?._key;\n      if (_ramdaAdjunct.default.isNilOrEmpty(modelKey)) {\n        return true;\n      }\n      if (this.hasLiveRewardSpend && !this.args.isReadonlyOrDisabled) {\n        return true;\n      }\n      const apiAmount = this.args.detail?._data?.allocatedInclRewardAmount;\n      return _ramdaAdjunct.default.isNilOrEmpty(apiAmount);\n    }\n\n    /**\n     * After-save copy for allocated reward earn fields — same rules as discount.\n     * @returns {boolean}\n     */\n    get showEarnRewardAfterSaveDescription() {\n      if (this.showEarnRewardDescriptionMsg) {\n        return true;\n      }\n      const rewardEarnAllowed = this.args.detail?._data?.isRewardEarnAllowed ?? false;\n      if (!rewardEarnAllowed) {\n        return false;\n      }\n      const modelKey = this.args.model?._data?._key;\n      if (_ramdaAdjunct.default.isNilOrEmpty(modelKey)) {\n        return true;\n      }\n      const allocatedPoints = this.args.detail?._data?.allocatedRewardPointEarned;\n      const allocatedLevelPoints = this.args.detail?._data?.allocatedLevelPointsEarned;\n      return _ramdaAdjunct.default.isNilOrEmpty(allocatedPoints) && _ramdaAdjunct.default.isNilOrEmpty(allocatedLevelPoints);\n    }\n\n    /**\n     * True when the line has its own discount % (`discountRate`), including numeric `0`.\n     * Do not use `allocatedInclDiscountRate` here — that API field is an amount (Joi.amt),\n     * often left at `0` on onTotal paths, which falsely skips the document-rate fallback.\n     * @returns {boolean}\n     */\n    get hasAllocatedDiscountRate() {\n      const detailRate = this.args.detail?._data?.discountRate;\n      return detailRate === 0 || detailRate === '0' || _ramdaAdjunct.default.isNotNilOrEmpty(detailRate);\n    }\n\n    /**\n     * Hide the amount row in percentage mode unless the displayed amount is greater than zero.\n     * @returns {boolean}\n     */\n    get showAllocatedDiscountAmountRow() {\n      const discountAllowed = this.args.detail?._data?.discountAllowed ?? false;\n      if (!discountAllowed) {\n        return false;\n      }\n      if (!this.args.isDiscountRate) {\n        return true;\n      }\n      return Number(this.displayedAllocatedDiscountAmount) > 0;\n    }\n    toggleShowDiscountDescriptionMsg() {\n      const discountAllowed = this.args.detail._data.discountAllowed ?? false;\n      if (discountAllowed) {\n        this.showDiscountDescriptionMsg = true;\n      } else {\n        this.showDiscountDescriptionMsg = false;\n      }\n      if (this.args.onSumTotals) {\n        this.args.onSumTotals();\n      }\n    }\n    toggleShowSpendRewardDescriptionMsg() {\n      const rewardSpendAllowed = this.args.detail._data.isRewardSpendAllowed ?? false;\n      if (rewardSpendAllowed) {\n        this.showSpendRewardDescriptionMsg = true;\n      } else {\n        this.showSpendRewardDescriptionMsg = false;\n      }\n      if (this.args.onSumTotals) {\n        this.args.onSumTotals();\n      }\n    }\n    toggleShowEarnRewardDescriptionMsg() {\n      const rewardEarnAllowed = this.args.detail._data.isRewardEarnAllowed ?? false;\n      if (rewardEarnAllowed) {\n        this.showEarnRewardDescriptionMsg = true;\n      } else {\n        this.showEarnRewardDescriptionMsg = false;\n      }\n      if (this.args.onSumTotals) {\n        this.args.onSumTotals();\n      }\n    }\n    updateDetailDiscountRate() {\n      const detail = this?.args?.detail;\n      if (_ramdaAdjunct.default.isNilOrEmpty(detail)) {\n        return;\n      }\n      const isOnSale = detail.getData('isOnSale') ?? false;\n      if (isOnSale) {\n        const modelDiscountRateOnSale = this.args.model._data.discountRateOnSale;\n        detail.setData('discountRate', modelDiscountRateOnSale);\n      } else {\n        const modelDiscountRate = this.args.model._data.discountRate;\n        detail.setData('discountRate', modelDiscountRate);\n      }\n      if (this.args.onSumTotals) {\n        this.args.onSumTotals();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showDiscountDescriptionMsg\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showSpendRewardDescriptionMsg\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showEarnRewardDescriptionMsg\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleShowDiscountDescriptionMsg\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowDiscountDescriptionMsg\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowSpendRewardDescriptionMsg\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowSpendRewardDescriptionMsg\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowEarnRewardDescriptionMsg\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowEarnRewardDescriptionMsg\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateDetailDiscountRate\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDetailDiscountRate\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/editor-main/editor-details-discount-and-reward/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FVru30+l\",\n    \"block\": \"{\\\"symbols\\\":[\\\"bulkDiscount\\\",\\\"@detail\\\",\\\"@model\\\",\\\"@isDiscountRate\\\",\\\"@isReadonlyOrDisabled\\\",\\\"@appliedBulkDiscounts\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\"],[\\\"bulk discounts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"bulk discounts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\"],[\\\"discount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"details.discountAllowed\\\",\\\"allow discount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[28,\\\"or\\\",[[23,5,[]]],null],[23,2,[\\\"_data\\\",\\\"discountAllowed\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowDiscountDescriptionMsg\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"_data\\\",\\\"discountAllowed\\\"]],[23,3,[\\\"_data\\\",\\\"discountRateOnSale\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"details.isOnSale\\\",\\\"discount rate on sale\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"isOnSale\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDetailDiscountRate\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"discountAllowed\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@description\\\",\\\"@descriptionClassNames\\\"],[\\\"details.discountRate\\\",\\\"allocated discount rate\\\",[28,\\\"if\\\",[[23,0,[\\\"showDiscountAfterSaveDescription\\\"]],\\\"will be calculated accurately after saving\\\",\\\"\\\"],null],\\\"has-text-warning\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasAllocatedDiscountRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,2,[\\\"_data\\\",\\\"discountRate\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,3,[\\\"_data\\\",\\\"discountRate\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showAllocatedDiscountAmountRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@description\\\",\\\"@descriptionClassNames\\\"],[\\\"details.allocatedInclDiscountAmount\\\",\\\"allocated discount amount\\\",[28,\\\"if\\\",[[23,0,[\\\"showDiscountAfterSaveDescription\\\"]],\\\"will be calculated accurately after saving\\\",\\\"\\\"],null],\\\"has-text-warning\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,0,[\\\"displayedAllocatedDiscountAmount\\\"]],true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\"],[\\\"reward\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"details.isRewardSpendAllowed\\\",\\\"allow spend reward\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"isRewardSpendAllowed\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowSpendRewardDescriptionMsg\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isRewardSpendAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@description\\\",\\\"@descriptionClassNames\\\"],[\\\"details.allocatedInclRewardAmount\\\",\\\"allocated reward spend\\\",[28,\\\"if\\\",[[23,0,[\\\"showSpendRewardAfterSaveDescription\\\"]],\\\"will be calculated accurately after saving\\\",\\\"\\\"],null],\\\"has-text-warning\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,2,[\\\"_data\\\",\\\"allocatedInclRewardAmount\\\"]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"details.isRewardEarnAllowed\\\",\\\"allow earn reward\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"isRewardEarnAllowed\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowEarnRewardDescriptionMsg\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isRewardEarnAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@description\\\",\\\"@descriptionClassNames\\\"],[\\\"details.allocatedRewardPointEarned\\\",\\\"allocated reward earn\\\",[28,\\\"if\\\",[[23,0,[\\\"showEarnRewardAfterSaveDescription\\\"]],\\\"will be calculated accurately after saving\\\",\\\"\\\"],null],\\\"has-text-warning\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,2,[\\\"_data\\\",\\\"allocatedRewardPointEarned\\\"]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@description\\\",\\\"@descriptionClassNames\\\"],[\\\"details.allocatedLevelPointsEarned\\\",\\\"allocated reward level earn\\\",[28,\\\"if\\\",[[23,0,[\\\"showEarnRewardAfterSaveDescription\\\"]],\\\"will be calculated accurately after saving\\\",\\\"\\\"],null],\\\"has-text-warning\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,2,[\\\"_data\\\",\\\"allocatedLevelPointsEarned\\\"]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-details-discount-and-reward/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-details-line/component\", [\"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 = Ember.Component.extend({\n    tagName: 'tr'\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-details-line/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tnwK3ex6\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"td\\\",true],[8],[0,\\\"\\\\n  \\\"],[2,\\\" index \\\"],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"showImagesOnDocuments\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tab\\\",\\\"config\\\",\\\"allowLinking\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[2,\\\" link btn \\\"],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n    \\\"],[2,\\\"  link docNo \\\"],[0,\\\"\\\\n    \\\"],[2,\\\"  link ref \\\"],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasDeliveryDate\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"hasSingleDeliveryDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[22,\\\"code\\\"],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[22,\\\"description\\\"],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[24,[\\\"hideOriginalQty\\\"]]],null],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"isValidatedReturnsWithRewards\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[22,\\\"qty\\\"],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isSplitting\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isQuickLinkDoc\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[22,\\\"exclusivePrice\\\"],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[22,\\\"inclusivePrice\\\"],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasTaxMethod\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[22,\\\"taxRate\\\"],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isSales\\\"]],[24,[\\\"hasSalesPersons\\\"]],[28,\\\"is-empty\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasValidityDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"number\\\",[[24,[\\\"exclusiveAmount\\\"]]],[[\\\"negative\\\"],[[24,[\\\"negative\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"number\\\",[[24,[\\\"inclusiveAmount\\\"]]],[[\\\"negative\\\"],[[24,[\\\"negative\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"model\\\",\\\"allowCreditCardRefunds\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-details-line/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-details-supplier/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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 DocumentsEditorMainEditorDetailsSupplier = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('contacts'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _class = class DocumentsEditorMainEditorDetailsSupplier extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"detailSupplierContactsFilters\", _descriptor5, this);\n      this.detailSupplierContactsFilters = this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'name',\n            direction: 'ASC'\n          }],\n          status: [this.constants.status.active],\n          resultsProperty: 'results'\n        }\n      });\n      this.initSetupTask.perform();\n    }\n    *initSetupTask() {\n      const detailSupplierContactsFiltersResults = this.detailSupplierContactsFilters.results;\n      const initialSupplierKey = this.args.initialSupplierKey;\n      if (RA.isNilOrEmpty(initialSupplierKey) && RA.isNilOrEmpty(detailSupplierContactsFiltersResults)) {\n        yield this.searchSuppliersTask.perform();\n      }\n    }\n    *searchSuppliersTask(query = '') {\n      yield this.contactsService.searchInputTask.perform({\n        component: this,\n        filters: this.detailSupplierContactsFilters,\n        relationship: 'supplier',\n        resultsProperty: 'results',\n        query\n      });\n    }\n    *supplierDeselectTask() {\n      const detailSupplierContactsFilters = this.detailSupplierContactsFilters;\n      if (RA.isNilOrEmpty(detailSupplierContactsFilters.results)) {\n        yield this.searchSuppliersTask.perform();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"detailSupplierContactsFilters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"initSetupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"initSetupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchSuppliersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchSuppliersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"supplierDeselectTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"supplierDeselectTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/editor-main/editor-details-supplier/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jzKSJtmC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@detail\\\",\\\"@isReadonlyOrDisabledForAdditional\\\"],\\\"statements\\\":[[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"supplierKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"supplierKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@hasSelectedKey\\\",\\\"@inputPvtClassNames\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onDeselect\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@selectedItemValueKey\\\",\\\"@tagName\\\",\\\"@value\\\",\\\"@context\\\"],[true,[23,2,[]],[23,0,[\\\"detailSupplierContactsFilters\\\"]],true,[23,1,[\\\"_data\\\",\\\"supplierKey\\\"]],\\\"fas fa-address-book\\\",\\\"_data._key\\\",\\\"table-form__input table-form__input--200\\\",[23,0,[\\\"contactsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"detailSupplierContactsFilters\\\",\\\"results\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"supplierDeselectTask\\\"]]],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"searchSuppliersTask\\\"]],[23,1,[\\\"_data\\\",\\\"supplierName\\\"]]],null],\\\"supplier\\\",[23,2,[]],\\\"contacts/search-results-documents\\\",\\\"_data.name\\\",\\\"div\\\",[23,1,[\\\"_data\\\",\\\"supplierName\\\"]],\\\"details.supplierName\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-details-supplier/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-details-th/component\", [\"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 = Ember.Component.extend({\n    tagName: 'tr',\n    classNames: ['table-form__header-tr']\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-details-th/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uCPfs28B\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[2,\\\" index \\\"],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"showImagesOnDocuments\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tab\\\",\\\"config\\\",\\\"allowLinking\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[2,\\\" link btn \\\"],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n    \\\"],[2,\\\"  link docNo \\\"],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"reference\\\"],null],false],[0,\\\"\\\\n    \\\"],[2,\\\"  link ref \\\"],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasDeliveryDate\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"hasSingleDeliveryDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"delivery date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-search\\\"]]],false],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[24,[\\\"hideOriginalQty\\\"]]],null],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"isValidatedReturnsWithRewards\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isSplitting\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"splitQtyLabel\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isQuickLinkDoc\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"quickLinkQtyLabel\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasTaxMethod\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"tax rate\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isSales\\\"]],[24,[\\\"hasSalesPersons\\\"]],[28,\\\"is-empty\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive base cost\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasValidityDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"lead time\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"or\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"model\\\",\\\"isSalesReturns\\\"]]],null],[24,[\\\"model\\\",\\\"allowCreditCardRefunds\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"refund payment\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"additional\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-details-th/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-details/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/date\", \"client/mixins/droppable\", \"client/mixins/settings\", \"client/mixins/crud\", \"client/mixins/errors\", \"ember-concurrency\", \"client/utils/nventor\", \"ramda-extension\"], function (_exports, R, RA, _date, _droppable, _settings, _crud, _errors, _emberConcurrency, _nventor, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _droppable.default, _errors.default, _settings.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    big: Ember.inject.service(),\n    constantsService: Ember.inject.service('constants'),\n    documentsService: Ember.inject.service('documents'),\n    tagName: 'tr',\n    classNames: ['documents__details-table-row'],\n    classNameBindings: ['detail._data.isSet:documents__details-table-row--isSet', 'detail._data.isSetChild:documents__details-table-row--isSetChild', 'isLastChild:documents__details-table-row--isSetChild-last'],\n    unroundedCurrency: 8,\n    // number of decimal places to keep for unrounded amounts\n    isSelectingDetailType: false,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['documents/lists/detail-types']);\n      const documentLinksFilters = this.search.setupFilters({\n        adapterName: 'documents/data/links/filters'\n      });\n      this.set('documentLinksFilters', documentLinksFilters);\n      const tabCopy = this.tabsManager.copyTab({\n        tab: this.tab\n      });\n      this.set('tabCopy', tabCopy);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const detail = this?.detail || {};\n      if (detail?.autoLoadProduct) {\n        this.loadProductTask.perform(detail?.autoLoadProduct);\n      }\n    },\n    customProductsList: Ember.computed('detail.{autoLoadProduct,autoLoadProductResults.[],_data.itemKey}', 'productsList', function () {\n      const detail = this.detail;\n      const productsList = this.productsList || [];\n      if (!detail?.autoLoadProduct) {\n        return productsList;\n      }\n      return detail?.autoLoadProductResults || [];\n    }),\n    setDetailLinksListTask: (0, _emberConcurrency.task)(function* () {\n      const itemKey = R.pathOr('', ['detail', '_data', 'itemKey'])(this);\n      yield this.searchForLinksTask.perform({\n        query: '',\n        itemKey\n      });\n      this.setMaxQtyWhenLinkedWhenIsEditingAndNotNew();\n    }),\n    isTotalQtyExceededMaxQty: Ember.computed('model.detailQtyGroupedByLinkedList', 'detail._data.{fromDocName,consignmentsPendingId,ordersPendingId,fromDetailKey}', 'synced', function () {\n      let pendingId = '';\n      const fromDocName = R.pathOr('', ['detail', '_data', 'fromDocName'])(this);\n      // @TODO: need to return false if is orders\n      // add logic for sales returns (maybe check originalQty)\n\n      pendingId = R.pathOr('', ['detail', '_data', 'consignmentsPendingId'])(this);\n      if (R.equals(fromDocName, 'invoices')) {\n        pendingId = R.pathOr('', ['detail', '_data', 'fromDetailKey'])(this);\n      }\n      if (RA.isNotNilOrEmpty(pendingId)) {\n        const detailQtyGroupedByLinkedList = R.pathOr({}, ['model', 'detailQtyGroupedByLinkedList'])(this);\n        if (RA.isNotNilOrEmpty(pendingId) && RA.isNotNilOrEmpty(detailQtyGroupedByLinkedList)) {\n          const detailQtyGrouped = detailQtyGroupedByLinkedList[pendingId] || {};\n          return detailQtyGrouped.isExceedMaxQty || false;\n        }\n        return false;\n      }\n      return false;\n    }),\n    isInventoryType: Ember.computed('detail._data.type', 'isSelectingDetailType', function () {\n      if (this.isSelectingDetailType) {\n        return true;\n      }\n      const nonInventoryTypes = ['shippingFee', 'paymentFee', 'automations'];\n      if (R.includes(this.detail?._data?.type, nonInventoryTypes)) {\n        return false;\n      }\n      return true;\n    }),\n    isShowDetailTypeSeletor: Ember.computed('isInventoryType', 'detail._data.{type,itemKey}', 'isSelectingDetailType', function () {\n      if (this.isSelectingDetailType) {\n        return true;\n      }\n      const isInventoryType = this.isInventoryType;\n      if (isInventoryType && !this.detail?._data?.itemKey) {\n        return true;\n      }\n      return false;\n    }),\n    isLastChild: Ember.computed('detail._data.isSetChild', 'model.sorted.[]', function () {\n      if (this.get('detail._data.isSetChild')) {\n        const details = this.get('model.sorted');\n        const index = this.get('detail._data.index');\n        const childIndex = this.get('detail._data.childIndex');\n        return R.pipe(R.filter(R.pathEq(['_data', 'index', index])), R.pluck('_data'), R.pluck('childIndex'), R.flatten, R.sort((a, b) => {\n          return a - b;\n        }), R.last, R.equals(childIndex))(details);\n      }\n      return false;\n    }),\n    isPriceReadonlyOrDisabled: Ember.computed('isReadonlyOrDisabled', 'isQuickLinkDoc', function () {\n      if (this.isQuickLinkDoc) {\n        return false;\n      }\n      return this.isReadonlyOrDisabled;\n    }),\n    isReadonlyOrDisabled: Ember.computed('model.{_data.detailsLocked,isValidatedReturnsWithRewards}', 'detail._data.isSetChild', 'isReadonly', 'isSplitting', 'isMerging', 'isQuickLinkDoc', function () {\n      if (this.isQuickLinkDoc) {\n        return true;\n      }\n\n      // if (this.model._data.detailsLocked) {\n      //   return true\n      // }\n\n      if (this.isSplitting) {\n        return true;\n      }\n      if (this.isMerging) {\n        return true;\n      }\n      if (this.get('detail._data.isSetChild') || this.get('detail._data.isSetWithChoices')) {\n        return true;\n      }\n      if (this.get('model.isValidatedReturnsWithRewards')) {\n        return true;\n      }\n      return this.isReadonly;\n    }),\n    isReadonlyOrDisabledForAdditional: Ember.computed('model.{_data.detailsLocked,isValidatedReturnsWithRewards}', 'detail._data.isSetWithChoices', 'isReadonly', 'isSplitting', 'isMerging', 'isQuickLinkDoc', function () {\n      if (this.isQuickLinkDoc) {\n        return true;\n      }\n      if (this.isSplitting) {\n        return true;\n      }\n      if (this.isMerging) {\n        return true;\n      }\n      if (this.detail?._data?.isSetWithChoices) {\n        return true;\n      }\n      if (this.get('model.isValidatedReturnsWithRewards')) {\n        return true;\n      }\n      return this.isReadonly;\n    }),\n    isReadonlyOrDisabledSplitQty: Ember.computed('model._data.detailsLocked', 'detail._data.isSetChild', 'isReadonly', 'isSplitting', function () {\n      if (this.isQuickLinkDoc) {\n        const originalRemainingQty = parseFloat(this.detail.originalRemainingQty) || 0;\n        if (originalRemainingQty <= 0) {\n          return true;\n        }\n        if (this.get('detail._data.isSetChild') || this.get('detail._data.isSetWithChoices')) {\n          return true;\n        }\n        return false;\n      }\n      if (this.isSplitting) {\n        if (this.detail?._data?.isSetChild) {\n          return true;\n        }\n        const netReturnsQty = this.detail?._data?.netReturnsQty || '0';\n        if (this.big.newBig(netReturnsQty).lte('0')) {\n          return true;\n        }\n        return false;\n      }\n      if (this.model._data.detailsLocked) {\n        return true;\n      }\n      if (this.get('detail._data.isSetChild') || this.get('detail._data.isSetWithChoices')) {\n        return true;\n      }\n      return this.isReadonly;\n    }),\n    isDisableItem: Ember.computed('isReadonlyOrDisabled', 'detail._data.isSetChild', 'isReadonly', function () {\n      const isReadonlyOrDisabled = this.isReadonlyOrDisabled;\n      if (isReadonlyOrDisabled) {\n        return true;\n      }\n      if (this.get('detail._data.isSet') || this.get('detail._data.isSetWithChoices')) {\n        return true;\n      }\n      return false;\n    }),\n    isSales: Ember.computed('docType', function () {\n      if (this.docType === 'sales') {\n        return true;\n      }\n      return false;\n    }),\n    isPurchases: Ember.computed('docType', function () {\n      if (this.docType === 'purchases') {\n        return true;\n      }\n      return false;\n    }),\n    /**\n     * returns true if discount is a %\n     * @type {Boolean}\n     */\n    isDiscountRate: Ember.computed('model._data.discountType', function () {\n      const model = this.model;\n      const discType = model.getData('discountType');\n      if (discType === this.get('constants.discountTypes.rate')) {\n        return true;\n      }\n      return false;\n    }),\n    appliedBulkDiscounts: Ember.computed('detail._data.{appliedBulkDiscounts.[],bulkDiscountAmt,bulkDiscountData}', function () {\n      const detail = this.detail;\n      const bulkDiscountData = detail?._data?.bulkDiscountData || {}; // old data\n      const appliedBulkDiscounts = detail?._data?.appliedBulkDiscounts || [];\n      if (RA.isNotNilOrEmpty(appliedBulkDiscounts)) {\n        return R.pipe(R.pluck('name'), R.uniq, RA.ensureArray)(appliedBulkDiscounts);\n      }\n      const bulkDiscountAmtBig = this.big.newBig(detail?._data?.bulkDiscountAmt || 0);\n      if (bulkDiscountAmtBig.gt(0) && RA.isNotNilOrEmpty(bulkDiscountData)) {\n        const bulkDiscountName = bulkDiscountData?.name ?? '';\n        if (bulkDiscountName) {\n          return [bulkDiscountName];\n        }\n      }\n      return [];\n    }),\n    /**\n     * search for links products to link from other documents\n     */\n    searchForLinksTask: (0, _emberConcurrency.task)(function* ({\n      query = '',\n      itemKey = ''\n    }) {\n      const model = this.model;\n      const contact = model.getData('contact');\n      const contactKey = model.getData('contactKey') || '';\n      if (!Ember.isEmpty(contact)) {\n        const docType = this.docType;\n        const docName = this.docName;\n        const documentLinksFilters = this.documentLinksFilters;\n        documentLinksFilters.setData('query', query);\n        documentLinksFilters.setData('contact', contact);\n        documentLinksFilters.setData('contactKey', contactKey);\n        documentLinksFilters.setData('itemKey', itemKey);\n        documentLinksFilters.setData('excludeFromLinkQty', {\n          docType,\n          docName,\n          docKey: model.getData('_key')\n        });\n        if (this?.isNew) {\n          documentLinksFilters.setData('includeCompletedPending', true);\n        }\n\n        // do not cache link lists\n        const options = {\n          cache: false\n        };\n        const results = yield this.crud.searchRecordsTask.perform({\n          adapterName: 'documents/data/links',\n          filters: documentLinksFilters,\n          options,\n          appendPath: `/${docType}/${docName}`,\n          resultsProperty: 'linksList'\n        });\n        return results;\n      }\n    }),\n    setMaxQtyWhenLinkedWhenIsEditingAndNotNew() {\n      const isEditing = this.isEditing;\n      const isNew = this.isNew;\n      const documentLinksFilters = this.documentLinksFilters;\n      const linksList = documentLinksFilters.get('linksList') || [];\n      if (isEditing && !isNew && RA.isNotNilOrEmpty(linksList)) {\n        const detail = this?.detail || {};\n        const ref = R.pathOr('', ['_data', 'ref'])(detail);\n        if (ref) {\n          const linkQtyFromLinksList = R.pipe(R.find(R.pathEq(['_data', 'docNo'], ref)), R.pathOr('0', ['_data', 'linkQty']), qty => {\n            return this.big.newBig(qty || '0').toFixed(0);\n          })(linksList);\n          const maxQtyWhenLinked = this.big.newBig(linkQtyFromLinksList).toFixed(0);\n          const hasMaxQtyWhenLinked = R.hasPath(['_data', 'maxQtyWhenLinked'], detail);\n          if (!hasMaxQtyWhenLinked) {\n            detail.setData('maxQtyWhenLinked', maxQtyWhenLinked);\n            detail.updateSynced();\n          }\n        }\n      }\n    },\n    qtyForLinkedList: Ember.computed('model.synced', 'model._data.details.@each.synced', 'detail._data.{ordersPendingId,consignmentsPendingId,qty,maxQtyWhenLinked}', 'detail.synced', 'linksList', function () {\n      const model = this.model;\n      const details = model.getData('details') || [];\n      let detailGroupedByLinked = {};\n      if (RA.isNotNilOrEmpty(details)) {\n        detailGroupedByLinked = R.pipe(R.filter(detail => {\n          let pendingId = R.pathOr('', ['_data', 'ordersPendingId'])(detail);\n          if (RA.isNilOrEmpty(pendingId)) {\n            pendingId = R.pathOr('', ['_data', 'consignmentsPendingId'])(detail);\n          }\n          if (RA.isNilOrEmpty(pendingId)) {\n            pendingId = R.pathOr('', ['_data', 'fromDetailKey'])(detail);\n          }\n          if (RA.isNotNilOrEmpty(pendingId)) {\n            return true;\n          }\n          return false;\n        }), R.groupBy(detail => {\n          const fromDocName = R.pathOr('', ['_data', 'fromDocName'])(detail);\n          if (R.equals(fromDocName, 'invoices')) {\n            return R.path(['_data', 'fromDetailKey'])(detail);\n          }\n          return R.path(['_data', `${fromDocName}PendingId`])(detail);\n        }), R.map(group => {\n          const groupQtys = R.pipe(R.map(detail => {\n            const qty = R.pathOr('0', ['_data', 'qty'])(detail);\n            return this.big.newBig(qty).toFixed(0);\n          }), x => {\n            return this.big.sumArray(x).toFixed(0);\n          })(group);\n          return groupQtys;\n        }))(details);\n      }\n      return detailGroupedByLinked;\n    }),\n    havePendingIdConflict: Ember.computed('detail._data.{fromDocName,fromDetailKey,consignmentsPendingId,ordersPendingId}', 'model.detailQtyGroupedByLinkedList', function () {\n      const detailQtyGroupedByLinkedList = this.model.detailQtyGroupedByLinkedList;\n      const detail = this?.detail || {};\n      const fromDocName = detail.getData('fromDocName') || '';\n      let pendingId = '';\n      if (RA.isNotNilOrEmpty(fromDocName)) {\n        pendingId = detail.getData(`${fromDocName}PendingId`);\n        if (R.equals(fromDocName, 'invoices')) {\n          pendingId = detail.getData('fromDetailKey');\n        }\n      }\n      const pendingIdList = R.keys(detailQtyGroupedByLinkedList);\n      if (R.includes(pendingId, pendingIdList)) {\n        return true;\n      }\n      return false;\n    }),\n    resetAndLoadProductTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, product) {\n      const detail = this.detail;\n      detail.setData('itemKey', product?._data?._key);\n      detail.setData('itemCode', product?._data?.code || '');\n      detail.setData('price', product?._data?.price || '');\n      yield this.loadProductTask.perform(product);\n      onCloseDialogAction();\n    }),\n    /**\n     * triggered when product is selected\n     */\n    loadProductTask: (0, _emberConcurrency.task)(function* (product) {\n      const model = this.model;\n      this.set('product', product);\n      const itemKey = product.getData('_key');\n      const productsService = this.productsService;\n      const {\n        preferredHistoryData\n      } = yield productsService.get('fetchDocHistoryTask').perform(model, 'contact', product, itemKey);\n      const taxRate = this.productsService.getTaxRate(model.getData('docType'), R_.dotPath('crud.lists.taxes')(this), product);\n      const detail = this.detail;\n      this.unloadDetailType();\n      model.loadProduct(taxRate, detail, product, preferredHistoryData);\n      this.updateDetailSyncedAndAddNewDetail();\n      yield this.searchForLinksTask.perform({\n        query: '',\n        itemKey\n      });\n    }).enqueue().maxConcurrency(1),\n    mergeWithDetails: Ember.computed('isMerging', 'toMergeWithModels.[]', function () {\n      if (this.isMerging) {\n        const model = this.model;\n        const detailData = this.get('detail._data');\n        const toMergeWithModels = this.toMergeWithModels || [];\n        const props = model.get('mergeDetailsProps');\n        const toMergeWithDetails = R.pipe(R.pluck('_data'), R.pluck('details'), R.flatten)(toMergeWithModels);\n        const a = R.filter(toMergeWithDetail => {\n          return _nventor.default.allEqProps(props, detailData, toMergeWithDetail._data);\n        }, toMergeWithDetails);\n        return a;\n      }\n    }),\n    updateDetailSyncedAndAddNewDetail({\n      onAfter\n    } = {}) {\n      this.onAddNewDetail();\n      const detail = this?.detail || {};\n      if (RA.isNotNilOrEmpty(detail)) {\n        if (RA.isNotNilOrEmpty(onAfter) && R.is(Function, onAfter)) {\n          onAfter();\n        }\n        detail.updateSynced();\n      }\n    },\n    toggleShowQtyWarningMsgTask: (0, _emberConcurrency.task)(function* () {\n      const model = this?.model || {};\n      const detail = this?.detail || {};\n      const fromDocNo = detail?._data?.fromDocNo || '';\n      if (RA.isNotNilOrEmpty(fromDocNo) && this.isEditing && !this.isNew) {\n        yield this.setDetailLinksListTask.perform();\n      }\n      if (RA.isNotNilOrEmpty(model)) {\n        model.toggleShowQtyWarningMsg();\n      }\n      if (RA.isNotNilOrEmpty(detail)) {\n        detail.toggleShowQtyWarningMsg();\n      }\n    }),\n    unloadDetailType() {\n      const detail = this.detail;\n      detail.setData('type', '');\n    },\n    // common actions (can be overridden from each document panel)\n    actions: {\n      searchForLinks(e, value) {\n        this.searchForLinks(e, value);\n      },\n      preLoadLinkedDetailFromDropdown(linkFromDetail) {\n        const detail = this.detail;\n        return this.onPreLoadLinkedDetails(linkFromDetail, detail);\n      },\n      addAndLoadProduct(onCloseDialogAction, detail, product) {\n        onCloseDialogAction();\n        detail.setData('itemKey', product.getData('_key'));\n        detail.setData('itemCode', product.getData('code'));\n        this.loadProductTask.perform(product);\n      },\n      cancelAddProduct(onCloseDialogAction) {\n        onCloseDialogAction();\n      },\n      setCommissionBaseCostAndOnSumTotal() {\n        const commissionBaseCostFinal = this.detail.getData('commissionBaseCostFinal');\n        this.detail.setData('commissionBaseCost', commissionBaseCostFinal);\n        this.onSumTotals();\n      },\n      toggleDetailDiscountType(item) {\n        const discType = item.getData('value');\n        const detail = this.detail;\n        if (discType === this.get('constants.discountTypes.rate')) {\n          const currentDiscValue = detail.getData('discountAmount') || detail.getData('discountRate');\n          detail.setData('discountRate', currentDiscValue);\n          detail.setData('discountAmount', '');\n        } else {\n          const currentDiscValue = detail.getData('discountRate') || detail.getData('discountAmount');\n          detail.setData('discountAmount', currentDiscValue);\n          detail.setData('discountRate', '');\n        }\n        this.onSumTotals();\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateDetailSyncedAndAddNewDetail\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateDetailSyncedAndAddNewDetail\"), _obj), _applyDecoratedDescriptor(_obj, \"unloadDetailType\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"unloadDetailType\"), _obj), _obj));\n});","define(\"client/pods/components/documents/editor-main/editor-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1r2C1BYS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"itemModel\\\",\\\"label\\\",\\\"admittedInfo\\\",\\\"onCloseDialogAction\\\",\\\"isTooltipVisible\\\",\\\"onCloseDialogAction\\\",\\\"onHideDropdown\\\",\\\"listSearcher\\\",\\\"onCloseDialogAction\\\",\\\"@searchProductsTask\\\",\\\"@productsFilters\\\",\\\"@detail\\\",\\\"@model\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]],\\\"has-text-right\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-minus-circle\\\",\\\"has-text-danger\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"helpers/drag-container\\\",null,[[\\\"draggable\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"data\\\"],[[24,[\\\"isEditing\\\"]],[24,[\\\"onDragStart\\\"]],[24,[\\\"onDragEnd\\\"]],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"index\\\"]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"index\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"childIndex\\\"]]],null,{\\\"statements\\\":[[0,\\\"        .\\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"childIndex\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"grandChildIndex\\\"]]],null,{\\\"statements\\\":[[0,\\\"        .\\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"grandChildIndex\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"showImagesOnDocuments\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@width\\\",\\\"@transform\\\",\\\"@image\\\"],[32,32,\\\"/-/scale_crop/32x32/smart\\\",[23,13,[\\\"_data\\\",\\\"defaultImage\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tab\\\",\\\"config\\\",\\\"allowLinking\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"btnClassNames\\\",\\\"icon\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[true,\\\"u-borderless\\\",\\\"fas fa-angle-down\\\",[24,[\\\"isReadonlyOrDisabled\\\"]],[28,\\\"perform\\\",[[24,[\\\"searchForLinksTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"itemKey\\\"],[\\\"\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"documents/links-modal\\\",null,[[\\\"model\\\",\\\"detail\\\",\\\"onCloseDialogAction\\\",\\\"linksList\\\",\\\"linkQuery\\\",\\\"onPreLoadLinkedDetails\\\",\\\"searchForLinksTask\\\",\\\"qtyForLinkedList\\\"],[[24,[\\\"model\\\"]],[24,[\\\"detail\\\"]],[23,10,[]],[23,0,[\\\"documentLinksFilters\\\",\\\"linksList\\\"]],[24,[\\\"linkQuery\\\"]],[24,[\\\"onPreLoadLinkedDetails\\\"]],[24,[\\\"searchForLinksTask\\\"]],[24,[\\\"qtyForLinkedList\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[10]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"table-form__td--no-border-right \\\",[28,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]],\\\"has-text-danger\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"tagName\\\",\\\"inputPvtClassNames\\\",\\\"disabled\\\",\\\"allowCustom\\\",\\\"list\\\",\\\"placeholder\\\",\\\"resultsComponent\\\",\\\"value\\\",\\\"selectedItemValueKey\\\",\\\"hasSelectedKey\\\",\\\"hasSelected\\\",\\\"prependHasSelected\\\",\\\"readonly\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\",\\\"context\\\"],[\\\"span\\\",\\\"table-form__input table-form__input--80\\\",[24,[\\\"isReadonlyOrDisabled\\\"]],true,[23,0,[\\\"documentLinksFilters\\\",\\\"linksList\\\"]],\\\"ref\\\",\\\"documents/links-results\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"docNo\\\"]],\\\"_data.docNo\\\",\\\"_data.docNo\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"docNo\\\"]],\\\"#\\\",[24,[\\\"isReadonlyOrDisabled\\\"]],[24,[\\\"searchForLinksTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"searchForLinksTask\\\"]],\\\"\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"preLoadLinkedDetailFromDropdown\\\"],null],[24,[\\\"onResetDetail\\\"]],\\\"details.fromDocNo\\\"]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[24,[\\\"detail\\\",\\\"doc\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromDocName\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromDocType\\\"]],\\\"-\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromDocName\\\"]]],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromDocType\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromDocName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromMaster\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"tagName\\\",\\\"inputPvtClassNames\\\",\\\"disabled\\\",\\\"allowCustom\\\",\\\"list\\\",\\\"placeholder\\\",\\\"resultsComponent\\\",\\\"value\\\",\\\"selectedItemValueKey\\\",\\\"hasSelectedKey\\\",\\\"hasSelected\\\",\\\"prependHasSelected\\\",\\\"readonly\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\",\\\"context\\\"],[\\\"span\\\",\\\"table-form__input table-form__input--80\\\",[24,[\\\"isReadonlyOrDisabled\\\"]],true,[23,0,[\\\"documentLinksFilters\\\",\\\"linksList\\\"]],\\\"ref\\\",\\\"documents/links-results\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"ref\\\"]],\\\"_data.docNo\\\",\\\"_data.fromDocNo\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromDocNo\\\"]],\\\"#\\\",[24,[\\\"isReadonlyOrDisabled\\\"]],[24,[\\\"searchForLinksTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"searchForLinksTask\\\"]],\\\"\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"preLoadLinkedDetailFromDropdown\\\"],null],[24,[\\\"onResetDetail\\\"]],\\\"details.fromDocNo\\\"]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\" table-form__td--no-border-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromRef\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromRef\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"details.fromRef\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasDeliveryDate\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"hasSingleDeliveryDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\",\\\"@context\\\"],[\\\"_data.deliveryDateZ\\\",[23,13,[]],[23,13,[\\\"_data\\\",\\\"deliveryDateZ\\\"]],[23,0,[\\\"isReadonlyOrDisabled\\\"]],\\\"details.deliveryDateZ\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"table-form__td--no-border-right \\\",[28,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]],\\\"has-text-danger\\\"],null]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--nowrap\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isInventoryType\\\"]]],null,{\\\"statements\\\":[[4,\\\"lists/list-searcher\\\",null,[[\\\"tagName\\\",\\\"inputPvtClassNames\\\",\\\"placeholder\\\",\\\"allowCustom\\\",\\\"list\\\",\\\"hasAdvancedModal\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"selectedItemValueKey\\\",\\\"hasSelectedKey\\\",\\\"hasSelected\\\",\\\"hasSelectedIcon\\\",\\\"disabled\\\",\\\"readonly\\\",\\\"isRunning\\\",\\\"filters\\\",\\\"hasPagination\\\",\\\"onSearch\\\",\\\"onPaginationTask\\\",\\\"onSelect\\\",\\\"context\\\",\\\"onDeselect\\\"],[\\\"span\\\",\\\"table-form__input table-form__input--120\\\",\\\"search products\\\",true,[24,[\\\"customProductsList\\\"]],\\\"products/picker-modal\\\",\\\"_data._key\\\",\\\"_data.name\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemCode\\\"]],\\\"_data.code\\\",\\\"_data._key\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"fas fa-bookmark\\\",[24,[\\\"isDisableItem\\\"]],[24,[\\\"isDisableItem\\\"]],[23,11,[\\\"isRunning\\\"]],[23,12,[]],true,[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemCode\\\"]]]]]],null],[24,[\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[24,[\\\"loadProductTask\\\"]]],null],\\\"details.itemCode\\\",[24,[\\\"onResetDetail\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"products/picker-modal\\\",null,[[\\\"results\\\",\\\"modalDialogIsVisible\\\",\\\"query\\\",\\\"onSelect\\\"],[[24,[\\\"productsList\\\"]],[23,9,[\\\"component\\\",\\\"showAdvancedModal\\\"]],[23,9,[\\\"component\\\",\\\"value\\\"]],[23,9,[\\\"onSelectAction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@allowDeselect\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\",\\\"@tab\\\",\\\"@context\\\"],[true,true,true,[23,0,[\\\"isReadonlyOrDisabled\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-detail-types\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"type\\\"]],[22,\\\"tab\\\"],\\\"details.type\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"statusClass\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@statusLabel\\\",\\\"@statusBadgeClassNames\\\"],[\\\"hasPreOrder\\\",[24,[\\\"detail\\\",\\\"statusClass\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowDetailTypeSeletor\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@onCloseModalDialog\\\"],[\\\"fas fa-ellipsis\\\",[23,0,[\\\"isReadonlyOrDisabled\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,0,[]],\\\"isSelectingDetailType\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,0,[]],\\\"isSelectingDetailType\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@translate\\\",\\\"@label\\\"],[true,\\\"type\\\"]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@allowDeselect\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\",\\\"@tab\\\",\\\"@context\\\"],[true,true,true,[23,0,[\\\"isReadonlyOrDisabled\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-detail-types\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"type\\\"]],[22,\\\"tab\\\"],\\\"details.type\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[24,[\\\"detail\\\",\\\"autoLoadProductResults\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@context\\\"],[[22,\\\"isDisableItem\\\"],\\\"fas fa-pen\\\",\\\"details.itemCode\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-results\\\",null,[[\\\"query\\\",\\\"translate\\\",\\\"list\\\",\\\"hasPagination\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"onSelect\\\"],[[24,[\\\"detail\\\",\\\"autoLoadProductQuery\\\"]],false,[24,[\\\"detail\\\",\\\"autoLoadProductResults\\\"]],false,\\\"_data._key\\\",\\\"_data.name\\\",[28,\\\"perform\\\",[[23,0,[\\\"resetAndLoadProductTask\\\"]],[23,7,[]]],null]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-cubes\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"not\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"fromDocNo\\\"]]],null],[28,\\\"not\\\",[[24,[\\\"isReadonlyOrDisabled\\\"]]],null],[23,0,[\\\"documentLinksFilters\\\",\\\"linksList\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"class\\\"],[\\\"fas fa-info-circle\\\",\\\"has-text-danger\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-popup-content\\\",null,[[\\\"isViewable\\\",\\\"hasContent\\\"],[[23,6,[]],true]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"documents/links-modal\\\",null,[[\\\"isInDetailRow\\\",\\\"model\\\",\\\"detail\\\",\\\"onCloseDialogAction\\\",\\\"linksList\\\",\\\"linkQuery\\\",\\\"onPreLoadLinkedDetails\\\",\\\"searchForLinksTask\\\",\\\"showSearchBar\\\",\\\"qtyForLinkedList\\\"],[true,[24,[\\\"model\\\"]],[24,[\\\"detail\\\"]],[24,[\\\"onCloseDialogAction\\\"]],[23,0,[\\\"documentLinksFilters\\\",\\\"linksList\\\"]],[24,[\\\"linkQuery\\\"]],[24,[\\\"onPreLoadLinkedDetails\\\"]],[24,[\\\"searchForLinksTask\\\"]],false,[24,[\\\"qtyForLinkedList\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-left u-padding--3\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isShowDetailTypeSeletor\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"disabled\\\"],[\\\"fas fa-plus\\\",\\\"add product\\\",[24,[\\\"isReadonlyOrDisabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"products/panels-new\\\",null,[[\\\"tab\\\",\\\"name\\\",\\\"onCancel\\\",\\\"onAfterCreateRecordTask\\\"],[[23,0,[\\\"tabCopy\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemCode\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelAddProduct\\\",[23,5,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"addAndLoadProduct\\\",[23,5,[]],[24,[\\\"detail\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"table-form__td--no-border-right  \\\",[28,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]],\\\"has-text-danger\\\"],null]]]],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"classNames\\\",\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"onInput\\\",\\\"value\\\",\\\"context\\\"],[\\\"u-full-width\\\",\\\"table-form__input table-form__input--200\\\",[24,[\\\"isReadonlyOrDisabled\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDetailSyncedAndAddNewDetail\\\"]],[28,\\\"hash\\\",null,[[\\\"onAfter\\\"],[[24,[\\\"onSumTotals\\\"]]]]]],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"item\\\"]],\\\"details.item\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[24,[\\\"isEditing\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"groupId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/tab-link\\\",[[12,\\\"classNames\\\",\\\"u-link--text\\\"]],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"tt\\\",[[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-inline-flex list-searcher__tag\\\"],[8],[0,\\\"\\\\n          #\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"hasQrCodeTicket\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"qrCodeId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-margin-top-10\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"qr code\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"qrCodeId\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"total admitted qty\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"admittedQty\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"admittedInfo\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[23,4,[\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"admitted qty\\\"],null],false],[0,\\\": \\\"],[1,[23,4,[\\\"admittedQty\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"products/inventory/inventory-status-tooltip\\\",null,[[\\\"itemKey\\\",\\\"product\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[24,[\\\"product\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"label\\\",\\\"value\\\",\\\"tab\\\",\\\"isQuickEditable\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"context\\\"],[true,true,[24,[\\\"isReadonlyOrDisabled\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],\\\"_data._key\\\",\\\"_data.label\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"unit\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"unitKey\\\"]],[24,[\\\"tab\\\"]],false,\\\"units-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"units\\\",true]]],\\\"details.unit\\\"]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[24,[\\\"hideOriginalQty\\\"]]],null],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"isValidatedReturnsWithRewards\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]],\\\"has-text-danger\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isMerging\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isQuickLinkDoc\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@onInput\\\",\\\"@negative\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"flex-container--justify-end\\\",\\\"table-form__input table-form__input--80 has-text-right\\\",true,[22,\\\"onSumTotals\\\"],[22,\\\"isReturnsDetail\\\"],[24,[\\\"detail\\\",\\\"remainingQty\\\"]],\\\"details.qty\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isSplitting\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@onInput\\\",\\\"@onFocusOut\\\",\\\"@negative\\\",\\\"@value\\\",\\\"@minValue\\\",\\\"@context\\\"],[\\\"flex-container--justify-end\\\",\\\"table-form__input table-form__input--80 has-text-right\\\",[22,\\\"isReadonlyOrDisabled\\\"],[22,\\\"onSumTotals\\\"],[28,\\\"perform\\\",[[23,0,[\\\"toggleShowQtyWarningMsgTask\\\"]]],null],[22,\\\"isReturnsDetail\\\"],[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]],1,\\\"details.qty\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"showQtyWarningMsg\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"havePendingIdConflict\\\"]],[24,[\\\"model\\\",\\\"haveMultiplePendingId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"translate\\\",\\\"tooltip\\\"],[\\\"linked documents have conflicts\\\",true,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"or\\\",[[24,[\\\"detail\\\",\\\"detailQtyWhenLinkedExceedAllowedQty\\\"]],[23,0,[\\\"isTotalQtyExceededMaxQty\\\"]]],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"maxQtyWhenLinked\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"iconClassNames\\\",\\\"translate\\\",\\\"tooltip\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"max qty\\\"],null],\\\": \\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"maxQtyWhenLinked\\\"]],\\\" (\\\",[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"ordersPendingId\\\"]],[28,\\\"tt\\\",[\\\"make sure that this is the intended qty\\\"],null]],null],\\\")\\\"],null],[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"ordersPendingId\\\"]],\\\"has-text-warning\\\",\\\"has-text-danger\\\"],null],false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isSplitting\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@maxValue\\\",\\\"@onInput\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"flex-container--justify-end\\\",\\\"table-form__input table-form__input--80 has-text-right\\\",[22,\\\"isReadonlyOrDisabledSplitQty\\\"],[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]],[22,\\\"onSumTotals\\\"],[24,[\\\"detail\\\",\\\"_data\\\",\\\"splitQty\\\"]],\\\"details.splitQty\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isQuickLinkDoc\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@onInput\\\",\\\"@onFocusOut\\\",\\\"@maxValue\\\",\\\"@value\\\",\\\"@minValue\\\",\\\"@context\\\"],[\\\"flex-container--justify-end\\\",\\\"table-form__input table-form__input--80 has-text-right\\\",[22,\\\"isReadonlyOrDisabledSplitQty\\\"],[22,\\\"onSumTotals\\\"],[28,\\\"perform\\\",[[23,0,[\\\"toggleShowQtyWarningMsgTask\\\"]]],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"maxQty\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]],0,\\\"details.qty\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"showQtyWarningMsg\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"havePendingIdConflict\\\"]],[24,[\\\"model\\\",\\\"haveMultiplePendingId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"translate\\\",\\\"tooltip\\\"],[\\\"linked documents have conflicts\\\",true,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"or\\\",[[24,[\\\"detail\\\",\\\"detailQtyWhenLinkedExceedAllowedQty\\\"]],[23,0,[\\\"isTotalQtyExceededMaxQty\\\"]]],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"maxQtyWhenLinked\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"error\\\",\\\"iconClassNames\\\",\\\"translate\\\",\\\"tooltip\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"max qty\\\"],null],\\\": \\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"maxQtyWhenLinked\\\"]],\\\" (\\\",[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"ordersPendingId\\\"]],[28,\\\"tt\\\",[\\\"make sure that this is the right qty\\\"],null]],null],\\\")\\\"],null],[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"ordersPendingId\\\"]],\\\"has-text-warning\\\",\\\"has-text-danger\\\"],null],false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]],\\\"table-form__td--no-border-right\\\",\\\"u-disabled-pointer\\\"],null],\\\" has-text-right \\\",[28,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]],\\\"has-text-danger\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isQuickLinkDoc\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding--6 u-desc\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"price\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"roundingInventoryPrice\\\"]],[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding--6\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"exclPrice\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"roundingInventoryPrice\\\"]],[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@onInput\\\",\\\"@negative\\\",\\\"@value\\\",\\\"@minValue\\\",\\\"@context\\\"],[\\\"table-form__input--90\\\",\\\"table-form__input has-text-right\\\",[22,\\\"isReadonlyOrDisabled\\\"],[22,\\\"onSumTotals\\\"],[22,\\\"isReturnsDetail\\\"],[24,[\\\"detail\\\",\\\"_data\\\",\\\"price\\\"]],0,\\\"details.price\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"products/price-selectors/price-selector\\\",null,[[\\\"itemKey\\\",\\\"isReadonly\\\",\\\"product\\\",\\\"isTaxExclusive\\\",\\\"docType\\\",\\\"isRunning\\\",\\\"onFetchHistoryTask\\\",\\\"onSelect\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[24,[\\\"isReadonlyOrDisabled\\\"]],[24,[\\\"product\\\"]],[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"productsService\\\",\\\"fetchDocHistoryTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"productsService\\\",\\\"fetchDocHistoryTask\\\"]],[24,[\\\"model\\\"]],\\\"contact\\\"],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"productsService\\\",\\\"setDetailPrice\\\"]],[24,[\\\"model\\\"]],[24,[\\\"detail\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding--6\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"exclPrice\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]],\\\"u-disabled-pointer\\\",\\\"table-form__td--no-border-right\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isQuickLinkDoc\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding--6\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"inclPrice\\\"]]],[[\\\"rounding\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"roundingInventoryPrice\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding--6\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"price\\\"]]],[[\\\"rounding\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"roundingInventoryPrice\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding--6\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"inclPrice\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@onInput\\\",\\\"@negative\\\",\\\"@value\\\",\\\"@minValue\\\",\\\"@context\\\"],[\\\"table-form__input--90\\\",\\\"table-form__input has-text-right\\\",[22,\\\"isReadonlyOrDisabled\\\"],[22,\\\"onSumTotals\\\"],[22,\\\"isReturnsDetail\\\"],[24,[\\\"detail\\\",\\\"_data\\\",\\\"price\\\"]],0,\\\"details.price\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"products/price-selectors/price-selector\\\",null,[[\\\"itemKey\\\",\\\"isReadonly\\\",\\\"product\\\",\\\"isTaxExclusive\\\",\\\"docType\\\",\\\"isRunning\\\",\\\"onFetchHistoryTask\\\",\\\"onSelect\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[24,[\\\"isReadonlyOrDisabled\\\"]],[24,[\\\"product\\\"]],[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"productsService\\\",\\\"fetchDocHistoryTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"productsService\\\",\\\"fetchDocHistoryTask\\\"]],[24,[\\\"model\\\"]],\\\"contact\\\"],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"productsService\\\",\\\"setDetailPrice\\\"]],[24,[\\\"model\\\"]],[24,[\\\"detail\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"details.price\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasTaxMethod\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]],\\\"has-text-danger\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"lists/list-dropdown\\\",null,[[\\\"containerClassNames\\\",\\\"isBtn\\\",\\\"translate\\\",\\\"tab\\\",\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"onSelect\\\",\\\"triggerOnSelectActionOnChange\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"value\\\",\\\"isQuickEditable\\\",\\\"context\\\"],[\\\"flex-container--justify-end\\\",true,false,[24,[\\\"tab\\\"]],\\\"table-form__input table-form__input--40 has-text-right\\\",true,[24,[\\\"isReadonlyOrDisabled\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxes\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"onSumTotals\\\"]],false,\\\"taxes-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"taxes\\\",true]]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"taxRate\\\"]],false,\\\"details.taxRate\\\"]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"value\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"percentage\\\",[[23,2,[\\\"_data\\\",\\\"value\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[2,3]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isSales\\\"]],[24,[\\\"hasSalesPersons\\\"]],[28,\\\"is-empty\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@onInput\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"flex-container--justify-end\\\",\\\"table-form__input table-form__input--120 has-text-right\\\",[22,\\\"isReadonlyOrDisabled\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"setCommissionBaseCostAndOnSumTotal\\\"],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"commissionBaseCostFinal\\\"]],\\\"details.commissionBaseCost\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasValidityDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"flex-container--justify-end\\\",\\\"table-form__input table-form__input--120 has-text-right\\\",[22,\\\"isReadonlyOrDisabled\\\"],[24,[\\\"detail\\\",\\\"_data\\\",\\\"leadTime\\\"]],\\\"details.leadTime\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]],\\\"has-text-danger\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"exclAmt\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"inclAmt\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isReturnsDetail\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"hasDiscountRate\\\"]],[24,[\\\"isReadonlyOrDisabled\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"discountAllowed\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"gt\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"allocatedInclDiscountUnrounded\\\"]],0],null],[28,\\\"gt\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"allocatedExclDiscountUnrounded\\\"]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"allocatedExclDiscountUnrounded\\\"]]],[[\\\"negative\\\",\\\"rounding\\\"],[true,[24,[\\\"detail\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"allocatedInclDiscountUnrounded\\\"]]],[[\\\"negative\\\",\\\"rounding\\\"],[true,[24,[\\\"detail\\\",\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"or\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"model\\\",\\\"isSalesReturns\\\"]]],null],[24,[\\\"model\\\",\\\"allowCreditCardRefunds\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionCode\\\"]],[28,\\\"gt\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]],0],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isAllowPartialCreditCardRefund\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\",\\\"onToggle\\\",\\\"context\\\"],[[28,\\\"if\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"isReadonly\\\"]],true],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]],[23,0,[\\\"constants\\\",\\\"paymentCreditCardStatus\\\",\\\"refundRequested\\\"]],\\\"\\\",[24,[\\\"onSumTotals\\\"]],\\\"details.paymentCreditCardStatus\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,false]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"hasModalOverlay\\\",\\\"isViewable\\\"],[false,[23,1,[]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"passed allowed refund period\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"documents/editor-main/editor-details-additional\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@isReadonlyOrDisabledForAdditional\\\",\\\"@appliedBulkDiscounts\\\",\\\"@isReadonlyOrDisabled\\\",\\\"@isDiscountRate\\\",\\\"@onSumTotals\\\"],[[23,14,[]],[23,15,[]],[23,0,[\\\"detail\\\"]],[23,0,[\\\"isReadonlyOrDisabledForAdditional\\\"]],[23,0,[\\\"appliedBulkDiscounts\\\"]],[23,0,[\\\"isReadonlyOrDisabled\\\"]],[23,0,[\\\"isDiscountRate\\\"]],[22,\\\"onSumTotals\\\"]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered \\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isReadonlyOrDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"disabled\\\",\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"detail\\\",\\\"onSubmit\\\"],[[24,[\\\"isReadonlyOrDisabled\\\"]],\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[24,[\\\"detail\\\"]],[24,[\\\"onRemoveDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-info/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/date\", \"client/mixins/search-contacts\", \"client/mixins/crud\", \"client/mixins/big\", \"client/utils/nventor\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, _date, _searchContacts, _crud, _big, _nventor, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  /**\n   * documents editor shared functions\n   */\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _big.default, _searchContacts.default, (_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    contactsService: Ember.inject.service('contacts'),\n    documentsService: Ember.inject.service('documents'),\n    constants: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    ajax: Ember.inject.service(),\n    tagName: '',\n    roundingCurrency: 0,\n    unroundedCurrency: 8,\n    rewardFiltersAdapter: 'channels/shop/rewards/filters',\n    rewardAdapter: 'channels/shop/rewards',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['contacts/lists/relationships']);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters'\n      });\n      this.set('campaignFilters', campaignFilters);\n      const rewardFilters = this.search.setupFilters({\n        adapterName: this.rewardFiltersAdapter,\n        defaultFiltersData: {\n          resultsProperty: 'rewardsList',\n          query: ''\n        }\n      });\n      this.set('rewardFilters', rewardFilters);\n      const contactsFilters = this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'name',\n            direction: 'ASC'\n          }],\n          status: [this.constants.status.active]\n        }\n      });\n      this.set('contactsFilters', contactsFilters);\n      const taxNumberInputTaxId = _nventor.default.random.alpha(8);\n      this.set('taxNumberInputTaxId', taxNumberInputTaxId);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const allowedRelationships = R.pathOr([], ['crud', 'lists', 'contacts-lists-relationships'])(this);\n      this.set('allowedRelationships', allowedRelationships);\n    },\n    // getAllowedCountriesTask: task(function * () {\n    //   const allowedCountries = yield this.server.call('GET', 'api/protected/settings/countries', {})\n    //   this.set('allowedCountries', allowedCountries?.data || [])\n    // }),\n\n    filteredPaymentMethods: Ember.computed('crud.lists.paymentMethods.{[],@each.synced}', 'model._data.{docName,details.@each.synced}', function () {\n      const docName = this?.model?._data?.docName || '';\n      const paymentMethods = this?.crud?.lists?.paymentMethods || [];\n      const details = this?.model?._data?.details || [];\n      const detailsHasConsignmentsPendingId = R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('consignmentsPendingId'), R.reject(RA.isNilOrEmpty), R.uniq)(details);\n      const paymentMethodConsignmentsOnly = R.filter(paymentMethod => {\n        const value = paymentMethod?._data?.value || '';\n        if (R.equals(value, 'consignment')) {\n          return true;\n        }\n        return false;\n      })(paymentMethods);\n      if (R.equals(docName, 'consignments') || R.equals(docName, 'consignments-returns')) {\n        return paymentMethodConsignmentsOnly;\n      }\n      if (RA.isNotNilOrEmpty(detailsHasConsignmentsPendingId)) {\n        return paymentMethodConsignmentsOnly;\n      }\n      return paymentMethods;\n    }),\n    paymentTermsLastDayOfMonthLabel: Ember.computed('model._data.{paymentMethodKey,paymentTermsLastDayOfMonth}', function () {\n      const model = this.model;\n      const paymentMethodKey = model?._data?.paymentMethodKey;\n      const paymentTermsLastDayOfMonth = Number(model?._data?.paymentTermsLastDayOfMonth || 0);\n      if (paymentMethodKey !== this.constants.paymentMethods.account) {\n        return '';\n      }\n      if (paymentTermsLastDayOfMonth > 0) {\n        return `${this.intl.t('last day of invoice month')}: ${paymentTermsLastDayOfMonth}`;\n      }\n      return '';\n    }),\n    paymentTermsAutoCalculateLabel: Ember.computed('model._data.{paymentMethodKey,paymentTermsKey,paymentDueDateZ}', function () {\n      const model = this.model;\n      const paymentMethodKey = model?._data?.paymentMethodKey;\n      if (paymentMethodKey !== this.constants.paymentMethods.account) {\n        return '';\n      }\n      const hasPaymentTerms = model?._data?.paymentTermsKey;\n      if (!hasPaymentTerms) {\n        return '';\n      }\n      if (model?._data?.paymentDueDateZ) {\n        return '';\n      }\n      return 'payment due date will be auto calculated after saving';\n    }),\n    shouldDisableTwEInvoicePrint: Ember.computed('model._data.twEInvoiceCarrierType', function () {\n      const isReadonly = this.isReadonly;\n      if (isReadonly) {\n        return true;\n      }\n      const isCarrierTypeMobile = R.pathEq(['model', '_data', 'twEInvoiceCarrierType'], 'mobile')(this);\n      if (isCarrierTypeMobile) {\n        return true;\n      }\n      return false;\n    }),\n    isCashBeforeDelivery: Ember.computed('model._data.paymentMethodKey', function () {\n      const cashBeforeDelivery = R.pathOr('', ['constants', 'paymentMethods', 'cashBeforeDelivery'])(this);\n      return R.pathEq(['model', '_data', 'paymentMethodKey'], cashBeforeDelivery)(this);\n    }),\n    paymentMethodLabelPrefix: Ember.computed('model._data.paymentMethodCustomLabel', function () {\n      const paymentMethodCustomLabel = R.pathOr('', ['model', '_data', 'paymentMethodCustomLabel'])(this);\n      if (RA.isNotNilOrEmpty(paymentMethodCustomLabel)) {\n        return `${paymentMethodCustomLabel} (`;\n      }\n      return '';\n    }),\n    paymentMethodLabelSuffix: Ember.computed('model._data.paymentMethodCustomLabel', function () {\n      const paymentMethodCustomLabel = R.pathOr('', ['model', '_data', 'paymentMethodCustomLabel'])(this);\n      if (RA.isNotNilOrEmpty(paymentMethodCustomLabel)) {\n        return ')';\n      }\n      return '';\n    }),\n    docContactRelationship: Ember.computed('docType', 'docName', function () {\n      const docType = this.docType;\n      const docName = this.docName;\n      if (R.includes(docName, ['invoices', 'returns'])) {\n        return 'all';\n      }\n      if (docType === 'sales') {\n        return 'customer';\n      }\n      return 'supplier';\n    }),\n    showContactRelationship: Ember.computed('docName', function () {\n      const docName = this.docName;\n      if (R.includes(docName, ['invoices', 'returns'])) {\n        return true;\n      }\n      return false;\n    }),\n    isPaymentMethodReadonly: Ember.computed('isReadonly', 'model._data.{paymentMethodKey,paymentCreditCardTransactionCode,virtualAccount}', function () {\n      const model = this?.model;\n      const isSalesInvoice = model?._data?.docType === 'sales' && model?._data?.docName === 'invoices';\n      const hasCreditCardTransactionCode = R.pathOr('', ['_data', 'paymentCreditCardTransactionCode'])(model);\n      const hasLinePayTransactionCode = R.pathOr('', ['_data', 'paymentLinePayTransactionCode'])(model);\n      if (isSalesInvoice) {\n        if (hasCreditCardTransactionCode || hasLinePayTransactionCode) {\n          return true;\n        }\n      }\n      if (this.isReadonly) {\n        return true;\n      }\n      if (hasCreditCardTransactionCode) {\n        return true;\n      }\n      const hasVirtualAccount = R.anyPass([_nventor.default.isNilOrEmptyDotPathOr(false, '_data.virtualAccount.virtualAccountNumber'), R.pathEq(['_data', 'paymentData', 'type'], 'virtualAccountNative')])(model);\n      const isPaid = R.pathEq(['_data', 'virtualAccount', 'status'], 'paid')(model);\n      const isPaymentDataStatusApproved = R.pathEq(['_data', 'paymentData', 'status'], 'approved')(model);\n      if (hasVirtualAccount && (isPaid || isPaymentDataStatusApproved)) {\n        return true;\n      }\n      return false;\n    }),\n    showDiscountMethodLabel: Ember.computed('model._data.{discountMethod,discountRate,discountAmount}', function () {\n      const model = this.model;\n      const discountMethodKey = model.getData('discountMethod');\n      const discountRate = model.getData('discountRate');\n      const discountAmount = model.getData('discountAmount');\n      let showDiscount = true;\n      if (discountMethodKey === this.get('constants.discountMethods.onTotal')) {\n        // per total\n        if ((Ember.isEmpty(discountRate) || discountRate === 0 || discountRate === '0') && (Ember.isEmpty(discountAmount) || discountAmount === 0 || discountAmount === '0')) {\n          showDiscount = false;\n        }\n      }\n      return showDiscount;\n    }),\n    showSettingsAutoPrintInvoices: Ember.computed('model._data.autoPrintInvoices', function () {\n      const autoPrintInvoices = this.get('model._data.autoPrintInvoices');\n      if (!autoPrintInvoices || autoPrintInvoices === 'auto') {\n        return true;\n      }\n      return false;\n    }),\n    shopDotComData: Ember.computed('model._data.{thirdParty.shopDotCom,thirdPartyCommissions}', function () {\n      if (this.model._data.docType === 'sales' && this.model._data.docName === 'invoices') {\n        const shopDotComSettings = this.get('model._data.thirdParty.shopDotCom') || {};\n        const thirdPartyCommissions = this.get('model._data.thirdPartyCommissions') || [];\n        const shopDotCom = R.find(R.propEq('provider', 'shopDotCom'))(thirdPartyCommissions) || {};\n        const data = {\n          externalId: this.model._data?.externalId,\n          ...shopDotComSettings,\n          ...shopDotCom\n        } || {};\n        return data;\n      }\n      return {};\n    }),\n    isQuote: Ember.computed('model._data.docName', function () {\n      const docName = this.docName;\n      if (docName === 'quotes') {\n        return true;\n      }\n      return false;\n    }),\n    toggleDeliveryDateZ(deliveryDateOptionModel) {\n      const deliveryDateOption = deliveryDateOptionModel.getData('value');\n      const model = this.model;\n      const details = model.getData('details');\n      if (deliveryDateOption === 'multiple') {\n        // changing from single to multiple\n\n        const deliveryDateZ = model.getData('deliveryDateZ');\n        details.forEach(function (detail) {\n          detail.setData('deliveryDateZ', deliveryDateZ);\n        });\n      } else {\n        // changing from multiple to single\n        // use latest delivery date in details\n\n        let latestDeliveryDateZ = this.getStartOfDayZ();\n        details.forEach(function (detail) {\n          if (detail.getData('deliveryDateZ') > latestDeliveryDateZ) {\n            latestDeliveryDateZ = detail.getData('deliveryDateZ');\n          }\n        });\n        model.setData('deliveryDateZ', latestDeliveryDateZ);\n      }\n    },\n    /**\n     * Observer: re-sums totals when details has changed\n     * @type {[type]}\n     */\n    // detailsHasChanged: observer('recalculateTotals', 'model._data.discountAmount', 'model._data.discountRate', function () {\n    //   this.sumTotals()\n    // }),\n\n    /**\n     * assign sales rep to contact\n     */\n    assignSalesPerson(person) {\n      const model = this.model;\n      model.addSalesPerson(person);\n    },\n    /**\n     * assign sales rep to contact\n     */\n    unassignSalesPerson(person) {\n      const model = this.model;\n      model.removeSalesPerson(person);\n    },\n    fetchRewardTask: (0, _emberConcurrency.task)(function* ({\n      query\n    }) {\n      query = (query || '').trim();\n      const filters = this.rewardFilters;\n      const adapterName = this.rewardAdapter;\n      filters.setData('query', query);\n      return yield this.crud.searchInputTask.perform({\n        adapterName,\n        filters,\n        component: this,\n        resultsProperty: 'rewardsList',\n        allowEmptyQuery: true\n      }, query);\n    }),\n    rewardName: Ember.computed('model._data.rewardData.name', function () {\n      return this.model.getData('rewardData.name') || '';\n    }),\n    setAllowedRelationshipsTask: (0, _emberConcurrency.task)(function* ({\n      contactKey\n    }) {\n      this.set('isEditingContactName', true);\n      const contactModel = yield this.crud.findTask.perform({\n        adapterName: 'contacts',\n        appendPath: `/${contactKey}`\n      });\n      const contactRelationships = contactModel?._data?.relationships || [];\n      let allowedRelationships = R.pathOr([], ['crud', 'lists', 'contacts-lists-relationships'])(this);\n      if (R.equals(R.length(contactRelationships), 1)) {\n        allowedRelationships = R.filter(R.pathEq(['_data', 'value'], R.head(contactRelationships)))(allowedRelationships);\n      }\n      this.set('allowedRelationships', allowedRelationships);\n    }),\n    loadContactOnRelationshipChangeTask: (0, _emberConcurrency.task)(function* ({\n      contactKey,\n      onLoadContact\n    }, selectedContactRelationship, originalContactRelationship) {\n      const newContactRelationship = selectedContactRelationship?._data?.value;\n      if (!R.equals(newContactRelationship, originalContactRelationship)) {\n        const contactModel = yield this.crud.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: `/${contactKey}`\n        });\n        if (onLoadContact) {\n          this.onLoadContact(contactModel);\n        }\n      }\n    }),\n    setupTaxNumberInputAutofocus(twEInvoiceCarrierType) {\n      const allowAutoFocusOnCarrierTypes = ['b2b', 'mobile', 'citizenDigitalCertificate'];\n      if (!allowAutoFocusOnCarrierTypes.includes(twEInvoiceCarrierType?._data?.value)) {\n        return;\n      }\n      setTimeout(() => {\n        const taxNumberInputElement = document.querySelector(`.${this.taxNumberInputTaxId} input`);\n        if (!taxNumberInputElement) {\n          return;\n        }\n        taxNumberInputElement.focus();\n      }, 100);\n    },\n    actions: {\n      addAndLoadContactAndUpdateDoInfo(onCloseDialogAction, model, contact) {\n        onCloseDialogAction();\n        if (this.isEditing) {\n          model.setData('contact', contact.getData('name'));\n          this.onLoadContact(contact);\n        } else {\n          return this.onLoadContactAndUpdateDoInfo(model, contact);\n          // const dirty = this.get('onSetupDirty')({\n          //   adapterName,\n          //   model: this.get('model')\n          // })\n          // dirty.setData('contact', contact.getData('name'))\n          // this._loadContact(dirty, docType, contact)\n          // return this.get('onUpdateDocInfoTask').linked().perform(dirty)\n        }\n        // model.setData('contact', contact.getData('name'))\n        // update contact\n        // this.get('onLoadContact')(contact)\n      },\n      cancelAddContact(onCloseDialogAction) {\n        onCloseDialogAction();\n      },\n      loadShopSource(shop) {\n        const model = this.model;\n        model.setData('sourceKey', shop.getData('_key'));\n        const rewardData = shop.getData('rewardData') || {};\n        model.setRewardAndContactReward({\n          rewardData\n        });\n      },\n      unloadShopSource() {\n        const model = this.model;\n        model.set('rewardKey', '');\n        model.setData('sourceKey', '');\n      },\n      loadExternalPod(pod) {\n        const model = this.model;\n        model.setData('externalPodKey', pod.getData('podKey'));\n      },\n      unloadExternalPod() {\n        const model = this.model;\n        model.setData('externalPodKey', '');\n      },\n      loadPaymentMethod(paymentMethod) {\n        this.model.loadPaymentMethod({\n          paymentMethod\n        });\n      },\n      loadPaymentTerms(paymentTerms) {\n        this.model.loadPaymentTerms({\n          paymentTerms\n        });\n      },\n      toggleDeliveryDateZ(deliveryDateOptionModel) {\n        this.toggleDeliveryDateZ(deliveryDateOptionModel);\n      },\n      /**\n       * assign sales rep to contact\n       */\n      assignSalesPerson(person) {\n        this.assignSalesPerson(person);\n      },\n      /**\n       * unassign sales rep\n       */\n      unassignSalesPerson(person) {\n        this.unassignSalesPerson(person);\n      },\n      toggleChannelSource(shop) {\n        const model = this.model;\n        if (shop.getData('_key')) {\n          model.setData('source', shop.getData('name'));\n        } else {\n          model.setData('source', '');\n        }\n      },\n      onLoadRewardItem(selectedItem) {\n        const model = this.model;\n        model.setRewardAndContactReward({\n          rewardData: selectedItem\n        });\n      },\n      onResetRewardItem() {\n        this.model.setData('rewardData', {});\n      },\n      setCarrierType() {\n        const model = this.model;\n        if (model.getData('taxNumber')) {\n          this.model.setData('twEInvoiceCarrierType', 'b2b');\n          // this.model.setData('twEInvoiceCarrierId', '')\n        } else {\n          this.model.setData('twEInvoiceCarrierType', '');\n          // this.model.setData('twEInvoiceCarrierId', '')\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupTaxNumberInputAutofocus\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupTaxNumberInputAutofocus\"), _obj), _obj));\n});","define(\"client/pods/components/documents/editor-main/editor-info/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PuQFrp3I\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"accordianContainer\\\",\\\"accordianContainer\\\",\\\"accordianContainer\\\",\\\"person\\\",\\\"accordianContainer\\\",\\\"accordianContainer\\\",\\\"accordianContainer\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogManagement\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@associatesContacts\\\",\\\"@onSumTotals\\\",\\\"@allowTwInvoicing\\\",\\\"@hasTaxNumber\\\",\\\"@docName\\\",\\\"@docType\\\",\\\"@onAddContactDetail\\\",\\\"@onLoadContactDetail\\\",\\\"@onLoadContactPerson\\\",\\\"@onUnloadTransporter\\\",\\\"@onLoadTransporter\\\",\\\"@selectedTransporter\\\",\\\"@transportersList\\\",\\\"@dontFetchRegionCode\\\",\\\"@hasCommission\\\",\\\"@hasSingleDeliveryDate\\\",\\\"@onLoadContact\\\",\\\"@onUnloadContact\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@hasDeliveryDate\\\",\\\"@hasValidityDate\\\",\\\"@requireContact\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[[12,\\\"class\\\",[28,\\\"if\\\",[[23,11,[\\\"isTransporterSevenEleven\\\"]],\\\"form-container__details--seven-eleven\\\"],null]]],[[\\\"@containerId\\\",\\\"@isUserAllowed\\\",\\\"@hasColumns\\\",\\\"@colCount\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"details\\\",true,true,3,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"documents\\\",true,[23,33,[]],[23,32,[]]]]],[23,33,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-column\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--column-2\\\"]],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\",\\\"@hideTitleContainer\\\"],[\\\"docContacts_group\\\",[23,1,[]],true,true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"contact\\\",[23,13,[]],\\\"to\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,11,[\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"contactKey\\\",\\\"component\\\",\\\"loadInstructions\\\",\\\"title\\\"],[[23,11,[\\\"_data\\\",\\\"contactKey\\\"]],\\\"contacts/tab-container\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,11,[\\\"_data\\\",\\\"contactKey\\\"]]]]]]]],\\\"contacts\\\"]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@autofocus\\\",\\\"@disabled\\\",\\\"@disallowDeselect\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onDeselect\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onPaginationTask\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@selectedItemValueKey\\\",\\\"@tagName\\\",\\\"@value\\\"],[true,true,[23,12,[]],[23,11,[\\\"_data\\\",\\\"sourceKey\\\"]],[23,0,[\\\"contactsFilters\\\"]],true,[23,11,[\\\"_data\\\",\\\"contactKey\\\"]],\\\"fas fa-address-book\\\",[23,0,[\\\"contactsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"contactsFilters\\\",\\\"results\\\"]],[23,31,[]],[28,\\\"perform\\\",[[23,0,[\\\"contactsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"filters\\\",\\\"relationship\\\",\\\"resultsProperty\\\",\\\"query\\\"],[[23,0,[]],[23,0,[\\\"contactsFilters\\\"]],[23,0,[\\\"docContactRelationship\\\"]],\\\"results\\\",[23,11,[\\\"_data\\\",\\\"contact\\\"]]]]]],null],[23,30,[]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,12,[]],\\\"contacts/search-results-documents\\\",\\\"_data.name\\\",\\\"span\\\",[23,11,[\\\"_data\\\",\\\"contact\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"contactKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,12,[]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"disabled\\\",\\\"hasSectionWrapper\\\",\\\"isPushBtn\\\",\\\"icon\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[[23,12,[]],true,true,\\\"fas fa-pen fa-xs\\\",[28,\\\"perform\\\",[[23,0,[\\\"setAllowedRelationshipsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"contactKey\\\"],[[23,11,[\\\"_data\\\",\\\"contactKey\\\"]]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,0,[]],\\\"isEditingContactName\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"formInitData\\\"],[\\\"to\\\",[24,[\\\"errors\\\"]],\\\"contactAlt\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"value\\\"],[true,[23,11,[\\\"_data\\\",\\\"contact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showContactRelationship\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"formInitData\\\"],[\\\"relationship\\\",[24,[\\\"errors\\\"]],\\\"contactRelationship\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"onSelect\\\",\\\"value\\\"],[true,true,[23,12,[]],[23,0,[\\\"allowedRelationships\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[28,\\\"perform\\\",[[23,0,[\\\"loadContactOnRelationshipChangeTask\\\"]],[28,\\\"hash\\\",null,[[\\\"contactKey\\\",\\\"onLoadContact\\\"],[[23,11,[\\\"_data\\\",\\\"contactKey\\\"]],[23,30,[]]]]]],null],[23,11,[\\\"_data\\\",\\\"contactRelationship\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[false,\\\"close\\\",[23,12,[]],[23,10,[]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[10]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\"],[\\\"fas fa-plus\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"contacts/panels-new\\\",null,[[\\\"name\\\",\\\"relationships\\\",\\\"onCancel\\\",\\\"onAfterCreateRecordTask\\\"],[[23,11,[\\\"_data\\\",\\\"contact\\\"]],[28,\\\"array\\\",[[28,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"docType\\\"]],\\\"sales\\\"],null],\\\"customer\\\",\\\"supplier\\\"],null]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancelAddContact\\\",[23,9,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"addAndLoadContactAndUpdateDoInfo\\\",[23,9,[]],[23,11,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"and\\\",[[23,11,[\\\"_data\\\",\\\"contactRelationship\\\"]],[23,0,[\\\"showContactRelationship\\\"]]],null],[23,11,[\\\"_data\\\",\\\"savedContact\\\"]],[23,11,[\\\"hasBirthdayNotification\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,11,[\\\"_data\\\",\\\"contactRelationship\\\"]],[23,0,[\\\"showContactRelationship\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[23,11,[\\\"_data\\\",\\\"contactRelationship\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"savedContact\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,11,[\\\"_data\\\",\\\"savedContact\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasBirthdayNotification\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-cake-candles\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"date\\\",[[23,11,[\\\"_data\\\",\\\"birthday\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"date\\\",[24,[\\\"errors\\\"]],\\\"date\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateZ\\\",[23,11,[]],[23,11,[\\\"_data\\\",\\\"dateZ\\\"]],[23,12,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"reference\\\",[24,[\\\"errors\\\"]],\\\"ref\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"ref\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"sourceKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"required\\\"],[\\\"telephone\\\",[24,[\\\"errors\\\"]],\\\"telephone\\\",true]],{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,11,[\\\"_data\\\",\\\"billingTelephone\\\"]],[28,\\\"eq\\\",[[23,12,[]],false],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"placeholder\\\",\\\"translatePlaceholder\\\",\\\"value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"telephone\\\"]],false,[23,11,[\\\"_data\\\",\\\"billingTelephone\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"translatePlaceholder\\\",\\\"value\\\"],[true,false,[23,11,[\\\"_data\\\",\\\"telephone\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"transporters/contact\\\",[],[[\\\"@enableSelectPickupMethod\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onLoadContactPerson\\\"],[true,[23,12,[]],[23,11,[]],[23,22,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasDispatchProcess\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"expectedPrepareDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"expectedPrepareDateZ\\\",\\\"expected prepare date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.expectedPrepareDateZ\\\",[23,11,[]],[23,11,[\\\"_data\\\",\\\"expectedPrepareDateZ\\\"]],[23,12,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"expectedDispatchDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"expectedDispatchDateZ\\\",\\\"expected dispatch date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.expectedDispatchDateZ\\\",[23,11,[]],[23,11,[\\\"_data\\\",\\\"expectedDispatchDateZ\\\"]],[23,12,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"transporterArrivalDateZ\\\",\\\"customer expected arrival date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.transporterArrivalDateZ\\\",[23,11,[]],[23,11,[\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]],[23,12,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,34,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"delivery date\\\",[23,13,[]],\\\"deliveryDateOption\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,true,[23,12,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-deliverydatesoptions\\\"]],[23,11,[\\\"_data\\\",\\\"deliveryDateOption\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleDeliveryDateZ\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,29,[]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[[23,13,[]],\\\"deliveryDateZ\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.deliveryDateZ\\\",[23,11,[]],[23,11,[\\\"_data\\\",\\\"deliveryDateZ\\\"]],[23,12,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,35,[]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"validity date\\\",[23,13,[]],\\\"validityDateZ\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.validityDateZ\\\",[23,11,[]],[23,11,[\\\"_data\\\",\\\"validityDateZ\\\"]],[23,12,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-column\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--column-2\\\"]],[[\\\"@contentClassNames\\\",\\\"@hideTitleContainer\\\",\\\"@context\\\"],[\\\"u-no-padding\\\",true,\\\"docAdditional_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[23,36,[]],[28,\\\"eq\\\",[[23,0,[\\\"isEditingContactName\\\"]],false],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordians-list\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"payment\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],[24,[\\\"constants\\\",\\\"paymentMethods\\\",\\\"creditCard\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodCustomLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"concat\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodCustomLabel\\\"]],\\\" (\\\",[28,\\\"tt\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"tt\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"paymentMethodKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"paymentTermsKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[23,11,[\\\"_data\\\",\\\"paymentTerms\\\"]],false],[0,\\\".\\\\n                    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"paymentTerms\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"paymentDueDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"date\\\",[[23,11,[\\\"_data\\\",\\\"paymentDueDateZ\\\"]]],null],false],[0,\\\".\\\\n                    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"paymentDueDateZ\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"tt\\\",[\\\"account last 5 digits\\\"],null],false],[0,\\\": \\\"],[1,[23,11,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]],false],[0,\\\".\\\\n                    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"paymentLastFiveDigits\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasPaymentReminders\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"paymentRemindersAutoEmail\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"tt\\\",[\\\"automatically send payment reminders\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[23,11,[\\\"_data\\\",\\\"paymentRemindersAutoEmail\\\"]]],null],false],[0,\\\".\\\\n                      \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"paymentRemindersAutoEmail\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],[24,[\\\"constants\\\",\\\"paymentMethods\\\",\\\"creditCard\\\"]]],null],[23,11,[\\\"_data\\\",\\\"paymentMethodCustomLabel\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"concat\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodCustomLabel\\\"]],\\\" (\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\"],[[23,11,[]]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],[24,[\\\"constants\\\",\\\"paymentMethods\\\",\\\"creditCard\\\"]]],null],[23,11,[\\\"_data\\\",\\\"paymentMethodCustomLabel\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,\\\")\\\",false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"payment method\\\",[23,13,[]],\\\"paymentMethodKey\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\",\\\"prefix\\\",\\\"suffix\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\"],[true,true,[23,0,[\\\"isPaymentMethodReadonly\\\"]],true,[23,0,[\\\"filteredPaymentMethods\\\"]],\\\"_data.value\\\",\\\"_data.customLabel\\\",[23,11,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loadPaymentMethod\\\"],null],[23,0,[\\\"paymentMethodLabelPrefix\\\"]],[23,0,[\\\"paymentMethodLabelSuffix\\\"]],\\\"payment-methods-editor\\\",[28,\\\"hash\\\",null,[[\\\"docName\\\"],[[23,11,[\\\"_data\\\",\\\"docName\\\"]]]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodIsInstallments\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"installments\\\"],null],false],[0,\\\": \\\"],[1,[23,11,[\\\"_data\\\",\\\"paymentMethodInstallmentsCount\\\"]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[23,11,[\\\"_data\\\",\\\"virtualAccount\\\",\\\"virtualAccountNumber\\\"]],[23,0,[\\\"isCashBeforeDelivery\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"paymentMethodKey\\\"]],[24,[\\\"constants\\\",\\\"paymentMethods\\\",\\\"cashBeforeDelivery\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"account last 5 digits\\\",[23,13,[]],\\\"paymentLastFiveDigits\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,0,[\\\"isPaymentMethodReadonly\\\"]],[23,11,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"virtual account bank name\\\",[23,13,[]],\\\"virtualAccount\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[true,[28,\\\"tt\\\",[[23,11,[\\\"_data\\\",\\\"virtualAccount\\\",\\\"bankName\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"virtual account bank code\\\",[23,13,[]],\\\"virtualAccount\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[true,[23,11,[\\\"_data\\\",\\\"virtualAccount\\\",\\\"bankCode\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"virtual account number\\\",[23,13,[]],\\\"virtualAccount\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[true,[23,11,[\\\"_data\\\",\\\"virtualAccount\\\",\\\"virtualAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"hasPaymentTerms\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"payment terms\\\",[23,13,[]],\\\"paymentTermsKey\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"disabled\\\",\\\"list\\\",\\\"allowDynamicLabelChanges\\\",\\\"itemValueKey\\\",\\\"labelValueKey\\\",\\\"onSelect\\\",\\\"value\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"tab\\\"],[true,true,false,[23,0,[\\\"isPaymentMethodReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],false,\\\"_data._key\\\",\\\"_data.label\\\",[28,\\\"action\\\",[[23,0,[]],\\\"loadPaymentTerms\\\"],null],[23,11,[\\\"_data\\\",\\\"paymentTermsKey\\\"]],\\\"payment-terms-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"payment terms\\\",true]]],[24,[\\\"tab\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"start from\\\",[23,13,[]],\\\"paymentTermsFrom\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"translate\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms-from\\\"]],[23,11,[\\\"_data\\\",\\\"paymentTermsFrom\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"end on\\\",[23,13,[]],\\\"paymentTermsEnd\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"translate\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms-end\\\"]],[23,11,[\\\"_data\\\",\\\"paymentTermsEnd\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"months\\\",[23,13,[]],\\\"paymentTermsMonths\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[true,[23,11,[\\\"_data\\\",\\\"paymentTermsMonths\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"days\\\",[23,13,[]],\\\"paymentTermsDays\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[true,[23,11,[\\\"_data\\\",\\\"paymentTermsDays\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"paymentTermsLastDayOfMonthLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\"],[\\\"paymentTermsLastDayOfMonth\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                          \\\"],[1,[23,0,[\\\"paymentTermsLastDayOfMonthLabel\\\"]],false],[0,\\\"\\\\n                        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isCashBeforeDelivery\\\"]],[23,0,[\\\"hasVirtualAccountDetails\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"virtualAccount\\\",\\\"expiryDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"payment due date\\\",[23,13,[]],\\\"virtualAccount_paymentDueDateZ\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.virtualAccount.expiryDate\\\",[23,11,[]],[23,11,[\\\"_data\\\",\\\"virtualAccount\\\",\\\"expiryDate\\\"]],true]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@description\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"payment due date\\\",[23,0,[\\\"paymentTermsAutoCalculateLabel\\\"]],[23,13,[]],\\\"paymentDueDateZ\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.paymentDueDateZ\\\",[23,11,[]],[23,11,[\\\"_data\\\",\\\"paymentDueDateZ\\\"]],[23,0,[\\\"isPaymentMethodReadonly\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasPaymentReminders\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"automatically send payment reminders\\\",[23,13,[]],\\\"paymentRemindersAutoEmail\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\"],[true,true,[23,0,[\\\"isPaymentMethodReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-onOff\\\"]],[23,11,[\\\"_data\\\",\\\"paymentRemindersAutoEmail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"paymentData\\\",\\\"fromBankAccountNumber\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"customer bank account number\\\",\\\"fromBankAccountNumber\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[23,11,[\\\"_data\\\",\\\"paymentData\\\",\\\"fromBankAccountNumber\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"paymentData\\\",\\\"fromBankBranchCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    (\\\"],[1,[23,11,[\\\"_data\\\",\\\"paymentData\\\",\\\"fromBankBranchCode\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@waitBeforeClosingTask\\\"],[[23,0,[\\\"documentsService\\\",\\\"fetchAllDetailsFromGovTask\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"taxes\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[0,\\\"                / \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"listlabel\\\",null,[[\\\"list\\\",\\\"needle\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods\\\"]],[23,11,[\\\"_data\\\",\\\"taxMethodKey\\\"]]]]],false],[0,\\\".\\\\n                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"taxMethodKey\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]],\\\"b2b\\\"],null],[28,\\\"isEmptyProp\\\",[[23,11,[]],\\\"_data.twEInvoiceCarrierType\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[23,11,[\\\"_data\\\",\\\"taxNumber\\\"]],false],[0,\\\".\\\\n\\\\n                    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"taxNumber\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n                    \\\"],[1,[23,11,[\\\"_data\\\",\\\"companyName\\\"]],false],[0,\\\".\\\\n\\\\n                    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"companyName\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoice_carrier_type\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[23,11,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]]],null],false],[0,\\\".\\\\n\\\\n                    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"twEInvoiceCarrierId\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"listlabel\\\",null,[[\\\"list\\\",\\\"itemValueKey\\\",\\\"defaultValue\\\",\\\"needle\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-invoicing\\\"]],\\\"_data.value\\\",[28,\\\"tt\\\",[\\\"auto\\\"],null],[23,11,[\\\"_data\\\",\\\"autoPrintInvoices\\\"]]]]],false],[0,\\\".\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showSettingsAutoPrintInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"autoPrintInvoices\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"autoPrintInvoices\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"tax\\\",[23,13,[]],\\\"taxMethodKey\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"onSelect\\\",\\\"value\\\"],[true,true,[23,12,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,15,[]],[23,11,[\\\"_data\\\",\\\"taxMethodKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"tw_eInvoicing\\\",[24,[\\\"errors\\\"]],\\\"autoPrintInvoices\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,12,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-invoicing\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,11,[\\\"_data\\\",\\\"autoPrintInvoices\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"tw_eInvoice_carrier_type_optional\\\",[23,13,[]],\\\"twEInvoiceCarrierType\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"disabled\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\",\\\"onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-carrier-types\\\"]],[23,11,[]],[23,12,[]],\\\"_data.twEInvoiceCarrierType\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector list-selector--horizontal\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false,[28,\\\"fn\\\",[[23,0,[\\\"setupTaxNumberInputAutofocus\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]],\\\"b2b\\\"],null],[28,\\\"isEmptyProp\\\",[[23,11,[]],\\\"_data.twEInvoiceCarrierType\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"tax number\\\",[23,13,[]],\\\"taxNumber\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"extensions/apps/tw/e-invoices/tax-number-input\\\",[],[[\\\"@containerRowClassNames\\\",\\\"@isReadonly\\\",\\\"@modelData\\\",\\\"@setupTaxDetails\\\",\\\"@parentComponent\\\"],[[23,0,[\\\"taxNumberInputTaxId\\\"]],[23,12,[]],[23,11,[\\\"_data\\\"]],[28,\\\"fn\\\",[[23,11,[\\\"setupTaxDetails\\\"]]],null],[23,0,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"tw_eInvoice_company_name\\\",[23,13,[]],\\\"companyName\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"translatePlaceholder\\\",\\\"placeholder\\\",\\\"value\\\"],[[23,12,[]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"auto\\\"],null],\\\" \\\",[23,11,[\\\"_data\\\",\\\"contact\\\"]]],null],[23,11,[\\\"_data\\\",\\\"companyName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,11,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]],[28,\\\"not-eq\\\",[[23,11,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]],\\\"b2b\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\",\\\"formInputClassNames\\\"],[\\\"tw_eInvoice_carrier_id\\\",[23,13,[]],\\\"twEInvoiceCarrierId\\\",\\\"documents\\\",[23,0,[\\\"taxNumberInputTaxId\\\"]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"twEInvoiceCarrierId\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"allowPrintEInvoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"tw_eInvoices_print_allow_print\\\",[23,13,[]],\\\"twEInvoicePrint\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[[23,0,[\\\"shouldDisableTwEInvoicePrint\\\"]],[23,11,[\\\"_data\\\",\\\"twEInvoicePrint\\\"]],true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"shipping\\\"],null],false],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"transporterLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[23,11,[\\\"_data\\\",\\\"transporterLabel\\\"]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"transporterLabel\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"packages\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[\\\"packages\\\"],null],false],[0,\\\":\\\"],[1,[23,11,[\\\"_data\\\",\\\"packages\\\"]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"packages\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"waybill\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[\\\"waybill\\\"],null],false],[0,\\\":\\\"],[1,[23,11,[\\\"_data\\\",\\\"waybill\\\"]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"waybill\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"transporterAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[\\\"transporter account\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[23,11,[\\\"_data\\\",\\\"transporterAccount\\\"]]],[[\\\"translate\\\"],[[23,11,[\\\"translateAccountName\\\"]]]]],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"transporterAccountNumber\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[\\\"arrival date\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[23,11,[\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]]],null],false],[0,\\\".\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"transporterArrivalDateZ\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"transporterRegion\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[\\\"region code\\\"],null],false],[0,\\\":\\\"],[1,[23,11,[\\\"_data\\\",\\\"transporterRegion\\\"]],false],[0,\\\".\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"transporterRegionIsOuter\\\"]],true],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[8],[0,\\\" *加價地區\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"transporterRegion\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"transporterNotes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[23,11,[\\\"_data\\\",\\\"transporterNotes\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"transporterNotes\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"preferredDeliveryTime\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[[23,11,[\\\"_data\\\",\\\"preferredDeliveryTime\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"preferredDeliveryTime\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"hasAddressChangeRequired\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/error-message\\\",[],[[\\\"@hasIcon\\\",\\\"@label\\\",\\\"@message\\\"],[true,[23,11,[\\\"latestWaybillStatus\\\",\\\"message\\\"]],\\\"change convenience store\\\"]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"transporters/editor-component\\\",null,[[\\\"errors\\\",\\\"dontFetchRegionCode\\\",\\\"isReadonly\\\",\\\"disabled\\\",\\\"autoSetArrivalDate\\\",\\\"deliveryDate\\\",\\\"documentationResource\\\",\\\"hideTitleContainer\\\",\\\"transportersList\\\",\\\"transporter\\\",\\\"onLoadTransporter\\\",\\\"onUnloadTransporter\\\",\\\"onLoadContactPerson\\\",\\\"onLoadContactDetail\\\",\\\"onAddContactDetail\\\",\\\"docType\\\",\\\"docName\\\",\\\"model\\\"],[[23,13,[]],[23,27,[]],[23,12,[]],[23,12,[]],true,[23,11,[\\\"_data\\\",\\\"dateZ\\\"]],\\\"documents\\\",true,[23,26,[]],[23,25,[]],[23,24,[]],[23,23,[]],[23,22,[]],[23,21,[]],[23,20,[]],[23,19,[]],[23,18,[]],[23,11,[]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,28,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"commission\\\"],null],false],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,11,[\\\"_data\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[23,5,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"commissionTotal\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      : \\\"],[1,[28,\\\"currency\\\",[[23,11,[\\\"_data\\\",\\\"commissionTotal\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[23,13,[]],\\\"salesPersons\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"sales persons\\\",\\\"salesPersons\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"users/users-selector\\\",null,[[\\\"readonly\\\",\\\"disabled\\\",\\\"model\\\",\\\"salesPersons\\\",\\\"list\\\",\\\"allowIsAssociates\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\"],[[23,12,[]],[23,12,[]],[23,11,[]],[23,11,[\\\"_data\\\",\\\"salesPersons\\\"]],[23,14,[]],false,[28,\\\"action\\\",[[23,0,[]],\\\"assignSalesPerson\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unassignSalesPerson\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"channels\\\"],null],false],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[8],[1,[23,11,[\\\"_data\\\",\\\"source\\\"]],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"docName\\\"]],\\\"invoices\\\"],null],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"docType\\\"]],\\\"sales\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"p\\\",true],[8],[1,[23,11,[\\\"_data\\\",\\\"rewardData\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"shopDotComData\\\",\\\"rid\\\"]],[23,0,[\\\"shopDotComData\\\",\\\"clickId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"shop.com\\\"],null],false],[0,\\\"--\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"enabled\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"shopDotComData\\\",\\\"enabled\\\"]],false],[0,\\\",\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"shopDotComData\\\",\\\"commission\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"tt\\\",[\\\"commission\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"shopDotComData\\\",\\\"commission\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\":\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"shopDotComData\\\",\\\"errorCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"shop_dot_com_successful\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"shop_dot_com_unsuccessful\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"rid\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"shopDotComData\\\",\\\"rid\\\"]],false],[0,\\\",\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"click id\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"shopDotComData\\\",\\\"clickId\\\"]],false],[0,\\\",\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"advertiser id\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"shopDotComData\\\",\\\"advertiserId\\\"]],false],[0,\\\",\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"offer id\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"shopDotComData\\\",\\\"offerId\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@icon\\\",\\\"@tooltip\\\"],[\\\"source\\\",[23,13,[]],\\\"fas fa-exclamation-circle\\\",true]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"shop\\\",[23,13,[]],\\\"source\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[23,11,[\\\"_data\\\",\\\"sourceKey\\\"]],[23,11,[\\\"_data\\\",\\\"source\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,11,[\\\"_data\\\",\\\"sourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@hasSelected\\\",\\\"@isRunning\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@list\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\"],[false,[23,12,[]],[23,11,[\\\"_data\\\",\\\"sourceKey\\\"]],[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[22,\\\"shopsList\\\"],[28,\\\"perform\\\",[[24,[\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"resultsProperty\\\"],[\\\"channels/shop/campaigns\\\",[24,[\\\"campaignFilters\\\"]],\\\"shopsList\\\"]]],[23,11,[\\\"_data\\\",\\\"source\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadShopSource\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadShopSource\\\"],null],[23,12,[]],\\\"channels/shop/campaigns/search-results\\\",\\\"_data.name\\\",[23,11,[\\\"_data\\\",\\\"source\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"docName\\\"]],\\\"invoices\\\"],null],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"docType\\\"]],\\\"sales\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"rewardName\\\",[23,13,[]],\\\"reward\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@hasSelected\\\",\\\"@hasSelectedKey\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@isRunning\\\",\\\"@onDeselect\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@tagName\\\",\\\"@value\\\"],[false,[23,12,[]],[23,0,[\\\"rewardFilters\\\"]],true,[23,11,[\\\"_data\\\",\\\"rewardData\\\",\\\"_key\\\"]],\\\"_data._key\\\",[23,0,[\\\"rewardsList\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[28,\\\"or\\\",[[23,0,[\\\"fetchRewardTask\\\",\\\"isRunning\\\"]],[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"onResetRewardItem\\\"],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchRewardTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,0,[\\\"rewardName\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"onLoadRewardItem\\\"],null],\\\"search reward name\\\",[23,12,[]],\\\"_data.name\\\",\\\"span\\\",[23,0,[\\\"rewardName\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,11,[\\\"_data\\\",\\\"customCheckoutFieldsValues\\\"]],[23,11,[\\\"_data\\\",\\\"customCheckoutFieldsValues\\\",\\\"length\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"custom checkout fields\\\"],null],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"documents/editor-main/editor-custom-checkout-fields\\\",[],[[\\\"@customCheckoutFieldsValues\\\",\\\"@isReadonly\\\"],[[23,11,[\\\"_data\\\",\\\"customCheckoutFieldsValues\\\"]],[23,12,[]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-info/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-inventory-notification/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, _ramdaAdjunct) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let DocumentsEditorMainEditorInventoryNotification = _exports.default = (_dec = Ember._action, _class = class DocumentsEditorMainEditorInventoryNotification extends _component.default {\n    get modalDialogIsVisible() {\n      const model = this.args.model;\n      if (model) {\n        const detailsInventoryData = model.get('detailsInventoryData') || [];\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(detailsInventoryData)) {\n          const docType = model?._data?.docType;\n          const docName = model?._data?.docName;\n          if (docType !== 'purchases') {\n            return false;\n          }\n          if (docName === 'consignments') {\n            return true;\n          }\n          const paymentMethod = model?._data?.paymentMethodKey;\n          const hasNotModified = _ramdaAdjunct.default.isNilOrEmpty(model?._data?.modified);\n          if (hasNotModified && docName === 'invoices' && paymentMethod !== 'consignment') {\n            // only show when no key. ie when saving for the first time only\n            return true;\n          }\n          return false;\n        }\n      }\n      return false;\n    }\n    onCloseDetailsInventoryDataDialog(onCloseDialogAction) {\n      const model = this.args.model || {};\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(model)) {\n        const detailsInventoryData = model.get('detailsInventoryData') || [];\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(detailsInventoryData)) {\n          model.set('detailsInventoryData', []);\n        }\n      }\n      if (this.args.onDone) {\n        this.args.onDone();\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onCloseDetailsInventoryDataDialog\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"onCloseDetailsInventoryDataDialog\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/editor-main/editor-inventory-notification/editor-inventory-notification-detail/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 DocumentsEditorMainEditorInventoryNotificationEditorInventoryNotificationDetail = _exports.default = (_dec = Ember.inject.service, _class = class DocumentsEditorMainEditorInventoryNotificationEditorInventoryNotificationDetail extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"big\", _descriptor, this);\n    }\n    get orderedQty() {\n      let orderedQty = 0;\n      const model = this.args.model;\n      if (model) {\n        const details = model?._data?.details || [];\n        const detailInventoryData = this.args.detailInventoryData || {};\n        const itemKey = detailInventoryData?._key || '';\n        const detail = R.find(R.pathEq(['_data', 'itemKey'], itemKey))(details);\n        orderedQty = detail?._data?.qty || 0;\n      }\n      return orderedQty;\n    }\n\n    // get undispatchedQty () {\n    //   const undispatchedQtyBig = this.big.newBig(0)\n\n    //   const detailInventoryData = this.args.detailInventoryData || {}\n\n    //   const salesInvoicesUndispatchedQty = detailInventoryData?.inventory?.salesInvoicesUndispatchedQty || 0\n    //   const salesConsignmentsUndispatchedQty = detailInventoryData?.inventory?.salesConsignmentsUndispatchedQty || 0\n\n    //   return undispatchedQtyBig.plus(salesInvoicesUndispatchedQty).plus(salesConsignmentsUndispatchedQty).toFixed(0)\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/documents/editor-main/editor-inventory-notification/editor-inventory-notification-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Db7mnabh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@detailInventoryData\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"ordered qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"sales\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"undispatched\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"sales consignment\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"undispatched\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"sales\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"consignments\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"sales\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"orders\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"pending\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"purchases\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"consignments\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"purchases\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"orders\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"pending\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inventory available\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[23,2,[\\\"name\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"orderedQty\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"salesInvoicesUndispatchedQty\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"salesConsignmentsUndispatchedQty\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"salesOnConsignmentQty\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"salesOrdersPendingQty\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"purchasesOnConsignmentQty\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"purchasesOrdersPendingQty\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"availableQty\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-inventory-notification/editor-inventory-notification-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/editor-inventory-notification/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ixDFjjCl\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"detailInventoryData\\\",\\\"index\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onClose\\\"],[\\\"inventory notification\\\",[23,0,[\\\"modalDialogIsVisible\\\"]],false,[28,\\\"fn\\\",[[23,0,[\\\"onCloseDetailsInventoryDataDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"detailsInventoryData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"documents/editor-main/editor-inventory-notification/editor-inventory-notification-detail\\\",[],[[\\\"@model\\\",\\\"@detailInventoryData\\\",\\\"@index\\\"],[[23,4,[]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[28,\\\"fn\\\",[[23,0,[\\\"onCloseDetailsInventoryDataDialog\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/editor-inventory-notification/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/editor-main/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WFPcKktQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"eInvoiceManager\\\",\\\"toMergeWithModel\\\",\\\"group\\\",\\\"doc\\\",\\\"detail\\\",\\\"index\\\",\\\"doc\\\",\\\"detail\\\",\\\"index\\\",\\\"group\\\",\\\"index\\\",\\\"detail\\\",\\\"detail\\\",\\\"index\\\",\\\"conflictCategory\\\",\\\"isTooltipVisible\\\",\\\"notification\\\",\\\"@onDisplay\\\",\\\"@model\\\",\\\"@toMergeWithModels\\\",\\\"@tabParent\\\",\\\"@posGridClassNames\\\",\\\"@tab\\\",\\\"@isPosFullScreenMode\\\",\\\"@onTogglePosFullscreenMode\\\",\\\"@onAddItemToCartTask\\\",\\\"@onRemoveItemFromCart\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"setupListsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"data-form-id\\\",[23,22,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[23,24,[\\\"isPos\\\"]],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-grid__header-title products-display__name u-header-2\\\"],[8],[0,\\\"\\\\n        #\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isQuickLinkDoc\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"new\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"create from\\\"],null],false],[0,\\\": #\\\"],[1,[22,\\\"quickLinkFromDocNo\\\"],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[24,[\\\"quickLinkFromDocType\\\"]],\\\"-\\\",[24,[\\\"quickLinkFromDocName\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[24,[\\\"model\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,22,[\\\"hasNotifications\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,19,[]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[23,22,[\\\"notifications\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"html-safe\\\",[[23,20,[\\\"_data\\\",\\\"message\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[20]},null]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"]],\\\"parameters\\\":[19]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section u-section--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"new\\\"],null],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[24,[\\\"docType\\\"]],\\\"-\\\",[24,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-grid__header-title\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"documents/table-view/doc-row/related-docs\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@isDocView\\\",\\\"@isHideGroupsDetails\\\"],[[22,\\\"tab\\\"],[22,\\\"model\\\"],true,true]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isQuickLinkDoc\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__info-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,24,[\\\"isPos\\\"]],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[23,25,[]]]]],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n              \\\"],[5,\\\"documents/pos/view\\\",[],[[\\\"@tab\\\",\\\"@tabParent\\\",\\\"@isPosFullScreenMode\\\",\\\"@onTogglePosFullscreenMode\\\",\\\"@onAddItemToCartTask\\\",\\\"@onRemoveItemFromCart\\\",\\\"@model\\\",\\\"@documentTotals\\\",\\\"@onSubmitFinalTask\\\"],[[23,26,[]],[23,24,[]],[23,27,[]],[23,28,[]],[23,29,[]],[23,30,[]],[23,22,[]],[28,\\\"hash\\\",null,[[\\\"showTaxes\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isSplitting\\\",\\\"isMerging\\\",\\\"hasGroups\\\",\\\"hasGroupsReturns\\\",\\\"onSumTotals\\\",\\\"showRefundWorkflow\\\"],[true,[24,[\\\"isEditing\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[28,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null],true,false],null],[28,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isReadonly\\\"]],[23,0,[\\\"hasGroupsReturns\\\"]]],null],true,false],null],[28,\\\"action\\\",[[23,0,[]],\\\"sumTotals\\\"],null],[24,[\\\"showRefundWorkflow\\\"]]]]],[28,\\\"perform\\\",[[24,[\\\"onSubmitTask\\\"]],[28,\\\"hash\\\",null,[[\\\"appendPath\\\",\\\"onAfter\\\"],[[24,[\\\"submitFinalAppendPath\\\"]],[23,0,[\\\"onAfter\\\"]]]]]],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"documents/editor-main/editor-info\\\",[],[[\\\"@tabParent\\\",\\\"@tab\\\",\\\"@adapterName\\\",\\\"@allowTwInvoicing\\\",\\\"@associatesContacts\\\",\\\"@contactsList\\\",\\\"@docName\\\",\\\"@docType\\\",\\\"@dontFetchRegionCode\\\",\\\"@errors\\\",\\\"@hasCommission\\\",\\\"@hasDeliveryDate\\\",\\\"@hasLinkConflicts\\\",\\\"@hasManagePods\\\",\\\"@hasSalesPersons\\\",\\\"@hasSingleDeliveryDate\\\",\\\"@hasTaxNumber\\\",\\\"@hasValidityDate\\\",\\\"@isDiscountRate\\\",\\\"@isEditing\\\",\\\"@isMerging\\\",\\\"@isQuickLinkDoc\\\",\\\"@isReadonly\\\",\\\"@isSplitting\\\",\\\"@linksList\\\",\\\"@model\\\",\\\"@onUpdateDocInfoTask\\\",\\\"@onLoadContactAndUpdateDoInfo\\\",\\\"@onLoadContact\\\",\\\"@onUnloadContact\\\",\\\"@onLoadContactPerson\\\",\\\"@onLoadContactDetail\\\",\\\"@onAddContactDetail\\\",\\\"@onLoadTransporter\\\",\\\"@onUnloadTransporter\\\",\\\"@onRemoveAllDetails\\\",\\\"@onSumTotals\\\",\\\"@onSubmitTask\\\",\\\"@onSubmitDraftTask\\\",\\\"@productsList\\\",\\\"@recalculateTotals\\\",\\\"@selectedContact\\\",\\\"@selectedPaymentMethods\\\",\\\"@selectedTransporter\\\",\\\"@transportersList\\\",\\\"@requireContact\\\"],[[22,\\\"tabParent\\\"],[22,\\\"tab\\\"],[22,\\\"adapterName\\\"],[22,\\\"allowTwInvoicing\\\"],[22,\\\"associatesContacts\\\"],[22,\\\"contactsList\\\"],[22,\\\"docName\\\"],[22,\\\"docType\\\"],[22,\\\"dontFetchRegionCode\\\"],[22,\\\"errors\\\"],[22,\\\"hasCommission\\\"],[22,\\\"hasDeliveryDate\\\"],[22,\\\"hasLinkConflicts\\\"],[22,\\\"hasManagePods\\\"],[22,\\\"hasSalesPersons\\\"],[22,\\\"hasSingleDeliveryDate\\\"],[22,\\\"hasTaxNumber\\\"],[22,\\\"hasValidityDate\\\"],[22,\\\"isDiscountRate\\\"],[22,\\\"isEditing\\\"],[22,\\\"isMerging\\\"],[22,\\\"isQuickLinkDoc\\\"],[22,\\\"isReadonly\\\"],[22,\\\"isSplitting\\\"],[22,\\\"linksList\\\"],[22,\\\"model\\\"],[22,\\\"onUpdateDocInfoTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"loadContactAndUpdateDoInfo\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadContact\\\",[24,[\\\"docType\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadContact\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadContactPerson\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadContactDetail\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"addContactDetail\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadTransporter\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeAllDetails\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"sumTotals\\\"],null],[22,\\\"onSubmitTask\\\"],[22,\\\"onSubmitDraftTask\\\"],[22,\\\"productsList\\\"],[22,\\\"recalculateTotals\\\"],[22,\\\"selectedContact\\\"],[22,\\\"selectedPaymentMethods\\\"],[22,\\\"selectedTransporter\\\"],[22,\\\"transportersList\\\"],[22,\\\"requireContact\\\"]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"requireContact\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\",\\\"@hasSectionWrapper\\\"],[[22,\\\"isVisibleLinkConflictsModal\\\"],true,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"isVisibleLinkConflictsModal\\\"]]],null]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"hasLinkConflicts\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"documents/links-conflict\\\",null,[[\\\"model\\\",\\\"conflictCategory\\\",\\\"onSelectConflictResolution\\\"],[[24,[\\\"model\\\"]],[23,18,[]],[28,\\\"action\\\",[[23,0,[]],\\\"selectConflictResolution\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[18]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"loadLinked\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[23,24,[\\\"isPos\\\"]],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__details-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-overflow-scroll\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"documents/editor-main/editor-details-th\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"onQuickLinkAllQtys\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"quickLinkAllQtys\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[28,\\\"documents/editor-main/editor-details\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"docType\\\",\\\"docName\\\",\\\"adapterName\\\",\\\"isSplitting\\\",\\\"isQuickLinkDoc\\\",\\\"hideOriginalQty\\\",\\\"isMerging\\\",\\\"toMergeWithModels\\\",\\\"isReadonly\\\",\\\"hasLinkConflicts\\\",\\\"recalculateTotals\\\",\\\"selectedContact\\\",\\\"contactsList\\\",\\\"contactsDetailsList\\\",\\\"productsList\\\",\\\"searchProductsTask\\\",\\\"productsFilters\\\",\\\"linksList\\\",\\\"selectedPaymentMethods\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"onAddNewDetail\\\",\\\"onResetDetail\\\",\\\"onRemoveDetail\\\",\\\"model\\\",\\\"detail\\\",\\\"errors\\\",\\\"errorIndex\\\",\\\"dropPosition\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"onDragOver\\\",\\\"onDrop\\\",\\\"onSumTotals\\\",\\\"onPreLoadLinkedDetails\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"docType\\\"]],[24,[\\\"docName\\\"]],[24,[\\\"adapterName\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"toMergeWithModels\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"hasLinkConflicts\\\"]],[24,[\\\"recalculateTotals\\\"]],[24,[\\\"selectedContact\\\"]],[24,[\\\"contactsList\\\"]],[24,[\\\"contactsDetailsList\\\"]],[24,[\\\"productsList\\\"]],[23,0,[\\\"searchProductsTask\\\"]],[23,0,[\\\"productsFilters\\\"]],[24,[\\\"linksList\\\"]],[24,[\\\"selectedPaymentMethods\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"onAddNewDetail\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resetDetail\\\",[23,16,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeDetail\\\",[23,16,[]]],null],[24,[\\\"model\\\"]],[23,16,[]],[24,[\\\"errors\\\"]],[23,17,[]],[24,[\\\"dropPosition\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dragStartItem\\\",[23,16,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragEndItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragOverItem\\\",[23,16,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"reorderDetails\\\",[23,16,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"sumTotals\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"preLoadLinkedDetails\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[16,17]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasDiscountAmount\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"documents/editor-main/editor-details-line\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"qty\\\",\\\"code\\\",\\\"description\\\",\\\"inclusiveAmount\\\",\\\"exclusiveAmount\\\",\\\"negative\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\"]],\\\"\\\",\\\"\\\",[28,\\\"html-safe\\\",[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"discount\\\"],null],\\\": \\\",[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"discountAmount\\\"]]],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"tax_inclusive\\\"],null],\\\")\\\"],null]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"discInclTotal\\\"]],[24,[\\\"model\\\",\\\"calculatedDiscExclTotal\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasRewards\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"documents/editor-main/editor-details-line\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"qty\\\",\\\"code\\\",\\\"description\\\",\\\"inclusiveAmount\\\",\\\"exclusiveAmount\\\",\\\"negative\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\"]],\\\"\\\",\\\"\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"points spent\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]]]]],\\\")\\\"],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"rewardInclTotal\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"rewardExclTotal\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]],[24,[\\\"isReadonly\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,13,[\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"documents/editor-main/editor-details\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"docType\\\",\\\"docName\\\",\\\"adapterName\\\",\\\"isSplitting\\\",\\\"isQuickLinkDoc\\\",\\\"hideOriginalQty\\\",\\\"isMerging\\\",\\\"toMergeWithModels\\\",\\\"isReadonly\\\",\\\"hasLinkConflicts\\\",\\\"recalculateTotals\\\",\\\"selectedContact\\\",\\\"contactsList\\\",\\\"contactsDetailsList\\\",\\\"productsList\\\",\\\"linksList\\\",\\\"searchProductsTask\\\",\\\"productsFilters\\\",\\\"selectedPaymentMethods\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"onAddNewDetail\\\",\\\"onResetDetail\\\",\\\"onRemoveDetail\\\",\\\"model\\\",\\\"detail\\\",\\\"errors\\\",\\\"errorIndex\\\",\\\"dropPosition\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"onDragOver\\\",\\\"onDrop\\\",\\\"onSumTotals\\\",\\\"onPreLoadLinkedDetails\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"docType\\\"]],[24,[\\\"docName\\\"]],[24,[\\\"adapterName\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"toMergeWithModels\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"hasLinkConflicts\\\"]],[24,[\\\"recalculateTotals\\\"]],[24,[\\\"selectedContact\\\"]],[24,[\\\"contactsList\\\"]],[24,[\\\"contactsDetailsList\\\"]],[24,[\\\"productsList\\\"]],[24,[\\\"linksList\\\"]],[23,0,[\\\"searchProductsTask\\\"]],[23,0,[\\\"productsFilters\\\"]],[24,[\\\"selectedPaymentMethods\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"onAddNewDetail\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resetDetail\\\",[23,15,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeDetail\\\",[23,15,[]]],null],[23,13,[]],[23,15,[]],[24,[\\\"errors\\\"]],[23,14,[]],[24,[\\\"dropPosition\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dragStartItem\\\",[23,15,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragEndItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragOverItem\\\",[23,15,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"reorderDetails\\\",[23,15,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"sumTotals\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"preLoadLinkedDetails\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[15]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"hasDiscountAmount\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"documents/editor-main/editor-details-line\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"qty\\\",\\\"code\\\",\\\"description\\\",\\\"inclusiveAmount\\\",\\\"exclusiveAmount\\\",\\\"negative\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[23,13,[]],\\\"\\\",\\\"\\\",[28,\\\"html-safe\\\",[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"discount\\\"],null],\\\": \\\",[28,\\\"currency\\\",[[23,13,[\\\"_data\\\",\\\"discountAmount\\\"]]],null]],null]],null],[23,13,[\\\"_data\\\",\\\"discInclTotal\\\"]],[23,13,[\\\"calculatedDiscExclTotal\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"hasRewards\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"documents/editor-main/editor-details-line\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"qty\\\",\\\"code\\\",\\\"description\\\",\\\"inclusiveAmount\\\",\\\"exclusiveAmount\\\",\\\"negative\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[23,13,[]],\\\"\\\",\\\"\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"points spent\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,13,[\\\"_data\\\",\\\"rewardPointApplied\\\"]]]]],\\\")\\\"],null],[23,13,[\\\"_data\\\",\\\"rewardInclTotal\\\"]],[23,13,[\\\"_data\\\",\\\"rewardExclTotal\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[13,14]},null]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__details-container documents__totals-container\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-third-width\\\"],[8],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-third-width\\\"],[8],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"documents/document-totals\\\",null,[[\\\"showTaxes\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isSplitting\\\",\\\"isMerging\\\",\\\"hasGroups\\\",\\\"hasGroupsReturns\\\",\\\"model\\\",\\\"onSumTotals\\\",\\\"showRefundWorkflow\\\"],[true,[24,[\\\"isEditing\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[28,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null],true,false],null],[28,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isReadonly\\\"]],[23,0,[\\\"hasGroupsReturns\\\"]]],null],true,false],null],[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"sumTotals\\\"],null],[24,[\\\"showRefundWorkflow\\\"]]]]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"returnDocs\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"returnDocs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-returns\\\"],null]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"documents/editor-main/editor-details-th\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"onQuickLinkAllQtys\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"quickLinkAllQtys\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,10,[\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"documents/editor-main/editor-details\\\",null,[[\\\"isReturnsDetail\\\",\\\"tab\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"docType\\\",\\\"docName\\\",\\\"adapterName\\\",\\\"isSplitting\\\",\\\"isQuickLinkDoc\\\",\\\"hideOriginalQty\\\",\\\"isMerging\\\",\\\"toMergeWithModels\\\",\\\"isReadonly\\\",\\\"hasLinkConflicts\\\",\\\"recalculateTotals\\\",\\\"selectedContact\\\",\\\"contactsList\\\",\\\"contactsDetailsList\\\",\\\"productsList\\\",\\\"searchProductsTask\\\",\\\"productsFilters\\\",\\\"linksList\\\",\\\"selectedPaymentMethods\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"onAddNewDetail\\\",\\\"model\\\",\\\"onSumTotals\\\",\\\"detail\\\",\\\"errors\\\",\\\"errorIndex\\\",\\\"dropPosition\\\"],[true,[24,[\\\"tab\\\"]],false,false,[24,[\\\"docType\\\"]],[24,[\\\"docName\\\"]],[24,[\\\"adapterName\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"toMergeWithModels\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"hasLinkConflicts\\\"]],[24,[\\\"recalculateTotals\\\"]],[24,[\\\"selectedContact\\\"]],[24,[\\\"contactsList\\\"]],[24,[\\\"contactsDetailsList\\\"]],[24,[\\\"productsList\\\"]],[23,0,[\\\"searchProductsTask\\\"]],[23,0,[\\\"productsFilters\\\"]],[24,[\\\"linksList\\\"]],[24,[\\\"selectedPaymentMethods\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"onAddNewDetail\\\"]],[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"sumTotals\\\"],null],[23,11,[]],[24,[\\\"errors\\\"]],[23,12,[]],[24,[\\\"dropPosition\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[11,12]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,10,[\\\"docData\\\",\\\"_data\\\",\\\"discountAmount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"documents/editor-main/editor-details-line\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"qty\\\",\\\"code\\\",\\\"description\\\",\\\"inclusiveAmount\\\",\\\"exclusiveAmount\\\",\\\"negative\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[23,10,[\\\"docData\\\"]],\\\"\\\",\\\"\\\",[28,\\\"html-safe\\\",[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"discount\\\"],null],\\\": \\\",[28,\\\"currency\\\",[[23,10,[\\\"docData\\\",\\\"_data\\\",\\\"discountAmount\\\"]]],null]],null]],null],[23,10,[\\\"docData\\\",\\\"_data\\\",\\\"discInclTotal\\\"]],[23,10,[\\\"docData\\\",\\\"calculatedDiscExclTotal\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,10,[\\\"docData\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"documents/editor-main/editor-details-line\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"qty\\\",\\\"code\\\",\\\"description\\\",\\\"inclusiveAmount\\\",\\\"exclusiveAmount\\\",\\\"negative\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[23,10,[\\\"docData\\\"]],\\\"\\\",\\\"\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"return points spent\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,10,[\\\"docData\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]]]]],\\\")\\\"],null],[23,10,[\\\"docData\\\",\\\"_data\\\",\\\"rewardInclTotal\\\"]],[23,10,[\\\"docData\\\",\\\"_data\\\",\\\"rewardExclTotal\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-third-width\\\"],[8],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-third-width\\\"],[8],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"documents/document-totals\\\",null,[[\\\"showTaxes\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isSplitting\\\",\\\"isMerging\\\",\\\"model\\\",\\\"onSumTotals\\\"],[true,[24,[\\\"isEditing\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[23,10,[\\\"docData\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"sumTotals\\\"],null]]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]],[24,[\\\"isReadonly\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[\\\"returnDocs\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,6,[\\\"returnDocs\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,6,[\\\"_data\\\",\\\"docType\\\"]],\\\"-returns\\\"],null]],null],false],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[1,[28,\\\"documents/editor-main/editor-details-th\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"onQuickLinkAllQtys\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[23,6,[]],[28,\\\"action\\\",[[23,0,[]],\\\"quickLinkAllQtys\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,7,[\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"documents/editor-main/editor-details\\\",null,[[\\\"isReturnsDetail\\\",\\\"tab\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"docType\\\",\\\"docName\\\",\\\"adapterName\\\",\\\"isSplitting\\\",\\\"isQuickLinkDoc\\\",\\\"hideOriginalQty\\\",\\\"isMerging\\\",\\\"toMergeWithModels\\\",\\\"isReadonly\\\",\\\"hasLinkConflicts\\\",\\\"recalculateTotals\\\",\\\"selectedContact\\\",\\\"contactsList\\\",\\\"contactsDetailsList\\\",\\\"productsList\\\",\\\"searchProductsTask\\\",\\\"productsFilters\\\",\\\"linksList\\\",\\\"selectedPaymentMethods\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"onAddNewDetail\\\",\\\"model\\\",\\\"detail\\\",\\\"errors\\\",\\\"errorIndex\\\",\\\"dropPosition\\\"],[true,[24,[\\\"tab\\\"]],false,false,[24,[\\\"docType\\\"]],[24,[\\\"docName\\\"]],[24,[\\\"adapterName\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"toMergeWithModels\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"hasLinkConflicts\\\"]],[24,[\\\"recalculateTotals\\\"]],[24,[\\\"selectedContact\\\"]],[24,[\\\"contactsList\\\"]],[24,[\\\"contactsDetailsList\\\"]],[24,[\\\"productsList\\\"]],[23,0,[\\\"searchProductsTask\\\"]],[23,0,[\\\"productsFilters\\\"]],[24,[\\\"linksList\\\"]],[24,[\\\"selectedPaymentMethods\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"onAddNewDetail\\\"]],[23,6,[]],[23,8,[]],[24,[\\\"errors\\\"]],[23,9,[]],[24,[\\\"dropPosition\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8,9]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,7,[\\\"docData\\\",\\\"_data\\\",\\\"discountAmount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"documents/editor-main/editor-details-line\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"qty\\\",\\\"code\\\",\\\"description\\\",\\\"inclusiveAmount\\\",\\\"exclusiveAmount\\\",\\\"negative\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[23,7,[\\\"docData\\\"]],\\\"\\\",\\\"\\\",[28,\\\"html-safe\\\",[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"discount\\\"],null],\\\": \\\",[28,\\\"currency\\\",[[23,7,[\\\"docData\\\",\\\"_data\\\",\\\"discountAmount\\\"]]],null]],null]],null],[23,7,[\\\"docData\\\",\\\"_data\\\",\\\"discInclTotal\\\"]],[23,7,[\\\"docData\\\",\\\"calculatedDiscExclTotal\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,7,[\\\"docData\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"documents/editor-main/editor-details-line\\\",null,[[\\\"tab\\\",\\\"isNew\\\",\\\"hasDeliveryDate\\\",\\\"hasSingleDeliveryDate\\\",\\\"hasValidityDate\\\",\\\"hasSalesPersons\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"isSplitting\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"isMerging\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"qty\\\",\\\"code\\\",\\\"description\\\",\\\"inclusiveAmount\\\",\\\"exclusiveAmount\\\",\\\"negative\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"hasDeliveryDate\\\"]],[24,[\\\"hasSingleDeliveryDate\\\"]],[24,[\\\"hasValidityDate\\\"]],[24,[\\\"hasSalesPersons\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"isReadonly\\\"]],[23,7,[\\\"docData\\\"]],\\\"\\\",\\\"\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"return points spent\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,7,[\\\"docData\\\",\\\"_data\\\",\\\"rewardPointApplied\\\"]]]]],\\\")\\\"],null],[23,7,[\\\"docData\\\",\\\"_data\\\",\\\"rewardInclTotal\\\"]],[23,7,[\\\"docData\\\",\\\"_data\\\",\\\"rewardExclTotal\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-third-width\\\"],[8],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-third-width\\\"],[8],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                          \\\"],[1,[28,\\\"documents/document-totals\\\",null,[[\\\"showTaxes\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isSplitting\\\",\\\"isMerging\\\",\\\"model\\\",\\\"hasGroups\\\",\\\"onSumTotals\\\"],[true,[24,[\\\"isEditing\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[23,7,[\\\"docData\\\"]],[28,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null],true,false],null],[28,\\\"action\\\",[[23,0,[]],\\\"sumTotals\\\"],null]]]],false],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\"],[[24,[\\\"errors\\\"]],\\\"details\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents__details-container documents__totals-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isSplitting\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"notes\\\",\\\"notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[23,22,[\\\"_data\\\",\\\"notes\\\"]],\\\"div\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],4,[23,22,[\\\"_data\\\",\\\"notes\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,23,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,23,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"notes\\\"],null],\\\": #\\\",[23,5,[\\\"_data\\\",\\\"docNo\\\"]]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[true,4,[23,5,[\\\"_data\\\",\\\"notes\\\"]]]]],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\"],[\\\"terms\\\",\\\"terms\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@selectedLabel\\\",\\\"@translate\\\"],[[23,0,[\\\"isReadonly\\\"]],\\\"\\\",[23,0,[\\\"docTermsList\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loadTerms\\\"],null],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"selectedTermLabel\\\"]],false]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[23,22,[\\\"_data\\\",\\\"terms\\\"]],\\\"div\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],4,[23,22,[\\\"_data\\\",\\\"terms\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,22,[\\\"allCollectOnBehalfDetailsForPrint\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"documents/document-print/footer-collect-on-behalf\\\",[],[[\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[[23,0,[\\\"isEditing\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,22,[]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"isEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"documents/editor-main/editor-inventory-notification\\\",[],[[\\\"@model\\\"],[[23,22,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"documents-grid__footer-spacer\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"isEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"documents/editor-main/editor-btns-editing\\\",null,[[\\\"tab\\\",\\\"docType\\\",\\\"docName\\\",\\\"model\\\",\\\"printBtnsComponent\\\",\\\"printBadge\\\",\\\"selectedContact\\\",\\\"relatedComments\\\",\\\"email\\\",\\\"sendEmailTask\\\",\\\"isQuickLinkDoc\\\",\\\"quickLinkQtyLabel\\\",\\\"isDraft\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"isAllowPrintInvoice\\\",\\\"isSplitting\\\",\\\"isMerging\\\",\\\"toMergeWithModels\\\",\\\"isReadonly\\\",\\\"onToggleIsVoidTask\\\",\\\"onToggleIsVoidStatus\\\",\\\"onEdit\\\",\\\"bulkInsertInstructions\\\",\\\"onBulkInsertDetailsTask\\\",\\\"onSetupSendEmail\\\",\\\"onClearSendEmail\\\",\\\"onSendEmail\\\",\\\"onCancelSendEmail\\\",\\\"onPreSubmit\\\",\\\"onSubmitTask\\\",\\\"onSubmitDraftTask\\\",\\\"onSubmitFinalTask\\\",\\\"onCancel\\\",\\\"onQuickLinkAllQtys\\\",\\\"onAfter\\\",\\\"onAfterReturns\\\",\\\"requireContact\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"docType\\\"]],[24,[\\\"docName\\\"]],[24,[\\\"model\\\"]],[24,[\\\"printBtnsComponent\\\"]],[24,[\\\"printBadge\\\"]],[24,[\\\"selectedContact\\\"]],[24,[\\\"relatedComments\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"isDraft\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isAllowPrintInvoice\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"toMergeWithModels\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"toggleIsVoidTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleIsVoidStatus\\\"],null],[24,[\\\"onEdit\\\"]],[23,0,[\\\"bulkInsertInstructions\\\"]],[24,[\\\"onBulkInsertDetailsTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setupSendEmail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"clearSendEmail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"sendEmail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancelSendEmail\\\"],null],[24,[\\\"onPreSubmit\\\"]],[24,[\\\"onSubmitTask\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSubmitTask\\\"]],[28,\\\"hash\\\",null,[[\\\"appendPath\\\",\\\"onAfter\\\"],[[24,[\\\"submitDraftAppendPath\\\"]],[23,0,[\\\"onAfter\\\"]]]]]],null],[28,\\\"perform\\\",[[24,[\\\"onSubmitTask\\\"]],[28,\\\"hash\\\",null,[[\\\"appendPath\\\",\\\"onAfter\\\"],[[24,[\\\"submitFinalAppendPath\\\"]],[23,0,[\\\"onAfter\\\"]]]]]],null],[24,[\\\"onCancel\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"quickLinkAllQtys\\\"],null],[24,[\\\"onAfter\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterReturns\\\"],null],[23,0,[\\\"requireContact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"documents/editor-main/editor-btns-display\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"printBtnsComponent\\\",\\\"printBadge\\\",\\\"selectedContact\\\",\\\"relatedComments\\\",\\\"email\\\",\\\"sendEmailTask\\\",\\\"isQuickLinkDoc\\\",\\\"isDraft\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"isSplitting\\\",\\\"isMerging\\\",\\\"toMergeWithModels\\\",\\\"isReadonly\\\",\\\"onToggleIsVoidTask\\\",\\\"onEdit\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"isAllowPrintInvoice\\\",\\\"isAutoCancelInvoice\\\",\\\"onSetupSendEmail\\\",\\\"onSetupSendPaymentReminderEmail\\\",\\\"onClearSendEmail\\\",\\\"onSendEmail\\\",\\\"onCancelSendEmail\\\",\\\"onAfter\\\",\\\"onAfterReturns\\\",\\\"requireContact\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\"]],[24,[\\\"printBtnsComponent\\\"]],[24,[\\\"printBadge\\\"]],[24,[\\\"selectedContact\\\"]],[24,[\\\"relatedComments\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[24,[\\\"isQuickLinkDoc\\\"]],[24,[\\\"isDraft\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isSplitting\\\"]],[24,[\\\"isMerging\\\"]],[24,[\\\"toMergeWithModels\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"toggleIsVoidTask\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"onDash\\\"]],[23,21,[]],[24,[\\\"isAllowPrintInvoice\\\"]],[24,[\\\"isAutoCancelInvoice\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setupSendEmail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"setupSendPaymentReminderEmail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"clearSendEmail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"sendEmail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancelSendEmail\\\"],null],[24,[\\\"onAfter\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterReturns\\\"],null],[23,0,[\\\"requireContact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showCancelInvoiceModal\\\"]]],null,{\\\"statements\\\":[[4,\\\"extensions/apps/tw/e-invoices/print-manager\\\",null,[[\\\"document\\\",\\\"autoFetch\\\"],[[24,[\\\"model\\\"]],true]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/cancel-btn\\\",null,[[\\\"model\\\",\\\"invoices\\\",\\\"modalDialogIsVisible\\\",\\\"onRemoveEInvoiceTask\\\"],[[24,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"successfulEInvoices\\\"]],[23,0,[\\\"showCancelInvoiceModal\\\"]],[23,4,[\\\"removeEInvoiceTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"tabParent\\\",\\\"isPos\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"pos-footer-total\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/editor-main/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, R_) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _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 DocumentsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('products'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _class = class DocumentsFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"campaignFilters\", _descriptor7, this);\n      _initializerDefineProperty(this, \"shopNoneToggle\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dispatchAdditionalSortFilter\", _descriptor9, this);\n      this.setup();\n    }\n    setup() {\n      this.crud.addLists(this, [\n      // {\n      //   name: 'taxes',\n      //   appendPath: 'products'\n      // },\n      // 'filters/count',\n      // 'products/brands',\n      // 'products/lists/tags',\n      // 'products/lists/display-tags',\n      // 'products/lists/product-display-position',\n      // 'products/lists/types',\n      // 'products/lists/setTypes',\n      // 'products/lists/tracking',\n      // 'products/lists/invoiceDescriptions',\n      // 'products/lists/editorSubPanels',\n      // 'settings/roundingAuto',\n      // 'units',\n      // 'units/dimensions',\n      // 'units/weight',\n      // 'products/lists/pageImportBtnSubPanels',\n      // 'products/lists/sync',\n      // 'contacts/transporters',\n      'channels/shop/campaigns/lists/locations', 'dispatch/lists/processes', 'dispatch/lists/date-header', 'dispatch/lists/dispatch-sort-filters-advanced', 'dispatch/lists/documents-sort-filters-advanced', 'dispatch/lists/dispatch-sort-direction', 'documents/lists/filters/dispatch-status', 'documents/lists/filters/extra', 'paymentMethods', 'statuses', {\n        name: 'users',\n        appendPath: 'internal'\n      }]);\n      const defaultFiltersData = {};\n      const source = R.path(['args', 'filters', '_data', 'source'])(this);\n      if (source) {\n        defaultFiltersData.query = source;\n      }\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData\n      });\n      this.campaignFilters = campaignFilters;\n\n      // const recurringFilters = yield this.productsService.getRecurringFiltersTask.perform() || []\n      // this.recurringFilters = recurringFilters\n    }\n    afterLoadLists() {\n      const dispatchSortFiltersAdvanced = R.pathOr([], ['crud', 'lists', 'dispatch-lists-dispatch-sort-filters-advanced'])(this);\n      const dispatchSortDirection = R.pathOr([], ['crud', 'lists', 'dispatch-lists-dispatch-sort-direction'])(this);\n      const dispatchAdditionalSortFilterBy = this.settings.getProp('dispatchFiltersSortBy');\n      const dispatchAdditionalSortFilterByLabel = R.pipe(R.find(R.pathEq(['_data', 'value'], dispatchAdditionalSortFilterBy)), R.defaultTo({}), R.pathOr('', ['_data', 'label']))(dispatchSortFiltersAdvanced);\n      const dispatchAdditionalSortFilterDirection = this.settings.getProp('dispatchFiltersSortByDirection');\n      const dispatchAdditionalSortFilterDirectionLabel = R.pipe(R.find(R.pathEq(['_data', 'value'], dispatchAdditionalSortFilterDirection)), R.defaultTo({}), R.pathOr('', ['_data', 'label']))(dispatchSortDirection);\n      const dispatchAdditionalSortFilter = {\n        by: dispatchAdditionalSortFilterBy,\n        byLabel: dispatchAdditionalSortFilterByLabel,\n        direction: dispatchAdditionalSortFilterDirection,\n        directionLabel: dispatchAdditionalSortFilterDirectionLabel\n      };\n      this.dispatchAdditionalSortFilter = dispatchAdditionalSortFilter;\n    }\n    selectDispatchProcesses() {\n      const filters = this.args.filters;\n      const dispatchProcessesModels = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      const dispatchProcesses = filters.getData('dispatchProcesses');\n      const dispatchProcessesCriterias = R.pipe(R.filter(dispatchProcess => {\n        return R.includes(dispatchProcess.getData('code'), dispatchProcesses);\n      }), R.map(R.path(['_data', 'criterias'])))(dispatchProcessesModels);\n      filters.setData('multipleDispatchProcessesCriterias', dispatchProcessesCriterias);\n    }\n    selectItem(item, isSelected) {\n      if (this?.args?.onSearchTask) {\n        this.args.onSearchTask.perform();\n      }\n    }\n    get showStatusTags() {\n      // @TODO: move to filter model\n      const statuses = this?.crud?.lists?.statuses || [];\n      const selectedStatuses = this.args.filters?._data?.statuses || [];\n      if (selectedStatuses.length === 0) {\n        return false;\n      }\n      if (selectedStatuses.length === statuses.length) {\n        return false;\n      }\n      return true;\n    }\n    get showResetFilter() {\n      // @TODO: move to filter model\n      const filtersData = this?.args?.filters?._data;\n      if (RA.isNilOrEmpty(filtersData)) {\n        return false;\n      }\n      const statuses = filtersData.statuses;\n      const hasImages = filtersData.hasImages;\n      const item = filtersData.item;\n      const itemCode = filtersData.itemCode;\n      const price = filtersData.price;\n      const setTypes = filtersData.setTypes;\n      const tags = filtersData.tags;\n      if (statuses.length !== 5 || tags.length !== 0 || setTypes.length !== 0 || RA.isNilOrEmpty(hasImages) !== true || item !== '' || itemCode !== '' || price !== '') {\n        return true;\n      }\n      return false;\n    }\n    *updateFiltersTask() {\n      // @TODO: how can this be improved?\n      const filters = this.args.filters || {};\n      Ember.set(filters, '_data', filters?._data || {}); // reset data\n\n      return yield this.args.onSearchTask.perform(...arguments);\n    }\n    *clearSelectedItemsTask() {\n      if (this.args.onResetSearchRecordsTask) {\n        const filters = this.args.filters;\n        if (this.args.onResetSearchRecordsTask.perform) {\n          return yield this.args.onResetSearchRecordsTask.perform({\n            filters\n          });\n        }\n        return yield this.args.onResetSearchRecordsTask({\n          filters\n        });\n      }\n\n      // default action\n      if (this?.crud?.reloadSearchRecordsTask) {\n        const resetExcludes = this.args.tableViewOptions?.resetExcludes || [];\n        yield this?.crud?.reloadSearchRecordsTask.perform({\n          filters: this.args.filters,\n          reset: true,\n          resetExcludes\n        });\n        const filters = this.args.filters || {};\n        Ember.set(filters, '_data', filters?._data || {}); // reset data\n      }\n    }\n    get customPaymentMethods() {\n      const paymentMethods = this?.crud?.lists?.paymentMethods || this?.crud?.lists['payment-methods'] || [];\n      return R.reject(R.hasPath(['_data', 'isNotEditable']))(paymentMethods);\n    }\n    get defaultPaymentMethods() {\n      const paymentMethods = this?.crud?.lists?.paymentMethods || this?.crud?.lists['payment-methods'] || [];\n      return R.filter(R.hasPath(['_data', 'isNotEditable']))(paymentMethods);\n    }\n    loadShopSource(shop) {\n      const filters = this.args.filters;\n      filters.setData('sourceKey', shop.getData('_key'));\n      if (this.args.onSearchTask) {\n        this.args.onSearchTask.perform({\n          filters\n        });\n      }\n    }\n    loadShopSourceWithNone() {\n      const shopNoneToggle = this.shopNoneToggle;\n      const filters = this.args.filters;\n      if (shopNoneToggle) {\n        filters.setData('sourceKey', 'none');\n        filters.setData('source', this.intl.t('none'));\n      } else {\n        this.unloadShopSource();\n      }\n      if (this.args.onSearchTask) {\n        this.args.onSearchTask.perform({\n          filters\n        });\n      }\n    }\n    unloadShopSource() {\n      const filters = this.args.filters;\n      filters.setData('sourceKey', '');\n      filters.setData('source', '');\n      this.shopNoneToggle = false;\n      if (this.args.onSearchTask) {\n        this.args.onSearchTask.perform({\n          filters\n        });\n      }\n    }\n    deselectDateFilter() {\n      const filters = this.args.filters;\n      filters.setData('dateHeaderValue', 'dateZ');\n      filters.setData('dateHeaderLabel', 'date');\n      filters.setData('dateZ', '');\n      filters.setData('timestampZ_latest', '');\n    }\n    deselectOnlyEmptyTransporter() {\n      const filters = this.args.filters;\n      filters.setData('onlyEmptyTransporter', false);\n    }\n    removeTransporterFilter() {\n      const filters = this.args.filters;\n      filters.setData('transporterLabel', '');\n      filters.setData('transporterAccount', '');\n    }\n    preSearch({\n      onSearch,\n      onCloseDialogAction\n    }) {\n      // @TODO: is this needed? how does this affect exporting?\n      const hasDispatchStatus = this.args.tableViewOptions.hasDispatchStatus;\n      const hasDispatchProcess = this.args.tableViewOptions.hasDispatchProcess;\n      if (hasDispatchStatus || hasDispatchProcess) {\n        const filters = this?.args?.filters || {};\n        const groupDocumentsByTransporter = this.args.tableViewOptions.groupDocumentsByTransporter;\n        const sortBy = this.dispatchAdditionalSortFilter.by;\n        const sortByDirection = this.dispatchAdditionalSortFilter.direction;\n        if (groupDocumentsByTransporter) {\n          filters.replaceSortNoModel('transporterLabel', 'ASC');\n          filters.addSortNoModel('transporterAccount', 'ASC');\n          filters.addSortNoModel('transporterAccountNumber', 'ASC');\n          filters.addSortNoModel(sortBy, sortByDirection);\n        } else {\n          filters.replaceSortNoModel(sortBy, sortByDirection);\n        }\n        if (this?.args?.isDispatch) {\n          // set the header value from dispatchAdditionalSortFilter\n          filters.setData('dateHeaderValue', this.dispatchAdditionalSortFilter.by);\n          filters.setData('dateHeaderLabel', this.dispatchAdditionalSortFilter.byLabel);\n        }\n      }\n      if (onSearch) {\n        onSearch();\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"campaignFilters\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"shopNoneToggle\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"dispatchAdditionalSortFilter\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectDispatchProcesses\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"selectDispatchProcesses\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectItem\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"selectItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateFiltersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedItemsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedItemsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadShopSource\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"loadShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadShopSourceWithNone\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"loadShopSourceWithNone\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadShopSource\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectDateFilter\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectDateFilter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectOnlyEmptyTransporter\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectOnlyEmptyTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTransporterFilter\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTransporterFilter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preSearch\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"preSearch\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hmSuam65\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@isRunning\\\",\\\"@filters\\\",\\\"@onReloadSearchRecords\\\",\\\"@disallowSaveFilters\\\",\\\"@isGuest\\\",\\\"@isDispatch\\\",\\\"@tableViewOptions\\\",\\\"@onSearch\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,8,[\\\"_data\\\",\\\"docNo\\\"]],[23,7,[]],true,[23,14,[]],\\\"#\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,8,[\\\"_data\\\",\\\"ref\\\"]],[23,7,[]],true,[23,14,[]],[28,\\\"tt\\\",[\\\"reference\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,8,[\\\"_data\\\",\\\"contact\\\"]],[23,7,[]],true,[23,14,[]],[28,\\\"tt\\\",[\\\"person\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,8,[\\\"_data\\\",\\\"item\\\"]],[23,7,[]],true,[23,14,[]],[28,\\\"tt\\\",[\\\"products\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,8,[\\\"_data\\\",\\\"promoCode\\\"]],[23,7,[]],true,[23,14,[]],[28,\\\"tt\\\",[\\\"promo code\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,6,[]],[23,8,[\\\"dateCount\\\"]],\\\"date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"hasDispatchProcess\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@docNo\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@optionClassNames\\\",\\\"@valueKey\\\",\\\"@labelKey\\\",\\\"@allowEmpty\\\"],[\\\"\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-date-header\\\"]],[23,8,[]],[23,8,[\\\"_data\\\",\\\"docNo\\\"]],false,\\\"_data.label\\\",\\\"_data.value\\\",\\\"has-text-weight-bold\\\",\\\"_data.dateHeaderValue\\\",\\\"_data.dateHeaderLabel\\\",false]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"dateHeaderValue\\\"]],\\\"dateZ\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isRunning\\\"],[\\\"_data.dateZ\\\",[23,8,[]],[23,8,[\\\"_data\\\",\\\"dateZ\\\"]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"dateHeaderValue\\\"]],\\\"timestampZ_latest\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isRunning\\\"],[\\\"_data.timestampZ_latest\\\",[23,8,[]],[23,8,[\\\"_data\\\",\\\"timestampZ_latest\\\"]],[23,7,[]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isRunning\\\"],[\\\"_data.dateZ\\\",[23,8,[]],[23,8,[\\\"_data\\\",\\\"dateZ\\\"]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"badge\\\",\\\"list\\\"],[\\\"payment methods\\\",[24,[\\\"isReadonly\\\"]],[28,\\\"sum\\\",[[23,8,[\\\"paymentMethodsCount\\\"]],[23,8,[\\\"paymentMethodsCustomLabelCount\\\"]],[23,8,[\\\"paymentTermsCount\\\"]],[23,8,[\\\"inclTotalCount\\\"]],[23,8,[\\\"paymentLastFiveDigitsCount\\\"]]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"list\\\",\\\"model\\\",\\\"translate\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"multiSelect\\\",\\\"allowEmpty\\\"],[[23,0,[\\\"defaultPaymentMethods\\\"]],[23,8,[]],true,\\\"_data.value\\\",\\\"_data.label\\\",\\\"_data.paymentMethods\\\",true,true]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"list\\\",\\\"model\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"multiSelect\\\",\\\"allowEmpty\\\"],[[23,0,[\\\"customPaymentMethods\\\"]],[23,8,[]],\\\"_data.customLabel\\\",\\\"_data.customLabel\\\",\\\"_data.paymentMethodsCustomLabel\\\",true,true]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"label\\\",\\\"badge\\\"],[[24,[\\\"isReadonly\\\"]],\\\"payment terms\\\",[23,8,[\\\"paymentTermsCount\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],[23,8,[]],true,\\\"_data._key\\\",\\\"_data.label\\\",\\\"_data.paymentTerms\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n            \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"placeholder\\\"],[[23,8,[\\\"_data\\\",\\\"inclTotal\\\"]],[28,\\\"or\\\",[[23,7,[]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,\\\"inclusive total\\\"]]],false],[0,\\\"\\\\n            \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"placeholder\\\"],[[23,8,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]],[23,7,[]],true,\\\"account last 5 digits\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"hasDispatchStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,6,[]],[28,\\\"sum\\\",[[23,8,[\\\"transporterLabelCount\\\"]],[23,8,[\\\"transporterAccountCount\\\"]],[23,8,[\\\"waybillCount\\\"]],[23,8,[\\\"packagesCount\\\"]],[23,8,[\\\"pickupLocationsCount\\\"]]],null],\\\"shipping\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@tagName\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenTrue\\\"],[\\\"div\\\",[23,6,[]],\\\"only show orders without transporter\\\",[23,8,[\\\"_data\\\",\\\"onlyEmptyTransporter\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"removeTransporterFilter\\\"]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,8,[\\\"_data\\\",\\\"onlyEmptyTransporter\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\",\\\"placeholder\\\"],[[23,8,[\\\"_data\\\",\\\"transporterLabel\\\"]],[23,8,[\\\"_data\\\",\\\"onlyEmptyTransporter\\\"]],[23,7,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"preSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"onSearch\\\",\\\"onCloseDialogAction\\\"],[[23,14,[]],[23,3,[]]]]]],null],\\\"transporter\\\"]]],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\",\\\"placeholder\\\"],[[23,8,[\\\"_data\\\",\\\"transporterAccount\\\"]],[23,8,[\\\"_data\\\",\\\"onlyEmptyTransporter\\\"]],[23,7,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"preSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"onSearch\\\",\\\"onCloseDialogAction\\\"],[[23,14,[]],[23,3,[]]]]]],null],\\\"transporter account\\\"]]],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\",\\\"placeholder\\\"],[[23,8,[\\\"_data\\\",\\\"waybill\\\"]],[23,7,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"preSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"onSearch\\\",\\\"onCloseDialogAction\\\"],[[23,14,[]],[23,3,[]]]]]],null],\\\"waybill\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"allowDispatching\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\",\\\"placeholder\\\"],[[23,8,[\\\"_data\\\",\\\"packages\\\"]],[23,7,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"preSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"onSearch\\\",\\\"onCloseDialogAction\\\"],[[23,14,[]],[23,3,[]]]]]],null],\\\"packages\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"adapterName\\\",\\\"legend\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[true,\\\"channels/shop/campaigns/lists/locations\\\",\\\"addresses\\\",false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]],[23,8,[]],true,\\\"_data.label\\\",\\\"_data.pickupLocations\\\",true]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,13,[\\\"hasDispatchStatus\\\"]],[23,13,[\\\"hasDispatchProcess\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,6,[]],[28,\\\"sum\\\",[[23,8,[\\\"productStatusesCount\\\"]],[23,8,[\\\"dispatchDateZCount\\\"]],[23,8,[\\\"dispatchProcessesCount\\\"]]],null],\\\"dispatch status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-productsStatus\\\"]],[23,8,[]],true,true,\\\"_data.value\\\",\\\"_data.productStatuses\\\",true]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"hasDispatchProcess\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"dispatch date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isRunning\\\"],[\\\"_data.dispatchDateZ\\\",[23,8,[]],[23,8,[\\\"_data\\\",\\\"dispatchDateZ\\\"]],[23,7,[]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[23,8,[]],true,true,\\\"_data.name\\\",\\\"_data.code\\\",\\\"_data.dispatchProcesses\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"selectDispatchProcesses\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"selectDispatchProcesses\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"badge\\\",\\\"label\\\"],[[23,6,[]],[23,8,[\\\"sourceKeyCount\\\"]],\\\"shop\\\"]],{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"shopNoneToggle\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelectedKey\\\",\\\"hasSelected\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"resultsItemComponent\\\",\\\"isRunning\\\",\\\"onSearch\\\"],[false,[24,[\\\"campaignFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,8,[\\\"_data\\\",\\\"source\\\"]],\\\"_data._key\\\",[23,8,[\\\"_data\\\",\\\"sourceKey\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isReadonly\\\"]],\\\"channels/shop/campaigns/search-results\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"channels/shop/campaigns\\\",[23,0,[\\\"campaignFilters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-checkbox\\\",[[12,\\\"class\\\",\\\"list-selector__item\\\"]],[[\\\"@disabled\\\",\\\"@value\\\",\\\"@allowToggle\\\",\\\"@onToggleProperty\\\",\\\"@onToggle\\\"],[[23,6,[]],[23,0,[\\\"shopNoneToggle\\\"]],true,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"shopNoneToggle\\\"]]],null]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadShopSourceWithNone\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"exclude all stores\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"badge\\\",\\\"label\\\"],[[23,6,[]],[23,8,[\\\"salesPersonsCount\\\"]],\\\"sales persons\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users--internal\\\"]],[23,8,[]],true,\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.salesPersons\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,6,[]],[23,8,[\\\"documentStatusesCount\\\"]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-statuses\\\"]],[23,8,[]],true,true,\\\"_data.value\\\",\\\"_data.documentStatuses\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,8,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,13,[\\\"hasDispatchStatus\\\"]],[23,13,[\\\"hasDispatchProcess\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,6,[]],[23,8,[\\\"documentStatusesCount\\\"]],\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,6,[]],\\\"group by transporter\\\",[23,13,[\\\"groupDocumentsByTransporter\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[true,true,true,[28,\\\"if\\\",[[23,12,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-dispatch-sort-filters-advanced\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-documents-sort-filters-advanced\\\"]]],null],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"dispatchAdditionalSortFilter\\\",\\\"by\\\"]],[23,0,[\\\"dispatchAdditionalSortFilter\\\",\\\"byLabel\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-dispatch-sort-direction\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"dispatchAdditionalSortFilter\\\",\\\"direction\\\"]],[23,0,[\\\"dispatchAdditionalSortFilter\\\",\\\"directionLabel\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--tags\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags-container tags-container--margin-right-all\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"statuses\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,8,[\\\"_data\\\",\\\"statuses\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,8,[\\\"dateCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-date-header\\\"]],\\\"_data.value\\\",[23,8,[\\\"_data\\\",\\\"dateHeaderValue\\\"]],[28,\\\"concat\\\",[\\\": \\\",[28,\\\"date\\\",[[28,\\\"get\\\",[[23,8,[\\\"_data\\\"]],[23,8,[\\\"_data\\\",\\\"dateHeaderValue\\\"]]],null]],null]],null],true,[28,\\\"fn\\\",[[23,0,[\\\"deselectDateFilter\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"sum\\\",[[23,8,[\\\"paymentMethodsCount\\\"]],[23,8,[\\\"paymentMethodsCustomLabelCount\\\"]],[23,8,[\\\"paymentTermsCount\\\"]],[23,8,[\\\"inclTotalCount\\\"]],[23,8,[\\\"paymentLastFiveDigitsCount\\\"]]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,[23,0,[\\\"defaultPaymentMethods\\\"]],[23,8,[\\\"_data\\\",\\\"paymentMethods\\\"]],\\\"_data.value\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowDeselect\\\"],[true,false,[23,0,[\\\"customPaymentMethods\\\"]],[23,8,[\\\"_data\\\",\\\"paymentMethodsCustomLabel\\\"]],\\\"_data.customLabel\\\",\\\"_data.customLabel\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],[23,8,[\\\"_data\\\",\\\"paymentTerms\\\"]],\\\"_data._key\\\",true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"inclTotal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"inclTotal\\\",\\\"_data.value\\\",[28,\\\"concat\\\",[\\\": \\\",[23,8,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],true,[28,\\\"fn\\\",[[23,8,[\\\"deselectParam\\\"]],\\\"inclTotal\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"paymentLastFiveDigits\\\",\\\"_data.value\\\",[28,\\\"concat\\\",[\\\": \\\",[23,8,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]]],null],true,[28,\\\"fn\\\",[[23,8,[\\\"deselectParam\\\"]],\\\"paymentLastFiveDigits\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"onlyEmptyTransporter\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"onlyEmptyTransporter\\\",\\\"_data.value\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"deselectOnlyEmptyTransporter\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"sum\\\",[[23,8,[\\\"transporterLabelCount\\\"]],[23,8,[\\\"transporterAccountCount\\\"]],[23,8,[\\\"waybillCount\\\"]],[23,8,[\\\"packagesCount\\\"]],[23,8,[\\\"pickupLocationsCount\\\"]]],null],0],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"transporterLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"transporterLabel\\\",\\\"_data.value\\\",[28,\\\"concat\\\",[\\\": \\\",[23,8,[\\\"_data\\\",\\\"transporterLabel\\\"]]],null],true,[28,\\\"fn\\\",[[23,8,[\\\"deselectParam\\\"]],\\\"transporterLabel\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"transporterAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"transporterAccount\\\",\\\"_data.value\\\",[28,\\\"concat\\\",[\\\": \\\",[23,8,[\\\"_data\\\",\\\"transporterAccount\\\"]]],null],true,[28,\\\"fn\\\",[[23,8,[\\\"deselectParam\\\"]],\\\"transporterAccount\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"waybill\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"waybill\\\",\\\"_data.value\\\",[28,\\\"concat\\\",[\\\": \\\",[23,8,[\\\"_data\\\",\\\"waybill\\\"]]],null],true,[28,\\\"fn\\\",[[23,8,[\\\"deselectParam\\\"]],\\\"waybill\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"packages\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"packages\\\",\\\"_data.value\\\",[28,\\\"concat\\\",[\\\": \\\",[23,8,[\\\"_data\\\",\\\"packages\\\"]]],null],true,[28,\\\"fn\\\",[[23,8,[\\\"deselectParam\\\"]],\\\"packages\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]],[23,8,[\\\"_data\\\",\\\"pickupLocations\\\"]],\\\"_data.label\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"sum\\\",[[23,8,[\\\"productStatusesCount\\\"]],[23,8,[\\\"dispatchDateZCount\\\"]],[23,8,[\\\"dispatchProcessesCount\\\"]]],null],0],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-productsStatus\\\"]],[23,8,[\\\"_data\\\",\\\"productStatuses\\\"]],\\\"_data.value\\\",true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"dispatchDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"_data.value\\\",\\\"dispatchDateZ\\\",[28,\\\"concat\\\",[\\\": \\\",[28,\\\"date\\\",[[23,8,[\\\"_data\\\",\\\"dispatchDateZ\\\"]]],null]],null],[28,\\\"if\\\",[[23,12,[]],false,true],null],[28,\\\"fn\\\",[[23,8,[\\\"deselectParam\\\"]],\\\"dispatchDateZ\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[23,8,[\\\"_data\\\",\\\"dispatchProcesses\\\"]],\\\"_data.name\\\",\\\"_data.code\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"selectDispatchProcesses\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"sourceKeyCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"_data.value\\\",\\\"sourceKey\\\",[28,\\\"concat\\\",[\\\": \\\",[23,8,[\\\"_data\\\",\\\"source\\\"]]],null],true,[28,\\\"fn\\\",[[23,0,[\\\"unloadShopSource\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"salesPersonsCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowDeselect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users--internal\\\"]],[23,8,[\\\"_data\\\",\\\"salesPersons\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"documentStatusesCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-statuses\\\"]],[23,8,[\\\"_data\\\",\\\"documentStatuses\\\"]],\\\"_data.value\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dispatchAdditionalSortFilter\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@allowDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"_data.value\\\",\\\"sortBy\\\",[28,\\\"concat\\\",[\\\": \\\",[28,\\\"tt\\\",[[23,0,[\\\"dispatchAdditionalSortFilter\\\",\\\"byLabel\\\"]]],null],\\\" - \\\",[28,\\\"tt\\\",[[23,0,[\\\"dispatchAdditionalSortFilter\\\",\\\"directionLabel\\\"]]],null]],null],false]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"groupDocumentsByTransporter\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-filters-extra\\\"]],\\\"_data.value\\\",\\\"groupDocumentsByTransporter\\\",false]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"hide\\\",\\\"fas fa-angle-up\\\",[23,6,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,8,[]],\\\"showFilters\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,11,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,8,[]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,6,[]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,6,[]],[23,7,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\",\\\"onAfter\\\"],[[23,8,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"unloadShopSource\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,6,[]],[23,7,[]],[28,\\\"fn\\\",[[23,0,[\\\"preSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"onSearch\\\"],[[23,14,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-conflict/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/links-conflict/discount-conflict/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isSelected: Ember.computed('conflictCategory.selected.[]', function () {\n      const value = this.valueGroup;\n      return this.get(`conflictCategory.selected`).get('firstObject') === value;\n    })\n  });\n});","define(\"client/pods/components/documents/links-conflict/discount-conflict/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"l7JDjOp+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"linkFromDetail\\\"],\\\"statements\\\":[[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"documents__conflict-option u-container \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelectConflictResolution\\\"]],[24,[\\\"conflictCategory\\\"]],[24,[\\\"valueGroup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h3\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-centered \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"has-text-link\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"discountAmount\\\"]]],null,{\\\"statements\\\":[[0,\\\"      $\\\"],[1,[28,\\\"number\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"discountAmount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"discountRate\\\"]]],null],false],[0,\\\"%  \\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"valueGroup\\\",\\\"linkFromDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isEditorValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[28,\\\"tt\\\",[\\\"current document\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\" . \\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\" \\\"]],\\\"parameters\\\":[]},null],[0,\\\" - \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-conflict/discount-conflict/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-conflict/generic-conflict/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    translatedValue: Ember.computed('conflictCategory.{translate,translatePrefix}', 'valueGroup.value', function () {\n      const translate = this.get('conflictCategory.translate') || false;\n      const value = this.get('valueGroup.value');\n      if (translate) {\n        const translatePrefix = this.get('conflictCategory.translatePrefix') || '';\n        return this.intl.t(`${translatePrefix}${value}`);\n      }\n      return value;\n    }),\n    isSelected: Ember.computed('conflictCategory.selected.[]', function () {\n      const value = this.valueGroup;\n      return this.get(`conflictCategory.selected`).get('firstObject') === value;\n    })\n  });\n});","define(\"client/pods/components/documents/links-conflict/generic-conflict/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hV49d7AN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"linkFromDetail\\\"],\\\"statements\\\":[[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"documents__conflict-option u-container \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelectConflictResolution\\\"]],[24,[\\\"conflictCategory\\\"]],[24,[\\\"valueGroup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h3\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-centered \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"has-text-link\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[22,\\\"translatedValue\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"valueGroup\\\",\\\"linkFromDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isEditorValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[28,\\\"tt\\\",[\\\"current document\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\" . \\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\" \\\"]],\\\"parameters\\\":[]},null],[0,\\\" - \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-conflict/generic-conflict/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-conflict/notes-conflict/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isSelected: Ember.computed('conflictCategory.selected.[]', function () {\n      const value = this.valueGroup;\n      return this.get(`conflictCategory.selected`).get('firstObject') === value;\n    })\n  });\n});","define(\"client/pods/components/documents/links-conflict/notes-conflict/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DONMwogR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"linkFromDetail\\\"],\\\"statements\\\":[[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"documents__conflict-option u-container \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelectConflictResolution\\\"]],[24,[\\\"conflictCategory\\\"]],[24,[\\\"valueGroup\\\"]]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\" has-text-link \\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"rows\\\",\\\"readonly\\\",\\\"value\\\"],[4,true,[24,[\\\"valueGroup\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"valueGroup\\\",\\\"linkFromDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isEditorValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[28,\\\"tt\\\",[\\\"current document\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\" . \\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\" \\\"]],\\\"parameters\\\":[]},null],[0,\\\" - \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-conflict/notes-conflict/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-conflict/payment-due-conflict/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isSelected: Ember.computed('conflictCategory.selected.[]', function () {\n      const value = this.valueGroup;\n      return this.get(`conflictCategory.selected`).get('firstObject') === value;\n    })\n  });\n});","define(\"client/pods/components/documents/links-conflict/payment-due-conflict/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xtOKUXR6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"linkFromDetail\\\"],\\\"statements\\\":[[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"documents__conflict-option u-container \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelectConflictResolution\\\"]],[24,[\\\"conflictCategory\\\"]],[24,[\\\"valueGroup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h3\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-centered \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\" has-text-link \\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"date\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"valueGroup\\\",\\\"linkFromDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isEditorValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[28,\\\"tt\\\",[\\\"current document\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\" . \\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\" \\\"]],\\\"parameters\\\":[]},null],[0,\\\" - \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-conflict/payment-due-conflict/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-conflict/payment-method-conflict/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isSelected: Ember.computed('conflictCategory.selected.[]', function () {\n      const value = this.valueGroup;\n      return this.get(`conflictCategory.selected`).get('firstObject') === value;\n    })\n  });\n});","define(\"client/pods/components/documents/links-conflict/payment-method-conflict/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Mjn7kBz4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"linkFromDetail\\\"],\\\"statements\\\":[[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"documents__conflict-option u-container \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelectConflictResolution\\\"]],[24,[\\\"conflictCategory\\\"]],[24,[\\\"valueGroup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h3\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-centered \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"has-text-link\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"number\\\"]],[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"paymentMethodKey\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"paymentTerms\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h3\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-centered \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"has-text-link\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"paymentTerms\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"valueGroup\\\",\\\"linkFromDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isEditorValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[28,\\\"tt\\\",[\\\"current document\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\" . \\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\" \\\"]],\\\"parameters\\\":[]},null],[0,\\\" - \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-conflict/payment-method-conflict/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-conflict/shop-conflict/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isSelected: Ember.computed('conflictCategory.selected.[]', function () {\n      const value = this.valueGroup;\n      return this.get(`conflictCategory.selected`).get('firstObject') === value;\n    })\n  });\n});","define(\"client/pods/components/documents/links-conflict/shop-conflict/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mK/ePtlt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"linkFromDetail\\\"],\\\"statements\\\":[[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"documents__conflict-option u-container \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelectConflictResolution\\\"]],[24,[\\\"conflictCategory\\\"]],[24,[\\\"valueGroup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h3\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-centered \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"has-text-link\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"source\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"source\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"valueGroup\\\",\\\"linkFromDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isEditorValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[28,\\\"tt\\\",[\\\"current document\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\" . \\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\" \\\"]],\\\"parameters\\\":[]},null],[0,\\\" - \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-conflict/shop-conflict/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-conflict/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fS7nSX08\",\n    \"block\": \"{\\\"symbols\\\":[\\\"valueGroup\\\"],\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[[24,[\\\"conflictCategory\\\",\\\"label\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"conflictCategory\\\",\\\"values\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"component\\\",[[24,[\\\"conflictCategory\\\",\\\"component\\\"]]],[[\\\"conflictCategory\\\",\\\"valueGroup\\\",\\\"onSelectConflictResolution\\\",\\\"model\\\"],[[24,[\\\"conflictCategory\\\"]],[23,1,[]],[24,[\\\"onSelectConflictResolution\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-conflict/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-conflict/transporter-conflict/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isSelected: Ember.computed('conflictCategory.selected.[]', function () {\n      const value = this.valueGroup;\n      return this.get(`conflictCategory.selected`).get('firstObject') === value;\n    })\n  });\n});","define(\"client/pods/components/documents/links-conflict/transporter-conflict/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fZOq9nBM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"linkFromDetail\\\"],\\\"statements\\\":[[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"documents__conflict-option u-container \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelectConflictResolution\\\"]],[24,[\\\"conflictCategory\\\"]],[24,[\\\"valueGroup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"h3\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-centered \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"has-text-link\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"transporterLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[24,[\\\"valueGroup\\\",\\\"value\\\",\\\"transporterLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"valueGroup\\\",\\\"linkFromDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isEditorValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[28,\\\"tt\\\",[\\\"current document\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          #\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\" . \\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\" \\\"]],\\\"parameters\\\":[]},null],[0,\\\" - \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-conflict/transporter-conflict/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-modal/component\", [\"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 = Ember.Component.extend({\n    showSearchBar: true,\n    tagName: '',\n    linksListProxy: Ember.computed('linksList.[]', function () {\n      return this?.linksList || [];\n    }),\n    hasMultipleSelected: Ember.computed('linksListProxy.@each.isSelected', function () {\n      const selected = this.linksListProxy.filterBy('isSelected', true) || [];\n      if (selected.length > 0) {\n        return selected;\n      }\n      return false;\n    }),\n    actions: {\n      // loadLinkedDetail (linkFromDetail) {\n      //   this.get('onCloseDialogAction')()\n      //   this.get('onPreLoadLinkedDetails')([linkFromDetail], this.get('detail'))\n      // },\n\n      done() {\n        const selected = this.hasMultipleSelected;\n        if (this.onCloseDialogAction) {\n          this.onCloseDialogAction();\n        }\n        this.onPreLoadLinkedDetails(selected, this.detail);\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/links-modal/links-modal-details/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 DocumentsLinksModalLinksModalDetails = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class DocumentsLinksModalLinksModalDetails extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"big\", _descriptor, this);\n      _defineProperty(this, \"showSearchBar\", true);\n      _defineProperty(this, \"tagName\", '');\n    }\n    get hasMultipleSelected() {\n      const selected = this.args.linksListProxy.filterBy('isSelected', true) || [];\n      if (selected.length > 0) {\n        return selected;\n      }\n      return false;\n    }\n    toggleAddLinkItem(linkFromDetail) {\n      const model = this?.args?.model || {};\n      if (!model) {\n        return false;\n      }\n      if (this.isNotSelectable) {\n        return false;\n      }\n      if (model?._data?.docType === 'sales' && model?._data?.docName === 'returns') {\n        // dont allow doc sales returns to be linked to mixed documents\n        const firstSelectedLinkFromDocKey = model?.firstSelectedLinkFromDocKey;\n        if (firstSelectedLinkFromDocKey) {\n          if (firstSelectedLinkFromDocKey !== linkFromDetail?._data?.doc?._key) {\n            return false;\n          }\n        }\n      }\n      linkFromDetail.toggleProperty('isSelected');\n      const linkQtyRemainder = this.linkQtyRemainder;\n      linkFromDetail.setData('linkQtyRemainder', linkQtyRemainder);\n      if (model?._data?.docType === 'sales' && model?._data?.docName === 'returns') {\n        const selected = model?.selectedLinkFromDocKeys || [];\n        if (linkFromDetail?.isSelected) {\n          selected.pushObject(linkFromDetail?._data?.doc?._key);\n        } else {\n          selected.removeObject(linkFromDetail?._data?.doc?._key);\n        }\n        model.set('selectedLinkFromDocKeys', selected);\n      }\n    }\n    get linkQtyRemainder() {\n      const qtyForLinkedList = this?.args?.qtyForLinkedList || {};\n      const linkFromDetail = this?.args?.linkFromDetail || {};\n      if (RA.isNotNilOrEmpty(qtyForLinkedList)) {\n        const fromDocName = linkFromDetail.getData('docName') || '';\n        let pendingId = '';\n        if (RA.isNotNilOrEmpty(fromDocName)) {\n          pendingId = linkFromDetail.getData(`${fromDocName}PendingId`);\n          if (R.equals(fromDocName, 'invoices')) {\n            pendingId = linkFromDetail.getData('detailKey');\n          }\n        }\n        const qtyForLinkedListKeys = R.keys(qtyForLinkedList);\n        if (RA.isNotNilOrEmpty(pendingId) && R.includes(pendingId, qtyForLinkedListKeys)) {\n          const linkQty = linkFromDetail?._data?.linkQty || '0';\n          const qtyAlreadyLinked = this.big.newBig(qtyForLinkedList[pendingId]);\n          const qtyRemainder = this.big.newBig(linkQty).minus(qtyAlreadyLinked);\n          return qtyRemainder.toFixed(0);\n        }\n        return linkFromDetail?._data?.linkQty || '0';\n      }\n      return linkFromDetail?._data?.linkQty || '0';\n    }\n    get isNotSelectable() {\n      const model = this?.args?.model || {};\n      const paymentMethodKey = model?._data?.paymentMethodKey || '';\n      const linkFromDetail = this?.args?.linkFromDetail || {};\n      const isSelected = R.propOr(false, 'isSelected')(linkFromDetail); // for calling the get function\n      const linkQtyRemainder = this.linkQtyRemainder || '';\n      const linkDocPaymentMethodKey = linkFromDetail?._data?.doc?.paymentMethodKey || '';\n      if (RA.isNotNilOrEmpty(linkQtyRemainder) && R.lte(linkQtyRemainder, 0)) {\n        return true;\n      }\n      if (R.equals(paymentMethodKey, 'consignment')) {\n        if (!R.equals(linkDocPaymentMethodKey, 'consignment')) {\n          return true;\n        }\n        return false;\n      }\n      const selected = this.args.linksListProxy.filterBy('isSelected', true) || [];\n      const selectedPendingIdType = R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('docName'), R.reject(RA.isNilOrEmpty), R.uniq)(selected);\n      if (RA.isNotNilOrEmpty(selectedPendingIdType)) {\n        const selectedPendingIdTypeArray = RA.ensureArray(selectedPendingIdType);\n        const pendingIdType = R.head(selectedPendingIdTypeArray) || '';\n        const linkDocDocName = linkFromDetail?._data?.doc?.docName || '';\n        if (R.equals('consignments', pendingIdType) && R.equals('orders', linkDocDocName) || R.equals('orders', pendingIdType) && R.equals('consignments', linkDocDocName)) {\n          return true;\n        }\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleAddLinkItem\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleAddLinkItem\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/links-modal/links-modal-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1+tRu72B\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@linkFromDetail\\\",\\\"@index\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"reference\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"lead time\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"delivery date\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tax method\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\t\\\\t\\\\n\\\"]],\\\"parameters\\\":[]},null],[7,\\\"tr\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"toggleAddLinkItem\\\",[23,1,[]]]],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"button\\\",true],[11,\\\"class\\\",[29,[\\\"button \\\",[28,\\\"if\\\",[[23,1,[\\\"isSelected\\\"]],\\\" is-link \\\"],null]]]],[11,\\\"disabled\\\",[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"isNotSelectable\\\"]],[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isSalesReturns\\\"]],[24,[\\\"model\\\",\\\"firstSelectedLinkFromDocKey\\\"]],[28,\\\"not-eq\\\",[[24,[\\\"model\\\",\\\"firstSelectedLinkFromDocKey\\\"]],[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"_key\\\"]]],null]],null]],null],true,false],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"select\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t#\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"txType\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t. \\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"leadTime\\\"]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"deliveryDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"itemCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[23,0,[\\\"linkQtyRemainder\\\"]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"percentage\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"              \\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discExclPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discExclPrice\\\"]]],[[\\\"rounding\\\",\\\"autoRound\\\"],[[23,1,[\\\"_data\\\",\\\"roundingInventoryPrice\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclPrice\\\"]]],[[\\\"rounding\\\",\\\"autoRound\\\"],[[23,1,[\\\"_data\\\",\\\"roundingInventoryPrice\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"discInclPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discInclPrice\\\"]]],[[\\\"rounding\\\",\\\"autoRound\\\"],[[23,1,[\\\"_data\\\",\\\"roundingInventoryPrice\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclPrice\\\"]]],[[\\\"rounding\\\",\\\"autoRound\\\"],[[23,1,[\\\"_data\\\",\\\"roundingInventoryPrice\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"has-text-center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"tax_\\\",[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"taxMethodKey\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border: 0\\\"],[10,\\\"class\\\",\\\"has-text-center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"source\\\"]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-modal/links-modal-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YGGzUTTs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"linkFromDetail\\\",\\\"index\\\",\\\"@onCloseDialogAction\\\",\\\"@qtyForLinkedList\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"showSearchBar\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"isRunning\\\",\\\"value\\\",\\\"autofocus\\\",\\\"placeholder\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[[24,[\\\"searchForLinksTask\\\",\\\"isRunning\\\"]],[24,[\\\"linkQuery\\\"]],true,\\\"products\\\",true,[28,\\\"perform\\\",[[24,[\\\"searchForLinksTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"searchForLinksTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-table-results u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"linksListProxy\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"linksListProxy\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"documents/links-modal/links-modal-details\\\",[],[[\\\"@linksListProxy\\\",\\\"@linkFromDetail\\\",\\\"@index\\\",\\\"@qtyForLinkedList\\\",\\\"@model\\\"],[[23,0,[\\\"linksListProxy\\\"]],[23,1,[]],[23,2,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"no data\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"hasMultipleSelected\\\"]],[24,[\\\"isInDetailRow\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,\\\"done\\\",[28,\\\"action\\\",[[23,0,[]],\\\"done\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"hasMultipleSelected\\\"]],[28,\\\"not\\\",[[24,[\\\"isInDetailRow\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,\\\"done\\\",[28,\\\"action\\\",[[23,0,[]],\\\"done\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/links-results/component\", [\"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 = Ember.Component.extend({\n    classNames: ['list-selector'],\n    itemClassNames: ['list-selector__item'],\n    legendClassNames: ['list-selector__legend'],\n    optionLabelKey: '_data.label',\n    // key that points to option's label\n    optionValueKey: '_data.value',\n    // key that points to option's value\n    value: '',\n    /**\n     * trigger onSelect action\n     * @param {object} option - selected object\n     * @param {object} optionComponent - the component sending the toggle action,\n     *                                    used to keep track of selected state\n     */\n    selectOption(option /* ,  optionComponent */) {\n      // send action to onSelect event..only used for when list is in a dropdown\n      if (this.onSelect) {\n        this.onSelect(option, this);\n      }\n    },\n    actions: {\n      /**\n       * listen for toggle event sent from options component\n       */\n      toggleOption(option, optionComponent) {\n        // list results only allows select (no deselect)\n        // handle select event\n        this.selectOption(option, optionComponent);\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/links-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"boIZeHiS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"legend\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"legend\\\",true],[11,\\\"class\\\",[22,\\\"legendClassNames\\\"]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"legend\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"list\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-option\\\",null,[[\\\"translate\\\",\\\"rememberSelected\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"option\\\",\\\"onToggle\\\"],[[24,[\\\"translate\\\"]],false,[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey\\\"]],[24,[\\\"itemClassNames\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleOption\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t#\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"txType\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"outstanding\\\"],null],false],[0,\\\": \\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"linkQtyRemainder\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"linkQtyRemainder\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"linkQty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\\t.\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"exclPrice\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"itemCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/links-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/mixins/details\", [\"exports\", \"ramda-extension\"], function (_exports, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    crud: Ember.inject.service(),\n    addNewDetail(model) {\n      model.newBlankDetail({\n        taxesList: R_.dotPath('crud.lists.taxes')(this)\n      });\n      return model;\n    },\n    actions: {\n      addNewDetail() {\n        this.addNewDetail(...arguments);\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/mixins/pre-submit\", [\"exports\", \"client/mixins/hct-fetch\", \"ramda\"], function (_exports, _hctFetch, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_hctFetch.default, {\n    dispatch: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    async preSubmit(model, onSubmit) {\n      const transporterExtension = R.pathOr('', ['_data', 'transporterExtension'])(model);\n\n      // @note: Temp fix, dont validate tcat address\n      // if (transporterExtension === this.dispatch.tCatExtension) {\n      //   try {\n      //     const validatedAddress = await this.dispatch.tCatValidateDocAddress.perform(model)\n      //     R.forEachObjIndexed(\n      //       (value, key) => {\n      //         model.setData(key, value)\n      //       }\n      //     )(validatedAddress)\n      //   } catch (err) {\n      //     const errors = R.pathOr([], ['data', 'errors'])(err)\n      //     this.set('errors', errors)\n      //     return\n      //   }\n      // }\n\n      if (model.getData('docType') === 'sales' && (model.getData('docName') === 'invoices' || model.getData('docName') === 'consignments') && model.getData('transporterExtension') === 'hct' && this.settings.getProp('features.extensions.tw_hct') && this.dontFetchRegionCode === false) {\n        // show modal\n        const transporterRegion = model.getData('transporterRegion');\n        if (!transporterRegion) {\n          // fetch\n          await this.fetchHCTRegionDataTask.perform(model);\n        }\n        if (!this.isHCTIncomplete(model)) {\n          return onSubmit();\n        } else {\n          alert(this.intl.t('incomplete telephone/address'));\n        }\n      } else {\n        return onSubmit();\n      }\n    },\n    actions: {\n      preSubmit(model, onSubmit) {\n        return this.preSubmit(model, onSubmit);\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/panel-dash/component\", [\"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 = Ember.Component.extend({\n    init() {\n      this._super(...arguments);\n\n      // const docType = this.docType\n      // const docName = this.docName\n\n      // const tableViewOptions = {\n      //   hasDispatchProcess: false,\n      //   allowDispatching: false\n      // }\n      // if (docType === 'sales' && (docName === 'invoices' || docName === 'consignments')) {\n      //   tableViewOptions.hasDispatchProcess = true\n      //   tableViewOptions.allowDispatching = true\n      // }\n\n      // this.set('tableViewOptions', tableViewOptions)\n\n      this.tabsManager.setHeader(this.tabParent, '');\n    }\n  });\n});","define(\"client/pods/components/documents/panel-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xwn62vSr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onPaginationTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@listAdapters\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@onPaginationTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[\\\"documents/table-view/doc-row\\\",[23,1,[]],[28,\\\"array\\\",[\\\"documents/lists/filters/statuses\\\",\\\"filters/count\\\",\\\"toggles/yesNo\\\",\\\"paymentMethods\\\",\\\"paymentTerms\\\",\\\"units\\\",[28,\\\"hash\\\",null,[[\\\"name\\\",\\\"appendPath\\\"],[\\\"users\\\",\\\"internal\\\"]]],\\\"documents/lists/filters/statuses\\\",\\\"documents/lists/filters/productsStatus\\\",\\\"dispatch/lists/processes\\\",\\\"contacts/lists/tags\\\",\\\"extensions/apps/tw/t-cat/lists/waybillPrintType\\\",\\\"dispatch/lists/processes\\\",\\\"channels/shop/campaigns/lists/locations\\\"],null],[23,2,[]],[23,3,[]],[23,2,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/panel-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/panel-display/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, {\n    tabsManager: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.get('tab');\n      let model = tab?.model;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      const filters = this.filters;\n      if (!model) {\n        model = loadInstructions?._data?.model;\n      }\n      const id = loadInstructions?._data?.find?.id;\n      if (!model && id) {\n        const found = yield this.findTask.perform({\n          appendPath: id\n        });\n        model = found;\n      }\n      const query = loadInstructions?._data?.search?.query;\n      if (!model && query) {\n        filters.setData('query', query);\n        const results = yield this.searchRecordsTask.perform({\n          filters\n        });\n        const found = results.get('firstObject');\n        model = found;\n      }\n\n      // @TODO: handle when no model found. needs a message\n      if (!model) {\n        return;\n      }\n      this.set('model', model);\n      if (!model.getData('discountMethod')) {\n        model.setData('discountMethod', this.get('constants.discountMethods.onTotal'));\n      }\n      if (!model.getData('discountType')) {\n        model.setData('discountType', this.get('constants.discountTypes.rate'));\n      }\n      const adapterName = this.get('tab.config.adapterName');\n      this.set('adapterName', adapterName);\n      this.tabsManager.setHeader(this.tabParent, '#' + model.getData('docNo') + ' ' + model.getData('contact'));\n    })\n  });\n});","define(\"client/pods/components/documents/panel-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0Aekszi6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDisplay\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"documents/editor-main\\\",null,[[\\\"tab\\\",\\\"tabParent\\\",\\\"model\\\",\\\"isEditing\\\",\\\"onEdit\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onSetupDirty\\\",\\\"onUpdateDocInfoTask\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"tabParent\\\"]],[24,[\\\"model\\\"]],false,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]]],null],[24,[\\\"onDash\\\"]],[23,1,[]],[24,[\\\"onSetupDirty\\\"]],[24,[\\\"onUpdateDocInfoTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/panel-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/panel-edit/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/settings\", \"client/mixins/crud\", \"client/pods/components/documents/mixins/pre-submit\", \"client/pods/components/documents/mixins/details\", \"ember-concurrency\", \"ramda-adjunct\"], function (_exports, _date, _settings, _crud, _preSubmit, _details, _emberConcurrency, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _details.default, _settings.default, _crud.default, _preSubmit.default, {\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['taxes']);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      this.set('dontFetchRegionCode', this.get('tab.config.dontFetchRegionCode'));\n      const adapterName = this.get('tab.config.adapterName');\n      this.set('adapterName', adapterName);\n      const model = this.get('tab.model');\n      const dirty = this.setupDirty({\n        adapterName,\n        model\n      });\n      this.set('dirty', dirty);\n      const contactKey = dirty.getData('contactKey');\n      if (contactKey) {\n        const contact = yield this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: contactKey\n        });\n        this.set('selectedContact', contact);\n        dirty.set('selectedContact', contact);\n      }\n      this.tabsManager.setHeader(this.tabParent, '#' + dirty.getData('docNo') + ' ' + dirty.getData('contact'));\n    }),\n    _setupCreateRefundWorkflow(dirty) {\n      let createRefundWorkflow = false;\n      if (dirty.isSalesInvoices || dirty.isSalesReturns) {\n        const inclTotal = dirty?._data?.inclTotal;\n        if (dirty?._data?.paymentMethodKey === 'cash' && dirty?._data?.dispatchProcess === 'dispatched') {\n          createRefundWorkflow = true;\n          dirty.setData('createRefundWorkflowAmount', inclTotal);\n        }\n        if (dirty?._data?.paymentMethodKey === 'cashBeforeDelivery' && dirty?._data?.dispatchProcess !== 'awaitingPayment') {\n          createRefundWorkflow = true;\n          dirty.setData('createRefundWorkflowAmount', inclTotal);\n        }\n      }\n      dirty.setData('createRefundWorkflow', createRefundWorkflow);\n      return dirty;\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const dirty = this.dirty;\n      // @TODO: setup on model? but documents should be different based on context, so should not be setup in model?\n      // eg. document entered here may be exclusive, but documents created via shop should be inclusive\n      // set default discount types\n      if (!dirty.getData('discountMethod')) {\n        dirty.setData('discountMethod', this.get('constants.discountMethods.onTotal'));\n      }\n      if (!dirty.getData('discountType')) {\n        dirty.setData('discountType', this.get('constants.discountTypes.rate'));\n      }\n      if (this.get('tab.config.docName') === 'orders' || this.get('tab.config.docName') === 'quotes') {\n        const deliveryDateOption = dirty?._data?.deliveryDateOption || '';\n        if (RA.isNilOrEmpty(deliveryDateOption)) {\n          dirty.setData('deliveryDateOption', this.get('constants.deliveryDateOptions.single'));\n        }\n      }\n      this.addNewDetail(dirty);\n    }\n  });\n});","define(\"client/pods/components/documents/panel-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"BhNQwV8F\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"documents/editor-main\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"selectedContact\\\",\\\"isEditing\\\",\\\"onDash\\\",\\\"errors\\\",\\\"onPreSubmit\\\",\\\"onAddNewDetail\\\",\\\"onSubmitTask\\\",\\\"fetchHCTRegionDataTask\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"selectedContact\\\"]],true,[24,[\\\"onDash\\\"]],[24,[\\\"errors\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"preSubmit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"addNewDetail\\\",[24,[\\\"dirty\\\"]]],null],[24,[\\\"updateRecordTask\\\"]],[24,[\\\"fetchHCTRegionDataTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEditing\\\",[28,\\\"hash\\\",null,[[\\\"dirty\\\"],[[24,[\\\"dirty\\\"]]]]]],null]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/panel-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/panel-merge/component\", [\"exports\", \"ramda\", \"client/mixins/date\", \"client/mixins/settings\", \"client/mixins/crud\", \"client/pods/components/documents/mixins/pre-submit\", \"client/pods/components/documents/mixins/details\", \"ember-concurrency\", \"client/pods/components/documents/docConfig\"], function (_exports, R, _date, _settings, _crud, _preSubmit, _details, _emberConcurrency, _docConfig) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _details.default, _settings.default, _crud.default, _preSubmit.default, {\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['taxes']);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const config = _docConfig.default.getFor({\n        docType: model._data.docType,\n        docName: model._data.docName\n      });\n      const tab = Ember.Object.create({\n        config\n      });\n      this.set('tab', tab);\n      this.set('dontFetchRegionCode', this.get('tab.config.dontFetchRegionCode'));\n      const adapterName = this.get('tab.config.adapterName');\n      this.set('adapterName', adapterName);\n      const dirty = this.dirty;\n      const contactKey = dirty.getData('contactKey');\n      if (contactKey) {\n        const contact = yield this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: contactKey\n        });\n        this.set('selectedContact', contact);\n        dirty.set('selectedContact', contact);\n      }\n    }),\n    afterLoadLists() {\n      this._super(...arguments);\n      const dirty = this.dirty;\n      // @TODO: setup on model? but documents should be different based on context, so should not be setup in model?\n      // eg. document entered here may be exclusive, but documents created via shop should be inclusive\n      // set default discount types\n      if (!dirty.getData('discountMethod')) {\n        dirty.setData('discountMethod', this.get('constants.discountMethods.onTotal'));\n      }\n      if (!dirty.getData('discountType')) {\n        dirty.setData('discountType', this.get('constants.discountTypes.rate'));\n      }\n      if (this.get('model.docName') === 'orders' || this.get('model.docName') === 'quotes') {\n        dirty.setData('deliveryDateOption', this.get('constants.deliveryDateOptions.single'));\n      }\n    },\n    mergeAllRecordsTask: (0, _emberConcurrency.task)(function* ({\n      appendPath\n    }) {\n      const adapterName = this.adapterName;\n      const dirty = this.dirty;\n      const adapter = this.getAdapter(adapterName);\n      const path = adapter.getPath('resourcePath', appendPath);\n      const toMergeWithModels = this.toMergeWithModels;\n      const documents = [];\n      documents.push(adapter.serialize(dirty));\n      R.forEach(toMergeModel => {\n        documents.push(adapter.serialize(toMergeModel));\n      }, toMergeWithModels);\n      const data = {\n        documents\n      };\n      const results = yield this.server.call('PATCH', path, data);\n      if (this.onAfterMerge) {\n        this.onAfterMerge(results);\n      }\n    }).drop(),\n    actions: {\n      addNewDetail() {\n        // dont add new detail\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/panel-merge/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D3m3tE44\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"documents/editor-main\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"original\\\",\\\"toMergeWithModels\\\",\\\"selectedContact\\\",\\\"isEditing\\\",\\\"isSplitting\\\",\\\"isMerging\\\",\\\"onDash\\\",\\\"errors\\\",\\\"onPreSubmit\\\",\\\"onAddNewDetail\\\",\\\"onSubmitTask\\\",\\\"submitFinalAppendPath\\\",\\\"fetchHCTRegionDataTask\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"model\\\"]],[24,[\\\"toMergeWithModels\\\"]],[24,[\\\"selectedContact\\\"]],true,false,true,[24,[\\\"onDash\\\"]],[24,[\\\"errors\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"preSubmit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"addNewDetail\\\",[24,[\\\"dirty\\\"]]],null],[24,[\\\"mergeAllRecordsTask\\\"]],[24,[\\\"appendPath\\\"]],[24,[\\\"fetchHCTRegionDataTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEditing\\\",[28,\\\"hash\\\",null,[[\\\"dirty\\\",\\\"onAfter\\\"],[[24,[\\\"dirty\\\"]],[24,[\\\"onCloseDialogAction\\\"]]]]]],null]]]],false],[0,\\\"\\\\n  \\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/panel-merge/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/panel-new/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/settings\", \"client/mixins/crud\", \"client/pods/components/documents/mixins/pre-submit\", \"client/pods/components/documents/mixins/details\", \"ember-concurrency\", \"ramda-extension\", \"ramda\", \"ramda-adjunct\"], function (_exports, _date, _settings, _crud, _preSubmit, _details, _emberConcurrency, R_, R, RA) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _details.default, _settings.default, _preSubmit.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _obj = {\n    contactsService: Ember.inject.service('contacts'),\n    constants: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    server: Ember.inject.service(),\n    documentsService: Ember.inject.service('documents'),\n    productsService: Ember.inject.service('products'),\n    terminalService: Ember.inject.service('terminal'),\n    tabsManager: Ember.inject.service(),\n    selectedProducts: Ember.A([]),\n    init() {\n      this.crud.addLists(this, ['taxes', 'paymentMethods', 'paymentTerms']);\n      this._super(...arguments);\n      this.set('dontFetchRegionCode', this?.get('tab.config.dontFetchRegionCode'));\n      this?.tabsManager?.setHeader(this?.tabParent, this?.intl?.t('new'));\n    },\n    qrCodeData: Ember.computed('model.paymentLink', function () {\n      const paymentLink = this?.model?.paymentLink;\n      if (paymentLink) {\n        return `${paymentLink}?isPos=true`;\n      }\n      return '';\n    }),\n    panelNewClassNames: Ember.computed('tabParent.{isPos,hasAlreadyEnteredPosMode,isPosFullScreenMode}', function () {\n      const tabParent = this.tabParent;\n      const isPos = tabParent?.isPos;\n      const classNames = [];\n      if (isPos && tabParent?.hasAlreadyEnteredPosMode) {\n        classNames.push('pos-grid');\n        classNames.push('pos-view');\n        if (tabParent?.isPosFullScreenMode) {\n          classNames.push('pos-view--fullscreen');\n          classNames.push('is-fullscreen');\n        }\n      }\n      return classNames.join(' ');\n    }),\n    panelNewEditorMainClassNames: Ember.computed('tabParent.{isPos,hasAlreadyEnteredPosMode}', 'areProductsFullScreen', function () {\n      const isPos = R.pathEq(['tabParent', 'isPos'], true)(this);\n      const classNames = [];\n      if (isPos && this.areProductsFullScreen) {\n        classNames.push('panel-new-editor-main-pos-view');\n      }\n      return classNames.join(' ');\n    }),\n    loadDataTask: (0, _emberConcurrency.task)(function* () {\n      const adapterName = this.get('tab.config.adapterName');\n      this.set('adapterName', adapterName);\n      const model = this.setupNewRecord();\n      this.set('model', model);\n      const docType = this.get('tab.config.docType');\n      const docName = this.get('tab.config.docName');\n      let contactsModel;\n\n      // @TODO: remove this\n      const isFromShortcut = this.get('tab.isFromShortcut') || false;\n      const isFromPendingShortcut = this.get('tab.isFromPendingShortcut') || false;\n      const isFromContactShortcut = this.get('tab.isFromContactShortcut') || false;\n      const isFromDocument = this.get('tab.isFromDocument') || false;\n      const isDuplicateDocumentShortcut = this.get('tab.isDuplicateDocumentShortcut') || false;\n      const isFromOutstandingQty = this.get('tab.isFromOutstandingQty') || false;\n      const isFromToInvoiceQty = this.get('tab.isFromToInvoiceQty') || false;\n      const isLinkingNeeded = this.get('tab.isLinkingNeeded') || false;\n      this.set('isFromShortcut', isFromShortcut);\n      this.set('isFromPendingShortcut', isFromPendingShortcut);\n      this.set('isFromDocument', isFromDocument);\n      this.set('isLinkingNeeded', isLinkingNeeded);\n      let orderDoc = {};\n      const taxesList = this?.crud?.lists?.taxes || [];\n      const taxRate = this.settings.getDefaultTaxRate(taxesList);\n      let orderDetailDoc = {\n        taxRate\n      };\n      if (isFromOutstandingQty) {\n        orderDoc = this.get('tab.pendingDoc.order') || {};\n        orderDetailDoc = this.get('tab.pendingDoc.detail') || {};\n        const outstandingQty = this.get('tab.pendingDoc.outstandingQty') || '';\n        Ember.set(orderDetailDoc, 'qty', outstandingQty);\n      }\n      if (isFromToInvoiceQty) {\n        // just get first detail for now... first in first out, just sort pending order detail by oldest\n        const pendingDocData = this.get('tab.pendingDoc._data.details') || [];\n        const pendingOrderDetail = R.head(pendingDocData) || {};\n        orderDoc = pendingOrderDetail?.order || {};\n        orderDetailDoc = pendingOrderDetail?.detail || {};\n        let toInvoiceQty = this.get('tab.pendingDoc._data.toInvoiceQty') || '';\n        if (R_.isNegative(toInvoiceQty)) {\n          toInvoiceQty = R.negate(toInvoiceQty);\n        }\n        Ember.set(orderDetailDoc, 'qty', toInvoiceQty);\n      }\n\n      // @TODO: refactor\n      if (isFromContactShortcut) {\n        orderDoc.contact = this.get('tab.pendingDoc._data.name') || '';\n        orderDoc.contactKey = this.get('tab.pendingDoc._data._key') || '';\n        contactsModel = this.get('tab.pendingDoc');\n      }\n      if (isFromPendingShortcut) {\n        contactsModel = yield this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: `/${orderDoc.contactKey}`\n        });\n      }\n      if (isFromDocument || isDuplicateDocumentShortcut) {\n        orderDoc.duplicateData = this.get('tab.pendingDoc._data') || {};\n        const contactKey = this.get('tab.pendingDoc._data.contactKey');\n        contactsModel = yield this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: `/${contactKey}`\n        });\n      }\n      // refactor above ^^^\n\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructionsAndClear(tab);\n      const contactKey = loadInstructions?._data?.contactKey;\n      if (contactKey) {\n        // fetch contact\n        contactsModel = yield this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: `/${contactKey}`\n        });\n      }\n      const defaultData = R.mergeRight({\n        docType,\n        docName,\n        paymentMethodsList: R_.dotPath('crud.lists.paymentMethods')(this),\n        paymentTermsList: R_.dotPath('crud.lists.paymentTerms')(this),\n        isFromShortcut,\n        isFromDocument,\n        isDuplicateDocumentShortcut,\n        contactsModel,\n        tabParent: this.tabParent\n      }, orderDoc);\n      model.newBlank(defaultData);\n      model.addDetail(orderDetailDoc);\n\n      // this.setPosData(model)\n      this.addNewDetail(model);\n    }),\n    afterLoadLists() {\n      this._super(...arguments);\n      this.loadDataTask.perform();\n    },\n    showInventoryNotificationTask: (0, _emberConcurrency.task)(function* (model) {\n      if (RA.isNotNilOrEmpty(model)) {\n        const docType = model?._data?.docType || '';\n        const docName = model?._data?.docName || '';\n        const allowedDocName = ['invoices', 'consignments'];\n        if (R.equals(docType, 'purchases') && R.includes(docName, allowedDocName)) {\n          const details = model?._data?.details || [];\n          if (RA.isNotNilOrEmpty(details)) {\n            const q = [];\n            R.forEach(detail => {\n              const itemKey = detail?._data?.itemKey || '';\n              q.push(this.server.call('GET', `api/protected/products/${itemKey}`));\n            })(details);\n            let detailsInventoryData = yield (0, _emberConcurrency.all)(q);\n            detailsInventoryData = R.map(detail => {\n              if (detail?.data) {\n                return detail.data;\n              }\n              return {};\n            })(detailsInventoryData);\n            model.set('detailsInventoryData', detailsInventoryData);\n          }\n        }\n      }\n      if (this.onDisplay) {\n        this.onDisplay(model);\n      }\n      return model;\n    }),\n    onAfterSaveTask: (0, _emberConcurrency.task)(function* (model) {\n      const isPos = R.pathEq(['tabParent', 'isPos'], true)(this);\n      if (isPos) {\n        return this.onNew();\n      }\n      return this.showInventoryNotificationTask.perform(...arguments);\n    }),\n    onAddItemToCartTask: (0, _emberConcurrency.task)(function* (item) {\n      if (item.isDocumentDetail) {\n        try {\n          return this.incrementQty(item);\n        } catch (error) {}\n      }\n      let documentsDetails = item?._data;\n      const docSalesDetails = R.pathOr([], ['model', '_data', 'details'])(this);\n      let documentDetailModel = R.pipe(R.filter(R.hasPath(['_data', 'item'])), R.find(R.anyPass([R.pathEq(['_data', 'item'], documentsDetails?.item), R.pathEq(['_data', 'item'], documentsDetails?.name)])))(docSalesDetails);\n      let product = item?.product;\n      const isProduct = R.propEq('adapterName', 'products')(item);\n      if (isProduct) {\n        product = item;\n        documentsDetails = R.mergeRight(documentsDetails, {\n          index: R.length(docSalesDetails),\n          itemKey: documentsDetails._key,\n          itemCode: documentsDetails.code,\n          item: documentsDetails.name\n        });\n      }\n      let foundDetail = true;\n      if (!documentDetailModel) {\n        documentDetailModel = this.model.addPosDetail(documentsDetails);\n        foundDetail = false;\n      }\n\n      // this.updateIndexes(documentDetailModel)\n      const taxRate = this.productsService.getTaxRate(this?.model.getData('docType'), R_.dotPath('crud.lists.taxes')(this), product);\n      const itemKey = product.getData('_key');\n      const {\n        preferredHistoryData\n      } = yield this.productsService.fetchDocHistoryTask.perform(this.model, 'contact', product, itemKey);\n      this.model.loadProduct(taxRate, documentDetailModel, product, preferredHistoryData);\n      this.incrementQty(documentDetailModel);\n      if (!foundDetail) {\n        this.addNewDetail(this.model);\n      }\n      this.updateIndexes(documentDetailModel);\n    }),\n    onRemoveItemFromCartTask: (0, _emberConcurrency.task)(function* (detail) {\n      this.decrementQty(detail);\n      this.updateIndexes(detail);\n    }),\n    updateIndexes() {\n      const details = this?.model?._data?.details || [];\n      const lastIndex = details.length;\n      let index = 1;\n      R.forEach(detail => {\n        if (!detail?._data?.item) {\n          detail.setData('index', lastIndex);\n        } else {\n          detail.setData('index', index);\n          index += 1;\n        }\n        return detail;\n      })(details);\n    },\n    incrementQty(detail) {\n      const qty = detail?.getData('qty') || 0;\n      const newQty = parseInt(qty, 10) + 1;\n      detail.set('_data.qty', newQty);\n      this.sumTotals();\n      return true;\n    },\n    decrementQty(detail) {\n      if (RA.isNotNilOrEmpty(detail)) {\n        const qty = detail?.getData('qty') || 0;\n        if (qty > 0) {\n          const newQty = parseInt(qty, 10) - 1;\n          detail?.set('_data.qty', newQty);\n          if (newQty === 0) {\n            const details = this?.model?._data?.details || [];\n            details.removeObject(detail);\n          }\n          this.sumTotals();\n          return true;\n        }\n      }\n      return false;\n    },\n    sumTotals() {\n      this.model.sumTotals();\n    },\n    toggleDiscountType(item) {\n      const discType = item?.getData('value');\n      const model = this?.model;\n      if (discType === this?.get('constants.discountTypes.rate')) {\n        const currentDiscValue = model?.getData('discountAmount') || model?.getData('discountRate');\n        model?.setData('discountRate', currentDiscValue);\n        model?.setData('discountAmount', '');\n      } else {\n        const currentDiscValue = model?.getData('discountRate') || model?.getData('discountAmount');\n        model?.setData('discountAmount', currentDiscValue);\n        model?.setData('discountRate', '');\n      }\n      this.sumTotals();\n    },\n    togglePosFullscreenMode() {\n      const tabParent = this.tabParent;\n      tabParent.set('isPosFullScreenMode', !tabParent.isPosFullScreenMode);\n      const appHeader = window.document.querySelector('.app-grid__header');\n      if (tabParent?.isPosFullScreenMode) {\n        appHeader.classList.add('u-display-none');\n      } else {\n        appHeader.classList.remove('u-display-none');\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateIndexes\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateIndexes\"), _obj), _applyDecoratedDescriptor(_obj, \"incrementQty\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"incrementQty\"), _obj), _applyDecoratedDescriptor(_obj, \"decrementQty\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"decrementQty\"), _obj), _applyDecoratedDescriptor(_obj, \"sumTotals\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"sumTotals\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleDiscountType\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"toggleDiscountType\"), _obj), _applyDecoratedDescriptor(_obj, \"togglePosFullscreenMode\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"togglePosFullscreenMode\"), _obj), _obj));\n});","define(\"client/pods/components/documents/panel-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bKnF8fbc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"posProfilesSelectorComponent\\\",\\\"@tabParent\\\"],\\\"statements\\\":[[5,\\\"documents/pos/profiles-selector\\\",[],[[\\\"@tab\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"documents/editor-main\\\",null,[[\\\"tab\\\",\\\"tabParent\\\",\\\"model\\\",\\\"infoComponent\\\",\\\"detailsComponent\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"onDash\\\",\\\"errors\\\",\\\"onPreSubmit\\\",\\\"onAddNewDetail\\\",\\\"onSubmitTask\\\",\\\"fetchHCTRegionDataTask\\\",\\\"onCancel\\\",\\\"onAfter\\\",\\\"isFromPendingShortcut\\\",\\\"isFromDocument\\\",\\\"isLinkingNeeded\\\",\\\"onAddItemToCartTask\\\",\\\"onRemoveItemFromCart\\\",\\\"areProductsFullScreen\\\",\\\"posGridClassNames\\\",\\\"onTogglePosFullscreenMode\\\",\\\"isPosFullScreenMode\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"tabParent\\\"]],[24,[\\\"model\\\"]],[24,[\\\"tab\\\",\\\"editorInfoComponent\\\"]],[24,[\\\"tab\\\",\\\"editorDetailsComponent\\\"]],true,true,[24,[\\\"onDash\\\"]],[24,[\\\"errors\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"preSubmit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"addNewDetail\\\",[24,[\\\"model\\\"]]],null],[24,[\\\"createRecordTask\\\"]],[24,[\\\"fetchHCTRegionDataTask\\\"]],[24,[\\\"onDash\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onAfterSaveTask\\\"]]],null],[24,[\\\"isFromPendingShortcut\\\"]],[24,[\\\"isFromDocument\\\"]],[24,[\\\"isLinkingNeeded\\\"]],[23,0,[\\\"onAddItemToCartTask\\\"]],[23,0,[\\\"onRemoveItemFromCartTask\\\"]],[23,0,[\\\"areProductsFullScreen\\\"]],[23,0,[\\\"panelNewClassNames\\\"]],[23,0,[\\\"togglePosFullscreenMode\\\"]],[24,[\\\"tabParent\\\",\\\"isPosFullScreenMode\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/panel-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/panel-refund/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/settings\", \"client/mixins/crud\", \"client/pods/components/documents/mixins/pre-submit\", \"client/pods/components/documents/mixins/details\"], function (_exports, _date, _settings, _crud, _preSubmit, _details) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _details.default, _settings.default, _crud.default, _preSubmit.default, {\n    crud: Ember.inject.service(),\n    adapterName: 'documents/sales/returns',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['taxes']);\n    },\n    actions: {\n      addNewDetail() {\n        // dont add new detail\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/panel-refund/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8wokQQPu\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"documents/editor-main\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"selectedContact\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"isQuickLinkDoc\\\",\\\"quickLinkFromDocType\\\",\\\"quickLinkFromDocName\\\",\\\"quickLinkFromDocNo\\\",\\\"quickLinkToDocType\\\",\\\"quickLinkToDocName\\\",\\\"docType\\\",\\\"docName\\\",\\\"hideOriginalQty\\\",\\\"quickLinkQtyLabel\\\",\\\"splitQtyLabel\\\",\\\"onDash\\\",\\\"errors\\\",\\\"onPreSubmit\\\",\\\"onAddNewDetail\\\",\\\"onSubmitTask\\\",\\\"submitFinalAppendPath\\\",\\\"fetchHCTRegionDataTask\\\",\\\"onAfter\\\",\\\"onCancel\\\",\\\"showRefundWorkflow\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"dirty\\\",\\\"selectedContact\\\"]],true,true,true,[24,[\\\"quickLinkFromDocType\\\"]],[24,[\\\"quickLinkFromDocName\\\"]],[24,[\\\"quickLinkFromDocNo\\\"]],[24,[\\\"quickLinkToDocType\\\"]],[24,[\\\"quickLinkToDocName\\\"]],[24,[\\\"quickLinkToDocType\\\"]],[24,[\\\"quickLinkToDocName\\\"]],[24,[\\\"hideOriginalQty\\\"]],[24,[\\\"quickLinkQtyLabel\\\"]],[24,[\\\"splitQtyLabel\\\"]],[24,[\\\"onDash\\\"]],[24,[\\\"errors\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"preSubmit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"addNewDetail\\\",[24,[\\\"dirty\\\"]]],null],[24,[\\\"createReturnsRecordTask\\\"]],[24,[\\\"appendPath\\\"]],[24,[\\\"fetchHCTRegionDataTask\\\"]],[24,[\\\"onAfter\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEditing\\\",[28,\\\"hash\\\",null,[[\\\"dirty\\\",\\\"onAfter\\\"],[[24,[\\\"dirty\\\"]],[24,[\\\"onAfter\\\"]]]]]],null],[24,[\\\"showRefundWorkflow\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/panel-refund/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/panel-split/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/settings\", \"client/mixins/crud\", \"client/pods/components/documents/mixins/pre-submit\", \"client/pods/components/documents/mixins/details\", \"ember-concurrency\", \"client/pods/components/documents/docConfig\"], function (_exports, _date, _settings, _crud, _preSubmit, _details, _emberConcurrency, _docConfig) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _details.default, _settings.default, _crud.default, _preSubmit.default, {\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['taxes']);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const config = _docConfig.default.getFor({\n        docType: model._data.docType,\n        docName: model._data.docName\n      });\n      const tab = Ember.Object.create({\n        config\n      });\n      this.set('tab', tab);\n      this.set('dontFetchRegionCode', this.get('tab.config.dontFetchRegionCode'));\n      const adapterName = this.get('tab.config.adapterName');\n      this.set('adapterName', adapterName);\n      const dirty = this.setupDirty({\n        adapterName,\n        model\n      });\n      this.set('dirty', dirty);\n      const contactKey = dirty.getData('contactKey');\n      if (contactKey) {\n        const contact = yield this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: contactKey\n        });\n        this.set('selectedContact', contact);\n        dirty.set('selectedContact', contact);\n      }\n    }),\n    afterLoadLists() {\n      this._super(...arguments);\n      const dirty = this.dirty;\n      // @TODO: setup on model? but documents should be different based on context, so should not be setup in model?\n      // eg. document entered here may be exclusive, but documents created via shop should be inclusive\n      // set default discount types\n      if (!dirty.getData('discountMethod')) {\n        dirty.setData('discountMethod', this.get('constants.discountMethods.onTotal'));\n      }\n      if (!dirty.getData('discountType')) {\n        dirty.setData('discountType', this.get('constants.discountTypes.rate'));\n      }\n      if (this.get('model.docName') === 'orders' || this.get('model.docName') === 'quotes') {\n        dirty.setData('deliveryDateOption', this.get('constants.deliveryDateOptions.single'));\n      }\n    },\n    splitAndUpdateRecordTask: (0, _emberConcurrency.task)(function* ({\n      appendPath\n    }) {\n      const adapterName = this.adapterName;\n      const dirty = this.dirty;\n      return yield this.updateRecordTask.perform({\n        adapterName,\n        appendPath,\n        model: dirty,\n        onAfter: this.onAfterSplit,\n        rawResponse: true\n      });\n    }).drop(),\n    actions: {\n      addNewDetail() {\n        // dont add new detail\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/panel-split/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TzV6tFzn\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"documents/editor-main\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"selectedContact\\\",\\\"isEditing\\\",\\\"isSplitting\\\",\\\"splitQtyLabel\\\",\\\"onDash\\\",\\\"errors\\\",\\\"onPreSubmit\\\",\\\"onAddNewDetail\\\",\\\"onSubmitTask\\\",\\\"submitFinalAppendPath\\\",\\\"fetchHCTRegionDataTask\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"selectedContact\\\"]],true,true,\\\"split qty\\\",[24,[\\\"onDash\\\"]],[24,[\\\"errors\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"preSubmit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"addNewDetail\\\",[24,[\\\"dirty\\\"]]],null],[24,[\\\"splitAndUpdateRecordTask\\\"]],[24,[\\\"appendPath\\\"]],[24,[\\\"fetchHCTRegionDataTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEditing\\\",[28,\\\"hash\\\",null,[[\\\"dirty\\\",\\\"onAfter\\\"],[[24,[\\\"dirty\\\"]],[24,[\\\"onCloseDialogAction\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/panel-split/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/payments-status-tag/component\", [\"exports\", \"client/mixins/doc-status\", \"client/mixins/date\", \"ember-concurrency\", \"ramda\"], function (_exports, _docStatus, _date, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _docStatus.default, {\n    crud: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    tagName: '',\n    showDropdown: false,\n    autoFetchLists: true,\n    readonly: false,\n    autoPosition: true,\n    init() {\n      this._super(...arguments);\n      if (!this.dispatchProcesses && this.autoFetchLists) {\n        this.crud.addLists(this, ['dispatch/lists/processes']);\n      }\n    },\n    paymentMethodCustomLabel: Ember.computed('model._data.{paymentMethodKey,paymentMethodCustomLabel}', function () {\n      const paymentMethodCustomLabel = this.model?._data?.paymentMethodCustomLabel;\n      if (!paymentMethodCustomLabel) {\n        return '';\n      }\n      const paymentMethodKey = this.model?._data?.paymentMethodKey;\n      const paymentMethodLabel = this.intl.t(paymentMethodKey);\n      return `${paymentMethodCustomLabel} ( ${paymentMethodLabel} )`;\n    }),\n    paymentMethodLabel: Ember.computed('model._data.{paymentMethodKey,paymentCreditCardStatus}', function () {\n      const paymentMethodKey = this.model?._data?.paymentMethodKey;\n      const paymentMethodLabel = this.intl.t(paymentMethodKey);\n      const paymentMethodStatus = this.model?._data?.paymentCreditCardStatus;\n      const paymentMethodStatusLabel = this.intl.t(`cc_${paymentMethodStatus}`);\n      return `${paymentMethodLabel} : ${paymentMethodStatusLabel}`;\n    }),\n    refundedPayments: Ember.computed('model._data.{paymentMethodKey,paymentMethodCustomLabel,creditCardRefunds}', function () {\n      const creditCardRefunds = this.model?._data?.creditCardRefunds || [];\n      if (creditCardRefunds.length === 0) {\n        return [];\n      }\n      const paymentMethodKey = this.model?._data?.paymentMethodKey;\n      const paymentMethodLabel = this.intl.t(paymentMethodKey);\n      return creditCardRefunds.map(refund => {\n        const refundPaymentMethodStatus = refund?.status;\n        const paymentMethodStatusLabel = this.intl.t(`cc_${refundPaymentMethodStatus}`);\n        const paymentLabel = `${paymentMethodLabel} : ${paymentMethodStatusLabel}`;\n        return Object.assign({\n          paymentLabel\n        }, refund);\n      });\n    }),\n    refundScheduledPayments: Ember.computed('model.creditCardRefundsSchedules', function () {\n      const creditCardRefundsSchedules = this.model?.creditCardRefundsSchedules || [];\n      if (creditCardRefundsSchedules.length === 0) {\n        return [];\n      }\n      const paymentMethodKey = this.model?._data?.paymentMethodKey;\n      const paymentMethodLabel = this.intl.t(paymentMethodKey);\n      return creditCardRefundsSchedules.map(refund => {\n        const refundPaymentMethodStatus = refund?.status;\n        const paymentMethodStatusLabel = this.intl.t(`cc_${refundPaymentMethodStatus}`);\n        const paymentLabel = `${paymentMethodLabel} : ${paymentMethodStatusLabel}`;\n        return Object.assign({\n          paymentLabel\n        }, refund);\n      });\n    }),\n    isNonTapPayRefundRequested: Ember.computed('model._data.paymentCreditCardStatus', function () {\n      if (this.model._data.paymentCreditCardProvider !== 'tapPay' && this.model._data.paymentCreditCardStatus === this.constants.paymentCreditCardStatus.refundRequested && this.refundedPayments.length === 0 && this.refundScheduledPayments.length === 0) {\n        return true;\n      }\n      return false;\n    }),\n    hasCreditCardTransactionCode: Ember.computed('model._data.paymentCreditCardTransactionCode', function () {\n      const paymentCreditCardTransactionCode = this?.model?._data?.paymentCreditCardTransactionCode;\n      if (paymentCreditCardTransactionCode) {\n        return true;\n      }\n      return false;\n    }),\n    isCreditCard: Ember.computed('model._data.paymentMethodKey', function () {\n      const isPaymentMethodKeyCreditCard = R.pathEq(['model', '_data', 'paymentMethodKey'], this.constants.paymentMethods.creditCard)(this);\n      if (isPaymentMethodKeyCreditCard) {\n        return true;\n      }\n      return false;\n    }),\n    isVirtualAccount: Ember.computed('model._data.paymentMethodKey', 'model._data.paymentData.virtualAccountNumber', function () {\n      if (this.isCreditCard) {\n        return false;\n      }\n      const virtualAccountNumber = this?.model?._data?.paymentData?.virtualAccountNumber;\n      if (virtualAccountNumber) {\n        return true;\n      }\n      return false;\n    }),\n    statusClassName: Ember.computed('status', function () {\n      const status = this.status;\n      if (status === 'approved') {\n        return 'is-success';\n      }\n      if (status === 'refunded') {\n        return 'is-danger';\n      }\n      return 'is-warning';\n    }),\n    virtualAccountLastFiveDigits: Ember.computed('model._data.paymentData.fromBankAccountNumber', function () {\n      const fromBankAccountNumber = this?.model?._data?.paymentData?.payload?.fromBankAccountNumber;\n      if (fromBankAccountNumber) {\n        return fromBankAccountNumber.slice(-5);\n      }\n      return '';\n    }),\n    virtualAccountStatusLabel: Ember.computed('model._data.paymentData.{status,paymentAmount}', function () {\n      const status = this.model?._data?.paymentData?.status;\n      const statusLabel = this.intl.t(`atm_${status}`);\n      const paymentMethodKey = this.model?._data?.paymentMethodKey;\n      const paymentMethodLabel = this.intl.t(paymentMethodKey);\n      const paymentAmount = this.model?._data?.paymentData?.paymentAmount || '';\n      if (!paymentAmount || status === 'approved') {\n        return `${paymentMethodLabel} : ${statusLabel}`;\n      }\n      return `${this.intl.t('paid')}: $ ${this.intl.formatNumber(paymentAmount)} (${statusLabel})`;\n    }),\n    virtualAccountStatusClassName: Ember.computed('model._data.paymentData.status', function () {\n      const status = this.model?._data?.paymentData?.status;\n      if (status === 'approved') {\n        return 'is-success';\n      }\n      if (status === 'attentionRequired') {\n        return 'is-danger';\n      }\n      return 'is-warning';\n    }),\n    virtualAccountIsIncorrectAmountPaidAndAttentionRequired: Ember.computed('model._data.paymentData.{status,paymentAmount,paymentDifference}', function () {\n      const paymentDifference = parseInt(this.model?._data?.paymentData?.paymentDifference) || 0;\n      const paymentAmount = parseInt(this.model?._data?.paymentData?.paymentAmount) || 0;\n      if (this.model?._data?.paymentData.status === 'attentionRequired' && paymentAmount > 0 && paymentDifference !== 0) {\n        return true;\n      }\n      return false;\n    }),\n    virtualAccountIsExpiredAndAttenionRequired: Ember.computed('model._data.paymentData.{status,paymentAmount,paymentDifference}', function () {\n      const paymentDifference = parseInt(this.model?._data?.paymentData?.paymentDifference) || 0;\n      const paymentAmount = parseInt(this.model?._data?.paymentData?.paymentAmount) || 0;\n      if (this.model?._data?.paymentData.status === 'attentionRequired' && paymentAmount > 0 && paymentDifference === 0) {\n        return true;\n      }\n      return false;\n    }),\n    isDropdownVisible: Ember.computed('showDropdown', 'isBtn', function () {\n      // const list = this.get('list') || []\n      if (!this.isBtn) {\n        return false;\n      }\n      if (this.readonly === false && this.showDropdown) {\n        // if (this.get('readonly') === false && this.get('showDropdown') && list.length > 0) {\n        return true;\n      }\n      return false;\n    }),\n    translatedDispatchProcess: Ember.computed('model._data.dispatchProcessLabel', 'crud.lists.dispatch-lists-processes.[]', 'dispatchProcesses.[]', function () {\n      // translatedDispatchProcess: computed('model._data.dispatchProcess', 'crud.lists.dispatch-lists-processes.[]', 'dispatchProcesses.[]', function () {\n      // const model = this.get('model')\n      const dispatchProcessLabel = this.get('model._data.dispatchProcessLabel');\n      const dispatchProcessLabelTranslate = this.get('model._data.dispatchProcessLabelTranslate');\n      if (dispatchProcessLabelTranslate) {\n        return this.intl.t(dispatchProcessLabel);\n      }\n      return dispatchProcessLabel;\n    }),\n    label: Ember.computed('model._data.{status,dispatchProcess,dispatchDateZ}', 'translatedDispatchProcess', function () {\n      // @TODO: move to model?\n      const model = this.model;\n      const status = model.getData('status');\n      const intl = this.intl;\n      let label = intl.t(status);\n      if (this.get('model._data.isMerged')) {\n        return intl.t('merged_document');\n      }\n      if (!this.get('model.hasDispatchProcess')) {\n        return label;\n      }\n      const dispatchProcess = model.getData('dispatchProcess');\n      const dispatchDateZ = model.getData('dispatchDateZ');\n      if (status === this.get('constants.documentsStatus.final')) {\n        label = this.translatedDispatchProcess;\n        if (dispatchProcess === this.get('constants.dispatchProcess.dispatched')) {\n          const date = this.formatDate(dispatchDateZ);\n          label = `${label}: ${date}`;\n        }\n      }\n      if (!label) {\n        label = intl.t(this.get('constants.dispatchProcess.unprepared'));\n      }\n      return label;\n    }),\n    paymentTransactionOverDue: Ember.computed('model._data.{paymentCreditCardProvider,paymentCreditCardTransactionTimestampZ}', function () {\n      const paymentCreditCardProvider = R.pathOr('', ['model', '_data', 'paymentCreditCardProvider'])(this);\n      if (paymentCreditCardProvider === 'tapPay') {\n        const overDueAfter = 20; //Minutes\n        const now = this.dateService.getMoment().subtract(overDueAfter, 'm');\n        const paymentCreditCardTransactionTimestampZ = R.pipe(R.pathOr('', ['model', '_data', 'paymentCreditCardTransactionTimestampZ']), time => this.dateService.getMoment(time))(this);\n        return now.isAfter(paymentCreditCardTransactionTimestampZ);\n      }\n      return null;\n    }),\n    /**\n     * @deprecated\n     */\n    allowedPaymentMethod: Ember.computed('model._data.paymentMethodKey', function () {\n      const isCreditCard = R.pathEq(['model', '_data', 'paymentMethodKey'], this.get('constants.paymentMethods.creditCard'))(this);\n      const isLinePay = R.pathEq(['model', '_data', 'paymentMethodKey'], this.get('constants.paymentMethods.linePay'))(this);\n      if (isCreditCard || isLinePay) {\n        return true;\n      }\n      return false;\n    }),\n    allowedDocTypeAndDocName: Ember.computed('model._data.{docName,docType}', function () {\n      const isDocNameInvoices = R.pathEq(['model', '_data', 'docName'], 'invoices')(this);\n      const isDocTypeSales = R.pathEq(['model', '_data', 'docType'], 'sales')(this);\n      if (isDocNameInvoices && isDocTypeSales) {\n        return true;\n      }\n      return false;\n    }),\n    updatePaymentStatusTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, dirty, paymentStatus, onAfter) {\n      dirty.setData('paymentData.status', paymentStatus);\n      yield this.crud.updateRecordTask.perform({\n        adapterName: 'documents/sales/invoices',\n        model: dirty,\n        appendPath: '/virtual-account/payment-status'\n      });\n      if (onAfter) {\n        onAfter();\n      }\n      onCloseDialogAction();\n    }),\n    actions: {\n      hideDropdown() {\n        this.set('showDropdown', false);\n      },\n      showDropdown() {\n        this.set('showDropdown', true);\n      },\n      submit() {\n        const onSubmit = this.onSubmit;\n        if (onSubmit) {\n          onSubmit(...arguments);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/payments-status-tag/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yDN5AXeX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"schedule\\\",\\\"refundPayment\\\",\\\"@model\\\",\\\"@displayAsRows\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"paymentMethodCustomLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,0,[\\\"paymentMethodCustomLabel\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"status\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,0,[\\\"statusClassName\\\"]]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"cc_\\\",[24,[\\\"status\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"amount\\\"]]],null,{\\\"statements\\\":[[0,\\\"      : \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"amount\\\"]]],[[\\\"negative\\\"],[[24,[\\\"negative\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"hasPaymentStatus\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"allowedDocTypeAndDocName\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"hasCreditCardTransactionCode\\\"]],[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]],[24,[\\\"constants\\\",\\\"paymentCreditCardStatus\\\",\\\"approved\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@clickToView\\\"],[[23,0,[\\\"paymentMethodLabel\\\"]],false,false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"cc_ref\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"orderNumber\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"transaction number\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionCode\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"creditCardLastFourDigits\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"last 4 digits\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"creditCardLastFourDigits\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not-eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardProvider\\\"]],\\\"tapPay\\\"],null],[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]],[24,[\\\"constants\\\",\\\"paymentCreditCardStatus\\\",\\\"approved\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"cc_approved\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardProvider\\\"]],\\\"tapPay\\\"],null],[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]],[24,[\\\"constants\\\",\\\"paymentCreditCardStatus\\\",\\\"refundRequested\\\"]]],null]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isNonTapPayRefundRequested\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"paymentMethodLabel\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]],[24,[\\\"constants\\\",\\\"paymentCreditCardStatus\\\",\\\"refunded\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refunded\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isAwaitingPayment\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"cc_awaitingPayment\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"paymentTransactionOverDue\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"cc_unsuccessful\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isTapPay\\\"]],[24,[\\\"model\\\",\\\"isUnsuccessfulTransaction\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"cc_unsuccessful\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,0,[\\\"refundedPayments\\\"]]],null],[28,\\\"not\\\",[[23,0,[\\\"refundScheduledPayments\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"cc_awaitingPayment\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"creditCard\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"refundedPayments\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,3,[\\\"paymentLabel\\\"]],false],[0,\\\" :  \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"refundAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"refundScheduledPayments\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"paymentLabel\\\"]],false],[0,\\\" :  \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"payload\\\",\\\"refundAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isVirtualAccount\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,0,[\\\"virtualAccountStatusClassName\\\"]]]]],[8],[0,\\\"\\\\n      \\\"],[1,[23,0,[\\\"virtualAccountStatusLabel\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"virtual account\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n      : \\\"],[1,[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"virtualAccountNumber\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"paymentAmount\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"payment date\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n        : \\\"],[1,[28,\\\"dateTime\\\",[[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"paymentTimestampZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"payload\\\",\\\"fromBankAccountNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"virtual_account_from_account\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n        : \\\"],[1,[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"payload\\\",\\\"fromBankAccountNumber\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"payload\\\",\\\"fromBankBranchCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"          (\\\"],[1,[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"payload\\\",\\\"fromBankBranchCode\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"status\\\"]],\\\"pending\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"expiryDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"virtual account expiry date\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n          : \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"expiryDateZ\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"message\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,0,[\\\"virtualAccountStatusClassName\\\"]]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@clickToView\\\"],[[23,0,[\\\"virtualAccountStatusLabel\\\"]],false,false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"virtual account\\\"],null],false],[0,\\\": \\\"],[1,[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"virtualAccountNumber\\\"]],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"paymentAmount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"(\\\"],[1,[28,\\\"tt\\\",[\\\"payment date\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"paymentTimestampZ\\\"]]],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"payload\\\",\\\"fromBankAccountNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"virtual_account_from_account\\\"],null],false],[0,\\\": \\\"],[1,[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"payload\\\",\\\"fromBankAccountNumber\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"payload\\\",\\\"fromBankBranchCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"              (\\\"],[1,[23,4,[\\\"_data\\\",\\\"paymentData\\\",\\\"payload\\\",\\\"fromBankBranchCode\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"status\\\"]],\\\"pending\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"expiryDateZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"(\\\"],[1,[28,\\\"tt\\\",[\\\"virtual account expiry date\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"expiryDateZ\\\"]]],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"message\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"virtualAccountLastFiveDigits\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@classNames\\\"],[\\\"account last 5 digits\\\",\\\"u-desc\\\"]]],[0,\\\"\\\\n      : \\\"],[1,[23,0,[\\\"virtualAccountLastFiveDigits\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"status\\\"]],\\\"approved\\\"],null],[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"status\\\"]],\\\"pending\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"virtualAccountIsIncorrectAmountPaidAndAttentionRequired\\\"]],[23,0,[\\\"virtualAccountIsExpiredAndAttenionRequired\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-exclamation-triangle\\\",[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"setupDirty\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"component\\\"],[\\\"documents/sales/invoices\\\",[23,0,[\\\"model\\\"]],[23,0,[]]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"cancelEditing\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"dirty\\\"],[\\\"documents/sales/invoices\\\",[23,0,[\\\"dirty\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"paymentData.message\\\",\\\"documents\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"description\\\",\\\"paymentData.message\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"value\\\"],[true,[24,[\\\"dirty\\\",\\\"_data\\\",\\\"paymentData\\\",\\\"message\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,0,[\\\"dirty\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[23,0,[\\\"updatePaymentStatusTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/btn-delete\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"requiresConfirmation\\\",\\\"onSubmit\\\"],[\\\"void\\\",[23,0,[\\\"updatePaymentStatusTask\\\",\\\"isRunning\\\"]],true,[28,\\\"perform\\\",[[23,0,[\\\"updatePaymentStatusTask\\\"]],[23,1,[]],[23,0,[\\\"dirty\\\"]],\\\"expired\\\"],null]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"mark as paid\\\",[23,0,[\\\"updatePaymentStatusTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updatePaymentStatusTask\\\"]],[23,1,[]],[23,0,[\\\"dirty\\\"]],\\\"approved\\\",[24,[\\\"onAfter\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[[23,4,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isRecurringMaster\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"isRecurringMaster\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isRecurringChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"isRecurringChild\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/payments-status-tag/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, R_) {\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;\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 DocumentsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('products'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _class = class DocumentsFiltersAdvancedComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"shopNoneToggle\", _descriptor7, this);\n    }\n    get activeSubTabLabel() {\n      const currentSubTab = this.tabsManager.getActiveSubTab(this.args.tab);\n      return currentSubTab.type;\n    }\n    get showResetFilter() {\n      // @TODO: move to filter model\n      const filtersData = this?.args?.filters?._data;\n      if (RA.isNilOrEmpty(filtersData)) {\n        return false;\n      }\n      const statuses = filtersData.statuses;\n      const hasImages = filtersData.hasImages;\n      const item = filtersData.item;\n      const itemCode = filtersData.itemCode;\n      const price = filtersData.price;\n      const setTypes = filtersData.setTypes;\n      const tags = filtersData.tags;\n      if (statuses.length !== 5 || tags.length !== 0 || setTypes.length !== 0 || RA.isNilOrEmpty(hasImages) !== true || item !== '' || itemCode !== '' || price !== '') {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"shopNoneToggle\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n});","define(\"client/pods/components/documents/pending/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WfHYTLYF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@isRunning\\\",\\\"@filters\\\",\\\"@onReloadSearchRecords\\\",\\\"@disallowSaveFilters\\\",\\\"@isGuest\\\",\\\"@onSearch\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"activeSubTabLabel\\\"]],\\\"byProducts\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"item\\\",[23,3,[\\\"_data\\\",\\\"item\\\"]],[23,2,[]],true,[23,7,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"contact\\\",[23,3,[\\\"_data\\\",\\\"contact\\\"]],[23,2,[]],true,[23,7,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"code\\\",[23,3,[\\\"_data\\\",\\\"itemCode\\\"]],[23,2,[]],true,[23,7,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"document number\\\",[23,3,[\\\"_data\\\",\\\"docNo\\\"]],[23,2,[]],true,[23,7,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"item\\\",[23,3,[\\\"_data\\\",\\\"item\\\"]],[23,2,[]],true,[23,7,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"company\\\",[23,3,[\\\"_data\\\",\\\"contact\\\"]],[23,2,[]],true,[23,7,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"code\\\",[23,3,[\\\"_data\\\",\\\"code\\\"]],[23,2,[]],true,[23,7,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\" \\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"hide\\\",\\\"fas fa-angle-up\\\",[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,3,[]],\\\"showFilters\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,3,[]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,1,[]],[23,2,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,1,[]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,3,[]],true]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,1,[]],[23,2,[]],[23,7,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/panel-display-by-orders/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 DocumentsPendingPanelDisplayByOrders = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class DocumentsPendingPanelDisplayByOrders extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      const tab = this.args.tab;\n      this.loadTabTask.perform();\n    }\n    *loadTabTask() {\n      const filters = this.args.filters;\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'documents/data/pending',\n        appendPath: `${this.args.docType}/${this.args.docName}`,\n        filters\n      });\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadTabTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTabTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pending/panel-display-by-orders/table-view/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 DocumentsPendingPanelDisplayByOrdersTableView = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('documents'), _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class DocumentsPendingPanelDisplayByOrdersTableView extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"documentsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showDetails\", _descriptor3, this);\n    }\n    select() {}\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"documentsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showDetails\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pending/panel-display-by-orders/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 DocumentsPendingPanelDisplayByOrdersTableViewDetailRow = _exports.default = (_dec = Ember.inject.service('documents'), _class = class DocumentsPendingPanelDisplayByOrdersTableViewDetailRow extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"documentsService\", _descriptor, this);\n    }\n    get pendingDoc() {\n      const pendingDoc = this.args.detail;\n      pendingDoc.order = this.args.model._data;\n      return pendingDoc;\n    }\n    get linkDocName() {\n      let linkDocName = '';\n      const docName = this.args?.tableViewOptions?.docName || '';\n      if (R.equals(docName, 'orders')) {\n        linkDocName = 'invoices';\n      }\n      if (R.equals(docName, 'invoices')) {\n        linkDocName = 'orders';\n      }\n      if (R.equals(docName, 'consignments')) {\n        linkDocName = 'consignments-returns';\n      }\n      if (R.equals(docName, 'consignments-returns')) {\n        linkDocName = 'consignments';\n      }\n      return linkDocName;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"documentsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/documents/pending/panel-display-by-orders/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Pl5c/tyQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tableViewOptions\\\",\\\"@detail\\\",\\\"@filters\\\",\\\"@isDetailRow\\\",\\\"@isHeader\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"ordered_\\\",[23,3,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"_delivered_\\\",[23,3,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"outstanding_\\\",[23,3,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"ordered qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"delivered qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"outstanding qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"item\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"itemCode\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"ordersExclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"invoicesExclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"outstandingExclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"ordersInclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"invoicesInclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"outstandingInclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"ordersQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"invoicesQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"outstandingQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,2,[\\\"pendingStatus\\\"]],\\\"complete\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"mark as completed\\\",[23,0,[\\\"documentsService\\\",\\\"markPendingAsCompletedTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentsService\\\",\\\"markPendingAsCompletedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"detail\\\",\\\"docType\\\",\\\"docName\\\"],[[23,2,[]],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"undo\\\",[23,0,[\\\"documentsService\\\",\\\"undoMarkPendingAsCompletedTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentsService\\\",\\\"undoMarkPendingAsCompletedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"detail\\\",\\\"docType\\\",\\\"docName\\\"],[[23,2,[]],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/panel-display-by-orders/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/panel-display-by-orders/table-view/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qRfIzeL2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"@filters\\\",\\\"@model\\\",\\\"@tableViewOptions\\\",\\\"@onMainAction\\\",\\\"@detailInfoRowClassName\\\",\\\"@modelProxy\\\",\\\"@rowIndex\\\",\\\"@isDetailRow\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@hasHeadersSort\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,2,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,11,[]],[23,2,[]],\\\"contact\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,2,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,4,[\\\"docType\\\"]],\\\"-\\\",[23,4,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,11,[]],[23,2,[]],\\\"contact\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,2,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"company\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,11,[]],[23,2,[]],\\\"code\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,2,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,11,[]],[23,2,[]],\\\"dateZ\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,2,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,11,[]],[23,2,[]],\\\"ref\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,2,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,11,[]],[23,2,[]],\\\"ordersExclTotal\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,2,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"ordered_\\\",[23,2,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,11,[]],[23,2,[]],\\\"invoicesExclTotal\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,2,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,4,[\\\"docType\\\"]],\\\"_delivered_\\\",[23,2,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,11,[]],[23,2,[]],\\\"outstandingExclTotal\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,2,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"outstanding_\\\",[23,2,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"table-view__detail-row--alt \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,8,[]]],null],\\\"even\\\",\\\"odd\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,7,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[23,6,[]],\\\" \\\"]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[23,8,[]],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n      #\\\"],[1,[23,3,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n      \\\"],[1,[23,3,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n      \\\"],[1,[23,3,[\\\"_data\\\",\\\"code\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"date\\\",[[23,3,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n      \\\"],[1,[23,3,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"ordersExclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"invoicesExclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"outstandingExclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"ordersInclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"invoicesInclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,5,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"outstandingInclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@translate\\\",\\\"@tooltipLabel\\\",\\\"@label\\\",\\\"@toggleIsOn\\\"],[true,false,true,\\\"fas fa-angle-down\\\",\\\"fas fa-angle-right\\\",false,[28,\\\"count\\\",[[23,3,[\\\"_data\\\",\\\"details\\\"]]],null],[28,\\\"count\\\",[[23,3,[\\\"_data\\\",\\\"details\\\"]]],null],[23,0,[\\\"showDetails\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"documents/pending/panel-display-by-orders/table-view/detail-row\\\",[],[[\\\"@isTaxExclusive\\\",\\\"@taxMethod\\\",\\\"@isHeader\\\",\\\"@detail\\\",\\\"@model\\\",\\\"@filters\\\",\\\"@tableViewOptions\\\",\\\"@subTabOptions\\\"],[[23,2,[\\\"isTaxExclusive\\\"]],[23,2,[\\\"_data\\\",\\\"taxMethod\\\"]],true,[22,\\\"detail\\\"],[23,3,[]],[23,2,[]],[23,4,[]],[23,0,[\\\"subTabOptions\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"documents/pending/panel-display-by-orders/table-view/detail-row\\\",[],[[\\\"@isTaxExclusive\\\",\\\"@taxMethod\\\",\\\"@isDetailRow\\\",\\\"@detail\\\",\\\"@model\\\",\\\"@filters\\\",\\\"@tableViewOptions\\\",\\\"@subTabOptions\\\"],[[23,2,[\\\"isTaxExclusive\\\"]],[23,2,[\\\"_data\\\",\\\"taxMethod\\\"]],true,[23,1,[]],[23,3,[]],[23,2,[]],[23,4,[]],[23,0,[\\\"subTabOptions\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/panel-display-by-orders/table-view/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/panel-display-by-orders/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zoisSEFs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@docName\\\",\\\"@docType\\\",\\\"@filters\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"paginationIsFooter\\\",\\\"results\\\",\\\"filters\\\",\\\"isRunning\\\",\\\"onSearchTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onPaginationTask\\\",\\\"tableViewOptions\\\"],[[23,4,[]],\\\"documents/pending/panel-display-by-orders/table-view\\\",false,[23,3,[\\\"results\\\"]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"docType\\\",\\\"docName\\\"],[[23,2,[]],[23,1,[]]]]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/panel-display-by-orders/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 DocumentsPendingPanelDisplayByProducts = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class DocumentsPendingPanelDisplayByProducts extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      const tab = this.args.tab;\n      this.loadTabTask.perform();\n    }\n    *loadTabTask() {\n      const filters = this.args.filters;\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'documents/data/pending',\n        appendPath: `${this.args.docType}/${this.args.docName}`,\n        filters\n      });\n      return results;\n    }\n    get tableViewComponent() {\n      return `documents/pending/panel-display-by-products/${this.args.docName}/table-view`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadTabTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTabTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 DocumentsPendingPanelDisplayByProductsOrdersTableView = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _class = class DocumentsPendingPanelDisplayByProductsOrdersTableView extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"markAsCompleted\", _descriptor4, this);\n      _initializerDefineProperty(this, \"linkDocName\", _descriptor5, this);\n    }\n    get linkDocType() {\n      const model = this.args.model;\n      const toInvoiceQty = model.getData('toInvoiceQty');\n      if (R.gt(toInvoiceQty, 0)) {\n        return 'sales';\n      }\n      return 'purchases';\n    }\n    get isZeroInvoiceQty() {\n      const model = this.args.model;\n      const toInvoiceQty = model.getData('toInvoiceQty');\n      if (R.equals(0, toInvoiceQty)) {\n        return true;\n      }\n      return false;\n    }\n    get isLinkingNeeded() {\n      const linkDocType = this.linkDocType;\n      const docType = this.args.tableViewOptions.docType;\n      if (R.equals(docType, linkDocType)) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"markAsCompleted\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"linkDocName\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'invoices';\n    }\n  }), _class);\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 DocumentsPendingPanelDisplayByProductsConsignmentssTableViewDetailRow = _exports.default = (_dec = Ember.inject.service('documents'), _dec2 = Ember.inject.service, _class = class DocumentsPendingPanelDisplayByProductsConsignmentssTableViewDetailRow extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"documentsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n    }\n    get linkDocName() {\n      let linkDocName = '';\n      const docName = this.args?.tableViewOptions?.docName || '';\n      if (R.equals(docName, 'orders')) {\n        linkDocName = 'invoices';\n      }\n      if (R.equals(docName, 'invoices')) {\n        linkDocName = 'orders';\n      }\n      if (R.equals(docName, 'consignments')) {\n        linkDocName = 'consignments-returns';\n      }\n      if (R.equals(docName, 'consignments-returns')) {\n        linkDocName = 'consignments';\n      }\n      return linkDocName;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"documentsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1wZHtQF+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tableViewOptions\\\",\\\"@detail\\\",\\\"@index\\\",\\\"@isTaxExclusive\\\",\\\"@isDetailRow\\\",\\\"@taxMethod\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"index\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"company\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"document number\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"received_\\\",[23,6,[]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"_delivered_\\\",[23,6,[]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"on_consignment_\\\",[23,6,[]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"received qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"delivered qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"on consignment qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"calculate\\\",[[23,3,[]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"order\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"docName\\\"]]],null],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"order\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"order\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"order\\\",\\\"contactCode\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"order\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"docName\\\"]]],null],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"order\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        #\\\"],[1,[23,2,[\\\"order\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"order\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"ordersExclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"invoicesExclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"outstandingExclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"ordersInclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"invoicesInclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"outstandingInclAmt\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"consignmentsQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"invoicesQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"outstandingQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,2,[\\\"pendingStatus\\\"]],\\\"complete\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"mark as completed\\\",[23,0,[\\\"documentsService\\\",\\\"markPendingAsCompletedTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentsService\\\",\\\"markPendingAsCompletedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"detail\\\",\\\"docType\\\",\\\"docName\\\"],[[23,2,[]],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"undo\\\",[23,0,[\\\"documentsService\\\",\\\"undoMarkPendingAsCompletedTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentsService\\\",\\\"undoMarkPendingAsCompletedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"detail\\\",\\\"docType\\\",\\\"docName\\\"],[[23,2,[]],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Ud05PR8d\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\",\\\"isTooltipVisible\\\",\\\"@filters\\\",\\\"@tableViewOptions\\\",\\\"@model\\\",\\\"@detailInfoRowClassName\\\",\\\"@modelProxy\\\",\\\"@rowIndex\\\",\\\"@onMainAction\\\",\\\"@isDetailRow\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@hasHeadersSort\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,4,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,13,[]],[23,4,[]],\\\"item\\\",[28,\\\"perform\\\",[[23,12,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,5,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,4,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,13,[]],[23,4,[]],\\\"itemCode\\\",[28,\\\"perform\\\",[[23,12,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,5,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,4,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,13,[]],[23,4,[]],\\\"unit\\\",[28,\\\"perform\\\",[[23,12,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,5,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,4,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,13,[]],[23,4,[]],\\\"outstandingExclTotal\\\",[28,\\\"perform\\\",[[23,12,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,4,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"on_consignment_\\\",[23,4,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,13,[]],[23,4,[]],\\\"outstandingQty\\\",[28,\\\"perform\\\",[[23,12,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,5,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,4,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"on consignment qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,13,[]],[23,4,[]],\\\"outstandingQty\\\",[28,\\\"perform\\\",[[23,12,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,5,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,4,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"qty sold (to invoice)\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"table-view__detail-row--alt \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,9,[]]],null],\\\"even\\\",\\\"odd\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,8,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[23,7,[]],\\\" \\\"]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[23,9,[]],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,10,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,6,[]]]],[8],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,6,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,6,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,6,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-info-circle\\\",\\\"element-icon--xs element-icon--margin\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,6,[\\\"_data\\\",\\\"itemKey\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,10,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,6,[]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,6,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,6,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,6,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,10,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,6,[]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,10,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,6,[]]]],[8],[0,\\\"\\\\n      \\\"],[1,[23,6,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,6,[\\\"_data\\\",\\\"outstandingExclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,6,[\\\"_data\\\",\\\"outstandingInclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,10,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,6,[]]]],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,6,[\\\"_data\\\",\\\"outstandingQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,10,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,6,[]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\",\\\"@linkIcon\\\",\\\"@linkLabel\\\"],[[28,\\\"not-eq\\\",[0,[23,6,[\\\"_data\\\",\\\"toInvoiceQty\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"docType\\\",\\\"docName\\\",\\\"isFromShortcut\\\",\\\"isFromPendingShortcut\\\",\\\"isFromToInvoiceQty\\\",\\\"isLinkingNeeded\\\",\\\"isNew\\\",\\\"loadInstructions\\\",\\\"title\\\",\\\"header\\\"],[\\\"documents/tab-container\\\",[23,0,[\\\"linkDocType\\\"]],[23,0,[\\\"linkDocName\\\"]],true,true,true,[24,[\\\"isLinkingNeeded\\\"]],true,[28,\\\"hash\\\",null,[[\\\"model\\\"],[[23,6,[]]]]],[28,\\\"concat\\\",[[23,0,[\\\"linkDocType\\\"]],\\\"-\\\",[23,0,[\\\"linkDocName\\\"]]],null],[28,\\\"tt\\\",[\\\"new\\\"],null]]]],\\\"fas fa-plus\\\",[28,\\\"concat\\\",[[23,0,[\\\"linkDocType\\\"]],\\\"-\\\",[23,0,[\\\"linkDocName\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,6,[\\\"_data\\\",\\\"toInvoiceQty\\\"]]],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@translate\\\",\\\"@tooltipLabel\\\",\\\"@label\\\",\\\"@toggleIsOn\\\"],[true,false,true,\\\"fas fa-angle-down\\\",\\\"fas fa-angle-right\\\",false,[28,\\\"count\\\",[[23,6,[\\\"_data\\\",\\\"details\\\"]]],null],[28,\\\"count\\\",[[23,6,[\\\"_data\\\",\\\"details\\\"]]],null],[23,0,[\\\"showDetails\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"documents/pending/panel-display-by-products/consignments/table-view/detail-row\\\",[],[[\\\"@isHeaders\\\",\\\"@isTaxExclusive\\\",\\\"@taxMethod\\\",\\\"@tableViewOptions\\\"],[true,[23,4,[\\\"isTaxExclusive\\\"]],[23,4,[\\\"_data\\\",\\\"taxMethod\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"documents/pending/panel-display-by-products/consignments/table-view/detail-row\\\",[],[[\\\"@isTaxExclusive\\\",\\\"@index\\\",\\\"@taxMethod\\\",\\\"@isDetailRow\\\",\\\"@detail\\\",\\\"@tableViewOptions\\\"],[[23,4,[\\\"isTaxExclusive\\\"]],[23,2,[]],[23,4,[\\\"_data\\\",\\\"taxMethod\\\"]],true,[23,1,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/panel-display-by-products/consignments/table-view/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/orders/table-view/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 DocumentsPendingPanelDisplayByProductsOrdersTableView = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class DocumentsPendingPanelDisplayByProductsOrdersTableView extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"markAsCompleted\", _descriptor4, this);\n    }\n    get taxMethod() {\n      if (this.isTaxExclusive) {\n        return 'excl';\n      }\n      return 'incl';\n    }\n    select() {}\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"markAsCompleted\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/orders/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 DocumentsPendingPanelDisplayByProductsOrdersTableViewDetailRow = _exports.default = (_dec = Ember.inject.service('documents'), _class = class DocumentsPendingPanelDisplayByProductsOrdersTableViewDetailRow extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"documentsService\", _descriptor, this);\n    }\n    get linkDocName() {\n      let linkDocName = 'invoices';\n      const detail = this.args.detail;\n      const paymentMethodKey = detail?.order?.paymentMethodKey || '';\n      if (R.equals(paymentMethodKey, 'consignment')) {\n        linkDocName = 'consignments';\n      }\n      return linkDocName;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"documentsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/orders/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6wylxCPZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tableViewOptions\\\",\\\"@detail\\\",\\\"@isTaxExclusive\\\"],\\\"statements\\\":[[0,\\\"        \\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,2,[\\\"order\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,2,[\\\"order\\\",\\\"contactCode\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"order\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"docName\\\"]]],null],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"order\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              #\\\"],[1,[23,2,[\\\"order\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,2,[\\\"order\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"ordersExclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"invoicesExclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"outstandingExclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"ordersInclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"invoicesInclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"outstandingInclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"ordersQty\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"invoicesQty\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\",\\\"@linkIcon\\\",\\\"@linkLabel\\\"],[[23,2,[\\\"outstandingQty\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"docType\\\",\\\"docName\\\",\\\"isFromShortcut\\\",\\\"isFromPendingShortcut\\\",\\\"isFromOutstandingQty\\\",\\\"isNew\\\",\\\"loadInstructions\\\",\\\"title\\\",\\\"header\\\"],[\\\"documents/tab-container\\\",[23,1,[\\\"docType\\\"]],[23,0,[\\\"linkDocName\\\"]],true,true,true,true,[28,\\\"hash\\\",null,[[\\\"model\\\"],[[23,2,[]]]]],[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,0,[\\\"linkDocName\\\"]]],null],[28,\\\"tt\\\",[\\\"new\\\"],null]]]],\\\"fas fa-plus\\\",[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,0,[\\\"linkDocName\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"outstandingQty\\\"]]],null],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,2,[\\\"pendingStatus\\\"]],\\\"complete\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"mark as completed\\\",[23,0,[\\\"documentsService\\\",\\\"markPendingAsCompletedTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentsService\\\",\\\"markPendingAsCompletedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"detail\\\",\\\"docType\\\",\\\"docName\\\"],[[23,2,[]],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"undo\\\",[23,0,[\\\"documentsService\\\",\\\"undoMarkPendingAsCompletedTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentsService\\\",\\\"undoMarkPendingAsCompletedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"detail\\\",\\\"docType\\\",\\\"docName\\\"],[[23,2,[]],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/panel-display-by-products/orders/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/orders/table-view/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"O8FeypYK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"isTooltipVisible\\\",\\\"@filters\\\",\\\"@tableViewOptions\\\",\\\"@model\\\",\\\"@detailInfoRowClassName\\\",\\\"@modelProxy\\\",\\\"@rowIndex\\\",\\\"@onMainAction\\\",\\\"@isDetailRow\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@hasHeadersSort\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,3,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"item\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,4,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"itemCode\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,4,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"unit\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,4,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"ordersExclTotal\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"ordered_\\\",[23,3,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"invoicesExclTotal\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,4,[\\\"docType\\\"]],\\\"_delivered_\\\",[23,3,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"outstandingExclTotal\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[24,[\\\"tableViewOptions\\\",\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"outstanding_\\\",[23,3,[\\\"_data\\\",\\\"taxMethod\\\"]],\\\"_total\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"docName\\\"]],\\\"orders\\\"],null]],null,{\\\"statements\\\":[[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"ordersQty\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,4,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"ordered qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"consignmentsQty\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,4,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"consignment qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"invoicesQty\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,4,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"delivered qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[23,12,[]],[23,3,[]],\\\"outstandingQty\\\",[28,\\\"perform\\\",[[23,11,[]],[28,\\\"hash\\\",null,[[\\\"dispatchProcess\\\",\\\"period\\\",\\\"filters\\\"],[[23,4,[\\\"dispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,3,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"outstanding qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"table-view__detail-row--alt \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[23,8,[]]],null],\\\"even\\\",\\\"odd\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,7,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[23,6,[]],\\\" \\\"]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[23,8,[]],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,9,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,5,[]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,5,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-info-circle\\\",\\\"element-icon--xs element-icon--margin\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,9,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,5,[]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,5,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,5,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,9,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,5,[]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,9,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,5,[]]]],[8],[0,\\\"\\\\n      \\\"],[1,[23,5,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"_data\\\",\\\"ordersExclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"_data\\\",\\\"invoicesExclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"_data\\\",\\\"outstandingExclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"_data\\\",\\\"ordersInclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"_data\\\",\\\"invoicesInclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"_data\\\",\\\"outstandingInclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,9,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,5,[]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"docName\\\"]],\\\"orders\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[23,5,[\\\"_data\\\",\\\"ordersQty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[23,5,[\\\"_data\\\",\\\"consignmentsQty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,9,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,5,[]]]],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,5,[\\\"_data\\\",\\\"invoicesQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,9,[]],\\\"u-link--text\\\",\\\"\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,5,[]]]],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,5,[\\\"_data\\\",\\\"outstandingQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@translate\\\",\\\"@tooltipLabel\\\",\\\"@label\\\",\\\"@toggleIsOn\\\"],[true,false,true,\\\"fas fa-angle-down\\\",\\\"fas fa-angle-right\\\",false,[28,\\\"count\\\",[[23,5,[\\\"_data\\\",\\\"details\\\"]]],null],[28,\\\"count\\\",[[23,5,[\\\"_data\\\",\\\"details\\\"]]],null],[23,0,[\\\"showDetails\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"documents/pending/panel-display-by-products/orders/table-view/detail-row\\\",[],[[\\\"@isTaxExclusive\\\",\\\"@taxMethod\\\",\\\"@detail\\\",\\\"@tableViewOptions\\\"],[[23,3,[\\\"isTaxExclusive\\\"]],[23,3,[\\\"_data\\\",\\\"taxMethod\\\"]],[23,1,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/panel-display-by-products/orders/table-view/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/panel-display-by-products/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"sm/ST9mS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@docName\\\",\\\"@docType\\\",\\\"@filters\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"isRunning\\\",\\\"detailsRowComponent\\\",\\\"paginationIsFooter\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onPaginationTask\\\",\\\"tableViewOptions\\\"],[[23,4,[]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"tableViewComponent\\\"]],false,[23,3,[\\\"results\\\"]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"docType\\\",\\\"docName\\\"],[[23,2,[]],[23,1,[]]]]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/panel-display-by-products/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pending/tab-container/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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, _dec0, _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  // import { computed } from '@ember/object'\n  // import nventor from '../../../../../utils/nventor'\n  let DocumentPendingComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _class = class DocumentPendingComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isLoaded\", _descriptor8, this);\n      _initializerDefineProperty(this, \"listsIsLoaded\", _descriptor9, this);\n      const defaultTaxMethod = this.settings.getProp(`${this.args?.tab?.docType}PendingTaxMethod`) || 'exclusive';\n      let contactModel;\n      let productModel;\n      let contact = '';\n      let item = '';\n      if (this.args?.fromContactsTab) {\n        contactModel = this.args?.model || {};\n        contact = contactModel.getData('name');\n      }\n      if (this.args?.fromProductsTab) {\n        productModel = this.args?.model || {};\n        item = productModel.getData('name');\n      }\n      this.filters = this.search.setupFilters({\n        adapterName: 'documents/data/pending/filters',\n        resetDefaults: {\n          contact,\n          item\n        },\n        defaultFiltersData: {\n          docType: this.args?.tab?.docType,\n          docName: this.args?.tab?.docName,\n          contact,\n          item,\n          taxMethod: defaultTaxMethod\n        }\n      });\n\n      // get taxMethod from\n      this.crud.addLists(this, ['documents/lists/types/docTypes', 'taxMethods/filters', {\n        adapterName: 'documents/data/pending/types',\n        appendPath: this.filters?._data?.docType,\n        options: {\n          docType: this.filters?._data?.docType\n        }\n      }, {\n        adapterName: 'documents/data/pending/menu',\n        appendPath: `${this.filters?._data?.docType}-${this.filters?._data?.docName}`,\n        options: {\n          docType: this.filters?._data?.docType,\n          docName: this.filters?._data?.docName\n        }\n      }]);\n    }\n    afterLoadLists() {\n      if (this.isLoaded) {\n        return false;\n      }\n      this.isLoaded = true;\n      const tab = this.args.tab;\n      this.loadTabTask.perform({\n        tab\n      });\n    }\n    get listsMenu() {\n      return this.crud?.lists[`documents-data-pending-menu--${this.filters?._data?.docType}-${this.filters?._data?.docName}`] || [];\n    }\n    get listsPendingDocNames() {\n      return this.crud?.lists[`documents-data-pending-types--${this.filters?._data?.docType}`] || [];\n    }\n    get filtersAdvancedAdapterName() {\n      const currentSubTab = this.tabsManager.getActiveSubTab(this.args.tab);\n      const activeSubTabLabel = currentSubTab?.type || '';\n      if (activeSubTabLabel === 'byProducts') {\n        return 'documents/data/pending/products';\n      }\n      if (activeSubTabLabel === 'byOrders') {\n        return 'documents/data/pending/orders';\n      }\n      return '';\n    }\n    *loadTabTask({\n      tab\n    }) {\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        // const model = loadInstructions.getData('model')\n        // if (model) {\n        //   this.display(loadInstructions.getData('model'))\n        // } else {\n        //   const id = loadInstructions.getData('find.id')\n        //   if (id) {\n        //     const found = yield this.findTask.perform({\n        //       appendPath: id\n        //     })\n        //     this.display(found)\n        //   }\n\n        //   const query = loadInstructions.getData('search.query')\n        //   if (query) {\n        //     filters.setData('query', query)\n        //     const results = yield this.searchRecordsTask.perform({ filters })\n        //     const found = results.get('firstObject')\n        //     this.display(found)\n        //   }\n        // }\n      } else {\n        const menu = this.listsMenu || [];\n        const firstPanelModel = menu.firstObject || {};\n        if (RA.isNotNilOrEmpty(firstPanelModel)) {\n          this.display(firstPanelModel);\n        }\n      }\n    }\n    *refetchTask() {\n      // first update lists\n      yield this.crud.addLists(this, [{\n        adapterName: 'documents/data/pending/types',\n        appendPath: this.filters?._data?.docType,\n        options: {\n          docType: this.filters?._data?.docType\n        }\n      }, {\n        adapterName: 'documents/data/pending/menu',\n        appendPath: `${this.filters?._data?.docType}-${this.filters?._data?.docName}`,\n        options: {\n          docType: this.filters?._data?.docType,\n          docName: this.filters?._data?.docName\n        }\n      }]);\n      const currentSubTab = this.tabsManager.getActiveSubTab(this.args.tab);\n      if (currentSubTab) {\n        return this.display(currentSubTab);\n      }\n      const menu = this.menuList || [];\n      const firstPanelModel = menu.firstObject || {};\n      return this.display(firstPanelModel);\n    }\n    display(subTabOptions) {\n      const tab = this.args.tab;\n\n      // @NOTE: this is bad. due to a design flaw\n      // when clicking a menu list item, the subTabOptions is a model.\n      // after instantiating a subTab the model does not have _data\n      // solution, also have ._data for subTab models (keep a copy of subTab in _data)\n      this.filters.setData('combined', subTabOptions?.combined || subTabOptions?._data?.combined);\n      this.filters.setData('type', subTabOptions?.type || subTabOptions?._data?.type);\n      this.filters.reset();\n      this.tabsManager.setHeader(tab, this.intl.t(`${this.filters?._data?.docType}`));\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }\n\n    // @action\n    // displayByProducts () {\n\n    // }\n\n    // isDispatchedProcessModel: computed('crud.lists.[]', function () {\n    //   const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || []\n    //   const isDispatched = this.get('constants.dispatchProcess.dispatched')\n    //   return R.find(R.pathEq(['_data', 'code'], isDispatched), dispatchProcesses)\n    // }),\n\n    // updateDocInfoTask: task(function * (dirty) {\n    //   const adapterName = this.adapterName\n    //   return yield this.updateRecordTask.perform({\n    //     adapterName,\n    //     appendPath: '/info',\n    //     model: dirty\n    //   })\n    // }).drop(),\n\n    // documentsListsMenu: computed('listsIsLoaded', 'docType', 'docName', function () {\n    //   const docType = this.filters?._data?.docType\n    //   const docName = this.filters?._data?.docName\n    //   return this.get(`crud.lists.documents-lists-menu--${docType}-${docName}`) || []\n    // }),\n\n    // resultsProxy: computed('results.[]', function () {\n    //   const results = this.results || []\n    //   return R.map(result => nventor.createModel(ModelProxy, {}, {\n    //     model: result,\n    //     isSelected: false,\n    //     showDetails: false // @TODO: get this from settings\n    //   }), results)\n    // }),\n\n    // dash (model, results) {\n    //   const tab = this.tab\n    //   this.set('showResults', false)\n\n    //   if (nventor.isNilOrEmpty(results)) {\n    //     const adapterName = this.adapterName\n    //     const filters = this.filters\n    //     filters.setData('query', '')\n    //     results = this.fetchDefaultDataTask.perform({ adapterName, filters })\n    //     this.set('results', results)\n    //   }\n\n    //   const subTabOptions = {\n    //     component: 'documents/panel-dash'\n    //   }\n\n    //   this.tabsManager.replaceSubTab(tab, subTabOptions)\n    // },\n\n    // /**\n    //  * display document\n    //  * @param  {object} document model\n    //  */\n    // display (model) {\n    //   this.set('showResults', false)\n    //   const component = this.get('config.displayComponent')\n    //   const subTabOptions = {\n    //     component: component,\n    //     model: model,\n    //     config: this.config\n    //   }\n\n    //   const tab = this.tab\n    //   this.tabsManager.replaceSubTab(tab, subTabOptions)\n    // },\n\n    // new () {\n    //   this.set('showResults', false)\n\n    //   const self = this\n\n    //   const component = self.get('config.newComponent')\n    //   const subTabOptions = {\n    //     component: component,\n    //     config: self.get('config')\n    //   }\n\n    //   const tab = this.tab\n    //   this.tabsManager.replaceSubTab(tab, subTabOptions)\n    // },\n\n    // actions: {\n    //   dash () {\n    //     this.dash()\n    //   },\n\n    //   display (model) {\n    //     this.set('showResults', false)\n\n    //     if (model) {\n    //       this.display(model)\n    //     } else {\n    //       // if no model then display dash (when model has been deleted)\n    //       this.dash()\n    //     }\n    //   },\n\n    //   new () {\n    //     this.new(...arguments)\n    //   },\n\n    //   close (panel) {\n    //     this.tab.closePanel(panel)\n    //   },\n\n    //   edit (model) {\n    //     this.set('showResults', false)\n\n    //     const self = this\n\n    //     const component = self.get('config.editComponent')\n    //     const subTabOptions = {\n    //       component: component,\n    //       model: model,\n    //       config: self.get('config')\n    //     }\n\n    //     const tab = this.tab\n    //     this.tabsManager.replaceSubTab(tab, subTabOptions)\n    //   }\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isLoaded\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"listsIsLoaded\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadTabTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTabTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refetchTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"refetchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"display\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"display\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pending/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Vc4+oxtY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@disallowedForFeatures\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@displayAsSubHeaderLabel\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[\\\"fas fa-filter\\\",[28,\\\"if\\\",[[23,3,[]],\\\"advanced search\\\",\\\"\\\"],null],true,[28,\\\"if\\\",[[23,3,[]],false,true],null],[23,0,[\\\"filters\\\",\\\"showFilters\\\"]],[23,4,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@displayAsSubHeaderLabel\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[\\\"fas fa-star\\\",[28,\\\"if\\\",[[23,3,[]],\\\"starred\\\",\\\"\\\"],null],true,[28,\\\"if\\\",[[23,3,[]],false,true],null],[23,0,[\\\"filters\\\",\\\"showStarred\\\"]],[23,4,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"documents-pending\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-types-docTypes\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"docType\\\"]],[23,0,[\\\"refetchTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"refetchTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"listsPendingDocNames\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"docName\\\"]],[23,0,[\\\"refetchTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"refetchTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"taxMethod\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"listsMenu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showStarred\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/starred\\\",[],[[\\\"@filters\\\",\\\"@onSearchTask\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleResults\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/scroll-into-view\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"documents/pending/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@tab\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@tableViewOptions\\\"],[[23,0,[\\\"filters\\\"]],[23,5,[]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[\\\"filtersAdvancedAdapterName\\\"]]]]]],null],[23,0,[\\\"tableViewOptions\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,5,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"docType\\\",\\\"docName\\\",\\\"filters\\\"],[[23,5,[]],[23,1,[]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"docName\\\"]],[23,0,[\\\"filters\\\"]]]]],false],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pending/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/barcode-scanner/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 DocumentsPosBarcodeScannerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class DocumentsPosBarcodeScannerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"barcode\", _descriptor3, this);\n      this.crud.addLists(this, ['discounts/types', 'documents/lists/pos/macros', 'paymentMethods']);\n    }\n    get isRunning() {\n      if (this.onInputTask.isRunning) {\n        return true;\n      }\n      if (this.args.isRunning) {\n        return true;\n      }\n      return false;\n    }\n    getMacro(code) {\n      const macros = R.path(['crud', 'lists', 'documents-lists-pos-macros'])(this);\n      const hasNonMacros = RA.isNilOrEmpty(macros);\n      if (hasNonMacros) {\n        return;\n      }\n      return R.find(R.pathEq(['_data', 'macro'], code))(macros);\n    }\n    clearBarcode() {\n      this.barcode = '';\n    }\n    *addProduct(barcode) {\n      const campaignDetails = this?.args?.campaignDetails || [];\n      const products = this?.args?.products || [];\n      const campaignDetailsAndProducts = R.concat(campaignDetails, products);\n      const product = R.pipe(R.filter(R.pipe(R.path(['_data', 'barcodesString']), RA.isNotNilOrEmpty)), R.find(R.pathEq(['_data', 'barcodesString'], barcode)))(campaignDetailsAndProducts);\n      const onAddItemToCartTask = this?.args?.onAddItemToCartTask;\n      if (!product || !onAddItemToCartTask) {\n        return;\n      }\n      return onAddItemToCartTask.perform(product);\n    }\n    *applyDiscount({\n      type,\n      amount\n    } = {}) {\n      const model = this?.args?.model;\n      if (!model) {\n        return;\n      }\n      const discountTypes = R.path(['crud', 'lists', 'discounts-types'])(this);\n      if (!discountTypes) {\n        return;\n      }\n      const discountType = R.find(R.pathEq(['_data', 'value'], type))(discountTypes);\n      this.args.model.toggleDiscountType(discountType);\n      this.args.model.set('_data.discountType', type);\n      this.args.model.set('_data.discountRate', amount);\n      this.args.model.sumTotals();\n    }\n    *updatePaymentMethod(macro) {\n      const model = this?.args?.model;\n      if (!model) {\n        return;\n      }\n      const paymentMethod = macro.paymentMethod;\n      const hasPaymentMethod = this.constants.paymentMethods[paymentMethod];\n      if (!hasPaymentMethod) {\n        return;\n      }\n      const paymentMethodModel = R.pipe(R.pathOr([], ['crud', 'lists', 'paymentMethods']), R.find(R.pathEq(['_data', 'value'], paymentMethod)))(this);\n      this.args.model.loadPaymentMethod({\n        paymentMethod: paymentMethodModel,\n        paymentMethodKey: paymentMethod\n      });\n    }\n    *addMacro(macro) {\n      const macroData = macro?._data || {};\n      switch (macroData.action) {\n        case 'discount':\n          return this.applyDiscount.perform(macroData);\n        case 'paymentMethod':\n          return this.updatePaymentMethod.perform(macroData);\n        default:\n          console.log('MISSING MACRO: ', {\n            macro\n          });\n          break;\n      }\n    }\n    *onInputTask(query) {\n      const trimQuery = String(query ?? '').trim();\n      this.clearBarcode();\n      if (RA.isNilOrEmpty(trimQuery)) {\n        return;\n      }\n      const macro = this.getMacro(trimQuery);\n      if (macro) {\n        return yield this.addMacro.perform(macro);\n      }\n      if (this.args?.onBarcodeInputTask?.perform) {\n        yield this.args.onBarcodeInputTask.perform(trimQuery);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"barcode\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"clearBarcode\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"clearBarcode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addProduct\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"applyDiscount\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"applyDiscount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updatePaymentMethod\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updatePaymentMethod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addMacro\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addMacro\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onInputTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"onInputTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pos/barcode-scanner/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tmLMRbWp\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@leftIcon\\\",\\\"@value\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\",\\\"@autofocus\\\"],[[23,0,[\\\"isRunning\\\"]],\\\"fas fa-barcode\\\",[23,0,[\\\"barcode\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onInputTask\\\"]],[23,0,[\\\"barcode\\\"]]],null],[23,0,[\\\"isRunning\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/barcode-scanner/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/product/card/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, R, _emberConcurrencyDecorators) {\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 DocumentsPosProductCardComponent = _exports.default = (_dec = Ember.inject.service('uploadcare'), _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service, _dec4 = Ember._action, _dec5 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 5\n  }), _class = class DocumentsPosProductCardComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"uploadcareService\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n    }\n    get productKey() {\n      const productData = R.pathOr({}, ['args', 'product', '_data'])(this);\n      return productData.itemKey || productData._key || '';\n    }\n    get productName() {\n      const productData = R.pathOr({}, ['args', 'product', '_data'])(this);\n      const name = R.pathOr(R.propOr('', 'name')(productData), ['item'])(productData);\n      const shouldTruncate = name.length > 20;\n      if (shouldTruncate) {\n        return R.pipe(R.take(20), R.splitEvery(1), R.append('...'), R.join(''))(name);\n      }\n      return name;\n    }\n    get productPrice() {\n      const productData = R.pathOr({}, ['args', 'product', '_data'])(this);\n      return productData.price || productData.salesInclPrice || '0';\n    }\n    get productLastUpdate() {\n      const lastUpdate = R.pathOr('', ['args', 'product', '_data', 'timestampZ_update'])(this);\n      return this.dateService.formatDate(lastUpdate, 'YYYY-MM-DD HH:mm:ss');\n    }\n    get qty() {\n      const detail = this.detail;\n      const qty = R.pathOr(0, ['_data', 'qty'])(detail);\n      return qty;\n    }\n    get detail() {\n      const details = this?.args?.details || [];\n      const productData = R.pathOr({}, ['args', 'product', '_data'])(this);\n      const itemKey = productData.itemKey || productData._key || '';\n      return R.find(R.anyPass([R.pathEq(['_data', '_key'], itemKey), R.pathEq(['_data', 'itemKey'], itemKey)]))(details);\n    }\n    get isRunning() {\n      const isOnAddItemToCartTaskRunning = this?.args?.onAddItemToCartTask?.isRunning;\n      const isOnRemoveItemFromCartRunning = this?.args?.onRemoveItemFromCart?.isRunning;\n      if (isOnAddItemToCartTaskRunning || isOnRemoveItemFromCartRunning) {\n        return true;\n      }\n      return false;\n    }\n    addProduct(product) {\n      const productName = product?._data?.name || product?._data?.item || 'P';\n      alert(productName);\n    }\n    *updateDocDetailsTask(updateTask, detail) {\n      const dirtyProduct = this.crud.setupDirty({\n        adapterName: 'channels/shop/campaigns/details',\n        model: detail\n      });\n      return yield updateTask.perform(dirtyProduct);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uploadcareService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"addProduct\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"addProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateDocDetailsTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDocDetailsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pos/product/card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y6UADONs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@product\\\",\\\"@onAddItemToCartTask\\\",\\\"@tab\\\",\\\"@isPosFullScreenMode\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"card pos-product-card\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateDocDetailsTask\\\"]],[23,3,[]],[23,2,[]]],null]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-image\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"files-manager\\\",[],[[\\\"@showDefaultImagePreview\\\",\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@showDefaultImagePreview\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\",\\\"@filesGalleryRowClassNames\\\"],[false,[23,4,[]],false,false,false,false,false,false,[23,2,[]],true,\\\"products\\\",[23,0,[\\\"productKey\\\"]],\\\"/-/scale_crop/300x300/smart\\\",\\\"margin-0\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content pos-product-card-content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content pos-product-card-content-content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,0,[\\\"productName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[23,0,[\\\"productName\\\"]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/product/card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/profiles-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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, _dec0, _dec1, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\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 DocumentsPosProfilesEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('helpers'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('terminal'), _dec5 = Ember.inject.service('pos'), _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _class = class DocumentsPosProfilesEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"helpersService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"terminalService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"posService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"campaignsList\", _descriptor6, this);\n      _initializerDefineProperty(this, \"posShopKey\", _descriptor7, this);\n      _initializerDefineProperty(this, \"printerKey\", _descriptor8, this);\n      _initializerDefineProperty(this, \"model\", _descriptor9, this);\n      _initializerDefineProperty(this, \"einvoicesPrintersTerminalsFilters\", _descriptor0, this);\n      _initializerDefineProperty(this, \"query\", _descriptor1, this);\n      _defineProperty(this, \"adapterName\", 'pos/lists/profiles');\n      const model = this.args.model;\n      const isEditing = this.args.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          data: {\n            autoIssueEInvoice: true\n          }\n        });\n      }\n      this.fetchCampaignsWithPosEnable.perform();\n      const einvoicesPrintersTerminalsFilters = this.search.setupFilters({\n        adapterName: 'users/einvoices-printers-terminals/filters'\n      });\n      this.terminalService.fetchEInvoicesPrinterTerminalsTask.perform({\n        filters: einvoicesPrintersTerminalsFilters\n      });\n      this.einvoicesPrintersTerminalsFilters = einvoicesPrintersTerminalsFilters;\n    }\n    *fetchCampaignsWithPosEnable() {\n      this.campaignsList = yield this.posService.fetchCampaignsWithPosEnableTask.perform();\n    }\n    *removeTask(onCloseDialogAction = R.identity) {\n      const data = {\n        adapterName: this.adapterName,\n        model: this.model,\n        noConfirm: true\n      };\n      yield this.crud.removeRecordTask.perform(data);\n      onCloseDialogAction();\n    }\n    *saveTask(onCloseDialogAction = R.identity) {\n      const data = {\n        adapterName: this.adapterName,\n        model: this.model\n      };\n      if (this.model.isDirty) {\n        yield this.crud.replaceRecordTask.perform(data);\n      } else {\n        yield this.crud.createRecordTask.perform(data);\n      }\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"helpersService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"terminalService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"posService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"campaignsList\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"posShopKey\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"printerKey\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"einvoicesPrintersTerminalsFilters\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"query\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignsWithPosEnable\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignsWithPosEnable\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pos/profiles-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"90449zJi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\",\\\"@disabled\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"label\\\",\\\"pos\\\",true,\\\"label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"label\\\",true,true,[28,\\\"or\\\",[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"campaign\\\",\\\"pos\\\",true,\\\"campaign\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isRunning\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"fetchCampaignsWithPosEnableTask\\\",\\\"isRunning\\\"]],true,\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"campaignsList\\\"]],false,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"shopKey\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"tw_eInvoices_print_allow_print\\\",\\\"pos\\\",\\\"tw_eInvoices_print_allow_print\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"autoIssueEInvoice\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"autoIssueEInvoice\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"campaign\\\",\\\"pos\\\",true,\\\"einvoice printer terminal\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@disabled\\\",\\\"@allowCustom\\\",\\\"@hasSelected\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onDeselect\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@value\\\"],[false,\\\"span\\\",[28,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"autoIssueEInvoice\\\"]],false,true],null],false,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"userKey\\\"]],[23,0,[\\\"einvoicesPrintersTerminalsFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",\\\"users/search-results-persons-item\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"helpersService\\\",\\\"unsetValue\\\"]],[23,0,[\\\"model\\\"]],\\\"_data.userKey\\\",\\\"\\\"],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"resultsProperty\\\",\\\"resultsToggle\\\"],[\\\"users/einvoices-printers-terminals\\\",[23,0,[\\\"einvoicesPrintersTerminalsFilters\\\"]],\\\"results\\\",\\\"resultsToggle\\\"]]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"user\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"helpersService\\\",\\\"setValueFromModel\\\"]],[23,0,[\\\"model\\\"]],\\\"_data.userKey\\\",\\\"_data._key\\\"],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"user\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/footer-btns\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-trash\\\",[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"removeTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,4,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/profiles-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/profiles-selector/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency-decorators\"], function (_exports, _component, R, RA, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _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 DocumentsPosProfilesSelectorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service(), _dec3 = Ember.inject.service('application'), _dec4 = Ember.inject.service('pos'), _dec5 = Ember.inject.service('users'), _dec6 = Ember.inject.service('storage'), _dec7 = Ember.inject.service('terminal'), _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember.computed('args.tab.posProfileKey', 'selectedPosProfileModel.{_data.autoIssueEInvoice,user._data.printerId,user._data.printerKey}', 'hasValidPrinterSetup'), _dec11 = Ember.computed('selectedPosProfileModel.{_data.autoIssueEInvoice,user._data.printerId,user._data.printerKey}'), _class = class DocumentsPosProfilesSelectorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"posService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"usersService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"storageService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"terminalService\", _descriptor7, this);\n      _initializerDefineProperty(this, \"selectedPosProfileModel\", _descriptor8, this);\n      _initializerDefineProperty(this, \"defaultSavedPosProfile\", _descriptor9, this);\n      this.crud.addLists(this, ['pos/lists/profiles']);\n    }\n    afterLoadLists() {\n      this.setupDefaultProfileTask.perform();\n    }\n    *setupDefaultProfileTask() {\n      const tab = this.args.tab;\n      if (tab?.hasAlreadyEnteredPosMode) {\n        const posProfileModel = tab?.posProfileModel;\n        this.selectProfile(posProfileModel);\n        return this.enterPosWithProfileTask.perform();\n      }\n      const profiles = this.crud.lists['pos-lists-profiles'] || [];\n      if (profiles.length === 1) {\n        const posProfileModel = R.head(profiles);\n        return this.selectProfile(posProfileModel);\n      }\n      const defaultSavedPosProfileModel = yield this.fetchDefaultSavedPosProfileTask.perform();\n      if (RA.isNotNilOrEmpty(defaultSavedPosProfileModel)) {\n        const defaultSavedPosProfile = R.find(R.pathEq(['_data', '_key'], defaultSavedPosProfileModel?._data?.data?.resourceKey))(profiles);\n        if (defaultSavedPosProfile) {\n          this.selectProfile(defaultSavedPosProfile);\n        }\n      }\n      const posProfileKey = tab.get('posProfileKey');\n      if (!posProfileKey) {\n        return;\n      }\n      const defaultSavedPosProfile = R.find(R.pathEq(['_data', '_key'], posProfileKey))(profiles);\n      if (!defaultSavedPosProfile) {\n        return;\n      }\n      this.selectProfile(defaultSavedPosProfile);\n    }\n    *fetchDefaultSavedPosProfileTask() {\n      const defaultSavedPosProfile = yield this.usersService.getSinglePersonalSettingsTask.perform({\n        menuId: 'posProfileDefault_single'\n      });\n      this.defaultSavedPosProfile = defaultSavedPosProfile;\n      return defaultSavedPosProfile;\n    }\n    selectProfile(posProfileModel) {\n      this.selectedPosProfileModel = posProfileModel;\n      const tab = this.args.tab;\n      const posProfileKey = posProfileModel?._data?._key;\n      tab.set('posProfileModel', posProfileModel);\n      tab.set('posProfileKey', posProfileKey);\n    }\n    *enterPosWithProfileTask() {\n      const tab = this.args.tab;\n      const posProfileModel = this.selectedPosProfileModel;\n      if (!posProfileModel) {\n        return;\n      }\n      const latestPosProfileModel = yield this.crud.findTask.perform({\n        adapterName: posProfileModel?.adapterName,\n        appendPath: posProfileModel?._data?._key\n      });\n      if (!latestPosProfileModel?._data?._key) {\n        alert(this.intl.t('profile not found'));\n        this.selectProfile(); // reset profile\n        return;\n      }\n      const shopKey = latestPosProfileModel?._data?.shopKey;\n      const shopModel = yield this.posService.fetchCampaignWithPosEnableTask.perform(shopKey);\n      if (!shopModel) {\n        alert(this.intl.t('shop not found'));\n        return;\n      }\n      latestPosProfileModel.set('shop', shopModel);\n      this.posService.enterPosProfile(tab, latestPosProfileModel);\n    }\n    get disallowEnterPosMode() {\n      const tab = this.args.tab;\n      if (!tab.posProfileKey) {\n        return true;\n      }\n      return this.hasInvalidPrinterSetup;\n    }\n    get hasInvalidPrinterSetup() {\n      const posProfileModel = this.selectedPosProfileModel;\n      const autoIssueEInvoice = posProfileModel?._data?.autoIssueEInvoice;\n      if (!autoIssueEInvoice) {\n        return false;\n      }\n      if (!posProfileModel?.user?._data?.printerId) {\n        return true;\n      }\n      if (!posProfileModel?.user?._data?.printerKey) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"posService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"storageService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"terminalService\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"selectedPosProfileModel\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"defaultSavedPosProfile\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterLoadLists\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"afterLoadLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDefaultProfileTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDefaultProfileTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDefaultSavedPosProfileTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDefaultSavedPosProfileTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectProfile\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"selectProfile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"enterPosWithProfileTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"enterPosWithProfileTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"disallowEnterPosMode\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"disallowEnterPosMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasInvalidPrinterSetup\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"hasInvalidPrinterSetup\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pos/profiles-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+aWhQOlc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"&default\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"isPos\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"hasAlreadyEnteredPosMode\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,2,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"pos\\\",false,true,[28,\\\"if\\\",[[23,7,[]],[23,7,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"pos\\\",[23,6,[]],[23,3,[]],[23,5,[]],[23,4,[]]]]]],null],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"enter pos mode\\\",\\\"enterPosMode\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"pos profile\\\",\\\"posProfile\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@icon\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@label\\\",\\\"@value\\\",\\\"@tab\\\",\\\"@addItemComponent\\\",\\\"@selectOnClose\\\",\\\"@onSelect\\\"],[true,\\\"fas fa-network-wired\\\",true,[28,\\\"or\\\",[[23,8,[]],[28,\\\"not\\\",[[23,0,[\\\"listsIsLoaded\\\"]]],null],[23,0,[\\\"setupDefaultProfileTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"or\\\",[[28,\\\"not\\\",[[23,0,[\\\"listsIsLoaded\\\"]]],null],[23,0,[\\\"setupDefaultProfileTask\\\",\\\"isRunning\\\"]]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"pos-lists-profiles\\\"]],\\\"_data._key\\\",\\\"_data.label\\\",[23,3,[\\\"terminal\\\"]],[23,3,[\\\"posProfileKey\\\"]],[23,3,[]],\\\"documents/pos/profiles-editor\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"selectProfile\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"posProfileKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"defaultSavedPosProfile\\\",\\\"_data\\\",\\\"data\\\",\\\"resourceKey\\\"]],[23,3,[\\\"posProfileKey\\\"]]],null],\\\"fas fa-star\\\",\\\"far fa-star\\\"],null],\\\"set as default\\\",[23,0,[\\\"usersService\\\",\\\"upsertSinglePersonalSettingsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"usersService\\\",\\\"upsertSinglePersonalSettingsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"menuId\\\",\\\"data\\\",\\\"onAfter\\\"],[\\\"posProfileDefault_single\\\",[28,\\\"hash\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\"],[\\\"posProfileDefault\\\",[23,3,[\\\"posProfileKey\\\"]]]]],[28,\\\"perform\\\",[[23,0,[\\\"fetchDefaultSavedPosProfileTask\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"posProfileModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"documents/pos/profiles-status\\\",[],[[\\\"@posProfileModel\\\"],[[23,3,[\\\"posProfileModel\\\"]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",false,[23,0,[\\\"disallowEnterPosMode\\\"]],\\\"enter pos mode\\\",[28,\\\"perform\\\",[[23,0,[\\\"enterPosWithProfileTask\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,2,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/profiles-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/profiles-status/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 DocumentsPosProfilesStatusComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('extensions/apps/tw/e-invoices'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember.computed('args.posProfileModel.{synced,_data.autoIssueEInvoice}'), _dec7 = Ember.computed('args.posProfileModel.{_data.autoIssueEInvoice,user._data.printerId,user._data.printerKey}'), _class = class DocumentsPosProfilesStatusComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"eInvoicesService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"trackNumbersModel\", _descriptor4, this);\n      _initializerDefineProperty(this, \"availableCountData\", _descriptor5, this);\n      _defineProperty(this, \"availableCountToIssueThreshold\", 50);\n    }\n    *setupTask() {\n      const fetchAvailableCountToIssueTaskOptions = {\n        userKey: ''\n      };\n      if (this.args.posProfileModel?.user?._data?.twEInvoiceAllowPrintingFrom === this.constants.twEInvoicePrinter.allowPrintingFrom.printerAllocatedNumbers) {\n        fetchAvailableCountToIssueTaskOptions.userKey = this.args.posProfileModel?.user?._data?._key;\n      }\n      this.availableCountData = yield this.eInvoicesService.fetchAvailableCountToIssueTask.perform(fetchAvailableCountToIssueTaskOptions);\n    }\n    get autoIssueEInvoiceLabel() {\n      const posProfileModel = this.args.posProfileModel;\n      if (posProfileModel?._data?.autoIssueEInvoice) {\n        return 'on';\n      }\n      return 'off';\n    }\n    get hasInvalidPrinterSetup() {\n      const posProfileModel = this.args.posProfileModel;\n      const autoIssueEInvoice = posProfileModel?._data?.autoIssueEInvoice;\n      if (!autoIssueEInvoice) {\n        return false;\n      }\n      if (!posProfileModel?.user?._data?.printerId) {\n        return true;\n      }\n      if (!posProfileModel?.user?._data?.printerKey) {\n        return true;\n      }\n      return false;\n    }\n    get isUnderThreshold() {\n      if (this.availableCountData.availableCountToIssue <= this.availableCountToIssueThreshold) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"eInvoicesService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"trackNumbersModel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"availableCountData\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"autoIssueEInvoiceLabel\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"autoIssueEInvoiceLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasInvalidPrinterSetup\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"hasInvalidPrinterSetup\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pos/profiles-status/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Xp/qUp6A\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@posProfileModel\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"tags-container\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupTask\\\"]]],null]]],[3,\\\"did-update\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupTask\\\"]],[23,1,[\\\"_data\\\",\\\"label\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,1,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,1,[\\\"_data\\\",\\\"shopData\\\",\\\"name\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_print_allow_print\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"autoIssueEInvoiceLabel\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"autoIssueEInvoice\\\"]],[23,1,[\\\"user\\\",\\\"_data\\\",\\\"name\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,1,[\\\"user\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"user\\\",\\\"_data\\\",\\\"twEInvoiceAllowPrintingFrom\\\"]]],null],false],[0,\\\")\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"availableCountData\\\",\\\"hasRemainingCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"if\\\",[[23,0,[\\\"isUnderThreshold\\\"]],\\\"is-warning\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_available_count\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"availableCountData\\\",\\\"availableCountToIssue\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_no_available_count\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasInvalidPrinterSetup\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_no_printer_setup\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/profiles-status/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/view/cart-detail/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DocumentsPosViewCartDetailComponent extends _component.default {}\n  _exports.default = DocumentsPosViewCartDetailComponent;\n});","define(\"client/pods/components/documents/pos/view/cart-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lIk2/HEf\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\" \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"item\\\"]],false],[0,\\\" $\\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"price\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/view/cart-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/view/cart-details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let DocumentsPosViewCartDetailsComponent = _exports.default = (_dec = Ember._action, _class = class DocumentsPosViewCartDetailsComponent extends _component.default {\n    checkDetailQty(model, detail) {\n      let qty = Number(detail?.getData('qty') || 0);\n      if (isNaN(qty)) {\n        qty = 1;\n      }\n      detail.setData('qty', qty);\n      if (qty <= 0) {\n        const details = model?._data?.details || [];\n        details.removeObject(detail);\n        model.sumTotals();\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"checkDetailQty\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"checkDetailQty\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pos/view/cart-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Xb78QHjv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"@details\\\",\\\"@onSubmitTask\\\",\\\"@toggleShowCheckoutDetailsPanel\\\",\\\"@documentTotals\\\",\\\"@model\\\",\\\"@onRemoveItemFromCart\\\",\\\"@onAddItemToCartTask\\\",\\\"@showCheckoutDetailsPanel\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-cart-details\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"nav\\\",true],[10,\\\"style\\\",\\\"width: 100%\\\"],[10,\\\"class\\\",\\\"panel\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"panel-heading\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"current sale\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table is-fullwidth\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"pos-table-item-cell\\\"],[8],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"pos-table-price-cell\\\"],[8],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"item\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"pos-table-cell\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"pos-table-item-cell\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-cart-table-item-cell\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"pos-table-price-cell\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-cart-table-item-cell\\\"],[8],[0,\\\"\\\\n                NT \\\"],[1,[23,1,[\\\"_data\\\",\\\"price\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-cart-table-item-cell\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"field has-addons\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"control\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"button is-danger\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,7,[]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n                      -\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"control\\\"],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@value\\\",\\\"@onInput\\\",\\\"@onFocusOut\\\"],[\\\"has-text-centered\\\",[23,1,[\\\"_data\\\",\\\"qty\\\"]],[28,\\\"fn\\\",[[23,6,[\\\"sumTotals\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"checkDetailQty\\\"]],[23,6,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"control\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"button is-info\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,8,[]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n                      +\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-products-cart-details-footer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-products-cart-details-footer-info\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"documents/document-totals\\\",[],[[\\\"@tableClassNames\\\",\\\"@showTaxes\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@isSplitting\\\",\\\"@isMerging\\\",\\\"@hasGroups\\\",\\\"@hasGroupsReturns\\\",\\\"@model\\\",\\\"@onSumTotals\\\",\\\"@hasReturnsDetails\\\",\\\"@showRefundWorkflow\\\"],[\\\"u-font-size-20\\\",false,[23,5,[\\\"isEditing\\\"]],[23,5,[\\\"isReadonly\\\"]],[23,5,[\\\"isSplitting\\\"]],[23,5,[\\\"isMerging\\\"]],[23,5,[\\\"hasGroups\\\"]],[23,5,[\\\"hasGroupsReturns\\\"]],[23,6,[]],[23,5,[\\\"onSumTotals\\\"]],[23,5,[\\\"hasReturnsDetails\\\"]],[23,5,[\\\"showRefundWorkflow\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-products-cart-details-footer-buttons\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"gt\\\",[[23,2,[\\\"length\\\"]],1],null],false,true],null],\\\"is-normal is-fullwidth\\\",\\\"fas fa-shopping-bag\\\",\\\"previous\\\",[23,3,[\\\"isRunning\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"gt\\\",[[23,2,[\\\"length\\\"]],1],null],false,true],null],\\\"is-normal is-fullwidth\\\",\\\"fas fa-shopping-bag\\\",\\\"next\\\",[23,3,[\\\"isRunning\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/view/cart-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/view/checkout-details/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 DocumentsPosViewCheckoutDetailsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('documents'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('extensions/apps/tw/e-invoices'), _dec6 = Ember.inject.service('pos'), _dec7 = Ember._action, _dec8 = Ember._action, _class = class DocumentsPosViewCheckoutDetailsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"documentsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"eInvoicesService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"posService\", _descriptor6, this);\n      this.crud.addLists(this, ['paymentMethods', 'extensions/apps/tw/e-invoices/carrier-types']);\n    }\n    get submitBtnLabel() {\n      return 'payout';\n    }\n    afterLoadLists() {\n      const cashPaymentMethod = R.pipe(R.pathOr([], ['posService', 'posPaymentMethods']), R.find(R.pathEq(['_data', 'value'], this.constants.paymentMethods.cash)))(this);\n      this.loadPaymentMethod(cashPaymentMethod);\n    }\n    loadPaymentMethod(paymentMethod) {\n      this.args.model.loadPaymentMethod({\n        paymentMethod\n      });\n    }\n    *submitPOSTask() {\n      const posProfileModel = this.args?.tabParent?.posProfileModel;\n      if (!posProfileModel?._data?.autoIssueEInvoice) {\n        return yield this.args.onSubmitFinalTask();\n      }\n\n      // if userKey is not there, it will use any available\n      const userKey = R.pathOr('', ['_data', 'userKey'])(posProfileModel);\n      const fetchAvailableCountToIssueData = yield this.eInvoicesService.fetchAvailableCountToIssueTask.perform({\n        userKey\n      });\n      if (!fetchAvailableCountToIssueData?.hasRemainingCount) {\n        const message = this.intl.t('tw_eInvoices_numbers_no_available_count_create_docSales_without_eInvoice');\n        if (message && window.confirm(message)) {\n          return yield this.args.onSubmitFinalTask();\n        }\n        return;\n      }\n      yield this.args.onSubmitFinalTask();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"documentsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"eInvoicesService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"posService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterLoadLists\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"afterLoadLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadPaymentMethod\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"loadPaymentMethod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submitPOSTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"submitPOSTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pos/view/checkout-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"swpS+mvH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@onSavePreSaveModalTask\\\",\\\"@onPreSubmit\\\",\\\"@onSubmitTask\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-checkout-details\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"nav\\\",true],[10,\\\"class\\\",\\\"panel\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"panel-heading\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"checkout\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-block\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"documents/pos/view/tax-number\\\",[],[[\\\"@model\\\",\\\"@twEInvoiceCarrierType\\\"],[[23,1,[]],[23,1,[\\\"_data\\\",\\\"twEInvoiceCarrierType\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"class\\\",\\\"panel-block\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@list\\\",\\\"@model\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-carrier-types\\\"]],[23,1,[]],\\\"list-selector\\\",false,false,\\\"_data.label\\\",\\\"_data.value\\\",\\\"_data.twEInvoiceCarrierType\\\",[23,1,[\\\"onSetTwEInvoiceCarrierType\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"label\\\",true],[10,\\\"class\\\",\\\"panel-block\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@list\\\",\\\"@model\\\",\\\"@classNames\\\",\\\"@onSelect\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\"],[[23,0,[\\\"posService\\\",\\\"posPaymentMethods\\\"]],[23,1,[]],\\\"list-selector\\\",[23,0,[\\\"loadPaymentMethod\\\"]],false,false,\\\"_data.customLabel\\\",\\\"_data.value\\\",\\\"_data.paymentMethodKey\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"paymentLinkPos\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-checkout-details-qrcode flex-container-row flex-container--justify-center\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"qr-code-generator\\\",[],[[\\\"@data\\\",\\\"@isLink\\\"],[[23,1,[\\\"paymentLinkPos\\\"]],true]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-products-cart-details-footer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-products-cart-details-footer-buttons\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@btnClassNames\\\",\\\"@onSubmit\\\"],[\\\"fas fa-shopping-bag\\\",[23,0,[\\\"submitBtnLabel\\\"]],[28,\\\"or\\\",[[23,4,[\\\"isRunning\\\"]],[23,3,[\\\"isRunning\\\"]],[23,2,[\\\"isRunning\\\"]],[23,0,[\\\"documentsService\\\",\\\"fetchAllDetailsFromGovTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"submitPOSTask\\\",\\\"isRunning\\\"]]],null],\\\"is-normal is-primary is-fullwidth\\\",[28,\\\"perform\\\",[[23,0,[\\\"submitPOSTask\\\"]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/view/checkout-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/view/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, R, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 DocumentsPosViewComponent = _exports.default = (_dec = Ember.inject.service('pos'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _class = class DocumentsPosViewComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"posService\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pin\", _descriptor3, this);\n      _initializerDefineProperty(this, \"originalPin\", _descriptor4, this);\n      _initializerDefineProperty(this, \"pinModalVisible\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showCheckoutDetailsPanel\", _descriptor6, this);\n      _initializerDefineProperty(this, \"campaignDetails\", _descriptor7, this);\n      _initializerDefineProperty(this, \"posProductsFilters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"posBarcodeProductsFilters\", _descriptor9, this);\n      _initializerDefineProperty(this, \"hasSearchBarcodeResults\", _descriptor0, this);\n      this.setupPos();\n      this.searchCampaignDetailsTask.perform();\n    }\n    setupPosProductsFilters() {\n      const shopKey = this.shopKey;\n      this.posProductsFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        defaultFiltersData: {\n          master: shopKey,\n          isPos: true,\n          resultsProperty: 'results',\n          resultsAdapterName: 'channels/shop/campaigns/details',\n          appendPath: `/master/${shopKey}`,\n          statuses: ['active', 'preOrder'],\n          sort: [{\n            by: 'index',\n            direction: 'ASC'\n          }],\n          excludes: [{\n            key: 'setType',\n            value: 'isSetWithChoices'\n          }, {\n            key: 'setType',\n            value: 'hasVariants'\n          }],\n          count: 50\n        }\n      });\n      this.posBarcodeProductsFilters = this.search.copyFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        filters: this.posProductsFilters\n      });\n    }\n    setupPos() {\n      const documentModel = this.args.model;\n      this.setupPosProductsFilters();\n      const posProfileModel = this.posProfileModel;\n      this.posService.setupDocumentWithPosProfile(posProfileModel, documentModel);\n    }\n    _onConfirmRefresh(event) {\n      event.preventDefault();\n      event.returnValue = 'Are you sure you want to leave the page?';\n      return event;\n    }\n    eventListeners(action) {\n      // is this even used? who is calling this?\n      if (action === 'onLoad') {\n        window.addEventListener('beforeunload', this._onConfirmRefresh, {\n          capture: true\n        });\n      } else if (action === 'onUnLoad') {\n        window.removeEventListener('beforeunload', this._onConfirmRefresh, {\n          capture: true\n        });\n      }\n    }\n    willDestroyElement() {\n      if (this.isDestroyed) {\n        return;\n      }\n      try {\n        // is this even used? not sure if event listeners are added\n        window.removeEventListener('beforeunload', this._onConfirmRefresh);\n      } catch (error) {\n        // not sure what happens when\n        console.error('evenlistener not removed');\n      }\n    }\n    get tabIcon() {\n      const areProductsFullScreen = R.pathEq(['args', 'areProductsFullScreen'], true)(this);\n      if (areProductsFullScreen) {\n        return 'fas fa-angle-right';\n      }\n      return 'fas fa-angle-left';\n    }\n    get tabLabel() {\n      const areProductsFullScreen = R.pathEq(['args', 'areProductsFullScreen'], true)(this);\n      if (areProductsFullScreen) {\n        return 'show more';\n      }\n      return 'show less';\n    }\n    get isFullscreenLock() {\n      if (this.originalPin) {\n        return this.originalPin?.length > 0;\n      }\n      return false;\n    }\n    get shopKey() {\n      return this.posProfileModel?._data?.shopKey || '';\n    }\n    get posProfileModel() {\n      return this.args?.tabParent?.posProfileModel || {};\n    }\n    togglePinModalVisible() {\n      this.pinModalVisible = !this.pinModalVisible;\n    }\n    onLockUnlockWithPin(onCloseDialogAction, onTogglePosFullscreenMode) {\n      if (this.originalPin) {\n        const isValidPin = this.pin === this.originalPin;\n        if (isValidPin) {\n          this.originalPin = '';\n          if (onTogglePosFullscreenMode) {\n            onTogglePosFullscreenMode();\n          }\n          if (onCloseDialogAction) {\n            onCloseDialogAction();\n          }\n        }\n        if (onCloseDialogAction) {\n          onCloseDialogAction();\n        }\n        this.pin = '';\n        this.togglePinModalVisible();\n        return;\n      }\n      this.originalPin = this.pin;\n      this.pin = '';\n      if (onTogglePosFullscreenMode) {\n        onTogglePosFullscreenMode();\n      }\n      this.togglePinModalVisible();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    togglePosFullscreenMode(onTogglePosFullscreenMode) {\n      if (this.isFullscreenLock) {\n        this.togglePinModalVisible();\n        this.onLockUnlockWithPin(null, onTogglePosFullscreenMode);\n        return;\n      }\n      if (onTogglePosFullscreenMode) {\n        onTogglePosFullscreenMode();\n      }\n    }\n    toggleShowCheckoutDetailsPanel() {\n      this.showCheckoutDetailsPanel = !this.showCheckoutDetailsPanel;\n    }\n    *searchCampaignDetailsTask() {\n      this.hasSearchBarcodeResults = false;\n      const posProductsFilters = this.posProductsFilters;\n      this.campaignDetails = yield this.posService.fetchCampaignsDetails.perform(posProductsFilters);\n    }\n    *campaignDetailsOnPaginationTask() {\n      this.hasSearchBarcodeResults = false;\n      const posProductsFilters = this.posProductsFilters;\n      this.campaignDetails = yield this.posService.fetchCampaignsDetails.perform(posProductsFilters);\n    }\n    *clearSearchBarcodeResultsTask() {\n      const posProductsFilters = this.posProductsFilters;\n      posProductsFilters.set('_data.query', '');\n      posProductsFilters.set('_data.page', 1);\n      yield this.searchCampaignDetailsTask.perform();\n    }\n    *barcodeInputTask(barcode = '') {\n      const posBarcodeProductsFilters = this.posBarcodeProductsFilters;\n      posBarcodeProductsFilters.set('_data.query', barcode);\n      posBarcodeProductsFilters.set('_data.page', 1);\n      const campaignDetails = yield this.posService.fetchCampaignsDetails.perform(posBarcodeProductsFilters);\n      if (campaignDetails?.length === 1) {\n        const campaignDetail = R.head(campaignDetails);\n        yield this.args.onAddItemToCartTask.perform(campaignDetail);\n      } else if (campaignDetails?.length > 1) {\n        this.campaignDetails = campaignDetails;\n        this.hasSearchBarcodeResults = true;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"posService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"pin\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"originalPin\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"pinModalVisible\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showCheckoutDetailsPanel\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"campaignDetails\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"posProductsFilters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"posBarcodeProductsFilters\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"hasSearchBarcodeResults\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupPosProductsFilters\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPosProductsFilters\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onConfirmRefresh\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"_onConfirmRefresh\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"eventListeners\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"eventListeners\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"willDestroyElement\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroyElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"togglePinModalVisible\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePinModalVisible\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onLockUnlockWithPin\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"onLockUnlockWithPin\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"togglePosFullscreenMode\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePosFullscreenMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowCheckoutDetailsPanel\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowCheckoutDetailsPanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchCampaignDetailsTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchCampaignDetailsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"campaignDetailsOnPaginationTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"campaignDetailsOnPaginationTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSearchBarcodeResultsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSearchBarcodeResultsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"barcodeInputTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"barcodeInputTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pos/view/content/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DocumentsPosViewContentComponent extends _component.default {}\n  _exports.default = DocumentsPosViewContentComponent;\n});","define(\"client/pods/components/documents/pos/view/content/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UdhQofPQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-content\\\"],[8],[0,\\\"\\\\n  \\\"],[14,1],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/view/content/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/view/details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DocumentsPosViewDetailsComponent extends _component.default {}\n  _exports.default = DocumentsPosViewDetailsComponent;\n});","define(\"client/pods/components/documents/pos/view/details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qEKIIosW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"campaginDetail\\\",\\\"@tab\\\",\\\"@onAddItemToCartTask\\\",\\\"@onRemoveItemFromCart\\\",\\\"@isPosFullScreenMode\\\",\\\"@isRunning\\\",\\\"@filters\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-products\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,7,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"documents/pos/product/card\\\",[],[[\\\"@tab\\\",\\\"@product\\\",\\\"@onAddItemToCartTask\\\",\\\"@onRemoveItemFromCart\\\",\\\"@isPosFullScreenMode\\\"],[[23,2,[]],[23,1,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-products-pagination-footer\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@showPageNumbers\\\"],[[23,7,[]],true]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/view/details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/view/header/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 DocumentsPosViewHeaderComponent = _exports.default = (_dec = Ember.inject.service, _class = class DocumentsPosViewHeaderComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    get posFullscreenLabel() {\n      const isPosFullScreenMode = this.args.isPosFullScreenMode === true;\n      if (isPosFullScreenMode) {\n        return this.intl.t('exit fullscreen');\n      }\n      return this.intl.t('enter fullscreen');\n    }\n    get posFullscreenIcon() {\n      const isPosFullScreenMode = this.args.isPosFullScreenMode === true;\n      if (isPosFullScreenMode) {\n        return 'fas fa-compress-alt';\n      }\n      return 'fas fa-expand-alt';\n    }\n    get posFullscreenLockLabel() {\n      const isPosFullScreenMode = this.args.isFullscreenLock === true;\n      if (isPosFullScreenMode) {\n        return this.intl.t('unlock');\n      }\n      return this.intl.t('lock');\n    }\n    get posFullscreenLockIcon() {\n      const isPosFullScreenMode = this.args.isFullscreenLock === true;\n      if (isPosFullScreenMode) {\n        return 'fas fa-lock';\n      }\n      return 'fas fa-unlock';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/documents/pos/view/header/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jShnsKWn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isFullscreenLock\\\",\\\"@onTogglePinModalVisible\\\",\\\"@tabParent\\\",\\\"@model\\\",\\\"@onAddItemToCartTask\\\",\\\"@onRemoveItemFromCart\\\",\\\"@onBarcodeInputTask\\\",\\\"@isPosFullScreenMode\\\",\\\"@onTogglePosFullscreenMode\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-view-nav\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tabs is-right\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"documents/pos/profiles-status\\\",[],[[\\\"@posProfileModel\\\"],[[23,3,[\\\"posProfileModel\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"level-item has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"documents/pos/barcode-scanner\\\",[],[[\\\"@model\\\",\\\"@details\\\",\\\"@onAddItemToCartTask\\\",\\\"@onRemoveItemFromCart\\\",\\\"@onBarcodeInputTask\\\"],[[23,4,[]],[23,4,[\\\"details\\\"]],[23,5,[]],[23,6,[]],[23,7,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[28,\\\"if\\\",[[23,1,[]],\\\"is-active\\\"],null]],[3,\\\"on\\\",[\\\"click\\\",[23,2,[]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"a\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"i\\\",true],[11,\\\"class\\\",[29,[[23,0,[\\\"posFullscreenLockIcon\\\"]]]]],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[8],[1,[23,0,[\\\"posFullscreenLockLabel\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[28,\\\"unless\\\",[[23,1,[]],\\\"is-active\\\"],null]],[3,\\\"on\\\",[\\\"click\\\",[23,9,[]]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"i\\\",true],[11,\\\"class\\\",[29,[[23,0,[\\\"posFullscreenIcon\\\"]]]]],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[8],[1,[23,0,[\\\"posFullscreenLabel\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/view/header/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/view/tax-number/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 DocumentsPosViewTaxNumberComponent = _exports.default = (_dec = Ember.inject.service('documents'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _class = class DocumentsPosViewTaxNumberComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"documentsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"taxNumber\", _descriptor4, this);\n      _initializerDefineProperty(this, \"companyDetails\", _descriptor5, this);\n      _initializerDefineProperty(this, \"mobileBarcode\", _descriptor6, this);\n      this.crud.addLists(this, ['extensions/apps/tw/e-invoices/carrier-types']);\n      // Setup\n      this.taxNumber = this?.args?.model?._data?.taxNumber;\n      this.mobileBarcode = this?.args?.model?._data?.twEInvoiceCarrierId;\n      if (this.mobileBarcode) {\n        this.taxNumber = this?.args?.model?._data?.twEInvoiceCarrierId;\n      }\n    }\n    get leftIcon() {\n      if (this.companyDetails || this.args.twEInvoiceCarrierType === 'b2b') {\n        return 'fas fa-building';\n      }\n      if (this.mobileBarcode || this.args.twEInvoiceCarrierType === 'mobile') {\n        return 'fas fa-barcode';\n      }\n      return 'fas fa-keyboard';\n    }\n    get iconClassName() {\n      const classNames = ['icon'];\n      if (this.companyDetails) {\n        if (this.companyDetails.error) {\n          classNames.push('has-text-danger');\n        } else {\n          classNames.push('has-text-info');\n        }\n      }\n      return classNames.join(' ');\n    }\n    get placeholder() {\n      if (!this.args.twEInvoiceCarrierType) {\n        return;\n      }\n      const twEInvoiceCarrierType = this.args.twEInvoiceCarrierType;\n      if (!twEInvoiceCarrierType) {\n        return '';\n      }\n      const carrierTypeLabel = R.pipe(R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-e-invoices-carrier-types']), R.find(R.pathEq(['_data', 'value'], twEInvoiceCarrierType)), R.pathOr('', ['_data', 'label']))(this);\n      const carrierTypeLabelTranslated = this.intl.t(carrierTypeLabel);\n      return carrierTypeLabelTranslated;\n    }\n    get type() {\n      if (this.args.twEInvoiceCarrierType === 'b2b') {\n        return 'text';\n      }\n      return '';\n    }\n    get pattern() {\n      if (this.args.twEInvoiceCarrierType === 'b2b') {\n        return '\\d*';\n      }\n      return '';\n    }\n    get inputmode() {\n      if (this.args.twEInvoiceCarrierType === 'b2b') {\n        return 'numeric';\n      }\n      return '';\n    }\n    *onInputTask() {\n      this.companyDetails = null;\n      this.mobileBarcode = null;\n      const validTaxNumber = R.trim(this.taxNumber) || '';\n      if (!validTaxNumber) {\n        return;\n      }\n      const isMobileBarcode = validTaxNumber.startsWith('/');\n      if (isMobileBarcode) {\n        this.mobileBarcode = validTaxNumber;\n        this.args.model.setupTaxDetails({\n          value: validTaxNumber\n        });\n        return;\n      }\n      this.mobileBarcode = '';\n      return this.fetchCompanyDetailsFromGovTask.perform();\n    }\n    *fetchCompanyDetailsFromGovTask() {\n      const validTaxNumber = R.trim(this.taxNumber) || '';\n      const response = yield this.documentsService.fetchAllDetailsFromGovTask.perform(validTaxNumber);\n      response.value = validTaxNumber;\n      this.companyDetails = response;\n      return this.args.model.setupTaxDetails(response);\n    }\n    resetTaxDetails() {\n      const taxNumber = this.args?.model?._data?.taxNumber;\n      if (taxNumber) {\n        return;\n      }\n      this.taxNumber = null;\n      this.companyDetails = null;\n      this.mobileBarcode = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"documentsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"taxNumber\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"companyDetails\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"mobileBarcode\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onInputTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchCompanyDetailsFromGovTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCompanyDetailsFromGovTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetTaxDetails\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"resetTaxDetails\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/pos/view/tax-number/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"W+7//wO5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@model\\\",\\\"@twEInvoiceCarrierType\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"flex-container-column flex-container--align-content-start\\\"],[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"resetTaxDetails\\\"]],[23,2,[\\\"synced\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@disabled\\\",\\\"@leftIcon\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@debounceMs\\\",\\\"@isRunning\\\",\\\"@autofocus\\\",\\\"@isSearchBar\\\",\\\"@instructionMessage\\\",\\\"@onSubmit\\\",\\\"@onFocusOut\\\",\\\"@onInput\\\",\\\"@type\\\",\\\"@pattern\\\",\\\"@inputmode\\\"],[[28,\\\"if\\\",[[23,3,[]],false,true],null],[28,\\\"if\\\",[[23,3,[]],false,true],null],[23,0,[\\\"leftIcon\\\"]],[23,0,[\\\"placeholder\\\"]],[23,0,[\\\"taxNumber\\\"]],1200,[23,0,[\\\"fetchCompanyDetailsFromGovTask\\\",\\\"isRunning\\\"]],true,false,false,[28,\\\"perform\\\",[[23,0,[\\\"onInputTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"onInputTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"onInputTask\\\"]]],null],[23,0,[\\\"type\\\"]],[23,0,[\\\"pattern\\\"]],[23,0,[\\\"inputmode\\\"]]]]],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[23,0,[\\\"iconClassName\\\"]]],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-info-circle\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"companyDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-link--text\\\",false,[23,0,[\\\"companyDetails\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"companyDetails\\\",\\\"type\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-link--text\\\",false,[23,0,[\\\"companyDetails\\\",\\\"type\\\"]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"companyDetails\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-link--text\\\",false,[23,0,[\\\"companyDetails\\\",\\\"address\\\"]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"companyDetails\\\",\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,0,[\\\"companyDetails\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/view/tax-number/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/pos/view/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LRwH9It1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@tab\\\",\\\"@tabParent\\\",\\\"@isPosFullScreenMode\\\",\\\"@onTogglePosFullscreenMode\\\",\\\"@onAddItemToCartTask\\\",\\\"@onRemoveItemFromCart\\\",\\\"@documentTotals\\\",\\\"@onSubmitFinalTask\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,1,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"modal pos-pin-modal \\\",[28,\\\"if\\\",[[23,0,[\\\"pinModalVisible\\\"]],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"will-destroy\\\",[[28,\\\"fn\\\",[[23,0,[\\\"willDestroyElement\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-background\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-card\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"modal-card-body\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"posView\\\",\\\"pos\\\",\\\"pin\\\",[23,1,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"pin\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"footer\\\",true],[10,\\\"class\\\",\\\"modal-card-foot\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[28,\\\"fn\\\",[[23,0,[\\\"onLockUnlockWithPin\\\"]],[24,[\\\"onCloseDialogAction\\\"]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"documents/pos/view/header\\\",[],[[\\\"@tab\\\",\\\"@tabParent\\\",\\\"@model\\\",\\\"@isFullscreenLock\\\",\\\"@onTogglePinModalVisible\\\",\\\"@isPosFullScreenMode\\\",\\\"@onTogglePosFullscreenMode\\\",\\\"@onAddItemToCartTask\\\",\\\"@onBarcodeInputTask\\\"],[[23,2,[]],[23,3,[]],[23,1,[]],[23,0,[\\\"isFullscreenLock\\\"]],[23,0,[\\\"togglePinModalVisible\\\"]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"togglePosFullscreenMode\\\"]],[23,5,[]]],null],[23,6,[]],[23,0,[\\\"barcodeInputTask\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"documents/pos/view/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-content-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasSearchBarcodeResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,0,[\\\"clearSearchBarcodeResultsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"clearSearchBarcodeResultsTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[5,\\\"documents/pos/view/details\\\",[],[[\\\"@tab\\\",\\\"@tabParent\\\",\\\"@isRunning\\\",\\\"@onAddItemToCartTask\\\",\\\"@onRemoveItemFromCart\\\",\\\"@isPosFullScreenMode\\\",\\\"@filters\\\"],[[23,2,[]],[23,3,[]],[23,0,[\\\"searchCampaignDetailsTask\\\",\\\"isRunning\\\"]],[23,6,[]],[23,7,[]],[23,4,[]],[23,0,[\\\"posProductsFilters\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pos-content-section full-height\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"documents/pos/view/cart-details\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@tabParent\\\",\\\"@tabIcon\\\",\\\"@tabLabel\\\",\\\"@details\\\",\\\"@onAddItemToCartTask\\\",\\\"@onRemoveItemFromCart\\\",\\\"@onTogglePosFullscreenMode\\\",\\\"@documentTotals\\\",\\\"@toggleShowCheckoutDetailsPanel\\\",\\\"@showCheckoutDetailsPanel\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,0,[\\\"tabIcon\\\"]],[23,0,[\\\"tabLabel\\\"]],[23,1,[\\\"sorted\\\"]],[23,6,[]],[23,7,[]],[23,5,[]],[23,8,[]],[23,0,[\\\"toggleShowCheckoutDetailsPanel\\\"]],[23,0,[\\\"showCheckoutDetailsPanel\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"pos-content-section full-height \\\",[28,\\\"unless\\\",[[23,0,[\\\"showCheckoutDetailsPanel\\\"]],\\\"u-print-hidden\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"documents/pos/view/checkout-details\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@tabParent\\\",\\\"@onSubmitFinalTask\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,9,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/pos/view/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/purchases/consignments-returns/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/purchases/consignments-returns/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5WH0TLtN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"showFromPerson\\\",\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[true,[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/purchases/consignments-returns/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/purchases/consignments/overview-container/component\", [\"exports\", \"client/pods/components/documents/mixins/tab\"], function (_exports, _tab) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_tab.default, {\n    crud: Ember.inject.service(),\n    docType: 'purchases',\n    docName: 'consignments',\n    init() {\n      this._super(...arguments);\n\n      // fetch list of all consignments\n      this.setup();\n    },\n    setup() {\n\n      // const self = this;\n\n      // const docType = self.get('docType');\n      // const docName = self.get('docName');\n      // const data = {};\n      // self.get('server').GET(`api/protected/documents/${docType}/${docName}/overview`, data).then(function (results) {\n\n      //   self.set('pendingList', results.data);\n      // });\n    }\n  });\n});","define(\"client/pods/components/documents/purchases/consignments/overview-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Xx+C5qI/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"contact\\\",\\\"item\\\",\\\"result\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"display\\\",[23,3,[]]]],[8],[0,\\\"\\\\n        \\\"],[1,[23,3,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"document\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"ordered qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"delivered qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"outstanding qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"pendingList\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"contact\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"detail\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"detail\\\",\\\"itemCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,2,[\\\"detail\\\",\\\"itemCode\\\"]],false],[0,\\\" -\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"detail\\\",\\\"item\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"detail\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"pending\\\",\\\"orderedQty\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"pending\\\",\\\"deliveredQty\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"pending\\\",\\\"outstandingQty\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"detail\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/purchases/consignments/overview-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/purchases/consignments/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/purchases/consignments/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"z76dz83E\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[true,\\\"fas fa-envelope\\\",\\\"email document\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/purchases/consignments/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/purchases/invoices/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/purchases/invoices/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WPeoRjrd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"send document\\\",\\\"fas fa-envelope\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/purchases/invoices/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/purchases/orders/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/purchases/orders/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"e0A+iHmx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/purchases/orders/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/purchases/quotes/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/purchases/quotes/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"U8RtECjR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[0,\\\"  \\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"showFromPerson\\\",\\\"hasEmptyRows\\\",\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[true,true,[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/purchases/quotes/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/purchases/returns/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/purchases/returns/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"irJddkh0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"subHeaderComponent\\\",\\\"detailsComponent\\\",\\\"showFromPerson\\\",\\\"title\\\",\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[\\\"documents/document-print/sub-header-references\\\",\\\"documents/document-print/details-prices\\\",true,[24,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"send document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/purchases/returns/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/sales/consignments-returns/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/sales/consignments-returns/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"79LQysUz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/sales/consignments-returns/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/sales/consignments/overview-container/component\", [\"exports\", \"client/pods/components/documents/mixins/tab\"], function (_exports, _tab) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_tab.default, {\n    crud: Ember.inject.service(),\n    docType: 'sales',\n    docName: 'consignments',\n    init() {\n      this._super(...arguments);\n\n      //fetch list of all consignments\n      this.setup();\n    },\n    setup() {\n\n      // const self = this;\n\n      // const docType = self.get('docType');\n      // const docName = self.get('docName');\n      // const data = {};\n      // self.get('server').GET(`api/protected/documents/${docType}/${docName}/overview`, data).then(function (results) {\n\n      //   self.set('pendingList', results.data);\n      // });\n    }\n  });\n});","define(\"client/pods/components/documents/sales/consignments/overview-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Gx1Z9TV9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"contact\\\",\\\"item\\\",\\\"result\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"display\\\",[23,3,[]]]],[8],[0,\\\"\\\\n        \\\"],[1,[23,3,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"document\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"ordered qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"delivered qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"outstanding qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"pendingList\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"contact\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"detail\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"detail\\\",\\\"itemCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,2,[\\\"detail\\\",\\\"itemCode\\\"]],false],[0,\\\" -\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"detail\\\",\\\"item\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"detail\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"pending\\\",\\\"orderedQty\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"pending\\\",\\\"deliveredQty\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"pending\\\",\\\"outstandingQty\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"detail\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/sales/consignments/overview-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/sales/consignments/print-btns/component\", [\"exports\", \"client/mixins/emails-dispatched\", \"client/mixins/crud\"], function (_exports, _emailsDispatched, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _emailsDispatched.default, {\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/sales/consignments/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ngdr1OeX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,4,[]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4,5]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,3,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,3,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isDispatched\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\",\\\"isRunning\\\",\\\"label\\\"],[\\\"fas fa-truck\\\",\\\"send dispatched email\\\",true,[24,[\\\"sendDispatchedEmailsTask\\\",\\\"isRunning\\\"]],\\\"send dispatched email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"emails/dispatch-batch\\\",null,[[\\\"tab\\\",\\\"isBatch\\\",\\\"sendLabel\\\",\\\"isDispatched\\\",\\\"dispatchProcess\\\",\\\"isRunning\\\",\\\"onCloseDialogAction\\\",\\\"docKey\\\",\\\"docType\\\",\\\"docName\\\",\\\"transporterArrivalDateZ\\\",\\\"onGetToSendEmailsTask\\\",\\\"onSendEmailsTask\\\"],[[24,[\\\"tab\\\"]],false,\\\"send email\\\",true,[24,[\\\"dispatchProcess\\\"]],[28,\\\"or\\\",[[24,[\\\"getToSendDispatchedEmailsTask\\\",\\\"isRunning\\\"]],[24,[\\\"sendDispatchedEmailsTask\\\",\\\"isRunning\\\"]]],null],[23,2,[]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]],[24,[\\\"getToSendDispatchedEmailsTask\\\"]],[24,[\\\"sendDispatchedEmailsTask\\\"]]]]],false],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/sales/consignments/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/sales/invoices/print-btns/component\", [\"exports\", \"client/mixins/emails-dispatched\", \"client/mixins/crud\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emailsDispatched, _crud, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _emailsDispatched.default, {\n    application: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    tagName: '',\n    showPaymentLinkBtn: Ember.computed('settings.settingsModel._data.creditCard_tapPay', 'model._data.{paymentMethodKey,isVoidisRecurringChild,isRecurringMaster,hasAnyScheduledDateZ.[]}', function () {\n      const isVoid = this.model._data.isVoid || '';\n      if (isVoid) {\n        return false;\n      }\n      const isTapPay = this.settings.getProp('creditCard_tapPay.enabled');\n      if (isTapPay) {\n        const paymentMethod = this.model._data.paymentMethodKey || '';\n        if (paymentMethod === this.constants.paymentMethods.creditCard && !this.model._data.paymentCreditCardTransactionCode && this.model._data.externalUrl) {\n          const isRecurringOrder = this.model._data?.isRecurringChild || this.model._data?.isRecurringMaster || false;\n          if (!isRecurringOrder) {\n            return true;\n          }\n          return R.pipe(R.pathOr([], ['model', '_data', 'hasAnyScheduledDateZ']), R.find(schedule => {\n            const failedCCId = schedule.failedCCId || '';\n            const errors = schedule.errors || [];\n            const processingStatus = schedule.processingStatus;\n            if ((failedCCId || RA.isNotNilOrEmpty(errors)) && processingStatus === 'shouldRetry') {\n              return true;\n            }\n            return false;\n          }), RA.isNotNilOrEmpty)(this);\n        }\n      }\n      const isLinePayTapPay = this.settings.getProp('linePay_tapPay.enabled');\n      if (isLinePayTapPay) {\n        const paymentMethod = this.model._data.paymentMethodKey || '';\n        if (paymentMethod === this.constants.paymentMethods.linePay && !this.model._data.paymentCreditCardTransactionCode && this.model._data.externalUrl) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    isPos: Ember.computed('tab', function () {\n      const masterTab = this.tabsManager.getMasterTab();\n      const isPos = R.pathEq(['isPos'], true)(masterTab);\n      if (isPos) {\n        return true;\n      }\n      return false;\n    }),\n    qrCodeData: Ember.computed('model.paymentLink', function () {\n      const paymentLink = this.model.paymentLink;\n      if (paymentLink) {\n        return `${paymentLink}?isPos=true`;\n      }\n      return '';\n    }),\n    actions: {\n      goToPaymentPage(onHideDropdown) {\n        const url = this.model.paymentLink;\n        window.open(url, '_blank');\n        onHideDropdown();\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/sales/invoices/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pdAcTq2B\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"printBadge\\\",\\\"autoPosition\\\"],[\\\"fas fa-print\\\",\\\"print\\\",[24,[\\\"printBadge\\\"]],true]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"label\\\",\\\"hasPrintBtn\\\"],[\\\"print\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"model\\\",\\\"hasGroups\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[[24,[\\\"model\\\"]],true,[24,[\\\"selectedContact\\\"]],[23,12,[]],[23,13,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[12,13]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.extensions.tw_hct\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]],[24,[\\\"constants\\\",\\\"documentsStatus\\\",\\\"final\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"isDispatched\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterExtension\\\"]],[24,[\\\"constants\\\",\\\"transporterExtensions\\\",\\\"hct\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"tagName\\\",\\\"label\\\",\\\"onClose\\\"],[\\\"span\\\",\\\"print waybill\\\",[28,\\\"perform\\\",[[23,0,[\\\"dispatch\\\",\\\"markAsPrintedTask\\\"]],[28,\\\"array\\\",[[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"transporters/hct-waybills-list\\\",null,[[\\\"results\\\"],[[28,\\\"array\\\",[[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[11]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[9,10]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[28,\\\"or\\\",[[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],[24,[\\\"sendDispatchedEmailsTask\\\",\\\"isRunning\\\"]]],null],\\\"email\\\"]],{\\\"statements\\\":[[4,\\\"unless\\\",[[23,14,[\\\"_data\\\",\\\"sourceKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,8,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,8,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email delivery note\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\",\\\"isEmailDeliveryNote\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,7,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,7,[]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isCashBeforeDelivery\\\"]],[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"dispatchProcess\\\"]],[24,[\\\"constants\\\",\\\"dispatchProcess\\\",\\\"awaitingPayment\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-comment-dollar\\\",\\\"email payment reminder\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendPaymentReminderEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"docModel\\\",\\\"isPaymentReminderEmail\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"model\\\"]],true,[24,[\\\"sendPaymentReminderEmailsTask\\\"]],[28,\\\"perform\\\",[[24,[\\\"sendPaymentReminderEmailsTask\\\"]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"email\\\",\\\"hasPrices\\\",\\\"docKey\\\",\\\"docType\\\",\\\"docName\\\"],[[24,[\\\"email\\\"]],false,[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,6,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isDispatched\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\",\\\"isRunning\\\",\\\"label\\\"],[\\\"fas fa-truck\\\",\\\"send dispatched email\\\",true,[24,[\\\"sendDispatchedEmailsTask\\\",\\\"isRunning\\\"]],\\\"send dispatched email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"emails/dispatch-batch\\\",null,[[\\\"tab\\\",\\\"isBatch\\\",\\\"sendLabel\\\",\\\"isDispatched\\\",\\\"dispatchProcess\\\",\\\"isRunning\\\",\\\"onCloseDialogAction\\\",\\\"docKey\\\",\\\"docType\\\",\\\"docName\\\",\\\"transporterArrivalDateZ\\\",\\\"onGetToSendEmailsTask\\\",\\\"onSendEmailsTask\\\"],[[24,[\\\"tab\\\"]],false,\\\"send email\\\",true,[24,[\\\"dispatchProcess\\\"]],[28,\\\"or\\\",[[24,[\\\"getToSendDispatchedEmailsTask\\\",\\\"isRunning\\\"]],[24,[\\\"sendDispatchedEmailsTask\\\",\\\"isRunning\\\"]]],null],[23,5,[]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]],[24,[\\\"getToSendDispatchedEmailsTask\\\"]],[24,[\\\"sendDispatchedEmailsTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"model\\\",\\\"isCreditCardPayment\\\"]],[24,[\\\"model\\\",\\\"isLinePayPayment\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-credit-card\\\",\\\"creditCard\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\"],[\\\"fas fa-history\\\",\\\"credit card history\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"payments/card/history\\\",[],[[\\\"@docKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showPaymentLinkBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"fas fa-credit-card\\\",\\\"payment link\\\",[28,\\\"action\\\",[[23,0,[]],\\\"goToPaymentPage\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"isCopyBtn\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"far fa-copy\\\",true,\\\"copy payment link\\\",[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],[23,0,[\\\"model\\\",\\\"paymentLink\\\"]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isPos\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@hasSectionWrapper\\\",\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@modalDialogTitle\\\",\\\"@label\\\"],[true,true,\\\"fas fa-qrcode\\\",\\\"qr code\\\",\\\"qr code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"qr-code-generator\\\",[],[[\\\"@data\\\"],[[23,0,[\\\"qrCodeData\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/sales/invoices/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/sales/orders/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/sales/orders/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HfCrP5Fj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/sales/orders/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/sales/quotes/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/sales/quotes/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xwnsOCQI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"showFromPerson\\\",\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[true,[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/sales/quotes/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/sales/returns/print-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/documents/sales/returns/print-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JIQKMhvV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],\\\"statements\\\":[[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"model\\\",\\\"selectedContact\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\"],[[24,[\\\"model\\\"]],[24,[\\\"selectedContact\\\"]],[23,3,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-envelope\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"fas fa-envelope\\\",\\\"email document\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSetupSendEmail\\\"]],[24,[\\\"email\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onClearSendEmail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"email\\\"]],[24,[\\\"sendEmailTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSendEmail\\\"]],[24,[\\\"email\\\"]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancelSendEmail\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/sales/returns/print-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/search-results-documents/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['dispatch/lists/processes']);\n    }\n  });\n});","define(\"client/pods/components/documents/search-results-documents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"iLqHBBkz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\"],\\\"statements\\\":[[4,\\\"lists/list-results\\\",null,[[\\\"query\\\",\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"query\\\"]],[24,[\\\"list\\\"]],[24,[\\\"onSelect\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"documents/search-results\\\",null,[[\\\"query\\\",\\\"result\\\",\\\"dispatchProcesses\\\"],[[24,[\\\"query\\\"]],[23,1,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/search-results-documents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/search-results/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div'\n  });\n});","define(\"client/pods/components/documents/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qv00+2r+\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__details\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"contact\\\"]],[28,\\\"not-eq\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"contact\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t(\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"contact\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"contact\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"contactKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-address-book\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t#\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"docNo\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\". \\\"],[1,[28,\\\"date\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\".\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"source\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"result\\\",\\\"_data\\\",\\\"source\\\"]],false],[0,\\\".\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"ref\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-results__text u-desc u-desc--mini \\\",[28,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"isVoid\\\"]],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t$\\\"],[1,[28,\\\"number\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\".\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"model\\\"],[[24,[\\\"result\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[24,[\\\"result\\\"]],false,[24,[\\\"dispatchProcesses\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/status-tag/component\", [\"exports\", \"client/mixins/doc-status\", \"client/mixins/date\"], function (_exports, _docStatus, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _docStatus.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    showDropdown: false,\n    autoFetchLists: true,\n    readonly: false,\n    autoPosition: true,\n    showIcons: true,\n    init() {\n      this._super(...arguments);\n      if (!this.dispatchProcesses && this.autoFetchLists) {\n        this.crud.addLists(this, ['dispatch/lists/processes']);\n      }\n    },\n    isDropdownVisible: Ember.computed('showDropdown', 'isBtn', function () {\n      // const list = this.get('list') || []\n      if (!this.isBtn) {\n        return false;\n      }\n      if (this.readonly === false && this.showDropdown) {\n        // if (this.get('readonly') === false && this.get('showDropdown') && list.length > 0) {\n        return true;\n      }\n      return false;\n    }),\n    translatedDispatchProcess: Ember.computed('model.{synced,_data.dispatchProcessLabel,_data.dispatchProcess,_data.dispatchDateZ}', 'crud.lists.dispatch-lists-processes.[]', 'dispatchProcesses.[]', function () {\n      // translatedDispatchProcess: computed('model._data.dispatchProcess', 'crud.lists.dispatch-lists-processes.[]', 'dispatchProcesses.[]', function () {\n      // const model = this.get('model')\n      const dispatchProcessLabel = this.get('model._data.dispatchProcessLabel');\n      const dispatchProcessLabelTranslate = this.get('model._data.dispatchProcessLabelTranslate');\n      if (dispatchProcessLabelTranslate) {\n        return this.intl.t(dispatchProcessLabel);\n      }\n      return dispatchProcessLabel;\n    }),\n    label: Ember.computed('model.{synced,_data.status,_data.dispatchProcess,_data.dispatchDateZ}', 'translatedDispatchProcess', function () {\n      // @TODO: move to model?\n      const model = this.model;\n      const status = model.getData('status');\n      const intl = this.intl;\n      let label = intl.t(status);\n      if (this.get('model._data.isMerged')) {\n        return intl.t('merged_document');\n      }\n      if (!this.get('model.hasDispatchProcess')) {\n        return label;\n      }\n      const dispatchProcess = model.getData('dispatchProcess');\n      const dispatchDateZ = model.getData('dispatchDateZ');\n      if (status === this.get('constants.documentsStatus.final')) {\n        label = this.translatedDispatchProcess;\n        if (dispatchProcess === this.get('constants.dispatchProcess.dispatched')) {\n          const date = this.formatDate(dispatchDateZ);\n          label = `${label}: ${date}`;\n        }\n      }\n      if (!label) {\n        label = intl.t(this.get('constants.dispatchProcess.unprepared'));\n      }\n      return label;\n    }),\n    actions: {\n      hideDropdown() {\n        this.set('showDropdown', false);\n      },\n      showDropdown() {\n        this.set('showDropdown', true);\n      },\n      submit() {\n        const onSubmit = this.onSubmit;\n        if (onSubmit) {\n          onSubmit(...arguments);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/documents/status-tag/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"opmH3ho4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"transporterWaybillRecord\\\",\\\"isTooltipVisible\\\",\\\"history\\\",\\\"onCloseDialogAction\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isDropdownBtn\\\"]],[24,[\\\"model\\\",\\\"hasDispatchProcess\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"translate\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"onSubmit\\\"],[[24,[\\\"label\\\"]],[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"isVoid\\\"]]],null],false,true,[28,\\\"or\\\",[[24,[\\\"statusBadgeClassNames\\\"]],[24,[\\\"model\\\",\\\"statusClass\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"showDropdown\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[14,6,[[28,\\\"action\\\",[[23,0,[]],\\\"hideDropdown\\\"],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isToggleBtn\\\"]],[24,[\\\"model\\\",\\\"hasDispatchProcess\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"disabled\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\",\\\"label\\\",\\\"translate\\\"],[[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"isVoid\\\"]]],null],true,[28,\\\"or\\\",[[24,[\\\"statusBadgeClassNames\\\"]],[24,[\\\"model\\\",\\\"statusClass\\\"]]],null],true,true,[24,[\\\"toggleValue\\\"]],[24,[\\\"label\\\"]],false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-models__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"or\\\",[[24,[\\\"statusBadgeClassNames\\\"]],[24,[\\\"model\\\",\\\"statusClass\\\"]]],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"label\\\"],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showIcons\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isPrinted\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"printHistory\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"helpers/info-tooltip\\\",[[12,\\\"class\\\",\\\"documents-status-tag-printed-badge\\\"]],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__badge \\\",[22,\\\"badgeClassNames\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-print\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"printHistory\\\",\\\"length\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,3,[]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"printHistory\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"printed\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,4,[\\\"timestampZ_printed\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"ramda\\\",[\\\"toUpper\\\",[28,\\\"ramda\\\",[\\\"take\\\",4,[23,4,[\\\"printBatchId\\\"]]],null]],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterWaybillRecords\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"helpers/info-tooltip\\\",[[12,\\\"class\\\",\\\"documents-status-tag-printed-badge\\\"]],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__badge \\\",[22,\\\"badgeClassNames\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-truck\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterWaybillRecords\\\",\\\"length\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterWaybillRecords\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"printed\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"timestampZ_latest\\\"]]],null],false],[0,\\\" (\\\"],[1,[23,2,[\\\"waybill\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/status-tag/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/tab-container/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\", \"client/mixins/crud\", \"client/mixins/doc-list-by\", \"client/utils/nventor\", \"client/pods/components/documents/docConfig\", \"ember-concurrency\", \"ember-concurrency-decorators\", \"client/pods/documents/proxy/model\"], function (_exports, R, R_, RA, _crud, _docListBy, _nventor, _docConfig, _emberConcurrency, _emberConcurrencyDecorators, _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, _dec6, _dec7, _dec8, _dec9, _obj;\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  const dateFormatString = 'YYYY-MM-DD';\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _docListBy.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    uploadcareService: Ember.inject.service('uploadcare'),\n    dateService: Ember.inject.service('date'),\n    posService: Ember.inject.service('pos'),\n    storageService: Ember.inject.service('storage'),\n    subTabsCopy: null,\n    filtersAdapterName: 'documents/filters',\n    posShopKey: null,\n    products: null,\n    shop: null,\n    enableAutoIssueEInvoice: true,\n    showFilters: false,\n    listsIsLoaded: null,\n    shopsList: null,\n    init() {\n      this._super(...arguments);\n      const tab = this.tab;\n      const docConfigData = _docConfig.default.getFor(tab);\n      const {\n        docType,\n        docName\n      } = docConfigData;\n      this.crud.addLists(this, ['dispatch/lists/processes', 'units', 'taxes', 'taxMethods', 'contacts/lists/tags', 'discounts/types', 'dispatch/lists/processes', 'documents/lists/discountmethods', 'documents/lists/filters/statuses', 'documents/lists/filters/dispatch-status', 'documents/lists/print', 'documents/lists/print/unit', 'documents/lists/print/product-code', 'paymentMethods', 'paymentTerms', 'paymentTerms/from', 'paymentTerms/end', 'documents/lists/deliverydatesoptions', 'dispatch/lists/processes', 'extensions/apps/tw/invoicingAuto', 'toggles/onOff', 'shipping/deliveryTimes', 'documents/lists/date-filter', 'documents/lists/date-range-filter', {\n        adapterName: 'documents/lists/menu',\n        appendPath: `${docType}/${docName}`,\n        options: {\n          docType,\n          docName\n        }\n      }, {\n        adapterName: 'documents/lists/menu/pos',\n        appendPath: `${docType}/${docName}`,\n        options: {\n          docType,\n          docName\n        }\n      }, {\n        adapterName: 'users',\n        appendPath: 'internal'\n      }, 'printer/lists/allow-printing-from']);\n      this.set('config', docConfigData);\n      this.set('tab.tabs', []);\n      const title = tab.get('docType') + '-' + tab.get('docName');\n      this.set('docTitle', title);\n      this.set('adapterName', this.get('config.adapterName'));\n      this.set('docType', docType);\n      this.set('docName', docName);\n      const period = this.getPeriod();\n      this.set('period', period);\n      const isPos = R.pathEq(['tab', 'isPos'], true)(this);\n      const defaultFiltersData = {\n        menuId: `${this.filtersAdapterName}--${docType}-${docName}`,\n        isPos,\n        dateHeaderValue: 'dateZ',\n        resultsAdapterName: docConfigData.adapterName\n      };\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData\n      });\n      filters.set('showStarred', true);\n      this.set('filters', filters);\n      const tableViewOptions = {\n        hasDispatchStatus: false,\n        hasDispatchProcess: false,\n        allowDispatching: false\n      };\n      if (docType === 'sales' && (docName === 'invoices' || docName === 'consignments')) {\n        tableViewOptions.hasDispatchStatus = true;\n        tableViewOptions.hasDispatchProcess = true;\n        tableViewOptions.allowDispatching = true;\n      }\n      this.set('tableViewOptions', tableViewOptions);\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* ({\n      tab\n    }) {\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        this.display();\n      } else {\n        this.dash();\n      }\n    }),\n    toggleResults(results) {\n      const subTab = this.tabsManager.getActiveSubTab(this.tab);\n      if (subTab?.component === 'documents/panel-dash') {\n        return results;\n      }\n      Ember.set(this, 'filters.showResults', true);\n      return results;\n    },\n    *fetchCampaignsWithPosEnableTask() {\n      const shopsList = yield this.posService.fetchCampaignsWithPosEnableTask.perform();\n      this.set('shopsList', shopsList);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const tab = this.tab;\n      this.set('listsIsLoaded', Math.random());\n      this.setupListByFilters();\n      this.loadTabTask.perform({\n        tab\n      });\n    },\n    setupListByFilters() {\n      const filters = this.filters;\n      const monthsRange = R.pathOr('6', ['crud', 'lists', 'documents-lists-date-filter', 0, '_data', 'value'])(this);\n      const monthsRangeForSearch = R.pathOr('12', ['crud', 'lists', 'documents-lists-date-range-filter', 0, '_data', 'value'])(this);\n      filters.set('monthsRange', monthsRange);\n      filters.set('monthsRangeForSearch', monthsRangeForSearch);\n      this.set('filters', filters);\n    },\n    isDispatchedProcessModel: Ember.computed('crud.lists.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      const isDispatched = this.get('constants.dispatchProcess.dispatched');\n      return R.find(R.pathEq(['_data', 'code'], isDispatched), dispatchProcesses);\n    }),\n    updateDocInfoTask: (0, _emberConcurrency.task)(function* (dirty) {\n      const adapterName = this.adapterName;\n      return yield this.updateRecordTask.perform({\n        adapterName,\n        appendPath: '/info',\n        model: dirty\n      });\n    }).drop(),\n    documentsListsMenu: Ember.computed(\n    // 'terminalProxy.terminal',\n    'listsIsLoaded', 'docType', 'docName', function () {\n      const docType = this.docType;\n      const docName = this.docName;\n      const isPos = R.pathEq(['tab', 'isPos'], true)(this);\n      if (!isPos) {\n        return this.get(`crud.lists.documents-lists-menu--${docType}-${docName}`) || [];\n      }\n      return R.pipe(R.pathOr([], ['crud', 'lists', `documents-lists-menu-pos--${docType}-${docName}`])\n      // R.map(\n      //   menu => {\n      //     const enterPosModeBtn = R.pathEq(['_data', 'label'], 'enter pos mode')(menu)\n      //     if (!enterPosModeBtn) {\n      //       return menu\n      //     }\n      //     const allowEnterPosMode = R.pipe(\n      //       R.path(['terminalProxy', 'terminal']),\n      //       RA.isNotNilOrEmpty\n      //     )(this)\n      //     if (menu._data.enable === allowEnterPosMode) {\n      //       return menu\n      //     }\n      //     menu.set('_data.enable', allowEnterPosMode)\n      //     return menu\n      //   }\n      // )\n      )(this);\n    }),\n    resultsProxy: Ember.computed('filters.results.[]', function () {\n      const results = this?.filters?.results || [];\n\n      // let results = this.results || []\n      // if (RA.isNotNilOrEmpty(filterResults)) {\n      //   results = filterResults\n      // }\n\n      return R.map(result => _nventor.default.createModel(_model.default, {}, {\n        model: result,\n        isSelected: false,\n        showDetails: false // @TODO: get this from settings\n      }), results);\n    }),\n    dash() {\n      this._dashTask.perform();\n    },\n    _dashTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      Ember.set(this, 'filters.showResults', false);\n      const adapterName = this.adapterName;\n      const filters = this.filters;\n      filters.setData('query', '');\n      const monthsRange = filters.monthsRange || 6;\n      const dateStart = this.dateService.getMoment().subtract(monthsRange, 'months').format(dateFormatString);\n      filters.setData('dateStart', dateStart);\n      filters.setData('dateEnd', '');\n\n      // @NOTE: cannot use this.crud.fetchDefaultDataTask here. will have issues when creating new documents across multiple tabs.\n      yield this.fetchDefaultDataTask.perform({\n        adapterName,\n        filters\n      });\n      const subTabOptions = {\n        component: 'documents/panel-dash'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }),\n    display(model) {\n      Ember.set(this, 'filters.showResults', false);\n      const component = this.get('config.displayComponent');\n      const tab = this.tab;\n      const isNew = tab.isNew;\n      const isFromShortcut = tab.isFromShortcut || false;\n      const isFromPendingShortcut = tab.isFromPendingShortcut || false;\n      const isFromContactShortcut = tab.isFromContactShortcut || false;\n      const isFromDocument = tab.isFromDocument || false;\n      const isDuplicateDocumentShortcut = tab.isDuplicateDocumentShortcut || false;\n      const isFromOutstandingQty = tab.isFromOutstandingQty || false;\n      const isFromToInvoiceQty = tab.isFromToInvoiceQty || false;\n      const isLinkingNeeded = RA.isNilOrEmpty(tab.isLinkingNeeded) ? true : tab.isLinkingNeeded;\n      let subTabOptions;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (tab?.isNew) {\n        tab.set('isNew', false);\n        return this.new();\n        // subTabOptions = {\n        //   component: this.get('config.newComponent'),\n        //   loadInstructions,\n        //   pendingDoc: model,\n        //   isFromShortcut,\n        //   isFromPendingShortcut,\n        //   isFromContactShortcut,\n        //   isFromDocument,\n        //   isDuplicateDocumentShortcut,\n        //   isFromOutstandingQty,\n        //   isFromToInvoiceQty,\n        //   isLinkingNeeded,\n        //   config: this.config\n        // }\n        // tab.set('isFromShortcut', false)\n      } else {\n        subTabOptions = {\n          component: component,\n          model: model,\n          loadInstructions,\n          config: this.config\n        };\n      }\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    new() {\n      Ember.set(this, 'filters.showResults', false);\n      const self = this;\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructionsAndClear(tab);\n      const component = self.get('config.newComponent');\n      const subTabOptions = {\n        component: component,\n        config: self.get('config'),\n        loadInstructions\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    enterPosMode() {\n      const tab = this.tab;\n      this.posService.exitPosProfile(tab);\n      this.new(...arguments);\n    },\n    updateMonthsRange(model) {\n      const months = model?._data?.value;\n      this.dash();\n    },\n    updateMonthsRangeForSearch() {\n      const filters = this.filters;\n      const monthsRangeForSearch = filters?.monthsRangeForSearch ?? '12';\n\n      // Every option searches from a start date up to now with no upper bound, so\n      // future-dated docSales (eg recurring schedules) are never omitted. 'all' (all)\n      // has no lower bound. Keep only date on format YYYY-MM-DD for users abroad.\n      let dateStart = null;\n      if (monthsRangeForSearch !== 'all') {\n        dateStart = this.dateService.getMoment().subtract(monthsRangeForSearch, 'months').startOf('day').format(dateFormatString);\n      }\n      filters.setData('dateStart', dateStart);\n      filters.setData('dateEnd', null);\n    },\n    resetSearchDates(filters) {\n      filters.setData('dateStart', null);\n      filters.setData('dateEnd', null);\n    },\n    actions: {\n      dash() {\n        this.dash();\n      },\n      display(model) {\n        Ember.set(this, 'filters.showResults', false);\n        if (model) {\n          this.display(model);\n        } else {\n          // if no model then display dash (when model has been deleted)\n          this.dash();\n        }\n      },\n      new() {\n        this.new(...arguments);\n      },\n      close(panel) {\n        this.tab.closePanel(panel);\n      },\n      edit(model) {\n        Ember.set(this, 'filters.showResults', false);\n        const self = this;\n        const component = self.get('config.editComponent');\n        const subTabOptions = {\n          component: component,\n          model: model,\n          config: self.get('config')\n        };\n        const tab = this.tab;\n        this.tabsManager.replaceSubTab(tab, subTabOptions);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleResults\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleResults\"), _obj), _applyDecoratedDescriptor(_obj, \"fetchCampaignsWithPosEnableTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_obj, \"fetchCampaignsWithPosEnableTask\"), _obj), _applyDecoratedDescriptor(_obj, \"setupListByFilters\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"setupListByFilters\"), _obj), _applyDecoratedDescriptor(_obj, \"dash\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"dash\"), _obj), _applyDecoratedDescriptor(_obj, \"display\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"display\"), _obj), _applyDecoratedDescriptor(_obj, \"new\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"new\"), _obj), _applyDecoratedDescriptor(_obj, \"enterPosMode\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"enterPosMode\"), _obj), _applyDecoratedDescriptor(_obj, \"updateMonthsRange\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"updateMonthsRange\"), _obj), _applyDecoratedDescriptor(_obj, \"updateMonthsRangeForSearch\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"updateMonthsRangeForSearch\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSearchDates\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"resetSearchDates\"), _obj), _obj));\n});","define(\"client/pods/components/documents/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jnWSlyv6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,7,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onBefore\\\",\\\"@onAfter\\\",\\\"@translatedPlaceholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateMonthsRangeForSearch\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"afterTabSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\",\\\"ignoreForComponent\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[]],\\\"documents/panels-dash\\\"]]]],null],[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,7,[\\\"docType\\\"]],\\\"-\\\",[23,7,[\\\"docName\\\"]]],null]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[\\\"fas fa-filter\\\",true,true,[23,0,[\\\"filters\\\",\\\"showFilters\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[\\\"fas fa-star\\\",true,true,[23,0,[\\\"filters\\\",\\\"showStarred\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@list\\\",\\\"@disabled\\\",\\\"@isRunning\\\"],[\\\"fas fa-cog\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-date-filter\\\"]],[23,8,[]],[28,\\\"if\\\",[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-date-filter\\\"]],false,true],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@onSelect\\\"],[false,false,\\\"date period for overview\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-date-filter\\\"]],[23,0,[\\\"filters\\\"]],false,[23,7,[]],true,\\\"monthsRange\\\",\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"updateMonthsRange\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\"],[false,false,\\\"date period for search\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-date-range-filter\\\"]],[23,0,[\\\"filters\\\"]],false,[23,7,[]],true,\\\"monthsRangeForSearch\\\",\\\"_data.value\\\",\\\"_data.label\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@documentationResource\\\",\\\"@rulesResource\\\",\\\"@rulesOptions\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],[28,\\\"concat\\\",[\\\"documents-help-\\\",[23,7,[\\\"docType\\\"]],\\\"-\\\",[23,7,[\\\"docName\\\"]]],null],[28,\\\"concat\\\",[[23,7,[\\\"docType\\\"]],\\\"-\\\",[23,7,[\\\"docName\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"master\\\",\\\"tab\\\"],[\\\"documents\\\",[28,\\\"concat\\\",[[23,7,[\\\"docType\\\"]],\\\"-\\\",[23,7,[\\\"docName\\\"]]],null],[23,0,[\\\"tab\\\"]]]]],[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"tab\\\",\\\"isPos\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[\\\"sales\\\",[23,7,[\\\"docType\\\"]]],null],[28,\\\"eq\\\",[\\\"invoices\\\",[23,7,[\\\"docName\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn\\\",[],[[\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@tagName\\\"],[[23,0,[\\\"isDispatchedProcessModel\\\"]],[23,0,[\\\"period\\\"]],\\\"span\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"documentsListsMenu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@classNames\\\",\\\"@count\\\",\\\"@filters\\\",\\\"@list\\\",\\\"@itemClassNames\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[\\\"u-results__list\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"u-results__item\\\",\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"documents/search-results\\\",[],[[\\\"@dispatchProcesses\\\",\\\"@query\\\",\\\"@result\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/scroll-into-view\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"documents/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@tableViewOptions\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"onBefore\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetSearchDates\\\"]],[23,0,[\\\"filters\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"afterTabSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\",\\\"ignoreForComponent\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[]],\\\"documents/panels-dash\\\"]]]],null]]]]],null],[23,0,[\\\"tableViewOptions\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"fetchDefaultDataTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,7,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"adapterName\\\",\\\"docName\\\",\\\"docType\\\",\\\"filters\\\",\\\"listByTask\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onNew\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onSearchTask\\\",\\\"onSetupDirty\\\",\\\"onUpdateDocInfoTask\\\",\\\"results\\\",\\\"tab\\\",\\\"tabParent\\\",\\\"tableViewOptions\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"docName\\\"]],[23,0,[\\\"docType\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"new\\\"],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setupDirty\\\"],null],[23,0,[\\\"updateDocInfoTask\\\"]],[23,0,[\\\"resultsProxy\\\"]],[23,1,[]],[23,7,[]],[23,0,[\\\"tableViewOptions\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/table-view/doc-row/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency-decorators\", \"client/mixins/crud\", \"client/mixins/dispatch\", \"client/mixins/transporter\", \"ramda-extension\"], function (_exports, R, RA, _emberConcurrencyDecorators, _crud, _dispatch, _transporter, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _dispatch.default, _transporter.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    big: Ember.inject.service(),\n    tagName: '',\n    showAllDetails: false,\n    showSplitMergePrintBtns: false,\n    printType: '',\n    isShowGroupedDocuments: false,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['dispatch/lists/dispatch-sort-filters-advanced', 'dispatch/lists/documents-sort-filters-advanced', 'extensions/apps/tw/t-cat/lists/delivery-time', 'documents/lists/filters/dispatch-status', {\n        adapterName: 'channels/shop/delivery-date-options',\n        appendPath: 'dispatch-type/zones'\n      }, {\n        adapterName: 'channels/shop/delivery-date-options',\n        appendPath: 'dispatch-type/pickupLocations'\n      }]);\n      if (this.isFilters) {\n        const defaultFiltersData = {};\n        const source = R.path(['filters', '_data', 'source'])(this);\n        if (source) {\n          defaultFiltersData.query = source;\n        }\n        const campaignFilters = this.search.setupFilters({\n          adapterName: 'channels/shop/campaigns/filters',\n          defaultFiltersData\n        });\n        this.set('campaignFilters', campaignFilters);\n      }\n      this.updateModelWithProxyModel(this.model);\n    },\n    updateModelWithProxyModel(modelProxy) {\n      if (!modelProxy?.model) {\n        return;\n      }\n      this.set('modelProxy', modelProxy);\n      this.set('model', modelProxy.model);\n    },\n    tCatResults: Ember.computed('modelProxy', function () {\n      return R.pipe(R.pathOr([], ['modelProxy', 'modal']), RA.ensureArray)(this);\n    }),\n    tCatAllResults: Ember.computed('modelProxy', function () {\n      return RA.ensureArray(this.modelProxy);\n    }),\n    showDispatchDateZ: Ember.computed('settings.settingsModel._data.salesInvoicesDatesColumns.[]', function () {\n      const settingsModel = this?.settings?.settingsModel;\n      const salesInvoicesDatesColumns = settingsModel?._data?.salesInvoicesDatesColumns || [];\n      if (R.includes('dispatchDateZ')(salesInvoicesDatesColumns)) {\n        return true;\n      }\n      return false;\n    }),\n    showExpectedPrepareDateZ: Ember.computed('settings.settingsModel._data.salesInvoicesDatesColumns.[]', function () {\n      const settingsModel = this?.settings?.settingsModel;\n      const salesInvoicesDatesColumns = settingsModel?._data?.salesInvoicesDatesColumns || [];\n      if (R.includes('expectedPreparedDateZ')(salesInvoicesDatesColumns)) {\n        return true;\n      }\n      return false;\n    }),\n    showExpectedDispatchDateZ: Ember.computed('settings.settingsModel._data.salesInvoicesDatesColumns.[]', function () {\n      const settingsModel = this?.settings?.settingsModel;\n      const salesInvoicesDatesColumns = settingsModel?._data?.salesInvoicesDatesColumns || [];\n      if (R.includes('latestDispatchDateZ')(salesInvoicesDatesColumns)) {\n        return true;\n      }\n      return false;\n    }),\n    showTransporterArrivalDateZ: Ember.computed('settings.settingsModel._data.salesInvoicesDatesColumns.[]', function () {\n      const settingsModel = this?.settings?.settingsModel;\n      const salesInvoicesDatesColumns = settingsModel?._data?.salesInvoicesDatesColumns || [];\n      if (R.includes('expectedArrivalDateZ')(salesInvoicesDatesColumns)) {\n        return true;\n      }\n      return false;\n    }),\n    *tCatSetDefaults() {\n      const tCatModel = yield this.dispatch.tCatGetModel.perform();\n      const printType = tCatModel._data.defaultTransporterWaybillPrintType;\n      this.set('printType', printType);\n    },\n    isDocumentsGroupMaster: Ember.computed('modelProxy.model._data.{isGrouped,groupedWith}', function () {\n      const model = this?.modelProxy?.model || {};\n      const isGrouped = model.getData('isGrouped') || false;\n      const groupedWith = model.getData('groupedWith') || [];\n      if (!isGrouped && RA.isNotNilOrEmpty(groupedWith)) {\n        return true;\n      }\n      return false;\n    }),\n    // {{if (isEven rowIndex) 'even' 'odd'}}\n    detailInfoRowClassName: Ember.computed('isDetailRow', 'rowIndex', 'tableViewOptions.{allowDispatching,isDispatchTab}', function () {\n      if (this.isDetailRow && this.get('tableViewOptions.allowDispatching') && this?.tableViewOptions?.isDispatchTab) {\n        return 'dispatch-list__table-info-row';\n      }\n\n      // if (this.isDetailRow) {\n      //   if (nventor.isEven(this.rowIndex)) {\n      //     return 'even'\n      //   }\n\n      //   return 'odd'\n      // }\n\n      return '';\n    }),\n    detailRowClassName: Ember.computed('isDetailRow', 'rowIndex', 'tableViewOptions.allowDispatching', function () {\n      // if (this.isDetailRow && this.get('tableViewOptions.allowDispatching')) {\n      //   return ''\n      // }\n\n      // if (this.isDetailRow) {\n      //   if (nventor.isEven(this.rowIndex)) {\n      //     return 'even'\n      //   }\n\n      //   return 'odd'\n      // }\n\n      return '';\n    }),\n    customPaymentMethods: Ember.computed('crud.lists.paymentMethods', function () {\n      const paymentMethods = this?.crud?.lists?.paymentMethods || this?.crud?.lists['payment-methods'] || [];\n      return R.reject(R.hasPath(['_data', 'isNotEditable']))(paymentMethods);\n    }),\n    defaultPaymentMethods: Ember.computed('crud.lists.paymentMethods', function () {\n      const paymentMethods = this?.crud?.lists?.paymentMethods || this?.crud?.lists['payment-methods'] || [];\n      return R.filter(R.hasPath(['_data', 'isNotEditable']))(paymentMethods);\n    }),\n    isShowImagesOnDocuments: Ember.computed('tableViewOptions.isDispatchTab', 'settings.settingsModel._data.showImagesOnDocuments', function () {\n      const isDispatchTab = this?.tableViewOptions?.isDispatchTab || false;\n      if (isDispatchTab) {\n        // show images will handled by dispatch.showDocumentDetailsThumbnailImage\n        return false;\n      }\n      return this?.settings?.settingsModel?._data?.showImagesOnDocuments || false;\n    }),\n    allowIndividualPrintWaybill: Ember.computed('tab.isDispatched', 'tab.dispatchProcess._data.allowPrintAllWaybills', 'model.allowPrintWaybill', 'model._data.transporterExtension', function () {\n      const allowPrintAllWaybills = R.pathEq(['tab', 'dispatchProcess', '_data', 'allowPrintAllWaybills'], true)(this);\n      const isDispatched = R.pathEq(['tab', 'isDispatched'], true)(this);\n      const allowPrintWaybill = R.pathEq(['model', 'allowPrintWaybill'], true)(this);\n      if (allowPrintWaybill && (allowPrintAllWaybills || isDispatched)) {\n        return true;\n      }\n      return false;\n    }),\n    hasDeliveryDateOptions: Ember.computed('crud.lists.{channels-shop-delivery-date-options--dispatch-type-zones.[],channels-shop-delivery-date-options--dispatch-type-pickupLocations.[]}', function () {\n      if (RA.isNotNilOrEmpty(this.crud.lists['channels-shop-delivery-date-options--dispatch-type-zones'])) {\n        return true;\n      }\n      if (RA.isNotNilOrEmpty(this.crud.lists['channels-shop-delivery-date-options--dispatch-type-pickupLocations'])) {\n        return true;\n      }\n      return false;\n    }),\n    toggleMoreBtns() {\n      this.set('showSplitMergePrintBtns', !this.showSplitMergePrintBtns);\n    },\n    *reloadSortWithNewHeader() {\n      const hasHeadersSort = this?.hasHeadersSort;\n      if (!hasHeadersSort) {\n        return;\n      }\n      const filters = this.filters;\n      const dateHeaderValue = filters?._data?.dateHeaderValue || 'timestampZ_latest';\n      filters.replaceSort(dateHeaderValue, 'DESC');\n      yield this.onReloadSearchRecordsTask.perform({\n        dispatchProcess: this.tableViewOptions.dispatchProcess,\n        period: this.period,\n        filters\n      });\n    },\n    afterMerge() {\n      const dispatchProcess = this.tableViewOptions?.dispatchProcess || this.tab?.dispatchProcess;\n      const onAfterMerge = this.get('tableViewOptions.onAfterMerge');\n      onAfterMerge(dispatchProcess);\n    },\n    afterSplit() {\n      const dispatchProcess = this.tableViewOptions?.dispatchProcess || this.tab?.dispatchProcess;\n      const onAfterSplit = this.get('tableViewOptions.onAfterSplit');\n      onAfterSplit(dispatchProcess);\n    },\n    actions: {\n      select(/* model */\n      ) {\n        if (this.onMainAction) {\n          this.onMainAction(...arguments);\n        }\n      },\n      loadShopSource(shop) {\n        const filters = this.filters;\n        filters.setData('sourceKey', shop.getData('_key'));\n        if (this.onSearchTask) {\n          this.onSearchTask.perform({\n            filters: this.filters\n          });\n        }\n      },\n      unloadShopSource() {\n        const filters = this.filters;\n        filters.setData('sourceKey', '');\n        if (this.onSearchTask) {\n          this.onSearchTask.perform({\n            filters: this.filters\n          });\n        }\n      },\n      selectDispatchProcesses() {\n        const filters = this.filters;\n        const dispatchProcessesModels = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n        const dispatchProcesses = filters.getData('dispatchProcesses');\n        const dispatchProcessesCriterias = R.pipe(R.filter(dispatchProcess => {\n          return R.includes(dispatchProcess.getData('code'), dispatchProcesses);\n        }), R.map(R.path(['_data', 'criterias'])))(dispatchProcessesModels);\n        filters.setData('multipleDispatchProcessesCriterias', dispatchProcessesCriterias);\n      },\n      toggleAllDetails() {\n        let showAllDetails = this.showAllDetails;\n        if (showAllDetails) {\n          showAllDetails = false;\n        } else {\n          showAllDetails = true;\n        }\n        this.set('showAllDetails', showAllDetails);\n        const results = this.results;\n        results.forEach(modelProxy => {\n          modelProxy.set('showDetails', showAllDetails);\n        });\n      },\n      onClickShowGroupedDocuments() {\n        const isShowGroupedDocuments = this.isShowGroupedDocuments || false;\n        this.set('isShowGroupedDocuments', !isShowGroupedDocuments);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateModelWithProxyModel\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateModelWithProxyModel\"), _obj), _applyDecoratedDescriptor(_obj, \"tCatSetDefaults\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_obj, \"tCatSetDefaults\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleMoreBtns\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"toggleMoreBtns\"), _obj), _applyDecoratedDescriptor(_obj, \"reloadSortWithNewHeader\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"reloadSortWithNewHeader\"), _obj), _applyDecoratedDescriptor(_obj, \"afterMerge\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"afterMerge\"), _obj), _applyDecoratedDescriptor(_obj, \"afterSplit\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"afterSplit\"), _obj), _obj));\n});","define(\"client/pods/components/documents/table-view/doc-row/detail-row/component\", [\"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 = Ember.Component.extend({\n    dispatch: Ember.inject.service(),\n    tagName: '',\n    // hasTopEmptyRow: computed('detailIndex', 'detail.isFirstSetChildItem', 'detail.isFirstSetChoiceItem', function () {\n    //   const detailIndex = this.detailIndex\n    //   if (detailIndex === 0) {\n    //     return false\n    //   }\n\n    //   const detail = this.detail\n    //   if (detail?.isFirstSetChildItem) {\n    //     return true\n    //   }\n\n    //   if (detail?.isFirstSetChoiceItem) {\n    //     return true\n    //   }\n\n    //   return false\n    // }),\n\n    // hasBottomEmptyRow: computed('model.sortedDetailsWithoutSets.@each.synced', 'detailIndex', 'detail.isFirstSetChildItem', 'detail.isFirstSetChoiceItem', function () {\n    //   const sortedDetailsWithoutSets = this.model?.sortedDetailsWithoutSets || 0\n    //   const lastIndex = sortedDetailsWithoutSets?.length - 1\n    //   const detailIndex = this.detailIndex\n    //   if (detailIndex === lastIndex) {\n    //     return false\n    //   }\n\n    //   const detail = this.detail\n    //   if (detail?.isLastSetChildItem) {\n    //     return true\n    //   }\n\n    //   if (detail?.isLastSetChoiceItem) {\n    //     return true\n    //   }\n\n    //   return false\n    // }),\n\n    isStrikedOut: Ember.computed('tableViewOptions.isDispatchTab', 'isReturnsDetail', 'detail._data.netReturnsQty', function () {\n      if (!this.tableViewOptions?.isDispatchTab) {\n        return false;\n      }\n      if (this.isReturnsDetail) {\n        return false;\n      }\n      if (this.detail?._data?.netReturnsQty < 1) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/documents/table-view/doc-row/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AlPShzQm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"detail\\\",\\\"index\\\",\\\"@detailIndex\\\",\\\"@isShowImagesOnDocuments\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"detail\\\",\\\"isFirstSetChildItem\\\"]],[24,[\\\"detail\\\",\\\"isFirstSetChoiceItem\\\"]]],null],\\\"is-first-set-row\\\",\\\"\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[]],0],null],\\\"is-first-row\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"      \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReturnsDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[24,[\\\"detail\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-minus-circle\\\",\\\"has-text-danger\\\"]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSet\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"hasReturns\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-popup-content\\\",null,[[\\\"isViewable\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"new-table-view--data u-v-align-middle-td\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"returnsDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"documents/table-view/doc-row/detail-row\\\",null,[[\\\"isReturnsDetail\\\",\\\"detail\\\",\\\"model\\\"],[true,[23,3,[]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"dispatch\\\",\\\"showDocumentDetailsThumbnailImage\\\"]],[23,6,[]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered dispatch-item__details-table-item-img\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"files/image-item\\\",[[12,\\\"class\\\",\\\"u-tappable\\\"]],[[\\\"@transform\\\",\\\"@image\\\"],[\\\"/-/scale_crop/64x64/smart\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"defaultImage\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-popup-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@transform\\\",\\\"@image\\\"],[\\\"/-/resize/128x/\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"defaultImage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"isAdditionalDetail\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-item-name\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"isLessThan\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]],1],null],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"statusClass\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[24,[\\\"detail\\\",\\\"statusClass\\\"]]]]],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"hasPreOrder\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-item-code\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"isLessThan\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]],1],null],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"dispatch-item__details-table-item-unit\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"isLessThan\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]],1],null],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[24,[\\\"detail\\\",\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right dispatch-item__details-table-item-qty\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"discInclPrice\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[28,\\\"not\\\",[[24,[\\\"isReturnsDetail\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"isLessThan\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]],1],null],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"discInclPrice\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"discInclPrice\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right u-border__right dispatch-item__details-table-item-price\\\\n        \\\",[28,\\\"if\\\",[[23,0,[\\\"isStrikedOut\\\"]],\\\"u-desc u-desc--strikethrough\\\",\\\"\\\"],null],\\\"\\\\n      \\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]],[24,[\\\"detail\\\",\\\"isAdditionalDetail\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isStrikedOut\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"netReturnsPostDiscInclAmt\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"postDiscInclAmt\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturnsDetail\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"u-border__left u-border__right u-desc u-desc--italics dispatch-item__details-table-item-is-set\\\\n        \\\",[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChild\\\"]],\\\"is-set\\\",\\\"\\\"],null],\\\"\\\\n        \\\",[28,\\\"if\\\",[[23,0,[\\\"isStrikedOut\\\"]],\\\"u-desc--strikethrough\\\",\\\"\\\"],null],\\\"\\\\n      \\\"]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChildOf\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetChildOf\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@modalPos\\\",\\\"@char\\\",\\\"@content\\\"],[\\\"top\\\",20,[24,[\\\"detail\\\",\\\"setParent\\\",\\\"_data\\\",\\\"item\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"setParent\\\",\\\"statusClass\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[24,[\\\"detail\\\",\\\"setParent\\\",\\\"statusClass\\\"]]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"hasPreOrder\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"detail\\\",\\\"setParent\\\",\\\"_data\\\",\\\"item\\\"]],[24,[\\\"detail\\\",\\\"isFirstSetChildItem\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"setParent\\\",\\\"_data\\\",\\\"netReturnsQty\\\"]]],null],false],[0,\\\" x \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"setParent\\\",\\\"_data\\\",\\\"discInclPrice\\\"]]],null],false],[0,\\\" = \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"detail\\\",\\\"setParent\\\",\\\"_data\\\",\\\"netReturnsPostDiscInclAmt\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"u-border__left u-desc u-desc--italics dispatch-item__details-table-item-is-set-with-choices\\\\n        \\\",[28,\\\"if\\\",[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetWithChoicesChildOf\\\"]],\\\"is-set-with-choices\\\",\\\"\\\"],null],\\\"\\\\n        \\\",[28,\\\"if\\\",[[23,0,[\\\"isStrikedOut\\\"]],\\\"u-desc--strikethrough\\\",\\\"\\\"],null],\\\"\\\\n      \\\"]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetWithChoicesChildOf\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"isSetWithChoicesChildOf\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@modalPos\\\",\\\"@char\\\",\\\"@content\\\"],[\\\"top\\\",20,[24,[\\\"detail\\\",\\\"setWithChoicesItem\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/table-view/doc-row/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/table-view/doc-row/info-row/component\", [\"exports\", \"ramda\", \"client/mixins/crud\", \"client/mixins/dispatch\", \"client/mixins/transporter\", \"client/utils/nventor\"], function (_exports, R, _crud, _dispatch, _transporter, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _dispatch.default, _transporter.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    big: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    tagName: '',\n    showSplitMergePrintBtns: false,\n    printType: '',\n    isShowGroupedDocuments: false,\n    allowSetAsDispatch: true,\n    statusBadgeClassNames: Ember.computed('model._data.dispatchProcess', 'model.statusClass', 'dispatchProcess._data.code', 'tableViewOptions.isDispatchTab', function () {\n      if (!this.get('tableViewOptions.isDispatchTab')) {\n        return this.get('model.statusClass');\n      }\n      const panelDispatchProcessCode = this.dispatchProcess?._data?.code ?? '';\n      const documentDispatchProcess = this.model.getData('dispatchProcess') || 'unprepared';\n      if (panelDispatchProcessCode && panelDispatchProcessCode !== 'all' && documentDispatchProcess !== panelDispatchProcessCode) {\n        return 'is-warning';\n      }\n      return this.get('model.statusClass');\n    }),\n    allowCheckbox: Ember.computed('model._data.{status,dispatchProcess}', 'dispatchProcess', function () {\n      const model = this.get('model');\n      const currentDispatchProcess = this.get('dispatchProcess._data.code');\n      const dispatchProcess = model.getData('dispatchProcess') || 'unprepared';\n      if (dispatchProcess !== currentDispatchProcess && currentDispatchProcess !== 'all') {\n        return false;\n      }\n      if (model.getData('status') === this.get('constants.documentsStatus.final')) {\n        return true;\n      }\n      return false;\n    }),\n    rowClass: Ember.computed('rowIndex', 'modelProxy.showDetails', 'model._data.description', 'isShowGroupedDocuments', 'isMainDocument', function () {\n      return '';\n      // const modelProxy = this.modelProxy\n      // const model = this.model\n\n      // const rowIndex = this.rowIndex || 0\n      // const isShowGroupedDocuments = this.isShowGroupedDocuments || false\n      // const isMainDocument = this.isMainDocument || false\n      // const showDetails = modelProxy.get('showDetails')\n      // const description = model.getData('description')\n\n      // let classString = ''\n\n      // if (nventor.isEven(rowIndex)) {\n      //   classString += 'even'\n      // } else {\n      //   classString += 'odd'\n      // }\n\n      // if (showDetails) {\n      //   classString += ' is-expanded'\n      // } else {\n      //   classString += ''\n      // }\n\n      // if (description) {\n      //   classString += ' no-border-bottom'\n      // } else {\n      //   classString += ''\n      // }\n\n      // if (isShowGroupedDocuments && isMainDocument) {\n      //   classString += ' u-table-border-top-red darker-background'\n      // } else {\n      //   classString += ''\n      // }\n\n      // return classString\n    }),\n    showAllDetails: Ember.computed('modelProxy.showDetails', 'isMainDocument', 'isShowGroupedDocuments', 'isMaster', function () {\n      const showDetails = this?.modelProxy?.showDetails || false;\n      const isMainDocument = this.isMainDocument || false;\n      const isShowGroupedDocuments = this.isShowGroupedDocuments || false;\n      const isMaster = this.isMaster || false;\n      let display = false;\n      if (isMainDocument) {\n        if (isShowGroupedDocuments) {\n          display = false;\n        } else {\n          display = true;\n        }\n      } else {\n        if (isShowGroupedDocuments) {\n          display = true;\n        } else if (!isShowGroupedDocuments && isMaster) {\n          display = false;\n        } else if (!isShowGroupedDocuments && !isMaster) {\n          display = true;\n        }\n      }\n      return showDetails && display;\n    }),\n    hasDuplicateWaybill: Ember.computed('model._data.waybill', 'duplicateWaybillsDocNos.@each.selected', function () {\n      const modelValue = this.get('model._data.waybill');\n      const duplicates = this.duplicateWaybillsDocNos || [];\n      const found = R.find(R.propEq('value', modelValue), duplicates);\n      if (found) {\n        return true;\n      }\n      return false;\n    }),\n    hasDuplicateContact: Ember.computed('model._data.address', 'duplicateAddressesDocNos.[]', function () {\n      const model = this.get('model');\n      const modelValue = model.getData('address');\n      const duplicates = this.duplicateAddressesDocNos || [];\n      const found = R.filter(R.allPass([R.propEq('value', modelValue), _nventor.default.allEqProps(['docType', 'docName'], model._data)]))(duplicates);\n      if (!R.isEmpty(found)) {\n        return true;\n      }\n      return false;\n    }),\n    groupedDocsInclTotal: Ember.computed('tableViewOptions.isDispatchTab', 'isMainDocument', 'model._data.{paymentMethodKey,cashCollectionInclTotal,inclTotal,roundingCurrency,groups.@each.synced}', function () {\n      const isDispatchTab = this?.tableViewOptions?.isDispatchTab || false;\n      const isMainDocument = this.isMainDocument || false;\n      const model = this?.model || {};\n      const groups = model.getData('groups') || [];\n      const paymentMethodKey = model.getData('paymentMethodKey');\n      let groupedDocsInclTotal = this.big.newBig(model.getData('inclTotal'));\n      if (isDispatchTab && paymentMethodKey === 'cash') {\n        groupedDocsInclTotal = this.big.newBig(model.getData('cashCollectionInclTotal'));\n      }\n      if (isMainDocument) {\n        R.forEach(group => {\n          const groupPaymentMethodKey = group.getData('paymentMethodKey');\n          let groupInclTotal = this.big.newBig(group.getData('inclTotal'));\n          if (isDispatchTab && groupPaymentMethodKey === 'cash') {\n            groupInclTotal = this.big.newBig(group.getData('cashCollectionInclTotal'));\n          }\n          groupedDocsInclTotal = groupedDocsInclTotal.add(groupInclTotal);\n        })(groups);\n      }\n      return groupedDocsInclTotal.toFixed(model.getData('roundingCurrency') || 0);\n    }),\n    dispatchProcess: Ember.computed('tableViewOptions.dispatchProcess', function () {\n      return this.get('tableViewOptions.dispatchProcess');\n    }),\n    allowIndividualPrintWaybill: Ember.computed('tab.isDispatched', 'model.allowPrintWaybill', 'model._data.transporterExtension', 'tab.dispatchProcess._data.allowPrintAllWaybills', function () {\n      const allowPrintAllWaybills = R.pathEq(['tab', 'dispatchProcess', '_data', 'allowPrintAllWaybills'], true)(this);\n      const isDispatched = R.pathEq(['tab', 'isDispatched'], true)(this);\n      const allowPrintWaybill = R.pathEq(['model', 'allowPrintWaybill'], true)(this);\n      if (allowPrintWaybill && (allowPrintAllWaybills || isDispatched)) {\n        return true;\n      }\n      return false;\n    }),\n    shouldAllowTransporterQuickChange: Ember.computed('tableViewOptions.allowDispatching', 'model.allowTransporterQuickChange', function () {\n      const allowDispatching = R.pathEq(['tableViewOptions', 'allowDispatching'], true)(this);\n      const allowTransporterQuickChange = R.pathEq(['model', 'allowTransporterQuickChange'], true)(this);\n      if (allowDispatching && allowTransporterQuickChange) {\n        return true;\n      }\n      return false;\n    }),\n    setRowIsSelected(isSelected) {\n      this.set('modelProxy.isSelected', isSelected);\n      const onRowSelectionChange = this.get('tableViewOptions.onRowSelectionChange');\n      if (onRowSelectionChange) {\n        onRowSelectionChange();\n      }\n    },\n    setShowPreDispatchProcess() {\n      this.set('allowSetAsDispatch', false);\n    },\n    closePreDispatchProcessDialog(modelProxy) {\n      modelProxy.set('showPreDispatchProcess', false);\n      this.set('allowSetAsDispatch', true);\n    },\n    actions: {\n      select(/* model */\n      ) {\n        if (this.onMainAction) {\n          this.onMainAction(...arguments);\n        }\n      },\n      afterSplit() {\n        const dispatchProcess = this.dispatchProcess;\n        const onAfterSplit = this.get('tableViewOptions.onAfterSplit');\n        onAfterSplit(dispatchProcess);\n      }\n\n      // afterMerge () {\n      //   const dispatchProcess = this.dispatchProcess\n      //   const onAfterMerge = this.get('tableViewOptions.onAfterMerge')\n      //   onAfterMerge(dispatchProcess)\n      // }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setRowIsSelected\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setRowIsSelected\"), _obj), _applyDecoratedDescriptor(_obj, \"setShowPreDispatchProcess\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"setShowPreDispatchProcess\"), _obj), _applyDecoratedDescriptor(_obj, \"closePreDispatchProcessDialog\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"closePreDispatchProcessDialog\"), _obj), _obj));\n});","define(\"client/pods/components/documents/table-view/doc-row/info-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8RJcdvZI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\",\\\"detail\\\",\\\"index\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"notification\\\",\\\"onSetIsDispatchedProcessTask\\\",\\\"@isShowImagesOnDocuments\\\",\\\"@tableViewOptions\\\",\\\"@model\\\",\\\"@detailRowClassName\\\",\\\"@modelProxy\\\",\\\"@tab\\\",\\\"@isMainDocument\\\",\\\"@errors\\\",\\\"@rowIndex\\\",\\\"@filters\\\",\\\"@isShowGroupedDocuments\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,17,[]],[23,21,[]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,12,[\\\"isDispatchTab\\\"]],[23,0,[\\\"allowCheckbox\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,15,[\\\"isSelected\\\"]],[23,0,[\\\"setRowIsSelected\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,19,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"documents/status-tag\\\",[],[[\\\"@autoFetchLists\\\",\\\"@disabled\\\",\\\"@dispatchProcesses\\\",\\\"@isToggleBtn\\\",\\\"@model\\\",\\\"@statusBadgeClassNames\\\",\\\"@toggleValue\\\",\\\"@showIcons\\\"],[false,[23,15,[\\\"isSelected\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],true,[23,0,[\\\"modelProxy\\\",\\\"model\\\"]],[23,0,[\\\"statusBadgeClassNames\\\"]],[23,0,[\\\"modelProxy\\\",\\\"showVerticalDispatchProcessBar\\\"]],false]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"dispatch/processes-bar-container\\\",null,[[\\\"model\\\",\\\"isVertical\\\",\\\"isModal\\\",\\\"hasPreDispatchDialog\\\",\\\"disabled\\\",\\\"selected\\\",\\\"steps\\\",\\\"showProcessBar\\\",\\\"onShowPreDispatchProcessDialog\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"onAfterSubmit\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\"],[[23,13,[]],true,true,true,[23,15,[\\\"isSelected\\\"]],[23,13,[\\\"_data\\\",\\\"dispatchProcess\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]],[23,0,[\\\"modelProxy\\\",\\\"showVerticalDispatchProcessBar\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"showPreDispatchProcessDialog\\\",[23,15,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"closePreDispatchProcessDialog\\\"]],[23,15,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"showWaybills\\\",[23,15,[]]],null],\\\"_data.code\\\",\\\"_data.name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,15,[\\\"showPreDispatchProcess\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"dispatch/pre-dispatch-modal\\\",null,[[\\\"tab\\\",\\\"modalDialogIsVisible\\\",\\\"onClosePreDispatchProcessDialog\\\",\\\"model\\\",\\\"modelProxy\\\",\\\"errors\\\",\\\"externalTransportersList\\\",\\\"onSetIsDispatchedProcessTask\\\",\\\"onDispatchPanelNeedsRefresh\\\",\\\"startWithDirty\\\",\\\"isReadonly\\\",\\\"allowSetAsDispatch\\\"],[[24,[\\\"tab\\\"]],[23,15,[\\\"showPreDispatchProcess\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closePreDispatchProcessDialog\\\",[23,15,[]]],null],[23,13,[]],[23,15,[]],[23,18,[]],[24,[\\\"transportersList\\\"]],[23,10,[]],[23,12,[\\\"onDispatchPanelNeedsRefresh\\\"]],true,[23,13,[\\\"isDispatchedBeforeToday\\\"]],[23,0,[\\\"allowSetAsDispatch\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[10]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[[12,\\\"classNames\\\",\\\"u-link--text\\\"]],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[23,13,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,13,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,13,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,13,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,13,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,13,[\\\"_data\\\",\\\"docType\\\"]],[23,13,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,13,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"u-inline-flex u-tappable u-main-focus\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,13,[]]],null]]],[8],[0,\\\"\\\\n          #\\\"],[1,[23,13,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"isConsignment\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"u-icon-spacer--left\\\",\\\"fas fa-asterisk\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"hasNotifications\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,8,[]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[23,13,[\\\"notifications\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"html-safe\\\",[[23,9,[\\\"_data\\\",\\\"message\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[[12,\\\"classNames\\\",\\\"u-link--text\\\"]],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[23,13,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,13,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,13,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,13,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,13,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,13,[\\\"_data\\\",\\\"docType\\\"]],[23,13,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,13,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,13,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"promoCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"promo code\\\"],null],false],[0,\\\": \\\"],[1,[23,13,[\\\"_data\\\",\\\"promoCode\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[28,\\\"eq\\\",[[23,20,[\\\"_data\\\",\\\"dateHeaderValue\\\"]],\\\"dateZ\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,13,[\\\"_data\\\",\\\"dateZ\\\"]],\\\"YY/MM/DD\\\"],null],false],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"dateTimeWithAlternative\\\",[[23,13,[\\\"_data\\\",\\\"dateZ\\\"]],[23,13,[\\\"_data\\\",\\\"timestampZ\\\"]],\\\"HH:mm:ss\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"date\\\",[[28,\\\"get-dot-path\\\",[\\\"_data\\\",[23,20,[\\\"_data\\\",\\\"dateHeaderValue\\\"]],[23,13,[]]],null],\\\"YY/MM/DD\\\"],null],false],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"dateTimeWithAlternative\\\",[[28,\\\"get-dot-path\\\",[\\\"_data\\\",[23,20,[\\\"_data\\\",\\\"dateHeaderValue\\\"]],[23,13,[]]],null],[23,13,[\\\"_data\\\",\\\"timestampZ\\\"]],\\\"HH:mm:ss\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@iconOnly\\\",\\\"@model\\\"],[true,[23,13,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,13,[\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"contactKey\\\",\\\"document\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[23,13,[\\\"_data\\\",\\\"contactKey\\\"]],[23,13,[]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,13,[\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"\\\",\\\"fas fa-address-card\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"transporterContactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,13,[\\\"_data\\\",\\\"transporterContactPerson\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,13,[\\\"_data\\\",\\\"contact\\\"]],[28,\\\"not-eq\\\",[[23,13,[\\\"_data\\\",\\\"transporterContactPerson\\\"]],[23,13,[\\\"_data\\\",\\\"contact\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"              (\\\"],[1,[23,13,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,13,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-popup-content\\\",null,[[\\\"isViewable\\\"],[[23,7,[]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"transporters/contact\\\",[],[[\\\"@enableSelectPickupMethod\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[true,true,[23,13,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"hasDuplicateWaybill\\\"]],[23,0,[\\\"hasDuplicateContact\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasDuplicateWaybill\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-error\\\",\\\"duplicate waybills\\\"]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasDuplicateContact\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-error\\\",\\\"duplicate addresses\\\"]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"hasPaymentStatus\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[\\\"isIntegratedCreditCardProvider\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\"],[[23,13,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"paymentMethodCustomLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"concat\\\",[\\\" (\\\",[28,\\\"tt\\\",[[23,13,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[[23,13,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"paymentMethodIsInstallments\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@classNames\\\"],[\\\"installments\\\",true,\\\"u-desc\\\"]]],[0,\\\"\\\\n            : \\\"],[1,[23,13,[\\\"_data\\\",\\\"paymentMethodInstallmentsCount\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\"],[[23,13,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"account last 5 digits\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n          : \\\"],[1,[23,13,[\\\"_data\\\",\\\"paymentLastFiveDigits\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"tax number\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n          : \\\"],[1,[23,13,[\\\"_data\\\",\\\"taxNumber\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"twEInvoiceCarrierId\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\"],[\\\"tw_eInvoice_carrier_id\\\",true,\\\"u-desc\\\"]]],false],[0,\\\"\\\\n          : \\\"],[1,[23,13,[\\\"_data\\\",\\\"twEInvoiceCarrierId\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,12,[\\\"isCampaignsTab\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"currency\\\",[[23,13,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"groupedDocsInclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-v-align-middle-td\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive total\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,13,[\\\"_data\\\",\\\"exclTotal\\\"]]],[[\\\"rounding\\\"],[[23,13,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,13,[\\\"_data\\\",\\\"taxTotal\\\"]]],[[\\\"rounding\\\"],[[23,13,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,13,[\\\"_data\\\",\\\"inclTotal\\\"]]],[[\\\"rounding\\\"],[[23,13,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"promoCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"promo code\\\"],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[23,13,[\\\"_data\\\",\\\"promoCode\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,12,[\\\"hasDispatchProcess\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"shouldAllowTransporterQuickChange\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"toggleIsOn\\\",\\\"icon\\\",\\\"translate\\\",\\\"label\\\",\\\"onSubmit\\\"],[true,true,[23,13,[\\\"isMissingHCTDataClassNames\\\"]],[23,13,[\\\"isMissingHCTDataClassNames\\\"]],[23,15,[\\\"showPreDispatchProcess\\\"]],\\\"fas fa-truck\\\",false,[23,13,[\\\"_data\\\",\\\"transporterLabel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setShowPreDispatchProcess\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,13,[\\\"_data\\\",\\\"transporterLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"selectedZone\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-truncate--75\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,13,[\\\"selectedZone\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,13,[\\\"selectedZone\\\",\\\"zoneType\\\"]],\\\"convenienceStore\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                (\\\"],[1,[28,\\\"tt\\\",[[23,13,[\\\"selectedZone\\\",\\\"convenienceStoreBrand\\\"]]],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"transporters/accounts\\\",[],[[\\\"@model\\\"],[[23,13,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"transporters/waybill-display\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@onFetchOverviewTask\\\"],[[23,13,[]],[23,16,[]],[23,12,[\\\"onFetchOverviewTask\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,12,[\\\"allowDispatching\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"packages_short\\\"],null],false],[0,\\\": \\\"],[1,[23,13,[\\\"_data\\\",\\\"packages\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-truncate--75\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[false,[23,13,[\\\"_data\\\",\\\"sourceKey\\\"]],[23,13,[\\\"_data\\\",\\\"source\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,13,[\\\"_data\\\",\\\"sourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[\\\"_data\\\",\\\"source\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-label\\\",[[12,\\\"classNames\\\",\\\"u-desc\\\"]],[[\\\"@label\\\",\\\"@translate\\\"],[[23,13,[\\\"_data\\\",\\\"source\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showAllDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"new-table-view__tr table-view__detail-row--alt-details \\\",[28,\\\"if\\\",[[23,15,[\\\"showDetails\\\"]],\\\"is-expanded\\\"],null],\\\" \\\",[23,14,[]]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"new-table-view--data u-v-align-middle-td dispatch-item__details-table u-margin-bottom-30\\\"],[10,\\\"style\\\",\\\"min-width: 35em;\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"dispatch\\\",\\\"showDocumentDetailsThumbnailImage\\\"]],[23,11,[]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table- has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"product_set\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"product_sets_with_choices\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,13,[\\\"sortedDetailsWithoutSets\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"documents/table-view/doc-row/detail-row\\\",null,[[\\\"detailIndex\\\",\\\"detail\\\",\\\"model\\\",\\\"tableViewOptions\\\",\\\"isShowImagesOnDocuments\\\"],[[23,4,[]],[23,3,[]],[23,13,[]],[23,12,[]],[23,11,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,12,[\\\"isDispatchTab\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,13,[\\\"returnsDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"documents/table-view/doc-row/detail-row\\\",null,[[\\\"detailIndex\\\",\\\"isReturnsDetail\\\",\\\"detail\\\",\\\"model\\\",\\\"tableViewOptions\\\",\\\"isShowImagesOnDocuments\\\"],[[23,2,[]],true,[23,1,[]],[23,13,[]],[23,12,[]],[23,11,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/table-view/doc-row/info-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/table-view/doc-row/related-docs/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 DocumentsTableViewDocRowRelatedDocsComponent = _exports.default = (_dec = Ember.inject.service, _class = class DocumentsTableViewDocRowRelatedDocsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    get groupedDocs() {\n      const model = this.args.model;\n      let groupedDocs = R.pathOr([], ['_data', 'relatedDocs', 'groupedWith'])(model);\n      if (RA.isNotNilOrEmpty(groupedDocs)) {\n        return groupedDocs;\n      }\n      groupedDocs = R.pathOr([], ['_data', 'relatedDocs', 'groupedTo'])(model);\n      if (RA.isNotNilOrEmpty(groupedDocs)) {\n        return groupedDocs;\n      }\n      groupedDocs = R.pathOr([], ['_data', 'relatedDocs', 'mergedWith'])(model);\n      if (RA.isNotNilOrEmpty(groupedDocs)) {\n        return groupedDocs;\n      }\n      groupedDocs = R.pathOr([], ['_data', 'relatedDocs', 'mergedTo'])(model);\n      if (RA.isNotNilOrEmpty(groupedDocs)) {\n        return groupedDocs;\n      }\n      return [];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/documents/table-view/doc-row/related-docs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AFqVp/ex\",\n    \"block\": \"{\\\"symbols\\\":[\\\"doc\\\",\\\"doc\\\",\\\"index\\\",\\\"@rowClass\\\",\\\"@detailInfoRowClassName\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@relatedComments\\\",\\\"@isHideGroupsDetails\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"relatedDocs\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"groupedDocs\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row \\\",[23,5,[]],\\\" \\\",[23,4,[]]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--small u-v-align-auto u-desc--italics\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-right-8\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"grouped with\\\"],null],false],[0,\\\":\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[[12,\\\"classNames\\\",\\\"u-link--text\\\"]],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[28,\\\"if\\\",[[23,2,[\\\"disableLinkTab\\\"]],false,[23,2,[\\\"_key\\\"]]],null],[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,2,[\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"docName\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,2,[\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"docName\\\"]]],null],[23,2,[\\\"docType\\\"]],[23,2,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              #\\\"],[1,[23,2,[\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"                - \\\"],[1,[23,2,[\\\"ref\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              - \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inclTotal\\\"]]],[[\\\"dontWrapHtmlSafe\\\"],[true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"isConsignment\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[\\\"u-icon-spacer--left\\\",\\\"fas fa-asterisk\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row u-v-align-auto layouts__btns-sticky-right-row u-margin-left-8\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@btnTooltipLabel\\\",\\\"@btnIcon\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@isPublic\\\",\\\"@metaData\\\",\\\"@excludeFromFilters\\\"],[\\\"comments/comments-manager/modal-btn\\\",[23,7,[]],\\\"customer comments\\\",\\\"fa-solid fa-comments\\\",\\\"documents-public\\\",[23,2,[\\\"txType\\\"]],[23,2,[\\\"_key\\\"]],true,[23,8,[]],true,[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"subType\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"locale\\\",\\\"ref\\\",\\\"threadId\\\",\\\"isPublic\\\",\\\"emailType\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\"],[\\\"documents-public\\\",[23,2,[\\\"txType\\\"]],[23,2,[\\\"contact\\\"]],[23,2,[\\\"contactKey\\\"]],[23,2,[\\\"email\\\"]],[23,2,[\\\"contact\\\"]],[23,2,[\\\"locale\\\"]],[23,2,[\\\"ref\\\"]],[23,2,[\\\"externalUrl\\\"]],true,\\\"fromMerchantToCustomer\\\",[23,2,[\\\"sourceKey\\\"]],[23,2,[\\\"sourceHost\\\"]],[23,2,[\\\"sourceHostName\\\"]]]]],[28,\\\"array\\\",[\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"emailType\\\",\\\"emailFromAddress\\\",\\\"emailFromName\\\",\\\"locale\\\",\\\"ref\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"threadId\\\"],null]]]],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@btnTooltipLabel\\\",\\\"@tab\\\",\\\"@hasLabel\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",\\\"internal comments\\\",[23,7,[]],false,\\\"documents\\\",[23,2,[\\\"txType\\\"]],[23,2,[\\\"_key\\\"]],true,[23,8,[]],[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"docNo\\\",\\\"contactKey\\\",\\\"docType\\\",\\\"docName\\\"],[[23,2,[\\\"contact\\\"]],[23,2,[\\\"docNo\\\"]],[23,2,[\\\"contactKey\\\"]],[23,2,[\\\"docType\\\"]],[23,2,[\\\"docName\\\"]]]]]]]],[0,\\\"\\\\n\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"relatedDocs\\\",\\\"splitFrom\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"relatedDocs\\\",\\\"splitFrom\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row \\\",[23,5,[]],\\\" \\\",[23,4,[]]]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--small u-v-align-auto u-desc--italics\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-right-8\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"split from\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"helpers/tab-link\\\",[[12,\\\"classNames\\\",\\\"u-link--text\\\"]],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_key\\\"]],[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"docName\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"docName\\\"]]],null],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                #\\\"],[1,[23,1,[\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  - \\\"],[1,[23,1,[\\\"ref\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                - \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"inclTotal\\\"]]],[[\\\"dontWrapHtmlSafe\\\"],[true]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/table-view/doc-row/related-docs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/table-view/doc-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WwVW8DdM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onPrintDialogAction\\\",\\\"isTooltipVisible\\\",\\\"transporterWaybillRecord\\\",\\\"isTooltipVisible\\\",\\\"history\\\",\\\"group\\\",\\\"group\\\",\\\"group\\\",\\\"index\\\",\\\"onCloseDialogAction\\\",\\\"@tableViewOptions\\\",\\\"@currentIndex\\\",\\\"@isDisabled\\\",\\\"@errors\\\",\\\"@tab\\\",\\\"@rowIndex\\\",\\\"@onClickShowGroupedDocuments\\\",\\\"@model\\\",\\\"@relatedComments\\\",\\\"@filters\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__settings-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleAllDetails\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"isDispatchTab\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@onToggle\\\",\\\"@onToggleProperty\\\",\\\"@value\\\"],[[23,14,[\\\"onSelectAll\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,14,[\\\"allSelected\\\"]]],null]],null],[23,14,[\\\"allSelected\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,23,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        #\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[28,\\\"eq\\\",[[23,23,[\\\"_data\\\",\\\"dateHeaderValue\\\"]],\\\"dateZ\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,23,[\\\"_data\\\",\\\"dateHeaderLabel\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"readonly\\\",\\\"onClose\\\"],[false,[28,\\\"perform\\\",[[23,0,[\\\"reloadSortWithNewHeader\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionLabelKey\\\",\\\"optionValueKey\\\",\\\"optionClassNames\\\",\\\"valueKey\\\",\\\"labelKey\\\",\\\"allowEmpty\\\"],[\\\"\\\",true,[28,\\\"if\\\",[[23,14,[\\\"isDispatchTab\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-dispatch-sort-filters-advanced\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-documents-sort-filters-advanced\\\"]]],null],[23,23,[]],false,\\\"_data.label\\\",\\\"_data.value\\\",\\\"has-text-weight-bold\\\",\\\"_data.dateHeaderValue\\\",\\\"_data.dateHeaderLabel\\\",false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[13]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"payment method\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive_total_short\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"hasDispatchProcess\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"transporter\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"waybill\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tbody\\\",false],[12,\\\"class\\\",\\\"new-table-view__tr-group\\\"],[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"updateModelWithProxyModel\\\"]],[24,[\\\"model\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"documents/table-view/doc-row/info-row\\\",[],[[\\\"@hasDeliveryDateOptions\\\",\\\"@showDispatchDateZ\\\",\\\"@showExpectedPrepareDateZ\\\",\\\"@showExpectedDispatchDateZ\\\",\\\"@showTransporterArrivalDateZ\\\",\\\"@rowIndex\\\",\\\"@currentIndex\\\",\\\"@model\\\",\\\"@modelProxy\\\",\\\"@filters\\\",\\\"@detailRowClassName\\\",\\\"@detailInfoRowClassName\\\",\\\"@isShowGroupedDocuments\\\",\\\"@tableViewOptions\\\",\\\"@onClickShowGroupedDocuments\\\",\\\"@onMainAction\\\",\\\"@tab\\\",\\\"@relatedComments\\\",\\\"@isDisabled\\\",\\\"@errors\\\",\\\"@isMainDocument\\\",\\\"@isShowImagesOnDocuments\\\"],[[23,0,[\\\"hasDeliveryDateOptions\\\"]],[23,0,[\\\"showDispatchDateZ\\\"]],[23,0,[\\\"showExpectedPrepareDateZ\\\"]],[23,0,[\\\"showExpectedDispatchDateZ\\\"]],[23,0,[\\\"showTransporterArrivalDateZ\\\"]],[22,\\\"rowIndex\\\"],[23,15,[]],[24,[\\\"modelProxy\\\",\\\"model\\\"]],[22,\\\"modelProxy\\\"],[22,\\\"filters\\\"],[23,0,[\\\"detailRowClassName\\\"]],[23,0,[\\\"detailInfoRowClassName\\\"]],[23,0,[\\\"isShowGroupedDocuments\\\"]],[22,\\\"tableViewOptions\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"onClickShowGroupedDocuments\\\"],null],[22,\\\"onMainAction\\\"],[22,\\\"tab\\\"],[22,\\\"relatedComments\\\"],[23,16,[]],[23,17,[]],true,[23,0,[\\\"isShowImagesOnDocuments\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"isDispatchTab\\\"]],[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"documents/table-view/doc-row/info-row\\\",[],[[\\\"@rowIndex\\\",\\\"@currentIndex\\\",\\\"@model\\\",\\\"@modelProxy\\\",\\\"@filters\\\",\\\"@detailRowClassName\\\",\\\"@detailInfoRowClassName\\\",\\\"@isShowGroupedDocuments\\\",\\\"@tableViewOptions\\\",\\\"@onClickShowGroupedDocuments\\\",\\\"@onMainAction\\\",\\\"@tab\\\",\\\"@relatedComments\\\",\\\"@isDisabled\\\",\\\"@errors\\\",\\\"@isMainDocument\\\",\\\"@isMaster\\\",\\\"@isShowImagesOnDocuments\\\"],[[22,\\\"rowIndex\\\"],[23,15,[]],[24,[\\\"modelProxy\\\",\\\"model\\\"]],[22,\\\"modelProxy\\\"],[22,\\\"filters\\\"],\\\"\\\",\\\"\\\",[23,0,[\\\"isShowGroupedDocuments\\\"]],[22,\\\"tableViewOptions\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"onClickShowGroupedDocuments\\\"],null],[22,\\\"onMainAction\\\"],[22,\\\"tab\\\"],[22,\\\"relatedComments\\\"],[23,16,[]],[23,17,[]],false,true,[23,0,[\\\"isShowImagesOnDocuments\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"documents/table-view/doc-row/info-row\\\",[],[[\\\"@rowIndex\\\",\\\"@currentIndex\\\",\\\"@model\\\",\\\"@modelProxy\\\",\\\"@filters\\\",\\\"@detailRowClassName\\\",\\\"@detailInfoRowClassName\\\",\\\"@isShowGroupedDocuments\\\",\\\"@tableViewOptions\\\",\\\"@onClickShowGroupedDocuments\\\",\\\"@onMainAction\\\",\\\"@tab\\\",\\\"@relatedComments\\\",\\\"@isDisabled\\\",\\\"@errors\\\",\\\"@isMainDocument\\\",\\\"@isMaster\\\",\\\"@isShowImagesOnDocuments\\\"],[[22,\\\"rowIndex\\\"],[23,15,[]],[23,11,[]],[22,\\\"modelProxy\\\"],[22,\\\"filters\\\"],\\\"\\\",\\\"\\\",[23,0,[\\\"isShowGroupedDocuments\\\"]],[22,\\\"tableViewOptions\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"onClickShowGroupedDocuments\\\"],null],[22,\\\"onMainAction\\\"],[22,\\\"tab\\\"],[22,\\\"relatedComments\\\"],[23,16,[]],[23,17,[]],false,false,[23,0,[\\\"isShowImagesOnDocuments\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[11,12]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"modelProxy\\\",\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[11,\\\"class\\\",[29,[\\\"new-table-view__tr new-table-view__tr--extra-row \\\",[28,\\\"if\\\",[[24,[\\\"isShowGroupedDocuments\\\"]],\\\"u-table-border-bottom-red\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-padding-top-10 u-padding-bottom-10\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-table-with-padding\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"notes\\\"],null],false],[9],[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],\\\"div\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\",\\\"tagName\\\"],[[23,10,[\\\"_data\\\",\\\"notes\\\"]],\\\"div\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"transporter notes\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[1,[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[23,9,[\\\"_data\\\",\\\"transporterNotes\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"tableViewOptions\\\",\\\"hasDispatchProcess\\\"]],[28,\\\"or\\\",[[28,\\\"and\\\",[[23,0,[\\\"showDispatchDateZ\\\"]],[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"dispatchDateZ\\\"]]],null],[28,\\\"and\\\",[[23,0,[\\\"hasDeliveryDateOptions\\\"]],[28,\\\"or\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"expectedPrepareDateZ\\\"]],[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"expectedDispatchDateZ\\\"]],[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]]],null]],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-padding-top-10 u-padding-bottom-10\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-table-with-padding\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showDispatchDateZ\\\"]],[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"dispatchDateZ\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"dispatch date\\\"],null],false],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"date\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"dispatchDateZ\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"hasDeliveryDateOptions\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showExpectedPrepareDateZ\\\"]],[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"expectedPrepareDateZ\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"expected prepare date\\\"],null],false],[9],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"date\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"expectedPrepareDateZ\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showExpectedDispatchDateZ\\\"]],[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"expectedDispatchDateZ\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"expected dispatch date\\\"],null],false],[9],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"date\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"expectedDispatchDateZ\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showTransporterArrivalDateZ\\\"]],[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"customer expected arrival date\\\"],null],false],[9],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"date\\\",[[24,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"documents/table-view/doc-row/related-docs\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@detailInfoRowClassName\\\",\\\"@rowIndex\\\",\\\"@onAfterSplit\\\",\\\"@onClickShowGroupedDocument\\\",\\\"@onClosePrintWaybill\\\",\\\"@tCatGenerateAndDownloadWaybillTask\\\",\\\"@showWaybills\\\",\\\"@tableViewOptions\\\",\\\"@onTCatSetDefaults\\\",\\\"@errors\\\",\\\"@printType\\\",\\\"@isDisabled\\\",\\\"@dispatchProcess\\\",\\\"@relatedComments\\\"],[[23,18,[]],[23,0,[\\\"model\\\"]],\\\"\\\",[23,19,[]],[28,\\\"action\\\",[[23,0,[]],\\\"afterSplit\\\"],null],[23,20,[]],[28,\\\"perform\\\",[[23,0,[\\\"dispatch\\\",\\\"markAsPrintedTask\\\"]],[28,\\\"array\\\",[[28,\\\"hash\\\",null,[[\\\"model\\\"],[[23,21,[]]]]]],null]],null],[23,0,[\\\"dispatch\\\",\\\"tCatGenerateAndDownloadWaybillTask\\\"]],[22,\\\"showWaybills\\\"],[23,14,[]],[23,0,[\\\"tCatSetDefaults\\\"]],[23,17,[]],[23,0,[\\\"printType\\\"]],[23,16,[]],[23,0,[\\\"dispatchProcess\\\"]],[23,22,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"model\\\",\\\"hasBirthdayNotification\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contactTags\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tags\\\"]],false,[24,[\\\"model\\\",\\\"_data\\\",\\\"contactTags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasBirthdayNotification\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-cake-candles\\\"],[8],[9],[0,\\\" \\\"],[1,[28,\\\"date\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"birthday\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right u-height-30\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isPrinted\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"printHistory\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/info-tooltip\\\",[[12,\\\"class\\\",\\\"documents-status-tag-printed-badge\\\"]],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__status-badge \\\",[22,\\\"badgeClassNames\\\"]]]],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-print\\\"]]],false],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"printHistory\\\",\\\"length\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,7,[]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"printHistory\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[1,[28,\\\"tt\\\",[\\\"printed\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,8,[\\\"timestampZ_printed\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"ramda\\\",[\\\"toUpper\\\",[28,\\\"ramda\\\",[\\\"take\\\",4,[23,8,[\\\"printBatchId\\\"]]],null]],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterWaybillRecords\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/info-tooltip\\\",[[12,\\\"class\\\",\\\"documents-status-tag-printed-badge\\\"]],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__status-badge \\\",[22,\\\"badgeClassNames\\\"]]]],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-truck\\\"]]],false],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterWaybillRecords\\\",\\\"length\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,5,[]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterWaybillRecords\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"printed\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,6,[\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\" (\\\"],[1,[23,6,[\\\"_data\\\",\\\"waybill\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"hasToggleIcon\\\",\\\"toggleOnIconClassName\\\",\\\"toggleOffIconClassName\\\",\\\"translate\\\",\\\"statusBadgeClassNames\\\",\\\"hasStatusBadge\\\",\\\"tooltipLabel\\\",\\\"label\\\",\\\"toggleIsOn\\\"],[true,false,true,\\\"fas fa-angle-down\\\",\\\"fas fa-angle-right\\\",false,[28,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"hasPreOrderDetails\\\"]],\\\"is-warning\\\",\\\"\\\"],null],[23,0,[\\\"model\\\",\\\"hasPreOrderDetails\\\"]],[28,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"hasPreOrderDetails\\\"]],[28,\\\"tt\\\",[\\\"hasPreOrderCount\\\"],[[\\\"count\\\"],[[28,\\\"number\\\",[[23,0,[\\\"model\\\",\\\"hasPreOrderDetailsCount\\\"]]],null]]]]],null],[28,\\\"count\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"details\\\"]]],null],[23,0,[\\\"modelProxy\\\",\\\"showDetails\\\"]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@btnTooltipLabel\\\",\\\"@btnIcon\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@isPublic\\\",\\\"@metaData\\\",\\\"@excludeFromFilters\\\"],[\\\"comments/comments-manager/modal-btn\\\",[22,\\\"tab\\\"],\\\"customer comments\\\",\\\"fa-solid fa-comments\\\",\\\"documents-public\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,[22,\\\"relatedComments\\\"],true,[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"subType\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"locale\\\",\\\"ref\\\",\\\"threadId\\\",\\\"isPublic\\\",\\\"emailType\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\"],[\\\"documents-public\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"locale\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"externalUrl\\\"]],true,\\\"fromMerchantToCustomer\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceKey\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceHost\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceHostName\\\"]]]]],[28,\\\"array\\\",[\\\"emailToAddress\\\",\\\"emailToName\\\",\\\"emailType\\\",\\\"emailFromAddress\\\",\\\"emailFromName\\\",\\\"locale\\\",\\\"ref\\\",\\\"shopKey\\\",\\\"sourceHost\\\",\\\"sourceHostName\\\",\\\"contact\\\",\\\"contactKey\\\",\\\"threadId\\\"],null]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@btnTooltipLabel\\\",\\\"@tab\\\",\\\"@hasLabel\\\",\\\"@type\\\",\\\"@subType\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@related\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",\\\"internal comments\\\",[22,\\\"tab\\\"],false,\\\"documents\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"txType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,[22,\\\"relatedComments\\\"],[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"docNo\\\",\\\"contactKey\\\",\\\"docType\\\",\\\"docName\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]]]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"isDispatchTab\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"allowSplit\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"documents/btn-split\\\",null,[[\\\"splitAppendPath\\\",\\\"model\\\",\\\"icon\\\",\\\"onAfterSplit\\\"],[\\\"final/split\\\",[24,[\\\"model\\\"]],\\\"fas fa-cut\\\",[28,\\\"action\\\",[[23,0,[]],\\\"afterSplit\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[1,[28,\\\"documents/btn-merge\\\",null,[[\\\"model\\\",\\\"duplicateAddressesDocNos\\\",\\\"onAfterMerge\\\",\\\"displayOnFormInputRow\\\",\\\"displayOnFormInputRowLabel\\\"],[[24,[\\\"model\\\"]],[23,14,[\\\"duplicateAddressesDocNos\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterMerge\\\"],null],true,\\\"merge\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"groupId\\\"]],[28,\\\"not\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isGrouped\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"documents/btn-ungroup\\\",[],[[\\\"@model\\\",\\\"@onAfterMerge\\\"],[[22,\\\"model\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"afterMerge\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,[[\\\"hasPrintBtn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"documents/document-print\\\",null,[[\\\"onPrintDialogAction\\\",\\\"model\\\",\\\"hasGroups\\\",\\\"onCloseDialogAction\\\"],[[23,4,[]],[24,[\\\"model\\\"]],true,[23,3,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"model\\\",\\\"isSalesInvoices\\\"]],[24,[\\\"model\\\",\\\"isConsignment\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"allowIndividualPrintWaybill\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTransporterHct\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/print-btn\\\",null,[[\\\"tagName\\\",\\\"icon\\\",\\\"onClose\\\",\\\"hasPrintIcon\\\",\\\"modalDialogIsVisible\\\",\\\"model\\\"],[\\\"span\\\",\\\"fas fa-sticky-note\\\",[28,\\\"perform\\\",[[23,0,[\\\"dispatch\\\",\\\"markAsPrintedTask\\\"]],[28,\\\"array\\\",[[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]],null],false,[24,[\\\"showWaybills\\\"]],[24,[\\\"model\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[1,[28,\\\"transporters/hct-waybills-list\\\",null,[[\\\"results\\\",\\\"tab\\\"],[[28,\\\"array\\\",[[24,[\\\"model\\\"]]],null],[24,[\\\"tab\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isTransporterTCat\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sticky-note\\\",false,false,[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"tCatSetDefaults\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"tCatSetDefaults\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"t-cat print type\\\",[22,\\\"errors\\\"],\\\"twTCat\\\",\\\"dispatch\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,true,[22,\\\"isDisabled\\\"],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-waybill-print-type\\\"]],[23,0,[\\\"printType\\\"]]]]],[0,\\\"\\\\n\\\\n                          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"dispatch\\\",\\\"tCatGenerateAndDownloadWaybillTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"tCatSetDefaults\\\",\\\"isRunning\\\"]]],null],[23,1,[]]]]],[0,\\\"\\\\n\\\\n                          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-print\\\",\\\"is-primary\\\",[28,\\\"or\\\",[[23,0,[\\\"dispatch\\\",\\\"tCatGenerateAndDownloadWaybillTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"tCatSetDefaults\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"dispatch\\\",\\\"tCatGenerateAndDownloadWaybillTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"documents\\\",\\\"printType\\\",\\\"onAfter\\\"],[[23,0,[]],[24,[\\\"modelProxy\\\",\\\"model\\\"]],[23,0,[\\\"printType\\\"]],[23,1,[]]]]]],null]]]],[0,\\\"\\\\n                        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isSalesInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager\\\",null,[[\\\"hasPrintBtnLabel\\\",\\\"dispatchProcess\\\",\\\"document\\\"],[false,[23,14,[\\\"dispatchProcess\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"documents/copy-document-contents-btn\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onMainAction\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"onSubmit\\\"],[\\\"fas fa-eye\\\",\\\"view\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onMainAction\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onEdit\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"onCancel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onCancel\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"perform\\\",[[24,[\\\"quickSaveTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group new-table-view__tr-group--separator\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/table-view/doc-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/terms-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 DocumentsTermsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _class = class DocumentsTermsEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"big\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args?.adapterName);\n      this.crud.addLists(this, ['documents/sales/terms']);\n      const model = this.args?.model || {};\n      const tab = this.args?.tab || {};\n      this.tab = tab;\n      const isEditing = this.args?.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    afterCreateRecordTask(model) {\n      this.args?.onAddItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args?.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask(model) {\n      this.args?.onRemoveItem?.(model);\n    }\n    cancel() {\n      this.args?.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/documents/terms-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eBpebLzJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@disabled\\\",\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"documents\\\",true,\\\"description\\\",[23,0,[\\\"model\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[\\\"label\\\",[28,\\\"or\\\",[[23,4,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"value\\\",\\\"documents\\\",true,\\\"terms\\\",[23,0,[\\\"model\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[\\\"value\\\",true,[28,\\\"or\\\",[[23,4,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],4,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,1,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterRemoveRecordTask\\\"]],[23,2,[]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,2,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterCreateRecordTask\\\"]],[23,2,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/terms-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/documents/transactions-list-by-details/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/documents/transactions-list-by-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7dnp12ht\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"@isSetWithChoices\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOrderDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"order date\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOrderDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"expected dispatch date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        #\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inventory in\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inventory out\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"adjustment\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n                  \\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"inventory adjustment\\\"],null],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"adjustment\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n                  \\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"adjustment\\\"]],\\\"increase\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"qty\\\"]]],[[\\\"defaultValue\\\"],[\\\"\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"adjustment\\\"]],\\\"decrease\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"qty\\\"]]],[[\\\"defaultValue\\\",\\\"negative\\\"],[\\\"\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"exclPrice\\\"]]],[[\\\"defaultValue\\\",\\\"negative\\\"],[\\\"\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"adjustment\\\"]],\\\"decrease\\\"],null],true,false],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"exclAmt\\\"]]],[[\\\"defaultValue\\\",\\\"negative\\\"],[\\\"\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"adjustment\\\"]],\\\"decrease\\\"],null],true,false],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasOrderDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n                  \\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"_key\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\" - \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"contactKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"contactKey\\\",\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"contactKey\\\"]],\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,1,[\\\"doc\\\",\\\"_data\\\",\\\"ref\\\"]],[23,1,[\\\"_data\\\",\\\"ref\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"qtyIn\\\"]]],[[\\\"defaultValue\\\"],[\\\"\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"qtyOut\\\"]]],[[\\\"defaultValue\\\",\\\"negative\\\"],[\\\"\\\",true]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discExclPrice\\\"]]],[[\\\"defaultValue\\\",\\\"negative\\\"],[\\\"\\\",[28,\\\"if\\\",[[23,1,[\\\"qtyOut\\\"]],true,false],null]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"postDiscExclAmt\\\"]]],[[\\\"defaultValue\\\",\\\"negative\\\"],[\\\"\\\",[28,\\\"if\\\",[[23,1,[\\\"qtyOut\\\"]],true,false],null]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discInclPrice\\\"]]],[[\\\"defaultValue\\\",\\\"negative\\\"],[\\\"\\\",[28,\\\"if\\\",[[23,1,[\\\"qtyOut\\\"]],true,false],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"postDiscInclAmt\\\"]]],[[\\\"defaultValue\\\",\\\"negative\\\"],[\\\"\\\",[28,\\\"if\\\",[[23,1,[\\\"qtyOut\\\"]],true,false],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onPaginationTask\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"lastSearchSettings\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[24,[\\\"onPaginationTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/documents/transactions-list-by-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/accordian-btn/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\", \"ember-concurrency-decorators\"], function (_exports, _component, RA, _emberConcurrencyDecorators) {\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;\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 ElementsAccordianBtnComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class ElementsAccordianBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"translate\", _descriptor, this);\n      _initializerDefineProperty(this, \"toggleOnIconClassName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"toggleOffIconClassName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isElementTogglerToggleOnIconClassName\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isElementTogglerToggleOffIconClassName\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hasToggleIcon\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isElementToggler\", _descriptor7, this);\n      const container = this.args.container;\n      const isElementToggler = container?.args?.isElementToggler;\n      if (isElementToggler) {\n        this.isElementToggler = true;\n        this.hasToggleIcon = false;\n        this.isElementTogglerToggleOnIconClassName = 'element-toggler has-text-success fas fa-toggle-on';\n        this.isElementTogglerToggleOffIconClassName = 'element-toggler fas fa-toggle-off';\n      }\n      this.toggleOnIconClassName = RA.defaultWhen(RA.isNilOrEmpty, 'fas fa-angle-down', this.args.toggleOnIconClassName);\n      this.toggleOffIconClassName = RA.defaultWhen(RA.isNilOrEmpty, 'fas fa-angle-right', this.args.toggleOffIconClassName);\n      this.hasToggleIcon = RA.defaultWhen(RA.isNilOrEmpty, true, this.args.hasToggleIcon);\n    }\n    *toggleAccordianTask(event) {\n      const ignoreClickSelector = this.args.ignoreClickSelector;\n      if (ignoreClickSelector && event?.target?.closest?.(ignoreClickSelector)) {\n        return;\n      }\n      const container = this.args.container;\n      if (container?.toggleAccordianTask) {\n        return yield container.toggleAccordianTask.perform(20);\n      }\n\n      // in this case, only using accordian btn to fire an event. not really toggling anything\n      if (this.args.onSubmitTask) {\n        return yield this.args.onSubmitTask.perform();\n      }\n      if (this.args.onSubmit) {\n        return this.args.onSubmit();\n      }\n    }\n\n    // classNames: ['accordian-btn'],\n    // classNameBindings: ['disabled', 'toggle:accordian-btn--on:accordian-btn--off'],\n    // toggleOnIconClassName: 'fas fa-caret-up',\n    // toggleOffIconClassName: 'fas fa-caret-down',\n\n    // @action\n    // click () {\n    //   const container = this.args.container\n    //   container.toggle()\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.translate);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"toggleOnIconClassName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"toggleOffIconClassName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isElementTogglerToggleOnIconClassName\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isElementTogglerToggleOffIconClassName\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasToggleIcon\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isElementToggler\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleAccordianTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleAccordianTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/accordian-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EChc0A3q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@container\\\",\\\"@label\\\",\\\"@hideToggleIcon\\\",\\\"@isReadonly\\\",\\\"@btnEditLabel\\\",\\\"@onEdit\\\",\\\"@btnDeleteLabel\\\",\\\"@onDelete\\\",\\\"&attrs\\\",\\\"@isAccordian\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[\\\"isAccordian\\\"]],[23,11,[]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"accordian-btn\\\"],[13,10],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,0,[\\\"toggleAccordianTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"customBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,5,[]]],null],[23,0,[\\\"isElementToggler\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"accordian-btn__toggler\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,2,[\\\"toggleAccordianValueTask\\\"]],20],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"modelToggleValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[23,0,[\\\"isElementTogglerToggleOnIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[23,0,[\\\"isElementTogglerToggleOffIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordian-btn__label\\\"],[8],[0,\\\"\\\\n          \\\"],[14,1],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,7,[]],[23,9,[]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordian-btn__icon\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@stopPropagation\\\",\\\"@typeToDelete\\\"],[[23,5,[]],[23,8,[]],[23,9,[]],true,false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@stopPropagation\\\"],[[23,5,[]],[23,6,[]],[23,7,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"hasToggleIcon\\\"]],[23,0,[\\\"isElementToggler\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[[23,0,[\\\"toggleOnIconClassName\\\"]],\\\"element-btn--no-border\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[[23,0,[\\\"toggleOffIconClassName\\\"]],\\\"element-btn--no-border\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"hasToggleIcon\\\"]],[23,0,[\\\"isElementToggler\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordian-btn__icon\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[23,0,[\\\"toggleOnIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[23,0,[\\\"toggleOffIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isElementToggler\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordian-btn__toggler\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"modelToggleValue\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[23,0,[\\\"toggleOnIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[23,0,[\\\"toggleOffIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordian-btn__label\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,3,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"hasToggleIcon\\\"]],[23,0,[\\\"isElementToggler\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordian-btn__icon\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[23,0,[\\\"toggleOnIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[23,0,[\\\"toggleOffIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/accordian-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/accordian-container/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\", \"ember-concurrency-decorators\", \"ember-concurrency\"], function (_exports, _component, RA, _emberConcurrencyDecorators, _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;\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 ElementsAccordianContainerComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember.computed('args.toggleIsOn', 'toggleIsOn'), _dec6 = Ember.computed('args.toggleIsOn'), _class = class ElementsAccordianContainerComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tagName\", _descriptor, this);\n      _initializerDefineProperty(this, \"toggleIsOn\", _descriptor2, this);\n      // this is actually the initial state\n      _initializerDefineProperty(this, \"isAccordian\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isElementToggler\", _descriptor4, this);\n    }\n    /**\n     * will only expand/collapse accordian\n     * @param {*} retryTimes\n     * @returns\n     */\n    *toggleAccordianTask(retryTimes = 20) {\n      const milliseconds_500 = 500;\n      if (this.args.waitBeforeClosingTask && this.toggleIsOn) {\n        // only for when closing accordian\n        if (this.args.waitBeforeClosingTask.isRunning && retryTimes > 0) {\n          yield (0, _emberConcurrency.timeout)(milliseconds_500);\n          retryTimes -= 1;\n          return this.toggleAccordianTask.perform(retryTimes);\n        }\n      }\n      this.toggleIsOn = !this.toggleIsOn;\n\n      // Element togglers report through toggleAccordianValueTask.\n      // A plain accordion reports here, on the header click.\n      if (this.args.isElementToggler || !this.args.onToggleAccordian) {\n        return;\n      }\n      this.args.onToggleAccordian(this.toggleIsOn);\n    }\n\n    /**\n     * will expand/collapse accordian and toggle value\n     * @param {*} retryTimes\n     * @returns\n     */\n    *toggleAccordianValueTask(retryTimes = 20) {\n      const milliseconds_500 = 500;\n      if (this.args.waitBeforeClosingTask && this.toggleIsOn) {\n        // only for when closing accordian\n        if (this.args.waitBeforeClosingTask.isRunning && retryTimes > 0) {\n          yield (0, _emberConcurrency.timeout)(milliseconds_500);\n          retryTimes -= 1;\n          return this.toggleAccordianValueTask.perform(retryTimes);\n        }\n      }\n      this.toggleIsOn = this.modelToggleValue;\n      if (this.args.onToggleAccordian) {\n        this.args.onToggleAccordian(this.toggleIsOn);\n      }\n    }\n    get isExpanded() {\n      if (this.args.isAlwaysExpanded === true) {\n        return true;\n      }\n      return this.toggleIsOn;\n    }\n    get modelToggleValue() {\n      return this.args.toggleIsOn;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tagName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, 'div', this.args.tagName);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"toggleIsOn\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.toggleIsOn);\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isAccordian\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.isAccordian);\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isElementToggler\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, false, this.args.isElementToggler);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleAccordianTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleAccordianTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleAccordianValueTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleAccordianValueTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isExpanded\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"isExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelToggleValue\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"modelToggleValue\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/accordian-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"agxNEaUx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"&attrs\\\",\\\"@isFormGroup\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isAccordian\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"accordian-container \\\",[28,\\\"if\\\",[[23,0,[\\\"isExpanded\\\"]],\\\"is-expanded\\\"],null]]]],[13,2],[8],[0,\\\"\\\\n    \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[13,2],[8],[0,\\\"\\\\n    \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/accordian-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/accordian-dialog/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ElementsAccordianDialogComponent = _exports.default = (_dec = Ember._tracked, _class = class ElementsAccordianDialogComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isModal\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isModal\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n});","define(\"client/pods/components/elements/accordian-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QjPSDWNv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@container\\\",\\\"&attrs\\\",\\\"&default\\\",\\\"@isModal\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isAccordian\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"modals/modal-container-new\\\",[[12,\\\"classNames\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"isExpanded\\\"]],\\\"\\\",\\\"u-display-none\\\"],null]]]]],[[\\\"@onToggleModalDialog\\\"],[[28,\\\"perform\\\",[[23,1,[\\\"toggleAccordianTask\\\"]],20],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[14,3],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"accordian-dialog \\\",[28,\\\"if\\\",[[23,1,[\\\"isExpanded\\\"]],\\\"\\\",\\\"u-display-none\\\"],null]]]],[13,2],[8],[0,\\\"\\\\n      \\\"],[14,3],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"isExpanded\\\"]],\\\"\\\",\\\"u-display-none\\\"],null]]]],[13,2],[8],[0,\\\"\\\\n    \\\"],[14,3],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/accordian-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/btn-back/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    tooltipLabel: 'back to previous',\n    label: '',\n    btnClassNames: '',\n    icon: 'fas fa-arrow-left'\n  });\n});","define(\"client/pods/components/elements/btn-back/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PCAKOMoa\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"icon\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"btnClassNames\\\"]],[24,[\\\"label\\\"]],[24,[\\\"tooltipLabel\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"isRunning\\\"]],[24,[\\\"onSubmit\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/btn-back/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/btn-cancel/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    label: '',\n    tooltipLabel: 'cancel',\n    btnClassNames: '',\n    icon: 'fas fa-ban'\n  });\n});","define(\"client/pods/components/elements/btn-cancel/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qZ7Fspcm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@translate\\\"],\\\"statements\\\":[[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isCancelBtn\\\",\\\"classNames\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"icon\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"translate\\\"],[true,[24,[\\\"btnClassNames\\\"]],[24,[\\\"label\\\"]],[24,[\\\"tooltipLabel\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"isRunning\\\"]],[24,[\\\"onSubmit\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/btn-cancel/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/btn-delete/component\", [\"exports\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, R, _emberConcurrencyDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    application: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    tagName: '',\n    label: 'delete',\n    title: 'delete',\n    btnClassNames: 'button--delete',\n    icon: 'fas fa-trash',\n    requiresConfirmation: true,\n    typeToDelete: false,\n    init() {\n      this._super(...arguments);\n      this.set('typedConfirmationText', '');\n      let translate = true;\n      if (!R.isNil(this.translate)) {\n        translate = this.translate;\n      }\n      this.set('_translate', translate);\n    },\n    _requiresConfirmation: Ember.computed('requiresConfirmation', 'typeToDelete', 'confirmMsg', 'confirmMsgTranslate', function () {\n      if (this.requiresConfirmation || this.typeToDelete || this.confirmMsg || this.confirmMsgTranslate) {\n        return true;\n      }\n      return false;\n    }),\n    isDeleteDisabled: Ember.computed('typedConfirmationText', function () {\n      const deleteKeyword = this.intl.t('delete_keyword');\n      const typedConfirmationText = this?.typedConfirmationText || '';\n      const confirmation = R.pipe(R.trim, R.toUpper)(typedConfirmationText);\n      if (confirmation === deleteKeyword) {\n        return false;\n      }\n      return true;\n    }),\n    *deleteWithTypedConfirmationTask(onCloseDialogAction, ...rest) {\n      yield this.onSubmit(...rest, {\n        preOnAfter: onCloseDialogAction\n      });\n    },\n    cancel(onCloseDialogAction) {\n      this.set('typedConfirmationText', '');\n      onCloseDialogAction();\n    },\n    clearTypeToDelete() {\n      this.set('typedConfirmationText', '');\n    },\n    copyText() {\n      this.application.copyText(this.intl.t('delete_keyword'));\n    }\n  }, _applyDecoratedDescriptor(_obj, \"deleteWithTypedConfirmationTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"deleteWithTypedConfirmationTask\"), _obj), _applyDecoratedDescriptor(_obj, \"cancel\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"cancel\"), _obj), _applyDecoratedDescriptor(_obj, \"clearTypeToDelete\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"clearTypeToDelete\"), _obj), _applyDecoratedDescriptor(_obj, \"copyText\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"copyText\"), _obj), _obj));\n});","define(\"client/pods/components/elements/btn-delete/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xoiA+j4g\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\",\\\"@disabled\\\",\\\"@isOn\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\",\\\"@stopPropagation\\\",\\\"@message\\\",\\\"@messageClassNames\\\",\\\"@titleSuffix\\\",\\\"@errors\\\",\\\"@hasErrors\\\",\\\"@model\\\",\\\"@typeToDelete\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@btnClassNames\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleSuffix\\\",\\\"@modalSize\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[23,0,[\\\"btnClassNames\\\"]],[23,4,[]],\\\"fas fa-trash\\\",[23,6,[]],[23,0,[\\\"label\\\"]],[23,0,[\\\"_translate\\\"]],[23,0,[\\\"title\\\"]],[23,12,[]],\\\"small\\\",[28,\\\"fn\\\",[[23,0,[\\\"clearTypeToDelete\\\"]]],null],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-row\\\",[[12,\\\"customBlock\\\",true]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-label\\\",[],[[\\\"@label\\\",\\\"@classNames\\\"],[[23,10,[]],[23,11,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[[12,\\\"customBlock\\\",true]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-label\\\",[],[[\\\"@label\\\",\\\"@isRequired\\\"],[\\\"type delete to delete\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\"],[\\\"far fa-copy\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"copyText\\\"]]],null],-1]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\"],[\\\"delete_keyword\\\",[23,0,[\\\"typedConfirmationText\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@errors\\\",\\\"@hasErrors\\\",\\\"@model\\\"],[[23,13,[]],[23,14,[]],[23,15,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,6,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isOn\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\",\\\"@tooltipLabel\\\"],[[23,0,[\\\"btnClassNames\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"isDeleteDisabled\\\"]],[23,0,[\\\"icon\\\"]],[23,5,[]],[23,6,[]],[23,0,[\\\"label\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"deleteWithTypedConfirmationTask\\\"]],[23,1,[]]],null],[23,0,[\\\"_requiresConfirmation\\\"]],[23,8,[]]]]],[0,\\\"\\\\n        \\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isOn\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\",\\\"@tooltipLabel\\\",\\\"@translate\\\",\\\"@stopPropagation\\\"],[[23,0,[\\\"btnClassNames\\\"]],[23,2,[]],[23,3,[]],[23,4,[]],[23,0,[\\\"icon\\\"]],[23,5,[]],[23,6,[]],[23,0,[\\\"label\\\"]],[23,7,[]],[23,0,[\\\"_requiresConfirmation\\\"]],[23,8,[]],[23,0,[\\\"_translate\\\"]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/btn-delete/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/btn-edit/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    label: '',\n    tooltipLabel: 'edit',\n    btnClassNames: '',\n    icon: 'fas fa-pen'\n  });\n});","define(\"client/pods/components/elements/btn-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oUSGZVB8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@stopPropagation\\\"],\\\"statements\\\":[[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"tooltipTranslate\\\",\\\"icon\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"statusBadge\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"stopPropagation\\\"],[[24,[\\\"btnClassNames\\\"]],[24,[\\\"label\\\"]],[24,[\\\"tooltipLabel\\\"]],[24,[\\\"tooltipTranslate\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"isRunning\\\"]],[24,[\\\"onSubmit\\\"]],[24,[\\\"statusBadge\\\"]],[24,[\\\"hasStatusBadge\\\"]],[24,[\\\"statusBadgeClassNames\\\"]],[23,1,[]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/btn-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/btn-next/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    tooltipLabel: 'next',\n    label: '',\n    btnClassNames: '',\n    icon: 'fas fa-arrow-right'\n  });\n});","define(\"client/pods/components/elements/btn-next/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"glO8dFls\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"icon\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"btnClassNames\\\"]],[24,[\\\"label\\\"]],[24,[\\\"tooltipLabel\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"isRunning\\\"]],[24,[\\\"onSubmit\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/btn-next/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/btn-prev/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    tooltipLabel: 'previous',\n    label: '',\n    btnClassNames: '',\n    icon: 'fas fa-arrow-left'\n  });\n});","define(\"client/pods/components/elements/btn-prev/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hEDdEMJj\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"icon\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"btnClassNames\\\"]],[24,[\\\"label\\\"]],[24,[\\\"tooltipLabel\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"isRunning\\\"]],[24,[\\\"onSubmit\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/btn-prev/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/btn-save/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 ElementsBtnSave = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class ElementsBtnSave extends _component.default {\n    constructor(...args) {\n      super(...args);\n      // @tracked showErrorsModal = false\n      _initializerDefineProperty(this, \"rawErrors\", _descriptor, this);\n    }\n    get translate() {\n      return R.pathOr(true, ['args', 'translate'])(this);\n    }\n    get btnClassNames() {\n      const classNames = R.pathOr('is-primary', ['args', 'btnClassNames'])(this);\n      return `btn-save is-primary ${classNames}`;\n    }\n    get tooltipLabel() {\n      return R.pathOr('save', ['args', 'tooltipLabel'])(this);\n    }\n    get defaultIcon() {\n      const icon = this.args.icon;\n      if (icon === false || icon === '') {\n        return '';\n      }\n      if (icon) {\n        return icon;\n      }\n      return 'fas fa-save';\n    }\n    get hasErrors() {\n      if (this.rawErrors?.length > 0) {\n        return true;\n      }\n      return false;\n    }\n    toggleShowErrorsModal() {\n      const showErrorsModal = this?.showErrorsModal || false;\n      Ember.set(this, 'showErrorsModal', !showErrorsModal);\n    }\n    async submit(onSaveTask) {\n      try {\n        const response = await onSaveTask();\n        this.rawErrors = [];\n        return response;\n      } catch (error) {\n        if (error?.data?.errors?.length) {\n          this.rawErrors = error?.data?.errors;\n        } else if (error?.cause?.errors?.length) {\n          this.rawErrors = error?.cause?.errors;\n        } else {\n          this.rawErrors = error;\n        }\n        return null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"rawErrors\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleShowErrorsModal\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowErrorsModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submit\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"submit\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/btn-save/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Bg7o9G6A\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@badge\\\",\\\"@disabled\\\",\\\"@hasBadge\\\",\\\"@iconRight\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn\\\",[],[[\\\"@badge\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@hasBadge\\\",\\\"@icon\\\",\\\"@iconRight\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\",\\\"@translate\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\"],[[23,1,[]],[23,0,[\\\"btnClassNames\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"defaultIcon\\\"]],[23,4,[]],[23,5,[]],[23,6,[]],[28,\\\"fn\\\",[[23,0,[\\\"submit\\\"]],[23,7,[]]],null],[23,0,[\\\"tooltipLabel\\\"]],[23,0,[\\\"translate\\\"]],[23,8,[]],[23,9,[]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/btn-save/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/btns-prev-next/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _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 ElementsBtnsPrevNextComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember.computed('args.menu.[]', 'applicationService.isMobile'), _dec0 = Ember.computed('args.{tabs.@each.isActive,menu.[]}', 'showBtns'), _dec1 = Ember.computed('args.{tabs.@each.isActive,menu.[]}', 'showBtns'), _dec10 = Ember.computed('args.{tabs.@each.isActive,menu.[]}', 'showBtns'), _dec11 = Ember.computed('args.{tabs.@each.isActive,menu.[]}', 'showBtns'), _class = class ElementsBtnsPrevNextComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tooltipLabelPrev\", _descriptor3, this);\n      _initializerDefineProperty(this, \"btnClassNamesPrev\", _descriptor4, this);\n      _initializerDefineProperty(this, \"iconPrev\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tooltipLabelNext\", _descriptor6, this);\n      _initializerDefineProperty(this, \"btnClassNamesNext\", _descriptor7, this);\n      _initializerDefineProperty(this, \"iconNext\", _descriptor8, this);\n    }\n    get showBtns() {\n      if (this.applicationService.isMobile) {\n        return false;\n      }\n      const menu = this.args.menu || [];\n      const menuLength = menu.length || 0;\n      if (menuLength > 1) {\n        return true;\n      }\n      return false;\n    }\n    get disabledPrev() {\n      if (!this.showBtns) {\n        return true;\n      }\n      const menu = this.args.menu || [];\n      const tabs = this.args.tabs || [];\n      const index = this.tabsManager.getActiveMenuIndexByActiveTab(tabs, menu);\n      if (index === 0) {\n        return true;\n      }\n      return false;\n    }\n    get prevLabel() {\n      const menu = this.args.menu || [];\n      const tabs = this.args.tabs || [];\n      const menuItem = this.tabsManager.getPrevMenuItem({\n        tabs,\n        menu\n      });\n      return menuItem?._data?.label || 'previous step';\n    }\n    get nextLabel() {\n      const menu = this.args.menu || [];\n      const tabs = this.args.tabs || [];\n      const menuItem = this.tabsManager.getNextMenuItem({\n        tabs,\n        menu\n      });\n      return menuItem?._data?.label || 'next step';\n    }\n    get disabledNext() {\n      const menu = this.args.menu || [];\n      const tabs = this.args.tabs || [];\n      const menuLength = menu.length || 0;\n      const index = this.tabsManager.getActiveMenuIndexByActiveTab(tabs, menu);\n      if (index === menuLength - 1) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tooltipLabelPrev\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, 'previous step', this.args.tooltipLabelPrev);\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"btnClassNamesPrev\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, '', this.args.btnClassNamesPrev);\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"iconPrev\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, 'fas fa-arrow-left', this.args.iconPrev);\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tooltipLabelNext\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, 'next step', this.args.tooltipLabelNext);\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"btnClassNamesNext\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, '', this.args.btnClassNamesNext);\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"iconNext\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, 'fas fa-arrow-right', this.args.iconNext);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"showBtns\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"showBtns\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"disabledPrev\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"disabledPrev\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"prevLabel\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"prevLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextLabel\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"nextLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"disabledNext\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"disabledNext\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/btns-prev-next/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MjVm8cqa\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@isRunning\\\",\\\"@onSubmitPrev\\\",\\\"@onSubmitNext\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"showBtns\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"    \\\\n    \\\"],[5,\\\"elements/btn-prev\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"btnClassNamesPrev\\\"]],[23,0,[\\\"prevLabel\\\"]],[23,0,[\\\"tooltipLabelPrev\\\"]],[23,0,[\\\"iconPrev\\\"]],[23,0,[\\\"disabledPrev\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/btn-next\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"btnClassNamesNext\\\"]],[23,0,[\\\"nextLabel\\\"]],[23,0,[\\\"tooltipLabelNext\\\"]],[23,0,[\\\"iconNext\\\"]],[23,0,[\\\"disabledNext\\\"]],[23,2,[]],[23,4,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/btns-prev-next/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/carousel/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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 DocumentationsFeaturesPopupComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class DocumentationsFeaturesPopupComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentSlideIndex\", _descriptor2, this);\n      _initializerDefineProperty(this, \"modalDialogIsVisible\", _descriptor3, this);\n    }\n    get paginationLabel() {\n      const page = this.currentSlideIndex + 1;\n      const slides = this.args.slides || [];\n      const totalSlides = slides.length;\n      return `${page}/${totalSlides}`;\n    }\n    get isPreviousDisabled() {\n      if (this.currentSlideIndex === 0) {\n        return true;\n      }\n      return false;\n    }\n    get isNextDisabled() {\n      const slides = this.args.slides || [];\n      if (this.currentSlideIndex >= slides.length - 1) {\n        return true;\n      }\n      return false;\n    }\n    get hasMultipleSlides() {\n      const slides = this.args.slides || [];\n      if (slides.length > 1) {\n        return true;\n      }\n      return false;\n    }\n    previousPage() {\n      let currentSlideIndex = this.currentSlideIndex - 1;\n      if (currentSlideIndex <= 0) {\n        currentSlideIndex = 0;\n      }\n      this.currentSlideIndex = currentSlideIndex;\n    }\n    nextPage() {\n      let currentSlideIndex = this.currentSlideIndex + 1;\n      const slides = this.args.slides || [];\n      if (currentSlideIndex >= slides.length - 1) {\n        currentSlideIndex = slides.length - 1;\n      }\n      this.currentSlideIndex = currentSlideIndex;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentSlideIndex\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"modalDialogIsVisible\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"previousPage\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"previousPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextPage\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"nextPage\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/carousel/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2TQoGWZl\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"slide\\\",\\\"index\\\",\\\"@onClose\\\",\\\"&default\\\",\\\"@slides\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"elements-carousel\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,8,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentSlideIndex\\\"]],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"elements-carousel__slide\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentSlideIndex\\\"]],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[14,7,[[23,0,[]],[23,4,[]],[23,5,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4,5]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasMultipleSlides\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"paginationLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[23,0,[\\\"paginationLabel\\\"]],false]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@hasIconSpacers\\\",\\\"@icon\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"isPreviousDisabled\\\"]],false,\\\"fas fa-angle-left\\\",\\\"pagination-previous\\\",[28,\\\"fn\\\",[[23,0,[\\\"previousPage\\\"]]],null]]]],[0,\\\"        \\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@hasIconSpacers\\\",\\\"@iconRight\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isNextDisabled\\\"]],\\\"\\\",false,\\\"fas fa-angle-right\\\",\\\"pagination-next\\\",[28,\\\"fn\\\",[[23,0,[\\\"nextPage\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"close\\\",\\\"\\\",[28,\\\"fn\\\",[[23,6,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/carousel/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/color-picker/component\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'span',\n    classNames: [''],\n    showColorPicker: false,\n    didInsertElement() {\n      const self = this;\n      if (this.value) {\n        self.setColorPreview(this.value);\n      }\n    },\n    didUpdate() {\n      this.setColorPreview(this.value);\n    },\n    _hasInput: Ember.computed('hasInput', function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.hasInput);\n    }),\n    setColorPreview(hexColor) {\n      const isColor = /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(hexColor);\n      if (isColor) {\n        (0, _jquery.default)(this.element).children('.color-picker__btn').css('background-color', hexColor);\n      }\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        if (this.picker) {\n          this.picker.destroy();\n        }\n      }\n    },\n    colorPickerClassNames: Ember.computed('readonly', function () {\n      let classNames = 'color-picker__btn';\n      if (this.readonly) {\n        classNames = `${classNames} is-readonly`;\n      }\n      return classNames;\n    }),\n    actions: {\n      toggleColorPicker() {\n        if (!this.readonly) {\n          const onSelect = this.onSelect;\n          if (onSelect) {\n            onSelect(this.model);\n          }\n          this.set('showColorPicker', !this.showColorPicker);\n        }\n      },\n      setColor(value) {\n        if (!this.readonly) {\n          this.set('value', value);\n          this.setColorPreview(value);\n          this.picker.set(value);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/color-picker/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jpj2jnFb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@value\\\",\\\"@colorKey\\\",\\\"@model\\\",\\\"@defaultSwatchesList\\\",\\\"@placeholder\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--no-wrap\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"placeholder\\\",\\\"value\\\"],[[24,[\\\"readonly\\\"]],\\\"color-picker__input\\\",[23,5,[]],[24,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\n  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\",\\\"classNames\\\",\\\"swatchColor\\\"],[\\\"fas fa-eye-dropper\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleColorPicker\\\"],null],[23,0,[\\\"colorPickerClassNames\\\"]],[24,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showColorPicker\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@closeOnOverlayClick\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"color-picker\\\",[],[[\\\"@color\\\",\\\"@colorKey\\\",\\\"@model\\\",\\\"@defaultSwatchesList\\\",\\\"@toggleColorPicker\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleColorPicker\\\"],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/color-picker/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/date-input/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R) {\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;\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 ElementsDateInputComponent = _exports.default = (_dec = Ember.inject.service('date'), _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class ElementsDateInputComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dateService\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateValue\", _descriptor2, this);\n      _defineProperty(this, \"DEBOUNCE_MS\", 450);\n    }\n    get dateMin() {\n      const dateConstraint = this.args?.dateConstraint;\n      if (dateConstraint?.min) {\n        return this.dateService.formatDateForUrl(this.dateService.getMoment(dateConstraint?.min));\n      }\n      return '';\n    }\n    get dateMax() {\n      const dateConstraint = this.args?.dateConstraint;\n      if (dateConstraint?.max) {\n        return this.dateService.formatDateForUrl(this.dateService.getMoment(dateConstraint?.max));\n      }\n      return '';\n    }\n    get dateZ() {\n      const dateValue = this.dateValue;\n      if (dateValue) {\n        const dateZ = this.dateService.getMoment?.(dateValue)?.toISOString();\n        return dateZ;\n      }\n      return '';\n    }\n    get initDate() {\n      const dateInputType = this.dateInputType || 'date';\n      const date = this?.args?.date;\n      if (dateInputType === 'date' && date) {\n        return this.dateService.formatDate(date, 'YYYY-MM-DD');\n      }\n      if (dateInputType === 'datetime-local' && date) {\n        return this.dateService.formatDate(date, 'YYYY-MM-DDTHH:mm');\n      }\n      return '';\n    }\n\n    // @DO NOT REMOVE THIS SETTER\n    // Ember built-in Input tag would try to set 'value', which is this.initDate\n    // if there's only getter, it cannot be set by ```obj[key] = ...```, which would throw an error\n    set initDate(value) {\n      return value;\n    }\n    selectDate(element) {\n      this.value = element?.target?.value || '';\n      const value = this.value;\n\n      // should also perform when value = '' (clear date)\n      this.debounceTask.perform(value);\n      const model = this.args?.model;\n      const target = this.args?.target;\n      if (model && target) {\n        let dateZ = '';\n        if (value) {\n          dateZ = this.dateService.getMoment(value).toISOString();\n        }\n\n        // should use target without _data\n        Ember.set(model, target, dateZ);\n        if (this.args.onSetDate) {\n          this.args.onSetDate(dateZ);\n        }\n      }\n    }\n    focusOut(element) {\n      if (R.is(Function)(this.args.onFocusOut)) {\n        this.value = element?.target?.value || '';\n        const value = this.value;\n        const target = this.args?.target;\n        if (target) {\n          let dateZ = '';\n          if (value) {\n            dateZ = this.dateService.getMoment(value).toISOString();\n          }\n\n          // should use target without _data\n          this.args.onFocusOut(dateZ);\n        }\n      }\n    }\n    *debounceTask(value) {\n      yield (0, _emberConcurrency.timeout)(this.DEBOUNCE_MS);\n      const instruct = this.args?.instruct;\n      const onSelectDate = this.args?.onSelectDate;\n\n      // do not assign dateZ to a variable here\n      // since it is a getter and will vary with dateValue\n\n      if (instruct === 'start' && onSelectDate) {\n        this.dateValue = value;\n        onSelectDate({\n          dateStartString: this.dateZ\n        });\n      } else if (instruct === 'end' && onSelectDate) {\n        this.dateValue = value;\n        onSelectDate({\n          dateEndString: this.dateZ\n        });\n      } else if (onSelectDate) {\n        const filters = this.args?.filters;\n        this.dateValue = value;\n        onSelectDate(this.dateZ, {\n          filters\n        });\n      }\n    }\n    get dateInputType() {\n      return this.args?.dateInputType || 'date';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateValue\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectDate\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"selectDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusOut\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"focusOut\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"debounceTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"debounceTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/date-input/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wMeCyvqF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@context\\\",\\\"@isDateRange\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"field date-input flex-container-row flex-container--align-items-center \\\",[28,\\\"if\\\",[[23,2,[]],\\\"u-inline-flex\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"input\\\",[[3,\\\"on\\\",[\\\"input\\\",[23,0,[\\\"selectDate\\\"]]]],[3,\\\"on\\\",[\\\"focusout\\\",[23,0,[\\\"focusOut\\\"]]]]],[[\\\"@classNames\\\",\\\"@max\\\",\\\"@min\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@type\\\",\\\"@value\\\"],[\\\"element-inputpvt\\\",[23,0,[\\\"dateMax\\\"]],[23,0,[\\\"dateMin\\\"]],[23,3,[]],[23,3,[]],[23,0,[\\\"dateInputType\\\"]],[23,0,[\\\"initDate\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/date-input/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/date-multiple-picker/component\", [\"exports\", \"moment\", \"client/utils/nventor\", \"ramda\"], function (_exports, _moment, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Pikaday from 'pikaday'\n  var _default = _exports.default = Ember.Component.extend({\n    dateService: Ember.inject.service('date'),\n    pikadayService: Ember.inject.service('pikaday'),\n    selectedDates: null,\n    init() {\n      const elementId = 'multi-date-picker-' + _nventor.default.random.alpha(4);\n      this.set('elementId', elementId);\n      const containerId = 'multi-date-picker-container' + _nventor.default.random.alpha(4);\n      this.set('containerId', containerId);\n      this._super(...arguments);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const elementId = this.elementId;\n      const containerId = this.containerId;\n      const datepicker = document.getElementById(elementId);\n      const container = document.getElementById(containerId);\n      const selectedDates = this.get('selectedDates') || [];\n      let hasSelectedDate = false;\n      const picker = this.pikadayService.setup({\n        field: datepicker,\n        container: container,\n        keyboardInput: false,\n        setDefaultDate: false,\n        theme: 'pikaday--default-theme',\n        onSelect: function (date) {\n          const isoDateString = (0, _moment.default)(date).toISOString();\n          const index = R.indexOf(isoDateString)(selectedDates);\n          if (index > -1) {\n            selectedDates.removeObject(isoDateString);\n          } else {\n            selectedDates.pushObject(isoDateString);\n          }\n          if (this.onSelect) {\n            this.onSelect(selectedDates);\n          }\n          hasSelectedDate = true;\n        },\n        onDraw: () => {\n          R.map(selectedDateZ => {\n            const formattedDate = this.dateService?.formatDate(selectedDateZ, 'YYYY-MM-DD');\n            if (!formattedDate) {\n              return;\n            }\n            const [year, month, day] = formattedDate.split('-').map(num => parseInt(num, 10));\n            // Adjust month to be 0-indexed to match data-pika-month attribute, NOTE:January is 0, December is 11\n            const zeroIndexedMonth = month - 1;\n            if (picker.isVisible()) {\n              const pikaButtons = picker.el.querySelectorAll('.pika-button[data-pika-day]') || [];\n              const dayElement = R.find(element => {\n                return parseInt(element.getAttribute('data-pika-day')) === day && parseInt(element.getAttribute('data-pika-month')) === zeroIndexedMonth && parseInt(element.getAttribute('data-pika-year')) === year;\n              })(pikaButtons);\n              if (dayElement) {\n                dayElement.classList.add('selected-date');\n              }\n            }\n          })(selectedDates);\n        },\n        onClose: function () {\n          if (hasSelectedDate) {\n            this.show();\n          }\n          hasSelectedDate = false;\n        },\n        i18n: {\n          previousMonth: '上個月',\n          nextMonth: '下個月',\n          months: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],\n          weekdays: ['日', '一', '二', '三', '四', '五', '六'],\n          weekdaysShort: ['日', '一', '二', '三', '四', '五', '六']\n        }\n      });\n      this.set('picker', picker);\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      if (this.picker) {\n        this.picker.destroy();\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/date-multiple-picker/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2bbtzriO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@disabled\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"id\\\",[23,0,[\\\"containerId\\\"]]],[10,\\\"class\\\",\\\"multi-date-picker-outer-container\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"button element-btn is-tappable\\\"],[11,\\\"disabled\\\",[28,\\\"if\\\",[[23,1,[]],\\\"disabled\\\",\\\"\\\"],null]],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"select specific dates\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"id\\\",\\\"multi-date-picker-container\\\"],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/date-multiple-picker/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/date-picker/component\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import IsDirtyMixin from '../../../../mixins/is-dirty'\n  // import HasDropdownMixin from '../../../../mixins/has-dropdown'\n  // import HasDatePickerMixin from '../mixins/has-date-picker'\n  // import TranslateMixin from '../../../../mixins/translate'\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    tagName: 'div',\n    classNames: ['u-datepicker-container'],\n    isFirstTime: true,\n    init() {\n      this._super(...arguments);\n      const self = this;\n\n      // sets up pikaday, will only run after it has been rendered\n      // if (this.get('isDatePicker')) {\n      // setup pikaday with options\n      const options = {\n        // bound: false => do not bind pikaday to input focus, handle it manually\n        bound: false,\n        keyboardInput: false,\n        position: '',\n        firstDay: 1,\n        onSelect: function /* date */\n        () {\n          // if (!) {\n          self._onSelectDate(self.get('isFirstTime'));\n          // } else {}\n        }\n      };\n      // create new pikaday instance\n      const pikaday = this.pikaday.setup(options);\n      pikaday.show();\n\n      // set pikaday instance to datePicker property\n      this.set('datePicker', pikaday);\n\n      // this.setupLocalDateValue()\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.setupDatePicker();\n    },\n    // didRender () {\n    //   this._super(...arguments)\n\n    //   // this.setPickerDate()\n\n    //   // const datePicker = this.get('datePicker')\n    //   // datePicker.show()\n\n    //   const dropdownContainer = this.$()\n    //   const height = dropdownContainer.outerHeight()\n    //   const width = dropdownContainer.outerWidth()\n    //   const top = dropdownContainer.offset().top\n    //   const right = dropdownContainer.offset().left + width\n\n    //   const bottom = top + height\n    //   const viewportTop = this.$(window).scrollTop()\n    //   const viewportRight = this.$(window).width()\n    //   const viewportBottom = viewportTop + this.$(window).height() - 35\n\n    //   if (bottom > viewportBottom) {\n    //     const topDifference = bottom - viewportBottom + 40\n    //     dropdownContainer.css('marginTop', `-=${topDifference}px`)\n    //   }\n\n    //   if (right > viewportRight) {\n    //     const rightDifference = right - viewportRight + 40\n    //     dropdownContainer.css('marginLeft', `-=${rightDifference}px`)\n    //   }\n    // },\n\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        // tear down pikaday\n        this._super(...arguments);\n        // this.setPickerDate()\n        this.datePicker.destroy();\n      }\n    },\n    getLocalDateValue() {\n      const dateZ = this.dateZ;\n      if (dateZ) {\n        const localDate = this.formatDate(dateZ);\n        this.set('localDate', localDate);\n        return localDate;\n      }\n      return '';\n    },\n    setupDatePicker() {\n      const pikaday = this.datePicker;\n      const picker = this.$(pikaday.el);\n      const container = this.$('.u-datepicker-element');\n      container.append(picker);\n\n      // this.setPickerDate()\n      const dateZ = this.dateZ;\n      pikaday.setDate(dateZ);\n      this.set('isFirstTime', false);\n      pikaday.show();\n    },\n    _onSelectDate(isFirstTime) {\n      // format date on select\n\n      // @TODO: test\n\n      // const input = this.$()[0];\n      const datePicker = this.datePicker;\n\n      // pikaday uses iso8601 YYYY/MM/DD as default\n      const dateString = datePicker.toString();\n\n      // date at local time zone (Taiwan time)\n      const localDate = this.formatDate(dateString);\n\n      // date at Zulu time zone\n      const dateZ = this.getMoment(localDate).toISOString(); // use localDate (Taiwan time) to get dateZ always?\n\n      // const previousDateZ = this.get('dateZ')\n      this.set('dateZ', dateZ);\n\n      // hide pikaday on select\n      // this.get('datePicker').hide()\n      // this.setupLocalDateValue()\n      if (!isFirstTime) {\n        if (this.onSelectDate) {\n          // if (dateZ !== previousDateZ) {\n          // trigger onSelectDate action if exists\n          // }\n          this.onSelectDate(dateZ, dateString);\n        }\n      }\n    }\n\n    // setPickerDate () {\n    //   // localDate = localDate || this.getLocalDateValue()\n\n    //   // const dateZ = this.getStartOfDayZ(localDate, this.get('dateFormat'))\n    //   const dateZ = this.get('dateZ')\n    //   const datePicker = this.get('datePicker')\n    //   datePicker.setDate(dateZ)\n    //   this.set('isFirstTime', false)\n    // }\n  });\n});","define(\"client/pods/components/elements/date-picker/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EXtlXype\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-datepicker-element\\\"],[8],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/date-picker/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-btn-icon/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/elements/element-btn-icon/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AOxqOnyX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-btn-icon/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-btn-more/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ElementsElementBtnMore extends _component.default {}\n  _exports.default = ElementsElementBtnMore;\n});","define(\"client/pods/components/elements/element-btn-more/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8HjSYwcA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"&default\\\"],\\\"statements\\\":[[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@hasToggleIconRight\\\",\\\"@icon\\\"],[[23,0,[\\\"isDisabled\\\"]],false,\\\"fas fa-ellipsis-v\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__list\\\"],[8],[0,\\\"\\\\n      \\\"],[14,2],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-btn-more/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-btn-with-modal-dialog/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: 'span',\n    tabindex: 0,\n    translate: true,\n    modalDialogTranslate: true,\n    classNames: ['element-btn-with-modal-dialog'],\n    modalDialogIsVisible: false,\n    modalDialogClassName: 'has-text-left',\n    modalDialogTitle: '',\n    closeOnOverlayClick: true,\n    isSetTypeModalVisible: false,\n    hasToggleIcon: false,\n    hasToggleIconRight: true,\n    _setModalDialogIsVisible: (0, _emberConcurrency.task)(function* (value) {\n      yield (0, _emberConcurrency.timeout)(0);\n      this.set('modalDialogIsVisible', value);\n    }).restartable(),\n    init() {\n      this._super(...arguments);\n      this.set('alreadyClosed', false);\n      if (this.onInit) {\n        this.onInit(this);\n      }\n      if (this.initialModalDialogIsVisible) {\n        this._setModalDialogIsVisible.perform(true);\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      if (!this.modalDialogTitle) {\n        this.set('modalDialogTitle', this.label);\n        this.set('modalDialogTranslate', this.translate);\n      }\n      if (this.onDidInsert) {\n        this.onDidInsert(this);\n      }\n    },\n    showModalDialog() {\n      this._setModalDialogIsVisible.perform(true);\n    },\n    submitTask: (0, _emberConcurrency.task)(function* () {\n      if (this?.isDestroyed === false) {\n        if (!this.disabled) {\n          this.set('alreadyClosed', false);\n          if (this.onSubmit) {\n            yield this.onSubmit();\n          }\n        }\n      }\n    }).drop(),\n    toggleAndSubmitTask: (0, _emberConcurrency.task)(function* () {\n      if (this?.isDestroyed === false) {\n        if (!this.disabled) {\n          this.showModalDialog();\n          this.set('alreadyClosed', false);\n          if (this.onSubmit) {\n            yield this.onSubmit();\n          }\n        }\n      }\n    }).drop(),\n    actions: {\n      closeDialog() {\n        if (this?.isDestroyed === false) {\n          this._setModalDialogIsVisible.perform(false);\n          if (this.onClose) {\n            if (!this.alreadyClosed) {\n              this.set('alreadyClosed', true);\n              return this.onClose();\n            }\n          }\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"showModalDialog\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"showModalDialog\"), _obj), _obj));\n});","define(\"client/pods/components/elements/element-btn-with-modal-dialog/custom-label/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"@glimmer/component\"], function (_exports, R, RA, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ElementsElementBtnWithModalDialogCustomLabelComponent extends _component.default {}\n  _exports.default = ElementsElementBtnWithModalDialogCustomLabelComponent;\n});","define(\"client/pods/components/elements/element-btn-with-modal-dialog/custom-label/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"U5RB3L/l\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onSubmit\\\",\\\"@label\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"u-tappable\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,1,[]]],null]]],[8],[0,\\\"\\\\n  \\\"],[1,[23,2,[]],false],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-btn-with-modal-dialog/custom-label/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-btn-with-modal-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1wrEmgof\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@hasModalDialogHeader\\\",\\\"@hasSectionWrapper\\\",\\\"@modalDialogTitleSuffix\\\",\\\"@autoSetContentOverflow\\\",\\\"@modalSize\\\",\\\"@fitContent\\\",\\\"@width\\\",\\\"@modelContainerClassNames\\\",\\\"@layoutsSection\\\",\\\"@layoutsSectionContentClassNames\\\",\\\"@isRunning\\\",\\\"&default\\\",\\\"@hasCustomModalDialog\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@imageUrl\\\",\\\"@tagName\\\",\\\"@customTriggerOptions\\\",\\\"@customTriggerComponent\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,19,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"component\\\",[[23,19,[]]],[[\\\"options\\\",\\\"classNames\\\",\\\"icon\\\",\\\"iconRight\\\",\\\"iconTop\\\",\\\"iconBottom\\\",\\\"isStacked\\\",\\\"tabindex\\\",\\\"disabled\\\",\\\"prefix\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"tooltipTranslate\\\",\\\"defaultLabel\\\",\\\"badge\\\",\\\"hasBadge\\\",\\\"translate\\\",\\\"isToggler\\\",\\\"hasToggleIcon\\\",\\\"hasToggleIconRight\\\",\\\"isRunning\\\",\\\"toggleOnIconClassName\\\",\\\"toggleOffIconClassName\\\",\\\"hasModalDialog\\\",\\\"modalDialogIsVisible\\\",\\\"onPreSubmit\\\",\\\"onSubmit\\\"],[[23,18,[]],[24,[\\\"btnClassNames\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"iconRight\\\"]],[24,[\\\"iconTop\\\"]],[24,[\\\"iconBottom\\\"]],[24,[\\\"isStacked\\\"]],[24,[\\\"tabindex\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"prefix\\\"]],[24,[\\\"label\\\"]],[24,[\\\"tooltipLabel\\\"]],[24,[\\\"tooltipTranslate\\\"]],[24,[\\\"defaultLabel\\\"]],[24,[\\\"badge\\\"]],[24,[\\\"hasBadge\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"isToggler\\\"]],[24,[\\\"hasToggleIcon\\\"]],[24,[\\\"hasToggleIconRight\\\"]],[23,11,[]],[24,[\\\"toggleOnIconClassName\\\"]],[24,[\\\"toggleOffIconClassName\\\"]],true,[24,[\\\"modalDialogIsVisible\\\"]],[24,[\\\"onPreSubmit\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"toggleAndSubmitTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isPushBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"disabled\\\",\\\"icon\\\",\\\"iconTop\\\",\\\"iconBottom\\\",\\\"isStacked\\\",\\\"tabindex\\\",\\\"isToggler\\\",\\\"toggleIsOn\\\",\\\"detail\\\",\\\"isRunning\\\",\\\"onPreSubmit\\\",\\\"onSubmit\\\"],[[24,[\\\"btnClassNames\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"icon\\\"]],\\\"fas fa-cut\\\",\\\"fas fa-boxes\\\",[24,[\\\"isStacked\\\"]],[24,[\\\"tabindex\\\"]],true,[24,[\\\"modalDialogIsVisible\\\"]],[24,[\\\"detail\\\"]],[23,11,[]],[24,[\\\"onPreSubmit\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"submitTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"tagName\\\",\\\"classNames\\\",\\\"iconClassName\\\",\\\"icon\\\",\\\"iconRight\\\",\\\"iconTop\\\",\\\"iconBottom\\\",\\\"imageUrl\\\",\\\"imageHeight\\\",\\\"imageWidth\\\",\\\"isStacked\\\",\\\"tabindex\\\",\\\"disabled\\\",\\\"prefix\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"tooltipTranslate\\\",\\\"defaultLabel\\\",\\\"badge\\\",\\\"hasBadge\\\",\\\"translate\\\",\\\"isToggler\\\",\\\"hasToggleIcon\\\",\\\"hasToggleIconRight\\\",\\\"isRunning\\\",\\\"toggleOnIconClassName\\\",\\\"toggleOffIconClassName\\\",\\\"hasModalDialog\\\",\\\"modalDialogIsVisible\\\",\\\"onPreSubmit\\\",\\\"onSubmit\\\"],[[28,\\\"if\\\",[[23,17,[]],[23,17,[]],\\\"button\\\"],null],[24,[\\\"btnClassNames\\\"]],[24,[\\\"iconClassName\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"iconRight\\\"]],\\\"fas fa-cut\\\",\\\"fas fa-boxes\\\",[23,16,[]],[23,15,[]],[23,14,[]],[24,[\\\"isStacked\\\"]],[24,[\\\"tabindex\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"prefix\\\"]],[24,[\\\"label\\\"]],[24,[\\\"tooltipLabel\\\"]],[24,[\\\"tooltipTranslate\\\"]],[24,[\\\"defaultLabel\\\"]],[24,[\\\"badge\\\"]],[24,[\\\"hasBadge\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"isToggler\\\"]],[24,[\\\"hasToggleIcon\\\"]],[24,[\\\"hasToggleIconRight\\\"]],[23,11,[]],[24,[\\\"toggleOnIconClassName\\\"]],[24,[\\\"toggleOffIconClassName\\\"]],true,[24,[\\\"modalDialogIsVisible\\\"]],[24,[\\\"onPreSubmit\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"submitTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"modalDialogIsVisible\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,12,[[28,\\\"action\\\",[[23,0,[]],\\\"closeDialog\\\"],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@onClose\\\",\\\"@modalDialogIsVisible\\\",\\\"@hasModalDialogHeader\\\",\\\"@hasSectionWrapper\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@titleSuffix\\\",\\\"@closeOnOverlayClick\\\",\\\"@autoSetContentOverflow\\\",\\\"@modalSize\\\",\\\"@fitContent\\\",\\\"@width\\\",\\\"@modelContainerClassNames\\\",\\\"@modalDialogContainerClassName\\\",\\\"@modalDialogContentClassName\\\",\\\"@layoutsSection\\\",\\\"@layoutsSectionContentClassNames\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"closeDialog\\\"],null],[22,\\\"modalDialogIsVisible\\\"],[23,1,[]],[23,2,[]],[22,\\\"modalDialogTitle\\\"],[22,\\\"modalDialogTitleTranslate\\\"],[23,3,[]],[22,\\\"closeOnOverlayClick\\\"],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[22,\\\"modalDialogContainerClassName\\\"],[22,\\\"modalDialogContentClassName\\\"],[23,9,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[14,12,[[28,\\\"action\\\",[[23,0,[]],\\\"closeDialog\\\"],null]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-btn-with-modal-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-btn/component\", [\"exports\", \"client/mixins/has-dropdown\", \"client/pods/components/elements/mixins/has-date-picker\"], function (_exports, _hasDropdown, _hasDatePicker) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_hasDropdown.default, _hasDatePicker.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    documentationService: Ember.inject.service('documentation'),\n    tagName: 'button',\n    attributeBindings: ['id', 'disabled', 'tabindex', 'style', 'dataGuideId:data-guide-id'],\n    tabindex: 0,\n    translate: true,\n    classNames: ['button', 'element-btn', 'u-tappable'],\n    btnClassNames: null,\n    classNameBindings: ['disabled', 'toggleIsOn:on:off', 'isRunning:is-loading', 'isOn:is-on', 'isActivated:has-text-primary', 'btnClassNames'],\n    isRunning: false,\n    datePickerClassName: null,\n    iconClassName: null,\n    toggleIsOn: false,\n    isToggler: false,\n    hasModalDialog: false,\n    modalDialogIsVisible: false,\n    toggleOnIconClassName: 'fas fa-caret-up',\n    toggleOffIconClassName: 'fas fa-caret-down',\n    toggleOnIconRightClassName: 'fas fa-caret-up',\n    toggleOffIconRightClassName: 'fas fa-caret-down',\n    bubbles: false,\n    hasToggleIcon: false,\n    hasToggleIconRight: true,\n    isPrintBtn: false,\n    hasBadge: true,\n    isCopying: false,\n    hasIconSpacers: true,\n    didInsertElement() {\n      // fetch payments\n      this._super(...arguments);\n      if (!this.element) {\n        return;\n      }\n\n      // add on click event\n      if (this.stopPropagation === true) {\n        this.element.addEventListener('click', this.click);\n      }\n    },\n    /**\n     * Guide id for this button.\n     * @return {string|null} null omits the attribute\n     */\n    dataGuideId: Ember.computed('guideId', 'label', 'tooltipLabel', 'icon', 'iconClassName', 'omitGuideId', function () {\n      return this.documentationService.resolveGuideId({\n        guideId: this.guideId,\n        label: this.label,\n        tooltipLabel: this.tooltipLabel,\n        icon: this.icon || this.iconClassName,\n        omitGuideId: this.omitGuideId\n      });\n    }),\n    _tooltipTranslate: Ember.computed('tooltipTranslate', function () {\n      const tooltipTranslate = this.get('tooltipTranslate');\n      if (tooltipTranslate === false) {\n        return false;\n      }\n      if (tooltipTranslate === true) {\n        return true;\n      }\n      return this.translate;\n    }),\n    hasBadgeComputed: Ember.computed('hasBadge', function () {\n      if (this.hasBadge === null || this.hasBadge === undefined) {\n        return true;\n      }\n      return Boolean(this.hasBadge);\n    }),\n    submit(e) {\n      if (this.isPrintBtn) {\n        this.printDialog();\n      } else {\n        if (this.disabled !== true) {\n          if (this.hasModalDialog) {\n            this.showModalDialog();\n          }\n          this._submit(e);\n        }\n      }\n      this.applicationService.trackMouseEventPosition(e);\n    },\n    _submit(e) {\n      if (this.onPreSubmit) {\n        this.onPreSubmit(e, this);\n      }\n      var isToggler = this.isToggler;\n      if (isToggler) {\n        this.toggleProperty('toggleIsOn');\n      }\n      if (this.isDatePicker) {\n        this.showDatePicker();\n      }\n      if (this.onSubmit) {\n        if (this.requiresConfirmation) {\n          const msg = this.confirmMsgTranslate ? this.intl.t(this.confirmMsg) : this.confirmMsg || this.intl.t('are you sure you want to delete');\n          const confirmed = window.confirm(msg);\n          if (confirmed) {\n            return this.onSubmit(e, this);\n          }\n        } else {\n          if (this.isCopyBtn) {\n            Ember.set(this, 'isCopying', true);\n            setTimeout(() => {\n              if (!this.isDestroyed) {\n                Ember.set(this, 'isCopying', false);\n              }\n            }, 500);\n          }\n          this.onSubmit(e, this);\n        }\n      }\n    },\n    click(e) {\n      if (this.bubbles !== true) {\n        e.stopPropagation();\n      }\n      this.submit(e);\n    },\n    keyUp(e) {\n      if (this.bubbles !== true) {\n        e.stopPropagation();\n      }\n      if (e.which === 13) {\n        this.submit(e);\n      }\n    },\n    showModalDialog() {\n      this.set('modalDialogIsVisible', true);\n    },\n    hideModalDialog() {\n      this.set('modalDialogIsVisible', false);\n    },\n    printDialog() {\n      window.print();\n    },\n    imageStyle: Ember.computed('imageHeight', 'imageWidth', function () {\n      let style = '';\n      if (this.imageHeight) {\n        style = `height:${this.imageHeight};`;\n      }\n      if (this.imageWidth) {\n        style = `${style} width:${this.imageWidth};`;\n      }\n      return style;\n    })\n  }, _applyDecoratedDescriptor(_obj, \"submit\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"submit\"), _obj), _applyDecoratedDescriptor(_obj, \"_submit\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"_submit\"), _obj), _applyDecoratedDescriptor(_obj, \"click\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"click\"), _obj), _applyDecoratedDescriptor(_obj, \"keyUp\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"keyUp\"), _obj), _applyDecoratedDescriptor(_obj, \"showModalDialog\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"showModalDialog\"), _obj), _applyDecoratedDescriptor(_obj, \"hideModalDialog\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"hideModalDialog\"), _obj), _applyDecoratedDescriptor(_obj, \"printDialog\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"printDialog\"), _obj), _obj));\n});","define(\"client/pods/components/elements/element-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Jx3SzXWw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@swatchColor\\\",\\\"@icon\\\",\\\"@labelClassNames\\\",\\\"@defaultLabel\\\",\\\"@label\\\",\\\"@displayAsSubHeaderLabel\\\",\\\"@truncate\\\",\\\"@truncateChar\\\",\\\"@imageTransform\\\",\\\"@imageUrl\\\",\\\"@imageSrcsetTransform\\\",\\\"@isTooltipAlwaysVisible\\\"],\\\"statements\\\":[[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\",\\\"@isAlwaysVisible\\\"],[true,false,[23,13,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"statusBadge\\\"]],[24,[\\\"hasStatusBadge\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__status-badge tag \\\",[22,\\\"statusBadgeClassNames\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"statusBadge\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"iconClassName\\\"],[\\\"fas fa-exclamation-triangle\\\",\\\"has-text-warning\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"hasToggleIcon\\\"]],[24,[\\\"isToggler\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"toggleIsOn\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[24,[\\\"toggleOnIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[24,[\\\"toggleOffIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"iconClassName\\\"]],[24,[\\\"icon\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isCopying\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"iconTop\\\",\\\"iconBottom\\\",\\\"isStacked\\\",\\\"iconClassName\\\"],[\\\"fas fa-check\\\",[24,[\\\"iconTop\\\"]],[24,[\\\"iconBottom\\\"]],[24,[\\\"isStacked\\\"]],[24,[\\\"iconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"iconTop\\\",\\\"iconBottom\\\",\\\"isStacked\\\",\\\"iconClassName\\\"],[[24,[\\\"icon\\\"]],[24,[\\\"iconTop\\\"]],[24,[\\\"iconBottom\\\"]],[24,[\\\"isStacked\\\"]],[24,[\\\"iconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"prefix\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[22,\\\"prefix\\\"],false],[0,\\\" \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"u-tappable u-v-align-auto\\\"],[11,\\\"src\\\",[28,\\\"uploadcareSrc\\\",[[23,11,[]],[23,10,[]]],null]],[11,\\\"srcset\\\",[28,\\\"uploadcareSrc\\\",[[23,11,[]],[23,12,[]]],null]],[11,\\\"style\\\",[23,0,[\\\"imageStyle\\\"]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,6,[]],[23,7,[]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[23,0,[\\\"hasIconSpacers\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right\\\"],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@defaultLabel\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@truncate\\\",\\\"@truncateChar\\\"],[[23,4,[]],[23,5,[]],[28,\\\"or\\\",[[23,7,[]],[23,6,[]]],null],[23,0,[\\\"translate\\\"]],[23,8,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"suffix\\\"]]],null,{\\\"statements\\\":[[0,\\\"     \\\"],[1,[22,\\\"suffix\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"iconRight\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasIconSpacers\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right\\\"],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"iconTop\\\",\\\"iconBottom\\\",\\\"isStacked\\\",\\\"iconClassName\\\"],[[24,[\\\"iconRight\\\"]],[24,[\\\"iconTopRight\\\"]],[24,[\\\"iconBottomRight\\\"]],[24,[\\\"isStackedRight\\\"]],[24,[\\\"iconClassNameRight\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__swatch\\\"],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,2,[]],\\\";\\\"]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"badge\\\"]],[23,0,[\\\"hasBadgeComputed\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__badge \\\",[22,\\\"badgeClassNames\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"badge\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"hasToggleIconRight\\\"]],[24,[\\\"isToggler\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasIconSpacers\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right\\\"],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[28,\\\"if\\\",[[24,[\\\"toggleIsOn\\\"]],[24,[\\\"toggleOnIconRightClassName\\\"]],[24,[\\\"toggleOffIconRightClassName\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDatePicker\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDatePickerVisible\\\"]]],null,{\\\"statements\\\":[[4,\\\"modals/modal-container\\\",null,[[\\\"autoPosition\\\",\\\"classNames\\\",\\\"hasModalOverlay\\\",\\\"modalContentClassNames\\\"],[true,\\\"modal-container--no-box\\\",false,\\\"u-margin-top--6\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/date-picker\\\",null,[[\\\"dateZ\\\",\\\"onSelectDate\\\"],[[24,[\\\"dateZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onSelectDate\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tooltipLabel\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\"],[true,false,[23,1,[]],[24,[\\\"tooltipLabel\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"tooltipLabel\\\"]]],[[\\\"translate\\\"],[[24,[\\\"_tooltipTranslate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-checkbox/component\", [\"exports\", \"ramda\", \"@glimmer/component\"], function (_exports, R, _component) {\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;\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  // import TranslateMixin from '../../../../mixins/translate'\n  // import jQuery from 'jquery'\n  let ElementsElementCheckboxComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class ElementsElementCheckboxComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"_isSelected\", _descriptor2, this);\n    }\n    get translate() {\n      return R.pathOr(true, ['args', 'translate'])(this);\n    }\n    get allowToggle() {\n      return R.pathOr(true, ['args', 'allowToggle'])(this);\n    }\n    get isSelected() {\n      return R.pathOr(this._isSelected, ['args', 'value'])(this);\n    }\n\n    // didInsertElement () {\n    //   this._super(...arguments)\n    //   const initialWidth = jQuery(this.element).outerWidth()\n    //   const spans = jQuery(this.element).children('span')\n    //   let totalWidth = 0\n    //   spans.each((key, element) => {\n    //     element = jQuery(element)\n    //     totalWidth = totalWidth + element.outerWidth()\n    //   })\n    //   totalWidth = Math.ceil(totalWidth + 10)\n    //   if (initialWidth < totalWidth) {\n    //     jQuery(this.element).outerWidth(totalWidth)\n    //   }\n    // },\n    toggle() {\n      if (!this.args.disabled && this.allowToggle) {\n        const customToggler = this.args.onToggle;\n        const isSelected = !this.isSelected;\n        this._isSelected = isSelected;\n        if (this.args.onToggleProperty) {\n          this.args.onToggleProperty(isSelected);\n        }\n        if (customToggler) {\n          return customToggler(isSelected);\n        }\n        const onAfterToggle = this.args.onAfterToggle;\n        if (onAfterToggle) {\n          return onAfterToggle(isSelected);\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_isSelected\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/element-checkbox/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"p8XFDztj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@suffix\\\",\\\"@label\\\",\\\"&default\\\",\\\"@disabled\\\",\\\"&attrs\\\",\\\"@indeterminate\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"checkbox\\\"],[12,\\\"class\\\",[29,[\\\"element-checkbox \\\",[28,\\\"if\\\",[[23,4,[]],\\\"element-checkbox--disabled\\\"],null]]]],[13,5],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggle\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-checkbox--indeterminate\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-minus-square\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-checkbox--checked\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-check-square\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-checkbox--unchecked\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"far fa-square\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[25,3],[23,2,[]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-checkbox__label\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,3]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,2,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-checkbox/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-dropdown-btn/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: 'span',\n    classNames: ['list-btn'],\n    hasDropdown: true,\n    showDropdown: false,\n    onSubmit: 'defaultToggleDropdown',\n    // can supply custom function to search on onSubmit action\n    readonly: false,\n    translate: false,\n    value: '',\n    // list: [],\n    resultsComponent: 'lists/list-results',\n    // component to display results (defaults to list-results)\n\n    /**\n     * determines if dropdown should be shown.\n     * only show if isDropdownVisible and has list\n     */\n    isDropdownVisible: Ember.computed('showDropdown', function () {\n      if (this.readonly === false && this.showDropdown) {\n        return true;\n      }\n      return false;\n    }),\n    actions: {\n      defaultToggleDropdown() {\n\n        // @TODO: should remove this\n\n        // this.set('showDropdown', true);\n      },\n      hideDropdown() {\n        this.set('showDropdown', false);\n      },\n      showDropdown() {\n        this.set('showDropdown', true);\n      }\n    },\n    onToggleModalDialog() {\n      this.set('showDropdown', false);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onToggleModalDialog\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onToggleModalDialog\"), _obj), _obj));\n});","define(\"client/pods/components/elements/element-dropdown-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7j0YUjnG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"button\\\"],[12,\\\"disabled\\\",[22,\\\"disabled\\\"]],[3,\\\"action\\\",[[23,0,[]],\\\"showDropdown\\\"]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[[24,[\\\"icon\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"disabled\\\",\\\"classNames\\\",\\\"prefix\\\",\\\"label\\\",\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\",\\\"onSubmit\\\"],[[24,[\\\"icon\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"btnClassNames\\\"]],[24,[\\\"prefix\\\"]],[24,[\\\"label\\\"]],true,true,[24,[\\\"showDropdown\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSubmit\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDropdownVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@onToggleModalDialog\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[14,1,[[28,\\\"action\\\",[[23,0,[]],\\\"hideDropdown\\\"],null]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-dropdown-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-icon/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    tagName: 'span',\n    classNames: ['element-icon'],\n    classNameBindings: ['iconClassName'],\n    stackedClassNames: 'fa-stack fa-1x',\n    clickToView: true,\n    iconTop: '',\n    iconBottom: '',\n    handleMouseEnter() {\n      this.set('isHover', true);\n    },\n    handleMouseLeave() {\n      this.set('isHover', false);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.element.addEventListener('mouseenter', this.handleMouseEnter);\n      this.element.addEventListener('mouseleave', this.handleMouseLeave);\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        this._super(...arguments);\n        this.element.removeEventListener('mouseenter', this.handleMouseEnter);\n        this.element.removeEventListener('mouseleave', this.handleMouseLeave);\n      }\n    },\n    _tooltipTranslate: Ember.computed('tooltipTranslate', function () {\n      const tooltipTranslate = this.get('tooltipTranslate');\n      if (tooltipTranslate === false) {\n        return false;\n      }\n      if (tooltipTranslate === true) {\n        return true;\n      }\n      return this.translate;\n    }),\n    _icon: Ember.computed('icon', 'isHover', function () {\n      if (this.isHover) {\n        return this.hoverIcon || this.icon;\n      }\n      return this.icon;\n    })\n  }, _applyDecoratedDescriptor(_obj, \"handleMouseEnter\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"handleMouseEnter\"), _obj), _applyDecoratedDescriptor(_obj, \"handleMouseLeave\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"handleMouseLeave\"), _obj), _obj));\n});","define(\"client/pods/components/elements/element-icon/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eRuCa28P\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@tooltipLabel\\\",\\\"@clickToView\\\",\\\"&default\\\",\\\"@isTooltipAlwaysVisible\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\",\\\"@isAlwaysVisible\\\"],[true,[22,\\\"clickToView\\\"],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,4]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,4],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isStacked\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[22,\\\"stackedClassNames\\\"]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"i\\\",true],[11,\\\"class\\\",[22,\\\"iconTop\\\"]],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"i\\\",true],[11,\\\"class\\\",[22,\\\"iconBottom\\\"]],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"i\\\",true],[11,\\\"class\\\",[29,[[22,\\\"_icon\\\"],\\\" \\\",[22,\\\"iconClassNames\\\"]]]],[8],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\"],[true,[23,3,[]],[23,1,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[23,2,[]]],[[\\\"translate\\\"],[[23,0,[\\\"_tooltipTranslate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-icon/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-input/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/is-dirty\", \"client/mixins/date\", \"client/mixins/has-dropdown\", \"client/pods/components/elements/mixins/has-date-picker\", \"client/mixins/translate\"], function (_exports, R, RA, _isDirty, _date, _hasDropdown, _hasDatePicker, _translate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend(_translate.default, _hasDatePicker.default, _date.default, _hasDropdown.default, _isDirty.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    application: Ember.inject.service(),\n    documentationService: Ember.inject.service('documentation'),\n    parser: Ember.inject.service(),\n    validationService: Ember.inject.service('validation'),\n    tagName: 'span',\n    attributeBindings: ['dataGuideId:data-guide-id'],\n    classNames: ['element-input'],\n    classNameBindings: ['isFullW:element-input--fullw', 'isRunning:is-loading', 'hasModifiedWarning:element-input--modified-value-warning'],\n    datePickerClassName: null,\n    autofocus: false,\n    autocomplete: 'off',\n    translate: true,\n    isDatePicker: false,\n    isFloat: false,\n    isInt: false,\n    isDropdownVisible: false,\n    focusInAction: null,\n    allowCalculations: true,\n    type: 'text',\n    isFullW: false,\n    // used for when is in a dropdown/list searcher, set width to fullw of outer component\n    onInput: null,\n    // external action to trigger when input has changed (via keyboard)\n    onSelectDate: null,\n    // external action to trigger when date selected\n    dateZ: null,\n    // zulu date value binding (only for isDatePicker=true)\n    hasModifiedWarning: false,\n    init() {\n      this._super(...arguments);\n      const tab = this.tab;\n      const model = this.model;\n      this.validationService.setErrorsTracker({\n        tab,\n        model,\n        context: this.context\n      });\n      this.setup();\n    },\n    setup() {\n      // storing original value\n      this.setOriginalValue(this.value);\n    },\n    /**\n     * Guide id for a search field. Other inputs stay unmarked so a form row keeps its own id.\n     * @return {string|null} null omits the attribute\n     */\n    dataGuideId: Ember.computed('guideId', 'context', 'placeholder', 'isSearchBar', 'omitGuideId', function () {\n      return this.documentationService.resolveGuideId({\n        guideId: this.guideId,\n        context: this.context,\n        placeholder: this.placeholder,\n        isSearchBar: this.isSearchBar,\n        omitGuideId: this.omitGuideId\n      });\n    }),\n    hasCopyBtn: Ember.computed('readonly', function () {\n      // if (this.isDatePicker) {\n      //   return false\n      // }\n\n      // if (this.isSearchBar) {\n      //   return false\n      // }\n\n      // if (this.readonly) {\n      //   return true\n      // }\n\n      return false;\n    }),\n    showRequiredError: Ember.computed('value', 'isRequired', function () {\n      if (this.isRequired && !this.value) {\n        return true;\n      }\n      return false;\n    }),\n    isRequiredIcon: Ember.computed('value', 'isRequired', function () {\n      let iconClassNames = 'fas fa-asterisk element-icon--xs';\n      if (this.isRequired && !this.value) {\n        iconClassNames += ' has-text-danger';\n      }\n      return iconClassNames;\n    }),\n    inputPlaceHolder: Ember.computed('isRequired', function () {\n      if (this.translatedPlaceholder) {\n        return this.translatedPlaceholder;\n      }\n      if (this.isRequired) {\n        return this.intl.t('is required');\n      }\n      return '';\n    }),\n    hasIconsLeft: Ember.computed('prefix', 'leftIcon', 'negative', function () {\n      return this.prefix || this.leftIcon || this.negative;\n    }),\n    hasIconsRight: Ember.computed('suffix', 'leftIcon', 'hasCheckIcon', 'isRequired', function () {\n      return this.suffix || this.rightIcon || this.hasCheckIcon || this.isRequired;\n    }),\n    currentErrors: Ember.computed('tab', 'tab.errors.errors.[]', function () {\n      return this.tab?.errors?.errors || [];\n    }),\n    hasCurrentError: Ember.computed('currentErrors.[]', 'context', function () {\n      const currentErrors = this?.currentErrors || [];\n      const context = this?.context;\n      return R.pipe(R.find(R.anyPass([R.pathEq(['context', 'key'], context), R.pathEq(['context', 'label'], context), R.pathEq(['context', 'keyWithIndex'], context)])), RA.isNotNilOrEmpty)(currentErrors);\n    }),\n    focusOut(e) {\n      this._super(e);\n      if (this.autoTrim) {\n        try {\n          const value = R.trim(this.value);\n          this.set('value', value);\n        } catch (error) {\n          console.error('could not auto trim', error);\n        }\n      }\n      if (this.hasCalculationExpression) {\n        const result = this.result;\n        if (result) {\n          this.set('value', result);\n          this.set('isFloat', true);\n        }\n      }\n      this.set('result', '');\n      const isDirty = this.get('isDirty');\n      if (this.isFloat) {\n        var float = parseFloat(this.value);\n        if (isNaN(float)) {\n          float = Number(this.minValue) || 0;\n        }\n        if (!this.readonly) {\n          this.set('value', float);\n        }\n        if (this.onInput) {\n          this.onInput(float, e, isDirty, this.resetOriginalValue);\n        }\n      }\n      if (this.isInt) {\n        var int = parseInt(this.value);\n        if (isNaN(int)) {\n          int = parseInt(this.minValue) || 0;\n        }\n        if (!this.readonly) {\n          this.set('value', int);\n        }\n        if (this.onInput) {\n          this.onInput(int, e, isDirty, this.resetOriginalValue);\n        }\n      }\n      let value = this.value;\n      if (RA.isNotNilOrEmpty(value)) {\n        if (RA.isNotNilOrEmpty(this.maxValue) && RA.isNotNilOrEmpty(value)) {\n          // if (RA.isNotNilOrEmpty(this.maxValue) && RA.isNotNilOrEmpty(value) && !isNaN(Number(value))) {\n          const maxValue = Number(this.maxValue);\n          if (value > maxValue) {\n            value = maxValue;\n            this.set('value', value);\n            this.showWarning();\n          }\n        }\n        if (RA.isNotNilOrEmpty(this.minValue) && RA.isNotNilOrEmpty(value)) {\n          // if (RA.isNotNilOrEmpty(this.minValue) && RA.isNotNilOrEmpty(value) && !isNaN(Number(value))) {\n          const minValue = Number(this.minValue);\n          if (value < minValue) {\n            value = minValue;\n            this.set('value', value);\n            this.showWarning();\n          }\n        }\n      }\n      if (this.isFloat || this.isInt) {\n        if (this.onInput) {\n          this.onInput(this.value, e, isDirty, this.resetOriginalValue);\n        }\n      }\n      if (this.isDatePicker) {\n        const value = this.value;\n        let dateZ = '';\n        if (value) {\n          const validDate = this.getMoment(value, this.dateFormat);\n          if (validDate.isValid()) {\n            dateZ = this.getStartOfDayZ(value);\n            this.set('dateZ', dateZ);\n          } else {\n            dateZ = '';\n            this.set('dateZ', dateZ);\n            this.set('value', dateZ);\n          }\n        } else {\n          this.set('dateZ', dateZ);\n        }\n        if (this.onInput) {\n          this.onInput(dateZ, e, isDirty, this.resetOriginalValue);\n        }\n      }\n      if (this.onValidate) {\n        this.onValidate(e, this.valueKey, this.value, isDirty);\n      }\n      if (this.onFocusOut) {\n        this.onFocusOut(this.value, this.valueKey, e, isDirty);\n      }\n      if (this.onFocusOutSave && isDirty) {\n        this.onFocusOutSave(this.value, this.valueKey, e, isDirty);\n        this.resetOriginalValue();\n      }\n    },\n    showWarning() {\n      Ember.set(this, 'hasModifiedWarning', true);\n      // this.classNames.pushObject('element-input--modified-value-warning')\n      setTimeout(() => {\n        Ember.set(this, 'hasModifiedWarning', false);\n      }, 1000);\n    },\n    hasCalculationExpression: Ember.computed('value', function () {\n      let value = this.value;\n      if (value) {\n        value = value.toString();\n        if (value.charAt(0) === '=' && value.length > 1 && this.allowCalculations) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    keyDown(e) {\n      this._super(e);\n      if (this.hasCalculationExpression) {\n        const keyCode = e.keyCode || e.which;\n        if (keyCode === 13) {\n          const result = this.result;\n          if (result) {\n            this.set('value', result);\n            return false;\n          }\n        }\n      }\n    },\n    keyUp(e) {\n      this._super(e);\n      const value = this.value;\n      let result = '';\n      if (this.hasCalculationExpression) {\n        const keyCode = e.keyCode || e.which;\n        if (keyCode === 13) {\n          // key code: Enter\n          const result = this.result;\n          if (result) {\n            this.set('value', result);\n            return false;\n          }\n        }\n        // begin calculations\n        // =12*12+3\n        const expr = R.takeLast(value.length - 1, value);\n        try {\n          result = this.parser.evaluate(expr);\n        } catch (e) {\n          result = '';\n        }\n      }\n      this.set('result', result);\n      if (this.onKeyUp) {\n        const isDirty = this.get('isDirty');\n        this.onKeyUp(e, value, isDirty);\n      }\n    },\n    clearValue() {\n      this.set('value', '');\n      this.element.querySelector('input').focus();\n    },\n    submit() {\n      if (this.onSubmit) {\n        if (this.onSubmit.perform) {\n          this.onSubmit.perform(this.value);\n        } else {\n          this.onSubmit(this.value);\n        }\n      }\n    },\n    actions: {\n      input(value /*, e */) {\n        // CHECK IS NEEDED OR NOT??\n        // if (RA.isNotNilOrEmpty(this.maxValue) && RA.isNotNilOrEmpty(value) && !isNaN(Number(value))) {\n        //   if (Number(value) > Number(this.maxValue)) {\n        //     value = this.maxValue\n        //     this.set('value', value)\n        //   }\n        // }\n\n        // // CHECK IS NEEDED OR NOT??\n        // if (RA.isNotNilOrEmpty(this.minValue) && RA.isNotNilOrEmpty(value) && !isNaN(Number(value))) {\n        //   if (Number(value) < Number(this.minValue)) {\n        //     value = this.minValue\n        //     this.set('value', value)\n        //   }\n        // }\n\n        if (this.onInput) {\n          return this.onInput(...arguments);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"focusOut\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"focusOut\"), _obj), _applyDecoratedDescriptor(_obj, \"showWarning\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"showWarning\"), _obj), _applyDecoratedDescriptor(_obj, \"clearValue\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"clearValue\"), _obj), _applyDecoratedDescriptor(_obj, \"submit\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"submit\"), _obj), _obj));\n});","define(\"client/pods/components/elements/element-input/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Yj0snQOn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@isChecked\\\",\\\"@rightIconClassNames\\\",\\\"@suffix\\\",\\\"@rightIcon\\\",\\\"@isRequired\\\",\\\"@hasCheckIcon\\\",\\\"&default\\\",\\\"@disabled\\\",\\\"@rightBtnIcon\\\",\\\"@isRunning\\\",\\\"@hasRightBtn\\\",\\\"@prefix\\\",\\\"@negative\\\",\\\"@leftIcon\\\",\\\"@leftIconClassNames\\\",\\\"@context\\\",\\\"@containerClassNames\\\",\\\"@isSearchBar\\\",\\\"@classNames\\\",\\\"@step\\\",\\\"@maxlength\\\",\\\"@max\\\",\\\"@minlength\\\",\\\"@min\\\",\\\"@isDatePicker\\\",\\\"@hasClearBtn\\\"],\\\"statements\\\":[[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,17,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"\\\\n    element-input-flex-container\\\\n    flex-container-row\\\\n    flex-container--align-items-center\\\\n    u-no-wrap\\\\n    \\\",[28,\\\"if\\\",[[23,0,[\\\"hasIconsLeft\\\"]],\\\"has-icons-left\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[23,0,[\\\"hasIconsRight\\\"]],\\\"has-icons-right\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[28,\\\"or\\\",[[25,8],[23,19,[]]],null],\\\"input-with-btns\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[23,0,[\\\"hasCurrentError\\\"]],\\\"has-error\\\"],null],\\\"\\\\n    \\\",[23,18,[]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasIconsLeft\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-small\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,15,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[[23,15,[]],[23,16,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,13,[]],[23,14,[]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-input__prefix\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,13,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"              -\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/info-popup\\\",[[12,\\\"class\\\",[23,20,[]]]],[[\\\"@customBlock\\\",\\\"@clickToView\\\",\\\"@hasInfoTooltip\\\"],[true,false,[23,0,[\\\"hasCopyBtn\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-inputpvt\\\",null,[[\\\"autocomplete\\\",\\\"autofocus\\\",\\\"classNames\\\",\\\"dateZ\\\",\\\"debounceMs\\\",\\\"disabled\\\",\\\"enter\\\",\\\"id\\\",\\\"isDatePicker\\\",\\\"min\\\",\\\"minlength\\\",\\\"max\\\",\\\"maxlength\\\",\\\"name\\\",\\\"onInput\\\",\\\"onSelectDate\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"regex\\\",\\\"size\\\",\\\"step\\\",\\\"type\\\",\\\"value\\\",\\\"pattern\\\",\\\"inputmode\\\",\\\"context\\\"],[[24,[\\\"autocomplete\\\"]],[24,[\\\"autofocus\\\"]],[24,[\\\"inputPvtClassNames\\\"]],[24,[\\\"dateZ\\\"]],[24,[\\\"debounceMs\\\"]],[24,[\\\"disabled\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"submit\\\"]]],null],[24,[\\\"inputId\\\"]],[23,26,[]],[23,25,[]],[23,24,[]],[23,23,[]],[23,22,[]],[24,[\\\"name\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"input\\\"],null],[24,[\\\"onSelectDate\\\"]],[28,\\\"if\\\",[[24,[\\\"translatedPlaceholder\\\"]],[24,[\\\"translatedPlaceholder\\\"]],[23,0,[\\\"inputPlaceHolder\\\"]]],null],[24,[\\\"readonly\\\"]],[24,[\\\"regex\\\"]],[24,[\\\"size\\\"]],[23,21,[]],[24,[\\\"type\\\"]],[24,[\\\"value\\\"]],[24,[\\\"pattern\\\"]],[24,[\\\"inputmode\\\"]],[23,17,[]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"value\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/info-popup-content\\\",null,[[\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\"],[true,false,[23,1,[]],true]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],[24,[\\\"value\\\"]],false],null],-1,false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,19,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@omitGuideId\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"search-btn\\\",[23,9,[]],\\\"fas fa-search\\\",\\\"press enter or search button to search\\\",[23,0,[\\\"omitGuideId\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"submit\\\"]]],null],[23,11,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@omitGuideId\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"search-btn\\\",[23,9,[]],[23,10,[]],[23,0,[\\\"omitGuideId\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"submit\\\"]]],null],[23,11,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,8]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,8],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasIconsRight\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-small\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[[23,3,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-input__suffix\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,4,[]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[23,0,[\\\"isRequiredIcon\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[[28,\\\"if\\\",[[23,2,[]],\\\"fas fa-check\\\",\\\"fas fa-times\\\"],null],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,27,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"clear-btn\\\",\\\"fas fa-times\\\",[28,\\\"if\\\",[[23,0,[\\\"value\\\"]],false,true],null],[28,\\\"fn\\\",[[23,0,[\\\"clearValue\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDatePicker\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDatePickerVisible\\\"]]],null,{\\\"statements\\\":[[4,\\\"modals/modal-container\\\",null,[[\\\"autoPosition\\\",\\\"classNames\\\",\\\"hasModalOverlay\\\",\\\"modalContentClassNames\\\"],[true,\\\"modal-container--no-box\\\",false,\\\"u-margin-top--6\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/date-picker\\\",null,[[\\\"dateZ\\\",\\\"onSelectDate\\\"],[[24,[\\\"dateZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onSelectDate\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"allowCalculations\\\"]],[24,[\\\"result\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"helpers/info-tooltip-content\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold has-text-danger\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"result\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-input/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-inputfile/component\", [\"exports\", \"client/utils/nventor\"], function (_exports, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.TextField.extend({\n    type: 'file',\n    multiple: true,\n    attributeBindings: ['multiple'],\n    classNames: ['element-inputfile'],\n    onChange: null,\n    // external action to handle file changes\n    getFilesAsArray: false,\n    change(e) {\n      // send external action onChange\n      if (this.onChange) {\n        let files = e.target.files;\n        if (this.getFilesAsArray) {\n          files = _nventor.default.getFilesArray(files);\n        }\n        this.onChange(e, files, this);\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/element-inputfile/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ByGK9Q03\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-inputfile/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-inputpvt/component\", [\"exports\", \"ember-concurrency\", \"jquery\", \"ramda\"], function (_exports, _emberConcurrency, _jquery, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.TextField.extend({\n    attributeBindings: ['placeholder', 'disabled'],\n    classNames: ['element-inputpvt'],\n    // classNames: ['input', 'is-small'],\n    // classNameBindings: ['hasError:has-error', 'isDatePicker'],\n    classNameBindings: ['isDatePicker'],\n    autofocus: false,\n    hasError: null,\n    translate: true,\n    placeholder: '',\n    readonly: '',\n    debounceMs: 450,\n    /**\n     * input event:\n     * similar to keyUp except only triggers if input value changes\n     * (unsupported in IE < 9)\n     * @param  {[type]} e [description]\n     * @return {[type]}   [description]\n     */\n    input(e) {\n      if (this.regex) {\n        const regex = new RegExp(this.regex);\n        const regexValue = R.pipe(R.split(regex), R.join(''))(this.value);\n        Ember.set(this, 'value', regexValue);\n      }\n      this.debounceTask.perform(e);\n    },\n    debounceTask: (0, _emberConcurrency.task)(function* (e) {\n      const DEBOUNCE_MS = this.debounceMs;\n      yield (0, _emberConcurrency.timeout)(DEBOUNCE_MS);\n      if (this.onInput) {\n        this.onInput(this.value, e);\n      }\n    }).restartable(),\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.autofocus && !this.readonly && !this.disabled) {\n        (0, _jquery.default)(this.element).select();\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/element-inputpvt/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"u+P6k8zu\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-inputpvt/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-label-dropdown/component\", [\"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 = Ember.Component.extend({\n    tagName: 'span',\n    // attributeBindings: ['for'],\n    classNames: ['element-label-dropdown'],\n    classNameBindings: ['isDropdownVisible:on:off'],\n    translate: true,\n    attributeBindings: ['disabled', 'tabindex'],\n    tabindex: 0,\n    isDropdownVisible: false,\n    toggleOnIconClassName: 'fas fa-caret-up',\n    toggleOffIconClassName: 'fas fa-caret-down',\n    toggleIconClassName: Ember.computed('isDropdownVisible', function () {\n      if (this.isDropdownVisible) {\n        return this.toggleOnIconClassName;\n      }\n      return this.toggleOffIconClassName;\n    }),\n    click(e) {\n      this.submit(e);\n    },\n    keyUp(e) {\n      if (e.which === 13) {\n        this.submit(e);\n      }\n    },\n    submit() {\n      if (this.disabled !== true) {\n        // if button has toggler then toggle on/off\n        // var isToggler = this.get('isToggler');\n        // if (isToggler) {\n        //   this.toggleProperty('toggleIsOn');\n        // }\n\n        this.toggleProperty('isDropdownVisible');\n        if (this.onSubmit) {\n          this.onSubmit(this);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/element-label-dropdown/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"z5e4YZA7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[14,1],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"defaultLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[24,[\\\"defaultLabel\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"label\\\"]],[24,[\\\"defaultLabel\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"iconClassName\\\"],[[24,[\\\"toggleIconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-label-dropdown/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-label/component\", [\"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 = Ember.Component.extend({\n    tagName: 'span',\n    classNames: ['element-label'],\n    classNameBindings: ['isBold:u-bold'],\n    translate: true,\n    _documentationResource: Ember.computed('formInitData.documentationResource', 'documentationResource', function () {\n      return this.formInitData?.documentationResource || this.documentationResource;\n    }),\n    _documentationIsMinimized: Ember.computed('formInitData.documentationIsMinimized', 'documentationIsMinimized', function () {\n      return this.formInitData?.documentationIsMinimized || this.documentationIsMinimized;\n    })\n  });\n});","define(\"client/pods/components/elements/element-label/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cllBMOJj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@documentationIsLabel\\\",\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[[24,[\\\"icon\\\"]],[24,[\\\"iconClassNames\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"truncate\\\",[[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]]],[[\\\"char\\\"],[[24,[\\\"truncateChar\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"defaultLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"truncate\\\",[[28,\\\"tt\\\",[[24,[\\\"defaultLabel\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]]],[[\\\"char\\\"],[[24,[\\\"truncateChar\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"_documentationResource\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"documentation/documentation\\\",[],[[\\\"@isLabel\\\",\\\"@documentationIsMinimized\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,1,[]],[23,0,[\\\"_documentationIsMinimized\\\"]],[28,\\\"hash\\\",null,[[\\\"documentationId\\\",\\\"documentationResource\\\",\\\"context\\\"],[[24,[\\\"documentationId\\\"]],[23,0,[\\\"_documentationResource\\\"]],[24,[\\\"context\\\"]]]]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-label/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-pushbtn/component\", [\"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 = Ember.Component.extend({\n    tagName: 'span',\n    attributeBindings: ['tabindex', 'disabled'],\n    tabindex: 0,\n    classNames: ['element-pushbtn__component', 'u-btn'],\n    classNameBindings: ['disabled'],\n    submit: function (e) {\n      if (this.disabled !== true) {\n        if (this.onPreSubmit) {\n          this.onPreSubmit(e, this);\n        }\n        var isToggler = this.isToggler;\n        if (isToggler) {\n          this.toggleProperty('toggleIsOn');\n        }\n        if (this.onSubmit) {\n          if (this.isCopyBtn) {\n            Ember.set(this, 'isCopying', true);\n            setTimeout(() => {\n              Ember.set(this, 'isCopying', false);\n            }, 500);\n          }\n          this.onSubmit(e, this);\n        }\n      }\n    },\n    click: function (e) {\n      this.submit(e);\n    },\n    keyUp: function (e) {\n      if (e.which === 13) {\n        this.submit(e);\n      }\n    }\n\n    // click: function (e) {\n    //\n    //   /* jshint unused: false */\n    //\n    //   if (this.get('disabled') !== true) {\n    //     //@TODO: convert all to the new action handler\n    //     if (this.get('action')) {\n    //       this.sendAction('action', this);\n    //     } else {\n    //       this.attrs.onPush(this);\n    //     }\n    //   }\n    // },\n    // keyUp: function (e) {\n    //   if (this.get('disabled') !== true) {\n    //     if (e.which === 13) {\n    //       //@TODO: convert all to the new action handler\n    //       if (this.get('action')) {\n    //         this.sendAction('action', this);\n    //       } else {\n    //         this.attrs.onPush(this);\n    //       }\n    //     }\n    //   }\n    // }\n  });\n});","define(\"client/pods/components/elements/element-pushbtn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DzH/HIV4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[2,\\\" icon: empty span with background image \\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isCopying\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"iconTop\\\",\\\"iconBottom\\\",\\\"isStacked\\\",\\\"iconClassName\\\"],[\\\"fas fa-check\\\",[24,[\\\"iconTop\\\"]],[24,[\\\"iconBottom\\\"]],[24,[\\\"isStacked\\\"]],[24,[\\\"iconClassName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[[24,[\\\"icon\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-pushbtn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-select/component\", [\"exports\", \"ramda\", \"@glimmer/component\"], function (_exports, R, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let ElementsElementSelect = _exports.default = (_dec = Ember._action, _class = class ElementsElementSelect extends _component.default {\n    get optionLabelKey() {\n      return R.pathOr('label', ['optionLabelKey'])(this.args);\n    }\n    get optionValueKey() {\n      return R.pathOr('value', ['optionValueKey'])(this.args);\n    }\n    get translate() {\n      return R.pathOr(false, ['translate'])(this.args);\n    }\n    get hasEmpty() {\n      return R.pathOr(false, ['hasEmpty'])(this.args);\n    }\n    get _options() {\n      const options = R.pathOr([], ['options'])(this.args);\n      return R.map(option => {\n        if (R.is(Object, option)) {\n          return option;\n        }\n        return Ember.Object.create({\n          label: option,\n          value: option\n        });\n      })(options);\n    }\n    select(e) {\n      const selectedOption = R.pipe(R.pathOr([], ['target', 'selectedOptions']), R.head)(e);\n      let selected = '';\n      if (selectedOption) {\n        selected = R.propOr('', 'value')(selectedOption);\n      }\n      return this.args?.onSelect?.(selected);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/element-select/select-option/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"@glimmer/component\"], function (_exports, R, RA, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ElementsElementSelectSelectOptionComponent extends _component.default {\n    get hasTranslate() {\n      const option = this.args.option;\n      const translate = RA.isNotNilOrEmpty(R.path(['translate'])(option)) ? R.path(['translate'])(option) : RA.isNotNilOrEmpty(R.path(['_data', 'translate'])(option)) ? R.path(['_data', 'translate'])(option) : R.pathOr(true, ['translate'])(this.args);\n      return translate;\n    }\n  }\n  _exports.default = ElementsElementSelectSelectOptionComponent;\n});","define(\"client/pods/components/elements/element-select/select-option/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TM+1VJnY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@optionValueKey\\\",\\\"@option\\\",\\\"@value\\\",\\\"@optionLabelKey\\\"],\\\"statements\\\":[[7,\\\"option\\\",true],[11,\\\"value\\\",[28,\\\"get\\\",[[23,2,[]],[23,1,[]]],null]],[11,\\\"selected\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[28,\\\"get\\\",[[23,2,[]],[23,1,[]]],null],[23,3,[]]],null],\\\"selected\\\"],null]],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[[28,\\\"get\\\",[[23,2,[]],[23,4,[]]],null]],[[\\\"translate\\\"],[[23,0,[\\\"hasTranslate\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-select/select-option/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-select/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IrS6tRbp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"opt\\\",\\\"@value\\\",\\\"@selectClassNames\\\",\\\"@disabled\\\",\\\"@selectBackgroundClassNames\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"select \\\",[23,3,[]]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"select\\\",true],[11,\\\"disabled\\\",[23,4,[]]],[11,\\\"class\\\",[29,[\\\"full-width \\\",[23,5,[]]]]],[11,\\\"onchange\\\",[28,\\\"fn\\\",[[23,0,[\\\"select\\\"]]],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasEmpty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"option\\\",true],[10,\\\"value\\\",\\\"\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"please select\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"_options\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-select/select-option\\\",[],[[\\\"@option\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,1,[]],[23,0,[\\\"optionLabelKey\\\"]],[23,0,[\\\"optionValueKey\\\"]],[23,0,[\\\"translate\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-select/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-textarea/component\", [\"exports\", \"client/mixins/translate\", \"ramda\", \"ramda-adjunct\"], function (_exports, _translate, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_translate.default, {\n    validationService: Ember.inject.service('validation'),\n    // export default Ember.Component.extend(\n    //   translateMixin,\n    //   isDirtyMixin, {\n    tagName: 'span',\n    classNames: ['element-textarea'],\n    classNameBindings: ['getClassNames', 'classNames'],\n    getClassNames: Ember.computed('hasCurrentError', function () {\n      if (this?.hasCurrentError) {\n        return 'has-error';\n      }\n      return '';\n    }),\n    autofocus: false,\n    translate: true,\n    // set default rows to 2 lines\n    rows: 1,\n    maxRows: 5,\n    autoResize: true,\n    onInput: null,\n    init() {\n      // @NOTE: ember textarea becomes two lines if value=undefined\n      this._super(...arguments);\n      if (this.value == null) {\n        this.set('value', '');\n      }\n      const tab = this.tab;\n      const model = this.model;\n      this.validationService.setErrorsTracker({\n        tab,\n        model,\n        context: this.context\n      });\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.autofocus && !this.readonly && !this.disabled) {\n        setTimeout(() => {\n          try {\n            this.element.firstChild.focus();\n          } catch (e) {\n            console.error('cannot autofocus text area', e);\n          }\n        }, 400);\n      }\n    },\n    currentErrors: Ember.computed('tab', 'tab.errors.errors.[]', function () {\n      return this.tab?.errors?.errors || [];\n    }),\n    hasCurrentError: Ember.computed('currentErrors.[]', 'context', function () {\n      const currentErrors = this?.currentErrors || [];\n      const context = this?.context;\n      return R.pipe(R.find(R.anyPass([R.pathEq(['context', 'key'], context), R.pathEq(['context', 'label'], context), R.pathEq(['context', 'keyWithIndex'], context)])), RA.isNotNilOrEmpty)(currentErrors);\n    }),\n    inputPlaceHolder: Ember.computed('isRequired', function () {\n      if (this.isRequired) {\n        return this.intl.t('is required');\n      }\n      return this.translatedPlaceholder || '';\n    }),\n    actions: {\n      submit: function () {\n        // send onSubmit action\n\n        if (this.onSubmit) {\n          this.onSubmit();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/element-textarea/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"X4us9BeW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@context\\\"],\\\"statements\\\":[[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/element-textareapvt\\\",null,[[\\\"classNames\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"readonly\\\",\\\"name\\\",\\\"id\\\",\\\"type\\\",\\\"rows\\\",\\\"maxlength\\\",\\\"maxRows\\\",\\\"autoResize\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"onInput\\\",\\\"action\\\",\\\"value\\\"],[[24,[\\\"inputPvtClassNames\\\"]],[23,0,[\\\"inputPlaceHolder\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"readonly\\\"]],[24,[\\\"name\\\"]],[24,[\\\"inputId\\\"]],[24,[\\\"type\\\"]],[24,[\\\"rows\\\"]],[24,[\\\"maxlength\\\"]],[24,[\\\"maxRows\\\"]],[24,[\\\"autoResize\\\"]],[24,[\\\"autocomplete\\\"]],[24,[\\\"autofocus\\\"]],[24,[\\\"onInput\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"submit\\\"],null],[24,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-textarea/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-textareapvt/component\", [\"exports\", \"jquery\", \"ramda\", \"ramda-adjunct\"], function (_exports, _jquery, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.TextArea.extend({\n    autoResize: true,\n    translate: true,\n    attributeBindings: ['placeholder', 'disabled'],\n    classNames: ['textarea', 'is-small'],\n    autofocus: false,\n    placeholder: '',\n    rows: 1,\n    maxRows: 5,\n    onInput: null,\n    // action handler for keyUp\n    didInsertElement() {\n      this._super(...arguments);\n      const autoResize = this.autoResize;\n      if (autoResize) {\n        this.doAutoResize();\n      }\n      document.querySelector(`#${this.elementId}`).placeholder = R.replace(/\\\\n/gm, '\\n')(this.placeholder);\n    },\n    /**\n     * input event:\n     * similar to keyUp except only triggers if input value changes\n     * (unsupported in IE < 9)\n     * @param  {[type]} e [description]\n     * @return {[type]}   [description]\n     */\n    input(e) {\n      if (this.onInput) {\n        this.onInput(this.value, e);\n      }\n    },\n    resize(numberOfRows) {\n      if ((0, _jquery.default)(this.element)) {\n        (0, _jquery.default)(this.element).attr('rows', numberOfRows);\n      }\n    },\n    /**\n     * observes value and resizes textarea\n     */\n    checkResize: Ember.observer('value', function () {\n      window.setTimeout(this.doAutoResize(), 0);\n    }),\n    doAutoResize() {\n      const autoResize = this.autoResize;\n      if (autoResize) {\n        // @TODO: DOESNT WORK CORRECTLY\n        // line breaks work fine when line exceeds textarea length it alternates between correct/incorrect scrollHeight (no idea why)\n        const value = this.value;\n        if (RA.isNotNilOrEmpty(value)) {\n          // console.log('..resizing..')\n          // check how many line breaks\n          const numberOfBreaks = R.pipe(R.tryCatch(R.split(/\\r\\n|\\r|\\n/gm), R.always('1')), R.length)(value);\n\n          // check what the actual content rows are\n          const rowHeight = (0, _jquery.default)(this.element).height();\n          // var innerHeight = self.$().innerHeight();\n          let scrollHeight = (0, _jquery.default)(this.element)[0].scrollHeight;\n          if (scrollHeight < rowHeight) {\n            scrollHeight = rowHeight;\n          }\n\n          // console.log('scrollHeight')\n          // console.log(scrollHeight)\n          // console.log('rowHeight')\n          // console.log(rowHeight)\n\n          const contentRows = scrollHeight / rowHeight;\n\n          // console.log(numberOfBreaks)\n          // console.log(contentRows)\n          let numberOfRows = numberOfBreaks;\n          if (contentRows > numberOfBreaks) {\n            numberOfRows = contentRows;\n          }\n\n          // check max rows (not tested)\n          const min = this.rows;\n          const max = this.maxRows;\n          if (max && numberOfRows > max) {\n            // dont resize: number of rows > max\n          } else if (numberOfRows < min) {\n            // dont resize: number of rows < min\n          } else {\n            // resize\n            this.resize(numberOfRows);\n          }\n        } else {\n          this.resize(this.rows);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/element-textareapvt/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JI1D2wHD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-textareapvt/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-toggle-btn/component\", [\"exports\", \"client/mixins/has-dropdown\", \"ramda-adjunct\"], function (_exports, _hasDropdown, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @deprecated\n   * use ElementTogglerContainer or ElementBtn isToggler=true\n   */\n  var _default = _exports.default = Ember.Component.extend(_hasDropdown.default, {\n    tagName: 'span',\n    attributeBindings: ['disabled', 'tabindex'],\n    tabindex: 0,\n    translate: true,\n    classNames: ['element-toggle-btn-container'],\n    classNameBindings: ['isBtn:button', 'isBtn:button__toggle', 'disabled', 'toggleIsOn:on'],\n    isBtn: true,\n    iconClassName: null,\n    // defaultToggleState: null, //determine if toggleIsOn should be true/false on init\n    toggleIsOn: false,\n    // property to toggle\n    delegateToggle: false,\n    // if true, let toggleAction perform actual toggling on/off\n    confirmMsg: null,\n    hasToggleAbility: Ember.computed('hasToggle', function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true)(this.hasToggle);\n    }),\n    submit: function () {\n      if (!this.hasToggleAbility) {\n        return;\n      }\n      if (this.disabled) {\n        return;\n      }\n      let confirmed = true;\n      const confirmMsg = this.confirmMsg;\n      if (confirmMsg) {\n        confirmed = window.confirm(confirmMsg);\n      }\n      if (confirmed) {\n        if (!this.delegateToggle) {\n          this.toggleProperty('toggleIsOn');\n        }\n        if (this.onSubmit) {\n          this.onSubmit(this);\n        }\n      }\n    },\n    click: function (e) {\n      this.submit(e);\n    },\n    keyUp: function (e) {\n      if (e.which === 13) {\n        this.submit(e);\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/element-toggle-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dNex72Nq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@iconOnly\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"iconOn\\\"]],[24,[\\\"iconOff\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"toggleIsOn\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"u-v-align-auto element-icon--left\\\",[24,[\\\"iconOn\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"u-v-align-auto element-icon--left\\\",[24,[\\\"iconOff\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"prefix\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[22,\\\"prefix\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"defaultLabel\\\",\\\"translate\\\"],[[24,[\\\"label\\\"]],[24,[\\\"labelClassNames\\\"]],[24,[\\\"defaultLabel\\\"]],[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"badge\\\"]],[24,[\\\"hasBadge\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"u-v-align-auto element-btn__badge \\\",[22,\\\"badgeClassNames\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"badge\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"iconOnRight\\\"]],[24,[\\\"iconOffRight\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"toggleIsOn\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"u-v-align-auto element-icon--right\\\",[24,[\\\"iconOnRight\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"u-v-align-auto element-icon--right\\\",[24,[\\\"iconOffRight\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-toggle-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-toggle-wrapper/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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  /**\n   * A container to wrap any element into a toggle.\n   * Purpose is to add a toggle on/off icon on left / right (default),\n   * and allow element to be toggleable.\n   *\n   * this component should look exactly like the accordian-btn, but toggle logic is dictated by outer component\n   */\n  let ElementsElementToggleWrapper = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _class = class ElementsElementToggleWrapper extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"toggleOnIconClassName\", _descriptor, this);\n      _initializerDefineProperty(this, \"toggleOffIconClassName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"toggleOnIconRightClassName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"toggleOffIconRightClassName\", _descriptor4, this);\n      _defineProperty(this, \"hasToggleIcon\", RA.defaultWhen(RA.isNilOrEmpty, false, this.args.hasToggleIcon));\n      _defineProperty(this, \"hasToggleIconRight\", RA.defaultWhen(RA.isNilOrEmpty, true, this.args.hasToggleIconRight));\n    }\n    get isToggler() {\n      if (this.args.disabled) {\n        return false;\n      }\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.isToggler);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"toggleOnIconClassName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, 'fas fa-angle-down', this.args.toggleOnIconClassName);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"toggleOffIconClassName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, 'fas fa-angle-right', this.args.toggleOffIconClassName);\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"toggleOnIconRightClassName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, 'fas fa-angle-down', this.args.toggleOnIconRightClassName);\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"toggleOffIconRightClassName\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, 'fas fa-angle-right', this.args.toggleOffIconRightClassName);\n    }\n  }), _class);\n});","define(\"client/pods/components/elements/element-toggle-wrapper/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YdM1Pqjk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@toggleIsOn\\\",\\\"@disabled\\\",\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[12,\\\"class\\\",[29,[\\\"element-toggle-wrapper \\\",[28,\\\"if\\\",[[23,2,[]],\\\"disabled\\\",\\\"\\\"],null]]]],[13,3],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isToggler\\\"]],[23,0,[\\\"hasToggleIcon\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-icon\\\",[[12,\\\"class\\\",\\\"u-v-align-auto element-icon--left\\\"]],[[\\\"@icon\\\"],[[23,0,[\\\"toggleOnIconClassName\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-icon\\\",[[12,\\\"class\\\",\\\"u-v-align-auto element-icon--left\\\"]],[[\\\"@icon\\\"],[[23,0,[\\\"toggleOffIconClassName\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[14,4],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isToggler\\\"]],[23,0,[\\\"hasToggleIconRight\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-icon\\\",[[12,\\\"class\\\",\\\"u-v-align-auto element-icon--right\\\"]],[[\\\"@icon\\\"],[[23,0,[\\\"toggleOnIconRightClassName\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-icon\\\",[[12,\\\"class\\\",\\\"u-v-align-auto element-icon--right\\\"]],[[\\\"@icon\\\"],[[23,0,[\\\"toggleOffIconRightClassName\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-toggle-wrapper/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/element-toggler/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    translate: true,\n    // toggle: null,\n    toggleValue: false,\n    toggleOnValue: true,\n    toggleOffValue: false,\n    toggleUsingComponent: true,\n    hasToggleIcon: false,\n    hasToggleIconRight: false,\n    // didInsertElement () {\n    //   this._super(...arguments)\n\n    //   // const toggleValue = this.toggleValue\n    //   // if (this.debug) {\n    //   //   debugger\n    //   // }\n\n    //   // if (!R.isNil(this.toggleValue)) {\n    //   //   // @NOTE: there is a problem here when initial value of toggle is not yet set on the model and the component is rendered.\n    //   //   // toggleValue is null so toggle is always false.\n    //   //   // later when model sets toggleValue to true, the component is not updated.\n    //   //   if (toggleValue === this.toggleOnValue) {\n    //   //     this.set('toggle', true)\n    //   //   } else {\n    //   //     this.set('toggle', false)\n    //   //   }\n    //   // }\n    // },\n\n    isOn: Ember.computed('toggleValue', 'toggleOnValue', function () {\n      if (this.toggleValue === this.toggleOnValue) {\n        return true;\n      }\n      return false;\n    }),\n    isOff: Ember.computed('isOn', function () {\n      if (this.isOn) {\n        return false;\n      }\n      return true;\n    }),\n    actions: {\n      toggle() {\n        // The component may already be torn down when a queued event (e.g. a nav\n        // click right after a modal save) reaches this handler. Writing back the\n        // two-way bound `toggleValue` would propagate through a stale Glimmer\n        // reference whose parent model is undefined and crash in Ember's `_set2`.\n        if (this.isDestroyed || this.isDestroying) {\n          return;\n        }\n        const disabled = this.disabled;\n        if (disabled) {\n          return;\n        }\n        let isOn = false;\n        const toggleValue = this.toggleValue;\n        // set opposite value\n        if (toggleValue === this.toggleOnValue) {\n          isOn = false;\n          this.set('toggleValue', this.toggleOffValue);\n        } else {\n          isOn = true;\n          this.set('toggleValue', this.toggleOnValue);\n        }\n        if (this.onToggleWhenFalse && !isOn) {\n          return this.onToggleWhenFalse();\n        }\n        if (this.onToggleWhenTrue && isOn) {\n          return this.onToggleWhenTrue();\n        }\n        const onToggle = this.onToggle;\n        if (onToggle) {\n          return onToggle(isOn);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/element-toggler/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6qMpzrFE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@context\\\",\\\"@isRunning\\\",\\\"@hasToggleIcon\\\",\\\"@togglerClassNames\\\"],\\\"statements\\\":[[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",[29,[\\\"element-toggler-container \\\",[23,4,[]],\\\" \\\",[28,\\\"if\\\",[[23,3,[]],\\\"element-toggler-container__icon\\\",\\\"\\\"],null],\\\" \\\",[28,\\\"if\\\",[[24,[\\\"disabled\\\"]],\\\"disabled\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"toggle\\\"]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isOn\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"iconClassNames\\\"],[\\\"element-toggler has-text-success fas fa-toggle-on\\\",[24,[\\\"iconClassNames\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"labelOn\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\"],[[24,[\\\"labelOn\\\"]],[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"iconClassNames\\\"],[\\\"element-toggler fas fa-toggle-off\\\",[24,[\\\"iconClassNames\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"labelOff\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\"],[[24,[\\\"labelOff\\\"]],[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\",\\\"translate\\\"],[[24,[\\\"label\\\"]],[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/element-toggler/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/error-message/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ElementsErrorMessageComponent = _exports.default = (_dec = Ember.inject.service, _class = class ElementsErrorMessageComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    get message() {\n      const message = this.args.message || '';\n      const shouldNotTranslate = R.pathEq(['args', 'translate'], false)(this);\n      if (shouldNotTranslate) {\n        return message;\n      }\n      return this.intl.t(message);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/elements/error-message/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lkTM/emm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@label\\\",\\\"@hasIcon\\\"],\\\"statements\\\":[[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[\\\"has-text-danger u-icon-spacer--left\\\",\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[23,1,[]],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[1,[23,0,[\\\"message\\\"]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/error-message/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/error-wrapper/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uNPAPemW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@errorWrapperClassname\\\",\\\"@context\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"error-wrapper \\\",[23,2,[]]]]],[11,\\\"data-validation\\\",[23,3,[]]],[8],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[23,3,[]],\\\"-error error-message has-text-small has-text-danger\\\"]]],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/error-wrapper/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/info-card/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ElementsInfoCardComponent extends _component.default {}\n  _exports.default = ElementsInfoCardComponent;\n});","define(\"client/pods/components/elements/info-card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"RmNfTzey\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-info-card\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-info-card__index\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,1,[]]],null],false],[0,\\\".\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-info-card__content\\\"],[8],[0,\\\"\\\\n    \\\"],[14,2],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/info-card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/mixins/has-date-picker\", [\"exports\", \"client/mixins/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { observer } from '@ember/object'\n  var _default = _exports.default = Ember.Mixin.create(_date.default, {\n    isDatePicker: false,\n    onSelectDate: null,\n    isDatePickerVisible: false,\n    init() {\n      this._super(...arguments);\n      //   //   const self = this\n\n      //   //   // sets up pikaday, will only run after it has been rendered\n      if (this.isDatePicker) {\n        //     //     // setup pikaday with options\n        //     //     const options = {\n        //     //       // bound: false => do not bind pikaday to input focus, handle it manually\n        //     //       bound: false,\n        //     //       keyboardInput: false,\n        //     //       position: '',\n        //     //       firstDay: 1,\n        //     //       onSelect: function (/* date */) {\n        //     //         self._onSelectDate()\n        //     //       }\n        //     //     }\n        //     //     // create new pikaday instance\n        //     //     const pikaday = this.get('pikaday').setup(options)\n        //     //     pikaday.hide()\n\n        //     //     // set pikaday instance to datePicker property\n        //     //     this.set('datePicker', pikaday)\n\n        this.setupLocalDateValue();\n      }\n    },\n    // // didInsertElement () {\n    // //   this._super(...arguments)\n    // //   if (this.get('isDatePicker')) {\n    // //     this.setupDatePicker()\n    // //   }\n    // // },\n\n    // // setupDatePicker () {\n    // //   const pikaday = this.get('datePicker')\n    // //   const picker = this.$(pikaday.el)\n    // //   const container = this.$('.u-datepicker-container')\n\n    // //   container.append(picker)\n\n    // //   this.setPickerDate()\n\n    // //   const datePicker = this.get('datePicker')\n    // //   datePicker.show()\n    // // },\n\n    setupLocalDateValue() {\n      const dateZ = this.dateZ;\n      if (dateZ) {\n        const localDate = this.formatDate(dateZ);\n        this.set('value', localDate);\n      }\n    },\n    click() {\n      if (this.isDatePicker && this.readonly !== true) {\n        this.showDatePicker();\n      }\n    },\n    // dateDisplayValue: Ember.computed('value', 'dateZ', function () {\n    //\n    //   const dateZ = this.get('dateZ');\n    //\n    //   return this.formatDate(dateZ);\n    // }),\n    // dateZHasChanged: observer('isDatePicker', 'dateZ', function () {\n    //   if (this.get('isDatePicker')) {\n    //     const dateZ = this.get('dateZ')\n\n    //     const dateString = this.formatDate(dateZ)\n    //     this.set('value', dateString)\n    //   }\n    // }),\n\n    // _onSelectDate () {\n    //   // format date on select\n\n    //   // @TODO: test\n\n    //   // const input = this.$()[0];\n    //   const datePicker = this.get('datePicker')\n\n    //   // pikaday uses iso8601 YYYY/MM/DD as default\n    //   const dateString = datePicker.toString()\n\n    //   // date at local time zone\n    //   const localDate = this.formatDate(dateString)\n\n    //   // date at Zulu time zone\n    //   const dateZ = datePicker.getDate().toISOString()\n\n    //   const previousDateZ = this.get('dateZ')\n\n    //   this.set('dateZ', dateZ)\n\n    //   // hide pikaday on select\n    //   this.hideDatePicker()\n\n    //   if (this.get('onSelectDate')) {\n    //     if (dateZ !== previousDateZ) {\n    //       // trigger onSelectDate action if exists\n    //       this.get('onSelectDate')(dateZ, localDate)\n    //     }\n    //   }\n    // },\n\n    // setPickerDate (localDate) {\n    //   localDate = localDate || this.get('value')\n\n    //   const dateZ = this.getStartOfDayZ(localDate, this.get('dateFormat'))\n\n    //   const datePicker = this.get('datePicker')\n    //   datePicker.setDate(dateZ)\n    // },\n\n    // willDestroyElement () {\n    //   // tear down pikaday\n    //   if (this.get('isDatePicker')) {\n    //     this.get('datePicker').destroy()\n    //   }\n    // },\n\n    showDatePicker() {\n      this.set('isDatePickerVisible', true);\n\n      // const pikaday = this.get('datePicker')\n      // const picker = this.$(pikaday.el)\n      // const container = this.$('.u-datepicker-container')\n\n      // container.append(picker)\n\n      // this.setPickerDate()\n\n      // const datePicker = this.get('datePicker')\n      // datePicker.show()\n\n      // const dropdownContainer = this.$('.u-datepicker-container')\n      // const height = dropdownContainer.outerHeight()\n      // const width = dropdownContainer.outerWidth()\n      // const top = dropdownContainer.offset().top\n      // const right = dropdownContainer.offset().left + width\n\n      // const bottom = top + height\n      // const viewportTop = this.$(window).scrollTop()\n      // const viewportRight = this.$(window).width()\n      // const viewportBottom = viewportTop + this.$(window).height() - 35\n\n      // if (bottom > viewportBottom) {\n      //   const topDifference = bottom - viewportBottom + 40\n      //   dropdownContainer.css('marginTop', `-=${topDifference}px`)\n      // }\n\n      // if (right > viewportRight) {\n      //   const rightDifference = right - viewportRight + 40\n      //   dropdownContainer.css('marginLeft', `-=${rightDifference}px`)\n      // }\n    },\n    hideDatePicker() {\n      this.set('isDatePickerVisible', false);\n    },\n    focusIn: function (e) {\n      this._super(e);\n      if (this.isDatePicker && this.readonly !== true) {\n        // show datePicker when focusIn\n        this.showDatePicker();\n      }\n    },\n    focusOut: function (e) {\n      this._super(e);\n      if (this.isDatePicker && this.readonly !== true) {\n        this.hideDatePicker();\n      }\n    },\n    keyDown(e) {\n      this._super(...arguments);\n      if (this.isDatePicker) {\n        const keyCode = e.keyCode || e.which;\n\n        // disable arrow keys\n        if (keyCode >= 37 && keyCode <= 40) {\n          e.stopPropagation();\n        }\n        if (keyCode === 13) {\n          e.stopPropagation();\n          this.hideDatePicker();\n          // this.setPickerDate()\n        }\n      }\n    },\n    actions: {\n      onSelectDate() {\n        this.setupLocalDateValue();\n        if (this.onSelectDate) {\n          this.onSelectDate();\n        }\n        this.hideDatePicker();\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/print-btn/component\", [\"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 = Ember.Component.extend({\n    tagName: 'span',\n    tabindex: 0,\n    translate: true,\n    classNames: ['element-btn-with-modal-dialog'],\n    iconClassName: '',\n    modalDialogIsVisible: false,\n    hasPrintBtn: true,\n    hasPrintIcon: true,\n    tooltipLabel: 'print',\n    isPrinted: false,\n    init() {\n      this._super(...arguments);\n      if (this.hasPrintIcon) {\n        this.set('iconClassName', 'fas fa-print');\n      }\n    },\n    _modalDialogTitle: Ember.computed('modalDialogTitle', 'label', function () {\n      return this.modalDialogTitle || this.label;\n    }),\n    actions: {\n      submit() {\n        this.set('alreadyClosed', false);\n        this.set('isPrinted', false);\n        if (this.onSubmit) {\n          this.onSubmit();\n        }\n      },\n      closeDialog() {\n        if (this?.isDestroyed === false) {\n          this.set('modalDialogIsVisible', false);\n          if (this.onClose) {\n            if (!this.alreadyClosed) {\n              this.set('alreadyClosed', true);\n              return this.onClose(this.isPrinted);\n            }\n          }\n        }\n      },\n      onPrintDialog() {\n        if (this.onPrint) {\n          return this.onPrint(...arguments);\n        }\n        this.set('isPrinted', true);\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/print-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qZZ4Y2JQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onPrintDialogAction\\\",\\\"&default\\\",\\\"@modalDialogTranslate\\\"],\\\"statements\\\":[[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"iconClassName\\\",\\\"tabindex\\\",\\\"disabled\\\",\\\"icon\\\",\\\"prefix\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"defaultLabel\\\",\\\"translate\\\",\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleOnIconRightClassName\\\",\\\"toggleOffIconRightClassName\\\",\\\"hasModalDialog\\\",\\\"modalDialogIsVisible\\\",\\\"onSubmit\\\"],[[24,[\\\"btnClassNames\\\"]],[24,[\\\"iconClassName\\\"]],[24,[\\\"tabindex\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"prefix\\\"]],[24,[\\\"label\\\"]],[24,[\\\"tooltipLabel\\\"]],[24,[\\\"defaultLabel\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"isToggler\\\"]],true,[24,[\\\"toggleOnIconClassName\\\"]],[24,[\\\"toggleOffIconClassName\\\"]],true,[24,[\\\"modalDialogIsVisible\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"submit\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@translate\\\",\\\"@onClose\\\",\\\"@modalDialogIsVisible\\\"],[[23,0,[\\\"_modalDialogTitle\\\"]],[23,3,[]],[28,\\\"action\\\",[[23,0,[]],\\\"closeDialog\\\"],null],[22,\\\"modalDialogIsVisible\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-content-container\\\",null,[[\\\"hasPrintBtn\\\",\\\"hasTotalDue\\\",\\\"showTotalDue\\\",\\\"onPrintDialog\\\",\\\"model\\\",\\\"onClose\\\",\\\"showCancelBtn\\\"],[[24,[\\\"hasPrintBtn\\\"]],[24,[\\\"hasTotalDue\\\"]],[24,[\\\"showTotalDue\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onPrintDialog\\\"],null],[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closeDialog\\\"],null],[24,[\\\"showCancelBtn\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/print-content-container/print-content\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,2,[[28,\\\"action\\\",[[23,0,[]],\\\"closeDialog\\\"],null],[23,1,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/print-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/print-content-container/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    dispatchService: Ember.inject.service('dispatch'),\n    constantsService: Ember.inject.service('constants'),\n    tagName: 'div',\n    classNames: ['print-content-container'],\n    hasPrintBtn: true,\n    hasTotalDue: false,\n    batchStatus: null,\n    didInsertElement() {\n      this._super(...arguments);\n      this.setPrintContainer();\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        window.$('#print-container').html('');\n      }\n    },\n    setPrintContainer() {\n      const html = this.$().find('.print-content:visible').html();\n      window.$('#print-container').html(html);\n    },\n    allowRequestNewWaybill: Ember.computed('lastPrintTimestamp', function () {\n      const isHCT = R.pathEq(['model', '_data', 'transporterExtension'], 'hct')(this);\n      if (isHCT) {\n        return true;\n      }\n      return false;\n    }),\n    hasWaybill: Ember.computed('lastPrintTimestamp', function () {\n      const hasWaybill = R.pipe(R.path(['model', '_data', 'waybill']), RA.isNotNilOrEmpty)(this);\n      if (hasWaybill) {\n        return true;\n      }\n      return false;\n    }),\n    generateWaybillsTask: (0, _emberConcurrency.task)(function* ({\n      isNewWaybill = false,\n      isUpdate = false\n    } = {}) {\n      const documents = [this.model];\n      const response = yield this.dispatchService.generateAndDownloadWaybillsTask.perform({\n        component: this,\n        documents,\n        transporterExtension: this.constantsService.transporterExtensions.hct,\n        isNewWaybill,\n        isUpdate\n      });\n      this.set('batchStatus', response);\n      const lastPrintTimestamp = new Date().getTime();\n      this.set('lastPrintTimestamp', lastPrintTimestamp);\n      return response;\n    }),\n    resetBatchStatus() {\n      if (this.isDestroying || this.isDestroyed) {\n        return;\n      }\n      this.set('batchStatus', null);\n    },\n    actions: {\n      printDialog() {\n        this.setPrintContainer();\n        Ember.run.scheduleOnce('afterRender', this, async function () {\n          if (this.onPrintDialog) {\n            this.onPrintDialog();\n          }\n          window.print();\n        });\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"resetBatchStatus\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"resetBatchStatus\"), _obj), _obj));\n});","define(\"client/pods/components/elements/print-content-container/print-content/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div'\n  });\n});","define(\"client/pods/components/elements/print-content-container/print-content/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wh0dpphS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"print-content\\\"],[8],[0,\\\"\\\\n  \\\"],[14,1],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/print-content-container/print-content/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/print-content-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fCpRMuIQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onClose\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"batchStatus\\\",\\\"unsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"documents/batch/status\\\",[],[[\\\"@batch\\\",\\\"@resetStatus\\\"],[[23,0,[\\\"batchStatus\\\"]],[23,0,[\\\"resetBatchStatus\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[14,2,[[28,\\\"action\\\",[[23,0,[]],\\\"printDialog\\\"],null]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasPrintBtn\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasTotalDue\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"label\\\",\\\"toggleValue\\\"],[\\\"show total due\\\",[24,[\\\"showTotalDue\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterWaybillRecord\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@isRunning\\\",\\\"@typeToDelete\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"generateWaybillsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatchService\\\",\\\"hctRemoveWaybillTask\\\",\\\"isRunning\\\"]]],null],true,\\\"\\\",\\\"fas fa-trash\\\",[28,\\\"perform\\\",[[23,0,[\\\"dispatchService\\\",\\\"hctRemoveWaybillTask\\\"]],[28,\\\"hash\\\",null,[[\\\"documents\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showCancelBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowRequestNewWaybill\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"disabled\\\",\\\"tooltipLabel\\\",\\\"icon\\\",\\\"onSubmit\\\"],[[28,\\\"if\\\",[[23,0,[\\\"hasWaybill\\\"]],false,true],null],\\\"print\\\",\\\"fas fa-print\\\",[28,\\\"action\\\",[[23,0,[]],\\\"printDialog\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"allowUpdateWaybillData\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sync-alt\\\",\\\"update waybills\\\",[23,0,[\\\"generateWaybillsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"generateWaybillsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"isUpdate\\\"],[true]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"far fa-sticky-note\\\",\\\"request waybills\\\",[23,0,[\\\"generateWaybillsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"generateWaybillsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"isNewWaybill\\\"],[true]]]],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"tooltipLabel\\\",\\\"icon\\\",\\\"onSubmit\\\"],[\\\"print\\\",\\\"fas fa-print\\\",[28,\\\"action\\\",[[23,0,[]],\\\"printDialog\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/print-content-container/template.hbs\"\n    }\n  });\n});","// import Component from '@ember/component'\n\n// export default Component.extend({\n//   tagName: 'div',\n//   translate: true,\n//   attributeBindings: ['tabindex', 'zIndex:z-index'],\n//   closeOnOverlayClick: true,\n//   tabindex: 0,\n//   zIndex: 50,\n//   classNames: ['screen-overlay'],\n//   focusIn () {\n//     if (this.get('closeOnOverlayClick')) {\n//       this.hide()\n//     }\n//   },\n\n//   hide () {\n//     this.set('toggle', false)\n//   }\n// })\ndefine(\"client/pods/components/elements/screen-overlay/component\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/components/elements/screen-overlay/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uTp0buYc\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/screen-overlay/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/slider/component\", [\"exports\", \"ramda\", \"@glimmer/component\", \"tiny-slider/src/tiny-slider\"], function (_exports, R, _component, _tinySlider) {\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;\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 ElementsSliderComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _class = class ElementsSliderComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"carousels\", _descriptor, this);\n      _initializerDefineProperty(this, \"originalSection\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tinySlider\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor4, this);\n    }\n    sliderBtnsColorClassName(sliderBtnsColor) {\n      if (sliderBtnsColor === 'lightColor') {\n        return 'light-color';\n      }\n      if (sliderBtnsColor === 'darkColor') {\n        return 'dark-color';\n      }\n      return '';\n    }\n    updateButtonStyle(btn, btnClassesNames, icon, controlsSize) {\n      if (!btn) {\n        return;\n      }\n      btn.textContent = '';\n      R.forEach(className => {\n        btn.classList.add(className);\n      })(btnClassesNames);\n      const span = document.createElement('span');\n      span.className = 'icon';\n      const i = document.createElement('i');\n      const iconClassNamesStr = `${icon} size-${controlsSize}`;\n      const iconClassNamesArr = R.split(' ')(iconClassNamesStr);\n      i.classList.add(...iconClassNamesArr);\n      span.appendChild(i);\n      btn.appendChild(span);\n    }\n    get customStyle() {\n      const styles = [];\n      const tnsNavColor = this.args.options.navStyle.color;\n      if (tnsNavColor) {\n        styles.push(`.tns-nav-item { background-color: ${tnsNavColor}; }`);\n      }\n      const tnsNavActiveColor = this.args.options.navStyle.activeColor;\n      if (tnsNavActiveColor) {\n        styles.push(`.tns-nav-item.tns-nav-active { background-color: ${tnsNavActiveColor}; }`);\n      } else {\n        styles.push('.tns-nav-item.tns-nav-active { filter: brightness(0.5); }');\n      }\n      return `\n      <style>\n        ${styles.join('\\n')}\n      </style>\n    `;\n    }\n    setProductImage(product, img) {\n      img.src = product.getDefaultImageUrl('/-/scale_crop/200x200/smart/');\n    }\n    setup() {\n      const options = this.args.options || {};\n      const defaultOptions = {\n        controls: true,\n        autoplay: false,\n        container: '.tiny-slider-container',\n        gutter: 50,\n        items: 1,\n        mouseDrag: true,\n        slideBy: 1,\n        swipeAngle: false,\n        nav: false\n        // navPosition: 'bottom'\n      };\n      const tnsOptions = R.mergeRight(defaultOptions, options);\n      this.tinySlider = (0, _tinySlider.tns)(tnsOptions);\n      if (tnsOptions.controls) {\n        this.updateBtn(options);\n      }\n      if (tnsOptions.nav) {\n        this.updateNav(options);\n      }\n    }\n    updateBtn({\n      controlsStyle,\n      controlsPosition,\n      controlsSize\n    } = {}) {\n      if (this.tinySlider) {\n        const slider = this.tinySlider.getInfo();\n        const btnClassesNames = ['slider-button'];\n        const nextBtn = slider.nextButton;\n        nextBtn.style.color = controlsStyle.color;\n        this.updateButtonStyle(nextBtn, btnClassesNames, 'fas fa-angle-right', controlsSize);\n        const prevBtn = slider.prevButton;\n        prevBtn.style.color = controlsStyle.color;\n        this.updateButtonStyle(prevBtn, btnClassesNames, 'fas fa-angle-left', controlsSize);\n        let positionClassName = 'tns-controls-container--inside-img';\n        if (controlsPosition === 'outsideImage') {\n          positionClassName = 'tns-controls-container--outside-img';\n        }\n        /** @type {HTMLDivElement} */\n        const parentWrapper = slider.container.closest('.tns-ovh');\n        parentWrapper.classList.add(positionClassName);\n      }\n    }\n    updateNav({\n      navItemStyle,\n      navPosition,\n      navItemSize\n    } = {}) {\n      if (this.tinySlider) {\n        const slider = this.tinySlider.getInfo();\n        let positionClassName;\n        if (navPosition === 'insideImage') {\n          positionClassName = 'tns-nav-container--inside-img';\n        }\n        if (navPosition === 'outsideImage') {\n          positionClassName = 'tns-nav-container--outside-img';\n        }\n        const navContainerClassNames = ['flex-container-row', 'flex-container--justify-center', `tns-nav-container--${navItemSize}`, positionClassName];\n        const navContainer = slider.navContainer;\n        navContainer.classList.add(...navContainerClassNames);\n        const navItemClassNames = ['tns-nav-item', `tns-nav-item--${navItemSize}`];\n        if (navItemStyle === 'navItemDot') {\n          navItemClassNames.push('tns-nav-item--dot');\n        }\n        if (navItemStyle === 'navItemLine') {\n          navItemClassNames.push('tns-nav-item--line');\n        }\n        const navItems = slider.navItems;\n        R.forEach(navItem => {\n          navItem.textContent = '';\n          navItem.classList.add(...navItemClassNames);\n        })(navItems);\n      }\n    }\n    addTappable(el, link) {\n      const tappable = 'u-tappable';\n      const alreadyTappable = el.classList.toString().includes(tappable);\n      const isLinkEmpty = R.isEmpty(link.toString());\n      if (alreadyTappable && isLinkEmpty) {\n        el.classList.remove(tappable);\n      } else if (!isLinkEmpty) {\n        el.classList.add(tappable);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"carousels\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"originalSection\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tinySlider\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setProductImage\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setProductImage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateBtn\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"updateBtn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateNav\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"updateNav\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addTappable\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"addTappable\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/slider/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tP8XVAB4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"image\\\",\\\"product\\\",\\\"index\\\",\\\"@images\\\",\\\"@onRemove\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@dragDetail\\\",\\\"@onDragOver\\\",\\\"@onDragStart\\\",\\\"@disableRemoveProduct\\\",\\\"@products\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-wrapper\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card slider__products-card\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@model\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[[23,2,[]],[23,6,[]],[28,\\\"fn\\\",[[23,7,[]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,9,[]],[23,2,[]],[23,8,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-image\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@onDragStart\\\",\\\"@data\\\"],[true,[28,\\\"action\\\",[[23,0,[]],[23,10,[]],[23,2,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,2,[\\\"index\\\"]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowUploads\\\",\\\"@model\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\",\\\"@filesGalleryRowClassNames\\\",\\\"@galleryItemClassNames\\\"],[[22,\\\"tab\\\"],false,false,false,[23,2,[]],true,\\\"products\\\",[23,2,[\\\"_data\\\",\\\"itemKey\\\"]],\\\"/-/scale_crop/200x200/smart/\\\",\\\"form-section__outer-container--no-margin\\\",\\\"files__gallery-item--no-underline\\\"]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-content gjs__products-content\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[8],[1,[23,2,[\\\"_data\\\",\\\"item\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"priceFinal\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"button\\\",true],[10,\\\"data-gjs-type\\\",\\\"bigordr-button\\\"],[10,\\\"class\\\",\\\"button is-fullwidth is-danger is-rounded\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"add to cart\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-medium bigordr-slider-image-delete-btn\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,5,[]],[23,2,[]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"customStyle\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"tiny-slider-container\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"figure\\\",false],[12,\\\"class\\\",\\\"image\\\"],[3,\\\"did-update\\\",[[23,0,[\\\"addTappable\\\"]],[23,1,[\\\"_data\\\",\\\"link\\\"]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[23,1,[\\\"getSrcWithRatio\\\"]]],[10,\\\"alt\\\",\\\"none\\\"],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"link\\\"]],[23,1,[\\\"_data\\\",\\\"buttonlabel\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"a\\\",true],[10,\\\"class\\\",\\\"button slider-button-bottom-right\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"buttonlabel\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/slider/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/status-badge/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-extension\"], function (_exports, _component, R, R_) {\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 ElementsStatusBadgeComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tooltipTranslate\", R.isNil(this.args.tooltipTranslate) ? this.args.tooltipTranslate : true);\n      _defineProperty(this, \"defaultStatus\", this.args.defaultStatus ?? '');\n    }\n    get statusModel() {\n      const list = this.args.list || [];\n      const status = this.args.status ?? this.defaultStatus;\n      const statusPath = this.args.statusPath || '_data.value';\n      const statusModel = R.find(R_.dotPathEq(statusPath, status))(list);\n      return statusModel;\n    }\n    get statusBadgeClassNames() {\n      if (this.args.statusBadgeClassNames) {\n        return this.args.statusBadgeClassNames;\n      }\n      const statusModel = this.statusModel;\n      const statusClassNamePath = this.args.statusClassNamePath || '_data.classNames';\n      return R_.dotPath(statusClassNamePath)(statusModel) || '';\n    }\n    get statusLabel() {\n      if (this.args.statusLabel) {\n        return this.args.statusLabel;\n      }\n      const statusLabelPath = this.args.statusLabelPath || '_data.label';\n      const statusModel = this.statusModel;\n      return R_.dotPath(statusLabelPath)(statusModel) || '';\n    }\n  }\n  _exports.default = ElementsStatusBadgeComponent;\n});","define(\"client/pods/components/elements/status-badge/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PAZpEx0T\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"&default\\\"],\\\"statements\\\":[[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__status-badge tag \\\",[23,0,[\\\"statusBadgeClassNames\\\"]]]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\"],[true,false,[23,1,[]],[23,0,[\\\"statusLabel\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[14,2,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[23,0,[\\\"statusBadgeClassNames\\\"]]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"statusLabel\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"tooltipTranslate\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/status-badge/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/status-tag/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-extension\"], function (_exports, _component, R, R_) {\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 ElementsStatusBadgeComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"translate\", R.isNil(this.args.translate) ? this.args.translate : true);\n    }\n    get statusModel() {\n      const list = this.args.list || [];\n      const status = this.args.status;\n      const statusPath = this.args.statusPath || '_data.value';\n      const statusModel = R.find(R_.dotPathEq(statusPath, status))(list);\n      return statusModel;\n    }\n    get statusBadgeClassNames() {\n      if (this.args.statusBadgeClassNames) {\n        return this.args.statusBadgeClassNames;\n      }\n      const statusModel = this.statusModel;\n      const statusClassNamePath = this.args.statusClassNamePath || '_data.textClassNames' || '_data.classNames';\n      return R_.dotPath(statusClassNamePath)(statusModel) || '';\n    }\n    get statusLabel() {\n      if (this.args.statusLabel) {\n        return this.args.statusLabel;\n      }\n      const statusLabelPath = this.args.statusLabelPath || '_data.label';\n      const statusModel = this.statusModel;\n      return R_.dotPath(statusLabelPath)(statusModel) || '';\n    }\n  }\n  _exports.default = ElementsStatusBadgeComponent;\n});","define(\"client/pods/components/elements/status-tag/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZDFpEGUm\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,0,[\\\"statusBadgeClassNames\\\"]]]]],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"statusLabel\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/status-tag/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/steps-bar/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['steps-bar__container'],\n    classNameBindings: ['isVertical:is-vertical:is-horizontal'],\n    hasCounter: true\n  });\n});","define(\"client/pods/components/elements/steps-bar/step-node/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    selectedIsEmptyWhen: null,\n    allowSameStepSubmit: false,\n    hasCounter: true,\n    name: Ember.computed('step', 'stepLabelParam', function () {\n      const stepLabelParam = this.stepLabelParam;\n      return this.get(`step.${stepLabelParam}`);\n    }),\n    isSelected: Ember.computed('selected', 'step', 'stepValueParam', 'selectedIsEmptyWhen', function () {\n      const selected = this.selected;\n      // const step = this.get('step')\n      const stepValueParam = this.stepValueParam;\n      const selectedIsEmptyWhen = this.selectedIsEmptyWhen;\n      const stepValue = this.get(`step.${stepValueParam}`);\n      if (stepValue === selected) {\n        return true;\n      }\n      if (selectedIsEmptyWhen !== null && selectedIsEmptyWhen === stepValue && selected === '') {\n        return true;\n      }\n      return false;\n    }),\n    allowSubmit: Ember.computed('allowSameStepSubmit', 'isSelected', function () {\n      let allowSubmit = true;\n      const allowSameStepSubmit = this.allowSameStepSubmit;\n      if (!allowSameStepSubmit && this.isSelected) {\n        allowSubmit = false;\n      }\n      return allowSubmit;\n    }),\n    notAllowSubmit: Ember.computed('allowSubmit', function () {\n      return !this.allowSubmit;\n    }),\n    stepNo: Ember.computed('index', function () {\n      const index = this.index || 0;\n      return index + 1;\n    }),\n    actions: {\n      submit(/* step */\n      ) {\n        const allowSubmit = this.allowSubmit;\n        const customStepLabel = this.customStepLabel;\n        if (!customStepLabel) {\n          if (!this.disabled && allowSubmit) {\n            this.onSubmit(...arguments);\n          }\n        }\n      },\n      customSubmit(/* step */\n      ) {\n        const allowSubmit = this.allowSubmit;\n        if (!this.disabled && allowSubmit) {\n          this.onSubmit(...arguments);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/elements/steps-bar/step-node/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"RbZE6xo5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[\\\"step-node \\\",[28,\\\"if\\\",[[24,[\\\"isSelected\\\"]],\\\"active\\\"],null],\\\" \\\",[28,\\\"if\\\",[[24,[\\\"disabled\\\"]],\\\"disabled\\\"],null],\\\" \\\",[28,\\\"if\\\",[[24,[\\\"notAllowSubmit\\\"]],\\\"not-allowed\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"submit\\\",[24,[\\\"step\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasCounter\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"customStepLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"step-node__counter\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"customSubmit\\\",[24,[\\\"step\\\"]]]],[8],[0,\\\"\\\\n        \\\"],[1,[22,\\\"stepNo\\\"],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"step-node__counter\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[22,\\\"stepNo\\\"],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"customStepLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,1,[[28,\\\"action\\\",[[23,0,[]],\\\"customSubmit\\\",[24,[\\\"step\\\"]]],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"step-node__label\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"name\\\"]]],[[\\\"translate\\\"],[[24,[\\\"step\\\",\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/steps-bar/step-node/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/steps-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"feM6WSVE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"step\\\",\\\"index\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"steps-bar\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"customBar\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"steps\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/steps-bar/step-node\\\",null,[[\\\"disabled\\\",\\\"step\\\",\\\"index\\\",\\\"hasCounter\\\",\\\"selected\\\",\\\"stepValueParam\\\",\\\"stepLabelParam\\\",\\\"selectedIsEmptyWhen\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,1,[]],[23,2,[]],[24,[\\\"hasCounter\\\"]],[24,[\\\"selected\\\"]],[24,[\\\"stepValueParam\\\"]],[24,[\\\"stepLabelParam\\\"]],[24,[\\\"selectedIsEmptyWhen\\\"]],[24,[\\\"onSubmit\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/steps-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/stories-modal-dialog/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _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 StoriesModalDialogComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _class = class StoriesModalDialogComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasCloseBtn\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasPauseBtn\", _descriptor2, this);\n      _initializerDefineProperty(this, \"closeOnOverlayClick\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isSliderModalVisible\", _descriptor4, this);\n      _initializerDefineProperty(this, \"mouseDownTime\", _descriptor5, this);\n      _initializerDefineProperty(this, \"clickTime\", _descriptor6, this);\n    }\n    close() {\n      if (this.args.onModalClose) {\n        return this.args.onModalClose();\n      }\n    }\n    pause(e) {\n      const modalCard = e.currentTarget.closest('.modal-card');\n      const modalCardBody = modalCard.querySelector('.modal-card-body');\n      if (!modalCard || !modalCardBody) {\n        return;\n      }\n      if (this.args.isPaused) {\n        modalCardBody.classList.remove('paused-animation');\n        return this.args.mouseUp();\n      }\n      modalCardBody.classList.add('paused-animation');\n      return this.args.mouseDown();\n    }\n    mouseDown(e) {\n      this.handleDownEvent(e);\n    }\n    mouseUp(e) {\n      this.handleUpEvent(e);\n    }\n    touchStart(e) {\n      e.preventDefault();\n      this.handleDownEvent(e.changedTouches[0]);\n    }\n    touchEnd(e) {\n      this.handleUpEvent(e.changedTouches[0]);\n    }\n    handleDownEvent(e) {\n      const currentTarget = e.currentTarget || e.target;\n      currentTarget.closest('.modal-card-body').classList.add('paused-animation');\n      this.mouseDownTime = new Date().getTime();\n      if (this.args.mouseDown) {\n        return this.args.mouseDown();\n      }\n    }\n    handleUpEvent(e) {\n      if (this.mouseDownTime) {\n        const mouseUpTime = new Date().getTime();\n        const timeDifference = mouseUpTime - this.mouseDownTime;\n        const story = this.args.story;\n        const storyModalCard = document.querySelector('.story-modal-card');\n        const modalWidth = storyModalCard.offsetWidth;\n        const clickPosition = e.clientX - storyModalCard.getBoundingClientRect().left;\n        this.clickTime = timeDifference;\n        if (this.clickTime < 200 && clickPosition < modalWidth / 2) {\n          this.OnClickToBackSlide(story);\n        }\n        if (this.clickTime < 200 && clickPosition > modalWidth / 2) {\n          this.OnClickToNextSlide(story);\n        }\n        this.mouseDownTime = null; // Reset\n      }\n      const currentTarget = e.currentTarget || e.target;\n      currentTarget.closest('.modal-card-body').classList.remove('paused-animation');\n      if (this.args.mouseUp) {\n        return this.args.mouseUp();\n      }\n    }\n    OnClickToBackSlide(story) {\n      if (this.args.toBackSlide) {\n        return this.args.toBackSlide(story);\n      }\n    }\n    OnClickToNextSlide(story) {\n      if (this.args.toNextSlide) {\n        return this.args.toNextSlide(story);\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasCloseBtn\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasPauseBtn\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"closeOnOverlayClick\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isSliderModalVisible\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"mouseDownTime\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"clickTime\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"close\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"pause\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"pause\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"mouseDown\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"mouseDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"mouseUp\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"mouseUp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"touchStart\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"touchStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"touchEnd\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"touchEnd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleDownEvent\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"handleDownEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleUpEvent\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"handleUpEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"OnClickToBackSlide\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"OnClickToBackSlide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"OnClickToNextSlide\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"OnClickToNextSlide\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/stories-modal-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"T2pyqyq3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isPaused\\\",\\\"@modalBackgroundClass\\\",\\\"@modalCardClass\\\",\\\"@isImgLoaded\\\",\\\"&default\\\",\\\"@isSliderModalVisible\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal cart-content-modal is-active\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"closeOnOverlayClick\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"is-tappable modal-background \\\",[23,2,[]]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"close\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"is-tappable modal-background \\\",[23,2,[]]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"modal-card cart-modal-card \\\",[23,3,[]]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"story-modal-header\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"story-modal-message\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"tap the right side to skip\\\"],null],false],[0,\\\" \\\\n        \\\"],[9],[0,\\\"\\\\n      \\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasPauseBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"pause-btn\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"pause\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-play fa-lg\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-pause fa-lg\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"hasCloseBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"close-btn delete flex-item--align-self-end\\\"],[12,\\\"aria-label\\\",\\\"close\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"close\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"section\\\",false],[12,\\\"class\\\",\\\"modal-card-body is-tappable\\\"],[3,\\\"on\\\",[\\\"touchstart\\\",[23,0,[\\\"touchStart\\\"]]]],[3,\\\"on\\\",[\\\"touchend\\\",[23,0,[\\\"touchEnd\\\"]]]],[3,\\\"on\\\",[\\\"mousedown\\\",[23,0,[\\\"mouseDown\\\"]]]],[3,\\\"on\\\",[\\\"mouseup\\\",[23,0,[\\\"mouseUp\\\"]]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"time-progress-bar\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"fill-in\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"story-modal-content\\\"],[8],[0,\\\"\\\\n          \\\"],[14,5],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/stories-modal-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/elements/tag-btn/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 ElementsTagBtnComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class ElementsTagBtnComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasTruncated\", _descriptor, this);\n    }\n    didInsert(element) {\n      // info-tooltip\n      const labelContainer = element.querySelector('.tag__label');\n      if (RA.isNilOrEmpty(labelContainer)) {\n        return;\n      }\n      const labelWidth = labelContainer.scrollWidth || 0;\n      const containerWidth = element.offsetWidth || 0;\n      if (labelWidth > containerWidth) {\n        this.hasTruncated = true;\n      }\n    }\n    submit(model) {\n      if (this.args.onSubmit) {\n        return this.args.onSubmit(model);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasTruncated\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submit\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"submit\"), _class.prototype), _class);\n});","define(\"client/pods/components/elements/tag-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eB4zPlx1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@isRunning\\\",\\\"@onRemove\\\",\\\"@label\\\",\\\"&attrs\\\",\\\"@onSubmit\\\",\\\"@truncateClassName\\\",\\\"@labelClassNames\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"element-tag-btn button\\\"],[13,5],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"didInsert\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",[29,[\\\"element-tag-btn__label \\\",[28,\\\"if\\\",[[23,8,[]],[23,8,[]],\\\"\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,7,[]],[23,7,[]],\\\"\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,6,[]],\\\"tag__label--pointer\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"submit\\\"]],[23,9,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasTruncated\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@hasInfoTooltip\\\",\\\"@clickToView\\\",\\\"@label\\\",\\\"@translate\\\"],[true,false,[23,4,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[23,4,[]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,4,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/elements/tag-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/campaigns-editor/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    contactsService: Ember.inject.service('contacts'),\n    tagName: 'div',\n    classNames: ['col-container'],\n    disabled: false,\n    translate: true,\n    defaultProductType: null,\n    defaultProductStatus: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['emails/campaigns/editStatuses']);\n      const groupsFilters = this.search.setupFilters({\n        adapterName: 'contacts/groups/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'name',\n            direction: 'ASC'\n          }],\n          status: [this.constants.status.active]\n        }\n      });\n      this.set('groupsFilters', groupsFilters);\n      const websitesFilters = this.search.setupFilters({\n        adapterName: 'websites/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'name',\n            direction: 'ASC'\n          }],\n          status: [this.constants.status.active]\n        }\n      });\n      this.set('websitesFilters', websitesFilters);\n    },\n    loadContactsGroup(model, selected) {\n      model.setData('contactsGroupKey', selected?._data?._key);\n    },\n    unloadContactsGroup(model) {\n      model.setData('contactsGroupKey', '');\n    },\n    loadWebsite(model, selected) {\n      model.setData('websiteKey', selected?._data?._key);\n    },\n    unloadWebsite(model) {\n      model.setData('websiteKey', '');\n    },\n    actions: {\n      autoSetUrl(value) {\n        const model = this.model;\n        const url = R.pipe(R.trim, R.toLower, R.replace(/\\\\/g, ''), R.replace(/\\s/g, '-'))(value);\n        model.setData('url', url);\n      }\n\n      // replaceTemplate (onCloseDialogAction, template) {\n      //   const model = this.get('model')\n      //   model.setData('template', template)\n      //   onCloseDialogAction()\n      // },\n      // insertTemplate (onCloseDialogAction, template) {\n      //   const model = this.get('model')\n      //   const currentTemplate = model.getData('template')\n      //   let newTemplate = ''\n      //   if (currentTemplate) {\n      //     newTemplate = `${currentTemplate}<br>`\n      //   }\n      //   newTemplate = `${newTemplate} ${template}`\n\n      //   model.setData('template', newTemplate)\n      //   onCloseDialogAction()\n      // }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"loadContactsGroup\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"loadContactsGroup\"), _obj), _applyDecoratedDescriptor(_obj, \"unloadContactsGroup\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"unloadContactsGroup\"), _obj), _applyDecoratedDescriptor(_obj, \"loadWebsite\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"loadWebsite\"), _obj), _applyDecoratedDescriptor(_obj, \"unloadWebsite\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"unloadWebsite\"), _obj), _obj));\n});","define(\"client/pods/components/emails/campaigns/campaigns-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"4rv+xOqW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDash\\\",\\\"@saveTask\\\",\\\"@model\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title blogs-display__name\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-header-2\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"edit\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-header-3 u-desc u-desc--mini\\\"],[8],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"new\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar images-sidebar__container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"status\\\",[24,[\\\"errors\\\"]],\\\"status\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"model\\\",\\\"statusClass\\\"]],true,[24,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-campaigns-editStatuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"name\\\",[24,[\\\"errors\\\"]],\\\"name\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"description\\\",[24,[\\\"errors\\\"]],\\\"description\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"subject\\\",[24,[\\\"errors\\\"]],\\\"subject\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"subject\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"label\\\"],[\\\"send from website\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@placeholder\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@value\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"span\\\",false,[23,0,[\\\"websitesFilters\\\",\\\"results\\\"]],\\\"websites\\\",\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",\\\"_data._key\\\",[23,3,[\\\"_data\\\",\\\"websiteKey\\\"]],[23,3,[\\\"_data\\\",\\\"website\\\"]],[23,4,[]],[23,4,[]],[23,0,[\\\"websitesFilters\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"query\\\",\\\"filters\\\",\\\"component\\\"],[\\\"websites\\\",[23,3,[\\\"_data\\\",\\\"website\\\"]],[23,0,[\\\"websitesFilters\\\"]],[23,0,[]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"loadWebsite\\\"]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadWebsite\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@placeholder\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@value\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"span\\\",false,[23,0,[\\\"groupsFilters\\\",\\\"results\\\"]],\\\"contacts_groups\\\",\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",\\\"_data._key\\\",[23,3,[\\\"_data\\\",\\\"contactsGroupKey\\\"]],[23,3,[\\\"_data\\\",\\\"contactsGroup\\\"]],[23,4,[]],[23,4,[]],[23,0,[\\\"groupsFilters\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"query\\\",\\\"filters\\\",\\\"component\\\"],[\\\"contacts/groups\\\",[23,3,[\\\"_data\\\",\\\"contactsGroup\\\"]],[23,0,[\\\"groupsFilters\\\"]],[23,0,[]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"loadContactsGroup\\\"]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadContactsGroup\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"formInputClassNames\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"form__input--full-width\\\",\\\"template\\\",[24,[\\\"errors\\\"]],\\\"template\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[22,\\\"tab\\\"],true,true,[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"template\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isVariantChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,0,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"emails/campaigns\\\",[23,3,[]],true,[23,1,[]]]]]],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"disabled\\\"]],[28,\\\"perform\\\",[[23,2,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"emails/campaigns\\\",[24,[\\\"model\\\"]],[23,1,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"comments/comments-modal-btnmanager\\\",[],[[\\\"@tab\\\",\\\"@type\\\",\\\"@isPreview\\\",\\\"@master\\\",\\\"@metaData\\\"],[[22,\\\"tab\\\"],\\\"emailsCampaigns\\\",true,[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"emailsCampaigns\\\",\\\"emailsCampaignsKey\\\",\\\"name\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-back\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"onDash\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/campaigns/campaigns-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/panels-activity/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: 'emails/campaigns/filters'\n      });\n      this.set('filters', filters);\n      this.fetchTask.perform();\n    },\n    fetchTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.filters;\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'emails/campaigns',\n        filters\n      });\n      this.set('results', results);\n    })\n\n    // listByTask: task(function * ({ adapterName, appendPath, filters, match, date, dateStart, dateEnd, query = '', resultsProperty, resultsToggle } = {}, onHideDropdown) {\n    //   filters.setData('page', 1)\n\n    //   if (match) {\n    //     filters.setData('match', match)\n    //   }\n\n    //   if (date) {\n    //     filters.setData('match', ['timestampZ'])\n    //     query = date\n    //   }\n\n    //   if (dateStart) {\n    //     filters.setData('dateStart', dateStart)\n    //   }\n\n    //   if (dateEnd) {\n    //     filters.setData('dateEnd', dateEnd)\n    //   }\n\n    //   const searchSettings = {\n    //     adapterName,\n    //     appendPath,\n    //     resultsProperty,\n    //     resultsToggle,\n    //     query,\n    //     filters\n    //   }\n\n    //   const results = yield this.searchRecordsTask.perform(searchSettings)\n\n    //   if (onHideDropdown) {\n    //     onHideDropdown()\n    //   }\n\n    //   return results\n    // }),\n\n    // didInsertElement () {\n    //   this._super(...arguments)\n\n    //   const filters = this.filters\n    //   const adapterName = this.adapterName\n    //   this.fetchDefaultDataTask.perform({ adapterName, filters, resultsProperty: 'results' })\n    // }\n\n    // actions: {\n\n    //   setupResendEmail (email) {\n    //     const dirty = this.setupDirty({\n    //       adapterName: 'emails',\n    //       model: email\n    //     })\n    //     this.set('dirty', dirty)\n    //   },\n\n    //   clearResendEmail () {\n    //     this.set('dirty', null)\n    //   },\n\n    //   async resendEmail (dirty, onCloseDialogAction) {\n    //     await this.get('createRecordTask').perform({\n    //       adapterName: 'emails',\n    //       appendPath: '/resend',\n    //       model: dirty\n    //     })\n\n    //     onCloseDialogAction()\n\n    //     const results = await this.get('listByTask').perform({ resultsToggle: '' })\n    //     this.set('results', results)\n    //   },\n\n    //   cancelResendEmail (onCloseDialogAction) {\n    //     onCloseDialogAction()\n    //     this.set('dirty', null)\n    //   }\n    // }\n  });\n});","define(\"client/pods/components/emails/campaigns/panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ncSHlfwE\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"detailsRowComponent\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onEdit\\\",\\\"tableViewOptions\\\"],[\\\"emails/campaigns/table-view/detail-row\\\",[24,[\\\"results\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"searchAdvancedTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"tableViewOptions\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/campaigns/panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/panels-display/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      if (!this.model) {\n        const name = this.name || '';\n        const data = {\n          name,\n          status: this.get('constants.status.active')\n        };\n        const model = this.crud.setupNewRecord({\n          adapterName: 'emails/campaigns',\n          data\n        });\n        this.set('model', model);\n      }\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eIgrIHwS\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"emails/campaigns/campaigns-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"onDash\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"tab\\\",\\\"onCancel\\\"],[[24,[\\\"model\\\"]],[24,[\\\"errors\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[24,[\\\"onDash\\\"]],false,false,[24,[\\\"tab\\\"]],[24,[\\\"onCancel\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/campaigns/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/panels-edit/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const model = this.get('tab.model');\n      const dirty = this.crud.setupDirty({\n        adapterName: 'emails/campaigns',\n        model\n      });\n      this.set('dirty', dirty);\n      this.set('model', model);\n      this.tabsManager.setHeader(this.tabParent, dirty.getData('name'));\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yE+20nZP\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"emails/campaigns/campaigns-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"onDash\\\",\\\"onEdit\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"tab\\\",\\\"onCancel\\\"],[[24,[\\\"dirty\\\"]],[24,[\\\"errors\\\"]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[24,[\\\"onDash\\\"]],[24,[\\\"onEdit\\\"]],false,true,[24,[\\\"tab\\\"]],[24,[\\\"onCancel\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/campaigns/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/panels-new/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      if (!this.model) {\n        const name = this.name || '';\n        const data = {\n          name,\n          status: this.get('constants.status.active')\n        };\n        const model = this.crud.setupNewRecord({\n          adapterName: 'emails/campaigns',\n          data\n        });\n        this.set('model', model);\n      }\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Caeo8M3y\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"emails/campaigns/campaigns-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"onDash\\\",\\\"isNew\\\",\\\"tab\\\",\\\"onCancel\\\"],[[24,[\\\"model\\\"]],[24,[\\\"errors\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[24,[\\\"onDash\\\"]],true,[24,[\\\"tab\\\"]],[24,[\\\"onCancel\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/campaigns/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/send-modal-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\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 EmailsCampaignsSendModalBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('contacts'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._action, _dec11 = Ember._action, _class = class EmailsCampaignsSendModalBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dataContactsGroupsFilters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isCompilingMessage\", _descriptor0, this);\n      _initializerDefineProperty(this, \"allowReSend\", _descriptor1, this);\n      const model = this.args.model;\n      const dataContactsGroupsFilters = this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'name',\n            direction: 'ASC'\n          }],\n          websiteKey: model?._data?.websiteKey,\n          emailsCampaignsKey: model?._data?._key,\n          emailsCampaignsExcludeSent: false,\n          resultsProperty: 'results',\n          status: [this.constants.status.active]\n        }\n      });\n      this.dataContactsGroupsFilters = dataContactsGroupsFilters;\n    }\n    *sendEmailsTask(onCloseDialogAction) {\n      const msg = this.intl.t('send all emails');\n      if (window.confirm(msg)) {\n        const resp = yield this.crud.ajaxCallTask.perform('POST', {\n          adapterName: 'emails/campaigns',\n          appendPath: '/send',\n          model: this.args.model\n        });\n        const sent = parseInt(resp?.sent) || 0;\n        onCloseDialogAction();\n        const queuedMsg = this.intl.t('queued');\n        window.alert(`${queuedMsg}: ` + sent);\n      }\n    }\n    *sendTestEmailTask(onCloseDialogAction) {\n      const resp = yield this.crud.ajaxCallTask.perform('POST', {\n        adapterName: 'emails/campaigns',\n        appendPath: '/send/test',\n        model: this.args.model\n      });\n      const sent = parseInt(resp?.sent) || 0;\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      window.alert('sent: ' + sent + ' emails.');\n    }\n    loadEmailData() {\n      this.isCompilingMessage = false;\n      const model = this.args.model;\n      const emailFromAddress = model.getData('emailFromAddress') || this.settings.settingsModel?._data?.emailFromAddress;\n      const emailFromName = model.getData('emailFromName') || this.settings.settingsModel?._data?.emailFromName;\n      const emailSignature = model.getData('emailSignature') || this.settings.settingsModel?._data?.emailSignature;\n      const testEmailToName = model.getData('testEmailToName') || this.settings.settingsModel?._data?.emailFromName;\n      const testEmailToAddress = model.getData('testEmailToAddress') || this.settings.settingsModel?._data?.emailFromAddress;\n      model.setData('emailFromName', emailFromName);\n      model.setData('emailFromAddress', emailFromAddress);\n      model.setData('emailSignature', emailSignature);\n      model.setData('testEmailToName', testEmailToName);\n      model.setData('testEmailToAddress', testEmailToAddress);\n    }\n    next() {\n      this.isCompilingMessage = true;\n    }\n    get allowSendEmails() {\n      const enabled = this.settings.getProp('emails_mailgun.enabled');\n      if (!enabled) {\n        return false;\n      }\n      const apiKey = this.settings.getProp('emails_mailgun.apiKey');\n      if (!apiKey) {\n        return false;\n      }\n      const domain = this.settings.getProp('emails_mailgun.domain');\n      if (!domain) {\n        return false;\n      }\n      const toSendCount = parseInt(this?.dataContactsGroupsFilters?.fullCount) || 0;\n      if (toSendCount <= 0) {\n        return false;\n      }\n      return true;\n    }\n    get disableSend() {\n      if (!this.allowSendEmails) {\n        return true;\n      }\n      const model = this.args.model;\n      if (model?._data?.hasSent && this.allowReSend) {\n        return false;\n      }\n      if (!model?._data?.hasSent) {\n        return false;\n      }\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dataContactsGroupsFilters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"isCompilingMessage\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"allowReSend\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"sendEmailsTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"sendEmailsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sendTestEmailTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"sendTestEmailTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadEmailData\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"loadEmailData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"next\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"next\"), _class.prototype), _class);\n});","define(\"client/pods/components/emails/campaigns/send-modal-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TWoq9Sn8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"result\\\",\\\"timestampZ\\\",\\\"rewardData\\\",\\\"@model\\\",\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\",\\\"badge\\\",\\\"hasBadge\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"label\\\"],[\\\"fas fa-envelope\\\",[23,6,[\\\"_data\\\",\\\"name\\\"]],false,[23,6,[\\\"_data\\\",\\\"sent\\\"]],[23,6,[\\\"_data\\\",\\\"hasSent\\\"]],[23,0,[\\\"contactsService\\\",\\\"searchContactsByGroupsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"contactsService\\\",\\\"searchContactsByGroupsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"groupKey\\\",\\\"hasEmailOnly\\\",\\\"component\\\",\\\"onAfter\\\"],[[23,0,[\\\"dataContactsGroupsFilters\\\"]],[23,6,[\\\"_data\\\",\\\"contactsGroupKey\\\"]],true,[23,0,[]],[28,\\\"fn\\\",[[23,0,[\\\"loadEmailData\\\"]]],null]]]]],null],\\\"send email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"contactsService\\\",\\\"searchContactsByGroupsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isCompilingMessage\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"email subject\\\",[24,[\\\"errors\\\"]],\\\"subject\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"translatedPlaceholder\\\",\\\"value\\\"],[[23,0,[\\\"disableSend\\\"]],[24,[\\\"translatedPlaceholder\\\"]],[23,6,[\\\"_data\\\",\\\"subject\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"email message\\\",[24,[\\\"errors\\\"]],\\\"template\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,7,[]],true,true,[23,0,[\\\"disableSend\\\"]],[23,6,[\\\"_data\\\",\\\"template\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"email signature\\\",[24,[\\\"errors\\\"]],\\\"emailSignature\\\",\\\"campaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,7,[]],true,true,[23,0,[\\\"disableSend\\\"]],[23,6,[\\\"_data\\\",\\\"emailSignature\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"from email name\\\",[24,[\\\"errors\\\"]],\\\"emailFromName\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,0,[\\\"disableSend\\\"]],[23,6,[\\\"_data\\\",\\\"emailFromName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"from email address\\\",[24,[\\\"errors\\\"]],\\\"emailFromAddress\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,0,[\\\"disableSend\\\"]],[23,6,[\\\"_data\\\",\\\"emailFromAddress\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"dataContactsGroupsFilters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"dataContactsGroupsFilters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,3,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,3,[\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"rewardsData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[23,5,[\\\"memberLevel\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"shop\\\",\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[23,3,[\\\"_data\\\",\\\"shop\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"emailsSent\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"already sent\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,4,[]]],null],false],[0,\\\" \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-check-circle\\\",\\\"has-text-success\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"filters\\\",\\\"list\\\",\\\"showPageNumbers\\\",\\\"component\\\",\\\"onPaginationTask\\\"],[[23,0,[\\\"dataContactsGroupsFilters\\\"]],[23,0,[\\\"dataContactsGroupsFilters\\\",\\\"results\\\"]],true,[23,0,[]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,6,[]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n  \\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"contactsService\\\",\\\"searchContactsByGroupsTask\\\",\\\"isRunning\\\"]]],null],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dataContactsGroupsFilters\\\",\\\"fullCount\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isCompilingMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"label\\\"],[\\\"fas fa-envelope\\\",[23,6,[\\\"_data\\\",\\\"name\\\"]],false,[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[23,6,[\\\"isSendDisabled\\\"]],[23,0,[\\\"disableSend\\\"]]],null],[23,0,[\\\"contactsService\\\",\\\"searchContactsByGroupsTask\\\",\\\"isRunning\\\"]],\\\"send test email\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"email_test_to_name\\\",[24,[\\\"errors\\\"]],\\\"testEmailToName\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"testEmailToName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"email_test_to_address\\\",[24,[\\\"errors\\\"]],\\\"testEmailToAddress\\\",\\\"emailsCampaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[23,6,[\\\"_data\\\",\\\"testEmailToAddress\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"contactsService\\\",\\\"searchContactsByGroupsTask\\\",\\\"isRunning\\\"]]],null],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"hasBadge\\\",\\\"badge\\\",\\\"icon\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"send test email\\\",[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[23,6,[\\\"isSendDisabled\\\"]],[23,0,[\\\"disableSend\\\"]]],null],true,1,\\\"fas fa-mail-bulk\\\",[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"sendTestEmailTask\\\"]],false],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"hasBadge\\\",\\\"badge\\\",\\\"icon\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"send emails\\\",[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[23,6,[\\\"isSendDisabled\\\"]],[23,0,[\\\"disableSend\\\"]]],null],true,[23,0,[\\\"dataContactsGroupsFilters\\\",\\\"fullCount\\\"]],\\\"fas fa-mail-bulk\\\",[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"sendEmailsTask\\\"]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"allowReSend\\\"]],[23,0,[\\\"disableSend\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"resend\\\",[23,0,[\\\"allowReSend\\\"]],true,false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"icon\\\",\\\"hasBadge\\\",\\\"badge\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"next\\\",[28,\\\"or\\\",[[24,[\\\"disabled\\\"]]],null],\\\"fas fa-arrow-circle-right\\\",true,[23,0,[\\\"dataContactsGroupsFilters\\\",\\\"fullCount\\\"]],[23,0,[\\\"contactsService\\\",\\\"searchContactsByGroupsTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"next\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/campaigns/send-modal-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/tab-container/component\", [\"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 = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    // listAdapters: [],\n    // results: [],\n    resultsToggle: false,\n    query: '',\n    init() {\n      this.crud.addLists(this, ['emails/lists/campaigns/menu']);\n      this._super(...arguments);\n      this.activity();\n    },\n    activity() {\n      // create dashboard\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'emails/campaigns/panels-activity'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    new() {\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'emails/campaigns/panels-new'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    edit(model) {\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'emails/campaigns/panels-edit',\n        model\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    // scheduled () {\n    //   // create dashboard\n    //   const tab = this.tab\n\n    //   const subTabOptions = {\n    //     component: 'emails/panels-scheduled'\n    //   }\n\n    //   this.tabsManager.replaceSubTab(tab, subTabOptions)\n    // },\n\n    actions: {\n      activity() {\n        this.activity();\n      },\n      edit() {\n        this.edit(...arguments);\n      },\n      cancel() {\n        this.activity();\n      },\n      scheduled() {\n        this.scheduled();\n      }\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D7iUMiVo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"emails-campaigns\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-lists-campaigns-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"onCancel\\\",\\\"onEdit\\\",\\\"onDash\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"activity\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"   \\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/campaigns/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/table-view/detail-row/component\", [\"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 = Ember.Component.extend({\n    contactsService: Ember.inject.service('contacts'),\n    tagName: '',\n    showEmail: false,\n    init() {\n      this.crud.addLists(this, ['emails/campaigns/editStatuses']);\n      this._super(...arguments);\n      if (this.isFilters) {\n        const campaignFilters = this.search.setupFilters({\n          adapterName: 'channels/shop/campaigns/filters'\n        });\n        this.set('campaignFilters', campaignFilters);\n      }\n    },\n    actions: {\n      loadShopSource(shop) {\n        const filters = this.filters;\n        filters.setData('sourceKey', shop.getData('_key'));\n      },\n      unloadShopSource() {\n        const filters = this.filters;\n        filters.setData('sourceKey', '');\n      },\n      setupResendEmail(email) {\n        const dirty = this.crud.setupDirty({\n          adapterName: 'emails',\n          model: email\n        });\n        this.set('dirty', dirty);\n      },\n      clearResendEmail() {\n        this.set('dirty', null);\n      },\n      async resendEmail(dirty, onCloseDialogAction) {\n        await this.crud.createRecordTask.perform({\n          adapterName: 'emails',\n          appendPath: '/resend',\n          model: dirty\n        });\n        onCloseDialogAction();\n        const filters = this.filters;\n        this.onReloadSearchRecordsTask.perform({\n          filters\n        });\n      },\n      cancelResendEmail(onCloseDialogAction) {\n        onCloseDialogAction();\n        this.set('dirty', null);\n      },\n      showEmail() {\n        this.set('showEmail', true);\n      },\n      closeEmail() {\n        this.set('showEmail', false);\n      }\n    }\n  });\n});","define(\"client/pods/components/emails/campaigns/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LQJY2mir\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"name\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"groups\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"mailing_groups\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"subject\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"subject\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"timestampZ\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"name\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"groups\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"subject\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"detail\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[24,[\\\"detail\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",false],[12,\\\"class\\\",[29,[\\\"table-view__detail-row--alt \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[24,[\\\"rowIndex\\\"]]],null],\\\"even\\\",\\\"odd\\\"],null],\\\" \\\",[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]],\\\"no-border-bottom\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"showEmail\\\"]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"contactsGroup\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"subject\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"model\\\",\\\"statusClass\\\"]],true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-campaigns-editStatuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"\\\",[28,\\\"fn\\\",[[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"emails/campaigns/send-modal-btn\\\",[],[[\\\"@model\\\",\\\"@tab\\\"],[[22,\\\"model\\\"],[22,\\\"tab\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/campaigns/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/dispatch-batch/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency\", \"client/utils/nventor\"], function (_exports, R, RA, _emberConcurrency, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    settingsService: Ember.inject.service('settings'),\n    dateService: Ember.inject.service('date'),\n    dispatch: Ember.inject.service(),\n    search: Ember.inject.service(),\n    tagName: '',\n    useDefaultDispatchedEmailMessage: true,\n    emailMessage: '',\n    emailSubject: '',\n    useDefaultsDispatchedEmailEstimatedTransporterArrivalDate: true,\n    isCompilingMessage: false,\n    tabsChanged: 0,\n    init() {\n      this.set('emailMessage', '');\n      this.crud.addLists(this, ['emails/lists/toSendTabs']);\n      this._super(...arguments);\n      if (this?.useDefaultsDispatchedEmailEstimatedTransporterArrivalDate) {\n        this.set('dispatchedEmailHasEstimateTransporterArrivalDate', this.settings.getProp('dispatchedEmailHasEstimateTransporterArrivalDate'));\n        this.set('dispatchedEmailEstimateTransporterArrivalDaysFromDispatch', this.settings.getProp('dispatchedEmailEstimateTransporterArrivalDaysFromDispatch'));\n        this.set('dispatchedEmailTransporterArrivalDateSkipWeekends', this.settings.getProp('dispatchedEmailTransporterArrivalDateSkipWeekends'));\n      }\n      const previewPageSize = this.dispatch.processEmailPreviewPageSize;\n      const previewFilters = this.search.setupFilters({\n        adapterName: 'documents/dispatch/filters',\n        rememberMe: false,\n        defaultFiltersData: {\n          page: 1,\n          count: previewPageSize\n        }\n      });\n      this.set('previewFilters', previewFilters);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      let initialPanel = this.tabsManager.getLoadInstructions(this.tab);\n      if (!initialPanel?._data?.value) {\n        initialPanel = this.get('crud.lists.emails-lists-toSendTabs').get('firstObject');\n      }\n      this.set('currentSubTabOptions', initialPanel);\n      this.tabsManager.displaySubPanel(this, initialPanel);\n      this.set('tabsChanged', Math.random());\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const data = {\n        useDefaultDispatchedEmailMessage: this.useDefaultDispatchedEmailMessage,\n        dispatchDate: this.dispatchDate,\n        dispatchDateZ: this.dispatchDateZ,\n        docKey: this.docKey,\n        docType: this.docType,\n        docName: this.docName,\n        dispatchProcess: this.dispatchProcess,\n        transporterExtension: this?.tab?.transporterExtension || '',\n        waybillStatus: this?.tab?.waybillStatus || '',\n        waybillLastStatus: this?.tab?.waybillLastStatus || '',\n        daysOld: this?.tab?.daysOld || ''\n      };\n      this.getToSendEmailsTask.perform(data);\n    },\n    headerTabs: Ember.computed('crud.lists.emails-lists-toSendTabs.[]', 'allEmailsData.{toSend.count,alreadySent.count,cannotSend.count}', function () {\n      const allEmailsData = this.allEmailsData || {};\n      const list = this.crud.lists['emails-lists-toSendTabs'] || [];\n      return R.pipe(R.map(header => {\n        const headerValue = header._data.value;\n        const hasData = R.pipe(R.path([headerValue]), _nventor.default.isNilOrEmpty, R.not)(allEmailsData);\n        if (!hasData) {\n          return false;\n        }\n        const badge = R.path([headerValue, 'count'])(allEmailsData) || 0;\n        header.setData('badge', badge);\n        return header;\n      }), R.reject(R.equals(false)))(list);\n    }),\n    panelData: Ember.computed('allEmailsData.toSend.count', 'allEmailsData.cannotSend.count', 'currentSubTabOptions', 'tabsChanged', function () {\n      const subTabOptions = this.currentSubTabOptions || {};\n      if (!_nventor.default.isNilOrEmpty(subTabOptions)) {\n        const value = subTabOptions.getData('value');\n        const allEmailsData = this.allEmailsData || {};\n        const data = R.prop(value)(allEmailsData) || {};\n        return data;\n      }\n      return {};\n    }),\n    hasProcessEmailSelection: Ember.computed('hasSelected.[]', function () {\n      return RA.isNotNilOrEmpty(this.hasSelected);\n    }),\n    hasCustomMessage: Ember.computed('isDispatched', 'useDefaultDispatchedEmailMessage', function () {\n      if (!this.isDispatched) {\n        return true;\n      }\n      if (this.isDispatched && !this.useDefaultDispatchedEmailMessage) {\n        return true;\n      }\n      return false;\n    }),\n    allowSetEstimatedDeliveryDate: Ember.computed('transporterArrivalDateZ', 'isDispatched', function () {\n      const isDispatched = R.propEq('isDispatched', true)(this);\n      const hasTransporterArrivalDateZ = R.pipe(R.prop('transporterArrivalDateZ'), RA.isNotNilOrEmpty)(this);\n      return isDispatched && !hasTransporterArrivalDateZ;\n    }),\n    estimatedArrivalDate: Ember.computed('useDefaultsDispatchedEmailEstimatedTransporterArrivalDate', 'dispatchedEmailEstimateTransporterArrivalDaysFromDispatch', 'dispatchedEmailTransporterArrivalDateSkipWeekends', function () {\n      const useDefaultsDispatchedEmailEstimatedTransporterArrivalDate = this.useDefaultsDispatchedEmailEstimatedTransporterArrivalDate;\n      let noOfDays = this.dispatchedEmailEstimateTransporterArrivalDaysFromDispatch;\n      let skipWeekends = this.dispatchedEmailTransporterArrivalDateSkipWeekends;\n      if (useDefaultsDispatchedEmailEstimatedTransporterArrivalDate) {\n        noOfDays = this.settings.getProp('dispatchedEmailEstimateTransporterArrivalDaysFromDispatch');\n        skipWeekends = this.settings.getProp('dispatchedEmailTransporterArrivalDateSkipWeekends');\n      }\n      const today = this.dateService.getToday();\n\n      // should be the same with api: services/emails/dispatched\n      let arrivalDate;\n      // must use if else, if not arrival date will be added twice\n      if (skipWeekends) {\n        arrivalDate = this.dateService.addBusinessDays({\n          date: today,\n          duration: noOfDays\n        });\n      } else {\n        arrivalDate = today.add(noOfDays, 'days');\n      }\n      return this.dateService.formatDate(arrivalDate, 'YYYY-MM-DD');\n    }),\n    /**\n     * Page total for the process-email preview pager. To Send and Cannot Send differ.\n     * @param {Object} allEmailsData\n     * @param {string} tabValue\n     */\n    setProcessEmailPreviewPageCount(allEmailsData, tabValue) {\n      const activeTab = tabValue || 'toSend';\n      const activeCount = Number(allEmailsData?.[activeTab]?.count) || 0;\n      this.previewFilters.set('fullCount', activeCount);\n    },\n    displayPanel(allEmailsData, subTabOptions) {\n      this.set('currentSubTabOptions', subTabOptions);\n      this.set('tabsChanged', Math.random());\n      const tab = this.tab;\n      this.tabsManager.displaySubPanelNew(tab, subTabOptions);\n    },\n    selectProcessEmailPreviewTab(allEmailsData, subTabOptions) {\n      this.displayPanel(allEmailsData, subTabOptions);\n      const tabValue = subTabOptions.getData('value');\n      this.setProcessEmailPreviewPageCount(allEmailsData, tabValue);\n    },\n    getToSendEmailsTask: (0, _emberConcurrency.task)(function* (data) {\n      if (this.isDispatched) {\n        const dispatchedEmails = yield this.onGetToSendEmailsTask.perform(data);\n        this.set('allEmailsData', dispatchedEmails);\n        return;\n      }\n      yield this.loadProcessEmailPreviewTask.perform();\n    }),\n    /**\n     * Checked rows, or one page of the current dispatch list.\n     */\n    loadProcessEmailPreviewTask: (0, _emberConcurrency.task)(function* () {\n      const selectedRows = this.hasSelected || [];\n      if (RA.isNotNilOrEmpty(selectedRows)) {\n        const rowsWithEmail = R.filter(row => this.dispatch.hasProcessEmailAddress(row))(selectedRows);\n        const rowsWithoutEmail = R.reject(row => this.dispatch.hasProcessEmailAddress(row))(selectedRows);\n        const previewRows = R.map(row => this.dispatch.readProcessEmailPreview(row))(rowsWithEmail);\n        const cannotSendRows = R.map(row => this.dispatch.readProcessEmailPreview(row))(rowsWithoutEmail);\n        const allEmailsData = {\n          isBatch: true,\n          toSend: {\n            count: R.length(previewRows),\n            data: previewRows\n          }\n        };\n        if (RA.isNotNilOrEmpty(cannotSendRows)) {\n          allEmailsData.cannotSend = {\n            count: R.length(cannotSendRows),\n            data: cannotSendRows\n          };\n        }\n        this.set('allEmailsData', allEmailsData);\n        return;\n      }\n      const previewPage = Number(this.previewFilters?.getData?.('page')) || 1;\n      const previewPageSize = Number(this.previewFilters?.getData?.('count')) || this.dispatch.processEmailPreviewPageSize;\n      const filters = this.dispatch.buildProcessEmailPreviewFilters({\n        filters: this.filters,\n        dispatchProcess: this.dispatchProcess,\n        period: this.period,\n        page: previewPage,\n        count: previewPageSize\n      });\n      const preview = yield this.dispatch.previewProcessEmailsTask.perform(filters);\n      const previewRows = preview?.toSend?.data || [];\n      const previewCount = Number(preview?.toSend?.count) || 0;\n      const allEmailsData = {\n        isBatch: true,\n        toSend: {\n          count: previewCount,\n          data: previewRows\n        }\n      };\n      const cannotSendCount = Number(preview?.cannotSend?.count) || 0;\n      if (cannotSendCount > 0) {\n        allEmailsData.cannotSend = {\n          count: cannotSendCount,\n          data: preview?.cannotSend?.data || []\n        };\n      }\n      this.set('allEmailsData', allEmailsData);\n      const activeTab = this.currentSubTabOptions?.getData?.('value') || 'toSend';\n      this.setProcessEmailPreviewPageCount(allEmailsData, activeTab);\n    }),\n    paginateProcessEmailPreviewTask: (0, _emberConcurrency.task)(function* () {\n      yield this.getToSendEmailsTask.perform();\n    }),\n    next() {\n      this.set('isCompilingMessage', true);\n    },\n    toggleCustomMessage() {\n      const emailSubject = this.intl.t('email_dispatched_default_subject');\n      this.set('translatedPlaceholder', emailSubject);\n      if (this.useDefaultDispatchedEmailMessage) {\n        this.set('emailSubject', '');\n      } else {\n        this.set('emailSubject', emailSubject);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"displayPanel\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"displayPanel\"), _obj), _applyDecoratedDescriptor(_obj, \"selectProcessEmailPreviewTab\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"selectProcessEmailPreviewTab\"), _obj), _applyDecoratedDescriptor(_obj, \"next\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"next\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleCustomMessage\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"toggleCustomMessage\"), _obj), _obj));\n});","define(\"client/pods/components/emails/dispatch-batch/emails-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"o5sb0fLM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"emailData\\\",\\\"sentData\\\",\\\"@panelData\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"new-table-view new-table-view--data u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        #\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"arrival date\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[23,1,[\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"person\\\"]]],null,{\\\"statements\\\":[[0,\\\"            (\\\"],[1,[23,1,[\\\"person\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[23,1,[\\\"email\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[23,1,[\\\"docNo\\\"]],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"docName\\\"]]],null]],null],false],[0,\\\")\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"dispatchProcessLabel\\\"]]],[[\\\"translate\\\"],[[23,1,[\\\"dispatchProcessLabelTranslate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"emailsSent\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"timestampZ\\\"]]],null],false],[0,\\\": \\\"],[1,[23,2,[\\\"subject\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"transporterArrivalDateZ\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/no-data\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/dispatch-batch/emails-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/dispatch-batch/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9aVgAPei\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"formInitData\\\",\\\"@hasSelected\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@errors\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"panel-grid \\\",[28,\\\"if\\\",[[24,[\\\"isBatch\\\"]],\\\"panel-grid--has-header\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isBatch\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,4,[]],[23,4,[\\\"subTabs\\\"]],[23,6,[]],[23,0,[\\\"headerTabs\\\"]],[28,\\\"fn\\\",[[28,\\\"if\\\",[[23,0,[\\\"isDispatched\\\"]],[23,0,[\\\"displayPanel\\\"]],[23,0,[\\\"selectProcessEmailPreviewTab\\\"]]],null],[24,[\\\"allEmailsData\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"getToSendEmailsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isCompilingMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\"],[\\\"dispatch\\\",true,[23,4,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDispatched\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@isBasic\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],true,\\\"\\\",\\\"dispatchEmailsSettings_group\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"formInitData\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"label\\\",\\\"toggleValue\\\",\\\"onToggle\\\"],[[24,[\\\"isReadonly\\\"]],\\\"use default message in settings\\\",[24,[\\\"useDefaultDispatchedEmailMessage\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleCustomMessage\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasCustomMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@isBasic\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],true,\\\"\\\",\\\"dispatchEmail_group\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"formInitData\\\"],[\\\"email subject\\\",\\\"emailSubject\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"translatedPlaceholder\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"translatedPlaceholder\\\"]],[24,[\\\"emailSubject\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"formInitData\\\"],[\\\"email message\\\",\\\"message\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[22,\\\"tab\\\"],true,true,[22,\\\"isReadonly\\\"],[22,\\\"emailMessage\\\"],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowSetEstimatedDeliveryDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@isBasic\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],true,\\\"\\\",\\\"dispatchDeliverySettings_group\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"formInitData\\\",\\\"dispatch\\\"]],[[\\\"@context\\\",\\\"@label\\\"],[\\\"useDefaultsDispatchedEmailEstimatedTransporterArrivalDate\\\",\\\"use defaults estimated delivery date in settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,0,[\\\"useDefaultsDispatchedEmailEstimatedTransporterArrivalDate\\\"]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"formInitData\\\",\\\"dispatch\\\"]],[[\\\"@context\\\",\\\"@label\\\",\\\"@errors\\\"],[\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\",\\\"show estimated delivery date\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"useDefaultsDispatchedEmailEstimatedTransporterArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,0,[\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"and\\\",[[23,0,[\\\"useDefaultsDispatchedEmailEstimatedTransporterArrivalDate\\\"]],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\"]]],null],[28,\\\"and\\\",[[28,\\\"not\\\",[[23,0,[\\\"useDefaultsDispatchedEmailEstimatedTransporterArrivalDate\\\"]]],null],[23,0,[\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"formInitData\\\",\\\"dispatch\\\"]],[[\\\"@context\\\",\\\"@label\\\",\\\"@errors\\\"],[\\\"dispatchedEmailEstimateTransporterArrivalDaysFromDispatch\\\",\\\"number of days after dispatch date\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"useDefaultsDispatchedEmailEstimatedTransporterArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailEstimateTransporterArrivalDaysFromDispatch\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,0,[\\\"dispatchedEmailEstimateTransporterArrivalDaysFromDispatch\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"formInitData\\\",\\\"dispatch\\\"]],[[\\\"@context\\\",\\\"@label\\\",\\\"@errors\\\"],[\\\"dispatchedEmailTransporterArrivalDateSkipWeekends\\\",\\\"skip weekends\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"useDefaultsDispatchedEmailEstimatedTransporterArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"dispatchedEmailTransporterArrivalDateSkipWeekends\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,0,[\\\"dispatchedEmailTransporterArrivalDateSkipWeekends\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"estimated delivery date\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"estimatedArrivalDate\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"emails/dispatch-batch/emails-row\\\",[],[[\\\"@tab\\\",\\\"@panelData\\\"],[[23,1,[]],[23,0,[\\\"panelData\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,0,[\\\"isDispatched\\\"]]],null],[28,\\\"not\\\",[[23,0,[\\\"hasProcessEmailSelection\\\"]]],null],[23,0,[\\\"previewFilters\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@showPageNumbers\\\",\\\"@classNames\\\",\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\"],[true,\\\"pagination-controls-container--small\\\",[23,0,[\\\"previewFilters\\\"]],[23,0,[\\\"panelData\\\",\\\"data\\\"]],[23,0,[\\\"paginateProcessEmailPreviewTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"isRunning\\\"]],[24,[\\\"onCloseDialogAction\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allEmailsData\\\",\\\"toSend\\\",\\\"count\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isCompilingMessage\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allEmailsData\\\",\\\"toSend\\\",\\\"count\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"hasBadge\\\",\\\"badge\\\",\\\"icon\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"sendLabel\\\"]],[24,[\\\"disabled\\\"]],true,[24,[\\\"allEmailsData\\\",\\\"toSend\\\",\\\"count\\\"]],\\\"fas fa-mail-bulk\\\",[24,[\\\"onSendEmailsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSendEmailsTask\\\"]],[24,[\\\"onCloseDialogAction\\\"]],[28,\\\"hash\\\",null,[[\\\"useDefaultDispatchedEmailMessage\\\",\\\"subject\\\",\\\"message\\\",\\\"useDefaultsDispatchedEmailEstimatedTransporterArrivalDate\\\",\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\",\\\"dispatchedEmailEstimateTransporterArrivalDaysFromDispatch\\\",\\\"dispatchedEmailTransporterArrivalDateSkipWeekends\\\",\\\"dispatchDate\\\",\\\"dispatchDateZ\\\",\\\"docKey\\\",\\\"docType\\\",\\\"docName\\\",\\\"dispatchProcess\\\",\\\"transporterExtension\\\",\\\"waybillStatus\\\",\\\"waybillLastStatus\\\",\\\"daysOld\\\",\\\"selectedProxyArray\\\",\\\"sendByFilter\\\",\\\"expectedCount\\\"],[[24,[\\\"useDefaultDispatchedEmailMessage\\\"]],[24,[\\\"emailSubject\\\"]],[24,[\\\"emailMessage\\\"]],[23,0,[\\\"useDefaultsDispatchedEmailEstimatedTransporterArrivalDate\\\"]],[23,0,[\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\"]],[23,0,[\\\"dispatchedEmailEstimateTransporterArrivalDaysFromDispatch\\\"]],[23,0,[\\\"dispatchedEmailTransporterArrivalDateSkipWeekends\\\"]],[24,[\\\"dispatchDate\\\"]],[24,[\\\"dispatchDateZ\\\"]],[24,[\\\"docKey\\\"]],[24,[\\\"docType\\\"]],[24,[\\\"docName\\\"]],[24,[\\\"dispatchProcess\\\"]],[23,4,[\\\"transporterExtension\\\"]],[23,4,[\\\"waybillStatus\\\"]],[23,4,[\\\"waybillLastStatus\\\"]],[23,4,[\\\"daysOld\\\"]],[28,\\\"if\\\",[[23,0,[\\\"hasProcessEmailSelection\\\"]],[23,3,[]]],null],[28,\\\"and\\\",[[28,\\\"not\\\",[[23,0,[\\\"isDispatched\\\"]]],null],[28,\\\"not\\\",[[23,0,[\\\"hasProcessEmailSelection\\\"]]],null]],null],[24,[\\\"allEmailsData\\\",\\\"toSend\\\",\\\"count\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"icon\\\",\\\"hasBadge\\\",\\\"badge\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"next\\\",[24,[\\\"disabled\\\"]],\\\"fas fa-arrow-circle-right\\\",true,[24,[\\\"allEmailsData\\\",\\\"toSend\\\",\\\"count\\\"]],[24,[\\\"getToSendEmailsTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"next\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/dispatch-batch/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/email-editor/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    date: Ember.inject.service(),\n    hasPrices: true,\n    init() {\n      this._super(...arguments);\n      const isPaymentReminderEmail = this.isPaymentReminderEmail || false;\n      if (isPaymentReminderEmail) {\n        const paymentReminderEmails = this.settings.settingsModel.getData('paymentReminderEmails') || [];\n        const paymentDueDays = this.paymentDueDays || false;\n        if (paymentDueDays && paymentDueDays > 0 && RA.isNotNilOrEmpty(paymentReminderEmails)) {\n          const matchedPaymentReminderEmail = R.find(R.pathEq(['_data', 'paymentReminderEmailDays'], paymentDueDays))(paymentReminderEmails);\n          if (RA.isNotNilOrEmpty(matchedPaymentReminderEmail)) {\n            this.model.set('_data.paymentReminderEmailDays', paymentDueDays);\n            this.setPaymentReminderEmail(this.model, matchedPaymentReminderEmail);\n          }\n        }\n      }\n    },\n    setPaymentReminderEmail(model, emailData = {}) {\n      model.set('_data.subject', R.pathOr('', ['_data', 'paymentReminderEmailSubject'])(emailData));\n      model.set('_data.message', R.pathOr('', ['_data', 'paymentReminderEmailMessage'])(emailData));\n    },\n    paymentDueDays: Ember.computed('docModel._data.{paymentDueDateZ,dateZ}', function () {\n      const docModel = this.docModel;\n      const paymentDueDateZ = docModel.getData('paymentDueDateZ') || docModel.getData('dateZ') || '';\n      const todayZ = this.date.getStartOfDayZ();\n      if (this.isPaymentReminderEmail) {\n        const dateDiff = this.date.getDateDiff(paymentDueDateZ, todayZ);\n        if (dateDiff > 0) {\n          return dateDiff;\n        }\n      }\n      return false;\n    }),\n    actions: {\n      updateContent(template) {\n        this.model.set('_data.template', template);\n      },\n      setPaymentReminderEmailAction(emailData = {}) {\n        const model = this.model;\n        this.setPaymentReminderEmail(model, emailData);\n      },\n      submit() {\n        const isEmailDeliveryNote = this?.isEmailDeliveryNote || false;\n        if (isEmailDeliveryNote) {\n          this.onSubmit({\n            hasPrices: this.hasPrices,\n            isEmailDeliveryNote\n          });\n          return;\n        }\n        this.onSubmit();\n      }\n    }\n  });\n});","define(\"client/pods/components/emails/email-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vWJFBKP8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isPaymentReminderEmail\\\",\\\"@isEmailDeliveryNote\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"to\\\",[24,[\\\"errors\\\"]],\\\"toEmail\\\",\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"toAddress\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"name\\\",[24,[\\\"errors\\\"]],\\\"toName\\\",\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"toName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"from email name\\\",[24,[\\\"errors\\\"]],\\\"emailFromName\\\",\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"fromName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"from email address\\\",[24,[\\\"errors\\\"]],\\\"emailFromAddress\\\",\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"fromAddress\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@rowClassNames\\\"],[\\\"payment reminder email templates\\\",[22,\\\"errors\\\"],\\\"\\\",\\\"settings\\\",\\\"u-margin-bottom-0\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@translate\\\",\\\"@isBtn\\\",\\\"@allowDeselect\\\",\\\"@allowEmpty\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,true,true,true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"paymentReminderEmails\\\"]],\\\"_data.paymentReminderEmailDays\\\",\\\"_data.paymentReminderEmailSubject\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentReminderEmailDays\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setPaymentReminderEmailAction\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"setPaymentReminderEmailAction\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-margin-bottom-20\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"payment overdue date\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[24,[\\\"docModel\\\",\\\"_data\\\",\\\"paymentDueDateZ\\\"]]],null],false],[0,\\\" \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"paymentDueDays\\\"]],[28,\\\"gt\\\",[[23,0,[\\\"paymentDueDays\\\"]],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"        (\\\"],[1,[23,0,[\\\"paymentDueDays\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"days\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"subject\\\",[24,[\\\"errors\\\"]],\\\"subject\\\",\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"classNames\\\",\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form__input form__input--full-width\\\",\\\"u-full-width\\\",[24,[\\\"isReadonly\\\"]],\\\"auto\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"subject\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"show prices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"hasPrices\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"additional message\\\",\\\"additionalMessage\\\",\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@basicToolbar\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[22,\\\"tab\\\"],true,[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"message\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reference\\\",\\\"shop-name\\\",\\\"overdue-days\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reference\\\",\\\"shop-name\\\",\\\"website-url\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"email\\\",\\\"_data\\\",\\\"html\\\"]],true],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[false,\\\"send email\\\",[22,\\\"isReadonly\\\"],[24,[\\\"sendEmailTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"submit\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/email-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/member-level/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, _ramda, RA, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 EmailsMemberLevelComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _class = class EmailsMemberLevelComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"server\", _descriptor6, this);\n      _initializerDefineProperty(this, \"useDefaultEmailMessage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"emailMessage\", _descriptor8, this);\n      _initializerDefineProperty(this, \"emailSubject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isCompilingMessage\", _descriptor0, this);\n      _initializerDefineProperty(this, \"tabsChanged\", _descriptor1, this);\n      _initializerDefineProperty(this, \"currentSubTabOptions\", _descriptor10, this);\n      _initializerDefineProperty(this, \"allEmailsData\", _descriptor11, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor12, this);\n      const filters = this.search.setupFilters({\n        adapterName: 'contacts/rewards/recipients/filters'\n      });\n      this.filters = filters;\n      this.crud.addLists(this, ['emails/lists/toSendTabs']);\n    }\n    get headerTabs() {\n      const allEmailsData = this.allEmailsData || {};\n      const list = this.crud.lists['emails-lists-toSendTabs'] || [];\n      return _ramda.default.pipe(_ramda.default.map(header => {\n        const headerValue = header._data.value;\n        const hasData = _ramda.default.pipe(_ramda.default.path([headerValue]), _nventor.default.isNilOrEmpty, _ramda.default.not)(allEmailsData);\n        if (!hasData) {\n          return false;\n        }\n        const badge = _ramda.default.path([headerValue, 'count'])(allEmailsData) || 0;\n        header.setData('badge', badge);\n        return header;\n      }), _ramda.default.reject(_ramda.default.equals(false)))(list);\n    }\n    getBirthday(contact) {\n      const birthdays = [];\n      const contactBirthday = _ramda.default.propOr('', 'birthday')(contact);\n      const memberBirthday = _ramda.default.pathOr('', ['member', 'birthday'])(contact);\n      const createdDateZ = _ramda.default.propOr('', 'createdDateZ')(contact);\n      if (RA.isNotNilOrEmpty(contactBirthday)) {\n        birthdays.push({\n          date: contactBirthday,\n          source: 'contact'\n        });\n      }\n      if (RA.isNotNilOrEmpty(memberBirthday)) {\n        birthdays.push({\n          date: memberBirthday,\n          source: 'member'\n        });\n      }\n      if (RA.isNilOrEmpty(birthdays)) {\n        birthdays.push({\n          date: createdDateZ,\n          source: 'created date'\n        });\n      }\n      return birthdays;\n    }\n    get panelData() {\n      const subTabOptions = this.currentSubTabOptions || {};\n      if (!_nventor.default.isNilOrEmpty(subTabOptions)) {\n        const value = subTabOptions.getData('value');\n        const allEmailsData = this.allEmailsData || {};\n        const data = _ramda.default.prop(value)(allEmailsData) || {};\n        data.data = _ramda.default.map(contact => {\n          contact.birthdays = this.getBirthday(contact);\n          contact.emails = _ramda.default.pipe(_ramda.default.propOr([], 'details'), _ramda.default.filter(_ramda.default.propEq('type', 'email')))(contact);\n          contact.memberEmail = _ramda.default.pathOr('', ['member', 'email'])(contact);\n          contact.contactRewardsData = _nventor.default.safeHeadOr({})(contact.contactRewardsData);\n          return contact;\n        })(data.data);\n        return data;\n      }\n      return {};\n    }\n    *getToSendMemberLevelBatchEmailTask(args) {\n      const {\n        memberLevel,\n        rewardKey\n      } = args;\n      const filters = this.filters;\n      filters.setData('rewardKeys', [rewardKey]);\n      filters.setData('memberLevelIds', [_ramda.default.pathOr('', ['_data', 'memberLevelId'])(memberLevel)]);\n      filters.setData('hasBirthdayFilter', false);\n      filters.setData('hasSubscriptionFilter', true);\n      const response = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'contacts/rewards/recipients',\n        appendPath: '/notification',\n        filters,\n        rawResponse: true\n      });\n      this.allEmailsData = {\n        toSend: {\n          data: _ramda.default.propOr([], 'contacts')(response),\n          count: _ramda.default.propOr(0, 'count')(response)\n        }\n      };\n    }\n    *sendMemberLevelBatchEmailTask(onCloseDialogAction, {\n      useDefaultEmailMessage,\n      subject,\n      message\n    }) {\n      const filters = this.filters;\n      const emailData = {\n        useDefaultEmailMessage,\n        subject,\n        message,\n        hasBirthdayFilter: false,\n        hasSubscriptionFilter: true,\n        memberLevelIds: filters.get('_data.memberLevelIds'),\n        rewardKeys: filters.get('_data.rewardKeys'),\n        isNotification: true\n      };\n      const response = yield this.server.call('PUT', 'api/protected/contacts/rewards/send/notification', emailData);\n      let sent = 0;\n      if (response.data) {\n        sent = _ramda.default.length(response.data);\n      }\n      onCloseDialogAction();\n      window.alert('sent: ' + sent + ' emails.');\n    }\n    setRecipientData() {\n      const memberLevel = this.args.memberLevel;\n      const rewardKey = this.args.model._data._key;\n      this.getToSendMemberLevelBatchEmailTask.perform({\n        memberLevel,\n        rewardKey\n      });\n    }\n    displayPanel(allEmailsData, subTabOptions) {\n      this.currentSubTabOptions = subTabOptions;\n      this.tabsChanged = Math.random();\n      this.tabsManager.displaySubPanel(this, subTabOptions);\n    }\n    next() {\n      this.isCompilingMessage = true;\n    }\n    onToggleSetCustomMessage() {\n      const useDefaultEmailMessage = this.useDefaultEmailMessage;\n      if (useDefaultEmailMessage) {\n        this.useDefaultEmailMessage = true;\n        this.emailSubject = '';\n      } else {\n        this.useDefaultEmailMessage = false;\n        this.emailSubject = '';\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"useDefaultEmailMessage\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"emailMessage\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"emailSubject\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"isCompilingMessage\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"tabsChanged\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"currentSubTabOptions\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"allEmailsData\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getToSendMemberLevelBatchEmailTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getToSendMemberLevelBatchEmailTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sendMemberLevelBatchEmailTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"sendMemberLevelBatchEmailTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setRecipientData\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"setRecipientData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayPanel\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"displayPanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"next\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"next\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleSetCustomMessage\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSetCustomMessage\"), _class.prototype), _class);\n});","define(\"client/pods/components/emails/member-level/emails-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GvFbyqJF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"contact\\\",\\\"birthday\\\",\\\"email\\\",\\\"@panelData\\\",\\\"@tab\\\",\\\"@filters\\\",\\\"@paginateSearchRecordsTask\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[[23,5,[\\\"label\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member email\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"birthday\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"member\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"reward name\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[1,[28,\\\"tt\\\",[\\\"member level\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"valid points\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"pending points\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"mailing list\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"data\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,4,[\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"name\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"emails\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"li\\\",true],[8],[1,[23,3,[\\\"value\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"memberEmail\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"birthdays\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"li\\\",true],[8],[1,[28,\\\"date\\\",[[23,2,[\\\"date\\\"]]],null],false],[0,\\\" (\\\"],[1,[23,2,[\\\"source\\\"]],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"memberId\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"member\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[1,[28,\\\"tt\\\",[\\\"not member\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"contactRewardsData\\\",\\\"rewardData\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"contactRewardsData\\\",\\\"level\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"contactRewardsData\\\",\\\"level\\\",\\\"points\\\"]]]]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"contactRewardsData\\\",\\\"pointsData\\\",\\\"validPoints\\\"]]]]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points\\\"],[[\\\"points\\\"],[[23,1,[\\\"contactRewardsData\\\",\\\"pointsData\\\",\\\"pendingPoints\\\"]]]]],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"contactRewardsData\\\",\\\"isSubscribed\\\"]],true],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"on\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"contactReward\\\",\\\"isSubscribed\\\"]],false],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"off\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"not yet set\\\"],null],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"11\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"no data\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@showPageNumbers\\\",\\\"@onPaginationTask\\\"],[[23,6,[]],[23,4,[]],true,[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/member-level/emails-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/member-level/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/kJyCNXk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@disabled\\\",\\\"@sendLabel\\\",\\\"@onCloseDialogAction\\\",\\\"@tab\\\",\\\"@readonly\\\",\\\"@isReadonly\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog/modal-header\\\",[[3,\\\"did-insert\\\",[[23,0,[\\\"setRecipientData\\\"]]]]],[[\\\"@onClose\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"headerTabs\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displayPanel\\\"]],[23,0,[\\\"allEmailsData\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"getToSendMemberLevelBatchEmailTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isCompilingMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,6,[]],\\\"use default message in settings\\\",[23,0,[\\\"useDefaultEmailMessage\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetCustomMessage\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"email subject\\\",[23,0,[\\\"errors\\\"]],\\\"subject\\\",\\\"rewards\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,7,[]],[23,0,[\\\"useDefaultEmailMessage\\\"]]],null],[23,0,[\\\"translatedPlaceholder\\\"]],[23,0,[\\\"emailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"email message\\\",[23,0,[\\\"errors\\\"]],\\\"message\\\",\\\"rewards\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,5,[]],true,true,[28,\\\"or\\\",[[23,7,[]],[23,0,[\\\"useDefaultEmailMessage\\\"]]],null],[23,0,[\\\"emailMessage\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,5,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"emails/member-level/emails-row\\\",[],[[\\\"@tab\\\",\\\"@panelData\\\",\\\"@filters\\\",\\\"@paginateSearchRecordsTask\\\"],[[23,1,[]],[23,0,[\\\"panelData\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,8,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allEmailsData\\\",\\\"toSend\\\",\\\"count\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isCompilingMessage\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"allEmailsData\\\",\\\"toSend\\\",\\\"count\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@hasBadge\\\",\\\"@badge\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,2,[]],true,[23,0,[\\\"allEmailsData\\\",\\\"toSend\\\",\\\"count\\\"]],\\\"fas fa-mail-bulk\\\",[23,0,[\\\"sendMemberLevelBatchEmailTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"sendMemberLevelBatchEmailTask\\\"]],[23,4,[]],[28,\\\"hash\\\",null,[[\\\"useDefaultEmailMessage\\\",\\\"subject\\\",\\\"message\\\"],[[23,0,[\\\"useDefaultEmailMessage\\\"]],[23,0,[\\\"emailSubject\\\"]],[23,0,[\\\"emailMessage\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@hasBadge\\\",\\\"@badge\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"next\\\",[23,2,[]],\\\"fas fa-arrow-circle-right\\\",true,[23,0,[\\\"allEmailsData\\\",\\\"toSend\\\",\\\"count\\\"]],[23,0,[\\\"getToSendMemberLevelBatchEmailTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"next\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/member-level/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/mixins/emails-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      filters,\n      match,\n      date,\n      dateStart,\n      dateEnd,\n      query = '',\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (date) {\n        filters.setData('match', ['timestampZ']);\n        query = date;\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }),\n    actions: {\n      listByDate(onHideDropdown, filters, dateZ, date) {\n        if (dateZ) {\n          date = this.formatDate(dateZ, 'YYYY-MM-DD');\n        }\n        return this.listByTask.perform({\n          filters,\n          date,\n          dateZ,\n          resultsToggle: 'resultsToggle'\n        }, onHideDropdown);\n      }\n    }\n  });\n});","define(\"client/pods/components/emails/panels-activity/component\", [\"exports\", \"client/pods/components/emails/mixins/emails-list-by\", \"client/mixins/crud\"], function (_exports, _emailsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _emailsListBy.default, {\n    applicationService: Ember.inject.service('application'),\n    adapterName: 'emails',\n    filtersAdapterName: 'emails/filters',\n    init() {\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const filters = this.filters;\n      const adapterName = this.adapterName;\n      this.fetchDefaultDataTask.perform({\n        adapterName,\n        filters,\n        resultsProperty: 'results'\n      });\n    }\n\n    // actions: {\n\n    //   setupResendEmail (email) {\n    //     const dirty = this.setupDirty({\n    //       adapterName: 'emails',\n    //       model: email\n    //     })\n    //     this.set('dirty', dirty)\n    //   },\n\n    //   clearResendEmail () {\n    //     this.set('dirty', null)\n    //   },\n\n    //   async resendEmail (dirty, onCloseDialogAction) {\n    //     await this.get('createRecordTask').perform({\n    //       adapterName: 'emails',\n    //       appendPath: '/resend',\n    //       model: dirty\n    //     })\n\n    //     onCloseDialogAction()\n\n    //     const results = await this.get('listByTask').perform({ resultsToggle: '' })\n    //     this.set('results', results)\n    //   },\n\n    //   cancelResendEmail (onCloseDialogAction) {\n    //     onCloseDialogAction()\n    //     this.set('dirty', null)\n    //   }\n    // }\n  });\n});","define(\"client/pods/components/emails/panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6LWNv92L\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"translatedPlaceholder\\\",\\\"autofocus\\\",\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[28,\\\"tt\\\",[\\\"emails\\\"],null],true,[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[23,0,[\\\"fetchDefaultDataTask\\\",\\\"isRunning\\\"]],[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]],[24,[\\\"query\\\"]]],null],true]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n        \\\"],[1,[28,\\\"emails/search-filters\\\",null,[[\\\"adapterName\\\",\\\"query\\\",\\\"filters\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"detailsRowComponent\\\",\\\"results\\\",\\\"filters\\\",\\\"isRunning\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onEdit\\\",\\\"tableViewOptions\\\"],[\\\"emails/table-view/detail-row\\\",[24,[\\\"results\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"fetchDefaultDataTask\\\",\\\"isRunning\\\"]],[24,[\\\"searchAdvancedTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"tableViewOptions\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/panels-scheduled/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\", \"client/pods/components/emails/mixins/emails-list-by\", \"client/mixins/doc-status\"], function (_exports, _crud, _emberConcurrency, _emailsListBy, _docStatus) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import DocsListByMixin from '../../../../mixins/doc-list-by'\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _docStatus.default, _emailsListBy.default, {\n    crud: Ember.inject.service(),\n    filtersAdapterName: 'emails/filters',\n    init() {\n      this.crud.addLists(this, ['emails/lists/menu/notifications']);\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          sort: [{\n            by: 'paymentDueDateZ',\n            direction: 'ASC'\n          }]\n        }\n      });\n      this.set('filters', filters);\n      this.fetchScheduledTask.perform();\n    },\n    fetchScheduledTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.filters;\n      const results = yield this.listByTask.perform({\n        adapterName: 'documents/sales/invoices',\n        appendPath: 'emails/payments',\n        filters\n      });\n      this.set('results', results);\n    })\n  });\n});","define(\"client/pods/components/emails/panels-scheduled/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eZD+Df6g\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchScheduledTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"documents/activity-list\\\",null,[[\\\"hideExcl\\\",\\\"results\\\",\\\"onPaginationTask\\\",\\\"lastSearchSettings\\\",\\\"page\\\",\\\"count\\\",\\\"onToggleOnHold\\\",\\\"onToggleDispatched\\\"],[true,[24,[\\\"results\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"page\\\"]],[24,[\\\"count\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleOnHold\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleDispatched\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/panels-scheduled/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/search-filters/component\", [\"exports\", \"client/mixins/crud\", \"client/pods/components/emails/mixins/emails-list-by\"], function (_exports, _crud, _emailsListBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _emailsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this.crud.addLists(this, ['emails/lists/filters/search',\n      // 'emails/lists/filters/status',\n      'emails/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n\n    // actions: {\n    //   listByDate (onHideDropdown, dateZ, date) {\n    //     return this.get('listByTask').perform({ date, dateZ, resultsToggle: 'resultsToggle' }, onHideDropdown)\n    //   }\n    // }\n  });\n});","define(\"client/pods/components/emails/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2GnangVM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/status-tags/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    sorted: Ember.computed('events.[]', function () {\n      const events = this.events || [];\n      const sorted = R.pipe(R.groupBy(event => {\n        return event.event;\n      }), R.map(group => {\n        return {\n          count: R.length(group),\n          last: R.last(group) || {},\n          all: group\n        };\n      }), R.values, R.reject(R.isNil), R.sortBy(R.path(['last', 'timestampZ'])))(events);\n      return sorted;\n    }),\n    hasEvents: Ember.computed('sorted.[]', function () {\n      const sorted = this.sorted || [];\n      if (sorted.length > 0) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/emails/status-tags/status-tag/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    statusClass: Ember.computed('data', function () {\n      const event = this.get('data.last.event');\n      if (event === 'delivered') {\n        return 'is-info';\n      }\n      if (event === 'opened') {\n        return 'is-success';\n      }\n      return 'is-warning';\n    })\n  });\n});","define(\"client/pods/components/emails/status-tags/status-tag/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HeavXwW9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"event\\\"],\\\"statements\\\":[[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[22,\\\"statusClass\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"email_event_\\\",[24,[\\\"data\\\",\\\"last\\\",\\\"event\\\"]]],null]],null],false],[0,\\\" @ \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"data\\\",\\\"last\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"data\\\",\\\"count\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"info-badge\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"data\\\",\\\"count\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"no_of_times\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"data\\\",\\\"all\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"email_event_\\\",[23,2,[\\\"event\\\"]]],null]],null],false],[0,\\\" @ \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/status-tags/status-tag/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/status-tags/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yahvQwaY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"group\\\"],\\\"statements\\\":[[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasEvents\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"emails/status-tags/status-tag\\\",null,[[\\\"data\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"email_queued\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/status-tags/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/tab-container/component\", [\"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 = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    // listAdapters: [],\n    // results: [],\n    resultsToggle: false,\n    query: '',\n    init() {\n      this.crud.addLists(this, ['emails/lists/menu', 'dispatch/lists/processes']);\n      this._super(...arguments);\n      this.activity();\n    },\n    activity() {\n      // create dashboard\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'emails/panels-activity'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    overview() {\n      this.activity();\n    },\n    scheduled() {\n      // create dashboard\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'emails/panels-scheduled'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    actions: {\n      activity() {\n        this.activity();\n      },\n      overview() {\n        this.overview();\n      },\n      scheduled() {\n        this.scheduled();\n      }\n    }\n  });\n});","define(\"client/pods/components/emails/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"N6uUXTHy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"emails\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"onDash\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"activity\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/emails/table-view/detail-row/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    tagName: '',\n    showEmail: false,\n    init() {\n      this._super(...arguments);\n      if (this.isFilters) {\n        const campaignFilters = this.search.setupFilters({\n          adapterName: 'channels/shop/campaigns/filters'\n        });\n        this.set('campaignFilters', campaignFilters);\n      }\n      const emailsCampaignsFilters = this.search.setupFilters({\n        adapterName: 'emails/campaigns/filters'\n      });\n      this.set('emailsCampaignsFilters', emailsCampaignsFilters);\n    },\n    loadEmailsCampaigns(onSearchTask, emailsCampaigns) {\n      const filters = this.filters;\n      filters.setData('emailsCampaignsKey', emailsCampaigns.getData('_key'));\n      onSearchTask.perform({\n        filters\n      });\n    },\n    unloadEmailsCampaigns(onSearchTask) {\n      const filters = this.filters;\n      filters.setData('emailsCampaignsKey', '');\n      onSearchTask.perform({\n        filters\n      });\n    },\n    actions: {\n      loadShopSource(onSearchTask, shop) {\n        const filters = this.filters;\n        filters.setData('sourceKey', shop.getData('_key'));\n        onSearchTask.perform({\n          filters\n        });\n      },\n      unloadShopSource(onSearchTask) {\n        const filters = this.filters;\n        filters.setData('sourceKey', '');\n        onSearchTask.perform({\n          filters\n        });\n      },\n      setupResendEmail(email) {\n        const dirty = this.setupDirty({\n          adapterName: 'emails',\n          model: email\n        });\n        this.set('dirty', dirty);\n      },\n      clearResendEmail() {\n        this.set('dirty', null);\n      },\n      async resendEmail(dirty, onCloseDialogAction) {\n        await this.createRecordTask.perform({\n          adapterName: 'emails',\n          appendPath: '/resend',\n          model: dirty\n        });\n        onCloseDialogAction();\n        const filters = this.filters;\n        this.onReloadSearchRecordsTask.perform({\n          filters\n        });\n      },\n      cancelResendEmail(onCloseDialogAction) {\n        onCloseDialogAction();\n        this.set('dirty', null);\n      },\n      showEmail() {\n        this.set('showEmail', true);\n      },\n      closeEmail() {\n        this.set('showEmail', false);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"loadEmailsCampaigns\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"loadEmailsCampaigns\"), _obj), _applyDecoratedDescriptor(_obj, \"unloadEmailsCampaigns\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"unloadEmailsCampaigns\"), _obj), _obj));\n});","define(\"client/pods/components/emails/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"48cuqAPR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"timestampZ\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"toName\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"toAddress\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"emailsCampaigns\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"email campaign\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"subject\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"subject\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"docNo\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"document number\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"source\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"icon\\\",\\\"toggleIsOn\\\"],[true,true,\\\"fas fa-filter\\\",[24,[\\\"showFilters\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"toName\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"toAddress\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@placeholder\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@value\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"div\\\",false,[23,0,[\\\"emailsCampaignsFilters\\\",\\\"results\\\"]],\\\"search\\\",\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"emailsCampaignsKey\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"emailsCampaignsName\\\"]],[23,4,[]],[23,4,[]],[23,0,[\\\"emailsCampaignsFilters\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"query\\\",\\\"filters\\\",\\\"component\\\"],[\\\"emails/campaigns\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"emailsCampaignsName\\\"]],[23,0,[\\\"emailsCampaignsFilters\\\"]],[23,0,[]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"loadEmailsCampaigns\\\"]],[24,[\\\"onSearchTask\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadEmailsCampaigns\\\"]],[24,[\\\"onSearchTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"subject\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"docNo\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"resultsItemComponent\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[false,[24,[\\\"shopsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"source\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"sourceKey\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isReadonly\\\"]],\\\"channels/shop/campaigns/search-results\\\",[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"resultsProperty\\\",\\\"query\\\"],[\\\"channels/shop/campaigns\\\",[24,[\\\"campaignFilters\\\"]],\\\"shopsList\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"source\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadShopSource\\\",[24,[\\\"onSearchTask\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadShopSource\\\",[24,[\\\"onSearchTask\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"detail\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[24,[\\\"detail\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",false],[12,\\\"class\\\",[29,[\\\"table-view__detail-row--alt \\\",[28,\\\"if\\\",[[28,\\\"isEven\\\",[[24,[\\\"rowIndex\\\"]]],null],\\\"even\\\",\\\"odd\\\"],null],\\\" \\\",[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]],\\\"no-border-bottom\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],\\\"showEmail\\\"]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"toName\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"search\\\"],[[28,\\\"hash\\\",null,[[\\\"query\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"toName\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"toName\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"toAddress\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"search\\\"],[[28,\\\"hash\\\",null,[[\\\"query\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"toAddress\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"toAddress\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"emailsCampaignsName\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"subject\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceResource\\\"]],\\\"documents\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          #\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-link--text\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceResource\\\"]],\\\"campaigns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"sourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"source\\\"]],false],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"emails/status-tags\\\",null,[[\\\"events\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"events\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@hasSectionWrapper\\\",\\\"@closeOnOverlayClick\\\"],[\\\"view\\\",\\\"fas fa-eye\\\",true,true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"html\\\"]],true],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@onClose\\\",\\\"@hasSectionWrapper\\\"],[\\\"resend\\\",\\\"fas fa-share\\\",[28,\\\"action\\\",[[23,0,[]],\\\"setupResendEmail\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"clearResendEmail\\\"],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"emails/email-editor\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@sendEmailTask\\\",\\\"@onSubmit\\\",\\\"@onCancel\\\"],[[22,\\\"tab\\\"],[22,\\\"dirty\\\"],[22,\\\"createRecordTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"resendEmail\\\",[24,[\\\"dirty\\\"]],[23,3,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancelResendEmail\\\",[23,3,[]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"hasSectionWrapper\\\",\\\"onSubmit\\\",\\\"onClose\\\"],[\\\"resend\\\",\\\"fas fa-share\\\",true,[28,\\\"action\\\",[[23,0,[]],\\\"setupResendEmail\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"clearResendEmail\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"emails/email-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"sendEmailTask\\\",\\\"onSubmit\\\",\\\"onCancel\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"createRecordTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resendEmail\\\",[24,[\\\"dirty\\\"]],[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancelResendEmail\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/emails/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/export/worksheet/editor/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, RA, _nventor) {\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;\n  /* global R */\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 ExportWorksheetEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember._action, _class = class ExportWorksheetEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"listAlreadyUsedInDropdown\", _descriptor5, this);\n      this.listAlreadyUsedInDropdown = this?.args?.model?._data?.defaultExportCustomSheets || [];\n      const model = this?.args?.model || {};\n      const showSetDetails = model.getData('showSetDetails');\n      if (RA.isNilOrEmpty(showSetDetails)) {\n        model.setData('showSetDetails', true);\n      }\n      const isGroupDocs = model.getData('isGroupDocs');\n      const source = this?.args?.source || 'dispatch';\n      if (source === 'reports') {\n        model.setData('isGroupDocs', false);\n      }\n      if (RA.isNilOrEmpty(isGroupDocs) && source === 'dispatch') {\n        model.setData('isGroupDocs', true);\n      }\n      this.crud.addLists(this, ['dispatch/lists/dispatch-sort-filters-advanced', 'dispatch/lists/documents-sort-filters-advanced', 'dispatch/lists/dispatch-sort-direction']);\n      const filters = this?.args?.filters || {};\n      if (RA.isNotNilOrEmpty(filters)) {\n        const filtersSort = R.pipe(R.pathOr([], ['_data', 'sort']), _nventor.default.safeLastOr({}))(filters);\n        model.setData('sortBy', filtersSort?.by || 'none');\n        model.setData('sortByDirection', filtersSort?.direction || 'DESC');\n      }\n    }\n    get availableCustomWorksheets() {\n      const originalList = this?.args?.specsCollection?._data?.custom || [];\n      const listAlreadyUsedInDropdown = this.listAlreadyUsedInDropdown || [];\n      return R.filter(list => {\n        const listKey = list._data._key;\n        const listKeyAlreadyUsedInDropdown = R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('value'), R.reject(RA.isNilOrEmpty))(listAlreadyUsedInDropdown);\n        return !R.includes(listKey, listKeyAlreadyUsedInDropdown);\n      })(originalList);\n    }\n    addDefaultExportCustomSheets(selectedSpec) {\n      const model = this.args.model;\n      const defaultCustomSheets = model.getData('defaultExportCustomSheets') || [];\n      const data = {\n        value: selectedSpec.getData('_key'),\n        label: selectedSpec.getData('description'),\n        index: defaultCustomSheets.length\n      };\n      const modelData = this.dataManager.setAsRecord({\n        adapterName: 'dispatch/lists/processes/custom-worksheets',\n        data\n      });\n      defaultCustomSheets.pushObject(modelData);\n      model.setData('defaultExportCustomSheets', defaultCustomSheets);\n      this.listAlreadyUsedInDropdown = model?._data?.defaultExportCustomSheets || [];\n    }\n    removeListDropdown(customSheet) {\n      const model = this.args.model;\n      const defaultExportCustomSheets = model.getData('defaultExportCustomSheets');\n      defaultExportCustomSheets.removeObject(customSheet);\n      RA.mapIndexed((val, idx) => {\n        defaultExportCustomSheets.set(`${idx}.index`, idx);\n      })(defaultExportCustomSheets);\n      model.setData('defaultExportCustomSheets', defaultExportCustomSheets);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"listAlreadyUsedInDropdown\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"addDefaultExportCustomSheets\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"addDefaultExportCustomSheets\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeListDropdown\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"removeListDropdown\"), _class.prototype), _class);\n});","define(\"client/pods/components/export/worksheet/editor/customworksheet-nested/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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); } // import Component from '@ember/component'\n  class ExportWorksheetEditorCustomworksheetNestedComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", 'div');\n      _defineProperty(this, \"classNames\", ['nav-tree']);\n      _defineProperty(this, \"translate\", true);\n      _defineProperty(this, \"isViewable\", true);\n      _defineProperty(this, \"disabled\", false);\n      _defineProperty(this, \"labelKey\", 'label');\n      _defineProperty(this, \"isDraggable\", true);\n      _defineProperty(this, \"subProperty\", 'sub');\n    }\n  }\n  _exports.default = ExportWorksheetEditorCustomworksheetNestedComponent;\n});","define(\"client/pods/components/export/worksheet/editor/customworksheet-nested/customworksheet-item/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _ramda, RA, _ramdaExtension) {\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;\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 ExportWorksheetEditorCustomspecItem = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _class = class ExportWorksheetEditorCustomspecItem extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dragAndDrop\", _descriptor, this);\n      _defineProperty(this, \"tagName\", 'span');\n      _defineProperty(this, \"classNames\", []);\n      _defineProperty(this, \"translate\", true);\n      _defineProperty(this, \"item\", null);\n      _defineProperty(this, \"isViewable\", true);\n      _defineProperty(this, \"labelKey\", 'label');\n      _defineProperty(this, \"isDraggable\", true);\n      _defineProperty(this, \"hasDropBelowContainer\", true);\n      _defineProperty(this, \"hasDropAboveContainer\", true);\n      _defineProperty(this, \"draggable\", true);\n    }\n    get availableCustomWorksheetAndOwnWorksheets() {\n      const originalList = this?.args?.specsCollection?._data?.custom || [];\n      const availableCustomWorksheets = this?.args?.availableCustomWorksheets || [];\n      if (RA.isNilOrEmpty(availableCustomWorksheets)) {\n        return [];\n      }\n      const customSheet = this?.args?.customSheet;\n      const customSpec = _ramda.default.find(_ramdaExtension.default.dotPathEq('_data._key', customSheet?._data?.value))(originalList);\n\n      // a saved custom sheet can reference a worksheet that no longer exists in the spec\n      // collection (deleted/renamed). don't inject an undefined entry into the list — it\n      // renders as a blank, editable row that opens the specs editor with no model and crashes.\n      if (RA.isNilOrEmpty(customSpec)) {\n        return availableCustomWorksheets;\n      }\n      return _ramda.default.insert(1, customSpec, availableCustomWorksheets);\n    }\n    get _hasDropAboveContainer() {\n      if (this.hasDropAboveContainer && this.index === 0) {\n        return true;\n      }\n      return false;\n    }\n    drop() {\n      if (this.onDrop) {\n        this.onDrop(...arguments);\n      }\n    }\n    select(disabled, item) {\n      if (!disabled) {\n        this.onSelect(item);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dragAndDrop\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"drop\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"drop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _class);\n});","define(\"client/pods/components/export/worksheet/editor/customworksheet-nested/customworksheet-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1kWPSLN3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@customSheet\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@removeListDropdown\\\"],\\\"statements\\\":[[5,\\\"helpers/drop-container\\\",[],[[\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\"],[[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],[23,0,[\\\"draggable\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,1,[\\\"_data\\\",\\\"index\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDropWithIndexOld\\\"]],[23,1,[\\\"_data\\\",\\\"index\\\"]],[23,2,[\\\"_data\\\",\\\"defaultExportCustomSheets\\\"]],\\\"_data.index\\\",\\\"\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-tree__specs-item\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@hideIsEmpty\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@onDragStart\\\",\\\"@draggable\\\",\\\"@data\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,1,[\\\"_data\\\",\\\"index\\\"]]],null],[23,0,[\\\"draggable\\\"]],[23,1,[\\\"_data\\\",\\\"index\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@defaultLabel\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@onAfterAddItem\\\"],[true,false,[23,0,[\\\"availableCustomWorksheetAndOwnWorksheets\\\"]],[28,\\\"tt\\\",[\\\"add custom worksheet\\\"],null],\\\"_data._key\\\",\\\"_data.description\\\",[23,1,[\\\"_data\\\",\\\"value\\\"]],[23,1,[\\\"_data\\\",\\\"label\\\"]],\\\"specs/specs-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"custom worksheet\\\",true]]],[23,0,[\\\"fetchSpecsTask\\\"]]]]],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\"],[[23,3,[]],\\\"\\\",\\\"remove\\\",[28,\\\"fn\\\",[[23,4,[]],[23,1,[]]],null],true,\\\"are you sure you want to remove this custom sheet?\\\",true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/export/worksheet/editor/customworksheet-nested/customworksheet-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/export/worksheet/editor/customworksheet-nested/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qUAO0N48\",\n    \"block\": \"{\\\"symbols\\\":[\\\"customSheet\\\",\\\"@translate\\\",\\\"@labelKey\\\",\\\"@itemHasContentKey\\\",\\\"@model\\\",\\\"@removeListDropdown\\\",\\\"@specsCollection\\\",\\\"@availableCustomWorksheets\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"defaultExportCustomSheets\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"export/worksheet/editor/customworksheet-nested/customworksheet-item\\\",[],[[\\\"@translate\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@labelKey\\\",\\\"@itemHasContentKey\\\",\\\"@hasDropAboveContainer\\\",\\\"@isDraggable\\\",\\\"@model\\\",\\\"@removeListDropdown\\\",\\\"@specsCollection\\\",\\\"@onAfterAddItem\\\",\\\"@customSheet\\\",\\\"@availableCustomWorksheets\\\"],[[23,2,[]],\\\"nav-tree\\\",[23,0,[\\\"disabled\\\"]],[23,3,[]],[23,4,[]],true,[23,0,[\\\"isDraggable\\\"]],[23,5,[]],[23,6,[]],[23,7,[]],[23,0,[\\\"fetchSpecsTask\\\"]],[23,1,[]],[23,8,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/export/worksheet/editor/customworksheet-nested/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/export/worksheet/editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"80dc4d0o\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@specsCollection\\\",\\\"@onFetchSpecsTask\\\",\\\"@hasSelected\\\",\\\"@formInitData\\\",\\\"@groupDocumentsByTransporter\\\",\\\"@disableGroupByTransporterToggle\\\",\\\"@source\\\",\\\"&default\\\",\\\"@tab\\\",\\\"@hideSortBy\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"defaultExportSheets_group\\\",[23,5,[]],[23,10,[]],\\\"export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,9]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"showSetDetails\\\",\\\"show set details on export tables\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,1,[\\\"_data\\\",\\\"showSetDetails\\\"]],[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,8,[]],\\\"dispatch\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"features\\\",\\\"sortExportProductByIndex\\\"]]],null],true,false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"showSetDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"hideSetParents\\\",\\\"only show set details (hide parents)\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,1,[\\\"_data\\\",\\\"hideSetParents\\\"]],[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,8,[]],\\\"dispatch\\\"],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"features\\\",\\\"sortExportProductByIndex\\\"]]],null],true,false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"isGroupDocs\\\",\\\"show grouped documents into one\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,1,[\\\"_data\\\",\\\"isGroupDocs\\\"]],true,false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"showProductSetWithChoices\\\",\\\"show product set with choices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,1,[\\\"_data\\\",\\\"showProductSetWithChoices\\\"]],true,false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"hideShippingFee\\\",\\\"hide shipping fee\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,1,[\\\"_data\\\",\\\"hideShippingFee\\\"]],true,false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"groupDocumentsByTransporter\\\",\\\"group by transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@disabled\\\"],[[23,6,[]],true,false,[23,7,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"sortBy\\\",\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@disabled\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-documents-sort-filters-advanced\\\"]],[23,4,[]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"_data\\\",\\\"sortBy\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"_data\\\",\\\"sortBy\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@disabled\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-dispatch-sort-direction\\\"]],[23,4,[]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"_data\\\",\\\"sortByDirection\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,5,[]],\\\"defaultExportSheets\\\",\\\"specs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[true,[23,2,[\\\"_data\\\",\\\"shared\\\"]],\\\"list-selector\\\",[23,1,[]],\\\"_data.defaultExportSheets\\\",\\\"_data._key\\\",\\\"_data.description\\\",\\\"list-selector__item\\\",true,true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"defaultExportCustomSheets_group\\\",[23,5,[]],[23,10,[]],\\\"custom export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"defaultExportCustomSheets\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"export/worksheet/editor/customworksheet-nested\\\",[],[[\\\"@model\\\",\\\"@isExpanded\\\",\\\"@itemHasContentKey\\\",\\\"@translate\\\",\\\"@isViewable\\\",\\\"@removeListDropdown\\\",\\\"@specsCollection\\\",\\\"@onAfterAddItem\\\",\\\"@availableCustomWorksheets\\\"],[[23,1,[]],true,true,false,true,[23,0,[\\\"removeListDropdown\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"availableCustomWorksheets\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@rememberSelected\\\",\\\"@isBtn\\\",\\\"@translate\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@defaultLabel\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@onAfterAddItem\\\",\\\"@onSelect\\\"],[false,true,false,\\\"fas fa-plus\\\",[23,0,[\\\"availableCustomWorksheets\\\"]],[28,\\\"tt\\\",[\\\"add custom worksheet\\\"],null],\\\"_data._key\\\",\\\"_data.description\\\",\\\"specs/specs-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"custom worksheet\\\",true]]],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"addDefaultExportCustomSheets\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/export/worksheet/editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/blank-upload-status/component\", [\"exports\", \"@glimmer/component\", \"ramda-extension\"], function (_exports, _component, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwEInvoicesBlankUploadStatusComponent extends _component.default {\n    get statusLabel() {\n      const status = R_.dotPath('args.blank.status')(this);\n      if (!status) {\n        return 'tw_eInvoices_numbers_upload_blanks_not_uploaded';\n      }\n      return `tw_eInvoices_blankUploaded_${status}`;\n    }\n    get statusClassNames() {\n      const status = R_.dotPath('args.blank.status')(this);\n      if (status === 'successful') {\n        return 'is-successful';\n      }\n      return 'is-warning';\n    }\n  }\n  _exports.default = ExtensionsAppsTwEInvoicesBlankUploadStatusComponent;\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/blank-upload-status/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FfsAl+Fc\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,0,[\\\"statusClassNames\\\"]]]]],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"statusLabel\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/blank-upload-status/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/current-status/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\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 ExtensionsAppsTwEInvoicesCurrentStatusComponent = _exports.default = (_dec = Ember.inject.service('extensions/apps/tw/e-invoices'), _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service('helpers'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service('terminal'), _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember.computed('args.{document._data.twEInvoiceUserKey,custom.twEInvoiceUserKey}'), _dec11 = Ember.computed('args.custom.{printerKey,twEInvoicePrinterId}', 'refresh'), _class = class ExtensionsAppsTwEInvoicesCurrentStatusComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"eInvoicesService\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"helpersService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"terminalService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor7, this);\n      /** @type {{_data: {currentNumbers: {_data: {userKey: string}}[]}}} */\n      _initializerDefineProperty(this, \"availableCountData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"einvoicesPrintersTerminalsFilters\", _descriptor9, this);\n      _initializerDefineProperty(this, \"hasAnyEInvoicesPrinterTerminals\", _descriptor0, this);\n      _initializerDefineProperty(this, \"refresh\", _descriptor1, this);\n      _defineProperty(this, \"availableCountToIssueThreshold\", 50);\n    }\n    *setupTask() {\n      // const customData = this.args.custom\n      // const documentModel = this.args.document\n      // if (RA.isNotNil(customData) && documentModel && !customData?.twEInvoiceUserKey) {\n      //   set(customData, 'twEInvoiceUserKey', documentModel._data.twEInvoiceUserKey || '')\n      //   set(customData, 'twEInvoicePrinterId', documentModel._data.twEInvoicePrinterId || '')\n      // }\n\n      yield this.fetchTerminalsDataTask.perform();\n      yield this.fetchAvailableCountDataTask.perform();\n    }\n    *fetchTerminalsDataTask() {\n      const einvoicesPrintersTerminalsFilters = this.search.setupFilters({\n        adapterName: 'users/einvoices-printers-terminals/filters'\n      });\n      this.einvoicesPrintersTerminalsFilters = einvoicesPrintersTerminalsFilters;\n      const results = yield this.terminalService.fetchEInvoicesPrinterTerminalsTask.perform({\n        filters: einvoicesPrintersTerminalsFilters\n      });\n      if (results?.length > 0) {\n        this.hasAnyEInvoicesPrinterTerminals = true;\n      }\n    }\n    get userKey() {\n      const documentModel = this.args.document;\n      if (documentModel?._data?.twEInvoiceUserKey) {\n        return documentModel?._data?.twEInvoiceUserKey;\n      }\n      const customData = this.args.custom;\n      if (customData?.twEInvoiceUserKey) {\n        return customData?.twEInvoiceUserKey;\n      }\n      return '';\n    }\n    get disableIssueAndPrint() {\n      if (!this.userKey) {\n        return true;\n      }\n      if (this.hasInvalidPrinterSetup) {\n        return true;\n      }\n      if (!this.availableCountData?.hasRemainingCount) {\n        return true;\n      }\n      if (this.settings.getProp('tw_eInvoice_systemlead.enabled') && this.availableCountData?.availableCountToIssue <= 0) {\n        return true;\n      }\n      return false;\n    }\n    get disableReprint() {\n      if (!this.userKey) {\n        return true;\n      }\n      if (this.hasInvalidPrinterSetup) {\n        return true;\n      }\n      return false;\n    }\n    get hasInvalidPrinterSetup() {\n      if (!this.settings.getProp('tw_eInvoice_systemlead.enabled')) {\n        return false;\n      }\n      if (!this.userKey) {\n        return false;\n      }\n      const customData = this.args.custom || {};\n      if (!customData?.twEInvoicePrinterId) {\n        return true;\n      }\n      return false;\n    }\n    get isUnderThreshold() {\n      if (this.availableCountData.availableCountToIssue <= this.availableCountToIssueThreshold) {\n        return true;\n      }\n      return false;\n    }\n    *selectPrinterTerminalTask(selectedUserModel) {\n      const customData = this.args.custom || {};\n      if (RA.isNilOrEmpty(customData)) {\n        return _nventor.default.throw('no custom data passed in on the template');\n      }\n      const userKey = selectedUserModel?._data?._key || '';\n      Ember.set(customData, 'printerKey', selectedUserModel?._data?.printerKey); // @deprecated? prob not used but still kept for legacy purposes\n      Ember.set(customData, 'twEInvoicePrinterId', selectedUserModel?._data?.printerId);\n      Ember.set(customData, 'twEInvoiceAllowPrintingFrom', selectedUserModel?._data?.twEInvoiceAllowPrintingFrom);\n      this.refresh = Math.random();\n      yield this.fetchAvailableCountDataTask.perform(userKey);\n    }\n    *fetchAvailableCountDataTask(userKey) {\n      userKey = userKey || this.userKey;\n      if (this.args.isPrintOnly && !userKey) {\n        // dont fetch any available count data when printer user key has not yet been selected.\n        // it will only show available count for non-printing\n        return;\n      }\n      const fetchAvailableCountToIssueTaskOptions = {\n        userKey\n      };\n      this.availableCountData = yield this.eInvoicesService.fetchAvailableCountToIssueTask.perform(fetchAvailableCountToIssueTaskOptions);\n    }\n    get showAvailableCountData() {\n      if (this.args.isReprint) {\n        return false;\n      }\n      if (this.args.isPrintOnly && !this.userKey) {\n        return false;\n      }\n      if (RA.isNilOrEmpty(this.availableCountData)) {\n        return false;\n      }\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"eInvoicesService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"helpersService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"terminalService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"availableCountData\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"einvoicesPrintersTerminalsFilters\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"hasAnyEInvoicesPrinterTerminals\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"refresh\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTerminalsDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTerminalsDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"userKey\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"userKey\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasInvalidPrinterSetup\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"hasInvalidPrinterSetup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectPrinterTerminalTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"selectPrinterTerminalTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchAvailableCountDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchAvailableCountDataTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/current-status/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gMeWsEQ3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"&default\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[14,2,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"pod/get\\\",[\\\"tw_eInvoice_ecPay.enabled\\\"],null],[28,\\\"pod/get\\\",[\\\"tw_eInvoice_systemlead.enabled\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"tag\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupTask\\\"]]],null]]],[3,\\\"did-update\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"tw_eInvoice_ecPay.enabled\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"ecPay\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"tw_eInvoice_systemlead.enabled\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"systemlead\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showAvailableCountData\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"fetchAvailableCountDataTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"availableCountData\\\",\\\"hasRemainingCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"if\\\",[[23,0,[\\\"isUnderThreshold\\\"]],\\\"is-warning\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_available_count\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"availableCountData\\\",\\\"availableCountToIssue\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/info-tooltip\\\",[[12,\\\"class\\\",\\\"tw-einvoices-numbers-no-available-count\\\"]],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[\\\"tw_eInvoices_numbers_no_available_count\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/current-status/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/export-excel-btn/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/date\", \"client/mixins/big\", \"client/mixins/adapters-new\", \"client/mixins/crud\", \"client/utils/nventor\", \"ramda-extension\", \"ramda-adjunct\", \"ramda\"], function (_exports, _emberConcurrency, _date, _big, _adaptersNew, _crud, _nventor, R_, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_adaptersNew.default, _big.default, _crud.default, _date.default, {\n    crud: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    excel: Ember.inject.service(),\n    bigService: Ember.inject.service('big'),\n    tagName: '',\n    isExporting: false,\n    nextDispatchProcessCode: '',\n    exportOrdersTotal: true,\n    exportOrdersDetails: true,\n    exportPayOnDeliveryOrders: true,\n    exportPayOnDeliveryTransporter: true,\n    exportPaidOrders: true,\n    exportPaidTransporter: true,\n    exportTransportersTotal: true,\n    source: '',\n    sourceKey: '',\n    filtersAdapterName: 'channels/shop/campaigns/filters',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['dispatch/lists/processes'\n      // 'dispatch/lists/statuses'\n      ]);\n      this.set('filename', this.getDefaultFilename());\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      this.set('dispatchProcesses', dispatchProcesses);\n      const period = this.period;\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      this.set('dateStartZ', this.getMoment(dateStart).toISOString());\n      this.set('dateEndZ', this.getMoment(dateEnd).toISOString());\n      const campaignFilters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('campaignFilters', campaignFilters);\n      const specs = {\n        info: [{\n          column: '',\n          prop: '_index_'\n        }, {\n          column: this.intl.t('date'),\n          prop: 'dateZ',\n          transform: value => this.formatDate(value)\n        }, {\n          //   column: this.intl.t('invoice date'),\n          //   prop: 'doc.dateZ',\n          //   transform: (value) => this.formatDate(value)\n          // }, {\n          column: this.intl.t('dispatch date'),\n          prop: 'doc.dispatchDateZ',\n          transform: value => this.formatDate(value)\n        }, {\n          column: '收貨人',\n          // this.intl.t('contact person')\n          prop: 'contact'\n        },\n        // removed for now\n        // {\n        //   column: '收貨人地址', // this.intl.t('addresses')\n        //   prop: 'address'\n        // },\n        {\n          column: '收貨人電話',\n          // this.intl.t('telephone')\n          prop: 'telephone'\n        }, {\n          column: '單號',\n          // this.intl.t('order number')\n          prop: 'doc.ref'\n        }, {\n          column: '總計',\n          // this.intl.t('inclTotal')\n          prop: 'inclTotal',\n          transform: value => parseInt(value) || value\n        }, {\n          column: this.intl.t('tax number'),\n          prop: 'taxNumber'\n        }, {\n          column: this.intl.t('invoice number'),\n          prop: 'number'\n        }, {\n          column: this.intl.t('requestId'),\n          prop: 'requestId'\n        }, {\n          column: '發票日期',\n          // ???\n          prop: 'dateLocal',\n          transform: val => {\n            if (!val) {\n              return '';\n            }\n            return this.formatDate(val);\n          }\n        }, {\n          column: this.intl.t('provider'),\n          prop: 'provider',\n          transform: val => {\n            if (!val) {\n              return '';\n            }\n            return this.intl.t(val);\n          }\n        }, {\n          column: this.intl.t('status'),\n          prop: 'status',\n          transform: val => {\n            if (!val) {\n              return '';\n            }\n            return this.intl.t(val);\n          }\n        },\n        // removed for now\n        // {\n        //   column: this.intl.t('upload status'),\n        //   prop: 'uploadStatus',\n        //   transform: (val) => {\n        //     if (!val) {\n        //       return ''\n        //     }\n        //     return this.intl.t(val)\n        //   }\n        // },\n        {\n          column: this.intl.t('shop'),\n          prop: 'source'\n        }],\n        details: [{\n          column: '',\n          prop: ''\n        }, {\n          column: this.intl.t('qty'),\n          prop: 'qty',\n          transform: value => parseInt(value) || value\n        }, {\n          column: this.intl.t('items'),\n          prop: 'item'\n        }, {\n          column: this.intl.t('code'),\n          prop: 'itemCode'\n        }, {\n          column: '含稅價',\n          // this.intl.t('selling inclusive price')\n          prop: 'discInclPrice',\n          transform: value => Math.round(parseInt(value) || value, 0)\n        }, {\n          column: '含稅額',\n          // this.intl.t('inclusive amount')\n          prop: 'postDiscInclAmt',\n          transform: value => parseInt(value) || value\n        }]\n      };\n      this.set('specs', specs);\n    },\n    getDefaultFilename() {\n      const period = this.period;\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      return `export-${dateStart}-${dateEnd}`;\n    },\n    // fetchExportDataTask: task(function * ({ dispatchProcess, period, sourceKey }) {\n    //   // const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || []\n    //   // const dispatchProcess = R.find(R.pathEq(['_data', 'code'], 'dispatched'), dispatchProcesses)\n    //   // this.set('dispatchProcess', dispatchProcess)\n    //   // const period = this.get('period')\n\n    //   // const filterData = {\n    //   //   matches: [],\n    //   //   count: 500,\n    //   //   dispatchProcessesCriterias: dispatchProcess.getData('matches'),\n    //   //   dispatchProcess: dispatchProcess.getData('code'),\n    //   //   sourceKey,\n    //   //   sort: [{\n    //   //     by: 'transporterLabel',\n    //   //     direction: 'ASC'\n    //   //   }, {\n    //   //     by: 'transporterAccount',\n    //   //     direction: 'ASC'\n    //   //   }, {\n    //   //     by: 'timestampZ',\n    //   //     direction: 'ASC'\n    //   //   }]\n    //   // }\n    //   if (!RA.isNilOrEmpty(this.results)) {\n    //     return R.map(result => {\n    //       return result._data\n    //     })(this.results)\n    //   }\n\n    //   const filters = this.search.setupFilters({\n    //     adapterName: 'dispatch/filters',\n    //     defaultFiltersData: {\n    //       count: 5000,\n    //       dispatchProcessesCriterias: dispatchProcess.getData('criterias'),\n    //       dispatchProcess: dispatchProcess.getData('code'),\n    //       sourceKey,\n    //       sort: [{\n    //         by: 'transporterLabel',\n    //         direction: 'ASC'\n    //       }, {\n    //         by: 'transporterAccount',\n    //         direction: 'ASC'\n    //       }, {\n    //         by: 'timestampZ',\n    //         direction: 'ASC'\n    //       }]\n    //     }\n    //   })\n\n    //   let results = []\n    //   if (period) {\n    //     const { dateStart, dateEnd } = period\n    //     filters.setData('dispatchDateStart', dateStart)\n    //     filters.setData('dispatchDateEnd', dateEnd)\n\n    //     const path = 'api/protected/dispatch/processes/export'\n\n    //     const response = yield this.server.call('GET', path, filters.serialize())\n    //     results = R.pathOr([], ['data', 'docs'], response)\n    //   }\n\n    //   // this.set('results', results)\n\n    //   // this.setResultsAndSummaryData(results, 'unpaginatedResults')\n    //   return results\n    // }).restartable(),\n\n    exportTask: (0, _emberConcurrency.task)(function* /* filter */\n    () {\n      if (this.hasUpdateStatus && !this.nextDispatchProcessCode) {\n        this.set('errorMsg', 'please select');\n        return false;\n      }\n      this.set('isExporting', true);\n      let filename = this.filename;\n      if (!filename) {\n        filename = this.getDefaultFilename();\n      }\n      let serialized;\n      if (this.onFetchExportDataTask) {\n        // use passed in fetch task\n        serialized = yield this.onFetchExportDataTask();\n      }\n      const specs = this.specs;\n      const worksheets = [];\n      const successful = R.filter(R.propEq('status', this.constants.eInvoicesStatus.successful))(serialized);\n      worksheets.push({\n        sheetName: this.intl.t('export_eInvoices_successful'),\n        data: this._exportEInvoices(specs.info, [], successful, false)\n      });\n      const unsuccessful = R.reject(R.propEq('status', this.constants.eInvoicesStatus.successful))(serialized);\n      worksheets.push({\n        sheetName: this.intl.t('export_eInvoices_cancelled'),\n        data: this._exportEInvoices(specs.info, [], unsuccessful, false)\n      });\n      worksheets.push({\n        sheetName: this.intl.t('export_eInvoices_all'),\n        data: this._exportEInvoices(specs.info, [], serialized, false)\n      });\n      worksheets.push({\n        sheetName: this.intl.t('export_eInvoices_details'),\n        data: this._exportEInvoicesItemsSummary(specs.info, specs.details, successful, true)\n      });\n      if (!R.isEmpty(worksheets)) {\n        yield this.excel.exportFile({\n          worksheets,\n          title: filename\n        });\n        this.set('isExporting', false);\n        this.onCloseDialogAction();\n      } else {\n        this.set('isExporting', false);\n        const msg = this.intl.t('no data to export');\n        window.alert(msg);\n      }\n    }).drop(),\n    _exportEInvoices(specs, detailsSpecs = [], results, hasSummary = false) {\n      const intl = this.intl;\n      const columns = R.pluck('column', specs);\n      let detailProps = false;\n      if (!R.isEmpty(detailsSpecs)) {\n        detailProps = R.pluck('prop', detailsSpecs);\n      }\n      let index = 0;\n      // let totalQty = 0\n      let excelData = R.pipe(R.map(doc => {\n        index = index + 1;\n        let detailsRows = [];\n        detailsRows = R.pipe(R.propOr([], 'details'))(doc);\n        const docInfoRow = this._getDataBySpecs({\n          data: doc,\n          index\n        }, specs);\n        if (!detailProps) {\n          return [docInfoRow];\n        }\n        detailsRows = R.map(detailData => {\n          return this._getDataBySpecs({\n            data: detailData\n          }, detailsSpecs);\n        })(detailsRows);\n        return R.concat([docInfoRow], detailsRows);\n      }), R.unnest, R.concat([columns]))(results);\n      const grandTotal = parseInt(this.sumPropAndAutoRound(0, 'inclTotal', results)) || 0;\n      excelData = R.append(['', '', '', '', '', '', intl.t('total'), grandTotal], excelData);\n      return excelData;\n    },\n    _exportEInvoicesItemsSummary(specs, detailsSpecs = [], results, hasSummary = true) {\n      const intl = this.intl;\n      let detailProps = false;\n      if (!R.isEmpty(detailsSpecs)) {\n        detailProps = R.pluck('prop', detailsSpecs);\n      }\n\n      // let totalQty = 0\n      let excelData = [];\n      if (hasSummary && detailProps) {\n        const groupByItem = doc => {\n          const itemKey = R.prop('itemKey')(doc);\n          if (itemKey) {\n            return itemKey;\n          }\n          return R.prop('item')(doc);\n        };\n        const groupByPriceAndSetItem = detail => {\n          let price = R.prop('discInclPrice')(detail);\n          if (!price) {\n            price = 0;\n          }\n          if (this.bigService.eq(0, price)) {\n            price = 0;\n          }\n          if (detail.isSetChildOf) {\n            return JSON.stringify({\n              price,\n              setPrice: detail.setPrice\n            });\n          }\n          return JSON.stringify({\n            price\n          });\n        };\n        let grandTotal = 0;\n        results = R.map(doc => {\n          const allDetails = R.propOr([], 'details')(doc);\n          doc.details = R.map(detail => {\n            if (detail.isSetChildOf) {\n              const setParent = R.find(R.propEq('itemKey', detail.isSetChildOf))(allDetails);\n              if (setParent) {\n                detail.setParent = setParent;\n                detail.setPrice = parseInt(setParent.postDiscInclAmt) || 0;\n                detail.setItem = setParent.item;\n              }\n            }\n            return detail;\n          })(allDetails);\n          return doc;\n        })(results);\n        excelData = R.pipe(R.pluck('details'), R.flatten, R.groupBy(groupByItem), R.mapObjIndexed(groupData => {\n          const groupTotalQty = parseInt(this.sumPropAndAutoRound(0, 'qty', groupData)) || 0;\n          const groupTotalInclAmt = parseInt(this.sumPropAndAutoRound(0, 'postDiscInclAmt', groupData)) || 0;\n          const groupedByPrice = R.groupBy(groupByPriceAndSetItem)(groupData);\n          const item = R.pipe(_nventor.default.safeHeadOr({}), R.propOr('', 'item'))(groupData);\n          const itemCode = R.pipe(_nventor.default.safeHeadOr({}), R.propOr('', 'itemCode'))(groupData);\n          const byPricesRows = R.pipe(R.mapObjIndexed((byPriceGroupData, groupData) => {\n            groupData = JSON.parse(groupData);\n            let groupPrice = groupData.price;\n            let setPrice = groupData.setPrice;\n            const groupTotalQty = parseInt(this.sumPropAndAutoRound(0, 'qty', byPriceGroupData)) || 0;\n            const groupTotalInclAmt = parseInt(this.sumPropAndAutoRound(0, 'postDiscInclAmt', byPriceGroupData)) || 0;\n            groupPrice = R.pipe(this.bigService.toFixed(0), parseInt)(groupPrice);\n            const itemName = item;\n            if (setPrice) {\n              const setItem = R.pipe(_nventor.default.safeHeadOr({}), R.propOr('', 'setItem'))(byPriceGroupData);\n              setPrice = R.pipe(this.bigService.toFixed(0), parseInt)(setPrice);\n              return [itemName, itemCode, groupTotalQty, groupPrice, groupTotalInclAmt, '', setPrice, setItem];\n            }\n            return [itemName, itemCode, groupTotalQty, groupPrice, groupTotalInclAmt];\n          }), R.values)(groupedByPrice);\n          grandTotal = grandTotal + groupTotalInclAmt;\n          return byPricesRows;\n          // let mainRow = [\n          //   groupTotalQty,\n          //   item,\n          //   itemCode,\n          //   groupTotalInclAmt\n          // ]\n\n          // if (byPricesRows.length > 1) {\n          //   mainRow = R.concat([mainRow])(byPricesRows)\n          //   return mainRow\n          // }\n\n          // return [mainRow]\n        }), R.values, R.unnest, R.concat([[intl.t('product'), intl.t('code'), intl.t('qty'), intl.t('price'), intl.t('inclusive amount'), '', intl.t('product_set_price'), intl.t('product_set')]]), R.concat(excelData), R.append([]))(results);\n        excelData = R.append(['', '', '', intl.t('total'), grandTotal], excelData);\n      }\n      return excelData;\n    },\n    _getDataBySpecs({\n      data,\n      inclTotalBig = false,\n      index,\n      today\n    }, specs) {\n      return R.map(spec => {\n        let props = R.prop('prop', spec);\n        if (!R.is(Array, props)) {\n          props = [props];\n        }\n        const values = R.map(prop => {\n          return this._getPropData({\n            today,\n            index,\n            data,\n            spec,\n            prop,\n            inclTotalBig\n          });\n        })(props);\n        if (props.length > 1) {\n          const joinWith = R.prop('joinWith', spec) || '-';\n          return R.pipe(R.reject(RA.isNilOrEmpty), R.join(joinWith))(values);\n        }\n        return _nventor.default.safeHeadOr('', values);\n      }, specs);\n    },\n    _getPropData({\n      today,\n      index,\n      data,\n      spec,\n      prop,\n      inclTotalBig\n    }) {\n      const intl = this.intl;\n      if (prop == null) {\n        return '';\n      }\n      if (spec.returnProp) {\n        return R.propOr('', spec.returnProp)(data);\n      }\n      const transform = R.prop('transform')(spec);\n      let value = R_.dotPathOr('', prop, data);\n      if (prop === '_index_') {\n        value = index;\n      }\n      if (prop === '_today_') {\n        return today;\n      }\n      if (prop === 'paymentMethodKey') {\n        const v = R_.dotPathOr('', prop, data);\n        if (v) {\n          value = intl.t(v);\n        }\n      }\n      if (prop === '_inclTotal_' && inclTotalBig) {\n        value = inclTotalBig.toFixed(0);\n      }\n      if (transform) {\n        value = transform(value, data);\n      }\n      return value;\n    },\n    exportData({\n      results,\n      filterByProp,\n      filterValue,\n      isReject = false,\n      fromNo,\n      toNo\n    } = {}) {\n      if (fromNo != null && toNo != null) {\n        results = R.pipe(R.drop(fromNo), R.take(toNo))(results);\n      }\n      let filterByPath = filterByProp;\n      if (!R.is(Array, filterByProp)) {\n        filterByPath = [filterByProp];\n      }\n      if (filterByProp) {\n        if (isReject) {\n          results = R.reject(R.pathEq(filterByPath, filterValue))(results);\n        } else {\n          results = R.filter(R.pathEq(filterByPath, filterValue))(results);\n        }\n      }\n      return results;\n    },\n    hasUpdateStatus: Ember.computed('exportOption', function () {\n      if (this.exportOption === 'exportAndUpdateStatus') {\n        return true;\n      }\n      return false;\n    }),\n    actions: {\n      cancel(onCloseDialogAction) {\n        onCloseDialogAction();\n      },\n      selectDispatchProcess(dispatchProcess) {\n        this.set('dispatchProcess', dispatchProcess);\n      },\n      loadShopSource(shop) {\n        this.set('sourceKey', shop.getData('_key'));\n      },\n      unloadShopSource() {\n        this.set('sourceKey', '');\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/export-excel-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"3uzh/P3u\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"date\\\",\\\"date\\\",\\\"eInvoices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isDateRange\\\",\\\"@isReadonly\\\"],[\\\"dateStartZ\\\",[23,0,[]],[23,0,[\\\"dateStartZ\\\"]],true,true]]],[0,\\\"\\\\n    ~\\\\n    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isDateRange\\\",\\\"@isReadonly\\\"],[\\\"dateEndZ\\\",[23,0,[]],[23,0,[\\\"dateEndZ\\\"]],true,true]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"file name\\\",\\\"fileName\\\",\\\"eInvoices\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"filename\\\"]]]]],false],[0,\\\" .xlsx\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[28,\\\"or\\\",[[24,[\\\"exportTask\\\",\\\"isRunning\\\"]],[24,[\\\"isExporting\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[24,[\\\"onCloseDialogAction\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[28,\\\"or\\\",[[24,[\\\"exportTask\\\",\\\"isRunning\\\"]],[24,[\\\"isExporting\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"exportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/export-excel-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/invoice-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13; // required params\n  // @document\n  // @invalid\n  // @toIssue\n  // @onCloseDialogAction\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 ExtensionsAppsTwEInvoicesInvoiceEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('terminal'), _dec4 = Ember.inject.service('extensions/apps/tw/e-invoices'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._action, _dec15 = Ember._action, _class = class ExtensionsAppsTwEInvoicesInvoiceEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"terminalService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"eInvoicesService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n      _initializerDefineProperty(this, \"issueErrors\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isReadonly\", _descriptor7, this);\n      _initializerDefineProperty(this, \"custom\", _descriptor8, this);\n      _initializerDefineProperty(this, \"toIssue\", _descriptor9, this);\n      _initializerDefineProperty(this, \"invalid\", _descriptor0, this);\n      _initializerDefineProperty(this, \"noAvailableNumbers\", _descriptor1, this);\n      _initializerDefineProperty(this, \"invalidCount\", _descriptor10, this);\n      _initializerDefineProperty(this, \"toIssueCount\", _descriptor11, this);\n      _initializerDefineProperty(this, \"hasSetup\", _descriptor12, this);\n      _initializerDefineProperty(this, \"document\", _descriptor13, this);\n      this.crud.addLists(this, ['extensions/apps/tw/e-invoices/carrier-types']);\n    }\n    *setupTask() {\n      if (this.args.isAttentionRequired) {\n        yield this.setupForAttentionRequiredTask.perform();\n        this.hasSetup = true;\n        return;\n      }\n      yield this.setupForDocumentWithoutInvoiceTask.perform();\n      this.hasSetup = true;\n    }\n    _setupCustomData(document) {\n      let telephone = document?._data?.billingTelephone;\n      if (!telephone) {\n        telephone = document?._data?.telephone;\n      }\n      const customData = Ember.Object.create();\n      Ember.set(customData, 'telephone', telephone);\n      Ember.set(customData, 'taxNumber', document?._data?.taxNumber);\n      Ember.set(customData, 'companyName', document?._data?.companyName);\n      Ember.set(customData, 'email', document?._data?.email);\n      Ember.set(customData, 'address', document?._data?.address);\n      Ember.set(customData, 'twEInvoiceCarrierType', document?._data?.twEInvoiceCarrierType || '');\n      Ember.set(customData, 'twEInvoiceCarrierId', document?._data?.twEInvoiceCarrierId || '');\n      Ember.set(customData, 'twEInvoicePrinterId', document?._data?.twEInvoicePrinterId || '');\n      Ember.set(customData, 'twEInvoiceAllowPrintingFrom', document?._data?.twEInvoiceAllowPrintingFrom || '');\n      Ember.set(customData, 'twEInvoiceUserKey', document?._data?.twEInvoiceUserKey || '');\n      Ember.set(this, 'custom', customData);\n    }\n    setupTaxDetails(custom, companyDetails) {\n      if (companyDetails.isUnsuccessful) {\n        Ember.set(custom, 'companyName', '');\n        Ember.set(custom, 'twEInvoiceCarrierId', '');\n      }\n      const value = companyDetails.value || companyDetails.taxNumber || '';\n      const isMobileBarcode = value.startsWith('/');\n      if (!value || isMobileBarcode && model?._data?.twEInvoiceCarrierType === 'b2b') {\n        return;\n      }\n      let twEInvoiceCarrierType = '';\n      const hasCompanyDetails = RA.isNotNilOrEmpty(companyDetails);\n      if (hasCompanyDetails) {\n        const companyName = companyDetails?.name || '';\n        const taxNumber = companyDetails?.taxNumber || '';\n        twEInvoiceCarrierType = 'b2b';\n        Ember.set(custom, 'companyName', companyName);\n        Ember.set(custom, 'taxNumber', taxNumber);\n        Ember.set(custom, 'twEInvoiceCarrierId', '');\n      } else {\n        Ember.set(custom, 'companyName', '');\n        Ember.set(custom, 'taxNumber', '');\n      }\n      if (isMobileBarcode) {\n        twEInvoiceCarrierType = 'mobile';\n        Ember.set(custom, 'twEInvoiceCarrierId', value);\n        Ember.set(custom, 'taxNumber', '');\n      } else {\n        Ember.set(custom, 'twEInvoiceCarrierId', '');\n      }\n      Ember.set(custom, 'twEInvoiceCarrierType', twEInvoiceCarrierType);\n    }\n    *setupForAttentionRequiredTask() {\n      let document = this.document;\n      const invoice = this.args.invoice;\n      const docKey = invoice?._data?.doc?._key;\n      if (!document) {\n        // fetch document\n        document = yield this.crud.findTask.perform({\n          adapterName: 'documents/sales/invoices',\n          appendPath: `/${docKey}`\n        });\n        this.document = document;\n      }\n      this._setupCustomData(document);\n      // already has invoice\n      if (invoice) {\n        // set(invoice, '_data.doc', document)\n        this.toIssue = [invoice];\n      }\n    }\n    *setupForDocumentWithoutInvoiceTask() {\n      const document = this.document;\n      this._setupCustomData(document);\n      const filters = this.search.setupFilters({\n        adapterName: 'extensions/apps/tw/e-invoices/filters',\n        defaultFiltersData: {}\n      });\n      this.filters = filters;\n      const docKey = document?._data?._key;\n\n      // @NOTE: will set component.toIssue in service. ideally should be moved out of service\n      yield this.eInvoicesService.fetchToIssueEInvoicesTask.perform({\n        component: this,\n        appendPath: docKey,\n        filters: this.filters\n      });\n    }\n    isAddressRequired() {\n      if (this.custom?.taxNumber) {\n        return true;\n      }\n      return false;\n    }\n    printBtnLabel() {\n      if (!this.hasPrintBtnLabel) {\n        return '';\n      }\n      return 'tw_print_eInvoices_now';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"terminalService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"eInvoicesService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"issueErrors\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isReadonly\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, false, this.args.isReadonly);\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"custom\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"toIssue\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"invalid\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"noAvailableNumbers\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"invalidCount\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"toIssueCount\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"hasSetup\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"document\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.document || null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setupCustomData\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"_setupCustomData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupTaxDetails\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTaxDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupForAttentionRequiredTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupForAttentionRequiredTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupForDocumentWithoutInvoiceTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupForDocumentWithoutInvoiceTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/invoice-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uuPjGQA2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"statusComponent\\\",\\\"@invoice\\\",\\\"@onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasSetup\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"printCustomInfo\\\",\\\"eInvoice\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,0,[\\\"document\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"isRequired\\\"],[\\\"email\\\",[24,[\\\"issueErrors\\\"]],\\\"email\\\",true]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"custom\\\",\\\"email\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"telephone\\\",[24,[\\\"issueErrors\\\"]],\\\"telephone\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"custom\\\",\\\"telephone\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"tw_eInvoice_carrier_type_optional\\\",[24,[\\\"issueErrors\\\"]],\\\"twEInvoiceCarrierType\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"classNames\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-carrier-types\\\"]],[23,0,[\\\"custom\\\"]],\\\"list-selector\\\",\\\"twEInvoiceCarrierType\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector list-selector--horizontal\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"custom\\\",\\\"twEInvoiceCarrierType\\\"]],\\\"b2b\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"tax number\\\",[23,5,[]],\\\"taxNumber\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"extensions/apps/tw/e-invoices/tax-number-input\\\",[],[[\\\"@isReadonly\\\",\\\"@modelData\\\",\\\"@setupTaxDetails\\\",\\\"@parentComponent\\\"],[[23,4,[]],[23,0,[\\\"custom\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setupTaxDetails\\\"]],[24,[\\\"custom\\\"]]],null],[23,0,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"custom\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"tw_eInvoice_company_name\\\",[23,5,[]],\\\"companyName\\\",\\\"documents\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"translatePlaceholder\\\",\\\"placeholder\\\",\\\"value\\\"],[[23,4,[]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"auto\\\"],null],\\\" \\\",[23,0,[\\\"custom\\\",\\\"contact\\\"]]],null],[23,0,[\\\"custom\\\",\\\"companyName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"custom\\\",\\\"twEInvoiceCarrierType\\\"]],[28,\\\"not-eq\\\",[[23,0,[\\\"custom\\\",\\\"twEInvoiceCarrierType\\\"]],\\\"b2b\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"tw_eInvoice_carrier_id\\\",[24,[\\\"issueErrors\\\"]],\\\"twEInvoiceCarrierId\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"custom\\\",\\\"twEInvoiceCarrierId\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"toIssue\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@docs\\\"],[[23,0,[\\\"toIssue\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"invalid\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@docs\\\"],[[23,0,[\\\"invalid\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/footer-btns\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,[[\\\"classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[28,\\\"or\\\",[[23,0,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"eInvoicesService\\\",\\\"issueTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"eInvoicesService\\\",\\\"issueAndPrintTask\\\",\\\"isRunning\\\"]]],null],[23,3,[]]]]],false],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"extensions/apps/tw/e-invoices/current-status\\\",[],[[\\\"@custom\\\",\\\"@document\\\",\\\"@isPrintOnly\\\"],[[23,0,[\\\"custom\\\"]],[23,0,[\\\"document\\\"]],[23,0,[\\\"document\\\",\\\"_data\\\",\\\"twEInvoicePrint\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"document\\\",\\\"_data\\\",\\\"twEInvoicePrint\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@defaultLabel\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[28,\\\"tt\\\",[\\\"select einvoice printer terminal\\\"],null],\\\"_data.name\\\",\\\"_data._key\\\",[23,1,[\\\"einvoicesPrintersTerminalsFilters\\\",\\\"results\\\"]],false,[23,0,[\\\"custom\\\",\\\"twEInvoiceUserKey\\\"]],[28,\\\"perform\\\",[[23,1,[\\\"selectPrinterTerminalTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"custom\\\",\\\"twEInvoiceAllowPrintingFrom\\\"]],[23,0,[\\\"custom\\\",\\\"twEInvoiceUserKey\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"custom\\\",\\\"twEInvoiceAllowPrintingFrom\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasInvalidPrinterSetup\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_no_printer_setup\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"iconRight\\\",\\\"icon\\\",\\\"label\\\",\\\"class\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"fas fa-print\\\",\\\"fas fa-file-invoice-dollar\\\",\\\"tw_issue_print_eInvoice\\\",\\\"is-primary\\\",[23,1,[\\\"disableIssueAndPrint\\\"]],[28,\\\"or\\\",[[23,0,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"eInvoicesService\\\",\\\"issueAndPrintTask\\\",\\\"isRunning\\\"]],[23,1,[\\\"fetchAvailableCountDataTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"eInvoicesService\\\",\\\"issueAndPrintTask\\\"]],[23,0,[]],[23,3,[]],[23,0,[\\\"document\\\"]],[23,0,[\\\"custom\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"class\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"fas fa-file-invoice-dollar\\\",\\\"tw_print_eInvoices_now\\\",\\\"is-primary\\\",[28,\\\"or\\\",[[28,\\\"if\\\",[[23,1,[\\\"availableCountData\\\",\\\"hasRemainingCount\\\"]],false,true],null],[23,0,[\\\"invalid\\\"]],[28,\\\"and\\\",[[28,\\\"pod/get\\\",[\\\"tw_eInvoice_systemlead.enabled\\\"],null],[28,\\\"lte\\\",[[23,1,[\\\"availableCountData\\\",\\\"availableCountToIssue\\\"]],0],null]],null]],null],[28,\\\"or\\\",[[23,0,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"eInvoicesService\\\",\\\"issueTask\\\",\\\"isRunning\\\"]],[23,1,[\\\"fetchAvailableCountDataTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"eInvoicesService\\\",\\\"issueTask\\\"]],[23,0,[]],[23,3,[]],[23,0,[\\\"document\\\"]],[23,0,[\\\"custom\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/invoice-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices-cancel\", [\"exports\", \"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _invoices, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @TODO: move fetchInvoice and cancelInvoice out of this mixin,\n  // those are for the outer components whereas the other functions are for inner components\n  // outer component: makes use of 'invoices' (array of invoices for given masterKey)\n  // inner component: only makes use of 1 invoice\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _invoices.default, {\n    cancelInvoiceTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const number = model.getData('number');\n      const msg = this.intl.t('are you sure you want to cancel invoice number') + ': ' + number + '?';\n      if (window.confirm(msg)) {\n        const adapterName = 'extensions/apps/tw/e-invoices';\n        const appendPath = `?mode=update`;\n        const dirty = this.setupDirty({\n          adapterName,\n          model\n        });\n        dirty.setData('status', 'cancelled');\n        dirty.setData('cancelled', 1);\n        yield this.replaceRecordTask.perform({\n          adapterName,\n          model: dirty,\n          appendPath\n        });\n        // this.get('onCancelInvoiceAction')(saved)\n        this.set('isEditing', false);\n      }\n    }).drop(),\n    undoCancelInvoiceTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const adapterName = 'extensions/apps/tw/e-invoices';\n      const appendPath = `?mode=update`;\n      const dirty = this.setupDirty({\n        adapterName,\n        model\n      });\n      dirty.setData('status', 'printed');\n      dirty.setData('cancelled', 0);\n      yield this.replaceRecordTask.perform({\n        adapterName,\n        model: dirty,\n        appendPath\n      });\n      this.set('isEditing', false);\n    }).drop(),\n    actions: {\n      edit() {\n        this.set('isEditing', true);\n      }\n\n      // async cancelInvoice () {\n\n      // },\n\n      // async undoCancelInvoice () {\n      //   const model = this.get('model')\n      //   const adapterName = 'extensions/apps/tw/e-invoices'\n      //   const appendPath = `?mode=update`\n      //   const dirty = this.setupDirty({\n      //     adapterName,\n      //     model\n      //   })\n      //   dirty.setData('status', 'printed')\n      //   dirty.setData('cancelled', 0)\n\n      //   await this.get('replaceRecordTask').perform({\n      //     adapterName,\n      //     model: dirty,\n      //     appendPath\n      //   })\n      //   this.set('isEditing', false)\n      // }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices-printer\", [\"exports\", \"ramda\", \"ember-concurrency\", \"client/mixins/crud\"], function (_exports, R, _emberConcurrency, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @TODO: move fetchInvoice and cancelInvoice out of this mixin,\n  // those are for the outer components whereas the other functions are for inner components\n  // outer component: makes use of 'invoices' (array of invoices for given masterKey)\n  // inner component: only makes use of 1 invoice\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, {\n    intl: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    printError: '',\n    // old..to remove\n    printErrors: '',\n    notifyEInvoiceTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, invoice, custom = {}) {\n      const adapterName = this.adapterName;\n      const data = {\n        _key: invoice.getData('_key'),\n        email: custom.email,\n        telephone: custom.telephone\n      };\n      const adapter = this.server.getAdapter(adapterName);\n      const path = `${adapter.resourcePath}/notify`;\n      try {\n        const response = yield this.server.call('POST', path, data);\n        onCloseDialogAction();\n        return response;\n      } catch (err) {\n        this.setValidationErrors('notifyErrors', err);\n      }\n    }).drop(),\n    queryEInvoiceTask: (0, _emberConcurrency.task)(function* (invoice) {\n      // const adapterName = this.adapterName\n      // const data = {\n      //   _key: invoice.getData('_key')\n      // }\n      // const adapter = this.server.getAdapter(adapterName)\n      // const path = `${adapter.resourcePath}`\n      // try {\n      //   const response = yield this.server.call('PATCH', path, data)\n\n      //   return response\n      // } catch (err) {\n      //   this.setValidationErrors('notifyErrors', err)\n      // }\n    }).enqueue().maxConcurrency(1),\n    removeEInvoiceTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, models) {\n      const adapterName = 'extensions/apps/tw/e-invoices';\n      const errorsProp = 'cancelErrors';\n      R.forEach(model => {\n        model.setData('reason', model.reason);\n        model.setData('status', this.constants.eInvoicesStatus.pendingCancellation);\n      })(models);\n      yield this.removeRecordTask.perform({\n        adapterName,\n        batch: models,\n        errorsProp,\n        noConfirm: true\n      });\n      onCloseDialogAction();\n    }),\n    actions: {\n      printInvoice(onCloseDialogAction, dialog) {\n        onCloseDialogAction();\n        const self = this;\n        const number = dialog.customInvoiceNumber;\n        const dateZ = dialog.customInvoiceDateZ;\n        const document = self.get('document');\n        const invoices = [document];\n        self.get('printAllInvoicesTask').perform(invoices, number, dateZ);\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * mixin for dispatch functionality\n   */\n  // @TODO: move fetchInvoice and cancelInvoice out of this mixin,\n  // those are for the outer components whereas the other functions are for inner components\n  // outer component: makes use of 'invoices' (array of invoices for given masterKey)\n  // inner component: only makes use of 1 invoice\n  var _default = _exports.default = Ember.Mixin.create({\n\n    // isSaved: computed('model.{isDeleted,_data.status}', function () {\n    //   if (this.get('model.isDeleted')) {\n    //     return false\n    //   }\n\n    //   if (this.get('model._data.status') === 'printed' || this.get('model._data.status') === 'pending') {\n    //     return true\n    //   }\n\n    //   return false\n    // }),\n\n    // isPending: computed('model._data.status', function () {\n    //   if (this.get('model._data.status') === 'pending') {\n    //     return true\n    //   }\n\n    //   return false\n    // }),\n\n    // isCancelled: computed('model._data.status', function () {\n    //\n    //   if (this.get('model._data.status') === 'cancelled') {\n    //\n    //     return true;\n    //   }\n    //\n    //   return false;\n    // }),\n\n    // getInvoiceCacheId (model) {\n    //   if (typeof model === 'object') {\n    //     return model.getData('_key')\n    //   }\n\n    //   // invoice is masterKey\n    //   return `tw_invoices_${model}`\n    // }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"client/mixins/e-invoices-list-by\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\"], function (_exports, _date, _crud, _eInvoicesListBy, _emberConcurrency, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../../../../../utils/nventor'\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _eInvoicesListBy.default, {\n    applicationService: Ember.inject.service('application'),\n    hasStatement: false,\n    adapterName: 'extensions/apps/tw/e-invoices',\n    filtersAdapterName: 'extensions/apps/tw/e-invoices/filters',\n    init() {\n      this._super(...arguments);\n      let period = this.period;\n      if (!period) {\n        period = this.get('tab.period');\n        this.set('period', period);\n      }\n      if (RA.isNilOrEmpty(period)) {\n        return;\n      }\n      let filters = this.filters || {};\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.search.setupFilters({\n          adapterName: this.filtersAdapterName\n        });\n        this.set('filters', filters);\n      }\n      filters.setData('provider', this.provider);\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      const status = ['all'];\n      let adapterName = this.adapterName;\n      let appendPath = '';\n      const podKey = this.podKey;\n      if (podKey) {\n        appendPath = `/${podKey}`;\n      }\n      const selectedTableView = this?.selectedTableView || 'invoice';\n      // don't allow admin to use view by document for now?\n      if (selectedTableView === 'document') {\n        adapterName = 'extensions/apps/tw/e-invoices/docs-for-display';\n      }\n      this.listByTask.perform({\n        filters,\n        adapterName,\n        appendPath,\n        dateStart,\n        dateEnd,\n        status\n      });\n      if (this.hasStatement) {\n        this.fetchStatementTask.perform(period);\n      }\n    },\n    fetchStatementTask: (0, _emberConcurrency.task)(function* (period) {\n      const data = R.clone(period);\n      const selectedTableView = this?.selectedTableView || 'invoice';\n      data.viewType = selectedTableView;\n      if (selectedTableView !== 'document') {\n        data.provider = this.provider;\n      }\n      const adapterName = this.adapterName;\n      const adapter = this.server.getAdapter(adapterName);\n      let resourcePath = `${adapter.resourcePath}/statement`;\n      const podKey = this.podKey;\n      if (podKey) {\n        resourcePath = `${adapter.resourcePath}/statement/${podKey}`;\n      }\n      const response = yield this.server.call('GET', resourcePath, data);\n      this.set('statement', response.data);\n      return response.data;\n    }),\n    fetchUnpaginatedDataTask: (0, _emberConcurrency.task)(function* (period, {\n      rawResponse = false\n    } = {}) {\n      const filters = this?.filters || {};\n      if (RA.isNilOrEmpty(filters)) {\n        return;\n      }\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      // const status = ['successful']\n      // const adapterName = this.adapterName\n      // const appendPath = '/docs'\n\n      filters.setData('dateStart', dateStart);\n      filters.setData('dateEnd', dateEnd);\n      filters.setData('provider', this.provider);\n      const searchSettings = {\n        adapterName: 'extensions/apps/tw/e-invoices/docs',\n        resultsProperty: 'exportResults',\n        resultsToggle: '',\n        query: '',\n        filters,\n        rawResponse\n      };\n      return yield this.searchRecordsTask.perform(searchSettings);\n    }),\n    _listByTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      adapterName,\n      appendPath,\n      match,\n      abandoned,\n      status,\n      date,\n      dateStart,\n      dateEnd,\n      query = '',\n      contact,\n      contactKey,\n      sourceKey,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (abandoned) {\n        filters.setData('abandoned', abandoned);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (status) {\n        if (!R.is(Array, status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        query = date;\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }).drop()\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity-by-documents/component\", [\"exports\", \"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices-printer\", \"client/mixins/date\", \"ramda\", \"ramda-extension\"], function (_exports, _invoicesPrinter, _date, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _invoicesPrinter.default, {\n    hideExcl: true,\n    adapterName: 'extensions/apps/tw/e-invoices',\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['dispatch/lists/processes']);\n    },\n    isDispatchedDispatchProcess: Ember.computed('crud.lists.dispatch-lists-processes.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      return R.find(R.pathEq(['_data', 'code'], 'dispatched'), dispatchProcesses);\n    }),\n    actions: {\n      toggleView() {\n        this.toggleProperty('showDetails');\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity-by-documents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PRIzuIiC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onCloseDialogAction\\\",\\\"document\\\",\\\"index\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onListByTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-table-align-middle u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/document-display\\\",null,[[\\\"podKey\\\",\\\"hasManagementBtns\\\",\\\"results\\\",\\\"index\\\",\\\"document\\\",\\\"cancelErrors\\\",\\\"onQueryEInvoiceTask\\\",\\\"onNotifyEInvoiceTask\\\",\\\"onRemoveEInvoiceTask\\\"],[[24,[\\\"podKey\\\"]],[24,[\\\"hasManagementBtns\\\"]],[24,[\\\"results\\\"]],[23,6,[]],[23,5,[]],[24,[\\\"cancelErrors\\\"]],[24,[\\\"queryEInvoiceTask\\\"]],[24,[\\\"notifyEInvoiceTask\\\"]],[24,[\\\"removeEInvoiceTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"lastSearchSettings\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"isRunning\\\",\\\"label\\\"],[[24,[\\\"fetchUnpaginatedDataTask\\\",\\\"isRunning\\\"]],\\\"export invoices data\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/export-excel-btn\\\",null,[[\\\"onFetchExportDataTask\\\",\\\"dispatchProcess\\\",\\\"period\\\",\\\"onCloseDialogAction\\\",\\\"results\\\"],[[28,\\\"perform\\\",[[24,[\\\"onFetchUnpaginatedDataTask\\\"]],[24,[\\\"period\\\"]],[28,\\\"hash\\\",null,[[\\\"rawResponse\\\"],[true]]]],null],[24,[\\\"isDispatchedDispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,4,[]],[24,[\\\"exportResults\\\",\\\"docs\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity-by-documents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity/component\", [\"exports\", \"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices-printer\", \"client/mixins/date\", \"ramda\", \"ramda-extension\"], function (_exports, _invoicesPrinter, _date, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _invoicesPrinter.default, {\n    crud: Ember.inject.service(),\n    hideExcl: true,\n    adapterName: 'extensions/apps/tw/e-invoices',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['dispatch/lists/processes']);\n    },\n    isDispatchedDispatchProcess: Ember.computed('crud.lists.dispatch-lists-processes.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      return R.find(R.pathEq(['_data', 'code'], 'dispatched'), dispatchProcesses);\n    }),\n    actions: {\n      toggleView() {\n        this.toggleProperty('showDetails');\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VH8aYM8z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@filters\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onListByTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@results\\\",\\\"@allowShowStarred\\\",\\\"@filters\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@tableViewOptions\\\"],[[23,5,[]],\\\"new-table-view--data\\\",\\\"extensions/apps/tw/e-invoices/table-view/detail-row\\\",[23,6,[\\\"results\\\"]],false,[23,6,[]],[23,7,[]],[23,8,[]],[28,\\\"hash\\\",null,[[\\\"hasManagementBtns\\\",\\\"cancelErrors\\\",\\\"onQueryEInvoiceTask\\\",\\\"onNotifyEInvoiceTask\\\",\\\"onRemoveEInvoiceTask\\\"],[[24,[\\\"hasManagementBtns\\\"]],[24,[\\\"cancelErrors\\\"]],[24,[\\\"queryEInvoiceTask\\\"]],[24,[\\\"notifyEInvoiceTask\\\"]],[24,[\\\"removeEInvoiceTask\\\"]]]]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"lastSearchSettings\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"isRunning\\\",\\\"label\\\"],[[24,[\\\"fetchUnpaginatedDataTask\\\",\\\"isRunning\\\"]],\\\"export invoices data\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/export-excel-btn\\\",null,[[\\\"onFetchExportDataTask\\\",\\\"dispatchProcess\\\",\\\"period\\\",\\\"onCloseDialogAction\\\",\\\"results\\\"],[[28,\\\"perform\\\",[[24,[\\\"onFetchUnpaginatedDataTask\\\"]],[24,[\\\"period\\\"]],[28,\\\"hash\\\",null,[[\\\"rawResponse\\\"],[true]]]],null],[24,[\\\"isDispatchedDispatchProcess\\\"]],[24,[\\\"period\\\"]],[23,4,[]],[24,[\\\"exportResults\\\",\\\"docs\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"w2feFs3k\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_captured\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_captured_invoices\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"capturedTotals\\\",\\\"capturedInvoicesInclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_captured_returns\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"capturedTotals\\\",\\\"capturedReturnsInclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_uncaptured_total\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"capturedTotals\\\",\\\"uncapturedInclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/captured-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    bigService: Ember.inject.service('big'),\n    dispatchedInclTotal: Ember.computed('statement.statusTotals.{inclTotal,notYetInvoiced.inclTotal}', function () {\n      const inclTotalBig = this.bigService.newBig(this?.statement?.statusTotals?.inclTotal);\n      const notYetInvoicedInclTotalBig = this.bigService.newBig(this?.statement?.statusTotals?.notYetInvoiced?.inclTotal);\n      return this.bigService.newBig(inclTotalBig).plus(notYetInvoicedInclTotalBig).toFixed();\n    }),\n    dispatchedCount: Ember.computed('statement.statusTotals.{count,notYetInvoiced.count}', function () {\n      const countBig = this.bigService.newBig(this?.statement?.statusTotals?.count);\n      const notYetInvoicedCountBig = this.bigService.newBig(this?.statement?.statusTotals?.notYetInvoiced?.count);\n      return this.bigService.newBig(countBig).plus(notYetInvoicedCountBig).toFixed();\n    })\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yciDR03O\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@statement\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onFetchStatementTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"statement\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_count\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total_dispatched\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,0,[\\\"dispatchedInclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold has-text-right\\\"],[8],[1,[23,0,[\\\"dispatchedCount\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total_invoices_amount\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"statusTotals\\\",\\\"inclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold has-text-right\\\"],[8],[1,[23,1,[\\\"statusTotals\\\",\\\"count\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-indent\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total_invoices_successful\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"statusTotals\\\",\\\"successful\\\",\\\"inclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[23,1,[\\\"statusTotals\\\",\\\"successful\\\",\\\"count\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"isGreaterThan\\\",[[23,1,[\\\"statusTotals\\\",\\\"pending\\\",\\\"inclTotal\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-indent\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total_invoices_pending\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"statusTotals\\\",\\\"pending\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[23,1,[\\\"statusTotals\\\",\\\"pending\\\",\\\"count\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"isGreaterThan\\\",[[23,1,[\\\"statusTotals\\\",\\\"cancelled\\\",\\\"inclTotal\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"  \\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-indent\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total_invoices_cancelled\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"statusTotals\\\",\\\"cancelled\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[23,1,[\\\"statusTotals\\\",\\\"cancelled\\\",\\\"count\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"isGreaterThan\\\",[[23,1,[\\\"statusTotals\\\",\\\"pendingCancellation\\\",\\\"inclTotal\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-indent\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total_invoices_pendingCancellation\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"statusTotals\\\",\\\"pendingCancellation\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[23,1,[\\\"statusTotals\\\",\\\"pendingCancellation\\\",\\\"count\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"isGreaterThan\\\",[[23,1,[\\\"statusTotals\\\",\\\"attentionRequired\\\",\\\"inclTotal\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-indent\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total_invoices_attentionRequired\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"statusTotals\\\",\\\"attentionRequired\\\",\\\"inclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[23,1,[\\\"statusTotals\\\",\\\"attentionRequired\\\",\\\"count\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"isGreaterThan\\\",[[23,1,[\\\"statusTotals\\\",\\\"notYetInvoiced\\\",\\\"inclTotal\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"not yet invoiced\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"statusTotals\\\",\\\"notYetInvoiced\\\",\\\"inclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold has-text-right\\\"],[8],[1,[23,1,[\\\"statusTotals\\\",\\\"notYetInvoiced\\\",\\\"count\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/panels-display/panels-statement/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"giqjspon\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@hasManagementBtns\\\",\\\"@selectedTableView\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasStatement\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateStart\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateEnd\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasStatement\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/panels-display/panels-statement\\\",null,[[\\\"statement\\\",\\\"onFetchStatementTask\\\",\\\"period\\\"],[[24,[\\\"statement\\\"]],[24,[\\\"fetchStatementTask\\\"]],[24,[\\\"period\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"        \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],\\\"document\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/panels-display/panels-activity-by-documents\\\",null,[[\\\"hasManagementBtns\\\",\\\"period\\\",\\\"model\\\",\\\"filters\\\",\\\"onListByTask\\\",\\\"results\\\",\\\"exportResults\\\",\\\"count\\\",\\\"page\\\",\\\"onFetchUnpaginatedDataTask\\\",\\\"onPaginateSearchRecordsTask\\\",\\\"onRequestCancellationTask\\\",\\\"onUndoCancellationTask\\\"],[[24,[\\\"hasManagementBtns\\\"]],[24,[\\\"period\\\"]],[24,[\\\"model\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"listByTask\\\"]],[24,[\\\"results\\\"]],[24,[\\\"exportResults\\\"]],[24,[\\\"count\\\"]],[24,[\\\"page\\\"]],[24,[\\\"fetchUnpaginatedDataTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"requestCancellationTask\\\"]],[24,[\\\"undoCancellationTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/panels-display/panels-activity\\\",null,[[\\\"hasManagementBtns\\\",\\\"period\\\",\\\"model\\\",\\\"filters\\\",\\\"onListByTask\\\",\\\"results\\\",\\\"exportResults\\\",\\\"count\\\",\\\"page\\\",\\\"onFetchUnpaginatedDataTask\\\",\\\"onPaginateSearchRecordsTask\\\",\\\"onRequestCancellationTask\\\",\\\"onUndoCancellationTask\\\"],[[23,1,[]],[23,0,[\\\"period\\\"]],[24,[\\\"model\\\"]],[24,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\"]],[24,[\\\"results\\\"]],[24,[\\\"exportResults\\\"]],[24,[\\\"count\\\"]],[24,[\\\"page\\\"]],[23,0,[\\\"fetchUnpaginatedDataTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"requestCancellationTask\\\"]],[24,[\\\"undoCancellationTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/component\", [\"exports\", \"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices-printer\", \"client/mixins/date\", \"ember-concurrency\", \"ramda\"], function (_exports, _invoicesPrinter, _date, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend(_invoicesPrinter.default, _date.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    eInvoicesService: Ember.inject.service('extensions/apps/tw/e-invoices'),\n    intl: Ember.inject.service(),\n    server: Ember.inject.service(),\n    terminalService: Ember.inject.service('terminal'),\n    date: Ember.inject.service(),\n    tagName: '',\n    isReadonly: false,\n    adapterName: 'extensions/apps/tw/e-invoices/to-issue',\n    filtersAdapterName: 'extensions/apps/tw/e-invoices/filters',\n    includeBeforeStartDate: true,\n    isSubmitted: false,\n    isOnlyRemaining: false,\n    isCustomDateRange: false,\n    selectedDateOption: '1_days',\n    init() {\n      this.crud.addLists(this, ['paymentMethods', 'periods/date-options']);\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          count: 20\n        }\n      });\n      this.set('filters', filters);\n\n      // const shopFilters = this.search.setupFilters({\n      //   adapterName: 'channels/shop/campaigns/filters',\n      //   defaultFiltersData: {\n      //     query: ''\n      //   }\n      // })\n      // this.set('shopFilters', shopFilters)\n\n      const customDateStartZ = this.date.getStartOfDayZ();\n      const customDateEndZ = this.date.getStartOfDayZ();\n      this.set('customDateStartZ', customDateStartZ);\n      this.set('customDateEndZ', customDateEndZ);\n    },\n    afterLoadLists() {\n      const period = this?.period || {};\n      this.set('mm', period?.mm);\n      this.set('yyyy', period?.yyyy);\n    },\n    printerButtonIsRunning: Ember.computed('eInvoicesService.{issueAllEInvoicesForPeriodTask,fetchToIssueEInvoicesTask}.isRunning', function () {\n      return this.eInvoicesService.issueAllEInvoicesForPeriodTask.isRunning || this.eInvoicesService.fetchToIssueEInvoicesTask.isRunning;\n    }),\n    modalDialogHeader: Ember.computed('selectedPeriod', 'dispatchProcess._data.name', function () {\n      if (this.selectedPeriod) {\n        return this.intl.t('tw_print_eInvoices_now');\n      }\n      const dispatchProcess = this.dispatchProcess;\n      let dispatchProcessLabel = dispatchProcess._data.name;\n      const dispatchProcessTranslate = dispatchProcess._data.translate;\n      if (dispatchProcessTranslate !== false) {\n        dispatchProcessLabel = this.intl.t(dispatchProcessLabel);\n      }\n      return `${this.intl.t('tw_print_eInvoices_now')}: ${dispatchProcessLabel}`;\n    }),\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      this.eInvoicesService.resetToIssueInvoicesData(this);\n      this.filters.setData('twEInvoicePrint', false);\n      this.set('isOnlyRemaining', false);\n      yield this.eInvoicesService.fetchToIssueEInvoicesTask.perform({\n        component: this,\n        filters: this.filters,\n        period: this.selectedPeriod,\n        includeBeforeStartDate: this.includeBeforeStartDate,\n        dispatchProcess: this.dispatchProcess\n      });\n    }),\n    fetchOnlyToPrintTask: (0, _emberConcurrency.task)(function* ({\n      onAfter,\n      isRefetch = false\n    }, selectedPrinterTerminal) {\n      this.eInvoicesService.resetToIssueInvoicesData(this);\n      this.set('isOnlyRemaining', false);\n      this.filters.setData('twEInvoicePrint', true);\n      let twEInvoiceUserKey = this.eInvoicesService?.printerData?.twEInvoiceUserKey;\n      let twEInvoiceAllowPrintingFrom = this.eInvoicesService?.printerData?.twEInvoiceAllowPrintingFrom;\n      if (isRefetch) {\n        twEInvoiceUserKey = selectedPrinterTerminal?._data?._key;\n        twEInvoiceAllowPrintingFrom = selectedPrinterTerminal?._data?.twEInvoiceAllowPrintingFrom;\n      }\n      yield this.eInvoicesService.fetchToIssueEInvoicesTask.perform({\n        component: this,\n        filters: this.filters,\n        period: this.selectedPeriod,\n        includeBeforeStartDate: this.includeBeforeStartDate,\n        dispatchProcess: this.dispatchProcess,\n        twEInvoiceUserKey,\n        twEInvoiceAllowPrintingFrom\n      });\n      if (R.is(Function)(onAfter)) {\n        return onAfter(selectedPrinterTerminal);\n      }\n    }),\n    setupRemainingOnlyTask: (0, _emberConcurrency.task)(function* (onlyPrintableEInvoices = false) {\n      this.eInvoicesService.resetToIssueInvoicesData(this);\n      this.set('isOnlyRemaining', true);\n      if (onlyPrintableEInvoices) {\n        this.filters.setData('twEInvoicePrint', true);\n      } else {\n        this.filters.setData('twEInvoicePrint', false);\n      }\n      yield this.eInvoicesService.fetchToIssueEInvoicesTask.perform({\n        component: this,\n        filters: this.filters,\n        period: this.selectedPeriod,\n        includeBeforeStartDate: this.includeBeforeStartDate,\n        dispatchProcess: this.dispatchProcess,\n        onlyRemaining: true\n      });\n    }),\n    selectedPeriod: Ember.computed('mm', 'yyyy', 'customDateStartZ', 'customDateEndZ', 'includeBeforeStartDate', 'isCustomDateRange', 'selectedDateOption', 'period', function () {\n      const includeBeforeStartDate = this?.includeBeforeStartDate;\n      if (includeBeforeStartDate) {\n        return this.period;\n      }\n      const customDateStartZ = this.customDateStartZ;\n      const customDateEndZ = this.customDateEndZ;\n      const period = this.date.getPeriod(customDateStartZ);\n      period.monthStart = this.date.formatDate(customDateStartZ);\n      period.monthStartZ = customDateStartZ;\n      period.monthEnd = this.date.formatDate(customDateEndZ);\n      period.monthEndZ = customDateEndZ;\n      return period;\n    }),\n    _getDateRange(selectedDateOption, dateZ = '') {\n      const todayZ = dateZ || this.date.getStartOfDayZ();\n      let customDateStartZ = todayZ;\n      let customDateEndZ = todayZ;\n      if (selectedDateOption) {\n        const selectedDateOptionData = this._getSelectedOptionsData(selectedDateOption);\n        const timePeriod = selectedDateOptionData.period;\n        customDateStartZ = this.date.getMoment(customDateStartZ).toISOString();\n        if (timePeriod === 'months') {\n          const time = selectedDateOptionData.number;\n          const startPeriod = this.date.getPeriod(customDateStartZ);\n          customDateStartZ = startPeriod.monthStartZ;\n          let futurePeriod = time - 1; // minus 1 because current month is also calculated\n          customDateEndZ = this.date.getMoment(customDateStartZ).add(futurePeriod, timePeriod).endOf('month').toISOString();\n        }\n      }\n      return {\n        customDateStartZ,\n        customDateEndZ\n      };\n    },\n    _getSelectedOptionsData(selectedDateOption) {\n      const selectedDateOptionData = R.split('_', selectedDateOption);\n      return {\n        number: Number(selectedDateOptionData[0]) || 0,\n        period: selectedDateOptionData[1]\n      };\n    },\n    setDateType() {\n      let dateZ = this.date.getStartOfDayZ();\n      const selectedDateOption = this.selectedDateOption;\n      const currentPeriod = this.date.getPeriod();\n      const selectedDateOptionData = this._getSelectedOptionsData(selectedDateOption);\n      if (selectedDateOptionData.number > 0 && selectedDateOptionData.period === 'months') {\n        let cutOffMM = Number(currentPeriod.mm) - selectedDateOptionData.number + 1;\n        if (this.yyyy === currentPeriod.yyyy && this.mm > cutOffMM) {\n          Ember.set(this, 'mm', cutOffMM);\n        }\n        dateZ = `${this.yyyy}-${this.date.getMM(this.mm)}-01`;\n      }\n      const {\n        customDateStartZ,\n        customDateEndZ\n      } = this._getDateRange(selectedDateOption, dateZ);\n      this.set('customDateStartZ', customDateStartZ);\n      this.set('customDateEndZ', customDateEndZ);\n    },\n    setMonth() {\n      const mm = this.date.getMM(this.mm);\n      const dateZ = `${this.yyyy}-${mm}-01`;\n      const {\n        customDateStartZ,\n        customDateEndZ\n      } = this._getDateRange(this.selectedDateOption, dateZ);\n      this.set('customDateStartZ', customDateStartZ);\n      this.set('customDateEndZ', customDateEndZ);\n    },\n    setDay(dateZ) {\n      const {\n        customDateStartZ,\n        customDateEndZ\n      } = this._getDateRange(this.selectedDateOption, dateZ);\n      this.set('customDateStartZ', customDateStartZ);\n      this.set('customDateEndZ', customDateEndZ);\n    },\n    printToggleBtnLabel: Ember.computed('period.dateEnd', function () {\n      // const { customDateStartZ } = this._getDateRange('3_months', this.period.date)\n      // const dateStart = this.formatDate(customDateStartZ)\n      const dateEndDefault = this?.period?.date || this.date.getEndOfDay();\n      const dateEnd = this.formatDate(dateEndDefault);\n      const dateStart = this.formatDate(this.date.getMoment(dateEnd).subtract(3, 'months').startOf('month').toISOString());\n      return `${this.intl.t('tw_eInvoices_include_until_current_date')}: ${dateStart} ~ ${dateEnd}`;\n    }),\n    actions: {\n      toggleSubmitted() {\n        this.set('isSubmitted', true);\n      }\n      // loadShopSource (shop) {\n      //   const filters = this.filters\n      //   filters.setData('shopKey', shop.getData('_key'))\n      // },\n      // unloadShopSource () {\n      //   const filters = this.filters\n      //   filters.setData('shopKey', (''))\n      // }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setDateType\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setDateType\"), _obj), _applyDecoratedDescriptor(_obj, \"setMonth\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"setMonth\"), _obj), _applyDecoratedDescriptor(_obj, \"setDay\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"setDay\"), _obj), _obj));\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwEInvoicesPrintAllBtnDisplay extends _component.default {}\n  _exports.default = ExtensionsAppsTwEInvoicesPrintAllBtnDisplay;\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JvXkK+ea\",\n    \"block\": \"{\\\"symbols\\\":[\\\"model\\\",\\\"eInvoiceMetaData\\\",\\\"eInvoiceMetaData\\\",\\\"eInvoiceMetaData\\\",\\\"detail\\\",\\\"detail\\\",\\\"eInvoiceMetaData\\\",\\\"detail\\\",\\\"eInvoiceMetaData\\\",\\\"eInvoiceMetaData\\\",\\\"eInvoiceMetaData\\\",\\\"eInvoiceMetaData\\\",\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"new-table-view new-table-view--data u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t#\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"dispatch date\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"payment method\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"exclusive total\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docName\\\"]]],null],[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docType\\\"]],[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"dispatchDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"email\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[23,1,[\\\"_data\\\",\\\"carrierId\\\"]],[23,1,[\\\"_data\\\",\\\"doc\\\",\\\"isPos\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"error-msg\\\"],[8],[1,[28,\\\"tt\\\",[\\\"required\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"billingTelephone\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"billingTelephone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"paymentMethodKey\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"taxNumber\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-wrap u-desc has-text-right \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,12,[\\\"invalidType\\\"]],\\\"invalidReturns\\\"],null],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,12,[\\\"exclTotal\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[12]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-wrap u-desc has-text-right \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,11,[\\\"invalidType\\\"]],\\\"invalidReturns\\\"],null],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,11,[\\\"taxTotal\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[11]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-wrap u-desc has-text-right \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,10,[\\\"invalidType\\\"]],\\\"invalidReturns\\\"],null],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,10,[\\\"inclTotal\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc has-text-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,9,[\\\"message\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[9]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\"],[true,true,[23,1,[\\\"showDetails\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"returns\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t*\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,7,[\\\"invoiceDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,8,[\\\"item\\\"]],false],[0,\\\" (\\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"qty\\\"]]],null],false],[0,\\\" x \\\"],[1,[28,\\\"currency\\\",[[23,8,[\\\"discInclPrice\\\"]]],[[\\\"rounding\\\",\\\"autoRound\\\"],[2,true]]],false],[0,\\\")\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,8,[\\\"postDiscExclAmt\\\"]]],[[\\\"rounding\\\"],[4]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,8,[\\\"postDiscTaxAmtUnrounded\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,8,[\\\"postDiscInclAmt\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null]],\\\"parameters\\\":[7]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[\\\"invoiceDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,6,[\\\"item\\\"]],false],[0,\\\" (\\\"],[1,[28,\\\"number\\\",[[23,6,[\\\"qty\\\"]]],null],false],[0,\\\" x \\\"],[1,[28,\\\"currency\\\",[[23,6,[\\\"discInclPrice\\\"]]],[[\\\"rounding\\\",\\\"autoRound\\\"],[2,true]]],false],[0,\\\")\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,6,[\\\"postDiscExclAmt\\\"]]],[[\\\"rounding\\\"],[4]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,6,[\\\"postDiscTaxAmt\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,6,[\\\"postDiscInclAmt\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"returnsDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,5,[\\\"master\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",\\\"sales-returns\\\",\\\"sales\\\",\\\"returns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,5,[\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,5,[\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,5,[\\\"item\\\"]],false],[0,\\\" (\\\"],[1,[28,\\\"number\\\",[[23,5,[\\\"qty\\\"]]],null],false],[0,\\\" x \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"discInclPrice\\\"]]],[[\\\"rounding\\\",\\\"autoRound\\\"],[2,true]]],false],[0,\\\")\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"invalid\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"error-msg\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,5,[\\\"invalid\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t- \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"postDiscExclAmt\\\"]]],[[\\\"rounding\\\"],[4]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t- \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"postDiscTaxAmt\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--italics has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t- \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"postDiscInclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"has-text-right u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--bold has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-wrap u-desc \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"invalidType\\\"]],\\\"invalidReturns\\\"],null],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,4,[\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--bold has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-wrap u-desc \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"invalidType\\\"]],\\\"invalidReturns\\\"],null],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--bold has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"metaData\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-no-wrap u-desc \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"invalidType\\\"]],\\\"invalidReturns\\\"],null],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap u-desc u-desc--bold has-text-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[0],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/display/template.hbs\"\n    }\n  });\n});","// import * as R from 'ramda'\n\n// import Component from '@ember/component'\n// import CrudMixin from '../../../../../../../../mixins/crud'\n// import { task } from 'ember-concurrency'\n\n// export default Component.extend(CrudMixin, {\n//   tagName: '',\n//   isReadonly: false,\n//   init () {\n//     this._super(...arguments)\n\n//     const model = this.get('model')\n//     const docType = model.getData('docType')\n//     const docName = model.getData('docName')\n//     const adapterName = `documents/${docType}/${docName}`\n\n//     this.set('adapterName', adapterName)\n//     const dirty = this.setupDirty({ adapterName, model})\n//     this.set('dirty', dirty)\n//   },\n\n//   updateTask: task(function * (onCloseDialog) {\n//     const dirty = this.get('dirty')\n//     const adapterName = this.get('adapterName')\n//     const appendPath = 'info'\n//     let saved\n\n//     saved = yield this.get('updateRecordTask').perform({ adapterName, appendPath, model: dirty })\n\n//     if (saved) {\n//       this.set('dirty', '')\n//       onCloseDialog()\n//     }\n//     return saved\n//   })\n// })\ndefine(\"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/edit-btn/component\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/edit-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yx7kw6QN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"disabled\\\"],[\\\"edit\\\",[24,[\\\"disabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"email\\\",[24,[\\\"printErrors\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"dirty\\\",\\\"_data\\\",\\\"email\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"tax number\\\",[24,[\\\"printErrors\\\"]],\\\"taxNumber\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"dirty\\\",\\\"_data\\\",\\\"taxNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"address\\\",[24,[\\\"printErrors\\\"]],\\\"address\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"dirty\\\",\\\"_data\\\",\\\"address\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",[24,[\\\"updateTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"updateTask\\\"]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[24,[\\\"updateTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/edit-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Hc4MrK27\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pendingCount\\\",\\\"@unsuccessfulCount\\\",\\\"@attentionRequiredCount\\\",\\\"@successfulCount\\\",\\\"@pending\\\",\\\"@queuedCount\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-warning\\\"],[8],[0,\\\"\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"processing\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,6,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_count\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[23,4,[]]],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_attention_required\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[23,3,[]]],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[23,2,[]]],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"count\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"pending\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[23,1,[]]],null],false],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Et0wNGP5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"statusComponent\\\",\\\"onCloseDialogAction\\\",\\\"track\\\",\\\"onCloseDialogAction\\\",\\\"track\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.extensions.tw_eInvoices\\\"],null]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"fas fa-file-invoice-dollar\\\",\\\"tw_print_eInvoices_now\\\",true,[23,0,[\\\"modalDialogHeader\\\"]],false]],{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"constants\\\",\\\"dispatchStatus\\\",\\\"dispatched\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"toggleValue\\\"],[[24,[\\\"printToggleBtnLabel\\\"]],false,[24,[\\\"includeBeforeStartDate\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"includeBeforeStartDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@translate\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-date-options\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"selectedDateOption\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"setDateType\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedDateOption\\\"]],\\\"1_days\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\",\\\"@onSetDate\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]],false,[28,\\\"fn\\\",[[23,0,[\\\"setDay\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@allowedNumberOfYears\\\",\\\"@hasActionButton\\\",\\\"@onSelect\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],2,false,[28,\\\"fn\\\",[[23,0,[\\\"setMonth\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[1,[28,\\\"date\\\",[[23,0,[\\\"customDateStartZ\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[23,0,[\\\"customDateEndZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"tw_print_eInvoices_now\\\",\\\"fas fa-file-invoice-dollar\\\",[24,[\\\"disabled\\\"]],[28,\\\"perform\\\",[[24,[\\\"setupTask\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width u-v-align-top\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-half-width has-text-centered\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"to issue e-invoices\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-half-width error-msg has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invalid\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"tt\\\",[\\\"cannot issue e-invoices\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],[[23,0,[\\\"isOnlyRemaining\\\"]],[23,0,[\\\"toIssue\\\"]]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invalid\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],[[23,0,[\\\"isOnlyRemaining\\\"]],[23,0,[\\\"invalid\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"noAvailableNumbers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"error-msg has-text-centered\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_no_available_count\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],[[23,0,[\\\"isOnlyRemaining\\\"]],[23,0,[\\\"noAvailableNumbers\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"filters\\\"]],[23,0,[\\\"toIssue\\\"]],[28,\\\"perform\\\",[[24,[\\\"eInvoicesService\\\",\\\"customPaginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\"],[[24,[\\\"filters\\\"]],[23,0,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[28,\\\"or\\\",[[24,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]],[24,[\\\"eInvoicesService\\\",\\\"issueAllEInvoicesForPeriodTask\\\",\\\"isRunning\\\"]]],null],[23,6,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"              \\\"],[5,\\\"extensions/apps/tw/e-invoices/current-status\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"class\\\",\\\"disabled\\\",\\\"badge\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"fas fa-file-invoice-dollar\\\",\\\"issue invoices now\\\",\\\"is-primary\\\",[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,0,[\\\"toIssueCount\\\"]],0],null],[28,\\\"and\\\",[[28,\\\"pod/get\\\",[\\\"tw_eInvoice_systemlead.enabled\\\"],null],[28,\\\"lte\\\",[[24,[\\\"statusComponent\\\",\\\"availableCountData\\\",\\\"availableCountToIssue\\\"]],0],null]],null],[24,[\\\"isSubmitted\\\"]]],null],[28,\\\"if\\\",[[23,0,[\\\"selectedPeriod\\\"]],[23,0,[\\\"toIssueCount\\\"]]],null],[28,\\\"or\\\",[[24,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]],[24,[\\\"eInvoicesService\\\",\\\"issueAllEInvoicesForPeriodTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"eInvoicesService\\\",\\\"issueAllEInvoicesForPeriodTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"onCloseDialogAction\\\",\\\"period\\\",\\\"dispatchProcess\\\",\\\"includeBeforeStartDate\\\",\\\"onAfter\\\"],[[23,0,[]],[23,6,[]],[23,0,[\\\"selectedPeriod\\\"]],[24,[\\\"dispatchProcess\\\"]],[24,[\\\"includeBeforeStartDate\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleSubmitted\\\"],null]]]]],null]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"features\\\",\\\"extensions\\\",\\\"tw_eInvoices_invoice_remaining\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"tw_eInvoices_only_remaining\\\",\\\"fas fa-file-invoice-dollar\\\",[24,[\\\"disabled\\\"]],[28,\\\"perform\\\",[[24,[\\\"setupRemainingOnlyTask\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"modals/modal-dialog/modal-header\\\",null,[[\\\"onClose\\\"],[[23,4,[]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"selectedPeriod\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods\\\"]],true,[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"allowEInvoicesForPaymentMethods\\\"]],\\\"_data.value\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width u-v-align-top\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-half-width has-text-centered\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"to issue e-invoices\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-half-width error-msg has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invalid\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"cannot issue e-invoices\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],[[23,0,[\\\"isOnlyRemaining\\\"]],[23,0,[\\\"toIssue\\\"]]]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invalid\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],[[23,0,[\\\"isOnlyRemaining\\\"]],[23,0,[\\\"invalid\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"noAvailableNumbers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"error-msg has-text-centered\\\"],[8],[0,\\\"\\\\n                          \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_no_available_count\\\"],null],false],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                        \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],[[23,0,[\\\"isOnlyRemaining\\\"]],[23,0,[\\\"noAvailableNumbers\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"filters\\\"]],[23,0,[\\\"toIssue\\\"]],[28,\\\"perform\\\",[[24,[\\\"eInvoicesService\\\",\\\"customPaginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\"],[[24,[\\\"filters\\\"]],[23,0,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[28,\\\"or\\\",[[24,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]],[24,[\\\"eInvoicesService\\\",\\\"issueAllEInvoicesForPeriodTask\\\",\\\"isRunning\\\"]]],null],[23,4,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"                \\\"],[5,\\\"extensions/apps/tw/e-invoices/current-status\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"                  \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"class\\\",\\\"disabled\\\",\\\"badge\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"fas fa-file-invoice-dollar\\\",\\\"issue invoices now\\\",\\\"is-primary\\\",[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,0,[\\\"toIssueCount\\\"]],0],null],[28,\\\"and\\\",[[28,\\\"pod/get\\\",[\\\"tw_eInvoice_systemlead.enabled\\\"],null],[28,\\\"lte\\\",[[24,[\\\"statusComponent\\\",\\\"availableCountData\\\",\\\"availableCountToIssue\\\"]],0],null]],null],[24,[\\\"isSubmitted\\\"]]],null],[28,\\\"if\\\",[[23,0,[\\\"selectedPeriod\\\"]],[23,0,[\\\"toIssueCount\\\"]]],null],[28,\\\"or\\\",[[24,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]],[24,[\\\"eInvoicesService\\\",\\\"issueAllEInvoicesForPeriodTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"eInvoicesService\\\",\\\"issueAllEInvoicesForPeriodTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"onCloseDialogAction\\\",\\\"period\\\",\\\"dispatchProcess\\\",\\\"includeBeforeStartDate\\\",\\\"onAfter\\\"],[[23,0,[]],[23,4,[]],[23,0,[\\\"selectedPeriod\\\"]],[24,[\\\"dispatchProcess\\\"]],[24,[\\\"includeBeforeStartDate\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleSubmitted\\\"],null]]]]],null]]]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"allowPrintEInvoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"tw_issue_print_eInvoice\\\",\\\"fas fa-print\\\",[24,[\\\"disabled\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchOnlyToPrintTask\\\"]],[28,\\\"hash\\\",null,[[\\\"onAfter\\\"],[null]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"modals/modal-dialog/modal-header\\\",null,[[\\\"onClose\\\"],[[23,2,[]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"selectedPeriod\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"translate\\\"],[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods\\\"]],true,[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"allowEInvoicesForPaymentMethods\\\"]],\\\"_data.value\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchOnlyToPrintTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width u-v-align-top\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-half-width has-text-centered\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"to issue e-invoices\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-half-width error-msg has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invalid\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"tt\\\",[\\\"cannot issue e-invoices\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],[[23,0,[\\\"isOnlyRemaining\\\"]],[23,0,[\\\"toIssue\\\"]]]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invalid\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],[[23,0,[\\\"isOnlyRemaining\\\"]],[23,0,[\\\"invalid\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"noAvailableNumbers\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"error-msg has-text-centered\\\"],[8],[0,\\\"\\\\n                          \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_no_available_count\\\"],null],false],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                        \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/display\\\",[],[[\\\"@isOnlyRemaining\\\",\\\"@docs\\\"],[[23,0,[\\\"isOnlyRemaining\\\"]],[23,0,[\\\"noAvailableNumbers\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"filters\\\"]],[23,0,[\\\"toIssue\\\"]],[28,\\\"perform\\\",[[24,[\\\"eInvoicesService\\\",\\\"customPaginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\"],[[24,[\\\"filters\\\"]],[23,0,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[28,\\\"or\\\",[[24,[\\\"eInvoicesService\\\",\\\"fetchToIssueEInvoicesTask\\\",\\\"isRunning\\\"]],[24,[\\\"eInvoicesService\\\",\\\"issueAllEInvoicesForPeriodTask\\\",\\\"isRunning\\\"]]],null],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"extensions/apps/tw/e-invoices/current-status\\\",[],[[\\\"@custom\\\",\\\"@isPrintOnly\\\"],[[23,0,[\\\"eInvoicesService\\\",\\\"printerData\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@defaultLabel\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[28,\\\"tt\\\",[\\\"select einvoice printer terminal\\\"],null],\\\"_data.name\\\",\\\"_data._key\\\",[23,3,[\\\"einvoicesPrintersTerminalsFilters\\\",\\\"results\\\"]],false,[23,0,[\\\"eInvoicesService\\\",\\\"printerData\\\",\\\"twEInvoiceUserKey\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchOnlyToPrintTask\\\"]],[28,\\\"hash\\\",null,[[\\\"onAfter\\\",\\\"isRefetch\\\"],[[28,\\\"perform\\\",[[23,3,[\\\"selectPrinterTerminalTask\\\"]]],null],true]]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"eInvoicesService\\\",\\\"printerData\\\",\\\"twEInvoiceAllowPrintingFrom\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"eInvoicesService\\\",\\\"printerData\\\",\\\"twEInvoiceAllowPrintingFrom\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasInvalidPrinterSetup\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_no_printer_setup\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"iconRight\\\",\\\"icon\\\",\\\"label\\\",\\\"class\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"badge\\\",\\\"onSubmit\\\"],[\\\"fas fa-print\\\",\\\"fas fa-file-invoice-dollar\\\",\\\"tw_issue_print_eInvoice\\\",\\\"is-primary\\\",[23,3,[\\\"disableIssueAndPrint\\\"]],[23,0,[\\\"printerButtonIsRunning\\\"]],[28,\\\"if\\\",[[23,0,[\\\"selectedPeriod\\\"]],[23,0,[\\\"toIssueCount\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"eInvoicesService\\\",\\\"issueAllEInvoicesForPeriodTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"onCloseDialogAction\\\",\\\"period\\\",\\\"twEInvoicePrint\\\",\\\"twEInvoicePrinterId\\\",\\\"twEInvoiceUserKey\\\",\\\"printerKey\\\",\\\"twEInvoiceAllowPrintingFrom\\\",\\\"dispatchProcess\\\",\\\"includeBeforeStartDate\\\",\\\"onAfter\\\"],[[23,0,[]],[23,2,[]],[23,0,[\\\"selectedPeriod\\\"]],true,[23,0,[\\\"eInvoicesService\\\",\\\"printerData\\\",\\\"twEInvoicePrinterId\\\"]],[23,0,[\\\"eInvoicesService\\\",\\\"printerData\\\",\\\"twEInvoiceUserKey\\\"]],[23,0,[\\\"eInvoicesService\\\",\\\"printerData\\\",\\\"printerKey\\\"]],[23,0,[\\\"eInvoicesService\\\",\\\"printerData\\\",\\\"twEInvoiceAllowPrintingFrom\\\"]],[24,[\\\"dispatchProcess\\\"]],[24,[\\\"includeBeforeStartDate\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleSubmitted\\\"],null]]]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-all-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/cancel-btn/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/date\", \"ember-concurrency\", \"ramda-extension\"], function (_exports, R, RA, _date, _emberConcurrency, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    reason: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['extensions/apps/tw/e-invoices/reasons']);\n    },\n    allInvoicesToCancel: Ember.computed('model.{successfulEInvoices,synced}', 'crud.lists.extensions-apps-tw-e-invoices-reasons', 'invoices', function () {\n      const reasons = R_.dotPath('crud.lists.extensions-apps-tw-e-invoices-reasons')(this) || [];\n      const reason = reasons.get('firstObject');\n      if (RA.isNilOrEmpty(reason)) {\n        return [];\n      }\n      const model = this.model;\n      let allInvoicesToCancel = model?.successfulEInvoices || [];\n      if (RA.isNilOrEmpty(model)) {\n        allInvoicesToCancel = this.invoices || [this.invoice];\n      }\n      return R.map(invoice => {\n        invoice.set('reason', reason._data.value);\n        return invoice;\n      })(allInvoicesToCancel);\n    }),\n    actions: {\n      loadReason(invoice, reason) {\n        invoice.set('reason', reason.getData('value'));\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/cancel-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2Ie2f63d\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"toCancelInvoice\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"modalDialogTitle\\\",\\\"isRunning\\\",\\\"disabled\\\",\\\"modalDialogIsVisible\\\"],[\\\"fas fa-trash\\\",\\\"void\\\",\\\"cancel invoice\\\",[24,[\\\"onRemoveEInvoiceTask\\\",\\\"isRunning\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"modalDialogIsVisible\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"allInvoicesToCancel\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"invoice number\\\",[24,[\\\"errors\\\"]],\\\"invoiceNumber\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[\\\"_data\\\",\\\"number\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"inclusive total\\\",[24,[\\\"errors\\\"]],\\\"invoiceNumber\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[\\\"_data\\\",\\\"inclTotal\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"contact\\\",[24,[\\\"errors\\\"]],\\\"invoiceNumber\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"cancel invoice reason\\\",[24,[\\\"errors\\\"]],\\\"reason\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[23,2,[\\\"reason\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"translate\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"isReadonly\\\"]],false,\\\"_data.value\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-reasons\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loadReason\\\",[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-delete\\\",null,[[\\\"label\\\",\\\"class\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel invoice\\\",\\\"is-danger\\\",[24,[\\\"onRemoveEInvoiceTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"onRemoveEInvoiceTask\\\"]],[23,1,[]],[24,[\\\"allInvoicesToCancel\\\"]],[24,[\\\"reason\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[24,[\\\"onRemoveEInvoiceTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-manager/cancel-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/component\", [\"exports\", \"ramda\", \"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices-printer\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, R, _invoicesPrinter, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _invoicesPrinter.default, {\n    constants: Ember.inject.service(),\n    tagName: '',\n    document: null,\n    invoices: null,\n    isDisplayNumberOnly: false,\n    adapterName: 'extensions/apps/tw/e-invoices',\n    collectionAdapterName: 'extensions/apps/tw/e-invoices/collection',\n    hasManagementBtns: true,\n    autoFetch: true,\n    init() {\n      this._super(...arguments);\n      this.set('taxNumber', this.get('document._data.taxNumber'));\n      this.set('email', this.get('document._data.email'));\n      let telephone = this.get('document._data.billingTelephone');\n      if (!telephone) {\n        telephone = this.get('document._data.telephone');\n      }\n      this.set('telephone', telephone);\n      this.set('address', this.get('document._data.address'));\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const document = this.document;\n      const isAllowedEInvoice = this.isAllowedEInvoice;\n      if (isAllowedEInvoice && this.autoFetch) {\n        const invoiceMasterKey = document.getData('_key');\n        this.set('invoiceMasterKey', invoiceMasterKey);\n        this.fetchEInvoicesTask.perform({\n          master: invoiceMasterKey\n        });\n      }\n      this.autoUpdatePendingStatus();\n    },\n    isAllowedEInvoice: Ember.computed('isAllowed', 'document._data.{autoPrintInvoices,isDispatched}', 'settings.settingsModel._data.autoPrintInvoices', function () {\n      const document = this.document;\n      const isDisallowed = this.isAllowed === false;\n      if (isDisallowed) {\n        return false;\n      }\n      return this.settings.hasTwEInvoices(document);\n    }),\n    isPrintBtnDisabled: Ember.computed('document._data.dispatchStatus', 'document._data.inclTotalExcludingCollectOnBehalf', 'dispatchProcess._data.allowEInvoices', function () {\n      // @KimaCuda this is wrong.\n      // firstly, if allowEInvoices is false, this will return true too quickly.\n      // secondly, if the document contains non-collect-on-behalf total, this will not allow issueing invoices?\n      // shouldnt it only disable if the only if inclTotalExcludingCollectOnBehalf === inclTotal. meaning the only items are collect-on-behalf\n      // const inclTotalExcludingCollectOnBehalf = Number(this.document?._data?.inclTotalExcludingCollectOnBehalf) || 0\n      // const hasNoNonCollectOnBehalfTotal = inclTotalExcludingCollectOnBehalf <= 0\n      // if (hasNoNonCollectOnBehalfTotal) {\n      //   return true\n      // }\n\n      if (this.dispatchProcess?._data?.allowEInvoices === true) {\n        return false;\n      }\n      if (this.document?._data?.dispatchStatus === this.constants.dispatchStatus.dispatched) {\n        return false;\n      }\n      return true;\n    }),\n    autoUpdatePendingStatus() {\n      const isAllowedEInvoice = this.isAllowedEInvoice;\n      if (isAllowedEInvoice) {\n        const hasPendingEInvoices = this.hasPendingEInvoices;\n        if (!R.isEmpty(hasPendingEInvoices)) {\n          R.forEach(invoice => {\n            this.queryEInvoiceTask.perform(invoice);\n          })(hasPendingEInvoices);\n        }\n      }\n    },\n    eInvoicesCollection: Ember.computed('document.eInvoicesCollection.[]', function () {\n      return this.get('document.eInvoicesCollection') || [];\n    }),\n    eInvoicesModels: Ember.computed('document.eInvoicesCollection._data.invoices.[]', function () {\n      const invoices = this.get('document.eInvoicesCollection._data.invoices') || [];\n      return R.sortWith([R.descend(R.path(['_data', 'timestampZ']))])(invoices);\n    }),\n    eInvoicesData: Ember.computed('eInvoicesModels.[]', function () {\n      const invoices = this.get('eInvoicesCollection._data.invoices') || [];\n      return R.pipe(R.pluck('_data'), R.sortWith([R.descend(R.path(['timestampZ']))]))(invoices);\n    }),\n    hasPendingEInvoices: Ember.computed('eInvoicesModels.[]', function () {\n      const eInvoicesModels = this.eInvoicesModels || [];\n      const pendingInvoices = R.filter(R.anyPass([R.pathEq(['_data', 'status'], 'pending'), R.pathEq(['_data', 'status'], 'pendingCancellation')]))(eInvoicesModels);\n      return pendingInvoices;\n    }),\n    /**\n     * Show the issue e-invoice button only when no e-invoice blocks a new issue.\n     * Inverse of the model's isUnresolvedUnsuccessful: an unsuccessful row blocks\n     * only when isUnresolved === true, matching isBlockingToIssueEInvoice.\n     * A missing or null isUnresolved does not block.\n     * @return {boolean}\n     */\n    hasPrintBtn: Ember.computed('eInvoicesData.@each.{status,isUnresolved}', function () {\n      const invoices = this.eInvoicesData || [];\n      const isResolvedUnsuccessful = invoice => invoice.status === 'unsuccessful' && invoice.isUnresolved !== true;\n      return R.pipe(R.reject(R.anyPass([R.propEq('status', 'cancelled'), isResolvedUnsuccessful])), R.isEmpty)(invoices);\n    }),\n    getLastSuccessfulEInvoice(eInvoicesCollection) {\n      const invoices = R.pathOr([], ['_data', 'invoices'])(eInvoicesCollection);\n      const successful = R.filter(R.pathEq(['_data', 'status'], 'successful'), invoices);\n      if (successful.length > 0) {\n        return R.head(successful);\n      }\n      return false;\n    },\n    fetchEInvoicesTask: (0, _emberConcurrency.task)(function* ({\n      master\n    }) {\n      const collectionAdapterName = this.collectionAdapterName;\n      const params = {\n        master\n      };\n      const eInvoicesCollection = yield this.findTask.perform({\n        adapterName: collectionAdapterName,\n        params,\n        resultsProperty: false\n      });\n\n      // this.set('documentWithReturns', documentWithReturns)\n      this.set('document.eInvoicesCollection', eInvoicesCollection);\n      this.document.updateSynced();\n      this.set('lastSuccessfulEInvoice', this.getLastSuccessfulEInvoice(eInvoicesCollection));\n    }),\n    latestInvoiceData: Ember.computed('eInvoicesData.@each.status', function () {\n      const invoices = this.eInvoicesData || [];\n      return invoices.get('firstObject') || false;\n    }),\n    invoiceBtnLabel: Ember.computed('eInvoicesData.@each.status', function () {\n      const latestInvoiceData = this.latestInvoiceData;\n      if (R.propEq('status', 'successful', latestInvoiceData)) {\n        return latestInvoiceData.number;\n      }\n      return this.intl.t('tw_invoicing');\n    }),\n    invoiceBtnClass: Ember.computed('eInvoicesData.@each.status', function () {\n      const latestInvoiceModel = this.eInvoicesModels.get('firstObject');\n      if (!latestInvoiceModel) {\n        return '';\n      }\n      return latestInvoiceModel.get('statusClassName') || 'is-danger';\n    }),\n    actions: {\n      fetchInvoices() {\n        const document = this.document;\n        const invoiceMasterKey = document.getData('_key');\n        this.fetchEInvoicesTask.perform({\n          master: invoiceMasterKey\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 ExtensionsAppsTwEInvoicesPrintManagerDocumentDisplayComponent = _exports.default = (_dec = Ember.inject.service('big'), _dec2 = Ember.inject.service('constants'), _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class ExtensionsAppsTwEInvoicesPrintManagerDocumentDisplayComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"bigService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showAllDetails\", _descriptor3, this);\n    }\n    toggleAllDetails() {\n      let showAllDetails = this.showAllDetails;\n      if (showAllDetails) {\n        showAllDetails = false;\n      } else {\n        showAllDetails = true;\n      }\n      this.showAllDetails = showAllDetails;\n      const results = this?.args?.results || [];\n      R.forEach(document => {\n        document.set('showDetails', showAllDetails);\n      })(results);\n    }\n    get notYetInvoicedTotals() {\n      const document = this?.args?.document || {};\n      if (RA.isNilOrEmpty(document)) {\n        return 0;\n      }\n      const netInclTotals = document?._data?.netInclTotals || 0;\n      const eInvoicesTotals = document?._data?.eInvoicesTotals || {};\n      if (RA.isNilOrEmpty(eInvoicesTotals)) {\n        return netInclTotals;\n      }\n      let eInvoicesTotalInvoiced = this.bigService.newBig(0);\n      R.forEachObjIndexed((eInvoicesTotal, eInvoicesStatus) => {\n        if (eInvoicesStatus === this.constantsService.eInvoicesStatus.cancelled) {\n          return;\n        }\n        if (eInvoicesStatus === this.constantsService.eInvoicesStatus.pendingCancellation) {\n          return;\n        }\n        eInvoicesTotalInvoiced = eInvoicesTotalInvoiced.plus(eInvoicesTotal?.invoicedTotal);\n      })(eInvoicesTotals);\n      return this.bigService.newBig(netInclTotals).minus(eInvoicesTotalInvoiced).toFixed();\n    }\n    get docEInvoiceStatus() {\n      const document = this?.args?.document || {};\n      const documentStatus = document?._data?.status || '';\n      const netInclTotals = document?._data?.netInclTotals || 0;\n      const eInvoicesTotals = document?._data?.eInvoicesTotals || {};\n      const eInvoices = document?._data?.eInvoices || [];\n      if (documentStatus === 'void') {\n        return '';\n      }\n      const dispatchStatus = document?._data?.dispatchStatus || '';\n      if (netInclTotals === this.notYetInvoicedTotals) {\n        if (dispatchStatus === this.constantsService.dispatchStatus.dispatched) {\n          // return danger when alr dispatched\n          // return 'not yet invoiced'\n          return 'tw_eInvoices_numbers_no_available_count';\n        }\n\n        // no status when not yet invoiced (but not dispatched)\n        return '';\n      }\n\n      // always return danger when has attentionRequired\n      const attentionRequiredInvoicedTotal = eInvoicesTotals?.attentionRequired?.invoicedTotal || 0;\n      if (attentionRequiredInvoicedTotal) {\n        return 'tw_eInvoices_attention_required';\n      }\n\n      // check when has pendingCancellation\n      const pendingCancellationInvoicedTotal = eInvoicesTotals?.pendingCancellation?.invoicedTotal || 0;\n      const cancelledInvoicedTotal = eInvoicesTotals?.cancelled?.invoicedTotal || 0;\n      const successfulInvoicedTotal = eInvoicesTotals?.successful?.invoicedTotal || 0;\n      if (successfulInvoicedTotal === netInclTotals) {\n        // check when has pendingCancellation\n        if (pendingCancellationInvoicedTotal !== 0) {\n          return 'pendingCancellation';\n        }\n        return 'successful';\n      }\n\n      // danger when has pending cancellation or cancelled but no new eInvoices\n      if (this.notYetInvoicedTotals > 0 && (pendingCancellationInvoicedTotal || cancelledInvoicedTotal)) {\n        return 'have not reissued e-invoices';\n      }\n\n      // warning if have pending\n      const pendingInvoicedTotal = eInvoicesTotals?.pending?.invoicedTotal || 0;\n      if (pendingInvoicedTotal) {\n        return 'pending';\n      }\n      return 'successful';\n    }\n    get docEInvoiceStatusClassNames() {\n      const docEInvoiceStatus = this.docEInvoiceStatus;\n      const warningStatus = ['pending', 'pendingCancellation'];\n      const dangerStatus = ['tw_eInvoices_numbers_no_available_count', 'tw_eInvoices_attention_required', 'have not reissued e-invoices'];\n      const okStatus = ['successful'];\n      if (R.includes(docEInvoiceStatus, warningStatus)) {\n        return 'has-text-warning';\n      }\n      if (R.includes(docEInvoiceStatus, dangerStatus)) {\n        return 'has-text-danger';\n      }\n      if (R.includes(docEInvoiceStatus, okStatus)) {\n        return '';\n      }\n      return '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"bigService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showAllDetails\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleAllDetails\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleAllDetails\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/invoice-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwEInvoicesPrintManagerDocumentDisplayInvoiceDisplayComponent extends _component.default {}\n  _exports.default = ExtensionsAppsTwEInvoicesPrintManagerDocumentDisplayInvoiceDisplayComponent;\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/invoice-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nhdWNjN2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@document\\\",\\\"@disabled\\\",\\\"@invoice\\\",\\\"@cancelErrors\\\",\\\"@notifyErrors\\\",\\\"@onRemoveEInvoiceTask\\\",\\\"@onNotifyEInvoiceTask\\\",\\\"@onQueryEInvoiceTask\\\",\\\"@hasManagementBtns\\\",\\\"@index\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,10,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"invoice number\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"requestId\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"company\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive total\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"provider\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,3,[\\\"_data\\\",\\\"number\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,3,[\\\"_data\\\",\\\"requestId\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"dateLocal\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"dateTime\\\",[[23,3,[\\\"_data\\\",\\\"dateLocal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"dateTime\\\",[[23,3,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,3,[\\\"_data\\\",\\\"merchant\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,3,[\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[23,3,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"companyName\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,3,[\\\"_data\\\",\\\"companyName\\\"]],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[1,[23,3,[\\\"_data\\\",\\\"taxNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"carrierType\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[[23,3,[\\\"_data\\\",\\\"carrierType\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[1,[23,3,[\\\"_data\\\",\\\"carrierId\\\"]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,3,[\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,3,[\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,3,[\\\"_data\\\",\\\"source\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,3,[\\\"statusClassName\\\"]]]]],[8],[1,[28,\\\"tt\\\",[[23,3,[\\\"_data\\\",\\\"status\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isUnresolvedUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"unresolved\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"provider\\\"]],\\\"bigOrdr\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      BigOrdr\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[[23,3,[\\\"_data\\\",\\\"provider\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-manager/invoice-management\\\",[],[[\\\"@document\\\",\\\"@disabled\\\",\\\"@invoice\\\",\\\"@cancelErrors\\\",\\\"@notifyErrors\\\",\\\"@onRemoveEInvoiceTask\\\",\\\"@onNotifyEInvoiceTask\\\",\\\"@onQueryEInvoiceTask\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/invoice-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EcDEzuLR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"invoice\\\",\\\"index\\\",\\\"eInvoice\\\",\\\"@podKey\\\",\\\"@hasManagementBtns\\\",\\\"@cancelErrors\\\",\\\"@onQueryEInvoiceTask\\\",\\\"@onNotifyEInvoiceTask\\\",\\\"@onRemoveEInvoiceTask\\\",\\\"@document\\\",\\\"@index\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,11,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      #\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"dispatch date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"invoiced\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"pending\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"attentionRequired\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cancelled invoices\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"not yet invoiced\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"invoice numbers\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"notes\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleAllDetails\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,10,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,10,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,10,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,10,[\\\"_data\\\",\\\"docType\\\"]],[23,10,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,10,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      #\\\"],[1,[23,10,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,10,[\\\"_data\\\",\\\"status\\\"]],\\\"void\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-left-5\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,10,[\\\"_data\\\",\\\"status\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[1,[23,10,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[1,[28,\\\"date\\\",[[23,10,[\\\"_data\\\",\\\"dispatchDateZ\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"_data\\\",\\\"netInclTotals\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"currency\\\",[[23,10,[\\\"_data\\\",\\\"netInclTotals\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"successful\\\",\\\"invoicedTotal\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"currency\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"successful\\\",\\\"invoicedTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"pending\\\",\\\"invoicedTotal\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"currency\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"pending\\\",\\\"invoicedTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"attentionRequired\\\",\\\"invoicedTotal\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"currency\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"attentionRequired\\\",\\\"invoicedTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"cancelled\\\",\\\"invoicedTotal\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"currency\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"cancelled\\\",\\\"invoicedTotal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"pendingCancellation\\\",\\\"invoicedTotal\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"concat\\\",[\\\" (\\\",[28,\\\"tt\\\",[\\\"pending\\\"],null],\\\": \\\",[28,\\\"currency\\\",[[23,10,[\\\"_data\\\",\\\"eInvoicesTotals\\\",\\\"pendingCancellation\\\",\\\"invoicedTotal\\\"]]],[[\\\"dontWrapHtmlSafe\\\"],[true]]],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"notYetInvoicedTotals\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"notYetInvoicedTotals\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"_data\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,10,[\\\"_data\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,3,[\\\"statusClassName\\\"]]]]],[8],[0,\\\"\\\\n          \\\"],[1,[23,3,[\\\"_data\\\",\\\"number\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"docEInvoiceStatusClassNames\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@class\\\"],[\\\"fas fa-info-circle\\\",[23,0,[\\\"docEInvoiceStatusClassNames\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"docEInvoiceStatus\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"_data\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@toggleIsOn\\\"],[true,false,[28,\\\"count\\\",[[23,10,[\\\"_data\\\",\\\"eInvoices\\\"]]],null],[23,10,[\\\"showDetails\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-table-align-middle u-full-width u-table-layout-fixed\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,10,[\\\"_data\\\",\\\"eInvoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-manager/document-display/invoice-display\\\",[],[[\\\"@podKey\\\",\\\"@hasManagementBtns\\\",\\\"@index\\\",\\\"@invoice\\\",\\\"@cancelErrors\\\",\\\"@onQueryEInvoiceTask\\\",\\\"@onNotifyEInvoiceTask\\\",\\\"@onRemoveEInvoiceTask\\\"],[[23,4,[]],[23,5,[]],[23,2,[]],[23,1,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-manager/document-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-display/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n\n    // isPending: computed('invoice._data.status', function () {\n    //   const status = this.get('invoice._data.status')\n    //   if (status === 'pending' || status === 'pendingCancellation') {\n    //     return true\n    //   }\n    //   return false\n    // }),\n\n    // isSuccessful: computed('invoice._data.status', function () {\n    //   const status = this.get('invoice._data.status')\n    //   if (status === 'successful') {\n    //     return true\n    //   }\n    //   return false\n    // }),\n\n    // isCancelledOrUnsuccessful: computed('invoice._data.status', function () {\n    //   const status = this.get('invoice._data.status')\n    //   if (status === 'unsuccessful' || status === 'cancelled') {\n    //     return true\n    //   }\n    //   return false\n    // }),\n\n    // statusClassName: computed('invoice._data.status', function () {\n    //   const status = this.get('invoice._data.status')\n    //   if (status === 'successful') {\n    //     return 'is-success'\n    //   }\n\n    //   if (status === 'cancelled') {\n    //     return 'is-danger'\n    //   }\n\n    //   if (status === 'unsuccessful') {\n    //     return 'is-danger'\n    //   }\n\n    //   return 'is-warning'\n    // })\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Uarj6U7O\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"number\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"number\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"requestId\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"requestId\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"companyName\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"companyName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"taxNumber\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"carrierType\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"carrierType\\\"]]],null],false],[0,\\\": \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"carrierId\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-results__text \\\",[28,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"isCancelledOrUnsuccessful\\\"]],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"provider\\\"]]],null],false],[0,\\\":\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"dateLocal\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"dateLocal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[24,[\\\"invoice\\\",\\\"statusClassName\\\"]]]]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"status\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"isUnresolvedUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"unresolved\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"printed\\\",\\\"printStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[24,[\\\"invoice\\\",\\\"printStatusClassName\\\"]]]]],[8],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"tw_eInvoices_printed_\\\",[24,[\\\"invoice\\\",\\\"_data\\\",\\\"printed\\\",\\\"printStatus\\\"]]],null]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_printed_count\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"printed\\\",\\\"printCount\\\"]]],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"error-msg\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"invoice\\\",\\\"errorMessage\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasManagementBtns\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/invoice-management\\\",null,[[\\\"document\\\",\\\"disabled\\\",\\\"invoice\\\",\\\"cancelErrors\\\",\\\"notifyErrors\\\",\\\"onRemoveEInvoiceTask\\\",\\\"onNotifyEInvoiceTask\\\",\\\"onQueryEInvoiceTask\\\"],[[24,[\\\"document\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"invoice\\\"]],[24,[\\\"cancelErrors\\\"]],[24,[\\\"notifyErrors\\\"]],[24,[\\\"onRemoveEInvoiceTask\\\"]],[24,[\\\"onNotifyEInvoiceTask\\\"]],[24,[\\\"onQueryEInvoiceTask\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-management/component\", [\"exports\", \"client/mixins/date\", \"ember-concurrency\", \"ramda-adjunct\", \"ramda\"], function (_exports, _date, _emberConcurrency, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    server: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    eInvoicesService: Ember.inject.service('extensions/apps/tw/e-invoices'),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      let telephone = this.get('invoice._data.billingTelephone');\n      if (!telephone) {\n        telephone = this.get('invoice._data.telephone');\n      }\n      const customData = Ember.Object.create({\n        email: this.get('invoice._data.email'),\n        telephone,\n        printerKey: this.get('invoice._data.printerKey'),\n        twEInvoicePrinterId: this.get('invoice._data.twEInvoicePrinterId'),\n        twEInvoiceUserKey: this.get('invoice._data.twEInvoiceUserKey'),\n        twEInvoiceAllowPrintingFrom: this.get('invoice._data.twEInvoiceAllowPrintingFrom')\n      });\n      this.set('custom', customData);\n    },\n    allowCancel: Ember.computed('invoice._data.{cancellableDateZ,status}', 'modalDialogIsVisible', function () {\n      const cancellableDateZ = this.get('invoice._data.cancellableDateZ');\n      const status = this.get('invoice._data.status');\n      if (status !== 'successful') {\n        return false;\n      }\n\n      // @NOTE: this is for backwards compatablility\n      // can be removed after sep 2021\n      const currentPeriod = this.dateService.getPeriod(cancellableDateZ);\n      const period = this.dateService.getPeriod(cancellableDateZ);\n      let cancellableDate = this.dateService.getMoment(cancellableDateZ);\n      const now = this.getMoment();\n      if (RA.isOdd(period.mm) && currentPeriod.mm === period.mm) {\n        cancellableDate = cancellableDate.date(15);\n      }\n      if (now.isBefore(cancellableDate)) {\n        return true;\n      }\n      return false;\n    }),\n    queryStatusTask: (0, _emberConcurrency.task)(function* () {\n      const key = this.invoice?._data?._key;\n      yield this.crud.ajaxCallTask.perform('PATCH', {\n        adapterName: 'extensions/apps/tw/e-invoices',\n        data: {\n          _key: key\n        }\n      });\n    }),\n    /**\n     * Mark this unsuccessful e-invoice as resolved so a new e-invoice can be issued for the document.\n     */\n    markAsResolvedTask: (0, _emberConcurrency.task)(function* () {\n      const invoiceKey = this.invoice?._data?._key;\n      try {\n        yield this.server.getAdapter('extensions/apps/tw/e-invoices').markAsResolved({\n          payload: {\n            invoiceKey\n          }\n        });\n        this.invoice.setData('isUnresolved', false);\n      } catch (error) {\n        console.error('error marking e-invoice as resolved', error);\n        window.alert(this.intl.t('error occurred please try again later'));\n      }\n    }).drop()\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-management/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TDQJDGZz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"onCloseDialogAction\\\",\\\"statusComponent\\\",\\\"onCloseDialogAction\\\",\\\"@document\\\",\\\"@invoice\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"isSuccessfulOrCancelled\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/invoice-modal-btn\\\",null,[[\\\"document\\\",\\\"disabled\\\",\\\"invoice\\\"],[[24,[\\\"document\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"invoice\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"provider\\\"]],\\\"systemlead\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"allowResending\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"modalDialogTitle\\\",\\\"disabled\\\"],[\\\"fas fa-share-square\\\",\\\"email\\\",\\\"email\\\",[24,[\\\"disabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"email\\\",[24,[\\\"notifyErrors\\\"]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"translatedPlaceholder\\\",\\\"value\\\"],[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"email\\\"]],[24,[\\\"custom\\\",\\\"email\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"telephone\\\",[24,[\\\"notifyErrors\\\"]],\\\"telephone\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"translatedPlaceholder\\\",\\\"value\\\"],[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"telephone\\\"]],[24,[\\\"custom\\\",\\\"telephone\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[24,[\\\"onNotifyEInvoiceTask\\\",\\\"isRunning\\\"]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[false,\\\"send\\\",[24,[\\\"onNotifyEInvoiceTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"onNotifyEInvoiceTask\\\"]],[23,4,[]],[24,[\\\"invoice\\\"]],[24,[\\\"custom\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allowCancel\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/cancel-btn\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"invoice\\\",\\\"onRemoveEInvoiceTask\\\"],[[24,[\\\"document\\\"]],[24,[\\\"cancelErrors\\\"]],[24,[\\\"invoice\\\"]],[24,[\\\"onRemoveEInvoiceTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"isSuccessful\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"document\\\",\\\"_data\\\",\\\"twEInvoicePrint\\\"]],[28,\\\"not\\\",[[24,[\\\"document\\\",\\\"_data\\\",\\\"twEInvoiceCarrierId\\\"]]],null],[23,6,[\\\"isAllowReprint\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"extensions/apps/tw/e-invoices/current-status\\\",[],[[\\\"@document\\\",\\\"@custom\\\",\\\"@isReprint\\\"],[[22,\\\"document\\\"],[23,0,[\\\"custom\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@defaultLabel\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[28,\\\"tt\\\",[\\\"select einvoice printer terminal\\\"],null],\\\"_data.name\\\",\\\"_data._key\\\",[23,3,[\\\"einvoicesPrintersTerminalsFilters\\\",\\\"results\\\"]],false,[23,0,[\\\"custom\\\",\\\"twEInvoiceUserKey\\\"]],[28,\\\"perform\\\",[[23,3,[\\\"selectPrinterTerminalTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasInvalidPrinterSetup\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_no_printer_setup\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"iconRight\\\",\\\"icon\\\",\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"fas fa-print\\\",\\\"fas fa-file-invoice-dollar\\\",\\\"tw_eInvoice_reprint\\\",[23,3,[\\\"disableReprint\\\"]],[28,\\\"or\\\",[[23,0,[\\\"eInvoicesService\\\",\\\"rePrintEInvoicesTask\\\",\\\"isRunning\\\"]],[23,3,[\\\"fetchAvailableCountDataTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"eInvoicesService\\\",\\\"rePrintEInvoicesTask\\\"]],[23,0,[]],[23,6,[]],[23,0,[\\\"custom\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"isAttentionRequired\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"modalDialogTitle\\\",\\\"disabled\\\"],[\\\"fas fa-pen\\\",\\\"tw_eInvoices_edit_and_reissue\\\",\\\"tw_eInvoices_edit_and_reissue\\\",[24,[\\\"disabled\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"extensions/apps/tw/e-invoices/invoice-editor\\\",[],[[\\\"@document\\\",\\\"@isAttentionRequired\\\",\\\"@invoice\\\",\\\"@onCloseDialogAction\\\"],[[23,5,[]],true,[23,6,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"isUnresolvedUnsuccessful\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\"],[true,false,[23,1,[]],\\\"tw_eInvoices_unresolved_blocks_new_issue\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_unresolved_blocks_new_issue\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"fas fa-check\\\",\\\"mark as resolved\\\",[24,[\\\"disabled\\\"]],[24,[\\\"markAsResolvedTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"markAsResolvedTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-management/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-modal-btn/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-modal-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JYVR4HJC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"detail\\\",\\\"isTooltipVisible\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"hasSectionWrapper\\\",\\\"disabled\\\"],[\\\"fas fa-eye\\\",\\\"view\\\",true,[24,[\\\"disabled\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"invoice number\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"requestId\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"dispatch date\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"company\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        #\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive total\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"provider\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"number\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"requestId\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"dateLocal\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"dateLocal\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"doc\\\",\\\"dispatchDateZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"merchant\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"merchant\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"merchantTaxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"merchantTaxNumber\\\"]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"doc\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"doc\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"invoice\\\",\\\"_data\\\",\\\"doc\\\",\\\"docName\\\"]]],null],[24,[\\\"invoice\\\",\\\"_data\\\",\\\"doc\\\",\\\"docType\\\"]],[24,[\\\"invoice\\\",\\\"_data\\\",\\\"doc\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"doc\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          #\\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"companyName\\\"]],false],[0,\\\": \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"taxNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"carrierType\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-carrier-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"invoice\\\",\\\"_data\\\",\\\"carrierType\\\"]]]]],false],[0,\\\"\\\\n\\\\n          \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"carrierId\\\"]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"invoice\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"provider\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[24,[\\\"invoice\\\",\\\"statusClassName\\\"]]]]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"status\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"invoice\\\",\\\"isUnresolvedUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"unresolved\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"item\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"invoice\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,false]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"item\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"invoiceDescription\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@hasModalOverlay\\\",\\\"@isViewable\\\",\\\"@hasContent\\\"],[true,false,[23,3,[]],[23,2,[\\\"invoiceDescription\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[1,[23,2,[\\\"invoiceDescription\\\"]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"qty\\\"]]],null],false],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"discInclPrice\\\"]]],[[\\\"autoRound\\\",\\\"rounding\\\"],[true,2]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,2,[\\\"unit\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"postDiscExclAmt\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"postDiscTaxAmt\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"postDiscInclAmt\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-manager/invoice-modal-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/print-btn/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/print-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"l3W2UPY9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@document\\\",\\\"@disabled\\\",\\\"@printBtnLabel\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"tooltipLabel\\\",\\\"disabled\\\"],[[23,4,[]],\\\"fas fa-file-invoice-dollar\\\",\\\"tw_print_eInvoices_now\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"extensions/apps/tw/e-invoices/invoice-editor\\\",[],[[\\\"@document\\\",\\\"@onCloseDialogAction\\\"],[[23,2,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-manager/print-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/print-manager/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"j0Kny+3u\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"invoice\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.extensions.tw_eInvoices\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isAllowedEInvoice\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[25,3]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[14,3,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"eInvoicesData\\\"]]],null,{\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"tooltipLabel\\\",\\\"statusBadgeClassNames\\\",\\\"hasStatusBadge\\\",\\\"autoPosition\\\",\\\"translate\\\",\\\"isRunning\\\",\\\"list\\\",\\\"onSubmit\\\"],[[24,[\\\"invoiceBtnLabel\\\"]],\\\"fas fa-file-invoice-dollar\\\",\\\"tw_eInvoicing\\\",[24,[\\\"invoiceBtnClass\\\"]],true,true,false,[24,[\\\"fetchEInvoicesTask\\\",\\\"isRunning\\\"]],[24,[\\\"eInvoicesCollection\\\",\\\"_data\\\",\\\"invoices\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"fetchInvoices\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"eInvoicesModels\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/invoice-display\\\",null,[[\\\"document\\\",\\\"printErrors\\\",\\\"podKey\\\",\\\"hasManagementBtns\\\",\\\"invoice\\\",\\\"cancelErrors\\\",\\\"notifyErrors\\\",\\\"onQueryEInvoiceTask\\\",\\\"onNotifyEInvoiceTask\\\",\\\"onRemoveEInvoiceTask\\\"],[[24,[\\\"document\\\"]],[24,[\\\"printErrors\\\"]],[24,[\\\"podKey\\\"]],[24,[\\\"hasManagementBtns\\\"]],[23,2,[]],[24,[\\\"cancelErrors\\\"]],[24,[\\\"notifyErrors\\\"]],[24,[\\\"queryEInvoiceTask\\\"]],[24,[\\\"notifyEInvoiceTask\\\"]],[24,[\\\"removeEInvoiceTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"document\\\",\\\"_data\\\",\\\"status\\\"]],\\\"final\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasPrintBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__footer-spacer\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__footer\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/print-btn\\\",null,[[\\\"disabled\\\",\\\"isReadonly\\\",\\\"hasPrintBtnLabel\\\",\\\"podKey\\\",\\\"hasManagementBtns\\\",\\\"document\\\",\\\"printErrors\\\"],[[23,0,[\\\"isPrintBtnDisabled\\\"]],[23,0,[\\\"isPrintBtnDisabled\\\"]],[24,[\\\"hasPrintBtnLabel\\\"]],[24,[\\\"podKey\\\"]],[24,[\\\"hasManagementBtns\\\"]],[24,[\\\"document\\\"]],[24,[\\\"printErrors\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"document\\\",\\\"_data\\\",\\\"status\\\"]],\\\"final\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasPrintBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/print-btn\\\",null,[[\\\"disabled\\\",\\\"podKey\\\",\\\"hasManagementBtns\\\",\\\"document\\\",\\\"printErrors\\\"],[[23,0,[\\\"isPrintBtnDisabled\\\"]],[24,[\\\"podKey\\\"]],[24,[\\\"hasManagementBtns\\\"]],[24,[\\\"document\\\"]],[24,[\\\"printErrors\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/print-manager/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/search-filters/component\", [\"exports\", \"client/mixins/payments-list-by\", \"client/mixins/crud\"], function (_exports, _paymentsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _paymentsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'payments/card',\n    init() {\n      this.crud.addLists(this, ['extensions/apps/tw/e-invoices/lists/filters/search', 'extensions/apps/tw/e-invoices/lists/filters/status', 'extensions/apps/tw/e-invoices/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aA8N6yDj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"successful\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"successful\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancelled\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"cancelled\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"pending\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"pending\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"pendingCancellation\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"pendingCancellation\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.status\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tab-container/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/big\", \"client/pods/components/extensions/apps/tw/e-invoices/mixins/invoices\", \"client/mixins/crud\", \"client/mixins/e-invoices-list-by\", \"ramda\", \"ramda-extension\"], function (_exports, _date, _big, _invoices, _crud, _eInvoicesListBy, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _eInvoicesListBy.default, _invoices.default, _big.default, _date.default, (_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    settingsService: Ember.inject.service('settings'),\n    model: null,\n    errors: null,\n    customDateZ: '',\n    adapterName: 'extensions/apps/tw/e-invoices',\n    filtersAdapterName: 'extensions/apps/tw/e-invoices/filters',\n    hasManagementBtns: true,\n    selectedProvider: 'bigOrdr',\n    selectedTableView: 'invoice',\n    init() {\n      this.crud.addLists(this, ['dispatch/lists/processes', 'periods/months', 'periods/years', 'periods/date-options', 'extensions/apps/tw/e-invoices/lists/providers', 'printer/lists/allow-printing-from', 'extensions/apps/tw/view']);\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      filters.set('showResults', true);\n      this.set('filters', filters);\n      const pastDays = this.dateService.getPastDays(14);\n      this.set('pastDays', pastDays);\n      const pastMonths = this.dateService.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      const defaultEInvoiceProvider = this.settingsService.getDefaultEInvoiceProvider();\n      this.set('selectedProvider', defaultEInvoiceProvider);\n      const defaultInvoicesView = this.settingsService.getProp('defaultInvoicesView', '');\n      this.set('selectedTableView', defaultInvoicesView);\n      this.set('hasDate', false);\n      const period = this.dateService.getPeriod();\n      this.set('period', period);\n    },\n    isDispatchedProcessModel: Ember.computed('crud.lists.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      const isDispatched = this.get('constants.dispatchProcess.dispatched');\n      return R.find(R.pathEq(['_data', 'code'], isDispatched), dispatchProcesses);\n    }),\n    afterSearchInputTask() {\n      const subTabOptions = {\n        component: 'extensions/apps/tw/e-invoices/panels-display'\n      };\n      if (!this.hasDate) {\n        this.set('hasStatement', false);\n      }\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    displaySummaryPanel({\n      dateStart,\n      dateEnd\n    }) {\n      const period = this.dateService.getPeriod(dateEnd);\n      const currentInvoiceMonth = this.dateService.getEvenInvoiceMonth(period.mm);\n      const currentInvoicePeriod = this.dateService.getPeriod(`${period.yyyy}-${currentInvoiceMonth}-01`);\n      currentInvoicePeriod.dateStart = dateStart;\n      currentInvoicePeriod.dateEnd = dateEnd;\n      const subTabOptions = {\n        component: 'extensions/apps/tw/e-invoices/panels-display',\n        period: currentInvoicePeriod\n      };\n      this.set('period', currentInvoicePeriod);\n      this.set('hasStatement', true);\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    actions: {\n      /**\n       * display dispatched list for given date\n       * @param  {string} date (YYYY-MM-DD)\n       */\n      displayByMonth(period) {\n        // cleanse query before displaying by month\n        const filters = this.filters;\n        filters.setData('query', '');\n        const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n        const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n        // this.get('displaySummaryPanelTask').perform({ dateEnd, dateStart })\n        this.set('hasDate', true);\n        this.displaySummaryPanel({\n          dateEnd,\n          dateStart\n        });\n        this.set('mm', period.mm);\n        this.set('yyyy', period.yyyy);\n      },\n      displayByCustomMonth(mm, yyyy) {\n        // cleanse query before displaying by month\n        const filters = this.filters;\n        filters.setData('query', '');\n        const dateStart = this.formatDateForUrl(`${yyyy}-${mm}-01`);\n        const dateEnd = this.formatDateForUrl(this.getMonthEnd(yyyy, mm));\n        // this.get('displaySummaryPanelTask').perform({ dateEnd, dateStart })\n        this.set('hasDate', true);\n        this.displaySummaryPanel({\n          dateEnd,\n          dateStart\n        });\n      },\n      refreshDisplay() {\n        const hasDate = this?.hasDate;\n        if (!hasDate) {\n          return;\n        }\n        const filters = this.filters;\n        filters.setData('query', '');\n        const mm = this?.mm || '';\n        const yyyy = this?.yyyy || '';\n        const dateStart = this.formatDateForUrl(`${yyyy}-${mm}-01`);\n        const dateEnd = this.formatDateForUrl(this.getMonthEnd(yyyy, mm));\n        this.displaySummaryPanel({\n          dateStart,\n          dateEnd\n        });\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"afterSearchInputTask\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"afterSearchInputTask\"), _obj), _obj));\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pgw5t5J4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,7,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedTableView\\\"]],\\\"invoice\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@newFilters\\\",\\\"@onAfter\\\",\\\"@translatedPlaceholder\\\"],[\\\"extensions/apps/tw/e-invoices\\\",[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"afterSearchInputTask\\\"]]],null],[28,\\\"tt\\\",[\\\"tw_eInvoices\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/search-filters\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"resultsToggle\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"resultsToggle\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-lists-providers\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[24,[\\\"selectedProvider\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"refreshDisplay\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"systemlead\\\",[28,\\\"pod/get\\\",[\\\"tw_eInvoice_systemlead.enabled\\\"],null]],null]],null]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"disabled\\\"],[\\\"fas fa-list-ol\\\",\\\"tw_eInvoices_numbers_manager\\\",[24,[\\\"disabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"extensions/apps/tw/e-invoices/tracks-manager\\\",[],[[\\\"@header\\\",\\\"@onCancel\\\"],[\\\"tw_eInvoices_numbers\\\",[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"e-invoices\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-view\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"selectedTableView\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"refreshDisplay\\\"],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn\\\",[],[[\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@tagName\\\"],[[23,0,[\\\"isDispatchedProcessModel\\\"]],[23,0,[\\\"period\\\"]],\\\"span\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustomMonth\\\",[24,[\\\"mm\\\"]],[24,[\\\"yyyy\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@list\\\",\\\"@onSelect\\\"],[[23,0,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,2,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"hasStatement\\\",\\\"hasManagementBtns\\\",\\\"provider\\\",\\\"tab\\\",\\\"filters\\\",\\\"results\\\",\\\"selectedTableView\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"hasStatement\\\"]],[24,[\\\"hasManagementBtns\\\"]],[23,0,[\\\"selectedProvider\\\"]],[23,1,[]],[23,0,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[23,0,[\\\"selectedTableView\\\"]],[24,[\\\"searchAdvancedTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"reloadSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/table-view/detail-row/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Wf/PliII\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tableViewOptions\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"invoice number\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"requestId\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"dispatch date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      #\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"tax number\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"    \\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive total\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"tax\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasManagementBtns\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@statusBadgeClassNames\\\",\\\"@statusLabel\\\"],[[23,2,[\\\"statusClassName\\\"]],[23,2,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"_data\\\",\\\"number\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"errorMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/multiline-truncate\\\",[[12,\\\"class\\\",\\\"u-desc u-desc--italics u-desc--mini has-text-danger\\\"]],[[\\\"@char\\\",\\\"@content\\\"],[10,[23,2,[\\\"errorMessage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"_data\\\",\\\"requestId\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"dateLocal\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"_data\\\",\\\"dateLocal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"date\\\",[[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"dispatchDateZ\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"docName\\\"]]],null],[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"docType\\\"]],[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"#\\\"],[1,[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[8],[1,[23,2,[\\\"_data\\\",\\\"doc\\\",\\\"ref\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"_data\\\",\\\"taxNumber\\\"]],[23,2,[\\\"_data\\\",\\\"companyName\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,2,[\\\"_data\\\",\\\"companyName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,2,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"taxNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,2,[\\\"_data\\\",\\\"taxNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"carrierType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"_data\\\",\\\"carrierType\\\"]]],null],false],[0,\\\": \\\"],[1,[23,2,[\\\"_data\\\",\\\"carrierId\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"     \\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasManagementBtns\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n            \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/invoice-management\\\",null,[[\\\"invoice\\\",\\\"cancelErrors\\\",\\\"onRemoveEInvoiceTask\\\",\\\"onNotifyEInvoiceTask\\\",\\\"onQueryEInvoiceTask\\\"],[[23,2,[]],[23,1,[\\\"cancelErrors\\\"]],[23,1,[\\\"onRemoveEInvoiceTask\\\"]],[23,1,[\\\"onNotifyEInvoiceTask\\\"]],[23,1,[\\\"onQueryEInvoiceTask\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\"  \\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tax-number-input/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 ExtensionsAppsTwEInvoicesTaxNumberInputComponent = _exports.default = (_dec = Ember.inject.service('documents'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember.computed('args.modelData.twEInvoiceCarrierType'), _class = class ExtensionsAppsTwEInvoicesTaxNumberInputComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"documentsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"taxNumber\", _descriptor4, this);\n      _initializerDefineProperty(this, \"companyDetails\", _descriptor5, this);\n      _initializerDefineProperty(this, \"mobileBarcode\", _descriptor6, this);\n      _initializerDefineProperty(this, \"previousConfirmedCompanyName\", _descriptor7, this);\n      this.crud.addLists(this, ['extensions/apps/tw/e-invoices/carrier-types']);\n    }\n    get iconClassName() {\n      const classNames = ['icon'];\n      if (this.companyDetails) {\n        if (this.companyDetails?.error) {\n          classNames.push('has-text-danger');\n        } else {\n          classNames.push('has-text-info');\n        }\n      }\n      return classNames.join(' ');\n    }\n    get placeholder() {\n      if (!this.args?.modelData?.twEInvoiceCarrierType) {\n        return;\n      }\n      const twEInvoiceCarrierType = this.args?.modelData?.twEInvoiceCarrierType;\n      if (!twEInvoiceCarrierType) {\n        return '';\n      }\n      const carrierTypeLabel = R.pipe(R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-e-invoices-carrier-types']), R.find(R.pathEq(['_data', 'value'], twEInvoiceCarrierType)), R.pathOr('', ['_data', 'label']))(this);\n      return this.intl.t(carrierTypeLabel);\n    }\n    get isReadonly() {\n      if (this.args?.isReadonly === true) {\n        return true;\n      }\n      if (this.args?.isDisabled === true) {\n        return true;\n      }\n      if (!this.args?.modelData?.twEInvoiceCarrierType) {\n        return true;\n      }\n      return false;\n    }\n    *onSearchTask() {\n      this.companyDetails = null;\n      this.mobileBarcode = null;\n      const taxNumber = R.trim(this.args?.modelData?.taxNumber) || '';\n      if (!taxNumber) {\n        return;\n      }\n      this.mobileBarcode = '';\n      this.companyDetails = yield this.documentsService?.fetchAllDetailsFromGovTask.perform(taxNumber);\n      if (!this.companyDetails?.name) {\n        return;\n      }\n      const currentCompanyName = this.args?.modelData?.companyName || '';\n      if (currentCompanyName) {\n        const isSameCompanyName = this?.companyDetails?.name === currentCompanyName;\n        if (!isSameCompanyName) {\n          const message = this.intl.t('the company name, {companyName}, does not match the company name for the tax number. Do you want to use {taxNumberCompanyName}?', {\n            companyName: currentCompanyName,\n            taxNumberCompanyName: this.companyDetails?.name\n          });\n          if (this.args?.parentComponent?.previousConfirmedCompanyName === currentCompanyName || !window.confirm(message)) {\n            this.companyDetails.name = currentCompanyName;\n            this.args?.parentComponent?.set('previousConfirmedCompanyName', currentCompanyName);\n          } else {\n            this.args?.parentComponent?.set('previousConfirmedCompanyName', '');\n          }\n        }\n      }\n      this.companyDetails.value = taxNumber;\n      return this.args.setupTaxDetails?.(this.companyDetails);\n    }\n\n    // @action\n    // setTaxNumber (value) {\n    //   const model = this.args.model\n    //   if (modelData) {\n    //     model.setData('taxNumber', value)\n    //     return\n    //   }\n\n    //   set(model, 'taxNumber', value)\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"documentsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"taxNumber\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"companyDetails\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"mobileBarcode\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"previousConfirmedCompanyName\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isReadonly\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"isReadonly\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSearchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSearchTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tax-number-input/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+FDAF+9s\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@containerRowClassNames\\\",\\\"@modelData\\\",\\\"@autofocus\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-content-start\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"flex-container-row flex-container--align-items-center \\\",[23,2,[]]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@disabled\\\",\\\"@leftIcon\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@debounceMs\\\",\\\"@isRunning\\\",\\\"@autofocus\\\",\\\"@isSearchBar\\\",\\\"@instructionMessage\\\",\\\"@onSubmit\\\",\\\"@onFocusOut\\\",\\\"@type\\\",\\\"@pattern\\\",\\\"@inputmode\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"isReadonly\\\"]],\\\"fas fa-building\\\",[23,0,[\\\"placeholder\\\"]],[23,3,[\\\"taxNumber\\\"]],1200,[23,0,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[23,4,[]],true,false,[28,\\\"perform\\\",[[23,0,[\\\"onSearchTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"onSearchTask\\\"]]],null],\\\"text\\\",\\\"\\\\\\\\d*\\\",\\\"numeric\\\"]]],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[[28,\\\"if\\\",[[23,0,[\\\"companyDetails\\\"]],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[23,0,[\\\"iconClassName\\\"]]],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-info-circle\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"companyDetails\\\",\\\"isUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-link--text\\\",true,\\\"invalid\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-link--text\\\",false,[23,0,[\\\"companyDetails\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"companyDetails\\\",\\\"type\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-link--text\\\",false,[23,0,[\\\"companyDetails\\\",\\\"type\\\"]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"companyDetails\\\",\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-link--text\\\",false,[23,0,[\\\"companyDetails\\\",\\\"address\\\"]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-padding--3\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"companyDetails\\\",\\\"isUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-link--text\\\",true,\\\"invalid\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/tax-number-input/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/blanks-uploader/component\", [\"exports\", \"@glimmer/component\", \"ramda-extension\"], function (_exports, _component, R_) {\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;\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 ExtensionsAppsTwEInvoicesTracksManagerBlanksUploaderComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service('extensions/apps/tw/e-invoices'), _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class ExtensionsAppsTwEInvoicesTracksManagerBlanksUploaderComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"eInvoicesService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uploadUnusedBlanks\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uploadedResults\", _descriptor6, this);\n      _initializerDefineProperty(this, \"wasUploaded\", _descriptor7, this);\n    }\n    get blanksToUpload() {\n      if (this.wasUploaded) {\n        return R_.dotPath('uploadedResults.blanksStatus')(this) || [];\n      }\n      return R_.dotPath('args.track._data.blanksToUpload')(this) || [];\n    }\n\n    // @task\n    // * uploadBlanksTask (selectedPeriod) {\n    //   this.selectedPeriod = selectedPeriod\n    //   const mm = selectedPeriod.mm\n    //   const yyyy = this.args.yyyy\n    //   try {\n    //     const results = yield this.eInvoicesService.uploadBlanksTask.perform({ mm, yyyy, uploadUnusedBlanks: this.uploadUnusedBlanks })\n    //     const data = R.propOr({}, 'data')(results)\n    //     this.uploadedResults = {\n    //       blanksStatus: data.blanksStatus || [],\n    //       blanksToUpload: data.blanksToUpload || []\n    //     }\n    //     this.wasUploaded = true\n    //   } catch (err) {\n    //     this.wasUploaded = true\n    //   }\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"eInvoicesService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uploadUnusedBlanks\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uploadedResults\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"wasUploaded\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/blanks-uploader/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LdBA73iQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"blankNumbersData\\\",\\\"@track\\\",\\\"@onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_prefix\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_blank_start\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_books_end\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"blanksToUpload\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"u-desc \\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"isRemaining\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"uploadUnusedBlanks\\\"]],false],null]],null],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[23,1,[\\\"prefix\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"u-desc \\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"isRemaining\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"uploadUnusedBlanks\\\"]],false],null]],null],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"padStart\\\",[[23,1,[\\\"startNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"u-desc \\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"isRemaining\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"uploadUnusedBlanks\\\"]],false],null]],null],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"padStart\\\",[[23,1,[\\\"endNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isRemaining\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_blank_remaining_unused\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,1,[\\\"description\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"extensions/apps/tw/e-invoices/blank-upload-status\\\",[],[[\\\"@blank\\\"],[[23,1,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"uploadBlanksTask\\\",\\\"isRunning\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"wasUploaded\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"blanksToUpload\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_auto_upload_blanks\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/blanks-uploader/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, R_, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ExtensionsAppsTwEInvoicesTracksManagerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('date'), _dec4 = Ember.inject.service('extensions/apps/tw/e-invoices'), _dec5 = Ember.inject.service('terminal'), _dec6 = Ember.inject.service('settings'), _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._action, _class = class ExtensionsAppsTwEInvoicesTracksManagerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"eInvoicesService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"terminalService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"track\", _descriptor7, this);\n      _initializerDefineProperty(this, \"years\", _descriptor8, this);\n      _initializerDefineProperty(this, \"months\", _descriptor9, this);\n      _initializerDefineProperty(this, \"yyyy\", _descriptor0, this);\n      _initializerDefineProperty(this, \"yyyyLabel\", _descriptor1, this);\n      _initializerDefineProperty(this, \"mm\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectedPeriod\", _descriptor11, this);\n      _initializerDefineProperty(this, \"uploadUnusedBlanks\", _descriptor12, this);\n      _initializerDefineProperty(this, \"uploadedResults\", _descriptor13, this);\n      const currentPeriod = this.dateService.getPeriod();\n      const currentYear = currentPeriod.yyyy;\n      this.yyyy = currentYear;\n      this.yyyyLabel = currentYear - 1911;\n      this.mm = this.dateService.getEvenInvoiceMonth(currentPeriod.mm);\n      const period = this.args.period;\n      if (RA.isNotNilOrEmpty(period)) {\n        this.yyyy = period.yyyy;\n        this.mm = period.mm;\n      }\n      let years = this.dateService.getPastYears({\n        number: 2,\n        futureYearsNumber: 1\n      });\n      years = R.map(year => {\n        year.set('yyyyLabel', year.yyyy - 1911);\n        return year;\n      })(years);\n      this.years = years;\n      const months = R.pipe(R.map(month => {\n        const previousMonth = month - 1;\n        return Ember.Object.create({\n          mm: month,\n          label: this.intl.t(`mm${previousMonth}`) + ' / ' + this.intl.t(`month${month}`)\n        });\n      }))([2, 4, 6, 8, 10, 12]);\n      this.months = months;\n      const selectedPeriod = R.find(R.propEq('mm', this.mm))(months);\n      this.fetchTrackNumbers.perform(selectedPeriod);\n    }\n    get hasHeader() {\n      return R_.dotPathOr(false, 'args.header')(this);\n    }\n    get translate() {\n      return R_.dotPathOr(true, 'args.translate')(this);\n    }\n\n    // @deprecated\n    get currentNumber() {\n      // @TODO: refactor to use currentNumbers, pick from currentNumbers for each available\n      return R.pipe(R.pathOr([], ['track', '_data', 'current']), R.pathOr(0, ['currentNumber']))(this);\n    }\n    get allowUploadBlanks() {\n      const selectedPeriod = this.selectedPeriod || {};\n      if (selectedPeriod.mm) {\n        const currentInvoiceMonth = this.dateService.getEvenInvoiceMonth();\n        let previousInvoiceMonth;\n        const period = this.dateService.getPeriod();\n        let isCorrectYear = true;\n        if (currentInvoiceMonth === 2) {\n          previousInvoiceMonth = 12;\n          isCorrectYear = this.yyyy + 1 === period.yyyy;\n        } else {\n          previousInvoiceMonth = currentInvoiceMonth - 2;\n        }\n        if (previousInvoiceMonth === selectedPeriod.mm && isCorrectYear) {\n          if (period.dd < 5) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }\n    *fetchTrackNumbers(selectedPeriod) {\n      this.selectedPeriod = selectedPeriod;\n      const mm = selectedPeriod.mm;\n      const yyyy = this.yyyy;\n      const track = yield this.eInvoicesService.fetchTrackNumbers.perform({\n        mm,\n        yyyy\n      });\n      this.track = track || {};\n    }\n    updateTaxYear() {\n      this.mm = '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"eInvoicesService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"terminalService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"track\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"years\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"months\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"yyyy\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"yyyyLabel\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"mm\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedPeriod\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"uploadUnusedBlanks\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"uploadedResults\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchTrackNumbers\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTrackNumbers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateTaxYear\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"updateTaxYear\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 ExtensionsAppsTwEInvoicesTracksManagerComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _class = class ExtensionsAppsTwEInvoicesTracksManagerComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newModel\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isEditingAnyRow\", _descriptor4, this);\n    }\n    newAllocatedNumbers() {\n      Ember.set(this, 'isEditingAnyRow', true);\n      this.newModel = this.args.model.newAllocatedNumbers();\n    }\n    cancelNewAllocatedNumbers() {\n      this.newModel = null;\n      Ember.set(this, 'isEditingAnyRow', false);\n    }\n    *createTask(allocatedModel) {\n      const saved = yield this.crud.createRecordTask.perform({\n        adapterName: 'extensions/apps/tw/e-invoices/tracks/numbers/allocated',\n        model: allocatedModel\n      });\n      Ember.set(this, 'isEditingAnyRow', false);\n      this.newModel = null;\n      return saved;\n    }\n    *updateTask(allocatedModel) {\n      const response = yield this.crud.updateRecordTask.perform({\n        adapterName: 'extensions/apps/tw/e-invoices/tracks/numbers/allocated',\n        model: allocatedModel\n      });\n      Ember.set(this, 'isEditingAnyRow', false);\n      return response;\n    }\n    *removeTask(allocatedModel) {\n      const hasKey = R.hasPath(['_data', '_key'])(allocatedModel);\n      if (!hasKey) {\n        this.newModel = null;\n      } else {\n        yield this.crud.removeRecordTask.perform({\n          adapterName: 'extensions/apps/tw/e-invoices/tracks/numbers/allocated',\n          model: allocatedModel,\n          noConfirm: true\n        });\n      }\n      Ember.set(this, 'isEditingAnyRow', false);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"newModel\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isEditingAnyRow\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"newAllocatedNumbers\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"newAllocatedNumbers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelNewAllocatedNumbers\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelNewAllocatedNumbers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"createTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/blanks/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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  let ExtensionsAppsTwEInvoicesTracksManagerNumbersRowBlanksComponent = _exports.default = (_dec = Ember.computed('args.model._data.blanks.[]'), _dec2 = Ember.computed('args.model._data.blanks.[]'), _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _class = class ExtensionsAppsTwEInvoicesTracksManagerNumbersRowBlanksComponent extends _component.default {\n    get suggestedBlankStartNumber() {\n      const model = this.args.model;\n      if (!model) {\n        return '';\n      }\n      let suggestedNumber;\n      const lastNumber = Number(model?._data?.lastNumber) || 0;\n      if (lastNumber) {\n        suggestedNumber = lastNumber + 1;\n      }\n      const blanks = model?._data?.blanks || [];\n      if (blanks.length > 1 && suggestedNumber) {\n        return '';\n      }\n      if (suggestedNumber) {\n        if (suggestedNumber > model?._data?.endNumber) {\n          return '';\n        }\n        return suggestedNumber;\n      }\n      suggestedNumber = R.path([0, 'endNumber'])(blanks) || '';\n      if (suggestedNumber) {\n        return suggestedNumber;\n      }\n      return model?._data?.startNumber || '';\n    }\n    get suggestedBlankEndNumber() {\n      const model = this.args.model;\n      if (!model) {\n        return '';\n      }\n      if (!model?._data?.isAllowed) {\n        return model?._data?.endNumber || '';\n      }\n      const remainingCount = Number(model?._data?.remainingCount) || 0;\n      if (!remainingCount) {\n        return '';\n      }\n      const blanks = model?._data?.blanks || [];\n      if (blanks.length > 1) {\n        return '';\n      }\n      return model?._data?.endNumber || '';\n    }\n    setSuggestedNumber(blankModel, path, suggestedBlankStartNumber) {\n      Ember.set(blankModel, path, suggestedBlankStartNumber);\n      this.checkBlanks(true);\n    }\n    addBlankNumberSet() {\n      this.args.model.addBlankNumberSet();\n    }\n    checkBlanks(isFocusOut) {\n      const model = this.args.model;\n      model.checkBlanksAllowed(isFocusOut);\n    }\n    removeBlankNumberSet(blank) {\n      const model = this.args.model;\n      model.removeBlankNumberSet(blank);\n    }\n    *saveTask(model) {\n      yield this.args.saveTask.perform(model);\n      this.args.onCloseDialogAction();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"suggestedBlankStartNumber\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"suggestedBlankStartNumber\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"suggestedBlankEndNumber\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"suggestedBlankEndNumber\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSuggestedNumber\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setSuggestedNumber\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addBlankNumberSet\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"addBlankNumberSet\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkBlanks\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"checkBlanks\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeBlankNumberSet\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"removeBlankNumberSet\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/blanks/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cX1lQAsi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"blank\\\",\\\"@onCancel\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_current_books_range\\\"],null],false],[0,\\\": \\\"],[1,[23,3,[\\\"_data\\\",\\\"prefix\\\"]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"padStart\\\",[[23,3,[\\\"_data\\\",\\\"startNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"padStart\\\",[[23,3,[\\\"_data\\\",\\\"endNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"lastNumber\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_last_number_used\\\"],null],false],[0,\\\": \\\"],[1,[23,3,[\\\"_data\\\",\\\"prefix\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"padStart\\\",[[23,3,[\\\"_data\\\",\\\"lastNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"blanks\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\"],[\\\"tw_eInvoices_numbers_blank_start\\\",\\\"startNumber\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@prefix\\\",\\\"@value\\\",\\\"@onInput\\\",\\\"@onFocusOut\\\",\\\"@hasCheckIcon\\\",\\\"@isChecked\\\"],[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"successful\\\"],null],[23,3,[\\\"_data\\\",\\\"prefix\\\"]],[23,1,[\\\"startNumber\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"checkBlanks\\\"]],false],null],[28,\\\"fn\\\",[[23,0,[\\\"checkBlanks\\\"]],true],null],true,[23,1,[\\\"startNumberAllowed\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[\\\"startNumber\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"suggestedBlankStartNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"suggested\\\"],null],false],[0,\\\":\\\\n\\\\n            \\\"],[1,[28,\\\"padStart\\\",[[23,0,[\\\"suggestedBlankStartNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\"],[\\\"far fa-copy\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"setSuggestedNumber\\\"]],[23,1,[]],\\\"startNumber\\\",[23,0,[\\\"suggestedBlankStartNumber\\\"]]],null],-1]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\"],[\\\"tw_eInvoices_numbers_blank_end\\\",\\\"endNumber\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@prefix\\\",\\\"@value\\\",\\\"@onInput\\\",\\\"@onFocusOut\\\",\\\"@hasCheckIcon\\\",\\\"@isChecked\\\"],[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"successful\\\"],null],[23,3,[\\\"_data\\\",\\\"prefix\\\"]],[23,1,[\\\"endNumber\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"checkBlanks\\\"]],false],null],[28,\\\"fn\\\",[[23,0,[\\\"checkBlanks\\\"]],true],null],true,[23,1,[\\\"endNumberAllowed\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[\\\"endNumber\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"suggestedBlankEndNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_end\\\"],null],false],[0,\\\":\\\\n\\\\n            \\\"],[1,[28,\\\"padStart\\\",[[23,0,[\\\"suggestedBlankEndNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\"],[\\\"far fa-copy\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"setSuggestedNumber\\\"]],[23,1,[]],\\\"endNumber\\\",[23,0,[\\\"suggestedBlankEndNumber\\\"]]],null],-1]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"successful\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeBlankNumberSet\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"extensions/apps/tw/e-invoices/blank-upload-status\\\",[],[[\\\"@blank\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",[28,\\\"fn\\\",[[23,0,[\\\"addBlankNumberSet\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,3,[\\\"hasDisallowedBlanks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/blanks/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-extension\", \"ember-concurrency-decorators\", \"client/utils/nventor\", \"ramda-adjunct\"], function (_exports, _component, R, R_, _emberConcurrencyDecorators, _nventor, _ramdaAdjunct) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 ExtensionsAppsTwEInvoicesTracksManagerNumbersRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('date'), _dec5 = Ember.inject.service('helpers'), _dec6 = Ember.inject.service('terminal'), _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember.computed('modelProxy._data.isAllowed', 'args.{isNew,model._data.isAllowed}', 'isReadonly'), _dec10 = Ember.computed('modelProxy._data.isAllowed', 'isReadonly', 'hasAnyEInvoicesPrinterTerminals', 'isLocked'), _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _class = class ExtensionsAppsTwEInvoicesTracksManagerNumbersRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"helpersService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"terminalService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isReadonly\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor8, this);\n      _initializerDefineProperty(this, \"einvoicesPrintersTerminalsFilters\", _descriptor9, this);\n      _initializerDefineProperty(this, \"hasAnyEInvoicesPrinterTerminals\", _descriptor0, this);\n      const isNew = R.pathOr(false, ['args', 'isNew'])(this);\n      if (isNew) {\n        this.setDefaultsForNew();\n      }\n      this.setupDefaultDataTask.perform();\n    }\n    *setupDefaultDataTask() {\n      const einvoicesPrintersTerminalsFilters = this.search.setupFilters({\n        adapterName: 'users/einvoices-printers-terminals/filters',\n        defaultFiltersData: {\n          twEInvoiceAllowPrintingFrom: this.constants.twEInvoicePrinter.allowPrintingFrom.printerAllocatedNumbers\n        }\n      });\n      this.einvoicesPrintersTerminalsFilters = einvoicesPrintersTerminalsFilters;\n      const results = yield this.terminalService.fetchEInvoicesPrinterTerminalsTask.perform({\n        filters: einvoicesPrintersTerminalsFilters\n      });\n      if (results?.length > 0) {\n        this.hasAnyEInvoicesPrinterTerminals = true;\n      }\n    }\n    get isLocked() {\n      if (this.isReadonly) {\n        return true;\n      }\n      const period = this.dateService.getPeriod();\n      const model = this.args.model;\n      const mm = model.getData('mm');\n      const yyyy = model.getData('yyyy');\n      if (mm > period.mm && yyyy > period.yyyy) {\n        return true;\n      }\n      if (model?._data?.index < model?._data?.totalAllocatedIndexes) {\n        return true;\n      }\n      if (model?._data?.status === this.constants.eInvoicesAllocationsStatus.started) {\n        return true;\n      }\n      if (model?._data?.status === this.constants.eInvoicesAllocationsStatus.finished) {\n        return true;\n      }\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(model?._data?.blanks)) {\n        return true;\n      }\n      return false;\n    }\n    get showNotAllowedWarning() {\n      const modelProxy = this.modelProxy;\n      const isCurrentlyOn = modelProxy?._data?.isAllowed;\n      if (this.args.isNew && !isCurrentlyOn) {\n        return true;\n      }\n      const original = this.args.model;\n      if (!this.isReadonly && !isCurrentlyOn && original?._data?.isAllowed) {\n        return true;\n      }\n      return false;\n    }\n    get isToggleLocked() {\n      if (this.isReadonly) {\n        return true;\n      }\n      if (R.pathEq(['args', 'isNew'], true)(this)) {\n        return false;\n      }\n      const period = this.dateService.getPeriod();\n      const model = this.args.model;\n      const mm = model.getData('mm');\n      const yyyy = model.getData('yyyy');\n      if (mm > period.mm && yyyy > period.yyyy) {\n        return true;\n      }\n      if (model?._data?.isAllowed !== true) {\n        return true;\n      }\n\n      // allow toggling OFF if it was ON and numbers are not yet used\n      return false;\n    }\n    get isDisabledSelectEInvoicesTerminal() {\n      if (this.isReadonly) {\n        return true;\n      }\n      if (this.isLocked) {\n        return true;\n      }\n      if (!this.modelProxy._data.isAllowed) {\n        return true;\n      }\n      if (!this.hasAnyEInvoicesPrinterTerminals) {\n        return true;\n      }\n      return false;\n    }\n\n    /**\n     * Returns the end range of book numbers based on certain conditions.\n     *\n     * @returns {Array} The end range of book numbers.\n     */\n    get endBookRange() {\n      const allAllocatedNumbers = this.args?.trackNumbers?.allocatedNumbers || [];\n      const currentIndex = R.findIndex(R.pathEq(['_data', '_key'], this.args?.model?._data?._key))(allAllocatedNumbers) + 1;\n      const nextStartNumber = currentIndex ? R.path([currentIndex, 'startNumber'])(allAllocatedNumbers) : 0;\n      const bookRange = R.pathOr([], ['args', 'trackNumbers', 'bookRange'])(this);\n      const endRange = R.filter(({\n        endNumber\n      }) => {\n        const isCurrentNumberGtThanEndNumber = endNumber <= this.args?.model?._data?.lastNumber;\n        if (isCurrentNumberGtThanEndNumber) {\n          return false;\n        }\n        const isEndNumberGtThanStartNumber = endNumber >= this.args?.model?.startNumber;\n        if (!nextStartNumber) {\n          return isEndNumberGtThanStartNumber;\n        }\n        const isEndNumberLsThanNextStartNumber = endNumber < nextStartNumber;\n        return isEndNumberGtThanStartNumber && isEndNumberLsThanNextStartNumber;\n      })(bookRange);\n      return endRange;\n    }\n    get modelProxy() {\n      return this.dirty || this.args.model;\n    }\n    toggleReadonly() {\n      this.isReadonly = !this.isReadonly;\n    }\n    setDefaultsForNew() {\n      const allocatedNumbers = R.pathOr([], ['args', 'trackNumbers', '_data', 'allocatedNumbers'])(this);\n      const index = R.length(allocatedNumbers);\n      this.args.model.set('_data.index', index);\n      const bookRange = R.pathOr([], ['args', 'trackNumbers', 'bookRange'])(this);\n      let nextBookRange;\n      if (index === 0) {\n        nextBookRange = _nventor.default.safeHead(bookRange);\n        this.args.model.set('_data.startNumber', nextBookRange.startNumber);\n        this.args.model.set('_data.endNumber', nextBookRange.endNumber);\n      } else {\n        const lastAllocatedNumber = _nventor.default.safeLast(allocatedNumbers);\n        const currentBookIndex = R.findIndex(R.propEq('endNumber', lastAllocatedNumber.endNumber))(bookRange);\n        nextBookRange = R.view(R.lensIndex(R.inc(currentBookIndex)))(bookRange);\n        this.args.model.set('_data.startNumber', nextBookRange.startNumber);\n        this.args.model.set('_data.endNumber', nextBookRange.endNumber);\n      }\n      this.args.model.set('_data.isAllowed', false);\n    }\n    onEdit() {\n      const onEdit = this.args.onEdit;\n      this.toggleReadonly();\n      this.args.toggleIsEditing();\n      if (onEdit) {\n        onEdit(...arguments);\n      }\n      this.dirty = this.crud.setupDirty({\n        adapterName: 'extensions/apps/tw/eInvoices/tracks/numbers/allocated',\n        model: this.args.model\n      });\n    }\n    onEditBlank() {\n      this.dirty = this.crud.setupDirty({\n        adapterName: 'extensions/apps/tw/eInvoices/tracks/numbers/allocated',\n        model: this.args.model\n      });\n    }\n    onCancel() {\n      const onCancel = this.args.onCancel;\n      this.toggleReadonly();\n      this.args.toggleIsEditing();\n      this.dirty = null;\n      if (onCancel) {\n        onCancel(...arguments);\n      }\n    }\n    onCancelBlanks(onCloseDialogAction) {\n      this.dirty = null;\n      onCloseDialogAction();\n    }\n    *saveTask(modelProxy) {\n      yield this.args.saveTask.perform(modelProxy);\n      this.toggleReadonly();\n    }\n    *removeTask(modelProxy) {\n      yield this.args.removeTask.perform(modelProxy);\n      this.toggleReadonly();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"helpersService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"terminalService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isReadonly\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R.pathOr(true, ['args', 'isReadonly'])(this);\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"einvoicesPrintersTerminalsFilters\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"hasAnyEInvoicesPrinterTerminals\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDefaultDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDefaultDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showNotAllowedWarning\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"showNotAllowedWarning\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isDisabledSelectEInvoicesTerminal\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"isDisabledSelectEInvoicesTerminal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultsForNew\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultsForNew\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onEdit\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"onEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onEditBlank\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"onEditBlank\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCancel\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"onCancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCancelBlanks\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"onCancelBlanks\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"w/Qgg/Mw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"blank\\\",\\\"@isEditingAnyRow\\\",\\\"@isNew\\\",\\\"@saveTask\\\",\\\"@trackNumbers\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-white-space-nowrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"\\\",\\\"fas fa-trash\\\",[23,0,[\\\"isLocked\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"removeTask\\\"]],[23,7,[]]],null],[23,0,[\\\"removeTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-white-space-nowrap\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"prefix\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-white-space-nowrap\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"padStart\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"startNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_book\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"get\\\",[[28,\\\"findBy\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"startNumber\\\"]]],[[\\\"array\\\",\\\"dotPath\\\"],[[23,6,[\\\"bookRange\\\"]],\\\"startNumber\\\"]]],\\\"book\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-white-space-nowrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isLocked\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"padStart\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"endNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_book\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"get\\\",[[28,\\\"findBy\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"endNumber\\\"]]],[[\\\"array\\\",\\\"dotPath\\\"],[[23,6,[\\\"bookRange\\\"]],\\\"endNumber\\\"]]],\\\"book\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[23,4,[]],false,[28,\\\"or\\\",[[23,0,[\\\"hasCurrentNumberPassedEndBook\\\"]],[23,0,[\\\"isReadonly\\\"]]],null]],null],\\\"tw-einvoice-tracks-manager-row\\\",true,\\\"endNumberLabel\\\",\\\"endNumber\\\",[23,0,[\\\"endBookRange\\\"]],false,[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"endNumber\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered has-text-weight-bold\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"isAllowed\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"remainingCount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-times\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-white-space-nowrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"lastNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"prefix\\\"]],false],[0,\\\" \\\"],[1,[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"lastNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-white-space-nowrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"blanks\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"prefix\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"padStart\\\",[[23,2,[\\\"startNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"padStart\\\",[[23,2,[\\\"endNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n        \\\"],[5,\\\"extensions/apps/tw/e-invoices/blank-upload-status\\\",[],[[\\\"@blank\\\"],[[23,2,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"far fa-file\\\",\\\"tw_eInvoices_numbers_enter_blanks\\\",[23,3,[]],[23,0,[\\\"onEditBlank\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"extensions/apps/tw/e-invoices/tracks-manager/numbers/row/blanks\\\",[],[[\\\"@model\\\",\\\"@onCancel\\\",\\\"@onCloseDialogAction\\\",\\\"@saveTask\\\"],[[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onCancelBlanks\\\"]],[23,1,[]]],null],[23,1,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\"],[[23,0,[\\\"isToggleLocked\\\"]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"isAllowed\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-white-space-nowrap\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@disabled\\\",\\\"@allowCustom\\\",\\\"@hasSelected\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onDeselect\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@value\\\"],[false,\\\"span\\\",[23,0,[\\\"isDisabledSelectEInvoicesTerminal\\\"]],false,[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"userKey\\\"]],[23,0,[\\\"einvoicesPrintersTerminalsFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",\\\"users/search-results-persons-item\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"helpersService\\\",\\\"unsetValue\\\"]],[23,0,[\\\"modelProxy\\\"]],\\\"_data.userKey\\\",\\\"\\\"],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"resultsProperty\\\",\\\"resultsToggle\\\"],[\\\"users/einvoices-printers-terminals\\\",[23,0,[\\\"einvoicesPrintersTerminalsFilters\\\"]],\\\"results\\\",\\\"resultsToggle\\\"]]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"user\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"helpersService\\\",\\\"setValueFromModel\\\"]],[23,0,[\\\"modelProxy\\\"]],\\\"_data.userKey\\\",\\\"_data._key\\\"],null],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"user\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-white-space-nowrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,0,[\\\"onEdit\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onCancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,0,[\\\"modelProxy\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showNotAllowedWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      * \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_allow_numbers_off_warning\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mMaAPDgf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"allocated\\\",\\\"@model\\\",\\\"@index\\\",\\\"@innerIndex\\\"],\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"translate\\\",\\\"title\\\"],[false,[28,\\\"concat\\\",[[23,2,[\\\"_data\\\",\\\"prefix\\\"]],\\\" \\\",[28,\\\"padStart\\\",[[23,2,[\\\"_data\\\",\\\"startNumber\\\"]],8,\\\"0\\\"],null],\\\" ~ \\\",[28,\\\"padStart\\\",[[23,2,[\\\"_data\\\",\\\"endNumber\\\"]],8,\\\"0\\\"],null]],null]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_prefix\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_start\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_end\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_custom_description\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_remaining\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_last_number_used\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_blank_numbers\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_allow_numbers\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"eInvoicePrinterTerminal\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"allocatedNumbers\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"extensions/apps/tw/e-invoices/tracks-manager/numbers/row\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@trackNumbers\\\",\\\"@removeTask\\\",\\\"@saveTask\\\",\\\"@isEditingAnyRow\\\",\\\"@toggleIsEditing\\\"],[true,[23,1,[]],[23,2,[]],[23,0,[\\\"removeTask\\\"]],[23,0,[\\\"updateTask\\\"]],[23,0,[\\\"isEditingAnyRow\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,0,[]],\\\"isEditingAnyRow\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"newModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"extensions/apps/tw/e-invoices/tracks-manager/numbers/row\\\",[],[[\\\"@index\\\",\\\"@innerIndex\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@trackNumbers\\\",\\\"@removeTask\\\",\\\"@saveTask\\\",\\\"@isEditingAnyRow\\\",\\\"@toggleIsEditing\\\",\\\"@onCancel\\\"],[[23,3,[]],[23,4,[]],true,false,[23,0,[\\\"newModel\\\"]],[23,2,[]],[23,0,[\\\"removeTask\\\"]],[23,0,[\\\"createTask\\\"]],[23,0,[\\\"isEditingAnyRow\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,0,[]],\\\"isEditingAnyRow\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"cancelNewAllocatedNumbers\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"hasUnallocatedNumbers\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@label\\\"],[[28,\\\"or\\\",[[23,0,[\\\"newModel\\\"]],[23,0,[\\\"isEditingAnyRow\\\"]]],null],\\\"fas fa-plus\\\",[28,\\\"fn\\\",[[23,0,[\\\"newAllocatedNumbers\\\"]]],null],\\\"tw_eInvoices_allocate_numbers\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[\\\"_data\\\",\\\"allocatedNumbers\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_no_allocated\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/numbers/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/printers/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency-decorators\"], function (_exports, _component, R, RA, _emberConcurrencyDecorators) {\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 ExtensionsAppsTwEInvoicesTracksManagerPrintersComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('terminal'), _class = class ExtensionsAppsTwEInvoicesTracksManagerPrintersComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"terminalService\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"terminalService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/printers/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7nGHp8Hn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"allocatedNumbers\\\",\\\"groupKey\\\",\\\"allocatedNumber\\\",\\\"index\\\",\\\"@track\\\",\\\"@groupedAllocatedNumbers\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,6,[]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"      \\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"eInvoicePrinterTerminal\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_prefix\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_start\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_end\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_numbers_remaining\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_last_number_used\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"        \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"userKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,3,[\\\"_data\\\",\\\"user\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[23,3,[\\\"_data\\\",\\\"prefix\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"padStart\\\",[[23,3,[\\\"_data\\\",\\\"startNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"padStart\\\",[[23,3,[\\\"_data\\\",\\\"endNumber\\\"]],8,\\\"0\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,3,[\\\"_data\\\",\\\"remainingCount\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[23,3,[\\\"_data\\\",\\\"lastNumber\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"isLast\\\",[[23,1,[]],[23,4,[]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"userKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[28,\\\"get\\\",[[23,5,[\\\"_data\\\",\\\"availableCountPerUserKey\\\"]],[23,3,[\\\"_data\\\",\\\"userKey\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],\\\"tw_eInvoices_disallowed\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[0],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"number\\\",[[23,5,[\\\"_data\\\",\\\"availableCountForAnyAvailable\\\"]]],null],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[1,2]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/printers/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y150hhE6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"trackNumbersModel\\\",\\\"period\\\",\\\"@onCancel\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"year\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"value\\\",\\\"label\\\",\\\"onSelect\\\"],[true,false,true,[23,0,[\\\"years\\\"]],\\\"yyyyLabel\\\",\\\"yyyy\\\",[23,0,[\\\"yyyy\\\"]],[23,0,[\\\"yyyyLabel\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"updateTaxYear\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[23,0,[\\\"months\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchTrackNumbers\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,3,[\\\"label\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"fetchTrackNumbers\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasHeader\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title u-header-2\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"hasHeader\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\": \\\"],[1,[23,0,[\\\"selectedPeriod\\\",\\\"label\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"track\\\",\\\"_data\\\",\\\"trackNumbers\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"track\\\",\\\"_data\\\",\\\"trackNumbers\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"extensions/apps/tw/e-invoices/tracks-manager/numbers\\\",[],[[\\\"@index\\\",\\\"@model\\\",\\\"@prefix\\\"],[[23,2,[\\\"index\\\"]],[23,2,[]],[23,2,[\\\"prefix\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n        \\\"],[5,\\\"extensions/apps/tw/e-invoices/tracks-manager/printers\\\",[],[[\\\"@track\\\",\\\"@groupedAllocatedNumbers\\\"],[[23,0,[\\\"track\\\"]],[28,\\\"hash\\\",null,[[\\\"tw_eInvoices_available_any\\\",\\\"tw_eInvoices_disallowed\\\"],[[23,0,[\\\"track\\\",\\\"allocatedNumberForAny\\\"]],[23,0,[\\\"track\\\",\\\"allocatedNumberForDisallowed\\\"]]]]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"extensions/apps/tw/e-invoices/tracks-manager/printers\\\",[],[[\\\"@track\\\",\\\"@groupedAllocatedNumbers\\\"],[[23,0,[\\\"track\\\"]],[23,0,[\\\"track\\\",\\\"allocatedNumbersGroupedByEInvoicePrinterTerminals\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"allowUploadBlanks\\\"]],[23,0,[\\\"track\\\",\\\"_data\\\",\\\"blanksToUpload\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"modalDialogTitle\\\",\\\"icon\\\",\\\"label\\\"],[\\\"tw_eInvoices_numbers_blank_numbers\\\",\\\"fas fa-eye\\\",\\\"tw_eInvoices_numbers_blank_numbers\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"extensions/apps/tw/e-invoices/tracks-manager/blanks-uploader\\\",[],[[\\\"@track\\\",\\\"@selectedPeriod\\\",\\\"@yyyy\\\",\\\"@onCloseDialogAction\\\"],[[23,0,[\\\"track\\\"]],[23,0,[\\\"selectedPeriod\\\"]],[23,0,[\\\"yyyy\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"fn\\\",[[23,4,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon has-text-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_no_track_numbers\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/e-invoices/tracks-manager/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/hct/create-contact/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/search-contacts\", \"client/mixins/transporter-accounts\", \"ember-concurrency\", \"ramda-adjunct\", \"ramda\"], function (_exports, _crud, _searchContacts, _transporterAccounts, _emberConcurrency, RA, R) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, _transporterAccounts.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    contactService: Ember.inject.service('contacts'),\n    settingsService: Ember.inject.service('settings'),\n    tagName: '',\n    isLinkContact: false,\n    contactsList: [],\n    isDisable: Ember.computed('model._data.{hctUser,hctPassword}', function () {\n      const hasUsername = R.pipe(R.path(['model', '_data', 'hctUser']), RA.isNotNilOrEmpty)(this);\n      const hasPassword = R.pipe(R.path(['model', '_data', 'hctPassword']), RA.isNotNilOrEmpty)(this);\n      if (hasPassword && hasUsername) {\n        return false;\n      }\n      return true;\n    }),\n    allowCreate: Ember.computed('allowCreate', function () {\n      const allowCreate = this.allowCreate;\n      const isNilOrEmpty = RA.isNilOrEmpty(allowCreate);\n      if (isNilOrEmpty) {\n        return true;\n      }\n      return allowCreate;\n    }),\n    saveTask: (0, _emberConcurrency.task)(function* ({\n      model,\n      onCloseDialogAction\n    }) {\n      let saved;\n      model.setData('isTransporter', this.get('constants.isTransporter.on'));\n      model.setData('transporterExtension', 'hct');\n      const isDirty = this.model.isDirty && this.model?._data?._key;\n      if (this.isLinkContact) {\n        const adapterName = 'contacts';\n        const dirty = this.crud.setupDirty({\n          adapterName,\n          model\n        });\n        saved = yield this.crud.updateRecordTask.perform({\n          adapterName,\n          model: dirty\n        });\n      } else if (isDirty) {\n        const transporterModel = yield this.crud.updateRecordTask.perform({\n          adapterName: 'contacts',\n          model\n        });\n        this.set('model', transporterModel);\n      } else if (this.allowCreate) {\n        model.setData('relationships', [this.get('constants.contactsRelationship.supplier')]);\n        saved = yield this.crud.createRecordTask.perform({\n          adapterName: 'contacts',\n          model\n        });\n      } else {\n        const data = this.model._data;\n        this.model.set('_data', data);\n      }\n      onCloseDialogAction();\n      if (this.onLoadTransporterContact) {\n        this.onLoadTransporterContact(saved);\n      }\n    }).drop(),\n    searchContactsTask: (0, _emberConcurrency.task)(function* (args = {\n      relationship: 'supplier'\n    }) {\n      const contactsList = yield this.contactService.searchInputTask.perform(args);\n      this.set('contactsList', contactsList);\n    }),\n    setup() {\n      const hasExistingModel = RA.isNotNilOrEmpty(this.model);\n      let model;\n      if (hasExistingModel) {\n        model = this.crud.setupDirty({\n          adapterName: 'contacts',\n          model: this.model\n        });\n      } else {\n        model = this.crud.setupNewRecord({\n          adapterName: 'contacts'\n        });\n      }\n      this.set('model', model);\n    },\n    loadTransporter(model, transporter) {\n      this.set('isLinkContact', true);\n      this.set('transporter', transporter);\n      model.setData('_id', transporter.getData('_id'));\n      model.setData('_key', transporter.getData('_key'));\n      model.setData('_rev', transporter.getData('_rev'));\n      model.setData('code', transporter.getData('code'));\n      model.setData('transporterAccounts', transporter.getData('transporterAccounts'));\n      model.setData('defaultTransporterAccount', this.defaultTransporterAccountNumber);\n      model.setData('hctUser', transporter.getData('hctUser'));\n      model.setData('hctPassword', transporter.getData('hctPassword'));\n    },\n    unloadTransporter(model) {\n      this.set('isLinkContact', false);\n      this.set('transporter', '');\n      model.setData('_id', '');\n      model.setData('_key', '');\n      model.setData('_rev', '');\n      model.setData('code', '');\n      model.setData('transporterAccounts', []);\n      model.setData('defaultTransporterAccount', '');\n      model.setData('hctUser', '');\n      model.setData('hctPassword', '');\n    },\n    cancel(onCloseDialogAction) {\n      onCloseDialogAction();\n    },\n    refreshModel(model) {\n      const isDirty = R.pathEq(['model', 'isDirty'], true)(this);\n      if (isDirty) {\n        const dirtyModel = this.crud.setupDirty({\n          adapterName: 'contacts/transporters',\n          model\n        });\n        this.set('model', dirtyModel);\n      } else {\n        const proxyModel = model || R.propOr({}, 'model')(this);\n        this.set('model', proxyModel);\n      }\n    },\n    setDefaultPickupLocationPersonId(person = {}) {\n      const updateData = {\n        personId: person?.personId || '',\n        senderName: person?.name || '',\n        senderTelephone: person?.telephone || '',\n        senderAddress: person?.address || '',\n        defaultTransporterAccount: person?.transporterAccount || '',\n        defaultTransporterNotes: person?.transporterNotes || '',\n        defaultTransporterPackageTemperature: person?.transporterPackageTemperature || ''\n      };\n      for (const updateDataKey in updateData) {\n        this.model.set(`_data.${updateDataKey}`, updateData[updateDataKey]);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setup\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setup\"), _obj), _applyDecoratedDescriptor(_obj, \"loadTransporter\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"loadTransporter\"), _obj), _applyDecoratedDescriptor(_obj, \"unloadTransporter\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"unloadTransporter\"), _obj), _applyDecoratedDescriptor(_obj, \"cancel\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"cancel\"), _obj), _applyDecoratedDescriptor(_obj, \"refreshModel\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"refreshModel\"), _obj), _applyDecoratedDescriptor(_obj, \"setDefaultPickupLocationPersonId\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"setDefaultPickupLocationPersonId\"), _obj), _obj));\n});","define(\"client/pods/components/extensions/apps/tw/hct/create-contact/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ebufyHr3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@errors\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@label\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[[28,\\\"if\\\",[[23,5,[]],[23,5,[]],\\\"create hct contact\\\"],null],[23,0,[\\\"setup\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"name\\\",[24,[\\\"errors\\\"]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"autofocus\\\",\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"hasSelectedIcon\\\",\\\"allowCustom\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\",\\\"disallowDeselect\\\"],[true,true,[23,0,[\\\"contactsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"fas fa-address-book\\\",true,[24,[\\\"isReadonly\\\"]],[24,[\\\"searchContactsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"searchContactsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"query\\\"],[\\\"supplier\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadTransporter\\\",[24,[\\\"model\\\"]]],null],[24,[\\\"disallowDeselect\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\"],[\\\"code\\\",[24,[\\\"errors\\\",\\\"code\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"valueKey\\\",\\\"value\\\"],[\\\"code\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"transporter accounts\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"addItemComponent\\\",\\\"value\\\"],[true,false,true,[24,[\\\"isDisabled\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",\\\"contacts/transporters-accounts-editor\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"defaultTransporterAccount\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"pickup locations\\\",[23,2,[]],\\\"transporterArrivalDateZ\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"transporters/sender-list-btn\\\",[],[[\\\"@model\\\",\\\"@transporterModel\\\",\\\"@onRefreshModel\\\",\\\"@onSelect\\\",\\\"@defaultPersonId\\\",\\\"@listSelectorValueKey\\\"],[[23,0,[\\\"model\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"refreshModel\\\"]],[23,0,[\\\"setDefaultPickupLocationPersonId\\\"]],[23,3,[\\\"_data\\\",\\\"transporterDefaultPickupLocationPersonId\\\"]],\\\"_data.transporterDefaultPickupLocationPersonId\\\"]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender name\\\",[23,2,[]],\\\"senderName\\\",\\\"extensions_tw_hct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"company\\\"]],[23,4,[]],[24,[\\\"model\\\",\\\"_data\\\",\\\"senderName\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender telephone\\\",[23,2,[]],\\\"senderTelephone\\\",\\\"extensions_tw_hct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"companyTel\\\"]],[23,4,[]],[24,[\\\"model\\\",\\\"_data\\\",\\\"senderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender address\\\",[23,2,[]],\\\"senderAddress\\\",\\\"extensions_tw_hct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"address\\\"]],[23,4,[]],[24,[\\\"model\\\",\\\"_data\\\",\\\"senderAddress\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"user\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"hctUser\\\",\\\"extensions_tw_hct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,4,[]],[24,[\\\"model\\\",\\\"_data\\\",\\\"hctUser\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"password\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"hctPassword\\\",\\\"extensions_tw_hct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@type\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"password\\\",true,[23,4,[]],[24,[\\\"model\\\",\\\"_data\\\",\\\"hctPassword\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isDisable\\\"]],[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[28,\\\"hash\\\",null,[[\\\"onCloseDialogAction\\\",\\\"model\\\"],[[23,1,[]],[24,[\\\"model\\\"]]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/hct/create-contact/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/hct/credentials/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwHctCredentialsComponent extends _component.default {}\n  _exports.default = ExtensionsAppsTwHctCredentialsComponent;\n});","define(\"client/pods/components/extensions/apps/tw/hct/credentials/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DzY5btaE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@context\\\"],[[23,1,[]],\\\"username\\\",true,true,\\\"transporterCredentials.username\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,2,[]],[23,3,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"username\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@context\\\"],[[23,1,[]],\\\"password\\\",true,true,\\\"transporterCredentials.password\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,2,[]],[23,3,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"password\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/hct/credentials/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/hct/export-btn/component\", [\"exports\", \"ramda\", \"ember-concurrency\", \"client/mixins/date\"], function (_exports, R, _emberConcurrency, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    excel: Ember.inject.service(),\n    tagName: '',\n    transporterExtension: 'hct',\n    exportTask: (0, _emberConcurrency.task)(function* (filter) {\n      const today = this.formatDate(this.getToday(), 'YYYYMMDD');\n      const specs = this.settings.getProp('tw_hct_export_instructions');\n      const columns = R.pluck('column', specs);\n      const props = R.pluck('prop', specs);\n      const results = this.exportData(filter);\n      const data = R.pipe(R.map(doc => {\n        return R.map(prop => {\n          if (prop === '_today_') {\n            return today;\n          }\n          return R.propOr('', prop, doc);\n        }, props);\n      }), R.values, R.concat([columns]))(results);\n      yield this.excel.exportFile({\n        worksheets: [{\n          sheetName: '1',\n          data\n        }],\n        title: `新竹物流匯出範例-${today}`\n      });\n    }).drop(),\n    exportData(filter) {\n      let results = this.dispatchedResults;\n      if (filter === 'hct') {\n        results = R.filter(R.pathEq(['_data', 'transporterExtension'], 'hct'))(results);\n      }\n      return R.map(R.prop('_data'))(results);\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/hct/export-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aZy9zCfl\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.extensions.tw_hct_export\\\"],null]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"label\\\"],[true,\\\"export HCT data\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"export HCT data\\\",[24,[\\\"disabled\\\"]],[24,[\\\"exportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"exportTask\\\"]],\\\"hct\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"export all data\\\",[24,[\\\"disabled\\\"]],[24,[\\\"exportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"exportTask\\\"]],\\\"all\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/hct/export-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/hct/sender-details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ExtensionsAppsTwHctSenderDetailsComponent = _exports.default = (_dec = Ember.inject.service('settings'), _class = class ExtensionsAppsTwHctSenderDetailsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/extensions/apps/tw/hct/sender-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"azWWJi9R\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender name\\\",[23,1,[]],\\\"senderName\\\",\\\"extensions_tw_hct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"company\\\"]],[23,2,[]],[23,3,[\\\"_data\\\",\\\"senderName\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender telephone\\\",[23,1,[]],\\\"senderTelephone\\\",\\\"extensions_tw_hct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"companyTel\\\"]],[23,2,[]],[23,3,[\\\"_data\\\",\\\"senderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender address\\\",[23,1,[]],\\\"senderAddress\\\",\\\"extensions_tw_hct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"address\\\"]],[23,2,[]],[23,3,[\\\"_data\\\",\\\"senderAddress\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/hct/sender-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/hct/sender-list-btn/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwHctSenderListBtnComponent extends _component.default {}\n  _exports.default = ExtensionsAppsTwHctSenderListBtnComponent;\n});","define(\"client/pods/components/extensions/apps/tw/hct/sender-list-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"v9nwkOkE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/hct/sender-list-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/hct/settings-editor/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/search-contacts\", \"ember-concurrency\", \"ramda-extension\"], function (_exports, _crud, _searchContacts, _emberConcurrency, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    showPasswordEditor: false,\n    transporterExtension: 'hct',\n    init() {\n      this.crud.addLists(this, ['contacts/transporters']);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const transporters = R_.dotPath('crud.lists.contacts-transporters')(this) || [];\n      const transporterModel = transporters.findBy('_data.transporterExtension', this.transporterExtension);\n      if (transporterModel) {\n        this.set('transporterModel', transporterModel);\n      } else {\n        this.set('transporterModel', false);\n      }\n    },\n    unlinkTransporterTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      const msg = this.intl.t('are you sure you want to remove');\n      if (window.confirm(msg)) {\n        const adapterName = 'contacts';\n        const dirty = this.crud.setupDirty({\n          adapterName,\n          model\n        });\n        dirty.setData('transporterExtension', '');\n        yield this.crud.updateRecordTask.perform({\n          adapterName,\n          model: dirty\n        });\n        this.set('transporterModel', false);\n      }\n    }).drop(),\n    actions: {\n      loadTransporter(model) {\n        this.set('transporterModel', model);\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/hct/settings-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Earl9xmT\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"transporterModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"translate\\\"],[[24,[\\\"transporterModel\\\",\\\"_data\\\",\\\"name\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"extensions/apps/tw/hct/create-contact\\\",[],[[\\\"@onLoadTransporterContact\\\",\\\"@label\\\",\\\"@model\\\"],[[23,0,[\\\"loadTransporter\\\"]],\\\"update hct contact\\\",[23,0,[\\\"transporterModel\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"unlink\\\",[24,[\\\"unlinkTransporterTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"unlinkTransporterTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"transporterModel\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"transporters/accounts-editor\\\",null,[[\\\"model\\\"],[[24,[\\\"transporterModel\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/hct/create-contact\\\",null,[[\\\"onLoadTransporterContact\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/hct/settings-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/hct/settings/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwHctSettingsComponent extends _component.default {}\n  _exports.default = ExtensionsAppsTwHctSettingsComponent;\n});","define(\"client/pods/components/extensions/apps/tw/hct/settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OKJaWCTL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"assign a new waybill number for each package\\\",\\\"transporterSettings.newWaybillPerPackage\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,2,[\\\"_data\\\",\\\"transporterSettings\\\",\\\"newWaybillPerPackage\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/hct/settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/invoices-display/component\", [\"exports\", \"client/pods/components/extensions/apps/tw/invoices/mixins/invoices-cancel\"], function (_exports, _invoicesCancel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_invoicesCancel.default, {\n    tagName: '',\n    isEditing: false\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/invoices-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wb66pmvg\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"invoice-editor u-no-print\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/invoices/invoices-editor\\\",null,[[\\\"model\\\",\\\"isEditing\\\"],[[24,[\\\"model\\\"]],[24,[\\\"isEditing\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"number\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"dateLocal\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"edit\\\",[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"cancelled\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"undo cancel invoice\\\",[24,[\\\"undoCancelInvoiceTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"undoCancelInvoiceTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel invoice\\\",[24,[\\\"cancelInvoiceTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"cancelInvoiceTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/invoices-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/invoices-editor/component\", [\"exports\", \"client/pods/components/extensions/apps/tw/invoices/mixins/invoices\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _invoices, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _invoices.default, {\n    adapterName: 'extensions/apps/tw/invoices',\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      const dirty = this.setupDirty();\n      this.set('dirty', dirty);\n    },\n    _updateInvoiceTask: (0, _emberConcurrency.task)(function* (appendPath) {\n      yield this.replaceRecordTask.perform({\n        appendPath\n      });\n      this.set('isEditing', false);\n    }).drop(),\n    actions: {\n      updateInvoiceAndNumbers(onCloseDialogAction) {\n        onCloseDialogAction();\n        let appendPath;\n        const updateFollowingInvoices = this.updateFollowingInvoices;\n        if (updateFollowingInvoices) {\n          const model = this.model;\n          const fromNumber = model.getData('number');\n          appendPath = `?mode=update-numbers-following&fromNumber=${fromNumber}`;\n        } else {\n          appendPath = `?mode=update-numbers`;\n        }\n        this._updateInvoiceTask.perform(appendPath);\n      },\n      updateInvoiceNumber(onCloseDialogAction) {\n        onCloseDialogAction();\n        const appendPath = `?mode=update`;\n        this._updateInvoiceTask.perform(appendPath);\n      },\n      toggleUpdateFollowingInvoices() {\n        this.toggleProperty('updateFollowingInvoices');\n      },\n      cancelEdit() {\n        this.set('isEditing', false);\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/invoices-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bL18tK8P\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"placeholder\\\",\\\"inputClassNames\\\",\\\"value\\\"],[\\\"auto\\\",\\\"form__input-large\\\",[24,[\\\"dirty\\\",\\\"_data\\\",\\\"number\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"date\\\",[[24,[\\\"dirty\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[28,\\\"action\\\",[[23,0,[]],\\\"cancelEdit\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"btnclassNames\\\",\\\"hasSectionWrapper\\\",\\\"label\\\"],[\\\"is-primary\\\",true,\\\"save\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"input\\\",null,[[\\\"type\\\",\\\"checked\\\"],[\\\"checkbox\\\",[24,[\\\"updateFollowingInvoices\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"span\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"toggleUpdateFollowingInvoices\\\"]],[8],[0,\\\"automatically update all following invoices\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[28,\\\"action\\\",[[23,0,[]],\\\"cancelEdit\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"save and update next invoice number\\\",[28,\\\"action\\\",[[23,0,[]],\\\"updateInvoiceAndNumbers\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"save\\\",[28,\\\"action\\\",[[23,0,[]],\\\"updateInvoiceNumber\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/invoices-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/mixins/invoices-cancel\", [\"exports\", \"client/pods/components/extensions/apps/tw/invoices/mixins/invoices\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _invoices, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @TODO: move fetchInvoice and cancelInvoice out of this mixin,\n  // those are for the outer components whereas the other functions are for inner components\n  // outer component: makes use of 'invoices' (array of invoices for given masterKey)\n  // inner component: only makes use of 1 invoice\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _invoices.default, {\n    cancelInvoiceTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const number = model.getData('number');\n      const msg = this.intl.t('are you sure you want to cancel invoice number') + ': ' + number + '?';\n      if (window.confirm(msg)) {\n        const adapterName = 'extensions/apps/tw/invoices';\n        const appendPath = `?mode=update`;\n        const dirty = this.setupDirty({\n          adapterName,\n          model\n        });\n        dirty.setData('status', 'cancelled');\n        dirty.setData('cancelled', 1);\n        yield this.replaceRecordTask.perform({\n          adapterName,\n          model: dirty,\n          appendPath\n        });\n        // this.get('onCancelInvoiceAction')(saved)\n        this.set('isEditing', false);\n      }\n    }).drop(),\n    undoCancelInvoiceTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const adapterName = 'extensions/apps/tw/invoices';\n      const appendPath = `?mode=update`;\n      const dirty = this.setupDirty({\n        adapterName,\n        model\n      });\n      dirty.setData('status', 'printed');\n      dirty.setData('cancelled', 0);\n      yield this.replaceRecordTask.perform({\n        adapterName,\n        model: dirty,\n        appendPath\n      });\n      this.set('isEditing', false);\n    }).drop(),\n    actions: {\n      edit() {\n        this.set('isEditing', true);\n      }\n\n      // async cancelInvoice () {\n\n      // },\n\n      // async undoCancelInvoice () {\n      //   const model = this.get('model')\n      //   const adapterName = 'extensions/apps/tw/invoices'\n      //   const appendPath = `?mode=update`\n      //   const dirty = this.setupDirty({\n      //     adapterName,\n      //     model\n      //   })\n      //   dirty.setData('status', 'printed')\n      //   dirty.setData('cancelled', 0)\n\n      //   await this.get('replaceRecordTask').perform({\n      //     adapterName,\n      //     model: dirty,\n      //     appendPath\n      //   })\n      //   this.set('isEditing', false)\n      // }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/mixins/invoices-printer\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @TODO: move fetchInvoice and cancelInvoice out of this mixin,\n  // those are for the outer components whereas the other functions are for inner components\n  // outer component: makes use of 'invoices' (array of invoices for given masterKey)\n  // inner component: only makes use of 1 invoice\n  var _default = _exports.default = Ember.Mixin.create({\n    printError: '',\n    printAllInvoicesTask: (0, _emberConcurrency.task)(function* (invoices, number, dateZ) {\n      // first save all invoices to db\n      const payload = {\n        batch: invoices,\n        number: number,\n        dateZ: dateZ\n      };\n      this.set('printError', '');\n      try {\n        yield this.getAdapter('extensions/apps/tw/invoices').createBatch({\n          payload\n        });\n      } catch (err) {\n        this.set('printError', err);\n      }\n    }).drop(),\n    actions: {\n      printInvoice(onCloseDialogAction, dialog) {\n        onCloseDialogAction();\n        const self = this;\n        const number = dialog.customInvoiceNumber;\n        const dateZ = dialog.customInvoiceDateZ;\n        const document = self.get('document');\n        const invoices = [document];\n        self.get('printAllInvoicesTask').perform(invoices, number, dateZ);\n      },\n      printAllInvoices(onCloseDialogAction, dialog) {\n        //   onCloseDialogAction()\n\n        //   const self = this\n\n        //   const number = dialog.customInvoiceNumber\n        //   const dateZ = dialog.customInvoiceDateZ\n\n        //   const invoices = []\n        //   const invoicesToDispatchList = self.get('invoicesToDispatchList')\n\n        //   invoicesToDispatchList.forEach(function (doc) {\n        //     if (doc.getData('autoPrintInvoices') === self.get('constants.invoicing.on')) {\n        //       const master = doc.getData('_key')\n        //       if (self.get('dataManager').getFromCache(`tw_invoices_${master}`)) {\n        //         invoices.push(doc)\n        //       }\n        //     }\n        //   })\n\n        //   self.get('printAllInvoicesTask').perform(invoices, number, dateZ)\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/mixins/invoices\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * mixin for dispatch functionality\n   */\n  // @TODO: move fetchInvoice and cancelInvoice out of this mixin,\n  // those are for the outer components whereas the other functions are for inner components\n  // outer component: makes use of 'invoices' (array of invoices for given masterKey)\n  // inner component: only makes use of 1 invoice\n  var _default = _exports.default = Ember.Mixin.create({\n    isSaved: Ember.computed('model.{isDeleted,_data.status}', function () {\n      if (this.get('model.isDeleted')) {\n        return false;\n      }\n      if (this.get('model._data.status') === 'printed' || this.get('model._data.status') === 'pending') {\n        return true;\n      }\n      return false;\n    }),\n    isPending: Ember.computed('model._data.status', function () {\n      if (this.get('model._data.status') === 'pending') {\n        return true;\n      }\n      return false;\n    }),\n    // isCancelled: computed('model._data.status', function () {\n    //\n    //   if (this.get('model._data.status') === 'cancelled') {\n    //\n    //     return true;\n    //   }\n    //\n    //   return false;\n    // }),\n\n    getInvoiceCacheId(model) {\n      if (typeof model === 'object') {\n        return model.getData('_key');\n      }\n\n      // invoice is masterKey\n      return `tw_invoices_${model}`;\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-display/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\"], function (_exports, _date, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, {\n    init() {\n      this._super(...arguments);\n      this.set('unprepared', [Ember.Object.create({\n        label: 'undispatched'\n      })]);\n      this.set('results', this.get('tab.results'));\n      this.set('dateEnd', this.get('tab.dateEnd'));\n      this.set('dateStart', this.get('tab.dateStart'));\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-display/sub/display-item/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-display/sub/display-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0xm9k7c5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/invoices/panels-display/sub/editor-item\\\",null,[[\\\"updateFollowingInvoices\\\",\\\"model\\\"],[true,[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"items\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"p\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"t\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-table__td u-table__td--border-bottom\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/panels-display/sub/display-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-display/sub/editor-item/component\", [\"exports\", \"client/pods/components/extensions/apps/tw/invoices/mixins/invoices-cancel\"], function (_exports, _invoicesCancel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_invoicesCancel.default, {\n    tagName: ''\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-display/sub/editor-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0HeyzvSl\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/invoices/invoices-editor\\\",null,[[\\\"isEditing\\\",\\\"model\\\"],[[24,[\\\"isEditing\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"number\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"cancelled\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"cancelled\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@tabOptions\\\"],[[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"dispatch/tab-container\\\",\\\"dispatch\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"dateZ\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"dateZ\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"date\\\"]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",\\\"sales-invoices\\\",\\\"sales\\\",\\\"invoices\\\",[28,\\\"hash\\\",null,[[\\\"search\\\"],[[28,\\\"hash\\\",null,[[\\\"query\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"edit\\\",[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"cancelled\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"undo cancel invoice\\\",[24,[\\\"undoCancelInvoiceTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"undoCancelInvoiceTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel invoice\\\",[24,[\\\"cancelInvoiceTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"cancelInvoiceTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/panels-display/sub/editor-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"up+Gtky/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-header-1\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"dateStart\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[24,[\\\"dateStart\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"dateEnd\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[24,[\\\"dateEnd\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"invoice\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"document\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/invoices/panels-display/sub/display-item\\\",null,[[\\\"model\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-summary/component\", [\"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 = Ember.Component.extend({\n    init() {\n      const self = this;\n      self._super(...arguments);\n      self.set('report', self.get('tab.report'));\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-summary/print-report/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-summary/print-report/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZSONulCm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"summaryData\\\",\\\"dayData\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-print-container\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"report\\\",\\\"summary\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tw-invoices\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tw-invoices__title-container has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tw-invoices__title\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t營業人使用二聯式收銀機統一發票日結表\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"report\\\",\\\"yyyy\\\"]],false],[0,\\\" 年 \\\"],[1,[24,[\\\"report\\\",\\\"mm\\\"]],false],[0,\\\" 月\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-inner\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-left\\\"],[8],[0,\\\"統一編號\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-right\\\"],[8],[1,[28,\\\"pod/get\\\",[\\\"taxNumber\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-left\\\"],[8],[0,\\\"營業人名稱\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-right\\\"],[8],[1,[28,\\\"pod/get\\\",[\\\"company\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-left\\\"],[8],[0,\\\"稅籍編號\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-inner\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-left\\\"],[8],[0,\\\"收銀機號\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-left\\\"],[8],[0,\\\"發票字軌\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-left\\\"],[8],[0,\\\"頁次\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-td-right\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-summary\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-summary-th tw-invoices__header-table-summary-th--date\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t日期\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-summary-th\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t開立發票起訖號碼\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-summary-th\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-summary-th\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t誤開作廢發票號碼\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"daysData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:68px\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,2,[\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:190px\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[\\\"numberStart\\\"]],false],[0,\\\" ~ \\\"],[1,[23,2,[\\\"numberEnd\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:40px;text-align:right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[\\\"total\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"cancelled\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[\\\"cancelled\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"tw-invoices__header-table-footer\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"border-right\\\"],[10,\\\"style\\\",\\\"width:15px;\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t申報單位\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"vertical-align:bottom;text-align:center;height:180px;width:180px\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t請蓋統一發票專用章\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"padding:0;border:0\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"style\\\",\\\"width:100%;\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:115px;text-align:left\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t作廢份數\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"text-center border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"cancelledCount\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:115px;text-align:left\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t空白發票起訖號碼\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"text-center border-bottom\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"style\\\",\\\"width:115px;text-align:center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t銷售額及稅額計算\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"width:115px;\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t發票總金額\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t銷售額\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t稅額\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t免稅額\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t \\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t本期合計\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"grandTotal\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-right border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"min-width:50px;\\\"],[10,\\\"class\\\",\\\"border-bottom\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t申報日期:                年                月                日\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"padding:4px\\\"],[10,\\\"class\\\",\\\"border-top border-right\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t稽徵機關編號頁次:                本表為本期(月)二聯式收銀機票日結表共                張之第                張\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tw-invoices__page-break u-no-print\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/panels-summary/print-report/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/panels-summary/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Croc9VnD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/invoices/panels-summary/print-report\\\",null,[[\\\"report\\\"],[[24,[\\\"report\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/print-btn\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/invoices/panels-summary/print-report\\\",null,[[\\\"report\\\"],[[24,[\\\"report\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/panels-summary/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/print-all-btn/component\", [\"exports\", \"client/pods/components/extensions/apps/tw/invoices/mixins/invoices-printer\"], function (_exports, _invoicesPrinter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_invoicesPrinter.default, {\n    tagName: '',\n    getInvoiceCacheId(model) {\n      if (typeof model === 'object') {\n        return model.getData('_key');\n      }\n\n      // invoice is masterKey\n      return `tw_invoices_${model}`;\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/print-all-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"U98Flw3y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"printDialog\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"hasSectionWrapper\\\"],[\\\"print all invoices\\\",[24,[\\\"disabled\\\"]],true]],{\\\"statements\\\":[[4,\\\"extensions/apps/tw/invoices/print-dialog\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"print all invoices\\\",[28,\\\"action\\\",[[23,0,[]],\\\"printAllInvoices\\\",[23,1,[]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"msg\\\",\\\"hasError\\\"],[[24,[\\\"printError\\\"]],[24,[\\\"printError\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/print-all-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/print-btn/component\", [\"exports\", \"client/pods/components/extensions/apps/tw/invoices/mixins/invoices\"], function (_exports, _invoices) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_invoices.default, {\n    tagName: '',\n    showInvoiceEditor: false // @TODO: remove to own app\n\n    // wasCancelled: Ember.observer('model._data.status', function () {\n    //   if (this.get('model._data.status') === 'cancelled') {\n    //     const invoiceMasterKey = this.get('invoiceMasterKey')\n    //     this.get('onFetchInvoices')(invoiceMasterKey)\n    //   }\n    // })\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/print-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qqsQtQZC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"printDialog\\\"],\\\"statements\\\":[[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDisplayNumberOnly\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"classNames\\\",\\\"label\\\"],[false,\\\"tag btn-mock-label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"number\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"msg\\\",\\\"hasError\\\"],[[24,[\\\"printError\\\"]],[24,[\\\"printError\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isSaved\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"translate\\\",\\\"label\\\"],[false,[24,[\\\"model\\\",\\\"_data\\\",\\\"number\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t(\\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"label\\\"],[\\\"pending\\\"]]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\"],[true,true,[24,[\\\"showInvoiceEditor\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"hasSectionWrapper\\\",\\\"customInvoiceNumber\\\",\\\"customInvoiceDateZ\\\",\\\"disabled\\\"],[\\\"print invoice\\\",true,[24,[\\\"customInvoiceNumber\\\"]],[24,[\\\"customInvoiceDateZ\\\"]],[24,[\\\"disabled\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"extensions/apps/tw/invoices/print-dialog\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"print invoice\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onPrintInvoice\\\"]],[23,1,[]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showInvoiceEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isSaved\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/invoices/invoices-display\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/print-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/print-dialog/component\", [\"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 = Ember.Component.extend({\n    customInvoiceNumber: '',\n    customInvoiceDateZ: '',\n    updateFollowingInvoices: false\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/print-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"l2ulWvRN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"invoice number\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputClassNames\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"form__input-large\\\",\\\"auto\\\",[24,[\\\"customInvoiceNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"date\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customInvoiceDateZ\\\",[23,0,[]],[23,0,[\\\"customInvoiceDateZ\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[14,1,[[28,\\\"hash\\\",null,[[\\\"customInvoiceNumber\\\",\\\"customInvoiceDateZ\\\"],[[24,[\\\"customInvoiceNumber\\\"]],[24,[\\\"customInvoiceDateZ\\\"]]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/print-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/print-manager/component\", [\"exports\", \"client/pods/components/extensions/apps/tw/invoices/mixins/invoices-printer\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _invoicesPrinter, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _invoicesPrinter.default, {\n    settings: Ember.inject.service(),\n    tagName: '',\n    document: null,\n    invoices: null,\n    isDisplayNumberOnly: false,\n    adapterName: 'extensions/apps/tw/invoices',\n    didInsertElement() {\n      this._super(...arguments);\n      const document = this.document;\n      const isAllowedInvoice = this.isAllowedInvoice;\n      if (isAllowedInvoice) {\n        const invoiceMasterKey = document.getData('_key');\n        this.set('invoiceMasterKey', invoiceMasterKey);\n        this.fetchInvoicesTask.perform({\n          master: invoiceMasterKey\n        });\n      }\n    },\n    isAllowedInvoice: Ember.computed('document._data.autoPrintInvoices', function () {\n      const document = this.document;\n      return this.settings.hasTwEInvoices(document);\n    }),\n    fetchInvoicesTask: (0, _emberConcurrency.task)(function* ({\n      master\n    }) {\n      const appendPath = `?master=${master}`;\n      const adapterName = this.adapterName;\n      const document = this.document;\n      const invoices = yield this.searchRecordsTask.perform({\n        appendPath,\n        resultsProperty: false\n      });\n      if (invoices.length === 0) {\n        if (document.getData('autoPrintInvoices') === this.get('constants.invoicing.on')) {\n          const invoice = this.dataManager.setAsRecord({\n            adapterName,\n            data: {\n              _key: `tw_invoices_${master}`,\n              master: master\n            }\n          });\n          invoices.push(invoice);\n        }\n      }\n      this.set('invoices', invoices);\n    }),\n    actions: {\n      fetchInvoices(invoiceMasterKey) {\n        this.fetchInvoicesTask.perform({\n          master: invoiceMasterKey\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/print-manager/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LcI8K+II\",\n    \"block\": \"{\\\"symbols\\\":[\\\"invoice\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isAllowedInvoice\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchInvoicesTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"invoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/invoices/print-btn\\\",null,[[\\\"onPrintInvoice\\\",\\\"updateFollowingInvoices\\\",\\\"model\\\",\\\"invoiceMasterKey\\\",\\\"isDisplayNumberOnly\\\",\\\"onFetchInvoices\\\",\\\"document\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"printInvoice\\\"],null],true,[23,1,[]],[24,[\\\"invoiceMasterKey\\\"]],[24,[\\\"isDisplayNumberOnly\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"fetchInvoices\\\"],null],[24,[\\\"document\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/print-manager/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/tab-container/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/big\", \"client/pods/components/extensions/apps/tw/invoices/mixins/invoices\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _big, _invoices, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _invoices.default, _big.default, _date.default, {\n    applicationService: Ember.inject.service('application'),\n    model: null,\n    errors: null,\n    customDateZ: '',\n    invoiceRollSize: 250,\n    adapterName: 'extensions/apps/tw/invoices',\n    init() {\n      this._super(...arguments);\n      const pastDays = this.getPastDays(14);\n      this.set('pastDays', pastDays);\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n    },\n    displayDatePanelTask: (0, _emberConcurrency.task)(function* ({\n      dateEnd,\n      dateStart\n    }) {\n      const filters = this.search.setupFilters({\n        adapterName: 'filters',\n        defaultFiltersData: {\n          dateStart,\n          dateEnd\n        }\n      });\n      const results = yield this.searchRecordsTask.perform({\n        filters\n      });\n      const subTabOptions = {\n        component: 'extensions/apps/tw/invoices/panels-display',\n        results: results,\n        dateEnd: dateEnd,\n        dateStart: dateStart\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }),\n    displaySummaryPanelTask: (0, _emberConcurrency.task)(function* ({\n      monthEnd,\n      monthStart\n    }) {\n      const data = {\n        monthEnd,\n        monthStart\n      };\n      const report = yield this.getAdapter().call({\n        method: 'GET',\n        data\n      });\n      const subTabOptions = {\n        component: 'extensions/apps/tw/invoices/panels-summary',\n        report: report\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }),\n    actions: {\n      displayByCustomDate(dateZ) {\n        const self = this;\n        const dateEnd = self.getMoment(dateZ).format('YYYY-MM-DD');\n        this.displayDatePanelTask.perform({\n          dateEnd\n        });\n      },\n      /**\n       * display dispatched list for given date\n       * @param  {string} date (YYYY-MM-DD)\n       */\n      displayByDate(period) {\n        const dateEnd = period.date;\n        this.displayDatePanelTask.perform({\n          dateEnd\n        });\n      },\n      /**\n       * display dispatched list for given date\n       * @param  {string} date (YYYY-MM-DD)\n       */\n      displayByMonth(period) {\n        const monthStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n        const monthEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n        this.displaySummaryPanelTask.perform({\n          monthEnd,\n          monthStart\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/invoices/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Tw4o9gy9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"period\\\",\\\"period\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,4,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\"],[true,true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\"],[\\\"customDateZ\\\",[23,0,[]],[23,0,[\\\"customDateZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustomDate\\\",[23,0,[\\\"customDateZ\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastDays\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByDate\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,3,[\\\"mm\\\"]],false],[0,\\\"/\\\"],[1,[23,3,[\\\"dd\\\"]],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[[23,3,[\\\"weekday\\\"]]],null],false],[0,\\\")\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,2,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\"],[[24,[\\\"tab\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/invoices/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/kerry/create-contact/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/search-contacts\", \"client/mixins/transporter-accounts\", \"ember-concurrency\"], function (_exports, _crud, _searchContacts, _transporterAccounts, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, _transporterAccounts.default, {\n    tagName: '',\n    isLinkContact: false,\n    init() {\n      this._super(...arguments);\n      const model = this.setupNewRecord({\n        adapterName: 'contacts'\n      });\n      this.set('model', model);\n    },\n    saveTask: (0, _emberConcurrency.task)(function* ({\n      model,\n      onCloseDialogAction\n    }) {\n      let saved;\n      model.setData('isTransporter', this.get('constants.isTransporter.on'));\n      // model.setData('isKerry', true)\n      model.setData('transporterExtension', 'kerry');\n      if (this.isLinkContact) {\n        const adapterName = 'contacts';\n        const dirty = this.setupDirty({\n          adapterName,\n          model\n        });\n        saved = yield this.updateRecordTask.perform({\n          adapterName,\n          model: dirty\n        });\n      } else {\n        model.setData('relationships', [this.get('constants.contactsRelationship.supplier')]);\n        saved = yield this.createRecordTask.perform({\n          adapterName: 'contacts',\n          model\n        });\n      }\n      onCloseDialogAction();\n      this.onLoadTransporterContact(saved);\n    }).drop(),\n    actions: {\n      loadTransporter(model, transporter) {\n        this.set('isLinkContact', true);\n        this.set('transporter', transporter);\n        model.setData('_key', transporter.getData('_key'));\n        model.setData('_rev', transporter.getData('_rev'));\n        model.setData('code', transporter.getData('code'));\n        model.setData('transporterAccounts', transporter.getData('transporterAccounts'));\n        model.setData('defaultTransporterAccount', this.defaultTransporterAccountNumber);\n      },\n      unloadTransporter(model) {\n        this.set('isLinkContact', false);\n        this.set('transporter', '');\n        model.setData('_key', '');\n        model.setData('_rev', '');\n        model.setData('code', '');\n        model.setData('transporterAccounts', []);\n        model.setData('defaultTransporterAccount', '');\n      },\n      cancel(onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/kerry/create-contact/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UNaOlUbz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"hasSectionWrapper\\\"],[\\\"create hct contact\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"name\\\",[24,[\\\"errors\\\"]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"autofocus\\\",\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"hasSelectedIcon\\\",\\\"allowCustom\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[true,true,[24,[\\\"contactsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"fas fa-address-book\\\",true,[24,[\\\"isReadonly\\\"]],[24,[\\\"searchContactsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"searchContactsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"query\\\",\\\"resultsProperty\\\"],[\\\"supplier\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],\\\"contactsList\\\"]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\",[24,[\\\"model\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadTransporter\\\",[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\"],[\\\"code\\\",[24,[\\\"errors\\\",\\\"code\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"valueKey\\\",\\\"value\\\"],[\\\"code\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"transporter accounts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"addItemComponent\\\",\\\"value\\\"],[true,false,true,[24,[\\\"isDisabled\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",\\\"contacts/transporters-accounts-editor\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"defaultTransporterAccount\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"isRunning\\\",\\\"label\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[false,[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"if\\\",[[24,[\\\"isLinkContact\\\"]],\\\"link\\\",\\\"save\\\"],null],[24,[\\\"disabled\\\"]],[28,\\\"perform\\\",[[24,[\\\"saveTask\\\"]],[28,\\\"hash\\\",null,[[\\\"onCloseDialogAction\\\",\\\"model\\\"],[[23,1,[]],[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/kerry/create-contact/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/kerry/settings-editor/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/search-contacts\", \"ember-concurrency\", \"ramda-extension\"], function (_exports, _crud, _searchContacts, _emberConcurrency, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    showPasswordEditor: false,\n    transporterExtension: 'kerry',\n    init() {\n      this.crud.addLists(this, ['contacts/transporters']);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const transporters = R_.dotPath('crud.lists.contacts-transporters')(this) || [];\n      const transporterModel = transporters.findBy('_data.transporterExtension', this.transporterExtension);\n      if (transporterModel) {\n        this.set('transporterModel', transporterModel);\n      } else {\n        this.set('transporterModel', false);\n      }\n    },\n    unlinkTransporterTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      const msg = this.intl.t('are you sure you want to remove');\n      if (window.confirm(msg)) {\n        const adapterName = 'contacts';\n        const dirty = this.setupDirty({\n          adapterName,\n          model: model\n        });\n        dirty.setData('transporterExtension', '');\n        yield this.updateRecordTask.perform({\n          adapterName,\n          model: dirty\n        });\n        this.set('transporterModel', false);\n      }\n    }).drop(),\n    actions: {\n      loadTransporter(model) {\n        this.set('transporterModel', model);\n      }\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/kerry/settings-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Iilzykkx\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"transporterModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"translate\\\"],[[24,[\\\"transporterModel\\\",\\\"_data\\\",\\\"name\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"unlink\\\",[24,[\\\"unlinkTransporterTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"unlinkTransporterTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"transporterModel\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"transporters/accounts-editor\\\",null,[[\\\"model\\\"],[[24,[\\\"transporterModel\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"extensions/apps/tw/kerry/create-contact\\\",null,[[\\\"onLoadTransporterContact\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/kerry/settings-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/payuni-seven-eleven/credentials/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let ExtensionsAppsTwPayuniSevenElevenCredentialsComponent = _exports.default = (_dec = Ember._action, _class = class ExtensionsAppsTwPayuniSevenElevenCredentialsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      this.setup(this.args.model);\n    }\n    setup(model) {\n      model.setData('transporterCredentials.isPartner', true);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/payuni-seven-eleven/credentials/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AqsaMxCb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"merchantId\\\",[23,2,[]],\\\"transporterCredentials.id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@isRequired\\\",\\\"@minlength\\\",\\\"@maxlength\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"id\\\"]],true,1,50]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"is partner\\\",[23,2,[]],\\\"transporterCredentials.isPartner\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,4,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"isPartner\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"isPartner\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"merchantKey\\\",[23,2,[]],\\\"transporterCredentials.key\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@isRequired\\\",\\\"@minlength\\\",\\\"@maxlength\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"key\\\"]],true,1,50]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"merchantIv\\\",[23,2,[]],\\\"transporterCredentials.iv\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@isRequired\\\",\\\"@minlength\\\",\\\"@maxlength\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"iv\\\"]],true,1,50]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/payuni-seven-eleven/credentials/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/accounts-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwSevenElevenAccountsDisplayComponent extends _component.default {}\n  _exports.default = ExtensionsAppsTwSevenElevenAccountsDisplayComponent;\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/accounts-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+DrWE6Pd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"account\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"seven-eleven shop id\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"seven-eleven sub shop id\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"seven-eleven pay on checkout\\\"],null],false],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"transporterAccounts\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isDefault\\\"]],\\\"has-text-weight-semibold\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isDefault\\\"]],\\\" has-text-weight-semibold \\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"shopId\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isDefault\\\"]],\\\" has-text-weight-semibold \\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"subShopId\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[true,false,true,[23,1,[\\\"_data\\\",\\\"payOnCheckout\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/seven-eleven/accounts-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/accounts-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 ExtensionsAppsTwSevenElevenAccountsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class ExtensionsAppsTwSevenElevenAccountsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"model\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isMinRequiredMet\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'base');\n      this.setup();\n    }\n    setup() {\n      const isEditing = this.args.isEditing === true;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model: this.args.model\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName\n        });\n      }\n    }\n    submit() {\n      if (this.model.isDirty) {\n        const originalModel = this.args.model;\n        const data = this.model._data;\n        originalModel.set('_data', data);\n        this.args.onUpdateItem(originalModel);\n      } else {\n        this.args.onAddItem(this.model);\n      }\n    }\n    validateMinRequiredMet() {\n      const minRequired = ['name', 'shopId', 'subShopId', 'printPassword'];\n      const allPass = minRequired.map(requireField => {\n        return R.pipe(R.path(['model', '_data', requireField]), RA.isNotNilOrEmpty)(this);\n      });\n      this.isMinRequiredMet = R.all(R.equals(true))(allPass);\n    }\n    delete() {}\n    cancel(model) {\n      this.args.onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isMinRequiredMet\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"submit\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"submit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateMinRequiredMet\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"validateMinRequiredMet\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/accounts-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1r735CcM\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/seven-eleven/accounts-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/create-contact/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\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 ExtensionsAppsTwSevenElevenCreateContactComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('contacts'), _dec4 = Ember.inject.service('transporter'), _dec5 = Ember.inject.service('settings'), _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _class = class ExtensionsAppsTwSevenElevenCreateContactComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"contactService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor6, this);\n      _initializerDefineProperty(this, \"contactsList\", _descriptor7, this);\n      _initializerDefineProperty(this, \"model\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isLinkContact\", _descriptor9, this);\n      _initializerDefineProperty(this, \"transporter\", _descriptor0, this);\n      _initializerDefineProperty(this, \"refreshed\", _descriptor1, this);\n      _defineProperty(this, \"adapterNameContactsTransporters\", 'contacts');\n      _defineProperty(this, \"adapterNameContacts\", 'contacts');\n      _defineProperty(this, \"transporterExtension\", this.constants.transporterExtensions.sevenEleven);\n      _defineProperty(this, \"productTypeDefault\", 'general food');\n    }\n    get linkIcon() {\n      return this.isLinkContact ? 'fas fa-link' : null;\n    }\n    get allowCreate() {\n      const allowCreate = this.args.allowCreate;\n      const isNilOrEmpty = RA.isNilOrEmpty(allowCreate);\n      if (isNilOrEmpty) {\n        return true;\n      }\n      return allowCreate;\n    }\n    get senderNamePlaceHolder() {\n      return R.pipe(R.pathOr('', ['settingsService', 'settingsModel', '_data', 'company']), R.take(5))(this);\n    }\n    setup() {\n      const hasExistingModel = RA.isNotNilOrEmpty(this.args.model);\n      if (hasExistingModel) {\n        this.model = this.crud.setupDirty({\n          adapterName: 'contacts',\n          model: this.args.model\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: 'contacts'\n        });\n      }\n    }\n    *saveTask(onCloseDialogAction) {\n      let transporterModel;\n      this.model.setData('relationships', [this.constants.contactsRelationship.supplier]);\n      this.model.setData('isTransporter', this.constants.isTransporter.on);\n      this.model.setData('transporterExtension', this.transporterExtension);\n      this.model.setData('isAllowedLinkMember', false);\n      const isDirty = this.model.isDirty && this.model?._data?._key;\n      if (this.isLinkContact) {\n        const dirty = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model: this.model\n        });\n        transporterModel = yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterNameContactsTransporters,\n          model: dirty\n        });\n      } else if (isDirty) {\n        transporterModel = yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterNameContactsTransporters,\n          model: this.model\n        });\n      } else if (this.allowCreate) {\n        transporterModel = yield this.crud.createRecordTask.perform({\n          adapterName: 'contacts',\n          model: this.model\n        });\n      } else {\n        const data = this.model._data;\n        this.args.model.set('_data', data);\n      }\n      if (this?.args?.onLoadTransporterContact) {\n        this.args.onLoadTransporterContact(transporterModel);\n        this.model = transporterModel;\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *searchContactsTask(args = {\n      relationship: 'supplier'\n    }) {\n      this.contactsList = yield this.contactService.searchInputTask.perform(args);\n    }\n    *setupLists() {\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time']);\n      this.setup();\n      const options = {\n        query: this.args?.model?._data?.name,\n        relationship: 'supplier'\n      };\n      yield this.searchContactsTask.perform(options);\n    }\n    loadTransporter(transporter) {\n      this.isLinkContact = true;\n      this.transporter = transporter;\n      R.pipe(R.propOr({}, '_data'), R.forEachObjIndexed((value, key) => {\n        this.model.setData(key, value);\n      }))(transporter);\n      this.model.setData('_key', transporter.getData('_key'));\n      this.model.setData('_rev', transporter.getData('_rev'));\n      this.model.setData('code', transporter.getData('code'));\n      this.model.setData('transporterAccounts', this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere']);\n      const defaultTransporterAccount = transporter?._data?.defaultTransporterAccount || this.transporterService.defaultTransporterAccountNumber;\n      this.model.setData('defaultTransporterAccount', defaultTransporterAccount);\n      this.refreshModel(this.model);\n    }\n    unloadTransporter() {\n      this.isLinkContact = false;\n      this.transporter = '';\n      this.model.setData('_id', '');\n      this.model.setData('_key', '');\n      this.model.setData('_rev', '');\n      this.model.setData('code', '');\n      this.model.setData('transporterAccounts', []);\n      this.model.setData('defaultTransporterAccount', '');\n      this.setupModel({\n        isNew: true\n      });\n      this.refreshModel();\n    }\n    setupModel({\n      isNew = false\n    } = {}) {\n      const existingModel = R.pathOr(null, ['args', 'model'])(this);\n      if (existingModel && !isNew) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model: existingModel\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterNameContacts\n        });\n      }\n    }\n    refreshModel(model) {\n      model = model || R.propOr({}, 'model')(this);\n      const isDirty = R.pathEq(['isDirty'], true)(model);\n      if (isDirty) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model\n        });\n        this.model.set('_data', this.model._data);\n      } else {\n        this.model = model;\n      }\n      if (this.args?.model?._data) {\n        this.args.model.set('_data', this.model._data);\n      }\n      this.refreshed = !this.refreshed;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"contactService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"contactsList\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isLinkContact\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"transporter\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"refreshed\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchContactsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchContactsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupLists\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadTransporter\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadTransporter\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupModel\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"setupModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshModel\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshModel\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/create-contact/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"W9YOWguU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@label\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@modalDialogTitle\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[23,2,[]],\\\"seven-eleven contact\\\",[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"setupLists\\\"]]],null],[23,0,[\\\"setupLists\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"name\\\",[23,4,[]],\\\"twTCat\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@disallowDeselect\\\"],[false,true,[23,0,[\\\"contactsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"fas fa-address-book\\\",[23,2,[]],[23,0,[\\\"searchContactsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"searchContactsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"query\\\"],[\\\"supplier\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]]],null],[23,0,[\\\"loadTransporter\\\"]],[23,0,[\\\"unloadTransporter\\\"]],false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender name\\\",[23,4,[]],\\\"sevenEleven\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"senderNamePlaceHolder\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"senderName\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender telephone\\\",[23,4,[]],\\\"sevenEleven\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"companyTel\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"senderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"linkIcon\\\"]],[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/seven-eleven/create-contact/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/credentials/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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, _dec0, _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 ExtensionsAppsTwSevenElevenCredentialsComponent = _exports.default = (_dec = Ember.inject.service('transporter'), _dec2 = Ember.computed('args.model._data.transporterCredentials.pickup.{shopId,subShopId,printPassword}'), _dec3 = Ember.computed('args.model._data.transporterCredentials.checkout.{shopId,subShopId,printPassword}'), _dec4 = Ember.computed('args.model._data.transporterCredentials.checkoutFrozen.{shopId,subShopId,printPassword}'), _dec5 = Ember.computed('args.model._data.transporterCredentials.sftp.{username,password}'), _dec6 = Ember.computed('args.model._data.transporterCredentials.sftpFrozen.{username,password}'), _dec7 = Ember.computed('args.model.{isSftpValidTransporterCredentials,isPickupValidTransporterCredentials,isCheckoutValidTransporterCredentials}'), _dec8 = Ember.computed('args.model.{isSftpFrozenValidTransporterCredentials,isCheckoutFrozenValidTransporterCredentials}'), _dec9 = Ember._action, _dec0 = Ember._action, _class = class ExtensionsAppsTwSevenElevenCredentialsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor, this);\n      this.setDefaultCredentialsFlag(this.args.model);\n    }\n    get transporterCredentialsPickupRequired() {\n      if (this.args.model?._data?.transporterCredentials?.pickup?.shopId || this.args.model?._data?.transporterCredentials?.pickup?.subShopId || this.args.model?._data?.transporterCredentials?.pickup?.printPassword) {\n        return true;\n      }\n      return false;\n    }\n    get transporterCredentialsCheckoutRequired() {\n      if (this.args.model?._data?.transporterCredentials?.checkout?.shopId || this.args.model?._data?.transporterCredentials?.checkout?.subShopId || this.args.model?._data?.transporterCredentials?.checkout?.printPassword) {\n        return true;\n      }\n      return false;\n    }\n    get transporterCredentialsCheckoutFrozenRequired() {\n      if (this.args.model?._data?.transporterCredentials?.checkoutFrozen?.shopId || this.args.model?._data?.transporterCredentials?.checkoutFrozen?.subShopId || this.args.model?._data?.transporterCredentials?.checkoutFrozen?.printPassword) {\n        return true;\n      }\n      return false;\n    }\n    get transporterCredentialsSftpRequired() {\n      if (this.args.model?._data?.transporterCredentials?.sftp?.username || this.args.model?._data?.transporterCredentials?.sftp?.password) {\n        return true;\n      }\n      return false;\n    }\n    get transporterCredentialsSftpFrozenRequired() {\n      if (this.args.model?._data?.transporterCredentials?.sftpFrozen?.username || this.args.model?._data?.transporterCredentials?.sftpFrozen?.password) {\n        return true;\n      }\n      return false;\n    }\n    get sftpIconData() {\n      const data = {\n        icon: 'far fa-circle',\n        className: ''\n      };\n      if (this.args.model?.isSftpValidTransporterCredentials) {\n        data.icon = 'fas fa-circle-check';\n        data.className = 'has-text-success';\n        return data;\n      }\n      if (this.args.model?.isPickupValidTransporterCredentials || this.args.model?.isCheckoutValidTransporterCredentials) {\n        data.icon = 'fas fa-times-circle';\n        data.className = 'has-text-danger';\n        return data;\n      }\n      return data;\n    }\n    get sftpFrozenIconData() {\n      const data = {\n        icon: 'far fa-circle',\n        className: ''\n      };\n      if (this.args.model?.isSftpFrozenValidTransporterCredentials) {\n        data.icon = 'fas fa-circle-check';\n        data.className = 'has-text-success';\n        return data;\n      }\n      if (this.args.model?.isCheckoutFrozenValidTransporterCredentials) {\n        data.icon = 'fas fa-times-circle';\n        data.className = 'has-text-danger';\n        return data;\n      }\n      return data;\n    }\n    *validateTransporterCredentials(onCloseDialogAction, model, type) {\n      this.updateLocalValidCredentialsFlag(model, type);\n      yield this.transporterService.validateTransporterCredentials.perform(model, type);\n      this.updateLocalValidCredentialsFlag(model, type, true);\n      return onCloseDialogAction();\n    }\n    /**\n     * @param {any} model\n     * @param {'pickup'|'checkout'|'checkoutFrozen'|'sftp'|'sftpFrozen'} type\n     * @param {boolean} isValid\n     */\n    updateLocalValidCredentialsFlag(model, type, isValid) {\n      isValid = isValid === true;\n      switch (type) {\n        case 'pickup':\n          model.set('isPickupValidTransporterCredentials', isValid);\n          break;\n        case 'checkout':\n          model.set('isCheckoutValidTransporterCredentials', isValid);\n          break;\n        case 'checkoutFrozen':\n          model.set('isCheckoutFrozenValidTransporterCredentials', isValid);\n          break;\n        case 'sftp':\n          model.set('isSftpValidTransporterCredentials', isValid);\n          break;\n        case 'sftpFrozen':\n          model.set('isSftpFrozenValidTransporterCredentials', isValid);\n          break;\n      }\n    }\n    setDefaultCredentialsFlag(model) {\n      if (!model?._data?._key) {\n        return;\n      }\n      const transporterCredentials = model?._data?.transporterCredentials;\n      if (RA.isNilOrEmpty(transporterCredentials)) {\n        return;\n      }\n      if (transporterCredentials?.pickup?.shopId && transporterCredentials?.pickup?.subShopId && transporterCredentials?.pickup?.printPassword) {\n        this.updateLocalValidCredentialsFlag(model, 'pickup', true);\n      }\n      if (transporterCredentials?.checkout?.shopId && transporterCredentials?.checkout?.subShopId && transporterCredentials?.checkout?.printPassword) {\n        this.updateLocalValidCredentialsFlag(model, 'checkout', true);\n      }\n      if (transporterCredentials?.checkoutFrozen?.shopId && transporterCredentials?.checkoutFrozen?.subShopId && transporterCredentials?.checkoutFrozen?.printPassword) {\n        this.updateLocalValidCredentialsFlag(model, 'checkoutFrozen', true);\n      }\n      if (transporterCredentials?.sftp?.username && transporterCredentials?.sftp?.password) {\n        this.updateLocalValidCredentialsFlag(model, 'sftp', true);\n      }\n      if (transporterCredentials?.sftpFrozen?.username && transporterCredentials?.sftpFrozen?.password) {\n        this.updateLocalValidCredentialsFlag(model, 'sftpFrozen', true);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"transporterCredentialsPickupRequired\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterCredentialsPickupRequired\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterCredentialsCheckoutRequired\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterCredentialsCheckoutRequired\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterCredentialsCheckoutFrozenRequired\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterCredentialsCheckoutFrozenRequired\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterCredentialsSftpRequired\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterCredentialsSftpRequired\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterCredentialsSftpFrozenRequired\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterCredentialsSftpFrozenRequired\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sftpIconData\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"sftpIconData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sftpFrozenIconData\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"sftpFrozenIconData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateTransporterCredentials\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"validateTransporterCredentials\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateLocalValidCredentialsFlag\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"updateLocalValidCredentialsFlag\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultCredentialsFlag\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultCredentialsFlag\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/credentials/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Z0SrJgBW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,11,[]],\\\"transporterCredentials.checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@modalDialogTitle\\\",\\\"@label\\\",\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@iconClassName\\\",\\\"@hasSectionWrapper\\\"],[\\\"seven-eleven pickup\\\",\\\"seven-eleven pickup\\\",false,[28,\\\"if\\\",[[23,12,[\\\"isCheckoutValidTransporterCredentials\\\"]],\\\"fas fa-circle-check\\\",\\\"far fa-circle\\\"],null],[28,\\\"if\\\",[[23,12,[\\\"isCheckoutValidTransporterCredentials\\\"]],\\\"has-text-success\\\",\\\"\\\"],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,12,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"details\\\",false,[23,13,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\"],[\\\"contacts\\\",[23,15,[]],[23,13,[]],[23,14,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"transporter_group\\\",[23,10,[]],\\\"seven-eleven pickup\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven pickup shop id\\\",\\\"transporterCredentials.checkout.shopId\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsCheckoutRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"checkout\\\",\\\"shopId\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven pickup sub shop id\\\",\\\"transporterCredentials.checkout.subShopId\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsCheckoutRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"checkout\\\",\\\"subShopId\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven pickup print password\\\",\\\"transporterCredentials.checkout.printPassword\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsCheckoutRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"checkout\\\",\\\"printPassword\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[10]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[23,9,[]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,16,[]],[28,\\\"if\\\",[[23,0,[\\\"transporterCredentialsCheckoutRequired\\\"]],false,true],null]],null],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"validateTransporterCredentials\\\"]],[23,9,[]],[23,12,[]],\\\"checkout\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[9]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,11,[]],\\\"transporterCredentials.checkoutFrozen\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@modalDialogTitle\\\",\\\"@label\\\",\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@iconClassName\\\",\\\"@hasSectionWrapper\\\"],[\\\"seven-eleven pickup frozen\\\",\\\"seven-eleven pickup frozen\\\",false,[28,\\\"if\\\",[[23,12,[\\\"isCheckoutFrozenValidTransporterCredentials\\\"]],\\\"fas fa-circle-check\\\",\\\"far fa-circle\\\"],null],[28,\\\"if\\\",[[23,12,[\\\"isCheckoutFrozenValidTransporterCredentials\\\"]],\\\"has-text-success\\\",\\\"\\\"],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,12,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"details\\\",false,[23,13,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\"],[\\\"contacts\\\",[23,15,[]],[23,13,[]],[23,14,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"transporter_group\\\",[23,8,[]],\\\"seven-eleven pickup frozen\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven pickup frozen shop id\\\",\\\"transporterCredentials.checkoutFrozen.shopId\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsCheckoutFrozenRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"checkoutFrozen\\\",\\\"shopId\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven pickup frozen sub shop id\\\",\\\"transporterCredentials.checkoutFrozen.subShopId\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsCheckoutFrozenRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"checkoutFrozen\\\",\\\"subShopId\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven pickup frozen print password\\\",\\\"transporterCredentials.checkoutFrozen.printPassword\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsCheckoutFrozenRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"checkoutFrozen\\\",\\\"printPassword\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[23,7,[]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,16,[]],[28,\\\"if\\\",[[23,0,[\\\"transporterCredentialsCheckoutFrozenRequired\\\"]],false,true],null]],null],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"validateTransporterCredentials\\\"]],[23,7,[]],[23,12,[]],\\\"checkoutFrozen\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,11,[]],\\\"transporterCredentials.pickup\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@modalDialogTitle\\\",\\\"@label\\\",\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@iconClassName\\\",\\\"@hasSectionWrapper\\\"],[\\\"seven-eleven payment on pickup\\\",\\\"seven-eleven payment on pickup\\\",false,[28,\\\"if\\\",[[23,12,[\\\"isPickupValidTransporterCredentials\\\"]],\\\"fas fa-circle-check\\\",\\\"far fa-circle\\\"],null],[28,\\\"if\\\",[[23,12,[\\\"isPickupValidTransporterCredentials\\\"]],\\\"has-text-success\\\",\\\"\\\"],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,12,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"details\\\",false,[23,13,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\"],[\\\"contacts\\\",[23,15,[]],[23,13,[]],[23,14,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"transporter_group\\\",[23,6,[]],\\\"seven-eleven payment on pickup\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven pay on pickup shop id\\\",\\\"transporterCredentials.pickup.shopId\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsPickupRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"pickup\\\",\\\"shopId\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven pay on pickup sub shop id\\\",\\\"transporterCredentials.pickup.subShopId\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsPickupRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"pickup\\\",\\\"subShopId\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven pay on pickup print password\\\",\\\"transporterCredentials.pickup.printPassword\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsPickupRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"pickup\\\",\\\"printPassword\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[23,5,[]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,16,[]],[28,\\\"if\\\",[[23,0,[\\\"transporterCredentialsPickupRequired\\\"]],false,true],null]],null],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"validateTransporterCredentials\\\"]],[23,5,[]],[23,12,[]],\\\"pickup\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,11,[]],\\\"transporterCredentials.sftp\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@modalDialogTitle\\\",\\\"@label\\\",\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@iconClassName\\\",\\\"@hasSectionWrapper\\\"],[\\\"seven-eleven sftp\\\",\\\"seven-eleven sftp\\\",false,[23,0,[\\\"sftpIconData\\\",\\\"icon\\\"]],[23,0,[\\\"sftpIconData\\\",\\\"className\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,12,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"details\\\",false,[23,13,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\"],[\\\"contacts\\\",[23,15,[]],[23,13,[]],[23,14,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"transporter_group\\\",[23,4,[]],\\\"seven-eleven sftp\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven sftp username\\\",\\\"transporterCredentials.sftp.username\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsSftpRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"sftp\\\",\\\"username\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven sftp password\\\",\\\"transporterCredentials.sftp.password\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsSftpRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"sftp\\\",\\\"password\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[23,3,[]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,16,[]],[28,\\\"if\\\",[[23,0,[\\\"transporterCredentialsSftpRequired\\\"]],false,true],null]],null],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"validateTransporterCredentials\\\"]],[23,3,[]],[23,12,[]],\\\"sftp\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,11,[]],\\\"transporterCredentials.sftpFrozen\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@modalDialogTitle\\\",\\\"@label\\\",\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@iconClassName\\\",\\\"@hasSectionWrapper\\\"],[\\\"seven-eleven sftp frozen\\\",\\\"seven-eleven sftp frozen\\\",false,[23,0,[\\\"sftpFrozenIconData\\\",\\\"icon\\\"]],[23,0,[\\\"sftpFrozenIconData\\\",\\\"className\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,12,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"details\\\",false,[23,13,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\"],[\\\"contacts\\\",[23,15,[]],[23,13,[]],[23,14,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"transporter_group\\\",[23,2,[]],\\\"seven-eleven sftp frozen\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven sftp frozen username\\\",\\\"transporterCredentials.sftpFrozen.username\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsSftpFrozenRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"sftpFrozen\\\",\\\"username\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"seven-eleven sftp frozen password\\\",\\\"transporterCredentials.sftpFrozen.password\\\",[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"transporterCredentialsSftpFrozenRequired\\\"]],[28,\\\"or\\\",[[23,16,[]],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]]],null],[23,12,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"sftpFrozen\\\",\\\"password\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,16,[]],[28,\\\"if\\\",[[23,0,[\\\"transporterCredentialsSftpFrozenRequired\\\"]],false,true],null]],null],[23,0,[\\\"validateTransporterCredentials\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"validateTransporterCredentials\\\"]],[23,1,[]],[23,12,[]],\\\"sftpFrozen\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/seven-eleven/credentials/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/print-item-meta/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, R, R_) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _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 ExtensionsAppsTwSevenElevenPrintItemMetaComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('dispatch'), _dec3 = Ember.inject.service('constants'), _dec4 = Ember.inject.service('transporter'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember.computed('args.model._data.convenienceStoreData.storeId'), _dec0 = Ember.computed('args.model._data.convenienceStoreData.storeId'), _dec1 = Ember.computed('args.model._data.convenienceStoreData.storeName'), _dec10 = Ember.computed('args.model._data.convenienceStoreData.storeAddress'), _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _class = class ExtensionsAppsTwSevenElevenPrintItemMetaComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"convenienceStoreWindow\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sync\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isStartUpdateConvenienceStore\", _descriptor7, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor8, this);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere']);\n      this.setupTask.perform(this.args.model);\n    }\n    get canChangeConvenienceStore() {\n      if (this.args.canChangeConvenienceStoreOverride === true) {\n        return true;\n      }\n      if (this.args.isReadonly === false) {\n        return false;\n      }\n      return true;\n    }\n    get transporterPackageTemperatureList() {\n      const transporterPackageTemperatureList = this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere'] || [];\n      return transporterPackageTemperatureList.filter(t => t._data.value !== 'refrigerated');\n    }\n    get oldStore() {\n      return R.pipe(R.pathOr([], ['args', 'model', '_data', 'convenienceStoreData', 'history']), R.last)(this);\n    }\n    get allowUpdateConvenienceStore() {\n      const allowUpdateConvenienceStore = R.pathEq(['args', 'allowUpdateConvenienceStore'], true)(this);\n      if (allowUpdateConvenienceStore) {\n        return allowUpdateConvenienceStore;\n      }\n      const provider = R.pathOr('', ['args', 'tab', 'value'])(this);\n      return R.includes(this.constantsService.transporterExtensions.sevenEleven)(provider);\n    }\n    get storeId() {\n      return R_.dotPath('args.model._data.convenienceStoreData.storeId')(this);\n    }\n    get storeName() {\n      return R_.dotPath('args.model._data.convenienceStoreData.storeName')(this);\n    }\n    get storeAddress() {\n      return R_.dotPath('args.model._data.convenienceStoreData.storeAddress')(this);\n    }\n    closeUpdateConvenienceStoreWindow(storeId, rev) {\n      this.updateSync();\n      try {\n        if (this.convenienceStoreWindow && this.convenienceStoreWindow.close) {\n          this.convenienceStoreWindow.close();\n          if (this.args?.outerOnCloseDialogAction) {\n            this.args.outerOnCloseDialogAction();\n          }\n        }\n      } catch (error) {\n        // DO NOTHING ON STORE WINDOWS REFERENCE ERROR\n      }\n    }\n    *setupTask(model) {\n      if (!model) {\n        return;\n      }\n      const transporterKey = model?._data?.transporterKey;\n      if (!transporterKey) {\n        return;\n      }\n      this.transporterModel = yield this.transporterService.fetchTransporterTask.perform({\n        transporterKey\n      });\n      if (!this.args.model._data.transporterAccount) {\n        const transporterAccount = R.pathOr([], ['transporterAccounts', 0, '_data', 'value'])(this.transporterModel);\n        if (transporterAccount) {\n          this.args.model.set('_data.transporterAccount', transporterAccount);\n        }\n      }\n    }\n\n    /**\n     * @param {Object} model - The model object.\n     * @return {void} - This method does not return anything.\n     */\n    *updateConvenienceStoreTask(model) {\n      let personId;\n      if (this.args.upsertPersonTask && this.args?.isNewPerson) {\n        personId = this.args?.personModel?._data?.personId;\n        const transporterModel = yield this.args.upsertPersonTask.perform();\n        const hasPerson = R.pipe(R.pathOr([], ['_data', 'persons']), R.find(R.pathEq(['_data', 'personId'], personId)))(transporterModel);\n        if (!hasPerson) {\n          personId = null;\n        }\n      } else if (model?._data?.transporterDefaultPickupLocationPersonId) {\n        personId = model?._data?.transporterDefaultPickupLocationPersonId;\n      } else if (this.args?.personModel?._data?.personId) {\n        personId = this.args?.personModel?._data?.personId;\n      } else {\n        const transporterAccount = this.args.model?._data?.transporterAccount;\n        personId = this.transporterModel.getPersonIdByTransporterAccount(transporterAccount);\n      }\n      const transporterKey = this.args?.transporterKey || this.args?.model?._data?.transporterKey || '';\n      try {\n        const url = yield this.dispatchService.updateConvenienceStoreUrl.perform({\n          model,\n          transporterKey,\n          personId\n        });\n        this.convenienceStoreWindow = window.open(url, '_blank');\n        this.args.outerOnCloseDialogAction();\n      } catch (error) {\n        // DO NOTHING ON STORE WINDOWS REFERENCE ERROR\n      }\n    }\n    updateSync() {\n      this.sync = Math.random();\n    }\n    toggleStartUpdateConvenienceStore() {\n      this.isStartUpdateConvenienceStore = !this.isStartUpdateConvenienceStore;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"convenienceStoreWindow\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"sync\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isStartUpdateConvenienceStore\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"oldStore\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"oldStore\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"storeId\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"storeId\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"storeName\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"storeName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"storeAddress\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"storeAddress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeUpdateConvenienceStoreWindow\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"closeUpdateConvenienceStoreWindow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateConvenienceStoreTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateConvenienceStoreTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateSync\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"updateSync\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleStartUpdateConvenienceStore\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleStartUpdateConvenienceStore\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/print-item-meta/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"iW+hLAzE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@onClearReturnShop\\\",\\\"@isRunning\\\",\\\"@storeName\\\",\\\"@storeAddress\\\",\\\"@storeId\\\",\\\"@errors\\\",\\\"@isUpdateReturnStore\\\",\\\"&default\\\",\\\"@showOldStoreData\\\",\\\"@isReadonly\\\",\\\"@isUpdateStore\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[3,\\\"did-update\\\",[[23,0,[\\\"closeUpdateConvenienceStoreWindow\\\"]],[23,6,[]],[23,1,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeId\\\"]],[23,1,[\\\"_data\\\",\\\"_rev\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"hasAddressChangeRequired\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/error-message\\\",[],[[\\\"@hasIcon\\\",\\\"@label\\\",\\\"@message\\\"],[true,[23,1,[\\\"latestWaybillStatus\\\",\\\"message\\\"]],\\\"change convenience store\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,10,[]],[23,0,[\\\"oldStore\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"oldStore\\\",\\\"storeId\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"storeId\\\",\\\"extensions_tw_sevenEleven\\\",\\\"old store id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"oldStore\\\",\\\"storeId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"oldStore\\\",\\\"storeName\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"oldStore.storeName\\\",\\\"extensions_tw_sevenEleven\\\",\\\"old store name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"oldStore\\\",\\\"storeName\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"convenienceStoreData.storeId\\\",\\\"extensions_tw_sevenEleven\\\",\\\"storeId\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,1,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeId\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"convenienceStoreData.storeName\\\",\\\"extensions_tw_sevenEleven\\\",\\\"storeName\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,1,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeName\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"convenience store\\\",[23,7,[]],\\\"changeConvenienceStoreData\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isStartUpdateConvenienceStore\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"fas fa-ban\\\",[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"transporterService\\\",\\\"updateWaybillNotification\\\",\\\"isRunning\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleStartUpdateConvenienceStore\\\"]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,false,\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"transporterPackageTemperatureList\\\"]],true,[23,1,[\\\"_data\\\",\\\"transporterAccount\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[false,true,\\\"change convenience store\\\",[28,\\\"if\\\",[[23,0,[\\\"canChangeConvenienceStore\\\"]],false,true],null],[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"transporterService\\\",\\\"updateWaybillNotification\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"updateConvenienceStoreTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"change convenience store\\\",[28,\\\"if\\\",[[23,0,[\\\"canChangeConvenienceStore\\\"]],false,true],null],[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"transporterService\\\",\\\"updateWaybillNotification\\\",\\\"isRunning\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleStartUpdateConvenienceStore\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasAddressChangeRequired\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"transporterContactPerson\\\",\\\"extensions_tw_sevenEleven\\\",\\\"contact person\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\"],[[23,0,[\\\"isRunning\\\"]],[23,1,[\\\"_data\\\",\\\"transporterContactPerson\\\"]],[23,1,[\\\"_data\\\",\\\"contact\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"transporterContactPhone\\\",\\\"extensions_tw_sevenEleven\\\",\\\"contact phone number\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\"],[[23,0,[\\\"isRunning\\\"]],[23,1,[\\\"_data\\\",\\\"transporterContactPhone\\\"]],[23,1,[\\\"_data\\\",\\\"telephone\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[false,\\\"save\\\",[28,\\\"perform\\\",[[23,0,[\\\"transporterService\\\",\\\"updateWaybillNotification\\\"]],[23,1,[]]],null],[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"transporterService\\\",\\\"updateWaybillNotification\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"transporter package temperature\\\",[23,7,[]],\\\"transporterAccount\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,11,[]],\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"transporterPackageTemperatureList\\\"]],true,[23,1,[\\\"_data\\\",\\\"transporterAccount\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[25,9]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,9,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"return convenience store\\\",[23,7,[]],\\\"returnConvenienceStore\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,4,[]],false],[0,\\\" - \\\"],[1,[23,5,[]],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"storeId\\\"],null],false],[0,\\\": \\\"],[1,[23,6,[]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"seven-eleven return store description\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[\\\"isDirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"change return convenience store\\\",[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"updateConvenienceStoreTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,1,[\\\"isDirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@typeToDelete\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[false,\\\"\\\",\\\"fas fa-trash\\\",[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"storeId\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeId\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"storeName\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeName\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowUpdateConvenienceStore\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-item__line\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[true,[28,\\\"if\\\",[[23,0,[\\\"canChangeConvenienceStore\\\"]],false,true],null],\\\"change convenience store\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateConvenienceStoreTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/seven-eleven/print-item-meta/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/additional-info/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwSevenElevenReportStatusDaysAdditionalInfoComponent extends _component.default {}\n  _exports.default = ExtensionsAppsTwSevenElevenReportStatusDaysAdditionalInfoComponent;\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/additional-info/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rkURdGHu\",\n    \"block\": \"{\\\"symbols\\\":[\\\"byDaysOldData\\\",\\\"doc\\\",\\\"index\\\",\\\"@groupData\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"groupedByDaysOld\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"docs\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/info-card\\\",[],[[\\\"@index\\\"],[[28,\\\"sum\\\",[[23,3,[]],1],[[\\\"rounding\\\"],[0]]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/tab-link\\\",[[12,\\\"classNames\\\",\\\"u-link--text\\\"]],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"_key\\\"]],[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,2,[\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"docName\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,2,[\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"docName\\\"]]],null],[23,2,[\\\"docType\\\"]],[23,2,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"waybill\\\"]],false],[0,\\\" - \\\"],[1,[23,2,[\\\"contact\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics u-desc--mini\\\"],[8],[0,\\\"\\\\n              #\\\"],[1,[23,2,[\\\"docNo\\\"]],false],[0,\\\" - \\\"],[1,[23,2,[\\\"ref\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/additional-info/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 ExtensionsAppsTwSevenElevenReportStatusDaysComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _class = class ExtensionsAppsTwSevenElevenReportStatusDaysComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"transporter\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      // @tracked report\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor6, this);\n      _initializerDefineProperty(this, \"transportersList\", _descriptor7, this);\n      _initializerDefineProperty(this, \"fetchedReportDetails\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isRowVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sevenElevenTransporterList\", _descriptor0, this);\n      _defineProperty(this, \"daysOldArray\", [0, 1, 2, 3, 4, 5, 6, 7]);\n      this.crud.addLists(this, ['contacts/transporters', 'dispatch/lists/processes']);\n    }\n    afterLoadLists() {\n      const transportersList = R.pathOr([], ['crud', 'lists', 'contacts-transporters'])(this);\n      this.transportersList = transportersList;\n      const transporterModel = transportersList.findBy('_data.transporterExtension', this.provider);\n      if (transporterModel) {\n        this.transporterModel = transporterModel;\n      }\n    }\n    *fetchReportDetailsTask({\n      type,\n      segment\n    }) {\n      const fetchedReportDetails = this.fetchedReportDetails || {};\n      if (RA.isNilOrEmpty(fetchedReportDetails[type])) {\n        const segmentReport = yield this.args.onFetchReportTask.perform({\n          type,\n          segment\n        });\n        if (RA.isNotNilOrEmpty(segmentReport[type])) {\n          const report = this?.args?.report || {};\n          const segmentReportValue = segmentReport[type];\n          Ember.set(report, type, segmentReportValue);\n          // this.report = report\n        }\n      }\n      fetchedReportDetails[type] = true;\n      // @NOTE: this is required to refresh object in template\n      this.fetchedReportDetails = fetchedReportDetails;\n      const isRowVisible = this.isRowVisible;\n      const isVisible = !isRowVisible[`${type}-${segment}`];\n      isRowVisible[`${type}-${segment}`] = isVisible;\n\n      // @NOTE: this is required to refresh object in template\n      this.isRowVisible = isRowVisible;\n    }\n    resetTracked() {\n      this.fetchedReportDetails = {};\n      this.isRowVisible = {};\n    }\n\n    // get badgeCount () {\n    //   const report = this?.args?.report || {}\n\n    //   const noWaybillsLength = R.pluck('docCount')(report?.noWaybills || []) || 0\n    //   const awaitingDispatchLength = R.pluck('docCount')(report?.awaitingDispatch || []) || 0\n    //   const shippedLength = R.pluck('docCount')(report?.shipped || []) || 0\n    //   const returnsLength = R.pluck('docCount')(report?.returns || []) || 0\n\n    //   return R.sum([\n    //     noWaybillsLength,\n    //     awaitingDispatchLength,\n    //     shippedLength,\n    //     returnsLength\n    //   ])\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"transporter\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"transportersList\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"fetchedReportDetails\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isRowVisible\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"sevenElevenTransporterList\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchReportDetailsTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchReportDetailsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetTracked\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"resetTracked\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZzIdJsaD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"groupData\\\",\\\"index\\\",\\\"byDaysOldData\\\",\\\"groupData\\\",\\\"index\\\",\\\"byDaysOldData\\\",\\\"groupData\\\",\\\"index\\\",\\\"byDaysOldData\\\",\\\"groupData\\\",\\\"index\\\",\\\"byDaysOldData\\\",\\\"daysOld\\\",\\\"@report\\\",\\\"@sevenElevenExtensions\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"classNames\\\",\\\"isRunning\\\",\\\"onClose\\\",\\\"translate\\\",\\\"label\\\",\\\"badge\\\",\\\"modalDialogTitleTranslate\\\"],[true,\\\"hide-when-overflow\\\",[23,0,[\\\"fetchOverviewTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetTracked\\\"]]],null],false,[28,\\\"concat\\\",[\\\"report\\\",\\\": \\\",[28,\\\"tt\\\",[\\\"sevenEleven\\\"],null]],null],[23,0,[\\\"badgeCount\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,15,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table report-status-days__table\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"report-status-days__table-title\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"updated time\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,15,[\\\"lastStatusReadData\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"daysOldArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"daysOld_\\\",[23,14,[]]],null]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[14]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,15,[\\\"noWaybills\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,12,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"report-status-days__table-title\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"not yet dispatched\\\"],null],false],[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                     - \\\"],[1,[28,\\\"tt\\\",[\\\"waybills not yet created\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"tr\\\",false],[12,\\\"class\\\",\\\"u-row-expandable\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchReportDetailsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"segment\\\"],[\\\"noWaybills\\\",[23,11,[\\\"dispatchProcess\\\"]]]]]],null]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"report-status-days__table-title has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"dispatch/dispatch-process-label\\\",[],[[\\\"@dispatchProcess\\\"],[[23,11,[\\\"dispatchProcess\\\"]]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@isSmall\\\",\\\"@isRunning\\\",\\\"@icon\\\"],[true,[23,0,[\\\"fetchReportDetailsTask\\\",\\\"isRunning\\\"]],[28,\\\"if\\\",[[28,\\\"get\\\",[[23,0,[\\\"isRowVisible\\\"]],[28,\\\"concat\\\",[\\\"noWaybills\\\",\\\"-\\\",[23,11,[\\\"lastMilestone\\\"]]],null]],null],\\\"fas fa-caret-up\\\",\\\"fas fa-caret-down\\\"],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,11,[\\\"groupedByDaysOld\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,13,[\\\"total\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[13]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"get\\\",[[23,0,[\\\"isRowVisible\\\"]],[28,\\\"concat\\\",[\\\"noWaybills\\\",\\\"-\\\",[23,11,[\\\"dispatchProcess\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"extensions/apps/tw/seven-eleven/report-status-days/additional-info\\\",[],[[\\\"@groupData\\\"],[[23,11,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[11,12]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,15,[\\\"awaitingDispatch\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,9,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"report-status-days__table-title\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"not yet dispatched\\\"],null],false],[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                     - \\\"],[1,[28,\\\"tt\\\",[\\\"waybills created\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"tr\\\",false],[12,\\\"class\\\",\\\"u-row-expandable\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchReportDetailsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"segment\\\"],[\\\"awaitingDispatch\\\",[23,8,[\\\"dispatchProcess\\\"]]]]]],null]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"report-status-days__table-title has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"dispatch/dispatch-process-label\\\",[],[[\\\"@dispatchProcess\\\"],[[23,8,[\\\"dispatchProcess\\\"]]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@isSmall\\\",\\\"@isRunning\\\",\\\"@icon\\\"],[true,[23,0,[\\\"fetchReportDetailsTask\\\",\\\"isRunning\\\"]],[28,\\\"if\\\",[[28,\\\"get\\\",[[23,0,[\\\"isRowVisible\\\"]],[28,\\\"concat\\\",[\\\"awaitingDispatch\\\",\\\"-\\\",[23,8,[\\\"lastMilestone\\\"]]],null]],null],\\\"fas fa-caret-up\\\",\\\"fas fa-caret-down\\\"],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,8,[\\\"groupedByDaysOld\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,10,[\\\"total\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"get\\\",[[23,0,[\\\"isRowVisible\\\"]],[28,\\\"concat\\\",[\\\"awaitingDispatch\\\",\\\"-\\\",[23,8,[\\\"dispatchProcess\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"extensions/apps/tw/seven-eleven/report-status-days/additional-info\\\",[],[[\\\"@groupData\\\"],[[23,8,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[8,9]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,15,[\\\"shipped\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"report-status-days__table-title\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"dispatched\\\"],null],false],[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                     - \\\"],[1,[28,\\\"tt\\\",[\\\"shipped\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",false],[12,\\\"class\\\",\\\"u-row-expandable\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchReportDetailsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"segment\\\"],[\\\"shipped\\\",[23,5,[\\\"lastMilestone\\\"]]]]]],null]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"report-status-days__table-title has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"shippingStatus_\\\",[23,5,[\\\"lastMilestone\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@isSmall\\\",\\\"@isRunning\\\",\\\"@icon\\\"],[true,[23,0,[\\\"fetchReportDetailsTask\\\",\\\"isRunning\\\"]],[28,\\\"if\\\",[[28,\\\"get\\\",[[23,0,[\\\"isRowVisible\\\"]],[28,\\\"concat\\\",[\\\"shipped\\\",\\\"-\\\",[23,5,[\\\"lastMilestone\\\"]]],null]],null],\\\"fas fa-caret-up\\\",\\\"fas fa-caret-down\\\"],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"groupedByDaysOld\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,7,[\\\"total\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"get\\\",[[23,0,[\\\"isRowVisible\\\"]],[28,\\\"concat\\\",[\\\"shipped\\\",\\\"-\\\",[23,5,[\\\"lastMilestone\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"extensions/apps/tw/seven-eleven/report-status-days/additional-info\\\",[],[[\\\"@groupData\\\"],[[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5,6]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,15,[\\\"returns\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"report-status-days__table-title\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"dispatched\\\"],null],false],[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                     \\\"],[1,[28,\\\"tt\\\",[\\\"returns\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",false],[12,\\\"class\\\",\\\"u-row-expandable\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchReportDetailsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"segment\\\"],[\\\"returns\\\",[23,2,[\\\"lastMilestone\\\"]]]]]],null]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"report-status-days__table-title has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"shippingStatus_\\\",[23,2,[\\\"lastMilestone\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@isSmall\\\",\\\"@isRunning\\\",\\\"@icon\\\"],[true,[23,0,[\\\"fetchReportDetailsTask\\\",\\\"isRunning\\\"]],[28,\\\"if\\\",[[28,\\\"get\\\",[[23,0,[\\\"isRowVisible\\\"]],[28,\\\"concat\\\",[\\\"returns\\\",\\\"-\\\",[23,2,[\\\"lastMilestone\\\"]]],null]],null],\\\"fas fa-caret-up\\\",\\\"fas fa-caret-down\\\"],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"groupedByDaysOld\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,4,[\\\"total\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"get\\\",[[23,0,[\\\"isRowVisible\\\"]],[28,\\\"concat\\\",[\\\"returns\\\",\\\"-\\\",[23,2,[\\\"lastMilestone\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"extensions/apps/tw/seven-eleven/report-status-days/additional-info\\\",[],[[\\\"@groupData\\\"],[[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2,3]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/seven-eleven/report-status-days/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/sender-details/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 ExtensionsAppsTwSevenElevenSenderDetailsComponent = _exports.default = (_dec = Ember.inject.service('settings'), _dec2 = Ember._action, _class = class ExtensionsAppsTwSevenElevenSenderDetailsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor, this);\n      _defineProperty(this, \"maxLength\", 5);\n    }\n    get senderNamePlaceHolder() {\n      return R.pipe(R.pathOr('', ['settingsService', 'settingsModel', '_data', 'company']), R.take(this.maxLength))(this);\n    }\n    onClearReturnShop() {\n      if (!this.args.model) {\n        return;\n      }\n      this.args.model.resetSevenElevenReturnStore();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClearReturnShop\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onClearReturnShop\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/sender-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ABUvMx74\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender name\\\",[23,1,[]],\\\"senderName\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@maxlength\\\",\\\"@readonly\\\"],[[23,0,[\\\"senderNamePlaceHolder\\\"]],[23,2,[\\\"_data\\\",\\\"senderName\\\"]],[23,0,[\\\"maxLength\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender telephone\\\",[23,1,[]],\\\"senderTelephone\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@readonly\\\"],[[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"companyTel\\\"]],[23,2,[\\\"_data\\\",\\\"senderTelephone\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"],[5,\\\"extensions/apps/tw/seven-eleven/print-item-meta\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@transporterKey\\\",\\\"@storeId\\\",\\\"@storeName\\\",\\\"@storeAddress\\\",\\\"@storeIdPlaceholder\\\",\\\"@storeNamePlaceholder\\\",\\\"@storeAddressPlaceholder\\\",\\\"@isUpdateReturnStore\\\",\\\"@onClearReturnShop\\\"],[[23,4,[]],[23,2,[]],[23,2,[\\\"_data\\\",\\\"_key\\\"]],[23,2,[\\\"_data\\\",\\\"sevenEleven\\\",\\\"returnStore\\\",\\\"storeId\\\"]],[23,2,[\\\"_data\\\",\\\"sevenEleven\\\",\\\"returnStore\\\",\\\"storeName\\\"]],[23,2,[\\\"_data\\\",\\\"sevenEleven\\\",\\\"returnStore\\\",\\\"storeAddress\\\"]],\\\"same as drop off\\\",\\\"same as drop off\\\",\\\"same as drop off\\\",true,[23,0,[\\\"onClearReturnShop\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/seven-eleven/sender-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/settings-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 ExtensionsAppsTwSevenElevenSettingsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class ExtensionsAppsTwSevenElevenSettingsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor3, this);\n      _initializerDefineProperty(this, \"renderCreateContact\", _descriptor4, this);\n      _defineProperty(this, \"unlinkMessage\", 'are you sure you want to remove');\n      _defineProperty(this, \"adapterNameContactsTransporters\", 'contacts');\n      _defineProperty(this, \"transporterExtension\", 'seven-eleven');\n      this.crud.addLists(this, [this.adapterNameContactsTransporters]);\n    }\n    afterLoadLists() {\n      const transporters = R.pathOr([], ['crud', 'lists', 'contacts-transporters'])(this);\n      const transporterModel = transporters.findBy('_data.transporterExtension', this.transporterExtension);\n      if (transporterModel) {\n        this.transporterModel = transporterModel;\n      }\n      this.renderCreateContact = true;\n    }\n    *unlinkTransporterTask() {\n      const msg = this.intl.t(this.unlinkMessage);\n      if (window.confirm(msg) && this.transporterModel) {\n        const dirty = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model: this.transporterModel\n        });\n        dirty.setData('transporterExtension', '');\n        yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterNameContactsTransporters,\n          model: dirty\n        });\n        this.transporterModel = null;\n      }\n    }\n    loadTransporter(model) {\n      this.transporterModel = model;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"renderCreateContact\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"unlinkTransporterTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"unlinkTransporterTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadTransporter\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTransporter\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/seven-eleven/settings-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HETrTJEL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"transporterModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[23,0,[\\\"transporterModel\\\",\\\"_data\\\",\\\"name\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"extensions/apps/tw/seven-eleven/create-contact\\\",[],[[\\\"@onLoadTransporterContact\\\",\\\"@label\\\",\\\"@model\\\"],[[23,0,[\\\"loadTransporter\\\"]],\\\"update seven-eleven contact\\\",[23,0,[\\\"transporterModel\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[14,1,[[23,0,[\\\"transporterModel\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"extensions/apps/tw/seven-eleven/create-contact\\\",[],[[\\\"@onLoadTransporterContact\\\",\\\"@label\\\",\\\"@model\\\"],[[23,0,[\\\"loadTransporter\\\"]],\\\"create seven-eleven contact\\\",[23,0,[\\\"transporterModel\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/seven-eleven/settings-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/create-contact/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"client/constants\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, _constants, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _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 ExtensionsAppsTwTCatCreateContactComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('contacts'), _dec4 = Ember.inject.service('transporter'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _class = class ExtensionsAppsTwTCatCreateContactComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"contactService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"contactsList\", _descriptor5, this);\n      _initializerDefineProperty(this, \"model\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isLinkContact\", _descriptor7, this);\n      _initializerDefineProperty(this, \"transporter\", _descriptor8, this);\n      _initializerDefineProperty(this, \"refreshed\", _descriptor9, this);\n      _defineProperty(this, \"adapterNameContacts\", 'contacts');\n      _defineProperty(this, \"adapterNameContactsTransporters\", 'contacts');\n      _defineProperty(this, \"defaultThermosphere\", 'unrefrigerated');\n      _defineProperty(this, \"productTypeDefault\", 'general food');\n      this.setupLists.perform();\n    }\n    get linkIcon() {\n      return this.isLinkContact ? 'fas fa-link' : null;\n    }\n    get thermosphereSelected() {\n      const transporterAccounts = R.pathOr([], ['model', '_data', 'transporterAccounts'])(this);\n      return R.pipe(R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-t-cat-lists-thermosphere']), R.filter(R.pipe(R.pathOr('', ['_data', 'value']), value => R.includes(value, transporterAccounts))))(this);\n    }\n    get disableSenderInputData() {\n      // const refreshed = this.refreshed\n      // const model = this?.args?.model || this.model\n      // const hasDefaultPickupLocationPersonId = this?.args?.model?._data?.defaultPickupLocationPersonId || this.model?._data?.defaultPickupLocationPersonId\n      // const hasNonSenderDetails = !model?._data?.senderName && !model?._data?.senderTelephone && !model?._data?.senderAddress\n      // if (hasDefaultPickupLocationPersonId || hasNonSenderDetails || refreshed) {\n      //   return true\n      // }\n      return false;\n    }\n    get allowCreate() {\n      const allowCreate = this.args.allowCreate;\n      const isNilOrEmpty = RA.isNilOrEmpty(allowCreate);\n      if (isNilOrEmpty) {\n        return true;\n      }\n      return allowCreate;\n    }\n    afterLoadLists() {\n      this.setupModel();\n    }\n    setupModel({\n      isNew = false\n    } = {}) {\n      const existingModel = R.pathOr(null, ['args', 'model'])(this);\n      if (existingModel && !isNew) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model: existingModel\n        });\n      } else {\n        const transporterAccounts = this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere'];\n        const transporterDeliveryTime = this.crud.lists['extensions-apps-tw-t-cat-lists-delivery-time'];\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterNameContacts,\n          data: {\n            defaultTransporterAccount: this.defaultThermosphere,\n            transporterAccounts: transporterAccounts,\n            packageSizeDefault: '60cm',\n            productTypeDefault: this.productTypeDefault,\n            transporterDeliveryTime: transporterDeliveryTime,\n            defaultTransporterWaybillPrintType: 'thermal',\n            defaultDeliveryTime: 'anytime'\n          }\n        });\n      }\n    }\n    *saveTask(onCloseDialogAction) {\n      let transporterModel;\n      this.model.setData('relationships', [_constants.default.contactsRelationship.supplier]);\n      this.model.setData('isTransporter', _constants.default.isTransporter.on);\n      this.model.setData('transporterExtension', 't-cat');\n      this.model.setData('isAllowedLinkMember', false);\n      const isDirty = this.model.isDirty && this.model?._data?._key;\n      if (this.isLinkContact) {\n        const dirty = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model: this.model\n        });\n        transporterModel = yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterNameContactsTransporters,\n          model: dirty\n        });\n      } else if (isDirty) {\n        transporterModel = yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterNameContactsTransporters,\n          model: this.model\n        });\n      } else if (this.allowCreate) {\n        transporterModel = yield this.crud.createRecordTask.perform({\n          adapterName: 'contacts',\n          model: this.model\n        });\n      } else {\n        const data = this.model._data;\n        this.args.model.set('_data', data);\n      }\n      if (this?.args?.onLoadTransporterContact) {\n        this.args.onLoadTransporterContact(transporterModel);\n        this.model = transporterModel;\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *searchContactsTask(args = {\n      relationship: 'supplier'\n    }) {\n      this.contactsList = yield this.contactService.searchInputTask.perform(args);\n    }\n    *setupLists() {\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time']);\n      if (this.args.fetchTransporter !== false) {\n        yield this.searchContactsTask.perform();\n      }\n    }\n    loadTransporter(transporter) {\n      this.isLinkContact = true;\n      this.transporter = transporter;\n      R.pipe(R.propOr({}, '_data'), R.forEachObjIndexed((value, key) => {\n        this.model.setData(key, value);\n      }))(transporter);\n      this.model.setData('_key', transporter.getData('_key'));\n      this.model.setData('_rev', transporter.getData('_rev'));\n      this.model.setData('code', transporter.getData('code'));\n      this.model.setData('transporterAccounts', this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere']);\n      const defaultTransporterAccount = transporter?._data?.defaultTransporterAccount || this.transporterService.defaultTransporterAccountNumber;\n      this.model.setData('defaultTransporterAccount', defaultTransporterAccount);\n      this.refreshModel(this.model);\n    }\n    unloadTransporter() {\n      this.isLinkContact = false;\n      this.transporter = '';\n      this.model.setData('_key', '');\n      this.model.setData('_rev', '');\n      this.model.setData('code', '');\n      this.model.setData('transporterAccounts', []);\n      this.model.setData('defaultTransporterAccount', '');\n      this.setupModel({\n        isNew: true\n      });\n      this.refreshModel();\n    }\n    selectThermosphere(model) {\n      const transporterAccounts = R.pathOr([{}], ['model', '_data', 'transporterAccounts'])(this);\n      transporterAccounts.addObject(model);\n      const thermosphereDefault = R.pathOr({}, ['model', '_data', 'thermosphereDefault'])(this);\n      const isThermosphereDefaultValid = R.includes(thermosphereDefault, transporterAccounts);\n      if (!isThermosphereDefaultValid) {\n        const thermosphereOnlyChoice = R.pathOr(this.defaultThermosphere, [0])(transporterAccounts);\n        this.model.setData('thermosphereDefault', thermosphereOnlyChoice);\n      }\n      this.refreshModel();\n    }\n    refreshModel(model) {\n      const isDirty = R.pathEq(['model', 'isDirty'], true)(this);\n      if (isDirty) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model\n        });\n        this.model.set('_data', this.model._data);\n      } else {\n        this.model = model || R.propOr({}, 'model')(this);\n      }\n      this.refreshed = !this.refreshed;\n    }\n    setDefaultPickupLocationPersonId(person = {}) {\n      const personId = person?.personId || '';\n      const name = person?.name || '';\n      const telephone = person?.telephone || '';\n      const address = person?.address || '';\n      const defaultDeliveryTime = person?.transporterDeliveryTime || '';\n      const defaultTransporterAccount = person?.transporterPackageTemperature || '';\n      const packageSizeDefault = person?.transporterPackageSize || '';\n      const productTypeDefault = person?.transporterPackageType || '';\n      const defaultTransporterNotes = person?.transporterNotes || '';\n      this.model.set('_data.defaultPickupLocationPersonId', personId);\n      this.model.set('_data.senderName', name);\n      this.model.set('_data.senderTelephone', telephone);\n      this.model.set('_data.senderAddress', address);\n      this.model.set('_data.defaultDeliveryTime', defaultDeliveryTime);\n      this.model.set('_data.defaultTransporterAccount', defaultTransporterAccount);\n      this.model.set('_data.packageSizeDefault', packageSizeDefault);\n      this.model.set('_data.productTypeDefault', productTypeDefault);\n      this.model.set('_data.defaultTransporterNotes', defaultTransporterNotes);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"contactService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"contactsList\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isLinkContact\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"transporter\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"refreshed\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchContactsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchContactsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupLists\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadTransporter\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadTransporter\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectThermosphere\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"selectThermosphere\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshModel\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultPickupLocationPersonId\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultPickupLocationPersonId\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/create-contact/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PlDb0Gm6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@disallowDeselect\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitle\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[22,\\\"disabled\\\"],\\\"fas fa-cat\\\",\\\"t-cat contact\\\",[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"setupLists\\\"]]],null],[23,0,[\\\"setupLists\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"name\\\",[23,3,[]],\\\"name\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@disallowDeselect\\\"],[false,true,[23,0,[\\\"contactsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"fas fa-address-book\\\",[23,4,[]],[23,0,[\\\"searchContactsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"searchContactsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"query\\\"],[\\\"supplier\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]]],null],[23,0,[\\\"loadTransporter\\\"]],[23,0,[\\\"unloadTransporter\\\"]],[23,5,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"t-cat id\\\",[23,3,[]],\\\"tCatId\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,4,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"tCatId\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"t-cat token\\\",[23,3,[]],\\\"tCatToken\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,4,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"tCatToken\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"t-cat print type\\\",[23,3,[]],\\\"defaultTransporterWaybillPrintType\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\"],[false,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-waybill-print-type\\\"]],[23,0,[\\\"model\\\"]],false,\\\"_data.label\\\",\\\"_data.value\\\",\\\"_data.defaultTransporterWaybillPrintType\\\"]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender name\\\",[23,3,[]],\\\"senderName\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"disableSenderInputData\\\"]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"senderName\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender telephone\\\",[23,3,[]],\\\"senderTelephone\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"disableSenderInputData\\\"]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"senderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"tcat_sender_address\\\",[23,3,[]],\\\"senderAddress\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"disableSenderInputData\\\"]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"senderAddress\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@documentationResource\\\",\\\"@context\\\"],[\\\"delivery time\\\",[23,3,[]],\\\"extensions_tw_tCat\\\",\\\"defaultDeliveryTime\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"disableSenderInputData\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-delivery-time\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"defaultDeliveryTime\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"transporter accounts\\\",[23,3,[]],\\\"defaultTransporterAccount\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"disableSenderInputData\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"defaultTransporterAccount\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"package size\\\",[23,3,[]],\\\"packageSizeDefault\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,true,[23,0,[\\\"disableSenderInputData\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-package-size\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"packageSizeDefault\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"package type\\\",[23,3,[]],\\\"productTypeDefault\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"disableSenderInputData\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-product-type\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"productTypeDefault\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"transporter notes\\\",[23,3,[]],\\\"defaultTransporterNotes\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@disabled\\\",\\\"@rows\\\",\\\"@maxlength\\\",\\\"@value\\\"],[[23,0,[\\\"disableSenderInputData\\\"]],2,97,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"defaultTransporterNotes\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,6,[]],[23,0,[\\\"linkIcon\\\"]],[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/t-cat/create-contact/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/credentials/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let ExtensionsAppsTwTCatCredentialsComponent = _exports.default = (_dec = Ember.computed('args.model._data.tCatHasCustomProductName'), _class = class ExtensionsAppsTwTCatCredentialsComponent extends _component.default {\n    get isCustomProductNameReadOnly() {\n      const isReadonly = R.pathEq(['args', 'isReadonly'], true)(this);\n      if (isReadonly) {\n        return true;\n      }\n      const tCatHasCustomProductName = R.pathEq(['args', 'model', '_data', 'tCatHasCustomProductName'], true)(this);\n      if (!tCatHasCustomProductName) {\n        return true;\n      }\n      return false;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"isCustomProductNameReadOnly\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"isCustomProductNameReadOnly\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/credentials/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MzUC0ea3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"t-cat id\\\",[23,2,[]],\\\"transporterCredentials.id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\",\\\"@minlength\\\",\\\"@maxlength\\\"],[[23,3,[]],true,[23,4,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"id\\\"]],10,12]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"t-cat token\\\",[23,2,[]],\\\"transporterCredentials.secret\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@isRequired\\\",\\\"@minlength\\\",\\\"@maxlength\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"transporterCredentials\\\",\\\"secret\\\"]],true,1,50]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/t-cat/credentials/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/sender-details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ExtensionsAppsTwTCatSenderDetailsComponent = _exports.default = (_dec = Ember.inject.service('settings'), _class = class ExtensionsAppsTwTCatSenderDetailsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/sender-details/extra/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ExtensionsAppsTwTCatSenderDetailsExtraComponent = _exports.default = (_dec = Ember.inject.service, _class = class ExtensionsAppsTwTCatSenderDetailsExtraComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/sender-details/extra/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NMnn6fQq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"delivery time\\\",[23,1,[]],\\\"defaultDeliveryTime\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,2,[]],[23,2,[]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-delivery-time\\\"]],[23,3,[\\\"_data\\\",\\\"defaultDeliveryTime\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"transporter accounts\\\",[23,1,[]],\\\"defaultTransporterAccount\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,2,[]],[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",[23,3,[\\\"_data\\\",\\\"defaultTransporterAccount\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"package size\\\",[23,1,[]],\\\"packageSizeDefault\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,2,[]],[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-package-size\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"packageSizeDefault\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"package type\\\",[23,1,[]],\\\"productTypeDefault\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[22,\\\"isReadonly\\\"],[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-product-type\\\"]],[23,3,[\\\"_data\\\",\\\"productTypeDefault\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/t-cat/sender-details/extra/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/sender-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2SQ5Aqug\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender name\\\",[23,1,[]],\\\"senderName\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,2,[]],[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"company\\\"]],[23,3,[\\\"_data\\\",\\\"senderName\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender telephone\\\",[23,1,[]],\\\"senderTelephone\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,2,[]],[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"companyTel\\\"]],[23,3,[\\\"_data\\\",\\\"senderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender address\\\",[23,1,[]],\\\"senderAddress\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,2,[]],[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"address\\\"]],[23,3,[\\\"_data\\\",\\\"senderAddress\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/t-cat/sender-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/sender-list-btn/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, R, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _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 ExtensionsAppsTwTCatSenderListBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('dispatch'), _dec4 = Ember.inject.service('constants'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _class = class ExtensionsAppsTwTCatSenderListBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"selectedSenderName\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedPersonId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor7, this);\n      _initializerDefineProperty(this, \"useDefaults\", _descriptor8, this);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time']);\n      this.transporterModel = this.args?.transporterModel;\n    }\n    get isLoading() {\n      const model = this.args?.model || false;\n      const transporterModel = this.args?.transporterModel || this.transporterModel || false;\n      if (!model || !transporterModel) {\n        return true;\n      }\n      return false;\n    }\n    get listSelectorValueKey() {\n      const listSelectorValueKey = this.args.listSelectorValueKey;\n      if (listSelectorValueKey) {\n        return listSelectorValueKey;\n      }\n      return '_data.defaultPickupLocationPersonId';\n    }\n\n    /**\n     * Return a list of pickup locations\n     * @return {Array<{\n     * transporterSenderName: string,\n     * transporterSenderTelephone: string,\n     * transporterSenderAddress: string,\n     * transporterDeliveryTime: string,\n     * transporterPackageTemperature: string,\n     * transporterPackageSize: string,\n     * transporterPackageType: string,\n     * transporterNotes: string,\n     * personId: string,\n     * name: string,\n     * telephone: string,\n     * address: string,\n     * label: string,\n     * model: Object\n     * }>}\n     */\n    get pickupLocationsList() {\n      const persons = this.transporterModel?._data?.persons || [];\n      const pickupLocations = R.filter(R.pathEq(['_data', 'type'], 'pickupLocation'))(persons);\n      const findDetailByType = (details, type) => {\n        const detailType = details.find(detail => detail?._data?.subType === type) || {};\n        return detailType?._data?.value;\n      };\n      return R.map(pickupLocation => {\n        const label = pickupLocation?._data?.label || '';\n        const name = pickupLocation?._data?.name || '';\n        const personId = pickupLocation?._data?.personId || '';\n        const details = pickupLocation?._data?.details || [];\n        const telephone = findDetailByType(details, 'telephone');\n        const address = findDetailByType(details, 'address');\n        const transporterSenderName = name;\n        const transporterSenderTelephone = findDetailByType(details, 'telephone');\n        const transporterSenderAddress = findDetailByType(details, 'address');\n        const transporterDeliveryTime = findDetailByType(details, 'deliveryTime');\n        const transporterPackageTemperature = findDetailByType(details, 'transporterAccount');\n        const transporterPackageSize = findDetailByType(details, 'packageSize');\n        const transporterPackageType = findDetailByType(details, 'packageType');\n        const transporterNotes = findDetailByType(details, 'note');\n        return {\n          transporterSenderName,\n          transporterSenderTelephone,\n          transporterSenderAddress,\n          transporterDeliveryTime,\n          transporterPackageTemperature,\n          transporterPackageSize,\n          transporterPackageType,\n          transporterNotes,\n          personId,\n          name,\n          telephone,\n          address,\n          label,\n          model: pickupLocation\n        };\n      })(pickupLocations);\n    }\n    get defaultPickupLocation() {\n      const selectedPersonId = this.selectedPersonId;\n      const useDefaults = this.args?.model?._data?.transporterUseDefaultPickupLocation;\n      if (useDefaults) {\n        const defaultPersonId = this.transporterModel?._data?.defaultPickupLocationPersonId;\n        if (defaultPersonId) {\n          return this.pickupLocationsList.find(pickupLocation => pickupLocation.personId === defaultPersonId);\n        }\n        return this?.transporterModel?.transporterData;\n      }\n      const pathArray = R.split('.')(this.listSelectorValueKey);\n      let defaultPersonId = R.path(pathArray)(this.args?.model) || selectedPersonId || this.selectedSenderName;\n      if (!defaultPersonId) {\n        defaultPersonId = this?.transporterModel?._data?.defaultPickupLocationPersonId;\n      }\n      if (defaultPersonId) {\n        return this.pickupLocationsList.find(pickupLocation => pickupLocation.personId === defaultPersonId);\n      }\n      return this?.transporterModel?.transporterData;\n    }\n    *fetchTransporterTask() {\n      const transporterModel = this.args?.transporterModel;\n      this.transporterModel = transporterModel;\n      if (!transporterModel) {\n        const isTransporter = this.args.model._data.transporterExtension === this.constantsService.transporterExtensions.tCat;\n        const transporterKey = this.args.model._data.transporterKey;\n        if (isTransporter && !transporterKey) {\n          this.transporterModel = this.args.model;\n        } else {\n          this.transporterModel = yield this.dispatchService.tCatGetModel.perform({\n            transporterKey\n          });\n        }\n      }\n      this.setTransporterSenderDefaults();\n    }\n    afterLoadLists() {\n      if (this.args.fetchTransporter !== false) {\n        this.fetchTransporterTask.perform();\n      }\n    }\n    setTransporterSenderDefaults(model = {}) {\n      let personId = this.transporterModel?._data?.defaultPickupLocationPersonId || '';\n      const defaultPersonId = this.args.defaultPersonId || '';\n      if (!this.selectedSenderName && defaultPersonId) {\n        personId = defaultPersonId;\n      }\n      let sender = this.pickupLocationsList.find(pickupLocation => pickupLocation.personId === personId);\n      if (this.selectedSenderName !== sender?.name && defaultPersonId) {\n        sender = this.pickupLocationsList.find(pickupLocation => pickupLocation.personId === defaultPersonId);\n      }\n      if (!sender?.personId) {\n        this.selectedSenderName = '';\n        return;\n      }\n      this.onSelectAction(sender);\n    }\n    setupPickupLocation(model) {\n      if (!model) {\n        return;\n      }\n      this.setTransporterSenderDefaults(model);\n      this.autoSelectOnFirstPerson(model);\n    }\n    onSelectAction(sender) {\n      this.selectedPersonId = sender?.personId;\n      this.selectedSenderName = sender?.name;\n      if (this.args?.isReadonly) {\n        return;\n      }\n      const onSelect = this.args.onSelect;\n      if (onSelect) {\n        this.args.onSelect(sender);\n      }\n    }\n    autoSelectOnFirstPerson(model = {}, onCloseDialogAction = fn => fn) {\n      if (!model) {\n        return;\n      }\n      if (this.pickupLocationsList.length !== 1) {\n        return;\n      }\n      const defaultPickupLocationPersonId = this.pickupLocationsList[0].personId;\n      model.set('_data.defaultPickupLocationPersonId', defaultPickupLocationPersonId);\n      model.set('_data.transporterDefaultPickupLocationPersonId', defaultPickupLocationPersonId);\n      this.transporterModel = model;\n      this.setTransporterSenderDefaults();\n      this.args.onRefreshModel?.(model);\n      onCloseDialogAction();\n    }\n    refreshTransporterModel(model) {\n      this.transporterModel = model;\n    }\n    setDefaults(toggle) {\n      this.useDefaults = toggle;\n      if (toggle) {\n        this.selectedPersonId = this.transporterModel?._data?.defaultPickupLocationPersonId;\n      } else {\n        this.selectedSenderName = '';\n        this.setTransporterSenderDefaults(this.args.model);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"selectedSenderName\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedPersonId\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"useDefaults\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchTransporterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransporterTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterLoadLists\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"afterLoadLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTransporterSenderDefaults\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setTransporterSenderDefaults\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupPickupLocation\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPickupLocation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectAction\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"autoSelectOnFirstPerson\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"autoSelectOnFirstPerson\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshTransporterModel\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshTransporterModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaults\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaults\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/sender-list-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9RHyZHY6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@showUseDefaultsToggle\\\",\\\"@showPreview\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"isLoading\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,2,[]],\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"transporterUseDefaultPickupLocation\\\"]],[23,0,[\\\"setDefaults\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,2,[]],\\\"pickup locations\\\",\\\"pickupLocationSettings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupPickupLocation\\\"]],[23,4,[]]],null]]]],[[\\\"@icon\\\",\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@addItemComponent\\\",\\\"@model\\\",\\\"@onSelect\\\"],[\\\"fas fa-dolly\\\",true,[28,\\\"or\\\",[[23,3,[]],[23,4,[\\\"_data\\\",\\\"transporterUseDefaultPickupLocation\\\"]]],null],[23,0,[\\\"transporterModel\\\",\\\"pickupLocationList\\\"]],\\\"_data.personId\\\",\\\"label\\\",[23,4,[\\\"_data\\\",\\\"transporterDefaultPickupLocationPersonId\\\"]],\\\"contacts/persons/pickup-location/editor\\\",[23,0,[\\\"transporterModel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectAction\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"contacts/persons/pickup-location\\\",[],[[\\\"@model\\\"],[[23,1,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender name\\\",[23,2,[]],\\\"transporterSenderName\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterSenderName\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"sender telephone\\\",[23,2,[]],\\\"transporterSenderTelephone\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterSenderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"tcat_sender_address\\\",[23,2,[]],\\\"transporterSenderAddress\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterSenderAddress\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"transporter account\\\",[23,2,[]],\\\"transporterPackageTemperature\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,true,\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],true,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterPackageTemperature\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"package size\\\",[23,2,[]],\\\"transporterPackageSize\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-package-size\\\"]],[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterPackageSize\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"package type\\\",[23,2,[]],\\\"transporterPackageType\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-product-type\\\"]],[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterPackageType\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"transporter notes\\\",[23,2,[]],\\\"transporterNotes\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@maxlength\\\",\\\"@value\\\"],[true,2,97,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterNotes\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/t-cat/sender-list-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/settings-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 ExtensionsAppsTwTCatSettingsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class ExtensionsAppsTwTCatSettingsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor3, this);\n      _initializerDefineProperty(this, \"renderCreateContact\", _descriptor4, this);\n      _defineProperty(this, \"unlinkMessage\", 'are you sure you want to remove');\n      _defineProperty(this, \"adapterNameContactsTransporters\", 'contacts');\n      _defineProperty(this, \"transporterExtension\", 't-cat');\n      this.crud.addLists(this, ['contacts/transporters']);\n    }\n    afterLoadLists() {\n      const transporters = R.pathOr([], ['crud', 'lists', 'contacts-transporters'])(this);\n      const transporterModel = transporters.findBy('_data.transporterExtension', this.transporterExtension);\n      if (transporterModel) {\n        this.transporterModel = transporterModel;\n      }\n      this.renderCreateContact = true;\n    }\n    *unlinkTransporterTask() {\n      const msg = this.intl.t(this.unlinkMessage);\n      if (window.confirm(msg) && this.transporterModel) {\n        const dirty = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model: this.transporterModel\n        });\n        dirty.setData('transporterExtension', '');\n        yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterNameContactsTransporters,\n          model: dirty\n        });\n        this.transporterModel = null;\n      }\n    }\n    loadTransporter(model) {\n      this.transporterModel = model;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"renderCreateContact\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"unlinkTransporterTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"unlinkTransporterTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadTransporter\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTransporter\"), _class.prototype), _class);\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/settings-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"v+mgcsZ2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"transporterModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@errors\\\"],[[23,0,[\\\"transporterModel\\\",\\\"_data\\\",\\\"name\\\"]],false,[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"extensions/apps/tw/t-cat/create-contact\\\",[],[[\\\"@onLoadTransporterContact\\\",\\\"@label\\\",\\\"@model\\\"],[[23,0,[\\\"loadTransporter\\\"]],\\\"update t-cat contact\\\",[23,0,[\\\"transporterModel\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"unlink\\\",\\\"fas fa-unlink\\\",[28,\\\"perform\\\",[[23,0,[\\\"unlinkTransporterTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"extensions/apps/tw/t-cat/create-contact\\\",[],[[\\\"@onLoadTransporterContact\\\",\\\"@label\\\",\\\"@model\\\"],[[23,0,[\\\"loadTransporter\\\"]],\\\"create t-cat contact\\\",[23,0,[\\\"transporterModel\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/t-cat/settings-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/settings/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatSettingsComponent extends _component.default {}\n  _exports.default = ExtensionsAppsTwTCatSettingsComponent;\n});","define(\"client/pods/components/extensions/apps/tw/t-cat/settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HD9MeQAE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"use anonymized product name\\\",\\\"transporterSettings.useAnonymizedProductName\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,2,[\\\"_data\\\",\\\"transporterSettings\\\",\\\"useAnonymizedProductName\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"anonymized product name\\\",\\\"transporterSettings.anonymizedProductName\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@maxlength\\\",\\\"@size\\\"],[[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"transporterSettings\\\",\\\"useAnonymizedProductName\\\"]],false,true],null],[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"transporterSettings\\\",\\\"useAnonymizedProductName\\\"]],false,true],null],[28,\\\"tt\\\",[\\\"products\\\"],null],[23,2,[\\\"_data\\\",\\\"transporterSettings\\\",\\\"anonymizedProductName\\\"]],20,20]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/extensions/apps/tw/t-cat/settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/facebook/facebook-login/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"client/config/environment\"], function (_exports, _emberConcurrency, R, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    /* Bind Functions */\n    didInsertElement() {\n      this._super(...arguments);\n      // first check if already linked\n      // if not then fetch fb login state\n      this.setupFb.perform();\n    },\n    hasPagesList: Ember.computed('model._data.facebookPages', function () {\n      const facebookPages = this.get('model._data.facebookPages') || [];\n      return facebookPages.length >= 1;\n    }),\n    loggedIn: false,\n    isLoggedIn: Ember.computed('loggedIn', function () {\n      return this.loggedIn;\n      // const model = this.get('model')\n      // return model.getData('facebookAccessToken')\n    }),\n    setupFb: (0, _emberConcurrency.task)(function* () {\n      // yield go and fetch\n      const locale = this.intl.get('locale')[0] || 'en_US';\n      const fbSdkUrl = `https://connect.facebook.net/${locale}/sdk.js`;\n      window.fbAsyncInit = () => {\n        FB.init({\n          appId: _environment.default.facebookSettings.appId,\n          cookie: true,\n          // enable cookies to allow the server to access the session\n          xfbml: true,\n          // parse social plugins on this page\n          version: _environment.default.facebookSettings.sdkVersion // The Graph API version to use for the call\n        });\n      };\n      // Load the SDK asynchronously\n      yield ((d, s, id) => {\n        const fjs = d.getElementsByTagName(s)[0];\n        if (d.getElementById(id)) {\n          return;\n        }\n        const js = d.createElement(s);\n        js.id = id;\n        js.src = fbSdkUrl;\n        fjs.parentNode.insertBefore(js, fjs);\n      })(document, 'script', 'facebook-jssdk');\n    }).drop(),\n    loginTask: (0, _emberConcurrency.task)(function* () {\n      yield FB.login(resp => {\n        this.getFbPageListTask.perform(resp);\n        this.set('loggedIn', true);\n      }, {\n        scope: 'pages_messaging,manage_pages'\n      });\n    }).drop(),\n    getFbPageListTask: (0, _emberConcurrency.task)(function* ({\n      authResponse\n    } = {}) {\n      const accessToken = R.prop('accessToken', authResponse) || '';\n      if (accessToken) {\n        const {\n          data: pagesList\n        } = yield this.server.callOuter('GET', 'https://graph.facebook.com/v5.0/me/accounts', {\n          access_token: accessToken\n        });\n        const settings = this.model;\n        settings.createFacebookPages(pagesList);\n        settings.setData('facebookAccessToken', accessToken);\n        let settingsData = settings.get('_data');\n        settingsData = R.omit(['facebookPages'])(settingsData);\n        settingsData.facebookPages = R.map(R.pick(['id', 'name']))(pagesList);\n        yield this.server.call('PATCH', 'api/protected/settings/facebook/profile', settingsData);\n      }\n    }).drop()\n  });\n});","define(\"client/pods/components/facebook/facebook-login/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LIgQcksE\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"icon\\\",\\\"hasExchange\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[28,\\\"if\\\",[[24,[\\\"hasPagesList\\\"]],\\\"re-login\\\",\\\"login\\\"],null],\\\"facebook-login-btn\\\",\\\"fab fa-facebook-square\\\",[24,[\\\"hasExchange\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"loginTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"loginTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/facebook/facebook-login/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/facebook/facebook-pages-id/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    adapterName: 'facebook/pages',\n    init() {\n      this._super(...arguments);\n      const isEditing = this.isEditing;\n      if (isEditing) {\n        const dirty = this.setupDirty();\n        this.set('model', dirty);\n      } else {\n        const model = this.setupNewRecord();\n        this.set('model', model);\n      }\n    },\n    afterCreateRecordTask(model) {\n      this.onAddItem(model);\n      this.onCloseDialogAction();\n    },\n    afterReplaceRecordTask(model) {\n      this.onUpdateItem(model);\n      this.onCloseDialogAction?.();\n    },\n    afterRemoveRecordTask() {\n      this.onRemoveItem(this.model);\n    },\n    actions: {\n      cancel(model) {\n        if (this.isEditing) {\n          this.cancelEditing({\n            dirty: model\n          });\n          this.set('showEditor', false);\n        } else {\n          this.onCloseDialogAction();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/facebook/facebook-pages-id/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hodBARRf\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"facebook page id\\\",[24,[\\\"errors\\\"]],\\\"id\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"value\\\"],[true,[24,[\\\"model\\\",\\\"_data\\\",\\\"value\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"facebook page name\\\",[24,[\\\"errors\\\"]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"value\\\"],[true,[24,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],[28,\\\"perform\\\",[[23,0,[\\\"removeRecordTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/facebook/facebook-pages-id/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/facebook/pixel-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 FacebookPixelEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class FacebookPixelEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"model\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args?.adapterName || 'facebook/pixel-editor');\n      const model = this.args?.model || {};\n      const tab = this.args?.tab || {};\n      this.tab = tab;\n      const isEditing = this.args?.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    afterCreateRecordTask(model) {\n      this.args?.onAddItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args?.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask(model) {\n      this.args?.onRemoveItem?.(model);\n    }\n    cancel() {\n      this.args?.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/facebook/pixel-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vvWmkx4Q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@disabled\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"facebookPixels\\\",\\\"description\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"value\\\",\\\"facebookPixels\\\",\\\"pixel id\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"token\\\",\\\"facebookPixels\\\",\\\"access token\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"token\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"testId\\\",\\\"facebookPixels\\\",\\\"test code field is only for test purposes. it must be empty in production\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"testId\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n   \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,1,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterRemoveRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterCreateRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/facebook/pixel-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/faqs/component\", [\"exports\", \"@glimmer/component\", \"client/utils/nventor\", \"client/pods/documents/proxy/model\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _nventor, _model, _emberConcurrencyDecorators, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _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  /**\n   * DO NOT USE ANY PATTER FROM HERE\n   * @deprecated\n   */\n  let FaqComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _class = class FaqComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"showAllDetails\", _descriptor2, this);\n      _initializerDefineProperty(this, \"model\", _descriptor3, this);\n      _initializerDefineProperty(this, \"adapterName\", _descriptor4, this);\n      _initializerDefineProperty(this, \"faqsProxy\", _descriptor5, this);\n      _initializerDefineProperty(this, \"faqsProxyTemp\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sorted\", _descriptor7, this);\n      this.detailsRowComponent = this.args.detailsRowComponent || 'faqs/table-view/faqs-row';\n      this.createFaqModels(this.args.model._data.faqs);\n      this.indexFaqs(this.faqsProxy);\n    }\n    createFaqModels(faqs = []) {\n      this.faqsProxy = R.map(faq => _nventor.default.createModel(_model.default, {}, {\n        model: this.model,\n        faq,\n        isSelected: false,\n        showDetails: false\n      }))(faqs);\n    }\n    indexFaqs(faqs) {\n      this.faqsProxy = R.pipe(R.mapObjIndexed((model, index) => {\n        model.faq.setData('index', parseInt(index));\n        model.setData('index', parseInt(index));\n        model.set('index', parseInt(index));\n        return model;\n      }), R.values)(faqs);\n    }\n    outerDrop(fromModelIndex, droppedAtIndex, results) {\n      this.faqsProxy = results;\n      this.indexFaqs(results);\n      const faqs = R.pipe(R.propOr([], 'faqsProxy'), R.pluck('faq'))(this);\n      this.args.model.setData('faqs', faqs);\n      this.updateFaqsIndex.perform();\n      this.toggleTableView();\n    }\n    toggleTableView() {\n      this.sorted = !this.sorted;\n      this.faqsProxy = R.propOr({}, 'faqsProxy')(this);\n    }\n    *updateFaqsIndex() {\n      yield this.crud.updateRecordTask.perform({\n        adapterName: this.args.adapterName,\n        component: this,\n        model: this.args.model,\n        updateProps: ['faqs']\n      });\n    }\n    addFaq(onCloseDialogAction = null, productsSaved) {\n      const faqs = R.pathOr([], ['_data', 'faqs'])(productsSaved);\n      this.createFaqModels(faqs);\n      this.indexFaqs(this.faqsProxy);\n      this.toggleTableView();\n      this.model = this.args.model;\n      this.faqsProxyTemp = R.map(faq => faq)(this.faqsProxy);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    restoreFaqs() {\n      const faqsProxyLength = R.pathOr('', ['faqsProxy', 'length'])(this);\n      const faqsProxyTempLength = R.pathOr('', ['faqsProxyTemp', 'length'])(this);\n      const faqsProxyData = R.pipe(R.propOr([{}], 'faqsProxy'), R.map(R.pathOr([], ['faq', '_data'])))(this);\n      const faqsProxyTempData = R.pipe(R.propOr([{}], 'faqsProxyTemp'), R.map(R.pathOr([], ['faq', '_data'])))(this);\n      if (faqsProxyLength === 0 && faqsProxyTempLength === 0) {\n        this.createFaqModels(this.args.model._data.faqs);\n        this.indexFaqs(this.faqsProxy);\n        return;\n      }\n      if (faqsProxyLength === faqsProxyTempLength || R.equals(faqsProxyData, faqsProxyTempData)) {\n        return;\n      }\n      if (faqsProxyTempLength > 0) {\n        this.faqsProxy = this.faqsProxyTemp;\n      }\n    }\n    afterUpdate(onCloseDialogAction, saved) {\n      const faqs = R.pathOr([], ['_data', 'faqs'])(saved);\n      const faqsData = R.pluck('_data')(faqs);\n      const proxyFaqs = R.pipe(R.propOr([], 'faqsProxy'), R.map(R.pipe(R.pathOr([], ['faq', '_data']), R.omit(['index']))))(this);\n      const shouldRemoveFaqs = faqsData.length !== proxyFaqs.length;\n\n      // Remove faqs\n      if (shouldRemoveFaqs) {\n        R.pipe(R.without(faqsData), R.map(faq => {\n          return R.findIndex(R.pathEq(['faq', '_data', 'question'], faq.question))(this.faqsProxy);\n        }), R.forEach(removeFaqIndex => {\n          this.faqsProxy.removeAt(removeFaqIndex);\n        }))(proxyFaqs);\n      }\n      R.pipe(R.propOr([], 'faqsProxy'), R.forEachObjIndexed((proxy, index) => {\n        faqs[index].setData('index', parseInt(index));\n        proxy.set('faq', faqs[index]);\n      }))(this);\n      this.faqsProxyTemp = R.map(faq => faq)(this.faqsProxy);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showAllDetails\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.model;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"adapterName\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.adapterName;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"faqsProxy\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"faqsProxyTemp\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"sorted\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"createFaqModels\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"createFaqModels\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"indexFaqs\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"indexFaqs\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"outerDrop\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"outerDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleTableView\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleTableView\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateFaqsIndex\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateFaqsIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addFaq\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"addFaq\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"restoreFaqs\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"restoreFaqs\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterUpdate\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"afterUpdate\"), _class.prototype), _class);\n});","define(\"client/pods/components/faqs/faqs-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 FaqsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class FaqsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"currentIndex\", _descriptor3, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor4, this);\n      _initializerDefineProperty(this, \"faq\", _descriptor5, this);\n      _initializerDefineProperty(this, \"model\", _descriptor6, this);\n      _initializerDefineProperty(this, \"showAllDetails\", _descriptor7, this);\n      _defineProperty(this, \"adapterName\", this.args.adapterName);\n      _defineProperty(this, \"removeMessage\", 'are you sure you want to delete');\n      this.setupEditing();\n    }\n    setupEditing() {\n      const originalModel = this.model;\n      this.model = this.crud.setupDirty({\n        adapterName: this.args.adapterName,\n        model: this.model\n      });\n      if (this.args.isNew) {\n        const faqModel = this.crud.setupNewRecord({\n          adapterName: 'faqs'\n        });\n        this.faq = faqModel;\n        this.model._data.faqs.pushObject(faqModel);\n      } else {\n        const faqModel = this.args.faq;\n        const currentIndex = R.indexOf(faqModel)(originalModel._data.faqs);\n        const dirtyFaq = this.crud.setupDirty({\n          adapterName: 'faqs',\n          model: faqModel\n        });\n        this.model._data.faqs.replace(currentIndex, 1, [dirtyFaq]);\n        this.faq = dirtyFaq;\n      }\n    }\n    *removeFaqTask({\n      adapterName,\n      onAfter\n    }) {\n      const msg = this.intl.t(this.removeMessage);\n      if (window.confirm(msg)) {\n        const dirty = this.model;\n        const faq = dirty._data.faqs[this.currentIndex];\n        dirty._data.faqs.removeObject(faq);\n        yield this.crud.updateRecordTask.perform({\n          adapterName,\n          onAfter,\n          model: dirty\n        });\n        this.args.onRemove();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentIndex\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.currentIndex;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"faq\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.model;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"showAllDetails\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"removeFaqTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"removeFaqTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/faqs/faqs-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5w55WEVX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onAfter\\\",\\\"@appendPath\\\",\\\"@adapterName\\\",\\\"@onCloseDialogAction\\\",\\\"@onMainAction\\\",\\\"@isEditing\\\",\\\"@tab\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"faqs\\\",\\\"faqEditor\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"documentationResource\\\",\\\"context\\\"],[\\\"question\\\",\\\"faqEditor\\\",\\\"faqs.question\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,8,[]],[23,0,[\\\"faq\\\",\\\"_data\\\",\\\"question\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"label\\\",\\\"documentationResource\\\",\\\"context\\\"],[\\\"answer\\\",\\\"faqEditor\\\",\\\"faqs.answer\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@hasSidebarEdit\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[[23,7,[]],true,true,false,[23,8,[]],[23,0,[\\\"faq\\\",\\\"_data\\\",\\\"answer\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[400]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"documentationResource\\\",\\\"context\\\"],[\\\"display_faq\\\",\\\"faqEditor\\\",\\\"faqs.display\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"toggleValue\\\"],[[23,0,[\\\"faq\\\",\\\"_data\\\",\\\"display\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[23,0,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/btn-delete\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"removeFaqTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,3,[]],[23,2,[]],[24,[\\\"model\\\"]],[23,1,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close\\\",[23,4,[]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onMainAction\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[[24,[\\\"tableViewOptions\\\",\\\"onMainActionIcon\\\"]],[24,[\\\"tableViewOptions\\\",\\\"onMainActionLabel\\\"]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"campaign\\\",\\\"isEditable\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"component\\\",\\\"model\\\",\\\"onBefore\\\",\\\"onAfter\\\",\\\"updateProps\\\"],[[23,3,[]],[23,2,[]],[23,0,[]],[24,[\\\"model\\\"]],[24,[\\\"onBeforeUpdate\\\"]],[23,1,[]],[28,\\\"array\\\",[\\\"faqs\\\"],null]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"component\\\",\\\"model\\\",\\\"onBefore\\\",\\\"onAfter\\\",\\\"updateProps\\\"],[[23,3,[]],[23,2,[]],[23,0,[]],[24,[\\\"model\\\"]],[24,[\\\"onBeforeUpdate\\\"]],[23,1,[]],[28,\\\"array\\\",[\\\"faqs\\\"],null]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/faqs/faqs-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/faqs/table-view/faqs-row/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/dispatch\", \"client/mixins/transporter\", \"ramda\"], function (_exports, _crud, _dispatch, _transporter, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _dispatch.default, _transporter.default, {\n    dragAndDrop: Ember.inject.service(),\n    tagName: '',\n    showAllDetails: true,\n    init() {\n      this._super(...arguments);\n      if (this.isFilters) {\n        const campaignFilters = this.search.setupFilters({\n          adapterName: 'channels/shop/campaigns/filters'\n        });\n        this.set('campaignFilters', campaignFilters);\n      }\n      if (this.model) {\n        const modelProxy = this.model;\n        this.set('modelProxy', modelProxy);\n        this.set('model', modelProxy.get('model'));\n      }\n    },\n    faqComputed: Ember.computed('model.synced', 'model._data.faqs.[]', 'currentIndex', function () {\n      const faqs = R.path(['model', '_data', 'faqs'])(this) || [];\n      return faqs[this.currentIndex] || '';\n    }),\n    actions: {\n      select(/* model */\n      ) {\n        if (this.onMainAction) {\n          this.onMainAction(...arguments);\n        }\n      },\n      toggleAllDetails() {\n        let showAllDetails = this.showAllDetails;\n        showAllDetails = !showAllDetails;\n        this.set('showAllDetails', showAllDetails);\n        const results = this.results;\n        results.forEach(modelProxy => {\n          modelProxy.set('showDetails', showAllDetails);\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/faqs/table-view/faqs-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZC1TNbNf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@onMainAction\\\",\\\"@tableViewOptions\\\",\\\"@currentIndex\\\",\\\"@lists\\\",\\\"@onRemove\\\",\\\"@results\\\",\\\"@isDetailRow\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"questions\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"display in shop\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"dispatch-list__table-th has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleAllDetails\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,10,[]],[23,0,[\\\"faqComputed\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\",\\\"@tagName\\\"],[[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,2,[\\\"index\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDrop\\\"]],[23,2,[\\\"index\\\"]],[23,9,[]],[23,5,[\\\"outerDrop\\\"]]],null],\\\"tr\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@onDragStart\\\",\\\"@data\\\"],[true,[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,2,[\\\"index\\\"]],[23,2,[]]],null],[23,2,[\\\"index\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",[28,\\\"if\\\",[[23,4,[]],\\\"u-link--text\\\",\\\"\\\"],null]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,0,[\\\"modelProxy\\\",\\\"model\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"faq\\\",\\\"_data\\\",\\\"question\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\"],[true,[23,2,[\\\"faq\\\",\\\"_data\\\",\\\"display\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"white-space: nowrap\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-eye\\\",[28,\\\"action\\\",[[23,0,[]],[23,4,[]],[23,0,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,0,[\\\"model\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitle\\\"],[false,[23,5,[\\\"isDisabled\\\"]],\\\"fas fa-pen\\\",\\\"frequently asked questions\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"faqs/faqs-editor\\\",[],[[\\\"@adapterName\\\",\\\"@appendPath\\\",\\\"@currentIndex\\\",\\\"@faq\\\",\\\"@isEditing\\\",\\\"@lists\\\",\\\"@model\\\",\\\"@onAfter\\\",\\\"@onRemove\\\",\\\"@onCloseDialogAction\\\",\\\"@tab\\\"],[[23,0,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],[23,0,[\\\"tableViewOptions\\\",\\\"appendPath\\\"]],[23,6,[]],[23,0,[\\\"faqComputed\\\"]],true,[23,7,[]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,5,[\\\"onAfter\\\"]],[23,1,[]]],null],[23,8,[]],[23,1,[]],[23,3,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"label\\\",\\\"toggleIsOn\\\",\\\"translate\\\"],[\\\"fas fa-list\\\",true,true,[28,\\\"count\\\",[[23,0,[\\\"modelProxy\\\",\\\"model\\\",\\\"_data\\\",\\\"details\\\"]]],null],[23,0,[\\\"modelProxy\\\",\\\"showDetails\\\"]],false]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"fas fa-check-circle\\\",\\\"\\\",[28,\\\"action\\\",[[23,0,[]],[23,4,[]],[23,0,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"modelProxy\\\",\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row--alt\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,2,[\\\"faq\\\",\\\"_data\\\",\\\"answer\\\"]],true,[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/faqs/table-view/faqs-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/faqs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IuJuL+3P\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@paginationIsFooter\\\",\\\"@onCloseDialogAction\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@isDisabled\\\",\\\"@appendPath\\\",\\\"@adapterName\\\",\\\"@lists\\\",\\\"@model\\\"],\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"restoreFaqs\\\"]],[23,0,[\\\"faqsProxy\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@onPaginationTask\\\",\\\"@paginationIsFooter\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onRemove\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[[23,0,[\\\"detailsRowComponent\\\"]],[23,2,[]],[23,3,[]],[23,2,[]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,4,[]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"addFaq\\\"]],[23,5,[]]],null],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"faqsProxy\\\"]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"isDisabled\\\",\\\"isReadonly\\\",\\\"outerDrop\\\",\\\"onAfter\\\"],[[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],[23,0,[\\\"outerDrop\\\"]],[23,0,[\\\"afterUpdate\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@onPaginationTask\\\",\\\"@paginationIsFooter\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onRemove\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[[23,0,[\\\"detailsRowComponent\\\"]],[23,2,[]],[23,3,[]],[23,2,[]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,4,[]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"addFaq\\\"]],[23,5,[]]],null],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"faqsProxy\\\"]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"isDisabled\\\",\\\"isReadonly\\\",\\\"outerDrop\\\",\\\"onAfter\\\"],[[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],[23,0,[\\\"outerDrop\\\"]],[23,0,[\\\"afterUpdate\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@modalDialogTitle\\\"],[false,[23,8,[]],\\\"fas fa-plus\\\",\\\"frequently asked questions\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"faqs/faqs-editor\\\",[],[[\\\"@adapterName\\\",\\\"@appendPath\\\",\\\"@isDisabled\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@lists\\\",\\\"@model\\\",\\\"@onAfter\\\",\\\"@onCloseDialogAction\\\",\\\"@onToggleTableView\\\",\\\"@tab\\\"],[[23,10,[]],[23,9,[]],false,false,true,false,[23,11,[]],[23,12,[]],[28,\\\"fn\\\",[[23,0,[\\\"addFaq\\\"]],[23,1,[]]],null],[23,1,[]],[23,0,[\\\"toggleTableView\\\"]],[23,6,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/faqs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files-manager/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA, R_) {\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, _dec0, _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 FilesManagerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service('uploads'), _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember.computed('uploadsCollection.[]'), _class = class FilesManagerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"server\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uploadsService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"loading\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uploadsCollection\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedResource\", _descriptor9, this);\n      _defineProperty(this, \"adapterName\", 'uploads');\n      // individual model in uploadsCollection._data.uploads\n      _defineProperty(this, \"collectionAdapterName\", 'uploads/collection');\n      // collection model that holds _data.uploads\n      _defineProperty(this, \"filtersAdapterName\", 'uploads/filters');\n      _defineProperty(this, \"finderLabel\", this.args.finderLabel || 'files_manager_tags');\n      this.crud.addLists(this, ['uploads/lists/resources', 'uploads/lists/tags']);\n      this.fetchUploadsTask.perform({\n        excludeCopies: false,\n        onlyDisplayDefault: this.args.onlyDisplayDefault\n      });\n    }\n    get transformPreviewDefaults() {\n      const transformPreview = this.args.transformPreview;\n      if (transformPreview) {\n        return transformPreview;\n      }\n      return '/-/resize/x1024/-/format/webp/-/progressive/yes/';\n    }\n    get translate() {\n      return R_.dotPathOr(true, 'args.translate')(this);\n    }\n    get label() {\n      return R_.dotPathOr('upload images', 'args.label')(this);\n    }\n    get isRunning() {\n      return this.loading && this.uploadsCollection || this.fetchUploadsTask.isRunning;\n    }\n    get isUploadsReadonly() {\n      if (this.args.isReadonly) {\n        return true;\n      }\n      if (this.allowMultipleItems) {\n        return false;\n      }\n      const allowSingleUpload = this.args?.allowSingleUpload === true;\n      const uploads = this.uploadsCollection?._data?.uploads || [];\n      if (!allowSingleUpload && uploads?.length >= 1) {\n        return true;\n      }\n      return false;\n    }\n    get allowUploads() {\n      const disAllowUploads = R.pathEq(['args', 'allowUploads'], false)(this);\n      if (disAllowUploads) {\n        return false;\n      }\n      const allowMultipleItems = R.pathEq(['args', 'allowMultipleItems'], true)(this);\n      if (allowMultipleItems) {\n        return true;\n      }\n      return true;\n    }\n    get filesBrowserFilter() {\n      return this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          excludeCopies: true,\n          count: 20\n        }\n      });\n    }\n    get onlyDisplayDefault() {\n      return R.pathOr(false, ['args', 'onlyDisplayDefault'])(this);\n    }\n    get imageWidth() {\n      return R.pathOr('80', ['args', 'imageWidth'])(this);\n    }\n    get allowMultipleItems() {\n      return R.pathOr(true, ['args', 'allowMultipleItems'])(this);\n    }\n    animateLoading() {\n      this.loading = true;\n      setTimeout(() => {\n        this.loading = false;\n      }, 1000);\n    }\n    *afterUploadTask(onCloseDialogActionListBtn = null) {\n      yield this.fetchUploadsTask.perform();\n      if (typeof onCloseDialogActionListBtn === 'function') {\n        onCloseDialogActionListBtn();\n      }\n    }\n    *fetchUploadsTask(options = {}) {\n      const {\n        excludeCopies = false,\n        onlyDisplayDefault = false\n      } = options;\n      const uploadsCollection = yield this.crud.fetchUploadsTask.perform({\n        resource: this.args.resource,\n        resourceKey: this.args.resourceKey,\n        adapterName: this.collectionAdapterName,\n        params: {\n          excludeCopies,\n          onlyDisplayDefault,\n          count: 30\n        }\n      });\n      this.uploadsCollection = uploadsCollection;\n    }\n    *onSubmitTask(onCloseDialogAction, options, uploadsModel, data) {\n      const setAsDefaultOnSelect = R.pathOr(false, ['args', 'setAsDefaultOnSelect'])(this);\n      const allowMultipleItems = R.pathOr(false, ['args', 'allowMultipleItems'])(this);\n      if (setAsDefaultOnSelect && !allowMultipleItems) {\n        options = R.mergeRight(options, {\n          removeCopies: true,\n          setAsDefaultOnSelect: true\n        });\n      }\n      return this.copyImageTask.perform(onCloseDialogAction, options, uploadsModel, data);\n    }\n    *copyImageTask(onCloseDialogAction, options, uploadModels, data) {\n      if (RA.isNilOrEmpty(uploadModels)) {\n        return;\n      }\n\n      // @NOTE: onSubmit knows about uploadModels, if is an array or a single item\n      if (this.args.onSubmit) {\n        return this.args.onSubmit(onCloseDialogAction, options, uploadModels, data);\n      }\n\n      // @NOTE: always ensure uploads is an array. CreateBatch, only accepts arrays\n      uploadModels = RA.ensureArray(uploadModels);\n      this.animateLoading();\n      const batch = R.map(model => {\n        const data = model.serialize();\n        data.resource = this.args.resource;\n        data.resourceKey = this.args.resourceKey;\n        const newModel = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          data\n        });\n        const hasOptions = RA.isNotNilOrEmpty(options);\n        if (hasOptions) {\n          R.forEachObjIndexed((value, key) => newModel.setData(key, value))(options);\n        }\n        return newModel;\n      })(uploadModels);\n      const responseData = yield this.crud.createBatchTask.perform({\n        appendPath: 'batch/copy',\n        adapterName: this.adapterName,\n        batch\n      });\n      R.forEach(upload => {\n        const uploadModel = R.find(R.pathEq(['_data', 'uuid'], upload.uuid))(uploadModels);\n        if (!uploadModel) {\n          return;\n        }\n        uploadModel.set('isSelected', false);\n      })(responseData?.successful);\n      if (responseData?.unsuccessful?.length) {\n        throw new Error('cannot add items', {\n          cause: {\n            errors: responseData?.unsuccessful\n          }\n        });\n      }\n      yield this.fetchUploadsTask.perform({\n        onlyDisplayDefault: this.args.onlyDisplayDefault\n      });\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *removeUploadsTask({\n      uploads = []\n    }) {\n      const removeAllImagesTasks = R.map(item => this.remove.perform(null, {}, item))(uploads);\n      yield (0, _emberConcurrency.all)(removeAllImagesTasks);\n    }\n    *remove(onCloseDialogAction, options, uploadsModel) {\n      yield this.uploadsService.removeTask.perform(onCloseDialogAction, options, uploadsModel);\n    }\n    *removeAll(file) {\n      const data = {\n        uuid: file._data.uuid,\n        resource: file._data.resource,\n        resourceKey: file._data.resourceKey\n      };\n      return yield this.server.call('DELETE', 'api/protected/uploads/uploadcare/file', data);\n    }\n    *setAsDefaultImageTask(onCloseDialogActionListBtn, options, uploadsModel, data) {\n      this.animateLoading();\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model: uploadsModel\n      });\n      const hasOptions = RA.isNotEmpty(options);\n      if (hasOptions) {\n        R.forEachObjIndexed((value, key) => dirty.setData(key, value))(options);\n      }\n      yield this.crud.updateRecordTask.perform({\n        adapterName: this.adapterName,\n        appendPath: '/default',\n        model: dirty\n      });\n      yield this.fetchUploadsTask.perform({\n        onlyDisplayDefault: this.args.onlyDisplayDefault\n      });\n      if (this.args.onSetAsDefaultImageTask) {\n        yield this.args.onSetAsDefaultImageTask();\n      }\n      if (onCloseDialogActionListBtn) {\n        onCloseDialogActionListBtn();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uploadsService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"loading\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uploadsCollection\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedResource\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isUploadsReadonly\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"isUploadsReadonly\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterUploadTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"afterUploadTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchUploadsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchUploadsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyImageTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"copyImageTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeUploadsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeUploadsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"remove\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"remove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAll\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setAsDefaultImageTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setAsDefaultImageTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/files-manager/finder/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, RA, R, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 FilesManagerFinderComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('application'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _class = class FilesManagerFinderComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showResults\", _descriptor6, this);\n      _initializerDefineProperty(this, \"loading\", _descriptor7, this);\n      _initializerDefineProperty(this, \"selectedResource\", _descriptor8, this);\n      _initializerDefineProperty(this, \"initialResource\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedTag\", _descriptor0, this);\n      _initializerDefineProperty(this, \"tab\", _descriptor1, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectedItem\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedItems\", _descriptor12, this);\n      _initializerDefineProperty(this, \"selectedItemPrevious\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedLabel\", _descriptor14, this);\n      _defineProperty(this, \"adapterName\", 'uploads');\n      // individual model in uploadsCollection._data.uploads\n      _defineProperty(this, \"collectionAdapterName\", 'uploads/collection');\n      // collection model that holds _data.uploads\n      _defineProperty(this, \"filtersAdapterName\", 'uploads/filters');\n      _defineProperty(this, \"finderLabel\", this.args.finderLabel || 'files_manager_tags');\n      this.crud.addLists(this, ['uploads/lists/resources', 'uploads/lists/tags']);\n      const originalTab = R.path(['args', 'tab'])(this);\n      const tab = this.tabsManager.copyTab({\n        tab: originalTab\n      });\n      this.tab = tab;\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          excludeCopies: true,\n          count: 20\n        }\n      });\n      this.filters = filters;\n      this.initialResource = this.args.resource;\n      this.showResults = this.args.showSideBar === true;\n      this.setResource(this.initialResource);\n    }\n    get options() {\n      const externalOptions = this?.args?.options || {};\n      return R.mergeRight({\n        isDefault: true\n      }, externalOptions);\n    }\n    get allowMultipleItems() {\n      return R.pathOr(true, ['args', 'allowMultipleItems'])(this);\n    }\n    get listResources() {\n      return this.crud.lists['uploads-lists-resources'] || [];\n    }\n    willDestroy() {\n      if (this?.isDestroyed === false) {\n        const subTabs = this?.tab?.subTabs || [];\n        const firstSubTab = R.head(subTabs);\n        const hasSubTab = RA.isNotNilOrEmpty(firstSubTab);\n        const hasSubTabs = RA.isNotNilOrEmpty(subTabs);\n        if (hasSubTabs && hasSubTab && firstSubTab.set) {\n          this.tabsManager.closeTab(subTabs, firstSubTab);\n        }\n      }\n    }\n    *onSubmitTask(onCloseDialogAction, options, selectedItems) {\n      const alreadyAddedFiles = this.args.alreadyAddedFiles || [];\n      selectedItems = R.pipe(RA.ensureArray, R.reject(file => {\n        const fileUuid = file?._data?.uuid;\n        const found = R.find(R.pathEq(['_data', 'uuid'], fileUuid))(alreadyAddedFiles);\n        return found;\n      }))(selectedItems);\n      if (RA.isNilOrEmpty(selectedItems)) {\n        this.resetSelectedItems();\n        if (onCloseDialogAction) {\n          onCloseDialogAction();\n        }\n        return;\n      }\n      const results = yield this.args.onSubmitTask.perform(onCloseDialogAction, options, selectedItems);\n      this.resetSelectedItems();\n      return results;\n    }\n    resetSelectedItems() {\n      this.selectedItems = [];\n    }\n    *onRemoveTask(files, {\n      onAfter\n    } = {}) {\n      const options = this.options;\n      const onCloseDialogAction = this.args.onCloseDialogAction;\n      const isDeleted = yield this.args.onRemoveTask.perform(onCloseDialogAction, options, files);\n      if (!isDeleted) {\n        return;\n      }\n      const fileKeys = R.map(R.path(['_data', '_key']))(files);\n      R.forEach(file => {\n        const fileKey = R.path(['_data', '_key'])(file);\n        if (R.includes(fileKey, fileKeys)) {\n          file.set('isSelected', false);\n          this.selectedItems.removeObject(file);\n        }\n      })(files);\n      if (onAfter) {\n        yield onAfter.perform();\n        yield onAfter();\n      }\n      return isDeleted;\n    }\n    setResource(resourceName) {\n      this.display = false;\n      this.selectedResource = resourceName;\n      this.selectedTag = '';\n      this.selectedLabel = this.intl.t(resourceName);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          excludeCopies: true,\n          count: 20\n        }\n      });\n      this.filters = filters;\n      this.filters.setData('resource', resourceName);\n      this.filters.setData('tagKey', '');\n      this.filters.setData('query', '');\n      const panelOptions = {\n        component: 'files/files-browser',\n        fetchUploadsOnInit: true,\n        isModal: true\n      };\n      this.tabsManager.replaceSubTab(this.tab, panelOptions);\n    }\n    filterByTagKey(tag) {\n      this.display = false;\n      const panelOptions = {\n        component: 'files/files-browser',\n        fetchUploadsOnInit: true\n      };\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          excludeCopies: true,\n          count: 20\n        }\n      });\n      this.filters = filters;\n      this.filters.setData('tagKey', tag?._data?._key);\n      this.filters.setData('query', '');\n      this.selectedResource = this.initialResource;\n      this.selectedTag = tag?._data?._key;\n      this.selectedLabel = tag?._data?.label;\n      this.tabsManager.replaceSubTab(this.tab, panelOptions);\n    }\n    showResultsAfterSearch() {\n      this.display = false;\n      const panelOptions = {\n        component: 'files/files-browser',\n        fetchUploadsOnInit: false\n      };\n      this.filters.setData('tagKey', '');\n      this.filters.setData('resource', '');\n      this.selectedResource = '';\n      this.selectedTag = '';\n      this.tabsManager.replaceSubTab(this.tab, panelOptions);\n    }\n    onSelectItem(selected) {\n      if (this.allowMultipleItems) {\n        this.selectedItems.addObject(selected);\n      } else {\n        this.selectedItems.clear();\n        this.selectedItems.addObject(selected);\n      }\n    }\n    onDeselectItem(selected) {\n      this.selectedItems.removeObject(selected);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showResults\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"loading\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"selectedResource\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"initialResource\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedTag\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"tab\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedItem\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedItems\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"selectedItemPrevious\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"selectedLabel\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSubmitTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetSelectedItems\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"resetSelectedItems\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onRemoveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onRemoveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setResource\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"setResource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"filterByTagKey\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"filterByTagKey\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showResultsAfterSearch\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"showResultsAfterSearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectItem\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDeselectItem\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"onDeselectItem\"), _class.prototype), _class);\n});","define(\"client/pods/components/files-manager/finder/image/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ember-concurrency\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, _emberConcurrency, RA) {\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, _dec0, _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 DESKTOP = 'desktop';\n  const TABLET = 'tablet';\n  const MOBILE = 'mobile';\n  let FilesManagerFinderImageComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('uploads'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class FilesManagerFinderImageComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      /** @type {UploadsService} */\n      _initializerDefineProperty(this, \"uploadsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"mobile\", _descriptor4, this);\n      _initializerDefineProperty(this, \"tablet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"desktop\", _descriptor6, this);\n      if (this.args.model) {\n        this.setupModel();\n      }\n    }\n    get hasSelected() {\n      const isMobileSelected = this.isSelected(this.mobile);\n      const isTabletSelected = this.isSelected(this.tablet);\n      const isDesktopSelected = this.isSelected(this.desktop);\n      return isMobileSelected || isTabletSelected || isDesktopSelected;\n    }\n    get hasAllSelected() {\n      const isMobileSelected = this.isSelected(this.mobile);\n      const isTabletSelected = this.isSelected(this.tablet);\n      const isDesktopSelected = this.isSelected(this.desktop);\n      return isMobileSelected && isTabletSelected && isDesktopSelected;\n    }\n    get isBackgroundType() {\n      return R.pipe(R.pathOr(false, ['args', 'previousImage', 'imgSet', 'imgType']), R.equals('background-img'))(this);\n    }\n    isSelected(item) {\n      return R.pipe(R.propOr(false, 'isSelected'), R.equals(true))(item);\n    }\n\n    /**\n     * Toggle all devices isSelected to a specific boolean\n     * @param {boolean} isSelected\n     */\n    toggleIsSelectedOnAll(isSelected = true) {\n      const items = [this.desktop, this.tablet, this.mobile];\n      R.forEach(item => {\n        if (RA.isNilOrEmpty(item)) {\n          return;\n        }\n        item.set('isSelected', isSelected);\n      })(items);\n    }\n    getSelectedName() {\n      const isMobileSelected = this.isSelected(this.mobile);\n      const isTabletSelected = this.isSelected(this.tablet);\n      const isDesktopSelected = this.isSelected(this.desktop);\n      if (isDesktopSelected) {\n        return DESKTOP;\n      }\n      if (isTabletSelected) {\n        return TABLET;\n      }\n      if (isMobileSelected) {\n        return MOBILE;\n      }\n    }\n    resetAllImages(dirty) {\n      this.mobile = this.crud.setupDirty(dirty);\n      this.tablet = this.crud.setupDirty(dirty);\n      this.desktop = this.crud.setupDirty(dirty);\n      this.toggleIsSelectedOnAll(true);\n    }\n    setCurrentSelected(model) {\n      const imgSet = {\n        mobile: this.mobile,\n        tablet: this.tablet,\n        desktop: this.desktop,\n        desktopUrl: this.desktop.url,\n        desktopUuid: this.desktop.getData('uuid'),\n        tabletUrl: this.tablet.url,\n        tabletUuid: this.tablet.getData('uuid'),\n        mobileUrl: this.mobile.url,\n        mobileUuid: this.mobile.getData('uuid')\n      };\n      model.set('imgSet', imgSet);\n    }\n    setupModel(model) {\n      model = model || this.args.model;\n      if (!model) {\n        this.mobile = null;\n        this.tablet = null;\n        this.desktop = null;\n        return;\n      }\n      const dirty = {\n        adapterName: 'uploads',\n        model\n      };\n      if (this.hasSelected && !this.hasAllSelected) {\n        const selectedName = this.getSelectedName();\n        this[selectedName] = this.crud.setupDirty(dirty);\n        this[selectedName].set('isSelected', true);\n      } else {\n        this.resetAllImages(dirty);\n      }\n      if (model.isGif || this.isBackgroundType) {\n        this.resetAllImages(dirty);\n      }\n      this.setCurrentSelected(model);\n    }\n    onSelectImg(model, event) {\n      event.stopPropagation();\n      if (RA.isNotNilOrEmpty(model)) {\n        if (model.isGif || this.isBackgroundType) {\n          return;\n        }\n        this.toggleIsSelectedOnAll(false);\n        model.set('isSelected', true);\n      }\n    }\n    *fetchPreviousImagesTask() {\n      const previousImage = this?.args?.previousImage;\n      if (!previousImage) {\n        return null;\n      }\n      const uuids = {\n        [DESKTOP]: R.pathOr('', ['imgSet', 'desktopUuid'])(previousImage),\n        [TABLET]: R.pathOr('', ['imgSet', 'tabletUuid'])(previousImage),\n        [MOBILE]: R.pathOr('', ['imgSet', 'mobileUuid'])(previousImage)\n      };\n      const hasAllUuids = R.pipe(R.values, R.map(RA.isNilOrEmpty), R.all(R.equals(false)))(uuids);\n      if (!hasAllUuids) {\n        return null;\n      }\n      const taskArray = R.pipe(R.values, R.uniq, R.map(uuid => this.uploadsService.fetchByUuid.perform(uuid)))(uuids);\n      let results = yield (0, _emberConcurrency.all)(taskArray);\n      results = R.flatten(results);\n      R.forEachObjIndexed((uuid, device) => {\n        const model = R.find(R.pathEq(['_data', 'uuid'], uuid))(results);\n        if (model) {\n          this[device] = this.crud.setupDirty({\n            adapterName: 'uploads',\n            model\n          });\n        } else {\n          this[device] = this.crud.setupNewRecord({\n            adapterName: 'uploads',\n            data: {}\n          });\n        }\n      })(uuids);\n      this.toggleIsSelectedOnAll();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uploadsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"mobile\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"tablet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"desktop\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleIsSelectedOnAll\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsSelectedOnAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCurrentSelected\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setCurrentSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupModel\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setupModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectImg\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectImg\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchPreviousImagesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchPreviousImagesTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/files-manager/finder/image/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Bczbrx8T\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"files-manager-image-specs files__gallery-item-container\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"fetchPreviousImagesTask\\\"]]],null]]],[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupModel\\\"]],[23,1,[]]],null]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleIsSelectedOnAll\\\"]],true],null]]],[8],[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchPreviousImagesTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"files-manager-image files__gallery-item-container \\\",[28,\\\"if\\\",[[23,0,[\\\"desktop\\\",\\\"isSelected\\\"]],\\\"quick-template-is-selected\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"files__gallery-item-container-wrapper\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSelectImg\\\"]],[23,0,[\\\"desktop\\\"]]],null]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-1by1 files-manager-image--figure\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"desktop\\\",\\\"url\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"desktop\\\"]],[23,0,[\\\"desktop\\\",\\\"url\\\"]]],null],[28,\\\"concat\\\",[[23,0,[\\\"desktop\\\",\\\"url\\\"]],\\\"-/scale_crop/200x200/smart/\\\",\\\"-/format/webp/\\\"],null],\\\"https://via.placeholder.com/200x200.png?text=DESKTOP\\\"],null]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"gallery-item--device\\\"],[8],[1,[28,\\\"tt\\\",[\\\"desktop\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"gallery-item--resource\\\"],[8],[1,[28,\\\"tt\\\",[[23,0,[\\\"desktop\\\",\\\"_data\\\",\\\"resource\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"gallery-item--name\\\"],[8],[1,[23,0,[\\\"desktop\\\",\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"files-manager-image files__gallery-item-container \\\",[28,\\\"if\\\",[[23,0,[\\\"tablet\\\",\\\"isSelected\\\"]],\\\"quick-template-is-selected\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"files__gallery-item-container-wrapper\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSelectImg\\\"]],[23,0,[\\\"tablet\\\"]]],null]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-1by1 files-manager-image--figure\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"tablet\\\",\\\"url\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"tablet\\\"]],[23,0,[\\\"tablet\\\",\\\"url\\\"]]],null],[28,\\\"concat\\\",[[23,0,[\\\"tablet\\\",\\\"url\\\"]],\\\"-/scale_crop/200x200/smart/\\\",\\\"-/format/webp/\\\"],null],\\\"https://via.placeholder.com/200x200.png?text=TABLET\\\"],null]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"gallery-item--device\\\"],[8],[1,[28,\\\"tt\\\",[\\\"tablet\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"gallery-item--resource\\\"],[8],[1,[28,\\\"tt\\\",[[23,0,[\\\"tablet\\\",\\\"_data\\\",\\\"resource\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"gallery-item--name\\\"],[8],[1,[23,0,[\\\"tablet\\\",\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"files-manager-image files__gallery-item-container \\\",[28,\\\"if\\\",[[23,0,[\\\"mobile\\\",\\\"isSelected\\\"]],\\\"quick-template-is-selected\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"files__gallery-item-container-wrapper\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSelectImg\\\"]],[23,0,[\\\"mobile\\\"]]],null]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-1by1 files-manager-image--figure\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"mobile\\\",\\\"url\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"mobile\\\"]],[23,0,[\\\"mobile\\\",\\\"url\\\"]]],null],[28,\\\"concat\\\",[[23,0,[\\\"mobile\\\",\\\"url\\\"]],\\\"-/scale_crop/200x200/smart/\\\",\\\"-/format/webp/\\\"],null],\\\"https://via.placeholder.com/200x200.png?text=MOBILE\\\"],null]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"gallery-item--device\\\"],[8],[1,[28,\\\"tt\\\",[\\\"mobile\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"gallery-item--resource\\\"],[8],[1,[28,\\\"tt\\\",[[23,0,[\\\"mobile\\\",\\\"_data\\\",\\\"resource\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"gallery-item--name\\\"],[8],[1,[23,0,[\\\"mobile\\\",\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files-manager/finder/image/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files-manager/finder/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"91d/u0mu\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tag\\\",\\\"resource\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@previousImage\\\",\\\"@tab\\\",\\\"@allowSrcSet\\\",\\\"@isSidebar\\\",\\\"@selectedItemsLimit\\\",\\\"@onCloseDialogAction\\\",\\\"@hasSelectedItemsLimit\\\",\\\"@alreadyAddedFiles\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,8,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@label\\\",\\\"@translate\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"showResults\\\"]],[23,0,[\\\"selectedLabel\\\"]],false]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@placeholder\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],true,[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"allowEmptyQuery\\\",\\\"filters\\\"],[\\\"uploads\\\",true,[23,0,[\\\"filters\\\"]]]]],[24,[\\\"query\\\"]]],null],\\\"uploaded files\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[4,5,6]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/search-results\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"menu-list\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"listResources\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"#\\\"],[12,\\\"class\\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,0,[\\\"selectedTag\\\"]]],null],[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"label\\\"]],[23,0,[\\\"selectedResource\\\"]]],null]],null],\\\"is-active\\\"],null]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"setResource\\\"]],[23,3,[\\\"_data\\\",\\\"label\\\"]]],null]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[23,3,[\\\"_data\\\",\\\"label\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"menu-label\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"finderLabel\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"menu-list\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"uploads-lists-tags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"#\\\"],[12,\\\"class\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"selectedTag\\\"]]],null],\\\"is-active\\\"],null]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"filterByTagKey\\\"]],[23,2,[]]],null]]],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"files-manager\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"files-manager/finder/image\\\",[],[[\\\"@model\\\",\\\"@previousImage\\\"],[[23,0,[\\\"selectedItems\\\",\\\"firstObject\\\"]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,0,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"alreadyAddedFiles\\\",\\\"allowMultipleItems\\\",\\\"allowSrcSet\\\",\\\"fetchUploadsOnInit\\\",\\\"filters\\\",\\\"hasSelectedItemsLimit\\\",\\\"onCancel\\\",\\\"onCloseDialogAction\\\",\\\"onDeselectItem\\\",\\\"onRemove\\\",\\\"onSelectItem\\\",\\\"onSubmit\\\",\\\"parentSelectedItems\\\",\\\"previousImage\\\",\\\"resource\\\",\\\"resourceKey\\\",\\\"results\\\",\\\"selectedItemsLimit\\\",\\\"tagKey\\\",\\\"isSidebar\\\"],[[23,14,[]],[23,0,[\\\"allowMultipleItems\\\"]],[23,9,[]],[23,1,[\\\"fetchUploadsOnInit\\\"]],[23,0,[\\\"filters\\\"]],[23,13,[]],[23,12,[]],[23,12,[]],[23,0,[\\\"onDeselectItem\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onRemoveTask\\\"]]],null],[23,0,[\\\"onSelectItem\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onSubmitTask\\\"]],[23,12,[]],[23,0,[\\\"options\\\"]]],null],[23,0,[\\\"selectedItems\\\"]],[23,7,[]],[23,0,[\\\"selectedResource\\\"]],\\\"0\\\",[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,11,[]],[23,0,[\\\"selectedTag\\\"]],[23,10,[]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files-manager/finder/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files-manager/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zJ36Itl+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@isFilesManagerModalVisible\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@allowSrcSet\\\",\\\"@finderLabel\\\",\\\"@hasSelectedItemsLimit\\\",\\\"@options\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@selectedItemsLimit\\\",\\\"@tab\\\",\\\"@previousImage\\\",\\\"@showSideBar\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@filesGalleryRowClassNames\\\",\\\"@galleryItemClassNames\\\",\\\"@showDefaultImagePreview\\\",\\\"@transform\\\",\\\"@allowShowPreviewModal\\\",\\\"@hideFilesGallery\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,21,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"loading\\\"]],\\\"editor-loading\\\",\\\"\\\"],null]],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"files/files-gallery\\\",[[12,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"onlyDisplayDefault\\\"]],\\\"images-container--single-image\\\",\\\"images-container\\\"],null]]],[[\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@defaultImage\\\",\\\"@filesGalleryRowClassNames\\\",\\\"@galleryItemClassNames\\\",\\\"@imageWidth\\\",\\\"@onAfterRemove\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@transform\\\",\\\"@uploads\\\",\\\"@transformPreview\\\",\\\"@allowShowPreviewModal\\\"],[[23,14,[]],[28,\\\"if\\\",[[23,15,[]],[23,15,[]],true],null],[23,0,[\\\"uploadsCollection\\\",\\\"defaultImageUuid\\\"]],[23,16,[]],[23,17,[]],[23,0,[\\\"imageWidth\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"afterUploadTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"setAsDefaultImageTask\\\"]],null,[28,\\\"hash\\\",null,[[\\\"isDefault\\\"],[true]]]],null],[23,8,[]],[23,9,[]],[23,18,[]],[23,19,[]],[28,\\\"if\\\",[[23,0,[\\\"onlyDisplayDefault\\\"]],[23,0,[\\\"uploadsCollection\\\",\\\"onlyIsDefaultUploads\\\"]],[23,0,[\\\"uploadsCollection\\\",\\\"_data\\\",\\\"uploads\\\"]]],null],[23,0,[\\\"transformPreviewDefaults\\\"]],[28,\\\"if\\\",[[23,14,[]],true,[23,20,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowUploads\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@modalDialogContentClassName\\\"],[[23,2,[]],false,[23,0,[\\\"isUploadsReadonly\\\"]],\\\"fas fa-file-import\\\",[23,3,[\\\"isRunning\\\"]],\\\"files manager\\\",true,\\\"u-overflow-y-hidden-important\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"files-manager/finder\\\",[],[[\\\"@allowMultipleItems\\\",\\\"@allowSrcSet\\\",\\\"@finderLabel\\\",\\\"@hasSelectedItemsLimit\\\",\\\"@imagesOnly\\\",\\\"@onCloseDialogAction\\\",\\\"@onRemoveTask\\\",\\\"@onSubmitTask\\\",\\\"@options\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@selectedItemsLimit\\\",\\\"@tab\\\",\\\"@previousImage\\\",\\\"@showSideBar\\\"],[[23,0,[\\\"allowMultipleItems\\\"]],[23,4,[]],[23,5,[]],[23,6,[]],true,[23,1,[]],[23,0,[\\\"remove\\\"]],[23,0,[\\\"onSubmitTask\\\"]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files-manager/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-browser-modal/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    uploadsService: Ember.inject.service('uploads'),\n    tagName: '',\n    resource: 'files',\n    resourceKey: 'files',\n    onSubmitTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, options, uploadsModel, data) {\n      if (this.onSubmit) {\n        if (this.onSubmit.perform) {\n          yield this.onSubmit.perform(onCloseDialogAction, options, uploadsModel, data);\n        } else {\n          yield this.onSubmit(onCloseDialogAction, options, uploadsModel, data);\n        }\n      }\n      onCloseDialogAction();\n    }),\n    actions: {\n      cancel(onCloseDialogAction) {\n        const onCancel = this.onCancel;\n        if (onCancel) {\n          return onCancel(onCloseDialogAction);\n        }\n        return onCloseDialogAction();\n      }\n    }\n  });\n});","define(\"client/pods/components/files/files-browser-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6cf/qI9E\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@allowSrcSet\\\",\\\"@allowMultipleItems\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@finderLabel\\\",\\\"@tab\\\",\\\"@previousImage\\\",\\\"@isFroala\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\",\\\"@modalDialogContentClassName\\\"],[\\\"search images\\\",[22,\\\"modalDialogIsVisible\\\"],true,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"modalDialogIsVisible\\\"]]],null]],null],\\\"u-overflow-y-hidden-important\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"files-manager/finder\\\",[],[[\\\"@allowSrcSet\\\",\\\"@allowMultipleItems\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@finderLabel\\\",\\\"@onSubmitTask\\\",\\\"@onRemoveTask\\\",\\\"@onCloseDialogAction\\\",\\\"@tab\\\",\\\"@previousImage\\\",\\\"@isFroala\\\",\\\"@indexProp\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"onSubmitTask\\\"]],[23,0,[\\\"uploadsService\\\",\\\"removeTask\\\"]],[23,1,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,0,[\\\"indexProp\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-browser-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-browser/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, R, RA) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember.computed('selectedItemIndexes.[]', 'showPreviewModal._data.uuid'), _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    settingsService: Ember.inject.service('settings'),\n    intl: Ember.inject.service(),\n    search: Ember.inject.service(),\n    tagName: '',\n    resource: 'files',\n    uploadToResource: '',\n    resourceKey: 'files',\n    allowUploads: true,\n    filtersAdapterName: 'uploads/filters',\n    resultsProperty: 'uploads',\n    adapterName: 'uploads',\n    selectedItems: null,\n    selectedTagKeys: null,\n    untagSelectedTagKeys: false,\n    hasSelectedItemsLimit: false,\n    selectedItemsLimit: 0,\n    init() {\n      this._super(...arguments);\n      const resultsProperty = this.resultsProperty;\n      let filters = this.filters;\n      if (!filters) {\n        filters = this.search.setupFilters({\n          adapterName: this.filtersAdapterName,\n          defaultFiltersData: {\n            resultsProperty\n          }\n        });\n      }\n      this.set('uploadsFilters', filters);\n      this.set('selectedItems', []);\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.crud.addLists(this, ['uploads/lists/tags']);\n      if (R.isEmpty(this.selectedItems) && RA.isNotNilOrEmpty(this.parentSelectedItems)) {\n        this.selectedItems.addObjects(this.parentSelectedItems);\n      }\n      if (this.fetchUploadsOnInit) {\n        this.fetchUploadsTask.perform();\n      }\n    },\n    resourcesListExcludingAll: Ember.computed('crud.lists.uploads-lists-resources.[]', function () {\n      const resources = this.crud.lists['uploads-lists-resources'] || [];\n      return R.reject(R.pathEq(['_data', 'value'], 'all'))(resources);\n    }),\n    showPaginationInFooter: Ember.computed('isSidebar', 'applicationService.isMobile', function () {\n      if (this.applicationService.isMobile) {\n        return false;\n      }\n      if (this.isSidebar) {\n        return false;\n      }\n      return true;\n    }),\n    hasSelectedItems: Ember.computed('parentSelectedItems.length', 'selectedItems.length', function () {\n      if (RA.isNotNilOrEmpty(this.selectedItems)) {\n        return true;\n      }\n      if (RA.isNotNilOrEmpty(this.parentSelectedItems)) {\n        return true;\n      }\n      return false;\n    }),\n    isRunning: Ember.computed('removeTask.isRunning', 'onSubmit.isRunning', 'onSubmitTask.isRunning', function () {\n      const isRemoveTaskRunning = R.pathOr(false, ['removeTask', 'isRunning'])(this);\n      const isOnSubmitTaskRunning = R.pathOr(false, ['onSubmit', 'isRunning'])(this);\n      const isOnSubmitTaskTaskRunning = R.pathOr(false, ['onSubmitTask', 'isRunning'])(this);\n      if (isRemoveTaskRunning || isOnSubmitTaskRunning || isOnSubmitTaskTaskRunning) {\n        return true;\n      }\n      return false;\n    }),\n    uploadBtnLabel: Ember.computed('resource', 'uploadToResource', function () {\n      if (this.applicationService.isMobile) {\n        return this.intl.t('upload');\n      }\n      if (this.resource === 'all') {\n        return this.translateUploadResourceLabel(this.uploadToResource);\n      }\n      return this.translateUploadResourceLabel(this.resource);\n    }),\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        this._super(...arguments);\n        this.resetSelectedItems();\n      }\n    },\n    resetSelectedItems(item) {\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.set('selectedItems', []);\n    },\n    onAfterUploadTask: (0, _emberConcurrency.task)(function* ({\n      resetUploadToResource\n    } = {}, {\n      resource,\n      resourceKey,\n      file,\n      uploadedFiles\n    } = {}) {\n      const results = yield this.fetchUploadsTask.perform({\n        resetUploadToResource\n      });\n      const imagesAutoSelectOnUpload = this.settingsService.getProp('imagesAutoSelectOnUpload', false);\n      if (imagesAutoSelectOnUpload) {\n        const uploadedUuids = R.pluck('uuid')(uploadedFiles);\n        R.map(uploadsModel => {\n          if (resourceKey === uploadsModel?._data?.resourceKey && resource === uploadsModel?._data?.resource && R.includes(uploadsModel?._data?.uuid)(uploadedUuids)) {\n            this.addToSelected(uploadsModel);\n          }\n        })(results);\n      }\n    }),\n    fetchUploadsTask: (0, _emberConcurrency.task)(function* ({\n      resetUploadToResource = false\n    } = {}) {\n      if (this.uploadsFilters?._data?.tagKey) {\n        return yield this.crud.searchRecordsTask.perform({\n          adapterName: this.adapterName,\n          filters: this.uploadsFilters\n        });\n      }\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.uploadsFilters,\n        data: {\n          resource: this.resource,\n          resourceKey: this.resourceKey\n        }\n      });\n      if (resetUploadToResource) {\n        this.set('uploadToResource', '');\n      }\n      return results;\n    }),\n    removeAndRefreshUploadsTask: (0, _emberConcurrency.task)(function* (files) {\n      yield this.removeTask.perform(files);\n      yield this.fetchUploadsTask.perform();\n    }),\n    removeTask: (0, _emberConcurrency.task)(function* (files) {\n      files = RA.ensureArray(files);\n      const isDeleted = yield this.onRemove(files);\n      if (!isDeleted) {\n        return;\n      }\n\n      // first deselect all\n      R.map(file => {\n        this.removeFromSelected(file);\n      })(files);\n      const uploadsKeys = R.map(R.path(['_data', '_key']))(files);\n      const selectedItems = R.pipe(R.propOr([], 'selectedItems'), R.reject(R.pipe(R.path(['_data', '_key']), R.contains(R.__, uploadsKeys))))(this);\n      this.set('selectedItems', selectedItems);\n    }),\n    onSubmitTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, showPreviewModal) {\n      if (this.allowMultipleItems) {\n        yield this.onSubmit(this.selectedItems);\n        this.resetSelectedItems();\n      } else {\n        const uploadsModel = R.path(['selectedItems', 0])(this);\n        yield this.onSubmit(uploadsModel);\n      }\n      if (onCloseDialogAction && !onCloseDialogAction?.type) {\n        onCloseDialogAction();\n      }\n    }),\n    selectedItemIndexes: Ember.computed('selectedItems.[]', function () {\n      let index = 0;\n      const selectedItems = this?.selectedItems || [];\n      return R.map(item => {\n        index = index + 1;\n        return {\n          uuid: item?._data?.uuid,\n          index\n        };\n      })(selectedItems);\n    }),\n    addToSelected(item, toggleModel) {\n      const isOverLimit = this?.selectedItems?.length >= this.selectedItemsLimit;\n      if (this.hasSelectedItemsLimit && isOverLimit) {\n        if (toggleModel?.toggleIsOn) {\n          item.isSelected = false;\n        } else {\n          this.selectedItems.removeObject(item);\n        }\n        return;\n      }\n      const allowMultipleItems = R.propOr(false, 'allowMultipleItems')(this);\n      if (!allowMultipleItems) {\n        this.resetSelectedItems(item);\n        this.selectedItems.clear();\n        this.selectedItems.addObject(item);\n        // Reset selectedTagKeys\n        this.selectedItems[0].set('isSelected', true);\n        this.onSelectItem(item);\n      } else {\n        if (this.selectedItems.includes(item)) {\n          this.selectedItems.removeObject(item);\n          this.onDeselectItem(item);\n        } else {\n          this.selectedItems.addObject(item);\n          this.onSelectItem(item);\n        }\n      }\n      this.set('lastSelected', item);\n    },\n    removeFromSelected(item) {\n      if (this.selectedItems.includes(item)) {\n        this.selectedItems.removeObject(item);\n        this.onDeselectItem(item);\n      }\n    },\n    addToSelectedAndCloseDialog(item, onCloseDialogAction, toggleModel) {\n      this.addToSelected(item, toggleModel);\n      onCloseDialogAction();\n    },\n    showPreview(file) {\n      this.set('showPreviewModal', file);\n    },\n    get isModalFileSelected() {\n      const selectedItemIndexes = this.selectedItemIndexes || [];\n      const fileUuid = this.showPreviewModal?._data?.uuid;\n      const foundFile = R.find(R.propEq('uuid', fileUuid))(selectedItemIndexes) || {};\n      return R.mergeRight(foundFile, {\n        isSelected: RA.isNotNilOrEmpty(foundFile)\n      });\n    },\n    resetSelectedTagKeys() {\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n    },\n    cancel() {\n      this.resetSelectedItems();\n      this.onCancel();\n    },\n    translateUploadResourceLabel(resource = '') {\n      if (resource) {\n        resource = this.intl.t(resource);\n      }\n      return `${this.intl.t('upload')}: ${resource}`;\n    }\n  }, _applyDecoratedDescriptor(_obj, \"addToSelected\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"addToSelected\"), _obj), _applyDecoratedDescriptor(_obj, \"removeFromSelected\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"removeFromSelected\"), _obj), _applyDecoratedDescriptor(_obj, \"addToSelectedAndCloseDialog\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"addToSelectedAndCloseDialog\"), _obj), _applyDecoratedDescriptor(_obj, \"showPreview\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"showPreview\"), _obj), _applyDecoratedDescriptor(_obj, \"isModalFileSelected\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"isModalFileSelected\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeys\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeys\"), _obj), _applyDecoratedDescriptor(_obj, \"cancel\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"cancel\"), _obj), _applyDecoratedDescriptor(_obj, \"translateUploadResourceLabel\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"translateUploadResourceLabel\"), _obj), _obj));\n});","define(\"client/pods/components/files/files-browser/item/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 FilesFilesBrowserItemComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember._tracked, _dec4 = Ember.computed('args.selectedItemIndexes.[]', 'args.file._data.uuid'), _class = class FilesFilesBrowserItemComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isSelectedToggleValue\", _descriptor3, this);\n      if (this.isSelected) {\n        this.isSelectedToggleValue = true;\n      }\n    }\n    get isSelected() {\n      const selectedItemIndexes = this.args.selectedItemIndexes || [];\n      const fileUuid = this.args.file?._data?.uuid;\n      const foundFile = R.find(R.propEq('uuid', fileUuid))(selectedItemIndexes) || {};\n      return R.mergeRight(foundFile, {\n        toggle: RA.isNotNilOrEmpty(foundFile)\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isSelectedToggleValue\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isSelected\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"isSelected\"), _class.prototype), _class);\n});","define(\"client/pods/components/files/files-browser/item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"boa9Fh5s\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@addToSelected\\\",\\\"@showPreview\\\",\\\"@file\\\",\\\"@isReadonly\\\",\\\"@tagsList\\\",\\\"@tab\\\",\\\"@onSubmit\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"files__gallery-item-container \\\",[28,\\\"if\\\",[[23,0,[\\\"isSelected\\\",\\\"uuid\\\"]],\\\"quick-template-is-selected\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"files__gallery-item-container-thumbnail\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"files/files-gallery/gallery-item\\\",[],[[\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@file\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@scaleCrop\\\",\\\"@onShowPreview\\\"],[true,true,[23,4,[]],200,200,true,[28,\\\"fn\\\",[[23,3,[]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\",\\\"@tooltipClassName\\\"],[30,[23,4,[\\\"main\\\",\\\"_data\\\",\\\"name\\\"]],\\\"files__gallery-item-container-name\\\"]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"applicationService\\\",\\\"isMobile\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",[28,\\\"fn\\\",[[23,3,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@badge\\\",\\\"@badgeClassNames\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\"],[[28,\\\"count\\\",[[23,4,[\\\"main\\\",\\\"_data\\\",\\\"tags\\\"]]],null],\\\"u-badge--gray\\\",[23,5,[]],\\\"fas fa-tags\\\",[23,6,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"model\\\"],[\\\"uploads\\\",\\\"tag\\\",[23,4,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"uploads/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[false,false,\\\"tags\\\",true]]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"uploads-lists-tags\\\"]],[23,4,[]],true,\\\"_data._key\\\",[23,7,[]],false,\\\"main._data.tags\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@hasToggleIcon\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@badge\\\",\\\"@translate\\\",\\\"@onSubmit\\\",\\\"@toggleIsOn\\\"],[true,true,false,\\\"fas fa-check-circle\\\",\\\"fas fa-check\\\",[23,0,[\\\"isSelected\\\",\\\"index\\\"]],false,[28,\\\"fn\\\",[[23,2,[]]],null],[23,0,[\\\"isSelected\\\",\\\"toggle\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-browser/item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-browser/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TXNYes8H\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"file\\\",\\\"@tagKey\\\",\\\"@onRemove\\\",\\\"@tab\\\",\\\"@onCancel\\\",\\\"@onSubmit\\\",\\\"@alreadyAddedFiles\\\",\\\"@isReadonly\\\",\\\"@isRunning\\\",\\\"@disableFooter\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"uploadsFilters\\\",\\\"currentQuerySubmitted\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"uploadsFilters\\\",\\\"currentQuerySubmitted\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"files-manager__query\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"search\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"uploadsFilters\\\",\\\"currentQuerySubmitted\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,9,[]],[23,10,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,0,[\\\"uploadsFilters\\\"]],true]]]],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/section-container\\\",[[12,\\\"class\\\",\\\"files-manger__content-container flex-container-row flex-container--wrap flex-container--justify-center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"uploadsFilters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"files/files-browser/item\\\",[],[[\\\"@alreadyAddedFiles\\\",\\\"@file\\\",\\\"@filters\\\",\\\"@selectedItemIndexes\\\",\\\"@tagsList\\\",\\\"@isReadonly\\\",\\\"@onSubmit\\\",\\\"@showPreview\\\",\\\"@addToSelected\\\"],[[23,8,[]],[23,2,[]],[23,0,[\\\"uploadsFilters\\\"]],[23,0,[\\\"selectedItemIndexes\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"uploads-lists-tags\\\"]],[23,9,[]],[23,7,[]],[28,\\\"fn\\\",[[23,0,[\\\"showPreview\\\"]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"addToSelected\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"files/files-gallery/gallery-item-modal\\\",[],[[\\\"@allowRemove\\\",\\\"@file\\\",\\\"@onAfterRemove\\\",\\\"@onRemoveTask\\\",\\\"@showPreviewModal\\\",\\\"@maxWidthOrHeight\\\"],[[23,4,[]],[23,0,[\\\"showPreviewModal\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchUploadsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resetUploadToResource\\\"],[false]]]],null],[23,0,[\\\"removeTask\\\"]],[23,0,[\\\"showPreviewModal\\\"]],\\\"3000\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@badge\\\",\\\"@badgeClassNames\\\",\\\"@onClose\\\"],[[22,\\\"isReadonly\\\"],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"uploads-lists-tags\\\"]],[28,\\\"count\\\",[[23,0,[\\\"showPreviewModal\\\",\\\"main\\\",\\\"_data\\\",\\\"tags\\\"]]],null],\\\"u-badge--gray\\\",[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"model\\\"],[\\\"uploads\\\",\\\"tag\\\",[23,0,[\\\"showPreviewModal\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"uploads/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[false,false,\\\"tags\\\",true]]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"uploads-lists-tags\\\"]],[23,0,[\\\"showPreviewModal\\\"]],true,\\\"_data._key\\\",[23,5,[]],false,\\\"_data.tags\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showPreviewModal\\\"]],[23,7,[]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@badge\\\",\\\"@isToggler\\\",\\\"@hasToggleIcon\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleOffIconClassName\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[[28,\\\"get\\\",[[23,0,[\\\"selectedItemIndex\\\"]],[23,0,[\\\"showPreviewModal\\\",\\\"_data\\\",\\\"uuid\\\"]]],null],true,true,false,\\\"fas fa-check\\\",\\\"fas fa-check-circle\\\",[23,0,[\\\"isModalFileSelected\\\",\\\"isSelected\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"addToSelectedAndCloseDialog\\\",[23,0,[\\\"showPreviewModal\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"showPaginationInFooter\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-row\\\",[[12,\\\"class\\\",\\\"layouts__btns-row--center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\"],[[23,0,[\\\"uploadsFilters\\\"]],[23,0,[\\\"uploadsFilters\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showPaginationInFooter\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\"],[[23,0,[\\\"uploadsFilters\\\"]],[23,0,[\\\"uploadsFilters\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@requiresConfirmation\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,[28,\\\"if\\\",[[23,0,[\\\"hasSelectedItems\\\"]],false,true],null],[23,0,[\\\"isRunning\\\"]],\\\"\\\",[28,\\\"perform\\\",[[23,0,[\\\"removeAndRefreshUploadsTask\\\"]],[23,0,[\\\"selectedItems\\\"]]],null]]]],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@list\\\",\\\"@onClose\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,0,[\\\"hasSelectedItems\\\"]],false,true],null],\\\"fas fa-tags\\\",[23,0,[\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"uploads-lists-tags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"additionalData\\\",\\\"allowSubmitWhenEmpty\\\",\\\"appendPath\\\",\\\"model\\\"],[\\\"uploads/batch\\\",[28,\\\"hash\\\",null,[[\\\"tags\\\",\\\"untag\\\"],[[23,0,[\\\"selectedTagKeys\\\"]],[23,0,[\\\"untagSelectedTagKeys\\\"]]]]],[23,0,[\\\"selectedTagKeys\\\"]],\\\"tag\\\",[23,0,[\\\"selectedItems\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"resetSelectedTagKeys\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@hasUnsetToggle\\\",\\\"@isDisabledUnsetToggle\\\",\\\"@isModal\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@unsetToggleLabel\\\",\\\"@unsetToggleLabelTranslate\\\",\\\"@unsetToggleValue\\\",\\\"@valueKey\\\"],[\\\"uploads/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[false,false,\\\"tags\\\",true]]],true,true,true,[28,\\\"if\\\",[[23,0,[\\\"selectedTagKeys\\\"]],false,true],null],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"uploads-lists-tags\\\"]],[23,0,[]],true,\\\"_data._key\\\",[23,5,[]],false,\\\"untag\\\",true,[23,0,[\\\"untagSelectedTagKeys\\\"]],\\\"selectedTagKeys\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isRunning\\\"]],\\\"\\\",[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowUploads\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@value\\\",\\\"@translate\\\",\\\"@defaultLabel\\\"],[true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"uploads-lists-resources\\\"]],[23,0,[\\\"resource\\\"]],true,\\\"upload to folder\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"resource\\\"]],\\\"all\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@value\\\",\\\"@translate\\\",\\\"@defaultLabel\\\"],[true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"resourcesListExcludingAll\\\"]],[23,0,[\\\"uploadToResource\\\"]],true,\\\"upload to folder\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"uploadToResource\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"files/files-uploader\\\",[],[[\\\"@onAfterUpload\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@label\\\",\\\"@tagKey\\\",\\\"@translate\\\",\\\"@autoTriggerUploadWidget\\\",\\\"@tagName\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"onAfterUploadTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resetUploadToResource\\\"],[true]]]],null],[23,0,[\\\"uploadToResource\\\"]],[23,0,[\\\"resourceKey\\\"]],[23,0,[\\\"uploadBtnLabel\\\"]],[23,3,[]],false,true,\\\"span\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"files/files-uploader\\\",[],[[\\\"@onAfterUpload\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@label\\\",\\\"@tagKey\\\",\\\"@translate\\\",\\\"@tagName\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"onAfterUploadTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resetUploadToResource\\\"],[false]]]],null],[23,0,[\\\"resource\\\"]],[23,0,[\\\"resourceKey\\\"]],[23,0,[\\\"uploadBtnLabel\\\"]],[23,3,[]],false,\\\"span\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\",\\\"@badge\\\"],[[28,\\\"if\\\",[[23,0,[\\\"hasSelectedItems\\\"]],false,true],null],false,[23,0,[\\\"isRunning\\\"]],\\\"select images\\\",[28,\\\"perform\\\",[[23,0,[\\\"onSubmitTask\\\"]]],null],\\\"select images\\\",[28,\\\"count\\\",[[23,0,[\\\"selectedItems\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-browser/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-fetcher/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"ramda\"], function (_exports, _emberConcurrency, _crud, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    tagName: 'span',\n    url: 'api/protected/uploads/images',\n    fetchUploadsOnInit: true,\n    fetchUploadsCollectionOnInit: false,\n    page: 1,\n    count: 20,\n    sort: null,\n    adapterName: 'uploads',\n    appendPath: '',\n    uploadsCollection: null,\n    /**\n     * @deprecated\n     */\n    defaultImage: Ember.computed('uploadsCollection._data.uploads.[]', function () {\n      const uploadsCollection = this.uploadsCollection;\n      if (uploadsCollection) {\n        const defaultImage = R.pipe(R.pathOr([], ['_data', 'uploads']), R.filter(R.pathEq(['_data', 'isDefault'], true)), R.view(R.lensPath([0, '_data', 'uuid'])))(uploadsCollection);\n        return defaultImage || uploadsCollection.defaultImage;\n      }\n      return null;\n    }),\n    didInsertTask: (0, _emberConcurrency.task)(function* (resourceKey) {\n      if (this.fetchUploadsOnInit) {\n        this._fetchUploadsTask.perform({\n          resourceKey\n        });\n      }\n      if (this.fetchUploadsCollectionOnInit) {\n        this._fetchUploadsCollectionTask.perform({\n          resourceKey\n        });\n      }\n      this.set('sort', [{\n        by: 'timestampZ',\n        direction: 'DESC'\n      }]);\n    }),\n    _fetchUploadsTask: (0, _emberConcurrency.task)(function* ({\n      resource,\n      resourceKey,\n      adapterName,\n      appendPath,\n      filters = {}\n    } = {}) {\n      let results;\n      if (resourceKey) {\n        if (this.fetchUploads) {\n          results = yield this.fetchUploads(...arguments);\n        } else {\n          resource = resource || this.resource;\n          resourceKey = resourceKey || this.resourceKey;\n          const count = this.count;\n          const page = this.page;\n          const sort = this.sort;\n          const filterData = {\n            count: R.pathOr(count, ['_data', 'count'], filters),\n            page: R.pathOr(page, ['_data', 'page'], filters),\n            sort: R.pathOr(sort, ['_data', 'sort'], filters)\n          };\n          results = yield this.dataManager.get('findAll').perform({\n            resource,\n            resourceKey,\n            adapterName,\n            appendPath,\n            filters: filterData\n          });\n        }\n      }\n      this.set('uploads', results);\n      if (this.onSetImage) {\n        this.onSetImage(results);\n      }\n      return results;\n    }),\n    /**\n     * @deprecated\n     */\n    _fetchUploadsCollectionTask: (0, _emberConcurrency.task)(function* ({\n      resource,\n      resourceKey,\n      adapterName,\n      appendPath,\n      filters\n    } = {}) {\n      if (resourceKey) {\n        this.set('uploadsCollection', '');\n        resource = resource || this.resource;\n        resourceKey = resourceKey || this.resourceKey;\n        adapterName = adapterName || this.adapterName;\n        appendPath = appendPath || this.appendPath;\n        filters = filters || this.filters;\n        let results;\n        if (this.fetchUploads) {\n          results = yield this.fetchUploads(...arguments);\n        } else {\n          const collectionModel = yield this.fetchUploadsTask.perform({\n            resource,\n            resourceKey,\n            adapterName,\n            appendPath,\n            filters\n          });\n          results = R.pathOr([], ['_data', 'uploads'], collectionModel);\n          const uploadsColl = R.over(R.lensPath(['_data', 'uploads']), uploads => {\n            const newUploads = R.filter(R.pathEq(['_data', 'isDefault'], true))(uploads);\n            const isEmpty = R.isEmpty(newUploads);\n            return isEmpty ? uploads : newUploads;\n          })(collectionModel);\n          this.set('uploadsCollection', uploadsColl);\n        }\n        this.set('uploads', results);\n        if (this.onSetImage) {\n          this.onSetImage(results);\n        }\n      }\n    })\n  });\n});","define(\"client/pods/components/files/files-fetcher/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5aCf5SB1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[24,[\\\"didInsertTask\\\"]],[24,[\\\"resourceKey\\\"]]],null]]],[3,\\\"did-update\\\",[[28,\\\"perform\\\",[[24,[\\\"didInsertTask\\\"]],[24,[\\\"resourceKey\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[14,1,[[28,\\\"hash\\\",null,[[\\\"uploadsCollection\\\"],[[24,[\\\"uploadsCollection\\\"]]]]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-fetcher/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-gallery-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA, R_) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 FilesFilesGalleryRowomponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service('uploads'), _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._action, _dec16 = Ember._action, _class = class FilesFilesGalleryRowomponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"server\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uploadsService\", _descriptor7, this);\n      _initializerDefineProperty(this, \"loading\", _descriptor8, this);\n      _initializerDefineProperty(this, \"uploadsCollection\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedResource\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectedFile\", _descriptor11, this);\n      _initializerDefineProperty(this, \"showPreviewModal\", _descriptor12, this);\n      _initializerDefineProperty(this, \"hasFetchedUploads\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isLoaded\", _descriptor14, this);\n      // uploadBtnIcon = R.pathOr('fa-solid fa-plus', ['args', 'insertUploadBtnIcon'])(this)\n      _defineProperty(this, \"indexProp\", this?.args?.indexProp || '_data.index');\n      _defineProperty(this, \"allowShowPreviewModal\", R.pathOr(true, ['args', 'allowShowPreviewModal'])(this));\n      _defineProperty(this, \"adapterName\", 'uploads');\n      // individual model in uploadsCollection._data.uploads\n      _defineProperty(this, \"collectionAdapterName\", 'uploads/collection');\n      // collection model that holds _data.uploads\n      _defineProperty(this, \"filtersAdapterName\", 'uploads/filters');\n      _defineProperty(this, \"finderLabel\", this.args.finderLabel || 'files_manager_tags');\n      this.crud.addLists(this, ['uploads/lists/resources', 'uploads/lists/tags']);\n    }\n    get uploadBtnIcon() {\n      const files = this?.uploadsCollection?.sortedFiles || [];\n      // if (RA.isNilOrEmpty(files)) {\n      return 'far fa-image';\n      // }\n\n      // return 'fa-solid fa-plus'\n    }\n    *didInsertTask() {\n      yield this.fetchUploadsTask.perform({\n        excludeCopies: false,\n        onlyDisplayDefault: this.args.onlyDisplayDefault\n      });\n      this.isLoaded = true;\n    }\n    // get uploadBtnIcon () {\n    //   if (this.hasFetchedUploads) {\n    //     return R.pathOr('fa-regular fa-image', ['args', 'uploadBtnIcon'])(this)\n    //   }\n\n    //   const files = this.files || []\n\n    //   if (files.length <= 0) {\n    //     return R.pathOr('fa-regular fa-image', ['args', 'uploadBtnIcon'])(this)\n    //   }\n\n    //   return R.pathOr('fa-solid fa-plus', ['args', 'insertUploadBtnIcon'])(this)\n    // }\n\n    get transformPreviewDefaults() {\n      const transformPreview = this.args.transformPreview;\n      if (transformPreview) {\n        return transformPreview;\n      }\n      return '/-/resize/x1024/-/format/webp/-/progressive/yes/';\n    }\n    get translate() {\n      return R_.dotPathOr(true, 'args.translate')(this);\n    }\n    get label() {\n      return R_.dotPathOr('upload images', 'args.label')(this);\n    }\n    get isRunning() {\n      return this.loading && this.uploadsCollection || this.fetchUploadsTask.isRunning;\n    }\n    get allowUploads() {\n      const disAllowUploads = R.pathEq(['args', 'allowUploads'], false)(this);\n      if (disAllowUploads) {\n        return false;\n      }\n      const allowMultipleItems = R.pathEq(['args', 'allowMultipleItems'], true)(this);\n      if (allowMultipleItems) {\n        return true;\n      }\n      return true;\n    }\n    get filesBrowserFilter() {\n      return this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          excludeCopies: true,\n          count: 20\n        }\n      });\n    }\n    get defaultFile() {\n      const files = this.uploadsCollection?.sortedFiles || [];\n      const defaultFile = R.find(R.pathEq(['_data', 'isDefault'], true))(files);\n      if (!defaultFile) {\n        return R.path([0])(files);\n      }\n      return defaultFile;\n    }\n    get onlyDisplayDefault() {\n      return R.pathOr(false, ['args', 'onlyDisplayDefault'])(this);\n    }\n    get imageWidth() {\n      return R.pathOr('80', ['args', 'imageWidth'])(this);\n    }\n    get imageHeight() {\n      return R.pathOr('80', ['args', 'imageHeight'])(this);\n    }\n    get allowMultipleItems() {\n      return R.pathOr(true, ['args', 'allowMultipleItems'])(this);\n    }\n    animateLoading() {\n      this.loading = true;\n      setTimeout(() => {\n        this.loading = false;\n      }, 1000);\n    }\n    *afterUploadTask(onCloseDialogActionListBtn = null) {\n      yield this.fetchUploadsTask.perform();\n      if (typeof onCloseDialogActionListBtn === 'function') {\n        onCloseDialogActionListBtn();\n      }\n    }\n    *fetchUploadsTask(options = {}) {\n      if (this?.args?.setImagesToMultipleResourceKey) {\n        // why should be true to allow upload?\n        this.hasFetchedUploads = true;\n        return;\n      }\n      const resourceKey = this.args.resourceKey;\n      if (!this.args.allowEmptyResourceKey && !resourceKey) {\n        this.hasFetchedUploads = true;\n        return;\n      }\n      const {\n        excludeCopies = false,\n        onlyDisplayDefault = false\n      } = options;\n      const collection = yield this.crud.fetchUploadsTask.perform({\n        resource: this.args.resource,\n        resourceKey,\n        adapterName: this.collectionAdapterName,\n        params: {\n          excludeCopies,\n          onlyDisplayDefault,\n          count: 30\n        }\n      });\n      this.uploadsCollection = collection;\n      this.hasFetchedUploads = true;\n    }\n    *onSubmitTask(onCloseDialogAction, options, uploadsModel, data) {\n      const setAsDefaultOnSelect = R.pathOr(false, ['args', 'setAsDefaultOnSelect'])(this);\n      const allowMultipleItems = R.pathOr(false, ['args', 'allowMultipleItems'])(this);\n      if (setAsDefaultOnSelect && !allowMultipleItems) {\n        options = R.mergeRight(options, {\n          removeCopies: true,\n          setAsDefaultOnSelect: true\n        });\n      }\n      if (this?.args?.setImagesToMultipleResourceKey) {\n        const resourceKeys = R.pathOr([], ['args', 'resourceKeys'])(this);\n        options.resourceKeys = resourceKeys;\n      }\n      return yield this.copyImageTask.perform(onCloseDialogAction, options, uploadsModel, data);\n    }\n    *copyImageTask(onCloseDialogAction, options, uploadModels, data) {\n      if (RA.isNilOrEmpty(uploadModels)) {\n        return;\n      }\n\n      // @NOTE: onSubmit knows about uploadModels, if is an array or a single item\n      if (this.args.onSubmit) {\n        return this.args.onSubmit(onCloseDialogAction, options, uploadModels, data);\n      }\n\n      // @NOTE: always ensure uploads is an array. CreateBatch, only accepts arrays\n      uploadModels = RA.ensureArray(uploadModels);\n      this.animateLoading();\n      let resourceKeys = RA.list(this?.args?.resourceKey || '');\n      if (this?.args?.setImagesToMultipleResourceKey) {\n        resourceKeys = options?.resourceKeys || [];\n        delete options.resourceKeys;\n      }\n      const batch = R.pipe(R.map(model => {\n        return R.map(resourceKey => {\n          const data = model.serialize();\n          data.resource = this.args.resource;\n          data.resourceKey = resourceKey;\n          const newModel = this.crud.setupNewRecord({\n            adapterName: this.adapterName,\n            data\n          });\n          const hasOptions = RA.isNotNilOrEmpty(options);\n          if (hasOptions) {\n            R.forEachObjIndexed((value, key) => newModel.setData(key, value))(options);\n          }\n          return newModel;\n        })(resourceKeys);\n      }), R.flatten)(uploadModels);\n      const responseData = yield this.crud.createBatchTask.perform({\n        appendPath: 'batch/copy',\n        adapterName: this.adapterName,\n        batch\n      });\n      R.forEach(upload => {\n        const uploadModel = R.find(R.pathEq(['_data', 'uuid'], upload.uuid))(uploadModels);\n        if (!uploadModel) {\n          return;\n        }\n        uploadModel.set('isSelected', false);\n      })(responseData?.successful);\n      if (responseData?.unsuccessful?.length) {\n        throw new Error('cannot add items', {\n          cause: {\n            errors: responseData?.unsuccessful\n          }\n        });\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *removeUploadsTask({\n      uploads = []\n    }) {\n      const removeAllImagesTasks = R.map(item => this.remove.perform(null, {}, item))(uploads);\n      yield (0, _emberConcurrency.all)(removeAllImagesTasks);\n    }\n    *removeAll(file) {\n      const data = {\n        uuid: file._data.uuid,\n        resource: file._data.resource,\n        resourceKey: file._data.resourceKey\n      };\n      return yield this.server.call('DELETE', 'api/protected/uploads/uploadcare/file', data);\n    }\n    *setAsDefaultImageTask(uploadsModel) {\n      const resource = this.args.resource;\n      const resourceKey = this.args.resourceKey;\n      const options = this.args.options;\n      this.animateLoading();\n      const adapterName = 'uploads';\n      const dirty = this.crud.setupDirty({\n        adapterName,\n        model: uploadsModel\n      });\n      const hasOptions = RA.isNotEmpty(options);\n      if (hasOptions) {\n        R.forEachObjIndexed((value, key) => dirty.setData(key, value))(options);\n      }\n      yield this.crud.updateRecordTask.perform({\n        adapterName,\n        appendPath: '/default',\n        model: dirty\n      });\n      yield this.fetchUploadsTask.perform({\n        onlyDisplayDefault: this.args.onlyDisplayDefault\n      });\n      if (this.args.onAfterSetAsDefaultImageTask) {\n        yield this.args.onAfterSetAsDefaultImageTask.perform({\n          resource,\n          resourceKey,\n          uploadsModel\n        });\n      }\n    }\n    showPreview(file) {\n      if (!this.allowShowPreviewModal) {\n        return;\n      }\n      this.showPreviewModal = true;\n      this.selectedFile = file;\n    }\n    closePreview() {\n      Ember.set(this, 'showPreviewModal', false);\n    }\n\n    // @task\n    // * remove (onCloseDialogAction, options, uploadsModel) {\n    //   yield this.uploadsService.removeTask.perform(onCloseDialogAction, options, uploadsModel)\n    // }\n\n    // @action\n    // async remove (file) {\n    //   const msg = this.intl.t('are you sure you want to delete')\n\n    //   if (window.confirm(msg)) {\n    //     this.set('hasError', false)\n\n    //     const data = {\n    //       uuid: file._data.uuid,\n    //       resource: file._data.resource,\n    //       resourceKey: file._data.resourceKey\n    //     }\n\n    //     try {\n    //       await this.server.call('DELETE', 'api/protected/uploads/uploadcare/file', data)\n    //     } catch (err) {\n    //       this.set('hasError', true)\n    //     }\n    //   }\n    // }\n\n    *reorderDetailsAndUpdateIndexTask(files, detail) {\n      const dragItem = this.dragDetail;\n      const onOverItemIndex = detail.get(this.indexProp);\n      const didReorder = this.dragDropSort.reorderItemsByIndex(files, dragItem, onOverItemIndex, this.indexProp);\n      if (!didReorder) {\n        return;\n      }\n      yield this.crud.ajaxCallTask.perform('PATCH', {\n        adapterName: 'uploads/batch',\n        allowSubmitWhenEmpty: files,\n        appendPath: '/index',\n        model: files\n      });\n      yield this._setNewDefaultFileTask.perform(files);\n    }\n    *onAfterRemoveTask(files, onCloseDialogAction) {\n      yield this._setNewDefaultFileTask.perform(files);\n      onCloseDialogAction();\n    }\n    *_setNewDefaultFileTask(files) {\n      const newDefaultFile = files[0];\n      if (newDefaultFile && newDefaultFile?._data?.isDefault !== true) {\n        yield this.setAsDefaultImageTask.perform(newDefaultFile);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uploadsService\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"loading\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"uploadsCollection\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedResource\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedFile\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"showPreviewModal\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"hasFetchedUploads\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isLoaded\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsertTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterUploadTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"afterUploadTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchUploadsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchUploadsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyImageTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"copyImageTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeUploadsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeUploadsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAll\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setAsDefaultImageTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setAsDefaultImageTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"showPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closePreview\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"closePreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderDetailsAndUpdateIndexTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderDetailsAndUpdateIndexTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAfterRemoveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterRemoveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setNewDefaultFileTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_setNewDefaultFileTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/files/files-gallery-row/gallery-item/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    // classNames: ['files__gallery-item'],\n    hasError: false,\n    onRemove: null,\n    onSetDefault: null,\n    defaultImage: null,\n    confirmationOnRemove: true,\n    removeConfirmationMsg: 'are you sure you want to delete image?',\n    isHover: false,\n    transform: '',\n    allowModal: true,\n    showModal: false,\n    innerFilesGalleryRowClassNames: Ember.computed('galleryItemClassNames', 'file._data.isDefault', function () {\n      const galleryItemClassNames = R.propOr('', 'galleryItemClassNames')(this);\n      let appendClassName = '';\n      if (this?.file?._data?.isDefault) {\n        appendClassName = 'default';\n      }\n      return `${appendClassName} ${galleryItemClassNames}`;\n    })\n  });\n});","define(\"client/pods/components/files/files-gallery-row/gallery-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aCMMhRAU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onClick\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[12,\\\"class\\\",[29,[\\\"files__gallery-item u-tappable \\\",[28,\\\"if\\\",[[24,[\\\"file\\\",\\\"_data\\\",\\\"isDefault\\\"]],\\\"is-default\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,1,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"file\\\",\\\"_data\\\",\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"imageClassNames\\\",\\\"image\\\",\\\"width\\\",\\\"height\\\",\\\"transform\\\",\\\"onSubmit\\\"],[[24,[\\\"innerFilesGalleryRowClassNames\\\"]],[24,[\\\"file\\\",\\\"_data\\\",\\\"uuid\\\"]],[24,[\\\"imageWidth\\\"]],[24,[\\\"imageHeight\\\"]],[24,[\\\"transform\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onShowPreview\\\"]],[24,[\\\"file\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"file\\\",\\\"_data\\\",\\\"originalFilename\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"flex-container-column u-link--text\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[24,[\\\"onShowPreview\\\"]],[24,[\\\"file\\\"]]],null]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"files__icon\\\"],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-file\\\"],[8],[9],[9],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[8],[0,\\\"[\\\"],[1,[24,[\\\"file\\\",\\\"_data\\\",\\\"originalFilename\\\"]],false],[0,\\\"]\\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-gallery-row/gallery-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-gallery-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dRwrNR0j\",\n    \"block\": \"{\\\"symbols\\\":[\\\"file\\\",\\\"onCloseDialogAction\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transformPreview\\\",\\\"@galleryItemClassNames\\\",\\\"@isReadonly\\\",\\\"@allowSrcSet\\\",\\\"@finderLabel\\\",\\\"@hasSelectedItemsLimit\\\",\\\"@options\\\",\\\"@selectedItemsLimit\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"files__gallery-row\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"didInsertTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isLoaded\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"hasFetchedUploads\\\"]],[23,0,[\\\"allowUploads\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@classNames\\\",\\\"@modalDialogTitle\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@translate\\\",\\\"@tooltipLabel\\\",\\\"@label\\\",\\\"@modalDialogContentClassName\\\"],[true,[23,9,[]],\\\"files__gallery-row-upload-btn\\\",\\\"files manager\\\",[23,0,[\\\"uploadBtnIcon\\\"]],[23,0,[\\\"setAsDefaultImageTask\\\",\\\"isRunning\\\"]],false,[28,\\\"tt\\\",[\\\"files manager\\\"],null],\\\"+\\\",\\\"u-overflow-y-hidden-important\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"files-manager/finder\\\",[],[[\\\"@alreadyAddedFiles\\\",\\\"@allowMultipleItems\\\",\\\"@allowSrcSet\\\",\\\"@finderLabel\\\",\\\"@hasSelectedItemsLimit\\\",\\\"@imagesOnly\\\",\\\"@onCloseDialogAction\\\",\\\"@onRemoveTask\\\",\\\"@onSubmitTask\\\",\\\"@options\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@selectedItemsLimit\\\",\\\"@tab\\\"],[[23,0,[\\\"uploadsCollection\\\",\\\"sortedFiles\\\"]],[23,0,[\\\"allowMultipleItems\\\"]],[23,10,[]],[23,11,[]],[23,12,[]],true,[23,2,[]],[23,0,[\\\"uploadsService\\\",\\\"removeTask\\\"]],[23,0,[\\\"onSubmitTask\\\"]],[23,13,[]],[23,5,[]],[23,6,[]],[23,14,[]],[23,15,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"uploadsCollection\\\",\\\"sortedFiles\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"uploadsCollection\\\",\\\"sortedFiles\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@model\\\",\\\"@modelIdPath\\\",\\\"@outerComponent\\\",\\\"@classNames\\\",\\\"@hasDropContainerPlaceholders\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[[23,1,[]],\\\"_data._id\\\",[23,0,[]],\\\"drop-container--easy-drop\\\",true,[23,0,[\\\"dropPosition\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"reorderDetailsAndUpdateIndexTask\\\"]],[23,0,[\\\"uploadsCollection\\\",\\\"sortedFiles\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItemHorizontally\\\"]],[23,0,[]],[23,1,[]],[23,0,[\\\"dragDetail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\"],[true,\\\"has-grip\\\",[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,1,[\\\"_data\\\",\\\"index\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"files/files-gallery-row/gallery-item\\\",[],[[\\\"@galleryItemClassNames\\\",\\\"@file\\\",\\\"@transform\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowSetDefault\\\",\\\"@onClick\\\",\\\"@allowRemove\\\",\\\"@onShowPreview\\\"],[[23,8,[]],[23,1,[]],[23,0,[\\\"transform\\\"]],[23,0,[\\\"imageWidth\\\"]],[23,0,[\\\"imageHeight\\\"]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"showPreview\\\"]],[23,1,[]]],null],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"showPreview\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showPreviewModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"files/files-gallery/gallery-item-modal\\\",[],[[\\\"@showPreviewModal\\\",\\\"@file\\\",\\\"@defaultImage\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@transformPreview\\\",\\\"@onAfterRemove\\\",\\\"@maxWidthOrHeight\\\"],[[28,\\\"mut\\\",[[23,0,[\\\"showPreviewModal\\\"]]],null],[23,0,[\\\"selectedFile\\\"]],[23,0,[\\\"defaultFile\\\",\\\"_data\\\",\\\"uuid\\\"]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"setAsDefaultImageTask\\\"]],[23,7,[]],[28,\\\"perform\\\",[[23,0,[\\\"onAfterRemoveTask\\\"]],[23,0,[\\\"uploadsCollection\\\",\\\"sortedFiles\\\"]]],null],\\\"3000\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-gallery-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-gallery/component\", [\"exports\", \"ramda\", \"ember-concurrency\", \"client/mixins/crud\"], function (_exports, R, _emberConcurrency, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    dragDropSort: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    classNames: ['images-gallery'],\n    url: 'api/protected/uploads/images',\n    fetchUploads: true,\n    hasError: false,\n    onRemove: null,\n    onSetDefault: null,\n    confirmationOnRemove: true,\n    removeConfirmationMsg: 'are you sure you want to delete image?',\n    allowSetDefault: true,\n    allowRemove: true,\n    allowPreview: true,\n    translate: true,\n    defaultImage: null,\n    defaultImageTransfrom: '',\n    defaultImageWidth: '200',\n    defaultImageHeight: '',\n    transform: '',\n    imageWidth: '80',\n    imageHeight: '',\n    allowShowPreviewModal: true,\n    indexProp: '_data.index',\n    dragDetail: Ember._tracked(),\n    dropPosition: Ember._tracked(),\n    innerFilesGalleryRowClassNames: Ember.computed('filesGalleryRowClassNames', function () {\n      const filesGalleryRowClassNames = R.propOr('', 'filesGalleryRowClassNames')(this);\n      return `images-container-items ${filesGalleryRowClassNames}`;\n    }),\n    _showDefaultImagePreview: Ember.computed('showDefaultImagePreview', 'defaultImageFile._data.uuid', function () {\n      if (!this.showDefaultImagePreview) {\n        return false;\n      }\n      return R.path(['defaultImageFile', '_data', 'uuid'])(this) || false;\n    }),\n    // gets the file for the default image.\n    // this is required because default image value may still be there in a model value,\n    // but file may have already been removed from uploadsCollection\n    defaultImageFile: Ember.computed('uploads.@each.synced', function () {\n      const uploads = this.uploads || [];\n      return R.find(R.pathEq(['_data', 'isDefault'], true))(uploads);\n    }),\n    files: Ember.computed('_showDefaultImagePreview', 'uploads.@each.synced', function () {\n      let files = this.uploads || [];\n      const showDefaultImage = this._showDefaultImagePreview;\n      if (showDefaultImage) {\n        files = R.reject(R.pathEq(['_data', 'uuid'], showDefaultImage))(files);\n      }\n      return files;\n    }),\n    documents: Ember.computed('uploads.@each.synced', function () {\n      const uploads = this.uploads || [];\n      return uploads.filterBy('isImage', false);\n    }),\n    async remove(file) {\n      const msg = this.intl.t('are you sure you want to delete');\n      if (window.confirm(msg)) {\n        this.set('hasError', false);\n        const data = {\n          uuid: file._data.uuid,\n          resource: file._data.resource,\n          resourceKey: file._data.resourceKey\n        };\n        try {\n          await this.server.call('DELETE', 'api/protected/uploads/uploadcare/file', data);\n        } catch (err) {\n          this.set('hasError', true);\n        }\n      }\n    },\n    showPreview(file) {\n      if (this.allowShowPreviewModal) {\n        this.set('showPreviewModal', file);\n      }\n    },\n    closePreview() {\n      Ember.set(this, 'showPreviewModal', false);\n    },\n    setAsDefaultImageTask: (0, _emberConcurrency.task)(function* (file) {\n      yield this.onSetAsDefaultImageTask(file);\n      this.closePreview();\n    }),\n    reorderDetailsAndUpdateIndexTask: (0, _emberConcurrency.task)(function* (detail) {\n      const dragItem = this.dragDetail;\n      const onOverItemIndex = detail.get(this.indexProp);\n      const didReorder = this.dragDropSort.reorderItemsByIndex(this.uploads, dragItem, onOverItemIndex, this.indexProp);\n      if (!didReorder) {\n        return;\n      }\n      yield this.crud.ajaxCallTask.perform('PATCH', {\n        adapterName: 'uploads/batch',\n        allowSubmitWhenEmpty: this.uploads,\n        appendPath: '/index',\n        model: this.uploads\n      });\n    })\n  }, _applyDecoratedDescriptor(_obj, \"remove\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"remove\"), _obj), _applyDecoratedDescriptor(_obj, \"showPreview\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"showPreview\"), _obj), _applyDecoratedDescriptor(_obj, \"closePreview\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"closePreview\"), _obj), _obj));\n});","define(\"client/pods/components/files/files-gallery/gallery-item-modal/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    uploadsService: Ember.inject.service('uploads'),\n    tagName: 'span',\n    classNames: [''],\n    hasError: false,\n    onRemove: null,\n    onSetDefault: null,\n    defaultImage: null,\n    confirmationOnRemove: true,\n    removeConfirmationMsg: 'are you sure you want to delete image?',\n    isHover: false,\n    transform: '',\n    allowModal: true,\n    showModal: false,\n    wasSaved: false,\n    closeOnOverlayClick: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['uploads/lists/tags']);\n    },\n    isDefaultImage: Ember.computed('defaultImage', function () {\n      if (this.get('file._data.uuid') === this.defaultImage) {\n        return true;\n      }\n      return false;\n    }),\n    hasModalFooter: Ember.computed('onRemove', 'allowRemove', 'onSetAsDefaultImageTask', 'allowSetDefault', function () {\n      const allowRemove = this.allowRemove;\n      const onSetAsDefaultImageTask = this.onSetAsDefaultImageTask;\n      const allowSetDefault = this.allowSetDefault;\n      if (allowRemove || onSetAsDefaultImageTask && allowSetDefault) {\n        return true;\n      }\n      return false;\n    }),\n    removeTask: (0, _emberConcurrency.task)(function* (file, onCloseDialogAction) {\n      if (this.onRemoveTask) {\n        yield this.onRemoveTask.perform(file);\n      } else {\n        yield this.uploadsService.removeTask.perform(null, null, file);\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      if (this.onAfterRemove) {\n        this.onAfterRemove(onCloseDialogAction);\n      }\n    })\n  });\n});","define(\"client/pods/components/files/files-gallery/gallery-item-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"3xHt4/DK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"&default\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@file\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@transformPreview\\\",\\\"@maxWidthOrHeight\\\",\\\"@onCloseDialogAction\\\",\\\"@showPreviewModal\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@hasModalDialogHeader\\\",\\\"@onClose\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[false,[23,9,[]],[23,10,[]],[23,0,[\\\"closeOnOverlayClick\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,10,[]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"modals/modal-dialog/modal-header\\\",[],[[\\\"@onClose\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"image\\\"],null],false],[0,\\\": \\\"],[1,[23,4,[\\\"main\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRunning\\\",\\\"@onFocusOut\\\",\\\"@placeholder\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"component\\\",\\\"model\\\"],[\\\"uploads\\\",\\\"name\\\",[23,0,[]],[23,4,[\\\"main\\\"]]]]]],null],\\\"image name\\\",[23,4,[\\\"main\\\",\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRunning\\\",\\\"@onFocusOut\\\",\\\"@placeholder\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"component\\\",\\\"model\\\"],[\\\"uploads\\\",\\\"name\\\",[23,0,[]],[23,4,[\\\"main\\\"]]]]]],null],\\\"image alt\\\",[23,4,[\\\"main\\\",\\\"_data\\\",\\\"alt\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/section-container\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-center\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@transform\\\",\\\"@image\\\",\\\"@alt\\\",\\\"@maxWidthOrHeight\\\",\\\"@imgWidth\\\",\\\"@imgHeight\\\"],[[23,7,[]],[23,4,[\\\"_data\\\",\\\"uuid\\\"]],[23,4,[\\\"_data\\\",\\\"alt\\\"]],[23,8,[]],[23,4,[\\\"_data\\\",\\\"imageInfo\\\",\\\"width\\\"]],[23,4,[\\\"_data\\\",\\\"imageInfo\\\",\\\"height\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[1,[23,4,[\\\"_data\\\",\\\"originalFilename\\\"]],false],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"p\\\",true],[8],[1,[23,4,[\\\"_data\\\",\\\"originalFileUrl\\\"]],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"uploads-lists-tags\\\"]],false,[23,4,[\\\"main\\\",\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[1,[28,\\\"bToKb\\\",[[23,4,[\\\"_data\\\",\\\"size\\\"]]],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[1,[23,4,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[1,[28,\\\"dateTime\\\",[[23,4,[\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[23,4,[\\\"_data\\\",\\\"originalFileUrl\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\"],[\\\"view original file\\\"]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasModalFooter\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-trash\\\",[23,0,[\\\"removeTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"removeTask\\\"]],[23,4,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[23,6,[]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,0,[\\\"isDefaultImage\\\"]],true,false],null],[23,3,[\\\"isRunning\\\"]],\\\"set as default\\\",[28,\\\"perform\\\",[[23,3,[]],[23,4,[]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[14,2,[[23,1,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-gallery/gallery-item-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-gallery/gallery-item/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['files__gallery-item'],\n    hasError: false,\n    onRemove: null,\n    onSetDefault: null,\n    defaultImage: null,\n    confirmationOnRemove: true,\n    removeConfirmationMsg: 'are you sure you want to delete image?',\n    isHover: false,\n    transform: '',\n    allowModal: true,\n    showModal: false,\n    innerFilesGalleryRowClassNames: Ember.computed('galleryItemClassNames', 'file._data.isDefault', function () {\n      const galleryItemClassNames = R.propOr('', 'galleryItemClassNames')(this);\n      let appendClassName = '';\n      if (this?.file?._data?.isDefault) {\n        appendClassName = 'default';\n      }\n      return `${appendClassName} ${galleryItemClassNames}`;\n    }),\n    fileTag: Ember.computed('file._data.mimeType', function () {\n      let tags = this.tags || [];\n      const mimeType = this?.file?._data?.mimeType || '';\n      if (R.includes('gif')(mimeType)) {\n        tags.push('GIF');\n      }\n      if (this.tag) {\n        tags.push(this.tag);\n      }\n      return R.join(' | ')(tags);\n    })\n  });\n});","define(\"client/pods/components/files/files-gallery/gallery-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+M4t4C7B\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@file\\\",\\\"@scaleCrop\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"imageClassNames\\\",\\\"image\\\",\\\"width\\\",\\\"height\\\",\\\"transform\\\",\\\"scaleCrop\\\",\\\"onSubmit\\\",\\\"tag\\\"],[[24,[\\\"innerFilesGalleryRowClassNames\\\"]],[23,1,[\\\"_data\\\",\\\"uuid\\\"]],[24,[\\\"imageWidth\\\"]],[24,[\\\"imageHeight\\\"]],[24,[\\\"transform\\\"]],[23,2,[]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onShowPreview\\\"]],[23,1,[]]],null],[23,0,[\\\"fileTag\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"originalFilename\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"flex-container-column u-link--text\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[24,[\\\"onShowPreview\\\"]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"files__icon\\\"],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-file\\\"],[8],[9],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n      [\\\\n        \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[15,[23,1,[\\\"_data\\\",\\\"originalFilename\\\"]]]]],[0,\\\"\\\\n      ]\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-gallery/gallery-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-gallery/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"x5EaGwty\",\n    \"block\": \"{\\\"symbols\\\":[\\\"file\\\",\\\"file\\\",\\\"@transformPreview\\\",\\\"@onAfterRemove\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,5]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,5,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"label\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"isViewable\\\"],[[24,[\\\"_showDefaultImagePreview\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"files/files-gallery/gallery-item\\\",null,[[\\\"allowRemove\\\",\\\"allowSetDefault\\\",\\\"defaultImage\\\",\\\"file\\\",\\\"imageHeight\\\",\\\"imageWidth\\\",\\\"isImage\\\",\\\"onRemove\\\",\\\"onShowPreview\\\",\\\"showPreviewModal\\\",\\\"transform\\\"],[[24,[\\\"allowRemove\\\"]],[24,[\\\"allowSetDefault\\\"]],[24,[\\\"defaultImageFile\\\",\\\"_data\\\",\\\"uuid\\\"]],[24,[\\\"defaultImageFile\\\"]],[24,[\\\"defaultImageHeight\\\"]],[24,[\\\"defaultImageWidth\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"remove\\\"]],[24,[\\\"defaultImageFile\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"showPreview\\\"]]],null],[24,[\\\"showPreviewModal\\\"]],[24,[\\\"defaultImageTransform\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"rowClassNames\\\",\\\"isViewable\\\"],[[24,[\\\"innerFilesGalleryRowClassNames\\\"]],[24,[\\\"files\\\"]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"files\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allowRemove\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@model\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[[23,2,[]],[23,0,[\\\"dropPosition\\\"]],[28,\\\"perform\\\",[[24,[\\\"reorderDetailsAndUpdateIndexTask\\\"]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItemHorizontally\\\"]],[23,0,[]],[23,2,[]],[23,0,[\\\"dragDetail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\"],[true,[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,2,[\\\"_data\\\",\\\"index\\\"]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"files/files-gallery/gallery-item\\\",null,[[\\\"galleryItemClassNames\\\",\\\"file\\\",\\\"transform\\\",\\\"imageWidth\\\",\\\"imageHeight\\\",\\\"defaultImage\\\",\\\"allowSetDefault\\\",\\\"showPreviewModal\\\",\\\"allowRemove\\\",\\\"onShowPreview\\\",\\\"onRemove\\\"],[[24,[\\\"galleryItemClassNames\\\"]],[23,2,[]],[24,[\\\"transform\\\"]],[24,[\\\"imageWidth\\\"]],[24,[\\\"imageHeight\\\"]],[24,[\\\"defaultImageFile\\\",\\\"_data\\\",\\\"uuid\\\"]],[24,[\\\"allowSetDefault\\\"]],[24,[\\\"showPreviewModal\\\"]],[24,[\\\"allowRemove\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"showPreview\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"remove\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"files/files-gallery/gallery-item\\\",null,[[\\\"galleryItemClassNames\\\",\\\"file\\\",\\\"transform\\\",\\\"imageWidth\\\",\\\"imageHeight\\\",\\\"defaultImage\\\",\\\"allowSetDefault\\\",\\\"showPreviewModal\\\",\\\"allowRemove\\\",\\\"onShowPreview\\\",\\\"onRemove\\\"],[[24,[\\\"galleryItemClassNames\\\"]],[23,2,[]],[24,[\\\"transform\\\"]],[24,[\\\"imageWidth\\\"]],[24,[\\\"imageHeight\\\"]],[24,[\\\"defaultImageFile\\\",\\\"_data\\\",\\\"uuid\\\"]],[24,[\\\"allowSetDefault\\\"]],[24,[\\\"showPreviewModal\\\"]],[24,[\\\"allowRemove\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"showPreview\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"remove\\\"]],[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"files\\\"]],[24,[\\\"defaultImageFile\\\",\\\"_data\\\",\\\"uuid\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[\\\"u-no-image u-no-image__large\\\",\\\"far fa-image\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"isViewable\\\"],[[24,[\\\"documents\\\"]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"documents\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"files/files-gallery/gallery-item\\\",null,[[\\\"file\\\",\\\"transform\\\",\\\"imageWidth\\\",\\\"imageHeight\\\",\\\"defaultImage\\\",\\\"allowSetDefault\\\",\\\"showPreviewModal\\\",\\\"allowRemove\\\",\\\"onShowPreview\\\",\\\"onRemove\\\"],[[23,1,[]],[24,[\\\"transform\\\"]],[24,[\\\"imageWidth\\\"]],[24,[\\\"imageHeight\\\"]],[24,[\\\"defaultImageFile\\\",\\\"_data\\\",\\\"uuid\\\"]],[24,[\\\"allowSetDefault\\\"]],[24,[\\\"showPreviewModal\\\"]],[24,[\\\"allowRemove\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"showPreview\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"remove\\\"]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showPreviewModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"files/files-gallery/gallery-item-modal\\\",null,[[\\\"showPreviewModal\\\",\\\"file\\\",\\\"defaultImage\\\",\\\"allowRemove\\\",\\\"onAfterRemove\\\",\\\"allowSetDefault\\\",\\\"onSetAsDefaultImageTask\\\",\\\"transformPreview\\\"],[[28,\\\"mut\\\",[[23,0,[\\\"showPreviewModal\\\"]]],null],[24,[\\\"showPreviewModal\\\"]],[24,[\\\"defaultImageFile\\\",\\\"_data\\\",\\\"uuid\\\"]],[24,[\\\"allowRemove\\\"]],[23,4,[]],[24,[\\\"allowSetDefault\\\"]],[24,[\\\"setAsDefaultImageTask\\\"]],[23,3,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"isViewable\\\"],[[24,[\\\"hasErrors\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"hasError\\\",\\\"msg\\\"],[[24,[\\\"hasErrors\\\"]],\\\"error occurred please try again later\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-gallery/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/files-uploader/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'span',\n    name: 'content',\n    label: 'upload files',\n    translate: true,\n    uploadcare: Ember.inject.service(),\n    resource: '',\n    resourceKey: '',\n    // settings\n    multiple: true,\n    multipleMax: '',\n    multipleMin: '',\n    imagesOnly: false,\n    previewStep: false,\n    crop: false,\n    imageShrink: '',\n    clearable: false,\n    // should always be false as no way to hook into \"remove\" function of widget\n    tabs: 'file url',\n    didReceiveAttrs() {\n      // @TODO: this will be called twice!\n      // @TODO: once on init, and another time when resourceKey is available\n\n      this._super(...arguments);\n      this.createWidgetSingleton();\n    },\n    createWidgetSingleton() {\n      const self = this;\n      self.set('isUpdatingServer', false);\n      self.set('widgets', []);\n      // self.set('error', '');\n\n      if (self.get('resourceKey') && self.get('resource')) {\n        self.get('widgets').pushObject(Ember.Object.create({\n          component: 'files/uploadcare-widget'\n        }));\n      }\n    },\n    updateServerTask: (0, _emberConcurrency.task)(function* (info) {\n      const self = this;\n      const resource = this.resource;\n      const resourceKey = this.resourceKey;\n      self.set('isUpdatingServer', true);\n      try {\n        if (this.tagKey) {\n          info.tags = [this.tagKey];\n        }\n        let response;\n        if (self.get('multiple')) {\n          response = yield self.get('uploadcare').updateFileGroupToServer(resource, resourceKey, info);\n        } else {\n          response = yield self.get('uploadcare').updateFileToServer(resource, resourceKey, info);\n        }\n        const uploadedFiles = response?.data?.documents || [];\n        const onAfterUpload = self.get('onAfterUpload');\n        if (onAfterUpload) {\n          yield onAfterUpload({\n            resource,\n            resourceKey,\n            file: info,\n            uploadedFiles\n          });\n        }\n        if (!self.get('isDestroyed')) {\n          self.set('error', '');\n          self.createWidgetSingleton();\n        }\n        self.set('isUpdatingServer', false);\n      } catch (e) {\n        self.set('error', 'error occurred please try again later');\n        self.createWidgetSingleton();\n      }\n    })\n\n    // actions: {\n\n    //   updateServer (info) {\n    //     // @TODO: handle single uploads\n\n    //   }\n    // }\n  });\n});","define(\"client/pods/components/files/files-uploader/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qiBIC1nL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"widget\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isUpdatingServer\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"uploading please wait\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"widgets\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"cdnBase\\\",\\\"clearable\\\",\\\"crop\\\",\\\"icon\\\",\\\"imageShrink\\\",\\\"imagesOnly\\\",\\\"label\\\",\\\"multiple\\\",\\\"multipleMax\\\",\\\"multipleMin\\\",\\\"name\\\",\\\"onUpdateServer\\\",\\\"previewStep\\\",\\\"publicKey\\\",\\\"translate\\\",\\\"resource\\\",\\\"resourceKey\\\",\\\"secureExpire\\\",\\\"secureSignature\\\",\\\"tabs\\\",\\\"autoTriggerUploadWidget\\\"],[[24,[\\\"cdnBase\\\"]],[24,[\\\"clearable\\\"]],[24,[\\\"crop\\\"]],\\\"fas fa-upload\\\",[24,[\\\"imageShrink\\\"]],[24,[\\\"imagesOnly\\\"]],[24,[\\\"label\\\"]],[24,[\\\"multiple\\\"]],[24,[\\\"multipleMax\\\"]],[24,[\\\"multipleMin\\\"]],[24,[\\\"name\\\"]],[28,\\\"perform\\\",[[24,[\\\"updateServerTask\\\"]]],null],[24,[\\\"previewStep\\\"]],[24,[\\\"publicKey\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],[23,0,[\\\"uploadcare\\\",\\\"secureExpire\\\"]],[23,0,[\\\"uploadcare\\\",\\\"secureSignature\\\"]],[24,[\\\"tabs\\\"]],[24,[\\\"autoTriggerUploadWidget\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"hasError\\\",\\\"msg\\\"],[[24,[\\\"error\\\"]],[24,[\\\"error\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/files-uploader/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/image-item/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    transform: '',\n    width: '',\n    height: '',\n    showNotFound: false,\n    uploadcareService: Ember.inject.service('uploadcare'),\n    src: Ember.computed('image', '_transform', function () {\n      return this.uploadcareService.getFileUrl(this.image, this._transform);\n    }),\n    showImage: Ember.computed('showNotFound', 'image', function () {\n      if (!this.showNotFound && !this.image) {\n        return false;\n      }\n      return true;\n    }),\n    _transform: Ember.computed('transform', 'width', 'height', function () {\n      if (this.transform) {\n        return this.transform;\n      }\n      if (this.maxWidthOrHeight) {\n        let imgWidth = Number(this.imgWidth) || 0;\n        let imgHeight = Number(this.imgHeight) || 0;\n        if (imgWidth > imgHeight) {\n          if (imgWidth > Number(this.maxWidthOrHeight)) {\n            imgWidth = Number(this.maxWidthOrHeight);\n          }\n          return `/-/resize/${imgWidth}x`;\n        }\n        if (imgHeight > Number(this.maxWidthOrHeight)) {\n          imgHeight = Number(this.maxWidthOrHeight);\n        }\n        return `/-/resize/x${imgHeight}`;\n      }\n      let width = this.width || '';\n      if (width === 'auto') {\n        width = '';\n      }\n      let height = this.height || '';\n      if (height === 'auto') {\n        height = '';\n      }\n      const scaleCrop = this.scaleCrop;\n      if (width && height && scaleCrop) {\n        return `/-/scale_crop/${width}x${height}/smart`;\n      }\n      if (width || height) {\n        return `/-/resize/${width}x${height}`;\n      }\n      return '';\n    }),\n    actions: {\n      onSubmit() {\n        if (this.onSubmit) {\n          return this.onSubmit();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/files/image-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"x2tPKgbc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tag\\\",\\\"@imageClassNames\\\",\\\"@alt\\\",\\\"&attrs\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"showImage\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"files__image-item-container \\\",[23,2,[]]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"img\\\",false],[12,\\\"loading\\\",\\\"lazy\\\"],[12,\\\"class\\\",\\\"files__image-item\\\"],[12,\\\"src\\\",[23,0,[\\\"src\\\"]]],[12,\\\"alt\\\",[23,3,[]]],[13,4],[3,\\\"action\\\",[[23,0,[]],\\\"onSubmit\\\"]],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"files__image-item-tag\\\"],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/image-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/images-uploader/component\", [\"exports\", \"ramda\", \"client/utils/nventor\"], function (_exports, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    label: 'upload',\n    classNames: ['images-uploader'],\n    url: 'api/protected/uploads/images',\n    hasErrors: false,\n    invalidImageError: 'invalid image type',\n    generalError: 'error occurred please try again later',\n    error: '',\n    showProgress: false,\n    // set to true to show progress bar\n    // files: [], // successfully uploaded file names\n    // uploads: [], // files to upload\n    onUploaded: null,\n    // external action to handle uploading\n    percentage: 0,\n    subResourcePath: '',\n    // firebase: service(),\n\n    init() {\n      this._super(...arguments);\n\n      // if files is not an array throw an error\n      if (!R.is(Array, this.files)) {\n        this.set('files', []);\n        // return nventor.throw('Images-uploader.files is not an array');\n      }\n    },\n    /**\n     * keep track of upload progress percentage\n     */\n    progress: Ember.computed('percentage', function () {\n      const percentage = this.percentage;\n      return percentage + '%';\n    }),\n    getUploadPath(fileName) {\n      const self = this;\n      const tokenData = self.get('storage').get('tokenData');\n      const podKey = tokenData.pod;\n      const random = _nventor.default.random.alphaNum(10);\n      fileName = `${random}-${fileName}`;\n      const subResourcePath = this.subResourcePath;\n      if (subResourcePath) {\n        return `pods/${podKey}/${subResourcePath}/${fileName}`;\n      }\n      return `pods/${podKey}/${fileName}`;\n    },\n    actions: {\n      /**\n       * handle file changes, when user finished selecting files\n       */\n      uploadsChanged(e, uploads) {\n        if (uploads) {\n          const file = uploads[0];\n          if (file) {\n            const formData = new FormData();\n            formData.append('file', file);\n            this.server.postFormData('api/protected/websites/pages/upload', formData);\n          }\n        }\n      },\n      /**\n       * triggers hidden images uploader input when clicking on upload btn\n       */\n      selectUploads() {\n        // trigger hidden upload input\n        this.$('.files-uploader__input').click();\n      }\n    }\n  });\n});","define(\"client/pods/components/files/images-uploader/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ndp0tk60\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"images-uploader__btn\\\",[24,[\\\"label\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectUploads\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"elements/element-inputfile\\\",null,[[\\\"classNames\\\",\\\"onChange\\\"],[\\\"files-uploader__input\\\",[28,\\\"action\\\",[[23,0,[]],\\\"uploadsChanged\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"images-uploader__progress-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"images-uploader__progress-bar\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"hasError\\\",\\\"msg\\\"],[[24,[\\\"hasErrors\\\"]],[24,[\\\"error\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/images-uploader/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/import-btn/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../../utils/nventor'\n  var _default = _exports.default = Ember.Component.extend({\n    excel: Ember.inject.service(),\n    tagName: 'div',\n    label: 'import',\n    generalError: 'error occurred please try again later',\n    showProgress: false,\n    // set to true to show progress bar\n    onUploaded: null,\n    // external action to handle uploading\n    percentage: 0,\n    subResourcePath: '',\n    init() {\n      this._super(...arguments);\n      const formats = {\n        csv: ['.csv', 'text/csv'],\n        xls: ['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.ms-excel']\n      };\n      this.set('formats', formats);\n    },\n    /**\n     * keep track of upload progress percentage\n     */\n    progress: Ember.computed('percentage', function () {\n      const percentage = this.percentage;\n      return percentage + '%';\n    }),\n    acceptedFormats: Ember.computed('accept', 'formats.[]', 'filetypes.[]', function () {\n      let accept = this.accept || [];\n      const formats = this.formats || {};\n      if (!R.is(Array, accept)) {\n        accept = [accept];\n      }\n      return R.pipe(R.map(filetype => {\n        if (formats[filetype]) {\n          return formats[filetype];\n        }\n        if (formats[`.${filetype}`]) {\n          return formats[filetype];\n        }\n        return filetype;\n      }), R.flatten, R.join(', '))(accept);\n    }),\n    actions: {\n      /**\n       * handle file changes, when user finished selecting files\n       */\n      async uploadsChanged(e, uploads) {\n        try {\n          if (uploads) {\n            const file = uploads[0];\n            const results = await this.excel.readFile(file);\n            this.set('selectedFiles', '');\n            if (this.onUploadsChanged) {\n              this.set('results', results);\n              this.set('hasResults', RA.isNotNilOrEmpty(results));\n              return this.onUploadsChanged(results);\n            }\n          }\n        } catch (e) {\n          this.set('errors', e);\n        }\n      },\n      /**\n       * triggers hidden images uploader input when clicking on upload btn\n       */\n      selectUploads() {\n        if (this.onPreSubmit) {\n          this.onPreSubmit();\n        }\n        // trigger hidden upload input\n        if (!this.multiple) {\n          this.set('selectedFiles', '');\n        }\n        this.$('.files-uploader__input').click();\n      }\n    }\n  });\n});","define(\"client/pods/components/files/import-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oZ5EJzU1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"images-uploader__btn\\\",[24,[\\\"label\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectUploads\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"elements/element-inputfile\\\",null,[[\\\"classNames\\\",\\\"multiple\\\",\\\"accept\\\",\\\"onChange\\\",\\\"value\\\"],[\\\"files-uploader__input\\\",[24,[\\\"multiple\\\"]],[24,[\\\"acceptedFormats\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"uploadsChanged\\\"],null],[24,[\\\"selectedFiles\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showProgress\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"images-uploader__progress-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"images-uploader__progress-bar\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"msg\\\"],[[24,[\\\"errors\\\"]],[24,[\\\"error\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[25,1],[23,0,[\\\"hasResults\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,1,[[23,0,[\\\"hasResults\\\"]],[23,0,[\\\"results\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/import-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/search-bar/component\", [\"exports\", \"ramda\", \"client/mixins/products-list-by\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, R, _productsListBy, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _productsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    query: '',\n    filters: null,\n    autofocus: true,\n    adapterName: 'uploads',\n    searchMethod: 'searchInputTask',\n    searchOptions: null,\n    // init () {\n    //   this.crud.addLists(this, [\n    //     'products/lists/filters/search',\n    //     'products/lists/filters/sort',\n    //     'products/lists/filters/status',\n    //     'products/lists/types',\n    //     'filters/count',\n    //     'filters/sortDirection'\n    //   ])\n    //   this._super(...arguments)\n    // },\n\n    searchTask: (0, _emberConcurrency.task)(function* (customSearchOptions, defaultSearchOptions, ...rest) {\n      const searchMethod = this.searchMethod;\n      const searchOptions = R.mergeRight(defaultSearchOptions, customSearchOptions);\n      return yield this.get(searchMethod).perform(searchOptions, ...rest);\n    })\n  });\n});","define(\"client/pods/components/files/search-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bKA0FBoL\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"placeholder\\\",\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"autofocus\\\"]],\\\"search\\\",[24,[\\\"query\\\"]],[28,\\\"or\\\",[[24,[\\\"searchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"searchTask\\\"]],[24,[\\\"searchOptions\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"resultsToggle\\\",\\\"filters\\\"],[[24,[\\\"query\\\"]],\\\"resultsToggle\\\",[24,[\\\"filters\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/search-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/files/uploadcare-widget/component\", [\"exports\", \"ember-concurrency-decorators\", \"jquery\"], function (_exports, _emberConcurrencyDecorators, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    tagName: 'span',\n    classNames: 'images-uploader',\n    name: 'content',\n    label: 'upload files',\n    resource: '',\n    resourceKey: '',\n    uploadcare: Ember.inject.service(),\n    // settings\n    multiple: true,\n    multipleMax: '',\n    multipleMin: '',\n    imagesOnly: true,\n    previewStep: false,\n    crop: false,\n    imageShrink: '',\n    clearable: false,\n    // should always be false as no way to hook into \"remove\" function of widget\n    tabs: 'file url',\n    secureSignature: '',\n    secureExpire: '',\n    cdnBase: 'https://ucarecdn.com/',\n    minSize: 0,\n    maxSize: 10 * 1024 * 1024,\n    // 10Mb\n    didFetchSecureToken: false,\n    autoTriggerUploadWidget: false,\n    didInsertElement() {\n      const self = this;\n      self._super(...arguments);\n      self.setupTask.perform();\n    },\n    fileSizeLimit(min, max) {\n      return function (fileInfo) {\n        if (fileInfo.size === null) {\n          return;\n        }\n        if (min && fileInfo.size < min) {\n          throw new Error('fileMinimalSize');\n        }\n        if (max && fileInfo.size > max) {\n          throw new Error('fileMaximumSize');\n        }\n      };\n    },\n    maxImageDimensions() {\n      return function (fileInfo) {\n        if (fileInfo.mimeType === null || fileInfo.isImage === null) {\n          return;\n        }\n        const isImageMimeType = fileInfo.mimeType.match(/^image\\//);\n        if (isImageMimeType && !fileInfo.isImage) {\n          throw new Error('maxDimensions');\n        }\n      };\n    },\n    *setupTask() {\n      yield this.uploadcare.getSecureTokenTask.perform();\n      this.set('didFetchSecureToken', true);\n      if (this.autoTriggerUploadWidget === true) {\n        setTimeout(() => {\n          this.triggerUploadBtn();\n        }, 250);\n      }\n    },\n    initWidget() {\n      const self = this;\n      self.set('error', '');\n      if (!self.get('resourceKey') || !self.get('resource')) {\n        return;\n      }\n      const widget = self.get('uploadcare').getUc().initialize((0, _jquery.default)(this.element))[0];\n      widget.validators.push(this.maxImageDimensions());\n      self.set('widget', widget);\n      const onUploadHandler = function (info) {\n        self.updateServer(info);\n        widget.onUploadComplete.remove(this);\n      };\n      self.set('onUploadHandler', onUploadHandler);\n      widget.onUploadComplete(onUploadHandler);\n    },\n    updateServer(info) {\n      return this.onUpdateServer(info);\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        if (this.widget) {\n          this.widget.onUploadComplete.remove(this.onUploadHandler);\n        }\n      }\n    },\n    triggerUploadBtn() {\n      (0, _jquery.default)(this.element).find('.uploadcare--widget__button_type_open').click();\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"setupTask\"), _obj), _applyDecoratedDescriptor(_obj, \"initWidget\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"initWidget\"), _obj), _applyDecoratedDescriptor(_obj, \"triggerUploadBtn\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"triggerUploadBtn\"), _obj), _obj));\n});","define(\"client/pods/components/files/uploadcare-widget/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Jh90iRbx\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"not\\\",[[23,0,[\\\"didFetchSecureToken\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"input\\\",false],[12,\\\"role\\\",\\\"uploadcare-uploader\\\"],[12,\\\"name\\\",[22,\\\"name\\\"]],[12,\\\"data-public-key\\\",[22,\\\"publicKey\\\"]],[12,\\\"data-multiple\\\",[22,\\\"multiple\\\"]],[12,\\\"data-multiple-max\\\",[22,\\\"multipleMax\\\"]],[12,\\\"data-multiple-min\\\",[22,\\\"multipleMin\\\"]],[12,\\\"data-images-only\\\",[22,\\\"imagesOnly\\\"]],[12,\\\"data-preview-step\\\",\\\"false\\\"],[12,\\\"data-crop\\\",[22,\\\"crop\\\"]],[12,\\\"data-image-shrink\\\",[22,\\\"imageShrink\\\"]],[12,\\\"data-clearable\\\",[22,\\\"clearable\\\"]],[12,\\\"data-secure-signature\\\",[23,0,[\\\"uploadcare\\\",\\\"secureSignature\\\"]]],[12,\\\"data-secure-expire\\\",[23,0,[\\\"uploadcare\\\",\\\"secureExpire\\\"]]],[12,\\\"data-tabs\\\",[22,\\\"tabs\\\"]],[12,\\\"type\\\",\\\"hidden\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"initWidget\\\"]]]],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"icon\\\",\\\"onSubmit\\\"],[[24,[\\\"label\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"icon\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"triggerUploadBtn\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/files/uploadcare-widget/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/filters/save-btn/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 FiltersSaveBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _class = class FiltersSaveBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      this.reset();\n    }\n    get label() {\n      return this.args.label || 'save this search';\n    }\n    reset() {\n      const filters = this.args.filters;\n      filters.setData('label', '');\n    }\n    willDestroyElement() {\n      const filters = this.args.filters;\n      filters.setData('label', '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"reset\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"reset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"willDestroyElement\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroyElement\"), _class.prototype), _class);\n});","define(\"client/pods/components/filters/save-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jecWHfBB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@label\\\",\\\"@filters\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@modalDialogTitle\\\",\\\"@modalSize\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"label\\\"]],\\\"far fa-star\\\",[28,\\\"if\\\",[[23,2,[]],\\\"\\\",\\\"save this search\\\"],null],\\\"save this search\\\",\\\"small\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"reset\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[[3,\\\"will-destroy\\\",[[23,0,[\\\"willDestroyElement\\\"]]]]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"label\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@value\\\"],[true,[23,3,[\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"search\\\",\\\"saveFiltersTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"label\\\"]],false,true],null],[23,0,[\\\"search\\\",\\\"saveFiltersTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"search\\\",\\\"saveFiltersTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onCloseDialogAction\\\"],[[23,3,[]],[23,1,[]]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/filters/save-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flow-payload-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, R, RA, R_) {\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;\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 FlowsFlowPayloadEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember.computed('args.flowPayloadSteps.@each.synced'), _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _class = class FlowsFlowPayloadEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"model\", _descriptor2, this);\n      this.crud.addLists(this, ['flows/lists/dataKeys']);\n    }\n    get translateDataKeysList() {\n      const dataKeys = R_.dotPathOr([], 'crud.lists.flows-lists-dataKeys')(this);\n      return R.pipe(R.reject(R.pathEq(['_data', 'value'], 'custom')), R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('value'), R.reject(RA.isNilOrEmpty))(dataKeys);\n    }\n    get isTextAreaKeysList() {\n      const flowPayloadSteps = this.args.flowPayloadSteps || [];\n      return R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.filter(R.propEq('isTextArea', true)), R.pluck('key'), R.reject(RA.isNilOrEmpty))(flowPayloadSteps);\n    }\n    createModel() {\n      const isEditing = this.args.isEditing;\n      if (isEditing) {\n        const model = this.args.model || {};\n        const dirty = this.crud.setupDirty({\n          adapterName: 'flows/data',\n          model\n        });\n        const flowPayload = dirty.getData('flowPayload') || {};\n        const flowPayloadSteps = this.args.flowPayloadSteps || [];\n        const toMerge = R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.reject(R.propEq('dataKey', '')), R.pluck('key'), keys => {\n          const keysObject = {};\n          R.forEach(key => {\n            keysObject[key] = '';\n          })(keys);\n          return keysObject;\n        })(flowPayloadSteps);\n        const newFlowPayload = R.mergeLeft(flowPayload, toMerge);\n        dirty.setData('flowPayload', newFlowPayload);\n        this.model = dirty;\n      } else {\n        const model = this.crud.setupNewRecord({\n          adapterName: 'flows/data',\n          data: {}\n        });\n        this.model = model;\n      }\n    }\n    setFlowPayload(key, value) {\n      const flowModel = this.model;\n      const flowPayload = flowModel.getData('flowPayload');\n      flowPayload[key] = value;\n      flowModel.setData('flowPayload', flowPayload);\n    }\n    cancel(dirty, onCloseDialogAction) {\n      if (this.args.isEditing) {\n        this.crud.cancelEditing({\n          adapterName: 'flows/data',\n          dirty\n        });\n        this.showEditor = false;\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isTextAreaKeysList\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"isTextAreaKeysList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createModel\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"createModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setFlowPayload\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setFlowPayload\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/flow-payload-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6gufMH0O\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"value\\\",\\\"key\\\",\\\"@isEditing\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@onClose\\\",\\\"@hasSectionWrapper\\\"],[\\\"edit\\\",[28,\\\"if\\\",[[23,4,[]],\\\"fas fa-pen\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"createModel\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,5,[]]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"flowPayload\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[23,3,[]],[28,\\\"contains\\\",[[23,3,[]],[23,0,[\\\"translateDataKeysList\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"contains\\\",[[23,3,[]],[23,0,[\\\"isTextAreaKeysList\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@value\\\",\\\"@rows\\\",\\\"@onInput\\\"],[[23,2,[]],2,[28,\\\"fn\\\",[[23,0,[\\\"setFlowPayload\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@onInput\\\"],[[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"setFlowPayload\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[\\\"fas fa-trash\\\",[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"flows/data\\\",[23,0,[\\\"model\\\"]],true,[23,1,[]]]]]],null],true]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-btn--cancel\\\",\\\"cancel\\\",[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,0,[\\\"model\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[\\\"flows/data\\\",[23,0,[\\\"model\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flow-payload-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"@glimmer/component\", \"client/utils/nventor\"], function (_exports, R, R_, _component, _nventor) {\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 FlowsFlowEditorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _class = class FlowsFlowEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"toEditSteps\", _descriptor4, this);\n      this.crud.addLists(this, ['dataTypes', 'flows/lists/dataKeys', 'flows/lists/flowKeyTypes', 'flows/lists/editorSubPanels', 'flows/lists/events', 'flows/lists/eventsDisplay', 'flows/lists/steps/presets', 'flows/lists/steps/types', 'flows/lists/types', 'statuses']);\n    }\n    get editorSubPanels() {\n      const editorSubPanels = R_.dotPath('crud.lists.flows-lists-editorSubPanels')(this) || [];\n      if (!this.args.isDisplay) {\n        return R.reject(R.pathEq(['_data', 'isDisplayOnly'], true))(editorSubPanels);\n      }\n      return editorSubPanels;\n    }\n    get isReadonly() {\n      if (this.args.isEditing || this.args.isNew) {\n        return false;\n      }\n      return true;\n    }\n    get disabled() {\n      return this.isReadonly;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"toEditSteps\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/flows/flows-editor/data-display/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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  // import * as R from 'ramda'\n  let FlowsFlowEditorDataDisplayComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class FlowsFlowEditorDataDisplayComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor3, this);\n      const flowKey = this.args.model?._data?._key;\n      const filters = this.search.setupFilters({\n        adapterName: 'flows/data/filters',\n        defaultFiltersData: {\n          flowKey\n        }\n      });\n      this.filters = filters;\n      if (flowKey) {\n        this.getFlowCapturedData.perform();\n      }\n    }\n    *getFlowCapturedData() {\n      const filters = this.filters;\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: 'flows/data',\n        filters\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getFlowCapturedData\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getFlowCapturedData\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/flows-editor/data-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"U1UJAN6Q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@onPaginationTask\\\",\\\"@paginationIsFooter\\\",\\\"@isRunning\\\",\\\"@tableViewOptions\\\"],[\\\"flows/table-view/data-detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],false,[23,0,[\\\"getFlowCapturedData\\\",\\\"isRunning\\\"]],[28,\\\"hash\\\",null,[[\\\"flow\\\"],[[23,1,[]]]]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/data-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/main-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _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 FlowsFlowEditorDetailsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('channels/shop/campaigns'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember.computed('args.model.isForm', 'crud.lists.flows-lists-flow-key-types.[]'), _dec0 = Ember.computed('args.model._data.type'), _dec1 = Ember.computed('selectedType', 'crud.lists.flows-lists-steps-presets.[]'), _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember.computed('args.model._data.type', 'crud.lists.flows-lists-eventsDisplay.[]'), _class = class FlowsFlowEditorDetailsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"toEditSteps\", _descriptor4, this);\n      _initializerDefineProperty(this, \"toEditStepsTypeLabel\", _descriptor5, this);\n      _initializerDefineProperty(this, \"toEditStepsIsVisible\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedType\", _descriptor7, this);\n      _initializerDefineProperty(this, \"stepsPresetsData\", _descriptor8, this);\n      const filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {}\n      });\n      this.filters = filters;\n      this.crud.addLists(this, ['flows/lists/steps/presets', 'flows/lists/flow-key-types', 'times/seconds-recommended']);\n      this.fetchShopOrWebsitesListTask.perform();\n    }\n    get flowKeyTypesList() {\n      const flowKeyTypes = this.crud.lists['flows-lists-flow-key-types'] || [];\n      const model = this?.args?.model;\n      if (model?.isForm) {\n        const websiteType = R.find(type => {\n          const value = R.pathOr('', ['_data', 'value'])(type);\n          return R.propEq('website', value);\n        })(flowKeyTypes);\n        return [websiteType] || [];\n      }\n      return flowKeyTypes;\n    }\n    get hasSuccessfulEmail() {\n      const model = this.args.model;\n      const hasSuccessfulEmailTypes = ['bot', 'form'];\n      const type = model?._data?.type;\n      return R.includes(type)(hasSuccessfulEmailTypes);\n    }\n    // afterLoadLists () {\n    //   this.getFlowsListsStepsPresetsData()\n    // }\n\n    // async getFlowsListsStepsPresetsData () {\n    //   try {\n    //     this.stepsPresetsData = this.crud.lists['flows-lists-steps-presets'] || []\n    //   } catch (error) {\n    //     console.error('Error fetching data:', error)\n    //   }\n    // }\n\n    get flowsListsStepsPresetsOptions() {\n      const stepsPresetsData = this.crud.lists['flows-lists-steps-presets'] || [];\n      if (this.selectedType === 'form') {\n        const allowedStepTypes = ['text', 'replyText', 'replyChoices'];\n        return R.filter(stepData => {\n          const value = stepData?._data?.value;\n          return R.includes(value)(allowedStepTypes);\n        })(stepsPresetsData);\n      }\n      return stepsPresetsData;\n    }\n    *fetchShopOrWebsitesListTask() {\n      const model = this?.args?.model || {};\n      const filters = this?.filters || {};\n      if (RA.isNotNilOrEmpty(model) && RA.isNotNilOrEmpty(filters)) {\n        const flowKeyType = model.getData('flowKeyType') || '';\n        if (R.equals(flowKeyType, 'shop')) {\n          yield this.campaignsService.searchInputTask.perform({\n            query: '',\n            filters,\n            adapterName: 'channels/shop/campaigns',\n            component: this\n          });\n        } else {\n          yield this.campaignsService.searchInputTask.perform({\n            query: '',\n            filters,\n            adapterName: 'websites',\n            component: this\n          });\n        }\n      }\n    }\n    updateScrollingMessageLink(updatedValue) {\n      const model = this.args?.model;\n      model.setData('scrollingMessageLink', updatedValue);\n    }\n    setupNewSteps(typeModel, onHideDropdown) {\n      const steps = typeModel.getData('steps') || [];\n      const model = this.args.model;\n      this.toEditSteps = model.setupNewSteps(typeModel, steps);\n      this.toEditStepsTypeLabel = typeModel.getData('label');\n      this.toEditStepsIsVisible = true;\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    }\n\n    // set for step in form\n    setupNewStepsInFormStep(typeModel, formStep, onHideDropdown) {\n      const model = this.args?.model;\n      const steps = typeModel.getData('steps') || [];\n      model.setupNewStepsInFormStep(typeModel, steps, formStep);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    }\n\n    // @action\n    // resetEmailsSendOnlyIfHasResults () {\n    //   const model = this?.args?.model || {}\n    //   if (RA.isNotNilOrEmpty(model)) {\n    //     model.setData('emailsSendOnlyIfHasResults', false)\n    //   }\n    // }\n\n    resetEmailsAlsoSendToCustomer() {\n      const model = this?.args?.model || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        model.setData('emailsAlsoSendToCustomer', false);\n        // model.setData('emailsSendOnlyIfHasResults', false)\n      }\n    }\n    addNewSteps(onCloseDialogAction) {\n      const model = this.args.model;\n      const toEditSteps = this.toEditSteps || [];\n      model.addSteps(toEditSteps);\n      this.toEditSteps = null;\n      onCloseDialogAction();\n    }\n    cancelNewSteps(onCloseDialogAction) {\n      this.toEditSteps = null;\n      onCloseDialogAction();\n    }\n    loadShopSource(model, shop) {\n      model.setData('shopKey', shop.getData('_key'));\n    }\n    unloadShopSource(model) {\n      model.setData('shopKey', '');\n    }\n    loadWebsiteSource(model, website) {\n      model.setData('websiteKey', website.getData('_key'));\n    }\n    unloadWebsiteSource(model) {\n      model.setData('websiteKey', '');\n    }\n    onSelectType(type) {\n      const model = this.args?.model;\n      const selectType = model?.selectType(type);\n      if (model.isForm) {\n        this.removeShopKeyAndWebsiteKeyTask.perform(model);\n      }\n      if (model?._data?.type === 'bot' && model?._data?.eventDisplay === 'popupMiddle') {\n        // set back to popup because bot can't use popupMiddle\n        model.setData('eventDisplay', 'popup');\n      }\n      return selectType;\n    }\n    *removeShopKeyAndWebsiteKeyTask(model) {\n      const flowKeyType = model.getData('flowKeyType') || '';\n      if (R.equals(flowKeyType, 'shop')) {\n        model.setData('websiteKey', '');\n        model.setData('website', '');\n      }\n      if (R.equals(flowKeyType, 'website')) {\n        model.setData('shopKey', '');\n        model.setData('shop', '');\n      }\n      const filters = this?.filters || {};\n      if (RA.isNotNilOrEmpty(filters)) {\n        filters.setData('query', '');\n      }\n      yield this.fetchShopOrWebsitesListTask.perform();\n    }\n\n    // remove popupMiddle from bot\n    get filteredEventsDisplay() {\n      const model = this?.args?.model || {};\n      const eventsDisplay = this?.crud?.lists['flows-lists-eventsDisplay'] || [];\n      const type = model.getData('type') || '';\n      if (R.equals(type, 'bot')) {\n        return R.reject(R.pathEq(['_data', 'value'], 'popupMiddle'))(eventsDisplay);\n      }\n      return eventsDisplay;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"toEditSteps\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"toEditStepsTypeLabel\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"toEditStepsIsVisible\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.model._data.type || 'notification';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"stepsPresetsData\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"flowKeyTypesList\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"flowKeyTypesList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasSuccessfulEmail\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"hasSuccessfulEmail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"flowsListsStepsPresetsOptions\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"flowsListsStepsPresetsOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchShopOrWebsitesListTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchShopOrWebsitesListTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateScrollingMessageLink\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"updateScrollingMessageLink\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupNewSteps\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"setupNewSteps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupNewStepsInFormStep\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"setupNewStepsInFormStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetEmailsAlsoSendToCustomer\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"resetEmailsAlsoSendToCustomer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewSteps\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewSteps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelNewSteps\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelNewSteps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadShopSource\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"loadShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadShopSource\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadWebsiteSource\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"loadWebsiteSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadWebsiteSource\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadWebsiteSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectType\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeShopKeyAndWebsiteKeyTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeShopKeyAndWebsiteKeyTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"filteredEventsDisplay\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"filteredEventsDisplay\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/flows-editor/main-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DZJPaPg3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"formStep\\\",\\\"onHideDropdown\\\",\\\"preset\\\",\\\"onCloseDialogAction\\\",\\\"onHideDropdown\\\",\\\"preset\\\",\\\"criteria\\\",\\\"@formGroupClassNames\\\",\\\"@tab\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@errors\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"flowsEditorMainEditor\\\",false,true,[28,\\\"if\\\",[[23,19,[]],[23,19,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"flows\\\",[23,18,[]],[23,10,[]],[23,17,[]],[23,16,[]]]]]],null],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"basicInformation_group\\\",[23,1,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"status\\\",[23,1,[]],true,\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,14,[\\\"statusClass\\\"]],true,[23,13,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,14,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"type\\\",[23,1,[]],true,\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,14,[\\\"_data\\\",\\\"type\\\"]],[23,13,[]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectType\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"name\\\",[23,1,[]],true,\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,13,[]],[23,0,[\\\"autofocus\\\"]],true,[23,14,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,14,[\\\"_data\\\",\\\"type\\\"]],\\\"form\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"shop\\\",[23,1,[]],true,\\\"shop or website\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,13,[]],[23,0,[\\\"flowKeyTypesList\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,14,[\\\"_data\\\",\\\"flowKeyType\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"removeShopKeyAndWebsiteKeyTask\\\"]],[23,14,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,14,[\\\"_data\\\",\\\"flowKeyType\\\"]],\\\"shop\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"shop\\\",[23,1,[]],\\\"shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@isRequired\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@filters\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,true,[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"filters\\\"]],[23,14,[\\\"_data\\\",\\\"shop\\\"]],[23,14,[\\\"_data\\\",\\\"shopKey\\\"]],[23,13,[]],[23,13,[]],\\\"channels/shop/campaigns/search-results\\\",[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"filters\\\",\\\"adapterName\\\",\\\"component\\\"],[[23,14,[\\\"_data\\\",\\\"shop\\\"]],[23,0,[\\\"filters\\\"]],\\\"channels/shop/campaigns\\\",[23,0,[]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"loadShopSource\\\"]],[23,14,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadShopSource\\\"]],[23,14,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"website\\\",[23,1,[]],\\\"website\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@isRequired\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@filters\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,true,[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"filters\\\"]],[23,14,[\\\"_data\\\",\\\"website\\\"]],[23,14,[\\\"_data\\\",\\\"websiteKey\\\"]],[23,13,[]],[23,13,[]],\\\"websites/search-results\\\",[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"filters\\\",\\\"adapterName\\\",\\\"component\\\"],[[23,14,[\\\"_data\\\",\\\"website\\\"]],[23,0,[\\\"filters\\\"]],\\\"websites\\\",[23,0,[]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"loadWebsiteSource\\\"]],[23,14,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadWebsiteSource\\\"]],[23,14,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,14,[\\\"_data\\\",\\\"shopKey\\\"]],[23,14,[\\\"_data\\\",\\\"websiteKey\\\"]],[28,\\\"eq\\\",[[23,14,[\\\"_data\\\",\\\"type\\\"]],\\\"form\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"date_group\\\",[23,1,[]],\\\"date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"dateStartZ\\\",[23,1,[]],\\\"date start\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateStartZ\\\",[23,14,[]],[23,14,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,13,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"dateEndZ\\\",[23,1,[]],\\\"date end\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateEndZ\\\",[23,14,[]],[23,14,[\\\"_data\\\",\\\"dateEndZ\\\"]],[23,13,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,14,[\\\"isForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"events_group\\\",[23,1,[]],\\\"flow_event\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,14,[\\\"isScrollingNotification\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"events\\\",[23,1,[]],\\\"flow_event\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-events\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,14,[\\\"_data\\\",\\\"eventType\\\"]],[23,13,[]],[28,\\\"fn\\\",[[23,14,[\\\"selectEventType\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"eventsDisplay\\\",[23,1,[]],\\\"flow_event_display\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@disabled\\\"],[true,true,[23,0,[\\\"filteredEventsDisplay\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,14,[\\\"_data\\\",\\\"eventDisplay\\\"]],[23,13,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"isScrollingNotification\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"scrollingMessage\\\",[23,1,[]],\\\"flow_scrolling_message\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@maxlength\\\",\\\"@value\\\"],[[23,13,[]],2,100,[23,14,[\\\"_data\\\",\\\"scrollingMessage\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"scrollingMessageLink\\\",[23,1,[]],\\\"flow_scrolling_message_link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"websites/links-editor-modal\\\",[],[[\\\"@title\\\",\\\"@modalTitleLabel\\\",\\\"@isReadonly\\\",\\\"@shopKey\\\",\\\"@websiteKey\\\",\\\"@attributes\\\",\\\"@onUpdateModel\\\",\\\"@tab\\\"],[\\\"page url\\\",\\\"choose link\\\",[23,13,[]],[23,14,[\\\"_data\\\",\\\"shopKey\\\"]],[23,14,[\\\"_data\\\",\\\"websiteKey\\\"]],[23,14,[\\\"_data\\\",\\\"scrollingMessageLink\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateScrollingMessageLink\\\"]]],null],[23,10,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"_data\\\",\\\"scrollingMessageLink\\\",\\\"data-href\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@title\\\",\\\"@link\\\"],[[23,14,[\\\"_data\\\",\\\"scrollingMessageLink\\\",\\\"data-href-title\\\"]],[23,14,[\\\"_data\\\",\\\"scrollingMessageLink\\\",\\\"data-href\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"scrollingMessageTimer\\\",[23,1,[]],\\\"flow_scrolling_message_timer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"times-seconds-recommended\\\"]],false,[23,14,[\\\"_data\\\",\\\"scrollingMessageTimer\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"eventGreeting\\\",[23,1,[]],\\\"flow_event_greeting\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@content\\\"],[[23,10,[]],true,[23,13,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[80]]],[23,14,[\\\"_data\\\",\\\"eventGreeting\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasSuccessfulEmail\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"isScrollingNotification_group\\\",[23,1,[]],\\\"emails\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"emailsSendWhenSuccessful\\\",[23,1,[]],\\\"send emails when successful\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenFalse\\\"],[[23,13,[]],[23,14,[\\\"_data\\\",\\\"emailsSendWhenSuccessful\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetEmailsAlsoSendToCustomer\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"_data\\\",\\\"emailsSendWhenSuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"emailsAlsoSendToCustomer\\\",[23,1,[]],\\\"send email to customer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,13,[]],[23,14,[\\\"_data\\\",\\\"emailsAlsoSendToCustomer\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"flowsCreatedEmailSuccessfulTitle\\\",[23,1,[]],\\\"email subject\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,14,[\\\"_data\\\",\\\"flowsCreatedEmailSuccessfulTitle\\\"]],[23,13,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"flowsCreatedEmailSuccessfulMessage\\\",[23,1,[]],\\\"email message\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@content\\\"],[[23,10,[]],true,[23,13,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[80]]],[23,14,[\\\"_data\\\",\\\"flowsCreatedEmailSuccessfulMessage\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"flowsCreatedEmailCopyTo\\\",[23,1,[]],\\\"send a copy of email to addresses\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,13,[]],2,[23,14,[\\\"_data\\\",\\\"flowsCreatedEmailCopyTo\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,14,[\\\"_data\\\",\\\"eventType\\\"]],\\\"checkoutAfter\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"checkoutAfter_group\\\",[23,1,[]],\\\"checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"eventHasCriterias\\\",[23,1,[]],\\\"flow_event_has_criterias\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,13,[]],\\\"\\\",[23,14,[\\\"_data\\\",\\\"eventHasCriterias\\\"]],[28,\\\"fn\\\",[[23,14,[\\\"setupCriterias\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"_data\\\",\\\"eventHasCriterias\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,14,[\\\"_data\\\",\\\"eventCriterias\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"channels/shop/campaigns/campaigns-editor/automations-editor/when-editor-flows\\\",[],[[\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@master\\\",\\\"@automationModel\\\",\\\"@adapterName\\\",\\\"@isFlowCriterias\\\",\\\"@formInitData\\\",\\\"@hasThen\\\",\\\"@errors\\\"],[[23,10,[]],[23,12,[]],[23,11,[]],[23,13,[]],[23,14,[]],[23,8,[]],\\\"flows/criterias\\\",true,[23,1,[]],false,[23,15,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"allowBackdating\\\",[23,1,[]],\\\"flow_event_allow_backdating\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,13,[]],\\\"\\\",[23,14,[\\\"_data\\\",\\\"allowBackdating\\\"]],true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"_data\\\",\\\"allowBackdating\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"backdatingDays\\\",[23,1,[]],\\\"days after checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,13,[]],false,[28,\\\"if\\\",[[23,14,[\\\"_data\\\",\\\"allowBackdating\\\"]],true,false],null],[23,14,[\\\"_data\\\",\\\"backdatingDays\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[28,\\\"or\\\",[[23,14,[\\\"isNotification\\\"]],[23,14,[\\\"isScrollingNotification\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,14,[\\\"isForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"flow_limits_group\\\",[23,1,[]],\\\"flow_limits\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"eventHasLimitsTotal\\\",[23,1,[]],\\\"has limits\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,13,[]],\\\"\\\",[23,14,[\\\"_data\\\",\\\"eventHasLimitsTotal\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"_data\\\",\\\"eventHasLimitsTotal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"eventHasLimitsTotalQty\\\",[23,1,[]],\\\"total limit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,13,[]],false,true,[23,14,[\\\"_data\\\",\\\"eventHasLimitsTotalQty\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"eventHasLimitsPerPerson\\\",[23,1,[]],\\\"has limits per person\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,14,[\\\"isSignUpEvent\\\"]],[23,13,[]]],null],[23,14,[\\\"_data\\\",\\\"eventHasLimitsPerPerson\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"_data\\\",\\\"eventHasLimitsPerPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"eventHasLimitsPerPersonQty\\\",[23,1,[]],\\\"total times per person\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,14,[\\\"isSignUpEvent\\\"]],[23,13,[]]],null],false,true,[23,14,[\\\"_data\\\",\\\"eventHasLimitsPerPersonQty\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,14,[\\\"_data\\\",\\\"eventType\\\"]],\\\"view\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"eventHasLimitsPerOrder\\\",[23,1,[]],\\\"has times per order\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,14,[\\\"isSignUpEvent\\\"]],[23,13,[]]],null],\\\"\\\",[23,14,[\\\"_data\\\",\\\"eventHasLimitsPerOrder\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,14,[\\\"_data\\\",\\\"eventHasLimitsPerOrder\\\"]],[28,\\\"not-eq\\\",[[23,14,[\\\"_data\\\",\\\"eventType\\\"]],\\\"view\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"eventHasLimitsPerOrderQty\\\",[23,1,[]],\\\"times per order\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,13,[]],[23,14,[\\\"isSignUpEvent\\\"]]],null],false,true,[23,14,[\\\"_data\\\",\\\"eventHasLimitsPerOrderQty\\\"]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"flow_steps_group\\\",[23,1,[]],\\\"flow_steps\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"_data\\\",\\\"steps\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"flows/flows-editor/steps-editor\\\",[],[[\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@steps\\\",\\\"@flow\\\",\\\"@stepsParent\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[\\\"_data\\\",\\\"steps\\\"]],[23,14,[]],[23,14,[]],[23,1,[]],[23,10,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"setupNewSteps\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\"],[[23,13,[]],\\\"fas fa-plus\\\",\\\"add step\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"presets\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-steps-presets\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[[23,7,[\\\"_data\\\",\\\"label\\\"]],false,[28,\\\"fn\\\",[[23,0,[\\\"setupNewSteps\\\"]],[23,7,[]],[23,6,[]]],null]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"toEditSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\"],[[23,0,[\\\"toEditStepsTypeLabel\\\"]],[23,0,[\\\"toEditStepsIsVisible\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"flows/flows-editor/steps-editor\\\",[],[[\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@steps\\\",\\\"@flow\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@onCancel\\\",\\\"@onDone\\\"],[true,false,false,[23,0,[\\\"toEditSteps\\\"]],[23,14,[]],[23,10,[]],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancelNewSteps\\\"]],[23,5,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"addNewSteps\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[\\\"isForm\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,14,[\\\"_data\\\",\\\"formSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"formSteps_group\\\",[23,1,[]],\\\"flow_form_steps\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"flows/flows-editor/steps-editor\\\",[],[[\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@steps\\\",\\\"@stepsParent\\\",\\\"@formInitData\\\",\\\"@flow\\\",\\\"@tab\\\"],[[23,11,[]],[23,12,[]],[23,13,[]],[23,2,[\\\"_data\\\",\\\"steps\\\"]],[23,2,[]],[23,1,[]],[23,14,[]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"setupNewStepsInFormStep\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\"],[[23,13,[]],\\\"fas fa-plus\\\",\\\"add step\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"presets\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"flowsListsStepsPresetsOptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[[23,4,[\\\"_data\\\",\\\"label\\\"]],false,[28,\\\"fn\\\",[[23,0,[\\\"setupNewStepsInFormStep\\\"]],[23,4,[]],[23,2,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"              \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-btn-more\\\",[],[[\\\"@disabled\\\"],[[23,13,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__item\\\"],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@typeToDelete\\\",\\\"@message\\\",\\\"@onSubmit\\\"],[[23,13,[]],true,\\\"are you sure you want to delete this step? all linked steps will be deleted too\\\",[28,\\\"fn\\\",[[23,14,[\\\"removeFormStep\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"previousButtonLabel\\\",[23,1,[]],\\\"previous button label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,13,[]],1,[23,2,[\\\"_data\\\",\\\"previousButtonLabel\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"nextButtonLabel\\\",[23,1,[]],\\\"next button label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,13,[]],1,[23,2,[\\\"_data\\\",\\\"nextButtonLabel\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"formTitle\\\",[23,1,[]],\\\"form title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,13,[]],1,[23,14,[\\\"_data\\\",\\\"formTitle\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"lastButtonLabel\\\",[23,1,[]],\\\"last button label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,13,[]],1,[23,14,[\\\"_data\\\",\\\"lastButtonLabel\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,10,[]],\\\"formSteps_group\\\",[23,1,[]],\\\"flow_form_steps\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"add form step\\\",\\\"fas fa-plus\\\",false,[23,13,[]],[28,\\\"fn\\\",[[23,14,[\\\"newFormStep\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/main-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/actions-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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;\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 FlowsFlowEditorStepsEditorActionsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _class = class FlowsFlowEditorStepsEditorActionsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['flows/lists/actions']);\n    }\n    setupAction(actionPreset) {\n      const step = this.args.step;\n      if (!step || RA.isNilOrEmpty(actionPreset)) {\n        return false;\n      }\n      step.addAction(actionPreset.getData('value'), {});\n    }\n    updateAction(onCloseDialogAction) {\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupAction\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"setupAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateAction\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"updateAction\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 FlowsFlowEditorStepsEditorActionsEditorGamesComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class FlowsFlowEditorStepsEditorActionsEditorGamesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['flows/lists/actions/games', 'flows/lists/actions/games/scratchCard/backgroundTypes']);\n    }\n    willDestroy() {\n      if (this?.isDestroyed === false) {\n        if (this.args.onCloseTask) {\n          const step = this.args.step;\n          const subStep = this.args.subStep;\n          this.args.onCloseTask.perform(step, subStep);\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"willDestroy\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroy\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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  // import { task } from 'ember-concurrency'\n  // import * as R from 'ramda'\n  // import * as R_ from 'ramda-extension'\n  let FlowsFlowsEditorStepsEditorActionsEditorGamesTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class FlowsFlowsEditorStepsEditorActionsEditorGamesTableViewDetailRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"shortcuts\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isPrizeModalVisible\", _descriptor3, this);\n      _defineProperty(this, \"shortcutsMap\", [\n        // {\n        //   keys: [\n        //     ['Meta', 'Enter'],\n        //     ['Control', 'Enter']\n        //   ],\n        //   handler: this.quickSaveTask\n        // }, {\n        //   keys: ['Alt', 'Enter'],\n        //   handler: this.showWizardModal\n        // }\n      ]);\n      this.crud.addLists(this, ['flows/lists/prizes']);\n    }\n    setupPrize(model) {\n      this.isPrizeModalVisible = true;\n      const prizeType = model.getData('prizeType');\n      const shopKey = this?.args?.tableViewOptions?.flow?._data?.shopKey;\n      const shop = this?.args?.tableViewOptions?.flow?._data?.shop;\n      model.setupPrizeType({\n        prizeType,\n        shopKey,\n        shop\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"shortcuts\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isPrizeModalVisible\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupPrize\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPrize\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AmexGBmq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@tableViewOptions\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isDetailRow\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"type\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"prize\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"prize description\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"win percentage\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",false],[12,\\\"class\\\",\\\"table-view__detail-row\\\"],[3,\\\"on\\\",[\\\"keydown\\\",[28,\\\"fn\\\",[[23,0,[\\\"shortcuts\\\",\\\"onKeyDown\\\"]],[23,0,[\\\"shortcutsMap\\\"]]],null]]],[3,\\\"on\\\",[\\\"keyup\\\",[28,\\\"fn\\\",[[23,0,[\\\"shortcuts\\\",\\\"onKeyUp\\\"]],false],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-prizes\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,[23,2,[\\\"isReadonly\\\"]],true,[23,1,[\\\"_data\\\",\\\"prizeType\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setupPrize\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"prizeType\\\"]],\\\"generatePromoCode\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[]],[23,3,[]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,2,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,1,[\\\"_data\\\",\\\"qty\\\"]],[23,2,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,1,[\\\"_data\\\",\\\"description\\\"]],[23,2,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[]],[23,3,[]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@suffix\\\",\\\"@value\\\",\\\"@readonly\\\"],[\\\"%\\\",[23,1,[\\\"_data\\\",\\\"winPercentage\\\"]],[23,2,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,1,[\\\"_data\\\",\\\"winPercentage\\\"]],false],[0,\\\"%\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@requiresConfirmation\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[true,[23,2,[\\\"isReadonly\\\"]],[28,\\\"fn\\\",[[23,2,[\\\"gameModel\\\",\\\"removePrize\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CmoeWy73\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@tab\\\",\\\"@step\\\",\\\"@flow\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"gameType\\\",[23,1,[]],\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,5,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-actions-games\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"gameType\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"text\\\",[23,1,[]],[28,\\\"if\\\",[[23,3,[\\\"isScratchCardGame\\\"]],\\\"flow_scratch_card_text\\\",\\\"description\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"text\\\"]]]]],[0,\\\"\\\\t\\\\t\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isScratchCardGame\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"scratchCardTextColor\\\",[23,1,[]],\\\"flow_scratch_card_text_color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,3,[]],[23,5,[]],\\\"scratchCardTextColor\\\",[23,3,[\\\"_data\\\",\\\"scratchCardTextColor\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"scratchCardBackgroundType\\\",[23,1,[]],\\\"flow_scratch_card_background\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,5,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-actions-games-scratchCard-backgroundTypes\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"scratchCardBackgroundType\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"scratchCardBackgroundType\\\"]],\\\"backgroundColor\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"scratchCardBackgroundColor\\\",[23,1,[]],\\\"flow_scratch_card_background_color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,3,[]],[23,5,[]],\\\"scratchCardBackgroundColor\\\",[23,3,[\\\"_data\\\",\\\"scratchCardBackgroundColor\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"scratchCardImage\\\",[23,1,[]],\\\"flow_scratch_card_background_image\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowMultipleItems\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@allowShowPreviewModal\\\"],[[23,2,[]],false,true,[23,3,[]],\\\"flows-scratchCardImage\\\",[23,3,[\\\"_data\\\",\\\"stepId\\\"]],true,true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@paginationIsFooter\\\",\\\"@results\\\",\\\"@hasFilters\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@tableViewOptions\\\"],[[23,2,[]],\\\"flows/flows-editor/steps-editor/actions-editor/games/table-view/detail-row\\\",false,[23,6,[\\\"_data\\\",\\\"prizes\\\"]],false,[23,7,[]],[23,8,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isReadonly\\\",\\\"flow\\\",\\\"gameModel\\\"],[\\\"flows/steps/actions/games/prizes\\\",[23,5,[]],[23,4,[]],[23,6,[]]]]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@errors\\\",\\\"@context\\\"],[[23,9,[]],\\\"details\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"newPrize\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add prize\\\",[23,5,[]],[28,\\\"fn\\\",[[23,6,[\\\"newPrize\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"unsuccessfulMessage\\\",[23,1,[]],\\\"flow_game_unsuccessful_message\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@content\\\"],[[23,2,[]],true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[80]]],[23,6,[\\\"_data\\\",\\\"unsuccessfulMessage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratchCardImageLose\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowMultipleItems\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\"],[[23,2,[]],false,true,[23,3,[]],\\\"flows-scratchCardImageLose\\\",[23,3,[\\\"_data\\\",\\\"stepId\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/steps-editor/actions-editor/games/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/actions-editor/generate-promo-code/component\", [\"exports\", \"@glimmer/component\", \"client/utils/nventor\"], function (_exports, _component, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 FlowsFlowEditorStepsEditorActionsEditorGeneratePromoCodeComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class FlowsFlowEditorStepsEditorActionsEditorGeneratePromoCodeComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    get actionModel() {\n      const subStep = this.args.subStep;\n      if (subStep?._data?.defaults) {\n        return subStep;\n      }\n      const step = this.args.step;\n      if (step?._data?.actionData?._data?.defaults) {\n        return step._data.actionData;\n      }\n      _nventor.default.throw('no action model found');\n      return false;\n    }\n    get promoCodeModel() {\n      const subStep = this.args.subStep;\n      if (subStep?._data?.defaults) {\n        return subStep._data.defaults;\n      }\n      const step = this.args.step;\n      if (step?._data?.actionData?._data?.defaults) {\n        return step._data.actionData._data.defaults;\n      }\n      _nventor.default.throw('no promo code model found');\n      return false;\n    }\n    willDestroy() {\n      if (this?.isDestroyed === false) {\n        if (this.args.onCloseTask) {\n          const step = this.args.step;\n          const subStep = this.args.subStep;\n          this.args.onCloseTask.perform(step, subStep);\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"willDestroy\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroy\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/actions-editor/generate-promo-code/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wQ88HEQj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@flow\\\",\\\"@step\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isDisplay\\\",\\\"@onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"actionModel\\\",\\\"_data\\\",\\\"isPrize\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"successfulTitle\\\",[23,1,[]],\\\"prize_successfulTitle\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,0,[\\\"actionModel\\\",\\\"_data\\\",\\\"successfulTitle\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"gameType\\\"]],\\\"gameScratchCard\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"scratchCardTextColorInner\\\",[23,1,[]],\\\"flow_scratch_card_inner_text_color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,0,[\\\"actionModel\\\"]],[23,3,[]],\\\"scratchCardTextColorInner\\\",[23,0,[\\\"actionModel\\\",\\\"_data\\\",\\\"scratchCardTextColorInner\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"scratchCardImageWin\\\",[23,1,[]],\\\"flow_scratch_card_inner_background_image\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowMultipleItems\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@allowShowPreviewModal\\\"],[[23,2,[]],false,true,[23,0,[\\\"actionModel\\\"]],\\\"flows-scratchCardImageWin\\\",[23,0,[\\\"actionModel\\\",\\\"_data\\\",\\\"subStepId\\\"]],true,true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"successfulMessage\\\",[23,1,[]],\\\"prize_successfulMessage\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@content\\\"],[[23,2,[]],true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[80]]],[23,0,[\\\"actionModel\\\",\\\"_data\\\",\\\"successfulMessage\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"emailSuccessfulTitle\\\",[23,1,[]],\\\"email subject\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,0,[\\\"actionModel\\\",\\\"_data\\\",\\\"emailSuccessfulTitle\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"emailSuccessfulMessage\\\",[23,1,[]],\\\"email message\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@content\\\"],[[23,2,[]],true,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[80]]],[23,0,[\\\"actionModel\\\",\\\"_data\\\",\\\"emailSuccessfulMessage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"promo-code\\\",\\\"shop-name\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"channels/shop/promo-codes/promo-codes-editor\\\",[],[[\\\"@isSetupPreset\\\",\\\"@model\\\",\\\"@showUseExpiryDateToggler\\\",\\\"@errors\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isDisplay\\\",\\\"@tab\\\",\\\"@isFromFlows\\\",\\\"@formGroupClassNames\\\",\\\"@onSaveTask\\\",\\\"@onCancel\\\"],[true,[23,0,[\\\"promoCodeModel\\\"]],true,[23,0,[\\\"errors\\\"]],[23,6,[]],[23,7,[]],[23,8,[]],[23,2,[]],true,\\\"form-group__container--column-2\\\",[23,9,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/steps-editor/actions-editor/generate-promo-code/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/actions-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/MafW6ZK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onCloseDialogAction\\\",\\\"@formInitData\\\",\\\"@step\\\",\\\"@isDisplay\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@tab\\\",\\\"@flow\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[1,[28,\\\"component\\\",[[23,3,[\\\"actionsComponent\\\"]]],[[\\\"isReadonly\\\",\\\"flow\\\",\\\"step\\\",\\\"tab\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"isDisplay\\\",\\\"model\\\",\\\"formInitData\\\",\\\"onCloseDialogAction\\\"],[[23,9,[]],[23,8,[]],[23,3,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[\\\"_data\\\",\\\"actionData\\\"]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/steps-editor/actions-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA) {\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, _dec0, _dec1, _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 FlowsFlowsEditorStepsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _class = class FlowsFlowsEditorStepsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragAndDrop\", _descriptor2, this);\n      _initializerDefineProperty(this, \"application\", _descriptor3, this);\n      _initializerDefineProperty(this, \"currentStepId\", _descriptor4, this);\n      _initializerDefineProperty(this, \"currentStep\", _descriptor5, this);\n      _initializerDefineProperty(this, \"currentSubStep\", _descriptor6, this);\n      _initializerDefineProperty(this, \"currentSubStepId\", _descriptor7, this);\n      _initializerDefineProperty(this, \"currentDraggedIndex\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isAllValidated\", _descriptor9, this);\n      const steps = this.args.steps || [];\n      const firstStep = steps?.firstObject || {};\n      this.currentStep = firstStep;\n      this.currentStepId = firstStep?._data?.stepId;\n    }\n    checkIsAllValidated(steps) {\n      return R.reduce((acc, step) => {\n        if (acc === false) {\n          return false;\n        }\n        const isSubStepsValidated = this.checkIsAllSubStepsValidated(step);\n        if (!isSubStepsValidated) {\n          return false;\n        }\n        return step?._data?.isValidated || false;\n      }, null)(steps);\n    }\n    checkIsAllSubStepsValidated(step) {\n      const subSteps = R.propOr([], 'subSteps')(step);\n      let isSubStepsValidated = true;\n      if (RA.isNotNilOrEmpty(subSteps)) {\n        isSubStepsValidated = R.reduce((acc, subStep) => {\n          if (acc === false) {\n            return false;\n          }\n          return subStep?._data?.isValidated || false;\n        }, null)(subSteps);\n      }\n      return isSubStepsValidated;\n    }\n    *completeStepsTask(onDone) {\n      if (this.isAllValidated) {\n        return onDone();\n      }\n      const validated = yield this.validateStepsTask.perform();\n      if (validated) {\n        return onDone();\n      }\n    }\n    *validateStepsTask() {\n      const steps = this.args.steps || [];\n      const q = [];\n      R.forEach(step => {\n        const subSteps = R.propOr([], 'subSteps')(step);\n        if (RA.isNilOrEmpty(subSteps)) {\n          q.push(this.validateStepTask.perform(step));\n        } else {\n          R.forEach(subStep => {\n            q.push(this.validateSubStepTask.perform(step, subStep));\n          })(subSteps);\n        }\n      })(steps);\n      const res = yield (0, _emberConcurrency.all)(q);\n      return res;\n    }\n    *validateStepTask(step) {\n      if (RA.isNilOrEmpty(step)) {\n        step = this.currentStep;\n      }\n      if (!step) {\n        return false;\n      }\n      const res = yield this.crud.validateRecordTask.perform({\n        adapterName: 'flows/steps',\n        model: step\n      });\n      let isValidated = false;\n      if (RA.isNotNilOrEmpty(res)) {\n        isValidated = true;\n        const isAllSubStepsValidated = this.checkIsAllSubStepsValidated(step);\n        if (!isAllSubStepsValidated) {\n          isValidated = false;\n        }\n      }\n      step.setData('isValidated', isValidated);\n      const steps = this.args.steps || [];\n      this.isAllValidated = this.checkIsAllValidated(steps);\n      return step;\n    }\n    *validateSubStepTask(step, subStep) {\n      if (RA.isNilOrEmpty(subStep)) {\n        subStep = this.currentSubStep;\n      }\n      if (!subStep) {\n        return false;\n      }\n      const res = yield this.crud.validateRecordTask.perform({\n        adapterName: 'flows/steps',\n        appendPath: '/sub',\n        model: subStep\n      });\n      if (RA.isNilOrEmpty(res)) {\n        subStep.setData('isValidated', false);\n      } else {\n        subStep.setData('isValidated', true);\n      }\n\n      // validate parent step\n      yield this.validateStepTask.perform(step);\n      return subStep;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragAndDrop\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"application\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentStepId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"currentStep\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"currentSubStep\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"currentSubStepId\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"currentDraggedIndex\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isAllValidated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"checkIsAllValidated\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"checkIsAllValidated\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkIsAllSubStepsValidated\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"checkIsAllSubStepsValidated\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"completeStepsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"completeStepsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateStepsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"validateStepsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateStepTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"validateStepTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateSubStepTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"validateSubStepTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/reply-choices/choice-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FlowsFlowEditorStepsEditorReplyChoicesChoiceEditorComponent extends _component.default {}\n  _exports.default = FlowsFlowEditorStepsEditorReplyChoicesChoiceEditorComponent;\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/reply-choices/choice-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vpR7LkhQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@choice\\\",\\\"@onRemove\\\",\\\"@isNew\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__padding\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\\n      \\\"],[1,[23,3,[\\\"_data\\\",\\\"index\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"table-form__input\\\",[23,1,[]],[23,3,[\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n    \\\\n    \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@errors\\\",\\\"@classNames\\\",\\\"@context\\\",\\\"@icon\\\",\\\"@tooltip\\\"],[[23,0,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"variants.options.name\\\",\\\"fas fa-exclamation-circle\\\",true]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"table-form__input\\\",[23,1,[]],[23,3,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n    \\\\n    \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@errors\\\",\\\"@classNames\\\",\\\"@context\\\",\\\"@icon\\\",\\\"@tooltip\\\"],[[23,0,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"variants.options.code\\\",\\\"fas fa-exclamation-circle\\\",true]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,6,[]],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@disabled\\\",\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@tab\\\",\\\"@onSubmit\\\"],[[23,1,[]],\\\"u-close-btn\\\",\\\"-1\\\",[23,2,[]],[28,\\\"fn\\\",[[23,4,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/steps-editor/reply-choices/choice-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/reply-choices/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 FlowsFlowEditorStepsEditorReplyChoicesComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class FlowsFlowEditorStepsEditorReplyChoicesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['dataTypes', 'flows/lists/dataKeys', 'flows/lists/eventsDisplay', 'flows/lists/steps/types']);\n    }\n    willDestroy() {\n      if (this?.isDestroyed === false) {\n        if (this.args.onCloseTask) {\n          const step = this.args.step;\n          const subStep = this.args.subStep;\n          this.args.onCloseTask.perform(step, subStep);\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"willDestroy\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroy\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/reply-choices/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8PBUo/b7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"choice\\\",\\\"index\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@step\\\",\\\"@flow\\\",\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"stepType\\\",[23,3,[]],\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-steps-types\\\"]],\\\"_data.stepType\\\",\\\"_data.label\\\",[23,5,[\\\"_data\\\",\\\"stepType\\\"]],[28,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"isPresetLocked\\\"]],true,[23,4,[]]],null],[28,\\\"fn\\\",[[23,5,[\\\"selectType\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"text\\\",[23,3,[]],[28,\\\"if\\\",[[23,5,[\\\"hasReply\\\"]],\\\"question\\\",\\\"flow_message\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"isForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@maxlength\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"160\\\",\\\"u-full-width\\\",[23,4,[]],[23,5,[\\\"_data\\\",\\\"text\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@content\\\"],[[23,10,[]],true,[23,4,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[80]]],[23,5,[\\\"_data\\\",\\\"text\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"allowReply\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasReply\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isReplyRequired\\\",[23,3,[]],\\\"is required\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@disabled\\\"],[\\\"\\\",[23,5,[\\\"_data\\\",\\\"isReplyRequired\\\"]],[28,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"isPresetLocked\\\"]],true,[23,4,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"dataKey\\\",[23,3,[]],\\\"field\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-dataKeys\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"_data\\\",\\\"dataKey\\\"]],[28,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"isPresetLocked\\\"]],true,[23,4,[]]],null],[28,\\\"fn\\\",[[23,5,[\\\"selectDataKey\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"stepType\\\"]],\\\"replyText\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"dataType\\\",[23,3,[]],\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@disabled\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dataTypes\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"_data\\\",\\\"dataType\\\"]],[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,5,[\\\"_data\\\",\\\"dataKey\\\"]]],null],[28,\\\"not\\\",[[23,5,[\\\"hasCustomDataKey\\\"]]],null],[23,5,[\\\"_data\\\",\\\"isPresetLocked\\\"]]],null],true,[23,4,[]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasCustomDataKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@isRequired\\\"],[[28,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"isPresetLocked\\\"]],true,[23,4,[]]],null],[23,5,[\\\"_data\\\",\\\"key\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"dataType\\\"]],\\\"text\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isTextArea\\\",[23,3,[]],\\\"allow to respond with multiple lines\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\"],[[23,5,[\\\"_data\\\",\\\"isTextArea\\\"]],[28,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"isPresetLocked\\\"]],true,[23,4,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasChoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"choices\\\",[23,3,[]],\\\"choices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"choices\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"label\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"flow_payload_value\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,8,[]],[23,9,[]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"choices\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"flows/flows-editor/steps-editor/reply-choices/choice-editor\\\",[],[[\\\"@flow\\\",\\\"@errors\\\",\\\"@errorIndex\\\",\\\"@model\\\",\\\"@choice\\\",\\\"@onRemove\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@tab\\\",\\\"@isReadonly\\\"],[[23,6,[]],[23,7,[]],[23,2,[]],[23,5,[]],[23,1,[]],[28,\\\"fn\\\",[[23,5,[\\\"removeChoice\\\"]]],null],[23,8,[]],[23,9,[]],[23,10,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,8,[]],[23,9,[]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"newChoice\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"choice\\\",[23,4,[]],[28,\\\"fn\\\",[[23,5,[\\\"newChoice\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[\\\"isForm\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"allowCustomChoice\\\",[23,3,[]],\\\"flow_allow_custom_choice\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"allowCustomChoice\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/steps-editor/reply-choices/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/steps-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8YveFyFg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"step\\\",\\\"stepIndex\\\",\\\"subStep\\\",\\\"subStepIndex\\\",\\\"@onCancel\\\",\\\"@onDone\\\",\\\"@isReadonly\\\",\\\"@stepsParent\\\",\\\"@formInitData\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@tab\\\",\\\"@flow\\\",\\\"@steps\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"flow_steps_sub-group\\\",[23,9,[]],[23,12,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"calculate\\\",[[23,2,[]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\".\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isValidated\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@iconClassName\\\"],[\\\"\\\",true,\\\"fas fa-check-circle\\\",\\\"has-text-success\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@iconClassName\\\"],[\\\"\\\",true,\\\"fas fa-circle\\\",\\\"is-disabled\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn-more\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__item\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@typeToDelete\\\",\\\"@message\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isPresetLocked\\\"]],true,[23,7,[]]],null],true,\\\"are you sure you want to delete this step? all linked steps will be deleted too\\\",[28,\\\"fn\\\",[[23,13,[\\\"removeStep\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"typeComponent\\\"]]],[[\\\"flow\\\",\\\"step\\\",\\\"tab\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"formInitData\\\",\\\"onCloseTask\\\"],[[23,13,[]],[23,1,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,7,[]],[23,9,[]],[23,0,[\\\"validateStepTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"subSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"calculate\\\",[[23,2,[]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\". \\\"],[1,[28,\\\"calculate\\\",[[23,4,[]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\". \\\"],[1,[23,3,[\\\"_data\\\",\\\"description\\\"]],false],[0,\\\" | \\\"],[1,[23,3,[\\\"_data\\\",\\\"prizeType\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"isValidated\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@iconClassName\\\"],[\\\"\\\",true,\\\"fas fa-check-circle\\\",\\\"has-text-success\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@iconClassName\\\"],[\\\"\\\",true,\\\"fas fa-circle\\\",\\\"is-disabled\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,3,[\\\"actionsComponent\\\"]]],[[\\\"flow\\\",\\\"step\\\",\\\"subStep\\\",\\\"tab\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"formInitData\\\",\\\"onCloseTask\\\"],[[23,13,[]],[23,1,[]],[23,3,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,7,[]],[23,3,[\\\"_data\\\",\\\"defaults\\\"]],[23,9,[]],[23,0,[\\\"validateSubStepTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-end\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,7,[]],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"modelArrayRemove\\\"]],[23,8,[]],\\\"_data.steps\\\",[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,7,[]],[28,\\\"isLast\\\",[[28,\\\"get\\\",[[23,8,[]],\\\"_data.steps\\\"],null],[23,2,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"modelArrayMoveDown\\\"]],[23,8,[]],\\\"_data.steps\\\",\\\"_data.index\\\",[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,7,[]],[28,\\\"eq\\\",[[23,2,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"modelArrayMoveUp\\\"]],[23,8,[]],\\\"_data.steps\\\",\\\"_data.index\\\",[23,1,[]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,5,[]],[23,6,[]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"done\\\",[28,\\\"perform\\\",[[23,0,[\\\"completeStepsTask\\\"]],[23,6,[]]],null]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/steps-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/flows-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9nTkfTrW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@isRunning\\\",\\\"@onCancel\\\",\\\"@onSaveTask\\\",\\\"@onDash\\\",\\\"@model\\\",\\\"@adapterName\\\",\\\"@isNew\\\",\\\"@onEdit\\\",\\\"@errors\\\",\\\"@tab\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,6,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\",\\\"@hideWhenOnlyOneMenuItem\\\"],[[23,11,[]],[23,11,[\\\"subTabs\\\"]],[23,10,[]],[23,0,[\\\"editorSubPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,11,[]]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-header-2\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"edit\\\"],null],false],[0,\\\": \\\"],[1,[23,6,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"new\\\"],null],false],[0,\\\": \\\"],[1,[23,6,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,11,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"model\\\",\\\"errors\\\",\\\"isReadonly\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isDisabled\\\"],[[23,1,[]],[23,6,[]],[23,10,[]],[23,0,[\\\"isReadonly\\\"]],[23,12,[]],[23,8,[]],[23,0,[\\\"isDisabled\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,6,[]],[24,[\\\"hasErrors\\\"]],[23,10,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[false,[23,5,[]]]]],[0,\\\"\\\\n      \\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\\n      \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[28,\\\"fn\\\",[[23,9,[]],[23,6,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[23,8,[]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,0,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[[23,7,[]],[23,0,[]],[23,6,[]],true,[23,5,[]]]]]],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"disabled\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"disabled\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/flows-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/panels-dash/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    search: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    filtersAdapterName: 'products/filters',\n    init() {\n      this._super(...arguments);\n      this.tabsManager.setHeader(this.tabParent, '');\n      this.crud.addLists(this, [{\n        name: 'taxes',\n        appendPath: 'products'\n      }, 'products/lists/tags', 'products/lists/types', 'products/lists/setTypes', 'products/lists/tracking', 'products/lists/invoiceDescriptions', 'products/lists/editorSubPanels', 'settings/roundingAuto', 'units', 'units/dimensions', 'units/weight', 'statuses']);\n      const toPrintFilters = this.search.copyFilters({\n        filters: this.filters,\n        adapterName: this.filtersAdapterName,\n        altStorageProp: 'toPrintResults',\n        defaultFiltersData: {\n          resultsProperty: 'results',\n          types: ['inventory']\n        }\n      });\n      this.set('toPrintFilters', toPrintFilters);\n    },\n    loadPrintDataTask: (0, _emberConcurrency.task)(function* () {\n      const toPrintFilters = this.toPrintFilters;\n      const lastSearchSettingsProperty = this.filters.get('lastSearchSettingsProperty');\n      const lastSearchSettings = this.filters.get(lastSearchSettingsProperty);\n      toPrintFilters.set(lastSearchSettingsProperty, lastSearchSettings);\n      yield this.crud.reloadSearchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: toPrintFilters\n      });\n    })\n  });\n});","define(\"client/pods/components/flows/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hO0IyyUW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@results\\\",\\\"@onPaginationTask\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@tableViewOptions\\\"],[[23,1,[]],\\\"new-table-view--data\\\",\\\"flows/table-view/detail-row\\\",[23,2,[\\\"results\\\"]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,5,[]],[28,\\\"hash\\\",null,[[\\\"allowUploads\\\"],[true]]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@showPageNumbers\\\",\\\"@onPaginationTask\\\"],[[23,2,[]],[23,7,[]],true,[23,8,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/panels-display/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 FlowsPanelNewComponent = _exports.default = (_dec = Ember.inject.service, _class = class FlowsPanelNewComponent extends Ember.Component {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _defineProperty(this, \"adapterName\", 'flows');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/flows/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UmWMeL0i\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@onDash\\\",\\\"@onEdit\\\"],\\\"statements\\\":[[5,\\\"flows/flows-editor\\\",[],[[\\\"@model\\\",\\\"@errors\\\",\\\"@isDisplay\\\",\\\"@onDash\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@onEdit\\\",\\\"@tab\\\",\\\"@isRunning\\\"],[[23,1,[\\\"model\\\"]],[23,0,[\\\"errors\\\"]],true,[23,2,[]],false,false,[23,3,[]],[23,1,[]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/panels-edit/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 FlowsPanelEditComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class FlowsPanelEditComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", 'flows');\n      this.setup();\n    }\n    setup() {\n      const model = this.args.tab?.model;\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model\n      });\n      this.dirty = dirty;\n      this.model = model;\n      this.tabsManager.setHeader(this.args.tabParent, dirty.getData('name'));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VCFO6mk9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDisplay\\\",\\\"@onDash\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"flows/flows-editor\\\",[],[[\\\"@model\\\",\\\"@errors\\\",\\\"@onSaveTask\\\",\\\"@isNew\\\",\\\"@adapterName\\\",\\\"@onDash\\\",\\\"@isEditing\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@onCancel\\\",\\\"@isRunning\\\"],[[23,0,[\\\"dirty\\\"]],[23,0,[\\\"errors\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"component\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,1,[]],[23,0,[\\\"model\\\"]]],null],[23,0,[]]]]]],null],false,[23,0,[\\\"adapterName\\\"]],[23,2,[]],true,[23,3,[]],false,[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"cancelEditing\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"dirty\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,1,[]],[23,0,[\\\"model\\\"]]],null]]]]],null],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/panels-new/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 FlowsPanelNewComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class FlowsPanelNewComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", 'flows');\n      this.tabsManager.setHeader(this.args.tabParent, this.intl.t('new'));\n      this.setup();\n    }\n    setup() {\n      if (!this.model) {\n        const name = this.name || '';\n        const data = {\n          name\n        };\n\n        // setup new products model\n        const model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          data\n        });\n        this.model = model;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QVEaSdmY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDisplay\\\",\\\"@tab\\\",\\\"@onDash\\\"],\\\"statements\\\":[[5,\\\"flows/flows-editor\\\",[],[[\\\"@model\\\",\\\"@errors\\\",\\\"@onSaveTask\\\",\\\"@isNew\\\",\\\"@tab\\\",\\\"@onCancel\\\",\\\"@isRunning\\\"],[[23,0,[\\\"model\\\"]],[23,0,[\\\"errors\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"component\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,1,[]],[23,0,[]]]]]],null],true,[23,2,[]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/search-results-item/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this.crud.addLists(this, ['flows/lists/events', 'statuses']);\n      this._super(...arguments);\n    },\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/flows/search-results-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pLzqhq09\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-events\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"eventType\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"tagClassNames\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"statusTagClassName\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/search-results-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/tab-container/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, _nventor) {\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;\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 FlowsTabContainerComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _class = class FlowsTabContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"query\", _descriptor5, this);\n      _defineProperty(this, \"adapterName\", 'flows');\n      _defineProperty(this, \"filtersAdapterName\", 'flows/filters');\n      this.crud.addLists(this, [\n      // 'filters/count',\n      'flows/lists/menu', 'statuses']);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.filters = filters;\n    }\n    afterLoadLists() {\n      this.loadTabTask.perform();\n    }\n    *loadTabTask() {\n      const tab = this.args.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const model = loadInstructions.getData('model');\n        if (model) {\n          this.display(loadInstructions.getData('model'));\n        } else {\n          const id = loadInstructions.getData('find.id');\n          const found = yield this.crud.findTask.perform({\n            appendPath: id\n          });\n          this.display(found);\n        }\n      } else {\n        this.dash({});\n      }\n    }\n    dash(model, results) {\n      this.filters.set('showResults', false);\n      const tab = this.args.tab;\n      if (_nventor.default.isNilOrEmpty(results)) {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        filters.setData('query', '');\n        this.crud.searchRecordsTask.perform({\n          adapterName,\n          filters\n        });\n      }\n      const subTabOptions = {\n        component: 'flows/panels-dash'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }\n\n    /**\n     * display the product\n     * @param  {object} product model\n     */\n    display(model, additionalOptions = {}) {\n      this.filters.set('showResults', false);\n      const panelOptions = {\n        component: 'flows/panels-display',\n        model: model\n      };\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n    }\n    new(subTabOptions) {\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }\n    edit(model, additionalOptions) {\n      this.allowQuickAdd = false;\n      const tab = this.args.tab;\n      const panelOptions = {\n        component: 'flows/panels-edit',\n        model: model\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"query\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadTabTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTabTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dash\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"dash\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"display\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"display\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"new\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"new\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"edit\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"edit\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2EDYcBR7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[\\\"flows\\\",true,[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"afterSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"dashComponent\\\",\\\"component\\\",\\\"tab\\\"],[\\\"flows/panels-dash\\\",[23,0,[]],[23,6,[]]]]]],null],\\\"flows\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"flows\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"flows-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"classNames\\\",\\\"itemClassNames\\\",\\\"filters\\\",\\\"count\\\",\\\"onPaginationTask\\\",\\\"onSelect\\\"],[[24,[\\\"filters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[24,[\\\"filters\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"flows/search-results-item\\\",null,[[\\\"query\\\",\\\"result\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,6,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"onEdit\\\",\\\"onDisplay\\\",\\\"onDash\\\",\\\"results\\\",\\\"filters\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\"],[[23,6,[]],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"edit\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dash\\\"]]],null],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/table-view/data-detail-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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; // import { action, computed } from '@ember/object'\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  // import * as R_ from 'ramda-extension'\n  let FlowsTableViewDataDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _class = class FlowsTableViewDataDetailRowComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"isForm\", _descriptor2, this);\n    }\n    get flowPayloadSteps() {\n      const tableViewOptions = this.args.tableViewOptions || {};\n      const flow = tableViewOptions?.flow;\n      const flowType = flow?._data?.type;\n      if (flowType === 'form') {\n        this.isForm = true;\n        const formSteps = R.pipe(R.pathOr([], ['_data', 'formSteps']), R.reject(R.pathEq(['_data', 'key'], '')))(flow);\n        const steps = R.pipe(R.map(R.pathOr([], ['_data', 'steps'])), R.flatten)(formSteps);\n        return steps;\n      }\n      const steps = R.pipe(R.pathOr([], ['_data', 'steps']), R.reject(R.pathEq(['_data', 'key'], '')))(flow);\n\n      // @TODO: DARWIN what is this for???\n      // const replySteps = R.filter(R.pathEq(['_data', 'hasReply'], true))(steps)\n\n      // const gameSteps = R.filter(R.pathEq(['_data', 'actionType'], 'games'))(steps)\n\n      // const allSteps = R.concat(replySteps)(gameSteps)\n      // return allSteps\n      return steps;\n    }\n    *customSearchTask(step, filters, value) {\n      const key = step?._data?.key || '';\n      if (key) {\n        const customFilter = filters.getData('custom') || {};\n        customFilter[key] = value;\n        filters.setData('custom', customFilter);\n      }\n      yield this.args.onSearchTask.perform({\n        adapterName: 'flows/data',\n        component: this,\n        filters\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isForm\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"customSearchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"customSearchTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/flows/table-view/data-detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LT0ZvXXr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"promoCodeData\\\",\\\"step\\\",\\\"step\\\",\\\"step\\\",\\\"@model\\\",\\\"@rowIndex\\\",\\\"@isDetailRow\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isFilters\\\",\\\"@hasHeadersSort\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,8,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"flowPayloadSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@adapterName\\\",\\\"@onSort\\\"],[[28,\\\"and\\\",[[23,12,[]],[28,\\\"not-eq\\\",[[23,4,[\\\"_data\\\",\\\"key\\\"]],\\\"promo code\\\"],null]],null],[23,8,[]],[23,4,[\\\"_data\\\",\\\"key\\\"]],\\\"flows/data\\\",[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,8,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"dataKey\\\"]],\\\"custom\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,4,[\\\"_data\\\",\\\"key\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[[23,4,[\\\"_data\\\",\\\"key\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,8,[\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"filters\\\"],[\\\"flows/data\\\",[23,0,[]],[23,8,[]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"flowPayloadSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"key\\\"]],\\\"name\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,8,[\\\"_data\\\",\\\"name\\\"]],[28,\\\"or\\\",[[23,9,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"filters\\\"],[\\\"flows/data\\\",[23,0,[]],[23,8,[]]]]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"key\\\"]],\\\"email\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,8,[\\\"_data\\\",\\\"email\\\"]],[28,\\\"or\\\",[[23,9,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"filters\\\"],[\\\"flows/data\\\",[23,0,[]],[23,8,[]]]]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"key\\\"]],\\\"telephone\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,8,[\\\"_data\\\",\\\"telephone\\\"]],[28,\\\"or\\\",[[23,9,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"filters\\\"],[\\\"flows/data\\\",[23,0,[]],[23,8,[]]]]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"key\\\"]],\\\"address\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,8,[\\\"_data\\\",\\\"address\\\"]],[28,\\\"or\\\",[[23,9,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"filters\\\"],[\\\"flows/data\\\",[23,0,[]],[23,8,[]]]]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"key\\\"]],\\\"gender\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,8,[\\\"_data\\\",\\\"gender\\\"]],[28,\\\"or\\\",[[23,9,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"filters\\\"],[\\\"flows/data\\\",[23,0,[]],[23,8,[]]]]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"key\\\"]],\\\"birthday\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[23,8,[\\\"_data\\\",\\\"birthday\\\"]],[28,\\\"or\\\",[[23,9,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"filters\\\"],[\\\"flows/data\\\",[23,0,[]],[23,8,[]]]]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"dataKey\\\"]],\\\"custom\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[28,\\\"get\\\",[[23,8,[\\\"_data\\\",\\\"custom\\\"]],[23,3,[\\\"_data\\\",\\\"key\\\"]]],null],[28,\\\"or\\\",[[23,9,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"customSearchTask\\\"]],[23,3,[]],[23,8,[]]],null],true]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"detail\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[24,[\\\"detail\\\"]],[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[23,8,[]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,6,[]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[23,5,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"flowPayloadSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isTextArea\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@value\\\",\\\"@disabled\\\",\\\"@rows\\\"],[[28,\\\"get\\\",[[23,5,[\\\"_data\\\",\\\"flowPayload\\\"]],[23,2,[\\\"_data\\\",\\\"key\\\"]]],null],true,2]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"get\\\",[[23,5,[\\\"_data\\\",\\\"flowPayload\\\"]],[23,2,[\\\"_data\\\",\\\"key\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"rate\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"code\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[\\\"discount rate\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"discountRate\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[\\\"minimum cart amount\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"minRequiredAmount\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[\\\"usage limit\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"usageLimit\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"amount\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"code\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[\\\"discount amount\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"discountAmount\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[\\\"minimum cart amount\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"minRequiredAmount\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[\\\"usage limit\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"usageLimit\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"flows/flow-payload-editor\\\",[],[[\\\"@isEditing\\\",\\\"@model\\\",\\\"@flowPayloadSteps\\\",\\\"@isForm\\\"],[true,[23,5,[]],[23,0,[\\\"flowPayloadSteps\\\"]],[23,0,[\\\"isForm\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/table-view/data-detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/flows/table-view/detail-row/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-extension\"], function (_exports, _emberConcurrency, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    shortcuts: Ember.inject.service(),\n    tagName: '',\n    showUploadsRow: false,\n    hasShortcuts: true,\n    init() {\n      this._super(...arguments);\n      this.set('shortcutsMap', [{\n        keys: [['Meta', 'Enter'], ['Control', 'Enter']],\n        handler: this.quickSaveTask\n      }, {\n        keys: ['Alt', 'Enter'],\n        handler: this.showWizardModal\n      }]);\n      this.crud.addLists(this, ['filters/count', 'flows/lists/events', 'flows/lists/eventsDisplay']);\n    },\n    isReadonly: Ember.computed('isEditing', 'isNew', function () {\n      if (this.isEditing || this.isNew) {\n        return false;\n      }\n      return true;\n    }),\n    isFiltersReadonly: Ember.computed('isEditing', 'isNew', function () {\n      if (this.isEditing || this.isNew) {\n        return true;\n      }\n      return false;\n    }),\n    isProductSetsReadonly: Ember.computed('isNew', 'isEditing', 'isReadonly', function () {\n      if (this.isNew) {\n        return false;\n      }\n      let isProductSetsReadonly = false;\n\n      // option cannot be edited after saving\n      if (this.isEditing) {\n        isProductSetsReadonly = true;\n      }\n      if (!isProductSetsReadonly) {\n        isProductSetsReadonly = this.isReadonly;\n      }\n      return isProductSetsReadonly;\n    }),\n    showWizardModal(currentStep = 0) {\n      const model = this.model;\n      this.set('currentStep', 0);\n      const setType = model.getData('setType');\n      if (!setType) {\n        return this.showStepTemplate();\n      }\n\n      // if (this.currentStep === 0) {\n      return this.showStepSet();\n      // }\n\n      // return this.showStepTemplate()\n    },\n    showStepSet() {\n      this.set('currentStep', 0);\n      const model = this.model;\n      const setType = model.getData('setType');\n      const panels = R_.dotPath('crud.lists.products-lists-editorSubPanels')(this) || [];\n      const panel = R.find(R.pathEq(['_data', 'value'], setType))(panels);\n      if (panel) {\n        this.tabsManager.displaySubPanel(this, panel);\n        this.set('isSetTypeModalVisible', true);\n      }\n    },\n    showStepTemplate() {\n      this.set('currentStep', 1);\n      const panels = R_.dotPath('crud.lists.products-lists-editorSubPanels')(this) || [];\n      const panel = R.find(R.pathEq(['_data', 'value'], 'webpages'))(panels);\n      if (panel) {\n        this.tabsManager.displaySubPanel(this, panel);\n        this.set('isSetTypeModalVisible', true);\n      }\n    },\n    actions: {\n      /**\n       * sales tax selected. if salesTaxRate selected, auto set purchasesTaxRate (and vice versa)\n       */\n      salesTaxRateSelected(taxModel) {\n        const model = this.model;\n        const taxRate = taxModel.getData('value');\n        const purchasesTaxKey = model.getData('purchasesTaxRateKey');\n\n        // manually set tax rate\n        model.setData('salesTaxRate', taxRate);\n        if (purchasesTaxKey == null || purchasesTaxKey === 'auto') {\n          // auto setData values for purchases\n          // model.setData('purchasesTaxRateLabel', taxModel.getData('label'));\n          model.setData('purchasesTaxRateKey', taxModel.getData('_key'));\n          // model.setData('purchasesTaxRate', taxRate);\n        }\n      },\n      /**\n       * purchases tax selected. if salesTaxRate selected, auto set purchasesTaxRate (and vice versa)\n       */\n      purchasesTaxRateSelected(taxModel) {\n        const model = this.model;\n        const taxRate = taxModel.getData('value');\n        const salesTaxKey = model.getData('salesTaxRateKey');\n\n        // manually set tax rate\n        model.setData('purchasesTaxRate', taxRate);\n        if (salesTaxKey == null || salesTaxKey === 'auto') {\n          // auto setData values for purchases\n          // model.setData('salesTaxRateLabel', taxModel.getData('label'));\n          model.setData('salesTaxRateKey', taxModel.getData('_key'));\n          // model.setData('salesTaxRate', taxRate);\n        }\n      },\n      setSetType(setType) {\n        const model = this.model;\n        model.setData('isSet', false);\n        model.setData('isSetWithChoices', false);\n        model.setData('hasVariants', false);\n        const selectedSetType = setType.getData('value');\n        if (selectedSetType) {\n          model.setData(selectedSetType, true);\n        }\n        // this.setEditorSubPanels()\n      },\n      deselectSetType() {\n        const model = this.model;\n        model.setData('isSet', false);\n        model.setData('isSetWithChoices', false);\n        model.setData('hasVariants', false);\n      },\n      // NOT USED?\n      updateVariantChildrenList({\n        originalModel\n      }) {\n        const model = this.model;\n        return model.updateVariantChildrenList({\n          originalModel,\n          setInitialValue: this.isEditing\n        });\n      },\n      showWizardModal() {\n        this.showWizardModal();\n      },\n      closeWizardModal() {\n        this.set('isSetTypeModalVisible', false);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"showWizardModal\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"showWizardModal\"), _obj), _applyDecoratedDescriptor(_obj, \"showStepSet\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"showStepSet\"), _obj), _applyDecoratedDescriptor(_obj, \"showStepTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"showStepTemplate\"), _obj), _obj));\n});","define(\"client/pods/components/flows/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rZTR8ba4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"shop or website\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"type\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"flow_event\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"greeting\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@list\\\",\\\"@status\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,1,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"u-main-focus\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onDisplay\\\"]],[24,[\\\"model\\\"]]],null]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"flowKeyType\\\"]],\\\"shop\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"shop\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"website\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"notification\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"notification\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"bot\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"bot\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"form\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"flow_form\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"scrollingNotification\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"scrolling-notification\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isForm\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"eventType\\\"]],\\\"view\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"page view\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"eventType\\\"]],\\\"checkoutAfter\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"after checkout\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"eventType\\\"]],\\\"signup\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"signup\\\"],null],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"scrollingNotification\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"scrollingMessage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@classNames\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[\\\"u-truncate--100\\\",true,[24,[\\\"model\\\",\\\"_data\\\",\\\"eventGreeting\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"iconOnly\\\",\\\"model\\\"],[true,[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onDisplay\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"onSubmit\\\"],[\\\"fas fa-eye\\\",\\\"view\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onDisplay\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"onEdit\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/flows/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-cell/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    error: null,\n    customBlock: false,\n    // complete custom block template\n    translate: true,\n    hideIsEmpty: false,\n    hasErrorClassNames: Ember.computed('error', function () {\n      if (this.error) {\n        return 'has-error';\n      }\n      return '';\n    }),\n    show: Ember.computed('hideIsEmpty', 'value', function () {\n      const value = this.value;\n      const hideIsEmpty = this.hideIsEmpty;\n      if ((value == null || value === '') && hideIsEmpty) {\n        return false;\n      }\n      return true;\n    })\n  });\n});","define(\"client/pods/components/forms/form-cell/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LZo/MqH8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"show\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"form-cell \\\",[22,\\\"hasErrorClassNames\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"customBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[14,1],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"forms/form-label\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"translate\\\"],[[24,[\\\"label\\\"]],[24,[\\\"isRequired\\\"]],[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[14,1],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"value\\\"],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"description\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-small \\\",[22,\\\"descriptionClassNames\\\"]]]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"description\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translateDescription\\\"]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"context\\\",\\\"contextArray\\\",\\\"tab\\\",\\\"label\\\"],[[24,[\\\"errors\\\"]],[24,[\\\"context\\\"]],[24,[\\\"contextArray\\\"]],[24,[\\\"tab\\\"]],[24,[\\\"label\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-cell/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-column/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FormsFormColumnComponent extends _component.default {}\n  _exports.default = FormsFormColumnComponent;\n});","define(\"client/pods/components/forms/form-column/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8JbbgR9l\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\",\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"form-container__column\\\"],[13,6],[8],[0,\\\"\\\\n    \\\"],[14,7],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-column/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-container/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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  let FormsFormContainerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _class = class FormsFormContainerComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"inViewport\", _descriptor3, this);\n      _initializerDefineProperty(this, \"containerModel\", _descriptor4, this);\n      _initializerDefineProperty(this, \"tab\", _descriptor5, this);\n    }\n    get columnsClassName() {\n      if (!this.args.hasColumns) {\n        return '';\n      }\n      const className = 'form-container--columns';\n      if (R.isNil(this.args.colCount)) {\n        return className;\n      }\n      const colCount = Number(this.args.colCount) || 1;\n      return `${className} form-container--columns-count-${colCount}`;\n    }\n\n    /**\n     * To check if the user has access\n     * @returns {Boolean}\n     */\n    get isUserAllowed() {\n      if (this.args.debug) {\n        debugger; // eslint-disable-line\n      }\n      const isUserAllowed = this?.args?.isUserAllowed;\n      if (isUserAllowed) {\n        return true;\n      }\n\n      // const context = this.args?.context || ''\n      const containerId = this.args?.containerId || '';\n      const resourceList = this.args?.formInitData?.resourceList || [];\n      if (RA.isNilOrEmpty(resourceList)) {\n        return false;\n      }\n      if (!containerId) {\n        return false;\n      }\n      const foundResource = R.find(R.pathEq(['_data', 'value'], containerId))(resourceList);\n      const isWizard = this.args?.formInitData?.wizardContainerComponent?.isWizard;\n      if (!isWizard) {\n        return foundResource;\n      }\n      const isContainerAllowed = R.pathEq(['args', 'formInitData', 'wizardContainerComponent', 'currentStep', '_data', 'containerId'], containerId)(this);\n      return foundResource && isContainerAllowed;\n    }\n\n    /**\n     * Register guide menu and the viewport\n     * @param {HTMLDivElement} element Default provided by glimmer component\n     * @void\n     */\n    didInsert(element) {\n      // if (this.args?.formInitData?.showGuideMenu) {\n      //   this.tab = this.args?.tab || {}\n\n      // let className = ''\n      // if (this.args?.containerId) {\n      //   className = `form-container__${this.args?.containerId}`\n      // }\n\n      // this.containerModel = this.tabsManager.registerMenu({\n      //   menuId: this.args?.formInitData?.menuId,\n      //   tab: this.tab,\n      //   label: this.args?.containerId,\n      //   type: 'container',\n      //   className\n      // })\n\n      // const tabHeader = document.querySelector('.panel-temp-grid__tab-header') || document.querySelector('.panel-grid__header') || {}\n      // const tabFooter = document.querySelector('.panel-grid__footer') || {}\n\n      // const tolerenceTop = -tabHeader.getBoundingClientRect?.()?.bottom || -164\n      // const tolerenceBottom = -tabFooter.getBoundingClientRect?.()?.height || 0\n\n      // const viewportTolerance = { top: tolerenceTop, bottom: tolerenceBottom }\n      // const { onEnter, onExit } = this.inViewport.watchElement(\n      //   element,\n      //   {\n      //     viewportTolerance\n      //   }\n      // )\n      // onEnter(this.didEnterViewport.bind(this))\n      // onExit(this.didExitViewport.bind(this))\n      // }\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormContainer has entered the viewport and set isActive=true for the corresponding guide menu item\n     * @void\n     */\n    didEnterViewport() {\n      // this.tab.setMenuItemAsActive?.(this.containerModel)\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormContainer has exit the viewport and set isActive=false for the corresponding guide menu item\n     * @void\n     */\n    didExitViewport() {\n      // this.tab.setMenuItemAsInactive?.(this.containerModel)\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Unregiter the viewport\n     * @param {HTMLDivElement} element Default provided by glimmer component\n     * @void\n     */\n    willDestroy(element) {\n      // if (this?.isDestroyed === false) {\n      //   this.inViewport.stopWatching(element)\n\n      //   super.willDestroy(...arguments)\n      // }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"inViewport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"containerModel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"tab\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class);\n});","define(\"client/pods/components/forms/form-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"4VZ+v/4L\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@containerId\\\",\\\"&attrs\\\",\\\"@formInitData\\\",\\\"@isRunning\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isUserAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"form-container \\\",[23,0,[\\\"columnsClassName\\\"]],\\\" form-container__\\\",[23,1,[]]]]],[13,2],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,4,[]],[23,3,[\\\"wizardContainerComponent\\\",\\\"isReloading\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[14,5,[[23,3,[]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-divider/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FormsFormDividerComponent extends _component.default {}\n  _exports.default = FormsFormDividerComponent;\n});","define(\"client/pods/components/forms/form-divider/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Cb1wK5+Y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"form-divider\\\"],[13,1],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-divider__line\\\"],[8],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-divider/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-entity/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, R, RA, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 FormsFormEntityComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _class = class FormsFormEntityComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"inViewport\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"toggle\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isViewable\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isInView\", _descriptor7, this);\n      _initializerDefineProperty(this, \"containerModel\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_element\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_className\", _descriptor0, this);\n      _defineProperty(this, \"translate\", true);\n      _defineProperty(this, \"isModal\", false);\n      _defineProperty(this, \"toggleOnIconClassName\", 'fas fa-caret-down');\n      _defineProperty(this, \"toggleOffIconClassName\", 'fas fa-caret-up');\n    }\n    get wizardAllowed() {\n      if (!this.isWizard) {\n        return true;\n      }\n      const entities = R.path(['wizardContainerComponent', 'entities'])(this.args);\n      const isNotArray = !Array.isArray(entities);\n      if (!entities || isNotArray) {\n        return true;\n      }\n      const context = this.args.context || '';\n      if (entities.includes(context)) {\n        return true;\n      }\n      return false;\n    }\n    get isAccordianCollapsed() {\n      if (this.isAccordian && this.toggle === false) {\n        return true;\n      }\n      return false;\n    }\n    get hasErrorClassNames() {\n      const error = this.error;\n      if (!error) {\n        return '';\n      }\n      if (RA.isNilOrEmpty(error)) {\n        return '';\n      }\n      return 'has-error';\n    }\n    get isBetaAllowed() {\n      if (!this.args?.betaPath) {\n        return true;\n      }\n      return this.settings.getProp(this.args.betaPath);\n    }\n    get isMenu() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.showGuideMenu || this.args.isMenu || false;\n    }\n    get isWizard() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.wizardContainerComponent?.isWizard || this.args.isWizard || false;\n    }\n    get menuId() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.menuId || this.args?.menuId;\n    }\n    get documentationResource() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.documentationResource || this.args?.documentationResource;\n    }\n    get parentLabel() {\n      // @TODO: remove computed prop?\n      return this.args?.formContainer?.containerId || this.args?.parent;\n    }\n\n    /**\n     * @returns {String} ClassName of outer container\n     */\n    get outerContainerClassName() {\n      if (this.isWizard) {\n        return 'form-section__outer-container--wizard';\n      }\n      if (this.isMenu && !this.isInView) {\n        return 'form-section__outer-container--no-border';\n      }\n      if (this.args?.betaPath && !this.isBetaAllowed) {\n        return 'form-section__outer-container--no-border';\n      }\n      if (this.args?.isNarrowOuterContainer) {\n        return 'form-section__outer-container--no-padding';\n      }\n      return 'form-section__outer-container';\n    }\n\n    /**\n     * Register guide menu and the viewport\n     * @void\n     */\n    didInsert(element) {\n      // if (!this.isMenu) {\n      //   return\n      // }\n\n      // const menuId = this.menuId\n      // const context = this.args.context || ''\n      // this._className = context\n      //   ? `form-entity__${context}`\n      //   : ''\n\n      // this.containerModel = this.tabsManager.registerMenu({\n      //   menuId,\n      //   tab: this.args?.tab,\n      //   label: this.args?.title,\n      //   parentLabel: this.parentLabel,\n      //   type: 'sub',\n      //   className: this._className\n      // })\n\n      // if (RA.isNotNilOrEmpty(this.containerModel)) {\n      //   set(this, 'containerModel', this.containerModel)\n      //   element.classList.add(this._className)\n      // }\n\n      // this._element = element\n\n      // const tabHeader = document.querySelector('.panel-temp-grid__tab-header') || document.querySelector('.panel-grid__header') || {}\n      // const tabFooter = document.querySelector('.panel-grid__footer') || {}\n\n      // const tolerenceTop = -tabHeader.getBoundingClientRect?.()?.bottom || -164\n      // const tolerenceBottom = -tabFooter.getBoundingClientRect?.()?.height || 0\n\n      // const viewportTolerance = { top: tolerenceTop, bottom: tolerenceBottom }\n      // const { onEnter, onExit } = this.inViewport.watchElement(\n      //   this._element,\n      //   {\n      //     viewportTolerance\n      //   }\n      // )\n      // onEnter(this.didEnterViewport.bind(this))\n      // onExit(this.didExitViewport.bind(this))\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has entered the viewport and set isActive=true for the corresponding guide menu item\n     * Also to control the scroll position of the guide menu\n     * @void\n     */\n    didEnterViewport() {\n      // const subs = this.containerModel?.sub\n\n      // this.setIsInView()\n\n      // if (RA.isNilOrEmpty(subs)) {\n      //   return\n      // }\n\n      // for (const s in subs) {\n      //   const sub = subs[s]\n      //   if (sub?.className === this._className) {\n      //     const tab = this.args?.tab\n      //     tab?.setMenuItemAsActive?.(sub)\n      //     break\n      //   }\n      // }\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has exit the viewport and set isActive=false for the corresponding guide menu item\n     * @void\n     */\n    didExitViewport() {\n      // const subs = this.containerModel?.sub\n\n      // if (RA.isNilOrEmpty(subs)) {\n      //   return\n      // }\n\n      // for (const s in subs) {\n      //   const sub = subs[s]\n      //   if (sub?.className === this._className) {\n      //     const tab = this.args?.tab\n      //     tab?.setMenuItemAsInactive?.(sub)\n      //     this._scrollToActiveMenuNavItem()\n      //     break\n      //   }\n      // }\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Unregiter the viewport\n     * @void\n     */\n    willDestroy() {\n      // if (this?.isDestroyed === false) {\n      //   if (!this.isMenu) {\n      //     return\n      //   }\n\n      //   this.inViewport?.stopWatching?.(this._element)\n      //   super.willDestroy(...arguments)\n      // }\n    }\n\n    /**\n     * To set isInView, used to speed up loading\n     * @void\n     */\n    setIsInView() {\n      this.isInView = true;\n    }\n\n    /**\n     * To invoke passed in function\n     * @param {Function} toggleAction\n     */\n    preToggleAction(toggleAction) {\n      if (this.isAccordian) {\n        toggleAction();\n      }\n    }\n\n    /**\n     * Depends on isMobile to scroll different part and direction of guide menu\n     * @void\n     */\n    // _scrollToActiveMenuNavItem () {\n    //   const activeMenuItem = document.querySelector('.guide-menu-item__content.active') || {}\n    //   if (RA.isNilOrEmpty(activeMenuItem)) {\n    //     return\n    //   }\n\n    //   if (this.applicationService?.isMobile) {\n    //     const activeMenuItemWrapper = activeMenuItem.closest?.('.guide-menu-item__wrapper') || {}\n    //     if (RA.isNilOrEmpty(activeMenuItemWrapper)) {\n    //       return\n    //     }\n\n    //     nventor.goToElement({\n    //       parent: activeMenuItemWrapper,\n    //       goTo: activeMenuItem,\n    //       offset: 100,\n    //       horizontal: true\n    //     })\n    //   } else {\n    //     const guideMenuWrapper = activeMenuItem.closest?.('.guide-menu-tab__wrapper') || {}\n    //     if (RA.isNotNilOrEmpty(guideMenuWrapper)) {\n    //       return\n    //     }\n\n    //     nventor.goToElement({\n    //       parent: guideMenuWrapper,\n    //       goTo: activeMenuItem,\n    //       offset: 100\n    //     })\n    //   }\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"inViewport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isViewable\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isInView\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"containerModel\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"_className\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIsInView\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"setIsInView\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preToggleAction\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"preToggleAction\"), _class.prototype), _class);\n});","define(\"client/pods/components/forms/form-entity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LmtninE5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"toggle\\\",\\\"documentationWrapper\\\",\\\"toggleAction\\\",\\\"&default\\\",\\\"@context\\\",\\\"@isAccordian\\\",\\\"@title\\\",\\\"@betaPath\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\",\\\"@isRunning\\\",\\\"@documentationId\\\",\\\"@errors\\\",\\\"@tab\\\",\\\"@label\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isWizard\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"wizardAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,4],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[23,0,[\\\"outerContainerClassName\\\"]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,8,[]],[23,9,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/accordian-container\\\",[],[[\\\"@toggle\\\"],[[23,0,[\\\"toggle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"documentation/documentation\\\",[],[[\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@options\\\"],[[23,12,[]],[23,0,[\\\"documentationResource\\\"]],[23,5,[]],[28,\\\"hash\\\",null,[[\\\"documentationId\\\",\\\"documentationResource\\\",\\\"context\\\"],[[23,12,[]],[23,0,[\\\"documentationResource\\\"]],[23,5,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,7,[]],[23,0,[\\\"desc\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-toggle-wrapper\\\",[],[[\\\"@hasToggle\\\",\\\"@classNames\\\",\\\"@toggle\\\"],[[23,6,[]],\\\"u-full-width\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"flex-container-row flex-container--justify-start form-section__title-container\\\\n                  \\\",[28,\\\"if\\\",[[23,6,[]],\\\"form-section__title-container--accordian\\\"],null],\\\"\\\\n                  \\\",[28,\\\"if\\\",[[23,0,[\\\"isAccordianCollapsed\\\"]],\\\"form-section__title-container--accordian-collapsed\\\"],null]]]],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"form-section__title\\\\n                    \\\",[28,\\\"if\\\",[[23,6,[]],\\\"form-section__title--accordian\\\"],null]]]],[3,\\\"action\\\",[[23,0,[]],[23,0,[\\\"preToggleAction\\\"]],[23,3,[]]]],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[[23,7,[]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"timestamp\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-section__timestamp u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                          \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"timestamp\\\"]]],null],false],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"desc\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-section__description u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                          \\\"],[1,[23,0,[\\\"desc\\\"]],false],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"is-pulled-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[23,0,[\\\"toggleOnIconClassName\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                            \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[23,0,[\\\"toggleOffIconClassName\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"documentation/documentation-icon\\\",[],[[\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@updateDocumentation\\\",\\\"@component\\\"],[[23,0,[\\\"documentationResource\\\"]],[23,5,[]],[23,2,[\\\"documentation\\\"]],[23,2,[\\\"documentationId\\\"]],[23,2,[\\\"updateDocumentation\\\"]],[23,2,[]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"documentation/documentation-desc\\\",[[12,\\\"class\\\",\\\"documentation-description-title\\\"]],[[\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@context\\\"],[[23,2,[\\\"documentation\\\"]],[23,2,[\\\"documentationId\\\"]],[23,0,[\\\"documentationResource\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@isViewable\\\",\\\"@isModal\\\"],[[23,1,[]],[23,0,[\\\"isModal\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"form-section__content\\\\n              \\\",[28,\\\"if\\\",[[23,0,[\\\"isAccordian\\\"]],\\\"form-section__content-container--accordian\\\"],null],\\\"\\\\n              \\\",[23,0,[\\\"contentClassNames\\\"]],\\\"\\\\n              \\\",[23,0,[\\\"hasErrorClassNames\\\"]]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsert\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isViewable\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[14,4],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@errors\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@label\\\"],[[23,13,[]],[23,5,[]],[23,14,[]],[23,15,[]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-entity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-group/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 FormsFormGroupComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _class = class FormsFormGroupComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"inViewport\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"toggle\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isViewable\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isInView\", _descriptor7, this);\n      _initializerDefineProperty(this, \"containerModel\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_element\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_className\", _descriptor0, this);\n      _initializerDefineProperty(this, \"translate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isFlexWrapped\", _descriptor10, this);\n      _defineProperty(this, \"isModal\", false);\n      _initializerDefineProperty(this, \"isAccordian\", _descriptor11, this);\n    }\n    // toggleOnIconClassName = 'fas fa-caret-down'\n    // toggleOffIconClassName = 'fas fa-caret-up'\n\n    didInsert(element) {\n      this.element = element;\n      this._checkFlexWrap();\n      // Try both next and scheduleOnce to ensure children are rendered\n    }\n    get isAllowed() {\n      if (!this.isWizard) {\n        return true;\n      }\n      if (this.wizardAllowed) {\n        return true;\n      }\n      return false;\n    }\n    _checkFlexWrap() {\n      const style = window.getComputedStyle(this.element);\n      let isWrapped = style?.flexWrap === 'wrap';\n      if (!isWrapped) {\n        const flexDirection = style?.flexDirection;\n        isWrapped = flexDirection === 'column';\n      }\n      this.isFlexWrapped = isWrapped;\n    }\n    get _tab() {\n      return this.args.tab || this.args.formInitData?.tab;\n    }\n\n    /**\n     * To check if the user has access\n     * @returns {Boolean}\n     */\n    get isUserAllowed() {\n      if (this.args.debug) {\n        debugger; // eslint-disable-line\n      }\n      const isUserAllowed = this?.args?.isUserAllowed;\n      if (isUserAllowed) {\n        return true;\n      }\n      const context = this.args?.context || '';\n      const containerId = this.args?.containerId || '';\n      const resourceList = this.args?.formInitData?.resourceList || [];\n      if (RA.isNilOrEmpty(resourceList)) {\n        return false;\n      }\n      if (!context || !containerId) {\n        return false;\n      }\n      const foundResource = R.find(R.pathEq(['_data', 'value'], context))(resourceList);\n      const isWizard = this.args?.formInitData?.wizardContainerComponent?.isWizard;\n      if (!isWizard) {\n        return foundResource;\n      }\n      const isContainerAllowed = R.pathEq(['args', 'formInitData', 'wizardContainerComponent', 'currentStep', '_data', 'containerId'], containerId)(this);\n      return isContainerAllowed;\n    }\n    get wizardAllowed() {\n      if (!this.isWizard) {\n        return true;\n      }\n      const entities = R.path(['wizardContainerComponent', 'entities'])(this.args);\n      const isNotArray = !Array.isArray(entities);\n      if (!entities || isNotArray) {\n        return true;\n      }\n      const context = this.args.context || '';\n      if (entities.includes(context)) {\n        return true;\n      }\n      return false;\n    }\n\n    // get isAccordianCollapsed () {\n    //   if (this.isAccordian && this.toggle === false) {\n    //     return true\n    //   }\n\n    //   return false\n    // }\n\n    get hasErrorClassNames() {\n      const error = this.error;\n      if (!error) {\n        return '';\n      }\n      if (RA.isNilOrEmpty(error)) {\n        return '';\n      }\n      return 'has-error';\n    }\n    get isBetaAllowed() {\n      if (!this.args?.betaPath) {\n        return true;\n      }\n      return this.settings.getProp(this.args.betaPath);\n    }\n    get isMenu() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.showGuideMenu || this.args.isMenu || false;\n    }\n    get isWizard() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.wizardContainerComponent?.isWizard || this.args.isWizard || false;\n    }\n    get menuId() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.menuId || this.args?.menuId;\n    }\n    get documentationResource() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.documentationResource || this.args?.documentationResource;\n    }\n\n    // get parentLabel () {\n    //   // @TODO: remove computed prop?\n    //   return this.args?.formContainer?.containerId || this.args?.parent\n    // }\n\n    // get showTitleContainer () {\n    //   const hideTitleContainer = this.args?.hideTitleContainer || false\n    //   if (hideTitleContainer) {\n    //     return false\n    //   }\n\n    //   return true\n    // }\n\n    /**\n     * @returns {String} ClassName of outer container\n     */\n    get outerContainerClassName() {\n      const classNames = ['form-group__container'];\n      if (this.isAccordian) {\n        classNames.push('accordian-container--form-group');\n      }\n      if (this.isFlexWrapped) {\n        classNames.push('form-group__container--is-wrapped');\n      }\n\n      // if (this.isWizard) {\n      //   return 'form-section__outer-container--wizard'\n      // }\n\n      // if (this.isMenu && !this.isInView) {\n      //   return 'form-section__outer-container--no-border'\n      // }\n\n      // if (this.args?.betaPath && !this.isBetaAllowed) {\n      //   return 'form-section__outer-container--no-border'\n      // }\n\n      // if (this.args?.isNarrowOuterContainer) {\n      //   return 'form-section__outer-container--no-padding'\n      // }\n\n      return R.join(' ')(classNames);\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has entered the viewport and set isActive=true for the corresponding guide menu item\n     * Also to control the scroll position of the guide menu\n     * @void\n     */\n    didEnterViewport() {\n      // const subs = this.containerModel?.sub\n\n      // this.setIsInView()\n\n      // if (RA.isNilOrEmpty(subs)) {\n      //   return\n      // }\n\n      // for (const s in subs) {\n      //   const sub = subs[s]\n      //   if (sub?.className === this._className) {\n      //     const tab = this.args?.tab\n      //     tab?.setMenuItemAsActive?.(sub)\n      //     break\n      //   }\n      // }\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has exit the viewport and set isActive=false for the corresponding guide menu item\n     * @void\n     */\n    didExitViewport() {\n      // const subs = this.containerModel?.sub\n\n      // if (RA.isNilOrEmpty(subs)) {\n      //   return\n      // }\n\n      // for (const s in subs) {\n      //   const sub = subs[s]\n      //   if (sub?.className === this._className) {\n      //     const tab = this.args?.tab\n      //     tab?.setMenuItemAsInactive?.(sub)\n      //     this._scrollToActiveMenuNavItem()\n      //     break\n      //   }\n      // }\n    }\n\n    // willDestroy () {\n    //   // Clean up resize observer\n    //   if (this.resizeObserver) {\n    //     this.resizeObserver.disconnect()\n    //   }\n\n    //   super.willDestroy(...arguments)\n    // }\n\n    /**\n     * To set isInView, used to speed up loading\n     * @void\n     */\n    setIsInView() {\n      this.isInView = true;\n    }\n\n    /**\n     * To invoke passed in function\n     * @param {Function} toggleAction\n     */\n    // @action\n    // preToggleAction (toggleAction) {\n    //   if (this.isAccordian) {\n    //     toggleAction()\n    //   }\n    // }\n\n    /**\n     * Depends on isMobile to scroll different part and direction of guide menu\n     * @void\n     */\n    // _scrollToActiveMenuNavItem () {\n    //   const activeMenuItem = document.querySelector('.guide-menu-item__content.active') || {}\n    //   if (RA.isNilOrEmpty(activeMenuItem)) {\n    //     return\n    //   }\n\n    //   if (this.applicationService?.isMobile) {\n    //     const activeMenuItemWrapper = activeMenuItem.closest?.('.guide-menu-item__wrapper') || {}\n    //     if (RA.isNilOrEmpty(activeMenuItemWrapper)) {\n    //       return\n    //     }\n\n    //     nventor.goToElement({\n    //       parent: activeMenuItemWrapper,\n    //       goTo: activeMenuItem,\n    //       offset: 100,\n    //       horizontal: true\n    //     })\n    //   } else {\n    //     const guideMenuWrapper = activeMenuItem.closest?.('.guide-menu-tab__wrapper') || {}\n    //     if (RA.isNotNilOrEmpty(guideMenuWrapper)) {\n    //       return\n    //     }\n\n    //     nventor.goToElement({\n    //       parent: guideMenuWrapper,\n    //       goTo: activeMenuItem,\n    //       offset: 100\n    //     })\n    //   }\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"inViewport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isViewable\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isInView\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"containerModel\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"_className\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.translate);\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isFlexWrapped\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isAccordian\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, false, this.args.isAccordian);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_checkFlexWrap\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"_checkFlexWrap\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIsInView\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"setIsInView\"), _class.prototype), _class);\n});","define(\"client/pods/components/forms/form-group/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KTu4RB1o\",\n    \"block\": \"{\\\"symbols\\\":[\\\"accordianContainer\\\",\\\"documentationWrapper\\\",\\\"@context\\\",\\\"&default\\\",\\\"@icon\\\",\\\"@iconClassNames\\\",\\\"@isAccordian\\\",\\\"@title\\\",\\\"@formInitData\\\",\\\"@documentationIsMinimizedOverride\\\",\\\"@hideTitleContainer\\\",\\\"@contentClassNames\\\",\\\"@isAccordianExpanded\\\",\\\"&attrs\\\",\\\"@isRunning\\\",\\\"@isBasic\\\",\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],\\\"statements\\\":[[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,17,[]],[23,18,[]],[23,19,[]],[23,20,[]],[23,21,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",[23,0,[\\\"outerContainerClassName\\\"]]],[13,14],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"didInsert\\\"]]],null]]]],[[\\\"@isFormGroup\\\",\\\"@toggleIsOn\\\",\\\"@isAccordian\\\"],[true,[23,13,[]],[23,0,[\\\"isAccordian\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,15,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__content-container\\\"],[8],[0,\\\"\\\\n            \\\"],[14,4],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"documentation/documentation\\\",[],[[\\\"@isGroup\\\",\\\"@tab\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentationIsMinimized\\\",\\\"@documentationIsMinimizedOverride\\\",\\\"@options\\\"],[true,[23,0,[\\\"_tab\\\"]],[23,9,[\\\"documentationId\\\"]],[23,0,[\\\"documentationResource\\\"]],[23,3,[]],[23,9,[\\\"documentationIsMinimized\\\"]],[23,10,[]],[28,\\\"hash\\\",null,[[\\\"documentationId\\\",\\\"documentationResource\\\",\\\"context\\\"],[[23,9,[\\\"documentationId\\\"]],[23,0,[\\\"documentationResource\\\"]],[23,3,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-group__title-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,8,[]],[23,0,[\\\"desc\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"elements/accordian-btn\\\",[],[[\\\"@container\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-start form-section__title-container\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"form-section__title \\\",[28,\\\"if\\\",[[23,7,[]],\\\"form-section__title--accordian\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"                              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@iconClassNames\\\"],[[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                          \\\"],[1,[28,\\\"tt\\\",[[23,8,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"timestamp\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-section__timestamp u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                              \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"timestamp\\\"]]],null],false],[0,\\\"\\\\n                            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"desc\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-section__description u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                              \\\"],[1,[23,0,[\\\"desc\\\"]],false],[0,\\\"\\\\n                            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isAccordian\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[5,\\\"documentation/documentation-icon\\\",[],[[\\\"@isGroup\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@updateDocumentation\\\",\\\"@tab\\\",\\\"@documentationWrapper\\\"],[true,[23,0,[\\\"documentationResource\\\"]],[23,3,[]],[23,2,[\\\"documentation\\\"]],[23,2,[\\\"documentationId\\\"]],[23,2,[\\\"updateDocumentation\\\"]],[23,0,[\\\"_tab\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                        \\\"],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"documentation/documentation-icon\\\",[],[[\\\"@isGroup\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@updateDocumentation\\\",\\\"@documentationWrapper\\\",\\\"@tab\\\"],[true,[23,0,[\\\"documentationResource\\\"]],[23,3,[]],[23,2,[\\\"documentation\\\"]],[23,2,[\\\"documentationId\\\"]],[23,2,[\\\"updateDocumentation\\\"]],[23,2,[]],[23,0,[\\\"_tab\\\"]]]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isAccordian\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"documentation/documentation-desc\\\",[[12,\\\"class\\\",\\\"documentation-description-title\\\"]],[[\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentationWrapper\\\"],[[23,2,[\\\"documentation\\\"]],[23,2,[\\\"documentationId\\\"]],[23,0,[\\\"documentationResource\\\"]],[23,3,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[5,\\\"elements/accordian-dialog\\\",[[12,\\\"class\\\",[29,[\\\"form-group__content-container\\\\n                \\\",[28,\\\"if\\\",[[23,0,[\\\"isAccordian\\\"]],\\\"form-group-container--accordian\\\"],null],\\\"\\\\n                \\\",[23,12,[]],\\\"\\\\n                \\\",[23,0,[\\\"hasErrorClassNames\\\"]]]]]],[[\\\"@container\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isViewable\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isAccordian\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"documentation/documentation-icon\\\",[],[[\\\"@isGroup\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@updateDocumentation\\\",\\\"@tab\\\",\\\"@documentationWrapper\\\"],[true,[23,0,[\\\"documentationResource\\\"]],[23,3,[]],[23,2,[\\\"documentation\\\"]],[23,2,[\\\"documentationId\\\"]],[23,2,[\\\"updateDocumentation\\\"]],[23,0,[\\\"_tab\\\"]],[23,2,[]]]]],[0,\\\"\\\\n                  \\\"],[5,\\\"documentation/documentation-desc\\\",[[12,\\\"class\\\",\\\"documentation-description-title\\\"]],[[\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentationWrapper\\\"],[[23,2,[\\\"documentation\\\"]],[23,2,[\\\"documentationId\\\"]],[23,0,[\\\"documentationResource\\\"]],[23,3,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[14,4],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-group/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-input-row/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    documentationService: Ember.inject.service('documentation'),\n    intl: Ember.inject.service(),\n    validationService: Ember.inject.service('validation'),\n    tagName: '',\n    error: null,\n    customBlock: false,\n    // complete custom block template\n    translate: true,\n    hideIsEmpty: false,\n    didInsertElement() {\n      this._super(...arguments);\n      this.setErrorsTracker();\n    },\n    _tab: Ember.computed('tab', function () {\n      if (this.tab) {\n        return this.tab;\n      }\n      const formInitData = this.formInitData;\n      return formInitData?.tab;\n    }),\n    /**\n     * Stable anchor id a New Feature tour step points at.\n     * formInitData.documentationResource wins over documentationResource.\n     * @return {string|undefined} undefined when the id cannot be built, so the attribute is omitted\n     */\n    guideId: Ember.computed('documentationId', 'documentationResource', 'context', 'formInitData.documentationResource', function () {\n      const documentationResource = this.formInitData?.documentationResource || this.documentationResource;\n      return this.documentationService.resolveGuideId({\n        documentationId: this.documentationId,\n        documentationResource,\n        context: this.context\n      });\n    }),\n    hasErrorClassNames: Ember.computed('error', 'validationError', function () {\n      if (this.validationError) {\n        return 'has-error';\n      }\n      const error = this.error;\n      if (error) {\n        if (RA.isNilOrEmpty(error)) {\n          return '';\n        }\n        return 'has-error';\n      }\n      return '';\n    }),\n    showTemplate: Ember.computed('hideIsEmpty', 'value', 'model', 'context', 'formInitData.wizardContainerComponent.updateProps.[]', function () {\n      const context = this.context || '';\n      const value = this.value || this.get(`model._data.${context}`);\n      const hideIsEmpty = this.hideIsEmpty;\n      if ((value == null || value === '') && hideIsEmpty) {\n        return false;\n      }\n      const isWizard = this?.formInitData?.wizardContainerComponent?.isWizard;\n      if (!isWizard) {\n        return true;\n      }\n      const updateProps = R.pathOr([], ['formInitData', 'wizardContainerComponent', 'updateProps'])(this);\n      const isFound = R.includes(context)(updateProps);\n      if (isFound) {\n        return true;\n      }\n      return false;\n    }),\n    validationError: Ember.computed('_tab', '_tab.errors.[]', 'errors', 'validationErrors.[]', function () {\n      if (this.debug) {\n        debugger; // eslint-disable-line\n      }\n      const errors = this.errors || {};\n      if (!R.isEmpty(errors)) {\n        // if (!this.get('fastboot.isFastBoot')) {\n        const context = this.context;\n        const found = errors[context];\n        if (found) {\n          if (found.message) {\n            return this.intl.t(found.message);\n          }\n          return this.intl.t(found.message);\n        }\n      }\n      const validationErrors = this.validationErrors || [];\n      if (validationErrors?.length > 0) {\n        const found = R.find(R.pathEq(['context', 'key'], this.context))(validationErrors);\n        if (found) {\n          return this.intl.t(found.message);\n        }\n      }\n      return this.validationService.getValidationErrorMessage({\n        tab: this._tab,\n        context: this.context\n      });\n    }),\n    /**\n     * call fn on TabsManagerModel to set ErrorsTracker\n     */\n    setErrorsTracker() {\n      // @deprecated?\n      const tab = this._tab;\n      const instanceId = this.model?.instanceId;\n      if (tab && instanceId) {\n        tab?.setErrorTrackerOnModel?.({\n          context: this.context,\n          contextArray: this.contextArray || [],\n          label: this.label,\n          instanceId: instanceId,\n          isModal: this.isModal,\n          tabId: tab?.id\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/forms/form-input-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+626/5jY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@moreDescriptionClassNames\\\",\\\"@moreDescriptionValue\\\",\\\"@inputValue\\\",\\\"@translateMoreDescription\\\",\\\"@moreDescription\\\",\\\"@descriptionClassNames\\\",\\\"@descriptionValue\\\",\\\"@translateDescription\\\",\\\"@description\\\",\\\"@value\\\",\\\"&default\\\",\\\"@context\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@formInputClassNames\\\",\\\"@overrideFormInputClassNames\\\",\\\"&attrs\\\",\\\"@rowClassNames\\\",\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],\\\"statements\\\":[[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,22,[]],[23,23,[]],[23,24,[]],[23,25,[]],[23,26,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[13,20],[12,\\\"class\\\",[29,[\\\"form-input-row is-form-content \\\",[23,21,[]],\\\" \\\",[23,0,[\\\"hasErrorClassNames\\\"]]]]],[12,\\\"data-guide-id\\\",[23,0,[\\\"guideId\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"customBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[14,11],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@isBold\\\",\\\"@context\\\",\\\"@documentationId\\\",\\\"@documentationIsLabel\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@tab\\\"],[true,[23,12,[]],[23,13,[]],true,[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,0,[\\\"translate\\\"]],[23,0,[\\\"_tab\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input\\\",[],[[\\\"@formInputClassNames\\\",\\\"@overrideFormInputClassNames\\\"],[[23,18,[]],[23,19,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[25,11]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[14,11],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[23,10,[]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[29,[\\\"u-desc u-desc--mini u-desc--italics \\\",[23,6,[]]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,9,[]]],[[\\\"translate\\\",\\\"inputValue\\\",\\\"descriptionValue\\\"],[[23,8,[]],[23,3,[]],[23,7,[]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[29,[\\\"u-desc u-desc--mini u-desc--italics \\\",[23,1,[]]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,5,[]]],[[\\\"translate\\\",\\\"inputValue\\\",\\\"moreDescriptionValue\\\"],[[23,4,[]],[23,3,[]],[23,2,[]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"validationError\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"validation-error\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"validationError\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,12,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-input-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-input/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/forms/form-input/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"84yPGe2a\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\",\\\"&default\\\"],\\\"statements\\\":[[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[28,\\\"unless\\\",[[24,[\\\"overrideFormInputClassNames\\\"]],\\\"form__input\\\"],null],\\\" \\\",[22,\\\"formInputClassNames\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[14,6],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-input/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-label/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    translate: true,\n    classNames: ['form-grid__item', 'form-label']\n  });\n});","define(\"client/pods/components/forms/form-label/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SxXelkrQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"customBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[14,1],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[14,1],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isRequired\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-input-required\\\"],[8],[0,\\\"*\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"documentationResource\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"documentation/documentation\\\",[],[[\\\"@options\\\"],[[28,\\\"hash\\\",null,[[\\\"documentationId\\\",\\\"documentationResource\\\",\\\"context\\\"],[[24,[\\\"documentationId\\\"]],[24,[\\\"documentationResource\\\"]],[24,[\\\"context\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isRequired\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-input-required\\\"],[8],[0,\\\"*\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"documentationResource\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"documentation/documentation\\\",[],[[\\\"@options\\\"],[[28,\\\"hash\\\",null,[[\\\"documentationId\\\",\\\"documentationResource\\\",\\\"context\\\"],[[24,[\\\"documentationId\\\"]],[24,[\\\"documentationResource\\\"]],[24,[\\\"context\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-label/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-row/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    validationService: Ember.inject.service('validation'),\n    tagName: '',\n    error: null,\n    // classNameBindings: ['error:has-error'],\n    customBlock: false,\n    // complete custom block template\n    translate: true,\n    hideIsEmpty: false,\n    isViewable: true,\n    didInsertElement() {\n      this._super(...arguments);\n      this.setErrorsTracker();\n    },\n    _tab: Ember.computed('tab', function () {\n      if (this.tab) {\n        return this.tab;\n      }\n      const formInitData = this.formInitData;\n      return formInitData?.tab;\n    }),\n    hasErrorClassNames: Ember.computed('error', 'validationError', function () {\n      if (this.validationError) {\n        return 'has-error';\n      }\n      const error = this.error;\n      if (error) {\n        if (RA.isNilOrEmpty(error)) {\n          return '';\n        }\n        return 'has-error';\n      }\n      return '';\n    }),\n    showTemplate: Ember.computed('hideIsEmpty', 'value', 'model', 'context', 'isViewable', 'formInitData.wizardContainerComponent.updateProps.[]', function () {\n      if (!this.isViewable) {\n        return false;\n      }\n      const context = this.context || '';\n      const value = this.value || this.get(`model._data.${context}`);\n      const hideIsEmpty = this.hideIsEmpty;\n      if ((value == null || value === '') && hideIsEmpty) {\n        return false;\n      }\n      const isWizard = this?.formInitData?.wizardContainerComponent?.isWizard;\n      if (!isWizard) {\n        return true;\n      }\n      const updateProps = R.pathOr([], ['formInitData', 'wizardContainerComponent', 'updateProps'])(this);\n      const isFound = R.includes(context)(updateProps);\n      if (isFound) {\n        return true;\n      }\n      return false;\n    }),\n    vavalidationError: Ember.computed('_tab', '_tab.errors.[]', 'errors', 'validationErrors.[]', function () {\n      const errors = this.errors || {};\n      if (!R.isEmpty(errors)) {\n        const context = this.context;\n        const found = errors[context];\n        if (found) {\n          if (found.message) {\n            return this.intl.t(found.message);\n          }\n          return this.intl.t(found.message);\n        }\n      }\n      const validationErrors = this.validationErrors || [];\n      if (validationErrors?.length > 0) {\n        const found = R.find(R.pathEq(['context', 'key'], this.context))(validationErrors);\n        if (found) {\n          return this.intl.t(found.message);\n        }\n      }\n      const tab = this._tab;\n      return this.validationService.getValidationErrorMessage({\n        tab,\n        errors: this.errors,\n        context: this.context\n      });\n    }),\n    setErrorsTracker() {\n      // @deprecated?\n      const tab = this._tab;\n      const instanceId = this.model?.instanceId;\n      if (tab && instanceId) {\n        tab?.setErrorTrackerOnModel?.({\n          context: this.context,\n          contextArray: this.contextArray || [],\n          label: this.label,\n          instanceId: instanceId,\n          isModal: this.isModal,\n          tabId: tab?.id\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/forms/form-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"f7g7+78O\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@descriptionClassNames\\\",\\\"@translateDescription\\\",\\\"@description\\\",\\\"@value\\\",\\\"&default\\\",\\\"@context\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@labelClassNames\\\",\\\"@rowClassNames\\\",\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],\\\"statements\\\":[[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,18,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"form-row is-form-content \\\",[23,13,[]],\\\" \\\",[23,0,[\\\"hasErrorClassNames\\\"]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"customBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[14,5],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@isBold\\\",\\\"@context\\\",\\\"@documentationId\\\",\\\"@documentationIsLabel\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@translate\\\",\\\"@tab\\\"],[true,[23,6,[]],[23,7,[]],true,[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,0,[\\\"translate\\\"]],[23,0,[\\\"_tab\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,5]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[14,5],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,4,[]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[29,[\\\"u-desc u-desc--mini u-desc--italics \\\",[23,1,[]]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,3,[]]],[[\\\"translate\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"validationError\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"validation-error\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"validationError\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,6,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-section/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @deprecated\n  // Should use FormEntity for new features\n  var _default = _exports.default = Ember.Component.extend({\n    inViewport: Ember.inject.service(),\n    tagName: 'div',\n    classNameBindings: ['getClassNames', 'classNames'],\n    getClassNames: Ember.computed('betaPath', 'isBetaAllowed', 'isInView', 'isNarrowOuterContainer', function () {\n      if (this.isMenu && !this.isInView) {\n        return 'form-section__outer-container--no-border';\n      }\n      if (this.betaPath && !this.isBetaAllowed) {\n        return 'form-section__outer-container--no-border';\n      }\n      if (this.isNarrowOuterContainer) {\n        return 'form-section__outer-container--no-padding';\n      }\n      return 'form-section__outer-container';\n    }),\n    translate: true,\n    toggle: true,\n    isModal: false,\n    toggleOnIconClassName: 'fas fa-caret-down',\n    toggleOffIconClassName: 'fas fa-caret-up',\n    icon: '',\n    iconClassNames: '',\n    isViewable: true,\n    isAccordian: false,\n    isInView: false,\n    /**\n     * Register guide menu and the viewport\n     * @void\n     */\n    didInsertElement: function () {\n      this._super(...arguments);\n      if (this.isMenu) {\n        const menuId = this.menuId;\n        const containerModel = this.tabsManager.registerMenu({\n          menuId,\n          tab: this.tab,\n          label: this.title,\n          parentLabel: this.parent,\n          type: 'sub',\n          className: this.elementId\n        });\n        if (RA.isNotNilOrEmpty(containerModel)) {\n          this.set('containerModel', containerModel);\n          this.element?.classList?.add(this.elementId);\n        }\n\n        // const loader = this.element\n\n        // const tabHeader = document.querySelector('.panel-grid__header') || {}\n        // const tabFooter = document.querySelector('.panel-grid__footer') || {}\n\n        // const tolerenceTop = -tabHeader.getBoundingClientRect?.()?.bottom || 0\n        // const tolerenceBottom = -tabFooter.getBoundingClientRect?.()?.height || 0\n\n        // const viewportTolerance = { top: tolerenceTop, bottom: tolerenceBottom }\n        // const { onEnter, onExit } = this.inViewport.watchElement(\n        //   loader,\n        //   {\n        //     viewportTolerance\n        //   }\n        // )\n        // onEnter(this.didEnterViewport.bind(this))\n        // onExit(this.didExitViewport.bind(this))\n      }\n    },\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has entered the viewport and set isActive=true for the corresponding guide menu item\n     * @void\n     */\n    didEnterViewport() {\n      const containerModel = this.get('containerModel');\n      const subs = containerModel?.sub;\n      this.set('isInView', true);\n      if (RA.isNotNilOrEmpty(subs)) {\n        for (const s in subs) {\n          const sub = subs[s];\n          if (sub.className === this.elementId) {\n            this.tab.setMenuItemAsActive(sub);\n            break;\n          }\n        }\n      }\n    },\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has exit the viewport and set isActive=false for the corresponding guide menu item\n     * @void\n     */\n    didExitViewport() {\n      const containerModel = this.get('containerModel');\n      const subs = containerModel?.sub;\n      if (RA.isNotNilOrEmpty(subs)) {\n        for (const s in subs) {\n          const sub = subs[s];\n          if (sub.className === this.elementId) {\n            this.tab.setMenuItemAsInactive(sub);\n            break;\n          }\n        }\n      }\n    },\n    /**\n     * Hooks of ember-in-viewport\n     * Unregiter the viewport\n     * @void\n     */\n    willDestroy() {\n      if (this?.isDestroyed === false) {\n        if (this.isMenu) {\n          const loader = this.element;\n          this?.inViewport?.stopWatching?.(loader);\n          this._super(...arguments);\n        }\n      }\n    },\n    isAccordianCollapsed: Ember.computed('toggle', 'isAccordian', function () {\n      if (this.isAccordian && this.toggle === false) {\n        return true;\n      }\n      return false;\n    }),\n    hasErrorClassNames: Ember.computed('error', function () {\n      const error = this.error;\n      if (error) {\n        if (RA.isNilOrEmpty(error)) {\n          return '';\n        }\n        return 'has-error';\n      }\n      return '';\n    }),\n    isBetaAllowed: Ember.computed('betaPath', function () {\n      if (!this.betaPath) {\n        return true;\n      }\n      return this.settings.getProp(this.betaPath);\n    }),\n    loadControl: Ember.computed('isLazyLoad', 'isViewable', 'isInView', function () {\n      let isLazyLoad = this.isLazyLoad;\n      if (R.isNil(isLazyLoad)) {\n        isLazyLoad = true;\n      }\n      if (isLazyLoad && this.isMenu) {\n        return this.isViewable && this.isInView;\n      }\n      return true;\n    }),\n    actions: {\n      preToggleAction(toggleAction) {\n        if (this.isAccordian) {\n          toggleAction();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/forms/form-section/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wYTSejqW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\",\\\"@contentClassNames\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"loadControl\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[22,\\\"isRunning\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@contentClassNames\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[14,7],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-section/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-sub-group/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 FormsFormSubGroupComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember.computed('args.isAccordianExpanded'), _dec13 = Ember._action, _dec14 = Ember._action, _class = class FormsFormSubGroupComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"inViewport\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasBorder\", _descriptor5, this);\n      _initializerDefineProperty(this, \"toggle\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isViewable\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isInView\", _descriptor8, this);\n      _initializerDefineProperty(this, \"containerModel\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_element\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_className\", _descriptor1, this);\n      _initializerDefineProperty(this, \"translate\", _descriptor10, this);\n      _defineProperty(this, \"isModal\", false);\n      _initializerDefineProperty(this, \"isAccordian\", _descriptor11, this);\n    }\n    get isAccordianExpanded() {\n      // this is required to turn on expanded state for all sub groups\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.isAccordianExpanded);\n    }\n\n    // toggleOnIconClassName = 'fas fa-caret-down'\n    // toggleOffIconClassName = 'fas fa-caret-up'\n\n    get _tab() {\n      return this.args.tab || this.args.formInitData?.tab;\n    }\n\n    /**\n     * To check if the user has access\n     * @returns {Boolean}\n     */\n    get isUserAllowed() {\n      if (this.args.debug) {\n        debugger; // eslint-disable-line\n      }\n      const isUserAllowed = this?.args?.isUserAllowed;\n      if (isUserAllowed) {\n        return true;\n      }\n      const context = this.args?.context || '';\n      const containerId = this.args?.containerId || '';\n      const resourceList = this.args?.formInitData?.resourceList || [];\n      if (RA.isNilOrEmpty(resourceList)) {\n        return false;\n      }\n      if (!context || !containerId) {\n        return false;\n      }\n      const foundResource = R.find(R.pathEq(['_data', 'value'], context))(resourceList);\n      const isWizard = this.args?.formInitData?.wizardContainerComponent?.isWizard;\n      if (!isWizard) {\n        return foundResource;\n      }\n      const isContainerAllowed = R.pathEq(['args', 'formInitData', 'wizardContainerComponent', 'currentStep', '_data', 'containerId'], containerId)(this);\n      return isContainerAllowed;\n    }\n    get wizardAllowed() {\n      if (!this.isWizard) {\n        return true;\n      }\n      const entities = R.path(['wizardContainerComponent', 'entities'])(this.args);\n      const isNotArray = !Array.isArray(entities);\n      if (!entities || isNotArray) {\n        return true;\n      }\n      const context = this.args.context || '';\n      if (entities.includes(context)) {\n        return true;\n      }\n      return false;\n    }\n\n    // get isAccordianCollapsed () {\n    //   if (this.isAccordian && this.toggle === false) {\n    //     return true\n    //   }\n\n    //   return false\n    // }\n\n    get hasErrorClassNames() {\n      const error = this.error;\n      if (!error) {\n        return '';\n      }\n      if (RA.isNilOrEmpty(error)) {\n        return '';\n      }\n      return 'has-error';\n    }\n    get isBetaAllowed() {\n      if (!this.args?.betaPath) {\n        return true;\n      }\n      return this.settings.getProp(this.args.betaPath);\n    }\n    get isMenu() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.showGuideMenu || this.args.isMenu || false;\n    }\n    get isWizard() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.wizardContainerComponent?.isWizard || this.args.isWizard || false;\n    }\n    get menuId() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.menuId || this.args?.menuId;\n    }\n    get documentationResource() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.documentationResource || this.args?.documentationResource;\n    }\n\n    // get parentLabel () {\n    //   // @TODO: remove computed prop?\n    //   return this.args?.formContainer?.containerId || this.args?.parent\n    // }\n\n    // get showTitleContainer () {\n    //   const hideTitleContainer = this.args?.hideTitleContainer || false\n    //   if (hideTitleContainer) {\n    //     return false\n    //   }\n\n    //   return true\n    // }\n\n    /**\n     * @returns {String} ClassName of outer container\n     */\n    get outerContainerClassName() {\n      const classNames = ['form-sub-group__container'];\n      if (this.hasBorder) {\n        classNames.push('form-sub-group__container--has-border');\n      }\n\n      // if (this.isWizard) {\n      //   return 'form-section__outer-container--wizard'\n      // }\n\n      // if (this.isMenu && !this.isInView) {\n      //   return 'form-section__outer-container--no-border'\n      // }\n\n      // if (this.args?.betaPath && !this.isBetaAllowed) {\n      //   return 'form-section__outer-container--no-border'\n      // }\n\n      // if (this.args?.isNarrowOuterContainer) {\n      //   return 'form-section__outer-container--no-padding'\n      // }\n\n      return R.join(' ')(classNames);\n    }\n\n    /**\n     * Register guide menu and the viewport\n     * @void\n     */\n    didInsert(element) {\n      // if (!this.isMenu) {\n      //   return\n      // }\n\n      // const menuId = this.menuId\n      // const context = this.args.context || ''\n      // this._className = context\n      //   ? `form-entity__${context}`\n      //   : ''\n\n      // this.containerModel = this.tabsManager.registerMenu({\n      //   menuId,\n      //   tab: this.args?.tab,\n      //   label: this.args?.title,\n      //   parentLabel: this.parentLabel,\n      //   type: 'sub',\n      //   className: this._className\n      // })\n\n      // if (RA.isNotNilOrEmpty(this.containerModel)) {\n      //   set(this, 'containerModel', this.containerModel)\n      //   element.classList.add(this._className)\n      // }\n\n      // this._element = element\n\n      // const tabHeader = document.querySelector('.panel-temp-grid__tab-header') || document.querySelector('.panel-grid__header') || {}\n      // const tabFooter = document.querySelector('.panel-grid__footer') || {}\n\n      // const tolerenceTop = -tabHeader.getBoundingClientRect?.()?.bottom || -164\n      // const tolerenceBottom = -tabFooter.getBoundingClientRect?.()?.height || 0\n\n      // const viewportTolerance = { top: tolerenceTop, bottom: tolerenceBottom }\n      // const { onEnter, onExit } = this.inViewport.watchElement(\n      //   this._element,\n      //   {\n      //     viewportTolerance\n      //   }\n      // )\n      // onEnter(this.didEnterViewport.bind(this))\n      // onExit(this.didExitViewport.bind(this))\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has entered the viewport and set isActive=true for the corresponding guide menu item\n     * Also to control the scroll position of the guide menu\n     * @void\n     */\n    didEnterViewport() {\n      // const subs = this.containerModel?.sub\n\n      // this.setIsInView()\n\n      // if (RA.isNilOrEmpty(subs)) {\n      //   return\n      // }\n\n      // for (const s in subs) {\n      //   const sub = subs[s]\n      //   if (sub?.className === this._className) {\n      //     const tab = this.args?.tab\n      //     tab?.setMenuItemAsActive?.(sub)\n      //     break\n      //   }\n      // }\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has exit the viewport and set isActive=false for the corresponding guide menu item\n     * @void\n     */\n    didExitViewport() {\n      // const subs = this.containerModel?.sub\n\n      // if (RA.isNilOrEmpty(subs)) {\n      //   return\n      // }\n\n      // for (const s in subs) {\n      //   const sub = subs[s]\n      //   if (sub?.className === this._className) {\n      //     const tab = this.args?.tab\n      //     tab?.setMenuItemAsInactive?.(sub)\n      //     this._scrollToActiveMenuNavItem()\n      //     break\n      //   }\n      // }\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Unregiter the viewport\n     * @void\n     */\n    willDestroy() {\n      // if (this?.isDestroyed === false) {\n      //   if (!this.isMenu) {\n      //     return\n      //   }\n\n      //   this.inViewport?.stopWatching?.(this._element)\n      //   super.willDestroy(...arguments)\n      // }\n    }\n\n    /**\n     * To set isInView, used to speed up loading\n     * @void\n     */\n    setIsInView() {\n      this.isInView = true;\n    }\n\n    /**\n     * To invoke passed in function\n     * @param {Function} toggleAction\n     */\n    // @action\n    // preToggleAction (toggleAction) {\n    //   if (this.isAccordian) {\n    //     toggleAction()\n    //   }\n    // }\n\n    /**\n     * Depends on isMobile to scroll different part and direction of guide menu\n     * @void\n     */\n    // _scrollToActiveMenuNavItem () {\n    //   const activeMenuItem = document.querySelector('.guide-menu-item__content.active') || {}\n    //   if (RA.isNilOrEmpty(activeMenuItem)) {\n    //     return\n    //   }\n\n    //   if (this.applicationService?.isMobile) {\n    //     const activeMenuItemWrapper = activeMenuItem.closest?.('.guide-menu-item__wrapper') || {}\n    //     if (RA.isNilOrEmpty(activeMenuItemWrapper)) {\n    //       return\n    //     }\n\n    //     nventor.goToElement({\n    //       parent: activeMenuItemWrapper,\n    //       goTo: activeMenuItem,\n    //       offset: 100,\n    //       horizontal: true\n    //     })\n    //   } else {\n    //     const guideMenuWrapper = activeMenuItem.closest?.('.guide-menu-tab__wrapper') || {}\n    //     if (RA.isNotNilOrEmpty(guideMenuWrapper)) {\n    //       return\n    //     }\n\n    //     nventor.goToElement({\n    //       parent: guideMenuWrapper,\n    //       goTo: activeMenuItem,\n    //       offset: 100\n    //     })\n    //   }\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"inViewport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasBorder\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.hasBorder);\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isViewable\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isInView\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"containerModel\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"_className\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.translate);\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isAccordian\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, false, this.args.isAccordian);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isAccordianExpanded\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"isAccordianExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIsInView\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"setIsInView\"), _class.prototype), _class);\n});","define(\"client/pods/components/forms/form-sub-group/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uCfRdKLm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"accordianContainer\\\",\\\"&default\\\",\\\"@contentClassNames\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@progress\\\",\\\"@desc\\\",\\\"@timestamp\\\",\\\"@title\\\",\\\"@badge\\\",\\\"@statusLabel\\\",\\\"@statusBadgeClassNames\\\",\\\"@imageUuid\\\",\\\"@isReadonly\\\",\\\"@isAccordianAlwaysExpanded\\\",\\\"@btnEditLabel\\\",\\\"@btnDeleteLabel\\\",\\\"@onEdit\\\",\\\"@onDelete\\\",\\\"@isAccordian\\\",\\\"@hasStatusBadge\\\",\\\"&attrs\\\",\\\"@isRunning\\\",\\\"@isElementToggler\\\",\\\"@onToggleAccordian\\\",\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],\\\"statements\\\":[[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,26,[]],[23,27,[]],[23,28,[]],[23,29,[]],[23,30,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isWizard\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"wizardAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[[23,0,[\\\"outerContainerClassName\\\"]]]]],[13,22],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,23,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"accordian-container--form-group\\\"]],[[\\\"@toggleIsOn\\\",\\\"@isElementToggler\\\",\\\"@isAccordian\\\",\\\"@onToggleAccordian\\\",\\\"@isAlwaysExpanded\\\"],[[23,0,[\\\"isAccordianExpanded\\\"]],[23,24,[]],[23,0,[\\\"isAccordian\\\"]],[23,25,[]],[23,15,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,9,[]],[23,7,[]],[23,13,[]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/accordian-btn\\\",[],[[\\\"@isReadonly\\\",\\\"@container\\\",\\\"@isAlwaysExpanded\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@btnEditLabel\\\",\\\"@btnDeleteLabel\\\",\\\"@onEdit\\\",\\\"@onDelete\\\",\\\"@hideToggleIcon\\\"],[[23,14,[]],[23,1,[]],[23,15,[]],[23,15,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,18,[]],[23,19,[]],[28,\\\"not\\\",[[25,2]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-start form-section__title-container form-sub-group__title\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-section__sub-title-image\\\"],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@image\\\",\\\"@height\\\"],[[23,13,[]],40]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"form-section__sub-title form-section__title \\\",[28,\\\"if\\\",[[23,20,[]],\\\"form-section__title--accordian\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,21,[]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@statusLabel\\\",\\\"@statusBadgeClassNames\\\"],[[23,11,[]],[23,12,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"form-sub-group__title-with-badge\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[[23,9,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"form-sub-group__badge\\\"],[8],[1,[23,10,[]],false],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"tt\\\",[[23,9,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-section__timestamp u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"dateTime\\\",[[23,8,[]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-section__description u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[23,7,[]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-sub-group__progress\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[23,6,[\\\"label\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"progress\\\",true],[10,\\\"class\\\",\\\"progress is-primary\\\"],[11,\\\"value\\\",[23,6,[\\\"percent\\\"]]],[10,\\\"max\\\",\\\"100\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,6,[\\\"percent\\\"]],false],[0,\\\"%\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/accordian-dialog\\\",[[12,\\\"class\\\",[29,[\\\"form-sub-group__content-container\\\\n                \\\",[28,\\\"if\\\",[[23,0,[\\\"isAccordian\\\"]],\\\"form-sub-group-container--accordian\\\"],null],\\\"\\\\n                \\\",[23,3,[]],\\\"\\\\n                \\\",[23,0,[\\\"hasErrorClassNames\\\"]]]]]],[[\\\"@container\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isViewable\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@errors\\\",\\\"@context\\\",\\\"@tab\\\"],[[23,4,[]],[23,5,[]],[23,0,[\\\"_tab\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-sub-group/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-sub-section/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @deprecated. use form-sub-group instead.\n   */\n\n  class FormsFormSubSection extends _component.default {\n    get translate() {\n      return R.pathOr(true, ['args', 'translate'])(this);\n    }\n  }\n  _exports.default = FormsFormSubSection;\n});","define(\"client/pods/components/forms/form-sub-section/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WsBSkaN9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@label\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-sub-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-sub-section__label\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,1,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-sub-section__content\\\"],[8],[0,\\\"\\\\n    \\\"],[14,2],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-sub-section/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-table/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, R, RA, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 FormsFormSubGroupComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._action, _dec12 = Ember._action, _class = class FormsFormSubGroupComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"inViewport\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"toggle\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isViewable\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isInView\", _descriptor7, this);\n      _initializerDefineProperty(this, \"containerModel\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_element\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_className\", _descriptor0, this);\n      _initializerDefineProperty(this, \"translate\", _descriptor1, this);\n      _defineProperty(this, \"isModal\", false);\n      _initializerDefineProperty(this, \"isAccordian\", _descriptor10, this);\n    }\n    // toggleOnIconClassName = 'fas fa-caret-down'\n    // toggleOffIconClassName = 'fas fa-caret-up'\n\n    get _tab() {\n      return this.args.tab || this.args.formInitData?.tab;\n    }\n\n    /**\n     * To check if the user has access\n     * @returns {Boolean}\n     */\n    get isUserAllowed() {\n      if (this.args.debug) {\n        debugger; // eslint-disable-line\n      }\n      const isUserAllowed = this?.args?.isUserAllowed;\n      if (isUserAllowed) {\n        return true;\n      }\n      const context = this.args?.context || '';\n      const containerId = this.args?.containerId || '';\n      const resourceList = this.args?.formInitData?.resourceList || [];\n      if (RA.isNilOrEmpty(resourceList)) {\n        return false;\n      }\n      if (!context || !containerId) {\n        return false;\n      }\n      const foundResource = R.find(R.pathEq(['_data', 'value'], context))(resourceList);\n      const isWizard = this.args?.formInitData?.wizardContainerComponent?.isWizard;\n      if (!isWizard) {\n        return foundResource;\n      }\n      const isContainerAllowed = R.pathEq(['args', 'formInitData', 'wizardContainerComponent', 'currentStep', '_data', 'containerId'], containerId)(this);\n      return isContainerAllowed;\n    }\n    get wizardAllowed() {\n      if (!this.isWizard) {\n        return true;\n      }\n      const entities = R.path(['wizardContainerComponent', 'entities'])(this.args);\n      const isNotArray = !Array.isArray(entities);\n      if (!entities || isNotArray) {\n        return true;\n      }\n      const context = this.args.context || '';\n      if (entities.includes(context)) {\n        return true;\n      }\n      return false;\n    }\n\n    // get isAccordianCollapsed () {\n    //   if (this.isAccordian && this.toggle === false) {\n    //     return true\n    //   }\n\n    //   return false\n    // }\n\n    get hasErrorClassNames() {\n      const error = this.error;\n      if (!error) {\n        return '';\n      }\n      if (RA.isNilOrEmpty(error)) {\n        return '';\n      }\n      return 'has-error';\n    }\n    get isBetaAllowed() {\n      if (!this.args?.betaPath) {\n        return true;\n      }\n      return this.settings.getProp(this.args.betaPath);\n    }\n    get isMenu() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.showGuideMenu || this.args.isMenu || false;\n    }\n    get isWizard() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.wizardContainerComponent?.isWizard || this.args.isWizard || false;\n    }\n    get menuId() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.menuId || this.args?.menuId;\n    }\n    get documentationResource() {\n      // @TODO: remove computed prop?\n      return this.args.formInitData?.documentationResource || this.args?.documentationResource;\n    }\n\n    // get parentLabel () {\n    //   // @TODO: remove computed prop?\n    //   return this.args?.formContainer?.containerId || this.args?.parent\n    // }\n\n    // get showTitleContainer () {\n    //   const hideTitleContainer = this.args?.hideTitleContainer || false\n    //   if (hideTitleContainer) {\n    //     return false\n    //   }\n\n    //   return true\n    // }\n\n    /**\n     * @returns {String} ClassName of outer container\n     */\n    get outerContainerClassName() {\n      const classNames = ['form-table__container'];\n\n      // if (this.isWizard) {\n      //   return 'form-section__outer-container--wizard'\n      // }\n\n      // if (this.isMenu && !this.isInView) {\n      //   return 'form-section__outer-container--no-border'\n      // }\n\n      // if (this.args?.betaPath && !this.isBetaAllowed) {\n      //   return 'form-section__outer-container--no-border'\n      // }\n\n      // if (this.args?.isNarrowOuterContainer) {\n      //   return 'form-section__outer-container--no-padding'\n      // }\n\n      return R.join(' ')(classNames);\n    }\n\n    /**\n     * Register guide menu and the viewport\n     * @void\n     */\n    didInsert(element) {\n      // if (!this.isMenu) {\n      //   return\n      // }\n\n      // const menuId = this.menuId\n      // const context = this.args.context || ''\n      // this._className = context\n      //   ? `form-entity__${context}`\n      //   : ''\n\n      // this.containerModel = this.tabsManager.registerMenu({\n      //   menuId,\n      //   tab: this.args?.tab,\n      //   label: this.args?.title,\n      //   parentLabel: this.parentLabel,\n      //   type: 'sub',\n      //   className: this._className\n      // })\n\n      // if (RA.isNotNilOrEmpty(this.containerModel)) {\n      //   set(this, 'containerModel', this.containerModel)\n      //   element.classList.add(this._className)\n      // }\n\n      // this._element = element\n\n      // const tabHeader = document.querySelector('.panel-temp-grid__tab-header') || document.querySelector('.panel-grid__header') || {}\n      // const tabFooter = document.querySelector('.panel-grid__footer') || {}\n\n      // const tolerenceTop = -tabHeader.getBoundingClientRect?.()?.bottom || -164\n      // const tolerenceBottom = -tabFooter.getBoundingClientRect?.()?.height || 0\n\n      // const viewportTolerance = { top: tolerenceTop, bottom: tolerenceBottom }\n      // const { onEnter, onExit } = this.inViewport.watchElement(\n      //   this._element,\n      //   {\n      //     viewportTolerance\n      //   }\n      // )\n      // onEnter(this.didEnterViewport.bind(this))\n      // onExit(this.didExitViewport.bind(this))\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has entered the viewport and set isActive=true for the corresponding guide menu item\n     * Also to control the scroll position of the guide menu\n     * @void\n     */\n    didEnterViewport() {\n      // const subs = this.containerModel?.sub\n\n      // this.setIsInView()\n\n      // if (RA.isNilOrEmpty(subs)) {\n      //   return\n      // }\n\n      // for (const s in subs) {\n      //   const sub = subs[s]\n      //   if (sub?.className === this._className) {\n      //     const tab = this.args?.tab\n      //     tab?.setMenuItemAsActive?.(sub)\n      //     break\n      //   }\n      // }\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Check if the FormSection has exit the viewport and set isActive=false for the corresponding guide menu item\n     * @void\n     */\n    didExitViewport() {\n      // const subs = this.containerModel?.sub\n\n      // if (RA.isNilOrEmpty(subs)) {\n      //   return\n      // }\n\n      // for (const s in subs) {\n      //   const sub = subs[s]\n      //   if (sub?.className === this._className) {\n      //     const tab = this.args?.tab\n      //     tab?.setMenuItemAsInactive?.(sub)\n      //     this._scrollToActiveMenuNavItem()\n      //     break\n      //   }\n      // }\n    }\n\n    /**\n     * Hooks of ember-in-viewport\n     * Unregiter the viewport\n     * @void\n     */\n    willDestroy() {\n      // if (this?.isDestroyed === false) {\n      //   if (!this.isMenu) {\n      //     return\n      //   }\n\n      //   this.inViewport?.stopWatching?.(this._element)\n      //   super.willDestroy(...arguments)\n      // }\n    }\n\n    /**\n     * To set isInView, used to speed up loading\n     * @void\n     */\n    setIsInView() {\n      this.isInView = true;\n    }\n\n    /**\n     * To invoke passed in function\n     * @param {Function} toggleAction\n     */\n    // @action\n    // preToggleAction (toggleAction) {\n    //   if (this.isAccordian) {\n    //     toggleAction()\n    //   }\n    // }\n\n    /**\n     * Depends on isMobile to scroll different part and direction of guide menu\n     * @void\n     */\n    // _scrollToActiveMenuNavItem () {\n    //   const activeMenuItem = document.querySelector('.guide-menu-item__content.active') || {}\n    //   if (RA.isNilOrEmpty(activeMenuItem)) {\n    //     return\n    //   }\n\n    //   if (this.applicationService?.isMobile) {\n    //     const activeMenuItemWrapper = activeMenuItem.closest?.('.guide-menu-item__wrapper') || {}\n    //     if (RA.isNilOrEmpty(activeMenuItemWrapper)) {\n    //       return\n    //     }\n\n    //     nventor.goToElement({\n    //       parent: activeMenuItemWrapper,\n    //       goTo: activeMenuItem,\n    //       offset: 100,\n    //       horizontal: true\n    //     })\n    //   } else {\n    //     const guideMenuWrapper = activeMenuItem.closest?.('.guide-menu-tab__wrapper') || {}\n    //     if (RA.isNotNilOrEmpty(guideMenuWrapper)) {\n    //       return\n    //     }\n\n    //     nventor.goToElement({\n    //       parent: guideMenuWrapper,\n    //       goTo: activeMenuItem,\n    //       offset: 100\n    //     })\n    //   }\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"inViewport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isViewable\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isInView\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"containerModel\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_element\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"_className\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.translate);\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isAccordian\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, false, this.args.isAccordian);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIsInView\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"setIsInView\"), _class.prototype), _class);\n});","define(\"client/pods/components/forms/form-table/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XUULDAQs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"@isRunning\\\",\\\"&default\\\",\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],\\\"statements\\\":[[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isWizard\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"wizardAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[[23,0,[\\\"outerContainerClassName\\\"]]]]],[13,1],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"         \\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[14,3],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-table/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/form-title/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, R, RA, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 FormsFormGroupComponent = _exports.default = (_dec = Ember.inject.service('application'), _class = class FormsFormGroupComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/forms/form-title/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9TNClo6C\",\n    \"block\": \"{\\\"symbols\\\":[\\\"documentationWrapper\\\",\\\"@title\\\",\\\"@context\\\",\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\",\\\"@allowedForFeatures\\\",\\\"@disallowedForFeatures\\\",\\\"@showDisallowedMessage\\\",\\\"@disallowedMessage\\\"],[[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"documentation/documentation\\\",[],[[\\\"@tab\\\",\\\"@documentationId\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentationIsMinimized\\\",\\\"@documentationIsMinimizedOverride\\\",\\\"@options\\\"],[[23,0,[\\\"_tab\\\"]],[23,9,[\\\"documentationId\\\"]],[23,0,[\\\"documentationResource\\\"]],[23,3,[]],[23,9,[\\\"documentationIsMinimized\\\"]],true,[28,\\\"hash\\\",null,[[\\\"documentationId\\\",\\\"documentationResource\\\",\\\"context\\\"],[[23,9,[\\\"documentationId\\\"]],[23,0,[\\\"documentationResource\\\"]],[23,3,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[]],[23,0,[\\\"desc\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[[23,2,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[5,\\\"documentation/documentation-icon\\\",[],[[\\\"@isGroup\\\",\\\"@documentationResource\\\",\\\"@context\\\",\\\"@documentation\\\",\\\"@documentationId\\\",\\\"@updateDocumentation\\\",\\\"@tab\\\",\\\"@documentationWrapper\\\"],[true,[23,0,[\\\"documentationResource\\\"]],[23,3,[]],[23,1,[\\\"documentation\\\"]],[23,1,[\\\"documentationId\\\"]],[23,1,[\\\"updateDocumentation\\\"]],[23,0,[\\\"_tab\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/form-title/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/grid-container/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['form-grid']\n  });\n});","define(\"client/pods/components/forms/grid-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XYkuy40d\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/grid-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/grid-row/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    classNames: [],\n    labelClassNames: [],\n    label: '',\n    input: '',\n    error: '',\n    // classNameBindings: ['error:has-error'],\n    translate: true,\n    customBlock: false\n  });\n});","define(\"client/pods/components/forms/grid-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ojy/FOES\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"customBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[14,1],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"forms/form-label\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"classNames\\\",\\\"isRequired\\\"],[[24,[\\\"label\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"labelClassNames\\\"]],[24,[\\\"isRequired\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[14,1],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"msg\\\"],[[24,[\\\"error\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/grid-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/forms/table-row/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: [''],\n    translate: true\n  });\n});","define(\"client/pods/components/forms/table-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"c1xmuO/J\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-row__label\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-row__detail\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[14,1],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"table-row__detail\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[14,1],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/forms/table-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/froala-editor/component\", [\"exports\", \"ember-froala-editor/components/froala-editor\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _froalaEditor, R, RA, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _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 FroalaEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('settings'), _dec5 = Ember.inject.service('froala'), _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _class = class FroalaEditor extends _froalaEditor.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"storage\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"froalaService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"stringifyContent\", _descriptor6, this);\n      _initializerDefineProperty(this, \"editor\", _descriptor7, this);\n      _defineProperty(this, \"hasFontSize\", this.args.options?.hasFontSize ?? true);\n      _defineProperty(this, \"hasTextAlign\", this.args.options?.hasTextAlign ?? true);\n      _defineProperty(this, \"defaultTextAlign\", this.args.options?.defaultTextAlign ?? '');\n      _defineProperty(this, \"locale\", R.pipe(R.pathOr(['en_us'], ['intl', 'locale']), _nventor.default.safeHeadOr('en_us'), R.replace('-', '_'))(this));\n      _defineProperty(this, \"defaultOptions\", {\n        // width: '800',\n        heightMin: 100,\n        height: this.args.basicToolbar ? 100 : 600,\n        attribution: false,\n        // fontSizeDefaultSelection: '14', // doesnt work\n        toolbarBottom: false,\n        // toolbarInline: true,\n        // toolbarVisibleWithoutSelection: true,\n\n        fontFamilyDefaultSelection: 'Arial',\n        fontSizeDefaultSelection: '14',\n        fontSize: ['8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '36', '48', '60', '72', '96'],\n        // Enable or disable file upload.\n        fileUpload: false,\n        // Enable or disable image upload.\n        imageUpload: false,\n        // Enable or disable video upload.\n        videoUpload: false,\n        quickInsertEnabled: false,\n        // iconsTemplate: 'font_awesome_5',\n        language: this.locale,\n        toolbarSticky: false,\n        toolbarStickyOffset: 0,\n        // when toolbarBottom is true, should be 40\n        charCounterCount: false,\n        toolbarButtons: this.setToolbarButtons(),\n        imageDefaultWidth: 600,\n        imageEditButtons: ['imageReplace', 'imageAlign', 'imageCaption', 'imageRemove', 'imageLink', '|', 'linkOpen', 'linkEdit', 'linkRemove', '-', 'imageDisplay', 'imageStyle', 'imageAlt', 'imageSize']\n        // iframe: true,\n        // iframeStyle: 'body{height:300px;overflow:auto;}'\n      });\n      _defineProperty(this, \"externalOptions\", this.args.options || {});\n      _defineProperty(this, \"options\", R.mergeRight(this.defaultOptions, this.externalOptions));\n    }\n    /**\n     * Event on Initialized\n     * @link https://froala.com/wysiwyg-editor/docs/events#initialized\n     * @param {FroalaEditor} editor - Editor Instance\n     */\n    'on-initialized'(editor) {\n      // Set Left Align as Default\n      try {\n        this.editor = editor;\n        if (this.defaultTextAlign) {\n          editor.align.apply(this.defaultTextAlign);\n        }\n        // passing autofocus into options currently does not set autofocus.\n        // temp fix\n        this.toggleScrollListenerOnModal(editor, 'initialized');\n        if (this.args.onInit) {\n          this.args.onInit(this);\n        }\n        if (this.args?.options?.autofocus) {\n          editor.el.focus();\n        }\n        const contentElementArray = editor.html.blocks();\n        const element = contentElementArray[0];\n        if (!element) {\n          return;\n        }\n        const froalaModalElement = element.closest('.modal-container__content');\n        const froalaModalHtml = froalaModalElement?.outerHTML || '';\n        const height = R.pathOr('100%', ['args', 'options', 'height'])(this);\n        const logData = {\n          before: editor.opts.height,\n          after: height\n        };\n        const logErrorData = {\n          errorName: 'froala',\n          froalaEditor: {\n            height: logData\n          },\n          froalaModalHtml\n        };\n        editor.opts.height = height;\n        editor.size.refresh();\n\n        // Prevent drag/drop on figures\n        this.preventDragDropOnFigures(editor);\n        // Fix issue where after froala init for the 2ed time images cannot be drag\n        this.setDraggableOnAllImages(editor);\n        const logsEnabled = R.pathEq(['args', 'options', 'logsEnabled'], true)(this);\n        if (!logsEnabled) {\n          return;\n        }\n        const logLimit = 5;\n        const logLimitCountKey = 'logs_limit';\n        const logLimitCount = this.storage.get(logLimitCountKey) || 0;\n        if (logLimit && logLimitCount >= logLimit) {\n          return;\n        } else {\n          const newLimitCount = logLimitCount + 1;\n          this.storage.set(logLimitCountKey, newLimitCount);\n        }\n\n        // Log by a podKey\n        // const podKey = this.settingsService.getProp('podKey')\n        // if (podKey !== '885507327447') {\n        //   return\n        // }\n        this.server.logError(logErrorData);\n      } catch (error) {\n        console.error('Error while resetting Froala height: ', error);\n      }\n    }\n    setDraggableOnAllImages(editor) {\n      /** @type {HTMLImageElement[]} */\n      const images = editor.el.querySelectorAll('img:not(figure > img)');\n      R.forEach(image => {\n        image.classList.add('fr-draggable');\n      })(images);\n    }\n    preventDragDropOnFigures(editor) {\n      const figures = editor.el.querySelectorAll('.fr-img-wrap');\n      R.forEach(figure => {\n        this.froalaService.makeNonDroppable(figure);\n      })(figures);\n    }\n    refreshToolBar(editor) {\n      editor.toolbar.hide();\n      setTimeout(() => {\n        editor.toolbar.show();\n      }, 10);\n    }\n    setToolbarButtons() {\n      let toolbarButtons;\n      const moreTextButtons = ['bold', 'italic', 'underline', 'textColor', 'fontFamily', 'fontSize', 'backgroundColor', 'inlineClass', 'inlineStyle', 'strikeThrough', 'subscript', 'superscript', 'clearFormatting'];\n      if (!this.hasFontSize) {\n        moreTextButtons.removeObject('fontSize');\n      }\n      let moreParagraphButtons = ['alignLeft', 'alignCenter', 'alignRight', 'alignJustify', 'formatOL', 'formatUL', 'paragraphFormat', 'paragraphStyle', 'lineHeight', 'outdent', 'indent', 'quote'];\n      if (this.args.basicToolbar) {\n        moreParagraphButtons = ['alignLeft', 'alignCenter', 'alignRight', 'alignJustify', 'formatOL', 'formatUL'];\n      }\n      if (!this.hasTextAlign) {\n        moreParagraphButtons.removeObject('alignLeft');\n        moreParagraphButtons.removeObject('alignCenter');\n        moreParagraphButtons.removeObject('alignRight');\n        moreParagraphButtons.removeObject('alignJustify');\n      }\n      if (this.args.basicToolbar) {\n        toolbarButtons = {\n          moreText: {\n            // List of buttons used in the  group.\n            buttons: moreTextButtons,\n            // Alignment of the group in the toolbar.\n            align: 'left',\n            // By default, 3 buttons are shown in the main toolbar. The rest of them are available when using the more\n            // button.\n            buttonsVisible: 6\n          },\n          moreParagraph: {\n            buttons: moreParagraphButtons,\n            align: 'left',\n            buttonsVisible: 4\n          },\n          moreRich: {\n            buttons: ['insertLink'],\n            align: 'left',\n            buttonsVisible: 1\n          },\n          moreMisc: {\n            buttons: ['undo', 'redo', 'selectAll', 'html', 'help'],\n            align: 'right',\n            buttonsVisible: 2\n          }\n        };\n      } else {\n        toolbarButtons = {\n          moreText: {\n            // List of buttons used in the  group.\n            buttons: moreTextButtons,\n            // Alignment of the group in the toolbar.\n            align: 'left',\n            // By default, 3 buttons are shown in the main toolbar. The rest of them are available when using the more\n            // button.\n            buttonsVisible: 3\n          },\n          moreParagraph: {\n            buttons: moreParagraphButtons,\n            align: 'left',\n            buttonsVisible: 3\n          },\n          moreRich: {\n            buttons: ['insertLink', 'insertTable', 'emoticons', 'fontAwesome', 'specialCharacters', 'embedly'],\n            align: 'left',\n            buttonsVisible: 3\n          },\n          moreMisc: {\n            buttons: ['undo', 'redo', 'customOptions', 'print', 'selectAll', 'html', 'help'],\n            align: 'right',\n            buttonsVisible: 3\n          }\n        };\n      }\n      const hasFileBrowser = R.pathOr(false, ['hasFileBrowser'])(this.args);\n      const hasVideoBrowser = R.pathOr(false, ['hasVideoBrowser'])(this.args);\n      if (hasFileBrowser && !this.args.basicToolbar) {\n        toolbarButtons = R.over(R.lensPath(['moreRich', 'buttons']), R.append('imageManager'))(toolbarButtons);\n      }\n      if (hasVideoBrowser && !this.args.basicToolbar) {\n        toolbarButtons = R.over(R.lensPath(['moreRich', 'buttons']), R.append('insertVideo'))(toolbarButtons);\n      }\n      return toolbarButtons;\n    }\n\n    /**\n     * Add or Remove event listener scroll, only when Froala is on a Modal\n     * @param {FroalaEditor} editor - Editor Instance\n     * @param {string} lifeCycle\n     */\n    toggleScrollListenerOnModal(editor, lifeCycle) {\n      // let fnName = ''\n      // const outerModal = editor?.$box?.closest('.modal-dialog__content')?.[0]\n      // if (lifeCycle === 'initialized' && outerModal) {\n      //   fnName = 'addEventListener'\n      // } else if (lifeCycle === 'destroy' && outerModal) {\n      //   fnName = 'removeEventListener'\n      // } else {\n      //   return null\n      // }\n      // outerModal[fnName]('scroll', () => editor.position.refresh())\n    }\n    showFileUploader() {\n      // SAVE CURRENT CURSOR POSITION\n      this.editor.selection.save();\n      this.editor.popups.hideAll();\n      let currentImage = this.editor.image?.get();\n      if (RA.isNotNilOrEmpty(currentImage)) {\n        currentImage = R.pipe(cImage => cImage.toArray(), R.head, cImage => {\n          cImage.setAttribute('data-replace-id', _nventor.default.random.alpha(40));\n          return cImage;\n        })(currentImage);\n      }\n      this.args.showFileUploader(this, currentImage);\n    }\n\n    /**\n     * Event on Destroy\n     * @link https://froala.com/wysiwyg-editor/docs/events#destroy\n     * @param {FroalaEditor} editor - Editor Instance\n     */\n    'on-destroy'(editor) {\n      if (this?.isDestroyed === false) {\n        this.toggleScrollListenerOnModal(editor, 'destroy');\n      }\n    }\n\n    /**\n     * Triggered after image was loaded in the Froala Rich Text Editor.\n     * @link https://froala.com/wysiwyg-editor/docs/events#image.inserted\n     * @param {FroalaEditor} editor - Editor Instance\n     * @param {any} filesArray - Images array\n     */\n    'on-image-loaded'(editor, filesArray) {\n      if (!editor) {\n        // this is when images are loading and modal is closed too quickly\n        return;\n      }\n      const file = R.path([0])(filesArray);\n      if (file) {\n        const froalaImageAlignment = R.pathOr('left', ['args', 'options', 'froalaImageAlignment'])(this);\n        if (froalaImageAlignment === 'left') {\n          file.style.marginLeft = '0';\n        }\n        if (froalaImageAlignment === 'right') {\n          file.style.marginRight = '0';\n        }\n        editor.selection.setAfter(file);\n        const uuid = R.pathOr('', ['dataset', 'uuid'])(file);\n        this.addImageToUploadedArray(editor, uuid);\n      }\n    }\n    'on-file-inserted'(editor, filesArray) {\n      if (!editor) {\n        // this is when images are loading and modal is closed too quickly\n        return;\n      }\n      const file = R.path([0])(filesArray);\n      if (file) {\n        editor.selection.setAfter(file);\n        const uuid = R.pipe(R.propOr('', 'href'), R.replace('https://ucarecdn.com/', ''), R.replace('/', ''))(file);\n        this.addImageToUploadedArray(editor, uuid);\n      }\n    }\n    addImageToUploadedArray(editor, uuid) {\n      if (!editor || !uuid) {\n        // this is when images are loading and modal is closed too quickly\n        return;\n      }\n      const uploaded = R.pathOr([], ['_uploaded'])(editor);\n      const uploadedSet = new Set(uploaded);\n      uploadedSet.add(uuid);\n      editor._uploaded = Array.from(uploadedSet);\n    }\n\n    /**\n     * Shows the image caption modal.\n     *\n     * @param {FroalaEditor} editor - The editor object.\n     * @param {HTMLImageElement} currentImage - The current image to be displayed in the modal.\n     *\n     * @return {void}\n     */\n    showImageCaptionModal(editor, currentImage) {\n      this.args.showImageCaptionModal(editor, currentImage);\n    }\n    getAllSelectedElements(editor) {\n      const selectedRanges = editor.selection.ranges();\n      const selectedElements = selectedRanges.reduce((acc, range) => {\n        let container = range.commonAncestorContainer;\n\n        // If the container is a text node, get its parent element\n        if (container.nodeType === window.Node.TEXT_NODE) {\n          container = container.parentElement;\n        }\n\n        /** @type {HTMLElement[]} */\n        const elements = Array.from(container.getElementsByTagName('*'));\n        if (RA.isNilOrEmpty(elements)) {\n          return acc;\n        }\n        elements.forEach(element => {\n          if (range.intersectsNode(element) && acc.indexOf(element) === -1) {\n            acc.push(element);\n          }\n        });\n        return acc;\n      }, []);\n      return selectedElements;\n    }\n    clearElementStyleAndAlignLeft(elements) {\n      for (const element of elements) {\n        element.removeAttribute('style');\n        const getChildren = element.querySelectorAll('*') || [];\n        for (const child of getChildren) {\n          child.removeAttribute('style');\n        }\n      }\n    }\n    onAfterClearFormatting(editor) {\n      try {\n        const clearFormattingAll = this.args?.options?.clearFormattingAll === true;\n        let elements;\n        if (clearFormattingAll) {\n          elements = editor.el.querySelectorAll('*') || [];\n        } else {\n          elements = this.getAllSelectedElements(editor);\n        }\n        if (RA.isNilOrEmpty(elements)) {\n          return;\n        }\n        this.clearElementStyleAndAlignLeft(elements);\n        editor.html.cleanEmptyTags();\n      } catch (error) {\n        console.error('Error while removing style: ', error);\n      }\n    }\n    'on-commands-after'(editor, command /* param2 */) {\n      if (command === 'html') {\n        this.refreshToolBar(editor);\n      }\n      const onAfterCommandHash = {\n        clearFormatting: this.onAfterClearFormatting\n      };\n      const onAfter = onAfterCommandHash[command];\n      if (!onAfter) {\n        return;\n      }\n      onAfter(editor);\n    }\n    'on-image-beforeRemove'(editor, imageSelector) {\n      try {\n        const imageArr = imageSelector.get();\n        const image = imageArr[0];\n        const parent = image.parentElement;\n        const isFigure = parent?.nodeName === 'FIGURE';\n        const isImageWrapper = parent.classList.contains('fr-img-wrap');\n        if (isFigure && isImageWrapper) {\n          parent.remove();\n        }\n      } catch (error) {\n        console.error('Error while removing style: ', error);\n      }\n    }\n    'on-paste-afterCleanup'(editor, clipboardHtml) {\n      const pasteAsPlainText = R.pathEq(['args', 'options', 'pasteAsPlainText'], true)(this);\n      if (!pasteAsPlainText) {\n        return;\n      }\n      const pasteWrapper = document.createElement('div');\n      pasteWrapper.innerHTML = clipboardHtml;\n      const elements = pasteWrapper.querySelectorAll('*') || [];\n      this.clearElementStyleAndAlignLeft(elements);\n      return pasteWrapper.innerHTML;\n    }\n    'on-click'(editor, event) {\n      if (event?.target?.nodeName !== 'IMG') {\n        return;\n      }\n\n      // Hotfix: The issue where the image popup fails to appear when the image is too small\n      setTimeout(() => {\n        const imagePopup = document.querySelector('.fr-popup.fr-active');\n        if (!imagePopup || !imagePopup.classList) {\n          return;\n        }\n        imagePopup.style.top = '150px';\n        imagePopup.classList.remove('fr-hidden');\n      }, 100);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"storage\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"froalaService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"stringifyContent\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"editor\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, 'on-initialized', [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, 'on-initialized'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showFileUploader\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"showFileUploader\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'on-destroy', [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, 'on-destroy'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'on-image-loaded', [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, 'on-image-loaded'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'on-file-inserted', [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, 'on-file-inserted'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addImageToUploadedArray\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"addImageToUploadedArray\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showImageCaptionModal\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"showImageCaptionModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAfterClearFormatting\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterClearFormatting\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'on-commands-after', [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, 'on-commands-after'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'on-image-beforeRemove', [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, 'on-image-beforeRemove'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'on-paste-afterCleanup', [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, 'on-paste-afterCleanup'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'on-click', [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, 'on-click'), _class.prototype), _class);\n});","define(\"client/pods/components/froala/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"jquery\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"client/utils/nventor\"], function (_exports, _component, R, RA, _jquery, _emberConcurrencyDecorators, _emberConcurrency, _nventor) {\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, _dec0, _dec1, _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, _dec40, _dec41, _dec42, _dec43, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33;\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 FroalaComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('uploads'), _dec4 = Ember.inject.service('application'), _dec5 = Ember.inject.service('validation'), _dec6 = Ember.inject.service('settings'), _dec7 = Ember.inject.service('simple-editor'), _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, _dec21 = Ember._tracked, _dec22 = Ember._tracked, _dec23 = Ember._tracked, _dec24 = Ember._tracked, _dec25 = Ember._tracked, _dec26 = Ember._tracked, _dec27 = Ember._tracked, _dec28 = Ember._tracked, _dec29 = Ember._tracked, _dec30 = Ember._tracked, _dec31 = Ember._tracked, _dec32 = Ember._tracked, _dec33 = Ember._tracked, _dec34 = Ember._action, _dec35 = Ember._action, _dec36 = Ember._action, _dec37 = Ember._action, _dec38 = Ember._action, _dec39 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 1\n  }), _dec40 = Ember._action, _dec41 = Ember._action, _dec42 = Ember._action, _dec43 = Ember._action, _class = class FroalaComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"uploadcare\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uploadsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"validationService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"simpleEditorService\", _descriptor7, this);\n      _initializerDefineProperty(this, \"element\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isSetAutoHeightCompleted\", _descriptor9, this);\n      _initializerDefineProperty(this, \"autoSetHeightRetries\", _descriptor0, this);\n      _initializerDefineProperty(this, \"autoSetHeightRetriesLimit\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isFileUploaderVisible\", _descriptor10, this);\n      _initializerDefineProperty(this, \"replaceImage\", _descriptor11, this);\n      _initializerDefineProperty(this, \"hasContent\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isSidebarVisible\", _descriptor13, this);\n      _initializerDefineProperty(this, \"froalaHeight\", _descriptor14, this);\n      _initializerDefineProperty(this, \"currentRetry\", _descriptor15, this);\n      _initializerDefineProperty(this, \"maxRetries\", _descriptor16, this);\n      _initializerDefineProperty(this, \"showModal\", _descriptor17, this);\n      _initializerDefineProperty(this, \"maxMobileWidth\", _descriptor18, this);\n      // same as $maxMobileWidth in _tab-layout.scss\n      _initializerDefineProperty(this, \"isMobileSize\", _descriptor19, this);\n      _initializerDefineProperty(this, \"froalaId\", _descriptor20, this);\n      _initializerDefineProperty(this, \"_defaultHasSidebar\", _descriptor21, this);\n      _initializerDefineProperty(this, \"_sidebarModalMaxWidthForTwoColumns\", _descriptor22, this);\n      _initializerDefineProperty(this, \"_sidebarModalMaxWidthForOneColumn\", _descriptor23, this);\n      _initializerDefineProperty(this, \"resource\", _descriptor24, this);\n      _initializerDefineProperty(this, \"imageCaptionModalVisible\", _descriptor25, this);\n      _initializerDefineProperty(this, \"editor\", _descriptor26, this);\n      _initializerDefineProperty(this, \"currentImage\", _descriptor27, this);\n      _initializerDefineProperty(this, \"pasteAsPlainText\", _descriptor28, this);\n      _initializerDefineProperty(this, \"isOptionsModalVisible\", _descriptor29, this);\n      _initializerDefineProperty(this, \"froalaImageAlignment\", _descriptor30, this);\n      _initializerDefineProperty(this, \"context\", _descriptor31, this);\n      _initializerDefineProperty(this, \"isCustomFontsLoaded\", _descriptor32, this);\n      _initializerDefineProperty(this, \"customFontFamily\", _descriptor33, this);\n      _defineProperty(this, \"indexProp\", '_data.index');\n      this.crud.addLists(this, ['simple-editor/lists/styling/font-family']);\n      this.setupCustomFontsTask.perform();\n      this.froalaId = _nventor.default.random.alpha(3) + _nventor.default.random.alphaNum(10);\n      this.setIsMobile();\n      $(window).on('resize', this.setIsMobile);\n      this.pasteAsPlainText = this.settingsService?.settingsModel?._data?.pasteAsPlainText;\n      this.froalaImageAlignment = this.settingsService?.settingsModel?._data?.froalaImageAlignment;\n      const tab = this.args?.tab;\n      const model = this.args?.model;\n      this.validationService.setErrorsTracker({\n        tab,\n        model,\n        context: this.args?.context\n      });\n    }\n    get previewContentStyle() {\n      if (this.args.previewContentHeight) {\n        return Ember.String.htmlSafe(`height: ${this.args.previewContentHeight};`);\n      }\n      const height = this?.options?.height;\n      if (height) {\n        if (R.includes('%')(height)) {\n          return Ember.String.htmlSafe(`height: ${height}; overflow: auto;`);\n        } else if (R.includes('px')(height)) {\n          return Ember.String.htmlSafe(`height: ${height}; overflow: auto;`);\n        } else {\n          return Ember.String.htmlSafe(`height: ${height}px; overflow: auto;`);\n        }\n      }\n      return '';\n    }\n    get defaultFontFamily() {\n      const fonts = this.crud.lists['simple-editor-lists-styling-font-family'] || [];\n      return fonts.reduce((acc, model) => {\n        const label = model?._data?.label;\n        const value = model?._data?.value;\n        acc[value] = label;\n        return acc;\n      }, {});\n    }\n    get options() {\n      const options = this.args.options || {};\n      const defaultOptions = {\n        pasteAsPlainText: this.pasteAsPlainText,\n        froalaImageAlignment: this.froalaImageAlignment,\n        autofocus: true,\n        height: '100%',\n        fontFamily: R.mergeLeft(this.customFontFamily)(this.defaultFontFamily)\n      };\n      if (this.hasExtraSidebar) {\n        return R.mergeRight(defaultOptions, options);\n      }\n      return R.mergeRight(defaultOptions, options);\n    }\n    get sidebarOptions() {\n      const options = this.options;\n      return R.omit(['height'])(options);\n    }\n    get sidebarModalMaxWidth() {\n      if (this.hasExtraSidebar) {\n        return this._sidebarModalMaxWidthForTwoColumns;\n      }\n      return this._sidebarModalMaxWidthForOneColumn;\n    }\n    get hasSidebar() {\n      if (!R.isNil(this.args.hasSidebarEdit)) {\n        return this.args.hasSidebarEdit;\n      }\n      return this._defaultHasSidebar;\n    }\n    get hasExtraSidebar() {\n      if (!this.hasSidebar) {\n        return false;\n      }\n      const isMobileSize = this?.isMobileSize || false;\n      if (isMobileSize) {\n        return false;\n      }\n      const screenWidth = window.screen.width;\n      if (screenWidth < this._sidebarModalMaxWidthForTwoColumns) {\n        return false;\n      }\n      return this.args?.hasFileBrowser || false;\n    }\n    get emptyViewHeightStyle() {\n      const height = this.args?.options?.height;\n      if (height && R.gt(height, 0)) {\n        return `height: ${height}px`;\n      }\n      return '';\n    }\n    get hasCurrentError() {\n      const currentErrors = this.args.tab?.currentErrors || [];\n      const context = this.args?.context;\n      return R.pipe(R.find(R.anyPass([R.pathEq(['context', 'key'], context), R.pathEq(['context', 'label'], context), R.pathEq(['context', 'keyWithIndex'], context)])), RA.isNotNilOrEmpty)(currentErrors);\n    }\n    *setupCustomFontsTask() {\n      const customFonts = yield this.simpleEditorService.getCustomFontsTask.perform();\n      yield (0, _emberConcurrency.all)(customFonts.filter(font => font?.href || font?.fontUrl).map(font => {\n        if (font?.fontUrl) {\n          return this.simpleEditorService.addFontFaceToHeaderTask.perform(font);\n        }\n        return this.simpleEditorService.addStyleToHeaderTask.perform(font.href);\n      }));\n      this.customFontFamily = customFonts.reduce((acc, font) => {\n        const value = `${font.value}`.replaceAll('\"', '');\n        acc[value] = font.label;\n        return acc;\n      }, {});\n      this.isCustomFontsLoaded = true;\n    }\n    setIsMobile() {\n      const screenWidth = window.screen.width;\n      if (screenWidth < this.maxMobileWidth) {\n        this.isMobileSize = true;\n      } else {\n        this.isMobileSize = false;\n      }\n    }\n\n    /**\n     * Shows the editor once the preview element exists.\n     * Missing content is filled in after this render. Writing it here re-sets a value this render already read.\n     * @param {Function} mut - sets the parent content\n     */\n    didInsert(mut) {\n      const contentIsMissing = RA.isNilOrEmpty(this.args.content);\n      this.hasContent = true;\n      if (!contentIsMissing) {\n        return;\n      }\n      Ember.run.schedule('afterRender', () => {\n        if (this.isDestroying || this.isDestroyed) {\n          return;\n        }\n        mut('');\n      });\n    }\n\n    // @action\n    // adjustContentHeight (element) {\n    //   this.element = element\n\n    //   // adjust content height\n    //   // get total height, minus footer height.\n    //   // if less than viewport size, then increase content height\n\n    //   scheduleOnce('afterRender', this, 'processChildElements')\n    // }\n\n    // @action\n    // processChildElements () {\n    //   const element = this.element\n    //   if (this.autoSetHeightRetries >= this.autoSetHeightRetriesLimit) {\n    //     this.isSetAutoHeightCompleted = true\n    //     console.log('max retries reached')\n    //     return true\n    //   }\n\n    //   this.autoSetHeightRetries = this.autoSetHeightRetries + 1\n\n    //   const waitToLoadClassNames = ['fr-view']\n    //   if (RA.isNilOrEmpty(waitToLoadClassNames)) {\n    //     this.isSetAutoHeightCompleted = true\n    //     return\n    //   }\n\n    //   const isRendered = R.reduce((acc, className) => {\n    //     const toResizeContainer = element.querySelector(`.${className}`)\n    //     if (RA.isNilOrEmpty(toResizeContainer)) {\n    //       return acc\n    //     }\n\n    //     if (toResizeContainer.clientWidth > 0) {\n    //       acc.push(toResizeContainer)\n    //     }\n\n    //     return acc\n    //   }, [])(waitToLoadClassNames)\n\n    //   if (isRendered.length !== waitToLoadClassNames.length) {\n    //     // not all elements loaded yet, retry\n    //     next(this, () => {\n    //       this.processChildElements()\n    //     })\n\n    //     return\n    //   }\n\n    //   // const containerHeight = element.querySelector('.modal-side-bar__content')?.offsetHeight\n    //   // R.forEach(childElement => {\n    //   //   // resize class name to correct height of content\n    //   //   childElement.style.height = `${containerHeight}px`\n    //   // })(toAdjustElements)\n\n    //   const container = element.querySelector('.fr-view')\n    //   const footer = element.querySelector('.fr-second-toolbar')\n    //   footer.classList.add('fr-fullheight')\n    //   // footer.style.width = `${container.clientWidth + 2}px`\n    //   // footer.style.width = '100%'\n\n    //   const basicContainer = element.querySelector('.fr-box')\n    //   basicContainer.classList.add('fr-fullheight')\n\n    //   const toolbarContainer = element.querySelector('.fr-toolbar')\n    //   toolbarContainer.classList.add('fr-fullheight')\n    //   // toolbarContainer.style.width = `${container.clientWidth + 2}px`\n    //   // toolbarContainer.style.width = '100%'\n    // }\n\n    *onSubmitTask(onCloseDialogAction, options, uploadsModel, data) {\n      this.insertUploadedFileTask.perform(onCloseDialogAction, options, uploadsModel, data);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    setFroalaEditorComponentReference(froalaEditorComponent) {\n      this.froalaEditorComponent = froalaEditorComponent;\n    }\n    showFileUploader(froalaEditorComponent, currentImage) {\n      this.isFileUploaderVisible = true;\n      this.froalaEditorComponent = froalaEditorComponent;\n      this.replaceImage = currentImage;\n    }\n    hideFileUploader() {\n      this.isFileUploaderVisible = false;\n    }\n\n    /**\n     * Insert image into Froala\n     * @link https://froala.com/wysiwyg-editor/docs/methods/#image.insert\n     * @param onCloseDialogAction\n     * @param options\n     * @param uploadsModels\n     * @return {*}\n     */\n    *insertUploadedFileTask(onCloseDialogAction, options, uploadsModels /* data */) {\n      uploadsModels = RA.ensureArray(uploadsModels);\n      const editor = R.pathOr(null, ['froalaEditorComponent', 'editor'])(this);\n      if (!editor) {\n        return;\n      }\n      editor._uploaded = R.pathOr([], ['_uploaded'])(editor);\n      const toUploadCount = R.length(uploadsModels) || 0;\n      let currentUploadIndex = 0;\n      const allToUpload = R.map(uploadsModel => {\n        const uuid = R.pathOr('', ['_data', 'uuid'])(uploadsModel);\n        const fileUrl = this.uploadcare.getFileUrl(uuid);\n        // console.log(`uuid: ${uuid} | fileUrl: ${fileUrl}`)\n\n        currentUploadIndex = currentUploadIndex + 1;\n        // @NOTE: this becomes data-str-mime-type in the template\n        return this.addImageOrFileTask.perform({\n          fileUrl,\n          uuid,\n          editor,\n          toUploadCount,\n          uploadsModel,\n          currentUploadIndex\n        });\n      })(uploadsModels);\n      yield (0, _emberConcurrency.all)(allToUpload);\n    }\n\n    /**\n     * Insert uploaded file as link\n     * @param {{ fileUrl:string, editor: FroalaComponent.editor, uploadsModel: UploadsModel }} args\n     */\n    addLink(args = {}) {\n      const {\n        fileUrl,\n        editor,\n        uploadsModel\n      } = args;\n      const fileName = R.pathOr('', ['_data', 'originalFilename'])(uploadsModel);\n      editor.selection.setAtEnd(editor.link.get());\n      return editor.link.insert(fileUrl, fileName, {\n        target: '_blank',\n        rel: 'nofollow'\n      });\n    }\n\n    /**\n     * Insert uploaded file as an image\n     * @param {{fileUrl:string, mimeType: string, uuid: string, editor: FroalaComponent.editor}} args\n     * @return any\n     */\n    *addImageOrFileTask(args = {}) {\n      if (args?.uploadsModel?.isImage === true) {\n        yield this._addImageTask.perform(...arguments);\n      } else {\n        yield this._addFileTask.perform(...arguments);\n      }\n      this.currentRetry = 0;\n      const _hasUploadCompleted = yield this._hasUploadCompleted.perform(...arguments);\n      // console.log(`addImageOrFileTask: args.uuid: ${args.uuid} | args.fileUrl: ${args.fileUrl}`)\n      return _hasUploadCompleted;\n    }\n    *_hasUploadCompleted(args) {\n      this.currentRetry = this.currentRetry + 1;\n      if (this.currentRetry > this.maxRetries) {\n        // dont retry anymore\n        return false;\n      }\n      const uuid = args.uuid;\n      const alreadyUploaded = args?.editor?._uploaded || [];\n      if (R.includes(uuid)(alreadyUploaded)) {\n        return true;\n      }\n      yield (0, _emberConcurrency.timeout)(100);\n      return this._hasUploadCompleted.perform(...arguments);\n    }\n\n    /**\n     * Insert files to download\n     * @param {{ fileUrl:string, editor: FroalaComponent.editor, uploadsModel: UploadsModel }} args\n     * @return {any}\n     */\n    *_addFileTask(args = {}) {\n      const {\n        fileUrl,\n        editor,\n        uploadsModel\n      } = args;\n      const fileName = R.pathOr('', ['_data', 'originalFilename'])(uploadsModel);\n      return yield editor.file.insert(fileUrl, fileName, {\n        link: fileUrl\n      });\n    }\n\n    /**\n     * Insert uploaded file as an image\n     * @param {{fileUrl:string, mimeType: string, uuid: string, editor: FroalaComponent.editor}} args\n     * @return any\n     */\n    *_addImageTask(args = {}) {\n      const {\n        fileUrl,\n        uploadsModel,\n        uuid,\n        editor\n      } = args;\n      // ONLY USE FOR GIF IN SHOP\n      const format = uploadsModel.fileFormat;\n      const replaceId = R.pathOr(null, ['replaceImage', 'dataset', 'replaceId'])(this);\n      const insertImageArgs = [fileUrl, true, {\n        'data-str-mime-type': `image/${format}`,\n        'data-uuid': uuid\n      }];\n      if (replaceId) {\n        insertImageArgs.push((0, _jquery.default)(`[data-replace-id=${replaceId}]`));\n      }\n      editor.image.insert(...insertImageArgs);\n      yield (0, _emberConcurrency.timeout)(1000);\n      // console.log(`_addImageTask: args.uuid: ${args.uuid} | args.fileUrl: ${args.fileUrl}`)\n    }\n    openModal() {\n      this.showModal = true;\n    }\n    onToggleModalDialog() {\n      this.showModal = false;\n    }\n    showImageCaptionModal(editor, currentImage) {\n      this.editor = editor;\n      this.currentImage = currentImage;\n      this.imageCaptionModalVisible = !this.imageCaptionModalVisible;\n    }\n    showOptionsModal(editor) {\n      this.editor = editor;\n      this.isOptionsModalVisible = !this.isOptionsModalVisible;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uploadcare\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uploadsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"validationService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"simpleEditorService\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isSetAutoHeightCompleted\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"autoSetHeightRetries\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"autoSetHeightRetriesLimit\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 2000;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isFileUploaderVisible\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"replaceImage\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"hasContent\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isSidebarVisible\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"froalaHeight\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"currentRetry\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"maxRetries\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 100;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"showModal\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"maxMobileWidth\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1100;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"isMobileSize\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"froalaId\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"_defaultHasSidebar\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"_sidebarModalMaxWidthForTwoColumns\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1500;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"_sidebarModalMaxWidthForOneColumn\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1050;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"resource\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.resource || 'files';\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"imageCaptionModalVisible\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"editor\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"currentImage\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"pasteAsPlainText\", [_dec28], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"isOptionsModalVisible\", [_dec29], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, \"froalaImageAlignment\", [_dec30], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'center';\n    }\n  }), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, \"context\", [_dec31], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, \"isCustomFontsLoaded\", [_dec32], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, \"customFontFamily\", [_dec33], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupCustomFontsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupCustomFontsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIsMobile\", [_dec34], Object.getOwnPropertyDescriptor(_class.prototype, \"setIsMobile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec35], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setFroalaEditorComponentReference\", [_dec36], Object.getOwnPropertyDescriptor(_class.prototype, \"setFroalaEditorComponentReference\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showFileUploader\", [_dec37], Object.getOwnPropertyDescriptor(_class.prototype, \"showFileUploader\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hideFileUploader\", [_dec38], Object.getOwnPropertyDescriptor(_class.prototype, \"hideFileUploader\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"insertUploadedFileTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"insertUploadedFileTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addImageOrFileTask\", [_dec39], Object.getOwnPropertyDescriptor(_class.prototype, \"addImageOrFileTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_hasUploadCompleted\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_hasUploadCompleted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_addFileTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_addFileTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_addImageTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_addImageTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openModal\", [_dec40], Object.getOwnPropertyDescriptor(_class.prototype, \"openModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleModalDialog\", [_dec41], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleModalDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showImageCaptionModal\", [_dec42], Object.getOwnPropertyDescriptor(_class.prototype, \"showImageCaptionModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showOptionsModal\", [_dec43], Object.getOwnPropertyDescriptor(_class.prototype, \"showOptionsModal\"), _class.prototype), _class);\n});","define(\"client/pods/components/froala/erp-options-modal/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 FroalaErpOptionsModalComponent = _exports.default = (_dec = Ember.inject.service, _class = class FroalaErpOptionsModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['blogs/lists/font-alignment']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/froala/erp-options-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fHU5Eahl\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@modalDialogIsVisible\\\",\\\"@pasteAsPlainText\\\",\\\"@isReadonly\\\",\\\"@froalaImageAlignment\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\",\\\"@modalSize\\\"],[[23,2,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,2,[]]],null]],null],false,\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"froalaPasteAsPlainText\\\",\\\"settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\"],[\\\"paste as plain text\\\",[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"image alignment\\\",\\\"froalaImageAlignment\\\",\\\"settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-font-alignment\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[23,1,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/froala/erp-options-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/froala/image-caption-modal/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 FroalaImageCaptionModalComponent = _exports.default = (_dec = Ember.inject.service('froala'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class FroalaImageCaptionModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"froalaService\", _descriptor, this);\n      _initializerDefineProperty(this, \"imageCaption\", _descriptor2, this);\n      _initializerDefineProperty(this, \"disabled\", _descriptor3, this);\n      const editor = this.args.editor;\n      const currentImage = this.args.currentImage;\n      this.setup(editor, currentImage);\n    }\n\n    /**\n     * Sets up the editor with the current image.\n     *\n     * @param {FroalaEditor} editor - The editor object that needs to be setup.\n     * @param {HTMLImageElement} currentImage - The current image to be associated with the editor.\n     */\n    setup(editor, currentImage) {\n      const imageWrapperWhenHasCaption = currentImage.closest('.fr-img-wrap');\n      if (imageWrapperWhenHasCaption) {\n        const captionWrapper = imageWrapperWhenHasCaption.querySelector('.fr-inner, .caption-wrapper');\n        if (!captionWrapper) {\n          return;\n        }\n        this.imageCaption = captionWrapper.innerHTML || '';\n        if (this.imageCaption) {\n          this.disabled = false;\n        }\n      }\n    }\n\n    /**\n     * Creates a new <figure> element to wrap the image and caption.\n     * @param {HTMLImageElement} image - The image element.\n     * @param {string} captionText - The text for the figcaption.\n     * @returns {HTMLElement} The configured <figure> element.\n     * @private\n     */\n    _createFigureElement(image, captionText) {\n      const figureElement = document.createElement('figure');\n      figureElement.innerHTML = image.outerHTML;\n      figureElement.classList.add('fr-img-wrap');\n\n      // Prevent dragging image out\n      const figureImage = figureElement.querySelector('img');\n      figureImage.draggable = false;\n\n      // Add caption\n      const figcaption = document.createElement('figcaption');\n      figcaption.classList.add('caption-wrapper');\n      figcaption.innerHTML = captionText;\n      figcaption.setAttribute('contenteditable', 'false');\n      figureElement.appendChild(figcaption);\n      this.froalaService.makeNonDroppable(figureElement);\n      return figureElement;\n    }\n    upsertImageCaption(onCloseDialogAction) {\n      /** @type{HTMLImageElement}*/\n      const currentImage = this.args.currentImage;\n      const imageWrapper = currentImage.closest('.fr-img-wrap');\n      const isFigure = imageWrapper?.nodeName === 'FIGURE';\n      if (!isFigure) {\n        const figureElement = this._createFigureElement(currentImage, this.imageCaption);\n        let captionStyle;\n        const outerWrapper = currentImage.closest('.fr-img-space-wrap');\n        if (outerWrapper) {\n          const captionWrapper = outerWrapper.querySelector('.fr-img-caption.fr-fic.fr-dib');\n          captionStyle = captionWrapper?.getAttribute('style');\n          outerWrapper.replaceWith(figureElement);\n        } else {\n          captionStyle = currentImage.getAttribute('style');\n          currentImage.replaceWith(figureElement);\n        }\n        if (captionStyle) {\n          figureElement.setAttribute('style', captionStyle);\n          figureElement.style.maxWidth = currentImage.style.width;\n          figureElement.style.width = '100%';\n          figureElement.style.margin = figureElement.style.margin || 'auto';\n        }\n      }\n      if (!this.imageCaption && imageWrapper) {\n        // Unwrap image without a caption\n        currentImage.removeAttribute('draggable');\n        imageWrapper.replaceWith(currentImage);\n      } else {\n        const captionWrapper = imageWrapper.querySelector('.caption-wrapper');\n        if (captionWrapper) {\n          captionWrapper.innerHTML = this.imageCaption || '';\n        }\n      }\n      onCloseDialogAction();\n    }\n    removeImageCaption(onCloseDialogAction) {\n      const currentImage = this.args.currentImage;\n      const imageFigure = currentImage.closest('figure');\n      if (imageFigure) {\n        const tempDiv = document.createElement('div');\n        tempDiv.innerHTML = currentImage.outerHTML;\n        const newImage = tempDiv.firstElementChild;\n        newImage.classList.add('fr-fic', 'fr-dib');\n\n        // Restore original styles if they exist on the figure\n        if (imageFigure.hasAttribute('style')) {\n          newImage.setAttribute('style', imageFigure.getAttribute('style'));\n        }\n        imageFigure.replaceWith(newImage);\n      }\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"froalaService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"imageCaption\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"disabled\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"upsertImageCaption\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"upsertImageCaption\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeImageCaption\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"removeImageCaption\"), _class.prototype), _class);\n});","define(\"client/pods/components/froala/image-caption-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hoy4ld7/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@modalDialogIsVisible\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\",\\\"@modalSize\\\"],[[23,2,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,2,[]]],null]],null],false,\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"froalaImageCaptions\\\",\\\"settings\\\",\\\"short description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@options\\\"],[true,false,[23,0,[\\\"imageCaption\\\"]],[28,\\\"hash\\\",null,[[\\\"clearFormattingAll\\\"],[true]]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"disabled\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"removeImageCaption\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"upsertImageCaption\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/froala/image-caption-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/froala/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kt5q9L33\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@allowSrcSet\\\",\\\"@allowMultipleItems\\\",\\\"@resourceKey\\\",\\\"@finderLabel\\\",\\\"@previousImage\\\",\\\"@translatedPlaceholder\\\",\\\"@context\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isCustomFontsLoaded\\\"]]],null,{\\\"statements\\\":[[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\",\\\"@errorWrapperClassname\\\"],[[23,12,[]],\\\"u-full-width\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",[29,[\\\"\\\\n      froala-container-preview\\\\n      \\\",[28,\\\"if\\\",[[23,0,[\\\"hasCurrentError\\\"]],\\\"has-error\\\"],null],\\\"\\\\n    \\\"]]],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"didInsert\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[]]],null]],null]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"froala-view-preview\\\"],[11,\\\"style\\\",[23,0,[\\\"previewContentStyle\\\"]]],[8],[0,\\\"\\\\n        \\\"],[5,\\\"froala-content\\\",[],[[\\\"@content\\\"],[[28,\\\"html-safe\\\",[[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasContent\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasSidebar\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"froala-editor-view u-tappable\\\"],[12,\\\"style\\\",[23,0,[\\\"previewContentStyle\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"openModal\\\"]]]],[8],[0,\\\"\\\\n              \\\"],[5,\\\"froala-content\\\",[],[[\\\"@content\\\"],[[28,\\\"html-safe\\\",[[23,3,[]]],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"froala-editor-view empty-view u-tappable\\\"],[12,\\\"style\\\",[23,0,[\\\"emptyViewHeightStyle\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"openModal\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,11,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"type_content\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@onToggleModalDialog\\\",\\\"@isSidebar\\\",\\\"@hasExtraSidebar\\\",\\\"@sidebarModalMaxWidth\\\",\\\"@isMobile\\\",\\\"@modalContentClassNames\\\"],[true,[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null],true,[23,0,[\\\"hasExtraSidebar\\\"]],[23,0,[\\\"sidebarModalMaxWidth\\\"]],[23,0,[\\\"isMobileSize\\\"]],\\\"modal-container__content--no-padding modal-container__content--no-border modal-container__content--no-background\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[11,\\\"id\\\",[29,[[23,0,[\\\"froalaId\\\"]]]]],[10,\\\"class\\\",\\\"modal-froala-editor froala-sidebar-container flex-container-row flex-container--justify-end flex-container--no-wrap\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"froala-two-column-grid__tools\\\"],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fa-solid fa-chevron-right\\\",\\\"is-primary\\\",\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]]],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasExtraSidebar\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"froala-two-column-grid__left\\\"],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"files-manager/finder\\\",[],[[\\\"@allowSrcSet\\\",\\\"@allowMultipleItems\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@finderLabel\\\",\\\"@onSubmitTask\\\",\\\"@onRemoveTask\\\",\\\"@tab\\\",\\\"@previousImage\\\",\\\"@isFroala\\\",\\\"@indexProp\\\",\\\"@isSidebar\\\"],[[23,6,[]],[23,7,[]],[23,0,[\\\"resource\\\"]],[23,8,[]],[23,9,[]],[23,0,[\\\"onSubmitTask\\\"]],[23,0,[\\\"uploadsService\\\",\\\"removeTask\\\"]],[23,1,[]],[23,10,[]],true,[23,0,[\\\"indexProp\\\"]],true]]],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"froala__footer-upload-images\\\"],[8],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"froala-two-column-grid__right\\\"],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"froala-editor\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@options\\\",\\\"@showFileUploader\\\",\\\"@showImageCaptionModal\\\",\\\"@showOptionsModal\\\",\\\"@update\\\",\\\"@onInit\\\"],[[23,2,[]],[28,\\\"html-safe\\\",[[23,3,[]]],null],[23,4,[]],[23,5,[]],[23,0,[\\\"sidebarOptions\\\"]],[23,0,[\\\"showFileUploader\\\"]],[23,0,[\\\"showImageCaptionModal\\\"]],[23,0,[\\\"showOptionsModal\\\"]],[28,\\\"to-string\\\",[[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[]]],null]],null]],null],[28,\\\"fn\\\",[[23,0,[\\\"setFroalaEditorComponentReference\\\"]]],null]]]],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"files/files-browser-modal\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@tab\\\",\\\"@modalDialogIsVisible\\\",\\\"@onSubmit\\\",\\\"@isFroala\\\",\\\"@indexProp\\\"],[\\\"files\\\",\\\"files\\\",[23,1,[]],[23,0,[\\\"isFileUploaderVisible\\\"]],[23,0,[\\\"insertUploadedFileTask\\\"]],true,[23,0,[\\\"indexProp\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"froala-editor\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@options\\\",\\\"@showFileUploader\\\",\\\"@showImageCaptionModal\\\",\\\"@showOptionsModal\\\",\\\"@update\\\"],[[23,2,[]],[28,\\\"html-safe\\\",[[23,3,[]]],null],[23,4,[]],[23,5,[]],[23,0,[\\\"options\\\"]],[23,0,[\\\"showFileUploader\\\"]],[23,0,[\\\"showImageCaptionModal\\\"]],[23,0,[\\\"showOptionsModal\\\"]],[28,\\\"to-string\\\",[[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[]]],null]],null]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[]],[28,\\\"not\\\",[[23,0,[\\\"hasSidebar\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"files/files-browser-modal\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"tab\\\",\\\"modalDialogIsVisible\\\",\\\"onSubmit\\\",\\\"isFroala\\\",\\\"indexProp\\\"],[\\\"files\\\",\\\"files\\\",[23,1,[]],[24,[\\\"isFileUploaderVisible\\\"]],[23,0,[\\\"insertUploadedFileTask\\\"]],true,[24,[\\\"indexProp\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"imageCaptionModalVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala/image-caption-modal\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@editor\\\",\\\"@currentImage\\\"],[[23,0,[\\\"imageCaptionModalVisible\\\"]],[23,0,[\\\"editor\\\"]],[23,0,[\\\"currentImage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isOptionsModalVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"froala/erp-options-modal\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@editor\\\",\\\"@pasteAsPlainText\\\",\\\"@froalaImageAlignment\\\"],[[23,0,[\\\"isOptionsModalVisible\\\"]],[23,0,[\\\"editor\\\"]],[23,0,[\\\"pasteAsPlainText\\\"]],[23,0,[\\\"froalaImageAlignment\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/froala/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/google/tracking-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 GoogleTrackingEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class GoogleTrackingEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"model\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args?.adapterName || 'google/tracking');\n      const model = this.args?.model || {};\n      const tab = this.args?.tab || {};\n      this.tab = tab;\n      const isEditing = this.args?.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    afterCreateRecordTask(model) {\n      this.args?.onAddItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args?.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask(model) {\n      this.args?.onRemoveItem?.(model);\n    }\n    cancel() {\n      this.args?.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/google/tracking-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8craOtt+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@disabled\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"googleTracking\\\",\\\"label\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"value\\\",\\\"googleTracking\\\",\\\"google tracking id\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchaseConversionLabel\\\",\\\"googleTracking\\\",\\\"google purchase conversion label\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@placeholder\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],\\\"optional\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"purchaseConversionLabel\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"addToCartConversionLabel\\\",\\\"googleTracking\\\",\\\"google add to cart conversion label\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@placeholder\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],\\\"optional\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"addToCardConversionLabel\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,1,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterRemoveRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterCreateRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/google/tracking-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/blogs-modal/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 GrapesjsBlogsModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _dec31 = Ember._action, _class = class GrapesjsBlogsModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor4, this);\n      _initializerDefineProperty(this, \"displayFilters\", _descriptor5, this);\n      _initializerDefineProperty(this, \"blogs\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sliderBlogsArray\", _descriptor7, this);\n      _initializerDefineProperty(this, \"preSaveSliderBlogsArray\", _descriptor8, this);\n      _initializerDefineProperty(this, \"blogPreview\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showPreview\", _descriptor0, this);\n      _initializerDefineProperty(this, \"currentDraggedImgIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor10, this);\n      _initializerDefineProperty(this, \"bigordrBlogsSliderType\", _descriptor11, this);\n      _initializerDefineProperty(this, \"bigordrBlogsSliderFullWidth\", _descriptor12, this);\n      _initializerDefineProperty(this, \"bigordrBlogsSliderTitleLineCount\", _descriptor13, this);\n      _initializerDefineProperty(this, \"bigordrBlogsSliderDescriptionLineCount\", _descriptor14, this);\n      _initializerDefineProperty(this, \"bigordrBlogsSliderFontSize\", _descriptor15, this);\n      _initializerDefineProperty(this, \"bigordrBlogsSliderFontWeight\", _descriptor16, this);\n      _initializerDefineProperty(this, \"bigordrBlogsSliderLimitBy\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isSearchByTags\", _descriptor18, this);\n      _defineProperty(this, \"adapterName\", 'blogs');\n      _defineProperty(this, \"blogsFiltersAdapterName\", 'blogs/filters');\n      _defineProperty(this, \"gjsPreviewBodyStyle\", {\n        body: {\n          margin: '30px !important',\n          height: '100%',\n          'background-color': '#fff'\n        }\n      });\n      this.crud.addLists(this, ['blogs/lists/menu', 'blogs/lists/tags', 'blogs/lists/bigordr-blogs-slider-types', 'blogs/lists/line-count', 'filters/count', 'filters/sortDirection', 'statuses']);\n      this.filters = this.search.setupFilters({\n        adapterName: this.blogsFiltersAdapterName,\n        defaultFiltersData: {\n          resultsProperty: 'results',\n          master: this.args.master\n        }\n      });\n      this.getDefaultsDetails.perform();\n    }\n    reIndex(blogs) {\n      return R.pipe(R.mapObjIndexed((value, index) => {\n        value.set('_data.index', parseInt(index));\n        return value;\n      }), R.values)(blogs);\n    }\n    *getDefaultsDetails() {\n      const blogsWrapper = this.args.editor.getSelected();\n      const blogsTags = R.pathOr([], ['attributes', 'attributes', 'data-bigordr-blogs-tags'])(blogsWrapper);\n      this.bigordrBlogsSliderType = R.pathOr(this.bigordrBlogsSliderType, ['attributes', 'attributes', 'data-bigordr-blogs-slider-type'])(blogsWrapper);\n      this.bigordrBlogsSliderLimitBy = R.pathOr(this.bigordrBlogsSliderLimitBy, ['attributes', 'attributes', 'data-bigordr-blogs-slider-limit-by'])(blogsWrapper);\n      this.bigordrBlogsSliderTitleLineCount = R.pathOr(this.bigordrBlogsSliderTitleLineCount, ['attributes', 'attributes', 'data-bigordr-blogs-slider-title-line-count'])(blogsWrapper);\n      this.bigordrBlogsSliderDescriptionLineCount = R.pathOr(this.bigordrBlogsSliderDescriptionLineCount, ['attributes', 'attributes', 'data-bigordr-blogs-slider-description-line-count'])(blogsWrapper);\n      this.bigordrBlogsSliderFontSize = R.pathOr(this.bigordrBlogsSliderFontSize, ['attributes', 'attributes', 'data-bigordr-blogs-slider-font-size'])(blogsWrapper);\n      this.bigordrBlogsSliderFontWeight = R.pathOr(this.bigordrBlogsSliderFontWeight, ['attributes', 'attributes', 'data-bigordr-blogs-slider-font-weight'])(blogsWrapper);\n      let bigordrBlogsSliderFullWidth = R.pathOr(this.bigordrBlogsSliderFullWidth, ['attributes', 'attributes', 'data-bigordr-blogs-slider-full-width'])(blogsWrapper);\n      bigordrBlogsSliderFullWidth = R.equals('true', bigordrBlogsSliderFullWidth);\n      this.bigordrBlogsSliderFullWidth = bigordrBlogsSliderFullWidth;\n      const bigordrBlogComponents = blogsWrapper.findType('bigordr-blog');\n      const blogArray = R.pipe(R.map(R.pathOr('', ['attributes', 'attributes', 'data-bigordr-blog-key'])), R.reject(R.isEmpty))(bigordrBlogComponents);\n      const hasBlogsTags = R.pipe(R.isEmpty, R.not)(blogsTags);\n      const hasBlogsArray = R.pipe(R.isEmpty, R.not)(blogArray);\n      if (hasBlogsTags) {\n        this.isSearchByTags = true;\n        this.filters.setData('tags', blogsTags);\n        this.preSaveSliderBlogsArray = yield this.fetchBlogsByTagsTask.perform();\n      } else if (hasBlogsArray) {\n        this.filters.set('_data.keys', blogArray);\n        this.filters.set('_data.count', 100);\n        yield this.fetchBlogsTask.perform();\n        this.sliderBlogsArray = this.filters.resultsSortedByKeys;\n        this.preSaveSliderBlogsArray = this.sliderBlogsArray;\n      } else {\n        this.dashTask.perform();\n      }\n    }\n    removeOnDropSelectClass(imagesDropContainer) {\n      R.map(c => c.classList.remove('on-drop-select-right', 'on-drop-select-left'))(imagesDropContainer);\n    }\n    markBlogsAsIsSelected() {\n      R.pipe(R.pathOr([], ['filters', 'results']), R.map(blog => {\n        blog.set('isSelected', false);\n        return blog;\n      }), R.filter(R.includes(R.__, this.sliderBlogsArray)), R.forEach(blog => {\n        blog.set('isSelected', true);\n      }))(this);\n    }\n    *searchInputTask(query) {\n      yield this.crud.searchInputTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters,\n        resultsProperty: 'blogs',\n        component: this\n      }, query);\n    }\n    *reloadSearchRecordsTask() {\n      yield this.crud.reloadSearchRecordsTask.perform({\n        filters: this.filters,\n        reset: true\n      });\n      this.markBlogsAsIsSelected();\n    }\n    *fetchBlogsByTagsTask() {\n      const tags = R.pathOr([], ['filters', '_data', 'tags'])(this);\n      if (R.isEmpty(tags)) {\n        this.isSearchByTags = false;\n        this.filters.reset();\n        this.sliderBlogsArray.clear();\n        return [];\n      } else {\n        this.isSearchByTags = true;\n        this.filters.reset();\n        this.filters.set('_data.tags', tags);\n        yield this.crud.searchRecordsTask.perform({\n          adapterName: this.adapterName,\n          filters: this.filters\n        });\n        this.filters.reIndexResults();\n        this.sliderBlogsArray = this.filters.resultsSortedByKeys;\n        return this.filters.resultsSortedByKeys;\n      }\n    }\n    *fetchBlogsTask() {\n      this.blogs = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters\n      });\n      this.filters.reIndexResults();\n    }\n    *paginateSearchRecordsTask() {\n      yield this.crud.paginateSearchRecordsTask.perform({\n        filters: this.filters\n      });\n      this.markBlogsAsIsSelected();\n    }\n    *dashTask() {\n      yield this.fetchBlogsTask.perform();\n      this.dash(this.blogs);\n    }\n    dash(blogs) {\n      if (!blogs) {\n        this.filters.setData('query', '');\n        this.fetchBlogsTask.perform();\n      }\n      const subTabOptions = {\n        component: 'blogs/panels-dash'\n      };\n      this.args.tab.set('subTabs', this.tabsManager.replaceSubTab(this.args.tab, subTabOptions));\n    }\n    onRemove(blog) {\n      this.sliderBlogsArray.removeObject(blog);\n      this.sliderBlogsArray = this.reIndex(this.sliderBlogsArray);\n    }\n    onAdd(blog) {\n      this.sliderBlogsArray.addObject(blog);\n      this.sliderBlogsArray = this.reIndex(this.sliderBlogsArray);\n    }\n    onSelect(blog, added) {\n      if (added) {\n        this.onAdd(blog);\n      } else {\n        this.onRemove(blog);\n      }\n    }\n    onPreview(blogModel) {\n      const title = R.path(['_data', 'name'])(blogModel);\n      const template = R.path(['_data', 'template'])(blogModel);\n      this.blogPreview = `<h2 class='blog-page__name'>${title}</h2>\n      <div class='blog-page__content'>\n        <div class='content-display'>\n          ${template}\n        </div>\n      </div>\n      `;\n      this.showPreview = true;\n    }\n    onClosePreview(onCloseDialogAction) {\n      this.showPreview = false;\n      onCloseDialogAction();\n    }\n    onDrop(dragOverIndex, initialIndex, event) {\n      const dropContainer = event.currentTarget;\n      const imagesDropContainer = dropContainer.parentElement.children;\n      this.removeOnDropSelectClass(imagesDropContainer);\n      const imageSliderModel = this.sliderBlogsArray.objectAt(initialIndex);\n      this.sliderBlogsArray.removeAt(initialIndex);\n      this.sliderBlogsArray.insertAt(dragOverIndex, imageSliderModel);\n      this.sliderBlogsArray = this.reIndex(this.sliderBlogsArray);\n    }\n    onDragOver(dragOverIndex, event) {\n      const dropContainer = event.currentTarget;\n      const imagesDropContainer = dropContainer.parentElement.children;\n      this.removeOnDropSelectClass(imagesDropContainer);\n      const dragToRight = this.currentDraggedImgIndex <= dragOverIndex;\n      const dragToLeft = this.currentDraggedImgIndex >= dragOverIndex;\n      const onSelfFomHead = this.currentDraggedImgIndex === 0;\n      if (dragToLeft && !onSelfFomHead) {\n        dropContainer.classList.add('on-drop-select-left');\n      } else if (dragToRight) {\n        dropContainer.classList.add('on-drop-select-right');\n      }\n      this.dropPosition = dragOverIndex;\n    }\n    onDragStart(index) {\n      this.currentDraggedImgIndex = index;\n    }\n    addBlogsSlider(onCloseDialogAction) {\n      const editor = this.args.editor;\n      const blogsWrapperComponent = editor.getSelected();\n      const blogsComponent = blogsWrapperComponent.findType('bigordr-blogs')[0];\n      if (!blogsComponent) {\n        return;\n      }\n      const isEmptySlider = R.isEmpty(this.sliderBlogsArray);\n      const blogsWrapperComponentAttributes = blogsWrapperComponent.getAttributes();\n      blogsWrapperComponentAttributes['data-bigordr-blogs-tags'] = R.pathOr([], ['filters', '_data', 'tags'])(this);\n      blogsWrapperComponentAttributes['data-bigordr-blogs-slider-type'] = this.bigordrBlogsSliderType;\n      blogsWrapperComponentAttributes['data-bigordr-blogs-slider-full-width'] = this.bigordrBlogsSliderFullWidth.toString();\n      blogsWrapperComponentAttributes['data-bigordr-blogs-slider-title-line-count'] = this.bigordrBlogsSliderTitleLineCount;\n      blogsWrapperComponentAttributes['data-bigordr-blogs-slider-description-line-count'] = this.bigordrBlogsSliderDescriptionLineCount;\n      blogsWrapperComponentAttributes['data-bigordr-blogs-slider-font-size'] = this.bigordrBlogsSliderFontSize;\n      blogsWrapperComponentAttributes['data-bigordr-blogs-slider-font-weight'] = this.bigordrBlogsSliderFontWeight;\n      blogsWrapperComponentAttributes['data-bigordr-blogs-slider-limit-by'] = this.bigordrBlogsSliderLimitBy;\n      blogsWrapperComponent.setAttributes(blogsWrapperComponentAttributes);\n      if (isEmptySlider && blogsComponent) {\n        blogsComponent.remove();\n        editor.selectRemove(blogsComponent);\n      } else {\n        R.pipe(pSlider => pSlider.findType('bigordr-blog'), R.forEach(component => component.remove()))(blogsComponent);\n        R.forEach(blog => {\n          const blogData = {\n            type: 'bigordr-blog',\n            itemKey: blog.getData('_key'),\n            attributes: {\n              'data-bigordr-blog-key': blog.getData('_key'),\n              'data-bigordr-blog-master': blog.getData('master')\n            }\n          };\n          const defaultImageUrl = R.pipe(R.pathOr([], ['uploads']), R.find(R.pathEq(['_data', 'isDefault'], true)), (uploadsModel = {}) => {\n            if (uploadsModel.getUrl) {\n              return uploadsModel.getUrl('/-/scale_crop/200x200/');\n            }\n          })(blog);\n          if (defaultImageUrl) {\n            blogData.defaultImage = defaultImageUrl;\n          }\n          blogsComponent.append(blogData);\n        })(this.sliderBlogsArray);\n      }\n      onCloseDialogAction();\n    }\n    removeBlogsSlider(onCloseDialogAction) {\n      const editor = this.args.editor;\n      const blogsComponent = editor.getSelected();\n      const isEmptySlider = R.isEmpty(this.sliderBlogsArray);\n      if (blogsComponent && isEmptySlider) {\n        const hasBlogs = R.pipe(blogComponent => blogComponent.findType('bigordr-blog'), R.propSatisfies(R.gte(R.__, 1), 'length'))(blogsComponent);\n        if (!hasBlogs) {\n          blogsComponent.remove();\n          editor.selectRemove(blogsComponent);\n        }\n      }\n      onCloseDialogAction();\n    }\n    dummyAction() {}\n    setBlogImage(uploads) {\n      const resourceKey = R.pathOr('', [0, '_data', 'resourceKey'])(uploads);\n      const blog = R.find(R.pathEq(['_data', '_key'], resourceKey))(this.sliderBlogsArray);\n      if (blog) {\n        blog.set('uploads', uploads);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"displayFilters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"blogs\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"sliderBlogsArray\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"preSaveSliderBlogsArray\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"blogPreview\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"currentDraggedImgIndex\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"bigordrBlogsSliderType\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'slider';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"bigordrBlogsSliderFullWidth\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"bigordrBlogsSliderTitleLineCount\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 2;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"bigordrBlogsSliderDescriptionLineCount\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 3;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"bigordrBlogsSliderFontSize\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'small';\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"bigordrBlogsSliderFontWeight\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'bold';\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"bigordrBlogsSliderLimitBy\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '20';\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isSearchByTags\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"getDefaultsDetails\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getDefaultsDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchInputTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadSearchRecordsTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadSearchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchBlogsByTagsTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchBlogsByTagsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchBlogsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchBlogsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"paginateSearchRecordsTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"paginateSearchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dashTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"dashTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dash\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"dash\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onRemove\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"onRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAdd\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"onAdd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelect\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPreview\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"onPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClosePreview\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"onClosePreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOver\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragStart\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addBlogsSlider\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"addBlogsSlider\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeBlogsSlider\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"removeBlogsSlider\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dummyAction\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"dummyAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setBlogImage\", [_dec31], Object.getOwnPropertyDescriptor(_class.prototype, \"setBlogImage\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/blogs-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"sLrQO0Oy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"blog\\\",\\\"index\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@modalDialogIsVisible\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\"],[[23,0,[\\\"showPreview\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"grapesjs/preview-container\\\",[],[[\\\"@page\\\",\\\"@bodyStyle\\\"],[[23,0,[\\\"blogPreview\\\"]],[23,0,[\\\"gjsPreviewBodyStyle\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"close preview\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClosePreview\\\"]],[23,6,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\"],[\\\"blogs\\\",[23,8,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,8,[]]],null]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@classNames\\\"],[\\\"form-section__blogs-preview\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"blogs-wrapper flex-container-row\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"sliderBlogsArray\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isSearchByTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"blogs/blogs-card\\\",[],[[\\\"@model\\\",\\\"@compactMode\\\",\\\"@onSetImage\\\"],[[23,4,[]],true,[23,0,[\\\"setBlogImage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@classNames\\\",\\\"@dropPosition\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\",\\\"@tagName\\\"],[\\\"drop-container-border\\\",[23,0,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onDragOver\\\"]],[23,5,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onDrop\\\"]],[23,5,[]]],null],\\\"div\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@data\\\",\\\"@draggable\\\",\\\"@onDragStart\\\"],[[23,5,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"onDragStart\\\"]],[23,5,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"blogs/blogs-card\\\",[],[[\\\"@model\\\",\\\"@compactMode\\\",\\\"@onSetImage\\\",\\\"@topRightRemove\\\"],[[23,4,[]],true,[23,0,[\\\"setBlogImage\\\"]],[23,0,[\\\"onRemove\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[4,5]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"display style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-bigordr-blogs-slider-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"bigordrBlogsSliderType\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"line count for blogs title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-line-count\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",false,[23,0,[\\\"bigordrBlogsSliderTitleLineCount\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"line count for blogs description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-line-count\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",false,[23,0,[\\\"bigordrBlogsSliderDescriptionLineCount\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"font size for blogs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-font-size\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,[23,0,[\\\"bigordrBlogsSliderFontSize\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"font weight for blogs title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-font-weight\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,[23,0,[\\\"bigordrBlogsSliderFontWeight\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"bigordrBlogsSliderType\\\"]],\\\"slider\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"show one blog per slide on mobile\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"bigordrBlogsSliderFullWidth\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"limit by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"bigordrBlogsSliderLimitBy\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"blogs tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\"],[\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsByTagsTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"blogs/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],[23,0,[\\\"filters\\\"]],true,\\\"_data._key\\\",[23,7,[]],false,\\\"_data.tags\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],false,[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onMainAction\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@onPaginationTask\\\",\\\"@results\\\",\\\"@list\\\",\\\"@tableViewOptions\\\"],[\\\"blogs/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[23,0,[\\\"sliderBlogsArray\\\"]],[23,0,[\\\"blogs\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isAllowReorder\\\",\\\"onRemove\\\",\\\"tab\\\",\\\"updateRecordIndexOnDrop\\\",\\\"isReadonly\\\"],[[23,0,[\\\"adapterName\\\"]],[28,\\\"if\\\",[[23,0,[\\\"isSearchByTags\\\"]],false,true],null],[23,0,[\\\"onRemove\\\"]],[23,7,[]],false,[23,0,[\\\"isSearchByTags\\\"]]]]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",false,[23,0,[\\\"isSearchByTags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"reloadSearchRecordsTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header panel-grid__header-title__no-sticky\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container flex-row-space-between\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-row-space-around\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"placeholder\\\",\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[true,\\\"blogs\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[23,0,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,0,[\\\"searchInputTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"blogs/search-filters\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onMainAction\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@onPaginationTask\\\",\\\"@results\\\",\\\"@list\\\",\\\"@paginationIsFooter\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"blogs/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchBlogsTask\\\"]]],null],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"blogs\\\"]],false,[23,0,[\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isAllowReorder\\\",\\\"tab\\\",\\\"onSelect\\\"],[[23,0,[\\\"adapterName\\\"]],false,[23,7,[]],[23,0,[\\\"onSelect\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,2,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"removeBlogsSlider\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"addBlogsSlider\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/blogs-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/btn-modal/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _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 GrapesjsBtnModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class GrapesjsBtnModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      // this.setDefaults()\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"selectedTheme\", _descriptor3, this);\n      _initializerDefineProperty(this, \"gjsBtn\", _descriptor4, this);\n      _initializerDefineProperty(this, \"gjsBtnContent\", _descriptor5, this);\n      _initializerDefineProperty(this, \"gjsBtnHref\", _descriptor6, this);\n      _initializerDefineProperty(this, \"gjsBtnTarget\", _descriptor7, this);\n      _initializerDefineProperty(this, \"tempModel\", _descriptor8, this);\n      this._setup();\n    }\n    _setup() {\n      const selected = this.args.editor.getSelected();\n      this.gjsBtn = selected;\n      const data = {};\n      const gjsBtnAttributes = selected.getAttributes();\n\n      // if (selected) {\n      const attributes = R.pathOr([], ['attributes', 'attributes'])(selected);\n      this.selectedTheme = R.pathOr('button1', ['data-gjs-button-theme'])(gjsBtnAttributes);\n      this.gjsBtnContent = R.pathOr('button', ['content'])(gjsBtnAttributes);\n\n      // support old links\n      const gjsBtnTarget = R.pathOr('_self', ['target'])(gjsBtnAttributes);\n      const gjsBtnHref = R.pathOr('https://bigordr.com', ['href'])(gjsBtnAttributes);\n      data.linkType = R.pathOr(data.linkType || 'url', ['data-href-link-type'])(attributes);\n      data.linkTitle = R.pathOr('', ['data-href-title'])(attributes);\n      data.linkUrl = R.pathOr(gjsBtnHref, ['data-href'])(attributes);\n      data.linkResourceName = R.pathOr('', ['data-href-resource-name'])(attributes);\n      data.linkResourceType = R.pathOr('', ['data-href-resource-type'])(attributes);\n      data.linkResourceKey = R.pathOr('', ['data-href-resource-key'])(attributes);\n      data.linkTarget = R.pathOr(gjsBtnTarget, ['data-href-target'])(attributes);\n      // }\n\n      const tempModel = this.crud.setupNewRecord({\n        adapterName: 'websites/links',\n        data\n      });\n      Ember.set(this, 'tempModel', tempModel);\n    }\n    get page() {\n      const button = `<button class='button ${this.selectedTheme}' style='margin: 0 10px;'>${this.gjsBtnContent}</button>`;\n      return {\n        pageDataJson: {\n          html: `<div class='ember-view' id='ember3'>\n          <div class='columns page-container '>\n            <div class='column page__content right'>\n              <div class='ember-view' id='ember21'>\n                <div id='page-custom-content' style='background-color: var(--themeBackgroundPrimaryColor);'>\n                  <div class='bigordr-inner-row' style='background-color: var(--themeBackgroundPrimaryColor);'>\n                    <br>\n                    <div class='bigordr-cell' style='display: flex;justify-content: center;'>\n                    ${button}\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>`\n        }\n      };\n    }\n    selectTheme(themeName, onCloseDialogAction) {\n      this.selectedTheme = themeName;\n      onCloseDialogAction();\n    }\n    setBtnTheme(onCloseDialogAction) {\n      const gjsBtnClasses = this.gjsBtn.getClasses();\n      this.gjsBtn.setClass(R.reject(R.test(/button\\d/))(gjsBtnClasses));\n      if (!R.includes(this.selectedTheme)(gjsBtnClasses)) {\n        this.gjsBtn.addClass(this.selectedTheme);\n      }\n      const previousAttributes = this.args.editor.getSelected().getAttributes();\n      const tempModel = this.tempModel;\n      const linkType = tempModel?._data?.linkType || '';\n      const linkTitle = tempModel?._data?.linkTitle || '';\n      const linkUrl = tempModel?._data?.linkUrl || '';\n      const linkResourceName = tempModel?._data?.linkResourceName || '';\n      const linkResourceType = tempModel?._data?.linkResourceType || '';\n      const linkResourceKey = tempModel?._data?.linkResourceKey || '';\n      const linkTarget = tempModel?._data?.linkTarget || '';\n      const updatedAttributes = R.mergeRight(previousAttributes, {\n        'data-gjs-button-theme': this.selectedTheme,\n        content: this.gjsBtnContent,\n        'data-href-target': linkTarget,\n        'data-href': linkUrl || linkResourceKey,\n        'data-href-link-type': linkType,\n        'data-href-title': linkTitle,\n        'data-href-resource-name': linkResourceName,\n        'data-href-resource-type': linkResourceType,\n        'data-href-resource-key': linkResourceKey\n      });\n      this.args.editor.getSelected().setAttributes(updatedAttributes);\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"selectedTheme\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'button1';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"gjsBtn\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"gjsBtnContent\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'button';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"gjsBtnHref\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'https://bigordr.com';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"gjsBtnTarget\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '_self';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"tempModel\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"_setup\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"_setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTheme\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTheme\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setBtnTheme\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setBtnTheme\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/btn-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aV7Qaue8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogActionModal\\\",\\\"formInitData\\\",\\\"onCloseDialogActionListBtn\\\",\\\"@modalDialogIsVisible\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@translate\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[\\\"button styles\\\",false,[23,4,[]],false,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,4,[]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,0,[\\\"tempModel\\\",\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"buttonsStyles\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"websitesButtonStyles\\\",[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]]]]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"gjs-button-styles-preview\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"grapesjs/preview-container\\\",[[12,\\\"style\\\",\\\"height: 75px\\\"]],[[\\\"@model\\\",\\\"@page\\\",\\\"@displayTopPanel\\\"],[[23,9,[]],[23,0,[\\\"page\\\"]],false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,7,[]],\\\"styling_group\\\",[23,2,[]],\\\"display style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,2,[]],\\\"website_button_color\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonBorderColor\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@label\\\"],[[23,0,[\\\"selectedTheme\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedTheme\\\"]],\\\"button1\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectTheme\\\"]],\\\"button1\\\",[23,3,[]]],null]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[10,\\\"style\\\",\\\"margin-right: 5px;\\\"],[8],[1,[28,\\\"tt\\\",[\\\"button1\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonBorderColor\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonBorderColor\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonColor\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonColor\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonHoverColor\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonHoverColor\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonTextColor\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonTextColor\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedTheme\\\"]],\\\"button2\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectTheme\\\"]],\\\"button2\\\",[23,3,[]]],null]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[10,\\\"style\\\",\\\"margin-right: 5px;\\\"],[8],[1,[28,\\\"tt\\\",[\\\"button2\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonBorderColor2\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonBorderColor2\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonColor2\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonColor2\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonHoverColor2\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonHoverColor2\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonTextColor2\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonTextColor2\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedTheme\\\"]],\\\"button3\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectTheme\\\"]],\\\"button3\\\",[23,3,[]]],null]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[10,\\\"style\\\",\\\"margin-right: 5px;\\\"],[8],[1,[28,\\\"tt\\\",[\\\"button3\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonBorderColor3\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonBorderColor3\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonColor3\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonColor3\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonHoverColor3\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonHoverColor3\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"swatch\\\"],[11,\\\"data-color\\\",[29,[[23,9,[\\\"_data\\\",\\\"themeButtonTextColor3\\\"]]]]],[11,\\\"style\\\",[29,[\\\"background-color: \\\",[23,9,[\\\"_data\\\",\\\"themeButtonTextColor3\\\"]],\\\";\\\"]]],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,2,[]],\\\"text\\\",[23,0,[\\\"errors\\\"]],\\\"themeButtonBorderColor\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"gjsBtnContent\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"links\\\",[23,2,[]],\\\"link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@model\\\",\\\"@website\\\",\\\"@formInitData\\\"],[[23,0,[\\\"tempModel\\\"]],[23,9,[]],[23,2,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[28,\\\"fn\\\",[[23,0,[\\\"setBtnTheme\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/btn-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/form-modal/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 GrapesjsFormModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _class = class GrapesjsFormModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor3, this);\n      _initializerDefineProperty(this, \"selectedForm\", _descriptor4, this);\n      _initializerDefineProperty(this, \"formFlows\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedFormValue\", _descriptor6, this);\n      _defineProperty(this, \"adapterName\", 'flows');\n      _defineProperty(this, \"flowsFiltersAdapterName\", 'flows/filters');\n      _defineProperty(this, \"gjsPreviewBodyStyle\", {\n        body: {\n          margin: '30px !important',\n          height: '100%',\n          'background-color': '#fff'\n        }\n      });\n      this.filters = this.search.setupFilters({\n        adapterName: this.flowsFiltersAdapterName,\n        defaultFiltersData: {\n          type: 'form'\n        }\n      });\n      this.getDefaultsDetails.perform();\n    }\n    *getDefaultsDetails() {\n      const bigordrformComponents = this.args?.editor?.getSelected();\n      const selectedFormKey = bigordrformComponents?.getAttributes()['data-gjs-form-key'];\n      const hasSelectedForm = R.pipe(R.isEmpty, R.not)(selectedFormKey);\n      if (hasSelectedForm) {\n        yield this.fetchFormFlowsTask.perform(selectedFormKey);\n        return;\n      }\n      yield this.fetchFormFlowsTask.perform();\n    }\n\n    // @restartableTask\n    // * searchInputTask (query) {\n    //   yield this.crud.searchInputTask.perform(\n    //     {\n    //       adapterName: this.adapterName,\n    //       filters: this.filters,\n    //       resultsProperty: 'flows',\n    //       component: this\n    //     },\n    //     query\n    //   )\n    // }\n\n    *fetchFormFlowsTask(selectedFormKey = '') {\n      const getFormFlows = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters\n      });\n      this.formFlows = getFormFlows;\n      const isSelectedFormKey = record => R.pathEq(['_data', '_key'], selectedFormKey, record);\n      this.selectedForm = R.filter(isSelectedFormKey, getFormFlows)[0];\n      if (RA.isNotNilOrEmpty(this.selectedForm)) {\n        this.selectedFormValue = this.selectedForm?._data?.name || '';\n      }\n    }\n    onSelect(formFlow) {\n      this.selectedForm = formFlow;\n      this.selectedFormValue = this.selectedForm?._data?.name || '';\n    }\n    setForm(onCloseDialogAction) {\n      const editor = this.args?.editor;\n      const selectedComponent = editor?.getSelected();\n      const formKey = this.selectedForm?._data?._key || '';\n      const formName = this.selectedForm?._data?.name || '';\n      const updatedAttributes = {\n        'data-gjs-form-key': formKey,\n        'data-gjs-form-name': formName,\n        content: formName\n      };\n      selectedComponent.setAttributes(updatedAttributes);\n      this.selectedForm = onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"selectedForm\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"formFlows\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedFormValue\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"getDefaultsDetails\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getDefaultsDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchFormFlowsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchFormFlowsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelect\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setForm\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setForm\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/form-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"W4a3CpnL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogActionModal\\\",\\\"@modalDialogIsVisible\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@translate\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[\\\"flow_form\\\",true,[23,2,[]],false,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,2,[]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"choose form\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@hasSelected\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@tagName\\\"],[true,[23,3,[]],[23,0,[\\\"filters\\\"]],true,[23,0,[\\\"selectedForm\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchFormFlowsTask\\\",\\\"isRunning\\\"]]],null],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"formFlows\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"component\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[]]]]]],null],[23,0,[\\\"onSelect\\\"]],\\\"choose form\\\",[23,3,[]],\\\"_data.name\\\",[23,0,[\\\"selectedFormValue\\\"]],\\\"span\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[28,\\\"fn\\\",[[23,0,[\\\"setForm\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/form-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/links-modal/component\", [\"exports\", \"ramda\", \"@glimmer/component\"], function (_exports, R, _component) {\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, _dec0, _dec1, _dec10, _dec11, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 GrapesjsLinksModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('websites'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _class = class GrapesjsLinksModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"tempModel\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedFilter\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedAdapter\", _descriptor7, this);\n      _initializerDefineProperty(this, \"allFilters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allSetupData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"query\", _descriptor0, this);\n      this.crud.addLists(this, ['websites/lists/types/links', 'websites/lists/types/links/targets']);\n      this._setup();\n    }\n    _setup() {\n      const selected = this.args.editor.getSelected();\n      const data = {};\n      if (selected) {\n        const attributes = R.pathOr([], ['attributes', 'attributes'])(selected);\n        data.linkType = R.pathOr(data.linkType || 'url', ['data-href-link-type'])(attributes);\n        data.linkTitle = R.pathOr('', ['data-href-title'])(attributes);\n        data.linkUrl = R.pathOr('', ['data-href'])(attributes);\n        data.linkResourceName = R.pathOr('', ['data-href-resource-name'])(attributes);\n        data.linkResourceType = R.pathOr('', ['data-href-resource-type'])(attributes);\n        data.linkResourceKey = R.pathOr('', ['data-href-resource-key'])(attributes);\n        data.linkTarget = R.pathOr(data.target, ['data-href-target'])(attributes);\n      }\n      const tempModel = this.crud.setupNewRecord({\n        adapterName: 'websites/links',\n        data\n      });\n      Ember.set(this, 'tempModel', tempModel);\n    }\n    save(onCloseDialogAction) {\n      const selected = this.args.editor.getSelected();\n      if (selected?.getAttributes) {\n        const tempModel = this.tempModel;\n        const attr = selected.getAttributes() || {};\n        attr['data-href-link-type'] = tempModel?._data.linkType;\n        attr['data-href-title'] = tempModel?._data.linkTitle;\n        attr['data-href'] = tempModel?._data.linkUrl || tempModel?._data.linkResourceKey;\n        attr['data-href-resource-name'] = tempModel?._data.linkResourceName;\n        attr['data-href-resource-type'] = tempModel?._data.linkResourceType;\n        attr['data-href-resource-key'] = tempModel?._data.linkResourceKey;\n        attr['data-href-target'] = tempModel?._data.linkTarget;\n        selected.setAttributes(attr);\n      }\n      onCloseDialogAction();\n    }\n    cancel(onCloseDialogAction) {\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"tempModel\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedFilter\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedAdapter\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"allFilters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"allSetupData\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"query\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_setup\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"_setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/links-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WbVFE81A\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@modalDialogIsVisible\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\"],[\\\"add link\\\",[23,3,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[]]],null]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,0,[\\\"tempModel\\\",\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"linksModal\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"websitesLinks\\\",[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]]]]],[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"links\\\",[23,2,[]],\\\"link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@model\\\",\\\"@website\\\",\\\"@formInitData\\\"],[[23,0,[\\\"tempModel\\\"]],[23,8,[]],[23,2,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"save\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/links-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/preview-container/component\", [\"exports\", \"@glimmer/component\", \"grapesjs\", \"ramda\", \"client/pods/grapesjs/plugins/banner\", \"client/pods/grapesjs/plugins/blocks\", \"client/pods/grapesjs/plugins/button\", \"client/pods/grapesjs/categories\", \"client/pods/grapesjs/plugins/cell\", \"client/pods/grapesjs/plugins/full-width-image\", \"client/pods/grapesjs/plugins/image\", \"client/pods/grapesjs/plugins/non-editable\", \"client/pods/grapesjs/plugins/panels\", \"client/pods/grapesjs/plugins/product\", \"client/pods/grapesjs/plugins/products\", \"client/pods/grapesjs/plugins/row\", \"client/pods/grapesjs/plugins/scratch-card\", \"client/pods/grapesjs/plugins/slider-native\", \"client/pods/grapesjs/plugins/strip\", \"client/pods/grapesjs/plugins/video\", \"client/pods/grapesjs/plugins/grid\", \"client/pods/grapesjs/plugins/double-row\", \"client/pods/grapesjs/plugins/form\", \"client/config/environment\"], function (_exports, _component, _grapesjs, R, _banner, _blocks, _button, _categories, _cell, _fullWidthImage, _image, _nonEditable, _panels, _product, _products, _row, _scratchCard, _sliderNative, _strip, _video, _grid, _doubleRow, _form, _environment) {\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;\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   * A Page to render\n   * @typedef {Object} PageType\n   * @property {{html:string,css:string?}} pageDataJson - Page content\n   */\n  let GrapesjsPreviewContainerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class GrapesjsPreviewContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"grapesjs\", _descriptor2, this);\n      _initializerDefineProperty(this, \"editor\", _descriptor3, this);\n      _initializerDefineProperty(this, \"displayTopPanel\", _descriptor4, this);\n      _defineProperty(this, \"id\", Math.floor(new Date().getTime() / 1000.0));\n      this.displayTopPanel = R.pathOr(true, ['args', 'displayTopPanel'])(this);\n    }\n    async appendComponents(appendData, styles) {\n      const editor = this.editor;\n      return new Promise(function (resolve, reject) {\n        editor.setStyle(styles);\n        setTimeout(() => {\n          const components = editor.getComponents().models.firstObject;\n          const compArr = components.append(appendData);\n          const hasAddedComp = R.pipe(R.isEmpty, R.not)(compArr);\n          if (hasAddedComp) {\n            return resolve(compArr);\n          }\n          return reject(compArr);\n        }, 10);\n      });\n    }\n\n    /**\n     * Get the html and css from object\n     * @param {PageType} page\n     * @return {{components: string, styles: string}}\n     */\n    extractComponentsAndStyles(page) {\n      const pageDataJson = R.pathOr({}, ['pageDataJson'])(page);\n      const components = pageDataJson.components || pageDataJson.html;\n      const styles = pageDataJson.styles || pageDataJson.css;\n      return {\n        components,\n        styles\n      };\n    }\n    updateStyle(model) {\n      if (this.editor) {\n        const editorStyle = this.editor.getStyle();\n        if (editorStyle) {\n          const themeStyle = this.grapesjs.genThemeFromWebsiteModel(model);\n          editorStyle.add(themeStyle);\n        }\n      }\n    }\n    setup(page) {\n      const {\n        components,\n        styles\n      } = this.extractComponentsAndStyles(page);\n      const categories = (0, _categories.default)(this.intl);\n      const plugins = [_banner.default, _blocks.default, _button.default, _cell.default, _fullWidthImage.default, _image.default, _nonEditable.default, _panels.default, _product.default, _products.default, _row.default, _scratchCard.default, _sliderNative.default, _strip.default, _video.default, _grid.default, _doubleRow.default, _form.default];\n      const pluginsOpts = {\n        'bigordr-slider-native': {\n          categories,\n          intl: this.intl\n        },\n        'ckeditor-plugin': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-animation-trait': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-animation-text-trait': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-animation-iteration-trait': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-link-trait': {\n          categories,\n          intl: this.intl\n        },\n        tabs: {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-tabs-with-header': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-background-fixed': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-blogs': {\n          categories,\n          intl: this.intl\n        },\n        'double-row': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-form': {\n          categories,\n          intl: this.intl\n        },\n        text: {\n          categories,\n          intl: this.intl\n        },\n        row: {\n          categories,\n          intl: this.intl\n        },\n        cell: {\n          categories,\n          intl: this.intl\n        },\n        'full-width-image': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-grid': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-grid-images': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-blocks': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-banner': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-strip': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-panels': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-button': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-slider': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-video': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-product': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-products': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-video-full-width': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-picture': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-picture-layer-container': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-tabs': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-scratch-card': {\n          categories,\n          intl: this.intl\n        },\n        'bigordr-stories': {\n          categories,\n          intl: this.intl\n        }\n      };\n      this.editor = _grapesjs.default.init({\n        // Indicate where to init the editor. You can also pass an HTMLElement\n        container: `.gjs-preview-${this.id}`,\n        // Get the content for the canvas directly from the element\n        // As an alternative we could use: `components: '<h1>Hello World Component!</h1>'`,\n        fromElement: true,\n        // Size of the editor\n        height: '100%',\n        width: 'auto',\n        noticeOnUnload: false,\n        // Disable the storage manager for the moment\n        storageManager: false,\n        // Avoid any default panel\n        panels: {\n          defaults: [{\n            id: 'panel-devices',\n            el: `.panel__devices-${this.id}`,\n            buttons: [{\n              id: 'device-desktop',\n              command: 'set-device-desktop',\n              className: 'fa fa-desktop'\n            }, {\n              id: 'device-tablet',\n              command: 'set-device-tablet',\n              className: 'fa fa-tablet'\n            }, {\n              id: 'device-mobile',\n              command: 'set-device-mobile',\n              className: 'fa fa-mobile'\n            }]\n          }]\n        },\n        deviceManager: {\n          devices: [{\n            name: 'Desktop',\n            width: '' // default size\n          }, {\n            name: 'Tablet',\n            width: '650px',\n            widthMedia: '810px' // the width that will be used for the CSS media\n          }, {\n            name: 'Mobile',\n            width: '320px',\n            // this value will be used on canvas width\n            widthMedia: '480px' // this value will be used in CSS @media\n          }]\n        },\n        commands: {\n          defaults: [{\n            id: 'set-device-desktop',\n            run(editor) {\n              editor.setDevice('Desktop');\n            }\n          }, {\n            id: 'set-device-tablet',\n            run(editor) {\n              editor.setDevice('Tablet');\n            }\n          }, {\n            id: 'set-device-mobile',\n            run(editor) {\n              editor.setDevice('Mobile');\n            }\n          }]\n        },\n        plugins,\n        pluginsOpts,\n        // By default Grapes injects base CSS into the canvas. For example, it sets body margin to 0\n        // and sets a default background color of white. This CSS is desired in most cases.\n        // use this property if you wish to overwrite the base CSS to your own CSS. This is most\n        // useful if for example your template is not based off a document with 0 as body margin.\n        baseCss: `\n    * {\n      box-sizing: border-box;\n    }\n    html, body, [data-gjs-type=wrapper] {\n      min-height: 100vh;\n    }\n    body {\n      margin: 0;\n      height: 100%;\n    }\n    [data-gjs-type=wrapper] {\n      overflow: auto;\n      overflow-x: hidden;\n    }\n    * ::-webkit-scrollbar-track {\n      background: rgba(0, 0, 0, 0.1)\n    }\n    * ::-webkit-scrollbar-thumb {\n      background: rgba(255, 255, 255, 0.2)\n    }\n    * ::-webkit-scrollbar {\n      width: 10px\n    }\n    .button:hover {\n      background-color: var(--themeButtonHoverColor);\n      color: var(--themeButtonHoverTextColor);\n    }\n\n    .button1 {\n      background-color: var(--themeButtonColor1) !important;\n      border: 1px solid var(--themeButtonBorderColor1) !important;\n      color: var(--themeButtonTextColor1) !important;\n      border-radius: var(--themeButtonBorderRadius1) !important;\n    }\n    .button1:hover {\n      background-color: var(--themeButtonHoverColor1);\n      color: var(--themeButtonHoverTextColor1);\n    }\n    .button2 {\n      background-color: var(--themeButtonColor2) !important;\n      border: 1px solid var(--themeButtonBorderColor2) !important;\n      color: var(--themeButtonTextColor2) !important;\n      border-radius: var(--themeButtonBorderRadius2) !important;\n    }\n    .button2:hover {\n      background-color: var(--themeButtonHoverColor2);\n      color: var(--themeButtonHoverTextColor2) !important;\n    }\n    .button3 {\n      background-color: var(--themeButtonColor3) !important;\n      border: 1px solid var(--themeButtonBorderColor3) !important;\n      color: var(--themeButtonTextColor3) !important;\n      border-radius: var(--themeButtonBorderRadius3) !important;\n    }\n    .button3:hover {\n      background-color: var(--themeButtonHoverColor3);\n      color: var(--themeButtonHoverTextColor3) !important;\n    }\n    .button-variant {\n      background-color: var(--themeVariantButtonColor) !important;\n      border: 1px solid var(--themeVariantButtonBorderColor) !important;\n      color: var(--themeVariantButtonTextColor) !important;\n      border-radius: var(--themeVariantButtonBorderRadius) !important;\n    }\n    .button-variant:hover {\n      background-color: var(--themeVariantButtonHoverColor) !important;\n      border: 1px solid var(--themeVariantButtonHoverBorderColor) !important;\n      color: var(--themeVariantButtonHoverTextColor) !important;\n    }\n    .button-variant.is-selected {\n      background-color: var(--themeVariantButtonSelectedColor) !important;\n      border: 1px solid var(--themeVariantButtonSelectedBorderColor) !important;\n      color: var(--themeVariantButtonSelectedTextColor) !important;\n    }\n    .nav-item .button {\n      color: var(--themeMenuLinkColor);\n      background-color: transparent;\n    }\n    .nav-item .button:hover {\n      color: var(--themeMenuLinkHoverColor);\n      background-color: transparent;\n    }\n    .nav-item .button.button-right {\n      color: var(--themeMenuButtonColor) !important;\n      background-color: transparent;\n    }\n    .nav-item .button.button-right:hover {\n      color: var(--themeMenuButtonHoverColor) !important;\n      background-color: transparent;\n    }\n    body {\n      background-color: var(--themeBackgroundPrimaryColor);\n    }\n\n    .menu-list__no-hover a:hover {\n      background-color: transparent;\n    }\n\n    .menu-list__footer-header-color p {\n      color: var(--themeFooterHeaderColor);\n    }\n\n    .grapesjs-custom-code {\n      min-height: 75px;\n    }\n  `,\n        canvas: {\n          styles: [`${_environment.default.APP.storageUrl}/api/proxy/file/vendor/css`, `${_environment.default.APP.storageUrl}/api/proxy/file/shop/css`, 'https://fonts.googleapis.com/css?family=Noto+Sans+TC|Noto+Serif+TC'],\n          scripts: ['https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/js/all.min.js']\n        }\n      });\n      this.editor.Panels.addPanel({\n        id: 'panel-top',\n        el: `.panel__top-${this.id}`\n      });\n      this.editor.setComponents({\n        tagName: 'div',\n        classes: ['readonly']\n      });\n      this.editor.DomComponents.getWrapper().onAll(comp => comp.set({\n        badgable: false,\n        copyable: false,\n        draggable: false,\n        droppable: false,\n        editable: false,\n        highlightable: false,\n        hoverable: false,\n        layerable: false,\n        propagate: ['badgable', 'copyable', 'draggable', 'droppable', 'editable', 'highlightable', 'hoverable', 'layerable', 'removable', 'resizable', 'selectable', 'stylable'],\n        removable: false,\n        resizable: false,\n        selectable: false,\n        stylable: false\n      }));\n      this.appendComponents(components, styles).catch(error => console.error('ERROR WHILE APPENDING COMPONENTS & STYLE: ', error));\n    }\n\n    /**\n     * Update gjs content\n     * @param {PageType} page\n     */\n    updateContent(page) {\n      const {\n        components,\n        styles\n      } = this.extractComponentsAndStyles(page);\n      try {\n        const readonlyWrapper = this.editor.Components.getComponent().find('div > .readonly').firstObject;\n        if (readonlyWrapper) {\n          readonlyWrapper.empty();\n          readonlyWrapper.append(components);\n          if (styles) {\n            this.editor.setStyle(styles);\n          }\n        }\n      } catch (error) {\n        console.error('ERROR WHILE UPDATING CONTENT: ', error);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"grapesjs\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"editor\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"displayTopPanel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateStyle\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"updateStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateContent\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"updateContent\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/preview-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lbmH7wZt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"&attrs\\\",\\\"@model\\\",\\\"@page\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[25,1],\\\"gjs-preview-grid\\\",\\\"\\\"],null]]]],[13,2],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"updateStyle\\\"]],[23,3,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"gjs-preview-palettes-list\\\"],[8],[0,\\\"\\\\n      \\\"],[14,1,[[28,\\\"hash\\\",null,[[\\\"updateStyle\\\"],[[23,0,[\\\"updateStyle\\\"]]]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"gjs-preview-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"panel__top panel__top-\\\",[23,0,[\\\"id\\\"]],\\\" gjs__center-devices \\\",[28,\\\"if\\\",[[23,0,[\\\"displayTopPanel\\\"]],\\\"editor-top-panel-display-initial\\\",\\\"editor-top-panel-display-none\\\"],null]]]],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setup\\\"]],[23,4,[]]],null]]],[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"updateContent\\\"]],[23,4,[]]],null]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"panel__devices panel__devices-\\\",[23,0,[\\\"id\\\"]]]]],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"gjs-preview gjs-preview-\\\",[23,0,[\\\"id\\\"]]]]],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/preview-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/products-modal/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, _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, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\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 GrapesjsProductsModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _class = class GrapesjsProductsModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"defaultRowLimit\", '3');\n      _defineProperty(this, \"filtersAdapterName\", 'channels/shop/campaigns/details/filters');\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasTags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"productsArray\", _descriptor5, this);\n      _initializerDefineProperty(this, \"productsArrayFiltered\", _descriptor6, this);\n      _initializerDefineProperty(this, \"bigordrProductsSliderType\", _descriptor7, this);\n      _initializerDefineProperty(this, \"bigordrProductsSliderRowLimit\", _descriptor8, this);\n      _initializerDefineProperty(this, \"bigordrProductsSliderLimitBy\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor1, this);\n      this.crud.addLists(this, ['products/lists/bigordr-products-slider-types', 'products/lists/bigordr-products-slider-items', 'products/lists/filters/search', 'products/lists/filters/sort', 'products/lists/filters/status', 'products/lists/tags', 'products/lists/types', 'filters/count', 'filters/sortDirection']);\n      this.dragDropSort.checkingIndexProp = 'indexTemp';\n      this.filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          count: 60,\n          page: 1,\n          master: this.args.shopKey,\n          sort: [{\n            by: 'index',\n            direction: 'asc'\n          }]\n        }\n      });\n      this.getDefaultsDetails();\n    }\n    get isSlider() {\n      return this.bigordrProductsSliderType === 'slider';\n    }\n    getDefaultsDetails() {\n      const productsWrapper = this.args.editor.getSelected();\n      const productsTags = R.pathOr([], ['attributes', 'attributes', 'data-bigordr-products-tags'])(productsWrapper);\n      this.bigordrProductsSliderType = R.pathOr(this.bigordrProductsSliderType, ['attributes', 'attributes', 'data-bigordr-products-slider-type'])(productsWrapper);\n      this.bigordrProductsSliderRowLimit = R.pathOr(this.bigordrProductsSliderRowLimit, ['attributes', 'attributes', 'data-bigordr-products-slider-row-limit'])(productsWrapper);\n      this.bigordrProductsSliderLimitBy = R.pathOr(this.bigordrProductsSliderLimitBy, ['attributes', 'attributes', 'data-bigordr-products-slider-limit-by'])(productsWrapper);\n      const bigordrProductIdComponents = productsWrapper.findType('bigordr-product-id');\n      const productsArray = R.map(R.pathOr([], ['attributes', 'attributes', 'data-bigordr-product']))(bigordrProductIdComponents);\n      const hasProductsTags = R.pipe(R.isEmpty, R.not)(productsTags);\n      const hasProductsArray = R.pipe(R.isEmpty, R.not)(productsArray);\n      this.hasTags = hasProductsTags;\n      if (hasProductsTags) {\n        this.filters.setData('tags', productsTags);\n        this.getProductsByTagTask.perform();\n      } else if (hasProductsArray) {\n        this.fetchProductsAndSort.perform(productsArray);\n      }\n    }\n    clearProductsArray() {\n      this.productsArray.clear();\n      this.productsArrayFiltered.clear();\n    }\n    *fetchProductsAndSort(productsArray) {\n      const fetchTaskArray = R.map(itemKey => this.getProductsByItemKeyTask.perform(itemKey))(productsArray);\n      const productModelArray = yield (0, _emberConcurrency.all)(fetchTaskArray);\n      R.pipe(R.sortBy(R.pipe(R.path(['_data', '_key']), R.indexOf(R.__, productsArray))), R.map(this.addProduct))(productModelArray);\n    }\n    *onSearchTask({\n      filters\n    }) {\n      const price = R.pathOr('', ['_data', 'price'])(filters);\n      const item = R.pathOr('', ['_data', 'item'])(filters);\n      const filterData = R.pipe(R.filter(R.pipe(R.path(['_data', 'item']), R.includes(item))))(this.productsArray);\n      this.productsArrayFiltered = R.pipe(R.filter(R.pipe(R.path(['_data', 'price']), R.includes(price))))(filterData);\n    }\n    *onReloadSearchRecordsTask({\n      filters\n    }) {\n      const sortArray = R.pipe(R.pathOr({}, ['_data', 'sort']), R.pluck('_data'))(filters);\n      if (R.isEmpty(sortArray)) {\n        sortArray.push({});\n      }\n      const sortWithArray = R.map(sort => {\n        const direction = R.pathOr('ASC', ['direction'])(sort);\n        const by = R.pathOr('index', ['by'])(sort);\n        if (direction === 'ASC') {\n          if (by === 'price') {\n            return R.ascend(R.pipe(R.path(['_data', by]), value => parseInt(value)));\n          }\n          return R.ascend(R.path(['_data', by]));\n        } else {\n          if (by === 'price') {\n            return R.descend(R.pipe(R.path(['_data', by]), value => parseInt(value)));\n          }\n          return R.descend(R.path(['_data', by]));\n        }\n      })(sortArray);\n      this.productsArrayFiltered = R.sortWith(sortWithArray)(this.productsArrayFiltered);\n    }\n    *getProductsByTagTask() {\n      const hasTags = R.pipe(R.pathOr([], ['_data', 'tags']), R.isEmpty, R.not)(this.filters);\n      this.hasTags = hasTags;\n      if (hasTags) {\n        const results = yield this.crud.searchAdvancedTask.perform({\n          adapterName: 'channels/shop/campaigns/details',\n          filters: this.filters\n        });\n        this.clearProductsArray();\n        R.forEach(productModel => this.addProduct(productModel))(results);\n      }\n    }\n    *getProductsByItemKeyTask(itemKey) {\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          itemKey,\n          master: this.args.shopKey,\n          statuses: ['inactive', 'active', 'preOrder', 'outOfStock', 'soldOut']\n        }\n      });\n      const [productModel] = yield this.crud.searchRecordsConcurrentlyTask.perform({\n        adapterName: 'channels/shop/campaigns/details',\n        appendPath: 'advanced',\n        filters\n      });\n      if (!productModel) {\n        return false;\n      }\n\n      // this.addProduct(productModel)\n      return productModel;\n    }\n    addProduct(model) {\n      if (!model) {\n        return;\n      }\n      const isInArray = R.pipe(R.find(R.pathEq(['_data', 'itemKey'], model._data.itemKey)), RA.isNilOrEmpty, R.not)(this.productsArray);\n      if (isInArray) {\n        this.removeProductFromSlider(model);\n      } else {\n        this.productsArray.addObject(model);\n        this.productsArrayFiltered = this.productsArray;\n      }\n      this.reIndexProductsArray();\n      return model;\n    }\n    onSave(onCloseDialogAction) {\n      const editor = this.args.editor;\n      const productsSlider = editor.getSelected();\n      const hasProductsArray = RA.isNotNilOrEmpty(this.productsArray);\n\n      // Remove all inner components\n      const [msg] = productsSlider.findType('noProductsMessage');\n      if (hasProductsArray) {\n        if (msg) {\n          msg.remove();\n        }\n      } else {\n        // const defaultNoProductsMessage = productsSlider.get('defaultNoProductsMessage')\n        // productsSlider.getEl().innerHTML += `${defaultNoProductsMessage}`\n        productsSlider.append({\n          type: 'noProductsMessage'\n        });\n      }\n      const productsSliderAttributes = productsSlider.getAttributes();\n      productsSliderAttributes['data-bigordr-products-tags'] = R.pathOr([], ['_data', 'tags'])(this.filters);\n      productsSliderAttributes['data-bigordr-products-slider-type'] = this.bigordrProductsSliderType;\n      productsSliderAttributes['data-bigordr-products-slider-limit-by'] = this.bigordrProductsSliderLimitBy;\n      if (this.bigordrProductsSliderType === 'grid') {\n        productsSliderAttributes['data-bigordr-products-slider-row-limit'] = this.bigordrProductsSliderRowLimit;\n      } else {\n        productsSliderAttributes['data-bigordr-products-slider-row-limit'] = this.defaultRowLimit;\n      }\n      productsSlider.setAttributes(productsSliderAttributes);\n      const bigordrProducts = productsSlider.findType('bigordr-products').firstObject;\n      R.pipe(pSlider => pSlider.findType('bigordr-product'), R.forEach(component => component.remove()))(productsSlider);\n      R.forEach(product => {\n        bigordrProducts.append({\n          type: 'bigordr-product',\n          defaultImage: product.getDefaultImageUrl('/-/scale_crop/200x200/'),\n          itemKey: product.getData('itemKey'),\n          attributes: {\n            'data-bigordr-products-slider': 'true'\n          }\n        });\n      })(this.productsArray);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    removeProductFromSlider(model) {\n      const itemKey = R.path(['_data', 'itemKey'])(model);\n      if (itemKey) {\n        const toRemove = R.pipe(R.propOr([], 'productsArray'), R.find(R.pathEq(['_data', 'itemKey'], itemKey)))(this);\n        if (toRemove) {\n          this.productsArray.removeObject(toRemove);\n        }\n      }\n    }\n    *onPaginationSearchTask(paginateSearchRecordsTask, {\n      filters\n    }) {\n      if (paginateSearchRecordsTask) {\n        const result = yield paginateSearchRecordsTask.perform({\n          filters\n        });\n        return this.onAfterSearch(result);\n      }\n    }\n    onAfterSearch(results) {\n      const productsArray = this.productsArray || [];\n      return R.map(model => {\n        const isInArray = R.pipe(R.find(R.pathEq(['_data', 'itemKey'], model._data.itemKey)), RA.isNilOrEmpty, R.not)(productsArray);\n        if (isInArray) {\n          model.set('isSelected', true);\n        } else {\n          model.set('isSelected', false);\n        }\n        return model;\n      })(results);\n    }\n    onCancel(onCloseDialogAction) {\n      const productsOuterWrapper = this.args.editor.getSelected();\n      const products = productsOuterWrapper.findType('bigordr-products')[0];\n      const productArray = products.components();\n      // @TODO: isEmpty or isNilOrEmpty\n      const hasProducts = R.propSatisfies(R.gte(R.__, 1), 'length')(productArray);\n      if (!hasProducts) {\n        productsOuterWrapper.remove();\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n\n    /**\n     * Reorder the filtered products list to the dropped row.\n     * Skips when there is no drop target or no matching drag-start.\n     * @param {Object} detail - row the pointer dropped on\n     * @return {void}\n     */\n    reorderDetails(detail) {\n      const dragItem = this.dragDetail;\n      if (!detail?.get) {\n        return;\n      }\n      const indexProp = this?.dragDropSort?.indexProp || '_data.index';\n      // @note reindex onto checkingIndexProp (indexTemp), not indexProp -\n      // dragOverItem's insert-line lookup reads checkingIndexProp, and _data.index\n      // is the model's real persisted order, which this preview reorder must not touch\n      const reindexProp = this?.dragDropSort?.checkingIndexProp || indexProp;\n      const onOverItemIndex = detail.get(indexProp);\n      this.dragDropSort.reorderItemsByIndex(this.productsArrayFiltered, dragItem, onOverItemIndex, indexProp, reindexProp);\n    }\n    reIndexProductsArray() {\n      const productsArrayFiltered = this.productsArrayFiltered;\n      const forEachIndexed = R.addIndex(R.forEach);\n      forEachIndexed((product, index) => {\n        const checkingIndexProp = this?.dragDropSort?.checkingIndexProp || this?.dragDropSort?.indexProp || '_data.index';\n        product.set(checkingIndexProp, index);\n        return product;\n      })(productsArrayFiltered);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasTags\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"productsArray\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"productsArrayFiltered\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"bigordrProductsSliderType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'slider';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"bigordrProductsSliderRowLimit\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.defaultRowLimit;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"bigordrProductsSliderLimitBy\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '20';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchProductsAndSort\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchProductsAndSort\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSearchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSearchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onReloadSearchRecordsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onReloadSearchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getProductsByTagTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getProductsByTagTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getProductsByItemKeyTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getProductsByItemKeyTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addProduct\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"addProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"onSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeProductFromSlider\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"removeProductFromSlider\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPaginationSearchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onPaginationSearchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAfterSearch\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterSearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCancel\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"onCancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderDetails\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reIndexProductsArray\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"reIndexProductsArray\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/products-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Ez3IC8g6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@modalDialogIsVisible\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@shopKey\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\"],[\\\"search products\\\",[23,4,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,4,[]]],null]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"display style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-bigordr-products-slider-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"bigordrProductsSliderType\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"display items per row\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[[23,0,[\\\"isSlider\\\"]],true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-bigordr-products-slider-items\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"bigordrProductsSliderRowLimit\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"limit by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"bigordrProductsSliderLimitBy\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\",\\\"@disabled\\\"],[\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"getProductsByTagTask\\\"]]],null],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,0,[\\\"filters\\\"]],true,\\\"_data._key\\\",[23,6,[]],false,\\\"_data.tags\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@contentClassNames\\\"],[\\\"is-gray\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@isSelectedByProductTags\\\",\\\"@lists\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[\\\"new-table-view\\\",\\\"channels/shop/campaigns/items/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"hasTags\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[23,0,[\\\"onSearchTask\\\"]],[23,0,[\\\"productsArrayFiltered\\\"]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"onMainActionIcon\\\",\\\"onMainActionLabel\\\",\\\"onRemove\\\",\\\"tab\\\",\\\"dragDetail\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"onDragOver\\\",\\\"onDrop\\\",\\\"fromGrapesJs\\\"],[\\\"channels/shop/campaigns/details\\\",\\\"fas fa-check-circle\\\",\\\"\\\",[23,0,[\\\"removeProductFromSlider\\\"]],[23,6,[]],[23,0,[\\\"dragDetail\\\"]],[28,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"hasTags\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]]],null]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"hasTags\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,0,[]]],null]],null],[28,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"hasTags\\\"]]],null],[23,0,[\\\"reorderDetails\\\"]]],null],true]]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\"],[\\\"fas fa-plus\\\",false,[28,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"tags\\\"]],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/items/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@onAfterSearch\\\",\\\"@onPaginationSearchTask\\\",\\\"@shopKey\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[\\\"channels/shop/campaigns/details\\\",[23,0,[\\\"onAfterSearch\\\"]],[23,0,[\\\"onPaginationSearchTask\\\"]],[23,7,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"tab\\\",\\\"onSelect\\\"],[[23,6,[]],[23,0,[\\\"addProduct\\\"]]]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,2,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"onCancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSave\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/products-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/re-index-modal/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, R, _ramdaAdjunct, _component, _emberConcurrencyDecorators) {\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;\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 GrapesjsReIndexModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class GrapesjsReIndexModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"indexModelArray\", _descriptor2, this);\n      _initializerDefineProperty(this, \"frontendErrors\", _descriptor3, this);\n      _initializerDefineProperty(this, \"saveDisabled\", _descriptor4, this);\n      _defineProperty(this, \"slidesTypeName\", 'lory-slides');\n      _defineProperty(this, \"slideTypeName\", 'lory-slide');\n      this.setIndexModelArray();\n    }\n\n    /**\n     * Get Index from current elements, and store the Re-Indexed value\n     */\n    setIndexModelArray() {\n      const selected = this.args.editor.getSelected();\n      const targets = selected.findType(this.slideTypeName);\n      let index = 0;\n      R.forEach(child => {\n        index++;\n        const children = child.getEl().innerHTML;\n        this.indexModelArray.push({\n          slide: R.clone(child),\n          children,\n          index\n        });\n      })(targets);\n    }\n    *frontendValidation(indexModelArray) {\n      // currently the @model does not contains dirty, thus cannot show validation\n      this.frontendErrors = [];\n      const errors = this.frontendErrors;\n      let i = 0;\n      indexModelArray.forEach(model => {\n        const index = model.index;\n        if (_ramdaAdjunct.default.isNilOrEmpty(index)) {\n          errors.push({\n            type: 'isRequired',\n            message: 'is required',\n            path: [`grapejs_index[${i}]`],\n            context: {\n              key: `grapejs_index[${i}]`\n            },\n            isError: true\n          });\n        }\n        i++;\n      });\n      if (errors.length === 0) {\n        const uniqueLength = R.pipe(R.pluck('index'), R.map(userInputIndex => Number(userInputIndex)), R.uniq, R.length)(indexModelArray);\n        if (uniqueLength !== indexModelArray.length) {\n          // there may not be no such error yet\n          errors.push({\n            type: 'notUnique',\n            message: 'should be unique values',\n            path: ['grapejs'],\n            context: {\n              key: 'grapejs'\n            },\n            isError: true\n          });\n        }\n      }\n      if (errors.length > 0) {\n        return false;\n      }\n      return true;\n    }\n    *onSave(onCloseDialogAction) {\n      const indexModelArray = this.indexModelArray;\n      const isValid = yield this.frontendValidation.perform(indexModelArray);\n      if (!isValid) {\n        return;\n      }\n      const gjsSelectedElement = this.args.editor.getSelected();\n      const slides = gjsSelectedElement.findType(this.slidesTypeName)[0];\n      const newChildren = R.pipe(R.sortWith([R.ascend(R.prop('index'))]), R.pluck('slide'))(indexModelArray);\n      slides.empty();\n      slides.append(newChildren);\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"indexModelArray\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"frontendErrors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"saveDisabled\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setIndexModelArray\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setIndexModelArray\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"frontendValidation\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"frontendValidation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSave\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/re-index-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Jj1jbBMC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"model\\\",\\\"index\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@title\\\"],[false,[23,4,[]],[23,5,[]],\\\"re-index\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"indexModelArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"gjs-re-index__item\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"gjs-re-index__item-row\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"re-index\\\"],null],\\\": \\\"],null],false],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@min\\\",\\\"@step\\\",\\\"@max\\\",\\\"@type\\\",\\\"@value\\\"],[\\\"1\\\",\\\"1\\\",[23,0,[\\\"indexModelArray\\\",\\\"length\\\"]],\\\"number\\\",[23,2,[\\\"index\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"gjs-re-index__preview\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"html-safe\\\",[[23,2,[\\\"children\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@icon\\\"],[[29,[\\\"grapejs_index[\\\",[23,3,[]],\\\"]\\\"]],[23,0,[\\\"frontendErrors\\\"]],\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n    \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@icon\\\"],[\\\"grapejs\\\",[23,0,[\\\"frontendErrors\\\"]],\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveDisabled\\\"]],false,\\\"done\\\",[28,\\\"perform\\\",[[23,0,[\\\"onSave\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/re-index-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/schedules-modal/component\", [\"exports\", \"ramda\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, R, _component, _emberConcurrencyDecorators, _ramdaAdjunct, _nventor) {\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;\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 GrapesjsSchedulesModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _class = class GrapesjsSchedulesModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"schedulesModelArray\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applySchedulesToAll\", _descriptor3, this);\n      _initializerDefineProperty(this, \"saveDisabled\", _descriptor4, this);\n      _initializerDefineProperty(this, \"schedulesTargetContainerClass\", _descriptor5, this);\n      _initializerDefineProperty(this, \"schedulesTatgetClass\", _descriptor6, this);\n      this.crud.addLists(this, ['statuses']);\n      this.schedulesTargetContainerClass = this.args.schedulesTargetContainerClass || null;\n      this.schedulesTatgetClass = this.args.schedulesTatgetClass || null;\n      const schedulesTatgetIsArray = this.args.schedulesTatgetIsArray || false;\n      this.applySchedulesToAll = !schedulesTatgetIsArray;\n      // If is not array treat as apply to all\n      // If is array default to false\n\n      this.setSchedulesModelArray();\n    }\n\n    /**\n     * Set schedules array from stored one\n     * If only one object still treats as an array\n     */\n    setSchedulesModelArray(_applytoall = null) {\n      const selected = this.args.editor.getSelected();\n      const selectedElement = selected.getEl();\n\n      // The outer container of the target\n      let frame;\n      if (this.schedulesTargetContainerClass) {\n        const containerClass = `.${this.schedulesTargetContainerClass}`;\n        frame = selectedElement.querySelector(containerClass);\n      }\n\n      // The target classname, will select all inside the target container\n      let targets = [];\n      if (frame && this.schedulesTatgetClass) {\n        const targetClass = `.${this.schedulesTatgetClass}`;\n        targets = frame.querySelectorAll(targetClass);\n      }\n      this.schedulesModelArray = R.map(child => {\n        let childSchedules = child.getAttribute('data-gjs-model-schedule') || '{}'; // should be string\n        childSchedules = _nventor.default.safeParseJSON(childSchedules);\n        let applytoall = false;\n        if (_applytoall === null) {\n          let childApplytoall = child.getAttribute('data-gjs-model-applytoall');\n          childApplytoall = _nventor.default.safeParseJSON(childApplytoall);\n          applytoall = childApplytoall === 'true' || childApplytoall === true;\n        } else {\n          applytoall = _applytoall;\n        }\n        const elementData = R.pipe(\n        // Get only the relevant data\n        R.propOr({}, 'dataset'), R.toPairs, R.filter(str => R.test(/Model/)(str)),\n        // dynamically rename keys\n        R.map(R.over(R.lensPath([0]), (key = ['']) => R.pipe(R.split('Model'), R.last, R.toLower)(key))), R.fromPairs)(child);\n        const schedulesModel = this.crud.setupNewRecord({\n          adapterName: 'grapesjs/schedules',\n          data: elementData\n        });\n        const schedules = schedulesModel.getData('schedules');\n        if (_ramdaAdjunct.default.isNilOrEmpty(schedules)) {\n          R.forEach(schedule => schedulesModel.addSchedule({\n            ...schedule,\n            scheduleId: _nventor.default.random.alphaNum(18)\n          }))(childSchedules);\n        }\n        this.applySchedulesToAll = applytoall;\n        return schedulesModel;\n      })(targets);\n      if (this.applySchedulesToAll) {\n        this.schedulesModelArray = this.schedulesModelArray.splice(0, 1);\n      }\n    }\n    *onSave(onCloseDialogAction) {\n      const gjsSelectedElement = this.args.editor.getSelected();\n      const applySchedulesToAll = this.applySchedulesToAll;\n      const schedulesModelArray = this.schedulesModelArray;\n      const allSchedules = R.pipe(R.map(schedule => R.pipe(R.pathOr([], ['_data', 'schedules']))(schedule)))(schedulesModelArray);\n\n      // Clear GrapesJs component\n      R.reject(R.isNil)(gjsSelectedElement.components());\n      const schedulesData = allSchedules.map(_scheduleData => {\n        let schedules = [];\n        if (applySchedulesToAll) {\n          schedules = allSchedules[0];\n        } else {\n          schedules = _scheduleData;\n        }\n        schedules = R.pipe(R.map(schedule => {\n          if (schedule?.serialize) {\n            schedule.serialize();\n          }\n          return R.pathOr([], ['_data'])(schedule);\n        }), R.reject(_ramdaAdjunct.default.isNilOrEmpty))(schedules);\n        const gjsModelAttributes = {\n          'data-gjs-model-schedule': JSON.stringify(schedules),\n          'data-gjs-model-applytoall': applySchedulesToAll\n        };\n        const _data = {};\n        _data.schedulesAttributes = gjsModelAttributes;\n        return _data;\n      });\n      gjsSelectedElement.updateScheddules(schedulesData);\n      onCloseDialogAction();\n    }\n    checkOverlapDate(model = {}, schedules = []) {\n      const overlapDate = model.checkOverlapDate({\n        model\n      });\n      if (overlapDate.hasOverlap) {\n        this.saveDisabled = true;\n        const overlapIds = overlapDate.ids || [];\n        R.forEach(schedule => {\n          const scheduleId = schedule.getData('scheduleId');\n          if (R.includes(scheduleId, overlapIds)) {\n            Ember.set(schedule, 'hasOverlap', true);\n          } else {\n            Ember.set(schedule, 'hasOverlap', false);\n          }\n        })(schedules);\n      } else {\n        this.saveDisabled = false;\n        R.forEach(schedule => {\n          Ember.set(schedule, 'hasOverlap', false);\n        })(schedules);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"schedulesModelArray\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applySchedulesToAll\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"saveDisabled\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"schedulesTargetContainerClass\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"schedulesTatgetClass\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setSchedulesModelArray\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"setSchedulesModelArray\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkOverlapDate\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"checkOverlapDate\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/schedules-modal/schedules-dialog/component\", [\"exports\", \"@glimmer/component\", \"client/utils/nventor\"], function (_exports, _component, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let GrapesjsSchedulesModalSchedulesDialogComponent = _exports.default = (_dec = Ember._action, _class = class GrapesjsSchedulesModalSchedulesDialogComponent extends _component.default {\n    onSubmitAddSchedule(scheduleModel) {\n      scheduleModel.addSchedule({\n        scheduleId: _nventor.default.random.alphaNum(18)\n      });\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onSubmitAddSchedule\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitAddSchedule\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/schedules-modal/schedules-dialog/schedules-row/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, _ramdaAdjunct) {\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 GrapesjsSchedulesModalSchedulesDialogSchedulesRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._action, _dec5 = Ember._action, _class = class GrapesjsSchedulesModalSchedulesDialogSchedulesRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      const schedule = this.args.schedule;\n      const dateStartZ = schedule.getData('dateStartZ');\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(dateStartZ)) {\n        let startHours = this.date.getMoment(dateStartZ).hours();\n        if (parseInt(startHours) < 10) {\n          startHours = `0${startHours}`;\n        }\n        let startMinutes = this.date.getMoment(dateStartZ).minutes();\n        if (parseInt(startMinutes) < 10) {\n          startMinutes = `0${startMinutes}`;\n        }\n        Ember.set(schedule, 'startHours', startHours);\n        Ember.set(schedule, 'startMinutes', startMinutes);\n      }\n      const dateEndZ = schedule.getData('dateEndZ');\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(dateEndZ)) {\n        let endHours = this.date.getMoment(dateEndZ).hours();\n        if (parseInt(endHours) < 10) {\n          endHours = `0${endHours}`;\n        }\n        let endMinutes = this.date.getMoment(dateEndZ).minutes();\n        if (parseInt(endMinutes) < 10) {\n          endMinutes = `0${endMinutes}`;\n        }\n        Ember.set(schedule, 'endHours', endHours);\n        Ember.set(schedule, 'endMinutes', endMinutes);\n      }\n    }\n    get statusClass() {\n      const schedule = this.args.schedule;\n      const status = schedule.getData('status');\n      if (status === this.constants.status.active) {\n        return 'is-primary';\n      }\n      return 'is-danger';\n    }\n    setDateTime(args) {\n      const {\n        schedule,\n        type\n      } = args;\n      let hoursProperty;\n      let minutesProperty;\n      let dateProperty;\n      if (type === 'dateStartZ') {\n        hoursProperty = 'startHours';\n        minutesProperty = 'startMinutes';\n        dateProperty = 'dateStart';\n      }\n      if (type === 'dateEndZ') {\n        hoursProperty = 'endHours';\n        minutesProperty = 'endMinutes';\n        dateProperty = 'dateEnd';\n      }\n      let dateZ = schedule.getData(type);\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(dateZ)) {\n        let hours = schedule[hoursProperty] || 0;\n        let minutes = schedule[minutesProperty] || 0;\n        if (parseInt(hours) > 23) {\n          hours = 23;\n          Ember.set(schedule, hoursProperty, '23');\n        }\n        if (parseInt(hours) < 0) {\n          hours = 0;\n          Ember.set(schedule, hoursProperty, '00');\n        }\n        if (parseInt(minutes) > 59) {\n          minutes = 59;\n          Ember.set(schedule, minutesProperty, '59');\n        }\n        if (parseInt(minutes) < 0) {\n          minutes = 0;\n          Ember.set(schedule, minutesProperty, '00');\n        }\n        dateZ = this.date.getMoment(dateZ).hours(hours).minutes(minutes).toISOString();\n        schedule.setData(type, dateZ);\n        const date = this.date.formatDate(dateZ, 'YYYY-MM-DD');\n        Ember.set(schedule, dateProperty, date);\n      }\n    }\n    onSubmitRemoveSchedule(schedule) {\n      const model = this.args.model;\n      const schedules = model.getData('schedules');\n      schedules.removeObject(schedule);\n      this.args.checkOverlapDate(model, schedules);\n    }\n    onChangeSetActivation() {\n      const schedule = this.args.schedule;\n      this.setDateTime({\n        schedule,\n        type: 'dateStartZ'\n      });\n      this.setDateTime({\n        schedule,\n        type: 'dateEndZ'\n      });\n      const model = this.args.model;\n      const schedules = model.getData('schedules');\n      this.args.checkOverlapDate(model, schedules);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSubmitRemoveSchedule\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitRemoveSchedule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeSetActivation\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeSetActivation\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/schedules-modal/schedules-dialog/schedules-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vfhOb2x4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@schedule\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"tr\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"isActive\\\"]],\\\"u-bg--green\\\",\\\"u-bg--orange\\\"],null]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@dateZ\\\",\\\"@inputPvtClassNames\\\",\\\"@isDatePicker\\\",\\\"@onInput\\\",\\\"@onSelectDate\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@valueKey\\\"],[[23,1,[\\\"_data\\\",\\\"dateStartZ\\\"]],\\\"table-form__input table-form__input--120\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null],[23,2,[]],[23,1,[\\\"dateStart\\\"]],\\\"dateStartZ\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@onInput\\\",\\\"@value\\\"],[\\\"table-form__input table-form__input_max--40\\\",[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null],[23,1,[\\\"startHours\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-right-7\\\"],[8],[0,\\\":\\\"],[9],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@onInput\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"table-form__input table-form__input_max--40\\\",[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null],[23,2,[]],[23,1,[\\\"startMinutes\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@dateZ\\\",\\\"@inputPvtClassNames\\\",\\\"@isDatePicker\\\",\\\"@onInput\\\",\\\"@onSelectDate\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@valueKey\\\"],[[23,1,[\\\"_data\\\",\\\"dateEndZ\\\"]],\\\"table-form__input table-form__input--120\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null],[23,2,[]],[23,1,[\\\"dateEnd\\\"]],\\\"dateEndZ\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@onInput\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"table-form__input table-form__input_max--40\\\",[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null],[23,2,[]],[23,1,[\\\"endHours\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-right-7\\\"],[8],[0,\\\":\\\"],[9],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@onInput\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"table-form__input table-form__input_max--40\\\",[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null],[23,2,[]],[23,1,[\\\"endMinutes\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,2,[]],true,true,\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null],true,[23,0,[\\\"statusClass\\\"]],true,[23,1,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[23,2,[]],\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSubmitRemoveSchedule\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasOverlap\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table__td-no-border u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"fas fa-exclamation-circle has-text-danger\\\"],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"error-msg\\\"],[8],[1,[28,\\\"tt\\\",[\\\"date conflict\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/schedules-modal/schedules-dialog/schedules-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/schedules-modal/schedules-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QsM1X3T2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"scheduleModel\\\",\\\"index\\\",\\\"schedule\\\",\\\"@checkOverlapDate\\\",\\\"@applySchedulesToAll\\\",\\\"@isReadonly\\\",\\\"@schedulesModelArray\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\",\\\"@translate\\\"],[[28,\\\"if\\\",[[23,5,[]],\\\"\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"page\\\"],null],\\\": \\\",[28,\\\"sum\\\",[[23,2,[]],1],null]],null]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content table-form--with-date-picker table-form--no-last-border\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"start date\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[1,[28,\\\"tt\\\",[\\\"start time\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"end date\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[1,[28,\\\"tt\\\",[\\\"end time\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"page status\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"schedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"grapesjs/schedules-modal/schedules-dialog/schedules-row\\\",[],[[\\\"@checkOverlapDate\\\",\\\"@model\\\",\\\"@schedule\\\"],[[23,4,[]],[23,1,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add schedule\\\",[23,6,[]],[28,\\\"fn\\\",[[23,0,[\\\"onSubmitAddSchedule\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/schedules-modal/schedules-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/schedules-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IgEcoK8m\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@schedulesTatgetIsArray\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@title\\\"],[false,[23,2,[]],[23,3,[]],\\\"schedules\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"apply schedules to all pages\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"setSchedulesModelArray\\\"]]],null],false,true,[23,0,[\\\"applySchedulesToAll\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"grapesjs/schedules-modal/schedules-dialog\\\",[],[[\\\"@applySchedulesToAll\\\",\\\"@checkOverlapDate\\\",\\\"@onCloseDialogAction\\\",\\\"@schedulesModelArray\\\",\\\"@tab\\\"],[[23,0,[\\\"applySchedulesToAll\\\"]],[23,0,[\\\"checkOverlapDate\\\"]],[23,1,[]],[28,\\\"mut\\\",[[23,0,[\\\"schedulesModelArray\\\"]]],null],[23,5,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveDisabled\\\"]],false,\\\"done\\\",[28,\\\"perform\\\",[[23,0,[\\\"onSave\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/schedules-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/scratch-card-modal/component\", [\"exports\", \"ramda\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, R, _component, _emberConcurrencyDecorators) {\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, _dec0, _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 IMAGE_WIDTH = 'data-image-width';\n  const IMAGE_HEIGHT = 'data-image-height';\n  const IMAGE_RATIO = 'data-image-ratio';\n  const COVER_TYPE = 'data-cover-type';\n  const COVER_IMAGE_SET = 'data-cover-image-set';\n  const COVER_IMAGE_URL = 'data-cover-image-url';\n  const COVER_TEXT = 'data-cover-text';\n  const COVER_TEXT_COLOR = 'data-cover-text-color';\n  const COVER_BG_COLOR = 'data-cover-bg-color';\n  const BACKGROUND_TYPE = 'data-background-type';\n  const BACKGROUND_IMAGE_SET = 'data-background-image-set';\n  const BACKGROUND_IMAGE_URL = 'data-background-image-url';\n  const BACKGROUND_TEXT = 'data-background-text';\n  const BACKGROUND_TEXT_COLOR = 'data-background-text-color';\n  const BACKGROUND_BG_COLOR = 'data-background-bg-color';\n  const COVER_SELECTOR = '[data-gjs-type=\"bigordr-scratch-card-cover\"]';\n  const BACKGROUND_SELECTOR = '[data-gjs-type=\"bigordr-scratch-card-background\"]';\n  let GrapesjsScratchCardModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _class = class GrapesjsScratchCardModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor2, this);\n      _initializerDefineProperty(this, \"scratchCard\", _descriptor3, this);\n      _initializerDefineProperty(this, \"scratchCardErrors\", _descriptor4, this);\n      _initializerDefineProperty(this, \"coverImageSet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"coverImageUrl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"backgroundImageSet\", _descriptor7, this);\n      _initializerDefineProperty(this, \"backgroundImageUrl\", _descriptor8, this);\n      _defineProperty(this, \"previewWidth\", 400);\n      // unit: px\n      _defineProperty(this, \"typeList\", [{\n        label: 'background image',\n        value: 'backgroundImage'\n      }, {\n        label: 'background color',\n        value: 'backgroundColor'\n      }]);\n      _defineProperty(this, \"ratioList\", [{\n        label: '2x1',\n        value: '2x1'\n      }, {\n        label: '3x2',\n        value: '3x2'\n      }, {\n        label: '4x3',\n        value: '4x3'\n      }, {\n        label: '1x1',\n        value: '1x1'\n      }, {\n        label: '3x4',\n        value: '3x4'\n      }, {\n        label: '2x3',\n        value: '2x3'\n      }, {\n        label: '1x2',\n        value: '1x2'\n      }]);\n      this.getDefaultsScratchCards();\n    }\n\n    // unit: px\n    get previewHeight() {\n      if (this.imageRatio) {\n        const _ratio = R.split('x', this.imageRatio);\n        const _width = parseInt(_ratio[0]);\n        const _height = parseInt(_ratio[1]);\n        return parseInt(this.previewWidth * _height / _width);\n      }\n      return 300;\n    }\n    getDefaultsScratchCards() {\n      const selected = this.args.editor.getSelected();\n      if (selected) {\n        this.scratchCard = selected.closest('[data-gjs-type=\"bigordr-scratch-card\"]');\n      }\n      const tempModel = Ember.Object.create({\n        _data: {\n          coverBgColor: '',\n          coverTextColor: '',\n          coverType: '',\n          backgroundBgColor: '',\n          backgroundTextColor: '',\n          backgroundType: ''\n        }\n      });\n      tempModel.setData = (key, value) => {\n        Ember.set(tempModel._data, `${key}`, value);\n      };\n      Ember.set(this, 'tempModel', tempModel);\n      if (!this.scratchCard) {\n        return;\n      }\n      const attributes = R.pathOr([], ['attributes', 'attributes'])(this.scratchCard);\n      Ember.set(this, 'imageWidth', R.pathOr(400, [IMAGE_WIDTH])(attributes));\n      Ember.set(this, 'imageHeight', R.pathOr(300, [IMAGE_HEIGHT])(attributes));\n      Ember.set(this, 'imageRatio', R.propOr('4x3', [IMAGE_RATIO])(attributes));\n      Ember.set(this, 'coverImageUrl', R.pathOr('', [COVER_IMAGE_URL])(attributes));\n      Ember.set(this, 'coverText', R.pathOr('', [COVER_TEXT])(attributes));\n      Ember.set(tempModel._data, 'coverBgColor', R.pathOr('', [COVER_BG_COLOR])(attributes));\n      Ember.set(tempModel._data, 'coverTextColor', R.pathOr('', [COVER_TEXT_COLOR])(attributes));\n      Ember.set(tempModel._data, 'coverType', R.propOr('backgroundImage', [COVER_TYPE])(attributes));\n      Ember.set(this, 'backgroundImageUrl', R.pathOr('', [BACKGROUND_IMAGE_URL])(attributes));\n      Ember.set(this, 'backgroundText', R.pathOr('', [BACKGROUND_TEXT])(attributes));\n      Ember.set(tempModel._data, 'backgroundBgColor', R.pathOr('', [BACKGROUND_BG_COLOR])(attributes));\n      Ember.set(tempModel._data, 'backgroundTextColor', R.pathOr('', [BACKGROUND_TEXT_COLOR])(attributes));\n      Ember.set(tempModel._data, 'backgroundType', R.pathOr('backgroundImage', [BACKGROUND_TYPE])(attributes));\n    }\n    submit(onCloseDialogAction = () => null, metadata = {}, image = {}) {\n      const onAddImage = (uploadsModel, isCover) => {\n        if (isCover) {\n          this.coverImageUrl = uploadsModel?.getUrl?.();\n          this.coverImageSet = uploadsModel?.imgSet || {};\n        } else {\n          this.backgroundImageUrl = uploadsModel?.getUrl?.();\n          this.backgroundImageSet = uploadsModel?.imgSet || {};\n        }\n      };\n      onAddImage(image, metadata?.isCover);\n      onCloseDialogAction();\n    }\n    setScratchCardAttr() {\n      const tempModelData = this.tempModel._data;\n      const scratchCardAttributes = this.scratchCard.getAttributes();\n      scratchCardAttributes[IMAGE_WIDTH] = this.previewWidth;\n      scratchCardAttributes[IMAGE_HEIGHT] = this.previewHeight;\n      scratchCardAttributes[IMAGE_RATIO] = this.imageRatio;\n      scratchCardAttributes[COVER_IMAGE_URL] = this.coverImageUrl;\n      scratchCardAttributes[COVER_TEXT] = this.coverText;\n      scratchCardAttributes[COVER_BG_COLOR] = tempModelData.coverBgColor;\n      scratchCardAttributes[COVER_TEXT_COLOR] = tempModelData.coverTextColor;\n      scratchCardAttributes[COVER_TYPE] = tempModelData.coverType;\n      scratchCardAttributes[BACKGROUND_IMAGE_URL] = this.backgroundImageUrl;\n      scratchCardAttributes[BACKGROUND_TEXT] = this.backgroundText;\n      scratchCardAttributes[BACKGROUND_BG_COLOR] = tempModelData.backgroundBgColor;\n      scratchCardAttributes[BACKGROUND_TEXT_COLOR] = tempModelData.backgroundTextColor;\n      scratchCardAttributes[BACKGROUND_TYPE] = tempModelData.backgroundType;\n      const transformImgSet = ({\n        desktopUrl,\n        mobileUrl,\n        tabletUrl\n      } = {}) => {\n        return JSON.stringify({\n          desktopUrl,\n          mobileUrl,\n          tabletUrl\n        });\n      };\n      scratchCardAttributes[COVER_IMAGE_SET] = transformImgSet(this.coverImageSet);\n      scratchCardAttributes[BACKGROUND_IMAGE_SET] = transformImgSet(this.backgroundImageSet);\n      this.scratchCard.setAttributes(scratchCardAttributes);\n    }\n    renderScratchCard() {\n      const scratchCardEl = this.scratchCard.getEl();\n      const coverEl = scratchCardEl.querySelector(COVER_SELECTOR);\n      const backgroundEl = scratchCardEl.querySelector(BACKGROUND_SELECTOR);\n      const tempModelData = this.tempModel._data;\n\n      // set for cover\n      this._setInnerLayout({\n        el: coverEl,\n        imageSet: this.coverImageSet,\n        imageUrl: this.coverImageUrl,\n        text: this.coverText,\n        textColor: tempModelData.coverTextColor,\n        type: tempModelData.coverType,\n        bgColor: tempModelData.coverBgColor\n      });\n\n      // set gor background\n      this._setInnerLayout({\n        el: backgroundEl,\n        imageSet: this.backgroundImageSet,\n        imageUrl: this.backgroundImageUrl,\n        text: this.backgroundText,\n        textColor: tempModelData.backgroundTextColor,\n        type: tempModelData.backgroundType,\n        bgColor: tempModelData.backgroundBgColor\n      });\n    }\n    _setInnerLayout({\n      el,\n      imageSet,\n      imageUrl,\n      text,\n      textColor,\n      type,\n      bgColor\n    } = {}) {\n      const hasChildren = el.children.length > 0;\n      if (!hasChildren) {\n        el.appendChild(document.createElement('div'));\n      }\n      const width = this.previewWidth;\n      const height = this.previewHeight;\n      const innerEl = document.createElement('div');\n      innerEl.style.width = `${width}px`;\n      innerEl.style.height = `${height}px`;\n      innerEl.style.color = textColor;\n      innerEl.style.display = 'flex';\n      innerEl.style.alignItems = 'center';\n      innerEl.style.justifyContent = 'center';\n      const textContent = document.createElement('p');\n      textContent.innerHTML = text;\n      innerEl.appendChild(textContent);\n\n      // @TODO: use different imageUrl from imageSet based on preview device\n\n      const isImage = !!(type === 'backgroundImage' && imageUrl);\n      if (isImage) {\n        innerEl.style.background = `url(${imageUrl}-/scale_crop/${width}x${height}/center/)`;\n      } else {\n        innerEl.style.backgroundColor = bgColor;\n      }\n      const replaceTarget = el.children[0];\n      replaceTarget.replaceWith(innerEl);\n    }\n    *onSaveTask(onCloseDialogAction) {\n      if (!this.scratchCard) {\n        if (onCloseDialogAction) {\n          onCloseDialogAction();\n        }\n        return;\n      }\n      this.setScratchCardAttr();\n      this.renderScratchCard();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    onCancel(onCloseDialogAction) {\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"scratchCard\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"scratchCardErrors\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"coverImageSet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"coverImageUrl\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"backgroundImageSet\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"backgroundImageUrl\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"submit\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"submit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSaveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSaveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCancel\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"onCancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/scratch-card-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Rlw0EEm/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@tab\\\",\\\"@modalDialogIsVisible\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\",\\\"@closeOnOverlayClick\\\"],[\\\"scratch card settings\\\",[23,6,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,6,[]]],null]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"details\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"websitesScratchCard\\\",[23,9,[]],[23,5,[]],[23,8,[]],[23,7,[]]]]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@title\\\",\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card cover\\\",[23,5,[]],\\\"cover_group\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card type\\\",\\\"coverType\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,\\\"label\\\",\\\"value\\\",[23,0,[\\\"typeList\\\"]],true,[23,0,[\\\"tempModel\\\",\\\"_data\\\",\\\"coverType\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"tempModel\\\",\\\"_data\\\",\\\"coverType\\\"]],\\\"backgroundImage\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card cover image\\\",\\\"coverImageUrl\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"coverImageUrl\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"img\\\",true],[11,\\\"alt\\\",[28,\\\"tt\\\",[\\\"scratch card cover image\\\"],null]],[11,\\\"src\\\",[28,\\\"concat\\\",[[23,0,[\\\"coverImageUrl\\\"]],\\\"-/scale_crop/\\\",[23,0,[\\\"previewWidth\\\"]],\\\"x\\\",[23,0,[\\\"previewHeight\\\"]],\\\"/center/\\\"],null]],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"files-manager\\\",[],[[\\\"@allowMultipleItems\\\",\\\"@allowRemove\\\",\\\"@allowSrcSet\\\",\\\"@hasSelectedItemsLimit\\\",\\\"@hideFilesGallery\\\",\\\"@model\\\",\\\"@onSubmit\\\",\\\"@options\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@tab\\\"],[false,true,true,true,true,[23,0,[\\\"tempModel\\\"]],[23,0,[\\\"submit\\\"]],[28,\\\"hash\\\",null,[[\\\"isCover\\\"],[true]]],[23,3,[]],[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card cover background color\\\",\\\"coverBgColor\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@colorKey\\\",\\\"@model\\\",\\\"@value\\\"],[\\\"coverBgColor\\\",[23,0,[\\\"tempModel\\\"]],[23,0,[\\\"tempModel\\\",\\\"_data\\\",\\\"coverBgColor\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card cover text\\\",\\\"coverText\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@row\\\",\\\"@value\\\"],[1,[23,0,[\\\"coverText\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card cover text color\\\",\\\"coverTextColor\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@colorKey\\\",\\\"@model\\\",\\\"@value\\\"],[\\\"coverTextColor\\\",[23,0,[\\\"tempModel\\\"]],[23,0,[\\\"tempModel\\\",\\\"_data\\\",\\\"coverTextColor\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@title\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@context\\\"],[\\\"scratch card background\\\",[23,2,[]],[23,5,[]],\\\"background_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\"],[\\\"scratch card type\\\",\\\"backgroundType\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,\\\"label\\\",\\\"value\\\",[23,0,[\\\"typeList\\\"]],true,[23,0,[\\\"tempModel\\\",\\\"_data\\\",\\\"backgroundType\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"tempModel\\\",\\\"_data\\\",\\\"backgroundType\\\"]],\\\"backgroundImage\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card background image\\\",\\\"backgroundImageUrl\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"backgroundImageUrl\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"img\\\",true],[11,\\\"alt\\\",[28,\\\"tt\\\",[\\\"scratch card cover image\\\"],null]],[11,\\\"src\\\",[28,\\\"concat\\\",[[23,0,[\\\"backgroundImageUrl\\\"]],\\\"-/scale_crop/\\\",[23,0,[\\\"previewWidth\\\"]],\\\"x\\\",[23,0,[\\\"previewHeight\\\"]],\\\"/center/\\\"],null]],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"files-manager\\\",[],[[\\\"@allowMultipleItems\\\",\\\"@allowRemove\\\",\\\"@allowSrcSet\\\",\\\"@hasSelectedItemsLimit\\\",\\\"@hideFilesGallery\\\",\\\"@model\\\",\\\"@onSubmit\\\",\\\"@options\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@tab\\\"],[false,true,true,true,true,[23,0,[\\\"tempModel\\\"]],[23,0,[\\\"submit\\\"]],[28,\\\"hash\\\",null,[[\\\"isCover\\\"],[false]]],[23,3,[]],[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card background background color\\\",\\\"backgroundBgColor\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@colorKey\\\",\\\"@model\\\",\\\"@value\\\"],[\\\"backgroundBgColor\\\",[23,0,[\\\"tempModel\\\"]],[23,0,[\\\"tempModel\\\",\\\"_data\\\",\\\"backgroundBgColor\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card background text\\\",\\\"backgroundText\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@options\\\"],[true,[23,0,[\\\"backgroundText\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"scratch card background text color\\\",\\\"backgroundTextColor\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@colorKey\\\",\\\"@model\\\",\\\"@value\\\"],[\\\"backgroundTextColor\\\",[23,0,[\\\"tempModel\\\"]],[23,0,[\\\"tempModel\\\",\\\"_data\\\",\\\"backgroundTextColor\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@title\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@context\\\"],[\\\"image settings\\\",[23,2,[]],[23,5,[]],\\\"imageSettings_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"width height ratio\\\",\\\"imageRatio\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,\\\"label\\\",\\\"value\\\",[23,0,[\\\"ratioList\\\"]],false,[23,0,[\\\"imageRatio\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"scratch card image size warning text\\\"],null],false],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"onCancel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"onSaveTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onSaveTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/scratch-card-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/grapesjs/slider-modal/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"client/utils/nventor\", \"ember-concurrency\"], function (_exports, _component, R, _emberConcurrencyDecorators, _ramdaAdjunct, _nventor, _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, _dec8, _dec9, _dec0, _dec1, _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, _descriptor0, _descriptor1, _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  let GrapesjsSliderModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, _dec21 = Ember._tracked, _dec22 = Ember._tracked, _dec23 = Ember._tracked, _dec24 = Ember._tracked, _dec25 = Ember._tracked, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _dec31 = Ember._action, _dec32 = Ember._action, _dec33 = Ember._action, _dec34 = Ember._action, _dec35 = Ember._action, _dec36 = Ember._action, _dec37 = Ember._action, _dec38 = Ember._action, _dec39 = Ember._action, _class = class GrapesjsSliderModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uploadcare\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"ajax\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor7, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"ratioList\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedValue\", _descriptor0, this);\n      _initializerDefineProperty(this, \"showPreview\", _descriptor1, this);\n      _initializerDefineProperty(this, \"sliderModelArray\", _descriptor10, this);\n      _initializerDefineProperty(this, \"uploads\", _descriptor11, this);\n      _initializerDefineProperty(this, \"currentDraggedImgIndex\", _descriptor12, this);\n      _initializerDefineProperty(this, \"applySchedulesToAll\", _descriptor13, this);\n      _initializerDefineProperty(this, \"srcSetOptions\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedDotNavPosition\", _descriptor15, this);\n      _initializerDefineProperty(this, \"selectedArrowNavPosition\", _descriptor16, this);\n      _initializerDefineProperty(this, \"selectedArrowNavSize\", _descriptor17, this);\n      _initializerDefineProperty(this, \"selectedDotNavSize\", _descriptor18, this);\n      _initializerDefineProperty(this, \"selectedDotNavStyle\", _descriptor19, this);\n      _initializerDefineProperty(this, \"selectedSliderBtnsColor\", _descriptor20, this);\n      _initializerDefineProperty(this, \"selectedSliderBtnsActiveColor\", _descriptor21, this);\n      _initializerDefineProperty(this, \"selectedArrowBtnsColor\", _descriptor22, this);\n      _initializerDefineProperty(this, \"hideArrowBackground\", _descriptor23, this);\n      _initializerDefineProperty(this, \"arrowBackgroundColor\", _descriptor24, this);\n      _initializerDefineProperty(this, \"modelSlider\", _descriptor25, this);\n      _defineProperty(this, \"filtersAdapterName\", 'uploads/filters');\n      _defineProperty(this, \"resultsProperty\", 'uploads');\n      _defineProperty(this, \"sliderLimit\", 5);\n      _defineProperty(this, \"defaultPlaceholder\", 'https://via.placeholder.com/2048x1024?text=Image');\n      this.crud.addLists(this, ['websites/lists/header-image-ratio', 'grapesjs/lists/slider/nav-style', 'grapesjs/lists/slider/nav-position', 'grapesjs/lists/slider/btns-color', 'grapesjs/lists/slider/btns-size', 'statuses']);\n      this.modelSlider = this.crud.setupNewRecord({\n        adapterName: 'grapesjs/slider'\n      });\n      this.setDefaultColors();\n      const slider = this.args.editor.getSelected();\n      if (slider) {\n        this.getDefaultsFromGjs(slider);\n        this.filters = this.search.setupFilters({\n          adapterName: this.filtersAdapterName,\n          defaultFiltersData: {\n            resultsProperty: this.resultsProperty\n          }\n        });\n      }\n      this.setInitialApplyToAll();\n    }\n    get sliderType() {\n      const slider = this.args.editor.getSelected();\n      const type = slider.get('type');\n      if (type === 'lory-slider') {\n        return 'bigordr-slider-native';\n      }\n      return 'bigordr-slider';\n    }\n    get isNativeSlider() {\n      return this.sliderType === 'bigordr-slider-native';\n    }\n    get sliderOptions() {\n      const arrowBackgroundColor = this.modelSlider.getData('arrowBackgroundColor');\n      const dotsBackgroundColor = this.modelSlider.getData('dotsBackgroundColor');\n      const dotsActiveBackgroundColor = this.modelSlider.getData('dotsActiveBackgroundColor');\n      const options = {\n        controls: true,\n        nav: false,\n        controlsStyle: {\n          color: arrowBackgroundColor || this.selectedArrowBtnsColor\n        },\n        navStyle: {\n          color: dotsBackgroundColor || this.selectedSliderBtnsColor,\n          activeColor: dotsActiveBackgroundColor\n        },\n        navPosition: this.selectedDotNavPosition,\n        navItemStyle: this.selectedDotNavStyle,\n        navItemSize: this.selectedDotNavSize,\n        controlsPosition: this.selectedArrowNavPosition,\n        controlsSize: this.selectedArrowNavSize,\n        hideControlsBackground: this.hideArrowBackground\n      };\n      if (this.selectedArrowNavPosition === 'hide') {\n        options.controls = false;\n      }\n      if (this.selectedDotNavPosition !== 'hide') {\n        options.nav = true;\n      }\n      return options;\n    }\n    get filesManagerImagesLimit() {\n      if (this?.sliderModelArray?.length === 1) {\n        return this.sliderLimit;\n      }\n      return this.sliderLimit - this?.sliderModelArray?.length;\n    }\n    get arrowsPosition() {\n      const allPositions = this.crud.lists['grapesjs-lists-slider-nav-position'] || [];\n      if (this.isNativeSlider) {\n        return R.reject(R.pathEq(['_data', 'value'], 'outsideImage'))(allPositions);\n      }\n      return this.crud.lists['grapesjs-lists-slider-nav-position'];\n    }\n    setDefaultColors(arrowBackgroundColor = '#ff0000', dotsBackgroundColor = '#085bd7', dotsActiveBackgroundColor = '#ffffff') {\n      this.modelSlider.setData('arrowBackgroundColor', arrowBackgroundColor);\n      this.modelSlider.setData('dotsBackgroundColor', dotsBackgroundColor);\n      this.modelSlider.setData('dotsActiveBackgroundColor', dotsActiveBackgroundColor);\n    }\n    setDefaults(sliderElement) {\n      this.selectedArrowBtnsColor = R.pipe(R.pathOr('{}', ['attributes', 'data-gjs-controlsStyle', 'value']), JSON.parse, R.propOr(this.selectedArrowBtnsColor, 'color'))(sliderElement);\n      this.selectedSliderBtnsColor = R.pipe(R.pathOr('{}', ['attributes', 'data-gjs-navStyle', 'value']), JSON.parse, R.propOr(this.selectedSliderBtnsColor, 'color'))(sliderElement);\n      this.selectedSliderBtnsActiveColor = R.pipe(R.pathOr('{}', ['attributes', 'data-gjs-navStyle', 'value']), JSON.parse, R.propOr(this.selectedSliderBtnsActiveColor, 'activeColor'))(sliderElement);\n      this.setDefaultColors(this.selectedArrowBtnsColor, this.selectedSliderBtnsColor, this.selectedSliderBtnsActiveColor);\n      this.selectedDotNavPosition = R.pipe(R.pathOr(this.selectedDotNavPosition, ['attributes', 'data-gjs-navPosition', 'value']), R.tryCatch(JSON.parse, R.always(this.selectedDotNavPosition)))(sliderElement);\n      this.selectedDotNavStyle = R.pipe(R.pathOr(this.selectedDotNavStyle, ['attributes', 'data-gjs-navItemStyle', 'value']), R.tryCatch(JSON.parse, R.always(this.selectedDotNavStyle)))(sliderElement);\n      this.selectedDotNavSize = R.pipe(R.pathOr(this.selectedDotNavSize, ['attributes', 'data-gjs-navItemSize', 'value']), R.tryCatch(JSON.parse, R.always(this.selectedDotNavSize)))(sliderElement);\n      this.selectedArrowNavPosition = R.pipe(R.pathOr(this.selectedArrowNavPosition, ['attributes', 'data-gjs-controlsPosition', 'value']), R.tryCatch(JSON.parse, R.always(this.selectedArrowNavPosition)))(sliderElement);\n      this.selectedArrowNavSize = R.pipe(R.pathOr(this.selectedArrowNavSize, ['attributes', 'data-gjs-controlsSize', 'value']), R.tryCatch(JSON.parse, R.always(this.selectedArrowNavSize)))(sliderElement);\n      this.hideArrowBackground = R.pipe(R.pathOr(this.hideArrowBackground, ['attributes', 'data-gjs-hideControlsBackground', 'value']), R.tryCatch(JSON.parse, R.always(this.hideArrowBackground)))(sliderElement);\n    }\n    setDefaultsNativeSlider(slider) {\n      const arrowsPosition = slider.get('arrows-position');\n      const arrowsDisplay = slider.get('arrows-display');\n      if (arrowsPosition === 'outside') {\n        this.selectedArrowNavPosition = 'outsideImage';\n      }\n      if (arrowsPosition === 'inside') {\n        this.selectedArrowNavPosition = 'insideImage';\n      }\n      if (arrowsDisplay === 'hidden') {\n        this.selectedArrowNavPosition = 'hide';\n      }\n\n      // Get Arrows Size\n      const arrowsSize = slider.get('arrows-size');\n      this.selectedArrowNavSize = arrowsSize;\n      // Get Arrows Color\n      const arrowsColor = slider.get('arrows-color');\n      this.setDefaultColors(arrowsColor);\n      // Get Arrows Background toggle\n      const arrowsBackground = slider.get('arrows-background-hidden');\n      this.hideArrowBackground = arrowsBackground;\n    }\n    getDefaultsFromGjs(slider) {\n      if (this.isNativeSlider) {\n        return this.setDefaultsNativeSlider(slider);\n      }\n      const sliderElement = slider.getEl();\n      this.setSliderImages(sliderElement);\n      this.setInitialImageRatio();\n      this.defaultPlaceholder = slider.get('defaultPlaceholder')?.src || '';\n      this.setSliderOptions(sliderElement);\n      this.setDefaults(sliderElement);\n    }\n    setSliderOptions(sliderElement) {\n      const navPosition = sliderElement.getAttribute('data-gjs-navPosition');\n      const navStyle = sliderElement.getAttribute('data-gjs-navItemStyle');\n      const sliderBtnsColor = sliderElement.getAttribute('data-gjs-sliderBtnsColor');\n      if (navPosition) {\n        this.selectedDotNavPosition = navPosition;\n      }\n      if (navStyle) {\n        this.selectedDotNavStyle = navStyle;\n      }\n      if (sliderBtnsColor) {\n        this.selectedSliderBtnsColor = sliderBtnsColor;\n      }\n    }\n    setInitialImageRatio() {\n      this.selectedValue = R.view(R.lensPath([0, '_data', 'pixelratio']))(this.sliderModelArray);\n    }\n    setInitialApplyToAll() {\n      let applySchedulesToAll = R.pathOr(false, ['0', '_data', 'applytoall'])(this.sliderModelArray);\n      applySchedulesToAll = applySchedulesToAll === 'true';\n      Ember.set(this, 'applySchedulesToAll', applySchedulesToAll);\n      const allSchedules = R.pathOr(false, ['0', '_data', 'schedules'])(this.sliderModelArray);\n      const initModel = this.dataManager.setAsRecord({\n        adapterName: 'grapesjs/slider',\n        data: {\n          src: '',\n          status: 'active',\n          schedules: []\n        }\n      });\n      if (applySchedulesToAll) {\n        initModel.setData('schedules', allSchedules);\n      }\n      Ember.set(this, 'initModel', initModel);\n    }\n\n    /**\n     * Set slider from stored one\n     * @param {HTMLPictureElement} slider\n     */\n    setSliderImages(slider) {\n      const getUploadcareUuid = R.pipe(R.split(/https:\\/\\/ucarecdn\\.com\\//), R.pathOr('', [1]), R.split('/'), R.pathOr('', [0]));\n      const imgTags = slider.querySelectorAll('img');\n      this.sliderModelArray = R.map(child => {\n        let src = child.getAttribute('src');\n        const isGif = child.getAttribute('data-mime-type');\n        const imgSet = {\n          desktopUrl: src,\n          desktopUuid: getUploadcareUuid(src),\n          tabletUrl: src,\n          tabletUuid: getUploadcareUuid(src),\n          mobileUrl: src,\n          mobileUuid: getUploadcareUuid(src)\n        };\n        if (!isGif) {\n          const pictureSourceDesktop = child.parentElement.querySelector('[data-gjs-type=\"picture-desktop\"]');\n          if (pictureSourceDesktop) {\n            src = pictureSourceDesktop.getAttribute('srcset');\n            imgSet.desktopUrl = src;\n            imgSet.desktopUuid = getUploadcareUuid(imgSet.desktopUrl);\n          }\n          const pictureSourceTablet = child.parentElement.querySelector('[data-gjs-type=\"picture-tablet\"]');\n          if (pictureSourceTablet) {\n            imgSet.tabletUrl = pictureSourceTablet.getAttribute('srcset');\n            imgSet.tabletUuid = getUploadcareUuid(imgSet.tabletUrl);\n          }\n          const pictureSourceMobile = child.parentElement.querySelector('[data-gjs-type=\"picture-mobile\"]');\n          if (pictureSourceMobile) {\n            imgSet.mobileUrl = pictureSourceMobile.getAttribute('srcset');\n            imgSet.mobileUuid = getUploadcareUuid(imgSet.mobileUrl);\n          }\n        }\n        const childSchedules = child.getAttribute('data-gjs-model-schedules') || '[]'; // should be string\n        const applytoall = child.getAttribute('data-gjs-model-applytoall') || false;\n        const imageData = R.pipe(\n        // Get only the relevant data\n        R.propOr({}, 'dataset'), R.toPairs, R.filter(str => R.test(/Model/)(str)),\n        // dynamically rename keys\n        R.map(R.over(R.lensPath([0]), (key = ['']) => R.pipe(R.split('Model'), R.last, R.toLower)(key))), R.fromPairs)(child);\n        imageData.src = src;\n        imageData.schedules = JSON.parse(childSchedules);\n        imageData.applytoall = applytoall;\n        const sliderModel = this.crud.setupNewRecord({\n          adapterName: 'grapesjs/slider',\n          data: imageData\n        });\n        sliderModel.set('imgSet', imgSet);\n        const mimeType = child.getAttribute('data-mime-type');\n        sliderModel.setData('mimeType', mimeType);\n        const schedules = sliderModel.getData('schedules') || [];\n        if (_ramdaAdjunct.default.isNilOrEmpty(schedules)) {\n          sliderModel.addSchedule({\n            schedule: {},\n            schedulesProp: 'schedules'\n          });\n        }\n        return sliderModel;\n      })(imgTags);\n    }\n    removeOnDropSelectClass(imagesDropContainer) {\n      R.map(c => c.classList.remove('on-drop-select-right', 'on-drop-select-left'))(imagesDropContainer);\n    }\n\n    // Handle the refresh of the images\n    *onAfterUploadTask() {\n      this.uploads = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'uploads',\n        filters: this.filters,\n        resultsProperty: 'uploads',\n        data: {\n          resource: this.args.resource,\n          resourceKey: this.args.resourceKey\n        }\n      });\n    }\n    *onPaginationTask() {\n      this.uploads = yield this.crud.paginateSearchRecordsTask.perform(...arguments);\n    }\n    *fetchImageMetadataTask(picturesData) {\n      const metadataPromises = R.map(imageData => {\n        const mimeType = R.pathOr('', ['attributes', 'data-mime-type'])(imageData);\n        const isGif = R.includes('gif')(mimeType);\n        if (isGif) {\n          const url = imageData.src;\n          return this._fetchMetadata.perform(url);\n        }\n        return {};\n      })(picturesData);\n      const results = yield (0, _emberConcurrency.all)(metadataPromises);\n      const mergedData = R.pipe(R.mapObjIndexed((value, index) => {\n        if (index != 0) {\n          value.classes = ['full-width-image', 'full-width-image--display-none'];\n        }\n        const metadata = results[index];\n        if (metadata) {\n          const originalFormat = R.path(['original', 'format'])(metadata);\n          if (originalFormat) {\n            value.attributes['data-mime-type'] = `image/${R.toLower(originalFormat)}`;\n          }\n          R.pipe(R.propOr([], 'main_colors'), R.forEachObjIndexed((colorSet, index) => {\n            const key = `data-main-color-${index}`;\n            value.attributes[key] = `${colorSet}`;\n          }))(metadata);\n        }\n        return value;\n      }), R.values)(picturesData);\n      return mergedData;\n    }\n    *_fetchMetadata(url) {\n      return this.ajax.GET(`${url}/-/preview/-/main_colors/`, null, false, false);\n    }\n    updateImageRatio() {\n      this.sliderModelArray = R.map(model => model.setRatio(this.selectedValue))(this.sliderModelArray);\n      this.toggleReloadPreview();\n    }\n    removeSliderImage(model) {\n      this.sliderModelArray.removeObject(model);\n      this.sliderModelArray = R.propOr([], 'sliderModelArray')(this);\n      this.addDefaultPlaceHolders();\n      this.toggleReloadPreview();\n    }\n    addImageToSlider(imageModel, replaceIndex) {\n      if (this.sliderModelArray.length <= this.sliderLimit) {\n        const src = this.uploadcare.getFileUrl(imageModel.getData('uuid'));\n        const mimeType = imageModel.getData('mimeType');\n        const notInSliderModel = R.pipe(R.filter(R.pathEq(['_data', 'src'], src)), R.isEmpty)(this.sliderModelArray);\n        if (notInSliderModel) {\n          const sliderImageModel = this.crud.setupNewRecord({\n            adapterName: 'grapesjs/slider',\n            data: {\n              src,\n              pixelratio: this.selectedValue\n            }\n          });\n          sliderImageModel.setData('mimeType', mimeType);\n          const imgSet = R.prop('imgSet')(imageModel);\n          sliderImageModel.set('imgSet', imgSet);\n          if (imgSet) {\n            const desktop = R.prop('desktop')(imgSet);\n            const desktopUrl = desktop.getUrl();\n            sliderImageModel.setData('src', desktopUrl);\n          }\n          if (_ramdaAdjunct.default.isNotNilOrEmpty(replaceIndex)) {\n            this.sliderModelArray.replace(replaceIndex, 1, [sliderImageModel]);\n          } else {\n            this.sliderModelArray.addObject(sliderImageModel);\n          }\n          this.removeDefaultPlaceHolders();\n          this.toggleReloadPreview();\n        }\n      }\n    }\n    removeDefaultPlaceHolders() {\n      const removePlaceholder = this.sliderModelArray.length > 1;\n      if (removePlaceholder) {\n        this.sliderModelArray = R.reject(R.propEq('isPlaceholder', true))(this.sliderModelArray);\n      }\n    }\n    addDefaultPlaceHolders() {\n      const addDefaultPlaceholder = this.sliderModelArray.length === 0;\n      if (addDefaultPlaceholder) {\n        const placeholder = this.defaultPlaceholder;\n        const sliderImageModel = this.crud.setupNewRecord({\n          adapterName: 'grapesjs/slider',\n          data: {\n            pixelratio: this.selectedValue,\n            src: placeholder\n          }\n        });\n        sliderImageModel.setData('src', placeholder);\n        this.sliderModelArray.pushObject(sliderImageModel);\n      }\n    }\n    onSaveNativeSlider(onCloseDialogAction = foo => foo, sliderModel) {\n      const arrowsPosition = this.sliderOptions.controlsPosition;\n      sliderModel.updateArrowsPosition(arrowsPosition);\n\n      // slider arrows size\n      const arrowsSize = this.sliderOptions.controlsSize;\n      sliderModel.updateArrowsSize(arrowsSize);\n\n      // slider arrows colour\n      const arrowsColor = this.sliderOptions.controlsStyle.color;\n      sliderModel.updateArrowsColor(arrowsColor);\n\n      // slider arrows background\n      const arrowsBackgroundToggle = this.sliderOptions.hideControlsBackground;\n      sliderModel.updateArrowsBackground(arrowsBackgroundToggle);\n      onCloseDialogAction();\n    }\n    *onSave(onCloseDialogAction) {\n      const gjsSlider = this.args.editor.getSelected();\n      if (this.isNativeSlider) {\n        return this.onSaveNativeSlider(onCloseDialogAction, gjsSlider);\n      }\n      // ADD Slider options\n      gjsSlider.addAttributes({\n        'data-gjs-navPosition': this.selectedDotNavPosition,\n        'data-gjs-navItemStyle': this.selectedDotNavStyle,\n        'data-gjs-sliderBtnsColor': this.selectedSliderBtnsColor\n      });\n      R.forEachObjIndexed((value, key) => {\n        gjsSlider.addAttributes({\n          [`data-gjs-${key}`]: JSON.stringify(value)\n        });\n      })(this.sliderOptions);\n      const applySchedulesToAll = this.applySchedulesToAll;\n      const allSchedules = R.pipe(R.propOr([], 'sliderModelArray'), _nventor.default.safeHeadOr({}), R.pathOr([], ['_data', 'schedules']), R.map(schedule => {\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(schedule)) {\n          return schedule.serialize();\n        }\n      }), R.reject(_ramdaAdjunct.default.isNilOrEmpty))(this);\n\n      // Clear GrapesJs slider component\n      R.pipe(R.reject(R.isNil), R.map(c => c.remove()))(gjsSlider.components());\n      this.removeDefaultPlaceHolders();\n\n      // Add new Array of images to slider component\n      const picturesData = R.pipe(R.propOr([], 'sliderModelArray'), R.map(model => {\n        const safeLink = model.getData('link');\n        const buttonlabel = model.getData('buttonlabel');\n        const status = model.getData('status');\n        const pixelratio = model.getData('pixelratio');\n        const ratio = model.getData('ratio');\n        const src = model.getData('src');\n\n        // Handle picture srcSet\n        const imgSet = R.prop('imgSet')(model);\n        const pictureData = {\n          mobileUrl: src,\n          mobileUuid: model.uuid,\n          tabletUrl: src,\n          tabletUuid: model.uuid,\n          desktopUrl: src,\n          desktopUuid: model.uuid,\n          imageType: 'bigordr-slider-image',\n          imageAttributes: {},\n          type: 'bigordr-picture'\n        };\n        if (imgSet) {\n          const mobile = R.prop('mobile')(imgSet);\n          const tablet = R.prop('tablet')(imgSet);\n          const desktop = R.prop('desktop')(imgSet);\n          pictureData.mobileUrl = mobile ? mobile.getUrl() : R.prop('mobileUrl')(imgSet);\n          pictureData.mobileUuid = mobile ? mobile.getData('uuid') : R.prop('mobileUuid')(imgSet);\n          pictureData.tabletUrl = tablet ? tablet.getUrl() : R.prop('tabletUrl')(imgSet);\n          pictureData.tabletUuid = tablet ? tablet.getData('uuid') : R.prop('tabletUuid')(imgSet);\n          pictureData.desktopUrl = desktop ? desktop.getUrl() : R.prop('desktopUrl')(imgSet);\n          pictureData.desktopUuid = desktop ? desktop.getData('uuid') : R.prop('desktopUuid')(imgSet);\n        }\n        let schedules = model.getData('schedules') || [];\n        if (applySchedulesToAll) {\n          schedules = allSchedules;\n        } else {\n          schedules = R.pipe(R.map(schedule => {\n            if (_ramdaAdjunct.default.isNotNilOrEmpty(schedule)) {\n              return schedule.serialize();\n            }\n          }), R.reject(_ramdaAdjunct.default.isNilOrEmpty))(schedules);\n        }\n        const gjsModelAttributes = {\n          src,\n          'data-gjs-model-status': status,\n          'data-gjs-model-buttonlabel': buttonlabel,\n          'data-gjs-model-link': safeLink,\n          'data-gjs-model-pixelratio': pixelratio,\n          'data-gjs-model-ratio': ratio,\n          'data-gjs-model-schedules': JSON.stringify(schedules),\n          'data-gjs-model-applytoall': applySchedulesToAll\n        };\n        const isNotInternalLink = !R.test(/^\\/\\w/gm)(safeLink);\n        if (isNotInternalLink) {\n          const protocolRegex = /^(https|http):\\/\\//;\n          gjsModelAttributes['data-gjs-model-link'] = R.ifElse(R.isEmpty, R.always(''), R.pipe(R.trim, R.unless(R.test(protocolRegex), url => `https://${url}`), R.ifElse(R.anyPass([R.equals('https://'), R.equals('http://')]), R.always(''), R.identity)))(safeLink);\n        }\n        const isMailto = R.test(/^mailto:/)(safeLink);\n        if (isMailto) {\n          gjsModelAttributes['data-gjs-model-link'] = safeLink;\n        }\n        pictureData.imageAttributes = gjsModelAttributes;\n        // HANDLE GIF CASES\n        const mimeType = model.getData('mimeType');\n        const isGif = R.includes('gif')(mimeType);\n        if (isGif) {\n          pictureData.type = 'bigordr-slider-image';\n          pictureData.src = src;\n          pictureData.attributes = {\n            src,\n            'data-mime-type': mimeType,\n            ...gjsModelAttributes\n          };\n          return pictureData;\n        }\n        return pictureData;\n      }))(this);\n\n      // Fetch metadata for each image\n      const imagesWithExtraData = yield this.fetchImageMetadataTask.perform(picturesData);\n      R.forEach(component => gjsSlider.append(component))(imagesWithExtraData);\n\n      // Hide img but first one\n      R.pipe(R.pathOr([], ['children']), R.map(img => {\n        img.classList.remove('full-width-image--display-none');\n        return img;\n      }), R.tail, R.forEach(img => img.classList.add('full-width-image--display-none')))(gjsSlider.getEl());\n      onCloseDialogAction();\n    }\n    onDrop(dragOverIndex, initialIndex, event) {\n      const dropContainer = event.currentTarget;\n      const imagesDropContainer = dropContainer.parentElement.children;\n      this.removeOnDropSelectClass(imagesDropContainer);\n      const imageSliderModel = this.sliderModelArray.objectAt(initialIndex);\n      this.sliderModelArray.removeAt(initialIndex);\n      this.sliderModelArray.insertAt(dragOverIndex, imageSliderModel);\n      this.toggleReloadPreview();\n    }\n    onDragOver(dragOverIndex, event) {\n      const dropContainer = event.currentTarget;\n      const imagesDropContainer = dropContainer.parentElement.children;\n      this.removeOnDropSelectClass(imagesDropContainer);\n      const dragToRight = this.currentDraggedImgIndex <= dragOverIndex;\n      const dragToLeft = this.currentDraggedImgIndex >= dragOverIndex;\n      const onSelfFomHead = this.currentDraggedImgIndex === 0;\n      if (dragToLeft && !onSelfFomHead) {\n        dropContainer.classList.add('on-drop-select-left');\n      } else if (dragToRight) {\n        dropContainer.classList.add('on-drop-select-right');\n      }\n      this.dropPosition = dragOverIndex;\n    }\n    onDragStart(index) {\n      this.currentDraggedImgIndex = index;\n    }\n    togglePreview() {\n      this.showPreview = !this.showPreview;\n    }\n    toggleReloadPreview() {\n      this.showPreview = false;\n      setTimeout(() => {\n        this.showPreview = true;\n      }, 5);\n    }\n\n    /**\n     * Add image\n     * @param {Function} onCloseDialogAction\n     * @param {Object|any} metadata\n     * @param {Array<any>} images\n     */\n    onSubmit(onCloseDialogAction, metadata, images) {\n      images = _ramdaAdjunct.default.ensureArray(images);\n      R.forEach(image => this.addImageToSlider(image))(images);\n      onCloseDialogAction();\n    }\n    updateImage(imageModel, index) {\n      this.addImageToSlider(imageModel, index);\n    }\n    applySchedules() {\n      const applySchedulesToAll = this.applySchedulesToAll || false;\n      if (applySchedulesToAll) {\n        const schedules = this.initModel?._data?.schedules || [];\n        const sliderModelArray = this.sliderModelArray || [];\n        R.forEach(sliderModel => {\n          sliderModel.setData('schedules', schedules);\n          sliderModel.setData('applytoall', true);\n        })(sliderModelArray);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uploadcare\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"ajax\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"ratioList\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedValue\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"sliderModelArray\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"uploads\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"currentDraggedImgIndex\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"applySchedulesToAll\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"srcSetOptions\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"selectedDotNavPosition\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'hide';\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"selectedArrowNavPosition\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'insideImage';\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"selectedArrowNavSize\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'small';\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"selectedDotNavSize\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'small';\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"selectedDotNavStyle\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'navItemLine';\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"selectedSliderBtnsColor\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"selectedSliderBtnsActiveColor\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"selectedArrowBtnsColor\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"hideArrowBackground\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"arrowBackgroundColor\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '#ffffff';\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"modelSlider\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onAfterUploadTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterUploadTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPaginationTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onPaginationTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchImageMetadataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchImageMetadataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_fetchMetadata\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_fetchMetadata\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateImageRatio\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"updateImageRatio\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSliderImage\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSliderImage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addImageToSlider\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"addImageToSlider\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeDefaultPlaceHolders\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"removeDefaultPlaceHolders\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addDefaultPlaceHolders\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"addDefaultPlaceHolders\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSaveNativeSlider\", [_dec31], Object.getOwnPropertyDescriptor(_class.prototype, \"onSaveNativeSlider\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_dec32], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOver\", [_dec33], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragStart\", [_dec34], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"togglePreview\", [_dec35], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleReloadPreview\", [_dec36], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleReloadPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmit\", [_dec37], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateImage\", [_dec38], Object.getOwnPropertyDescriptor(_class.prototype, \"updateImage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"applySchedules\", [_dec39], Object.getOwnPropertyDescriptor(_class.prototype, \"applySchedules\"), _class.prototype), _class);\n});","define(\"client/pods/components/grapesjs/slider-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"khAnZOXw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"imageModel\\\",\\\"index\\\",\\\"onCloseDialogAction\\\",\\\"onHideDropdown\\\",\\\"onCloseDialogAction\\\",\\\"@allowSrcSet\\\",\\\"@allowMultipleItems\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@isReadonly\\\",\\\"@showSearchImagesModal\\\",\\\"@modalDialogIsVisible\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@translate\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[\\\"slider images\\\",false,[23,15,[]],false,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,15,[]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isNativeSlider\\\"]]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@contentClassNames\\\"],[\\\"bigordr-slider-preview\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showPreview\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/slider\\\",[],[[\\\"@images\\\",\\\"@navPosition\\\",\\\"@navItemStyle\\\",\\\"@sliderBtnsColor\\\",\\\"@options\\\"],[[23,0,[\\\"sliderModelArray\\\"]],[23,0,[\\\"selectedDotNavPosition\\\"]],[23,0,[\\\"selectedDotNavStyle\\\"]],[23,0,[\\\"selectedSliderBtnsColor\\\"]],[23,0,[\\\"sliderOptions\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@title\\\"],[\\\"globalGjs\\\",\\\"gjs\\\",\\\"global settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"productsImagesRatio\\\",\\\"gjs\\\",[22,\\\"errors\\\"],\\\"products images ratio\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-header-image-ratio\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"selectedValue\\\"]],[23,0,[\\\"updateImageRatio\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@title\\\"],[\\\"arrowsGjs\\\",\\\"gjs\\\",\\\"arrow settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"nav container position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"arrowsPosition\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"selectedArrowNavPosition\\\"]],[23,0,[\\\"toggleReloadPreview\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"gjs-Size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"grapesjs-lists-slider-btns-size\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"selectedArrowNavSize\\\"]],[23,0,[\\\"toggleReloadPreview\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"hideArrowBackground\\\",\\\"gjs\\\",\\\"no background colour\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"hideArrowBackground\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"slider buttons color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@onSelect\\\",\\\"@model\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,0,[\\\"toggleReloadPreview\\\"]],[23,0,[\\\"modelSlider\\\"]],false,\\\"arrowBackgroundColor\\\",[23,0,[\\\"modelSlider\\\",\\\"_data\\\",\\\"arrowBackgroundColor\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@title\\\"],[\\\"fotsGjs\\\",\\\"gjs\\\",\\\"dot settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"nav container position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"grapesjs-lists-slider-nav-position\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"selectedDotNavPosition\\\"]],[23,0,[\\\"toggleReloadPreview\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"gjs-Size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"grapesjs-lists-slider-btns-size\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"selectedDotNavSize\\\"]],[23,0,[\\\"toggleReloadPreview\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"nav item style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"grapesjs-lists-slider-nav-style\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"selectedDotNavStyle\\\"]],[23,0,[\\\"toggleReloadPreview\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"slider buttons color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@onSelect\\\",\\\"@model\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,0,[\\\"toggleReloadPreview\\\"]],[23,0,[\\\"modelSlider\\\"]],false,\\\"dotsBackgroundColor\\\",[23,0,[\\\"modelSlider\\\",\\\"_data\\\",\\\"dotsBackgroundColor\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"slider active buttons color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@onSelect\\\",\\\"@model\\\",\\\"@readonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,0,[\\\"toggleReloadPreview\\\"]],[23,0,[\\\"modelSlider\\\"]],false,\\\"dotsActiveBackgroundColor\\\",[23,0,[\\\"modelSlider\\\",\\\"_data\\\",\\\"dotsActiveBackgroundColor\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@errors\\\",\\\"@label\\\"],[[22,\\\"errors\\\"],\\\"apply schedules to all images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"applySchedulesToAll\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"applySchedulesToAll\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@label\\\"],[\\\"u-margin-top--6\\\",\\\"far fa-clock\\\",true,\\\"schedules\\\",\\\"\\\",\\\"schedules\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"status-schedules\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@schedules\\\",\\\"@hasSchedules\\\",\\\"@listsStatuses\\\",\\\"@type\\\",\\\"@onCloseDialogAction\\\",\\\"@sliderModelArray\\\",\\\"@applySchedulesToAll\\\",\\\"@onAfterSave\\\"],[[23,9,[]],[23,0,[\\\"initModel\\\"]],[23,0,[\\\"initModel\\\",\\\"_data\\\",\\\"schedules\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"schedules\\\",[23,6,[]],[23,0,[\\\"sliderModelArray\\\"]],[23,0,[\\\"applySchedulesToAll\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applySchedules\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"initModel\\\",\\\"_data\\\",\\\"schedules\\\"]],[23,0,[\\\"applySchedulesToAll\\\"]],true],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"initModel\\\",\\\"activeSchedule\\\"]],[23,0,[\\\"initModel\\\",\\\"nextSchedule\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table bigordr-slider-image-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"initModel\\\",\\\"activeSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[1,[28,\\\"tt\\\",[\\\"current schedule\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"start date\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"initModel\\\",\\\"activeSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],\\\"YYYY-MM-DD hh:mm\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[1,[23,0,[\\\"initModel\\\",\\\"activeSchedule\\\",\\\"_data\\\",\\\"status\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"end date\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"initModel\\\",\\\"activeSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]],\\\"YYYY-MM-DD hh:mm\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"initModel\\\",\\\"nextSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[1,[28,\\\"tt\\\",[\\\"next schedule\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"start date\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"initModel\\\",\\\"nextSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],\\\"YYYY-MM-DD hh:mm\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[1,[23,0,[\\\"initModel\\\",\\\"nextSchedule\\\",\\\"_data\\\",\\\"status\\\"]],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"end date\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"initModel\\\",\\\"nextSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]],\\\"YYYY-MM-DD hh:mm\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bigordr-slider-image-drop-container\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"sliderModelArray\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/drop-container\\\",null,[[\\\"tagName\\\",\\\"classNames\\\",\\\"dropPosition\\\",\\\"onDrop\\\",\\\"onDragOver\\\"],[\\\"div\\\",\\\"drop-container-border\\\",[23,0,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onDrop\\\"]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onDragOver\\\"]],[23,3,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/drag-container\\\",null,[[\\\"draggable\\\",\\\"onDragStart\\\",\\\"data\\\"],[true,[28,\\\"fn\\\",[[23,0,[\\\"onDragStart\\\"]],[23,3,[]]],null],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-128x128 bigordr-slider-image slider-thumbnail\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"img\\\",false],[12,\\\"src\\\",[23,2,[\\\"getSrcWithRatio\\\"]]],[12,\\\"alt\\\",\\\"none\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,14,[]],[23,2,[]],true,[23,0,[\\\"updateImage\\\"]],[23,3,[]]],null]]],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-medium bigordr-slider-image-delete-btn\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeSliderImage\\\"]],[23,2,[]]],null]]],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"src\\\"]],\\\"https://via.placeholder.com/\\\"],null]],null,{\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"isOn\\\",\\\"btnClassNames\\\",\\\"label\\\",\\\"icon\\\"],[[23,2,[\\\"_data\\\",\\\"link\\\"]],\\\"slider-link-btn\\\",\\\"add link\\\",\\\"fas fa-link\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\"],[\\\"image link\\\",\\\"link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,2,[\\\"_data\\\",\\\"link\\\"]]]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"button label\\\",\\\"buttonlabel\\\",\\\"gjs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,2,[\\\"_data\\\",\\\"buttonlabel\\\"]]]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n                \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@btnClassNames\\\",\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[\\\"u-margin-top--6\\\",true,true,[23,2,[\\\"statusClass\\\"]],true,[23,13,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@btnClassNames\\\",\\\"@icon\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\",\\\"@isRunning\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@disabled\\\"],[\\\"u-margin-top--6\\\",\\\"far fa-clock\\\",true,\\\"schedules\\\",\\\"\\\",false,\\\"\\\",[23,0,[\\\"applySchedulesToAll\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"status-schedules\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@schedules\\\",\\\"@hasSchedules\\\",\\\"@listsStatuses\\\",\\\"@type\\\",\\\"@onCloseDialogAction\\\"],[[23,9,[]],[23,2,[]],[23,2,[\\\"_data\\\",\\\"schedules\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"schedules\\\",[23,4,[]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"_data\\\",\\\"schedules\\\"]],[28,\\\"not-eq\\\",[[23,0,[\\\"applySchedulesToAll\\\"]],true],null]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[\\\"activeSchedule\\\"]],[23,2,[\\\"nextSchedule\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table bigordr-slider-image-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"activeSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[0,\\\"Current\\\"],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Start\\\"],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"activeSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],\\\"YYYY-MM-DD hh:mm\\\"],null],false],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[1,[23,2,[\\\"activeSchedule\\\",\\\"_data\\\",\\\"status\\\"]],false],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"End\\\"],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"activeSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]],\\\"YYYY-MM-DD hh:mm\\\"],null],false],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"nextSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[0,\\\"Next\\\"],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"Start\\\"],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"nextSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],\\\"YYYY-MM-DD hh:mm\\\"],null],false],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"u-v-align-middle-important\\\"],[8],[1,[23,2,[\\\"nextSchedule\\\",\\\"_data\\\",\\\"status\\\"]],false],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n                        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"End\\\"],[9],[0,\\\"\\\\n                          \\\"],[7,\\\"td\\\",true],[8],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"nextSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]],\\\"YYYY-MM-DD hh:mm\\\"],null],false],[9],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2,3]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isNativeSlider\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"tagName\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,\\\"span\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"uploads\\\"]],[23,0,[\\\"onPaginationTask\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"files-manager\\\",[],[[\\\"@allowSrcSet\\\",\\\"@srcSetOptions\\\",\\\"@allowMultipleItems\\\",\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@hideFilesGallery\\\",\\\"@onSubmit\\\",\\\"@hasSelectedItemsLimit\\\",\\\"@selectedItemsLimit\\\"],[[23,7,[]],[23,0,[\\\"srcSetOptions\\\"]],[23,8,[]],[23,9,[]],true,[23,10,[]],[23,11,[]],[23,12,[]],false,true,[23,0,[\\\"onSubmit\\\"]],true,[23,0,[\\\"filesManagerImagesLimit\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[28,\\\"perform\\\",[[23,0,[\\\"onSave\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/grapesjs/slider-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/app-logged-in/component\", [\"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 = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    guests: Ember.inject.service(),\n    init() {\n      this.guests.setup(this.guestResource);\n      this._super(...arguments);\n      const tabOptions = {\n        component: 'guests/campaign-main',\n        isActive: true\n      };\n      this.tabsManager.openTab('left', tabOptions);\n    }\n  });\n});","define(\"client/pods/components/guests/app-logged-in/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9y/UWFB3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tab\\\",\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchSettingsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"app-grid u-no-print guest-app buttons are-small \\\",[28,\\\"if\\\",[[23,0,[\\\"applicationService\\\",\\\"isMobile\\\"]],\\\"is-mobile\\\",\\\"is-desktop\\\"],null]]]],[8],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__content\\\"],[8],[0,\\\"\\\\n        \\\\n        \\\\n        \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\",\\\"@isParent\\\"],[[24,[\\\"tabsManager\\\",\\\"left\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,2,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"guestResource\\\",\\\"tabs\\\",\\\"tab\\\"],[[24,[\\\"guestResource\\\"]],[24,[\\\"tabsManager\\\",\\\"left\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/app-logged-in/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/campaign-login/component\", [\"exports\", \"ramda\", \"ember-concurrency\", \"client/config/environment\"], function (_exports, R, _emberConcurrency, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    url: '',\n    password: '',\n    guests: Ember.inject.service(),\n    router: Ember.inject.service(),\n    auth: Ember.inject.service(),\n    init() {\n      this.crud.addLists(this, ['languages']);\n      this._super(...arguments);\n    },\n    redirectToNewWay() {\n      this.guests.redirectToNewWay();\n    },\n    loginAsGuestTask: (0, _emberConcurrency.task)(function* () {\n      try {\n        this.set('errorMsg', '');\n        const guestResource = this.guestResource;\n        const credentials = {\n          resource: guestResource,\n          password: this.password\n        };\n        const data = yield this.guests.call('POST', 'api/guests/login', credentials);\n        const redirectUrl = R.path(['data', 'redirect'], data);\n        if (redirectUrl) {\n          window.open(redirectUrl, '_self');\n        }\n      } catch (err) {\n        this.set('report', false);\n        if (err.data === 'not connected') {\n          window.location.reload();\n        }\n        this.set('errorMsg', 'invalid password');\n      }\n    }).drop(),\n    version: Ember.computed('env.version', function () {\n      return _environment.default.version || '';\n    }),\n    actions: {\n      setLanguage(item) {\n        this.auth.setLanguage(item.getData('value'));\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"redirectToNewWay\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"redirectToNewWay\"), _obj), _obj));\n});","define(\"client/pods/components/guests/campaign-login/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rqnSEWls\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasTokenAndNewWay\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sign-in-alt\\\",\\\"login\\\",\\\"quick login\\\",[28,\\\"fn\\\",[[23,0,[\\\"redirectToNewWay\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"login\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"header\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"login__header\\\"],[8],[1,[28,\\\"tt\\\",[\\\"welcome to bigordr\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"section\\\",true],[10,\\\"class\\\",\\\"login__section-row__container\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"errorMsg\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row login__row--error\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t  \\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[24,[\\\"errorMsg\\\"]]],null],false],[0,\\\"\\\\n\\\\t  \\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"guestResource\\\"],false],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"type\\\",\\\"inputClassNames\\\",\\\"placeholder\\\",\\\"autocomplete\\\",\\\"value\\\",\\\"onSubmit\\\"],[\\\"password\\\",\\\"u-input--large\\\",\\\"password\\\",\\\"off\\\",[24,[\\\"password\\\"]],[28,\\\"perform\\\",[[24,[\\\"loginAsGuestTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"readonly\\\",\\\"placeholder\\\",\\\"list\\\",\\\"value\\\",\\\"onSelect\\\"],[true,\\\"current_lang\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"languages\\\"]],[24,[\\\"language\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setLanguage\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"login\\\",\\\"is-primary\\\",[24,[\\\"loginAsGuestTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"loginAsGuestTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"v\\\"],[1,[23,0,[\\\"version\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/campaign-login/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/campaign-main/campaign-activity/component\", [\"exports\", \"ramda\", \"client/mixins/big\", \"client/mixins/doc-status\", \"ember-concurrency\", \"client/pods/documents/model\", \"client/utils/nventor\"], function (_exports, R, _big, _docStatus, _emberConcurrency, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_big.default, _docStatus.default, {\n    crud: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    dataManager: Ember.inject.service(),\n    big: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    users: Ember.inject.service(),\n    guests: Ember.inject.service(),\n    isSearching: false,\n    didInsertElement() {\n      this._super();\n\n      // this.set('filters', filters)\n      this.fetchDocumentsTask.perform();\n    },\n    fetchDocumentsTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.search.setupFilters({\n        adapterName: 'documents/dispatch/filters'\n      });\n      yield this._fetchDataTask.perform(filters);\n    }),\n    paginateSearchRecordsTask: (0, _emberConcurrency.task)(function* ({\n      filters\n    }) {\n      yield this._fetchDataTask.perform(filters);\n    }),\n    _fetchDataTask: (0, _emberConcurrency.task)(function* (filters) {\n      this.set('filters', filters);\n      const attrs = {};\n      attrs.dataManager = this.dataManager;\n      attrs.crud = this.crud;\n      attrs.dateService = this.dateService;\n      attrs.big = this.big;\n      attrs.users = this.users;\n      attrs.intl = this.intl;\n      const data = filters.serialize();\n      const tokenData = this.guests.getTokenData();\n      data.showCampaignPeriodDataOnly = R.pathOr(false, ['showCampaignPeriodDataOnly'])(tokenData);\n      data.campaignPeriodDateStart = R.pathOr('', ['campaignDateStartZ'])(tokenData);\n      data.campaignPeriodDateEnd = R.pathOr('', ['campaignDateEndZ'])(tokenData);\n      let response;\n      try {\n        response = yield this.guests.call('GET', 'api/guests/channels/shop/campaigns/activity', data);\n      } catch (error) {\n        return this.guests.logout();\n      }\n      const fullCount = R.propOr(0, 'fullCount')(response);\n      filters.set('fullCount', fullCount);\n      const results = R.pipe(R.propOr([], 'data'), R.map(result => {\n        return _nventor.default.createModel(_model.default, result, attrs);\n      }))(response);\n      this.set('results', results);\n    }),\n    customPaginationTask: (0, _emberConcurrency.task)(function* ({\n      filters\n    }) {\n      let page = filters.getData('page');\n      page = parseInt(page) || 0;\n      page = page + 1;\n      yield this._fetchDataTask.perform(filters);\n    }),\n    searchCampaignTask: (0, _emberConcurrency.task)(function* (query) {\n      const filters = this.filters;\n      const results = [];\n      if (query === '') {\n        yield this.fetchDocumentsTask.perform();\n        return;\n      }\n      filters.setData('page', 1);\n      yield this._fetchDataTask.perform(filters);\n    }),\n    allActivity: Ember.computed('results.[]', 'filter', function () {\n      const results = this.results || [];\n      const filter = this.filter;\n      if (!Ember.isEmpty(results)) {\n        return R.filter(result => {\n          if (filter) {\n            const detailValues = R.pipe(R.propOr([], 'details'), R.pluck(['_data']), R.values, R.pluck(['item']))(result._data);\n            const values = R.pipe(R.pick(['telephone', 'contact', 'transporterContactPerson', 'waybill', 'address', 'docNo']), R.values, R.concat(detailValues))(result._data);\n            const matches = R.filter(value => {\n              if (value.indexOf(filter) > -1) {\n                return true;\n              }\n              return false;\n            })(values);\n            if (matches.length > 0) {\n              return true;\n            }\n            return false;\n          }\n          return true;\n        })(results);\n      }\n      return [];\n    }),\n    // total: computed('allActivity.[]', function () {\n    //   const isVoid = this.get('constants.documentsStatus.void')\n    //   const allActivity = this.allActivity || []\n    //   return R.pipe(\n    //     R.pluck('_data'),\n    //     R.values,\n    //     R.reject(doc => doc.status === isVoid),\n    //     this.sumPropAndAutoRound(0, 'inclTotal')\n    //   )(allActivity)\n    // }),\n\n    actions: {\n      listByDate(onHideDropdown, dateZ, date) {\n        return this.fetchDocumentsTask.perform({\n          date,\n          dateZ,\n          resultsToggle: 'resultsToggle'\n        }, onHideDropdown);\n      }\n    }\n  });\n});","define(\"client/pods/components/guests/campaign-main/campaign-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"BkyB4lfx\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"placeholder\\\",\\\"autofocus\\\",\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[\\\"activity\\\",true,[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"searchCampaignTask\\\",\\\"isRunning\\\"]],true,[28,\\\"perform\\\",[[23,0,[\\\"searchCampaignTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"searchCampaignTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchDocumentsTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"documents/activity-list\\\",null,[[\\\"tab\\\",\\\"dispatchProcessesList\\\",\\\"hasTabLinks\\\",\\\"hideActions\\\",\\\"hideExcl\\\",\\\"showDetails\\\",\\\"isGuest\\\",\\\"filters\\\",\\\"results\\\",\\\"showOrderDate\\\",\\\"isRunning\\\"],[[24,[\\\"tab\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"guests-dispatch-lists-processes\\\"]],false,true,true,true,true,[24,[\\\"filters\\\"]],[23,0,[\\\"results\\\"]],true,[24,[\\\"fetchDocumentsTask\\\",\\\"isRunning\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[23,0,[\\\"customPaginationTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/campaign-main/campaign-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/campaign-main/campaign-commissions/component\", [\"exports\", \"ember-concurrency\", \"ramda\"], function (_exports, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    guests: Ember.inject.service(),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this.fetchTask.perform();\n    },\n    fetchTask: (0, _emberConcurrency.task)(function* () {\n      const token = this.get('guests').getToken();\n      const searchSettings = {\n        adapterName: 'guests/shop/campaigns',\n        token\n      };\n      let campaign;\n      try {\n        campaign = yield this.crud.findTask.perform(searchSettings);\n        if (R.isNil(campaign)) {\n          throw Error('null campaign');\n        }\n      } catch (error) {\n        return this.guests.logout();\n      }\n      this.set('campaign', campaign);\n\n      // const master = campaign.getData('_key')\n\n      // const filters = this.search.setupFilters({\n      //   adapterName: 'channels/shop/campaigns/details/filters',\n      //   defaultFiltersData: {\n      //     master,\n      //     appendPath: `/master/${master}`\n      //   }\n      // })\n\n      // this.set('filters', filters)\n    })\n  });\n});","define(\"client/pods/components/guests/campaign-main/campaign-commissions/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y9/cFFf/\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"campaign\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-editor/commissions-editor\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"dirty\\\",\\\"summaryDataAdapterName\\\",\\\"adjustmentListAdapterName\\\",\\\"isGuest\\\",\\\"errorMsg\\\"],[[24,[\\\"tab\\\"]],false,true,[24,[\\\"campaign\\\"]],[24,[\\\"dirty\\\"]],\\\"guests/shop/campaigns/commissions/all\\\",\\\"guests/shop/campaigns/commissions/adjustment\\\",true,[24,[\\\"errorMsg\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/campaign-main/campaign-commissions/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/campaign-main/campaign-products/component\", [\"exports\", \"ember-concurrency\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    guests: Ember.inject.service(),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this.fetchTask.perform();\n    },\n    fetchTask: (0, _emberConcurrency.task)(function* () {\n      // const filters = this.search.setupFilters({ adapterName: 'guests/shop/campaigns/filters' })\n      const token = this.get('guests').getToken();\n      // filters.set('token', token)\n      // filters.set('debug', true)\n      const searchSettings = {\n        adapterName: 'guests/shop/campaigns',\n        token\n      };\n      let campaign;\n      try {\n        campaign = yield this.crud.findTask.perform(searchSettings);\n        if (RA.isNilOrEmpty(campaign)) {\n          throw Error('missing campaign');\n        }\n      } catch (error) {\n        return this.guests.logout();\n      }\n      this.set('campaign', campaign);\n      const master = campaign.getData('_key');\n      const filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        defaultFiltersData: {\n          master,\n          appendPath: `/master/${master}`\n        }\n      });\n      this.set('filters', filters);\n\n      // const params = {\n      //   // token,\n      //   report: 'campaigns',\n      //   status: this.get('constants.documentsStatus.final'),\n      //   dispatchStatus: this.dispatchStatusFilter,\n      //   segments: ['orderDateZ', 'expectedDispatchDateZ', 'dispatchDateZ', 'contact', 'item', 'itemWithGroupedSetWithChoices', 'trackingCodes', 'paymentMethodKey', 'status']\n      // }\n      // const report = yield this.guests.call('GET', 'api/guests/channels/shop/campaigns/report', params)\n\n      // this.set('report', report.data)\n    }),\n    fetchCampaignDetailsTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.campaign;\n      const master = model.getData('_key');\n      let details = [];\n      if (master) {\n        try {\n          details = yield this.crud.searchRecordsTask.perform({\n            adapterName: 'guests/shop/campaigns/details',\n            appendPath: `/master/${master}`,\n            filters: this.filters\n          });\n        } catch (error) {\n          return this.guests.logout();\n        }\n      }\n      model.set('details', details);\n      this.set('results', details);\n    })\n  });\n});","define(\"client/pods/components/guests/campaign-main/campaign-products/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hEcUtByw\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"campaign\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"channels/shop/campaigns/campaigns-editor/products-editor\\\",null,[[\\\"tab\\\",\\\"adapterName\\\",\\\"model\\\",\\\"filters\\\",\\\"isGuest\\\",\\\"isReadonly\\\",\\\"fetchCampaignDetailsTask\\\"],[[24,[\\\"tab\\\"]],\\\"guests/shop/campaigns/details\\\",[24,[\\\"campaign\\\"]],[24,[\\\"filters\\\"]],true,true,[24,[\\\"fetchCampaignDetailsTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/campaign-main/campaign-products/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/campaign-main/campaign-report/component\", [\"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 = Ember.Component.extend({\n    guests: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      const tokenData = this.guests.getTokenData();\n      this.set('tokenData', tokenData);\n    }\n  });\n});","define(\"client/pods/components/guests/campaign-main/campaign-report/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"a8RiNUCL\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"channels/shop/campaigns/campaigns-report\\\",null,[[\\\"isGuest\\\",\\\"tokenData\\\"],[true,[24,[\\\"tokenData\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/campaign-main/campaign-report/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/campaign-main/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, R, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    storage: Ember.inject.service(),\n    router: Ember.inject.service(),\n    guests: Ember.inject.service(),\n    url: '',\n    password: '',\n    init() {\n      this.crud.addLists(this, ['guests/shop/report/lists/subPanels']);\n      this._super(...arguments);\n      const tokenData = this.guests.getTokenData();\n      this.set('tokenData', tokenData);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const subPanels = R_.dotPath('crud.lists.guests-shop-report-lists-subPanels')(this) || [];\n      const showCommissionsInGuestsView = R.pathEq(['showCommissionsInGuestsView'], true)(this.tokenData);\n      const showActivityInGuestsView = R.pathEq(['showActivityInGuestsView'], true)(this.tokenData);\n      if (!showCommissionsInGuestsView) {\n        const toRemoveObjects = R.filter(panel => R.pathEq(['_data', 'value'], 'commissions', panel))(subPanels);\n        if (RA.isNotNilOrEmpty(toRemoveObjects)) {\n          subPanels.removeObjects(toRemoveObjects);\n        }\n      }\n      if (!showActivityInGuestsView) {\n        const toRemoveObjects = R.filter(panel => R.pathEq(['_data', 'value'], 'activity', panel))(subPanels);\n        if (RA.isNotNilOrEmpty(toRemoveObjects)) {\n          subPanels.removeObjects(toRemoveObjects);\n        }\n      }\n      const initialPanel = subPanels.get('firstObject');\n      this.tabsManager.displaySubPanel(this, initialPanel);\n    }\n  });\n});","define(\"client/pods/components/guests/campaign-main/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uz0TlrHi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,2,[]],[23,2,[\\\"subTabs\\\"]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"guests-shop-report-lists-subPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,2,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"url\\\"],[[23,1,[]],[24,[\\\"url\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/campaign-main/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/portal/app-logged-in/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _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 GuestsPortalAppLoggedInComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _class = class GuestsPortalAppLoggedInComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"guests\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"shopUrlPrefix\", _descriptor7, this);\n      _initializerDefineProperty(this, \"campaignFilters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedCampaignKey\", _descriptor9, this);\n      this.shopUrlPrefix = this.guests.resource || '';\n      this.campaignFilters = this.search.setupFilters({\n        adapterName: 'guests/portal/campaigns/filters'\n      });\n      this.selectedCampaignKey = this.guests.getPortalSelectedCampaignKey() || '';\n      this.fetchCampaignsTask.perform();\n      const tabOptions = {\n        component: 'guests/portal/campaign-main',\n        isActive: true\n      };\n      this.tabsManager.openTab('left', tabOptions);\n    }\n    *fetchCampaignsTask() {\n      const campaignFilters = this.campaignFilters;\n      const shopUrlPrefix = this.shopUrlPrefix;\n      if (!campaignFilters || !shopUrlPrefix) {\n        return;\n      }\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: 'guests/portal/campaigns',\n        filters: campaignFilters,\n        appendPath: shopUrlPrefix\n      });\n      const selectedCampaignKey = this.selectedCampaignKey || '';\n      if (!selectedCampaignKey) {\n        return;\n      }\n      const selectedCampaign = campaignFilters.results?.findBy?.('_data.campaignKey', selectedCampaignKey);\n      const selectedCampaignName = selectedCampaign?.get?.('_data.campaignName') || '';\n      campaignFilters.setData('query', selectedCampaignName);\n    }\n    selectCampaign(item) {\n      const key = item.get('_data.campaignKey') || '';\n      if (!key) {\n        return;\n      }\n      this.selectedCampaignKey = key;\n      this.guests.setPortalSelectedCampaignKey(key);\n      this.router.transitionTo('guests.portal.report');\n    }\n    deselectCampaign() {\n      this.selectedCampaignKey = '';\n      this.guests.setPortalSelectedCampaignKey('');\n      this.campaignFilters.setData('query', '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"guests\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"shopUrlPrefix\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"campaignFilters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaignKey\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectCampaign\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"selectCampaign\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectCampaign\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectCampaign\"), _class.prototype), _class);\n});","define(\"client/pods/components/guests/portal/app-logged-in/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cKGSGrM7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"app-grid u-no-print guest-app buttons are-small \\\",[28,\\\"if\\\",[[23,0,[\\\"applicationService\\\",\\\"isMobile\\\"]],\\\"is-mobile\\\",\\\"is-desktop\\\"],null]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\",\\\"@isParent\\\"],[[23,0,[\\\"tabsManager\\\",\\\"left\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,1,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabs\\\",\\\"tab\\\",\\\"campaignFilters\\\",\\\"selectedCampaignKey\\\",\\\"shopUrlPrefix\\\",\\\"onSelectCampaign\\\",\\\"onDeselectCampaign\\\"],[[23,0,[\\\"tabsManager\\\",\\\"left\\\"]],[23,1,[]],[23,0,[\\\"campaignFilters\\\"]],[23,0,[\\\"selectedCampaignKey\\\"]],[23,0,[\\\"shopUrlPrefix\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectCampaign\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"deselectCampaign\\\"]]],null]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/portal/app-logged-in/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/portal/campaign-main/campaign-dashboard/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/date\", \"client/pods/components/channels/shop/campaigns/mixins/campaigns-list-by\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, _date, _campaignsListBy, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_campaignsListBy.default, _date.default, {\n    crud: Ember.inject.service(),\n    server: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    guests: Ember.inject.service(),\n    adapterName: 'channels/shop/campaigns',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['periods/months', 'periods/years', 'channels/shop/campaigns/reports/filters']);\n      const customDateStartZ = this.dateService.getMonthStart().toISOString();\n      const customDateStart = this.dateService.getMoment(customDateStartZ).format('YYYY-MM-DD');\n      const customDateEndZ = this.dateService.getMonthEnd().toISOString();\n      const customDateEnd = this.dateService.getMoment(customDateEndZ).format('YYYY-MM-DD');\n      this.set('customDateStartZ', customDateStartZ);\n      this.set('customDateStart', customDateStart);\n      this.set('customDateEndZ', customDateEndZ);\n      this.set('customDateEnd', customDateEnd);\n      this.set('showCampaignReportBy', Ember.Object.create({\n        revenueBy: 'ordered',\n        taxMethods: 'inclusive'\n      }));\n      const period = this.dateService.getPeriod();\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      this.displayByMonth(period);\n      this.set('_lastSelectedCampaignKey', this.selectedCampaignKey || this.guests.getPortalSelectedCampaignKey() || '');\n      this.tabsManager.setHeader(this.tabParent, this.intl.t('overview'));\n    },\n    didReceiveAttrs() {\n      this._super(...arguments);\n      const selectedCampaignKey = this.selectedCampaignKey ?? this.guests.getPortalSelectedCampaignKey() ?? '';\n      const lastSelectedCampaignKey = this._lastSelectedCampaignKey || '';\n      if (!selectedCampaignKey || selectedCampaignKey === lastSelectedCampaignKey) {\n        return;\n      }\n      this.set('_lastSelectedCampaignKey', selectedCampaignKey);\n      // reset the dateStartZ and dateEndZ so it will display the current month every campaign change\n      const period = this.dateService.getPeriod();\n      this.displayByMonth(period);\n    },\n    displayByMonth(period) {\n      const dateStart = this.dateService.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.dateService.formatDateForUrl(this.dateService.getMonthEnd(period.yyyy, period.mm));\n      this.display({\n        dateStart,\n        dateEnd\n      });\n    },\n    display(period) {\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      this.set('period', period);\n      this.set('dateStart', dateStart);\n      this.set('dateEnd', dateEnd);\n      this.fetchReportsTask.perform({\n        dateStart,\n        dateEnd\n      });\n    },\n    fetchReportsTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd\n    }) {\n      const itemReport = yield this._fetchReportTask.perform({\n        dateStart,\n        dateEnd,\n        dispatchStatus: 'all',\n        segments: ['item']\n      });\n      this.set('itemReport', itemReport);\n    }),\n    _fetchReportTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd,\n      dispatchStatus,\n      segments = []\n    }) {\n      const monthParams = {\n        docType: 'sales',\n        dateStart,\n        dateEnd,\n        match: ['channel'],\n        status: this.get('constants.documentsStatus.final'),\n        dispatchStatus,\n        query: 'shop',\n        segments\n      };\n      const shopUrlPrefix = this.guests.resource || '';\n      if (!shopUrlPrefix) {\n        return [];\n      }\n      const campaignKey = this.guests.getPortalSelectedCampaignKey() || '';\n      if (!campaignKey) {\n        return [];\n      }\n      const path = `api/guests/portal/campaigns/${shopUrlPrefix}/report/${campaignKey}`;\n      const results = yield this.server.call('GET', path, monthParams);\n      return results.data;\n    }),\n    isTaxExclusive: Ember.computed('showCampaignReportBy.taxMethods', function () {\n      if (this.get('showCampaignReportBy.taxMethods') === 'exclusive') {\n        return true;\n      }\n      return false;\n    }),\n    actions: {\n      displayByMonth(period) {\n        this.displayByMonth(period);\n      },\n      displayByCustom() {\n        if (!this.customDateEnd || !this.customDateStart) {\n          return;\n        }\n        const period = this.dateService.getCustomPeriod(this.customDateEnd, this.customDateStart);\n        this.display(period);\n      },\n      setCustomDate(type, dateZ) {\n        if (type === 'dateStart') {\n          this.set('customDateStart', this.dateService.getMoment(dateZ).format('YYYY-MM-DD'));\n        } else if (type === 'dateEnd') {\n          this.set('customDateEnd', this.dateService.getMoment(dateZ).format('YYYY-MM-DD'));\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/guests/portal/campaign-main/campaign-dashboard/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0uPpLoYu\",\n    \"block\": \"{\\\"symbols\\\":[\\\"period\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"selectedCampaignKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setCustomDate\\\",\\\"dateStart\\\"],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-3 u-margin-right-3\\\"],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setCustomDate\\\",\\\"dateEnd\\\"],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"is-primary u-margin-left-3\\\",[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustom\\\"],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\" \\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"isRunning\\\",\\\"onSelect\\\"],[[23,0,[\\\"pastMonths\\\"]],[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,1,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"date_period\\\"],null],\\\": \\\",[28,\\\"date\\\",[[23,0,[\\\"itemReport\\\",\\\"dateStartZ\\\"]]],null],\\\" ~ \\\",[28,\\\"date\\\",[[23,0,[\\\"itemReport\\\",\\\"dateEndZ\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchReportsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/guest-portal-card-revenue-by-group\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@chartHeight\\\",\\\"@averageByItemQty\\\",\\\"@isTaxExclusive\\\",\\\"@isItem\\\",\\\"@data\\\",\\\"@showProductsBySetsWithChoicesToggle\\\",\\\"@initialToggleResult\\\"],[\\\"revenue by product\\\",\\\"horizontalBar\\\",[23,0,[\\\"chartOptions\\\"]],\\\"300\\\",true,[23,0,[\\\"isTaxExclusive\\\"]],true,[23,0,[\\\"itemReport\\\",\\\"segments\\\",\\\"item\\\"]],false,\\\"showItemWithSetChildOnly\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/portal/campaign-main/campaign-dashboard/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/portal/campaign-main/component\", [\"exports\", \"ramda-extension\"], function (_exports, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    init() {\n      this.crud.addLists(this, ['guests/portal/report/lists/subPanels']);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const subPanels = R_.dotPath('crud.lists.guests-portal-report-lists-subPanels')(this) || [];\n      const initialPanel = subPanels.get('firstObject');\n      this.tabsManager.displaySubPanel(this, initialPanel);\n    }\n  });\n});","define(\"client/pods/components/guests/portal/campaign-main/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9zmXrGyZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@campaignFilters\\\",\\\"@selectedCampaignKey\\\",\\\"@shopUrlPrefix\\\",\\\"@onSelectCampaign\\\",\\\"@onDeselectCampaign\\\",\\\"@tab\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-padding-left-30\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\":\\\\n        \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@isRunning\\\",\\\"@overlayClassNames\\\",\\\"@modalContainerClassNames\\\"],[\\\"span\\\",false,[23,2,[\\\"results\\\"]],\\\"_data.campaignKey\\\",\\\"_data.campaignName\\\",\\\"_data.campaignName\\\",[23,2,[\\\"_data\\\",\\\"query\\\"]],[23,3,[]],[23,2,[]],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"appendPath\\\",\\\"component\\\",\\\"resultsProperty\\\",\\\"allowEmptyQuery\\\"],[\\\"guests/portal/campaigns\\\",[23,2,[]],[23,4,[]],[23,0,[]],\\\"results\\\",true]]]],null],[23,5,[]],[23,6,[]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],\\\"list-dropdown-nested-global-overlay\\\",\\\"list-dropdown-nested-global-container\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,7,[]],[23,7,[\\\"subTabs\\\"]],[23,8,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"guests-portal-report-lists-subPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,7,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,7,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"selectedCampaignKey\\\"],[[23,1,[]],[23,3,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/portal/campaign-main/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/portal/campaigns-modal/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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, _dec0, _dec1, _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 GuestsPortalCampaignsModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class GuestsPortalCampaignsModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"guests\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor5, this);\n      _initializerDefineProperty(this, \"campaignFilters\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedCampaignKey\", _descriptor7, this);\n      let selectedCampaignKey = this.guests.getPortalSelectedCampaignKey() ?? '';\n      if (RA.isNotNilOrEmpty(selectedCampaignKey)) {\n        this.selectedCampaignKey = selectedCampaignKey;\n      }\n    }\n    selectCampaign(item) {\n      const key = item.get('_data.campaignKey');\n      this.selectedCampaignKey = key;\n    }\n    deselectCampaign() {\n      this.selectedCampaignKey = '';\n      this.args.campaignFilters?.setData?.('query', '');\n    }\n    redirectToReport() {\n      const key = this.selectedCampaignKey;\n      if (!key) {\n        return;\n      }\n      this.guests.setPortalSelectedCampaignKey(key);\n      return this.router.transitionTo('guests.portal.report');\n    }\n    onCancel() {\n      return this.router.transitionTo('guests.portal.login', this.args.shopUrlPrefix);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"guests\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"campaignFilters\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaignKey\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectCampaign\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"selectCampaign\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deselectCampaign\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"deselectCampaign\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"redirectToReport\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"redirectToReport\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCancel\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"onCancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/guests/portal/campaigns-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XJ+JlUPS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@campaignFilters\\\",\\\"@shopUrlPrefix\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@hasModalDialogHeader\\\",\\\"@closeOnOverlayClick\\\",\\\"@modalSize\\\"],[true,false,false,\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\"],[\\\"guestsPortalCampaigns\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\"],[\\\"campaigns\\\",true]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@isBasic\\\",\\\"@context\\\",\\\"@formInitData\\\"],[true,\\\"supplier_portal_campaign_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"supplier_portal_campaign\\\",[23,1,[]],\\\"shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@isRunning\\\",\\\"@overlayClassNames\\\",\\\"@modalContainerClassNames\\\"],[\\\"span\\\",false,[23,2,[\\\"results\\\"]],\\\"_data.campaignKey\\\",\\\"_data.campaignName\\\",\\\"_data.campaignName\\\",[23,2,[\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"selectedCampaignKey\\\"]],[23,2,[]],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"appendPath\\\",\\\"component\\\",\\\"resultsProperty\\\",\\\"allowEmptyQuery\\\"],[\\\"guests/portal/campaigns\\\",[23,2,[]],[23,3,[]],[23,0,[]],\\\"results\\\",true]]]],null],[23,0,[\\\"selectCampaign\\\"]],[23,0,[\\\"deselectCampaign\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],\\\"list-dropdown-nested-global-overlay\\\",\\\"list-dropdown-nested-global-container\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"classNames\\\",\\\"is-right\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"logout\\\",[28,\\\"fn\\\",[[23,0,[\\\"onCancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"select\\\",[28,\\\"fn\\\",[[23,0,[\\\"redirectToReport\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/portal/campaigns-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guests/portal/login-form/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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;\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 GuestsPortalLoginFormComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _class = class GuestsPortalLoginFormComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"server\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"guests\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"supplierPortalEmail\", _descriptor5, this);\n      _initializerDefineProperty(this, \"supplierPortalPassword\", _descriptor6, this);\n      _initializerDefineProperty(this, \"errorMsg\", _descriptor7, this);\n      _initializerDefineProperty(this, \"hidePassword\", _descriptor8, this);\n    }\n    get passwordInputType() {\n      return this.hidePassword ? 'password' : 'text';\n    }\n    get passwordVisibilityIcon() {\n      return this.hidePassword ? 'fas fa-eye' : 'fas fa-eye-slash';\n    }\n    togglePasswordVisibility() {\n      this.hidePassword = !this.hidePassword;\n    }\n    *tryLoginTask() {\n      yield this.loginTask.perform();\n    }\n    *loginTask() {\n      this.errorMsg = '';\n      const shopUrlPrefix = this.args.shopUrlPrefix;\n      const response = yield this.server.call('POST', 'api/guests/portal/login', {\n        supplierPortalEmail: this.supplierPortalEmail,\n        supplierPortalPassword: this.supplierPortalPassword,\n        shopUrlPrefix\n      });\n      const token = response?.data?.token;\n      if (RA.isNilOrEmpty(token)) {\n        this.errorMsg = this.intl.t('invalid email or password');\n        return;\n      }\n      this.guests.setup(shopUrlPrefix);\n      this.guests.setToken(token);\n\n      // redirect to route to fetch all campaigns.\n      // /portal/shop_url_prefix/campaigns\n      this.router.transitionTo('guests.portal.campaigns', shopUrlPrefix);\n      return token;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"guests\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"supplierPortalEmail\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"supplierPortalPassword\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"errorMsg\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hidePassword\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"togglePasswordVisibility\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePasswordVisibility\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"tryLoginTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"tryLoginTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loginTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loginTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/guests/portal/login-form/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PJvyCp3I\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"layouts/section-container\\\",[[12,\\\"class\\\",\\\"login\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"login\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section/sub\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"header\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"login__header\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-industry\\\"]]],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"welcome to bigordr supplier portal\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/section/sub\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@value\\\",\\\"@onSubmit\\\"],[\\\"u-input--medium login__portal-email-input\\\",\\\"email\\\",\\\"email\\\",[23,0,[\\\"supplierPortalEmail\\\"]],[23,0,[\\\"tryLoginTask\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@type\\\",\\\"@inputPvtClassNames\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@value\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"passwordInputType\\\"]],\\\"u-input--medium\\\",\\\"password\\\",\\\"password\\\",[23,0,[\\\"supplierPortalPassword\\\"]],[23,0,[\\\"tryLoginTask\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"search-btn login__portal-password-toggle\\\",[23,0,[\\\"passwordVisibilityIcon\\\"]],[23,0,[\\\"togglePasswordVisibility\\\"]],-1,false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"errorMsg\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row has-text-danger\\\"],[10,\\\"role\\\",\\\"alert\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,0,[\\\"errorMsg\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"is-primary\\\",\\\"login\\\",[28,\\\"perform\\\",[[23,0,[\\\"tryLoginTask\\\"]]],null],[23,0,[\\\"tryLoginTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guests/portal/login-form/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guide-menu/guide-menu-nav/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\", \"ember-concurrency-decorators\", \"ember-concurrency\"], function (_exports, _component, R, RA, _nventor, _emberConcurrencyDecorators, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class GuideMenuNavComponent extends _component.default {\n    // @service tabsManager\n    // @service('application') applicationService\n\n    // @tracked hasInitiated = false\n    // @tracked _element\n    // @tracked _content\n    // @tracked masterTab\n    // @tracked onInitDeviceIsMobile\n    // @tracked adjustWidth = null\n\n    // constructor () {\n    //   super(...arguments)\n\n    //   this.masterTab = this.tabsManager.getMasterTab('left')\n\n    //   this.onInitDeviceIsMobile = this.applicationService.isMobile\n    // }\n\n    // get showGuideMenu () {\n    //   if (this.args.hide) {\n    //     return false\n    //   }\n\n    //   if (this.hasInitiated) {\n    //     // only one menu\n    //     const guideMenuArray = this.guideMenuArray\n    //     if (guideMenuArray.length === 0) {\n    //       return false\n    //     }\n\n    //     // if (guideMenuArray.length === 1) {\n    //     //   const menuSub = R.pathOr([], [0, 'sub'])(guideMenuArray)\n    //     //   return menuSub.length > 1\n    //     // }\n    //   }\n\n    //   return true\n    // }\n\n    // /**\n    //  * To get the registered guide menu\n    //  * @returns {Object}\n    //  */\n    // get currentGuideMenu () {\n    //   const menuId = this.args?.formInitData?.menuId || ''\n    //   const tab = this.args?.tab || {}\n\n    //   if (menuId && tab?.get) {\n    //     return tab.get(menuId) || {}\n    //   }\n\n    //   return {}\n    // }\n\n    // get modifiedFormInitData () {\n    //   const formInitData = this.args.formInitData || {}\n    //   formInitData.showGuideMenu = this.showGuideMenu\n    //   return formInitData\n    // }\n\n    // /**\n    //  * To get 'menu' {Array} in current guide menu\n    //  * @returns {Array}\n    //  */\n    // get guideMenuArray () {\n    //   return this.currentGuideMenu?.menu || []\n    // }\n\n    // /**\n    //  * To get active menu tab of current guide menu, get the first menu tab by default\n    //  * @returns {Object} current active menuTab or the first menuTab (default)\n    //  */\n    // get activeGuideMenuTab () {\n    //   const allMenu = this.currentGuideMenu?.menu || []\n    //   const menuTab = R.find(R.pathEq(['showActive'], true))(allMenu)\n    //   if (!menuTab) {\n    //     return allMenu.firstObject || {}\n    //   }\n\n    //   return menuTab\n    // }\n\n    // /**\n    //  * To get the offset of tab header's bottom\n    //  * @returns {String} the vertical position of header\n    //  */\n    // get offset () {\n    //   const tabHeaderDefaultOffset = 164 // unit: px\n    //   let headerBottom = this.args.headerBottom || tabHeaderDefaultOffset\n    //   const parent = this.parentPanelGrid\n\n    //   if (!this.args.onSetHeaderBottom) {\n    //     headerBottom = this._setHeaderBottom(headerBottom, parent)\n    //   }\n\n    //   if (this.isModalContainer) {\n    //     const modalHeader = parent.querySelector('.modal-dialog__header')\n    //     if (modalHeader) {\n    //       const offsetRect = modalHeader.getBoundingClientRect()\n    //       headerBottom = offsetRect?.height || 0\n    //     } else {\n    //       headerBottom = 0\n    //     }\n    //   }\n\n    //   if (headerBottom < 0) {\n    //     return tabHeaderDefaultOffset\n    //   }\n\n    //   return headerBottom\n    // }\n\n    // _setHeaderBottom (headerBottom, parent) {\n    //   if (RA.isNotNilOrEmpty(headerBottom)) {\n    //     return headerBottom\n    //   }\n\n    //   const headerTitle = parent.querySelector('.panel-grid__header-title')\n    //   if (headerTitle && !headerTitle.classList.contains('hidden')) {\n    //     const titleRect = headerTitle?.getBoundingClientRect?.()\n    //     const headerTitleDefaultOffset = 310 // unit: px\n\n    //     return titleRect?.bottom || headerTitleDefaultOffset\n    //   }\n\n    //   const tabHeader = parent.querySelector('.panel-grid__header-with-guide-menu')\n    //   const rectObj = tabHeader?.parentElement?.getBoundingClientRect?.()\n    //   const tabHeaderDefaultOffset = 164 // unit: px\n\n    //   return rectObj?.bottom || tabHeaderDefaultOffset\n    // }\n\n    // /**\n    //  * Check if it's inside a modal\n    //  * @returns {boolean}\n    //  */\n    // get isModalContainer () {\n    //   const parent = this.parentPanelGrid\n    //   if (parent.classList.contains('is-modal')) {\n    //     return true\n    //   }\n\n    //   return false\n    // }\n\n    // /**\n    //  * Should be inside class='panel-grid'\n    //  * @returns {HTMLDivElement}\n    //  */\n    // get parentPanelGrid () {\n    //   return this._element.closest('.panel-grid')\n    // }\n\n    // /**\n    //  * To get full visible width\n    //  * @return {string} unit: px\n    //  */\n    // get fullVisableHeight () {\n    //   const parent = this.parentPanelGrid\n    //   const tabFooters = parent.querySelectorAll('.panel-grid__footer')\n    //   const _checkLength = tabFooters?.length || 0\n    //   let rectObj\n    //   let tabFooter\n    //   let _count = 0\n\n    //   while (_count < _checkLength) {\n    //     tabFooter = tabFooters[_count]\n    //     const tabFooterRect = tabFooter.getBoundingClientRect?.()\n\n    //     if (tabFooterRect && tabFooterRect?.top > 0) {\n    //       rectObj = tabFooterRect\n    //       break\n    //     }\n\n    //     _count++\n    //   }\n\n    //   const footerTop = rectObj?.top || document?.documentElement?.clientHeight\n\n    //   if (this.isModalContainer) {\n    //     const _footerTop = tabFooter?.offsetTop || footerTop\n    //     return `${_footerTop - (this.offset)}px`\n    //   }\n\n    //   return `${footerTop - this.offset}px`\n    // }\n\n    // /**\n    //  * To get tabFooter's height and used to set paddingBottom of guideMenuNav\n    //  */\n    // get extraPaddingBottom () {\n    //   if (this.isModalContainer) {\n    //     return '0px'\n    //   }\n\n    //   const tabFooter = this.parentPanelGrid.querySelector('.panel-grid__footer')\n    //   const rectObj = tabFooter?.getBoundingClientRect?.()\n    //   const footerHeight = rectObj?.height || 60\n\n    //   return `${footerHeight}px`\n    // }\n\n    // /**\n    //  * Scroll to the target by classname\n    //  * @param {String} targetClass The specific classname\n    //  * @void\n    //  */\n    //  @action\n    //  goToTarget (targetClass) {\n    //    const goTo = this?._content.querySelector?.(`.${targetClass}`) || {}\n    //    const offset = this.offset\n\n    //    if (this.isModalContainer) {\n    //      const parent = this.parentPanelGrid.querySelector('.modal-dialog__content')\n    //      nventor.goToElement({\n    //        parent,\n    //        goTo,\n    //        offset\n    //      })\n    //    } else {\n    //      nventor.goToElement({\n    //        goTo,\n    //        offset\n    //      })\n    //    }\n    //  }\n\n    // /**\n    //  * setup tracked property _element and adjust for web page / mobile\n    //  * @param {HTMLDivElement} element Default provided by glimmer component\n    //  * @void\n    //  */\n    // @action\n    // setupElement (element) {\n    //   this._element = element\n    // }\n\n    // /**\n    //  * setup tracked property _content\n    //  * @param {HTMLDivElement} element Default provided by glimmer component\n    //  * @void\n    //  */\n    // @action\n    // setupContentElement (element) {\n    //   this._content = element\n\n    //   this.modifyLayout(true)\n    // }\n\n    // /**\n    //  * Use to resize guide menu, and uses dropTask to add debounce\n    //  * @param {Object} options contentRect not in use\n    //  */\n    // @dropTask\n    // * resizeTask ({ contentRect: { width, height } }) {\n    //   const DEBOUNCE_MS = 500\n    //   yield timeout(DEBOUNCE_MS)\n    //   const tab = this.args?.tab\n    //   const parentTab = this.args?.parentTab\n\n    //   if (parentTab?.isActive && tab?.isActive) {\n    //     this.modifyLayout()\n    //   }\n    // }\n\n    // /**\n    //  * Modify the layout depends on isMobile\n    //  * @void\n    //  */\n    // @action\n    // modifyLayout (isSetup = false) {\n    //   this.hasInitiated = true\n\n    //   if (!this.showGuideMenu) {\n    //     return\n    //   }\n\n    //   this._setGuideMenuNavCSSProp()\n\n    //   if (this.onInitDeviceIsMobile !== this.applicationService.isMobile || isSetup === true) {\n    //     this.onInitDeviceIsMobile = this.applicationService.isMobile\n    //     scheduleOnce('afterRender', () => {\n    //       this.applicationService.isMobile\n    //         ? this._adjustForMobile(this._content)\n    //         : this._adjustForWebPage(this._content)\n    //     })\n    //   }\n    // }\n\n    // /**\n    //  * Use to adjust the offset of the content that guide menu refers to\n    //  * @param {HTMLDivElement} container Uses recursive method to get the closest guide menu content container\n    //  * @void\n    //  */\n    // @action\n    // _adjustForWebPage (container = {}) {\n    //   const navElement = this._element\n    //   if (RA.isNotNilOrEmpty(container)) {\n    //     let adjustWidth\n    //     if (this.isModalContainer) {\n    //       adjustWidth = 200\n    //     } else {\n    //       adjustWidth = navElement?.offsetWidth + navElement?.offsetLeft\n    //       container.style.marginBottom = '30vh'\n    //     }\n\n    //     if (adjustWidth > 230) {\n    //       adjustWidth = 230\n    //     }\n\n    //     if (!this.applicationService.isMobile) {\n    //       adjustWidth = 230\n    //     }\n\n    //     container.style.marginLeft = `${adjustWidth}px`\n\n    //     this.currentGuideMenu.width = adjustWidth\n    //     this.adjustWidth = adjustWidth\n    //   }\n    // }\n\n    // /**\n    //  * Use to adjust the offset of the content that guide menu refers to\n    //  * @param {HTMLDivElement} container Uses recursive method to get the closest guide menu content container\n    //  * @void\n    //  */\n    // @action\n    // _adjustForMobile (container = {}) {\n    //   if (RA.isNotNilOrEmpty(container)) {\n    //     container.style.marginLeft = 0\n    //     this.adjustWidth = 0\n    //   }\n    // }\n\n    // /**\n    //  * Before modify layout, set CSS properties\n    //  * @void\n    //  */\n    // @action\n    // _setGuideMenuNavCSSProp () {\n    //   const element = this._element\n    //   if (RA.isNotNilOrEmpty(element)) {\n    //     if (this.applicationService.isMobile === false) {\n    //       const style = element.style\n    //       const fullVisableHeight = this.fullVisableHeight || '40vh'\n\n    //       const headerBottom = this.args.headerBottom\n    //       if (!headerBottom) {\n    //         this.args?.onSetHeaderBottom?.()\n    //       }\n\n    //       set(style, 'top', `${this.offset}px`)\n    //       set(style, 'maxHeight', fullVisableHeight)\n    //       set(style, 'minHeight', fullVisableHeight)\n\n    //       const extraPaddingBottom = this.extraPaddingBottom\n    //       set(style, 'paddingBottom', extraPaddingBottom)\n\n    //       if(!this.applicationService.isMobile) {\n    //         set(style, 'width', `230px`)\n    //       } else {\n    //         let adjustWidth = this.adjustWidth\n    //         if (adjustWidth === null) {\n    //           adjustWidth = element?.offsetWidth + element?.offsetLeft\n    //         }\n\n    //         if (adjustWidth > 230) {\n    //           adjustWidth = 230\n    //         }\n\n    //         if (adjustWidth !== 0) {\n    //           set(style, 'maxWidth', `${adjustWidth}px`)\n    //           set(style, 'minWidth', `${adjustWidth}px`)\n    //         }\n    //       }\n    //     } else {\n    //       const style = element.style\n    //       set(style, 'top', '')\n    //       set(style, 'maxHeight', '')\n    //       set(style, 'minHeight', '')\n    //       set(style, 'maxWidth', '')\n    //       set(style, 'minWidth', '')\n    //     }\n    //   }\n    // }\n  }\n  _exports.default = GuideMenuNavComponent;\n});","define(\"client/pods/components/guide-menu/guide-menu-nav/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FJMwNe8N\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"&default\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[14,2,[[23,1,[]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guide-menu/guide-menu-nav/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guides/player/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 CALLOUT_GAP = 14;\n  const VIEWPORT_MARGIN = 12;\n  const ARROW_SIDES = ['left', 'right', 'top', 'bottom'];\n\n  /**\n   * Card for the New Feature tour the guides service is playing.\n   * The note sits beside the target with an arrow. A ring is drawn over the page,\n   * so a parent that clips its contents cannot hide the marker.\n   */\n  let GuidesPlayerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _class = class GuidesPlayerComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"guides\", _descriptor, this);\n      _defineProperty(this, \"highlightedElement\", null);\n      _defineProperty(this, \"cardElement\", null);\n      _defineProperty(this, \"ringElement\", null);\n    }\n    /**\n     * Keep the ring element so it can be placed over the target.\n     * @param {HTMLElement} element - ring element\n     */\n    registerRing(element) {\n      this.ringElement = element;\n    }\n\n    /**\n     * Highlight the element of the current step and scroll it into view.\n     * A step that continues when clicked listens for that click without blocking it.\n     * @param {HTMLElement} cardElement - guide card\n     */\n    highlightCurrentStep(cardElement) {\n      this.removeHighlight();\n      this.cardElement = cardElement;\n      const currentStep = this.guides.currentStep;\n      const guideElement = this.guides.findVisibleGuideElement(currentStep?.guideId, currentStep?.parentGuideId);\n      if (!guideElement) {\n        this.centerCallout();\n        return;\n      }\n      guideElement.scrollIntoView({\n        block: 'nearest',\n        inline: 'nearest'\n      });\n      this.highlightedElement = guideElement;\n      this.placeCallout();\n      document.addEventListener('scroll', this.placeCallout, true);\n      window.addEventListener('resize', this.placeCallout);\n      if (this.guides.currentStep?.advanceOnClick) {\n        document.addEventListener('click', this.continueAfterClick, true);\n      }\n    }\n\n    /**\n     * Show the card in the middle of the viewport when the target cannot be found.\n     */\n    centerCallout() {\n      const card = this.cardElement;\n      if (!card) {\n        return;\n      }\n      const viewportHeight = window.innerHeight;\n      const viewportWidth = window.innerWidth;\n      card.style.maxHeight = `${viewportHeight - VIEWPORT_MARGIN * 2}px`;\n      card.style.maxWidth = `${Math.min(360, viewportWidth - VIEWPORT_MARGIN * 2)}px`;\n      const cardRect = card.getBoundingClientRect();\n      const top = clampCallout((viewportHeight - cardRect.height) / 2, VIEWPORT_MARGIN, viewportHeight - VIEWPORT_MARGIN);\n      const left = clampCallout((window.innerWidth - cardRect.width) / 2, VIEWPORT_MARGIN, window.innerWidth - VIEWPORT_MARGIN);\n      card.style.top = `${top}px`;\n      card.style.left = `${left}px`;\n      card.classList.add('guides-card--anchored');\n    }\n\n    /**\n     * Place the ring over the target and the card on the side with room, arrow aimed at the target.\n     */\n    placeCallout() {\n      const target = this.highlightedElement;\n      const card = this.cardElement;\n      const ring = this.ringElement;\n      if (!target || !card) {\n        return;\n      }\n      const targetRect = target.getBoundingClientRect();\n      if (ring) {\n        ring.style.top = `${targetRect.top}px`;\n        ring.style.left = `${targetRect.left}px`;\n        ring.style.width = `${targetRect.width}px`;\n        ring.style.height = `${targetRect.height}px`;\n        ring.hidden = false;\n        ring.classList.toggle('guides-target-ring--click', Boolean(this.guides.currentStep?.advanceOnClick));\n      }\n      const viewportWidth = window.innerWidth;\n      const viewportHeight = window.innerHeight;\n      card.style.maxHeight = `${viewportHeight - VIEWPORT_MARGIN * 2}px`;\n      card.style.maxWidth = `${Math.min(360, viewportWidth - VIEWPORT_MARGIN * 2)}px`;\n      const cardRect = card.getBoundingClientRect();\n      const visibleLeft = Math.max(targetRect.left, VIEWPORT_MARGIN);\n      const visibleTop = Math.max(targetRect.top, VIEWPORT_MARGIN);\n      const visibleRight = Math.min(targetRect.right, viewportWidth - VIEWPORT_MARGIN);\n      const visibleBottom = Math.min(targetRect.bottom, viewportHeight - VIEWPORT_MARGIN);\n      const anchorX = (visibleLeft + visibleRight) / 2;\n      const anchorY = (visibleTop + visibleBottom) / 2;\n      const roomOnRight = viewportWidth - targetRect.right;\n      const roomOnLeft = targetRect.left;\n      const roomBelow = viewportHeight - targetRect.bottom;\n      const roomAbove = targetRect.top;\n      const placements = [{\n        side: 'left',\n        room: roomOnRight,\n        top: anchorY - cardRect.height / 2,\n        left: targetRect.right + CALLOUT_GAP\n      }, {\n        side: 'right',\n        room: roomOnLeft,\n        top: anchorY - cardRect.height / 2,\n        left: targetRect.left - CALLOUT_GAP - cardRect.width\n      }, {\n        side: 'top',\n        room: roomBelow,\n        top: targetRect.bottom + CALLOUT_GAP,\n        left: anchorX - cardRect.width / 2\n      }, {\n        side: 'bottom',\n        room: roomAbove,\n        top: targetRect.top - CALLOUT_GAP - cardRect.height,\n        left: anchorX - cardRect.width / 2\n      }];\n      const placement = placements.slice().sort((first, second) => second.room - first.room)[0];\n      let top = clampCallout(placement.top, VIEWPORT_MARGIN, viewportHeight - cardRect.height - VIEWPORT_MARGIN);\n      let left = clampCallout(placement.left, VIEWPORT_MARGIN, viewportWidth - cardRect.width - VIEWPORT_MARGIN);\n      const separated = separateCalloutFromTarget({\n        top,\n        left,\n        cardWidth: cardRect.width,\n        cardHeight: cardRect.height,\n        targetRect,\n        viewportWidth,\n        viewportHeight\n      });\n      top = separated.top;\n      left = separated.left;\n      const isVerticalArrow = placement.side === 'left' || placement.side === 'right';\n      const arrowOffset = isVerticalArrow ? clampCallout(anchorY - top, 16, Math.max(16, cardRect.height - 16)) : clampCallout(anchorX - left, 16, Math.max(16, cardRect.width - 16));\n      card.style.top = `${top}px`;\n      card.style.left = `${left}px`;\n      card.style.setProperty('--guides-arrow-offset', `${arrowOffset}px`);\n      card.classList.add('guides-card--anchored');\n      R.forEach(side => {\n        card.classList.toggle(`guides-card--arrow-${side}`, side === placement.side);\n      })(ARROW_SIDES);\n    }\n\n    /**\n     * Remove the marker, the card position, and the click listener from the previous step.\n     */\n    removeHighlight() {\n      document.removeEventListener('click', this.continueAfterClick, true);\n      document.removeEventListener('scroll', this.placeCallout, true);\n      window.removeEventListener('resize', this.placeCallout);\n      this.highlightedElement = null;\n      if (this.ringElement) {\n        this.ringElement.hidden = true;\n        this.ringElement.classList.remove('guides-target-ring--click');\n      }\n      if (this.cardElement) {\n        this.cardElement.classList.remove('guides-card--anchored');\n        R.forEach(side => {\n          this.cardElement.classList.remove(`guides-card--arrow-${side}`);\n        })(ARROW_SIDES);\n      }\n    }\n\n    /**\n     * Continue the guide after the merchant clicks the highlighted element.\n     * Capture runs before the button's own click, and the click is not cancelled.\n     * @param {MouseEvent} event - click event\n     */\n    continueAfterClick(event) {\n      if (this.cardElement?.contains(event.target)) {\n        return;\n      }\n      if (!this.clickHitsTarget(event)) {\n        return;\n      }\n      if (this.guides.continueToNextStepTask.isRunning) {\n        return;\n      }\n      this.guides.continueToNextStepTask.perform();\n    }\n\n    /**\n     * Whether the click landed on the highlighted control, including its frame.\n     * The frame is drawn above the page, so the event target can be whatever sits under it.\n     * @param {MouseEvent} event - click event\n     * @return {boolean}\n     */\n    clickHitsTarget(event) {\n      const element = this.highlightedElement;\n      if (!element) {\n        return false;\n      }\n      if (element.contains(event.target)) {\n        return true;\n      }\n      const rect = element.getBoundingClientRect();\n      return event.clientX >= rect.left && event.clientX <= rect.right && event.clientY >= rect.top && event.clientY <= rect.bottom;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"guides\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"registerRing\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"registerRing\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"highlightCurrentStep\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"highlightCurrentStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"placeCallout\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"placeCallout\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeHighlight\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"removeHighlight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"continueAfterClick\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"continueAfterClick\"), _class.prototype), _class);\n  /**\n   * Keep a callout coordinate inside the viewport.\n   * @param {number} value - proposed top or left\n   * @param {number} min - minimum\n   * @param {number} max - maximum\n   * @return {number}\n   */\n  function clampCallout(value, min, max) {\n    if (max < min) {\n      return min;\n    }\n    return Math.min(Math.max(value, min), max);\n  }\n\n  /**\n   * Shift the card so it does not cover the control the merchant has to click.\n   * @param {Object} args\n   * @param {number} args.top - proposed card top\n   * @param {number} args.left - proposed card left\n   * @param {number} args.cardWidth - card width\n   * @param {number} args.cardHeight - card height\n   * @param {DOMRect} args.targetRect - highlighted control\n   * @param {number} args.viewportWidth - viewport width\n   * @param {number} args.viewportHeight - viewport height\n   * @return {Object} top and left that leave the control uncovered\n   */\n  function separateCalloutFromTarget(args) {\n    const {\n      cardWidth,\n      cardHeight,\n      targetRect,\n      viewportWidth,\n      viewportHeight\n    } = args;\n    let {\n      top,\n      left\n    } = args;\n    const cardRight = () => left + cardWidth;\n    const cardBottom = () => top + cardHeight;\n    const coversTarget = () => {\n      return left < targetRect.right && cardRight() > targetRect.left && top < targetRect.bottom && cardBottom() > targetRect.top;\n    };\n    if (coversTarget() && targetRect.left - CALLOUT_GAP - cardWidth >= VIEWPORT_MARGIN) {\n      left = targetRect.left - CALLOUT_GAP - cardWidth;\n    }\n    if (coversTarget() && targetRect.right + CALLOUT_GAP + cardWidth <= viewportWidth - VIEWPORT_MARGIN) {\n      left = targetRect.right + CALLOUT_GAP;\n    }\n    if (coversTarget() && targetRect.top - CALLOUT_GAP - cardHeight >= VIEWPORT_MARGIN) {\n      top = targetRect.top - CALLOUT_GAP - cardHeight;\n    }\n    left = clampCallout(left, VIEWPORT_MARGIN, viewportWidth - cardWidth - VIEWPORT_MARGIN);\n    top = clampCallout(top, VIEWPORT_MARGIN, viewportHeight - cardHeight - VIEWPORT_MARGIN);\n    return {\n      top,\n      left\n    };\n  }\n});","define(\"client/pods/components/guides/player/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"l3hGFa3k\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"guides\\\",\\\"playingGuide\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"guides-target-ring\\\"],[12,\\\"hidden\\\",\\\"\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"registerRing\\\"]]]],[8],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"guides-card\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"highlightCurrentStep\\\"]]]],[3,\\\"did-update\\\",[[23,0,[\\\"highlightCurrentStep\\\"]],[23,0,[\\\"guides\\\",\\\"currentStep\\\"]]]],[3,\\\"will-destroy\\\",[[23,0,[\\\"removeHighlight\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"guides-card__arrow\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"guides-card__title\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"guides\\\",\\\"isPreview\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"preview\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[1,[23,0,[\\\"guides\\\",\\\"playingGuide\\\",\\\"_data\\\",\\\"documentationId\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"guide step\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"sum\\\",[[23,0,[\\\"guides\\\",\\\"stepIndex\\\"]],1],null],false],[0,\\\" / \\\"],[1,[23,0,[\\\"guides\\\",\\\"playableSteps\\\",\\\"length\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-card__note\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"guides\\\",\\\"currentStep\\\",\\\"note\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"guides\\\",\\\"currentStep\\\",\\\"advanceOnClick\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"guides-card__continue\\\"],[8],[1,[28,\\\"tt\\\",[\\\"guide_click_to_continue\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-card__btns\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"eq\\\",[[23,0,[\\\"guides\\\",\\\"stepIndex\\\"]],0],null],\\\"previous step\\\",[23,0,[\\\"guides\\\",\\\"previousStep\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"skip\\\",[23,0,[\\\"guides\\\",\\\"skipGuide\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"guides\\\",\\\"isLastStep\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"is-primary\\\",\\\"done\\\",[23,0,[\\\"guides\\\",\\\"finishGuide\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"guides\\\",\\\"currentStep\\\",\\\"advanceOnClick\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"is-primary\\\",\\\"next step\\\",[23,0,[\\\"guides\\\",\\\"nextStep\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guides/player/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guides/setup-helper/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"client/utils/nventor\", \"client/config/environment\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, _nventor, _environment) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ADAPTER_NAME = 'documentation';\n  const RECHECK_INTERVAL_MS = 2000;\n  const SELECT_HOVER_CLASS_NAME = 'guides-select-hover';\n  const BLOCKED_SELECT_EVENT_TYPES = ['mousedown', 'focusin'];\n  let GuidesSetupHelperComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _class = class GuidesSetupHelperComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n\n      // the documentation search is paged (default 10); New Features in setup are expected to be far fewer than this count\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"guides\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"setupGuide\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isAddingStep\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isSelectingElement\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isSelectHintHidden\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isPanelDismissed\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedGuideId\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedParentGuideId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"note\", _descriptor10, this);\n      _initializerDefineProperty(this, \"continueWhenClicked\", _descriptor11, this);\n      _initializerDefineProperty(this, \"editingStepIndex\", _descriptor12, this);\n      _initializerDefineProperty(this, \"message\", _descriptor13, this);\n      _defineProperty(this, \"searchedResource\", null);\n      _defineProperty(this, \"searchedVersion\", null);\n      _defineProperty(this, \"hoveredElement\", null);\n      this.filters = this.search.setupFilters({\n        adapterName: 'documentation/filters',\n        defaultFiltersData: {\n          type: 'isNewFeature',\n          setup: true,\n          count: 100\n        }\n      });\n\n      // an endless loop would keep tests from settling\n      if (_environment.default.environment === 'test') {\n        return;\n      }\n      this.watchDocumentationResourceTask.perform();\n    }\n\n    /**\n     * Remove select mode listeners when the helper is removed.\n     */\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.stopSelectingElement();\n      this.clearClickSwallow();\n    }\n\n    /**\n     * Active top-level left tab, used by the note editor's file browser.\n     * @return {Object} tab model\n     */\n    get activeLeftTab() {\n      return this.tabsManager.getMasterTab('left');\n    }\n\n    /**\n     * Whether the panel is hidden while picking an element, playing a guide, or dismissed.\n     * Hidden with a class so the unsaved note is kept.\n     * @return {boolean}\n     */\n    get isPanelHidden() {\n      return this.isSelectingElement || Boolean(this.guides.playingGuide) || this.isPanelDismissed;\n    }\n\n    /**\n     * Whether the corner button that brings the dismissed panel back is showing.\n     * @return {boolean}\n     */\n    get isPanelRestoreVisible() {\n      if (!this.isPanelDismissed) return false;\n      if (this.isSelectingElement) return false;\n      if (this.guides.playingGuide) return false;\n      return true;\n    }\n\n    /**\n     * Search New Features in setup again whenever the visible documentation resource changes or a documentation is saved.\n     */\n    *watchDocumentationResourceTask() {\n      while (true) {\n        const documentationResource = this.guides.getVisibleDocumentationResource();\n        const setupSearchVersion = this.guides.setupSearchVersion;\n        const hasResourceChanged = documentationResource !== this.searchedResource;\n        const hasVersionChanged = setupSearchVersion !== this.searchedVersion;\n        if (hasResourceChanged || hasVersionChanged) {\n          this.searchedResource = documentationResource;\n          this.searchedVersion = setupSearchVersion;\n          try {\n            yield this.searchSetupGuideTask.perform(documentationResource);\n          } catch (error) {\n            // keep watching: forget the resource so the next check searches it again\n            _nventor.default.log(error);\n            this.searchedResource = null;\n          }\n        }\n        yield (0, _emberConcurrency.timeout)(RECHECK_INTERVAL_MS);\n      }\n    }\n\n    /**\n     * Load the newest New Feature in setup for the visible screen's documentation resource.\n     * The search returns the newest first (timestampZ descending).\n     * @param {string} documentationResource - resource the New Feature popup uses for this screen\n     */\n    *searchSetupGuideTask(documentationResource) {\n      if (!documentationResource) {\n        if (this.setupGuide) {\n          this.cancelAddStep();\n        }\n        this.setupGuide = null;\n        return;\n      }\n      this.filters.setData('documentationResource', documentationResource);\n      this.filters.setData('setup', true);\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: ADAPTER_NAME,\n        filters: this.filters\n      });\n      const setupGuide = R.pipe(R.filter(documentation => documentation?._data?.type === 'isNewFeature' && documentation?._data?.setup === true), R.filter(documentation => documentation?._data?.documentationResource === documentationResource), R.head)(results || []);\n      const isDifferentGuide = setupGuide?._data?._key !== this.setupGuide?._data?._key;\n      if (isDifferentGuide) {\n        this.cancelAddStep();\n        this.isPanelDismissed = false;\n      }\n      this.setupGuide = setupGuide || null;\n    }\n\n    /**\n     * Open the add step form.\n     */\n    startAddStep() {\n      this.openStepForm({\n        guideId: '',\n        parentGuideId: '',\n        note: '',\n        advanceOnClick: false\n      }, null);\n    }\n\n    /**\n     * Open the step form filled with a saved step.\n     * @param {number} index - index in draftSteps\n     */\n    editStep(index) {\n      const step = this.setupGuide?._data?.draftSteps?.[index];\n      if (!step) {\n        return;\n      }\n      this.openStepForm(step, index);\n    }\n\n    /**\n     * Show the step form. Remounts the note editor so an existing step's note loads.\n     * @param {Object} step - step to edit, or an empty step when adding\n     * @param {string} step.guideId - data-guide-id of the element\n     * @param {string} [step.parentGuideId] - ancestor data-guide-id\n     * @param {string} [step.note] - step note html\n     * @param {boolean} [step.advanceOnClick] - continue when the element is clicked\n     * @param {number|null} index - draftSteps index when editing, null when adding\n     */\n    openStepForm(step, index) {\n      this.isAddingStep = false;\n      this.editingStepIndex = index;\n      this.selectedGuideId = step.guideId || '';\n      this.selectedParentGuideId = step.parentGuideId || '';\n      this.note = step.note || '';\n      this.continueWhenClicked = Boolean(step.advanceOnClick);\n      this.message = '';\n      Ember.run.next(() => {\n        this.isAddingStep = true;\n      });\n    }\n\n    /**\n     * Close the add step form without saving.\n     */\n    cancelAddStep() {\n      this.stopSelectingElement();\n      this.isAddingStep = false;\n      this.editingStepIndex = null;\n      this.selectedGuideId = '';\n      this.selectedParentGuideId = '';\n      this.note = '';\n      this.continueWhenClicked = false;\n      this.message = '';\n    }\n\n    /**\n     * Guide id shown in the select field, with the parent when the element sits inside one.\n     * @return {string}\n     */\n    get selectedGuideLabel() {\n      if (!this.selectedGuideId) {\n        return '';\n      }\n      if (!this.selectedParentGuideId) {\n        return this.selectedGuideId;\n      }\n      return `${this.selectedParentGuideId} / ${this.selectedGuideId}`;\n    }\n\n    /**\n     * Remember whether this step continues when its element is clicked.\n     * @param {boolean} isOn - toggle state\n     */\n    setContinueWhenClicked(isOn) {\n      this.continueWhenClicked = isOn;\n    }\n\n    /**\n     * Hide the helper without ending setup.\n     */\n    hidePanel() {\n      this.isPanelDismissed = true;\n    }\n\n    /**\n     * Show the helper after it was hidden.\n     */\n    showPanel() {\n      this.isPanelDismissed = false;\n    }\n\n    /**\n     * Play the saved draft steps without marking anything read.\n     */\n    previewDraftSteps() {\n      this.guides.startGuide({\n        guide: this.setupGuide,\n        steps: this.setupGuide?._data?.draftSteps,\n        isPreview: true\n      });\n    }\n\n    /**\n     * Enter select mode: the next press picks an element instead of using it.\n     * pointerdown is the pick. A canceled pointerdown never produces a click on a button or tab.\n     */\n    startSelectingElement() {\n      this.message = '';\n      this.isSelectHintHidden = false;\n      this.isSelectingElement = true;\n      document.addEventListener('mouseover', this.highlightHoveredRow, true);\n      document.addEventListener('pointerdown', this.selectFromPointerDown, true);\n      document.addEventListener('keydown', this.cancelSelectingOnEscape, true);\n      R.forEach(eventType => {\n        document.addEventListener(eventType, this.blockPageEvent, true);\n      })(BLOCKED_SELECT_EVENT_TYPES);\n    }\n\n    /**\n     * Leave select mode and remove its listeners and hover outline.\n     */\n    /**\n     * Hide the select hint without leaving select mode, so the element under it can be clicked.\n     */\n    hideSelectHint() {\n      this.isSelectHintHidden = true;\n    }\n    stopSelectingElement() {\n      this.isSelectingElement = false;\n      this.isSelectHintHidden = false;\n      this.removeHoverOutline();\n      document.removeEventListener('mouseover', this.highlightHoveredRow, true);\n      document.removeEventListener('pointerdown', this.selectFromPointerDown, true);\n      document.removeEventListener('keydown', this.cancelSelectingOnEscape, true);\n      R.forEach(eventType => {\n        document.removeEventListener(eventType, this.blockPageEvent, true);\n      })(BLOCKED_SELECT_EVENT_TYPES);\n    }\n\n    /**\n     * Keep a page event from reaching the page while selecting.\n     * @param {Event} event - page event\n     */\n    blockPageEvent(event) {\n      event.preventDefault();\n      event.stopPropagation();\n    }\n\n    /**\n     * Outline the visible row under the pointer.\n     * @param {MouseEvent} event - mouseover event\n     */\n    highlightHoveredRow(event) {\n      this.removeHoverOutline();\n      const hoveredRow = event.target?.closest?.('[data-guide-id]');\n      if (!this.guides.isElementVisible(hoveredRow)) {\n        return;\n      }\n      hoveredRow.classList.add(SELECT_HOVER_CLASS_NAME);\n      this.hoveredElement = hoveredRow;\n    }\n\n    /**\n     * Remove the outline from the last hovered row.\n     */\n    removeHoverOutline() {\n      this.hoveredElement?.classList.remove(SELECT_HOVER_CLASS_NAME);\n      this.hoveredElement = null;\n    }\n\n    /**\n     * Pick the guide id under the pointer and leave select mode.\n     * The click that follows is swallowed so the header or tab is not activated.\n     * @param {PointerEvent} event - pointerdown event\n     */\n    selectFromPointerDown(event) {\n      if (event.target?.closest?.('.guides-select-hint')) {\n        this.blockPageEvent(event);\n        this.hideSelectHint();\n        this.armClickSwallow();\n        return;\n      }\n      this.blockPageEvent(event);\n      const guideTarget = this.guides.findGuideTarget(event.target);\n      this.stopSelectingElement();\n      this.armClickSwallow();\n      this.applyGuideTarget(guideTarget);\n    }\n\n    /**\n     * Store the picked guide id, or say the element has none.\n     * @param {Object} guideTarget - ids from findGuideTarget\n     */\n    applyGuideTarget(guideTarget) {\n      if (!guideTarget?.guideId) {\n        this.message = 'guide_select_element_no_id';\n        return;\n      }\n      this.selectedGuideId = guideTarget.guideId;\n      this.selectedParentGuideId = guideTarget.parentGuideId;\n    }\n\n    /**\n     * Drop the click that follows a pick, so a button or tab does not run.\n     */\n    armClickSwallow() {\n      this.clearClickSwallow();\n      this.swallowFollowingClick = event => {\n        event.preventDefault();\n        event.stopPropagation();\n        this.clearClickSwallow();\n      };\n      document.addEventListener('click', this.swallowFollowingClick, true);\n      this.swallowFollowingClickTimer = setTimeout(() => {\n        this.clearClickSwallow();\n      }, 400);\n    }\n\n    /**\n     * Remove the one-shot click swallow.\n     */\n    clearClickSwallow() {\n      if (this.swallowFollowingClick) {\n        document.removeEventListener('click', this.swallowFollowingClick, true);\n        this.swallowFollowingClick = null;\n      }\n      if (this.swallowFollowingClickTimer) {\n        clearTimeout(this.swallowFollowingClickTimer);\n        this.swallowFollowingClickTimer = null;\n      }\n    }\n\n    /**\n     * Leave select mode when Esc is pressed.\n     * @param {KeyboardEvent} event - keydown event\n     */\n    cancelSelectingOnEscape(event) {\n      if (event.key !== 'Escape') {\n        return;\n      }\n      this.blockPageEvent(event);\n      this.stopSelectingElement();\n    }\n\n    /**\n     * Append the new step to the New Feature's draft steps and save it.\n     */\n    *saveStepTask() {\n      const guide = this.setupGuide;\n      if (!guide || !this.selectedGuideId) {\n        return;\n      }\n      const newStep = {\n        guideId: this.selectedGuideId,\n        parentGuideId: this.selectedParentGuideId,\n        note: this.note,\n        advanceOnClick: this.continueWhenClicked\n      };\n      const currentSteps = guide._data.draftSteps || [];\n      const draftSteps = this.editingStepIndex === null ? R.append(newStep)(currentSteps) : R.update(this.editingStepIndex, newStep, currentSteps);\n      yield this.saveGuideTask.perform(guide, {\n        draftSteps\n      });\n      this.cancelAddStep();\n    }\n\n    /**\n     * Remove a draft step and save the guide.\n     * @param {number} index - index in draftSteps\n     */\n    removeStep(index) {\n      this.removeStepTask.perform(index);\n    }\n\n    /**\n     * Remove a draft step and save the guide.\n     * @param {number} index - index in draftSteps\n     */\n    *removeStepTask(index) {\n      const guide = this.setupGuide;\n      if (!guide) {\n        return;\n      }\n      if (this.editingStepIndex === index) {\n        this.cancelAddStep();\n      }\n      const draftSteps = R.remove(index, 1, guide._data.draftSteps || []);\n      yield this.saveGuideTask.perform(guide, {\n        draftSteps\n      });\n    }\n\n    /**\n     * Publish the guide. Merchants can see the New Feature, and the helper stops showing it.\n     */\n    *endSetupTask() {\n      const guide = this.setupGuide;\n      if (!guide) {\n        return;\n      }\n      yield this.saveGuideTask.perform(guide, {\n        setup: false\n      });\n      this.cancelAddStep();\n      this.setupGuide = null;\n      this.guides.bumpSetupSearchVersion();\n    }\n\n    /**\n     * Save draft steps and, when setup is turned off, publish them.\n     * @param {Object} guide - New Feature documentation model\n     * @param {Object} changes - fields to write\n     * @param {Object[]} [changes.draftSteps] - replacement draft steps\n     * @param {boolean} [changes.setup] - false publishes the guide\n     */\n    *saveGuideTask(guide, changes) {\n      const dirty = this.crud.setupDirty({\n        adapterName: ADAPTER_NAME,\n        model: guide\n      });\n      if (changes.draftSteps) {\n        dirty.setData('draftSteps', changes.draftSteps);\n      }\n      if (changes.setup === false) {\n        dirty.setData('setup', false);\n      }\n      yield this.crud.queueUpdateRecordTask.perform({\n        adapterName: ADAPTER_NAME,\n        model: dirty\n      });\n      if (changes.draftSteps) {\n        guide.setData('draftSteps', changes.draftSteps);\n      }\n      if (changes.setup === false) {\n        guide.setData('setup', false);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"guides\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"setupGuide\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isAddingStep\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isSelectingElement\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isSelectHintHidden\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isPanelDismissed\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedGuideId\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"selectedParentGuideId\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"note\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"continueWhenClicked\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"editingStepIndex\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"message\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"watchDocumentationResourceTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"watchDocumentationResourceTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchSetupGuideTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchSetupGuideTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startAddStep\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"startAddStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editStep\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"editStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelAddStep\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelAddStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setContinueWhenClicked\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"setContinueWhenClicked\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hidePanel\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"hidePanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showPanel\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"showPanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previewDraftSteps\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"previewDraftSteps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startSelectingElement\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"startSelectingElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hideSelectHint\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"hideSelectHint\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopSelectingElement\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"stopSelectingElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"blockPageEvent\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"blockPageEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"highlightHoveredRow\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"highlightHoveredRow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectFromPointerDown\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"selectFromPointerDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelSelectingOnEscape\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelSelectingOnEscape\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveStepTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveStepTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeStep\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"removeStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeStepTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeStepTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"endSetupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"endSetupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveGuideTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveGuideTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/guides/setup-helper/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/NzwR5hs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"draftStep\\\",\\\"index\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"setupGuide\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isSelectingElement\\\"]],[28,\\\"not\\\",[[23,0,[\\\"isSelectHintHidden\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-select-hint\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"guide_select_element_hint\\\"],null],false],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye-slash\\\",\\\"hide\\\",[23,0,[\\\"hideSelectHint\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isPanelRestoreVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-panel-restore\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",\\\"guide setup\\\",[23,0,[\\\"showPanel\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"guides-panel \\\",[28,\\\"if\\\",[[23,0,[\\\"isPanelHidden\\\"]],\\\"u-hidden\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-panel__heading\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"guides-panel__title\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"guide setup\\\"],null],false],[0,\\\": \\\"],[1,[23,0,[\\\"setupGuide\\\",\\\"_data\\\",\\\"documentationId\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye-slash\\\",\\\"hide\\\",[23,0,[\\\"hidePanel\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[1,[28,\\\"tt\\\",[[23,0,[\\\"message\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-panel__steps\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"setupGuide\\\",\\\"_data\\\",\\\"draftSteps\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"guides/step\\\",[],[[\\\"@stepNumber\\\",\\\"@parentGuideId\\\",\\\"@guideId\\\",\\\"@advanceOnClick\\\",\\\"@note\\\"],[[28,\\\"sum\\\",[[23,2,[]],1],null],[23,1,[\\\"parentGuideId\\\"]],[23,1,[\\\"guideId\\\"]],[23,1,[\\\"advanceOnClick\\\"]],[23,1,[\\\"note\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-pen\\\",\\\"edit\\\",[28,\\\"fn\\\",[[23,0,[\\\"editStep\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-trash\\\",\\\"remove\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeStep\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isAddingStep\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"select element\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-panel__btns\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"selectedGuideLabel\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-crosshairs\\\",\\\"select element\\\",[23,0,[\\\"startSelectingElement\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@description\\\"],[\\\"continue when clicked\\\",\\\"continue_when_clicked_description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@onToggle\\\",\\\"@toggleValue\\\"],[[23,0,[\\\"setContinueWhenClicked\\\"]],[23,0,[\\\"continueWhenClicked\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"note\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@tab\\\",\\\"@options\\\"],[[23,0,[\\\"note\\\"]],true,\\\"documentation\\\",\\\"documentation\\\",[23,0,[\\\"activeLeftTab\\\"]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,0,[\\\"cancelAddStep\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"not\\\",[[23,0,[\\\"selectedGuideId\\\"]]],null],[23,0,[\\\"saveStepTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"saveStepTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-panel__btns\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add step\\\",[23,0,[\\\"startAddStep\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"not\\\",[[23,0,[\\\"setupGuide\\\",\\\"_data\\\",\\\"draftSteps\\\",\\\"length\\\"]]],null],\\\"fas fa-play\\\",\\\"preview\\\",[23,0,[\\\"previewDraftSteps\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"is-primary\\\",\\\"fas fa-check\\\",[23,0,[\\\"endSetupTask\\\",\\\"isRunning\\\"]],\\\"end setup\\\",[28,\\\"perform\\\",[[23,0,[\\\"endSetupTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guides/setup-helper/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/guides/step/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * One guide step row: numbered id, optional meta lines, note, and optional actions.\n   */\n  class GuidesStepComponent extends _component.default {\n    /**\n     * Id shown after the step number (parent when set, otherwise the target).\n     * @returns {string}\n     */\n    get primaryGuideId() {\n      return this.args.parentGuideId || this.args.guideId || '';\n    }\n\n    /**\n     * Target id when nested under a different parent guide id.\n     * @returns {string}\n     */\n    get secondaryGuideId() {\n      const parentGuideId = this.args.parentGuideId;\n      const guideId = this.args.guideId;\n      if (!parentGuideId || !guideId || parentGuideId === guideId) {\n        return '';\n      }\n      return guideId;\n    }\n\n    /**\n     * Whether secondary id or continue-when-clicked should render under the title.\n     * @returns {boolean}\n     */\n    get hasMeta() {\n      return Boolean(this.secondaryGuideId || this.args.advanceOnClick);\n    }\n  }\n  _exports.default = GuidesStepComponent;\n});","define(\"client/pods/components/guides/step/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D7lxyKQt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@note\\\",\\\"&default\\\",\\\"@advanceOnClick\\\",\\\"&attrs\\\",\\\"@stepNumber\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"guides-step\\\"],[13,4],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-step__heading\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-step__info\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-step__title u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,5,[]],false],[0,\\\". \\\"],[1,[23,0,[\\\"primaryGuideId\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasMeta\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-step__meta\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"secondaryGuideId\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-step__meta-line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,0,[\\\"secondaryGuideId\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-step__meta-line u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"continue when clicked\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-step__actions\\\"],[8],[0,\\\"\\\\n        \\\"],[14,2],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"guides-step__note\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"html-safe\\\",[[23,1,[]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/guides/step/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/content-display/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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 HelpersContentDisplay = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _class = class HelpersContentDisplay extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"className\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasWrapper\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"className\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.isNilOrEmpty(this.args.className) ? '' : this.args.className;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasWrapper\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.isNilOrEmpty(this.args.hasWrapper) ? true : this.args.hasWrapper;\n    }\n  }), _class);\n});","define(\"client/pods/components/helpers/content-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0ipBAO34\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@className\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"has-block\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasWrapper\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"content-display \\\",[23,2,[]]]]],[8],[0,\\\"\\\\n    \\\"],[1,[23,1,[]],true],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[1,[23,1,[]],true],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/content-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/creator-info/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    tagName: 'span',\n    classNames: ['u-desc', 'u-desc--mini', 'u-desc--italics', 'u-padding--3'],\n    iconOnly: false,\n    popupIsVisible: false,\n    showPopup: false,\n    sortedModified: Ember.computed('model._data.modified.[]', function () {\n      let modified = this.get('model._data.modified') || [];\n      if (!Ember.isArray(modified)) {\n        modified = [modified];\n      }\n      return modified.sortBy('md');\n    }),\n    isDropdownVisible: Ember.computed('showDropdown', 'iconOnly', 'sortedModified.[]', function () {\n      if (this.iconOnly && this.showDropdown) {\n        return true;\n      }\n      if (this.sortedModified.length > 0 && this.showDropdown) {\n        return true;\n      }\n      return false;\n    }),\n    togglePopup() {\n      this.set('showDropdown', true);\n    },\n    onToggleModalDialog() {\n      this.set('showDropdown', false);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"togglePopup\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"togglePopup\"), _obj), _applyDecoratedDescriptor(_obj, \"onToggleModalDialog\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"onToggleModalDialog\"), _obj), _obj));\n});","define(\"client/pods/components/helpers/creator-info/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TAcJS0ay\",\n    \"block\": \"{\\\"symbols\\\":[\\\"modifier\\\",\\\"@model\\\",\\\"@prefix\\\",\\\"@isBtn\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"info-popup__container\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"togglePopup\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"iconOnly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-user-circle\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-user-circle\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"creator\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"concat\\\",[[23,3,[]],\\\": \\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-black\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"concat\\\",[\\\"@\\\",[28,\\\"dateTime\\\",[[23,2,[\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"sortedModified\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-user-circle\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isDropdownVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@modalContentClassNames\\\",\\\"@onToggleModalDialog\\\"],[\\\"is-creator-info\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"iconOnly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"creator\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-block u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[[23,3,[]],\\\": \\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-info\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,2,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[\\\"@\\\",[28,\\\"dateTime\\\",[[23,2,[\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"sortedModified\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-block u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"updated\\\"],null],\\\": \\\",[23,1,[\\\"username\\\"]],[28,\\\"if\\\",[[23,1,[\\\"md\\\"]],[28,\\\"concat\\\",[\\\"@\\\",[28,\\\"dateTime\\\",[[23,1,[\\\"md\\\"]]],null]],null]],null]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/creator-info/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/data-updated/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 HelpersDataUpdated = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _class = class HelpersDataUpdated extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n      _initializerDefineProperty(this, \"label\", _descriptor, this);\n      _initializerDefineProperty(this, \"icon\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.label || 'data was updated';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"icon\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.icon || 'fas fa-sync-alt';\n    }\n  }), _class);\n});","define(\"client/pods/components/helpers/data-updated/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0eoXbLwy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onSubmit\\\",\\\"@translate\\\",\\\"@badge\\\",\\\"@hasBadge\\\",\\\"@isRunning\\\",\\\"@wasUpdated\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"isRunning\\\",\\\"hasBadge\\\",\\\"badge\\\",\\\"translate\\\",\\\"onSubmit\\\"],[[23,0,[\\\"label\\\"]],[23,0,[\\\"icon\\\"]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/data-updated/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/divider-h/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['divider-h'],\n    classNameBindings: ['hasBorder::divider-h--no-border'],\n    hasBorder: true\n  });\n});","define(\"client/pods/components/helpers/divider-h/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0aCnpMzt\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/divider-h/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/divider-v/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['divider-h'],\n    classNameBindings: ['hasBorder::divider-h--no-border'],\n    hasBorder: true\n  });\n});","define(\"client/pods/components/helpers/divider-v/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7az5/etQ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/divider-v/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/drag-and-drop/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, _ramdaAdjunct) {\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; // this is the NEW way.\n  // helpers/DragContainer and hlepers/DropContainer should be deprecated\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 HelpersDragAndDrop = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _class = class HelpersDragAndDrop extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/helpers/drag-and-drop/drag-container/component\", [\"exports\", \"client/mixins/draggable\"], function (_exports, _draggable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // this is the NEW way.\n  // helpers/DragContainer and hlepers/DropContainer should be deprecated\n  var _default = _exports.default = Ember.Component.extend(_draggable.default, {\n    tagName: 'span',\n    classNames: ['drag-container']\n  });\n});","define(\"client/pods/components/helpers/drag-and-drop/drag-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lYNG/Da2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@hasGrip\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\",\\\"hoverIcon\\\"],[\\\"draggable__grip-icon-container\\\",\\\"fa-solid fa-grip-vertical\\\",\\\"fas fa-arrows-alt\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"draggable\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"hoverIcon\\\"],[\\\"fa-solid fa-grip-vertical\\\",\\\"fas fa-arrows-alt\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/drag-and-drop/drag-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/drag-and-drop/drop-container/component\", [\"exports\", \"client/mixins/droppable\"], function (_exports, _droppable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // this is the NEW way.\n  // helpers/DragContainer and hlepers/DropContainer should be deprecated\n  var _default = _exports.default = Ember.Component.extend(_droppable.default, {\n    tag: 'div',\n    classNames: ['drop-container'],\n    classNameBindings: ['dragPosition', 'isActive:is-active']\n  });\n});","define(\"client/pods/components/helpers/drag-and-drop/drop-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OYpkHYJD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/drag-and-drop/drop-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/drag-and-drop/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"M/h8Zk1j\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/drag-and-drop/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/drag-container/component\", [\"exports\", \"client/mixins/draggable\"], function (_exports, _draggable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // this is DEPRECATED.\n  // use the new way\n  // helpers/dragAndDrop/DragContainer and helpers/dragAndDrop//DropContainer should be deprecated\n  // @deprecated\n  var _default = _exports.default = Ember.Component.extend(_draggable.default, {\n    tagName: 'span',\n    classNameBindings: ['isDraggable:drag-container']\n  });\n});","define(\"client/pods/components/helpers/drag-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"V2afudtb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@hideGripIcon\\\",\\\"@gripClassNames\\\",\\\"&default\\\",\\\"@hasGrip\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,3]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,3],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[[29,[\\\"draggable__grip-icon-container \\\",[23,2,[]],\\\" \\\",[28,\\\"if\\\",[[23,1,[]],\\\"\\\",\\\"u-hidden-placeholder\\\"],null]]],\\\"fa-solid fa-grip-vertical\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"draggable\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"hoverIcon\\\"],[\\\"fa-solid fa-grip-vertical\\\",\\\"fas fa-arrows-alt\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/drag-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/drop-container/component\", [\"exports\", \"client/mixins/droppable\"], function (_exports, _droppable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // this is DEPRECATED.\n  // use the new way\n  // helpers/dragAndDrop/DragContainer and helpers/dragAndDrop//DropContainer should be deprecated\n  // @deprecated\n  var _default = _exports.default = Ember.Component.extend(_droppable.default, {\n    tag: 'div',\n    classNames: ['drop-container'],\n    classNameBindings: ['dragPosition', 'isActive:is-active']\n  });\n});","define(\"client/pods/components/helpers/drop-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8G/kFpgv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@dropContainerPlaceholderClass\\\",\\\"@hasDropContainerPlaceholders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drop-container-placeholder-container flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drop-container-placeholder drop-container-placeholder__left\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drop-container-placeholder__left-inner\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"drop-container-placeholder__center \\\",[23,2,[]]]]],[8],[0,\\\"\\\\n      \\\"],[14,1],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drop-container-placeholder drop-container-placeholder__right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drop-container-placeholder__right-inner\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/drop-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/force-reloading/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class HelpersForceReloading extends _component.default {}\n  _exports.default = HelpersForceReloading;\n});","define(\"client/pods/components/helpers/force-reloading/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rHnMqJbZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@isForceReloading\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/force-reloading/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/header-sort/component\", [\"exports\", \"client/utils/nventor\", \"ramda\"], function (_exports, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['header-sort'],\n    classNameBindings: ['isMain:is-main', '_hasHeadersSort::inactive'],\n    _hasHeadersSort: Ember.computed('hasHeadersSort', 'filters', function () {\n      if (!this.hasHeadersSort) {\n        return false;\n      }\n      if (_nventor.default.isNilOrEmpty(this.filters)) {\n        return false;\n      }\n      return true;\n    }),\n    sort: Ember.computed('filters._data.sort.[]', function () {\n      return this.get('filters._data.sort') || [];\n    }),\n    direction: Ember.computed('sort.@each.{by,direction}', function () {\n      const sortByObject = this.getSortByObject();\n      const direction = R.pathOr('', ['direction'], sortByObject);\n      return direction;\n    }),\n    getSortByObject() {\n      const sort = this.sort || [];\n      let by = this.by;\n      if (R.is(Array, by)) {\n        by = by[0];\n      }\n      const found = R.find(R.pathEq(['by'], by))(sort);\n      if (found) {\n        return found;\n      }\n      return '';\n    },\n    isMain: Ember.computed('by', 'sort.@each.by', function () {\n      const sort = this.sort || [];\n      let by = this.by;\n      if (R.is(Array, by)) {\n        by = by[0];\n      }\n      const index = R.findIndex(R.pathEq(['by'], by))(sort);\n      if (index === 0) {\n        return true;\n      }\n      return false;\n    }),\n    click(e) {\n      if (this._hasHeadersSort) {\n        const by = this.by;\n        const hasShiftKey = e.shiftKey || e.ctrlKey || e.metaKey;\n        const previousDirection = this.direction;\n        let direction;\n        if (!previousDirection) {\n          direction = 'ASC';\n        } else if (previousDirection === 'ASC') {\n          direction = 'DESC';\n        } else if (previousDirection === 'DESC') {\n          direction = '';\n        }\n        let params = by;\n        if (!R.is(Array, by)) {\n          params = [by];\n        }\n        const toNumber = this.toNumber;\n        const paramPrefix = this.paramPrefix;\n        const keepParamPrefix = this.keepParamPrefix;\n        const filters = this.filters;\n        R.forEach(param => {\n          if (hasShiftKey) {\n            filters.addSortNoModel(param, direction, {\n              toNumber,\n              paramPrefix,\n              keepParamPrefix\n            });\n          } else {\n            filters.replaceSortNoModel(param, direction, {\n              toNumber,\n              paramPrefix,\n              keepParamPrefix\n            });\n          }\n        })(params);\n        if (filters.getData('rememberMe')) {\n          this.search.setToStorage(filters);\n        }\n        const onSort = this.onSort;\n        return onSort(filters);\n      }\n    }\n  });\n});","define(\"client/pods/components/helpers/header-sort/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OgQbeZqg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"direction\\\"]],\\\"ASC\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-caret-up\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"direction\\\"]],\\\"DESC\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-caret-down\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/header-sort/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/iframe-wrapper/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class;\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  let IframeWrapperComponent = _exports.default = (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _class = class IframeWrapperComponent extends _component.default {\n    setupIframe(element) {\n      const html = element.querySelector('.iframe-wrapper__hidden-content').innerHTML;\n      const iframe = element.querySelector('.iframe-wrapper__iframe');\n      iframe.srcdoc = html;\n      iframe.onload = () => {\n        const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;\n        this.loadAllCSSFromHead(iframeDoc);\n\n        // Append css urls\n        R.pipe(R.pathOr([], ['args', 'cssUrls']), R.forEach(url => {\n          const linkElement = iframeDoc.createElement('link');\n          linkElement.type = 'text/css';\n          linkElement.rel = 'stylesheet';\n          linkElement.href = url;\n          iframeDoc.head.appendChild(linkElement);\n        }))(this);\n        // Append js urls\n        R.pipe(R.pathOr([], ['args', 'jsUrls']), R.forEach(url => {\n          const scriptElement = iframeDoc.createElement('script');\n          scriptElement.src = url;\n          iframeDoc.head.appendChild(scriptElement);\n        }))(this);\n\n        // Get all images in the iframe\n        const images = iframeDoc.getElementsByTagName('img');\n        const imagePromises = Array.from(images).map(img => {\n          if (img.complete) {\n            return Promise.resolve();\n          }\n          return new Promise(resolve => {\n            img.onload = resolve;\n            img.onerror = resolve; // Handle error case as well\n          });\n        });\n\n        // Wait for all images to load before setting height\n        Promise.all(imagePromises).then(() => {\n          iframe.height = iframeDoc.body.scrollHeight;\n        });\n      };\n    }\n    _getAllCSSFromStyleSheets() {\n      const cssArray = [];\n      // Loop through all stylesheets in the document\n      for (const sheet of document.styleSheets) {\n        try {\n          // Get rules from each stylesheet\n          const rules = sheet.cssRules || sheet.rules; // cssRules for modern browsers, rules for older ones\n          if (rules) {\n            for (const rule of rules) {\n              cssArray.push(rule.cssText);\n            }\n          }\n        } catch (e) {\n          console.warn('Cannot access stylesheet:', sheet.href, e);\n          // This happens for cross-origin stylesheets\n          // We can still try to get the original <link> or <style> content\n          if (sheet.ownerNode) {\n            if (sheet.ownerNode.tagName === 'STYLE') {\n              cssArray.push(sheet.ownerNode.textContent);\n            }\n          }\n        }\n      }\n      return cssArray.join('\\n');\n    }\n    loadAllCSSFromHead(iframeDoc) {\n      const allCSS = this._getAllCSSFromStyleSheets();\n\n      // copy from document.stylesheets\n      const styleElement = iframeDoc.createElement('style');\n      styleElement.textContent = allCSS;\n      iframeDoc.head.appendChild(styleElement);\n\n      // copy from link[rel=\"stylesheet\"]\n      const head = document.head;\n      const linkTags = head.querySelectorAll('link[rel=\"stylesheet\"]') || [];\n      linkTags.forEach(link => {\n        const newLink = document.createElement('link');\n        newLink.rel = 'stylesheet';\n        newLink.type = 'text/css';\n        newLink.href = link.href;\n        // newLink.onload = () => {\n        //   console.log(`loaded: ${link.href}`)\n        // }\n        // newLink.onerror = () => {\n        //   console.error(`error loaded: ${link.href}`)\n        // }\n        iframeDoc.head.appendChild(newLink);\n      });\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"setupIframe\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"setupIframe\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getAllCSSFromStyleSheets\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"_getAllCSSFromStyleSheets\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadAllCSSFromHead\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"loadAllCSSFromHead\"), _class.prototype), _class);\n});","define(\"client/pods/components/helpers/iframe-wrapper/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rKSV7ufV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"&attrs\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"iframe-wrapper__container\\\"],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupIframe\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"iframe-wrapper__hidden-content\\\"],[8],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"iframe\\\",false],[12,\\\"class\\\",\\\"iframe-wrapper__iframe\\\"],[12,\\\"sandbox\\\",\\\"allow-same-origin allow-scripts allow-modals\\\"],[13,2],[8],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/iframe-wrapper/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/info-popup-content/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: '',\n    hasContent: true,\n    isViewable: false,\n    closeOnOverlayClick: true,\n    hasModalOverlay: true,\n    autoPosition: true,\n    onToggleModalDialog() {\n      const hasModalOverlay = this?.hasModalOverlay || false;\n      if (hasModalOverlay) {\n        Ember.set(this, 'isViewable', false);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onToggleModalDialog\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onToggleModalDialog\"), _obj), _obj));\n});","define(\"client/pods/components/helpers/info-popup-content/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mAyt19JN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@debug\\\",\\\"@modalPos\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isViewable\\\"]],[24,[\\\"hasContent\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@debug\\\",\\\"@modalPos\\\",\\\"@closeOnOverlayClick\\\",\\\"@hasModalOverlay\\\",\\\"@hasCustomBlock\\\",\\\"@modelContainerClassNames\\\",\\\"@onToggleModalDialog\\\"],[[23,1,[]],[23,2,[]],true,[22,\\\"hasModalOverlay\\\"],[22,\\\"hasCustomModalBlock\\\"],\\\"info-popup-content\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[14,3],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/info-popup-content/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/info-popup/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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, _dec0, _dec1, _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  /**\n   * When to use: when the label and content are together.\n   */\n  let HelpersInfoPopup = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class HelpersInfoPopup extends _component.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"tagName\", '');\n      _initializerDefineProperty(this, \"clickToView\", _descriptor, this);\n      // clickToClose = false\n      _initializerDefineProperty(this, \"translate\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasContent\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isTooltipVisible\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasModalOverlay\", _descriptor5, this);\n      _initializerDefineProperty(this, \"mouseLeft\", _descriptor6, this);\n      _initializerDefineProperty(this, \"hasInfoTooltip\", _descriptor7, this);\n      if (this.args.translate == null) {\n        this.translate = true;\n      } else {\n        this.translate = this.args.translate;\n      }\n      if (this.args.clickToView == null) {\n        this.clickToView = true;\n      } else {\n        this.clickToView = this.args.clickToView;\n      }\n      if (this.args.hasContent == null) {\n        this.hasContent = true;\n      } else {\n        this.hasContent = this.args.hasContent;\n      }\n      if (this.args.hasModalOverlay == null) {\n        this.hasModalOverlay = true;\n      } else {\n        this.hasModalOverlay = this.args.hasModalOverlay;\n      }\n      if (!this.clickToView) {\n        this.hasModalOverlay = false;\n      }\n    }\n    handleMouseEnter(e) {\n      if (!this.clickToView) {\n        this.isTooltipVisible = true;\n        this.mouseLeft = false;\n      }\n    }\n    handleMouseLeave(e) {\n      if (!this.clickToView) {\n        this.mouseLeft = true;\n        window.setTimeout(() => {\n          if (this.mouseLeft) {\n            this.isTooltipVisible = false;\n          }\n        }, 100);\n      }\n    }\n    toggleIsVisible(e) {\n      if (this.clickToView) {\n        if (!this.isTooltipVisible) {\n          this.isTooltipVisible = true;\n        }\n      }\n    }\n    toggleClickToView() {\n      this.clickToView = !this.clickToView;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"clickToView\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R.pathOr(true, ['args', 'translate'])(this);\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasContent\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isTooltipVisible\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.isAlwaysVisible || false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasModalOverlay\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"mouseLeft\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"hasInfoTooltip\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R.pathOr(true, ['args', 'hasInfoTooltip'])(this);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleMouseEnter\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseLeave\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsVisible\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsVisible\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleClickToView\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleClickToView\"), _class.prototype), _class);\n});","define(\"client/pods/components/helpers/info-popup/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aE9GiCKz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@msg\\\",\\\"@isTabLink\\\",\\\"@modalPos\\\",\\\"@label\\\",\\\"&attrs\\\",\\\"@customBlock\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasInfoTooltip\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"info-popup-container\\\"],[13,6],[3,\\\"on\\\",[\\\"click\\\",[24,[\\\"toggleIsVisible\\\"]]]],[3,\\\"on\\\",[\\\"mouseenter\\\",[23,0,[\\\"handleMouseEnter\\\"]]]],[3,\\\"on\\\",[\\\"mouseleave\\\",[23,0,[\\\"handleMouseLeave\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,1,[[23,0,[\\\"isTooltipVisible\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleClickToView\\\"]]],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[23,5,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"isTooltipVisible\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/info-popup-content\\\",null,[[\\\"modalPos\\\",\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\",\\\"isTabLink\\\"],[[23,4,[]],true,[23,0,[\\\"hasModalOverlay\\\"]],[23,0,[\\\"isTooltipVisible\\\"]],[23,0,[\\\"hasContent\\\"]],[23,3,[]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[14,1,[[28,\\\"fn\\\",[[23,0,[\\\"isTooltipVisible\\\"]],[23,0,[\\\"toggleClickToView\\\"]]],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,2,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1,[[23,0,[\\\"isTooltipVisible\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleClickToView\\\"]]],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/info-popup/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/info-tooltip-content/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: '',\n    hasContent: true,\n    isViewable: false,\n    closeOnOverlayClick: true,\n    hasModalOverlay: true,\n    autoPosition: true,\n    onToggleModalDialog() {\n      const hasModalOverlay = this?.hasModalOverlay || false;\n      if (hasModalOverlay) {\n        Ember.set(this, 'isViewable', false);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onToggleModalDialog\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onToggleModalDialog\"), _obj), _obj));\n});","define(\"client/pods/components/helpers/info-tooltip-content/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FqlLRXlD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@debug\\\",\\\"@modalPos\\\",\\\"@modelContainerClassNames\\\",\\\"@isTabLink\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isViewable\\\"]],[24,[\\\"hasContent\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@debug\\\",\\\"@modalPos\\\",\\\"@closeOnOverlayClick\\\",\\\"@hasModalOverlay\\\",\\\"@hasCustomBlock\\\",\\\"@modelContainerClassNames\\\",\\\"@onToggleModalDialog\\\"],[[23,1,[]],[23,2,[]],true,[22,\\\"hasModalOverlay\\\"],[22,\\\"hasCustomModalBlock\\\"],[29,[[28,\\\"if\\\",[[23,4,[]],\\\"is-tab-link-tooltip\\\",\\\"info-tooltip\\\"],null],\\\" is-tooltip info-tooltip-modal \\\",[23,3,[]]]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[14,5],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/info-tooltip-content/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/info-tooltip/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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, _dec0, _dec1, _dec10, _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   * When to use: when the label and content are together.\n   */\n  let HelpersInfoTooltip = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class HelpersInfoTooltip extends _component.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"tagName\", '');\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"clickToView\", _descriptor2, this);\n      // clickToClose = false\n      _initializerDefineProperty(this, \"translate\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasContent\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isTooltipVisible\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hasModalOverlay\", _descriptor6, this);\n      _initializerDefineProperty(this, \"mouseLeft\", _descriptor7, this);\n      _initializerDefineProperty(this, \"hasInfoTooltip\", _descriptor8, this);\n      if (this.args.translate == null) {\n        this.translate = true;\n      } else {\n        this.translate = this.args.translate;\n      }\n      if (this.args.clickToView == null) {\n        this.clickToView = true;\n      } else {\n        this.clickToView = this.args.clickToView;\n      }\n\n      // if isMobile, set clickToView to true\n      if (this.applicationService.isMobile && this.args.customBlock) {\n        this.clickToView = true;\n      }\n      if (this.args.hasContent == null) {\n        this.hasContent = true;\n      } else {\n        this.hasContent = this.args.hasContent;\n      }\n      if (this.args.hasModalOverlay == null) {\n        this.hasModalOverlay = true;\n      } else {\n        let hasModalOverlay;\n        if (this.clickToView) {\n          hasModalOverlay = true;\n        } else {\n          hasModalOverlay = this.args.hasModalOverlay ?? false;\n        }\n        this.hasModalOverlay = hasModalOverlay;\n      }\n    }\n    handleMouseEnter(e) {\n      if (this.clickToView) {\n        return;\n      }\n      if (this.applicationService.isMobile) {\n        // no hover tooltip on mobile\n        return;\n      }\n      this.isTooltipVisible = true;\n      this.mouseLeft = false;\n    }\n    handleMouseLeave(e) {\n      if (this.clickToView) {\n        return;\n      }\n      if (this.applicationService.isMobile) {\n        // no hover tooltip on mobile\n        return;\n      }\n      this.mouseLeft = true;\n      window.setTimeout(() => {\n        if (this.mouseLeft) {\n          this.isTooltipVisible = false;\n        }\n      }, 100);\n    }\n    toggleIsVisible(e) {\n      if (this.clickToView) {\n        if (!this.isTooltipVisible) {\n          this.isTooltipVisible = true;\n          if (this.applicationService.isMobile && this.clickToView) {\n            setTimeout(() => {\n              this.isTooltipVisible = false;\n            }, 1200);\n          }\n        }\n      }\n    }\n    toggleClickToView() {\n      this.clickToView = !this.clickToView;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"clickToView\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R.pathOr(true, ['args', 'translate'])(this);\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasContent\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isTooltipVisible\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.isAlwaysVisible || false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasModalOverlay\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"mouseLeft\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hasInfoTooltip\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R.pathOr(true, ['args', 'hasInfoTooltip'])(this);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleMouseEnter\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseLeave\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsVisible\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsVisible\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleClickToView\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleClickToView\"), _class.prototype), _class);\n});","define(\"client/pods/components/helpers/info-tooltip/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GM7u9UTt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@msg\\\",\\\"@isTabLink\\\",\\\"@modalPos\\\",\\\"@label\\\",\\\"&attrs\\\",\\\"@customBlock\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasInfoTooltip\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",[29,[\\\"info-tooltip-container auto-truncate \\\",[28,\\\"if\\\",[[23,0,[\\\"clickToView\\\"]],\\\"u-is-pointer\\\"],null]]]],[13,6],[3,\\\"on\\\",[\\\"click\\\",[24,[\\\"toggleIsVisible\\\"]]]],[3,\\\"on\\\",[\\\"mouseenter\\\",[23,0,[\\\"handleMouseEnter\\\"]]]],[3,\\\"on\\\",[\\\"mouseleave\\\",[23,0,[\\\"handleMouseLeave\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,1,[[23,0,[\\\"isTooltipVisible\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleClickToView\\\"]]],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[23,5,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"isTooltipVisible\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"modalPos\\\",\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\",\\\"isTabLink\\\"],[[23,4,[]],true,[23,0,[\\\"hasModalOverlay\\\"]],[23,0,[\\\"isTooltipVisible\\\"]],[23,0,[\\\"hasContent\\\"]],[23,3,[]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[14,1,[[28,\\\"fn\\\",[[23,0,[\\\"isTooltipVisible\\\"]],[23,0,[\\\"toggleClickToView\\\"]]],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,2,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1,[[23,0,[\\\"isTooltipVisible\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleClickToView\\\"]]],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/info-tooltip/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/is-access-allowed/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 HelpersTabLinkComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class HelpersTabLinkComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"users\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isAccessAllowed\", _descriptor3, this);\n    }\n    *didInsertTask(resource) {\n      this.isAccessAllowed = yield this.users.hasAccessRightsTask.perform(resource);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"users\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isAccessAllowed\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsertTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/helpers/is-access-allowed/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fbO3aDIc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@resource\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"didInsertTask\\\"]],[23,2,[]]],null]]],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isAccessAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/is-access-allowed/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/is-loading/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isRunning: true,\n    hasPlaceholder: false\n  });\n});","define(\"client/pods/components/helpers/is-loading/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9xDB6C4N\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"a\\\",true],[11,\\\"class\\\",[29,[\\\"button \\\",[28,\\\"if\\\",[[24,[\\\"isSmall\\\"]],\\\"is-small\\\",\\\"\\\"],null],\\\" is-loading u-borderless u-backgroundless\\\"]]],[8],[1,[28,\\\"tt\\\",[\\\"loading\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isRunning\\\"]],[24,[\\\"hasPlaceholder\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"is-loading-container \\\",[28,\\\"if\\\",[[24,[\\\"isFullscreen\\\"]],\\\"is-loading-container--fullscreen\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"a\\\",true],[11,\\\"class\\\",[29,[\\\"button is-small \\\",[28,\\\"if\\\",[[24,[\\\"isRunning\\\"]],\\\"is-loading\\\"],null],\\\" u-borderless u-backgroundless\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"wasSaved\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\",\\\"classNames\\\"],[\\\"fas fa-check-circle\\\",\\\"u-fade-in--quick has-text-success\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/is-loading/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/lazy-loader/component\", [\"exports\", \"ember-in-viewport\", \"ember-concurrency\"], function (_exports, _emberInViewport, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { computed } from '@ember/object'\n  var _default = _exports.default = Ember.Component.extend(_emberInViewport.default, {\n    tagName: 'div',\n    isLoading: false,\n    showWhenLoading: true,\n    /**\n     * TODO: IMPLEMENT FROM messages-window/component\n     * Calculate weather or not has more results. When resultsArray is smaller than the filterCount there is not more\n     * results. Otherwise there is more to fetch.\n     * @param {Array} resultsArray - Is an array of fetch data\n     * @param {Number} filterCount -  Is the count on the adapter filter\n     * @example\n     * const resultsArray = [obj1,obj2,obj3], filterCount = 3\n     * hasMoreResults = resultsArray === 3  - TRUE\n     * */\n    // hasMoreResults: computed('resultsArray.[]', 'filterCount', function () {\n    //   const count = parseInt(this.get('filterCount')) || 0\n    //   const results = this.get('resultsArray') || []\n    //\n    //   if (count === 0 && results.length === 0) {\n    //     return false\n    //   } else if (results.length < count) {\n    //     return false\n    //   } else {\n    //     return true\n    //   }\n    // }),\n\n    autoLazyLoadTask: (0, _emberConcurrency.task)(function* () {\n      const isLoading = this.isLoading;\n      if (!isLoading) {\n        this.set('isLoading', true);\n        yield (0, _emberConcurrency.timeout)(500);\n        yield this.onLazyLoadTask();\n        yield (0, _emberConcurrency.timeout)(1000);\n        this.set('isLoading', false);\n      }\n    })\n  });\n});","define(\"client/pods/components/helpers/lazy-loader/lazy-loader-btn/component\", [\"exports\", \"ember-in-viewport\"], function (_exports, _emberInViewport) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_emberInViewport.default, {\n    router: Ember.inject.service(),\n    tagName: 'div',\n    didEnterViewport() {\n      this.onAutoLazyLoadTask.perform();\n    }\n  });\n});","define(\"client/pods/components/helpers/lazy-loader/lazy-loader-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Mi/Byjm+\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"showWhenLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"a\\\",true],[11,\\\"class\\\",[29,[\\\"button is-primary \\\",[28,\\\"if\\\",[[24,[\\\"onAutoLazyLoadTask\\\",\\\"isRunning\\\"]],\\\"is-loading\\\"],null]]]],[11,\\\"onclick\\\",[28,\\\"perform\\\",[[24,[\\\"onAutoLazyLoadTask\\\"]]],null]],[8],[1,[28,\\\"tt\\\",[\\\"more\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/lazy-loader/lazy-loader-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/lazy-loader/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DFk9L/6x\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"showWhenLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"helpers/lazy-loader/lazy-loader-btn\\\",null,[[\\\"hasMore\\\",\\\"showLazyLoaderBtn\\\",\\\"onAutoLazyLoadTask\\\"],[[24,[\\\"hasMore\\\"]],[24,[\\\"showWhenLoading\\\"]],[24,[\\\"autoLazyLoadTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/lazy-loader/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/mouse-hover/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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   * When to use: when the label and content are together.\n   */\n  let HelpersMouseHover = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class HelpersMouseHover extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n      _defineProperty(this, \"translate\", true);\n      _defineProperty(this, \"clickToView\", true);\n      _defineProperty(this, \"clickToClose\", false);\n      _initializerDefineProperty(this, \"isHover\", _descriptor, this);\n    }\n    handleMouseEnter(e) {\n      this.isHover = true;\n      if (this.handleMouseEnter) {\n        this.args.handleMouseEnter(this.isHover);\n      }\n    }\n    handleMouseLeave(e) {\n      this.isHover = false;\n      if (this.handleMouseLeave) {\n        this.args.handleMouseLeave(this.isHover);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isHover\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleMouseEnter\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseLeave\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseLeave\"), _class.prototype), _class);\n});","define(\"client/pods/components/helpers/mouse-hover/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pyNe1G5f\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1,[[23,0,[\\\"isHover\\\"]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/mouse-hover/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/multiline-truncate/component\", [\"exports\", \"@glimmer/component\", \"client/utils/nventor\", \"ramda-adjunct\"], function (_exports, _component, _nventor, RA) {\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;\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 HelpersMultilineTruncate = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember.computed('args.content', 'args.char', 'args.byLines'), _class = class HelpersMultilineTruncate extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasTooltip\", _descriptor, this);\n      _initializerDefineProperty(this, \"clickToView\", _descriptor2, this);\n    }\n    get shortenedContent() {\n      const text = this.args.content || '';\n      const char = this.args.char || 50;\n      const byLines = this.args.byLines;\n      return _nventor.default.truncate({\n        text,\n        char,\n        byLines\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasTooltip\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.hasTooltip);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"clickToView\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, false, this.args.clickToView);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"shortenedContent\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"shortenedContent\"), _class.prototype), _class);\n});","define(\"client/pods/components/helpers/multiline-truncate/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y/bWqh0J\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@content\\\",\\\"@hasWrapper\\\",\\\"@contentDisplayClassName\\\",\\\"@modalPos\\\",\\\"@tooltipClassName\\\",\\\"&attrs\\\"],\\\"statements\\\":[[5,\\\"helpers/info-tooltip\\\",[[12,\\\"class\\\",[23,6,[]]]],[[\\\"@modalPos\\\",\\\"@customBlock\\\",\\\"@clickToView\\\"],[[23,5,[]],true,[23,0,[\\\"clickToView\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"auto-truncate\\\"],[13,7],[8],[0,\\\"\\\\n    \\\"],[1,[23,0,[\\\"shortenedContent\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasTooltip\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"modalPos\\\",\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\"],[[23,5,[]],true,false,[23,1,[]],[23,0,[\\\"hasTooltip\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/content-display\\\",[],[[\\\"@content\\\",\\\"@hasWrapper\\\",\\\"@className\\\"],[[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/multiline-truncate/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/new-browser-tab-link/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/helpers/new-browser-tab-link/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rznUdsF8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@icon\\\",\\\"&default\\\",\\\"@title\\\",\\\"@linkClassNames\\\"],\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"new-browser-tab\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"new-browser-tab-link__title\\\"],[8],[0,\\\"\\\\n        <\\\"],[1,[23,3,[]],false],[0,\\\">\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[22,\\\"link\\\"]]]],[10,\\\"target\\\",\\\"_blank\\\"],[10,\\\"rel\\\",\\\"noopener noreferrer\\\"],[11,\\\"class\\\",[29,[\\\"link \\\",[23,4,[]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[22,\\\"link\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/new-browser-tab-link/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/no-data/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class HelpersNoData extends _component.default {}\n  _exports.default = HelpersNoData;\n});","define(\"client/pods/components/helpers/no-data/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1/5rFO/3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-container u-container--no-data\\\"],[13,1],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"no data\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/no-data/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/pagination-controls/component\", [\"exports\", \"ramda\", \"client/utils/nventor\"], function (_exports, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    showPageNumbers: false,\n    hidePageListWhenOverflow: true,\n    classNames: ['pagination', 'is-centered', 'is-small'],\n    isNextDisabled: Ember.computed('list.[]', 'filters.{results,_data.count}', 'hasFullCount', function () {\n      const count = this.get('filters._data.count') || 0;\n      let results = this.get('filters.results') || false;\n      if (R.isNil(results) || !results) {\n        results = this.get('list') || [];\n      }\n      const resultsCount = this?.list?.length || results.length || 0;\n      if (resultsCount < 0) {\n        return true;\n      }\n      if (resultsCount < count) {\n        return true;\n      }\n      if (this.hasFullCount) {\n        const currentPage = this?.filters?._data?.page || 1;\n        const allPagesArray = this.allPagesArray || [];\n        const lastPageNumber = R.pipe(_nventor.default.safeLastOr({}), R.propOr('', 'value'))(allPagesArray);\n        if (currentPage === lastPageNumber) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    hasFullCount: Ember.computed('filters.{fullCount,_data.count,_data.page}', function () {\n      const filters = this.filters;\n      if (filters) {\n        const hasFullCount = R.hasPath(['fullCount'])(filters);\n        if (hasFullCount) {\n          const fullCount = R.path(['fullCount'])(filters) || 0;\n          return fullCount;\n        }\n      }\n      return false;\n    }),\n    allPagesArray: Ember.computed('hasFullCount', 'filters.{fullCount,_data.count,_data.page}', function () {\n      const filters = this.filters;\n      if (filters) {\n        const fullCount = this.hasFullCount;\n        const count = R.path(['_data', 'count'])(filters);\n        if (fullCount > 0 && count > 0) {\n          const totalPages = Math.ceil(fullCount / count);\n          return R.pipe(R.range(1), R.map(pageNumber => {\n            return Ember.Object.create({\n              label: pageNumber,\n              value: pageNumber\n            });\n          }))(totalPages + 1);\n        }\n      }\n      return [];\n    }),\n    _goToPage(page) {\n      if (page) {\n        const filters = this.filters;\n        const component = this.component;\n        page = parseInt(page) || 1;\n        filters.setData('page', page);\n        this.set('showGoToPage', false);\n        const context = this.context;\n        const paginationData = {\n          filters,\n          context,\n          component\n        };\n        // Use default pagination task if custom isn't pass in\n        if (!this.onPaginationTask && !this.onPaginationTask?.perform) {\n          return this.crud.paginateSearchRecordsTask.perform(paginationData);\n        }\n        if (this?.onPaginationTask?.perform) {\n          return this.onPaginationTask.perform(paginationData);\n        } else {\n          return this.onPaginationTask(paginationData);\n        }\n      }\n    },\n    actions: {\n      previousPage() {\n        const filters = this.filters;\n        const currentPage = parseInt(filters.getData('page')) || 1;\n        const page = currentPage - 1;\n        filters.setData('page', page);\n        this.set('showGoToPage', false);\n        const context = this.context;\n        const paginationData = {\n          filters,\n          context,\n          component: this\n        };\n        // Use default pagination task if custom isn't pass in\n        if (!this.onPaginationTask && !this.onPaginationTask?.perform) {\n          return this.crud.paginateSearchRecordsTask.perform(paginationData);\n        }\n        if (this.onPaginationTask.perform) {\n          return this.onPaginationTask.perform(paginationData);\n        }\n        return this.onPaginationTask(paginationData);\n      },\n      nextPage() {\n        // @TODO: redo this. onPaginationTask should be a curried function\n        const filters = this.filters;\n        if (!filters) {\n          return;\n        }\n        const currentPage = parseInt(filters.getData('page')) || 1;\n        const page = currentPage + 1;\n        filters.setData('page', page);\n        this.set('showGoToPage', false);\n        const context = this.context;\n        const paginationData = {\n          filters,\n          context,\n          component: this\n        };\n        // Use default pagination task if custom isn't pass in\n        if (!this.onPaginationTask && !this.onPaginationTask?.perform) {\n          return this.crud.paginateSearchRecordsTask.perform(paginationData);\n        }\n        if (!this?.onPaginationTask) {\n          // handle the case where onPaginationTask is not passed down\n          return;\n        }\n        if (this.onPaginationTask?.perform) {\n          return this.onPaginationTask.perform?.(paginationData);\n        }\n        return this.onPaginationTask?.(paginationData);\n      },\n      selectPage(pageData) {\n        const page = pageData?.value || 1;\n        this._goToPage(page);\n      },\n      goToPage(page) {\n        this._goToPage(page);\n      },\n      showGoToPage() {\n        if (!this.page) {\n          this.set('page', 1);\n        }\n        this.set('showGoToPage', true);\n      }\n    }\n  });\n});","define(\"client/pods/components/helpers/pagination-controls/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5d/MCVCX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isSidebar\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@hasIconSpacers\\\",\\\"@icon\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",false,\\\"fas fa-angle-left\\\",\\\"pagination-previous\\\",[28,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],1],null],false,true],null],[24,[\\\"onPaginationTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"previousPage\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@hasIconSpacers\\\",\\\"@iconRight\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",false,\\\"fas fa-angle-right\\\",\\\"pagination-next\\\",[23,0,[\\\"isNextDisabled\\\"]],[24,[\\\"onPaginationTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"nextPage\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showPageNumbers\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"ul\\\",true],[11,\\\"class\\\",[29,[\\\"pagination-list \\\",[28,\\\"if\\\",[[24,[\\\"hidePageListWhenOverflow\\\"]],\\\"hide-when-overflow\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allPagesArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,true,false,[23,0,[\\\"allPagesArray\\\"]],\\\"value\\\",\\\"label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectPage\\\"],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"hasFullCount\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\":  \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showGoToPage\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"classNames\\\",\\\"value\\\",\\\"onFocusOut\\\"],[\\\"input--40\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"goToPage\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"a\\\",false],[12,\\\"href\\\",\\\"#\\\"],[12,\\\"class\\\",\\\"has-text-link\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"showGoToPage\\\"]],[8],[0,\\\"\\\\n            \\\"],[1,[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/pagination-controls/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/pre-line/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['u-pre-line'],\n    trimmedValue: Ember.computed('value', function () {\n      const value = this.value;\n      if (typeof value === 'string') {\n        return value.trim();\n      }\n      return value;\n    })\n  });\n});","define(\"client/pods/components/helpers/pre-line/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"3fFdWs5f\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[1,[22,\\\"trimmedValue\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/pre-line/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/repeat-times/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    times: 0,\n    timesArray: Ember.computed('times', function () {\n      let times = parseInt(this.times);\n      if (Number.isNaN(times)) {\n        times = 1;\n      }\n      return new Array(times);\n    })\n  });\n});","define(\"client/pods/components/helpers/repeat-times/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kuHwOaNp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"index\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"timesArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/repeat-times/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/tab-link/component\", [\"exports\", \"@glimmer/component\", \"ramda-extension\", \"ramda\"], function (_exports, _component, R_, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 HelpersTabLinkComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class HelpersTabLinkComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n    }\n    get hasLink() {\n      return R_.dotPathOr(false, 'args.hasLink')(this);\n    }\n    get isHoverLink() {\n      return R_.dotPathOr(true, 'args.isHoverLink')(this);\n    }\n    get hideOpenTabBtnComputed() {\n      return R.path(['args', 'hideOpenTabBtn'])(this) || false;\n    }\n    get linkLabel() {\n      return R_.dotPathOr('open_tab', 'args.linkLabel')(this);\n    }\n    get tooltipContainer() {\n      const title = this.args.tabOptions?.title || '';\n      if (title === 'contacts') {\n        return 'helpers/tab-link/contacts';\n      }\n      return '';\n    }\n    open() {\n      if (this.hasLink) {\n        this.tabsManager.openTab('left', this.args.tabOptions);\n        return false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"open\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"open\"), _class.prototype), _class);\n});","define(\"client/pods/components/helpers/tab-link/contacts/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class HelpersTabLinkContactsComponent extends _component.default {}\n  _exports.default = HelpersTabLinkContactsComponent;\n});","define(\"client/pods/components/helpers/tab-link/contacts/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HS4/o/au\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tabOptions\\\",\\\"@toggleClickToViewAction\\\"],\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"contacts/shortcuts\\\",[],[[\\\"@contactKey\\\",\\\"@model\\\",\\\"@hasSales\\\",\\\"@hasPurchases\\\",\\\"@onSubmit\\\",\\\"@onCloseModalDialog\\\"],[[23,1,[\\\"contactKey\\\"]],[23,1,[\\\"model\\\"]],true,true,[23,2,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/tab-link/contacts/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/helpers/tab-link/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"o/zSTeI1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"toggleClickToViewAction\\\",\\\"&default\\\",\\\"@tooltipContentComponent\\\",\\\"@modalContentClassNames\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\",\\\"@hasLink\\\",\\\"@linkIcon\\\",\\\"@tabLinkClassNames\\\",\\\"@tabLinkLabelClassNames\\\",\\\"@classNames\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasLink\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\\n  \\\"],[5,\\\"helpers/info-tooltip\\\",[[12,\\\"class\\\",[23,12,[]]]],[[\\\"@isTabLink\\\",\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,true,false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isHoverLink\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",[29,[\\\"tab-link__label \\\",[23,11,[]]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"open\\\"]]],null]]],[8],[0,\\\"\\\\n        \\\"],[14,3],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,6,[]],[23,0,[\\\"isHoverLink\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tab-link \\\",[23,10,[]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\",\\\"hasCustomModalBlock\\\",\\\"isTabLink\\\"],[true,false,[23,1,[]],true,true,true]],{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"hideOpenTabBtnComputed\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-link__button-container\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"onSubmit\\\"],[[24,[\\\"linkLabel\\\"]],[28,\\\"if\\\",[[23,9,[]],[23,9,[]],\\\"fas fa-external-link-alt\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"open\\\"]]],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"tooltipContainer\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"tooltipContainer\\\"]]],[[\\\"hasLink\\\",\\\"tabOptions\\\",\\\"toggleClickToViewAction\\\"],[[23,8,[]],[23,7,[]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-link__tooltip-container\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__outer-wrapper\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__wrapper\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"modal-container__content \\\",[23,5,[]]]]],[8],[0,\\\"\\\\n                    \\\"],[1,[23,6,[]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"component\\\",[[23,4,[\\\"component\\\"]]],[[\\\"model\\\"],[[23,4,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1,2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/helpers/tab-link/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/home/tab-container/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 HomeTabContainerComponent = _exports.default = (_dec = Ember.inject.service('users'), _class = class HomeTabContainerComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"usersService\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/home/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uQVw935a\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,4,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"usersService\\\",\\\"isDocumentationsEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"home\\\",[23,1,[]],[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"home/wizard-container\\\",[],[[\\\"@tab\\\"],[[23,4,[]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/home/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/home/wizard-container/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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, _dec0, _dec1, _dec10, _dec11, _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   * how wizards work.\n   * wizards are defined in the api. when fetching list application/lists/wizards, the api returns a list of wizards.\n   * the list of wizards are then checked against user menu collection.\n   * if the user has not already completed the wizard, a record is created for user menu collection.\n   */\n  let HomeWizardContainerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('users'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember.computed('userWizards.[]'), _dec11 = Ember.computed('userWizards.[]'), _class = class HomeWizardContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"usersService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"wizard\", _descriptor5, this);\n      _initializerDefineProperty(this, \"userWizards\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isToggleOn\", _descriptor7, this);\n      _initializerDefineProperty(this, \"selectedProgress\", _descriptor8, this);\n      this.crud.addLists(this, ['application/lists/wizards', 'application/lists/progress']);\n    }\n    afterLoadLists() {\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      yield this.getCustomizedUserMenuTask.perform();\n    }\n    selectProgress(resourceData) {\n      this.selectedProgress = resourceData._data.value;\n    }\n    get wizardsList() {\n      const allowed = this.crud.lists['application-lists-wizards'] || [];\n      return allowed;\n    }\n\n    // get filteredList () {\n    //   // const selectedProgress = this.selectedProgress\n\n    //   // if (selectedProgress === 'isFinished') {\n    //   //   return this.finishedItems\n    //   // }\n\n    //   // if (selectedProgress === 'unfinished') {\n    //   //   return this.unfinishedItems\n    //   // }\n\n    //   return this.userColletion\n    // }\n\n    // get userColletion () {\n    //   return R.pathOr([], ['userMenu', '_data', 'collection'])(this)\n    // }\n\n    get isOn() {\n      if (this.isToggleOn) {\n        return true;\n      }\n      if (this.unFinishedItemsCount > 0) {\n        return true;\n      }\n      return false;\n    }\n    get isOnClassName() {\n      if (this.isOn) {\n        return 'on';\n      }\n      return 'off';\n    }\n    get unfinishedItemsCount() {\n      return this.unfinishedItems.length;\n    }\n    get finishedItems() {\n      const userColletion = this.userColletion;\n      return userColletion.filter(uc => R.pathEq(['_data', 'isFinished'], true)(uc));\n    }\n    get unfinishedItems() {\n      const userColletion = this.userColletion;\n      return userColletion.filter(uc => R.pathEq(['_data', 'isFinished'], false)(uc));\n    }\n    toggle() {\n      this.isToggleOn = !this.isToggleOn;\n    }\n    setShowType(showType) {\n      this.showType = showType;\n      this.isToggleOn = true;\n    }\n    *getCustomizedUserMenuTask() {\n      const userKey = this.usersService.getUserKey();\n      const menuId = 'application/lists/wizards';\n      const userMenuFilters = this.search.setupFilters({\n        adapterName: 'members-menu/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'index',\n            direction: 'ASC'\n          }],\n          userKey,\n          menuId\n        }\n      });\n      const userMenu = yield this.crud.findTask.perform({\n        adapterName: 'wizards',\n        filters: userMenuFilters\n      });\n      this.userMenu = userMenu;\n      const allowedMenu = this.wizardsList || [];\n      const userCollection = R.pathOr([], ['_data', 'collection'])(userMenu);\n      this.userWizards = yield R.forEach(menu => {\n        menu.setData('userKey', userKey);\n        menu.setData('menuId', menuId);\n        let isFinished = false;\n        const foundCollection = R.find(R.pathEq(['_data', 'target'], menu._data.target))(userCollection);\n        if (foundCollection) {\n          isFinished = true;\n        }\n        menu.setData('isFinished', isFinished);\n        return menu;\n\n        // return this.crud.createRecordTask.perform({\n        //   adapterName: 'members-menu',\n        //   model: menu\n        // })\n      })(allowedMenu);\n    }\n    get allWizardsGroupedByCategory() {\n      const all = this.userWizards || [];\n      const filtered = R.filter(wizard => wizard?._data?.type === 'wizard')(all);\n      // dont use groupBy because it will lose its order\n      return R.reduce((acc, wizard) => {\n        const category = wizard?._data?.category || 'basic';\n        const found = R.find(R.pathEq(['category'], category))(acc);\n        if (found) {\n          found.items.push(wizard);\n        } else {\n          acc.push({\n            category: category,\n            items: [wizard]\n          });\n        }\n        return acc;\n      }, [], filtered);\n      // const filtered = R.filter(wizard => wizard?._data?.type === 'wizard')(all)\n\n      // return R.groupBy(R.path(['_data', 'category']))(filtered)\n    }\n    get allHelpGroupedByCategory() {\n      const all = this.userWizards || [];\n      const helpData = R.find(wizard => wizard?._data?.type === 'help')(all);\n      const help = helpData?._data?.help ?? [];\n      return R.reduce((acc, wizard) => {\n        const category = wizard?._data?.category || 'basic';\n        const found = R.find(R.pathEq(['category'], category))(acc);\n        if (found) {\n          found.items.push(wizard);\n        } else {\n          acc.push({\n            category,\n            items: [wizard]\n          });\n        }\n        return acc;\n      }, [], help);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"wizard\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"userWizards\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isToggleOn\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"selectedProgress\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectProgress\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"selectProgress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setShowType\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setShowType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getCustomizedUserMenuTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getCustomizedUserMenuTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allWizardsGroupedByCategory\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"allWizardsGroupedByCategory\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allHelpGroupedByCategory\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"allHelpGroupedByCategory\"), _class.prototype), _class);\n});","define(\"client/pods/components/home/wizard-container/help-card/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\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  let HomeWizardContainerHelpCard = _exports.default = (_dec = Ember.computed('args.category'), _dec2 = Ember.computed('categoryTitle'), _class = class HomeWizardContainerHelpCard extends _component.default {\n    get categoryTitle() {\n      return this.args.category || 'basic';\n    }\n    get translate() {\n      if (this.categoryTitle === 'basic') {\n        return true;\n      }\n      return false;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"categoryTitle\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"categoryTitle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"translate\"), _class.prototype), _class);\n});","define(\"client/pods/components/home/wizard-container/help-card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"paSrmxqt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"helpItem\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@helpItems\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\"],[\\\"description_attachments_sub-group\\\",[23,2,[]],[23,3,[]],[23,0,[\\\"categoryTitle\\\"]],[23,0,[\\\"translate\\\"]],true,true]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-container is-form-content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-container--sub flex-container-row\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-card__status\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"hasRead\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[\\\"fas fa-check-circle\\\",\\\"has-text-success\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"far fa-circle\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-card__content\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-card__title-text\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[23,1,[\\\"_data\\\",\\\"documentationId\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"description\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-description u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"_data\\\",\\\"description\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-margin-left--auto\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                \\\"],[5,\\\"documentation/viewer\\\",[],[[\\\"@isPopupBtn\\\",\\\"@fetchDocumentationResource\\\",\\\"@fetchDocumentationId\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\"],[true,[23,1,[\\\"_data\\\",\\\"documentationResource\\\"]],[23,1,[\\\"_data\\\",\\\"documentationId\\\"]],[23,1,[\\\"_data\\\",\\\"documentationId\\\"]],false]]],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/home/wizard-container/help-card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/home/wizard-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ryWw0GNZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"categoryData\\\",\\\"categoryData\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"setupWizards\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"setupWizards\\\",[23,7,[]],[23,4,[]],[23,6,[]],[23,5,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"wizards_group\\\",[23,1,[]],\\\"setup guides\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"allWizardsGroupedByCategory\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"home/wizard-container/wizard-card\\\",[],[[\\\"@tab\\\",\\\"@category\\\",\\\"@wizardItems\\\"],[[23,4,[]],[23,3,[\\\"category\\\"]],[23,3,[\\\"items\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"wizards_group\\\",[23,1,[]],\\\"help\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"allHelpGroupedByCategory\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"home/wizard-container/help-card\\\",[],[[\\\"@tab\\\",\\\"@category\\\",\\\"@helpItems\\\"],[[23,4,[]],[23,2,[\\\"category\\\"]],[23,2,[\\\"items\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/home/wizard-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/home/wizard-container/wizard-card/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 HomeWizardContainerWizardCard = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class HomeWizardContainerWizardCard extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabCopy\", _descriptor2, this);\n    }\n    setupTabCopy(wizardItem) {\n      const tab = this.args.tab;\n      const tabCopy = this.tabsManager.copyTab({\n        tab\n      });\n      Ember.set(tabCopy, 'loadInstructions', wizardItem?._data?.loadInstructions);\n      this.tabCopy = tabCopy;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabCopy\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTabCopy\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTabCopy\"), _class.prototype), _class);\n});","define(\"client/pods/components/home/wizard-container/wizard-card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xX55osKp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"wizardItem\\\",\\\"onCloseDialogAction\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@category\\\",\\\"@wizardItems\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\"],[\\\"description_attachments_sub-group\\\",[23,3,[]],[23,4,[]],[23,5,[]],true,true]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-container is-form-content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-container--sub flex-container-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-card__status\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,1,[\\\"isAllStepsFinished\\\"]],[23,1,[\\\"_data\\\",\\\"isFinished\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[\\\"fas fa-check-circle\\\",\\\"has-text-success\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"far fa-circle\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-card__content\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-card__title-text\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"label\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-description u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"description\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"dynamicComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"wizard-dynamic-container u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"dynamicComponent\\\"]]],[[\\\"wizardItem\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-margin-left--auto\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@btnClassNames\\\",\\\"@modalDialogTitle\\\",\\\"@modelContainerClassNames\\\",\\\"@autoSetContentOverflow\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"wizard_start\\\",[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isFinished\\\"]],\\\"\\\",\\\"is-primary\\\"],null],[23,1,[\\\"_data\\\",\\\"label\\\"]],\\\"is-wizard-modal\\\",false,[28,\\\"fn\\\",[[23,0,[\\\"setupTabCopy\\\"]],[23,1,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"_data\\\",\\\"component\\\"]]],[[\\\"tab\\\",\\\"loadInstructions\\\",\\\"onCloseDialogActionWizard\\\",\\\"wizardItem\\\"],[[23,0,[\\\"tabCopy\\\"]],[23,1,[\\\"_data\\\",\\\"loadInstructions\\\"]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/home/wizard-container/wizard-card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/img-banner/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 ImgBannerComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class ImgBannerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"imageUuid\", _descriptor, this);\n      _defineProperty(this, \"height\", '128');\n      _defineProperty(this, \"width\", '128');\n      this.trackImageUuid();\n    }\n    get transform() {\n      return this.args.transform || '/-/preview/200x200';\n    }\n    get valuePath() {\n      return R.pathOr('', ['args', 'valuePath'])(this);\n    }\n    trackImageUuid() {\n      const imageUuidPath = R.pathOr('', ['args', 'imageUuidPath'])(this);\n      const model = R.pathOr(null, ['args', 'model'])(this);\n      if (model) {\n        this.imageUuid = model.get(imageUuidPath);\n      }\n    }\n    onSubmit(onCloseDialogAction, options, uploadsModel) {\n      const banner = R.pathOr({}, [0, '_data'])(uploadsModel);\n      if (RA.isNilOrEmpty(banner)) {\n        return;\n      }\n      this.args.model.set(this.valuePath, banner);\n      this.trackImageUuid();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    removeBanner() {\n      this.args.model.set(this.valuePath, null);\n      this.trackImageUuid();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"imageUuid\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSubmit\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeBanner\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"removeBanner\"), _class.prototype), _class);\n});","define(\"client/pods/components/img-banner/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VB9sIOuH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-start\\\"],[8],[9],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@formInputClassNames\\\",\\\"@label\\\",\\\"@overrideFormInputClassNames\\\"],[[23,2,[]],\\\"websites\\\",[23,3,[]],\\\"flex-container-column flex-container--align-items-start\\\",[23,4,[]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"imageUuid\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-wrapper\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card slider__products-card\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-image\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@image\\\",\\\"@transform\\\",\\\"@width\\\"],[[23,0,[\\\"height\\\"]],[23,0,[\\\"imageUuid\\\"]],[23,0,[\\\"transform\\\"]],[23,0,[\\\"width\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-medium bigordr-slider-image-delete-btn\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeBanner\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"files-manager\\\",[],[[\\\"@allowMultipleItems\\\",\\\"@allowRemove\\\",\\\"@hideFilesGallery\\\",\\\"@model\\\",\\\"@onSubmit\\\",\\\"@resetSubTab\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@tab\\\",\\\"@isReadonly\\\"],[false,true,true,[23,5,[]],[23,0,[\\\"onSubmit\\\"]],true,\\\"websites\\\",[23,5,[\\\"_data\\\",\\\"_key\\\"]],true,[23,6,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/img-banner/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/importer/import-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, _nventor) {\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;\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 ImporterDataImportComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _class = class ImporterDataImportComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"adapterName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"batchString\", _descriptor3, this);\n      _initializerDefineProperty(this, \"showImportModal\", _descriptor4, this);\n      _initializerDefineProperty(this, \"rowsData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"response\", _descriptor6, this);\n      this.adapterName = this.args.adapterName;\n      this.columns = this.args.columns;\n      this.response = false;\n    }\n    toggleImportModal() {\n      this.showImportModal = !this.showImportModal;\n    }\n    next(onCloseDialogAction) {\n      this.response = false;\n      const batchDataString = this.batchString || '';\n      // let batchData = {}\n      // try {\n      //   // data is json\n      //   batchData = JSON.parse(batchDataString)\n      // } catch (err) {\n      // convert lines to json\n\n      const byRows = R.pipe(R.trim, R.split(/\\n/g), R.reject(RA.isNilOrEmpty), R.map(R.trim), R.map(R.split(/\\t/g)))(batchDataString);\n      const possibleColumns = _nventor.default.safeHeadOr([])(byRows);\n      if (RA.isNilOrEmpty(possibleColumns)) {\n        return {};\n      }\n      this.rowsData = byRows;\n      // }\n      onCloseDialogAction();\n      this.showImportModal = true;\n    }\n    cancel() {\n      this.batchString = '';\n    }\n    *importTask() {\n      const rowsData = this.rowsData;\n      const columnsString = this.columns || '';\n      const columns = R.split(' ')(columnsString);\n      const batchData = R.map(row => {\n        return R.zipObj(columns)(row);\n      })(rowsData);\n      const self = this;\n      return this.dataManager.batchImport({\n        adapterName: this.adapterName,\n        batchData\n      }).then(response => {\n        this.response = response;\n        this.batchString = '';\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"adapterName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"batchString\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showImportModal\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"rowsData\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"response\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleImportModal\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleImportModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"next\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"next\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"importTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"importTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/importer/import-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"73yjZQDK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"row\\\",\\\"index\\\",\\\"cell\\\",\\\"row\\\",\\\"value\\\",\\\"key\\\",\\\"row\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"icon\\\",\\\"autoPosition\\\"],[\\\"import\\\",[23,10,[]],\\\"fas fa-file-import\\\",true]],{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\"],[\\\"copy & paste\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"data\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"rows\\\",\\\"readonly\\\",\\\"classNames\\\",\\\"value\\\"],[20,[24,[\\\"isReadonly\\\"]],\\\"u-full-width\\\",[24,[\\\"batchString\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[23,9,[]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"next\\\",[28,\\\"fn\\\",[[23,0,[\\\"next\\\"]],[23,9,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[9]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"\\\\n\\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\"],[\\\"import\\\",[23,0,[\\\"showImportModal\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isImported\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"successfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"article\\\",true],[10,\\\"class\\\",\\\"message is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"message-body\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[24,[\\\"unsuccessfulCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"response\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"response\\\",\\\"successful\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\"],[\\\"successful\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"response\\\",\\\"successful\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,7,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,7,[\\\"email\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"response\\\",\\\"unsuccessful\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\"],[\\\"unsuccessful\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"response\\\",\\\"unsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,4,[\\\"context\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,5,[]],false],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"data\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[23,0,[\\\"columns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"rowsData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,3,[]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"response\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[28,\\\"count\\\",[[23,0,[\\\"response\\\",\\\"successful\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[28,\\\"count\\\",[[23,0,[\\\"response\\\",\\\"unsuccessful\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleImportModal\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"toggleImportModal\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"import\\\",[24,[\\\"importTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"importTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/importer/import-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/importer/import-table/component\", [\"exports\", \"ramda\", \"client/pods/options/model\", \"client/utils/nventor\", \"ember-concurrency\"], function (_exports, R, _model, _nventor, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.set('importInstructions', Ember.Object.create({\n        headers: []\n      }));\n    },\n    columns: Ember.computed('model', function () {\n      const model = this.model;\n      const intl = this.intl;\n      return R.pipe(R.prop('importParams'), R.map(param => {\n        return _nventor.default.createModel(_model.default, {\n          label: intl.t(param.label),\n          value: param.value\n        });\n      }))(model);\n    }),\n    importTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, batchString) {\n      const rows = R.split('\\n', batchString);\n      const columns = this.columns;\n      const columnKeys = R.pipe(R.pluck('_data'), R.pluck('value'))(columns);\n      const importData = R.map(row => {\n        return R.pipe(R.split('\\t'), R.zipObj(columnKeys))(row);\n      }, rows);\n      return yield this.onImportTask.perform(onCloseDialogAction, importData);\n    }),\n    actions: {\n      cancel(onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  });\n});","define(\"client/pods/components/importer/import-table/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PfnfJFNV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"column\\\"],\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"classNames\\\"],[[24,[\\\"label\\\"]],[24,[\\\"btnIcon\\\"]],[24,[\\\"btnClassNames\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title products-display__name u-header-1\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"import data\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"data\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"columns\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,2,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"data\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"rows\\\",\\\"readonly\\\",\\\"classNames\\\",\\\"value\\\"],[20,[24,[\\\"isReadonly\\\"]],\\\"u-full-width\\\",[24,[\\\"batchString\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",[24,[\\\"importTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[false,\\\"import\\\",[24,[\\\"importTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"importTask\\\"]],[23,1,[]],[24,[\\\"batchString\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"msg\\\"],[[24,[\\\"errorMsg\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/importer/import-table/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/btns-group/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class LayoutsBtnsGroupComponent extends _component.default {\n    get sizeClassNames() {\n      return this.args.size || 'small';\n    }\n  }\n  _exports.default = LayoutsBtnsGroupComponent;\n});","define(\"client/pods/components/layouts/btns-group/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"K84Spbk7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"layouts__btns-outer-container\\\"],[13,1],[8],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"layouts__btns-container \\\",[23,0,[\\\"sizeClassNames\\\"]]]]],[8],[0,\\\"\\\\n    \\\"],[14,2],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/btns-group/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/btns-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class LayoutsBtnsRowComponent extends _component.default {}\n  _exports.default = LayoutsBtnsRowComponent;\n});","define(\"client/pods/components/layouts/btns-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qMnplwPE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto layouts__btns-row\\\"],[13,1],[8],[0,\\\"\\\\n  \\\"],[14,2],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/btns-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/btns-seperator/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class LayoutsBtnsSeperator extends _component.default {}\n  _exports.default = LayoutsBtnsSeperator;\n});","define(\"client/pods/components/layouts/btns-seperator/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"g8DhoMhg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"btns-seperator\\\"],[13,1],[8],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/btns-seperator/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/btns-sticky-right-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class LayoutsBtnsStickyRightRowComponent extends _component.default {}\n  _exports.default = LayoutsBtnsStickyRightRowComponent;\n});","define(\"client/pods/components/layouts/btns-sticky-right-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZxTsakw5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[13,1],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n    \\\"],[14,2],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/btns-sticky-right-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/footer-btns/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['footer-btns__container']\n  });\n});","define(\"client/pods/components/layouts/footer-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eK2oq/XY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/footer-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/info-row/card/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class LayoutsInfoRowCardComponent extends _component.default {}\n  _exports.default = LayoutsInfoRowCardComponent;\n});","define(\"client/pods/components/layouts/info-row/card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"G1d7ExlV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isBtn\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"info-row-card \\\",[28,\\\"if\\\",[[23,1,[]],\\\"info-row-card--btn\\\"],null],\\\" flex-container-row flex-container--align-items-center flex-container--wrap\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"info-row-card-content\\\"],[8],[0,\\\"\\\\n    \\\"],[14,2],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"info-row-card-action\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-chevron-right\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/info-row/card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/info-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class LayoutsInfoRowComponent extends _component.default {}\n  _exports.default = LayoutsInfoRowComponent;\n});","define(\"client/pods/components/layouts/info-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FHSSbOiM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"info-row flex-container-row flex-container--align-items-stretch flex-container--wrap\\\"],[8],[0,\\\"\\\\n  \\\"],[14,1],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/info-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/left-bar/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['layouts__sidebar', 'layouts__left-bar-container']\n  });\n});","define(\"client/pods/components/layouts/left-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hRTXmCPU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isShowing\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"layouts__left-bar\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"layouts__left-bar-contents\\\"],[8],[0,\\\"\\\\n      \\\"],[14,1],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[1,[28,\\\"modals/modal-overlay\\\",null,[[\\\"toggle\\\",\\\"modalClassNames\\\"],[[24,[\\\"isShowing\\\"]],\\\"layouts__left-bar-modal-overlay\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/left-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/panels/panel-footer-spacer/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/layouts/panels/panel-footer-spacer/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"X0ewp0K6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"panel-grid__footer-spacer \\\",[22,\\\"classNames\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\"],[14,1],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__footer\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/panels/panel-footer-spacer/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/panels/panel-footer/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _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 LayoutsPanelsPanelFooterComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _class = class LayoutsPanelsPanelFooterComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"defaultParentContainerClassName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"element\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasLoaded\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasOverflowX\", _descriptor5, this);\n      // @tracked lastHasOverflowXState = false\n      _initializerDefineProperty(this, \"originalScrollWidth\", _descriptor6, this);\n      _initializerDefineProperty(this, \"overFlowXWidth\", _descriptor7, this);\n      _initializerDefineProperty(this, \"showSub\", _descriptor8, this);\n      _defineProperty(this, \"resizeObserver\", null);\n      _defineProperty(this, \"mutationObserver\", null);\n      _defineProperty(this, \"hasAllBtnsLoaded\", false);\n      _defineProperty(this, \"debounceWait\", 150);\n      // Adjust this value as needed\n      _defineProperty(this, \"isCheckingOverflow\", false);\n      _defineProperty(this, \"nonPanelFooterClassNames\", this.args.nonPanelFooterClassNames ?? '');\n    }\n    get hasPanelFooter() {\n      return this.args.hasPanelFooter ?? true;\n    }\n\n    /**\n     * When false, the overflow menu button is omitted. Overflow is still measured\n     * so hide-when-overflow controls in the footer can collapse.\n     * @returns {boolean}\n     */\n    get hasOverflowMenu() {\n      return this.args.hasOverflowMenu ?? true;\n    }\n    debouncedResize() {\n      Ember.run.debounce(this, this.checkHasOverflowX, this.debounceWait);\n    }\n    mutationObserverFunction() {\n      const hasLoaded = this.checkHasLoaded();\n      if (hasLoaded) {\n        this.checkHasOverflowX();\n        this.mutationObserver.disconnect();\n        this.mutationObserver = null;\n      }\n    }\n    didInsert(parentFooterElement) {\n      const element = parentFooterElement.querySelector('.panel-grid__footer-center');\n      this.element = element;\n      window.addEventListener('resize', this.debouncedResize);\n      this.resizeObserver = new window.ResizeObserver(R.pipe(R.head,\n      // Take first entry\n      () => Ember.run.debounce(this, this.checkHasOverflowX, this.debounceWait)));\n      this.resizeObserver.observe(element);\n      this.mutationObserver = new window.MutationObserver(this.mutationObserverFunction);\n      this.mutationObserver.observe(element, {\n        childList: true,\n        subtree: true,\n        attributes: true\n      });\n      this.mutationObserverFunction();\n    }\n    willDestroyElement() {\n      if (this.isDestroyed) {\n        return;\n      }\n      window.removeEventListener('resize', this.debouncedResize);\n      if (this.resizeObserver) {\n        this.resizeObserver.disconnect();\n        this.resizeObserver = null;\n      }\n      if (this.mutationObserver) {\n        this.mutationObserver.disconnect();\n        this.mutationObserver = null;\n      }\n    }\n    toggleSub() {\n      this.showSub = !this.showSub;\n    }\n    checkHasLoaded() {\n      const element = this.element;\n      const btnGroups = element.querySelectorAll('.layouts__btns-container');\n      const hasAllBtnsLoaded = Array.from(btnGroups).reduce((acc, group) => {\n        if (acc === false) {\n          return false;\n        }\n        return group.offsetWidth > 0;\n      }, true);\n      this.hasAllBtnsLoaded = hasAllBtnsLoaded;\n      return hasAllBtnsLoaded;\n    }\n    checkHasOverflowX() {\n      if (this.isCheckingOverflow) {\n        return;\n      }\n      this.isCheckingOverflow = true;\n      const element = this.element;\n      if (!this.hasAllBtnsLoaded) {\n        this.isCheckingOverflow = false;\n        return;\n      }\n      const width = window.innerWidth;\n      if (width <= this.overFlowXWidth) {\n        this.isCheckingOverflow = false;\n        return;\n      }\n      if (width <= this.originalScrollWidth && this.hasOverflowX) {\n        this.isCheckingOverflow = false;\n        return;\n      }\n      const hasOverflowXData = this.applicationService.checkHasOverflowX(element);\n      const hasOverflowX = hasOverflowXData?.hasOverflowX;\n      this.hasOverflowX = hasOverflowX;\n      if (this.originalScrollWidth < hasOverflowXData?.scrollWidth && this.lastHasOverflowXState === false && hasOverflowX) {\n        this.originalScrollWidth = hasOverflowXData?.scrollWidth;\n      }\n      if (hasOverflowX) {\n        this.overFlowXWidth = width;\n      } else {\n        this.overFlowXWidth = 0;\n      }\n      this.isCheckingOverflow = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"defaultParentContainerClassName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'tab-parent-container';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasLoaded\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasOverflowX\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"originalScrollWidth\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"overFlowXWidth\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"showSub\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"debouncedResize\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"debouncedResize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"mutationObserverFunction\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"mutationObserverFunction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"willDestroyElement\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroyElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSub\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSub\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkHasLoaded\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"checkHasLoaded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkHasOverflowX\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"checkHasOverflowX\"), _class.prototype), _class);\n});","define(\"client/pods/components/layouts/panels/panel-footer/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eP6erg1f\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@nonPanelFooterHasWrapper\\\",\\\"@hideFooterSpacer\\\",\\\"@classNames\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasPanelFooter\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__footer-spacer\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"panel-grid__footer \\\",[23,4,[]],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"hasOverflowX\\\"]],\\\"has-overflow\\\",\\\"\\\"],null]]]],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"didInsert\\\"]]],null]]],[3,\\\"will-destroy\\\",[[28,\\\"fn\\\",[[23,0,[\\\"willDestroyElement\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__footer-fixed\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__footer-center\\\"],[8],[0,\\\"\\\\n        \\\"],[14,1],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"hasOverflowMenu\\\"]],[23,0,[\\\"hasOverflowX\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,true,[23,0,[\\\"showSub\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"hasOverflowMenu\\\"]],[23,0,[\\\"showSub\\\"]],[23,0,[\\\"hasOverflowX\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"modals/modal-container-new\\\",[[12,\\\"class\\\",\\\"overflow-menu\\\"]],[[\\\"@modalContentClassNames\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggleModalDialog\\\",\\\"@parentElement\\\"],[\\\"is-list-btn\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"toggleSub\\\"]]],null],[23,0,[\\\"element\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[14,1,[[23,0,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"toggleSub\\\"]]],null]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[23,0,[\\\"nonPanelFooterClassNames\\\"]]],[8],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/panels/panel-footer/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/right-bar/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['layouts__sidebar', 'layouts__right-bar-container']\n  });\n});","define(\"client/pods/components/layouts/right-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YbOxbLw9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isShowing\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"layouts__right-bar\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"layouts__right-bar-contents\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@title\\\",\\\"@translate\\\"],[\\\"notifications\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[14,1],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasModalOverlay\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"modals/modal-overlay\\\",null,[[\\\"toggle\\\",\\\"modalClassNames\\\"],[[24,[\\\"isShowing\\\"]],\\\"layouts__right-bar-modal-overlay\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/right-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/scroll-into-view/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  /**\n   * Wrapper that scrolls its content into view when rendered, eg when advanced filters are toggled open.\n   * Inactive tabs stay in the DOM but `hidden`, so elements without layout boxes are skipped\n   * to avoid scrolling a tab that is not on screen.\n   */\n  let LayoutsScrollIntoViewComponent = _exports.default = (_dec = Ember._action, _class = class LayoutsScrollIntoViewComponent extends _component.default {\n    scrollIntoView(element) {\n      const isRendered = element.getClientRects().length > 0;\n      if (!isRendered) {\n        return;\n      }\n      element.scrollIntoView({\n        behavior: 'smooth',\n        block: 'nearest'\n      });\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"scrollIntoView\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"scrollIntoView\"), _class.prototype), _class);\n});","define(\"client/pods/components/layouts/scroll-into-view/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"67rFdW2I\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[13,1],[3,\\\"did-insert\\\",[[23,0,[\\\"scrollIntoView\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[14,2],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/scroll-into-view/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/search-panel/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // Search bar and advanced filters share one bordered surface.\n  class LayoutsSearchPanelComponent extends _component.default {}\n  _exports.default = LayoutsSearchPanelComponent;\n});","define(\"client/pods/components/layouts/search-panel/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"RHOsk9y8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isOpen\\\",\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"layouts-search-panel \\\",[28,\\\"if\\\",[[23,1,[]],\\\"layouts-search-panel--open\\\"],null]]]],[13,2],[8],[0,\\\"\\\\n  \\\"],[14,3],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/search-panel/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/search-results/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class LayoutsSearchResultsComponent extends _component.default {}\n  _exports.default = LayoutsSearchResultsComponent;\n});","define(\"client/pods/components/layouts/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"soyAIln7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__list\\\"],[8],[0,\\\"\\\\n  \\\"],[14,1],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/section-container/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // use layouts/section instead?\n\n  class SectionContainer extends _component.default {}\n  _exports.default = SectionContainer;\n});","define(\"client/pods/components/layouts/section-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"q1hZ/820\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@translate\\\",\\\"@title\\\",\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"section-row__outer-container section-row__container\\\"],[13,3],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"section-title\\\"],[8],[1,[28,\\\"tt\\\",[[23,2,[]]],[[\\\"translate\\\"],[[23,1,[]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[14,4],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/section-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/section/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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  // use this instead of section-container\n  let LayoutsSectionComponent = _exports.default = (_dec = Ember._tracked, _class = class LayoutsSectionComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"translate\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.translate);\n    }\n  }), _class);\n});","define(\"client/pods/components/layouts/section/sub/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // use this instead of section-container\n\n  class LayoutsSectionSubComponent extends _component.default {}\n  _exports.default = LayoutsSectionSubComponent;\n});","define(\"client/pods/components/layouts/section/sub/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qoDQFNdg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"layouts-section-sub\\\"],[13,1],[8],[0,\\\"\\\\n  \\\"],[14,2],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/section/sub/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/section/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Udylh7Qx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@translate\\\",\\\"@title\\\",\\\"&attrs\\\",\\\"@contentClassNames\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"layouts-section\\\"],[13,3],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"section-title\\\"],[8],[1,[28,\\\"tt\\\",[[23,2,[]]],[[\\\"translate\\\"],[[23,1,[]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"layouts-section__content \\\",[28,\\\"if\\\",[[23,4,[]],[23,4,[]],\\\"\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[14,5],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/section/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/sidebar/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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, _dec0, _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 LayoutsSidebarComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember.computed('args.showSidebar', 'args.isDisplayNone'), _dec7 = Ember.computed('args.showSidebar', 'args.isDisplayNone'), _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class LayoutsSidebarComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasMobileCloseBtn\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasContentWrapper\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isSticky\", _descriptor4, this);\n      _initializerDefineProperty(this, \"selected\", _descriptor5, this);\n    }\n    /**\n     * Role joined with the nearest tab value to build this sidebar's guide id.\n     * Pass guideId when a screen has a second sidebar on the same side.\n     * @return {string}\n     */\n    get guideRole() {\n      if (this.args.guideId) {\n        return this.args.guideId;\n      }\n      if (this.args.isLeft) {\n        return 'sidebar-left';\n      }\n      return 'sidebar-right';\n    }\n    get useSidebarModal() {\n      return this.applicationService.isMobile || this.args.asSidebarModal === true;\n    }\n    get sidebarClassNames() {\n      if (this.args.isPanel) {\n        if (this.args.isLeft) {\n          return 'panel-grid__sidebar panel-grid__sidebar--left';\n        }\n        return 'tab-grid__sidebar panel-grid__sidebar-right';\n      }\n      if (this.args.isLeft) {\n        return 'tab-grid__sidebar tab-grid__sidebar--left';\n      }\n      return 'tab-grid__sidebar tab-grid__sidebar-right';\n    }\n\n    // check for is display none\n    get showSidebar() {\n      if (this.args?.isDisplayNone === true) {\n        return true;\n      }\n      if (!R.isNil(this.args.showSidebar)) {\n        return this.args.showSidebar;\n      }\n      return false;\n    }\n\n    // check for is display none\n    get isHidden() {\n      if (this.args?.isDisplayNone !== true) {\n        return false;\n      }\n      if (this.args?.showSidebar === true) {\n        return false;\n      }\n      return true;\n    }\n    setStickyTop() {\n      if (!this.isSticky) {\n        return;\n      }\n      this.applicationService.setStickyTop();\n    }\n    select(componentName) {\n      const previouslySelected = this.selected;\n      let selected = '';\n      if (previouslySelected !== componentName) {\n        selected = componentName;\n      }\n      this.selected = selected;\n    }\n    toggleSidebar() {\n      if (this.args.toggleSidebar) {\n        return this.args.toggleSidebar();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasMobileCloseBtn\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.hasMobileCloseBtn);\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasContentWrapper\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.hasContentWrapper);\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isSticky\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.isSticky);\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"selected\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"showSidebar\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"showSidebar\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isHidden\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"isHidden\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setStickyTop\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setStickyTop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSidebar\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSidebar\"), _class.prototype), _class);\n});","define(\"client/pods/components/layouts/sidebar/content/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class LayoutsSidebarContentComponent extends _component.default {}\n  _exports.default = LayoutsSidebarContentComponent;\n});","define(\"client/pods/components/layouts/sidebar/content/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Rq9V1sGn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"sidebar-content\\\"],[13,1],[8],[0,\\\"\\\\n  \\\"],[14,2,[[23,0,[]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/sidebar/content/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/sidebar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yoFmcWQ+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@sidebarClassNames\\\",\\\"&attrs\\\",\\\"@modelContainerClassNames\\\",\\\"@overlayClassNames\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"showSidebar\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"useSidebarModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@isHidden\\\",\\\"@closeOnOverlayClick\\\",\\\"@isSidebar\\\",\\\"@onToggleModalDialog\\\",\\\"@modalContentClassNames\\\",\\\"@modelContainerClassNames\\\",\\\"@overlayClassNames\\\"],[[23,0,[\\\"isHidden\\\"]],true,true,[28,\\\"fn\\\",[[23,0,[\\\"toggleSidebar\\\"]]],null],\\\"modal-container--mobile\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasMobileCloseBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"layouts__sidebar is-sticky-row-auto allow-mobile layouts__close-btn-container\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTopMobile\\\"]]]],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"delete\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleSidebar\\\"]]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",false],[3,\\\"guide-id\\\",null,[[\\\"role\\\"],[[23,0,[\\\"guideRole\\\"]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContentWrapper\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/sidebar/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"\\\\n        layouts__sidebar\\\\n        allow-mobile\\\\n        \\\",[28,\\\"if\\\",[[23,0,[\\\"isSticky\\\"]],\\\"is-sticky-row-auto\\\",\\\"is-not-sticky-row\\\"],null],\\\"\\\\n        \\\",[23,2,[]],\\\"\\\\n        \\\",[23,0,[\\\"sidebarClassNames\\\"]],\\\"\\\\n      \\\"]]],[13,3],[3,\\\"guide-id\\\",null,[[\\\"role\\\"],[[23,0,[\\\"guideRole\\\"]]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContentWrapper\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/sidebar/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/sidebar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/starred/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, RA, _nventor) {\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 LayoutsStarredComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _class = class LayoutsStarredComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasSearched\", _descriptor3, this);\n      _initializerDefineProperty(this, \"personalSavedFilters\", _descriptor4, this);\n      this._setupTask.perform();\n    }\n    *_setupTask() {\n      if (this?.args?.isGuest) {\n        return;\n      }\n      const filters = this.args.filters;\n      if (RA.isNilOrEmpty(filters)) {\n        _nventor.default.throw('filters not found for LAYOUTS::STARRED component');\n        return;\n      }\n\n      // const currentFiltersData = this.getCurrentFiltersState()\n      // this.setCurrentFiltersState(currentFiltersData)\n\n      const menuId = filters.getData('menuId');\n      const personalSavedFilters = yield this.search.getSavedFiltersTask.perform({\n        menuId\n      });\n      Ember.set(this, 'personalSavedFilters', personalSavedFilters);\n    }\n    *searchTask(savedFilter) {\n      const onSearchTask = this.args.onSearchTask;\n      const filters = this.args.filters;\n      yield this.search.loadFromSavedFilters.perform({\n        currentFilters: filters,\n        savedFilter: savedFilter,\n        onAfter: onSearchTask\n      });\n      this.hasSearched = true;\n    }\n    *resetTask() {\n      this.hasSearched = false;\n      const filters = this.args.filters;\n      yield this.crud.reloadSearchRecordsTask.perform({\n        filters,\n        reset: true\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasSearched\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"personalSavedFilters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"_setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"resetTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/layouts/starred/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WUE3DcAy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"savedFilter\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"personalSavedFilters\\\",\\\"_data\\\",\\\"collection\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/scroll-into-view\\\",[[12,\\\"class\\\",\\\"tags-container filter-group-container filter-group-container--saved\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags-header u-v-align-auto\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[\\\"fas fa-star\\\",\\\"u-v-align-auto\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"personalSavedFilters\\\",\\\"_data\\\",\\\"collection\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/tag-btn\\\",[],[[\\\"@truncateClassName\\\",\\\"@model\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@onRemove\\\"],[\\\"u-truncate--100\\\",[23,1,[]],[23,1,[\\\"_data\\\",\\\"label\\\"]],[28,\\\"or\\\",[[23,0,[\\\"search\\\",\\\"removeSavedFiltersTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"search\\\",\\\"loadFromSavedFilters\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"searchTask\\\"]],[23,1,[]]],null],[28,\\\"perform\\\",[[23,0,[\\\"search\\\",\\\"removeSavedFiltersTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasSearched\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,2,[]],[23,0,[\\\"resetTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"resetTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/starred/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/table-view/component\", [\"exports\", \"ember-concurrency\", \"ramda\"], function (_exports, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    showFilters: false,\n    headerRowComponent: '',\n    filtersRowComponent: '',\n    detailsRowComponent: '',\n    hasHeaders: true,\n    hasHeadersSort: true,\n    hasFilters: true,\n    paginationIsFooter: true,\n    showPageNumbers: true,\n    search: Ember.inject.service(),\n    storage: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      const allowShowStarred = R.propOr(true, 'allowShowStarred')(this);\n      this.set('isAllowShowStarred', allowShowStarred);\n      this._setupTask.perform();\n    },\n    _setupTask: (0, _emberConcurrency.task)(function* () {\n      const detailsRowComponent = this.detailsRowComponent;\n      const headerRowComponent = this.headerRowComponent;\n      if (!headerRowComponent) {\n        this.set('headerRowComponent', detailsRowComponent);\n      }\n      const filtersRowComponent = this.filtersRowComponent;\n      if (!filtersRowComponent) {\n        this.set('filtersRowComponent', detailsRowComponent);\n      }\n      const filters = this.filters;\n      if (filters) {\n        const currentFiltersData = this.getCurrentFiltersState();\n        this.setCurrentFiltersState(currentFiltersData);\n        const menuId = filters.getData('menuId');\n        if (!this?.args?.tableViewOptions?.isGuest) {\n          const personalSavedFilters = yield this.search.getSavedFiltersTask.perform({\n            menuId\n          });\n          this.set('personalSavedFilters', personalSavedFilters);\n        }\n      }\n      if (this.listAdapters) {\n        const listAdapters = this.listAdapters || [];\n        this.crud.addLists(this, listAdapters, {\n          onAfter: this.onAfterAddLists\n        });\n      }\n    }),\n    getCurrentFiltersState() {\n      const filters = this.filters;\n      return filters.serialize();\n    },\n    setCurrentFiltersState(currentFiltersData) {\n      this.set('previousFiltersData', currentFiltersData);\n    },\n    updateFiltersAndSearchTask: (0, _emberConcurrency.task)(function* () {\n      if (this.filters) {\n        // const previousFiltersData = this.previousFiltersData\n        const currentFiltersData = this.getCurrentFiltersState();\n\n        // if (!R.equals(previousFiltersData, currentFiltersData)) {\n        this.setCurrentFiltersState(currentFiltersData);\n        if (this.onSearchTask.perform) {\n          return yield this.onSearchTask.linked().perform(...arguments);\n        }\n        return yield this.onSearchTask({\n          filters: this.filters\n        });\n        // }\n      }\n    }),\n    getElementFromNextAvailableRow(direction, currentRow, elementClassName, e) {\n      let nextRow;\n      if (direction === 'next') {\n        nextRow = $(currentRow).next();\n      } else {\n        nextRow = $(currentRow).prev();\n      }\n      if (nextRow.length === 0) {\n        return false;\n      }\n      const nextInput = nextRow.find(`.${elementClassName} input`);\n      if (nextInput.length === 0) {\n        return this.getElementFromNextAvailableRow(direction, nextRow, elementClassName, e);\n      }\n      return nextInput;\n    },\n    goToNextRow(elementClassName, e) {\n      // get current row...go up or down based on key pressed\n      const keyCode = e.keyCode || e.which;\n\n      // go up 1 row\n      if (keyCode === 38) {\n        e.preventDefault();\n        const parentRow = $(e.target).closest('.table-view__detail-row');\n        const prevInput = this.getElementFromNextAvailableRow('prev', parentRow, elementClassName, e);\n        if (prevInput) {\n          prevInput.select();\n          prevInput.focus();\n        }\n      }\n\n      // go down 1 row\n      if (keyCode === 40) {\n        e.preventDefault();\n        const parentRow = $(e.target).closest('.table-view__detail-row');\n        const nextInput = this.getElementFromNextAvailableRow('next', parentRow, elementClassName, e);\n        if (nextInput) {\n          nextInput.select();\n          nextInput.focus();\n        }\n      }\n    },\n    actions: {\n      goToNextRow(elementClassName, e) {\n        this.goToNextRow(elementClassName, e);\n      }\n    }\n  });\n});","define(\"client/pods/components/layouts/table-view/table-row-container/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    rowIndex: Ember.computed('index', 'filters._data.{page,count}', function () {\n      const page = parseInt(this.get('filters._data.page')) || 1;\n      const count = parseInt(this.get('filters._data.count')) || 20;\n      const index = parseInt(this.index) + 1;\n      return (page - 1) * count + index;\n    })\n  });\n});","define(\"client/pods/components/layouts/table-view/table-row-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+qgoXVPW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1,[[23,0,[]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/table-view/table-row-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/table-view/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Tpbh1wgk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"model\\\",\\\"index\\\",\\\"row\\\",\\\"@onPaginationTask\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@tableViewOptions\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@tab\\\",\\\"@onSearchTask\\\",\\\"@onSave\\\",\\\"@onResetSearchRecordsTask\\\",\\\"@onRemove\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onMainAction\\\",\\\"@onEdit\\\",\\\"@onDisplay\\\",\\\"@onCancel\\\",\\\"@lists\\\",\\\"@isSelectedByProductTags\\\",\\\"@isDisplay\\\",\\\"&default\\\",\\\"@model\\\",\\\"@tableClassNames\\\",\\\"@onAfterSearch\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"topFiltersComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"new-table-view__filters-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"showFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/scroll-into-view\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"topFiltersComponent\\\"]]],[[\\\"filters\\\",\\\"crud\\\",\\\"tableViewOptions\\\",\\\"isGuest\\\",\\\"disallowSaveFilters\\\",\\\"onSearch\\\",\\\"onResetSearchRecordsTask\\\",\\\"isRunning\\\",\\\"tab\\\"],[[23,6,[]],[23,0,[\\\"crud\\\"]],[23,7,[]],[23,7,[\\\"isGuest\\\"]],[23,7,[\\\"disallowSaveFilters\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateFiltersAndSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfterSearch\\\"],[[23,6,[]],[23,26,[]]]]]],null],[23,13,[]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"updateFiltersAndSearchTask\\\",\\\"isRunning\\\"]]],null],[23,10,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,7,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,7,[\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isAllowShowStarred\\\"]],[23,6,[\\\"showStarred\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"layouts/starred\\\",[],[[\\\"@filters\\\",\\\"@onSearchTask\\\"],[[23,6,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,6,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"detailsRowComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"table\\\",true],[11,\\\"class\\\",[29,[\\\"new-table-view u-full-width\\\\n\\\\t\\\\t\\\",[23,25,[]],\\\"\\\\n\\\\t\\\\t\\\",[28,\\\"if\\\",[[23,8,[]],\\\"is-editing\\\"],null],\\\"\\\\n\\\\t\\\\t\\\",[28,\\\"if\\\",[[23,9,[]],\\\"is-new\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"headerRowComponent\\\"]]],[[\\\"hasFilters\\\",\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"isDisplay\\\",\\\"isEditing\\\",\\\"isHeaders\\\",\\\"isNew\\\",\\\"lists\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onResetSearchRecordsTask\\\",\\\"onSearchTask\\\",\\\"results\\\",\\\"showFilters\\\",\\\"tableViewOptions\\\"],[[23,0,[\\\"hasFilters\\\"]],[23,0,[\\\"hasHeadersSort\\\"]],[23,6,[]],[23,22,[]],[23,8,[]],true,[23,9,[]],[23,20,[]],[23,4,[]],[23,15,[]],[23,13,[]],[23,11,[]],[23,5,[]],[23,0,[\\\"showFilters\\\"]],[23,7,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"hasFilters\\\"]],[23,6,[\\\"showFilters\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"filtersRowComponent\\\"]]],[[\\\"filters\\\",\\\"hasFilters\\\",\\\"isDisplay\\\",\\\"isEditing\\\",\\\"isFilters\\\",\\\"isNew\\\",\\\"lists\\\",\\\"model\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onResetSearchRecordsTask\\\",\\\"onResetSearchTask\\\",\\\"onSearchTask\\\",\\\"results\\\",\\\"tableViewOptions\\\"],[[23,6,[]],[23,0,[\\\"hasFilters\\\"]],[23,22,[]],[23,8,[]],true,[23,9,[]],[23,20,[]],[23,24,[]],[23,4,[]],[23,15,[]],[23,13,[]],[23,0,[\\\"resetFiltersAndSearchTask\\\"]],[23,0,[\\\"updateFiltersAndSearchTask\\\"]],[23,5,[]],[23,7,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,23]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[14,23,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/table-view/table-row-container\\\",[],[[\\\"@filters\\\",\\\"@index\\\"],[[23,6,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"detailsRowComponent\\\"]]],[[\\\"currentIndex\\\",\\\"filters\\\",\\\"isDetailRow\\\",\\\"isDisplay\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isSelectedByProductTags\\\",\\\"lists\\\",\\\"model\\\",\\\"onCancel\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onGoToNextRow\\\",\\\"onMainAction\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onRemove\\\",\\\"onResetSearchRecordsTask\\\",\\\"onSave\\\",\\\"onSearchTask\\\",\\\"results\\\",\\\"rowIndex\\\",\\\"tab\\\",\\\"tableViewOptions\\\"],[[23,2,[]],[23,6,[]],true,[23,22,[]],[23,8,[]],[23,9,[]],[23,21,[]],[23,20,[]],[23,1,[]],[23,19,[]],[23,18,[]],[23,17,[]],[28,\\\"action\\\",[[23,0,[]],\\\"goToNextRow\\\"],null],[23,16,[]],[23,4,[]],[23,15,[]],[23,14,[]],[23,13,[]],[23,12,[]],[23,11,[]],[23,5,[]],[23,3,[\\\"rowIndex\\\"]],[23,10,[]],[23,7,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"has-text-centered u-v-align-middle\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/no-data\\\",[],[[],[]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not\\\",[[28,\\\"or\\\",[[23,9,[]],[23,8,[]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"paginationIsFooter\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/panels/panel-footer\\\",[[12,\\\"class\\\",\\\"u-margin-top-10\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"component\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\",\\\"showPageNumbers\\\"],[[23,7,[\\\"parentComponent\\\"]],[23,6,[]],[23,5,[]],[23,4,[]],[23,0,[\\\"showPageNumbers\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"u-margin-top-10\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"component\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\",\\\"showPageNumbers\\\"],[[23,7,[\\\"parentComponent\\\"]],[23,6,[]],[23,5,[]],[23,4,[]],[23,0,[\\\"showPageNumbers\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/table-view/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/tabs/grid/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor;\n  /**\n   * @module LayoutsTabsGridComponent\n   * @description Component for tab grid\n   */\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 LayoutsTabsGridComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.computed('args.parentComponent.sidebarRight.component'), _class = class LayoutsTabsGridComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n    }\n    get hasSidebarComponent() {\n      const component = this.args.parentComponent?.sidebarRight?.component;\n      return !R.isNil(component);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"hasSidebarComponent\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"hasSidebarComponent\"), _class.prototype), _class);\n});","define(\"client/pods/components/layouts/tabs/grid/content/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module LayoutsTabsGridContentComponent\n   * @description Component for tab grid content\n   */\n\n  class LayoutsTabsGridContentComponent extends _component.default {}\n  _exports.default = LayoutsTabsGridContentComponent;\n});","define(\"client/pods/components/layouts/tabs/grid/content/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aWKj/VWk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"tab-grid__content\\\"],[13,1],[8],[0,\\\"\\\\n  \\\"],[14,2],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/tabs/grid/content/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/tabs/grid/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MiNjho+L\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\",\\\"@parentComponent\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"tab-grid\\\"],[13,1],[8],[0,\\\"\\\\n\\\\n  \\\"],[14,2],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isRight\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\",\\\"@hasMobileCloseBtn\\\",\\\"@hasContentWrapper\\\"],[true,[23,0,[\\\"hasSidebarComponent\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPath\\\"]],[23,3,[]],\\\"sidebarRight\\\",\\\"\\\"],null],false,false]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"layouts__sidebar is-sticky-row-auto allow-mobile layouts__close-btn-container\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTopMobile\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"delete\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"closeSidebarRight\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/sidebar/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,3,[\\\"sidebarRight\\\",\\\"component\\\"]]],[[\\\"tab\\\",\\\"sidebarOptions\\\"],[[23,4,[]],[23,3,[\\\"sidebarRight\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-grid__modal\\\"],[8],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/tabs/grid/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/tabs/header/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA) {\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, _dec0, _dec1, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  /**\n   * @module LayoutsTabsHeaderComponent\n   * @description Component for the header of the tab layout\n   * @param {boolean} [hasSpacer=false] - Determines if a spacer should be added to the header\n   */\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 LayoutsTabsHeaderComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class LayoutsTabsHeaderComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"isFloating\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasLoaded\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasOverflowX\", _descriptor4, this);\n      // @tracked lastHasOverflowXState = false\n      _initializerDefineProperty(this, \"originalScrollWidth\", _descriptor5, this);\n      _initializerDefineProperty(this, \"overFlowXWidth\", _descriptor6, this);\n      _initializerDefineProperty(this, \"showSub\", _descriptor7, this);\n      _initializerDefineProperty(this, \"element\", _descriptor8, this);\n      _defineProperty(this, \"resizeObserver\", null);\n      _defineProperty(this, \"mutationObserver\", null);\n      _defineProperty(this, \"hasAllBtnsLoaded\", false);\n      _defineProperty(this, \"debounceWaitTime\", 150);\n      // Adjust this value as needed\n      _defineProperty(this, \"isCheckingOverflow\", false);\n    }\n    didInsert(element) {\n      this.element = element;\n      const debouncedResize = () => {\n        Ember.run.debounce(this, this.checkHasOverflowX, this.debounceWaitTime);\n      };\n\n      // listen for window resize\n      window.addEventListener('resize', debouncedResize);\n\n      // listen for element resize\n      this.resizeObserver = new window.ResizeObserver(R.pipe(R.head,\n      // Take first entry\n      () => Ember.run.debounce(this, this.checkHasOverflowX, this.debounceWaitTime)));\n      this.resizeObserver.observe(element);\n      this.mutationObserver = new window.MutationObserver(() => {\n        const hasLoaded = this.checkHasLoaded();\n        if (hasLoaded) {\n          this.checkHasOverflowX();\n          this.mutationObserver.disconnect();\n          this.mutationObserver = null;\n        }\n      });\n      this.mutationObserver.observe(element, {\n        childList: true,\n        subtree: true,\n        attributes: true\n      });\n    }\n    willDestroyElement() {\n      if (this.isDestroyed) {\n        return;\n      }\n      window.removeEventListener('resize', this.checkHasOverflowX);\n      if (this.resizeObserver) {\n        this.resizeObserver.disconnect();\n        this.resizeObserver = null;\n      }\n      if (this.mutationObserver) {\n        this.mutationObserver.disconnect();\n        this.mutationObserver = null;\n      }\n    }\n    toggleSub() {\n      this.showSub = !this.showSub;\n    }\n    checkHasLoaded() {\n      const element = this.element;\n      const btnGroups = element.querySelectorAll('.layouts__btns-container');\n      const hasAllBtnsLoaded = Array.from(btnGroups).reduce((acc, group) => {\n        if (acc === false) {\n          return false;\n        }\n        return group.offsetWidth > 0;\n      }, true);\n      this.hasAllBtnsLoaded = hasAllBtnsLoaded;\n      return hasAllBtnsLoaded;\n    }\n    checkHasOverflowX() {\n      if (this.isCheckingOverflow) {\n        return;\n      }\n      this.isCheckingOverflow = true;\n      const element = this.element;\n      if (!this.hasAllBtnsLoaded) {\n        this.isCheckingOverflow = false;\n        return;\n      }\n      const width = window.innerWidth;\n      if (width <= this.overFlowXWidth) {\n        this.isCheckingOverflow = false;\n        return;\n      }\n      if (width <= this.originalScrollWidth && this.hasOverflowX) {\n        this.isCheckingOverflow = false;\n        return;\n      }\n      const hasOverflowXData = this.applicationService.checkHasOverflowX(element);\n      const hasOverflowX = hasOverflowXData?.hasOverflowX;\n      this.hasOverflowX = hasOverflowX;\n      if (this.originalScrollWidth < hasOverflowXData?.scrollWidth && this.lastHasOverflowXState === false && hasOverflowX) {\n        this.originalScrollWidth = hasOverflowXData?.scrollWidth;\n      }\n      if (hasOverflowX) {\n        this.overFlowXWidth = width;\n      } else {\n        this.overFlowXWidth = 0;\n      }\n      this.isCheckingOverflow = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isFloating\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, false, this.args.isFloating);\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasLoaded\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasOverflowX\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"originalScrollWidth\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"overFlowXWidth\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"showSub\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"willDestroyElement\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroyElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSub\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSub\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkHasOverflowX\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"checkHasOverflowX\"), _class.prototype), _class);\n});","define(\"client/pods/components/layouts/tabs/header/left/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 LayoutsTabsHeaderLeftComponent = _exports.default = (_dec = Ember.inject.service('application'), _class = class LayoutsTabsHeaderLeftComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/layouts/tabs/header/left/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vkjQ9i3g\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isFloating\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"tab-grid__header-group tab-grid__header-group--left \\\",[28,\\\"if\\\",[[23,1,[]],\\\"is-floating\\\"],null]]]],[8],[0,\\\"\\\\n\\\\t\\\"],[14,2],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/tabs/header/left/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/tabs/header/right/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\", \"client/config/environment\"], function (_exports, _component, RA, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor;\n  /**\n   * @module LayoutsTabsHeaderRightComponent\n   * @description Component for the right side of the header of the tab layout\n   * @param {String} resource - resource name to show documentation and rules\n   */\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 LayoutsTabsHeaderRightComponent = _exports.default = (_dec = Ember.inject.service('application'), _class = class LayoutsTabsHeaderRightComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n    }\n    get documentationResource() {\n      // args.documentationResource is an override\n      let documentationResource = this.args.documentationResource || '';\n      if (RA.isNilOrEmpty(documentationResource) && this.args.resource) {\n        documentationResource = this.args.resource + '-help';\n      }\n      if (_environment.default.environment === 'development') {\n        if (R.includes('/')(documentationResource)) {\n          alert(`documentationResource \"${documentationResource}\" is not a valid resource`);\n          documentationResource = R.replace(/\\//g, '-')(documentationResource);\n          alert(`documentationResource should be \"${documentationResource}\" in template`);\n        }\n      }\n      if (!documentationResource) {\n        return '';\n      }\n      return documentationResource;\n    }\n    get rulesResource() {\n      if (this.args.rulesResource) {\n        return this.args.rulesResource;\n      }\n      return this.args.resource;\n    }\n    get documentationOptions() {\n      const options = this.args.documentationOptions || {};\n      if (RA.isNotNilOrEmpty(options)) {\n        options.component = 'documentation/sidebar';\n        return options;\n      }\n      return {\n        component: 'documentation/sidebar',\n        documentationHelp: {\n          documentationResource: this.documentationResource,\n          expanded: true\n        }\n      };\n    }\n    get rulesOptions() {\n      const options = this.args.rulesOptions || {};\n      if (RA.isNotNilOrEmpty(options)) {\n        options.component = 'comments/rules-sidebar';\n        return options;\n      }\n      return {\n        component: 'comments/rules-sidebar',\n        type: this.rulesResource\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/layouts/tabs/header/right/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UbAkMzTQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tabsHeaderComponent\\\",\\\"@isOverflowMenu\\\",\\\"@onToggleOverflowMenu\\\",\\\"@component\\\",\\\"@isFloating\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"tab-grid__header-group tab-grid__header-group--right \\\",[28,\\\"if\\\",[[23,5,[]],\\\"is-floating\\\"],null]]]],[11,\\\"data-documentation-resource\\\",[23,0,[\\\"documentationResource\\\"]]],[8],[0,\\\"\\\\n\\\\t\\\"],[14,6],[0,\\\"\\\\t\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"documentationResource\\\"]],[23,0,[\\\"rulesResource\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"documentationResource\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@displayAsSubHeaderLabel\\\",\\\"@onSubmit\\\"],[\\\"fa-solid fa-question\\\",[28,\\\"if\\\",[[23,2,[]],\\\"help\\\",\\\"\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleSidebarRight\\\"]],[23,4,[]],[23,0,[\\\"documentationOptions\\\"]]],null],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"documentation/features-popup\\\",[],[[\\\"@fetchDocumentationResource\\\"],[[23,0,[\\\"documentationResource\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"rulesResource\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@displayAsSubHeaderLabel\\\",\\\"@onSubmit\\\"],[\\\"fa-solid fa-book\\\",[28,\\\"if\\\",[[23,2,[]],\\\"knowledge base\\\",\\\"\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleSidebarRight\\\"]],[23,4,[]],[23,0,[\\\"rulesOptions\\\"]]],null],[23,3,[]]]]]],null]]]],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasOverflowX\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,true,[23,1,[\\\"showSub\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/tabs/header/right/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/tabs/header/search-bar/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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   * The main search bar of a tab. Searches by query on top of default filters,\n   * so criteria picked in advanced search do not narrow its results.\n   */\n  let LayoutsTabsHeaderSearchBarComponent = _exports.default = (_dec = Ember.inject.service, _class = class LayoutsTabsHeaderSearchBarComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/layouts/tabs/header/search-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WL0k3Rua\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@onBefore\\\",\\\"@newFiltersDefaultData\\\",\\\"@newFilters\\\",\\\"@filters\\\",\\\"@component\\\",\\\"@allowEmptyQuery\\\",\\\"@adapterName\\\",\\\"@placeholder\\\",\\\"@translatedPlaceholder\\\"],\\\"statements\\\":[[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@placeholder\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[23,1,[]]],null],true,[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"allowEmptyQuery\\\",\\\"component\\\",\\\"filters\\\",\\\"isSearchBar\\\",\\\"newFilters\\\",\\\"newFiltersDefaultData\\\",\\\"onBefore\\\",\\\"onAfter\\\"],[[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]],true,[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]]],null],[23,10,[]],[23,11,[]],[23,6,[\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/tabs/header/search-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/layouts/tabs/header/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8Oe+5EY9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@isWizard\\\",\\\"@guideId\\\",\\\"@hasSpacer\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isFloating\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"tab-grid__header \\\",[28,\\\"if\\\",[[23,0,[\\\"hasOverflowX\\\"]],\\\"has-overflow\\\",\\\"\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"is-wizard\\\",\\\"\\\"],null]]]],[3,\\\"guide-id\\\",null,[[\\\"role\\\"],[[28,\\\"or\\\",[[23,3,[]],\\\"header\\\"],null]]]],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"didInsert\\\"]]],null]]],[3,\\\"will-destroy\\\",[[28,\\\"fn\\\",[[23,0,[\\\"willDestroyElement\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showSub\\\"]],[23,0,[\\\"hasOverflowX\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-container-new\\\",[[12,\\\"class\\\",\\\"overflow-menu\\\"]],[[\\\"@modalContentClassNames\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggleModalDialog\\\",\\\"@parentElement\\\"],[\\\"is-list-btn\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"toggleSub\\\"]]],null],[23,0,[\\\"element\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[14,1,[[23,0,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"toggleSub\\\"]]],null]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tab-grid__header-spacer\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/layouts/tabs/header/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/accounts/account-editor/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    adapterName: 'ledgers/accounts',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['ledgers/accounts/lists/account-types']);\n      const isEditing = this.isEditing;\n      if (isEditing) {\n        const dirty = this.setupDirty({\n          adapterName: 'ledgers/accounts',\n          model: this.model\n        });\n        this.set('model', dirty);\n      } else {\n        const model = this.crud.setupNewRecord({\n          adapterName: 'ledgers/accounts',\n          data: {}\n        });\n        this.set('model', model);\n      }\n    },\n    afterCreateRecordTask(model) {\n      this.onAddItem(model);\n      this.onCloseDialogAction();\n    },\n    afterReplaceRecordTask(model) {\n      // this.onUpdateItem(model)\n      this.onCloseDialogAction?.();\n    },\n    afterRemoveRecordTask() {\n      // this.onRemoveItem(this.model)\n    },\n    actions: {\n      cancel(model) {\n        if (this.isEditing) {\n          this.cancelEditing({\n            dirty: model\n          });\n          this.set('showEditor', false);\n        } else {\n          this.onCloseDialogAction();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/ledgers/accounts/account-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GXN8LTeR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"ledgerAccountEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"ledgerAccount\\\",[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,6,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"ledger account\\\",\\\"ledgerAccount_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isModal\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"code\\\",[23,1,[]],true,true,\\\"code\\\",[23,0,[\\\"model\\\"]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@value\\\"],[true,\\\"code\\\",true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isModal\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"category\\\",[23,1,[]],true,true,\\\"category\\\",[23,0,[\\\"model\\\"]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@value\\\"],[true,\\\"category\\\",true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"category\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isModal\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"description\\\",[23,1,[]],true,\\\"description\\\",[23,0,[\\\"model\\\"]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@value\\\"],[true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isModal\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"type\\\",[23,1,[]],true,true,\\\"type\\\",[23,0,[\\\"model\\\"]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@context\\\",\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[\\\"type\\\",true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ledgers-accounts-lists-account-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"delete\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[28,\\\"perform\\\",[[24,[\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",[24,[\\\"disabled\\\"]],[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",[24,[\\\"disabled\\\"]],[24,[\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/accounts/account-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/accounts/account-search-results/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div'\n    // init () {\n    //   this._super(...arguments)\n\n    //   this.crud.addLists(this, [\n    //     'contacts/lists/relationships',\n    //     'contacts/lists/tags',\n    //     'statuses'\n    //   ])\n    // }\n    // statusTagClassName: computed('result._data.status', function () {\n    //   const status = this.get('result._data.status')\n\n    //   if (status === this.get('constants.status.active')) {\n    //     return 'list-tags__item--active-status'\n    //   } else {\n    //     return 'list-tags__item--inactive-status'\n    //   }\n    // })\n  });\n});","define(\"client/pods/components/ledgers/accounts/account-search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fNW2VfJ8\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"category\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"category\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"description\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"description\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"type\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[28,\\\"tt\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"type\\\"]]],null],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/accounts/account-search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/accounts/aging/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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 ProductsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('products'), _dec3 = Ember.inject.service, _class = class ProductsFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      yield this.crud.addLists(this, [{\n        name: 'taxes',\n        appendPath: 'products'\n      }, 'filters/count', 'paymentTerms']);\n    }\n    get showResetFilter() {\n      // @TODO: move to filter model\n      const filtersData = this?.args?.filters?._data;\n      if (RA.isNilOrEmpty(filtersData)) {\n        return false;\n      }\n      const statuses = filtersData.statuses;\n      const hasImages = filtersData.hasImages;\n      const item = filtersData.item;\n      const itemCode = filtersData.itemCode;\n      const price = filtersData.price;\n      const setTypes = filtersData.setTypes;\n      const tags = filtersData.tags;\n      if (statuses.length !== 5 || tags.length !== 0 || setTypes.length !== 0 || RA.isNilOrEmpty(hasImages) !== true || item !== '' || itemCode !== '' || price !== '') {\n        return true;\n      }\n      return false;\n    }\n    *updateFiltersTask() {\n      // @TODO: how can this be improved?\n      const filters = this.args.filters || {};\n      Ember.set(filters, '_data', filters?._data || {}); // reset data\n\n      return yield this.args.onSearchTask(...arguments);\n    }\n    *clearSelectedItemsTask() {\n      yield this?.crud?.reloadSearchRecordsTask.perform({\n        filters: this.args.filters,\n        reset: true\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateFiltersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedItemsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedItemsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/ledgers/accounts/aging/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9Jt6B4u3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@isGuest\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"contact\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"company\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"contactCode\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"code\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,4,[]],[23,1,[\\\"paymentTermsCount\\\"]],\\\"payment terms\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[false,\\\"payment terms\\\",\\\"filter-group-legend\\\",[23,5,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],[23,1,[]],true,\\\"_data._key\\\",\\\"_data.label\\\",\\\"_data.paymentTerms\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",true,false,[23,1,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--tags\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags-container tags-container--margin-right-all\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"paymentTermsCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms\\\"]],[23,1,[\\\"_data\\\",\\\"paymentTerms\\\"]],\\\"_data._key\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"hide\\\",\\\"fas fa-angle-up\\\",[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,1,[]],\\\"showFilters\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,1,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,4,[]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,1,[]],true]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,4,[]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/accounts/aging/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/accounts/aging/panels-display/component\", [\"exports\", \"client/mixins/date\", \"ramda\"], function (_exports, _date, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    crud: Ember.inject.service(),\n    applicationService: Ember.inject.service('application'),\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const period = this.get('tab.period');\n      this.set('period', period);\n    },\n    monthName: Ember.computed('currentPeriod.mm', function () {\n      const pastMonths = this.getPastMonths(12);\n      const mm = this?.currentPeriod?.mm;\n      return R.pipe(R.find(R.propEq('mm', mm)), R.propOr('', 'name'))(pastMonths);\n    })\n  });\n});","define(\"client/pods/components/ledgers/accounts/aging/panels-display/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 LedgersJournalsCashbookPanelsOverviewTableViewDetailRow = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('contacts'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _class = class LedgersJournalsCashbookPanelsOverviewTableViewDetailRow extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"contactModel\", _descriptor5, this);\n    }\n    *getContactTask() {\n      const contactKey = this?.args?.model?._data?.contactKey || '';\n      const result = yield this.crud.findTask.perform({\n        adapterName: 'contacts',\n        appendPath: `/${contactKey}`\n      });\n      this.contactModel = result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"contactModel\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getContactTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getContactTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/ledgers/accounts/aging/panels-display/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"N1/tfGUK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@tableViewOptions\\\",\\\"@rowIndex\\\",\\\"@isDetailRow\\\",\\\"@filters\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,12,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"company\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"payment terms\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"current\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"30 days\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"60 days\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"90 days\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"120+ days\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"total due\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"getContactTask\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,10,[]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,8,[\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,8,[\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,8,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,8,[\\\"_data\\\",\\\"contactCode\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,8,[\\\"_data\\\",\\\"contactCode\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,8,[\\\"_data\\\",\\\"contactCode\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,8,[\\\"_data\\\",\\\"paymentTermsData\\\",\\\"label\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"0\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"invoices\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"0\\\",\\\"invoices\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"returns\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"0\\\",\\\"returns\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"payments\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"0\\\",\\\"total-allocated-cashOut\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"receipts\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"0\\\",\\\"total-allocated-cashIn\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"0\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total due\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"0\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"1\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,5,[]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"invoices\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"1\\\",\\\"invoices\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"returns\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"1\\\",\\\"returns\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"payments\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"1\\\",\\\"total-allocated-cashOut\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"receipts\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"1\\\",\\\"total-allocated-cashIn\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"1\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total due\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"1\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"2\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"invoices\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"2\\\",\\\"invoices\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"returns\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"2\\\",\\\"returns\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"payments\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"2\\\",\\\"total-allocated-cashOut\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"receipts\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"2\\\",\\\"total-allocated-cashIn\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"2\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total due\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"2\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"3\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"invoices\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"3\\\",\\\"invoices\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"returns\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"3\\\",\\\"returns\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"payments\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"3\\\",\\\"total-allocated-cashOut\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"receipts\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"3\\\",\\\"total-allocated-cashIn\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"3\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total due\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"3\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"4\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"invoices\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"4\\\",\\\"invoices\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,9,[\\\"docType\\\"]],\\\"-\\\",\\\"returns\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"4\\\",\\\"returns\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"payments\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"4\\\",\\\"total-allocated-cashOut\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"receipts\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"4\\\",\\\"total-allocated-cashIn\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"4\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total due\\\"],null],false],[0,\\\":\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"aging\\\",\\\"4\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,8,[\\\"_data\\\",\\\"totalDue\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"contactData\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@type\\\",\\\"@master\\\",\\\"@isPreview\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",[23,7,[]],\\\"statement\\\",[23,8,[\\\"_data\\\",\\\"contactData\\\",\\\"_data\\\",\\\"_key\\\"]],true,[28,\\\"hash\\\",null,[[\\\"contact\\\",\\\"contactKey\\\",\\\"name\\\",\\\"mm\\\",\\\"yyyy\\\"],[[23,8,[\\\"_data\\\",\\\"contactData\\\",\\\"_data\\\",\\\"name\\\"]],[23,8,[\\\"_data\\\",\\\"contactData\\\",\\\"_data\\\",\\\"_key\\\"]],[23,8,[\\\"_data\\\",\\\"contactData\\\",\\\"_data\\\",\\\"name\\\"]],[23,7,[\\\"period\\\",\\\"mm\\\"]],[23,7,[\\\"period\\\",\\\"yyyy\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@closeOnOverlayClick\\\"],[\\\"fas fa-eye\\\",\\\"detailed statement\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"contacts/panels-display/sub-panels-statements\\\",[],[[\\\"@model\\\",\\\"@tab\\\",\\\"@period\\\",\\\"@paymentDueDateZ\\\",\\\"@paymentDueDate\\\",\\\"@isFromLedgersAccountAging\\\"],[[23,0,[\\\"contactModel\\\"]],[23,7,[]],[23,9,[\\\"currentPeriod\\\"]],[23,9,[\\\"paymentDueDateZ\\\"]],[23,9,[\\\"paymentDueDate\\\"]],true]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/accounts/aging/panels-display/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/accounts/aging/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7i8yIXMK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@currentPeriod\\\",\\\"@paymentDueDateZ\\\",\\\"@onReloadStatementOnDueDateChangeTask\\\",\\\"@onRunningTask\\\",\\\"@tab\\\",\\\"@filters\\\",\\\"@docType\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"monthName\\\"]]],null],false],[0,\\\" \\\"],[1,[23,4,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[22,\\\"formInitData\\\"],\\\"payment due date\\\",\\\"paymentDueDate\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"paymentDueDateZ\\\",[23,0,[]],[23,5,[]],[28,\\\"perform\\\",[[23,6,[]]],null],[23,7,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@results\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@tableViewOptions\\\"],[\\\"new-table-view--data\\\",[23,8,[]],\\\"ledgers/accounts/aging/panels-display/table-view/detail-row\\\",[23,9,[]],[23,9,[\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"docType\\\",\\\"currentPeriod\\\",\\\"paymentDueDateZ\\\"],[[23,10,[]],[23,0,[\\\"currentPeriod\\\"]],[23,5,[]]]]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\"],[[23,9,[]],[23,9,[\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/accounts/aging/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/accounts/aging/tab-container/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _date, _crud, _emberConcurrency, R, RA, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    search: Ember.inject.service(),\n    date: Ember.inject.service(),\n    applicationService: Ember.inject.service('application'),\n    adapterName: 'contacts/aging',\n    filtersAdapterName: 'contacts/aging/filters',\n    currentPeriod: '',\n    paymentDueDateZ: '',\n    yyyy: '',\n    mm: '',\n    init() {\n      this._super(...arguments);\n      const tab = this.tab;\n      const docType = tab.get('docType');\n      this.set('docType', docType);\n      const pastMonths = this.getPastMonths(12);\n      this.set('pastMonths', pastMonths);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      filters.set('showResults', true);\n      this.filters = filters;\n      this.crud.addLists(this, ['contacts/lists/allowed-payment-method', 'filters/count']);\n      const period = this.date.getPeriod();\n      Ember.set(this, 'yyyy', period.yyyy);\n    },\n    afterLoadLists() {\n      const thisMonth = this.date.getPeriod();\n      this.displayByMonthTask.perform(thisMonth);\n      this.display(thisMonth, this.filters);\n    },\n    display(period, filters) {\n      const subTabOptions = {\n        component: 'ledgers/accounts/aging/panels-display',\n        period: period,\n        filters,\n        docType: this?.tab?.docType || ''\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    displayAgingTask: (0, _emberConcurrency.task)(function* (period) {\n      const docType = this.docType;\n      const yyyy = period?.yyyy || '';\n      const mm = period?.mm || '';\n      const allowedPaymentMethodForStatement = R.pipe(R_.dotPathOr([], 'crud.lists.contacts-lists-allowed-payment-method'), R.pluck('_data'))(this);\n      const filters = this.filters;\n      filters.setData('docType', docType);\n      filters.setData('yyyy', yyyy);\n      filters.setData('mm', mm);\n      filters.setData('allowedPaymentMethodForStatement', allowedPaymentMethodForStatement);\n      filters.setData('paymentDueDateZ', this?.paymentDueDateZ || '');\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: `contacts/aging/${docType}`,\n        filters: filters\n      });\n    }),\n    reloadStatementOnDueDateChangeTask: (0, _emberConcurrency.task)(function* () {\n      const currentPeriod = this?.currentPeriod || {};\n      if (RA.isNotNilOrEmpty(currentPeriod)) {\n        yield this.displayAgingTask.perform(currentPeriod);\n      }\n    }),\n    displayByMonthTask: (0, _emberConcurrency.task)(function* (period) {\n      const dateEnd = this.date.formatDateForUrl(this.date.getMonthEnd(period.yyyy, period.mm));\n      this.set('paymentDueDateZ', this.date.getMoment(dateEnd).toISOString());\n      this.set('currentPeriod', period);\n      yield this.displayAgingTask.perform(period);\n    }),\n    displayByCustomMonthTask: (0, _emberConcurrency.task)(function* (mm, yyyy) {\n      const dateStart = this.date.formatDateForUrl(`${yyyy}-${mm}-01`);\n      const period = this.date.getPeriod(dateStart);\n      yield this.displayByMonthTask.perform(period);\n    }),\n    toggleResults(results) {\n      const subTab = this.tabsManager.getActiveSubTab(this.tab);\n      if (subTab?.component === 'ledgers/accounts/aging/panels-display') {\n        return results;\n      }\n      this.filters.set('showResults', true);\n      return results;\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleResults\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleResults\"), _obj), _obj));\n});","define(\"client/pods/components/ledgers/accounts/aging/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uFxV3/o3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@hideForFeaturePath\\\"],[\\\"features.isVirtualOnly\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[\\\"fas fa-filter\\\",true,true,[23,0,[\\\"filters\\\",\\\"showFilters\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\",\\\"@resource\\\"],[[23,0,[]],[23,3,[]],[23,5,[]],[23,4,[]],\\\"aging\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayByCustomMonthTask\\\"]],[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]]],null]]]],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@list\\\",\\\"@onSelect\\\"],[[23,0,[\\\"pastMonths\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayByMonthTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,2,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/scroll-into-view\\\",[[12,\\\"class\\\",\\\"tab-grid__filter-container\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"ledgers/accounts/aging/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleResults\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,6,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"docType\\\",\\\"tabParent\\\",\\\"tab\\\",\\\"onReloadStatementOnDueDateChangeTask\\\",\\\"paymentDueDateZ\\\",\\\"paymentDueDate\\\",\\\"currentPeriod\\\",\\\"filters\\\",\\\"onRunningTask\\\"],[[23,0,[\\\"docType\\\"]],[23,6,[]],[23,1,[]],[23,0,[\\\"reloadStatementOnDueDateChangeTask\\\"]],[23,0,[\\\"paymentDueDateZ\\\"]],[23,0,[\\\"paymentDueDate\\\"]],[23,0,[\\\"currentPeriod\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"displayAgingTask\\\",\\\"isRunning\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/accounts/aging/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/accounts/banks-editor/component\", [\"exports\", \"client/mixins/big\", \"client/mixins/crud\"], function (_exports, _big, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // the only purpose the app-container serves is to keep track of isLoggedIn state\n  var _default = _exports.default = Ember.Component.extend(_big.default, _crud.default, {\n    crud: Ember.inject.service(),\n    adapterName: 'ledgers/accounts/lists/banks',\n    init() {\n      this.crud.addLists(this, ['ledgers/accounts/lists/banks']);\n      this._super(...arguments);\n      const isEditing = this.isEditing;\n      if (isEditing) {\n        const dirty = this.setupDirty();\n        this.set('model', dirty);\n      } else {\n        const model = this.setupNewRecord();\n        this.set('model', model);\n      }\n    },\n    afterCreateRecordTask(model) {\n      this.onAddItem(model);\n      this.onCloseDialogAction();\n    },\n    afterReplaceRecordTask(model) {\n      this.onUpdateItem(model);\n      this.onCloseDialogAction?.();\n    },\n    afterRemoveRecordTask() {\n      this.onRemoveItem(this.dirty);\n    },\n    actions: {\n      cancel(model) {\n        this.cancelEditing({\n          dirty: model\n        });\n        this.onCloseDialogAction();\n      },\n      toggleIsDefaultDetail() {\n        this.toggleProperty('model._data.isDefault');\n      }\n    }\n  });\n});","define(\"client/pods/components/ledgers/accounts/banks-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eRn85+kB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"banksEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"banks\\\",[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,6,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"bank\\\",\\\"banks_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"name\\\",\\\"errors\\\",\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"value\\\"],[true,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"account number\\\",\\\"errors\\\",\\\"account\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"account\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"delete\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[28,\\\"perform\\\",[[24,[\\\"removeRecordTask\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",[24,[\\\"disabled\\\"]],[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",[24,[\\\"disabled\\\"]],[24,[\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"      \\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/accounts/banks-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/journals/cashbook/cashbook-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, RA, R_) {\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, _dec0, _dec1, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 LedgersJournalsCashbookCashbookEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _class = class LedgersJournalsCashbookCashbookEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor6, this);\n      _initializerDefineProperty(this, \"txType\", _descriptor7, this);\n      _initializerDefineProperty(this, \"contactsList\", _descriptor8, this);\n      _initializerDefineProperty(this, \"docType\", _descriptor9, this);\n      _initializerDefineProperty(this, \"account\", _descriptor0, this);\n      _initializerDefineProperty(this, \"accountKey\", _descriptor1, this);\n      _initializerDefineProperty(this, \"listsIsLoaded\", _descriptor10, this);\n      _defineProperty(this, \"adapterName\", 'ledgers/journals/cashbook');\n      this.crud.addLists(this, ['ledgers/accounts/lists/banks', 'contacts/lists/relationships']);\n    }\n    *setupTask() {\n      const txType = this?.args?.tab?.txType || '';\n      const accountKey = this?.args?.accountKey || '';\n      const filters = this?.args?.filters || {};\n      if (RA.isNilOrEmpty(filters)) {\n        return;\n      }\n      filters.setData('txType', txType);\n      filters.setData('accountKey', accountKey);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: filters\n      });\n      const banksList = R_.dotPath('crud.lists.ledgers-accounts-lists-banks')(this) || [];\n      const account = banksList.findBy('_data._key', accountKey);\n      this.account = account;\n      this.contactsLists = [];\n      this.txType = txType;\n      this.accountKey = accountKey;\n      this.docType = this?.args?.tab?.docType || '';\n    }\n    *fetchStatementTask({\n      key,\n      docType,\n      dateStart,\n      dateEnd\n    }) {\n      const params = {\n        key,\n        docType,\n        dateStart,\n        dateEnd\n      };\n      const result = yield this.crud.findTask.perform({\n        adapterName: 'contacts/statements',\n        appendPath: `/${docType}`,\n        params\n      });\n      return result;\n    }\n    get displayAction() {\n      return this.txType;\n    }\n    get defaultDescription() {\n      let desc = 'payment';\n      if (this.txType === 'cashIn') {\n        desc = 'receipt';\n      }\n      return this.intl.t(desc);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"txType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"contactsList\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"docType\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"account\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"accountKey\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"listsIsLoaded\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchStatementTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchStatementTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/ledgers/journals/cashbook/cashbook-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CSp/EZHN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@filters\\\",\\\"@isAllBanks\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,1,[\\\"label\\\"]],\\\"overview\\\"],null],[23,3,[]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--full-width\\\"]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isAccordian\\\"],[[23,1,[]],[23,1,[\\\"label\\\"]],\\\"cashbook-editor\\\",\\\"cashbook\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"ledgers/journals/cashbook/editor-row\\\",[],[[\\\"@tab\\\",\\\"@rowIndex\\\",\\\"@isHeaders\\\",\\\"@isAllBanks\\\"],[[23,1,[]],\\\"*\\\",true,false]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"ledgers/journals/cashbook/editor-row\\\",[],[[\\\"@tab\\\",\\\"@account\\\",\\\"@rowIndex\\\",\\\"@isNew\\\",\\\"@toggleIsEditing\\\",\\\"@onSaveOrUpdateCashbookTask\\\",\\\"@onFetchAccountTask\\\",\\\"@onFetchStatementTask\\\",\\\"@onReloadAccountTask\\\",\\\"@isAllBanks\\\"],[[23,1,[]],[23,0,[\\\"account\\\"]],\\\"*\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"toggleIsEditing\\\"]]],null],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchStatementTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,2,[]]]]]],null],false]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@results\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@paginationIsFooter\\\",\\\"@tableViewOptions\\\"],[\\\"new-table-view--data\\\",[23,1,[]],\\\"ledgers/journals/cashbook/table-view/detail-row\\\",[23,2,[]],[23,2,[\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],true,[28,\\\"hash\\\",null,[[\\\"tab\\\",\\\"accountKey\\\",\\\"account\\\",\\\"onFetchStatementTask\\\",\\\"onFetchAccountTask\\\",\\\"onReloadAccountTask\\\",\\\"isAllBanks\\\"],[[23,1,[]],[23,0,[\\\"accountKey\\\"]],[23,0,[\\\"account\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchStatementTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,2,[]]]]]],null],[23,3,[]]]]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/journals/cashbook/cashbook-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/journals/cashbook/editor-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, R_) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 LedgersJournalsCashbookEditorRow = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('contacts'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._action, _dec15 = Ember.computed('crud.lists.ledgers-accounts-lists-banks.[]'), _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _class = class LedgersJournalsCashbookEditorRow extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor6, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor7, this);\n      _initializerDefineProperty(this, \"contactsList\", _descriptor8, this);\n      _initializerDefineProperty(this, \"contactRelationshipsList\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedContact\", _descriptor0, this);\n      _initializerDefineProperty(this, \"statement\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isSingleEditing\", _descriptor10, this);\n      _initializerDefineProperty(this, \"dirtyModel\", _descriptor11, this);\n      _initializerDefineProperty(this, \"originalModel\", _descriptor12, this);\n      _initializerDefineProperty(this, \"contactsFilters\", _descriptor13, this);\n      _defineProperty(this, \"adapterName\", 'ledgers/journals/cashbook');\n      this.crud.addLists(this, ['ledgers/accounts/lists/banks', 'ledgers/accounts/lists/contra-types', 'contacts/lists/relationships']);\n      const thisMonth = this.date.getPeriod();\n      this.monthStart = thisMonth.monthStart;\n      this.monthEnd = thisMonth.monthEnd;\n      this.contactsFilters = this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'name',\n            direction: 'ASC'\n          }],\n          status: [this.constants.status.active]\n        }\n      });\n      this.contraFilters = this.search.setupFilters({\n        adapterName: 'ledgers/accounts/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'name',\n            direction: 'ASC'\n          }]\n        }\n      });\n    }\n    afterLoadLists() {\n      if (this?.args?.isNew || this?.args?.isSingleEditing) {\n        this.setupDirtyModel();\n      }\n    }\n    setDefaults(model) {\n      if (RA.isNotNilOrEmpty(model)) {\n        const contraType = model.getData('contraType');\n        if (RA.isNilOrEmpty(contraType)) {\n          model.setData('contraType', 'contacts');\n        }\n      }\n    }\n    get filteredAccountsListsBanks() {\n      const bankLists = R_.dotPathOr([], 'crud.lists.ledgers-accounts-lists-banks')(this);\n      const account = this?.args?.account || {};\n      const accountKey = account?._data?._key || '';\n      return R.reject(bank => {\n        const key = bank?._data?._key || '';\n        if (RA.isNotNilOrEmpty(key) && R.equals(accountKey, key)) {\n          return true;\n        }\n        return false;\n      })(bankLists);\n    }\n    get isSingleOrBulkEditing() {\n      return this.isSingleEditing || this?.args?.isBulkEditing;\n    }\n    get currentModel() {\n      if (this.isSingleOrBulkEditing) {\n        return this.dirtyModel;\n      }\n      return this.args.model;\n    }\n    get isBankTransferRecipient() {\n      const currentModel = this.currentModel || {};\n      if (R.equals(currentModel?._data?.contraType, 'bankTransfer')) {\n        const isOverview = R.equals(this?.args?.tab?.label || '', 'overview');\n        if (isOverview) {\n          const transferToAccountKey = this?.currentModel?._data?.transferToAccountKey || '';\n          const account = this?.args?.account || {};\n          const accountKey = account?._data?._key || '';\n          if (RA.isNotNilOrEmpty(transferToAccountKey) && R.equals(accountKey, transferToAccountKey)) {\n            return true;\n          }\n        } else {\n          const currentModelTxType = currentModel?._data?.txType || '';\n          const componentTxType = this?.args?.tab?.txType || '';\n          if (RA.isNotNilOrEmpty(currentModelTxType) && RA.isNotNilOrEmpty(componentTxType) && !R.equals(currentModelTxType, componentTxType)) {\n            return true;\n          }\n        }\n        return false;\n      }\n      return false;\n    }\n    get defaultDescription() {\n      let desc = 'payment';\n      if (this?.args?.tab?.txType === 'cashIn') {\n        desc = 'receipt';\n      }\n      return this.intl.t(desc);\n    }\n    *saveOrUpdateCashbookTask() {\n      if (this?.args?.isNew || this?.args?.isSingleEditing) {\n        const account = this?.args?.account;\n        const currentModel = this.currentModel;\n        if (account) {\n          currentModel.setData('accountKey', account?._data?._key || '');\n          currentModel.setData('account', account?._data?.name || '');\n        }\n      }\n      yield this.args.onSaveOrUpdateCashbookTask.perform({\n        adapterName: this.adapterName,\n        dirty: this.currentModel,\n        model: this.currentModel,\n        onAfter: this.onAfter\n      });\n    }\n    setupDirtyModel() {\n      const model = this?.args?.model;\n      const isNew = this?.args?.isNew;\n      const account = this?.args?.account;\n      const data = {\n        dateZ: this.date.getStartOfDayZ(),\n        description: this.defaultDescription,\n        txType: this?.args?.tab?.txType,\n        docType: this?.args?.tab?.docType\n      };\n      if (account) {\n        data.accountKey = account?._data?._key || '';\n        data.account = account?._data?.name || '';\n      }\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model,\n        isNew,\n        data\n      });\n      this.setDefaultsFromTabLink(dirty);\n      this.setDefaults(dirty);\n      this.originalModel = model;\n      this.dirtyModel = dirty;\n      this.isSingleEditing = true;\n      const contactKey = dirty.getData('contactKey');\n      if (contactKey) {\n        const docType = dirty.getData('docType');\n        this.fetchContactTask.perform(contactKey, docType);\n      }\n      // this.errors = false\n    }\n    setDefaultsFromTabLink(dirty) {\n      const isFromContactsStatements = R.pathOr(false, ['args', 'tab', 'isFromContactsStatements'])(this);\n      if (isFromContactsStatements) {\n        const contactKey = this?.args?.tab?.contactKey || '';\n        const contra = this?.args?.tab?.contra || '';\n        const relationship = this?.args?.tab?.relationship || '';\n        dirty.setData('contactKey', contactKey);\n        dirty.setData('contra', contra);\n        dirty.setData('relationship', relationship);\n        this.args.tab.isFromContactsStatements = false;\n      }\n    }\n    *fetchContactTask(contactKey, docType) {\n      const contact = yield this.crud.findTask.perform({\n        adapterName: 'contacts',\n        appendPath: contactKey\n      });\n      this.selectedContact = contact;\n      // @TODO fetch contact using crud.findTask\n      this.setContactRelationshipsList();\n      this.setDefaultRelationship();\n      yield this.createStatementTask.perform(contactKey, docType);\n    }\n    setContactRelationshipsList() {\n      const contact = this?.selectedContact || '';\n      let contactRelationshipsList = R_.dotPath('crud.lists.contacts-lists-relationships')(this) || [];\n      if (contact) {\n        const relationships = contact?._data?.relationships;\n        contactRelationshipsList = R.filter(listItem => {\n          const value = listItem?._data?.value || '';\n          if (R.indexOf(value, relationships) > -1) {\n            return true;\n          }\n          return false;\n        })(contactRelationshipsList);\n      }\n      this.contactRelationshipsList = contactRelationshipsList;\n    }\n    setDefaultRelationship() {\n      const list = this.contactRelationshipsList;\n      const contact = this.selectedContact || {};\n      const model = this.currentModel;\n      const relationships = contact?._data?.relationships || '';\n      const txType = model?._data?.txType || '';\n      const relationship = model?._data?.relationship || '';\n      RA.mapIndexed((listItem, index) => {\n        const value = listItem?._data?.value || '';\n        if (R.indexOf(value, relationships) > -1) {\n          if (R.isEmpty(relationship)) {\n            if (txType === 'cashIn' && value === 'customer') {\n              model.setData('relationship', value);\n            }\n            if (txType === 'cashOut' && value === 'supplier') {\n              model.setData('relationship', value);\n            }\n            if (RA.isNilOrEmpty(model.getData('relationship')) && R.equals(index, R.subtract(R.length(list), 1))) {\n              model.setData('relationship', value);\n            }\n          }\n        }\n      })(list);\n      this.changeDocTypeBasedOnRelationship();\n    }\n    *createStatementTask(contactKey, docType) {\n      const statement = yield this.args.onFetchStatementTask({\n        key: contactKey,\n        docType,\n        dateStart: this.monthStart,\n        dateEnd: this.monthEnd\n      });\n      this.statement = statement;\n    }\n    get statementList() {\n      let statementList = [];\n      const statementLabel = ['current', '30 days', '60 days', '90 days', '120+ days'];\n      const statement = this.statement || [];\n      statementList = R.pipe(R.pathOr([], ['_data', 'aging']), R.map(aging => {\n        const agingPeriod = Number(aging.agingPeriod) || 0;\n        return {\n          agingPeriod,\n          statementLabel: `${this.intl.t(statementLabel[agingPeriod])}: $${this.intl.formatNumber(aging?.total || 0)}`,\n          total: aging.total\n        };\n      }), R.values, R.sortWith([R.ascend(R.prop('agingPeriod'))]))(statement);\n      const existingTotalValue = R.pluck('total')(statementList);\n      const totalAndTotalDueList = R.pipe(R.propOr({}, '_data'), data => {\n        if (RA.isNotNilOrEmpty(data.total) && RA.isNotNilOrEmpty(data.totalDue)) {\n          return [{\n            statementLabel: `${this.intl.t('total')}: $${this.intl.formatNumber(data.total)}`,\n            total: data.total\n          }, {\n            statementLabel: `${this.intl.t('total due')}: $${this.intl.formatNumber(data.totalDue)}`,\n            total: data.totalDue\n          }];\n        }\n        return [];\n      }, R.filter(data => {\n        const total = data?.total || 0;\n        if (R.includes(total, existingTotalValue)) {\n          return false;\n        }\n        return true;\n      }))(statement);\n      statementList = R.pipe(R.concat(statementList), R.map(statement => {\n        const total = statement?.total || 0;\n        if (R.lte(total, 0)) {\n          statement.isNotSelectable = true;\n        }\n        return statement;\n      }))(totalAndTotalDueList);\n      return statementList;\n    }\n    *loadContactAndStatementTask(contact) {\n      const model = this.currentModel;\n      const contactKey = contact?._data?._key || '';\n      const docType = model?._data?.docType || '';\n      model.setData('contactKey', contactKey);\n      this.selectedContact = contact;\n      this.setContactRelationshipsList();\n      this.setDefaultRelationship();\n      yield this.createStatementTask.perform(contactKey, docType);\n    }\n    unloadContactAndStatement() {\n      const model = this.currentModel;\n      model.setData('contact', '');\n      model.setData('contactKey', '');\n      model.setData('relationship', '');\n      model.setData('contra', '');\n      this.selectedContact = null;\n      this.contactRelationshipsList = [];\n    }\n    cancel() {\n      const isNew = this?.args?.isNew;\n      if (isNew) {\n        return this.setupDirtyModel();\n      }\n      const dirty = this.dirtyModel;\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty\n      });\n      this.dirtyModel = '';\n      this.isSingleEditing = false;\n      // this.errors = false\n    }\n    onAfter() {\n      this.cancel();\n      this.args.onReloadAccountTask();\n    }\n    changeDocTypeBasedOnRelationship() {\n      const relationship = this.currentModel?._data?.relationship;\n      if (R.equals(relationship, 'customer')) {\n        this.currentModel.setData('docType', 'sales');\n      }\n      if (R.equals(relationship, 'supplier')) {\n        this.currentModel.setData('docType', 'purchases');\n      }\n    }\n    loadAccount(account) {\n      const model = this.currentModel;\n      const ledgersAccountKey = account?._data?._key || '';\n      if (account) {\n        const code = account.getData('code');\n        const category = account.getData('category');\n        const description = account.getData('description');\n        const type = account.getData('type');\n        model.setData('ledgersAccountKey', ledgersAccountKey);\n        model.setData('accountCode', code);\n        model.setData('accountCategory', category);\n        model.setData('accountDescription', description);\n        model.setData('accountType', type);\n      }\n    }\n    unloadAccount() {\n      const model = this.currentModel;\n      model.setData('ledgersAccountKey', '');\n      model.setData('accountCode', '');\n      model.setData('accountCategory', '');\n      model.setData('accountDescription', '');\n      model.setData('accountType', '');\n    }\n\n    // @action\n    // loadTransferToBank (bankAccount) {\n    //   const transferToAccountName = bankAccount?._data?.name || ''\n    //   const model = this.currentModel\n\n    //   model.setData('transferToAccountName', transferToAccountName)\n    // }\n\n    unloadTransferToBank() {\n      const model = this.currentModel;\n      model.setData('transferToAccountKey', '');\n      model.setData('transferToAccountName', '');\n    }\n    *unloadAllTask() {\n      this.unloadAccount();\n      this.unloadContactAndStatement();\n      this.unloadTransferToBank();\n\n      // show available ledgerAccount\n      const contraType = this?.currentModel?._data?.contraType || '';\n      if (R.equals(contraType, 'ledgerAccount')) {\n        yield this.crud.searchInputTask.perform({\n          adapterName: 'ledgers/accounts',\n          resultsProperty: 'results',\n          filters: this.contraFilters,\n          query: '',\n          component: this,\n          allowEmptyQuery: true\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"contactsList\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"contactRelationshipsList\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedContact\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"statement\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isSingleEditing\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"dirtyModel\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"originalModel\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"contactsFilters\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setDefaults\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaults\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"filteredAccountsListsBanks\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"filteredAccountsListsBanks\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveOrUpdateCashbookTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveOrUpdateCashbookTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDirtyModel\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirtyModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultsFromTabLink\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultsFromTabLink\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchContactTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchContactTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setContactRelationshipsList\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"setContactRelationshipsList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultRelationship\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultRelationship\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createStatementTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"createStatementTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadContactAndStatementTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadContactAndStatementTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadContactAndStatement\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadContactAndStatement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAfter\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeDocTypeBasedOnRelationship\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"changeDocTypeBasedOnRelationship\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadAccount\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"loadAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadAccount\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadTransferToBank\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadTransferToBank\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadAllTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadAllTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/ledgers/journals/cashbook/editor-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ugr5GCCK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isAllBanks\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"bank\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"contra type\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\" / \\\"],[1,[28,\\\"tt\\\",[\\\"ledger account\\\"],null],false],[0,\\\" / \\\"],[1,[28,\\\"tt\\\",[\\\"bank transfer\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"relationship\\\"],null],false],[0,\\\" / \\\"],[1,[28,\\\"tt\\\",[\\\"account code\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"transaction type\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"discount\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"debit\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"credit\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"notes\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"label\\\"]],\\\"overview\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-user-circle\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[11,\\\"data-form-id\\\",[23,0,[\\\"currentModel\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\",\\\"@context\\\"],[\\\"_data.dateZ\\\",[23,0,[\\\"currentModel\\\"]],[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"dateZ\\\"]],[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null],\\\"dateZ\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"account\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",false],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setDefaults\\\"]],[23,2,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contraType\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@context\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ledgers-accounts-lists-contra-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contraType\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"unloadAllTask\\\"]]],null],\\\"contraType\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contraType\\\"]],\\\"ledgerAccount\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"accountDescription\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@filters\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@context\\\"],[true,\\\"span\\\",false,[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null],[23,0,[\\\"contraFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null],\\\"_data.description\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"accountDescription\\\"]],[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"ledgersAccountKey\\\"]],\\\"fas fa-address-book\\\",[23,0,[\\\"contraFilters\\\"]],\\\"ledgers/accounts/account-search-results\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"resultsProperty\\\",\\\"filters\\\",\\\"query\\\",\\\"component\\\",\\\"allowEmptyQuery\\\"],[\\\"ledgers/accounts\\\",\\\"results\\\",[23,0,[\\\"contraFilters\\\"]],[23,2,[\\\"_data\\\",\\\"accountDescription\\\"]],[23,0,[]],true]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"loadAccount\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadAccount\\\"]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],\\\"accountDescription\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"accountDescription\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\"],[\\\"fas fa-plus\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"ledgers/accounts/account-editor\\\",[],[[\\\"@ledgerAccount\\\",\\\"@onAddItem\\\",\\\"@onCloseDialogAction\\\"],[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"ledgersAccountKey\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"loadAccount\\\"]]],null],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contraType\\\"]],\\\"bankTransfer\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isBankTransferRecipient\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"account\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"transferToAccountName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@classNames\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@context\\\"],[true,[22,\\\"isReadonly\\\"],\\\"list-dropdown u-tappable-flex-start\\\",[23,0,[\\\"filteredAccountsListsBanks\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"transferToAccountKey\\\"]],[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"transferToAccountName\\\"]],\\\"ledgers/accounts/banks-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"bank accounts\\\",true]]],\\\"transferToAccountKey\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contra\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@filters\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@context\\\"],[true,\\\"span\\\",true,[23,0,[\\\"contactsFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contra\\\"]],[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]],\\\"fas fa-address-book\\\",[23,0,[\\\"contactsFilters\\\"]],\\\"contacts/search-results-documents\\\",[23,0,[\\\"contactsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"contactsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"resultsProperty\\\",\\\"query\\\",\\\"component\\\",\\\"filters\\\"],[\\\"all\\\",\\\"results\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contra\\\"]],[23,0,[]],[23,0,[\\\"contactsFilters\\\"]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"loadContactAndStatementTask\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unloadContactAndStatement\\\"]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],\\\"contra\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null],[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"relationship\\\"]],\\\"associates\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"relationship\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@allowDynamicLabelChanges\\\",\\\"@list\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@context\\\"],[true,true,true,true,[23,0,[\\\"contactRelationshipsList\\\"]],[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"relationship\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"changeDocTypeBasedOnRelationship\\\"]]],null],\\\"relationship\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"accountCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"accountCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isBankTransferRecipient\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"txType\\\"]],\\\"cashOut\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"receipt\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"payment\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"txType\\\"]],\\\"cashOut\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"payment\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"receipt\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"description\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@context\\\"],[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"description\\\"]],\\\"description\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"amount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@context\\\"],[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"amount\\\"]],\\\"amount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@isPersistentLabel\\\",\\\"@context\\\"],[true,false,true,[23,0,[\\\"statementList\\\"]],\\\"total\\\",\\\"statementLabel\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"amount\\\"]],\\\"\\\",true,\\\"amount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"discount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputClassNames\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"form__input-numbers\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"discount\\\"]],\\\"discount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"txType\\\"]],\\\"cashIn\\\"],null],[28,\\\"not\\\",[[23,0,[\\\"isBankTransferRecipient\\\"]]],null]],null],[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"txType\\\"]],\\\"cashout\\\"],null],[23,0,[\\\"isBankTransferRecipient\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"total\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"comments\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@context\\\"],[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"comments\\\"]],\\\"comments\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"label\\\"]],\\\"overview\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@model\\\"],[[23,0,[\\\"currentModel\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right u-no-wrap has-text-left\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@onSubmit\\\",\\\"@disabled\\\",\\\"@icon\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"setupDirtyModel\\\"]]],null],[23,0,[\\\"isBankTransferRecipient\\\"]],\\\"fas fa-pen\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null],[28,\\\"or\\\",[[23,0,[\\\"saveOrUpdateCashbookTask\\\",\\\"isRunning\\\"]],[24,[\\\"onFetchStatementTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"not\\\",[[23,0,[\\\"currentModel\\\",\\\"isMinRequiredMet\\\"]]],null],[28,\\\"or\\\",[[23,0,[\\\"saveOrUpdateCashbookTask\\\",\\\"isRunning\\\"]],[24,[\\\"onFetchStatementTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"saveOrUpdateCashbookTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[]],[28,\\\"eq\\\",[[23,3,[\\\"label\\\"]],\\\"overview\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contraType\\\"]],\\\"bankTransfer\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"date\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"transferToAccountName\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",false],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setDefaults\\\"]],[23,2,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contraType\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@context\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ledgers-accounts-lists-contra-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contraType\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"unloadAllTask\\\"]]],null],\\\"contraType\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"account\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"relationship\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@allowDynamicLabelChanges\\\",\\\"@list\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@context\\\"],[true,true,true,true,[23,0,[\\\"contactRelationshipsList\\\"]],[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"relationship\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"changeDocTypeBasedOnRelationship\\\"]]],null],\\\"relationship\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"accountCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"accountCode\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"label\\\"]],\\\"overview\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"txType\\\"]],\\\"cashOut\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"receipt\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--italics\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"payment\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"description\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"amount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@context\\\"],[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"amount\\\"]],\\\"amount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"contactKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@isPersistentLabel\\\",\\\"@context\\\"],[true,false,true,[23,0,[\\\"statementList\\\"]],\\\"total\\\",\\\"statementLabel\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"amount\\\"]],\\\"\\\",true,\\\"amount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"discount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputClassNames\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"form__input-numbers\\\",[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"discount\\\"]],\\\"discount\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"txType\\\"]],\\\"cashIn\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"total\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"total\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]],\\\"has-text-left\\\",\\\"has-text-right\\\"],null]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isSingleOrBulkEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"comments\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@context\\\"],[[23,0,[\\\"currentModel\\\",\\\"_data\\\",\\\"comments\\\"]],\\\"comments\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"label\\\"]],\\\"overview\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@model\\\"],[[23,0,[\\\"currentModel\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/journals/cashbook/editor-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/journals/cashbook/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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 ProductsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('products'), _dec3 = Ember.inject.service, _class = class ProductsFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      this.extraFiltersList = [Ember.Object.create({\n        value: 'dateZ',\n        label: 'date'\n      }), Ember.Object.create({\n        value: 'accountCode',\n        label: 'account code'\n      })];\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      yield this.crud.addLists(this, [{\n        name: 'taxes',\n        appendPath: 'products'\n      }, 'filters/count', 'paymentTerms']);\n    }\n    get showResetFilter() {\n      // @TODO: move to filter model\n      const filtersData = this?.args?.filters?._data;\n      if (RA.isNilOrEmpty(filtersData)) {\n        return false;\n      }\n      const statuses = filtersData.statuses;\n      const hasImages = filtersData.hasImages;\n      const item = filtersData.item;\n      const itemCode = filtersData.itemCode;\n      const price = filtersData.price;\n      const setTypes = filtersData.setTypes;\n      const tags = filtersData.tags;\n      if (statuses.length !== 5 || tags.length !== 0 || setTypes.length !== 0 || RA.isNilOrEmpty(hasImages) !== true || item !== '' || itemCode !== '' || price !== '') {\n        return true;\n      }\n      return false;\n    }\n    *updateFiltersTask() {\n      // @TODO: how can this be improved?\n      const filters = this.args.filters || {};\n      Ember.set(filters, '_data', filters?._data || {}); // reset data\n\n      return yield this.args.onSearchTask(...arguments);\n    }\n    *clearSelectedItemsTask() {\n      yield this?.crud?.reloadSearchRecordsTask.perform({\n        filters: this.args.filters,\n        reset: true\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateFiltersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedItemsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedItemsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/ledgers/journals/cashbook/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"3Kx/8Cr0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@isAllBanks\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@isGuest\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"accountWhenIsBank\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"bank\\\"],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"contra\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"contact\\\"],null],\\\" / \\\",[28,\\\"tt\\\",[\\\"ledger account\\\"],null],\\\" / \\\",[28,\\\"tt\\\",[\\\"bank transfer\\\"],null]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"description\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"description\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"amount\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"amount\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"discount\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"discount\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"comments\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"notes\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[28,\\\"badgeCount\\\",[[28,\\\"array\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null]],null],\\\"date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isRunning\\\"],[\\\"_data.dateZ\\\",[23,1,[]],[23,1,[\\\"_data\\\",\\\"dateZ\\\"]],[23,2,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[23,1,[\\\"contraTypesCount\\\"]],\\\"contra type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@tab\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ledgers-accounts-lists-contra-types\\\"]],[23,1,[]],true,\\\"_data.value\\\",\\\"_data.label\\\",\\\"_data.contraTypes\\\",true,false,\\\"contra type\\\",\\\"filter-group-legend\\\",[23,6,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\",\\\"@translate\\\"],[[23,5,[]],[28,\\\"sum\\\",[[23,1,[\\\"relationshipCount\\\"]],[28,\\\"badgeCount\\\",[[28,\\\"array\\\",[[23,1,[\\\"_data\\\",\\\"accountCode\\\"]]],null]],null]],null],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"relationship\\\"],null],\\\" / \\\",[28,\\\"tt\\\",[\\\"account code\\\"],null]],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@multiSelect\\\",\\\"@allowEmpty\\\",\\\"@tab\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-cashbook-relationships-filter\\\"]],true,[23,1,[]],\\\"_data.relationships\\\",true,true,[23,6,[]],\\\"_data.value\\\",\\\"_data.label\\\"]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\"],[\\\"account code\\\",[23,1,[\\\"_data\\\",\\\"accountCode\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",true,false,[23,1,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--tags\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags-container tags-container--margin-right-all\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"badgeCount\\\",[[28,\\\"array\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"extraFiltersList\\\"]],\\\"dateZ\\\",[28,\\\"concat\\\",[\\\": \\\",[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null]],null],\\\"value\\\",\\\"label\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"contraTypesCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ledgers-accounts-lists-contra-types\\\"]],[23,1,[\\\"_data\\\",\\\"contraTypes\\\"]],\\\"_data.value\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"relationshipCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-cashbook-relationships-filter\\\"]],[23,1,[\\\"_data\\\",\\\"relationships\\\"]],\\\"_data.value\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"badgeCount\\\",[[28,\\\"array\\\",[[23,1,[\\\"_data\\\",\\\"accountCode\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@suffix\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"extraFiltersList\\\"]],\\\"accountCode\\\",[28,\\\"concat\\\",[\\\": \\\",[23,1,[\\\"_data\\\",\\\"accountCode\\\"]]],null],\\\"value\\\",\\\"label\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"hide\\\",\\\"fas fa-angle-up\\\",[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,1,[]],\\\"showFilters\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,7,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,1,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,5,[]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,1,[]],true]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,5,[]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/journals/cashbook/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/journals/cashbook/panels-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class LedgersJournalsCashbookPanelsDisplay extends _component.default {}\n  _exports.default = LedgersJournalsCashbookPanelsDisplay;\n});","define(\"client/pods/components/ledgers/journals/cashbook/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hhYPe40J\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@accountKey\\\",\\\"@account\\\",\\\"@filters\\\",\\\"@isAllBanks\\\"],\\\"statements\\\":[[5,\\\"ledgers/journals/cashbook/cashbook-editor\\\",[],[[\\\"@tab\\\",\\\"@accountKey\\\",\\\"@account\\\",\\\"@filters\\\",\\\"@isAllBanks\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/journals/cashbook/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/journals/cashbook/tab-container/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"client/utils/nventor\", \"ember-concurrency\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _date, _crud, _nventor, _emberConcurrency, R, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    search: Ember.inject.service(),\n    model: null,\n    errors: null,\n    adapterName: 'ledgers/journals/cashbook',\n    init() {\n      this.crud.addLists(this, ['ledgers/accounts/lists/banks', 'ledgers/journals/cashbook/lists/menu']);\n      this.set('contactsList', []);\n      const txFilters = this.search.setupFilters({\n        adapterName: 'ledgers/journals/cashbook/filters'\n      });\n      this.set('txFilters', txFilters);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const id = loadInstructions.getData('find.id');\n        if (id) {\n          this.set('selectedBankAccountKey', id);\n          this.displayTab();\n        }\n      } else {\n        // when tab component is created, it will automatically fetch txData for default bank account.\n        // this can only happen once list of bank accounts has been fetched.\n        const defaultBankAccountKey = this.getDefaultBankAccountKey();\n        this.set('selectedBankAccountKey', defaultBankAccountKey);\n        this.displayTab();\n      }\n    },\n    accountsListsBanksWithAll: Ember.computed('crud.lists.ledgers-accounts-lists-banks.[]', function () {\n      const bankLists = R_.dotPathOr([], 'crud.lists.ledgers-accounts-lists-banks.[]')(this);\n      const allBanks = this.setupNewRecord({\n        data: {\n          _key: 'allBanks',\n          name: 'all banks',\n          ledger: 'bank',\n          isNotEditable: true,\n          translate: true\n        }\n      });\n      return R.prepend(allBanks, bankLists);\n    }),\n    displayTab() {\n      const resourceData = R_.dotPathOr({}, 'tab.resourceData')(this);\n      if (RA.isNotNilOrEmpty(resourceData)) {\n        this.tabsManager.displaySubPanelNew(this.tab, resourceData);\n      } else {\n        const subPanels = R_.dotPath('crud.lists.ledgers-journals-cashbook-lists-menu')(this);\n        const activeSubPanelModel = _nventor.default.safeHeadOr({}, subPanels);\n        this.tabsManager.displaySubPanelNew(this.tab, activeSubPanelModel);\n      }\n    },\n    getDefaultBankAccountKey() {\n      const bankAccounts = this?.accountsListsBanksWithAll || [];\n      let defaultAccount = bankAccounts.findBy('_data.isDefault', true);\n      if (!defaultAccount) {\n        defaultAccount = bankAccounts.get('firstObject');\n      }\n      this.set('account', defaultAccount);\n      if (defaultAccount) {\n        return defaultAccount.getData('_key');\n      }\n      return '';\n    },\n    isAllBanks: Ember.computed('account._data._key', function () {\n      const account = this?.account?._data?._key || '';\n      if (R.equals(account, 'allBanks')) {\n        return true;\n      }\n      return false;\n    }),\n    setBankAccount(account) {\n      // reset filters too when changing bank\n      this.txFilters.reset();\n      this.set('account', account);\n      const tab = this.tab;\n      const activeSubTab = this.tabsManager.getActiveSubTab(tab);\n      const subPanels = R_.dotPath('crud.lists.ledgers-journals-cashbook-lists-menu')(this);\n\n      // activeSubTab could be an empty object, on those cases it should use dot path rather than .get fn from model\n      const activeSubTabLabel = activeSubTab?.label || '';\n      const activeSubTabComponent = activeSubTab?.component || '';\n      let activeSubPanelModel = subPanels.findBy('_data.label', activeSubTabLabel);\n      if (RA.isNilOrEmpty(activeSubPanelModel)) {\n        activeSubPanelModel = subPanels.findBy('_data.component', activeSubTabComponent) || _nventor.default.safeHeadOr({}, subPanels);\n      }\n      this.tabsManager.displaySubPanelNew(tab, activeSubPanelModel);\n    },\n    toggleResults(results) {\n      const subTab = this.tabsManager.getActiveSubTab(this.tab);\n      if (subTab?.component === 'ledgers/journals/cashbook/panels-display') {\n        return results;\n      }\n      this.filters.set('showResults', true);\n      return results;\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setBankAccount\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setBankAccount\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleResults\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"toggleResults\"), _obj), _obj));\n});","define(\"client/pods/components/ledgers/journals/cashbook/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Snqf03tT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@classNames\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"isReadonly\\\"]],\\\"list-dropdown u-tappable-flex-start\\\",[23,0,[\\\"accountsListsBanksWithAll\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,0,[\\\"selectedBankAccountKey\\\"]],\\\"ledgers/accounts/banks-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"bank accounts\\\",true]]],[28,\\\"fn\\\",[[23,0,[\\\"setBankAccount\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@hideForFeaturePath\\\"],[\\\"features.isVirtualOnly\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[\\\"fas fa-filter\\\",true,true,[23,0,[\\\"txFilters\\\",\\\"showFilters\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"cashbook\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\",\\\"@errors\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ledgers-journals-cashbook-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,5,[]]],null],[23,4,[]]]]]],null],[23,6,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"txFilters\\\",\\\"showFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/scroll-into-view\\\",[[12,\\\"class\\\",\\\"tab-grid__filter-container\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"ledgers/journals/cashbook/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isAllBanks\\\",\\\"@isRunning\\\",\\\"@onSearch\\\"],[[23,0,[\\\"txFilters\\\"]],[23,0,[\\\"isAllBanks\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[23,0,[\\\"txFilters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleResults\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,5,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"account\\\",\\\"accountKey\\\",\\\"filters\\\",\\\"isAllBanks\\\"],[[23,5,[]],[23,1,[]],[23,0,[\\\"account\\\"]],[23,0,[\\\"selectedBankAccountKey\\\"]],[23,0,[\\\"txFilters\\\"]],[23,0,[\\\"isAllBanks\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/journals/cashbook/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/ledgers/journals/cashbook/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 LedgersJournalsCashbookPanelsOverviewTableViewDetailRow = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _class = class LedgersJournalsCashbookPanelsOverviewTableViewDetailRow extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      this.crud.addLists(this, ['contacts/lists/cashbook-relationships-filter']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/ledgers/journals/cashbook/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NaT9J7YI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@tableViewOptions\\\",\\\"@model\\\",\\\"@rowIndex\\\",\\\"@isDetailRow\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isAllBanks\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"bank\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"contra type\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\" / \\\"],[1,[28,\\\"tt\\\",[\\\"ledger account\\\"],null],false],[0,\\\" / \\\"],[1,[28,\\\"tt\\\",[\\\"bank transfer\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"relationship\\\"],null],false],[0,\\\" / \\\"],[1,[28,\\\"tt\\\",[\\\"account code\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"transaction type\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"discount\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"debit\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"credit\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"notes\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"tab\\\",\\\"label\\\"]],\\\"overview\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-user-circle\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"ledgers/journals/cashbook/editor-row\\\",[],[[\\\"@tab\\\",\\\"@account\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@rowIndex\\\",\\\"@toggleIsEditing\\\",\\\"@onSaveOrUpdateCashbookTask\\\",\\\"@onReloadAccountTask\\\",\\\"@onFetchStatementTask\\\",\\\"@isBulkEditing\\\",\\\"@isAllBanks\\\"],[[23,1,[]],[23,2,[\\\"account\\\"]],false,[23,3,[]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,0,[]],\\\"isEditingAnyRow\\\"],null],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[23,2,[\\\"onReloadAccountTask\\\"]],[23,2,[\\\"onFetchStatementTask\\\"]],[23,2,[\\\"isBulkEditing\\\"]],[23,2,[\\\"isAllBanks\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/ledgers/journals/cashbook/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/line/line-login/component\", [\"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 = Ember.Component.extend({\n    actions: {\n      login() {\n        this.open('https://access.line.me/oauth2/v2.1/authorize');\n      }\n    }\n  });\n});","define(\"client/pods/components/line/line-login/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"R28YyuKa\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"hasExchange\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"login\\\",[24,[\\\"hasExchange\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"loginTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"login\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/line/line-login/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/line/line-profile/component\", [\"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 = Ember.Component.extend({\n    input() {\n      this._super(...arguments);\n      const channelId = this.get('model._data.lineChannelId');\n      const callback = `https://service.bigordr.com/biordr-msg-bot/line/webhook/${channelId}`;\n      this.set('model._data.lineCallbackUrl', callback);\n    }\n  });\n});","define(\"client/pods/components/line/line-profile/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pCPJNxuS\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"required\\\",\\\"documentationResource\\\"],[\\\"channel id\\\",[24,[\\\"errors\\\"]],\\\"lineChannelId\\\",true,\\\"line\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"lineChannelId\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"required\\\",\\\"documentationResource\\\"],[\\\"channel secret\\\",[24,[\\\"errors\\\"]],\\\"lineChannelSecret\\\",true,\\\"line\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"lineChannelSecret\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"required\\\",\\\"documentationResource\\\"],[\\\"callback url\\\",[24,[\\\"errors\\\"]],\\\"lineCallbackUrl\\\",true,\\\"line\\\"]],{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"translate\\\",\\\"label\\\"],[false,[24,[\\\"model\\\",\\\"_data\\\",\\\"lineCallbackUrl\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/line/line-profile/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/linepay/provider-editor/component\", [\"exports\", \"ramda\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, R, _component, _emberConcurrencyDecorators, _nventor, _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;\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 LinepayProviderEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class LinepayProviderEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"modelProxy\", _descriptor2, this);\n      _initializerDefineProperty(this, \"providerErrors\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args?.adapterName || 'settings');\n      this.crud.addLists(this, ['payments/linepay/lists/providers']);\n      const isEditing = this?.args?.isEditing;\n      const model = this.args?.model || {};\n      const tab = this.args?.tab || {};\n      this.tab = tab;\n      this.modelProxy = _nventor.default.createModel(_model.default, {\n        enabled: false,\n        isDefault: false,\n        merchantId: '',\n        channelId: '',\n        channelSecret: ''\n      });\n      if (isEditing) {\n        const parentModel = R.pathOr(null, ['args', 'parentModel'])(this);\n        const linePay = R.pathOr({}, ['_data', 'linePay'])(parentModel);\n        const providers = R.pathOr([], ['providers'])(linePay);\n        const data = R.pipe(R.pathOr({}, ['_data']), R.clone)(model);\n        const currentEditModelIndex = R.findIndex(R.pathEq(['_data', 'merchantId'], data.merchantId))(providers);\n        this.modelProxy.set('_data', data);\n        this.modelProxy.set('index', currentEditModelIndex);\n      }\n    }\n    get linePayProviderList() {\n      // this.crud.lists.payments-linepay-lists-providers\n      const paymentsLinepayListsProviders = this.crud?.lists?.['payments-linepay-lists-providers'] || [];\n      // @TODO: remove filter when implemented payuni LinePay\n      return paymentsLinepayListsProviders.filter(model => {\n        if (model._data.value != 'tapPay') {\n          return false;\n        }\n        return true;\n      });\n    }\n    get hasErrors() {\n      if (this.providerErrors.length !== 0) {\n        return true;\n      }\n      return false;\n    }\n\n    // @TODO: should all use backend validation\n    validateProvider() {\n      // Uniq names\n      const currentMerchantId = R.pathOr('', ['modelProxy', '_data', 'merchantId'])(this);\n      if (!currentMerchantId) {\n        this.providerErrors = [{\n          type: 'isRequired',\n          message: 'is required',\n          path: ['merchantId'],\n          context: {\n            key: 'merchantId'\n          },\n          isError: true\n        }];\n      }\n      if (this.hasErrors) {\n        throw new Error('Frontend Validation Error: linepayProviderEditor Error');\n      }\n    }\n    isMerchantIdUniq() {\n      // Uniq names\n      const providers = R.pathOr([], ['args', 'parentModel', '_data', 'linePay', 'providers'])(this);\n      const currentMerchantId = R.pathOr('', ['modelProxy', '_data', 'merchantId'])(this);\n      const providerMerchantIds = R.pipe(R.map(R.pathOr('', ['_data', 'merchantId'])))(providers);\n      const _isCurrentIds = providerMerchantIds?.filter(id => id === currentMerchantId);\n      if (_isCurrentIds?.length !== 1) {\n        this.providerErrors = [{\n          type: 'isUnique',\n          message: 'not unique',\n          path: ['merchantId'],\n          context: {\n            key: 'merchantId'\n          },\n          isError: true\n        }];\n        throw new Error('MerchantId Already in Used!!!');\n      }\n    }\n    *updateProviders({\n      remove = false\n    } = {}) {\n      const parentModel = R.pathOr(null, ['args', 'parentModel'])(this);\n      try {\n        if (parentModel) {\n          const linePay = R.pathOr({}, ['_data', 'linePay'])(parentModel);\n          const providers = R.pathOr([], ['providers'])(linePay);\n          this.providerErrors = [];\n          if (this?.args?.isEditing) {\n            const index = this.modelProxy.index;\n            providers.removeAt(index);\n            if (!remove) {\n              providers.insertAt(index, this.modelProxy);\n              this.validateProvider();\n              this.isMerchantIdUniq();\n            }\n          } else {\n            this.validateProvider();\n            const isFirstProvider = R.length(providers) === 0;\n            if (isFirstProvider) {\n              const merchantId = this?.modelProxy?._data?.merchantId;\n              parentModel.set('_data.linePay.defaultProvider', merchantId);\n              this.modelProxy.setData('enabled', true);\n            }\n            providers.addObject(this.modelProxy);\n          }\n          parentModel.setData('linePay.providers', providers);\n          yield this.crud.updateRecordTask.perform({\n            adapterName: this?.args?.adapterName,\n            component: this,\n            model: parentModel,\n            updateProps: ['linePay'],\n            tab: this.tab\n          });\n        }\n        this.onCloseDialogAction();\n      } catch (error) {\n        console.log(error.message);\n      }\n    }\n    *cancelEdittingTask() {\n      this.isMerchantIdUniq();\n      this.onCloseDialogAction();\n    }\n    onCloseDialogAction() {\n      const toggleShowEditor = R.pathOr(null, ['args', 'toggleShowEditor'])(this);\n      const onCloseDialogAction = R.pathOr(null, ['args', 'onCloseDialogAction'])(this);\n      const onCloseDialogActionListSelector = R.pathOr(null, ['args', 'addItemOptions', 'onCloseDialogActionListSelector'])(this);\n      const providers = R.pathOr(null, ['args', 'parentModel', '_data', 'linePay', 'providers'])(this);\n      const isFirstProvider = R.length(providers) === 1;\n      if (isFirstProvider) {\n        return onCloseDialogActionListSelector();\n      }\n      if (onCloseDialogAction) {\n        return onCloseDialogAction();\n      }\n      if (toggleShowEditor) {\n        return toggleShowEditor(false);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"modelProxy\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"providerErrors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateProviders\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateProviders\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEdittingTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEdittingTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCloseDialogAction\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onCloseDialogAction\"), _class.prototype), _class);\n});","define(\"client/pods/components/linepay/provider-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jQ5Gjcre\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"merchantId\\\",\\\"linePay\\\",[23,0,[\\\"providerErrors\\\"]],\\\"merchantId\\\",[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,[23,0,[\\\"linePayProviderList\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"provider\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"merchantId\\\",\\\"linePay\\\",[23,0,[\\\"providerErrors\\\"]],\\\"merchantId\\\",[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,1,[]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"merchantId\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"channelId\\\",\\\"line\\\",[23,0,[\\\"providerErrors\\\"]],\\\"channel id\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,1,[]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"channelId\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"channelSecret\\\",\\\"line\\\",[23,0,[\\\"providerErrors\\\"]],\\\"channel secret\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,1,[]],[23,0,[\\\"modelProxy\\\",\\\"_data\\\",\\\"channelSecret\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/footer-btns\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-trash\\\",[23,0,[\\\"updateProviders\\\",\\\"isRunning\\\"]],\\\"\\\",[28,\\\"perform\\\",[[23,0,[\\\"updateProviders\\\"]],[28,\\\"hash\\\",null,[[\\\"remove\\\"],[true]]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"updateProviders\\\",\\\"isRunning\\\"]],[23,0,[\\\"cancelEdittingTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"cancelEdittingTask\\\"]]],null]]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"updateProviders\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateProviders\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/linepay/provider-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-btn/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  // @TODO: rename option to item\n  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    intl: Ember.inject.service(),\n    validationService: Ember.inject.service('validation'),\n    toggleOnIconClassName: 'fas fa-caret-up',\n    toggleOffIconClassName: 'fas fa-caret-down',\n    toggleOnIconRightClassName: 'fas fa-caret-up',\n    toggleOffIconRightClassName: 'fas fa-caret-down',\n    tagName: 'span',\n    itemValueKey: '_data.value',\n    itemLabelKey: '_data.label',\n    classNames: ['list-btn', 'u-tappable'],\n    classNameBindings: ['getClassNames', 'classNames'],\n    getClassNames: Ember.computed('hasCurrentError', function () {\n      if (this?.hasCurrentError) {\n        return 'has-error';\n      }\n      return '';\n    }),\n    selectedOptionValueKey: '_data.label',\n    // input value to set using option.key when an option is selected\n    hasDropdown: true,\n    showDropdown: false,\n    autoPosition: true,\n    onSubmit: 'defaultToggleDropdown',\n    // can supply custom function to search on onSubmit action\n    readonly: false,\n    translate: true,\n    tooltipTranslate: true,\n    value: '',\n    isToggler: true,\n    hasToggleIcon: false,\n    hasToggleIconRight: true,\n    list: [],\n    resultsComponent: 'lists/list-results',\n    // component to display results (defaults to list-results)\n\n    didInsertElement() {\n      this._super(...arguments);\n      const tab = this.tab;\n      const model = this.model;\n      this.validationService.setErrorsTracker({\n        tab,\n        model,\n        context: this.context\n      });\n      if (this.onDidInsert) {\n        this.onDidInsert(this);\n      }\n    },\n    currentErrors: Ember.computed('tab', 'tab.errors.errors.[]', function () {\n      this.toggleProperty('has-input-error');\n      return this.tab?.errors?.errors || [];\n    }),\n    hasCurrentError: Ember.computed('currentErrors.[]', 'context', function () {\n      const currentErrors = this?.currentErrors || [];\n      const context = this?.context;\n      return R.pipe(R.find(R.anyPass([R.pathEq(['context', 'key'], context), R.pathEq(['context', 'label'], context), R.pathEq(['context', 'keyWithIndex'], context)])), RA.isNotNilOrEmpty)(currentErrors);\n    }),\n    /**\n     * determines if dropdown should be shown.\n     * only show if isDropdownVisible and has list\n     */\n    isDropdownVisible: Ember.computed('showDropdown', 'list', function () {\n      // const list = this.get('list') || []\n      if (this.readonly === false && this.showDropdown) {\n        // if (this.get('readonly') === false && this.get('showDropdown') && list.length > 0) {\n        return true;\n      }\n      return false;\n    }),\n    toggleOnDropdown() {\n      this.set('showDropdown', true);\n    },\n    /**\n       * get selected dropdown value\n       * @param {object} item model\n       * @return {string} selected item value\n       */\n    getSelectedLabel: function (item) {\n      if (!item) {\n        const value = this.value;\n        const list = this.list;\n        if (value != null && !R.isEmpty(list)) {\n          if (!item) {\n            item = this.getSelectedItem(value);\n          }\n        }\n      }\n      if (item) {\n        const itemLabelKey = this.itemLabelKey;\n        return item.get(itemLabelKey);\n      }\n      if (!item) {\n        return this.label || '';\n      }\n    },\n    getSelectedItem(value) {\n      const list = this.list;\n      const itemValueKey = this.itemValueKey;\n      let i = 0;\n      let item;\n      if (R.is(Array, list)) {\n        while (list[i]) {\n          if (R.equals(list.get(`${i}.${itemValueKey}`), value)) {\n            item = list[i];\n            i = list.length + 1;\n          }\n          i++;\n        }\n      }\n      return item;\n    },\n    selectedLabel: Ember.computed('translate', 'defaultLabel', 'value', 'list.[]', 'selected', 'selected.{_data.translate,synced}', 'label', 'updateLabel', function () {\n      const value = this.value;\n      const label = this.getSelectedLabel() || this.label;\n      const selected = this.getSelectedItem(value);\n      if (!selected) {\n        const defaultLabel = this.label;\n        if (defaultLabel) {\n          if (this.translate) {\n            return this.intl.t(defaultLabel);\n          }\n          return defaultLabel;\n        }\n      }\n      let itemTranslate;\n      if (selected) {\n        itemTranslate = selected.get('_data.translate');\n        const shouldTranslateLabel = this.settings.shouldTranslateLabel(value, this.translate, itemTranslate);\n        if (shouldTranslateLabel) {\n          return this.intl.t(label);\n        }\n      }\n      if (label && this.translate && this.list && value != null && value !== '') {\n        const shouldTranslateLabel = this.settings.shouldTranslateLabel(value, this.translate, itemTranslate);\n        if (shouldTranslateLabel) {\n          return this.intl.t(label);\n        }\n      }\n\n      // if (value != null && value != '' && this.get('list')) {\n\n      // }\n\n      return label;\n    }),\n    onToggleModalDialog() {\n      this.set('showDropdown', false);\n      if (this.onCloseModalDialog) {\n        this.onCloseModalDialog();\n      }\n    },\n    submit(e) {\n      if (R.is(Function, this.onSubmit)) {\n        this.onSubmit(this.toggleOnDropdown, e);\n      }\n    },\n    actions: {\n      defaultToggleDropdown() {\n        // @TODO: should remove this\n\n        // this.set('showDropdown', true);\n      },\n      hideDropdown() {\n        this.set('showDropdown', false);\n      },\n      selectDropdownItem(option /* , listSelectorComponent */) {\n        // @TODO: no need to keep selectedOptionValueKey\n        // @TODO: no need to set value\n\n        // set value of input to option.selectedValueKey\n        const selectedOptionValueKey = this.selectedOptionValueKey;\n        if (selectedOptionValueKey) {\n          this.set('value', option.get(selectedOptionValueKey));\n        }\n\n        // select dropdown option, set component value\n        this.set('showDropdown', false);\n        if (this.onSelect) {\n          this.onSelect(option, this);\n        }\n      },\n      deselectDropdownItem() {\n        this.onDeselect();\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleOnDropdown\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleOnDropdown\"), _obj), _applyDecoratedDescriptor(_obj, \"onToggleModalDialog\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"onToggleModalDialog\"), _obj), _applyDecoratedDescriptor(_obj, \"submit\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"submit\"), _obj), _obj));\n});","define(\"client/pods/components/lists/list-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"G55RwBsZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@debug\\\",\\\"@hasModalOverlay\\\",\\\"@context\\\"],\\\"statements\\\":[[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"imageUrl\\\",\\\"icon\\\",\\\"iconClassName\\\",\\\"badge\\\",\\\"hasBadge\\\",\\\"statusBadge\\\",\\\"badgeClassNames\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"tooltipLabel\\\",\\\"tooltipTranslate\\\",\\\"disabled\\\",\\\"classNames\\\",\\\"translate\\\",\\\"prefix\\\",\\\"label\\\",\\\"isRunning\\\",\\\"isOn\\\",\\\"isToggler\\\",\\\"hasToggleIcon\\\",\\\"hasToggleIconRight\\\",\\\"toggleOnIconRightClassName\\\",\\\"toggleOffIconRightClassName\\\",\\\"toggleIsOn\\\",\\\"stopPropagation\\\",\\\"onSubmit\\\"],[[24,[\\\"imageUrl\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"iconClassName\\\"]],[24,[\\\"badge\\\"]],[24,[\\\"hasBadge\\\"]],[24,[\\\"statusBadge\\\"]],[24,[\\\"badgeClassNames\\\"]],[24,[\\\"hasStatusBadge\\\"]],[24,[\\\"statusBadgeClassNames\\\"]],[24,[\\\"tooltipLabel\\\"]],[24,[\\\"tooltipTranslate\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"btnClassNames\\\"]],false,[24,[\\\"prefix\\\"]],[24,[\\\"selectedLabel\\\"]],[24,[\\\"isRunning\\\"]],[24,[\\\"isOn\\\"]],[24,[\\\"isToggler\\\"]],[24,[\\\"hasToggleIcon\\\"]],[24,[\\\"hasToggleIconRight\\\"]],[24,[\\\"toggleOnIconRightClassName\\\"]],[24,[\\\"toggleOffIconRightClassName\\\"]],[24,[\\\"showDropdown\\\"]],[24,[\\\"stopPropagation\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"submit\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"disabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"allowDeselect\\\"]],[24,[\\\"label\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",[28,\\\"action\\\",[[23,0,[]],\\\"deselectDropdownItem\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isDropdownVisible\\\"]],[28,\\\"not\\\",[[24,[\\\"isRunning\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@onClose\\\",\\\"@debug\\\",\\\"@hasModalOverlay\\\",\\\"@modalContentClassNames\\\",\\\"@onToggleModalDialog\\\"],[[22,\\\"onClose\\\"],[23,2,[]],[23,3,[]],\\\"is-list-btn\\\",[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,1,[[28,\\\"action\\\",[[23,0,[]],\\\"hideDropdown\\\"],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"component\\\",[[24,[\\\"resultsComponent\\\"]]],[[\\\"translate\\\",\\\"legend\\\",\\\"list\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"onSelect\\\"],[[24,[\\\"translate\\\"]],[24,[\\\"legend\\\"]],[24,[\\\"list\\\"]],[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey\\\"]],[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectDropdownItem\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-dropdown-editor-container/component\", [\"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 = Ember.Component.extend({\n    keyDown(e) {\n      const keyCode = e.keyCode || e.which;\n      if (keyCode === 9) {\n        e.stopPropagation();\n      }\n    }\n  });\n});","define(\"client/pods/components/lists/list-dropdown-editor-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bVVHIP7y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-dropdown-editor-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-dropdown/component\", [\"exports\", \"client/pods/components/lists/mixins/dropdown\", \"client/mixins/translate\", \"ramda\", \"ramda-adjunct\"], function (_exports, _dropdown, _translate, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  /**\n   * NOTES:\n   * - Dropdown will find label based on value set on init (if set)\n   *\n   * - Dropdown will automatically update label when model.value changes dynamically (which is bound to selected.value)\n   *\n   * - Will always convert value to string when comparing for match.\n   *   eg. 0 will equal '0' when matching selected\n   *\n   * WARNING:\n   *  do not set label property when setting up component\n   */\n  var _default = _exports.default = Ember.Component.extend(_dropdown.default, _translate.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    validationService: Ember.inject.service('validation'),\n    toggleOnIconClassName: 'fas fa-caret-up',\n    toggleOffIconClassName: 'fas fa-caret-down',\n    tabsManager: Ember.inject.service(),\n    itemValueKey: '_data.value',\n    itemLabelKey: '_data.label',\n    tagName: 'span',\n    modalClassNames: '',\n    overlayClassNames: '',\n    modalContainerClassNames: '',\n    selected: null,\n    // tracks the value that is selected\n    // selectedComponents: null,\n    // autoSelectFirst: false, //automatically select first list item\n    allowEmpty: false,\n    allowDeselect: false,\n    multiSelect: false,\n    hasDropdown: true,\n    showEditor: false,\n    isBtn: true,\n    label: '',\n    isPersistentLabel: false,\n    value: null,\n    readonly: false,\n    // input element's readonly\n    disabled: false,\n    // determine whether clicking on the input will toggle dropdown\n    rememberSelected: true,\n    onDeselect: null,\n    translate: false,\n    onSelect: null,\n    // action for onSelect\n    onBindHelper: null,\n    // helper to bind property to model\n    allowDynamicLabelChanges: true,\n    // allow changes dynamic changes in value to update label automatically\n    triggerOnSelectActionOnChange: true,\n    // will trigger onSelect when model value changes\n    dropdownWasSelected: false,\n    // used to determine if user selected dropdown or value was changed from external source\n    inputIsFullW: true,\n    autoPosition: true,\n    isQuickEditable: true,\n    // allow quick editing of dropdown value when selected. otherwise need to show dropdown first to show edit btn\n    onAfterAddItem: '',\n    closeOnOverlayClick: true,\n    hasEditButon: true,\n    hasBtnLabel: true,\n    classNames: ['is-list-dropdown'],\n    classNameBindings: ['getClassNames', 'isSelectedEditable:is-editable', 'isHiddenPlaceholder:u-hidden-placeholder'],\n    getClassNames: Ember.computed('hasCurrentError', 'isSelectedEditable', function () {\n      if (this?.hasCurrentError) {\n        return 'has-error';\n      }\n      return '';\n    }),\n    init() {\n      this._super(...arguments);\n      let classNames = this.classNames || [];\n      if (RA.isNilOrEmpty(classNames)) {\n        classNames = classNames.concat(['list-dropdown', 'u-tappable']);\n      } else {\n        classNames = classNames.concat(['list-dropdown']);\n      }\n      const containerClassNames = this.containerClassNames || [];\n      classNames = classNames.concat(containerClassNames);\n      this.set('classNames', classNames);\n      const tab = this.tab;\n      const model = this.model;\n      this.validationService.setErrorsTracker({\n        tab,\n        model,\n        context: this.context\n      });\n    },\n    _btnClassNames: Ember.computed('btnClassNames', function () {\n      let btnClassNames = this.btnClassNames || '';\n      return `list-dropdown__btn ${btnClassNames}`;\n    }),\n    currentErrors: Ember.computed('tab', 'tab.errors.errors.[]', function () {\n      this.toggleProperty('has-input-error');\n      return this.tab?.errors?.errors || [];\n    }),\n    hasCurrentError: Ember.computed('currentErrors.[]', 'context', function () {\n      const currentErrors = this?.currentErrors || [];\n      const context = this?.context;\n      return R.pipe(R.find(R.anyPass([R.pathEq(['context', 'key'], context), R.pathEq(['context', 'label'], context), R.pathEq(['context', 'keyWithIndex'], context)])), RA.isNotNilOrEmpty)(currentErrors);\n    }),\n    imageStyle: Ember.computed('imageHeight', 'imageWidth', function () {\n      let style = '';\n      if (this.imageHeight) {\n        style = `height:${this.imageHeight};`;\n      }\n      if (this.imageWidth) {\n        style = `${style} width:${this.imageWidth};`;\n      }\n      return style;\n    }),\n    setSelected(item) {\n      if (!item) {\n        const value = this.value;\n        item = this.getSelectedItem(value);\n      }\n      if (this.get('rememberSelected')) {\n        this.set('selected', item);\n      }\n      return item;\n    },\n    // setup () {\n    //   let value = this.get('value')\n    //   const label = this.get('label')\n    //   const list = this.get('list')\n    //   console.log('===setup dropdown list')\n    //   console.log(label)\n    //   console.log(list)\n    //   if ((value !== '' && value != null) && isEmpty(label) && !isEmpty(list)) {\n    //     this.changeLabel()\n    //   } extensions/apps/tw/t-cat/lists/product-type\n    // },\n\n    allowEdit: Ember.computed('addItemComponent', function () {\n      if (this.addItemComponent) {\n        return true;\n      }\n      return false;\n    }),\n    modalDialogLabel: Ember.computed('addItemOptions.{modalDialogTitle,modalDialogTitleTranslate}', function () {\n      const title = this?.addItemOptions?.modalDialogTitle || '';\n      if (!title) {\n        return '';\n      }\n      const translate = this?.addItemOptions?.modalDialogTitleTranslate || false;\n      if (translate) {\n        return this.intl.t(title);\n      }\n      return title;\n    }),\n    isSelectedEditable: Ember.computed('allowEdit', 'isQuickEditable', 'selectedModel.{isOutOfDateOrDeleted,_data.isNotEditable}', function () {\n      const allowEdit = this.allowEdit;\n      if (!allowEdit) {\n        return false;\n      }\n      if (!this.isQuickEditable) {\n        return false;\n      }\n      const selectedModel = this.selectedModel;\n      if (RA.isNilOrEmpty(selectedModel)) {\n        return false;\n      }\n      const isNotEditable = selectedModel?._data?.isNotEditable;\n      const isOutOfDateOrDeleted = selectedModel?.isOutOfDateOrDeleted;\n      if (isNotEditable) {\n        return false;\n      }\n      if (isOutOfDateOrDeleted) {\n        return false;\n      }\n      return true;\n    }),\n    //\n    // dropdownList: computed('list.[]', function () {\n    //\n    //   console.log('--dropdown list changed--');\n    //   return this.get('list');\n    // }),\n    /**\n     * value was changed on the model elsewhere (not by selecting dropdown item)\n     */\n    // valueChangedDynamically: Ember.observer('value', function () {\n    // // @TODO: test\n\n    // // @TODO: what happens when value is available, but list has not loaded yet?\n\n    //   if (this.get('allowDynamicLabelChanges')) {\n    //     const value = this.get('value')\n    //     const list = this.get('list')\n\n    //     const dropdownWasSelected = this.get('dropdownWasSelected')\n\n    //     // only trigger label change if value change was from external to component\n    //     // (ie. list dropdown was not selected).\n    //     if ((value !== '' && value != null) && !isEmpty(list) && dropdownWasSelected === false) {\n    //       const item = list.findBy(this.get('itemValueKey'), value)\n\n    //       this.changeLabel(item)\n\n    //       const onSelectAction = this.get('onSelect')\n    //       const triggerOnSelectActionOnChange = this.get('triggerOnSelectActionOnChange')\n\n    //       if (onSelectAction && triggerOnSelectActionOnChange) {\n    //         onSelectAction(item)\n    //       }\n    //     }\n    //   }\n\n    //   this.set('dropdownWasSelected', false)\n    // }),\n\n    /**\n     * get selected dropdown value\n     * @param {object} item model\n     * @return {string} selected item value\n     */\n    getSelectedValue: function (item) {\n      const itemValueKeyArrayPath = R.pipe(R.propOr('', 'itemValueKey'), R.split('.'))(this);\n      return R.pathOr('', itemValueKeyArrayPath)(item);\n    },\n    /**\n     * get selected dropdown value\n     * @param {object} item model\n     * @return {string} selected item value\n     */\n    getSelectedLabel: function (item) {\n      if (this.isPersistentLabel) {\n        // @TODO: this should be removed. if you need this property then u should use\n        // listBtn\n        return this.label;\n      }\n      if (!item) {\n        const value = this.value;\n        const list = this.list;\n        if (value != null && !Ember.isEmpty(list)) {\n          if (!item) {\n            item = this.getSelectedItem(value);\n          }\n        }\n      }\n      if (item && this.get('rememberSelected')) {\n        const itemLabelKey = this.itemLabelKey;\n        return item.get?.(itemLabelKey) || item?.[itemLabelKey];\n      }\n      if (this.placeholder) {\n        return this.intl.t(this.placeholder, this.translate);\n      }\n      return '';\n    },\n    /**\n     * observes when value changes, will update label accordingly\n     * will run on init\n     */\n    // hasValueChanged: Ember.on('init', Ember.observer('value', function () {\n    //\n    //   //@TODO: also update when list changes?\n    //\n    //   const value = this.get('value');\n    //   if (value) {\n    //\n    //     //find item that matches value\n    //     const list = this.get('list');\n    //     const itemValueKey = this.get('itemValueKey');\n    //     const item = list.findBy(itemValueKey, value);\n    //\n    //     this.set('label', this.getSelectedLabel(item));\n    //   }\n    // })),\n\n    // computedLabel: computed('value', function () {\n    //   const item = this.getSelectedItem(this.value)\n    //   return this.getSelectedLabel(item)\n    //   // if (this.list) {\n    //   //   return R.pipe(\n    //   //     R.find(R.propEq(this.itemValueKey, this.value)),\n    //   //     R.prop(this.itemLabelKey)\n    //   //   )(this.list) || this.label\n    //   // }\n    //   // return this.label\n    // }),\n\n    getSelectedItem(value) {\n      const list = this.list || [];\n      const itemValueKey = this.itemValueKey;\n      let i = 0;\n      let item;\n      if (Ember.isArray(list)) {\n        // item = R.find(R.pathEq([itemValueKey], value))(list)\n        while (list[i]) {\n          // if (String(list[i].get(itemValueKey)) === String(value)) {\n          if (R.equals(list.get(`${i}.${itemValueKey}`), value)) {\n            item = list[i];\n            i = list.length + 1;\n          }\n          i++;\n        }\n      }\n      return item;\n    },\n    selectedModel: Ember.computed('list.[]', 'value', 'selected.{_data.translate,synced}', function () {\n      const value = this.value;\n      const item = this.getSelectedItem(value);\n      return item;\n    }),\n    // HERE\n    selectedLabel: Ember.computed('hasBtnLabel', 'translate', 'defaultLabel', 'value', 'list.[]', 'selected', 'selected.{_data.translate,synced}', 'updateLabel', function () {\n      if (this.hasBtnLabel === false) {\n        return '';\n      }\n      if (!this.get('rememberSelected')) {\n        return this.defaultLabel || '';\n      }\n      const value = this.value;\n      const label = this.getSelectedLabel() || this.label;\n      const selected = this.getSelectedItem(value);\n      if (!selected) {\n        const defaultLabel = this.defaultLabel;\n        if (defaultLabel) {\n          if (this.translate) {\n            return this.intl.t(defaultLabel);\n          }\n          return defaultLabel;\n        }\n      }\n      let itemTranslate;\n      if (selected) {\n        itemTranslate = R.path(['_data', 'translate'])(selected);\n        const shouldTranslateLabel = this.shouldTranslateLabel(value, itemTranslate);\n        if (shouldTranslateLabel) {\n          return this.intl.t(label);\n        }\n      }\n      if (label && this.translate && this.list && value != null && value !== '') {\n        const shouldTranslateLabel = this.shouldTranslateLabel(value, itemTranslate);\n        if (shouldTranslateLabel) {\n          return this.intl.t(label);\n        }\n      }\n\n      // if (value != null && value != '' && this.get('list')) {\n\n      // }\n\n      return label;\n    }),\n    toggleShowEditor(bool) {\n      if (typeof bool === 'boolean') {\n        Ember.set(this, 'showEditor', bool);\n      } else {\n        Ember.set(this, 'showEditor', !this.showEditor);\n      }\n      // causing infinite loop?\n      // this.set('updateLabel', Math.random())\n    },\n    updateItem(item) {\n      this.toggleShowEditor(false);\n      this.send('selectDropdownItem', item);\n    },\n    removeItem(item) {\n      const self = this;\n      const list = self.get('list');\n      const itemValueKey = self.get('itemValueKey');\n      const needle = item.get(itemValueKey);\n      const found = list.findBy(itemValueKey, needle);\n      const removedValue = this.getSelectedValue(item);\n      const selectedValue = this.value;\n      if (removedValue === selectedValue) {\n        this.send('deselectDropdownItem');\n      }\n      list.removeObject(found);\n      this.toggleShowEditor(false);\n    },\n    actions: {\n      hideDropdown() {\n        this.set('isDropdownVisible', false);\n      },\n      selectDropdownItem(item) {\n        let confirmed = true;\n        if (this.confirm && this.confirmMessage) {\n          confirmed = window.confirm(this.confirmMessage);\n        }\n        if (confirmed) {\n          this.set('dropdownWasSelected', true);\n          const previousValue = this.value;\n          const newValue = this.getSelectedValue(item);\n          // select dropdown item, set component value\n          this.set('isDropdownVisible', false);\n\n          // if (previousValue !== newValue) { //@TODO: test\n          // const originalValue = this.get('originalValue')\n          // if (newValue !== originalValue) {\n          this.set('value', newValue);\n          this.set('originalValue', newValue);\n          this.set('label', this.getSelectedLabel(item));\n          this.setSelected(item);\n          this.set('updateLabel', Math.random());\n\n          // @TODO: semi focused, ie. focus but not showing dropdown\n          // this.$('.element-inputpvt').focus();\n\n          // trigger outer onSelect action\n          if (this.onSelect) {\n            this.onSelect(item, previousValue);\n          }\n        }\n      },\n      deselectDropdownItem() {\n        this.set('value', '');\n        this.set('originalValue', '');\n        this.set('label', '');\n        this.set('selected', '');\n        this.set('updateLabel', Math.random());\n        const onDeselectAction = this.onDeselect;\n        if (onDeselectAction) {\n          onDeselectAction();\n        }\n      },\n      addItem(item) {\n        if (!this.list) {\n          this.set('list', []);\n        }\n        const list = this.list;\n        if (!list.findBy(this.itemValueKey, this.getSelectedValue(item))) {\n          this.list.pushObject(item);\n        }\n        this.send('selectDropdownItem', item);\n      },\n      editItem(item) {\n        this.set('editItem', item);\n        this.set('showEditor', true);\n      }\n    },\n    onToggleModalDialog() {\n      const isDropdownVisible = this.get('isDropdownVisible');\n      this.set('isDropdownVisible', !isDropdownVisible);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleShowEditor\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleShowEditor\"), _obj), _applyDecoratedDescriptor(_obj, \"updateItem\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"updateItem\"), _obj), _applyDecoratedDescriptor(_obj, \"removeItem\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"removeItem\"), _obj), _applyDecoratedDescriptor(_obj, \"onToggleModalDialog\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"onToggleModalDialog\"), _obj), _obj));\n});","define(\"client/pods/components/lists/list-dropdown/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zPGm0/9J\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"result\\\",\\\"result\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@itemBadgePath\\\",\\\"@itemBadgeClassNamesPath\\\",\\\"@itemBadgeClassNamesDefault\\\",\\\"@itemHasBadge\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@filters\\\",\\\"@isNumber\\\",\\\"&default\\\",\\\"@resultsItemComponent\\\",\\\"@context\\\",\\\"@imageTransform\\\",\\\"@imageUrl\\\",\\\"@imageSrcsetTransform\\\",\\\"@isLabel\\\"],\\\"statements\\\":[[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,20,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,24,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-label-dropdown\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isDropdownVisible\\\",\\\"@label\\\",\\\"@translate\\\"],[\\\"button-less\\\",[22,\\\"disabled\\\"],[22,\\\"isDropdownVisible\\\"],[22,\\\"selectedLabel\\\"],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-dropdown-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,22,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"img\\\",false],[12,\\\"class\\\",\\\"u-tappable u-v-align-auto\\\"],[12,\\\"src\\\",[28,\\\"uploadcareSrc\\\",[[23,22,[]],[23,21,[]]],null]],[12,\\\"srcset\\\",[28,\\\"uploadcareSrc\\\",[[23,22,[]],[23,23,[]]],null]],[12,\\\"style\\\",[23,0,[\\\"imageStyle\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[24,[\\\"onToggleModalDialog\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@badge\\\",\\\"@badgeClassNames\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@hasBadge\\\",\\\"@hasStatusBadge\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@label\\\",\\\"@prefix\\\",\\\"@suffix\\\",\\\"@statusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@toggleIsOn\\\",\\\"@translate\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[[22,\\\"badge\\\"],[22,\\\"badgeClassNames\\\"],[22,\\\"toggleOnIconClassName\\\"],[22,\\\"toggleOffIconClassName\\\"],[23,0,[\\\"_btnClassNames\\\"]],[22,\\\"disabled\\\"],[22,\\\"hasBadge\\\"],[22,\\\"hasStatusBadge\\\"],[22,\\\"icon\\\"],[22,\\\"isRunning\\\"],true,true,[23,0,[\\\"selectedLabel\\\"]],[22,\\\"prefix\\\"],[22,\\\"suffix\\\"],[22,\\\"statusBadge\\\"],[22,\\\"statusBadgeClassNames\\\"],[22,\\\"isDropdownVisible\\\"],false,[23,20,[]],[23,7,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isSelectedEditable\\\"]],[23,0,[\\\"hasEditButon\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@btnClassNames\\\",\\\"@label\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[false,[22,\\\"disabled\\\"],\\\"fas fa-pen\\\",\\\"list-dropdown__edit-btn\\\",\\\"\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"edit\\\"],null],\\\":\\\",[23,0,[\\\"modalDialogLabel\\\"]]],null],false,[28,\\\"action\\\",[[23,0,[]],\\\"editItem\\\",[23,0,[\\\"selectedModel\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowEditor\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"component\\\",[[23,9,[]]],[[\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"customAdapterName\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"model\\\",\\\"onCloseDialogAction\\\",\\\"onRemoveItem\\\",\\\"onUpdateItem\\\",\\\"parentModel\\\",\\\"showEditor\\\",\\\"tab\\\"],[[23,9,[]],[24,[\\\"addItemOptions\\\"]],[23,8,[]],true,false,[23,0,[\\\"editItem\\\"]],[23,5,[]],[28,\\\"action\\\",[[23,0,[]],\\\"removeItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"updateItem\\\"],null],[23,7,[]],[23,0,[\\\"showEditor\\\"]],[23,6,[]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"disabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"allowDeselect\\\"]],[24,[\\\"value\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",[28,\\\"action\\\",[[23,0,[]],\\\"deselectDropdownItem\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isDropdownVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@autoPosition\\\",\\\"@classNames\\\",\\\"@overlayClassNames\\\",\\\"@modelContainerClassNames\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggleModalDialog\\\"],[[22,\\\"autoPosition\\\"],[22,\\\"modalClassNames\\\"],[23,0,[\\\"overlayClassNames\\\"]],[23,0,[\\\"modalContainerClassNames\\\"]],[23,0,[\\\"closeOnOverlayClick\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,19,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@allowEdit\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onEdit\\\",\\\"@onSelect\\\",\\\"@rememberSelected\\\",\\\"@translate\\\"],[[22,\\\"allowEdit\\\"],[22,\\\"itemLabelKey\\\"],[22,\\\"itemValueKey\\\"],[22,\\\"legend\\\"],[22,\\\"list\\\"],[23,16,[]],[23,14,[]],[23,15,[]],[28,\\\"action\\\",[[23,0,[]],\\\"editItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"selectDropdownItem\\\"],null],[22,\\\"rememberSelected\\\"],[22,\\\"translate\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,19,[]]],[[\\\"query\\\",\\\"result\\\",\\\"hasAddedItemKey\\\"],[[24,[\\\"value\\\"]],[23,4,[]],[24,[\\\"hasAddedItemKey\\\"]]]]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[25,18]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@allowEdit\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onEdit\\\",\\\"@onSelect\\\",\\\"@rememberSelected\\\",\\\"@translate\\\"],[[22,\\\"allowEdit\\\"],[22,\\\"itemLabelKey\\\"],[22,\\\"itemValueKey\\\"],[22,\\\"legend\\\"],[22,\\\"list\\\"],[23,16,[]],[23,14,[]],[23,15,[]],[28,\\\"action\\\",[[23,0,[]],\\\"editItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"selectDropdownItem\\\"],null],[22,\\\"rememberSelected\\\"],[22,\\\"translate\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[14,18,[[23,3,[]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@allowEdit\\\",\\\"@badgePath\\\",\\\"@badgeClassNamesPath\\\",\\\"@badgeClassNamesDefault\\\",\\\"@hasBadge\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@filters\\\",\\\"@onEdit\\\",\\\"@onSelect\\\",\\\"@rememberSelected\\\",\\\"@translate\\\",\\\"@isNumber\\\"],[[22,\\\"allowEdit\\\"],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[22,\\\"itemLabelKey\\\"],[22,\\\"itemValueKey\\\"],[22,\\\"legend\\\"],[22,\\\"list\\\"],[23,16,[]],[28,\\\"action\\\",[[23,0,[]],\\\"editItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"selectDropdownItem\\\"],null],[22,\\\"rememberSelected\\\"],[22,\\\"translate\\\"],[23,17,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown-editor-container\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__footer-spacer\\\"],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__footer\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@onClose\\\"],[false,[22,\\\"disabled\\\"],\\\"add\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"add\\\"],null],\\\":\\\",[23,0,[\\\"modalDialogLabel\\\"]]],null],false,[28,\\\"fn\\\",[[23,0,[\\\"toggleShowEditor\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"component\\\",[[23,9,[]]],[[\\\"addItemComponent\\\",\\\"customAdapterName\\\",\\\"isEditing\\\",\\\"addItemOptions\\\",\\\"isNew\\\",\\\"onAddItem\\\",\\\"onAfterAddItem\\\",\\\"onCloseDialogAction\\\",\\\"parentModel\\\",\\\"tab\\\"],[[23,9,[]],[23,8,[]],false,[24,[\\\"addItemOptions\\\"]],true,[28,\\\"action\\\",[[23,0,[]],\\\"addItem\\\"],null],[24,[\\\"onAfterAddItem\\\"]],[23,2,[]],[23,7,[]],[23,6,[]]]]],false],[0,\\\"\\\\n\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@modalDialogIsVisible\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@onToggle\\\"],[false,[23,0,[\\\"showEditor\\\"]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"edit\\\"],null],\\\":\\\",[23,0,[\\\"modalDialogLabel\\\"]]],null],false,[28,\\\"fn\\\",[[23,0,[\\\"toggleShowEditor\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"component\\\",[[23,9,[]]],[[\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"customAdapterName\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"model\\\",\\\"onCloseDialogAction\\\",\\\"onRemoveItem\\\",\\\"onUpdateItem\\\",\\\"parentModel\\\",\\\"showEditor\\\",\\\"tab\\\"],[[23,9,[]],[24,[\\\"addItemOptions\\\"]],[23,8,[]],true,false,[23,0,[\\\"editItem\\\"]],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"removeItem\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"updateItem\\\"]]],null],[23,7,[]],[23,0,[\\\"showEditor\\\"]],[23,6,[]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-dropdown/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-item/component\", [\"exports\", \"client/mixins/translate\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _translate, R, RA, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_translate.default, {\n    tagName: 'div',\n    classNameBindings: ['isSelected', 'item.isDeleted:is-deleted', 'hasAdded:disabled', 'isNotSelectable:disabled'],\n    tabindex: 0,\n    attributeBindings: ['tabindex'],\n    isTag: false,\n    translate: false,\n    item: null,\n    // the item model\n    itemLabelKey: '_data.label',\n    // key that points to item's label\n    itemValueKey: '_data.value',\n    // key that points to item's value\n\n    itemLabel: Ember.computed('item', function () {\n      return this.get('item.' + this.itemLabelKey);\n    }),\n    itemValue: Ember.computed('item', function () {\n      return this.get('item.' + this.itemValueKey);\n    }),\n    isNotSelectable: Ember.computed('item', function () {\n      return R.pathOr(false, ['item', 'isNotSelectable'])(this);\n    }),\n    hasAdded: Ember.computed('hasAddedItemKey', 'item', function () {\n      return this.get('item.' + this.hasAddedItemKey);\n    }),\n    isSelected: Ember.computed('itemValueKey', 'selected', function () {\n      const selected = this.selected;\n      if (RA.isNilOrEmpty(selected)) {\n        return false;\n      }\n      const item = this.item;\n      const itemValueKey = this.itemValueKey;\n      const itemValue = R_.dotPath(itemValueKey)(item);\n      const selectedValue = R_.dotPath(itemValueKey)(selected);\n      if (itemValue === selectedValue) {\n        return true;\n      }\n      return false;\n    }),\n    isEditable: Ember.computed('allowEdit', 'item.{isOutOfDateOrDeleted,_data.isNotEditable}', function () {\n      const allowEdit = this.allowEdit;\n      const isNotEditable = this.get('item._data.isNotEditable');\n      const isOutOfDateOrDeleted = this.get('item.isOutOfDateOrDeleted');\n      if (isNotEditable) {\n        return false;\n      }\n      if (allowEdit) {\n        if (isOutOfDateOrDeleted) {\n          return false;\n        }\n        return true;\n      }\n      return false;\n    }),\n    badge: Ember.computed('hasBadge', 'badgePath', function () {\n      if (!this.hasBadge) {\n        return '';\n      }\n      if (!this.badgePath) {\n        return '';\n      }\n      const badgeValue = this.get('item.' + this.badgePath);\n      return badgeValue;\n    }),\n    badgeClassNames: Ember.computed('hasBadge', 'badgeClassNamesPath', function () {\n      if (!this.hasBadge) {\n        return '';\n      }\n      if (!this.badgeClassNamesPath) {\n        return '';\n      }\n      const classNames = this.get('item.' + this.badgeClassNamesPath);\n      if (!classNames) {\n        return this.badgeClassNamesDefault;\n      }\n      return classNames;\n    }),\n    // allowTranslate: computed('item._data.translate', function () {\n    //\n    //   let optionTranslate = this.get('option._data.translate');\n    //\n    //   if (optionTranslate == '' || optionTranslate == null) {\n    //\n    //     return this.get('translate');\n    //   }\n    //\n    //   return optionTranslate;\n    // }),\n\n    shouldTranslate: Ember.computed('item._data.translate', 'translate', 'itemValue', function () {\n      const itemValue = this.itemValue;\n      const itemTranslate = this.get('item._data.translate');\n      return this.shouldTranslateLabel(itemValue, itemTranslate);\n    }),\n    click() {\n      if (this.hasAdded) {\n        return false;\n      }\n      if (this.get('item.isDeleted')) {\n        return false;\n      }\n      if (this.isNotSelectable) {\n        return false;\n      }\n      if (this.onToggle) {\n        const item = this.item;\n        // const itemWrapper = this.get('itemWrapper');\n\n        this.onToggle(item, this);\n      }\n    },\n    getValueKey() {\n      return this.key;\n    },\n    actions: {\n      edit(e) {\n        e.stopPropagation();\n        const item = this.item;\n        this.onEdit(item);\n      }\n    }\n  });\n});","define(\"client/pods/components/lists/list-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OoudBidT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isNumber\\\",\\\"@hasBadge\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,3]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,3,[[23,0,[]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditable\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"isNotEditable\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"tabindex\\\",\\\"onSubmit\\\"],[\\\"u-edit-btn\\\",-1,[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[[24,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"svgIconTop\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"item\\\",\\\"_data\\\",\\\"svgIconTop\\\"]],true],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item-header\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item-header-text\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"highlight\\\",[[28,\\\"number\\\",[[28,\\\"get\\\",[[24,[\\\"item\\\"]],[24,[\\\"itemLabelKey\\\"]]],null]],null],[24,[\\\"query\\\"]]],[[\\\"disabled\\\"],[[24,[\\\"hasAdded\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"highlight\\\",[[28,\\\"tt\\\",[[28,\\\"get\\\",[[24,[\\\"item\\\"]],[24,[\\\"itemLabelKey\\\"]]],null]],[[\\\"translate\\\"],[[24,[\\\"shouldTranslate\\\"]]]]],[24,[\\\"query\\\"]]],[[\\\"disabled\\\"],[[24,[\\\"hasAdded\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item-header-end\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"element-btn__badge \\\",[23,0,[\\\"badgeClassNames\\\"]]]]],[8],[0,\\\"\\\\n          \\\"],[1,[23,0,[\\\"badge\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditable\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"isNotEditable\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"tabindex\\\",\\\"onSubmit\\\"],[\\\"u-edit-btn\\\",-1,[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasAdded\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"added\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"item\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-option/component\", [\"exports\", \"ramda\", \"ramda-extension\"], function (_exports, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\n  /**\n   * list selector and list option has a known bug:\n   * it is not able to set the value of the selector dynamically.\n   * eg. before render, model._data.type == 'image',\n   * the selector renders with the image option selected.\n   * but if model._data.type is changed to 'text', the selector does not update\n   * and still shows the image option as selected.\n   */\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: 'span',\n    isCheckbox: false,\n    multiSelect: false,\n    classNameBindings: ['isSelectedClass:is-selected', 'isTag:tag', 'disabled', 'isFilterTag:filter-tag'],\n    isTag: false,\n    isFilterTag: false,\n    rememberSelected: true,\n    // determine if it should remember selected state\n    isSelected: false,\n    translate: true,\n    disabled: false,\n    optionsComponents: null,\n    // selectedComponents: null, //array to keep track of selected components\n    optionLabelKey: '_data.label',\n    // key that points to option's label\n    optionValueKey: '_data.value',\n    // key that points to option's value\n    prefix: '',\n    // prefix added to option\n    prefixKey: '',\n    suffix: '',\n    // suffix added to option\n    suffixKey: '',\n    optionClassNames: '',\n    didInsertElement(element) {\n      this._super(...arguments);\n      this.setup();\n      if (this.hasColors && this.optionColorKey) {\n        const optionColorKey = this.optionColorKey || '';\n        const option = this.option || {};\n        const color = R_.dotPath(optionColorKey)(option);\n        if (color) {\n          this.element.style.color = color;\n        }\n      }\n    },\n    _icon: Ember.computed('icon', 'optionIconKey', function () {\n      if (this.icon) {\n        return this.icon;\n      }\n      const optionIconKey = this.optionIconKey || '';\n      if (!optionIconKey) {\n        return '';\n      }\n      const option = this.option;\n      const icon = R_.dotPath(optionIconKey)(option);\n      if (icon) {\n        return icon;\n      }\n      return '';\n    }),\n    prefixLabel: Ember.computed('prefix', 'prefixKey', function () {\n      const prefix = this.get('prefix');\n      const prefixKey = this.get('prefixKey');\n      if (prefixKey) {\n        const prefixValue = this.option.get(prefixKey);\n        if (prefixValue) {\n          return `(${prefixValue})`;\n        }\n        return '';\n      }\n      return prefix;\n    }),\n    _disabled: Ember.computed('disabled', 'isAddSelectDisabled', 'multiSelect', 'selected.[]', 'isSelected', 'option._data.isOptionDisabled', function () {\n      if (this.disabled) {\n        return true;\n      }\n      if (this?.option?._data?.isOptionDisabled) {\n        return true;\n      }\n      if (!this.multiSelect) {\n        return false;\n      }\n      if (this.isSelected) {\n        return false;\n      }\n      if (this.isAddSelectDisabled) {\n        return true;\n      }\n      return false;\n    }),\n    suffixLabel: Ember.computed('suffix', 'suffixKey', function () {\n      const suffix = this.get('suffix');\n      const suffixKey = this.get('suffixKey');\n      if (suffixKey) {\n        const suffixValue = this.option.get(suffixKey);\n        if (suffixValue) {\n          return `(${suffixValue})`;\n        }\n        return '';\n      }\n      return suffix;\n    }),\n    isSelectedClass: Ember.computed('isSelected', function () {\n      if (this.isCheckbox) {\n        return false;\n      }\n      return this.isSelected;\n    }),\n    allowTranslate: Ember.computed('option._data.translate', function () {\n      const optionTranslate = this.get('option._data.translate');\n      if (optionTranslate === '' || optionTranslate == null) {\n        return this.translate;\n      }\n      return optionTranslate;\n    }),\n    // determine whether the option component should be selected or not\n    setup() {\n      var self = this;\n      if (!self.get('isTag') && self.get('rememberSelected') === true) {\n        // only setup selected if isTag=false\n        let isSelected = false;\n        const optionValue = self.get('optionValue');\n        const selected = self.get('selected');\n        if (R.is(Array, selected)) {\n          if (self.get('selected').indexOf(optionValue) > -1) {\n            isSelected = true;\n          }\n        } else {\n          if (selected === self.get('optionValue') && self.get('optionValue') != null) {\n            isSelected = true;\n          }\n        }\n        if (!this.multiSelect && this.selectedComponents.length >= 1) {\n          isSelected = false;\n        }\n        if (isSelected) {\n          self.set('isSelected', isSelected);\n          self.get('selectedComponents').addObject(self);\n        }\n        self.get('optionsComponents').addObject(self);\n      }\n    },\n    // handle click action\n    click() {\n      if (!this._disabled) {\n        if (this.onToggle) {\n          const option = this.option;\n          this.onToggle(option, this);\n        }\n      }\n    },\n    optionLabel: Ember.computed('option', 'option.synced', function () {\n      return this.get('option.' + this.optionLabelKey);\n    }),\n    optionValue: Ember.computed('option', 'option.synced', function () {\n      return this.get('option.' + this.optionValueKey);\n    }),\n    getValueKey() {\n      return this.key;\n    },\n    actions: {\n      edit(e) {\n        e.stopPropagation();\n        if (!this.disabled) {\n          const option = this.option;\n          this.onEdit(option);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"didInsertElement\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"didInsertElement\"), _obj), _obj));\n});","define(\"client/pods/components/lists/list-option/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FndrzEuR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@optionLabelKey2Prefix\\\",\\\"@optionLabelKey2Translate\\\",\\\"@optionLabelKey2\\\",\\\"@optionClassNames\\\",\\\"@tabLinkKey\\\",\\\"@option\\\",\\\"@tabOptionsData\\\",\\\"@isTabLink\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[25,9]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,9,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isCheckbox\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"multiSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\",\\\"@allowToggle\\\",\\\"@value\\\",\\\"@onToggleProperty\\\"],[[23,0,[\\\"_disabled\\\"]],false,[22,\\\"isSelected\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"isSelected\\\"]]],null]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-checkbox--checked\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-circle\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-checkbox--unchecked\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"far fa-circle\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"_icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[23,0,[\\\"_icon\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[28,\\\"get\\\",[[23,6,[]],[23,5,[]]],null],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[[23,7,[\\\"component\\\"]],[23,7,[\\\"title\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[28,\\\"get\\\",[[23,6,[]],[23,5,[]]],null]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"prefixLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[22,\\\"prefixLabel\\\"],false],[0,\\\"  \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[23,4,[]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allowTranslate\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"optionLabel\\\"]]],[[\\\"translate\\\"],[[24,[\\\"allowTranslate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"html-safe\\\",[[24,[\\\"optionLabel\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,1,[]],false],[0,\\\" \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"get\\\",[[24,[\\\"option\\\"]],[23,3,[]]],null]],[[\\\"translate\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\" \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"suffixLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"         \\\"],[1,[22,\\\"suffixLabel\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"prefixLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[22,\\\"prefixLabel\\\"],false],[0,\\\"  \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[23,4,[]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allowTranslate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"optionLabel\\\"]]],[[\\\"translate\\\"],[[24,[\\\"allowTranslate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"html-safe\\\",[[24,[\\\"optionLabel\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[]],false],[0,\\\" \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"get\\\",[[24,[\\\"option\\\"]],[23,3,[]]],null]],[[\\\"translate\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"suffixLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"       \\\"],[1,[22,\\\"suffixLabel\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDefaultKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"get\\\",[[24,[\\\"option\\\"]],[24,[\\\"isDefaultKey\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      *\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allowDeselect\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[22,\\\"isShowDeselectClassNames\\\"]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",[22,\\\"onDeselectTagItem\\\"]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allowEdit\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"isNotEditable\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"disabled\\\",\\\"classNames\\\",\\\"tabindex\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],\\\"u-edit-btn\\\",-1,[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-option/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-results/component\", [\"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 = Ember.Component.extend({\n    classNames: ['list-results'],\n    itemLabelKey: '_data.label',\n    // key that points to item's label\n    itemValueKey: '_data.value',\n    // key that points to item's value\n    rememberSelected: false,\n    // keep track of selected item\n    selected: null,\n    selectedItemWrappers: null,\n    translate: false,\n    value: '',\n    showPagination: true,\n    showPageNumbers: true,\n    isViewable: true,\n    init() {\n      this._super(...arguments);\n      this.set('itemClassNames', ['list-results__item']);\n      this.set('legendClassNames', ['list-results__legend']);\n    },\n    hasPagination: Ember.computed('showPagination', function () {\n      if (this.onPaginationTask && this.showPagination) {\n        return true;\n      }\n      return false;\n    }),\n    selectItem(item /* , itemComponent */) {\n      // send action to onSelect event..only used for when list is in a dropdown\n      if (this.onSelect) {\n        this.onSelect(item);\n      }\n    },\n    actions: {\n      /**\n       * listen for toggle event sent from items component\n       * list-results only allows select (no deselect)\n       */\n      toggleItem(item, itemWrapper) {\n        // select item\n        this.selectItem(item, itemWrapper);\n      }\n    }\n  });\n});","define(\"client/pods/components/lists/list-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2lYUcnt1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"model\\\",\\\"index\\\",\\\"listItemComponent\\\",\\\"@selected\\\",\\\"@isNumber\\\",\\\"&default\\\",\\\"@onPaginationTask\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isViewable\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"legend\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"legend\\\",true],[11,\\\"class\\\",[22,\\\"legendClassNames\\\"]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"legend\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"list\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/no-data\\\",[[12,\\\"class\\\",\\\"u-desc u-desc--mini has-text-centered\\\"]],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,8,[]],[23,7,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"list\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[25,6]],null,{\\\"statements\\\":[[4,\\\"lists/list-item\\\",null,[[\\\"query\\\",\\\"translate\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"hasAddedItemKey\\\",\\\"classNames\\\",\\\"item\\\",\\\"allowEdit\\\",\\\"selected\\\",\\\"onEdit\\\",\\\"onToggle\\\"],[[24,[\\\"query\\\"]],[28,\\\"if\\\",[[28,\\\"has\\\",[[24,[\\\"list\\\",\\\"translate\\\"]]],null],[24,[\\\"list\\\",\\\"translate\\\"]],[28,\\\"or\\\",[[24,[\\\"translate\\\"]],[23,1,[\\\"_data\\\",\\\"isTranslate\\\"]]],null]],null],[24,[\\\"itemValueKey\\\"]],[24,[\\\"itemLabelKey\\\"]],[24,[\\\"hasAddedItemKey\\\"]],[24,[\\\"itemClassNames\\\"]],[23,1,[]],[24,[\\\"allowEdit\\\"]],[23,4,[]],[24,[\\\"onEdit\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleItem\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[14,6,[[23,1,[]],[23,2,[]],[23,3,[]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-item\\\",null,[[\\\"query\\\",\\\"classNames\\\",\\\"translate\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"isNumber\\\",\\\"hasBadge\\\",\\\"badgePath\\\",\\\"badgeClassNamesPath\\\",\\\"badgeClassNamesDefault\\\",\\\"hasAddedItemKey\\\",\\\"item\\\",\\\"selected\\\",\\\"allowEdit\\\",\\\"onEdit\\\",\\\"onToggle\\\"],[[24,[\\\"query\\\"]],[24,[\\\"itemClassNames\\\"]],[28,\\\"if\\\",[[28,\\\"has\\\",[[24,[\\\"list\\\",\\\"translate\\\"]]],null],[24,[\\\"list\\\",\\\"translate\\\"]],[28,\\\"or\\\",[[24,[\\\"translate\\\"]],[23,1,[\\\"_data\\\",\\\"isTranslate\\\"]]],null]],null],[24,[\\\"itemValueKey\\\"]],[24,[\\\"itemLabelKey\\\"]],[23,5,[]],[24,[\\\"hasBadge\\\"]],[24,[\\\"badgePath\\\"]],[24,[\\\"badgeClassNamesPath\\\"]],[24,[\\\"badgeClassNamesDefault\\\"]],[24,[\\\"hasAddedItemKey\\\"]],[23,1,[]],[23,4,[]],[24,[\\\"allowEdit\\\"]],[24,[\\\"onEdit\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleItem\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasPagination\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"list-results__pagination\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"lastSearchSettings\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[[24,[\\\"showPageNumbers\\\"]],[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"list\\\"]],[24,[\\\"onPaginationTask\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-searcher/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/components/lists/mixins/dropdown\"], function (_exports, R, RA, _dropdown) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  // @NOTE:\n  // what is the purpose of itemValueKey and itemLabelKey?\n  // items[selectedItemValueKey] binds to model value\n  // hasSelected value is either true/false UNLESS when hasSelectedKey is set.\n  // hasSelected value is then bound bound to item[hasSelectedKey]\n  // allowCustom: ??\n  var _default = _exports.default = Ember.Component.extend(_dropdown.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    tagName: 'div',\n    itemValueKey: '_data.value',\n    itemLabelKey: '_data.label',\n    selectedItemValueKey: '_data.label',\n    // the item property to display for selected item\n    classNames: ['list-searcher'],\n    classNameBindings: ['isDropdownVisible'],\n    tagClassNames: null,\n    autofocus: false,\n    hasDropdown: true,\n    showDropdown: false,\n    onSearch: null,\n    // function to search on keyUp\n    onDeselect: null,\n    // function on deselect searcher\n    readonly: false,\n    disabled: false,\n    hasSelected: null,\n    // determines if item is a selected value (from list) or custom value\n    hasSelectedKey: null,\n    // will bind hasSelected to selected[hasSelectedKey]\n    allowCustom: false,\n    // will remove custom values if not allowed\n    value: '',\n    lastValue: '',\n    inputIsFullW: true,\n    tagAutoFocus: false,\n    list: null,\n    placeholder: 'search',\n    showAdvancedModal: false,\n    overlayClassNames: '',\n    modalContainerClassNames: '',\n    init() {\n      this._super(...arguments);\n      if (RA.isNilOrEmpty(this.list)) {\n        this.set('list', []);\n      }\n      this.set('tagClassnames', ['list-searcher__tag']);\n      const tagMaxChar = this.tagMaxChar || 20;\n      this.set('_tagMaxChar', tagMaxChar);\n    },\n    /**\n     * determines if dropdown should be shown.\n     * only show if isDropdownVisible and has list and has focus\n     */\n    isDropdownVisible: Ember.computed('showDropdown', 'list.[]', function () {\n      const list = this.list || [];\n      if (!this.readonly && this.showDropdown && list.length > 0) {\n        return true;\n      }\n      return false;\n    }),\n    focusIn() {\n      this._super(...arguments);\n      const value = this.value;\n      const onFocusIn = this.onFocusIn;\n      if (onFocusIn) {\n        onFocusIn(value);\n      }\n    },\n    focusOut() {\n      this._super(...arguments);\n      const value = this.value;\n      const onFocusOut = this.onFocusOut;\n      if (onFocusOut) {\n        onFocusOut(value);\n      }\n      if (!this.hasSelected && value) {\n        if (!this.allowCustom) {\n          this.set('tagAutoFocus', false);\n        }\n      }\n    },\n    onSearchAction() {\n      if (this.onSearch) {\n        let simpleSearch = true;\n        let value = this?.value || '';\n        if (this.hasAdvancedModal) {\n          if (this.showAdvancedModal === false) {\n            // 191 = '?'\n            if (R.includes('?', value)) {\n              simpleSearch = false;\n              value = R.replace('?', '', value);\n              this.set('value', value);\n              this.set('showAdvancedModal', true);\n              this.onSearch(...arguments);\n              this.set('showDropdown', false);\n            }\n          }\n        }\n        if (simpleSearch) {\n          this.set('showDropdown', true);\n          this.onSearch(...arguments);\n        }\n        this.set('lastValue', value);\n        this.set('input', value);\n      }\n    },\n    selectDropdownItem(item) {\n      const selectedItemValueKey = this.selectedItemValueKey;\n      if (selectedItemValueKey) {\n        this.set('value', item.get(selectedItemValueKey));\n        this.set('tagAutoFocus', true);\n      }\n      // select dropdown item, set component value\n      this.set('showDropdown', false);\n\n      // set hasSelected if allow custom = false\n      /// / @TODO: test\n      const hasSelectedKey = this.hasSelectedKey;\n      if (hasSelectedKey) {\n        this.set('hasSelected', item.get(hasSelectedKey));\n      } else {\n        this.set('hasSelected', true);\n      }\n      if (this.onSelect) {\n        this.onSelect(item, this);\n      }\n    },\n    actions: {\n      // @NOTE: these actions cannot yet be removed because of dropdown mixin\n\n      /**\n       * if hasSelected and hovering over tag it should show deselect button\n       */\n      handleMouseEnter(self) {\n        self.set('isHover', true);\n        if (this.hasSelected) {\n          this.set('isShowDeselectClassNames', 'list-searcher__deselect');\n        } else {\n          this.set('isShowDeselectClassNames', 'list-searcher__deselect--hidden');\n        }\n      },\n      handleMouseLeave(self) {\n        self.set('isHover', false);\n        this.set('isShowDeselectClassNames', 'list-searcher__deselect--hidden');\n      },\n      hideDropdown() {\n        this.set('showDropdown', false);\n      },\n      deselectDropdownItem(e) {\n        this.set('value', '');\n        this.set('tagAutoFocus', false);\n\n        // @TODO: test\n        const hasSelectedKey = this.hasSelectedKey;\n        if (hasSelectedKey) {\n          this.set('hasSelected', '');\n        } else {\n          this.set('hasSelected', false);\n        }\n        if (this.onDeselect) {\n          this.onDeselect();\n        }\n      }\n    },\n    onToggleModalDialog() {\n      this.set('showDropdown', false);\n    },\n    afterLoadResultModal(shouldSetZIndex) {\n      const className = 'over-modal';\n      if (shouldSetZIndex) {\n        this.element?.classList?.add?.(className);\n        return;\n      }\n      this.element?.classList?.remove?.(className);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onSearchAction\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onSearchAction\"), _obj), _applyDecoratedDescriptor(_obj, \"selectDropdownItem\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"selectDropdownItem\"), _obj), _applyDecoratedDescriptor(_obj, \"onToggleModalDialog\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"onToggleModalDialog\"), _obj), _applyDecoratedDescriptor(_obj, \"afterLoadResultModal\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"afterLoadResultModal\"), _obj), _obj));\n});","define(\"client/pods/components/lists/list-searcher/list-searcher-tag/component\", [\"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 = Ember.Component.extend({\n    tagName: 'span',\n    classNames: ['list-searcher__tag'],\n    // tabindex: -1,\n    // attributeBindings: ['tabindex'],\n\n    didRender() {\n      this._super(...arguments);\n      const tagAutoFocus = this.tagAutoFocus;\n      if (tagAutoFocus) {\n        this.$().focus();\n      }\n    }\n  });\n});","define(\"client/pods/components/lists/list-searcher/list-searcher-tag/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cB8F7Z7r\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@value\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[[24,[\\\"icon\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"prependHasSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[22,\\\"prependHasSelected\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideValueTag\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@content\\\",\\\"@modalPos\\\"],[[23,1,[]],\\\"top\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-searcher/list-searcher-tag/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-searcher/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qIHeiype\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"&default\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@context\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/mouse-hover\\\",[],[[\\\"@handleMouseEnter\\\",\\\"@handleMouseLeave\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"handleMouseEnter\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"handleMouseLeave\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-searcher/list-searcher-tag\\\",null,[[\\\"classNames\\\",\\\"icon\\\",\\\"tagAutoFocus\\\",\\\"prependHasSelected\\\",\\\"value\\\",\\\"hideValueTag\\\",\\\"char\\\"],[[24,[\\\"tagClassNames\\\"]],[24,[\\\"hasSelectedIcon\\\"]],[24,[\\\"tagAutoFocus\\\"]],[24,[\\\"prependHasSelected\\\"]],[24,[\\\"value\\\"]],[24,[\\\"hideValueTag\\\"]],[23,0,[\\\"_tagMaxChar\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[24,[\\\"disallowDeselect\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[22,\\\"isShowDeselectClassNames\\\"]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",[28,\\\"action\\\",[[23,0,[]],\\\"deselectDropdownItem\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"onSearch\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"isFullW\\\",\\\"classNames\\\",\\\"inputPvtClassNames\\\",\\\"isDropdownVisible\\\",\\\"isSearchBar\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"value\\\",\\\"onSubmit\\\",\\\"isRunning\\\",\\\"context\\\",\\\"model\\\",\\\"tab\\\"],[[24,[\\\"autofocus\\\"]],[24,[\\\"inputIsFullW\\\"]],[24,[\\\"inputClassNames\\\"]],[24,[\\\"inputPvtClassNames\\\"]],[24,[\\\"showDropdown\\\"]],true,[24,[\\\"placeholder\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"value\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSearchAction\\\"]]],null],[24,[\\\"isRunning\\\"]],[23,5,[]],[23,4,[]],[23,3,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"isFullW\\\",\\\"classNames\\\",\\\"inputPvtClassNames\\\",\\\"isDropdownVisible\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"value\\\",\\\"context\\\",\\\"model\\\",\\\"tab\\\"],[[24,[\\\"autofocus\\\"]],[24,[\\\"inputIsFullW\\\"]],[24,[\\\"inputClassNames\\\"]],[24,[\\\"inputPvtClassNames\\\"]],[24,[\\\"showDropdown\\\"]],[24,[\\\"placeholder\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"value\\\"]],[23,5,[]],[23,4,[]],[23,3,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDropdownVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@onToggleModalDialog\\\",\\\"@overlayClassNames\\\",\\\"@modelContainerClassNames\\\",\\\"@modalContentClassNames\\\",\\\"@isOverlayTransparent\\\",\\\"@onAfterLoad\\\",\\\"@onClose\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"onToggleModalDialog\\\"]]],null],[22,\\\"overlayClassNames\\\"],[22,\\\"modalContainerClassNames\\\"],\\\"is-list-searcher\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"afterLoadResultModal\\\"]],true],null],[28,\\\"fn\\\",[[23,0,[\\\"afterLoadResultModal\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"resultsComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"component\\\",[[24,[\\\"resultsComponent\\\"]]],[[\\\"query\\\",\\\"translate\\\",\\\"legend\\\",\\\"list\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"hasAddedItemKey\\\",\\\"onSelect\\\"],[[24,[\\\"value\\\"]],false,[24,[\\\"legend\\\"]],[24,[\\\"list\\\"]],[24,[\\\"itemValueKey\\\"]],[24,[\\\"itemLabelKey\\\"]],[24,[\\\"hasAddedItemKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectDropdownItem\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"resultsItemComponent\\\"]]],null,{\\\"statements\\\":[[4,\\\"lists/list-results\\\",null,[[\\\"query\\\",\\\"list\\\",\\\"hasPagination\\\",\\\"onPaginationTask\\\",\\\"showPageNumbers\\\",\\\"filters\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"hasAddedItemKey\\\",\\\"onSelect\\\"],[[24,[\\\"value\\\"]],[24,[\\\"list\\\"]],[24,[\\\"hasPagination\\\"]],[24,[\\\"onPaginationTask\\\"]],false,[24,[\\\"filters\\\"]],[24,[\\\"itemValueKey\\\"]],[24,[\\\"itemLabelKey\\\"]],[24,[\\\"hasAddedItemKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectDropdownItem\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[24,[\\\"resultsItemComponent\\\"]]],[[\\\"query\\\",\\\"result\\\",\\\"hasAddedItemKey\\\"],[[24,[\\\"value\\\"]],[23,1,[]],[24,[\\\"hasAddedItemKey\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-results\\\",null,[[\\\"query\\\",\\\"translate\\\",\\\"legend\\\",\\\"list\\\",\\\"hasPagination\\\",\\\"onPaginationTask\\\",\\\"filters\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"hasAddedItemKey\\\",\\\"onSelect\\\"],[[24,[\\\"value\\\"]],false,[24,[\\\"legend\\\"]],[24,[\\\"list\\\"]],[24,[\\\"hasPagination\\\"]],[24,[\\\"onPaginationTask\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"itemValueKey\\\"]],[24,[\\\"itemLabelKey\\\"]],[24,[\\\"hasAddedItemKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectDropdownItem\\\"],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasAdvancedModal\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"showAdvancedModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,2,[[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"onSelectAction\\\"],[[23,0,[]],[28,\\\"action\\\",[[23,0,[]],\\\"selectDropdownItem\\\"],null]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-searcher/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-selector/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, R, R_, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _obj;\n  /**\n   * list selector and list option has a known bug:\n   * it is not able to set the value of the selector dynamically.\n   * eg. before render, model._data.type == 'image',\n   * the selector renders with the image option selected.\n   * but if model._data.type is changed to 'text', the selector does not update\n   * and still shows the image option as selected.\n   */\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _obj = {\n    intl: Ember.inject.service('intl'),\n    tabsManager: Ember.inject.service(),\n    classNames: ['list-selector'],\n    allSelected: false,\n    selected: null,\n    // tracks values that are selected. will be an array if multiple values\n    // rememberSelected: true, //keep track of selected. set to false if list shouldnt keep track of selected items\n    selectedModels: null,\n    selectedComponents: null,\n    // tracks components selected in order to deselect\n    sortSelectedToTop: true,\n    // when true, items selected at first render are pinned to the top\n    _sortSnapshot: null,\n    // snapshot of selected values captured at first setup; used by proxyList\n    showEditor: false,\n    optionsComponents: null,\n    // keeps track of all options components. used to update components.isSelected when model changes after init\n    multiSelect: false,\n    // allow multiple selections\n    allowEmpty: true,\n    // allow no selections, will not deselect of last option selected\n    defaultSelected: null,\n    optionLabelKey: '_data.label',\n    // key that points to option's label\n    optionValueKey: '_data.value',\n    // key that points to option's value\n    model: null,\n    // used to bind selected values to model value\n    valueKey: '',\n    // specify which model key to bind to selected values\n    labelKey: null,\n    // specify which model key to bind to selected labels (joined into string)\n    // attributeBindings: ['value'],\n    translate: true,\n    translateLegend: true,\n    filterTerm: '',\n    filterFromStart: false,\n    init() {\n      this._super(...arguments);\n      this.set('allSelected', false);\n      if (this.multiSelect) {\n        this.set('selected', []);\n      }\n      this.set('selectedComponents', []);\n      let itemClassNames = this.itemClassNames || '';\n      const itemClassNamesArray = R.split(' ')(itemClassNames);\n\n      // always add item class name\n      itemClassNamesArray.push('list-selector__item');\n      itemClassNames = R.join(' ')(itemClassNamesArray);\n      this.set('_itemClassNames', itemClassNames);\n      this.set('legendClassNames', 'list-selector__legend');\n      this.set('optionsComponents', []);\n      const valueKey = this.valueKey;\n      if (valueKey === '') {\n        throw new Error('list-selector: valueKey is empty.');\n      }\n      this.setup();\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      // update selector's selected values based on model value\n      this.updateSelected();\n      if (this.sortSelectedToTop && this._sortSnapshot == null) {\n        const selected = this.selected;\n        let snapshot = [];\n        if (!R.isNil(selected)) {\n          snapshot = Ember.isArray(selected) ? [...selected] : [selected];\n        }\n        this.set('_sortSnapshot', snapshot);\n      }\n    },\n    proxyList: Ember.computed('list.[]', 'filterTerm', 'filterFromStart', 'optionGroupLabel', '_sortSnapshot', function () {\n      let list = this.list || [];\n      const optionGroupLabel = this.optionGroupLabel || '';\n      if (optionGroupLabel) {\n        // if has groups will always group by group label\n        list = R.pipe(R.groupBy(option => {\n          return R_.dotPathOr('', optionGroupLabel)(option);\n        }), R.values, R.unnest)(list);\n      }\n      let filterTerm = this.filterTerm;\n      if (filterTerm) {\n        filterTerm = R.pipe(R.trim, R.toLower)(filterTerm);\n        const optionValueKey = this.optionValueKey;\n        const optionLabelKey = this.optionLabelKey;\n        const filterFromStart = this.filterFromStart;\n        if (filterFromStart) {\n          list = R.filter(option => {\n            const optionValue = R.pipe(_nventor.default.dotPathOr('', optionValueKey), R.toLower)(option);\n            const optionLabel = _nventor.default.dotPathOr('', optionLabelKey)(option);\n            const optionLabelLowercase = R.toLower(optionLabel);\n            const hasValue = R.startsWith(filterTerm)(optionValue);\n            const hasLabel = R.startsWith(filterTerm)(optionLabelLowercase);\n            let hasMatchingTranslatedLabel = false;\n            if (this.translate || option._data.translate) {\n              try {\n                const translatedOptionLabel = this.intl.t(optionLabel);\n                hasMatchingTranslatedLabel = R.startsWith(filterTerm)(translatedOptionLabel);\n              } catch (error) {\n                hasMatchingTranslatedLabel = false;\n              }\n            }\n            if (hasValue || hasLabel || hasMatchingTranslatedLabel) {\n              return true;\n            }\n            return false;\n          })(list);\n        } else {\n          list = R.filter(option => {\n            const optionValue = R.pipe(_nventor.default.dotPathOr('', optionValueKey), R.toLower)(option);\n            const optionLabel = R.pipe(_nventor.default.dotPathOr('', optionLabelKey), R.toLower)(option);\n            const hasValue = R.includes(filterTerm)(optionValue);\n            const hasLabel = R.includes(filterTerm)(optionLabel);\n            if (hasValue || hasLabel) {\n              return true;\n            }\n            return false;\n          })(list);\n        }\n      }\n      if (this.sortSelectedToTop && !this.optionGroupLabel) {\n        // grouping is intentionally skipped: pulling selected rows out of their groups\n        // would break the legend logic in template.hbs that prints headers on group transitions\n        const snapshot = this._sortSnapshot || [];\n        if (!R.isEmpty(snapshot)) {\n          const optionValueKey = this.optionValueKey;\n          const isSelected = option => R.includes(_nventor.default.dotPathOr('', optionValueKey)(option), snapshot);\n          const [selectedItems, unselectedItems] = R.partition(isSelected, list);\n          return R.concat(selectedItems, unselectedItems);\n        }\n      }\n      return list;\n    }),\n    allowEdit: Ember.computed('addItemComponent', 'editItemComponent', function () {\n      if (this.addItemComponent) {\n        return true;\n      }\n      if (this.editItemComponent) {\n        return true;\n      }\n      return false;\n    }),\n    modalDialogLabel: Ember.computed('addItemOptions.{modalDialogTitle,modalDialogTitleTranslate}', function () {\n      const title = this?.addItemOptions?.modalDialogTitle || '';\n      if (!title) {\n        return '';\n      }\n      const translate = this?.addItemOptions?.modalDialogTitleTranslate || false;\n      if (translate) {\n        return this.intl.t(title);\n      }\n      return title;\n    }),\n    updateSelected() {\n      if (!this.model) {\n        console.error('need to ensure model exists before starting to render list-selector');\n        return;\n      }\n      // @TODO: will need to select/deselect option\n      const valueKey = this.valueKey;\n      const value = this.get('model.' + valueKey);\n      if (this.selected !== value) {\n        // only update when value has changed\n        this.set('selected', value);\n\n        // on init of component optionsComponents and selectedComponents will be empty\n        // so in effect updateOptionsComponentsSelected does nothing on init\n        this.updateOptionsComponentsSelected(value);\n      }\n    },\n    updateOptionsComponentsSelected(value) {\n      const self = this;\n      if (Ember.isEmpty(value)) {\n        // model's value is null, clear all selected options\n        self.clearAllSelectedOptionsComponents();\n      } else {\n        // loop through all options components\n        const optionsComponents = self.get('optionsComponents');\n        const optionValueKey = self.get('optionValueKey');\n        const isMultiSelect = self.get('multiSelect');\n\n        // clear selected components\n        // self.set('selectedComponents', [])\n\n        optionsComponents.forEach(optionComponent => {\n          const option = optionComponent.get('option');\n          const optionValue = option.get(optionValueKey);\n          let isSelected = false;\n          if (isMultiSelect) {\n            if (value.indexOf(optionValue) > -1) {\n              isSelected = true;\n            }\n          } else {\n            if (optionValue === value) {\n              isSelected = true;\n            }\n          }\n          if (isSelected) {\n            const selectedComponents = self.get('selectedComponents') || [];\n            selectedComponents.addObject(optionComponent);\n            self.set('selectedComponents', selectedComponents);\n          }\n          if (!optionComponent?.isDestroyed) {\n            optionComponent.set('isSelected', isSelected);\n          }\n        });\n      }\n    },\n    clearAllSelectedOptionsComponents() {\n      const components = this.selectedComponents || [];\n      components.forEach(function (optionComponent) {\n        if (!optionComponent?.isDestroyed) {\n          optionComponent.set('isSelected', false);\n        }\n      });\n      this.set('selectedComponents', []);\n    },\n    toggleOption(option, optionComponent) {\n      if (optionComponent.get('isSelected') === true) {\n        // deselect option\n        this.deselectOption(option, optionComponent);\n      } else {\n        // select option\n        this.selectOption(option, optionComponent);\n      }\n    },\n    selectOption(option, optionComponent) {\n      const multiSelect = this.multiSelect;\n      if (!multiSelect) {\n        // set previous option.isSelected = false\n        const components = this.selectedComponents || [];\n        components.forEach(function (component) {\n          // set each component to isSelected=false\n          if (!component?.isDestroyed) {\n            component.set('isSelected', false);\n          }\n        });\n        // clear selectedComponents array...\n        this.set('selectedComponents', []);\n        this.set('selected', this.getOptionValue(option));\n      } else {\n        // multiselect\n\n        // keep track of selected\n        if (!Ember.isArray(this.selected)) {\n          // selected is always an array for multiselect\n          this.set('selected', []);\n        }\n        const value = this.getOptionValue(option);\n        const selected = this.selected || [];\n        selected.addObject(value);\n        this.set('selected', selected);\n      }\n      const selectedComponents = this.selectedComponents || [];\n      selectedComponents.addObject(optionComponent);\n      this.set('selectedComponents', selectedComponents);\n\n      // this.get('selectedComponents').addObject(optionComponent)\n\n      // select option\n      if (!optionComponent?.isDestroyed) {\n        optionComponent.set('isSelected', true);\n      }\n      this.bindModelValue();\n\n      // send action to onSelect event..only used for when list is in a dropdown\n      if (this.onSelect) {\n        this.onSelect(option, this);\n      }\n    },\n    deselectOption(option, optionComponent) {\n      let allowDeselect = true;\n\n      // check to see if list allows no selections\n      if (this.allowEmpty === false) {\n        if (this.multiSelect) {\n          // only disallow deselect if only last item is being deselected\n          if (this.selected.length <= 1) {\n            allowDeselect = false;\n          }\n        } else {\n          // single select: dont allow deselecting of itself\n          if (optionComponent.get('isSelected') === true) {\n            allowDeselect = false;\n          }\n        }\n      }\n      if (allowDeselect) {\n        if (!optionComponent?.isDestroyed) {\n          optionComponent.set('isSelected', false);\n        }\n        if (this.multiSelect) {\n          if (!Ember.isArray(this.selected)) {\n            // for multiselect, selected must be an array\n            this.set('selected', []);\n          }\n          this.selected.removeObject(this.getOptionValue(option));\n        } else {\n          this.set('selected', null);\n        }\n        this.selectedComponents.removeObject(optionComponent);\n        this.bindModelValue();\n\n        // send action to onSelect event..only used for when list is in a dropdown\n        if (this.onDeselect) {\n          this.onDeselect(option, this);\n        }\n      }\n    },\n    bindModelValue() {\n      const model = this.model;\n      if (model.set) {\n        model.set(this.valueKey, this.selected);\n      } else {\n        this.set(`model.${this.valueKey}`, this.selected);\n      }\n      this.bindModelLabel();\n    },\n    bindModelLabel() {\n      // @TODO: test\n      if (this.labelKey) {\n        const model = this.model;\n        model.set(this.labelKey, this.selectedOptionLabel);\n      }\n    },\n    getOptionValue(option) {\n      const value = option.get?.(this.optionValueKey);\n      if (!R.isNil(value)) {\n        return value;\n      }\n      return option?.[this.optionValueKey] || '';\n    },\n    editorComponent: Ember.computed('addItemComponent', 'editItemComponent', function () {\n      return this.addItemComponent || this.editItemComponent;\n    }),\n    /**\n     * returns selected options label,\n     * for multiSelect labels are joined together into a string\n     */\n    selectedOptionLabel: Ember.computed('selectedComponents.[]', function () {\n      const multiSelect = this.multiSelect;\n      const selectedComponents = this.selectedComponents;\n      if (selectedComponents.length > 0) {\n        if (!multiSelect) {\n          // single select\n\n          const selectedOption = selectedComponents.get('firstObject');\n          return selectedOption.get('optionLabel');\n        } else {\n          // multiselect..\n          const labels = [];\n          selectedComponents.forEach(function (component) {\n            labels.pushObject(component.get('optionLabel'));\n          });\n          return labels.join(', ');\n        }\n      }\n      return '';\n    }),\n    isAddSelectDisabled: Ember.computed('selected.[]', 'maxSelectableCount', function () {\n      if (R.isNil(this.maxSelectableCount)) {\n        return false;\n      }\n      const selected = this.selected || [];\n      if (selected.length >= this.maxSelectableCount) {\n        return true;\n      }\n      return false;\n    }),\n    isAllSelectDisabled: Ember.computed('isAddSelectDisabled', 'disabled', 'allSelected', function () {\n      if (this.disabled) {\n        return true;\n      }\n      if (this.allSelected) {\n        return false;\n      }\n      if (this.isAddSelectDisabled) {\n        return true;\n      }\n      return false;\n    }),\n    remainingSelectableCount: Ember.computed('maxSelectableCount', 'selected.[]', function () {\n      const maxSelectableCount = this.maxSelectableCount;\n      const selected = this.selected || [];\n      if (!R.isNil(maxSelectableCount)) {\n        return Number(maxSelectableCount) - selected.length;\n      }\n      return 0;\n    }),\n    selectAllSuffix: Ember.computed('remainingSelectableCount', 'maxSelectableCount', function () {\n      const maxSelectableCount = this.maxSelectableCount;\n      if (R.isNil(maxSelectableCount)) {\n        return '';\n      }\n      return ` (${this.intl.t('selectable')}: ${this.remainingSelectableCount})`;\n    }),\n    getModelValue() {\n      return this.model.get(this.valueKey);\n    },\n    setModelValue(value) {\n      return this.model.set(this.valueKey, value);\n    },\n    toggleShowEditor(bool) {\n      if (typeof bool === 'boolean') {\n        Ember.set(this, 'showEditor', bool);\n      } else {\n        Ember.set(this, 'showEditor', !this.showEditor);\n      }\n    },\n    updateItem() {\n      this.toggleShowEditor(false);\n    },\n    removeItem(item) {\n      const list = this.list;\n      const itemValueKey = this.optionValueKey;\n      const removedValue = this.getOptionValue(item);\n      const found = list?.findBy?.(itemValueKey, removedValue);\n      this.deselectRemovedValue(removedValue);\n      if (found) {\n        list.removeObject(found);\n      }\n      this.toggleShowEditor(false);\n    },\n    deselectRemovedValue(removedValue) {\n      const selectedComponents = this.selectedComponents || [];\n      const optionComponent = R.find(component => {\n        const option = component.get?.('option');\n        if (!option) {\n          return false;\n        }\n        return this.getOptionValue(option) === removedValue;\n      })(selectedComponents);\n      if (optionComponent) {\n        if (!optionComponent?.isDestroyed) {\n          optionComponent.set('isSelected', false);\n        }\n        selectedComponents.removeObject(optionComponent);\n      }\n      if (this.multiSelect) {\n        const selected = Ember.isArray(this.selected) ? this.selected : [];\n        if (!R.includes(removedValue, selected)) {\n          return;\n        }\n        const remainingSelected = R.reject(R.equals(removedValue), selected);\n        this.set('selected', remainingSelected);\n        this.bindModelValue();\n        this.updateOptionsComponentsSelected(remainingSelected);\n        return;\n      }\n      if (this.selected !== removedValue) {\n        return;\n      }\n      this.set('selected', null);\n      this.bindModelValue();\n      this.updateOptionsComponentsSelected(null);\n    },\n    onAddComponent() {\n      if (this.onAdd) {\n        this.onAdd();\n      }\n    },\n    actions: {\n      /**\n       * listen for toggle event sent from options component\n       */\n      toggleOption(option, optionComponent) {\n        // handle toggle event\n        this.toggleOption(option, optionComponent);\n      },\n      addItem(/* item */\n      ) {\n        // this.get('list').pushObject(item)\n\n        // this.send('selectDropdownItem', item);\n      },\n      editItem(item) {\n        this.set('editItem', item);\n        this.set('showEditor', true);\n      },\n      selectAll(isSelected) {\n        let selected = this.selected || [];\n        if (this.isAllSelectDisabled) {\n          return;\n        }\n        const list = this.proxyList || [];\n        const optionValueKey = this.optionValueKey;\n        if (isSelected) {\n          let toSelectAllList = list;\n          const maxSelectableCount = this.maxSelectableCount;\n          if (!R.isNil(maxSelectableCount)) {\n            const availableToSelect = Number(maxSelectableCount) - selected.length;\n            toSelectAllList = R.pipe(R.filter(option => {\n              if (R.includes(option?._data?._key)(selected)) {\n                return false;\n              }\n              return true;\n            }), R.take(availableToSelect))(list);\n          }\n          selected = R.pipe(R.map(item => {\n            const value = item.get(optionValueKey);\n            return value;\n          }), R.concat(selected), R.uniq)(toSelectAllList);\n        } else {\n          const toReject = R.map(item => {\n            const value = item.get(optionValueKey);\n            return value;\n          })(list);\n          selected = R.reject(key => R.includes(key, toReject))(selected);\n        }\n        this.set('selected', selected);\n        this.bindModelValue();\n        this.updateOptionsComponentsSelected(selected);\n        this.set('allSelected', isSelected);\n        if (this.onToggleSelectAll) {\n          this.onToggleSelectAll(isSelected, selected, this.proxyList || [], this);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"didInsertElement\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"didInsertElement\"), _obj), _applyDecoratedDescriptor(_obj, \"setup\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"setup\"), _obj), _applyDecoratedDescriptor(_obj, \"updateSelected\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"updateSelected\"), _obj), _applyDecoratedDescriptor(_obj, \"updateOptionsComponentsSelected\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"updateOptionsComponentsSelected\"), _obj), _applyDecoratedDescriptor(_obj, \"clearAllSelectedOptionsComponents\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"clearAllSelectedOptionsComponents\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleOption\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"toggleOption\"), _obj), _applyDecoratedDescriptor(_obj, \"selectOption\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"selectOption\"), _obj), _applyDecoratedDescriptor(_obj, \"deselectOption\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"deselectOption\"), _obj), _applyDecoratedDescriptor(_obj, \"bindModelValue\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"bindModelValue\"), _obj), _applyDecoratedDescriptor(_obj, \"bindModelLabel\", [_dec0], Object.getOwnPropertyDescriptor(_obj, \"bindModelLabel\"), _obj), _applyDecoratedDescriptor(_obj, \"getOptionValue\", [_dec1], Object.getOwnPropertyDescriptor(_obj, \"getOptionValue\"), _obj), _applyDecoratedDescriptor(_obj, \"getModelValue\", [_dec10], Object.getOwnPropertyDescriptor(_obj, \"getModelValue\"), _obj), _applyDecoratedDescriptor(_obj, \"setModelValue\", [_dec11], Object.getOwnPropertyDescriptor(_obj, \"setModelValue\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleShowEditor\", [_dec12], Object.getOwnPropertyDescriptor(_obj, \"toggleShowEditor\"), _obj), _applyDecoratedDescriptor(_obj, \"updateItem\", [_dec13], Object.getOwnPropertyDescriptor(_obj, \"updateItem\"), _obj), _applyDecoratedDescriptor(_obj, \"removeItem\", [_dec14], Object.getOwnPropertyDescriptor(_obj, \"removeItem\"), _obj), _applyDecoratedDescriptor(_obj, \"deselectRemovedValue\", [_dec15], Object.getOwnPropertyDescriptor(_obj, \"deselectRemovedValue\"), _obj), _applyDecoratedDescriptor(_obj, \"onAddComponent\", [_dec16], Object.getOwnPropertyDescriptor(_obj, \"onAddComponent\"), _obj), _obj));\n});","define(\"client/pods/components/lists/list-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Wp03W2aw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"option\\\",\\\"index\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@addItemOptions\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"&default\\\",\\\"@autofocus\\\",\\\"@filterFromStart\\\",\\\"@context\\\",\\\"@hasSearch\\\"],\\\"statements\\\":[[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,13,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"legend\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"legend\\\",true],[11,\\\"class\\\",[22,\\\"legendClassNames\\\"]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"legend\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translateLegend\\\"]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasDivider\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"helpers/divider-h\\\",null,[[\\\"classNames\\\"],[[24,[\\\"dividerClassNames\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@classNames\\\",\\\"@filterFromStart\\\",\\\"@isSearchBar\\\",\\\"@placeholder\\\",\\\"@value\\\"],[[23,11,[]],\\\"u-full-width\\\",[23,12,[]],true,\\\"search\\\",[23,0,[\\\"filterTerm\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"disabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"multiSelect\\\"]],[24,[\\\"hasSelectAll\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-checkbox\\\",[[12,\\\"class\\\",\\\"list-selector__item\\\"]],[[\\\"@disabled\\\",\\\"@value\\\",\\\"@onToggle\\\",\\\"@label\\\",\\\"@suffix\\\"],[[23,0,[\\\"isAllSelectDisabled\\\"]],[23,0,[\\\"allSelected\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectAll\\\"],null],\\\"select all\\\",[23,0,[\\\"selectAllSuffix\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"helpers/divider-h\\\",null,[[\\\"classNames\\\"],[[24,[\\\"dividerClassNames\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"proxyList\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"get\\\",[[23,3,[]],[24,[\\\"optionGroupLabel\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"isSameAsPreviousValue\\\",[[28,\\\"get\\\",[[23,3,[]],[23,0,[\\\"optionGroupLabel\\\"]]],null]],[[\\\"array\\\",\\\"index\\\",\\\"path\\\"],[[23,0,[\\\"proxyList\\\"]],[23,4,[]],[23,0,[\\\"optionGroupLabel\\\"]]]]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"legend\\\",true],[11,\\\"class\\\",[29,[[23,0,[\\\"legendClassNames\\\"]],\\\" list-selector__legend--sub\\\"]]],[8],[1,[28,\\\"get\\\",[[23,3,[]],[23,0,[\\\"optionGroupLabel\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[23,3,[\\\"isDeleted\\\"]],[23,3,[\\\"_data\\\",\\\"isDeleted\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[25,10]],null,{\\\"statements\\\":[[4,\\\"lists/list-option\\\",null,[[\\\"debug\\\",\\\"translate\\\",\\\"selected\\\",\\\"isAddSelectDisabled\\\",\\\"isCheckbox\\\",\\\"disabled\\\",\\\"multiSelect\\\",\\\"selectedComponents\\\",\\\"icon\\\",\\\"optionsComponents\\\",\\\"optionValueKey\\\",\\\"optionLabelKey2\\\",\\\"optionLabelKey2Translate\\\",\\\"optionLabelKey2Prefix\\\",\\\"optionIconKey\\\",\\\"optionColorKey\\\",\\\"hasColors\\\",\\\"prefix\\\",\\\"prefixKey\\\",\\\"suffix\\\",\\\"suffixKey\\\",\\\"optionClassNames\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"option\\\",\\\"allowEdit\\\",\\\"onEdit\\\",\\\"onToggle\\\"],[[24,[\\\"debug\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"selected\\\"]],[24,[\\\"isAddSelectDisabled\\\"]],true,[24,[\\\"disabled\\\"]],[24,[\\\"multiSelect\\\"]],[24,[\\\"selectedComponents\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"optionsComponents\\\"]],[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey2\\\"]],[24,[\\\"optionLabelKey2Translate\\\"]],[24,[\\\"optionLabelKey2Prefix\\\"]],[24,[\\\"optionIconKey\\\"]],[24,[\\\"optionColorKey\\\"]],[24,[\\\"hasColors\\\"]],[24,[\\\"prefix\\\"]],[24,[\\\"prefixKey\\\"]],[24,[\\\"suffix\\\"]],[24,[\\\"suffixKey\\\"]],[24,[\\\"optionClassNames\\\"]],[24,[\\\"optionLabelKey\\\"]],[23,0,[\\\"_itemClassNames\\\"]],[23,3,[]],[24,[\\\"allowEdit\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"editItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleOption\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[14,10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"lists/list-option\\\",null,[[\\\"debug\\\",\\\"translate\\\",\\\"selected\\\",\\\"isAddSelectDisabled\\\",\\\"isCheckbox\\\",\\\"disabled\\\",\\\"multiSelect\\\",\\\"selectedComponents\\\",\\\"icon\\\",\\\"optionsComponents\\\",\\\"optionValueKey\\\",\\\"optionLabelKey2\\\",\\\"optionLabelKey2Translate\\\",\\\"optionLabelKey2Prefix\\\",\\\"optionIconKey\\\",\\\"optionColorKey\\\",\\\"hasColors\\\",\\\"prefix\\\",\\\"prefixKey\\\",\\\"suffix\\\",\\\"suffixKey\\\",\\\"optionClassNames\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"option\\\",\\\"allowEdit\\\",\\\"onEdit\\\",\\\"onToggle\\\"],[[24,[\\\"debug\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"selected\\\"]],[24,[\\\"isAddSelectDisabled\\\"]],true,[24,[\\\"disabled\\\"]],[24,[\\\"multiSelect\\\"]],[24,[\\\"selectedComponents\\\"]],[24,[\\\"icon\\\"]],[24,[\\\"optionsComponents\\\"]],[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey2\\\"]],[24,[\\\"optionLabelKey2Translate\\\"]],[24,[\\\"optionLabelKey2Prefix\\\"]],[24,[\\\"optionIconKey\\\"]],[24,[\\\"optionColorKey\\\"]],[24,[\\\"hasColors\\\"]],[24,[\\\"prefix\\\"]],[24,[\\\"prefixKey\\\"]],[24,[\\\"suffix\\\"]],[24,[\\\"suffixKey\\\"]],[24,[\\\"optionClassNames\\\"]],[24,[\\\"optionLabelKey\\\"]],[23,0,[\\\"_itemClassNames\\\"]],[23,3,[]],[24,[\\\"allowEdit\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"editItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleOption\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3,4]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"hasUnsetToggle\\\"]],[23,9,[]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[24,[\\\"isModal\\\"]],\\\"modal-container__footer-spacer\\\"],null]],[8],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[24,[\\\"isModal\\\"]],\\\"modal-container__footer\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasUnsetToggle\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"label\\\",\\\"translate\\\"],[[24,[\\\"isDisabledUnsetToggle\\\"]],[24,[\\\"unsetToggleValue\\\"]],[24,[\\\"unsetToggleLabel\\\"]],[24,[\\\"unsetToggleLabelTranslate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@onClose\\\"],[false,[22,\\\"disabled\\\"],\\\"add\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"add\\\"],null],\\\":\\\",[23,0,[\\\"modalDialogLabel\\\"]]],null],false,[28,\\\"fn\\\",[[23,0,[\\\"toggleShowEditor\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"component\\\",[[23,9,[]]],[[\\\"adapterName\\\",\\\"addItemOptions\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"onAddItem\\\",\\\"onCloseDialogAction\\\",\\\"parentModel\\\",\\\"tab\\\"],[[23,8,[]],[23,7,[]],false,true,[28,\\\"action\\\",[[23,0,[]],\\\"addItem\\\"],null],[23,2,[]],[23,6,[]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@modalDialogIsVisible\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@onClose\\\",\\\"@onToggle\\\"],[false,[23,0,[\\\"showEditor\\\"]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"edit\\\"],null],\\\":\\\",[23,0,[\\\"modalDialogLabel\\\"]]],null],false,[28,\\\"fn\\\",[[23,0,[\\\"toggleShowEditor\\\"]],false],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowEditor\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"editorComponent\\\"]]],[[\\\"adapterName\\\",\\\"addItemOptions\\\",\\\"disabled\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"model\\\",\\\"onCloseDialogAction\\\",\\\"onRemoveItem\\\",\\\"onUpdateItem\\\",\\\"parentModel\\\",\\\"showEditor\\\",\\\"tab\\\",\\\"toggleShowEditor\\\"],[[23,8,[]],[23,7,[]],[24,[\\\"disabled\\\"]],true,false,[23,0,[\\\"editItem\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"removeItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"updateItem\\\"],null],[23,6,[]],[23,0,[\\\"showEditor\\\"]],[23,5,[]],[23,0,[\\\"toggleShowEditor\\\"]]]]],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/list-tags/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'span',\n    classNames: ['tags-container'],\n    list: null,\n    model: null,\n    valueKey: null,\n    optionValueKey: '_data.value',\n    optionLabelKey: '_data.label',\n    translate: true,\n    prefix: '',\n    // prefix added to option\n    suffix: '',\n    // suffix added to option\n    // itemClassNames: computed('tagClassNames', function () {\n    //   return 'tag ' + this.get('tagClassNames')\n    // }),\n    // itemClassNameBindings: computed('isTag', function () {\n    //   return 'isTag:is-primary'\n    //   // if (this.get('isYes')) {\n\n    //   //   return ''\n    //   // }\n    // }),\n    // init () {\n    //   this._super(...arguments)\n\n    //   this.setup()\n    // },\n    // setup () {\n    //   this.updateSelected()\n\n    //   // add an observer for the model value property\n    //   const valueKey = this.get('valueKey')\n    //   this.addObserver('model.' + valueKey, this, 'updateSelected')\n    // },\n    // itemClassNames: computed('tagClassNames', function () {\n    //   let classes = ['list-tags__item']\n    //   const tagClassNames = this.get('tagClassNames')\n    //   if (tagClassNames) {\n    //     if (isArray(tagClassNames)) {\n    //       // merge with classes\n    //       classes = classes.concat(tagClassNames)\n    //     } else {\n    //       // only 1 className\n    //       classes.push(tagClassNames)\n    //     }\n    //   }\n\n    //   return classes\n    // }),\n    // // listen to changes in options and updates model.selectedProp when an option is selected but is removed.\n    // // problem: need to loop through each option and then remove\n    // observeOptions: observer('list.[]', function () {\n    //   // @NOTE:\n    //   // observer is being fired when list is first loaded.\n    //   // this will cause model.valueKey to be reset (maybe unecessarily)\n\n    //   var self = this\n\n    //   const list = self.get('list')\n    //   // const model = self.get('model');\n    //   const selected = self.getModelValue()\n\n    //   // only update model if list is not null (list is null when not yet loaded)\n    //   if (list != null) {\n    //     if (isArray(selected)) {\n    //       // multiSelect\n    //       selected.forEach(function (value) {\n    //         // if model's selected value no longer is in the options list then it must be\n    //         // removed from model's selected array\n    //         if (!list.findBy(self.get('optionValueKey'), value)) {\n    //           const model = self.get('model')\n    //           model.get(self.get('valueKey')).removeObject(value)\n    //         }\n    //       })\n    //     } else {\n    //       // single select\n    //       if (!list.findBy(self.get('optionValueKey'), selected)) {\n    //         self.setModelValue(null)\n    //       }\n    //     }\n    //   }\n    // }),\n\n    // // update component's selected property\n    // // called on init to setup which options are selected.\n    // // called when model's property is changed\n    // // function is also used as an observer created on init\n    // // this listens for changes on model and updates selector's value accordingly\n    // updateSelected () {\n    //   const self = this\n    //   const model = self.get('model')\n\n    //   const valueKey = self.get('valueKey')\n    //   let selected = model.get(valueKey)\n\n    //   if (selected == null) {\n    //     selected = []\n    //   } else {\n    //     if (!isArray(selected)) {\n    //       selected = [selected]\n    //     }\n    //   }\n\n    //   this.set('selected', selected)\n    // },\n\n    // /**\n    //  * return model's selected value\n    //  */\n    // getModelValue () {\n    //   return this.get('model').get(this.get('valueKey'))\n    // },\n    // /**\n    //  * set model's selected value\n    //  */\n    // setModelValue (value) {\n    //   return this.get('model').set(this.get('valueKey'), value)\n    // },\n    selected: Ember.computed('value', 'value.[]', function () {\n      // const valueKey = this.get('valueKey')\n      let selected = this.value;\n      if (selected == null) {\n        selected = [];\n      } else {\n        if (!Ember.isArray(selected)) {\n          selected = [selected];\n        }\n      }\n      return selected;\n    }),\n    /**\n     * list of tagged items to display\n     */\n    tagged: Ember.computed('list.[]', 'selected.[]', function () {\n      // @TODO: problem:\n      // in Ember integers are integers,\n      // but when saving using ARANGODB,\n      // integers are converted to strings.\n      // when returning to Ember it expects integers\n      // SOLUTION:\n      // all integers should be strings in EMBER\n\n      // return list of selected\n      // option[optionValueKey] === model[valueKey]\n      const list = this.list;\n      if (Ember.isArray(list)) {\n        const optionValueKey = this.optionValueKey;\n        const selected = this.selected;\n        return list.filter(option => {\n          // if option = one of selected model value then return as tagged\n          if (selected.indexOf(option.get(optionValueKey)) > -1) {\n            return option;\n          }\n        });\n      }\n    }),\n    actions: {\n      /**\n       * Remove selected item from the lists\n       * @param {Model} item - selected item\n       */\n      onDeselectTagItem(item) {\n        const valueKey = item.get(this.optionValueKey);\n        if (!R.isNil(valueKey)) {\n          let values = this.value || [];\n          values = R.reject(R.equals(valueKey))(values);\n          this.set('value', values);\n        }\n        if (this.onDeselect) {\n          this.onDeselect(item);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/lists/list-tags/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xvoOC7du\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tag\\\",\\\"@tabOptionsData\\\",\\\"@tabLinkKey\\\",\\\"@isTabLink\\\",\\\"@isFilterTag\\\",\\\"@icon\\\",\\\"@disableClassNamesFromList\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"tagged\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"lists/list-option\\\",null,[[\\\"translate\\\",\\\"selected\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"optionLabelKey2\\\",\\\"optionLabelKey2Translate\\\",\\\"optionLabelKey2Prefix\\\",\\\"isDefaultKey\\\",\\\"classNames\\\",\\\"icon\\\",\\\"isTag\\\",\\\"isFilterTag\\\",\\\"isSelected\\\",\\\"prefix\\\",\\\"suffix\\\",\\\"option\\\",\\\"isReadonly\\\",\\\"allowDeselect\\\",\\\"onDeselectTagItem\\\",\\\"isTabLink\\\",\\\"tabLinkKey\\\",\\\"tabOptionsData\\\"],[[24,[\\\"translate\\\"]],[24,[\\\"selected\\\"]],[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey\\\"]],[24,[\\\"optionLabelKey2\\\"]],[24,[\\\"optionLabelKey2Translate\\\"]],[24,[\\\"optionLabelKey2Prefix\\\"]],[24,[\\\"isDefaultKey\\\"]],[28,\\\"if\\\",[[23,7,[]],\\\"\\\",[23,1,[\\\"_data\\\",\\\"classNames\\\"]]],null],[23,6,[]],true,[23,5,[]],true,[24,[\\\"prefix\\\"]],[24,[\\\"suffix\\\"]],[23,1,[]],[24,[\\\"isReadonly\\\"]],[24,[\\\"allowDeselect\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onDeselectTagItem\\\",[23,1,[]]],null],[23,4,[]],[23,3,[]],[23,2,[]]]]],false],[0,\\\"\\\\n  \\\"],[1,[23,1,[\\\"classNames\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/lists/list-tags/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/lists/mixins/dropdown\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * documents editor shared functions\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    // focusOut () {\n    //   const showDropdown = this.get('showDropdown')\n    //   const list = this.get('list') || []\n    //   const readonly = this.get('readonly')\n\n    //   if (readonly === false && showDropdown && list.length > 0) {\n\n    //   } else {\n    //     this.set('showDropdown', false)\n    //   }\n    // },\n\n    keyDown(e) {\n      this._super(e);\n\n      // if tab or down is pressed\n      const keyCode = e.keyCode || e.which;\n      const hasFocus = this.$().find('.list-results__item:focus');\n      const list = this.$().find('.list-results__item');\n      const showEditor = this.showEditor;\n      if (!showEditor) {\n        if (list.length > 0) {\n          if (keyCode === 27) {\n            // Claim Escape so the outer modal-dialog does not also close\n            e.preventDefault();\n            e.stopPropagation();\n            this.send('hideDropdown');\n          }\n          if (keyCode === 13) {\n            // enter\n            this.set('input', this.value);\n            if (hasFocus.length > 0) {\n              hasFocus.click();\n            } else {\n              const firstObject = this.list.get('firstObject');\n              if (firstObject && this.value === this.lastValue) {\n                this.send('selectDropdownItem', firstObject);\n              } else {\n                if (this.onSearchAction) {\n                  this.send('onSearchAction');\n                }\n              }\n            }\n            this.set('lastValue', this.input);\n          }\n          let hasNext;\n          if (keyCode === 38) {\n            // up\n            e.preventDefault();\n            e.stopPropagation();\n            hasNext = hasFocus.prev();\n            if (hasFocus.length > 0 && hasNext.length === 0) {\n              // go to bottom\n              list[list.length - 1].focus();\n            } else {\n              if (hasFocus.length === 0) {\n                // nothing focused, go to first\n                this.$().find('.list-results__item')[list.length - 1].focus();\n              } else {\n                // go to next\n                hasNext.focus();\n              }\n            }\n          }\n          if (keyCode === 40) {\n            // down\n\n            e.preventDefault();\n            e.stopPropagation();\n            hasNext = hasFocus.next();\n            if (hasFocus.length > 0 && hasNext.length === 0) {\n              // go to top\n              this.$().find('.list-results__item')[0].focus();\n            } else {\n              if (hasFocus.length === 0) {\n                // nothing focused, go to first\n                this.$().find('.list-results__item')[0].focus();\n              } else {\n                // go to next\n                hasNext.focus();\n              }\n            }\n          }\n          if (keyCode === 9) {\n            this.send('hideDropdown');\n          }\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/menus/menu-list/component\", [\"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 = Ember.Component.extend({\n    tagName: 'ul',\n    classNames: ['ul'],\n    translate: true,\n    menu: null,\n    actions: {\n      selected: function (item, tab) {\n        // must always use action set on item model\n        this.set('action', item.getData('action'));\n        this.sendAction('action', item, tab);\n      }\n    }\n  });\n});","define(\"client/pods/components/menus/menu-list/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SmF5eiif\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"menu\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"li\\\",false],[3,\\\"action\\\",[[23,0,[]],\\\"selected\\\",[23,1,[]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"label\\\"]],true],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/menu-list/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/nav-menu/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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;\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 MenusNavMenu = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class MenusNavMenu extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"translate\", _descriptor, this);\n      _initializerDefineProperty(this, \"selected\", _descriptor2, this);\n    }\n    get effectiveSelected() {\n      return this.args.selected ?? this.selected;\n    }\n    selectItem(item) {\n      // must always use action set on item model\n      Ember.set(this, 'selected', item);\n      if (this.args.onSelect) {\n        return this.args.onSelect(item);\n      }\n      console.error('no onSelected passed in');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, true, this.args.translate);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selected\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectItem\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"selectItem\"), _class.prototype), _class);\n});","define(\"client/pods/components/menus/nav-menu/nav-item/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let MenusNavMenuNavItem = _exports.default = (_dec = Ember._action, _class = class MenusNavMenuNavItem extends _component.default {\n    get isDisabled() {\n      const enable = this.args?.item?._data?.enable || true;\n      return !enable;\n    }\n    get isActive() {\n      const selected = this.args.selected;\n      const item = this.args.item;\n      if (selected === item) {\n        return true;\n      }\n      const selectedValue = selected?.getData?.('value') ?? selected?._data?.value;\n      const itemValue = item?.getData?.('value') ?? item?._data?.value;\n      if (selectedValue && itemValue) {\n        return selectedValue === itemValue;\n      }\n      return false;\n    }\n    select(item) {\n      this.args.onSelect(item);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _class);\n});","define(\"client/pods/components/menus/nav-menu/nav-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FAaZqgof\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@item\\\",\\\"@translate\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"button\\\",false],[12,\\\"class\\\",[29,[\\\"button nav-item\\\\n    \\\",[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"className\\\"]],[23,1,[\\\"_data\\\",\\\"className\\\"]],\\\"\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[23,0,[\\\"isActive\\\"]],\\\"is-active\\\",\\\"\\\"],null],\\\"\\\\n  \\\"]]],[12,\\\"data-guide-id\\\",[23,1,[\\\"_data\\\",\\\"label\\\"]]],[12,\\\"disabled\\\",[23,0,[\\\"isDisabled\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"select\\\"]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[[23,1,[\\\"_data\\\",\\\"icon\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"label\\\"]]],[[\\\"translate\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"badge\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__badge\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,1,[\\\"_data\\\",\\\"badge\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[28,\\\"msgs/error-badge\\\",null,[[\\\"errors\\\",\\\"errorsTracker\\\"],[[23,3,[]],[23,1,[\\\"_data\\\",\\\"errorsTracker\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/nav-menu/nav-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/nav-menu/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"r7oylbXU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"@errors\\\",\\\"@menu\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-menu\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu/nav-item\\\",[],[[\\\"@item\\\",\\\"@selected\\\",\\\"@translate\\\",\\\"@errors\\\",\\\"@onSelect\\\"],[[23,1,[]],[23,0,[\\\"effectiveSelected\\\"]],[23,0,[\\\"translate\\\"]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/nav-menu/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/nav-tree/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['nav-tree'],\n    translate: true,\n    menu: Ember.computed('list.[]', 'sub.[]', function () {\n      const sub = this.sub || [];\n      if (!R.isEmpty(sub)) {\n        return sub;\n      }\n      let list = this.get('list') || [];\n      if (R.isNil(list)) {\n        list = [];\n      }\n      return list.map(function (item) {\n        return item;\n      });\n    }),\n    favoriteMenu: Ember.computed('list.[]', function () {\n      let list = this.get('list') || [];\n      if (R.isNil(list)) {\n        list = [];\n      }\n      const favoriteMenu = R.find(R.pathEq(['_data', 'label'], 'favorites'))(list);\n      if (favoriteMenu) {\n        const favoriteMenuSub = favoriteMenu.getData('sub') || [];\n        return favoriteMenuSub;\n      }\n      return [];\n    }),\n    actions: {\n      toggleSubMenu(component) {\n        component.toggleProperty('isExpanded');\n      }\n    }\n  });\n});","define(\"client/pods/components/menus/nav-tree/nav-item/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency\"], function (_exports, R, RA, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    dragAndDrop: Ember.inject.service(),\n    // tagName: 'div',\n    // classNames: ['nav-tree__item'],\n    translate: true,\n    item: null,\n    labelKey: 'label',\n    label: Ember.computed('item', 'labelKey', 'isPinnedMenu', function () {\n      const isPinnedMenu = this.isPinnedMenu || '';\n      if (isPinnedMenu) {\n        return this.item?._data?.pinLabel;\n      }\n      return this.item?._data[this.labelKey];\n    }),\n    draggable: Ember.computed('item', function () {\n      const _key = this.item.getData('_key') || '';\n      if (RA.isNilOrEmpty(_key)) {\n        return false;\n      }\n      return true;\n    }),\n    _translate: Ember.computed('item._data.translate', function () {\n      if (this?.item?._data?.translate === false) {\n        return false;\n      }\n      return this.translate;\n    }),\n    onClick() {\n      const item = this.item;\n      const pinLabel = item.getData('pinLabel');\n      if (!R.equals(pinLabel, 'favorites')) {\n        this.onSelect(item);\n      }\n    },\n    onDrop(droppedAt, results, indexDotPath = '_data.index', outerDrop, draggedFrom) {\n      this.dragAndDrop.onDropWithIndexOld(droppedAt, results, indexDotPath = '_data.index', outerDrop, draggedFrom);\n      this.onUpdateMenuIndexTask.perform({\n        resetIndex: false\n      });\n    },\n    pinTask: (0, _emberConcurrency.task)(function* (wizardItem) {\n      const onPinTask = this.onPinTask;\n      if (onPinTask?.perform) {\n        yield onPinTask.perform(wizardItem);\n      } else {\n        yield onPinTask?.(wizardItem);\n      }\n    }),\n    pinIcon: Ember.computed('pinType', 'item._data.isPinned', function () {\n      const pinType = this.pinType || 'favorite';\n      let isPinned = R.pathOr(false, ['_data', 'isPinned'])(this.item);\n      switch (pinType) {\n        case 'wizard':\n          return isPinned ? 'far fa-check-square' : 'far fa-square';\n        case 'favorite':\n        default:\n          return isPinned ? 'fas fa-star' : 'far fa-star';\n      }\n    }),\n    showPinIcon: Ember.computed('pinTask', 'item._data.pinLabel', function () {\n      if (!this.pinTask) {\n        return false;\n      }\n      const pinLabel = R.pathOr('', ['item', '_data', 'pinLabel'])(this);\n      if (!pinLabel || pinLabel === 'favorites' || pinLabel === 'wizards') {\n        return false;\n      }\n      return true;\n    })\n  }, _applyDecoratedDescriptor(_obj, \"onClick\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onClick\"), _obj), _applyDecoratedDescriptor(_obj, \"onDrop\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"onDrop\"), _obj), _obj));\n});","define(\"client/pods/components/menus/nav-tree/nav-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SwSMjRjw\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-tree__item flex-container-row\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"nav-tree__item-label\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClick\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"nav-tree__icon u-width-25\\\",[24,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"_translate\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-tree__item-fav\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"pinTask\\\"]],[28,\\\"not-eq\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"pinLabel\\\"]],\\\"favorites\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"disallowPin\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"isPinned\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"icon\\\",\\\"classNames\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"fas fa-star\\\",\\\"flex-container--align-content-end element-icon--s\\\",[23,0,[\\\"pinTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"pinTask\\\"]],[24,[\\\"wizardItem\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"icon\\\",\\\"classNames\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"far fa-star\\\",\\\"flex-container--align-content-end element-icon--s\\\",[23,0,[\\\"pinTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"pinTask\\\"]],[24,[\\\"wizardItem\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/nav-tree/nav-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/nav-tree/nav-nested/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    settings: Ember.inject.service(),\n    classNames: ['nav-nested'],\n    itemClassNames: [],\n    translate: true,\n    item: null,\n    isExpanded: false,\n    sub: Ember.computed('item._data.sub.[]', 'settings.settingsModel.synced', 'settings.settingsModel._data.beta.billing', function () {\n      return R.pipe(R.pathOr([], ['item', '_data', 'sub']), R.filter(item => {\n        const betaPath = item?._data?.beta;\n        if (RA.isNilOrEmpty(betaPath)) {\n          return true;\n        }\n        return this.settings.isBetaAllowed(betaPath) === true;\n      }))(this);\n    }),\n    groups: Ember.computed('item._data.groups.[]', 'settings.settingsModel.synced', 'settings.settingsModel._data.beta.billing', function () {\n      return R.pipe(R.pathOr([], ['item', '_data', 'groups']), R.map(group => {\n        return R.filter(item => {\n          const betaPath = item?._data?.beta;\n          if (RA.isNilOrEmpty(betaPath)) {\n            return true;\n          }\n          return this.settings.isBetaAllowed(betaPath) === true;\n        })(group);\n      }), R.reject(RA.isNilOrEmpty))(this);\n    })\n  });\n});","define(\"client/pods/components/menus/nav-tree/nav-nested/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5v7NLx4l\",\n    \"block\": \"{\\\"symbols\\\":[\\\"sub\\\",\\\"@pinType\\\",\\\"@onExpand\\\",\\\"@isPinnedMenu\\\",\\\"@onUpdateMenuIndexTask\\\",\\\"@onPinTask\\\",\\\"@onSelect\\\",\\\"@labelKey\\\",\\\"@wizardItem\\\",\\\"@item\\\"],\\\"statements\\\":[[1,[28,\\\"menus/nav-tree/nav-item\\\",null,[[\\\"item\\\",\\\"wizardItem\\\",\\\"classNames\\\",\\\"labelKey\\\",\\\"onPinTask\\\",\\\"onUpdateMenuIndexTask\\\",\\\"isPinnedMenu\\\",\\\"onSelect\\\",\\\"pinType\\\"],[[23,10,[]],[23,9,[]],\\\"nav-tree__item-link\\\",[23,8,[]],[23,6,[]],[23,5,[]],[23,4,[]],[28,\\\"action\\\",[[23,0,[]],[23,3,[]],[23,0,[]]],null],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"sub\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"menus/nav-tree\\\",null,[[\\\"classNames\\\",\\\"sub\\\",\\\"labelKey\\\",\\\"onSelect\\\",\\\"onPinTask\\\",\\\"onUpdateMenuIndexTask\\\",\\\"isPinnedMenu\\\",\\\"onExpand\\\",\\\"pinType\\\"],[\\\"nav-tree__children-container\\\",[23,0,[\\\"sub\\\"]],[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"groups\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"groups\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-tree__group-container\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"menus/nav-tree\\\",null,[[\\\"classNames\\\",\\\"sub\\\",\\\"labelKey\\\",\\\"onSelect\\\",\\\"onPinTask\\\",\\\"onUpdateMenuIndexTask\\\",\\\"isPinnedMenu\\\",\\\"onExpand\\\",\\\"pinType\\\"],[\\\"nav-tree__children-container\\\",[23,1,[]],[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/nav-tree/nav-nested/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/nav-tree/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5HChha0Z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"@onSelect\\\",\\\"@isPinnedMenu\\\",\\\"@pinType\\\",\\\"@onUpdateMenuIndexTask\\\",\\\"@onPinTask\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"menu\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,1,[\\\"_data\\\",\\\"groups\\\"]],[23,1,[\\\"_data\\\",\\\"sub\\\"]],[23,1,[\\\"_data\\\",\\\"isFavorites\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"menus/nav-tree/nav-nested\\\",null,[[\\\"item\\\",\\\"wizardItem\\\",\\\"labelKey\\\",\\\"isExpanded\\\",\\\"onExpand\\\",\\\"onPinTask\\\",\\\"isPinnedMenu\\\",\\\"onUpdateMenuIndexTask\\\",\\\"onSelect\\\",\\\"pinType\\\"],[[23,1,[]],[23,1,[]],\\\"label\\\",[23,1,[\\\"_data\\\",\\\"isExpanded\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleSubMenu\\\"],null],[23,6,[]],[23,3,[]],[23,5,[]],[23,2,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\"],[[23,1,[\\\"_data\\\",\\\"beta\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"menus/nav-tree/nav-item\\\",null,[[\\\"item\\\",\\\"wizardItem\\\",\\\"classNames\\\",\\\"labelKey\\\",\\\"onPinTask\\\",\\\"onUpdateMenuIndexTask\\\",\\\"pinType\\\",\\\"isPinnedMenu\\\",\\\"onSelect\\\"],[[23,1,[]],[23,1,[]],\\\"nav-tree__item-link\\\",\\\"label\\\",[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/nav-tree/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/progress-bar/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 MenusProgressBarComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _class = class MenusProgressBarComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"hasWrap\", _descriptor, this);\n      _initializerDefineProperty(this, \"isWizard\", _descriptor2, this);\n      if (this.args.isWizard === false) {\n        this.isWizard = false;\n      }\n      if (this.args.hasWrap === false) {\n        this.hasWrap = false;\n      }\n    }\n    get hasCurrent() {\n      return !!(this.args.current || this.args.currentIndex);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasWrap\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isWizard\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _class);\n});","define(\"client/pods/components/menus/progress-bar/step/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class MenusProgressBarStepComponent extends _component.default {\n    get stepStatus() {\n      const currentIndex = this.currentIndex;\n      if (currentIndex === -1) {\n        return 'inactive';\n      }\n      const index = this.args.index;\n      if (index < currentIndex) {\n        return 'done';\n      } else if (index === currentIndex) {\n        return 'active';\n      } else {\n        return 'inactive';\n      }\n    }\n    get currentIndex() {\n      if (!this.args.hasCurrent) {\n        return -1;\n      }\n      const currentIndex = this.args.currentIndex;\n      if (typeof currentIndex === 'number') {\n        return currentIndex;\n      }\n      const current = this.args.current;\n      const steps = this.args.steps;\n      if (current && steps) {\n        return R.findIndex(R.pathEq(['_data', 'value'], current.value))(steps);\n      }\n      return -1;\n    }\n    get classNames() {\n      const classNames = ['u-fade-in-bg'];\n      if (this.args.classNames) {\n        classNames.push(this.args.classNames);\n      } else {\n        classNames.push('u-tab-menu__item');\n      }\n      if (this.stepStatus === 'active') {\n        classNames.push('is-active');\n      } else if (this.args.allowStepSkipping === false && this.args.step?.visited !== true) {\n        classNames.push('is-disabled');\n      }\n      return classNames.join('\\n');\n    }\n  }\n  _exports.default = MenusProgressBarStepComponent;\n});","define(\"client/pods/components/menus/progress-bar/step/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Q0SlsF4n\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@step\\\",\\\"@onSelect\\\"],\\\"statements\\\":[[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[23,0,[\\\"classNames\\\"]]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,3,[]],[23,2,[]]],null]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"_data\\\",\\\"label\\\"]]],[[\\\"translate\\\"],[[23,2,[\\\"_data\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"label\\\"]]],[[\\\"translate\\\"],[[23,2,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"step\\\"],null],[28,\\\"sum\\\",[[23,1,[]],1],null]],null],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/progress-bar/step/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/progress-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MB7LoX7j\",\n    \"block\": \"{\\\"symbols\\\":[\\\"step\\\",\\\"index\\\",\\\"&default\\\",\\\"@itemClassNames\\\",\\\"@current\\\",\\\"@currentIndex\\\",\\\"@steps\\\",\\\"@translate\\\",\\\"@onSelect\\\",\\\"@allowStepSkipping\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-tab flex-container-row \\\",[28,\\\"if\\\",[[23,0,[\\\"hasWrap\\\"]],\\\"flex-container--wrap\\\",\\\"\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isWizard\\\"]],\\\"is-wizard\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"ul\\\",true],[11,\\\"class\\\",[29,[\\\"u-tab-menu tab-menu-group flex-container-row \\\",[28,\\\"if\\\",[[23,0,[\\\"hasWrap\\\"]],\\\"flex-container--wrap\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"menus/progress-bar/step\\\",[],[[\\\"@classNames\\\",\\\"@current\\\",\\\"@currentIndex\\\",\\\"@hasCurrent\\\",\\\"@index\\\",\\\"@step\\\",\\\"@steps\\\",\\\"@translate\\\",\\\"@onSelect\\\",\\\"@allowStepSkipping\\\"],[[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"hasCurrent\\\"]],[23,2,[]],[23,1,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,3]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/progress-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/sidebar/item/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-extension\"], function (_exports, _component, R, R_) {\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;\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 MenusSidebarItemComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class MenusSidebarItemComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasSetup\", _descriptor2, this);\n      _defineProperty(this, \"iconPath\", this.args.iconPath || '_data.icon');\n      _defineProperty(this, \"actionPath\", this.args.actionPath || '_data.action');\n    }\n    get isSetup() {\n      if (!this.args.isMenuItem) {\n        return true;\n      }\n      return this.hasSetup;\n    }\n    setupMenuItem() {\n      if (!this.args.isMenuItem) {\n        return;\n      }\n\n      // find menu item for button\n      const menu = this.args.menu || [];\n      const actionValue = this.args.actionValue;\n      this.item = R.find(R_.dotPathEq(this.actionPath, actionValue))(menu);\n      this.hasSetup = true;\n    }\n    get icon() {\n      if (!this.args.isMenuItem) {\n        return this.args.icon || '';\n      }\n      if (this.item) {\n        return R_.dotPath(this.iconPath)(this.item);\n      }\n      return this.args.icon || '';\n    }\n\n    // isDisabled: computed('item._data.{enable}', function () {\n    //   const enable = R.pathOr(true, ['item', '_data', 'enable'])(this)\n    //   return !enable\n    // }),\n\n    // get isHidden () {\n\n    // }\n\n    // get isAllowed () {\n\n    // }\n\n    get isDisabled() {\n      if (this.args.isDisabled != null) {\n        return this.args.isDisabled;\n      }\n      if (this.args.isMenuItem) {\n        return false;\n      }\n      if (this.args.item) {\n        return false;\n      }\n      return true;\n    }\n    click() {\n      const item = this.item;\n      this.args.onSubmit(item);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasSetup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupMenuItem\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setupMenuItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"click\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"click\"), _class.prototype), _class);\n});","define(\"client/pods/components/menus/sidebar/item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nrE267qT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isRunning\\\",\\\"@tooltipLabel\\\",\\\"@toggleIsOn\\\",\\\"&default\\\",\\\"@menu\\\",\\\"@isMenuItem\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,6,[]],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setupMenuItem\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,4]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[14,4],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isSetup\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@tooltipLabel\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"icon\\\"]],[23,1,[]],true,false,[23,2,[]],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"click\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/sidebar/item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/tab-menu-new/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _ramda, R_, RA) {\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, _dec0, _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 MenusTabMenuNewComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember.computed('args.menu.[]', 'args.wizardContainerComponent.stepsList.[]'), _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class MenusTabMenuNewComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"selected\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasWrap\", _descriptor3, this);\n      _initializerDefineProperty(this, \"alreadySelected\", _descriptor4, this);\n      _initializerDefineProperty(this, \"autoSelectFirstTab\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hideWhenOnlyOneMenuItem\", _descriptor6, this);\n      _defineProperty(this, \"menuLabelKey\", this.args?.menuLabelKey || '_data.label');\n      _defineProperty(this, \"classNames\", this.args?.classNames || 'u-tab-menu');\n    }\n    get menu() {\n      return this.args.menu || this.args.wizardContainerComponent?.stepsList || [];\n    }\n    get showMenu() {\n      const hideWhenOnlyOneMenuItem = this.hideWhenOnlyOneMenuItem;\n      const menu = this.args.menu || [];\n      if (hideWhenOnlyOneMenuItem && menu.length <= 1) {\n        return false;\n      }\n      return true;\n    }\n    setup() {\n      const menu = this.menu || [];\n\n      // Mark first step as visited\n      if (this.args?.wizardContainerComponent?.markMenuItemVisited && menu.length > 0) {\n        this.args.wizardContainerComponent.markMenuItemVisited(menu[0]);\n      }\n      if (this.autoSelectFirstTab) {\n        const tab = this.args.tab;\n        const initialPanel = this.tabsManager.getInitialPanel(tab, menu);\n        this.select(initialPanel);\n      }\n      this.alreadySelected = false;\n    }\n    setSelected(activeSubTabMenu) {\n      const menu = this.menu || [];\n      if (menu?.length <= 0) {\n        return {};\n      }\n      if (RA.isNilOrEmpty(activeSubTabMenu)) {\n        this.selected = null;\n        return {};\n      }\n      this.alreadySelected = true;\n      this.selected = activeSubTabMenu;\n      return activeSubTabMenu;\n    }\n    get translate() {\n      return _ramda.default.pathOr(true, ['args', 'translate'])(this);\n    }\n    get groupedMenu() {\n      const menu = this.menu || [];\n      const hasGroupProp = _ramda.default.find(_ramda.default.path(['_data', 'group']))(menu);\n      if (!hasGroupProp) {\n        return {\n          '': menu\n        };\n      }\n      const groupByPath = this.args?.groupByPath || '_data.group';\n      return _ramda.default.groupBy(R_.dotPath(groupByPath))(menu);\n    }\n\n    /**\n     * Select tab item\n     * @param {Object} item\n     * @void\n     */\n    select(item) {\n      if (this.args?.wizardContainerComponent?.isWizard !== true) {\n        this.setSelected(item);\n        if (this.args?.onSelect) {\n          this.args.onSelect(item);\n        }\n        return;\n      }\n      if (this.args?.wizardContainerComponent && item.visited !== true) {\n        return;\n      }\n      this.setSelected(item);\n      if (this.args?.wizardContainerComponent?.markMenuItemVisited) {\n        this.args.wizardContainerComponent.markMenuItemVisited(item);\n      }\n      if (this.args?.onSelect) {\n        this.args.onSelect(item);\n        if (this.args?.wizardContainerComponent?.setIsReloading) {\n          this.args.wizardContainerComponent.setIsReloading();\n        }\n      }\n    }\n\n    /**\n     * Set css prop of tab header-title\n     * @param {Object} params\n     * @param {HTMLElement} params.tabMenuContainer\n     * @param {HTMLElement|Null} params.tabGridContent\n     * @param {HTMLElement|Null} params.headerTitle\n     * @param {HTMLElement|Null} params.outerPanelContent if not null, that means it is a panel grid inside another one\n     * @void\n     */\n    _setHeaderTitleCss({\n      tabMenuContainer,\n      tabGridContent,\n      headerTitle,\n      outerPanelContent\n    } = {}) {\n      if (tabGridContent) {\n        const tabContentOnly = this.args?.tabContentOnly || false;\n        if (tabContentOnly) {\n          tabMenuContainer.style.top = 'auto';\n        } else {\n          const offsetTop = tabGridContent.offsetTop || 128;\n          tabMenuContainer.style.top = `${offsetTop}px`;\n        }\n      }\n      if (outerPanelContent) {\n        if (headerTitle) {\n          headerTitle.style.zIndex = 'unset';\n        }\n        tabMenuContainer.style.zIndex = 'unset';\n      } else {\n        // if (headerTitle && !headerTitle.classList.contains('hidden')) {\n        //   const tabMenuTop = tabMenuContainer?.offsetTop\n        //   const tabMenuHeight = tabMenuContainer?.offsetHeight\n\n        //   if (!tabMenuTop || !tabMenuHeight) {\n        //     return\n        //   }\n\n        //   const tabMenuBottom = tabMenuTop + tabMenuHeight\n        //   headerTitle.style.top = `${tabMenuBottom}px`\n        //   headerTitle.style.position = 'sticky'\n        // }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selected\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasWrap\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return _ramda.default.pathOr(true, ['args', 'hasWrap'])(this);\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"alreadySelected\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"autoSelectFirstTab\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return _ramda.default.pathOr(true, ['args', 'autoSelectFirstTab'])(this);\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hideWhenOnlyOneMenuItem\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return _ramda.default.pathOr(false, ['args', 'hideWhenOnlyOneMenuItem'])(this);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"menu\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"menu\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSelected\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _class);\n});","define(\"client/pods/components/menus/tab-menu-new/tab-item/component\", [\"exports\", \"ramda\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, R, _component, RA) {\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;\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 MenusTabMenuNewTabItemComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember.computed('args.subTabs.@each.isActive', 'args.selected._data.value'), _dec6 = Ember._action, _class = class MenusTabMenuNewTabItemComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"menuLabelKey\", _descriptor2, this);\n      _initializerDefineProperty(this, \"classNames\", _descriptor3, this);\n      _initializerDefineProperty(this, \"translate\", _descriptor4, this);\n    }\n    get isActive() {\n      if (this.args.debug) {\n        debugger; //eslint-disable-line\n      }\n      const subTabs = this.args.subTabs || [];\n      if (RA.isNilOrEmpty(subTabs)) {\n        const selected = this.args.selected || {};\n        if (selected?._data?.value === this.itemValue) {\n          return true;\n        }\n        return false;\n      }\n      const menu = this.args.menu || [];\n      const currentMenuItem = this.args.item;\n      return this.tabsManager.isActiveMenuByActiveTab(subTabs, menu, currentMenuItem);\n    }\n    get item() {\n      return this.args?.item || null;\n    }\n    get label() {\n      return this.item.get?.(this.menuLabelKey);\n    }\n    get itemComponent() {\n      return this.item?._data?.component || this.item?.component || '';\n    }\n    get itemValue() {\n      return this.item?._data?.value || this.item?.value || '';\n    }\n    get itemLabel() {\n      return this.item?._data?.label || this.item?.label || '';\n    }\n\n    // get currentActive () {\n    //   if (this.args?.isCurrentActive) {\n    //     const currentActive = this.args.isCurrentActive\n\n    //     if (currentActive?.label) {\n    //       return currentActive.label === this.itemLabel\n    //     }\n\n    //     if (currentActive?.value) {\n    //       return currentActive.value === this.itemValue\n    //     }\n\n    //     return currentActive.component === this.itemComponent\n    //   }\n    //   return false\n    // }\n\n    get subTab() {\n      const subTabs = this.args?.subTabs || [];\n      const subTab = R.find(R.propEq('component', this.itemComponent))(subTabs);\n      return subTab;\n    }\n    onClick() {\n      if (this.args?.onSelect) {\n        this.args.onSelect(this.item);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"menuLabelKey\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args?.menuLabelKey || '_data.label';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"classNames\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args?.classNames || 'u-tab-menu__item';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isActive\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"isActive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _class);\n});","define(\"client/pods/components/menus/tab-menu-new/tab-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pSmVkzjT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isActive\\\",\\\"@translate\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[23,0,[\\\"classNames\\\"]],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isActive\\\"]],\\\"is-active\\\",\\\"\\\"],null],\\\" u-fade-in-bg\\\"]]],[12,\\\"data-tabs-header\\\",[23,0,[\\\"itemValue\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClick\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,3]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"label\\\"]]],[[\\\"translate\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-asterisk element-icon--xs has-text-danger\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"badge\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__badge\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"item\\\",\\\"_data\\\",\\\"badge\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"hasSubTabs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-chevron-down\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-chevron-right\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-tab-menu__item-error has-text-danger has-text-small u-display-none\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-circle-exclamation\\\"]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/tab-menu-new/tab-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/tab-menu-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"a4Fygpla\",\n    \"block\": \"{\\\"symbols\\\":[\\\"groupMenu\\\",\\\"groupName\\\",\\\"item\\\",\\\"index\\\",\\\"&default\\\",\\\"@debug\\\",\\\"@itemClassNames\\\",\\\"@tabs\\\",\\\"@isWizard\\\",\\\"@wizardContainerComponent\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"menu\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"isWizard\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tab flex-container-row\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"menus/progress-bar\\\",[],[[\\\"@allowStepSkipping\\\",\\\"@current\\\",\\\"@currentIndex\\\",\\\"@steps\\\",\\\"@onSelect\\\"],[[23,10,[\\\"allowStepSkipping\\\"]],[23,10,[\\\"currentStep\\\"]],[23,10,[\\\"currentStepIndex\\\"]],[23,10,[\\\"stepsList\\\"]],[23,0,[\\\"select\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[25,5]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[14,5],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showMenu\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-tab flex-container-row \\\",[28,\\\"if\\\",[[23,0,[\\\"hasWrap\\\"]],\\\"flex-container--wrap\\\",\\\"\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,9,[]],\\\"is-wizard\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,0,[\\\"groupedMenu\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"ul\\\",true],[11,\\\"class\\\",[29,[\\\"u-tab-menu tab-menu-group flex-container-row \\\",[28,\\\"if\\\",[[23,0,[\\\"hasWrap\\\"]],\\\"flex-container--wrap\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"menus/tab-menu-new/tab-item\\\",[],[[\\\"@debug\\\",\\\"@classNames\\\",\\\"@selected\\\",\\\"@index\\\",\\\"@item\\\",\\\"@menu\\\",\\\"@menuLabelKey\\\",\\\"@menuIndex\\\",\\\"@onSelect\\\",\\\"@subTabs\\\",\\\"@translate\\\"],[[23,6,[]],[23,7,[]],[23,0,[\\\"selected\\\"]],[23,4,[]],[23,3,[]],[23,1,[]],[23,0,[\\\"menuLabelKey\\\"]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"select\\\"]],[23,3,[]]],null],[23,8,[]],[23,0,[\\\"translate\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"u-tab-menu__divider\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[25,5]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[14,5],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/tab-menu-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/tab-menu-side/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _ramda, R_, RA) {\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;\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 MenusTabMenuNewComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class MenusTabMenuNewComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"selected\", _descriptor2, this);\n      _initializerDefineProperty(this, \"alreadySelected\", _descriptor3, this);\n      _defineProperty(this, \"menuLabelKey\", this.args?.menuLabelKey || '_data.label');\n      _defineProperty(this, \"classNames\", this.args?.classNames || 'u-tab-menu');\n    }\n    setup() {\n      this.setSelected();\n    }\n    setupAfterTabs() {\n      // @NOTE: this has a racing condition problem.\n      // because tab headers and tab content are different components,\n      // currently there is no way for the header to know that the contents\n      // has rendered. so if a sub panel is loaded manually elsewhere, the headers\n      // cannot know which menu item to set as active.\n      // possible solution: should not load content manually. should define which tab menu item to load.\n\n      if (this.alreadySelected) {\n        return false;\n      }\n\n      // this runs on first load ONLY. is user already manually selects another tab dont reselect\n      // get from active sub tabs list\n      const tabs = this.args.tabs || [];\n      const menu = this.args?.menu || [];\n      const displayedTab = this.tabsManager.getActiveTab(tabs);\n      const displayedComponent = displayedTab?.component || '';\n      let activeSubTabMenu;\n      if (displayedComponent) {\n        activeSubTabMenu = _ramda.default.find(_ramda.default.pathEq(['_data', 'component'], displayedComponent))(menu);\n      }\n      if (activeSubTabMenu) {\n        this.setSelected(activeSubTabMenu);\n      }\n    }\n    setSelected(item) {\n      const menu = this.args?.menu || [];\n      if (menu?.length <= 0) {\n        return {};\n      }\n      let activeSubTabMenu = menu[0];\n      if (RA.isNotNilOrEmpty(item)) {\n        this.alreadySelected = true;\n        activeSubTabMenu = item;\n      }\n      if (RA.isNilOrEmpty(activeSubTabMenu)) {\n        this.selected = null;\n        return {};\n      }\n      this.selected = activeSubTabMenu;\n      return activeSubTabMenu;\n    }\n    get translate() {\n      return _ramda.default.pathOr(true, ['args', 'translate'])(this);\n    }\n    get groupedMenu() {\n      const menu = this.args?.menu || [];\n      const isGrouped = this.args?.isGrouped || false;\n      if (!isGrouped) {\n        return {\n          '': menu\n        };\n      }\n      const groupByPath = this.args?.groupByPath || '_data.group';\n      const grouped = _ramda.default.groupBy(R_.dotPath(groupByPath))(menu);\n      return grouped;\n    }\n\n    /**\n     * Select tab item\n     * @param {Object} item\n     * @void\n     */\n    select(item) {\n      this.setSelected(item);\n      if (this.args?.onSelect) {\n        this.args.onSelect(item);\n      }\n    }\n\n    /**\n     * Set css prop of tab header-title\n     * @param {Object} params\n     * @param {HTMLElement} params.tabMenuContainer\n     * @param {HTMLElement|Null} params.tabGridContent\n     * @param {HTMLElement|Null} params.headerTitle\n     * @param {HTMLElement|Null} params.outerPanelContent if not null, that means it is a panel grid inside another one\n     * @void\n     */\n    _setHeaderTitleCss({\n      tabMenuContainer,\n      tabGridContent,\n      headerTitle,\n      outerPanelContent\n    } = {}) {\n      if (tabGridContent) {\n        const tabContentOnly = this.args?.tabContentOnly || false;\n        if (tabContentOnly) {\n          tabMenuContainer.style.top = 'auto';\n        } else {\n          const offsetTop = tabGridContent.offsetTop || 128;\n          tabMenuContainer.style.top = `${offsetTop}px`;\n        }\n      }\n      if (outerPanelContent) {\n        if (headerTitle) {\n          headerTitle.style.zIndex = 'unset';\n        }\n        tabMenuContainer.style.zIndex = 'unset';\n      } else {\n        // if (headerTitle && !headerTitle.classList.contains('hidden')) {\n        //   const tabMenuTop = tabMenuContainer?.offsetTop\n        //   const tabMenuHeight = tabMenuContainer?.offsetHeight\n\n        //   if (!tabMenuTop || !tabMenuHeight) {\n        //     return\n        //   }\n\n        //   const tabMenuBottom = tabMenuTop + tabMenuHeight\n        //   headerTitle.style.top = `${tabMenuBottom}px`\n        //   headerTitle.style.position = 'sticky'\n        // }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selected\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"alreadySelected\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupAfterTabs\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setupAfterTabs\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSelected\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _class);\n});","define(\"client/pods/components/menus/tab-menu-side/tab-item/component\", [\"exports\", \"ramda\", \"@glimmer/component\"], function (_exports, R, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 MenusTabMenuNewTabItemComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _class = class MenusTabMenuNewTabItemComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", this.args?.classNames || 'u-tab-menu__item');\n      _defineProperty(this, \"translate\", true);\n      _initializerDefineProperty(this, \"menuLabelKey\", _descriptor, this);\n    }\n    get item() {\n      return this.args?.item || null;\n    }\n    get label() {\n      return this.item.get?.(this.menuLabelKey);\n    }\n    get itemComponent() {\n      return this.item?._data?.component || this.item?.component || '';\n    }\n    get itemValue() {\n      return this.item?._data?.value || this.item?.value || '';\n    }\n    get itemLabel() {\n      return this.item?._data?.label || this.item?.label || '';\n    }\n\n    // get currentActive () {\n    //   if (this.args?.isCurrentActive) {\n    //     const currentActive = this.args.isCurrentActive\n\n    //     if (currentActive?.label) {\n    //       return currentActive.label === this.itemLabel\n    //     }\n\n    //     if (currentActive?.value) {\n    //       return currentActive.value === this.itemValue\n    //     }\n\n    //     return currentActive.component === this.itemComponent\n    //   }\n    //   return false\n    // }\n\n    get subTab() {\n      const subTabs = this.args?.subTabs || [];\n      const subTab = R.find(R.propEq('component', this.itemComponent))(subTabs);\n      return subTab;\n    }\n    onClick() {\n      if (this.args?.onSelect) {\n        this.args.onSelect(this.item);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"menuLabelKey\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args?.menuLabelKey || '_data.label';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _class);\n});","define(\"client/pods/components/menus/tab-menu-side/tab-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UR2RfFMZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@translate\\\",\\\"&default\\\",\\\"@isActive\\\"],\\\"statements\\\":[[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[23,0,[\\\"classNames\\\"]],\\\" \\\",[28,\\\"if\\\",[[23,3,[]],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClick\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"label\\\"]]],[[\\\"translate\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-asterisk element-icon--xs has-text-danger\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"badge\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__badge\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"item\\\",\\\"_data\\\",\\\"badge\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"subTab\\\",\\\"errors\\\",\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__badge\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[23,0,[\\\"subTab\\\",\\\"errors\\\",\\\"errors\\\",\\\"length\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/tab-menu-side/tab-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/tab-menu-side/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8esZ2NyL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"groupMenu\\\",\\\"groupName\\\",\\\"item\\\",\\\"index\\\",\\\"@itemClassNames\\\",\\\"@tabs\\\",\\\"&default\\\",\\\"@wizardContainerComponent\\\",\\\"@menu\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setupAfterTabs\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"isWizard\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"progress\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"menus/progress-bar\\\",[],[[\\\"@current\\\",\\\"@currentIndex\\\",\\\"@steps\\\"],[[23,8,[\\\"currentStep\\\"]],[23,8,[\\\"currentStepIndex\\\"]],[23,8,[\\\"stepsList\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[25,7]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[14,7],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-tab-menu-side\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,0,[\\\"groupedMenu\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"u-tab-menu tab-menu-group\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"menus/tab-menu-new/tab-item\\\",[],[[\\\"@classNames\\\",\\\"@selected\\\",\\\"@index\\\",\\\"@item\\\",\\\"@menu\\\",\\\"@menuLabelKey\\\",\\\"@menuIndex\\\",\\\"@onSelect\\\",\\\"@subTabs\\\",\\\"@translate\\\"],[[23,5,[]],[23,0,[\\\"selected\\\"]],[23,4,[]],[23,3,[]],[23,1,[]],[23,0,[\\\"menuLabelKey\\\"]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"select\\\"]],[23,3,[]]],null],[23,6,[]],[23,0,[\\\"translate\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"u-tab-menu__divider\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/tab-menu-side/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/tab-menu/component\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    // classNames: ['tabs', 'u-tab-menu'],\n    translate: true,\n    menu: null,\n    selected: null,\n    // itemClassNames: null,\n    menuLabelKey: '_data.label',\n    init() {\n      this._super(...arguments);\n      const classNames = this.classNames;\n      if (RA.isNilOrEmpty(classNames)) {\n        this.set('classNames', ['tabs', 'u-tab-menu']);\n      }\n    },\n    menuProxy: Ember.computed('menu.{[],synced}', 'menu.@each.synced', function () {\n      return this.menu || [];\n    }),\n    actions: {\n      select: function (item) {\n        // must always use action set on item model\n\n        this.set('selected', item);\n        if (this.onSelect) {\n          return this.onSelect(item);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/menus/tab-menu/tab-item/component\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'li',\n    // classNames: ['tab-item'],\n    classNameBindings: ['isActive:is-active'],\n    translate: true,\n    menuLabelKey: '_data.label',\n    init() {\n      this._super(...arguments);\n      const classNames = this.classNames;\n      if (RA.isNilOrEmpty(classNames)) {\n        this.set('classNames', ['tab-item']);\n      }\n    },\n    click() {\n      const item = this.item;\n      this.onSelect(item);\n    },\n    isActive: Ember.computed('selected', function () {\n      return this.selected === this.item;\n    }),\n    label: Ember.computed('menuLabelKey', 'item.synced', function () {\n      const item = this.item;\n      const labelKey = this.menuLabelKey;\n      return item.get(labelKey);\n    })\n  });\n});","define(\"client/pods/components/menus/tab-menu/tab-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"4EyJQQZx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"a\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,1]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[[24,[\\\"item\\\",\\\"_data\\\",\\\"icon\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"badge\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__badge\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"item\\\",\\\"_data\\\",\\\"badge\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"msgs/error-badge\\\",null,[[\\\"errors\\\",\\\"errorsTracker\\\"],[[24,[\\\"errors\\\"]],[24,[\\\"item\\\",\\\"_data\\\",\\\"errorsTracker\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/tab-menu/tab-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/menus/tab-menu/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TFDwZuG1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"menuProxy\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"menus/tab-menu/tab-item\\\",null,[[\\\"item\\\",\\\"menuLabelKey\\\",\\\"selected\\\",\\\"translate\\\",\\\"errors\\\",\\\"classNames\\\",\\\"onSelect\\\"],[[23,1,[]],[24,[\\\"menuLabelKey\\\"]],[24,[\\\"selected\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"itemClassNames\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"select\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[14,2],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/menus/tab-menu/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/search-filters/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this.crud.addLists(this, ['filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    },\n    listByLastestTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.filters;\n      filters.reset();\n      filters.setData('sort', [{\n        by: 'timestampZ',\n        direction: 'DESC'\n      }]);\n      yield this.onSearchRecordsTask.perform({\n        filters,\n        adapterName: this.adapterName\n      });\n    })\n  });\n});","define(\"client/pods/components/messages/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Qf5vNN0i\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByLastestTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.types\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.statuses\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/component\", [\"exports\", \"ramda\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, R, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    searchService: Ember.inject.service('search'),\n    filtersAdapterName: 'messages/users/filters',\n    adapterName: 'messages/users',\n    autoFetchToggle: true,\n    didInsertElement() {\n      this._super(...arguments);\n      const filters = this.searchService.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          resultsProperty: 'chatUsers',\n          messageProvider: 'line'\n        }\n      });\n      this.set('filters', filters);\n      this.fetchDefaultDataTask.perform();\n      this.usersAutoFetch();\n    },\n    usersAutoFetch() {\n      const autoFetchToggle = this.autoFetchToggle;\n      if (autoFetchToggle) {\n        setTimeout(() => {\n          this.fetchDefaultDataTask.perform();\n          this.usersAutoFetch();\n        }, 10000);\n      }\n    },\n    fetchDefaultDataTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.filters;\n      yield this.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters,\n        resultsProperty: 'chatUsers'\n      });\n    }),\n    latestUsers: Ember.computed('chatUsers.@each.{synced,timestampZ}', function () {\n      const users = this.chatUsers || [];\n      return R.sortWith([R.descend(R.path(['_data', 'timestampZ']))])(users);\n    }),\n    display(model, additionalOptions = {}) {\n      const panelOptions = {\n        model\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n    },\n    actions: {\n      displayMessageWindow(chatUserModel) {\n        this.display(chatUserModel);\n      },\n      usersAutoFetchAction() {\n        this.usersAutoFetch();\n      }\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/component\", [\"exports\", \"ramda\", \"ember-concurrency\", \"client/utils/nventor\", \"client/mixins/crud\"], function (_exports, R, _emberConcurrency, _nventor, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    searchService: Ember.inject.service('search'),\n    filtersAdapterName: 'messages/messages/filters',\n    adapterName: 'messages/messages',\n    didInsertElement() {\n      this._super(...arguments);\n      const filters = this.searchService.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      this.fetchMessagesTask.perform();\n      this.isScrollAtTop();\n      this.messagesAutoFetch();\n    },\n    didUpdate() {\n      this._super(...arguments);\n      const autoFetchToggle = this.autoFetchToggle;\n      if (autoFetchToggle) {\n        this.messagesAutoFetch();\n      }\n    },\n    messagesAutoFetch() {\n      const autoFetchToggle = this.autoFetchToggle;\n      if (autoFetchToggle) {\n        setTimeout(() => {\n          this.fetchMessagesTask.perform();\n          this.messagesAutoFetch();\n        }, 10000);\n      }\n    },\n    /* TODO: DOUBLE CLICK PREPARE TO MOVE TO ON VIEW */\n    getMoreMessagesTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.filters;\n      const currentPage = parseInt(filters.getData('page')) || 1;\n      const page = currentPage + 1;\n      this.goDown();\n      filters.setData('page', page);\n      this.set('showGoToPage', false);\n      yield this.paginateSearchRecordsTask.perform({\n        filters\n      });\n    }),\n    didRender() {\n      const isViewAtBottom = this.isScrollAtBottom();\n      if (isViewAtBottom) {\n        const userModel = this.model;\n        const senderId = userModel.get('_data.id');\n        this.model.resetNewMessagesCount();\n        this.gotToBottom();\n        this.set('hasNewMsg', false);\n        // Reset unread messages count when new message has been display on the message window\n        this.deleteUnreadMessagesTask.perform(senderId);\n      } else {\n        this.set('hasNewMsg', true);\n      }\n    },\n    /**\n     * AUTO SCROLL TO BOTTOM ON MESSAGE WINDOW\n     * */\n    gotToBottom() {\n      Ember.run.scheduleOnce('afterRender', this, function () {\n        this.$('.chat-window').animate({\n          scrollTop: 20000000\n        }, 'slow');\n      });\n    },\n    /**\n     * Scroll down [ X ] amount of pixels on the Message Windows\n     * */\n    goDown(scrollDownBy = 100) {\n      this.$('.chat-window').animate({\n        scrollTop: this.$('.chat-window').prop('scrollTop') + scrollDownBy\n      }, 'slow');\n    },\n    /**\n     * If the window is at the bottom then return true | false\n     * @return {boolean}\n     * */\n    isScrollAtBottom(triggerArea = 100) {\n      this.set('activeView', true);\n      const scrollPosition = this.$('.chat-window').prop('scrollTop');\n      const scrollHeight = this.$('.chat-window').prop('scrollHeight');\n      const offsetHeight = this.$('.chat-window').prop('offsetHeight');\n      const scrollOffset = scrollHeight - (scrollPosition + offsetHeight);\n      return scrollOffset <= triggerArea;\n    },\n    /**\n     * If the window is at the top then return true | false\n     * @return {boolean}\n     * */\n    isScrollAtTop(triggerArea = 100) {\n      const scrollPosition = this.$('.chat-window').prop('scrollTop');\n      return scrollPosition <= triggerArea;\n    },\n    /**\n     * If the user has new messages return true | false\n     * @return {boolean}\n     * */\n    hasNewMessage: Ember.computed('model.newMessagesCount.[]', function () {\n      const userModel = this.model;\n      if (userModel) {\n        const newMessagesCount = userModel.get('newMessagesCount');\n        const isViewAtBottom = this.isScrollAtBottom();\n        return newMessagesCount >= 1 && !isViewAtBottom;\n      }\n    }),\n    /**\n     * Should delete unread messages once a user chat window has been clicked\n     * */\n    deleteUnreadMessagesTask: (0, _emberConcurrency.task)(function* (senderId) {\n      yield this.server.call('DELETE', `api/protected/messages/facebook/messages/unread-messages/${senderId}`);\n    }).enqueue(),\n    /**\n     * Get last 10 messages from db sorted by user\n     * */\n    fetchMessagesTask: (0, _emberConcurrency.task)(function* () {\n      this.gotToBottom();\n      const filters = this.filters;\n      const userModel = this.model;\n      const senderId = userModel.get('_data.id');\n      const chatMessages = yield this.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters,\n        appendPath: senderId,\n        resultsProperty: 'results'\n      });\n      userModel.setupMessages(chatMessages);\n\n      // this.set('results', chatMessages)\n\n      userModel.set('_data.unreadMessages', 0);\n      // Reset unread messages count when pull the last 10 messages from db\n      this.deleteUnreadMessagesTask.perform(senderId);\n    }).enqueue(),\n    /**\n     * Pagination handler\n     * */\n    afterPaginateSearchRecordsTask(results) {\n      const userModel = this.model;\n      const currentMessages = userModel.get('_data.messages');\n      const mergeMessages = R.concat(results, currentMessages);\n      userModel.setupMessages(mergeMessages);\n      this.set('results', results);\n    },\n    /**\n     * Handle quickReplies messages\n     * */\n    hasQuickReplies: Ember.computed('model.chatMessages.[]', function () {\n      const chatMessages = this.get('model.chatMessages');\n      if (chatMessages.length >= 1) {\n        return R.pipe(R.last, R.ifElse(R.pathEq(['_data', 'message', 'type'], 'options'), m => m.getQuickReplies(), () => null))(chatMessages);\n      }\n    }),\n    /**\n     * Check if the user has new messages\n     * @return {boolean}\n     * */\n    hasMoreResults: Ember.computed('model.chatMessages', 'filters._data.count', function () {\n      const count = parseInt(this.get('filters._data.count')) || 0;\n      const results = this.get('model.chatMessages') || [];\n      if (count === 0 && results.length === 0) {\n        return false;\n      } else if (results.length < count) {\n        return false;\n      } else {\n        return true;\n      }\n    }),\n    /**\n     * Check whether or not a user is a line user\n     * */\n    isLineMember: Ember.computed('model.memberOf', function () {\n      const memberOf = this.get('model.memberOf') || 'none';\n      switch (memberOf) {\n        case 'line':\n          return false;\n        case 'facebook':\n          return false;\n        default:\n          return false;\n      }\n    }),\n    /**\n     * Check whether or not has past 24 hrs since the user send a message to the facebook page\n     * */\n    isOver24HrsLimit: Ember.computed('model.chatMessages.[],model.memberOf', function () {\n      const memberOf = this.get('model.memberOf') || 'none';\n      const isBot = this.get('model.isBot') || true;\n      const getLastTimeStamp = R.pipe(R.filter(R.pathEq(['_data', 'fromUs'], false)), _nventor.default.safeLast, R.path(['_data', 'timestampZ']));\n      const results = this.get('model.chatMessages') || [];\n      const timeStamp = getLastTimeStamp(results);\n      const today = new Date();\n      const lastTimeStamp = new Date(timeStamp);\n      lastTimeStamp.setDate(lastTimeStamp.getDate() + 1);\n      if (memberOf === 'line' || isBot) {\n        return false;\n      }\n      return R.not(today < lastTimeStamp);\n    }),\n    /**\n     * Check for active flows to display on the bot builder\n     * */\n    activeFlow: Ember.computed('model._data.activeFlow,model._data.chatMessages.[].@each', function () {\n      const activeFlow = this.get('model._data.activeFlow') || '';\n      const messages = this.get('model._data.messages') || [];\n      const endFlow = R.pipe(R.last, R.pathOr(false, ['_data', 'endFlow']))(messages);\n      if (activeFlow.length >= 1 && activeFlow !== 'CANCEL' && !endFlow) {\n        return true;\n      } else {\n        return false;\n      }\n    }),\n    /**\n     * Send message to the user ether by line | facebook\n     * */\n    sendMessageTask: (0, _emberConcurrency.task)(function* (postBack) {\n      const isTextEmpty = R.isEmpty;\n      let inText = this.messageText;\n      const userModel = this.model;\n      /*\n      ######################################\n      ### TODO: HANDLE BOT BUILDER POSTBACKS\n      ######################################\n          if (postBack) {\n            inText = postBack\n            userModel.setData('activeFlow', postBack)\n          } else if (isTextEmpty(inText)) {\n            return\n          }\n      */\n      if (isTextEmpty(inText)) {\n        return;\n      }\n      this.set('messageText', '');\n      let pageId = userModel.getData('pageId');\n      const recipient = userModel.getData('id');\n      const locale = userModel.getData('locale');\n      const messageProvider = this.get('results.0._data.messageProvider') || 'bigordr';\n      const channelId = this.get('results.0._data.channelId') || '000000';\n      const chatMessages = userModel.get('chatMessages') || [];\n      const specialId = userModel.getData('specialId');\n      const replyToken = R.pipe(R.filter(R.pathEq(['_data', 'fromUs'], false)), R.last, R.view(R.lensPath(['_data', 'replyToken'])))(chatMessages) || '000000';\n      if (messageProvider === 'bigordr') {\n        pageId = 'bigordr-bot-101';\n      }\n\n      /*\n      ######################################################################\n      ### TODO: ENHANCEMENT - USE WEBSOCKET TO PUSH MESSAGE RATHER THAN AJAX\n      ######################################################################\n          const tmpMessage = yield this.get('createRecordTask').perform({\n            adapterName: 'messages/message',\n            data: {\n              message: inText,\n              pageId,\n              sender: pageId,\n              recipient,\n              timestampZ: new Date(),\n              fromUs: true,\n              type: 'TEXT',\n              text: inText,\n              messageProvider,\n              channelId,\n              replyToken,\n              specialId,\n              user: {\n                userId: recipient,\n                locale\n              }\n            }\n          })\n      */\n      const tmpMessage = this.dataManager.setAsRecord({\n        adapterName: 'messages/messages',\n        data: {\n          message: inText,\n          pageId,\n          sender: pageId,\n          recipient,\n          timestampZ: new Date(),\n          fromUs: true\n        }\n      });\n      this.get('model._data.messages').pushObject(tmpMessage);\n      this.gotToBottom();\n\n      /* TODO: IMPLEMENT DIFFERENT TYPES OF MESSAGES */\n      const payload = {\n        type: 'TEXT',\n        text: inText,\n        pageId,\n        recipient,\n        messageProvider,\n        channelId,\n        replyToken,\n        specialId,\n        user: {\n          userId: recipient,\n          locale\n        }\n      };\n      yield this.server.call('POST', 'api/protected/bot/send-message', payload);\n    }),\n    actions: {\n      gotToBottomArrow() {\n        const userModel = this.model;\n        const senderId = userModel.get('_data.id');\n        this.model.resetNewMessagesCount();\n        this.gotToBottom();\n        this.deleteUnreadMessagesTask.perform(senderId);\n      },\n      scrollUpFromLastChild() {\n        const chatWindow = this.$('.chat-window');\n        const chatWindowChild = this.$('.chat-window > div');\n        if (chatWindowChild.children().length <= 1) return;\n        chatWindow.animate({\n          scrollTop: chatWindow.scrollTop() - chatWindow.offset().top + chatWindowChild.children().eq(chatWindowChild.children().length - 3).offset().top\n        }, 'slow');\n      },\n      redirectToFacebookPageInbox() {\n        const genPageInboxUrl = (pName, pId) => {\n          const parsePageName = R.pipe(R.replace(' - ', '-'), R.replace(' -', '-'), R.replace('- ', '-'), R.replace(' ', '-'));\n          const page = parsePageName(pName);\n          return `https://www.facebook.com/${page}-${pId}/inbox`;\n        };\n        const getPageName = R.view(R.lensPath([0, '_data', 'pageName']));\n        const getPageId = R.view(R.lensPath([0, '_data', 'pageId']));\n        const results = this.get('model.chatMessages') || [];\n        const pageName = getPageName(results);\n        const pageId = getPageId(results);\n        const pageInboxUrl = genPageInboxUrl(pageName, pageId);\n        window.open(pageInboxUrl);\n      }\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/audio-type/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    isShowPreview: false,\n    didInsertElement() {\n      this._super(...arguments);\n      const messageBubble = this.messageBubble;\n      if (this.isNotText(messageBubble)) {\n        this.set('messageType', messageBubble.type);\n        this.set('messageUrl', messageBubble.payload.url);\n      }\n    },\n    isNotText: R.is(Object),\n    actions: {\n      showPreview() {\n        this.set('isShowPreview', true);\n      }\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/audio-type/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xZJijFex\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"figure\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"audio\\\",true],[10,\\\"controls\\\",\\\"\\\"],[11,\\\"src\\\",[22,\\\"messageUrl\\\"]],[8],[0,\\\"\\\\n    Your browser does not support the \\\"],[7,\\\"code\\\",true],[8],[0,\\\"audio\\\"],[9],[0,\\\" element.\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/message-bubble/audio-type/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    messageTypeComponentName: Ember.computed('messageBubble.type', function () {\n      let messageType = this.get('messageBubble.type') || 'text';\n      messageType = R.toLower(messageType);\n      if (messageType.includes('video')) {\n        messageType = 'video';\n      } else if (messageType.includes('image')) {\n        messageType = 'image';\n      }\n      const commonComponentPath = 'messages/tab-container/messages-window/message-bubble';\n      const components = {\n        text: `${commonComponentPath}/text-type`,\n        image: `${commonComponentPath}/image-type`,\n        sticker: `${commonComponentPath}/sticker-type`,\n        video: `${commonComponentPath}/video-type`,\n        audio: `${commonComponentPath}/audio-type`,\n        file: `${commonComponentPath}/file-type`,\n        link: `${commonComponentPath}/link-type`,\n        options: `${commonComponentPath}/options-type`\n      };\n      return components[messageType];\n    })\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/file-type/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    ajax: Ember.inject.service(),\n    tagName: 'div',\n    isShowPreview: false,\n    didInsertElement() {\n      this._super(...arguments);\n      const messageBubble = this.messageBubble;\n      if (this.isNotText(messageBubble)) {\n        this.set('messageType', messageBubble.type);\n        this.set('messageUrl', messageBubble.payload.url);\n        const messageName = R.pipe(R.pathOr('', ['payload', 'filePath']), R.split('/'), R.takeLast(1), R.join(''))(messageBubble);\n        this.set('messageName', messageName);\n      }\n    },\n    isNotText: R.is(Object),\n    actions: {\n      showPreview() {\n        this.set('isShowPreview', true);\n      }\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/file-type/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EGNLCeg+\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"a\\\",true],[11,\\\"href\\\",[22,\\\"messageUrl\\\"]],[11,\\\"download\\\",[22,\\\"messageName\\\"]],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"translate\\\",\\\"icon\\\",\\\"label\\\",\\\"btnClassNames\\\"],[false,\\\"fas fa-file-alt\\\",[24,[\\\"messageName\\\"]],\\\"tag is-warning\\\"]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/message-bubble/file-type/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/image-type/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    isShowPreview: false,\n    didInsertElement() {\n      this._super(...arguments);\n      const messageBubble = this.messageBubble;\n      if (this.isNotText(messageBubble)) {\n        this.set('messageType', messageBubble.type);\n        const url = R.ifElse(R.hasPath(['payload', 'url']), R.path(['payload', 'url']), R.path(['url']))(messageBubble);\n        this.set('messageUrl', url);\n      }\n    },\n    isNotText: R.is(Object),\n    actions: {\n      showPreview() {\n        this.set('isShowPreview', true);\n      }\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/image-type/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"q52f4RQB\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\"],[[22,\\\"isShowPreview\\\"],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"isShowPreview\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[22,\\\"messageUrl\\\"]],[10,\\\"class\\\",\\\"message-image\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-128x128\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[22,\\\"messageUrl\\\"]],[10,\\\"class\\\",\\\"message-image\\\"],[11,\\\"onclick\\\",[28,\\\"action\\\",[[23,0,[]],\\\"showPreview\\\"],null]],[8],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/message-bubble/image-type/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/link-type/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    isShowPreview: false,\n    didInsertElement() {\n      this._super(...arguments);\n      const messageBubble = this.messageBubble;\n      if (this.isNotText(messageBubble)) {\n        this.set('messageText', messageBubble.payload.messageText);\n        this.set('messageUrl', messageBubble.payload.url);\n      }\n    },\n    isNotText: R.is(Object),\n    actions: {\n      showPreview() {\n        this.set('isShowPreview', true);\n      }\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/link-type/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PWf8xOOl\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[24,[\\\"fromUs\\\"]],\\\"notification is-primary chat-message\\\",\\\"notification chat-message\\\"],null]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"a\\\",true],[11,\\\"href\\\",[22,\\\"messageUrl\\\"]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"messageText\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[22,\\\"messageText\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[22,\\\"messageUrl\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/message-bubble/link-type/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/options-type/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    isShowPreview: false,\n    didInsertElement() {\n      this._super(...arguments);\n      const messageBubble = this.messageBubble;\n      if (this.isNotText(messageBubble)) {\n        const payload = messageBubble.payload;\n        this.set('messageOptions', payload.options);\n        this.set('messageType', messageBubble.type);\n        this.set('messageText', payload.text);\n      }\n    },\n    isNotText: R.is(Object)\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/options-type/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"L7Q5YgEe\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[24,[\\\"fromUs\\\"]],\\\"notification is-primary chat-message\\\",\\\"notification chat-message\\\"],null]],[8],[0,\\\"\\\\n  \\\"],[1,[22,\\\"messageText\\\"],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/message-bubble/options-type/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/sticker-type/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    isShowPreview: false,\n    didInsertElement() {\n      this._super(...arguments);\n      const messageBubble = this.messageBubble;\n      if (this.isNotText(messageBubble)) {\n        this.set('messageType', messageBubble.type);\n        const stickerUrl = `https://stickershop.line-scdn.net/stickershop/v1/sticker/${messageBubble.payload.stickerId}/android/sticker.png`;\n        this.set('messageUrl', stickerUrl);\n      }\n    },\n    isNotText: R.is(Object),\n    actions: {\n      showPreview() {\n        this.set('isShowPreview', true);\n      }\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/sticker-type/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/uzwc/f1\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"img\\\",true],[11,\\\"src\\\",[22,\\\"messageUrl\\\"]],[10,\\\"class\\\",\\\"message-image\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/message-bubble/sticker-type/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"v11Wgw9a\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"component\\\",[[24,[\\\"messageTypeComponentName\\\"]]],[[\\\"messageBubble\\\",\\\"fromUs\\\"],[[24,[\\\"messageBubble\\\"]],[24,[\\\"fromUs\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"_id\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-check\\\"]]],false],[0,\\\"\\\\n  \\\\n  \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/message-bubble/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/text-type/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/text-type/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SxbtNAqi\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[24,[\\\"fromUs\\\"]],\\\"notification is-primary chat-message\\\",\\\"notification chat-message\\\"],null]],[8],[0,\\\"\\\\n  \\\"],[1,[22,\\\"messageBubble\\\"],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/message-bubble/text-type/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/video-type/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    isShowPreview: false,\n    didInsertElement() {\n      this._super(...arguments);\n      const messageBubble = this.messageBubble;\n      if (this.isNotText(messageBubble)) {\n        this.set('messageType', messageBubble.type);\n        this.set('messageUrl', messageBubble.payload.url);\n      }\n    },\n    isNotText: R.is(Object),\n    actions: {\n      showPreview() {\n        this.set('isShowPreview', true);\n      }\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/message-bubble/video-type/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"j5hg+zNb\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"video\\\",true],[10,\\\"controls\\\",\\\"\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"source\\\",true],[11,\\\"src\\\",[22,\\\"messageUrl\\\"]],[11,\\\"type\\\",[22,\\\"messageType\\\"]],[8],[9],[0,\\\"\\\\n  Sorry, your browser doesn't support embedded videos.\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/message-bubble/video-type/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/messages-window/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/WZAtpxi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pFlow\\\",\\\"flow\\\",\\\"qReply\\\",\\\"m\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not\\\",[[24,[\\\"isBot\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-left\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-48x48\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"is-rounded\\\"],[11,\\\"src\\\",[29,[[24,[\\\"model\\\",\\\"_data\\\",\\\"profilePic\\\"]]]]],[10,\\\"alt\\\",\\\"User Profile Picture\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-content\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"title is-4\\\"],[8],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"subtitle is-6\\\"],[8],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"timezone\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"chat-window\\\"]],[[\\\"@title\\\",\\\"@translate\\\"],[\\\"notifications\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMoreResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"helpers/lazy-loader\\\",null,[[\\\"onLazyLoadTask\\\"],[[28,\\\"perform\\\",[[24,[\\\"getMoreMessagesTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"chatMessages\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"classNames\\\"],[[28,\\\"concat\\\",[[23,4,[\\\"_data\\\",\\\"_key\\\"]],\\\" \\\",[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"fromUs\\\"]],\\\"chat-message-right\\\",\\\"chat-message-left\\\"],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"messages/tab-container/messages-window/message-bubble\\\",null,[[\\\"model\\\",\\\"messageBubble\\\",\\\"fromUs\\\"],[[23,4,[]],[23,4,[\\\"_data\\\",\\\"message\\\"]],[23,4,[\\\"_data\\\",\\\"fromUs\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"newMessagesCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"helpers/lazy-loader\\\",null,[[\\\"showWhenLoading\\\",\\\"onLazyLoadTask\\\"],[false,[28,\\\"action\\\",[[23,0,[]],\\\"scrollUpFromLastChild\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\nhasNewMessage: \\\"],[1,[22,\\\"hasNewMessage\\\"],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"newMessagesCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"onSubmit\\\"],[\\\"fas fa-chevron-circle-down\\\",[28,\\\"action\\\",[[23,0,[]],\\\"gotToBottomArrow\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"flows\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tabs is-toggle is-fullwidth\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"activeFlow\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasQuickReplies\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"hasQuickReplies\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"translate\\\",\\\"btnClassNames\\\",\\\"onSubmit\\\"],[\\\"fas fa-screwdriver\\\",[23,3,[\\\"title\\\"]],false,\\\"is-outlined is-fullwidth\\\",[28,\\\"perform\\\",[[24,[\\\"sendMessageTask\\\"]],[23,3,[\\\"payload\\\"]]],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"btnClassNames\\\",\\\"onSubmit\\\"],[\\\"fas fa-times-circle\\\",\\\"cancel\\\",\\\"is-danger is-outlined is-fullwidth\\\",[28,\\\"perform\\\",[[24,[\\\"sendMessageTask\\\"]],\\\"CANCEL\\\"],null]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"flows\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,2,[\\\"metadata\\\",\\\"isDependency\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"translate\\\",\\\"btnClassNames\\\",\\\"onSubmit\\\"],[[23,2,[\\\"metadata\\\",\\\"icon\\\"]],[28,\\\"if\\\",[[23,2,[\\\"metadata\\\",\\\"translate\\\"]],[28,\\\"get\\\",[[23,2,[\\\"metadata\\\",\\\"translations\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"locale\\\"]]],null],[23,2,[\\\"flow\\\"]]],null],false,\\\"is-outlined is-fullwidth\\\",[28,\\\"perform\\\",[[24,[\\\"sendMessageTask\\\"]],[23,2,[\\\"flow\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"privateFlows\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tabs is-toggle is-fullwidth\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"privateFlows\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[23,1,[\\\"metadata\\\",\\\"isDependency\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"translate\\\",\\\"btnClassNames\\\",\\\"onSubmit\\\"],[[23,1,[\\\"metadata\\\",\\\"icon\\\"]],[28,\\\"if\\\",[[23,1,[\\\"metadata\\\",\\\"translate\\\"]],[28,\\\"get\\\",[[23,1,[\\\"metadata\\\",\\\"translations\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"locale\\\"]]],null],[23,1,[\\\"flow\\\"]]],null],false,\\\"is-success is-outlined is-fullwidth\\\",[28,\\\"perform\\\",[[24,[\\\"sendMessageTask\\\"]],[23,1,[\\\"flow\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input\\\",null,[[\\\"errors\\\"],[[24,[\\\"errors\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isOver24HrsLimit\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"fab fa-facebook-square\\\",\\\"facebook page inbox\\\",[28,\\\"action\\\",[[23,0,[]],\\\"redirectToFacebookPageInbox\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"type\\\",\\\"classNames\\\",\\\"autofocus\\\",\\\"value\\\",\\\"readonly\\\"],[\\\"text\\\",\\\"message-text\\\",true,[24,[\\\"messageText\\\"]],[24,[\\\"isOver24HrsLimit\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\",\\\"disabled\\\"],[\\\"fas fa-send\\\",\\\"\\\",[28,\\\"perform\\\",[[24,[\\\"sendMessageTask\\\"]]],null],[24,[\\\"isOver24HrsLimit\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isOver24HrsLimit\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"a\\\",true],[11,\\\"href\\\",[29,[[22,\\\"pageInboxUrl\\\"]]]],[8],[0,\\\"facebookPage\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/messages-window/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Tlm+qros\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,2,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"label\\\",\\\"translate\\\",\\\"toggleValue\\\",\\\"onToggle\\\"],[\\\"autoFetch\\\",false,[24,[\\\"autoFetchToggle\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"usersAutoFetchAction\\\"],null]]]],false],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"messages/tab-container/messages-window\\\",null,[[\\\"tabParent\\\",\\\"tab\\\",\\\"autoFetchToggle\\\",\\\"model\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[24,[\\\"autoFetchToggle\\\"]],[23,1,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isRight\\\",\\\"@guideId\\\"],[true,\\\"search\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterSearch\\\",\\\"products/panels-dash\\\"],null],\\\"messages\\\"]]],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\"],[true,true,[24,[\\\"showResults\\\"]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"messages/search-filters\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"onSearchRecordsTask\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"searchRecordsTask\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"messages/tab-container/users-window\\\",null,[[\\\"filters\\\",\\\"messageWindow\\\",\\\"chatUsers\\\",\\\"onSelect\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"messageWindow\\\"]],[24,[\\\"latestUsers\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayMessageWindow\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/messages/tab-container/users-window/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {});\n});","define(\"client/pods/components/messages/tab-container/users-window/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MW3GUGP/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"users\\\",\\\"index\\\"],\\\"statements\\\":[[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"classNames\\\",\\\"itemClassNames\\\",\\\"filters\\\",\\\"count\\\",\\\"onPaginationTask\\\",\\\"onSelect\\\"],[[24,[\\\"chatUsers\\\"]],[24,[\\\"_data\\\",\\\"id\\\"]],[24,[\\\"_data\\\",\\\"name\\\"]],\\\"u-results__list\\\",\\\"u-results__item\\\",[24,[\\\"filters\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"onSelect\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n     \\\"],[2,\\\"TODO: OPTIMIZE IMAGE VIEW \\\"],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"panel-icon image is-48x48\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"is-rounded\\\"],[11,\\\"src\\\",[29,[[23,1,[\\\"_data\\\",\\\"profilePic\\\"]]]]],[10,\\\"alt\\\",\\\"Placeholder image\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"newMessagesCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-primary is-medium\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,1,[\\\"newMessagesCount\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"memberOf\\\"]],\\\"line\\\"],null],\\\"tag is-success\\\",\\\"tag is-info\\\"],null]],[8],[1,[23,1,[\\\"memberOf\\\"]],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"pageName\\\"]],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[1,[28,\\\"products/search-results-item\\\",null,[[\\\"query\\\",\\\"filters\\\",\\\"result\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[24,[\\\"filters\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/messages/tab-container/users-window/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/modals/modal-container-new/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, R, RA, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _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  // Dialogs, list dropdowns, list-btn, and list-searcher all use this container.\n  // Escape closes only the topmost container in the visible app tab.\n  let openModalContainerStack = [];\n  function isOpenModalContainerInHiddenAppTab(openContainer) {\n    const modalContainerElement = document.getElementById(openContainer.modalId);\n    if (!modalContainerElement) {\n      return false;\n    }\n    const hiddenAppTab = modalContainerElement.closest('.tab-parent-container:not(.tab-visible)');\n    return RA.isNotNil(hiddenAppTab);\n  }\n  let ModalsModalContainerNewComponent = _exports.default = (_dec = Ember.inject.service('modals'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _class = class ModalsModalContainerNewComponent extends _component.default {\n    // .tab-grid__modal = 3001/6000\n    // .layouts__left-bar .u-z-index--4000 = 4000\n    // .app-grid__header-fix = 5000\n    // .gjs-fullscreen = 6000\n    // .tab-grid__modal--fullscreen = 10002\n\n    // on fullscreen\n    // modalContainerNew should > 10002 for modal on fullscreen\n    // navbar should < 6000\n\n    // on normal screen\n    // modalContainerNew should < 4000 for sidebar\n    // modalContainerNew should < 5000 for navbar\n    // modalContainerNew should > 3001/6000 for modal dialog\n\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"modalsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"modalId\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"footerHeight\", _descriptor4, this);\n      _initializerDefineProperty(this, \"headerHeight\", _descriptor5, this);\n      _initializerDefineProperty(this, \"modalOverLayZIndex\", _descriptor6, this);\n      // navbar 5000, sidebar 4000, sidebar overlay 3000, modal 6000\n      _initializerDefineProperty(this, \"modalDialogZIndex\", _descriptor7, this);\n      _initializerDefineProperty(this, \"modalOverLayZIndexOnFullscreen\", _descriptor8, this);\n      _initializerDefineProperty(this, \"modalDialogZIndexOnFullScreen\", _descriptor9, this);\n      _defineProperty(this, \"isAlreadyClosed\", false);\n      _defineProperty(this, \"isRegisteredOnEscapeStack\", false);\n      this.modalId = _nventor.default.random.alpha(3) + _nventor.default.random.alphaNum(10);\n      const isSidebar = this.args?.isSidebar || false;\n      if (isSidebar) {\n        window.addEventListener('resize', this.setupModal);\n      }\n    }\n    get closeOnEscape() {\n      return R.pathOr(true, ['args', 'closeOnEscape'])(this);\n    }\n    get canDismissFromEscape() {\n      if (!this.closeOnEscape) {\n        return false;\n      }\n      return RA.isNotNil(this.args.onEscape) || RA.isNotNil(this.args.onToggleModalDialog) || RA.isNotNil(this.args.onClose);\n    }\n    get isShowOverlay() {\n      // const closeOnOverlayClick = R.pathOr(true, ['args', 'closeOnOverlayClick'])(this)\n      const hasModalOverlay = R.pathOr(true, ['args', 'hasModalOverlay'])(this);\n      return hasModalOverlay;\n    }\n    setupModal({\n      moveToModalSection = true\n    } = {}) {\n      const parentElement = this.args.parentElement;\n      this.modalsService.setupModal({\n        id: this.modalId,\n        headerHeight: this.headerHeight,\n        footerHeight: this.footerHeight,\n        modalPos: this.args.modalPos,\n        modalContainerClassNames: this.args.modelContainerClassNames,\n        modalDialogZIndex: this.modalDialogZIndex,\n        modalOverLayZIndex: this.modalOverLayZIndex,\n        modalDialogZIndexOnFullScreen: this.modalDialogZIndexOnFullScreen,\n        modalOverLayZIndexOnFullscreen: this.modalOverLayZIndexOnFullscreen,\n        isSidebar: this.args.isSidebar,\n        hasExtraSidebar: this.args.hasExtraSidebar,\n        sidebarModalMaxWidth: this.args.sidebarModalMaxWidth,\n        isMobile: this.args?.isMobile,\n        moveToModalSection,\n        parentElement,\n        debug: this.args.debug\n      });\n      if (this.args?.onAfterLoad) {\n        this.args?.onAfterLoad?.();\n      }\n      this.registerOpenModalContainer();\n    }\n    registerOpenModalContainer() {\n      if (this.isRegisteredOnEscapeStack) {\n        return;\n      }\n      if (!this.canDismissFromEscape) {\n        return;\n      }\n      this.isRegisteredOnEscapeStack = true;\n      openModalContainerStack = R.append(this, openModalContainerStack);\n      document.addEventListener('keydown', this.handleEscapeKeydown);\n    }\n    unregisterOpenModalContainer() {\n      document.removeEventListener('keydown', this.handleEscapeKeydown);\n      this.isRegisteredOnEscapeStack = false;\n      openModalContainerStack = R.reject(openContainer => openContainer === this, openModalContainerStack);\n    }\n    handleEscapeKeydown(event) {\n      if (event.key !== 'Escape') {\n        return;\n      }\n      if (event.defaultPrevented) {\n        return;\n      }\n      if (isOpenModalContainerInHiddenAppTab(this)) {\n        return;\n      }\n      const openContainersInVisibleTab = R.reject(isOpenModalContainerInHiddenAppTab, openModalContainerStack);\n      const topmostOpenContainerInVisibleTab = R.last(openContainersInVisibleTab);\n      if (topmostOpenContainerInVisibleTab !== this) {\n        return;\n      }\n      event.preventDefault();\n      event.stopImmediatePropagation();\n      this.dismissFromEscape();\n    }\n    dismissFromEscape() {\n      if (this.args.onEscape) {\n        this.args.onEscape();\n        return;\n      }\n      if (this.args.onToggleModalDialog) {\n        this.args.onToggleModalDialog();\n      }\n      if (this.args.onClose) {\n        this.isAlreadyClosed = true;\n        this.args.onClose();\n      }\n    }\n    handleMouseEnter(e) {\n      if (this.args.mouseEnter) {\n        this.args.mouseEnter(e);\n      }\n    }\n    handleMouseLeave(e) {\n      if (this.args.mouseLeave) {\n        this.args.mouseLeave(e);\n      }\n    }\n    closeOverlay() {\n      const onClose = this.args?.onClose;\n      if (onClose) {\n        this.isAlreadyClosed = true;\n        this.args.onClose();\n      }\n    }\n    willDestroyElement() {\n      if (this.isDestroyed) {\n        return;\n      }\n      this.unregisterOpenModalContainer();\n      window.removeEventListener('resize', this.setupModal);\n      const onClose = this.args?.onClose;\n      if (onClose && !this.isAlreadyClosed) {\n        this.args.onClose();\n      }\n      const overlay = document.getElementById(`overlay-${this.modalId}`);\n      if (overlay) {\n        overlay.remove();\n      }\n      const modalDialog = document.getElementById(this.modalId);\n      if (modalDialog) {\n        modalDialog.remove();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modalsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"modalId\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showDialog\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"footerHeight\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 61;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"headerHeight\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 46;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"modalOverLayZIndex\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 5498;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"modalDialogZIndex\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 5499;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"modalOverLayZIndexOnFullscreen\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 10005;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"modalDialogZIndexOnFullScreen\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 10006;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupModal\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setupModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerOpenModalContainer\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"registerOpenModalContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unregisterOpenModalContainer\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"unregisterOpenModalContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleEscapeKeydown\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"handleEscapeKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dismissFromEscape\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"dismissFromEscape\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseEnter\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseLeave\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeOverlay\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"closeOverlay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"willDestroyElement\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroyElement\"), _class.prototype), _class);\n});","define(\"client/pods/components/modals/modal-container-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VAR7D1vy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isHidden\\\",\\\"@isSidebar\\\",\\\"@modelContainerClassNames\\\",\\\"&attrs\\\",\\\"@modalContentClassNames\\\",\\\"@isRunning\\\",\\\"&default\\\",\\\"@modalSizeClassName\\\",\\\"@isDialog\\\",\\\"@overlayClassNames\\\",\\\"@isOverlayTransparent\\\",\\\"@onToggle\\\",\\\"@onToggleModalDialog\\\",\\\"@closeOnOverlayClick\\\",\\\"@hasCustomBlock\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setupModal\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"isShowOverlay\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"id\\\",[29,[\\\"overlay-\\\",[23,0,[\\\"modalId\\\"]]]]],[12,\\\"class\\\",[29,[\\\"u-tappable tab-grid__modal-overlay modal-overlay\\\\n    \\\",[28,\\\"if\\\",[[23,2,[]],\\\"is-sidebar\\\",\\\"\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[23,11,[]],\\\"modal-overlay--clear\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[23,1,[]],\\\"u-display-none\\\",\\\"\\\"],null],\\\"\\\\n    \\\",[23,10,[]],\\\"\\\\n    \\\"]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"modalsService\\\",\\\"closeOverlay\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"closeOnOverlayClick\\\",\\\"isShowOverlay\\\",\\\"onToggleModalDialog\\\",\\\"onToggle\\\",\\\"onClose\\\"],[[23,0,[]],[23,14,[]],[23,0,[\\\"isShowOverlay\\\"]],[23,13,[]],[23,12,[]],[28,\\\"fn\\\",[[23,0,[\\\"closeOverlay\\\"]]],null]]]]],null]]],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,15,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"id\\\",[29,[[23,0,[\\\"modalId\\\"]]]]],[12,\\\"class\\\",[29,[\\\"modal-container info-tooltip-modal \\\",[28,\\\"if\\\",[[23,1,[]],\\\"u-display-none\\\",\\\"\\\"],null]]]],[13,4],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupModal\\\"]],[28,\\\"hash\\\",null,[[\\\"moveToModalSection\\\"],[false]]]],null]]],[3,\\\"will-destroy\\\",[[28,\\\"fn\\\",[[23,0,[\\\"willDestroyElement\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"modal-container__content \\\",[23,5,[]]]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[14,7],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"id\\\",[29,[[23,0,[\\\"modalId\\\"]]]]],[12,\\\"class\\\",[29,[\\\"modal-container \\\",[28,\\\"if\\\",[[23,1,[]],\\\"u-display-none\\\",\\\"\\\"],null]]]],[13,4],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupModal\\\"]]],null]]],[3,\\\"will-destroy\\\",[[28,\\\"fn\\\",[[23,0,[\\\"willDestroyElement\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"modal-dialog modal-container--dialog \\\",[23,8,[]],\\\" \\\",[23,3,[]],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"modal-sidebar slide-in-right\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[14,7],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"id\\\",[29,[[23,0,[\\\"modalId\\\"]]]]],[12,\\\"class\\\",[29,[\\\"modal-container \\\",[23,3,[]],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"modal-sidebar slide-in-right\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,1,[]],\\\"u-display-none\\\",\\\"\\\"],null]]]],[13,4],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupModal\\\"]]],null]]],[3,\\\"will-destroy\\\",[[28,\\\"fn\\\",[[23,0,[\\\"willDestroyElement\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"modal-container__content \\\",[23,5,[]]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[14,7],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/modals/modal-container-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/modals/modal-container/component\", [\"exports\", \"jquery\", \"ramda-adjunct\"], function (_exports, _jquery, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['modal-container'],\n    autoPosition: false,\n    hasModalOverlay: true,\n    closeOnOverlayClick: true,\n    // didInsertElement () {\n    //   this._super(...arguments)\n    //   const fixedContainers = [\n    //     '.panel-grid__header-title',\n    //     '.panel-grid__header',\n    //     '.panel-grid__footer'\n    //   ]\n\n    //   const current = jQuery(this.element)\n\n    //   const parentClassName = R.reduce((acc, className) => {\n    //     if (acc !== false) {\n    //       return acc\n    //     }\n\n    //     const parent = current.closest(className)\n    //     if (parent.length > 0) {\n    //       return className\n    //     }\n\n    //     return false\n    //   }, false)(fixedContainers)\n\n    //   this._setModalZIndex(fixedContainers, parentClassName, 'add', '.panel-grid')\n    //   this._setModalZIndex(fixedContainers, parentClassName, 'remove', false)\n    // },\n\n    // didInsertElement () {\n    //   this._super(...arguments)\n    //   let element = this.$()\n    //   element = R.path([0])(element)\n    //   if (element) {\n    //     const tabGrid = element.closest('.panel-grid')\n\n    //     if (tabGrid) {\n    //       this.modalElement = element\n    //       const children = tabGrid.children || []\n    //       const modalContainer = R.find(child => {\n    //         return R.includes('tab-grid__modal', child.className)\n    //       })(children)\n\n    //       if (modalContainer) {\n    //         modalContainer.appendChild(element)\n    //       }\n    //     }\n    //   }\n    // },\n\n    didRender() {\n      this._super(...arguments);\n      if (this.autoPosition) {\n        const container = this._getDropdownContainer();\n        this._repositionContainer(container);\n      }\n    },\n    _setModalZIndex(fixedContainers, parentClassName, action, setForContainerClassName) {\n      // fixedContainers = R.without(parentClassName)(fixedContainers)\n      // R.forEach(containerClassName => {\n      //   let containers\n      //   if (setForContainerClassName) {\n      //     containers = jQuery(this.element).closest(setForContainerClassName).find(`${containerClassName}:visible`)\n      //   } else {\n      //     containers = jQuery(this.element).find(`${containerClassName}:visible`)\n      //   }\n\n      //   if (containers.length > 0) {\n      //     if (action === 'add') {\n      //       jQuery(containers).addClass('u-under-modal')\n      //     } else {\n      //       jQuery(containers).removeClass('u-under-modal')\n      //     }\n      //   }\n      // })(fixedContainers)\n    },\n    _getDropdownContainer($child = null) {\n      $child = $child || (0, _jquery.default)(this.element);\n      let dropdownContainer = $child.closest('.modal-container__outer-wrapper');\n      if (RA.lengthLte(0, dropdownContainer)) {\n        dropdownContainer = $child.find('.modal-container__content');\n      }\n      if (RA.lengthLte(0, dropdownContainer)) {\n        return null;\n      }\n      return dropdownContainer;\n    },\n    _repositionContainer(dropdownContainer = {}) {\n      if (RA.lengthGt(0, dropdownContainer) && this.autoPosition) {\n        const dropdownContainerDomElement = dropdownContainer[0];\n        const parentElement = this.element.parentElement;\n        const parentElementContainerBoundingClientRect = parentElement.getBoundingClientRect();\n        const dropDownContainerBoundingClientRect = dropdownContainerDomElement.getBoundingClientRect();\n        const width = dropdownContainer.outerWidth();\n        const left = dropdownContainer.offset().left;\n        const right = left + width;\n        const viewportRight = document.documentElement.clientWidth;\n        const viewportHeight = document.documentElement.clientHeight - 35;\n        const modalElementBoundingClientRect = this.element.getBoundingClientRect();\n        const moveModalOnTop = dropDownContainerBoundingClientRect.top + dropDownContainerBoundingClientRect.height > viewportHeight;\n        const moveModalOnBottom = dropDownContainerBoundingClientRect.top < 70;\n        if (moveModalOnTop) {\n          this.element.dataset.moveModalOnTop = 'true';\n          const newTopYPos = dropDownContainerBoundingClientRect.y - (parentElementContainerBoundingClientRect.bottom - dropDownContainerBoundingClientRect.top);\n          const newNewTop = parentElementContainerBoundingClientRect.top - dropDownContainerBoundingClientRect.bottom;\n          const maxTop = 70;\n          if (newTopYPos > maxTop) {\n            dropdownContainerDomElement.style.marginTop = `${newNewTop}px`;\n          }\n        } else if (moveModalOnBottom) {\n          this.element.dataset.moveModalOnBottom = 'true';\n          // @NOTE: Probably not the best way to do this, but it works for now\n          dropdownContainerDomElement.style.top = `${parentElementContainerBoundingClientRect.top}px` || '35px';\n          dropdownContainerDomElement.style.position = 'fixed';\n        } else if (modalElementBoundingClientRect.top < 70) {\n          // for modal in a modal\n          this.element.style.marginTop = '95px';\n        }\n        if (right > viewportRight) {\n          const rightDifference = right - viewportRight + 40;\n          const maxLeft = 5;\n          const newLeft = left - rightDifference;\n          if (newLeft > maxLeft) {\n            dropdownContainer.css('position', 'relative');\n            dropdownContainer.css('left', `-=${rightDifference}px`);\n          }\n        }\n      }\n    },\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        // const fixedContainers = [\n        //   '.panel-grid__header-title',\n        //   '.panel-grid__header',\n        //   '.panel-grid__footer'\n        // ]\n\n        // const current = jQuery(this.element)\n\n        // const parentClassName = R.reduce((acc, className) => {\n        //   if (acc !== false) {\n        //     return acc\n        //   }\n\n        //   const parent = current.closest(className)\n        //   if (parent.length > 0) {\n        //     return className\n        //   }\n\n        //   return false\n        // }, false)(fixedContainers)\n\n        // this._setModalZIndex(fixedContainers, parentClassName, 'remove', '.panel-grid')\n        // this._setModalZIndex(fixedContainers, parentClassName, 'add', false)\n\n        if (this.onClose) {\n          this.onClose();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/modals/modal-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JxCOJTeK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasCustomBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasModalOverlay\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"modals/modal-overlay\\\",null,[[\\\"closeOnOverlayClick\\\",\\\"toggle\\\"],[[24,[\\\"closeOnOverlayClick\\\"]],[24,[\\\"toggle\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__outer-wrapper\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-container__wrapper\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"modal-container__content \\\",[22,\\\"modalContentClassNames\\\"]]]],[8],[0,\\\"\\\\n        \\\"],[14,1],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/modals/modal-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/modals/modal-dialog/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, _ramdaAdjunct) {\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;\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 ModalsModalDialogComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _class = class ModalsModalDialogComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, 'intl', _descriptor, this);\n      _defineProperty(this, \"hasModalDialogHeader\", _ramdaAdjunct.default.isNotNilOrEmpty(this.args.hasModalDialogHeader) ? this.args.hasModalDialogHeader : true);\n      _defineProperty(this, \"hasSectionWrapper\", _ramdaAdjunct.default.isNotNilOrEmpty(this.args.hasSectionWrapper) ? this.args.hasSectionWrapper : false);\n      _defineProperty(this, \"hasClosed\", false);\n      _initializerDefineProperty(this, \"autoSetContentOverflow\", _descriptor2, this);\n    }\n    get noOverflow() {\n      return !this.autoSetContentOverflow;\n    }\n    setup() {\n      this.hasClosed = false;\n      if (this.args.onInit) {\n        this.args.onInit(this);\n      }\n    }\n    get hasModalOverlay() {\n      if (R.isNil(this.args.hasModalOverlay)) {\n        return true;\n      }\n      return this.args.hasModalOverlay;\n    }\n    get translate() {\n      return R.pathOr(true, ['args', 'translate'])(this);\n    }\n    get closeOnOverlayClick() {\n      return R.pathOr(true, ['args', 'closeOnOverlayClick'])(this);\n    }\n    get modalSizeClassName() {\n      const modalSize = this.args?.modalSize || 'large';\n      const classNames = [];\n      if (modalSize === 'small') {\n        classNames.push('modal-dialog__container-small');\n      } else if (modalSize === 'medium') {\n        classNames.push('modal-dialog__container-medium');\n      }\n      if (this.args.fitContent) {\n        classNames.push('modal-dialog--fit-content');\n        const width = this.args.width;\n        if (width === 'small' || width === 'medium' || width === 'large') {\n          classNames.push(`modal-dialog--width-${width}`);\n        }\n      }\n      return classNames.join(' ');\n    }\n    closeUsingTopRightBtn() {\n      if (!this.args.hasWarningOnCloseUsingTopRightBtn) {\n        return this.close();\n      }\n      const msg = this.intl.t('are you sure you want to close?');\n      if (window.confirm(msg)) {\n        this.close();\n      }\n    }\n    close() {\n      if (this.hasClosed) {\n        return;\n      }\n      this.hasClosed = true;\n      if (this.args.onToggle) {\n        this.args.onToggle(false);\n      }\n      if (this.args.onClose) {\n        this.args.onClose();\n      }\n    }\n    willDestroyElement() {\n      if (this?.isDestroyed === false) {\n        this.close();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, 'intl', [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"autoSetContentOverflow\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return _ramdaAdjunct.default.isNotNilOrEmpty(this.args.autoSetContentOverflow) ? this.args.autoSetContentOverflow : true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeUsingTopRightBtn\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"closeUsingTopRightBtn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"willDestroyElement\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroyElement\"), _class.prototype), _class);\n});","define(\"client/pods/components/modals/modal-dialog/modal-footer/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    actions: {\n      printDialog() {\n        window.print();\n      }\n    }\n  });\n});","define(\"client/pods/components/modals/modal-dialog/modal-footer/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FcbcSejG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-dialog__footer-spacer u-no-print\\\"],[8],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-dialog__footer u-no-print has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[14,1,[[28,\\\"action\\\",[[23,0,[]],\\\"printDialog\\\"],null]]],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/modals/modal-dialog/modal-footer/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/modals/modal-dialog/modal-header/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class; // import Component from '@ember/component'\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  // export default Component.extend({\n  let ModalsModalDialogComponent = _exports.default = (_dec = Ember._action, _class = class ModalsModalDialogComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"translate\", RA.isNotNilOrEmpty(this.args.translate) ? this.args.translate : true);\n    }\n    close() {\n      this.args.onClose();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"close\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _class);\n});","define(\"client/pods/components/modals/modal-dialog/modal-header/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"x75fzCsE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@titleSuffix\\\",\\\"@title\\\",\\\"&default\\\",\\\"@onClose\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-dialog__header is-sticky-row u-no-print\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-dialog__header-title\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,3]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[[23,2,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-dialog__header-close\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"close\\\"]]],null]]],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/modals/modal-dialog/modal-header/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/modals/modal-dialog/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OVHVnS8P\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@layoutsSection\\\",\\\"@layoutsSectionContentClassNames\\\",\\\"@title\\\",\\\"@titleSuffix\\\",\\\"@closeOnEscape\\\",\\\"@isSidebar\\\",\\\"@modelContainerClassNames\\\",\\\"@modalDialogContentClassName\\\",\\\"@isRunning\\\",\\\"@hasSectionWrapper\\\",\\\"@modalDialogIsVisible\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setup\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[5,\\\"modals/modal-container-new\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@closeOnEscape\\\",\\\"@onClose\\\",\\\"@onEscape\\\",\\\"@hasModalOverlay\\\",\\\"@hasSectionWrapper\\\",\\\"@isDialog\\\",\\\"@isSidebar\\\",\\\"@modelContainerClassNames\\\",\\\"@modalSizeClassName\\\"],[[23,0,[\\\"closeOnOverlayClick\\\"]],[23,6,[]],[28,\\\"fn\\\",[[23,0,[\\\"close\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"closeUsingTopRightBtn\\\"]]],null],[23,0,[\\\"hasModalOverlay\\\"]],[23,0,[\\\"hasSectionWrapper\\\"]],true,[23,7,[]],[23,8,[]],[23,0,[\\\"modalSizeClassName\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasModalDialogHeader\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"modals/modal-dialog/modal-header\\\",[],[[\\\"@onClose\\\",\\\"@title\\\",\\\"@titleSuffix\\\",\\\"@translate\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"closeUsingTopRightBtn\\\"]]],null],[23,4,[]],[23,5,[]],[23,0,[\\\"translate\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"modal-dialog__content \\\",[23,9,[]],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"noOverflow\\\"]],\\\"modal-dialog__content--no-overflow\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",[23,2,[]]]],[[\\\"@contentClassNames\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[14,1,[[28,\\\"fn\\\",[[23,0,[\\\"close\\\"]]],null]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[14,1,[[28,\\\"fn\\\",[[23,0,[\\\"close\\\"]]],null]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/modals/modal-dialog/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/modals/modal-overlay/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: '',\n    modalClassNames: '',\n    closeOnOverlayClick: true,\n    close() {\n      if (this.closeOnOverlayClick) {\n        Ember.set(this, 'toggle', false);\n        if (this.onClose) {\n          if (R.is(Function, this.onClose)) {\n            this.onClose();\n          } else {\n            // @TODO: fix all instances where modal-container-new is used and need to just pass in one function\n            // this just supresses errors, some places boolean is passed in\n            console.log('onClose is not a function');\n          }\n        }\n        if (this.onToggle) {\n          // this is a temp fix\n          if (R.is(Function, this.onToggle)) {\n            this.onToggle();\n          } else {\n            // @TODO: fix all instances where modal-container-new is used and need to just pass in one function\n            // this just supresses errors, some places boolean is passed in\n            console.log('onToggle is not a function');\n          }\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"close\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"close\"), _obj), _obj));\n});","define(\"client/pods/components/modals/modal-overlay/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HGAR3/bM\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"tab-grid__modal-overlay modal-overlay \\\",[22,\\\"modalClassNames\\\"]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"close\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/modals/modal-overlay/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/month-year-selector/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 MonthYearSelectorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _class = class MonthYearSelectorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      this.crud.addLists(this, ['periods/months', 'periods/years']);\n    }\n    get allowedYears() {\n      let years = this?.crud?.lists['periods-years'] || [];\n      const allowedNumberOfYears = this.args.allowedNumberOfYears;\n      if (R.isNil(allowedNumberOfYears)) {\n        return years;\n      }\n      years = R.take(allowedNumberOfYears)(years);\n      return years;\n    }\n    get hasActionButton() {\n      return R.pathOr(true, ['args', 'hasActionButton'])(this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/month-year-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bSMoo+Lv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@mm\\\",\\\"@yyyy\\\",\\\"&default\\\",\\\"@onSelect\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@btnClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@defaultLabel\\\",\\\"@onSelect\\\"],[true,\\\"u-margin-right-5\\\",false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-months\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[]],[28,\\\"tt\\\",[\\\"month\\\"],null],[23,6,[]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@btnClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@defaultLabel\\\",\\\"@onSelect\\\"],[true,\\\"u-margin-right-5\\\",false,[23,0,[\\\"allowedYears\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,4,[]],[28,\\\"tt\\\",[\\\"year\\\"],null],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[25,5]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,5],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasActionButton\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"is-primary\\\",\\\"fas fa-search\\\",[23,1,[]],[23,2,[]],[28,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[]],[23,3,[]]],null],false,true],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/month-year-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/msgs/deleted-error/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    msg: Ember.computed('model.{isDeleted,isOutOfDate,synced}', function () {\n      const isDeleted = this.get('model.isDeleted');\n      if (isDeleted) {\n        return 'deleted';\n      }\n      const isOutOfDate = this.get('model.isOutOfDate');\n      if (isOutOfDate) {\n        return 'data out of date';\n      }\n    })\n  });\n});","define(\"client/pods/components/msgs/deleted-error/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ArPXR5z3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[\\\"isDeleted\\\"]],[23,2,[\\\"isOutOfDate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"deleted-error u-section\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"msg\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/sync-updated\\\",null,[[\\\"model\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/msgs/deleted-error/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/msgs/error-badge/component\", [\"exports\", \"ramda\", \"client/utils/nventor\"], function (_exports, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'span',\n    translate: true,\n    showError: true,\n    showErrorLabel: true,\n    icon: 'fas fa-exclamation-circle',\n    hasErrors: Ember.computed('errors.[]', 'errorsTracker.[]', function () {\n      const getByContext = (errors, errorsTracker) => {\n        return R.pipe(R.map(error => {\n          const context = R.path(['context', 'key'])(error);\n          if (context) {\n            const found = R.find(R.anyPass([R.equals(context), R.propEq('context', context)]))(errorsTracker);\n            if (found) {\n              const label = R.propOr(found, 'label', found);\n              error.set('label', label);\n              return error;\n            }\n          }\n          return false;\n        }), R.reject(R.equals(false)))(errors);\n      };\n      const getByContextWithDotPath = (errors, errorsTracker) => {\n        return R.pipe(R.map(error => {\n          const contextKey = R.path(['context', 'key'])(error);\n          let contextDotPath = '';\n          if (!Number.isInteger(contextKey) && contextKey != null) {\n            if (typeof contextKey === 'string') {\n              contextDotPath = R.split('.')(contextKey);\n            }\n          }\n          if (contextDotPath.length > 1) {\n            let found = false;\n            let foundTrackerLabel = '';\n            R.forEach(trackerContextObject => {\n              const trackerContext = R.propOr(trackerContextObject, 'context')(trackerContextObject);\n              const trackerContextLength = R.pipe(R.split('.'), R.length)(trackerContext);\n              const trackerLabel = R.propOr('', 'label')(trackerContextObject);\n              if (trackerContextLength > 0) {\n                const toMatchContext = R.pipe(R.take(trackerContextLength), R.join('.'))(contextDotPath);\n                if (trackerContext === toMatchContext) {\n                  found = trackerContext;\n                  foundTrackerLabel = trackerLabel;\n                }\n              }\n            })(errorsTracker);\n            if (found) {\n              const label = foundTrackerLabel;\n              error.set('label', label);\n              // error.set('context', found)\n              return error;\n            }\n          }\n          return false;\n        }), R.reject(R.equals(false)))(errors);\n      };\n      let errors = this.errors || null;\n      if (!_nventor.default.isNilOrEmpty(errors)) {\n        errors = R.map(error => {\n          return Ember.Object.create(error);\n        }, errors);\n        const errorsTracker = this.errorsTracker || [];\n        let foundErrors = getByContext(errors, errorsTracker);\n        if (R.isEmpty(foundErrors)) {\n          foundErrors = getByContextWithDotPath(errors, errorsTracker);\n        }\n        return foundErrors;\n      }\n      return null;\n    })\n  });\n});","define(\"client/pods/components/msgs/error-badge/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"P1HkgOH4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasErrors\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"has-text-danger u-icon-spacer--left\\\",[24,[\\\"icon\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showError\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"showError\\\",\\\"showErrorLabel\\\",\\\"showMultipleErrors\\\"],[[23,0,[\\\"hasErrors\\\"]],true,[23,0,[\\\"showErrorLabel\\\"]],[24,[\\\"showMultipleErrors\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/msgs/error-badge/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/msgs/error-msg/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    validationService: Ember.inject.service('validation'),\n    tagName: '',\n    translate: true,\n    showError: true,\n    showErrorLabel: false,\n    icon: 'fas fa-exclamation-circle',\n    showMultipleErrors: false,\n    iconClassNames: 'has-text-danger',\n    errorClassNames: 'error-msg',\n    init() {\n      this._super(...arguments);\n      const tab = this.tab;\n      const model = this.model;\n      if (RA.isNotNilOrEmpty(tab) && RA.isNotNilOrEmpty(model)) {\n        this.validationService.setErrorsTracker({\n          tab,\n          model,\n          context: this.context\n        });\n      }\n    },\n    hasErrors: Ember.computed('errors.{@each.path,[]}', 'context', 'error', function () {\n      const error = this.error;\n      if (error) {\n        if (R.is(String, error)) {\n          return [{\n            message: error,\n            label: ''\n          }];\n        }\n        return [error];\n      }\n      const errors = this.errors || [];\n      let context = this.context || [];\n      if (!R.is(Array, context)) {\n        context = [context];\n      }\n      let contextArray = this.contextArray || [];\n      if (!R.is(Array, contextArray)) {\n        contextArray = [contextArray];\n      }\n      const contextDotPath = R.join('.')(context);\n      const contextArrayDotPath = R.join('.')(contextArray);\n      let filtered = errors;\n      if (RA.isNotNilOrEmpty(context)) {\n        filtered = R.filter(error => {\n          if (contextArrayDotPath) {\n            const errorDotPath = R.pipe(R.pathOr([], ['path']), R.reject(Number.isInteger), R.join('.'))(error);\n            if (errorDotPath === contextArrayDotPath) {\n              return true;\n            }\n          } else {\n            const errorContext = R.pathOr('', ['context', 'key'], error);\n            if (R.includes(errorContext, context)) {\n              return true;\n            }\n            const errorContextLabel = R.pathOr('', ['context', 'label'], error);\n            if (R.includes(errorContextLabel, context)) {\n              return true;\n            }\n            if (RA.isNotNilOrEmpty(error?.index)) {\n              const errorContextWithIndex = R.pathOr('', ['context', 'keyWithIndex'])(error);\n              if (R.includes(errorContextWithIndex, context)) {\n                return true;\n              }\n            }\n            const errorDotPathWithoutIndex = R.pipe(R.pathOr([], ['path']), R.reject(Number.isInteger), R.join('.'))(error);\n            if (errorDotPathWithoutIndex === contextDotPath) {\n              return true;\n            }\n            return false;\n          }\n        })(filtered);\n      }\n      if (!this.showMultipleErrors && filtered.length > 0) {\n        return R.take(1)(filtered);\n      }\n      return filtered;\n    })\n  });\n});","define(\"client/pods/components/msgs/error-msg/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TBq1pGIs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"error\\\",\\\"isTooltipVisible\\\",\\\"error\\\",\\\"@customErrorClassNames\\\",\\\"@tooltip\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasErrors\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"flex-container-row msgs-error-msg-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[[29,[\\\"u-icon-spacer--left \\\",[23,0,[\\\"iconClassNames\\\"]]]],[23,0,[\\\"icon\\\"]]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showError\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"hasErrors\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[23,0,[\\\"errorClassNames\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showErrorLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[[23,3,[\\\"label\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[[23,3,[\\\"message\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"hasErrors\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"level has-text-small\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"level-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"icon\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[[29,[\\\"u-icon-spacer--left \\\",[23,0,[\\\"iconClassNames\\\"]]]],[23,0,[\\\"icon\\\"]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"level-item\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[23,0,[\\\"errorClassNames\\\"]],\\\" \\\",[23,4,[]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showErrorLabel\\\"]],[23,1,[\\\"label\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"label\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"string.pattern.name\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"type\\\"]],\\\"\\\",[23,1,[\\\"context\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"context\\\",\\\"limit\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"type\\\"]],\\\"\\\",[23,1,[\\\"context\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"message\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/msgs/error-msg/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/msgs/footer-msgs/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class MsgsFooterMsgs extends _component.default {}\n  _exports.default = MsgsFooterMsgs;\n});","define(\"client/pods/components/msgs/footer-msgs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"K5aoyOyG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"footer-msgs__container\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"msgs/deleted-error\\\",[],[[\\\"@model\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"msgs/error-badge\\\",[],[[\\\"@errors\\\"],[[23,2,[]]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/msgs/footer-msgs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/msgs/info-msg/component\", [\"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 = Ember.Component.extend({\n    tagName: 'span',\n    classNames: ['msgs__info-msg'],\n    classNameBindings: ['isCallout:msgs__info-msg--callout'],\n    translate: true,\n    hasMessage: true,\n    isCallout: false,\n    translatedMessage: Ember.computed('msg', 'hasMessage', function () {\n      let msg = '';\n      if (this.hasMessage) {\n        msg = this.msg;\n      }\n      if (msg) {\n        if (this.translate) {\n          msg = this.intl.t(msg);\n        }\n      }\n      return msg;\n    })\n  });\n});","define(\"client/pods/components/msgs/info-msg/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xCdZ/9TV\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"translatedMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[\\\"fas fa-info-circle\\\",\\\"has-text-info\\\"]]],[0,\\\"\\\\n  \\\"],[1,[23,0,[\\\"translatedMessage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/msgs/info-msg/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/msgs/sync-updated/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    icon: 'fas fa-user-circle',\n    syncUpdated: Ember.computed('model.synced', function () {\n      const synced = this.get('model.synced');\n      if (synced) {\n        let modified = this.get('model._data.modified') || this.get('model.modified');\n        if (!R.is(Array, modified)) {\n          modified = this.get('model.modified._data.modified');\n        }\n        if (R.is(Array, modified)) {\n          // only return one value\n          return [modified.get('firstObject')];\n        }\n      }\n      return [];\n    })\n  });\n});","define(\"client/pods/components/msgs/sync-updated/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UFc8JvnM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"modifier\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"syncUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"classNames\\\",\\\"icon\\\"],[\\\"u-is-cursor-default u-icon-spacer--left\\\",[24,[\\\"icon\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"syncUpdated\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"updated\\\"],null],false],[0,\\\": \\\"],[1,[23,2,[\\\"username\\\"]],false],[0,\\\" \\\"],[4,\\\"if\\\",[[23,2,[\\\"md\\\"]]],null,{\\\"statements\\\":[[0,\\\" @ \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"md\\\"]]],null],false],[0,\\\" \\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/msgs/sync-updated/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/msgs/warning-msg/component\", [\"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 = Ember.Component.extend({\n    tagName: 'span',\n    classNames: ['msgs__info-msg', 'msgs__info-msg--warning'],\n    translate: true,\n    hasMessage: true,\n    translatedMessage: Ember.computed('msg', 'hasMessage', function () {\n      let msg = '';\n      if (this.hasMessage) {\n        msg = this.msg;\n      }\n      if (msg) {\n        if (this.translate) {\n          msg = this.intl.t(msg);\n        }\n      }\n      return msg;\n    })\n  });\n});","define(\"client/pods/components/msgs/warning-msg/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rbUZfKHI\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[\\\"fas fa-exclamation-triangle\\\",\\\"has-text-warning\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[1,[23,0,[\\\"translatedMessage\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/msgs/warning-msg/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/files/files-default-image/component\", [\"exports\", \"client/pods/components/news/files/mixins/news-files\"], function (_exports, _newsFiles) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_newsFiles.default, {\n    fetchUploads: true\n  });\n});","define(\"client/pods/components/news/files/files-default-image/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0TV57dyz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"response\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"resourceKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"files/files-fetcher\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"adapterName\\\",\\\"fetchUploadsOnInit\\\",\\\"fetchUploadsCollectionOnInit\\\"],[[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],\\\"uploads/collection\\\",false,true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\",\\\"width\\\",\\\"height\\\"],[[23,1,[\\\"uploadsCollection\\\",\\\"defaultImageUuid\\\"]],[24,[\\\"transform\\\"]],[24,[\\\"width\\\"]],[24,[\\\"height\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/files/files-default-image/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/files/files-gallery-uploader/component\", [\"exports\", \"client/pods/components/news/files/mixins/news-files\"], function (_exports, _newsFiles) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_newsFiles.default, {\n    fetchUploads: true,\n    allowSetDefault: true,\n    allowUploads: false,\n    showDefaultImagePreview: true\n  });\n});","define(\"client/pods/components/news/files/files-gallery-uploader/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KEAAtgAz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"response\\\"],\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"classNames\\\"],[\\\"has-text-centered\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"files/files-fetcher\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"adapterName\\\",\\\"fetchUploadsOnInit\\\",\\\"fetchUploadsCollectionOnInit\\\"],[[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],\\\"uploads/collection\\\",false,true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"files/files-gallery\\\",null,[[\\\"adapterName\\\",\\\"showDefaultImagePreview\\\",\\\"uploads\\\",\\\"defaultImage\\\",\\\"onSetAsDefaultImageTask\\\",\\\"label\\\",\\\"translate\\\",\\\"allowSetDefault\\\",\\\"resource\\\",\\\"resourceKey\\\"],[\\\"uploads/collection\\\",[24,[\\\"showDefaultImagePreview\\\"]],[23,1,[\\\"uploadsCollection\\\",\\\"_data\\\",\\\"uploads\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"defaultImage\\\"]],[28,\\\"perform\\\",[[24,[\\\"setAsDefaultImageTask\\\"]]],null],[24,[\\\"label\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"allowSetDefault\\\"]],[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allowUploads\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"classNames\\\"],[\\\"has-text-centered\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"files/files-uploader\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"label\\\",\\\"tagName\\\"],[[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],\\\"upload images\\\",\\\"span\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/files/files-gallery-uploader/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/files/mixins/news-files\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"client/utils/nventor\"], function (_exports, _emberConcurrency, _crud, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { computed } from '@ember/object'\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, {\n    adapterNameForSetDefault: 'news',\n    adapterName: 'news',\n    // fetchUploadsTask: task(function * () {\n    //   const resourceKey = this.get('resourceKey')\n    //   if (resourceKey) {\n    //     const adapterName = this.get('adapterName')\n    //     const news = yield this.get('dataManager').findRecord(adapterName, `/${resourceKey}`)\n    //     this.set('news', news)\n    //   }\n    // }),\n\n    setAsDefaultImageTask: (0, _emberConcurrency.task)(function* (file) {\n      if (this.allowSetDefault) {\n        // no need to send entire record over, should only update record, not replace\n        const adapterNameForSetDefault = this.adapterNameForSetDefault;\n        const resourceKey = this.resourceKey;\n        const news = yield this.dataManager.findRecord({\n          adapterName: adapterNameForSetDefault,\n          appendPath: `/${resourceKey}`\n        });\n        const dirty = this.dataManager.getDirtyRecord(adapterNameForSetDefault, news);\n        dirty.setData('defaultImage', file._data.uuid);\n        try {\n          return yield this.dataManager.updateRecord({\n            adapterName: adapterNameForSetDefault,\n            dirty\n          });\n        } catch (err) {\n          this.set('errors', err.data);\n          _nventor.default.throw('setAsDefaultImageTask failed', err);\n        }\n      }\n    }).drop()\n  });\n});","define(\"client/pods/components/news/news-card/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 NewsNewsCardComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _class = class NewsNewsCardComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['news/lists/tags', 'statuses']);\n    }\n    get isAdded() {\n      const news = this.args.model;\n      const sliderNewsArray = this.args.sliderNewsArray;\n      return sliderNewsArray.includes(news);\n    }\n    emptyFn(data) {\n      return data;\n    }\n    onClick() {\n      const onDisplay = R.pathOr(this.emptyFn, ['args', 'onDisplay'])(this);\n      onDisplay(this.args.model);\n    }\n    onRemove() {\n      const onRemove = R.pathOr(this.emptyFn, ['args', 'onRemove'])(this);\n      onRemove(this.args.model);\n    }\n    onAdd() {\n      const onAdd = R.pathOr(this.emptyFn, ['args', 'onAdd'])(this);\n      onAdd(this.args.model);\n    }\n    onPreview() {\n      const onPreview = R.pathOr(this.emptyFn, ['args', 'onPreview'])(this);\n      onPreview(this.args.model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onRemove\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAdd\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onAdd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPreview\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onPreview\"), _class.prototype), _class);\n});","define(\"client/pods/components/news/news-card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Sw6kxVo7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@onPreview\\\",\\\"@onRemove\\\",\\\"@onAdd\\\",\\\"@topRightRemove\\\",\\\"&attrs\\\",\\\"@compactMode\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"news-card__container\\\"],[13,6],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"onClick\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-image\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-1by1\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"news/files/files-default-image\\\",[],[[\\\"@fetchUploads\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\"],[true,[23,1,[]],\\\"news\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]],\\\"/-/scale_crop/500x500/smart\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-content news-card__title-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"title is-5\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-medium bigordr-slider-image-delete-btn\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,5,[]],[23,1,[]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-image\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-1by1\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"news/files/files-default-image\\\",[],[[\\\"@fetchUploads\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\"],[true,[23,1,[]],\\\"news\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]],\\\"/-/scale_crop/500x500/smart\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-content news-card__title-container\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@tagClassNames\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,1,[\\\"statusClass\\\"]],[23,1,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"title is-5\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content news-card__desc-container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[true,true,[23,1,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",[23,0,[\\\"onPreview\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isAdded\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-trash\\\",[23,0,[\\\"onRemove\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"isAdded\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",[23,0,[\\\"onAdd\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/news-card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/news-editor/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    classNames: ['col-container'],\n    disabled: false,\n    translate: true,\n    defaultProductType: null,\n    defaultProductStatus: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['news/lists/tags', 'statuses']);\n    },\n    actions: {\n      autoSetUrl(value) {\n        const model = this.model;\n        const url = R.pipe(R.trim, R.toLower, R.replace(/\\\\/g, ''), R.replace(/\\s/g, '-'))(value);\n        model.setData('url', url);\n      }\n    }\n  });\n});","define(\"client/pods/components/news/news-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wcrMe3ZI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDianewsAction\\\",\\\"@onRemoveRecordTask\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,4,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"_key\\\"]],\\\"edit\\\",\\\"new\\\"],null]],null],false],[0,\\\": \\\\n          \\\"],[1,[23,4,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"news\\\",false,true,[28,\\\"if\\\",[[23,10,[]],[23,10,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"news\\\",[23,9,[]],[23,5,[]],[23,8,[]],[23,7,[]]]]]],null],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"status_group\\\",[23,1,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"status\\\",[23,1,[]],[23,6,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,4,[\\\"statusClass\\\"]],true,[23,11,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,4,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"index\\\",[23,1,[]],true,\\\"display order\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"input--80\\\",[23,11,[]],[23,4,[\\\"_data\\\",\\\"index\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"basicInformation_group\\\",[23,1,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"name\\\",[23,1,[]],[23,6,[]],\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,11,[]],[23,4,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"description\\\",[23,1,[]],[23,6,[]],\\\"short description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,11,[]],[23,4,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"customAuthorDisplay\\\",[23,1,[]],[23,6,[]],\\\"custom author display\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,11,[]],[23,4,[\\\"_data\\\",\\\"customAuthorDisplay\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"customDateZDisplay\\\",[23,1,[]],[23,6,[]],\\\"custom date display\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.customDateZDisplay\\\",[23,4,[]],[23,4,[\\\"_data\\\",\\\"customDateZDisplay\\\"]],[23,11,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"seo_group\\\",[23,5,[]],\\\"seo\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"website_seo_keywords\\\",[24,[\\\"errors\\\"]],\\\"keywords\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"seoKeywords\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"website_seo_description\\\",[24,[\\\"errors\\\"]],\\\"description\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@maxlength\\\",\\\"@rows\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\"],[\\\"300\\\",\\\"3\\\",[22,\\\"isReadonly\\\"],[23,4,[\\\"_data\\\",\\\"seoDescription\\\"]],[23,4,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"isCanonical\\\",\\\"website_is_canonical\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,4,[\\\"_data\\\",\\\"isCanonical\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[23,1,[]],\\\"customUrl\\\",false,\\\"website_seo_custom_url\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[false,[23,11,[]],[23,4,[\\\"_data\\\",\\\"customUrl\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"headers\\\",[23,1,[]],[23,6,[]],false,\\\"website_headers\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,11,[]],[23,4,[\\\"_data\\\",\\\"headers\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"scripts\\\",[23,1,[]],[23,6,[]],false,\\\"website_scripts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,11,[]],[23,4,[\\\"_data\\\",\\\"scripts\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"uploads_group\\\",[23,1,[]],\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"uploads\\\",[23,1,[]],[23,6,[]],\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@adapterName\\\",\\\"@allowSetDefault\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\"],[[22,\\\"tab\\\"],\\\"uploads/collection\\\",true,true,[23,0,[\\\"model\\\"]],false,\\\"news\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"tags_group\\\",[23,1,[]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"tags\\\",[23,1,[]],[23,6,[]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"          \\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"icon\\\",\\\"list\\\"],[[24,[\\\"isReadonly\\\"]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"hasSearch\\\",\\\"adapterName\\\",\\\"legend\\\",\\\"tab\\\",\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\",\\\"allowEmpty\\\"],[true,\\\"news/lists/tags\\\",\\\"tags\\\",[23,5,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-tags\\\"]],[23,4,[]],true,\\\"_data._key\\\",\\\"_data.tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-tags\\\"]],false,[23,4,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"template_group\\\",[23,1,[]],\\\"template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInputClassNames\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"form__input--full-width\\\",\\\"template\\\",[23,6,[]],\\\"template\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"template\\\"]],true,true,[23,11,[]],[23,5,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isVariantChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],[23,3,[\\\"isRunning\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"disabled\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[24,[\\\"disabled\\\"]],[28,\\\"perform\\\",[[24,[\\\"saveTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@tab\\\",\\\"@type\\\",\\\"@isPreview\\\",\\\"@master\\\",\\\"@metaData\\\"],[\\\"comments/comments-manager/modal-btn\\\",[22,\\\"tab\\\"],\\\"news\\\",true,[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"news\\\",\\\"newsKey\\\",\\\"name\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/btn-back\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"onDash\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/news-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/panels-dash/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    adapterName: 'news',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['news/lists/tags', 'statuses']);\n    }\n  });\n});","define(\"client/pods/components/news/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9BgFwpUi\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content flex-container-row flex-container--wrap flex-container--justify-center\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@list\\\",\\\"@tableViewOptions\\\"],[\\\"news/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[22,\\\"onDisplay\\\"],[22,\\\"onEdit\\\"],[22,\\\"onDisplay\\\"],[23,0,[\\\"fetchNewsTask\\\"]],[23,0,[\\\"fetchNewsTask\\\"]],[22,\\\"results\\\"],[22,\\\"results\\\"],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isAllowReorder\\\",\\\"onRemove\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],true,[24,[\\\"onRemove\\\"]],[24,[\\\"tab\\\"]]]]]]]],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"tagName\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,\\\"span\\\",[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[24,[\\\"onPaginationTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/panels-display/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    adapterName: 'news',\n    errorMsg: Ember.computed(function () {\n      return this.intl.t('error occurred please try again later');\n    }),\n    init() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const model = this.get('tab.model');\n      this.set('model', model);\n    }\n  });\n});","define(\"client/pods/components/news/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"idWTO8WV\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"news/news-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"onEdit\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"tab\\\",\\\"isDuplicate\\\",\\\"onDash\\\",\\\"onCancel\\\"],[[24,[\\\"model\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"updateRecordTask\\\"]],[24,[\\\"onEdit\\\"]],false,false,true,true,[24,[\\\"tab\\\"]],[24,[\\\"isDuplicate\\\"]],[24,[\\\"onDash\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/panels-edit/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    adapterName: 'news',\n    init() {\n      this.setup();\n      this._super(...arguments);\n    },\n    setup() {\n      const dirty = this.setupDirty({\n        model: this.get('tab.model')\n      });\n      this.set('dirty', dirty);\n    }\n  });\n});","define(\"client/pods/components/news/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Uh2rt/lJ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"news/news-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"tab\\\",\\\"isDuplicate\\\",\\\"onCancel\\\",\\\"onRemoveRecordTask\\\"],[[24,[\\\"dirty\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"updateRecordTask\\\"]],false,true,false,false,[24,[\\\"tab\\\"]],[24,[\\\"isDuplicate\\\"]],[24,[\\\"onCancel\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"dirty\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/panels-new/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    server: Ember.inject.service(),\n    adapterName: 'news',\n    init: function () {\n      this._super(...arguments);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      if (!this.model) {\n        const master = this.master;\n        const result = yield this.server.call('GET', `api/protected/news/index/next`, {\n          master\n        });\n        const index = result.data ?? 1;\n        const name = this.name || '';\n        const data = {\n          name,\n          master,\n          index,\n          status: this.get('constants.status.active')\n        };\n\n        // setup new news model\n        const model = this.setupNewRecord({\n          data\n        });\n        this.set('model', model);\n      }\n    })\n  });\n});","define(\"client/pods/components/news/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oih6BD3X\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"news/news-editor\\\",null,[[\\\"model\\\",\\\"errors\\\",\\\"saveTask\\\",\\\"isNew\\\",\\\"tab\\\",\\\"isDuplicate\\\",\\\"onCancel\\\"],[[24,[\\\"model\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"createRecordTask\\\"]],true,[24,[\\\"tab\\\"]],[24,[\\\"isDuplicate\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/search-bar/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 NewsSearchBarComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class NewsSearchBarComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor4, this);\n      _initializerDefineProperty(this, \"displayFilters\", _descriptor5, this);\n      _initializerDefineProperty(this, \"news\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sliderNewsArray\", _descriptor7, this);\n      _defineProperty(this, \"adapterName\", 'news');\n      _defineProperty(this, \"newsFiltersAdapterName\", 'news/filters');\n      this.crud.addLists(this, ['news/lists/tags', 'filters/count', 'filters/sortDirection', 'statuses']);\n      this.filters = this.search.setupFilters({\n        adapterName: this.newsFiltersAdapterName,\n        defaultFiltersData: {\n          resultsProperty: 'results',\n          master: this.args.master\n        }\n      });\n      this.sliderNewsArray = this.args.preSelected || this.sliderNewsArray;\n      this.searchInputTask.perform('', {\n        allowEmptyQuery: true\n      });\n    }\n    markNewsAsIsSelected() {\n      R.pipe(R.pathOr([], ['filters', 'results']), R.map(blog => {\n        blog.set('isSelected', false);\n        return blog;\n      }), R.filter(R.includes(R.__, this.sliderNewsArray)), R.forEach(blog => {\n        blog.set('isSelected', true);\n      }))(this);\n    }\n    *searchInputTask(query, {\n      allowEmptyQuery = false\n    } = {}) {\n      yield this.crud.searchInputTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters,\n        resultsProperty: 'news',\n        component: this,\n        allowEmptyQuery\n      }, query);\n      this.markNewsAsIsSelected();\n    }\n    *reloadSearchRecordsTask() {\n      yield this.crud.reloadSearchRecordsTask.perform({\n        filters: this.filters\n      });\n      this.markNewsAsIsSelected();\n    }\n    *fetchNewsByTagsTask() {\n      const tags = R.pathOr([], ['filters', '_data', 'tags'])(this);\n      if (R.isEmpty(tags)) {\n        this.isSearchByTags = false;\n        this.filters.reset();\n        this.sliderNewsArray.clear();\n        return [];\n      } else {\n        this.isSearchByTags = true;\n        this.filters.reset();\n        this.filters.set('_data.tags', tags);\n        yield this.crud.searchRecordsTask.perform({\n          adapterName: this.adapterName,\n          filters: this.filters\n        });\n        this.filters.reIndexResults();\n        this.sliderNewsArray = this.filters.resultsSortedByKeys;\n        return this.filters.resultsSortedByKeys;\n      }\n    }\n    *fetchNewsTask() {\n      this.news = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters\n      });\n      this.filters.reIndexResults();\n    }\n    *paginateSearchRecordsTask() {\n      yield this.crud.paginateSearchRecordsTask.perform({\n        filters: this.filters\n      });\n      this.markNewsAsIsSelected();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"displayFilters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"news\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"sliderNewsArray\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchInputTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadSearchRecordsTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadSearchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchNewsByTagsTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchNewsByTagsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchNewsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchNewsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"paginateSearchRecordsTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"paginateSearchRecordsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/news/search-bar/search-results/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/filters/status']);\n    }\n  });\n});","define(\"client/pods/components/news/search-bar/search-results/search-row/component\", [\"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 = Ember.Component.extend({\n    tagName: 'tr'\n  });\n});","define(\"client/pods/components/news/search-bar/search-results/search-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0kagxJrs\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-search\\\"]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\"],[\\\"products\\\",[24,[\\\"item\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"80\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-left u-padding--3\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[true,[24,[\\\"item\\\",\\\"_data\\\",\\\"onSale\\\"]],\\\"on\\\",\\\"off\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"channels/shop/items/item-price\\\",null,[[\\\"campaign\\\",\\\"item\\\"],[[24,[\\\"campaign\\\"]],[24,[\\\"item\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[24,[\\\"item\\\",\\\"_data\\\",\\\"productTags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"tagClassNames\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"statusTagClassName\\\"]],[24,[\\\"item\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"add\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelect\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/search-bar/search-results/search-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/search-bar/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0jYaFTe9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"index\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"products/search-bar/search-results/search-row\\\",null,[[\\\"isHeaders\\\"],[true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"products/search-bar/search-results/search-row\\\",null,[[\\\"isDetailRow\\\",\\\"tab\\\",\\\"item\\\",\\\"onSelect\\\"],[true,[24,[\\\"tab\\\"]],[23,1,[]],[24,[\\\"onSelect\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/search-bar/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/search-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0leHn2Mm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onSelect\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header panel-grid__header-title__no-sticky\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container flex-row-space-between\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-row-space-around\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"placeholder\\\",\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[true,\\\"news\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[23,0,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,0,[\\\"searchInputTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"news/search-filters\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onMainAction\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@list\\\",\\\"@paginationIsFooter\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"news/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchNewsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchNewsTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchNewsTask\\\"]]],null],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"news\\\"]],false,[23,0,[\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isAllowReorder\\\",\\\"tab\\\",\\\"onSelect\\\"],[[23,0,[\\\"adapterName\\\"]],false,[23,2,[]],[23,1,[]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/search-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/search-filters/component\", [\"exports\", \"client/mixins/news-list-by\", \"client/mixins/crud\"], function (_exports, _newsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _newsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['news/lists/filters/search', 'news/lists/filters/sort', 'news/lists/filters/status', 'filters/count', 'filters/sortDirection']);\n    }\n  });\n});","define(\"client/pods/components/news/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6zg05VvS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"byLatest\\\"],[[24,[\\\"filters\\\"]],true]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.status\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/search-results/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['statuses']);\n    },\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/news/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"C/uNy+G0\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"list-results__table\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"list-results__table-thumb\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\"],[[24,[\\\"result\\\",\\\"defaultImage\\\"]],\\\"/-/resize/40x\\\"]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"tagClassNames\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"statusTagClassName\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/tab-container/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\", \"client/mixins/news-list-by\", \"client/mixins/sortable-actions\"], function (_exports, _crud, _emberConcurrency, _newsListBy, _sortableActions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _newsListBy.default, _sortableActions.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    results: null,\n    resultsToggle: false,\n    adapterName: 'news',\n    filtersAdapterName: 'news/filters',\n    news: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['news/lists/menu', 'news/lists/tags', 'statuses']);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          master: this.master\n        }\n      });\n      this.set('filters', filters);\n      this.loadTabTask.perform();\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const model = loadInstructions.getData('model');\n        if (model) {\n          this.display(loadInstructions.getData('model'));\n        } else {\n          const id = loadInstructions.getData('find.id');\n          const found = yield this.findTask.perform({\n            appendPath: id\n          });\n          this.display(found);\n        }\n      } else {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        const results = yield this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters\n        });\n        this.set('results', results);\n        this.dash(results);\n      }\n    }),\n    fetchNewsTask: (0, _emberConcurrency.task)(function* () {\n      const news = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters\n      });\n      this.set('news', news);\n    }),\n    refreshDash() {\n      this.dash();\n    },\n    dash(results) {\n      this.set('filters.showResults', false);\n      if (!results) {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        filters.setData('query', '');\n        this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters,\n          resultsProperty: 'results'\n        });\n      }\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'news/panels-dash'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    display(model, additionalOptions = {}) {\n      this.set('filters.showResults', false);\n      const panelOptions = {\n        component: 'news/panels-display',\n        model: model\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n    },\n    new(subTabOptions) {\n      this.set('resultsToggle', false);\n\n      // create tab within product tab\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    actions: {\n      dash() {\n        this.set('resultsToggle', false);\n        // should deselect results if any..\n        // this.deselectResult();\n        this.dash();\n      },\n      display(model, options) {\n        this.set('resultsToggle', false);\n        if (model) {\n          this.display(model, options);\n        } else {\n          // if no model then display dash (when model has been deleted)\n          this.dash();\n        }\n      },\n      new(subTabOptions) {\n        this.new(subTabOptions);\n      },\n      edit(model, additionalOptions) {\n        this.set('resultsToggle', false);\n        const tab = this.tab;\n        const panelOptions = {\n          component: 'news/panels-edit',\n          model: model\n        };\n        this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n      },\n      import(subTabOptions) {\n        const tab = this.tab;\n        this.tabsManager.replaceSubTab(tab, subTabOptions);\n      }\n    }\n  });\n});","define(\"client/pods/components/news/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"m12yYABD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterSearch\\\",\\\"news/panels-dash\\\"],null],\\\"news\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"classNames\\\",\\\"itemClassNames\\\",\\\"page\\\",\\\"count\\\",\\\"onPaginationTask\\\",\\\"lastSearchSettings\\\",\\\"onSelect\\\"],[[24,[\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[24,[\\\"page\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"lastSearchSettings\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"news/search-results\\\",null,[[\\\"query\\\",\\\"result\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"master\\\",\\\"filters\\\",\\\"results\\\",\\\"onEdit\\\",\\\"onDisplay\\\",\\\"onDash\\\",\\\"onCancel\\\",\\\"onImportTask\\\",\\\"onPaginationTask\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[24,[\\\"master\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[24,[\\\"importTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/news/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 NewsTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class NewsTableViewDetailRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragAndDrop\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor3, this);\n      _initializerDefineProperty(this, \"showUploadsRow\", _descriptor4, this);\n      this.crud.addLists(this, ['news/lists/menu', 'news/lists/tags', 'statuses']);\n    }\n    get isDraggable() {\n      if (this.args.tableViewOptions.isReadonly) {\n        return false;\n      }\n      if (!this.args.tableViewOptions.isAllowReorder) {\n        return false;\n      }\n      return true;\n    }\n    get rowClassName() {\n      return `table-view__detail-row ${this.dropPosition}`;\n    }\n    get description() {\n      const div = document.createElement('div');\n      div.innerHTML = R.pathOr('', ['args', 'model', '_data', 'description'])(this);\n      return div.innerText;\n    }\n    drop(indexStart, indexEnd, results) {\n      let reIndexNews;\n      if (indexStart > indexEnd) {\n        reIndexNews = R.slice(indexEnd, R.inc(indexStart))(results);\n      } else {\n        reIndexNews = R.slice(indexStart, R.inc(indexEnd))(results);\n      }\n      const master = R.view(R.lensPath([0, '_data', 'master']))(results);\n      this.crud.adapterCallTask.perform('updateIndexes', {\n        adapterName: 'news/details/batch',\n        appendPath: `/${master}/indexes`,\n        model: reIndexNews\n      });\n      if (this.args.tableViewOptions.onReorder) {\n        this.args.tableViewOptions.onReorder(...arguments);\n      }\n    }\n    dragOver() {\n      if (this.args.tableViewOptions.onDragOver) {\n        this.dropPosition = this.args.tableViewOptions.onDragOver(...arguments);\n      }\n    }\n    dragStart() {\n      if (this.args.tableViewOptions.onDragStart) {\n        this.args.tableViewOptions.onDragStart(...arguments);\n      }\n    }\n    *reloadSearchTask(filters) {\n      if (!this.args.onReloadSearchRecordsTask) {\n        return;\n      }\n      return yield this.args.onReloadSearchRecordsTask.perform({\n        filters\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragAndDrop\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showUploadsRow\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"drop\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"drop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragOver\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"dragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragStart\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"dragStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadSearchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadSearchTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/news/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"H57rocgY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tableViewOptions\\\",\\\"@model\\\",\\\"@onEdit\\\",\\\"@onDisplay\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@isDetailRow\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"index\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[23,0,[\\\"reloadSearchTask\\\"]],[24,[\\\"filters\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"display order\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"images\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[23,0,[\\\"reloadSearchTask\\\"]],[24,[\\\"filters\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"images\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"name\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[23,0,[\\\"reloadSearchTask\\\"]],[24,[\\\"filters\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"news\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"newsTags\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[23,0,[\\\"reloadSearchTask\\\"]],[24,[\\\"filters\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"status\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[23,0,[\\\"reloadSearchTask\\\"]],[24,[\\\"filters\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\",\\\"@tagName\\\"],[[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],[23,0,[\\\"isDraggable\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,2,[\\\"_data\\\",\\\"index\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDrop\\\"]],[23,2,[\\\"_data\\\",\\\"index\\\"]],[23,5,[]],[23,0,[\\\"drop\\\"]]],null],\\\"tr\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@onDragStart\\\",\\\"@data\\\"],[[23,0,[\\\"isDraggable\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,2,[\\\"_data\\\",\\\"index\\\"]],[23,2,[]]],null],[23,2,[\\\"_data\\\",\\\"index\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"sum\\\",[[23,2,[\\\"displayIndex\\\"]],1],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowUploads\\\",\\\"@model\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\"],[[23,6,[]],false,false,false,[23,2,[]],true,\\\"news\\\",[23,2,[\\\"_data\\\",\\\"_key\\\"]],\\\"/-/scale_crop/64x64/smart\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"store-items__advanced-toggler-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"toggleIsOn\\\"],[\\\"fas fa-images\\\",true,true,[23,0,[\\\"showUploadsRow\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"description\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-tags\\\"]],\\\"_data._key\\\",false,[23,2,[\\\"_data\\\",\\\"tags\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@tagClassNames\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,2,[\\\"statusClass\\\"]],[23,2,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",[28,\\\"fn\\\",[[23,4,[]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-pen\\\",[28,\\\"fn\\\",[[23,3,[]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,1,[\\\"onSelect\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,2,[\\\"isSelected\\\"]],[28,\\\"fn\\\",[[23,1,[\\\"onSelect\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"onRemove\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,1,[\\\"isSelectedByTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-trash\\\",[23,1,[\\\"isReadonly\\\"]],[28,\\\"fn\\\",[[23,1,[\\\"onRemove\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"store-items__advanced-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-row\\\",[[12,\\\"class\\\",\\\"has-text-centered\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\"],[[23,1,[\\\"tab\\\"]],true,[23,2,[]],[23,1,[\\\"adapterName\\\"]],[23,2,[\\\"_data\\\",\\\"_key\\\"]],false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/news/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/notifications/alert/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class NotificationsAlertComponent extends _component.default {}\n  _exports.default = NotificationsAlertComponent;\n});","define(\"client/pods/components/notifications/alert/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lU8IvzCV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"shop\\\",\\\"shop\\\",\\\"@alert\\\",\\\"&attrs\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"notification-item\\\"],[13,4],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"type\\\"]],\\\"e-invoice\\\"],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"timestamp\\\"],[\\\"invoices\\\",[23,3,[\\\"timestampZ\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"extensions/apps/tw/e-invoices/print-all-btn/results\\\",[],[[\\\"@successfulCount\\\",\\\"@attentionRequiredCount\\\",\\\"@unsuccessfulCount\\\",\\\"@pendingCount\\\",\\\"@queuedCount\\\"],[[23,3,[\\\"summaryData\\\",\\\"successfulCount\\\"]],[23,3,[\\\"summaryData\\\",\\\"attentionRequiredCount\\\"]],[23,3,[\\\"summaryData\\\",\\\"unsuccessfulCount\\\"]],[23,3,[\\\"summaryData\\\",\\\"pendingCount\\\"]],[23,3,[\\\"queuedCount\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"type\\\"]],\\\"campaigns-sync\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"startMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[[23,3,[\\\"startMessage\\\"]]],[[\\\"translate\\\"],[[23,3,[\\\"startMessageTranslate\\\"]]]]],false],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"master campaign\\\"],null],false],[0,\\\":\\\\n        \\\"],[1,[23,3,[\\\"master\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"campaigns finished syncing\\\"],null],false],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"master campaign\\\"],null],false],[0,\\\":\\\\n        \\\"],[1,[23,3,[\\\"master\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"error\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],false],[0,\\\"\\\\n\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,3,[\\\"error\\\"]]],[[\\\"translate\\\"],[[23,3,[\\\"errorTranslate\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[23,3,[\\\"successful\\\",\\\"count\\\"]]],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"successful\\\",\\\"shops\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[1,[23,2,[\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[23,3,[\\\"unsuccessful\\\",\\\"count\\\"]]],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"unsuccessful\\\",\\\"shops\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"p\\\",true],[8],[1,[23,1,[\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"timestamp\\\"],[\\\"notification\\\",[23,3,[\\\"timestampZ\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"dateTime\\\",[[23,3,[\\\"timestampZ\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[1,[23,3,[\\\"message\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/notifications/alert/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/notifications/bell-button/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 NotificationsBellButtonComponent = _exports.default = (_dec = Ember.inject.service(), _dec2 = Ember.inject.service('notifications'), _dec3 = Ember._action, _class = class NotificationsBellButtonComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"notificationsService\", _descriptor2, this);\n      this.crud.addLists(this, ['application/change-logs']);\n    }\n    afterLoadLists() {\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const changeLogs = this.crud.lists['application-change-logs'] || [];\n      yield this.notificationsService.setupNotificationsManagerTask.perform();\n      this.notificationsService.registerResource({\n        resource: 'changeLogs',\n        notifications: changeLogs\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notificationsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterLoadLists\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"afterLoadLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/notifications/bell-button/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nBqH6xZr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isNotificationsVisible\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn\\\",[],[[\\\"@badge\\\",\\\"@icon\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@onSubmit\\\",\\\"@toggleIsOn\\\"],[[23,0,[\\\"notificationsService\\\",\\\"unreadCount\\\"]],\\\"fas fa-bell\\\",true,true,[28,\\\"fn\\\",[[23,0,[\\\"notificationsService\\\",\\\"markAllBroadcastAlertsAsRead\\\"]]],null],[23,1,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"updates/update-btn\\\",[],[[\\\"@isBtnOnly\\\"],[true]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/notifications/bell-button/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/notifications/bulk-split-alert/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const BULK_SPLIT_STATUS_QUEUED = 'queued';\n  const BULK_SPLIT_STATUS_DONE = 'done';\n\n  // $dark is a mid gray in _bulma-presets.scss\n  const STATUS_BADGE_WORKING = 'is-dark';\n  const STATUS_BADGE_ALL_SUCCESSFUL = 'is-success';\n  const STATUS_BADGE_PARTLY_SUCCESSFUL = 'is-warning';\n  const STATUS_BADGE_UNSUCCESSFUL = 'is-danger';\n  class NotificationsBulkSplitAlertComponent extends _component.default {\n    /**\n     * The alert that closed this alert's batch. The API pushes it as a separate\n     * alert with the same batchId once the batch is done or stopped.\n     *\n     * @returns {Object|undefined}\n     */\n    get outcomeAlert() {\n      // reading '[]' reruns this getter when the outcome alert is pushed\n      const alerts = Ember.get(this.args, 'alerts.[]') || [];\n      const batchId = this.args.alert?.batchId;\n      return R.find(alert => {\n        return alert?.type === 'bulk-split' && alert?.batchId === batchId && alert?.status !== BULK_SPLIT_STATUS_QUEUED;\n      })(alerts);\n    }\n    get statusBadgeClassNames() {\n      const alert = this.args.alert;\n      if (alert?.status !== BULK_SPLIT_STATUS_QUEUED) {\n        return this.getOutcomeStatusBadgeClassNames(alert);\n      }\n      const outcomeAlert = this.outcomeAlert;\n      if (!outcomeAlert) {\n        return STATUS_BADGE_WORKING;\n      }\n      const hasErrors = outcomeAlert.status !== BULK_SPLIT_STATUS_DONE || (outcomeAlert.unsuccessfulCount || 0) > 0;\n      return hasErrors ? STATUS_BADGE_UNSUCCESSFUL : STATUS_BADGE_ALL_SUCCESSFUL;\n    }\n\n    /**\n     * Green when every order was split, yellow when some were not, red when none\n     * were or the batch stopped.\n     *\n     * @param {Object} outcomeAlert - a done or stopped bulk-split alert\n     * @returns {String}\n     */\n    getOutcomeStatusBadgeClassNames(outcomeAlert) {\n      if (outcomeAlert?.status !== BULK_SPLIT_STATUS_DONE) {\n        return STATUS_BADGE_UNSUCCESSFUL;\n      }\n      const successfulCount = outcomeAlert.successfulCount || 0;\n      const unsuccessfulCount = outcomeAlert.unsuccessfulCount || 0;\n      if (unsuccessfulCount === 0) {\n        return STATUS_BADGE_ALL_SUCCESSFUL;\n      }\n      if (successfulCount === 0) {\n        return STATUS_BADGE_UNSUCCESSFUL;\n      }\n      return STATUS_BADGE_PARTLY_SUCCESSFUL;\n    }\n  }\n  _exports.default = NotificationsBulkSplitAlertComponent;\n});","define(\"client/pods/components/notifications/bulk-split-alert/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eRtelHuT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"accordianContainer\\\",\\\"@alert\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"layouts-section\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@toggleIsOn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@statusBadgeClassNames\\\"],[[23,0,[\\\"statusBadgeClassNames\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"status\\\"]],\\\"queued\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"bulk split queued\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"status\\\"]],\\\"done\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"bulk split finished\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-exclamation-circle\\\"]]],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"bulk split stopped\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\" (\\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"timestampZ\\\"]]],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"dispatch status\\\"],null],false],[0,\\\":\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"nextDispatchProcessLabel\\\"]]],[[\\\"translate\\\"],[[23,2,[\\\"nextDispatchProcessLabelTranslate\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,2,[\\\"status\\\"]],\\\"queued\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[23,2,[\\\"successfulCount\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"number\\\",[[23,2,[\\\"unsuccessfulCount\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/notifications/bulk-split-alert/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/notifications/container/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 NotificationsContainerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('notifications'), _dec4 = Ember._action, _class = class NotificationsContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"updates\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notificationsService\", _descriptor3, this);\n      this.crud.addLists(this, ['notifications/statuses']);\n    }\n    willDestroy() {\n      if (!this?.isDestroyed) {\n        setTimeout(() => {\n          // this delay is needed to ensure the notifications are updated first before triggering the updateSynce\n          this.notificationsService.notificationsManager.updateSynced();\n        }, 3000);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"updates\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"notificationsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"willDestroy\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroy\"), _class.prototype), _class);\n});","define(\"client/pods/components/notifications/container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vz6j7NoU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"changeLogs\\\",\\\"accordianContainer\\\",\\\"alert\\\"],\\\"statements\\\":[[5,\\\"updates/update-btn\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-section\\\"],[3,\\\"will-destroy\\\",[[28,\\\"fn\\\",[[23,0,[\\\"willDestroy\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"notificationsService\\\",\\\"notificationsManager\\\",\\\"_data\\\",\\\"alerts\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"type\\\"]],\\\"bulk-split\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"notifications/bulk-split-alert\\\",[],[[\\\"@alert\\\",\\\"@alerts\\\"],[[23,3,[]],[23,0,[\\\"notificationsService\\\",\\\"notificationsManager\\\",\\\"_data\\\",\\\"alerts\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"notifications/alert\\\",[],[[\\\"@alert\\\"],[[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[3]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"application-change-logs\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"layouts-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"notification\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"notifications/display\\\",[],[[\\\"@resource\\\",\\\"@notification\\\"],[[28,\\\"concat\\\",[\\\"changeLogs-\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]]],null],[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@list\\\",\\\"@status\\\",\\\"@defaultStatus\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"notifications-statuses\\\"]],[23,1,[\\\"_data\\\",\\\"notificationStatus\\\"]],\\\"unread\\\"]]],[0,\\\"\\\\n\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"notification\\\"],null],false],[0,\\\": \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\" (\\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-padding-left-25\\\"],[8],[1,[28,\\\"html-safe\\\",[[23,1,[\\\"_data\\\",\\\"publicReleaseNotes\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"changeLogs\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/accordian-container\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@toggleIsOn\\\"],[false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[\\\"@container\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@list\\\",\\\"@status\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"notifications-statuses\\\"]],[23,1,[\\\"_data\\\",\\\"notificationStatus\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"version\\\"],null],false],[0,\\\": \\\"],[1,[23,1,[\\\"_data\\\",\\\"version\\\"]],false],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\" (\\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"      \\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\\n        \\\"],[5,\\\"elements/accordian-dialog\\\",[],[[\\\"@container\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"notifications/display\\\",[],[[\\\"@resource\\\",\\\"@notification\\\",\\\"@markAsReadLocallyOnDestroy\\\"],[[28,\\\"concat\\\",[\\\"changeLogs-\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]]],null],[23,1,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"froala\\\",[],[[\\\"@isReadonly\\\",\\\"@content\\\"],[true,[23,1,[\\\"_data\\\",\\\"publicReleaseNotes\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/notifications/container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/notifications/display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 NotificationsDisplayComponent = _exports.default = (_dec = Ember.inject.service('notifications'), _class = class NotificationsDisplayComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notificationsService\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notificationsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/notifications/display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hNmvUVB8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@notification\\\",\\\"@resource\\\"],\\\"statements\\\":[[14,1],[0,\\\"\\\\n\\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"notificationsService\\\",\\\"markAsReadTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resource\\\",\\\"notification\\\"],[[23,3,[]],[23,2,[]]]]]],null]]],[3,\\\"will-destroy\\\",[[28,\\\"fn\\\",[[23,0,[\\\"notificationsService\\\",\\\"markAsReadLocallyOnDestroy\\\"]],[23,2,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/notifications/display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/open-graph/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 OpenGraphComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _class = class OpenGraphComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['websites/lists/link-thumbnail-image-ratio']);\n    }\n    removeOpenGraphImage() {\n      this.args.model.set('_data.openGraph.imageUuid', '');\n    }\n    onOpenGraphImageChange(onCloseDialogAction, options, uploadsModel) {\n      const imageUuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      const width = R.pathOr(0, [0, '_data', 'imageInfo', 'width'])(uploadsModel);\n      const height = R.pathOr(0, [0, '_data', 'imageInfo', 'height'])(uploadsModel);\n      const openGraph = R.pipe(R.pathOr({}, ['args', 'model', '_data', 'openGraph']), R.mergeLeft({\n        imageUuid,\n        width,\n        height\n      }))(this);\n      this.args.model.setData('openGraph', openGraph);\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"removeOpenGraphImage\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"removeOpenGraphImage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onOpenGraphImageChange\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onOpenGraphImageChange\"), _class.prototype), _class);\n});","define(\"client/pods/components/open-graph/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5dnzI7WL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isReadOnly\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,3,[]],\\\"link title\\\",[23,4,[]],\\\"openGraphTitle\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,2,[]],[23,1,[\\\"_data\\\",\\\"openGraph\\\",\\\"title\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,3,[]],\\\"link description\\\",[23,4,[]],\\\"openGraphDescription\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,1,[\\\"_data\\\",\\\"description\\\"]],[23,2,[]],[23,1,[\\\"_data\\\",\\\"openGraph\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" OpenGraph \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,3,[]],\\\"link thumbnail image\\\",[23,4,[]],\\\"openGraphImage\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"openGraph\\\",\\\"imageUuid\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-wrapper\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card slider__products-card\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-image full-width full-height\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@imageClassNames\\\",\\\"@height\\\",\\\"@image\\\",\\\"@transform\\\",\\\"@width\\\"],[[23,1,[\\\"openGraphImageData\\\",\\\"classNames\\\"]],[23,1,[\\\"openGraphImageData\\\",\\\"height\\\"]],[23,1,[\\\"_data\\\",\\\"openGraph\\\",\\\"imageUuid\\\"]],[23,1,[\\\"openGraphImageData\\\",\\\"transform\\\"]],[23,1,[\\\"openGraphImageData\\\",\\\"width\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-medium bigordr-slider-image-delete-btn\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeOpenGraphImage\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"files-manager\\\",[],[[\\\"@allowSingleUpload\\\",\\\"@allowMultipleItems\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@hideFilesGallery\\\",\\\"@model\\\",\\\"@onSubmit\\\",\\\"@resetSubTab\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@tab\\\",\\\"@isReadonly\\\"],[true,false,[28,\\\"and\\\",[[28,\\\"not\\\",[[23,5,[]]],null],[28,\\\"is-empty\\\",[[23,1,[\\\"_data\\\",\\\"openGraph\\\",\\\"imageUuid\\\"]]],null]],null],true,true,[23,1,[]],[23,0,[\\\"onOpenGraphImageChange\\\"]],true,\\\"websites\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]],true,[23,6,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/open-graph/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/open-hours/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 OpenHoursComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._action, _dec4 = Ember._action, _class = class OpenHoursComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n    }\n    didInsert() {\n      this.crud.addLists(this, ['date/lists/hours']);\n    }\n    get weekdays() {\n      return this.date.getWeekdays();\n    }\n    copyOpeningHours(copyTo) {\n      const copyToIndex = this.weekdays.indexOf(copyTo) - 1;\n      const copyFrom = this.weekdays[copyToIndex];\n      const open = R.view(R.lensPath(['args', 'model', '_data', 'openHours', copyFrom, 'open']))(this);\n      const close = R.view(R.lensPath(['args', 'model', '_data', 'openHours', copyFrom, 'close']))(this);\n      if (open !== 'none' && close !== 'none') {\n        this.args.model.set(`_data.openHours.${copyTo}.open`, open);\n        this.args.model.set(`_data.openHours.${copyTo}.close`, close);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyOpeningHours\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"copyOpeningHours\"), _class.prototype), _class);\n});","define(\"client/pods/components/open-hours/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nqzF+LR6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"day\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@formInitData\\\",\\\"@isWizard\\\",\\\"@allowCopyTime\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"companyOpeningHours\\\",[23,4,[]],[23,0,[\\\"errors\\\"]],\\\"has break time\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"openHours\\\",\\\"hasBreakTime\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"sortedOpenHours\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isWizard\\\",\\\"@label\\\"],[\\\"companyOpeningHours\\\",[23,4,[]],[23,0,[\\\"errors\\\"]],[23,5,[]],[23,1,[\\\"label\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"date-open-hours\\\",[23,2,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"date-lists-hours\\\"]],[23,1,[\\\"toggleHasOpeningHours\\\"]],false,[23,1,[\\\"_data\\\",\\\"open\\\"]],[29,[\\\"openHours.\\\",[23,1,[\\\"dayName\\\"]],\\\".open\\\"]]]]],[0,\\\"\\\\n    -\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"date-open-hours\\\",[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,1,[\\\"hasOpeningHours\\\"]]],null],[23,2,[]]],null],true,false],null],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"date-lists-hours\\\"]],false,[23,1,[\\\"_data\\\",\\\"close\\\"]],[29,[\\\"openHours.\\\",[23,1,[\\\"dayName\\\"]],\\\".close\\\"]]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"openHours\\\",\\\"hasBreakTime\\\"]]],null,{\\\"statements\\\":[[0,\\\"    |\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"date-open-hours\\\",[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,1,[\\\"hasOpeningHours\\\"]]],null],[23,2,[]]],null],true,false],null],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"date-lists-hours\\\"]],false,[23,1,[\\\"_data\\\",\\\"openAfterBreak\\\"]],[29,[\\\"openHours.\\\",[23,1,[\\\"dayName\\\"]],\\\".openAfterBreak\\\"]]]]],[0,\\\"\\\\n    -\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"date-open-hours\\\",[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,1,[\\\"hasOpeningHours\\\"]]],null],[23,2,[]]],null],true,false],null],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"date-lists-hours\\\"]],false,[23,1,[\\\"_data\\\",\\\"closeAfterBreak\\\"]],[29,[\\\"openHours.\\\",[23,1,[\\\"dayName\\\"]],\\\".closeAfterBreak\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"name\\\"]],\\\"monday\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[23,2,[]],\\\"far fa-copy\\\",true,[28,\\\"fn\\\",[[23,1,[\\\"copyOpeningHours\\\"]],[23,3,[\\\"sortedOpenHours\\\"]]],null],\\\"copy from above\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"didInsert\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/open-hours/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/change-logs-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 OperatorChangeLogsChangeLogsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class OperatorChangeLogsChangeLogsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"updates\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isVersionNotAllowed\", _descriptor3, this);\n      this.crud.addLists(this, ['publicStatuses', 'operator/change-logs/lists/types']);\n      if (this.args.isNew) {\n        const model = this.args.model;\n        model.setData('version', this.updates.version);\n      }\n    }\n    checkIsVersionNotAllowed() {\n      const model = this.args.model;\n      this.isVersionNotAllowed = this.updates.checkIfIsNewerThanCurrentVersion(model?._data?.version);\n    }\n    get isReadonly() {\n      if (this.args.isNew) {\n        return false;\n      }\n      if (this.args.isEditing) {\n        return false;\n      }\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"updates\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isVersionNotAllowed\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"checkIsVersionNotAllowed\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"checkIsVersionNotAllowed\"), _class.prototype), _class);\n});","define(\"client/pods/components/operator/change-logs/change-logs-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jFMBZgd4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@onEdit\\\",\\\"@isRunning\\\",\\\"@onCancel\\\",\\\"@onSaveTask\\\",\\\"@onDash\\\",\\\"@adapterName\\\",\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isNew\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-container\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,1,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"details\\\",\\\"operatorChangeLogs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"type\\\",\\\"operatorChangeLogs\\\",\\\"type\\\",[23,1,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"operator-change-logs-lists-types\\\"]],[23,1,[]],\\\"_data.type\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"name\\\",\\\"operatorChangeLogs\\\",true,\\\"name\\\",[23,1,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"isReadonly\\\"]],[23,1,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dateZ\\\",\\\"operatorChangeLogs\\\",\\\"date\\\",[23,1,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateZ\\\",[23,1,[]],[23,1,[\\\"_data\\\",\\\"dateZ\\\"]],[23,0,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"privateNotes\\\",\\\"operatorChangeLogs\\\",\\\"private notes\\\",[23,1,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@resource\\\",\\\"@options\\\"],[[23,1,[\\\"_data\\\",\\\"privateNotes\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,8,[]],true,\\\"operator\\\",[28,\\\"hash\\\",null,[[\\\"height\\\"],[300]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"publicReleaseNotes\\\",\\\"operatorChangeLogs\\\",\\\"public release notes\\\",[23,1,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@resource\\\",\\\"@options\\\"],[[23,1,[\\\"_data\\\",\\\"publicReleaseNotes\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,8,[]],true,\\\"operator\\\",[28,\\\"hash\\\",null,[[\\\"height\\\"],[300]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"changeLogs\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"version\\\",\\\"operatorChangeLogs\\\",\\\"version\\\",[23,1,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\"],[true,[23,0,[\\\"isReadonly\\\"]],[23,1,[\\\"_data\\\",\\\"version\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"checkIsVersionNotAllowed\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"forceUpdate\\\",\\\"operatorChangeLogs\\\",\\\"force user to update to current version\\\",[23,1,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,1,[\\\"_data\\\",\\\"forceUpdate\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"deployed\\\",\\\"operatorChangeLogs\\\",\\\"changes_deployed\\\",[23,1,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,1,[\\\"_data\\\",\\\"deployed\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"status\\\",\\\"operatorChangeLogs\\\",\\\"status\\\",[23,1,[]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"publicStatuses\\\"]],[23,1,[]],\\\"_data.status\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@messageClassNames\\\",\\\"@titleSuffix\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,0,[\\\"isReadonly\\\"]],\\\"has-text-danger\\\",[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[[23,7,[]],[23,1,[]],true,[23,6,[]]]]]],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"overview\\\",[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,10,[]],[23,9,[]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,0,[\\\"isReadonly\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,3,[]],[28,\\\"or\\\",[[23,0,[\\\"isVersionNotAllowed\\\"]],[23,0,[\\\"isReadonly\\\"]]],null],[23,5,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,2,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/operator/change-logs/change-logs-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/panels-dash/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    search: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    adapterName: 'operator/change-logs',\n    filtersAdapterName: 'operator/change-logs/filters',\n    init() {\n      this._super(...arguments);\n      this.tabsManager.setHeader(this.tabParent, '');\n      this.crud.addLists(this, ['operator/change-logs/lists/types', 'publicStatuses']);\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xreaJRw5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@tab\\\",\\\"@filters\\\",\\\"@onPaginationTask\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@errors\\\",\\\"@filters\\\",\\\"@isDisplay\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onResetSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableClassNames\\\",\\\"@tableViewOptions\\\"],[\\\"operator/change-logs/table-view/detail-row\\\",[23,1,[]],[23,0,[\\\"filters\\\"]],true,[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,0,[\\\"filters\\\"]],true]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[23,2,[]],[23,3,[]],[23,2,[]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,4,[]],\\\"operator-change-logs-dash\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\"],[\\\"operator/change-logs\\\"]]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\"],[[23,5,[]],[23,5,[\\\"results\\\"]],[23,6,[]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/operator/change-logs/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/panels-display/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    adapterName: 'operator/change-logs',\n    init() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const tab = this.tab;\n      const model = tab?.model || {};\n      this.set('model', model);\n      this.tabsManager.setHeader(this.tabParent, model.getData('name'));\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AjTUMsmw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onEdit\\\",\\\"@onDash\\\",\\\"@onCancel\\\",\\\"@tab\\\",\\\"@onAfterUpdateRecordTask\\\"],\\\"statements\\\":[[5,\\\"operator/change-logs/change-logs-editor\\\",[],[[\\\"@adapterName\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isDisplay\\\",\\\"@onEdit\\\",\\\"@onDash\\\",\\\"@onCancel\\\",\\\"@onSaveTask\\\",\\\"@tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"model\\\"]],false,false,true,[23,1,[]],[23,2,[]],[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,5,[]],[23,4,[]]]]]],null],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/operator/change-logs/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/panels-edit/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    adapterName: 'operator/change-logs',\n    init() {\n      this.setup();\n      this._super(...arguments);\n    },\n    setup() {\n      const tab = this.tab;\n      const model = tab.model;\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model,\n        tab\n      });\n      this.set('dirty', dirty);\n      this.set('model', model);\n      this.tabsManager.setHeader(this.tabParent, dirty.getData('name'));\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kSmayyzl\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@tab\\\",\\\"@onAfterUpdateRecordTask\\\"],\\\"statements\\\":[[5,\\\"operator/change-logs/change-logs-editor\\\",[],[[\\\"@adapterName\\\",\\\"@isEditing\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onSaveTask\\\",\\\"@tab\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"model\\\"]],[23,1,[]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,4,[]],[23,3,[]]]]]],null],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/operator/change-logs/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/panels-new/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    adapterName: 'operator/change-logs',\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n      this.tabsManager.setHeader(this.tabParent, this.intl.t('new'));\n    },\n    setup() {\n      if (!this.model) {\n        const data = {};\n\n        // setup new products model\n        const model = this.crud.setupNewRecord?.({\n          adapterName: this.adapterName,\n          data\n        });\n        this.set('model', model);\n      }\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VPxCcZh1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@tab\\\",\\\"@onAfterCreateRecordTask\\\"],\\\"statements\\\":[[5,\\\"operator/change-logs/change-logs-editor\\\",[],[[\\\"@adapterName\\\",\\\"@isNew\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onSaveTask\\\",\\\"@tab\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"model\\\"]],[23,1,[]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,4,[]],[23,3,[]]]]]],null],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/operator/change-logs/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/search-filters/component\", [\"exports\", \"client/pods/mixins/products-list-by\", \"client/pods/mixins/crud\"], function (_exports, _productsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _productsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this.crud.addLists(this, ['products/lists/filters/search', 'products/lists/filters/sort', 'products/lists/filters/status', 'products/lists/types', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lomdAPUY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"byLatest\\\",\\\"filters\\\"],[true,[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[false,true,\\\"only show variant parents\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"hideVariantChildrenInProductsSearch\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.types\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.statuses\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/operator/change-logs/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/search-results-item/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this.crud.addLists(this, ['products/lists/types', 'products/lists/tracking', 'statuses']);\n      this._super(...arguments);\n    },\n    trackingTagLabel: Ember.computed(function () {\n      return this.intl.t('tracking') + ': ';\n    }),\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/operator/change-logs/search-results-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aDzHlzE9\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"list-results__table\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"list-results__table-thumb\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\"],[[24,[\\\"result\\\",\\\"defaultImage\\\"]],\\\"/-/resize/40x\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"tagClassNames\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"statusTagClassName\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/operator/change-logs/search-results-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/tab-container/component\", [\"exports\", \"ember-concurrency\", \"client/utils/nventor\"], function (_exports, _emberConcurrency, _nventor) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    settingsService: Ember.inject.service('settings'),\n    results: null,\n    resultsToggle: false,\n    showFilters: true,\n    adapterName: 'operator/change-logs',\n    filtersAdapterName: 'operator/change-logs/filters',\n    init() {\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      this.crud.addLists(this, ['operator/change-logs/lists/menu', 'publicStatuses']);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.dash();\n    },\n    dash(model, results) {\n      this.set('showResults', false);\n      const tab = this.tab;\n      if (_nventor.default.isNilOrEmpty(results)) {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        filters.setData('query', '');\n        results = this.crud.searchRecordsTask.perform({\n          adapterName,\n          filters\n        });\n        this.set('results', results);\n      }\n      const subTabOptions = {\n        component: 'operator/change-logs/panels-dash'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    display(model, {\n      tabOptions\n    } = {}) {\n      const browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;\n      if (browserWidth < 1300) {\n        this.set('showResults', false);\n      }\n      const tab = this.tab;\n      const panelOptions = {\n        component: 'operator/change-logs/panels-display',\n        model: model\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions, tabOptions);\n    },\n    new(subTabOptions) {\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    toggleResults(results) {\n      const subTab = this.tabsManager.getActiveSubTab(this.tab);\n      if (subTab?.component === 'operator/change-logs/panels-dash') {\n        return results;\n      }\n      Ember.set(this, 'showResults', true);\n      return results;\n    },\n    edit(model, {\n      tabOptions\n    } = {}) {\n      this.set('showFilters', false);\n      const tab = this.tab;\n      const panelOptions = {\n        component: 'operator/change-logs/panels-edit',\n        model: model\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions, tabOptions);\n    },\n    actions: {\n      dash() {\n        this.dash();\n      },\n      display(model, {\n        tabOptions\n      } = {}) {\n        if (model) {\n          this.display(...arguments);\n        } else {\n          // if no model then display dash (when model has been deleted)\n          this.dash();\n        }\n      },\n      new(subTabOptions) {\n        // create tab within product tab\n        this.new(subTabOptions);\n      },\n      afterSearch(dashComponent, results) {\n        const tab = this.tab;\n        if (!_nventor.default.isNilOrEmpty(results)) {\n          if (this.tabsManager.isActiveSubTab(tab, {\n            component: dashComponent\n          })) {\n            return this.dash({}, results);\n          }\n        }\n        return this.set('showResults', true);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"dash\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"dash\"), _obj), _applyDecoratedDescriptor(_obj, \"display\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"display\"), _obj), _applyDecoratedDescriptor(_obj, \"new\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"new\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleResults\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"toggleResults\"), _obj), _applyDecoratedDescriptor(_obj, \"edit\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"edit\"), _obj), _obj));\n});","define(\"client/pods/components/operator/change-logs/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IXFgsRuW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterSearch\\\",\\\"operator/change-logs/panels-dash\\\"],null],\\\"change logs\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"change-logs\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"operator-change-logs-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"operator/change-logs/search-results-item\\\",[],[[\\\"@result\\\",\\\"@query\\\"],[[23,2,[]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,0,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"filters\\\",\\\"newModel\\\",\\\"onAfterCreateRecordTask\\\",\\\"onAfterUpdateRecordTask\\\",\\\"onCancel\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onSearchTask\\\",\\\"results\\\",\\\"tab\\\",\\\"tabParent\\\"],[[24,[\\\"filters\\\"]],[23,0,[\\\"newModel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dash\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dash\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"edit\\\"]]],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,1,[]],[23,0,[\\\"tab\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/operator/change-logs/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/operator/change-logs/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 OperatorChangeLogsTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _class = class OperatorChangeLogsTableViewDetailRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"showMoreRow\", _descriptor2, this);\n      this.crud.addLists(this, ['operator/change-logs/lists/types', 'publicStatuses']);\n    }\n    get typeLabel() {\n      const types = this.crud.lists['operator-change-logs-lists-types'] || [];\n      const model = this.args.model;\n      const type = model?._data?.type;\n      const found = R.find(R.pathEq(['_data', 'value'], type))(types);\n      return found?._data?.label || '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showMoreRow\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n});","define(\"client/pods/components/operator/change-logs/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AZiy7RyQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@onEdit\\\",\\\"@onDisplay\\\",\\\"@query\\\",\\\"@isDetailRow\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--small has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--large\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"type\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--large\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--date-small\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--small\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"version\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--small\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"force update\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--small\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"changes_deployed\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@list\\\",\\\"@status\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"publicStatuses\\\"]],[23,1,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"typeLabel\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,4,[]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"changeLogs\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"version\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"changeLogs\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"forceUpdate\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],\\\"changeLogs\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"deployed\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,true,[23,0,[\\\"showMoreRow\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showMoreRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"private notes\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"public release notes\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"froala\\\",[],[[\\\"@isReadonly\\\",\\\"@content\\\"],[true,[23,1,[\\\"_data\\\",\\\"privateNotes\\\"]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"froala\\\",[],[[\\\"@isReadonly\\\",\\\"@content\\\"],[true,[23,1,[\\\"_data\\\",\\\"publicReleaseNotes\\\"]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",\\\"view\\\",[28,\\\"fn\\\",[[23,3,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,2,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group new-table-view__tr-group--separator\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/operator/change-logs/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payment-methods-editor/component\", [\"exports\", \"client/mixins/crud\", \"ramda\"], function (_exports, _crud, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    adapterName: 'paymentMethods',\n    init() {\n      this._super(...arguments);\n      const isEditing = this.isEditing;\n      if (isEditing) {\n        const dirty = this.setupDirty();\n        this.set('model', dirty);\n      } else {\n        const model = this.setupNewRecord();\n        this.set('model', model);\n      }\n    },\n    defaultPaymentMethods: Ember.computed('crud.lists.paymentMethods.[]', 'crud.lists.paymentMethods.@each.synced', 'addItemOptions.docName', function () {\n      const docName = this?.addItemOptions?.docName || '';\n      const paymentMethods = this?.crud?.lists?.paymentMethods || this?.crud?.lists['payment-methods'] || [];\n      const defaultPaymentMethods = R.filter(R.hasPath(['_data', 'isNotEditable']))(paymentMethods);\n      if (!R.equals(docName, 'consignments') && !R.equals(docName, 'consignments-returns')) {\n        return defaultPaymentMethods;\n      }\n      return R.filter(paymentMethod => {\n        const value = paymentMethod?._data?.value || '';\n        if (R.equals(value, 'consignment')) {\n          return true;\n        }\n        return false;\n      })(defaultPaymentMethods);\n    }),\n    setHasPaymentTerms(paymentMethod) {\n      const hasPaymentTerms = R.pathOr(false, ['_data', 'hasPaymentTerms'])(paymentMethod);\n      const model = this.model;\n      model.setData('hasPaymentTerms', hasPaymentTerms);\n      model.setData('translate', false);\n    },\n    afterCreateRecordTask(model) {\n      this.onAddItem(model);\n      this.onCloseDialogAction();\n    },\n    afterReplaceRecordTask(model) {\n      this.onUpdateItem(model);\n      this.onCloseDialogAction?.();\n    },\n    afterRemoveRecordTask() {\n      this.onRemoveItem(this.model);\n    },\n    actions: {\n      cancel(model) {\n        if (this.isEditing) {\n          this.cancelEditing({\n            dirty: model\n          });\n          this.set('showEditor', false);\n        } else {\n          this.onCloseDialogAction();\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setHasPaymentTerms\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setHasPaymentTerms\"), _obj), _applyDecoratedDescriptor(_obj, \"afterCreateRecordTask\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"afterCreateRecordTask\"), _obj), _applyDecoratedDescriptor(_obj, \"afterReplaceRecordTask\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"afterReplaceRecordTask\"), _obj), _applyDecoratedDescriptor(_obj, \"afterRemoveRecordTask\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"afterRemoveRecordTask\"), _obj), _obj));\n});","define(\"client/pods/components/payment-methods-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/cL3zUSu\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"type\\\",[24,[\\\"errors\\\"]],\\\"label\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"modalClassNames\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"label\\\",\\\"onSelect\\\"],[true,true,[23,0,[\\\"defaultPaymentMethods\\\"]],\\\"modal-container--top-10\\\",\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"value\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setHasPaymentTerms\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[\\\"label\\\",[24,[\\\"errors\\\"]],\\\"label\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"customLabel\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n  \\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],[28,\\\"perform\\\",[[24,[\\\"removeRecordTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payment-methods-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payment-terms-editor/component\", [\"exports\", \"client/mixins/crud\", \"ramda-extension\"], function (_exports, _crud, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    adapterName: 'paymentTerms',\n    init() {\n      this.crud.addLists(this, ['paymentTerms', 'paymentTerms/from', 'paymentTerms/end']);\n      this._super(...arguments);\n      if (this.isEditing) {\n        const dirty = this.setupDirty();\n        this.set('model', dirty);\n      } else {\n        const model = this.setupNewRecord({\n          data: {\n            months: 0,\n            days: 0,\n            from: this.get('constants.paymentTermsFrom.invoiceMonth'),\n            end: this.get('constants.paymentTermsEnd.exactDate')\n          }\n        });\n        this.set('model', model);\n      }\n    },\n    isExactDate: Ember.computed('model._data.end', function () {\n      const model = this.model;\n      if (model.getData('end') === this.get('constants.paymentTermsEnd.exactDate')) {\n        return true;\n      }\n      return false;\n    }),\n    isMinRequiredMet: Ember.computed('model._data.{from,end}', function () {\n      const minRequired = ['from', 'end'];\n      const model = this.model;\n      let met = true;\n      minRequired.forEach(function (required) {\n        if (Ember.isEmpty(model.getData(required))) {\n          met = false;\n        }\n      });\n      return met;\n    }),\n    _setDescription() {\n      const model = this.model;\n      const intl = this.intl;\n      let description = '';\n      const months = model.getDataInt('months');\n      if (months > 0) {\n        description = intl.t('months') + ': ' + months;\n      }\n      const days = model.getDataInt('days');\n      if (days > 0) {\n        if (months > 0) {\n          description = `${description}, `;\n        }\n        description = description + intl.t('days') + ': ' + days;\n      }\n      const fromList = R_.dotPath('crud.lists.paymentTerms-from')(this) || [];\n      const from = fromList.findBy('_data.value', model.getData('from'));\n      const endList = R_.dotPath('crud.lists.paymentTerms-end')(this) || [];\n      const end = endList.findBy('_data.value', model.getData('end'));\n      if (description) {\n        description = description + '. ';\n      }\n      description = description + intl.t('from') + ': ' + intl.t(from.getData('label')) + '. ';\n      description = description + intl.t('end') + ': ' + intl.t(end.getData('label')) + '.';\n      model.setData('label', description);\n    },\n    // autoSetDescription: Ember.observer('model._data.months', 'model._data.days', 'model._data.from', function () {\n    //\n    //   this._setDescription();\n    // }),\n\n    beforeCreateRecord(model) {\n      const months = model.getDataInt('months');\n      model.setData('months', months);\n      const days = model.getDataInt('days');\n      model.setData('days', days);\n      if (!model.getData('label')) {\n        this._setDescription();\n      }\n      return model;\n    },\n    afterCreateRecordTask(model) {\n      this.onAddItem(model);\n      this.onCloseDialogAction();\n    },\n    beforeReplaceRecord(model) {\n      const months = model.getDataInt('months');\n      model.setData('months', months);\n      const days = model.getDataInt('days');\n      model.setData('days', days);\n      if (!model.getData('label')) {\n        this._setDescription();\n      }\n      return model;\n    },\n    afterReplaceRecordTask(model) {\n      this.onUpdateItem(model);\n      this.onCloseDialogAction?.();\n    },\n    afterRemoveRecordTask() {\n      this.onRemoveItem(this.model);\n    },\n    actions: {\n      cancel(model) {\n        if (this.isEditing) {\n          this.cancelEditing({\n            dirty: model\n          });\n          this.set('showEditor', false);\n        } else {\n          this.onCloseDialogAction();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/payment-terms-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zDH79bs8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"paymentTermsEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"paymentTerms\\\",[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,6,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"payment terms\\\",\\\"paymentTerms_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"description\\\",[22,\\\"errors\\\"],\\\"label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"start from\\\",[22,\\\"errors\\\"],\\\"from\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\"],[true,true,[24,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms-from\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"from\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"end on\\\",[22,\\\"errors\\\"],\\\"end\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\"],[true,true,[24,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentTerms-end\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"end\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"last day of invoice month\\\",[22,\\\"errors\\\"],\\\"lastDayOfMonth\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"lastDayOfMonth\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"months\\\",[22,\\\"errors\\\"],\\\"months\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"value\\\"],[true,[24,[\\\"model\\\",\\\"_data\\\",\\\"months\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isExactDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"days\\\",[22,\\\"errors\\\"],\\\"days\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"days\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],\\\"delete\\\",[28,\\\"perform\\\",[[24,[\\\"removeRecordTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",[24,[\\\"disabled\\\"]],[24,[\\\"replaceRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save\\\",[24,[\\\"disabled\\\"]],[24,[\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payment-terms-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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 PaymentsCardFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class PaymentsCardFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"recurringFilters\", _descriptor3, this);\n      this.crud.addLists(this, ['filters/count']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"recurringFilters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/payments/card/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Uyy+C3Dj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@listByTask\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isRunning\\\"],[\\\"_data.paymentTransactionDateZ\\\",[23,1,[]],[23,1,[\\\"_data\\\",\\\"paymentTransactionDateZ\\\"]],[28,\\\"or\\\",[[23,3,[]],[23,2,[\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"docNo\\\"]],[28,\\\"or\\\",[[23,3,[]],[23,2,[\\\"isRunning\\\"]]],null],true,[23,4,[]],\\\"#\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"ref\\\"]],[28,\\\"or\\\",[[23,3,[]],[23,2,[\\\"isRunning\\\"]]],null],true,[23,4,[]],[28,\\\"tt\\\",[\\\"ref\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"externalId\\\"]],[28,\\\"or\\\",[[23,3,[]],[23,2,[\\\"isRunning\\\"]]],null],true,[23,4,[]],[28,\\\"tt\\\",[\\\"cc_ref\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"contact\\\"]],[28,\\\"or\\\",[[23,3,[]],[23,2,[\\\"isRunning\\\"]]],null],true,[23,4,[]],[28,\\\"tt\\\",[\\\"contact\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"email\\\"]],[28,\\\"or\\\",[[23,3,[]],[23,2,[\\\"isRunning\\\"]]],null],true,[23,4,[]],[28,\\\"tt\\\",[\\\"email\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"telephone\\\"]],[28,\\\"or\\\",[[23,3,[]],[23,2,[\\\"isRunning\\\"]]],null],true,[23,4,[]],[28,\\\"tt\\\",[\\\"telephone\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,false,[23,1,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,1,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,5,[]],[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,1,[]],true]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,5,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/history/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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  // import * as R_ from 'ramda-extension'\n  let PaymentsCardHistoryComponent = _exports.default = (_dec = Ember.inject.service('payments'), _dec2 = Ember.inject.service('constants'), _dec3 = Ember._tracked, _class = class PaymentsCardHistoryComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"paymentsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"doc\", _descriptor3, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const docKey = this.args.docKey;\n      if (docKey) {\n        const response = yield this.paymentsService.fetchHistory.perform(docKey);\n        this.doc = response;\n      } else {\n        this.doc = this.args.model;\n      }\n    }\n    get hasTransactions() {\n      const payByLinkRequestsUnsuccessful = this.doc?._data?.payByLinkRequestsUnsuccessful || [];\n      const allRefundsTransactions = this.doc?._data?.allRefundsTransactions || [];\n      const inclTotal = this.doc?._data?.inclTotal;\n      if (!RA.isNilOrEmpty(allRefundsTransactions) || inclTotal || !RA.isNilOrEmpty(payByLinkRequestsUnsuccessful)) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"paymentsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"doc\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/payments/card/history/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LAj98ROT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"refund\\\",\\\"payByLinkRequestsUnsuccessful\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasTransactions\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"cc_ref\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"payByLinkRequestsUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,2,[\\\"paymentData\\\",\\\"bank_transaction_id\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"paymentData\\\",\\\"amount\\\"]]],null],false],[0,\\\" (\\\"],[1,[23,2,[\\\"paymentData\\\",\\\"currency\\\"]],false],[0,\\\")\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"response\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"cc_declined\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[\\\"cc_awaitingPayment\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"response\\\",\\\"hasError\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,2,[\\\"response\\\",\\\"response\\\",\\\"msg\\\"]],false],[0,\\\" (\\\"],[1,[23,2,[\\\"response\\\",\\\"response\\\",\\\"status\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"has3DS\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"responseVerify3dsUnsuccessful\\\",\\\"bank_result_msg\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,2,[\\\"responseVerify3dsUnsuccessful\\\",\\\"bank_result_msg\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"paymentMethodKey\\\"]],[23,0,[\\\"constantsService\\\",\\\"paymentMethods\\\",\\\"linePay\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"linePay_awaitingPayment\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"cc_awaiting_3ds_verification\\\"],null],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"externalId\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"cc_approved\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"allRefundsTransactions\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"task\\\",\\\"scheduledDateTimeZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"refundAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"refundRequested\\\"],null],\\\"is-warning\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"refunded\\\"],null],\\\"is-danger\\\"],null]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"cc_\\\",[23,1,[\\\"status\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"refundRequested\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-icon\\\",[[12,\\\"icon\\\",\\\"far fa-clock\\\"]],[[],[]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/no-data\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/history/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/panels-display/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/payments-list-by\", \"ember-concurrency\", \"ramda\", \"ramda-extension\"], function (_exports, _crud, _paymentsListBy, _emberConcurrency, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _paymentsListBy.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    exportService: Ember.inject.service('export'),\n    excel: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    intl: Ember.inject.service(),\n    adapterName: 'payments/card',\n    isExporting: false,\n    init() {\n      this._super(...arguments);\n      const period = this.get('tab.period');\n      this.set('period', period);\n      const nowZ = this.dateService.getMoment();\n      const monthNow = nowZ.month() + 1;\n      const yearNow = nowZ.year();\n      this.set('mm', monthNow);\n      this.set('yyyy', yearNow);\n      const filters = this.filters;\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      const paymentCreditCardStatus = [this.get('constants.paymentCreditCardStatus.approved'), this.get('constants.paymentCreditCardStatus.refundRequested'), this.get('constants.paymentCreditCardStatus.refunded'), this.get('constants.paymentCreditCardStatus.paidOut')];\n      this.listByTask.perform({\n        adapterName: 'payments/card',\n        filters,\n        dateStart,\n        dateEnd,\n        paymentCreditCardStatus\n      });\n      if (!this.query) {\n        this.fetchStatementTask.perform(period);\n      }\n      const self = this;\n      const paymentSpecs = {\n        description: 'cc_payment',\n        labelValue: 'CreditCardPayment',\n        method: 'byDetails',\n        index: 0,\n        subMethod: '',\n        paymentMethod: 'all',\n        specs: [[{\n          value: 'creator.md',\n          prop: 'creator.md',\n          label: this.intl.t('date'),\n          transforms: [{\n            label: 'getPropOr',\n            fn: 'getPropOr',\n            options: {\n              propOr: 'paymentCreditCardTransactionTimestampZ'\n            },\n            type: ''\n          }, {\n            type: 'date',\n            label: 'Date',\n            fn: '',\n            options: ''\n          }],\n          hideDefault: false,\n          type: \"date\",\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'contact',\n          prop: 'contact',\n          label: this.intl.t('contact'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'email',\n          prop: 'email',\n          label: this.intl.t('email'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'docNo',\n          prop: 'docNo',\n          label: '#',\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'ref',\n          prop: 'ref',\n          label: this.intl.t('ref'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'externalId',\n          prop: 'externalId',\n          label: this.intl.t('cc_ref'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'inclTotal',\n          prop: 'inclTotal',\n          label: this.intl.t('subtotal'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'refundRequestedInclTotal',\n          prop: 'refundRequestedInclTotal',\n          label: this.intl.t('cc_refundRequested'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'refundedInclTotal',\n          prop: 'refundedInclTotal',\n          label: this.intl.t('cc_refunded'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'netInclTotal',\n          prop: 'netInclTotal',\n          label: this.intl.t('inclusive total'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'paymentCreditCardProcessingFee',\n          prop: 'paymentCreditCardProcessingFee',\n          label: this.intl.t('fees'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'campaign.name',\n          prop: 'campaign.name',\n          label: this.intl.t('shop'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'paymentCreditCardProvider',\n          prop: 'paymentCreditCardProvider',\n          label: '',\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'paymentCreditCard.partial_card_number',\n          prop: 'paymentCreditCard.partial_card_number',\n          label: this.intl.t('cc_partial_card_number'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'dispatchProcessLabel',\n          prop: 'dispatchProcessLabel',\n          label: this.intl.t('dispatch status'),\n          transforms: [],\n          hideDefault: false,\n          translateFn(propValue, eachDocData) {\n            const status = R_.dotPath('status')(eachDocData);\n            if (status !== 'final') {\n              return self.intl.t(status);\n            }\n            let translate = true;\n            const translateProp = 'dispatchProcessLabelTranslate';\n            if (translateProp) {\n              translate = R_.dotPath(translateProp)(eachDocData);\n            }\n            if (translate) {\n              return self.intl.t(propValue);\n            }\n          },\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n          // }, {\n          //   value: 'paymentCreditCardStatus',\n          //   prop: 'paymentCreditCardStatus',\n          //   label: this.intl.t('credit card status'),\n          //   transforms: [],\n          //   hideDefault: false,\n          //   translateFn (propValue) {\n          //     return self.intl.t(`cc_${propValue}`)\n          //   },\n          //   type: '',\n          //   item: '',\n          //   itemKey: '',\n          //   isDetail: ''\n        }, {\n          value: 'invoices',\n          prop: 'invoices',\n          label: 'invoice number',\n          transforms: [{\n            fn: ({\n              spec,\n              eachDocData,\n              value,\n              specOptions,\n              options,\n              index\n            } = {}) => {\n              const values = R.pipe(R.propOr([], 'invoices'), R.map(invoice => {\n                const data = invoice?._data || {};\n                let invoiceDate = data?.dateLocal || data?.timestampZ || '';\n                invoiceDate = this.dateService.formatDate(invoiceDate, 'YYYY-MM-DD');\n                return [{\n                  label: this.intl.t('invoice number'),\n                  value: data.number || ''\n                }, {\n                  label: this.intl.t('tax'),\n                  value: data.taxTotal || ''\n                }, {\n                  label: this.intl.t('inclTotal'),\n                  value: data.inclTotal || ''\n                }, {\n                  label: this.intl.t('invoice date'),\n                  value: invoiceDate\n                }];\n              }))(eachDocData);\n              return values;\n            }\n          }],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }]]\n      };\n      const specsModel = this.crud.setupNewRecord({\n        adapterName: 'payments/card/specs',\n        data: paymentSpecs\n      });\n      this.set('specs', specsModel);\n      if (!this.showResults) {\n        this.toggleSidebar();\n      }\n    },\n    fetchStatementTask: (0, _emberConcurrency.task)(function* (period) {\n      const appendPath = this.selectedProvider;\n      const response = yield this.server.call('GET', `api/protected/payments/card/statement/${appendPath}`, period);\n      response.data.podKey = this?.settings?.settingsModel?._data?.podKey;\n      this.set('statement', response.data);\n      return response.data;\n    }),\n    requestCancellationTask: (0, _emberConcurrency.task)(function* (model) {\n      const msg = this.intl.t('are you sure you want to cancel?');\n      if (window.confirm(msg)) {\n        const updated = yield this.updateRecordTask.perform({\n          adapterName: this.adapterName,\n          appendPath: '/refund/request',\n          model\n        });\n        const period = this.period;\n        this.fetchStatementTask.perform(period);\n        return updated;\n      }\n    }),\n    undoCancellationTask: (0, _emberConcurrency.task)(function* (model) {\n      const msg = this.intl.t('are you sure you want to undo cancel?');\n      if (window.confirm(msg)) {\n        const updated = yield this.updateRecordTask.perform({\n          adapterName: this.adapterName,\n          appendPath: '/refund/undo',\n          model\n        });\n        const period = this.period;\n        this.fetchStatementTask.perform(period);\n        return updated;\n      }\n    }),\n    exportTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction /* filter */) {\n      this.set('isExporting', true);\n      let filename = this.filename;\n      if (!filename) {\n        filename = 'untitled';\n      }\n      const newSerializedCustomSpecs = [this?.specs?._data] || [];\n      const filters = this.exportFilters;\n      const {\n        dateStart,\n        dateEnd\n      } = this.period;\n      const paymentCreditCardStatus = [this.get('constants.paymentCreditCardStatus.approved'), this.get('constants.paymentCreditCardStatus.refundRequested'), this.get('constants.paymentCreditCardStatus.refunded'), this.get('constants.paymentCreditCardStatus.paidOut')];\n      const results = yield this.listByTask.perform({\n        adapterName: 'payments/card',\n        appendPath: '/export',\n        filters,\n        dateStart,\n        dateEnd,\n        paymentCreditCardStatus\n      });\n      const serialized = R.map(doc => {\n        const data = doc._data;\n        data.invoices = doc?.eInvoicesCollection?._data?.invoices || [];\n        return data;\n      })(results);\n      let maxColumns = 0;\n      const worksheets = R.pipe(R.map(worksheet => {\n        const method = R.prop('method')(worksheet);\n        if (method) {\n          const customSheetToPush = this.exportService.exportByMethod({\n            specs: worksheet,\n            docData: serialized\n          });\n\n          // loop through all invoices...flatten and add extra columns\n          // @TODO: not all rows needs to be same length. but use the same logic to get maxColumnns,\n          // add header label for extra columns (and also work out for extra position)\n          const headers = R.pathOr([], ['data', 0])(customSheetToPush);\n          customSheetToPush.data = R.pipe(R.propOr([], 'data'), R.map(row => {\n            row = R.flatten(row);\n            if (row.length > maxColumns) {\n              maxColumns = row.length;\n            }\n            return row;\n          }), R.map(row => {\n            let index = -1;\n            row = R.map(column => {\n              index = index + 1;\n              if (R.is(Object)(column)) {\n                headers[index] = column?.label || '';\n                return column?.value || '';\n              }\n              return column;\n            })(row);\n            if (row.length === maxColumns) {\n              return row;\n            }\n            const toAdd = maxColumns - row.length;\n            const toAddColumns = R.times(() => {\n              return '';\n            })(toAdd);\n            return R.concat(row)(toAddColumns);\n          }))(customSheetToPush);\n          if (customSheetToPush?.data) {\n            customSheetToPush.data[0] = headers;\n          }\n          return customSheetToPush;\n        }\n      }))(newSerializedCustomSpecs);\n      if (!R.isEmpty(worksheets)) {\n        yield this.excel.exportFile({\n          worksheets,\n          title: filename\n        });\n        this.set('isExporting', false);\n      } else {\n        this.set('isExporting', false);\n        const msg = this.intl.t('no data to export');\n        window.alert(msg);\n      }\n      onCloseDialogAction();\n    }).drop(),\n    setupFilename() {\n      const period = this.period;\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      const filename = `${this.intl.t('credit card transactions')} ${dateStart}-${dateEnd}`;\n      this.set('filename', filename);\n    },\n    displayByMonth(period) {\n      period.dateStart = this.dateService.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      period.dateEnd = this.dateService.formatDateForUrl(this.dateService.getMonthEnd(period.yyyy, period.mm));\n      this.filters._data.dateEnd = period.dateEnd;\n      this.filters._data.dateStart = period.dateStart;\n      const updatePeriod = R.mergeRight(this.period, period);\n      this.set('period', updatePeriod);\n      const paymentCreditCardStatus = [this.get('constants.paymentCreditCardStatus.approved'), this.get('constants.paymentCreditCardStatus.refundRequested'), this.get('constants.paymentCreditCardStatus.refunded'), this.get('constants.paymentCreditCardStatus.paidOut')];\n      this.listByTask.perform({\n        adapterName: 'payments/card',\n        filters: this.filters,\n        dateStart: period.dateStart,\n        dateEnd: period.dateEnd,\n        paymentCreditCardStatus\n      });\n      this.fetchStatementTask.perform({\n        dateStart: period.dateStart,\n        dateEnd: period.dateEnd\n      });\n      this.set('mm', period.mm);\n      this.set('yyyy', period.yyyy);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupFilename\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupFilename\"), _obj), _applyDecoratedDescriptor(_obj, \"displayByMonth\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"displayByMonth\"), _obj), _obj));\n});","define(\"client/pods/components/payments/card/panels-display/panels-statement/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    hasPayouts: false\n  });\n});","define(\"client/pods/components/payments/card/panels-display/panels-statement/payout-details/component\", [\"exports\", \"ramda\", \"client/mixins/big\", \"ember-concurrency\"], function (_exports, R, _big, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_big.default, {\n    tagName: '',\n    didInsertElement() {\n      this._super(...arguments);\n      const period = this.period;\n      const statement = this.statement;\n      this.fetchPaymentsTask.perform(period, statement);\n    },\n    fetchPaymentsTask: (0, _emberConcurrency.task)(function* (period, statement) {\n      const payload = period;\n      payload.podKey = statement.podKey;\n      const response = yield this.server.call('GET', 'api/protected/payments/card/payouts', payload);\n      let results = response.data || [];\n      results = R.map(result => Ember.Object.create(result), results);\n      this.set('payouts', results);\n    }),\n    payoutsTotal: Ember.computed('payouts.[]', function () {\n      const payouts = this.payouts;\n      const roundingCurrency = this.roundingCurrency;\n      return this.sumPropAndAutoRound(roundingCurrency, 'amount', payouts);\n    }),\n    outstandingTotal: Ember.computed('statement.totalDue', 'payoutsTotal', function () {\n      const payoutsTotal = this.payoutsTotal;\n      const totalDueBig = this.newBig(this.get('statement.totalDue'));\n      const roundingCurrency = this.roundingCurrency;\n      return totalDueBig.minus(payoutsTotal).toFixed(roundingCurrency);\n    })\n  });\n});","define(\"client/pods/components/payments/card/panels-display/panels-statement/payout-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2s47NW2O\",\n    \"block\": \"{\\\"symbols\\\":[\\\"payout\\\",\\\"index\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchPaymentsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"payouts\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"payments\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"payouts\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"amount due\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"totalDue\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"cc_paidOut\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"timestampZ\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"amount\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"outstanding total\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"outstandingTotal\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/panels-display/panels-statement/payout-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/panels-display/panels-statement/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CKcxO6u4\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onFetchStatementTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"statement\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total credit card amount\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"undispatched\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"notYetDispatched\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"refunded\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"cc_refunded\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"refunded\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"subtotal\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"dispatched\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"fees\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"fees\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"amount due\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"totalDue\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"refundRequested\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"cc_refundRequested\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"refundRequested\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"totalDueAfterRefundRequested\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"payments/card/panels-display/panels-statement/payout-details\\\",null,[[\\\"statement\\\",\\\"period\\\",\\\"hasPayouts\\\"],[[24,[\\\"statement\\\"]],[24,[\\\"period\\\"]],[24,[\\\"hasPayouts\\\"]]]]],false],[0,\\\"\\\\n         \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/panels-display/panels-statement/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rJvF+gN4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"period\\\",\\\"@showResults\\\",\\\"@toggleSidebar\\\",\\\"@filters\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"search\\\"],null],false],[0,\\\": \\\"],[1,[22,\\\"query\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateStart\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateEnd\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isPanel\\\",\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,true,[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displayByMonth\\\"]],[28,\\\"hash\\\",null,[[\\\"mm\\\",\\\"yyyy\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[23,0,[\\\"pastMonths\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displayByMonth\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,2,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"payments/card/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/starred\\\",[],[[\\\"@filters\\\",\\\"@onSearchTask\\\"],[[23,5,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"payments/card/panels-display/panels-statement\\\",null,[[\\\"statement\\\",\\\"onFetchStatementTask\\\",\\\"selectedProvider\\\",\\\"period\\\",\\\"model\\\"],[[24,[\\\"statement\\\"]],[24,[\\\"fetchStatementTask\\\"]],[24,[\\\"selectedProvider\\\"]],[24,[\\\"period\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"results\\\",\\\"filters\\\",\\\"paginationIsFooter\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"payments/card/table-view/panels-activity\\\",[24,[\\\"filters\\\",\\\"results\\\"]],[24,[\\\"filters\\\"]],false,[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"selectedProvider\\\",\\\"adapterName\\\"],[[24,[\\\"selectedProvider\\\"]],\\\"payments/card\\\"]]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"export data\\\",[28,\\\"action\\\",[[23,0,[]],\\\"setupFilename\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"file name\\\",\\\"fileName\\\",\\\"payments\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"filename\\\"]]]]],false],[0,\\\" .xlsx\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"translate\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"\\\",\\\"export data\\\",\\\"export data\\\",true,[28,\\\"or\\\",[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isExporting\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/panels-transactions/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 PaymentsCardPanelsTransactionsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember.inject.service('search'), _dec4 = Ember.inject.service('date'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _class = class PaymentsCardPanelsTransactionsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"searchService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"period\", _descriptor5, this);\n      _initializerDefineProperty(this, \"pastMonths\", _descriptor6, this);\n      _defineProperty(this, \"adapterName\", 'payments/card/transactions');\n      _defineProperty(this, \"adapterNameFilters\", 'payments/card/transactions/filters');\n      const nowZ = this.dateService.getMoment();\n      const monthNow = nowZ.month() + 1;\n      const yearNow = nowZ.year();\n      this.mm = monthNow;\n      this.yyyy = yearNow;\n      this.setPeriod();\n      this.pastMonths = this.dateService.getPastMonths(14);\n      this.searchRecordsTask.perform();\n      if (!this.args.showResults) {\n        this.args.toggleSidebar();\n      }\n    }\n    updateFilters() {\n      this.args.filters.setData('provider', this?.args?.selectedProvider);\n      this.args.filters.setData('dateStart', this?.period?.dateStart);\n      this.args.filters.setData('dateEnd', this?.period?.dateEnd);\n    }\n    *searchOnPeriodUpdateTask(period) {\n      this.setPeriod(period);\n      yield this.searchRecordsTask.perform();\n    }\n    *searchRecordsTask() {\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this?.args?.filters,\n        resultsProperty: 'results',\n        resultsToggle: 'resultsToggle'\n      });\n    }\n\n    // @task\n    // * onReloadSearchRecordsTask () {\n    //   yield this.crud.reloadSearchRecordsTask.perform({\n    //     adapterName: this.adapterName,\n    //     filters: this?.args?.filters,\n    //     resultsProperty: 'results',\n    //     resultsToggle: 'resultsToggle',\n    //     reset: true\n    //   })\n    // }\n\n    setPeriod(period) {\n      period = period || this?.args?.period || this.dateService.getPeriod();\n      this.period = R.mergeRight(period, this.dateService.displayByMonth(period));\n      this.updateFilters();\n    }\n    setupFilename() {\n      const period = this.period;\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      const filename = `${this.intl.t('credit card transactions')} ${dateStart}-${dateEnd}`;\n      Ember.set(this, 'filename', filename);\n    }\n    displayByMonth(period) {\n      period.dateStart = this.dateService.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      period.dateEnd = this.dateService.formatDateForUrl(this.dateService.getMonthEnd(period.yyyy, period.mm));\n      this.setPeriod(period);\n      this.searchRecordsTask.perform();\n      Ember.set(this, 'mm', period.mm);\n      Ember.set(this, 'yyyy', period.yyyy);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"searchService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"period\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"pastMonths\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchOnPeriodUpdateTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchOnPeriodUpdateTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchRecordsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPeriod\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"setPeriod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupFilename\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setupFilename\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayByMonth\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"displayByMonth\"), _class.prototype), _class);\n});","define(\"client/pods/components/payments/card/panels-transactions/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xDwlbkXj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"period\\\",\\\"@period\\\",\\\"@showResults\\\",\\\"@toggleSidebar\\\",\\\"@tab\\\",\\\"@filters\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid\\\"],[3,\\\"did-update\\\",[[28,\\\"perform\\\",[[23,0,[\\\"searchOnPeriodUpdateTask\\\"]],[23,2,[]]],null]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"search\\\"],null],false],[0,\\\": \\\"],[1,[22,\\\"query\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateStart\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateEnd\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isPanel\\\",\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,true,[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\",[28,\\\"hash\\\",null,[[\\\"mm\\\",\\\"yyyy\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n    \\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[24,[\\\"displayByMonth\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,1,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@paginationIsFooter\\\",\\\"@filters\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onResetSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@onPaginationTask\\\",\\\"@results\\\",\\\"@tableViewOptions\\\"],[[23,5,[]],\\\"payments/card/table-view/panels-transactions/detail-row\\\",false,[23,6,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"resetExcludes\\\"],[[23,6,[]],[28,\\\"array\\\",[\\\"dateStart\\\",\\\"dateEnd\\\"],null]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\",\\\"reset\\\",\\\"resetExcludes\\\"],[[23,6,[]],[23,0,[\\\"adapterName\\\"]],true,[28,\\\"array\\\",[\\\"dateStart\\\",\\\"dateEnd\\\"],null]]]]],null],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,6,[\\\"results\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"onMainActionIcon\\\",\\\"onMainActionLabel\\\",\\\"tab\\\",\\\"selectedProvider\\\"],[[23,0,[\\\"adapterName\\\"]],\\\"fas fa-toilet-paper\\\",\\\"select\\\",[23,5,[]],[24,[\\\"selectedProvider\\\"]]]]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/panels-transactions/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/search-filters/component\", [\"exports\", \"client/mixins/payments-list-by\", \"client/mixins/crud\"], function (_exports, _paymentsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _paymentsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'payments/card',\n    init() {\n      this.crud.addLists(this, ['payments/card/lists/filters/search', 'payments/card/lists/filters/status', 'payments/card/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/payments/card/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"USBeqkfK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"successful\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"isSuccessful\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"unsuccessful\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"isUnsuccessful\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.status\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/tab-container/component\", [\"exports\", \"client/mixins/payments-list-by\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\", \"ramda\"], function (_exports, _paymentsListBy, _date, _crud, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _paymentsListBy.default, (_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    // listAdapters: [],\n    // results: [],\n    adapterName: 'payments/card',\n    // filtersAdapterName: 'payments/card/filters',\n\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['periods/months', 'periods/years', 'dispatch/lists/processes', 'payments/card/lists/providers', 'payments/card/lists/panels']);\n      const provider = this.settings.getDefaultCreditCardProvider();\n      this.set('selectedProvider', provider);\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.loadTabTask.perform();\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {} else {\n        const firstPanelModel = R.pathOr([], ['crud', 'lists', 'payments-card-lists-panels', 0])(this);\n        const filters = this.search.setupFilters({\n          adapterName: firstPanelModel.getData('filtersAdapterName'),\n          defaultFiltersData: {\n            menuId: 'payments-card'\n          }\n        });\n        filters.setData('provider', this.selectedProvider);\n        this.set('filters', filters);\n        const period = this.getPeriod();\n        period.dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n        period.dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n        this.set('period', period);\n        this.displayPanel(firstPanelModel);\n      }\n    }),\n    displayPanel(resource) {\n      const tab = this.tab;\n      const subTabOptions = {\n        component: resource.getData('component'),\n        period: this.period,\n        filtersAdapter: resource.getData('filtersAdapterName')\n      };\n      const filters = this.search.setupFilters({\n        adapterName: resource.getData('filtersAdapterName')\n      });\n      filters.setData('provider', this.selectedProvider);\n      this.set('filters', filters);\n      const exportFilters = this.search.setupFilters({\n        adapterName: resource.getData('filtersAdapterName')\n      });\n      exportFilters.setData('provider', this.selectedProvider);\n      this.set('exportFilters', exportFilters);\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    actions: {\n      // dash () {\n      //   this.set('resultsToggle', false)\n\n      //   this.dash()\n      // },\n\n      display(model) {\n        this.display(model);\n      },\n      displayByMonth(period) {\n        this.displayByMonth(period);\n      },\n      displayByCustomMonth(mm, yyyy) {\n        this.displayByMonth({\n          mm,\n          yyyy\n        });\n      },\n      setSearchQuery() {\n        this.set('afterSearchQuery', this.filters?._data?.query);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"displayPanel\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"displayPanel\"), _obj), _obj));\n});","define(\"client/pods/components/payments/card/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"f4s7IBpC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"showResults\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@newFilters\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[\\\"payments/card\\\",[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],true,[28,\\\"action\\\",[[23,0,[]],\\\"setSearchQuery\\\"],null],\\\"search\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"value\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-providers\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[24,[\\\"selectedProvider\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"payments-card\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-panels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"displayPanel\\\"]]],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"query\\\",\\\"filters\\\",\\\"showResults\\\",\\\"toggleSidebar\\\",\\\"exportFilters\\\",\\\"lists\\\",\\\"selectedProvider\\\",\\\"tab\\\",\\\"period\\\",\\\"setSearchQuery\\\",\\\"pastMonths\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"afterSearchQuery\\\"]],[24,[\\\"filters\\\"]],[23,0,[\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[]],\\\"showResults\\\"],null],[24,[\\\"exportFilters\\\"]],[24,[\\\"lists\\\"]],[24,[\\\"selectedProvider\\\"]],[23,1,[]],[24,[\\\"period\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setSearchQuery\\\"],null],[24,[\\\"pastMonths\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/table-view/panels-activity/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: '',\n    crud: Ember.inject.service(),\n    hideExcl: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['payments/card/lists/statuses', 'filters/count']);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {}\n      });\n      this.set('campaignFilters', campaignFilters);\n    },\n    toggleView() {\n      this.toggleProperty('showDetails');\n    },\n    actions: {\n      loadShopSource(shop) {\n        const filters = this.filters;\n        filters.setData('sourceKey', shop.getData('_key'));\n        this.onSearchTask.perform({\n          adapterName: 'payments/card',\n          filters\n        });\n      },\n      unloadShopSource() {\n        const filters = this.filters;\n        filters.setData('sourceKey', '');\n        this.onSearchTask.perform({\n          adapterName: 'payments/card',\n          filters\n        });\n      },\n      selectDispatchProcesses() {\n        const filters = this.filters;\n        const dispatchProcessesModels = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n        const dispatchProcesses = filters.getData('dispatchProcesses');\n        const dispatchProcessesCriterias = R.pipe(R.filter(dispatchProcess => {\n          return R.includes(dispatchProcess.getData('code'), dispatchProcesses);\n        }), R.map(R.path(['_data', 'criterias'])))(dispatchProcessesModels);\n        filters.setData('multipleDispatchProcessesCriterias', dispatchProcessesCriterias);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleView\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleView\"), _obj), _obj));\n});","define(\"client/pods/components/payments/card/table-view/panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"I3gxnHzQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"onCloseDialogAction\\\",\\\"invoice\\\",\\\"invoice\\\",\\\"refund\\\",\\\"refund\\\",\\\"requested\\\",\\\"isTooltipVisible\\\",\\\"requested\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"createdDateZ\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"docNo\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        #\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"ref\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"externalId\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"cc_ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"contact\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"inclTotal\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refundRequested date\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refundRequested\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refunded date\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refunded\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_total\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"fees\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"source\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_partial_card_number\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"dispatch status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"credit card status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"invoice numbers\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"invoice date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",\\\"u-main-focus u-no-wrap\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleView\\\"]]],null]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggle-wrapper\\\",[],[[\\\"@toggleIsOn\\\"],[[23,0,[\\\"showDetails\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"externalId\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refundsRequested\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refundsRequested\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[23,9,[\\\"createdDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refundsRequested\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refundsRequested\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,7,[\\\"status\\\"]],\\\"refundRequested\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"far fa-clock\\\"]]],false],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,7,[\\\"refundAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-popup-content\\\",null,[[\\\"isViewable\\\"],[[23,8,[]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[false,[23,7,[\\\"master\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,7,[\\\"docType\\\"]],\\\"-\\\",[23,7,[\\\"docName\\\"]]],null],[23,7,[\\\"docType\\\"]],[23,7,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,7,[\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                      #\\\"],[1,[23,7,[\\\"docNo\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,7,[\\\"docType\\\"]],\\\"-\\\",[23,7,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-models__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[[23,7,[\\\"task\\\",\\\"status\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"far fa-clock\\\"]]],false],[0,\\\" \\\"],[1,[28,\\\"dateTime\\\",[[23,7,[\\\"task\\\",\\\"scheduledDateTimeZ\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[7]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[0],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refunds\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refunds\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"status\\\"]],\\\"refunded\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"date\\\",[[23,6,[\\\"createdDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[6]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refunds\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refunds\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"status\\\"]],\\\"refunded\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"refundAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[0],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"netInclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardProcessingFee\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[10,[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardProvider\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        BigOrdr\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardLastFourDigits\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[24,[\\\"model\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"eInvoicesCollection\\\",\\\"_data\\\",\\\"invoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,4,[\\\"_data\\\",\\\"number\\\"]],false],[0,\\\": \\\\n          \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,4,[\\\"isCancelledOrUnsuccessful\\\"]],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,4,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"number\\\",[[23,4,[\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\")\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[1,[28,\\\"extensions/apps/tw/e-invoices/print-manager/invoice-modal-btn\\\",null,[[\\\"document\\\",\\\"disabled\\\",\\\"invoice\\\"],[[24,[\\\"model\\\"]],false,[23,4,[]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"eInvoicesCollection\\\",\\\"_data\\\",\\\"invoices\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"dateLocal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"dateTime\\\",[[23,3,[\\\"_data\\\",\\\"dateLocal\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"dateTime\\\",[[23,3,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--action-row sticky-right-column-right\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleView\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-history\\\",\\\"credit card history\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"payments/card/history\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,1,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discInclPrice\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"postDiscInclAmt\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/table-view/panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/card/table-view/panels-transactions/detail-row/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    crud: Ember.inject.service(),\n    hideExcl: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['payments/card/lists/statuses', 'filters/count']);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {}\n      });\n      this.set('campaignFilters', campaignFilters);\n    },\n    actions: {\n      toggleView() {\n        this.toggleProperty('showDetails');\n      },\n      loadShopSource(shop) {\n        const filters = this.filters;\n        filters.setData('sourceKey', shop.getData('_key'));\n        this.onSearchTask.perform({\n          adapterName: this.tableViewOptions.adapterName,\n          appendPath: 'advanced',\n          filters\n        });\n      },\n      unloadShopSource() {\n        const filters = this.filters;\n        filters.setData('sourceKey', '');\n        this.onSearchTask.perform({\n          adapterName: this.tableViewOptions.adapterName,\n          appendPath: 'advanced',\n          filters\n        });\n      },\n      selectDispatchProcesses() {\n        const filters = this.filters;\n        const dispatchProcessesModels = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n        const dispatchProcesses = filters.getData('dispatchProcesses');\n        const dispatchProcessesCriterias = R.pipe(R.filter(dispatchProcess => {\n          return R.includes(dispatchProcess.getData('code'), dispatchProcesses);\n        }), R.map(R.path(['_data', 'criterias'])))(dispatchProcessesModels);\n        filters.setData('multipleDispatchProcessesCriterias', dispatchProcessesCriterias);\n      }\n    }\n  });\n});","define(\"client/pods/components/payments/card/table-view/panels-transactions/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bOGsnJgz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@onResetSearchRecordsTask\\\",\\\"@onReloadSearchRecordsTask\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"createdDateZ\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"ref\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"contact\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"email\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"telephone\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"inclTotal\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"source\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_partial_card_number\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"credit card status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"error message\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"icon\\\",\\\"toggleIsOn\\\"],[true,true,\\\"fas fa-filter\\\",[24,[\\\"showFilters\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"_data.dateExactZ\\\",[22,\\\"filters\\\"],[24,[\\\"filters\\\",\\\"_data\\\",\\\"dateExactZ\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"ref\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"contact\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"email\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"telephone\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"inclTotal\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",-1,[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[10,[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"ccNumber\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isSuccessful\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentResponse\\\",\\\"bank_result_msg\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentResponse\\\",\\\"bank_result_code\\\"]],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentResponse\\\",\\\"bank_result_msg\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isTapPay\\\"]],[24,[\\\"model\\\",\\\"paymentTransactionOverDue\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"user didnt complete the transaction\\\"],null],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showDeclinedMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"address\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,1,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclPrice\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"percentage\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"taxAmt\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/card/table-view/panels-transactions/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/history/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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  // import * as R_ from 'ramda-extension'\n  let PaymentsCardHistoryComponent = _exports.default = (_dec = Ember.inject.service('payments'), _dec2 = Ember.inject.service('constants'), _dec3 = Ember._tracked, _class = class PaymentsCardHistoryComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"paymentsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"doc\", _descriptor3, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const docKey = this.args.docKey;\n      if (docKey) {\n        const response = yield this.paymentsService.fetchHistory.perform(docKey);\n        this.doc = response;\n      } else {\n        this.doc = this.args.model;\n      }\n    }\n    get hasTransactions() {\n      const payByLinkRequestsUnsuccessful = this.doc?._data?.payByLinkRequestsUnsuccessful || [];\n      const allRefundsTransactions = this.doc?._data?.allRefundsTransactions || [];\n      const inclTotal = this.doc?._data?.inclTotal;\n      if (!RA.isNilOrEmpty(allRefundsTransactions) || inclTotal || !RA.isNilOrEmpty(payByLinkRequestsUnsuccessful)) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"paymentsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"doc\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/payments/linepay/history/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"arjWoiys\",\n    \"block\": \"{\\\"symbols\\\":[\\\"refund\\\",\\\"payByLinkRequestsUnsuccessful\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasTransactions\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"cc_ref\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"payByLinkRequestsUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,2,[\\\"paymentData\\\",\\\"bank_transaction_id\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"paymentData\\\",\\\"amount\\\"]]],null],false],[0,\\\" (\\\"],[1,[23,2,[\\\"paymentData\\\",\\\"currency\\\"]],false],[0,\\\")\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"response\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"cc_declined\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[\\\"cc_awaitingPayment\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"response\\\",\\\"hasError\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,2,[\\\"response\\\",\\\"response\\\",\\\"msg\\\"]],false],[0,\\\" (\\\"],[1,[23,2,[\\\"response\\\",\\\"response\\\",\\\"status\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"has3DS\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"responseVerify3dsUnsuccessful\\\",\\\"bank_result_msg\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,2,[\\\"responseVerify3dsUnsuccessful\\\",\\\"bank_result_msg\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"paymentMethodKey\\\"]],[23,0,[\\\"constantsService\\\",\\\"paymentMethods\\\",\\\"linePay\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"linePay_awaitingPayment\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"cc_awaiting_3ds_verification\\\"],null],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"externalId\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"cc_approved\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"allRefundsTransactions\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"task\\\",\\\"scheduledDateTimeZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"refundAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"refundRequested\\\"],null],\\\"is-warning\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"refunded\\\"],null],\\\"is-danger\\\"],null]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"cc_\\\",[23,1,[\\\"status\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"refundRequested\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-icon\\\",[[12,\\\"icon\\\",\\\"far fa-clock\\\"]],[[],[]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"no data\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/history/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/panels-display/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/payments-list-by\", \"ember-concurrency\", \"ramda\", \"ramda-extension\"], function (_exports, _crud, _paymentsListBy, _emberConcurrency, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _paymentsListBy.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    applicationService: Ember.inject.service('application'),\n    exportService: Ember.inject.service('export'),\n    excel: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    adapterName: 'payments/linepay',\n    isExporting: false,\n    init() {\n      this._super(...arguments);\n      const period = this.get('tab.period');\n      this.set('period', period);\n      const nowZ = this.dateService.getMoment();\n      const monthNow = nowZ.month() + 1;\n      const yearNow = nowZ.year();\n      this.set('mm', monthNow);\n      this.set('yyyy', yearNow);\n      const filters = this.filters;\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      const paymentCreditCardStatus = [this.get('constants.paymentCreditCardStatus.approved'), this.get('constants.paymentCreditCardStatus.refundRequested'), this.get('constants.paymentCreditCardStatus.refunded'), this.get('constants.paymentCreditCardStatus.paidOut')];\n      this.listByTask.perform({\n        adapterName: 'payments/linepay',\n        filters,\n        dateStart,\n        dateEnd,\n        paymentCreditCardStatus\n      });\n      if (!this.query) {\n        this.fetchStatementTask.perform(period);\n      }\n      if (!this.showResults) {\n        this.toggleSidebar();\n      }\n      const self = this;\n      const paymentSpecs = {\n        description: 'cc_payment',\n        labelValue: 'CreditCardPayment',\n        method: 'byDetails',\n        index: 0,\n        subMethod: '',\n        paymentMethod: 'all',\n        specs: [[{\n          value: 'creator.md',\n          prop: 'creator.md',\n          label: this.intl.t('date'),\n          transforms: [{\n            label: 'getPropOr',\n            fn: 'getPropOr',\n            options: {\n              propOr: 'paymentCreditCardTransactionTimestampZ'\n            },\n            type: ''\n          }, {\n            type: 'date',\n            label: 'Date',\n            fn: '',\n            options: ''\n          }],\n          hideDefault: false,\n          type: \"date\",\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'contact',\n          prop: 'contact',\n          label: this.intl.t('contact'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'email',\n          prop: 'email',\n          label: this.intl.t('email'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'docNo',\n          prop: 'docNo',\n          label: '#',\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'ref',\n          prop: 'ref',\n          label: this.intl.t('ref'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'externalId',\n          prop: 'externalId',\n          label: this.intl.t('cc_ref'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'inclTotal',\n          prop: 'inclTotal',\n          label: this.intl.t('subtotal'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'refundRequestedInclTotal',\n          prop: 'refundRequestedInclTotal',\n          label: this.intl.t('cc_refundRequested'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'refundedInclTotal',\n          prop: 'refundedInclTotal',\n          label: this.intl.t('cc_refunded'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'netInclTotal',\n          prop: 'netInclTotal',\n          label: this.intl.t('inclusive total'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'paymentCreditCardProcessingFee',\n          prop: 'paymentCreditCardProcessingFee',\n          label: this.intl.t('fees'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'campaign.name',\n          prop: 'campaign.name',\n          label: this.intl.t('shop'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'paymentCreditCardProvider',\n          prop: 'paymentCreditCardProvider',\n          label: '',\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'paymentCreditCardLastFourDigits',\n          prop: 'paymentCreditCardLastFourDigits',\n          label: this.intl.t('cc_partial_card_number'),\n          transforms: [],\n          hideDefault: false,\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n        }, {\n          value: 'dispatchProcessLabel',\n          prop: 'dispatchProcessLabel',\n          label: this.intl.t('dispatch status'),\n          transforms: [],\n          hideDefault: false,\n          translateFn(propValue, eachDocData) {\n            const status = R_.dotPath('status')(eachDocData);\n            if (status !== 'final') {\n              return self.intl.t(status);\n            }\n            let translate = true;\n            const translateProp = 'dispatchProcessLabelTranslate';\n            if (translateProp) {\n              translate = R_.dotPath(translateProp)(eachDocData);\n            }\n            if (translate) {\n              return self.intl.t(propValue);\n            }\n          },\n          type: '',\n          item: '',\n          itemKey: '',\n          isDetail: ''\n          // }, {\n          //   value: 'paymentCreditCardStatus',\n          //   prop: 'paymentCreditCardStatus',\n          //   label: this.intl.t('credit card status'),\n          //   transforms: [],\n          //   hideDefault: false,\n          //   translateFn (propValue) {\n          //     return self.intl.t(`cc_${propValue}`)\n          //   },\n          //   type: '',\n          //   item: '',\n          //   itemKey: '',\n          //   isDetail: ''\n        }]]\n      };\n      const specsModel = this.crud.setupNewRecord({\n        adapterName: 'payments/linepay/specs',\n        data: paymentSpecs\n      });\n      this.set('specs', specsModel);\n    },\n    fetchStatementTask: (0, _emberConcurrency.task)(function* (period) {\n      const appendPath = this.selectedProvider;\n      const response = yield this.server.call('GET', `api/protected/payments/linepay/statement/${appendPath}`, period);\n      response.data.podKey = this?.settings?.settingsModel?._data?.podKey;\n      this.set('statement', response.data);\n      return response.data;\n    }),\n    requestCancellationTask: (0, _emberConcurrency.task)(function* (model) {\n      const msg = this.intl.t('are you sure you want to cancel?');\n      if (window.confirm(msg)) {\n        const updated = yield this.updateRecordTask.perform({\n          adapterName: this.adapterName,\n          appendPath: '/refund/request',\n          model\n        });\n        const period = this.period;\n        this.fetchStatementTask.perform(period);\n        return updated;\n      }\n    }),\n    undoCancellationTask: (0, _emberConcurrency.task)(function* (model) {\n      const msg = this.intl.t('are you sure you want to undo cancel?');\n      if (window.confirm(msg)) {\n        const updated = yield this.updateRecordTask.perform({\n          adapterName: this.adapterName,\n          appendPath: '/refund/undo',\n          model\n        });\n        const period = this.period;\n        this.fetchStatementTask.perform(period);\n        return updated;\n      }\n    }),\n    exportTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction /* filter */) {\n      this.set('isExporting', true);\n      let filename = this.filename;\n      if (!filename) {\n        filename = 'untitled';\n      }\n      const newSerializedCustomSpecs = [this?.specs?._data] || [];\n      const worksheets = [];\n      const filters = this.exportFilters;\n      const {\n        dateStart,\n        dateEnd\n      } = this.period;\n      const paymentCreditCardStatus = [this.get('constants.paymentCreditCardStatus.approved'), this.get('constants.paymentCreditCardStatus.refundRequested'), this.get('constants.paymentCreditCardStatus.refunded'), this.get('constants.paymentCreditCardStatus.paidOut')];\n      const results = yield this.listByTask.perform({\n        adapterName: 'payments/linepay',\n        appendPath: '/export',\n        filters,\n        dateStart,\n        dateEnd,\n        paymentCreditCardStatus\n      });\n      const serialized = R.pluck('_data', results) || [];\n      R.forEach(worksheet => {\n        const method = R.prop('method')(worksheet);\n        if (method) {\n          const customSheetToPush = this.exportService.exportByMethod({\n            specs: worksheet,\n            docData: serialized\n          });\n          worksheets.push(customSheetToPush);\n        }\n      })(newSerializedCustomSpecs);\n      if (!R.isEmpty(worksheets)) {\n        yield this.excel.exportFile({\n          worksheets,\n          title: filename\n        });\n        this.set('isExporting', false);\n      } else {\n        this.set('isExporting', false);\n        const msg = this.intl.t('no data to export');\n        window.alert(msg);\n      }\n      onCloseDialogAction();\n    }).drop(),\n    setupFilename() {\n      const period = this.period;\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      const filename = `${this.intl.t('line pay transactions')} ${dateStart}-${dateEnd}`;\n      this.set('filename', filename);\n    },\n    displayByMonth(period) {\n      period.dateStart = this.dateService.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      period.dateEnd = this.dateService.formatDateForUrl(this.dateService.getMonthEnd(period.yyyy, period.mm));\n      this.filters._data.dateEnd = period.dateEnd;\n      this.filters._data.dateStart = period.dateStart;\n      const updatePeriod = R.mergeRight(this.period, period);\n      this.set('period', updatePeriod);\n      const paymentCreditCardStatus = [this.get('constants.paymentCreditCardStatus.approved'), this.get('constants.paymentCreditCardStatus.refundRequested'), this.get('constants.paymentCreditCardStatus.refunded'), this.get('constants.paymentCreditCardStatus.paidOut')];\n      this.listByTask.perform({\n        adapterName: 'payments/linepay',\n        filters: this.filters,\n        dateStart: period.dateStart,\n        dateEnd: period.dateEnd,\n        paymentCreditCardStatus\n      });\n      this.fetchStatementTask.perform({\n        dateStart: period.dateStart,\n        dateEnd: period.dateEnd\n      });\n      this.set('mm', period.mm);\n      this.set('yyyy', period.yyyy);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupFilename\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupFilename\"), _obj), _applyDecoratedDescriptor(_obj, \"displayByMonth\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"displayByMonth\"), _obj), _obj));\n});","define(\"client/pods/components/payments/linepay/panels-display/panels-activity--delete/component\", [\"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 = Ember.Component.extend({\n    hideExcl: true,\n    actions: {\n      toggleView() {\n        this.toggleProperty('showDetails');\n      }\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/panels-display/panels-activity--delete/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"sxqEEGNY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"doc\\\",\\\"index\\\",\\\"detail\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onListByTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              #\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"cc_ref\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"subtotal\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refund_total\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"fees\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"cc_partial_card_number\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"dispatch status\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"credit card status\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n              \\\"],[1,[23,1,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[23,1,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"_data\\\",\\\"externalId\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"refundedInclTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"netInclTotal\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"paymentCreditCardProcessingFee\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[23,1,[\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"paymentCreditCardProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,1,[\\\"_data\\\",\\\"paymentCreditCardProvider\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              BigOrder\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"_data\\\",\\\"paymentCreditCardLastFourDigits\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[23,1,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\"],[[23,1,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[23,3,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                        \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,3,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                        \\\"],[1,[23,3,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                        \\\"],[1,[23,3,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"exclPrice\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"taxRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"percentage\\\",[[23,3,[\\\"_data\\\",\\\"taxRate\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"taxAmt\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,1,[\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"lastSearchSettings\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"lastSearchSettings\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[24,[\\\"onPaginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/panels-display/panels-activity--delete/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/panels-display/panels-statement/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    hasPayouts: false\n  });\n});","define(\"client/pods/components/payments/linepay/panels-display/panels-statement/payout-details/component\", [\"exports\", \"ramda\", \"client/mixins/big\", \"ember-concurrency\"], function (_exports, R, _big, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_big.default, {\n    tagName: '',\n    didInsertElement() {\n      this._super(...arguments);\n      const period = this.period;\n      const statement = this.statement;\n      this.fetchPaymentsTask.perform(period, statement);\n    },\n    fetchPaymentsTask: (0, _emberConcurrency.task)(function* (period, statement) {\n      const payload = period;\n      payload.podKey = statement.podKey;\n      const response = yield this.server.call('GET', 'api/protected/payments/linepay/payouts', payload);\n      let results = response.data || [];\n      results = R.map(result => Ember.Object.create(result), results);\n      this.set('payouts', results);\n    }),\n    payoutsTotal: Ember.computed('payouts.[]', function () {\n      const payouts = this.payouts;\n      const roundingCurrency = this.roundingCurrency;\n      return this.sumPropAndAutoRound(roundingCurrency, 'amount', payouts);\n    }),\n    outstandingTotal: Ember.computed('statement.totalDue', 'payoutsTotal', function () {\n      const payoutsTotal = this.payoutsTotal;\n      const totalDueBig = this.newBig(this.get('statement.totalDue'));\n      const roundingCurrency = this.roundingCurrency;\n      return totalDueBig.minus(payoutsTotal).toFixed(roundingCurrency);\n    })\n  });\n});","define(\"client/pods/components/payments/linepay/panels-display/panels-statement/payout-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FPrGkqZ/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"payout\\\",\\\"index\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchPaymentsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"payouts\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"payments\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"payouts\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"amount due\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"totalDue\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"cc_paidOut\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"timestampZ\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"amount\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"outstanding total\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"outstandingTotal\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/panels-display/panels-statement/payout-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/panels-display/panels-statement/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/hvtT7N1\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onFetchStatementTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"statement\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total credit card amount\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"undispatched\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"notYetDispatched\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"refunded\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"cc_refunded\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"refunded\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"subtotal\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"dispatched\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"fees\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"fees\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"amount due\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"totalDue\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"refundRequested\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"cc_refundRequested\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"refundRequested\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"totalDueAfterRefundRequested\\\"]]],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"selectedProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"payments/linepay/panels-display/panels-statement/payout-details\\\",null,[[\\\"statement\\\",\\\"period\\\",\\\"hasPayouts\\\"],[[24,[\\\"statement\\\"]],[24,[\\\"period\\\"]],[24,[\\\"hasPayouts\\\"]]]]],false],[0,\\\"\\\\n         \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/panels-display/panels-statement/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CTfJaxMP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"period\\\",\\\"@showResults\\\",\\\"@toggleSidebar\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"search\\\"],null],false],[0,\\\": \\\"],[1,[22,\\\"query\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateStart\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateEnd\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isPanel\\\",\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,true,[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displayByMonth\\\"]],[28,\\\"hash\\\",null,[[\\\"mm\\\",\\\"yyyy\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[23,0,[\\\"pastMonths\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displayByMonth\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,2,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"payments/linepay/panels-display/panels-statement\\\",null,[[\\\"statement\\\",\\\"onFetchStatementTask\\\",\\\"selectedProvider\\\",\\\"period\\\",\\\"model\\\"],[[24,[\\\"statement\\\"]],[24,[\\\"fetchStatementTask\\\"]],[24,[\\\"selectedProvider\\\"]],[24,[\\\"period\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"results\\\",\\\"filters\\\",\\\"paginationIsFooter\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"payments/linepay/table-view/panels-activity\\\",[24,[\\\"filters\\\",\\\"results\\\"]],[24,[\\\"filters\\\"]],false,[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"selectedProvider\\\",\\\"adapterName\\\"],[[24,[\\\"selectedProvider\\\"]],\\\"payments/linepay\\\"]]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"export data\\\",[28,\\\"action\\\",[[23,0,[]],\\\"setupFilename\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"file name\\\",\\\"fileName\\\",\\\"payments\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"filename\\\"]]]]],false],[0,\\\" .xlsx\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"translate\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"\\\",\\\"export data\\\",\\\"export data\\\",true,[28,\\\"or\\\",[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isExporting\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/panels-transactions/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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, _dec0, _dec1, _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 PaymentsCardPanelsTransactionsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('search'), _dec3 = Ember.inject.service('application'), _dec4 = Ember.inject.service('date'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class PaymentsCardPanelsTransactionsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"period\", _descriptor5, this);\n      _initializerDefineProperty(this, \"pastMonths\", _descriptor6, this);\n      _initializerDefineProperty(this, \"mm\", _descriptor7, this);\n      _initializerDefineProperty(this, \"yyyy\", _descriptor8, this);\n      _defineProperty(this, \"adapterName\", 'payments/linepay/transactions');\n      _defineProperty(this, \"adapterNameFilters\", 'payments/linepay/transactions/filters');\n      const nowZ = this.dateService.getMoment();\n      const monthNow = nowZ.month() + 1;\n      const yearNow = nowZ.year();\n      this.mm = monthNow;\n      this.yyyy = yearNow;\n      this.setPeriod();\n      this.pastMonths = this.dateService.getPastMonths(14);\n      this.searchRecordsTask.perform();\n      if (!this.args.showResults) {\n        this.args.toggleSidebar();\n      }\n    }\n    updateFilters() {\n      this.args.filters.setData('provider', this?.args?.selectedProvider);\n      this.args.filters.setData('dateStart', this?.period?.dateStart);\n      this.args.filters.setData('dateEnd', this?.period?.dateEnd);\n    }\n    *searchOnPeriodUpdateTask(period) {\n      this.setPeriod(period);\n      yield this.searchRecordsTask.perform();\n    }\n    *searchRecordsTask() {\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this?.args?.filters,\n        resultsProperty: 'results',\n        resultsToggle: 'resultsToggle'\n      });\n    }\n\n    // @task\n    // * onReloadSearchRecordsTask () {\n    //   yield this.crud.reloadSearchRecordsTask.perform({\n    //     adapterName: this.adapterName,\n    //     filters: this?.args?.filters,\n    //     resultsProperty: 'results',\n    //     resultsToggle: 'resultsToggle',\n    //     reset: true\n    //   })\n    // }\n\n    setPeriod(period) {\n      period = period || this?.args?.period || this.dateService.getPeriod();\n      this.period = R.mergeRight(period, this.dateService.displayByMonth(period));\n      this.updateFilters();\n    }\n    setupFilename() {\n      const period = this.period;\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      const filename = `${this.intl.t('line pay transactions')} ${dateStart}-${dateEnd}`;\n      Ember.set(this, 'filename', filename);\n    }\n    displayByMonth(period) {\n      period.dateStart = this.dateService.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      period.dateEnd = this.dateService.formatDateForUrl(this.dateService.getMonthEnd(period.yyyy, period.mm));\n      this.setPeriod(period);\n      this.searchRecordsTask.perform();\n      this.mm = period.mm;\n      this.yyyy = period.yyyy;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"period\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"pastMonths\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"mm\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"yyyy\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchOnPeriodUpdateTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchOnPeriodUpdateTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchRecordsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPeriod\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setPeriod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupFilename\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setupFilename\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayByMonth\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"displayByMonth\"), _class.prototype), _class);\n});","define(\"client/pods/components/payments/linepay/panels-transactions/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Xsr9CA2D\",\n    \"block\": \"{\\\"symbols\\\":[\\\"period\\\",\\\"@period\\\",\\\"@showResults\\\",\\\"@toggleSidebar\\\",\\\"@tab\\\",\\\"@filters\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid\\\"],[3,\\\"did-update\\\",[[28,\\\"perform\\\",[[23,0,[\\\"searchOnPeriodUpdateTask\\\"]],[23,2,[]]],null]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"search\\\"],null],false],[0,\\\": \\\"],[1,[22,\\\"query\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateStart\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateEnd\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isPanel\\\",\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,true,[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displayByMonth\\\"]],[28,\\\"hash\\\",null,[[\\\"mm\\\",\\\"yyyy\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[24,[\\\"displayByMonth\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,1,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@paginationIsFooter\\\",\\\"@filters\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onResetSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@onPaginationTask\\\",\\\"@results\\\",\\\"@tableViewOptions\\\"],[[23,5,[]],\\\"payments/linepay/table-view/panels-transactions/detail-row\\\",false,[23,6,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"resetExcludes\\\"],[[23,6,[]],[28,\\\"array\\\",[\\\"dateStart\\\",\\\"dateEnd\\\"],null]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\",\\\"reset\\\",\\\"resetExcludes\\\"],[[23,6,[]],[23,0,[\\\"adapterName\\\"]],true,[28,\\\"array\\\",[\\\"dateStart\\\",\\\"dateEnd\\\"],null]]]]],null],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,6,[\\\"results\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"onMainActionIcon\\\",\\\"onMainActionLabel\\\",\\\"tab\\\",\\\"selectedProvider\\\"],[[23,0,[\\\"adapterName\\\"]],\\\"fas fa-toilet-paper\\\",\\\"select\\\",[23,5,[]],[24,[\\\"selectedProvider\\\"]]]]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/panels-transactions/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/search-filters/component\", [\"exports\", \"client/mixins/payments-list-by\", \"client/mixins/crud\"], function (_exports, _paymentsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _paymentsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'payments/linepay',\n    init() {\n      this.crud.addLists(this, ['payments/linepay/lists/filters/search', 'payments/linepay/lists/filters/status', 'payments/linepay/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/nRfBxfc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-linepay-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"successful\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"isSuccessful\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"unsuccessful\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"isUnsuccessful\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-linepay-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-linepay-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-linepay-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.status\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/tab-container/component\", [\"exports\", \"client/mixins/payments-list-by\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\", \"ramda\"], function (_exports, _paymentsListBy, _date, _crud, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _paymentsListBy.default, (_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    adapterName: 'payments/linepay',\n    showResults: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['periods/months', 'periods/years', 'dispatch/lists/processes', 'payments/linepay/lists/providers', 'payments/linepay/lists/panels']);\n      const provider = this.settings.getDefaultCreditCardProvider();\n      this.set('selectedProvider', provider);\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.loadTabTask.perform();\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {} else {\n        const firstPanelModel = R.pathOr([], ['crud', 'lists', 'payments-linepay-lists-panels', 0])(this);\n        const filters = this.search.setupFilters({\n          adapterName: firstPanelModel.getData('filtersAdapterName')\n        });\n        filters.setData('provider', this.selectedProvider);\n        this.set('filters', filters);\n        const period = this.getPeriod();\n        period.dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n        period.dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n        this.set('period', period);\n        this.displayPanel(firstPanelModel);\n      }\n    }),\n    displayPanel(resource) {\n      const tab = this.tab;\n      const subTabOptions = {\n        component: resource.getData('component'),\n        period: this.period,\n        filtersAdapter: resource.getData('filtersAdapterName')\n      };\n      const filters = this.search.setupFilters({\n        adapterName: resource.getData('filtersAdapterName')\n      });\n      filters.setData('provider', this.selectedProvider);\n      this.set('filters', filters);\n      const exportFilters = this.search.setupFilters({\n        adapterName: resource.getData('filtersAdapterName')\n      });\n      exportFilters.setData('provider', this.selectedProvider);\n      this.set('exportFilters', exportFilters);\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    actions: {\n      // dash () {\n      //   this.set('resultsToggle', false)\n\n      //   this.dash()\n      // },\n\n      display(model) {\n        this.display(model);\n      },\n      displayByMonth(period) {\n        this.displayByMonth(period);\n      },\n      displayByCustomMonth(mm, yyyy) {\n        this.displayByMonth({\n          mm,\n          yyyy\n        });\n      },\n      setSearchQuery() {\n        this.set('afterSearchQuery', this.filters?._data?.query);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"displayPanel\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"displayPanel\"), _obj), _obj));\n});","define(\"client/pods/components/payments/linepay/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8tmIRIEL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"showResults\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@newFilters\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[\\\"payments/linepay\\\",[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],true,[28,\\\"action\\\",[[23,0,[]],\\\"setSearchQuery\\\"],null],\\\"search\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"value\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-linepay-lists-providers\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[24,[\\\"selectedProvider\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"payments-linepay\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-linepay-lists-panels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"displayPanel\\\"]]],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"query\\\",\\\"filters\\\",\\\"showResults\\\",\\\"toggleSidebar\\\",\\\"exportFilters\\\",\\\"lists\\\",\\\"selectedProvider\\\",\\\"tab\\\",\\\"period\\\",\\\"setSearchQuery\\\",\\\"pastMonths\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"afterSearchQuery\\\"]],[24,[\\\"filters\\\"]],[23,0,[\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[]],\\\"showResults\\\"],null],[24,[\\\"exportFilters\\\"]],[24,[\\\"lists\\\"]],[24,[\\\"selectedProvider\\\"]],[23,1,[]],[24,[\\\"period\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setSearchQuery\\\"],null],[24,[\\\"pastMonths\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/table-view/panels-activity/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    crud: Ember.inject.service(),\n    hideExcl: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['payments/linepay/lists/statuses', 'filters/count']);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {}\n      });\n      this.set('campaignFilters', campaignFilters);\n    },\n    actions: {\n      toggleView() {\n        this.toggleProperty('showDetails');\n      },\n      loadShopSource(shop) {\n        const filters = this.filters;\n        filters.setData('sourceKey', shop.getData('_key'));\n        this.onSearchTask.perform({\n          adapterName: 'payments/linepay',\n          filters\n        });\n      },\n      unloadShopSource() {\n        const filters = this.filters;\n        filters.setData('sourceKey', '');\n        this.onSearchTask.perform({\n          adapterName: 'payments/linepay',\n          filters\n        });\n      },\n      selectDispatchProcesses() {\n        const filters = this.filters;\n        const dispatchProcessesModels = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n        const dispatchProcesses = filters.getData('dispatchProcesses');\n        const dispatchProcessesCriterias = R.pipe(R.filter(dispatchProcess => {\n          return R.includes(dispatchProcess.getData('code'), dispatchProcesses);\n        }), R.map(R.path(['_data', 'criterias'])))(dispatchProcessesModels);\n        filters.setData('multipleDispatchProcessesCriterias', dispatchProcessesCriterias);\n      }\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/table-view/panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"084o4jrf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"onCloseDialogAction\\\",\\\"refund\\\",\\\"refund\\\",\\\"requested\\\",\\\"isTooltipVisible\\\",\\\"requested\\\",\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"createdDateZ\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"ref\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"externalId\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"cc_ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"contact\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"email\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"telephone\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"docNo\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        #\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"inclTotal\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refundRequested date\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refundRequested\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refunded date\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_refunded\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_total\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"fees\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"source\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_partial_card_number\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"dispatch status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"credit card status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"icon\\\",\\\"toggleIsOn\\\"],[true,true,\\\"fas fa-filter\\\",[24,[\\\"showFilters\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"_data.paymentTransactionDateZ\\\",[22,\\\"filters\\\"],[24,[\\\"filters\\\",\\\"_data\\\",\\\"paymentTransactionDateZ\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"ref\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"externalId\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"contact\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"email\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"telephone\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"docNo\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"_data.refundRequestedDateZ\\\",[22,\\\"filters\\\"],[24,[\\\"filters\\\",\\\"_data\\\",\\\"refundRequestedDateZ\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"_data.refundedDateZ\\\",[22,\\\"filters\\\"],[24,[\\\"filters\\\",\\\"_data\\\",\\\"refundedDateZ\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"inclTotal\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"resultsItemComponent\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[false,[24,[\\\"campaignFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"campaignFilters\\\",\\\"_data\\\",\\\"query\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"sourceKey\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isReadonly\\\"]],\\\"channels/shop/campaigns/search-results\\\",[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"channels/shop/campaigns\\\",[24,[\\\"campaignFilters\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadShopSource\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadShopSource\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"partialCreditCardNumber\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"badge\\\",\\\"onClose\\\"],[[24,[\\\"isReadonly\\\"]],[28,\\\"count\\\",[[24,[\\\"filters\\\",\\\"_data\\\",\\\"paymentCreditCardStatus\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"allowDeselect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-linepay-lists-statuses\\\"]],[24,[\\\"filters\\\"]],true,true,\\\"_data.value\\\",\\\"_data.paymentCreditCardStatus\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"detail\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[24,[\\\"detail\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"externalId\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refundsRequested\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refundsRequested\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[23,7,[\\\"createdDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refundsRequested\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refundsRequested\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"status\\\"]],\\\"refundRequested\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"far fa-clock\\\"]]],false],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,5,[\\\"refundAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-popup-content\\\",null,[[\\\"isViewable\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[false,[23,5,[\\\"master\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,5,[\\\"docType\\\"]],\\\"-\\\",[23,5,[\\\"docName\\\"]]],null],[23,5,[\\\"docType\\\"]],[23,5,[\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,5,[\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                      #\\\"],[1,[23,5,[\\\"docNo\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,5,[\\\"docType\\\"]],\\\"-\\\",[23,5,[\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-models__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[[23,5,[\\\"task\\\",\\\"status\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"far fa-clock\\\"]]],false],[0,\\\" \\\"],[1,[28,\\\"dateTime\\\",[[23,5,[\\\"task\\\",\\\"scheduledDateTimeZ\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[0],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refunds\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refunds\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"status\\\"]],\\\"refunded\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"date\\\",[[23,4,[\\\"createdDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refunds\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"refunds\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"status\\\"]],\\\"refunded\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"currency\\\",[[23,3,[\\\"refundAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[0],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"netInclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardProcessingFee\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[10,[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardProvider\\\"]],\\\"tapPay\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardProvider\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        BigOrder\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardLastFourDigits\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[24,[\\\"model\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\"],[\\\"fas fa-history\\\",\\\"line pay history\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"payments/card/history\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,1,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"discInclPrice\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"postDiscInclAmt\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/table-view/panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/table-view/panels-transactions/detail-row/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    crud: Ember.inject.service(),\n    hideExcl: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['payments/linepay/lists/statuses', 'filters/count']);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {}\n      });\n      this.set('campaignFilters', campaignFilters);\n    },\n    actions: {\n      toggleView() {\n        this.toggleProperty('showDetails');\n      },\n      loadShopSource(shop) {\n        const filters = this.filters;\n        filters.setData('sourceKey', shop.getData('_key'));\n        this.onSearchTask.perform({\n          adapterName: this.tableViewOptions.adapterName,\n          appendPath: 'advanced',\n          filters\n        });\n      },\n      unloadShopSource() {\n        const filters = this.filters;\n        filters.setData('sourceKey', '');\n        this.onSearchTask.perform({\n          adapterName: this.tableViewOptions.adapterName,\n          appendPath: 'advanced',\n          filters\n        });\n      },\n      selectDispatchProcesses() {\n        const filters = this.filters;\n        const dispatchProcessesModels = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n        const dispatchProcesses = filters.getData('dispatchProcesses');\n        const dispatchProcessesCriterias = R.pipe(R.filter(dispatchProcess => {\n          return R.includes(dispatchProcess.getData('code'), dispatchProcesses);\n        }), R.map(R.path(['_data', 'criterias'])))(dispatchProcessesModels);\n        filters.setData('multipleDispatchProcessesCriterias', dispatchProcessesCriterias);\n      }\n    }\n  });\n});","define(\"client/pods/components/payments/linepay/table-view/panels-transactions/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"K8qoPnbq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@onResetSearchRecordsTask\\\",\\\"@onReloadSearchRecordsTask\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"createdDateZ\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"ref\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"contact\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"email\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"telephone\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"telephone\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"inclTotal\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"source\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"cc_partial_card_number\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"credit card status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"error message\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"icon\\\",\\\"toggleIsOn\\\"],[true,true,\\\"fas fa-filter\\\",[24,[\\\"showFilters\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"_data.dateExactZ\\\",[22,\\\"filters\\\"],[24,[\\\"filters\\\",\\\"_data\\\",\\\"dateExactZ\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"ref\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"contact\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"email\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"telephone\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"inclTotal\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"appendPath\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"advanced\\\",[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]]]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",-1,[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"creator\\\",\\\"md\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[10,[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"ccNumber\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isSuccessful\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentResponse\\\",\\\"bank_result_msg\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentResponse\\\",\\\"bank_result_code\\\"]],false],[0,\\\": \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentResponse\\\",\\\"bank_result_msg\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"isTapPay\\\"]],[24,[\\\"model\\\",\\\"paymentTransactionOverDue\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"user didnt complete the transaction\\\"],null],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showDeclinedMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"address\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,1,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclPrice\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"percentage\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"taxAmt\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/linepay/table-view/panels-transactions/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/history/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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  // import * as R_ from 'ramda-extension'\n  let PaymentsCardHistoryComponent = _exports.default = (_dec = Ember.inject.service('payments'), _dec2 = Ember._tracked, _class = class PaymentsCardHistoryComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"paymentsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"doc\", _descriptor2, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const docKey = this.args.docKey;\n      if (docKey) {\n        const response = yield this.paymentsService.fetchHistory.perform(docKey);\n        this.doc = response;\n      } else {\n        this.doc = this.args.model;\n      }\n    }\n    get hasTransactions() {\n      const payByLinkRequestsUnsuccessful = this.doc?._data?.payByLinkRequestsUnsuccessful || [];\n      const allRefundsTransactions = this.doc?._data?.allRefundsTransactions || [];\n      const inclTotal = this.doc?._data?.inclTotal;\n      if (!RA.isNilOrEmpty(allRefundsTransactions) || inclTotal || !RA.isNilOrEmpty(payByLinkRequestsUnsuccessful)) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"paymentsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"doc\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/payments/virtual-accounts/history/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"k03HkZrQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"refund\\\",\\\"payByLinkRequestsUnsuccessful\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasTransactions\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"cc_ref\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"payByLinkRequestsUnsuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,2,[\\\"paymentData\\\",\\\"bank_transaction_id\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"paymentData\\\",\\\"amount\\\"]]],null],false],[0,\\\" (\\\"],[1,[23,2,[\\\"paymentData\\\",\\\"currency\\\"]],false],[0,\\\")\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"response\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"cc_declined\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"              \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[\\\"cc_awaitingPayment\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"response\\\",\\\"hasError\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,2,[\\\"response\\\",\\\"response\\\",\\\"msg\\\"]],false],[0,\\\" (\\\"],[1,[23,2,[\\\"response\\\",\\\"response\\\",\\\"status\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"has3DS\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"responseVerify3dsUnsuccessful\\\",\\\"bank_result_msg\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,2,[\\\"responseVerify3dsUnsuccessful\\\",\\\"bank_result_msg\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"cc_awaiting_3ds_verification\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"      \\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"paymentCreditCardTransactionTimestampZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"externalId\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"cc_approved\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"doc\\\",\\\"_data\\\",\\\"allRefundsTransactions\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"task\\\",\\\"scheduledDateTimeZ\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"refundAmount\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"refundRequested\\\"],null],\\\"is-warning\\\"],null],\\\" \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"refunded\\\"],null],\\\"is-danger\\\"],null]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"cc_\\\",[23,1,[\\\"status\\\"]]],null]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"status\\\"]],\\\"refundRequested\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-icon\\\",[[12,\\\"icon\\\",\\\"far fa-clock\\\"]],[[],[]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/no-data\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/virtual-accounts/history/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/panels-display/component\", [\"exports\", \"ember-concurrency\", \"ramda\"], function (_exports, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    exportService: Ember.inject.service('export'),\n    excel: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    adapterName: 'payments/virtualAccounts',\n    isExporting: false,\n    init() {\n      this._super(...arguments);\n      const period = this.get('tab.period');\n      this.set('period', period);\n      const filters = this.filters;\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      const paymentVirtualAccountStatus = [this.get('constants.paymentVirtualAccountStatus.approved'), this.get('constants.paymentVirtualAccountStatus.pending'), this.get('constants.paymentVirtualAccountStatus.expired'), this.get('constants.paymentVirtualAccountStatus.attentionRequired')];\n      this.listByTask.perform({\n        adapterName: 'payments/virtualAccounts',\n        filters,\n        dateStart,\n        dateEnd,\n        paymentVirtualAccountStatus\n      });\n      if (!this.query) {\n        this.fetchStatementTask.perform(period);\n      }\n\n      // const self = this\n\n      // const paymentSpecs = {\n      //   description: 'cc_payment',\n      //   labelValue: 'CreditCardPayment',\n      //   method: 'byDetails',\n      //   index: 0,\n      //   subMethod: '',\n      //   paymentMethod: 'all',\n      //   specs: [\n      //     [\n      //       {\n      //         value: 'creator.md',\n      //         prop: 'creator.md',\n      //         label: this.intl.t('date'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'contactKey',\n      //         prop: 'contactKey',\n      //         label: this.intl.t('contact'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'email',\n      //         prop: 'email',\n      //         label: this.intl.t('email'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'docNo',\n      //         prop: 'docNo',\n      //         label: '#',\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'ref',\n      //         prop: 'ref',\n      //         label: this.intl.t('ref'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'externalId',\n      //         prop: 'externalId',\n      //         label: this.intl.t('cc_ref'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'inclTotal',\n      //         prop: 'inclTotal',\n      //         label: this.intl.t('subtotal'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'refundRequestedInclTotal',\n      //         prop: 'refundRequestedInclTotal',\n      //         label: this.intl.t('cc_refundRequested'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'refundedInclTotal',\n      //         prop: 'refundedInclTotal',\n      //         label: this.intl.t('cc_refunded'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'netInclTotal',\n      //         prop: 'netInclTotal',\n      //         label: this.intl.t('inclusive total'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'paymentCreditCardProcessingFee',\n      //         prop: 'paymentCreditCardProcessingFee',\n      //         label: this.intl.t('fees'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'campaign.name',\n      //         prop: 'campaign.name',\n      //         label: this.intl.t('shop'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'paymentCreditCardProvider',\n      //         prop: 'paymentCreditCardProvider',\n      //         label: '',\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'paymentCreditCard.partial_card_number',\n      //         prop: 'paymentCreditCard.partial_card_number',\n      //         label: this.intl.t('cc_partial_card_number'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }, {\n      //         value: 'dispatchProcessLabel',\n      //         prop: 'dispatchProcessLabel',\n      //         label: this.intl.t('dispatch status'),\n      //         transforms: [],\n      //         hideDefault: false,\n      //         translateFn (propValue, eachDocData) {\n      //           const status = R_.dotPath('status')(eachDocData)\n      //           if (status !== 'final') {\n      //             return self.intl.t(status)\n      //           }\n\n      //           let translate = true\n      //           const translateProp = 'dispatchProcessLabelTranslate'\n      //           if (translateProp) {\n      //             translate = R_.dotPath(translateProp)(eachDocData)\n      //           }\n\n      //           if (translate) {\n      //             return self.intl.t(propValue)\n      //           }\n      //         },\n      //         type: '',\n      //         item: '',\n      //         itemKey: '',\n      //         isDetail: ''\n      //       }\n      //     ]\n      //   ]\n      // }\n\n      // const specsModel = this.crud.setupNewRecord({\n      //   adapterName: 'payments/virtualAccounts/specs',\n      //   data: paymentSpecs\n      // })\n\n      // this.set('specs', specsModel)\n    },\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      filters,\n      adapterName,\n      appendPath,\n      match,\n      abandoned,\n      status,\n      paymentVirtualAccountStatus,\n      date,\n      dateStart,\n      dateEnd,\n      query = '',\n      contact,\n      contactKey,\n      sourceKey,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (abandoned) {\n        filters.setData('abandoned', abandoned);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (status) {\n        if (!R.is(Array, status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (paymentVirtualAccountStatus) {\n        if (!R.is(Array, paymentVirtualAccountStatus)) {\n          paymentVirtualAccountStatus = [paymentVirtualAccountStatus];\n        }\n        filters.setData('paymentVirtualAccountStatus', paymentVirtualAccountStatus);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        query = date;\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters,\n        component: this\n      };\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }),\n    fetchStatementTask: (0, _emberConcurrency.task)(function* (period) {\n      const appendPath = this.selectedProvider;\n      const response = yield this.server.call('GET', `api/protected/payments/virtual-accounts/statement/${appendPath}`, period);\n      this.set('statement', response.data);\n      return response.data;\n    }),\n    // requestCancellationTask: task(function * (model) {\n    //   const msg = this.intl.t('are you sure you want to cancel?')\n    //   if (window.confirm(msg)) {\n    //     const updated = yield this.updateRecordTask.perform({\n    //       adapterName: this.adapterName,\n    //       appendPath: '/refund/request',\n    //       model\n    //     })\n    //     const period = this.period\n    //     this.fetchStatementTask.perform(period)\n    //     return updated\n    //   }\n    // }),\n\n    // undoCancellationTask: task(function * (model) {\n    //   const msg = this.intl.t('are you sure you want to undo cancel?')\n    //   if (window.confirm(msg)) {\n    //     const updated = yield this.updateRecordTask.perform({\n    //       adapterName: this.adapterName,\n    //       appendPath: '/refund/undo',\n    //       model\n    //     })\n\n    //     const period = this.period\n    //     this.fetchStatementTask.perform(period)\n    //     return updated\n    //   }\n    // }),\n\n    exportTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction /* filter */) {\n      this.set('isExporting', true);\n      let filename = this.filename;\n      if (!filename) {\n        filename = 'untitled';\n      }\n      const newSerializedCustomSpecs = [this?.specs?._data] || [];\n      const worksheets = [];\n      const filters = this.exportFilters;\n      const {\n        dateStart,\n        dateEnd\n      } = this.period;\n      const paymentVirtualAccountStatus = [this.get('constants.paymentVirtualAccountStatus.approved'), this.get('constants.paymentVirtualAccountStatus.refundRequested'), this.get('constants.paymentVirtualAccountStatus.refunded'), this.get('constants.paymentVirtualAccountStatus.paidOut')];\n      const results = yield this.listByTask.perform({\n        adapterName: 'payments/virtualAccounts',\n        appendPath: '/export',\n        filters,\n        dateStart,\n        dateEnd,\n        paymentVirtualAccountStatus\n      });\n      const serialized = R.pluck('_data', results) || [];\n      R.forEach(worksheet => {\n        const method = R.prop('method')(worksheet);\n        if (method) {\n          const customSheetToPush = this.exportService.exportByMethod({\n            specs: worksheet,\n            docData: serialized\n          });\n          worksheets.push(customSheetToPush);\n        }\n      })(newSerializedCustomSpecs);\n      if (!R.isEmpty(worksheets)) {\n        yield this.excel.exportFile({\n          worksheets,\n          title: filename\n        });\n        this.set('isExporting', false);\n      } else {\n        this.set('isExporting', false);\n        const msg = this.intl.t('no data to export');\n        window.alert(msg);\n      }\n      onCloseDialogAction();\n    }).drop(),\n    actions: {\n      setupFilename() {\n        const period = this.period;\n        const {\n          dateStart,\n          dateEnd\n        } = period;\n        const filename = `${this.intl.t('credit card transactions')} ${dateStart}-${dateEnd}`;\n        this.set('filename', filename);\n      }\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/panels-display/panels-statement/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    hasPayouts: false\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/panels-display/panels-statement/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7v4I3oQz\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"onFetchStatementTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"statement\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"total\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"total\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"refunded\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"cc_refunded\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"refunded\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"pending\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"atm_pending\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"pending\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"expired\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"atm_expired\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"expired\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"expired\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"fees\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"fees\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"atm_approved\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"totalPaid\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"attentionRequired\\\"]],\\\"0\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"atm_attentionRequired\\\"],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"statement\\\",\\\"expired\\\"]],\\\"0\\\"],null],\\\"has-text-right\\\"],null]]]],[8],[1,[28,\\\"currency\\\",[[24,[\\\"statement\\\",\\\"attentionRequired\\\"]]],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\\n\\\\n\\\"],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/virtual-accounts/panels-display/panels-statement/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"JaY9VeYb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"search\\\"],null],false],[0,\\\": \\\"],[1,[22,\\\"query\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateStart\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"period\\\",\\\"dateEnd\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"payments/virtual-accounts/panels-display/panels-statement\\\",null,[[\\\"statement\\\",\\\"onFetchStatementTask\\\",\\\"selectedProvider\\\",\\\"period\\\"],[[24,[\\\"statement\\\"]],[24,[\\\"fetchStatementTask\\\"]],[24,[\\\"selectedProvider\\\"]],[24,[\\\"period\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"layouts/table-view\\\",null,[[\\\"tab\\\",\\\"detailsRowComponent\\\",\\\"results\\\",\\\"filters\\\",\\\"paginationIsFooter\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],\\\"payments/virtual-accounts/table-view/panels-activity\\\",[24,[\\\"filters\\\",\\\"results\\\"]],[24,[\\\"filters\\\"]],false,[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"selectedProvider\\\"],[[24,[\\\"selectedProvider\\\"]]]]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"query\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"export data\\\",[28,\\\"action\\\",[[23,0,[]],\\\"setupFilename\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"file name\\\",\\\"fileName\\\",\\\"payments\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\"],[[24,[\\\"filename\\\"]]]]],false],[0,\\\" .xlsx\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"translate\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"\\\",\\\"export data\\\",\\\"export data\\\",true,[28,\\\"or\\\",[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isExporting\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/virtual-accounts/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/search-filters/component\", [\"exports\", \"client/mixins/payments-list-by\", \"client/mixins/crud\"], function (_exports, _paymentsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _paymentsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'payments/card',\n    init() {\n      this.crud.addLists(this, ['payments/card/lists/filters/search', 'payments/card/lists/filters/status', 'payments/card/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dszw1Thm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"successful\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"isSuccessful\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"unsuccessful\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"status\\\",\\\"filters\\\"],[\\\"isUnsuccessful\\\",[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-card-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.status\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/virtual-accounts/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/status-tag/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 PaymentsVirtualAccountsStatusTagComponent = _exports.default = (_dec = Ember.inject.service, _class = class PaymentsVirtualAccountsStatusTagComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n    }\n    get statusClassName() {\n      const model = this.args.model;\n      const status = model.getData('status');\n      if (status === this.constants.paymentVirtualAccountStatus.attentionRequired) {\n        return 'is-danger';\n      }\n      if (status === this.constants.paymentVirtualAccountStatus.pending) {\n        return 'is-warning';\n      }\n      if (status === this.constants.paymentVirtualAccountStatus.approved) {\n        return 'is-success';\n      }\n      return '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/payments/virtual-accounts/status-tag/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"x4ye/HeP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,0,[\\\"statusClassName\\\"]]]]],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"atm_\\\",[23,1,[\\\"_data\\\",\\\"status\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/virtual-accounts/status-tag/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/tab-container/component\", [\"exports\", \"client/mixins/payments-list-by\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _paymentsListBy, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _paymentsListBy.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    // listAdapters: [],\n    // results: [],\n    adapterName: 'payments/virtualAccounts',\n    filtersAdapterName: 'payments/virtualAccounts/filters',\n    init() {\n      this.crud.addLists(this, ['periods/months', 'periods/years', 'dispatch/lists/processes', 'payments/virtualAccounts/lists/providers']);\n      const nowZ = this.dateService.getMoment();\n      const monthNow = nowZ.month() + 1;\n      const yearNow = nowZ.year();\n      this.set('mm', monthNow);\n      this.set('yyyy', yearNow);\n      const provider = this.settings.getDefaultVirtualAccountProvider();\n      this.set('selectedProvider', provider);\n      const period = this.getPeriod();\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          provider: provider\n        }\n      });\n      filters.set('showResults', true);\n      this.set('filters', filters);\n      this.displayByMonth(period);\n      this._super(...arguments);\n    },\n    displayByMonth(period) {\n      const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n      this.set('period', period);\n      this.display({\n        dateStart,\n        dateEnd\n      });\n      this.set('mm', period.mm);\n      this.set('yyyy', period.yyyy);\n    },\n    display(period) {\n      this.set('afterSearchQuery', '');\n      const tab = this.tab;\n      const filters = this.filters;\n      filters.setData('provider', this.selectedProvider);\n      filters.set('showResults', true);\n      this.set('filters', filters);\n      const exportFilters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      exportFilters.setData('provider', this.selectedProvider);\n      this.set('exportFilters', exportFilters);\n      const subTabOptions = {\n        component: 'payments/virtual-accounts/panels-display',\n        period\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    refreshTask: (0, _emberConcurrency.task)(function* () {\n      const period = this.period;\n      this.displayByMonth(period);\n    }),\n    actions: {\n      // dash () {\n      //   this.set('resultsToggle', false)\n\n      //   this.dash()\n      // },\n\n      display(model) {\n        this.display(model);\n      },\n      displayByMonth(period) {\n        this.displayByMonth(period);\n      },\n      displayByCustomMonth(mm, yyyy) {\n        this.displayByMonth({\n          mm,\n          yyyy\n        });\n      },\n      setSearchQuery() {\n        this.set('afterSearchQuery', this.filters?._data?.query);\n      }\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ijCAsOHq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"period\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@newFilters\\\",\\\"@newFiltersDefaultData\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[\\\"payments/virtualAccounts\\\",[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],true,[28,\\\"hash\\\",null,[[\\\"provider\\\"],[[23,0,[\\\"selectedProvider\\\"]]]]],[28,\\\"action\\\",[[23,0,[]],\\\"setSearchQuery\\\"],null],\\\"search\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"list\\\",\\\"itemLabelKey\\\",\\\"itemValueKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-virtualAccounts-lists-providers\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[24,[\\\"selectedProvider\\\"]],[28,\\\"perform\\\",[[24,[\\\"refreshTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"payments-virtual-accounts\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"month-year-selector\\\",[],[[\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustomMonth\\\",[24,[\\\"mm\\\"]],[24,[\\\"yyyy\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,2,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"query\\\",\\\"filters\\\",\\\"exportFilters\\\",\\\"lists\\\",\\\"selectedProvider\\\",\\\"tab\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"afterSearchQuery\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"exportFilters\\\"]],[24,[\\\"lists\\\"]],[24,[\\\"selectedProvider\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/virtual-accounts/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/table-view/panels-activity/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    crud: Ember.inject.service(),\n    hideExcl: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['payments/virtualAccounts/lists/statuses', 'filters/count']);\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {}\n      });\n      this.set('campaignFilters', campaignFilters);\n    },\n    actions: {\n      toggleView() {\n        this.toggleProperty('showDetails');\n      },\n      loadShopSource(shop) {\n        const filters = this.filters;\n        filters.setData('sourceKey', shop.getData('_key'));\n        this.onSearchTask.perform({\n          adapterName: 'payments/virtualAccounts',\n          filters\n        });\n      },\n      unloadShopSource() {\n        const filters = this.filters;\n        filters.setData('sourceKey', '');\n        this.onSearchTask.perform({\n          adapterName: 'payments/virtualAccounts',\n          filters\n        });\n      },\n      selectDispatchProcesses() {\n        const filters = this.filters;\n        const dispatchProcessesModels = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n        const dispatchProcesses = filters.getData('dispatchProcesses');\n        const dispatchProcessesCriterias = R.pipe(R.filter(dispatchProcess => {\n          return R.includes(dispatchProcess.getData('code'), dispatchProcesses);\n        }), R.map(R.path(['_data', 'criterias'])))(dispatchProcessesModels);\n        filters.setData('multipleDispatchProcessesCriterias', dispatchProcessesCriterias);\n      }\n    }\n  });\n});","define(\"client/pods/components/payments/virtual-accounts/table-view/panels-activity/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"n+Ye9PGf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"createdDateZ\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"paymentDateZ\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"payment date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"virtualAccountNumber\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"virtual account number\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"doc.ref\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"ref\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"doc.contact\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"doc.email\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"email\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"doc.docNo\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        #\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"doc.inclTotal\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive total\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"doc.source\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"bank\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"dispatch status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n            \\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"payment status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"isToggler\\\",\\\"hasToggleIconRight\\\",\\\"icon\\\",\\\"toggleIsOn\\\"],[true,true,\\\"fas fa-filter\\\",[24,[\\\"showFilters\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"_data.createdDateZ\\\",[22,\\\"filters\\\"],[24,[\\\"filters\\\",\\\"_data\\\",\\\"createdDateZ\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"_data.paymentDateZ\\\",[22,\\\"filters\\\"],[24,[\\\"filters\\\",\\\"_data\\\",\\\"paymentDateZ\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"virtualAccountNumber\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"ref\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"contact\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"email\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"docNo\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"isSearchBar\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"inclTotal\\\"]],[28,\\\"or\\\",[[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null],true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"resultsItemComponent\\\",\\\"isRunning\\\",\\\"onSearch\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[false,[24,[\\\"campaignFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"campaignFilters\\\",\\\"_data\\\",\\\"query\\\"]],[24,[\\\"filters\\\",\\\"_data\\\",\\\"sourceKey\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isReadonly\\\"]],\\\"channels/shop/campaigns/search-results\\\",[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"onSearchTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"channels/shop/campaigns\\\",[24,[\\\"campaignFilters\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadShopSource\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadShopSource\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"badge\\\",\\\"onClose\\\"],[[24,[\\\"isReadonly\\\"]],[28,\\\"count\\\",[[24,[\\\"filters\\\",\\\"_data\\\",\\\"paymentVirtualAccountStatus\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"onSearchTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[24,[\\\"filters\\\"]],\\\"payments/virtualAccounts\\\"]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"model\\\",\\\"multiSelect\\\",\\\"allowDeselect\\\",\\\"optionValueKey\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"payments-virtualAccounts-lists-statuses\\\"]],[24,[\\\"filters\\\"]],true,true,\\\"_data.value\\\",\\\"_data.paymentVirtualAccountStatus\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"detail\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[24,[\\\"detail\\\"]],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentTimestampZ\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"virtualAccountNumber\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"ref\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"email\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"docName\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"docType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]],\\\"attentionRequired\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"payment amount\\\"],null],false],[0,\\\" (\\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"paymentAmount\\\"]]],null],false],[0,\\\")\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/multiline-truncate\\\",[],[[\\\"@char\\\",\\\"@content\\\"],[10,[24,[\\\"model\\\",\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"atm_\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"provider\\\"]]],null]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"documents/status-tag\\\",null,[[\\\"model\\\",\\\"autoFetchLists\\\",\\\"dispatchProcesses\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\"]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-processes\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"payments/virtual-accounts/status-tag\\\",[],[[\\\"@model\\\"],[[22,\\\"model\\\"]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table dispatch-item__details-table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"doc\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,1,[\\\"_data\\\",\\\"qty\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\\n                  \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,1,[\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n                \\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[24,[\\\"hasTabLinks\\\"]],[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n                  \\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\\n              \\\"],[9],[0,\\\"\\\\n              \\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclPrice\\\"]]],null],false],[0,\\\"  \\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[28,\\\"percentage\\\",[[23,1,[\\\"_data\\\",\\\"taxRate\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"  \\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"exclAmt\\\"]]],null],false],[0,\\\"  \\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"taxAmt\\\"]]],null],false],[0,\\\"  \\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"inclAmt\\\"]]],null],false],[0,\\\"  \\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"details\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"5\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"  \\\\n                \\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideExcl\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"exclTotal\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"taxTotal\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-border__total\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"inclTotal\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"dispatch-item__separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/payments/virtual-accounts/table-view/panels-activity/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/brands-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ProductsBrandsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class ProductsBrandsEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"model\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || 'products/brands');\n      const model = this.args?.model;\n      const tab = this.args?.tab;\n      this.tab = tab;\n      const isEditing = this.args?.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    afterCreateRecordTask(model) {\n      this.args?.onAddItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args?.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask(model) {\n      this.args?.onRemoveItem?.(model);\n    }\n    cancel() {\n      this.args?.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/brands-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IJGDQjyp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@disabled\\\",\\\"@isEditing\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"brandsEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"brands\\\",[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]]]]],[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,6,[]],\\\"brand\\\",\\\"brands_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],\\\"label\\\",\\\"brand\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,9,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterRemoveRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterCreateRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/brands-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/files/files-default-image/component\", [\"exports\", \"client/pods/components/products/files/mixins/products-files\", \"ramda-adjunct\"], function (_exports, _productsFiles, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_productsFiles.default, (_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    fetchUploads: true,\n    fetchProduct: true,\n    init() {\n      this._super(...arguments);\n      const isToggler = RA.defaultWhen(RA.isNilOrEmpty, false, this.isToggler);\n      Ember.set(this, 'isToggler', isToggler);\n    },\n    toggle() {\n      const resourceKey = this.resourceKey;\n      if (!resourceKey) {\n        return;\n      }\n      const parentComponent = this.parentComponent;\n      const toggleProperty = this.toggleProperty;\n      return this.applicationService.toggleComponentProperty(parentComponent, toggleProperty);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggle\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggle\"), _obj), _obj));\n});","define(\"client/pods/components/products/files/files-default-image/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"O2TBXqrp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@height\\\",\\\"@width\\\",\\\"@resourceKey\\\",\\\"@toggleIsOn\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"product-image-thumb-container\\\"],[3,\\\"did-update\\\",[[28,\\\"perform\\\",[[24,[\\\"didInsertTask\\\"]],[24,[\\\"resourceKey\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-toggle-wrapper\\\",[[12,\\\"class\\\",\\\"flex-container-row\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggle\\\"]]],null]]]],[[\\\"@isToggler\\\",\\\"@disabled\\\",\\\"@toggleIsOn\\\",\\\"@hasToggleIconRight\\\"],[[23,0,[\\\"isToggler\\\"]],[28,\\\"if\\\",[[23,3,[]],false,true],null],[23,4,[]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"resourceKey\\\"]],[24,[\\\"product\\\",\\\"defaultImage\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@image\\\",\\\"@imageClassNames\\\",\\\"@transform\\\",\\\"@width\\\"],[[23,1,[]],[24,[\\\"product\\\",\\\"defaultImage\\\"]],\\\"u-v-align-auto\\\",[22,\\\"transform\\\"],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[\\\"u-no-image u-v-align-auto\\\",\\\"far fa-image\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/files/files-default-image/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/files/files-gallery-uploader/component\", [\"exports\", \"client/pods/components/products/files/mixins/products-files\"], function (_exports, _productsFiles) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_productsFiles.default, {\n    fetchUploads: true,\n    fetchProduct: true,\n    allowSetDefault: true,\n    allowUploads: false,\n    showDefaultImagePreview: true\n  });\n});","define(\"client/pods/components/products/files/files-gallery-uploader/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"R/9KYSso\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[[12,\\\"class\\\",\\\"has-text-centered\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\"],[[22,\\\"tab\\\"],true,true,[22,\\\"model\\\"],[22,\\\"resource\\\"],[22,\\\"resourceKey\\\"],[22,\\\"showDefaultImagePreview\\\"]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/files/files-gallery-uploader/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/files/mixins/products-files\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"client/utils/nventor\"], function (_exports, _emberConcurrency, _crud, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, {\n    adapterNameForSetDefault: 'products',\n    adapterName: 'products',\n    fetchProduct: true,\n    // @deprecated. remove this\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.fetchProduct) {\n        this.fetchProductsTask.perform();\n      }\n    },\n    didInsertTask: (0, _emberConcurrency.task)(function* (resourceKey) {\n      if (this.fetchProduct) {\n        this.fetchProductsTask.perform(resourceKey);\n      }\n    }),\n    fetchProductsTask: (0, _emberConcurrency.task)(function* (resourceKey) {\n      resourceKey = resourceKey || this.resourceKey;\n      const isNew = R.propOr(false, 'isNew')(this);\n      if (resourceKey && !isNew) {\n        const adapterName = 'products';\n        const product = yield this.dataManager.findRecord({\n          adapterName,\n          appendPath: `/${resourceKey}`\n        });\n        this.set('product', product);\n      }\n    }),\n    setAsDefaultImageTask: (0, _emberConcurrency.task)(function* (file) {\n      if (this.allowSetDefault) {\n        // no need to send entire record over, should only update record, not replace\n        const adapterNameForSetDefault = this.adapterNameForSetDefault;\n        const resourceKey = this.resourceKey;\n        const product = yield this.dataManager.findRecord({\n          adapterName: adapterNameForSetDefault,\n          appendPath: `/${resourceKey}`\n        });\n        const dirty = this.dataManager.getDirtyRecord(adapterNameForSetDefault, product);\n        dirty.setData('defaultImage', file._data.uuid);\n        try {\n          return yield this.dataManager.updateRecord({\n            adapterName: adapterNameForSetDefault,\n            dirty\n          });\n        } catch (err) {\n          this.set('errors', err.data);\n          _nventor.default.throw('setAsDefaultImageTask failed', err);\n        }\n      }\n    }).drop()\n  });\n});","define(\"client/pods/components/products/filter-group/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 ProductsFilterGroupComponent = _exports.default = (_dec = Ember.inject.service('products'), _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class ProductsFilterGroupComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"productsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"recurringFilters\", _descriptor2, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const recurringFilters = yield this.productsService.getRecurringFiltersTask.perform() || [];\n      this.recurringFilters = recurringFilters;\n    }\n    selectItem(item, isSelected) {\n      if (this?.args?.onSearchTask) {\n        this.args.onSearchTask.perform();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"recurringFilters\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectItem\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"selectItem\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/filter-group/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wJKvGquw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@crud\\\",\\\"@model\\\",\\\"@onSearchTask\\\",\\\"@listByTask\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container u-margin-bottom-20\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-20 flex-container-column\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-bottom-4 u-padding-8 filter-group-legend\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@leftIcon\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"u-width-80\\\",\\\"fas fa-search\\\",[23,2,[\\\"_data\\\",\\\"item\\\"]],[28,\\\"or\\\",[[23,3,[\\\"isRunning\\\"]],[23,4,[\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,3,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,2,[]]]]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-20 flex-container-column\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-bottom-4 u-padding-8 filter-group-legend\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"product code\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@leftIcon\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"u-width-80\\\",\\\"fas fa-search\\\",[23,2,[\\\"_data\\\",\\\"itemCode\\\"]],[28,\\\"or\\\",[[23,3,[\\\"isRunning\\\"]],[23,4,[\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,3,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,2,[]]]]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-20 flex-container-column\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-bottom-4 u-padding-8 filter-group-legend\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@leftIcon\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"u-width-80\\\",\\\"fas fa-search\\\",[23,2,[\\\"_data\\\",\\\"price\\\"]],[28,\\\"or\\\",[[23,3,[\\\"isRunning\\\"]],[23,4,[\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,3,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,2,[]]]]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-20 flex-container-column\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-bottom-4 u-padding-8 filter-group-legend\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"tax on sales\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@leftIcon\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"u-width-80\\\",\\\"fas fa-search\\\",[23,2,[\\\"_data\\\",\\\"salesTaxRate\\\"]],[28,\\\"or\\\",[[23,3,[\\\"isRunning\\\"]],[23,4,[\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,3,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,2,[]]]]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row filter-group-tags-container u-margin-10\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,1,[\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],[23,2,[\\\"_data\\\",\\\"statuses\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[false,[23,1,[\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,2,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,1,[\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,2,[\\\"_data\\\",\\\"hasImages\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,1,[\\\"lists\\\",\\\"products-lists-setTypesFilters\\\"]],[23,2,[\\\"_data\\\",\\\"setTypes\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@value\\\"],[[23,0,[\\\"recurringFilters\\\"]],[23,2,[\\\"_data\\\",\\\"recurringFilters\\\"]]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,5,[]]]],{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-20 \\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@classNames\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@onSearchTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,\\\"u-height-300 u-width-80 u-border u-padding-10 u-border-radius-4 u-overflow-y-scroll u-overflow-x-hidden\\\",\\\"product tags\\\",\\\"filter-group-legend\\\",\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],[22,\\\"tab\\\"],false,[23,1,[\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,2,[]],true,\\\"_data._key\\\",\\\"_data.tags\\\",true,[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-20\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@classNames\\\",\\\"@hasDivider\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@onSearchTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,\\\"u-height-300 u-width-80 u-border u-padding-10 u-border-radius-4 u-overflow-y-scroll u-overflow-x-hidden\\\",true,\\\"status\\\",\\\"filter-group-legend\\\",true,[23,1,[\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],[23,2,[]],true,true,\\\"_data.value\\\",\\\"_data.statuses\\\",true,[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-20\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@classNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@onSearchTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"has images\\\",\\\"filter-group-legend\\\",\\\"u-height-300 u-width-80 u-border u-padding-10 u-border-radius-4 u-overflow-y-scroll u-overflow-x-hidden\\\",true,\\\"u-margin-y-15\\\",true,[23,1,[\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,2,[]],false,true,\\\"_data.value\\\",\\\"_data.hasImages\\\",true,[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-20\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@classNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@onSearchTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"product type\\\",\\\"filter-group-legend\\\",\\\"u-height-300 u-width-80 u-border u-padding-10 u-border-radius-4 u-overflow-y-scroll u-overflow-x-hidden\\\",true,\\\"u-margin-y-15\\\",true,[23,1,[\\\"lists\\\",\\\"products-lists-setTypesFilters\\\"]],[23,2,[]],true,\\\"_data.value\\\",\\\"_data.setTypes\\\",true,[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-padding-20\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@classNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"recurring schedules\\\",\\\"filter-group-legend\\\",\\\"u-height-300 u-width-80 u-border u-padding-10 u-border-radius-4 u-overflow-y-scroll u-overflow-x-hidden\\\",true,\\\"u-margin-y-15\\\",[23,0,[\\\"recurringFilters\\\"]],[23,2,[]],true,\\\"_data.value\\\",\\\"_data.recurringFilters\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/filter-group/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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 ProductsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('products'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _class = class ProductsFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"recurringFilters\", _descriptor4, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      this.crud.addLists(this, [{\n        name: 'taxes',\n        appendPath: 'products'\n      }, 'filters/count', 'products/brands', 'products/lists/tags', 'products/lists/display-tags', 'products/lists/product-display-position', 'products/lists/types', 'products/lists/setTypes', 'products/lists/tracking', 'products/lists/invoiceDescriptions', 'products/lists/editorSubPanels', 'products/lists/filters/extra', 'settings/roundingAuto', 'units', 'units/dimensions', 'units/weight', 'statuses', 'products/lists/pageImportBtnSubPanels', 'products/lists/sync', 'contacts/transporters']);\n      const recurringFilters = yield this.productsService.getRecurringFiltersTask.perform() || [];\n      this.recurringFilters = recurringFilters;\n    }\n    get showStatusTags() {\n      // @TODO: move to filter model\n      const statuses = this?.crud?.lists?.statuses || [];\n      const selectedStatuses = this.args.filters?._data?.statuses || [];\n      if (selectedStatuses.length === 0) {\n        return false;\n      }\n      if (selectedStatuses.length === statuses.length) {\n        return false;\n      }\n      return true;\n    }\n    get showResetFilter() {\n      // @TODO: move to filter model\n      const filtersData = this?.args?.filters?._data;\n      if (RA.isNilOrEmpty(filtersData)) {\n        return false;\n      }\n      const statuses = filtersData.statuses;\n      const hasImages = filtersData.hasImages;\n      const item = filtersData.item;\n      const itemCode = filtersData.itemCode;\n      const price = filtersData.price;\n      const types = filtersData.types || [];\n      const setTypes = filtersData.setTypes;\n      const tags = filtersData.tags;\n      if (statuses.length !== 5 || tags.length !== 0 || types.length !== 0 || setTypes.length !== 0 || RA.isNilOrEmpty(hasImages) !== true || item !== '' || itemCode !== '' || price !== '') {\n        return true;\n      }\n      return false;\n    }\n    *updateFiltersTask() {\n      // @TODO: how can this be improved?\n      const filters = this.args.filters || {};\n      Ember.set(filters, '_data', filters?._data || {}); // reset data\n\n      return yield this.args.onSearchTask(...arguments);\n    }\n    *clearSelectedItemsTask() {\n      yield this?.crud?.reloadSearchRecordsTask.perform({\n        filters: this.args.filters,\n        reset: true\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"recurringFilters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateFiltersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedItemsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedItemsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FAhRxVZi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@listByTask\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@isGuest\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"product name\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"code\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"product code\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"barcode\\\"]],[28,\\\"or\\\",[[23,2,[]],[23,4,[\\\"isRunning\\\"]]],null],true,[23,3,[]],[28,\\\"tt\\\",[\\\"barcode\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"salesTaxRate\\\"]],[28,\\\"or\\\",[[23,2,[]],[23,4,[\\\"isRunning\\\"]]],null],true,[23,3,[]],[28,\\\"tt\\\",[\\\"tax on sales\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"purchasesTaxRate\\\"]],[28,\\\"or\\\",[[23,2,[]],[23,4,[\\\"isRunning\\\"]]],null],true,[23,3,[]],[28,\\\"tt\\\",[\\\"tax on purchases\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"  \\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[28,\\\"count\\\",[[23,1,[\\\"_data\\\",\\\"brands\\\"]]],null],\\\"brand\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@addItemOptions\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"brand\\\",\\\"filter-group-legend\\\",\\\"products/brands\\\",\\\"products/brands-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"brands\\\",true]]],[23,6,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-brands\\\"]],[23,1,[]],[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\"],[true,true]]],true,\\\"_data._key\\\",\\\"_data.brands\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[28,\\\"count\\\",[[23,1,[\\\"_data\\\",\\\"tags\\\"]]],null],\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"product tags\\\",\\\"filter-group-legend\\\",\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],[23,6,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[]],true,\\\"_data._key\\\",\\\"_data.tags\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[28,\\\"count\\\",[[23,1,[\\\"_data\\\",\\\"units\\\"]]],null],\\\"units\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"units\\\",\\\"filter-group-legend\\\",[23,6,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],[23,1,[]],true,\\\"_data._key\\\",\\\"_data.units\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[28,\\\"count\\\",[[23,1,[\\\"_data\\\",\\\"statuses\\\"]]],null],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@hasDivider\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[false,true,\\\"status\\\",\\\"filter-group-legend\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,1,[]],true,true,\\\"_data.value\\\",\\\"_data.statuses\\\",true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[28,\\\"count\\\",[[23,1,[\\\"_data\\\",\\\"types\\\"]]],null],\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[\\\"type\\\",\\\"filter-group-legend\\\",true,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[23,1,[]],true,\\\"_data.value\\\",\\\"_data.types\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[28,\\\"sum\\\",[[28,\\\"count\\\",[[23,1,[\\\"_data\\\",\\\"setTypes\\\"]]],null],[23,1,[\\\"_data\\\",\\\"hideVariantChildrenInProductsSearch\\\"]]],null],\\\"product type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[\\\"product type\\\",\\\"filter-group-legend\\\",true,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypesFilters\\\"]],[23,1,[]],true,\\\"_data.value\\\",\\\"_data.setTypes\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[false,true,\\\"only show variant parents\\\",[23,1,[\\\"_data\\\",\\\"hideVariantChildrenInProductsSearch\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[28,\\\"count\\\",[[23,1,[\\\"_data\\\",\\\"recurringFilters\\\"]]],null],\\\"recurring schedules\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[\\\"recurring schedules\\\",\\\"filter-group-legend\\\",true,\\\"u-margin-y-15\\\",[23,0,[\\\"recurringFilters\\\"]],[23,1,[]],true,\\\"_data.value\\\",\\\"_data.recurringFilters\\\",true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@badge\\\",\\\"@label\\\"],[[23,5,[]],[28,\\\"badgeCount\\\",[[23,1,[\\\"_data\\\",\\\"hasImages\\\"]]],null],\\\"has images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[\\\"has images\\\",\\\"filter-group-legend\\\",true,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,1,[]],false,true,\\\"_data.value\\\",\\\"_data.hasImages\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"      \\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,false,[23,1,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--tags\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags-container tags-container--margin-right-all\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"statuses\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,1,[\\\"_data\\\",\\\"statuses\\\"]],true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"brands\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-brands\\\"]],[23,1,[\\\"_data\\\",\\\"brands\\\"]],\\\"_data._key\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"tags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"units\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],[23,1,[\\\"_data\\\",\\\"units\\\"]],\\\"_data._key\\\",true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"setTypes\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypesFilters\\\"]],[23,1,[\\\"_data\\\",\\\"setTypes\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"types\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[23,1,[\\\"_data\\\",\\\"types\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"hideVariantChildrenInProductsSearch\\\"]],true],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\",\\\"@onDeselect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-extra\\\"]],\\\"hideVariantChildrenInProductsSearch\\\",true,[23,1,[\\\"deselectParam\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,1,[\\\"_data\\\",\\\"types\\\"]],[23,1,[\\\"_data\\\",\\\"setTypes\\\"]],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"hideVariantChildrenInProductsSearch\\\"]],true],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"recurringFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,true,[23,0,[\\\"recurringFilters\\\"]],[23,1,[\\\"_data\\\",\\\"recurringFilters\\\"]],true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"hasImages\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,1,[\\\"_data\\\",\\\"hasImages\\\"]],true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"hide\\\",\\\"fas fa-angle-up\\\",[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,1,[]],\\\"showFilters\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,7,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,1,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,5,[]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,1,[]],true]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,5,[]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/inventory-editor-th/component\", [\"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 = Ember.Component.extend({\n    tagName: 'tr',\n    classNames: ['table-form__header-tr'],\n    init() {\n      this.crud.addLists(this, ['filters/count']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/products/inventory/inventory-editor-th/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xWec+Wxi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@hasFilters\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isTableView\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[28,\\\"perform\\\",[[23,3,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,1,[]]]]]],null],true,false,[23,1,[\\\"_data\\\",\\\"countLabel\\\"]],[23,1,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"adjustment\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-search\\\"]]],false],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left u-no-wrap\\\"],[8],[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"price\\\"],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@icon\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-filter\\\",[23,1,[\\\"showFilters\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/inventory-editor-th/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/inventory-editor/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"client/mixins/date\", \"client/mixins/errors\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, _crud, _date, _errors, RA) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _errors.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'products/inventory/adjustments',\n    init() {\n      this.crud.addLists(this, ['units', 'products/inventory/lists/adjustments']);\n      this._super(...arguments);\n      this.setup();\n    },\n    setup(direction) {\n      const productsFilters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'productsList',\n          types: [this.get('constants.productTypes.inventory')],\n          tracking: this.get('constants.productTracking.on'),\n          excludes: [{\n            key: 'setType',\n            value: 'isSetWithChoices'\n          }, {\n            key: 'setType',\n            value: 'hasVariants'\n          }, {\n            key: 'setType',\n            value: 'isSet'\n          }]\n        }\n      });\n      this.set('productsFilters', productsFilters);\n      if (this.isNew) {\n        const dateZ = this.getStartOfDayZ();\n        direction = direction || 'increase';\n        const description = this.getDescription(direction);\n        const data = {\n          dateZ,\n          adjustment: direction,\n          description\n        };\n        const model = this.setupNewRecord({\n          adapterName: this.adapterName,\n          data\n        });\n        this.set('model', model);\n        const defaultProduct = this.defaultProduct;\n        if (defaultProduct) {\n          model.setData('itemKey', defaultProduct.getData('_key'));\n          model.setData('itemCode', defaultProduct.getData('code'));\n          this.loadProductTask.perform(defaultProduct);\n        } else {\n          this.set('product', '');\n        }\n      } else {\n        this.set('product', '');\n      }\n    },\n    isIncrease: Ember.computed('model._data.adjustment', function () {\n      if (this.get('model._data.adjustment') === 'increase') {\n        return true;\n      }\n      return false;\n    }),\n    isReadonly: Ember.computed('isEditing', function () {\n      return !this.isEditing;\n    }),\n    isItemReadonly: Ember.computed('isReadonly', function () {\n      if (this.isReadonly) {\n        return true;\n      }\n      return this.defaultProduct;\n    }),\n    getDescription(direction) {\n      return this.intl.t('inventory adjustment') + ': ' + this.intl.t(direction);\n    },\n    saveInventoryAdjustmentTask: (0, _emberConcurrency.task)(function* () {\n      const isNew = this.isNew;\n      if (isNew) {\n        const adapterName = this.adapterName;\n        const model = this.model;\n        const saved = yield this.crud.createRecordTask.perform({\n          adapterName,\n          model\n        });\n        this.reset();\n        if (this.onAfterCreateRecordTask) {\n          this.onAfterCreateRecordTask();\n        }\n      }\n    }),\n    searchProductsTask: (0, _emberConcurrency.task)(function* ({\n      adapterName = 'products',\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        const filters = this.productsFilters;\n        filters.setData('query', query);\n        const results = yield this.searchInputTask.perform({\n          adapterName,\n          filters\n        }, query);\n        return results;\n      }\n    }),\n    loadProductTask: (0, _emberConcurrency.task)(function* (product) {\n      this.set('product', product);\n      const productsService = this.productsService;\n      const model = this.model;\n      const itemKey = model.getData('itemKey');\n      const {\n        preferredHistoryData\n      } = yield productsService.get('fetchPurchasesHistoryTask').perform(model, 'others', product, itemKey);\n      model.loadProduct(product, preferredHistoryData);\n    }),\n    reset() {\n      const direction = this.model.getData('adjustment');\n      this.setup(direction);\n    },\n    resetProduct() {\n      const detail = this.model;\n      detail.setData('item', '');\n      detail.setData('itemCode', '');\n      detail.setData('itemKey', '');\n      this.set('product', '');\n    },\n    setDescription(adjustment) {\n      const description = this.getDescription(adjustment.getData('value'));\n      this.model.setData('description', description);\n      if (description === 'decrease') {\n        this.model.setData('exclPrice', '');\n      }\n    },\n    setupDirtyModel() {\n      const model = this?.model ?? {};\n      if (RA.isNilOrEmpty(model)) {\n        return;\n      }\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model\n      });\n\n      // this.setDefaults(dirty)\n      this.set('originalModel', model);\n      this.set('dirtyModel', dirty);\n      this.set('isEditing', true);\n    },\n    cancel() {\n      const dirty = this.dirtyModel;\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty\n      });\n      this.set('dirtyModel', '');\n      this.set('isEditing', false);\n      // this.errors = false\n    }\n  }, _applyDecoratedDescriptor(_obj, \"reset\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"reset\"), _obj), _applyDecoratedDescriptor(_obj, \"resetProduct\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"resetProduct\"), _obj), _applyDecoratedDescriptor(_obj, \"setDescription\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"setDescription\"), _obj), _applyDecoratedDescriptor(_obj, \"setupDirtyModel\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"setupDirtyModel\"), _obj), _applyDecoratedDescriptor(_obj, \"cancel\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"cancel\"), _obj), _obj));\n});","define(\"client/pods/components/products/inventory/inventory-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gO1h+myd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onAfterTask\\\",\\\"@rowIndex\\\",\\\"@isTableView\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateZ\\\",[23,0,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"dateZ\\\"]],[23,0,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"dateZ\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"onSelect\\\",\\\"value\\\"],[true,\\\"table-form__input table-form__input--40\\\",true,[23,0,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-inventory-lists-adjustments\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[28,\\\"fn\\\",[[23,0,[\\\"setDescription\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"adjustment\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"adjustment\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-padding--3\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isIncrease\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-arrow-up has-text-primary\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-arrow-down has-text-danger\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@inputPvtClassNames\\\",\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@readonly\\\",\\\"@isRunning\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@onSearch\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"span\\\",\\\"table-form__input table-form__input--120\\\",\\\"search products\\\",[22,\\\"isItemReadonly\\\"],false,[22,\\\"productsList\\\"],\\\"_data._key\\\",\\\"_data.name\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"itemCode\\\"]],\\\"_data.code\\\",\\\"_data._key\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"fas fa-bookmark\\\",[22,\\\"isReadonly\\\"],[23,0,[\\\"searchProductsTask\\\",\\\"isRunning\\\"]],[22,\\\"productsFilters\\\"],true,[28,\\\"perform\\\",[[23,0,[\\\"searchProductsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"itemCode\\\"]]]]]],null],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"perform\\\",[[24,[\\\"loadProductTask\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"resetProduct\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"itemCode\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"classNames\\\",\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"value\\\"],[\\\"u-full-width\\\",\\\"table-form__input table-form__input--200\\\",true,[24,[\\\"model\\\",\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"item\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"value\\\"],[\\\"table-form__input table-form__input--200\\\",[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"description\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"label\\\",\\\"value\\\",\\\"tab\\\",\\\"addItemComponent\\\",\\\"addItemOptions\\\"],[\\\"table-form__input table-form__input--40\\\",true,[24,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],\\\"_data._key\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"unit\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"unitKey\\\"]],[24,[\\\"tab\\\"]],\\\"units-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"units\\\",true]]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"unit\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"onInput\\\",\\\"value\\\"],[\\\"table-form__input table-form__input--80\\\",[24,[\\\"isReadonly\\\"]],[24,[\\\"onSumTotals\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"qty\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"qty\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"table-form__td--no-border-right \\\",[28,\\\"if\\\",[[24,[\\\"isIncrease\\\"]],\\\"\\\",\\\"u-disabled-pointer\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isIncrease\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@onInput\\\",\\\"@value\\\"],[\\\"table-form__input table-form__input--90\\\",[22,\\\"isReadonly\\\"],[22,\\\"onSumTotals\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"exclPrice\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"products/price-selectors/price-selector\\\",null,[[\\\"itemKey\\\",\\\"isReadonly\\\",\\\"product\\\",\\\"isTaxExclusive\\\",\\\"docType\\\",\\\"isRunning\\\",\\\"onFetchHistoryTask\\\",\\\"onSelect\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"product\\\"]],true,\\\"purchases\\\",[24,[\\\"productsService\\\",\\\"fetchPurchasesHistoryTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"productsService\\\",\\\"fetchPurchasesHistoryTask\\\"]],[24,[\\\"model\\\"]],\\\"others\\\"],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"productsService\\\",\\\"setPrice\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"exclPrice\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"classNames\\\",\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"u-full-width\\\",\\\"table-form__input table-form__input--200\\\",[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"notes\\\"]],\\\"notes\\\"]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"notes\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@onSubmit\\\",\\\"@icon\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"setupDirtyModel\\\"]]],null],\\\"fas fa-pen\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[24,[\\\"model\\\"]],[23,1,[]]]]]],null],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"loadProductTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"cancel\\\",[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"loadProductTask\\\",\\\"isRunning\\\"]]],null]]]],[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save\\\",[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"loadProductTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[24,[\\\"model\\\"]],[23,0,[\\\"cancel\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[22,\\\"isReadonly\\\"],[28,\\\"fn\\\",[[23,0,[\\\"reset\\\"]]],null]]]],[0,\\\"\\\\n          \\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveInventoryAdjustmentTask\\\",\\\"isRunning\\\"]],\\\"save\\\",[22,\\\"disabled\\\"],[28,\\\"perform\\\",[[23,0,[\\\"saveInventoryAdjustmentTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"products/inventory/inventory-manager\\\",null,[[\\\"product\\\",\\\"allowAdjustment\\\"],[[24,[\\\"product\\\"]],false]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/inventory-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/inventory-manager/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\"], function (_exports, _emberConcurrency, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    server: Ember.inject.service(),\n    allowAdjustment: true,\n    filtersAdapterName: 'products/inventory/filters',\n    productsService: Ember.inject.service('products'),\n    title: '',\n    fetchChildrenInventory: true,\n    init() {\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      if (!this.fetchChildrenInventory) {\n        return;\n      }\n      const product = this.product;\n      const children = yield this.productsService.fetchChildrenInventoryTask.perform(product);\n      this.set('_children', children);\n      return children;\n    }),\n    manualRecacheProductInventoryTask: (0, _emberConcurrency.task)(function* () {\n      const product = this.product;\n      const response = yield this.server.call('POST', 'api/protected/products/manualRecacheProductInventory', {\n        productKeys: [product?._data?._key]\n      });\n      return response?.data ?? {};\n    }),\n    childrenInventory: Ember.computed('_children.[]', 'children.[]', function () {\n      if (!this.fetchChildrenInventory) {\n        return this.children;\n      }\n      return this._children;\n    }),\n    _title: Ember.computed('title', 'product.{hasVariantsOrChoices,_data.isSet,_data.name}', function () {\n      const hasVariantsOrChoices = this.get('product.hasVariantsOrChoices');\n      if (hasVariantsOrChoices) {\n        return '';\n      }\n      const isSet = this.get('product._data.isSet');\n      if (isSet) {\n        return this.get('product._data.name');\n      }\n      return this.title;\n    }),\n    fetchAdjustmentsTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.filters;\n      const product = this.product;\n      const searchSettings = {\n        adapterName: 'products/inventory/adjustments',\n        appendPath: product.getData('_key'),\n        resultsProperty: 'results',\n        resultsToggle: '',\n        filters\n      };\n      const adjustmentsData = yield this.searchRecordsTask.perform(searchSettings);\n      this.set('adjustmentsData', adjustmentsData);\n      return adjustmentsData;\n    })\n  });\n});","define(\"client/pods/components/products/inventory/inventory-manager/inventory-display/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/products/inventory/inventory-manager/inventory-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aI7WF2Z6\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"product\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,[24,[\\\"product\\\"]],\\\"inventory book qty\\\",\\\"_data.onBookQty\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"onBookQty\\\"]],[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"onHandQty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"product\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,[24,[\\\"product\\\"]],\\\"inventory on hand qty\\\",\\\"_data.onHandQty\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"product\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,[24,[\\\"product\\\"]],\\\"inventory available\\\",\\\"_data.availableQty\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesInvoicesUndispatchedQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"isEmptyWarning\\\",\\\"product\\\",\\\"translate\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,false,[24,[\\\"product\\\"]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"sales\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"undispatched\\\"],null]],null],\\\"_data.salesInvoicesUndispatchedQty\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesConsignmentsUndispatchedQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"isEmptyWarning\\\",\\\"product\\\",\\\"translate\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,false,[24,[\\\"product\\\"]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"sales consignment\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"undispatched\\\"],null]],null],\\\"_data.salesConsignmentsUndispatchedQty\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesOnConsignmentQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"isEmptyWarning\\\",\\\"product\\\",\\\"translate\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,false,[24,[\\\"product\\\"]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"sales\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"consignments\\\"],null],\\\":\\\"],null],\\\"_data.salesOnConsignmentQty\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesOrdersPendingQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"isEmptyWarning\\\",\\\"product\\\",\\\"translate\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,false,[24,[\\\"product\\\"]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"sales\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"orders\\\"],null]],null],\\\"_data.salesOrdersPendingQty\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"purchasesOnConsignmentQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"isEmptyWarning\\\",\\\"product\\\",\\\"translate\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,false,[24,[\\\"product\\\"]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"purchases\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"consignments\\\"],null]],null],\\\"_data.purchasesOnConsignmentQty\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"purchasesOrdersPendingQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"isEmptyWarning\\\",\\\"product\\\",\\\"translate\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,false,[24,[\\\"product\\\"]],false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"purchases\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"orders\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"pending\\\"],null]],null],\\\"_data.purchasesOrdersPendingQty\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/inventory-manager/inventory-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/inventory-manager/inventory-table/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/products/inventory/inventory-manager/inventory-table/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jfnmFWbi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@title\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,1,[]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"product\\\",\\\"isSetOrHasVariants\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inventory book qty\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-indented\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"product\\\",\\\"qtyParam\\\"],[true,[24,[\\\"product\\\"]],\\\"_data.onBookQty\\\"]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"onBookQty\\\"]],[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"onHandQty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"inventory on hand qty\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-indented\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"product\\\",\\\"qtyParam\\\"],[true,[24,[\\\"product\\\"]],\\\"_data.onHandQty\\\"]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inventory available\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-indented\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"product\\\",\\\"qtyParam\\\"],[true,[24,[\\\"product\\\"]],\\\"_data.availableQty\\\"]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesInvoicesUndispatchedQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-indented\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"sales\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"undispatched\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesInvoicesUndispatchedQty\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesConsignmentsUndispatchedQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-indented\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"sales consignment\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"undispatched\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesConsignmentsUndispatchedQty\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesOnConsignmentQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-indented\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"sales\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"consignments\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesOnConsignmentQty\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesOrdersPendingQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-indented\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"sales\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"orders\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"pending\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"salesOrdersPendingQty\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"purchasesOnConsignmentQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-indented\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"purchases\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"consignments\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"purchasesOnConsignmentQty\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"purchasesOrdersPendingQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-indented\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"purchases\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"orders\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"tt\\\",[\\\"pending\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"product\\\",\\\"inventory\\\",\\\"_data\\\",\\\"purchasesOrdersPendingQty\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/inventory-manager/inventory-table/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/inventory-manager/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"x8zWEQ59\",\n    \"block\": \"{\\\"symbols\\\":[\\\"child\\\",\\\"onCloseDialogAction\\\",\\\"@isTable\\\",\\\"@product\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"hasInventory\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,4,[\\\"hasVariantsOrChoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"products/inventory/inventory-manager/inventory-table\\\",null,[[\\\"product\\\",\\\"allowAdjustment\\\",\\\"title\\\"],[[23,4,[]],[24,[\\\"allowAdjustment\\\"]],[23,0,[\\\"_title\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"products/inventory/inventory-manager/inventory-display\\\",null,[[\\\"product\\\",\\\"allowAdjustment\\\",\\\"title\\\"],[[23,4,[]],[24,[\\\"allowAdjustment\\\"]],[23,0,[\\\"_title\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[\\\"isSetOrHasVariants\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allowAdjustment\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"classNames\\\"],[\\\"has-text-centered\\\"]],{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"label\\\",\\\"onSubmit\\\"],[true,\\\"adjust inventory\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchAdjustmentsTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n                \\\\n                \\\"],[1,[22,\\\"products/inventory/inventory-editor-th\\\"],false],[0,\\\"\\\\n\\\\n                \\\"],[1,[28,\\\"products/inventory/inventory-editor\\\",null,[[\\\"isNew\\\",\\\"isEditing\\\",\\\"defaultProduct\\\",\\\"onAfterCreateRecordTask\\\"],[true,true,[24,[\\\"product\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchAdjustmentsTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-table__row-separator\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@topFiltersComponent\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@results\\\",\\\"@tableClassNames\\\",\\\"@onPaginationTask\\\",\\\"@paginationIsFooter\\\",\\\"@tableViewOptions\\\"],[\\\"products/inventory/table-view/detail-row\\\",\\\"products/inventory/table-view/filters-advanced\\\",[23,0,[\\\"filters\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"new-table-view--data\\\",[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],false,[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"onAfterTask\\\"],[\\\"products/inventory/adjustments\\\",[23,0,[\\\"fetchAdjustmentsTask\\\"]]]]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@classNames\\\",\\\"@betaPath\\\"],[\\\"has-text-centered\\\",\\\"features.allowRecalculateInventory\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"recalculate inventory\\\",[23,0,[\\\"manualRecacheProductInventoryTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"manualRecacheProductInventoryTask\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"childrenInventory\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"products/inventory/inventory-manager\\\",null,[[\\\"title\\\",\\\"isTable\\\",\\\"product\\\",\\\"allowAdjustment\\\"],[[23,1,[\\\"_data\\\",\\\"name\\\"]],[23,3,[]],[23,1,[]],[24,[\\\"allowAdjustment\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/inventory-manager/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/inventory-status-tooltip/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\", \"ramda\"], function (_exports, _crud, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    tagName: '',\n    isTable: false,\n    allowAdjustment: true,\n    autoFetchProduct: true,\n    isEmptyWarning: true,\n    qtyParam: '_data.availableQty',\n    productsService: Ember.inject.service('products'),\n    didInsertElement() {\n      this._super(...arguments);\n      this.fetchProductTask.perform();\n    },\n    qty: Ember.computed('qtyParam', 'product._data.isSet', 'product.inventory._data.{onHandQty,onBookQty,salesInvoicesUndispatchedQty,salesConsignmentsUndispatchedQty,salesOrdersPendingQty,salesConsignmentPendingQty,purchasesPendingQty,purchasesConsignmentPendingQty,availableQty}', function () {\n      const isSet = R.pathOr(false, ['product', '_data', 'isSet'])(this);\n      if (isSet) {\n        return '*';\n      }\n      const inventory = this.get('product.inventory');\n      if (inventory) {\n        const qtyParam = this.qtyParam;\n        return inventory.get(qtyParam);\n      }\n      return '0';\n    }),\n    isEmpty: Ember.computed('isEmptyWarning', 'qty', 'product.inventory._data.{onHandQty,onBookQty,salesInvoicesUndispatchedQty,salesConsignmentsUndispatchedQty,salesOrdersPendingQty,salesConsignmentPendingQty,purchasesPendingQty,purchasesConsignmentPendingQty,availableQty}', function () {\n      if (this.isEmptyWarning) {\n        const qty = this.qty;\n        const inventory = this.get('product.inventory');\n        if (inventory) {\n          return inventory.isLessThanEqualQty(0, qty);\n        }\n      }\n      return false;\n    }),\n    isAlmostEmpty: Ember.computed('isEmpty', 'isEmptyWarning', 'qty', 'product.almostEmptyQtyWarningThreshold', 'product.inventory._data.{onHandQty,onBookQty,salesInvoicesUndispatchedQty,salesConsignmentsUndispatchedQty,salesOrdersPendingQty,salesConsignmentPendingQty,purchasesPendingQty,purchasesConsignmentPendingQty,availableQty}', function () {\n      if (this.isEmpty) {\n        return false;\n      }\n      if (!this.isEmptyWarning) {\n        return false;\n      }\n      const qty = this.qty;\n      const inventory = this.get('product.inventory');\n      if (!inventory) {\n        return false;\n      }\n      const almostEmptyQtyWarningThreshold = Number(this?.product?.almostEmptyQtyWarningThreshold);\n      if (Number.isNaN(almostEmptyQtyWarningThreshold) || almostEmptyQtyWarningThreshold <= 0) {\n        return false;\n      }\n      return inventory.isLessThanEqualQty(almostEmptyQtyWarningThreshold, qty);\n    }),\n    fetchProductTask: (0, _emberConcurrency.task)(function* () {\n      const itemKey = this.itemKey;\n      const autoFetchProduct = this.autoFetchProduct;\n      if (!this.get('product.inventory') && itemKey && autoFetchProduct) {\n        const product = yield this.findTask.perform({\n          adapterName: 'products',\n          appendPath: itemKey\n        });\n        this.set('product', product);\n      }\n      const children = yield this.productsService.fetchChildrenInventoryTask.perform(this.product);\n      this.set('children', children);\n    }),\n    actions: {\n      togglePopup() {\n        this.toggleProperty('showPopup');\n      }\n    }\n  });\n});","define(\"client/pods/components/products/inventory/inventory-status-tooltip/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mTkO/1nF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@showQty\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"hasInventory\\\"]]],null,{\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchProductTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@icon\\\",\\\"@btnClassNames\\\",\\\"@iconClassName\\\",\\\"@hasToggleIconRight\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"qty\\\"]],false,[28,\\\"if\\\",[[23,2,[]],\\\"\\\",\\\"fas fa-info-circle\\\"],null],[28,\\\"if\\\",[[23,0,[\\\"isEmpty\\\"]],\\\"has-text-danger\\\",\\\"\\\"],null],[28,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,2,[]]],null],[23,0,[\\\"isEmpty\\\"]]],null],\\\"has-text-danger\\\",\\\"\\\"],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"products/inventory/inventory-manager\\\",null,[[\\\"product\\\",\\\"isTable\\\",\\\"allowAdjustment\\\",\\\"fetchChildrenInventory\\\",\\\"children\\\"],[[24,[\\\"product\\\"]],true,[24,[\\\"allowAdjustment\\\"]],false,[23,0,[\\\"children\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/inventory-status-tooltip/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/inventory-status/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'span',\n    translate: true,\n    isEmptyWarning: true,\n    classNames: [''],\n    // keep yellow-path ready for future enablement\n    // classNameBindings: ['hasTagClass:tag', 'isEmpty:is-danger', 'isAlmostEmpty:is-warning'],\n    classNameBindings: ['hasTagClass:tag', 'isEmpty:is-danger'],\n    hasTagClass: Ember.computed('product.hasInventory', 'isTag', function () {\n      if (this.get('product.hasInventory') && this.isTag) {\n        return true;\n      }\n      return false;\n    }),\n    qty: Ember.computed('qtyParam', 'product._data.isSet', 'product.inventory._data.{onHandQty,onBookQty,salesInvoicesUndispatchedQty,salesConsignmentsUndispatchedQty,salesOrdersPendingQty,salesConsignmentPendingQty,purchasesPendingQty,purchasesConsignmentPendingQty,availableQty}', function () {\n      const isSet = R.pathOr(false, ['product', '_data', 'isSet'])(this);\n      if (isSet) {\n        return '*';\n      }\n      const inventory = this.get('product.inventory');\n      if (inventory) {\n        const qtyParam = this.qtyParam;\n        return Number(inventory.get(qtyParam));\n      }\n      return 0;\n    }),\n    isEmpty: Ember.computed('isEmptyWarning', 'qty', 'product.inventory._data.{onHandQty,onBookQty,salesInvoicesUndispatchedQty,salesConsignmentsUndispatchedQty,salesOrdersPendingQty,salesConsignmentPendingQty,purchasesPendingQty,purchasesConsignmentPendingQty,availableQty}', function () {\n      if (this.isEmptyWarning) {\n        const qty = this.qty;\n        if (qty === '*') {\n          return false;\n        }\n        const inventory = this.get('product.inventory');\n        if (inventory) {\n          return inventory.isLessThanEqualQty(0, qty);\n        }\n      }\n      return false;\n    })\n\n    // isAlmostEmpty: computed(\n    //   'isEmpty',\n    //   'isEmptyWarning',\n    //   'qty',\n    //   'product.almostEmptyQtyWarningThreshold',\n    //   'product.inventory._data.{onHandQty,onBookQty,salesInvoicesUndispatchedQty,salesConsignmentsUndispatchedQty,salesOrdersPendingQty,salesConsignmentPendingQty,purchasesPendingQty,purchasesConsignmentPendingQty,availableQty}',\n    //   function () {\n    //     if (this.isEmpty) {\n    //       return false\n    //     }\n    //\n    //     if (!this.isEmptyWarning) {\n    //       return false\n    //     }\n    //\n    //     const qty = this.qty\n    //     const inventory = this.get('product.inventory')\n    //     if (!inventory) {\n    //       return false\n    //     }\n    //\n    //     const almostEmptyQtyWarningThreshold = Number(this?.product?.almostEmptyQtyWarningThreshold)\n    //     if (Number.isNaN(almostEmptyQtyWarningThreshold) || almostEmptyQtyWarningThreshold <= 0) {\n    //       return false\n    //     }\n    //\n    //     return inventory.isLessThanEqualQty(almostEmptyQtyWarningThreshold, qty)\n    //   }\n    // )\n  });\n});","define(\"client/pods/components/products/inventory/inventory-status/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uvw8J2Jk\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"hasInventory\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\": \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[1,[22,\\\"qty\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/inventory-status/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/report/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, R_, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ProductsInventoryReport = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _class = class ProductsInventoryReport extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"settings\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"big\", _descriptor4, this);\n      _initializerDefineProperty(this, \"excel\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor7, this);\n      _initializerDefineProperty(this, \"monthEnd\", _descriptor8, this);\n      _initializerDefineProperty(this, \"monthEndZ\", _descriptor9, this);\n      _initializerDefineProperty(this, \"monthStart\", _descriptor0, this);\n      _initializerDefineProperty(this, \"monthStartZ\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isExporting\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isUsingDateRange\", _descriptor11, this);\n      _initializerDefineProperty(this, \"productsFilters\", _descriptor12, this);\n      _initializerDefineProperty(this, \"productsList\", _descriptor13, this);\n      _initializerDefineProperty(this, \"inventoryReportMMStart\", _descriptor14, this);\n      _initializerDefineProperty(this, \"inventoryReportMMEnd\", _descriptor15, this);\n      _initializerDefineProperty(this, \"inventoryReportYYYYStart\", _descriptor16, this);\n      _initializerDefineProperty(this, \"inventoryReportYYYYEnd\", _descriptor17, this);\n      this.crud.addLists(this, ['periods/months', 'periods/years']);\n      const specs = {\n        info: [{\n          column: '',\n          prop: '_index_'\n        }, {\n          column: this.intl.t('product'),\n          prop: 'name'\n        }, {\n          column: this.intl.t('product code'),\n          prop: 'code'\n        }, {\n          column: this.intl.t('type'),\n          prop: 'setType'\n        }, {\n          column: this.intl.t('unit'),\n          prop: 'unit'\n        }, {\n          column: this.intl.t('barcode'),\n          prop: 'barcode'\n        }, {\n          column: '',\n          prop: 'inventoryReport.openingBalance.netQty',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: this.intl.t('opening balance'),\n          prop: 'inventoryReport.openingBalance.netExclPrice',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: '',\n          prop: 'inventoryReport.openingBalance.netValue',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: '',\n          prop: 'inventoryReport.incomingBalance.netQty',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: this.intl.t('incoming transactions summary'),\n          prop: 'inventoryReport.incomingBalance.netExclPrice',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: '',\n          prop: 'inventoryReport.incomingBalance.netValue',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: '',\n          prop: 'inventoryReport.outgoingBalance.netQty',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: this.intl.t('outgoing transactions summary'),\n          prop: 'inventoryReport.outgoingBalance.netExclPrice',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: '',\n          prop: 'inventoryReport.outgoingBalance.netValue',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: '',\n          prop: 'inventoryReport.closingBalance.netQty',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: this.intl.t('closing balance'),\n          prop: 'inventoryReport.closingBalance.netExclPrice',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: '',\n          prop: 'inventoryReport.closingBalance.netValue',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: this.intl.t('gross profit'),\n          prop: 'inventoryReport.grossProfit',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: this.intl.t('margin'),\n          prop: 'inventoryReport.marginValue',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: this.intl.t('inventory book qty'),\n          prop: 'inventory.onBookQty',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: this.intl.t('on hand qty'),\n          prop: 'inventory.onHandQty',\n          transform: value => parseFloat(value || 0)\n        }, {\n          column: this.intl.t('warnings'),\n          prop: 'inventoryReport.hasWarning',\n          transform: value => value ? this.intl.t('probably missing data') : ''\n        }]\n      };\n      this.specs = specs;\n      this.isUsingDateRange = false;\n      this.setProductFilters();\n    }\n    setProductFilters() {\n      const productsFilters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'productsList',\n          excludes: [{\n            key: 'setType',\n            value: 'isSetWithChoices'\n          }, {\n            key: 'setType',\n            value: 'hasVariants'\n          }, {\n            key: 'setType',\n            value: 'isSet'\n          }]\n        }\n      });\n      this.productsFilters = productsFilters;\n    }\n    getDefaultFilename() {\n      const filters = this.args.filters || {};\n      let mmStart = '';\n      let yyyyStart = '';\n      let mmEnd = '';\n      let yyyyEnd = '';\n      if (filters) {\n        mmStart = filters.getData('inventoryReportMMStart');\n        yyyyStart = filters.getData('inventoryReportYYYYStart');\n        mmEnd = filters.getData('inventoryReportMMEnd');\n        yyyyEnd = filters.getData('inventoryReportYYYYEnd');\n      }\n      return `export-${mmStart}-${yyyyStart}_${mmEnd}-${yyyyEnd}`;\n    }\n    *exportTask(\n      /* filter */\n    ) {\n      this.isExporting = true;\n      let filename = this.filename;\n      if (!filename) {\n        filename = this.getDefaultFilename();\n      }\n      const unpaginatedProductsFilters = this.search.copyFilters({\n        filters: this.args.filters,\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          fetchMax: true\n        }\n      });\n\n      // used searchAdvancedTask to follow filter correctly\n      // rever to searchRecordsTask if don't want to\n      const serialized = yield this.crud.searchAdvancedTask.perform({\n        adapterName: 'products',\n        filters: unpaginatedProductsFilters,\n        rawResponse: true\n      });\n      const specs = this.specs;\n      const worksheets = [];\n      worksheets.push({\n        sheetName: this.intl.t('inventory reports'),\n        data: this._exportInventoryReport(specs.info, [], serialized, false)\n      });\n      if (!R.isEmpty(worksheets)) {\n        yield this.excel.exportFile({\n          worksheets,\n          title: filename\n        });\n        this.isExporting = false;\n      } else {\n        this.isExporting = false;\n        const msg = this.intl.t('no data to export');\n        window.alert(msg);\n      }\n    }\n    *previewExportTask() {\n      const onLoadPrintDataTask = this.args.onLoadPrintDataTask;\n      if (onLoadPrintDataTask) {\n        onLoadPrintDataTask.perform();\n      }\n    }\n    _exportInventoryReport(specs, detailsSpecs = [], results, hasSummary = false) {\n      const columns = R.pluck('column', specs);\n      const qtyTranslation = this.intl.t('qty');\n      const exclPriceTranslation = this.intl.t('exclusive price');\n      const valueTranslation = this.intl.t('amount');\n      const secondInfoRow = ['', '', '', '', '', '', qtyTranslation, exclPriceTranslation, valueTranslation, qtyTranslation, exclPriceTranslation, valueTranslation, qtyTranslation, exclPriceTranslation, valueTranslation, qtyTranslation, exclPriceTranslation, valueTranslation, '', '', '', ''];\n      const doubleRowColumns = [columns, secondInfoRow];\n      let detailProps = false;\n      if (!R.isEmpty(detailsSpecs)) {\n        detailProps = R.pluck('prop', detailsSpecs);\n      }\n      let index = 0;\n      // let totalQty = 0\n      const excelData = R.pipe(R.map(doc => {\n        index = index + 1;\n        let detailsRows = [];\n        detailsRows = R.pipe(R.propOr([], 'details'))(doc);\n        const docInfoRow = this._getDataBySpecs({\n          data: doc,\n          index\n        }, specs);\n        if (!detailProps) {\n          return [docInfoRow];\n        }\n        detailsRows = R.map(detailData => {\n          return this._getDataBySpecs({\n            data: detailData\n          }, detailsSpecs);\n        })(detailsRows);\n        return R.concat([docInfoRow, secondInfoRow], detailsRows);\n      }), R.unnest, R.concat(doubleRowColumns))(results);\n\n      // const grandTotal = parseInt(this.big.sumPropAndAutoRound(0, 'exclTotal', results)) || 0\n      // excelData = R.append(['', '', '', '', '', '', intl.t('total'), grandTotal], excelData)\n\n      return excelData;\n    }\n    _getDataBySpecs({\n      data,\n      inclTotalBig = false,\n      index,\n      today\n    }, specs) {\n      return R.map(spec => {\n        let props = R.prop('prop', spec);\n        if (!R.is(Array, props)) {\n          props = [props];\n        }\n        const values = R.map(prop => {\n          return this._getPropData({\n            today,\n            index,\n            data,\n            spec,\n            prop,\n            inclTotalBig\n          });\n        })(props);\n        if (props.length > 1) {\n          const joinWith = R.prop('joinWith', spec) || '-';\n          return R.pipe(R.reject(RA.isNilOrEmpty), R.join(joinWith))(values);\n        }\n        return _nventor.default.safeHeadOr('', values);\n      }, specs);\n    }\n\n    /**\n     * search product\n     */\n    *searchProductsTask({\n      adapterName = 'products',\n      query\n    }) {\n      if (query.trim() !== '') {\n        const filters = this.productsFilters;\n        // filters.setData('query', query)\n\n        const results = yield this.crud.searchInputTask.perform({\n          adapterName,\n          filters\n        }, query);\n        return results;\n      }\n    }\n    setInventoryReportDate({\n      onAfter\n    }) {\n      const isUsingDateRange = this.isUsingDateRange;\n      if (R.equals(isUsingDateRange, false)) {\n        const filters = this?.args?.filters || {};\n        const inventoryReportMMStart = filters.getData('inventoryReportMMStart') || '';\n        const inventoryReportYYYYStart = filters.getData('inventoryReportYYYYStart') || '';\n        filters.setData('inventoryReportMMEnd', inventoryReportMMStart);\n        filters.setData('inventoryReportYYYYEnd', inventoryReportYYYYStart);\n      }\n      if (onAfter) {\n        onAfter();\n      }\n    }\n    toggleIsUsingDateRange() {\n      const isUsingDateRange = this.isUsingDateRange;\n      this.isUsingDateRange = R.not(isUsingDateRange);\n      // reset inventoryReportDate\n      this.setInventoryReportDate({\n        onAfter: false\n      });\n    }\n    _getPropData({\n      today,\n      index,\n      data,\n      spec,\n      prop,\n      inclTotalBig\n    }) {\n      const intl = this.intl;\n      if (prop == null) {\n        return '';\n      }\n      if (spec.returnProp) {\n        return R.propOr('', spec.returnProp)(data);\n      }\n      const transform = R.prop('transform')(spec);\n      let value = R_.dotPathOr('', prop, data);\n      if (prop === '_index_') {\n        value = index;\n      }\n      if (prop === '_today_') {\n        return today;\n      }\n      if (prop === 'paymentMethodKey') {\n        const v = R_.dotPathOr('', prop, data);\n        if (v) {\n          value = intl.t(v);\n        }\n      }\n      if (prop === '_inclTotal_' && inclTotalBig) {\n        value = inclTotalBig.toFixed(0);\n      }\n      if (transform) {\n        value = transform(value, data);\n      }\n      return value;\n    }\n    get isExportAllowed() {\n      const thisMonthPeriod = this.date.getPeriod();\n      const filters = this?.args?.filters || {};\n      const inventoryReportMMStart = this.inventoryReportMMStart || filters.getData('inventoryReportMMStart');\n      const inventoryReportMMEnd = this.inventoryReportMMEnd || filters.getData('inventoryReportMMEnd');\n      const inventoryReportYYYYStart = this.inventoryReportYYYYStart || filters.getData('inventoryReportYYYYStart');\n      const inventoryReportYYYYEnd = this.inventoryReportYYYYEnd || filters.getData('inventoryReportYYYYEnd');\n      const isDateStartSafe = R.lt(inventoryReportYYYYStart, thisMonthPeriod?.yyyy) || R.equals(inventoryReportYYYYStart, thisMonthPeriod?.yyyy) && R.lte(inventoryReportMMStart, thisMonthPeriod?.mm);\n      const isDateEndSafe = R.lt(inventoryReportYYYYEnd, thisMonthPeriod?.yyyy) || R.equals(inventoryReportYYYYEnd, thisMonthPeriod?.yyyy) && R.lte(inventoryReportMMEnd, thisMonthPeriod?.mm);\n      if (isDateStartSafe && isDateEndSafe) {\n        return true;\n      }\n      return false;\n    }\n    setInventoryReportTracked() {\n      const filters = this?.args?.filters || {};\n      this.inventoryReportMMStart = filters.getData('inventoryReportMMStart');\n      this.inventoryReportMMEnd = filters.getData('inventoryReportMMEnd');\n      this.inventoryReportYYYYStart = filters.getData('inventoryReportYYYYStart');\n      this.inventoryReportYYYYEnd = filters.getData('inventoryReportYYYYEnd');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"excel\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"monthEnd\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"monthEndZ\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"monthStart\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"monthStartZ\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isExporting\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isUsingDateRange\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"productsFilters\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"productsList\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"inventoryReportMMStart\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"inventoryReportMMEnd\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"inventoryReportYYYYStart\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"inventoryReportYYYYEnd\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"exportTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"exportTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previewExportTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"previewExportTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchProductsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchProductsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setInventoryReportDate\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"setInventoryReportDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsUsingDateRange\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsUsingDateRange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setInventoryReportTracked\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"setInventoryReportTracked\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/inventory/report/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ChannelsShopRewardsTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _class = class ChannelsShopRewardsTableViewDetailRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasExpiringDate\", _descriptor3, this);\n      _initializerDefineProperty(this, \"expiringDateStartZ\", _descriptor4, this);\n      _initializerDefineProperty(this, \"expiringDateEndZ\", _descriptor5, this);\n      this.crud.addLists(this, ['products/lists/inventory-set-types-filters', 'products/lists/inventory-report-types-filters', 'filters/count']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasExpiringDate\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"expiringDateStartZ\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"expiringDateEndZ\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/products/inventory/report/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Bforiikf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@rowIndex\\\",\\\"@isDetailRow\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isFilters\\\",\\\"@showFilters\\\",\\\"@hasHeadersSort\\\",\\\"@hasFilters\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[23,10,[]],[23,5,[]],\\\"name\\\",\\\"products\\\",[28,\\\"perform\\\",[[23,7,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[23,10,[]],[23,5,[]],\\\"code\\\",\\\"products\\\",[28,\\\"perform\\\",[[23,7,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product code\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[23,10,[]],[23,5,[]],\\\"setType\\\",\\\"products\\\",[28,\\\"perform\\\",[[23,7,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"type\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[23,10,[]],[23,5,[]],\\\"unit\\\",\\\"products\\\",[28,\\\"perform\\\",[[23,7,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"barcode\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"opening balance\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"incoming transactions summary\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"outgoing transactions summary\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"closing balance\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"gross profit\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"margin\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"current inventory book qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"current on hand qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"current available qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"rowspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"amount\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@icon\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-filter\\\",[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"_data\\\",\\\"count\\\"]],[23,5,[\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"products\\\",[23,5,[]]]]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[[23,5,[\\\"_data\\\",\\\"name\\\"]],[28,\\\"or\\\",[[23,6,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"products\\\",[23,5,[]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[[23,5,[\\\"_data\\\",\\\"code\\\"]],[28,\\\"or\\\",[[23,6,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"products\\\",[23,5,[]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@badge\\\",\\\"@onClose\\\"],[[23,5,[\\\"setTypesCount\\\"]],[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"products\\\",[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-inventory-report-types-filters\\\"]],[23,5,[]],true,\\\"_data.value\\\",\\\"_data.setTypes\\\",true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[[23,5,[\\\"_data\\\",\\\"unit\\\"]],[28,\\\"or\\\",[[23,6,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"products\\\",[23,5,[]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"onInput\\\"],[[23,5,[\\\"_data\\\",\\\"barcode\\\"]],[28,\\\"or\\\",[[23,6,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"products\\\",[23,5,[]]]]]],null],[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"products\\\",[23,5,[]]]]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",-1,[28,\\\"perform\\\",[[23,7,[]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\",\\\"resetExcludes\\\"],[true,[23,5,[]],[28,\\\"array\\\",[\\\"hideNoActivity\\\",\\\"hideMissingData\\\",\\\"includeInventoryReport\\\"],null]]]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[23,3,[]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[23,2,[\\\"_data\\\",\\\"code\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[23,2,[\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[23,2,[\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[23,2,[\\\"inventory\\\",\\\"_data\\\",\\\"barcode\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"openingBalance\\\",\\\"netQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"openingBalance\\\",\\\"netQty\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"openingBalance\\\",\\\"netExclPrice\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"openingBalance\\\",\\\"netValue\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[0],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[0],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"incomingBalance\\\",\\\"netQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"incomingBalance\\\",\\\"netExclPrice\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"incomingBalance\\\",\\\"netValue\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"outgoingBalance\\\",\\\"netQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"outgoingBalance\\\",\\\"netExclPrice\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"outgoingBalance\\\",\\\"netValue\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"closingBalance\\\",\\\"netQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"closingBalance\\\",\\\"netQty\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"closingBalance\\\",\\\"netExclPrice\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"closingBalance\\\",\\\"netValue\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[0],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[0],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"grossProfit\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"percentage\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"marginValue\\\"]]],[[\\\"autoCalculate\\\"],[true]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"_data\\\",\\\"onBookQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"_data\\\",\\\"onHandQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inventory\\\",\\\"_data\\\",\\\"availableQty\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"inventoryReport\\\",\\\"_data\\\",\\\"hasWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"probably missing data\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/report/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/report/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GpPQ22jm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@onLoadPrintDataTask\\\",\\\"@loadPrintDataTask\\\",\\\"@onPaginationTask\\\",\\\"@products\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"options\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"product\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRunning\\\",\\\"@leftIcon\\\",\\\"@placeholder\\\",\\\"@value\\\"],[true,[28,\\\"or\\\",[[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],\\\"fas fa-search\\\",\\\"search\\\",[23,1,[\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isUsingDateRange\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"date start\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isUsingDateRange\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"date end\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-months\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"_data\\\",\\\"inventoryReportMMStart\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setInventoryReportDate\\\"]],[28,\\\"hash\\\",null,[[\\\"onAfter\\\"],[[23,0,[\\\"setInventoryReportTracked\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-years\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"_data\\\",\\\"inventoryReportYYYYStart\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setInventoryReportDate\\\"]],[28,\\\"hash\\\",null,[[\\\"onAfter\\\"],[[23,0,[\\\"setInventoryReportTracked\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isUsingDateRange\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n            -\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-months\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"_data\\\",\\\"inventoryReportMMEnd\\\"]],[23,0,[\\\"setInventoryReportTracked\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-years\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"_data\\\",\\\"inventoryReportYYYYEnd\\\"]],[23,0,[\\\"setInventoryReportTracked\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[false,\\\"...\\\",[23,2,[\\\"isRunning\\\"]],[23,0,[\\\"toggleIsUsingDateRange\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"hide products with no activity\\\",[23,1,[\\\"_data\\\",\\\"hideNoActivity\\\"]],true,false]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[\\\"hide products with missing data\\\",[23,1,[\\\"_data\\\",\\\"hideMissingData\\\"]],true,false]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,3,[\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"inventory reports\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@results\\\",\\\"@onPaginationTask\\\"],[\\\"products/inventory/report/table-view/detail-row\\\",[23,1,[]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,1,[\\\"results\\\"]],[23,4,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@showPageNumbers\\\",\\\"@onPaginationTask\\\"],[[23,1,[]],[23,5,[]],true,[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"preview\\\",[28,\\\"not\\\",[[23,0,[\\\"isExportAllowed\\\"]]],null],true,\\\"preview\\\",[28,\\\"perform\\\",[[23,0,[\\\"previewExportTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"exportTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"isExporting\\\"]]],null],[28,\\\"not\\\",[[23,0,[\\\"isExportAllowed\\\"]]],null],\\\"export\\\",\\\"fas fa-file-export\\\",[28,\\\"perform\\\",[[23,0,[\\\"exportTask\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/report/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/table-view/detail-row/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"client/mixins/date\", \"client/mixins/errors\"], function (_exports, _emberConcurrency, _crud, _date, _errors) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _errors.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    adapterName: 'products/inventory/adjustments',\n    init() {\n      this.crud.addLists(this, ['units', 'products/inventory/lists/adjustments']);\n      this._super(...arguments);\n      this.setup();\n    },\n    setup(direction) {\n      const productsFilters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'productsList',\n          types: [this.get('constants.productTypes.inventory')],\n          tracking: this.get('constants.productTracking.on'),\n          excludes: [{\n            key: 'setType',\n            value: 'isSetWithChoices'\n          }, {\n            key: 'setType',\n            value: 'hasVariants'\n          }, {\n            key: 'setType',\n            value: 'isSet'\n          }]\n        }\n      });\n      this.set('productsFilters', productsFilters);\n      if (this.isNew) {\n        const dateZ = this.getStartOfDayZ();\n        direction = direction || 'increase';\n        const description = this.getDescription(direction);\n        const data = {\n          dateZ,\n          adjustment: direction,\n          description\n        };\n        const model = this.setupNewRecord({\n          adapterName: this.adapterName,\n          data\n        });\n        this.set('model', model);\n        const defaultProduct = this.defaultProduct;\n        if (defaultProduct) {\n          model.setData('itemKey', defaultProduct.getData('_key'));\n          model.setData('itemCode', defaultProduct.getData('code'));\n          this.loadProductTask.perform(defaultProduct);\n        } else {\n          this.set('product', '');\n        }\n      } else {\n        this.set('product', '');\n      }\n    },\n    isIncrease: Ember.computed('model._data.adjustment', function () {\n      if (this.get('model._data.adjustment') === 'increase') {\n        return true;\n      }\n      return false;\n    }),\n    isReadonly: Ember.computed('isEditing', function () {\n      return !this.isEditing;\n    }),\n    isItemReadonly: Ember.computed('isReadonly', function () {\n      if (this.isReadonly) {\n        return true;\n      }\n      return this.defaultProduct;\n    }),\n    getDescription(direction) {\n      return this.intl.t('inventory adjustment') + ': ' + this.intl.t(direction);\n    },\n    saveTask: (0, _emberConcurrency.task)(function* () {\n      const isNew = this.isNew;\n      if (isNew) {\n        const adapterName = this.adapterName;\n        const model = this.model;\n        const saved = yield this.createRecordTask.perform({\n          adapterName,\n          model\n        });\n        if (saved) {\n          this.reset();\n        }\n      }\n    }),\n    searchProductsTask: (0, _emberConcurrency.task)(function* ({\n      adapterName = 'products',\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        const filters = this.productsFilters;\n        filters.setData('query', query);\n        const results = yield this.searchInputTask.perform({\n          adapterName,\n          filters\n        }, query);\n        return results;\n      }\n    }),\n    loadProductTask: (0, _emberConcurrency.task)(function* (product) {\n      this.set('product', product);\n      const productsService = this.productsService;\n      const model = this.model;\n      const itemKey = model.getData('itemKey');\n      const {\n        preferredHistoryData\n      } = yield productsService.get('fetchPurchasesHistoryTask').perform(model, 'others', product, itemKey);\n      model.loadProduct(product, preferredHistoryData);\n    }),\n    reset() {\n      const direction = this.model.getData('adjustment');\n      this.setup(direction);\n    },\n    actions: {\n      reset() {\n        this.reset();\n      },\n      resetProduct() {\n        const detail = this.model;\n        detail.setData('item', '');\n        detail.setData('itemCode', '');\n        detail.setData('itemKey', '');\n        this.set('product', '');\n      },\n      setDescription(adjustment) {\n        const description = this.getDescription(adjustment.getData('value'));\n        this.model.setData('description', description);\n        if (description === 'decrease') {\n          this.model.setData('exclPrice', '');\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/products/inventory/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Aed/169u\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@tableViewOptions\\\",\\\"@model\\\",\\\"@rowIndex\\\",\\\"@hasFilters\\\",\\\"@filters\\\",\\\"@onReloadSearchRecordsTask\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"products/inventory/inventory-editor-th\\\",[],[[\\\"@isTableView\\\",\\\"@hasFilters\\\",\\\"@filters\\\",\\\"@onReloadSearchRecordsTask\\\"],[true,[23,6,[]],[23,7,[]],[23,8,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"products/inventory/inventory-editor\\\",[],[[\\\"@isTableView\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@onAfterTask\\\",\\\"@model\\\",\\\"@rowIndex\\\"],[true,[23,1,[]],[23,2,[]],[28,\\\"perform\\\",[[23,3,[\\\"onAfterTask\\\"]]],null],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/inventory/table-view/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 ProductsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _class = class ProductsFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      this.crud.addLists(this, ['filters/count', 'products/inventory/lists/adjustments', 'units']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/products/inventory/table-view/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Et9vYvq5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@isGuest\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"    \\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,2,[]],\\\"adjustments\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"adjustments\\\",\\\"filter-group-legend\\\",[23,3,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-inventory-lists-adjustments\\\"]],[23,1,[]],true,\\\"_data.value\\\",\\\"_data.adjustments\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"product\\\",[23,1,[\\\"_data\\\",\\\"item\\\"]],[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"code\\\",[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"description\\\",[23,1,[\\\"_data\\\",\\\"description\\\"]],[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,2,[]],\\\"units\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"units\\\",\\\"filter-group-legend\\\",[23,3,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],[23,1,[]],true,\\\"_data._key\\\",\\\"_data.units\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"qty\\\",[23,1,[\\\"_data\\\",\\\"qty\\\"]],[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"exclusive price\\\",[23,1,[\\\"_data\\\",\\\"exclPrice\\\"]],[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[\\\"notes\\\",[23,1,[\\\"_data\\\",\\\"notes\\\"]],[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,false,[23,1,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--tags\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags-container tags-container--margin-right-all\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-inventory-lists-adjustments\\\"]],[23,1,[\\\"_data\\\",\\\"adjustments\\\"]],true]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@disableClassNamesFromList\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],[23,1,[\\\"_data\\\",\\\"units\\\"]],\\\"_data._key\\\",true]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"hide\\\",\\\"fas fa-angle-up\\\",[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleComponentProperty\\\"]],[23,1,[]],\\\"showFilters\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,1,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,2,[]],[23,4,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,1,[]],true]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,2,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/inventory/table-view/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/over-sales-limited-qty-tag/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 HelpersInfoTooltip = _exports.default = (_dec = Ember.inject.service('products'), _class = class HelpersInfoTooltip extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"productsService\", _descriptor, this);\n      _defineProperty(this, \"tagName\", '');\n      _defineProperty(this, \"translate\", true);\n    }\n    get overSalesLimitedQtyStatusClass() {\n      const overSalesLimitedQtyStatus = this.args.overSalesLimitedQtyStatus;\n      return this.productsService.getStatusClass(overSalesLimitedQtyStatus);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/products/over-sales-limited-qty-tag/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"G/rzYp2U\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@overSalesLimitedQtyStatus\\\",\\\"@model\\\",\\\"@isOverSalesLimitedQty\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[]],[23,2,[\\\"_data\\\",\\\"isOverSalesLimitedQty\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,0,[\\\"overSalesLimitedQtyStatusClass\\\"]]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,1,[]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/over-sales-limited-qty-tag/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/page-import-btn/component\", [\"exports\", \"ramda\", \"client/utils/nventor\", \"ember-concurrency\", \"ramda-extension\"], function (_exports, R, _nventor, _emberConcurrency, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tagName: 'span',\n    init() {\n      this._super(...arguments);\n      const productsFilter = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'productsList'\n        }\n      });\n      const campaignsFilter = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        defaultFiltersData: {\n          resultsProperty: 'campaignsDetailsList'\n        }\n      });\n      this.set('productsFilter', productsFilter);\n      this.set('campaignsFilter', campaignsFilter);\n    },\n    setupPanels() {\n      this.searchTask.perform();\n    },\n    pageImportBtnSubPanels: Ember.computed('crud.lists.products-lists-pageImportBtnSubPanels.[]', 'productsList.[]', 'campaignsDetailsList.[]', function () {\n      const subPanels = R_.dotPath('crud.lists.products-lists-pageImportBtnSubPanels')(this) || [];\n      if (!R.isEmpty(subPanels)) {\n        const productsList = this.productsList || [];\n        const campaignsDetailsList = this.campaignsDetailsList || [];\n        return R.map(panel => {\n          // if (panel._data.value === 'products') {\n          //   panel.setData('badge', productsList.length)\n          // }\n          // if (panel._data.value === 'campaigns') {\n          //   panel.setData('badge', campaignsDetailsList.length)\n          // }\n          return panel;\n        }, subPanels);\n      }\n      return subPanels;\n    }),\n    searchTask: (0, _emberConcurrency.task)(function* () {\n      const q = [];\n      const query = R.propOr('', 'query')(this);\n      this.productsFilter.set('_data.query', query);\n      this.campaignsFilter.set('_data.query', query);\n\n      // FILTER OUT EMPTY TEMPLATES\n      this.productsFilter.set('_data.ignoreEmptyTemplates', true);\n      this.campaignsFilter.set('_data.ignoreEmptyTemplates', true);\n      q.push(this._searchTask.perform({\n        adapterName: 'products',\n        resultsProperty: 'productsList',\n        query,\n        filters: this.productsFilter\n      }));\n      q.push(this._searchTask.perform({\n        adapterName: 'channels/shop/campaigns/details/templates',\n        resultsProperty: 'campaignsDetailsList',\n        query,\n        filters: this.campaignsFilter\n      }));\n      yield (0, _emberConcurrency.all)(q);\n    }),\n    _searchTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      query,\n      filters,\n      resultsProperty\n    }) {\n      const results = yield this.crud.searchRecordsConcurrentlyTask.perform({\n        adapterName,\n        query,\n        filters\n      });\n      this.set(resultsProperty, results);\n      return results;\n    }).enqueue(),\n    actions: {\n      replaceTemplate(onCloseDialogAction, template, templateImages = []) {\n        const model = this.model;\n        model.replaceTemplate(template, templateImages);\n        this.onUpdateContent(model.getData('template'));\n        onCloseDialogAction();\n      },\n      insertTemplate(onCloseDialogAction, template, templateImages = []) {\n        const model = this.model;\n        model.insertTemplate(template, templateImages);\n        this.onUpdateContent(model.getData('template'));\n        onCloseDialogAction();\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupPanels\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupPanels\"), _obj), _obj));\n});","define(\"client/pods/components/products/page-import-btn/products-results/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/products/page-import-btn/products-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NPCH+u1N\",\n    \"block\": \"{\\\"symbols\\\":[\\\"product\\\",\\\"templateModel\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"productsFilter\\\",\\\"productsList\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"templates\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-import-btn__item-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"header\\\"]]],null,{\\\"statements\\\":[[0,\\\"          - \\\"],[1,[23,2,[\\\"_data\\\",\\\"header\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-import-btn__template-preview\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"helpers/content-display\\\",null,[[\\\"content\\\"],[[23,2,[\\\"_data\\\",\\\"template\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"replace\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onReplaceTemplate\\\"]],[23,2,[\\\"_data\\\",\\\"template\\\"]],[23,1,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"insert\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onInsertTemplate\\\"]],[23,2,[\\\"_data\\\",\\\"template\\\"]],[23,1,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"list\\\",\\\"filters\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"productsList\\\"]],[24,[\\\"productsFilter\\\"]],[24,[\\\"onPaginationTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/page-import-btn/products-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/page-import-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2POXd6Q+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"subTab\\\",\\\"@tab\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@modalDialogTitle\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[\\\"fas fa-file-import\\\",[22,\\\"disabled\\\"],\\\"insert or replace templates\\\",false,[28,\\\"perform\\\",[[23,0,[\\\"searchTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"setupPanels\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-sub\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,3,[]],[23,3,[\\\"subTabs\\\"]],[23,4,[]],[23,0,[\\\"pageImportBtnSubPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,3,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRunning\\\",\\\"@value\\\",\\\"@placeholder\\\",\\\"@autofocus\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"searchTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"query\\\"]],\\\"search\\\",true,true,[28,\\\"perform\\\",[[23,0,[\\\"searchTask\\\"]]],null]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[24,[\\\"searchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"productsList\\\"]],[24,[\\\"campaignsDetailsList\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[1,[28,\\\"component\\\",[[23,2,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"onReplaceTemplate\\\",\\\"onInsertTemplate\\\",\\\"productsList\\\",\\\"campaignsDetailsList\\\",\\\"productsFilter\\\",\\\"campaignsFilter\\\",\\\"onPaginationTask\\\"],[[23,2,[]],[28,\\\"action\\\",[[23,0,[]],\\\"replaceTemplate\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"insertTemplate\\\",[23,1,[]]],null],[24,[\\\"productsList\\\"]],[24,[\\\"campaignsDetailsList\\\"]],[24,[\\\"productsFilter\\\"]],[24,[\\\"campaignsFilter\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/page-import-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-dash/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _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, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _obj = {\n    search: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    isGuest: false,\n    selectedStatusKey: null,\n    selectedTagKeys: null,\n    untagSelectedTagKeys: false,\n    adapterName: 'products',\n    filtersAdapterName: 'products/filters',\n    productsProfitPathName: 'products/profit',\n    init() {\n      this._super(...arguments);\n      this.tabsManager.setHeader(this.tabParent, '');\n      this.crud.addLists(this, [{\n        name: 'taxes',\n        appendPath: 'products'\n      }, 'products/brands', 'products/lists/tags', 'products/lists/types', 'products/lists/setTypes', 'products/lists/tracking', 'products/lists/invoiceDescriptions', 'products/lists/editorSubPanels', 'settings/roundingAuto', 'units', 'units/dimensions', 'units/weight', 'statuses']);\n      const toPrintFilters = this.search.setupFilters({\n        adapterName: 'products/filters/inventory-report',\n        altStorageProp: 'toPrintResults',\n        defaultFiltersData: {\n          count: 10,\n          page: 1,\n          query: '',\n          setTypes: [],\n          units: '',\n          name: '',\n          code: '',\n          barcode: '',\n          resultsProperty: 'results',\n          excludes: [{\n            key: 'setType',\n            value: 'isSetWithChoices'\n          }, {\n            key: 'setType',\n            value: 'hasVariants'\n          }, {\n            key: 'setType',\n            value: 'isSet'\n          }],\n          types: ['inventory'],\n          includeInventoryReport: true\n        }\n      });\n      this.set('toPrintFilters', toPrintFilters);\n      this.set('selectedItems', []);\n      this.set('selectedStatusKey', null);\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const recurringFilters = yield this.productsService.getRecurringFiltersTask.perform();\n      this.set('recurringFilters', recurringFilters);\n    }),\n    loadPrintDataTask: (0, _emberConcurrency.task)(function* () {\n      const toPrintFilters = this.toPrintFilters;\n      const lastSearchSettingsProperty = this.filters.get('lastSearchSettingsProperty');\n      const lastSearchSettings = this.filters.get(lastSearchSettingsProperty);\n      toPrintFilters.set(lastSearchSettingsProperty, lastSearchSettings);\n      yield this.crud.reloadSearchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: toPrintFilters\n      });\n    }),\n    selectItem(item, isSelected) {\n      const selected = this.get('selectedItems') || [];\n      if (isSelected === true) {\n        selected.pushObject(item);\n      } else {\n        selected.removeObject(item);\n      }\n      this.set('selectedItems', selected);\n    },\n    toggleSelectAllItems() {\n      const results = this.get('filters.results') || [];\n      const selectedItems = this.get('selectedItems') || [];\n      if (selectedItems === results) {\n        this.set('selectedItems', []);\n      } else {\n        this.set('selectedItems', results);\n      }\n    },\n    resetSelectedItems() {\n      this.set('selectedItems', []);\n    },\n    resetSelectedStatusKeyAndSelectedItems() {\n      this.set('selectedStatusKey', null);\n      this.set('selectedItems', []);\n    },\n    resetSelectedTagKeys() {\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n    },\n    resetSelectedTagKeysAndSelectedItems() {\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.set('selectedItems', []);\n    },\n    resetSelectedTagKeysAndStatusKeyAndSelectedItems() {\n      this.set('selectedStatusKey', null);\n      this.set('selectedTagKeys', []);\n      this.set('untagSelectedTagKeys', false);\n      this.set('selectedItems', []);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"selectItem\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"selectItem\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleSelectAllItems\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"toggleSelectAllItems\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedItems\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedItems\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedStatusKeyAndSelectedItems\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedStatusKeyAndSelectedItems\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeys\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeys\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeysAndSelectedItems\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeysAndSelectedItems\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSelectedTagKeysAndStatusKeyAndSelectedItems\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"resetSelectedTagKeysAndStatusKeyAndSelectedItems\"), _obj), _obj));\n});","define(\"client/pods/components/products/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XVlXzpCb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@errors\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@tab\\\",\\\"@filters\\\",\\\"@onPaginationTask\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@errors\\\",\\\"@allowShowStarred\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onResetSearchRecordsTask\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@tableClassNames\\\",\\\"@tableViewOptions\\\"],[\\\"products/table-view/detail-row\\\",[23,4,[]],false,[23,0,[\\\"filters\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[23,5,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,0,[\\\"filters\\\"]],true]]]],null],[23,6,[]],[23,7,[]],[23,6,[]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,8,[]],\\\"products-dash\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"allowUploads\\\",\\\"isBulkEditing\\\",\\\"onSelectItem\\\",\\\"onToggleSelectAllItems\\\",\\\"selectedItems\\\",\\\"recurringFilters\\\"],[\\\"products\\\",true,false,[28,\\\"fn\\\",[[23,0,[\\\"selectItem\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleSelectAllItems\\\"]]],null],[23,0,[\\\"selectedItems\\\"]],[23,0,[\\\"recurringFilters\\\"]]]]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\"],[[23,9,[]],[23,9,[\\\"results\\\"]],[23,10,[]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,0,[\\\"selectedItems\\\"]],false,true],null],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"ajaxCallTask\\\"]],\\\"PATCH\\\",[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"additionalData\\\",\\\"allowSubmitWhenEmpty\\\",\\\"appendPath\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"products/batch/tags\\\",[28,\\\"hash\\\",null,[[\\\"tags\\\",\\\"untag\\\"],[[23,0,[\\\"selectedTagKeys\\\"]],[23,0,[\\\"untagSelectedTagKeys\\\"]]]]],[23,0,[\\\"selectedTagKeys\\\"]],\\\"/batch/tags\\\",[23,0,[\\\"selectedItems\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetSelectedTagKeysAndSelectedItems\\\"]]],null]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"resetSelectedTagKeys\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@hasUnsetToggle\\\",\\\"@isDisabledUnsetToggle\\\",\\\"@isModal\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@unsetToggleLabel\\\",\\\"@unsetToggleLabelTranslate\\\",\\\"@unsetToggleValue\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,true,[28,\\\"if\\\",[[23,0,[\\\"selectedTagKeys\\\"]],false,true],null],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,0,[]],true,\\\"_data._key\\\",[23,8,[]],false,\\\"untag\\\",true,[23,0,[\\\"untagSelectedTagKeys\\\"]],\\\"selectedTagKeys\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"selectedItems\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"selected items\\\"],null],false],[0,\\\":\\\\n\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-badge\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"count\\\",[[23,0,[\\\"selectedItems\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"delete is-small\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"resetSelectedTagKeysAndStatusKeyAndSelectedItems\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"barcode/print-modal\\\",[],[[\\\"@model\\\"],[[23,0,[\\\"selectedItems\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"helpers/is-access-allowed\\\",[],[[\\\"@resource\\\"],[[23,0,[\\\"productsProfitPathName\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/print-btn\\\",[],[[\\\"@label\\\",\\\"@hasPrintBtn\\\"],[\\\"inventory report\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"products/inventory/report\\\",[],[[\\\"@filters\\\",\\\"@loadPrintDataTask\\\",\\\"@products\\\",\\\"@onPaginationTask\\\",\\\"@onLoadPrintDataTask\\\"],[[23,0,[\\\"toPrintFilters\\\"]],[23,0,[\\\"loadPrintDataTask\\\"]],[23,0,[\\\"toPrintFilters\\\",\\\"results\\\"]],[23,0,[\\\"onPaginationTask\\\"]],[23,0,[\\\"loadPrintDataTask\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/activity-display/activity-display-doc/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/settings\", \"client/mixins/crud\", \"client/mixins/doc-list-by\"], function (_exports, _date, _settings, _crud, _docListBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _docListBy.default, _settings.default, {\n    crud: Ember.inject.service(),\n    filtersAdapterName: 'documents/filters',\n    init() {\n      this.crud.addLists(this, ['dispatch/lists/processes']);\n      this._super(...arguments);\n      const docType = this.get('tab.docType');\n      const docName = this.get('tab.docName');\n      this.set('docType', docType);\n      this.set('docName', docName);\n      const adapterName = `documents/${docType}/${docName}/details`;\n      this.set('adapterName', adapterName);\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          sort: [{\n            by: 'dateZ',\n            direction: 'DESC'\n          }, {\n            by: 'docNo',\n            direction: 'DESC'\n          }]\n        }\n      });\n      this.set('filters', filters);\n    },\n    async didInsertElement() {\n      const adapterName = this.adapterName;\n      const model = this.model;\n      const itemKey = model.getData('_key');\n      const filters = this.filters;\n      const results = await this.listByDetailsTask.perform({\n        filters,\n        adapterName,\n        itemKey\n      });\n      this.set('results', results);\n    },\n    actions: {\n      async displayByMonth(period) {\n        const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n        const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n        const model = this.model;\n        const itemKey = model.getData('_key');\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        const results = await this.listByDetailsTask.perform({\n          filters,\n          adapterName,\n          itemKey,\n          dateStart,\n          dateEnd\n        });\n        this.set('results', results);\n      },\n      async displayByCustomMonth() {\n        const dateEndString = this.customDateEndZ;\n        const dateStartString = this.customDateStartZ;\n        let dateEnd;\n        let dateStart;\n        if (dateEndString) {\n          if (!dateStartString) {\n            const dateEndObj = this.getMonthEnd(dateEndString);\n            dateStart = this.formatDateForUrl(dateEndObj.startOf('month'));\n            dateStart = this.getStartOfDayZ(dateStart);\n            dateEnd = dateEndString;\n          } else {\n            if (dateStartString > dateEndString) {\n              dateEnd = dateStartString;\n              dateStart = dateEndString;\n            } else {\n              dateEnd = dateEndString;\n              dateStart = dateStartString;\n            }\n          }\n          const model = this.model;\n          const itemKey = model.getData('_key');\n          const adapterName = this.adapterName;\n          const filters = this.filters;\n          const results = await this.listByDetailsTask.perform({\n            filters,\n            adapterName,\n            itemKey,\n            dateStart,\n            dateEnd\n          });\n          this.set('results', results);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/activity-display/activity-display-doc/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/IZPfIie\",\n    \"block\": \"{\\\"symbols\\\":[\\\"period\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center u-container\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]]]]],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-3 u-margin-right-3\\\"],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"is-primary u-margin-left-3\\\",[23,0,[\\\"fetchDataTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustomMonth\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,1,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"listByDetailsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"documents/activity-list-by-details\\\",null,[[\\\"tab\\\",\\\"filters\\\",\\\"hideExcl\\\",\\\"docType\\\",\\\"results\\\",\\\"showOrderDate\\\",\\\"isRunning\\\",\\\"onPaginationTask\\\",\\\"lastSearchSettings\\\",\\\"isSetWithChoices\\\",\\\"page\\\",\\\"count\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"filters\\\"]],true,[23,0,[\\\"docType\\\"]],[24,[\\\"results\\\"]],true,[24,[\\\"updateDispatchStatusTask\\\",\\\"isRunning\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"lastSearchSettings\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"isSetWithChoices\\\"]],[24,[\\\"page\\\"]],[24,[\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/activity-display/activity-display-doc/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/activity-display/component\", [\"exports\", \"ramda\", \"client/mixins/date\", \"client/mixins/crud\", \"client/mixins/doc-status\", \"client/utils/nventor\"], function (_exports, R, _date, _crud, _docStatus, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _docStatus.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    init() {\n      const docType = this.get('tab.docType');\n      this.set('docType', docType);\n      this.crud.addLists(this, ['dispatch/lists/processes', 'documents/lists/types/sales', 'documents/lists/types/purchases']);\n      this._super(...arguments);\n    },\n    docTypesList: Ember.computed('docType', 'crud.lists.{documents-lists-types-sales.[],documents-lists-types-purchases.[]}', function () {\n      const docType = this.docType;\n      const docTypesList = this.crud.lists[`documents-lists-types-${docType}`] || [];\n      return R.map(resourceData => {\n        const docType = resourceData.getData('docType');\n        const docName = resourceData.getData('docName');\n        resourceData.setData('tabType', 'replaceSubTab');\n        resourceData.setData('id', `${docType}-${docName}`);\n        resourceData.setData('component', 'products/panels-display/activity-display/activity-display-doc');\n        return resourceData;\n      })(docTypesList);\n    })\n  });\n});","define(\"client/pods/components/products/panels-display/activity-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qB14x9HN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\",\\\"@autoSelectFirstTab\\\"],[[23,2,[]],[23,2,[\\\"subTabs\\\"]],[23,3,[]],[23,0,[\\\"docTypesList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,2,[]]],null],false]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,2,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"errors\\\",\\\"model\\\",\\\"tab\\\"],[[23,3,[]],[23,4,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/activity-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/component\", [\"exports\", \"ramda\", \"client/mixins/crud\", \"client/utils/nventor\", \"ember-concurrency\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, R, _crud, _nventor, _emberConcurrency, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service('settings'),\n    constants: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    productsService: Ember.inject.service('products'),\n    dataManager: Ember.inject.service(),\n    adapterName: 'products',\n    errorMsg: Ember.computed(function () {\n      return this.intl.t('error occurred please try again later');\n    }),\n    trackingTagLabel: Ember.computed(function () {\n      return this.intl.t('tracking') + ': ';\n    }),\n    init() {\n      this.crud.addLists(this, ['products/lists/displaySubPanels', 'products/lists/editorSubPanels']);\n      const model = this.tab?.model;\n      if (model) {\n        this.set('model', model);\n      }\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      if (model) {\n        this.tabsManager.setHeader(this.tabParent, model.getData('name'));\n      }\n      yield this.fetchParentModelTask.perform();\n    }),\n    fetchParentModelTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const tab = this.tab;\n      const isVariantChildOf = model.getData('isVariantChildOf');\n      if (isVariantChildOf) {\n        const adapterName = 'products';\n        const appendPath = `/${isVariantChildOf}`;\n        const parent = yield this.crud.findTask.perform({\n          adapterName,\n          appendPath,\n          model,\n          tab\n        });\n        this.set('parent', parent);\n      }\n    }),\n    displaySubPanels: Ember.computed('crud.lists.products-lists-displaySubPanels.[]', 'model._data.{setType,type}', function () {\n      let panels = R_.dotPath('crud.lists.products-lists-displaySubPanels')(this) || [];\n      let removeAll = false;\n      const setType = this.get('model._data.setType');\n      if (_nventor.default.isNilOrEmpty(setType)) {\n        removeAll = true;\n      }\n      if (setType !== 'isSet' && setType !== 'isSetWithChoices' && setType !== 'hasVariants') {\n        removeAll = true;\n      }\n\n      // remove all for general product\n      if (removeAll) {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'hasVariants'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSetWithChoices'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSet'))(panels);\n      }\n      if (setType === 'isSet') {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'hasVariants'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSetWithChoices'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'customizations'))(panels);\n      } else if (setType === 'isSetWithChoices') {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSet'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'hasVariants'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'customizations'))(panels);\n      } else if (setType === 'hasVariants') {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSet'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSetWithChoices'))(panels);\n      }\n      const productType = this.model?._data?.type;\n      const allowCollectOnBehalf = this.settings.isFeatureAllowed('features.allowCollectOnBehalf');\n      const isCollectOnBehalfProduct = allowCollectOnBehalf && productType === this.get('constants.productTypes.collectOnBehalf');\n      if (isCollectOnBehalfProduct) {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'tickets'))(panels);\n      }\n      return panels;\n    }),\n    allowCopy: Ember.computed('model._data.isVariantChild', function () {\n      if (!this?.model) {\n        return false;\n      }\n      if (this?.model?._data?.isVariantChild) {\n        return false;\n      }\n      return true;\n    }),\n    displaySubPanel(resourceData) {\n      const subTabOptions = {\n        component: resourceData.getData('component'),\n        docType: resourceData.getData('docType'),\n        model: this.model,\n        id: resourceData.getData('value'),\n        value: resourceData.getData('value')\n      };\n      const tab = this.tab;\n      this.tabsManager.reuseSubTab(tab, subTabOptions);\n    },\n    copyProduct() {\n      const model = this.model;\n      const adapterName = this.adapterName;\n      const newModel = this.crud.setupNewRecord({\n        adapterName,\n        model\n      });\n      let name = model.getData('name');\n      let code = model.getData('code');\n      let barcode = model.getData('barcode');\n      name = `${name}-copy-` + _nventor.default.random.digits(3);\n      if (code) {\n        code = `${code}-copy-` + _nventor.default.random.digits(3);\n      }\n      if (barcode) {\n        barcode = `${barcode}-copy-` + _nventor.default.random.digits(3);\n      }\n      newModel.setData('status', this.get('constants.status.active'));\n      newModel.setData('name', name);\n      newModel.setData('password', '');\n      newModel.setData('code', code);\n      newModel.setData('barcode', barcode);\n      newModel.setData('_key', '');\n      newModel.setData('_id', '');\n      newModel.setData('_rev', '');\n      newModel.setData('modified', '');\n      newModel.setData('created', '');\n      newModel.setData('copyFromKey', model.getData('_key'));\n      newModel.setData('copyImages', true);\n      if (newModel?._data?.hasVariants) {\n        const variants = newModel?._data?.variants || [];\n        R.forEach(variantData => {\n          const variantOptions = variantData._data.options || [];\n          R.forEach(variantOptionData => {\n            variantOptionData.setData('optionUid', _nventor.default.random.alphaNum(10));\n          })(variantOptions);\n          return variantData;\n        })(variants);\n        // let variantChildren = newModel?._data?.variantChildren || []\n        // variantChildren = R.reject(variantChild => {\n        //   const permanentlyUnavailable = R.pathOr(false, ['_data', 'permanentlyUnavailable'])(variantChild)\n\n        //   if (permanentlyUnavailable) {\n        //     return true\n        //   }\n\n        //   return false\n        // })(variantChildren)\n        newModel.setData('variantChildren', []);\n        // newModel.updateVariantChildrenList()\n      }\n      newModel.set('isCopying', true);\n      this.set('dirty', newModel);\n      const tab = this.tab;\n      const tabCopy = this.tabsManager.copyTab({\n        tab\n      });\n      this.set('tabCopy', tabCopy);\n    },\n    cancelCopyProduct(onCloseDialogAction) {\n      const dirty = this.dirty;\n      const adapterName = this.adapterName;\n      this.dataManager.cancelDirty(adapterName, dirty);\n      onCloseDialogAction();\n    },\n    displayProduct(onCloseDialogAction, saved) {\n      const dirty = this.dirty;\n      const adapterName = this.adapterName;\n      this.dataManager.cancelDirty(adapterName, dirty);\n      this.set('dirty', '');\n      onCloseDialogAction();\n      return this.onDisplay(saved);\n    },\n    actions: {\n      editPanel() {\n        const tab = this.tab;\n        const model = this.model;\n        const activeSubTab = this.tabsManager.getActiveSubTab(tab);\n\n        // activeSubTab could be an empty object, on those cases it should use dot path rather than .get fn from model\n        const activeSubTabLabel = activeSubTab?.label || '';\n        const activeSubTabEditingComponent = activeSubTab?.editingComponent || '';\n        const subPanels = R_.dotPath('crud.lists.products-lists-editorSubPanels')(this) || [];\n        let subTabOptions = subPanels.findBy('_data.label', activeSubTabLabel);\n        if (RA.isNilOrEmpty(subTabOptions)) {\n          subTabOptions = subPanels.findBy('_data.component', activeSubTabEditingComponent) || _nventor.default.safeHeadOr({}, subPanels);\n        }\n        const tabOptions = {\n          loadInstructions: {\n            component: subTabOptions?._data?.component || '',\n            label: subTabOptions?._data?.label || '',\n            value: subTabOptions?._data?.value || ''\n          }\n        };\n        this.onEdit(model, {\n          tabOptions\n        });\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"copyProduct\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"copyProduct\"), _obj), _applyDecoratedDescriptor(_obj, \"cancelCopyProduct\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"cancelCopyProduct\"), _obj), _applyDecoratedDescriptor(_obj, \"displayProduct\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"displayProduct\"), _obj), _obj));\n});","define(\"client/pods/components/products/panels-display/details-display/component\", [\"exports\", \"ember-concurrency\", \"ramda\"], function (_exports, _emberConcurrency, _ramda) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    products: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    hideOptionSales: false,\n    hideOptionPurchases: false,\n    formInitData: null,\n    init() {\n      this._super(...arguments);\n      this.formInitData = {\n        documentationResource: 'products',\n        documentationIsMinimized: true,\n        menuId: 'productsDetailsMenu',\n        resourceList: this.resourceList,\n        wizardContainerComponent: this.wizardContainerComponent\n      };\n      this.fetchSalesPriceHistoryTask.perform();\n      this.fetchPurchasesPriceHistoryTask.perform();\n    },\n    fetchSalesPriceHistoryTask: (0, _emberConcurrency.task)(function* () {\n      const itemKey = this?.model?._data?._key;\n      if (itemKey) {\n        const salesPriceHistoryData = yield this.products.getHistoryTask.perform({\n          docType: 'sales',\n          docName: 'invoices',\n          itemKey\n        });\n        this.set('salesPriceHistoryData', salesPriceHistoryData);\n      }\n    }),\n    fetchPurchasesPriceHistoryTask: (0, _emberConcurrency.task)(function* () {\n      const itemKey = this?.model?._data?._key;\n      if (itemKey) {\n        const purchasesPriceHistoryData = yield this.products.getHistoryTask.perform({\n          docType: 'purchases',\n          docName: 'invoices',\n          itemKey\n        });\n        this.set('purchasesPriceHistoryData', purchasesPriceHistoryData);\n      }\n    }),\n    salesLatestByDate: Ember.computed('salesPriceHistoryData.history.{forContact.[],forOthers.[]}', function () {\n      const forContact = this.productsService.getFor('contact', this.salesPriceHistoryData);\n      const forOthers = this.productsService.getFor('others', this.salesPriceHistoryData);\n      return _ramda.default.concat(forContact, forOthers);\n    }),\n    purchasesLatestByDate: Ember.computed('purchasesPriceHistoryData.history.{forContact.[],forOthers.[]}', function () {\n      const forContact = this.productsService.getFor('contact', this.purchasesPriceHistoryData);\n      const forOthers = this.productsService.getFor('others', this.purchasesPriceHistoryData);\n      return _ramda.default.concat(forContact, forOthers);\n    }),\n    sortedSalesPriceHistoryData: Ember.computed('salesLatestByDate.[]', function () {\n      return this.salesLatestByDate;\n    }),\n    sortedPurchasesPriceHistoryData: Ember.computed('purchasesLatestByDate.[]', function () {\n      return this.purchasesLatestByDate;\n    }),\n    productSalesExclPrice: Ember.computed('model', function () {\n      const type = 'sales';\n      const product = this.model;\n      return product.getData(`${type}ExclPrice`);\n    }),\n    productPurchaseExclPrice: Ember.computed('model', function () {\n      const type = 'purchase';\n      const product = this.model;\n      return product.getData(`${type}ExclPrice`);\n    }),\n    productSalesInclPrice: Ember.computed('model', function () {\n      const type = 'sales';\n      const product = this.model;\n      return product.getData(`${type}InclPrice`);\n    }),\n    productPurchaseInclPrice: Ember.computed('model', function () {\n      const type = 'purchase';\n      const product = this.model;\n      return product.getData(`${type}InclPrice`);\n    }),\n    isProductReadonly: Ember.computed('isReadonly', function () {\n      return _ramda.default.propOr(true, 'isReadonly')(this);\n    })\n  });\n});","define(\"client/pods/components/products/panels-display/details-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"h+9gdL5S\",\n    \"block\": \"{\\\"symbols\\\":[\\\"history\\\",\\\"index\\\",\\\"history\\\",\\\"index\\\",\\\"productDisplayTag\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-container form-container--columns\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-column\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--column-2\\\"]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,6,[]],\\\"uploads_group\\\",[23,0,[\\\"formInitData\\\"]],\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,6,[]],\\\"auto\\\",40,true,true,true,[23,7,[]],\\\"products\\\",[23,7,[\\\"_data\\\",\\\"_key\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--column-2\\\"]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,6,[]],\\\"productsTags_group\\\",[23,0,[\\\"formInitData\\\"]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"productsTags\\\",\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[[23,8,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,7,[]],[23,6,[]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,7,[]],true,\\\"_data._key\\\",[23,6,[]],false,\\\"_data.tags\\\"]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,7,[\\\"_data\\\",\\\"tags\\\"]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\"],[\\\"\\\",[23,0,[\\\"formInitData\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\"],[[23,8,[]],\\\"fas fa-plus\\\",\\\"add display tags\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"productDisplayTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"display tags\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"position\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,7,[\\\"_data\\\",\\\"productDisplayTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,8,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@tab\\\",\\\"@translate\\\"],[\\\"products/lists/display-tags\\\",\\\"display-tags/display-tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-display-tags\\\"]],[23,5,[]],false,\\\"_data._key\\\",\\\"_data.tag\\\",[23,6,[]],false]]],[0,\\\"\\\\n                      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-display-tags\\\"]],\\\"_data._key\\\",false,[23,5,[\\\"_data\\\",\\\"tag\\\"]]]]],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-product-display-position\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,8,[]],true,[23,5,[\\\"_data\\\",\\\"position\\\"]]]]],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\"],[[23,8,[]],\\\"fas fa-trash\\\"]]],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"products/products-editor/details-editor\\\",null,[[\\\"tab\\\",\\\"showUploads\\\",\\\"model\\\",\\\"formGroupClassNames\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"resourceList\\\",\\\"showDocumentationDescription\\\",\\\"showDocumentationTemplate\\\",\\\"outerFormInitData\\\"],[[24,[\\\"tab\\\"]],false,[24,[\\\"model\\\"]],\\\"form-group__container--column-2\\\",[23,0,[\\\"isProductReadonly\\\"]],true,false,false,[23,9,[]],false,false,[23,0,[\\\"formInitData\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-column\\\",[[12,\\\"class\\\",\\\"form-container__column--hide-when-1300\\\"]],[[\\\"@disallowedForFeatures\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasInventory\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--column-1\\\"]],[[\\\"@disallowedForFeatures\\\",\\\"@tab\\\",\\\"@isAccordian\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null],[23,6,[]],true,\\\"inventory_group\\\",[23,0,[\\\"formInitData\\\"]],\\\"inventory\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"products/inventory/inventory-manager\\\",[],[[\\\"@isTable\\\",\\\"@product\\\"],[true,[23,7,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--column-1\\\"]],[[\\\"@disallowedForFeatures\\\",\\\"@tab\\\",\\\"@isAccordian\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null],[23,6,[]],true,\\\"inventory_group\\\",[23,0,[\\\"formInitData\\\"]],\\\"sales price history\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"sortedSalesPriceHistoryData\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"sortedSalesPriceHistoryData\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"customer\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\\n                    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"lte\\\",[[23,4,[]],2],null],[28,\\\"and\\\",[[24,[\\\"hideOptionSales\\\"]],[28,\\\"gt\\\",[[23,4,[]],2],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"date\\\",[[23,3,[\\\"doc\\\",\\\"dateZ\\\"]]],null],false],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,3,[\\\"doc\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"contactKey\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[23,3,[\\\"doc\\\",\\\"contactKey\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"doc\\\",\\\"contactKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                          \\\"],[1,[23,3,[\\\"doc\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n                        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"span\\\",true],[8],[1,[23,3,[\\\"exclPrice\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"span\\\",true],[8],[1,[23,3,[\\\"inclPrice\\\"]],false],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3,4]},null],[0,\\\"            \\\"],[9],[0,\\\" \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"sortedSalesPriceHistoryData\\\",\\\"length\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isToggler\\\",\\\"toggleIsOn\\\"],[[28,\\\"if\\\",[[24,[\\\"hideOptionSales\\\"]],\\\"show less\\\",\\\"show more\\\"],null],true,[24,[\\\"hideOptionSales\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--column-1\\\"]],[[\\\"@disallowedForFeatures\\\",\\\"@tab\\\",\\\"@isAccordian\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null],[23,6,[]],true,\\\"inventory_group\\\",[23,0,[\\\"formInitData\\\"]],\\\"purchases price history\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"sortedPurchasesPriceHistoryData\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"sortedPurchasesPriceHistoryData\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[]],0],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"supplier\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\\n                    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\\n                    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"lte\\\",[[23,2,[]],2],null],[28,\\\"and\\\",[[24,[\\\"hideOptionPurchases\\\"]],[28,\\\"gt\\\",[[23,2,[]],2],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"date\\\",[[23,1,[\\\"doc\\\",\\\"dateZ\\\"]]],null],false],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[1,[23,1,[\\\"doc\\\",\\\"contact\\\"]],false],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\",true],[8],[1,[23,1,[\\\"exclPrice\\\"]],false],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\",true],[8],[1,[23,1,[\\\"inclPrice\\\"]],false],[9],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1,2]},null],[0,\\\"            \\\"],[9],[0,\\\" \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"sortedPurchasesPriceHistoryData\\\",\\\"length\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isToggler\\\",\\\"toggleIsOn\\\"],[[28,\\\"if\\\",[[24,[\\\"hideOptionPurchases\\\"]],\\\"show less\\\",\\\"show more\\\"],null],true,[24,[\\\"hideOptionPurchases\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/details-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/emails-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"t8qXAcPE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isDisabled\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"products/products-editor/emails-editor\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isDisabled\\\",\\\"@resourceList\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/emails-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/faqs-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"a7bcd6sn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@lists\\\",\\\"@model\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"faqs for product\\\",[24,[\\\"errors\\\"]],\\\"faqsProducts\\\",\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"faqs\\\",[],[[\\\"@adapterName\\\",\\\"@appendPath\\\",\\\"@tab\\\",\\\"@lists\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isDisabled\\\"],[\\\"products\\\",\\\"\\\",[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/faqs-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/pages-display/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/products/panels-display/pages-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jK1kjVnz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"products/products-editor/pages-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"resourceList\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isDisabled\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/pages-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/seo-display/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/products/panels-display/seo-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"b2Xj/V4d\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"products/products-editor/seo-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"resourceList\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isDisabled\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/seo-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/sets-display/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/products/panels-display/sets-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AB3kUVf9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"products/products-editor/sets-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"resourceList\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isDisabled\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/sets-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/sets-with-choices-display/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/products/panels-display/sets-with-choices-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5R7M5EKf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"products/products-editor/sets-with-choices-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"resourceList\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\"]],false,[24,[\\\"isReadonly\\\"]],[24,[\\\"isDisabled\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/sets-with-choices-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/shop-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let ProductsPanelsDisplayShopDisplayComponent = _exports.default = (_dec = Ember._action, _class = class ProductsPanelsDisplayShopDisplayComponent extends _component.default {\n    onAfterSave() {\n      const tabOptions = {};\n      const model = this.args.model;\n      return this.args.showShopWizard(model, tabOptions);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onAfterSave\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterSave\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/panels-display/shop-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Xu6c/+2h\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"products/products-shop-wizard/selector\\\",[],[[\\\"@model\\\",\\\"@onAfterSave\\\",\\\"@isFromShop\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@hasFooterBtns\\\"],[[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"onAfterSave\\\"]]],null],false,false,[23,2,[]],false]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/shop-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"y9WbPa0o\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"subTab\\\",\\\"@showShopWizard\\\",\\\"@tab\\\",\\\"@showUploadsInHeader\\\",\\\"@filters\\\",\\\"@errors\\\",\\\"@errorMsg\\\",\\\"@onDash\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"products/panels-header\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@subPanels\\\",\\\"@showUploadsInHeader\\\"],[[23,4,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"displaySubPanels\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,4,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,2,[\\\"component\\\"]]],[[\\\"errors\\\",\\\"fromProductsTab\\\",\\\"model\\\",\\\"filters\\\",\\\"isDisabled\\\",\\\"isDuplicate\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"tab\\\",\\\"showShopWizard\\\",\\\"resourceList\\\"],[[23,7,[]],true,[23,0,[\\\"model\\\"]],[23,6,[]],true,[24,[\\\"isDuplicate\\\"]],false,false,true,[23,2,[]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-displaySubPanels\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@msg\\\"],[[23,8,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[23,9,[]],\\\"overview\\\"]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@isPreview\\\",\\\"@master\\\",\\\"@metaData\\\",\\\"@tab\\\",\\\"@type\\\"],[\\\"comments/comments-manager/modal-btn\\\",true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"name\\\",\\\"product\\\",\\\"productKey\\\"],[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]],[23,4,[]],\\\"products\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowCopy\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"copy\\\",\\\"far fa-copy\\\",[28,\\\"fn\\\",[[23,0,[\\\"copyProduct\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"products/panels-new\\\",[],[[\\\"@isDuplicate\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onAfterCreateRecordTask\\\",\\\"@tab\\\",\\\"@showShopWizard\\\"],[true,[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"cancelCopyProduct\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"displayProduct\\\"]],[23,1,[]]],null],[23,0,[\\\"tabCopy\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"edit\\\",[22,\\\"disabled\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"editPanel\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/tickets-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gJEDInik\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isDisabled\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"products/products-editor/tickets-editor\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isDisabled\\\",\\\"@resourceList\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/tickets-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/transactions-display/component\", [\"exports\", \"client/mixins/date\", \"client/mixins/settings\", \"client/mixins/crud\", \"client/mixins/doc-list-by\", \"ember-concurrency\"], function (_exports, _date, _settings, _crud, _docListBy, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, _docListBy.default, _settings.default, {\n    crud: Ember.inject.service(),\n    adapterName: 'documents/data/products/transactions',\n    init() {\n      this._super(...arguments);\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      const transactionsFilters = this.search.setupFilters({\n        adapterName: 'filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'dateZ',\n            direction: 'DESC'\n          }, {\n            by: 'docNo',\n            direction: 'DESC'\n          }]\n        }\n      });\n      this.set('transactionsFilters', transactionsFilters);\n    },\n    async didInsertElement() {\n      this._super(...arguments);\n\n      // get by latest\n      this.searchTask.perform();\n    },\n    searchTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd\n    } = {}) {\n      const model = this.model;\n      const itemKey = model.getData('_key');\n      const adapterName = this.adapterName;\n      const appendPath = `/${itemKey}`;\n      const transactionsFilters = this.transactionsFilters;\n      transactionsFilters.setData('dateStart', dateStart);\n      transactionsFilters.setData('dateEnd', dateEnd);\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        filters: transactionsFilters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      this.set('results', results);\n    }),\n    resetPage() {\n      // reset the page and count to 1 and 20\n      const transactionsFilters = this.transactionsFilters;\n      transactionsFilters.setData('page', 1);\n      transactionsFilters.setData('count', 20);\n    },\n    actions: {\n      async displayByMonth(period) {\n        this.resetPage();\n        const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n        const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n        this.searchTask.perform({\n          dateStart,\n          dateEnd\n        });\n      },\n      async displayByCustomMonth() {\n        this.resetPage();\n        const dateEndString = this.customDateEndZ;\n        const dateStartString = this.customDateStartZ;\n        let dateEnd;\n        let dateStart;\n        if (dateEndString) {\n          if (!dateStartString) {\n            const dateEndObj = this.getMonthEnd(dateEndString);\n            dateStart = this.formatDateForUrl(dateEndObj.startOf('month'));\n            dateStart = this.getStartOfDayZ(dateStart);\n            dateEnd = dateEndString;\n          } else {\n            if (dateStartString > dateEndString) {\n              dateEnd = dateStartString;\n              dateStart = dateEndString;\n            } else {\n              dateEnd = dateEndString;\n              dateStart = dateStartString;\n            }\n          }\n\n          // const model = this.get('model')\n          // const itemKey = model.getData('_key')\n          // const adapterName = this.get('adapterName')\n          // const filters = this.get('filters')\n\n          this.searchTask.perform({\n            dateStart,\n            dateEnd\n          });\n          // const results = await this.get('listByDetailsTask').perform({ filters, adapterName, itemKey, dateStart, dateEnd })\n          // this.set('results', results)\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/transactions-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LoG4YiOR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"period\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center u-container\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]]]]],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-3 u-margin-right-3\\\"],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"is-primary u-margin-left-3\\\",[23,0,[\\\"fetchDataTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustomMonth\\\"],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,1,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"listByDetailsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"searchTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"documents/transactions-list-by-details\\\",null,[[\\\"tab\\\",\\\"filters\\\",\\\"hasTabLinks\\\",\\\"hideExcl\\\",\\\"results\\\",\\\"showOrderDate\\\",\\\"isRunning\\\",\\\"onPaginationTask\\\",\\\"lastSearchSettings\\\",\\\"isSetWithChoices\\\",\\\"page\\\",\\\"count\\\"],[[24,[\\\"tab\\\"]],[23,0,[\\\"transactionsFilters\\\"]],true,false,[24,[\\\"results\\\"]],true,[24,[\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]],[24,[\\\"lastSearchSettings\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"isSetWithChoices\\\"]],[24,[\\\"page\\\"]],[24,[\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/transactions-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-display/variants-display/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { task } from 'ember-concurrency'\n  var _default = _exports.default = Ember.Component.extend({});\n});","define(\"client/pods/components/products/panels-display/variants-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mwtjfUiq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"products/products-editor/variants-editor\\\",null,[[\\\"tab\\\",\\\"model\\\",\\\"variantChildrenDisplay\\\",\\\"isReadonly\\\",\\\"isDisabled\\\",\\\"resourceList\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"model\\\"]],[24,[\\\"variantChildrenDisplay\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isDisabled\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-display/variants-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-edit/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency-decorators\", \"ramda-extension\", \"ramda\", \"client/utils/nventor\"], function (_exports, _crud, _emberConcurrencyDecorators, R_, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    adapterName: 'products',\n    init() {\n      this.setup();\n      this._super(...arguments);\n    },\n    setup() {\n      this.crud.addLists(this, ['products/lists/displaySubPanels']);\n      const tab = this.tab;\n      const model = tab.model;\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model,\n        tab\n      });\n      this.set('dirty', dirty);\n      this.set('model', model);\n      this.tabsManager.setHeader(this.tabParent, dirty.getData('name'));\n    },\n    displaySubPanels: Ember.computed('crud.lists.products-lists-displaySubPanels.[]', 'model._data.setType', function () {\n      let panels = R_.dotPath('crud.lists.products-lists-displaySubPanels')(this) || [];\n      let removeAll = false;\n      const setType = this.get('model._data.setType');\n      if (_nventor.default.isNilOrEmpty(setType)) {\n        removeAll = true;\n      }\n      if (setType !== 'isSet' && setType !== 'isSetWithChoices' && setType !== 'hasVariants') {\n        removeAll = true;\n      }\n      if (setType === 'isSet' || removeAll) {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'hasVariants'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSetWithChoices'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'customizations'))(panels);\n      }\n      if (setType === 'isSetWithChoices' || removeAll) {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSet'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'hasVariants'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'customizations'))(panels);\n      }\n      if (setType === 'hasVariants' || removeAll) {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSet'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSetWithChoices'))(panels);\n      }\n      return panels;\n    }),\n    *updateRecordTask({\n      campaignDetailInstructions,\n      updateShopPrices = false\n    } = {}) {\n      const tab = this.tab;\n      const model = this.dirty;\n      const adapterName = this.adapterName;\n      const onAfter = this.onAfterSave;\n      Ember.set(this, 'campaignDetailInstructions', campaignDetailInstructions);\n      Ember.set(this, 'updateShopPrices', updateShopPrices);\n      yield this.crud.updateRecordTask.perform({\n        adapterName,\n        model,\n        excludeProps: ['faqs'],\n        onAfter,\n        tab\n      });\n    },\n    onAfterSave(model) {\n      if (this.updateShopPrices) {\n        const campaignDetailInstructions = this.campaignDetailInstructions;\n        const tabOptions = {\n          loadInstructions: {\n            campaignDetailInstructions: campaignDetailInstructions\n          }\n        };\n        return this.showShopWizard(model, tabOptions);\n      }\n      const tab = this.tab;\n      const activeSubTab = this.tabsManager.getActiveSubTab(tab);\n      const subPanels = this.displaySubPanels;\n      const subTabOptions = this.tabsManager.findReturnPanel(subPanels, activeSubTab);\n      const tabOptions = {\n        loadInstructions: {\n          component: subTabOptions?._data?.component || '',\n          label: subTabOptions?._data?.label || '',\n          value: subTabOptions?._data?.value || ''\n        }\n      };\n      return this.onDisplay(model, {\n        tabOptions\n      });\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateRecordTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"updateRecordTask\"), _obj), _applyDecoratedDescriptor(_obj, \"onAfterSave\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onAfterSave\"), _obj), _obj));\n});","define(\"client/pods/components/products/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9cbqX7Hn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDisplay\\\",\\\"@onDash\\\",\\\"@tab\\\",\\\"@isFromShop\\\"],\\\"statements\\\":[[5,\\\"products/products-editor\\\",[],[[\\\"@adapterName\\\",\\\"@isEditing\\\",\\\"@isRunning\\\",\\\"@isShopDotComEnabled\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onSaveTask\\\",\\\"@originalModel\\\",\\\"@tab\\\",\\\"@isFromShop\\\"],[[23,0,[\\\"adapterName\\\"]],true,[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"isShopDotComEnabled\\\"]],[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"cancelEditing\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"dirty\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"dirty\\\"]],[23,1,[]]]]]],null],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"updateRecordTask\\\"]]],null],[23,0,[\\\"model\\\"]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-header/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ProductsPanelsHeaderComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service('products'), _dec7 = Ember.inject.service, _dec8 = Ember.inject.service, _dec9 = Ember._tracked, _class = class ProductsPanelsHeaderComponent extends _component.default {\n    get trackingTagLabel() {\n      return this.intl.t('tracking') + ': ';\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"adapterName\", _descriptor9, this);\n      this.crud.addLists(this, [{\n        name: 'taxes',\n        appendPath: 'products'\n      }, 'products/lists/tags', 'products/lists/types', 'products/lists/setTypes', 'products/lists/setTypes/variants', 'products/lists/tracking', 'products/lists/invoiceDescriptions', 'statuses']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"adapterName\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'products';\n    }\n  }), _class);\n});","define(\"client/pods/components/products/panels-header/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MHXgShlS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@model\\\",\\\"@errors\\\",\\\"@subPanels\\\",\\\"@showUploadsInHeader\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,1,[]],[23,1,[\\\"subTabs\\\"]],[23,3,[]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,1,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"parent\\\",\\\"_data\\\",\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[1,[23,0,[\\\"parent\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\": \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags-display\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,2,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@disallowedForFeatures\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[23,2,[\\\"_data\\\",\\\"type\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@prefix\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tracking\\\"]],[23,0,[\\\"trackingTagLabel\\\"]],[23,2,[\\\"_data\\\",\\\"tracking\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypes\\\"]],[23,2,[\\\"_data\\\",\\\"setType\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypes-variants\\\"]],[23,2,[\\\"_data\\\",\\\"isVariantChild\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@translate\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,2,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\",false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@iconOnly\\\",\\\"@model\\\"],[true,[23,2,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"msgs/deleted-error\\\",[],[[\\\"@model\\\"],[[23,2,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-row\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,1,[]],\\\"auto\\\",40,true,true,true,[23,2,[]],\\\"products\\\",[23,2,[\\\"_data\\\",\\\"_key\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-header/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-inventory/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    inventoryFiltersAdapterName: 'products/inventory/adjustments/filters',\n    count: 20,\n    page: 1,\n    errorMsg: Ember.computed(function () {\n      return this.intl.t('error occurred please try again later');\n    }),\n    init() {\n      this._super(...arguments);\n      const inventoryFilters = this.search.setupFilters({\n        adapterName: this.inventoryFiltersAdapterName\n      });\n      inventoryFilters.set('showFilters', true);\n      Ember.set(this, 'inventoryFilters', inventoryFilters);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.fetchAdjustmentsTask.perform();\n    },\n    fetchAdjustmentsTask: (0, _emberConcurrency.task)(function* () {\n      const inventoryFilters = this.inventoryFilters;\n      const searchSettings = {\n        adapterName: 'products/inventory/adjustments',\n        resultsProperty: 'results',\n        resultsToggle: '',\n        filters: inventoryFilters\n      };\n\n      // const adjustmentsData = yield this.searchRecordsTask.perform(searchSettings)\n      yield this.crud.searchRecordsTask.perform(searchSettings);\n    })\n  });\n});","define(\"client/pods/components/products/panels-inventory/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"w32UXtRG\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content table-view-container flex-container-row flex-container--wrap\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inventory management\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[22,\\\"products/inventory/inventory-editor-th\\\"],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/inventory/inventory-editor\\\",null,[[\\\"isNew\\\",\\\"isEditing\\\",\\\"onAfterCreateRecordTask\\\"],[true,true,[28,\\\"perform\\\",[[23,0,[\\\"fetchAdjustmentsTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"u-table__row-separator\\\"],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@topFiltersComponent\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@results\\\",\\\"@tableClassNames\\\",\\\"@onPaginationTask\\\",\\\"@paginationIsFooter\\\",\\\"@tableViewOptions\\\"],[\\\"products/inventory/table-view/detail-row\\\",\\\"products/inventory/table-view/filters-advanced\\\",[23,0,[\\\"inventoryFilters\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"inventoryFilters\\\"]]]]]],null],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"inventoryFilters\\\",\\\"results\\\"]],\\\"new-table-view--data\\\",[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],false,[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"onAfterTask\\\"],[\\\"products/inventory/adjustments\\\",[23,0,[\\\"fetchAdjustmentsTask\\\"]]]]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-inventory/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/panels-new/component\", [\"exports\", \"client/mixins/crud\", \"client/utils/nventor\", \"ember-concurrency-decorators\"], function (_exports, _crud, _nventor, _emberConcurrencyDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    campaignsProductsService: Ember.inject.service('campaigns-products'),\n    adapterName: 'products',\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n      this.tabsManager.setHeader(this.tabParent, this.intl.t('new'));\n    },\n    setup() {\n      const resourceKeyTemp = _nventor.default.random.alphaNum(8);\n      if (this.model && this.model?.isCopying === true) {\n        // Reset resourceKeyTemp to prevent copy images from main product\n        this.model.setData('resourceKeyTemp', resourceKeyTemp);\n      } else {\n        const name = this.name || '';\n        const data = {\n          name,\n          resourceKeyTemp\n        };\n\n        // setup new products model\n        const model = this.crud.setupNewRecord?.({\n          adapterName: this.adapterName,\n          data\n        });\n        this.set('model', model);\n        this.set('newModels', [model]);\n      }\n    },\n    *saveRecordTask({\n      campaignDetailInstructions,\n      updateShopPrices = false\n    } = {}) {\n      const tab = this.tab;\n      const model = this.model;\n      const adapterName = this.adapterName;\n      const onAfter = this.onAfterSave;\n      Ember.set(this, 'campaignDetailInstructions', campaignDetailInstructions);\n      Ember.set(this, 'updateShopPrices', updateShopPrices);\n      yield this.crud.createRecordTask.perform({\n        adapterName,\n        model,\n        onAfter,\n        tab\n      });\n    },\n    onAfterSave(model, onAfterOptions) {\n      if (this.updateShopPrices) {\n        const campaignDetailInstructions = this.campaignDetailInstructions;\n        const tabOptions = {\n          loadInstructions: {\n            campaignDetailInstructions: campaignDetailInstructions\n          }\n        };\n        return this.showShopWizard(model, tabOptions);\n      }\n      return this.onAfterCreateRecordTask(model, onAfterOptions);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"saveRecordTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"saveRecordTask\"), _obj), _applyDecoratedDescriptor(_obj, \"onAfterSave\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onAfterSave\"), _obj), _obj));\n});","define(\"client/pods/components/products/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hdVkWE4K\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isDuplicate\\\",\\\"@isFromShop\\\",\\\"@campaign\\\",\\\"@onCancel\\\",\\\"@onImportTask\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"products/products-editor\\\",[],[[\\\"@adapterName\\\",\\\"@isDuplicate\\\",\\\"@isNew\\\",\\\"@isFromShop\\\",\\\"@campaign\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onImportTask\\\",\\\"@onSaveTask\\\",\\\"@tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,1,[]],true,[23,2,[]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"model\\\"]],[23,4,[]],[23,5,[]],[28,\\\"perform\\\",[[23,0,[\\\"saveRecordTask\\\"]]],null],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/picker-modal/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    query: '',\n    filters: null,\n    autofocus: true,\n    adapterName: 'products',\n    searchMethod: 'searchInputTask',\n    searchOptions: null,\n    page: 1,\n    count: 20,\n    // init () {\n    //   this.crud.addLists(this, [\n    //     'products/lists/filters/search',\n    //     'products/lists/filters/sort',\n    //     'products/lists/filters/status',\n    //     'products/lists/types',\n    //     'filters/count',\n    //     'filters/sortDirection'\n    //   ])\n    //   this._super(...arguments)\n    // },\n\n    actions: {\n      select(onCloseDialogAction, model) {\n        onCloseDialogAction();\n        this.onSelect(model);\n      },\n      cancel(onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  });\n});","define(\"client/pods/components/products/picker-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KOfGcPjB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"searchContainer\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[\\\"search products\\\",[22,\\\"modalDialogIsVisible\\\"],true,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"modalDialogIsVisible\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"products/search-bar-container\\\",null,[[\\\"results\\\"],[[24,[\\\"results\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/search-bar-container/search-bar\\\",null,[[\\\"autofocus\\\",\\\"placeholder\\\",\\\"searchInputTask\\\",\\\"listByTask\\\",\\\"lists\\\",\\\"filters\\\",\\\"query\\\"],[true,\\\"search\\\",[23,2,[\\\"searchInputTask\\\"]],[23,2,[\\\"listByTask\\\"]],[23,2,[\\\"lists\\\"]],[23,2,[\\\"filters\\\"]],[24,[\\\"query\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/search-bar-container/search-results\\\",null,[[\\\"results\\\",\\\"lists\\\",\\\"onSelect\\\"],[[23,2,[\\\"results\\\"]],[23,2,[\\\"lists\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[24,[\\\"filters\\\"]],[23,2,[\\\"results\\\"]],[23,2,[\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/picker-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/price-selectors/mixins/products\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    isOnSale: Ember.computed('history.onSale', function () {\n      if (this.get('history.onSale') === 'on') {\n        return true;\n      }\n      return false;\n    }),\n    oldPrice: Ember.computed('history.{isSetWithChoices,hasVariants,price,priceDiscounted}', 'synced', function () {\n      if (this.get('history.isSetWithChoices')) {\n        return this.lowestSetWithChoicesPriceOld;\n      }\n      if (this.get('history.hasVariants')) {\n        return this.lowestVariantPriceOld;\n      }\n      return this.get('history.price');\n    }),\n    currentPrice: Ember.computed('isOnSale', 'history.{price,priceDiscounted}', 'synced', function () {\n      if (this.get('history.isSetWithChoices')) {\n        if (this.isOnSale) {\n          return this.lowestSetWithChoicesPricePossible;\n        }\n        return this.lowestSetWithChoicesPriceOld;\n      }\n      if (this.get('history.hasVariants')) {\n        if (this.isOnSale) {\n          return this.lowestVariantPriceCurrent;\n        }\n        return this.lowestVariantPriceOld;\n      }\n      if (this.isOnSale) {\n        if (this.get('history.priceDiscounted')) {\n          return this.get('history.priceDiscounted');\n        }\n      }\n      return this.get('history.price');\n    }),\n    currentInclPrice: Ember.computed('isOnSale', 'history.{price,priceDiscounted,isSetPriceOnBundle}', 'synced', function () {\n      if (this.get('history.isSetWithChoices')) {\n        if (this.isOnSale) {\n          return this.lowestSetWithChoicesPricePossible;\n        }\n        return this.lowestSetWithChoicesPriceOld;\n      }\n      if (this.get('history.hasVariants')) {\n        if (this.isOnSale) {\n          return this.lowestVariantPriceCurrent;\n        }\n        return this.lowestVariantPriceOld;\n      }\n      if (this.isOnSale) {\n        if (this.get('history.priceDiscounted')) {\n          return this.get('history.priceDiscounted');\n        }\n      }\n      return this.get('history.inclPrice');\n    }),\n    lowestVariantOldPriceRange: Ember.computed('history.{variantChildren.[],price,priceDiscounted}', function () {\n      const variantChildren = this.get('history.variantChildren') || [];\n      const diff = function (a, b) {\n        return parseFloat(a) - parseFloat(b);\n      };\n      let variantMasterPrice = this.get('history.price');\n      if (!variantMasterPrice) {\n        variantMasterPrice = this.get('history.priceDiscounted');\n      }\n      const isEmpty = R.curry((prop, child) => {\n        return R.isEmpty(R.path(['history', prop], child));\n      });\n      return R.pipe(R.reject(R.allPass([isEmpty('price'), isEmpty('priceDiscounted')])), R.map(variantChild => {\n        const price = R.path(['history', 'price'])(variantChild);\n        if (price) {\n          return price;\n        }\n        return R.path(['history', 'priceDiscounted'])(variantChild);\n      }), R.concat([variantMasterPrice]), R.uniq, R.sort(diff))(variantChildren);\n    }),\n    lowestVariantPriceOld: Ember.computed('history.{variantChildren.[],price,priceDiscounted}', function () {\n      const lowestVariantPrices = this.lowestVariantOldPriceRange || [];\n      let lowestVariantPrice;\n      if (lowestVariantPrices.length > 0) {\n        lowestVariantPrice = lowestVariantPrices[0];\n      }\n      return lowestVariantPrice;\n    }),\n    lowestVariantCurrentPriceRange: Ember.computed('history.{variantChildren.[],price,priceDiscounted,onSale}', function () {\n      const variantChildren = this.get('history.variantChildren') || [];\n      const diff = (a, b) => parseFloat(a) - parseFloat(b);\n      const onSale = this.get('history.onSale');\n      let variantMasterPrice = this.get('history.price');\n      if (!variantMasterPrice || onSale) {\n        variantMasterPrice = this.get('history.priceDiscounted');\n      }\n      const isEmpty = R.curry((prop, child) => {\n        return R.isEmpty(R.path(['history', prop], child));\n      });\n      return R.pipe(R.reject(R.allPass([isEmpty('price'), isEmpty('priceDiscounted')])), R.map(variantChild => {\n        if (onSale === 'on') {\n          if (R.pathEq(['history', 'onSale'], 'on', variantChild)) {\n            return R.path(['history', 'priceDiscounted'], variantChild);\n          }\n        }\n        return R.path(['history', 'price'], variantChild);\n      }), R.concat([variantMasterPrice]), R.uniq, R.sort(diff))(variantChildren);\n    }),\n    lowestVariantPriceCurrent: Ember.computed('history.{variantChildren.[],price,priceDiscounted,onSale}', function () {\n      const lowestVariantPrices = this.lowestVariantCurrentPriceRange || [];\n      let lowestVariantPrice;\n      if (lowestVariantPrices.length > 0) {\n        lowestVariantPrice = lowestVariantPrices[0];\n      }\n      return lowestVariantPrice;\n    }),\n    lowestSetWithChoicesPriceOld: Ember.computed('history.{choices.[]}', function () {\n      const choices = this.get('history.choices') || [];\n      const diff = function (a, b) {\n        return parseFloat(a) - parseFloat(b);\n      };\n      const lowestTotalPrice = R.pipe(R.map(choice => {\n        const chooseQty = choice.qty;\n        const isSetPriceOnBundle = choice.isSetPriceOnBundle;\n        const details = choice.details || [];\n        const lowestPrices = R.map(detail => {\n          if (detail.hasVariants) {\n            return detail.lowestVariantPriceOld;\n          }\n          if (detail.price) {\n            return detail.price;\n          }\n          return detail.priceDiscounted;\n        })(details);\n        let lowestPrice = R.pipe(R.sort(diff), R.head)(lowestPrices);\n        if (isSetPriceOnBundle) {\n          if (choice.price) {\n            lowestPrice = choice.price || 0;\n          } else {\n            lowestPrice = choice.priceDiscounted || 0;\n          }\n          return lowestPrice;\n        }\n        return chooseQty * lowestPrice;\n      }), R.flatten, R.reduce((acc, lowestPrice) => {\n        acc = parseInt(acc) + parseInt(lowestPrice);\n        return acc;\n      }, 0))(choices);\n      return lowestTotalPrice;\n    }),\n    lowestSetWithChoicesPricePossible: Ember.computed('history.{choices.[],onSale}', function () {\n      const choices = this.get('history.choices') || [];\n      const diff = function (a, b) {\n        return parseFloat(a) - parseFloat(b);\n      };\n      const onSale = this.get('history.onSale');\n      const lowestTotalPrice = R.pipe(R.map(choice => {\n        const chooseQty = choice.qty;\n        const isSetPriceOnBundle = choice.isSetPriceOnBundle;\n        const details = choice.details || [];\n        const lowestPrices = R.map(detail => {\n          if (onSale === 'on') {\n            if (detail.hasVariants) {\n              return detail.lowestVariantPriceCurrent;\n            }\n\n            // if (detail.onSale === 'on') {\n            return detail.priceDiscounted;\n            // }\n          }\n          return detail.price;\n        })(details);\n        let lowestPrice = R.pipe(R.sort(diff), R.head)(lowestPrices);\n        if (isSetPriceOnBundle) {\n          if (onSale === 'on') {\n            lowestPrice = choice.priceDiscounted || 0;\n          } else {\n            lowestPrice = choice.price || 0;\n          }\n          return lowestPrice;\n        }\n        return chooseQty * lowestPrice;\n      }), R.flatten, R.reduce((acc, lowestPrice) => {\n        acc = parseInt(acc) + parseInt(lowestPrice);\n        return acc;\n      }, 0))(choices);\n      return lowestTotalPrice;\n    }),\n    hasPriceRange: Ember.computed('history.{choices.[],onSale,variantChildren.[]}', function () {\n      const choices = this.get('history.choices') || [];\n      const onSale = this.get('history.onSale');\n      if (this.get('history.hasVariants')) {\n        const lowestVariantCurrentPriceRange = this.lowestVariantCurrentPriceRange || [];\n        if (lowestVariantCurrentPriceRange.length > 1) {\n          return true;\n        }\n        return false;\n      }\n      const onlyChoicesWithPriceRanges = R.filter(choice => {\n        const details = choice.details || [];\n        const isSetPriceOnBundle = choice.isSetPriceOnBundle;\n        if (isSetPriceOnBundle) {\n          return false;\n        }\n        const allUniqueDetailPrices = R.pipe(R.map(detail => {\n          if (onSale === 'on') {\n            if (detail.onSale === 'on') {\n              return detail.priceDiscounted;\n            }\n          }\n          return detail.price;\n        }), R.uniq)(details);\n        if (allUniqueDetailPrices.length > 1) {\n          return true;\n        }\n        return false;\n      })(choices);\n      if (onlyChoicesWithPriceRanges.length > 0) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/products/price-selectors/price-selector-campaigns/commission-history-prices/component\", [\"exports\", \"client/pods/components/products/price-selectors/mixins/products\"], function (_exports, _products) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_products.default, {\n    tagName: ''\n  });\n});","define(\"client/pods/components/products/price-selectors/price-selector-campaigns/commission-history-prices/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+1MN4dJo\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-results__item\\\"],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelect\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__details\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"history\\\",\\\"doc\\\",\\\"contact\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[24,[\\\"history\\\",\\\"doc\\\",\\\"contact\\\"]],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[24,[\\\"history\\\",\\\"doc\\\",\\\"docType\\\"]],\\\"-\\\",[24,[\\\"history\\\",\\\"doc\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\": #\\\"],[1,[24,[\\\"history\\\",\\\"doc\\\",\\\"docNo\\\"]],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"date\\\",[[24,[\\\"history\\\",\\\"doc\\\",\\\"dateZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[24,[\\\"history\\\",\\\"campaign\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"history\\\",\\\"campaign\\\",\\\"dateStartZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"          : \\\"],[1,[28,\\\"date\\\",[[24,[\\\"history\\\",\\\"campaign\\\",\\\"dateStartZ\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"history\\\",\\\"campaign\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"date\\\",[[24,[\\\"history\\\",\\\"timestampZ_latest\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"history\\\",\\\"type\\\"]],\\\"setDetails\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"isSetChild\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"history\\\",\\\"type\\\"]],\\\"choices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"isSetWithChoices\\\"],null],false],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"      \\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/price-selectors/price-selector-campaigns/commission-history-prices/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/price-selectors/price-selector-campaigns/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"ember-concurrency\"], function (_exports, R, RA, R_, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'span',\n    classNames: [''],\n    isReadonly: false,\n    fetchHistoryOnInitTask: (0, _emberConcurrency.task)(function* () {\n      const {\n        preferredHistoryData,\n        priceHistoryData\n      } = yield this.onFetchPriceHistoryTask();\n      this.set('priceHistoryData', priceHistoryData);\n    }),\n    sortedData: Ember.computed('priceHistoryData.history.{campaigns.[],automations.[],documents.[]}', function () {\n      // const campaignDetailKey = this?.campaignDetailKey || ''\n      const forCampaigns = this.productsService.getFor('campaigns', this.priceHistoryData);\n\n      // remove itself so it wouldn't show as history price\n      // forCampaigns = R.reject(campaign => R.propEq('_key', campaignDetailKey, campaign), forCampaigns)\n      // forCampaigns = R.reject(campaign => R.propEq('campaignDetailKey', campaignDetailKey, campaign), forCampaigns)\n\n      const forAutomations = this.productsService.getFor('automations', this.priceHistoryData);\n      const forDocuments = this.productsService.getFor('documents', this.priceHistoryData);\n      return RA.concatAll([forCampaigns, forAutomations, forDocuments]);\n    }),\n    isDisabled: Ember.computed('isReadonly', 'itemKey', function () {\n      if (!this.itemKey) {\n        return true;\n      }\n      return this.isReadonly;\n    }),\n    actions: {\n      select(history, onHideDropdown) {\n        this.onSelect(history, onHideDropdown);\n      }\n    }\n  });\n});","define(\"client/pods/components/products/price-selectors/price-selector-campaigns/history-prices/component\", [\"exports\", \"client/pods/components/products/price-selectors/mixins/products\"], function (_exports, _products) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_products.default, {\n    tagName: '',\n    selectedKey: Ember.computed('preferredPriceData', function () {\n      const preferredPriceData = this?.preferredPriceData || {};\n      return preferredPriceData?._key;\n    }),\n    isSelected: Ember.computed('history.{type,_key}', 'preferredPriceData.{type,_key}', function () {\n      if (this?.preferredPriceData?.type === 'none' && this?.history?.type === 'none') {\n        return true;\n      }\n      const preferredPriceKey = this?.preferredPriceData?._key;\n      const historyKey = this?.history?._key;\n      if (historyKey === preferredPriceKey) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/products/price-selectors/price-selector-campaigns/history-prices/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UQGmVBVr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@history\\\",\\\"@isPriceSelectorDialog\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"\\\\n    u-results__item\\\\n    u-results__item--narrow\\\\n    \\\",[28,\\\"if\\\",[[23,2,[]],\\\"u-results__item--list-choice\\\",\\\"\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[]],[23,0,[\\\"isSelected\\\"]]],null],\\\"u-results__item--list-choice-selected\\\",\\\"\\\"],null],\\\"\\\\n  \\\"]]],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelect\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__details\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc u-desc--mini u-desc--bold\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"doc\\\",\\\"contact\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc u-desc--mini u-desc--bold\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"doc\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"doc\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\": #\\\"],[1,[23,1,[\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"doc\\\",\\\"source\\\"]]],null,{\\\"statements\\\":[[0,\\\"          (\\\"],[1,[23,1,[\\\"doc\\\",\\\"source\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"doc\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"automationKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[23,1,[\\\"automation\\\",\\\"thenAction\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\": \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--bold\\\"],[8],[1,[28,\\\"currency\\\",[[23,0,[\\\"currentInclPrice\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\": \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--bold\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"exclPrice\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"doc\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--bold\\\"],[8],[1,[23,1,[\\\"campaign\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"campaign\\\",\\\"dateStartZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"          : \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"campaign\\\",\\\"dateStartZ\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"campaign\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isAutomation\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[23,1,[\\\"automation\\\",\\\"thenAction\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\": \\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isOnSale\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"channels/shop/items/item-price/item-price-old\\\",[],[[\\\"@price\\\",\\\"@hasStrikeThrough\\\"],[[23,0,[\\\"oldPrice\\\"]],[23,0,[\\\"isOnSale\\\"]]]]],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--bold\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"channels/shop/items/item-price/item-price-current\\\",[],[[\\\"@price\\\",\\\"@hasPriceRange\\\",\\\"@onSale\\\"],[[23,0,[\\\"currentInclPrice\\\"]],[23,0,[\\\"hasPriceRange\\\"]],[23,0,[\\\"isOnSale\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--bold\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"channels/shop/items/item-price/item-price-current\\\",[],[[\\\"@price\\\",\\\"@hasPriceRange\\\",\\\"@onSale\\\"],[[23,0,[\\\"currentPrice\\\"]],[23,0,[\\\"hasPriceRange\\\"]],[23,0,[\\\"isOnSale\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"onSale\\\"]],\\\"on\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text-narrow-p u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"setDetails\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"isSetChild\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"type\\\"]],\\\"choices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[1,[28,\\\"tt\\\",[\\\"isSetWithChoices\\\"],null],false],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"      \\\\n    \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/price-selectors/price-selector-campaigns/history-prices/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/price-selectors/price-selector-campaigns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nS46VqiD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"history\\\",\\\"history\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"icon\\\",\\\"hasToggleIconRight\\\",\\\"onSubmit\\\",\\\"list\\\"],[[24,[\\\"isDisabled\\\"]],[28,\\\"or\\\",[[24,[\\\"isRunning\\\"]],[24,[\\\"fetchHistoryOnInitTask\\\",\\\"isRunning\\\"]]],null],\\\"fas fa-magnifying-glass-dollar\\\",false,[28,\\\"perform\\\",[[24,[\\\"fetchHistoryOnInitTask\\\"]]],null],[28,\\\"array\\\",[1],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"product\\\",\\\"currentPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-results__item\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[24,[\\\"product\\\",\\\"_data\\\"]],[23,1,[]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__details\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--bold\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"product\\\",\\\"currentPrice\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tax inclusive\\\"],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"sortedData\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isCommission\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"sortedData\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"products/price-selectors/price-selector-campaigns/commission-history-prices\\\",null,[[\\\"history\\\",\\\"onSelect\\\"],[[23,3,[]],[28,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,3,[]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"sortedData\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"products/price-selectors/price-selector-campaigns/history-prices\\\",null,[[\\\"history\\\",\\\"onSelect\\\"],[[23,2,[]],[28,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,2,[]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini has-text-centered\\\"],[8],[1,[28,\\\"tt\\\",[\\\"no data\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/price-selectors/price-selector-campaigns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/price-selectors/price-selector/component\", [\"exports\", \"ramda\", \"ember-concurrency\"], function (_exports, R, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    classNames: [''],\n    isReadonly: false,\n    fetchHistoryOnInitTask: (0, _emberConcurrency.task)(function* () {\n      const product = this.product;\n      const itemKey = this.itemKey;\n      const onFetchHistoryTask = this.onFetchHistoryTask;\n      const {\n        priceHistoryData\n      } = yield onFetchHistoryTask(product, itemKey);\n      this.set('priceHistoryData', priceHistoryData);\n    }),\n    isDisabled: Ember.computed('isReadonly', 'itemKey', function () {\n      if (!this.itemKey) {\n        return true;\n      }\n      return this.isReadonly;\n    }),\n    productExclPrice: Ember.computed('docType', 'product', function () {\n      const type = this.docType;\n      const product = this.product;\n      return product.getData(`${type}ExclPrice`);\n    }),\n    productInclPrice: Ember.computed('docType', 'product', function () {\n      const type = this.docType;\n      const product = this.product;\n      return product.getData(`${type}InclPrice`);\n    }),\n    forContactLatest: Ember.computed('priceHistoryData.history.forContact.[]', function () {\n      const forContact = this.productsService.getFor('contact', this.priceHistoryData);\n      if (!R.isEmpty(forContact)) {\n        return R.take(1, forContact);\n      }\n      return [];\n    }),\n    latestByDate: Ember.computed('priceHistoryData.history.{forContact.[],forOthers.[]}', function () {\n      const forContact = this.productsService.getFor('contact', this.priceHistoryData);\n      const forOthers = this.productsService.getFor('others', this.priceHistoryData);\n      return R.concat(forContact, forOthers);\n    }),\n    sortedPriceHistoryData: Ember.computed('latestByDate.[]', function () {\n      return this.latestByDate;\n    }),\n    actions: {\n      select(history, onHideDropdown) {\n        this.onSelect(history, onHideDropdown);\n      }\n    }\n  });\n});","define(\"client/pods/components/products/price-selectors/price-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6vMq6FBZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"history\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"icon\\\",\\\"hasToggleIconRight\\\",\\\"onSubmit\\\",\\\"list\\\"],[[24,[\\\"isDisabled\\\"]],[28,\\\"or\\\",[[24,[\\\"isRunning\\\"]],[24,[\\\"fetchHistoryOnInitTask\\\",\\\"isRunning\\\"]]],null],\\\"fas fa-magnifying-glass-dollar\\\",false,[28,\\\"perform\\\",[[24,[\\\"fetchHistoryOnInitTask\\\"]]],null],[28,\\\"array\\\",[1],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"product\\\",\\\"_data\\\",\\\"salesExclPrice\\\"]],[24,[\\\"product\\\",\\\"_data\\\",\\\"salesInclPrice\\\"]],[24,[\\\"product\\\",\\\"_data\\\",\\\"purchasesExclPrice\\\"]],[24,[\\\"product\\\",\\\"_data\\\",\\\"purchasesInclPrice\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-results__item\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[24,[\\\"product\\\",\\\"_data\\\"]],[23,1,[]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__details\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--bold\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"productExclPrice\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tax exclusive\\\"],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"productInclPrice\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tax inclusive\\\"],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--bold\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"productInclPrice\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tax inclusive\\\"],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"currency\\\",[[24,[\\\"productExclPrice\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tax exclusive\\\"],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"each\\\",[[24,[\\\"sortedPriceHistoryData\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-results__item\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[23,2,[]],[23,1,[]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__details\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"doc\\\",\\\"contact\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[23,2,[\\\"doc\\\",\\\"contact\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--bold\\\"],[8],[1,[28,\\\"currency\\\",[[23,2,[\\\"exclPrice\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tax exclusive\\\"],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"currency\\\",[[23,2,[\\\"inclPrice\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tax inclusive\\\"],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--bold\\\"],[8],[1,[28,\\\"currency\\\",[[23,2,[\\\"inclPrice\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tax inclusive\\\"],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"currency\\\",[[23,2,[\\\"exclPrice\\\"]]],null],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"tax exclusive\\\"],null],false],[0,\\\")\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"qty\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,2,[\\\"doc\\\",\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"doc\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\": #\\\"],[1,[23,2,[\\\"doc\\\",\\\"docNo\\\"]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[1,[28,\\\"date\\\",[[23,2,[\\\"doc\\\",\\\"dateZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"isPos\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"pos\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/price-selectors/price-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\", \"ember-concurrency\", \"ramda-extension\"], function (_exports, R, RA, _nventor, _emberConcurrency, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    campaignsProductsService: Ember.inject.service('campaigns-products'),\n    settingsService: Ember.inject.service('settings'),\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    dataManager: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    productsService: Ember.inject.service('products'),\n    tagName: 'div',\n    classNames: ['col-container'],\n    disabled: false,\n    translate: true,\n    campaignFilters: null,\n    defaultProductType: null,\n    defaultProductStatus: null,\n    isAllowedToDelete: false,\n    isEditingVariants: false,\n    isDoneEditingVariants: false,\n    deleteMsg: 'this product exists in documents/campaigns! the products will be set as inactive instead',\n    headerBottom: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, [{\n        name: 'taxes',\n        appendPath: 'products'\n      }, 'barcodes', 'products/brands', 'products/lists/tags', 'products/lists/display-tags', 'products/lists/product-display-position', 'products/lists/types', 'products/lists/setTypes', 'products/lists/tracking', 'products/lists/invoiceDescriptions', 'products/lists/editorSubPanels', 'settings/roundingAuto', 'units', 'units/dimensions', 'units/weight', 'statuses', 'products/lists/pageImportBtnSubPanels', 'products/lists/sync']);\n      if (this.isEditing) {\n        this.set('isDoneEditingVariants', true);\n      }\n      this.setupTask.perform();\n      // if (this.get('isEditing') || this.get('isNew')) {\n      // const model = this.get('model')\n      // const originalModel = this.get('originalModel')\n      // model.updateVariantChildrenList(originalModel)\n      // }\n      // this.set('editingPanels', [])\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      const itemKey = model?._data?._key || '';\n      if (itemKey) {\n        const result = yield this.server.call('GET', `api/protected/products/isAllowedToDelete/${itemKey}`, {\n          itemKey\n        });\n        const isAllowedToDelete = R.propOr(false, 'data')(result);\n        this.set('isAllowedToDelete', isAllowedToDelete);\n      }\n      this.setupAutoAddToShop();\n    }),\n    setupAutoAddToShop() {\n      if (this.isFromShop) {\n        return;\n      }\n      if (this.isEditing) {\n        return;\n      }\n      const campaignDetailInstructions = this.campaignsProductsService.getCampaignDetailModel();\n      this.set('campaignDetailInstructions', campaignDetailInstructions);\n      const isAutoAddNewProductToShop = this.settingsService.getProp('isAutoAddNewProductToShop') || false;\n      // campaignDetailInstructions.setData('isAutoAddNewProductToShop', isAutoAddNewProductToShop)\n\n      if (isAutoAddNewProductToShop) {\n        const autoAddNewProductToShopKey = this.settingsService.getProp('autoAddNewProductToShopKey') || '';\n        campaignDetailInstructions.setData('autoAddNewProductToShopKey', autoAddNewProductToShopKey);\n        const autoAddNewProductToShop = this.settingsService.getProp('autoAddNewProductToShop') || '';\n        campaignDetailInstructions.setData('autoAddNewProductToShop', autoAddNewProductToShop);\n      }\n    },\n    currentSubTab: Ember.computed('tab.subTabs.@each.isActive', function () {\n      const tab = this?.tab || {};\n      return this.tabsManager.getActiveSubTab(tab);\n    }),\n    saveBtnLabel: Ember.computed('isFromShop', function () {\n      if (!this.isFromShop) {\n        return '';\n      }\n      if (this.isEditing) {\n        return 'save and edit shop prices';\n      }\n      return 'add to shop';\n    }),\n    editorSubPanels: Ember.computed('crud.lists.products-lists-editorSubPanels.[]', 'model._data.{setType,name,type}', function () {\n      const model = this.model;\n      let panels = R_.dotPath('crud.lists.products-lists-editorSubPanels')(this) || [];\n      const setType = this.get('model._data.setType');\n      const isEmpty = _nventor.default.isNilOrEmpty(setType);\n      if (isEmpty) {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSetWithChoices'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSet'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'hasVariants'))(panels);\n      } else if (setType === 'isSet') {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'hasVariants'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSetWithChoices'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'customizations'))(panels);\n      } else if (setType === 'isSetWithChoices') {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSet'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'hasVariants'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'customizations'))(panels);\n      } else if (setType === 'isVariantChild') {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSet'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'hasVariants'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSetWithChoices'))(panels);\n      } else if (setType === 'hasVariants') {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSet'))(panels);\n        panels = R.reject(R.pathEq(['_data', 'value'], 'isSetWithChoices'))(panels);\n      }\n      const productType = model?._data?.type;\n      const allowCollectOnBehalf = this.settingsService.isFeatureAllowed('features.allowCollectOnBehalf');\n      const isCollectOnBehalfProduct = allowCollectOnBehalf && productType === this.get('constants.productTypes.collectOnBehalf');\n      if (isCollectOnBehalfProduct) {\n        panels = R.reject(R.pathEq(['_data', 'value'], 'tickets'))(panels);\n      }\n      if (!model?._data?.name) {\n        panels = R.filter(R.pathEq(['_data', 'value'], 'details'))(panels);\n      }\n      const mode = this.isNew ? 'isNew' : 'isEditing';\n      const isFromShop = this.isFromShop;\n      panels = R.filter(panel => {\n        const allowedFor = panel?._data?.allowedFor || [];\n        if (isFromShop) {\n          return R.includes('isFromShop')(allowedFor);\n        }\n        return R.includes(mode)(allowedFor);\n      })(panels);\n      return panels;\n    }),\n    isProductReadonly: Ember.computed('isReadonly', 'isNew', 'isEditing', function () {\n      const isNew = this?.isNew || false;\n      if (isNew) {\n        return false;\n      }\n      const isEditing = this?.isEditing || false;\n      if (isEditing) {\n        return false;\n      }\n      return this?.isReadonly || false;\n    }),\n    updateAndSaveTask: (0, _emberConcurrency.task)(function* ({\n      updateShopPrices = false\n    } = {}) {\n      const model = this.model;\n      if (this.isEditing) {\n        const serializedOriginalProduct = this.dataManager.getAdapter(this?.originalModel?.adapterName).serialize(this?.originalModel); // to trim out all the empty product details\n        const serializedproductToSave = this.dataManager.getAdapter(this?.model?.adapterName).serialize(this?.model); // to trim out all the empty product details\n        const data = {\n          originalProduct: serializedOriginalProduct,\n          productToSave: serializedproductToSave\n        };\n        const response = yield this.server.call('POST', 'api/protected/products/checkOutOfSyncForCampaignsDetails', data);\n        const willCauseOutOfSync = response?.data ?? false;\n        if (willCauseOutOfSync) {\n          const msg = this.intl.t('updating the product may cause it to be out of sync with the shop');\n          const confirmed = window.confirm(msg);\n          if (confirmed === false) {\n            return;\n          }\n        }\n      }\n      const subTabs = this.tab.subTabs;\n      // check if isDoneEditingVariants\n      const isDoneEditingVariants = this.isDoneEditingVariants;\n\n      // check if the variants tab has been created so we know that the isDoneEditingVariants is changed from this tab\n      const hasVariantsTab = R.find(R.propEq('value', 'hasVariants'))(subTabs);\n\n      // check if product type is still variants\n      const setType = model?._data?.setType || '';\n      let confirmed = false;\n      if (hasVariantsTab && !isDoneEditingVariants && setType === 'hasVariants') {\n        const msg = this.intl.t('variant_options_save_warning');\n        window.alert(msg);\n        return;\n      } else {\n        confirmed = true;\n      }\n      if (confirmed) {\n        // filter the customizations if exist\n        const hasCustomizations = R.pathOr(false, ['_data', 'hasCustomizations'])(model);\n        if (hasCustomizations) {\n          model.filterEmptyCustomizations();\n        }\n        if (this.isEditingVariants) {\n          this.updateVariantChildrenList({\n            originalModel: this.originalModel,\n            isNew: this.isNew\n          });\n        }\n        const isSetWithChoices = model?._data?.isSetWithChoices;\n        if (isSetWithChoices) {\n          const choiceGroups = this.dataManager.getAdapter(model.adapterName).serialize(model).choices;\n          if (R.isEmpty(choiceGroups)) {\n            const msg = this.intl.t('choiceIsEmpty');\n            window.alert(msg);\n            return;\n          }\n        }\n        if (this.onSaveTask) {\n          this.onSaveTask({\n            campaignDetailInstructions: this.campaignDetailInstructions,\n            updateShopPrices\n          });\n        }\n      }\n    }),\n    updateVariantChildrenList({\n      originalModel,\n      isNew = false\n    }) {\n      const model = this.model;\n      return model.updateVariantChildrenList({\n        originalModel,\n        isNew,\n        setInitialValue: this.isEditing\n      });\n    },\n    displaySubPanel(resourceData) {\n      if (resourceData.getData('value') === 'hasVariants') {\n        const model = this.model;\n        // if (!this.isDoneEditingVariants && !model?.isCopying) {\n        if (!this.isDoneEditingVariants) {\n          this.set('isEditingVariants', true);\n        }\n      } else {\n        this.set('isEditingVariants', false);\n      }\n      this.tabsManager.displaySubPanel(this, resourceData);\n    },\n    // displaySubPanel (resourceData) {\n    //   const subTabOptions = {\n    //     component: resourceData.getData('component'),\n    //     value: resourceData.getData('value')\n    //   }\n    //   const tab = this.tab\n    //   this.tabsManager.reuseSubTab(tab, subTabOptions)\n    // },\n\n    actions: {\n      /**\n       * sales tax selected. if salesTaxRate selected, auto set purchasesTaxRate (and vice versa)\n       */\n      salesTaxRateSelected(taxModel) {\n        const model = this.model;\n        const taxRate = taxModel.getData('value');\n        const purchasesTaxKey = model.getData('purchasesTaxRateKey');\n\n        // manually set tax rate\n        model.setData('salesTaxRate', taxRate);\n        if (purchasesTaxKey == null || purchasesTaxKey === 'auto') {\n          // auto setData values for purchases\n          // model.setData('purchasesTaxRateLabel', taxModel.getData('label'));\n          model.setData('purchasesTaxRateKey', taxModel.getData('_key'));\n          // model.setData('purchasesTaxRate', taxRate);\n        }\n      },\n      /**\n       * purchases tax selected. if salesTaxRate selected, auto set purchasesTaxRate (and vice versa)\n       */\n      purchasesTaxRateSelected(taxModel) {\n        const model = this.model;\n        const taxRate = taxModel.getData('value');\n        const salesTaxKey = model.getData('salesTaxRateKey');\n\n        // manually set tax rate\n        model.setData('purchasesTaxRate', taxRate);\n        if (salesTaxKey == null || salesTaxKey === 'auto') {\n          // auto setData values for purchases\n          // model.setData('salesTaxRateLabel', taxModel.getData('label'));\n          model.setData('salesTaxRateKey', taxModel.getData('_key'));\n          // model.setData('salesTaxRate', taxRate);\n        }\n      },\n      updateVariantChildrenList({\n        originalModel,\n        isNew = false\n      }) {\n        const model = this.model;\n        return model.updateVariantChildrenList({\n          originalModel,\n          isNew,\n          setInitialValue: this.isEditing\n        });\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupAutoAddToShop\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupAutoAddToShop\"), _obj), _applyDecoratedDescriptor(_obj, \"updateVariantChildrenList\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"updateVariantChildrenList\"), _obj), _applyDecoratedDescriptor(_obj, \"displaySubPanel\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"displaySubPanel\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/customizations-editor/component\", [\"exports\", \"client/mixins/errors\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _errors, R, RA, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_errors.default, {\n    init() {\n      this._super(...arguments);\n      this.set('productToBeLinked', []);\n      if (this.isEditing || this.isNew) {\n        const model = this.model;\n        const customizations = model.getData('customizations') || [];\n        R.forEach(customization => {\n          const options = customization.getData('options') || [];\n          R.forEach(option => {\n            if (!option._data.optionUid) {\n              const optionUid = _nventor.default.random.alphaNum(10);\n              option.setData('optionUid', optionUid);\n            }\n          })(options);\n        })(customizations);\n        if (RA.isNilOrEmpty(customizations)) {\n          model.addCustomization();\n        }\n      }\n    },\n    actions: {\n      addCustomization() {\n        const model = this.model;\n        if (this.isEditing && RA.isNotNilOrEmpty(this.dirtyClone)) {\n          this.dirtyClone.addCustomization();\n        } else {\n          model.addCustomization();\n        }\n      },\n      removeCustomization(model, customization) {\n        const msg = this.intl.t('are you sure you want to remove');\n        if (window.confirm(msg)) {\n          model.removeCustomization(customization);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/customizations-editor/customization-editor/component\", [\"exports\", \"client/mixins/errors\", \"client/mixins/sortable-actions\"], function (_exports, _errors, _sortableActions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_errors.default, _sortableActions.default, (_dec = Ember._action, _obj = {\n    tagName: '',\n    modelProp: 'customization',\n    indexProp: '_data.index',\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.isEditing || this.isNew) {\n        const model = this.model;\n        const customization = this.customization;\n        if (this.autoAddCustomizationOption) {\n          model.addCustomizationOption(customization);\n        }\n      }\n    },\n    rowSpan: Ember.computed('customization.sorted', function () {\n      return this?.customization?.sorted?.length || 0;\n    }),\n    reorderCustomizationOptions(option) {\n      const customizationModel = this.getModel();\n      const dragItem = this.dragDetail;\n      if (!customizationModel || !option || !dragItem) {\n        return;\n      }\n      customizationModel.reorderDetails(option, dragItem);\n    },\n    actions: {\n      addCustomizationOption(model, customization, option) {\n        model.addCustomizationOption(customization, option);\n      },\n      removeCustomizationOption(model, customization, option) {\n        const msg = this.intl.t('are you sure you want to delete');\n        const confirm = window.confirm(msg);\n        if (confirm) {\n          model.removeCustomizationOption(customization, option);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"reorderCustomizationOptions\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"reorderCustomizationOptions\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/customizations-editor/customization-editor/options-editor/component\", [\"exports\", \"client/mixins/errors\", \"client/mixins/droppable\", \"ramda\", \"ramda-adjunct\"], function (_exports, _errors, _droppable, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_droppable.default, _errors.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    productsService: Ember.inject.service('products'),\n    tagName: 'tr',\n    originalOptionName: '',\n    fillerType: '',\n    fillerLabel: '',\n    init() {\n      this._super(...arguments);\n      this.set('originalOptionName', this?.option?._data?.name || '');\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/commission-filler']);\n    },\n    droppable: Ember.computed('options.[]', 'index', function () {\n      const index = parseInt(this.index) + 1;\n      const options = this.options || [];\n      if (index >= options.length) {\n        return false;\n      }\n      return true;\n    }),\n    draggable: Ember.computed('droppable', 'isReadonly', function () {\n      if (this.isFromCampaignDetail) {\n        return false;\n      }\n      if (!this.isReadonly) {\n        return this.droppable;\n      }\n      return false;\n    }),\n    isCustomizationOptionReadonly: Ember.computed('isReadonly', 'option.{noInitialOptionUid,_data.name}', function () {\n      let isCustomizationOptionReadonly = false;\n      const option = this.option;\n      if (this.isEditing && option.get('noInitialOptionUid') && option.get('_data.name')) {\n        isCustomizationOptionReadonly = true;\n      }\n      if (!isCustomizationOptionReadonly) {\n        isCustomizationOptionReadonly = this.isReadonly;\n      }\n      return isCustomizationOptionReadonly;\n    }),\n    setAllOptionProp({\n      option,\n      commissionPropertyName,\n      optionIndex\n    }) {\n      const fillerType = this?.fillerType || '';\n      const fillerValue = option.getData(commissionPropertyName);\n      const customizationModel = this?.customization || {};\n      R.pipe(R.pathOr([], ['_data', 'options']), RA.mapIndexed((option, index) => {\n        if (R.equals(fillerType, 'fillTop') && R.lt(index, optionIndex) || R.equals(fillerType, 'fillBottom') && R.gt(index, optionIndex) || R.equals(fillerType, 'fillTopAndBottom')) {\n          option.setData(commissionPropertyName, fillerValue);\n        }\n        if (R.equals(fillerType, 'clearTop') && R.lte(index, optionIndex) || R.equals(fillerType, 'clearBottom') && R.gte(index, optionIndex) || R.equals(fillerType, 'clearTopAndBottom')) {\n          option.setData(commissionPropertyName, '');\n        }\n      }))(customizationModel);\n      this.set('fillerType', '');\n      this.set('fillerLabel', '');\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setAllOptionProp\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setAllOptionProp\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/customizations-editor/customization-editor/options-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7+2L2a4j\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@option\\\",\\\"@customization\\\",\\\"@isFromCampaignDetail\\\",\\\"@model\\\",\\\"@onAddCustomizationOption\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"index\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[11,\\\"rowspan\\\",[22,\\\"rowSpan\\\"]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"context\\\"],[[28,\\\"or\\\",[[24,[\\\"isFromCampaignDetail\\\"]],[24,[\\\"isReadonly\\\"]]],null],[24,[\\\"customization\\\",\\\"_data\\\",\\\"isRequired\\\"]],\\\"customizations.isRequired\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"rowspan\\\",[22,\\\"rowSpan\\\"]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"value\\\",\\\"onInput\\\",\\\"onFocusOut\\\",\\\"context\\\",\\\"tab\\\"],[[28,\\\"or\\\",[[24,[\\\"isFromCampaignDetail\\\"]],[24,[\\\"isReadonly\\\"]]],null],\\\"table-form__input\\\",[23,3,[\\\"_data\\\",\\\"name\\\"]],[28,\\\"fn\\\",[[23,3,[\\\"updateSynced\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"productsService\\\",\\\"checkForDisallowedValues\\\"]],[28,\\\"hash\\\",null,[[\\\"modelToCheck\\\",\\\"models\\\",\\\"prop\\\"],[[23,3,[]],[23,5,[\\\"_data\\\",\\\"customizations\\\"]],\\\"name\\\"]]]],null],\\\"customizations.name\\\",[23,1,[]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[24,[\\\"isReadonly\\\"]],[28,\\\"eq\\\",[[24,[\\\"option\\\",\\\"_data\\\",\\\"name\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__padding\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"helpers/drag-container\\\",null,[[\\\"draggable\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"data\\\"],[[24,[\\\"draggable\\\"]],[24,[\\\"onDragStart\\\"]],[24,[\\\"onDragEnd\\\"]],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[24,[\\\"option\\\",\\\"_data\\\",\\\"index\\\"]]]]]]]],false],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"option\\\",\\\"_data\\\",\\\"index\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputPvtClassNames\\\",\\\"onInput\\\",\\\"readonly\\\",\\\"onFocusOut\\\",\\\"value\\\",\\\"context\\\",\\\"tab\\\"],[\\\"table-form__input\\\",[28,\\\"fn\\\",[[23,6,[]],[23,5,[]],[23,3,[]],[23,2,[]]],null],[28,\\\"or\\\",[[23,4,[]],[23,0,[\\\"isCustomizationOptionReadonly\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"productsService\\\",\\\"checkForDisallowedValues\\\"]],[28,\\\"hash\\\",null,[[\\\"modelToCheck\\\",\\\"models\\\",\\\"prop\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"options\\\"]],\\\"name\\\"]]]],null],[23,2,[\\\"_data\\\",\\\"name\\\"]],\\\"customizations.options.name\\\",[23,1,[]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputPvtClassNames\\\",\\\"onInput\\\",\\\"readonly\\\",\\\"value\\\",\\\"context\\\",\\\"tab\\\"],[\\\"table-form__input\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onAddCustomizationOption\\\"]],[24,[\\\"model\\\"]],[24,[\\\"customization\\\"]],[24,[\\\"option\\\"]]],null],[28,\\\"or\\\",[[24,[\\\"isFromCampaignDetail\\\"]],[24,[\\\"isCustomizationOptionReadonly\\\"]]],null],[24,[\\\"option\\\",\\\"_data\\\",\\\"prefix\\\"]],\\\"customizations.options.prefix\\\",[23,1,[]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"context\\\"],[[28,\\\"or\\\",[[24,[\\\"isFromCampaignDetail\\\"]],[24,[\\\"isReadonly\\\"]]],null],[24,[\\\"option\\\",\\\"_data\\\",\\\"isCustomResponse\\\"]],\\\"customizations.options.isCustomResponse\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isFromCampaignDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"isRunning\\\",\\\"value\\\",\\\"context\\\",\\\"tab\\\"],[[24,[\\\"isReadonly\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]]],null],[24,[\\\"option\\\",\\\"_data\\\",\\\"price\\\"]],\\\"customizations.options.price\\\",[23,1,[]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\",\\\"@context\\\"],[true,[22,\\\"isReadonly\\\"],\\\"fa-solid fa-ellipsis-vertical\\\",\\\"fa-solid fa-ellipsis-vertical\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"fillerType\\\"]],[23,0,[\\\"fillerLabel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setAllOptionProp\\\"]],[28,\\\"hash\\\",null,[[\\\"option\\\",\\\"commissionPropertyName\\\",\\\"optionIndex\\\"],[[24,[\\\"option\\\"]],\\\"price\\\",[24,[\\\"index\\\"]]]]]],null],\\\"customizations.options.fillerType\\\"]]],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"isRunning\\\",\\\"value\\\",\\\"context\\\",\\\"tab\\\"],[[24,[\\\"isReadonly\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]]],null],[24,[\\\"option\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]],\\\"customizations.options.priceDiscounted\\\",[23,1,[]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\",\\\"@context\\\"],[true,[22,\\\"isReadonly\\\"],\\\"fa-solid fa-ellipsis-vertical\\\",\\\"fa-solid fa-ellipsis-vertical\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-filler\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"fillerType\\\"]],[23,0,[\\\"fillerLabel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setAllOptionProp\\\"]],[28,\\\"hash\\\",null,[[\\\"option\\\",\\\"commissionPropertyName\\\",\\\"optionIndex\\\"],[[24,[\\\"option\\\"]],\\\"priceDiscounted\\\",[24,[\\\"index\\\"]]]]]],null],\\\"customizations.options.fillerType\\\"]]],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"context\\\"],[true,true,[24,[\\\"option\\\",\\\"statusClass\\\"]],true,[28,\\\"or\\\",[[24,[\\\"isFromCampaignDetail\\\"]],[24,[\\\"isReadonly\\\"]]],null],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"option\\\",\\\"_data\\\",\\\"status\\\"]],\\\"customizations.options.status\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isFromCampaignDetail\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"disabled\\\",\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"onSubmit\\\"],[[24,[\\\"isReadonly\\\"]],\\\"u-close-btn\\\",-1,[23,1,[]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onRemoveCustomizationOption\\\"]],[24,[\\\"model\\\"]],[24,[\\\"customization\\\"]],[24,[\\\"option\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isFromCampaignDetail\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"originalOptionName\\\"]],[28,\\\"not-eq\\\",[[24,[\\\"originalOptionName\\\"]],[28,\\\"ramda\\\",[\\\"trim\\\",[24,[\\\"option\\\",\\\"_data\\\",\\\"name\\\"]]],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"variantOptionsNameChanges\\\"],[[\\\"originalOptionName\\\",\\\"newOptionName\\\"],[[23,0,[\\\"originalOptionName\\\"]],[24,[\\\"option\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/customizations-editor/customization-editor/options-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/customizations-editor/customization-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"BNlFKeTk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"is required\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"customization type\\\"],null],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"\\\",\\\"customization.name\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"customization options\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"customization prefix\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"is custom response\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isFromCampaignDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive discounted price\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isFromCampaignDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"disabled\\\",\\\"icon\\\",\\\"onSubmit\\\"],[\\\"is-pulled-right\\\",[24,[\\\"isReadonly\\\"]],\\\"fas fa-trash\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onRemoveCustomization\\\"]],[24,[\\\"model\\\"]],[24,[\\\"customization\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"customization\\\",\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"products/products-editor/customizations-editor/customization-editor/options-editor\\\",null,[[\\\"rowSpan\\\",\\\"tab\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"isFromCampaignDetail\\\",\\\"index\\\",\\\"options\\\",\\\"model\\\",\\\"customization\\\",\\\"option\\\",\\\"dropPosition\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"onDragOver\\\",\\\"onDrop\\\",\\\"onAddCustomizationOption\\\",\\\"onRemoveCustomizationOption\\\"],[[23,0,[\\\"rowSpan\\\"]],[24,[\\\"tab\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isFromCampaignDetail\\\"]],[23,2,[]],[24,[\\\"customization\\\",\\\"_data\\\",\\\"options\\\"]],[24,[\\\"model\\\"]],[24,[\\\"customization\\\"]],[23,1,[]],[24,[\\\"dropPosition\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dragStartItem\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragEndItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragOverItem\\\",[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"reorderCustomizationOptions\\\"]],[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"addCustomizationOption\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeCustomizationOption\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/customizations-editor/customization-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/customizations-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+n1GrUfF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"customization\\\",\\\"index\\\",\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\",\\\"@tab\\\"],[\\\"customizations\\\",false,[28,\\\"if\\\",[[23,11,[]],[23,11,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,10,[]],[23,4,[]],[23,9,[]],[23,8,[]]]]]],null],true,[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\",\\\"@contentClassNames\\\"],[\\\"customizations_group\\\",\\\"products\\\",[23,1,[]],\\\"form-group__content-container--u-full-width\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"hasCustomizations\\\",\\\"enable customizations\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,12,[]],false,true,[23,7,[\\\"_data\\\",\\\"hasCustomizations\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"hasCustomizations\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,7,[\\\"_data\\\",\\\"customizations\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"products/products-editor/customizations-editor/customization-editor\\\",[],[[\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@autoAddCustomizationOption\\\",\\\"@onRemoveCustomization\\\",\\\"@customization\\\"],[[23,4,[]],[23,0,[\\\"isReadonly\\\"]],[23,5,[]],[23,6,[]],[23,7,[]],true,[28,\\\"action\\\",[[23,0,[]],\\\"removeCustomization\\\"],null],[23,2,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add new customization\\\",[23,0,[\\\"isReadonly\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"addCustomization\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"customizations\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/customizations-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/details-editor/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    settings: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    search: Ember.inject.service(),\n    contactsService: Ember.inject.service('contacts'),\n    init() {\n      this._super(...arguments);\n\n      // added to make sure the lists are loaded\n      this.crud.addLists(this, ['statuses', 'units', 'products/brands', 'products/lists/types', 'products/lists/setTypes', 'products/lists/tags', 'products/lists/product-display-position', 'products/lists/display-tags', 'settings/roundingAuto', 'products/lists/invoiceDescriptions', 'units/weight', 'units/dimensions']);\n      this.set('contactsFilters', this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'name',\n            direction: 'ASC'\n          }],\n          status: [this.constants.status.active]\n        }\n      }));\n    },\n    hasUploads: Ember.computed('showUploads', function () {\n      if (RA.isNilOrEmpty(this.showUploads)) {\n        return true;\n      }\n      return this.showUploads;\n    }),\n    hasInventoryOpening: Ember.computed('isNew', 'model._data.tracking', 'isInventory', function () {\n      const isNew = this.isNew;\n      const tracking = this.get('model._data.tracking');\n      const isInventory = this.isInventory;\n      if (isNew && tracking === this.get('constants.productTracking.on') && isInventory) {\n        return true;\n      }\n      return false;\n    }),\n    isInventory: Ember.computed('model._data.type', function () {\n      if (this.get('model._data.type') === this.get('constants.productTypes.inventory')) {\n        return true;\n      }\n      return false;\n    }),\n    isProductSetsReadonly: Ember.computed('isNew', 'isEditing', 'isAllowedToDelete', function () {\n      if (this.isNew) {\n        return false;\n      }\n      let isProductSetsReadonly = false;\n      const model = this.model;\n      const isAllowedToDelete = R.propOr(false, 'isAllowedToDelete')(this);\n      // option cannot be edited after saving\n      // only allow for product general for now\n      if (!this.isEditing) {\n        return true;\n      }\n      const hasVariants = R.pathOr(false, ['_data', 'hasVariants'])(model);\n      if (hasVariants) {\n        return true;\n      }\n      if (isAllowedToDelete) {\n        isProductSetsReadonly = false;\n      } else {\n        isProductSetsReadonly = true;\n      }\n      return isProductSetsReadonly;\n    }),\n    availableBarcodesList: Ember.computed('crud.lists.barcodes.[]', 'model.{_data.barcodes.@each.barcodeType}', function () {\n      const alreadyAddedBarcodes = this.model?._data?.barcodes || [];\n      const barcodes = this.crud?.lists?.barcodes || [];\n      const alreadyAddedBarcodesTypes = R.pipe(R.map(R.path(['_data', 'barcodeType'])), R.reject(RA.isNilOrEmpty))(alreadyAddedBarcodes);\n      return R.reject(barcodeData => {\n        return R.includes(barcodeData?._data?.value)(alreadyAddedBarcodesTypes);\n      })(barcodes);\n    }),\n    isCollectOnBehalfProduct: Ember.computed('model._data.type', function () {\n      return this.get('model._data.type') === this.get('constants.productTypes.collectOnBehalf');\n    }),\n    isNormalItem: Ember.computed('model._data.{isSet,isSetNew,isSetWithChoices,hasVariants}', function () {\n      const model = this.model;\n      const isSet = model.getData('isSet') || false;\n      const isSetNew = model.getData('isSetNew') || false;\n      const isSetWithChoices = model.getData('isSetWithChoices') || false;\n      const hasVariants = model.getData('hasVariants') || false;\n      if (isSet || isSetNew || isSetWithChoices || hasVariants) {\n        return false;\n      }\n      return true;\n    }),\n    setDefaultShowAlmostEmptyQtyWarningForProductsFromSettings() {\n      const model = this.model;\n      model.setData('showAlmostEmptyQtyWarningForProducts', this.settings.getProp('showAlmostEmptyQtyWarningForProducts', false));\n      model.setData('almostEmptyQtyWarningThreshold', this.settings.getProp('almostEmptyQtyWarningThreshold', 0));\n      model.setData('almostEmptyQtyWarningShopCustomText', this.settings.getProp('almostEmptyQtyWarningShopCustomText', ''));\n      model.setData('almostPreOrderQtyWarningShopCustomText', this.settings.getProp('almostPreOrderQtyWarningShopCustomText', ''));\n    },\n    actions: {\n      setSetType(setType) {\n        const selectedSetType = setType.getData('value');\n        this.model.setSetType(selectedSetType);\n      },\n      deselectSetType() {\n        this.model.setSetType();\n      },\n      onSubmitDeleteProductDisplayTags(productDisplayTag) {\n        const productDisplayTags = this.model.getData('productDisplayTags');\n        productDisplayTags.removeObject(productDisplayTag);\n      },\n      loadSupplierKey(contact) {\n        const model = this?.model || {};\n        const contactKey = contact?._data?._key || '';\n        model.setData('preferredSupplierKey', contactKey);\n      },\n      unloadSupplierKey() {\n        const model = this?.model || {};\n        model.setData('preferredSupplierKey', '');\n      },\n      resetAlmostEmptyQtyWarningThreshold() {\n        const model = this.model;\n        model.setData('almostEmptyQtyWarningThreshold', '');\n        model.setData('almostEmptyQtyWarningShopCustomText', '');\n        model.setData('almostPreOrderQtyWarningShopCustomText', '');\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setDefaultShowAlmostEmptyQtyWarningForProductsFromSettings\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setDefaultShowAlmostEmptyQtyWarningForProductsFromSettings\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/details-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8G+wX1Dj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onHideDropdown\\\",\\\"barcodeModel\\\",\\\"index\\\",\\\"productDisplayTag\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@formGroupClassNames\\\",\\\"@tab\\\",\\\"@isDuplicate\\\",\\\"@isNew\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@onUpdateVariantChildrenList\\\",\\\"@isShopDotComEnabled\\\",\\\"@onSalesTaxRateSelected\\\",\\\"@onPurchasesTaxRateSelected\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"details\\\",false,[28,\\\"if\\\",[[23,15,[]],[23,15,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,14,[]],[23,9,[]],[23,13,[]],[23,12,[]]]]]],null],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,9,[]],\\\"basicInformation_group\\\",[23,1,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"status\\\",[23,1,[]],true,\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,6,[]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],true,[23,7,[\\\"statusClass\\\"]],true,[23,7,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"name\\\",[23,1,[]],true,\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@autoTrim\\\",\\\"@isRequired\\\",\\\"@onInput\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[true,true,true,[23,16,[]],[23,6,[]],[23,7,[\\\"_data\\\",\\\"name\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"msgs/info-msg\\\",[],[[\\\"@msg\\\",\\\"@translate\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shop.com characters limit\\\"],null],\\\"255\\\"],null],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@disallowedForFeatures\\\"],[\\\"code\\\",[23,1,[]],\\\"code\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@onInput\\\",\\\"@autoTrim\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,16,[]],true,[23,6,[]],[23,7,[\\\"_data\\\",\\\"code\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"msgs/info-msg\\\",[],[[\\\"@msg\\\",\\\"@translate\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shop.com characters limit\\\"],null],\\\"50\\\"],null],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@disallowedForFeatures\\\"],[\\\"unit\\\",[23,1,[]],\\\"unit\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@model\\\"],[\\\"units\\\",\\\"units-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"units\\\",true]]],true,[23,6,[]],true,\\\"_data._key\\\",[23,7,[\\\"_data\\\",\\\"unit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],true,[23,9,[]],false,[23,7,[\\\"_data\\\",\\\"unitKey\\\"]],[23,7,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@disallowedForFeatures\\\"],[\\\"brand\\\",[23,1,[]],\\\"brand\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@itemlabelKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@model\\\"],[\\\"products/brands\\\",\\\"products/brands-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"brands\\\",true]]],true,[23,6,[]],true,\\\"_data._key\\\",\\\"_data.label\\\",[23,7,[\\\"_data\\\",\\\"brand\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-brands\\\"]],true,[23,9,[]],false,[23,7,[\\\"_data\\\",\\\"brandKey\\\"]],[23,7,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,9,[]],\\\"productsType_group\\\",[23,1,[]],\\\"type\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[23,7,[\\\"_data\\\",\\\"isSetWithChoices\\\"]],[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"setType\\\"]],\\\"isSetWithChoices\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"type\\\",[23,1,[]],\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,[23,6,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[23,7,[]],\\\"_data.type\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"hasSetType\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@disallowedForFeatures\\\"],[\\\"productType\\\",[23,1,[]],\\\"product type\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@onDeselect\\\",\\\"@onSelect\\\",\\\"@valueKey\\\"],[true,\\\"list-selector--horizontal\\\",[23,0,[\\\"isProductSetsReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypes\\\"]],[23,7,[]],[28,\\\"action\\\",[[23,0,[]],\\\"deselectSetType\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"setSetType\\\"],null],\\\"_data.setType\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constants\\\",\\\"productTypes\\\",\\\"inventory\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,9,[]],\\\"productsInventory_group\\\",[23,1,[]],\\\"inventory\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@disallowedForFeatures\\\"],[\\\"trackInventory\\\",[23,1,[]],\\\"track inventory\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,6,[]],\\\"off\\\",\\\"on\\\",[23,7,[\\\"_data\\\",\\\"tracking\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\"],[\\\"beta.almostEmptyQtyWarningForProducts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"tracking\\\"]],[23,0,[\\\"constants\\\",\\\"productTracking\\\",\\\"on\\\"]]],null],[28,\\\"not\\\",[[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"setType\\\"]],\\\"isSet\\\"],null]],null],[28,\\\"not\\\",[[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"setType\\\"]],\\\"isSetWithChoices\\\"],null]],null],[28,\\\"not\\\",[[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"setType\\\"]],\\\"hasVariants\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"useDefaultShowAlmostEmptyQtyWarningForProducts\\\",[23,1,[]],\\\"almost empty qty warning use default from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenTrue\\\"],[[23,6,[]],false,true,[23,7,[\\\"_data\\\",\\\"useDefaultShowAlmostEmptyQtyWarningForProducts\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setDefaultShowAlmostEmptyQtyWarningForProductsFromSettings\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"showAlmostEmptyQtyWarningForProducts\\\",\\\"show almost empty qty warning for products\\\",[23,7,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenFalse\\\"],[[28,\\\"or\\\",[[23,6,[]],[23,7,[\\\"_data\\\",\\\"useDefaultShowAlmostEmptyQtyWarningForProducts\\\"]]],null],[23,7,[\\\"_data\\\",\\\"showAlmostEmptyQtyWarningForProducts\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resetAlmostEmptyQtyWarningThreshold\\\"],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"showAlmostEmptyQtyWarningForProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"almostEmptyQtyWarningThreshold\\\",[23,1,[]],\\\"almost empty qty warning threshold\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@min\\\",\\\"@minValue\\\",\\\"@step\\\",\\\"@type\\\",\\\"@isInt\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"1\\\",1,\\\"1\\\",\\\"number\\\",true,[28,\\\"or\\\",[[23,6,[]],[23,7,[\\\"_data\\\",\\\"useDefaultShowAlmostEmptyQtyWarningForProducts\\\"]]],null],[23,7,[\\\"_data\\\",\\\"almostEmptyQtyWarningThreshold\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"almostEmptyQtyWarningShopCustomText\\\",[23,1,[]],\\\"almost empty qty warning shop custom text\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\"],[[28,\\\"or\\\",[[23,6,[]],[23,7,[\\\"_data\\\",\\\"useDefaultShowAlmostEmptyQtyWarningForProducts\\\"]]],null],[23,7,[\\\"_data\\\",\\\"almostEmptyQtyWarningShopCustomText\\\"]],[28,\\\"tt\\\",[\\\"almostEmptyQtyWarningShopCustomText_placeholder\\\"],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"almostPreOrderQtyWarningShopCustomText\\\",[23,1,[]],\\\"almost pre order qty warning shop custom text\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\"],[[28,\\\"or\\\",[[23,6,[]],[23,7,[\\\"_data\\\",\\\"useDefaultShowAlmostEmptyQtyWarningForProducts\\\"]]],null],[23,7,[\\\"_data\\\",\\\"almostPreOrderQtyWarningShopCustomText\\\"]],[28,\\\"tt\\\",[\\\"almostPreOrderQtyWarningShopCustomText_placeholder\\\"],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasInventoryOpening\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@disallowedForFeatures\\\"],[\\\"openingOnBookQty\\\",[23,1,[]],\\\"opening inventory book qty\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,6,[]],[23,7,[\\\"_data\\\",\\\"openingOnBookQty\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@disallowedForFeatures\\\"],[\\\"openingOnBookValue\\\",[23,1,[]],\\\"opening inventory book value\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,6,[]],[23,7,[\\\"_data\\\",\\\"openingOnBookValue\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasUploads\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,9,[]],\\\"uploads_group\\\",[23,1,[]],\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\"],[\\\"copy images\\\",\\\"copyImages\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,7,[\\\"_data\\\",\\\"copyImages\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,7,[\\\"_data\\\",\\\"copyImages\\\"]]],null]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"copyImages\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\"],[\\\"copyFromKey\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowUploads\\\",\\\"@allowShowPreviewModal\\\",\\\"@showDefaultImagePreview\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\"],[[23,9,[]],false,false,false,false,false,[23,7,[]],\\\"products\\\",[23,7,[\\\"_data\\\",\\\"copyFromKey\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[22,\\\"tab\\\"],\\\"auto\\\",40,true,true,true,[22,\\\"model\\\"],\\\"products\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"resourceKeyTemp\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[22,\\\"tab\\\"],\\\"auto\\\",40,true,true,true,[22,\\\"model\\\"],\\\"products\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,9,[]],\\\"productsTags_group\\\",[23,1,[]],\\\"tags\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"tags\\\",\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,6,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,7,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,7,[]],true,\\\"_data._key\\\",[23,9,[]],false,\\\"_data.tags\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,7,[\\\"_data\\\",\\\"tags\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@formInitData\\\",\\\"@context\\\"],[\\\"display tags\\\",[23,1,[]],\\\"productDisplayTags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,6,[]],\\\"fas fa-plus\\\",\\\"add display tags\\\",[28,\\\"fn\\\",[[23,7,[\\\"addProductDisplayTags\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"_data\\\",\\\"productDisplayTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-v-align-middle\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"position\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"display tags\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,7,[\\\"_data\\\",\\\"productDisplayTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\"],[\\\"productDisplayTags.position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-product-display-position\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,6,[]],true,[23,5,[\\\"_data\\\",\\\"position\\\"]]]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\"],[\\\"productDisplayTags.tag\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,6,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@tab\\\",\\\"@translate\\\"],[\\\"products/lists/display-tags\\\",\\\"display-tags/display-tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-display-tags\\\"]],[23,5,[]],false,\\\"_data._key\\\",\\\"_data.tag\\\",[23,9,[]],false]]],[0,\\\"\\\\n\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"tag\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@classNames\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"u-margin-left-10\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-display-tags\\\"]],\\\"_data._key\\\",false,[23,5,[\\\"_data\\\",\\\"tag\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[23,6,[]],\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[23,7,[\\\"removeProductDisplayTag\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[\\\"taxSettings_group\\\",[23,1,[]],[23,9,[]],\\\"tax settings\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"salesTaxRateKey\\\",[23,1,[]],\\\"tax on sales\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@model\\\",\\\"@isQuickEditable\\\"],[\\\"taxes\\\",\\\"taxes-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"taxes\\\",true]]],[23,6,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxes--products\\\"]],[23,18,[]],true,[23,9,[]],false,[23,7,[\\\"_data\\\",\\\"salesTaxRateKey\\\"]],[23,7,[]],false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"purchasesTaxRateKey\\\",[23,1,[]],\\\"tax on purchases\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@onSelect\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@model\\\",\\\"@isQuickEditable\\\"],[\\\"taxes\\\",\\\"taxes-editor\\\",\\\"taxes\\\",true,[23,6,[]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxes--products\\\"]],\\\"_data._key\\\",[23,19,[]],[23,9,[]],false,[23,7,[\\\"_data\\\",\\\"purchasesTaxRateKey\\\"]],[23,7,[]],false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"roundingInventoryQty\\\",[23,1,[]],\\\"product decimal places\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,6,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-roundingAuto\\\"]],false,[23,7,[\\\"_data\\\",\\\"roundingInventoryQty\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"roundingInventoryPrice\\\",[23,1,[]],\\\"product price rounding\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,6,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-roundingAuto\\\"]],false,[23,7,[\\\"_data\\\",\\\"roundingInventoryPrice\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isCollectOnBehalfProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"invoiceDescription\\\",[23,1,[]],\\\"invoice description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@hasSelected\\\",\\\"@hasSelectedKey\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@list\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@tab\\\",\\\"@value\\\",\\\"@model\\\"],[true,\\\"form__input-large\\\",[23,6,[]],[23,7,[\\\"_data\\\",\\\"invoiceDescriptionKey\\\"]],\\\"_data.value\\\",\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-invoiceDescriptions\\\"]],\\\"auto\\\",[23,6,[]],\\\"_data.label\\\",[23,9,[]],[23,7,[\\\"_data\\\",\\\"invoiceDescription\\\"]],[23,7,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,9,[]],\\\"barcodes_group\\\",[23,1,[]],\\\"barcodes\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,7,[\\\"_data\\\",\\\"barcodes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"barcodes_sub-group\\\",[23,1,[]],[23,9,[]],[23,3,[\\\"_data\\\",\\\"barcodeType\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"barcodeType\\\"]],\\\"other\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"barcode\\\",\\\"barcode type\\\",[23,3,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,6,[]],[23,3,[\\\"_data\\\",\\\"barcodeCustomType\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"barcode\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"barcode\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[[23,3,[\\\"_data\\\",\\\"barcodeType\\\"]]],null],\\\")\\\"],null],false,[23,3,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,6,[]],[23,3,[\\\"_data\\\",\\\"barcode\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"barcode/modal\\\",[],[[\\\"@readonly\\\",\\\"@model\\\"],[[23,6,[]],[23,3,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-end\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@typeToDelete\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[false,\\\"\\\",[23,6,[]],\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[23,7,[\\\"removeBarcode\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\"],[\\\"fas fa-plus\\\",\\\"barcode\\\",[28,\\\"or\\\",[[23,6,[]],[28,\\\"is-empty\\\",[[23,0,[\\\"availableBarcodesList\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@onSelect\\\"],[[23,0,[\\\"availableBarcodesList\\\"]],false,[28,\\\"fn\\\",[[23,7,[\\\"addNewBarcode\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[\\\"additional_group\\\",[23,1,[]],[23,9,[]],\\\"additional information\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"notes\\\",[23,1,[]],\\\"notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,6,[]],[23,7,[\\\"_data\\\",\\\"notes\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isCollectOnBehalfProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"collectOnBehalfPreDescription\\\",[23,1,[]],\\\"collect on behalf pre description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"form__input-large\\\",[23,6,[]],[23,7,[\\\"_data\\\",\\\"collectOnBehalfPreDescription\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"collectOnBehalfDescription\\\",[23,1,[]],\\\"collect on behalf description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"form__input-large\\\",[23,6,[]],[23,7,[\\\"_data\\\",\\\"collectOnBehalfDescription\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isInventory\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[\\\"dimensions_group\\\",[23,1,[]],[23,9,[]],\\\"dimensions\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@description\\\"],[[23,1,[]],\\\"weight\\\",[28,\\\"if\\\",[[23,0,[\\\"isNormalItem\\\"]],\\\"\\\",\\\"weight need to be set from each child items\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@isFloat\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"input--80\\\",true,[28,\\\"or\\\",[[23,6,[]],[28,\\\"not\\\",[[23,0,[\\\"isNormalItem\\\"]]],null]],null],[23,7,[\\\"_data\\\",\\\"weight\\\"]],\\\"weight\\\",[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[[28,\\\"or\\\",[[23,6,[]],[28,\\\"not\\\",[[23,0,[\\\"isNormalItem\\\"]]],null]],null],true,\\\"_data.value\\\",[23,7,[\\\"_data\\\",\\\"weightUnit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units-weight\\\"]],true,true,[23,7,[\\\"_data\\\",\\\"weightUnit\\\"]],\\\"weightUnit\\\",[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"packaging_dimensions\\\",[23,1,[]],\\\"packaging_dimensions\\\",[23,7,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@isFloat\\\",\\\"@prefix\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"input--80\\\",true,[28,\\\"tt\\\",[\\\"dimensions_length\\\"],null],[23,6,[]],[23,7,[\\\"_data\\\",\\\"packagingDimensionsLength\\\"]],\\\"packagingDimensionsLength\\\",[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n        x\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@isFloat\\\",\\\"@prefix\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"input--80\\\",true,[28,\\\"tt\\\",[\\\"dimensions_width\\\"],null],[23,6,[]],[23,7,[\\\"_data\\\",\\\"packagingDimensionsWidth\\\"]],\\\"packagingDimensionsWidth\\\",[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n        x\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@isFloat\\\",\\\"@prefix\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"input--80\\\",true,[28,\\\"tt\\\",[\\\"dimensions_height\\\"],null],[23,6,[]],[23,7,[\\\"_data\\\",\\\"packagingDimensionsHeight\\\"]],\\\"packagingDimensionsHeight\\\",[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,6,[]],true,\\\"_data.value\\\",[23,7,[\\\"_data\\\",\\\"packagingDimensionsUnit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units-dimensions\\\"]],true,true,[23,7,[\\\"_data\\\",\\\"packagingDimensionsUnit\\\"]],\\\"packagingDimensionsUnit\\\",[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasInventoryOpening\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[\\\"inventory_group\\\",[23,1,[]],[23,9,[]],\\\"inventory\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"openingOnBookQty\\\",[23,1,[]],\\\"opening inventory book qty\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,6,[]],[23,7,[\\\"_data\\\",\\\"openingOnBookQty\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"openingOnBookValue\\\",[23,1,[]],\\\"opening inventory book value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,6,[]],[23,7,[\\\"_data\\\",\\\"openingOnBookValue\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[\\\"price_group\\\",[23,1,[]],[23,9,[]],\\\"price\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"salesInclPrice\\\",[23,1,[]],\\\"selling inclusive price\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"setType\\\"]],\\\"isSet\\\"],null],true,false],null],\\\"optional\\\",[23,6,[]],[23,7,[\\\"_data\\\",\\\"salesInclPrice\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"salesExclPrice\\\",[23,1,[]],\\\"selling exclusive price\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"setType\\\"]],\\\"isSet\\\"],null],true,false],null],\\\"optional\\\",[23,6,[]],[23,7,[\\\"_data\\\",\\\"salesExclPrice\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"purchasesInclPrice\\\",[23,1,[]],\\\"purchasing inclusive price\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"setType\\\"]],\\\"isSet\\\"],null],true,false],null],\\\"optional\\\",[23,6,[]],[23,7,[\\\"_data\\\",\\\"purchasesInclPrice\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"purchasesExclPrice\\\",[23,1,[]],\\\"purchasing exclusive price\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,7,[\\\"_data\\\",\\\"setType\\\"]],\\\"isSet\\\"],null],true,false],null],\\\"optional\\\",[23,6,[]],[23,7,[\\\"_data\\\",\\\"purchasesExclPrice\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"shouldShowSupplierInformation\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,9,[]],\\\"supplier_group\\\",[23,1,[]],\\\"supplier information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"preferredSupplier\\\",[23,1,[]],\\\"supplier\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,7,[\\\"_data\\\",\\\"preferredSupplierKey\\\"]],[28,\\\"hash\\\",null,[[\\\"contactKey\\\",\\\"component\\\",\\\"loadInstructions\\\",\\\"title\\\"],[[23,7,[\\\"_data\\\",\\\"preferredSupplierKey\\\"]],\\\"contacts/tab-container\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,7,[\\\"_data\\\",\\\"preferredSupplierKey\\\"]]]]]]]],\\\"contacts\\\"]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"_data\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@disabled\\\",\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@filters\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\"],[[23,6,[]],false,\\\"span\\\",false,[23,0,[\\\"contactsFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,7,[\\\"_data\\\",\\\"preferredSupplierName\\\"]],[23,7,[\\\"_data\\\",\\\"preferredSupplierKey\\\"]],\\\"fas fa-address-book\\\",[23,0,[\\\"contactsFilters\\\"]],\\\"contacts/search-results-documents\\\",[23,0,[\\\"contactsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"contactsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"resultsProperty\\\",\\\"query\\\",\\\"component\\\",\\\"filters\\\"],[\\\"supplier\\\",\\\"results\\\",[23,7,[\\\"_data\\\",\\\"preferredSupplierName\\\"]],[23,0,[]],[23,0,[\\\"contactsFilters\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadSupplierKey\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadSupplierKey\\\"],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"preferredSupplierFulfillmentMethod\\\",[23,1,[]],\\\"supplier fulfillment method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,6,[]],[23,7,[\\\"_data\\\",\\\"preferredSupplierFulfillmentMethod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@allowedForFeatures\\\"],[[23,9,[]],\\\"export_group\\\",[23,1,[]],\\\"export\\\",[28,\\\"array\\\",[\\\"features.sortExportProductByIndex\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"export order\\\",[23,1,[]],\\\"export order\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autoTrim\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[true,[23,6,[]],[23,7,[\\\"_data\\\",\\\"exportIndex\\\"]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/details-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/emails-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 ProductsProductsEditorEmailEditorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _class = class ProductsProductsEditorEmailEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      this.crud.addLists(this, ['products/lists/attachmentsTypes', 'videoSources']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/products/products-editor/emails-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Oa6kstdx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"attachment\\\",\\\"index\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"emails\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,8,[]],[23,5,[]],[23,7,[]]]]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"email_group\\\",[23,1,[]],[23,5,[]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"keywords\\\",[23,1,[]],\\\"on paid send email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\"],[[23,6,[\\\"_data\\\",\\\"hasOnPaidSendEmail\\\"]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"hasOnPaidSendEmail\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"productEmailHeader\\\",[23,1,[]],\\\"email header\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,4,[]],[23,6,[\\\"_data\\\",\\\"productEmailHeader\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"productEmailMessage\\\",[23,1,[]],\\\"email message\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@options\\\"],[true,true,[23,6,[\\\"_data\\\",\\\"productEmailMessage\\\"]],[23,4,[]],[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"emailAttachments\\\",[23,1,[]],\\\"email attachments\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"emailAttachments\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"description_attachments_sub-group\\\",[23,1,[]],[23,5,[]],[23,2,[\\\"_data\\\",\\\"type\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"emailAttachments.type\\\",\\\"type\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-attachmentsTypes\\\"]],[23,2,[]],\\\"_data.type\\\"]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"video\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"emailAttachments.source\\\",\\\"video_source\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"videoSources\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,4,[]],true,[23,2,[\\\"_data\\\",\\\"source\\\"]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"emailAttachments.url\\\",\\\"url\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@translatedPlaceholder\\\",\\\"@tab\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"url\\\"]],[23,2,[]],\\\"https://...\\\",[23,5,[]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"emailAttachments.label\\\",\\\"button label\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"label\\\"]],[28,\\\"tt\\\",[\\\"open link\\\"],null],[23,2,[]],[23,5,[]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-end\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayRemove\\\"]],[23,6,[]],\\\"_data.emailAttachments\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,4,[]],[28,\\\"isLast\\\",[[23,6,[\\\"_data\\\",\\\"emailAttachments\\\"]],[23,3,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,6,[]],\\\"_data.emailAttachments\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,4,[]],[28,\\\"eq\\\",[[23,3,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,6,[]],\\\"_data.emailAttachments\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add attachment\\\",[23,4,[]],[23,6,[\\\"addEmailAttachment\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/emails-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/pages-editor/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    tabsManager: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    selectedTemplateIndex: null,\n    selectedTemplateModel: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/attachmentsTypes', 'videoSources']);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const model = this.model;\n      if (!model) {\n        return false;\n      }\n      const templateModel = model.getData('templates').get('firstObject');\n      templateModel.instanceId = model?.instanceId;\n      this.selectTemplate(templateModel);\n      Ember.set(this, 'showAdditionalDescription', model?._data?.additionalDescription ? true : false);\n    },\n    updateContent(template) {\n      this.model.setData('template', template);\n    },\n    newTemplate(model) {\n      const templates = model?._data?.templates || [];\n      if (templates.length > 4) {\n        return;\n      }\n      const templateModel = model.addNewTemplate();\n      this.selectTemplate(templateModel);\n    },\n    selectTemplate(templateModel = false) {\n      const templates = this.model?._data?.templates || [];\n      let index = templates?.indexOf(templateModel) || 0;\n      if (index < 0) {\n        index = 0;\n      }\n      this.set('selectedTemplateIndex', index);\n      this.set('selectedTemplateModel', templateModel);\n    },\n    clearAdditionalDescription(model) {\n      model.setData('additionalDescription', '');\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateContent\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateContent\"), _obj), _applyDecoratedDescriptor(_obj, \"newTemplate\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"newTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"selectTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"selectTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"clearAdditionalDescription\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"clearAdditionalDescription\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/pages-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CAc1WdCy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"templateModel\\\",\\\"index\\\",\\\"templateModel\\\",\\\"index\\\",\\\"attachment\\\",\\\"index\\\",\\\"spec\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@isShopDotComEnabled\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"webpages\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,13,[]],[23,11,[]],[23,12,[]]]]],[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"descriptions_group\\\",[23,1,[]],[23,11,[]],\\\"description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\",\\\"@description\\\",\\\"@translateDescription\\\",\\\"@descriptionClassNames\\\"],[\\\"description\\\",\\\"product_short description\\\",[23,1,[]],[28,\\\"if\\\",[[23,14,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shop.com characters limit\\\"],null],\\\"4000\\\"],null]],null],false,\\\"has-text-info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[[23,10,[\\\"_data\\\",\\\"description\\\"]],[23,9,[]],[23,11,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\",\\\"@description\\\",\\\"@translateDescription\\\",\\\"@descriptionClassNames\\\"],[\\\"showAdditionalDescription\\\",\\\"additional description\\\",[23,1,[]],[28,\\\"if\\\",[[23,14,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shop.com characters limit\\\"],null],\\\"4000\\\"],null]],null],false,\\\"has-text-info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenFalse\\\"],[[23,9,[]],[23,10,[]],[23,11,[]],[23,0,[\\\"showAdditionalDescription\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"clearAdditionalDescription\\\"]],[23,10,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"showAdditionalDescription\\\"]],[23,10,[\\\"_data\\\",\\\"additionalDescription\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\"],[\\\"additionalDescription\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@resource\\\"],[[23,10,[\\\"_data\\\",\\\"additionalDescription\\\"]],[23,9,[]],[23,11,[]],true,\\\"files\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"specs_group\\\",[23,1,[]],[23,11,[]],\\\"specs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"_data\\\",\\\"specs\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-table\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-title\\\",[],[[\\\"@title\\\"],[\\\"spec_name\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-title\\\",[],[[\\\"@title\\\"],[\\\"spec_detail\\\"]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,10,[\\\"_data\\\",\\\"specs\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[[23,9,[]],[23,8,[\\\"_data\\\",\\\"label\\\"]],[23,8,[]],[23,11,[]],\\\"specs.label\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[[23,9,[]],[23,8,[\\\"_data\\\",\\\"value\\\"]],[23,8,[]],[23,11,[]],\\\"specs.value\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-end\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,9,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayRemove\\\"]],[23,10,[]],\\\"_data.specs\\\",[23,8,[]]],null]]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add spec\\\",[23,9,[]],[23,10,[\\\"addSpec\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"specs\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"description_attachments_group\\\",[23,1,[]],[23,11,[]],\\\"description attachments\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,10,[\\\"_data\\\",\\\"descriptionAttachments\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"description_attachments_sub-group\\\",[23,1,[]],[23,11,[]],[23,6,[\\\"_data\\\",\\\"type\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"descriptionAttachments.type\\\",\\\"type\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,[23,9,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-attachmentsTypes\\\"]],[23,6,[]],\\\"_data.type\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"type\\\"]],\\\"video\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"descriptionAttachments.source\\\",\\\"video_source\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"videoSources\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,9,[]],true,[23,6,[\\\"_data\\\",\\\"source\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"descriptionAttachments.url\\\",\\\"url\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@translatedPlaceholder\\\",\\\"@tab\\\"],[[23,9,[]],[23,6,[\\\"_data\\\",\\\"url\\\"]],[23,6,[]],\\\"https://...\\\",[23,11,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"type\\\"]],\\\"link\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"descriptionAttachments.label\\\",\\\"button label\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,9,[]],[23,6,[\\\"_data\\\",\\\"label\\\"]],[28,\\\"tt\\\",[\\\"open link\\\"],null],[23,6,[]],[23,11,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,9,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayRemove\\\"]],[23,10,[]],\\\"_data.descriptionAttachments\\\",[23,6,[]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,9,[]],[28,\\\"isLast\\\",[[23,10,[\\\"_data\\\",\\\"descriptionAttachments\\\"]],[23,7,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,10,[]],\\\"_data.descriptionAttachments\\\",\\\"_data.index\\\",[23,6,[]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,9,[]],[28,\\\"eq\\\",[[23,7,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,10,[]],\\\"_data.descriptionAttachments\\\",\\\"_data.index\\\",[23,6,[]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6,7]},null],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add attachment\\\",[23,9,[]],[23,10,[\\\"addDescriptionAttachment\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isMenu\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"template_group\\\",true,[23,11,[]],\\\"template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-margin-top-10\\\",[28,\\\"or\\\",[[23,9,[]],[28,\\\"gt\\\",[[28,\\\"count\\\",[[23,10,[\\\"_data\\\",\\\"templates\\\"]]],null],4],null]],null],\\\"fas fa-plus\\\",\\\"new template\\\",[28,\\\"fn\\\",[[23,0,[\\\"newTemplate\\\"]],[23,10,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"templates\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tab flex-container-row\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"u-tab-menu tab-menu-group\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,10,[\\\"_data\\\",\\\"templates\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[\\\"u-tab-menu__item \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedTemplateIndex\\\"]],[23,5,[]]],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectTemplate\\\"]],[23,4,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"header\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[1,[23,4,[\\\"_data\\\",\\\"header\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[\\\"missing data\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4,5]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,10,[\\\"_data\\\",\\\"templates\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedTemplateIndex\\\"]],[23,3,[]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"products/products-editor/template\\\",[],[[\\\"@index\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentModel\\\",\\\"@reselectFirst\\\",\\\"@tab\\\"],[[23,3,[]],[23,9,[]],[23,2,[]],[23,10,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectTemplate\\\"]]],null],[23,11,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2,3]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/pages-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/recurring-schedules-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"anyTXdai\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"recurringSchedules\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,3,[]],\\\"recurringSchedules_group\\\",[23,1,[]],\\\"recurring schedules\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"recurring/schedules-table\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,5,[]],[23,6,[]],[23,3,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/recurring-schedules-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/seo-editor/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    tabsManager: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    selectedTemplateIndex: null,\n    selectedTemplateModel: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/attachmentsTypes', 'videoSources']);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const model = this.model;\n      if (!model) {\n        return false;\n      }\n      const templateModel = model.getData('templates').get('firstObject');\n      templateModel.instanceId = model?.instanceId;\n      this.selectTemplate(templateModel);\n      Ember.set(this, 'showAdditionalDescription', model?._data?.additionalDescription ? true : false);\n    },\n    updateContent(template) {\n      this.model.setData('template', template);\n    },\n    newTemplate(model) {\n      const templates = model?._data?.templates || [];\n      if (templates.length > 4) {\n        return;\n      }\n      const templateModel = model.addNewTemplate();\n      this.selectTemplate(templateModel);\n    },\n    selectTemplate(templateModel = false) {\n      const templates = this.model?._data?.templates || [];\n      let index = templates?.indexOf(templateModel) || 0;\n      if (index < 0) {\n        index = 0;\n      }\n      this.set('selectedTemplateIndex', index);\n      this.set('selectedTemplateModel', templateModel);\n    },\n    clearAdditionalDescription(model) {\n      model.setData('additionalDescription', '');\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateContent\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateContent\"), _obj), _applyDecoratedDescriptor(_obj, \"newTemplate\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"newTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"selectTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"selectTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"clearAdditionalDescription\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"clearAdditionalDescription\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/seo-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XRgIAyta\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"seo\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"seo_group\\\",[23,1,[]],[23,3,[]],\\\"seo\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"keywords\\\",[23,1,[]],\\\"website_seo_title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,5,[]],[23,6,[\\\"_data\\\",\\\"seoTitle\\\"]],\\\"seoTitle\\\",[23,6,[]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"keywords\\\",[23,1,[]],\\\"website_seo_keywords\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,5,[]],[23,6,[\\\"_data\\\",\\\"seoKeywords\\\"]],\\\"seoKeywords\\\",[23,6,[]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"seoDescription\\\",[23,1,[]],\\\"website_seo_description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@maxlength\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"300\\\",[22,\\\"isReadonly\\\"],[23,6,[\\\"_data\\\",\\\"seoDescription\\\"]],\\\"seoDescription\\\",[23,6,[]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[23,1,[]],\\\"urlProductName\\\",false,\\\"product url\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\",\\\"@model\\\",\\\"@tab\\\"],[false,[23,5,[]],[23,6,[\\\"_data\\\",\\\"urlProductName\\\"]],\\\"urlProductName\\\",[23,6,[]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"customId\\\",\\\"custom id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,6,[\\\"_data\\\",\\\"customId\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/seo-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/sets-editor/component\", [\"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 = Ember.Component.extend({\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.isEditing || this.isNew) {\n        const model = this.model;\n        model.newBlankSetDetail();\n      }\n    },\n    isReadonlyAndAvailable: Ember.computed('model._data.isSet', 'isReadonly', function () {\n      if (!this.get('model._data.isSet')) {\n        return true;\n      }\n      return this.isReadonly;\n    }),\n    actions: {\n      loadProduct(model, detail, product) {\n        if (model.hasDuplicateSetDetailsProduct(product)) {\n          const msg = this.intl.t('duplicate product');\n          window.alert(msg);\n          model.resetSetDetail(detail);\n        } else {\n          model.loadChildProduct(detail, product);\n          model.newBlankSetDetail();\n        }\n      },\n      resetSetDetail(model, detail) {\n        model.resetSetDetail(detail);\n      },\n      removeSetDetail(model, detail) {\n        const msg = this.intl.t('are you sure you want to remove');\n        if (window.confirm(msg)) {\n          const model = this.model;\n          model.removeSetDetail(detail);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/sets-editor/details-editor/component\", [\"exports\", \"client/mixins/errors\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _errors, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _errors.default, {\n    applicationService: Ember.inject.service('application'),\n    dragAndDrop: Ember.inject.service('drag-and-drop'),\n    productsService: Ember.inject.service('products'),\n    tagName: '',\n    showUploadsRow: false,\n    init() {\n      this._super(...arguments);\n      const productsFilters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'productsList',\n          excludes: [{\n            key: 'setType',\n            value: 'isSet'\n          }, {\n            key: 'setType',\n            value: 'isSetWithChoices'\n          }, {\n            key: 'setType',\n            value: 'hasVariants'\n          }, {\n            key: 'hasCustomizations',\n            value: true\n          }]\n        }\n      });\n      this.set('productsFilters', productsFilters);\n    },\n    searchProductsTask: (0, _emberConcurrency.task)(function* ({\n      adapterName = 'products',\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        const filters = this.productsFilters;\n        // filters.setData('query', query)\n\n        const results = yield this.searchInputTask.perform({\n          adapterName,\n          filters\n        }, query);\n        return results;\n      }\n    })\n  });\n});","define(\"client/pods/components/products/products-editor/sets-editor/details-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ucjN4KtH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@detail\\\",\\\"@index\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@onRemoveSetDetail\\\",\\\"@isEditing\\\",\\\"@onLoadProduct\\\",\\\"@onResetSetDetail\\\",\\\"@isNew\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-form__header-tr\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-search\\\"]]],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"product_description\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,7,[]],[23,10,[]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\",\\\"@tagName\\\"],[[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],[28,\\\"and\\\",[[23,7,[]],[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,2,[\\\"_data\\\",\\\"index\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDropWithIndex\\\"]],[28,\\\"hash\\\",null,[[\\\"droppedAt\\\",\\\"results\\\"],[[23,2,[\\\"_data\\\",\\\"index\\\"]],[23,4,[\\\"_data\\\",\\\"setDetails\\\"]]]]]],null],\\\"tr\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__padding\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@data\\\",\\\"@draggable\\\",\\\"@onDragStart\\\"],[[23,2,[\\\"_data\\\",\\\"index\\\"]],[28,\\\"and\\\",[[23,7,[]],[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,2,[\\\"_data\\\",\\\"index\\\"]],[23,2,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"_data\\\",\\\"index\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"loadInstructions\\\",\\\"title\\\"],[\\\"products/tab-container\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]],\\\"products\\\"]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@inputPvtClassNames\\\",\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@readonly\\\",\\\"@isRunning\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@onSearch\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[\\\"span\\\",\\\"table-form__input table-form__input--120\\\",\\\"search products\\\",[23,5,[]],false,[23,0,[\\\"productsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,2,[\\\"_data\\\",\\\"itemCode\\\"]],\\\"_data.code\\\",\\\"_data._key\\\",[23,2,[\\\"_data\\\",\\\"itemKey\\\"]],\\\"fas fa-bookmark\\\",[23,5,[]],[23,0,[\\\"searchProductsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"productsFilters\\\"]],true,[28,\\\"perform\\\",[[23,0,[\\\"searchProductsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,2,[\\\"_data\\\",\\\"itemCode\\\"]]]]]],null],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],[23,8,[]],[23,4,[]],[23,2,[]]],null],[28,\\\"action\\\",[[23,0,[]],[23,9,[]],[23,4,[]],[23,2,[]]],null],[23,4,[]],[23,1,[]],\\\"setDetails.itemCode\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[\\\"u-full-width\\\",\\\"table-form__input table-form__input--200\\\",[23,5,[]],[23,2,[\\\"_data\\\",\\\"item\\\"]],[23,4,[]],[23,1,[]],\\\"setDetails.item\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@value\\\",\\\"@model\\\",\\\"@context\\\"],[\\\"units-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"units\\\",true]]],true,[23,5,[]],\\\"table-form__input table-form__input--40\\\",true,\\\"_data.label\\\",\\\"_data._key\\\",[23,2,[\\\"_data\\\",\\\"unit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],[23,5,[]],[23,1,[]],[23,2,[\\\"_data\\\",\\\"unitKey\\\"]],[23,4,[]],\\\"setDetails.unit\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[\\\"table-form__input table-form__input--80 has-text-right\\\",[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"itemKey\\\"]],true,false],null],[23,5,[]],[23,2,[\\\"_data\\\",\\\"qty\\\"]],[23,4,[]],[23,1,[]],\\\"setDetails.qty\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@model\\\",\\\"@context\\\"],[true,true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],true,[23,2,[\\\"statusClass\\\"]],[23,1,[]],true,[23,2,[\\\"_data\\\",\\\"status\\\"]],[23,4,[]],\\\"setDetails.status\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\",\\\"@isToggler\\\",\\\"@parentComponent\\\",\\\"@toggleProperty\\\",\\\"@toggleIsOn\\\"],[\\\"products\\\",[23,2,[\\\"_data\\\",\\\"itemKey\\\"]],\\\"30\\\",true,[23,0,[]],\\\"showUploadsRow\\\",[23,0,[\\\"showUploadsRow\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,7,[]],[23,10,[]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,5,[]],[28,\\\"isLast\\\",[[23,4,[\\\"_data\\\",\\\"setDetails\\\"]],[23,3,[]]],null],[28,\\\"isNextEmptyProp\\\",[[23,4,[\\\"_data\\\",\\\"setDetails\\\"]],[23,3,[]],\\\"_data.itemKey\\\"],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,4,[]],\\\"_data.setDetails\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,3,[]],0],null],[28,\\\"isEmptyProp\\\",[[23,2,[]],\\\"_data.itemKey\\\"],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,4,[]],\\\"_data.setDetails\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,5,[]],[28,\\\"fn\\\",[[23,6,[]],[23,4,[]],[23,2,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"files-row bg-1\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,1,[]],\\\"auto\\\",40,true,true,true,true,[23,2,[]],\\\"products\\\",[23,2,[\\\"_data\\\",\\\"itemKey\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/sets-editor/details-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/sets-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1jQPZY05\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"detail\\\",\\\"index\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"isSet\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,9,[]],[23,7,[]],[23,8,[]]]]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"productSetsContents_group\\\",[23,1,[]],[23,7,[]],\\\"product_sets_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"products/products-editor/sets-editor/details-editor\\\",[],[[\\\"@isEditing\\\",\\\"@isHeaders\\\",\\\"@isNew\\\"],[[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"setDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"products/products-editor/sets-editor/details-editor\\\",[],[[\\\"@detail\\\",\\\"@errors\\\",\\\"@errorIndex\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onLoadProduct\\\",\\\"@onRemoveSetDetail\\\",\\\"@onResetSetDetail\\\",\\\"@tab\\\",\\\"@index\\\"],[[23,2,[]],[22,\\\"errors\\\"],[23,3,[]],[23,4,[]],[23,5,[]],[23,0,[\\\"isReadonlyAndAvailable\\\"]],[23,6,[]],[28,\\\"action\\\",[[23,0,[]],\\\"loadProduct\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeSetDetail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"resetSetDetail\\\"],null],[23,7,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"setDetails\\\"]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/sets-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/component\", [\"exports\", \"client/mixins/errors\"], function (_exports, _errors) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_errors.default, {\n    tagName: '',\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.isEditing || this.isNew) {\n        const choice = this.choice;\n        choice.addChoiceDetail();\n      }\n    },\n    actions: {\n      loadProduct(model, detail, product) {\n        if (model.hasDuplicateSetWithChoicesDetailsProduct(product)) {\n          const msg = this.intl.t('duplicate product');\n          window.alert(msg);\n          model.resetSetDetail(detail);\n        } else {\n          model.loadChildProduct(detail, product);\n          const choice = this.choice;\n          choice.addChoiceDetail();\n        }\n      },\n      removeChoiceDetail(choice, detail) {\n        choice.removeChoiceDetail(detail);\n      },\n      resetChoiceDetail(choice, detail) {\n        choice.resetChoiceDetail(detail);\n      }\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/details-editor/component\", [\"exports\", \"client/mixins/errors\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _errors, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { computed } from '@ember/object'\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _errors.default, {\n    applicationService: Ember.inject.service('application'),\n    dragAndDrop: Ember.inject.service('drag-and-drop'),\n    productsService: Ember.inject.service('products'),\n    tagName: '',\n    showVariantDetails: false,\n    init() {\n      this._super(...arguments);\n      const model = this.model;\n      if (model) {\n        const productsFilters = this.search.setupFilters({\n          adapterName: 'products/filters',\n          defaultFiltersData: {\n            resultsProperty: 'productsList',\n            excludes: [{\n              key: '_key',\n              value: model.getData('_key')\n            }, {\n              key: 'setType',\n              value: 'isSetWithChoices'\n            }, {\n              key: 'hasCustomizations',\n              value: true\n            }]\n          }\n        });\n        this.set('productsFilters', productsFilters);\n      }\n    },\n    searchProductsTask: (0, _emberConcurrency.task)(function* ({\n      adapterName = 'products',\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        const filters = this.productsFilters;\n        // filters.setData('query', query)\n\n        const results = yield this.searchInputTask.perform({\n          adapterName,\n          filters\n        }, query);\n        return results;\n      }\n    })\n  });\n});","define(\"client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/details-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"k8YdCvPf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"childProduct\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@index\\\",\\\"@choice\\\",\\\"@onRemoveChoiceDetail\\\",\\\"@onResetChoiceDetail\\\",\\\"@onLoadProduct\\\",\\\"@parentIndex\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-form__header-tr\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[]],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\",\\\"@tagName\\\"],[[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],[28,\\\"and\\\",[[23,4,[]],[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,3,[\\\"_data\\\",\\\"index\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDropWithIndex\\\"]],[28,\\\"hash\\\",null,[[\\\"droppedAt\\\",\\\"results\\\"],[[23,3,[\\\"_data\\\",\\\"index\\\"]],[23,8,[\\\"_data\\\",\\\"details\\\"]]]]]],null],\\\"tr\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__padding\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@onDragStart\\\",\\\"@data\\\"],[[28,\\\"and\\\",[[23,4,[]],[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,3,[\\\"_data\\\",\\\"index\\\"]],[23,3,[]]],null],[23,3,[\\\"_data\\\",\\\"index\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,3,[\\\"_data\\\",\\\"index\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,3,[\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@list\\\",\\\"@inputPvtClassNames\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@onDeselect\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@tagName\\\",\\\"@value\\\",\\\"@context\\\"],[false,[23,6,[]],[23,0,[\\\"productsFilters\\\"]],true,\\\"_data._key\\\",[23,3,[\\\"_data\\\",\\\"itemKey\\\"]],\\\"fas fa-bookmark\\\",[23,0,[\\\"productsList\\\"]],\\\"table-form__input table-form__input--120\\\",[23,0,[\\\"searchProductsTask\\\",\\\"isRunning\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[28,\\\"action\\\",[[23,0,[]],[23,10,[]],[24,[\\\"choice\\\"]],[24,[\\\"detail\\\"]]],null],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"perform\\\",[[23,0,[\\\"searchProductsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,3,[\\\"_data\\\",\\\"itemCode\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],[23,11,[]],[24,[\\\"model\\\"]],[24,[\\\"detail\\\"]]],null],\\\"search products\\\",[23,6,[]],\\\"_data.code\\\",\\\"span\\\",[23,3,[\\\"_data\\\",\\\"itemCode\\\"]],\\\"choices.details.itemCode\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@classNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@parentIndex\\\",\\\"@context\\\"],[\\\"u-full-width\\\",\\\"table-form__input table-form__input--200\\\",true,[23,3,[\\\"_data\\\",\\\"item\\\"]],[23,12,[]],\\\"choices.details.item\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,[23,3,[\\\"statusClass\\\"]],[23,2,[]],true,[23,3,[\\\"_data\\\",\\\"status\\\"]],\\\"choices.details.status\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\",\\\"@isToggler\\\",\\\"@parentComponent\\\",\\\"@toggleProperty\\\",\\\"@toggleIsOn\\\"],[\\\"products\\\",[23,3,[\\\"_data\\\",\\\"itemKey\\\"]],\\\"30\\\",true,[23,0,[]],\\\"showUploadsRow\\\",[23,0,[\\\"showUploadsRow\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[]],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,6,[]],[28,\\\"isLast\\\",[[23,8,[\\\"_data\\\",\\\"details\\\"]],[23,7,[]]],null],[28,\\\"isNextEmptyProp\\\",[[23,8,[\\\"_data\\\",\\\"details\\\"]],[23,7,[]],\\\"_data.itemKey\\\"],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,8,[]],\\\"_data.details\\\",\\\"_data.index\\\",[23,3,[]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,6,[]],[28,\\\"eq\\\",[[23,7,[]],0],null],[28,\\\"isEmptyProp\\\",[[23,3,[]],\\\"_data.itemKey\\\"],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,8,[]],\\\"_data.details\\\",\\\"_data.index\\\",[23,3,[]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,6,[]],[28,\\\"fn\\\",[[23,9,[]],[23,8,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showVariantDetails\\\"]],[23,3,[\\\"_data\\\",\\\"variantChildren\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"variant children\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content table-form--no-border-bottom u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@isHeaders\\\"],[true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"variantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@childProduct\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@isSetChild\\\"],[[23,1,[]],[23,4,[]],[23,5,[]],[23,6,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showSetDetails\\\"]],[23,3,[\\\"_data\\\",\\\"setDetails\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"products/products-editor/sets-editor\\\",[],[[\\\"@model\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@isSetChild\\\"],[[23,3,[]],false,false,true,true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"files-row bg-1\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,2,[]],\\\"auto\\\",40,true,true,true,true,[23,3,[]],\\\"products\\\",[23,3,[\\\"_data\\\",\\\"itemKey\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/details-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Anqj8Ax8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\",\\\"@choice\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@index\\\",\\\"@onRemoveChoice\\\"],\\\"statements\\\":[[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width table-form__td--padding-8\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-form__header-tr\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"choose qty\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[]],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"table-form__input table-form__input--120\\\",true,[23,6,[]],[23,3,[\\\"_data\\\",\\\"qty\\\"]],\\\"choices.qty\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"table-form__input table-form__input--120\\\",true,[23,6,[]],[23,3,[\\\"_data\\\",\\\"name\\\"]],\\\"choices.name\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@context\\\"],[[23,6,[]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],true,[23,3,[\\\"statusClass\\\"]],[23,8,[]],true,[23,3,[\\\"_data\\\",\\\"status\\\"]],\\\"choices.status\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[]],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,6,[]],[23,10,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@errors\\\"],[\\\"choices.details\\\",[23,0,[\\\"validationError\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"products/products-editor/sets-with-choices-editor/choices-editor/details-editor\\\",[],[[\\\"@isEditing\\\",\\\"@isHeaders\\\",\\\"@isNew\\\"],[[23,4,[]],true,[23,5,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"products/products-editor/sets-with-choices-editor/choices-editor/details-editor\\\",[],[[\\\"@choice\\\",\\\"@detail\\\",\\\"@errorIndex\\\",\\\"@errors\\\",\\\"@index\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onLoadProduct\\\",\\\"@onRemoveChoiceDetail\\\",\\\"@onResetChoiceDetail\\\",\\\"@tab\\\",\\\"@parentIndex\\\"],[[23,3,[]],[23,1,[]],[23,2,[]],[22,\\\"errors\\\"],[23,2,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[28,\\\"action\\\",[[23,0,[]],\\\"loadProduct\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeChoiceDetail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"resetChoiceDetail\\\"],null],[23,8,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/sets-with-choices-editor/choices-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/sets-with-choices-editor/component\", [\"exports\", \"ramda-adjunct\"], function (_exports, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    init() {\n      this._super(...arguments);\n      const model = this?.model || {};\n      const choices = model?._data?.choices;\n      if (this?.isNew && RA.isNilOrEmpty(choices)) {\n        model.addChoice();\n      }\n    },\n    isReadonlyAndAvailable: Ember.computed('model._data.isSetWithChoices', 'isReadonly', function () {\n      if (!this.get('model._data.isSetWithChoices')) {\n        return true;\n      }\n      return this.isReadonly;\n    }),\n    actions: {\n      addChoice(model) {\n        model.addChoice();\n      },\n      removeChoice(model, choice) {\n        const msg = this.intl.t('are you sure you want to remove');\n        if (window.confirm(msg)) {\n          model.removeChoice(choice);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/sets-with-choices-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LGRiO7fr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"choice\\\",\\\"index\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"isSetWithChoices\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,9,[]],[23,5,[]],[23,8,[]]]]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"choices\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"productsSetsWithChoices_group\\\",[23,1,[]],\\\"product_sets_with_choices_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"products/products-editor/sets-with-choices-editor/choices-editor\\\",[],[[\\\"@choice\\\",\\\"@errorIndex\\\",\\\"@errors\\\",\\\"@model\\\",\\\"@onRemoveChoice\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[[23,2,[]],[23,3,[]],[22,\\\"errors\\\"],[23,4,[]],[28,\\\"action\\\",[[23,0,[]],\\\"removeChoice\\\",[23,4,[]],[23,2,[]]],null],[23,6,[]],[23,7,[]],[23,0,[\\\"isReadonlyAndAvailable\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,6,[]],[23,7,[]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,0,[\\\"isReadonlyAndAvailable\\\"]],[28,\\\"isLast\\\",[[23,4,[\\\"_data\\\",\\\"choices\\\"]],[23,3,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,4,[]],\\\"_data.choices\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,0,[\\\"isReadonlyAndAvailable\\\"]],[28,\\\"eq\\\",[[23,3,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,4,[]],\\\"_data.choices\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"productsSetsWithChoicesAddBtn_group\\\",[23,1,[]],\\\"product_sets_with_choices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"choices\\\",[23,1,[]],true,\\\"\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add new choices\\\",[23,0,[\\\"isReadonlyAndAvailable\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"addChoice\\\",[23,4,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/sets-with-choices-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/shop-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, R_, _ramdaAdjunct) {\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 ProductsProductsEditorShopEditorComponent = _exports.default = (_dec = Ember.inject.service('channels/shop/campaigns'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('application'), _dec4 = Ember._tracked, _class = class ProductsProductsEditorShopEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaignsProducts\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"campaignFilters\", _descriptor4, this);\n      const campaignFilters = this.campaignsService.getSearchFilters();\n      this.campaignFilters = campaignFilters;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaignsProducts\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"campaignFilters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class);\n});","define(\"client/pods/components/products/products-editor/shop-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fdzfd8a4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\",\\\"@campaignDetailInstructions\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"shop\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaignsDetails\\\",[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"shop_group\\\",[23,1,[]],[23,3,[]],\\\"shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"autoAddNewProductToShopKey\\\",\\\"shop\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@isRequired\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@filters\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,false,[23,0,[\\\"campaignFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"campaignFilters\\\"]],[23,5,[\\\"_data\\\",\\\"autoAddNewProductToShop\\\"]],[23,5,[\\\"_data\\\",\\\"autoAddNewProductToShopKey\\\"]],[23,6,[]],\\\"channels/shop/campaigns/search-results\\\",[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"filters\\\",\\\"adapterName\\\",\\\"component\\\"],[[23,5,[\\\"_data\\\",\\\"autoAddNewProductToShop\\\"]],[23,0,[\\\"campaignFilters\\\"]],\\\"channels/shop/campaigns\\\",[23,0,[]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPathFromModelPath\\\"]],[23,5,[]],\\\"_data.autoAddNewProductToShopKey\\\",\\\"_data._key\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPath\\\"]],[23,5,[]],\\\"_data.autoAddNewProductToShopKey\\\",\\\"\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/shop-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"paJQ/sAd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"subTab\\\",\\\"@isRunning\\\",\\\"@model\\\",\\\"@onDash\\\",\\\"@adapterName\\\",\\\"@originalModel\\\",\\\"@tab\\\",\\\"@showUploadsInHeader\\\",\\\"@isShopDotComEnabled\\\",\\\"@isFromShop\\\",\\\"@isEditing\\\",\\\"@onCancel\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,4,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"products/panels-header\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@subPanels\\\",\\\"@showUploadsInHeader\\\"],[[23,8,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"editorSubPanels\\\"]],[23,9,[]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,8,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,2,[\\\"component\\\"]]],[[\\\"isDisabled\\\",\\\"isDuplicate\\\",\\\"isEditing\\\",\\\"isEditingVariants\\\",\\\"isDoneEditingVariants\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"isFromShop\\\",\\\"isShopDotComEnabled\\\",\\\"model\\\",\\\"onPurchasesTaxRateSelected\\\",\\\"onSalesTaxRateSelected\\\",\\\"onUpdateVariantChildrenList\\\",\\\"originalModel\\\",\\\"tab\\\",\\\"parentTab\\\",\\\"headerBottom\\\",\\\"resourceList\\\",\\\"isAllowedToDelete\\\",\\\"campaignDetailInstructions\\\"],[[24,[\\\"isDisabled\\\"]],[24,[\\\"isDuplicate\\\"]],[23,12,[]],[23,0,[\\\"isEditingVariants\\\"]],[23,0,[\\\"isDoneEditingVariants\\\"]],[24,[\\\"isNew\\\"]],[23,0,[\\\"isProductReadonly\\\"]],[23,11,[]],[23,10,[]],[23,4,[]],[28,\\\"action\\\",[[23,0,[]],\\\"purchasesTaxRateSelected\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"salesTaxRateSelected\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"updateVariantChildrenList\\\",[28,\\\"hash\\\",null,[[\\\"originalModel\\\",\\\"isNew\\\"],[[23,7,[]],[24,[\\\"isNew\\\"]]]]]],null],[23,7,[]],[23,2,[]],[23,8,[]],[23,0,[\\\"headerBottom\\\"]],[23,0,[\\\"editorSubPanels\\\"]],[23,0,[\\\"isAllowedToDelete\\\"]],[23,0,[\\\"campaignDetailInstructions\\\"]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[\\\"productCampaignsData\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\"],[\\\"uploaded to shops\\\"]]],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"products/table-view/campaigns-list\\\",[],[[\\\"@model\\\"],[[23,7,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,4,[\\\"_data\\\",\\\"isVariantChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@message\\\",\\\"@messageClassNames\\\",\\\"@label\\\",\\\"@titleSuffix\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[28,\\\"or\\\",[[24,[\\\"isDisabled\\\"]],[24,[\\\"isEditingVariants\\\"]]],null],[28,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isAllowedToDelete\\\"]]],null],[23,0,[\\\"deleteMsg\\\"]],\\\"\\\"],null],\\\"has-text-danger\\\",[28,\\\"if\\\",[[28,\\\"not\\\",[[23,0,[\\\"isAllowedToDelete\\\"]]],null],\\\"mark as inactive\\\",\\\"delete\\\"],null],[23,4,[\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[[23,6,[]],[23,4,[]],true,[23,5,[]]]]]],null],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isDuplicate\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left--6\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[\\\"copy images\\\",[23,4,[\\\"_data\\\",\\\"copyImages\\\"]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,4,[\\\"_data\\\",\\\"copyImages\\\"]]],null]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"elements/btns-prev-next\\\",[],[[\\\"@tab\\\",\\\"@menu\\\",\\\"@tabs\\\",\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmitPrev\\\",\\\"@onSubmitNext\\\"],[[23,8,[]],[23,0,[\\\"editorSubPanels\\\"]],[23,8,[\\\"subTabs\\\"]],[23,3,[]],[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[24,[\\\"isEditingVariants\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"selectPrevMenuItem\\\"]],[28,\\\"hash\\\",null,[[\\\"tabs\\\",\\\"menu\\\",\\\"onSelect\\\"],[[23,8,[\\\"subTabs\\\"]],[23,0,[\\\"editorSubPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displaySubPanel\\\"]]],null]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"selectNextMenuItem\\\"]],[28,\\\"hash\\\",null,[[\\\"tabs\\\",\\\"menu\\\",\\\"onSelect\\\"],[[23,8,[\\\"subTabs\\\"]],[23,0,[\\\"editorSubPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displaySubPanel\\\"]]],null]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,3,[]],[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[24,[\\\"isEditingVariants\\\"]]],null],[23,13,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveBtnLabel\\\"]],[23,3,[]],[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[24,[\\\"isEditingVariants\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"updateAndSaveTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save and edit shop prices\\\",[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"updateAndSaveTask\\\"]],[28,\\\"hash\\\",null,[[\\\"updateShopPrices\\\"],[true]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/template/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 ProductsProductsEditorTemplateComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _class = class ProductsProductsEditorTemplateComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    updateContent(template) {\n      this?.args?.model?.setData('template', template);\n    }\n    removeTemplate() {\n      try {\n        const templateModel = this.args.model;\n        const parentModel = this.args.parentModel;\n        parentModel?.removeTemplate?.(templateModel);\n        this.args.reselectFirst?.();\n      } catch (e) {\n        console.error(e);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateContent\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"updateContent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTemplate\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/products-editor/template/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VBxYH3iK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-row\\\",[[12,\\\"class\\\",\\\"has-text-right\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"products/page-import-btn\\\",[],[[\\\"@disabled\\\",\\\"@onUpdateContent\\\",\\\"@tab\\\",\\\"@model\\\"],[[23,1,[]],[23,0,[\\\"updateContent\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"templates.status\\\",\\\"products\\\",\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@statusBadgeClassNames\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,3,[\\\"statusClass\\\"]],true,[23,3,[\\\"_data\\\",\\\"status\\\"]],[23,3,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"templates.header\\\",\\\"products\\\",true,\\\"name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@onInput\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[true,[23,3,[\\\"updateSynced\\\"]],[23,1,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,3,[\\\"_data\\\",\\\"header\\\"]],[23,3,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"templates.template\\\",\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@resource\\\",\\\"@model\\\"],[[23,3,[\\\"_data\\\",\\\"template\\\"]],true,true,[23,1,[]],[23,2,[]],\\\"files\\\",[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[[12,\\\"class\\\",\\\"\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@requiresConfirmation\\\"],[[23,1,[]],\\\"fas fa-trash\\\",false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"delete\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"template\\\"],null]],null],[23,0,[\\\"removeTemplate\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/template/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/tickets-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ProductsProductsEditorTicketsEditorComponent extends _component.default {}\n  _exports.default = ProductsProductsEditorTicketsEditorComponent;\n});","define(\"client/pods/components/products/products-editor/tickets-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Vp+vpTVB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\",\\\"@model\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"tickets\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"tickets_group\\\",[23,1,[]],[23,3,[]],\\\"tickets_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"hasQrCodeTicket\\\",[23,1,[]],\\\"create a qr code ticket for this product\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\"],[[23,5,[\\\"_data\\\",\\\"hasQrCodeTicket\\\"]],[28,\\\"or\\\",[[23,6,[]],[23,5,[\\\"_data\\\",\\\"isVariantChild\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"msgs/info-msg\\\",[],[[\\\"@msg\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"type\\\"]],\\\"virtual\\\"],null],\\\"ticketing_dispatch_warning_virtual\\\",\\\"ticketing_dispatch_warning_non_virtual\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/tickets-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/variants-editor/child-editor/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, _crud, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    productsService: Ember.inject.service('products'),\n    settingsService: Ember.inject.service('settings'),\n    tagName: '',\n    linkChildToExistingProduct: false,\n    autoFillNameValue: '',\n    autoFillNameLabel: '',\n    autoFillCodeValue: '',\n    autoFillCodeLabel: '',\n    originalChildProduct: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/variants/auto-fill']);\n      if (this.childProduct) {\n        const childProductCopy = this.dataManager.copyRecord('products/variants/children', this.childProduct);\n        this.set('originalChildProduct', childProductCopy);\n      }\n    },\n    isReadonlyOrDisabled: Ember.computed('isReadonly', 'isSetChild', function () {\n      if (this.isReadonly) {\n        return true;\n      }\n      if (this.isSetChild) {\n        return true;\n      }\n      return false;\n    }),\n    showSearchProductToggler: Ember.computed('linkChildToExistingProduct', 'childProduct._data._key', function () {\n      const hasKey = this.get('childProduct._data._key');\n      if (hasKey) {\n        return false;\n      }\n      return true;\n    }),\n    searchNonSetProductsTask: (0, _emberConcurrency.task)(function* ({\n      adapterName = 'products'\n    }, query) {\n      const model = this.model;\n      if (query?.trim?.() !== '') {\n        const filters = this.search.setupFilters({\n          adapterName: 'products/filters',\n          defaultFiltersData: {\n            query,\n            excludes: [{\n              key: 'setType',\n              value: 'isSetWithChoices'\n            }, {\n              key: 'setType',\n              value: 'hasVariants'\n            }, {\n              key: 'setType',\n              value: 'isSet'\n            }, {\n              key: 'isVariantChild',\n              value: true\n            }, {\n              key: '_key',\n              value: model.getData('_key')\n            }, {\n              key: 'hasCustomizations',\n              value: true\n            }]\n          }\n        });\n        const results = yield this.searchRecordsTask.perform({\n          adapterName,\n          filters\n        });\n        const toLowerQuery = R.toLower(query?.trim?.());\n        const resultsFromUnlinked = R.pipe(R.pathOr([], ['_data', 'productsToBeUnlinked']), R.filter(product => {\n          const name = R.toLower(product._data.name || '');\n          const code = R.toLower(product._data.code || '');\n          const description = R.toLower(product._data.description || '');\n          const barcode = R.toLower(product._data.barcode || '');\n          const notes = R.toLower(product._data.notes || '');\n          return R.includes(toLowerQuery, name) || R.includes(toLowerQuery, code) || R.includes(toLowerQuery, description) || R.includes(toLowerQuery, barcode) || R.includes(toLowerQuery, notes);\n        }))(model);\n        const resultsCombined = R.concat(results, resultsFromUnlinked);\n        this.set('productsList', resultsCombined);\n        return results;\n      }\n    }),\n    filteredProductsList: Ember.computed('productsList', 'childProduct._data._key', 'model.synced', function () {\n      const productsList = this?.productsList || [];\n      const model = this.model;\n      let childProductPath = '_createVariantChildren';\n      if (this.isReadonly) {\n        childProductPath = 'variantChildren';\n      }\n      if (RA.isNotNilOrEmpty(model) && RA.isNotNilOrEmpty(productsList)) {\n        const childProductKeys = R.pipe(R.pathOr([], ['_data', childProductPath]), R.map(childProduct => {\n          return childProduct?._data?._key || '';\n        }), R.reject(RA.isNilOrEmpty))(model);\n        return R.reject(product => {\n          const productKey = product?._data?._key || '';\n          if (R.includes(productKey, childProductKeys)) {\n            return true;\n          }\n          return false;\n        })(productsList);\n      }\n      return productsList;\n    }),\n    actions: {\n      // deselectChildItem () {\n      //   this.set('childProduct._data._key', '')\n      //   this.set('linkChildToExistingProduct', false)\n      //   this.set('childProduct._data.unlink', true)\n      // },\n\n      // loadChildItem (product) {\n      //   this.set('childProduct._data._key', product.getData('_key'))\n      //   this.set('childProduct._data.unlink', false)\n      // },\n\n      // startSearch () {\n      //   this.set('childProduct._data.name', '')\n      // }\n    },\n    setLinkedAndUnlinkedProduct(type = '') {\n      const model = this.model;\n      const childProductClone = this.dataManager.copyRecord('products/variants/children', this.childProduct);\n      const originalChildProduct = this.originalChildProduct;\n      let productsToBeUnlinked = model?._data?.productsToBeUnlinked || [];\n      let productToBeLinked = this?.productToBeLinked || [];\n      if (R.equals(type, 'link')) {\n        const childProductKey = childProductClone?._data?._key || '';\n        const isExistInUnlink = productsToBeUnlinked.find(product => R.equals(childProductKey, product?._data?._key || ''));\n        if (isExistInUnlink) {\n          productsToBeUnlinked = R.reject(R.pathEq(['_data', '_key'], childProductKey))(productsToBeUnlinked);\n          model.setData('productsToBeUnlinked', productsToBeUnlinked);\n        } else {\n          productToBeLinked.pushObject(childProductClone);\n          this.set('originalChildProduct', childProductClone);\n          this.childProduct.setData('productToBeLinked', true);\n        }\n      }\n      if (R.equals(type, 'unlink')) {\n        const originalChildProductKey = originalChildProduct?._data?._key || '';\n        const isExistInLink = productToBeLinked.find(product => R.equals(originalChildProductKey, product?._data?._key || ''));\n        if (isExistInLink) {\n          productToBeLinked = R.reject(R.pathEq(['_data', '_key'], originalChildProductKey))(productToBeLinked);\n          this.set('productToBeLinked', productToBeLinked);\n        } else {\n          originalChildProduct.setData('unlink', true);\n          productsToBeUnlinked.pushObject(originalChildProduct);\n        }\n      }\n    },\n    deselectChildItem() {\n      this.set('childProduct._data._key', '');\n      this.set('childProduct._data.name', '');\n      this.set('linkChildToExistingProduct', false);\n      this.setLinkedAndUnlinkedProduct('unlink');\n    },\n    loadChildItem(product) {\n      this.set('childProduct._data._key', product.getData('_key'));\n      this.set('childProduct._data.name', product.getData('name'));\n      this.setLinkedAndUnlinkedProduct('link');\n    },\n    resetAutoFill() {\n      this.set('autoFillNameValue', '');\n      this.set('autoFillNameLabel', '');\n      this.set('autoFillCodeValue', '');\n      this.set('autoFillCodeLabel', '');\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setLinkedAndUnlinkedProduct\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setLinkedAndUnlinkedProduct\"), _obj), _applyDecoratedDescriptor(_obj, \"deselectChildItem\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"deselectChildItem\"), _obj), _applyDecoratedDescriptor(_obj, \"loadChildItem\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"loadChildItem\"), _obj), _applyDecoratedDescriptor(_obj, \"resetAutoFill\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"resetAutoFill\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/variants-editor/child-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gnGLnqvA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@childProduct\\\",\\\"@isReadonly\\\",\\\"@isNewOrEditing\\\",\\\"@isSetChild\\\",\\\"@productsVariantsCodeSeparator\\\",\\\"@productsVariantsNameSeparator\\\",\\\"@isNew\\\",\\\"@onUpdateVariantChildrenList\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"variant\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isReadonlyOrDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-variants-auto-fill\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"autoFillNameValue\\\"]],[23,0,[\\\"autoFillNameLabel\\\"]],[28,\\\"fn\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"autoFill\\\",\\\"isNew\\\",\\\"autoFillCommand\\\",\\\"onAfter\\\",\\\"productsVariantsNameSeparator\\\",\\\"productsVariantsCodeSeparator\\\"],[\\\"name\\\",[23,8,[]],[23,0,[\\\"autoFillNameValue\\\"]],[23,0,[\\\"resetAutoFill\\\"]],[23,7,[]],[23,6,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"code\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isReadonlyOrDisabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@onSelect\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-variants-auto-fill\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"autoFillCodeValue\\\"]],[23,0,[\\\"autoFillCodeLabel\\\"]],[28,\\\"fn\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"autoFill\\\",\\\"isNew\\\",\\\"autoFillCommand\\\",\\\"onAfter\\\",\\\"productsVariantsNameSeparator\\\",\\\"productsVariantsCodeSeparator\\\"],[\\\"code\\\",[23,8,[]],[23,0,[\\\"autoFillCodeValue\\\"]],[23,0,[\\\"resetAutoFill\\\"]],[23,7,[]],[23,6,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[23,2,[\\\"_data\\\",\\\"codePlaceholder\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"table-form__input table-form__input--200\\\",\\\"table-form__input table-form__input--200\\\",[23,0,[\\\"isReadonlyOrDisabled\\\"]],[23,2,[\\\"_data\\\",\\\"item\\\"]],\\\"_createVariantChildren.item\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"table-form__input table-form__input--200\\\",\\\"table-form__input table-form__input--200\\\",[23,0,[\\\"isReadonlyOrDisabled\\\"]],[23,2,[\\\"_data\\\",\\\"itemCode\\\"]],\\\"_createVariantChildren.itemCode\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--nowrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"showSearchProductToggler\\\"]],[28,\\\"not\\\",[[23,3,[]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@isToggler\\\",\\\"@label\\\",\\\"@hasToggleIcon\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleOffIconClassName\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleIsOn\\\"],[[22,\\\"disabled\\\"],true,\\\"link to existing product\\\",true,false,\\\"fas fa-search\\\",\\\"fas fa-xmark\\\",[23,0,[\\\"linkChildToExistingProduct\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"linkChildToExistingProduct\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@inputPvtClassNames\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hideValueTag\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@placeholder\\\",\\\"@hasSelectedIcon\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@context\\\"],[true,\\\"table-form__input\\\",false,[22,\\\"filteredProductsList\\\"],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,2,[\\\"_data\\\",\\\"searchName\\\"]],true,\\\"_data._key\\\",[23,2,[\\\"_data\\\",\\\"_key\\\"]],\\\"search existing product\\\",\\\"fas fa-bookmark\\\",[23,3,[]],[23,3,[]],[23,0,[\\\"searchNonSetProductsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"searchNonSetProductsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"resultsProperty\\\"],[\\\"products\\\",\\\"productsList\\\"]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"loadChildItem\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"deselectChildItem\\\"]]],null],\\\"_createVariantChildren.name\\\"]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"table-form__input table-form__input--200\\\",\\\"table-form__input table-form__input--200\\\",[23,3,[]],[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"originalChildProduct\\\",\\\"_data\\\",\\\"name\\\"]],\\\"\\\"],null],[23,2,[\\\"_data\\\",\\\"name\\\"]],\\\"_createVariantChildren.name\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@containerClassNames\\\",\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@context\\\"],[\\\"table-form__input table-form__input--200\\\",\\\"table-form__input table-form__input--200\\\",[23,3,[]],[23,2,[\\\"_data\\\",\\\"code\\\"]],\\\"_createVariantChildren.code\\\"]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@context\\\"],[[23,3,[]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],true,[23,2,[\\\"statusClass\\\"]],true,[23,2,[\\\"_data\\\",\\\"status\\\"]],[23,2,[\\\"updateSynced\\\"]],\\\"_createVariantChildren.status\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,1,[]],\\\"auto\\\",40,true,true,true,[23,2,[]],\\\"products\\\",[23,2,[\\\"_data\\\",\\\"_key\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/variants-editor/child-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/variants-editor/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/errors\", \"client/utils/nventor\"], function (_exports, R, RA, _errors, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj; // import nventor from '../../../../../utils/nventor'\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  var _default = _exports.default = Ember.Component.extend(_errors.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    dataManager: Ember.inject.service(),\n    settingsService: Ember.inject.service('settings'),\n    productToBeLinked: Ember.A([]),\n    adapterName: 'products',\n    productsVariantsNameSeparator: '',\n    productsVariantsCodeSeparator: '',\n    hasPressedDone: false,\n    init() {\n      this._super(...arguments);\n      this.set('productToBeLinked', []);\n      this.set('productsVariantsNameSeparator', this.settingsService.getProp('productsVariantsNameSeparator') ?? '-');\n      this.set('productsVariantsCodeSeparator', this.settingsService.getProp('productsVariantsCodeSeparator') ?? '-');\n      if (this.isEditing || this.isNew) {\n        const model = this.model;\n        model.setData('productsToBeUnlinked', []);\n        const variants = model.getData('variants') || [];\n        R.forEach(variant => {\n          const options = variant.getData('options') || [];\n          R.forEach(option => {\n            if (!option._data.optionUid) {\n              const optionUid = _nventor.default.random.alphaNum(10);\n              option.setData('optionUid', optionUid);\n\n              // this is for legacy purposes. for when variant children were created without a optionUid\n              option.set('noInitialOptionUid', true); // false until saved\n            }\n          })(options);\n        })(variants);\n        const originalModel = this.originalModel;\n        model.updateVariantChildrenList({\n          originalModel,\n          setInitialValue: this.isEditing,\n          productsVariantsNameSeparator: this.productsVariantsNameSeparator,\n          productsVariantsCodeSeparator: this.productsVariantsCodeSeparator\n        });\n        if (RA.isNilOrEmpty(variants)) {\n          model.addVariant();\n        }\n        if (this.isNew) {\n          const originalVariants = model.getData('variants') || [];\n          if (RA.isNotNilOrEmpty(originalVariants)) {\n            const originalVariantsClone = R.map(variant => {\n              return this.dataManager.copyRecord('products/variants', variant);\n            })(originalVariants);\n            this.set('originalVariants', originalVariantsClone);\n          }\n        }\n      }\n    },\n    isReadonlyAndAvailable: Ember.computed('model._data.hasVariants', 'isReadonly', function () {\n      if (!this.get('model._data.hasVariants')) {\n        return true;\n      }\n      return R.propOr(false, 'isReadonly')(this);\n    }),\n    showCancelVariants: Ember.computed('hasPressedDone', 'isNew', function () {\n      const isNew = this.isNew;\n      if (!isNew) {\n        return true;\n      }\n      if (this.hasPressedDone) {\n        return true;\n      }\n      return false;\n    }),\n    updateVariantChildrenList({\n      autoFill,\n      autoFillCommand,\n      isNew,\n      onAfter\n    }) {\n      const model = this.model;\n      const originalModel = this.originalModel || {};\n      if (RA.isNilOrEmpty(isNew)) {\n        isNew = R.pathOr(false, ['args', 'isNew'])(this);\n      }\n      if (RA.isNotNilOrEmpty(model)) {\n        model.updateVariantChildrenList({\n          originalModel,\n          autoFill,\n          autoFillCommand,\n          isNew,\n          onAfter,\n          productsVariantsNameSeparator: this.productsVariantsNameSeparator,\n          productsVariantsCodeSeparator: this.productsVariantsCodeSeparator\n        });\n      }\n    },\n    activeVariantChildren: Ember.computed('model._data.variantChildren.{[],@each.synced}', function () {\n      const variantChildren = this?.model?._data?.variantChildren || [];\n      return R.filter(variantChild => {\n        const status = variantChild?._data?.status || 'active';\n        return R.equals(status, 'active');\n      })(variantChildren);\n    }),\n    inactiveVariantChildren: Ember.computed('model._data.variantChildren.{[],@each.synced}', '_createVariantChildrenInactiveProxy.[]', function () {\n      const variantChildren = this?.model?._data?.variantChildren || [];\n      return R.filter(variantChild => {\n        const status = variantChild?._data?.status || 'active';\n        const permanentlyUnavailable = R.pathOr(false, ['_data', 'permanentlyUnavailable'])(variantChild);\n        if (R.equals(status, 'inactive') && !permanentlyUnavailable) {\n          return true;\n        }\n        return false;\n      })(variantChildren);\n    }),\n    permanentlyUnavailableVariantChildren: Ember.computed('model._data.variantChildren.{[],@each.synced}', '_createVariantChildrenInactiveProxy.[]', function () {\n      const variantChildren = this?.model?._data?.variantChildren || [];\n      return R.filter(variantChild => {\n        const permanentlyUnavailable = R.pathOr(false, ['_data', 'permanentlyUnavailable'])(variantChild);\n        if (permanentlyUnavailable) {\n          return true;\n        }\n        return false;\n      })(variantChildren);\n    }),\n    _createVariantChildrenActiveProxy: Ember.computed('model._data._createVariantChildren.{[],@each.synced}', function () {\n      const _createVariantChildren = this?.model?._data?._createVariantChildren || [];\n      return R.filter(variantChild => {\n        const status = variantChild?._data?.status || 'active';\n        return R.equals(status, 'active');\n      })(_createVariantChildren);\n    }),\n    _createVariantChildrenInactiveProxy: Ember.computed('model._data._createVariantChildren.{[],@each.synced}', function () {\n      const _createVariantChildren = this?.model?._data?._createVariantChildren || [];\n      return R.reject(variantChild => {\n        const status = variantChild?._data?.status || 'active';\n        return R.equals(status, 'active');\n      })(_createVariantChildren);\n    }),\n    cancelVariantsDirty() {\n      this.set('isEditingVariants', false);\n      this.set('isDoneEditingVariants', true);\n      if (this.isNew) {\n        const originalVariants = this.originalVariants || [];\n        const model = this?.model || {};\n        model.setData('variants', originalVariants);\n        this.set('originalVariants', null);\n      }\n      if (!this.isEditing) {\n        return;\n      }\n      this.crud.cancelEditing({\n        adapterName: 'products',\n        dirty: this.dirtyClone\n      });\n      this.set('dirtyClone', null);\n    },\n    setupVariantsDirty(model) {\n      if (this.isEditing) {\n        const dirtyClone = this.crud.setupDirty({\n          adapterName: 'products',\n          model\n        });\n        this.set('dirtyClone', dirtyClone);\n      }\n      if (this.isNew) {\n        const originalVariants = model.getData('variants') || [];\n        if (RA.isNotNilOrEmpty(originalVariants)) {\n          const originalVariantsClone = R.map(variant => {\n            return this.dataManager.copyRecord('products/variants', variant);\n          })(originalVariants);\n          this.set('originalVariants', originalVariantsClone);\n        }\n      }\n      this.set('isEditingVariants', true);\n      this.set('isDoneEditingVariants', false);\n    },\n    doneEditingVariants(model) {\n      const originalModel = this.originalModel;\n      if (this.isEditing) {\n        model.setData('variants', this?.dirtyClone?._data?.variants || []);\n      }\n      model.filterEmptyVariants();\n      model.updateVariantChildrenList({\n        originalModel,\n        setInitialValue: false,\n        isNew: this.isNew,\n        productsVariantsNameSeparator: this.productsVariantsNameSeparator,\n        productsVariantsCodeSeparator: this.productsVariantsCodeSeparator\n      });\n      this.set('hasPressedDone', true);\n      this.set('isEditingVariants', false);\n      this.set('isDoneEditingVariants', true);\n      this.set('dirtyClone', null);\n    },\n    variantOptionsCanBeSaved: Ember.computed('model._data.variants.{[],@each.synced}', 'dirtyClone._data.variants.{[],@each.synced}', 'isEditing', function () {\n      let isAllowed = true;\n      let variantDataToCheck = this?.model?._data?.variants || [];\n      if (this.isEditing) {\n        variantDataToCheck = this?.dirtyClone?._data?.variants || [];\n      }\n      R.forEach(variant => {\n        const name = variant.getData('name');\n        if (RA.isNilOrEmpty(name)) {\n          const options = variant?._data?.options || [];\n          R.forEach(option => {\n            const optionName = option?._data?.name || '';\n            if (RA.isNotNilOrEmpty(optionName)) {\n              isAllowed = false;\n            }\n          })(options);\n        }\n      })(variantDataToCheck);\n      return isAllowed;\n    }),\n    actions: {\n      addVariant() {\n        const model = this.model;\n        if (this.isEditing && RA.isNotNilOrEmpty(this.dirtyClone)) {\n          this.dirtyClone.addVariant();\n        } else {\n          model.addVariant();\n        }\n      },\n      removeVariant(model, variant) {\n        const msg = this.intl.t('are you sure you want to remove');\n        if (window.confirm(msg)) {\n          model.removeVariant(variant);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateVariantChildrenList\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateVariantChildrenList\"), _obj), _applyDecoratedDescriptor(_obj, \"cancelVariantsDirty\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"cancelVariantsDirty\"), _obj), _applyDecoratedDescriptor(_obj, \"setupVariantsDirty\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"setupVariantsDirty\"), _obj), _applyDecoratedDescriptor(_obj, \"doneEditingVariants\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"doneEditingVariants\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/variants-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lQ2wwWuJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"childProduct\\\",\\\"childProduct\\\",\\\"childProduct\\\",\\\"product\\\",\\\"product\\\",\\\"childProduct\\\",\\\"variant\\\",\\\"index\\\",\\\"variant\\\",\\\"index\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isEditingVariants\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@onUpdateVariantChildrenList\\\",\\\"@originalModel\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"hasVariants\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,20,[]],[23,16,[]],[23,19,[]]]]],[23,16,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"variantOptions_group\\\",[23,1,[]],[23,16,[]],\\\"variant options\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"dirtyClone\\\"]],[23,0,[\\\"isEditing\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"dirtyClone\\\",\\\"_data\\\",\\\"variants\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\"],[\\\"variants\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"products/products-editor/variants-editor/variant-editor\\\",[],[[\\\"@tab\\\",\\\"@errors\\\",\\\"@errorIndex\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onRemoveVariant\\\",\\\"@originalModel\\\",\\\"@variant\\\",\\\"@variants\\\"],[[23,16,[]],[22,\\\"errors\\\"],[23,11,[]],[28,\\\"and\\\",[[23,12,[]],[23,14,[]]],null],[23,13,[]],[28,\\\"or\\\",[[23,0,[\\\"isReadonlyAndAvailable\\\"]],[28,\\\"not\\\",[[23,14,[]]],null]],null],[23,0,[\\\"dirtyClone\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"removeVariant\\\"],null],[23,18,[]],[23,10,[]],[23,0,[\\\"dirtyClone\\\",\\\"_data\\\",\\\"variants\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10,11]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,15,[\\\"_data\\\",\\\"variants\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\"],[\\\"variants\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"products/products-editor/variants-editor/variant-editor\\\",[],[[\\\"@tab\\\",\\\"@errors\\\",\\\"@errorIndex\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onRemoveVariant\\\",\\\"@originalModel\\\",\\\"@variant\\\",\\\"@variants\\\"],[[23,16,[]],[22,\\\"errors\\\"],[23,9,[]],[28,\\\"and\\\",[[23,12,[]],[23,14,[]]],null],[23,13,[]],[28,\\\"or\\\",[[23,0,[\\\"isReadonlyAndAvailable\\\"]],[28,\\\"not\\\",[[23,14,[]]],null]],null],[23,15,[]],[28,\\\"action\\\",[[23,0,[]],\\\"removeVariant\\\"],null],[23,18,[]],[23,8,[]],[23,15,[\\\"_data\\\",\\\"variants\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8,9]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"variants\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,14,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add new variant type\\\",[28,\\\"or\\\",[[23,0,[\\\"isReadonlyAndAvailable\\\"]],[28,\\\"not\\\",[[23,14,[]]],null]],null],[28,\\\"action\\\",[[23,0,[]],\\\"addVariant\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showCancelVariants\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@onSubmit\\\",\\\"@label\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"cancelVariantsDirty\\\"]]],null],\\\"cancel\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@onSubmit\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@icon\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"doneEditingVariants\\\"]],[23,15,[]]],null],[28,\\\"not\\\",[[23,0,[\\\"variantOptionsCanBeSaved\\\"]]],null],\\\"done\\\",false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@onSubmit\\\",\\\"@icon\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"setupVariantsDirty\\\"]],[23,15,[]]],null],\\\"fas fa-pen\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"products variants name separator\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@value\\\",\\\"@label\\\",\\\"@readonly\\\"],[[23,1,[]],\\\"productsVariantsNameSeparator\\\",[23,0,[\\\"productsVariantsNameSeparator\\\"]],\\\"products variants name separator\\\",[23,0,[\\\"isReadonlyAndAvailable\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"products variants code separator\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@value\\\",\\\"@label\\\",\\\"@readonly\\\"],[[23,1,[]],\\\"productsVariantsCodeSeparator\\\",[23,0,[\\\"productsVariantsCodeSeparator\\\"]],\\\"products variants code separator\\\",[23,0,[\\\"isReadonlyAndAvailable\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,12,[]],[23,13,[]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,15,[\\\"_data\\\",\\\"_createVariantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@contentClassNames\\\",\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"variantChildren_group\\\",\\\"form-group__content-container--u-full-width\\\",[23,1,[]],false,[23,16,[]],\\\"variant children\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@tab\\\",\\\"@isHeaders\\\",\\\"@onUpdateVariantChildrenList\\\",\\\"@productsVariantsNameSeparator\\\",\\\"@productsVariantsCodeSeparator\\\",\\\"@isReadonly\\\",\\\"@isNew\\\",\\\"@isNewOrEditing\\\",\\\"@model\\\"],[[23,16,[]],true,[23,0,[\\\"updateVariantChildrenList\\\"]],[23,0,[\\\"productsVariantsNameSeparator\\\"]],[23,0,[\\\"productsVariantsCodeSeparator\\\"]],[28,\\\"or\\\",[[23,0,[\\\"isReadonlyAndAvailable\\\"]],[23,14,[]]],null],[23,13,[]],[28,\\\"or\\\",[[23,12,[]],[23,13,[]]],null],[23,15,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,15,[\\\"_data\\\",\\\"_createVariantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@tab\\\",\\\"@childProduct\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@isSetChild\\\",\\\"@onUpdateVariantChildrenList\\\",\\\"@productsVariantsNameSeparator\\\",\\\"@productsVariantsCodeSeparator\\\",\\\"@model\\\",\\\"@isNewOrEditing\\\",\\\"@productToBeLinked\\\"],[[23,16,[]],[23,7,[]],[23,12,[]],[23,13,[]],[28,\\\"or\\\",[[23,0,[\\\"isReadonlyAndAvailable\\\"]],[23,14,[]]],null],false,[23,17,[]],[23,0,[\\\"productsVariantsNameSeparator\\\"]],[23,0,[\\\"productsVariantsCodeSeparator\\\"]],[23,15,[]],true,[23,0,[\\\"productToBeLinked\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,15,[\\\"_data\\\",\\\"productsToBeUnlinked\\\"]],[23,0,[\\\"productToBeLinked\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@contentClassNames\\\",\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"variantChildrenChangesSummary_group\\\",\\\"form-group__content-container--u-full-width\\\",[23,1,[]],true,[23,16,[]],\\\"changes summary\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"products\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,15,[\\\"_data\\\",\\\"productsToBeUnlinked\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"products to be converted to normal product\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,15,[\\\"_data\\\",\\\"productsToBeUnlinked\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@inputPvtClassNames\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@readonly\\\",\\\"@disabled\\\"],[true,\\\"table-form__input\\\",false,[22,\\\"filteredProductsList\\\"],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,6,[\\\"_data\\\",\\\"name\\\"]],\\\"_data._key\\\",[23,6,[\\\"_data\\\",\\\"_key\\\"]],\\\"fas fa-bookmark\\\",true,true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"productToBeLinked\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"products to be converted to variant child product\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"productToBeLinked\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@inputPvtClassNames\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@readonly\\\",\\\"@disabled\\\"],[true,\\\"table-form__input\\\",false,[22,\\\"filteredProductsList\\\"],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,5,[\\\"_data\\\",\\\"name\\\"]],\\\"_data._key\\\",[23,5,[\\\"_data\\\",\\\"_key\\\"]],\\\"fas fa-bookmark\\\",true,true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,15,[\\\"_data\\\",\\\"variantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@contentClassNames\\\",\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"variantChildren_group\\\",\\\"form-group__content-container--u-full-width\\\",[23,1,[]],true,[23,16,[]],\\\"variant children\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@tab\\\",\\\"@isHeaders\\\",\\\"@onUpdateVariantChildrenList\\\",\\\"@productsVariantsNameSeparator\\\",\\\"@productsVariantsCodeSeparator\\\",\\\"@isReadonly\\\",\\\"@isNew\\\",\\\"@isNewOrEditing\\\",\\\"@model\\\"],[[23,16,[]],true,[23,0,[\\\"updateVariantChildrenList\\\"]],[23,0,[\\\"productsVariantsNameSeparator\\\"]],[23,0,[\\\"productsVariantsCodeSeparator\\\"]],[23,0,[\\\"isReadonlyAndAvailable\\\"]],[23,13,[]],[28,\\\"or\\\",[[23,12,[]],[23,13,[]]],null],[23,15,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"activeVariantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@tab\\\",\\\"@childProduct\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@isSetChild\\\",\\\"@onUpdateVariantChildrenList\\\",\\\"@productsVariantsNameSeparator\\\",\\\"@productsVariantsCodeSeparator\\\",\\\"@isNewOrEditing\\\"],[[23,16,[]],[23,4,[]],[23,12,[]],[23,13,[]],[23,0,[\\\"isReadonlyAndAvailable\\\"]],false,[23,17,[]],[23,0,[\\\"productsVariantsNameSeparator\\\"]],[23,0,[\\\"productsVariantsCodeSeparator\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"inactiveVariantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@contentClassNames\\\",\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"variantChildrenInactive_group\\\",\\\"form-group__content-container--u-full-width\\\",[23,1,[]],true,[23,16,[]],\\\"inactive variant children\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@isHeaders\\\",\\\"@onUpdateVariantChildrenList\\\",\\\"@productsVariantsNameSeparator\\\",\\\"@productsVariantsCodeSeparator\\\",\\\"@isReadonly\\\",\\\"@isNew\\\",\\\"@isNewOrEditing\\\"],[true,[23,0,[\\\"updateVariantChildrenList\\\"]],[23,0,[\\\"productsVariantsNameSeparator\\\"]],[23,0,[\\\"productsVariantsCodeSeparator\\\"]],true,false,false]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"inactiveVariantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@childProduct\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@isSetChild\\\",\\\"@onUpdateVariantChildrenList\\\",\\\"@productsVariantsNameSeparator\\\",\\\"@productsVariantsCodeSeparator\\\",\\\"@isNewOrEditing\\\",\\\"@hideIndex\\\"],[[23,3,[]],false,false,true,false,[23,17,[]],[23,0,[\\\"productsVariantsNameSeparator\\\"]],[23,0,[\\\"productsVariantsCodeSeparator\\\"]],false,true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"permanentlyUnavailableVariantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@contentClassNames\\\",\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"variantChildrenPermanantlyUnavailable_group\\\",\\\"form-group__content-container--u-full-width\\\",[23,1,[]],true,[23,16,[]],\\\"permanently unavailable variant children\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@isHeaders\\\",\\\"@productsVariantsNameSeparator\\\",\\\"@productsVariantsCodeSeparator\\\",\\\"@isReadonly\\\",\\\"@isNew\\\",\\\"@isNewOrEditing\\\"],[true,[23,0,[\\\"productsVariantsNameSeparator\\\"]],[23,0,[\\\"productsVariantsCodeSeparator\\\"]],true,false,false]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"permanentlyUnavailableVariantChildren\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"products/products-editor/variants-editor/child-editor\\\",[],[[\\\"@childProduct\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@isSetChild\\\",\\\"@productsVariantsNameSeparator\\\",\\\"@productsVariantsCodeSeparator\\\",\\\"@model\\\",\\\"@isNewOrEditing\\\",\\\"@productToBeLinked\\\"],[[23,2,[]],[23,12,[]],[23,13,[]],[28,\\\"or\\\",[[23,0,[\\\"isReadonlyAndAvailable\\\"]],[23,14,[]]],null],false,[23,0,[\\\"productsVariantsNameSeparator\\\"]],[23,0,[\\\"productsVariantsCodeSeparator\\\"]],[23,15,[]],true,[23,0,[\\\"productToBeLinked\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/variants-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/variants-editor/variant-editor/component\", [\"exports\", \"client/mixins/errors\", \"client/mixins/sortable-actions\"], function (_exports, _errors, _sortableActions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_errors.default, _sortableActions.default, (_dec = Ember._action, _obj = {\n    productsService: Ember.inject.service('products'),\n    tagName: '',\n    modelProp: 'variant',\n    indexProp: '_data.index',\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.isEditing || this.isNew) {\n        const model = this.model;\n        const variant = this.variant;\n        model.addVariantOption(variant);\n      }\n    },\n    reorderAndUpdateVariantChildrenList(option) {\n      const variantModel = this.getModel();\n      const dragItem = this.dragDetail;\n      if (!variantModel || !option || !dragItem) {\n        return;\n      }\n      variantModel.reorderDetails(option, dragItem);\n    },\n    actions: {\n      addVariantOption(model, variant, option) {\n        model.addVariantOption(variant, option);\n      },\n      removeVariantOption(model, variant, option) {\n        const msg = this.intl.t('are you sure you want to delete variant option');\n        const confirm = window.confirm(msg);\n        if (confirm) {\n          model.removeVariantOption(variant, option);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"reorderAndUpdateVariantChildrenList\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"reorderAndUpdateVariantChildrenList\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/variants-editor/variant-editor/options-editor/component\", [\"exports\", \"client/mixins/errors\", \"client/mixins/droppable\", \"ramda\", \"ramda-adjunct\"], function (_exports, _errors, _droppable, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_droppable.default, _errors.default, {\n    productsService: Ember.inject.service('products'),\n    tagName: 'tr',\n    originalOptionName: '',\n    init() {\n      this._super(...arguments);\n      this.set('originalOptionName', this?.option?._data?.name || '');\n    },\n    droppable: Ember.computed('options.[]', 'index', function () {\n      const index = parseInt(this.index) + 1;\n      const options = this.options || [];\n      if (index >= options.length) {\n        return false;\n      }\n      return true;\n    }),\n    draggable: Ember.computed('droppable', 'isReadonly', function () {\n      if (!this.isReadonly) {\n        return this.droppable;\n      }\n      return false;\n    }),\n    isVariantOptionReadonly: Ember.computed('isReadonly', 'option.{noInitialOptionUid,_data.name}', function () {\n      let isVariantOptionReadonly = false;\n      const option = this.option;\n      if (this.isEditing && option.get('noInitialOptionUid') && option.get('_data.name')) {\n        isVariantOptionReadonly = true;\n      }\n      if (!isVariantOptionReadonly) {\n        isVariantOptionReadonly = this.isReadonly;\n      }\n      return isVariantOptionReadonly;\n    }),\n    filesManagerResourceKeys: Ember.computed('model._data.variantChildren.{[],@each.synced}', 'option._data.optionUid', function () {\n      let resourceKeys = [];\n      const variantChildren = R.pathOr([], ['model', '_data', 'variantChildren'])(this);\n      const optionUid = R.pathOr('', ['option', '_data', 'optionUid'])(this);\n      if (RA.isNotNilOrEmpty(variantChildren)) {\n        resourceKeys = R.pipe(\n        // shouldn't add images to permanentlyUnavailable variantChildren?\n        R.reject(R.pathEq(['_data', 'permanentlyUnavailable'], true)), R.map(variantChild => {\n          const variantChildUid = R.pathOr('', ['_data', 'variantChildUid'])(variantChild);\n          if (R.includes(optionUid, variantChildUid)) {\n            const variantChildKey = variantChild?._data?._key || '';\n            return variantChildKey;\n          }\n          return '';\n        }), R.reject(RA.isNilOrEmpty))(variantChildren);\n      }\n      return resourceKeys;\n    })\n  });\n});","define(\"client/pods/components/products/products-editor/variants-editor/variant-editor/options-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lLZ9LBIt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@option\\\",\\\"@variant\\\",\\\"@variants\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"and\\\",[[24,[\\\"isReadonly\\\"]],[28,\\\"eq\\\",[[24,[\\\"option\\\",\\\"_data\\\",\\\"name\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-top-important\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"index\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"placeholder\\\",\\\"readonly\\\",\\\"inputPvtClassNames\\\",\\\"value\\\",\\\"onInput\\\",\\\"onFocusOut\\\",\\\"context\\\"],[\\\"variant_example\\\",[24,[\\\"isReadonly\\\"]],\\\"table-form__input\\\",[24,[\\\"variant\\\",\\\"_data\\\",\\\"name\\\"]],[28,\\\"fn\\\",[[24,[\\\"variant\\\",\\\"updateSynced\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"productsService\\\",\\\"checkForDisallowedValues\\\"]],[28,\\\"hash\\\",null,[[\\\"modelToCheck\\\",\\\"models\\\",\\\"prop\\\"],[[23,3,[]],[23,4,[]],\\\"name\\\"]]]],null],\\\"variants.name\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__padding\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"helpers/drag-container\\\",null,[[\\\"draggable\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"data\\\"],[[24,[\\\"draggable\\\"]],[24,[\\\"onDragStart\\\"]],[24,[\\\"onDragEnd\\\"]],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[24,[\\\"option\\\",\\\"_data\\\",\\\"index\\\"]]]]]]]],false],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"option\\\",\\\"_data\\\",\\\"index\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputPvtClassNames\\\",\\\"placeholder\\\",\\\"onInput\\\",\\\"readonly\\\",\\\"onFocusOut\\\",\\\"value\\\",\\\"context\\\"],[\\\"table-form__input\\\",\\\"variant_options_example\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onAddVariantOption\\\"]],[24,[\\\"model\\\"]],[24,[\\\"variant\\\"]],[24,[\\\"option\\\"]]],null],[24,[\\\"isVariantOptionReadonly\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"productsService\\\",\\\"checkForDisallowedValues\\\"]],[28,\\\"hash\\\",null,[[\\\"modelToCheck\\\",\\\"models\\\",\\\"prop\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"options\\\"]],\\\"name\\\"]]]],null],[24,[\\\"option\\\",\\\"_data\\\",\\\"name\\\"]],\\\"variants.options.name\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputPvtClassNames\\\",\\\"translatedPlaceholder\\\",\\\"onInput\\\",\\\"readonly\\\",\\\"onFocusOut\\\",\\\"value\\\",\\\"context\\\"],[\\\"table-form__input\\\",[24,[\\\"option\\\",\\\"_data\\\",\\\"name\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onAddVariantOption\\\"]],[24,[\\\"model\\\"]],[24,[\\\"variant\\\"]],[24,[\\\"option\\\"]]],null],[24,[\\\"isReadonly\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"productsService\\\",\\\"checkForDisallowedValues\\\"]],[28,\\\"hash\\\",null,[[\\\"modelToCheck\\\",\\\"models\\\",\\\"prop\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"options\\\"]],\\\"code\\\"]]]],null],[23,2,[\\\"_data\\\",\\\"code\\\"]],\\\"variants.options.code\\\"]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"context\\\"],[true,true,[24,[\\\"option\\\",\\\"statusClass\\\"]],true,[24,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"option\\\",\\\"_data\\\",\\\"status\\\"]],\\\"variants.options.status\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@setImagesToMultipleResourceKey\\\",\\\"@resourceKeys\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,1,[]],\\\"auto\\\",40,true,true,true,[23,0,[\\\"model\\\"]],\\\"products\\\",true,[23,0,[\\\"filesManagerResourceKeys\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"disabled\\\",\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"onSubmit\\\"],[[24,[\\\"isReadonly\\\"]],\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onRemoveVariantOption\\\"]],[24,[\\\"model\\\"]],[24,[\\\"variant\\\"]],[24,[\\\"option\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"originalOptionName\\\"]],[28,\\\"not-eq\\\",[[24,[\\\"originalOptionName\\\"]],[28,\\\"ramda\\\",[\\\"trim\\\",[24,[\\\"option\\\",\\\"_data\\\",\\\"name\\\"]]],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"variantOptionsNameChanges\\\"],[[\\\"originalOptionName\\\",\\\"newOptionName\\\"],[[23,0,[\\\"originalOptionName\\\"]],[24,[\\\"option\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/variants-editor/variant-editor/options-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/variants-editor/variant-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gq7sk4zP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\",\\\"index\\\",\\\"@variant\\\",\\\"@model\\\",\\\"@onRemoveVariant\\\",\\\"@isReadonly\\\",\\\"@isNew\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"variant type\\\"],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"variant options\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"variant code\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n  \\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,8,[]],[23,7,[]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"disabled\\\",\\\"icon\\\",\\\"onSubmit\\\"],[\\\"is-pulled-right\\\",[23,6,[]],\\\"fas fa-trash\\\",[28,\\\"action\\\",[[23,0,[]],[23,5,[]],[23,4,[]],[23,3,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"variant\\\",\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[1,[28,\\\"products/products-editor/variants-editor/variant-editor/options-editor\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"index\\\",\\\"options\\\",\\\"errorIndex\\\",\\\"errors\\\",\\\"model\\\",\\\"variant\\\",\\\"variants\\\",\\\"option\\\",\\\"dropPosition\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"onDragOver\\\",\\\"onDrop\\\",\\\"onAddVariantOption\\\",\\\"onRemoveVariantOption\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"isReadonly\\\"]],[23,2,[]],[24,[\\\"variant\\\",\\\"_data\\\",\\\"options\\\"]],[23,2,[]],[24,[\\\"errors\\\"]],[24,[\\\"model\\\"]],[24,[\\\"variant\\\"]],[24,[\\\"variants\\\"]],[23,1,[]],[24,[\\\"dropPosition\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dragStartItem\\\",[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragEndItem\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dragOverItem\\\",[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"reorderAndUpdateVariantChildrenList\\\"]],[23,1,[]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"addVariantOption\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeVariantOption\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/variants-editor/variant-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-editor/virtual-contents-editor/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    tabsManager: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    selectedTemplateIndex: null,\n    selectedTemplateModel: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/attachmentsTypes', 'videoSources']);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const model = this.model;\n      if (!model) {\n        return false;\n      }\n      const templateModel = model.getData('templates').get('firstObject');\n      templateModel.instanceId = model?.instanceId;\n      this.selectTemplate(templateModel);\n      Ember.set(this, 'showAdditionalDescription', model?._data?.additionalDescription ? true : false);\n    },\n    updateContent(template) {\n      this.model.setData('template', template);\n    },\n    newTemplate(model) {\n      const templates = model?._data?.templates || [];\n      if (templates.length > 4) {\n        return;\n      }\n      const templateModel = model.addNewTemplate();\n      this.selectTemplate(templateModel);\n    },\n    selectTemplate(templateModel = false) {\n      const templates = this.model?._data?.templates || [];\n      let index = templates?.indexOf(templateModel) || 0;\n      if (index < 0) {\n        index = 0;\n      }\n      this.set('selectedTemplateIndex', index);\n      this.set('selectedTemplateModel', templateModel);\n    },\n    clearAdditionalDescription(model) {\n      model.setData('additionalDescription', '');\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateContent\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateContent\"), _obj), _applyDecoratedDescriptor(_obj, \"newTemplate\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"newTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"selectTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"selectTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"clearAdditionalDescription\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"clearAdditionalDescription\"), _obj), _obj));\n});","define(\"client/pods/components/products/products-editor/virtual-contents-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mu7Rv7cf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"attachment\\\",\\\"index\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"virtual\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"products\\\",[23,8,[]],[23,5,[]],[23,7,[]]]]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"descriptions_group\\\",[23,1,[]],[23,5,[]],\\\"virtual_content\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\",\\\"@translateDescription\\\",\\\"@descriptionClassNames\\\"],[\\\"virtualContent\\\",\\\"text_content\\\",[23,1,[]],false,\\\"has-text-info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@hasFileBrowser\\\",\\\"@resource\\\"],[[23,6,[\\\"_data\\\",\\\"virtualContent\\\"]],[23,4,[]],[23,5,[]],true,\\\"files\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"description_attachments_group\\\",[23,1,[]],[23,5,[]],\\\"virtual content attachments\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"virtualContentAttachments\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"description_attachments_sub-group\\\",[23,1,[]],[23,5,[]],[23,2,[\\\"_data\\\",\\\"type\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"virtualContentAttachments.type\\\",\\\"type\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-attachmentsTypes\\\"]],[23,2,[]],\\\"_data.type\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"video\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"virtualContentAttachments.source\\\",\\\"video_source\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"videoSources\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,4,[]],true,[23,2,[\\\"_data\\\",\\\"source\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"virtualContentAttachments.url\\\",\\\"url\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@translatedPlaceholder\\\",\\\"@tab\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"url\\\"]],[23,2,[]],\\\"https://...\\\",[23,5,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"link\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"virtualContentAttachments.label\\\",\\\"button label\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"label\\\"]],[28,\\\"tt\\\",[\\\"open link\\\"],null],[23,2,[]],[23,5,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-end\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayRemove\\\"]],[23,6,[]],\\\"_data.virtualContentAttachments\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,4,[]],[28,\\\"isLast\\\",[[23,6,[\\\"_data\\\",\\\"virtualContentAttachments\\\"]],[23,3,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,6,[]],\\\"_data.virtualContentAttachments\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,4,[]],[28,\\\"eq\\\",[[23,3,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,6,[]],\\\"_data.virtualContentAttachments\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add attachment\\\",[23,4,[]],[23,6,[\\\"addVirtualContentsAttachment\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"virtualContentAttachments\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-editor/virtual-contents-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-picker/bulk-insert-helper/bulk-insert-helper-details/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, R_) {\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, _dec0, _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 ProductsProductsPickerBulkInsertHelperComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('application'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _class = class ProductsProductsPickerBulkInsertHelperComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n      _initializerDefineProperty(this, \"originalSearchResults\", _descriptor6, this);\n      _initializerDefineProperty(this, \"query\", _descriptor7, this);\n      _initializerDefineProperty(this, \"originalQuery\", _descriptor8, this);\n      const query = this.args?.resultData?.code;\n      this.query = query;\n      const originalQuery = this.args?.resultData?.query;\n      this.originalQuery = this.args?.resultData?.query;\n      this.filters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          appendPath: `campaigns/${this.args?.campaignKey}`,\n          count: 20,\n          page: 1,\n          campaignKey: this.args?.campaignKey,\n          query\n        }\n      });\n      this.listBtnFilters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          appendPath: `campaigns/${this.args?.campaignKey}`,\n          count: 20,\n          page: 1,\n          campaignKey: this.args?.campaignKey,\n          query: originalQuery\n        }\n      });\n    }\n    insertProduct(product) {\n      const resultData = this.args?.resultData ?? {};\n      if (!resultData) {\n        return;\n      }\n      const alreadyAdded = R.pipe(R_.dotPathOr('', '_data.campaignDetail.campaignDetailKey'), RA.isNotNilOrEmpty)(product);\n      Ember.set(resultData, 'alreadyAdded', alreadyAdded);\n      Ember.set(resultData, 'product', product);\n      Ember.set(resultData, 'name', product?._data?.name ?? '');\n      Ember.set(resultData, 'code', product?._data?.code ?? '');\n      Ember.set(resultData, '_key', product?._data?._key ?? '');\n      // set(resultData, 'query', this?.filters?._data?.query)\n      this.query = resultData.code;\n    }\n    resetResultData() {\n      const resultData = this?.args?.resultData || {};\n      if (!resultData) {\n        return;\n      }\n      Ember.set(resultData, 'alreadyAdded', false);\n      Ember.set(resultData, 'product', null);\n      Ember.set(resultData, 'name', '');\n      Ember.set(resultData, 'code', '');\n      Ember.set(resultData, '_key', '');\n      Ember.set(resultData, 'query', '');\n      const filters = this?.filters ?? {};\n      filters.set('results', []);\n    }\n    *searchSimilarRecordsTask() {\n      // const query = this.query ?? this.originalQuery --> re-enable if want to update the query based on last search\n      // currently always use the original query\n      const query = this.originalQuery;\n      const listBtnFilters = this.listBtnFilters ?? {};\n      listBtnFilters.setData('query', query);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: 'products',\n        filters: this.listBtnFilters\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"originalSearchResults\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"query\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"originalQuery\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"insertProduct\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"insertProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetResultData\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"resetResultData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchSimilarRecordsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchSimilarRecordsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/products-picker/bulk-insert-helper/bulk-insert-helper-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DlYpkNXa\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@resultData\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[false,\\\"fas fa-pen\\\",[28,\\\"perform\\\",[[23,0,[\\\"searchSimilarRecordsTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@isRunning\\\",\\\"@query\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@hasPagination\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"listBtnFilters\\\",\\\"_data\\\",\\\"query\\\"]],false,[23,0,[\\\"listBtnFilters\\\",\\\"results\\\"]],false,\\\"_data._key\\\",\\\"_data.name\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"insertProduct\\\"]]],null],[23,1,[]]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@placeholder\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelectedIcon\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@isRunning\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@onSearch\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"table-form__input table-form__input--120\\\",\\\"search products\\\",\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.code\\\",\\\"_data._key\\\",\\\"fas fa-bookmark\\\",false,[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"query\\\"]],[23,2,[\\\"_key\\\"]],[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"filters\\\"]],true,[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"products\\\",[23,0,[\\\"filters\\\"]]]]],[23,0,[\\\"query\\\"]]],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"insertProduct\\\"]]],null],[23,0,[\\\"resetResultData\\\"]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-left \\\",[28,\\\"if\\\",[[23,2,[\\\"alreadyAdded\\\"]],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[1,[23,2,[\\\"name\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-left \\\",[28,\\\"if\\\",[[23,2,[\\\"alreadyAdded\\\"]],\\\"u-desc u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[1,[23,2,[\\\"code\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"is-empty\\\",[[23,2,[\\\"_key\\\"]]],null],[23,2,[\\\"alreadyAdded\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[\\\"fas fa-times-circle\\\",\\\"has-text-danger\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"alreadyAdded\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"already added\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[23,2,[\\\"_key\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"not found\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\"],[\\\"fas fa-check-circle\\\",\\\"has-text-success\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-picker/bulk-insert-helper/bulk-insert-helper-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-picker/bulk-insert-helper/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA, R_) {\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, _dec0, _dec1, _dec10, _dec11, _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 ProductsProductsPickerBulkInsertHelperComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('application'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember.computed('resultData.@each.product'), _dec11 = Ember.computed('resultsData.@each._key', 'campaignDetailKeys'), _class = class ProductsProductsPickerBulkInsertHelperComponent extends _component.default {\n    // to show in the listsResults\n\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"bulkInsertType\", _descriptor4, this);\n      _initializerDefineProperty(this, \"bulkInsertInstructions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor6, this);\n      _initializerDefineProperty(this, \"resultsData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isInstructionsStage\", _descriptor8, this);\n      _initializerDefineProperty(this, \"tempResults\", _descriptor9, this);\n      this.isInstructionsStage = true;\n      this.crud.addLists(this, ['products/lists/bulk-insert-types']);\n      this.bulkInsertInstructions = {\n        instructions: '',\n        fields: ['item']\n      };\n      this.filters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'tempResults',\n          appendPath: `campaigns/${this.args?.campaignKey}`,\n          count: 20,\n          page: 1,\n          campaignKey: this.args?.campaignKey\n        }\n      });\n    }\n    *bulkInsertProductsTask(bulkInsertInstructions = {}) {\n      try {\n        const queries = R.pipe(R.propOr('', 'instructions'), R.split(/\\n/), R.trim, R.reject(RA.isNilOrEmpty))(bulkInsertInstructions);\n\n        // search product, then add to detail\n        const q = R.map(query => {\n          return this.searchProductsTask.perform({\n            query\n          });\n        })(queries);\n        const searchResults = yield (0, _emberConcurrency.all)(q);\n        R.pipe(R.forEach(searchResult => {\n          // should be already safe, always has value\n          const query = searchResult.query;\n          const results = searchResult.results;\n          let matchingResult = R.find(R.pathEq(['_data', 'code'], query))(results);\n          if (!matchingResult) {\n            matchingResult = R.find(R.pathEq(['_data', 'name'], query))(results);\n          }\n          if (!matchingResult) {\n            matchingResult = R.path([0])(results);\n          }\n\n          // avoid using the results array directly?\n          // will probably causes some issue when updating the whole model when changing product using listBtn\n          // so will use resultsData on the template instead\n          const resultData = {\n            name: matchingResult?._data?.name ?? '',\n            code: matchingResult?._data?.code ?? '',\n            _key: matchingResult?._data?._key ?? '',\n            alreadyAdded: R.pipe(R_.dotPathOr('', '_data.campaignDetail.campaignDetailKey'), RA.isNotNilOrEmpty)(matchingResult),\n            product: matchingResult,\n            query\n          };\n          this.resultsData = R.append(resultData, this.resultsData);\n        }))(searchResults);\n        this.isInstructionsStage = false;\n      } catch (e) {\n        console.error(e);\n      }\n    }\n    *searchProductsTask({\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        try {\n          const filters = this.filters;\n          const results = yield this.crud.searchRecordsTask.perform({\n            adapterName: 'products',\n            filters,\n            query,\n            component: this,\n            resultsProperty: 'tempResults',\n            // avoid using same filter?\n            newFilters: true,\n            newFiltersDefaultData: {\n              resultsProperty: 'tempResults',\n              appendPath: `campaigns/${this.args?.campaignKey}`,\n              count: 20,\n              page: 1,\n              campaignKey: this.args?.campaignKey\n            }\n          });\n          return {\n            results,\n            query\n          };\n        } catch (e) {\n          console.error(e);\n        }\n      }\n    }\n    reInsertProduct(onCloseDialogAction, query, product) {\n      const resultsData = this.resultsData;\n      const resultData = R.find(R.propEq('query', query))(resultsData);\n      const alreadyAdded = R.pipe(R_.dotPathOr('', '_data.campaignDetail.campaignDetailKey'), RA.isNotNilOrEmpty)(product);\n      Ember.set(resultData, 'name', product?._data?.name ?? '');\n      Ember.set(resultData, 'code', product?._data?.code ?? '');\n      Ember.set(resultData, '_key', product?._data?._key ?? '');\n      Ember.set(resultData, 'product', product);\n      Ember.set(resultData, 'alreadyAdded', alreadyAdded);\n      Ember.set(resultData, 'query', query);\n      onCloseDialogAction();\n    }\n    *setResultsAsDirtyAndAddProductTask({\n      closeDialog = true,\n      onClose\n    }) {\n      let resultsData = this.resultsData ?? [];\n      if (RA.isNilOrEmpty(resultsData)) {\n        return;\n      }\n      const q = R.pipe(R.pluck('product'), R.reject(RA.isNilOrEmpty), R.map(product => {\n        // not sure if needed?\n        const itemKey = product?._data?._key;\n        if (itemKey) {\n          const dirty = this.crud.setupDirty({\n            adapterName: 'products',\n            model: product\n          });\n          const alreadyAdded = R_.dotPath('_data.campaignDetail.campaignDetailKey')(product);\n          if (alreadyAdded) {\n            return null;\n          }\n          dirty.set('isSelected', false);\n          dirty.set('itemKey', itemKey);\n          return dirty;\n        }\n        return null;\n      }), R.reject(RA.isNilOrEmpty), R.map(product => {\n        return this.args?.onAddProductTask.perform(product, true);\n      }))(resultsData);\n      const createdCampaignDetails = yield (0, _emberConcurrency.all)(q);\n      if (closeDialog) {\n        this.resetModal();\n      }\n      if (onClose) {\n        onClose();\n      }\n      return createdCampaignDetails;\n    }\n    resetModal() {\n      this.filters?.setData('query', '');\n      this.bulkInsertType = 'add';\n      this.bulkInsertInstructions = {\n        instructions: '',\n        fields: ['item']\n      };\n      this.resultsData = [];\n      this.results = [];\n      this.isInstructionsStage = true;\n    }\n    get campaignDetailKeys() {\n      const resultsData = this?.resultsData ?? {};\n      return R.map(resultData => {\n        return resultData?.product?._data?.campaignDetail?.campaignDetailKey ?? '';\n      })(resultsData);\n    }\n    get setPriceNowBadge() {\n      const resultsData = this?.resultsData ?? {};\n      return R.pipe(R.filter(resultData => {\n        const alreadyAdded = resultData?.product?._data?.campaignDetail?.campaignDetailKey ?? '';\n        if (alreadyAdded) {\n          return false;\n        }\n        const resultDataKey = resultData?._key ?? '';\n        if (!resultDataKey) {\n          return false;\n        }\n        return true;\n      }), R.length)(resultsData);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"bulkInsertType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'add';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"bulkInsertInstructions\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"resultsData\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isInstructionsStage\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"tempResults\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"bulkInsertProductsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"bulkInsertProductsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchProductsTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchProductsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reInsertProduct\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"reInsertProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setResultsAsDirtyAndAddProductTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setResultsAsDirtyAndAddProductTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetModal\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"resetModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"campaignDetailKeys\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"campaignDetailKeys\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPriceNowBadge\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"setPriceNowBadge\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/products-picker/bulk-insert-helper/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/luSHYNz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"resultData\\\",\\\"index\\\",\\\"formInitData\\\",\\\"@onClose\\\",\\\"@onDoneExport\\\",\\\"@campaignModel\\\",\\\"@campaignKey\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@outerFormInitData\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@closeOnOverlayClick\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@onClose\\\"],[true,\\\"fa-regular fa-rectangle-list\\\",\\\"bulk insert products\\\",[23,0,[\\\"resetModal\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isInstructionsStage\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,7,[\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"campaignsDetailsBulkInsertHelper\\\",false,true,[28,\\\"if\\\",[[23,12,[]],[23,12,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",false,[23,11,[]],[23,10,[]],[23,9,[]]]]]],null],[23,11,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"bulkInsertInstructions_group\\\",[23,4,[]],\\\"bulk insert products\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"bulkInsertInstructions\\\",[23,4,[]],\\\"bulk insert products into campaign\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@autofocus\\\",\\\"@value\\\",\\\"@rows\\\"],[true,[23,0,[\\\"bulkInsertInstructions\\\",\\\"instructions\\\"]],10]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"concat\\\",[\\\"[\\\",[28,\\\"tt\\\",[\\\"product\\\"],null],\\\" / \\\",[28,\\\"tt\\\",[\\\"product code\\\"],null],\\\"]\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-width-px-40\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"product code\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"resultsData\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"products/products-picker/bulk-insert-helper/bulk-insert-helper-details\\\",[],[[\\\"@resultData\\\",\\\"@campaignKey\\\",\\\"@onCloseDialogAction\\\"],[[23,2,[]],[23,8,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"setResultsAsDirtyAndAddProductTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"bulkInsertProductsTask\\\",\\\"isRunning\\\"]]],null],[23,1,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isInstructionsStage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"next\\\",[23,0,[\\\"bulkInsertProductsTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"bulkInsertProductsTask\\\"]],[23,0,[\\\"bulkInsertInstructions\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"set prices later\\\",\\\"set prices later\\\",[28,\\\"perform\\\",[[23,0,[\\\"setResultsAsDirtyAndAddProductTask\\\"]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@badge\\\",\\\"@hasBadge\\\"],[\\\"set prices now\\\",\\\"set prices now\\\",\\\"fas fa-arrow-circle-right\\\",[23,0,[\\\"setResultsAsDirtyAndAddProductTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setResultsAsDirtyAndAddProductTask\\\"]],[28,\\\"hash\\\",null,[[\\\"onClose\\\"],[[23,5,[]]]]]],null],[23,0,[\\\"setPriceNowBadge\\\"]],[28,\\\"gt\\\",[[23,0,[\\\"setPriceNowBadge\\\"]],0],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"channels/shop/items-export-btn\\\",[],[[\\\"@onPreFetchDataTask\\\",\\\"@onClose\\\",\\\"@model\\\",\\\"@label\\\",\\\"@btnClassNames\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"setResultsAsDirtyAndAddProductTask\\\"]],[28,\\\"hash\\\",null,[[\\\"closeDialog\\\"],[false]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[23,1,[]],[23,6,[]]]]]],null],[23,7,[]],\\\"export products to set prices\\\",\\\"btn-save is-primary\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-picker/bulk-insert-helper/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-picker/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, R_, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ProductsProductsPickerComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._action, _dec17 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 1\n  }), _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _class = class ProductsProductsPickerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"campaignsProducts\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor7, this);\n      _initializerDefineProperty(this, \"drafts\", _descriptor8, this);\n      _initializerDefineProperty(this, \"results\", _descriptor9, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor0, this);\n      _initializerDefineProperty(this, \"filtersForDrafts\", _descriptor1, this);\n      _initializerDefineProperty(this, \"step\", _descriptor10, this);\n      _initializerDefineProperty(this, \"productStep\", _descriptor11, this);\n      _initializerDefineProperty(this, \"currentDraftModel\", _descriptor12, this);\n      _initializerDefineProperty(this, \"tabCopy\", _descriptor13, this);\n      _initializerDefineProperty(this, \"draftBatchId\", _descriptor14, this);\n      _initializerDefineProperty(this, \"showPricelists\", _descriptor15, this);\n      _defineProperty(this, \"adapterName\", 'products');\n      _defineProperty(this, \"filtersAdapterName\", 'products/filters');\n      this.crud.addLists(this, ['products/lists/filters/search', 'products/lists/filters/sort', 'products/lists/filters/status', 'products/lists/tags', 'products/lists/types', 'filters/count', 'filters/sortDirection']);\n      this.filtersForDrafts = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        defaultFiltersData: {\n          resultsProperty: 'drafts',\n          count: 1,\n          page: 1,\n          status: this.constants.productsStatus.draft,\n          master: this.args?.campaign?._data?._key,\n          sort: [{\n            by: 'timestampZ_latest',\n            direction: 'ASC'\n          }]\n        }\n      });\n      this.filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          resultsProperty: 'results',\n          appendPath: `campaigns/${this.args?.campaign?._data?._key}`,\n          count: 20,\n          page: 1,\n          campaignKey: this.args?.campaign?._data?._key\n        }\n      });\n      this.customSearchTask.perform();\n      const tabCopy = this.tabsManager.copyTab({\n        tab: this.args.tab\n      });\n      this.tabCopy = tabCopy;\n    }\n    get isSetPricesNowBtnDisabled() {\n      const drafts = this.drafts || [];\n      return drafts.length === 0;\n    }\n    *customSearchTask() {\n      const adapterName = this.adapterName;\n      const filters = this.filters;\n      filters.setData('query', '');\n      yield this.crud.searchRecordsTask.perform({\n        adapterName,\n        filters,\n        component: this\n      });\n      this._setResultsAsDirty({\n        filters\n      });\n    }\n    *customReloadSearchRecordsTask({\n      filters,\n      reset = false\n    }) {\n      const adapterName = this.adapterName;\n      filters.setData('query', '');\n      yield this.crud.reloadSearchRecordsTask.perform({\n        adapterName,\n        filters,\n        component: this,\n        reset\n      });\n      this._setResultsAsDirty({\n        filters\n      });\n    }\n    *customSearchAdvancedTask() {\n      const adapterName = this.adapterName;\n      const filters = this.filters;\n      filters.setData('query', '');\n      yield this.crud.searchAdvancedTask.perform({\n        adapterName,\n        filters,\n        component: this\n      });\n      this._setResultsAsDirty({\n        filters\n      });\n    }\n    *customSearchInputTask() {\n      const adapterName = this.adapterName;\n      const filters = this.filters;\n      yield this.crud.searchInputTask.perform({\n        adapterName,\n        filters,\n        component: this,\n        allowEmptyQuery: true\n      });\n      this._setResultsAsDirty({\n        filters\n      });\n    }\n    *customPaginateTask({\n      filters\n    }) {\n      const adapterName = this.adapterName;\n      // filters.setData('query', '')\n      yield this.crud.paginateSearchRecordsTask.perform({\n        adapterName,\n        filters,\n        component: this\n      });\n      this._setResultsAsDirty({\n        filters\n      });\n    }\n    _setResultsAsDirty({\n      filters\n    }) {\n      let results = filters.get('results') || [];\n      results = R.pipe(R.map(product => {\n        const itemKey = product?._data?._key;\n        if (itemKey) {\n          const dirty = this.crud.setupDirty({\n            adapterName: 'products',\n            model: product\n          });\n          let isSelected = false;\n          const alreadyAdded = R_.dotPath('_data.campaignDetail.campaignDetailKey')(product);\n          let campaignDetail;\n          if (alreadyAdded) {\n            isSelected = true;\n            campaignDetail = this.dataManager.setPartialRecord({\n              adapterName: 'channels/shop/campaigns/details',\n              data: product?._data?.campaignDetail\n            });\n          }\n          dirty.set('isSelected', isSelected);\n          dirty.set('itemKey', itemKey);\n          // dirty.set('product', product)\n          dirty.set('campaignDetail', campaignDetail);\n          return dirty;\n        }\n        return null;\n      }), R.reject(RA.isNilOrEmpty))(results);\n      filters.set('results', results);\n    }\n    *loadDraftData() {\n      const adapterName = 'channels/shop/campaigns/details';\n      const filters = this.filtersForDrafts;\n      filters.setData('query', '');\n      filters.setData('draftBatchId', this.draftBatchId);\n      return yield this.crud.searchRecordsTask.perform({\n        adapterName,\n        filters,\n        component: this\n      });\n    }\n    *refreshProductsTask(onCloseDialogAction) {\n      onCloseDialogAction();\n      const filters = this.filters;\n      this.filters.setData('query', '');\n      yield this.customSearchTask.perform();\n    }\n    *addNewProductTask(product, toggleValue) {\n      return yield this.addProductTask.perform(product, toggleValue, {\n        isNew: true\n      });\n    }\n\n    // ensure that the concurrency is 1 so the index is created properly\n    // maybe should ignore wrong index and call the function to fix the index after? not sure\n    *addProductTask(product, toggleValue, {\n      isNew = false\n    } = {}) {\n      const campaign = this.args.campaign;\n      const itemKey = product?._data?._key;\n      const drafts = this.drafts || [];\n      if (toggleValue) {\n        if (!isNew) {\n          drafts.pushObject(itemKey);\n        }\n        // campaignsProducts\n        product.setData('draftBatchId', this.draftBatchId);\n        return yield this.campaignsProducts.addProductTask.perform({\n          campaign,\n          product\n        });\n      } else {\n        drafts.removeObject(itemKey);\n        return yield this.campaignsProducts.removeProductTask.perform({\n          campaign,\n          product\n        });\n      }\n    }\n\n    // get resultsProxy () {\n    //   const products = this.results || []\n    //   // const campaignDetails = this.args.campaignDetails || []\n    //   // const drafts = this.drafts || []\n    //   return R.pipe(\n    //     R.map(product => {\n    //       const itemKey = product?._data?._key\n    //       if (itemKey) {\n    //         let isSelected = false\n    //         const alreadyAdded = R_.dotPath('_data.campaignDetail.campaignDetailKey')(product)\n    //         if (alreadyAdded) {\n    //           isSelected = true\n    //         }\n    //         return EmberObject.create({\n    //           isSelected,\n    //           itemKey,\n    //           product,\n    //           campaignDetail: alreadyAdded\n    //         })\n    //       }\n    //     }),\n    //     R.reject(RA.isNilOrEmpty)\n    //   )(products)\n    // }\n\n    // @action\n    // onAfterSearch (results) {\n    //   const productsArray = this.productsArray || []\n    //   return R.map(model => {\n    //     const isInArray = R.pipe(\n    //       R.find(R.pathEq(['_data', 'itemKey'], model._data.itemKey)),\n    //       RA.isNilOrEmpty,\n    //       R.not\n    //     )(productsArray)\n\n    //     if (isInArray) {\n    //       model.set('isSelected', true)\n    //     } else {\n    //       model.set('isSelected', false)\n    //     }\n\n    //     return model\n    //   })(results)\n    // }\n\n    addAndLoadProduct(onCloseDialogAction, campaign, product) {\n      // onCloseDialogAction()\n      // this.customSearchTask.perform()\n      // @TODO: toggle the product on?\n    }\n    onCancel() {\n      this.args.onDone();\n    }\n    *nextStepTask(onCloseDialogAction) {\n      this.step = this.step + 1;\n      this.productStep = this.productStep + 1;\n      Ember.set(this, 'currentDraftModel', '');\n\n      // const drafts = this.drafts || []\n      const drafts = yield this.loadDraftData.perform();\n      const itemKeys = R.map(draft => draft._data.itemKey)(drafts);\n      this.drafts = itemKeys;\n      const currentDraftModel = R.path([0])(drafts);\n      if (currentDraftModel) {\n        // const dirty = this.crud.setupDirty({\n        //   adapterName: 'channels/shop/campaigns/details',\n        //   model: currentDraftModel,\n        //   resultsProperty: ''\n        // })\n        setTimeout(() => {\n          Ember.set(this, 'currentDraftModel', currentDraftModel);\n        }, 100);\n        Ember.set(this, 'showPricelists', true);\n        return currentDraftModel;\n      }\n      Ember.set(this, 'currentDraftModel', '');\n      return this.args.onDone();\n    }\n    nextProduct() {\n      this.productStep = this.productStep + 1;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"campaignsProducts\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"drafts\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"filtersForDrafts\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"step\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"productStep\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"currentDraftModel\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"tabCopy\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"draftBatchId\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return _nventor.default.random.alphaNum(8);\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"showPricelists\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"customSearchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"customSearchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"customReloadSearchRecordsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"customReloadSearchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"customSearchAdvancedTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"customSearchAdvancedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"customSearchInputTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"customSearchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"customPaginateTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"customPaginateTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setResultsAsDirty\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"_setResultsAsDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadDraftData\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadDraftData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshProductsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshProductsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewProductTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewProductTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addProductTask\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"addProductTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addAndLoadProduct\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"addAndLoadProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCancel\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"onCancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextStepTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"nextStepTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextProduct\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"nextProduct\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/products-picker/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GGj1x49j\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@campaign\\\",\\\"@onDone\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"placeholder\\\",\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[true,\\\"products\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,0,[\\\"customSearchInputTask\\\",\\\"isRunning\\\"]],true,[23,0,[\\\"customSearchInputTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@modalDialogTitle\\\"],[\\\"fas fa-plus\\\",\\\"create product and add to shop\\\",\\\"create product and add to shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"products/products-shop-wizard/editor\\\",[],[[\\\"@tab\\\",\\\"@isNew\\\",\\\"@name\\\",\\\"@isFromShop\\\",\\\"@mode\\\",\\\"@isAutomations\\\",\\\"@campaign\\\",\\\"@campaignDetailAdapterName\\\",\\\"@onDone\\\",\\\"@onCancel\\\",\\\"@onAddProductToShop\\\"],[[23,0,[\\\"tabCopy\\\"]],true,[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],true,\\\"productNew\\\",false,[23,2,[]],\\\"channels/shop/campaigns/details\\\",[28,\\\"perform\\\",[[23,0,[\\\"refreshProductsTask\\\"]],[23,1,[]]],null],[28,\\\"perform\\\",[[23,0,[\\\"refreshProductsTask\\\"]],[23,1,[]]],null],[23,0,[\\\"addNewProductTask\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"    \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"products/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"_setResultsAsDirty\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null]]]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/starred\\\",[],[[\\\"@filters\\\",\\\"@onSearchTask\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"_setResultsAsDirty\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onSearchTask\\\",\\\"@onPaginationTask\\\",\\\"@results\\\",\\\"@paginationIsFooter\\\",\\\"@tableViewOptions\\\"],[\\\"products/table-view/campaign-detail-picker-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,4,[]],[23,5,[]],[23,4,[]],[23,0,[\\\"customReloadSearchRecordsTask\\\"]],[23,0,[\\\"customSearchAdvancedTask\\\"]],[23,0,[\\\"customPaginateTask\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],false,[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"onMainActionIcon\\\",\\\"onMainActionLabel\\\",\\\"isPicker\\\",\\\"tab\\\",\\\"onSelectTask\\\",\\\"parentComponent\\\",\\\"allowUploads\\\"],[\\\"products\\\",\\\"fas fa-toilet-paper\\\",\\\"select\\\",true,[23,6,[]],[23,0,[\\\"addProductTask\\\"]],[23,0,[]],false]]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gte\\\",[[23,0,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"currentDraftModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"products/products-shop-wizard/editor\\\",[],[[\\\"@tab\\\",\\\"@isNew\\\",\\\"@name\\\",\\\"@isFromShop\\\",\\\"@mode\\\",\\\"@isAutomations\\\",\\\"@campaign\\\",\\\"@campaignDetail\\\",\\\"@campaignDetailAdapterName\\\",\\\"@onDone\\\",\\\"@onCancel\\\",\\\"@onAddProductToShop\\\"],[[23,0,[\\\"tabCopy\\\"]],true,[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],true,\\\"campaignDetail\\\",false,[23,2,[]],[23,0,[\\\"currentDraftModel\\\"]],\\\"channels/shop/campaigns/details\\\",[28,\\\"perform\\\",[[23,0,[\\\"nextStepTask\\\"]]],null],[23,0,[\\\"onCancel\\\"]],[23,0,[\\\"addProductTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"products/products-picker/bulk-insert-helper\\\",[],[[\\\"@campaignKey\\\",\\\"@campaignModel\\\",\\\"@onAddProductTask\\\",\\\"@onClose\\\",\\\"@onDoneExport\\\"],[[23,2,[\\\"_data\\\",\\\"_key\\\"]],[23,2,[]],[23,0,[\\\"addProductTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"nextStepTask\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onCancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"drafts\\\",\\\"length\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onCancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"set prices later\\\",\\\"set prices later\\\",\\\"\\\",[23,0,[\\\"isSetPricesNowBtnDisabled\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@badge\\\",\\\"@hasBadge\\\"],[\\\"set prices now\\\",\\\"set prices now\\\",\\\"fas fa-arrow-circle-right\\\",[23,0,[\\\"isSetPricesNowBtnDisabled\\\"]],[23,0,[\\\"nextStepTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"nextStepTask\\\"]]],null],[23,0,[\\\"drafts\\\",\\\"length\\\"]],[28,\\\"gt\\\",[[23,0,[\\\"drafts\\\",\\\"length\\\"]],0],null]]]],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-picker/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-shop-wizard/editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, R_) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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  let ProductsProductsShopWizardEditorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember.computed('listsIsLoaded', 'currentMode', 'this.crud.lists.products-lists-products-shop-sub-panels.[]'), _dec21 = Ember._action, _class = class ProductsProductsShopWizardEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n\n      // clear subTabs\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaignsProducts\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor4, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor5, this);\n      _initializerDefineProperty(this, \"listsIsLoaded\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedStep\", _descriptor7, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor8, this);\n      _initializerDefineProperty(this, \"campaignDetail\", _descriptor9, this);\n      _initializerDefineProperty(this, \"campaignDetailAdapterName\", _descriptor0, this);\n      _initializerDefineProperty(this, \"drafts\", _descriptor1, this);\n      _initializerDefineProperty(this, \"results\", _descriptor10, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor11, this);\n      _initializerDefineProperty(this, \"filtersForDrafts\", _descriptor12, this);\n      _initializerDefineProperty(this, \"productStep\", _descriptor13, this);\n      _initializerDefineProperty(this, \"currentDraftModel\", _descriptor14, this);\n      _initializerDefineProperty(this, \"tabCopy\", _descriptor15, this);\n      _initializerDefineProperty(this, \"autoSelectFirstTab\", _descriptor16, this);\n      _initializerDefineProperty(this, \"showPricelists\", _descriptor17, this);\n      _initializerDefineProperty(this, \"hasSaved\", _descriptor18, this);\n      _initializerDefineProperty(this, \"currentMode\", _descriptor19, this);\n      const tab = this.args.tab;\n      tab.resetTabs();\n      this.crud.addLists(this, ['products/lists/products-shop-sub-panels']);\n      this.autoSelectFirstTab = false;\n    }\n    get subPanels() {\n      const currentMode = this.currentMode;\n      const panels = this.crud.lists['products-lists-products-shop-sub-panels'] || [];\n      const panelsForMode = R.filter(panel => {\n        const allowedFor = panel?._data?.allowedFor || [];\n        return R.includes(currentMode)(allowedFor);\n      })(panels);\n      return panelsForMode;\n    }\n    afterLoadLists() {\n      const panels = this.subPanels || [];\n      const currentMode = this.currentMode;\n      const selectedPanelOptions = R.find(R.pathEq(['_data', 'value'], currentMode))(panels);\n      this.selectStepTask.perform(selectedPanelOptions);\n    }\n    *addProductToShopAndEnterEditCampaignDetail(product, tabOptions) {\n      if (!this.args.onAddProductToShop) {\n        return;\n      }\n      const campaignDetail = yield this.args.onAddProductToShop.perform(product, true);\n      this.campaignDetail = campaignDetail;\n      return yield this.convertToCampaignDetailEditModeTask.perform();\n    }\n    *convertToCampaignDetailEditModeTask() {\n      const mode = 'campaignDetail';\n      this.currentMode = mode;\n      const panels = this.subPanels || [];\n      const selectedPanelOptions = R.find(R.pathEq(['_data', 'value'], mode))(panels);\n      const campaignDetailKey = this.campaignDetail?._data?._key ?? '';\n      // refetchCampaignDetail after onDisplay / onDash\n      if (campaignDetailKey) {\n        const updatedCampaignDetail = yield this.crud.findTask.perform({\n          adapterName: 'channels/shop/campaigns/details',\n          appendPath: campaignDetailKey\n        });\n        this.campaignDetail = updatedCampaignDetail;\n      }\n      yield this.selectStepTask.perform(selectedPanelOptions);\n    }\n    displayCampaignDetailEditor(selectedPanelOptions) {\n      // @TODO: fix later. not sure why this has problems without the scheduleOnce\n      setTimeout(() => {\n        const tab = this.args.tab;\n        this.selectedCampaignModel = this.args.campaign;\n        const campaignDetail = this.campaignDetail;\n        const panelOptions = R.pipe(R.propOr({}, '_data'), R.mergeRight({\n          model: campaignDetail\n        }))(selectedPanelOptions);\n        this.tabsManager.replaceSubTab(tab, panelOptions);\n      }, 10);\n    }\n    *displayProductsEditorTask(selectedPanelOptions) {\n      const tab = this.args.tab;\n      const campaign = this.args.campaign;\n      this.selectedCampaignModel = campaign;\n      const campaignDetail = this.campaignDetail;\n      let model;\n      if (RA.isNotNilOrEmpty(campaignDetail)) {\n        const product = campaignDetail.product;\n        const productKey = product?._data?._key;\n        model = yield this.crud.findTask.perform({\n          adapterName: 'products',\n          appendPath: productKey\n        });\n      }\n      const panelOptions = R.pipe(R.propOr({}, '_data'), R.mergeRight({\n        model\n      }))(selectedPanelOptions);\n      this.tabsManager.replaceSubTab(tab, panelOptions);\n    }\n    get isEditing() {\n      const isEditing = this.args.isEditing;\n      if (isEditing) {\n        return true;\n      }\n      if (this.hasSaved) {\n        return true;\n      }\n      return false;\n    }\n    *selectStepTask(panelOptions) {\n      const previousStep = R.clone(this.selectedStep?._data || {});\n      if (previousStep?.value === panelOptions?._data?.value) {\n        // did not change steps\n        return;\n      }\n      const selectedStep = panelOptions?._data?.value;\n      this.selectedStep = panelOptions;\n      if (selectedStep === 'campaignDetail') {\n        this.displayCampaignDetailEditor(panelOptions);\n      } else {\n        this.displayProductsEditorTask.perform(panelOptions);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaignsProducts\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"listsIsLoaded\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedStep\", [_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: function () {\n      return this.args.campaign;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"campaignDetail\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.campaignDetail;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"campaignDetailAdapterName\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.campaignDetailAdapterName;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"drafts\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"filtersForDrafts\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"productStep\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"currentDraftModel\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"tabCopy\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"autoSelectFirstTab\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"showPricelists\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"hasSaved\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"currentMode\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.mode;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"subPanels\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"subPanels\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addProductToShopAndEnterEditCampaignDetail\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addProductToShopAndEnterEditCampaignDetail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"convertToCampaignDetailEditModeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"convertToCampaignDetailEditModeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayCampaignDetailEditor\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"displayCampaignDetailEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayProductsEditorTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"displayProductsEditorTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectStepTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"selectStepTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/products-shop-wizard/editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"01yH2esp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\",\\\"@isFromShop\\\",\\\"@name\\\",\\\"@onCancel\\\",\\\"@onDone\\\",\\\"@isAutomations\\\",\\\"@automationModel\\\",\\\"@campaign\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@autoSelectFirstTab\\\",\\\"@tab\\\",\\\"@tabs\\\",\\\"@onSelect\\\",\\\"@menu\\\",\\\"@isWizard\\\"],[[23,0,[\\\"autoSelectFirstTab\\\"]],[23,2,[]],[23,2,[\\\"subTabs\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"selectStepTask\\\"]]],null],[23,0,[\\\"subPanels\\\"]],true]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,2,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"campaign\\\",\\\"campaignDetail\\\",\\\"automationModel\\\",\\\"isAutomations\\\",\\\"isDisplay\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"allowUploads\\\",\\\"item\\\",\\\"campaignDetailAdapterName\\\",\\\"onDone\\\",\\\"onCancel\\\",\\\"name\\\",\\\"isFromShop\\\",\\\"onDisplay\\\",\\\"onDash\\\",\\\"onAfterCreateRecordTask\\\"],[[23,1,[]],[23,9,[]],[23,0,[\\\"campaignDetail\\\"]],[23,8,[]],[23,7,[]],false,true,false,false,[23,0,[\\\"campaignDetail\\\"]],[23,0,[\\\"campaignDetailAdapterName\\\"]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"convertToCampaignDetailEditModeTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"convertToCampaignDetailEditModeTask\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"addProductToShopAndEnterEditCampaignDetail\\\"]]],null]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-shop-wizard/editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/products-shop-wizard/selector/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, R_, _ramdaAdjunct) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ProductsPanelsShopWizardComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('channels/shop/campaigns'), _dec3 = Ember.inject.service('products'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember.inject.service, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember.computed('campaignDetailInstructions._data.shopKey'), _class = class ProductsPanelsShopWizardComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"campaignsProducts\", _descriptor4, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor7, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedCampaign\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedCampaignDetail\", _descriptor0, this);\n      _initializerDefineProperty(this, \"showWizardModal\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isLoaded\", _descriptor10, this);\n      _initializerDefineProperty(this, \"product\", _descriptor11, this);\n      _initializerDefineProperty(this, \"campaignFilters\", _descriptor12, this);\n      _initializerDefineProperty(this, \"campaignDetailInstructions\", _descriptor13, this);\n      _initializerDefineProperty(this, \"campaignDetailsForProduct\", _descriptor14, this);\n      _initializerDefineProperty(this, \"hasFetchedAllCampaigns\", _descriptor15, this);\n      _initializerDefineProperty(this, \"productName\", _descriptor16, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/statuses']);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      // fetch product again\n      const product = yield this.setupProductTask.perform();\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters'\n      });\n      Ember.set(this, 'campaignFilters', campaignFilters);\n      const tab = this.args.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      let campaignDetailInstructions = loadInstructions?._data?.campaignDetailInstructions;\n      if (_ramdaAdjunct.default.isNilOrEmpty(campaignDetailInstructions)) {\n        campaignDetailInstructions = this.campaignsProducts.getCampaignDetailModel();\n      }\n      Ember.set(this, 'campaignDetailInstructions', campaignDetailInstructions);\n      const shopKey = campaignDetailInstructions?._data?.autoAddNewProductToShopKey;\n      if (!shopKey) {\n        Ember.set(this, 'isLoaded', true);\n        return;\n      }\n      return yield this.setupCampaignAndCampaignDetailTask.perform({\n        shopKey,\n        itemKey: product?._data?._key ?? ''\n      });\n    }\n    *setupProductTask() {\n      let product = this.args.model;\n      const productKey = product?._data?._key;\n      product = yield this.crud.findTask.perform({\n        adapterName: 'products',\n        appendPath: productKey\n      });\n      Ember.set(this, 'product', product);\n      Ember.set(this, 'productName', product?._data?.name || '');\n      Ember.set(this, 'campaignDetailsForProduct', product.productCampaignsData || []);\n      return product;\n    }\n    get disabled() {\n      const shopKey = this.campaignDetailInstructions?._data?.shopKey;\n      if (!shopKey) {\n        return true;\n      }\n      return false;\n    }\n    *setupCampaignAndCampaignDetailTask({\n      shopKey,\n      itemKey,\n      isAutomation = false\n    }) {\n      const campaign = yield this.crud.findTask.perform({\n        adapterName: 'channels/shop/campaigns',\n        appendPath: shopKey\n      });\n      if (!campaign?._data?._key) {\n        Ember.set(this, 'isLoaded', true);\n        return;\n      }\n      Ember.set(this, 'selectedCampaign', campaign);\n      yield this.setupCampaignDetailTask.perform(campaign, itemKey, isAutomation);\n      Ember.set(this, 'isLoaded', true);\n      Ember.set(this, 'showWizardModal', true);\n    }\n    *setupCampaignDetailTask(campaign, itemKey, isAutomation = false) {\n      const product = this.product;\n      // const itemKey = product?._data?._key\n\n      const shopKey = campaign?._data?._key;\n      let adapterName = 'channels/shop/campaigns/details';\n      if (isAutomation) {\n        adapterName = 'channels/shop/campaigns/automations/details';\n      }\n      let campaignDetail = yield this.crud.findTask.perform({\n        adapterName,\n        appendPath: `/${itemKey}/master/${shopKey}`\n      });\n      if (!campaignDetail?._data?._key) {\n        // @TODO: add product to shop\n        campaignDetail = yield this.campaignsProducts.addProductTask.perform({\n          campaign,\n          product\n        });\n      }\n      Ember.set(this, 'selectedCampaignDetail', campaignDetail);\n      Ember.set(this, 'productName', campaignDetail?._data?.item || '');\n    }\n    *fetchCampaignsForProductTask() {\n      const product = this.product;\n      const productKey = product?._data?._key;\n      const campaignDetails = yield this.productsService.fetchCampaignsForProductTask.perform(productKey);\n      Ember.set(this, 'campaignDetailsForProduct', campaignDetails);\n      Ember.set(this, 'hasFetchedAllCampaigns', true);\n    }\n    get isShowFetchAllCampaignsBtn() {\n      const hasManyProductCampaignsData = this.product.hasManyProductCampaignsData;\n      if (!hasManyProductCampaignsData) {\n        return false;\n      }\n      if (this.hasFetchedAllCampaigns) {\n        return false;\n      }\n      return true;\n    }\n    *resetSelectedCampaignTask() {\n      const campaignDetailInstructions = this.campaignDetailInstructions;\n      campaignDetailInstructions.setData('shopKey', '');\n      campaignDetailInstructions.setData('shop', '');\n      Ember.set(this, 'selectedCampaign', null);\n      Ember.set(this, 'selectedCampaignDetail', null);\n      Ember.set(this, 'showWizardModal', false);\n      yield this.setupProductTask.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"campaignsProducts\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaign\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaignDetail\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"showWizardModal\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isLoaded\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"product\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"campaignFilters\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"campaignDetailInstructions\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"campaignDetailsForProduct\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"hasFetchedAllCampaigns\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"productName\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupProductTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupProductTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"disabled\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"disabled\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupCampaignAndCampaignDetailTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupCampaignAndCampaignDetailTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupCampaignDetailTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupCampaignDetailTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignsForProductTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignsForProductTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetSelectedCampaignTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"resetSelectedCampaignTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/products-shop-wizard/selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"u9cmrozz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"productCampaignData\\\",\\\"campaignDetail\\\",\\\"@tab\\\",\\\"@onAfterSave\\\",\\\"@isAccordian\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@isReadonly\\\",\\\"@isFromShop\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isLoaded\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@formInitData\\\",\\\"@isUserAllowed\\\",\\\"@tab\\\"],[\\\"productShopSelector\\\",false,[28,\\\"if\\\",[[23,11,[]],[23,11,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"campaignsDetails\\\",[23,10,[]],[23,5,[]],[23,9,[]],[23,8,[]]]]]],null],true,[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"shop_group\\\",[23,2,[]],[23,5,[]],\\\"add to shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@tab\\\"],[[23,2,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"shop\\\",[23,2,[]],\\\"shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@allowCustom\\\",\\\"@isRequired\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@filters\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,false,false,[23,0,[\\\"campaignFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"campaignFilters\\\"]],[23,0,[\\\"campaignDetailInstructions\\\",\\\"_data\\\",\\\"shop\\\"]],[23,0,[\\\"campaignDetailInstructions\\\",\\\"_data\\\",\\\"shopKey\\\"]],[23,12,[]],[28,\\\"or\\\",[[23,13,[]],[23,12,[]]],null],\\\"channels/shop/campaigns/search-results\\\",[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"filters\\\",\\\"adapterName\\\",\\\"component\\\"],[[23,0,[\\\"campaignDetailInstructions\\\",\\\"_data\\\",\\\"shop\\\"]],[23,0,[\\\"campaignFilters\\\"]],\\\"channels/shop/campaigns\\\",[23,0,[]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPathFromModelPath\\\"]],[23,0,[\\\"campaignDetailInstructions\\\"]],\\\"_data.shopKey\\\",\\\"_data._key\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPath\\\"]],[23,0,[\\\"campaignDetailInstructions\\\"]],\\\"_data.shopKey\\\",\\\"\\\"],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[false,\\\"save and edit shop prices\\\",[23,0,[\\\"disabled\\\"]],[23,0,[\\\"setupCampaignAndCampaignDetailTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setupCampaignAndCampaignDetailTask\\\"]],[28,\\\"hash\\\",null,[[\\\"shopKey\\\",\\\"itemKey\\\"],[[23,0,[\\\"campaignDetailInstructions\\\",\\\"_data\\\",\\\"shopKey\\\"]],[23,14,[\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"product\\\",\\\"productCampaignsData\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"shop_group\\\",[23,2,[]],[23,5,[]],\\\"shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"campaignDetailsForProduct\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@contentClassNames\\\",\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@isAccordian\\\"],[\\\"form-group__content-container--u-full-width\\\",[23,5,[]],\\\"campaign_group\\\",[23,2,[]],\\\"\\\",false,false]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"form-section__sub-title form-section__title \\\",[28,\\\"if\\\",[[23,7,[]],\\\"form-section__title--accordian\\\"],null]]]],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[23,3,[\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,3,[\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@statusLabel\\\",\\\"@statusBadgeClassNames\\\"],[[23,3,[\\\"_data\\\",\\\"campaign\\\",\\\"status\\\"]],[23,3,[\\\"campaignStatusClass\\\"]]]]],[0,\\\"\\\\n\\\\n                    \\\"],[1,[23,3,[\\\"_data\\\",\\\"campaign\\\",\\\"name\\\"]],false],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n                \\\"],[5,\\\"forms/form-table\\\",[[12,\\\"class\\\",\\\"u-full-width\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"campaignDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-width-40\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[23,4,[\\\"_data\\\",\\\"item\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-width-10\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[23,4,[\\\"_data\\\",\\\"itemCode\\\"]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-width-30\\\"],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"elements/status-tag\\\",[],[[\\\"@statusLabel\\\",\\\"@statusBadgeClassNames\\\"],[[23,4,[\\\"_data\\\",\\\"status\\\"]],[23,4,[\\\"statusClass\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                            \\\"],[1,[28,\\\"tt\\\",[[23,4,[\\\"_data\\\",\\\"setType\\\"]]],null],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"isAutomation\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                            \\\"],[1,[28,\\\"tt\\\",[\\\"automation\\\"],null],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"isOutOfSync\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n                            \\\"],[1,[28,\\\"tt\\\",[\\\"isOutOfSync\\\"],null],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                          \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                            \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@label\\\",\\\"@statusBadge\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"edit shop price\\\",\\\"\\\",[23,0,[\\\"setupCampaignAndCampaignDetailTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"setupCampaignAndCampaignDetailTask\\\"]],[28,\\\"hash\\\",null,[[\\\"shopKey\\\",\\\"itemKey\\\",\\\"isAutomation\\\"],[[23,3,[\\\"_data\\\",\\\"campaign\\\",\\\"_key\\\"]],[23,4,[\\\"_data\\\",\\\"itemKey\\\"]],[23,4,[\\\"_data\\\",\\\"isAutomation\\\"]]]]]],null]]]],[0,\\\"\\\\n                          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowFetchAllCampaignsBtn\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-ellipsis-h\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchCampaignsForProductTask\\\"]]],null]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@translate\\\",\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\"],[[23,0,[\\\"productName\\\"]],false,[23,0,[\\\"showWizardModal\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"resetSelectedCampaignTask\\\"]]],null],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"selectedCampaign\\\"]],[23,0,[\\\"selectedCampaignDetail\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"products/products-shop-wizard/editor\\\",[],[[\\\"@tab\\\",\\\"@isNew\\\",\\\"@name\\\",\\\"@isFromShop\\\",\\\"@mode\\\",\\\"@isAutomations\\\",\\\"@campaign\\\",\\\"@campaignDetail\\\",\\\"@campaignDetailAdapterName\\\",\\\"@onDone\\\",\\\"@onCancel\\\"],[[23,5,[]],true,[23,0,[\\\"selectedCampaignDetail\\\",\\\"_data\\\",\\\"item\\\"]],true,\\\"campaignDetail\\\",false,[23,0,[\\\"selectedCampaign\\\"]],[23,0,[\\\"selectedCampaignDetail\\\"]],\\\"channels/shop/campaigns/details\\\",[28,\\\"fn\\\",[[23,6,[]],[23,0,[\\\"product\\\"]]],null],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/products-shop-wizard/selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/search-bar-container/component\", [\"exports\", \"client/mixins/products-list-by\", \"client/mixins/crud\"], function (_exports, _productsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _productsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    query: '',\n    filters: null,\n    autofocus: true,\n    adapterName: 'products',\n    searchMethod: 'searchInputTask',\n    searchOptions: null,\n    page: 1,\n    count: 20,\n    init() {\n      this.crud.addLists(this, ['products/lists/filters/search', 'products/lists/filters/sort', 'products/lists/filters/status', 'products/lists/types', 'products/lists/tags', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n\n    // afterLoadLists () {\n    //   this._super(...arguments)\n\n    //   const filters = this.setupSearchFilters({\n    //     match: ['all'],\n    //     status: [this.get('constants.status.active')],\n    //     types: ['all'],\n    //     sort: {\n    //       by: 'name',\n    //       direction: 'ASC'\n    //     }\n    //   })\n    //   this.set('filters', filters)\n    // }\n\n    // searchTask: task(function * (customSearchOptions, defaultSearchOptions, ...rest) {\n    //   const searchMethod = this.get('searchMethod')\n    //   const searchOptions = R.mergeRight(defaultSearchOptions, customSearchOptions)\n    //   return yield this.get(searchMethod).perform(searchOptions, ...rest)\n    // })\n  });\n});","define(\"client/pods/components/products/search-bar-container/search-bar/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    query: '',\n    filters: null,\n    autofocus: true,\n    adapterName: 'products'\n  });\n});","define(\"client/pods/components/products/search-bar-container/search-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eCtdPx3D\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"placeholder\\\",\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[[24,[\\\"autofocus\\\"]],\\\"products\\\",[24,[\\\"query\\\"]],[28,\\\"or\\\",[[24,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[24,[\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"resultsToggle\\\",\\\"filters\\\"],[[24,[\\\"query\\\"]],\\\"resultsToggle\\\",[24,[\\\"filters\\\"]]]]],[24,[\\\"query\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"products/search-filters\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/search-bar-container/search-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/search-bar-container/search-results/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this.crud.addLists(this, ['products/lists/filters/status']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/products/search-bar-container/search-results/search-row/component\", [\"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 = Ember.Component.extend({\n    tagName: 'tr'\n  });\n});","define(\"client/pods/components/products/search-bar-container/search-results/search-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"El9wD0EM\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-search\\\"]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"exclusive price\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\"],[\\\"products\\\",[24,[\\\"item\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"80\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-left u-padding--3\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[24,[\\\"item\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n  \\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[24,[\\\"item\\\",\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"exclPrice\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"inclPrice\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"select\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelect\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/search-bar-container/search-results/search-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/search-bar-container/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"g2xtsEFn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"index\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"products/search-bar-container/search-results/search-row\\\",null,[[\\\"isHeaders\\\"],[true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/search-bar-container/search-results/search-row\\\",null,[[\\\"isDetailRow\\\",\\\"tab\\\",\\\"item\\\",\\\"onSelect\\\"],[true,[24,[\\\"tab\\\"]],[23,1,[]],[24,[\\\"onSelect\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/search-bar-container/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/search-bar-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9ehFMHFX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1,[[23,0,[]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/search-bar-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/search-filters/component\", [\"exports\", \"client/mixins/products-list-by\", \"client/mixins/crud\"], function (_exports, _productsListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _productsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this.crud.addLists(this, ['products/lists/filters/search', 'products/lists/filters/sort', 'products/lists/filters/status', 'products/lists/types', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/products/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"noaGrKx/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"byLatest\\\",\\\"filters\\\"],[true,[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[false,true,\\\"only show variant parents\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"hideVariantChildrenInProductsSearch\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.types\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.statuses\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/search-results-item/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this.crud.addLists(this, ['products/lists/types', 'products/lists/tracking', 'statuses']);\n      this._super(...arguments);\n    },\n    trackingTagLabel: Ember.computed(function () {\n      return this.intl.t('tracking') + ': ';\n    }),\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/products/search-results-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LDTs8Yik\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__table-thumb\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\"],[[24,[\\\"result\\\",\\\"defaultImage\\\"]],\\\"/-/resize/40x\\\"]]],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--wrap u-results__text flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"hasInventory\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"products/inventory/inventory-status\\\",null,[[\\\"isTag\\\",\\\"product\\\",\\\"label\\\",\\\"qtyParam\\\"],[true,[24,[\\\"result\\\"]],\\\"available qty\\\",\\\"_data.availableQty\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"tagClassNames\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"statusTagClassName\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/search-results-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/shop/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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;\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 ProductsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('products'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class ProductsFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"productsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"recurringFilters\", _descriptor3, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/products-filters']);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const recurringFilters = yield this.productsService.getRecurringFiltersTask.perform() || [];\n      this.recurringFilters = recurringFilters;\n    }\n    selectItem(item, isSelected) {\n      if (this?.args?.onSearchTask) {\n        this.args.onSearchTask.perform();\n      }\n    }\n    get showStatusTags() {\n      // @TODO: move to filter model\n      const statuses = this?.crud?.lists?.['channels-shop-campaigns-statuses'] || [];\n      const selectedStatuses = this.args.filters?._data?.statuses || [];\n      if (selectedStatuses.length === 0) {\n        return false;\n      }\n      if (selectedStatuses.length === statuses.length) {\n        return false;\n      }\n      return true;\n    }\n    get showResetFilter() {\n      // @TODO: move to filter model\n      const filtersData = this?.args?.filters?._data;\n      if (RA.isNilOrEmpty(filtersData)) {\n        return false;\n      }\n      const statuses = filtersData.statuses;\n      const hasImages = filtersData.hasImages;\n      const item = filtersData.item;\n      const itemCode = filtersData.itemCode;\n      const price = filtersData.price;\n      const setTypes = filtersData.setTypes;\n      const tags = filtersData.tags;\n      if (statuses.length !== 5 || tags.length !== 0 || setTypes.length !== 0 || RA.isNilOrEmpty(hasImages) !== true || item !== '' || itemCode !== '' || price !== '') {\n        return true;\n      }\n      return false;\n    }\n    *updateFiltersTask() {\n      // @TODO: how can this be improved?\n      const filters = this.args.filters || {};\n      Ember.set(filters, '_data', filters?._data || {}); // reset data\n\n      return yield this.args.onSearchTask.perform(...arguments);\n    }\n    *clearSelectedItemsTask() {\n      if (this?.crud?.reloadSearchRecordsTask) {\n        yield this?.crud?.reloadSearchRecordsTask.perform({\n          filters: this.args.filters,\n          reset: true\n        });\n        const filters = this.args.filters || {};\n        Ember.set(filters, '_data', filters?._data || {}); // reset data\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"recurringFilters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectItem\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"selectItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateFiltersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedItemsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedItemsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/shop/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0F7dT1cd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@isGuest\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"item\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"product\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"itemCode\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"product code\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"price\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"price\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"salesTaxRate\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"tax on sales\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"product tags\\\",\\\"filter-group-legend\\\",\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],[23,5,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[]],true,\\\"_data._key\\\",\\\"_data.tags\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"campaign detail product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"campaign detail product tags\\\",\\\"filter-group-legend\\\",\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],[23,5,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[]],true,\\\"_data._key\\\",\\\"_data.campaignDetailTags\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@hasDivider\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[false,true,\\\"status\\\",\\\"filter-group-legend\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],[23,1,[]],true,true,\\\"_data.value\\\",\\\"_data.statuses\\\",true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"product type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[\\\"product type\\\",\\\"filter-group-legend\\\",true,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypesFilters\\\"]],[23,1,[]],true,\\\"_data.value\\\",\\\"_data.setTypes\\\",true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"recurring schedules\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[\\\"recurring schedules\\\",\\\"filter-group-legend\\\",true,\\\"u-margin-y-15\\\",[23,0,[\\\"recurringFilters\\\"]],[23,1,[]],true,\\\"_data.value\\\",\\\"_data.recurringFilters\\\",true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"has images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[\\\"has images\\\",\\\"filter-group-legend\\\",true,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,1,[]],false,true,\\\"_data.value\\\",\\\"_data.hasImages\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-products-filters\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"_data\\\",\\\"shopProductsSort\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"updateFiltersTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,1,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--tags\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showStatusTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@prefix\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],[23,1,[\\\"_data\\\",\\\"statuses\\\"]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"status\\\"],null],\\\":\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\",true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"product tags\\\"],null],\\\":\\\"],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[\\\"_data\\\",\\\"campaignDetailTags\\\"]],\\\"_data._key\\\",true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"campaign detail product tags\\\"],null],\\\":\\\"],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,1,[\\\"_data\\\",\\\"hasImages\\\"]],true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"has images\\\"],null],\\\":\\\"],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypesFilters\\\"]],[23,1,[\\\"_data\\\",\\\"setTypes\\\"]],true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"product type\\\"],null],\\\":\\\"],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\"],[true,[23,0,[\\\"recurringFilters\\\"]],[23,1,[\\\"_data\\\",\\\"recurringFilters\\\"]],true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"recurring schedules\\\"],null],\\\":\\\"],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,1,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,4,[]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,1,[]],true]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,4,[]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/shop/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/shop/limits/filters-advanced/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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;\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 ProductsFiltersAdvancedComponent = _exports.default = (_dec = Ember.inject.service('products'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class ProductsFiltersAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"productsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"recurringFilters\", _descriptor3, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const recurringFilters = yield this.productsService.getRecurringFiltersTask.perform() || [];\n      this.recurringFilters = recurringFilters;\n    }\n    selectItem(item, isSelected) {\n      if (this?.args?.onSearchTask) {\n        this.args.onSearchTask.perform();\n      }\n    }\n    get showStatusTags() {\n      // @TODO: move to filter model\n      const statuses = this?.crud?.lists?.['channels-shop-campaigns-statuses'] || [];\n      const selectedStatuses = this.args.filters?._data?.statuses || [];\n      if (selectedStatuses.length === 0) {\n        return false;\n      }\n      if (selectedStatuses.length === statuses.length) {\n        return false;\n      }\n      return true;\n    }\n    get showResetFilter() {\n      // @TODO: move to filter model\n      const filtersData = this?.args?.filters?._data;\n      if (RA.isNilOrEmpty(filtersData)) {\n        return false;\n      }\n      const statuses = filtersData.statuses;\n      const hasImages = filtersData.hasImages;\n      const item = filtersData.item;\n      const itemCode = filtersData.itemCode;\n      const price = filtersData.price;\n      const setTypes = filtersData.setTypes;\n      const tags = filtersData.tags;\n      if (statuses.length !== 5 || tags.length !== 0 || setTypes.length !== 0 || RA.isNilOrEmpty(hasImages) !== true || item !== '' || itemCode !== '' || price !== '') {\n        return true;\n      }\n      return false;\n    }\n    *updateFiltersTask() {\n      // @TODO: how can this be improved?\n      const filters = this.args.filters || {};\n      Ember.set(filters, '_data', filters?._data || {}); // reset data\n\n      return yield this.args.onSearchTask.perform(...arguments);\n    }\n    *clearSelectedItemsTask() {\n      if (this?.crud?.reloadSearchRecordsTask) {\n        yield this?.crud?.reloadSearchRecordsTask.perform({\n          filters: this.args.filters,\n          reset: true\n        });\n        const filters = this.args.filters || {};\n        Ember.set(filters, '_data', filters?._data || {}); // reset data\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"recurringFilters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectItem\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"selectItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateFiltersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedItemsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedItemsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/shop/limits/filters-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xeGtr/ib\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@isGuest\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container-outer\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"product\\\",\\\"name\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"product\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@translatedPlaceholder\\\"],[[23,1,[\\\"_data\\\",\\\"product\\\",\\\"code\\\"]],[23,2,[]],true,[23,3,[]],[28,\\\"tt\\\",[\\\"product code\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"product tags\\\",\\\"filter-group-legend\\\",\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],[23,5,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[]],true,\\\"_data._key\\\",\\\"_data.product.tags\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"campaign detail product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[true,\\\"campaign detail product tags\\\",\\\"filter-group-legend\\\",\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],[23,5,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[]],true,\\\"_data._key\\\",\\\"_data.campaignDetailTags\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"product type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[\\\"product type\\\",\\\"filter-group-legend\\\",true,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypesFilters\\\"]],[23,1,[]],true,\\\"_data.value\\\",\\\"_data.product.setTypes\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\"],[[23,4,[]],\\\"has images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@legend\\\",\\\"@legendClassNames\\\",\\\"@hasDivider\\\",\\\"@dividerClassNames\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@allowDeselect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@allowEmpty\\\"],[\\\"has images\\\",\\\"filter-group-legend\\\",true,\\\"u-margin-y-15\\\",true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,1,[]],false,true,\\\"_data.value\\\",\\\"_data.product.hasImages\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--tags\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@prefix\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],[23,1,[\\\"_data\\\",\\\"statuses\\\"]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"status\\\"],null],\\\": \\\"],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[\\\"_data\\\",\\\"product\\\",\\\"tags\\\"]],\\\"_data._key\\\",true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"product tags\\\"],null],\\\": \\\"],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@optionValueKey\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\"],[true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,1,[\\\"_data\\\",\\\"campaignDetailTags\\\"]],\\\"_data._key\\\",true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"campaign detail product tags\\\"],null],\\\": \\\"],null]]]],[0,\\\"      \\\\n\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypesFilters\\\"]],[23,1,[\\\"_data\\\",\\\"product\\\",\\\"setTypes\\\"]],true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"product type\\\"],null],\\\": \\\"],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@isFilterTag\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@allowDeselect\\\",\\\"@prefix\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"toggles-yesNo\\\"]],[23,1,[\\\"_data\\\",\\\"product\\\",\\\"hasImages\\\"]],true,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"has images\\\"],null],\\\": \\\"],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container filter-group-container--footer\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"menuId\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"filters/save-btn\\\",[],[[\\\"@filters\\\"],[[23,1,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"clear\\\",\\\"fas fa-times\\\",[23,4,[]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,1,[]],true]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"filter-group-container__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"search\\\",\\\"\\\",[23,4,[]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/shop/limits/filters-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/sync-modal/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 ProductsSyncModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 20\n  }), _dec8 = (0, _emberConcurrencyDecorators.dropTask)(), _class = class ProductsSyncModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor3, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor4, this);\n      _initializerDefineProperty(this, \"campaignsDetailsFilters\", _descriptor5, this);\n      _defineProperty(this, \"campaignsAdapter\", 'channels/shop/campaigns/sync/campaigns');\n      _defineProperty(this, \"campaignsFilterAdapter\", 'channels/shop/campaigns/sync/products/filters');\n      this.crud.addLists(this, ['channels/shop/campaigns/statuses', 'channels/shop/campaigns/lists/filters/status', 'products/lists/sync-search']);\n    }\n    get preFetch() {\n      return R.pathOr(false, ['args', 'preFetch'])(this);\n    }\n    get results() {\n      const product = this.args.model;\n      return [product];\n    }\n    get isRunning() {\n      return this.syncModalSearchRecordsTask.isRunning || this.syncProductOnCampaigns.isRunning;\n    }\n    setup() {\n      const itemKey = R.pathOr('', ['args', 'model', '_data', '_key'])(this);\n      const price = R.pathOr('', ['args', 'model', '_data', 'salesInclPrice'])(this);\n      this.filters = this.search.setupFilters({\n        adapterName: this.campaignsFilterAdapter,\n        defaultFiltersData: {\n          resultsProperty: 'results',\n          itemKey,\n          campaignSyncAll: {\n            price\n          }\n        }\n      });\n      this.campaignsDetailsFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        defaultFiltersData: {\n          itemKey,\n          resultsProperty: 'results',\n          resultsAdapterName: 'channels/shop/campaigns/details',\n          appendPath: `/advanced`\n        }\n      });\n      if (this.preFetch) {\n        this.syncModalSearchRecordsTask.perform();\n      }\n    }\n\n    //@TODO: ADD HORIZONTAL SCROLL BINDING\n    setScrollBinding() {\n      // products__sync-modal--product-detail-row\n      // products__sync-modal--campaign-detail-row\n      document.querySelector('.products__sync-modal--product-detail-row').onscroll = ({\n        target\n      }) => document.querySelector('.products__sync-modal--campaign-detail-row').scrollLeft = target.scrollLeft;\n    }\n    resetErrors() {\n      this.errors = null;\n    }\n    *syncModalSearchRecordsTask() {\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.campaignsAdapter,\n        filters: this.filters\n      });\n      this.filters.setDefaultCampaignSync();\n    }\n    *syncProductOnCampaigns(onCloseDialogAction) {\n      this.resetErrors();\n      const syncCampaignModel = this.filters.getSyncCampaignModel();\n      yield this.crud.updateRecordTask.perform({\n        adapterName: this.campaignsAdapter,\n        model: syncCampaignModel,\n        component: this\n      });\n      if (this.errors) {\n        return;\n      }\n      this.filters.resetCampaignSync();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"campaignsDetailsFilters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"syncModalSearchRecordsTask\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"syncModalSearchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"syncProductOnCampaigns\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"syncProductOnCampaigns\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/sync-modal/table-view/campaign-detail-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ProductsSyncModalTableViewCampaignDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _class = class ProductsSyncModalTableViewCampaignDetailRowComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/products/sync-modal/table-view/campaign-detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"TgYFo+M/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"label\\\",\\\"label\\\",\\\"campaignSync\\\",\\\"isTooltipVisible\\\",\\\"campaignSync\\\",\\\"isTooltipVisible\\\",\\\"campaignSync\\\",\\\"isTooltipVisible\\\",\\\"campaignSync\\\",\\\"isTooltipVisible\\\",\\\"@model\\\",\\\"@tableViewOptions\\\",\\\"@filters\\\",\\\"@rowIndex\\\",\\\"@isDetailRow\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@isFilters\\\",\\\"@showFilters\\\",\\\"@hasHeadersSort\\\",\\\"@adapterName\\\",\\\"@hasFilters\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,25,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,13,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@adapterName\\\",\\\"@onSort\\\"],[[23,22,[]],[23,13,[]],\\\"name\\\",[23,23,[]],[23,16,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"campaigns\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@adapterName\\\",\\\"@onSort\\\"],[[23,22,[]],[23,13,[]],\\\"status\\\",[23,23,[]],[23,16,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"campaign status\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@adapterName\\\",\\\"@onSort\\\"],[[23,22,[]],[23,13,[]],\\\"createdDateZ\\\",[23,23,[]],[23,16,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"created date\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@adapterName\\\",\\\"@onSort\\\"],[[23,22,[]],[23,13,[]],\\\"dateStartZ\\\",[23,23,[]],[23,16,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"start date\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@adapterName\\\",\\\"@onSort\\\"],[[23,22,[]],[23,13,[]],\\\"dateEndZ\\\",[23,23,[]],[23,16,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"end date\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@adapterName\\\",\\\"@onSort\\\"],[[23,22,[]],[23,13,[]],\\\"timestampZ_latest\\\",[23,23,[]],[23,16,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"product status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive discounted price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"webpages\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,24,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@icon\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-filter\\\",[23,21,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,20,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],[23,16,[]],true,false,[23,13,[\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[[23,13,[\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[23,16,[\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[23,16,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,false,false,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-filters-status\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,13,[\\\"_data\\\",\\\"campaignStatus\\\"]],[23,16,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\"],[\\\"_data.createdDateZ\\\",[23,13,[]],[23,13,[\\\"_data\\\",\\\"createdDateZ\\\"]],[23,16,[]],[23,17,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\"],[\\\"_data.dateStartZ\\\",[23,13,[]],[23,13,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,16,[]],[23,17,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\"],[\\\"_data.dateEndZ\\\",[23,13,[]],[23,13,[\\\"_data\\\",\\\"dateEndZ\\\"]],[23,16,[]],[23,17,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\"],[\\\"_data.timestampZ_latestZ\\\",[23,13,[]],[23,13,[\\\"_data\\\",\\\"timestampZ_latestZ\\\"]],[23,16,[]],[23,17,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",-1,[23,18,[]],[23,19,[]],[28,\\\"fn\\\",[[23,13,[\\\"resetFilters\\\"]],[23,16,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,15,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,14,[]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"highlight\\\",[[23,11,[\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,11,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[23,11,[\\\"_data\\\",\\\"createdDateZ\\\"]],\\\"YYYY-MM-DD\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[23,11,[\\\"_data\\\",\\\"dateStartZ\\\"]],\\\"YYYY-MM-DD\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[23,11,[\\\"_data\\\",\\\"dateEndZ\\\"]],\\\"YYYY-MM-DD\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[23,11,[\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@iconOnly\\\",\\\"@model\\\"],[true,[23,11,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"status\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,13,[\\\"_data\\\",\\\"campaignSync\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,9,[\\\"master\\\"]],[23,11,[\\\"_data\\\",\\\"_key\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-start\\\"],[8],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"new status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,9,[\\\"status\\\"]],[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"status\\\"]]],null],\\\"has-text-warning\\\",\\\"has-text-primary\\\"],null]]]],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,9,[\\\"status\\\"]],[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"status\\\"]]],null],\\\"fas fa-exclamation-triangle\\\",\\\"fas fa-info-circle\\\"],null]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-link--text\\\",\\\"original status\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"status\\\"]]],null],false],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[10]}],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@statusBadgeClassNames\\\",\\\"@onSelect\\\"],[true,true,false,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,9,[\\\"status\\\"]],[23,9,[\\\"statusClass\\\"]],[23,13,[\\\"updateStatusClassCampaignSync\\\"]]]]],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sync-alt\\\",[28,\\\"fn\\\",[[23,13,[\\\"updateStatusClassCampaignSync\\\"]],[28,\\\"hash\\\",null,[[\\\"campaignSync\\\",\\\"fromGlobal\\\"],[[23,9,[]],true]]]],null]]]],[0,\\\"\\\\n\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[9]},null],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"tags\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggle\\\"],[[28,\\\"if\\\",[[23,12,[\\\"productModel\\\",\\\"hasTags\\\"]],false,true],null],[23,11,[\\\"_data\\\",\\\"campaignSync\\\",\\\"tags\\\"]],true,false,[28,\\\"fn\\\",[[23,13,[\\\"validateCampaignSyncAll\\\"]],[23,12,[\\\"campaignsDetailsFilters\\\"]],[23,11,[]],\\\"tags\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,13,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"tags\\\"]],[23,11,[\\\"_data\\\",\\\"campaignSync\\\",\\\"tags\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@classNames\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"products__sync-modal--tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,12,[\\\"productModel\\\",\\\"_data\\\",\\\"tags\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[\\\"campaignDetail\\\",\\\"productTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@classNames\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"products__sync-modal--tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,11,[\\\"campaignDetail\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"no tags\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"inclusive price\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,13,[\\\"_data\\\",\\\"campaignSync\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,7,[\\\"master\\\"]],[23,11,[\\\"_data\\\",\\\"_key\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-start\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@customErrorClassNames\\\"],[\\\"new inclusive price\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,12,[\\\"errors\\\",\\\"0\\\",\\\"campaignDetailKeys\\\"]],[23,7,[\\\"campaignDetailKey\\\"]]],null],[23,12,[\\\"errors\\\"]]],null],\\\"price\\\",\\\"member-levels-editor__error-width\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"                \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,7,[\\\"price\\\"]],[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"price\\\"]]],null],\\\"has-text-warning\\\",\\\"has-text-primary\\\"],null]]]],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,7,[\\\"price\\\"]],[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"price\\\"]]],null],\\\"fas fa-exclamation-triangle\\\",\\\"fas fa-info-circle\\\"],null]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-link--text\\\",\\\"original inclusive price\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    $ \\\"],[1,[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"price\\\"]],false],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@prefix\\\",\\\"@value\\\"],[\\\"input--80\\\",\\\"$\\\",[23,7,[\\\"price\\\"]]]]],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sync-alt\\\",[28,\\\"fn\\\",[[23,13,[\\\"validateCampaignSyncAll\\\"]],[23,12,[\\\"campaignsDetailsFilters\\\"]],[23,11,[]],\\\"price\\\",[23,13,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"price\\\"]]],null]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"inclusive discounted price\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,13,[\\\"_data\\\",\\\"campaignSync\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"master\\\"]],[23,11,[\\\"_data\\\",\\\"_key\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-start\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@customErrorClassNames\\\"],[\\\"new discounted price\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,12,[\\\"errors\\\",\\\"0\\\",\\\"campaignDetailKeys\\\"]],[23,5,[\\\"campaignDetailKey\\\"]]],null],[23,12,[\\\"errors\\\"]]],null],\\\"priceDiscounted\\\",\\\"member-levels-editor__error-width\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"                \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,5,[\\\"priceDiscounted\\\"]],[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]]],null],\\\"has-text-warning\\\",\\\"has-text-primary\\\"],null]]]],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,5,[\\\"priceDiscounted\\\"]],[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]]],null],\\\"fas fa-exclamation-triangle\\\",\\\"fas fa-info-circle\\\"],null]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-link--text\\\",\\\"inclusive discounted price\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    $ \\\"],[1,[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"priceDiscounted\\\"]],false],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@prefix\\\",\\\"@value\\\"],[\\\"input--80\\\",\\\"$\\\",[23,5,[\\\"priceDiscounted\\\"]]]]],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sync-alt\\\",[28,\\\"fn\\\",[[23,13,[\\\"validateCampaignSyncAll\\\"]],[23,12,[\\\"campaignsDetailsFilters\\\"]],[23,11,[]],\\\"priceDiscounted\\\",[23,13,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"priceDiscounted\\\"]]],null]]]],[0,\\\"\\\\n\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"on sale\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,13,[\\\"_data\\\",\\\"campaignSync\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"master\\\"]],[23,11,[\\\"_data\\\",\\\"_key\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-start\\\"],[8],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"on sale\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"                \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,3,[\\\"onSale\\\"]],[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"onSale\\\"]]],null],\\\"has-text-warning\\\",\\\"has-text-primary\\\"],null]]]],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,3,[\\\"onSale\\\"]],[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"onSale\\\"]]],null],\\\"fas fa-exclamation-triangle\\\",\\\"fas fa-info-circle\\\"],null]]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"u-link--text\\\",\\\"on sale\\\"]]],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[1,[23,11,[\\\"campaignDetail\\\",\\\"_data\\\",\\\"onSale\\\"]],false],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,3,[\\\"onSale\\\"]],\\\"on\\\",\\\"off\\\"]]],[0,\\\"\\\\n\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"templates\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggle\\\"],[[28,\\\"if\\\",[[23,12,[\\\"productModel\\\",\\\"hasTemplatesOrDescriptions\\\"]],false,true],null],[23,11,[\\\"_data\\\",\\\"campaignSync\\\",\\\"templates\\\"]],true,false,[28,\\\"fn\\\",[[23,13,[\\\"validateCampaignSyncAll\\\"]],[23,12,[\\\"campaignsDetailsFilters\\\"]],[23,11,[]],\\\"templates\\\"],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,13,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"templates\\\"]],[23,11,[\\\"_data\\\",\\\"campaignSync\\\",\\\"templates\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row products__sync-modal--tags\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,12,[\\\"productModel\\\",\\\"templatesOrDescriptionsLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag tag__margin\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[\\\"campaignDetail\\\",\\\"hasTemplatesOrDescriptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row products__sync-modal--tags\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,11,[\\\"campaignDetail\\\",\\\"templatesOrDescriptionsLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag tag__margin\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[[23,1,[]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"no web pages\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/sync-modal/table-view/campaign-detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/sync-modal/table-view/product-detail-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ProductsSyncModalTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _class = class ProductsSyncModalTableViewDetailRowComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/products/sync-modal/table-view/product-detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XD60F/mm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"label\\\",\\\"@model\\\",\\\"@rowIndex\\\",\\\"@tab\\\",\\\"@filters\\\",\\\"@tableViewOptions\\\",\\\"@isDetailRow\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,5,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"images\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive discounted price\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"webpages\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,3,[]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowUploads\\\",\\\"@model\\\",\\\"@showDefaultImagePreview\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@imageWidth\\\",\\\"@transform\\\"],[[23,4,[]],false,false,false,[23,2,[]],false,true,\\\"products\\\",[23,2,[\\\"_data\\\",\\\"_key\\\"]],\\\"40\\\",\\\"/-/scale_crop/64x64/smart\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"helpers/creator-info\\\",null,[[\\\"iconOnly\\\",\\\"model\\\"],[true,[23,2,[]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"status\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@statusBadgeClassNames\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,false,false,true,[23,5,[\\\"statusClass\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"status\\\"]],[23,5,[\\\"resetData\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sync-alt\\\",[23,5,[\\\"updateStatusClassCampaignSyncAll\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"tags\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggle\\\"],[[28,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"_data\\\",\\\"tags\\\"]],[28,\\\"not\\\",[[23,6,[\\\"isRunning\\\"]]],null]],null],false,true],null],\\\"sync\\\",[23,5,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"tags\\\"]],true,false,[28,\\\"fn\\\",[[23,5,[\\\"syncOnAllCampaigns\\\"]],[23,6,[\\\"campaignsDetailsFilters\\\"]],\\\"tags\\\"],null]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"tags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@classNames\\\",\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"products__sync-modal--tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,2,[\\\"_data\\\",\\\"tags\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"no tags\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"inclusive price\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@prefix\\\",\\\"@value\\\"],[\\\"input--80\\\",\\\"$\\\",[23,5,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"price\\\"]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sync-alt\\\",[28,\\\"fn\\\",[[23,5,[\\\"syncOnAllCampaigns\\\"]],[23,6,[\\\"campaignsDetailsFilters\\\"]],\\\"price\\\",[23,5,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"price\\\"]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"inclusive discounted price\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@prefix\\\",\\\"@value\\\"],[\\\"input--80\\\",\\\"$\\\",[23,5,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"priceDiscounted\\\"]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-sync-alt\\\",[28,\\\"fn\\\",[[23,5,[\\\"syncOnAllCampaigns\\\"]],[23,6,[\\\"campaignsDetailsFilters\\\"]],\\\"priceDiscounted\\\",[23,5,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"priceDiscounted\\\"]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"inclusive discounted price\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggle\\\"],[[23,5,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"onSale\\\"]],\\\"on\\\",\\\"off\\\",[28,\\\"fn\\\",[[23,5,[\\\"syncOnAllCampaigns\\\"]],[23,6,[\\\"campaignsDetailsFilters\\\"]],\\\"onSale\\\"],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"products__sync-modal--detail-row\\\"],[10,\\\"data-sync-modal-detail-row\\\",\\\"template\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggle\\\"],[[28,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"hasTemplatesOrDescriptions\\\"]],[28,\\\"not\\\",[[23,6,[\\\"isRunning\\\"]]],null]],null],false,true],null],\\\"sync\\\",[23,5,[\\\"_data\\\",\\\"campaignSyncAll\\\",\\\"templates\\\"]],true,false,[28,\\\"fn\\\",[[23,5,[\\\"syncOnAllCampaigns\\\"]],[23,6,[\\\"campaignsDetailsFilters\\\"]],\\\"templates\\\"],null]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"hasTemplatesOrDescriptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row products__sync-modal--tags\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"templatesOrDescriptionsLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag tag__margin\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[23,1,[]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"no web pages\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/sync-modal/table-view/product-detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/sync-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dicdk3zV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isSyncable\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[9],[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@modalDialogTitle\\\"],[[23,0,[\\\"isReadonly\\\"]],\\\"fas fa-sync-alt\\\",\\\"sync with campaigns\\\",true,\\\"sync product with campaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"preFetch\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"syncModalSearchRecordsTask\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@contentClassNames\\\"],[\\\"flex-container-column\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@rowClassNames\\\"],[\\\"flex-container-row products__sync-modal--form-row products__sync-modal--product-detail-row\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@results\\\",\\\"@tableViewOptions\\\"],[\\\"products-dash\\\",\\\"products/sync-modal/table-view/product-detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,0,[\\\"results\\\"]],[28,\\\"hash\\\",null,[[\\\"isRunning\\\",\\\"syncWithCampaign\\\",\\\"campaignsDetailsFilters\\\"],[[23,0,[\\\"isRunning\\\"]],[23,0,[\\\"syncOnAllCampaigns\\\"]],[23,0,[\\\"campaignsDetailsFilters\\\"]]]]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@contentClassNames\\\"],[\\\"flex-container-column\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@rowClassNames\\\"],[\\\"flex-container-row\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[[12,\\\"classNames\\\",\\\"table-form__input\\\"]],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,3,[]],[23,3,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-sync-search\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"filters\\\",\\\"searchType\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"searchType\\\"]],\\\"byDate\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@rowClassNames\\\"],[\\\"flex-container-row\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"date start\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateStartZ\\\",[23,2,[]],[23,2,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,3,[]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"date end\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateEndZ\\\",[23,2,[]],[23,2,[\\\"_data\\\",\\\"dateEndZ\\\"]],[23,3,[]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"filters\\\",\\\"searchType\\\"]],\\\"byName\\\"],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@rowClassNames\\\"],[\\\"flex-container-row\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[true,\\\"search\\\",[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,0,[\\\"syncModalSearchRecordsTask\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@rowClassNames\\\"],[\\\"products__sync-modal--form-row products__sync-modal--campaign-detail-row\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@results\\\",\\\"@adapterName\\\",\\\"@paginationIsFooter\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onResetSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"products-dash\\\",\\\"products/sync-modal/table-view/campaign-detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"campaignsAdapter\\\"]],false,[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"reset\\\"],[[23,0,[\\\"filters\\\"]],true]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,0,[\\\"filters\\\"]]]]]],null],[28,\\\"hash\\\",null,[[\\\"errors\\\",\\\"productModel\\\",\\\"campaignsDetails\\\",\\\"campaignsDetailsFilters\\\"],[[23,0,[\\\"errors\\\"]],[23,2,[]],[23,0,[\\\"campaignsDetailsFilters\\\",\\\"results\\\"]],[23,0,[\\\"campaignsDetailsFilters\\\"]]]]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"u-btn--cancel\\\",[23,3,[]],[23,0,[\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"syncProductOnCampaigns\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/sync-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/tab-container/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\", \"client/mixins/products-list-by\", \"client/utils/nventor\"], function (_exports, _crud, _emberConcurrency, _productsListBy, _nventor) {\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, _dec0, _dec1, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _productsListBy.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tagName: '',\n    settingsService: Ember.inject.service('settings'),\n    results: null,\n    resultsToggle: false,\n    adapterName: 'products',\n    filtersAdapterName: 'products/filters',\n    init() {\n      this.crud.addLists(this, [{\n        name: 'taxes',\n        appendPath: 'products'\n      }, 'filters/count', 'filters/criterias', 'products/lists/menu', 'products/inventory/lists/qtyTypes', 'products/lists/invoiceDescriptions', 'products/lists/tags', 'products/lists/display-tags', 'products/lists/product-display-position', 'products/lists/tracking', 'products/lists/types', 'products/lists/setTypes', 'products/lists/setTypesFilters', 'settings/roundingAuto', 'statuses', 'toggles/yesNo', 'units', 'units/dimensions', 'units/weight']);\n      const hideVariantChildrenInProductsSearch = this.settingsService.getProp('hideVariantChildrenInProductsSearch') || false;\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          fetchWithActiveCampaigns: true,\n          hideVariantChildrenInProductsSearch\n        }\n      });\n      filters.set('showStarred', true);\n      this.set('filters', filters);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.loadTabTask.perform();\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const model = loadInstructions.getData('model');\n        if (model) {\n          this.display(loadInstructions.getData('model'));\n        } else {\n          const id = loadInstructions.getData('find.id');\n          const found = yield this.findTask.perform({\n            appendPath: id\n          });\n          this.display(found);\n        }\n      } else {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        const results = yield this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters\n        });\n        this.set('results', results);\n        this.dash({}, results);\n      }\n    }),\n    dashOverview() {\n      // when called by overview nav menu, remove results array so will fetch results again\n      this.set('results', []);\n      this.dash();\n    },\n    dash() {\n      this.filters.set('showResults', false);\n      const tab = this.tab;\n      let results = this?.results ?? [];\n      if (_nventor.default.isNilOrEmpty(results)) {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        filters.setData('query', '');\n        results = this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters\n        });\n        this.set('results', results);\n      }\n      this.set('newModel', false);\n      const subTabOptions = {\n        component: 'products/panels-dash'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    showShopWizard(model, tabOptions) {\n      const loadInstructions = tabOptions.loadInstructions || {};\n      tabOptions.loadInstructions = R.mergeRight({\n        component: 'products/panels-display/shop-display'\n      })(loadInstructions);\n      // this.tabsManager.replaceSubTab(tab, subTabOptions, tabOptions)\n      this.display(model, {\n        tabOptions\n      });\n    },\n    display(model, {\n      tabOptions\n    } = {}) {\n      if (model?._data?._key) {\n        this._display(...arguments);\n      } else {\n        // if no model then display dash (when model has been deleted)\n        this.dash();\n      }\n    },\n    _display(model, {\n      tabOptions\n    } = {}) {\n      const browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;\n      if (browserWidth < 1300) {\n        this.filters.set('showResults', false);\n      }\n      this.set('filters.showFilters', false);\n      const tab = this.tab;\n      const panelOptions = {\n        component: 'products/panels-display',\n        model: model\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions, tabOptions);\n    },\n    importTask: (0, _emberConcurrency.task)(function* (onCloseDialogAction, importData) {\n      const payload = {\n        batch: importData\n      };\n      yield this.server.call('POST', 'api/protected/products/batch', payload);\n      onCloseDialogAction();\n    }).drop(),\n    new(subTabOptions) {\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    inventory(subTabOptions) {\n      // create tab within product tab\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    toggleResults(results) {\n      const subTab = this.tabsManager.getActiveSubTab(this.tab);\n      if (subTab?.component === 'products/panels-dash') {\n        return results;\n      }\n      this.filters.set('showResults', true);\n      return results;\n    },\n    quickAddNew() {\n      const name = this.name || '';\n      const resourceKeyTemp = _nventor.default.random.alphaNum(8);\n      const data = {\n        name,\n        resourceKeyTemp\n      };\n\n      // setup new products model\n      const model = this.crud.setupNewRecord({\n        adapterName: 'products',\n        data\n      });\n      this.set('newModel', model);\n    },\n    edit(model, {\n      tabOptions\n    } = {}) {\n      const tab = this.tab;\n      const panelOptions = {\n        component: 'products/panels-edit',\n        model: model\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions, tabOptions);\n    },\n    import(subTabOptions) {\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }\n    // actions: {\n    // dash () {\n    //   this.dash()\n    // },\n\n    // inventory (subTabOptions) {\n    //   // create tab within product tab\n    //   this.inventory(subTabOptions)\n    // },\n\n    // new (subTabOptions) {\n    //   // create tab within product tab\n    //   this.new(subTabOptions)\n    // },\n\n    // import (subTabOptions) {\n    //   const tab = this.tab\n    //   this.tabsManager.replaceSubTab(tab, subTabOptions)\n    // },\n\n    // quickAddNew () {\n    //   this.quickAddNew(...arguments)\n    // },\n\n    // afterQuickAddNew () {\n    //   this.afterQuickAddNew(...arguments)\n    // }\n    // }\n  }, _applyDecoratedDescriptor(_obj, \"dashOverview\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"dashOverview\"), _obj), _applyDecoratedDescriptor(_obj, \"dash\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"dash\"), _obj), _applyDecoratedDescriptor(_obj, \"showShopWizard\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"showShopWizard\"), _obj), _applyDecoratedDescriptor(_obj, \"display\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"display\"), _obj), _applyDecoratedDescriptor(_obj, \"_display\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"_display\"), _obj), _applyDecoratedDescriptor(_obj, \"new\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"new\"), _obj), _applyDecoratedDescriptor(_obj, \"inventory\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"inventory\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleResults\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"toggleResults\"), _obj), _applyDecoratedDescriptor(_obj, \"quickAddNew\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"quickAddNew\"), _obj), _applyDecoratedDescriptor(_obj, \"edit\", [_dec0], Object.getOwnPropertyDescriptor(_obj, \"edit\"), _obj), _applyDecoratedDescriptor(_obj, \"import\", [_dec1], Object.getOwnPropertyDescriptor(_obj, \"import\"), _obj), _obj));\n});","define(\"client/pods/components/products/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NegJZaLc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"afterTabSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\",\\\"ignoreForComponent\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[]],\\\"products/panels-dash\\\"]]]],null],\\\"products\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@disallowedForFeatures\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@displayAsSubHeaderLabel\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[\\\"fas fa-filter\\\",[28,\\\"if\\\",[[23,4,[]],\\\"advanced search\\\",\\\"\\\"],null],true,[28,\\\"if\\\",[[23,4,[]],false,true],null],[23,0,[\\\"filters\\\",\\\"showFilters\\\"]],[23,5,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@displayAsSubHeaderLabel\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@onSubmit\\\"],[\\\"fas fa-star\\\",[28,\\\"if\\\",[[23,4,[]],\\\"starred\\\",\\\"\\\"],null],true,[28,\\\"if\\\",[[23,4,[]],false,true],null],[23,0,[\\\"filters\\\",\\\"showStarred\\\"]],[23,5,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"products\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@filters\\\",\\\"@count\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\"],[[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"products/search-results-item\\\",[],[[\\\"@result\\\",\\\"@query\\\"],[[23,2,[]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showStarred\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/starred\\\",[],[[\\\"@filters\\\",\\\"@onSearchTask\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleResults\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"showFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/scroll-into-view\\\",[[12,\\\"class\\\",\\\"tab-grid__filter-container\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"products/filters-advanced\\\",[],[[\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onSearch\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"onAfter\\\"],[[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleResults\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchDefaultDataTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,6,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"filters\\\",\\\"newModel\\\",\\\"onAfterCreateRecordTask\\\",\\\"onCancel\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onImportTask\\\",\\\"onPaginationTask\\\",\\\"onQuickAddNew\\\",\\\"onReloadSearchRecordsTask\\\",\\\"onSearchTask\\\",\\\"showShopWizard\\\",\\\"results\\\",\\\"tab\\\",\\\"tabParent\\\"],[[24,[\\\"filters\\\"]],[23,0,[\\\"newModel\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"edit\\\"]]],null],[24,[\\\"importTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"quickAddNew\\\"],null],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[24,[\\\"searchAdvancedTask\\\"]],[24,[\\\"showShopWizard\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,1,[]],[23,6,[]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/table-view/campaign-detail-picker-row/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-extension\"], function (_exports, _emberConcurrency, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    productsService: Ember.inject.service('products'),\n    shortcuts: Ember.inject.service(),\n    tagName: '',\n    showUploadsRow: false,\n    hasShortcuts: true,\n    init() {\n      this._super(...arguments);\n      this.set('shortcutsMap', [{\n        keys: [['Meta', 'Enter'], ['Control', 'Enter']],\n        handler: this.quickSaveTask\n      }, {\n        keys: ['Alt', 'Enter'],\n        handler: this.showWizardModal\n      }]);\n      this.setupTask.perform();\n    },\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const recurringFilters = yield this.productsService.getRecurringFiltersTask.perform();\n      this.set('recurringFilters', recurringFilters);\n    }),\n    // modelProxy: computed('model', 'tableViewOptions.{isPicker,proxies.@each.itemKey}', function () {\n    //   if (this?.tableViewOptions?.isPicker) {\n    //     const proxies = this?.tableViewOptions?.proxies || []\n    //     const itemKey = this?.model?._data?._key\n    //     const proxy = R.find(R.propEq('itemKey', itemKey))(proxies)\n    //     if (proxy) {\n    //       return proxy\n    //     }\n    //   }\n    //   return {}\n    // }),\n\n    isReadonly: Ember.computed('isEditing', 'isNew', function () {\n      if (this.isEditing || this.isNew) {\n        return false;\n      }\n      return true;\n    }),\n    isFiltersReadonly: Ember.computed('isEditing', 'isNew', function () {\n      if (this.isEditing || this.isNew) {\n        return true;\n      }\n      return false;\n    }),\n    isProductSetsReadonly: Ember.computed('isNew', 'isEditing', 'isReadonly', function () {\n      if (this.isNew) {\n        return false;\n      }\n      let isProductSetsReadonly = false;\n\n      // option cannot be edited after saving\n      if (this.isEditing) {\n        isProductSetsReadonly = true;\n      }\n      if (!isProductSetsReadonly) {\n        isProductSetsReadonly = this.isReadonly;\n      }\n      return isProductSetsReadonly;\n    }),\n    removeCampaignDetailTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.model;\n      model.set('isSelected', false);\n      const tableViewOptions = this?.tableViewOptions || {};\n      yield tableViewOptions?.onSelectTask?.perform?.(model, false);\n    }),\n    showWizardModal(currentStep = 0) {\n      const model = this.model;\n      this.set('currentStep', 0);\n      const setType = model.getData('setType');\n      if (!setType) {\n        return this.showStepTemplate();\n      }\n\n      // if (this.currentStep === 0) {\n      return this.showStepSet();\n      // }\n\n      // return this.showStepTemplate()\n    },\n    showStepSet() {\n      this.set('currentStep', 0);\n      const model = this.model;\n      const setType = model.getData('setType');\n      const panels = R_.dotPath('crud.lists.products-lists-editorSubPanels')(this) || [];\n      const panel = R.find(R.pathEq(['_data', 'value'], setType))(panels);\n      if (panel) {\n        this.tabsManager.displaySubPanel(this, panel);\n        this.set('isSetTypeModalVisible', true);\n      }\n    },\n    showStepTemplate() {\n      this.set('currentStep', 1);\n      const panels = R_.dotPath('crud.lists.products-lists-editorSubPanels')(this) || [];\n      const panel = R.find(R.pathEq(['_data', 'value'], 'webpages'))(panels);\n      if (panel) {\n        this.tabsManager.displaySubPanel(this, panel);\n        this.set('isSetTypeModalVisible', true);\n      }\n    },\n    actions: {\n      clickRow() {\n        if (this.onMainAction) {\n          this.onMainAction(...arguments);\n        }\n      },\n      /**\n       * sales tax selected. if salesTaxRate selected, auto set purchasesTaxRate (and vice versa)\n       */\n      salesTaxRateSelected(taxModel) {\n        const model = this.model;\n        const taxRate = taxModel.getData('value');\n        const purchasesTaxKey = model.getData('purchasesTaxRateKey');\n\n        // manually set tax rate\n        model.setData('salesTaxRate', taxRate);\n        if (purchasesTaxKey == null || purchasesTaxKey === 'auto') {\n          // auto setData values for purchases\n          // model.setData('purchasesTaxRateLabel', taxModel.getData('label'));\n          model.setData('purchasesTaxRateKey', taxModel.getData('_key'));\n          // model.setData('purchasesTaxRate', taxRate);\n        }\n      },\n      /**\n       * purchases tax selected. if salesTaxRate selected, auto set purchasesTaxRate (and vice versa)\n       */\n      purchasesTaxRateSelected(taxModel) {\n        const model = this.model;\n        const taxRate = taxModel.getData('value');\n        const salesTaxKey = model.getData('salesTaxRateKey');\n\n        // manually set tax rate\n        model.setData('purchasesTaxRate', taxRate);\n        if (salesTaxKey == null || salesTaxKey === 'auto') {\n          // auto setData values for purchases\n          // model.setData('salesTaxRateLabel', taxModel.getData('label'));\n          model.setData('salesTaxRateKey', taxModel.getData('_key'));\n          // model.setData('salesTaxRate', taxRate);\n        }\n      },\n      setSetType(setType) {\n        const model = this.model;\n        model.setData('isSet', false);\n        model.setData('isSetWithChoices', false);\n        model.setData('hasVariants', false);\n        const selectedSetType = setType.getData('value');\n        if (selectedSetType) {\n          model.setData(selectedSetType, true);\n        }\n        // this.setEditorSubPanels()\n      },\n      deselectSetType() {\n        const model = this.model;\n        model.setData('isSet', false);\n        model.setData('isSetWithChoices', false);\n        model.setData('hasVariants', false);\n      },\n      updateVariantChildrenList({\n        originalModel\n      }) {\n        const model = this.model;\n        return model.updateVariantChildrenList({\n          originalModel,\n          setInitialValue: this.isEditing\n        });\n      },\n      showWizardModal() {\n        this.showWizardModal();\n      },\n      closeWizardModal() {\n        this.set('isSetTypeModalVisible', false);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"showWizardModal\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"showWizardModal\"), _obj), _applyDecoratedDescriptor(_obj, \"showStepSet\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"showStepSet\"), _obj), _applyDecoratedDescriptor(_obj, \"showStepTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"showStepTemplate\"), _obj), _obj));\n});","define(\"client/pods/components/products/table-view/campaign-detail-picker-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y4xEhHrb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"subTab\\\",\\\"onHideDropdown\\\",\\\"onHideDropdown\\\",\\\"schedule\\\",\\\"index\\\",\\\"@onDash\\\",\\\"@model\\\",\\\"@adapterName\\\",\\\"@tableViewOptions\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[24,[\\\"filters\\\",\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"tableViewOptions\\\",\\\"isPicker\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"images\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"images\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"name\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"code\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product code\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],[28,\\\"array\\\",[\\\"type\\\",\\\"setType\\\"],null],\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product type\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"tags\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"inventory\\\"],null],false],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"unit\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"status\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",false],[12,\\\"class\\\",\\\"table-view__detail-row\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"clickRow\\\",[24,[\\\"model\\\"]]]],[3,\\\"on\\\",[\\\"keydown\\\",[28,\\\"fn\\\",[[23,0,[\\\"shortcuts\\\",\\\"onKeyDown\\\"]],[23,0,[\\\"shortcutsMap\\\"]]],null]]],[3,\\\"on\\\",[\\\"keyup\\\",[28,\\\"fn\\\",[[23,0,[\\\"shortcuts\\\",\\\"onKeyUp\\\"]],false],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,10,[\\\"isPicker\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"isSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"remove product from shop\\\",\\\"button--delete\\\",\\\"fas fa-trash\\\",[23,10,[\\\"onSelectTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"removeCampaignDetailTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@isRunning\\\",\\\"@onToggle\\\"],[[23,8,[\\\"isSelected\\\"]],[23,10,[\\\"onSelectTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,10,[\\\"onSelectTask\\\"]],[23,8,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"campaignDetail\\\",\\\"_data\\\",\\\"status\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"if\\\",[[24,[\\\"model\\\",\\\"campaignDetail\\\",\\\"isOverSalesLimitedQty\\\"]],\\\"disabled\\\",[24,[\\\"model\\\",\\\"campaignDetail\\\",\\\"statusClass\\\"]]],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"model\\\",\\\"campaignDetail\\\",\\\"_data\\\",\\\"status\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"products/over-sales-limited-qty-tag\\\",[],[[\\\"@isOverSalesLimitedQty\\\",\\\"@overSalesLimitedQtyStatus\\\"],[[24,[\\\"model\\\",\\\"campaignDetail\\\",\\\"isOverSalesLimitedQty\\\"]],[24,[\\\"model\\\",\\\"campaignDetail\\\",\\\"isOverSalesLimitedQtyStatus\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowUploads\\\",\\\"@model\\\",\\\"@showDefaultImagePreview\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@imageWidth\\\"],[[22,\\\"tab\\\"],false,false,false,[23,0,[\\\"model\\\"]],false,true,\\\"products\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"40\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"hideIsEmpty\\\",\\\"model\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",true,[24,[\\\"errors\\\"]],\\\"name\\\",false,[24,[\\\"model\\\"]],\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"autofocus\\\",\\\"isRequired\\\",\\\"onInput\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],true,true,[24,[\\\"onUpdateVariantChildrenList\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"hideIsEmpty\\\",\\\"model\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"code\\\",false,[24,[\\\"model\\\"]],\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"onInput\\\",\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"onUpdateVariantChildrenList\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"isEditing\\\"]]],null],\\\"flex-container-row\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"recurringSchedulesEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"recurring schedules\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"recurringSchedulesOnly\\\"]]],null,{\\\"statements\\\":[[0,\\\"              (\\\"],[1,[28,\\\"tt\\\",[\\\"recurring_only\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,8,[\\\"_data\\\",\\\"recurringSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,5,[\\\"_data\\\",\\\"label\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"type\\\",\\\"products\\\"]],{\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"list\\\",\\\"value\\\"],[\\\"type\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]]]],{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"typeProducts\\\",\\\"products\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"type\\\",[24,[\\\"errors\\\"]],\\\"type\\\",\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"list\\\",\\\"model\\\",\\\"disbaled\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[24,[\\\"model\\\"]],[24,[\\\"isReadonly\\\"]],\\\"_data.type\\\",false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[4]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isVariantChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"setType\\\",\\\"products\\\"]],{\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"label\\\",\\\"list\\\",\\\"value\\\"],[\\\"setTypes\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypes\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"setType\\\"]]]],{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"setTypes\\\",[24,[\\\"errors\\\"]],\\\"type\\\",\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"list\\\",\\\"disabled\\\",\\\"model\\\",\\\"valueKey\\\",\\\"allowEmpty\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-setTypes\\\"]],[24,[\\\"isProductSetsReadonly\\\"]],[24,[\\\"model\\\"]],\\\"_data.setType\\\",true,[28,\\\"action\\\",[[23,0,[]],\\\"setSetType\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"deselectSetType\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[3]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[24,[\\\"model\\\",\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"products/inventory/inventory-status-tooltip\\\",null,[[\\\"product\\\",\\\"itemKey\\\",\\\"showQty\\\"],[[24,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"itemKey\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"productTypes\\\",\\\"inventory\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"trackInventory\\\",\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\",\\\"toggleValue\\\"],[[24,[\\\"isReadonly\\\"]],\\\"on\\\",\\\"off\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"tracking\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"hideIsEmpty\\\",\\\"model\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"unit\\\",false,[24,[\\\"model\\\"]],\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"units-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"units\\\",true]]],true,[22,\\\"isReadonly\\\"],true,\\\"_data._key\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"unit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],true,[22,\\\"tab\\\"],false,[24,[\\\"model\\\",\\\"_data\\\",\\\"unitKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"status\\\",\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"model\\\",\\\"statusClass\\\"]],true,[24,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isNew\\\"]],[24,[\\\"isEditing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"disabled\\\",\\\"modalDialogIsVisible\\\",\\\"shortcutsMap\\\",\\\"onSubmit\\\"],[\\\"fas fa-ellipsis-h\\\",\\\"advanced\\\",[24,[\\\"disabled\\\"]],[24,[\\\"isSetTypeModalVisible\\\"]],[24,[\\\"shortcutsMap\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"showWizardModal\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"component\\\",[[23,2,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"model\\\",\\\"originalModel\\\",\\\"errors\\\",\\\"isDuplicate\\\",\\\"isReadonly\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isDisabled\\\",\\\"onUpdateVariantChildrenList\\\",\\\"onSalesTaxRateSelected\\\",\\\"onPurchasesTaxRateSelected\\\"],[[23,2,[]],[24,[\\\"model\\\"]],[24,[\\\"originalModel\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"isDuplicate\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"isDisabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"updateVariantChildrenList\\\",[28,\\\"hash\\\",null,[[\\\"originalModel\\\"],[[24,[\\\"originalModel\\\"]]]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"salesTaxRateSelected\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"purchasesTaxRateSelected\\\"],null]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"isVariantChild\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[22,\\\"isDisabled\\\"],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[[23,9,[]],[23,8,[]],true,[23,7,[]]]]]],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"isRunning\\\"]],[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"closeWizardModal\\\"],null]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[24,[\\\"isRunning\\\"]],[24,[\\\"disabled\\\"]],[28,\\\"perform\\\",[[24,[\\\"quickSaveTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"currentStep\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n                \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"fas fa-arrow-right\\\",\\\"next step\\\",[24,[\\\"isRunning\\\"]],[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"showStepTemplate\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"store-items__advanced-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"products/files/files-gallery-uploader\\\",null,[[\\\"tab\\\",\\\"allowUploads\\\",\\\"allowSetDefault\\\",\\\"label\\\",\\\"translate\\\",\\\"resource\\\",\\\"resourceKey\\\",\\\"showDefaultImagePreview\\\"],[[24,[\\\"tab\\\"]],true,true,[24,[\\\"model\\\",\\\"_data\\\",\\\"item\\\"]],false,\\\"products\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],false]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/table-view/campaign-detail-picker-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/table-view/campaigns-list/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 ProductsTableViewCampaignsListComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('products'), _dec3 = Ember._tracked, _class = class ProductsTableViewCampaignsListComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"adapterName\", 'products/lists/campaigns');\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"campaignDetails\", _descriptor3, this);\n    }\n    *fetchCampaignsListTask() {\n      const _key = this?.args?.model?._data?._key;\n      this.campaignDetails = yield this.productsService.fetchCampaignsForProductTask.perform(_key);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"campaignDetails\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignsListTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignsListTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/products/table-view/campaigns-list/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D92xrZYm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"campaignDetail\\\",\\\"campaignDetail\\\",\\\"@itemClassNames\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,4,[\\\"productCampaignsData\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-desc--italics\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"not yet addded to any shops\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"productCampaignsData\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@classNames\\\",\\\"@tabOptions\\\"],[true,[23,2,[\\\"campaignKey\\\"]],false,[23,3,[]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"campaignKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag u-truncate \\\",[28,\\\"unless\\\",[[23,2,[\\\"isActive\\\"]],\\\"is-danger\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"campaignName\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"hasManyProductCampaignsData\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@hasToggleIconRight\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[false,\\\"fas fa-ellipsis-h\\\",[28,\\\"perform\\\",[[23,0,[\\\"fetchCampaignsListTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchCampaignsListTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"campaignDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-truncate products-table-view--shops\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[23,1,[\\\"campaignKey\\\"]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"campaignKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[28,\\\"unless\\\",[[23,1,[\\\"isActive\\\"]],\\\"is-danger\\\"],null]]]],[8],[1,[23,1,[\\\"campaignName\\\"]],false],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/table-view/campaigns-list/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/table-view/detail-row/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-extension\"], function (_exports, _emberConcurrency, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    productsSerivce: Ember.inject.service('products'),\n    shortcuts: Ember.inject.service(),\n    tagName: '',\n    showUploadsRow: false,\n    hasShortcuts: true,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['statuses', 'products/lists/tags']);\n      this.set('shortcutsMap', [{\n        keys: [['Meta', 'Enter'], ['Control', 'Enter']],\n        handler: this.quickSaveTask\n      }, {\n        keys: ['Alt', 'Enter'],\n        handler: this.showWizardModal\n      }]);\n    },\n    isSelected: Ember.computed('tableViewOptions.selectedItems.[]', function () {\n      const selectedItems = this?.tableViewOptions?.selectedItems || [];\n      if (selectedItems.indexOf(this.model) > -1) {\n        return true;\n      }\n      return false;\n    }),\n    isSingleOrBulkEditing: Ember.computed('isSingleEditing', 'tableViewOptions.isBulkEditing', function () {\n      return this.isSingleEditing || this.tableViewOptions.isBulkEditing;\n    }),\n    isReadonly: Ember.computed('isEditing', 'isNew', 'isSingleOrBulkEditing', function () {\n      if (this.isEditing || this.isNew || this.isSingleOrBulkEditing) {\n        return false;\n      }\n      return true;\n    }),\n    isFiltersReadonly: Ember.computed('isEditing', 'isNew', function () {\n      if (this.isEditing || this.isNew) {\n        return true;\n      }\n      return false;\n    }),\n    isProductSetsReadonly: Ember.computed('isNew', 'isEditing', 'isReadonly', function () {\n      if (this.isNew) {\n        return false;\n      }\n      let isProductSetsReadonly = false;\n\n      // option cannot be edited after saving\n      if (this.isEditing) {\n        isProductSetsReadonly = true;\n      }\n      if (!isProductSetsReadonly) {\n        isProductSetsReadonly = this.isReadonly;\n      }\n      return isProductSetsReadonly;\n    }),\n    quickSaveTask: (0, _emberConcurrency.task)(function* () {\n      return yield this.crud.createRecordTask.perform({\n        adapterName: 'products',\n        model: this.model,\n        onAfter: this.tableViewOptions?.onAfterQuickAddNew,\n        component: this\n      });\n    }),\n    updateBulkEditingTask: (0, _emberConcurrency.task)(function* ({\n      appendPath = '',\n      model\n    }) {\n      if (RA.isNilOrEmpty(appendPath)) {\n        appendPath = '';\n      }\n      if (this.tableViewOptions?.isBulkEditing) {\n        yield this.updateTask.perform({\n          appendPath,\n          model\n        });\n      }\n    }),\n    updateTask: (0, _emberConcurrency.task)(function* ({\n      appendPath,\n      model\n    }) {\n      model = model || this.model;\n      let dirty = model;\n      if (!model.isDirty) {\n        dirty = this.crud.setupDirty({\n          adapterName: 'products',\n          model\n        });\n      }\n      const product = model.product;\n      const updated = yield this.crud.replaceRecordTask.perform({\n        adapterName: 'products',\n        appendPath,\n        model: dirty,\n        component: this\n      });\n      if (updated && !this.tableViewOptions?.isBulkEditing) {\n        this.set('model', updated);\n        this.set('original', false);\n        this.set('isSingleEditing', false);\n      }\n      if (updated) {\n        this.set('errors', false);\n      }\n    }),\n    showWizardModal(currentStep = 0) {\n      const model = this.model;\n      this.set('currentStep', 0);\n      const setType = model.getData('setType');\n      if (!setType) {\n        return this.showStepTemplate();\n      }\n\n      // if (this.currentStep === 0) {\n      return this.showStepSet();\n      // }\n\n      // return this.showStepTemplate()\n    },\n    showStepSet() {\n      this.set('currentStep', 0);\n      const model = this.model;\n      const setType = model.getData('setType');\n      const panels = R_.dotPath('crud.lists.products-lists-editorSubPanels')(this) || [];\n      const panel = R.find(R.pathEq(['_data', 'value'], setType))(panels);\n      if (panel) {\n        this.tabsManager.displaySubPanel(this, panel);\n        this.set('isSetTypeModalVisible', true);\n      }\n    },\n    showStepTemplate() {\n      this.set('currentStep', 1);\n      const panels = R_.dotPath('crud.lists.products-lists-editorSubPanels')(this) || [];\n      const panel = R.find(R.pathEq(['_data', 'value'], 'webpages'))(panels);\n      if (panel) {\n        this.tabsManager.displaySubPanel(this, panel);\n        this.set('isSetTypeModalVisible', true);\n      }\n    },\n    actions: {\n      clickRow() {\n        if (this.onMainAction) {\n          this.onMainAction(...arguments);\n        }\n      },\n      /**\n       * sales tax selected. if salesTaxRate selected, auto set purchasesTaxRate (and vice versa)\n       */\n      salesTaxRateSelected(taxModel) {\n        const model = this.model;\n        const taxRate = taxModel.getData('value');\n        const purchasesTaxKey = model.getData('purchasesTaxRateKey');\n\n        // manually set tax rate\n        model.setData('salesTaxRate', taxRate);\n        if (purchasesTaxKey == null || purchasesTaxKey === 'auto') {\n          // auto setData values for purchases\n          // model.setData('purchasesTaxRateLabel', taxModel.getData('label'));\n          model.setData('purchasesTaxRateKey', taxModel.getData('_key'));\n          // model.setData('purchasesTaxRate', taxRate);\n        }\n      },\n      /**\n       * purchases tax selected. if salesTaxRate selected, auto set purchasesTaxRate (and vice versa)\n       */\n      purchasesTaxRateSelected(taxModel) {\n        const model = this.model;\n        const taxRate = taxModel.getData('value');\n        const salesTaxKey = model.getData('salesTaxRateKey');\n\n        // manually set tax rate\n        model.setData('purchasesTaxRate', taxRate);\n        if (salesTaxKey == null || salesTaxKey === 'auto') {\n          // auto setData values for purchases\n          // model.setData('salesTaxRateLabel', taxModel.getData('label'));\n          model.setData('salesTaxRateKey', taxModel.getData('_key'));\n          // model.setData('salesTaxRate', taxRate);\n        }\n      },\n      setSetType(setType) {\n        const model = this.model;\n        model.setData('isSet', false);\n        model.setData('isSetWithChoices', false);\n        model.setData('hasVariants', false);\n        const selectedSetType = setType.getData('value');\n        if (selectedSetType) {\n          model.setData(selectedSetType, true);\n        }\n        // this.setEditorSubPanels()\n      },\n      deselectSetType() {\n        const model = this.model;\n        model.setData('isSet', false);\n        model.setData('isSetWithChoices', false);\n        model.setData('hasVariants', false);\n      },\n      updateVariantChildrenList({\n        originalModel\n      }) {\n        const model = this.model;\n        return model.updateVariantChildrenList({\n          originalModel,\n          setInitialValue: this.isEditing\n        });\n      },\n      showWizardModal() {\n        this.showWizardModal();\n      },\n      closeWizardModal() {\n        this.set('isSetTypeModalVisible', false);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"showWizardModal\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"showWizardModal\"), _obj), _applyDecoratedDescriptor(_obj, \"showStepSet\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"showStepSet\"), _obj), _applyDecoratedDescriptor(_obj, \"showStepTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"showStepTemplate\"), _obj), _obj));\n});","define(\"client/pods/components/products/table-view/detail-row/sets-editor/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.isEditing || this.isNew) {\n        const model = this.model;\n        model.newBlankSetDetail();\n      }\n    },\n    isReadonlyAndAvailable: Ember.computed('model._data.isSet', 'isReadonly', function () {\n      if (!this.get('model._data.isSet')) {\n        return true;\n      }\n      return this.isReadonly;\n    }),\n    actions: {\n      loadProduct(model, detail, product) {\n        if (model.hasDuplicateSetDetailsProduct(product)) {\n          const msg = this.intl.t('duplicate product');\n          window.alert(msg);\n          model.resetSetDetail(detail);\n        } else {\n          model.loadChildProduct(detail, product);\n          model.newBlankSetDetail();\n        }\n      },\n      resetSetDetail(model, detail) {\n        model.resetSetDetail(detail);\n      },\n      removeSetDetail(model, detail) {\n        const msg = this.intl.t('are you sure you want to remove');\n        if (window.confirm(msg)) {\n          const model = this.model;\n          model.removeSetDetail(detail);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/products/table-view/detail-row/sets-editor/details-editor/component\", [\"exports\", \"client/pods/mixins/errors\", \"client/pods/mixins/crud\", \"ember-concurrency\"], function (_exports, _errors, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _errors.default, {\n    productsService: Ember.inject.service('products'),\n    tagName: '',\n    showUploadsRow: false,\n    init() {\n      this._super(...arguments);\n      const productsFilters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'productsList',\n          excludes: [{\n            key: 'setType',\n            value: 'isSet'\n          }, {\n            key: 'setType',\n            value: 'isSetWithChoices'\n          }, {\n            key: 'setType',\n            value: 'hasVariants'\n          }]\n        }\n      });\n      this.set('productsFilters', productsFilters);\n    },\n    searchProductsTask: (0, _emberConcurrency.task)(function* ({\n      adapterName = 'products',\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        const filters = this.productsFilters;\n        // filters.setData('query', query)\n\n        const results = yield this.searchInputTask.perform({\n          adapterName,\n          filters\n        }, query);\n        return results;\n      }\n    })\n  });\n});","define(\"client/pods/components/products/table-view/detail-row/sets-editor/details-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uWiNfbKX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"product code\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__padding\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"tagName\\\",\\\"inputPvtClassNames\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\",\\\"selectedItemValueKey\\\",\\\"hasSelectedKey\\\",\\\"hasSelected\\\",\\\"hasSelectedIcon\\\",\\\"readonly\\\",\\\"isRunning\\\",\\\"filters\\\",\\\"hasPagination\\\",\\\"onSearch\\\",\\\"onPaginationTask\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[\\\"span\\\",\\\"table-form__input table-form__input--120\\\",\\\"search products\\\",[24,[\\\"isReadonly\\\"]],false,[24,[\\\"productsList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemCode\\\"]],\\\"_data.code\\\",\\\"_data._key\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],\\\"fas fa-bookmark\\\",[24,[\\\"isReadonly\\\"]],[24,[\\\"searchProductsTask\\\",\\\"isRunning\\\"]],[24,[\\\"productsFilters\\\"]],true,[28,\\\"perform\\\",[[24,[\\\"searchProductsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemCode\\\"]]]]]],null],[24,[\\\"paginateSearchRecordsTask\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onLoadProduct\\\"]],[24,[\\\"model\\\"]],[24,[\\\"detail\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onResetSetDetail\\\"]],[24,[\\\"model\\\"]],[24,[\\\"detail\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"setDetails.itemCode\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"classNames\\\",\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"value\\\"],[\\\"u-full-width\\\",\\\"table-form__input table-form__input--200\\\",[24,[\\\"isReadonly\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"setDetails.item\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@allowDeselect\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@disabled\\\",\\\"@inputPvtClassNames\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,\\\"units-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"units\\\",true]]],[22,\\\"isReadonly\\\"],\\\"table-form__input table-form__input--40\\\",\\\"_data.label\\\",\\\"_data._key\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"unit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],true,[24,[\\\"detail\\\",\\\"_data\\\",\\\"unitKey\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"setDetails.unit\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputPvtClassNames\\\",\\\"readonly\\\",\\\"value\\\"],[\\\"table-form__input table-form__input--80 has-text-right\\\",[24,[\\\"isReadonly\\\"]],[24,[\\\"detail\\\",\\\"_data\\\",\\\"qty\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"setDetails.qty\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"hasStatusBadge\\\",\\\"statusBadgeClassNames\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,[24,[\\\"detail\\\",\\\"statusClass\\\"]],true,[24,[\\\"isReadonly\\\"]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/error-msg\\\",null,[[\\\"errors\\\",\\\"classNames\\\",\\\"label\\\",\\\"context\\\",\\\"icon\\\",\\\"tooltip\\\"],[[24,[\\\"validationError\\\"]],\\\"documents__details-error\\\",\\\"status\\\",\\\"setDetails.status\\\",\\\"fas fa-exclamation-circle\\\",true]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered table-form__padding\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"disabled\\\",\\\"classNames\\\",\\\"tabindex\\\",\\\"tab\\\",\\\"detail\\\",\\\"onSubmit\\\"],[[24,[\\\"isReadonly\\\"]],\\\"u-close-btn\\\",-1,[24,[\\\"tab\\\"]],[24,[\\\"detail\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onRemoveSetDetail\\\"]],[24,[\\\"model\\\"]],[24,[\\\"detail\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"files-row bg-1\\\"],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,1,[]],\\\"auto\\\",40,true,true,true,true,[22,\\\"detail\\\"],\\\"products\\\",[24,[\\\"detail\\\",\\\"_data\\\",\\\"itemKey\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/table-view/detail-row/sets-editor/details-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/table-view/detail-row/sets-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0mpBbur2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\"],\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"products/products-editor/sets-editor/details-editor\\\",null,[[\\\"isEditing\\\",\\\"isNew\\\",\\\"isHeaders\\\"],[[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]],true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"setDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"products/products-editor/sets-editor/details-editor\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"errorIndex\\\",\\\"errors\\\",\\\"model\\\",\\\"detail\\\",\\\"onLoadProduct\\\",\\\"onResetSetDetail\\\",\\\"onRemoveSetDetail\\\"],[[24,[\\\"tab\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]],[24,[\\\"isReadonlyAndAvailable\\\"]],[23,2,[]],[24,[\\\"errors\\\"]],[24,[\\\"model\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"loadProduct\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"resetSetDetail\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"removeSetDetail\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/table-view/detail-row/sets-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/products/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"osXN/BPn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"schedule\\\",\\\"index\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@isReadonly\\\",\\\"@isNew\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,0,[\\\"isAllSelected\\\"]],\\\"fas fa-xl fa-check-square\\\",\\\"far fa-xl fa-square\\\"],null],[23,8,[]],\\\"element-btn--no-border\\\",[28,\\\"fn\\\",[[23,5,[\\\"onToggleSelectAllItems\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"    \\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered td--x-small\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"adapterName\\\"],[[23,0,[\\\"filters\\\"]],\\\"products\\\"]]]],null],true,false,[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--small has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--large\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"name\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@disallowedForFeatures\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--medium\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"code\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"product code\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--small\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"unit\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"unit\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td-medium\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"brand\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"brand\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--small\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"inventory\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right td--small\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"toNumber\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"salesTaxRate\\\",true,\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"tax on sales\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right td--small\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"toNumber\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"purchasesTaxRate\\\",true,\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"tax on purchases\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--small\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"barcode\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"barcode\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"td--date-small\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/header-sort\\\",null,[[\\\"hasHeadersSort\\\",\\\"filters\\\",\\\"by\\\",\\\"adapterName\\\",\\\"onSort\\\"],[[24,[\\\"hasHeadersSort\\\"]],[24,[\\\"filters\\\"]],\\\"timestampZ_latest\\\",\\\"products\\\",[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"updated date\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-checkbox\\\",[[12,\\\"class\\\",\\\"u-icon-size-20\\\"]],[[\\\"@value\\\",\\\"@disabled\\\",\\\"@onToggle\\\"],[[23,0,[\\\"isSelected\\\"]],false,[28,\\\"fn\\\",[[23,5,[\\\"onSelectItem\\\"]],[23,0,[\\\"model\\\"]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-v-align-middle-important has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[22,\\\"rowIndex\\\"],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/status-badge\\\",[],[[\\\"@list\\\",\\\"@status\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,3,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-no-wrap\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[true,[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],false,[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"u-main-focus\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onDisplay\\\"]],[24,[\\\"model\\\"]]],null]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"hideIsEmpty\\\",\\\"model\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",true,[24,[\\\"errors\\\"]],\\\"name\\\",false,[24,[\\\"model\\\"]],\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"autofocus\\\",\\\"isRequired\\\",\\\"onInput\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],true,true,[24,[\\\"onUpdateVariantChildrenList\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@disallowedForFeatures\\\"],[[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"hideIsEmpty\\\",\\\"model\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"code\\\",false,[24,[\\\"model\\\"]],\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"onInput\\\",\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"onUpdateVariantChildrenList\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"code\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"unit\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"hideIsEmpty\\\",\\\"model\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"unit\\\",false,[24,[\\\"model\\\"]],\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"units-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"units\\\",true]]],true,[22,\\\"isReadonly\\\"],true,\\\"_data._key\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"unit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units\\\"]],true,[23,4,[]],false,[24,[\\\"model\\\",\\\"_data\\\",\\\"unitKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"brand\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"hideIsEmpty\\\",\\\"model\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"brand\\\",false,[24,[\\\"model\\\"]],\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"products/brands\\\",\\\"products/brands-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"brands\\\",true]]],true,[22,\\\"isReadonly\\\"],true,\\\"_data.label\\\",\\\"_data._key\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"brand\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-brands\\\"]],true,[23,4,[]],false,[24,[\\\"model\\\",\\\"_data\\\",\\\"brandKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"products/inventory/inventory-status-tooltip\\\",null,[[\\\"product\\\",\\\"itemKey\\\",\\\"showQty\\\"],[[24,[\\\"model\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"productTypes\\\",\\\"inventory\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"trackInventory\\\",\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\",\\\"toggleValue\\\"],[[24,[\\\"isReadonly\\\"]],\\\"on\\\",\\\"off\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"tracking\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"salesTaxRate\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"purchasesTaxRate\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"barcode\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInputClassNames\\\",\\\"errors\\\",\\\"context\\\",\\\"hideIsEmpty\\\",\\\"model\\\",\\\"documentationResource\\\"],[\\\"form__input--table-view\\\",[24,[\\\"errors\\\"]],\\\"barcode\\\",false,[24,[\\\"model\\\"]],\\\"products\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"barcode\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@iconOnly\\\",\\\"@model\\\"],[true,[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row tags-container flex-children-v-align-auto\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"classNames\\\",\\\"list\\\",\\\"value\\\"],[\\\"tags-container--margin-right-all\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"recurringSchedulesEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row tags-container flex-children-v-align-auto\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"recurring schedules\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"recurringSchedulesOnly\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  (\\\"],[1,[28,\\\"tt\\\",[\\\"recurring_only\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"recurringSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"label\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"tags\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row tags-container flex-children-v-align-auto\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@classNames\\\"],[\\\"product tags\\\",\\\"is-btn-like\\\"]]],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,3,[\\\"_data\\\",\\\"tags\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@classNames\\\"],[\\\"shop\\\",\\\"is-btn-like\\\"]]],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row tags-container flex-children-v-align-auto\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"products/table-view/campaigns-list\\\",[],[[\\\"@model\\\"],[[23,3,[]]]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"files/files-gallery-row\\\",[],[[\\\"@tab\\\",\\\"@imageWidth\\\",\\\"@imageHeight\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@onAfterSetAsDefaultImageTask\\\"],[[23,4,[]],\\\"auto\\\",40,true,true,true,[23,0,[\\\"model\\\"]],\\\"products\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,[23,0,[\\\"productsService\\\",\\\"setAsDefaultImageTask\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr new-table-view__tr--extra-row new-table-view__tr--action-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-children-v-align-auto flex-container--justify-end layouts__btns-sticky-right-row layouts__btns-outer-container--sticky-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"tooltipLabel\\\",\\\"onSubmit\\\"],[\\\"fas fa-eye\\\",\\\"view\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onDisplay\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"tbody\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr-group new-table-view__tr-group--separator\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"new-table-view__tr--separator\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/products/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/public/login-page/component\", [\"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 = Ember.Component.extend({\n    classNames: ['u-full-height']\n  });\n});","define(\"client/pods/components/public/login-page/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HVowyRcy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@params\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"site\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"user-login\\\",[],[[\\\"@params\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/public/login-page/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/qr-code-generator/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global QRCode */\n\n  class QrCodeGeneratorComponent extends _component.default {\n    get QRCodeSVG() {\n      const data = this.args.data;\n      const hasData = RA.isNotNilOrEmpty(data);\n      if (hasData) {\n        const qrCodeSvg = QRCode.generateSVG(data);\n        return qrCodeSvg?.outerHTML || '';\n      }\n      return null;\n    }\n    get qrCodeSrc() {\n      const data = this.args.data;\n      const hasData = RA.isNotNilOrEmpty(data);\n      let url = 'https://chart.googleapis.com/chart?cht=qr&chs=180x180&choe=UTF-8&chld=L|2';\n      if (hasData) {\n        url += `&chl=${encodeURIComponent(data)}`;\n        return url;\n      }\n      return url;\n    }\n  }\n  _exports.default = QrCodeGeneratorComponent;\n});","define(\"client/pods/components/qr-code-generator/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ypZqSpB4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@data\\\",\\\"@isLink\\\",\\\"@inlineSvg\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"QRCodeSVG\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"qr-code-svg-wrapper\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"QRCodeSVG\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"a\\\",true],[11,\\\"href\\\",[28,\\\"if\\\",[[23,2,[]],[23,1,[]]],null]],[10,\\\"border\\\",\\\"0\\\"],[10,\\\"rel\\\",\\\"nofollow\\\"],[10,\\\"target\\\",\\\"_blank\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-128x128\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[23,0,[\\\"qrCodeSrc\\\"]]],[8],[9],[0,\\\"\\\\n      \\\"],[7,\\\"figcaption\\\",true],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/qr-code-generator/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/recurring/schedules-table/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 RecurringSchedulesEditor = _exports.default = (_dec = Ember.inject.service('recurring'), _dec2 = Ember.inject.service, _class = class RecurringSchedulesEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"recurringService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      this.crud.addLists(this, ['recurring/schedules/options', 'discounts/types', 'statuses']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"recurringService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/recurring/schedules-table/schedules-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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 RecurringSchedulesTableSchedulesRowEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('recurring'), _class = class RecurringSchedulesTableSchedulesRowEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"recurringService\", _descriptor3, this);\n    }\n    get availableRecurringSchedules() {\n      const recurringSchedules = this.crud.lists['recurring-schedules-options'] || [];\n      const schedule = this.args.schedule;\n      const currentRecurringScheduleKey = schedule?._data?.recurringScheduleKey;\n      const model = this.args.model;\n      let alreadySelectedRecurringScheduleKeys = R.pipe(R.pathOr([], ['_data', 'recurringSchedules']), R.map(R.path(['_data', 'recurringScheduleKey'])), R.reject(RA.isNilOrEmpty))(model);\n      if (currentRecurringScheduleKey) {\n        alreadySelectedRecurringScheduleKeys = R.reject(R.equals(currentRecurringScheduleKey))(alreadySelectedRecurringScheduleKeys);\n      }\n      return R.reject(recurringSchedule => {\n        const recurringScheduleKey = recurringSchedule?._data?._key;\n        if (recurringScheduleKey === currentRecurringScheduleKey) {\n          return false;\n        }\n        if (R.includes(recurringScheduleKey)(alreadySelectedRecurringScheduleKeys)) {\n          return true;\n        }\n        return false;\n      })(recurringSchedules);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"recurringService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/recurring/schedules-table/schedules-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kpoOum3X\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@schedule\\\",\\\"@model\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"recurringSchedules.recurringScheduleKey\\\",\\\"products\\\",\\\"recurring_options\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowDynamicLabelChanges\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@labelValueKey\\\",\\\"@list\\\",\\\"@model\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"recurring/schedules/options\\\",\\\"recurring/schedules/editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"recurring settings\\\",true]]],false,[23,1,[]],true,\\\"_data._key\\\",\\\"_data.label\\\",[23,0,[\\\"availableRecurringSchedules\\\"]],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"recurringService\\\",\\\"setScheduleFromPreset\\\"]],[28,\\\"hash\\\",null,[[\\\"schedule\\\"],[[23,2,[]]]]]],null],true,[23,4,[]],false,[23,2,[\\\"_data\\\",\\\"recurringScheduleKey\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@documentationResource\\\",\\\"@context\\\",\\\"@label\\\"],[\\\"products\\\",\\\"recurringSchedules.discountType\\\",\\\"discount type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[[23,1,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"discounts-types\\\"]],true,[23,2,[\\\"_data\\\",\\\"discountType\\\"]],[23,3,[]],[23,4,[]],\\\"recurringSchedules.discountType\\\"]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"discountType\\\"]],[23,0,[\\\"constants\\\",\\\"discountTypes\\\",\\\"amount\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@documentationResource\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"products\\\",\\\"recurringSchedules.discountAmount\\\",true,\\\"discount amount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[true,[23,1,[]],[23,2,[\\\"_data\\\",\\\"discountAmount\\\"]],[23,3,[]],[23,4,[]],\\\"recurringSchedules.discountAmount\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@documentationResource\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"products\\\",\\\"recurringSchedules.discountRate\\\",true,\\\"discount rate\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@isRequired\\\",\\\"@suffix\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"recurringSchedules.discountRate\\\",true,\\\"%\\\",[23,1,[]],[23,2,[\\\"_data\\\",\\\"discountRate\\\"]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"discountType\\\"]],[23,0,[\\\"constants\\\",\\\"discountTypes\\\",\\\"rate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"recurringSchedules.allowOnSale\\\",\\\"products\\\",\\\"allow discount for on sale items\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],false,true,[23,2,[\\\"_data\\\",\\\"allowOnSale\\\"]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"allowOnSale\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"recurringSchedules.discountRateOnSale\\\",\\\"products\\\",true,\\\"discount rate for on sale items\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@suffix\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@isRequired\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@context\\\"],[\\\"%\\\",[23,1,[]],[23,2,[\\\"_data\\\",\\\"discountRateOnSale\\\"]],true,[23,3,[]],[23,4,[]],\\\"recurringSchedules.discountRateOnSale\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,1,[]],\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[23,0,[\\\"recurringService\\\",\\\"removeSchedule\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"schedule\\\"],[[23,3,[]],[23,2,[]]]]]],null],[23,2,[\\\"_data\\\",\\\"recurringScheduleKey\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/recurring/schedules-table/schedules-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/recurring/schedules-table/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wnajou2w\",\n    \"block\": \"{\\\"symbols\\\":[\\\"schedule\\\",\\\"index\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"recurringSchedulesEnabled\\\",[23,8,[]],\\\"enable recurring schedules\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,5,[]],false,true,[23,6,[\\\"_data\\\",\\\"recurringSchedulesEnabled\\\"]],[23,6,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"recurringSchedulesEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"recurringSchedulesOnly\\\",[23,8,[]],\\\"only allow recurring schedules in shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,5,[]],false,true,[23,6,[\\\"_data\\\",\\\"recurringSchedulesOnly\\\"]],[23,6,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"recurringSchedules\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"recurringSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"recurring/schedules-table/schedules-row\\\",[],[[\\\"@index\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@schedule\\\",\\\"@tab\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,1,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[23,5,[]],\\\"fas fa-plus\\\",[28,\\\"fn\\\",[[23,0,[\\\"recurringService\\\",\\\"addSchedule\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"tab\\\"],[[23,6,[]],[23,7,[]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"recurringSchedules\\\"]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/recurring/schedules-table/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/recurring/schedules/editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 RecurringSchedulesEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _class = class RecurringSchedulesEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", this.args.customAdapterName || this.args.adapterName || 'recurring/schedules/options');\n      this.crud.addLists(this, ['recurring/schedules/from', 'recurring/schedules/end']);\n      const model = this.args.model || this.args.parentModel || {};\n      const instanceId = model?.instanceId;\n      if (!instanceId) {\n        model.instanceId = R.pathOr('', ['args', 'parentModel', 'instanceId'])(this);\n      }\n      const tab = this.args.tab || {};\n      if (this.args.isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.args.tab\n      });\n    }\n\n    // get isExactDate () {\n    //   const model = this.model\n    //   if (!model) {\n    //     return false\n    //   }\n\n    //   if (model._data.end === this?.constants?.paymentTermsEnd?.exactDate) {\n    //     return true\n    //   }\n\n    //   return false\n    // }\n\n    // isMinRequiredMet: computed('model._data.{from,end}', function () {\n    //   const minRequired = ['from', 'end']\n    //   const model = this.model\n    //   let met = true\n\n    //   minRequired.forEach(function (required) {\n    //     if (isEmpty(model.getData(required))) {\n    //       met = false\n    //     }\n    //   })\n\n    //   return met\n    // }),\n\n    // _setDescription () {\n    //   const model = this.model\n    //   const intl = this.intl\n\n    //   let description = ''\n    //   const months = model.getDataInt('months')\n    //   if (months > 0) {\n    //     description = intl.t('months') + ': ' + months\n    //   }\n\n    //   const days = model.getDataInt('days')\n    //   if (days > 0) {\n    //     if (months > 0) {\n    //       description = `${description}, `\n    //     }\n\n    //     description = description + intl.t('days') + ': ' + days\n    //   }\n\n    //   const fromList = R_.dotPath('crud.lists.paymentTerms-from')(this) || []\n    //   const from = fromList.findBy('_data.value', model.getData('from'))\n\n    //   const endList = R_.dotPath('crud.lists.paymentTerms-end')(this) || []\n    //   const end = endList.findBy('_data.value', model.getData('end'))\n\n    //   if (description) {\n    //     description = description + '. '\n    //   }\n\n    //   description = description + intl.t('from') + ': ' + intl.t(from.getData('label')) + '. '\n\n    //   description = description + intl.t('end') + ': ' + intl.t(end.getData('label')) + '.'\n\n    //   model.setData('label', description)\n    // },\n\n    // // autoSetDescription: Ember.observer('model._data.months', 'model._data.days', 'model._data.from', function () {\n    // //\n    // //   this._setDescription();\n    // // }),\n\n    // beforeCreateRecord (model) {\n    //   const months = model.getDataInt('months')\n    //   model.setData('months', months)\n\n    //   const days = model.getDataInt('days')\n    //   model.setData('days', days)\n\n    //   if (!model.getData('label')) {\n    //     this._setDescription()\n    //   }\n\n    //   return model\n    // },\n\n    // afterCreateRecordTask (model) {\n    //   this.onAddItem(model)\n    //   this.onCloseDialogAction()\n    // },\n\n    // beforeReplaceRecord (model) {\n    //   const months = model.getDataInt('months')\n    //   model.setData('months', months)\n\n    //   const days = model.getDataInt('days')\n    //   model.setData('days', days)\n\n    //   if (!model.getData('label')) {\n    //     this._setDescription()\n    //   }\n\n    //   return model\n    // },\n\n    // afterReplaceRecordTask (model) {\n    //   this.onUpdateItem(model)\n    // },\n\n    // afterRemoveRecordTask () {\n    //   this.onRemoveItem(this.model)\n    // },\n\n    afterCreateRecordTask(model) {\n      this.args.onAddItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterUpdateRecordTask(model) {\n      this.args.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask() {\n      this.args.onRemoveItem?.(this.model);\n    }\n    cancel() {\n      this.args.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterUpdateRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterUpdateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/recurring/schedules/editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"76mldRWd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@disabled\\\",\\\"@tab\\\",\\\"@isEditing\\\",\\\"@onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"recurringSchedulesEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"recurringSchedules\\\",[23,9,[]],[23,3,[]],[23,8,[]],[23,7,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,10,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,3,[]],\\\"schedule\\\",\\\"schedules_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@isModal\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",true,\\\"label\\\",[23,0,[\\\"model\\\"]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,6,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@isModal\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"totalPeriods\\\",\\\"total periods\\\",true,[23,0,[\\\"model\\\"]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"has-text-right\\\",true,[23,6,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"totalPeriods\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@isModal\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"months\\\",\\\"months\\\",true,[23,0,[\\\"model\\\"]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"has-text-right\\\",true,[23,6,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"months\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"end\\\"]],[23,0,[\\\"constants\\\",\\\"paymentTermsEnd\\\",\\\"exactDate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@isModal\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"days\\\",\\\"days\\\",true,[23,0,[\\\"model\\\"]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"has-text-right\\\",true,[23,6,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"days\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],true,[23,5,[]],[23,3,[]]]]]],null],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterUpdateRecordTask\\\"]],[23,0,[\\\"model\\\"]]],null],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterCreateRecordTask\\\"]],[23,0,[\\\"model\\\"]]],null],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/recurring/schedules/editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/recurring/schedules/search-results/component\", [\"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 = Ember.Component.extend({\n    classNames: ['list-selector'],\n    itemClassNames: ['list-selector__item'],\n    legendClassNames: ['list-selector__legend'],\n    optionLabelKey: '_data.label',\n    // key that points to option's label\n    optionValueKey: '_data.value',\n    // key that points to option's value\n    value: '',\n    /**\n     * trigger onSelect action\n     * @param {object} option - selected object\n     * @param {object} optionComponent - the component sending the toggle action,\n     *                                    used to keep track of selected state\n     */\n    selectOption(option /* ,  optionComponent */) {\n      // send action to onSelect event..only used for when list is in a dropdown\n      if (this.onSelect) {\n        this.onSelect(option, this);\n      }\n    },\n    actions: {\n      /**\n       * listen for toggle event sent from options component\n       */\n      toggleOption(option, optionComponent) {\n        // list results only allows select (no deselect)\n        // handle select event\n        this.selectOption(option, optionComponent);\n      }\n    }\n  });\n});","define(\"client/pods/components/recurring/schedules/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KdxomnO3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"legend\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"legend\\\",true],[11,\\\"class\\\",[22,\\\"legendClassNames\\\"]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"legend\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"list\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-option\\\",null,[[\\\"translate\\\",\\\"rememberSelected\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"option\\\",\\\"onToggle\\\"],[[24,[\\\"translate\\\"]],false,[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey\\\"]],[24,[\\\"itemClassNames\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleOption\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"description\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/recurring/schedules/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/commissions/panels-all/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, R, R_) {\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, _dec0, _dec1, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 ReportsCommissionsPanelsAll = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _class = class ReportsCommissionsPanelsAll extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"reportsSummary\", _descriptor6, this);\n      _initializerDefineProperty(this, \"bySalesPersonsFilters\", _descriptor7, this);\n      _initializerDefineProperty(this, \"reloadSummaryResource\", _descriptor8, this);\n      _initializerDefineProperty(this, \"yyyy\", _descriptor9, this);\n      _initializerDefineProperty(this, \"mm\", _descriptor0, this);\n      _defineProperty(this, \"adapterName\", 'reports/commissions/data');\n      _defineProperty(this, \"filtersAdapterName\", 'reports/commissions/data/filters');\n      this.crud.addLists(this, ['periods/months', 'periods/years', 'commissions/lists/panels']);\n      const bySalesPersonsFilters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      // const salesPersons = R.pipe(\n      //   R_.dotPathOr([], 'args.salesPersons'),\n      //   R.map(user => {\n      //     return {\n      //       name: user?._data?.name || '',\n      //       key: user?._data?._key || '',\n      //       username: user?._data?.username || ''\n      //     }\n      //   })\n      // )(this)\n      // bySalesPersonsFilters.setData('salesPersons', salesPersons)\n      this.bySalesPersonsFilters = bySalesPersonsFilters;\n    }\n    afterLoadLists() {\n      this.getMonthAndYear();\n      this.setup();\n      this.reloadSummaryResource = R.pipe(R.pathOr([], ['crud', 'lists', 'commissions-lists-panels']), R.find(R.pathEq(['_data', 'value'], 'show all')))(this);\n    }\n    setup() {\n      this.fetchBySalesPersonsSummary.perform();\n      this.fetchReportSummaryTask.perform();\n    }\n    getMonthAndYear() {\n      const yyyy = this?.args?.yyyy || {};\n      const mm = this?.args?.mm || [];\n      let startOfMonth = '';\n      if (yyyy.value && mm.value) {\n        startOfMonth = `${yyyy.value}-${mm.value}-01`;\n      }\n      const period = this.date.getPeriod(startOfMonth);\n      this.yyyy = {\n        value: period.yyyy,\n        label: period.yyyy\n      };\n      this.mm = {\n        value: period.mm,\n        label: R.pipe(R_.dotPathOr([], 'crud.lists.periods-months'), R.find(lists => R_.dotPathEq('_data.value', period.mm, lists)), R_.dotPathOr('', '_data.label'))(this)\n      };\n    }\n    *fetchBySalesPersonsSummary() {\n      const bySalesPersonsFilters = this.bySalesPersonsFilters;\n      bySalesPersonsFilters.setData('query', '');\n      bySalesPersonsFilters.setData('mm', this.mm.value);\n      bySalesPersonsFilters.setData('yyyy', this.yyyy.value);\n      bySalesPersonsFilters.setData('isDispatched', true);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        appendPath: '/by-sales-persons',\n        filters: bySalesPersonsFilters\n      });\n      this.bySalesPersonsFilters = bySalesPersonsFilters;\n    }\n    *fetchReportSummaryTask() {\n      const yyyy = this.yyyy;\n      const mm = this.mm;\n      const data = {\n        yyyy: yyyy.value,\n        mm: mm.value,\n        salesPersons: [],\n        segments: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n      const summaryFilters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: data,\n        resultsProperty: 'results'\n      });\n      const summary = yield this.crud.findTask.perform({\n        adapterName: this.adapterName,\n        appendPath: '/summary',\n        filters: summaryFilters\n      });\n      this.reportsSummary = summary;\n    }\n    *generateSummaryAndTableTask() {\n      yield this.fetchBySalesPersonsSummary.perform();\n      yield this.fetchReportSummaryTask.perform();\n    }\n    displaySalesPerson(summaryModel) {\n      const salesPersons = this.args.salesPersons || [];\n      const summaryModelSalesPersonKey = R_.dotPathOr('', '_data.salesPersonKey', summaryModel);\n      const model = R.find(data => R_.dotPathEq('_data._key', summaryModelSalesPersonKey, data))(salesPersons);\n      this.args.onDisplayWithDate(model, this.yyyy, this.mm);\n    }\n    reloadAfterPayout() {\n      const reloadSummaryResource = this.reloadSummaryResource;\n      this.args.onDisplayPanelWithDate(reloadSummaryResource, this.yyyy, this.mm);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"reportsSummary\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"bySalesPersonsFilters\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"reloadSummaryResource\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"yyyy\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"mm\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchBySalesPersonsSummary\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchBySalesPersonsSummary\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchReportSummaryTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchReportSummaryTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"generateSummaryAndTableTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"generateSummaryAndTableTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displaySalesPerson\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"displaySalesPerson\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadAfterPayout\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadAfterPayout\"), _class.prototype), _class);\n});","define(\"client/pods/components/reports/commissions/panels-all/panels-statement/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ReportsCommissionsPanelsAllPanelsStatement = _exports.default = (_dec = Ember.inject.service, _class = class ReportsCommissionsPanelsAllPanelsStatement extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _defineProperty(this, \"hasPayouts\", false);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/reports/commissions/panels-all/panels-statement/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FgKG8W/f\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@reportsSummary\\\",\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onReloadAfterPayout\\\",\\\"@isGuest\\\",\\\"@onFetchReportSummaryTask\\\",\\\"@isEachSalesPerson\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,6,[\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"statement\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"opening balance\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"commissionOverdue\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"_data\\\",\\\"purchasesInvoicesData\\\",\\\"subtotal\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"purchases invoices this month\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"purchasesInvoicesData\\\",\\\"subtotal\\\"]]],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"_data\\\",\\\"purchasesReturnsData\\\",\\\"subtotal\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"purchases returns this month\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"purchasesReturnsData\\\",\\\"subtotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"commission due this month\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"commissionDueTotalAdjusted\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"commission refunded this month\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"commissionsDueReturnedData\\\",\\\"subtotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"payouts this month\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"payoutsThisMonthTotal\\\"]]],[[\\\"negative\\\"],[true]]],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"outstanding total\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"outstandingTotal\\\"]]],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table__td-no-border\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"reports/commissions/panels-all/payout-editor\\\",[],[[\\\"@model\\\",\\\"@maxPayoutAmount\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onMarkAsPayoutsTask\\\",\\\"@onReloadAfterPayout\\\"],[[23,1,[]],[23,1,[\\\"_data\\\",\\\"outstandingTotal\\\"]],true,false,[23,2,[]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/commissions/panels-all/panels-statement/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/commissions/panels-all/payout-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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, _dec0, _dec1, _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 ReportsCommissionsPanelsAllPayoutEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class ReportsCommissionsPanelsAllPayoutEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"date\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _initializerDefineProperty(this, \"payoutModel\", _descriptor6, this);\n      _initializerDefineProperty(this, \"originalEditAmt\", _descriptor7, this);\n      this.crud.addLists(this, ['ledgers/accounts/lists/banks']);\n    }\n    get isAllowed() {\n      if (this.args.isEditing) {\n        return true;\n      }\n\n      // THIS LOGIC IS USED IF PAYOUTS IS ONLY ALLOWED ON LATEST MONTH\n      // REMOVED FOR NOW\n\n      // const mm = this?.args?.mm || {}\n      // const yyyy = this?.args?.yyyy || {}\n      // const period = this.date.getPeriod(this.date.getNowZ())\n      // const amount = Number(this?.args?.model?._data?.outstandingTotal) || 0\n      // if (mm.value === period.mm && yyyy.value === period.yyyy) {\n      //   return true\n      // }\n\n      // return false\n      return true;\n    }\n    cancel(dirty, onCloseDialogAction) {\n      this.crud.cancelEditing({\n        adapterName: 'ledgers/journals/cashbook',\n        dirty\n      });\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    closeModalDialogAndReloadTab(onCloseDialogAction) {\n      this.args.onReloadAfterPayout();\n      onCloseDialogAction();\n    }\n    get maxPayoutWithEditAmt() {\n      const originalEditAmt = this.originalEditAmt;\n      const maxPayoutAmount = this?.args?.maxPayoutAmount || 0;\n      return parseInt(originalEditAmt) + parseInt(maxPayoutAmount);\n    }\n    createModel(model) {\n      this.originalEditAmt = this?.args?.payoutModel?._data?.total || 0;\n      if (this.args.isEditing) {\n        const payoutModel = this.dataManager.setAsRecord({\n          adapterName: 'ledgers/journals/cashbook',\n          data: this.args.payoutModel\n        });\n        this.payoutModel = this.crud.setupDirty({\n          adapterName: 'ledgers/journals/cashbook',\n          model: payoutModel,\n          component: this\n        });\n        // this.maxPayoutWithEditAmt = parseInt(this.payoutModel._data.amount) + parseInt(this.args.maxPayoutAmount)\n      } else {\n        const todayZ = this.date.getStartOfDayZ();\n        const payoutModel = this.crud.setupNewRecord({\n          adapterName: 'ledgers/journals/cashbook',\n          data: {\n            dateZ: todayZ,\n            amount: model?._data?.outstandingTotal,\n            comments: '',\n            contra: model._data.salesPerson,\n            contactKey: model._data.salesPersonKey,\n            description: 'Payment',\n            txType: 'cashOut',\n            relationship: 'supplier',\n            docType: 'commissions'\n          }\n        });\n        // this.maxPayoutWithEditAmt = 0 + parseInt(this.args.maxPayoutAmount)\n        this.payoutModel = payoutModel;\n      }\n      this.updateDateParams();\n    }\n    updateDateParams() {\n      const payoutModel = this.payoutModel;\n      const dateZ = payoutModel?._data?.dateZ;\n      const period = this.date.getPeriod(dateZ);\n      payoutModel.setData('ref', period.monthStart);\n      // payoutModel.setData('dateZ', period.dateZ)\n      payoutModel.setData('dd', period.dd);\n      payoutModel.setData('mm', period.mm);\n      payoutModel.setData('yyyy', period.yyyy);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"payoutModel\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"originalEditAmt\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeModalDialogAndReloadTab\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"closeModalDialogAndReloadTab\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createModel\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"createModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateDateParams\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDateParams\"), _class.prototype), _class);\n});","define(\"client/pods/components/reports/commissions/panels-all/payout-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"519+MDlK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@onFetchPaymentsTask\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@onMarkAsPayoutsTask\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,2,[\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@isPushBtn\\\",\\\"@icon\\\",\\\"@classNames\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[\\\"payout\\\",[28,\\\"if\\\",[[23,3,[]],true,false],null],[28,\\\"if\\\",[[23,3,[]],\\\"fas fa-pen fa-xs\\\"],null],\\\"is-primary\\\",[28,\\\"fn\\\",[[23,0,[\\\"createModel\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,0,[\\\"payoutModel\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isReadonly\\\"],[\\\"_data.dateZ\\\",[23,0,[\\\"payoutModel\\\"]],[23,0,[\\\"payoutModel\\\",\\\"_data\\\",\\\"dateZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDateParams\\\"]]],null],[23,5,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"bank\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\"],[true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"ledgers-accounts-lists-banks\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,0,[\\\"payoutModel\\\",\\\"_data\\\",\\\"accountKey\\\"]],[23,0,[\\\"payoutModel\\\",\\\"_data\\\",\\\"account\\\"]],\\\"ledgers/accounts/banks-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"bank accounts\\\",true]]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\\n          \\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"amount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"payoutModel\\\",\\\"_data\\\",\\\"amount\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"discount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"payoutModel\\\",\\\"_data\\\",\\\"discount\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not-eq\\\",[[23,0,[\\\"maxPayoutWithEditAmt\\\"]],0],null],[28,\\\"gt\\\",[[23,0,[\\\"payoutModel\\\",\\\"_data\\\",\\\"amount\\\"]],[23,0,[\\\"maxPayoutWithEditAmt\\\"]]],[[\\\"forceNumber\\\"],[true]]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc has-text-danger\\\"],[8],[0,\\\"* \\\"],[1,[28,\\\"tt\\\",[\\\"entered amount exceeds the outstanding amount\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"comments\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,0,[\\\"payoutModel\\\",\\\"_data\\\",\\\"comments\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-btn--cancel\\\",\\\"cancel\\\",[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,0,[\\\"payoutModel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,6,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"ledgers/journals/cashbook\\\",[23,0,[\\\"payoutModel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"closeModalDialogAndReloadTab\\\"]],[23,1,[]]],null]]]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/commissions/panels-all/payout-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/commissions/panels-all/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-extension\"], function (_exports, _component, R, R_) {\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;\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 ReportsCommissionsPanelsAllTableViewDetailRow = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class ReportsCommissionsPanelsAllTableViewDetailRow extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"panelsDisplayModel\", _descriptor2, this);\n    }\n    getModel(summaryModel) {\n      const salesPersons = this?.args?.tableViewOptions?.salesPersons || [];\n      const summaryModelSalesPersonKey = R_.dotPathOr('', '_data.salesPersonKey', summaryModel);\n      const model = R.find(data => R_.dotPathEq('_data._key', summaryModelSalesPersonKey, data))(salesPersons);\n      this.panelsDisplayModel = model;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"panelsDisplayModel\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getModel\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"getModel\"), _class.prototype), _class);\n});","define(\"client/pods/components/reports/commissions/panels-all/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"sjRcy5Ry\",\n    \"block\": \"{\\\"symbols\\\":[\\\"payout\\\",\\\"@model\\\",\\\"@tableViewOptions\\\",\\\"@rowIndex\\\",\\\"@onMainAction\\\",\\\"@isDetailRow\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@detail\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isFilters\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,7,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"sales person\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"opening balance\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"commission due this month\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"commission refunded this month\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"payouts this month\\\"],null],false],[9],[0,\\\" \\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"outstanding total\\\"],null],false],[9],[0,\\\"      \\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,7,[\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[23,8,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,7,[]]]]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"],[0,\\\"    \\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",-1,[23,0,[\\\"tab\\\"]],[23,9,[]],[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[23,7,[]]]]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\" \\\"],[1,[23,4,[]],false],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",false],[12,\\\"class\\\",\\\"u-link--text\\\"],[3,\\\"action\\\",[[23,0,[]],[23,5,[]],[23,2,[]]]],[8],[0,\\\" \\\"],[1,[23,2,[\\\"_data\\\",\\\"salesPerson\\\"]],false],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\" \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"commissionOverdue\\\"]]],null],false],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\" \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"commissionDueTotalAdjusted\\\"]]],null],false],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\" \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"commissionsDueReturnedData\\\",\\\"subtotal\\\"]]],null],false],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\" \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"payoutsThisMonthTotal\\\"]]],null],false],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-desc--bold\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"outstandingTotal\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"reports/commissions/panels-all/payout-editor\\\",[],[[\\\"@model\\\",\\\"@maxPayoutAmount\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onMarkAsPayoutsTask\\\",\\\"@onReloadAfterPayout\\\"],[[23,2,[]],[23,2,[\\\"_data\\\",\\\"outstandingTotal\\\"]],true,false,[23,3,[\\\"mm\\\"]],[23,3,[\\\"yyyy\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[23,3,[\\\"onReloadAfterPayout\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"commissionsDueData\\\",\\\"payoutsThisMonth\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[9],[0,\\\"\\\\n          : \\\\n          \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"amount\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[5,\\\"reports/commissions/panels-all/payout-editor\\\",[],[[\\\"@model\\\",\\\"@maxPayoutAmount\\\",\\\"@isEditing\\\",\\\"@mm\\\",\\\"@yyyy\\\",\\\"@payoutModel\\\",\\\"@onMarkAsPayoutsTask\\\",\\\"@onReloadAfterPayout\\\"],[[23,2,[]],[23,2,[\\\"_data\\\",\\\"outstandingTotal\\\"]],true,[23,3,[\\\"mm\\\"]],[23,3,[\\\"yyyy\\\"]],[23,1,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[23,3,[\\\"onReloadAfterPayout\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/commissions/panels-all/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/commissions/panels-all/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HotudcmG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDisplay\\\",\\\"@salesPersons\\\",\\\"@onMarkAsPayoutsTask\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-sub\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@classNames\\\"],[\\\"form-section__outer-container--no-border\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-months\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"mm\\\",\\\"value\\\"]],[23,0,[\\\"mm\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-years\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"yyyy\\\",\\\"value\\\"]],[23,0,[\\\"yyyy\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"generate\\\",[28,\\\"perform\\\",[[23,0,[\\\"generateSummaryAndTableTask\\\"]]],null],[23,0,[\\\"generateSummaryAndTableTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"reports/commissions/panels-all/panels-statement\\\",[],[[\\\"@reportsSummary\\\",\\\"@onFetchReportSummaryTask\\\"],[[23,0,[\\\"reportsSummary\\\"]],[23,0,[\\\"fetchReportSummaryTask\\\"]]]]],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"commissions\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@onSearchTask\\\",\\\"@filters\\\",\\\"@results\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onDisplay\\\",\\\"@onMainAction\\\",\\\"@paginationIsFooter\\\",\\\"@tableViewOptions\\\"],[[23,0,[\\\"tab\\\"]],\\\"reports/commissions/panels-all/table-view/detail-row\\\",[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"bySalesPersonsFilters\\\"]],[23,0,[\\\"bySalesPersonsFilters\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,1,[]],[23,0,[\\\"displaySalesPerson\\\"]],false,[28,\\\"hash\\\",null,[[\\\"onMarkAsPayoutsTask\\\",\\\"onFetchPaymentsTask\\\",\\\"mm\\\",\\\"yyyy\\\",\\\"salesPersons\\\",\\\"onReloadAfterPayout\\\"],[[23,3,[]],[23,0,[\\\"fetchPaymentsTask\\\"]],[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[23,2,[]],[23,0,[\\\"reloadAfterPayout\\\"]]]]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/commissions/panels-all/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/commissions/panels-display/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, R_, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 ReportsCommissionsPanelsDisplay = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._action, _class = class ReportsCommissionsPanelsDisplay extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _initializerDefineProperty(this, \"commissionsGeneratedInvoicesFilters\", _descriptor6, this);\n      _initializerDefineProperty(this, \"commissionsGeneratedReturnedFilters\", _descriptor7, this);\n      _initializerDefineProperty(this, \"commissionsDueInvoicesFilters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"commissionsDueReturnedFilters\", _descriptor9, this);\n      _initializerDefineProperty(this, \"commissionsRecordsFilters\", _descriptor0, this);\n      _initializerDefineProperty(this, \"commissionsPayoutsFilters\", _descriptor1, this);\n      _initializerDefineProperty(this, \"bySalesPersonsFilters\", _descriptor10, this);\n      _initializerDefineProperty(this, \"bySalesPersonsSummary\", _descriptor11, this);\n      _initializerDefineProperty(this, \"mm\", _descriptor12, this);\n      _initializerDefineProperty(this, \"yyyy\", _descriptor13, this);\n      _defineProperty(this, \"adapterName\", 'reports/commissions/data');\n      _defineProperty(this, \"filtersName\", 'reports/commissions/data/filters');\n      this.crud.addLists(this, ['periods/months', 'periods/years']);\n      const commissionsGeneratedInvoicesFilters = this.search.setupFilters({\n        adapterName: this.filtersName\n      });\n      const commissionsGeneratedReturnedFilters = this.search.setupFilters({\n        adapterName: this.filtersName\n      });\n      const commissionsDueInvoicesFilters = this.search.setupFilters({\n        adapterName: this.filtersName\n      });\n      const commissionsDueReturnedFilters = this.search.setupFilters({\n        adapterName: this.filtersName\n      });\n      const commissionsRecordsFilters = this.search.setupFilters({\n        adapterName: 'reports/commissions/data/adjustment/filters'\n      });\n      const commissionsPayoutsFilters = this.search.setupFilters({\n        adapterName: this.filtersName\n      });\n      this.commissionsGeneratedInvoicesFilters = commissionsGeneratedInvoicesFilters;\n      this.commissionsGeneratedReturnedFilters = commissionsGeneratedReturnedFilters;\n      this.commissionsDueInvoicesFilters = commissionsDueInvoicesFilters;\n      this.commissionsDueReturnedFilters = commissionsDueReturnedFilters;\n      this.commissionsRecordsFilters = commissionsRecordsFilters;\n      this.commissionsPayoutsFilters = commissionsPayoutsFilters;\n    }\n    afterLoadLists() {\n      const model = this?.args?.tab?.model || this?.args?.model;\n      this.model = model;\n      this.getMonthAndYear();\n      this.makeSummaryFilter();\n      this.setup();\n    }\n    makeSummaryFilter() {\n      const model = this.model;\n      const bySalesPersonsFilters = this.search.setupFilters({\n        adapterName: 'reports/commissions/data/all/filters'\n      });\n      const salesPersons = {\n        name: model._data.name,\n        key: model._data._key,\n        username: model._data.username\n      };\n      bySalesPersonsFilters.setData('salesPersons', RA.list(salesPersons));\n      this.bySalesPersonsFilters = bySalesPersonsFilters;\n    }\n    setup() {\n      this.loadDataTask.perform();\n    }\n    getMonthAndYear() {\n      const yyyy = this.args.yyyy;\n      const mm = this.args.mm;\n      let startOfMonth = '';\n      if (yyyy.value && mm.value) {\n        startOfMonth = `${yyyy.value}-${mm.value}-01`;\n      }\n      const period = this.date.getPeriod(startOfMonth);\n      this.yyyy = {\n        value: period.yyyy,\n        label: period.yyyy\n      };\n      this.mm = {\n        value: period.mm,\n        label: R.pipe(R_.dotPathOr([], 'periods-months'), R.find(lists => R_.dotPathEq('_data.value', period.mm, lists)), R_.dotPathOr('', '_data.label'))(this.crud.lists)\n      };\n    }\n    *loadDataTask() {\n      const model = this.model;\n      const salesPersonKey = R_.dotPathOr('', '_data._key', model);\n\n      // GENERATED INVOICE FILTERS\n      const commissionsGeneratedInvoicesFilters = this.commissionsGeneratedInvoicesFilters;\n      commissionsGeneratedInvoicesFilters.setData('salesPersonKey', salesPersonKey);\n      commissionsGeneratedInvoicesFilters.setData('mm', this.mm.value);\n      commissionsGeneratedInvoicesFilters.setData('yyyy', this.yyyy.value);\n      commissionsGeneratedInvoicesFilters.setData('type', 'generated');\n      commissionsGeneratedInvoicesFilters.setData('docName', 'invoices');\n      commissionsGeneratedInvoicesFilters.setData('query', '');\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: commissionsGeneratedInvoicesFilters\n      });\n\n      // COMMISSIONS RECORD FILTERS\n      const commissionsRecordsFilters = this.commissionsRecordsFilters;\n      commissionsRecordsFilters.setData('salesPersonKey', salesPersonKey);\n      commissionsRecordsFilters.setData('query', '');\n      commissionsRecordsFilters.setData('mm', this.mm.value);\n      commissionsRecordsFilters.setData('yyyy', this.yyyy.value);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: 'reports/commissions/data/adjustment',\n        filters: commissionsRecordsFilters\n      });\n\n      // COMMISSIONS PAYOUTS FILTERS\n      const commissionsPayoutsFilters = this.commissionsPayoutsFilters;\n      commissionsPayoutsFilters.setData('salesPersonKey', salesPersonKey);\n      commissionsPayoutsFilters.setData('mm', this.mm.value);\n      commissionsPayoutsFilters.setData('yyyy', this.yyyy.value);\n      commissionsPayoutsFilters.setData('type', 'payouts');\n      commissionsPayoutsFilters.setData('query', '');\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: commissionsPayoutsFilters\n      });\n\n      // GENERATED RETURNED FILTERS\n      const commissionsGeneratedReturnedFilters = this.commissionsGeneratedReturnedFilters;\n      commissionsGeneratedReturnedFilters.setData('salesPersonKey', salesPersonKey);\n      commissionsGeneratedReturnedFilters.setData('mm', this.mm.value);\n      commissionsGeneratedReturnedFilters.setData('yyyy', this.yyyy.value);\n      commissionsGeneratedReturnedFilters.setData('type', 'generated');\n      commissionsGeneratedReturnedFilters.setData('docName', 'returns');\n      commissionsGeneratedReturnedFilters.setData('query', '');\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: commissionsGeneratedReturnedFilters\n      });\n\n      // DUE INVOICES FILTERS\n      const commissionsDueInvoicesFilters = this.commissionsDueInvoicesFilters;\n      commissionsDueInvoicesFilters.setData('salesPersonKey', salesPersonKey);\n      commissionsDueInvoicesFilters.setData('mm', this.mm.value);\n      commissionsDueInvoicesFilters.setData('yyyy', this.yyyy.value);\n      commissionsDueInvoicesFilters.setData('type', 'due');\n      commissionsDueInvoicesFilters.setData('docName', 'invoices');\n      commissionsDueInvoicesFilters.setData('query', '');\n      commissionsDueInvoicesFilters.setData('isDispatched', true);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: commissionsDueInvoicesFilters\n      });\n\n      // DUE RETURNED FILTERS\n      const commissionsDueReturnedFilters = this.commissionsDueReturnedFilters;\n      commissionsDueReturnedFilters.setData('salesPersonKey', salesPersonKey);\n      commissionsDueReturnedFilters.setData('mm', this.mm.value);\n      commissionsDueReturnedFilters.setData('yyyy', this.yyyy.value);\n      commissionsDueReturnedFilters.setData('type', 'due');\n      commissionsDueReturnedFilters.setData('docName', 'returns');\n      commissionsDueReturnedFilters.setData('query', '');\n      commissionsDueReturnedFilters.setData('isDispatched', true);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: commissionsDueReturnedFilters\n      });\n\n      // SUMMARY TABLE VIEW\n      const bySalesPersonsFilters = this.bySalesPersonsFilters;\n      bySalesPersonsFilters.setData('query', '');\n      bySalesPersonsFilters.setData('mm', this.mm.value);\n      bySalesPersonsFilters.setData('yyyy', this.yyyy.value);\n      bySalesPersonsFilters.setData('isDispatched', true);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: 'reports/commissions/data/all',\n        filters: bySalesPersonsFilters,\n        appendPath: '/by-sales-persons'\n      });\n      this.bySalesPersonsSummary = R.head(this.bySalesPersonsFilters.results);\n\n      // SET FILTERS TO THIS\n      this.bySalesPersonsFilters = bySalesPersonsFilters;\n      this.commissionsGeneratedInvoicesFilters = commissionsGeneratedInvoicesFilters;\n      this.commissionsGeneratedReturnedFilters = commissionsGeneratedReturnedFilters;\n      this.commissionsDueInvoicesFilters = commissionsDueInvoicesFilters;\n      this.commissionsDueReturnedFilters = commissionsDueReturnedFilters;\n      this.commissionsRecordsFilters = commissionsRecordsFilters;\n      this.commissionsPayoutsFilters = commissionsPayoutsFilters;\n    }\n    get hasCommissionsGenerated() {\n      const docs = this?.commissionsGeneratedInvoicesFilters?.results || [];\n      const files = R_.dotPathOr('', 'generated._data.invoices', docs);\n      if (!Ember.isEmpty(files)) {\n        return true;\n      }\n      return false;\n    }\n    get hasCommissionsAdjustment() {\n      const docs = this?.commissionsRecordsFilters || [];\n      const files = R_.dotPathOr('', 'results', docs);\n      if (!Ember.isEmpty(files)) {\n        return true;\n      }\n      return false;\n    }\n    get hasCommissionsPayouts() {\n      const docs = this?.commissionsPayoutsFilters?.results || [];\n      const files = R_.dotPathOr('', 'generated._data.payouts', docs);\n      if (!Ember.isEmpty(files)) {\n        return true;\n      }\n      return false;\n    }\n    get hasCommissionsGeneratedReturned() {\n      const docs = this?.commissionsGeneratedReturnedFilters?.results || [];\n      const files = R_.dotPathOr('', 'generated._data.returns', docs);\n      if (!Ember.isEmpty(files)) {\n        return true;\n      }\n      return false;\n    }\n    get hasCommissionsDue() {\n      const docs = this?.commissionsDueInvoicesFilters?.results || [];\n      const files = R_.dotPathOr('', 'due._data.invoices', docs);\n      if (!Ember.isEmpty(files)) {\n        return true;\n      }\n      return false;\n    }\n    get hasCommissionsDueReturned() {\n      const docs = this?.commissionsDueReturnedFilters?.results || [];\n      const files = R_.dotPathOr('', 'due._data.returns', docs);\n      if (!Ember.isEmpty(files)) {\n        return true;\n      }\n      return false;\n    }\n    get hasNoCommission() {\n      const hasGeneratedInvoicesComissions = this.hasCommissionsGenerated;\n      const hasGeneratedReturnedComissions = this.hasCommissionsGeneratedReturned;\n      const hasDueInvoicesComissions = this.hasCommissionsDue;\n      const hasDueReturnedComissions = this.hasCommissionsDueReturned;\n      const hasCommissionsAdjustment = this.hasCommissionsAdjustment;\n      const hasCommissionsPayouts = this.hasCommissionsPayouts;\n      return hasCommissionsAdjustment || hasCommissionsPayouts || hasGeneratedInvoicesComissions || hasGeneratedReturnedComissions || hasDueInvoicesComissions || hasDueReturnedComissions;\n    }\n    get hasContactLink() {\n      const model = this?.model || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        const id = R.pathOr('', ['_data', '_id'])(model);\n        if (R.includes('contacts', id)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    *generateSummaryAndTableTask() {\n      yield this.loadDataTask.perform();\n    }\n    reloadAfterPayout() {\n      const model = this?.args?.tab?.model || this?.args?.model;\n      this.args.onDisplayWithDate(model, this.yyyy, this.mm);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"commissionsGeneratedInvoicesFilters\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"commissionsGeneratedReturnedFilters\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"commissionsDueInvoicesFilters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"commissionsDueReturnedFilters\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"commissionsRecordsFilters\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"commissionsPayoutsFilters\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"bySalesPersonsFilters\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"bySalesPersonsSummary\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"mm\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"yyyy\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"generateSummaryAndTableTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"generateSummaryAndTableTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadAfterPayout\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadAfterPayout\"), _class.prototype), _class);\n});","define(\"client/pods/components/reports/commissions/panels-display/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ReportsCommissionsPanelsDisplayTableViewDetailRow = _exports.default = (_dec = Ember.inject.service, _class = class ReportsCommissionsPanelsDisplayTableViewDetailRow extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _defineProperty(this, \"tagName\", '');\n    } // classNameBindings: ['isDetailRow:table-view__detail-row']\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/reports/commissions/panels-display/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KZhBR2Fc\",\n    \"block\": \"{\\\"symbols\\\":[\\\"person\\\",\\\"@model\\\",\\\"@rowIndex\\\",\\\"@isDetailRow\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@listByTask\\\",\\\"@detail\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isFilters\\\",\\\"@hasHeadersSort\\\",\\\"@showFilters\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,5,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@onSort\\\"],[[23,11,[]],[23,5,[]],\\\"docNo\\\",[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"invoice number\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@onSort\\\"],[[23,11,[]],[23,5,[]],\\\"salesPerson\\\",[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"sales person\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@onSort\\\"],[[23,11,[]],[23,5,[]],\\\"contact\\\",[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"contact\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@toNumber\\\",\\\"@onSort\\\"],[[23,11,[]],[23,5,[]],\\\"commissionTotal\\\",true,[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"commission amount\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@onSort\\\"],[[23,11,[]],[23,5,[]],\\\"dateZ\\\",[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"invoice date\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@onSort\\\"],[[23,11,[]],[23,5,[]],\\\"paymentDueDateZ\\\",[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"due date\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@onSort\\\"],[[23,11,[]],[23,5,[]],\\\"isDispatched\\\",[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"dispatched\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@onSort\\\"],[[23,11,[]],[23,5,[]],\\\"shop\\\",[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"shop\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@icon\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-filter\\\",[23,12,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,5,[\\\"_data\\\",\\\"count\\\"]],[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[[23,5,[\\\"_data\\\",\\\"invoice\\\"]],[28,\\\"or\\\",[[23,6,[\\\"isRunning\\\"]],[23,7,[\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"reports/commissions/data\\\",[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[[23,5,[\\\"_data\\\",\\\"salesPerson\\\"]],[28,\\\"or\\\",[[23,6,[\\\"isRunning\\\"]],[23,7,[\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"reports/commissions/data\\\",[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\"],[[23,5,[\\\"_data\\\",\\\"contact\\\"]],[28,\\\"or\\\",[[23,6,[\\\"isRunning\\\"]],[23,7,[\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[23,6,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\"],[\\\"reports/commissions/data\\\",[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",-1,[23,0,[\\\"tab\\\"]],[23,8,[]],[28,\\\"perform\\\",[[23,9,[]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,3,[]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/tab-link\\\",[[12,\\\"classNames\\\",\\\"u-link--text\\\"]],[[\\\"@hasLink\\\",\\\"@tooltipContent\\\",\\\"@tabOptions\\\"],[[23,2,[\\\"doc\\\",\\\"_key\\\"]],[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,2,[\\\"doc\\\",\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"doc\\\",\\\"docName\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,2,[\\\"doc\\\",\\\"docType\\\"]],\\\"-\\\",[23,2,[\\\"doc\\\",\\\"docName\\\"]]],null],[23,2,[\\\"doc\\\",\\\"docType\\\"]],[23,2,[\\\"doc\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,2,[\\\"doc\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n            #\\\"],[1,[23,2,[\\\"doc\\\",\\\"docNo\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"doc\\\",\\\"isConsignment\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[\\\"u-icon-spacer--left\\\",\\\"fas fa-asterik\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"doc\\\",\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"doc\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"doc\\\",\\\"commissionTotal\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,2,[\\\"doc\\\",\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,2,[\\\"doc\\\",\\\"paymentDueDateZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"doc\\\",\\\"isDispatched\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[23,2,[\\\"doc\\\",\\\"dispatchDateZ\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[\\\"undispatched\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"doc\\\",\\\"source\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\" \\\\n  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/commissions/panels-display/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/commissions/panels-display/table-view/payouts-row/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 ReportsCommissionsPanelsDisplayTableViewDetailRow = _exports.default = (_dec = Ember.inject.service, _class = class ReportsCommissionsPanelsDisplayTableViewDetailRow extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _defineProperty(this, \"tagName\", '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/reports/commissions/panels-display/table-view/payouts-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DTldM3TX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@rowIndex\\\",\\\"@model\\\",\\\"@tableViewOptions\\\",\\\"@isDetailRow\\\",\\\"@detail\\\",\\\"@filters\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@isFilters\\\",\\\"@hasHeadersSort\\\",\\\"@showFilters\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"page\\\"],null],false],[0,\\\": \\\"],[1,[23,6,[\\\"_data\\\",\\\"page\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@onSort\\\"],[[23,9,[]],[23,6,[]],\\\"createdDateZ\\\",[28,\\\"perform\\\",[[23,7,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,6,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"created date\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"sales person\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"bank\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@hasHeadersSort\\\",\\\"@filters\\\",\\\"@by\\\",\\\"@toNumber\\\",\\\"@onSort\\\"],[[23,9,[]],[23,6,[]],\\\"grandCommissionTotal\\\",true,[28,\\\"perform\\\",[[23,7,[]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[23,6,[]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"commission amount\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@icon\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-filter\\\",[23,10,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@tab\\\",\\\"@detail\\\",\\\"@onSubmit\\\"],[\\\"u-close-btn\\\",-1,[23,0,[\\\"tab\\\"]],[23,5,[]],[28,\\\"perform\\\",[[23,7,[]],[28,\\\"hash\\\",null,[[\\\"reset\\\",\\\"filters\\\"],[true,[23,6,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"table-view__detail-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,2,[\\\"dateZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"contra\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[23,2,[\\\"account\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"total\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"reports/commissions/panels-all/payout-editor\\\",[],[[\\\"@isEditing\\\",\\\"@mm\\\",\\\"@yyyy\\\",\\\"@payoutModel\\\",\\\"@onMarkAsPayoutsTask\\\",\\\"@onReloadAfterPayout\\\"],[true,[23,3,[\\\"mm\\\"]],[23,3,[\\\"yyyy\\\"]],[23,2,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[23,3,[\\\"onReloadAdjustmentTask\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\" \\\\n  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/commissions/panels-display/table-view/payouts-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/commissions/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y7pQUvdw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDisplay\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@classNames\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[\\\"u-link--text\\\",[23,0,[\\\"hasContactLink\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-sub\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@classNames\\\"],[\\\"form-section__outer-container--no-border\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-months\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"mm\\\",\\\"value\\\"]],[23,0,[\\\"mm\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@label\\\"],[false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"periods-years\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"yyyy\\\",\\\"value\\\"]],[23,0,[\\\"yyyy\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[\\\"generate\\\",[28,\\\"perform\\\",[[23,0,[\\\"generateSummaryAndTableTask\\\"]]],null],[23,0,[\\\"generateSummaryAndTableTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"reports/commissions/panels-all/panels-statement\\\",[],[[\\\"@reportsSummary\\\",\\\"@isEachSalesPerson\\\",\\\"@mm\\\",\\\"@yyyy\\\",\\\"@onReloadAfterPayout\\\",\\\"@onFetchReportSummaryTask\\\"],[[23,0,[\\\"bySalesPersonsSummary\\\"]],true,[23,0,[\\\"mm\\\",\\\"value\\\"]],[23,0,[\\\"yyyy\\\",\\\"value\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"generateSummaryAndTableTask\\\"]]],null],[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasCommissionsAdjustment\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"commissions\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content table-form--no-last-border u-full-width table-form__td--padding-8\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@paginationIsFooter\\\",\\\"@results\\\",\\\"@filters\\\",\\\"@onSearchTask\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onDisplay\\\",\\\"@onMainAction\\\",\\\"@tableViewOptions\\\"],[[23,0,[\\\"tab\\\"]],\\\"channels/shop/campaigns/campaigns-editor/commissions-editor/commissions-adjustment-editor/table-view/detail-row\\\",false,[23,0,[\\\"commissionsRecordsFilters\\\",\\\"results\\\"]],[23,0,[\\\"commissionsRecordsFilters\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,1,[]],[23,1,[]],[28,\\\"hash\\\",null,[[\\\"results\\\",\\\"model\\\",\\\"onReloadAdjustmentTask\\\"],[[23,0,[\\\"commissionsRecordsFilters\\\",\\\"results\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"loadDataTask\\\"]]]]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasCommissionsPayouts\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"commissions payouts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@onSearchTask\\\",\\\"@filters\\\",\\\"@results\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onDisplay\\\",\\\"@onMainAction\\\",\\\"@paginationIsFooter\\\",\\\"@tableViewOptions\\\"],[[23,0,[\\\"tab\\\"]],\\\"reports/commissions/panels-display/table-view/payouts-row\\\",[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"commissionsPayoutsFilters\\\"]],[23,0,[\\\"commissionsPayoutsFilters\\\",\\\"results\\\",\\\"generated\\\",\\\"_data\\\",\\\"payouts\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,1,[]],[23,1,[]],false,[28,\\\"hash\\\",null,[[\\\"mm\\\",\\\"yyyy\\\",\\\"onReloadAdjustmentTask\\\"],[[23,0,[\\\"mm\\\"]],[23,0,[\\\"yyyy\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"loadDataTask\\\"]]],null]]]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasCommissionsGenerated\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"commissions generated\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@onSearchTask\\\",\\\"@filters\\\",\\\"@results\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onDisplay\\\",\\\"@onMainAction\\\",\\\"@paginationIsFooter\\\"],[[23,0,[\\\"tab\\\"]],\\\"reports/commissions/panels-display/table-view/detail-row\\\",[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"commissionsGeneratedInvoicesFilters\\\"]],[23,0,[\\\"commissionsGeneratedInvoicesFilters\\\",\\\"results\\\",\\\"generated\\\",\\\"_data\\\",\\\"invoices\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,1,[]],[23,1,[]],false]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasCommissionsGeneratedReturned\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"commissions generated returned\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@onSearchTask\\\",\\\"@filters\\\",\\\"@results\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onDisplay\\\",\\\"@onMainAction\\\",\\\"@paginationIsFooter\\\"],[[23,0,[\\\"tab\\\"]],\\\"reports/commissions/panels-display/table-view/detail-row\\\",[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"commissionsGeneratedReturnedFilters\\\"]],[23,0,[\\\"commissionsGeneratedReturnedFilters\\\",\\\"results\\\",\\\"generated\\\",\\\"_data\\\",\\\"returns\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,1,[]],[23,1,[]],false]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasCommissionsDue\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"commissions due\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@onSearchTask\\\",\\\"@filters\\\",\\\"@results\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onDisplay\\\",\\\"@onMainAction\\\",\\\"@paginationIsFooter\\\"],[[23,0,[\\\"tab\\\"]],\\\"reports/commissions/panels-display/table-view/detail-row\\\",[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"commissionsDueInvoicesFilters\\\"]],[23,0,[\\\"commissionsDueInvoicesFilters\\\",\\\"results\\\",\\\"due\\\",\\\"_data\\\",\\\"invoices\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,1,[]],[23,1,[]],false]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasCommissionsDueReturned\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@title\\\"],[\\\"commissions due returned\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tab\\\",\\\"@detailsRowComponent\\\",\\\"@onSearchTask\\\",\\\"@filters\\\",\\\"@results\\\",\\\"@onReloadSearchRecordsTask\\\",\\\"@onPaginationTask\\\",\\\"@onDisplay\\\",\\\"@onMainAction\\\",\\\"@paginationIsFooter\\\"],[[23,0,[\\\"tab\\\"]],\\\"reports/commissions/panels-display/table-view/detail-row\\\",[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"commissionsDueReturnedFilters\\\"]],[23,0,[\\\"commissionsDueReturnedFilters\\\",\\\"results\\\",\\\"due\\\",\\\"_data\\\",\\\"returns\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,1,[]],[23,1,[]],false]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"hasNoCommission\\\"]],false],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@classNames\\\"],[\\\"form-section__outer-container--no-border\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"crud\\\",\\\"searchRecordsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"h3\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"no commission this month\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/commissions/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/commissions/tab-container/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 ReportsCommissionsTabContainer = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _class = class ReportsCommissionsTabContainer extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"date\", _descriptor6, this);\n      _initializerDefineProperty(this, \"server\", _descriptor7, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"yyyy\", _descriptor9, this);\n      _initializerDefineProperty(this, \"mm\", _descriptor0, this);\n      _defineProperty(this, \"adapterName\", 'users/associates');\n      _defineProperty(this, \"filtersName\", 'users/associates/filters');\n      this.crud.addLists(this, ['users/lists/menu', 'commissions/lists/panels']);\n      this.yyyy = {\n        value: '',\n        label: ''\n      };\n      this.mm = {\n        value: '',\n        label: ''\n      };\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersName\n      });\n      this.filters = filters;\n      this.dash();\n    }\n    afterLoadLists() {\n      this.loadTabTask.perform();\n    }\n    *loadTabTask() {\n      const filters = this.filters;\n      filters.setData('query', '');\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: filters\n      });\n      this.filters = filters;\n      this.dash(filters.results);\n      this.filters.set('resultsToggle', true);\n    }\n    *markAsPayoutsTask({\n      adapterName,\n      model,\n      onAfter\n    }) {\n      const dateZ = this.date.getNowZ();\n      const period = this.date.getPeriod(dateZ);\n      const payload = this.dataManager.setAsRecord({\n        adapterName,\n        data: {\n          salesPerson: model._data.salesPerson,\n          salesPersonKey: model._data.salesPersonKey,\n          amount: model._data.amount,\n          comments: model._data.comments,\n          ref: period.monthStart,\n          dateZ: dateZ,\n          mm: period.mm,\n          yyyy: period.yyyy\n        }\n      });\n      yield this.crud.createRecordTask.perform({\n        adapterName,\n        model: payload,\n        onAfter\n      });\n      // yield this.server.call('POST', 'api/protected/reports/commissions/payouts', payload)\n    }\n\n    /**\n     * display the user\n     * @param  {object} user model\n     */\n    display(model) {\n      const subTabOptions = {\n        component: 'reports/commissions/panels-display',\n        model: model\n      };\n      const tab = this.args.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }\n    dash() {\n      this.filters.set('resultsToggle', false);\n      const tab = this.args.tab;\n      const subTabOptions = {\n        component: 'reports/commissions/panels-all'\n        // model: model\n      };\n      this.tabsManager.reuseSubTab(tab, subTabOptions);\n    }\n    // @TODO: NEED TO USE NGUARD TO RESTRICT CERTAIN ACTIONS\n\n    onDash() {\n      // should deselect results if any..\n      // this.deselectResult();\n      this.dash();\n      // search () {\n    }\n    onDisplay(model) {\n      this.yyyy = {\n        value: '',\n        label: ''\n      };\n      this.mm = {\n        value: '',\n        label: ''\n      };\n      this.display(model);\n    }\n    onDisplayWithDate(model, yyyy, mm) {\n      this.yyyy = yyyy;\n      this.mm = mm;\n      this.display(model);\n    }\n    displayPanel(resource) {\n      this.yyyy = {\n        value: '',\n        label: ''\n      };\n      this.mm = {\n        value: '',\n        label: ''\n      };\n      const tab = this.args.tab;\n      const subTabOptions = {\n        component: resource.getData('component')\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }\n    displayPanelWithDate(resource, yyyy, mm) {\n      this.yyyy = yyyy;\n      this.mm = mm;\n      const tab = this.args.tab;\n      const subTabOptions = {\n        component: resource.getData('component')\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"yyyy\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"mm\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadTabTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTabTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markAsPayoutsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"markAsPayoutsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDash\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"onDash\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDisplay\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"onDisplay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDisplayWithDate\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"onDisplayWithDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayPanel\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"displayPanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayPanelWithDate\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"displayPanelWithDate\"), _class.prototype), _class);\n});","define(\"client/pods/components/reports/commissions/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qCSZWoKs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@filters\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[\\\"users/associates\\\",true,[23,0,[\\\"filters\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"afterTabSearch\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"component\\\",\\\"ignoreForComponent\\\"],[[23,0,[\\\"filters\\\"]],[23,0,[]],\\\"commissions/panels-all\\\"]]]],null],\\\"search\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"commissions\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"commissions-lists-panels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"displayPanel\\\"]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@onSelect\\\"],[[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[28,\\\"fn\\\",[[23,0,[\\\"onDisplay\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"users/search-results\\\",[],[[\\\"@query\\\",\\\"@result\\\"],[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,2,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"subTabs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"onDisplay\\\",\\\"onDisplayWithDate\\\",\\\"onDisplayPanel\\\",\\\"onDisplayPanelWithDate\\\",\\\"onDash\\\",\\\"filters\\\",\\\"onMarkAsPayoutsTask\\\",\\\"onSearchTask\\\",\\\"onPaginationTask\\\",\\\"onReloadSearchRecordsTask\\\",\\\"salesPersons\\\",\\\"yyyy\\\",\\\"mm\\\"],[[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"onDisplay\\\"]]],null],[23,0,[\\\"onDisplayWithDate\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displayPanel\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"displayPanelWithDate\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onDash\\\"]]],null],[23,0,[\\\"filters\\\"]],[23,0,[\\\"markAsPayoutsTask\\\"]],[23,0,[\\\"crud\\\",\\\"searchAdvancedTask\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"crud\\\",\\\"reloadSearchRecordsTask\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"yyyy\\\"]],[23,0,[\\\"mm\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/commissions/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-page-views/card-conversions/checkout-steps/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    isDate: false,\n    roundingCurrency: 0,\n    showMoreTracking: false\n  });\n});","define(\"client/pods/components/reports/dashboard/card-page-views/card-conversions/checkout-steps/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mYNGi5Ix\",\n    \"block\": \"{\\\"symbols\\\":[\\\"trackingData\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[24,[\\\"step\\\",\\\"step\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"step\\\",\\\"page\\\"]]],[[\\\"translate\\\"],[[24,[\\\"step\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[28,\\\"count\\\",[[24,[\\\"step\\\",\\\"trackingCodes\\\"]]],null],1],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@toggleOffIconRightClassName\\\",\\\"@toggleOnIconRightClassName\\\",\\\"@label\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-down\\\",\\\"fas fa-angle-up\\\",\\\"tracking codes\\\",[22,\\\"showMoreTracking\\\"]]]],[0,\\\"          \\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-user\\\"]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[24,[\\\"step\\\",\\\"persons\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-eye\\\"]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[24,[\\\"step\\\",\\\"views\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"step\\\",\\\"next\\\",\\\"persons\\\",\\\"successRate\\\"]]],[[\\\"autoCalculate\\\"],[true]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showMoreTracking\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"step\\\",\\\"trackingCodes\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"step\\\",\\\"trackingCodes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/campaigns/tracking-code\\\",[],[[\\\"@trackingData\\\"],[[23,1,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-user\\\"]]],false],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"persons\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-eye\\\"]]],false],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"views\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"percentage\\\",[[23,1,[\\\"conversions\\\",\\\"persons\\\",\\\"successRate\\\"]]],[[\\\"autoCalculate\\\"],[true]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-page-views/card-conversions/checkout-steps/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-page-views/card-conversions/component\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    bigService: Ember.inject.service('big'),\n    tagName: '',\n    isDate: false,\n    roundingCurrency: 0,\n    getExcl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getIncl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getValue(param, exclParam, inclParam) {\n      return this.isTaxExclusive ? this.getExcl(param, exclParam) : this.getIncl(param, inclParam);\n    },\n    averageItemPrice: Ember.computed('detail.average.{exclPrice,inclPrice}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail.average', 'postDiscExclPrice', 'postDiscInclPrice');\n      if (RA.isNilOrEmpty(value) || this.bigService.newBig(value).eq(0)) {\n        value = this.getValue('detail.average', 'exclPrice', 'inclPrice');\n      }\n      return value;\n    }),\n    averageOrderValue: Ember.computed('detail.average.{exclTotal,inclTotal}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail.average', 'postDiscExclTotal', 'postDiscInclTotal');\n      if (RA.isNilOrEmpty(value) || this.bigService.newBig(value).eq(0)) {\n        value = this.getValue('detail.average', 'exclTotal', 'inclTotal');\n      }\n      return value;\n    }),\n    amount: Ember.computed('detail.{exclAmt,inclAmt}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail', 'postDiscExclAmt', 'postDiscInclAmt');\n      if (RA.isNilOrEmpty(value) || this.bigService.newBig(value).eq(0)) {\n        value = this.getValue('detail', 'exclAmt', 'inclAmt');\n      }\n      return value;\n    }),\n    choiceDetailsProxy: Ember.computed('detail.choiceDetails.[]', 'isTaxExclusive', function () {\n      const choiceDetails = this.detail.choiceDetails || [];\n      return R.map(choiceDetail => {\n        if (this.isTaxExclusive) {\n          choiceDetail.amount = choiceDetail.exclAmt;\n        } else {\n          choiceDetail.amount = choiceDetail.inclAmt;\n        }\n        return choiceDetail;\n      })(choiceDetails);\n    })\n  });\n});","define(\"client/pods/components/reports/dashboard/card-page-views/card-conversions/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"h2QmmTfk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"step\\\",\\\"trackingData\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-half-item\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header u-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"page views\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content content\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__dash-table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-user\\\"]]],false],[0,\\\" \\\"],[1,[28,\\\"number\\\",[[24,[\\\"data\\\",\\\"totals\\\",\\\"persons\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"persons_count\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-eye\\\"]]],false],[0,\\\" \\\"],[1,[28,\\\"number\\\",[[24,[\\\"data\\\",\\\"totals\\\",\\\"views\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"page views\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-eye\\\"]]],false],[0,\\\" / \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-user\\\"]]],false],[0,\\\" \\\"],[1,[28,\\\"number\\\",[[24,[\\\"data\\\",\\\"totals\\\",\\\"viewsPerPerson\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"page views per person\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-user\\\"]]],false],[0,\\\" \\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"data\\\",\\\"totals\\\",\\\"conversion\\\",\\\"persons\\\",\\\"successRate\\\"]]],[[\\\"autoCalculate\\\"],[true]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"conversion rate\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"tracking codes\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"persons_count\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"page views\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"conversion rate\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average item price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average order value\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"revenue\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"data\\\",\\\"totals\\\",\\\"byTrackingCodes\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"calculate\\\",[[23,3,[]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"channels/shop/campaigns/tracking-code\\\",[],[[\\\"@trackingData\\\"],[[23,2,[]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-user\\\"]]],false],[0,\\\"\\\\n                \\\"],[1,[23,2,[\\\"persons\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-eye\\\"]]],false],[0,\\\"\\\\n                \\\"],[1,[23,2,[\\\"views\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"percentage\\\",[[23,2,[\\\"conversions\\\",\\\"persons\\\",\\\"successRate\\\"]]],[[\\\"autoCalculate\\\"],[true]]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"docCount\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"average\\\",\\\"exclTotal\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"average\\\",\\\"inclTotal\\\"]]],[[\\\"rounding\\\"],[0]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isTaxExclusive\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-half-item\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header u-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"checkout\\\"],null],false],[0,\\\"            \\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content content\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"step\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"page views\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"next step conversion rate\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"data\\\",\\\"byCheckout\\\",\\\"steps\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"reports/dashboard/card-page-views/card-conversions/checkout-steps\\\",null,[[\\\"step\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-page-views/card-conversions/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-page-views/card-detail/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    isDate: false,\n    roundingCurrency: 0,\n    showMoreDetails: false,\n    showMoreTracking: false,\n    getExcl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getIncl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getValue(param, exclParam, inclParam) {\n      return this.isTaxExclusive ? this.getExcl(param, exclParam) : this.getIncl(param, inclParam);\n    },\n    amount: Ember.computed('detail.{exclAmt,inclAmt}', 'isTaxExclusive', function () {\n      return this.getValue('detail', 'exclAmt', 'inclAmt');\n    }),\n    choiceDetailsProxy: Ember.computed('detail.choiceDetails.[]', 'isTaxExclusive', function () {\n      const choiceDetails = this.detail.choiceDetails || [];\n      return R.map(choiceDetail => {\n        if (this.isTaxExclusive) {\n          choiceDetail.amount = choiceDetail.exclAmt;\n        } else {\n          choiceDetail.amount = choiceDetail.inclAmt;\n        }\n        return choiceDetail;\n      })(choiceDetails);\n    })\n\n    // actions: {\n    //   toggleDetails () {\n    //     const details = R.path(['detail', 'choiceDetails'])(this)\n    //     if (!R.isEmpty(details)) {\n    //       this.toggleProperty('showDetails')\n    //     }\n    //   }\n    // }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-page-views/card-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VCDiWv98\",\n    \"block\": \"{\\\"symbols\\\":[\\\"choiceDetail\\\",\\\"trackingData\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"calculate\\\",[[24,[\\\"index\\\"]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-space-between\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"detail\\\",\\\"page\\\"]]],[[\\\"translate\\\"],[[24,[\\\"detail\\\",\\\"translate\\\"]]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[24,[\\\"detail\\\",\\\"url\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"choiceDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@toggleOffIconRightClassName\\\",\\\"@toggleOnIconRightClassName\\\",\\\"@label\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-down\\\",\\\"fas fa-angle-up\\\",\\\"product_sets_with_choices\\\",[22,\\\"showMoreDetails\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gte\\\",[[28,\\\"count\\\",[[24,[\\\"detail\\\",\\\"trackingCodes\\\"]]],null],1],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@toggleOffIconRightClassName\\\",\\\"@toggleOnIconRightClassName\\\",\\\"@label\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-down\\\",\\\"fas fa-angle-up\\\",\\\"tracking codes\\\",[22,\\\"showMoreTracking\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-user\\\"]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"persons\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-eye\\\"]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"views\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"qty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"detail\\\",\\\"conversions\\\",\\\"persons\\\",\\\"successRate\\\"]]],[[\\\"autoCalculate\\\"],[true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"itemKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"amount\\\"]]],[[\\\"rounding\\\"],[[24,[\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showMoreTracking\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"trackingCodes\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"detail\\\",\\\"trackingCodes\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-indent\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/campaigns/tracking-code\\\",[],[[\\\"@trackingData\\\"],[[23,2,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-indent-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-user\\\"]]],false],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"persons\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-indent-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-eye\\\"]]],false],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"views\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-indent-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"qty\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"percentage\\\",[[23,2,[\\\"conversions\\\",\\\"persons\\\",\\\"successRate\\\"]]],[[\\\"autoCalculate\\\"],[true]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-indent-right\\\"],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showMoreDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"detail\\\",\\\"choiceDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"choiceDetailsProxy\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"sub-detail-row\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-indent\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[23,1,[\\\"item\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-indent-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"setChildQty\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-indent-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"amount\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"amount\\\"]]],[[\\\"rounding\\\"],[[24,[\\\"roundingCurrency\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-page-views/card-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-page-views/component\", [\"exports\", \"ramda\", \"client/mixins/date\"], function (_exports, R, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    tagName: '',\n    chartLegend: 'revenue',\n    metric: 'net',\n    chartType: null,\n    // chartHeight: null,\n    chartWidth: null,\n    translate: false,\n    isTaxExclusive: true,\n    averageByItemQty: false,\n    isTableView: true,\n    isReloadingChart: false,\n    defaultLimitResults: 10,\n    limitResults: 10,\n    maxChartResults: 30,\n    init() {\n      this._super(...arguments);\n    },\n    sorted: Ember.computed('data.byPages.[]', function () {\n      const data = this.get('data.byPages') || [];\n      if (Ember.isEmpty(data)) {\n        return [];\n      }\n      const sort = R.pipe(R.sortWith([R.descend(R.pipe(R.prop('views')))]));\n      return sort(data);\n    }),\n    limited: Ember.computed('sorted.[]', 'limitResults', function () {\n      const sorted = this.sorted;\n      const limitResults = this.limitResults;\n      if (limitResults) {\n        return R.take(limitResults, sorted);\n      }\n      return sorted;\n    }),\n    hasMoreResults: Ember.computed('sorted.[]', 'limited.[]', 'limitResults', function () {\n      if (this.sorted.length > this.limited.length) {\n        return true;\n      }\n      return false;\n    }),\n    hasLessResults: Ember.computed('sorted.[]', 'limited.[]', 'limitResults', function () {\n      if (this.sorted.length === this.limited.length) {\n        return false;\n      }\n      return true;\n    }),\n    actions: {\n      viewMore() {\n        this.set('limitResults', false);\n        if (this.reloadChart) {\n          this.reloadChart();\n        }\n      },\n      viewLess() {\n        this.set('limitResults', this.defaultLimitResults);\n        if (this.reloadChart) {\n          this.reloadChart();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-page-views/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+XTPib/P\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\"],\\\"statements\\\":[[1,[28,\\\"reports/dashboard/card-page-views/card-conversions\\\",null,[[\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"data\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-row\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"report-full-item\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header u-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"webpages\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"persons_count\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"page views\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"qty sold\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"conversion rate\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"revenue\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"limited\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"reports/dashboard/card-page-views/card-detail\\\",null,[[\\\"index\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"hasMoreResults\\\",\\\"detail\\\"],[[23,2,[]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"hasMoreResults\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"          \\\"],[9],[0,\\\"        \\\\n          \\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMoreResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"show more\\\",[28,\\\"action\\\",[[23,0,[]],\\\"viewMore\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasLessResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"show less\\\",[28,\\\"action\\\",[[23,0,[]],\\\"viewLess\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-page-views/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/card-detail/component\", [\"exports\", \"ramda-adjunct\", \"ramda\"], function (_exports, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    big: Ember.inject.service(),\n    tagName: '',\n    isDate: false,\n    roundingCurrency: 0,\n    showAverages: true,\n    roundingForAveraging: 2,\n    getExcl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getIncl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getValue(param, exclParam, inclParam) {\n      return this.isTaxExclusive ? this.getExcl(param, exclParam) : this.getIncl(param, inclParam);\n    },\n    getPaymentMethodLabel(label) {\n      let paymentMethodKey = label?.paymentMethodKey || '';\n      const paymentMethodCustomLabel = label.paymentMethodCustomLabel || '';\n      if (RA.isNotNilOrEmpty(paymentMethodKey) && this.translate !== false) {\n        paymentMethodKey = this.intl.t(paymentMethodKey);\n      }\n      if (RA.isNotNilOrEmpty(paymentMethodCustomLabel)) {\n        return `${paymentMethodCustomLabel} (${paymentMethodKey})`;\n      }\n      return paymentMethodKey;\n    },\n    // can be used dynamically if no additional condition needed.\n    getLabelFromObjectLabel(label) {\n      let newLabel = '';\n      R.mapObjIndexed((value, key, index) => {\n        if (R.equals(index, 0)) {\n          newLabel = this.intl.t(value);\n        } else {\n          newLabel = `{${newLabel} - ${this.intl.t(value)}}`;\n        }\n      });\n      return newLabel;\n    },\n    qtyPercentage: Ember.computed('qtyTotal', 'detail.{qty,docCount}', 'averageByItemQty', function () {\n      const averageByItemQty = R.propOr(false, 'averageByItemQty')(this);\n      const qtyTotalBig = this.big.newBig(this?.qtyTotal || 0);\n      const detail = this?.detail || {};\n      if (RA.isNotNilOrEmpty(detail)) {\n        let qtyUsedBig = this.big.newBig(detail?.docCount || 0);\n        if (averageByItemQty) {\n          qtyUsedBig = this.big.newBig(detail?.qty || 0);\n        }\n        if (qtyTotalBig.gt(0) && qtyUsedBig.gt(0)) {\n          return qtyUsedBig.div(qtyTotalBig).toFixed(4);\n        }\n      }\n      return '0';\n    }),\n    amountPercentage: Ember.computed('amountTotal', 'amount', function () {\n      const amountTotalBig = this.big.newBig(this?.amountTotal || 0);\n      const amountBig = this.big.newBig(this?.amount || 0);\n      if (amountTotalBig.gt(0) && amountBig.gt(0)) {\n        return amountBig.div(amountTotalBig).toFixed(4);\n      }\n      return '0';\n    }),\n    segmentLabel: Ember.computed('segmentByLabelKey', 'detail.segmentValue', function () {\n      const detail = this?.detail ?? {};\n      let label = detail?.segmentValue ?? '';\n      if (this.segmentByLabelKey) {\n        label = R.propOr('', this.segmentByLabelKey)(detail);\n      }\n\n      // if groupDetailsByInfoProp on api is using multiple params on the segment\n      const segmentBy = detail?.segmentBy || [];\n      if (R.is(Object, label)) {\n        if (R.includes('paymentMethodKey', segmentBy)) {\n          label = this.getPaymentMethodLabel(label);\n          return label;\n        }\n        return this.getLabelFromObjectLabel(label);\n      }\n      if (!label) {\n        label = 'none';\n      }\n      if (this.translate !== false) {\n        return this.intl.t(label);\n      }\n      return label;\n    }),\n    averageItemPrice: Ember.computed('detail.average.{exclPrice,inclPrice,postDiscExclAmt,postDiscInclAmt}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail.average', 'postDiscExclPrice', 'postDiscInclPrice');\n      if (RA.isNilOrEmpty(value) || this.big.newBig(value).eq(0)) {\n        value = this.getValue('detail.average', 'exclPrice', 'inclPrice');\n      }\n      return value;\n    }),\n    averageOrderValue: Ember.computed('detail.average.{exclTotal,inclTotal,postDiscExclTotal,postDiscInclTotal}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail.average', 'postDiscExclTotal', 'postDiscInclTotal');\n      if (RA.isNilOrEmpty(value) || this.big.newBig(value).eq(0)) {\n        value = this.getValue('detail.average', 'exclTotal', 'inclTotal');\n      }\n      return value;\n    }),\n    amount: Ember.computed('detail.{exclAmt,inclAmt,postDiscExclAmt,postDiscInclAmt}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail', 'postDiscExclAmt', 'postDiscInclAmt');\n      if (RA.isNilOrEmpty(value) || this.big.newBig(value).eq(0)) {\n        value = this.getValue('detail', 'exclAmt', 'inclAmt');\n      }\n      return value;\n    }),\n    isReturns: Ember.computed('detail.docName', function () {\n      const docName = R.propOr('', 'docName')(this.detail);\n      if (R.equals(docName, 'returns')) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/card-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ag9QiD1g\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"calculate\\\",[[24,[\\\"index\\\"]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"detail\\\",\\\"segmentValue\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"date\\\",[[24,[\\\"detail\\\",\\\"segmentValue\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,0,[\\\"segmentLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"qty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"docCount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"qtyPercentage\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showAverages\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"averageItemPrice\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[23,0,[\\\"roundingForAveraging\\\"]],[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"averageOrderValue\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[23,0,[\\\"roundingForAveraging\\\"]],[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"amount\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[24,[\\\"roundingCurrency\\\"]],[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"percentage\\\",[[24,[\\\"amountPercentage\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/card-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/component\", [\"exports\", \"ramda\", \"client/mixins/date\", \"ramda-adjunct\"], function (_exports, R, _date, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    big: Ember.inject.service(),\n    tagName: '',\n    chartLegend: 'revenue',\n    metric: 'net',\n    chartType: null,\n    // chartHeight: null,\n    chartWidth: null,\n    translate: false,\n    isTaxExclusive: true,\n    averageByItemQty: false,\n    isTableView: true,\n    isReloadingChart: false,\n    defaultLimitResults: 10,\n    limitResults: 10,\n    maxChartResults: 30,\n    showAverages: true,\n    init() {\n      this._super(...arguments);\n      this.set('metricOptions', ['invoices', 'returns', 'net']);\n      this.set('chartOptions', {\n        maintainAspectRatio: false,\n        responsive: true,\n        scales: {\n          xAxes: [{\n            ticks: {\n              beginAtZero: true\n            }\n          }]\n        }\n      });\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      let autoChartHeight = 30;\n      const rows = parseInt(this.chartDatasets.length) || 1;\n      const height = Math.ceil(rows * 30);\n      if (height < 200) {\n        autoChartHeight = 200;\n      } else {\n        autoChartHeight = height;\n      }\n      this.set('autoChartHeight', autoChartHeight);\n    },\n    // autoChartHeight: computed('chartDatasets.[]', function () {\n    //   const rows = parseInt(this.chartDatasets.length) || 1\n    //   const height = Math.ceil(rows * 30)\n\n    //   if (height < 200) {\n    //     return 200\n    //   }\n\n    //   return height\n    // }),\n\n    chartData: Ember.computed('chartLegend', 'chartLabels.[]', 'chartDatasets.[]', function () {\n      return {\n        labels: this.chartLabels,\n        datasets: [{\n          label: this.intl.t(this.chartLegend),\n          data: this.chartDatasets\n        }]\n      };\n    }),\n    getExcl(detail, param) {\n      return detail[param] || '0';\n    },\n    getIncl(detail, param) {\n      return detail[param] || '0';\n    },\n    getValue(detail, exclParam, inclParam) {\n      return this.isTaxExclusive ? this.getExcl(detail, exclParam) : this.getIncl(detail, inclParam);\n    },\n    amountTotal: Ember.computed('limited.[]', 'isTaxExclusive', function () {\n      const limited = this?.limited || [];\n      if (RA.isNotNilOrEmpty(limited) && R.is(Array, limited)) {\n        return R.pipe(R.map(detail => {\n          let value = this.getValue(detail, 'postDiscExclAmt', 'postDiscInclAmt');\n          if (RA.isNilOrEmpty(value) || this.big.newBig(value).eq(0)) {\n            value = this.getValue(detail, 'exclAmt', 'inclAmt');\n          }\n          return parseFloat(value) || 0;\n        }), R.sum)(limited);\n      }\n      return 0;\n    }),\n    qtyTotal: Ember.computed('limited.[]', 'averageByItemQty', 'isTaxExclusive', function () {\n      const limited = this?.limited || [];\n      if (RA.isNotNilOrEmpty(limited) && R.is(Array, limited)) {\n        return R.pipe(R.map(detail => {\n          const averageByItemQty = R.propOr(false, 'averageByItemQty')(this);\n          let value = detail?.docCount || 0;\n          if (averageByItemQty) {\n            value = detail?.qty || 0;\n          }\n          return parseInt(value) || 0;\n        }), R.sum)(limited);\n      }\n      return 0;\n    }),\n    sorted: Ember.computed('data', 'metric', 'limitResults', function () {\n      const metric = this.metric;\n      const data = this.get(`data.${metric}`);\n      if (Ember.isEmpty(data)) {\n        return [];\n      }\n      const valueParam = this.isTaxExclusive ? 'exclAmt' : 'inclAmt';\n      const sort = R.pipe(R.sortWith([R.descend(R.pipe(R.prop(valueParam), parseFloat))]));\n      return sort(data);\n    }),\n    limited: Ember.computed('sorted.[]', 'limitResults', function () {\n      const sorted = this.sorted;\n      const limitResults = this.limitResults;\n      if (limitResults) {\n        return R.take(limitResults, sorted);\n      }\n      return sorted;\n    }),\n    chartLabels: Ember.computed('limited.[]', 'translate', 'limitResults', function () {\n      const limited = this.limited;\n      const translate = this.translate;\n      if (Ember.isEmpty(limited)) {\n        return [];\n      }\n      // const maxChartResults = this.get('maxChartResults')\n      return R.pipe(R.pluck('segmentValue'), R.map(label => translate || label === 'none' ? this.intl.t(label) : label)\n      // R.take(maxChartResults)\n      )(limited);\n    }),\n    chartDatasets: Ember.computed('limited.[]', 'limitResults', function () {\n      const limited = this.limited;\n      if (Ember.isEmpty(limited)) {\n        return [];\n      }\n      const valueParam = this.isTaxExclusive ? 'exclAmt' : 'inclAmt';\n\n      // const maxChartResults = this.get('maxChartResults')\n      return R.pipe(R.pluck(valueParam)\n      // R.take(maxChartResults)\n      )(limited);\n    }),\n    hasMoreResults: Ember.computed('sorted.[]', 'limited.[]', 'limitResults', function () {\n      if (this.sorted.length > this.limited.length) {\n        return true;\n      }\n      return false;\n    }),\n    hasLessResults: Ember.computed('sorted.[]', 'limited.[]', 'limitResults', function () {\n      if (this.sorted.length === this.limited.length) {\n        return false;\n      }\n      return true;\n    }),\n    reloadChart() {\n      const self = this;\n      this.set('isReloadingChart', true);\n      setTimeout(() => {\n        self.set('isReloadingChart', false);\n      }, 100);\n    },\n    actions: {\n      toggleView() {\n        this.toggleProperty('isTableView');\n      },\n      viewMore() {\n        this.set('limitResults', false);\n        if (this.reloadChart) {\n          this.reloadChart();\n        }\n      },\n      viewLess() {\n        this.set('limitResults', this.defaultLimitResults);\n        if (this.reloadChart) {\n          this.reloadChart();\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Uh4UV0OI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header u-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[0,\\\"            \\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isTableView\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"order percentage\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average item price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average order value\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"revenue\\\"],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"revenue percentage\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"limited\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage/card-detail\\\",null,[[\\\"index\\\",\\\"segmentByLabelKey\\\",\\\"showAverages\\\",\\\"qtyParam\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"amountTotal\\\",\\\"qtyTotal\\\",\\\"translate\\\",\\\"detail\\\"],[[23,2,[]],[24,[\\\"segmentByLabelKey\\\"]],[24,[\\\"showAverages\\\"]],[24,[\\\"qtyParam\\\"]],[24,[\\\"averageByItemQty\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"amountTotal\\\"]],[24,[\\\"qtyTotal\\\"]],[24,[\\\"translate\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"        \\\"],[9],[0,\\\"        \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMoreResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"show more\\\",[28,\\\"action\\\",[[23,0,[]],\\\"viewMore\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasLessResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"show less\\\",[28,\\\"action\\\",[[23,0,[]],\\\"viewLess\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-revenue-by-group-with-percentage/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/card-detail/component\", [\"exports\", \"ramda-adjunct\", \"ramda\"], function (_exports, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    bigService: Ember.inject.service('big'),\n    tagName: '',\n    isDate: false,\n    roundingCurrency: 0,\n    showAverages: true,\n    roundingForAveraging: 2,\n    getExcl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getIncl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getValue(param, exclParam, inclParam) {\n      return this.isTaxExclusive ? this.getExcl(param, exclParam) : this.getIncl(param, inclParam);\n    },\n    getPaymentMethodLabel(label) {\n      let paymentMethodKey = label?.paymentMethodKey || '';\n      const paymentMethodCustomLabel = label.paymentMethodCustomLabel || '';\n      if (RA.isNotNilOrEmpty(paymentMethodKey) && this.translate !== false) {\n        paymentMethodKey = this.intl.t(paymentMethodKey);\n      }\n      if (RA.isNotNilOrEmpty(paymentMethodCustomLabel)) {\n        return `${paymentMethodCustomLabel} (${paymentMethodKey})`;\n      }\n      return paymentMethodKey;\n    },\n    // can be used dynamically if no additional condition needed.\n    getLabelFromObjectLabel(labelObject) {\n      let newLabel = '';\n      const mapObjRealIndexed = R.addIndex(R.mapObjIndexed);\n      mapObjRealIndexed((value, key, obj, index) => {\n        let usedValue = R.clone(value);\n        try {\n          usedValue = this.intl.t(value);\n          if (R.includes('Missing translation', usedValue)) {\n            usedValue = R.clone(value);\n          }\n        } catch (error) {\n          console.log(error);\n        }\n        if (R.equals(index, 0)) {\n          newLabel = `${usedValue}`;\n        } else {\n          newLabel = `${newLabel} - ${usedValue}`;\n        }\n      })(labelObject);\n      return newLabel;\n    },\n    segmentLabel: Ember.computed('segmentByLabelKey', 'detail.segmentValue', function () {\n      const detail = this?.detail ?? {};\n      let label = detail?.segmentValue ?? '';\n      if (this.segmentByLabelKey) {\n        label = R.propOr('', this.segmentByLabelKey)(detail);\n      }\n\n      // if groupDetailsByInfoProp on api is using multiple params on the segment\n      const segmentBy = detail?.segmentBy || [];\n      if (R.is(Object, label)) {\n        if (R.includes('paymentMethodKey', segmentBy) && R.includes('paymentMethodCustomLabel', segmentBy)) {\n          label = this.getPaymentMethodLabel(label);\n          return label;\n        }\n        return this.getLabelFromObjectLabel(label);\n      }\n      if (!label) {\n        label = 'none';\n      }\n      if (this.translate !== false) {\n        return this.intl.t(label);\n      }\n      return label;\n    }),\n    averageItemPrice: Ember.computed('detail.average.{exclPrice,inclPrice,postDiscExclAmt,postDiscInclAmt}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail.average', 'postDiscExclPrice', 'postDiscInclPrice');\n      if (RA.isNilOrEmpty(value) || this.bigService.newBig(value).eq(0)) {\n        value = this.getValue('detail.average', 'exclPrice', 'inclPrice');\n      }\n      return value;\n    }),\n    averageOrderValue: Ember.computed('detail.average.{exclTotal,inclTotal,postDiscExclTotal,postDiscInclTotal}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail.average', 'postDiscExclTotal', 'postDiscInclTotal');\n      if (RA.isNilOrEmpty(value) || this.bigService.newBig(value).eq(0)) {\n        value = this.getValue('detail.average', 'exclTotal', 'inclTotal');\n      }\n      return value;\n    }),\n    amount: Ember.computed('detail.{exclAmt,inclAmt,postDiscExclAmt,postDiscInclAmt}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail', 'postDiscExclAmt', 'postDiscInclAmt');\n      if (RA.isNilOrEmpty(value) || this.bigService.newBig(value).eq(0)) {\n        value = this.getValue('detail', 'exclAmt', 'inclAmt');\n      }\n      return value;\n    }),\n    isReturns: Ember.computed('detail.docName', function () {\n      const docName = R.propOr('', 'docName')(this.detail);\n      if (R.equals(docName, 'returns')) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/card-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oGFzGtgL\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"calculate\\\",[[24,[\\\"index\\\"]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"detail\\\",\\\"segmentValue\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"date\\\",[[24,[\\\"detail\\\",\\\"segmentValue\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[23,0,[\\\"segmentLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"qty\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"docCount\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showAverages\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"averageItemPrice\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[23,0,[\\\"roundingForAveraging\\\"]],[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"averageOrderValue\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[23,0,[\\\"roundingForAveraging\\\"]],[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"amount\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[24,[\\\"roundingCurrency\\\"]],[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/card-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/date\"], function (_exports, R, RA, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_date.default, (_dec = Ember._action, _obj = {\n    settings: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    tagName: '',\n    chartLegend: 'revenue',\n    metric: 'net',\n    chartType: null,\n    // chartHeight: null,\n    chartWidth: null,\n    translate: false,\n    isTaxExclusive: true,\n    averageByItemQty: false,\n    isTableView: true,\n    isReloadingChart: false,\n    defaultLimitResults: 10,\n    limitResults: 10,\n    maxChartResults: 30,\n    showAverages: true,\n    toggleResult: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['reports/lists/contact-tags']);\n      this.set('metricOptions', ['invoices', 'returns', 'net']);\n      this.set('chartOptions', {\n        maintainAspectRatio: false,\n        responsive: true,\n        scales: {\n          xAxes: [{\n            ticks: {\n              beginAtZero: true\n            }\n          }]\n        }\n      });\n      const settingsModel = this.settings.getModel();\n      let defaultContactTagsReportSummaryOption = 'uniqueTagsOnly';\n      if (RA.isNotNilOrEmpty(settingsModel)) {\n        defaultContactTagsReportSummaryOption = settingsModel.getData('contactTagsReportSummaryOption');\n      }\n      this.set('toggleResult', defaultContactTagsReportSummaryOption);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      let autoChartHeight = 30;\n      const rows = parseInt(this.chartDatasets.length) || 1;\n      const height = Math.ceil(rows * 30);\n      if (height < 200) {\n        autoChartHeight = 200;\n      } else {\n        autoChartHeight = height;\n      }\n      this.set('autoChartHeight', autoChartHeight);\n    },\n    // autoChartHeight: computed('chartDatasets.[]', function () {\n    //   const rows = parseInt(this.chartDatasets.length) || 1\n    //   const height = Math.ceil(rows * 30)\n\n    //   if (height < 200) {\n    //     return 200\n    //   }\n\n    //   return height\n    // }),\n\n    chartData: Ember.computed('chartLegend', 'chartLabels.[]', 'chartDatasets.[]', function () {\n      return {\n        labels: this.chartLabels,\n        datasets: [{\n          label: this.intl.t(this.chartLegend),\n          data: this.chartDatasets\n        }]\n      };\n    }),\n    sorted: Ember.computed('data', 'metric', 'limitResults', 'toggleResult', function () {\n      const metric = this.metric;\n      let data = this.get(`data.${metric}`);\n      if (this?.isContactTags) {\n        const settingsModel = this.settings.getModel();\n        let defaultContactTagsReportSummaryOption = 'uniqueTagsOnly';\n        if (RA.isNotNilOrEmpty(settingsModel)) {\n          defaultContactTagsReportSummaryOption = settingsModel.getData('contactTagsReportSummaryOption');\n        }\n        const toggleResult = this?.toggleResult || defaultContactTagsReportSummaryOption;\n        data = this.get(`data.${toggleResult}.${metric}`);\n      }\n      if (Ember.isEmpty(data)) {\n        return [];\n      }\n      const valueParam = this.isTaxExclusive ? 'exclAmt' : 'inclAmt';\n      const sort = R.pipe(R.sortWith([R.descend(R.pipe(R.prop(valueParam), parseFloat))]));\n      return sort(data);\n    }),\n    limited: Ember.computed('sorted.[]', 'limitResults', function () {\n      let sorted = this.sorted;\n      const limitResults = this.limitResults;\n      if (limitResults) {\n        sorted = R.take(limitResults, sorted);\n      }\n      return sorted;\n    }),\n    chartLabels: Ember.computed('limited.[]', 'translate', 'limitResults', function () {\n      const limited = this.limited;\n      const translate = this.translate;\n      if (Ember.isEmpty(limited)) {\n        return [];\n      }\n      // const maxChartResults = this.get('maxChartResults')\n      return R.pipe(R.pluck('segmentValue'), R.map(label => translate || label === 'none' ? this.intl.t(label) : label)\n      // R.take(maxChartResults)\n      )(limited);\n    }),\n    chartDatasets: Ember.computed('limited.[]', 'limitResults', function () {\n      const limited = this.limited;\n      if (Ember.isEmpty(limited)) {\n        return [];\n      }\n      const valueParam = this.isTaxExclusive ? 'exclAmt' : 'inclAmt';\n\n      // const maxChartResults = this.get('maxChartResults')\n      return R.pipe(R.pluck(valueParam)\n      // R.take(maxChartResults)\n      )(limited);\n    }),\n    hasMoreResults: Ember.computed('sorted.[]', 'limited.[]', 'limitResults', function () {\n      if (this.sorted.length > this.limited.length) {\n        return true;\n      }\n      return false;\n    }),\n    hasLessResults: Ember.computed('sorted.[]', 'limited.[]', 'limitResults', function () {\n      if (this.sorted.length === this.limited.length) {\n        return false;\n      }\n      return true;\n    }),\n    reloadChart() {\n      const self = this;\n      this.set('isReloadingChart', true);\n      setTimeout(() => {\n        self.set('isReloadingChart', false);\n      }, 100);\n    },\n    toggleView(toggleValue) {\n      if (RA.isNotNilOrEmpty(toggleValue)) {\n        this.set('toggleResult', toggleValue.getData('value'));\n      }\n    },\n    actions: {\n      viewMore() {\n        this.set('limitResults', false);\n        if (this.reloadChart) {\n          this.reloadChart();\n        }\n      },\n      viewLess() {\n        this.set('limitResults', this.defaultLimitResults);\n        if (this.reloadChart) {\n          this.reloadChart();\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleView\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleView\"), _obj), _obj));\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1giTeaTC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header u-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"toggleResult\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"hasWarning\\\"]],[24,[\\\"warningText\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"warningText\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isContactTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"reports-lists-contact-tags\\\"]],true,\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"toggleResult\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleView\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[\\\"average item price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[\\\"average order value\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"revenue\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"limited\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group/card-detail\\\",null,[[\\\"index\\\",\\\"segmentByLabelKey\\\",\\\"showAverages\\\",\\\"qtyParam\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"detail\\\"],[[23,2,[]],[24,[\\\"segmentByLabelKey\\\"]],[24,[\\\"showAverages\\\"]],[24,[\\\"qtyParam\\\"]],[24,[\\\"averageByItemQty\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"translate\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMoreResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"show more\\\",[28,\\\"action\\\",[[23,0,[]],\\\"viewMore\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasLessResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"show less\\\",[28,\\\"action\\\",[[23,0,[]],\\\"viewLess\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-revenue-by-group-with-tags/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group/card-detail/component\", [\"exports\", \"ramda-adjunct\", \"ramda\"], function (_exports, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    intl: Ember.inject.service(),\n    bigService: Ember.inject.service('big'),\n    tagName: '',\n    isDate: false,\n    roundingCurrency: 0,\n    showAverages: true,\n    roundingForAveraging: 2,\n    getExcl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getIncl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getValue(param, exclParam, inclParam) {\n      return this.isTaxExclusive ? this.getExcl(param, exclParam) : this.getIncl(param, inclParam);\n    },\n    getPaymentMethodLabel(label) {\n      let paymentMethodKey = label?.paymentMethodKey || '';\n      const paymentMethodCustomLabel = label.paymentMethodCustomLabel || '';\n      if (RA.isNotNilOrEmpty(paymentMethodKey) && this.translate !== false) {\n        paymentMethodKey = this.intl.t(paymentMethodKey);\n      }\n      if (RA.isNotNilOrEmpty(paymentMethodCustomLabel)) {\n        return `${paymentMethodCustomLabel} (${paymentMethodKey})`;\n      }\n      return paymentMethodKey;\n    },\n    // can be used dynamically if no additional condition needed.\n    getLabelFromObjectLabel(labelObject) {\n      let newLabel = '';\n      const mapObjRealIndexed = R.addIndex(R.mapObjIndexed);\n      mapObjRealIndexed((value, key, obj, index) => {\n        let usedValue = R.clone(value);\n        try {\n          usedValue = this.intl.t(value);\n          if (R.includes('Missing translation', usedValue)) {\n            usedValue = R.clone(value);\n          }\n        } catch (error) {\n          console.log(error);\n        }\n        if (R.equals(index, 0)) {\n          newLabel = `${usedValue}`;\n        } else {\n          newLabel = `${newLabel} - ${usedValue}`;\n        }\n      })(labelObject);\n      return newLabel;\n    },\n    segmentLabel: Ember.computed('segmentByLabelKey', 'detail.segmentValue', function () {\n      const detail = this?.detail ?? {};\n      let label = detail?.segmentValue ?? '';\n      if (this.segmentByLabelKey) {\n        label = R.propOr('', this.segmentByLabelKey)(detail);\n      }\n\n      // if groupDetailsByInfoProp on api is using multiple params on the segment\n      const segmentBy = detail?.segmentBy ?? [];\n      if (R.is(Object, label)) {\n        if (R.includes('paymentMethodKey', segmentBy) && R.includes('paymentMethodCustomLabel', segmentBy)) {\n          label = this.getPaymentMethodLabel(label);\n          return label;\n        }\n        return this.getLabelFromObjectLabel(label);\n      }\n      if (!label) {\n        label = 'none';\n      }\n      if (this.translate !== false) {\n        return this.intl.t(label);\n      }\n      return label;\n    }),\n    averageItemPrice: Ember.computed('detail.average.{exclPrice,inclPrice,postDiscExclAmt,postDiscInclAmt}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail.average', 'postDiscExclPrice', 'postDiscInclPrice');\n      if (RA.isNilOrEmpty(value) || this.bigService.newBig(value).eq(0)) {\n        value = this.getValue('detail.average', 'exclPrice', 'inclPrice');\n      }\n      return value;\n    }),\n    averageOrderValue: Ember.computed('detail.average.{exclTotal,inclTotal,postDiscExclTotal,postDiscInclTotal}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail.average', 'postDiscExclTotal', 'postDiscInclTotal');\n      if (RA.isNilOrEmpty(value) || this.bigService.newBig(value).eq(0)) {\n        value = this.getValue('detail.average', 'exclTotal', 'inclTotal');\n      }\n      return value;\n    }),\n    amount: Ember.computed('detail.{exclAmt,inclAmt,postDiscExclAmt,postDiscInclAmt}', 'isTaxExclusive', function () {\n      let value = this.getValue('detail', 'postDiscExclAmt', 'postDiscInclAmt');\n      if (RA.isNilOrEmpty(value) || this.bigService.newBig(value).eq(0)) {\n        value = this.getValue('detail', 'exclAmt', 'inclAmt');\n      }\n      return value;\n    }),\n    isReturns: Ember.computed('detail.docName', function () {\n      const docName = R.propOr('', 'docName')(this.detail);\n      if (R.equals(docName, 'returns')) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group/card-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8c7hjN/3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"nestedDetail\\\",\\\"isTooltipVisible\\\",\\\"@isDateNestedSegment\\\",\\\"@segmentByLabelKey\\\",\\\"@qtyParam\\\",\\\"@averageByItemQty\\\",\\\"@isTaxExclusive\\\",\\\"@translate\\\",\\\"@detail\\\",\\\"@showNestedSegments\\\",\\\"@isNestedSegments\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-centered \\\",[28,\\\"if\\\",[[23,10,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideIndex\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"calculate\\\",[[24,[\\\"index\\\"]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,10,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,11,[]],\\\"u-desc u-desc--italics\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"detail\\\",\\\"segmentValue\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[24,[\\\"detail\\\",\\\"segmentValue\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,0,[\\\"segmentLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,10,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,11,[]],\\\"u-desc u-desc--italics\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"detail\\\",\\\"hasQrCodeTicket\\\"]],[28,\\\"gt\\\",[[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"admittedQty\\\"]]],null],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n              (\\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"admittedQty\\\"]]],null],false],[0,\\\") / \\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"admitted qty\\\"],null],false],[0,\\\":\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"admittedQty\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"remaining qty\\\"],null],false],[0,\\\":\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[28,\\\"calculate\\\",[[24,[\\\"detail\\\",\\\"qty\\\"]],\\\"-\\\",[24,[\\\"detail\\\",\\\"admittedQty\\\"]]],null]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"qty\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[24,[\\\"detail\\\",\\\"docCount\\\"]]],[[\\\"negative\\\"],[[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,10,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,11,[]],\\\"u-desc u-desc--italics\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showAverages\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"averageItemPrice\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[23,0,[\\\"roundingForAveraging\\\"]],[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"averageOrderValue\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[23,0,[\\\"roundingForAveraging\\\"]],[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,10,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,11,[]],\\\"u-desc u-desc--italics\\\"],null]],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"amount\\\"]]],[[\\\"rounding\\\",\\\"negative\\\"],[[24,[\\\"roundingCurrency\\\"]],[24,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,9,[\\\"nestedSegment\\\"]],[23,10,[]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[28,\\\"ramda\\\",[\\\"values\\\",[23,9,[\\\"nestedSegment\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"reports/dashboard/card-revenue-by-group/card-detail\\\",[],[[\\\"@hideIndex\\\",\\\"@isNestedSegments\\\",\\\"@isDate\\\",\\\"@segmentByLabelKey\\\",\\\"@showAverages\\\",\\\"@qtyParam\\\",\\\"@averageByItemQty\\\",\\\"@isTaxExclusive\\\",\\\"@translate\\\",\\\"@detail\\\"],[true,true,[23,3,[]],[23,4,[]],[23,0,[\\\"showAverages\\\"]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-revenue-by-group/card-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/date\"], function (_exports, R, RA, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_date.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    tagName: '',\n    chartLegend: 'revenue',\n    metric: 'net',\n    chartType: null,\n    // chartHeight: null,\n    chartWidth: null,\n    translate: false,\n    isTaxExclusive: true,\n    averageByItemQty: false,\n    isTableView: true,\n    isReloadingChart: false,\n    defaultLimitResults: 10,\n    limitResults: 10,\n    maxChartResults: 30,\n    showAverages: true,\n    toggleResult: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['reports/lists/show-item-by']);\n      this.set('metricOptions', ['invoices', 'returns', 'net']);\n      this.set('chartOptions', {\n        maintainAspectRatio: false,\n        responsive: true,\n        scales: {\n          xAxes: [{\n            ticks: {\n              beginAtZero: true\n            }\n          }]\n        }\n      });\n      if (this.isItem || this.isItemSets) {\n        const initialToggleResult = this.initialToggleResult || 'showItem';\n        this.set('toggleResult', initialToggleResult);\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      let autoChartHeight = 30;\n      const rows = parseInt(this.chartDatasets.length) || 1;\n      const height = Math.ceil(rows * 30);\n      if (height < 200) {\n        autoChartHeight = 200;\n      } else {\n        autoChartHeight = height;\n      }\n      this.set('autoChartHeight', autoChartHeight);\n    },\n    // autoChartHeight: computed('chartDatasets.[]', function () {\n    //   const rows = parseInt(this.chartDatasets.length) || 1\n    //   const height = Math.ceil(rows * 30)\n\n    //   if (height < 200) {\n    //     return 200\n    //   }\n\n    //   return height\n    // }),\n\n    chartData: Ember.computed('chartLegend', 'chartLabels.[]', 'chartDatasets.[]', function () {\n      return {\n        labels: this.chartLabels,\n        datasets: [{\n          label: this.intl.t(this.chartLegend),\n          data: this.chartDatasets\n        }]\n      };\n    }),\n    sorted: Ember.computed('data.[]', 'metric', 'limitResults', 'toggleResult', function () {\n      const metric = this.metric;\n      let data = this.get(`data.${metric}`);\n      if (this.isItem) {\n        const toggleResult = this?.toggleResult || 'showItem';\n        let paramName = 'item';\n        if (R.equals(toggleResult, 'showItemWithSetChildOnly')) {\n          paramName = 'itemWithSetChildOnly';\n        }\n        data = this.get(`data.${paramName}.${metric}`);\n      }\n      if (this.isItemSets) {\n        const toggleResult = this?.toggleResult || 'showItem';\n        let paramName = 'itemWithGroupedSetWithChoices';\n        if (R.equals(toggleResult, 'showItemWithSetChildOnly')) {\n          paramName = 'itemWithGroupedSetWithChoicesWithSetChildOnly';\n        }\n        data = this.get(`data.${paramName}.${metric}`);\n      }\n      if (Ember.isEmpty(data)) {\n        return [];\n      }\n      const valueParam = this.isTaxExclusive ? 'exclAmt' : 'inclAmt';\n      const sort = R.pipe(R.sortWith([R.descend(R.pipe(R.prop(valueParam), parseFloat))]));\n      return sort(data);\n    }),\n    limited: Ember.computed('sorted.[]', 'limitResults', function () {\n      const sorted = this.sorted;\n      const limitResults = this.limitResults;\n      if (limitResults) {\n        return R.take(limitResults, sorted);\n      }\n      return sorted;\n    }),\n    chartLabels: Ember.computed('limited.[]', 'translate', 'limitResults', function () {\n      const limited = this.limited;\n      const translate = this.translate;\n      if (Ember.isEmpty(limited)) {\n        return [];\n      }\n      // const maxChartResults = this.get('maxChartResults')\n      return R.pipe(R.pluck('segmentValue'), R.map(label => translate || label === 'none' ? this.intl.t(label) : label)\n      // R.take(maxChartResults)\n      )(limited);\n    }),\n    chartDatasets: Ember.computed('limited.[]', 'limitResults', function () {\n      const limited = this.limited;\n      if (Ember.isEmpty(limited)) {\n        return [];\n      }\n      const valueParam = this.isTaxExclusive ? 'exclAmt' : 'inclAmt';\n\n      // const maxChartResults = this.get('maxChartResults')\n      return R.pipe(R.pluck(valueParam)\n      // R.take(maxChartResults)\n      )(limited);\n    }),\n    hasMoreResults: Ember.computed('sorted.[]', 'limited.[]', 'limitResults', function () {\n      if (this.sorted.length > this.limited.length) {\n        return true;\n      }\n      return false;\n    }),\n    hasLessResults: Ember.computed('sorted.[]', 'limited.[]', 'limitResults', function () {\n      if (this.sorted.length === this.limited.length) {\n        return false;\n      }\n      return true;\n    }),\n    reloadChart() {\n      const self = this;\n      this.set('isReloadingChart', true);\n      setTimeout(() => {\n        self.set('isReloadingChart', false);\n      }, 100);\n    },\n    actions: {\n      toggleView() {\n        this.toggleProperty('isTableView');\n      },\n      viewMore() {\n        this.set('limitResults', false);\n        if (this.reloadChart) {\n          this.reloadChart();\n        }\n      },\n      viewLess() {\n        this.set('limitResults', this.defaultLimitResults);\n        if (this.reloadChart) {\n          this.reloadChart();\n        }\n      }\n    },\n    toggleDataView(toggleValue) {\n      if (RA.isNotNilOrEmpty(toggleValue)) {\n        this.set('toggleResult', toggleValue.getData('value'));\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleDataView\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleDataView\"), _obj), _obj));\n});","define(\"client/pods/components/reports/dashboard/card-revenue-by-group/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CdMUWH0s\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\",\\\"@productsBySetsWithChoices\\\",\\\"@isItemSets\\\",\\\"@isItem\\\",\\\"@showProductsBySetsWithChoicesToggle\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header u-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[0,\\\"            \\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,6,[]],[28,\\\"or\\\",[[23,5,[]],[23,4,[]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\"],[\\\"group by product set with choices\\\",[23,3,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"reports-lists-show-item-by\\\"]],true,\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"toggleResult\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleDataView\\\"]]],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n    \\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isTableView\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average item price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average order value\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"revenue\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"limited\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group/card-detail\\\",null,[[\\\"index\\\",\\\"showNested\\\",\\\"isDate\\\",\\\"isDateNestedSegment\\\",\\\"segmentByLabelKey\\\",\\\"showAverages\\\",\\\"qtyParam\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"detail\\\"],[[23,2,[]],[24,[\\\"showNested\\\"]],[24,[\\\"isDate\\\"]],[24,[\\\"isDateNestedSegment\\\"]],[24,[\\\"segmentByLabelKey\\\"]],[24,[\\\"showAverages\\\"]],[24,[\\\"qtyParam\\\"]],[24,[\\\"averageByItemQty\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"translate\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"        \\\"],[9],[0,\\\"        \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasMoreResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"show more\\\",[28,\\\"action\\\",[[23,0,[]],\\\"viewMore\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasLessResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"show less\\\",[28,\\\"action\\\",[[23,0,[]],\\\"viewLess\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-revenue-by-group/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-for-month/component\", [\"exports\", \"ramda\", \"client/mixins/date\", \"client/mixins/big\"], function (_exports, R, _date, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_big.default, _date.default, {\n    tagName: '',\n    chartLegend: 'revenue',\n    metric: 'net',\n    chartType: null,\n    chartHeight: null,\n    chartWidth: null,\n    translate: false,\n    isTaxExclusive: true,\n    averageByItemQty: false,\n    isTableView: true,\n    isReloadingChart: false,\n    showNestedSegments: false,\n    init() {\n      this._super(...arguments);\n      this.set('metricOptions', ['invoices', 'returns', 'net']);\n    },\n    autoChartHeight: Ember.computed('chartDatasets.[]', function () {\n      const rows = parseInt(this.chartDatasets.length) || 1;\n      const height = Math.ceil(rows * 30);\n      if (height < 200) {\n        return 200;\n      }\n      return height;\n    }),\n    chartData: Ember.computed('chartLegend', 'chartLabels.[]', 'chartDatasets.[]', 'isTaxExclusive', function () {\n      return {\n        labels: this.chartLabels,\n        datasets: [{\n          label: this.intl.t(this.chartLegend),\n          data: this.chartDatasets\n        }]\n      };\n    }),\n    sorted: Ember.computed('data.[]', 'metric', function () {\n      const metric = this.metric;\n      const data = this.get(`data.${metric}`);\n      if (Ember.isEmpty(data)) {\n        return [];\n      }\n      const sort = R.sortWith([R.ascend(R.prop('segmentValue'))]);\n      return sort(data);\n    }),\n    chartLabels: Ember.computed('sorted.[]', function () {\n      const sorted = this.sorted;\n      if (Ember.isEmpty(sorted)) {\n        return [];\n      }\n      const formatDateFor = R.pipe(R.pluck('segmentValue'), R.map(date => {\n        if (date) {\n          return this.formatDate(date, 'DD');\n        }\n        return '';\n      }));\n      return formatDateFor(sorted);\n    }),\n    chartDatasets: Ember.computed('sorted.[]', 'isTaxExclusive', function () {\n      const sorted = this.sorted;\n      if (Ember.isEmpty(sorted)) {\n        return [];\n      }\n      const valueParam = this.isTaxExclusive ? 'exclAmt' : 'inclAmt';\n      return R.pluck(valueParam, sorted);\n    }),\n    getExcl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getIncl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getValue(param, exclParam, inclParam) {\n      return this.isTaxExclusive ? this.getExcl(param, exclParam) : this.getIncl(param, inclParam);\n    },\n    // total: computed('chartDatasets.[]', 'isTaxExclusive', function () {\n    //   const chartDatasets = this.get('chartDatasets') || []\n    //   const rounding = 0\n    //   const total = this.sumArray(chartDatasets)\n\n    //   return this.autoRound(rounding, total)\n    // })\n\n    // total: computed('report.revenue.net.{exclTotal,inclTotal}', 'isTaxExclusive', function () {\n    //   return this.getValue('report.revenue.net', 'exclTotal', 'inclTotal')\n    // })\n\n    actions: {\n      toggleView() {\n        this.toggleProperty('isTableView');\n      },\n      toggleNested() {\n        this.toggleProperty('showNestedSegments');\n      }\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-for-month/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hJTMc1YL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\",\\\"@hasNestedSegments\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header u-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"show payment method\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleNested\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n        \\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-chart-bar\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isTableView\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average item price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average order value\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"revenue\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group/card-detail\\\",null,[[\\\"index\\\",\\\"isDate\\\",\\\"qtyParam\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"showNestedSegments\\\",\\\"detail\\\"],[[23,2,[]],true,[24,[\\\"qtyParam\\\"]],[24,[\\\"averageByItemQty\\\"]],[24,[\\\"isTaxExclusive\\\"]],[23,1,[\\\"translate\\\"]],[23,0,[\\\"showNestedSegments\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"        \\\"],[9],[0,\\\"        \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"isReloadingChart\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"ember-chart\\\",null,[[\\\"type\\\",\\\"data\\\",\\\"options\\\",\\\"width\\\",\\\"height\\\"],[[24,[\\\"chartType\\\"]],[24,[\\\"chartData\\\"]],[24,[\\\"chartOptions\\\"]],[24,[\\\"chartWidth\\\"]],[24,[\\\"autoChartHeight\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-revenue-for-month/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-for-year/component\", [\"exports\", \"ramda\", \"client/mixins/date\"], function (_exports, R, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, {\n    tagName: '',\n    chartLegend: 'revenue',\n    metric: 'net',\n    chartType: null,\n    chartHeight: null,\n    chartWidth: null,\n    translate: false,\n    isTaxExclusive: true,\n    averageByItemQty: false,\n    isTableView: false,\n    isReloadingChart: false,\n    init() {\n      this._super(...arguments);\n      this.set('metricOptions', ['invoices', 'returns', 'net']);\n    },\n    autoChartHeight: Ember.computed('chartDatasets.[]', function () {\n      const rows = parseInt(this.chartDatasets.length) || 1;\n      const height = Math.ceil(rows * 30);\n      if (height < 200) {\n        return 200;\n      }\n      return height;\n    }),\n    chartData: Ember.computed('chartLegend', 'chartLabels.[]', 'chartDatasets.[]', 'isTaxExclusive', function () {\n      return {\n        labels: this.chartLabels,\n        datasets: [{\n          label: this.intl.t(this.chartLegend),\n          data: this.chartDatasets\n        }]\n      };\n    }),\n    sorted: Ember.computed('data.[]', 'metric', function () {\n      const metric = this.metric;\n      const data = this.get(`data.${metric}`);\n      if (Ember.isEmpty(data)) {\n        return [];\n      }\n      const sort = R.pipe(R.map(detail => {\n        const MM = this.getMM(detail.segmentValue.mm);\n        const yyyy = detail.segmentValue.yyyy;\n        if (MM && yyyy) {\n          detail.segmentValue = `${yyyy}-${MM}-01`;\n        } else {\n          detail.segmentValue = '';\n        }\n        return detail;\n      }), R.sortWith([R.ascend(R.prop('segmentValue'))]));\n      return sort(data);\n    }),\n    chartLabels: Ember.computed('sorted.[]', 'scale', function () {\n      const sorted = this.sorted;\n      if (Ember.isEmpty(sorted)) {\n        return [];\n      }\n      const formatDateFor = R.pipe(R.pluck('segmentValue'), R.map(date => {\n        if (date) {\n          return this.formatDate(date, 'YYYY-MM');\n        }\n        return '';\n      }));\n      return formatDateFor(sorted);\n    }),\n    chartDatasets: Ember.computed('sorted.[]', 'isTaxExclusive', function () {\n      const sorted = this.sorted;\n      if (Ember.isEmpty(sorted)) {\n        return [];\n      }\n      const valueParam = this.isTaxExclusive ? 'exclAmt' : 'inclAmt';\n      return R.pluck(valueParam, sorted);\n    }),\n    getExcl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getIncl(param, type) {\n      return this.get(`${param}.${type}`);\n    },\n    getValue(param, exclParam, inclParam) {\n      return this.isTaxExclusive ? this.getExcl(param, exclParam) : this.getIncl(param, inclParam);\n    },\n    // total: computed('report.revenue.net.{exclTotal,inclTotal}', 'isTaxExclusive', function () {\n    //   return this.getValue('report.revenue.net', 'exclTotal', 'inclTotal')\n    // })\n\n    actions: {\n      toggleView() {\n        this.toggleProperty('isTableView');\n      }\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-for-year/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"V9JdfQdJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header u-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[0,\\\"            \\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-list-ul\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n        \\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-chart-bar\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleView\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isTableView\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"qty\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average item price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"tt\\\",[\\\"average order value\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[28,\\\"tt\\\",[\\\"revenue\\\"],null],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group/card-detail\\\",null,[[\\\"index\\\",\\\"isDate\\\",\\\"qtyParam\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"detail\\\"],[[23,2,[]],true,[24,[\\\"qtyParam\\\"]],[24,[\\\"averageByItemQty\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"translate\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"        \\\"],[9],[0,\\\"        \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"isReloadingChart\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"ember-chart\\\",null,[[\\\"type\\\",\\\"data\\\",\\\"options\\\",\\\"width\\\",\\\"height\\\"],[[24,[\\\"chartType\\\"]],[24,[\\\"chartData\\\"]],[24,[\\\"chartOptions\\\"]],[24,[\\\"chartWidth\\\"]],[24,[\\\"autoChartHeight\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-revenue-for-year/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-stats/component\", [\"exports\", \"ramda\", \"client/mixins/big\"], function (_exports, R, _big) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_big.default, {\n    tagName: '',\n    commissionNormalPercent: '',\n    //set default here\n\n    taxMethod: Ember.computed('isTaxExclusive', function () {\n      return this.isTaxExclusive ? 'tax exclusive' : 'tax inclusive';\n    }),\n    getExcl(param) {\n      return this.get(`${param}.exclTotal`);\n    },\n    getIncl(param) {\n      return this.get(`${param}.inclTotal`);\n    },\n    getValue(param, segmentPropData) {\n      if (segmentPropData && !R.isEmpty(segmentPropData)) {\n        const param = this.isTaxExclusive ? 'exclAmt' : 'inclAmt';\n        const rounding = 0;\n        return this.sumPropAndAutoRound(rounding, param, segmentPropData);\n      }\n      return this.isTaxExclusive ? this.getExcl(param) : this.getIncl(param);\n    },\n    net: Ember.computed('report.revenue.net.{exclTotal,inclTotal}', 'isTaxExclusive', 'segment.net.[]', function () {\n      return this.getValue('report.revenue.net', this.get('segment.net'));\n    }),\n    invoices: Ember.computed('report.revenue.invoices.{exclTotal,inclTotal}', 'isTaxExclusive', 'segment.invoices.[]', function () {\n      return this.getValue('report.revenue.invoices', this.get('segment.invoices'));\n    }),\n    shippingFee: Ember.computed('report.revenue.invoices.{shippingFeeExclTotal,shippingFeeInclTotal}', 'isTaxExclusive', function () {\n      return this.isTaxExclusive ? this.get('report.revenue.invoices.shippingFeeExclTotal') : this.get('report.revenue.invoices.shippingFeeInclTotal');\n    }),\n    estimatedCommissionNormalPercent: Ember.computed('isGuest', 'tokenData', 'model', function () {\n      return this.report?.revenue?.invoices?.estimatedCommissionNormalPercent;\n    }),\n    invoicesMinusShippingfee: Ember.computed('invoices', 'estimatedCommissionNormalPercent', function () {\n      const invoices = this.invoices;\n      const shippingFee = this.shippingFee;\n      return this.newBig(invoices).minus(shippingFee).toFixed(0);\n    }),\n    estimatedCommissions: Ember.computed('net', 'estimatedCommissionNormalPercent', function () {\n      const net = this.net;\n      const shippingFee = this.shippingFee;\n      const estimatedCommissionNormalPercent = this.estimatedCommissionNormalPercent;\n      if (!estimatedCommissionNormalPercent) {\n        return '';\n      }\n      const byAmountBig = this.newBig(net).minus(shippingFee).times(estimatedCommissionNormalPercent).div(100);\n      const commissionInclTotal = byAmountBig.toFixed(0);\n      return commissionInclTotal;\n    }),\n    returns: Ember.computed('report.revenue.returns.{exclTotal,inclTotal}', 'isTaxExclusive', 'segment.returns.[]', function () {\n      return this.getValue('report.revenue.returns', this.get('segment.returns'));\n    }),\n    average: Ember.computed('report.revenue.net.average.{exclTotal,inclTotal}', 'isTaxExclusive', 'segment.average.[]', function () {\n      return this.getValue('report.revenue.net.average', this.get('segment.average'));\n    })\n  });\n});","define(\"client/pods/components/reports/dashboard/card-revenue-stats/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xQg1shnU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@isTooltipAlwaysVisible\\\"],\\\"statements\\\":[[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"reports/dashboard/card-stat\\\",null,[[\\\"title\\\"],[[24,[\\\"title\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__dash-table u-full-width\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"net\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"revenue\\\"],null],false],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                (\\\"],[1,[28,\\\"tt\\\",[[24,[\\\"taxMethod\\\"]]],null],false],[0,\\\")\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"invoices\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"total sales\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"returns\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                -\\\"],[1,[28,\\\"currency\\\",[[24,[\\\"returns\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"currency\\\",[\\\"0\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"total returns\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"average\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"average order value\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[28,\\\"number\\\",[[24,[\\\"report\\\",\\\"revenue\\\",\\\"invoices\\\",\\\"docCountBeforeSplit\\\"]]],null],[28,\\\"number\\\",[[24,[\\\"report\\\",\\\"revenue\\\",\\\"invoices\\\",\\\"docCount\\\"]]],null]],null],[28,\\\"lte\\\",[[28,\\\"number\\\",[[24,[\\\"report\\\",\\\"revenue\\\",\\\"invoices\\\",\\\"docCountBeforeSplit\\\"]]],null],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[24,[\\\"report\\\",\\\"revenue\\\",\\\"invoices\\\",\\\"docCount\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[24,[\\\"report\\\",\\\"revenue\\\",\\\"invoices\\\",\\\"docCountBeforeSplit\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders (before split)\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"number\\\",[[24,[\\\"report\\\",\\\"revenue\\\",\\\"invoices\\\",\\\"docCount\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"number of orders (after split)\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[23,0,[\\\"shippingFee\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"shippingFee\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"total shipping fee\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"estimatedCommissionNormalPercent\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\",\\\"@isAlwaysVisible\\\"],[true,false,[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"report__dash-title\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"estimatedCommissions\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[\\\"estimated total commissions\\\"],[[\\\"percentage\\\"],[[23,0,[\\\"estimatedCommissionNormalPercent\\\"]]]]],false],[0,\\\"\\\\n                  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--smallest u-desc--italics\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[[23,0,[\\\"taxMethod\\\"]]],null],\\\", \\\",[28,\\\"tt\\\",[\\\"excluding shipping fee\\\"],null]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@hasModalOverlay\\\",\\\"@isViewable\\\",\\\"@closeOnOverlayClick\\\",\\\"@hasContent\\\"],[false,[23,1,[]],true,true]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"total sales\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"currency\\\",[[24,[\\\"net\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"shipping fee\\\"],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"shippingFee\\\"]]],[[\\\"negative\\\"],[true]]],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"tt\\\",[\\\"commission\\\"],null],false],[0,\\\" (\\\"],[1,[23,0,[\\\"estimatedCommissionNormalPercent\\\"]],false],[0,\\\"%)\\\\n                      \\\"],[9],[0,\\\"\\\\n                      \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right u-desc u-desc--bold\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"currency\\\",[[23,0,[\\\"estimatedCommissions\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-revenue-stats/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/card-stat/component\", [\"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 = Ember.Component.extend({\n    tagName: ''\n  });\n});","define(\"client/pods/components/reports/dashboard/card-stat/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"N2vW5Nox\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card-stat u-full-width\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"title\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content has-text-centered\\\"],[8],[0,\\\"\\\\n    \\\"],[14,1],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/card-stat/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/card-detail/component\", [\"exports\", \"client/pods/components/reports/dashboard/card-revenue-by-group/card-detail/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class GuestPortalCardRevenueByGroupCardDetailComponent extends _component.default {}\n  _exports.default = GuestPortalCardRevenueByGroupCardDetailComponent;\n});","define(\"client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/card-detail/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6SufdiQT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"nestedDetail\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"isTooltipVisible\\\",\\\"@isDateNestedSegment\\\",\\\"@segmentByLabelKey\\\",\\\"@qtyParam\\\",\\\"@averageByItemQty\\\",\\\"@isTaxExclusive\\\",\\\"@translate\\\",\\\"@detail\\\",\\\"@isDate\\\",\\\"@index\\\",\\\"@showNestedSegments\\\",\\\"@hideIndex\\\",\\\"@isNestedSegments\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-centered \\\",[28,\\\"if\\\",[[23,14,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,15,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"calculate\\\",[[23,13,[]],\\\"+\\\",\\\"1\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,14,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,16,[]],\\\"u-desc u-desc--italics\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,11,[\\\"segmentValue\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"tt\\\",[\\\"none\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"date\\\",[[23,11,[\\\"segmentValue\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,0,[\\\"segmentLabel\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,14,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,16,[]],\\\"u-desc u-desc--italics\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,11,[\\\"hasQrCodeTicket\\\"]],[28,\\\"gt\\\",[[28,\\\"number\\\",[[23,11,[\\\"admittedQty\\\"]]],null],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n              (\\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"admittedQty\\\"]]],null],false],[0,\\\") /\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"admitted qty\\\"],null],false],[0,\\\":\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"admittedQty\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"remaining qty\\\"],null],false],[0,\\\":\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[28,\\\"calculate\\\",[[23,11,[\\\"qty\\\"]],\\\"-\\\",[23,11,[\\\"admittedQty\\\"]]],null]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"qty\\\"]]],[[\\\"negative\\\"],[[23,0,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"docCount\\\"]]],[[\\\"negative\\\"],[[23,0,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,14,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,16,[]],\\\"u-desc u-desc--italics\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,11,[\\\"hasQrCodeTicket\\\"]],[28,\\\"gt\\\",[[28,\\\"number\\\",[[23,11,[\\\"dispatchedAdmittedQty\\\"]]],null],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n              (\\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"dispatchedAdmittedQty\\\"]]],null],false],[0,\\\") /\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"admitted qty\\\"],null],false],[0,\\\":\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"dispatchedAdmittedQty\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"remaining qty\\\"],null],false],[0,\\\":\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[28,\\\"calculate\\\",[[23,11,[\\\"qty\\\"]],\\\"-\\\",[23,11,[\\\"dispatchedAdmittedQty\\\"]]],null]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"dispatchedQty\\\"]]],[[\\\"negative\\\"],[[23,0,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"dispatchedDocCount\\\"]]],[[\\\"negative\\\"],[[23,0,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"has-text-right \\\",[28,\\\"if\\\",[[23,14,[]],\\\"u-desc u-desc--bold u-bg--gray\\\"],null]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"if\\\",[[23,16,[]],\\\"u-desc u-desc--italics\\\"],null]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,11,[\\\"hasQrCodeTicket\\\"]],[28,\\\"gt\\\",[[28,\\\"number\\\",[[23,11,[\\\"undispatchedAdmittedQty\\\"]]],null],0],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n              (\\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"undispatchedAdmittedQty\\\"]]],null],false],[0,\\\") /\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"helpers/info-tooltip-content\\\",[],[[\\\"@isViewable\\\"],[[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"admitted qty\\\"],null],false],[0,\\\":\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"undispatchedAdmittedQty\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"remaining qty\\\"],null],false],[0,\\\":\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"number\\\",[[28,\\\"calculate\\\",[[23,11,[\\\"qty\\\"]],\\\"-\\\",[23,11,[\\\"undispatchedAdmittedQty\\\"]]],null]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"undispatchedQty\\\"]]],[[\\\"negative\\\"],[[23,0,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"number\\\",[[23,11,[\\\"undispatchedDocCount\\\"]]],[[\\\"negative\\\"],[[23,0,[\\\"isReturns\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,11,[\\\"nestedSegment\\\"]],[23,14,[]]],null]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[28,\\\"ramda\\\",[\\\"values\\\",[23,11,[\\\"nestedSegment\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"reports/dashboard/guest-portal-card-revenue-by-group/card-detail\\\",[],[[\\\"@hideIndex\\\",\\\"@isNestedSegments\\\",\\\"@isDate\\\",\\\"@segmentByLabelKey\\\",\\\"@showAverages\\\",\\\"@qtyParam\\\",\\\"@averageByItemQty\\\",\\\"@isTaxExclusive\\\",\\\"@translate\\\",\\\"@detail\\\"],[true,true,[23,5,[]],[23,6,[]],[23,0,[\\\"showAverages\\\"]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/card-detail/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/component\", [\"exports\", \"client/pods/components/reports/dashboard/card-revenue-by-group/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\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  let GuestPortalCardRevenueByGroupComponent = _exports.default = (_dec = Ember._action, _dec2 = Ember._action, _class = class GuestPortalCardRevenueByGroupComponent extends _component.default {\n    viewMore() {\n      this.send('viewMore');\n    }\n    viewLess() {\n      this.send('viewLess');\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"viewMore\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"viewMore\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"viewLess\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"viewLess\"), _class.prototype), _class);\n});","define(\"client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"J2l7Yth3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detail\\\",\\\"index\\\",\\\"@productsBySetsWithChoices\\\",\\\"@isItemSets\\\",\\\"@isItem\\\",\\\"@showProductsBySetsWithChoicesToggle\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card report__card\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"header\\\",true],[10,\\\"class\\\",\\\"card-header u-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"title\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,6,[]],[28,\\\"or\\\",[[23,5,[]],[23,4,[]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@toggleValue\\\"],[\\\"group by product set with choices\\\",[23,3,[]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"reports-lists-show-item-by\\\"]],true,\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"toggleResult\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleDataView\\\"]]],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[[23,0,[\\\"title\\\"]]],null],false],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"qty\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"all\\\"],null],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"number of orders\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"all\\\"],null],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"qty\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"dispatched\\\"],null],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"number of orders\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"dispatched\\\"],null],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"averageByItemQty\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"qty\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"undispatched\\\"],null],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"number of orders\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"undispatched\\\"],null],\\\")\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"limited\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"reports/dashboard/guest-portal-card-revenue-by-group/card-detail\\\",[],[[\\\"@index\\\",\\\"@showNested\\\",\\\"@isDate\\\",\\\"@isDateNestedSegment\\\",\\\"@segmentByLabelKey\\\",\\\"@showAverages\\\",\\\"@qtyParam\\\",\\\"@averageByItemQty\\\",\\\"@isTaxExclusive\\\",\\\"@translate\\\",\\\"@detail\\\"],[[23,2,[]],[23,0,[\\\"showNested\\\"]],[23,0,[\\\"isDate\\\"]],[23,0,[\\\"isDateNestedSegment\\\"]],[23,0,[\\\"segmentByLabelKey\\\"]],[23,0,[\\\"showAverages\\\"]],[23,0,[\\\"qtyParam\\\"]],[23,0,[\\\"averageByItemQty\\\"]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"translate\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasMoreResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"show more\\\",[28,\\\"fn\\\",[[23,0,[\\\"viewMore\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasLessResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"show less\\\",[28,\\\"fn\\\",[[23,0,[\\\"viewLess\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/guest-portal-card-revenue-by-group/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/panels-dash/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/crud\", \"client/mixins/date\", \"ember-concurrency\", \"ramda-extension\"], function (_exports, R, RA, _crud, _date, _emberConcurrency, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  // import { computed } from '@ember/object'\n  // import { isEmpty } from '@ember/utils'\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _date.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    applicationService: Ember.inject.service('application'),\n    showResults: true,\n    mm: '',\n    yyyy: '',\n    docType: 'sales',\n    isTaxExclusive: true,\n    init() {\n      this.crud.addLists(this, ['dispatch/lists/processes', 'users/lists/menu', 'periods/months', 'periods/years']);\n      this._super(...arguments);\n      const customDateStartZ = this.dateService.getMonthStart().toISOString();\n      const customDateEndZ = this.dateService.getMonthEnd().toISOString();\n      this.customDateStartZ = customDateStartZ;\n      this.customDateEndZ = customDateEndZ;\n      this.set('chartOptions', {\n        scales: {\n          yAxes: [{\n            ticks: {\n              beginAtZero: true\n            }\n          }]\n        }\n      });\n      const period = this.getPeriod();\n\n      // this.set('mm', currentPeriod.mm)\n\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      this.displayByMonth(period);\n      const exportSpecs = {\n        info: [{\n          column: '',\n          prop: '_index_'\n        }, {\n          column: '日期',\n          prop: 'dateZ',\n          transform: value => this.formatDate(value)\n        }, {\n          column: '出貨日期',\n          prop: 'dispatchDateZ',\n          transform: value => this.formatDate(value)\n        }, {\n          column: '收貨人',\n          prop: 'contact'\n        }, {\n          column: '收貨人地址',\n          prop: 'address'\n        }, {\n          column: '收貨人電話',\n          prop: 'telephone'\n        }, {\n          column: '單號',\n          prop: 'ref'\n        }, {\n          column: '付款方式',\n          prop: 'paymentMethodKey'\n        }, {\n          column: '匯款帳號後五碼',\n          prop: 'paymentLastFiveDigits'\n        }, {\n          column: '總計',\n          prop: '_inclTotal_',\n          transform: value => parseInt(value) || value\n        }, {\n          column: '備註',\n          prop: 'notes'\n        }, {\n          column: '統編',\n          prop: 'taxNumber'\n        }, {\n          column: '件數',\n          prop: 'packages',\n          transform: value => parseInt(value) || value\n        }, {\n          column: '託運單號',\n          prop: 'waybill'\n        }, {\n          column: '商店',\n          prop: 'source'\n        }],\n        transporter: [{\n          column: '收貨人',\n          prop: 'contact'\n        }, {\n          column: '收貨人地址',\n          prop: 'address'\n        }, {\n          column: '收貨人電話',\n          prop: 'telephone'\n        }, {\n          column: '付款方式',\n          prop: 'paymentMethodKey'\n        }, {\n          column: '總計',\n          prop: '_inclTotal_'\n        }, {\n          column: '件數',\n          prop: 'packages',\n          transform: value => parseInt(value) || value\n        }, {\n          column: '備註',\n          prop: 'notes'\n        }, {\n          column: '單號',\n          prop: 'ref'\n        }, {\n          column: '託運單號',\n          prop: 'waybill'\n        }],\n        details: [{\n          column: '',\n          prop: ''\n        }, {\n          column: '數量',\n          prop: 'qty',\n          transform: value => parseInt(value) || value\n        }, {\n          column: '品項',\n          prop: 'item'\n        }, {\n          column: '編碼',\n          prop: 'itemCode'\n        }, {\n          column: '含稅額',\n          prop: 'postDiscInclAmt',\n          transform: value => parseInt(value) || value\n        }]\n      };\n      this.set('exportSpecs', exportSpecs);\n    },\n    displayByMonth(period) {\n      const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n      this.displayTask.perform({\n        dateStart,\n        dateEnd\n      });\n    },\n    displayTask: (0, _emberConcurrency.task)(function* (period) {\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      this.set('period', period);\n      this.set('dateStart', dateStart);\n      this.set('dateEnd', dateEnd);\n      const monthlyReport = yield this.fetchReportTask.perform({\n        dateStart,\n        dateEnd,\n        segments: ['dateZ']\n      });\n      // this.fetchYearTask.perform({ dateStart, dateEnd })\n      this.set('monthlyReport', monthlyReport);\n      this.set('itemReport', []);\n      this.set('channelAndSourceReport', []);\n      this.set('paymentMethodKeyAndPromoCodeReport', []);\n      this.set('contactReport', []);\n    }),\n    displayItemReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const itemReport = yield this.fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['item']\n        });\n        this.set('itemReport', itemReport);\n      }\n    }),\n    displayChannelAndSourceReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const channelAndSourceReport = yield this.fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['channel', 'source']\n        });\n        this.set('channelAndSourceReport', channelAndSourceReport);\n      }\n    }),\n    displayPaymentMethodKeyAndPromoCodeReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const paymentMethodKeyAndPromoCodeReport = yield this.fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['paymentMethodKey', 'promoCode']\n        });\n        this.set('paymentMethodKeyAndPromoCodeReport', paymentMethodKeyAndPromoCodeReport);\n      }\n    }),\n    displayContactReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const contactReport = yield this.fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['contact', 'contactTags', 'customerType', 'memberType', 'gender', 'age']\n        });\n        this.set('contactReport', contactReport);\n      }\n    }),\n    fetchReportTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd,\n      segments = []\n    }) {\n      const monthParams = {\n        docType: this.docType,\n        dateStart,\n        dateEnd,\n        // segments: [\n        //   'dateZ',\n        //   'contact',\n        //   'item',\n        //   'channel',\n        //   'source',\n        //   'paymentMethodKey',\n        //   'promoCode',\n        //   'customerType',\n        //   'memberType',\n        //   'gender',\n        //   'age'\n        // ]\n        segments\n      };\n      const results = yield this.server.call('GET', 'api/protected/reports/dashboard/', monthParams);\n      return results.data;\n\n      // const month = yield this.server.call('GET', 'api/protected/reports/dashboard/', monthParams)\n      // this.set('monthlyReport', month.data)\n    }),\n    // fetchYearTask: task(function * ({ dateStart, dateEnd }) {\n    //   const yearParams = {\n    //     docType: this.docType,\n    //     dateStart: this.formatDateForUrl(this.getYearStart(dateStart)),\n    //     dateEnd: dateEnd,\n    //     segments: ['month']\n    //   }\n    //   const year = yield this.server.call('GET', 'api/protected/reports/dashboard/', yearParams)\n    //   this.set('yearlyReport', year.data)\n    // }),\n\n    isDispatchedDispatchProcess: Ember.computed('crud.lists.dispatch-lists-processes.[]', function () {\n      const dispatchProcesses = R_.dotPath('crud.lists.dispatch-lists-processes')(this) || [];\n      return R.find(R.pathEq(['_data', 'code'], 'dispatched'), dispatchProcesses);\n    }),\n    selectByMonth(period) {\n      this.displayByMonth(period);\n      if (this.applicationService.isMobile) {\n        this.set('showResults', false);\n      }\n    },\n    selectCustomDate() {\n      if (!this.customDateEndZ || !this.customDateStartZ) {\n        return;\n      }\n      const period = this.dateService.getCustomPeriod(this.customDateEndZ, this.customDateStartZ);\n      this.displayTask.perform(period);\n      if (this.applicationService.isMobile) {\n        this.set('showResults', false);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"selectByMonth\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"selectByMonth\"), _obj), _applyDecoratedDescriptor(_obj, \"selectCustomDate\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"selectCustomDate\"), _obj), _obj));\n});","define(\"client/pods/components/reports/dashboard/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KJfWKCB1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"period\\\",\\\"@chartOptions\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isPanel\\\",\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,true,[23,0,[\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]]]]],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-3 u-margin-right-3\\\"],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n      \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"is-primary u-margin-left-3\\\",[24,[\\\"fetchMonthTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectCustomDate\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectByMonth\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,2,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"showResults\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container u-header-1\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"date_period\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[24,[\\\"monthlyReport\\\",\\\"dateStartZ\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"monthlyReport\\\",\\\"dateEndZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__table\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"reports/dashboard/card-revenue-stats\\\",null,[[\\\"title\\\",\\\"isTaxExclusive\\\",\\\"report\\\",\\\"fetchReportTask\\\"],[\\\"stats for month\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"monthlyReport\\\"]],[24,[\\\"fetchReportTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__table\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"revenue for month\\\",\\\"bar\\\",[23,3,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"monthlyReport\\\"]],[23,0,[\\\"monthlyReport\\\",\\\"segments\\\",\\\"dateZ\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"isItem\\\",\\\"data\\\"],[\\\"revenue by product\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],true,[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"itemReport\\\",\\\"segments\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"channelAndSourceReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by channel\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"channelAndSourceReport\\\",\\\"segments\\\",\\\"channel\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by campaign\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"channelAndSourceReport\\\",\\\"segments\\\",\\\"source\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"paymentMethodKeyAndPromoCodeReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"translate\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by payment method\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],true,[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"paymentMethodKeyAndPromoCodeReport\\\",\\\"segments\\\",\\\"paymentMethodKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by promo code\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"paymentMethodKeyAndPromoCodeReport\\\",\\\"segments\\\",\\\"promoCode\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by contact\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-tags\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"hasWarning\\\",\\\"warningText\\\",\\\"isContactTags\\\",\\\"data\\\"],[\\\"revenue by contact tags\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,\\\"may contain duplicate data\\\",true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contactTags\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by customer type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"customerType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by member type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"memberType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by gender\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"gender\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by age\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"age\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by product\\\",[23,0,[\\\"displayItemReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayItemReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"channelAndSourceReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by channel and shop\\\",[23,0,[\\\"displayChannelAndSourceReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayChannelAndSourceReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"paymentMethodKeyAndPromoCodeReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by payment method and promo code\\\",[23,0,[\\\"displayPaymentMethodKeyAndPromoCodeReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayPaymentMethodKeyAndPromoCodeReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by contact\\\",[23,0,[\\\"displayContactReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayContactReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-file-export\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"dispatch/export-excel-btn\\\",[],[[\\\"@specs\\\",\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@filteredResults\\\"],[[23,0,[\\\"exportSpecs\\\"]],[23,0,[\\\"isDispatchedDispatchProcess\\\"]],[22,\\\"period\\\"],[22,\\\"results\\\"]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"dispatch/export-report-btn\\\",[],[[\\\"@specs\\\",\\\"@dispatchProcess\\\",\\\"@period\\\",\\\"@filteredResults\\\"],[[23,0,[\\\"exportSpecs\\\"]],[23,0,[\\\"isDispatchedDispatchProcess\\\"]],[22,\\\"period\\\"],[22,\\\"results\\\"]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/tab-container/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    init() {\n      this._super(...arguments);\n      this.dash();\n    },\n    dash() {\n      this.set('resultsToggle', false);\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'reports/dashboard/panels-dash'\n        // model: model\n      };\n      this.tabsManager.reuseSubTab(tab, subTabOptions);\n    },\n    actions: {\n      dash() {\n        this.dash();\n      }\n    }\n  });\n});","define(\"client/pods/components/reports/dashboard/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2yquZzsr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,2,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"onDash\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/reports/dashboard/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/schedules/btn-scheduled/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, _nventor) {\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  let SchedulesComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _class = class SchedulesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"results\", _descriptor5, this);\n      _initializerDefineProperty(this, \"pending\", _descriptor6, this);\n      let resources = this.args.resources || [];\n      resources = R.reject(_nventor.default.isNilOrEmptyDotPath('resourceKey'))(resources);\n      const filters = this.search.setupFilters({\n        adapterName: 'schedules/filters',\n        appendPath: '/resources',\n        defaultFiltersData: {\n          resources\n        }\n      });\n      this.filters = filters;\n      this.fetchScheduledTasksByResourceTask.perform();\n    }\n    get isDisabled() {\n      const hasResults = RA.isNotNilOrEmpty(this.results);\n      if (hasResults) {\n        return false;\n      }\n      return true;\n    }\n    *fetchScheduledTasksByResourceTask(options = {}) {\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'schedules',\n        filters: this.filters\n      });\n      this.results = results;\n      this.pending = R.filter(R.pathEq(['_data', 'status'], this.constants.schedulesStatus.pending))(results);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"pending\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchScheduledTasksByResourceTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchScheduledTasksByResourceTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/schedules/btn-scheduled/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cGYO05Wa\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"task\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"results\\\"]]],null,{\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"tooltipLabel\\\",\\\"hasBadge\\\",\\\"badge\\\",\\\"isRunning\\\",\\\"onSubmit\\\",\\\"icon\\\"],[\\\"scheduled_tasks\\\",[23,0,[\\\"pending\\\"]],[28,\\\"count\\\",[[23,0,[\\\"pending\\\"]]],null],[23,0,[\\\"fetchScheduledTasksByResourceTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchScheduledTasksByResourceTask\\\"]]],null],\\\"far fa-clock\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"component\\\",[[28,\\\"concat\\\",[\\\"schedules/\\\",[23,2,[\\\"_data\\\",\\\"subType\\\"]]],null]],[[\\\"task\\\",\\\"doc\\\"],[[23,2,[]],[23,3,[]]]]],false],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/schedules/btn-scheduled/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/schedules/refund/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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  let SchedulesRefundComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _class = class SchedulesRefundComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"results\", _descriptor5, this);\n      _initializerDefineProperty(this, \"pending\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"pending\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/schedules/refund/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"sE2C2LeI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@task\\\"],\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"classNames\\\"],[\\\"has-text-left\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"label\\\"],[[23,1,[\\\"_data\\\",\\\"description\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"scheduled_time\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"_data\\\",\\\"dateTimeZ\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"refund amount\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"_data\\\",\\\"payload\\\",\\\"refundAmount\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[false,[23,1,[\\\"_data\\\",\\\"master\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n        #\\\"],[1,[23,1,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"workflows/items/mark-as-completed\\\",[],[[\\\"@workflowsItemsActivities\\\"],[[23,1,[\\\"_data\\\",\\\"workflowsItemsActivities\\\"]]]]],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-models__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,1,[\\\"statusClass\\\"]]]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"status\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/schedules/refund/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/schedules/scheduledPayment/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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  let SchedulesScheduledPaymentComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _class = class SchedulesScheduledPaymentComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"results\", _descriptor5, this);\n      _initializerDefineProperty(this, \"pending\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"pending\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/schedules/scheduledPayment/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xVMN/cyL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@task\\\",\\\"@doc\\\"],\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"classNames\\\"],[\\\"has-text-left\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"label\\\"],[[23,1,[\\\"_data\\\",\\\"description\\\"]]]],{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"scheduled_time\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"dateTime\\\",[[23,1,[\\\"_data\\\",\\\"dateTimeZ\\\"]]],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"inclTotal\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"currency\\\",[[23,2,[\\\"_data\\\",\\\"netInclTotal\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[false,[23,1,[\\\"_data\\\",\\\"master\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"master\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"docNo\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n          #\\\"],[1,[23,1,[\\\"_data\\\",\\\"docNo\\\"]],false],[0,\\\" - \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"docName\\\"]]],null]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-models__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[23,1,[\\\"statusClass\\\"]]]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"status\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/schedules/scheduledPayment/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/search/results-list/component\", [\"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 = Ember.Component.extend({\n    results: null,\n    classNames: ['search-results-list']\n\n    // classNameBindings: ['isRetracted:search-results-list--retracted'],\n\n    // isRetracted: Ember.computed('results', function () {\n    //\n    //   //@TODO: test\n    //\n    //   if (Ember.isEmpty(this.get('results'))) {\n    //\n    //     return true;\n    //   }\n    //\n    //   return false;\n    // }),\n  });\n});","define(\"client/pods/components/search/results-list/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dcrc0+Ge\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/search/results-list/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/defaults/3rd-party-editor/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['facebook/pixels', 'google/tracking']);\n      const useDefaultsShopDotCom = this.get('model._data.thirdParty.shopDotCom.useDefaultsFromSettings');\n      this.set('useDefaultsShopDotCom', useDefaultsShopDotCom);\n    },\n    isThirdPartyRssDisable: Ember.computed('isReadonly', 'model._data.allowAllCampaigns', function () {\n      if (this.isReadonly) {\n        return true;\n      }\n      if (this.model?._data?.allowAllCampaigns === true) {\n        return true;\n      }\n      return false;\n    }),\n    isSocialLinksReadonly: Ember.computed('isReadonly', 'model._data.useDefaultsSocialLinks', function () {\n      if (this.isReadonly) {\n        return true;\n      }\n      return this.get('model._data.useDefaultsSocialLinks');\n    }),\n    isFacebookReadonly: Ember.computed('isReadonly', 'model._data.useDefaultsFacebook', function () {\n      if (this.isReadonly) {\n        return true;\n      }\n      return this.get('model._data.useDefaultsFacebook');\n    }),\n    isShopDotComReadonly: Ember.computed('isReadonly', 'useDefaultsShopDotCom', function () {\n      if (this.isReadonly) {\n        return true;\n      }\n      return this.useDefaultsShopDotCom;\n    }),\n    shopDotCom: Ember.computed('useDefaultsShopDotCom', function () {\n      const shopDotComData = this.get('model._data.thirdParty.shopDotCom');\n      const settingsShopDotComData = this.settings?.settingsModel?._data?.thirdParty?.shopDotCom;\n      if (this.useDefaultsShopDotCom) {\n        return settingsShopDotComData;\n      }\n      return shopDotComData;\n    }),\n    toggleUseDefaultsShopDotCom() {\n      this.set('model._data.thirdParty.shopDotCom.useDefaultsFromSettings', this.useDefaultsShopDotCom);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleUseDefaultsShopDotCom\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleUseDefaultsShopDotCom\"), _obj), _obj));\n});","define(\"client/pods/components/settings/defaults/3rd-party-editor/facebook-plugins/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    init() {\n      this.crud.addLists(this, ['facebook/pages']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/components/settings/defaults/3rd-party-editor/facebook-plugins/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+54u6KUJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@documentationResource\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"facebookPage\\\",[23,1,[]],\\\"facebook page\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@addItemComponent\\\",\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"facebook/facebook-pages-id\\\",true,[23,2,[]],true,\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pages\\\"]],false,[23,3,[\\\"_data\\\",\\\"facebookPage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/defaults/3rd-party-editor/facebook-plugins/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/defaults/3rd-party-editor/social-links/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/settings/defaults/3rd-party-editor/social-links/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hCbYQkKb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@documentationResource\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"facebookUrl\\\",[23,1,[]],\\\"facebook page url\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"facebookUrl\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"instagramUrl\\\",[23,1,[]],\\\"instagram url\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"instagramUrl\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"lineId\\\",[23,1,[]],\\\"line id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"lineId\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"youtubeUrl\\\",[23,1,[]],\\\"youtube channel url\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"youtubeUrl\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/defaults/3rd-party-editor/social-links/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/defaults/3rd-party-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1idKwYsP\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"urlFeed\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@hideRss\\\",\\\"@documentationResource\\\",\\\"@hideShopDotCom\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"3rd-party\\\",[23,4,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"campaigns\\\",[23,8,[]],[23,4,[]],[23,7,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"googleTrackingKeys_group\\\",[23,1,[]],[23,4,[]],\\\"google tags manager\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"useDefaultsGoogleTrackingKeys\\\",[23,1,[]],\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,6,[\\\"_data\\\",\\\"useDefaultsGoogleTrackingKeys\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"useDefaultsGoogleTrackingKeys\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionLabelKey2\\\",\\\"@optionLabelKey2Prefix\\\",\\\"@optionLabelKey2Translate\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]],\\\"_data.value\\\",\\\": \\\",false,\\\"_data._key\\\",false,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"googleTrackingKeys\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"googleTrackingKeys\\\",[23,1,[]],\\\"google tracking id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,5,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@addItemComponent\\\",\\\"@adapterName\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey2\\\",\\\"@optionLabelKey2Prefix\\\",\\\"@optionLabelKey2Translate\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@tab\\\",\\\"@valueKey\\\"],[\\\"google/tracking-editor\\\",\\\"google/tracking\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]],[23,6,[]],true,\\\"_data.value\\\",\\\": \\\",false,\\\"_data._key\\\",false,[23,4,[]],\\\"_data.googleTrackingKeys\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionLabelKey2\\\",\\\"@optionLabelKey2Prefix\\\",\\\"@optionLabelKey2Translate\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]],\\\"_data.value\\\",\\\": \\\",false,\\\"_data._key\\\",false,[23,6,[\\\"_data\\\",\\\"googleTrackingKeys\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"thirdParty.rss_group\\\",[22,\\\"formInitDataa\\\"],true,[24,[\\\"menuNav\\\",\\\"menu\\\"]],[24,[\\\"metaData\\\",\\\"parentComponent\\\"]],[23,4,[]],\\\"merchant center settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"thirdParty.rss.enabled\\\",\\\"settings\\\",\\\"rss_description\\\",[23,6,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,0,[\\\"isThirdPartyRssDisable\\\"]],false,true,[23,6,[\\\"_data\\\",\\\"thirdParty\\\",\\\"rss\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"thirdParty\\\",\\\"rss\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"provider\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"url\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"rssUrls\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,3,[\\\"name\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[1,[23,3,[\\\"url\\\"]],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"facebookPixelKeys_group\\\",[23,1,[]],[23,4,[]],\\\"facebook pixel\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"useDefaultsFacebookPixelKeys\\\",[23,1,[]],\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,6,[\\\"_data\\\",\\\"useDefaultsFacebookPixelKeys\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"useDefaultsFacebookPixelKeys\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionLabelKey2\\\",\\\"@optionLabelKey2Prefix\\\",\\\"@optionLabelKey2Translate\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pixels\\\"]],\\\"_data.value\\\",\\\": \\\",false,\\\"_data._key\\\",false,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"facebookPixelKeys\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"facebookPixelKeys\\\",[23,1,[]],\\\"pixel id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\"],[[23,5,[]],\\\"fas fa-tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@addItemComponent\\\",\\\"@adapterName\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey2\\\",\\\"@optionLabelKey2Prefix\\\",\\\"@optionLabelKey2Translate\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@tab\\\",\\\"@valueKey\\\"],[\\\"facebook/pixel-editor\\\",\\\"facebook/pixels\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pixels\\\"]],[23,6,[]],true,\\\"_data.value\\\",\\\": \\\",false,\\\"_data._key\\\",false,[23,4,[]],\\\"_data.facebookPixelKeys\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionLabelKey2\\\",\\\"@optionLabelKey2Prefix\\\",\\\"@optionLabelKey2Translate\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pixels\\\"]],\\\"_data.value\\\",\\\": \\\",false,\\\"_data._key\\\",false,[23,6,[\\\"_data\\\",\\\"facebookPixelKeys\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,10,[]],\\\"websites\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"facebookPixelEnable\\\",[23,1,[]],true,\\\"enable facebook pixel conversion api\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,6,[\\\"_data\\\",\\\"facebookPixelEnable\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,6,[\\\"_data\\\",\\\"facebookPixelEnable\\\"]],[23,6,[\\\"_data\\\",\\\"facebookPixelId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"facebookPixelId\\\",[23,1,[]],\\\"pixel id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,6,[\\\"_data\\\",\\\"facebookPixelId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"facebookAccessToken\\\",[23,1,[]],\\\"access token\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,6,[\\\"_data\\\",\\\"facebookAccessToken\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"socialLinks_group\\\",[23,1,[]],[23,4,[]],\\\"social links\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"useDefaultsSocialLink\\\",[23,1,[]],\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,6,[\\\"_data\\\",\\\"useDefaultsSocialLinks\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"useDefaultsSocialLinks\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"settings/defaults/3rd-party-editor/social-links\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[[23,1,[]],true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"settings/defaults/3rd-party-editor/social-links\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[[23,1,[]],[23,0,[\\\"isSocialLinksReadonly\\\"]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"facebookChatSettings_group\\\",[23,1,[]],[23,4,[]],\\\"facebook chat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"facebookPluginEnable\\\",[23,1,[]],true,\\\"enable facebook chat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,6,[\\\"_data\\\",\\\"facebookPluginEnable\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"facebookPluginEnable\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"useDefaultsFacebook\\\",[23,1,[]],\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,6,[\\\"_data\\\",\\\"useDefaultsFacebook\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"useDefaultsFacebook\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"settings/defaults/3rd-party-editor/facebook-plugins\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[[23,1,[]],true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"settings/defaults/3rd-party-editor/facebook-plugins\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[[23,1,[]],[23,0,[\\\"isFacebookReadonly\\\"]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"lineChat_group\\\",[23,1,[]],[23,4,[]],\\\"line chat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"toggleLineChat\\\",[23,1,[]],true,\\\"enable line chat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,6,[\\\"_data\\\",\\\"lineChatEnable\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"thirParty.shopDotCom_group\\\",[23,1,[]],[23,4,[]],\\\"shop.com\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"shop.com instruction\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"thirParty.shopDotCom.useDefaultsShopDotCom\\\",[23,1,[]],\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"toggleUseDefaultsShopDotCom\\\"]]],null],false,true,[23,0,[\\\"useDefaultsShopDotCom\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"thirParty.shopDotCom.enabled\\\",[23,1,[]],\\\"enable shop.com service\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,0,[\\\"isShopDotComReadonly\\\"]],false,true,[23,0,[\\\"shopDotCom\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"shopDotCom\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"thirParty.shopDotCom.advertiserId\\\",[23,1,[]],\\\"advertiser id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@isRequired\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"isShopDotComReadonly\\\"]],true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"shopDotCom\\\",\\\"advertiserId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"thirParty.shopDotCom.offerId\\\",[23,1,[]],\\\"offer id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@isRequired\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"isShopDotComReadonly\\\"]],true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"shopDotCom\\\",\\\"offerId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"thirParty.shopDotCom.commissionRatio\\\",[23,1,[]],\\\"commission ratio\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@isRequired\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"isShopDotComReadonly\\\"]],true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"shopDotCom\\\",\\\"commissionRatio\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"thirParty.shopDotCom.antiFraudText\\\",[23,1,[]],\\\"anti-fraud info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@disabled\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"isShopDotComReadonly\\\"]],[28,\\\"tt\\\",[\\\"anti-fraud text\\\"],null],[23,0,[\\\"shopDotCom\\\",\\\"antiFraudText\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/defaults/3rd-party-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/defaults/company-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SettingsDefaultsCompanyEditor = _exports.default = (_dec = Ember.inject.service, _class = class SettingsDefaultsCompanyEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settings\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/settings/defaults/company-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FkDPfTv3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@formContainer\\\",\\\"@tab\\\",\\\"@disallowedForFeatures\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@formContainer\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[\\\"contactInfo_group\\\",[23,1,[]],[23,4,[]],[23,5,[]],\\\"company info\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.allowTaxNumbersPerShop\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"taxNumber\\\",\\\"tax number\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"pod/get\\\",[\\\"taxNumber\\\"],[[\\\"defaultValue\\\"],[\\\"\\\"]]],[23,2,[]],[23,3,[\\\"_data\\\",\\\"taxNumber\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"useDefaultsContactInfo\\\",\\\"use defaults from settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,2,[]],false,true,[23,3,[\\\"_data\\\",\\\"useDefaultsContactInfo\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"useDefaultsContactInfo\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"company\\\",[23,1,[]],\\\"company name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"company\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"address\\\",[23,1,[]],\\\"company address\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"address\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"open-hours\\\",[],[[\\\"@allowCopyTime\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[true,true,[23,0,[\\\"settings\\\",\\\"settingsModel\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"companyName\\\",[23,1,[]],\\\"company name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"companyName\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"companyTel\\\",[23,1,[]],\\\"company telephone\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"companyTel\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"companyAddress\\\",[23,1,[]],\\\"company address\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"companyAddress\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"open-hours\\\",[],[[\\\"@allowCopyTime\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[[28,\\\"not\\\",[[23,0,[\\\"useDefaultsContactInfo\\\"]]],null],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/defaults/company-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/defaults/transporter-drop-down/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 SettingsDefaultsTransporterDropDownComponent = _exports.default = (_dec = Ember.inject.service('transporter'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class SettingsDefaultsTransporterDropDownComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor, this);\n      _initializerDefineProperty(this, \"transporters\", _descriptor2, this);\n      _initializerDefineProperty(this, \"selectedTransporter\", _descriptor3, this);\n      this.setup.perform();\n    }\n    get valueKey() {\n      const transporterExtensions = this.args.transporterExtensions;\n      const defaultTransporterKeyArr = ['_data', 'defaultTransporters', transporterExtensions];\n      return defaultTransporterKeyArr.join('.');\n    }\n    get label() {\n      return this?.selectedTransporter?._data?.name || '';\n    }\n    setSelectedTransporter() {\n      const transporterExtensions = this.args.transporterExtensions;\n      const defaultTransporterKeyArr = ['_data', 'defaultTransporters', transporterExtensions];\n      const selectedTransporterKey = R.pathOr('', ['args', 'model', ...defaultTransporterKeyArr])(this);\n      this.selectedTransporter = R.pipe(R.propOr([], 'transporters'), R.find(R.pathEq(['_data', '_key'], selectedTransporterKey)))(this);\n    }\n    setDefaultTransporter(transporterModel) {\n      const transporterKey = transporterModel?._data?._key || '';\n      const transporterExtensions = this.args.transporterExtensions;\n      const defaultTransporterKey = `_data.defaultTransporters.${transporterExtensions}`;\n      this.args.model.set(defaultTransporterKey, transporterKey);\n      this.selectedTransporter = transporterModel;\n    }\n    *setup() {\n      yield this.fetchTransporters.perform();\n      this.setSelectedTransporter();\n    }\n    *fetchTransporters() {\n      const transporterExtensions = this.args.transporterExtensions;\n      this.transporters = yield this.transporterService.fetchTransportersByExtensionTask.perform({\n        transporterExtensions\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"transporters\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"selectedTransporter\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setSelectedTransporter\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setSelectedTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultTransporter\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTransporters\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransporters\"), _class.prototype), _class);\n});","define(\"client/pods/components/settings/defaults/transporter-drop-down/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/5X5cArg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@onSubmit\\\"],[[23,2,[]],\\\"fas fa-tags\\\",[23,0,[\\\"transporters\\\"]],[23,0,[\\\"label\\\"]],false,[28,\\\"perform\\\",[[23,0,[\\\"fetchTransporters\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,false,[23,0,[\\\"transporters\\\"]],[23,3,[]],false,\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"valueKey\\\"]],[23,0,[\\\"setDefaultTransporter\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/defaults/transporter-drop-down/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/files/files-gallery-uploader/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import ProductsFilesMixin from '../../../products/files/mixins/products-files'\n  var _default = _exports.default = Ember.Component.extend({\n    fetchUploads: true,\n    fetchProduct: true,\n    allowSetDefault: true,\n    allowRemove: true,\n    allowUploads: false,\n    allowShowPreviewModal: true,\n    showDefaultImagePreview: true,\n    isFilesManagerModalVisible: false\n  });\n});","define(\"client/pods/components/settings/files/files-gallery-uploader/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qVd8y0Ar\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowShowPreviewModal\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@allowMultipleItems\\\",\\\"@allowUploads\\\",\\\"@isFilesManagerModalVisible\\\"],[[22,\\\"tab\\\"],[22,\\\"allowRemove\\\"],[22,\\\"allowShowPreviewModal\\\"],[22,\\\"model\\\"],[22,\\\"resource\\\"],[22,\\\"resourceKey\\\"],[22,\\\"showDefaultImagePreview\\\"],[22,\\\"allowMultipleItems\\\"],[22,\\\"allowUploads\\\"],[23,0,[\\\"isFilesManagerModalVisible\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/files/files-gallery-uploader/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/is-beta-allowed/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SettingsIsBetaAllowed = _exports.default = (_dec = Ember.inject.service, _class = class SettingsIsBetaAllowed extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settings\", _descriptor, this);\n    }\n    get isAllowed() {\n      // Re-read when pod settings change so beta-gated menus/toggles update after save.\n      this.settings.settingsModel?.synced;\n      let allowedForFeatures = this.args.allowedForFeatures || [];\n      allowedForFeatures = RA.ensureArray(allowedForFeatures);\n      if (RA.isNotNilOrEmpty(allowedForFeatures)) {\n        const isAllowed = R.reduce((acc, featurePath) => {\n          if (acc === true) {\n            return true;\n          }\n          acc = this.isFeatureAllowed(featurePath);\n          return acc;\n        }, false)(allowedForFeatures);\n        return isAllowed;\n      }\n      let disallowedForFeatures = this.args.disallowedForFeatures || [];\n      disallowedForFeatures = RA.ensureArray(disallowedForFeatures);\n      if (RA.isNotNilOrEmpty(disallowedForFeatures)) {\n        const isDisallowed = R.reduce((acc, featurePath) => {\n          if (acc === true) {\n            return true;\n          }\n          acc = this.isFeatureAllowed(featurePath);\n          return acc;\n        }, false)(disallowedForFeatures);\n        return !isDisallowed;\n      }\n      if (this.args.betaPath) {\n        return this.isBetaAllowed(this.args.betaPath) === true;\n      }\n      return true;\n    }\n    isBetaAllowed(betaPath) {\n      return this.settings.isBetaAllowed(betaPath);\n    }\n    isFeatureAllowed(featurePath) {\n      return this.settings.isFeatureAllowed(featurePath);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/settings/is-beta-allowed/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/EuEIBN/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@disallowedMessage\\\",\\\"@showDisallowedMessage\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[23,1,[]],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/is-beta-allowed/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/is-beta-not-allowed/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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  // import * as R from 'ramda'\n  let SettingsIsBetaAllowed = _exports.default = (_dec = Ember.inject.service, _class = class SettingsIsBetaAllowed extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"settings\", _descriptor, this);\n    }\n    get isBetaAllowed() {\n      if (!this.args.betaPath) {\n        return true;\n      }\n      return this.settings.getProp(this.args.betaPath);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/settings/is-beta-not-allowed/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eetjVf9K\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"isBetaAllowed\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[14,1],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/is-beta-not-allowed/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"X39i0Nt+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@documentationResource\\\",\\\"@model\\\",\\\"@onEdit\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"settings/settings-editor\\\",[],[[\\\"@documentationResource\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@onEdit\\\",\\\"@tab\\\"],[[23,1,[]],false,[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/panels-edit/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SettingsPanelsEditComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class SettingsPanelsEditComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'settings');\n      this.dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model: this.args.model,\n        tab: this.args.tab\n      });\n    }\n    displaySubPanel() {\n      const tab = this.args.tab;\n      const activeSubTab = this.tabsManager.getActiveSubTab(tab);\n      const tabOptions = {\n        loadInstructions: {\n          component: activeSubTab.get?.('component')\n        }\n      };\n      this.args.onDisplay?.(this.args?.model, {\n        tabOptions\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"displaySubPanel\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"displaySubPanel\"), _class.prototype), _class);\n});","define(\"client/pods/components/settings/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"F8ddwnFT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@documentationResource\\\",\\\"@isWizard\\\",\\\"@tab\\\",\\\"@onEdit\\\",\\\"@wizardData\\\"],\\\"statements\\\":[[5,\\\"settings/settings-editor\\\",[],[[\\\"@documentationResource\\\",\\\"@isEditing\\\",\\\"@isWizard\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onEdit\\\",\\\"@onSaveTask\\\",\\\"@wizardData\\\",\\\"@tab\\\"],[[23,1,[]],true,[23,2,[]],[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"cancelEditing\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"dirty\\\",\\\"onAfter\\\",\\\"onAfterOptions\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displaySubPanel\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"tab\\\",\\\"tabOptions\\\"],[[23,3,[]],[24,[\\\"tabOptions\\\"]]]]],[23,3,[]]]]]],null],[23,4,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"onAfterOptions\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"displaySubPanel\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"tab\\\",\\\"tabOptions\\\"],[[23,3,[]],[24,[\\\"tabOptions\\\"]]]]],[23,3,[]]]]]],null],[23,5,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/pod-logo/component\", [\"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 = Ember.Component.extend({\n    transform: '/-/resize/100x/',\n    defaultLogo: Ember.computed(function () {\n      return this.settings.getDefaultLogo();\n    })\n  });\n});","define(\"client/pods/components/settings/pod-logo/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nS0gVfye\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"img\\\",true],[11,\\\"src\\\",[28,\\\"uploadcareSrc\\\",[[24,[\\\"defaultLogo\\\"]],[24,[\\\"transform\\\"]]],null]],[8],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/pod-logo/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/3rd-party-editor/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SettingsSettingsEditor3rdPartyEditorComponent extends Ember.Component {}\n  _exports.default = SettingsSettingsEditor3rdPartyEditorComponent;\n});","define(\"client/pods/components/settings/settings-editor/3rd-party-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"BI/X1Z4V\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\",\\\"@wizardContainerComponenet\\\",\\\"@model\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"3rd-party\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"mailgun_group\\\",[23,1,[]],[23,3,[]],\\\"Mailgun\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emails_mailgun.enabled\\\",[23,1,[]],\\\"enable\\\",[23,7,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[23,8,[]],true],null],false,true,[23,7,[\\\"_data\\\",\\\"emails_mailgun\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emails_mailgun.domain\\\",[23,1,[]],\\\"domain\\\",[23,7,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,7,[\\\"_data\\\",\\\"emails_mailgun\\\",\\\"enabled\\\"]]],null],[28,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[23,8,[]],true],null]],null],[23,7,[\\\"_data\\\",\\\"emails_mailgun\\\",\\\"domain\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emails_mailgun.apiKey\\\",[23,1,[]],\\\"Api Key\\\",[23,7,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,7,[\\\"_data\\\",\\\"emails_mailgun\\\",\\\"enabled\\\"]]],null],[28,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[23,8,[]],true],null]],null],[23,7,[\\\"_data\\\",\\\"emails_mailgun\\\",\\\"apiKey\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emails_mailgun.emailFromName\\\",[23,1,[]],\\\"from email name\\\",[23,7,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,7,[\\\"_data\\\",\\\"emails_mailgun\\\",\\\"enabled\\\"]]],null],[28,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[23,8,[]],true],null]],null],[23,7,[\\\"_data\\\",\\\"emails_mailgun\\\",\\\"emailFromName\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emails_mailgun.emailFromAddress\\\",[23,1,[]],\\\"from email address\\\",[23,7,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,7,[\\\"_data\\\",\\\"emails_mailgun\\\",\\\"enabled\\\"]]],null],[28,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[23,8,[]],true],null]],null],[23,7,[\\\"_data\\\",\\\"emails_mailgun\\\",\\\"emailFromAddress\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/3rd-party-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/basic-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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  let SettingsSettingsEditorBasicEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember.inject.service('products'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _class = class SettingsSettingsEditorBasicEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"productService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"inventoryResetDateZ\", _descriptor4, this);\n      _initializerDefineProperty(this, \"resetInventoryDate\", _descriptor5, this);\n      _initializerDefineProperty(this, \"listsIsLoaded\", _descriptor6, this);\n      this.crud.addLists(this, ['contacts/lists/tag-report-options', 'discounts/types', 'documents/lists/print', 'documents/lists/print/product-code', 'documents/lists/print/unit', 'documents/purchases/terms', 'documents/sales/terms', 'extensions/apps/tw/invoicing', 'products/lists/tracking', 'products/lists/types', 'settings/editor-sub-panels', 'settings/rounding', 'taxes', 'taxMethods', 'taxMethods/filters', 'units/dimensions', 'units/weight']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"productService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"inventoryResetDateZ\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"resetInventoryDate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"listsIsLoaded\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/settings/settings-editor/basic-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kpsIh/j8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@isDisabled\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"basic\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,7,[]],[23,6,[]],[23,2,[]],[23,5,[]]]]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"logo_group\\\",[23,1,[]],[23,2,[]],\\\"logo\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"logo\\\",[23,1,[]],\\\"logo\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"settings/files/files-gallery-uploader\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@allowUploads\\\",\\\"@allowShowPreviewModal\\\",\\\"@allowRemove\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@allowSetDefault\\\",\\\"@showDefaultImagePreview\\\",\\\"@allowMultipleItems\\\"],[[23,2,[]],[23,3,[]],[23,8,[]],[23,8,[]],[23,8,[]],\\\"settings\\\",\\\"logo\\\",true,true,false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"contactInfo_group\\\",[23,1,[]],[23,2,[]],\\\"contact info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"company\\\",[23,1,[]],\\\"company\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,true,[23,9,[]],[23,3,[\\\"_data\\\",\\\"company\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"companyTel\\\",[23,1,[]],\\\"telephone\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,9,[]],[23,3,[\\\"_data\\\",\\\"companyTel\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"companyFax\\\",[23,1,[]],\\\"fax\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,9,[]],[23,3,[\\\"_data\\\",\\\"companyFax\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"address\\\",[23,1,[]],\\\"address\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,9,[]],[23,3,[\\\"_data\\\",\\\"address\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"taxNumber\\\",[23,1,[]],\\\"tax number\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,9,[]],[23,3,[\\\"_data\\\",\\\"taxNumber\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"hideTaxNumber\\\",[23,1,[]],[23,0,[\\\"errors\\\"]],\\\"hide tax number for all shops\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,9,[]],[23,3,[\\\"_data\\\",\\\"hideTaxNumber\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopUrlPrefix\\\",[23,1,[]],\\\"shop url prefix\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,9,[]],[23,3,[\\\"_data\\\",\\\"shopUrlPrefix\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"defaultTaxRate_group\\\",[23,1,[]],[23,2,[]],\\\"default tax rate\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"taxRateKey\\\",[23,1,[]],\\\"tax rate\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@isQuickEditable\\\"],[\\\"taxes-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"taxes\\\",true]]],[23,4,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxes\\\"]],\\\"_data._key\\\",true,false,[23,3,[\\\"_data\\\",\\\"taxRateKey\\\"]],false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.documents\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"documentsSales_group\\\",[23,1,[]],[23,2,[]],\\\"documents sales\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesTaxMethodKey\\\",[23,1,[]],\\\"tax on sales\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods\\\"]],true,true,[23,3,[\\\"_data\\\",\\\"salesTaxMethodKey\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesPendingTaxMethod\\\",[23,1,[]],\\\"sales-pending: display tax method\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],true,true,[23,3,[\\\"_data\\\",\\\"salesPendingTaxMethod\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.documents\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"documentsPurchases_group\\\",[23,1,[]],[23,2,[]],\\\"documents purchases\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesTaxMethodKey\\\",[23,1,[]],\\\"tax on purchases\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods\\\"]],true,true,[23,3,[\\\"_data\\\",\\\"purchasesTaxMethodKey\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesPendingTaxMethod\\\",[23,1,[]],\\\"purchases-pending: display tax method\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,3,[\\\"_data\\\",\\\"purchasesPendingTaxMethod\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"emailSettings_group\\\",[23,1,[]],[23,2,[]],\\\"email settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emailFromName\\\",[23,1,[]],\\\"from email name\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,9,[]],[23,3,[\\\"_data\\\",\\\"emailFromName\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emailFromAddress\\\",[23,1,[]],\\\"from email address\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,9,[]],[23,3,[\\\"_data\\\",\\\"emailFromAddress\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emailSignature\\\",[23,1,[]],\\\"email signature\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,3,[\\\"_data\\\",\\\"emailSignature\\\"]],true,true,[23,9,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,2,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isUseCompanyEmail\\\",[23,1,[]],\\\"use company email address when sending email manually\\\",[23,3,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,9,[]],[23,3,[\\\"_data\\\",\\\"isUseCompanyEmail\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"openHours_group\\\",[23,1,[]],[23,2,[]],\\\"open hours\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"open-hours\\\",[],[[\\\"@allowCopyTime\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[true,[23,1,[]],[23,9,[]],[23,3,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"openHours\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/basic-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/beta-editor/component\", [\"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 = Ember.Component.extend({\n    users: Ember.inject.service(),\n    applicationService: Ember.inject.service('application'),\n    init() {\n      this._super(...arguments);\n      if (!this.get('model._data.beta')) {\n        this.set('model._data.beta', {});\n      }\n    },\n    isAdmin: Ember.computed('users.{isAdmin}', function () {\n      return this.users.getProp('isAdmin');\n    })\n  });\n});","define(\"client/pods/components/settings/settings-editor/beta-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nYAf/t4n\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@errors\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"beta\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,8,[]],[23,7,[]],[23,3,[]],[23,6,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"betaSettings_group\\\",[23,1,[]],[23,3,[]],\\\"beta settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"beta.stories\\\",[23,1,[]],[23,2,[]],\\\"gjs-show-bigordr-story\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"stories\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"beta.sevenEleven\\\",[23,1,[]],[23,2,[]],\\\"seven-eleven\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"sevenEleven\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"beta.payuniSevenEleven\\\",[23,1,[]],[23,2,[]],\\\"payuni-seven-eleven\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"payuniSevenEleven\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.productsEditor\\\",[23,1,[]],\\\"new products editor\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"productsEditor\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.almostEmptyQtyWarningForProducts\\\",[23,1,[]],\\\"show almost empty qty warning for products\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"almostEmptyQtyWarningForProducts\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.twoFactorAuth\\\",[23,1,[]],\\\"two factor authentication\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"twoFactorAuth\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.workflows\\\",[23,1,[]],\\\"workflows\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"workflows\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.zones\\\",[23,1,[]],\\\"shipping zones\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"zones\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.allowReIndex\\\",[23,1,[]],\\\"allow to re-index all products\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"allowReIndex\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"isAdmin\\\"]],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.hasBetaLogin\\\",[23,1,[]],\\\"try new features\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"hasBetaLogin\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.tapPay\\\",[23,1,[]],\\\"allow tax numbers per shop\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"allowTaxNumbersPerShop\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.tapPay\\\",[23,1,[]],\\\"tapPay\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"tapPay\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.allowChangingBillingPaymentMethod\\\",[23,1,[]],\\\"allow changing billing payment method\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"allowChangingBillingPaymentMethod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.billing\\\",[23,1,[]],\\\"billing management\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"billing\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.ecPay\\\",[23,1,[]],\\\"ecPay\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"ecPay\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.systemlead\\\",[23,1,[]],\\\"systemlead\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"systemlead\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.botBuilder\\\",[23,1,[]],\\\"bot builder\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"botBuilder\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.inventoryFilters\\\",[23,1,[]],\\\"inventory filters\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"inventoryFilters\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.bsp\\\",[23,1,[]],\\\"bsp\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"bsp\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.linePay\\\",[23,1,[]],\\\"line pay\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"linePay\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.hasRewardForSpecificProductTags\\\",[23,1,[]],\\\"reward for specific product tags\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"hasRewardForSpecificProductTags\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"beta.pos\\\",[23,1,[]],[23,2,[]],\\\"pos\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"pos\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.hideTaxNumberAndTelephoneOnDeliveryNote\\\",[23,1,[]],\\\"hide tax number and telephone on delivery note\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"hideTaxNumberAndTelephoneOnDeliveryNote\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.allowBarcodeInDeliveryNotes\\\",[23,1,[]],\\\"allow barcode in delivery notes\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"allowBarcodeInDeliveryNotes\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"features.hasWebPos\\\",[23,1,[]],[23,2,[]],\\\"allow web pos\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hasWebPos\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"beta.allowApiAccess\\\",[23,1,[]],[23,2,[]],\\\"allowApiAccess\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"allowApiAccess\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"features.hideFacebookLogin\\\",\\\"settings\\\",[23,2,[]],false,\\\"hide facebook login\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hideFacebookLogin\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"features.hideLineLogin\\\",\\\"settings\\\",[23,2,[]],false,\\\"hide line login\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hideLineLogin\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"features.hideBigOrdrLogin\\\",\\\"settings\\\",[23,2,[]],false,\\\"hide bigordr login\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hideBigOrdrLogin\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"features.hideGuestCheckout\\\",\\\"settings\\\",[23,2,[]],false,\\\"hide guest checkout\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hideGuestCheckout\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"features.hideContactUsMessageOnCheckOrderStatus\\\",\\\"settings\\\",[23,2,[]],false,\\\"hide contact us message in check order status\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hideContactUsMessageOnCheckOrderStatus\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"features.hideBigOrdrFromWebsites\\\",\\\"settings\\\",[23,2,[]],false,\\\"hide BigOrdr logo from all websites\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hideBigOrdrFromWebsites\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"features.hideBigOrdrLoginMessageFromWebsites\\\",\\\"settings\\\",[23,2,[]],false,\\\"hide BigOrdr signup message during login from all websites\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hideBigOrdrLoginMessageFromWebsites\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"beta.useInventoryAsLimitedQty\\\",[23,1,[]],[23,2,[]],\\\"use inventory qty as product limits defaults\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"useInventoryAsLimitedQty\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"isAdmin\\\"]],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"features.hasLegacyWebsitesTemplateTypes\\\",\\\"settings\\\",[23,2,[]],false,\\\"allow different website template types\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hasLegacyWebsitesTemplateTypes\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"beta.showCampaignPeriodDataOnly\\\",[23,1,[]],\\\"show data for campaign period only\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"showCampaignPeriodDataOnly\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.allowMasterChildCampaigns\\\",[23,1,[]],\\\"allow linked campaigns\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"allowMasterChildCampaigns\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.hasRewardForSpecificProductTags\\\",[23,1,[]],\\\"reward for specific product tags\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hasRewardForSpecificProductTags\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@translate\\\"],[\\\"features.allowRecurringSchedules\\\",[23,1,[]],\\\"beta: allow recurring schedules\\\",[23,5,[]],[23,3,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"allowRecurringSchedules\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.allowRecurringSchedules\\\",[23,1,[]],\\\"allow recurring schedules\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"allowRecurringSchedules\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.hasCustomProductsDisplaySettings\\\",[23,1,[]],\\\"custom products display settings\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hasCustomProductsDisplaySettings\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.allowCollectOnBehalf\\\",[23,1,[]],\\\"allow collect on behalf\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"allowCollectOnBehalf\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.betterImages\\\",[23,1,[]],\\\"better images\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"features\\\",\\\"betterImages\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.sortExportProductByIndex\\\",[23,1,[]],\\\"export order details using specified order\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"features\\\",\\\"sortExportProductByIndex\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"isAdmin\\\"]],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.websitesCount\\\",[23,1,[]],\\\"websitesCount\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@required\\\",\\\"@value\\\"],[[23,4,[]],true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"websitesCount\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.websitesForAllowAllCampaignsCount\\\",[23,1,[]],\\\"websitesForAllowAllCampaignsCount\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@required\\\",\\\"@value\\\"],[[23,4,[]],true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"websitesForAllowAllCampaignsCount\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.allowSupplierPortal\\\",[23,1,[]],\\\"supplier portal\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"features\\\",\\\"allowSupplierPortal\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.allowRecalculateInventory\\\",[23,1,[]],\\\"allow recalculate inventory\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"features\\\",\\\"allowRecalculateInventory\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.hasCustomCheckoutFields\\\",[23,1,[]],\\\"allow custom checkout fields\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"features\\\",\\\"hasCustomCheckoutFields\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"beta\\\",\\\"allowApiAccess\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"webhooks.orders.notify.enabled\\\",[23,1,[]],[23,2,[]],\\\"webhooks: enable notify on order\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,5,[\\\"_data\\\",\\\"webhooks\\\",\\\"orders\\\",\\\"notify\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"webhooks.orders.notify.url\\\",[23,1,[]],[23,2,[]],\\\"webhooks: notify on order URL\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@required\\\",\\\"@value\\\"],[[23,4,[]],true,[23,5,[\\\"_data\\\",\\\"webhooks\\\",\\\"orders\\\",\\\"notify\\\",\\\"url\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"webhooks.orders.notify.authorizationToken\\\",[23,1,[]],[23,2,[]],\\\"webhooks: authorization token\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"webhooks\\\",\\\"orders\\\",\\\"notify\\\",\\\"authorizationToken\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.shopCheckoutDisallowNote\\\",[23,1,[]],\\\"disallow notes on checkout\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"features\\\",\\\"shopCheckoutDisallowNote\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.shopCheckoutDisallowUseAlternateAddress\\\",[23,1,[]],\\\"disallow use different delivery info\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"features\\\",\\\"shopCheckoutDisallowUseAlternateAddress\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"features.shopCheckoutDisallowSubscribeToNewsletter\\\",[23,1,[]],\\\"disallow subscribe to newsletter\\\",[23,5,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"features\\\",\\\"shopCheckoutDisallowSubscribeToNewsletter\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/beta-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/company-editor/component\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/components/settings/settings-editor/company-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Rg44YwqA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"menuNav\\\",\\\"metaData\\\",\\\"paymentReminderEmail\\\",\\\"metaData\\\",\\\"metaData\\\",\\\"metaData\\\",\\\"onCloseDialogAction\\\",\\\"metaData\\\",\\\"metaData\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isDisabled\\\",\\\"@headerBottom\\\",\\\"@onSetHeaderBottom\\\",\\\"@parentTab\\\",\\\"@isEditing\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"guide-menu/guide-menu-nav\\\",[],[[\\\"@headerBottom\\\",\\\"@menuId\\\",\\\"@onSetHeaderBottom\\\",\\\"@parentTab\\\",\\\"@tab\\\"],[[23,14,[]],\\\"settingsCompanyMenu\\\",[23,15,[]],[23,16,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@context\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[\\\"information\\\",\\\"company\\\",true,[23,1,[\\\"menu\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-editorSubPanels\\\"]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"logo\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,9,[\\\"parentComponent\\\"]],[23,10,[]],\\\"logo\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"defaultLlogo\\\",\\\"settings\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"settings/files/files-gallery-uploader\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@allowUploads\\\",\\\"@allowShowPreviewModal\\\",\\\"@allowRemove\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@allowSetDefault\\\",\\\"@showDefaultImagePreview\\\",\\\"@allowMultipleItems\\\"],[[22,\\\"tab\\\"],[23,11,[]],[23,17,[]],[23,17,[]],[23,17,[]],\\\"settings\\\",\\\"logo\\\",true,true,false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"contactInfo\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,9,[\\\"parentComponent\\\"]],[23,10,[]],\\\"contact info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"company\\\",\\\"settings\\\",\\\"company\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,true,[23,12,[]],[23,11,[\\\"_data\\\",\\\"company\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"companyTel\\\",\\\"settings\\\",\\\"telephone\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,12,[]],[23,11,[\\\"_data\\\",\\\"companyTel\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"companyFax\\\",\\\"settings\\\",\\\"fax\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"companyFax\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"address\\\",\\\"settings\\\",\\\"address\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"address\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"taxNumber\\\",\\\"settings\\\",\\\"tax number\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,12,[]],[23,11,[\\\"_data\\\",\\\"taxNumber\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"hideTaxNumber\\\",\\\"settings\\\",[23,0,[\\\"errors\\\"]],\\\"hide tax number for all shops\\\",[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"hideTaxNumber\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopUrlPrefix\\\",\\\"settings\\\",\\\"shop url prefix\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"shopUrlPrefix\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"bankingDetails\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,9,[\\\"parentComponent\\\"]],[23,10,[]],\\\"banking details\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"bankingDetails\\\",\\\"settings\\\",\\\"banking details\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,[23,11,[\\\"_data\\\",\\\"bankingDetails\\\"]],[23,12,[]],[23,10,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"openHours\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,9,[\\\"parentComponent\\\"]],[23,10,[]],\\\"open hours\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"open-hours\\\",[],[[\\\"@allowCopyTime\\\",\\\"@context\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[true,\\\"openHours\\\",[23,12,[]],[23,11,[]],[23,10,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[9]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@context\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[\\\"taxes\\\",\\\"taxes\\\",true,[23,1,[\\\"menu\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-editorSubPanels\\\"]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"defaultTaxRate\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,8,[\\\"parentComponent\\\"]],[23,10,[]],\\\"default tax rate\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"taxRateKey\\\",\\\"settings\\\",[23,18,[]],\\\"tax rate\\\",[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"taxes-editor\\\",[23,13,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxes\\\"]],\\\"_data._key\\\",true,false,[23,11,[\\\"_data\\\",\\\"taxRateKey\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.documents\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"documentsSales\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,8,[\\\"parentComponent\\\"]],[23,10,[]],\\\"documents sales\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesTaxMethodKey\\\",\\\"settings\\\",\\\"tax on sales\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods\\\"]],true,true,[23,11,[\\\"_data\\\",\\\"salesTaxMethodKey\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesPendingTaxMethod\\\",\\\"settings\\\",\\\"sales-pending: display tax method\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],true,true,[23,11,[\\\"_data\\\",\\\"salesPendingTaxMethod\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.documents\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"documentsPurchases\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,8,[\\\"parentComponent\\\"]],[23,10,[]],\\\"documents purchases\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesTaxMethodKey\\\",\\\"settings\\\",\\\"tax on purchases\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods\\\"]],true,true,[23,11,[\\\"_data\\\",\\\"purchasesTaxMethodKey\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesPendingTaxMethod\\\",\\\"settings\\\",\\\"purchases-pending: display tax method\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,11,[\\\"_data\\\",\\\"purchasesPendingTaxMethod\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"twEInvoicesAndTwInvoices\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,8,[\\\"parentComponent\\\"]],[23,10,[]],\\\"tw_eInvoices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.extensions.tw_eInvoices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoices\\\",\\\"settings\\\",\\\"tw_print_eInvoices\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-invoicing\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,11,[\\\"_data\\\",\\\"tw_eInvoices\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.extensions.tw_invoices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_invoices\\\",\\\"settings\\\",\\\"tw_print_invoices\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@ranslate\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,13,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-invoicing\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,11,[\\\"_data\\\",\\\"tw_invoices\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"pod/get\\\",[\\\"features.extensions.tw_invoices\\\"],null],[28,\\\"pod/get\\\",[\\\"features.extensions.tw_eInvoices\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"tw_invoices\\\"]],[23,0,[\\\"constants\\\",\\\"togglesOnOff\\\",\\\"on\\\"]]],null],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"tw_eInvoices\\\"]],[23,0,[\\\"constants\\\",\\\"togglesOnOff\\\",\\\"on\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"autoPrintInvoices\\\",\\\"settings\\\",\\\"tw_auto_print_invoices\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-invoicing\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,11,[\\\"_data\\\",\\\"autoPrintInvoices\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"autoPrintInvoicesForShop\\\",\\\"settings\\\",\\\"tw_auto_print_invoices_for_shop\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-invoicing\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,11,[\\\"_data\\\",\\\"autoPrintInvoicesForShop\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"defaultInvoicesView\\\",\\\"settings\\\",\\\"tw_default_invoices_view\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-view\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,11,[\\\"_data\\\",\\\"defaultInvoicesView\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"autoIssueEInvoicesDaily\\\",\\\"settings\\\",\\\"tw_auto_issue_eInvoices\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,13,[]],false,true,[23,11,[\\\"_data\\\",\\\"autoIssueEInvoicesDaily\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"taxRateKey\\\",\\\"settings\\\",\\\"tax rate\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"taxes-editor\\\",[23,13,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxes\\\"]],\\\"_data._key\\\",true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"taxRateKey\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@context\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[\\\"products\\\",\\\"products\\\",true,[23,1,[\\\"menu\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-editorSubPanels\\\"]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"productSettings\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,6,[\\\"parentComponent\\\"]],[23,10,[]],\\\"product settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"inventoryType\\\",\\\"settings\\\",\\\"product type\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],true,[23,11,[\\\"_data\\\",\\\"inventoryType\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"inventoryTracking\\\",\\\"settings\\\",\\\"track inventory\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,13,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tracking\\\"]],true,[23,11,[\\\"_data\\\",\\\"inventoryTracking\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"hideVariantChildrenInProductsSearch\\\",\\\"settings\\\",\\\"only show variant parents in products search\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,12,[]],false,true,[23,11,[\\\"_data\\\",\\\"hideVariantChildrenInProductsSearch\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"roundingCurrency\\\",\\\"settings\\\",\\\"currency decimal rounding\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@value\\\"],[[23,13,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-rounding\\\"]],[23,11,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"roundingInventoryQty\\\",\\\"settings\\\",\\\"product decimal places\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,13,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-rounding\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,11,[\\\"_data\\\",\\\"roundingInventoryQty\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"roundingInventoryPrice\\\",\\\"settings\\\",\\\"product price rounding\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,13,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-rounding\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,11,[\\\"_data\\\",\\\"roundingInventoryPrice\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@closeOnOverlayClick\\\"],[\\\"reset inventory data\\\",[23,13,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"resetInventoryDate\\\",\\\"settings\\\",\\\"reset inventory date\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isDatePicker\\\",\\\"@readonly\\\",\\\"@placeholder\\\",\\\"@dateZ\\\",\\\"@value\\\"],[true,[23,12,[]],\\\"reset inventory date\\\",[23,0,[\\\"inventoryResetDateZ\\\"]],[23,0,[\\\"resetInventoryDate\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[true,[28,\\\"or\\\",[[23,12,[]],[28,\\\"is-empty\\\",[[23,0,[\\\"inventoryResetDateZ\\\"]]],null]],null],\\\"reset inventory data\\\",[28,\\\"perform\\\",[[23,0,[\\\"productService\\\",\\\"resetInventoryDataTask\\\"]],[28,\\\"hash\\\",null,[[\\\"inventoryResetDateZ\\\"],[[23,0,[\\\"inventoryResetDateZ\\\"]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"productSize\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,6,[\\\"parentComponent\\\"]],[23,10,[]],\\\"product size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"weightUnit\\\",\\\"settings\\\",\\\"default weight unit\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,12,[]],true,\\\"_data.value\\\",[23,11,[\\\"_data\\\",\\\"weightUnit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units-weight\\\"]],true,true,[23,11,[\\\"_data\\\",\\\"weightUnit\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"packagingDimensionsUnit\\\",\\\"settings\\\",\\\"packaging_dimensions_unit_default\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,12,[]],true,\\\"_data.value\\\",[23,11,[\\\"_data\\\",\\\"packagingDimensionsUnit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units-dimensions\\\"]],true,true,[23,11,[\\\"_data\\\",\\\"packagingDimensionsUnit\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@context\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[\\\"contacts\\\",\\\"company\\\",true,[23,1,[\\\"menu\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-editorSubPanels\\\"]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"documentSettings\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,5,[\\\"parentComponent\\\"]],[23,10,[]],\\\"contacts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"showContactsStatementAging\\\",\\\"settings\\\",\\\"show aging in statements\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,12,[]],false,true,[23,11,[\\\"_data\\\",\\\"showContactsStatementAging\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"contactsTagsBehaviorInReports\\\",\\\"settings\\\",\\\"contact tags report summary option\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,12,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tag-report-options\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,11,[\\\"_data\\\",\\\"contactTagsReportSummaryOption\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@context\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[\\\"documents\\\",\\\"documents\\\",true,[23,1,[\\\"menu\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-editorSubPanels\\\"]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.documents\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"documentSettings\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,4,[\\\"parentComponent\\\"]],[23,10,[]],\\\"document settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isShowTotalQty\\\",\\\"settings\\\",\\\"show total quantity when printing documents\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"isShowTotalQty\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"showTotalDue\\\",\\\"settings\\\",\\\"show total due when printing contact statements\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,12,[]],false,true,[23,11,[\\\"_data\\\",\\\"showTotalDue\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"useWebsiteLogo\\\",\\\"settings\\\",\\\"use website logo for delivery notes\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,12,[]],false,true,[23,11,[\\\"_data\\\",\\\"useWebsiteLogo\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"showImagesOnDocuments\\\",\\\"settings\\\",\\\"show images when viewing documents\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"showImagesOnDocuments\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"printImagesOnDocuments\\\",\\\"settings\\\",\\\"print images on documents\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"printImagesOnDocuments\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"inclusiveDiscount\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,4,[\\\"parentComponent\\\"]],[23,10,[]],\\\"inclusive discount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"discountType\\\",\\\"settings\\\",\\\"inclusive discount\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,[23,12,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"discounts-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,11,[\\\"_data\\\",\\\"discountType\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"salesTerms\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,4,[\\\"parentComponent\\\"]],[23,10,[]],\\\"sales terms\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-is-child\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.quotes\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesQuotesTerms\\\",\\\"settings\\\",\\\"sales-quotes\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"salesQuotesTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.orders\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesOrdersTerms\\\",\\\"settings\\\",\\\"sales-orders\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"salesOrdersTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.invoices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesInvoicesTerms\\\",\\\"settings\\\",\\\"sales-invoices\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"salesInvoicesTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesReturnsTerms\\\",\\\"settings\\\",\\\"sales-returns\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"salesReturnsTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.consignments\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesConsignmentsTerms\\\",\\\"settings\\\",\\\"sales-consignments\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"salesConsignmentsTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.consignments-returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesConsignmentsReturnsTerms\\\",\\\"settings\\\",\\\"sales-consignments-returns\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"salesConsignmentsReturnsTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.documents\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"purchasesTerms\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,4,[\\\"parentComponent\\\"]],[23,10,[]],\\\"purchases terms\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-is-child\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.quotes\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesQuotesTerms\\\",\\\"settings\\\",\\\"purchases-quotes\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"purchasesQuotesTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.orders\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesOrdersTerms\\\",\\\"settings\\\",\\\"purchases-orders\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"purchasesOrdersTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.invoices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesInvoicesTerms\\\",\\\"settings\\\",\\\"purchases-invoices\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"purchasesInvoicesTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesReturnsTerms\\\",\\\"settings\\\",\\\"purchases-returns\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"purchasesReturnsTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.consignments\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesConsignmentsTerms\\\",\\\"settings\\\",\\\"purchases-consignments\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"purchasesConsignmentsTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.consignments-returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesConsignmentsReturnsTerms\\\",\\\"settings\\\",\\\"purchases-consignments-returns\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,13,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,10,[]],false,[23,11,[\\\"_data\\\",\\\"purchasesConsignmentsReturnsTerms\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"deliveryNotes\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,4,[\\\"parentComponent\\\"]],[23,10,[]],\\\"delivery notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"deliveryNotePrintFormat\\\",\\\"settings\\\",\\\"delivery note print format\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,12,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,11,[\\\"_data\\\",\\\"deliveryNotePrintFormat\\\"]],true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"deliveryNotePrintFormat\\\"]],\\\"thermal\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"showUnit\\\",\\\"settings\\\",\\\"show units\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,12,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-unit\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,11,[\\\"_data\\\",\\\"showUnit\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"showProductCode\\\",\\\"settings\\\",\\\"show product code\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,12,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-product-code\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,11,[\\\"_data\\\",\\\"showProductCode\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@context\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@resourceList\\\",\\\"@tab\\\"],[\\\"emails\\\",\\\"emails\\\",true,[23,1,[\\\"menu\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-editorSubPanels\\\"]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"emailSettings\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"email settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emailFromName\\\",\\\"settings\\\",\\\"from email name\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,12,[]],[23,11,[\\\"_data\\\",\\\"emailFromName\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emailFromAddress\\\",\\\"settings\\\",\\\"from email address\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,12,[]],[23,11,[\\\"_data\\\",\\\"emailFromAddress\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"emailSignature\\\",\\\"settings\\\",\\\"email signature\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"emailSignature\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isUseCompanyEmail\\\",\\\"settings\\\",\\\"use company email address when sending email manually\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"isUseCompanyEmail\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"orderSuccessEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"order success email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderedEmailSubject\\\",\\\"settings\\\",\\\"email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,12,[]],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"orderedEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"order summary\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"orderedEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderedEmailMessage\\\",\\\"settings\\\",\\\"email message\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,12,[]],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"orderedEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"defaultOrderedEmailMessage\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"orderedEmailMessage\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderedEmailCopyTo\\\",\\\"settings\\\",\\\"send a copy of order email to addresses\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,12,[]],2,[23,11,[\\\"_data\\\",\\\"orderedEmailCopyTo\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"orderDispatchedEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"order dispatched email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailAutoSend\\\",\\\"settings\\\",\\\"auto send dispatched email at 10pm every day\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"dispatchedEmailAutoSend\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailSubject\\\",\\\"settings\\\",\\\"email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,12,[]],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"email_dispatched_default_subject\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailMessage\\\",\\\"settings\\\",\\\"email message\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,12,[]],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"defaultDispatchedEmailMessage\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\",\\\"settings\\\",\\\"show estimated delivery date\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,11,[\\\"_data\\\",\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailEstimateTransporterArrivalDaysFromDispatch\\\",\\\"settings\\\",\\\"number of days after dispatch date\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"dispatchedEmailEstimateTransporterArrivalDaysFromDispatch\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailTransporterArrivalDateSkipWeekends\\\",\\\"settings\\\",\\\"skip weekends\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"dispatchedEmailTransporterArrivalDateSkipWeekends\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"orderCanceledEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"order canceled email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderCanceledEmailSubject\\\",\\\"settings\\\",\\\"email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,12,[]],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"email_canceled_order_default_subject\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailMessage\\\",\\\"settings\\\",\\\"email message\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,12,[]],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"defaultCanceledEmailMessage\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"creditCardRefundedEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"credit card refunded email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCardRefundedEmailSubject\\\",\\\"settings\\\",\\\"email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,12,[]],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"email_refunded_order_default_subject\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCardRefundedEmailMessage\\\",\\\"settings\\\",\\\"email message\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,12,[]],[28,\\\"eq\\\",[[23,11,[\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"defaultRefundedEmailMessage\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"returnsApplicationEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"returns application email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"returnsEmailSubject\\\",\\\"settings\\\",\\\"email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"returnsEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"returnsEmailMessage\\\",\\\"settings\\\",\\\"email message\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"returnsEmailMessage\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"returnsEmailCopyTo\\\",\\\"settings\\\",\\\"send a copy of order email to addresses\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,12,[]],2,[23,11,[\\\"_data\\\",\\\"returnsEmailCopyTo\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"paymentReminderEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"payment reminder email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,12,[]],\\\"add\\\",[28,\\\"action\\\",[[23,0,[]],\\\"newBlankPaymentReminderEmail\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,11,[\\\"_data\\\",\\\"paymentReminderEmails\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-sub-section\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container automations__container\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"paymentReminderEmailDays\\\",\\\"settings\\\",\\\"send payment reminder when overdue by\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"form__input form__input--40\\\",[23,12,[]],[23,3,[\\\"_data\\\",\\\"paymentReminderEmailDays\\\"]]]]],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"days\\\"],null],false],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"paymentReminderEmailSubject\\\",\\\"settings\\\",\\\"payment reminder email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,3,[\\\"_data\\\",\\\"paymentReminderEmailSubject\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"paymentReminderEmailMessage\\\",\\\"settings\\\",\\\"payment reminder email message\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,3,[\\\"_data\\\",\\\"paymentReminderEmailMessage\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reference\\\",\\\"shop-name\\\",\\\"overdue-days\\\"],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,12,[]],\\\"remove\\\",[28,\\\"action\\\",[[23,0,[]],\\\"removePaymentReminderEmail\\\",[23,3,[]]],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"pod/get\\\",[\\\"beta.allowRecurringSchedules\\\"],null],[28,\\\"pod/get\\\",[\\\"features.allowRecurringSchedules\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"recurringOrderEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"recurring order email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopRecurringLastOrderEmailMessage\\\",\\\"settings\\\",\\\"email message to buy more\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"shopRecurringLastOrderEmailMessage\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"birthdayEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"birthday email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"birthdayEmailSubject\\\",\\\"settings\\\",\\\"email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"birthdayEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"birthdayEmailMessage\\\",\\\"settings\\\",\\\"email message\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"birthdayEmailMessage\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"signupRewardEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"signup reward email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"signupEmailSubject\\\",\\\"settings\\\",\\\"email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"signupEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"signupEmailMessage\\\",\\\"settings\\\",\\\"email message\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[true,[23,11,[\\\"_data\\\",\\\"signupEmailMessage\\\"]],[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"promotionEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"rewards promotion email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"promotionEmailSubject\\\",\\\"settings\\\",\\\"email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"promotionEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"promotionEmailMessage\\\",\\\"settings\\\",\\\"email message\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"promotionEmailMessage\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-entity\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isMenu\\\",\\\"@menuId\\\",\\\"@parent\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"referralEmail\\\",\\\"settings\\\",true,[23,1,[\\\"menu\\\"]],[23,2,[\\\"parentComponent\\\"]],[23,10,[]],\\\"referral email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"referralEmailSubject\\\",\\\"settings\\\",\\\"email subject\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,12,[]],[23,11,[\\\"_data\\\",\\\"referralEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"referralEmailMessageForRecipient\\\",\\\"settings\\\",\\\"email message for recipient\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"referralEmailMessageForRecipient\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"referralEmailMessageForReferrer\\\",\\\"settings\\\",\\\"email message for referrer\\\",[23,11,[]],[23,10,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,11,[\\\"_data\\\",\\\"referralEmailMessageForReferrer\\\"]],true,true,[23,12,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,10,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/company-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"client/config/environment\", \"client/utils/nventor\", \"client/mixins/transporter\"], function (_exports, R, RA, R_, _environment, _nventor, _transporter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_transporter.default, (_dec = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    transporter: Ember.inject.service(),\n    uploadcare: Ember.inject.service(),\n    tagName: 'div',\n    classNames: ['col-container'],\n    translate: true,\n    hctModel: false,\n    headerBottom: null,\n    listsIsLoaded: null,\n    init() {\n      this._super(...arguments);\n      let crudAddLists = ['channels/shop/campaigns/statuses', 'channels/shop/campaigns/lists/productsOverview', 'channels/shop/campaigns/lists/productsImagesRatio', 'channels/shop/campaigns/lists/productsImagesSize', 'channels/shop/campaigns/lists/productsNameFontSize', 'channels/shop/campaigns/lists/productsNameLineCount', 'channels/shop/campaigns/lists/variantSelectorStyle', 'channels/shop/campaigns/lists/cartBtnStyle', 'discounts/types', 'facebook/pages', 'facebook/pixels', 'google/tracking', 'paymentMethods', 'paymentMethods/shop', 'paymentTerms', 'products/lists/tags', 'products/lists/types', 'products/lists/tracking', 'products/lists/onSaleTagDisplayPosition', 'products/lists/onSaleTagDisplayStyle', 'settings/editorSubPanels', 'settings/rounding', 'settings/imagesHoverFilter', 'settings/imagesHoverTransform', 'shipping/feeType', 'taxes', 'taxMethods', 'taxMethods/filters', 'toggles/onOff', 'units/dimensions', 'units/weight', {\n        name: 'workflows/lists/items/activities/templates',\n        appendPath: 'authorization'\n      }];\n      if (this.settings.getProp('features.extensions.tw_invoices') || this.settings.getProp('features.extensions.tw_eInvoices')) {\n        crudAddLists = crudAddLists.concat(['extensions/apps/tw/invoicing', 'extensions/apps/tw/view']);\n      }\n      if (this.settings.getProp('features.sales.documents')) {\n        crudAddLists = crudAddLists.concat(['documents/sales/terms']);\n      }\n      if (this.settings.getProp('features.purchases.documents')) {\n        crudAddLists = crudAddLists.concat(['documents/purchases/terms']);\n      }\n      this.crud.addLists(this, crudAddLists);\n      this.set('config', _environment.default);\n      this.set('editingPanels', []);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      if (!this.isWizard) {\n        const initialPanel = this.tabsManager.getLoadInstructions(this.tab) || _nventor.default.safeHeadOr({}, this.subPanelsList);\n        this.tabsManager.displaySubPanel(this, initialPanel);\n      }\n    },\n    currentResourceList: Ember.computed('crud.lists.settings-editorSubPanels.[]', function () {\n      if (RA.isNotNilOrEmpty(this.resourceList)) {\n        return this.resourceList;\n      }\n      return this.crud?.lists?.['settings-editorSubPanels'] || [];\n    }),\n    subPanelsList: Ember.computed('crud.lists.settings-editorSubPanels.[]', function () {\n      const editorSubPanels = R_.dotPath('crud.lists.settings-editorSubPanels')(this) || [];\n\n      // only returns the ones with components\n      return R.filter(subPanel => !!R.pathOr(null, ['_data', 'component'])(subPanel))(editorSubPanels);\n    }),\n    isReadonly: Ember.computed('isEditing', 'saveTask.isRunning', 'crud.saveTask.isRunning', function () {\n      if (this.get('crud.saveTask.isRunning')) {\n        return true;\n      }\n      if (this.isEditing === true) {\n        return false;\n      }\n      return true;\n    }),\n    isDisabled: Ember.computed('isEditing', function () {\n      if (this.isEditing === true) {\n        return false;\n      }\n      return true;\n    }),\n    editPanel() {\n      const tab = this.tab;\n      const activeSubTab = this.tabsManager.getActiveSubTab(tab);\n      const tabOptions = {\n        loadInstructions: {\n          component: activeSubTab.get?.('component'),\n          value: activeSubTab?.value,\n          label: activeSubTab?.label\n        }\n      };\n      this.onEdit(this.model, {\n        tabOptions\n      });\n    }\n  }, _applyDecoratedDescriptor(_obj, \"editPanel\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"editPanel\"), _obj), _obj));\n});","define(\"client/pods/components/settings/settings-editor/documents-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SettingsSettingsEditorDocumentsEditorComponent = _exports.default = (_dec = Ember.inject.service, _class = class SettingsSettingsEditorDocumentsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['filters/count', 'contacts/lists/tag-report-options', 'discounts/types', 'documents/lists/print', 'documents/lists/print/barcodes-mode', 'documents/lists/print/images-size', 'documents/lists/print/returns-display', 'documents/lists/print/paper-size', 'documents/lists/print/product-code', 'documents/lists/print/unit', 'documents/purchases/terms', 'documents/sales/terms', 'dispatch/lists/dispatch-sort-filters-advanced', 'dispatch/lists/dispatch-sort-direction', 'dispatch/lists/summary']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/settings/settings-editor/documents-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"86Ycqicn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isDisabled\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"documents\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,8,[]],[23,7,[]],[23,3,[]],[23,6,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"dispatchManagementSettings_group\\\",[23,1,[]],[23,3,[]],\\\"dispatch management settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"groupByTransporter\\\",\\\"group picking list by transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"groupDocumentsByTransporter\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"dispatchFiltersCount\\\",\\\"dispatch list number of records\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"dispatchFiltersCount\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"dispatchFiltersSort\\\",[23,1,[]],\\\"dispatch list sort by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-dispatch-sort-filters-advanced\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"dispatchFiltersSortBy\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,2,[\\\"_data\\\",\\\"dispatchFiltersSortBy\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-dispatch-sort-direction\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"dispatchFiltersSortByDirection\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"dispatchFiltersShowAdvanced\\\",\\\"show advanced search by default\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"dispatchFiltersShowAdvanced\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"dispatchSummaryType\\\",[23,1,[]],\\\"dispatch summary behavior\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"dispatch-lists-summary\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"dispatchSummaryType\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"separateCustomizations\\\",[23,1,[]],\\\"in dispatch summary show each customizations name in a separate row\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"separateCustomizationByName\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"documentSettings_group\\\",[23,1,[]],[23,3,[]],\\\"document settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"useWebsiteLogo\\\",[23,1,[]],\\\"use website logo for delivery notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,2,[\\\"_data\\\",\\\"useWebsiteLogo\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.documents\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"documentSettings_group\\\",[23,1,[]],[23,3,[]],\\\"document print settings\\\"]],{\\\"statements\\\":[[0,\\\" \\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"showImagesOnDocuments\\\",\\\"show images when viewing documents\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"showImagesOnDocuments\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\"],[\\\"beta.hideTaxNumberAndTelephoneOnDeliveryNote\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showTelephoneOnDeliveryNotes\\\",[23,1,[]],\\\"show telephone number on delivery notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,2,[\\\"_data\\\",\\\"showTelephoneOnDeliveryNotes\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showTaxNumberOnDeliveryNotes\\\",[23,1,[]],\\\"show tax number on delivery notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,2,[\\\"_data\\\",\\\"showTaxNumberOnDeliveryNotes\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showDateOnDeliveryNotes\\\",[23,1,[]],\\\"show date on delivery notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,2,[\\\"_data\\\",\\\"showDateOnDeliveryNotes\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showDispatchDateOnDeliveryNotes\\\",[23,1,[]],\\\"show dispatch date on delivery notes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,2,[\\\"_data\\\",\\\"showDispatchDateOnDeliveryNotes\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\"],[\\\"beta.allowBarcodeInDeliveryNotes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"deliveryNoteBarcodesMode\\\",[23,1,[]],\\\"delivery note barcodes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-barcodes-mode\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"deliveryNoteBarcodesMode\\\"]],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showBarcodeOnDeliveryNotesForShopDocuments\\\",[23,1,[]],\\\"show barcode for shop documents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,2,[\\\"_data\\\",\\\"showBarcodeOnDeliveryNotesForShopDocuments\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showBarcodeOnDeliveryNotesForNonShopDocuments\\\",[23,1,[]],\\\"show barcode for non-shop documents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,2,[\\\"_data\\\",\\\"showBarcodeOnDeliveryNotesForNonShopDocuments\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"deliveryNotePrintFormat\\\",[23,1,[]],\\\"delivery note print format\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"deliveryNotePrintFormat\\\"]],true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"deliveryNotePrintFormat\\\"]],\\\"thermal\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showUnit\\\",[23,1,[]],\\\"thermal_show_units\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-unit\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"showUnit\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showProductCode\\\",[23,1,[]],\\\"thermal_show_product_code\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-product-code\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"showProductCode\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"printImagesOnDocuments\\\",\\\"print images on documents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"printImagesOnDocuments\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"isShowTotalQty\\\",[23,1,[]],\\\"show total quantity when printing sales invoices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"isShowTotalQty\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"printSalesInvoicesUserName\\\",[23,1,[]],\\\"show senders name when printing sales invoices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"printSalesInvoicesUserName\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"printSalesInvoicesReceiverSignature\\\",[23,1,[]],\\\"show section for receiver to sign when printing sales invoices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"printSalesInvoicesReceiverSignature\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"printDocumentsUserName\\\",[23,1,[]],\\\"show senders name when printing other documents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"printDocumentsUserName\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"printReturnsDisplayForInvoice\\\",\\\"how to show returns when printing from sales invoices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[true,[23,5,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-returns-display\\\"]],[23,2,[\\\"_data\\\",\\\"printReturnsDisplayForInvoice\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",false,false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"printReturnsDisplayForDispatch\\\",\\\"how to show returns when printing from dispatch management\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[true,[23,5,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-lists-print-returns-display\\\"]],[23,2,[\\\"_data\\\",\\\"printReturnsDisplayForDispatch\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",false,false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"statementsSttings_group\\\",[23,1,[]],[23,3,[]],\\\"statements settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showTotalDue\\\",[23,1,[]],\\\"show total due when printing contact statements\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,2,[\\\"_data\\\",\\\"showTotalDue\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@translate\\\"],[\\\"showCustomerContactsStatementAging\\\",[23,1,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"show aging in statements\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"customer statements\\\"],null],\\\")\\\"],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"showCustomerContactsStatementAging\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@translate\\\"],[\\\"showSupplierContactsStatementAging\\\",[23,1,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"show aging in statements\\\"],null],\\\" (\\\",[28,\\\"tt\\\",[\\\"supplier reconciliations\\\"],null],\\\")\\\"],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"showSupplierContactsStatementAging\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"inclusiveDiscount_group\\\",[23,1,[]],\\\"inclusive discount settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"discountType\\\",[23,1,[]],\\\"inclusive discount default\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"discounts-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"discountType\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"salesTerms_group\\\",[23,1,[]],\\\"sales terms\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.quotes\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesQuotesTerms\\\",[23,1,[]],\\\"sales-quotes\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"salesQuotesTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.orders\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"salesOrdersTerms\\\",[23,1,[]],\\\"sales-orders\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"salesOrdersTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.invoices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesInvoicesTerms\\\",[23,1,[]],\\\"sales-invoices\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"salesInvoicesTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesReturnsTerms\\\",[23,1,[]],\\\"sales-returns\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"salesReturnsTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.consignments\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesConsignmentsTerms\\\",[23,1,[]],\\\"sales-consignments\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"salesConsignmentsTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.sales.children.consignments-returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesConsignmentsReturnsTerms\\\",[23,1,[]],\\\"sales-consignments-returns\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/sales/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-sales-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"salesConsignmentsReturnsTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.documents\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"purchasesTerms_group\\\",[23,1,[]],[23,3,[]],\\\"purchases terms\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.quotes\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesQuotesTerms\\\",[23,1,[]],\\\"purchases-quotes\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"purchasesQuotesTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.orders\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesOrdersTerms\\\",[23,1,[]],\\\"purchases-orders\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"purchasesOrdersTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.invoices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesInvoicesTerms\\\",[23,1,[]],\\\"purchases-invoices\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"purchasesInvoicesTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesReturnsTerms\\\",[23,1,[]],\\\"purchases-returns\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"purchasesReturnsTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.consignments\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesConsignmentsTerms\\\",[23,1,[]],\\\"purchases-consignments\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"purchasesConsignmentsTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.purchases.children.consignments-returns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"purchasesConsignmentsReturnsTerms\\\",[23,1,[]],\\\"purchases-consignments-returns\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[\\\"documents/purchases/terms\\\",\\\"documents/terms-editor\\\",[23,4,[]],true,\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"documents-purchases-terms\\\"]],true,[23,3,[]],false,[23,2,[\\\"_data\\\",\\\"purchasesConsignmentsReturnsTerms\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"reports_group\\\",[23,1,[]],[23,3,[]],\\\"reports\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"contactTagsReportSummaryOption\\\",[23,1,[]],\\\"contact tags report summary option\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"contacts-lists-tag-report-options\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"contactTagsReportSummaryOption\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/documents-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/emails-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SettingsSettingsEditorEmailsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.computed('args.isReadonly', 'args.model._data.sevenElevenPickupReminderEnabled'), _dec3 = Ember._action, _dec4 = Ember._action, _class = class SettingsSettingsEditorEmailsEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['emails/lists/seven-eleven-custom-text-behavior', 'emails/lists/seven-eleven-pickup-reminder-days']);\n    }\n    get isSevenElevenPickupReminderDaysDisabled() {\n      if (this.args.isReadonly) {\n        return true;\n      }\n      if (this.args.model._data.sevenElevenPickupReminderEnabled === false) {\n        return true;\n      }\n      return false;\n    }\n    newBlankPaymentReminderEmail() {\n      const model = this.args.model;\n      const newBlankPaymentReminderEmail = model.newBlankPaymentReminderEmail();\n      model.getData('paymentReminderEmails').pushObject(newBlankPaymentReminderEmail);\n    }\n    removePaymentReminderEmail(paymentReminderEmail) {\n      const msg = 'are you sure you want to remove';\n      if (window.confirm(msg)) {\n        const model = this.args.model;\n        model.getData('paymentReminderEmails').removeObject(paymentReminderEmail);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isSevenElevenPickupReminderDaysDisabled\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"isSevenElevenPickupReminderDaysDisabled\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newBlankPaymentReminderEmail\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"newBlankPaymentReminderEmail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removePaymentReminderEmail\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"removePaymentReminderEmail\"), _class.prototype), _class);\n});","define(\"client/pods/components/settings/settings-editor/emails-editor/emails-placeholders/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SettingsSettingsEditorEmailsEditorEmailsPlaceholdersComponent = _exports.default = (_dec = Ember.inject.service, _class = class SettingsSettingsEditorEmailsEditorEmailsPlaceholdersComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"application\", _descriptor, this);\n    }\n    get includes() {\n      return this.args.includes || ['name', 'email', 'reference', 'shop-name', 'website-url'];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"application\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/settings/settings-editor/emails-editor/emails-placeholders/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NHxzSwir\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"accordion\\\",[],[[\\\"@accordionPanelClassNames\\\",\\\"@expanded\\\",\\\"@label\\\"],[\\\"email-editor__accordion-panel-no-border\\\",false,\\\"view available placeholders\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"email_placeholder_desc\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-half-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"u-width-15\\\"],[8],[1,[28,\\\"tt\\\",[\\\"email placeholder\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"name\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{name}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{name}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"contact name\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"email\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{email}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{email}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"contact email\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"reference\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{reference}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{reference}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"order number\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"shop-name\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{shop-name}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{shop-name}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"shop name\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"website-url\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{website-url}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{website-url}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"website url\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"promo-code\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{promo-code}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{promo-code}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"promo code\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"reward-name\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{reward-name}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{reward-name}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"reward name\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"member-level-name\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{member-level-name}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{member-level-name}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member level name\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"member-level-points\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{member-level-points}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{member-level-points}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member level points\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"member-level-expiry-date\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{member-level-expiry-date}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{member-level-expiry-date}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"member level expiry date\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"valid-points\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{valid-points}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{valid-points}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"valid points\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"pending-points\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{pending-points}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{pending-points}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"pending points\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"points-to-adjust\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{points-to-adjust}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{points-to-adjust}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points to send\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"points-to-adjust-expiry-date\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{points-to-adjust-expiry-date}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{points-to-adjust-expiry-date}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"points to adjust date\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"has\\\",[[23,0,[\\\"includes\\\"]],\\\"overdue-days\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@tabindex\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",true,[28,\\\"concat\\\",[\\\"{{overdue-days}}\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],\\\"{{overdue-days}}\\\",false],null],-1,false]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"send payment reminder when overdue by\\\"],null],false],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/emails-editor/emails-placeholders/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/emails-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ocvEkW99\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"paymentReminderEmail\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\",\\\"@isDisabled\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"emails\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,8,[]],[23,7,[]],[23,3,[]],[23,6,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"orderSuccessEmail_group\\\",[23,1,[]],[23,3,[]],\\\"order success email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderedEmailSubject\\\",[23,1,[]],\\\"email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"orderedEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"order summary\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"orderedEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderedEmailMessage\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"orderedEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"defaultOrderedEmailMessage\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"orderedEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderedEmailCopyTo\\\",[23,1,[]],\\\"send a copy of order email to addresses\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,5,[]],2,[23,4,[\\\"_data\\\",\\\"orderedEmailCopyTo\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"orderDispatchedEmail_group\\\",[23,1,[]],[23,3,[]],\\\"order dispatched email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailAutoSend\\\",[23,9,[]],\\\"auto send dispatched email at 10pm every day\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"dispatchedEmailAutoSend\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailSubject\\\",[23,1,[]],\\\"email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"email_dispatched_default_subject\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"dispatchedEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailMessage\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"defaultDispatchedEmailMessage\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"dispatchedEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\",\\\"show estimated delivery date\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"dispatchedEmailHasEstimateTransporterArrivalDate\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailEstimateTransporterArrivalDaysFromDispatch\\\",\\\"number of days after dispatch date\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"dispatchedEmailEstimateTransporterArrivalDaysFromDispatch\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"dispatchedEmailTransporterArrivalDateSkipWeekends\\\",\\\"skip weekends\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"dispatchedEmailTransporterArrivalDateSkipWeekends\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"orderCanceledEmail_group\\\",[23,1,[]],[23,3,[]],\\\"order canceled email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderCanceledEmailSubject\\\",[23,1,[]],\\\"email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"email_canceled_order_default_subject\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"orderCanceledEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderCanceledEmailMessage\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"defaultCanceledEmailMessage\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"orderCanceledEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"creditCardRefundedEmail_group\\\",[23,1,[]],[23,3,[]],\\\"credit card refunded email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCardRefundedEmailSubject\\\",[23,1,[]],\\\"email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"email_refunded_order_default_subject\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"creditCardRefundedEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCardRefundedEmailMessage\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]],\\\"\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-color-disabled\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"defaultRefundedEmailMessage\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"creditCardRefundedEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"returnsApplicationEmail_group\\\",[23,1,[]],[23,3,[]],\\\"returns application email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"returnsEmailSubject\\\",[23,1,[]],\\\"email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"returnsEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"returnsEmailMessage\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"returnsEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"returnsEmailCopyTo\\\",[23,1,[]],\\\"send a copy of order email to addresses\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,5,[]],2,[23,4,[\\\"_data\\\",\\\"returnsEmailCopyTo\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"paymentReminderEmail_group\\\",[23,1,[]],[23,3,[]],\\\"payment reminder email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,5,[]],\\\"add\\\",[28,\\\"fn\\\",[[23,0,[\\\"newBlankPaymentReminderEmail\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"paymentReminderEmails\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"paymentReminderEmailDays\\\",[23,1,[]],\\\"send payment reminder when overdue by\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@suffix\\\"],[\\\"form__input form__input--40\\\",[23,5,[]],[23,2,[\\\"_data\\\",\\\"paymentReminderEmailDays\\\"]],[28,\\\"tt\\\",[\\\"days\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"paymentReminderEmailSubject\\\",[23,1,[]],\\\"payment reminder email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,2,[\\\"_data\\\",\\\"paymentReminderEmailSubject\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"paymentReminderEmailMessage\\\",[23,1,[]],\\\"payment reminder email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,2,[\\\"_data\\\",\\\"paymentReminderEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reference\\\",\\\"shop-name\\\",\\\"overdue-days\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,5,[]],\\\"remove\\\",[28,\\\"fn\\\",[[23,0,[\\\"removePaymentReminderEmail\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"pod/get\\\",[\\\"beta.allowRecurringSchedules\\\"],null],[28,\\\"pod/get\\\",[\\\"features.allowRecurringSchedules\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"recurringOrderEmail_group\\\",[23,1,[]],[23,3,[]],\\\"recurring order email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopRecurringLastOrderEmailMessage\\\",[23,1,[]],\\\"email message to buy more\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"shopRecurringLastOrderEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"birthdayEmail_group\\\",[23,1,[]],[23,3,[]],\\\"birthday email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"birthdayEmailSubject\\\",[23,1,[]],\\\"email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"birthdayEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"birthdayEmailMessage\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"birthdayEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"signupRewardEmail_group\\\",[23,1,[]],[23,3,[]],\\\"signup reward email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"signupEmailSubject\\\",[23,1,[]],\\\"email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"signupEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"signupEmailMessage\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[true,[23,4,[\\\"_data\\\",\\\"signupEmailMessage\\\"]],[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"promotionEmail_group\\\",[23,1,[]],[23,3,[]],\\\"rewards promotion email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"promotionEmailSubject\\\",[23,1,[]],\\\"email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"promotionEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"promotionEmailMessage\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"promotionEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\",\\\"email\\\",\\\"reward-name\\\",\\\"member-level-name\\\",\\\"member-level-points\\\",\\\"member-level-expiry-date\\\",\\\"valid-points\\\",\\\"pending-points\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"referralEmail_group\\\",[23,1,[]],[23,3,[]],\\\"referral email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email subject for recipient\\\",\\\"referralEmailSubjectForRecipient\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"referralEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"referralEmailMessageForRecipient\\\",[23,1,[]],\\\"email message for recipient\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"referralEmailMessageForRecipient\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"email subject for referrer\\\",\\\"referralEmailSubjectForReferrer\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"referralEmailSubjectForReferrer\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"referralEmailMessageForReferrer\\\",[23,1,[]],\\\"email message for referrer\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"referralEmailMessageForReferrer\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"sevenElevenCustomEmailText_group\\\",[23,1,[]],[23,3,[]],\\\"seven eleven pickup reminder\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"sevenElevenPickupReminderEnabled\\\",[23,1,[]],\\\"enable seven eleven pickup reminder\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,4,[\\\"_data\\\",\\\"sevenElevenPickupReminderEnabled\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"sevenElevenPickupReminderDays\\\",[23,1,[]],\\\"send pickup reminder on these days after ready for pickup\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@disabled\\\"],[false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-lists-seven-eleven-pickup-reminder-days\\\"]],\\\"list-selector\\\",[23,4,[]],\\\"_data.sevenElevenPickupReminderDays\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true,[23,0,[\\\"isSevenElevenPickupReminderDaysDisabled\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"sevenElevenCustomEmailTextBehavior\\\",[23,9,[]],[23,0,[\\\"errors\\\"]],\\\"email content behavior\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,10,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-lists-seven-eleven-custom-text-behavior\\\"]],true,[23,4,[\\\"_data\\\",\\\"sevenElevenCustomEmailTextBehavior\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"sevenElevenCustomEmailText\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"sevenElevenCustomEmailText\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@allowedForFeatures\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"supplierPortalEmail_group\\\",[23,1,[]],[28,\\\"array\\\",[\\\"features.allowSupplierPortal\\\"],null],[23,3,[]],\\\"supplier portal email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"supplierPortalEmailSubject\\\",[23,1,[]],\\\"email subject\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,5,[]],[28,\\\"tt\\\",[\\\"supplier_portal_credentials_for\\\"],[[\\\"company\\\"],[[23,4,[\\\"_data\\\",\\\"company\\\"]]]]],[23,4,[\\\"_data\\\",\\\"supplierPortalEmailSubject\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"supplierPortalEmailMessage\\\",[23,1,[]],\\\"email message\\\",[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,4,[\\\"_data\\\",\\\"supplierPortalEmailMessage\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"settings/settings-editor/emails-editor/emails-placeholders\\\",[],[[\\\"@includes\\\"],[[28,\\\"array\\\",[\\\"name\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/emails-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/invoices-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda-extension\"], function (_exports, _component, R_) {\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;\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 SettingsSettingsEditorInvoicesEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._action, _dec4 = Ember._action, _class = class SettingsSettingsEditorInvoicesEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      this.crud.addLists(this, ['extensions/apps/tw/e-invoices/lists/auto-issue']);\n    }\n\n    /**\n     * The printer app's download links, one per platform, always the latest release.\n     * @returns {Array<{ key: string, label: string, url: string }>}\n     */\n    get printerDownloads() {\n      const {\n        downloadsBaseUrl,\n        downloads\n      } = this.constants.twEInvoicePrinter;\n      return downloads.map(download => ({\n        key: download.key,\n        label: download.label,\n        url: `${downloadsBaseUrl}/${download.file}`\n      }));\n    }\n\n    /**\n     * Download the printer app's installer in a new tab (a plain navigation would\n     * leave the settings page).\n     * @param {string} url\n     * @returns {undefined}\n     */\n    openPrinterDownload(url) {\n      window.open(url, '_blank', 'noopener');\n    }\n    toggleEInvoice(provider, value) {\n      const model = this.args.model;\n      const systemleadBeta = R_.dotPath('_data.beta.systemlead')(model);\n      const ecPayBeta = R_.dotPath('_data.beta.ecPay')(model);\n      if (systemleadBeta && ecPayBeta) {\n        if (provider === 'systemlead') {\n          if (value) {\n            model.setData('tw_eInvoice_ecPay.enabled', false);\n          }\n          if (provider === 'ecPay') {\n            if (value) {\n              model.setData('tw_eInvoice_systemlead.enabled', false);\n            }\n          }\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openPrinterDownload\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"openPrinterDownload\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleEInvoice\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleEInvoice\"), _class.prototype), _class);\n});","define(\"client/pods/components/settings/settings-editor/invoices-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"s23oit6m\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"download\\\",\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponenet\\\",\\\"@formInitData\\\",\\\"@isDisabled\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.extensions.tw_eInvoices\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"invoices\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,12,[]],[23,11,[]],[23,5,[]],[23,10,[]]]]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"twEInvoicesAndTwInvoices_group\\\",[23,1,[]],[23,5,[]],\\\"tw_eInvoices\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoices\\\",[23,1,[]],\\\"tw_print_eInvoices\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,6,[]],[23,4,[\\\"_data\\\",\\\"tw_eInvoices\\\"]],\\\"on\\\",\\\"off\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"tw_eInvoices\\\"]],[23,0,[\\\"constants\\\",\\\"togglesOnOff\\\",\\\"on\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"autoPrintInvoices\\\",[23,1,[]],\\\"tw_auto_print_invoices\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,6,[]],[23,4,[\\\"_data\\\",\\\"autoPrintInvoices\\\"]],\\\"on\\\",\\\"off\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"autoPrintInvoicesForShop\\\",[23,1,[]],\\\"tw_auto_print_invoices_for_shop\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,6,[]],[23,4,[\\\"_data\\\",\\\"autoPrintInvoicesForShop\\\"]],\\\"on\\\",\\\"off\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"autoIssueEInvoicesDaily\\\",[23,8,[]],\\\"tw_auto_issue_eInvoices\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,9,[]],false,true,[23,4,[\\\"_data\\\",\\\"autoIssueEInvoicesDaily\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"autoIssueEInvoicesDaily\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"autoIssueAfterDays\\\",[23,8,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,9,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-e-invoices-lists-auto-issue\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,[23,4,[\\\"_data\\\",\\\"autoIssueAfterDays\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@betaPath\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"beta.ecPay\\\",\\\"ecPay_eInvoice_group\\\",[23,1,[]],[23,5,[]],\\\"ecPay_eInvoice\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_ecPay.enabled\\\",[23,1,[]],\\\"enable\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,6,[]],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_ecPay\\\",\\\"enabled\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleEInvoice\\\"]],\\\"ecPay\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"tw_eInvoice_ecPay\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_ecPay.hasCustom\\\",[23,1,[]],\\\"custom\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,6,[]],true],null],false,true,[23,4,[\\\"_data\\\",\\\"tw_eInvoice_ecPay\\\",\\\"hasCustom\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"tw_eInvoice_ecPay\\\",\\\"hasCustom\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_ecPay.merchant\\\",[23,1,[]],\\\"ecPay_merchant\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,6,[]],true],null],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_ecPay\\\",\\\"merchant\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_ecPay.merchantID\\\",[23,1,[]],\\\"ecPay_merchant_id\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,6,[]],true],null],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_ecPay\\\",\\\"merchantID\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_ecPay.hashKey\\\",[23,1,[]],\\\"ecPay_hash_key\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,6,[]],true],null],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_ecPay\\\",\\\"hashKey\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_ecPay.hashIV\\\",[23,1,[]],\\\"ecPay_hash_iv\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,6,[]],true],null],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_ecPay\\\",\\\"hashIV\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@betaPath\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"beta.systemlead\\\",\\\"systemlead_group\\\",[23,1,[]],[23,5,[]],\\\"systemlead\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_systemlead.enabled\\\",[23,1,[]],\\\"enable\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,6,[]],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_systemlead\\\",\\\"enabled\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleEInvoice\\\"]],\\\"systemlead\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"tw_eInvoice_systemlead\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_systemlead.companyId\\\",[23,1,[]],\\\"systemlead_companyId\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,6,[]],true],null],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_systemlead\\\",\\\"companyId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_systemlead.salt\\\",[23,1,[]],\\\"systemlead_salt\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,6,[]],true],null],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_systemlead\\\",\\\"salt\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_systemlead.showZeroValueItems\\\",[23,1,[]],\\\"systemlead_showZeroValueItems\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,6,[]],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_systemlead\\\",\\\"showZeroValueItems\\\"]],true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"tw_eInvoices_numbers\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fas fa-list-ol\\\",\\\"tw_eInvoices_numbers\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"extensions/apps/tw/e-invoices/tracks-manager\\\",[],[[\\\"@context\\\",\\\"@header\\\",\\\"@onCancel\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_systemlead\\\",\\\"tw_eInvoices_numbers\\\",[23,3,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[\\\"tw_eInvoice_systemlead\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"tw_eInvoices_printer_app\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"printerDownloads\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[\\\"fas fa-download\\\",[23,2,[\\\"label\\\"]],\\\"u-margin-right-10\\\",[28,\\\"fn\\\",[[23,0,[\\\"openPrinterDownload\\\"]],[23,2,[\\\"url\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"tw_eInvoices_printer_app_desc\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_systemlead.remind\\\",[23,1,[]],\\\"systemlead_remind\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,6,[]],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_systemlead\\\",\\\"remind\\\"]],true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_systemlead.remindCount\\\",[23,1,[]],\\\"systemlead_remindCount\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,6,[]],[23,4,[\\\"_data\\\",\\\"tw_eInvoice_systemlead\\\",\\\"remindCount\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoices_notifyEmailAddress\\\",[23,1,[]],\\\"tw_eInvoices_notify_email_address\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,6,[]],2,[23,4,[\\\"_data\\\",\\\"tw_eInvoices_notifyEmailAddress\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"tw_eInvoice_systemlead\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"tw_eInvoicing_group\\\",[23,1,[]],[23,5,[]],\\\"tw_eInvoicing_print\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoices_print_allow_print\\\",[23,1,[]],\\\"tw_eInvoices_print_allow_print\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,6,[]],false,true,[23,4,[\\\"_data\\\",\\\"features\\\",\\\"extensions\\\",\\\"tw_eInvoices_print_allow_print\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"features\\\",\\\"extensions\\\",\\\"tw_eInvoices_print_allow_print\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoices_print_allow_shop\\\",[23,1,[]],\\\"tw_eInvoices_print_allow_shop\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,6,[]],false,true,[23,4,[\\\"_data\\\",\\\"features\\\",\\\"extensions\\\",\\\"tw_eInvoices_print_allow_shop\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoices_print_aesKey\\\",[23,1,[]],\\\"tw_eInvoices_print_aesKey\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"or\\\",[[23,6,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"features\\\",\\\"extensions\\\",\\\"tw_eInvoices_print_allow_print\\\"]],false],null]],null],[23,4,[\\\"_data\\\",\\\"features\\\",\\\"extensions\\\",\\\"tw_eInvoices_print_aesKey\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_eInvoice_print_custom_block\\\",[23,1,[]],\\\"tw_eInvoice_print_custom_block\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[\\\"_3rd-part__tw_eInvoice_print_custom_block_placeholder\\\",\\\"tw_eInvoice_print_custom_block_placeholder\\\",[23,6,[]],12,[23,4,[\\\"_data\\\",\\\"features\\\",\\\"extensions\\\",\\\"tw_eInvoice_print_custom_block\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/invoices-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/payments-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, R, RA, R_) {\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, _dec0, _dec1, _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 SettingsSettingsEditorPaymentsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('contacts'), _dec4 = Ember._action, _dec5 = Ember.computed('args.model._data.shopPaymentMethods.length'), _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember.computed('args.model._data.tw_payments_payuni.paymentMethods.@each'), _dec1 = Ember._action, _class = class SettingsSettingsEditorPaymentsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor3, this);\n      this.crud.addLists(this, ['paymentMethods/creditCards/banks', 'paymentMethods/installmentPeriods', 'paymentMethods/creditCards/banks', 'paymentMethods/shop', 'payments/linepay/lists/providers', 'extensions/apps/tw/payuni-payment-methods', {\n        name: 'workflows/lists/items/activities/templates',\n        appendPath: 'authorization'\n      }]);\n    }\n    setDefaultProvider(providerModel) {\n      const model = this.args.model || {};\n      if (RA.isNotNilOrEmpty(model)) {\n        model.setLinePayDefaultProvider(providerModel);\n      }\n    }\n    get shopPaymentMethodsDefaultsList() {\n      const paymentMethods = R_.dotPath('crud.lists.paymentMethods-shop')(this) || [];\n      const allowedPaymentMethods = this.args.model?._data?.shopPaymentMethods || [];\n      return R.filter(method => R.includes(method.getData('value'), allowedPaymentMethods), paymentMethods);\n    }\n    get ecPayInstallmentPeriods() {\n      const periods = this.crud.lists['paymentMethods-installmentPeriods'] || [];\n      const allowed = [3, 6, 12, 18, 24];\n      return R.filter(period => {\n        return R.includes(period?._data?.value)(allowed);\n      })(periods);\n    }\n    get payuniInstallmentPeriods() {\n      const periods = this.crud.lists['paymentMethods-installmentPeriods'] || [];\n      const allowed = [3, 6, 9, 12, 18, 24, 30];\n      return R.filter(period => {\n        return R.includes(period?._data?.value)(allowed);\n      })(periods);\n    }\n    setDefaultVirtualAccount(defaultVirtualAccountModel) {\n      // Reset virtual accounts\n      const settingsModel = this.args.model;\n      if (settingsModel) {\n        settingsModel.setBspDefaultVirtualAccount(defaultVirtualAccountModel);\n      }\n    }\n    selectBank(key, bank) {\n      const bankLabel = bank.getData('label');\n      const model = this.args.model;\n      model.setData(`${key}.bankLabel`, bankLabel);\n    }\n    toggleEcPayPayments() {\n      const model = this.args.model;\n      const enabledCreditCard = R.pathOr(false, ['_data', 'tw_payments_ecPay', 'enabledCreditCard'])(model);\n      const enabledCreditCardInstallments = R.pathOr(false, ['_data', 'tw_payments_ecPay', 'enabledCreditCardInstallments'])(model);\n      const enabledVirtualAccount = R.pathOr(false, ['_data', 'tw_payments_ecPay', 'enabledVirtualAccount'])(model);\n      model.setData('tw_payments_ecPay.enabled', enabledCreditCard || enabledCreditCardInstallments || enabledVirtualAccount);\n    }\n    setShopPaymentMethodsDefault(model = {}) {\n      const shopPaymentMethodsDefaultsList = this.shopPaymentMethodsDefaultsList || [];\n      const currentDefault = model.getData('shopPaymentMethodsDefault');\n      let resetDefault = false;\n      if (!R.includes(currentDefault, shopPaymentMethodsDefaultsList)) {\n        resetDefault = true;\n      }\n      if (!currentDefault) {\n        resetDefault = true;\n      }\n      if (resetDefault) {\n        const first = shopPaymentMethodsDefaultsList.get('firstObject');\n        if (first) {\n          model.setData('shopPaymentMethodsDefault', first.getData('value'));\n        } else {\n          model.setData('shopPaymentMethodsDefault', '');\n        }\n      }\n    }\n    get isPayuniCreditCardEnabled() {\n      const model = this.args.model;\n      const paymentMethods = model?._data?.tw_payments_payuni?.paymentMethods || [];\n      return R.includes('creditCard', paymentMethods);\n    }\n    validateShopVirtualAccountExpiryDays(value) {\n      if (Number.isNaN(Number(value))) {\n        const message = 'must be a number';\n        const translatedMessage = this.intl.t(message);\n        window.alert(translatedMessage);\n      }\n      const settingsModel = this.args.model;\n      const isPayuniEnabled = R.pathEq(['_data', 'tw_payments_payuni', 'enabled'], true)(settingsModel);\n      if (!isPayuniEnabled) {\n        return;\n      }\n      const payuniPaymentMethods = R.pathOr([], ['_data', 'tw_payments_payuni', 'paymentMethods'])(settingsModel);\n      if (!payuniPaymentMethods.includes('virtualAccount')) {\n        return;\n      }\n      const maxExpiryDays = 180;\n      if (Number(value) > maxExpiryDays) {\n        const message = 'the expiry date cannot be more than';\n        const translatedMessage = this.intl.t(message, {\n          date: maxExpiryDays\n        });\n        window.alert(translatedMessage);\n        settingsModel.setData('shopVirtualAccountExpiryDays', maxExpiryDays);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setDefaultProvider\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultProvider\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"shopPaymentMethodsDefaultsList\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"shopPaymentMethodsDefaultsList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaultVirtualAccount\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultVirtualAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectBank\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"selectBank\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleEcPayPayments\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleEcPayPayments\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setShopPaymentMethodsDefault\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setShopPaymentMethodsDefault\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isPayuniCreditCardEnabled\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"isPayuniCreditCardEnabled\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateShopVirtualAccountExpiryDays\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"validateShopVirtualAccountExpiryDays\"), _class.prototype), _class);\n});","define(\"client/pods/components/settings/settings-editor/payments-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GmP014gu\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponenet\\\",\\\"@currentStep\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"payments\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,10,[]],[23,9,[]],[23,4,[]],[23,8,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"bankingDetails_group\\\",[23,1,[]],[23,4,[]],\\\"banking details\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"bankingDetails\\\",[23,1,[]],\\\"banking details\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,[23,3,[\\\"_data\\\",\\\"bankingDetails\\\"]],[23,5,[]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"paymentSettings_group\\\",[23,1,[]],[23,4,[]],\\\"payment settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopPaymentMethods\\\",[23,7,[]],[23,1,[]],\\\"payment methods\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-shop\\\"]],\\\"_data.value\\\",true,[23,3,[\\\"_data\\\",\\\"shopPaymentMethods\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--horizontal\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-shop\\\"]],[23,3,[]],true,\\\"_data.value\\\",[28,\\\"fn\\\",[[23,0,[\\\"setShopPaymentMethodsDefault\\\"]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"setShopPaymentMethodsDefault\\\"]],[23,3,[]]],null],\\\"_data.shopPaymentMethods\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"shopPaymentMethods\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopPaymentMethodsDefault\\\",[23,7,[]],[23,1,[]],\\\"default payment method\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"shopPaymentMethodsDefaultsList\\\"]],true,[23,3,[\\\"_data\\\",\\\"shopPaymentMethodsDefault\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"defaultPaymentMethodsAllowInstallments\\\",[23,1,[]],\\\"enable installments by default\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"defaultPaymentMethodsAllowInstallments\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasCashPaymentFee\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"cashShopPaymentMethodFee\\\",[23,7,[]],[23,1,[]],\\\"cash payment fee\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@suffix\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"cashShopPaymentMethodFee\\\"]],[28,\\\"tt\\\",[\\\"amount\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopVirtualAccountAutoExpiry\\\",[23,7,[]],[23,1,[]],\\\"pay to account auto expiry\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"auto cancel expired atm orders\\\",false,true,[23,3,[\\\"_data\\\",\\\"shopVirtualAccountAutoExpiry\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopVirtualAccountExpiryDays\\\",[23,7,[]],[23,1,[]],\\\"expire after days\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\",\\\"@onInput\\\"],[[23,5,[]],true,[23,3,[\\\"_data\\\",\\\"shopVirtualAccountExpiryDays\\\"]],[23,0,[\\\"validateShopVirtualAccountExpiryDays\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"refundsSettings_group\\\",[23,1,[]],[23,4,[]],\\\"refunds settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"enableAuthorizationWorkflows\\\",[23,7,[]],[23,1,[]],\\\"refunds require authorization\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"enableAuthorizationWorkflows\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"enableAuthorizationWorkflows\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"defaultWorkflowsItemsActivities.authorization\\\",[23,7,[]],[23,1,[]],\\\"users to authorize refunds\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\"],[[23,5,[]],\\\"fas fa-search\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"workflows/lists/items/activities/templates\\\",\\\"workflows/items/activities/templates\\\",[28,\\\"hash\\\",null,[[\\\"defaultLabel\\\",\\\"resource\\\",\\\"showCompanyName\\\"],[\\\"authorize refund\\\",\\\"authorization\\\",true]]],true,true,\\\"tags\\\",[23,3,[]],true,\\\"_data._key\\\",[23,4,[]],false,\\\"_data.defaultWorkflowsItemsActivities.authorization\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,7,[]],[23,1,[]],[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-items-activities-templates--authorization\\\"]],\\\"_data._key\\\",false,[23,3,[\\\"_data\\\",\\\"defaultWorkflowsItemsActivities\\\",\\\"authorization\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@betaPath\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"beta.tapPay\\\",\\\"creditCard_tapPay_group\\\",[23,1,[]],\\\"credit card provider: tap pay\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay.enabled\\\",[23,1,[]],\\\"enable\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],false,true,[23,3,[\\\"_data\\\",\\\"creditCard_tapPay\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"creditCard_tapPay\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay.bank\\\",[23,1,[]],\\\"bank\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@onSelect\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-creditCards-banks\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"selectBank\\\"]],\\\"creditCard_tapPay\\\"],null],[23,3,[\\\"_data\\\",\\\"creditCard_tapPay\\\",\\\"bank\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay.merchantId\\\",[23,1,[]],\\\"tapPay_merchant_id\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],[23,3,[\\\"_data\\\",\\\"creditCard_tapPay\\\",\\\"merchantId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay.isBig5Encoding\\\",[23,1,[]],\\\"tapPay_isBig5\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],false,true,[23,3,[\\\"_data\\\",\\\"creditCard_tapPay\\\",\\\"isBig5Encoding\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay.threeDomainSecure\\\",[23,1,[]],\\\"tapPay_3ds\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],false,true,[23,3,[\\\"_data\\\",\\\"creditCard_tapPay\\\",\\\"threeDomainSecure\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@betaPath\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"beta.tapPay\\\",\\\"creditCard_tapPay_scheduledPayment_group\\\",[23,1,[]],[23,4,[]],\\\"credit card provider recurring: tap pay\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay_scheduledPayment.enabled\\\",[23,1,[]],\\\"enable\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],false,true,[23,3,[\\\"_data\\\",\\\"creditCard_tapPay_scheduledPayment\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"creditCard_tapPay_scheduledPayment\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay_scheduledPayment.bank\\\",[23,1,[]],\\\"bank\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@onSelect\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"paymentMethods-creditCards-banks\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"selectBank\\\"]],\\\"creditCard_tapPay_scheduledPayment\\\"],null],[23,3,[\\\"_data\\\",\\\"creditCard_tapPay_scheduledPayment\\\",\\\"bank\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay_scheduledPayment.merchantId\\\",[23,1,[]],\\\"tapPay_merchant_id\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],[23,3,[\\\"_data\\\",\\\"creditCard_tapPay_scheduledPayment\\\",\\\"merchantId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay_scheduledPayment.threeDomainSecure\\\",[23,1,[]],\\\"tapPay_3ds\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[true,false,true,[23,3,[\\\"_data\\\",\\\"creditCard_tapPay_scheduledPayment\\\",\\\"threeDomainSecure\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"creditCard_tapPay_scheduledPayment.isBig5Encoding\\\",[23,1,[]],\\\"tapPay_isBig5\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],false,true,[23,3,[\\\"_data\\\",\\\"creditCard_tapPay_scheduledPayment\\\",\\\"isBig5Encoding\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@betaPath\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"beta.linePay\\\",\\\"linePay_tapPay_group\\\",[23,1,[]],[23,4,[]],\\\"line pay provider: tap pay\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@required\\\",\\\"@tab\\\"],[\\\"linePayChannelId\\\",\\\"line\\\",[23,1,[]],\\\"channel id\\\",[23,3,[]],true,[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"linePayChannelId\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@required\\\",\\\"@tab\\\"],[\\\"linePayChannelSecret\\\",\\\"line\\\",[23,1,[]],\\\"channel secret\\\",[23,3,[]],true,[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"linePayChannelSecret\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"linePay_tapPay.enabled\\\",[23,1,[]],\\\"enable\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],false,true,[23,3,[\\\"_data\\\",\\\"linePay_tapPay\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"linePay_tapPay\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"linePay_tapPay.merchantId\\\",[23,1,[]],\\\"tapPay_merchant_id\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null],[23,5,[]],true],null],[23,3,[\\\"_data\\\",\\\"linePay_tapPay\\\",\\\"merchantId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@betaPath\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"beta.payuniSevenEleven\\\",\\\"payUni_payments\\\",[23,1,[]],\\\"payuni_payments\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_payuni.enabled\\\",[23,1,[]],\\\"enable\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_payuni.paymentMethods\\\",[23,1,[]],\\\"payment methods\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@multiSelect\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[true,\\\"list-selector__item list-selector__item--horizontal\\\",true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-payuni-payment-methods\\\"]],[23,3,[]],\\\"_data.tw_payments_payuni.paymentMethods\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_payuni.merchantId\\\",[23,1,[]],\\\"payuni_merchant_id\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"merchantId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_payuni.merchantKey\\\",[23,1,[]],\\\"payuni_hash_key\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"merchantKey\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_payuni.merchantIV\\\",[23,1,[]],\\\"payuni_hash_iv\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"merchantIV\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isPayuniCreditCardEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_payuni.allowRememberCard\\\",[23,1,[]],\\\"remember credit card\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"allowRememberCard\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isPayuniCreditCardEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null],[28,\\\"user/get\\\",[\\\"isBigOrdrOperator\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_payuni.threeDomainSecure\\\",[23,1,[]],\\\"tapPay_3ds\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"threeDomainSecure\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_payuni.enabledCreditCardInstallments\\\",[23,1,[]],\\\"payuni_installments\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@onToggle\\\",\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"toggleEcPayPayments\\\"]]],null],[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"enabledCreditCardInstallments\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"enabledCreditCardInstallments\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"tw_payments_payuni.periods\\\",[23,1,[]],\\\"installment periods\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@multiSelect\\\",\\\"@disabled\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\"],[false,[23,0,[\\\"payuniInstallmentPeriods\\\"]],\\\"list-selector--horizontal\\\",[23,3,[]],false,true,[23,5,[]],\\\"_data.value\\\",\\\"_data.tw_payments_payuni.periods\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"tw_payments_payuni.minRequiredAmountPerPeriod\\\",[23,1,[]],\\\"min amount required per period\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_payuni\\\",\\\"minRequiredAmountPerPeriod\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@betaPath\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"beta.bsp\\\",\\\"tw_payments_bsp_group\\\",[23,1,[]],[23,4,[]],\\\"bsp_payments\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_bsp.enabledVirtualAccount\\\",[23,1,[]],\\\"bsp_virtualAccount\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"tw_payments_bsp\\\",\\\"enabledVirtualAccount\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"tw_payments_bsp\\\",\\\"enabledVirtualAccount\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_bsp.defaultVirtualAccount\\\",[23,1,[]],\\\"virtual account\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@list\\\",\\\"@translate\\\"],[[23,5,[]],\\\"fas fa-money-check-alt\\\",[23,3,[\\\"_data\\\",\\\"tw_payments_bsp\\\",\\\"defaultVirtualAccount\\\"]],[23,3,[\\\"_data\\\",\\\"tw_payments_bsp\\\",\\\"virtualAccounts\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@onDeselect\\\",\\\"@onSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"settings\\\",\\\"bsp/virtual-account-editor\\\",[28,\\\"hash\\\",null,[[\\\"onCloseDialogActionListSelector\\\"],[[23,2,[]]]]],false,false,\\\"virtual account\\\",[23,3,[\\\"_data\\\",\\\"tw_payments_bsp\\\",\\\"virtualAccounts\\\"]],[23,3,[]],false,[28,\\\"fn\\\",[[23,0,[\\\"setDefaultVirtualAccount\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"setDefaultVirtualAccount\\\"]]],null],\\\"_data.merchantId\\\",\\\"_data.merchantId\\\",[23,4,[]],false,\\\"_data.tw_payments_bsp.defaultVirtualAccount\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@betaPath\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"beta.ecPay\\\",\\\"tw_payments_ecPay_group\\\",[23,1,[]],[23,4,[]],\\\"ecPay_payments\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_ecPay.enabledCreditCard\\\",[23,1,[]],\\\"ecPay_creditCard\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"toggleEcPayPayments\\\"]]],null],false,true,[23,3,[\\\"_data\\\",\\\"tw_payments_ecPay\\\",\\\"enabledCreditCard\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_ecPay.enabledVirtualAccount\\\",[23,1,[]],\\\"ecPay_virtualAccount\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"toggleEcPayPayments\\\"]]],null],false,true,[23,3,[\\\"_data\\\",\\\"tw_payments_ecPay\\\",\\\"enabledVirtualAccount\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_ecPay.enabledCreditCardInstallments\\\",[23,1,[]],\\\"ecPay_installments\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@onToggle\\\",\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"toggleEcPayPayments\\\"]]],null],[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"tw_payments_ecPay\\\",\\\"enabledCreditCardInstallments\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"tw_payments_ecPay\\\",\\\"enabledCreditCardInstallments\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@tab\\\"],[\\\"tw_payments_ecPay.periods\\\",[23,1,[]],\\\"installment periods\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@multiSelect\\\",\\\"@disabled\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\"],[false,[23,0,[\\\"ecPayInstallmentPeriods\\\"]],\\\"list-selector--horizontal\\\",[23,3,[]],false,true,[23,5,[]],\\\"_data.value\\\",\\\"_data.tw_payments_ecPay.periods\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"tw_payments_ecPay.minRequiredAmountPerPeriod\\\",[23,1,[]],\\\"min amount required per period\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_ecPay\\\",\\\"minRequiredAmountPerPeriod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"tw_payments_ecPay\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_ecPay.merchantId\\\",[23,1,[]],\\\"ecPay_merchant_id\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_ecPay\\\",\\\"merchantId\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_ecPay.hashKey\\\",[23,1,[]],\\\"ecPay_hash_key\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_ecPay\\\",\\\"hashKey\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"tw_payments_ecPay.hashIv\\\",[23,1,[]],\\\"ecPay_hash_iv\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,5,[]],[23,3,[\\\"_data\\\",\\\"tw_payments_ecPay\\\",\\\"hashIv\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/payments-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/products-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SettingsSettingsEditorProductsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember.inject.service('channels/shop/campaigns'), _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class SettingsSettingsEditorProductsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"campaignFilters\", _descriptor4, this);\n      this.crud.addLists(this, ['products/lists/types', 'products/lists/tracking', 'settings/rounding', 'units/weight', 'units/dimensions']);\n      const campaignFilters = this.campaignsService.getSearchFilters();\n      this.campaignFilters = campaignFilters;\n    }\n    resetAlmostEmptyQtyWarningThreshold() {\n      const model = this.args.model;\n      model.setData('almostEmptyQtyWarningThreshold', '');\n      model.setData('almostEmptyQtyWarningShopCustomText', '');\n      model.setData('almostPreOrderQtyWarningShopCustomText', '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"campaignFilters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"resetAlmostEmptyQtyWarningThreshold\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"resetAlmostEmptyQtyWarningThreshold\"), _class.prototype), _class);\n});","define(\"client/pods/components/settings/settings-editor/products-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"C70Gs9YO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@isDisabled\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,9,[]],[23,8,[]],[23,4,[]],[23,7,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"productSettings_group\\\",[23,4,[]],[23,1,[]],\\\"product settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"inventoryType\\\",[23,1,[]],\\\"product type\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,6,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-types\\\"]],true,[23,3,[\\\"_data\\\",\\\"inventoryType\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"inventoryTracking\\\",[23,1,[]],\\\"track inventory\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,6,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tracking\\\"]],true,[23,3,[\\\"_data\\\",\\\"inventoryTracking\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"hideVariantChildrenInProductsSearch\\\",\\\"only show variant parents in products search\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"hideVariantChildrenInProductsSearch\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"productsVariantsNameSeparator\\\",\\\"products variants name separator\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"productsVariantsNameSeparator\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"productsVariantsCodeSeparator\\\",\\\"products variants code separator\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"productsVariantsCodeSeparator\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"roundingCurrency\\\",[23,1,[]],\\\"currency decimal rounding\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@value\\\"],[[23,6,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-rounding\\\"]],[23,3,[\\\"_data\\\",\\\"roundingCurrency\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"roundingInventoryQty\\\",[23,1,[]],\\\"product decimal places\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,6,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-rounding\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"roundingInventoryQty\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"roundingInventoryPrice\\\",[23,1,[]],\\\"product price rounding\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,6,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-rounding\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"roundingInventoryPrice\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@hasSectionWrapper\\\",\\\"@disabled\\\",\\\"@closeOnOverlayClick\\\"],[\\\"reset inventory data\\\",true,[23,6,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"resetInventoryDate\\\",\\\"reset inventory date\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isDatePicker\\\",\\\"@readonly\\\",\\\"@placeholder\\\",\\\"@dateZ\\\",\\\"@value\\\"],[true,[23,5,[]],\\\"reset inventory date\\\",[23,0,[\\\"inventoryResetDateZ\\\"]],[23,0,[\\\"resetInventoryDate\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[true,[28,\\\"or\\\",[[23,5,[]],[28,\\\"is-empty\\\",[[23,0,[\\\"inventoryResetDateZ\\\"]]],null]],null],\\\"reset inventory data\\\",[28,\\\"perform\\\",[[23,0,[\\\"productService\\\",\\\"resetInventoryDataTask\\\"]],[28,\\\"hash\\\",null,[[\\\"inventoryResetDateZ\\\"],[[23,0,[\\\"inventoryResetDateZ\\\"]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"settings/is-beta-allowed\\\",[],[[\\\"@betaPath\\\"],[\\\"beta.almostEmptyQtyWarningForProducts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"productInventory_group\\\",[23,1,[]],[23,4,[]],\\\"inventory\\\"]],{\\\"statements\\\":[[0,\\\"  \\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"showAlmostEmptyQtyWarningForProducts\\\",\\\"show almost empty qty warning for products\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenFalse\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"showAlmostEmptyQtyWarningForProducts\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetAlmostEmptyQtyWarningThreshold\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"showAlmostEmptyQtyWarningForProducts\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"almostEmptyQtyWarningThreshold\\\",\\\"almost empty qty warning threshold\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@min\\\",\\\"@minValue\\\",\\\"@step\\\",\\\"@type\\\",\\\"@isInt\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"1\\\",1,\\\"1\\\",\\\"number\\\",true,[23,5,[]],[23,3,[\\\"_data\\\",\\\"almostEmptyQtyWarningThreshold\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"almostEmptyQtyWarningShopCustomText\\\",\\\"almost empty qty warning shop custom text\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"almostEmptyQtyWarningShopCustomText\\\"]],[28,\\\"tt\\\",[\\\"almostEmptyQtyWarningShopCustomText_placeholder\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"almostPreOrderQtyWarningShopCustomText\\\",\\\"almost pre order qty warning shop custom text\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"almostPreOrderQtyWarningShopCustomText\\\"]],[28,\\\"tt\\\",[\\\"almostPreOrderQtyWarningShopCustomText_placeholder\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"productSize_group\\\",[23,1,[]],[23,4,[]],\\\"product size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"weightUnit\\\",[23,1,[]],\\\"default weight unit\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.value\\\",[23,3,[\\\"_data\\\",\\\"weightUnit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units-weight\\\"]],true,true,[23,3,[\\\"_data\\\",\\\"weightUnit\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"packagingDimensionsUnit\\\",[23,1,[]],\\\"packaging_dimensions_unit_default\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.value\\\",[23,3,[\\\"_data\\\",\\\"packagingDimensionsUnit\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"units-dimensions\\\"]],true,true,[23,3,[\\\"_data\\\",\\\"packagingDimensionsUnit\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"productShop_group\\\",[23,1,[]],[23,4,[]],\\\"shop settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isAutoAddNewProductToShop\\\",\\\"auto add new product to website\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"isAutoAddNewProductToShop\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"isAutoAddNewProductToShop\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"autoAddNewProductToShopKey\\\",\\\"shop\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@isRequired\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@filters\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,false,[23,0,[\\\"campaignFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,0,[\\\"campaignFilters\\\"]],[23,3,[\\\"_data\\\",\\\"autoAddNewProductToShop\\\"]],[23,3,[\\\"_data\\\",\\\"autoAddNewProductToShopKey\\\"]],[23,5,[]],\\\"channels/shop/campaigns/search-results\\\",[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"filters\\\",\\\"adapterName\\\",\\\"component\\\"],[[23,3,[\\\"_data\\\",\\\"autoAddNewProductToShop\\\"]],[23,0,[\\\"campaignFilters\\\"]],\\\"channels/shop/campaigns\\\",[23,0,[]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPathFromModelPath\\\"]],[23,3,[]],\\\"_data.autoAddNewProductToShopKey\\\",\\\"_data._key\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPath\\\"]],[23,3,[]],\\\"_data.autoAddNewProductToShopKey\\\",\\\"\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/products-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/shipping-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SettingsSettingsEditorShippingEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('date'), _dec4 = Ember._action, _class = class SettingsSettingsEditorShippingEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor3, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/locations', 'channels/shop/shipping-zones/all', 'extensions/apps/tw/convenience-stores/lists/brands', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'channels/shop/shipping-zones/lists/rate-method', 'channels/shop/shipping-zones/lists/rate-method/free-shipping', 'extensions/apps/tw/hct/print/waybills', 'filters/count', 'dispatch/lists/dispatch-sort', 'dispatch/lists/dispatch-sort-direction', 'extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-b2c', 'extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-c2c']);\n    }\n    openTab() {\n      this.tabsManager.openTab('left', {\n        component: 'channels/shop/shipping-zones/tab-container',\n        title: 'shipping zones'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openTab\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"openTab\"), _class.prototype), _class);\n});","define(\"client/pods/components/settings/settings-editor/shipping-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+j9ztFXT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@currentStep\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@isReadonly\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[\\\"shipping\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,8,[]],[23,7,[]],[23,4,[]],[23,5,[]]]]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponent\\\"],[\\\"shippingMethodsSettings_group\\\",[23,1,[]],[23,4,[]],\\\"default shipping settings\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[\\\"shopAllowShipping\\\",[23,2,[]],[23,1,[]],\\\"allow shipping\\\",[23,3,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,6,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"shopAllowShipping\\\"]]],null]],null],false,true,[23,3,[\\\"_data\\\",\\\"shopAllowShipping\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"shopAllowShipping\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponent\\\"],[\\\"shippingMethodZones_group\\\",[23,1,[]],[23,4,[]],\\\"default shipping fee using zones\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@wizardContainerComponent\\\"],[\\\"defaultShippingZones\\\",[23,1,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shipping fee type\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"zones fee\\\"],null]],null],[23,3,[]],false,[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@list\\\"],[[23,6,[]],\\\"fas fa-plus\\\",\\\"set shop default shipping zones\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-all\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@label\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionClassNames\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@suffixKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[true,true,\\\"regions\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-all\\\"]],[23,3,[]],true,\\\"has-text-weight-bold\\\",\\\"_data.name\\\",\\\"_data.zoneId\\\",\\\"_data.description\\\",[23,4,[]],false,\\\"_data.defaultShippingZonesIds\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@wizardContainerComponent\\\"],[\\\"defaultShippingZonesIds\\\",[23,1,[]],[23,3,[]],[23,4,[]],false,[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-all\\\"]],\\\"_data.name\\\",\\\"_data.zoneId\\\",false,[23,3,[\\\"_data\\\",\\\"defaultShippingZonesIds\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@model\\\",\\\"@context\\\",\\\"@label\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[[23,1,[]],[23,3,[]],\\\"shippingRateMethod\\\",\\\"shipping rate method\\\",[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-shipping-zones-lists-rate-method\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,6,[]],[23,6,[]],[23,3,[\\\"_data\\\",\\\"shippingRateMethod\\\"]],true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@class\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-margin-left-5\\\",\\\"fas fa-truck\\\",\\\"set shipping zones\\\",[28,\\\"fn\\\",[[23,0,[\\\"openTab\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponent\\\"],[\\\"shippingMethodFlat_group\\\",[23,1,[]],[23,4,[]],\\\"default flat shipping fee\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@wizardContainerComponent\\\"],[\\\"shippingFee\\\",[23,2,[]],[23,1,[]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"shipping fee type\\\"],null],\\\": \\\",[28,\\\"tt\\\",[\\\"flat fee\\\"],null]],null],[23,3,[]],[23,4,[]],false,[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,6,[]],[28,\\\"tt\\\",[\\\"set as shop default\\\"],null],[23,3,[\\\"_data\\\",\\\"shippingFee\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[\\\"shippingFeeAlwaysCharge\\\",[23,2,[]],[23,1,[]],\\\"always charge shipping fee\\\",[23,3,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,6,[]],[23,3,[\\\"_data\\\",\\\"shippingFeeAlwaysCharge\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"_data\\\",\\\"shippingFeeAlwaysCharge\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[\\\"shippingFeeCondition\\\",[23,2,[]],[23,1,[]],\\\"free shipping for orders greater and equal to\\\",[23,3,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,6,[]],[23,3,[\\\"_data\\\",\\\"shippingFeeCondition\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponent\\\"],[\\\"pickupSettings_group\\\",[23,1,[]],[23,4,[]],\\\"default pickup settings\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[\\\"shopAllowPickup\\\",[23,2,[]],[23,1,[]],\\\"allow pick up\\\",[23,3,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,6,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"shopAllowPickup\\\"]]],null]],null],false,true,[23,3,[\\\"_data\\\",\\\"shopAllowPickup\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"shopAllowPickup\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[\\\"pickupLocations\\\",[23,2,[]],[23,1,[]],\\\"pick up locations\\\",[23,3,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,6,[]],\\\"fas fa-map-marker-alt\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"channels/shop/campaigns/lists/locations\\\",\\\"channels/shop/campaigns/locations-editor\\\",true,true,\\\"addresses\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]],[23,3,[]],true,\\\"_data._key\\\",[23,4,[]],false,\\\"_data.shopPickupLocations\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]],\\\"_data._key\\\",false,[23,3,[\\\"_data\\\",\\\"shopPickupLocations\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"tCat_group\\\",[23,1,[]],\\\"default t-cat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"t-cat print type\\\",[23,9,[]],\\\"defaultTCatTransporterWaybillPrintType\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-waybill-print-type\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,6,[]],[23,6,[]],[23,3,[\\\"_data\\\",\\\"defaultTCatTransporterWaybillPrintType\\\"]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"hct_group\\\",[23,1,[]],\\\"default hct\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"waybills per page\\\",[23,9,[]],\\\"hctWaybillsPerPage\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-hct-print-waybills\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,6,[]],[23,6,[]],[23,3,[\\\"_data\\\",\\\"hctWaybillsPerPage\\\"]],false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"payuniSevenEleven_group\\\",[23,1,[]],\\\"default payuni-seven-eleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"waybills per page c2c\\\",[23,9,[]],\\\"tw_shipping_payuni.sevenEleven.waybillsPerPageC2C\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-c2c\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,6,[]],[23,6,[]],[23,3,[\\\"_data\\\",\\\"tw_shipping_payuni\\\",\\\"sevenEleven\\\",\\\"waybillsPerPageC2C\\\"]],false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"waybills per page b2c\\\",[23,9,[]],\\\"tw_shipping_payuni.sevenEleven.waybillsPerPageB2C\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-b2c\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,6,[]],[23,6,[]],[23,3,[\\\"_data\\\",\\\"tw_shipping_payuni\\\",\\\"sevenEleven\\\",\\\"waybillsPerPageB2C\\\"]],false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/shipping-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/shop-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 SettingsSettingsEditorShopEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class SettingsSettingsEditorShopEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/automations/shipping-behavior', 'channels/shop/campaigns/lists/cartBtnStyle', 'channels/shop/campaigns/lists/commission-types', 'channels/shop/campaigns/lists/limit-adjust-types', 'channels/shop/campaigns/lists/products-filters', 'channels/shop/campaigns/lists/productsImagesRatio', 'channels/shop/campaigns/lists/productsImagesSize', 'channels/shop/campaigns/lists/productsNameFontSize', 'channels/shop/campaigns/lists/productsNameLineCount', 'channels/shop/campaigns/lists/show-customizations-price-type', 'channels/shop/campaigns/lists/review-steps', 'channels/shop/campaigns/lists/variantSelectorStyle', 'channels/shop/campaigns/statuses', 'periods', 'products/lists/bigordrProductsPerRow', 'products/lists/onSaleTagDisplayPosition', 'products/lists/onSaleTagDisplayStyle', 'recurring/discounts', 'recurring/discounts', 'recurring/shipping', 'settings/checkout-date-method', 'settings/imagesHoverFilter', 'settings/imagesHoverTransform', 'settings/salesInvoicePanelOptions', 'blogs/lists/font-alignment', {\n        name: 'workflows/lists/items/activities/templates',\n        appendPath: 'authorization'\n      }]);\n    }\n    afterLoadLists() {\n      const model = this.args.model;\n      const selectedCommissionBaseCostMethod = model.getData('selectedCommissionBaseCostMethod');\n      const isCommissionsUsingAverage = model.getData('isCommissionsUsingAverage');\n      const isCommissionsCalculatedByExclAmt = model.getData('isCommissionsCalculatedByExclAmt');\n      const isCommissionsUsingSetChild = model.getData('isCommissionsUsingSetChild');\n      const isCommissionsHasAdjustedShippingFee = model.getData('isCommissionsHasAdjustedShippingFee');\n      if (RA.isNilOrEmpty(selectedCommissionBaseCostMethod)) {\n        model.setData('selectedCommissionBaseCostMethod', 'normalPercent');\n      }\n      if (RA.isNilOrEmpty(isCommissionsUsingAverage)) {\n        model.setData('isCommissionsUsingAverage', true);\n      }\n      if (RA.isNilOrEmpty(isCommissionsCalculatedByExclAmt)) {\n        model.setData('isCommissionsCalculatedByExclAmt', true);\n      }\n      if (RA.isNilOrEmpty(isCommissionsUsingSetChild)) {\n        model.setData('isCommissionsUsingSetChild', false);\n      }\n      if (RA.isNilOrEmpty(isCommissionsHasAdjustedShippingFee)) {\n        model.setData('isCommissionsHasAdjustedShippingFee', false);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterLoadLists\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"afterLoadLists\"), _class.prototype), _class);\n});","define(\"client/pods/components/settings/settings-editor/shop-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qeht5SV0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@currentStep\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"shop\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,8,[]],[23,7,[]],[23,4,[]],[23,6,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"basic_group\\\",[23,1,[]],[23,4,[]],\\\"basic settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isAllowedLinkMember\\\",[23,2,[]],[23,1,[]],\\\"auto link member\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"isAllowedLinkMember\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopHideCampaignHeader\\\",[23,2,[]],[23,1,[]],\\\"hide shop description for all shops\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"shopHideCampaignHeader\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"blackListedContactMsg\\\",[23,2,[]],[23,1,[]],\\\"custom message displayed to blacklisted members during checkout\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@disabled\\\",\\\"@placeholder\\\",\\\"@value\\\"],[[23,5,[]],\\\"blackListedContactMsgDefault\\\",[23,3,[\\\"_data\\\",\\\"blackListedContactMsg\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"productDisplay_group\\\",[23,1,[]],[23,4,[]],\\\"product display\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopGroupByTags\\\",[23,2,[]],[23,1,[]],\\\"product grouping\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-checkbox\\\",[],[[\\\"@disabled\\\",\\\"@onToggleProperty\\\",\\\"@value\\\"],[[23,5,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,3,[\\\"_data\\\",\\\"shopGroupByTags\\\"]]],null]],null],[23,3,[\\\"_data\\\",\\\"shopGroupByTags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"group by tags\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopProductsSort\\\",[23,2,[]],[23,1,[]],\\\"products sort by\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-products-filters\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"shopProductsSort\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],\\\"showCustomizationsPriceType\\\",\\\"customizations price behavior\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-show-customizations-price-type\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"showCustomizationsPriceType\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"productsPerRow\\\",[23,2,[]],[23,1,[]],\\\"display items per row\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-bigordrProductsPerRow\\\"]],false,[23,3,[\\\"_data\\\",\\\"productsPerRow\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopProductsImagesRatio\\\",[23,2,[]],[23,1,[]],\\\"product image ratio\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesRatio\\\"]],true,[23,3,[\\\"_data\\\",\\\"shopProductsImagesRatio\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"productsImagesSize\\\",[23,2,[]],[23,1,[]],\\\"products images size\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesSize\\\"]],true,[23,3,[\\\"_data\\\",\\\"productsImagesSize\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"imagesHoverFilter\\\",[23,1,[]],\\\"images hover brightness effect\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-imagesHoverFilter\\\"]],false,[23,3,[\\\"_data\\\",\\\"imagesHoverFilter\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"imagesHoverTransform\\\",[23,1,[]],\\\"images hover zoom effect\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-imagesHoverTransform\\\"]],true,[23,3,[\\\"_data\\\",\\\"imagesHoverTransform\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"productsNameFontSize\\\",[23,1,[]],\\\"font size for product name\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsNameFontSize\\\"]],true,[23,3,[\\\"_data\\\",\\\"productsNameFontSize\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.hasCustomProductsDisplaySettings\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"hasCustomLimitedQtyPerPersonText\\\",[23,1,[]],\\\"has custom limited qty per person text\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"hasCustomLimitedQtyPerPersonText\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"hasCustomLimitedQtyPerPersonText\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"customLimitedQtyPerPersonText\\\",[23,1,[]],\\\"custom limited qty per person text\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"limited qty per person\\\",[23,5,[]],[23,3,[\\\"_data\\\",\\\"customLimitedQtyPerPersonText\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"showBackToShoppingButton\\\",[23,1,[]],\\\"show back to shopping button\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"showBackToShoppingButton\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"showOnSaleTag\\\",[23,1,[]],\\\"show on sale tag\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"showOnSaleTag\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"showOnSaleTag\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"onSaleTagDisplayPosition\\\",[23,1,[]],\\\"on sale tag display position\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-onSaleTagDisplayPosition\\\"]],true,[23,3,[\\\"_data\\\",\\\"onSaleTagDisplayPosition\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"productsNameLineCount\\\",[23,1,[]],\\\"number of lines for product name\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsNameLineCount\\\"]],false,[23,3,[\\\"_data\\\",\\\"productsNameLineCount\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"showItemCode\\\",[23,1,[]],\\\"show item code\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"showItemCode\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"websiteBlogsImagesRatio\\\",[23,2,[]],[23,1,[]],\\\"blogs images ratio\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesRatio\\\"]],true,[23,3,[\\\"_data\\\",\\\"websiteBlogsImagesRatio\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"variantSelectorStyle\\\",[23,2,[]],[23,1,[]],\\\"variant selector style\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-variantSelectorStyle\\\"]],[23,4,[]],true,[23,3,[\\\"_data\\\",\\\"variantSelectorStyle\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"cartBtnStyle\\\",[23,1,[]],\\\"cart button style\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-cartBtnStyle\\\"]],[23,4,[]],true,[23,3,[\\\"_data\\\",\\\"cartBtnStyle\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"adjustCampaignsDetailsLimitQtyBy\\\",[23,1,[]],\\\"adjust limited qty by\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]],[23,5,[]]],null],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-limit-adjust-types\\\"]],true,[23,3,[\\\"_data\\\",\\\"adjustCampaignsDetailsLimitQtyBy\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"beta.useInventoryAsLimitedQty\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"useInventoryAsLimitedQty\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,0,[\\\"updateBulkEditingTask\\\",\\\"isRunning\\\"]],[23,5,[]]],null],\\\"use inventory qty as product limits defaults\\\",[23,3,[\\\"_data\\\",\\\"useInventoryAsLimitedQty\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"pasteAsPlainText\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"paste as plain text\\\",[23,3,[\\\"_data\\\",\\\"pasteAsPlainText\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"image alignment\\\",\\\"froalaImageAlignment\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-font-alignment\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,5,[]],true,[23,3,[\\\"_data\\\",\\\"froalaImageAlignment\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"allowProductSync_group\\\",[23,1,[]],[23,4,[]],\\\"sync product properties\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isAllowProductSync\\\",\\\"allow sync product properties\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"isAllowProductSync\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"defaultShopPriceFilter_group\\\",[23,1,[]],[23,4,[]],\\\"default shop price filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"enableShopPriceFilter\\\",[23,2,[]],[23,1,[]],\\\"enable shop price filter\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"enableShopPriceFilter\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"enableShopPriceFilter\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"channels/shop/campaigns/price-filter\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\"],[[23,5,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"checkoutSettings_group\\\",[23,1,[]],[23,4,[]],\\\"checkout settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopSortOrderDetailsByIndex\\\",[23,2,[]],[23,1,[]],\\\"checkout\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"sort customer order using shop product index\\\",[23,3,[\\\"_data\\\",\\\"shopSortOrderDetailsByIndex\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"expectedDateMethod\\\",[23,1,[]],\\\"checkout page on select dispatch or arrival date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-checkout-date-method\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",true,true,[23,3,[\\\"_data\\\",\\\"expectedDateMethod\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopShowEnterPromoCode\\\",[23,2,[]],[23,1,[]],\\\"promo code\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[23,5,[]],\\\"allow customers to see enter promo code on checkout\\\",[23,3,[\\\"_data\\\",\\\"shopShowEnterPromoCode\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopCheckoutConvenienceStoreDescription\\\",[23,2,[]],[23,1,[]],\\\"checkout convenience store description\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@translatedPlaceholder\\\"],[true,[23,3,[\\\"_data\\\",\\\"shopCheckoutConvenienceStoreDescription\\\"]],[23,5,[]],[23,4,[]],[28,\\\"tt\\\",[\\\"optional_will_use_default\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopCheckoutSummaryDescription\\\",[23,2,[]],[23,1,[]],\\\"checkout summary description\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,[23,3,[\\\"_data\\\",\\\"shopCheckoutSummaryDescription\\\"]],[23,5,[]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopCheckoutDetailsDescription\\\",[23,2,[]],[23,1,[]],\\\"checkout details description\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,[23,3,[\\\"_data\\\",\\\"shopCheckoutDetailsDescription\\\"]],[23,5,[]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopCheckoutPaymentDescription\\\",[23,2,[]],[23,1,[]],\\\"checkout payment description\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,[23,3,[\\\"_data\\\",\\\"shopCheckoutPaymentDescription\\\"]],[23,5,[]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"successOrderDescription\\\",[23,1,[]],\\\"success order description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@tab\\\"],[true,[23,3,[\\\"_data\\\",\\\"successOrderDescription\\\"]],[23,5,[]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"shopCheckoutNoteMaxCharacterLimit\\\",[23,1,[]],\\\"shop checkout note character limit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"shopCheckoutNoteMaxCharacterLimit\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.shopCheckoutDisallowNote\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"shopCheckoutDisallowNote\\\",[23,1,[]],\\\"disallow notes on checkout\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"shopCheckoutDisallowNote\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.shopCheckoutDisallowSubscribeToNewsletter\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"shopCheckoutDisallowSubscribeToNewsletter\\\",[23,1,[]],\\\"disallow subscribe to newsletter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"shopCheckoutDisallowSubscribeToNewsletter\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"features.shopCheckoutDisallowUseAlternateAddress\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"shopCheckoutDisallowUseAlternateAddress\\\",[23,1,[]],\\\"disallow use different delivery info\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"shopCheckoutDisallowUseAlternateAddress\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"commissionsSettings_group\\\",[23,1,[]],[23,4,[]],\\\"commissions settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"selectedCommissionBaseCostMethod\\\",[23,2,[]],[23,1,[]],\\\"commissions calculation method\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,5,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-commission-types\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",true,[23,3,[\\\"_data\\\",\\\"selectedCommissionBaseCostMethod\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isCommissionsUsingAverage\\\",[23,2,[]],[23,1,[]],\\\"use average prices for each product\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[true,false,true,[23,3,[\\\"_data\\\",\\\"isCommissionsUsingAverage\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isCommissionsCalculatedByExclAmt\\\",[23,2,[]],[23,1,[]],\\\"use exclusive selling price to calculate commission\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"isCommissionsCalculatedByExclAmt\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isCommissionsUsingSetChild\\\",[23,2,[]],[23,1,[]],\\\"use product set children\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"isCommissionsUsingSetChild\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isCommissionsHasAdjustedShippingFee\\\",[23,2,[]],[23,1,[]],\\\"use shipping fee adjustment\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"isCommissionsHasAdjustedShippingFee\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"recurringSettings_group\\\",[23,1,[]],[23,4,[]],\\\"recurring settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"recurringAgreement\\\",[23,2,[]],[23,1,[]],\\\"stereotyped contract content\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,5,[]],5,[23,3,[\\\"_data\\\",\\\"recurringAgreement\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"campaignEndedSettings_group\\\",[23,1,[]],[23,4,[]],\\\"campaign ended settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopExpiredRedirectUrl\\\",[23,2,[]],[23,1,[]],\\\"auto redirect to url when campaign has ended\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@value\\\"],[\\\"u-input--large\\\",[23,5,[]],[23,3,[\\\"_data\\\",\\\"shopExpiredRedirectUrl\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"shopCampaignExpiredTemplate\\\",[23,2,[]],[23,1,[]],\\\"message to display when campaign has ended\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@content\\\",\\\"@hasFileBrowser\\\",\\\"@hasVideoBrowser\\\",\\\"@isReadonly\\\",\\\"@options\\\",\\\"@tab\\\"],[[23,3,[\\\"_data\\\",\\\"shopCampaignExpiredTemplate\\\"]],true,true,[23,5,[]],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],[23,4,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"customerService_group\\\",[23,1,[]],[23,4,[]],\\\"customer service\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"allowOrderMessages\\\",[23,2,[]],[23,1,[]],\\\"allow order messages\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,5,[]],false,true,[23,3,[\\\"_data\\\",\\\"allowOrderMessages\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"allowOrderMessages\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@currentStep\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"orderMessagesEmailCopyTo\\\",[23,2,[]],[23,1,[]],\\\"send a copy of order messages to addresses\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,5,[]],2,[23,3,[\\\"_data\\\",\\\"orderMessagesEmailCopyTo\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"faqs_group\\\",[23,1,[]],[23,4,[]],\\\"faqs\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"faqs\\\",[],[[\\\"@adapterName\\\",\\\"@appendPath\\\",\\\"@isDisabled\\\",\\\"@isReadonly\\\",\\\"@lists\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@paginationIsFooter\\\"],[\\\"channels/shop/campaigns\\\",\\\"/update-settings-faqs\\\",[23,9,[]],[23,5,[]],[23,0,[\\\"lists\\\"]],[23,3,[]],[23,4,[]],false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isMenu\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"seo_group\\\",[23,1,[]],true,[23,4,[]],\\\"seo\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"isAllowToCrawl\\\",[23,1,[]],\\\"default value for allow seo for new shops\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"isAllowToCrawl\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isMenu\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"automations_group\\\",[23,1,[]],true,[23,4,[]],\\\"automations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"automationsShippingBehavior\\\",[23,1,[]],\\\"automations shipping behavior\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@disabled\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-automations-shipping-behavior\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"automationsShippingBehavior\\\"]],[23,5,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isMenu\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"deliveryDatesDisplay_group\\\",[23,1,[]],true,[23,4,[]],\\\"order-activity-settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"salesInvoicesDatesColumns\\\",[23,1,[]],\\\"order activity showing options\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@itemClassNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@disabled\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-salesInvoicePanelOptions\\\"]],\\\"list-selector\\\",[23,3,[]],\\\"_data.salesInvoicesDatesColumns\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true,true,[23,5,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isMenu\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"imagesUpload_group\\\",[23,1,[]],true,[23,4,[]],\\\"upload images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"imagesAutoSelectOnUpload\\\",[23,1,[]],\\\"auto select images when uploading\\\",[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"imagesAutoSelectOnUpload\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/shop-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/social-editor/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, R, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/commission-types', 'channels/shop/campaigns/lists/review-steps', 'channels/shop/campaigns/lists/products-filters', 'channels/shop/campaigns/lists/limit-adjust-types', 'channels/shop/campaigns/automations/shipping-behavior', 'settings/checkout-date-method', 'settings/imagesHoverFilter', 'settings/imagesHoverTransform', 'recurring/discounts', 'recurring/shipping', 'periods', {\n        name: 'workflows/lists/items/activities/templates',\n        appendPath: 'authorization'\n      }]);\n    },\n    afterLoadLists() {\n      const model = this.model;\n      const selectedCommissionBaseCostMethod = model.getData('selectedCommissionBaseCostMethod');\n      const isCommissionsUsingAverage = model.getData('isCommissionsUsingAverage');\n      const isCommissionsCalculatedByExclAmt = model.getData('isCommissionsCalculatedByExclAmt');\n      const isCommissionsUsingSetChild = model.getData('isCommissionsUsingSetChild');\n      const isCommissionsHasAdjustedShippingFee = model.getData('isCommissionsHasAdjustedShippingFee');\n      if (RA.isNilOrEmpty(selectedCommissionBaseCostMethod)) {\n        model.setData('selectedCommissionBaseCostMethod', 'normalPercent');\n      }\n      if (RA.isNilOrEmpty(isCommissionsUsingAverage)) {\n        model.setData('isCommissionsUsingAverage', true);\n      }\n      if (RA.isNilOrEmpty(isCommissionsCalculatedByExclAmt)) {\n        model.setData('isCommissionsCalculatedByExclAmt', true);\n      }\n      if (RA.isNilOrEmpty(isCommissionsUsingSetChild)) {\n        model.setData('isCommissionsUsingSetChild', false);\n      }\n      if (RA.isNilOrEmpty(isCommissionsHasAdjustedShippingFee)) {\n        model.setData('isCommissionsHasAdjustedShippingFee', false);\n      }\n    },\n    shopPaymentMethodsDefaultsList: Ember.computed('crud.lists.paymentMethods-shop.[]', 'model._data.shopPaymentMethods.[]', function () {\n      const paymentMethods = R_.dotPath('crud.lists.paymentMethods-shop')(this) || [];\n      const allowedPaymentMethods = this.get('model._data.shopPaymentMethods') || [];\n      return R.filter(method => R.includes(method.getData('value'), allowedPaymentMethods), paymentMethods);\n    }),\n    setShopPaymentMethodsDefault(model = {}) {\n      const shopPaymentMethodsDefaultsList = this.shopPaymentMethodsDefaultsList || [];\n      const currentDefault = model.getData('shopPaymentMethodsDefault');\n      let resetDefault = false;\n      if (!R.includes(currentDefault, shopPaymentMethodsDefaultsList)) {\n        resetDefault = true;\n      }\n      if (!currentDefault) {\n        resetDefault = true;\n      }\n      if (resetDefault) {\n        const first = shopPaymentMethodsDefaultsList.get('firstObject');\n        if (first) {\n          model.setData('shopPaymentMethodsDefault', first.getData('value'));\n        } else {\n          model.setData('shopPaymentMethodsDefault', '');\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setShopPaymentMethodsDefault\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setShopPaymentMethodsDefault\"), _obj), _obj));\n});","define(\"client/pods/components/settings/settings-editor/social-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cybGDdTA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\",\\\"@wizardContainerComponenet\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"social\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,7,[]],[23,6,[]],[23,3,[]],[23,5,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"googleTrackingId_group\\\",[23,1,[]],[23,3,[]],\\\"google tracking id\\\",[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"googleTrackingKeys\\\",[23,1,[]],\\\"google tracking id\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,4,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"google/tracking\\\",\\\"google/tracking-editor\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]],[23,2,[]],true,\\\"_data._key\\\",[23,3,[]],false,\\\"_data.googleTrackingKeys\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]],\\\"_data._key\\\",false,[23,2,[\\\"_data\\\",\\\"googleTrackingKeys\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"facebookPixel_group\\\",[23,1,[]],[23,3,[]],\\\"facebook pixel\\\",[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"facebookPixelKeys\\\",[23,1,[]],\\\"pixel id\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,4,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pixels\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"facebook/pixels\\\",\\\"facebook/pixel-editor\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pixels\\\"]],[23,2,[]],true,\\\"_data._key\\\",[23,3,[]],false,\\\"_data.facebookPixelKeys\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pixels\\\"]],\\\"_data._key\\\",false,[23,2,[\\\"_data\\\",\\\"facebookPixelKeys\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"socialLinks_group\\\",[23,1,[]],[23,3,[]],\\\"social links\\\",[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"facebookUrl\\\",[23,1,[]],\\\"facebook page url\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"facebookUrl\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"instagramUrl\\\",[23,1,[]],\\\"instagram url\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"instagramUrl\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"lineId\\\",[23,1,[]],\\\"line id\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"lineId\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"youtubeUrl\\\",[23,1,[]],\\\"youtube channel url\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"youtubeUrl\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"facebookChatSettings_group\\\",[23,1,[]],[23,3,[]],\\\"facebook chat\\\",[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"facebookLogin\\\",[23,1,[]],\\\"facebook login\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"facebook login short intro\\\"],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"facebook/facebook-login\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,4,[]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[\\\"_data\\\",\\\"facebookAccessToken\\\"]],[23,2,[\\\"_data\\\",\\\"facebookPage\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"facebookPage\\\",[23,1,[]],\\\"default facebook page\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,4,[]],true,\\\"_data.name\\\",\\\"_data.id\\\",[23,2,[\\\"_data\\\",\\\"facebookPages\\\"]],false,[23,2,[\\\"_data\\\",\\\"facebookPage\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"facebookPluginEnable\\\",[23,1,[]],\\\"enable facebook chat by default\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"facebookPluginEnable\\\"]],true,false]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponenet\\\"],[\\\"thirdParty.shopDotCom_group\\\",[23,1,[]],[23,3,[]],\\\"shop.com\\\",[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"shop.com instruction\\\"],null],false],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"thirdParty.shopDotCom.enabled\\\",[23,1,[]],\\\"enable shop.com service\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,4,[]],false,true,[23,2,[\\\"_data\\\",\\\"thirdParty\\\",\\\"shopDotCom\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"thirdParty\\\",\\\"shopDotCom\\\",\\\"enabled\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"thirdParty.shopDotCom.advertiserId\\\",[23,1,[]],\\\"advertiser id\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,4,[]],[23,2,[\\\"_data\\\",\\\"thirdParty\\\",\\\"shopDotCom\\\",\\\"advertiserId\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"thirdParty.shopDotCom.offerId\\\",[23,1,[]],\\\"offer id\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,4,[]],[23,2,[\\\"_data\\\",\\\"thirdParty\\\",\\\"shopDotCom\\\",\\\"offerId\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"thirdParty.shopDotCom.commissionRatio\\\",[23,1,[]],\\\"commission ratio\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,4,[]],[23,2,[\\\"_data\\\",\\\"thirdParty\\\",\\\"shopDotCom\\\",\\\"commissionRatio\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"thirdParty.shopDotCom.antiFraudText\\\",[23,1,[]],\\\"anti-fraud info\\\",[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@translatedPlaceholder\\\"],[[23,4,[]],[23,2,[\\\"_data\\\",\\\"thirdParty\\\",\\\"shopDotCom\\\",\\\"antiFraudText\\\"]],[28,\\\"tt\\\",[\\\"anti-fraud text\\\"],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/social-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YX/T+/zh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"wizardContainerComponent\\\",\\\"subTab\\\",\\\"@onCancel\\\",\\\"@onSaveTask\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@isWizard\\\",\\\"@onDash\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@tab\\\",\\\"@wizardData\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[29,[[23,6,[\\\"instanceId\\\"]]]]],[8],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"wizards/wizard-container\\\",[],[[\\\"@isWizard\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@tab\\\",\\\"@wizardData\\\"],[[23,7,[]],[23,6,[]],[23,3,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@classNames\\\",\\\"@menu\\\",\\\"@onSelect\\\",\\\"@wizardContainerComponent\\\",\\\"@isGrouped\\\"],[[23,11,[]],[23,11,[\\\"subTabs\\\"]],\\\"tabs u-tab-menu\\\",[23,0,[\\\"subPanelsList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,11,[]]],null],[23,1,[]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"panel-grid__content \\\",[28,\\\"if\\\",[[23,7,[]],\\\"is-wizard\\\"],null]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,11,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"component\\\",[[23,2,[\\\"component\\\"]]],[[\\\"headerBottom\\\",\\\"isDisabled\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"onAddDetail\\\",\\\"onLoadTransporter\\\",\\\"onSetAsDefaultImageTask\\\",\\\"onUnloadTransporter\\\",\\\"parentTab\\\",\\\"resourceList\\\",\\\"documentationResource\\\",\\\"tab\\\",\\\"transportersList\\\",\\\"wizardContainerComponent\\\"],[[23,0,[\\\"headerBottom\\\"]],[23,0,[\\\"isDisabled\\\"]],[23,5,[]],[23,0,[\\\"isReadonly\\\"]],[23,6,[]],[24,[\\\"onAddDetail\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\",[23,6,[]]],null],[24,[\\\"onSetAsDefaultImageTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"unloadTransporter\\\",[23,6,[]]],null],[23,11,[]],[23,0,[\\\"currentResourceList\\\"]],\\\"settings\\\",[23,2,[]],[28,\\\"get\\\",[[23,0,[\\\"transporter\\\"]],\\\"transportersList\\\"],null],[23,1,[]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,12,[\\\"isWizard\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"wizards/wizard-btns\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-btn--cancel\\\",\\\"cancel\\\",[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]]],null],\\\"save\\\",[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@classNames\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-btn\\\",\\\"edit\\\",[28,\\\"fn\\\",[[23,0,[\\\"editPanel\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/settings-editor/websites-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SettingsSettingsEditorWebsitesEditorComponent = _exports.default = (_dec = Ember.inject.service, _class = class SettingsSettingsEditorWebsitesEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['websites/lists/template-types']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/settings/settings-editor/websites-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EvlwcsJs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@resourceList\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"websites\\\",[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@allowedForFeatures\\\",\\\"@title\\\",\\\"@context\\\"],[[23,1,[]],[28,\\\"array\\\",[\\\"features.hasLegacyWebsitesTemplateTypes\\\"],null],\\\"webpage_template\\\",\\\"template_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"websitesTemplateType\\\",[23,1,[]],[23,6,[]],false,\\\"webpage_template_type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-template-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",true,[23,8,[\\\"_data\\\",\\\"websitesTemplateType\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/settings-editor/websites-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/settings/tab-container/component\", [\"exports\", \"ember-concurrency\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    adapterName: 'settings',\n    query: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['taxes', 'documents/lists/print', 'settings/wizard']);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.fetchAndDisplayTask.perform();\n    },\n    fetchAndDisplayTask: (0, _emberConcurrency.task)(function* () {\n      const model = yield this.crud.findTask.perform({\n        adapterName: this.adapterName\n      });\n      const tab = this.tab;\n      const isWizardMode = tab?.loadInstructions?.wizardMode;\n      if (isWizardMode) {\n        this.wizard(model);\n      } else {\n        this.display(model);\n      }\n    }),\n    edit(model, {\n      tabOptions\n    } = {}) {\n      this.set('isWizard', false);\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'settings/panels-edit',\n        model\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions, tabOptions);\n    },\n    display(model, {\n      tabOptions\n    } = {}) {\n      this.set('isWizard', false);\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'settings/panels-display',\n        model\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions, tabOptions);\n    },\n    async wizard(model = {}, {\n      tabOptions\n    } = {}) {\n      this.set('isWizard', true);\n      const tab = this.tab;\n      // const resourceList = tab?.loadInstructions?.resourceList ?? []\n\n      if (RA.isNilOrEmpty(model)) {\n        model = await this.crud.findTask.perform({\n          adapterName: this.adapterName\n        });\n      }\n      const subTabOptions = {\n        component: 'settings/panels-edit',\n        title: 'settings',\n        adapterName: 'settings',\n        target: 'settings',\n        model\n        // resourceList\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions, tabOptions);\n    },\n    async wizardNext(model, {\n      tabOptions,\n      updateProps\n    } = {}) {\n      const tab = tabOptions?.tab;\n      await this.crud.updateRecordTask.perform({\n        adapterName: this.adapterName,\n        appendPath: '/wizard',\n        model,\n        tab,\n        updateProps\n      });\n    }\n  }, _applyDecoratedDescriptor(_obj, \"edit\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"edit\"), _obj), _applyDecoratedDescriptor(_obj, \"display\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"display\"), _obj), _applyDecoratedDescriptor(_obj, \"wizard\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"wizard\"), _obj), _applyDecoratedDescriptor(_obj, \"wizardNext\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"wizardNext\"), _obj), _obj));\n});","define(\"client/pods/components/settings/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"X0Ge0zc1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,2,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"fetchAndDisplayTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,0,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"documentationResource\\\",\\\"isWizard\\\",\\\"model\\\",\\\"onCancel\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"tab\\\",\\\"tabParent\\\",\\\"wizardData\\\"],[\\\"settings\\\",[23,0,[\\\"isWizard\\\"]],[23,1,[\\\"model\\\"]],[23,0,[\\\"display\\\"]],[23,0,[\\\"display\\\"]],[23,0,[\\\"edit\\\"]],[23,1,[]],[23,0,[\\\"tab\\\"]],[28,\\\"hash\\\",null,[[\\\"isWizard\\\",\\\"onWizard\\\",\\\"onWizardCancel\\\",\\\"onWizardDone\\\",\\\"onWizardNext\\\",\\\"stepsList\\\",\\\"target\\\",\\\"adapterName\\\"],[[23,0,[\\\"isWizard\\\"]],[23,0,[\\\"wizard\\\"]],[23,0,[\\\"edit\\\"]],[23,0,[\\\"display\\\"]],[23,0,[\\\"wizardNext\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"settings-wizard\\\"]],[23,1,[\\\"target\\\"]],\\\"settings\\\"]]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/settings/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, RA, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 SimpleEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('application'), _dec6 = Ember.inject.service('websites'), _dec7 = Ember.inject.service('simple-editor/theme'), _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember.computed('isReadonly', 'page._data.{isDynamicPage,hasTemplate}', 'page.{isLink,isCategory}'), _dec17 = Ember.computed('args.page._data.pageBlocks.@each._data.index', 'args.website._data.shopKey'), _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _dec31 = Ember._action, _class = class SimpleEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"simpleEditorThemeService\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isEditingBlock\", _descriptor8, this);\n      _initializerDefineProperty(this, \"editingModel\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor0, this);\n      _initializerDefineProperty(this, \"previewDevice\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor10, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isExpandAll\", _descriptor12, this);\n      _initializerDefineProperty(this, \"currentScrollPosition\", _descriptor13, this);\n      _initializerDefineProperty(this, \"resizeObserver\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedTabId\", _descriptor15, this);\n      _defineProperty(this, \"elementId\", Ember.guidFor(this));\n      _defineProperty(this, \"hasFooterBtns\", RA.defaultWhen(RA.isNilOrEmpty, true, this.args.hasFooterBtns));\n      this.crud.addLists(this, ['simple-editor/lists/page-blocks-presets']);\n      const website = this?.args?.website ?? {};\n      if (RA.isNotNilOrEmpty(website)) {\n        this.simpleEditorThemeService.setupTheme(website);\n      }\n      let device = 'desktop';\n      if (this.applicationService.isMobile) {\n        device = 'mobile';\n      }\n      Ember.set(this, 'previewDevice', device);\n      Ember.set(this, 'currentScrollPosition', this.args.currentScrollPosition || this.currentScrollPosition);\n    }\n    willDestroy() {\n      if (this.resizeObserver) {\n        this.resizeObserver.disconnect();\n      }\n    }\n    get allowSaveAsTemplate() {\n      const page = this.args.page;\n      if (this.isReadonly || page?._data?.isDynamicPage || page?.isLink || page?.isCategory || page?._data?.hasTemplate === false) {\n        return false;\n      }\n      return true;\n    }\n    get isReadonly() {\n      if (this.args.isNew) {\n        return false;\n      }\n      if (this.args.isEditing) {\n        return false;\n      }\n      return true;\n    }\n    get allowedPageBlocks() {\n      let pageBlocks = this.args.page?._data?.pageBlocks || [];\n      const isShopPage = RA.isNotNilOrEmpty(this.args.website?._data?.advancedTemplate);\n      const hasShopKey = RA.isNotNilOrEmpty(this.args.website?._data?.shopKey);\n\n      // Conditionally filter blocks based on website configuration\n      if (isShopPage) {\n        const websiteOnlyBlockTypes = [this.constants.pageBlockTypes.blogs, this.constants.pageBlockTypes.news, this.constants.pageBlockTypes.faqs, this.constants.pageBlockTypes.flows];\n        const isWebsiteOnlyBlock = block => websiteOnlyBlockTypes.includes(block?._data?.type);\n        pageBlocks = R.reject(isWebsiteOnlyBlock, pageBlocks);\n      } else if (!hasShopKey) {\n        pageBlocks = R.reject(R.pathEq(['_data', 'type'], this.constants.pageBlockTypes.products), pageBlocks);\n      }\n      return R.sortWith([R.ascend(R.prop('_data.index'))])(pageBlocks);\n    }\n    setup(element) {\n      this.setupResizeObserver(element);\n    }\n    setupResizeObserver(element) {\n      this.resizeObserver = new ResizeObserver(entries => {\n        for (let entry of entries) {\n          const newHeight = entry.contentRect.height;\n          this.handleHeightChange(element, newHeight);\n        }\n      });\n      this.resizeObserver.observe(element);\n    }\n    handleHeightChange(element) {\n      const tabGridContent = element.closest('.tab-grid__content');\n      if (tabGridContent && this.currentScrollPosition) {\n        tabGridContent.scrollTop = this.currentScrollPosition;\n      }\n    }\n    onEditPanelFooter(onEdit, page) {\n      this.setCurrentScrollPosition();\n      onEdit(page, {\n        currentScrollPosition: this.currentScrollPosition\n      });\n    }\n    setCurrentScrollPosition() {\n      this.currentScrollPosition = document.querySelector(`.${this.elementId}`)?.closest('.tab-grid__content').scrollTop || 0;\n    }\n    onEdit(pageBlock) {\n      this.setCurrentScrollPosition();\n      this.isEditingBlock = true;\n      this.editingModel = pageBlock;\n      const dirty = this.crud.setupDirty({\n        adapterName: `simple-editor/page-blocks/${pageBlock?._data?.type}`,\n        model: pageBlock,\n        component: this,\n        resultsProperty: 'dirty'\n      });\n\n      // dirty._data.contents = R.pipe(\n      //   R.pathOr([], ['_data', 'contents']),\n      //   R.map(content => {\n      //     return this.crud.setupDirty({\n      //       adapterName: `simple-editor/page-blocks/${pageBlock?._data?.type}`,\n      //       model: pageBlock,\n      //       component: this,\n      //       resultsProperty: 'dirty'\n      //     })\n      //   })\n      // )(dirty)\n\n      this.dirty = dirty;\n    }\n    resetEditing() {\n      const pageBlock = this.editingModel;\n      Ember.set(pageBlock, 'isRefreshing', true);\n      setTimeout(() => {\n        this.isEditingBlock = false;\n        Ember.set(pageBlock, 'isRefreshing', false);\n      }, 200);\n      this.editingModel = null;\n      this.dirty = null;\n    }\n    *saveTask(onCloseDialogAction) {\n      yield this.args.onSaveTask();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *submitTaskAsTemplate() {\n      const msg = this.intl.t('are you sure you want to save as template');\n      if (!window.confirm(msg)) {\n        return;\n      }\n      const model = this.args.page;\n      model.setData('isPublicTemplate', true);\n      yield this.args.onSaveTask.perform({\n        adapterName: 'websites/pages',\n        model,\n        onAfter: this.args.onAfterSave\n      });\n    }\n\n    /**\n     * Reorders page blocks after a drag and drop operation\n     * @param {Array} pageBlocks - Array of page blocks to reorder\n     * @param {Object} targetBlock - Block over which the dragged item was dropped\n     * @returns {void}\n     */\n    reorderPageBlocks(pageBlocks, targetBlock) {\n      const draggedBlock = this.dragDetail;\n      const targetIndex = targetBlock?._data?.index;\n      const didReorder = this.dragDropSort.reorderItemsByIndex(pageBlocks, draggedBlock, targetIndex);\n      if (!didReorder) {\n        return;\n      }\n\n      // Save the updated order\n      this.args.page.setData('pageBlocks', pageBlocks);\n    }\n    addPageBlock(onCloseDialogAction, website, pageBlockData, index) {\n      const pageBlockModel = this.args.page.addPageBlock(website, pageBlockData, index);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      this.onEdit(pageBlockModel);\n    }\n    importPageBlock(onCloseDialogAction, website, pageBlockData, index) {\n      if (!pageBlockData) {\n        return;\n      }\n      pageBlockData = JSON.parse(pageBlockData);\n      if (RA.isArray(pageBlockData)) {\n        RA.mapIndexed((pageBlock, pageBlockIndex) => {\n          this.args.page.addPageBlock(website, pageBlock, index + pageBlockIndex);\n        })(pageBlockData);\n      } else {\n        const pageBlockModel = this.args.page.addPageBlock(website, pageBlockData, index);\n        if (pageBlockModel) {\n          this.onEdit(pageBlockModel);\n        }\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    clearTemplate() {\n      const page = this.args.page;\n      page.setData('pageBlocks', []);\n    }\n    setSelectedTabId(contentId) {\n      this.selectedTabId = contentId;\n    }\n    setPreviewDevice(device) {\n      Ember.set(this, 'previewDevice', device);\n    }\n    expandOrCollapseAll() {\n      Ember.set(this, 'isExpandAll', !this.isExpandAll);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"simpleEditorThemeService\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isEditingBlock\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"editingModel\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"previewDevice\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'mobile';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isExpandAll\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"currentScrollPosition\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"resizeObserver\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"selectedTabId\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"allowSaveAsTemplate\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"allowSaveAsTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allowedPageBlocks\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"allowedPageBlocks\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupResizeObserver\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"setupResizeObserver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleHeightChange\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"handleHeightChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onEditPanelFooter\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"onEditPanelFooter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCurrentScrollPosition\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"setCurrentScrollPosition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onEdit\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"onEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetEditing\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"resetEditing\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submitTaskAsTemplate\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"submitTaskAsTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderPageBlocks\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderPageBlocks\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addPageBlock\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"addPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"importPageBlock\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"importPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearTemplate\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"clearTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSelectedTabId\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"setSelectedTabId\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPreviewDevice\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"setPreviewDevice\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"expandOrCollapseAll\", [_dec31], Object.getOwnPropertyDescriptor(_class.prototype, \"expandOrCollapseAll\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-add-wrapper/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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, _dec0, _dec1, _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 SimpleEditorPageBlockAddWrapperComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('application'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember.computed('presetModel._data.type'), _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class SimpleEditorPageBlockAddWrapperComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"presetModel\", _descriptor4, this);\n      _initializerDefineProperty(this, \"showPreview\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showSidebar\", _descriptor6, this);\n      this.crud.addLists(this, ['simple-editor/lists/page-blocks-presets']);\n    }\n    get label() {\n      if (this.args?.filterByType) {\n        return `pageBlocks_${this.args.filterByType}`;\n      }\n      return 'add_block';\n    }\n    get addLabel() {\n      if (!this.presetModel?._data?.type) {\n        return 'add_block';\n      }\n      return `pageBlocks_${this.presetModel._data.type}`;\n    }\n\n    /**\n     * Groups page blocks by their _data.group property.\n     * @returns {Object} An object where keys are group names and values are arrays of page blocks.\n     */\n    get groupedPageBlocks() {\n      let pageBlocks = this.crud.lists['simple-editor-lists-page-blocks-presets'] || [];\n\n      // Always Reject News, since it's not implemented yet\n      const websiteOnlyBlockTypes = [this.constants.pageBlockTypes.news];\n      const isWebsiteOnlyBlock = block => websiteOnlyBlockTypes.includes(block?._data?.type);\n      pageBlocks = R.reject(isWebsiteOnlyBlock, pageBlocks);\n\n      // Filter by a specific block type if provided\n      if (this.args?.filterByType) {\n        pageBlocks = R.filter(R.pathEq(['_data', 'type'], this.args.filterByType), pageBlocks);\n      }\n      if (this.args?.hideTabsOnAddWrapper) {\n        pageBlocks = R.reject(R.pathEq(['_data', 'type'], this.constants.pageBlockTypes.tabs), pageBlocks);\n      }\n      const isShopPage = RA.isNotNilOrEmpty(this.args.website?._data?.advancedTemplate);\n      const hasShopKey = RA.isNotNilOrEmpty(this.args.website?._data?.shopKey);\n\n      // Conditionally filter blocks based on website configuration\n      if (isShopPage) {\n        const websiteOnlyBlockTypes = [this.constants.pageBlockTypes.blogs, this.constants.pageBlockTypes.faqs, this.constants.pageBlockTypes.flows];\n        const isWebsiteOnlyBlock = block => websiteOnlyBlockTypes.includes(block?._data?.type);\n        pageBlocks = R.reject(isWebsiteOnlyBlock, pageBlocks);\n      } else if (!hasShopKey) {\n        pageBlocks = R.reject(R.pathEq(['_data', 'type'], this.constants.pageBlockTypes.products), pageBlocks);\n      }\n      return R.groupBy(R.path(['_data', 'addBlockGroups']), pageBlocks);\n    }\n    get groupsForRender() {\n      const grouped = this.groupedPageBlocks;\n      const totalGroups = R.pipe(R.keys, R.length)(grouped);\n      return R.pipe(R.mapObjIndexed((pageBlockGroup, groupName) => {\n        const matchedGroupIndex = groupName.match(/^pageBlocks_group_(\\d+)$/);\n        const groupIndex = Number(matchedGroupIndex?.[1] || 0);\n        return {\n          index: groupIndex,\n          groupName,\n          pageBlockGroup,\n          isLast: groupIndex === totalGroups\n        };\n      }), R.values, R.sortBy(R.prop('index')))(grouped);\n    }\n    onShowPreview(model) {\n      this.presetModel = model;\n      this.showPreview = false;\n      setTimeout(() => {\n        this.showPreview = true;\n      }, 100);\n    }\n    addPageBlock(onCloseDialogAction, website, pageBlockData, index) {\n      if (RA.isNilOrEmpty(pageBlockData)) {\n        return;\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      if (this.args?.onAddPageBlockContent) {\n        const contents = pageBlockData._data.contents || [];\n        if (RA.isNilOrEmpty(contents)) {\n          return;\n        }\n        const results = R.map(content => {\n          return this.args.onAddPageBlockContent(content);\n        })(contents);\n        return R.last(results);\n      }\n      const pageBlockModel = this.args.page.addPageBlock(website, pageBlockData, index);\n      if (this.args?.onEdit) {\n        return this.args.onEdit(pageBlockModel);\n      }\n    }\n    toggleShowSidebar() {\n      this.showSidebar = !this.showSidebar;\n    }\n    resetShowSideBar() {\n      this.showSidebar = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"presetModel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showSidebar\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addLabel\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"addLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onShowPreview\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"onShowPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addPageBlock\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"addPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowSidebar\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowSidebar\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetShowSideBar\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"resetShowSideBar\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-add-wrapper/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GpPypHy6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"group\\\",\\\"pageBlock\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@previewDevice\\\",\\\"@isReadonly\\\",\\\"@website\\\",\\\"@type\\\",\\\"@isAddBlock\\\",\\\"@isAddContent\\\",\\\"@tab\\\",\\\"@page\\\",\\\"@pageBlock\\\",\\\"@index\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@hasSectionWrapper\\\",\\\"@closeOnOverlayClick\\\",\\\"@layoutsSection\\\",\\\"@btnClassNames\\\",\\\"@layoutsSectionContentClassNames\\\",\\\"@onSubmit\\\",\\\"@modelContainerClassNames\\\"],[[23,0,[\\\"label\\\"]],\\\"fas fa-plus\\\",[23,8,[]],true,false,\\\"u-full-height\\\",\\\"u-full-width\\\",\\\"u-full-height page-block-add-wrapper\\\",[23,0,[\\\"resetShowSideBar\\\"]],[28,\\\"if\\\",[[23,0,[\\\"applicationService\\\",\\\"isMobile\\\"]],\\\"u-hidden\\\",\\\"\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,13,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\"],[[23,0,[\\\"presetModel\\\",\\\"_data\\\",\\\"displayLabel\\\"]]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"presetModel\\\",\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@label\\\"],[\\\"u-padding-right-5 has-text-danger\\\",\\\"fas fa-circle-exclamation\\\",[23,0,[\\\"presetModel\\\",\\\"message\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],[23,4,[]],[23,6,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fa-solid fa-bars\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleShowSidebar\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[4,5,6]}],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\",\\\"@modelContainerClassNames\\\"],[true,[23,0,[\\\"showSidebar\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowSidebar\\\"]]],null],\\\"simple-editor__page-blocks-sidebar\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"groupsForRender\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,2,[\\\"pageBlockGroup\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"simple-editor/page-block-add\\\",[],[[\\\"@type\\\",\\\"@isAddBlock\\\",\\\"@isAddContent\\\",\\\"@onCloseDialogAction\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@page\\\",\\\"@pageBlock\\\",\\\"@pageBlockParent\\\",\\\"@index\\\",\\\"@onAddPageBlock\\\",\\\"@onShowPreview\\\"],[[23,10,[]],[23,11,[]],[23,12,[]],[23,1,[]],[23,13,[]],[23,9,[]],[23,8,[]],[23,14,[]],[23,3,[]],[23,15,[]],[23,16,[]],[28,\\\"fn\\\",[[23,0,[\\\"addPageBlock\\\"]],[23,1,[]],[23,9,[]]],null],[23,0,[\\\"onShowPreview\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[4,\\\"unless\\\",[[23,2,[\\\"isLast\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showPreview\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"presetModel\\\",\\\"_data\\\",\\\"previewSvg\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__page-blocks-preset-preview\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"presetModel\\\",\\\"_data\\\",\\\"previewSvg\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"presetModel\\\",\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-preview-container-scaled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"presetModel\\\",\\\"componentForDisplay\\\"]]],[[\\\"pageBlock\\\",\\\"website\\\",\\\"isReadonly\\\",\\\"previewDevice\\\"],[[23,0,[\\\"presetModel\\\"]],[23,9,[]],[23,8,[]],[23,7,[]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"u-padding-12 has-text-centered\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"no preview\\\"],null],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,0,[\\\"presetModel\\\",\\\"_data\\\",\\\"type\\\"]],false,true],null],\\\"fas fa-plus\\\",[23,0,[\\\"addLabel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"addPageBlock\\\"]],[23,1,[]],[23,9,[]],[23,0,[\\\"presetModel\\\"]],[23,16,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-add-wrapper/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-add/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 SimpleEditorPageBlockAddComponent = _exports.default = (_dec = Ember.inject.service('websites'), _dec2 = Ember.inject.service('constants'), _dec3 = Ember._tracked, _class = class SimpleEditorPageBlockAddComponent extends _component.default {\n    // load preset model for type\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"presets\", _descriptor3, this);\n      const pageBlock = this.args.pageBlock;\n      const type = pageBlock?._data?.type;\n      let presetModelsData = pageBlock?._data?.presets || [];\n\n      // currently because presetModelsData is global, we need to clone it, otherwise after\n      // tranforming contents into models, the presetModelsData will be mutated\n      presetModelsData = R.clone(presetModelsData);\n      const attrs = {\n        isGenerateNewId: true\n      };\n      let models = R.reduce((acc, modelData) => {\n        if (type === this.constantsService.pageBlockTypes.features) {\n          const displayStyle = this.args?.pageBlockParent?._data?.settings?.displayStyle;\n          if (displayStyle) {\n            const displayStyleSupport = modelData?.settings?.displayStyleSupport || [];\n            if (!displayStyleSupport.includes(displayStyle)) {\n              return acc;\n            }\n          }\n        }\n        const presetModel = this.websitesService.newPageBlockModel({\n          pageBlockData: modelData,\n          attrs\n        });\n        return acc.concat(presetModel);\n      }, [])(presetModelsData);\n\n      // filter by isAddBlock\n      if (this.args.isAddBlock) {\n        models = R.filter(model => {\n          if (model?._data?.isAddBlock) {\n            return true;\n          }\n          if (!model?._data?.isAddContent) {\n            return true;\n          }\n          return false;\n        })(models);\n      }\n      if (this.args.isAddContent) {\n        models = R.filter(R.pathEq(['_data', 'isAddContent'], this.args.isAddContent))(models);\n      }\n\n      // for each page block type add a blank model\n      const blankModel = this.websitesService.newPageBlockModel({\n        pageBlockData: {\n          type,\n          previewSvg: pageBlock?._data?.previewSvg,\n          displayLabel: pageBlock?._data?.displayLabel\n        },\n        attrs\n      });\n      models.unshiftObject(blankModel);\n      this.presets = models;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"presets\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-add/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kNWDLAfM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@index\\\",\\\"@onAddPageBlock\\\",\\\"@onShowPreview\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__page-block-add-container\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"simple-editor/page-block-editor/base/presets/page-block-preview\\\",[],[[\\\"@type\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@presets\\\",\\\"@index\\\",\\\"@onSubmit\\\",\\\"@onShowPreview\\\"],[[23,1,[\\\"_data\\\",\\\"type\\\"]],[23,1,[]],[23,2,[]],[23,3,[]],[23,0,[\\\"presets\\\"]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-add/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-content-add/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"client/utils/nventor\"], function (_exports, _component, R, _nventor) {\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  const presetModels = [{\n    contentId: _nventor.default.random.alphaNum(10),\n    index: 0,\n    imageAlt: '',\n    displayStyle: 'top-down-one',\n    interactionMethod: 'link',\n    hasBackground: false,\n    backgroundColorStyle: 'solid',\n    backgroundColor: '#ffffff',\n    backgroundColorTransparency: 25,\n    hasText: true,\n    hasInteraction: false,\n    image: {\n      desktop: {\n        uuid: '',\n        imageMimeType: '',\n        imageFormat: '',\n        imageWidth: '',\n        imageHeight: '',\n        imageSequence: '',\n        imageMainColors: ''\n      },\n      tablet: {\n        uuid: '',\n        imageMimeType: '',\n        imageFormat: '',\n        imageWidth: '',\n        imageHeight: '',\n        imageSequence: '',\n        imageMainColors: ''\n      },\n      mobile: {\n        uuid: '',\n        imageMimeType: '',\n        imageFormat: '',\n        imageWidth: '',\n        imageHeight: '',\n        imageSequence: '',\n        imageMainColors: ''\n      }\n    },\n    textContentBlock: {\n      title: 'im the title',\n      template: 'yeah this is going to be an epic piece of shit. hopefully this will be done soon.',\n      fontSize: 'large',\n      fontColor: '#0A0A0A',\n      type: 'texts',\n      contentId: _nventor.default.random.alphaNum(10),\n      index: 0,\n      link: {\n        linkType: 'url',\n        linkTitle: '',\n        linkUrl: '',\n        linkResourceName: '',\n        linkResourceType: '',\n        linkResourceKey: '',\n        linkTarget: '_self'\n      }\n    },\n    buttonsPageBlock: {\n      type: 'buttons',\n      settings: {\n        displayStyle: 'horizontal',\n        buttonStyle: 'button1',\n        buttonImageStyle: 'none',\n        buttonImageBorderRadius: '0px',\n        fontSize: 'medium',\n        fontAlign: 'left',\n        fontStyles: []\n      },\n      contents: [],\n      blockId: _nventor.default.random.alphaNum(10),\n      enabled: true,\n      index: 0\n    },\n    link: {\n      hasLink: true,\n      linkType: 'url',\n      linkTitle: '',\n      linkUrl: '',\n      linkResourceName: '',\n      linkResourceType: '',\n      linkResourceKey: '',\n      linkTarget: '_self'\n    },\n    imagePosition: '',\n    imageSize: '',\n    positionHorizontal: '',\n    positionVertical: '',\n    contentAlign: '',\n    type: 'features'\n  }];\n  let SimpleEditorPageBlockContentAddComponent = _exports.default = (_dec = Ember.inject.service('websites'), _dec2 = Ember._tracked, _class = class SimpleEditorPageBlockContentAddComponent extends _component.default {\n    // load preset model for type\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor, this);\n      _initializerDefineProperty(this, \"presets\", _descriptor2, this);\n      const pageBlock = this.args.pageBlock;\n      const type = pageBlock?._data?.type;\n      let presetModelsData = R.filter(R.propEq('type', type))(presetModels);\n\n      // currently because presetModelsData is global, we need to clone it, otherwise after\n      // tranforming contents into models, the presetModelsData will be mutated\n      presetModelsData = R.clone(presetModelsData);\n      const attrs = {\n        isGenerateNewId: true\n      };\n      const models = R.map(modelData => {\n        const presetModel = this.websitesService.newPageBlockContentModel({\n          pageBlockContentData: modelData,\n          attrs\n        });\n        return presetModel;\n      })(presetModelsData);\n\n      // for each page block type add a blank model\n      const blankModel = this.websitesService.newPageBlockContentModel({\n        pageBlockContentData: {\n          type: type\n        },\n        attrs\n      });\n      models.unshiftObject(blankModel);\n      this.presets = models;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"presets\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-content-add/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qqdIi4fQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@onAddPageBlock\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__page-block-add-container\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"simple-editor/page-block-editor/base/presets/page-block-content-preview\\\",[],[[\\\"@type\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@presets\\\",\\\"@onSubmit\\\"],[[23,1,[\\\"_data\\\",\\\"type\\\"]],[23,1,[]],[23,2,[]],[23,3,[]],[23,0,[\\\"presets\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-content-add/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display-container/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockDisplayContainerComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('constants'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember._action, _class = class SimpleEditorPageBlockDisplayContainerComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor5, this);\n    }\n    get copyDisabled() {\n      if (this.args.isReadonly) {\n        return true;\n      }\n      return false;\n    }\n    get arrowDownDisabled() {\n      if (this.args.isReadonly) {\n        return true;\n      }\n      const index = this.args.index;\n      const pageBlocks = this.args.page._data?.pageBlocks || [];\n      const lastIndex = pageBlocks?.length - 1;\n      if (lastIndex === index) {\n        return true;\n      }\n      return false;\n    }\n    get arrowUpDisabled() {\n      if (this.args.isReadonly) {\n        return true;\n      }\n      const index = this.args.index;\n      const firstIndex = 0;\n      if (firstIndex === index) {\n        return true;\n      }\n\n      // if not the second index return false\n      if (index !== 1) {\n        return false;\n      }\n      return false;\n    }\n    edit() {\n      if (this.args.isReadonly) {\n        return;\n      }\n      this.args.onEdit(this.args.pageBlock);\n    }\n    onDblClick() {\n      if (this.args.isReadonly) {\n        return;\n      }\n      this.args.onDblClick(this.args.pageBlock);\n    }\n    get isShowActionButtons() {\n      const isReadonly = this.args.isReadonly;\n      const isExpandAll = this.args.isExpandAll;\n      if (!isExpandAll) {\n        return true;\n      }\n      return !isReadonly;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"edit\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"edit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDblClick\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"onDblClick\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6wRv0FmA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@page\\\",\\\"@pageBlock\\\",\\\"@onCopy\\\",\\\"@isReadonly\\\",\\\"@onRemove\\\",\\\"@onSelectTabId\\\",\\\"@selectedTabId\\\",\\\"@website\\\",\\\"@previewDevice\\\",\\\"@isExpandAll\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"\\\\n    simple-editor__block-container\\\\n    simple-editor__block-container--is-display-block\\\\n    \\\",[28,\\\"unless\\\",[[23,5,[]],\\\"layouts__btns-parent--has-hover-message u-tappable\\\",\\\"\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[23,10,[]],\\\"simple-editor__block-container--preview\\\",\\\"\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[23,10,[]],[23,10,[]],\\\"\\\"],null],\\\"\\\\n  \\\"]]],[3,\\\"on\\\",[\\\"dblclick\\\",[28,\\\"fn\\\",[[23,0,[\\\"onDblClick\\\"]],[23,3,[]]],null]]],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"simple-editor__block-content-container \\\",[28,\\\"if\\\",[[23,5,[]],\\\"disabled\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-content simple-editor__block-content--scale-preview\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"hasPreviewComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"component\\\",[[23,3,[\\\"componentForPreview\\\"]]],[[\\\"pageBlock\\\",\\\"previewDevice\\\",\\\"website\\\"],[[23,3,[]],[23,10,[]],[23,9,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"component\\\",[[23,3,[\\\"componentForDisplay\\\"]]],[[\\\"pageBlock\\\",\\\"previewDevice\\\",\\\"website\\\",\\\"selectedTabId\\\",\\\"onSelectTabId\\\"],[[23,3,[]],[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-content-footer\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"flex-container-row flex-container--align-items-center \\\",[28,\\\"if\\\",[[23,11,[]],\\\"flex-container--justify-end\\\",\\\"flex-container--justify-space-between\\\"],null],\\\" flex-gap-15\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,11,[]],[28,\\\"not\\\",[[23,5,[]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"layouts__btns-group--hover-message u-desc\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"double click to edit\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,3,[\\\"_data\\\",\\\"type\\\"]]],null]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"far fa-clock\\\"]]],[0,\\\"\\\\n\\\\n                \\\"],[1,[28,\\\"dateRange\\\",[[23,3,[\\\"firstSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],[23,3,[\\\"firstSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]],\\\"YYYY-MM-DD HH:mm\\\"],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,3,[\\\"_data\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,6,[]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"reIndex\\\"]],[23,2,[]],\\\"_data.pageBlocks\\\",\\\"_data.index\\\"],null]]]]],null]]]],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@label\\\",\\\"@translate\\\"],[\\\"far fa-copy\\\",[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"barcodes\\\"]],[23,12,[\\\"_data\\\",\\\"barcodeType\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-column flex-gap-4\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"far fa-copy\\\",true,\\\"copy block\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"copyModelData\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\"],[\\\"duplicate block\\\",[23,0,[\\\"copyDisabled\\\"]],\\\"fas fa-copy\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,4,[]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"reIndex\\\"]],[23,2,[]],\\\"_data.pageBlocks\\\",\\\"_data.index\\\"],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"arrowDownDisabled\\\"]],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,2,[]],\\\"_data.pageBlocks\\\",\\\"_data.index\\\",[23,3,[]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"arrowUpDisabled\\\"]],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,2,[]],\\\"_data.pageBlocks\\\",\\\"_data.index\\\",[23,3,[]]],null]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"edit\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/base/container/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"client/utils/nventor\"], function (_exports, _component, R, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _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 SimpleEditorPageBlockDisplayBaseContainerComponent = _exports.default = (_dec = Ember.inject.service('constants'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember.computed('args.{hasBackground,backgroundColorStyle,backgroundColor,backgroundColorTransparency}'), _dec10 = Ember.computed('isAlreadyVisible', 'allImagesLoaded', 'args.{previewDevice.maxWidth,padding,paddingOption,paddingData,marginOption,marginData,marginVertical,hasBorder,borderStyle,borderRadius,borderWidth,hasAnimation,animation,animationType,animationCount,animationDuration}'), _dec11 = Ember.computed('isAlreadyVisible', 'allImagesLoaded', 'args.{maxWidth,marginOption,marginData,marginVertical,previewDevice}'), _dec12 = Ember.computed('args.animationType', 'allImagesLoaded'), _dec13 = Ember.computed('allImagesLoaded', 'isAlreadyVisible', 'isTransitionIn', 'args.{animation,previewDevice}'), _dec14 = Ember.computed('allImagesLoaded', 'isAlreadyVisible', 'args.quickLinkFontSize', 'args.quickLinkText', 'args.gridColumnsGap'), _dec15 = Ember.computed('args.{quickLinkText,quickLinkFontColor,quickLinkFontFamily,quickLinkFontAlign,quickLinkTextEnabled}'), _dec16 = Ember._action, _dec17 = Ember._action, _class = class SimpleEditorPageBlockDisplayBaseContainerComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"element\", _descriptor2, this);\n      _initializerDefineProperty(this, \"observer\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isAlreadyVisible\", _descriptor4, this);\n      _initializerDefineProperty(this, \"totalToLoad\", _descriptor5, this);\n      _initializerDefineProperty(this, \"totalLoaded\", _descriptor6, this);\n      _initializerDefineProperty(this, \"totalFailures\", _descriptor7, this);\n      _initializerDefineProperty(this, \"allImagesLoaded\", _descriptor8, this);\n      _defineProperty(this, \"isDisabledWhenAlreadyVisible\", ['slideInDown', 'slideInUp', 'rotateIn', 'zoomIn']);\n    }\n    setup(element) {\n      this.element = element;\n      if (!this.args.hasAnimation) {\n        return;\n      }\n      if (this.args.animation === 'typing') {\n        const textComponents = element.querySelectorAll('.simple-editor__text-template,.simple-editor__text-title');\n        R.forEach(textComponent => {\n          textComponent.classList.add('blinking_cursor');\n          const length = textComponent.textContent.length;\n          textComponent.style.setProperty('--typewriterCharacters', length > 0 ? length : 1);\n        })(textComponents);\n      }\n\n      /** @type {HTMLImageElement[]} */\n      const simpleEditorImages = element.querySelectorAll('img');\n      this.totalToLoad = simpleEditorImages.length;\n      if (this.totalToLoad === 0) {\n        this.allImagesLoaded = true;\n        this._setup(element);\n        return;\n      }\n      simpleEditorImages.forEach(image => {\n        image.onload = () => {\n          this._onLoadImageTask(element);\n          image.onload = null;\n          image.onerror = null;\n        };\n        image.onerror = () => {\n          this._onLoadImageTask(element, 'error');\n          image.onload = null;\n          image.onerror = null;\n        };\n      });\n    }\n    _onLoadImageTask(element, eventName = 'load') {\n      if (eventName === 'load') {\n        this.totalLoaded++;\n      } else {\n        this.totalFailures++;\n      }\n      const allTotalImageLoaded = this.totalLoaded + this.totalFailures;\n      // console.debug(`this.totalToLoad: ${this.totalToLoad} | allTotalImageLoaded: ${allTotalImageLoaded} | this.totalFailures: ${this.totalFailures} | this.totalLoaded: ${this.totalLoaded}`)\n      if (allTotalImageLoaded !== this.totalToLoad) {\n        return;\n      }\n      setTimeout(() => {\n        if (this?.isDestroyed || this?.isDestroying) {\n          return;\n        }\n        // console.debug('All images loaded.')\n        this.allImagesLoaded = true;\n        this._setup(element);\n      }, 50);\n    }\n    _setup(element) {\n      const rect = element.getBoundingClientRect();\n      this.isAlreadyVisible = !(rect.bottom < 0 || rect.top > window.innerHeight);\n      if (this.isDisallowTransitionInAnimation) {\n        return null;\n      } else {\n        // Create an Intersection Observer\n        const observer = new window.IntersectionObserver((entries, observer) => {\n          entries.forEach(entry => {\n            if (entry.isIntersecting) {\n              entry.target.classList.add('animation-start');\n              if (this.isTransitionIn) {\n                observer.unobserve(entry.target);\n              }\n            }\n          });\n        }, {\n          threshold: 0.2\n        });\n        observer.observe(element);\n        this.observer = observer;\n      }\n    }\n    willDestroy() {\n      if (this.observer) {\n        this.observer.disconnect(); // Disconnects all observed elements\n        this.observer = null; // Clear reference\n      }\n    }\n    get backgroundColorStyle() {\n      const styles = [];\n      const hasBackground = this.args.hasBackground || false;\n      const backgroundColor = this.args.backgroundColor || '';\n      if (hasBackground && backgroundColor) {\n        const transparency = this.args.backgroundColorTransparency || 0;\n        const backgroundColorRgba = this.convertHexToRgbaString(backgroundColor, transparency);\n        styles.push(`background-color: ${backgroundColorRgba};`);\n      }\n      const hasBorder = this.args.hasBorder || false;\n      if (hasBorder) {\n        const borderColor = this.args.borderColor || '';\n        if (borderColor) {\n          styles.push(`--border-color: ${borderColor};`);\n        }\n      }\n      return Ember.String.htmlSafe(styles.join(' '));\n    }\n    get containerClassNames() {\n      const classNames = ['simple-editor__base-container', 'simple-editor__page-block-display-container'];\n      if (this.args.previewDevice) {\n        classNames.push(`simple-editor__base-container--${this.args.previewDevice}`);\n      }\n      const maxWidth = this.args.maxWidth || '';\n      if (maxWidth) {\n        classNames.push(`simple-editor__base-container__max-width--${maxWidth}`);\n      }\n      const paddingOption = this.args?.paddingOption ?? '';\n      if (paddingOption === this.constants.containerPaddingOption.custom) {\n        const paddingData = this.args.paddingData || {};\n        if (_nventor.default.isNotNilOrEmpty(paddingData)) {\n          classNames.push(`simple-editor__base-container__padding-top--${paddingData?.top}`);\n          classNames.push(`simple-editor__base-container__padding-bottom--${paddingData?.bottom}`);\n          classNames.push(`simple-editor__base-container__padding-left--${paddingData?.left}`);\n          classNames.push(`simple-editor__base-container__padding-right--${paddingData?.right}`);\n        }\n      } else {\n        const padding = this.args.padding || '';\n        if (padding) {\n          classNames.push(`simple-editor__base-container__padding--${padding}`);\n        }\n      }\n      const hasBorder = this.args.hasBorder || false;\n      if (hasBorder) {\n        const borderStyle = this.args.borderStyle || '';\n        if (borderStyle) {\n          classNames.push(`simple-editor__base-container__border-style--${borderStyle}`);\n        }\n        const borderRadius = this.args.borderRadius || '';\n        if (borderRadius) {\n          classNames.push(`simple-editor__base-container__border-radius--${borderRadius}`);\n        }\n        const borderWidth = this.args.borderWidth || '';\n        if (borderWidth) {\n          classNames.push(`simple-editor__base-container__border-width--${borderWidth}`);\n        }\n      }\n      const hasAnimation = this.args.hasAnimation === true;\n      if (hasAnimation && this.allImagesLoaded) {\n        const animation = this.args.animation || '';\n        if (animation) {\n          if (!this.isDisallowTransitionInAnimation) {\n            // dont add transitionIn animation if the element is already visible\n            classNames.push(`simple-editor__base-container__animation--${animation}`);\n          }\n        }\n        const animationType = this.args.animationType || '';\n        if (animationType) {\n          classNames.push(`simple-editor__base-container__animation-type--${animationType}`);\n        }\n        const animationDuration = this.args.animationDuration || '';\n        if (animationDuration) {\n          classNames.push(`simple-editor__base-container__animation-duration--${animationDuration}`);\n        }\n        if (animationType !== 'transitionIn') {\n          const animationCount = this.args.animationCount || '';\n          if (animationCount) {\n            classNames.push(`simple-editor__base-container__animation-count--${animationCount}`);\n          }\n        }\n      }\n      return classNames.join('\\n');\n    }\n    get outerContainerClassNames() {\n      const classNames = ['simple-editor__base-outer-container'];\n      let outerContainerClassName = 'simple-editor__base-outer-container';\n      const previewDevice = this.args.previewDevice;\n      if (previewDevice) {\n        // when in preview, always show animation\n        outerContainerClassName = 'simple-editor__base-outer-container-preview';\n      }\n      const maxWidth = this.args.maxWidth || '';\n      if (maxWidth === this.constants.containerWidth.default) {\n        classNames.push('simple-editor__base-outer-container--padding-left-right');\n      }\n      const marginOption = this.args?.marginOption ?? '';\n      if (marginOption === this.constants.containerMarginOption.custom) {\n        const marginData = this.args.marginData || {};\n        if (_nventor.default.isNotNilOrEmpty(marginData)) {\n          classNames.push(`${outerContainerClassName}__margin-top--${marginData?.top}`);\n          classNames.push(`${outerContainerClassName}__margin-bottom--${marginData?.bottom}`);\n          classNames.push(`${outerContainerClassName}__margin-left--${marginData?.left}`);\n          classNames.push(`${outerContainerClassName}__margin-right--${marginData?.right}`);\n        }\n      } else {\n        const marginVertical = this.args.marginVertical || '';\n        if (marginVertical) {\n          classNames.push(`simple-editor__base-container__margin-vertical--${marginVertical}`);\n        }\n      }\n      return classNames.join('\\n');\n    }\n    get isTransitionIn() {\n      return this.args.animationType === 'transitionIn';\n    }\n    get isDisallowTransitionInAnimation() {\n      const animation = this.args.animation || '';\n      const previewDevice = this.args.previewDevice;\n      if (previewDevice) {\n        // when in preview, always show animation\n        return false;\n      }\n      const isDisallowedWhenAlreadyVisible = R.includes(animation)(this.isDisabledWhenAlreadyVisible);\n      if (!isDisallowedWhenAlreadyVisible) {\n        return false;\n      }\n      if (!this.isAlreadyVisible) {\n        return false;\n      }\n      return true;\n    }\n    get anchorClassNames() {\n      if (!this.args.quickLinkText) {\n        return '';\n      }\n      const classNames = ['simple-editor__text-title'];\n      if (this.args.quickLinkFontSize) {\n        classNames.push(this.args.quickLinkFontSize);\n      }\n      if (this.args.gridColumnsGap) {\n        classNames.push(`grid-columns-gap__${this.args.gridColumnsGap}`);\n      }\n      return classNames.join('\\n');\n    }\n    get anchorStyle() {\n      if (!this.args.quickLinkText) {\n        return '';\n      }\n      const inlineStyle = [];\n      const fontFamily = this.args.quickLinkFontFamily;\n      if (fontFamily) {\n        inlineStyle.push(`font-family: ${fontFamily};`);\n      }\n      const fontColor = this.args.quickLinkFontColor;\n      if (fontColor) {\n        inlineStyle.push(`color: ${fontColor} !important;`);\n      }\n      const fontAlign = this.args.quickLinkFontAlign;\n      if (fontAlign) {\n        inlineStyle.push(`text-align: ${fontAlign};`);\n      }\n      if (this.args.quickLinkTextEnabled === false) {\n        inlineStyle.push('visibility: hidden; font-size: 0;');\n      }\n      return Ember.String.htmlSafe(inlineStyle.join(' '));\n    }\n    convertHexToRgbaString(hex, transparency = 0) {\n      if (!hex) {\n        return '';\n      }\n\n      // convert transparency to opacity\n      const opacity = (100 - transparency) / 100;\n\n      // Remove the # if it exists\n      hex = hex.replace(/^#/, '');\n\n      // Handle shorthand hex (e.g., #F53 -> #FF5533)\n      if (hex.length === 3) {\n        hex = hex.split('').map(char => char + char).join('');\n      }\n\n      // Parse the r, g, b values from hex to decimal\n      const r = parseInt(hex.slice(0, 2), 16);\n      const g = parseInt(hex.slice(2, 4), 16);\n      const b = parseInt(hex.slice(4, 6), 16);\n      return `rgba(${r}, ${g}, ${b}, ${opacity})`;\n    }\n    createAnchorId(element) {\n      const id = Ember.guidFor(this);\n      element.setAttribute('id', id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"observer\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isAlreadyVisible\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"totalToLoad\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"totalLoaded\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"totalFailures\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"allImagesLoaded\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setup\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"_setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"backgroundColorStyle\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"backgroundColorStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"containerClassNames\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"containerClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"outerContainerClassNames\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"outerContainerClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isTransitionIn\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"isTransitionIn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isDisallowTransitionInAnimation\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"isDisallowTransitionInAnimation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"anchorClassNames\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"anchorClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"anchorStyle\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"anchorStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"convertHexToRgbaString\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"convertHexToRgbaString\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createAnchorId\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"createAnchorId\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/base/container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pXQa3Ea2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@link\\\",\\\"@isLink\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@quickLinkText\\\",\\\"&attrs\\\",\\\"@quickLinkEnabled\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[23,0,[\\\"outerContainerClassNames\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"style\\\",[23,0,[\\\"backgroundColorStyle\\\"]]],[12,\\\"class\\\",[23,0,[\\\"containerClassNames\\\"]]],[13,7],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"h2\\\",false],[12,\\\"data-bigordr-tabs-with-header-anchor\\\",\\\"\\\"],[12,\\\"class\\\",[23,0,[\\\"anchorClassNames\\\"]]],[12,\\\"style\\\",[23,0,[\\\"anchorStyle\\\"]]],[3,\\\"did-insert\\\",[[23,0,[\\\"createAnchorId\\\"]]]],[8],[1,[23,6,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"simple-editor/page-block-display/base/links\\\",[],[[\\\"@link\\\",\\\"@isLink\\\",\\\"@previewDevice\\\",\\\"@website\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/base/container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/base/contents-container/component\", [\"exports\", \"@glimmer/component\", \"client/utils/nventor\"], function (_exports, _component, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\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  let SimpleEditorPageBlockDisplayBaseContentsContainerComponent = _exports.default = (_dec = Ember.computed('args.onClickContent'), _dec2 = Ember._action, _class = class SimpleEditorPageBlockDisplayBaseContentsContainerComponent extends _component.default {\n    get hasOnClickContent() {\n      if (this.args.previewDevice) {\n        return;\n      }\n      return this.args.onClickContent && typeof this.args.onClickContent === 'function';\n    }\n    onClickContent(pageBlock, contentId, event) {\n      if (_nventor.default.isNotNilOrEmpty(this.args?.previewDevice)) {\n        event.preventDefault();\n        event.stopPropagation();\n      }\n      if (!this.args.onClickContent) {\n        return;\n      }\n      return this.args.onClickContent(pageBlock, contentId, event);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"hasOnClickContent\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"hasOnClickContent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClickContent\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onClickContent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/base/contents-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"L/neYvLr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"&attrs\\\",\\\"@pageBlock\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"hasOnClickContent\\\"]],\\\"simple-editor__content-block--has-click-content\\\",\\\"\\\"],null]],[12,\\\"data-content-id\\\",[23,1,[\\\"_data\\\",\\\"contentId\\\"]]],[13,2],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClickContent\\\"]],[23,3,[]],[23,1,[\\\"_data\\\",\\\"contentId\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[14,4,[[23,0,[]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/base/contents-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/base/image/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\", \"client/utils/nventor\", \"client/utils/play-muted-video\", \"client/config/environment\"], function (_exports, _component, _ramda, _emberConcurrencyDecorators, _nventor, _playMutedVideo, _environment) {\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, _dec0, _dec1, _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, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 SimpleEditorPageBlockDisplayBaseImageComponent = _exports.default = (_dec = Ember.inject.service('constants'), _dec2 = Ember.inject.service('simple-editor'), _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember.computed('args.options.{hasHorizontalPosition,hasVerticalPosition,hasContentAlign,hasImagePosition,hasImageSize,hasImageAlign,hasImageSizeCustom}', 'args.content._data.{displayStyle,positionHorizontal,positionVertical,contentAlign,imagePosition,imageSize,imageAlign,imageSizeCustom,imageSizeUnit}'), _dec13 = Ember.computed('args.content._data.hasText', 'args.content._data.textContentBlock._data.{title,template}', 'args.options.hasText'), _dec14 = Ember.computed('args.options.hasInteraction', 'args.content._data.{hasInteraction,interactionMethod,buttonsPageBlock._data.contents}', 'args.content._data.buttonsPageBlock._data.contents.length'), _dec15 = Ember.computed('args.content._data.{imageSize,imageSizeCustom,imageSizeUnit}'), _dec16 = Ember.computed('args.content._data.displayStyle'), _dec17 = Ember.computed('args.content._data.textContentBlock._data.{fontColor}'), _dec18 = Ember.computed('args.content._data.textContentBlock._data.{fontColor,fontFamilyTitle}'), _dec19 = Ember.computed('args.content._data.textContentBlock._data.titleStyles.[]'), _dec20 = Ember.computed('args.previewDevice', 'desktop.src', 'tablet.src', 'mobile.src', 'isSetup', 'args.content.synced'), _dec21 = Ember.computed('args.previewDevice', 'desktop.src', 'tablet.src', 'mobile.src', 'isSetup', 'args.content.synced'), _dec22 = Ember.computed('args.previewDevice', 'desktop.src', 'tablet.src', 'mobile.src', 'isSetup', 'args.content.synced'), _dec23 = Ember.computed('args.previewDevice', 'desktop.src', 'tablet.src', 'mobile.src', 'isSetup', 'args.content.synced'), _dec24 = Ember.computed('args.content._data.{hasBackground,backgroundColor,backgroundColorTransparency}'), _dec25 = Ember.computed('args.content._data.interactionMethod'), _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _dec31 = Ember._action, _dec32 = Ember._action, _dec33 = Ember._action, _dec34 = Ember._action, _dec35 = Ember._action, _class = class SimpleEditorPageBlockDisplayBaseImageComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"simpleEditorService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"imageElement\", _descriptor3, this);\n      _initializerDefineProperty(this, \"calculationMethod\", _descriptor4, this);\n      // width or height\n      _initializerDefineProperty(this, \"desktopSrc\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabletSrc\", _descriptor6, this);\n      _initializerDefineProperty(this, \"mobileSrc\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isSetup\", _descriptor8, this);\n      _initializerDefineProperty(this, \"width\", _descriptor9, this);\n      _initializerDefineProperty(this, \"height\", _descriptor0, this);\n      _initializerDefineProperty(this, \"desktop\", _descriptor1, this);\n      _initializerDefineProperty(this, \"tablet\", _descriptor10, this);\n      _initializerDefineProperty(this, \"mobile\", _descriptor11, this);\n      _defineProperty(this, \"devices\", ['desktop', 'tablet', 'mobile']);\n      _defineProperty(this, \"maxHiDPIWidth\", Number(this.args.maxHiDPIWidth) || 3000);\n      _defineProperty(this, \"desktopMaxWidth\", this.args.desktopMaxWidth || 3000);\n      _defineProperty(this, \"tabletMaxWidth\", this.args.tabletMaxWidth || 1300);\n      _defineProperty(this, \"mobileMaxWidth\", this.args.mobileMaxWidth || 600);\n      _defineProperty(this, \"desktopHeight\", this.args.desktopHeight || '');\n      _defineProperty(this, \"tabletHeight\", this.args.tabletHeight || '');\n      _defineProperty(this, \"mobileHeight\", this.args.mobileHeight || '');\n      _defineProperty(this, \"transformPrefix\", this.args.transformPrefix || '');\n      _defineProperty(this, \"autoCalculateHeight\", this.args.autoCalculateHeight || false);\n      const owner = Ember.getOwner(this);\n      this.websiteService = owner.hasRegistration('service:website') ? owner.lookup('service:website') : null;\n      this.setupTitleCustomFontTask.perform();\n      let maxHeight = Number(this.args.maxHeight) || 3000;\n      if (maxHeight > 3000) {\n        maxHeight = 3000;\n      }\n      this.maxHeight = maxHeight;\n      try {\n        this._setupResizeTransform();\n        this.isSetup = true;\n      } catch (error) {\n        console.error('Failed to set up image sources on first paint:', error);\n      }\n    }\n    *setupTitleCustomFontTask() {\n      const fontFamilyTitle = this.args.content?._data?.textContentBlock?._data?.fontFamilyTitle;\n      if (!fontFamilyTitle) {\n        return;\n      }\n      const customFonts = yield this.simpleEditorService.getCustomFontsTask.perform();\n      const customFont = customFonts.find(font => font.value === fontFamilyTitle);\n      if (!customFont) {\n        return;\n      }\n      if (customFont?.fontUrl) {\n        yield this.simpleEditorService.addFontFaceToHeaderTask.perform(customFont);\n        return;\n      }\n      yield this.simpleEditorService.addStyleToHeaderTask.perform(customFont?.href);\n    }\n    get maxWidth() {\n      let maxWidth = Number(this.args.maxWidth) || 3000;\n      if (maxWidth > 3000) {\n        return 3000;\n      }\n      return maxWidth;\n    }\n    get isLikelyLcpImage() {\n      const lcpImageUuid = this.websiteService?.lcpImageUuid;\n      const image = this.args.content?._data?.image || {};\n      const contentImageUuid = image?.mobile?.uuid || image?.desktop?.uuid || '';\n      if (!lcpImageUuid || !contentImageUuid) {\n        return false;\n      }\n      return contentImageUuid === lcpImageUuid;\n    }\n    get isVisibleFirstFoldImage() {\n      const pageBlockIndex = Number(this.args.pageBlockIndex);\n      const contentIndex = Number(this.args.index);\n      if (Number.isNaN(pageBlockIndex) || Number.isNaN(contentIndex)) {\n        return false;\n      }\n      return pageBlockIndex === 0 && contentIndex === 0;\n    }\n    get loadingProcedure() {\n      if (this.isLikelyLcpImage || this.isVisibleFirstFoldImage) {\n        return 'eager';\n      }\n      return 'lazy';\n    }\n    get decodingProcedure() {\n      if (this.isLikelyLcpImage) {\n        return 'sync';\n      }\n      return 'async';\n    }\n    get fetchPriority() {\n      if (this.isLikelyLcpImage) {\n        return 'high';\n      }\n      return 'auto';\n    }\n    get simpleEditorPageBlockDisplayBaseContainerClassNames() {\n      const classNames = ['simple-editor__image-content-position-container'];\n      classNames.push(`display-style-${this.args?.pageBlock?._data?.settings?.displayStyle}`);\n      return classNames.join(' ');\n    }\n    get containerClassNames() {\n      const classNames = ['simple-editor__image-container'];\n      const options = this.args.options || {};\n      const content = this.args.content;\n      if (options?.hasHorizontalPosition) {\n        const positionHorizontal = content?._data?.positionHorizontal || '';\n        classNames.push(`simple-editor__image-content-position-horizontal__${positionHorizontal}`);\n      }\n      if (options?.hasVerticalPosition) {\n        const positionVertical = content?._data?.positionVertical || '';\n        classNames.push(`simple-editor__image-content-position-vertical__${positionVertical}`);\n      }\n      if (options?.hasContentAlign) {\n        const contentAlign = content?._data?.contentAlign || '';\n        classNames.push(`simple-editor__image-content-align__${contentAlign}`);\n      }\n      if (options?.hasImagePosition) {\n        const imagePosition = content?._data?.imagePosition || '';\n        classNames.push(`simple-editor__image-content-image-order__${imagePosition}`);\n      }\n      if (options?.hasImageAlign) {\n        const imageAlign = content?._data?.imageAlign || '';\n        classNames.push(`simple-editor__image-content-image-align__${imageAlign}`);\n      }\n      if (options?.hasImageSize || options?.hasImageSizeCustom) {\n        const imageSize = content?._data?.imageSize || '';\n        classNames.push(`simple-editor__image-content-image-size__${imageSize}`);\n      }\n      return _ramda.default.join(' ', classNames);\n    }\n    get hasText() {\n      const title = this.args.content?._data?.textContentBlock?._data?.title;\n      if (title) {\n        return true;\n      }\n      const template = this.args.content?._data?.textContentBlock?._data?.template;\n      if (template) {\n        return true;\n      }\n      return false;\n    }\n    get hasInteractionButtons() {\n      // hasInteraction default to true if not set\n      const isAllowedInteraction = true; // this.args.options?.hasInteraction ?? true ?? false\n      if (!isAllowedInteraction) {\n        return false;\n      }\n      const hasInteraction = true; // this.args.content?._data?.hasInteraction\n      if (!hasInteraction) {\n        return false;\n      }\n      const interactionMethod = this.args.content?._data?.interactionMethod;\n      if (interactionMethod === 'link') {\n        return false;\n      }\n      const buttonContents = this.args.content?._data?.buttonsPageBlock?._data?.contents || [];\n      const hasLabelledButton = _ramda.default.any(buttonContent => _nventor.default.isNotNilOrEmpty(buttonContent?._data?.label))(buttonContents);\n      if (!hasLabelledButton) {\n        return false;\n      }\n      return true;\n    }\n    get isUserAgentIOsSafari() {\n      try {\n        const userAgent = _ramda.default.pipe(_ramda.default.propOr('', 'userAgent'), _ramda.default.toLower)(navigator);\n        const isIOs = _ramda.default.anyPass([_ramda.default.includes('iphone'), _ramda.default.includes('ipad'), _ramda.default.includes('ipod')])(userAgent);\n        if (!isIOs) {\n          return false;\n        }\n        const isIOSSafari = _ramda.default.includes('safari')(userAgent);\n        return isIOSSafari;\n      } catch (e) {\n        return false;\n      }\n    }\n    get imageSizeCustomStyle() {\n      if (this.args.content?._data?.imageSize !== 'custom') {\n        return '';\n      }\n      const imageSizeCustom = Number(this.args.content?._data?.imageSizeCustom) || '';\n      const imageSizeUnit = this.args.content?._data?.imageSizeUnit || '';\n      const inlineStyle = [];\n      if (imageSizeCustom && imageSizeUnit) {\n        inlineStyle.push(`--image-custom-max-width: ${imageSizeCustom}${imageSizeUnit};`);\n      } else {\n        // default to 100% if invalid data\n        inlineStyle.push('--image-custom-max-width: 100%;');\n      }\n      return Ember.String.htmlSafe(inlineStyle.join(' '));\n    }\n    get isFullContainerBackground() {\n      if (this.args.content?._data?.displayStyle === 'text-and-image-split-one') {\n        return true;\n      }\n      if (this.args.content?._data?.displayStyle === 'top-down-one') {\n        return true;\n      }\n      return false;\n    }\n    get fontStyle() {\n      const inlineStyle = [];\n      const fontColor = this.args.content?._data?.textContentBlock?._data?.fontColor;\n      if (fontColor) {\n        inlineStyle.push(`--font-color: ${fontColor};`);\n      }\n      return Ember.String.htmlSafe(inlineStyle.join(' '));\n    }\n    get fontStyleTitle() {\n      const inlineStyle = [];\n      const fontFamilyTitle = this.args.content?._data?.textContentBlock?._data?.fontFamilyTitle;\n      if (fontFamilyTitle) {\n        inlineStyle.push(`--font-family: ${fontFamilyTitle};`);\n      }\n      return `${Ember.String.htmlSafe(inlineStyle.join(' '))} ${this.fontStyle}`;\n    }\n    get titleStylesClassNames() {\n      const titleStyles = this.args.content?._data?.textContentBlock?._data?.titleStyles || [];\n      const styles = _ramda.default.join(' ')(titleStyles);\n      return Ember.String.htmlSafe(styles);\n    }\n    _getPreviewImageData() {\n      if (!this.isSetup) {\n        return {};\n      }\n      const previewDevice = this.args.previewDevice || '';\n      const imageData = this[previewDevice] || {};\n      if (!imageData?.src) {\n        return {};\n      }\n      return imageData;\n    }\n    get previewImageSrc() {\n      const previewImageData = this._getPreviewImageData();\n      return previewImageData?.src;\n    }\n    get previewImageSrcSet() {\n      const previewImageData = this._getPreviewImageData();\n      return previewImageData?.srcSet;\n    }\n    get previewImageAspectRatioWidth() {\n      const previewImageData = this._getPreviewImageData();\n      return previewImageData?.aspectRatioWidth;\n    }\n    get previewImageAspectRatioHeight() {\n      const previewImageData = this._getPreviewImageData();\n      return previewImageData?.aspectRatioHeight;\n    }\n    get imageContentBackgroundColorStyle() {\n      const content = this.args.content || {};\n      if (!content?._data?.hasBackground) {\n        return Ember.String.htmlSafe('');\n      }\n      const backgroundColorStyle = content?._data?.backgroundColorStyle || '';\n      if (backgroundColorStyle === 'none') {\n        return Ember.String.htmlSafe('');\n      }\n      const backgroundColor = content?._data?.backgroundColor || '';\n      if (!backgroundColor) {\n        return Ember.String.htmlSafe('');\n      }\n      const transparency = content?._data?.backgroundColorTransparency || 0;\n      const backgroundColorRgba = this.convertHexToRgbaString(backgroundColor, transparency);\n      return Ember.String.htmlSafe(`background-color: ${backgroundColorRgba};`);\n    }\n    get hasLink() {\n      return this.args.content?._data?.interactionMethod === 'link';\n    }\n    setup(element) {\n      this.imageElement = element;\n      const content = this.args.content;\n      const ratio = this.args.ratio;\n      const desktopImageData = this._getImageDataForDevice('desktop');\n      const mimeType = desktopImageData.imageMimeType || '';\n      if (_ramda.default.includes('gif', mimeType)) {\n        const videoElement = this._convertGifToVideo(desktopImageData);\n        const pictureElement = element.querySelector('picture');\n        pictureElement.replaceWith(videoElement);\n        // } else if (ratio) {\n        // setupScaleCropTransform\n      } else {\n        this._setupResizeTransform();\n      }\n\n      // Add onload event listener to the image element\n      const allImages = element.querySelectorAll('img');\n      _ramda.default.forEach(image => {\n        image.onload = () => {\n          if (this.args.onloadImages) {\n            setTimeout(() => {\n              this.args.onloadImages({\n                index: this.args.index,\n                imageElement: image\n              });\n            }, 10);\n          }\n          image.onload = null;\n        };\n        image.onerror = () => {\n          console.error('error loading image');\n        };\n      })(allImages);\n\n      // Add onload event listener to image to video\n      /** @type {HTMLVideoElement[]} */\n      const allVideos = element.querySelectorAll('video');\n      _ramda.default.forEach(/** @param {HTMLVideoElement} video */\n      video => {\n        video.onloadstart = () => {\n          if (this.args.onloadVideos) {\n            setTimeout(() => {\n              this.args.onloadVideos({\n                index: this.args.index,\n                videoElement: video\n              });\n            }, 10);\n          }\n          video.onload = null;\n        };\n        video.onerror = () => {\n          console.error('error loading video');\n        };\n        video.load();\n      })(allVideos);\n      this.isSetup = true;\n    }\n    _setupResizeTransform() {\n      const devices = this.devices || [];\n      const imagesGridStyle = this.args.pageBlock?._data?.settings?.imagesGridStyle;\n      _ramda.default.forEach(device => {\n        const imageData = this._getImageDataForDevice(device);\n        const mimeType = imageData.imageMimeType || '';\n        const deviceData = this._calculateSizesFromWidth(device);\n        const uuid = imageData?.uuid;\n        deviceData.uuid = uuid;\n        const aspectRatio = this._calculateRenderedAspectRatio(device, imagesGridStyle);\n        deviceData.aspectRatioWidth = aspectRatio.width;\n        deviceData.aspectRatioHeight = aspectRatio.height;\n        const imageWidth = Math.round(deviceData.width * 1.35);\n        const src = this._generateSrc({\n          uuid,\n          width: imageWidth,\n          imagesGridStyle\n        });\n        let doubleWidth = Math.min(imageWidth * 2, this.maxHiDPIWidth);\n        if (doubleWidth > 3000) {\n          doubleWidth = 3000;\n        }\n        deviceData.src = src;\n        if (_ramda.default.includes('svg', mimeType)) {\n          deviceData.srcSet = src;\n        } else {\n          const double = this._generateSrc({\n            uuid,\n            width: doubleWidth,\n            imagesGridStyle\n          });\n          deviceData.srcSet = `${src} 1x, ${double} 2x`;\n        }\n        Ember.set(this, device, deviceData);\n      })(devices);\n    }\n    _getDeviceMaxWidth(device) {\n      if (device === 'desktop') {\n        return this.desktopMaxWidth;\n      } else if (device === 'tablet') {\n        return this.tabletMaxWidth;\n      } else if (device === 'mobile') {\n        return this.mobileMaxWidth;\n      }\n    }\n\n    /**\n     * Intrinsic dimensions of the image as the CDN will actually deliver it.\n     * These are rendered as the img/source width & height attributes so the\n     * browser can reserve the correct box before the image loads (avoids CLS).\n     * CSS still drives the painted size, so the aspect ratio is unchanged.\n     */\n    _calculateRenderedAspectRatio(device, imagesGridStyle) {\n      if (imagesGridStyle === this.constants.imagesGridStyle.square) {\n        // scale_crop always returns a square regardless of the source image\n        return {\n          width: 1,\n          height: 1\n        };\n      }\n      const imageData = this._getImageDataForDevice(device);\n      const intrinsicWidth = Number(imageData.imageWidth);\n      const intrinsicHeight = Number(imageData.imageHeight);\n      if (!intrinsicWidth || !intrinsicHeight) {\n        return {};\n      }\n      return {\n        width: intrinsicWidth,\n        height: intrinsicHeight\n      };\n    }\n    _calculateSizesFromWidth(device) {\n      const imageData = this._getImageDataForDevice(device);\n      let width = this.maxWidth;\n      if (!width) {\n        width = imageData.imageWidth;\n      }\n      const deviceMaxWidth = this._getDeviceMaxWidth(device);\n      if (width > deviceMaxWidth) {\n        width = deviceMaxWidth;\n      }\n      const heightMultiplier = imageData.imageHeight / imageData.imageWidth;\n      let height = Math.round(width * heightMultiplier);\n      const maxHeight = this.maxHeight || 3000;\n      if (height > maxHeight) {\n        height = maxHeight;\n        width = Math.round(height / heightMultiplier);\n      }\n      return {\n        width,\n        height\n      };\n    }\n    _getGifToVideoSrc(uuid, type) {\n      const cdnUrl = _environment.default.cdnUrl;\n      return `${cdnUrl}/${uuid}/gif2video/-/format/${type}/-/preview/`;\n    }\n    _convertGifToVideo(imageData) {\n      try {\n        const imageAlt = imageData?.imageAlt || '';\n        const uuid = imageData.uuid;\n        const cdnUrl = _environment.default.cdnUrl;\n        const originalSrc = `${cdnUrl}/${uuid}/`;\n\n        /** @type {HTMLVideoElement} */\n        const videoElement = document.createElement('video');\n        videoElement.classList.add('simple-editor__images-to-video');\n\n        // Replace video element with fallback image\n        const replaceWithFallbackImage = () => {\n          try {\n            const imageElement = document.createElement('img');\n            imageElement.setAttribute('src', originalSrc); // Placeholder image URL\n\n            imageElement.setAttribute('alt', imageAlt);\n            imageElement.classList.add('fallback-image');\n            const domVideoElement = document.querySelector(`[data-blink-uuid=\"${uuid}\"]`);\n            domVideoElement.poster = `${src}/`;\n          } catch (error) {\n            console.error('Error while replaceWithFallbackImage: ', error);\n          }\n        };\n        videoElement.setAttribute('poster', `${originalSrc}/-/preview/-/blur/20/`);\n\n        // reserve the same box the replaced <picture> had, so swapping in the\n        // video does not shift the layout\n        const intrinsicWidth = Number(imageData.imageWidth);\n        const intrinsicHeight = Number(imageData.imageHeight);\n        if (intrinsicWidth && intrinsicHeight) {\n          videoElement.setAttribute('width', intrinsicWidth);\n          videoElement.setAttribute('height', intrinsicHeight);\n        }\n        videoElement.setAttribute('preload', 'none');\n        videoElement.setAttribute('autoplay', 'autoplay');\n        videoElement.setAttribute('loop', 'true');\n        videoElement.setAttribute('muted', 'true');\n        videoElement.setAttribute('defaultmuted', 'true');\n        videoElement.setAttribute('webkit-playsinline', 'webkit-playsinline');\n        videoElement.setAttribute('playsinline', 'playsinline');\n\n        // iOS Safari webm playing issue - It should always request mp4 format\n        // https://forums.developer.apple.com/forums/thread/748768\n        if (!this.isUserAgentIOsSafari) {\n          const sourceVideoWebM = document.createElement('source');\n          const srcWebm = this._getGifToVideoSrc(uuid, 'webm');\n          sourceVideoWebM.setAttribute('src', srcWebm);\n          sourceVideoWebM.setAttribute('type', 'video/webm');\n          videoElement.appendChild(sourceVideoWebM);\n        }\n        const sourceVideoMp4 = document.createElement('source');\n        const srcMp4 = this._getGifToVideoSrc(uuid, 'mp4');\n        sourceVideoMp4.setAttribute('src', srcMp4);\n        sourceVideoMp4.setAttribute('type', 'video/mp4');\n        videoElement.appendChild(sourceVideoMp4);\n\n        // When on load call the play function\n        videoElement.addEventListener('loadeddata', () => {\n          clearTimeout(loadTimeout);\n          return (0, _playMutedVideo.default)(videoElement);\n        });\n\n        // Start timeout to check for loading issues\n        const loadTimeout = setTimeout(() => {\n          try {\n            const domVideoElement = document.querySelector(`[data-blink-uuid=\"${uuid}\"]`);\n            if (!domVideoElement?.readyState) {\n              return;\n            }\n            if (domVideoElement.readyState < 3) {\n              // If the video is not at least 'HAVE_FUTURE_DATA'\n              console.log('timeout');\n              replaceWithFallbackImage();\n            }\n          } catch (error) {\n            console.error('Error while timeout: ', error);\n          }\n        }, 5000);\n\n        // Handle stalled or failed to load\n        videoElement.addEventListener('stalled', event => {\n          console.log('stalled');\n          replaceWithFallbackImage(event.target);\n        });\n        videoElement.addEventListener('error', event => {\n          console.log('error');\n          replaceWithFallbackImage(event.target);\n        });\n        return videoElement;\n      } catch (error) {\n        console.error('error converting gif to video: ', error);\n        return document.createElement('video');\n      }\n    }\n    _getImageDataForDevice(device) {\n      const imageData = this.args.content?._data?.image?.[device] || {};\n      return imageData;\n    }\n    _generateSrc({\n      uuid,\n      width,\n      imagesGridStyle\n    }) {\n      if (width > 3000) {\n        width = 3000;\n      }\n      const cdnUrl = _environment.default.cdnUrl;\n      const urlHashMap = {\n        [this.constants.imagesGridStyle.original]: `${cdnUrl}/${uuid}/-/resize/${width}x/-/format/webp/-/progressive/yes/`,\n        [this.constants.imagesGridStyle.square]: `${cdnUrl}/${uuid}/-/scale_crop/${width}x${width}/smart/-/format/webp/-/progressive/yes/`\n      };\n      return urlHashMap[imagesGridStyle] || urlHashMap.original;\n    }\n    clickContent(pageBlock, contentId, event) {\n      if (_nventor.default.isNotNilOrEmpty(this.args?.previewDevice)) {\n        event.preventDefault();\n        event.stopPropagation();\n      }\n      if (this.args.onClickContent) {\n        this.args.onClickContent(pageBlock, contentId, event);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"simpleEditorService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"imageElement\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"calculationMethod\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'width';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"desktopSrc\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabletSrc\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"mobileSrc\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isSetup\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"width\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"height\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"desktop\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"tablet\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"mobile\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTitleCustomFontTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTitleCustomFontTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"containerClassNames\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"containerClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasText\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"hasText\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasInteractionButtons\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"hasInteractionButtons\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"imageSizeCustomStyle\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"imageSizeCustomStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isFullContainerBackground\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"isFullContainerBackground\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fontStyle\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"fontStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fontStyleTitle\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"fontStyleTitle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"titleStylesClassNames\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"titleStylesClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previewImageSrc\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"previewImageSrc\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previewImageSrcSet\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"previewImageSrcSet\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previewImageAspectRatioWidth\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"previewImageAspectRatioWidth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previewImageAspectRatioHeight\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"previewImageAspectRatioHeight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"imageContentBackgroundColorStyle\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"imageContentBackgroundColorStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasLink\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"hasLink\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setupResizeTransform\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"_setupResizeTransform\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getDeviceMaxWidth\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"_getDeviceMaxWidth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_calculateRenderedAspectRatio\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"_calculateRenderedAspectRatio\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_calculateSizesFromWidth\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"_calculateSizesFromWidth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getGifToVideoSrc\", [_dec31], Object.getOwnPropertyDescriptor(_class.prototype, \"_getGifToVideoSrc\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_convertGifToVideo\", [_dec32], Object.getOwnPropertyDescriptor(_class.prototype, \"_convertGifToVideo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getImageDataForDevice\", [_dec33], Object.getOwnPropertyDescriptor(_class.prototype, \"_getImageDataForDevice\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_generateSrc\", [_dec34], Object.getOwnPropertyDescriptor(_class.prototype, \"_generateSrc\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clickContent\", [_dec35], Object.getOwnPropertyDescriptor(_class.prototype, \"clickContent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/base/image/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"um6jinNy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@options\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@pictureClassNames\\\",\\\"@imgClassNames\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"not\\\",[[23,5,[\\\"requireImage\\\"]]],null],[23,1,[\\\"_data\\\",\\\"image\\\",\\\"desktop\\\",\\\"uuid\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"class\\\",[23,0,[\\\"containerClassNames\\\"]]],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@pageBlock\\\",\\\"@content\\\",\\\"@isLink\\\",\\\"@link\\\",\\\"@flattenedMenu\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\"],[[23,7,[]],[23,3,[]],[23,2,[]],[23,1,[]],[23,0,[\\\"hasLink\\\"]],[23,1,[\\\"_data\\\",\\\"link\\\"]],[23,4,[]],[28,\\\"if\\\",[[23,0,[\\\"isFullContainerBackground\\\"]],[23,1,[\\\"_data\\\",\\\"hasBackground\\\"]],false],null],[23,1,[\\\"_data\\\",\\\"backgroundColorStyle\\\"]],[23,1,[\\\"_data\\\",\\\"backgroundColor\\\"]],[23,1,[\\\"_data\\\",\\\"backgroundColorTransparency\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"\\\\n        simple-editor__image-content-overlay\\\\n      \\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"clickContent\\\"]],[23,2,[]],[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"contentId\\\"]],\\\"_image\\\"],null]],null]]],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__image-picture-container\\\"],[11,\\\"style\\\",[23,0,[\\\"imageSizeCustomStyle\\\"]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__image-picture-position-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"image\\\",\\\"desktop\\\",\\\"uuid\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"picture\\\",true],[11,\\\"class\\\",[29,[\\\"simple-editor__images-picture \\\",[23,8,[]],\\\" u-tappable\\\"]]],[8],[0,\\\"\\\\n                \\\"],[7,\\\"img\\\",true],[11,\\\"alt\\\",[23,1,[\\\"_data\\\",\\\"imageAlt\\\"]]],[11,\\\"class\\\",[23,9,[]]],[11,\\\"loading\\\",[23,0,[\\\"loadingProcedure\\\"]]],[11,\\\"decoding\\\",[23,0,[\\\"decodingProcedure\\\"]]],[11,\\\"src\\\",[23,0,[\\\"previewImageSrc\\\"]]],[11,\\\"srcset\\\",[23,0,[\\\"previewImageSrcSet\\\"]]],[11,\\\"width\\\",[23,0,[\\\"previewImageAspectRatioWidth\\\"]]],[11,\\\"height\\\",[23,0,[\\\"previewImageAspectRatioHeight\\\"]]],[11,\\\"fetchpriority\\\",[23,0,[\\\"fetchPriority\\\"]]],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"picture\\\",true],[11,\\\"class\\\",[29,[\\\"simple-editor__images-picture \\\",[23,8,[]]]]],[8],[0,\\\"\\\\n                \\\"],[7,\\\"source\\\",true],[10,\\\"data-imgtype\\\",\\\"optimized-image\\\"],[10,\\\"data-source\\\",\\\"desktop\\\"],[10,\\\"media\\\",\\\"(min-width: 800px)\\\"],[10,\\\"sizes\\\",\\\"(min-width: 800px) 50vw, 100vw\\\"],[11,\\\"data-blink-uuid\\\",[23,0,[\\\"desktop\\\",\\\"uuid\\\"]]],[11,\\\"srcset\\\",[23,0,[\\\"desktop\\\",\\\"srcSet\\\"]]],[11,\\\"width\\\",[23,0,[\\\"desktop\\\",\\\"aspectRatioWidth\\\"]]],[11,\\\"height\\\",[23,0,[\\\"desktop\\\",\\\"aspectRatioHeight\\\"]]],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"source\\\",true],[10,\\\"data-imgtype\\\",\\\"optimized-image\\\"],[10,\\\"data-source\\\",\\\"tablet\\\"],[10,\\\"media\\\",\\\"(min-width: 500px)\\\"],[10,\\\"sizes\\\",\\\"(min-width: 500px) 50vw, 100vw\\\"],[11,\\\"data-blink-uuid\\\",[23,0,[\\\"tablet\\\",\\\"uuid\\\"]]],[11,\\\"srcset\\\",[23,0,[\\\"tablet\\\",\\\"srcSet\\\"]]],[11,\\\"width\\\",[23,0,[\\\"tablet\\\",\\\"aspectRatioWidth\\\"]]],[11,\\\"height\\\",[23,0,[\\\"tablet\\\",\\\"aspectRatioHeight\\\"]]],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"img\\\",true],[11,\\\"alt\\\",[23,1,[\\\"_data\\\",\\\"imageAlt\\\"]]],[11,\\\"class\\\",[23,9,[]]],[11,\\\"loading\\\",[23,0,[\\\"loadingProcedure\\\"]]],[11,\\\"decoding\\\",[23,0,[\\\"decodingProcedure\\\"]]],[11,\\\"data-blink-uuid\\\",[23,0,[\\\"mobile\\\",\\\"uuid\\\"]]],[11,\\\"src\\\",[23,0,[\\\"mobile\\\",\\\"src\\\"]]],[11,\\\"srcset\\\",[23,0,[\\\"mobile\\\",\\\"srcSet\\\"]]],[10,\\\"sizes\\\",\\\"100vw\\\"],[11,\\\"width\\\",[23,0,[\\\"mobile\\\",\\\"aspectRatioWidth\\\"]]],[11,\\\"height\\\",[23,0,[\\\"mobile\\\",\\\"aspectRatioHeight\\\"]]],[11,\\\"fetchpriority\\\",[23,0,[\\\"fetchPriority\\\"]]],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"hasText\\\"]],[23,0,[\\\"hasInteractionButtons\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"class\\\",[23,0,[\\\"simpleEditorPageBlockDisplayBaseContainerClassNames\\\"]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@hasBackground\\\"],[[23,7,[]],[23,3,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__image-content-container\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"class\\\",\\\"simple-editor__image-content\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"clickContent\\\"]],[23,2,[]],[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"contentId\\\"]],\\\"_text\\\"],null]],null]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\"],[[23,7,[]],[23,3,[]],[28,\\\"if\\\",[[23,0,[\\\"isFullContainerBackground\\\"]],false,[23,1,[\\\"_data\\\",\\\"hasBackground\\\"]]],null],[23,1,[\\\"_data\\\",\\\"backgroundColorStyle\\\"]],[23,1,[\\\"_data\\\",\\\"backgroundColor\\\"]],[23,1,[\\\"_data\\\",\\\"backgroundColorTransparency\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"hasText\\\"]],[23,1,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"title\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"h1\\\",true],[11,\\\"class\\\",[29,[\\\"\\\\n                    simple-editor__text-title\\\\n                    \\\",[23,1,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"fontSize\\\"]],\\\"\\\\n                    \\\",[23,0,[\\\"titleStylesClassNames\\\"]],\\\"\\\\n                  \\\"]]],[11,\\\"style\\\",[23,0,[\\\"fontStyleTitle\\\"]]],[8],[0,\\\"\\\\n                  \\\"],[1,[23,1,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"title\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"hasText\\\"]],[23,1,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"template\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"simple-editor/page-block-display/base/text/advanced\\\",[[12,\\\"class\\\",[29,[\\\"simple-editor__text-text \\\",[23,1,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"fontSize\\\"]]]]],[12,\\\"style\\\",[23,0,[\\\"fontStyle\\\"]]]],[[\\\"@template\\\",\\\"@previewDevice\\\"],[[23,1,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"template\\\"]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasInteractionButtons\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"simple-editor/page-block-display/buttons\\\",[],[[\\\"@pageBlock\\\",\\\"@dirty\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@options\\\",\\\"@onClickContent\\\"],[[23,1,[\\\"_data\\\",\\\"buttonsPageBlock\\\"]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__image-placeholder-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"simple-editor__image-placeholder fas fa-image\\\"],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/base/image/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/base/links/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayBaseLinksComponent extends _component.default {\n    get isLink() {\n      if (this.args.isPreview) {\n        return false;\n      }\n      if (!this.args.website) {\n        return false;\n      }\n      const isLink = this.args.isLink ?? true; // default to true if not provided\n      return isLink;\n    }\n    get linkData() {\n      if (!this.isLink) {\n        return '';\n      }\n      const website = this.args.website;\n      if (this.args.linkUrl) {\n        return {\n          href: this.args.linkUrl,\n          title: this.args.linkTitle || this.args.linkUrl,\n          target: this.args.linkTarget || '_blank'\n        };\n      }\n      if (!website || !website?.getAllPagesFlattened) {\n        return {\n          href: '',\n          title: '',\n          target: ''\n        };\n      }\n      const flattenedMenu = website.getAllPagesFlattened();\n      const linkData = this.args?.link?._data || this.args?.link || {};\n      const linkType = linkData?.linkType;\n      const resourceKey = linkData?.linkResourceKey;\n      const resourceType = linkData?.linkResourceType;\n      const resourceName = linkData?.linkResourceName;\n      let href = linkData?.linkUrl || '';\n      const title = linkData?.linkTitle || '';\n      const target = linkData?.linkTarget || '';\n      if (linkType === 'url') {\n        return {\n          href,\n          title,\n          target\n        };\n      }\n      if (!website) {\n        // should always have website!\n        return {\n          href,\n          title,\n          target\n        };\n      }\n      if (linkType === 'pageAndCategory') {\n        const foundMenuItem = R.find(R.propEq('_key', resourceKey))(flattenedMenu) || {};\n        const pageUrl = R.propOr('', 'url')(foundMenuItem);\n        if (!pageUrl) {\n          return {\n            href: '',\n            title,\n            target\n          };\n        }\n        if (resourceType === 'category') {\n          href = `/shop/${website.shopUrlDisplay}/category/${pageUrl}`;\n        } else if (foundMenuItem?.isDynamicPage) {\n          href = pageUrl;\n        } else {\n          href = `/${pageUrl}`;\n        }\n      } else if (resourceType === 'product') {\n        href = `/shop/${website.shopUrlDisplay}/item/${resourceKey}`;\n      } else if (resourceType === 'blog') {\n        href = `/blogs/${resourceKey}/${resourceName}`;\n      } else if (resourceType === 'news') {\n        href = `/news/${resourceKey}/${resourceName}`;\n      } else if (resourceType === 'store-location') {\n        href = `/store-location/${resourceKey}`;\n      } else if (resourceType === 'flows') {\n        href = `/?f=${resourceKey}`;\n      }\n      return {\n        href,\n        title,\n        target\n      };\n    }\n  }\n  _exports.default = SimpleEditorPageBlockDisplayBaseLinksComponent;\n});","define(\"client/pods/components/simple-editor/page-block-display/base/links/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1z3GLcnn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isLink\\\"]],[23,0,[\\\"linkData\\\",\\\"href\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"a\\\",false],[12,\\\"rel\\\",\\\"noopener noreferrer nofollow\\\"],[12,\\\"href\\\",[23,0,[\\\"linkData\\\",\\\"href\\\"]]],[12,\\\"class\\\",\\\"simple-editor__link-container\\\"],[12,\\\"title\\\",[23,0,[\\\"linkData\\\",\\\"title\\\"]]],[12,\\\"target\\\",[23,0,[\\\"linkData\\\",\\\"target\\\"]]],[13,1],[8],[0,\\\"\\\\n    \\\"],[14,2],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__link-container\\\"],[13,1],[8],[0,\\\"\\\\n    \\\"],[14,2],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/base/links/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/base/text/advanced/component\", [\"exports\", \"ember-concurrency-decorators\", \"@glimmer/component\", \"ember-concurrency\"], function (_exports, _emberConcurrencyDecorators, _component, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlockDisplayBaseTextAdvancedComponent = _exports.default = (_dec = Ember.inject.service('simple-editor'), _class = class SimpleEditorPageBlockDisplayBaseTextAdvancedComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"simpleEditorService\", _descriptor, this);\n      this.setupCustomFontsTask.perform();\n    }\n    get htmlSafeContent() {\n      return Ember.String.htmlSafe(this.args.template || '');\n    }\n    *setupCustomFontsTask() {\n      const fontFamilies = this.extractFontFamiliesFromTemplate(this.args.template);\n      if (!fontFamilies.length) {\n        return;\n      }\n      const customFonts = yield this.simpleEditorService.getCustomFontsTask.perform();\n      const fontPromises = fontFamilies.map(fontFamily => {\n        const customFont = customFonts.find(font => font.value === fontFamily || font.familyName === fontFamily || font.label === fontFamily);\n        if (!customFont) {\n          return;\n        }\n        if (customFont?.fontUrl) {\n          return this.simpleEditorService.addFontFaceToHeaderTask.perform(customFont);\n        }\n        return this.simpleEditorService.addStyleToHeaderTask.perform(customFont?.href);\n      }).filter(Boolean);\n      yield (0, _emberConcurrency.all)(fontPromises);\n    }\n    extractFontFamiliesFromTemplate(template = '') {\n      const parsedDocument = new DOMParser().parseFromString(template, 'text/html');\n      const fontFamilies = new Set();\n      parsedDocument.querySelectorAll('[style]').forEach(element => {\n        const fontFamily = element.style.fontFamily;\n        if (!fontFamily) {\n          return;\n        }\n        fontFamilies.add(this.normalizeFontFamily(fontFamily));\n      });\n      return [...fontFamilies];\n    }\n    normalizeFontFamily(fontFamily) {\n      return fontFamily.split(',')[0].trim().replace(/^['\"]|['\"]$/g, '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"simpleEditorService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupCustomFontsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupCustomFontsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/base/text/advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1JGUQ8Og\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__text-template fr-view\\\"],[13,1],[8],[0,\\\"\\\\n  \\\"],[1,[23,0,[\\\"htmlSafeContent\\\"]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/base/text/advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/blogs/component\", [\"exports\", \"@glimmer/component\", \"client/config/environment\", \"client/utils/reserved-block-height\"], function (_exports, _component, _environment, _reservedBlockHeight) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\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  // measured against a rendered blog card, see blogs/blog-card\n  const CARD_CONTENT_PADDING = 20;\n  const AUTHOR_ROW_HEIGHT = 17;\n  const DATE_ROW_HEIGHT = 17;\n  const TAGS_ROW_HEIGHT = 30;\n\n  // .simple-editor__display-style_grid .simple-editor__items-item padding\n  const GRID_ITEM_PADDING = 20;\n  // .blog-card__container in _blogs.scss\n  const SLIDER_CARD_WIDTH = 300;\n  const TWO_PER_ROW_MAX_VIEWPORT_WIDTH = 720;\n  const TWO_PER_ROW = 2;\n  let SimpleEditorPageBlockDisplayBlogsComponent = _exports.default = (_dec = Ember._action, _dec2 = Ember._action, _class = class SimpleEditorPageBlockDisplayBlogsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"config\", _environment.default);\n    }\n    get tags() {\n      const tags = this.args.pageBlock?._data?.settings?.tags || [];\n      return tags.join(',');\n    }\n    get settings() {\n      return this.args.pageBlock?._data?.settings || {};\n    }\n    get isSlider() {\n      return this.settings.displayStyle === 'slider';\n    }\n\n    /**\n     * Everything a blog card takes up apart from its image. Mirrors blogs/blog-card.\n     */\n    get cardHeightBelowImage() {\n      const website = this.args.website;\n      const settings = this.settings;\n      const fontSize = website?.cardsFontSize || 'small';\n      let contentHeight = CARD_CONTENT_PADDING + GRID_ITEM_PADDING + (0, _reservedBlockHeight.getGridGap)();\n      if (website?.isDisplayBlogsAndNewsTitle) {\n        const titleLineCount = settings.lineCountTitle || website?.cardsLineCountForTitle;\n        contentHeight += (0, _reservedBlockHeight.getClampedTextHeight)(titleLineCount, fontSize);\n      }\n      if (website?.isDisplayBlogsAndNewsDescription) {\n        const descriptionLineCount = settings.lineCountDescription || website?.cardsLineCountForDescription;\n        contentHeight += (0, _reservedBlockHeight.getClampedTextHeight)(descriptionLineCount, fontSize);\n      }\n      if (website?.isDisplayBlogsAndNewsAuthor) {\n        contentHeight += AUTHOR_ROW_HEIGHT;\n      }\n      if (website?.isDisplayBlogsAndNewsDate) {\n        contentHeight += DATE_ROW_HEIGHT;\n      }\n      if (website?.isDisplayBlogsAndNewsTags) {\n        contentHeight += TAGS_ROW_HEIGHT;\n      }\n      return contentHeight;\n    }\n\n    /**\n     * Hand picked blogs never exceed their keys, tag based ones fill the page.\n     */\n    get itemCount() {\n      const settings = this.settings;\n      const itemsPerPage = parseInt(settings.itemsPerPage, 10) || 0;\n      const keysCount = settings.keys?.length || 0;\n      if (!keysCount) {\n        return itemsPerPage;\n      }\n      if (!itemsPerPage) {\n        return keysCount;\n      }\n      return Math.min(keysCount, itemsPerPage);\n    }\n    countItemsPerRow() {\n      // _mobile.scss caps every card at 40% with !important on phones, so a blog\n      // grid stays two up all the way down however narrow the viewport gets\n      if (window.innerWidth <= TWO_PER_ROW_MAX_VIEWPORT_WIDTH) {\n        return TWO_PER_ROW;\n      }\n      return parseInt(this.settings.gridRowItems, 10) || TWO_PER_ROW;\n    }\n\n    /**\n     * A blog card's image fills the card apart from the grid item padding.\n     */\n    calculateImageWidth(element, itemsPerRow) {\n      if (this.isSlider) {\n        return SLIDER_CARD_WIDTH;\n      }\n      const containerWidth = element.clientWidth || window.innerWidth;\n      const availableWidth = containerWidth - (0, _reservedBlockHeight.getGridGap)() * (itemsPerRow - 1);\n      return availableWidth / itemsPerRow - GRID_ITEM_PADDING;\n    }\n    applyReservedHeight(element) {\n      const itemsPerRow = this.countItemsPerRow();\n      const reservedHeight = (0, _reservedBlockHeight.calculateReservedBlockHeight)({\n        isSlider: this.isSlider,\n        itemsPerRow,\n        itemCount: this.itemCount,\n        imageWidth: this.calculateImageWidth(element, itemsPerRow),\n        imageRatio: this.settings.imageRatio || this.args.website?.blogsImagesRatio,\n        cardHeightBelowImage: this.cardHeightBelowImage\n      });\n      element.style.minHeight = `${reservedHeight}px`;\n    }\n\n    /**\n     * The placeholder is replaced by the real slider/grid once the blogs are\n     * fetched, so reserve its height up front to avoid the layout shift.\n     */\n    reserveHeight(element) {\n      this.blockElement = element.parentElement;\n      this.applyReservedHeight(element);\n      window.addEventListener('resize', this.handleViewportResize);\n    }\n\n    /**\n     * A reservation is only right for the viewport it was measured at. Once the\n     * real grid is on the page it can go entirely, otherwise measure again.\n     */\n    handleViewportResize() {\n      const wrapper = this.blockElement?.querySelector('.bigordr-blogs-wrapper');\n      if (!wrapper) {\n        return;\n      }\n      if ((0, _reservedBlockHeight.hasRenderedBlock)(wrapper)) {\n        wrapper.style.minHeight = '';\n        return;\n      }\n      this.applyReservedHeight(wrapper);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      window.removeEventListener('resize', this.handleViewportResize);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"reserveHeight\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"reserveHeight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleViewportResize\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"handleViewportResize\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/blogs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"taEPkCbg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"key\\\",\\\"@website\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,3,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,3,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__blogs-container-wrapper\\\\n  \\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\"],[[23,4,[]],[23,2,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"data-gjs-type\\\",\\\"bigordr-blogs-wrapper\\\"],[12,\\\"data-bigordr-blogs-tags\\\",[29,[[23,0,[\\\"tags\\\"]]]]],[12,\\\"data-bigordr-blogs-tags-sort-by\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"sortBy\\\"]]]]],[12,\\\"data-bigordr-blogs-tags-sort-direction\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"sortDirection\\\"]]]]],[12,\\\"data-bigordr-blogs-slider-type\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]]]]],[12,\\\"data-bigordr-blogs-slider-limit-by\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"itemsPerPage\\\"]]]]],[12,\\\"data-bigordr-blogs-slider-row-limit\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"gridRowItems\\\"]]]]],[12,\\\"data-bigordr-blogs-slider-title-line-count\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"lineCountTitle\\\"]]]]],[12,\\\"data-bigordr-blogs-slider-description-line-count\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"lineCountDescription\\\"]]]]],[12,\\\"data-bigordr-blogs-image-ratio\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"imageRatio\\\"]]]]],[12,\\\"data-bigordr-blogs-image-fit\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"imageFit\\\"]]]]],[12,\\\"data-bigordr-blogs-style\\\",[29,[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"style\\\"]]]]],[12,\\\"class\\\",\\\"bigordr-blogs-wrapper\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"reserveHeight\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"keys\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"data-gjs-type\\\",\\\"bigordr-blogs\\\"],[10,\\\"class\\\",\\\"bigordr-blogs u-hidden-placeholder\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"keys\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"img\\\",true],[10,\\\"data-gjs-type\\\",\\\"bigordr-blog\\\"],[11,\\\"src\\\",[23,0,[\\\"config\\\",\\\"cdnUrl\\\"]]],[11,\\\"data-bigordr-blog-key\\\",[29,[[23,1,[]]]]],[11,\\\"data-bigordr-blog-master\\\",[29,[[23,2,[\\\"_data\\\",\\\"_key\\\"]]]]],[10,\\\"class\\\",\\\"bigordr-blog\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/blogs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/buttons/button/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\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  let SimpleEditorPageBlockDisplayButtonsButtonComponent = _exports.default = (_dec = Ember.computed('args.content._data.{hasCustomStyle,buttonStyle}', 'args.pageBlock._data.settings.buttonStyle'), _dec2 = Ember.computed('args.content._data.{hasCustomStyle,fontStyles.[]}', 'args.pageBlock._data.settings.fontStyles.[]'), _class = class SimpleEditorPageBlockDisplayButtonsButtonComponent extends _component.default {\n    get buttonStyleClassName() {\n      const content = this.args.content;\n      const hasCustomStyle = content?._data?.hasCustomStyle;\n      let className = this.args.pageBlock?._data?.settings?.buttonStyle;\n      if (hasCustomStyle) {\n        className = content?._data?.buttonStyle;\n      }\n      return `simple-editor__${className}`;\n    }\n    get fontStylesClassNames() {\n      const hasCustomStyle = this.args.content?._data?.hasCustomStyle;\n      let fontStyles = this.args.pageBlock?._data?.settings?.fontStyles || [];\n      if (hasCustomStyle) {\n        fontStyles = this.args.content?._data?.fontStyles || [];\n      }\n      return R.join(' ')(fontStyles);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"buttonStyleClassName\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"buttonStyleClassName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fontStylesClassNames\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"fontStylesClassNames\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/buttons/button/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"adKHewOu\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlock\\\",\\\"@content\\\",\\\"@website\\\",\\\"@flattenedMenu\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-display/base/links\\\",[[12,\\\"class\\\",[29,[\\\"\\\\n      simple-editor__button\\\\n      \\\",[23,0,[\\\"buttonStyleClassName\\\"]],\\\"\\\\n      \\\",[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"fontSize\\\"]],\\\"\\\\n      \\\",[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"fontAlign\\\"]],\\\"\\\\n      \\\",[23,0,[\\\"fontStylesClassNames\\\"]],\\\"\\\\n    \\\"]]]],[[\\\"@pageBlock\\\",\\\"@content\\\",\\\"@link\\\",\\\"@website\\\",\\\"@flattenedMenu\\\"],[[23,1,[]],[23,2,[]],[23,2,[\\\"_data\\\",\\\"link\\\"]],[23,3,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[23,2,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/buttons/button/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/buttons/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, _ramda) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlockDisplayButtonsComponent = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlockDisplayButtonsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasButtonsAlign\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasButtonsAlign\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return _ramda.default.isNil(this.args.options?.hasButtonsAlign) ? true : this.args.options?.hasButtonsAlign;\n    }\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/buttons/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+IRjGOAb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"@onClickContent\\\",\\\"@dirty\\\",\\\"@website\\\",\\\"@pageBlock\\\",\\\"@flattenedMenu\\\",\\\"@previewDevice\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,5,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,5,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",[29,[\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__buttons-container\\\\n    \\\",[23,0,[\\\"blockClassName\\\"]],\\\"\\\\n    \\\",[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],\\\"\\\\n    \\\",[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"displaySize\\\"]],\\\"\\\\n    \\\",[28,\\\"if\\\",[[23,0,[\\\"hasButtonsAlign\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"fontAlign\\\"]],\\\"\\\"],null],\\\"\\\\n  \\\"]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\"],[[23,7,[]],[23,4,[]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,5,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-display/base/contents-container\\\",[],[[\\\"@onClickContent\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@content\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/page-block-display/buttons/button\\\",[],[[\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@flattenedMenu\\\"],[[23,1,[]],[23,5,[]],[23,4,[]],[23,6,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/buttons/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/custom/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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  let SimpleEditorPageBlockDisplayCustomComponent = _exports.default = (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _class = class SimpleEditorPageBlockDisplayCustomComponent extends _component.default {\n    setupCustomContents(contents = [], element) {\n      const modelContentCss = contents.find(model => model?._data?.contentType === 'css' && model?._data?.content?.length > 0);\n      if (modelContentCss) {\n        const css = modelContentCss._data.content.replace(/<style>/g, '').replace(/<\\/style>/g, '');\n        this.setupContentCss(element, css);\n      }\n      const modelContentHtml = contents.find(model => model?._data?.contentType === 'html' && model?._data?.content?.length > 0);\n      if (modelContentHtml) {\n        const html = modelContentHtml._data.content;\n        this.setupContentHtml(element, html);\n      }\n      const modelContentJs = contents.find(model => model?._data?.contentType === 'js' && model?._data?.content?.length > 0);\n      if (modelContentJs) {\n        const script = modelContentJs._data.content.replace(/<script>/g, '').replace(/<\\/script>/g, '');\n        this.setupContentJS(element, script);\n      }\n    }\n    setupContentCss(element, content) {\n      const style = document.createElement('style');\n      style.innerHTML = content;\n      element.appendChild(style);\n    }\n    setupContentHtml(element, content) {\n      const div = document.createElement('div');\n      div.innerHTML = content;\n      element.appendChild(div);\n    }\n    setupContentJS(element, content) {\n      const script = document.createElement('script');\n      script.innerHTML = content;\n      element.appendChild(script);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"setupCustomContents\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"setupCustomContents\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupContentCss\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"setupContentCss\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupContentHtml\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setupContentHtml\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupContentJS\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setupContentJS\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/custom/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"P+y4nbd4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,1,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,1,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"simple-editor__custom-container-wrapper\\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@hasSchedule\\\",\\\"@schedules\\\"],[[23,2,[]],[23,3,[]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"schedules\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"setupCustomContents\\\"]],[23,1,[\\\"_data\\\",\\\"contents\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/custom/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/faqs/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let SimpleEditorPageBlockDisplayFaqsComponent = _exports.default = (_dec = Ember._action, _class = class SimpleEditorPageBlockDisplayFaqsComponent extends _component.default {\n    collapseToggle(e) {\n      const header = e.currentTarget;\n      const card = header.parentNode;\n      const angleIcon = R.view(R.lensPath(['children', 1, 'children', 0, 'children', 0]))(header);\n      const isUp = R.includes('up')(card.className);\n      if (isUp) {\n        angleIcon.className = `${angleIcon.className} fa-rotate-180`;\n        card.className = R.replace('up', 'down')(card.className);\n      } else {\n        angleIcon.className = R.replace('fa-rotate-180', '')(angleIcon.className);\n        card.className = R.replace('down', 'up')(card.className);\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"collapseToggle\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"collapseToggle\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/faqs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ANSy/jGz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"faq\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@faqs\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,2,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,2,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"\\\\n      simple-editor__page-block-display-container\\\\n      simple-editor__faqs-container\\\\n    \\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@hasSchedule\\\",\\\"@schedules\\\"],[[23,3,[]],[23,4,[]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"schedules\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-faq-container card-faqs-up\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"header\\\",false],[12,\\\"class\\\",\\\"card-header is-tappable\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"collapseToggle\\\"]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,1,[\\\"question\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"a\\\",true],[10,\\\"class\\\",\\\"card-header-icon\\\"],[10,\\\"aria-label\\\",\\\"more options\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"fas fa-angle-down\\\"],[10,\\\"aria-hidden\\\",\\\"true\\\"],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"content-display\\\",[],[[\\\"@content\\\"],[[23,1,[\\\"answer\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/faqs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 CONTENT_COMPONENTS_BY_DISPLAY_STYLE = {\n    grid: 'simple-editor/page-block-display/features/grid',\n    slider: 'simple-editor/page-block-display/features/slider',\n    story: 'simple-editor/page-block-display/features/story'\n  };\n  const DEFAULT_CONTENT_COMPONENT = CONTENT_COMPONENTS_BY_DISPLAY_STYLE.story;\n  let SimpleEditorPageBlockDisplayImagesComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember.computed('args.pageBlock._data.settings.displayStyle'), _class = class SimpleEditorPageBlockDisplayImagesComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_lastPreviewDevice\", _descriptor, this);\n    }\n    handlePreviewDeviceChange() {\n      const currentPreviewDevice = this.args.previewDevice;\n      if (!currentPreviewDevice) {\n        return;\n      }\n      if (this._lastPreviewDevice === currentPreviewDevice) {\n        return;\n      }\n      this._lastPreviewDevice = currentPreviewDevice;\n      Ember.set(this.args.pageBlock, 'isForceReloading', true);\n      setTimeout(() => {\n        Ember.set(this.args.pageBlock, 'isForceReloading', false);\n      }, 10);\n    }\n    get contentComponent() {\n      const displayStyle = this.args.pageBlock?._data?.settings?.displayStyle;\n      return CONTENT_COMPONENTS_BY_DISPLAY_STYLE[displayStyle] || DEFAULT_CONTENT_COMPONENT;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_lastPreviewDevice\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handlePreviewDeviceChange\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"handlePreviewDeviceChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"contentComponent\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"contentComponent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let SimpleEditorPageBlockDisplayFeaturesContentsComponent = _exports.default = (_dec = Ember.computed('args.content._data.displayStyle'), _class = class SimpleEditorPageBlockDisplayFeaturesContentsComponent extends _component.default {\n    // @service('constants') constants\n\n    get contentComponent() {\n      const content = this.args.content;\n      const displayStyle = content?._data?.displayStyle;\n      return `simple-editor/page-block-display/features/contents/${displayStyle}`;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"contentComponent\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"contentComponent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/image-only-one/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayFeaturesContentsImageOnlyOneComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockDisplayFeaturesContentsImageOnlyOneComponent;\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/image-only-one/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vtcLR2j7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@imageMaxWidth\\\",\\\"@imageMaxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/image\\\",[],[[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@maxWidth\\\",\\\"@maxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasText\\\",\\\"hasInteraction\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasImagePosition\\\"],[true,false,true,false,false,false,false,false]]]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/contents/image-only-one/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kyiHFCe3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@website\\\",\\\"@pageBlock\\\",\\\"@content\\\",\\\"&attrs\\\",\\\"@pageBlockIndex\\\",\\\"@index\\\",\\\"@imageMaxHiDPIWidth\\\",\\\"@imageMaxWidth\\\",\\\"@onClickContent\\\",\\\"@flattenedMenu\\\",\\\"@previewDevice\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/contents-container\\\",[[12,\\\"class\\\",[29,[\\\"\\\\n    simple-editor__features-content-block\\\\n    simple-editor__features-content-block--\\\",[23,3,[\\\"_data\\\",\\\"displayStyle\\\"]],\\\"    \\\\n  \\\"]]],[13,4]],[[\\\"@website\\\",\\\"@pageBlock\\\",\\\"@content\\\"],[[23,1,[]],[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"contentComponent\\\"]]],[[\\\"content\\\",\\\"previewDevice\\\",\\\"website\\\",\\\"flattenedMenu\\\",\\\"onClickContent\\\",\\\"pageBlock\\\",\\\"transformPrefix\\\",\\\"imageMaxWidth\\\",\\\"imageMaxHiDPIWidth\\\",\\\"index\\\",\\\"pageBlockIndex\\\"],[[23,3,[]],[23,11,[]],[23,1,[]],[23,10,[]],[23,9,[]],[23,2,[]],\\\"/-/resize/\\\",[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/contents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/text-and-image-split-one/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let SimpleEditorPageBlockDisplayFeaturesContentsTextOnImageTwoComponent = _exports.default = (_dec = Ember.computed('args.content._data.interactionMethod'), _class = class SimpleEditorPageBlockDisplayFeaturesContentsTextOnImageTwoComponent extends _component.default {\n    get hasLink() {\n      const isLink = this.args.content?._data?.interactionMethod === 'link';\n      if (isLink) {\n        return true;\n      }\n      return false;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"hasLink\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"hasLink\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/text-and-image-split-one/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"e25+kx62\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@imageMaxWidth\\\",\\\"@imageMaxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/image\\\",[],[[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@maxWidth\\\",\\\"@maxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\",\\\"@hasLink\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,0,[\\\"hasLink\\\"]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasImagePosition\\\"],[true,false,false,true,true,true]]]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/contents/text-and-image-split-one/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-one/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let SimpleEditorPageBlockDisplayFeaturesContentsTextOnImageOneComponent = _exports.default = (_dec = Ember.computed('args.content._data.interactionMethod'), _class = class SimpleEditorPageBlockDisplayFeaturesContentsTextOnImageOneComponent extends _component.default {\n    get hasLink() {\n      const isLink = this.args.content?._data?.interactionMethod === 'link';\n      if (isLink) {\n        return true;\n      }\n      return false;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"hasLink\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"hasLink\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-one/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ECsoybTe\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@imageMaxWidth\\\",\\\"@imageMaxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/image\\\",[],[[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@maxWidth\\\",\\\"@maxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\",\\\"@hasLink\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,0,[\\\"hasLink\\\"]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\"],[true,false,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-one/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-two/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let SimpleEditorPageBlockDisplayFeaturesContentsTextOnImageTwoComponent = _exports.default = (_dec = Ember.computed('args.content._data.interactionMethod'), _class = class SimpleEditorPageBlockDisplayFeaturesContentsTextOnImageTwoComponent extends _component.default {\n    get hasLink() {\n      const isLink = this.args.content?._data?.interactionMethod === 'link';\n      if (isLink) {\n        return true;\n      }\n      return false;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"hasLink\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"hasLink\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-two/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2KU/YYU+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@imageMaxWidth\\\",\\\"@imageMaxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/image\\\",[],[[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@maxWidth\\\",\\\"@maxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\",\\\"@hasLink\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,0,[\\\"hasLink\\\"]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasImagePosition\\\"],[true,false,true,true,false,false]]]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/contents/text-on-image-two/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/top-down-one/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayFeaturesContentsTopDownOneComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockDisplayFeaturesContentsTopDownOneComponent;\n});","define(\"client/pods/components/simple-editor/page-block-display/features/contents/top-down-one/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0ao6UGQ9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@imageMaxWidth\\\",\\\"@imageMaxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/image\\\",[],[[\\\"@content\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@maxWidth\\\",\\\"@maxHiDPIWidth\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasImagePosition\\\",\\\"hasImageSize\\\"],[false,false,false,false,true,false,true]]]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/contents/top-down-one/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/grid/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockDisplayFeaturesGridComponent = _exports.default = (_dec = Ember.inject.service('simple-editor'), _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class SimpleEditorPageBlockDisplayFeaturesGridComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"simpleEditorService\", _descriptor, this);\n      _initializerDefineProperty(this, \"element\", _descriptor2, this);\n    }\n    get imageMaxWidth() {\n      if (this.simpleEditorService.isMobile) {\n        return window.outerWidth;\n      }\n      const gridNumberOfColumns = Number(this.args.pageBlock?._data?.settings?.gridNumberOfColumns) || 1;\n      const containerWidth = this.element?.offsetWidth || window.innerWidth;\n      if (!containerWidth) {\n        return null;\n      }\n      return Math.floor(containerWidth / gridNumberOfColumns);\n    }\n    setup(element) {\n      this.element = element;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"simpleEditorService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/features/grid/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2pPNkr27\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@onClickContent\\\",\\\"@pageBlockIndex\\\",\\\"&attrs\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"class\\\",[29,[\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__grid-container\\\\n    simple-editor__grid-columns__\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"gridNumberOfColumns\\\"]],\\\"\\\\n    simple-editor__grid-columns-gap__\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"gridColumnsGap\\\"]],\\\"\\\\n    simple-editor__grid-align-horizontal__\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"gridAlignHorizontal\\\"]],\\\"\\\\n    simple-editor__grid-align-vertical__\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"gridAlignVertical\\\"]],\\\"\\\\n  \\\"]]],[13,9],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@isLink\\\",\\\"@link\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@hasSchedule\\\",\\\"@schedules\\\"],[[23,4,[]],[23,5,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasLink\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"link\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"schedules\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"simple-editor/page-block-display/features/contents\\\",[[12,\\\"class\\\",[29,[\\\"simple-editor__grid-item\\\\n          simple-editor__grid-column-gap__\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"gridColumnsGap\\\"]],\\\"\\\\n      \\\"]]]],[[\\\"@content\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@onClickContent\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\",\\\"@imageMaxWidth\\\"],[[23,1,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,3,[]],[23,7,[]],[23,2,[]],[23,8,[]],[23,0,[\\\"imageMaxWidth\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/grid/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/slider/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\"], function (_exports, _component, _emberConcurrencyDecorators, _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;\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 SimpleEditorPageBlockDisplayImagesSliderComponent = _exports.default = (_dec = Ember.inject.service('simple-editor'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember.computed('args.pageBlock._data.settings.{slidesSpacing,slidesToShow}'), _dec5 = Ember._action, _dec6 = Ember.computed('args.pageBlock._data.settings.{sliderArrowsBorderColor,sliderArrowsBackgroundColor,sliderArrowsTextColor,sliderArrowsHoverBackgroundColor,sliderDotsColor,sliderDotsActiveColor}'), _dec7 = Ember._action, _class = class SimpleEditorPageBlockDisplayImagesSliderComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"simpleEditorService\", _descriptor, this);\n      _initializerDefineProperty(this, \"dynamicSlickStyles\", _descriptor2, this);\n      _initializerDefineProperty(this, \"element\", _descriptor3, this);\n    }\n    get imageMaxWidth() {\n      const slidesToShow = Number(this.args.pageBlock?._data?.settings?.slidesToShow) || 1;\n      const containerWidth = this.element?.offsetWidth || window.innerWidth;\n      if (!containerWidth) {\n        return null;\n      }\n      return Math.floor(containerWidth / slidesToShow);\n    }\n    get featureContentClassNames() {\n      const slidesToShow = this.args.pageBlock?._data?.settings?.slidesToShow || 0;\n      if (slidesToShow > 1) {\n        const slidesSpacing = this.args.pageBlock?._data?.settings?.slidesSpacing;\n        return `slide-margin-left-right--${slidesSpacing}`;\n      }\n      return 'slide-margin-left-right--none';\n    }\n    setup(element) {\n      this.element = element;\n    }\n    *setupSliderTask(index = 0, element) {\n      const pageBlock = this.args.pageBlock;\n      try {\n        const style1 = 'https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css';\n        const style2 = 'https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css';\n        const src = 'https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js';\n        yield (0, _emberConcurrency.all)([this.simpleEditorService.addStyleToHeaderTask.perform(style1), this.simpleEditorService.addStyleToHeaderTask.perform(style2), this.simpleEditorService.addScriptToHeaderTask.perform(src)]);\n        this._initLibrary(pageBlock, element, {\n          index\n        });\n      } catch (error) {\n        console.error('Failed to load slider library:', error);\n      }\n    }\n    get contentComponent() {\n      return 'simple-editor/page-block-display/features/contents/image-only-one';\n    }\n    get sliderStyle() {\n      const pageBlock = this.args.pageBlock;\n      const style = `\n      --sliderArrowsBorderColor: ${pageBlock?._data?.settings?.sliderArrowsBorderColor || ''};\n      --sliderArrowsBackgroundColor: ${pageBlock?._data?.settings?.sliderArrowsBackgroundColor || ''};\n      --sliderArrowsTextColor: ${pageBlock?._data?.settings?.sliderArrowsTextColor || ''};\n      --sliderArrowsHoverBackgroundColor: ${pageBlock?._data?.settings?.sliderArrowsHoverBackgroundColor || ''};\n      --sliderDotsColor: ${pageBlock?._data?.settings?.sliderDotsColor || ''};\n      --sliderDotsActiveColor: ${pageBlock?._data?.settings?.sliderDotsActiveColor || ''};\n    `;\n      return Ember.String.htmlSafe(style);\n    }\n    _initLibrary(pageBlock, element, {\n      index = 0,\n      retry = 10\n    } = {}) {\n      try {\n        const settings = pageBlock?._data?.settings || {};\n        let sliderAutoplay = settings?.sliderAutoplay;\n        // AutoPlay should always be disabled when editing\n        if (this.args?.pageBlock?.isDirty === true) {\n          sliderAutoplay = false;\n        }\n        const sliderAutoplaySpeed = settings?.sliderAutoplaySpeed;\n        const sliderArrowsEnabled = settings?.sliderArrowsEnabled === true;\n        const sliderDotsEnabled = settings?.sliderDotsEnabled === true;\n        const slidesToShow = settings?.slidesToShow ?? 1;\n        const slidesToScroll = settings?.slidesToScroll ?? 1;\n        const contents = pageBlock?._data?.contents || [];\n        if (contents.length <= 1) {\n          return;\n        }\n        const sliderOptions = {\n          infinite: true,\n          speed: 300,\n          slidesToShow,\n          slidesToScroll,\n          autoplay: sliderAutoplay,\n          autoplaySpeed: sliderAutoplaySpeed,\n          dots: sliderDotsEnabled,\n          arrows: sliderArrowsEnabled,\n          prevArrow: '<button class=\"slick-arrow-custom-button slick-custom-prev\"><i class=\"fas fa-chevron-left\"></i></button>',\n          nextArrow: '<button class=\"slick-arrow-custom-button slick-custom-next\"><i class=\"fas fa-chevron-right\"></i></button>'\n        };\n        window.$(element).slick(sliderOptions);\n        window.$(element).slick('slickGoTo', index);\n      } catch (e) {\n        if (retry === 0) {\n          console.error('initSlickSlider - error: ', e);\n          console.log('initSlickSlider - retries left: ', retry);\n          return;\n        }\n        retry--;\n        setTimeout(() => {\n          this._initLibrary(pageBlock, element, {\n            retry\n          });\n        }, 300);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"simpleEditorService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dynamicSlickStyles\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"featureContentClassNames\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"featureContentClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupSliderTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupSliderTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sliderStyle\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"sliderStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_initLibrary\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"_initLibrary\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/features/slider/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GnN/cKn7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@onClickContent\\\",\\\"@pageBlockIndex\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"\\\\n    simple-editor__slider-container\\\\n    simple-editor__slider-arrows-style__\\\",[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"sliderArrowsStyle\\\"]],\\\"\\\\n    simple-editor__slider-arrows-position__\\\",[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"sliderArrowsPosition\\\"]],\\\"\\\\n    simple-editor__slider-arrows-size__\\\",[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"sliderArrowsSize\\\"]],\\\"\\\\n    simple-editor__slider-dots-style__\\\",[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"sliderDotsStyle\\\"]],\\\"\\\\n    simple-editor__slider-dots-position__\\\",[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"sliderDotsPosition\\\"]],\\\"\\\\n    simple-editor__slider-dots-size__\\\",[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"sliderDotsSize\\\"]],\\\"\\\\n  \\\"]]],[12,\\\"style\\\",[23,0,[\\\"sliderStyle\\\"]]],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__slides-container\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupSliderTask\\\"]],[23,6,[\\\"activeIndex\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"simple-editor/page-block-display/features/contents\\\",[[12,\\\"class\\\",[23,0,[\\\"featureContentClassNames\\\"]]]],[[\\\"@content\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@onClickContent\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\",\\\"@imageMaxWidth\\\"],[[23,1,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,2,[]],[23,8,[]],[23,0,[\\\"imageMaxWidth\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/slider/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/story/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockDisplayFeaturesStoryComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class SimpleEditorPageBlockDisplayFeaturesStoryComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"stories\", _descriptor, this);\n    }\n    setupStoryPreview(element) {\n      setTimeout(() => {\n        return this._setupStoryPreview(element);\n      }, 250);\n    }\n\n    /**\n     * @param {HTMLDivElement} element\n     * @return void\n     */\n    _setupStoryPreview(element) {\n      const stories = Array.from(element.children);\n      const imageObjects = stories.flatMap(story => {\n        return Ember.Object.create({\n          modalContent: story.outerHTML || ''\n        });\n      });\n      this.stories = [{\n        imageObjects\n      }];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"stories\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupStoryPreview\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"setupStoryPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setupStoryPreview\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"_setupStoryPreview\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/features/story/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IK46dt8a\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@onClickContent\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"stories\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"components-group-stories\\\",[],[[\\\"@stories\\\"],[[23,0,[\\\"stories\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"\\\\n    simple-editor__story-container\\\\n    u-hidden\\\\n  \\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"setupStoryPreview\\\"]]]],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-display/features/contents\\\",[[12,\\\"class\\\",\\\"simple-editor__story-item\\\"]],[[\\\"@content\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@onClickContent\\\",\\\"@imageMaxWidth\\\",\\\"@imageMaxHiDPIWidth\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],\\\"800\\\",\\\"800\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/story/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/features/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"apTWe4dz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@flattenedMenu\\\",\\\"@website\\\",\\\"@pageBlock\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,6,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,6,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__features-container-wrapper\\\\n  \\\"],[3,\\\"did-update\\\",[[23,0,[\\\"handlePreviewDeviceChange\\\"]],[23,3,[]]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@gridColumnsGap\\\"],[[23,3,[]],[23,5,[]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"gridColumnsGap\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[\\\"isForceReloading\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"contentComponent\\\"]]],[[\\\"pageBlock\\\",\\\"website\\\",\\\"flattenedMenu\\\",\\\"previewDevice\\\",\\\"onClickContent\\\",\\\"pageBlockIndex\\\"],[[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/features/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/flows/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayFlowsComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockDisplayFlowsComponent;\n});","define(\"client/pods/components/simple-editor/page-block-display/flows/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FoXC4mSD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,2,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,2,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__flows-container-wrapper\\\\n  \\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\"],[[23,3,[]],[23,4,[]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"data-gjs-type\\\",\\\"bigordr-form\\\"],[10,\\\"data-gjs-component\\\",\\\"bigordr-form\\\"],[11,\\\"data-gjs-form-key\\\",[29,[[23,1,[\\\"_data\\\",\\\"_key\\\"]]]]],[11,\\\"data-gjs-form-name\\\",[29,[[23,1,[\\\"_data\\\",\\\"name\\\"]]]]],[11,\\\"content\\\",[29,[[23,1,[\\\"_data\\\",\\\"name\\\"]]]]],[10,\\\"class\\\",\\\"bigordr-form\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/flows/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/helpers/pre-line/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlocksDisplayHelpersPreLineComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlocksDisplayHelpersPreLineComponent;\n});","define(\"client/pods/components/simple-editor/page-block-display/helpers/pre-line/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hnMJ9Dxh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@value\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__pre-line\\\"],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/helpers/pre-line/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/images/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockDisplayImagesComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember.computed('args.pageBlock._data.settings.displayStyle'), _class = class SimpleEditorPageBlockDisplayImagesComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_lastPreviewDevice\", _descriptor, this);\n    }\n    handlePreviewDeviceChange() {\n      const currentPreviewDevice = this.args.previewDevice;\n      if (!currentPreviewDevice) {\n        return;\n      }\n      if (this._lastPreviewDevice === currentPreviewDevice) {\n        return;\n      }\n      this._lastPreviewDevice = currentPreviewDevice;\n      Ember.set(this.args.pageBlock, 'isForceReloading', true);\n      setTimeout(() => {\n        Ember.set(this.args.pageBlock, 'isForceReloading', false);\n      }, 10);\n    }\n    get contentComponent() {\n      return 'simple-editor/page-block-display/images/grid';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_lastPreviewDevice\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handlePreviewDeviceChange\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"handlePreviewDeviceChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"contentComponent\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"contentComponent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/images/grid/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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  // Container-width breakpoints per configured column count, ascending: below each\n  // `maxWidth` the grid renders `columns`. Mirrors the @container rules for\n  // .simple-editor__images-grid-columns__N in _simple-editor__images-grid.scss\n  const RENDERED_COLUMNS_BY_CONTAINER_WIDTH = {\n    2: [{\n      maxWidth: 768,\n      columns: 1\n    }],\n    3: [{\n      maxWidth: 400,\n      columns: 1\n    }, {\n      maxWidth: 600,\n      columns: 2\n    }],\n    4: [{\n      maxWidth: 400,\n      columns: 1\n    }, {\n      maxWidth: 600,\n      columns: 2\n    }, {\n      maxWidth: 800,\n      columns: 3\n    }]\n  };\n  let SimpleEditorPageBlockDisplayImagesGridComponent = _exports.default = (_dec = Ember.inject.service('simple-editor'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _class = class SimpleEditorPageBlockDisplayImagesGridComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"simpleEditorService\", _descriptor, this);\n      _initializerDefineProperty(this, \"loadedIndexes\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isForceReload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isAllLoaded\", _descriptor4, this);\n      _initializerDefineProperty(this, \"lastWindowWidth\", _descriptor5, this);\n      _initializerDefineProperty(this, \"lastElementWidth\", _descriptor6, this);\n      _initializerDefineProperty(this, \"masonry\", _descriptor7, this);\n      _initializerDefineProperty(this, \"debounceWaitTime\", _descriptor8, this);\n      _initializerDefineProperty(this, \"resizeObserver\", _descriptor9, this);\n      _initializerDefineProperty(this, \"gridElement\", _descriptor0, this);\n      _defineProperty(this, \"isMasonryEnabled\", false);\n    }\n    get gridNumberOfColumns() {\n      return Number(this.args.pageBlock?._data?.settings?.gridNumberOfColumns) || 1;\n    }\n    get containerWidth() {\n      return this.gridElement?.offsetWidth || window.innerWidth;\n    }\n    get renderedColumnCount() {\n      const containerWidth = this.containerWidth;\n      const breakpoints = RENDERED_COLUMNS_BY_CONTAINER_WIDTH[this.gridNumberOfColumns] || [];\n      const matchingBreakpoint = R.find(breakpoint => containerWidth < breakpoint.maxWidth)(breakpoints);\n      return matchingBreakpoint?.columns || this.gridNumberOfColumns;\n    }\n    get maxWidth() {\n      return Math.floor(this.containerWidth / this.renderedColumnCount);\n    }\n\n    // Single-column grids have nothing to pack; skip the CDN masonry cost.\n    get shouldSkipMasonry() {\n      return this.renderedColumnCount <= 1;\n    }\n    *setupTask(element) {\n      this.loadedIndexes = [];\n      this.gridElement = element;\n      this.lastWindowWidth = window.innerWidth;\n\n      // Decided once: onloadImages must not re-measure per image, and must never\n      // try to init a Masonry that was skipped here.\n      this.isMasonryEnabled = !this.shouldSkipMasonry;\n      if (!this.isMasonryEnabled) {\n        return;\n      }\n      const src = 'https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js';\n      try {\n        yield this.simpleEditorService.addScriptToHeaderTask.perform(src);\n      } catch (error) {\n        // A canceled task (e.g. the component was destroyed mid-load) rejects with a\n        // TaskCancelation — rethrow it so the task tears down cleanly instead of continuing to\n        // set up a ResizeObserver on a destroyed component.\n        if ((0, _emberConcurrency.didCancel)(error)) {\n          throw error;\n        }\n        // Masonry failed to load after retries (already logged by the loader). Continue so the\n        // grid images still render without the masonry layout, and avoid leaking an unhandled\n        // promise rejection (Sentry BIGORDR-SHOP-EMBER-14).\n      }\n\n      // listen for element resize. will only reload gird once. leave the rest for masonry to handle when window size changes.\n      // the reason for this is on macOs where the scroll bar is hidden, when a modal is open initially the grid will resize when the scroll bar appears,\n      // then if no overflow, the scrollbar will disappear, and the grid will resize repeatedly.\n      this.resizeObserver = new window.ResizeObserver(R.pipe(R.head,\n      // Take first entry only\n      entry => {\n        Ember.run.debounce(this, this.reloadGridOnResize, this.debounceWaitTime);\n      }));\n      this.resizeObserver.observe(this.gridElement);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this._removeResizeObserver();\n    }\n    _removeResizeObserver() {\n      if (this.resizeObserver) {\n        this.resizeObserver.disconnect();\n        this.resizeObserver = null;\n      }\n    }\n    _initLibrary(element, {\n      retry = 10\n    } = {}) {\n      try {\n        // Direct children carry the column widths, so Masonry and the flex fallback agree.\n        this.masonry = new window.Masonry(element, {\n          itemSelector: '.simple-editor__images-grid-item',\n          columnWidth: '.simple-editor__images-grid-item',\n          percentPosition: true\n        });\n      } catch (e) {\n        if (retry === 0) {\n          console.error('initGrid - error: ', e);\n          console.log('initGrid - retries left: ', retry);\n          return;\n        }\n        retry--;\n        setTimeout(() => {\n          this._initLibrary(element, {\n            retry\n          });\n        }, 300);\n      }\n    }\n    onloadImages({\n      index\n    }) {\n      if (!this.isMasonryEnabled) {\n        return;\n      }\n      const contents = this.args.pageBlock?._data?.contents || [];\n      let loadedIndexes = this.loadedIndexes || [];\n      loadedIndexes.push(index);\n      loadedIndexes = R.uniq(loadedIndexes);\n      if (loadedIndexes.length !== contents.length) {\n        // console.debug('not all images loaded')\n        return;\n      }\n      setTimeout(() => {\n        // console.debug('onloadImages::this._initLibraryTask.perform - start')\n        this._initLibrary(this.gridElement);\n        this.reloadGridOnResize();\n        // console.debug('onloadImages::this._initLibraryTask.perform - end')\n      }, 10);\n    }\n    reloadGridOnResize() {\n      if (!this.masonry) {\n        return;\n      }\n      const currentElementWidth = this.gridElement?.offsetWidth;\n      // console.log('currentElementWidth', currentElementWidth)\n      // dont trigger if the width change is less than 25px\n      const lastElementWidth = this.lastElementWidth || 0;\n      if (Math.abs(currentElementWidth - lastElementWidth) < 25) {\n        return;\n      }\n\n      // Only trigger if the width change isn't due to window resize\n      if (window.innerWidth === this.lastWindowWidth && currentElementWidth !== this.lastElementWidth) {\n        this.reloadGrid();\n      }\n    }\n    reloadGrid() {\n      if (!this.masonry) {\n        return;\n      }\n      const currentElementWidth = this.gridElement?.offsetWidth;\n      this.lastElementWidth = currentElementWidth;\n      this.masonry.layout();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"simpleEditorService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"loadedIndexes\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isForceReload\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isAllLoaded\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"lastWindowWidth\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"lastElementWidth\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"masonry\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"debounceWaitTime\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 150;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"resizeObserver\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"gridElement\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_removeResizeObserver\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"_removeResizeObserver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_initLibrary\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"_initLibrary\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onloadImages\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"onloadImages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadGridOnResize\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadGridOnResize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadGrid\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadGrid\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/images/grid/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AvzX33EZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@onClickContent\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@previewDevice\\\",\\\"@flattenedMenu\\\",\\\"@transformPrefix\\\",\\\"@pageBlockIndex\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"isForceReload\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"\\\\n      simple-editor__images-grid-container\\\\n      simple-editor__images-grid-columns__\\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"gridNumberOfColumns\\\"]],\\\"\\\\n    \\\"]]],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"simple-editor/page-block-display/base/contents-container\\\",[[12,\\\"class\\\",[29,[\\\"\\\\n            simple-editor__images-grid-item\\\\n            simple-editor__features-content-block\\\\n            simple-editor__features-content-block--\\\",[23,1,[\\\"_data\\\",\\\"displayStyle\\\"]],\\\"\\\\n          \\\"]]]],[[\\\"@onClickContent\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@content\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"simple-editor/page-block-display/base/image\\\",[],[[\\\"@content\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@pageBlock\\\",\\\"@transformPrefix\\\",\\\"@index\\\",\\\"@pageBlockIndex\\\",\\\"@onloadImages\\\",\\\"@onloadVideos\\\",\\\"@showMissingImage\\\",\\\"@onClickContent\\\",\\\"@maxWidth\\\",\\\"@options\\\"],[[23,1,[]],[23,6,[]],[23,5,[]],[23,7,[]],[23,4,[]],[23,8,[]],[23,2,[]],[23,9,[]],[23,0,[\\\"onloadImages\\\"]],[23,0,[\\\"onloadImages\\\"]],false,[23,3,[]],[23,0,[\\\"maxWidth\\\"]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasImagePosition\\\",\\\"hasImageAlign\\\",\\\"hasImageSize\\\",\\\"hasImageSizeCustom\\\"],[true,false,true,true,false,false,true,false,true]]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/images/grid/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/images/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"3QsD7sqL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@onClickContent\\\",\\\"@previewDevice\\\",\\\"@flattenedMenu\\\",\\\"@website\\\",\\\"@pageBlock\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,6,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,6,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__images-container-wrapper\\\\n  \\\"],[3,\\\"did-update\\\",[[23,0,[\\\"handlePreviewDeviceChange\\\"]],[23,3,[]]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\"],[[23,3,[]],[23,5,[]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,6,[\\\"isForceReloading\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"contentComponent\\\"]]],[[\\\"pageBlock\\\",\\\"website\\\",\\\"flattenedMenu\\\",\\\"previewDevice\\\",\\\"onClickContent\\\",\\\"pageBlockIndex\\\"],[[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/images/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/products/component\", [\"exports\", \"@glimmer/component\", \"client/utils/reserved-block-height\"], function (_exports, _component, _reservedBlockHeight) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\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  // measured against a rendered item card, see items/item-card\n  const CARD_CONTENT_PADDING = 20;\n  const CARD_VERTICAL_MARGIN = 30;\n  const PRICE_ROW_HEIGHT = 22;\n  const VIEW_MORE_ROW_HEIGHT = 22;\n  const ADD_TO_CART_FOOTER_HEIGHT = 60;\n  const SLIDER_MIN_CARD_WIDTH = 150;\n  const DEFAULT_THEME_IMAGE_SIZE = 180;\n\n  // app.scss caps a card on narrow viewports with !important, which beats --themeImageSize\n  const HALF_ROW_MAX_VIEWPORT_WIDTH = 625;\n  const HALF_ROW_CARD_INSET = 20;\n  const TWO_PER_ROW_MAX_VIEWPORT_WIDTH = 720;\n  const TWO_PER_ROW_CARD_WIDTH_PERCENTAGE = 0.45;\n  const TWO_PER_ROW = 2;\n  let SimpleEditorPageBlockDisplayProductsComponent = _exports.default = (_dec = Ember._action, _dec2 = Ember._action, _class = class SimpleEditorPageBlockDisplayProductsComponent extends _component.default {\n    get productTags() {\n      const productTags = this.args.pageBlock?._data?.settings?.productTags || [];\n      return productTags.join(',');\n    }\n    get settings() {\n      return this.args.pageBlock?._data?.settings || {};\n    }\n    get isSlider() {\n      return this.settings.displayStyle === 'slider';\n    }\n\n    /**\n     * Everything an item card takes up apart from its image. Mirrors items/item-card.\n     */\n    get cardHeightBelowImage() {\n      const shop = this.args.shop;\n      const shopData = shop?._data || {};\n      const nameFontSize = shopData.productsNameFontSize || 'small';\n      let contentHeight = CARD_CONTENT_PADDING + CARD_VERTICAL_MARGIN + (0, _reservedBlockHeight.getGridGap)() + PRICE_ROW_HEIGHT;\n      if (shop?.showName !== false) {\n        contentHeight += (0, _reservedBlockHeight.getClampedTextHeight)(shopData.productsNameLineCount || 2, nameFontSize);\n      }\n      if (shopData.showItemDescription === true) {\n        contentHeight += (0, _reservedBlockHeight.getClampedTextHeight)(shop?.showItemDescriptionLinesCount || 2, nameFontSize);\n      }\n      if (shop?.showLabelMore !== false) {\n        contentHeight += VIEW_MORE_ROW_HEIGHT;\n      }\n      if (shopData.showAddToCartBtn !== false && !shopData.isDisallowShopping) {\n        contentHeight += ADD_TO_CART_FOOTER_HEIGHT;\n      }\n      return contentHeight;\n    }\n\n    /**\n     * Hand picked products never exceed their keys, tag based ones fill the page.\n     */\n    get itemCount() {\n      const settings = this.settings;\n      const productsPerPage = parseInt(settings.productsPerPage, 10) || 0;\n      const productKeysCount = settings.productKeys?.length || 0;\n      if (!productKeysCount) {\n        return productsPerPage;\n      }\n      if (!productsPerPage) {\n        return productKeysCount;\n      }\n      return Math.min(productKeysCount, productsPerPage);\n    }\n    countItemsPerRow() {\n      if (window.innerWidth <= TWO_PER_ROW_MAX_VIEWPORT_WIDTH) {\n        return TWO_PER_ROW;\n      }\n      return parseInt(this.settings.gridRowItems, 10) || TWO_PER_ROW;\n    }\n    readThemeImageSize(element) {\n      const themeImageSize = window.getComputedStyle(element).getPropertyValue('--themeImageSize');\n      return parseInt(themeImageSize, 10) || DEFAULT_THEME_IMAGE_SIZE;\n    }\n\n    /**\n     * An item card's image fills the card, so this is the card width. Follows the\n     * `.store-item__card.is-condensed` max-widths in app.scss.\n     */\n    calculateImageWidth(element, itemsPerRow) {\n      const themeImageSize = this.readThemeImageSize(element);\n      if (this.isSlider) {\n        return Math.max(SLIDER_MIN_CARD_WIDTH, themeImageSize);\n      }\n      const containerWidth = element.clientWidth || window.innerWidth;\n      const viewportWidth = window.innerWidth;\n      if (viewportWidth <= HALF_ROW_MAX_VIEWPORT_WIDTH) {\n        return containerWidth / 2 - HALF_ROW_CARD_INSET;\n      }\n      if (viewportWidth <= TWO_PER_ROW_MAX_VIEWPORT_WIDTH) {\n        return containerWidth * TWO_PER_ROW_CARD_WIDTH_PERCENTAGE;\n      }\n      const availableWidth = containerWidth - (0, _reservedBlockHeight.getGridGap)() * (itemsPerRow - 1);\n      return Math.min(themeImageSize, availableWidth / itemsPerRow);\n    }\n    applyReservedHeight(element) {\n      const itemsPerRow = this.countItemsPerRow();\n      const reservedHeight = (0, _reservedBlockHeight.calculateReservedBlockHeight)({\n        isSlider: this.isSlider,\n        itemsPerRow,\n        itemCount: this.itemCount,\n        imageWidth: this.calculateImageWidth(element, itemsPerRow),\n        imageRatio: this.args.shop?._data?.productsImagesRatio,\n        cardHeightBelowImage: this.cardHeightBelowImage\n      });\n      element.style.minHeight = `${reservedHeight}px`;\n    }\n\n    /**\n     * The placeholder is replaced by the real slider/grid once the products are\n     * fetched, so reserve its height up front to avoid the layout shift.\n     */\n    reserveHeight(element) {\n      this.blockElement = element.parentElement;\n      this.applyReservedHeight(element);\n      window.addEventListener('resize', this.handleViewportResize);\n    }\n\n    /**\n     * A reservation is only right for the viewport it was measured at. Once the\n     * real grid is on the page it can go entirely, otherwise measure again.\n     */\n    handleViewportResize() {\n      const wrapper = this.blockElement?.querySelector('.bigordr-products-wrapper');\n      if (!wrapper) {\n        return;\n      }\n      if ((0, _reservedBlockHeight.hasRenderedBlock)(wrapper)) {\n        wrapper.style.minHeight = '';\n        return;\n      }\n      this.applyReservedHeight(wrapper);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      window.removeEventListener('resize', this.handleViewportResize);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"reserveHeight\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"reserveHeight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleViewportResize\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"handleViewportResize\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/products/product-preview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayProductsProductPreviewComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockDisplayProductsProductPreviewComponent;\n});","define(\"client/pods/components/simple-editor/page-block-display/products/product-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vnH85Jgb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__products-product\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@width\\\",\\\"@image\\\",\\\"@transform\\\"],[\\\"auto\\\",80,[23,1,[\\\"_data\\\",\\\"defaultImage\\\"]],\\\"/-/scale_crop/200x200/smart/-/quality/best\\\"]]],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title u-truncate\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/products/product-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/products/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"q41g14T5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"productKey\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,2,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,2,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__products-container-wrapper\\\\n  \\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\"],[[23,3,[]],[23,4,[]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"data-gjs-type\\\",\\\"bigordr-products-wrapper\\\"],[12,\\\"data-bigordr-products-tags\\\",[29,[[23,0,[\\\"productTags\\\"]]]]],[12,\\\"data-bigordr-products-slider-type\\\",[29,[[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]]]]],[12,\\\"data-bigordr-products-slider-limit-by\\\",[29,[[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"productsPerPage\\\"]]]]],[12,\\\"data-bigordr-products-slider-row-limit\\\",[29,[[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"gridRowItems\\\"]]]]],[12,\\\"class\\\",\\\"bigordr-products-wrapper\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"reserveHeight\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"productKeys\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"data-gjs-type\\\",\\\"bigordr-products\\\"],[10,\\\"class\\\",\\\"bigordr-products\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"productKeys\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"data-gjs-type\\\",\\\"bigordr-product\\\"],[10,\\\"data-bigordr-products-slider\\\",\\\"true\\\"],[10,\\\"class\\\",\\\"bigordr-product\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"data-gjs-type\\\",\\\"bigordr-product-id\\\"],[11,\\\"data-bigordr-product\\\",[29,[[23,1,[]]]]],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/products/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/social-links/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplaySocialLinksComponent extends _component.default {\n    get blockClassName() {\n      return '';\n    }\n  }\n  _exports.default = SimpleEditorPageBlockDisplaySocialLinksComponent;\n});","define(\"client/pods/components/simple-editor/page-block-display/social-links/social-link/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlockDisplaySocialLinksSocialLinkComponent = _exports.default = (_dec = Ember.inject.service('constants'), _class = class SimpleEditorPageBlockDisplaySocialLinksSocialLinkComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n    }\n    get classNames() {\n      const socialLinksType = this.args.model?._data?.socialLinksType;\n      return `simple-editor__social-links-icon-xxl simple-editor__social-links-icon-${socialLinksType}`;\n    }\n    get icon() {\n      const socialLinksType = this.args.model?._data?.socialLinksType;\n      const icons = {\n        [this.constants.socialLinksTypes.instagram]: 'fab fa-instagram-square',\n        [this.constants.socialLinksTypes.facebook]: 'fab fa-facebook-square',\n        [this.constants.socialLinksTypes.line]: 'fab fa-line',\n        [this.constants.socialLinksTypes.thread]: 'fa-brands fa-square-threads',\n        [this.constants.socialLinksTypes.x]: 'fa-brands fa-square-x-twitter'\n      };\n      return icons[socialLinksType] || 'fas fa-hashtag';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/social-links/social-link/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Ce8x24Mb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[0,\\\"  \\\\n\\\"],[0,\\\"\\\\n\\\"],[5,\\\"simple-editor/page-block-display/base/links\\\",[[12,\\\"class\\\",[29,[[23,0,[\\\"classNames\\\"]]]]]],[[\\\"@linkUrl\\\",\\\"@isLink\\\",\\\"@previewDevice\\\",\\\"@website\\\"],[[23,1,[\\\"_data\\\",\\\"url\\\"]],true,[23,2,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[8],[7,\\\"i\\\",true],[11,\\\"class\\\",[29,[[23,0,[\\\"icon\\\"]]]]],[8],[9],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/social-links/social-link/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/social-links/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QDZztn0B\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"@website\\\",\\\"@previewDevice\\\",\\\"@pageBlock\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,4,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,4,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",[29,[\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__social-links-container\\\\n    \\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerAlign\\\"]],\\\"\\\\n  \\\"]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\"],[[23,3,[]],[23,2,[]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-display/base/contents-container\\\",[],[[\\\"@website\\\",\\\"@content\\\"],[[23,2,[]],[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/page-block-display/social-links/social-link\\\",[],[[\\\"@model\\\",\\\"@previewDevice\\\",\\\"@website\\\"],[[23,1,[]],[23,3,[]],[23,2,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/social-links/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/tabs/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 SimpleEditorPageBlockDisplayTabsComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _class = class SimpleEditorPageBlockDisplayTabsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"localSelectedTabId\", _descriptor, this);\n    }\n    get tabContents() {\n      return this.args.pageBlock?._data?.contents || [];\n    }\n    get selectedTabId() {\n      if (this.args.selectedTabId) {\n        return this.args.selectedTabId;\n      }\n      if (this.localSelectedTabId) {\n        return this.localSelectedTabId;\n      }\n      return this.tabContents[0]?._data?.contentId || '';\n    }\n    get activeTab() {\n      const selectedTabId = this.selectedTabId;\n      const matchingTab = R.find(content => content?._data?.contentId === selectedTabId)(this.tabContents);\n      return matchingTab || this.tabContents[0];\n    }\n    get tabHeaderStyle() {\n      const tabAlign = this.args.pageBlock?._data?.settings?.tabAlign;\n      if (tabAlign === 'left' || tabAlign === 'start') {\n        return 'flex-container--justify-start';\n      }\n      if (tabAlign === 'right' || tabAlign === 'end') {\n        return 'flex-container--justify-end';\n      }\n      return 'flex-container--justify-center';\n    }\n    get tabHeaders() {\n      return this.tabContents.map((content, index) => ({\n        content,\n        name: content?._data?.name || `Tab ${index + 1}`\n      }));\n    }\n    get tabHeaderAnchorStyle() {\n      // Editor passes onSelectTabId; sticky offset vars are storefront-only.\n      if (this.args.onSelectTabId) {\n        return '';\n      }\n      return 'simple-editor__tab-header-container--anchored';\n    }\n    selectTab(content, event) {\n      const contentId = content?._data?.contentId;\n      if (this.args.onSelectTabId) {\n        this.args.onSelectTabId(contentId);\n      } else {\n        this.localSelectedTabId = contentId;\n      }\n      if (this.args.onClickContent) {\n        this.args.onClickContent(this.args.pageBlock, contentId, event);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"localSelectedTabId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectTab\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTab\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/tabs/nested-block/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayTabsNestedBlockComponent extends _component.default {\n    get componentPath() {\n      const pageBlock = this.args.pageBlock;\n      if (!pageBlock) {\n        return null;\n      }\n      if (pageBlock.hasPreviewComponent) {\n        const previewPath = pageBlock.componentForPreview;\n        if (this._isComponentRegistered(previewPath)) {\n          return previewPath;\n        }\n      }\n      const displayPath = pageBlock.componentForDisplay || this._displayPathFromType(pageBlock);\n      if (this._isComponentRegistered(displayPath)) {\n        return displayPath;\n      }\n      return null;\n    }\n    get componentExists() {\n      return !!this.componentPath;\n    }\n    _displayPathFromType(pageBlock) {\n      const type = pageBlock?._data?.type;\n      if (!type) {\n        return null;\n      }\n      return `simple-editor/page-block-display/${type}`;\n    }\n    _isComponentRegistered(path) {\n      if (!path) {\n        return false;\n      }\n      const owner = Ember.getOwner(this);\n      return !!owner.resolveRegistration(`component:${path}`);\n    }\n  }\n  _exports.default = SimpleEditorPageBlockDisplayTabsNestedBlockComponent;\n});","define(\"client/pods/components/simple-editor/page-block-display/tabs/nested-block/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"I5YHpB41\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlockIndex\\\",\\\"@onSelectTabId\\\",\\\"@selectedTabId\\\",\\\"@onClickContent\\\",\\\"@flattenedMenu\\\",\\\"@previewDevice\\\",\\\"@isShopIndexPage\\\",\\\"@shop\\\",\\\"@website\\\",\\\"@faqs\\\",\\\"@pageBlock\\\",\\\"@page\\\",\\\"@index\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"componentExists\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"componentPath\\\"]]],[[\\\"index\\\",\\\"page\\\",\\\"pageBlock\\\",\\\"faqs\\\",\\\"website\\\",\\\"shop\\\",\\\"isShopIndexPage\\\",\\\"previewDevice\\\",\\\"flattenedMenu\\\",\\\"onClickContent\\\",\\\"selectedTabId\\\",\\\"onSelectTabId\\\",\\\"pageBlockIndex\\\"],[[23,13,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/tabs/nested-block/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/tabs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"iI8YTxn6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"nestedBlock\\\",\\\"nestedIndex\\\",\\\"tabHeader\\\",\\\"@page\\\",\\\"@faqs\\\",\\\"@website\\\",\\\"@shop\\\",\\\"@isShopIndexPage\\\",\\\"@previewDevice\\\",\\\"@flattenedMenu\\\",\\\"@onClickContent\\\",\\\"@selectedTabId\\\",\\\"@onSelectTabId\\\",\\\"@index\\\",\\\"@pageBlock\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,15,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,15,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__tabs-container-wrapper\\\\n  \\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\"],[[23,9,[]],[23,6,[]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,15,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__tabs-container\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"simple-editor__tab-header-container flex-container-row flex-container--align-items-center \\\",[23,0,[\\\"tabHeaderStyle\\\"]],\\\" \\\",[23,0,[\\\"tabHeaderAnchorStyle\\\"]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"tabHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"simple-editor__tab-header \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedTabId\\\"]],[23,3,[\\\"content\\\",\\\"_data\\\",\\\"contentId\\\"]]],null],\\\"simple-editor__tab-header--active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectTab\\\"]],[23,3,[\\\"content\\\"]]],null]]],[8],[0,\\\"\\\\n          \\\"],[1,[23,3,[\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"activeTab\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__tab-contents-container simple-editor__tab-contents-container--active\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"activeTab\\\",\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"simple-editor/page-block-display/tabs/nested-block\\\",[],[[\\\"@index\\\",\\\"@page\\\",\\\"@pageBlock\\\",\\\"@faqs\\\",\\\"@website\\\",\\\"@shop\\\",\\\"@isShopIndexPage\\\",\\\"@previewDevice\\\",\\\"@flattenedMenu\\\",\\\"@onClickContent\\\",\\\"@selectedTabId\\\",\\\"@onSelectTabId\\\",\\\"@pageBlockIndex\\\"],[[23,2,[]],[23,4,[]],[23,1,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/tabs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/texts/advanced/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayTextAdvancedComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockDisplayTextAdvancedComponent;\n});","define(\"client/pods/components/simple-editor/page-block-display/texts/advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EvS/eMUy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@previewDevice\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/text/advanced\\\",[],[[\\\"@template\\\",\\\"@previewDevice\\\"],[[23,1,[\\\"_data\\\",\\\"template\\\"]],[23,2,[]]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/texts/advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/texts/basic/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, R, _emberConcurrencyDecorators) {\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;\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 SimpleEditorPageBlockDisplayTextBasicComponent = _exports.default = (_dec = Ember.inject.service('simple-editor'), _dec2 = Ember.computed('args.pageBlock._data.settings.{fontColor}'), _dec3 = Ember.computed('args.pageBlock._data.settings.{fontColor,fontFamilyTitle}'), _dec4 = Ember.computed('args.pageBlock._data.settings.titleStyles.[]'), _class = class SimpleEditorPageBlockDisplayTextBasicComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"simpleEditorService\", _descriptor, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      if (!this.args.pageBlock?._data?.settings?.fontFamilyTitle) {\n        return;\n      }\n      const customFonts = yield this.simpleEditorService.getCustomFontsTask.perform();\n      const customFont = customFonts.find(font => font.value === this.args.pageBlock?._data?.settings?.fontFamilyTitle);\n      if (!customFont) {\n        return;\n      }\n      if (customFont?.fontUrl) {\n        yield this.simpleEditorService.addFontFaceToHeaderTask.perform(customFont);\n        return;\n      }\n      yield this.simpleEditorService.addStyleToHeaderTask.perform(customFont?.href);\n    }\n    get fontStyle() {\n      const inlineStyle = [];\n      const fontColor = this.args.pageBlock?._data?.settings?.fontColor;\n      if (fontColor) {\n        inlineStyle.push(`color: ${fontColor};`);\n      }\n      return Ember.String.htmlSafe(inlineStyle.join(' '));\n    }\n    get fontStyleTitle() {\n      const inlineStyle = [];\n      const fontFamilyTitle = this.args.pageBlock?._data?.settings?.fontFamilyTitle;\n      if (fontFamilyTitle) {\n        inlineStyle.push(`font-family: ${fontFamilyTitle};`);\n      }\n      return `${Ember.String.htmlSafe(inlineStyle.join(' '))} ${this.fontStyle}`;\n    }\n    get titleStylesClassNames() {\n      const titleStyles = this.args.pageBlock?._data?.settings?.titleStyles || [];\n      const styles = R.join(' ')(titleStyles);\n      return Ember.String.htmlSafe(styles);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"simpleEditorService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fontStyle\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"fontStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fontStyleTitle\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"fontStyleTitle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"titleStylesClassNames\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"titleStylesClassNames\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/texts/basic/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KTYqGjkK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlock\\\",\\\"@content\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@flattenedMenu\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/links\\\",[[12,\\\"class\\\",\\\"simple-editor__link-container\\\"]],[[\\\"@pageBlock\\\",\\\"@content\\\",\\\"@link\\\",\\\"@website\\\",\\\"@flattenedMenu\\\"],[[23,1,[]],[23,2,[]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"link\\\"]],[23,4,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"title\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"h1\\\",true],[11,\\\"class\\\",[29,[\\\"\\\\n        simple-editor__text-title\\\\n        \\\",[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"fontSize\\\"]],\\\"\\\\n        \\\",[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"fontAlign\\\"]],\\\"\\\\n        \\\",[23,0,[\\\"titleStylesClassNames\\\"]],\\\"\\\\n      \\\"]]],[11,\\\"style\\\",[23,0,[\\\"fontStyleTitle\\\"]]],[8],[0,\\\"\\\\n      \\\"],[1,[23,2,[\\\"_data\\\",\\\"title\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"template\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"simple-editor__text-text \\\",[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"fontSize\\\"]],\\\" \\\",[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"fontAlign\\\"]]]]],[11,\\\"style\\\",[23,0,[\\\"fontStyle\\\"]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/page-block-display/base/text/advanced\\\",[],[[\\\"@template\\\",\\\"@previewDevice\\\"],[[23,2,[\\\"_data\\\",\\\"template\\\"]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/texts/basic/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/texts/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\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  let SimpleEditorPageBlockDisplayTextComponent = _exports.default = (_dec = Ember.computed('args.pageBlock._data.settings.{backgroundColorStyle,backgroundColor}'), _dec2 = Ember.computed('args.pageBlock._data.settings.displayStyle'), _class = class SimpleEditorPageBlockDisplayTextComponent extends _component.default {\n    get backgroundColorStyle() {\n      const backgroundColorStyle = this.args.pageBlock?._data?.settings?.backgroundColorStyle;\n      if (backgroundColorStyle === 'none') {\n        return '';\n      }\n      const backgroundColor = this.args.pageBlock?._data?.settings?.backgroundColor;\n      return `background-color: ${backgroundColor};`;\n    }\n    get contentComponent() {\n      // const displayStyle = this.args.pageBlock?._data?.settings?.displayStyle\n      return 'simple-editor/page-block-display/texts/basic';\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"backgroundColorStyle\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"backgroundColorStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"contentComponent\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"contentComponent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/texts/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0gJbu97J\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@onClickContent\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@flattenedMenu\\\",\\\"@previewDevice\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,4,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,4,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__text-container\\\\n  \\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@isLink\\\",\\\"@link\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\"],[[23,7,[]],[23,5,[]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"hasLink\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"link\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-display/base/contents-container\\\",[],[[\\\"@onClickContent\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@content\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"contentComponent\\\"]]],[[\\\"content\\\",\\\"pageBlock\\\",\\\"index\\\",\\\"website\\\",\\\"flattenedMenu\\\"],[[23,1,[]],[23,4,[]],[23,2,[]],[23,5,[]],[23,6,[]]]]],false],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/texts/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/videos/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 SimpleEditorPageBlockDisplayVideosComponent = _exports.default = (_dec = Ember.inject.service('constants'), _dec2 = Ember.computed('args.pageBlock._data.settings.{backgroundColorStyle,backgroundColor}'), _class = class SimpleEditorPageBlockDisplayVideosComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n    }\n    get backgroundColorStyle() {\n      const backgroundColorStyle = this.args.pageBlock?._data?.settings?.backgroundColorStyle;\n      if (backgroundColorStyle === 'none') {\n        return '';\n      }\n      const backgroundColor = this.args.pageBlock?._data?.settings?.backgroundColor;\n      return `background-color: ${backgroundColor};`;\n    }\n    get hasMissingUrls() {\n      return this.args.pageBlock?._data?.contents?.some(content => !content?._data?.url);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"backgroundColorStyle\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"backgroundColorStyle\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/videos/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"THZ8K2vo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,2,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"data-content-id\\\",[23,2,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__videos-container center\\\\n  \\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\"],[[23,3,[]],[23,4,[]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"url\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"source\\\"]],[23,0,[\\\"constants\\\",\\\"videoSources\\\",\\\"youtube\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"simple-editor/page-block-display/videos/youtube-lite\\\",[],[[\\\"@model\\\",\\\"@url\\\",\\\"@title\\\"],[[23,1,[]],[23,1,[\\\"_data\\\",\\\"url\\\"]],[23,1,[\\\"_data\\\",\\\"title\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"source\\\"]],[23,0,[\\\"constants\\\",\\\"videoSources\\\",\\\"youtubeShorts\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"simple-editor/page-block-display/videos/youtube-shorts\\\",[],[[\\\"@model\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"source\\\"]],[23,0,[\\\"constants\\\",\\\"videoSources\\\",\\\"tiktok\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"simple-editor/page-block-display/videos/tiktok\\\",[],[[\\\"@model\\\"],[[23,1,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-padding-right-5 has-text-danger u-full-width\\\",\\\"fa-solid fa-bullhorn\\\",false,[29,[[28,\\\"tt\\\",[\\\"please add\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"videos\\\"],null]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/videos/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/videos/tiktok/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 SimpleEditorPageBlockDisplayVideosTiktokComponent = _exports.default = (_dec = Ember.inject.service('tiktok'), _dec2 = Ember._tracked, _class = class SimpleEditorPageBlockDisplayVideosTiktokComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tiktokService\", _descriptor, this);\n      _initializerDefineProperty(this, \"tiktokEmbeddedHtml\", _descriptor2, this);\n    }\n    *setupEmbeddedElement() {\n      const url = this.args?.url || this.args.model?._data?.url;\n      if (!url) {\n        return;\n      }\n      const embeddedResult = yield this.tiktokService.fetchTiktokEmbeddedTask.perform(url);\n      const div = document.createElement('div');\n      div.innerHTML = embeddedResult?.html || '';\n      const blockquoteElement = div.querySelector('blockquote');\n      this.tiktokEmbeddedHtml = blockquoteElement.outerHTML;\n      yield this.tiktokService.setupLibraryTask.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tiktokService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tiktokEmbeddedHtml\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupEmbeddedElement\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"setupEmbeddedElement\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/videos/tiktok/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2kxuq4yS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@url\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[]],[23,1,[\\\"_data\\\",\\\"url\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupEmbeddedElement\\\"]]],null]]],[8],[9],[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupEmbeddedElement\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"html-safe\\\",[[23,0,[\\\"tiktokEmbeddedHtml\\\"]]],null],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/videos/tiktok/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/videos/youtube-lite/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let SimpleEditorPageBlockDisplayVideosYoutubeLiteComponent = _exports.default = (_dec = Ember._action, _class = class SimpleEditorPageBlockDisplayVideosYoutubeLiteComponent extends _component.default {\n    get videoId() {\n      const url = this.args.url || '';\n      if (!url) {\n        return '';\n      }\n      let urlObject = null;\n      try {\n        // Use the browser URL constructor which is available in Safari > 17.4\n        urlObject = new URL(url);\n      } catch (e) {\n        // Invalid URL\n        return '';\n      }\n      if (!urlObject) {\n        return '';\n      }\n      if (urlObject.host.includes('youtube.com') && urlObject.pathname.includes('/embed/')) {\n        const pathname = urlObject.pathname || '';\n        return pathname.split('/')[2] || '';\n      }\n      if (urlObject.host.includes('youtube.com')) {\n        return urlObject.searchParams.get('v');\n      }\n      if (urlObject.host.includes('youtu.be')) {\n        const pathname = urlObject.pathname || '';\n        return pathname.split('/')[1];\n      }\n      return '';\n    }\n    get params() {\n      const model = this.args.model || {};\n\n      /**\n       * https://developers.google.com/youtube/player_parameters#Parameters\n       */\n      const params = new URLSearchParams();\n      params.set('rel', '0');\n      params.set('controls', '1');\n      params.set('fs', '1');\n      params.set('start', '1');\n      if (model?._data?.autoplay === true) {\n        params.set('mute', '1');\n        params.set('autoplay', '1');\n      }\n      if (model?._data?.loop === true) {\n        params.set('loop', '1');\n        params.set('playlist', this.videoId);\n      }\n      return params.toString();\n    }\n    triggerAutoplay(element) {\n      const model = this.args.model;\n      if (model?._data?.autoplay !== true) {\n        return;\n      }\n      element.click();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"triggerAutoplay\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"triggerAutoplay\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/videos/youtube-lite/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"5cJ9WRlh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@title\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"videoId\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"lite-youtube\\\",false],[12,\\\"class\\\",\\\"simple-editor__videos-lite-youtube\\\"],[12,\\\"videoid\\\",[29,[[23,0,[\\\"videoId\\\"]]]]],[12,\\\"params\\\",[23,0,[\\\"params\\\"]]],[3,\\\"did-insert\\\",[[23,0,[\\\"triggerAutoplay\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"lyt-visually-hidden\\\"],[8],[1,[23,1,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/videos/youtube-lite/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-display/videos/youtube-shorts/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let SimpleEditorPageBlockDisplayVideosYoutubeShortsComponent = _exports.default = (_dec = Ember.computed('args.model._data.url'), _class = class SimpleEditorPageBlockDisplayVideosYoutubeShortsComponent extends _component.default {\n    get videoId() {\n      const url = this.args?.url || this.args?.model?._data?.url || '';\n      if (!url) {\n        return '';\n      }\n      let urlObject = null;\n      try {\n        // Use the browser URL constructor which is available in Safari > 17.4\n        urlObject = new URL(url);\n      } catch (e) {\n        // Invalid URL\n        return '';\n      }\n      if (!urlObject) {\n        return '';\n      }\n      if (urlObject.host.includes('youtube.com') && urlObject.pathname.includes('/shorts/')) {\n        const pathname = urlObject.pathname || '';\n        return pathname.split('/')[2] || '';\n      }\n      return '';\n    }\n    get src() {\n      if (!this.videoId) {\n        return '';\n      }\n      const url = new URL(`https://www.youtube.com/embed/${this.videoId}`);\n      const model = this.args.model;\n      if (model?._data?.autoplay === true) {\n        url.searchParams.set('mute', '1');\n        url.searchParams.set('autoplay', '1');\n      }\n      if (model?._data?.loop === true) {\n        url.searchParams.set('loop', '1');\n        url.searchParams.set('playlist', this.videoId);\n      }\n      return url.toString();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"videoId\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"videoId\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-display/videos/youtube-shorts/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QLgmji+r\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"videoId\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"iframe\\\",true],[10,\\\"class\\\",\\\"simple-editor__videos-youtube-short\\\"],[10,\\\"width\\\",\\\"315\\\"],[10,\\\"height\\\",\\\"560\\\"],[11,\\\"src\\\",[23,0,[\\\"src\\\"]]],[10,\\\"frameborder\\\",\\\"0\\\"],[10,\\\"allow\\\",\\\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\\\"],[10,\\\"allowfullscreen\\\",\\\"\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-display/videos/youtube-shorts/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/background-color/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SimpleEditorBlockBaseBackgroundColorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class SimpleEditorBlockBaseBackgroundColorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/colors-options', 'simple-editor/lists/styling/colors', 'simple-editor/lists/styling/transparency']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/background-color/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rUexLDJR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@contextPrefix\\\",\\\"@formInitData\\\",\\\"@hasBackgroundToggleValue\\\",\\\"@isReadonly\\\",\\\"@hasBackgroundToggle\\\",\\\"@colorContext\\\",\\\"@model\\\",\\\"@colorKey\\\",\\\"@value\\\",\\\"@opacityContext\\\",\\\"@backgroundColorTransparencyValueKey\\\",\\\"@onSelect\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"background\\\",[29,[[23,1,[]],\\\"hasBackground\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,3,[]],[23,4,[]],true,false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[[23,6,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@hasInput\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,7,[]],false,[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],[23,8,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[[23,10,[]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-transparency\\\"]],[23,7,[]],[23,11,[]],[23,12,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/background-color/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/container-advanced/component\", [\"exports\", \"@glimmer/component\", \"ramda-extension\"], function (_exports, _component, R_) {\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;\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 SimpleEditorBlockBaseBackgroundColorComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.computed('args.model._data.settings.displayStyle', 'args.options.hasContainerMaxWidth'), _dec5 = Ember.computed('args.model._data.settings.hasContainerSchedules', 'args.model._data.hasContainerSchedules'), _dec6 = Ember.computed('args.model._data.settings.containerAnimation', 'args.model._data.settings.containerAnimationType'), _dec7 = Ember._action, _dec8 = Ember._action, _class = class SimpleEditorBlockBaseBackgroundColorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/colors-options', 'simple-editor/lists/styling/colors', 'simple-editor/lists/styling/transparency', 'simple-editor/lists/styling/border-style', 'simple-editor/lists/styling/border-width', 'simple-editor/lists/styling/border-radius', 'simple-editor/lists/styling/padding-sizes', 'simple-editor/lists/styling/margin-sizes', 'simple-editor/lists/styling/container-width', 'simple-editor/lists/styling/container-margin-options', 'simple-editor/lists/styling/container-padding-options', 'simple-editor/lists/styling/align', 'simple-editor/lists/styling/align-vertical', 'simple-editor/lists/styling/animations', 'simple-editor/lists/styling/animations-count', 'simple-editor/lists/styling/animations-duration', 'simple-editor/lists/styling/font-family', 'simple-editor/lists/styling/colors', 'simple-editor/lists/styling/sizes']);\n    }\n    get hasContainerMaxWidth() {\n      const hasContainerMaxWidth = this.args?.options?.hasContainerMaxWidth;\n      if (hasContainerMaxWidth === false) {\n        return false;\n      }\n      return true;\n    }\n    get hasContainerSchedulesPath() {\n      const hasContainerSchedulesPath = this.args?.options?.hasContainerSchedulesPath ?? '_data.settings.hasContainerSchedules';\n      return hasContainerSchedulesPath;\n    }\n    get schedules() {\n      const schedulesPath = this.args?.options?.schedulesPath ?? '_data.settings.schedules';\n      return R_.dotPathOr([], schedulesPath)(this.args?.model);\n    }\n    get isSchedulesAccordianExpanded() {\n      return R_.dotPathOr(false, this.hasContainerSchedulesPath)(this.args?.model);\n    }\n    get isAccordianExpanded() {\n      if (this.args?.isAccordianExpanded === true) {\n        return true;\n      }\n      return false;\n    }\n    get hasAnimationCount() {\n      if (this.args.model?._data?.settings?.containerAnimation === 'typing') {\n        return false;\n      }\n      if (this.args.model?._data?.settings?.containerAnimationType === 'transitionIn') {\n        return false;\n      }\n      return true;\n    }\n    onToggleAnimation(model, path) {\n      this.applicationService.toggleModelPath(model, path);\n      this.applicationService.modelSetIsForceReloading(model);\n    }\n    onSelectAnimation(model, ...paths) {\n      this.applicationService.modelSetPathFromModelPath(model, ...paths);\n      this.applicationService.modelSetIsForceReloading(model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"hasContainerMaxWidth\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"hasContainerMaxWidth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isSchedulesAccordianExpanded\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"isSchedulesAccordianExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasAnimationCount\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"hasAnimationCount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleAnimation\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleAnimation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectAnimation\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectAnimation\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/container-advanced/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zwKoRgno\",\n    \"block\": \"{\\\"symbols\\\":[\\\"schedule\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@formInitData\\\",\\\"@options\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[\\\"hasContainerSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[[12,\\\"class\\\",\\\"form-group__simple-block-editor__advanced-settings\\\"]],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isReadonly\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[\\\"schedules\\\",true,true,[23,2,[]],[23,0,[\\\"isSchedulesAccordianExpanded\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,3,[]],[23,0,[\\\"hasContainerSchedulesPath\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"schedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.schedule\\\",[23,4,[]],\\\"schedule\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isDateRange\\\",\\\"@dateInputType\\\"],[\\\"_data.dateStartZ\\\",[23,1,[]],[23,1,[\\\"_data\\\",\\\"dateStartZ\\\"]],true,\\\"datetime-local\\\"]]],[0,\\\"\\\\n        ~\\\\n        \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isDateRange\\\",\\\"@dateInputType\\\"],[\\\"_data.dateEndZ\\\",[23,1,[]],[23,1,[\\\"_data\\\",\\\"dateEndZ\\\"]],true,\\\"datetime-local\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasContainerSettings\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasContainerMaxWidth\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-sub-group\\\",[[12,\\\"class\\\",\\\"form-group__simple-block-editor__advanced-settings\\\"]],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\"],[\\\"container settings\\\",true,true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerMaxWidth\\\",[23,4,[]],\\\"container width\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-container-width\\\"]],[23,3,[]],\\\"_data.settings.containerMaxWidth\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[[12,\\\"class\\\",\\\"form-group__simple-block-editor__advanced-settings\\\"]],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\"],[\\\"margin settings\\\",true,true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[2,\\\" Margin Options \\\"],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerMarginOption\\\",[23,4,[]],\\\"container margin options\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-container-margin-options\\\"]],[23,3,[]],\\\"_data.settings.containerMarginOption\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,0,[\\\"constants\\\",\\\"containerMarginOption\\\",\\\"topAndBottom\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerMarginVertical\\\",[23,4,[]],\\\"container margin vertical\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-padding-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerMarginVertical\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[2,\\\" Margin Top \\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerMarginData.top\\\",[23,4,[]],\\\"container margin top\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-margin-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerMarginData.top\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[2,\\\" Margin Bottom \\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerMarginData.bottom\\\",[23,4,[]],\\\"container margin bottom\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-margin-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerMarginData.bottom\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[2,\\\" Margin Left \\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerMarginData.left\\\",[23,4,[]],\\\"container margin left\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-margin-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerMarginData.left\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[2,\\\" Margin Right \\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerMarginData.right\\\",[23,4,[]],\\\"container margin right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-margin-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerMarginData.right\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-sub-group\\\",[[12,\\\"class\\\",\\\"form-group__simple-block-editor__advanced-settings\\\"]],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\"],[\\\"padding settings\\\",true,true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[2,\\\" Padding Options \\\"],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerPaddingOption\\\",[23,4,[]],\\\"container padding options\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-container-padding-options\\\"]],[23,3,[]],\\\"_data.settings.containerPaddingOption\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,0,[\\\"constants\\\",\\\"containerPaddingOption\\\",\\\"all\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerPadding\\\",[23,4,[]],\\\"container padding\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-padding-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerPadding\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[2,\\\" Padding Top \\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerPaddingData.top\\\",[23,4,[]],\\\"container padding top\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-padding-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerPaddingData.top\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[2,\\\" Padding Bottom \\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerPaddingData.bottom\\\",[23,4,[]],\\\"container padding bottom\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-padding-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerPaddingData.bottom\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[2,\\\" Padding Left \\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerPaddingData.left\\\",[23,4,[]],\\\"container padding left\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-padding-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerPaddingData.left\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[2,\\\" Padding Right \\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerPaddingData.right\\\",[23,4,[]],\\\"container padding right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-padding-sizes\\\"]],[23,3,[]],\\\"_data.settings.containerPaddingData.right\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasContainerBackground\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[[12,\\\"class\\\",\\\"form-group__simple-block-editor__advanced-settings\\\"]],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isReadonly\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[\\\"background\\\",true,true,[23,2,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,3,[]],\\\"_data.settings.hasContainerBackground\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerBackgroundColor\\\",[23,4,[]],\\\"background color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@hasInput\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,3,[]],false,[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"_data.settings.containerBackgroundColor\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerBackgroundColorTransparency\\\",[23,4,[]],\\\"background transparency\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-transparency\\\"]],[23,3,[]],\\\"_data.settings.containerBackgroundColorTransparency\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasContainerBorder\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[[12,\\\"class\\\",\\\"form-group__simple-block-editor__advanced-settings\\\"]],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isReadonly\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[\\\"border\\\",true,true,[23,2,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,3,[]],\\\"_data.settings.hasContainerBorder\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerBorderColor\\\",[23,4,[]],\\\"border color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@hasInput\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,3,[]],false,[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"_data.settings.containerBorderColor\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerBorderStyle\\\",[23,4,[]],\\\"border style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-border-style\\\"]],[23,3,[]],true,\\\"_data.settings.containerBorderStyle\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerBorderWidth\\\",[23,4,[]],\\\"border width\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-border-width\\\"]],[23,3,[]],false,\\\"_data.settings.containerBorderWidth\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerBorderRadius\\\",[23,4,[]],\\\"border radius\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-border-radius\\\"]],[23,3,[]],true,\\\"_data.settings.containerBorderRadius\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasContainerAnimation\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[[12,\\\"class\\\",\\\"form-group__simple-block-editor__advanced-settings\\\"]],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isReadonly\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[\\\"animations\\\",true,true,[23,2,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleAnimation\\\"]],[23,3,[]],\\\"_data.settings.hasContainerAnimation\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerAnimation\\\",[23,4,[]],\\\"animation\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-animations\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectAnimation\\\"]],[23,3,[]],\\\"_data.settings.containerAnimationType\\\",\\\"_data.type\\\"],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerAnimationDuration\\\",[23,4,[]],\\\"animation duration\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-animations-duration\\\"]],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null],true,\\\"_data.settings.containerAnimationDuration\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasAnimationCount\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.containerAnimationCount\\\",[23,4,[]],\\\"animation count\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-animations-count\\\"]],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null],false,\\\"_data.settings.containerAnimationCount\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"preview animation\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[\\\"animation only plays when the element first scrolls into view\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasContainerQuickLinks\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[[12,\\\"class\\\",\\\"form-group__simple-block-editor__advanced-settings\\\"]],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isReadonly\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[\\\"quick links\\\",true,true,[23,2,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,3,[]],\\\"_data.settings.quickLink.enabled\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.quickLink.enabled\\\",[23,4,[]],\\\"add quick link label as block title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.quickLink.text\\\",[23,4,[]],\\\"container quick link label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@value\\\"],[true,[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"title font\\\",\\\"settings.quickLink.fontFamily\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-font-family\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/font-align\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,3,[]],[23,2,[]],[23,4,[]],\\\"settings.quickLink.fontAlign\\\",\\\"_data.settings.quickLink.fontAlign\\\"]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/font-size\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,3,[]],[23,2,[]],[23,4,[]],\\\"settings.quickLink.fontSize\\\",\\\"_data.settings.quickLink.fontSize\\\"]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/font-color\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@value\\\",\\\"@colorKey\\\"],[[23,3,[]],[23,2,[]],[23,4,[]],\\\"settings.quickLink.fontColor\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],\\\"_data.settings.quickLink.fontColor\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/container-advanced/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/container-align/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorBlockBaseFontAlignComponent = _exports.default = (_dec = Ember.inject.service, _class = class SimpleEditorBlockBaseFontAlignComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/align']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/container-align/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Rv40Vvyw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@valueKey\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],[23,2,[]],\\\"alignment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-align\\\"]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/container-align/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/content-btn/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SimpleEditorBlockBaseContentBtnComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('websites'), _class = class SimpleEditorBlockBaseContentBtnComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/content-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OD+0zDwn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@imageUuid\\\",\\\"@content\\\",\\\"@onClickContentAction\\\",\\\"@onSelectSubTab\\\",\\\"@isAccordian\\\",\\\"@label\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@index\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-editor-content-btn-container flex-container-row flex-container--align-items-center u-full-width\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"accordian-btn--pill\\\"],[12,\\\"data-content-id\\\",[23,2,[\\\"_data\\\",\\\"contentId\\\"]]],[12,\\\"data-content-id-action\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@onSubmit\\\"],[true,[28,\\\"fn\\\",[[23,4,[]],[23,2,[\\\"_data\\\",\\\"contentId\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-start form-section__title-container form-sub-group__title\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-section__sub-title-image\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@image\\\",\\\"@height\\\"],[[23,1,[]],40]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"form-section__sub-title form-section__title \\\",[28,\\\"if\\\",[[23,5,[]],\\\"form-section__title--accordian\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,6,[]]],[[\\\"translate\\\"],[false]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--no-bg\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,7,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayRemove\\\"]],[23,8,[]],\\\"_data.contents\\\",[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,8,[]]],null]]]]],null]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,7,[]],\\\"fas fa-copy\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"websitesService\\\",\\\"copyModel\\\"]],[28,\\\"hash\\\",null,[[\\\"parentModel\\\",\\\"listProp\\\",\\\"model\\\",\\\"adapterName\\\"],[[23,8,[]],\\\"contents\\\",[23,2,[]],[28,\\\"concat\\\",[\\\"simple-editor/page-blocks/\\\",[23,8,[\\\"_data\\\",\\\"type\\\"]],\\\"/content\\\"],null]]]]],null]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,7,[]],[28,\\\"isLast\\\",[[23,8,[\\\"_data\\\",\\\"contents\\\"]],[23,9,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,8,[]],\\\"_data.contents\\\",\\\"_data.index\\\",[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,8,[]]],null]]]]],null]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,7,[]],[28,\\\"eq\\\",[[23,9,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,8,[]],\\\"_data.contents\\\",\\\"_data.index\\\",[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,8,[]]],null]]]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/content-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/contents/image/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockEditorBaseContentsImageComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('application'), _dec4 = Ember.computed('args.content._data.imageAlt'), _class = class SimpleEditorPageBlockEditorBaseContentsImageComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/align', 'simple-editor/lists/styling/order-horizontal', 'simple-editor/lists/styling/interaction-methods', 'simple-editor/lists/styling/image-sizes']);\n    }\n    get title() {\n      const contentLabel = this.args.content?._data?.label;\n      if (contentLabel) {\n        return contentLabel;\n      }\n      const pageBlockType = this.args.pageBlock?._data?.type;\n      const typeLabel = this.intl.t(`pageBlocks_${pageBlockType}`);\n      const contentImageAlt = this.args.content?._data?.imageAlt;\n      if (!contentImageAlt) {\n        return typeLabel;\n      }\n      return `${typeLabel} (${contentImageAlt})`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"title\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/contents/image/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yOBsGGj+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formGroupClassNames\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,1,[]]]],[[\\\"@isElementToggler\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\",\\\"@formInitData\\\"],[false,true,true,\\\"text_sub-group\\\",[23,2,[]],[23,3,[]],false,[23,4,[\\\"label\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@isAccordianAlwaysExpanded\\\",\\\"@formInitData\\\"],[\\\"image\\\",true,true,true,[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/images-selector\\\",[],[[\\\"@model\\\",\\\"@context\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@forceReload\\\"],[[23,4,[]],\\\"contents.image\\\",[23,5,[]],[23,6,[]],[23,2,[]],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/contents/image/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/contents/links-or-buttons/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockEditorBaseContentsLinksOrButtonsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _class = class SimpleEditorPageBlockEditorBaseContentsLinksOrButtonsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirtyButtonsPageBlock\", _descriptor3, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/order-horizontal', 'simple-editor/lists/styling/buttons-display-styles', 'simple-editor/lists/styling/buttons-images-styles', 'simple-editor/lists/styling/buttons-images-types', 'simple-editor/lists/styling/interaction-methods', 'simple-editor/lists/styling/image-sizes']);\n    }\n    editButtonsPageBlock(buttonsPageBlock) {\n      this.dirtyButtonsPageBlock = this.crud.setupDirty({\n        adapterName: 'simple-editor/page-blocks/buttons',\n        model: buttonsPageBlock,\n        component: this,\n        resultsProperty: 'dirty'\n      });\n    }\n    cancelButtonsPageBlock() {\n      const dirty = this.dirtyButtonsPageBlock;\n      this.crud.cancelEditing({\n        adapterName: 'simple-editor/page-blocks/buttons',\n        dirty\n      });\n      this.dirtyButtonsPageBlock = null;\n    }\n    onAddButton() {}\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirtyButtonsPageBlock\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"editButtonsPageBlock\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"editButtonsPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelButtonsPageBlock\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelButtonsPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAddButton\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddButton\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/contents/links-or-buttons/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"4mmOZ0+X\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@isElementToggler\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\"],[false,true,true,\\\"text_sub-group\\\",[23,3,[]],[23,5,[]],false,[23,1,[\\\"label\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.interactionMethod\\\",[23,3,[]],\\\"links or buttons\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-interaction-methods\\\"]],[23,1,[]],\\\"_data.interactionMethod\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"interactionMethod\\\"]],\\\"link\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@hasLinkToggle\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@contextPrefix\\\"],[false,[23,1,[\\\"_data\\\",\\\"link\\\"]],[23,2,[]],[23,3,[]],[23,4,[]],\\\"contents.\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-editor/buttons\\\",[],[[\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\",\\\"@options\\\"],[[23,1,[\\\"_data\\\",\\\"buttonsPageBlock\\\"]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerSchedules\\\",\\\"hasContainerQuickLinks\\\"],[false,false]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/contents/links-or-buttons/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/contents/text/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockEditorBaseContentsTextComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _class = class SimpleEditorPageBlockEditorBaseContentsTextComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_debounceTimer\", _descriptor4, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/font-family']);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      clearTimeout(this._debounceTimer);\n    }\n    forceReloadOnInput() {\n      // Since stories use an old component. it should be re-render on title and template changes\n      const debounceDelay = 1000;\n      if (this.args?.pageBlock?._data?.settings?.displayStyle === this.constants.featuresDisplayStyles.story) {\n        clearTimeout(this._debounceTimer);\n        this._debounceTimer = setTimeout(() => {\n          this.applicationService.modelSetIsForceReloading(this.args?.pageBlock);\n        }, debounceDelay);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_debounceTimer\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"willDestroy\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"willDestroy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"forceReloadOnInput\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"forceReloadOnInput\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/contents/text/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"99cUBEWT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formGroupClassNames\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@content\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,1,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\"],[true,true,\\\"text_sub-group\\\",[23,2,[]],[23,3,[]],false,[23,4,[\\\"label\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[[3,\\\"did-update\\\",[[23,0,[\\\"forceReloadOnInput\\\"]],[23,4,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"title\\\"]]]]],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.textContentBlock.title\\\",[23,2,[]],\\\"title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"optional\\\",[23,5,[]],[23,4,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"title\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[[3,\\\"did-update\\\",[[23,0,[\\\"forceReloadOnInput\\\"]],[23,4,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"template\\\"]]]]],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.template\\\",[23,2,[]],\\\"template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@hasSidebarEdit\\\",\\\"@options\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[true,false,[28,\\\"hash\\\",null,[[\\\"autofocus\\\",\\\"height\\\",\\\"hasFontSize\\\",\\\"hasTextAlign\\\",\\\"defaultTextAlign\\\"],[false,300,false,false,\\\"\\\"]]],[23,5,[]],[23,4,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"template\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"title font\\\",\\\"contents.textContentBlock.fontFamilyTitle\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-font-family\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,4,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"fontFamilyTitle\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"font color\\\",\\\"contents.textContentBlock.fontColor\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@hasInput\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"_data.textContentBlock._data.fontColor\\\",[23,4,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"fontColor\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,2,[]],\\\"contents.textContentBlock.fontSize\\\",\\\"font size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-sizes\\\"]],[23,4,[\\\"_data\\\",\\\"textContentBlock\\\"]],\\\"_data.fontSize\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"simple-editor/page-block-editor/base/title-styles\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,4,[\\\"_data\\\",\\\"textContentBlock\\\"]],[23,5,[]],[23,2,[]],\\\"contents.textContentBlock.titleStyles\\\",\\\"_data.titleStyles\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/contents/text/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/focus-column-btn/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorBlockBaseFocusColumnBtnComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _class = class SimpleEditorBlockBaseFocusColumnBtnComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"translate\", _descriptor2, this);\n      _initializerDefineProperty(this, \"element\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasTriggered\", _descriptor4, this);\n    }\n    didInsert(element) {\n      this.element = element;\n      const isTriggerEditOnLoad = this.args.isTriggerEditOnLoad ?? false;\n      if (isTriggerEditOnLoad && !this.hasTriggered) {\n        this.showFocusColumn();\n        this.hasTriggered = true;\n      }\n    }\n    showFocusColumn() {\n      return this.args.showFocusColumn({\n        fromParentSelector: '.simple-editor__block-editor-focus-column-btn-container',\n        fromElementSelector: '.simple-editor__block-editor-focus-column-content',\n        fromElement: this.element,\n        content: this.args?.content\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.translate ?? true;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasTriggered\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showFocusColumn\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"showFocusColumn\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/focus-column-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xlsbdSj1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@imageUuid\\\",\\\"@contentId\\\",\\\"@onClickContentAction\\\",\\\"@isAccordian\\\",\\\"@label\\\",\\\"@content\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__block-editor-focus-column-btn-container\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsert\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[5,\\\"elements/accordian-btn\\\",[[12,\\\"class\\\",\\\"accordian-btn--pill\\\"],[12,\\\"data-content-id\\\",[23,2,[]]],[12,\\\"data-content-id-action\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@onSubmit\\\"],[true,[23,0,[\\\"showFocusColumn\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--justify-start form-section__title-container form-sub-group__title\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-section__sub-title-image\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@image\\\",\\\"@height\\\"],[[23,1,[]],40]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"form-section__sub-title form-section__title \\\",[28,\\\"if\\\",[[23,4,[]],\\\"form-section__title--accordian\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,5,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"                    \\\\n\\\\n\\\"],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-editor-focus-column-content u-display-none\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"to-teleport-content\\\"],[11,\\\"data-form-id\\\",[23,6,[\\\"_data\\\",\\\"contentId\\\"]]],[8],[0,\\\"\\\\n      \\\"],[14,7],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/focus-column-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/focus-column/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 SimpleEditorBlockBaseFocusColumnComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember.computed('args.{focusedColumnSelector,columnSelector}'), _dec4 = Ember.computed('args.columnSelector'), _class = class SimpleEditorBlockBaseFocusColumnComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"element\", _descriptor, this);\n    }\n    didInsert(element) {\n      this.element = element;\n      if (this.args.registerFocusColumn) {\n        this.args.registerFocusColumn(element);\n      }\n    }\n    get isShowing() {\n      const focusedColumnSelector = this.args.focusedColumnSelector || '';\n      if (focusedColumnSelector === this.args.columnSelector) {\n        return true;\n      }\n      return false;\n    }\n    get columnSelectorClassName() {\n      return R.replace(/\\./, '')(this.args.columnSelector || '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isShowing\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"isShowing\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"columnSelectorClassName\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"columnSelectorClassName\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/focus-column/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UUHLTzl7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&attrs\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__block-editor-focus-column-container\\\"],[13,1],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsert\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[23,0,[\\\"columnSelectorClassName\\\"]]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"to-teleport-content\\\"],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[14,2,[[23,0,[]]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/focus-column/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/font-align/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorBlockBaseFontAlignComponent = _exports.default = (_dec = Ember.inject.service, _class = class SimpleEditorBlockBaseFontAlignComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/align']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/font-align/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PW0DT1fD\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@valueKey\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],[23,2,[]],\\\"font alignment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-align\\\"]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/font-align/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/font-color/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorBlockBaseFontColorComponent = _exports.default = (_dec = Ember.inject.service, _class = class SimpleEditorBlockBaseFontColorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/colors']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/font-color/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"y+TCwo8F\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@context\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@colorKey\\\",\\\"@value\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],[23,2,[]],\\\"font color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@hasInput\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,3,[]],false,[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/font-color/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/font-size/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorBlockBaseFontSizeComponent = _exports.default = (_dec = Ember.inject.service, _class = class SimpleEditorBlockBaseFontSizeComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/sizes']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/font-size/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"29HcqI8o\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@valueKey\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],[23,2,[]],\\\"font size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-sizes\\\"]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/font-size/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/font-styles/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorBlocBaseFontStyleComponent = _exports.default = (_dec = Ember.inject.service, _class = class SimpleEditorBlocBaseFontStyleComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/font-styles']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/font-styles/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"AyHCgHHH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@valueKey\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],[23,2,[]],\\\"font style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",true,true,[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-font-styles\\\"]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/font-styles/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/images-selector/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 SimpleEditorBlockBaseImagesSelectorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember._tracked, _dec4 = Ember.computed('args.model._data.image.desktop.uuid', 'args.model._data.image.tablet.uuid', 'args.model._data.image.mobile.uuid'), _dec5 = Ember._action, _dec6 = Ember._action, _class = class SimpleEditorBlockBaseImagesSelectorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isFilesManagerModalVisible\", _descriptor3, this);\n      this.setup();\n    }\n    get previousImagesData() {\n      const modelData = this.args?.model?._data || {};\n      const imgSet = {\n        desktopUuid: modelData?.image?.desktop?.uuid,\n        tabletUuid: modelData?.image?.tablet?.uuid,\n        mobileUuid: modelData?.image?.mobile?.uuid\n      };\n      return {\n        imgSet\n      };\n    }\n    _getImageDataForDevice({\n      device,\n      imgSet\n    }) {\n      const uploadForDevice = R.prop(device)(imgSet) || {};\n      const data = {\n        uuid: '',\n        imageMimeType: '',\n        imageFormat: '',\n        imageAlt: '',\n        imageWidth: '',\n        imageHeight: '',\n        imageSequence: '',\n        imageMainColors: ''\n      };\n      if (uploadForDevice) {\n        data.uuid = uploadForDevice?._data?.uuid || '';\n        data.imageMainColors = uploadForDevice?._data?.mainColors || '';\n        data.imageMimeType = uploadForDevice?._data?.mimeType || '';\n        data.imageAlt = uploadForDevice?._data?.alt || '';\n        data.imageFormat = uploadForDevice?._data?.imageInfo?.format;\n        data.imageWidth = uploadForDevice?._data?.imageInfo?.width;\n        data.imageHeight = uploadForDevice?._data?.imageInfo?.height;\n        data.imageSequence = uploadForDevice?._data?.imageInfo?.sequence;\n      }\n      return data;\n    }\n    setup() {\n      if (this.previousImagesData.imgSet.desktopUuid || this.previousImagesData.imgSet.tabletUuid || this.previousImagesData.imgSet.mobileUuid) {\n        this.isFilesManagerModalVisible = false;\n      }\n    }\n    selectImage(content, onCloseDialogAction, options, uploadModels) {\n      const imgSet = R.pathOr({}, [0, 'imgSet'])(uploadModels);\n      const devices = ['desktop', 'tablet', 'mobile'];\n      const imageData = {};\n      R.forEach(device => {\n        imageData[device] = this._getImageDataForDevice({\n          device,\n          imgSet\n        });\n      })(devices);\n      content.setData('image', imageData);\n      const imageAlt = R.pathOr('', [0, '_data', 'alt'])(uploadModels);\n      content.setData('imageAlt', imageAlt);\n      if (this.args?.forceReload) {\n        this.args.forceReload();\n      }\n      onCloseDialogAction();\n    }\n    removeImage() {\n      this.args.model.setData('image', {});\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isFilesManagerModalVisible\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"previousImagesData\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"previousImagesData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectImage\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"selectImage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeImage\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"removeImage\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/images-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"luzfUkAT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@imageContext\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,1,[]],\\\"select image\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"files-manager\\\",[],[[\\\"@allowSingleUpload\\\",\\\"@allowMultipleItems\\\",\\\"@allowRemove\\\",\\\"@hideFilesGallery\\\",\\\"@model\\\",\\\"@onSubmit\\\",\\\"@resetSubTab\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@allowSrcSet\\\",\\\"@previousImage\\\",\\\"@isFilesManagerModalVisible\\\",\\\"@showSideBar\\\"],[true,false,true,true,[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectImage\\\"]],[23,3,[]]],null],true,\\\"websites\\\",[23,3,[\\\"_data\\\",\\\"contentId\\\"]],true,[23,5,[]],[23,2,[]],true,[23,0,[\\\"previousImagesData\\\"]],[23,0,[\\\"isFilesManagerModalVisible\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@imageClassNames\\\",\\\"@width\\\",\\\"@image\\\",\\\"@transform\\\",\\\"@tag\\\"],[\\\"auto\\\",\\\"u-padding-5\\\",40,[23,3,[\\\"_data\\\",\\\"image\\\",\\\"desktop\\\",\\\"uuid\\\"]],\\\"/-/scale_crop/100x100/smart/-/quality/best\\\",[28,\\\"tt\\\",[\\\"desktop\\\"],null]]]],[0,\\\"\\\\n    \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@imageClassNames\\\",\\\"@width\\\",\\\"@image\\\",\\\"@transform\\\",\\\"@tag\\\"],[\\\"auto\\\",\\\"u-padding-5\\\",40,[23,3,[\\\"_data\\\",\\\"image\\\",\\\"tablet\\\",\\\"uuid\\\"]],\\\"/-/scale_crop/100x100/smart/-/quality/best\\\",[28,\\\"tt\\\",[\\\"tablet\\\"],null]]]],[0,\\\"\\\\n    \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@imageClassNames\\\",\\\"@width\\\",\\\"@image\\\",\\\"@transform\\\",\\\"@tag\\\"],[\\\"auto\\\",\\\"u-padding-5\\\",40,[23,3,[\\\"_data\\\",\\\"image\\\",\\\"mobile\\\",\\\"uuid\\\"]],\\\"/-/scale_crop/100x100/smart/-/quality/best\\\",[28,\\\"tt\\\",[\\\"mobile\\\"],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"image\\\",\\\"desktop\\\",\\\"uuid\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.imageAlt\\\",[23,1,[]],\\\"image alt\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"optional\\\",[23,2,[]],[23,3,[\\\"_data\\\",\\\"imageAlt\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"remove image\\\",[23,0,[\\\"removeImage\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/images-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/panels-container/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SimpleEditorBlockBasePanelsContainerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class SimpleEditorBlockBasePanelsContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/colors-options', 'simple-editor/lists/styling/colors', 'simple-editor/lists/styling/transparency']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/panels-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qLcC0q6x\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlock\\\",\\\"@onSelectSubTab\\\",\\\"@options\\\",\\\"@tab\\\",\\\"@onSetPreviewDevice\\\",\\\"@previewDevice\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@pageBlocks\\\",\\\"@focusedColumnSelector\\\",\\\"@showFocusColumn\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[0,\\\"@pageBlock.componentForEdit: \\\"],[1,[23,1,[\\\"componentForEdit\\\"]],false],[0,\\\"\\\\n\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"componentForEdit\\\"]]],[[\\\"formGroupClassNames\\\",\\\"showFocusColumn\\\",\\\"focusedColumnSelector\\\",\\\"pageBlock\\\",\\\"pageBlocks\\\",\\\"website\\\",\\\"formInitData\\\",\\\"isReadonly\\\",\\\"previewDevice\\\",\\\"onSetPreviewDevice\\\",\\\"tab\\\",\\\"options\\\",\\\"onSelectSubTab\\\"],[[23,13,[]],[23,12,[]],[23,11,[]],[23,1,[]],[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/panels-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/presets/page-block-content-preview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // need to replace all reandom ids\n\n  class SimpleEditorBlockBasePresetPreviewComponent extends _component.default {}\n  _exports.default = SimpleEditorBlockBasePresetPreviewComponent;\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/presets/page-block-content-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HV2fyEOs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"presetModel\\\",\\\"@previewDevice\\\",\\\"@isReadonly\\\",\\\"@website\\\",\\\"@pageBlock\\\",\\\"@onSubmit\\\",\\\"@presets\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[8],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@translate\\\",\\\"@title\\\",\\\"@contentClassNames\\\"],[false,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,5,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\"flex-container-row flex-container-row--wrap flex-gap-8 flex-container--align-items-start\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__block-preview-container\\\"],[12,\\\"role\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,6,[]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"presetPreviewComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-preview-container-scaled\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"presetPreviewComponent\\\"]]],[[\\\"content\\\",\\\"pageBlock\\\",\\\"website\\\",\\\"isReadonly\\\",\\\"previewDevice\\\"],[[23,1,[]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,1,[\\\"_data\\\",\\\"type\\\"]]],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/presets/page-block-content-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/presets/page-block-preview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // need to replace all reandom ids\n\n  class SimpleEditorBlockBasePresetPreviewComponent extends _component.default {}\n  _exports.default = SimpleEditorBlockBasePresetPreviewComponent;\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/presets/page-block-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8xZRFrQR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"presetModel\\\",\\\"@index\\\",\\\"@onShowPreview\\\",\\\"@onSubmit\\\",\\\"@pageBlock\\\",\\\"@presets\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[8],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@translate\\\",\\\"@title\\\",\\\"@contentClassNames\\\"],[false,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,5,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\"flex-container-column flex-gap-4 flex-container--align-items-start\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__block-preview-container flex-container--align-items-start\\\"],[12,\\\"role\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"mouseenter\\\",[28,\\\"fn\\\",[[23,3,[]],[23,1,[]],[23,2,[]]],null]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,4,[]],[23,1,[]],[23,2,[]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"displayLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"displayLabel\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,1,[\\\"_data\\\",\\\"type\\\"]]],null]],null],false],[0,\\\":\\\"],[1,[23,1,[\\\"_data\\\",\\\"blockId\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/presets/page-block-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/preview-btns/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorBlockBasePreviewBtnsComponent extends _component.default {}\n  _exports.default = SimpleEditorBlockBasePreviewBtnsComponent;\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/preview-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ryG2hGW9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\"],\\\"statements\\\":[[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isActivated\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[]],\\\"desktop\\\"],null],true,false],null],\\\"fas fa-desktop\\\",[28,\\\"fn\\\",[[23,2,[]],\\\"desktop\\\"],null]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isActivated\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[]],\\\"tablet\\\"],null],true,false],null],\\\"fas fa-tablet-alt\\\",[28,\\\"fn\\\",[[23,2,[]],\\\"tablet\\\"],null]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@isActivated\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[]],\\\"mobile\\\"],null],true,false],null],\\\"fas fa-mobile-alt\\\",[28,\\\"fn\\\",[[23,2,[]],\\\"mobile\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/preview-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/title-styles/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorBlockBaseTitleStyleComponent = _exports.default = (_dec = Ember.inject.service, _class = class SimpleEditorBlockBaseTitleStyleComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/title-styles']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/base/title-styles/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"q1ZldgyL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@valueKey\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],[23,2,[]],\\\"title style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",true,true,[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-title-styles\\\"]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/base/title-styles/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/blogs/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 SimpleEditorPageBlockEditorBlogsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('simple-editor.page-blocks.blogs'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _class = class SimpleEditorPageBlockEditorBlogsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"pageBlocksBlogsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isRefreshing\", _descriptor0, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/grid-row-items', 'simple-editor/lists/styling/display-styles', 'simple-editor/lists/styling/display-by', 'simple-editor/lists/styling/items-per-page', 'simple-editor/lists/styling/blogs-sorting', 'blogs/lists/tags', 'blogs/lists/line-count', 'filters/sortDirection', 'channels/shop/campaigns/lists/productsImagesRatio', 'channels/shop/campaigns/lists/productsImagesFit', 'products/lists/bigordr-products-per-row', 'blogs/lists/styles']);\n      const tags = this.args.pageBlock?._data?.settings?.tags || [];\n      const keys = this.args.pageBlock?._data?.settings?.keys || [];\n      const master = this.args.website?._data?._key || '';\n      this.filters = this.search.setupFilters({\n        adapterName: 'blogs/filters',\n        defaultFiltersData: {\n          count: 20,\n          page: 1,\n          master,\n          hasImages: true,\n          tags,\n          keys,\n          sort: [{\n            by: 'index',\n            direction: 'asc'\n          }]\n        }\n      });\n      this.pageBlocksBlogsService.fetchTask.perform(this.filters);\n    }\n    get blogsImagesRatioList() {\n      const blogsStyle = this?.model?._data?.blogsStyle || 'style1';\n      const blogsImagesRatioList = this.crud.lists['channels-shop-campaigns-lists-productsImagesRatio'] || [];\n      return R.filter(ratio => {\n        const allowedForBlogsStyles = ratio?._data?.allowedForBlogsStyles || [];\n        return R.includes(blogsStyle, allowedForBlogsStyles);\n      })(blogsImagesRatioList);\n    }\n    toggleItem(pageBlock, model, toggle) {\n      if (toggle) {\n        return this.addItem(pageBlock, model);\n      }\n      this.removeItem(pageBlock, model);\n    }\n    addItem(pageBlock, model) {\n      const key = model?._data?._key || '';\n      const keys = R.pipe(R.pathOr([], ['args', 'pageBlock', '_data', 'settings', 'keys']), R.append(key), R.uniq)(this);\n      pageBlock.setData('settings.keys', keys);\n    }\n    removeItem(pageBlock, model) {\n      const key = model?._data?._key || '';\n      const keys = R.pipe(R.pathOr([], ['args', 'pageBlock', '_data', 'settings', 'keys']), R.reject(R.equals(key)))(this);\n      pageBlock.setData('settings.keys', keys);\n      const updatedResults = R.pipe(R.pathOr([], ['filters', 'results']), R.filter(R.pipe(R.path(['_data', '_key']), R.includes(R.__, pageBlock?._data?.settings?.keys))))(this);\n      this.filters.set('results', updatedResults);\n    }\n    setRefreshing() {\n      this.isRefreshing = true;\n      setTimeout(() => {\n        this.isRefreshing = false;\n      }, 50);\n    }\n    resetTagsAndKeys(pageBlock, displayByModel) {\n      const shouldTryToResetTags = displayByModel?._data?.value === this.constants.displayBy.items && RA.isNotNilOrEmpty(pageBlock?._data?.settings?.tags);\n      const shouldTryToResetKeys = displayByModel?._data?.value === this.constants.displayBy.tags && RA.isNotNilOrEmpty(pageBlock?._data?.settings?.keys);\n      if (!shouldTryToResetKeys && !shouldTryToResetTags) {\n        return;\n      }\n      this.setRefreshing();\n      if (shouldTryToResetKeys) {\n        const message = this.intl.t('are you sure you want to clear', {\n          item: this.constants.displayBy.items\n        });\n        if (!window.confirm(message)) {\n          pageBlock.setData('settings.displayBy', this.constants.displayBy.items);\n          return;\n        }\n        pageBlock.setData('settings.keys', []);\n      }\n      if (shouldTryToResetTags) {\n        const message = this.intl.t('are you sure you want to clear', {\n          item: this.constants.displayBy.tags\n        });\n        if (!window.confirm(message)) {\n          pageBlock.setData('settings.displayBy', this.constants.displayBy.tags);\n          return;\n        }\n        pageBlock.setData('settings.tags', []);\n      }\n      this.filters.reset();\n    }\n    onReorder(pageBlock, fromIndex = -1, toIndex = -1, reorderedList = []) {\n      // update the pageBlock settings keys with new order\n      const updatedKeys = R.map(R.path(['_data', '_key']))(reorderedList);\n      pageBlock.setData('settings.keys', updatedKeys);\n      return this.applicationService.modelSetIsForceReloading(pageBlock);\n    }\n    *fetchByKeyTask(filters, onCloseDialogAction) {\n      const keys = this.args.pageBlock?._data?.settings?.keys || [];\n      filters.setData('keys', keys);\n      yield this.pageBlocksBlogsService.fetchTask.perform(filters);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *fetchByTagsTask(filters, tags) {\n      filters.setData('tags', tags);\n      yield this.pageBlocksBlogsService.fetchTask.perform(filters);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"pageBlocksBlogsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"isRefreshing\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleItem\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addItem\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"addItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeItem\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"removeItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetTagsAndKeys\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"resetTagsAndKeys\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onReorder\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"onReorder\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchByKeyTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByKeyTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchByTagsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByTagsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/blogs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gm5ZCoaX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@formInitData\\\",\\\"@pageBlock\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"blogs_settings_group\\\",[23,3,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayStyle\\\",\\\"display style\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-display-styles\\\"]],[23,4,[]],\\\"_data.settings.displayStyle\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],\\\"grid\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.style\\\",\\\"blogs style\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-styles\\\"]],[23,4,[]],\\\"_data.settings.style\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"style\\\"]],\\\"style2\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayItemsPerRow\\\",\\\"\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-label\\\",[[12,\\\"class\\\",\\\"has-text-danger\\\"]],[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fas fa-circle-info\\\",\\\"no preview\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"style\\\"]],\\\"style2\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayItemsPerRow\\\",\\\"display items per row\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[28,\\\"or\\\",[[23,7,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],\\\"slider\\\"],null]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-grid-row-items\\\"]],[23,4,[]],false,\\\"_data.settings.gridRowItems\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.itemsPerPage\\\",\\\"items per page\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-items-per-page\\\"]],[23,4,[]],false,\\\"_data.settings.itemsPerPage\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.lineCountTitle\\\",\\\"line count for title\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-line-count\\\"]],[23,4,[]],\\\"_data.settings.lineCountTitle\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.lineCountDescription\\\",\\\"line count for description\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-line-count\\\"]],[23,4,[]],\\\"_data.settings.lineCountDescription\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.imageRatio\\\",\\\"blogs images ratio\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"blogsImagesRatioList\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],true,[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"imageRatio\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"blogsImagesFit\\\",[22,\\\"formInitData\\\"],[22,\\\"errors\\\"],\\\"blogs images fit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,true,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesFit\\\"]],[23,4,[]],\\\"_data.settings.imageFit\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayBy\\\",\\\"display by\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isRefreshing\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-display-by\\\"]],[23,4,[]],\\\"_data.settings.displayBy\\\",[28,\\\"fn\\\",[[23,0,[\\\"resetTagsAndKeys\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"tags\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"sort by\\\",\\\"settings.sortBy\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,7,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-blogs-sorting\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sortBy\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfterTask\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"fetchByTagsTask\\\"]],[23,0,[\\\"filters\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"sort direction\\\",\\\"settings.sortDirection\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sortDirection\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfterTask\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"perform\\\",[[23,0,[\\\"fetchByTagsTask\\\"]],[23,0,[\\\"filters\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayItemsPerRow\\\",\\\"tags\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\"],[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"items\\\"]]],null],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchByTagsTask\\\"]],[23,0,[\\\"filters\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@adapterName\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"blogs/lists/tags\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],[23,4,[]],true,\\\"_data._key\\\",false,\\\"_data.settings.tags\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-tags\\\"]],false,[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"items\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.keys\\\",\\\"add\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@onClose\\\"],[\\\"select blogs\\\",\\\"fas fa-plus\\\",false,[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"tags\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchByKeyTask\\\"]],[23,0,[\\\"filters\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"blogs/search-bar\\\",[],[[\\\"@tab\\\",\\\"@master\\\",\\\"@onSelect\\\",\\\"@preSelected\\\"],[[23,5,[]],[23,6,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleItem\\\"]],[23,4,[]]],null],[23,0,[\\\"filters\\\",\\\"results\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,1,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"items_settings_group\\\",[23,3,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"fetchByTagsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchByKeyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@onPaginationTask\\\",\\\"@tableViewOptions\\\"],[\\\"new-table-view\\\",\\\"blogs/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,5,[]],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"tab\\\",\\\"isReadonly\\\",\\\"isAllowReorder\\\",\\\"isGuest\\\",\\\"allowEdit\\\",\\\"updateRecordIndexOnDrop\\\",\\\"onRemove\\\",\\\"isSelectedByTags\\\",\\\"onReorder\\\"],[\\\"blogs\\\",[23,5,[]],false,[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"tags\\\"]]],null],false,true],null],true,false,false,[28,\\\"fn\\\",[[23,0,[\\\"removeItem\\\"]],[23,4,[]]],null],[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\",\\\"length\\\"]],true,false],null],[28,\\\"fn\\\",[[23,0,[\\\"onReorder\\\"]],[23,4,[]]],null]]]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,8,[]],[23,4,[]],[23,7,[]],[23,3,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerQuickLinks\\\",\\\"hasSchedhasContainerSchedulesules\\\"],[true,true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/blogs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/buttons/add-contents/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockEditorButtonsAddContents = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _class = class SimpleEditorPageBlockEditorButtonsAddContents extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor4, this);\n      this.setup();\n    }\n    setup() {}\n    selectButtonStyle(buttonStyle, model, path, onCloseDialogActionListBtn) {\n      model.setData(path, buttonStyle);\n      onCloseDialogActionListBtn();\n    }\n    reorderContents(contents, content) {\n      const dragItem = this.dragDetail;\n      const onOverItemIndex = content.get('_data.index');\n      this.dragDropSort.reorderItemsByIndex(contents, dragItem, onOverItemIndex);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectButtonStyle\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"selectButtonStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderContents\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderContents\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/buttons/add-contents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HWRCkIqx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"onCloseDialogActionListBtn\\\",\\\"@formInitData\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@showFocusColumn\\\",\\\"@onSelectSubTab\\\",\\\"@formGroupClassNames\\\",\\\"@tab\\\",\\\"@website\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@droppable\\\",\\\"@model\\\",\\\"@modelIdPath\\\",\\\"@classNames\\\",\\\"@dropContainerPlaceholderClass\\\",\\\"@hasDropContainerPlaceholders\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[true,[23,1,[]],\\\"_data._id\\\",\\\"drop-container--easy-drop\\\",\\\"u-full-width\\\",true,[23,0,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"reorderContents\\\"]],[23,5,[\\\"_data\\\",\\\"contents\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,0,[]],[23,1,[]],[23,0,[\\\"dragDetail\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@gripClassNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\"],[true,\\\"has-grip\\\",\\\"wide-grip-icon-container\\\",[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,1,[\\\"_data\\\",\\\"index\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/page-block-editor/base/content-btn\\\",[],[[\\\"@index\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@showFocusColumn\\\",\\\"@onClickContentAction\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@content\\\",\\\"@onSelectSubTab\\\"],[[23,2,[]],[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"label\\\"]],[23,1,[\\\"_data\\\",\\\"label\\\"]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,5,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\" \\\",[28,\\\"sum\\\",[[23,2,[]],1],null]],null]],null],false,[23,7,[]],\\\"focus-column\\\",[23,6,[]],[23,5,[]],[23,1,[]],[28,\\\"fn\\\",[[23,8,[]],[23,1,[\\\"_data\\\",\\\"contentId\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\"],[true,true,\\\"text_sub-group\\\",[23,4,[]],[23,10,[]],false,[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"label\\\"]],[23,1,[\\\"_data\\\",\\\"label\\\"]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,5,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\" \\\",[28,\\\"sum\\\",[[23,2,[]],1],null]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.label\\\",[23,4,[]],\\\"description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,6,[]],true,[23,1,[\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@contextPrefix\\\"],[[23,1,[\\\"_data\\\",\\\"link\\\"]],[23,6,[]],[23,4,[]],[23,11,[]],\\\"contents.\\\"]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.hasCustomStyle\\\",[23,4,[]],\\\"custom\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,1,[\\\"_data\\\",\\\"hasCustomStyle\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"hasCustomStyle\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,4,[]],\\\"website_button_color\\\",\\\"contents.buttonStyle\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@label\\\"],[[23,1,[\\\"_data\\\",\\\"buttonStyle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button1\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button1\\\",[23,1,[]],\\\"buttonStyle\\\",[23,3,[]]],null]]],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button1\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"button1\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button2\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button2\\\",[23,1,[]],\\\"buttonStyle\\\",[23,3,[]]],null]]],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button2\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"button2\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button3\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button3\\\",[23,1,[]],\\\"buttonStyle\\\",[23,3,[]]],null]]],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button3\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"button3\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"link\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"link\\\",[23,1,[]],\\\"buttonStyle\\\",[23,3,[]]],null]]],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__link\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"link\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"simple-editor/page-block-editor/base/font-styles\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,1,[]],[23,6,[]],[23,4,[]],\\\"contents.fontStyles\\\",\\\"_data.fontStyles\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",false,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,5,[\\\"_data\\\",\\\"type\\\"]]],null]],null],[28,\\\"or\\\",[[23,6,[]],[23,5,[\\\"isContentLimited\\\"]]],null],[28,\\\"fn\\\",[[23,5,[\\\"newContent\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/buttons/add-contents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/buttons/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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, _dec0, _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 SimpleEditorBlockLinkComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember.computed('args.pageBlock._data.settings.displayStyle'), _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class SimpleEditorBlockLinkComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor6, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/buttons-display-size', 'simple-editor/lists/styling/buttons-display-styles', 'simple-editor/lists/styling/buttons-images-styles', 'simple-editor/lists/styling/buttons-images-types']);\n    }\n    get hasContainerAdvanced() {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n    get hasContainerSchedules() {\n      return this.args.options?.hasContainerSchedules ?? true;\n    }\n    get hasContainerQuickLinks() {\n      return this.args.options?.hasContainerQuickLinks ?? true;\n    }\n    get hasContainerBackground() {\n      return this.args.options?.hasContainerBackground ?? true;\n    }\n    get hasContainerBorder() {\n      return this.args.options?.hasContainerBorder ?? true;\n    }\n    get hasContainerSettings() {\n      return this.args.options?.hasContainerSettings ?? true;\n    }\n    get hasContainerMaxWidth() {\n      return this.args.pageBlock?._data?.settings?.displayStyle === this.constants.buttonsDisplayStyles.horizontal;\n    }\n    selectButtonStyle(buttonStyle, model, path, onCloseDialogActionListBtn) {\n      model.setData(path, buttonStyle);\n      onCloseDialogActionListBtn();\n    }\n    get hasButtonsAlign() {\n      const hasButtonsAlign = this.args.options?.hasButtonsAlign;\n      if (RA.isNilOrEmpty(hasButtonsAlign)) {\n        return true;\n      }\n      return hasButtonsAlign;\n    }\n    reorderContents(contents, content) {\n      const dragItem = this.dragDetail;\n      const onOverItemIndex = content.get('_data.index');\n      this.dragDropSort.reorderItemsByIndex(contents, dragItem, onOverItemIndex);\n    }\n    selectSubTab(contentId) {\n      const onSelectSubTab = this.args?.onSelectSubTab;\n      if (!onSelectSubTab) {\n        return;\n      }\n      onSelectSubTab(contentId);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"hasContainerMaxWidth\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"hasContainerMaxWidth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectButtonStyle\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"selectButtonStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderContents\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderContents\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectSubTab\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"selectSubTab\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/buttons/contents/buttons/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockEditorButtonsContentsButtons = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember.computed('args.content._data.label'), _dec7 = Ember._action, _dec8 = Ember._action, _class = class SimpleEditorPageBlockEditorButtonsContentsButtons extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor5, this);\n    }\n    get label() {\n      const pageBlockLabelTranslated = this.intl.t(this.constants.interactionMethods.button);\n      const contentIndex = this.args?.content?._data?.index ?? 0;\n      const pageBlockLabel = `${pageBlockLabelTranslated} ${contentIndex + 1}`;\n      const label = this.args?.label;\n      if (label) {\n        return label;\n      }\n      const contentLabel = this.args?.content?._data?.label;\n      if (contentLabel) {\n        return `${pageBlockLabel} - ${contentLabel}`;\n      }\n      return pageBlockLabel;\n    }\n    selectButtonStyle(buttonStyle, model, path, onCloseDialogActionListBtn) {\n      model.setData(path, buttonStyle);\n      onCloseDialogActionListBtn();\n    }\n    reorderContents(contents, content) {\n      const dragItem = this.dragDetail;\n      const onOverItemIndex = content.get('_data.index');\n      this.dragDropSort.reorderItemsByIndex(contents, dragItem, onOverItemIndex);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"label\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectButtonStyle\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"selectButtonStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderContents\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderContents\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/buttons/contents/buttons/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fcTdt9v0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogActionListBtn\\\",\\\"@formInitData\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formGroupClassNames\\\",\\\"@tab\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,6,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\"],[true,true,\\\"text_sub-group\\\",[23,2,[]],[23,7,[]],false,[23,0,[\\\"label\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.label\\\",[23,2,[]],\\\"description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,5,[]],true,[23,3,[\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@contextPrefix\\\"],[[23,3,[\\\"_data\\\",\\\"link\\\"]],[23,5,[]],[23,2,[]],[23,8,[]],\\\"contents.\\\"]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.hasCustomStyle\\\",[23,2,[]],\\\"custom\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,3,[\\\"_data\\\",\\\"hasCustomStyle\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"hasCustomStyle\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,2,[]],\\\"website_button_color\\\",\\\"contents.buttonStyle\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@label\\\"],[[23,3,[\\\"_data\\\",\\\"buttonStyle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button1\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button1\\\",[23,3,[]],\\\"buttonStyle\\\",[23,1,[]]],null]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button1\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"button1\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button2\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button2\\\",[23,3,[]],\\\"buttonStyle\\\",[23,1,[]]],null]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button2\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"button2\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button3\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button3\\\",[23,3,[]],\\\"buttonStyle\\\",[23,1,[]]],null]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button3\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"button3\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"link\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"link\\\",[23,3,[]],\\\"buttonStyle\\\",[23,1,[]]],null]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__link\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"link\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/font-styles\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,3,[]],[23,5,[]],[23,2,[]],\\\"contents.fontStyles\\\",\\\"_data.fontStyles\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/buttons/contents/buttons/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/buttons/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"I5j5oUHn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogActionListBtn\\\",\\\"content\\\",\\\"index\\\",\\\"onCloseDialogActionListBtn\\\",\\\"@formGroupClassNames\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@showFocusColumn\\\",\\\"@tab\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,5,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"buttons_contents_group\\\",[23,8,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@droppable\\\",\\\"@model\\\",\\\"@modelIdPath\\\",\\\"@classNames\\\",\\\"@dropContainerPlaceholderClass\\\",\\\"@hasDropContainerPlaceholders\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[true,[23,2,[]],\\\"_data._id\\\",\\\"drop-container--easy-drop\\\",\\\"u-full-width\\\",true,[23,0,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"reorderContents\\\"]],[23,6,[\\\"_data\\\",\\\"contents\\\"]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,0,[]],[23,2,[]],[23,0,[\\\"dragDetail\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@gripClassNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\"],[true,\\\"has-grip\\\",\\\"wide-grip-icon-container\\\",[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,2,[\\\"_data\\\",\\\"index\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"simple-editor/page-block-editor/base/content-btn\\\",[],[[\\\"@index\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@showFocusColumn\\\",\\\"@onClickContentAction\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@content\\\",\\\"@onSelectSubTab\\\"],[[23,3,[]],[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"label\\\"]],[23,2,[\\\"_data\\\",\\\"label\\\"]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,6,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\" \\\",[28,\\\"sum\\\",[[23,3,[]],1],null]],null]],null],false,[23,9,[]],\\\"focus-column\\\",[23,7,[]],[23,6,[]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectSubTab\\\"]],[23,2,[\\\"_data\\\",\\\"contentId\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,5,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\"],[true,true,\\\"text_sub-group\\\",[23,8,[]],[23,10,[]],false,[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"label\\\"]],[23,2,[\\\"_data\\\",\\\"label\\\"]],[28,\\\"concat\\\",[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,6,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\" \\\",[28,\\\"sum\\\",[[23,3,[]],1],null]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.label\\\",[23,8,[]],\\\"description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[23,7,[]],true,[23,2,[\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@contextPrefix\\\"],[[23,2,[\\\"_data\\\",\\\"link\\\"]],[23,7,[]],[23,8,[]],[23,11,[]],\\\"contents.\\\"]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.hasCustomStyle\\\",[23,8,[]],\\\"custom\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,2,[\\\"_data\\\",\\\"hasCustomStyle\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"hasCustomStyle\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,8,[]],\\\"website_button_color\\\",\\\"contents.buttonStyle\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@label\\\"],[[23,2,[\\\"_data\\\",\\\"buttonStyle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button1\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button1\\\",[23,2,[]],\\\"buttonStyle\\\",[23,4,[]]],null]]],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button1\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"button1\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button2\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button2\\\",[23,2,[]],\\\"buttonStyle\\\",[23,4,[]]],null]]],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button2\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"button2\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button3\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button3\\\",[23,2,[]],\\\"buttonStyle\\\",[23,4,[]]],null]]],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button3\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"button3\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"link\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"link\\\",[23,2,[]],\\\"buttonStyle\\\",[23,4,[]]],null]]],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__link\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"link\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"simple-editor/page-block-editor/base/font-styles\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,2,[]],[23,7,[]],[23,8,[]],\\\"contents.fontStyles\\\",\\\"_data.fontStyles\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",false,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,6,[\\\"_data\\\",\\\"type\\\"]]],null]],null],[28,\\\"or\\\",[[23,7,[]],[23,6,[\\\"isContentLimited\\\"]]],null],[28,\\\"fn\\\",[[23,6,[\\\"newContent\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,5,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"buttons_settings_group\\\",[23,8,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.displayStyle\\\",[23,8,[]],\\\"display style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-buttons-display-styles\\\"]],[23,6,[]],\\\"_data.settings.displayStyle\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],[23,0,[\\\"constants\\\",\\\"buttonsDisplayStyles\\\",\\\"vertical\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.displayStyle\\\",[23,8,[]],\\\"size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-buttons-display-size\\\"]],[23,6,[]],\\\"_data.settings.displaySize\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\"],[[23,8,[]],\\\"website_button_color\\\",\\\"settings.buttonStyle\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@label\\\"],[[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"buttonStyle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button1\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button1\\\",[23,6,[]],\\\"settings.buttonStyle\\\",[23,1,[]]],null]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button1\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"button1\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button2\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button2\\\",[23,6,[]],\\\"settings.buttonStyle\\\",[23,1,[]]],null]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button2\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"button2\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"button3\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"button3\\\",[23,6,[]],\\\"settings.buttonStyle\\\",[23,1,[]]],null]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__button3\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"button3\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"swatch-wrapper-list \\\",[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"buttonStyle\\\"]],\\\"link\\\"],null],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectButtonStyle\\\"]],\\\"link\\\",[23,6,[]],\\\"settings.buttonStyle\\\",[23,1,[]]],null]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"simple-editor__button simple-editor__link\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[\\\"link\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,6,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],[23,0,[\\\"constants\\\",\\\"buttonsDisplayStyles\\\",\\\"horizontal\\\"]]],null]],null,{\\\"statements\\\":[],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-editor/base/font-align\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,6,[]],[23,7,[]],[23,8,[]],\\\"settings.fontAlign\\\",\\\"_data.settings.fontAlign\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"simple-editor/page-block-editor/base/font-size\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,6,[]],[23,7,[]],[23,8,[]],\\\"settings.fontSize\\\",\\\"_data.settings.fontSize\\\"]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"simple-editor/page-block-editor/base/font-styles\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,6,[]],[23,7,[]],[23,8,[]],\\\"settings.fontStyles\\\",\\\"_data.settings.fontStyles\\\"]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContainerAdvanced\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerSchedules\\\",\\\"hasContainerQuickLinks\\\",\\\"hasContainerMaxWidth\\\"],[[23,0,[\\\"hasContainerBackground\\\"]],[23,0,[\\\"hasContainerBorder\\\"]],[23,0,[\\\"hasContainerSettings\\\"]],[23,0,[\\\"hasContainerSchedules\\\"]],[23,0,[\\\"hasContainerQuickLinks\\\"]],[23,0,[\\\"hasContainerMaxWidth\\\"]]]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/buttons/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 SimpleEditorBlockPageBlockEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('application'), _dec5 = Ember.inject.service('constants'), _dec6 = Ember.inject.service('websites'), _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember.computed('args.dirty.synced', 'args.dirty.isEditing', 'args.dirty.syncedComputed'), _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _class = class SimpleEditorBlockPageBlockEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor6, this);\n      _defineProperty(this, \"defaultFocusedColumnSelector\", '.simple-editor__block-editor-focus-column--default');\n      // this should never be changed\n      _initializerDefineProperty(this, \"element\", _descriptor7, this);\n      _initializerDefineProperty(this, \"navMenuElement\", _descriptor8, this);\n      _initializerDefineProperty(this, \"focusedColumnSelector\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isFocusedElementData\", _descriptor0, this);\n      _initializerDefineProperty(this, \"currentFocusedElement\", _descriptor1, this);\n      _initializerDefineProperty(this, \"showSidebar\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectedContent\", _descriptor11, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/align', 'simple-editor/lists/styling/colors', 'simple-editor/lists/styling/colors-options', 'simple-editor/lists/styling/sizes', 'websites/lists/layout/btns-border-radius', 'simple-editor/lists/styling/social-links-types', 'simple-editor/lists/panels-container']);\n      this.args.tab?.resetTabs?.();\n      this.focusedColumnSelector = this.defaultFocusedColumnSelector;\n    }\n    get hasNavMenu() {\n      if (this.panels.length > 1) {\n        return true;\n      }\n      return false;\n    }\n    didInsert(element) {\n      this.element = element;\n      this.toggleSidebarAfterDelay();\n    }\n    didInsertNavMenu(element) {\n      this.navMenuElement = element;\n    }\n\n    /**\n     * Toggles the visibility of the sidebar with a delay.\n     * Initially toggles the sidebar after a specified delay.\n     * If the navigation menu is not present, toggles the sidebar again after a shorter delay.\n     *\n     * @return {void} Does not return a value.\n     */\n    toggleSidebarAfterDelay() {\n      setTimeout(() => {\n        this.toggleShowSidebar();\n        if (this.hasNavMenu) {\n          return;\n        }\n        setTimeout(() => {\n          this.toggleShowSidebar();\n        }, 50);\n      }, 500);\n    }\n    get panels() {\n      const pageBlock = this.args.dirty;\n      // This should not be removed, otherwise it computed property won't trigger\n      pageBlock.syncedComputed;\n      return this.setupPanelList({\n        pageBlock\n      });\n    }\n    setupPanelList({\n      pageBlock,\n      isFromTab = false,\n      tabParentId = null\n    }) {\n      const pageBlockType = pageBlock?._data?.type;\n      const list = [];\n      const headerPanel = this.crud.setupNewRecord({\n        adapterName: 'simple-editor/nav-tree',\n        data: {\n          isNested: isFromTab ? true : false,\n          depth: isFromTab ? 2 : 0,\n          value: pageBlock?._data?.blockId,\n          label: isFromTab ? `${this.intl.t('contents_and_settings')} (${this.intl.t(`pageBlocks_${pageBlockType}`)})` : 'contents_and_settings',\n          component: `simple-editor/page-block-editor/${pageBlockType}`,\n          content: isFromTab ? pageBlock : null,\n          tabParentId\n        }\n      });\n      if (isFromTab) {\n        headerPanel.set('translate', false);\n      }\n      list.push(headerPanel);\n      const setupPanelHash = {\n        [this.constantsService.pageBlockTypes.images]: this.setupImagePanelList,\n        [this.constantsService.pageBlockTypes.features]: this.setupImagePanelList,\n        [this.constantsService.pageBlockTypes.tabs]: this.setupTabsPanelList\n      };\n      const setupPanelFn = setupPanelHash[pageBlockType];\n      if (setupPanelFn) {\n        const result = setupPanelFn({\n          pageBlock,\n          isFromTab,\n          tabParentId\n        }) || [];\n        return list.concat(result);\n      }\n      const isNested = pageBlock?.contentsLimit > 1;\n      return R.pipe(R.pathOr([], ['_data', 'contents']), R.reduce((acc, content) => {\n        const type = content?._data?.type;\n        const contentId = content?._data?.contentId;\n        if (type === this.constantsService.pageBlockTypes.socialLinks) {\n          // No Nav Menu\n        } else if (type === this.constantsService.pageBlockTypes.videos) {\n          // No Nav Menu\n        } else if (type === this.constantsService.pageBlockTypes.flows) {\n          // No Nav Menu\n        } else if (type === this.constantsService.pageBlockTypes.texts) {\n          // No Nav Menu\n        } else if (type === this.constantsService.pageBlockTypes.custom) {\n          // No Nav Menu\n        } else {\n          let component = `simple-editor/page-block-editor/${type}`;\n          if (isNested) {\n            component = `simple-editor/page-block-editor/${type}/contents/${type}`;\n          }\n          acc.push(this.crud.setupNewRecord({\n            adapterName: 'simple-editor/nav-tree',\n            data: {\n              index: acc.length,\n              depth: isFromTab ? 3 : 1,\n              value: contentId,\n              tabParentId,\n              label: `pageBlocks_${type}`,\n              // always use type\n              component,\n              content,\n              isNested: false\n            }\n          }));\n        }\n        return acc;\n      }, list))(pageBlock);\n    }\n    setupImagePanelList({\n      pageBlock,\n      isFromTab = false,\n      tabParentId = null\n    }) {\n      return R.pipe(R.pathOr([], ['_data', 'contents']), R.reduce((acc, content) => {\n        const type = content?._data?.type;\n        const contentId = content?._data?.contentId;\n        const component = `simple-editor/page-block-editor/${type}/contents/${type}`;\n        acc.push(this.crud.setupNewRecord({\n          adapterName: 'simple-editor/nav-tree',\n          data: {\n            index: acc.length,\n            depth: isFromTab ? 3 : 1,\n            value: contentId,\n            tabParentId,\n            label: `pageBlocks_${type}`,\n            // always use type\n            component,\n            content,\n            pageBlock,\n            isNested: true\n          }\n        }));\n\n        // Image Single Element\n        // const randomHash = `${Math.random().toString(36).substring(7)}`\n        // const subContentId = `${contentId}_image_${randomHash}`\n        const subContentId = `${contentId}_image`;\n        acc.push(this.crud.setupNewRecord({\n          adapterName: 'simple-editor/nav-tree',\n          data: {\n            index: acc.length,\n            depth: isFromTab ? 4 : 2,\n            parentId: isFromTab ? pageBlock?._data?.blockId : contentId,\n            tabParentId,\n            value: subContentId,\n            label: 'pageBlocks_image',\n            // always use type\n            component: 'simple-editor/page-block-editor/base/contents/image',\n            content,\n            isNested: false\n          }\n        }));\n        acc.push(this.crud.setupNewRecord({\n          adapterName: 'simple-editor/nav-tree',\n          data: {\n            index: acc.length,\n            depth: isFromTab ? 4 : 2,\n            parentId: contentId,\n            tabParentId,\n            value: `${contentId}_text`,\n            label: 'pageBlocks_text',\n            // always use type\n            component: 'simple-editor/page-block-editor/base/contents/text',\n            content,\n            isNested: false\n          }\n        }));\n        const buttonId = `${contentId}_buttons`;\n        acc.push(this.crud.setupNewRecord({\n          adapterName: 'simple-editor/nav-tree',\n          data: {\n            index: acc.length,\n            depth: isFromTab ? 4 : 2,\n            parentId: contentId,\n            tabParentId,\n            value: buttonId,\n            label: 'pageBlocks_links_or_buttons',\n            // always use type\n            component: 'simple-editor/page-block-editor/base/contents/links-or-buttons',\n            content,\n            isNested: content?._data?.interactionMethod === 'button'\n          }\n        }));\n        if (\n        // content?._data?.hasInteraction === false ||\n        content?._data?.interactionMethod === 'link') {\n          return acc;\n        }\n\n        // Handle individual buttons from buttons\n        const buttonContents = R.pathOr([], ['_data', 'buttonsPageBlock', '_data', 'contents'])(content);\n        R.pipe(R.forEach(buttonModel => {\n          const label = this.intl.t('button');\n          const contentIdButtonModel = `${buttonModel._data.contentId}`;\n          const index = acc.length;\n          const panel = this.crud.setupNewRecord({\n            adapterName: 'simple-editor/nav-tree',\n            data: {\n              index,\n              depth: isFromTab ? 5 : 3,\n              parentId: buttonId,\n              tabParentId,\n              value: contentIdButtonModel,\n              label,\n              component: 'simple-editor/page-block-editor/buttons/contents/buttons',\n              content: buttonModel\n            }\n          });\n          panel.set('translate', false);\n          acc.push(panel);\n        }))(buttonContents);\n\n        // if (RA.isNotNilOrEmpty(buttonContents)) {\n        //   acc.push(\n        //     this.crud.setupNewRecord(\n        //       {\n        //         adapterName: 'simple-editor/nav-tree',\n        //         data: {\n        //           icon: 'fas fa-plus',\n        //           index: acc.length,\n        //           depth: 3,\n        //           parentId: buttonId,\n        //           value: 'someOtherId',\n        //           label: 'add',\n        //           component: 'simple-editor/page-block-editor/buttons/contents/buttons',\n        //           content: {}\n        //         }\n        //       }\n        //     )\n        //   )\n        // }\n\n        return acc;\n      }, []))(pageBlock);\n    }\n    setupTabsPanelList({\n      pageBlock\n    }) {\n      return R.pipe(R.pathOr([], ['_data', 'contents']), R.reduce((acc, content) => {\n        const contentId = content?._data?.contentId;\n        const name = content?._data?.name || '';\n        const index = acc.length;\n        const nestedBlocks = content?._data?.contents || [];\n        const panel = this.crud.setupNewRecord({\n          adapterName: 'simple-editor/nav-tree',\n          data: {\n            index,\n            depth: 1,\n            value: contentId,\n            label: name || `Tab ${index + 1}`,\n            component: 'simple-editor/page-block-editor/tabs/contents/tabs',\n            content,\n            pageBlock,\n            isNested: nestedBlocks.length > 0\n          }\n        });\n        panel.set('translate', false);\n        acc.push(panel);\n        R.forEach(nestedBlock => {\n          acc = acc.concat(this.setupPanelList({\n            pageBlock: nestedBlock,\n            isFromTab: true,\n            tabParentId: contentId\n          }));\n        })(nestedBlocks);\n        return acc;\n      }, []))(pageBlock);\n    }\n    onClickContent(pageBlock, contentId, event) {\n      if (!contentId) {\n        return;\n      }\n      const element = this.element;\n      if (!element) {\n        return;\n      }\n      const contentElement = element.querySelector(`[data-content-id=\"${contentId}\"]`);\n      if (!contentElement) {\n        return;\n      }\n      const isFocusColumn = element.querySelector('[data-content-id-action=\"focus-column\"]');\n      if (isFocusColumn) {\n        const currentFocusedContainer = event.target.closest('.simple-editor__block-editor-container');\n        if (!currentFocusedContainer) {\n          return;\n        }\n        const currentFocusedElement = currentFocusedContainer.querySelector('.simple-editor__block-editor-column--focused');\n        this.currentFocusedElement = currentFocusedElement;\n        contentElement.click();\n      }\n      const isScrollTo = element.querySelector('[data-content-id-action=\"scroll-to\"]');\n      if (isScrollTo) {\n        const column = contentElement.closest('.simple-editor__block-editor-focus-column-container');\n        if (column) {\n          const padding = 10;\n          const elementOffsetTop = contentElement.offsetTop;\n\n          // Set scroll position to show the element with padding\n          column.scrollTop = elementOffsetTop - padding;\n        }\n      }\n    }\n    showFocusColumn({\n      toElementSelector,\n      toParentSelector\n    }, {\n      fromElement,\n      fromElementSelector,\n      content\n    }) {\n      if (RA.isNotNilOrEmpty(content)) {\n        const contentId = content._data.contentId;\n        content.set('instanceId', contentId);\n        Ember.set(this, 'selectedContent', content);\n      }\n      const isFocusedElementData = this.isFocusedElementData;\n      if (isFocusedElementData && this.currentFocusedElement) {\n        this.hideFocusColumn(this.currentFocusedElement);\n      }\n      this.applicationService.teleportElement({\n        toElementSelector,\n        toParentSelector\n      }, {\n        fromElementSelector,\n        fromElement\n      });\n      this.focusedColumnSelector = toElementSelector;\n      this.isFocusedElementData = {\n        toElementSelector,\n        toParentSelector,\n        fromElementSelector,\n        fromElement\n      };\n      setTimeout(() => {\n        const toParent = fromElement.closest(toParentSelector);\n        if (!toParent) {\n          return;\n        }\n        const toElement = toParent.querySelector('.simple-editor__block-editor-column--focused');\n        if (!toElement) {\n          return;\n        }\n        toElement.scrollTop = 0;\n      }, 10);\n    }\n    hideFocusColumn(fromElement) {\n      const isFocusedElementData = this.isFocusedElementData;\n      const toElement = isFocusedElementData.fromElement;\n      this.applicationService.teleportElement({\n        toElementSelector: isFocusedElementData.fromElementSelector,\n        toElement\n      }, {\n        fromElementSelector: isFocusedElementData.toElementSelector,\n        fromElement\n      });\n      this.isFocusedElementData = null;\n      this.currentFocusedElement = null;\n      this.focusedColumnSelector = this.defaultFocusedColumnSelector;\n    }\n    *validateTask() {\n      const model = this.args.dirty;\n      yield this.crud.validateRecordTask.perform({\n        adapterName: 'simple-editor/page-blocks',\n        appendPath: '/validate',\n        model\n      });\n      this.crud.confirmChanges({\n        originalModel: this.args.pageBlock,\n        dirty: model,\n        onAfter: this.args.onCloseDialogAction\n      });\n      if (model?._data?.type !== this.constantsService.pageBlockTypes.features) {\n        return;\n      }\n\n      /*\n       * Move the pageBlock to top when type is feature and display style is story\n       */\n      const pageBlocks = this.args?.pageBlocks || [];\n\n      // Reset the index property based on the new order\n      pageBlocks.forEach((block, index) => {\n        block.setData('index', index);\n      });\n    }\n    *validateContentAndHideFocusColumnTask(focusColumn, content) {\n      yield this.crud.validateRecordTask.perform({\n        adapterName: 'simple-editor/page-blocks',\n        appendPath: '/validate/content',\n        model: content\n      });\n      this.hideFocusColumn(focusColumn.element);\n    }\n    selectContent({\n      content,\n      type\n    }) {\n      if (type === this.constantsService.pageBlockTypes.features) {\n        const fromElement = document.querySelector('[data-content-id-action=\"focus-column\"]').parentElement.querySelector('.simple-editor__block-editor-focus-column-content');\n        return this.hideFocusColumn(fromElement);\n      }\n      const toElement = {\n        toElementSelector: '.simple-editor__block-editor-focus-column--advanced',\n        toParentSelector: '.simple-editor__block-editor-container'\n      };\n      const fromParentSelector = '.simple-editor__block-editor-focus-column-btn-container';\n      const fromElement = {\n        fromParentSelector,\n        fromElementSelector: '.simple-editor__block-editor-focus-column-content',\n        fromElement: document.querySelector(fromParentSelector),\n        content\n      };\n      this.showFocusColumn(toElement, fromElement);\n    }\n    selectSubTab(pageBlock, contentId) {\n      const panels = this.panels || [];\n      const subTabIndex = R.findIndex(R.pathEq(['_data', 'value'], contentId))(panels);\n      if (subTabIndex < 0) {\n        return;\n      }\n\n      // expand back collapsed menu before selecting subTab if the target is collapsed\n      this._expandCollapsedAncestors(panels, subTabIndex);\n      const subTab = panels[subTabIndex];\n      if (!subTab) {\n        return;\n      }\n      const tab = this.args.tab;\n      this.tabsManager.displaySubPanelNew(tab, subTab);\n      this.onSelectNavTree(pageBlock, tab, subTab);\n      this._scrollNavTreeItemIntoView(contentId);\n    }\n    _expandCollapsedAncestors(panels, targetIndex) {\n      const target = panels[targetIndex];\n      const targetDepth = target?._data?.depth || 0;\n      if (targetDepth <= 0) {\n        return;\n      }\n      const ancestorStack = [];\n      R.forEach(item => {\n        const depth = item?._data?.depth || 0;\n        while (ancestorStack.length > 0 && (ancestorStack[ancestorStack.length - 1]?._data?.depth || 0) >= depth) {\n          ancestorStack.pop();\n        }\n        ancestorStack.push(item);\n      })(panels.slice(0, targetIndex));\n      R.forEach(ancestor => {\n        if (ancestor.get?.('isCollapsed')) {\n          ancestor.set('isCollapsed', false);\n        }\n      })(R.filter(ancestor => {\n        const depth = ancestor?._data?.depth || 0;\n        return depth < targetDepth;\n      })(ancestorStack));\n    }\n    onSelectNavTree(pageBlock, tab, subTab) {\n      if (!pageBlock) {\n        pageBlock = this.args.dirty;\n      }\n      if (pageBlock._data?.settings?.displayStyle === 'slider') {\n        let index = subTab?._data?.content?._data?.index || 0;\n        if (subTab?._data?.parentId) {\n          const parent = this.panels.find(panel => panel?._data?.value === subTab?._data?.parentId);\n          index = parent._data?.content?._data?.index || 0;\n        }\n        pageBlock.set('activeIndex', index);\n      }\n      if (this.args?.dirty?._data?.type === this.constantsService.pageBlockTypes.tabs && subTab?._data?.depth >= 1) {\n        const contentId = subTab?._data?.depth === 1 ? subTab?._data?.value : subTab?._data?.tabParentId;\n        if (contentId && this.args?.onSelectTabId) {\n          this.args.onSelectTabId(contentId);\n        }\n      }\n      this.tabsManager.displaySubPanelNew(tab, subTab);\n      this.applicationService.modelSetIsForceReloading(pageBlock);\n      const scrollContentId = subTab?._data?.parentId || subTab?._data?.value;\n      this._scrollDisplayContentIntoView(scrollContentId);\n    }\n    _scrollNavTreeItemIntoView(contentId, retry = 2) {\n      if (!contentId) {\n        return;\n      }\n      setTimeout(() => {\n        const element = this.navMenuElement || this.element;\n        if (!element) {\n          return;\n        }\n        const menuItem = element.querySelector(`[data-tabs-header=\"${contentId}\"]`) || element.querySelector('.u-tab-menu__item.is-active');\n        if (menuItem) {\n          menuItem.scrollIntoView({\n            behavior: 'smooth',\n            block: 'nearest'\n          });\n          return;\n        }\n        if (retry > 0) {\n          this._scrollNavTreeItemIntoView(contentId, retry - 1);\n        }\n      }, 500);\n    }\n    _scrollDisplayContentIntoView(contentId, retry = 2) {\n      if (!contentId) {\n        return;\n      }\n      setTimeout(() => {\n        const element = this.element;\n        if (!element) {\n          return;\n        }\n        const previewRoot = element.querySelector('.simple-editor__block-editor-column--preview .simple-editor__block-container') || element.querySelector('.simple-editor__block-editor-column--preview') || element;\n        const contentElement = previewRoot.querySelector(`[data-content-id=\"${contentId}\"]`) || previewRoot.querySelector(`[id=\"${contentId}\"]`);\n        if (contentElement) {\n          contentElement.scrollIntoView({\n            behavior: 'smooth',\n            block: 'nearest'\n          });\n          return;\n        }\n        if (retry > 0) {\n          this._scrollDisplayContentIntoView(contentId, retry - 1);\n        }\n      }, 500);\n    }\n    onAfterAddNewContent(dirty, tab) {\n      this.applicationService.modelSetIsForceReloading(dirty);\n      setTimeout(() => {\n        const contents = this.args?.dirty?._data?.contents || [];\n        const lastContent = contents[contents.length - 1];\n        const lastContentId = lastContent?._data?.contentId;\n        const lastAddedFeaturePanel = R.pipe(R.pathOr([], ['panels']), R.find(R.pathEq(['_data', 'value'], lastContentId)))(this);\n        this.onSelectNavTree(this.args.dirty, tab, lastAddedFeaturePanel);\n      }, 250);\n    }\n    toggleShowSidebar() {\n      this.showSidebar = !this.showSidebar;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"navMenuElement\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"focusedColumnSelector\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"isFocusedElementData\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"currentFocusedElement\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"showSidebar\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedContent\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsertNavMenu\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertNavMenu\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"panels\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"panels\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupPanelList\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPanelList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupImagePanelList\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"setupImagePanelList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupTabsPanelList\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTabsPanelList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClickContent\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"onClickContent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showFocusColumn\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"showFocusColumn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hideFocusColumn\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"hideFocusColumn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"validateTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateContentAndHideFocusColumnTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"validateContentAndHideFocusColumnTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectContent\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"selectContent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectSubTab\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"selectSubTab\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectNavTree\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectNavTree\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAfterAddNewContent\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterAddNewContent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowSidebar\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowSidebar\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/custom/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 SimpleEditorBlockCustomComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _class = class SimpleEditorBlockCustomComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasContainerAdvanced\", _descriptor, this);\n      _defineProperty(this, \"debounceWaitTime\", 250);\n    }\n    updateSynced() {\n      Ember.run.debounce(this, this._updateSynced, this.debounceWaitTime);\n    }\n    _updateSynced() {\n      this.args.pageBlock.set('synced', Math.random());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasContainerAdvanced\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateSynced\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"updateSynced\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/custom/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2NQTi2LR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,5,[]]],[12,\\\"data-content-id\\\",[24,[\\\"content\\\",\\\"_data\\\",\\\"contentId\\\"]]],[12,\\\"data-content-id-action\\\",\\\"scroll-to\\\"]],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\"],[\\\"text_contents_group\\\",[23,4,[]],\\\"pageBlocks_group_contents\\\",true,true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[[29,[\\\"contents.\\\",[23,1,[\\\"_data\\\",\\\"contentType\\\"]]]],[23,4,[]],[23,1,[\\\"_data\\\",\\\"contentType\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\",\\\"@onInput\\\"],[[23,3,[]],5,[23,1,[\\\"_data\\\",\\\"content\\\"]],[23,0,[\\\"updateSynced\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContainerAdvanced\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerQuickLinks\\\"],[true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/custom/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/faqs/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorBlockFaqsComponent = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorBlockFaqsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasContainerAdvanced\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasContainerAdvanced\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/faqs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2+EnioAj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasContainerAdvanced\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@isAccordianExpanded\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],true,[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerQuickLinks\\\"],[true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/faqs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _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 SimpleEditorPageBlockEditorFeaturesComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember.computed('args.pageBlock._data.settings.displayStyle'), _dec1 = Ember.computed('crud.lists.simple-editor-lists-styling-features-display-styles'), _dec10 = Ember.computed('crud.lists.simple-editor-lists-styling-features-content-display-styles.[]', 'supportedDisplayStyle'), _dec11 = Ember.computed('crud.lists.simple-editor-lists-styling-features-content-display-styles.[]', 'supportedDisplayStyle'), _dec12 = Ember._action, _dec13 = Ember._action, _class = class SimpleEditorPageBlockEditorFeaturesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor5, this);\n      _initializerDefineProperty(this, \"refreshingDisplayStyle\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedDisplayStyle\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor9, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/images-display-styles', 'simple-editor/lists/styling/images-slider-arrows-sizes', 'simple-editor/lists/styling/images-slider-arrows-position', 'simple-editor/lists/styling/images-slider-dots-styles', 'simple-editor/lists/styling/images-slider-dots-position', 'simple-editor/lists/styling/images-slider-autoplay-speed', 'simple-editor/lists/styling/images-slider-slides-to-show', 'simple-editor/lists/styling/images-slider-slides-to-scroll', 'simple-editor/lists/styling/images-slider-slides-space', 'simple-editor/lists/styling/images-grid-columns', 'simple-editor/lists/styling/images-grid-columns-gaps', 'simple-editor/lists/styling/features-display-styles', 'simple-editor/lists/styling/features-content-display-styles', 'simple-editor/lists/styling/align', 'simple-editor/lists/styling/align-vertical', 'simple-editor/lists/styling/grid-align-vertical', 'simple-editor/lists/styling/colors', 'simple-editor/lists/styling/sizes', 'simple-editor/lists/panels-container']);\n    }\n    get hasContainerAdvanced() {\n      if (this.supportedDisplayStyle === this.constants.featuresDisplayStyles.story) {\n        return false;\n      }\n      return true;\n    }\n\n    /**\n     * a page block saved with a display style that has no display component\n     * (the removed `tabs` style) is rendered as story, so the editor has to read\n     * it as story too, otherwise it offers no content display styles at all\n     */\n    get supportedDisplayStyle() {\n      const displayStyle = this.args.pageBlock?._data?.settings?.displayStyle || '';\n      if (R.includes(displayStyle)(this.constants.supportedFeaturesDisplayStyles)) {\n        return displayStyle;\n      }\n      return this.constants.featuresDisplayStyles.story;\n    }\n    get contentDisplayStylesList() {\n      return this.crud.lists['simple-editor-lists-styling-features-display-styles'] || [];\n    }\n    get allowedContentDisplayStyles() {\n      const contentDisplayStyles = this.crud.lists['simple-editor-lists-styling-features-content-display-styles'] || [];\n      const displayStyle = this.supportedDisplayStyle;\n      return R.filter(style => {\n        return R.includes(displayStyle)(style?._data?.isAllowedFor || []);\n      })(contentDisplayStyles);\n    }\n    get disallowedContentDisplayStyles() {\n      const contentDisplayStyles = this.crud.lists['simple-editor-lists-styling-features-content-display-styles'] || [];\n      const displayStyle = this.supportedDisplayStyle;\n      return R.reject(style => {\n        return R.includes(displayStyle)(style?._data?.isAllowedFor || []);\n      })(contentDisplayStyles);\n    }\n    reorderContents(contents, content) {\n      const dragItem = this.dragDetail;\n      const onOverItemIndex = content.get('_data.index');\n      this.dragDropSort.reorderItemsByIndex(contents, dragItem, onOverItemIndex);\n    }\n    onAfterAddContent(pageBlock) {\n      this.applicationService.modelSetIsForceReloading(pageBlock);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"refreshingDisplayStyle\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedDisplayStyle\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"supportedDisplayStyle\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"supportedDisplayStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"contentDisplayStylesList\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"contentDisplayStylesList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allowedContentDisplayStyles\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"allowedContentDisplayStyles\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"disallowedContentDisplayStyles\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"disallowedContentDisplayStyles\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderContents\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderContents\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAfterAddContent\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterAddContent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 SimpleEditorPageBlockEditorFeaturesContentsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.computed('args.pageBlock._data.settings.displayStyle', 'args.index', 'args.content._data.{hasText,imageAlt,textContentBlock._data.title}'), _dec6 = Ember.computed('args.allowedContentDisplayStyles.[]', 'args.content._data.displayStyle'), _class = class SimpleEditorPageBlockEditorFeaturesContentsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n    }\n    get contentTitle() {\n      const displayStyle = this.args.pageBlock?._data?.settings?.displayStyle || '';\n      const index = this.args.index || 0;\n      let title = `${this.intl.t(displayStyle)} ${index + 1}`;\n      const content = this.args.content;\n      if (displayStyle === this.constants.featuresDisplayStyles.tabs) {\n        const tabHeader = content?._data?.tabHeader || '';\n        if (tabHeader) {\n          title = `${title} - ${tabHeader}`;\n        }\n      }\n      const textTitle = content?._data?.textContentBlock?._data?.title || '';\n      const imageAlt = content?._data?.imageAlt || '';\n      if (textTitle) {\n        return `${title} - ${textTitle}`;\n      } else if (imageAlt) {\n        return `${title} - ${imageAlt}`;\n      }\n      return title;\n    }\n    get editingComponent() {\n      const allowedContentDisplayStyles = this.args.allowedContentDisplayStyles || [];\n      const displayStyle = this.args.content._data?.displayStyle || '';\n      const listItem = R.find(style => style?._data?.value === displayStyle)(allowedContentDisplayStyles);\n      return listItem?._data?.editingComponent || '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"contentTitle\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"contentTitle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editingComponent\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"editingComponent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/features/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 SimpleEditorPageBlockEditorFeaturesContentsFeaturesComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('application'), _dec4 = Ember.computed('args.content._data.displayStyle', 'allowedContentDisplayStyles.[]'), _dec5 = Ember.computed('crud.lists.simple-editor-lists-styling-features-content-display-styles.[]', 'args.{tab.isNested,pageBlock._data.settings.displayStyle,outerPageBlock._data.settings.displayStyle}'), _class = class SimpleEditorPageBlockEditorFeaturesContentsFeaturesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/features-content-display-styles']);\n    }\n    get editingComponent() {\n      const allowedContentDisplayStyles = this.allowedContentDisplayStyles || [];\n      const displayStyle = this.args.content._data?.displayStyle || '';\n      const listItem = R.find(style => style?._data?.value === displayStyle)(allowedContentDisplayStyles);\n      return listItem?._data?.editingComponent || '';\n    }\n    get allowedContentDisplayStyles() {\n      const contentDisplayStyles = this.crud.lists['simple-editor-lists-styling-features-content-display-styles'] || [];\n      const isNested = this.args?.tab?.isNested ?? false;\n      let displayStyle = this.args.pageBlock?._data?.settings?.displayStyle ?? '';\n      if (isNested) {\n        displayStyle = this.args.outerPageBlock?._data?.settings?.displayStyle ?? '';\n      }\n      return R.filter(style => {\n        return R.includes(displayStyle)(style?._data?.isAllowedFor || []);\n      })(contentDisplayStyles);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"editingComponent\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"editingComponent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allowedContentDisplayStyles\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"allowedContentDisplayStyles\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/features/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"HCg+l5yM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formGroupClassNames\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@onSelectSubTab\\\",\\\"@tab\\\",\\\"@showFocusColumn\\\",\\\"@onSetPreviewDevice\\\",\\\"@previewDevice\\\",\\\"@website\\\",\\\"@outerPageBlock\\\",\\\"@index\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,1,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"features_contents_group\\\",[23,2,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.displayStyle\\\",[23,2,[]],\\\"display style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@debug\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,true,\\\"list-selector--horizontal list-selector--horizontal-wrap\\\",false,true,[23,3,[]],[23,0,[\\\"allowedContentDisplayStyles\\\"]],[23,4,[]],\\\"_data.displayStyle\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"editingComponent\\\"]]],[[\\\"index\\\",\\\"content\\\",\\\"pageBlock\\\",\\\"outerPageBlock\\\",\\\"website\\\",\\\"formInitData\\\",\\\"isReadonly\\\",\\\"previewDevice\\\",\\\"onSetPreviewDevice\\\",\\\"showFocusColumn\\\",\\\"tab\\\",\\\"onSelectSubTab\\\"],[[23,13,[]],[23,4,[]],[23,5,[]],[23,12,[]],[23,11,[]],[23,2,[]],[23,3,[]],[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,1,[]],[23,4,[]],[23,3,[]],[23,2,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerSchedules\\\",\\\"hasContainerSchedulesPath\\\",\\\"schedulesPath\\\"],[true,\\\"_data.hasContainerSchedules\\\",\\\"_data.schedules\\\"]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/contents/features/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/image-and-text-base/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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, _dec0, _dec1, _dec10, _dec11, _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 SimpleEditorPageBlockEditorFeaturesContentsImageAndTextBaseComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember.computed('args.content._data.imageAlt'), _dec0 = Ember.computed('args.options.requireImage', 'args.content._data.image.desktop.uuid', 'args.content._data.displayStyle'), _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _class = class SimpleEditorPageBlockEditorFeaturesContentsImageAndTextBaseComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"users\", _descriptor5, this);\n      _initializerDefineProperty(this, \"refreshingDisplayStyle\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedDisplayStyle\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dirtyButtonsPageBlock\", _descriptor8, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/align', 'simple-editor/lists/styling/order-horizontal', 'simple-editor/lists/styling/buttons-display-styles', 'simple-editor/lists/styling/buttons-images-styles', 'simple-editor/lists/styling/buttons-images-types', 'simple-editor/lists/styling/interaction-methods', 'simple-editor/lists/styling/image-sizes', 'simple-editor/lists/styling/image-sizes-custom', 'simple-editor/lists/styling/sizes-units']);\n    }\n    get title() {\n      const contentLabel = this.args.content?._data?.label;\n      if (contentLabel) {\n        return contentLabel;\n      }\n      const pageBlockType = this.args.pageBlock?._data?.type;\n      const typeLabel = this.intl.t(`pageBlocks_${pageBlockType}`);\n      const contentImageAlt = this.args.content?._data?.imageAlt;\n      if (!contentImageAlt) {\n        return typeLabel;\n      }\n      return `${typeLabel} (${contentImageAlt})`;\n    }\n    get showMore() {\n      if (this.users.getProp('allowPublicTemplate')) {\n        return true;\n      }\n      const requireImage = this.args.options?.requireImage;\n      if (!requireImage) {\n        return true;\n      }\n      const hasImage = this.args.content?._data?.image?.desktop?.uuid;\n      if (!hasImage) {\n        return false;\n      }\n      return true;\n    }\n    editButtonsPageBlock(buttonsPageBlock) {\n      const dirty = this.crud.setupDirty({\n        adapterName: 'simple-editor/page-blocks/buttons',\n        model: buttonsPageBlock,\n        component: this,\n        resultsProperty: 'dirty'\n      });\n      this.dirtyButtonsPageBlock = dirty;\n    }\n    cancelButtonsPageBlock() {\n      const dirty = this.dirtyButtonsPageBlock;\n      this.crud.cancelEditing({\n        adapterName: 'simple-editor/page-blocks/buttons',\n        dirty\n      });\n      this.dirtyButtonsPageBlock = null;\n    }\n    forceReloadOnInput() {\n      const debounceDelay = 1000;\n      clearTimeout(this._debounceTimer);\n      this._debounceTimer = setTimeout(() => {\n        this.applicationService.modelSetIsForceReloading(this.args?.pageBlock);\n      }, debounceDelay);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"users\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"refreshingDisplayStyle\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedDisplayStyle\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dirtyButtonsPageBlock\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"title\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showMore\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"showMore\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editButtonsPageBlock\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"editButtonsPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelButtonsPageBlock\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelButtonsPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"forceReloadOnInput\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"forceReloadOnInput\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/image-and-text-base/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IiyFpX7y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@options\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showMore\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isAccordianExpanded\\\",\\\"@onToggleAccordian\\\"],[[23,1,[]],\\\"content background\\\",true,true,[23,3,[\\\"_data\\\",\\\"hasBackground\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,3,[]],\\\"_data.hasBackground\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/background-color\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@styleContext\\\",\\\"@colorContext\\\",\\\"@hasBackgroundToggleValue\\\",\\\"@hasTransparency\\\",\\\"@transparencyContext\\\",\\\"@backgroundColorTransparencyValueKey\\\",\\\"@backgroundColorStyleValueKey\\\",\\\"@colorKey\\\",\\\"@value\\\",\\\"@contextPrefix\\\",\\\"@onSelect\\\"],[[23,3,[]],[23,2,[]],[23,1,[]],\\\"contents.backgroundColorStyle\\\",\\\"contents.backgroundColor\\\",[23,3,[\\\"_data\\\",\\\"hasBackground\\\"]],true,\\\"contents.backgroundColorTransparency\\\",\\\"_data.backgroundColorTransparency\\\",\\\"_data.backgroundColorStyle\\\",\\\"_data.backgroundColor\\\",[23,3,[\\\"_data\\\",\\\"backgroundColor\\\"]],\\\"contents.\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\"],[[23,1,[]],\\\"position\\\",false,true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasImagePosition\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"contents.imagePosition\\\",\\\"image position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-order-horizontal\\\"]],[23,3,[]],\\\"_data.imagePosition\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasImageSize\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"contents.imageSize\\\",\\\"image size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-image-sizes\\\"]],[23,3,[]],\\\"_data.imageSize\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,5,[\\\"hasImageSizeCustom\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"contents.imageSize\\\",\\\"image size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-image-sizes-custom\\\"]],[23,3,[]],\\\"_data.imageSize\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"imageSize\\\"]],\\\"custom\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"contents.imageSizeCustom\\\",\\\"custom image size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\"],[\\\"custom\\\",[23,2,[]],[23,3,[\\\"_data\\\",\\\"imageSizeCustom\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"forceReloadOnInput\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@onSelect\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-sizes-units\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,2,[]],true,[23,3,[\\\"_data\\\",\\\"imageSizeUnit\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasImageAlign\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"contents.imageAlign\\\",\\\"image alignment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[28,\\\"or\\\",[[23,2,[]],[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"imageSize\\\"]],\\\"fullWidth\\\"],null]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-align\\\"]],[23,3,[]],\\\"_data.imageAlign\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasHorizontalPosition\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"contents.positionHorizontal\\\",\\\"content horizontal position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-align\\\"]],[23,3,[]],\\\"_data.positionHorizontal\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasVerticalPosition\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"contents.positionVertical\\\",\\\"content vertical position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-align-vertical\\\"]],[23,3,[]],\\\"_data.positionVertical\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"hasContentAlign\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,1,[]],\\\"contents.contentAlign\\\",\\\"font alignment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,false,\\\"list-selector--vertical\\\",[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-align\\\"]],[23,3,[]],\\\"_data.contentAlign\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/contents/image-and-text-base/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/image-only-one/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 SimpleEditorPageBlockEditorFeaturesContentsImageOnlyOneComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _class = class SimpleEditorPageBlockEditorFeaturesContentsImageOnlyOneComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"refreshingDisplayStyle\", _descriptor4, this);\n      _initializerDefineProperty(this, \"selectedDisplayStyle\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dirtyButtonsPageBlock\", _descriptor6, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/buttons-display-styles', 'simple-editor/lists/styling/buttons-images-styles', 'simple-editor/lists/styling/buttons-images-types']);\n    }\n    editButtonsPageBlock(buttonsPageBlock) {\n      const dirty = this.crud.setupDirty({\n        adapterName: 'simple-editor/page-blocks/buttons',\n        model: buttonsPageBlock,\n        component: this,\n        resultsProperty: 'dirty'\n      });\n      this.dirtyButtonsPageBlock = dirty;\n    }\n    cancelButtonsPageBlock() {\n      const dirty = this.dirtyButtonsPageBlock;\n      this.crud.cancelEditing({\n        adapterName: 'simple-editor/page-blocks/buttons',\n        dirty\n      });\n      this.dirtyButtonsPageBlock = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"refreshingDisplayStyle\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"selectedDisplayStyle\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dirtyButtonsPageBlock\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"editButtonsPageBlock\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"editButtonsPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelButtonsPageBlock\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelButtonsPageBlock\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/image-only-one/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PdTv/RpM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@showFocusColumn\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\"],[\\\"image\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"simple-editor/page-block-editor/base/images-selector\\\",[],[[\\\"@model\\\",\\\"@context\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@showFocusColumn\\\",\\\"@forceReload\\\"],[[23,1,[]],\\\"contents.image\\\",[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@title\\\"],[\\\"link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@hasLinkToggle\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@contextPrefix\\\"],[true,[23,1,[\\\"_data\\\",\\\"link\\\"]],[23,3,[]],[23,4,[]],[23,7,[]],\\\"contents.\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/contents/image-only-one/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"v6qbelc0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@showFocusColumn\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@onSelectSubTab\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-editor/base/content-btn\\\",[],[[\\\"@index\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@showFocusColumn\\\",\\\"@onClickContentAction\\\",\\\"@imageUuid\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@content\\\",\\\"@onSelectSubTab\\\"],[[23,1,[]],[23,0,[\\\"contentTitle\\\"]],false,[23,2,[]],\\\"focus-column\\\",[23,3,[\\\"_data\\\",\\\"image\\\",\\\"desktop\\\",\\\"uuid\\\"]],[23,4,[]],[23,5,[]],[23,3,[]],[28,\\\"fn\\\",[[23,6,[]],[23,3,[\\\"_data\\\",\\\"contentId\\\"]]],null]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/contents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/text-and-image-split-one/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockEditorFeaturesContentsTextAndImageSplitOneComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockEditorFeaturesContentsTextAndImageSplitOneComponent;\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/text-and-image-split-one/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+hY9aRhy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-editor/features/contents/image-and-text-base\\\",[],[[\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasImagePosition\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasButtonsContainerAdvanced\\\"],[true,false,true,false,true,true,false]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/contents/text-and-image-split-one/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-one/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockEditorFeaturesContentsImageOnTextOneComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockEditorFeaturesContentsImageOnTextOneComponent;\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-one/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"LNH568FN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\",\\\"@showFocusColumn\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-editor/features/contents/image-and-text-base\\\",[],[[\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\",\\\"@showFocusColumn\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasButtonsContainerAdvanced\\\"],[true,false,true,true,true,false]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-one/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-two/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockEditorFeaturesContentsImageOnTextTwoComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockEditorFeaturesContentsImageOnTextTwoComponent;\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-two/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+c0TaE51\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-editor/features/contents/image-and-text-base\\\",[],[[\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasImagePosition\\\",\\\"hasButtonsContainerAdvanced\\\"],[true,false,true,true,false,false,false]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/contents/text-on-image-two/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/top-down-one/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 SimpleEditorPageBlockEditorFeaturesContentsTopDown1Component = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember.computed('crud.lists.simple-editor-lists-styling-features-content-display-styles.[]', 'args.{tab.isNested,pageBlock._data.settings.displayStyle,outerPageBlock._data.settings.displayStyle}'), _dec7 = Ember.computed('crud.lists.simple-editor-lists-styling-features-content-display-styles.[]', 'args.{tab.isNested,pageBlock._data.settings.displayStyle,outerPageBlock._data.settings.displayStyle}'), _class = class SimpleEditorPageBlockEditorFeaturesContentsTopDown1Component extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"refreshingDisplayStyle\", _descriptor4, this);\n      _initializerDefineProperty(this, \"selectedDisplayStyle\", _descriptor5, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/images-display-styles', 'simple-editor/lists/styling/images-slider-arrows-sizes', 'simple-editor/lists/styling/images-slider-arrows-position', 'simple-editor/lists/styling/images-slider-dots-styles', 'simple-editor/lists/styling/images-slider-dots-position', 'simple-editor/lists/styling/images-slider-autoplay-speed', 'simple-editor/lists/styling/images-grid-columns', 'simple-editor/lists/styling/features-display-styles', 'simple-editor/lists/styling/features-content-display-styles', 'simple-editor/lists/styling/align', 'simple-editor/lists/styling/align-vertical', 'simple-editor/lists/styling/colors', 'simple-editor/lists/styling/sizes']);\n    }\n    get allowedContentDisplayStyles() {\n      const contentDisplayStyles = this.crud.lists['simple-editor-lists-styling-features-content-display-styles'] || [];\n      const isNested = this.args?.tab?.isNested ?? false;\n      let displayStyle = this.args.pageBlock?._data?.settings?.displayStyle ?? '';\n      if (isNested) {\n        displayStyle = this.args.outerPageBlock?._data?.settings?.displayStyle ?? '';\n      }\n      return R.filter(style => {\n        return R.includes(displayStyle)(style?._data?.isAllowedFor || []);\n      })(contentDisplayStyles);\n    }\n    get disallowedContentDisplayStyles() {\n      const contentDisplayStyles = this.crud.lists['simple-editor-lists-styling-features-content-display-styles'] || [];\n      const isNested = this?.args?.tab?.isNested ?? false;\n      let displayStyle = this.args.pageBlock?._data?.settings?.displayStyle ?? '';\n      if (isNested) {\n        displayStyle = this.args.outerPageBlock?._data?.settings?.displayStyle ?? '';\n      }\n      return R.reject(style => {\n        return R.includes(displayStyle)(style?._data?.isAllowedFor || []);\n      })(contentDisplayStyles);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"refreshingDisplayStyle\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"selectedDisplayStyle\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"allowedContentDisplayStyles\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"allowedContentDisplayStyles\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"disallowedContentDisplayStyles\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"disallowedContentDisplayStyles\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/contents/top-down-one/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pRtpiEKF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[5,\\\"simple-editor/page-block-editor/features/contents/image-and-text-base\\\",[],[[\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@options\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasImagePosition\\\",\\\"hasImageSize\\\"],[false,false,false,false,true,false,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/contents/top-down-one/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/panels/contents/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockEditorPanelsContentsComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockEditorPanelsContentsComponent;\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/panels/contents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ipPan0eh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"content\\\",\\\"index\\\",\\\"@pageBlock\\\",\\\"@formGroupClassNames\\\",\\\"@showFocusColumn\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@page\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,5,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"features_contents_group\\\",[23,8,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@droppable\\\",\\\"@model\\\",\\\"@modelIdPath\\\",\\\"@classNames\\\",\\\"@dropContainerPlaceholderClass\\\",\\\"@hasDropContainerPlaceholders\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[true,[23,2,[]],\\\"_data._id\\\",\\\"drop-container--easy-drop\\\",\\\"u-full-width\\\",true,[23,0,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"reorderContents\\\"]],[23,4,[\\\"_data\\\",\\\"contents\\\"]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,0,[]],[23,2,[]],[23,0,[\\\"dragDetail\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@gripClassNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\"],[true,\\\"has-grip\\\",\\\"wide-grip-icon-container\\\",[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,2,[\\\"_data\\\",\\\"index\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"simple-editor/page-block-editor/features/contents\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@showFocusColumn\\\",\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@allowedContentDisplayStyles\\\",\\\"@disallowedContentDisplayStyles\\\",\\\"@tab\\\"],[[23,5,[]],[23,6,[]],[23,3,[]],[23,2,[]],[23,4,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,0,[\\\"allowedContentDisplayStyles\\\"]],[23,0,[\\\"disallowedContentDisplayStyles\\\"]],[23,12,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\"],[[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@disabled\\\",\\\"@hasSectionWrapper\\\",\\\"@closeOnOverlayClick\\\"],[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,4,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\"fas fa-plus\\\",false,false,[23,0,[\\\"isReadonly\\\"]],true,true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/page-block-content-add\\\",[],[[\\\"@onCloseDialogAction\\\",\\\"@type\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@page\\\",\\\"@pageBlock\\\",\\\"@onAddPageBlock\\\"],[[23,1,[]],[23,4,[\\\"_data\\\",\\\"type\\\"]],[23,12,[]],[23,7,[]],[23,9,[]],[23,13,[]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,4,[\\\"newContent\\\"]]],null],[23,1,[]]]]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\\n\\\"],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/panels/contents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/features/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CbUY9gAF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@formGroupClassNames\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@showFocusColumn\\\",\\\"@website\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\",\\\"@page\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"features_contents_group\\\",[23,6,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@droppable\\\",\\\"@model\\\",\\\"@modelIdPath\\\",\\\"@classNames\\\",\\\"@dropContainerPlaceholderClass\\\",\\\"@hasDropContainerPlaceholders\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[true,[23,1,[]],\\\"_data._id\\\",\\\"drop-container--easy-drop\\\",\\\"u-full-width\\\",true,[23,0,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"reorderContents\\\"]],[23,4,[\\\"_data\\\",\\\"contents\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,0,[]],[23,1,[]],[23,0,[\\\"dragDetail\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@gripClassNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\"],[true,\\\"has-grip\\\",\\\"wide-grip-icon-container\\\",[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,1,[\\\"_data\\\",\\\"index\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"simple-editor/page-block-editor/features/contents\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@showFocusColumn\\\",\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@allowedContentDisplayStyles\\\",\\\"@disallowedContentDisplayStyles\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\"],[[23,3,[]],[23,7,[]],[23,2,[]],[23,1,[]],[23,4,[]],[23,8,[]],[23,6,[]],[23,5,[]],[23,9,[]],[23,10,[]],[23,0,[\\\"allowedContentDisplayStyles\\\"]],[23,0,[\\\"disallowedContentDisplayStyles\\\"]],[23,11,[]],[23,12,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"simple-editor/page-block-add-wrapper\\\",[],[[\\\"@isAddBlock\\\",\\\"@filterByType\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@page\\\",\\\"@pageBlock\\\",\\\"@onAddPageBlockContent\\\"],[true,[23,4,[\\\"_data\\\",\\\"type\\\"]],[23,11,[]],[23,8,[]],[23,5,[]],[23,13,[]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,4,[\\\"newContent\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onAfterAddContent\\\"]],[23,4,[]]],null]]]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"images_settings_group\\\",[23,6,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.displayStyle\\\",[23,6,[]],\\\"display style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"refreshingDisplayStyle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"contentDisplayStylesList\\\"]],[23,4,[]],true,\\\"_data.settings.displayStyle\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,4,[\\\"resetContentDisplayStyles\\\"]],[28,\\\"hash\\\",null,[[\\\"allowedContentDisplayStyles\\\",\\\"disallowedContentDisplayStyles\\\"],[[23,0,[\\\"allowedContentDisplayStyles\\\"]],[23,0,[\\\"disallowedContentDisplayStyles\\\"]]]]]],null]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],[23,0,[\\\"constants\\\",\\\"featuresDisplayStyles\\\",\\\"slider\\\"]]],null],[28,\\\"gt\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\",\\\"length\\\"]],1],null]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.slidesToShow\\\",[23,6,[]],\\\"slides to show\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"refreshingDisplayStyle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-slider-slides-to-show\\\"]],[23,4,[]],false,\\\"_data.settings.slidesToShow\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,4,[\\\"resetContentDisplayStyles\\\"]],[28,\\\"hash\\\",null,[[\\\"allowedContentDisplayStyles\\\",\\\"disallowedContentDisplayStyles\\\"],[[23,0,[\\\"allowedContentDisplayStyles\\\"]],[23,0,[\\\"disallowedContentDisplayStyles\\\"]]]]]],null]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.slidesToScroll\\\",[23,6,[]],\\\"slides to scroll\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"refreshingDisplayStyle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-slider-slides-to-scroll\\\"]],[23,4,[]],false,\\\"_data.settings.slidesToScroll\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,4,[\\\"resetContentDisplayStyles\\\"]],[28,\\\"hash\\\",null,[[\\\"allowedContentDisplayStyles\\\",\\\"disallowedContentDisplayStyles\\\"],[[23,0,[\\\"allowedContentDisplayStyles\\\"]],[23,0,[\\\"disallowedContentDisplayStyles\\\"]]]]]],null]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"slidesToShow\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.slidesSpacing\\\",[23,6,[]],\\\"slides spacing\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"refreshingDisplayStyle\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-slider-slides-space\\\"]],[23,4,[]],true,\\\"_data.settings.slidesSpacing\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,4,[\\\"resetContentDisplayStyles\\\"]],[28,\\\"hash\\\",null,[[\\\"allowedContentDisplayStyles\\\",\\\"disallowedContentDisplayStyles\\\"],[[23,0,[\\\"allowedContentDisplayStyles\\\"]],[23,0,[\\\"disallowedContentDisplayStyles\\\"]]]]]],null]]]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],[23,0,[\\\"constants\\\",\\\"featuresDisplayStyles\\\",\\\"slider\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@isElementToggler\\\",\\\"@onToggleAccordian\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[true,[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sliderAutoplay\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,4,[]],\\\"_data.settings.sliderAutoplay\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]]],null],\\\"autoplay\\\",\\\"settings.sliderAutoplay\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderAutoplaySpeed\\\",[23,6,[]],\\\"autoplay delay\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-slider-autoplay-speed\\\"]],[23,4,[]],\\\"_data.settings.sliderAutoplaySpeed\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@isElementToggler\\\",\\\"@onToggleAccordian\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[true,[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sliderArrowsEnabled\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,4,[]],\\\"_data.settings.sliderArrowsEnabled\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]]],null],\\\"show arrows\\\",\\\"settings.images_contents_sub-group\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderArrowsPosition\\\",[23,6,[]],\\\"arrows position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-slider-arrows-position\\\"]],[23,4,[]],\\\"_data.settings.sliderArrowsPosition\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderArrowsSize\\\",[23,6,[]],\\\"arrows button size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-slider-arrows-sizes\\\"]],[23,4,[]],\\\"_data.settings.sliderArrowsSize\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderArrowsBorderColor\\\",[23,6,[]],\\\"arrows button border color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"settings.sliderArrowsBorderColor\\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sliderArrowsBorderColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderArrowsBackgroundColor\\\",[23,6,[]],\\\"arrows button background color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"settings.sliderArrowsBackgroundColor\\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sliderArrowsBackgroundColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderArrowsHoverBackgroundColor\\\",[23,6,[]],\\\"arrows button hover color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"settings.sliderArrowsHoverBackgroundColor\\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sliderArrowsHoverBackgroundColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderArrowsTextColor\\\",[23,6,[]],\\\"arrows color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"settings.sliderArrowsTextColor\\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sliderArrowsTextColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@isElementToggler\\\",\\\"@onToggleAccordian\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[true,[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sliderDotsEnabled\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,4,[]],\\\"_data.settings.sliderDotsEnabled\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]]],null],\\\"dots settings\\\",\\\"settings.images_contents_sub-group\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderDotsPosition\\\",[23,6,[]],\\\"dots position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-slider-dots-position\\\"]],[23,4,[]],\\\"_data.settings.sliderDotsPosition\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderDotsStyle\\\",[23,6,[]],\\\"dots style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-slider-dots-styles\\\"]],[23,4,[]],\\\"_data.settings.sliderDotsStyle\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderDotsSize\\\",[23,6,[]],\\\"dots size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-slider-arrows-sizes\\\"]],[23,4,[]],\\\"_data.settings.sliderDotsSize\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderDotsColor\\\",[23,6,[]],\\\"dots color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@hasInput\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"settings.sliderDotsColor\\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sliderDotsColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.sliderDotsActiveColor\\\",[23,6,[]],\\\"dots active color\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@hasInput\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"settings.sliderDotsActiveColor\\\",[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"sliderDotsActiveColor\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],[23,0,[\\\"constants\\\",\\\"featuresDisplayStyles\\\",\\\"grid\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.gridNumberOfColumns\\\",[23,6,[]],\\\"number of columns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-grid-columns\\\"]],[23,4,[]],\\\"_data.settings.gridNumberOfColumns\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.gridColumnsGap\\\",[23,6,[]],\\\"grid column gap\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-grid-columns-gaps\\\"]],[23,4,[]],\\\"_data.settings.gridColumnsGap\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContainerAdvanced\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerSchedules\\\",\\\"hasContainerAnimation\\\",\\\"hasContainerQuickLinks\\\"],[false,false,true,false,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/features/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/flows/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SimpleEditorBlockFlowsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _class = class SimpleEditorBlockFlowsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasContainerAdvanced\", _descriptor5, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasContainerAdvanced\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/flows/flow/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 SimpleEditorPageBlockEditorFlowsFlowComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _class = class SimpleEditorPageBlockEditorFlowsFlowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n      _defineProperty(this, \"adapterName\", 'flows');\n      _defineProperty(this, \"flowsFiltersAdapterName\", 'flows/filters');\n      this.filters = this.search.setupFilters({\n        adapterName: this.flowsFiltersAdapterName,\n        defaultFiltersData: {\n          type: 'form'\n        }\n      });\n    }\n    *searchTask(filters) {\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters,\n        component: this\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/flows/flow/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CqkVwV/I\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelected\\\",\\\"@hasSelectedKey\\\",\\\"@tagName\\\"],[true,[23,1,[]],[23,0,[\\\"filters\\\"]],true,[23,0,[\\\"searchTask\\\",\\\"isRunning\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"searchTask\\\"]],[23,0,[\\\"filters\\\"]]],null],[23,0,[\\\"onSelect\\\"]],\\\"choose form\\\",[23,1,[]],[23,2,[\\\"_data\\\",\\\"name\\\"]],\\\"_data.name\\\",[23,2,[\\\"_data\\\",\\\"_key\\\"]],\\\"_data._key\\\",\\\"span\\\"]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/flows/flow/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/flows/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MP6Dw5rb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"@formGroupClassNames\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,2,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"flows_contents_group\\\",[23,5,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-editor/flows/flow\\\",[],[[\\\"@tab\\\",\\\"@model\\\"],[[23,6,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContainerAdvanced\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerSchedules\\\",\\\"hasContainerQuickLinks\\\"],[true,true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/flows/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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  let SimpleEditorPageBlockEditorImagesComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _class = class SimpleEditorPageBlockEditorImagesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"refreshingDisplayStyle\", _descriptor4, this);\n      _initializerDefineProperty(this, \"selectedDisplayStyle\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hasContainerAdvanced\", _descriptor6, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/images-display-styles', 'simple-editor/lists/styling/images-slider-arrows-sizes', 'simple-editor/lists/styling/images-slider-arrows-position', 'simple-editor/lists/styling/images-slider-dots-styles', 'simple-editor/lists/styling/images-slider-dots-position', 'simple-editor/lists/styling/images-slider-autoplay-speed', 'simple-editor/lists/styling/images-grid-columns', 'simple-editor/lists/styling/images-grid-style', 'simple-editor/lists/styling/features-display-styles', 'simple-editor/lists/styling/align', 'simple-editor/lists/styling/align-vertical', 'simple-editor/lists/styling/colors', 'simple-editor/lists/styling/sizes']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"refreshingDisplayStyle\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"selectedDisplayStyle\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasContainerAdvanced\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 SimpleEditorPageBlockEditorFeaturesContentsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.computed('args.pageBlock._data.settings.displayStyle', 'args.index', 'args.content._data.{hasText,imageAlt,textContentBlock._data.title}'), _dec6 = Ember.computed('args.allowedContentDisplayStyles.[]', 'args.content._data.displayStyle'), _class = class SimpleEditorPageBlockEditorFeaturesContentsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n    }\n    get contentTitle() {\n      const displayStyle = this.args.pageBlock?._data?.settings?.displayStyle || '';\n      const index = this.args.index || 0;\n      const title = `${this.intl.t(displayStyle)} ${index + 1}`;\n      const textTitle = this.args.content?._data?.textContentBlock?._data?.title || '';\n      const imageAlt = this.args.content?._data?.imageAlt || '';\n      if (textTitle) {\n        return `${title} - ${textTitle}`;\n      } else if (imageAlt) {\n        return `${title} - ${imageAlt}`;\n      }\n      return title;\n    }\n    get editingComponent() {\n      return 'simple-editor/page-block-editor/features/contents/image-and-text-base';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"contentTitle\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"contentTitle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editingComponent\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"editingComponent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/image/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockEditorImagesContentsImageComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('application'), _dec4 = Ember.computed('args.content._data.imageAlt'), _class = class SimpleEditorPageBlockEditorImagesContentsImageComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/order-horizontal', 'simple-editor/lists/styling/interaction-methods', 'simple-editor/lists/styling/image-sizes']);\n    }\n    get title() {\n      const contentLabel = this.args.content?._data?.label;\n      if (contentLabel) {\n        return contentLabel;\n      }\n      const pageBlockType = this.args.pageBlock?._data?.type;\n      const typeLabel = this.intl.t(`pageBlocks_${pageBlockType}`);\n      const contentImageAlt = this.args.content?._data?.imageAlt;\n      if (!contentImageAlt) {\n        return typeLabel;\n      }\n      return `${typeLabel} (${contentImageAlt})`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"title\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/image/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ys3aWC5h\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formGroupClassNames\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,1,[]]]],[[\\\"@isElementToggler\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\"],[false,true,true,\\\"text_sub-group\\\",[23,2,[]],[23,3,[]],false,[23,4,[\\\"label\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@isAccordianAlwaysExpanded\\\"],[[23,2,[]],\\\"image\\\",true,true,true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/images-selector\\\",[],[[\\\"@model\\\",\\\"@context\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@forceReload\\\"],[[23,4,[]],\\\"contents.image\\\",[23,5,[]],[23,6,[]],[23,2,[]],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/images/contents/image/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/images/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockEditorImagesContentsImagesComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockEditorImagesContentsImagesComponent;\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/images/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cdnwXRjt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formGroupClassNames\\\",\\\"@formInitData\\\",\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,1,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"images_contents_sub-group\\\",[23,2,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"simple-editor/page-block-editor/features/contents/image-and-text-base\\\",[],[[\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@options\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,2,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[28,\\\"hash\\\",null,[[\\\"requireImage\\\",\\\"hasButtonsAlign\\\",\\\"hasHorizontalPosition\\\",\\\"hasVerticalPosition\\\",\\\"hasContentAlign\\\",\\\"hasImagePosition\\\",\\\"hasImageAlign\\\",\\\"hasImageSize\\\",\\\"hasImageSizeCustom\\\"],[true,false,true,true,false,false,true,false,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/images/contents/images/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/links-or-buttons/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockEditorImagesContentsLinksOrButtonsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _class = class SimpleEditorPageBlockEditorImagesContentsLinksOrButtonsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirtyButtonsPageBlock\", _descriptor3, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/order-horizontal', 'simple-editor/lists/styling/buttons-display-styles', 'simple-editor/lists/styling/buttons-images-styles', 'simple-editor/lists/styling/buttons-images-types', 'simple-editor/lists/styling/interaction-methods', 'simple-editor/lists/styling/image-sizes']);\n    }\n    editButtonsPageBlock(buttonsPageBlock) {\n      this.dirtyButtonsPageBlock = this.crud.setupDirty({\n        adapterName: 'simple-editor/page-blocks/buttons',\n        model: buttonsPageBlock,\n        component: this,\n        resultsProperty: 'dirty'\n      });\n    }\n    cancelButtonsPageBlock() {\n      const dirty = this.dirtyButtonsPageBlock;\n      this.crud.cancelEditing({\n        adapterName: 'simple-editor/page-blocks/buttons',\n        dirty\n      });\n      this.dirtyButtonsPageBlock = null;\n    }\n    onAddButton() {}\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirtyButtonsPageBlock\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"editButtonsPageBlock\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"editButtonsPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelButtonsPageBlock\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelButtonsPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAddButton\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddButton\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/links-or-buttons/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"doE7aAsx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@content\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@options\\\",\\\"@tab\\\",\\\"@onSetPreviewDevice\\\",\\\"@onSelectSubTab\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,11,[]]]],[[\\\"@isElementToggler\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\"],[false,true,true,\\\"text_sub-group\\\",[23,4,[]],[23,8,[]],false,[23,2,[\\\"label\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isElementToggler\\\",\\\"@isAccordianExpanded\\\",\\\"@isAccordianAlwaysExpanded\\\",\\\"@onToggleAccordian\\\"],[[23,4,[]],\\\"links or buttons\\\",true,true,[23,2,[\\\"_data\\\",\\\"hasInteraction\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,2,[]],\\\"_data.hasInteraction\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.interactionMethod\\\",[23,4,[]],\\\"links or buttons\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-interaction-methods\\\"]],[23,2,[]],\\\"_data.interactionMethod\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"interactionMethod\\\"]],\\\"link\\\"],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@hasLinkToggle\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@contextPrefix\\\"],[false,[23,2,[\\\"_data\\\",\\\"link\\\"]],[23,5,[]],[23,4,[]],[23,3,[]],\\\"contents.\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@onClose\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[\\\"fas fa-pen\\\",\\\"buttons\\\",[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"editButtonsPageBlock\\\"]],[23,2,[\\\"_data\\\",\\\"buttonsPageBlock\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"cancelButtonsPageBlock\\\"]]],null],[23,2,[\\\"_data\\\",\\\"buttonsPageBlock\\\",\\\"_data\\\",\\\"contents\\\"]],[28,\\\"count\\\",[[23,2,[\\\"_data\\\",\\\"buttonsPageBlock\\\",\\\"_data\\\",\\\"contents\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirtyButtonsPageBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"simple-editor/page-block-editor\\\",[],[[\\\"@pageBlock\\\",\\\"@dirty\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@options\\\",\\\"@tab\\\",\\\"@onCloseDialogAction\\\",\\\"@onSetPreviewDevice\\\"],[[23,2,[\\\"_data\\\",\\\"buttonsPageBlock\\\"]],[23,0,[\\\"dirtyButtonsPageBlock\\\"]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerAdvanced\\\"],[[23,7,[\\\"hasButtonsContainerAdvanced\\\"]]]]],[23,8,[]],[23,1,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/page-block-editor/buttons\\\",[],[[\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\"],[[23,2,[\\\"_data\\\",\\\"buttonsPageBlock\\\"]],[23,5,[]],[23,4,[]],[23,3,[]],[23,8,[]],[23,10,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/images/contents/links-or-buttons/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2eOAxkqh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@showFocusColumn\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@onSelectSubTab\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-editor/base/content-btn\\\",[],[[\\\"@index\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@showFocusColumn\\\",\\\"@onClickContentAction\\\",\\\"@imageUuid\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@content\\\",\\\"@onSelectSubTab\\\"],[[23,1,[]],[23,0,[\\\"contentTitle\\\"]],false,[23,2,[]],\\\"focus-column\\\",[23,3,[\\\"_data\\\",\\\"image\\\",\\\"desktop\\\",\\\"uuid\\\"]],[23,4,[]],[23,5,[]],[23,3,[]],[28,\\\"fn\\\",[[23,6,[]],[23,3,[\\\"_data\\\",\\\"contentId\\\"]]],null]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/images/contents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/text/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SimpleEditorPageBlockEditorImagesContentsTextComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _class = class SimpleEditorPageBlockEditorImagesContentsTextComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/contents/text/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qwE15Zxr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formGroupClassNames\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@content\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,1,[]]]],[[\\\"@isElementToggler\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@title\\\"],[false,true,true,\\\"text_sub-group\\\",[23,2,[]],[23,3,[]],false,[23,4,[\\\"label\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@isAccordian\\\",\\\"@isAccordianAlwaysExpanded\\\"],[[23,2,[]],\\\"text\\\",true,true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.textContentBlock.title\\\",[23,2,[]],\\\"title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"optional\\\",[23,5,[]],[23,4,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"title\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.template\\\",[23,2,[]],\\\"template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@hasSidebarEdit\\\",\\\"@options\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[true,false,[28,\\\"hash\\\",null,[[\\\"autofocus\\\",\\\"height\\\",\\\"hasFontSize\\\",\\\"hasTextAlign\\\",\\\"defaultTextAlign\\\"],[false,300,false,false,\\\"\\\"]]],[23,5,[]],[23,4,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"template\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"font color\\\",\\\"contents.textContentBlock.fontColor\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/color-picker\\\",[],[[\\\"@model\\\",\\\"@hasInput\\\",\\\"@readonly\\\",\\\"@defaultSwatchesList\\\",\\\"@colorKey\\\",\\\"@value\\\"],[[23,4,[]],false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-colors\\\"]],\\\"_data.textContentBlock._data.fontColor\\\",[23,4,[\\\"_data\\\",\\\"textContentBlock\\\",\\\"_data\\\",\\\"fontColor\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,2,[]],\\\"contents.textContentBlock.fontSize\\\",\\\"font size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@allowEmpty\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,false,\\\"list-selector--vertical\\\",[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-sizes\\\"]],[23,4,[\\\"_data\\\",\\\"textContentBlock\\\"]],\\\"_data.fontSize\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/title-styles\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,4,[\\\"_data\\\",\\\"textContentBlock\\\"]],[23,5,[]],[23,2,[]],\\\"contents.textContentBlock.titleStyles\\\",\\\"_data.titleStyles\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/images/contents/text/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/images/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"k2qCMKJC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@formGroupClassNames\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@showFocusColumn\\\",\\\"@website\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"images_settings_group\\\",[23,6,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.gridNumberOfColumns\\\",[23,6,[]],\\\"number of columns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-grid-columns\\\"]],[23,4,[]],\\\"_data.settings.gridNumberOfColumns\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.gridNumberOfColumns\\\",[23,6,[]],\\\"image grid style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,true,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-images-grid-style\\\"]],[23,4,[]],\\\"_data.settings.imagesGridStyle\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"images_contents_group\\\",[23,6,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-editor/images/contents\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@showFocusColumn\\\",\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@allowedContentDisplayStyles\\\",\\\"@disallowedContentDisplayStyles\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\"],[[23,3,[]],[23,7,[]],[23,2,[]],[23,1,[]],[23,4,[]],[23,8,[]],[23,6,[]],[23,5,[]],[23,9,[]],[23,10,[]],[23,0,[\\\"allowedContentDisplayStyles\\\"]],[23,0,[\\\"disallowedContentDisplayStyles\\\"]],[23,11,[]],[23,12,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",false,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,4,[\\\"_data\\\",\\\"type\\\"]]],null]],null],[28,\\\"or\\\",[[23,5,[]],[23,4,[\\\"isContentLimited\\\"]]],null],[28,\\\"fn\\\",[[23,4,[\\\"newContent\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContainerAdvanced\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerQuickLinks\\\",\\\"hasSchedhasContainerSchedulesules\\\"],[true,true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/images/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/news/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\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 SimpleEditorPageBlockEditorNewsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('simple-editor.page-blocks.news'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _class = class SimpleEditorPageBlockEditorNewsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"pageBlocksNewsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isRefreshing\", _descriptor0, this);\n      _initializerDefineProperty(this, \"hasContainerAdvanced\", _descriptor1, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/grid-row-items', 'simple-editor/lists/styling/display-styles', 'simple-editor/lists/styling/display-by', 'simple-editor/lists/styling/items-per-page', 'simple-editor/lists/styling/line-count', 'news/lists/tags']);\n      const tags = this.args.pageBlock?._data?.settings?.tags || [];\n      const keys = this.args.pageBlock?._data?.settings?.keys || [];\n      const master = this.args.website?._data?._key || '';\n      this.filters = this.search.setupFilters({\n        adapterName: 'news/filters',\n        defaultFiltersData: {\n          count: 60,\n          page: 1,\n          master,\n          hasImages: true,\n          tags,\n          keys,\n          sort: [{\n            by: 'index',\n            direction: 'asc'\n          }]\n        }\n      });\n      this.pageBlocksNewsService.fetchTask.perform(this.filters);\n    }\n    toggleItem(pageBlock, model, toggle) {\n      if (toggle) {\n        return this.addItem(pageBlock, model);\n      }\n      this.removeItem(pageBlock, model);\n    }\n    addItem(pageBlock, model) {\n      const key = model?._data?._key || '';\n      const keys = R.pipe(R.pathOr([], ['args', 'pageBlock', '_data', 'settings', 'keys']), R.append(key), R.uniq)(this);\n      pageBlock.setData('settings.keys', keys);\n    }\n    removeItem(pageBlock, model) {\n      const key = model?._data?._key || '';\n      const keys = R.pipe(R.pathOr([], ['args', 'pageBlock', '_data', 'settings', 'keys']), R.reject(R.equals(key)))(this);\n      pageBlock.setData('settings.keys', keys);\n      const updatedResults = R.pipe(R.pathOr([], ['filters', 'results']), R.filter(R.pipe(R.path(['_data', '_key']), R.includes(R.__, pageBlock?._data?.settings?.keys))))(this);\n      this.filters.set('results', updatedResults);\n    }\n    setRefreshing() {\n      this.isRefreshing = true;\n      setTimeout(() => {\n        this.isRefreshing = false;\n      }, 50);\n    }\n    resetTagsAndKeys(pageBlock, displayByModel) {\n      const shouldTryToResetTags = displayByModel?._data?.value === this.constants.displayBy.items && RA.isNotNilOrEmpty(pageBlock?._data?.settings?.tags);\n      const shouldTryToResetKeys = displayByModel?._data?.value === this.constants.displayBy.tags && RA.isNotNilOrEmpty(pageBlock?._data?.settings?.keys);\n      if (!shouldTryToResetKeys && !shouldTryToResetTags) {\n        return;\n      }\n      this.setRefreshing();\n      if (shouldTryToResetKeys) {\n        const message = this.intl.t('are you sure you want to clear', {\n          item: this.constants.displayBy.items\n        });\n        if (!window.confirm(message)) {\n          pageBlock.setData('settings.displayBy', this.constants.displayBy.items);\n          return;\n        }\n        pageBlock.setData('settings.keys', []);\n      }\n      if (shouldTryToResetTags) {\n        const message = this.intl.t('are you sure you want to clear', {\n          item: this.constants.displayBy.tags\n        });\n        if (!window.confirm(message)) {\n          pageBlock.setData('settings.displayBy', this.constants.displayBy.tags);\n          return;\n        }\n        pageBlock.setData('settings.tags', []);\n      }\n      this.filters.reset();\n    }\n    *fetchByKeyTask(filters, onCloseDialogAction) {\n      const keys = this.args.pageBlock?._data?.settings?.keys || [];\n      filters.setData('keys', keys);\n      yield this.pageBlocksNewsService.fetchTask.perform(filters);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *fetchByTagsTask(filters, tags) {\n      filters.setData('tags', tags);\n      yield this.pageBlocksNewsService.fetchTask.perform(filters);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"pageBlocksNewsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"isRefreshing\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"hasContainerAdvanced\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleItem\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addItem\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"addItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeItem\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"removeItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetTagsAndKeys\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"resetTagsAndKeys\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchByKeyTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByKeyTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchByTagsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByTagsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/news/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mEdVebe1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@formInitData\\\",\\\"@pageBlock\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"news_settings_group\\\",[23,3,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.style\\\",\\\"display style\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-display-styles\\\"]],[23,4,[]],\\\"_data.settings.displayStyle\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],\\\"grid\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayItemsPerRow\\\",\\\"display items per row\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[28,\\\"or\\\",[[23,7,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],\\\"slider\\\"],null]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-grid-row-items\\\"]],[23,4,[]],false,\\\"_data.settings.gridRowItems\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.itemsPerPage\\\",\\\"items per page\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-items-per-page\\\"]],[23,4,[]],false,\\\"_data.settings.itemsPerPage\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"line count for title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-line-count\\\"]],[23,4,[]],\\\"_data.settings.lineCountTitle\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"line count for description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-line-count\\\"]],[23,4,[]],\\\"_data.settings.lineCountDescription\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayBy\\\",\\\"display by\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isRefreshing\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-display-by\\\"]],[23,4,[]],\\\"_data.settings.displayBy\\\",[28,\\\"fn\\\",[[23,0,[\\\"resetTagsAndKeys\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"tags\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayItemsPerRow\\\",\\\"tags\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\"],[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"items\\\"]]],null],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-tags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchByTagsTask\\\"]],[23,0,[\\\"filters\\\"]],[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@adapterName\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"news/lists/tags\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-tags\\\"]],[23,4,[]],true,\\\"_data._key\\\",false,\\\"_data.settings.tags\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"news-lists-tags\\\"]],false,[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"items\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.keys\\\",\\\"add\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@onClose\\\"],[\\\"select news\\\",\\\"fas fa-plus\\\",false,[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"tags\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"fetchByKeyTask\\\"]],[23,0,[\\\"filters\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"news/search-bar\\\",[],[[\\\"@tab\\\",\\\"@master\\\",\\\"@onSelect\\\",\\\"@preSelected\\\"],[[23,5,[]],[23,6,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleItem\\\"]],[23,4,[]]],null],[23,0,[\\\"filters\\\",\\\"results\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,1,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"items_settings_group\\\",[23,3,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"fetchByTagsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchByKeyTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@tableViewOptions\\\"],[\\\"new-table-view\\\",\\\"news/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,5,[]],true,[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"tab\\\",\\\"isReadonly\\\",\\\"isAllowReorder\\\",\\\"isGuest\\\",\\\"allowEdit\\\",\\\"onRemove\\\",\\\"isSelectedByTags\\\",\\\"onReorder\\\"],[\\\"news\\\",[23,5,[]],false,[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"tags\\\"]]],null],false,true],null],true,false,[28,\\\"fn\\\",[[23,0,[\\\"removeItem\\\"]],[23,4,[]]],null],[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\",\\\"length\\\"]],true,false],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,8,[]],[23,4,[]],[23,7,[]],[23,3,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerSchedules\\\",\\\"hasContainerQuickLinks\\\"],[true,true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/news/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/products/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA, R_) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 SimpleEditorPageBlockEditorProductsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service('simple-editor.page-blocks'), _dec3 = Ember.inject.service('simple-editor.page-blocks.products'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service, _dec8 = Ember.inject.service, _dec9 = Ember.inject.service, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _class = class SimpleEditorPageBlockEditorProductsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"pageBlocksService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pageBlocksProductsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor4, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor5, this);\n      _initializerDefineProperty(this, \"search\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor9, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isRefreshing\", _descriptor10, this);\n      _initializerDefineProperty(this, \"hasContainerAdvanced\", _descriptor11, this);\n      _initializerDefineProperty(this, \"productRowEditTab\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isCompactHandPickRows\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isHandPickDisplay\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedProductCount\", _descriptor15, this);\n      _defineProperty(this, \"handPickSwapHighlightMs\", 1600);\n      this.crud.addLists(this, ['simple-editor/lists/styling/products-display-styles', 'simple-editor/lists/styling/products-grid-row-items', 'simple-editor/lists/styling/products-display-by', 'simple-editor/lists/styling/products-product-per-page', 'products/lists/tags']);\n      let master = this.args.website?._data?.shopKey || '';\n      const isShopPage = RA.isNotNilOrEmpty(this.args.website?._data?.advancedTemplate);\n      if (isShopPage) {\n        master = this.args.website?._data?._key || '';\n      }\n      this.isHandPickDisplay = this.args.pageBlock?._data?.settings?.displayBy === this.constants.productsDisplayBy.products;\n      const isHandPickDisplay = this.isHandPickDisplay;\n      const selectedProductKeys = this.args.pageBlock?._data?.settings?.productKeys || [];\n      const productTags = isHandPickDisplay ? [] : this.args.pageBlock?._data?.settings?.productTags || [];\n      const productKeys = isHandPickDisplay ? this.pageBlocksService.takeHandPickKeysForReorder(selectedProductKeys) : [];\n      const contentsPageSize = isHandPickDisplay ? this.pageBlocksService.handPickReorderCap : 20;\n      this.filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        defaultFiltersData: {\n          count: contentsPageSize,\n          page: 1,\n          master,\n          hasImages: true,\n          tags: productTags,\n          itemKeys: productKeys,\n          sort: [{\n            by: 'index',\n            direction: 'asc'\n          }]\n        }\n      });\n\n      // Own tab so ProductsShopWizard::Editor resetTabs cannot clear the page-block editor nav\n      this.productRowEditTab = this.args.tab ? this.tabsManager.copyTab({\n        tab: this.args.tab\n      }) : undefined;\n      this.applyContentsSearchFilters(this.filters);\n      this.syncSelectedProductCount();\n      this.fetchProductsTask.perform(this.filters);\n    }\n    willDestroy() {\n      this.clearHandPickSwapHighlights();\n      super.willDestroy(...arguments);\n    }\n\n    /**\n     * Write the selected-product badge from `productKeys`.\n     * @return {void}\n     */\n    syncSelectedProductCount() {\n      this.selectedProductCount = (this.args.pageBlock?._data?.settings?.productKeys || []).length;\n    }\n\n    /**\n     * Whether Add or edit should refuse another product (at or over the select cap).\n     * @return {boolean} true when selected keys are at least the service cap\n     */\n    get isAtHandPickSelectCap() {\n      return this.selectedProductCount >= this.pageBlocksService.handPickReorderCap;\n    }\n\n    /**\n     * Cap warning copy for Add or edit, using the live select cap.\n     * @return {string} translated warning\n     */\n    get handPickSelectCapWarning() {\n      const handPickSelectCap = this.pageBlocksService.handPickReorderCap;\n      return this.intl.t('page_blocks_products_hand_pick_select_cap_warning', {\n        count: handPickSelectCap\n      });\n    }\n\n    /**\n     * Wrapper class for Contents so compact mode can hide tall campaign chrome.\n     * @return {string} reorder class names, or empty when Display By is not Products\n     */\n    get productsContentsReorderClassNames() {\n      if (!this.isHandPickDisplay) {\n        return '';\n      }\n      if (this.isCompactHandPickRows) {\n        return 'simple-editor__products-contents-reorder simple-editor__products-contents-reorder--compact';\n      }\n      return 'simple-editor__products-contents-reorder';\n    }\n\n    /**\n     * Icon for the shrink toolbar control (same pair as simple-editor blocks compact).\n     * @return {string} Font Awesome class names\n     */\n    get compactHandPickRowsIcon() {\n      if (this.isCompactHandPickRows) {\n        return 'fas fa-up-right-and-down-left-from-center';\n      }\n      return 'fas fa-down-left-and-up-right-to-center';\n    }\n\n    /**\n     * Tooltip for the shrink toolbar control.\n     * @return {string} translation key\n     */\n    get compactHandPickRowsTooltipLabel() {\n      if (this.isCompactHandPickRows) {\n        return 'show full rows';\n      }\n      return 'compact rows';\n    }\n\n    /**\n     * Point Contents search at either the capped hand-pick keys or paged tag matches.\n     * @param {Object} filters - campaign-details search filters model\n     * @param {Object} filters._data - filter payload sent to searchAdvanced\n     * @param {number} filters._data.count - page size (200 hand-pick, 20 tags)\n     * @param {number} filters._data.page - always reset to 1 for a fresh Contents load\n     * @param {boolean} filters._data.hasImages - Contents only lists products that have images\n     * @param {string[]} filters._data.itemKeys - hand-pick keys to fetch (first 200)\n     * @param {string[]} filters._data.tags - tag-mode keys; empty in hand-pick\n     * @return {void}\n     */\n    applyContentsSearchFilters(filters) {\n      if (!filters) {\n        return;\n      }\n      const isHandPickDisplay = this.isHandPickDisplay;\n      const productTags = this.args.pageBlock?._data?.settings?.productTags || [];\n      const productKeys = this.args.pageBlock?._data?.settings?.productKeys || [];\n      filters.setData('page', 1);\n      filters.setData('hasImages', true);\n      if (isHandPickDisplay) {\n        const keysForReorder = this.pageBlocksService.takeHandPickKeysForReorder(productKeys);\n        filters.setData('count', this.pageBlocksService.handPickReorderCap);\n        filters.setData('itemKeys', keysForReorder);\n        filters.setData('tags', []);\n        return;\n      }\n      filters.setData('count', 20);\n      filters.setData('itemKeys', []);\n      filters.setData('tags', productTags);\n    }\n\n    /**\n     * Mark search hits that are already in this block's hand-pick list.\n     * @param {Object[]} results - campaign detail models from the add/edit search\n     * @param {Object} results[]._data - campaign detail payload\n     * @param {string} results[]._data.itemKey - product key to match against productKeys\n     * @return {Object[]} same models with `isSelected` set\n     */\n    onAfterSearch(results) {\n      const productsArray = this.args.pageBlock?._data?.settings?.productKeys || [];\n      return R.map(model => {\n        const isSelected = productsArray.includes(model?._data?.itemKey);\n        model.set('isSelected', isSelected);\n        return model;\n      })(results);\n    }\n\n    /**\n     * Add or remove one product key on the page block (add/edit modal).\n     * Adding is refused once the list is at the select cap; the row toggle is cleared.\n     * @param {Object} campaignDetailModel - selected campaign detail row\n     * @param {Object} campaignDetailModel._data - campaign detail payload\n     * @param {string} campaignDetailModel._data.itemKey - product key to add or remove\n     * @param {boolean} shouldAdd - true to include the product, false to remove it\n     * @return {void}\n     */\n    addProduct(campaignDetailModel, shouldAdd) {\n      const itemKey = campaignDetailModel?._data?.itemKey || '';\n      const currentProductKeys = this.args.pageBlock?._data?.settings?.productKeys || [];\n      if (shouldAdd) {\n        const alreadySelected = currentProductKeys.includes(itemKey);\n        const shouldRefuseAddAtCap = !alreadySelected && this.pageBlocksService.isAtHandPickCap(currentProductKeys);\n        if (shouldRefuseAddAtCap) {\n          campaignDetailModel.set('isSelected', false);\n          return;\n        }\n        const productKeys = this.pageBlocksService.appendHandPickKey(currentProductKeys, itemKey);\n        this.args.pageBlock.setData('settings.productKeys', productKeys);\n        this.syncSelectedProductCount();\n        return;\n      }\n      const productKeys = this.pageBlocksService.removeKey(currentProductKeys, itemKey);\n      this.args.pageBlock.setData('settings.productKeys', productKeys);\n      this.syncSelectedProductCount();\n    }\n\n    /**\n     * Clear the other display-by collection when the merchant switches Display By.\n     * @param {Object} pageBlock - products page block being edited\n     * @param {Object} displayByModel - selected display-by list option\n     * @param {Object} displayByModel._data - option payload\n     * @param {string} displayByModel._data.value - `products` or `tags`\n     * @return {void}\n     */\n    resetProductTagsAndProductKeys(pageBlock, displayByModel) {\n      const displayBy = displayByModel?._data?.value;\n      this.isHandPickDisplay = displayBy === this.constants.productsDisplayBy.products;\n      const shouldTryToResetTags = displayBy === this.constants.productsDisplayBy.products && RA.isNotNilOrEmpty(pageBlock?._data?.settings?.productTags);\n      const shouldTryToResetKeys = displayBy === this.constants.productsDisplayBy.tags && RA.isNotNilOrEmpty(pageBlock?._data?.settings?.productKeys);\n      if (shouldTryToResetKeys) {\n        pageBlock.setData('settings.productKeys', []);\n      }\n      if (shouldTryToResetTags) {\n        pageBlock.setData('settings.productTags', []);\n      }\n      this.filters.reset();\n      this.applyContentsSearchFilters(this.filters);\n      this.syncSelectedProductCount();\n      this.fetchProductsTask.perform(this.filters);\n      this.applicationService.modelSetIsForceReloading(pageBlock);\n    }\n\n    /**\n     * Toggle compact Contents rows (default off = full campaign chrome).\n     * @return {void}\n     */\n    toggleCompactHandPickRows() {\n      this.isCompactHandPickRows = !this.isCompactHandPickRows;\n    }\n\n    /**\n     * Drop swap tints from every loaded Contents row.\n     * @return {void}\n     */\n    clearHandPickSwapHighlights() {\n      const results = this.filters?.results || [];\n      R.forEach(detail => {\n        if (!detail?.handPickSwapRole) {\n          return;\n        }\n        detail.set('handPickSwapRole', undefined);\n      })(results);\n    }\n\n    /**\n     * Tint the moved row, and the other row only when the two actually swapped.\n     * A longer jump is an insert, so only the moved row fades.\n     * @param {Object} sourceDetail - row that was dragged or moved\n     * @param {Object} [swappedWithDetail] - adjacent row it traded places with\n     * @return {void}\n     */\n    markHandPickSwap(sourceDetail, swappedWithDetail) {\n      this.clearHandPickSwapHighlights();\n      Ember.run.next(this, () => {\n        if (this.isDestroyed || this.isDestroying) {\n          return;\n        }\n        if (sourceDetail) {\n          sourceDetail.set('handPickSwapRole', 'source');\n        }\n        if (swappedWithDetail && swappedWithDetail !== sourceDetail) {\n          swappedWithDetail.set('handPickSwapRole', 'target');\n        }\n        this.clearHandPickSwapHighlightsAfterDelayTask.perform();\n      });\n    }\n\n    /**\n     * Write `productKeys` from the currently loaded Contents rows after a reorder.\n     * Hand-pick uses merge so keys past the cap (and unloaded no-image keys) stay in place.\n     * @return {void}\n     */\n    persistHandPickOrderFromResults() {\n      if (!this.isHandPickDisplay) {\n        return;\n      }\n      this.reIndexProductsArray();\n      const reorderedShownKeys = R.pipe(R.pathOr([], ['filters', 'results']), R.map(R_.dotPath('_data.itemKey')), R.uniq)(this);\n      const allProductKeys = this.args.pageBlock?._data?.settings?.productKeys || [];\n      const productKeys = this.pageBlocksService.mergeReorderedHandPickKeys(reorderedShownKeys, allProductKeys);\n      this.args.pageBlock.setData('settings.productKeys', productKeys);\n      this.syncSelectedProductCount();\n      this.applicationService.modelSetIsForceReloading(this.args.pageBlock);\n    }\n\n    /**\n     * Insert line for Contents drag: above if dragging toward the start, below if toward the end.\n     * Uses list position so campaign `_data.index` values do not hide the indicator.\n     * @param {Object} detail - row the pointer is over\n     * @param {Object} [dragItem] - row being dragged; falls back to `this.dragDetail`\n     * @return {string} `insert-above`, `insert-below`, or '' when there is no move\n     */\n    dragOverHandPickRow(detail, dragItem) {\n      if (!this.isHandPickDisplay) {\n        return '';\n      }\n      const sourceRow = dragItem || this.dragDetail;\n      const results = this.filters?.results || [];\n      if (!sourceRow || !detail) {\n        return '';\n      }\n      const dragIndex = results.indexOf(sourceRow);\n      const onOverItemIndex = results.indexOf(detail);\n      if (dragIndex < 0 || onOverItemIndex < 0 || dragIndex === onOverItemIndex) {\n        return '';\n      }\n      if (dragIndex < onOverItemIndex) {\n        return 'insert-below';\n      }\n      return 'insert-above';\n    }\n\n    /**\n     * Reorder Contents rows on drop and persist hand-pick `productKeys` from the full loaded list.\n     * @param {Object} detail - row the dragged item was dropped on\n     * @return {void}\n     */\n    reorderDetails(detail) {\n      if (this.args.isReadonly || !this.isHandPickDisplay) {\n        return;\n      }\n      const dragItem = this.dragDetail;\n      const results = this.filters?.results;\n      if (!results || !dragItem || !detail) {\n        return;\n      }\n      const itemOverIndex = results.indexOf(detail);\n      const itemIndex = results.indexOf(dragItem);\n      if (itemIndex < 0 || itemOverIndex < 0 || itemIndex === itemOverIndex) {\n        return;\n      }\n      const isAdjacentSwap = Math.abs(itemIndex - itemOverIndex) === 1;\n      results.removeAt(itemIndex);\n      results.insertAt(itemOverIndex, dragItem);\n      this.persistHandPickOrderFromResults();\n      this.markHandPickSwap(dragItem, isAdjacentSwap ? detail : undefined);\n      this.dragDetail = undefined;\n    }\n\n    /**\n     * Move one Contents row one step without dragging, then rewrite `productKeys`.\n     * @param {Object} detail - campaign detail row to move\n     * @param {Object} detail._data - campaign detail payload\n     * @param {string} detail._data.itemKey - product key on the row\n     * @param {number} offset - -1 to move up, +1 to move down\n     * @return {void}\n     */\n    moveHandPickProduct(detail, offset) {\n      if (this.args.isReadonly || !this.isHandPickDisplay) {\n        return;\n      }\n      const results = this.filters?.results;\n      if (!results || !detail) {\n        return;\n      }\n      const itemIndex = results.indexOf(detail);\n      const targetIndex = itemIndex + offset;\n      if (itemIndex < 0 || targetIndex < 0 || targetIndex >= results.length) {\n        return;\n      }\n      const swappedWithDetail = results.objectAt(targetIndex);\n      results.removeAt(itemIndex);\n      results.insertAt(targetIndex, detail);\n      this.persistHandPickOrderFromResults();\n      this.markHandPickSwap(detail, swappedWithDetail);\n    }\n\n    /**\n     * Move the row one step toward the start of Contents.\n     * @param {Object} detail - campaign detail row to move\n     * @return {void}\n     */\n    moveHandPickProductUp(detail) {\n      this.moveHandPickProduct(detail, -1);\n    }\n\n    /**\n     * Move the row one step toward the end of Contents.\n     * @param {Object} detail - campaign detail row to move\n     * @return {void}\n     */\n    moveHandPickProductDown(detail) {\n      this.moveHandPickProduct(detail, 1);\n    }\n\n    /**\n     * Move one Contents row to a 1-based index, then rewrite `productKeys`.\n     * @param {Object} detail - campaign detail row to move\n     * @param {number|string} displayIndex - 1-based position the merchant typed\n     * @return {void}\n     */\n    moveHandPickProductToIndex(detail, displayIndex) {\n      if (this.args.isReadonly || !this.isHandPickDisplay) {\n        return;\n      }\n      const results = this.filters?.results;\n      if (!results || !detail) {\n        return;\n      }\n      const parsedDisplayIndex = parseInt(displayIndex, 10);\n      if (!Number.isFinite(parsedDisplayIndex)) {\n        return;\n      }\n      const lastIndex = results.length - 1;\n      const targetIndex = Math.min(Math.max(parsedDisplayIndex - 1, 0), lastIndex);\n      const itemIndex = results.indexOf(detail);\n      if (itemIndex < 0 || itemIndex === targetIndex) {\n        return;\n      }\n      const isAdjacentSwap = Math.abs(itemIndex - targetIndex) === 1;\n      const swappedWithDetail = isAdjacentSwap ? results.objectAt(targetIndex) : undefined;\n      results.removeAt(itemIndex);\n      results.insertAt(targetIndex, detail);\n      this.persistHandPickOrderFromResults();\n      this.markHandPickSwap(detail, swappedWithDetail);\n    }\n\n    /**\n     * Drop a product from this block's `productKeys` and from the Contents list.\n     * Does not call product-delete APIs; the product stays in the shop.\n     * If remaining keys still fill the reorder window, Contents is refetched so the next key slides in.\n     * @param {Object} detail - campaign detail row to drop from the block\n     * @param {Object} detail._data - campaign detail payload\n     * @param {string} detail._data.itemKey - product key to remove from the block\n     * @return {void}\n     */\n    removeHandPickProductFromBlock(detail) {\n      if (this.args.isReadonly || !this.isHandPickDisplay) {\n        return;\n      }\n      const itemKey = detail?._data?.itemKey || '';\n      const allProductKeys = this.args.pageBlock?._data?.settings?.productKeys || [];\n      const productKeys = this.pageBlocksService.removeKey(allProductKeys, itemKey);\n      this.args.pageBlock.setData('settings.productKeys', productKeys);\n      this.syncSelectedProductCount();\n      const remainingKeysFillReorderWindow = productKeys.length >= this.pageBlocksService.handPickReorderCap;\n      if (remainingKeysFillReorderWindow) {\n        this.applyContentsSearchFilters(this.filters);\n        this.fetchProductsTask.perform(this.filters);\n        this.applicationService.modelSetIsForceReloading(this.args.pageBlock);\n        return;\n      }\n      const results = this.filters?.results;\n      const itemIndex = results ? results.indexOf(detail) : -1;\n      if (itemIndex > -1) {\n        results.removeAt(itemIndex);\n      }\n      this.reIndexProductsArray();\n      this.applicationService.modelSetIsForceReloading(this.args.pageBlock);\n    }\n\n    /**\n     * Write sequential index values onto the currently loaded Contents rows after a drag.\n     * @return {void}\n     */\n    reIndexProductsArray() {\n      const productsArrayFiltered = this.filters?.results;\n      if (!productsArrayFiltered) {\n        return;\n      }\n      const forEachIndexed = R.addIndex(R.forEach);\n      forEachIndexed((product, index) => {\n        const checkingIndexProp = this?.dragDropSort?.checkingIndexProp || this?.dragDropSort?.indexProp || '_data.index';\n        product.set(checkingIndexProp, index);\n        return product;\n      })(productsArrayFiltered);\n    }\n\n    /**\n     * After the per-row product editor closes, refresh the block preview without losing order.\n     * @return {void}\n     */\n    onProductRowEditClose() {\n      this.applicationService.modelSetIsForceReloading(this.args.pageBlock);\n    }\n\n    /**\n     * Wait out the swap fade, then drop the tints.\n     * @return {Generator}\n     */\n    *clearHandPickSwapHighlightsAfterDelayTask() {\n      yield (0, _emberConcurrency.timeout)(this.handPickSwapHighlightMs);\n      this.clearHandPickSwapHighlights();\n    }\n\n    /**\n     * Reload Contents after tag picker changes (paged tag browse).\n     * @param {Object} filters - campaign-details search filters model\n     * @return {Generator}\n     */\n    *fetchProductsByTagTask(filters) {\n      this.applyContentsSearchFilters(filters);\n      this.applicationService.modelSetIsForceReloading(this.args.pageBlock);\n      yield this.fetchProductsTask.perform(filters);\n    }\n\n    /**\n     * Reload Contents after the add/edit modal saves selected productKeys.\n     * @param {Object} filters - campaign-details search filters model\n     * @param {Function} [onCloseDialogAction] - close the add/edit modal when the fetch finishes\n     * @return {Generator}\n     */\n    *fetchProductsByProductKeyTask(filters, onCloseDialogAction) {\n      this.applyContentsSearchFilters(filters);\n      yield this.fetchProductsTask.perform(filters);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n\n    /**\n     * Fetch campaign details for Contents using the current filters.\n     * @param {Object} filters - campaign-details search filters model\n     * @return {Generator}\n     */\n    *fetchProductsTask(filters) {\n      yield this.pageBlocksProductsService.fetchProductsByTagTask.perform({\n        filters\n      });\n      this.reIndexProductsArray();\n      this.syncSelectedProductCount();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"pageBlocksService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"pageBlocksProductsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isRefreshing\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"hasContainerAdvanced\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"productRowEditTab\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isCompactHandPickRows\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isHandPickDisplay\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"selectedProductCount\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onAfterSearch\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterSearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addProduct\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"addProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetProductTagsAndProductKeys\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"resetProductTagsAndProductKeys\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleCompactHandPickRows\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCompactHandPickRows\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragOverHandPickRow\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"dragOverHandPickRow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderDetails\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"moveHandPickProduct\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"moveHandPickProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"moveHandPickProductUp\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"moveHandPickProductUp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"moveHandPickProductDown\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"moveHandPickProductDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"moveHandPickProductToIndex\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"moveHandPickProductToIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeHandPickProductFromBlock\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"removeHandPickProductFromBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reIndexProductsArray\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"reIndexProductsArray\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onProductRowEditClose\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"onProductRowEditClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearHandPickSwapHighlightsAfterDelayTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"clearHandPickSwapHighlightsAfterDelayTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchProductsByTagTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchProductsByTagTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchProductsByProductKeyTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchProductsByProductKeyTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchProductsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchProductsTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/products/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NPvAEHnZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"products_settings_group\\\",[23,6,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.style\\\",\\\"display style\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-products-display-styles\\\"]],[23,4,[]],\\\"_data.settings.displayStyle\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],\\\"grid\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayItemsPerRow\\\",\\\"display items per row\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[28,\\\"or\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],\\\"slider\\\"],null]],null],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-products-grid-row-items\\\"]],[23,4,[]],false,\\\"_data.settings.gridRowItems\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.productsPerPage\\\",\\\"products per page\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-products-product-per-page\\\"]],[23,4,[]],false,\\\"_data.settings.productsPerPage\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayBy\\\",\\\"display by\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",false,[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-products-display-by\\\"]],[23,4,[]],\\\"_data.settings.displayBy\\\",[28,\\\"fn\\\",[[23,0,[\\\"resetProductTagsAndProductKeys\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"displayBy\\\",\\\"tags\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.displayItemsPerRow\\\",\\\"\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@onClose\\\"],[\\\"product tags\\\",[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"displayBy\\\"]],[23,0,[\\\"constants\\\",\\\"productsDisplayBy\\\",\\\"products\\\"]]],null],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchProductsByTagTask\\\"]],[23,0,[\\\"filters\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@adapterName\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[false,\\\"products/lists/tags\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,4,[]],true,\\\"_data._key\\\",false,\\\"_data.settings.productTags\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"productTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"productTags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,7,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"products_settings_group\\\",[23,6,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isHandPickDisplay\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-margin-bottom-10\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@isOn\\\",\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[23,3,[]],[23,0,[\\\"compactHandPickRowsIcon\\\"]],[23,0,[\\\"isCompactHandPickRows\\\"]],[23,0,[\\\"toggleCompactHandPickRows\\\"]],[23,0,[\\\"compactHandPickRowsTooltipLabel\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@badge\\\",\\\"@closeOnOverlayClick\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onClose\\\"],[[23,0,[\\\"selectedProductCount\\\"]],false,[23,3,[]],\\\"fas fa-plus\\\",\\\"add or edit\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,4,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"channels/shop/items/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@onAfterSearch\\\",\\\"@shopKey\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[\\\"channels/shop/campaigns/details\\\",[23,0,[\\\"onAfterSearch\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"master\\\"]],[23,5,[]],[28,\\\"hash\\\",null,[[\\\"tab\\\",\\\"isGuest\\\",\\\"onSelect\\\",\\\"disableUnselectedToggle\\\"],[[23,5,[]],true,[23,0,[\\\"addProduct\\\"]],[23,0,[\\\"isAtHandPickSelectCap\\\"]]]]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,0,[\\\"fetchProductsByProductKeyTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"fetchProductsByProductKeyTask\\\"]],[23,0,[\\\"filters\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isAtHandPickSelectCap\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\",\\\"@translate\\\"],[[23,0,[\\\"handPickSelectCapWarning\\\"]],false]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"fetchProductsByTagTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchProductsByProductKeyTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchProductsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[23,0,[\\\"productsContentsReorderClassNames\\\"]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@tableClassNames\\\",\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@hasFilters\\\",\\\"@isSelectedByProductTags\\\",\\\"@lists\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@tableViewOptions\\\"],[\\\"new-table-view\\\",\\\"channels/shop/campaigns/items/table-view/detail-row\\\",[23,0,[\\\"filters\\\"]],false,[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"settings\\\",\\\"productTags\\\",\\\"length\\\"]],true,false],null],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,5,[]],true,[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"onMainActionIcon\\\",\\\"onMainActionLabel\\\",\\\"tab\\\",\\\"isGuest\\\",\\\"allowEdit\\\",\\\"allowProductRowEdit\\\",\\\"allowHandPickRowMove\\\",\\\"allowRemoveFromBlock\\\",\\\"isCompactHandPickRows\\\",\\\"productRowEditTab\\\",\\\"onProductRowEditClose\\\",\\\"onMoveHandPickProductUp\\\",\\\"onMoveHandPickProductDown\\\",\\\"onMoveHandPickProductToIndex\\\",\\\"onRemoveHandPickProductFromBlock\\\",\\\"dragDetail\\\",\\\"onDragStart\\\",\\\"onDragEnd\\\",\\\"onDragOver\\\",\\\"onDrop\\\",\\\"fromGrapesJs\\\"],[\\\"channels/shop/campaigns/details\\\",\\\"fas fa-check-circle\\\",\\\"\\\",[23,5,[]],true,true,[28,\\\"and\\\",[[23,0,[\\\"isHandPickDisplay\\\"]],[28,\\\"not\\\",[[23,3,[]]],null]],null],[28,\\\"and\\\",[[23,0,[\\\"isHandPickDisplay\\\"]],[28,\\\"not\\\",[[23,3,[]]],null]],null],[28,\\\"and\\\",[[23,0,[\\\"isHandPickDisplay\\\"]],[28,\\\"not\\\",[[23,3,[]]],null]],null],[28,\\\"and\\\",[[23,0,[\\\"isHandPickDisplay\\\"]],[23,0,[\\\"isCompactHandPickRows\\\"]]],null],[23,0,[\\\"productRowEditTab\\\"]],[23,0,[\\\"onProductRowEditClose\\\"]],[23,0,[\\\"moveHandPickProductUp\\\"]],[23,0,[\\\"moveHandPickProductDown\\\"]],[23,0,[\\\"moveHandPickProductToIndex\\\"]],[23,0,[\\\"removeHandPickProductFromBlock\\\"]],[23,0,[\\\"dragDetail\\\"]],[28,\\\"if\\\",[[23,0,[\\\"isHandPickDisplay\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]]],null]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"if\\\",[[23,0,[\\\"isHandPickDisplay\\\"]],[23,0,[\\\"dragOverHandPickRow\\\"]]],null],[28,\\\"if\\\",[[23,0,[\\\"isHandPickDisplay\\\"]],[23,0,[\\\"reorderDetails\\\"]]],null],true]]]]]],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isHandPickDisplay\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"u-margin-top-10\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"tagName\\\",\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[\\\"span\\\",true,[23,0,[\\\"filters\\\"]],[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,7,[]],[23,4,[]],[23,3,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerSchedules\\\",\\\"hasContainerQuickLinks\\\"],[true,true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/products/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/social-links/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 SimpleEditorPageBlockEditorSocialLinksComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class SimpleEditorPageBlockEditorSocialLinksComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"refreshing\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasContainerAdvanced\", _descriptor4, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/social-links-types']);\n    }\n    addSocialLinkContent(contentModel) {\n      const socialLinksType = contentModel._data.value;\n      const alreadyAdded = R.pipe(R.pathOr([], ['args', 'pageBlock', '_data', 'contents']), R.find(R.pathEq(['_data', 'socialLinksType'], socialLinksType)), RA.isNotNilOrEmpty)(this);\n      if (alreadyAdded) {\n        return;\n      }\n      this.args.pageBlock.addContent({\n        socialLinksType\n      });\n    }\n    removeSocialLinkContentFromListSelector(contentModel) {\n      const socialLinksType = contentModel._data.value;\n      const updatedContents = R.pipe(R.pathOr([], ['args', 'pageBlock', '_data', 'contents']), R.reject(R.pathEq(['_data', 'socialLinksType'], socialLinksType)))(this);\n      this.args.pageBlock.setData('contents', updatedContents);\n    }\n    removeSocialLinkContentFromContentModel(contentModel) {\n      const socialLinksType = contentModel._data.socialLinksType;\n      const socialLinksTypes = R.pipe(R.pathOr([], ['args', 'pageBlock', '_data', 'settings', 'socialLinksTypes']), R.reject(R.equals(socialLinksType)))(this);\n      this.args.pageBlock.setData('settings.socialLinksTypes', socialLinksTypes);\n      this.refreshing = true;\n      setTimeout(() => {\n        this.refreshing = false;\n      }, 50);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"refreshing\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasContainerAdvanced\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addSocialLinkContent\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"addSocialLinkContent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSocialLinkContentFromListSelector\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSocialLinkContentFromListSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSocialLinkContentFromContentModel\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSocialLinkContentFromContentModel\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/social-links/social-link/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SimpleEditorPageBlockEditorSocialLinksSocialLinkComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember.inject.service('constants'), _class = class SimpleEditorPageBlockEditorSocialLinksSocialLinkComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor3, this);\n    }\n    get classNames() {\n      const socialLinksType = this.args.model?._data?.socialLinksType;\n      return `simple-editor__social-links-icon-xxl simple-editor__social-links-icon-${socialLinksType}`;\n    }\n    get icon() {\n      const socialLinksType = this.args.model?._data?.socialLinksType;\n      const icons = {\n        [this.constantsService.socialLinksTypes.instagram]: 'fab fa-instagram-square',\n        [this.constantsService.socialLinksTypes.facebook]: 'fab fa-facebook-square',\n        [this.constantsService.socialLinksTypes.line]: 'fab fa-line',\n        [this.constantsService.socialLinksTypes.thread]: 'fa-brands fa-square-threads',\n        [this.constantsService.socialLinksTypes.x]: 'fa-brands fa-square-x-twitter'\n      };\n      return icons[socialLinksType] || 'fas fa-hashtag';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/social-links/social-link/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1vz7kXn+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@onDelete\\\",\\\"@index\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[[12,\\\"data-content-id\\\",[23,2,[\\\"_data\\\",\\\"contentId\\\"]]],[12,\\\"data-content-id-action\\\",\\\"scroll-to\\\"]],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"social-links_contents_sub-group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@formInitData\\\"],[\\\"contents.url\\\",[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"url\\\"],null],\\\": \\\",[28,\\\"tt\\\",[[23,2,[\\\"_data\\\",\\\"socialLinksType\\\"]]],null]],null],false,[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@leftIcon\\\",\\\"@leftIconClassNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@translatedPlaceholder\\\"],[[23,0,[\\\"icon\\\"]],[23,0,[\\\"classNames\\\"]],[23,3,[]],[23,2,[\\\"_data\\\",\\\"url\\\"]],[23,2,[]],\\\"https://...\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\",\\\"length\\\"]],1],null]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayRemove\\\"]],[23,4,[]],\\\"_data.contents\\\",[23,2,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,3,[]],[28,\\\"isLast\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]],[23,6,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,4,[]],\\\"_data.contents\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,6,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,4,[]],\\\"_data.contents\\\",\\\"_data.index\\\",[23,2,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/social-links/social-link/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/social-links/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"VIgADSM6\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@formGroupClassNames\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"social-links_settings_group\\\",[23,6,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"settings.socialLinks\\\",[23,6,[]],\\\"social links\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"refreshing\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@multiSelect\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@onDeselect\\\",\\\"@onSelect\\\"],[false,\\\"list-selector--vertical\\\",true,false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-social-links-types\\\"]],[23,4,[]],\\\"_data.settings.socialLinksTypes\\\",[23,0,[\\\"removeSocialLinkContentFromListSelector\\\"]],[23,0,[\\\"addSocialLinkContent\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"simple-editor/page-block-editor/base/container-align\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,4,[]],[23,5,[]],[23,6,[]],\\\"settings.containerAlign\\\",\\\"_data.settings.containerAlign\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"social-links_contents_group\\\",[23,6,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"simple-editor/page-block-editor/social-links/social-link\\\",[],[[\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@index\\\",\\\"@model\\\",\\\"@onDelete\\\"],[[23,5,[]],[23,4,[]],[23,2,[]],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"removeSocialLinkContentFromContentModel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContainerAdvanced\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerSchedules\\\",\\\"hasContainerQuickLinks\\\"],[true,true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/social-links/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/tabs/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockEditorTabsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _class = class SimpleEditorPageBlockEditorTabsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor6, this);\n    }\n    reorderTabs(contents, targetContent) {\n      const dragItem = this.dragDetail;\n      const onOverItemIndex = targetContent.get('_data.index');\n      this.dragDropSort.reorderItemsByIndex(contents, dragItem, onOverItemIndex);\n    }\n    onAfterAddTab(pageBlock) {\n      this.applicationService.modelSetIsForceReloading(pageBlock);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"reorderTabs\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderTabs\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAfterAddTab\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterAddTab\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/tabs/contents/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockEditorTabsContentsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.computed('args.{index,content._data.name}'), _class = class SimpleEditorPageBlockEditorTabsContentsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n    }\n    get contentTitle() {\n      const index = this.args.index || 0;\n      const name = this.args.content?._data?.name || '';\n      return name || `${this.intl.t('tab')} ${index + 1}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"contentTitle\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"contentTitle\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, RA, R) {\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, _dec0, _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 SimpleEditorPageBlockEditorTabsContentsTabsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class SimpleEditorPageBlockEditorTabsContentsTabsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor7, this);\n    }\n    onAfterAddBlock() {\n      this.applicationService.modelSetIsForceReloading(this.args.pageBlock);\n    }\n    importPageBlock(onCloseDialogAction, website, pageBlockJsonData) {\n      if (!pageBlockJsonData) {\n        return;\n      }\n      const content = this.args.content;\n      const pageBlockData = JSON.parse(pageBlockJsonData);\n      if (RA.isArray(pageBlockData)) {\n        R.forEach(block => {\n          if (block) {\n            content.addPageBlock(website, block);\n          }\n        })(pageBlockData);\n      } else {\n        content.addPageBlock(website, pageBlockData);\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      this.applicationService.modelSetIsForceReloading(this.args.pageBlock);\n    }\n    reorderContents(contents, content) {\n      const dragItem = this.dragDetail;\n      const onOverItemIndex = content.get('_data.index');\n      this.dragDropSort.reorderItemsByIndex(contents, dragItem, onOverItemIndex);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onAfterAddBlock\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"onAfterAddBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"importPageBlock\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"importPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderContents\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderContents\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/contents/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 SimpleEditorPageBlockEditorFeaturesContentsComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.computed('args.content._data.type'), _class = class SimpleEditorPageBlockEditorFeaturesContentsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n    }\n    get contentTitle() {\n      const type = this.args.content._data?.type || '';\n      return this.intl.t(`pageBlocks_${type}`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"contentTitle\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"contentTitle\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/contents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ba6IEata\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@showFocusColumn\\\",\\\"@content\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@onSelectSubTab\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-editor/base/content-btn\\\",[],[[\\\"@index\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@showFocusColumn\\\",\\\"@onClickContentAction\\\",\\\"@imageUuid\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@content\\\",\\\"@onSelectSubTab\\\"],[[23,1,[]],[23,0,[\\\"contentTitle\\\"]],false,[23,2,[]],\\\"focus-column\\\",[23,3,[\\\"_data\\\",\\\"image\\\",\\\"desktop\\\",\\\"uuid\\\"]],[23,4,[]],[23,5,[]],[23,3,[]],[28,\\\"fn\\\",[[23,6,[]],[23,3,[\\\"_data\\\",\\\"blockId\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/contents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YFjgHT9z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@content\\\",\\\"@formGroupClassNames\\\",\\\"@showFocusColumn\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,4,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"tabs_content_group\\\",[23,7,[]],\\\"tab\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.name\\\",[23,7,[]],\\\"tab name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,8,[]],[23,3,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,4,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"tabs_content_blocks_group\\\",[23,7,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@droppable\\\",\\\"@model\\\",\\\"@modelIdPath\\\",\\\"@classNames\\\",\\\"@dropContainerPlaceholderClass\\\",\\\"@hasDropContainerPlaceholders\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[true,[23,1,[]],\\\"_data._id\\\",\\\"drop-container--easy-drop\\\",\\\"u-full-width\\\",true,[23,0,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"reorderContents\\\"]],[23,3,[\\\"_data\\\",\\\"contents\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,0,[]],[23,1,[]],[23,0,[\\\"dragDetail\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@gripClassNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\"],[true,\\\"has-grip\\\",\\\"wide-grip-icon-container\\\",[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,1,[\\\"_data\\\",\\\"index\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"simple-editor/page-block-editor/tabs/contents/tabs/contents\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@showFocusColumn\\\",\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\"],[[23,4,[]],[23,5,[]],[23,2,[]],[23,1,[]],[23,3,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/page-block-add-wrapper\\\",[],[[\\\"@hideTabsOnAddWrapper\\\",\\\"@isAddBlock\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@page\\\",\\\"@onEdit\\\"],[true,true,[23,11,[]],[23,6,[]],[23,8,[]],[23,3,[]],[23,0,[\\\"onAfterAddBlock\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"simple-editor/page-block-import-btn\\\",[],[[\\\"@isReadonly\\\",\\\"@website\\\",\\\"@onImport\\\"],[[23,8,[]],[23,6,[]],[23,0,[\\\"importPageBlock\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,4,[]],[23,3,[]],[23,8,[]],[23,7,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerSchedules\\\",\\\"hasContainerSchedulesPath\\\",\\\"schedulesPath\\\"],[true,\\\"_data.hasContainerSchedules\\\",\\\"_data.schedules\\\"]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/tabs/contents/tabs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/tabs/contents/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eMoScLN5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@index\\\",\\\"@showFocusColumn\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@content\\\",\\\"@onSelectSubTab\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-editor/base/content-btn\\\",[],[[\\\"@index\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@showFocusColumn\\\",\\\"@onClickContentAction\\\",\\\"@isReadonly\\\",\\\"@pageBlock\\\",\\\"@content\\\",\\\"@onSelectSubTab\\\"],[[23,1,[]],[23,0,[\\\"contentTitle\\\"]],false,[23,2,[]],\\\"focus-column\\\",[23,3,[]],[23,4,[]],[23,5,[]],[28,\\\"fn\\\",[[23,6,[]],[23,5,[\\\"_data\\\",\\\"contentId\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/tabs/contents/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/tabs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1r6Pw++Q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@pageBlock\\\",\\\"@formGroupClassNames\\\",\\\"@showFocusColumn\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\",\\\"@page\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,4,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"tabs_contents_group\\\",[23,7,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@droppable\\\",\\\"@model\\\",\\\"@modelIdPath\\\",\\\"@classNames\\\",\\\"@dropContainerPlaceholderClass\\\",\\\"@hasDropContainerPlaceholders\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[true,[23,1,[]],\\\"_data._id\\\",\\\"drop-container--easy-drop\\\",\\\"u-full-width\\\",true,[23,0,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"reorderTabs\\\"]],[23,3,[\\\"_data\\\",\\\"contents\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,0,[]],[23,1,[]],[23,0,[\\\"dragDetail\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@gripClassNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\"],[true,\\\"has-grip\\\",\\\"wide-grip-icon-container\\\",[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,1,[\\\"_data\\\",\\\"index\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"simple-editor/page-block-editor/tabs/contents\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@showFocusColumn\\\",\\\"@index\\\",\\\"@content\\\",\\\"@pageBlock\\\",\\\"@website\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\",\\\"@tab\\\",\\\"@onSelectSubTab\\\"],[[23,4,[]],[23,5,[]],[23,2,[]],[23,1,[]],[23,3,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"simple-editor/page-block-add-wrapper\\\",[],[[\\\"@isAddBlock\\\",\\\"@filterByType\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@page\\\",\\\"@pageBlock\\\",\\\"@onAddPageBlockContent\\\"],[true,[23,3,[\\\"_data\\\",\\\"type\\\"]],[23,11,[]],[23,6,[]],[23,8,[]],[23,13,[]],[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,3,[\\\"newContent\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onAfterAddTab\\\"]],[23,3,[]]],null]]]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,4,[]],[23,3,[]],[23,8,[]],[23,7,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerSchedules\\\",\\\"hasContainerAnimation\\\",\\\"hasContainerQuickLinks\\\"],[false,false,true,false,true,false]]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/tabs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lY4q1BAM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\",\\\"@onSelectTabId\\\",\\\"@selectedTabId\\\",\\\"@previewDevice\\\",\\\"@isReadonly\\\",\\\"@website\\\",\\\"@pageBlocks\\\",\\\"@dirty\\\",\\\"@pageBlock\\\",\\\"@page\\\",\\\"@errors\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@options\\\",\\\"@onSetPreviewDevice\\\",\\\"@saveTask\\\",\\\"@onCloseDialogAction\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[[12,\\\"class\\\",\\\"simple-editor__block-editor-tabs-grid\\\"]],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"applicationService\\\",\\\"isMobile\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fa-solid fa-bars\\\",[28,\\\"if\\\",[[23,0,[\\\"hasNavMenu\\\"]],false,true],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowSidebar\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@isPanel\\\",\\\"@isSticky\\\",\\\"@isDisplayNone\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\",\\\"@modelContainerClassNames\\\",\\\"@overlayClassNames\\\"],[true,true,false,[23,0,[\\\"hasNavMenu\\\"]],[23,0,[\\\"showSidebar\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowSidebar\\\"]]],null],[28,\\\"if\\\",[[23,0,[\\\"hasNavMenu\\\"]],\\\"\\\",\\\"layouts__sidebar--hidden\\\"],null],[28,\\\"if\\\",[[23,0,[\\\"hasNavMenu\\\"]],\\\"\\\",\\\"layouts__sidebar--hidden\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,0,[\\\"hasNavMenu\\\"]],\\\"\\\",\\\"u-display-none\\\"],null]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertNavMenu\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/tab-menu\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\",\\\"@isTreeView\\\",\\\"@yieldBottom\\\",\\\"@itemClassNames\\\"],[[23,6,[]],[23,6,[\\\"subTabs\\\"]],[23,16,[]],[23,0,[\\\"panels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectNavTree\\\"]],[23,13,[]],[23,6,[]]],null],true,true,\\\"no-border-bottom\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constantsService\\\",\\\"pageBlockTypes\\\",\\\"tabs\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"u-full-width\\\",\\\"fas fa-plus\\\",false,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,13,[\\\"_data\\\",\\\"type\\\"]]],null]],null],[28,\\\"or\\\",[[23,10,[]],[23,13,[\\\"isContentLimited\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,13,[\\\"newContent\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onAfterAddNewContent\\\"]],[23,13,[]],[23,6,[]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constantsService\\\",\\\"pageBlockTypes\\\",\\\"features\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"simple-editor/page-block-add-wrapper\\\",[],[[\\\"@filterByType\\\",\\\"@isAddContent\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@page\\\",\\\"@pageBlock\\\",\\\"@onAddPageBlockContent\\\"],[[23,14,[\\\"_data\\\",\\\"type\\\"]],true,[23,6,[]],[23,11,[]],[23,10,[]],[23,15,[]],[23,13,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,13,[\\\"newContent\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onAfterAddNewContent\\\"]],[23,13,[]],[23,6,[]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constantsService\\\",\\\"pageBlockTypes\\\",\\\"buttons\\\"]]],null],[28,\\\"eq\\\",[[23,13,[\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constantsService\\\",\\\"pageBlockTypes\\\",\\\"images\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"u-full-width\\\",\\\"fas fa-plus\\\",false,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,13,[\\\"_data\\\",\\\"type\\\"]]],null]],null],[28,\\\"or\\\",[[23,10,[]],[23,13,[\\\"isContentLimited\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,13,[\\\"newContent\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"onAfterAddNewContent\\\"]],[23,13,[]],[23,6,[]]],null]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__block-editor-container flex-container-row flex-container--nowrap\\\"],[12,\\\"data-form-id\\\",[23,13,[\\\"instanceId\\\"]]],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsert\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/page-block-editor/base/focus-column\\\",[[12,\\\"class\\\",\\\"simple-editor__block-editor-column simple-editor__block-editor-column--editor\\\"]],[[\\\"@columnSelector\\\",\\\"@focusedColumnSelector\\\"],[\\\".simple-editor__block-editor-focus-column--default\\\",[23,0,[\\\"focusedColumnSelector\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"class\\\",\\\"simple-editor__block-editor-form-container flex-container-row flex-container--nowrap\\\"]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@colCount\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"simple-editor__block-editor\\\",true,2,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"simpleEditor-blocks\\\",[23,19,[]],[23,6,[]],[23,18,[]],[23,17,[]]]]],[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,6,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"component\\\",[[23,2,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"outerPageBlock\\\",\\\"pageBlock\\\",\\\"pageBlocks\\\",\\\"website\\\",\\\"formInitData\\\",\\\"isReadonly\\\",\\\"previewDevice\\\",\\\"onSetPreviewDevice\\\",\\\"parentTab\\\",\\\"options\\\",\\\"content\\\",\\\"index\\\",\\\"onSelectSubTab\\\"],[[23,2,[]],[23,13,[]],[28,\\\"if\\\",[[23,2,[\\\"isNested\\\"]],[23,2,[\\\"content\\\"]],[23,13,[]]],null],[28,\\\"if\\\",[[23,2,[\\\"isNested\\\"]],[23,14,[\\\"_data\\\",\\\"contents\\\"]],[23,12,[]]],null],[23,11,[]],[23,1,[]],[23,10,[]],[23,9,[]],[23,21,[]],[23,6,[]],[23,20,[]],[23,2,[\\\"content\\\"]],[23,2,[\\\"content\\\",\\\"_data\\\",\\\"index\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectSubTab\\\"]],[28,\\\"if\\\",[[23,2,[\\\"isNested\\\"]],[23,2,[\\\"content\\\"]],[23,13,[]]],null]],null]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,22,[\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"cancelEditing\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"dirty\\\",\\\"onAfter\\\"],[\\\"simple-editor/page-blocks\\\",[23,13,[]],[23,23,[]]]]]],null]]]],[0,\\\"\\\\n                  \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltip\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"confirm\\\",\\\"\\\",[23,22,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"validateTask\\\"]]],null]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-editor-column simple-editor__block-editor-column--preview\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"\\\\n        simple-editor__block-container\\\\n        simple-editor__block-container--is-display-block\\\\n        u-tappable\\\\n        \\\",[28,\\\"if\\\",[[23,9,[]],\\\"simple-editor__block-container--preview\\\",\\\"\\\"],null],\\\"\\\\n          \\\",[28,\\\"if\\\",[[23,9,[]],[23,9,[]],\\\"\\\"],null],\\\"\\\\n      \\\"]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-content-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-content\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,13,[\\\"isForceReloading\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,14,[\\\"hasPreviewComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"component\\\",[[23,14,[\\\"componentForPreview\\\"]]],[[\\\"pageBlock\\\",\\\"pageBlocks\\\",\\\"website\\\",\\\"isReadonly\\\",\\\"previewDevice\\\",\\\"onClickContent\\\",\\\"tab\\\"],[[23,13,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,9,[]],[28,\\\"fn\\\",[[23,0,[\\\"onClickContent\\\"]]],null],[23,6,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"component\\\",[[23,14,[\\\"componentForDisplay\\\"]]],[[\\\"pageBlock\\\",\\\"pageBlocks\\\",\\\"website\\\",\\\"isReadonly\\\",\\\"previewDevice\\\",\\\"onClickContent\\\",\\\"selectedTabId\\\",\\\"onSelectTabId\\\",\\\"tab\\\"],[[23,13,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,9,[]],[28,\\\"fn\\\",[[23,0,[\\\"selectSubTab\\\"]]],null],[23,8,[]],[23,7,[]],[23,6,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n                \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"simple-editor/page-block-editor/base/preview-btns\\\",[],[[\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\"],[[23,9,[]],[23,21,[]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/texts/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SimpleEditorBlockTextComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _class = class SimpleEditorBlockTextComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasContainerAdvanced\", _descriptor3, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/text-display-styles', 'simple-editor/lists/styling/font-family']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasContainerAdvanced\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/texts/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eyAfShv/\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"@formGroupClassNames\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,2,[]]],[12,\\\"data-content-id\\\",[23,1,[\\\"_data\\\",\\\"contentId\\\"]]],[12,\\\"data-content-id-action\\\",\\\"scroll-to\\\"]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"text_contents_group\\\",[23,5,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.title\\\",[23,5,[]],\\\"title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"optional\\\",[23,4,[]],[23,1,[\\\"_data\\\",\\\"title\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"contents.template\\\",[23,5,[]],\\\"template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@hasSidebarEdit\\\",\\\"@options\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[true,false,[28,\\\"hash\\\",null,[[\\\"height\\\",\\\"hasFontSize\\\",\\\"hasTextAlign\\\",\\\"defaultTextAlign\\\",\\\"autofocus\\\"],[300,false,false,\\\"\\\",false]]],[23,4,[]],[23,1,[\\\"_data\\\",\\\"template\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,2,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"text_settings_group\\\",[23,5,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],[23,0,[\\\"constants\\\",\\\"textDisplayStyles\\\",\\\"basic\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"title font\\\",\\\"settings.fontFamilyTitle\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,4,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-font-family\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"fontFamilyTitle\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/font-align\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],\\\"settings.fontAlign\\\",\\\"_data.settings.fontAlign\\\"]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/font-size\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],\\\"settings.fontSize\\\",\\\"_data.settings.fontSize\\\"]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/font-color\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@value\\\",\\\"@colorKey\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],\\\"settings.fontColor\\\",[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"fontColor\\\"]],\\\"_data.settings.fontColor\\\"]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/title-styles\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@context\\\",\\\"@valueKey\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],\\\"settings.titleStyles\\\",\\\"_data.settings.titleStyles\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"displayStyle\\\"]],[23,0,[\\\"constants\\\",\\\"textDisplayStyles\\\",\\\"basic\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,2,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"links_group\\\",[23,5,[]],\\\"link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@hasLinkToggle\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@website\\\",\\\"@contextPrefix\\\"],[true,[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"link\\\"]],[23,4,[]],[23,5,[]],[23,6,[]],\\\"contents.\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContainerAdvanced\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerAnimation\\\",\\\"hasContainerSchedules\\\",\\\"hasContainerQuickLinks\\\"],[true,true,true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/texts/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-editor/videos/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 SimpleEditorBlockVideosComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _class = class SimpleEditorBlockVideosComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasContainerAdvanced\", _descriptor4, this);\n      this.crud.addLists(this, ['simple-editor/lists/styling/video-display-styles', 'videoSources']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasContainerAdvanced\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.options?.hasContainerAdvanced ?? true;\n    }\n  }), _class);\n});","define(\"client/pods/components/simple-editor/page-block-editor/videos/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"s653E+Qv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"@formGroupClassNames\\\",\\\"@pageBlock\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"videos_settings_group\\\",[23,6,[]],\\\"style settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"settings.source\\\",\\\"video_source\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@sortSelectedToTop\\\",\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[false,\\\"list-selector--vertical\\\",false,[23,5,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"videoSources\\\"]],[23,4,[]],\\\"_data.settings.source\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,\\\"videos_contents_group\\\",[23,6,[]],\\\"pageBlocks_group_contents\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\"],[\\\"videos_contents_sub-group\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"contents.url\\\",\\\"url\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\",\\\"@model\\\",\\\"@translatedPlaceholder\\\"],[[23,5,[]],[23,1,[\\\"_data\\\",\\\"url\\\"]],[23,1,[]],\\\"https://...\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"contents.autoplay\\\",\\\"autoplay\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,1,[\\\"_data\\\",\\\"autoplay\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@formInitData\\\"],[\\\"contents.loop\\\",\\\"rewind\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,5,[]],[23,1,[\\\"_data\\\",\\\"loop\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--sticky-right\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",[23,5,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayRemove\\\"]],[23,4,[]],\\\"_data.contents\\\",[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,5,[]],[28,\\\"isLast\\\",[[23,4,[\\\"_data\\\",\\\"contents\\\"]],[23,2,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,4,[]],\\\"_data.contents\\\",\\\"_data.index\\\",[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,5,[]],[28,\\\"eq\\\",[[23,2,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,4,[]],\\\"_data.contents\\\",\\\"_data.index\\\",[23,1,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",false,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,4,[\\\"_data\\\",\\\"type\\\"]]],null]],null],[28,\\\"or\\\",[[23,5,[]],[23,4,[\\\"isContentLimited\\\"]]],null],[28,\\\"fn\\\",[[23,4,[\\\"newContent\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasContainerAdvanced\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor/page-block-editor/base/container-advanced\\\",[],[[\\\"@formGroupClassNames\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\",\\\"@options\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[28,\\\"hash\\\",null,[[\\\"hasContainerBackground\\\",\\\"hasContainerBorder\\\",\\\"hasContainerSettings\\\",\\\"hasContainerSchedules\\\",\\\"hasContainerQuickLinks\\\"],[true,true,true,true,true]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-editor/videos/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-import-btn/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, RA, R) {\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;\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 SimpleEditorPageBlockImportBtnComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _class = class SimpleEditorPageBlockImportBtnComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasImportError\", _descriptor, this);\n      _initializerDefineProperty(this, \"pageBlockJsonData\", _descriptor2, this);\n    }\n    validateJSON() {\n      const pageBlockJsonData = this.pageBlockJsonData;\n      if (!pageBlockJsonData) {\n        Ember.set(this, 'hasImportError', false);\n        return;\n      }\n      try {\n        JSON.parse(this.pageBlockJsonData);\n        Ember.set(this, 'hasImportError', false);\n      } catch (e) {\n        Ember.set(this, 'hasImportError', true);\n      }\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasImportError\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"pageBlockJsonData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"validateJSON\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"validateJSON\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-import-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"omd4QCfw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@index\\\",\\\"@website\\\",\\\"@onImport\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@hasSectionWrapper\\\",\\\"@closeOnOverlayClick\\\"],[\\\"paste block\\\",\\\"fas fa-plus\\\",[23,2,[]],true,true]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__blocks-container\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@isBasic\\\",\\\"@context\\\"],[true,\\\"importBlocks_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\"],[\\\"json\\\",\\\"json\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@classNames\\\",\\\"@value\\\",\\\"@rows\\\",\\\"@onInput\\\"],[\\\"u-full-width\\\",[23,0,[\\\"pageBlockJsonData\\\"]],5,[28,\\\"fn\\\",[[23,0,[\\\"validateJSON\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasImportError\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"error-wrapper\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"error-message has-text-small has-text-danger\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"invalid json\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"submit\\\",[23,0,[\\\"hasImportError\\\"]],[28,\\\"fn\\\",[[23,5,[]],[23,1,[]],[23,4,[]],[23,0,[\\\"pageBlockJsonData\\\"]],[23,3,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-import-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-import/button/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 SimpleEditorPageBlockImportButtonComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember.computed('activeSubTab._data.value', 'publicFilters.publicResults', 'privateShopFilters.privateShopResults', 'privateFilters.privateResults'), _dec12 = Ember.computed('activeSubTab._data.value'), _dec13 = Ember.computed('publicFilters.fullCount', 'privateFilters.fullCount', 'privateShopFilters.fullCount'), _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _class = class SimpleEditorPageBlockImportButtonComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor5, this);\n      _initializerDefineProperty(this, \"activeSubTab\", _descriptor6, this);\n      _initializerDefineProperty(this, \"publicResults\", _descriptor7, this);\n      _initializerDefineProperty(this, \"privateResults\", _descriptor8, this);\n      _initializerDefineProperty(this, \"privateShopResults\", _descriptor9, this);\n      _initializerDefineProperty(this, \"publicFilters\", _descriptor0, this);\n      _initializerDefineProperty(this, \"privateFilters\", _descriptor1, this);\n      _initializerDefineProperty(this, \"privateShopFilters\", _descriptor10, this);\n      this.crud.addLists(this, ['simple-editor/lists/templates']);\n      if (this.args?.tab?.resetTabs) {\n        this.args.tab.resetTabs();\n      }\n      this.publicFilters = this.search.setupFilters({\n        adapterName: 'websites/filters',\n        defaultFiltersData: {\n          resultsProperty: 'publicResults',\n          match: ['name'],\n          hasTemplate: true,\n          templateType: this.constants.templateTypes.blocks,\n          scope: 'public'\n        }\n      });\n      this.privateFilters = this.search.setupFilters({\n        adapterName: 'websites/filters',\n        defaultFiltersData: {\n          resultsProperty: 'privateResults',\n          match: ['name'],\n          hasTemplate: true,\n          templateType: this.constants.templateTypes.blocks,\n          scope: 'private'\n        }\n      });\n      this.privateShopFilters = this.search.setupFilters({\n        adapterName: 'websites/filters',\n        defaultFiltersData: {\n          resultsProperty: 'privateShopResults',\n          match: ['name'],\n          hasTemplate: true,\n          templateType: this.constants.templateTypes.blocks,\n          scope: 'privateShop'\n        }\n      });\n    }\n    get results() {\n      const activeSubTab = this.subPanels.find(tab => tab?._data?.value === this?.activeSubTab?._data?.value);\n      if (activeSubTab?._data?.value === 'publicTemplates') {\n        return this.publicFilters.publicResults;\n      }\n      if (activeSubTab?._data?.value === 'privateShopTemplate') {\n        return this.privateShopFilters.privateShopResults;\n      }\n      return this.privateFilters.privateResults;\n    }\n    get filter() {\n      const activeSubTab = this.subPanels.find(tab => tab?._data?.value === this?.activeSubTab?._data?.value);\n      if (activeSubTab?._data?.value === 'publicTemplates') {\n        return this.publicFilters;\n      }\n      if (activeSubTab?._data?.value === 'privateShopTemplate') {\n        return this.privateShopFilters;\n      }\n      return this.privateFilters;\n    }\n    get subPanels() {\n      const subPanels = this.crud.lists['simple-editor-lists-templates'] || [];\n      const publicFullCount = this.publicFilters?.fullCount || 0;\n      const privateFullCount = this.privateFilters?.fullCount || 0;\n      const privateShopFullCount = this.privateShopFilters?.fullCount || 0;\n      if (!R.isEmpty(subPanels)) {\n        return R.map(panel => {\n          if (panel._data.value === 'privateTemplates') {\n            panel.setData('badge', privateFullCount);\n          }\n          if (panel._data.value === 'publicTemplates') {\n            panel.setData('badge', publicFullCount);\n          }\n          if (panel._data.value === 'privateShopTemplate') {\n            panel.setData('badge', privateShopFullCount);\n          }\n          return panel;\n        }, subPanels);\n      }\n      return subPanels;\n    }\n\n    // @action\n    // afterLoadLists () {\n    //   this.searchTask.perform()\n    // }\n\n    *searchTask(query) {\n      const q = [];\n      q.push(this.searchWebsiteTemplatesTask.perform({\n        query,\n        filters: this.publicFilters\n      }));\n      q.push(this.searchWebsiteTemplatesTask.perform({\n        query,\n        filters: this.privateFilters\n      }));\n      q.push(this.searchWebsiteTemplatesTask.perform({\n        query,\n        filters: this.privateShopFilters\n      }));\n      yield (0, _emberConcurrency.all)(q);\n    }\n    *searchWebsiteTemplatesTask({\n      adapterName = 'websites/pages',\n      query,\n      filters\n    }) {\n      const resultsProperty = R.pathOr('', ['_data', 'resultsProperty'])(filters);\n      filters.setData('query', query);\n      this[resultsProperty] = yield this.crud.searchRecordsConcurrentlyTask.perform({\n        adapterName,\n        filters,\n        query\n      });\n      return this[resultsProperty];\n    }\n    insertTemplate(onCloseDialogAction, templatePage) {\n      const currentPage = this.args.page;\n      const website = this.args.website;\n      R.pipe(R.pathOr([], ['_data', 'pageBlocks']), R.forEach(pageBlock => {\n        // const lastIndex = this.args.page._data.pageBlocks.length\n        currentPage.addPageBlock(website, pageBlock);\n      }))(templatePage);\n      onCloseDialogAction();\n    }\n    replaceTemplate(onCloseDialogAction, templatePage) {\n      const currentPage = this.args.page;\n      // Remove current pageBlocks\n      currentPage.setData('pageBlocks', []);\n      const website = this.args.website;\n      R.pipe(R.pathOr([], ['_data', 'pageBlocks']), R.forEach(pageBlock => {\n        // const lastIndex = this.args.page._data.pageBlocks.length\n        currentPage.addPageBlock(website, pageBlock);\n      }))(templatePage);\n      onCloseDialogAction();\n    }\n    onSelectSubPanel(tab, panel) {\n      this.tabsManager.displaySubPanelNew(tab, panel);\n      this.activeSubTab = panel;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"activeSubTab\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"publicResults\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"privateResults\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"privateShopResults\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"publicFilters\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"privateFilters\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"privateShopFilters\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"results\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"results\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"filter\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"filter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"subPanels\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"subPanels\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchWebsiteTemplatesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchWebsiteTemplatesTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"insertTemplate\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"insertTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"replaceTemplate\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"replaceTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectSubPanel\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectSubPanel\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-import/button/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZUn0IWIX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[\\\"choose template\\\",\\\"fas fa-file-import\\\",[23,7,[]],false,[28,\\\"perform\\\",[[23,0,[\\\"searchTask\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/grid\\\",[[12,\\\"class\\\",\\\"simple-editor__block-editor-tabs-grid\\\"]],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,6,[]],[23,6,[\\\"subTabs\\\"]],[23,8,[]],[23,0,[\\\"subPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectSubPanel\\\"]],[23,6,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/grid/content\\\",[[12,\\\"class\\\",\\\"simple-editor__page-import-btn-content\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"searchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,6,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"component\\\",[[23,2,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"onReplaceTemplate\\\",\\\"onInsertTemplate\\\",\\\"results\\\"],[[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"replaceTemplate\\\"]],[23,1,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"insertTemplate\\\"]],[23,1,[]]],null],[23,0,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@onSubmit\\\"],[[23,1,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\",\\\"@tagName\\\"],[[23,0,[\\\"filter\\\"]],[23,0,[\\\"results\\\"]],[23,0,[\\\"searchWebsiteTemplatesTask\\\"]],true,\\\"span\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-import/button/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-import/templates/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockImportTemplatesComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockImportTemplatesComponent;\n});","define(\"client/pods/components/simple-editor/page-block-import/templates/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pE6WXvzw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"page\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\",\\\"@onReplaceTemplate\\\",\\\"@onInsertTemplate\\\",\\\"@results\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__page-block-import__template\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"simple-editor/page-block-import/templates/template\\\",[],[[\\\"@tab\\\",\\\"@page\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@previewDevice\\\"],[[23,2,[]],[23,1,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"replace\\\",[28,\\\"fn\\\",[[23,6,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"insert\\\",[28,\\\"fn\\\",[[23,7,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-import/templates/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-import/templates/template/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockImportTemplatesTemplateComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockImportTemplatesTemplateComponent;\n});","define(\"client/pods/components/simple-editor/page-block-import/templates/template/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"r2SMPBZE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"pageBlock\\\",\\\"@tab\\\",\\\"@previewDevice\\\",\\\"@isReadonly\\\",\\\"@website\\\",\\\"@page\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__page-block-import__page-blocks\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"pageBlocks\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"hasPreviewComponent\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"componentForPreview\\\"]]],[[\\\"pageBlock\\\",\\\"pageBlocks\\\",\\\"website\\\",\\\"isReadonly\\\",\\\"previewDevice\\\",\\\"tab\\\"],[[23,1,[]],[23,6,[\\\"_data\\\",\\\"pageBlocks\\\"]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"componentForDisplay\\\"]]],[[\\\"pageBlock\\\",\\\"pageBlocks\\\",\\\"website\\\",\\\"isReadonly\\\",\\\"previewDevice\\\",\\\"tab\\\"],[[23,1,[]],[23,6,[\\\"_data\\\",\\\"pageBlocks\\\"]],[23,5,[]],[23,4,[]],[23,3,[]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-import/templates/template/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/blogs/blog-preview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\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  let SimpleEditorPageBlockDisplayBlogsBlogPreviewComponent = _exports.default = (_dec = Ember.computed('args.pageBlock._data.settings.{imageRatio,imageFit}'), _dec2 = Ember.computed('args.pageBlock._data.settings.imageFit'), _class = class SimpleEditorPageBlockDisplayBlogsBlogPreviewComponent extends _component.default {\n    get transform() {\n      const basePath = ['/'];\n      const imageFit = this.args.pageBlock?._data?.settings?.imageFit;\n      if (imageFit === 'fit') {\n        basePath.push('/resize/200x/');\n      } else {\n        basePath.push('/scale_crop/200x200/smart/');\n        switch (this.args.pageBlock?._data?.settings?.imageRatio) {\n          case 'oneByOne':\n            basePath.push('/crop/1:1/');\n            break;\n          case 'fourByThree':\n            basePath.push('/crop/4:3/');\n            break;\n          case 'twoByThree':\n            basePath.push('/crop/2:3/');\n            break;\n          case 'threeByTwo':\n            basePath.push('/crop/3:2/');\n            break;\n          case 'threeByFour':\n            basePath.push('/crop/3:4/');\n            break;\n        }\n      }\n      basePath.push('/quality/best/');\n      return basePath.join('-');\n    }\n    get imgStyle() {\n      const imageFit = this.args.pageBlock?._data?.settings?.imageFit;\n      if (imageFit === 'fit') {\n        return 'object-fit: contain;';\n      }\n      return '';\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"transform\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"transform\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"imgStyle\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"imgStyle\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-preview/blogs/blog-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GG9TZSUB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@pageBlock\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__blogs-blog simple-editor__items-item\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"files/image-item\\\",[[12,\\\"style\\\",[23,0,[\\\"imgStyle\\\"]]]],[[\\\"@height\\\",\\\"@width\\\",\\\"@image\\\",\\\"@transform\\\",\\\"@imageClassNames\\\"],[\\\"auto\\\",80,[23,1,[\\\"_data\\\",\\\"defaultImage\\\"]],[23,0,[\\\"transform\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"imageRatio\\\"]]]]],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/blogs/blog-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/blogs/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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  let SimpleEditorPageBlockDisplayBlogsComponent = _exports.default = (_dec = Ember.inject.service('simple-editor.page-blocks.blogs'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember.computed('args.pageBlock._data.settings.{displayStyle,gridRowItems}'), _class = class SimpleEditorPageBlockDisplayBlogsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pageBlocksBlogsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n    }\n    get previewClassNames() {\n      const settings = this.args.pageBlock?._data?.settings || {};\n      const displayStyle = settings?.displayStyle || '';\n      const classNames = [`simple-editor__display-style_${displayStyle}`];\n      if (displayStyle === this.constants.imagesDisplayStyles.grid) {\n        classNames.push(`simple-editor__grid-row-items_${settings.gridRowItems}`);\n      }\n      return classNames.join(' ');\n    }\n    *setupPreviewTask(pageBlock) {\n      if (RA.isNilOrEmpty(this.args.previewDevice)) {\n        return;\n      }\n      const tags = pageBlock?._data?.settings?.tags || [];\n      const keys = pageBlock?._data?.settings?.keys || [];\n      const master = this.args.website?._data?._key || '';\n      const sortBy = pageBlock?._data?.settings?.sortBy || 'index';\n      const sortDirection = pageBlock?._data?.settings?.sortDirection || 'ASC';\n      const sort = {\n        by: sortBy,\n        direction: sortDirection\n      };\n      this.filters = this.search.setupFilters({\n        adapterName: 'blogs/filters',\n        defaultFiltersData: {\n          count: 20,\n          page: 1,\n          hasImages: true,\n          master,\n          tags,\n          keys,\n          sort: [sort]\n        }\n      });\n      return yield this.fetchTask.perform(this.filters);\n    }\n    *fetchTask(filters) {\n      yield this.pageBlocksBlogsService.fetchTask.perform(filters);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"pageBlocksBlogsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"previewClassNames\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"previewClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupPreviewTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPreviewTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-preview/blogs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D+lTkSyR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"blog\\\",\\\"@tab\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,3,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"simple-editor__custom-container-wrapper\\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@hasSchedule\\\",\\\"@schedules\\\"],[[23,4,[]],[23,5,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"schedules\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"keys\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"\\\\n    simple-editor__blogs-container-wrapper\\\\n    simple-editor__page-block-display-container\\\\n    simple-editor__base-container__max-width--default\\\\n    \\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"simple-editor__blogs-preview \\\",[23,0,[\\\"previewClassNames\\\"]]]]],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupPreviewTask\\\"]],[23,3,[]]],null]]],[3,\\\"did-update\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupPreviewTask\\\"]],[23,3,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"keys\\\"]]],null]]],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"simple-editor/page-block-preview/blogs/blog-preview\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@pageBlock\\\"],[[23,2,[]],[23,1,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-padding-right-5 has-text-danger\\\",\\\"fa-solid fa-bullhorn\\\",false,[29,[[28,\\\"tt\\\",[\\\"please add\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"blogs\\\"],null]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/blogs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockDisplayComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _class = class SimpleEditorPageBlockDisplayComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dragDetail\", _descriptor4, this);\n    }\n    edit(pageBlock) {\n      if (this.args.isReadonly) {\n        return;\n      }\n      this.args.onEdit(this.args.pageBlock);\n    }\n    onDblClick(pageBlock) {\n      if (this.args.isReadonly) {\n        return;\n      }\n      this.args.onEdit(this.args.pageBlock);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dragDetail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"edit\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"edit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDblClick\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onDblClick\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-preview/custom/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 SimpleEditorPageBlockDisplayCustomComponent = _exports.default = (_dec = Ember.inject.service('channels/shop/campaigns'), _dec2 = Ember.inject.service('settings'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember.computed('args.pageBlock.synced'), _class = class SimpleEditorPageBlockDisplayCustomComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor6, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor7, this);\n    }\n    get iframeContent() {\n      const srcdocArr = [`<style>\n        body {\n          zoom: 0.8;\n          width: 90%;\n        }\n      </style>`];\n      const contents = this.args.pageBlock?._data?.contents || [];\n      const modelContentCss = contents.find(model => model?._data?.contentType === 'css' && model?._data?.content?.length > 0);\n      if (modelContentCss) {\n        const css = modelContentCss._data.content.replace(/<style>/g, '').replace(/<\\/style>/g, '');\n        srcdocArr.push(`<style>${css}</style>`);\n      }\n      const modelContentHtml = contents.find(model => model?._data?.contentType === 'html' && model?._data?.content?.length > 0);\n      if (modelContentHtml) {\n        const html = modelContentHtml?._data?.content || '';\n        srcdocArr.push(html);\n      }\n      const modelContentJs = contents.find(model => model?._data?.contentType === 'js' && model?._data?.content?.length > 0);\n      if (modelContentJs) {\n        const script = modelContentJs._data.content.replace(/<script>/g, '').replace(/<\\/script>/g, '');\n        srcdocArr.push(`<script>${script}</script>`);\n      }\n      return srcdocArr.join('\\n');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"iframeContent\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"iframeContent\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-preview/custom/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MX1vub/4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,1,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"simple-editor__custom-container-wrapper\\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@hasSchedule\\\",\\\"@schedules\\\"],[[23,2,[]],[23,3,[]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]],[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"schedules\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"iframeContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"\\\\nsimple-editor__custom-container-wrapper\\\\nsimple-editor__page-block-display-container\\\\nsimple-editor__base-container__max-width--default\\\\n\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__custom-preview\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"iframe\\\",true],[11,\\\"srcdoc\\\",[29,[[23,0,[\\\"iframeContent\\\"]]]]],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-padding-right-5 has-text-danger\\\",\\\"fa-solid fa-bullhorn\\\",false,[29,[[28,\\\"tt\\\",[\\\"please add\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"html-custom-code\\\"],null]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/custom/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/faqs/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 SimpleEditorPageBlockDisplayFaqsComponent = _exports.default = (_dec = Ember.inject.service('channels/shop/campaigns'), _dec2 = Ember.inject.service('settings'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class SimpleEditorPageBlockDisplayFaqsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor6, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor7, this);\n    }\n    *setupPreviewTask(pageBlock) {\n      const campaignKey = this.args.website?._data?.shopKey || '';\n      this.filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {\n          campaignKey\n        }\n      });\n      yield this.fetchTask.perform(this.filters);\n    }\n    get faqs() {\n      const campaignFaqs = this.campaign?._data?.faqs || [];\n      const settingsFaqs = this.settingsService?.settingsModel?._data?.faqs || [];\n      return R.pipe(R.concat(campaignFaqs), R.filter(R.pathEq(['_data', 'display'], true)))(settingsFaqs);\n    }\n    *fetchTask(filters) {\n      const options = {\n        filters\n      };\n      const results = yield this.campaignsService.searchInputTask.perform(options);\n      this.campaign = results[0];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupPreviewTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPreviewTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-preview/faqs/faq-preview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayFaqsFaqPreviewComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockDisplayFaqsFaqPreviewComponent;\n});","define(\"client/pods/components/simple-editor/page-block-preview/faqs/faq-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fKkIZPT+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__faqs-faq simple-editor__items-item\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title u-truncate\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"question\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-content u-truncate\\\"],[8],[1,[28,\\\"html-safe\\\",[[23,1,[\\\"_data\\\",\\\"answer\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/faqs/faq-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/faqs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"J8DOtO8h\",\n    \"block\": \"{\\\"symbols\\\":[\\\"model\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,2,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"simple-editor__custom-container-wrapper\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupPreviewTask\\\"]],[23,2,[]]],null]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@hasSchedule\\\",\\\"@schedules\\\"],[[23,3,[]],[23,4,[]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]],[23,2,[\\\"_data\\\",\\\"settings\\\",\\\"schedules\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"faqs\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"\\\\nsimple-editor__faqs-container-wrapper\\\\nsimple-editor__page-block-display-container\\\\nsimple-editor__base-container__max-width--default\\\\n\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__faqs-preview\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"faqs\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"simple-editor/page-block-preview/faqs/faq-preview\\\",[],[[\\\"@model\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-padding-right-5 has-text-danger\\\",\\\"fa-solid fa-bullhorn\\\",false,[29,[[28,\\\"tt\\\",[\\\"please add\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"faqs\\\"],null]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/faqs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/flows/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, RA, R) {\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 SimpleEditorPageBlockDisplayFlowsComponent = _exports.default = (_dec = Ember.inject.service('simple-editor.page-blocks.flows'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _class = class SimpleEditorPageBlockDisplayFlowsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pageBlocksFlowsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n    }\n    *setupPreviewTask(pageBlock) {\n      if (RA.isNilOrEmpty(this.args.previewDevice)) {\n        return;\n      }\n      const keys = R.pipe(R.pathOr([], ['_data', 'contents']), R.reduce((acc, model) => {\n        const key = model?._data?._key || '';\n        if (!key) {\n          return acc;\n        }\n        return acc.concat(key);\n      }, []))(pageBlock);\n      const master = this.args.website?._data?._key || '';\n      this.filters = this.search.setupFilters({\n        adapterName: 'flows/filters',\n        defaultFiltersData: {\n          count: 60,\n          page: 1,\n          hasImages: true,\n          master,\n          keys,\n          sort: [{\n            by: 'index',\n            direction: 'asc'\n          }]\n        }\n      });\n      yield this.fetchTask.perform(this.filters);\n    }\n    *fetchTask(filters) {\n      yield this.pageBlocksFlowsService.fetchTask.perform(filters);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"pageBlocksFlowsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupPreviewTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPreviewTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-preview/flows/flow-preview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayFlowsFlowPreviewComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockDisplayFlowsFlowPreviewComponent;\n});","define(\"client/pods/components/simple-editor/page-block-preview/flows/flow-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yxSBYaQv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__flows-flow simple-editor__items-item\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@width\\\",\\\"@image\\\",\\\"@transform\\\"],[\\\"auto\\\",80,[23,1,[\\\"_data\\\",\\\"defaultImage\\\"]],\\\"/-/scale_crop/200x200/smart/-/quality/best\\\"]]],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title u-truncate\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/flows/flow-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/flows/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"b35TG318\",\n    \"block\": \"{\\\"symbols\\\":[\\\"flow\\\",\\\"@tab\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,3,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"simple-editor__custom-container-wrapper\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupPreviewTask\\\"]],[23,3,[]]],null]]],[3,\\\"did-update\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupPreviewTask\\\"]],[23,3,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"keys\\\"]]],null]]]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@hasSchedule\\\",\\\"@schedules\\\"],[[23,4,[]],[23,5,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"schedules\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"\\\\nsimple-editor__flows-container-wrapper\\\\nsimple-editor__page-block-display-container\\\\nsimple-editor__base-container__max-width--default\\\\n\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__flows-preview\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"simple-editor/page-block-preview/flows/flow-preview\\\",[],[[\\\"@tab\\\",\\\"@model\\\"],[[23,2,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-padding-right-5 has-text-danger\\\",\\\"fa-solid fa-bullhorn\\\",false,[29,[[28,\\\"tt\\\",[\\\"please add\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"pageBlocks_flows\\\"],null]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/flows/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/news/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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  let SimpleEditorPageBlockDisplayNewsComponent = _exports.default = (_dec = Ember.inject.service('simple-editor.page-blocks.news'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember.computed('args.pageBlock._data.settings.{displayStyle,gridRowItems}'), _class = class SimpleEditorPageBlockDisplayNewsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pageBlocksNewsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n    }\n    get previewClassNames() {\n      const settings = this.args.pageBlock?._data?.settings || {};\n      const displayStyle = settings?.displayStyle || '';\n      const classNames = [`simple-editor__display-style_${displayStyle}`];\n      if (displayStyle === this.constants.imagesDisplayStyles.grid) {\n        classNames.push(`simple-editor__grid-row-items_${settings.gridRowItems}`);\n      }\n      return classNames.join(' ');\n    }\n    *setupPreviewTask(pageBlock) {\n      if (RA.isNilOrEmpty(this.args.previewDevice)) {\n        return;\n      }\n      const tags = pageBlock?._data?.settings?.tags || [];\n      const keys = pageBlock?._data?.settings?.keys || [];\n      const master = this.args.website?._data?._key || '';\n      this.filters = this.search.setupFilters({\n        adapterName: 'news/filters',\n        defaultFiltersData: {\n          count: 60,\n          page: 1,\n          hasImages: true,\n          master,\n          tags,\n          keys,\n          sort: [{\n            by: 'index',\n            direction: 'asc'\n          }]\n        }\n      });\n      yield this.fetchTask.perform(this.filters);\n    }\n    *fetchTask(filters) {\n      yield this.pageBlocksNewsService.fetchTask.perform(filters);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"pageBlocksNewsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"previewClassNames\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"previewClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupPreviewTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPreviewTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/page-block-preview/news/news-preview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayProductsProductPreviewComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockDisplayProductsProductPreviewComponent;\n});","define(\"client/pods/components/simple-editor/page-block-preview/news/news-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7TlBClIp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__news-news simple-editor__items-item\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@width\\\",\\\"@image\\\",\\\"@transform\\\"],[\\\"auto\\\",80,[23,1,[\\\"_data\\\",\\\"defaultImage\\\"]],\\\"/-/scale_crop/200x200/smart/-/quality/best\\\"]]],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title u-truncate\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/news/news-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/news/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1SUlbEeO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"article\\\",\\\"@tab\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,3,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"simple-editor__custom-container-wrapper\\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@hasSchedule\\\",\\\"@schedules\\\"],[[23,4,[]],[23,5,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"schedules\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"\\\\nsimple-editor__news-container-wrapper\\\\nsimple-editor__page-block-display-container\\\\nsimple-editor__base-container__max-width--default\\\\n\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"simple-editor__news-preview \\\",[23,0,[\\\"previewClassNames\\\"]]]]],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupPreviewTask\\\"]],[23,3,[]]],null]]],[3,\\\"did-update\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupPreviewTask\\\"]],[23,3,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"tags\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"keys\\\"]]],null]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"simple-editor/page-block-preview/news/news-preview\\\",[],[[\\\"@tab\\\",\\\"@model\\\"],[[23,2,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/news/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/products/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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 SimpleEditorPageBlockDisplayProductsComponent = _exports.default = (_dec = Ember.inject.service('simple-editor.page-blocks.products'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _class = class SimpleEditorPageBlockDisplayProductsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pageBlocksProductsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n    }\n    get previewClassNames() {\n      const settings = this.args.pageBlock?._data?.settings || {};\n      const displayStyle = settings?.displayStyle || '';\n      const classNames = [`simple-editor__products-display-style_${displayStyle}`];\n      if (displayStyle === this.constants.imagesDisplayStyles.grid) {\n        classNames.push(`simple-editor__products-grid-row-items_${settings.gridRowItems}`);\n      }\n      return classNames.join(' ');\n    }\n    *setupPreviewTask(pageBlock) {\n      if (RA.isNilOrEmpty(this.args.previewDevice)) {\n        return;\n      }\n      let productTags = [];\n      let productKeys = [];\n      if (pageBlock?._data?.settings.displayBy === this.constants.productsDisplayBy.tags) {\n        productTags = pageBlock?._data?.settings?.productTags || [];\n      } else if (pageBlock?._data?.settings.displayBy === this.constants.productsDisplayBy.products) {\n        productKeys = pageBlock?._data?.settings?.productKeys || [];\n      }\n      let master = this.args.website._data.shopKey || '';\n      const isShopPage = RA.isNotNilOrEmpty(this.args.website?._data?.advancedTemplate);\n      if (isShopPage) {\n        master = this.args.website?._data?._key || '';\n      }\n      this.filters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/details/filters',\n        defaultFiltersData: {\n          count: 20,\n          page: 1,\n          master,\n          hasImages: true,\n          tags: productTags,\n          itemKeys: productKeys,\n          sort: [{\n            by: 'index',\n            direction: 'asc'\n          }]\n        }\n      });\n      return yield this.fetchProductsTask.perform(this.filters);\n    }\n    *fetchProductsByTagTask() {\n      const productTags = this.args.pageBlock?._data?.settings?.productTags || [];\n      yield this.pageBlocksProductsService.fetchProductsByTagTask.perform({\n        filters: this.filters,\n        productTags\n      });\n    }\n    *fetchProductsTask(filters) {\n      yield this.pageBlocksProductsService.fetchProductsByTagTask.perform({\n        filters\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"pageBlocksProductsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupPreviewTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPreviewTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchProductsByTagTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchProductsByTagTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchProductsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchProductsTask\"), _class.prototype), _class); // ember g component simple-editor/page-block-display/products/product-preview -gc\n});","define(\"client/pods/components/simple-editor/page-block-preview/products/product-preview/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorPageBlockDisplayProductsProductPreviewComponent extends _component.default {}\n  _exports.default = SimpleEditorPageBlockDisplayProductsProductPreviewComponent;\n});","define(\"client/pods/components/simple-editor/page-block-preview/products/product-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WN8wzJSL\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__products-product\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@width\\\",\\\"@image\\\",\\\"@transform\\\"],[\\\"auto\\\",80,[23,1,[\\\"_data\\\",\\\"defaultImage\\\"]],\\\"/-/scale_crop/200x200/smart/-/quality/best\\\"]]],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"card-header-title u-truncate\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"item\\\"]],false],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/products/product-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/products/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZEvv9j7k\",\n    \"block\": \"{\\\"symbols\\\":[\\\"product\\\",\\\"@tab\\\",\\\"@pageBlock\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[5,\\\"simple-editor/page-block-display/base/container\\\",[[12,\\\"id\\\",[23,3,[\\\"_data\\\",\\\"blockId\\\"]]],[12,\\\"class\\\",\\\"simple-editor__custom-container-wrapper\\\"]],[[\\\"@previewDevice\\\",\\\"@website\\\",\\\"@maxWidth\\\",\\\"@padding\\\",\\\"@paddingOption\\\",\\\"@paddingData\\\",\\\"@marginOption\\\",\\\"@marginData\\\",\\\"@marginVertical\\\",\\\"@hasBackground\\\",\\\"@backgroundColorStyle\\\",\\\"@quickLinkEnabled\\\",\\\"@quickLinkTextEnabled\\\",\\\"@quickLinkText\\\",\\\"@quickLinkFontAlign\\\",\\\"@quickLinkFontSize\\\",\\\"@quickLinkFontColor\\\",\\\"@quickLinkFontFamily\\\",\\\"@backgroundColor\\\",\\\"@backgroundColorTransparency\\\",\\\"@hasBorder\\\",\\\"@borderColor\\\",\\\"@borderStyle\\\",\\\"@borderRadius\\\",\\\"@borderWidth\\\",\\\"@hasAnimation\\\",\\\"@animation\\\",\\\"@animationType\\\",\\\"@animationCount\\\",\\\"@animationDuration\\\",\\\"@hasSchedule\\\",\\\"@schedules\\\"],[[23,4,[]],[23,5,[]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMaxWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPadding\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerPaddingData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginOption\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginData\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerMarginVertical\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBackground\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"enabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"textEnabled\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"text\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontAlign\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontSize\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"quickLink\\\",\\\"fontFamily\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBackgroundColorTransparency\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerBorder\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderColor\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderStyle\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderRadius\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerBorderWidth\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimation\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationType\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationCount\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"containerAnimationDuration\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"schedules\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"productTags\\\"]],[23,3,[\\\"_data\\\",\\\"settings\\\",\\\"productKeys\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__products-container-wrapper simple-editor__page-block-display-container simple-editor__base-container__max-width--default\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"simple-editor__products-preview \\\",[23,0,[\\\"previewClassNames\\\"]]]]],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"setupPreviewTask\\\"]],[23,3,[]]],null]]],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchProductsTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"filters\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"simple-editor/page-block-preview/products/product-preview\\\",[],[[\\\"@tab\\\",\\\"@model\\\"],[[23,2,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\"],[\\\"u-padding-right-5 has-text-danger\\\",\\\"fa-solid fa-bullhorn\\\",false,[29,[[28,\\\"tt\\\",[\\\"please add\\\"],null],\\\" \\\",[28,\\\"tt\\\",[\\\"products\\\"],null]]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/products/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-preview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"djT745J3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@pageBlock\\\",\\\"@onRemove\\\",\\\"@isReadonly\\\",\\\"@index\\\",\\\"@page\\\",\\\"@previewDevice\\\",\\\"@website\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"\\\\n    simple-editor__block-container\\\\n    simple-editor__block-container--is-display-block\\\\n    u-tappable\\\\n    \\\",[28,\\\"if\\\",[[23,6,[]],\\\"simple-editor__block-container--preview\\\",\\\"\\\"],null],\\\"\\\\n    \\\",[28,\\\"if\\\",[[23,6,[]],[23,6,[]],\\\"\\\"],null],\\\"\\\\n  \\\"]]],[3,\\\"on\\\",[\\\"dblclick\\\",[28,\\\"fn\\\",[[23,0,[\\\"onDblClick\\\"]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"simple-editor__block-content-container \\\",[28,\\\"if\\\",[[23,3,[]],\\\"disabled\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-content\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"componentForPreview\\\"]]],[[\\\"pageBlock\\\",\\\"previewDevice\\\",\\\"website\\\"],[[23,1,[]],[23,6,[]],[23,7,[]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-content-footer\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center flex-container--justify-end flex-gap-15\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"layouts__btns-group--hover-message u-desc\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"double click to edit\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,1,[\\\"_data\\\",\\\"type\\\"]]],null]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-sticky-right-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"settings\\\",\\\"hasContainerSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"far fa-clock\\\"]]],[0,\\\"\\\\n\\\\n                  \\\"],[1,[28,\\\"dateRange\\\",[[23,1,[\\\"firstSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]],[23,1,[\\\"firstSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]],\\\"YYYY-MM-DD HH:mm\\\"],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,3,[]],[23,1,[\\\"_data\\\",\\\"enabled\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"fn\\\",[[23,2,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,3,[]],[28,\\\"isLast\\\",[[23,5,[\\\"_data\\\",\\\"pageBlocks\\\"]],[23,4,[]]],null]],null],\\\"fas fa-angle-down\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,5,[]],\\\"_data.pageBlocks\\\",\\\"_data.index\\\",[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"or\\\",[[23,3,[]],[28,\\\"eq\\\",[[23,4,[]],0],null]],null],\\\"fas fa-angle-up\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,5,[]],\\\"_data.pageBlocks\\\",\\\"_data.index\\\",[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"edit\\\"]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-preview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-tree/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorBlockPageBlockTreeComponent extends _component.default {}\n  _exports.default = SimpleEditorBlockPageBlockTreeComponent;\n});","define(\"client/pods/components/simple-editor/page-block-tree/features/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorBlockPageBlockTreeFeaturesComponent extends _component.default {}\n  _exports.default = SimpleEditorBlockPageBlockTreeFeaturesComponent;\n});","define(\"client/pods/components/simple-editor/page-block-tree/features/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"QnFXahHI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@content\\\",\\\"@onSelect\\\",\\\"@index\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-structure-item\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-link--text\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,2,[]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"content\\\"],[[23,1,[\\\"_data\\\",\\\"type\\\"]],[23,1,[]]]]]],null]]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,1,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\" \\\",[28,\\\"sum\\\",[[23,3,[]],1],null]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__block-structure-item u-link--text\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,2,[]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"content\\\"],[\\\"image\\\",[23,1,[]]]]]],null]]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"images\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__block-structure-item u-link--text\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,2,[]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"content\\\"],[\\\"text\\\",[23,1,[]]]]]],null]]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"text\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"simple-editor__block-structure-item u-link--text\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,2,[]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"content\\\"],[\\\"links or buttons\\\",[23,1,[]]]]]],null]]],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"links or buttons\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-tree/features/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/page-block-tree/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"BOFKePs9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"content\\\",\\\"index\\\",\\\"content\\\",\\\"index\\\",\\\"@onSelect\\\",\\\"@pageBlock\\\"],\\\"statements\\\":[[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"simple-editor__block-structure-container\\\"]],[[\\\"@title\\\"],[\\\"structure\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-structure-item\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"settings\\\"],null],\\\": \\\",[23,6,[\\\"pageBlockLabel\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__block-structure-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"type\\\"]],\\\"features\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"component\\\",[[28,\\\"concat\\\",[\\\"simple-editor/page-block-tree/\\\",[23,3,[\\\"_data\\\",\\\"type\\\"]]],null]],[[\\\"pageBlock\\\",\\\"content\\\",\\\"index\\\",\\\"onSelect\\\"],[[23,6,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,3,[\\\"_data\\\",\\\"label\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,3,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\" \\\",[28,\\\"sum\\\",[[23,4,[]],1],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"aside\\\",true],[10,\\\"class\\\",\\\"menu\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"menu-label\\\"],[8],[0,\\\"General\\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"menu-list\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[\\\"_data\\\",\\\"contents\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[23,1,[\\\"_data\\\",\\\"type\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"concat\\\",[[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"pageBlocks_\\\",[23,1,[\\\"_data\\\",\\\"type\\\"]]],null]],null],\\\" \\\",[28,\\\"sum\\\",[[23,2,[]],1],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"simple-editor__block-structure-container\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"aside\\\",true],[10,\\\"class\\\",\\\"menu\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"menu-label\\\"],[8],[0,\\\"General\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"menu-list\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Dashboard\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Customers\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"menu-label\\\"],[8],[0,\\\"Administration\\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"menu-list\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Team Settings\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[10,\\\"class\\\",\\\"is-active\\\"],[8],[0,\\\"Manage Your Team\\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Members\\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Plugins\\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Add a member\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Members\\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Plugins\\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n                \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Add a member\\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Invitations\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Cloud Storage Environment Settings\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"a\\\",true],[8],[0,\\\"Authentication\\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/page-block-tree/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/tab-menu/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _component, _ramda, R_, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _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 MenusTabMenuNewComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember.computed('args.isTreeView', 'hasWrap'), _dec8 = Ember.computed('args.isTreeView', 'hasWrap'), _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember.computed('args.{menu.[],menu.@each.isCollapsed,groupByPath}'), _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _class = class MenusTabMenuNewComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"selected\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasWrap\", _descriptor3, this);\n      _initializerDefineProperty(this, \"alreadySelected\", _descriptor4, this);\n      _initializerDefineProperty(this, \"autoSelectFirstTab\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hideWhenOnlyOneMenuItem\", _descriptor6, this);\n      _defineProperty(this, \"menuLabelKey\", this.args?.menuLabelKey || '_data.label');\n      _defineProperty(this, \"classNames\", this.args?.classNames || 'u-tab-menu');\n    }\n    get menu() {\n      return this.args.menu || this.args.wizardContainerComponent?.stepsList || [];\n    }\n    get showMenu() {\n      const hideWhenOnlyOneMenuItem = this.hideWhenOnlyOneMenuItem;\n      const menu = this.args.menu || [];\n      if (hideWhenOnlyOneMenuItem && menu.length <= 1) {\n        return false;\n      }\n      return true;\n    }\n    get yieldTop() {\n      if (this.args?.yieldTop === false) {\n        return false;\n      }\n      if (this.args?.yieldBottom === true) {\n        return false;\n      }\n      return true;\n    }\n    get yieldBottom() {\n      if (this.args?.yieldTop === true) {\n        return false;\n      }\n      if (this.args?.yieldBottom === true) {\n        return true;\n      }\n      return false;\n    }\n    get tabMenuClassNames() {\n      const classNames = ['u-tab-menu', 'tab-menu-group'];\n      if (this.args?.isTreeView === true) {\n        classNames.push('tree-view');\n      } else {\n        classNames.push('flex-container-row');\n      }\n      if (this.hasWrap) {\n        classNames.push('flex-container--wrap');\n      }\n      return classNames.join(' ');\n    }\n    get tabItemClassNames() {\n      const classNames = _ramda.default.pipe(_ramda.default.pathOr('', ['args', 'itemClassNames']), _ramda.default.split(/\\s/gm))(this);\n      if (this.args?.isTreeView === true) {\n        classNames.push('tree-view__item');\n      }\n      return classNames.join(' ');\n    }\n    setup() {\n      const menu = this.menu || [];\n      if (this.autoSelectFirstTab) {\n        const tab = this.args.tab;\n        const initialPanel = this.tabsManager.getInitialPanel(tab, menu);\n        this.select(initialPanel);\n      }\n      this.alreadySelected = false;\n    }\n    setSelected(activeSubTabMenu) {\n      const menu = this.menu || [];\n      if (menu?.length <= 0) {\n        return {};\n      }\n      if (RA.isNilOrEmpty(activeSubTabMenu)) {\n        this.selected = null;\n        return {};\n      }\n      this.alreadySelected = true;\n      this.selected = activeSubTabMenu;\n      return activeSubTabMenu;\n    }\n    get translate() {\n      return _ramda.default.pathOr(true, ['args', 'translate'])(this);\n    }\n    get groupedMenu() {\n      const menu = this.menu || [];\n      const visibleMenu = this._filterCollapsedItems(menu);\n      const hasGroupProp = _ramda.default.find(_ramda.default.path(['_data', 'group']))(visibleMenu);\n      if (!hasGroupProp) {\n        return {\n          '': visibleMenu\n        };\n      }\n      const groupByPath = this.args?.groupByPath || '_data.group';\n      const grouped = _ramda.default.groupBy(R_.dotPath(groupByPath))(visibleMenu);\n      return grouped;\n    }\n    _filterCollapsedItems(menu) {\n      const visible = [];\n      // store depth levels of currently active collapsed ancestors\n      const collapsedMenu = [];\n      for (const item of menu) {\n        const depth = item?._data?.depth || 0;\n\n        // drop collapsed ancestors that no longer apply at current depth\n        while (collapsedMenu.length > 0 && collapsedMenu[collapsedMenu.length - 1] >= depth) {\n          collapsedMenu.pop();\n        }\n\n        // keep track of the collapsed menu\n        if (collapsedMenu.length > 0) {\n          if (item.get('isCollapsed')) {\n            collapsedMenu.push(depth);\n          }\n          continue;\n        }\n\n        // if visible, add to the visible menu\n        visible.push(item);\n        if (item.get('isCollapsed')) {\n          collapsedMenu.push(depth);\n        }\n      }\n      return visible;\n    }\n    onToggleCollapse(item) {\n      const current = item.get('isCollapsed') || false;\n      item.set('isCollapsed', !current);\n    }\n\n    /**\n     * Select tab item\n     * @param {Object} item\n     * @void\n     */\n    select(item) {\n      this.setSelected(item);\n      if (this.args?.onSelect) {\n        this.args.onSelect(item);\n      }\n    }\n\n    /**\n     * Set css prop of tab header-title\n     * @param {Object} params\n     * @param {HTMLElement} params.tabMenuContainer\n     * @param {HTMLElement|Null} params.tabGridContent\n     * @param {HTMLElement|Null} params.headerTitle\n     * @param {HTMLElement|Null} params.outerPanelContent if not null, that means it is a panel grid inside another one\n     * @void\n     */\n    _setHeaderTitleCss({\n      tabMenuContainer,\n      tabGridContent,\n      headerTitle,\n      outerPanelContent\n    } = {}) {\n      if (tabGridContent) {\n        const tabContentOnly = this.args?.tabContentOnly || false;\n        if (tabContentOnly) {\n          tabMenuContainer.style.top = 'auto';\n        } else {\n          const offsetTop = tabGridContent.offsetTop || 128;\n          tabMenuContainer.style.top = `${offsetTop}px`;\n        }\n      }\n      if (outerPanelContent) {\n        if (headerTitle) {\n          headerTitle.style.zIndex = 'unset';\n        }\n        tabMenuContainer.style.zIndex = 'unset';\n      } else {\n        // if (headerTitle && !headerTitle.classList.contains('hidden')) {\n        //   const tabMenuTop = tabMenuContainer?.offsetTop\n        //   const tabMenuHeight = tabMenuContainer?.offsetHeight\n\n        //   if (!tabMenuTop || !tabMenuHeight) {\n        //     return\n        //   }\n\n        //   const tabMenuBottom = tabMenuTop + tabMenuHeight\n        //   headerTitle.style.top = `${tabMenuBottom}px`\n        //   headerTitle.style.position = 'sticky'\n        // }\n      }\n    }\n\n    /**\n     * Builds the class string for a tab item, adding an indentation class if depth > 0.\n     * @param {string} baseClasses - Existing classes passed via @itemClassNames.\n     * @param {number} depth - The depth level of the item.\n     * @returns {string} The combined class string.\n     */\n    buildTabItemClasses(baseClasses, depth) {\n      const classes = [];\n      if (baseClasses) {\n        classes.push(baseClasses);\n      }\n      if (depth && depth > 0) {\n        classes.push('indented-tab-item');\n        // Optionally, if you need different styles for different depths:\n        // classes.push(`depth-level-${depth}`);\n      }\n      return classes.join(' ');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selected\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasWrap\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return _ramda.default.pathOr(true, ['args', 'hasWrap'])(this);\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"alreadySelected\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"autoSelectFirstTab\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return _ramda.default.pathOr(true, ['args', 'autoSelectFirstTab'])(this);\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hideWhenOnlyOneMenuItem\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return _ramda.default.pathOr(false, ['args', 'hideWhenOnlyOneMenuItem'])(this);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"tabMenuClassNames\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"tabMenuClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"tabItemClassNames\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"tabItemClassNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSelected\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"groupedMenu\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"groupedMenu\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleCollapse\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleCollapse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"buildTabItemClasses\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"buildTabItemClasses\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/tab-menu/tab-item/component\", [\"exports\", \"ramda\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, R, _component, RA) {\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, _dec0, _dec1, _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 MenusTabMenuNewTabItemComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _dec3 = Ember.inject.service('websites'), _dec4 = Ember._tracked, _dec5 = Ember.computed('args.item._data.depth', 'args.classNames.[]'), _dec6 = Ember.computed('args.item._data.contents.[]', 'args.item._data.{depth,isNested}'), _dec7 = Ember.computed('args.subTabs.@each.isActive', 'args.selected._data.value'), _dec8 = Ember.computed('args.subTabs.@each.isActive', 'args.selected._data.value'), _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class MenusTabMenuNewTabItemComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"menuLabelKey\", _descriptor4, this);\n    }\n    get translate() {\n      if (this.args?.translate === false) {\n        return false;\n      }\n      if (this.args?.item.translate === false) {\n        return false;\n      }\n      return true;\n    }\n    get classNames() {\n      const classNames = [this.args?.classNames];\n      classNames.push('u-tab-menu__item');\n      const depth = this.args.item?._data?.depth || 0;\n      if (depth && depth > 0) {\n        classNames.push(`depth-level-${depth}`);\n        if (this.args.item?.icon) {\n          classNames.push('has-icon');\n        }\n        if (this.hasNested) {\n          classNames.push('has-nested');\n        }\n      }\n      return classNames.join(' ');\n    }\n    get hasNested() {\n      const depth = this.args.item?._data?.depth || 0;\n      if (depth === 0) {\n        return true;\n      }\n      if (this.args.item?._data?.isNested) {\n        return true;\n      }\n      return false;\n    }\n    get isActive() {\n      if (this.args.debug) {\n        debugger; //eslint-disable-line\n      }\n      const subTabs = this.args.subTabs || [];\n      if (RA.isNilOrEmpty(subTabs)) {\n        const selected = this.args.selected || {};\n        if (selected?._data?.value === this.itemValue) {\n          return true;\n        }\n        return false;\n      }\n      const menu = this.args.menu || [];\n      const currentMenuItem = this.args.item;\n      return this.tabsManager.isActiveMenuByActiveTab(subTabs, menu, currentMenuItem);\n    }\n    get showLeftPreview() {\n      if (this.args?.item?.contentPreviewLeft !== true) {\n        return false;\n      }\n      if (!this.args?.item?.contentPreview) {\n        return false;\n      }\n      return true;\n    }\n    get item() {\n      return this.args?.item || null;\n    }\n    get label() {\n      if (this.args?.item?.label) {\n        return this.args.item.label;\n      }\n      return this.item.get?.(this.menuLabelKey);\n    }\n    get itemComponent() {\n      return this.item?._data?.component || this.item?.component || '';\n    }\n    get itemValue() {\n      return this.item?._data?.value || this.item?.value || '';\n    }\n    get itemLabel() {\n      return this.item?._data?.label || this.item?.label || '';\n    }\n\n    // get currentActive () {\n    //   if (this.args?.isCurrentActive) {\n    //     const currentActive = this.args.isCurrentActive\n\n    //     if (currentActive?.label) {\n    //       return currentActive.label === this.itemLabel\n    //     }\n\n    //     if (currentActive?.value) {\n    //       return currentActive.value === this.itemValue\n    //     }\n\n    //     return currentActive.component === this.itemComponent\n    //   }\n    //   return false\n    // }\n\n    get subTab() {\n      const subTabs = this.args?.subTabs || [];\n      const subTab = R.find(R.propEq('component', this.itemComponent))(subTabs);\n      return subTab;\n    }\n    toggleCollapse(event) {\n      // just toggle instead of selecting the tab too\n      event.stopPropagation();\n      if (this.args?.onToggleCollapse) {\n        this.args.onToggleCollapse(this.item);\n      }\n    }\n    onClick() {\n      if (this.args?.onSelect) {\n        this.args.onSelect(this.item);\n      }\n    }\n    copyModel(item) {\n      const pageBlock = item?._data?.pageBlock;\n      this.websitesService.copyModel({\n        parentModel: pageBlock,\n        listProp: 'contents',\n        model: item?._data?.content,\n        adapterName: `simple-editor/page-blocks/${pageBlock?._data?.type}/content`\n      });\n      this.applicationService.modelSetIsForceReloading(pageBlock);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"menuLabelKey\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args?.menuLabelKey || '_data.label';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"classNames\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"classNames\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasNested\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"hasNested\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isActive\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"isActive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showLeftPreview\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"showLeftPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleCollapse\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCollapse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyModel\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"copyModel\"), _class.prototype), _class);\n});","define(\"client/pods/components/simple-editor/tab-menu/tab-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vLRf53tj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@item\\\",\\\"@isReadonly\\\",\\\"@isActive\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"li\\\",false],[12,\\\"class\\\",[29,[[23,0,[\\\"classNames\\\"]],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isActive\\\"]],\\\"is-active\\\",\\\"\\\"],null],\\\" u-fade-in-bg \\\",[28,\\\"if\\\",[[23,1,[\\\"contentPreview\\\"]],\\\"has-preview\\\",\\\"\\\"],null]]]],[12,\\\"data-tabs-header\\\",[23,0,[\\\"itemValue\\\"]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClick\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasNested\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"tree-view__item-chevron\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggleCollapse\\\"]]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[28,\\\"if\\\",[[23,1,[\\\"isCollapsed\\\"]],\\\"fa-solid fa-chevron-right\\\",\\\"fa-solid fa-chevron-down\\\"],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,4]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[14,4],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"iconSvg\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right icon-left\\\"],[8],[1,[23,0,[\\\"item\\\",\\\"iconSvg\\\"]],true],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"icon\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"showLeftPreview\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right icon-left\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[23,0,[\\\"item\\\",\\\"icon\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"contentPreviewLeft\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tree-view__item__content-preview tree-view__item__content-preview--left\\\"],[8],[1,[23,1,[\\\"contentPreviewLeft\\\"]],true],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tree-view__item__label\\\"],[8],[1,[28,\\\"tt\\\",[[23,1,[\\\"label\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,1,[\\\"contentPreviewRight\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tree-view__item__content-preview tree-view__item__content-preview--right\\\"],[8],[1,[23,1,[\\\"contentPreviewRight\\\"]],true],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"badge\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"element-btn__badge\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"item\\\",\\\"_data\\\",\\\"badge\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"hasSubTabs\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-chevron-down\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-chevron-right\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"item\\\",\\\"_data\\\",\\\"iconRight\\\"]],[23,0,[\\\"item\\\",\\\"iconRight\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right icon-right\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[[28,\\\"if\\\",[[23,0,[\\\"item\\\",\\\"iconRight\\\"]],[23,0,[\\\"item\\\",\\\"iconRight\\\"]],[23,0,[\\\"item\\\",\\\"_data\\\",\\\"iconRight\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasContentActions\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-icon-spacer--right icon-right\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@hasToggleIconRight\\\",\\\"@stopPropagation\\\"],[\\\"fas fa-ellipsis\\\",false,true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayRemove\\\"]],[23,1,[\\\"_data\\\",\\\"pageBlock\\\"]],\\\"_data.contents\\\",[23,1,[\\\"_data\\\",\\\"content\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,1,[\\\"_data\\\",\\\"pageBlock\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-copy\\\",[28,\\\"fn\\\",[[23,0,[\\\"copyModel\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-angle-down\\\",[28,\\\"or\\\",[[23,2,[]],[28,\\\"isLast\\\",[[23,1,[\\\"_data\\\",\\\"pageBlock\\\",\\\"_data\\\",\\\"contents\\\"]],[23,1,[\\\"_data\\\",\\\"content\\\",\\\"_data\\\",\\\"index\\\"]]],null]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveDown\\\"]],[23,1,[\\\"_data\\\",\\\"pageBlock\\\"]],\\\"_data.contents\\\",\\\"_data.index\\\",[23,1,[\\\"_data\\\",\\\"content\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,1,[\\\"_data\\\",\\\"pageBlock\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-angle-up\\\",[28,\\\"or\\\",[[23,2,[]],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"content\\\",\\\"_data\\\",\\\"index\\\"]],0],null]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelArrayMoveUp\\\"]],[23,1,[\\\"_data\\\",\\\"pageBlock\\\"]],\\\"_data.contents\\\",\\\"_data.index\\\",[23,1,[\\\"_data\\\",\\\"content\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetIsForceReloading\\\"]],[23,1,[\\\"_data\\\",\\\"pageBlock\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-tab-menu__item-error has-text-danger has-text-small u-display-none\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-circle-exclamation\\\"]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/tab-menu/tab-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/tab-menu/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"YTEWB0ey\",\n    \"block\": \"{\\\"symbols\\\":[\\\"groupMenu\\\",\\\"groupName\\\",\\\"item\\\",\\\"index\\\",\\\"&default\\\",\\\"@debug\\\",\\\"@tabs\\\",\\\"@isWizard\\\",\\\"@wizardContainerComponent\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"menu\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,9,[\\\"isWizard\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tab flex-container-row\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"menus/progress-bar\\\",[],[[\\\"@current\\\",\\\"@currentIndex\\\",\\\"@steps\\\",\\\"@onSelect\\\"],[[23,9,[\\\"currentStep\\\"]],[23,9,[\\\"currentStepIndex\\\"]],[23,9,[\\\"stepsList\\\"]],[23,0,[\\\"select\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[25,5],[23,0,[\\\"yieldTop\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[14,5],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showMenu\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-tab flex-container-row \\\",[28,\\\"if\\\",[[23,0,[\\\"hasWrap\\\"]],\\\"flex-container--wrap\\\",\\\"\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,8,[]],\\\"is-wizard\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[28,\\\"-each-in\\\",[[23,0,[\\\"groupedMenu\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"ul\\\",true],[11,\\\"class\\\",[29,[[23,0,[\\\"tabMenuClassNames\\\"]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"simple-editor/tab-menu/tab-item\\\",[],[[\\\"@debug\\\",\\\"@classNames\\\",\\\"@selected\\\",\\\"@index\\\",\\\"@item\\\",\\\"@menu\\\",\\\"@menuLabelKey\\\",\\\"@menuIndex\\\",\\\"@onSelect\\\",\\\"@onToggleCollapse\\\",\\\"@subTabs\\\",\\\"@translate\\\"],[[23,6,[]],[23,0,[\\\"tabItemClassNames\\\"]],[23,0,[\\\"selected\\\"]],[23,4,[]],[23,3,[]],[23,1,[]],[23,0,[\\\"menuLabelKey\\\"]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"select\\\"]],[23,3,[]]],null],[23,0,[\\\"onToggleCollapse\\\"]],[23,7,[]],[23,0,[\\\"translate\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n            \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"u-tab-menu__divider\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[25,5],[23,0,[\\\"yieldBottom\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-block-add-wrapper--padding\\\"],[8],[0,\\\"\\\\n        \\\"],[14,5],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[25,5]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[14,5],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/tab-menu/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/simple-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qa94a2Ay\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onHideDropdown\\\",\\\"onHideDropdown\\\",\\\"onHideDropdown\\\",\\\"onHideDropdown\\\",\\\"onCloseDialogAction\\\",\\\"pageBlock\\\",\\\"index\\\",\\\"@isRunning\\\",\\\"@page\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@onSaveTask\\\",\\\"@onAfterCancel\\\",\\\"@onCancel\\\",\\\"@onAfterSave\\\",\\\"@isShowWebsitePagesNav\\\",\\\"@channelsShopKey\\\",\\\"@onEdit\\\",\\\"&default\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\",\\\"@hasPreviewBtnsOnly\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"panel-grid__content \\\",[23,0,[\\\"elementId\\\"]]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"setup\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isEditingBlock\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"simple-editor__blocks-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"\\\\n        flex-container-row flex-container--justify-center\\\\n        simple-editor__block-add-block-row\\\\n        \\\",[28,\\\"if\\\",[[23,0,[\\\"previewDevice\\\"]],\\\"simple-editor__block-container--preview\\\",\\\"\\\"],null],\\\"\\\\n        \\\",[28,\\\"if\\\",[[23,0,[\\\"previewDevice\\\"]],[23,0,[\\\"previewDevice\\\"]],\\\"\\\"],null],\\\"\\\\n      \\\"]]],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"simple-editor/page-block-add-wrapper\\\",[],[[\\\"@isAddBlock\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@page\\\",\\\"@index\\\",\\\"@onEdit\\\"],[true,[23,13,[]],[23,14,[]],[23,0,[\\\"isReadonly\\\"]],[23,12,[]],-1,[23,0,[\\\"onEdit\\\"]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"simple-editor/page-block-import-btn\\\",[],[[\\\"@isReadonly\\\",\\\"@index\\\",\\\"@website\\\",\\\"@onImport\\\"],[[23,0,[\\\"isReadonly\\\"]],-1,[23,14,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onBefore\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"importPageBlock\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"reIndex\\\"]],[23,12,[]],\\\"_data.pageBlocks\\\",\\\"_data.index\\\"],null]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"allowedPageBlocks\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@droppable\\\",\\\"@model\\\",\\\"@modelIdPath\\\",\\\"@classNames\\\",\\\"@dropContainerPlaceholderClass\\\",\\\"@hasDropContainerPlaceholders\\\",\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[[28,\\\"and\\\",[[23,24,[]],[23,9,[\\\"isDraggable\\\"]]],null],[23,9,[]],\\\"_data._id\\\",\\\"drop-container--easy-drop\\\",\\\"u-full-width\\\",true,[23,0,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"reorderPageBlocks\\\"]],[23,0,[\\\"allowedPageBlocks\\\"]],[23,9,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,0,[]],[23,9,[]],[23,0,[\\\"dragDetail\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@gripClassNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\",\\\"@hideGripIcon\\\"],[[28,\\\"and\\\",[[23,24,[]],[23,9,[\\\"isDraggable\\\"]]],null],\\\"has-grip\\\",\\\"wide-grip-icon-container\\\",[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,0,[]],[23,9,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,0,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,9,[\\\"_data\\\",\\\"index\\\"]]]]],[23,24,[]],[28,\\\"and\\\",[[23,24,[]],[23,9,[\\\"isDraggable\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,9,[\\\"isRefreshing\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"simple-editor/page-block-display-container\\\",[],[[\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@website\\\",\\\"@index\\\",\\\"@page\\\",\\\"@pageBlock\\\",\\\"@onEdit\\\",\\\"@onDblClick\\\",\\\"@saveTask\\\",\\\"@onRemove\\\",\\\"@onCopy\\\",\\\"@previewDevice\\\",\\\"@isExpandAll\\\",\\\"@selectedTabId\\\",\\\"@onSelectTabId\\\"],[[23,13,[]],[23,0,[\\\"isReadonly\\\"]],[23,14,[]],[23,10,[]],[23,12,[]],[23,9,[]],[23,0,[\\\"onEdit\\\"]],[23,0,[\\\"onEdit\\\"]],[23,0,[\\\"saveTask\\\"]],[23,12,[\\\"removePageBlock\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"websitesService\\\",\\\"copyModel\\\"]],[28,\\\"hash\\\",null,[[\\\"parentModel\\\",\\\"listProp\\\",\\\"model\\\",\\\"adapterName\\\"],[[23,12,[]],\\\"pageBlocks\\\",[23,9,[]],[28,\\\"concat\\\",[\\\"simple-editor/page-blocks/\\\",[23,9,[\\\"_data\\\",\\\"type\\\"]]],null]]]]],null],[23,0,[\\\"previewDevice\\\"]],[23,0,[\\\"isExpandAll\\\"]],[23,0,[\\\"selectedTabId\\\"]],[23,0,[\\\"setSelectedTabId\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"\\\\n            flex-container-row flex-container--justify-center\\\\n            simple-editor__block-add-block-row\\\\n            \\\",[28,\\\"if\\\",[[23,0,[\\\"previewDevice\\\"]],\\\"simple-editor__block-container--preview\\\",\\\"\\\"],null],\\\"\\\\n            \\\",[28,\\\"if\\\",[[23,0,[\\\"previewDevice\\\"]],[23,0,[\\\"previewDevice\\\"]],\\\"\\\"],null],\\\"\\\\n          \\\"]]],[8],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"layouts__btns-outer-container--no-bg\\\"]],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"simple-editor/page-block-add-wrapper\\\",[],[[\\\"@isAddBlock\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@page\\\",\\\"@index\\\",\\\"@onEdit\\\"],[true,[23,13,[]],[23,14,[]],[23,0,[\\\"isReadonly\\\"]],[23,12,[]],[23,10,[]],[23,0,[\\\"onEdit\\\"]]]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"simple-editor/page-block-import-btn\\\",[],[[\\\"@isReadonly\\\",\\\"@index\\\",\\\"@website\\\",\\\"@onImport\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,10,[]],[23,14,[]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onBefore\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"importPageBlock\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"reIndex\\\"]],[23,12,[]],\\\"_data.pageBlocks\\\",\\\"_data.index\\\"],null]]]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9,10]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"isEditingBlock\\\"]],[23,0,[\\\"dirty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@translate\\\",\\\"@modalDialogIsVisible\\\",\\\"@onClose\\\",\\\"@closeOnOverlayClick\\\",\\\"@hasWarningOnCloseUsingTopRightBtn\\\",\\\"@autoSetContentOverflow\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"edit\\\"],null],\\\": \\\",[23,0,[\\\"dirty\\\",\\\"pageBlockLabel\\\"]]],null],false,[23,0,[\\\"isEditingBlock\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"resetEditing\\\"]]],null],false,true,false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"simple-editor/page-block-editor\\\",[],[[\\\"@tab\\\",\\\"@website\\\",\\\"@dirty\\\",\\\"@pageBlock\\\",\\\"@pageBlocks\\\",\\\"@page\\\",\\\"@onDone\\\",\\\"@previewDevice\\\",\\\"@onCloseDialogAction\\\",\\\"@onSetPreviewDevice\\\",\\\"@selectedTabId\\\",\\\"@onSelectTabId\\\"],[[23,13,[]],[23,14,[]],[23,0,[\\\"dirty\\\"]],[23,0,[\\\"editingModel\\\"]],[23,12,[\\\"_data\\\",\\\"pageBlocks\\\"]],[23,12,[]],[23,8,[]],[23,0,[\\\"previewDevice\\\"]],[23,8,[]],[23,0,[\\\"setPreviewDevice\\\"]],[23,0,[\\\"selectedTabId\\\"]],[23,0,[\\\"setSelectedTabId\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,25,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,23,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"clear page\\\",[28,\\\"fn\\\",[[23,0,[\\\"clearTemplate\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,22]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,22],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"simple-editor/page-block-editor/base/preview-btns\\\",[],[[\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\"],[[23,0,[\\\"previewDevice\\\"]],[23,0,[\\\"setPreviewDevice\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,23,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-ellipsis-vertical\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-file-export\\\",\\\"copy all\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"copyAllModelData\\\"]],[23,12,[\\\"_data\\\",\\\"pageBlocks\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"simple-editor/page-block-import/button\\\",[],[[\\\"@disabled\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@page\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,13,[]],[23,14,[]],[23,12,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"user/get\\\",[\\\"allowPublicTemplate\\\"],null],[23,0,[\\\"allowSaveAsTemplate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-user-lock\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save as template\\\",[23,11,[]],[28,\\\"perform\\\",[[23,0,[\\\"submitTaskAsTemplate\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isExpandAll\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-down-left-and-up-right-to-center\\\",[28,\\\"fn\\\",[[23,0,[\\\"expandOrCollapseAll\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-up-right-and-down-left-from-center\\\",[28,\\\"fn\\\",[[23,0,[\\\"expandOrCollapseAll\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasFooterBtns\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,21,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,20,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@truncate\\\",\\\"@truncateChar\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,19,[]],[23,12,[\\\"pageName\\\"]],false,true,15]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[[12,\\\"class\\\",\\\"hide-on-mobile\\\"]],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@onSubmit\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"onEditPanelFooter\\\"]],[23,21,[]],[23,12,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,15,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"clear page\\\",[28,\\\"fn\\\",[[23,0,[\\\"clearTemplate\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,15,[\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,17,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"dirty\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[23,12,[]],[23,16,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,15,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnBeforeTask\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onBefore\\\"],[[28,\\\"perform\\\",[[23,15,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[\\\"websites/pages\\\",[23,12,[]],[23,18,[]],[23,13,[]]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"reIndex\\\"]],[23,12,[]],\\\"_data.pageBlocks\\\",\\\"_data.index\\\"],null]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,12,[\\\"_data\\\",\\\"templateType\\\"]],[23,0,[\\\"constants\\\",\\\"templateTypes\\\",\\\"blocks\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,2,[]],\\\"u-margin-auto\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[5,\\\"simple-editor/page-block-editor/base/preview-btns\\\",[],[[\\\"@previewDevice\\\",\\\"@onSetPreviewDevice\\\"],[[23,0,[\\\"previewDevice\\\"]],[23,0,[\\\"setPreviewDevice\\\"]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,15,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-ellipsis-vertical\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-file-export\\\",\\\"copy all\\\",[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"copyAllModelData\\\"]],[23,12,[\\\"_data\\\",\\\"pageBlocks\\\"]]],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"simple-editor/page-block-import/button\\\",[],[[\\\"@disabled\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@page\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,13,[]],[23,14,[]],[23,12,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"user/get\\\",[\\\"allowPublicTemplate\\\"],null],[23,0,[\\\"allowSaveAsTemplate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fa-solid fa-user-lock\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"save as template\\\",[23,11,[]],[28,\\\"perform\\\",[[23,0,[\\\"submitTaskAsTemplate\\\"]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isExpandAll\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-down-left-and-up-right-to-center\\\",[28,\\\"fn\\\",[[23,0,[\\\"expandOrCollapseAll\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-up-right-and-down-left-from-center\\\",[28,\\\"fn\\\",[[23,0,[\\\"expandOrCollapseAll\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/simple-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/specs/specs-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _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 SpecsSpecsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _class = class SpecsSpecsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      // only edit an existing record when we actually have a model. a stale reference can\n      // mount this editor with isEditing=true but no model, which would crash setupDirty.\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"big\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"showEditor\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isEditing\", _descriptor7, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor8, this);\n      const isEditingExistingModel = this.args.isEditing && RA.isNotNilOrEmpty(this.args.model);\n      this.isEditing = isEditingExistingModel;\n      this.crud.addLists(this, ['specs/lists/method']);\n      if (isEditingExistingModel) {\n        const dirty = this.crud.setupDirty({\n          adapterName: 'specs',\n          model: this.args.model\n        });\n        // default value\n        if (!dirty._data.method) {\n          dirty._data.method = 'byDetailsWithGrandTotals';\n        }\n        if (!dirty._data.autoGenerateByDetailsSummary) {\n          dirty._data.autoGenerateByDetailsSummary = false;\n        }\n        this.dirty = dirty;\n      } else {\n        const model = this.crud.setupNewRecord({\n          adapterName: 'specs'\n        });\n        // default value\n        model._data.method = 'byDetailsWithGrandTotals';\n        model._data.autoGenerateByDetailsSummary = false;\n        this.dirty = model;\n      }\n    }\n    get isAutoGenerateByDetailsSummaryTogglerDisabled() {\n      const dirty = this?.dirty || {};\n      if (RA.isNotNilOrEmpty(dirty)) {\n        const method = dirty.getData('method');\n        if (R.equals(method, 'byAllOrdersWithOneColumnRow') || R.equals(method, 'byAllOrdersWithOneColumnRowWithSummary')) {\n          return true;\n        }\n      }\n      return false;\n    }\n    setDefaultForMethod() {\n      const dirty = this?.dirty || {};\n      if (RA.isNotNilOrEmpty(dirty)) {\n        const method = dirty.getData('method');\n        if (R.equals(method, 'byAllOrdersWithOneColumnRow') || R.equals(method, 'byAllOrdersWithOneColumnRowWithSummary')) {\n          dirty.setData('autoGenerateByDetailsSummary', true);\n        }\n      }\n      this.checkIfSpecsStillAllowed();\n    }\n    addNewCell(parentIndex) {\n      const availableNormalSpecs = this.dirty.availableNormalSpecs;\n      const specs = this.dirty._data.specs || [];\n      RA.mapIndexed((val, idx) => {\n        if (idx === parentIndex) {\n          const data = {\n            value: '',\n            prop: '',\n            label: this.intl.t('')\n          };\n          const newCell = this.crud.setupNewRecord({\n            adapterName: 'specs/child',\n            data,\n            attrs: {\n              availableNormalSpecs\n            }\n          });\n          val.pushObject(newCell);\n        }\n      })(specs);\n    }\n    addNewRow(index) {\n      this.dirty.addNewRow({}, index);\n    }\n    addNewTransform(specChild) {\n      if ((!specChild._data.transforms || specChild._data.transforms.length === 0) && !specChild._data.isDetail) {\n        specChild.addTransform();\n      }\n    }\n    loadProduct(specChild, selectedProduct) {\n      specChild.setData('transforms', []);\n      specChild.setData('type', '');\n      specChild.setData('prop', '');\n      if (RA.isNilOrEmpty(selectedProduct)) {\n        specChild.setData('item', '');\n        specChild.setData('label', 'item');\n        specChild.setData('itemCode', '');\n      } else {\n        specChild.setData('item', selectedProduct.get('_data.name'));\n        specChild.setData('label', selectedProduct.get('_data.name'));\n        specChild.setData('itemCode', selectedProduct.get('_data.code'));\n      }\n      specChild.setData('isDetail', true);\n    }\n\n    // actions: {\n\n    cancel(dirty) {\n      if (this.args.isEditing) {\n        this.crud.cancelEditing({\n          adapterName: 'specs',\n          dirty\n        });\n      }\n      this.args.onCloseDialogAction?.();\n    }\n    updateTransform(specChild, selectedTransform) {\n      specChild.set('_data.transforms', []);\n      if (specChild.get('_data.type')) {\n        specChild.set('_data.type', '');\n      }\n      specChild.addTransform(selectedTransform);\n    }\n    removeTransform(specChild) {\n      specChild.set('_data.transforms', []);\n    }\n    selectSpec(specChild, selectedSpec) {\n      specChild.set('hasOptions', false);\n      specChild.setData('hideDefault', false);\n      specChild.setData('transforms', selectedSpec.get('transforms') || '');\n      specChild.setData('prop', selectedSpec.get('prop') || '');\n      specChild.setData('type', selectedSpec.get('type') || '');\n      specChild.setData('item', selectedSpec.get('item') || '');\n      specChild.setData('itemKey', selectedSpec.get('itemKey') || '');\n      specChild.setData('isDetail', selectedSpec.get('isDetail') || '');\n      specChild.setData('checkProp', selectedSpec.get('checkProp') || '');\n      specChild.setDefaultTransform(specChild, selectedSpec);\n    }\n    removeRow(row) {\n      const specs = this.dirty._data.specs;\n      specs.removeObject(row);\n    }\n    removeSpecChild(specChild) {\n      const specs = this.dirty._data.specs;\n      R.forEach(row => {\n        row.removeObject(specChild);\n      })(specs);\n      const filteredSpecs = specs.reject(row => R.isEmpty(row));\n      this.dirty.setData('specs', filteredSpecs);\n    }\n    afterCreateRecordTask(dirty) {\n      // callbacks are optional: when this editor falls back to create mode (isEditing was\n      // requested but no model was given), the edit-only mount has no onAddItem/onUpdateItem.\n      this.args.onAddItem?.(dirty);\n      if (this.args.onAfterAddItem) {\n        if (this.args.onAfterAddItem.perform) {\n          this.args.onAfterAddItem.perform();\n        } else {\n          this.args.onAfterAddItem();\n        }\n      }\n      this.args.onCloseDialogAction?.();\n    }\n    afterUpdateRecordTask(dirty) {\n      this.args.onUpdateItem?.(dirty);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask() {\n      this.args.onRemoveItem?.(this.dirty);\n      this.args.onCloseDialogAction?.();\n    }\n    checkIfSpecsStillAllowed() {\n      const specs = this.dirty._data.specs;\n      const method = this?.dirty?._data?.method || '';\n      let filterBy = '';\n      if (R.equals(method, 'byDetails') || R.equals(method, 'byDetailsWithGrandTotals')) {\n        filterBy = 'itemName';\n      }\n      if (R.equals(method, 'byAllOrdersWithOneColumnRow') || R.equals(method, 'byAllOrdersWithOneColumnRowWithSummary')) {\n        filterBy = 'item';\n      }\n      if (RA.isNotNilOrEmpty(filterBy)) {\n        R.pipe(R.flatten, R.filter(R.pathEq(['_data', 'value'], filterBy)), R.forEach(specChild => {\n          this.removeSpecChild(specChild);\n        }))(specs);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"showEditor\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isEditing\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setDefaultForMethod\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaultForMethod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewCell\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewCell\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewRow\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewRow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewTransform\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewTransform\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadProduct\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"loadProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateTransform\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"updateTransform\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTransform\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTransform\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectSpec\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"selectSpec\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeRow\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"removeRow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSpecChild\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSpecChild\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterUpdateRecordTask\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"afterUpdateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"checkIfSpecsStillAllowed\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"checkIfSpecsStillAllowed\"), _class.prototype), _class);\n});","define(\"client/pods/components/specs/specs-editor/specs-table/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 SpecsSpecsEditorSpecsTableComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _class = class SpecsSpecsEditorSpecsTableComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"dragAndDrop\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _defineProperty(this, \"tagName\", 'span');\n      _defineProperty(this, \"classNames\", []);\n      _defineProperty(this, \"translate\", true);\n      _defineProperty(this, \"item\", null);\n      _defineProperty(this, \"isViewable\", true);\n      _defineProperty(this, \"labelKey\", 'label');\n      _defineProperty(this, \"isDraggable\", true);\n      _defineProperty(this, \"hasDropBelowContainer\", true);\n      _defineProperty(this, \"hasDropAboveContainer\", true);\n      _defineProperty(this, \"draggable\", true);\n      _initializerDefineProperty(this, \"productsFilters\", _descriptor4, this);\n      const productsFilters = this.search.setupFilters({\n        adapterName: 'products/filters',\n        defaultFiltersData: {\n          resultsProperty: 'productsList',\n          excludes: [{\n            key: 'setType',\n            value: 'isSetWithChoices'\n          }, {\n            key: 'setType',\n            value: 'hasVariants'\n          }]\n        }\n      });\n      this.productsFilters = productsFilters;\n    }\n    get _hasDropAboveContainer() {\n      if (this.hasDropAboveContainer && this.index === 0) {\n        return true;\n      }\n      return false;\n    }\n    get allowedSpecs() {\n      const dirty = this.args.dirty;\n      const availableNormalSpecs = dirty?.availableNormalSpecs || [];\n      const method = dirty.getData('method') || '';\n      if (R.equals(method, 'byDetails') || R.equals(method, 'byDetailsWithGrandTotals')) {\n        return R.reject(R.propEq('isAutoDetail', true))(availableNormalSpecs);\n      }\n      if (R.equals(method, 'byAllOrdersWithOneColumnRow') || R.equals(method, 'byAllOrdersWithOneColumnRowWithSummary')) {\n        return R.reject(R.propEq('value', 'item'))(availableNormalSpecs);\n      }\n      return availableNormalSpecs;\n    }\n\n    /**\n     * search product\n     */\n    *searchProductsTask({\n      adapterName = 'products',\n      query\n    }) {\n      if (query?.trim?.() !== '') {\n        const filters = this.productsFilters;\n        // filters.setData('query', query)\n\n        const results = yield this.crud.searchInputTask.perform({\n          adapterName: 'products',\n          filters,\n          component: this,\n          resultsProperty: 'productsList'\n        }, query);\n        return results;\n      }\n    }\n    addTableLookupValue(specChild) {\n      const tableLookupArray = specChild?._data?.options?.tableLookupArray || [];\n      tableLookupArray.pushObject(Ember.Object.create({\n        input: '',\n        output: ''\n      }));\n    }\n    removeTableLookupValue(specChild, tableLookupObject) {\n      const tableLookupArray = specChild?._data?.options?.tableLookupArray || [];\n      tableLookupArray.removeObject(tableLookupObject);\n    }\n    drop() {\n      if (this.onDrop) {\n        this.onDrop(...arguments);\n      }\n    }\n    select(disabled, item) {\n      if (!disabled) {\n        this.onSelect(item);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dragAndDrop\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"productsFilters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchProductsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchProductsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addTableLookupValue\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"addTableLookupValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTableLookupValue\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTableLookupValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"drop\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"drop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"select\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"select\"), _class.prototype), _class);\n});","define(\"client/pods/components/specs/specs-editor/specs-table/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zNa/RAGw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"row\\\",\\\"parentIndex\\\",\\\"specChild\\\",\\\"childIndex\\\",\\\"transformModel\\\",\\\"tableLookupObject\\\",\\\"@addNewRow\\\",\\\"@isReadonly\\\",\\\"@dirty\\\",\\\"@updateTransform\\\",\\\"@removeTransform\\\",\\\"@addNewTransform\\\",\\\"@isDisableItem\\\",\\\"@productsFilters\\\",\\\"@loadProduct\\\",\\\"@selectSpec\\\",\\\"@disabled\\\",\\\"@removeSpecChild\\\",\\\"@addNewCell\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"specs-container u-full-width\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-table--alt-rows u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,9,[\\\"sortedSpecs\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\\n        \\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@tagName\\\",\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\"],[\\\"tr\\\",[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],[23,0,[\\\"draggable\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDropCell\\\"]],[28,\\\"hash\\\",null,[[\\\"parentIndex\\\",\\\"childIndex\\\"],[[23,2,[]],[23,4,[]]]]],[23,9,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@onDragStart\\\",\\\"@draggable\\\",\\\"@data\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,4,[]]],null],[23,0,[\\\"draggable\\\"]],[28,\\\"hash\\\",null,[[\\\"parentIndex\\\",\\\"childIndex\\\"],[[23,2,[]],[23,4,[]]]]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@autofocus\\\",\\\"@value\\\"],[\\\"u-full-width\\\",true,[23,3,[\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"                  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@label\\\",\\\"@value\\\",\\\"@onSelect\\\",\\\"@translate\\\"],[true,[23,0,[\\\"allowedSpecs\\\"]],\\\"value\\\",\\\"label\\\",[23,3,[\\\"_data\\\",\\\"label\\\"]],[23,3,[\\\"_data\\\",\\\"value\\\"]],[28,\\\"fn\\\",[[23,16,[]],[23,3,[]]],null],false]]],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"value\\\"]],\\\"custom\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,3,[\\\"_data\\\",\\\"customText\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"value\\\"]],\\\"item\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@tagName\\\",\\\"@inputPvtClassNames\\\",\\\"@placeholder\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@hasAdvancedModal\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@selectedItemValueKey\\\",\\\"@hasSelectedKey\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@disabled\\\",\\\"@readonly\\\",\\\"@isRunning\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@onSearch\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"span\\\",\\\"table-form__input table-form__input--120\\\",\\\"search products\\\",true,[23,0,[\\\"productsList\\\"]],\\\"products/picker-modal\\\",\\\"_data._key\\\",\\\"_data.name\\\",[23,3,[\\\"_data\\\",\\\"itemCode\\\"]],\\\"_data.code\\\",\\\"_data._key\\\",[23,3,[\\\"_data\\\",\\\"itemKey\\\"]],\\\"fas fa-bookmark\\\",[23,13,[]],[23,13,[]],[23,0,[\\\"searchProductsTask\\\",\\\"isRunning\\\"]],[23,14,[]],true,[28,\\\"perform\\\",[[23,0,[\\\"searchProductsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\"],[[23,3,[\\\"_data\\\",\\\"itemCode\\\"]]]]]],null],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,15,[]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,15,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"                    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[23,3,[\\\"_data\\\",\\\"item\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"_data\\\",\\\"hideDefault\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"availableOptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@iconClassNames\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggleWhenFalse\\\",\\\"@onToggleWhenTrue\\\"],[\\\"element-icon--xs\\\",[23,8,[]],\\\"options\\\",[23,3,[\\\"hasOptions\\\"]],true,false,[28,\\\"fn\\\",[[23,11,[]],[23,3,[]]],null],[28,\\\"fn\\\",[[23,12,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"transforms\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"availableOptions\\\"]],[23,3,[\\\"hasOptions\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"spec-child__transform-container\\\"],[8],[0,\\\"\\\\n                        \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,3,[\\\"availableOptions\\\"]],\\\"value\\\",\\\"label\\\",true,[23,5,[\\\"_data\\\",\\\"value\\\"]],[28,\\\"fn\\\",[[23,10,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n                        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"fn\\\"]],\\\"concat\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                            \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@list\\\",\\\"@disabled\\\"],[\\\"fas fa-plus\\\",[23,5,[\\\"_data\\\",\\\"options\\\",\\\"prop\\\"]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                              \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@allowEmpty\\\",\\\"@list\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@model\\\",\\\"@valueKey\\\"],[true,[23,9,[\\\"availableCombineProps\\\"]],true,\\\"label\\\",\\\"prop\\\",false,[23,5,[]],\\\"_data.options.prop\\\"]]],[0,\\\"\\\\n                              \\\\n                            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                          \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionLabelKey\\\",\\\"@optionValueKey\\\"],[[23,9,[\\\"availableNormalSpecs\\\"]],false,[23,5,[\\\"_data\\\",\\\"options\\\",\\\"prop\\\"]],\\\"label\\\",\\\"prop\\\"]]],[0,\\\"\\\\n                          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"options\\\",\\\"prop\\\"]]],null,{\\\"statements\\\":[[0,\\\"                            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"join with\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                              \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@inputPvtClassNames\\\",\\\"@value\\\"],[true,\\\"input--50\\\",[23,5,[\\\"_data\\\",\\\"options\\\",\\\"joinWith\\\"]]]]],[0,\\\"\\\\n                            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"fn\\\"]],\\\"tableLookup\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content table-form--no-border u-full-width\\\"],[8],[0,\\\"\\\\n                            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                                \\\"],[1,[28,\\\"tt\\\",[\\\"input value\\\"],null],false],[0,\\\"\\\\n                              \\\"],[9],[0,\\\"\\\\n                              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                                \\\"],[1,[28,\\\"tt\\\",[\\\"output value\\\"],null],false],[0,\\\"\\\\n                              \\\"],[9],[0,\\\"\\\\n                              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                              \\\"],[9],[0,\\\"\\\\n                            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"options\\\",\\\"tableLookupArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"                              \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"                                  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"input--80\\\",[23,8,[]],[23,6,[\\\"input\\\"]]]]],[0,\\\"\\\\n                                \\\"],[9],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"                                  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"input--80\\\",[23,8,[]],[23,6,[\\\"output\\\"]]]]],[0,\\\"\\\\n                                \\\"],[9],[0,\\\"\\\\n\\\\n                                \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                                  \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@disabled\\\",\\\"@classNames\\\",\\\"@tabindex\\\",\\\"@onSubmit\\\"],[[22,\\\"isReadonly\\\"],\\\"u-close-btn\\\",-1,[28,\\\"action\\\",[[23,0,[]],\\\"removeTableLookupValue\\\",[23,5,[]],[23,6,[]]],null]]]],[0,\\\"\\\\n                                \\\"],[9],[0,\\\"\\\\n                              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"                          \\\"],[9],[0,\\\"\\\\n\\\\n                          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",[28,\\\"action\\\",[[23,0,[]],\\\"addTableLookupValue\\\",[23,5,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"isDetail\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[\\\"doc_detail\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n                \\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"                  \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\",\\\"@onSubmit\\\"],[[23,17,[]],\\\"\\\",\\\"remove cell\\\",true,\\\"are you sure you want to remove this cell?\\\",true,[28,\\\"fn\\\",[[23,18,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\"],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add cell\\\",[28,\\\"fn\\\",[[23,19,[]],[23,2,[]]],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,9,[\\\"_data\\\",\\\"specs\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n          \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"spec-child__cell spec-child__cell--add-row\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",[28,\\\"fn\\\",[[23,7,[]],-1],null]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/specs/specs-editor/specs-table/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/specs/specs-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MXFfHYwJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@disabled\\\",\\\"@formGroupClassNames\\\",\\\"@tab\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"dirty\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"specsEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"exports\\\",[23,8,[]],[23,4,[]],[23,7,[]],[23,6,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"export method\\\",\\\"exportMethod_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@isRequired\\\"],[[23,1,[]],\\\"description\\\",[23,0,[\\\"errors\\\"]],\\\"description\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@placeholder\\\",\\\"@value\\\",\\\"@isRequired\\\"],[true,\\\"31 characters max\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"description\\\"]],true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"method\\\",[23,0,[\\\"errors\\\"]],\\\"method\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"specs-lists-method\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"method\\\"]],[23,0,[\\\"setDefaultForMethod\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@translate\\\"],[[23,1,[]],\\\"auto generate detail row\\\",[23,0,[\\\"errors\\\"]],\\\"autoGenerateByDetailsSummary\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,0,[\\\"isAutoGenerateByDetailsSummaryTogglerDisabled\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"autoGenerateByDetailsSummary\\\"]],true,false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"autoGenerateByDetailsSummary\\\"]],[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"method\\\"]],\\\"byAllOrdersWithOneColumnRow\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"method\\\"]],\\\"byAllOrdersWithOneColumnRowWithSummary\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@translate\\\"],[[23,1,[]],\\\"repeat order info for each detail row\\\",[23,0,[\\\"errors\\\"]],\\\"fillInfoRow\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"fillInfoRow\\\"]],true,false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"autoGenerateByDetailsSummary\\\"]],[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"method\\\"]],\\\"byDetailsWithGrandTotals\\\"],null],[28,\\\"eq\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"method\\\"]],\\\"byDetails\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"details\\\",\\\"details_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@translate\\\"],[[23,1,[]],\\\"generate total qty per row\\\",[23,0,[\\\"errors\\\"]],\\\"generateTotalQtyPerRow\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,5,[]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"generateTotalQtyPerRow\\\"]],true,false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@translate\\\"],[[23,1,[]],\\\"sort detail row by campaign detail index\\\",[23,0,[\\\"errors\\\"]],\\\"shopSortOrderDetailsByIndex\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,5,[]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"shopSortOrderDetailsByIndex\\\"]],true,false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,3,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,4,[]],\\\"customize worksheet\\\",\\\"customize_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"specs/specs-editor/specs-table\\\",[],[[\\\"@dirty\\\",\\\"@removeRow\\\",\\\"@selectSpec\\\",\\\"@loadProduct\\\",\\\"@removeTransform\\\",\\\"@addNewTransform\\\",\\\"@updateTransform\\\",\\\"@removeSpecChild\\\",\\\"@addNewCell\\\",\\\"@addNewRow\\\",\\\"@crud\\\"],[[23,0,[\\\"dirty\\\"]],[23,0,[\\\"removeRow\\\"]],[23,0,[\\\"selectSpec\\\"]],[23,0,[\\\"loadProduct\\\"]],[23,0,[\\\"removeTransform\\\"]],[23,0,[\\\"addNewTransform\\\"]],[23,0,[\\\"updateTransform\\\"]],[23,0,[\\\"removeSpecChild\\\"]],[23,0,[\\\"addNewCell\\\"]],[23,0,[\\\"addNewRow\\\"]],[23,0,[\\\"crud\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@model\\\",\\\"@hasErrors\\\",\\\"@errors\\\"],[[23,0,[\\\"dirty\\\"]],[23,0,[\\\"hasErrors\\\"]],[23,0,[\\\"errors\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"specs\\\",[23,0,[]],[23,0,[\\\"dirty\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterRemoveRecordTask\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,0,[\\\"dirty\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"component\\\",\\\"onAfter\\\"],[\\\"specs\\\",[23,0,[\\\"dirty\\\"]],[23,0,[]],[28,\\\"fn\\\",[[23,0,[\\\"afterUpdateRecordTask\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"component\\\",\\\"onAfter\\\"],[\\\"specs\\\",[23,0,[\\\"dirty\\\"]],[23,0,[]],[28,\\\"fn\\\",[[23,0,[\\\"afterCreateRecordTask\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/specs/specs-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/status-schedules/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 StatusSchedulesComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _class = class StatusSchedulesComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isDateOnly\", _descriptor, this);\n      _initializerDefineProperty(this, \"isSaving\", _descriptor2, this);\n    }\n    willDestroy() {\n      if (this.isDestroyed) {\n        return;\n      }\n      if (this?.isSaving) {\n        return;\n      }\n      const model = this.args.model;\n      const originalModel = model.originalModel;\n      if (RA.isNotNilOrEmpty(originalModel)) {\n        const scheduleProp = this.args?.type;\n        const hasScheduleProp = R.pipe(R.concat('has'), R.adjust(3, R.toUpper), R.join(''))(scheduleProp);\n        const originalHasSchedules = R.pathOr(false, ['_data', hasScheduleProp])(originalModel);\n        const originalSchedules = R.pathOr([], ['_data', scheduleProp])(originalModel);\n        model.setData(hasScheduleProp, originalHasSchedules);\n        model.setData(scheduleProp, originalSchedules);\n      }\n    }\n    setupInitSchedule() {\n      const hasSchedules = this.args?.hasSchedules || false;\n      const schedules = this.args?.schedules || [];\n      const model = this.args?.model || {};\n      if (hasSchedules && RA.isNilOrEmpty(schedules)) {\n        model.addSchedule({\n          schedulesProp: this.args?.type\n        });\n      }\n    }\n    onSubmitAddNewSchedule() {\n      const model = this.args?.model;\n      model.addSchedule({\n        schedulesProp: this.args?.type\n      });\n    }\n    saveSchedules() {\n      this.isSaving = true;\n      if (this.args.onAfterSave) {\n        this.args.onAfterSave();\n      }\n      this.args.onCloseDialogAction();\n    }\n    onToggleSetSchedule() {\n      this.setupInitSchedule();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDateOnly\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args?.isDateOnly || false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isSaving\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSubmitAddNewSchedule\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitAddNewSchedule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveSchedules\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"saveSchedules\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToggleSetSchedule\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onToggleSetSchedule\"), _class.prototype), _class);\n});","define(\"client/pods/components/status-schedules/status-schedules-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 StatusSchedulesRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._action, _dec6 = Ember._action, _class = class StatusSchedulesRowComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n    }\n    get dateInputType() {\n      const isDateOnly = this.args?.isDateOnly || false;\n      if (isDateOnly) {\n        return 'date';\n      }\n      return 'datetime-local';\n    }\n    get statusClass() {\n      const status = this.args.schedule.getData('status');\n      if (status === this.constants.status.active) {\n        return 'is-primary';\n      }\n      return 'is-danger';\n    }\n    checkDateError() {\n      const schedule = this.args?.schedule || {};\n      const dateStartZ = R.pathOr('', ['_data', 'dateStartZ'])(schedule);\n      const dateEndZ = R.pathOr('', ['_data', 'dateEndZ'])(schedule);\n      let isDateError = false;\n      if (dateStartZ && dateEndZ) {\n        const isDateOnly = this.args?.isDateOnly || false;\n        if (isDateOnly) {\n          if (dateEndZ < dateStartZ) {\n            isDateError = true;\n          }\n        } else {\n          if (dateEndZ <= dateStartZ) {\n            isDateError = true;\n          }\n        }\n      }\n      schedule.set('isDateError', isDateError);\n    }\n    checkOverlapSchedule() {\n      const model = this.args?.model || {};\n      const overlapSchedule = this._getOverlapSchedule();\n      const schedules = this.args?.schedules || [];\n      if (RA.isNotNilOrEmpty(schedules) && overlapSchedule.hasOverlap) {\n        const overlapIds = overlapSchedule.ids || [];\n        R.forEach(schedule => {\n          const scheduleId = schedule.getData('scheduleId');\n          if (R.includes(scheduleId, overlapIds)) {\n            schedule.set('hasDateConflict', true);\n          } else {\n            schedule.set('hasDateConflict', false);\n          }\n        })(schedules);\n        model.set('hasScheduleDateConflict', true);\n      }\n      if (RA.isNotNilOrEmpty(schedules) && !overlapSchedule.hasOverlap) {\n        R.forEach(schedule => {\n          schedule.set('hasDateConflict', false);\n        })(schedules);\n        model.set('hasScheduleDateConflict', false);\n      }\n    }\n    _getOverlapSchedule() {\n      let schedules = this.args?.schedules || [];\n      schedules = R.reject(R.allPass([R.pathEq(['_data', 'dateStartZ'], ''), R.pathEq(['_data', 'dateEndZ'], '')]))(schedules);\n      const emptyStartDateZSchedules = R.filter(R.pathEq(['_data', 'dateStartZ'], ''))(schedules);\n      if (R.length(emptyStartDateZSchedules) > 1) {\n        return {\n          hasOverlap: true,\n          ids: R.pipe(R.pluck('_data'), R.pluck('scheduleId'))(emptyStartDateZSchedules)\n        };\n      }\n      const emptyDateEndZSchedules = R.filter(R.pathEq(['_data', 'dateEndZ'], ''))(schedules);\n      if (R.length(emptyDateEndZSchedules) > 1) {\n        return {\n          hasOverlap: true,\n          ids: R.pipe(R.pluck('_data'), R.pluck('scheduleId'))(emptyDateEndZSchedules)\n        };\n      }\n      const emptyStartDateZSchedule = R.head(emptyStartDateZSchedules) || {};\n      const emptyDateEndZSchedule = R.head(emptyDateEndZSchedules) || {};\n      const scheduleWithoutEmptyDate = R.reject(R.anyPass([R.pathEq(['_data', 'startDateZ'], ''), R.pathEq(['_data', 'dateEndZ'], '')]))(schedules);\n      const isDateOnly = this.args?.isDateOnly || false;\n      const overlappedIds = [];\n      const hasOverlap = R.pipe(R.sortBy(R.path(['_data', 'dateEndZ'])), R.sortBy(R.path(['_data', 'dateStartZ'])), R.prepend(emptyStartDateZSchedule), R.append(emptyDateEndZSchedule), R.reject(RA.isNilOrEmpty), RA.mapIndexed((data, i, sortedDatas) => {\n        const dateEndZ = data.getData('dateEndZ') || '';\n        let nextDateStartZ = '';\n        const nextData = sortedDatas[i + 1];\n        if (RA.isNotNilOrEmpty(nextData)) {\n          nextDateStartZ = nextData.getData('dateStartZ');\n          if (isDateOnly) {\n            if (nextDateStartZ < dateEndZ) {\n              overlappedIds.push(data.getData('scheduleId'));\n              overlappedIds.push(nextData.getData('scheduleId'));\n              return true;\n            }\n          } else {\n            if (nextDateStartZ <= dateEndZ) {\n              overlappedIds.push(data.getData('scheduleId'));\n              overlappedIds.push(nextData.getData('scheduleId'));\n              return true;\n            }\n          }\n        }\n        return false;\n      }), R.includes(true))(scheduleWithoutEmptyDate);\n      return {\n        hasOverlap,\n        ids: R.uniq(overlappedIds)\n      };\n    }\n    onSubmitRemoveSchedule(schedule) {\n      const schedules = this.args.schedules;\n      schedules.removeObject(schedule);\n      this.checkOverlapSchedule();\n    }\n    onChangeSetActivation() {\n      const isDateOnly = this.args?.isDateOnly || false;\n      const schedule = this.args?.schedule || {};\n      const dateStartZ = schedule?._data?.dateStartZ || '';\n      const dateEndZ = schedule?._data?.dateEndZ || '';\n      if (isDateOnly) {\n        if (dateStartZ) {\n          schedule.setData('dateStartZ', this.date.getStartOfDayZ(dateStartZ));\n        }\n        if (dateEndZ) {\n          schedule.setData('dateEndZ', this.date.getEndOfDayZ(dateEndZ));\n        }\n      } else {\n        if (dateEndZ) {\n          const newDateEndZ = this.date.getMoment(dateEndZ).set('seconds', 59).set('millisecond', 999).toISOString();\n          schedule.setData('dateEndZ', newDateEndZ);\n        }\n      }\n      this.checkDateError();\n      this.checkOverlapSchedule();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSubmitRemoveSchedule\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitRemoveSchedule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeSetActivation\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeSetActivation\"), _class.prototype), _class);\n});","define(\"client/pods/components/status-schedules/status-schedules-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"RTE3LFDz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@type\\\",\\\"@isReadonly\\\",\\\"@listsStatuses\\\",\\\"@schedule\\\",\\\"@schedules\\\",\\\"@model\\\",\\\"@customComponent\\\",\\\"@hasCustomComponent\\\"],\\\"statements\\\":[[7,\\\"tr\\\",false],[12,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,4,[\\\"isActive\\\"]],\\\"u-bg--green\\\",\\\"u-bg--orange\\\"],null]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@context\\\",\\\"@dateInputType\\\",\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\"],[[28,\\\"concat\\\",[[23,1,[]],\\\".dateStartZ\\\"],null],[23,0,[\\\"dateInputType\\\"]],\\\"_data.dateStartZ\\\",[23,4,[]],[23,4,[\\\"_data\\\",\\\"dateStartZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@context\\\",\\\"@dateInputType\\\",\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\"],[[28,\\\"concat\\\",[[23,1,[]],\\\".dateEndZ\\\"],null],[23,0,[\\\"dateInputType\\\"]],\\\"_data.dateEndZ\\\",[23,4,[]],[23,4,[\\\"_data\\\",\\\"dateEndZ\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onChangeSetActivation\\\"]]],null]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"component\\\",[[23,7,[]]],[[\\\"isBody\\\",\\\"model\\\",\\\"schedules\\\",\\\"schedule\\\",\\\"isReadonly\\\"],[true,[23,6,[]],[23,5,[]],[23,4,[]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@context\\\",\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[[28,\\\"concat\\\",[[23,1,[]],\\\".status\\\"],null],true,true,[23,0,[\\\"statusClass\\\"]],true,[23,2,[]],true,[23,3,[]],\\\"_data.value\\\",\\\"_data.label\\\",[23,4,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"fas fa-trash\\\",\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"onSubmitRemoveSchedule\\\"]],[23,4,[]]],null],[23,2,[]]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table__td-no-border u-v-align-middle-important\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"hasDateConflict\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"fas fa-exclamation-circle has-text-danger \\\"],[8],[9],[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"error-msg\\\"],[8],[1,[28,\\\"tt\\\",[\\\"date conflict\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,4,[\\\"isDateError\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"fas fa-exclamation-circle has-text-danger \\\"],[8],[9],[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"error-msg\\\"],[8],[1,[28,\\\"tt\\\",[\\\"date error\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/status-schedules/status-schedules-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/status-schedules/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zkOgx5Lm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"schedule\\\",\\\"@schedules\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@listsStatuses\\\",\\\"@type\\\",\\\"@hasCustomComponent\\\",\\\"@customComponent\\\",\\\"@errors\\\",\\\"@hasSchedules\\\",\\\"@isRunning\\\",\\\"@onCloseDialogAction\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"schedules\\\",[23,9,[]],[23,6,[]],\\\"campaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[23,3,[]],[23,10,[]],[28,\\\"fn\\\",[[23,0,[\\\"onToggleSetSchedule\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content table-form--with-date-picker table-form--no-last-border\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"start date\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"end date\\\"],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"component\\\",[[23,8,[]]],[[\\\"isHeader\\\",\\\"model\\\",\\\"schedules\\\"],[true,[23,4,[]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"        \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n        \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"status-schedules/status-schedules-row\\\",[],[[\\\"@schedules\\\",\\\"@schedule\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@listsStatuses\\\",\\\"@type\\\",\\\"@isDateOnly\\\",\\\"@hasCustomComponent\\\",\\\"@customComponent\\\"],[[23,2,[]],[23,1,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"isDateOnly\\\"]],[23,7,[]],[23,8,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",\\\"add schedule\\\",[23,3,[]],[28,\\\"fn\\\",[[23,0,[\\\"onSubmitAddNewSchedule\\\"]]],null]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/error-wrapper\\\",[],[[\\\"@context\\\"],[[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,11,[]],[23,12,[]]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[false,\\\"done\\\",[28,\\\"or\\\",[[23,13,[]],[23,4,[\\\"hasScheduleDateConflict\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"saveSchedules\\\"]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/status-schedules/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/files/files-default-image/component\", [\"exports\", \"client/pods/components/store-location/files/mixins/store-location-files\"], function (_exports, _storeLocationFiles) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_storeLocationFiles.default, {\n    fetchUploads: true\n  });\n});","define(\"client/pods/components/store-location/files/files-default-image/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"rYGpB1bd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"response\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"resourceKey\\\"]]],null,{\\\"statements\\\":[[4,\\\"files/files-fetcher\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"adapterName\\\",\\\"fetchUploadsOnInit\\\",\\\"fetchUploadsCollectionOnInit\\\"],[[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],\\\"uploads/collection\\\",false,true]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\",\\\"width\\\",\\\"height\\\"],[[23,1,[\\\"uploadsCollection\\\",\\\"defaultImageUuid\\\"]],[24,[\\\"transform\\\"]],[24,[\\\"width\\\"]],[24,[\\\"height\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/files/files-default-image/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/files/files-gallery-uploader/component\", [\"exports\", \"client/pods/components/store-location/files/mixins/store-location-files\"], function (_exports, _storeLocationFiles) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_storeLocationFiles.default, {\n    fetchUploads: true,\n    allowSetDefault: true,\n    allowUploads: false,\n    showDefaultImagePreview: true\n  });\n});","define(\"client/pods/components/store-location/files/files-gallery-uploader/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Fv7W/bnw\",\n    \"block\": \"{\\\"symbols\\\":[\\\"response\\\"],\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"classNames\\\"],[\\\"has-text-centered\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"files/files-fetcher\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"adapterName\\\",\\\"fetchUploadsOnInit\\\",\\\"fetchUploadsCollectionOnInit\\\"],[[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],\\\"uploads/collection\\\",false,true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[28,\\\"files/files-gallery\\\",null,[[\\\"adapterName\\\",\\\"showDefaultImagePreview\\\",\\\"uploads\\\",\\\"defaultImage\\\",\\\"onSetAsDefaultImageTask\\\",\\\"label\\\",\\\"translate\\\",\\\"allowSetDefault\\\",\\\"resource\\\",\\\"resourceKey\\\"],[\\\"uploads/collection\\\",[24,[\\\"showDefaultImagePreview\\\"]],[23,1,[\\\"uploadsCollection\\\",\\\"_data\\\",\\\"uploads\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"defaultImage\\\"]],[28,\\\"perform\\\",[[24,[\\\"setAsDefaultImageTask\\\"]]],null],[24,[\\\"label\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"allowSetDefault\\\"]],[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"allowUploads\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-row\\\",null,[[\\\"classNames\\\"],[\\\"has-text-centered\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"files/files-uploader\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\",\\\"label\\\",\\\"tagName\\\"],[[24,[\\\"resource\\\"]],[24,[\\\"resourceKey\\\"]],\\\"upload images\\\",\\\"span\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/files/files-gallery-uploader/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/files/mixins/store-location-files\", [\"exports\", \"ember-concurrency\", \"client/mixins/crud\", \"client/utils/nventor\"], function (_exports, _emberConcurrency, _crud, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { computed } from '@ember/object'\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, {\n    adapterNameForSetDefault: 'store-location',\n    adapterName: 'store-location',\n    // fetchUploadsTask: task(function * () {\n    //   const resourceKey = this.get('resourceKey')\n    //   if (resourceKey) {\n    //     const adapterName = this.get('adapterName')\n    //     const storeLocation = yield this.get('dataManager').findRecord(adapterName, `/${resourceKey}`)\n    //     this.set('storeLocation', storeLocation)\n    //   }\n    // }),\n\n    setAsDefaultImageTask: (0, _emberConcurrency.task)(function* (file) {\n      if (this.allowSetDefault) {\n        // no need to send entire record over, should only update record, not replace\n        const adapterNameForSetDefault = this.adapterNameForSetDefault;\n        const resourceKey = this.resourceKey;\n        const storeLocation = yield this.dataManager.findRecord({\n          adapterName: adapterNameForSetDefault,\n          appendPath: `/${resourceKey}`\n        });\n        const dirty = this.dataManager.getDirtyRecord(adapterNameForSetDefault, storeLocation);\n        dirty.setData('defaultImage', file._data.uuid);\n        try {\n          return yield this.dataManager.updateRecord({\n            adapterName: adapterNameForSetDefault,\n            dirty\n          });\n        } catch (err) {\n          this.set('errors', err.data);\n          _nventor.default.throw('setAsDefaultImageTask failed', err);\n        }\n      }\n    }).drop()\n  });\n});","define(\"client/pods/components/store-location/panels-dash/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 StoreLocationPanelsDashComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _class = class StoreLocationPanelsDashComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor2, this);\n      _defineProperty(this, \"adapterName\", 'store-location');\n      this.crud.addLists(this, ['store-location/lists/tags', 'statuses']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _class);\n});","define(\"client/pods/components/store-location/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gWNHYU7y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@filters\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@results\\\",\\\"@tab\\\",\\\"@onPaginationTask\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content flex-container-row flex-container--wrap flex-container--justify-center\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/table-view\\\",[],[[\\\"@detailsRowComponent\\\",\\\"@filters\\\",\\\"@lists\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@onMainAction\\\",\\\"@results\\\",\\\"@list\\\",\\\"@tab\\\",\\\"@tableViewOptions\\\"],[\\\"store-location/table-view/detail-row\\\",[23,1,[]],[23,0,[\\\"crud\\\",\\\"lists\\\"]],[23,2,[]],[23,3,[]],[23,2,[]],[23,4,[]],[23,4,[]],[23,5,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"isAllowReorder\\\"],[[23,0,[\\\"adapterName\\\"]],true]]]]]],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\",\\\"@tagName\\\"],[[23,1,[]],[23,4,[]],[23,6,[]],true,\\\"span\\\"]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/panels-display/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 StoreLocationPanelsDisplayComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _class = class StoreLocationPanelsDisplayComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"model\", _descriptor2, this);\n      _defineProperty(this, \"adapterName\", 'store-location');\n      this.crud.addLists(this, ['store-location/lists/tags', 'statuses']);\n      this.model = R.pathOr({}, ['args', 'tab', 'model'])(this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _class);\n});","define(\"client/pods/components/store-location/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"EPacw6Hb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onEdit\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"store-location/store-location-editor\\\",[],[[\\\"@errors\\\",\\\"@isDisabled\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onEdit\\\",\\\"@tab\\\"],[[23,1,[]],true,false,false,true,[23,0,[\\\"model\\\"]],[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/panels-edit/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 StoreLocationPanelsEditComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _class = class StoreLocationPanelsEditComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor2, this);\n      _defineProperty(this, \"adapterName\", 'store-location');\n      this.crud.addLists(this, ['store-location/lists/tags', 'statuses']);\n      const model = R.pathOr({}, ['args', 'tab', 'model'])(this);\n      this.dirty = this.crud.setupDirty({\n        model,\n        adapterName: this.adapterName\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _class);\n});","define(\"client/pods/components/store-location/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CVfwAdKZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@errors\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onDisplay\\\"],\\\"statements\\\":[[5,\\\"store-location/store-location-editor\\\",[],[[\\\"@tab\\\",\\\"@errors\\\",\\\"@isDisabled\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onDash\\\",\\\"@onDisplay\\\",\\\"@saveTask\\\"],[[23,1,[]],[23,2,[]],false,true,false,false,[23,0,[\\\"dirty\\\"]],[23,3,[]],[23,4,[]],[23,5,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/panels-new/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, R, _emberConcurrencyDecorators) {\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 StoreLocationPanelsNewComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _class = class StoreLocationPanelsNewComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", 'store-location');\n      this.crud.addLists(this, ['store-location/lists/tags', 'statuses']);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const master = this.args.master;\n      const result = yield this.server.call('GET', `api/protected/store-location/index/next`, {\n        master\n      });\n      const index = result.data ?? 1;\n      const data = {\n        master,\n        name: this.args.name || '',\n        index,\n        status: this.constants.status.active\n      };\n      this.model = this.crud.setupNewRecord({\n        data,\n        adapterName: this.adapterName\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/store-location/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"FMQzOQQZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@onCancel\\\",\\\"@onDisplay\\\",\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"store-location/store-location-editor\\\",[],[[\\\"@errors\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@onCancel\\\",\\\"@onDisplay\\\",\\\"@saveTask\\\",\\\"@tab\\\"],[[23,1,[]],true,[23,0,[\\\"model\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/search-bar/component\", [\"exports\", \"ramda\", \"client/mixins/products-list-by\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, R, _productsListBy, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _productsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    query: '',\n    filters: null,\n    autofocus: true,\n    adapterName: 'products',\n    searchMethod: 'searchInputTask',\n    searchOptions: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/filters/search', 'products/lists/filters/sort', 'products/lists/filters/status', 'products/lists/types', 'filters/count', 'filters/sortDirection']);\n    },\n    searchTask: (0, _emberConcurrency.task)(function* (customSearchOptions, defaultSearchOptions, ...rest) {\n      const searchMethod = this.searchMethod;\n      const searchOptions = R.mergeRight(defaultSearchOptions, customSearchOptions);\n      return yield this.get(searchMethod).perform(searchOptions, ...rest);\n    })\n  });\n});","define(\"client/pods/components/store-location/search-bar/search-results/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['products/lists/filters/status']);\n    }\n  });\n});","define(\"client/pods/components/store-location/search-bar/search-results/search-row/component\", [\"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 = Ember.Component.extend({\n    tagName: 'tr'\n  });\n});","define(\"client/pods/components/store-location/search-bar/search-results/search-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1rrcEsbS\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isHeaders\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-search\\\"]]],false],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"product\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"on sale\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"inclusive price\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isDetailRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"products/files/files-default-image\\\",[],[[\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@height\\\"],[\\\"products\\\",[24,[\\\"item\\\",\\\"_data\\\",\\\"_key\\\"]],\\\"80\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-left u-padding--3\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"code\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setType\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"tt\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"setType\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[true,[24,[\\\"item\\\",\\\"_data\\\",\\\"onSale\\\"]],\\\"on\\\",\\\"off\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"channels/shop/items/item-price\\\",null,[[\\\"campaign\\\",\\\"item\\\"],[[24,[\\\"campaign\\\"]],[24,[\\\"item\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table-form__td--no-border-right\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"translate\\\",\\\"value\\\",\\\"optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],false,[24,[\\\"item\\\",\\\"_data\\\",\\\"productTags\\\"]],\\\"_data._key\\\"]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"tagClassNames\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"statusTagClassName\\\"]],[24,[\\\"item\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"add\\\",[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelect\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/search-bar/search-results/search-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/search-bar/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"bcDn6fYx\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"index\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table-form is-form-content u-full-width\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"products/search-bar/search-results/search-row\\\",null,[[\\\"isHeaders\\\"],[true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"products/search-bar/search-results/search-row\\\",null,[[\\\"isDetailRow\\\",\\\"tab\\\",\\\"item\\\",\\\"onSelect\\\"],[true,[24,[\\\"tab\\\"]],[23,1,[]],[24,[\\\"onSelect\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/search-bar/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/search-bar/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KLaVXjPu\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"placeholder\\\",\\\"value\\\",\\\"isRunning\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[[24,[\\\"autofocus\\\"]],\\\"store locations\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[24,[\\\"searchTask\\\",\\\"isRunning\\\"]],[24,[\\\"listByTask\\\",\\\"isRunning\\\"]]],null],true,[28,\\\"perform\\\",[[24,[\\\"searchTask\\\"]],[24,[\\\"searchOptions\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"store-location/search-filters\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"results\\\"],[[24,[\\\"adapterName\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/search-bar/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/search-filters/component\", [\"exports\", \"client/mixins/store-location-list-by\", \"client/mixins/crud\"], function (_exports, _storeLocationListBy, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _storeLocationListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['store-location/lists/filters/search', 'store-location/lists/filters/sort', 'store-location/lists/filters/status', 'filters/count', 'filters/sortDirection']);\n    }\n  });\n});","define(\"client/pods/components/store-location/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lU91Yoto\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"store-location-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\",\\\"byLatest\\\"],[[24,[\\\"filters\\\"]],true]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort by\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"store-location-lists-filters-sort\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"by\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"sort direction\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-sortDirection\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"sort\\\",\\\"direction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"store-location-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"store-location-lists-filters-status\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.status\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/search-results/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['statuses']);\n    },\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/store-location/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"l9kuBBEE\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"list-results__table\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"list-results__table-thumb\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"files/image-item\\\",null,[[\\\"image\\\",\\\"transform\\\"],[[24,[\\\"result\\\",\\\"defaultImage\\\"]],\\\"/-/resize/40x\\\"]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"tagClassNames\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"statusTagClassName\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/store-location-card/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 StoreLocationStoreLocationCardComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _class = class StoreLocationStoreLocationCardComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['store-location/lists/tags', 'statuses']);\n    }\n    get isAdded() {\n      const storeLocation = this.args.model;\n      const sliderStoreLocationArray = this.args.sliderStoreLocationArray;\n      return sliderStoreLocationArray.includes(storeLocation);\n    }\n    emptyFn(data) {\n      return data;\n    }\n    onClick() {\n      const onDisplay = R.pathOr(this.emptyFn, ['args', 'onDisplay'])(this);\n      onDisplay(this.args.model);\n    }\n    onRemove() {\n      const onRemove = R.pathOr(this.emptyFn, ['args', 'onRemove'])(this);\n      onRemove(this.args.model);\n    }\n    onAdd() {\n      const onAdd = R.pathOr(this.emptyFn, ['args', 'onAdd'])(this);\n      onAdd(this.args.model);\n    }\n    onPreview() {\n      const onPreview = R.pathOr(this.emptyFn, ['args', 'onPreview'])(this);\n      onPreview(this.args.model);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onRemove\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAdd\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onAdd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPreview\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onPreview\"), _class.prototype), _class);\n});","define(\"client/pods/components/store-location/store-location-card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"27rPwRQ4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@onPreview\\\",\\\"@onRemove\\\",\\\"@onAdd\\\",\\\"@topRightRemove\\\",\\\"&attrs\\\",\\\"@compactMode\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"store-location-card__container\\\"],[13,6],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"onClick\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-image\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-1by1\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"store-location/files/files-default-image\\\",[],[[\\\"@fetchUploads\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\"],[true,[23,1,[]],\\\"store-location\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]],\\\"/-/scale_crop/500x500/smart\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-content store-location-card__title-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"title is-5\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-medium bigordr-slider-image-delete-btn\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,5,[]],[23,1,[]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-image\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"figure\\\",true],[10,\\\"class\\\",\\\"image is-1by1\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"store-location/files/files-default-image\\\",[],[[\\\"@fetchUploads\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\"],[true,[23,1,[]],\\\"store-location\\\",[23,1,[\\\"_data\\\",\\\"_key\\\"]],\\\"/-/scale_crop/500x500/smart\\\"]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-content store-location-card__title-container\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@tagClassNames\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,1,[\\\"statusClass\\\"]],[23,1,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"title is-5\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content store-location-card__desc-container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"froala\\\",[],[[\\\"@basicToolbar\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[true,true,[23,1,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",[23,0,[\\\"onPreview\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isAdded\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-trash\\\",[23,0,[\\\"onRemove\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"isAdded\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plus\\\",[23,0,[\\\"onAdd\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/store-location-card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/store-location-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 StoreLocationStoreLocationEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('application'), _class = class StoreLocationStoreLocationEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n      _defineProperty(this, \"adapterName\", 'store-location');\n      this.crud.addLists(this, ['store-location/lists/tags', 'statuses']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/store-location/store-location-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"c77V5f+7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@disabled\\\",\\\"@onDash\\\",\\\"@onEdit\\\",\\\"@onRemoveRecordTask\\\",\\\"@isNew\\\",\\\"@saveTask\\\",\\\"@onCancel\\\",\\\"@onDisplay\\\",\\\"@errors\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,3,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[28,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"_key\\\"]],\\\"edit\\\",\\\"new\\\"],null]],null],false],[0,\\\": \\\\n          \\\"],[1,[23,3,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"store-locations\\\",false,true,[28,\\\"if\\\",[[23,17,[]],[23,17,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"store-locations\\\",[23,16,[]],[23,4,[]],[23,15,[]],[23,14,[]]]]]],null],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"status_group\\\",[23,1,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"status\\\",[23,1,[]],[23,13,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasStatusBadge\\\",\\\"@statusBadgeClassNames\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,3,[\\\"statusClass\\\"]],true,[23,18,[]],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,3,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"index\\\",[23,1,[]],true,\\\"display order\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@classNames\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"input--80\\\",[23,18,[]],[23,3,[\\\"_data\\\",\\\"index\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"basicInformation_group\\\",[23,1,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"name\\\",[22,\\\"errors\\\"],\\\"name\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,18,[]],[23,3,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"address\\\",[22,\\\"errors\\\"],\\\"address\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,18,[]],[23,3,[\\\"_data\\\",\\\"address\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"telephone\\\",[22,\\\"errors\\\"],\\\"telephone\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,18,[]],[23,3,[\\\"_data\\\",\\\"telephone\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"short description\\\",[22,\\\"errors\\\"],\\\"description\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,18,[]],[23,3,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"include in seo shop locations\\\",[22,\\\"errors\\\"],\\\"isShopLocation\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,18,[]],[23,3,[\\\"_data\\\",\\\"isShopLocation\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"uploads_group\\\",[23,1,[]],\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"uploads\\\",[23,1,[]],[23,13,[]],\\\"images\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@adapterName\\\",\\\"@allowSetDefault\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\"],[[23,4,[]],\\\"uploads/collection\\\",true,true,[23,3,[]],false,\\\"store-location\\\",[23,3,[\\\"_data\\\",\\\"_key\\\"]],true]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"tags_group\\\",[23,1,[]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"tags\\\",[23,1,[]],[23,13,[]],\\\"tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,18,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"store-location-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"store-location/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"store-location-lists-tags\\\"]],[23,3,[]],true,\\\"_data._key\\\",[22,\\\"tab\\\"],false,\\\"_data.tags\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"store-location-lists-tags\\\"]],\\\"_data._key\\\",false,[23,3,[\\\"_data\\\",\\\"tags\\\"]]]]],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,4,[]],\\\"openHours_group\\\",[23,1,[]],\\\"open hours\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"open-hours\\\",[],[[\\\"@allowCopyTime\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[true,[23,1,[]],[23,18,[]],[23,3,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@errors\\\",\\\"@hasErrors\\\",\\\"@model\\\"],[[22,\\\"errors\\\"],[22,\\\"hasErrors\\\"],[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,19,[]],[23,9,[]]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,3,[\\\"_data\\\",\\\"isVariantChild\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,5,[]],[23,8,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,3,[]],true,[23,6,[]]]]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,5,[]],[23,10,[\\\"isRunning\\\"]],[23,11,[]]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,5,[]],[23,10,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,10,[]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[\\\"adapterName\\\"]],[23,3,[]],[23,12,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@isPreview\\\",\\\"@master\\\",\\\"@metaData\\\",\\\"@tab\\\",\\\"@type\\\"],[\\\"comments/comments-manager/modal-btn\\\",true,[23,3,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"storeLocation\\\",\\\"storeLocationKey\\\"],[[23,3,[\\\"_data\\\",\\\"name\\\"]],[23,3,[\\\"_data\\\",\\\"_key\\\"]]]]],[23,4,[]],\\\"store-location\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,5,[]],[28,\\\"fn\\\",[[23,7,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/store-location-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/tab-container/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\", \"client/mixins/store-location-list-by\", \"client/mixins/sortable-actions\"], function (_exports, _crud, _emberConcurrency, _storeLocationListBy, _sortableActions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _storeLocationListBy.default, _sortableActions.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    results: null,\n    resultsToggle: false,\n    adapterName: 'store-location',\n    filtersAdapterName: 'store-location/filters',\n    storeLocation: null,\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['store-location/lists/menu', 'store-location/lists/tags', 'statuses']);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          master: this.master\n        }\n      });\n      this.set('filters', filters);\n      this.loadTabTask.perform();\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = this.tabsManager.getLoadInstructions(tab);\n      if (loadInstructions) {\n        const model = loadInstructions.getData('model');\n        if (model) {\n          this.display(loadInstructions.getData('model'));\n        } else {\n          const id = loadInstructions.getData('find.id');\n          const found = yield this.findTask.perform({\n            appendPath: id\n          });\n          this.display(found);\n        }\n      } else {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        const results = yield this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters\n        });\n        this.set('results', results);\n        this.dash(results);\n      }\n    }),\n    fetchStoreLocationTask: (0, _emberConcurrency.task)(function* () {\n      const storeLocation = yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters\n      });\n      this.set('storeLocation', storeLocation);\n    }),\n    refreshDash() {\n      this.dash();\n    },\n    dash(results) {\n      this.set('filters.showResults', false);\n      if (!results) {\n        const adapterName = this.adapterName;\n        const filters = this.filters;\n        filters.setData('query', '');\n        this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters,\n          resultsProperty: 'results'\n        });\n      }\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'store-location/panels-dash'\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    display(model, additionalOptions = {}) {\n      this.set('filters.showResults', false);\n      const panelOptions = {\n        component: 'store-location/panels-display',\n        model: model\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n    },\n    new(subTabOptions) {\n      this.set('resultsToggle', false);\n\n      // create tab within product tab\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    actions: {\n      dash() {\n        this.set('resultsToggle', false);\n        // should deselect results if any..\n        // this.deselectResult();\n        this.dash();\n      },\n      display(model, options) {\n        this.set('resultsToggle', false);\n        if (model) {\n          this.display(model, options);\n        } else {\n          // if no model then display dash (when model has been deleted)\n          this.dash();\n        }\n      },\n      new(subTabOptions) {\n        this.new(subTabOptions);\n      },\n      edit(model, additionalOptions) {\n        this.set('resultsToggle', false);\n        const tab = this.tab;\n        const panelOptions = {\n          component: 'store-location/panels-edit',\n          model: model\n        };\n        this.tabsManager.replaceSubTab(tab, panelOptions, additionalOptions);\n      },\n      import(subTabOptions) {\n        const tab = this.tab;\n        this.tabsManager.replaceSubTab(tab, subTabOptions);\n      }\n    }\n  });\n});","define(\"client/pods/components/store-location/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tX9Gx1Qk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@isRunning\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterSearch\\\",\\\"store-location/panels-dash\\\"],null],\\\"store locations\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"store-location-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-results\\\",[],[[\\\"@classNames\\\",\\\"@count\\\",\\\"@itemClassNames\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@lastSearchSettings\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@onSelect\\\",\\\"@page\\\"],[\\\"u-results__list\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]],\\\"u-results__item\\\",\\\"_data.name\\\",\\\"_data._key\\\",[22,\\\"lastSearchSettings\\\"],[22,\\\"results\\\"],[22,\\\"paginateSearchRecordsTask\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[22,\\\"page\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"store-location/search-results\\\",[],[[\\\"@query\\\",\\\"@result\\\"],[[24,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,2,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"master\\\",\\\"filters\\\",\\\"results\\\",\\\"onEdit\\\",\\\"onDisplay\\\",\\\"onDash\\\",\\\"onCancel\\\",\\\"onImportTask\\\",\\\"onPaginationTask\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[24,[\\\"master\\\"]],[24,[\\\"filters\\\"]],[24,[\\\"results\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[24,[\\\"importTask\\\"]],[24,[\\\"paginateSearchRecordsTask\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/store-location/table-view/detail-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 StoreLocationTableViewDetailRowComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _class = class StoreLocationTableViewDetailRowComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragAndDrop\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dropPosition\", _descriptor4, this);\n      _initializerDefineProperty(this, \"showUploadsRow\", _descriptor5, this);\n      this.crud.addLists(this, ['store-location/lists/menu', 'store-location/lists/tags', 'statuses']);\n    }\n    get isDraggable() {\n      if (this.args.tableViewOptions.isReadonly) {\n        return false;\n      }\n      if (!this.args.tableViewOptions.isAllowReorder) {\n        return false;\n      }\n      return true;\n    }\n    get rowClassName() {\n      return `table-view__detail-row ${this.dropPosition}`;\n    }\n    get description() {\n      const div = document.createElement('div');\n      div.innerHTML = R.pathOr('', ['args', 'model', '_data', 'description'])(this);\n      return div.innerText;\n    }\n    get showOpenHours() {\n      const openHours = R.pathOr({}, ['_data', 'openHours'])(this.args.model);\n      const hasOpenHours = R.pipe(R.isEmpty, R.not)(openHours);\n      if (hasOpenHours) {\n        return R.reduce((acc, day) => {\n          const time = R.propOr('', day)(openHours);\n          const hasOpeningTime = R.pipe(R.pathEq(['open'], 'none'), R.not)(time);\n          if (hasOpeningTime) {\n            acc.push({\n              day,\n              time\n            });\n          }\n          return acc;\n        }, [])(this.date.getWeekdays());\n      }\n      return [];\n    }\n    drop(indexStart, indexEnd, results) {\n      let reIndexStoreLocation;\n      if (indexStart > indexEnd) {\n        reIndexStoreLocation = R.slice(indexEnd, R.inc(indexStart))(results);\n      } else {\n        reIndexStoreLocation = R.slice(indexStart, R.inc(indexEnd))(results);\n      }\n      const master = R.view(R.lensPath([0, '_data', 'master']))(results);\n      this.crud.adapterCallTask.perform('updateIndexes', {\n        adapterName: 'store-location/details/batch',\n        appendPath: `/${master}/indexes`,\n        model: reIndexStoreLocation\n      });\n    }\n    dragOver() {\n      if (this.args.tableViewOptions.onDragOver) {\n        this.dropPosition = this.args.tableViewOptions.onDragOver(...arguments);\n      }\n    }\n    dragStart() {\n      if (this.args.tableViewOptions.onDragStart) {\n        this.args.tableViewOptions.onDragStart(...arguments);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragAndDrop\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dropPosition\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"showUploadsRow\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"drop\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"drop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragOver\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"dragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragStart\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"dragStart\"), _class.prototype), _class);\n});","define(\"client/pods/components/store-location/table-view/detail-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Xt0BmlAa\",\n    \"block\": \"{\\\"symbols\\\":[\\\"openHours\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@tableViewOptions\\\",\\\"@results\\\",\\\"@onDisplay\\\",\\\"@onEdit\\\",\\\"@isDetailRow\\\",\\\"@isHeaders\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"index\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"display order\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[10,\\\"colspan\\\",\\\"2\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"images\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"images\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"name\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"store location\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"open hours\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"productsTags\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"tags\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/header-sort\\\",[],[[\\\"@adapterName\\\",\\\"@by\\\",\\\"@filters\\\",\\\"@hasHeadersSort\\\",\\\"@onSort\\\"],[[24,[\\\"tableViewOptions\\\",\\\"adapterName\\\"]],\\\"status\\\",[22,\\\"filters\\\"],[22,\\\"hasHeadersSort\\\"],[28,\\\"perform\\\",[[24,[\\\"onReloadSearchRecordsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\",\\\"@tagName\\\"],[[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],[23,0,[\\\"isDraggable\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,3,[\\\"_data\\\",\\\"index\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDrop\\\"]],[23,3,[\\\"_data\\\",\\\"index\\\"]],[23,5,[]],[23,0,[\\\"drop\\\"]]],null],\\\"tr\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@onDragStart\\\",\\\"@data\\\"],[[23,0,[\\\"isDraggable\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,3,[\\\"_data\\\",\\\"index\\\"]],[23,3,[]]],null],[23,3,[\\\"_data\\\",\\\"index\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[23,3,[\\\"displayIndex\\\"]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@allowSetDefault\\\",\\\"@allowUploads\\\",\\\"@model\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@transform\\\"],[[23,2,[]],false,false,false,[23,3,[]],true,\\\"store-location\\\",[23,3,[\\\"_data\\\",\\\"_key\\\"]],\\\"/-/scale_crop/64x64/smart\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"store-items__advanced-toggler-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"tableViewOptions\\\",\\\"isGuest\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"isToggler\\\",\\\"toggleIsOn\\\"],[\\\"fas fa-images\\\",true,[23,0,[\\\"showUploadsRow\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,3,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,3,[\\\"_data\\\",\\\"address\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"a\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[11,\\\"href\\\",[29,[\\\"tel:\\\",[23,3,[\\\"_data\\\",\\\"telephone\\\"]]]]],[8],[0,\\\"\\\\n        \\\"],[1,[23,3,[\\\"_data\\\",\\\"telephone\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"description\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"field is-grouped is-grouped-multiline\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"showOpenHours\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"time\\\",\\\"_data\\\",\\\"open\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"control\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tags has-addons\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-dark\\\"],[8],[1,[28,\\\"tt\\\",[[23,1,[\\\"day\\\"]]],null],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-info\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[23,1,[\\\"time\\\",\\\"_data\\\",\\\"open\\\"]],false],[0,\\\"\\\\n                    ~\\\\n                    \\\"],[1,[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"time\\\",\\\"_data\\\",\\\"close\\\"]],\\\"none\\\"],null],[23,1,[\\\"time\\\",\\\"_data\\\",\\\"close\\\"]],\\\"\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"time\\\",\\\"_data\\\",\\\"openAfterBreak\\\"]],\\\"none\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n                      \\\"],[1,[23,1,[\\\"time\\\",\\\"_data\\\",\\\"openAfterBreak\\\"]],false],[0,\\\"\\\\n                      ~\\\\n                      \\\"],[1,[28,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"time\\\",\\\"_data\\\",\\\"close\\\"]],\\\"none\\\"],null],[23,1,[\\\"time\\\",\\\"_data\\\",\\\"closeAfterBreak\\\"]],\\\"\\\"],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"store-location-lists-tags\\\"]],\\\"_data._key\\\",false,[23,3,[\\\"_data\\\",\\\"tags\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@tagClassNames\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,3,[\\\"statusClass\\\"]],[23,3,[\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-eye\\\",[28,\\\"fn\\\",[[23,6,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"fas fa-pen\\\",[28,\\\"fn\\\",[[23,7,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showUploadsRow\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"store-items__advanced-row\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-row\\\",[[12,\\\"class\\\",\\\"has-text-centered\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"files-manager\\\",[],[[\\\"@tab\\\",\\\"@allowRemove\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\"],[[23,2,[]],true,[23,3,[]],[23,4,[\\\"adapterName\\\"]],[23,3,[\\\"_data\\\",\\\"_key\\\"]],false]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/store-location/table-view/detail-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/stories/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class StoriesComponent extends _component.default {}\n  _exports.default = StoriesComponent;\n});","define(\"client/pods/components/stories/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PD06plPX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isSliderModalVisible\\\",\\\"@mouseDown\\\",\\\"@mouseUp\\\",\\\"@toNextSlide\\\",\\\"@toBackSlide\\\",\\\"@onModalClose\\\",\\\"@story\\\",\\\"@isImgLoaded\\\",\\\"@isPaused\\\",\\\"@website\\\",\\\"@sliderContent\\\",\\\"@onloadImg\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bigordr-stories\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"elements/stories-modal-dialog\\\",[],[[\\\"@isSliderModalVisible\\\",\\\"@modalCardClass\\\",\\\"@modalBackgroundClass\\\",\\\"@mouseDown\\\",\\\"@mouseUp\\\",\\\"@toNextSlide\\\",\\\"@toBackSlide\\\",\\\"@onModalClose\\\",\\\"@story\\\",\\\"@isImgLoaded\\\",\\\"@isPaused\\\"],[[23,1,[]],\\\"story-modal-card\\\",\\\"story-modal-background\\\",[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"content-display\\\",[],[[\\\"@website\\\",\\\"@content\\\",\\\"@onloadImg\\\",\\\"@isStories\\\"],[[23,10,[]],[23,11,[]],[23,12,[]],true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/stories/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/tabs/for-each/component\", [\"exports\", \"@glimmer/component\", \"client/config/environment\"], function (_exports, _component, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class TabsForEach extends _component.default {}\n  _exports.default = TabsForEach;\n});","define(\"client/pods/components/tabs/for-each/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yilr/BzG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"index\\\",\\\"@isParent\\\",\\\"&attrs\\\",\\\"&default\\\",\\\"@tabs\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"tab-parent-container \\\",[28,\\\"if\\\",[[23,1,[\\\"isActive\\\"]],\\\"tab-visible\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,3,[]],\\\"tab-parent\\\"],null]]]],[12,\\\"data-tabs-content\\\",[23,1,[\\\"value\\\"]]],[12,\\\"data-tabs-content-parent\\\",[28,\\\"if\\\",[[23,1,[\\\"hasSubTabs\\\"]],\\\"true\\\",\\\"false\\\"],null]],[12,\\\"hidden\\\",[28,\\\"if\\\",[[23,1,[\\\"isActive\\\"]],false,true],null]],[13,4],[8],[0,\\\"\\\\n    \\\"],[14,5,[[23,1,[]],[23,2,[]]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/tabs/for-each/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/tabs/tab-header/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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 TabsTabHeaderComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class TabsTabHeaderComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"translate\", _descriptor2, this);\n      _initializerDefineProperty(this, \"allowClose\", _descriptor3, this);\n    }\n    get tabTitle() {\n      const title = this.args.title;\n      if (!title) {\n        return this.args.label;\n      }\n      return title;\n    }\n    selectTab() {\n      const tabs = this.args.tabs;\n      const tab = this.args.tab;\n      this.tabsManager.selectTab(tabs, tab);\n    }\n    closeTab() {\n      const tabs = this.args.tabs;\n      const tab = this.args.tab;\n      this.tabsManager.closeTab(tabs, tab);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R.pathOr(true, ['args', 'tab', 'translate'])(this);\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"allowClose\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R.pathOr(true, ['args', 'tab', 'allowClose'])(this);\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectTab\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTab\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeTab\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"closeTab\"), _class.prototype), _class);\n});","define(\"client/pods/components/tabs/tab-header/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IvEhnKX9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"@tab\\\",\\\"@labelPrefix\\\",\\\"@showTooltip\\\",\\\"@label\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"tabindex\\\",\\\"-1\\\"],[12,\\\"class\\\",[29,[\\\"user-nav__item tab-header-container flex-container-row flex-container--align-content-start \\\",[28,\\\"if\\\",[[23,2,[\\\"isActive\\\"]],\\\"is-active\\\",\\\"\\\"],null]]]],[3,\\\"guide-id\\\",[[28,\\\"concat\\\",[\\\"tab-\\\",[28,\\\"or\\\",[[23,2,[\\\"value\\\"]],[23,2,[\\\"label\\\"]],[23,5,[]],\\\"untitled\\\"],null]],null]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"tab-header-label u-tappable flex-container-row flex-container--align-items-center u-tappable\\\"],[12,\\\"tabindex\\\",\\\"0\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectTab\\\"]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-truncate\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\",\\\"@clickToView\\\"],[true,false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[23,3,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"tabTitle\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"header\\\"]]],null,{\\\"statements\\\":[[0,\\\"          : \\\"],[1,[23,2,[\\\"header\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"closeOnOverlayClick\\\",\\\"hasModalOverlay\\\",\\\"isViewable\\\",\\\"hasContent\\\"],[true,false,[23,1,[]],[23,4,[]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"tt\\\",[[23,3,[]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"tabTitle\\\"]]],[[\\\"translate\\\"],[[23,0,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"header\\\"]]],null,{\\\"statements\\\":[[0,\\\"              : \\\"],[1,[23,2,[\\\"header\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowClose\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-pushbtn\\\",[],[[\\\"@tabindex\\\",\\\"@classNames\\\",\\\"@onSubmit\\\"],[-1,\\\"u-close-btn\\\",[28,\\\"fn\\\",[[23,0,[\\\"closeTab\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/tabs/tab-header/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/tabs/tab-headerpvt/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['tab-headerpvt'],\n    classNameBindings: ['tab.isActive'],\n    translate: true,\n    click() {\n      const tab = this.tab;\n\n      //set all other tabs to inActive\n      const tabs = this.tabs;\n      tabs.forEach(function (t) {\n        t.set('isActive', false);\n      });\n\n      //set current tab to active\n      tab.set('isActive', true);\n      this.onSelected(tab);\n    }\n  });\n});","define(\"client/pods/components/tabs/tab-headerpvt/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9pqQ084D\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"tt\\\",[[24,[\\\"tab\\\",\\\"_data\\\",\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/tabs/tab-headerpvt/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/tabs/tab-headers/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class TabsTabHeadersComponent extends _component.default {}\n  _exports.default = TabsTabHeadersComponent;\n});","define(\"client/pods/components/tabs/tab-headers/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"l+Klue/k\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tab\\\",\\\"&default\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[25,2]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[14,2],[0,\\\"\\\\n  \\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"tabs\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"tabs/tab-header\\\",null,[[\\\"translate\\\",\\\"tab\\\",\\\"tabs\\\",\\\"classNames\\\"],[true,[23,1,[]],[24,[\\\"tabs\\\"]],[24,[\\\"itemClassNames\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/tabs/tab-headers/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/tags/tags-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, R, _nventor) {\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;\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 MAX_ZONE_NAME_LENGTH = 40;\n  const MAX_ZONES_SHOWN = 5;\n  let TagsTagsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _class = class TagsTagsEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _defineProperty(this, \"adapterName\", this.args.customAdapterName || this.args.adapterName || 'products/lists/tags');\n      const model = this.args.model || this.args.parentModel || {};\n      const tab = this.args.tab || {};\n      this.tab = tab;\n      const isEditing = this.args.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    afterCreateRecordTask(model) {\n      this.args.onAddItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask() {\n      this.args.onRemoveItem?.(this.model);\n    }\n    cancel() {\n      this.args.onCloseDialogAction?.();\n    }\n    buildTagInUseConfirmMessage(usagesResponse) {\n      const shippingZones = usagesResponse?.usages?.shippingZones || [];\n      const shownZoneNames = R.pipe(R.take(MAX_ZONES_SHOWN), R.map(zone => _nventor.default.truncate({\n        text: zone?.name || '',\n        char: MAX_ZONE_NAME_LENGTH\n      })))(shippingZones);\n      const zones = shippingZones.length > MAX_ZONES_SHOWN ? `${shownZoneNames.join(', ')}, ...` : shownZoneNames.join(', ');\n      return this.intl.t('cannot delete. tag is in use by shipping zones', {\n        count: shippingZones.length,\n        zones\n      });\n    }\n    *removeRecordTask() {\n      const adapterName = this.adapterName;\n      const model = this.model;\n      const tab = this.tab;\n      const tagKey = model?._data?._key;\n      if (!tagKey) {\n        return;\n      }\n      try {\n        const usagesResponse = yield this.dataManager.findRecord({\n          adapterName,\n          appendPath: `/${tagKey}/usages`,\n          rawResponse: true\n        });\n        const shippingZones = usagesResponse?.usages?.shippingZones || [];\n        const isInUse = usagesResponse?.inUse || shippingZones.length > 0;\n        const confirmMessage = isInUse ? this.buildTagInUseConfirmMessage(usagesResponse) : this.intl.t('are you sure you want to delete');\n        const confirmed = window.confirm(confirmMessage);\n        if (!confirmed) {\n          return;\n        }\n        const removeOptions = {\n          adapterName,\n          model\n        };\n        if (isInUse) {\n          removeOptions.extraData = {\n            force: true\n          };\n        }\n        yield this.dataManager.removeRecord(removeOptions);\n        this.afterRemoveRecordTask();\n        this.args.onCloseDialogAction?.();\n      } catch (err) {\n        this.crud.setValidationErrors('errors', err, {\n          dirty: model,\n          tab\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeRecordTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"removeRecordTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/tags/tags-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"p2jKOb6b\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@disabled\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\",\\\"@addItemOptions\\\",\\\"@hasShowTagsOnFilterToggle\\\",\\\"@hasShowTagsOnPageToggle\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"tagsEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"tags\\\",[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]]]]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,7,[]],\\\"tags\\\",\\\"tags_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isModal\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",[23,1,[]],true,\\\"label\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,true,[28,\\\"or\\\",[[23,4,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,11,[]],[23,10,[\\\"hasShowTagsOnFilterToggle\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isModal\\\"],[[23,1,[]],\\\"showTagsOnFilter\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,4,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],\\\"show tags on filter\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"showTagsOnFilter\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,12,[]],[23,10,[\\\"hasShowTagsOnPageToggle\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isModal\\\"],[\\\"showTagsOnPage\\\",[23,1,[]],true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,4,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],\\\"show tags on page\\\",false,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"showTagsOnPage\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@requiresConfirmation\\\",\\\"@onSubmit\\\"],[[23,2,[]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,0,[\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],false,[28,\\\"perform\\\",[[23,0,[\\\"removeRecordTask\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,0,[\\\"model\\\"]]],null],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterCreateRecordTask\\\"]],[23,0,[\\\"model\\\"]]],null],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/tags/tags-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/taxes-editor/component\", [\"exports\", \"ramda\", \"@glimmer/component\"], function (_exports, _ramda, _component) {\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, _dec0, _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 TaxesEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class TaxesEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"big\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args?.adapterName || 'taxes');\n      this.crud.addLists(this, ['taxes']);\n      const model = this.args?.model || {};\n      const tab = this.args?.tab || {};\n      this.tab = tab;\n      const isEditing = this.args?.isEditing;\n      if (isEditing) {\n        const dirty = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n        const rate = this.big?.getDataBig?.('value', dirty);\n        const percentage = rate.times(100).toFixed();\n        dirty.setData('percentage', percentage);\n        this.model = dirty;\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    get isMinRequiredMet() {\n      const minRequired = ['label', 'value', 'percentage'];\n      const model = this.model;\n      let met = true;\n      minRequired.forEach(required => {\n        if (_ramda.default.isEmpty(model.getData(required))) {\n          met = false;\n        }\n      });\n      return met;\n    }\n    afterCreateRecordTask(model) {\n      this.args?.onAddItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args?.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask() {\n      this.args?.onRemoveItem?.(this.model);\n    }\n    autoSetDescription() {\n      const model = this.model;\n      const percentageBig = this.big?.getDataBig?.('percentage', model);\n      const rate = percentageBig.div(100).toFixed(2);\n      const percentage = model.getData('percentage') + '%';\n      model.setData('label', percentage);\n      model.setData('value', rate);\n    }\n    autoClearDescription() {\n      const model = this.model;\n      model.setData('label', '');\n      model.setData('value', '');\n    }\n    cancel() {\n      this.args?.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"autoSetDescription\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"autoSetDescription\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"autoClearDescription\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"autoClearDescription\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/taxes-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"+/xVpXCJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@disabled\\\",\\\"@isEditing\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"taxesEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"taxes\\\",[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]]]]],[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,6,[]],\\\"tax\\\",\\\"taxes_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],\\\"percentage\\\",\\\"tax %\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@onInput\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,9,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,[28,\\\"if\\\",[[28,\\\"isNumeric\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"percentage\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"autoSetDescription\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"autoClearDescription\\\"]]],null]],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"percentage\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"description\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"value\\\",\\\"tax rate\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,2,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterRemoveRecordTask\\\"]]],null],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,0,[\\\"model\\\"]]],null],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterCreateRecordTask\\\"]],[23,0,[\\\"model\\\"]]],null],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/taxes-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/accounts-editor/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/transporters/accounts-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"wwxQYNV+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"account\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,0,[\\\"constants\\\",\\\"transporterExtensions\\\",\\\"hct\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"name\\\"],null],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"account\\\"],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasRate\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"rate\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"hasAccountType\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"transporter package temperature\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccounts\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isDefault\\\"]],\\\"has-text-weight-semibold\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"translateAccountName\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"name\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isDefault\\\"]],\\\" has-text-weight-semibold \\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"translateAccountName\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"account\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,1,[\\\"_data\\\",\\\"account\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n      \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isDefault\\\"]],\\\" has-text-weight-semibold \\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[1,[23,1,[\\\"_data\\\",\\\"rate\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"accountType\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"isDefault\\\"]],\\\" has-text-weight-semibold \\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"accountType\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/accounts-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/accounts/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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;\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 TransportersAccountsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('transporter'), _dec4 = Ember._tracked, _dec5 = Ember.computed('args.model._data.{transporterAccountNumber,transporterAccount}', 'transporterModel'), _class = class TransportersAccountsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor4, this);\n      this.setupTask.perform(this?.args?.model);\n    }\n    get transporterAccountLabel() {\n      if (!this.transporterModel) {\n        return '';\n      }\n      const transporterAccounts = this.transporterModel.transporterAccounts || [];\n      if (this.transporterModel.isHct) {\n        const name = R.pipe(R.find(R.pathEq(['_data', 'account'], this.args?.model?._data?.transporterAccountNumber)), R.pathOr('', ['_data', 'name']))(transporterAccounts);\n        if (!name) {\n          return this.args?.model?._data?.transporterAccount ?? '';\n        }\n        return name;\n      }\n      const transporterAccountName = R.pipe(R.find(R.pathEq(['_data', 'account'], this.args?.model?._data?.transporterAccount)), R.pathOr('', ['_data', 'name']))(transporterAccounts);\n      if (!transporterAccountName) {\n        return '';\n      }\n      return this.intl.t(transporterAccountName);\n    }\n    get shouldShowTransporterPackageTemperature() {\n      const transporterPackageTemperature = this.args?.model?._data?.transporterPackageTemperature || '';\n      if (!transporterPackageTemperature) {\n        return false;\n      }\n      const transporterAccount = this.args?.model?._data?.transporterAccount || '';\n      const transporterAccountNumber = this.args?.model?._data?.transporterAccountNumber || '';\n      if (transporterPackageTemperature === transporterAccount) {\n        return false;\n      }\n      if (transporterPackageTemperature === transporterAccountNumber) {\n        return false;\n      }\n      return true;\n    }\n    *setupTask(model) {\n      if (!model) {\n        return;\n      }\n      const transporterKey = model?._data?.transporterKey;\n      if (!transporterKey) {\n        return;\n      }\n      this.transporterModel = yield this.transporterService.fetchTransporterTask.perform({\n        transporterKey\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"transporterAccountLabel\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterAccountLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/accounts/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PBhvXwiI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@isSelector\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"transporterModel\\\",\\\"isHct\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,true,\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"transporterModel\\\",\\\"transporterAccounts\\\"]],false,[23,1,[\\\"_data\\\",\\\"transporterAccountNumber\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,true,\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"transporterModel\\\",\\\"transporterAccounts\\\"]],true,[23,1,[\\\"_data\\\",\\\"transporterAccount\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"transporterAccountLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,0,[\\\"transporterAccountLabel\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"transporterType\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"transporterType\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"shouldShowTransporterPackageTemperature\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"transporterPackageTemperature\\\"]]],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"transporterPackageSize\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,1,[\\\"_data\\\",\\\"transporterPackageSize\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/accounts/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 TransportersComponent = _exports.default = (_dec = Ember.inject.service, _class = class TransportersComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/transporters/contact/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, RA, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 TransportersContactComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('transporter'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _class = class TransportersContactComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"showAdvancedAddress\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showAdvancedPickupAddress\", _descriptor6, this);\n      _initializerDefineProperty(this, \"showEditableConvenienceStoreAddress\", _descriptor7, this);\n      _initializerDefineProperty(this, \"showEditableStoreLocationAddress\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pickupMethods\", _descriptor9, this);\n      _initializerDefineProperty(this, \"pickupMethod\", _descriptor0, this);\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/locations', 'extensions/apps/tw/convenience-stores/lists/brands']);\n      this.setupStoreLocation();\n      Ember.run.scheduleOnce('afterRender', this, 'writePickupMethodToModel');\n    }\n    get isAddressReadOnly() {\n      const model = this.args?.model;\n      const isConvenienceStore = model?._data?.isConvenienceStore || false;\n      const isReadonly = this.args?.isReadonly;\n      if (isConvenienceStore) {\n        if (!this.showEditableConvenienceStoreAddress) {\n          return true;\n        }\n        return isReadonly;\n      }\n      return isReadonly;\n    }\n    get allowToggleEditAdvancedAddress() {\n      const disallowChangeAddress = R.pathEq(['args', 'disallowChangeAddress'], true)(this);\n      if (disallowChangeAddress) {\n        return false;\n      }\n      const isReadonly = R.pathEq(['args', 'isReadonly'], true)(this);\n      if (isReadonly) {\n        return false;\n      }\n      return true;\n    }\n\n    /**\n     * Sync local pickup UI state from the document model without mutating it.\n     * @returns {undefined}\n     */\n    setupStoreLocation() {\n      const model = this?.args?.model;\n      const pickupMethods = this.pickupMethods;\n      if (!model) {\n        return;\n      }\n      const tempAddress = this.tempAddress || model?._data?.address || '';\n      const tempAddressData = this.tempAddressData || model?._data?.addressData || {};\n      this.tempAddress = tempAddress;\n      this.tempAddressData = tempAddressData;\n      if (model?._data?.isConvenienceStore) {\n        const tempCVSAddress = this.tempCVSAddress || model?._data?.address || '';\n        const tempCVSAddressData = this.tempCVSAddressData || model?._data?.addressData || {};\n        this.tempCVSAddress = tempCVSAddress;\n        this.tempCVSAddressData = tempCVSAddressData;\n        const pickupMethod = this.constants.pickupMethods.convenienceStore;\n        if (!R.includes(pickupMethod)(pickupMethods)) {\n          pickupMethods.push(pickupMethod);\n        }\n        this.pickupMethod = pickupMethod?.value;\n      }\n      if (model?._data?.isPickup) {\n        const pickupMethod = this.constants.pickupMethods.storeLocationPickup;\n        if (!R.includes(pickupMethod)(pickupMethods)) {\n          pickupMethods.push(pickupMethod);\n        }\n        this.pickupMethod = pickupMethod?.value;\n      }\n    }\n\n    /**\n     * Write local pickupMethod onto the document when it differs.\n     * @returns {undefined}\n     */\n    writePickupMethodToModel() {\n      const model = this.args?.model;\n      if (!model) {\n        return;\n      }\n      const pickupMethod = this.pickupMethod;\n      if (model._data?.pickupMethod === pickupMethod) {\n        return;\n      }\n      model.setData('pickupMethod', pickupMethod);\n    }\n    toggleShowAdvancedAddress(value) {\n      const showAdvancedAddress = this.showAdvancedAddress;\n      if (RA.isNotNilOrEmpty(value) && R.is(Boolean, value)) {\n        this.showAdvancedAddress = value;\n      } else {\n        this.showAdvancedAddress = !showAdvancedAddress;\n      }\n    }\n    toggleShowAdvancedPickupAddress(value) {\n      const showAdvancedPickupAddress = this.showAdvancedPickupAddress;\n      if (RA.isNotNilOrEmpty(value) && R.is(Boolean, value)) {\n        this.showAdvancedPickupAddress = value;\n      } else {\n        this.showAdvancedPickupAddress = !showAdvancedPickupAddress;\n      }\n    }\n    onSelectAllAddressesList(contactDetails) {\n      const address = contactDetails?._data?.value;\n      if (address) {\n        const model = this.args?.model || {};\n        Ember.set(model, '_data.address', address);\n      }\n    }\n    updateTransporter(key, value) {\n      const model = this.args?.model || {};\n      Ember.set(model, `_data.${key}`, value);\n    }\n    onLoadContactDetail(key, contactDetails) {\n      const value = contactDetails?._data?.value;\n      if (value) {\n        const model = this.args?.model || {};\n        Ember.set(model, `_data.${key}`, value);\n      }\n    }\n    onAddContactDetail(key, contactDetails) {\n      const value = contactDetails?._data?.value;\n      let existing = this?.args?.model?._data?.[key];\n      if (existing) {\n        existing = `${existing} / ${value}`;\n      } else {\n        existing = value;\n      }\n      const model = this.args?.model || {};\n      Ember.set(model, `_data.${key}`, existing);\n    }\n    selectConvenienceStoreBrand(brand = {}) {\n      const brands = this.crud?.lists?.['extensions-apps-tw-convenience-stores-lists-brands'];\n      const brandOption = R.find(R.pathEq(['_data', 'label'], brand?._data?.label))(brands) || R.find(R.pathEq(['_data', 'value'], brand?._data?.value))(brands);\n      const model = this.args?.model || {};\n      const convenienceStoreData = model?._data?.addressData || {};\n      const selectedBrand = brandOption?._data?.label || '';\n      if (selectedBrand) {\n        Ember.set(convenienceStoreData, 'brand', selectedBrand);\n        model?.updateAddressWithAdvanceAddress?.();\n      }\n    }\n    selectStoreLocationTag(tag = {}) {\n      const locations = this.crud.lists?.['channels-shop-campaigns-lists-locations'];\n      const locationOption = R.find(R.pathEq(['_data', 'label'], tag?._data?.label))(locations) || R.find(R.pathEq(['_data', 'address'], tag?._data?.address))(locations);\n      const model = this.args?.model || {};\n      const storeLocationData = model?._data?.storeLocationData || {};\n      if (locationOption && RA.isNotNilOrEmpty(storeLocationData)) {\n        const storeLabel = locationOption?._data?.label || '';\n        const storeAddress = locationOption?._data?.address || '';\n        Ember.set(storeLocationData, 'label', storeLabel);\n        Ember.set(storeLocationData, 'address', storeAddress);\n        Ember.set(model, '_data.address', storeAddress);\n      }\n    }\n    reassignAddress({\n      value\n    } = {}) {\n      const model = this.args?.model || {};\n      this.pickupMethod = value;\n      const pickupMethod = this.pickupMethod;\n      if (pickupMethod === this.constants.pickupMethods.homeDelivery.value) {\n        const tempAddress = this.tempAddress;\n        let tempAddressData = this.tempAddressData || model?._data?.addressData || {};\n        tempAddressData = R.omit(['storeId', 'storeName', 'storeAddress', 'type', 'brand'])(tempAddressData);\n        this.showAdvancedPickupAddress = false;\n        Ember.set(model, '_data.addressData', tempAddressData);\n        Ember.set(model, '_data.isPickup', '');\n        Ember.set(model, '_data.isConvenienceStore', false);\n        Ember.set(model, '_data.convenienceStoreData', {});\n        Ember.set(model, '_data.hasAdvancedAddress', true);\n        Ember.set(model, '_data.address', tempAddress);\n        model?.updateAddressWithAdvanceAddress?.();\n      } else if (pickupMethod === this.constants.pickupMethods.convenienceStore.value) {\n        this.tempAddress = model?._data?.address || '';\n        this.tempAddressData = model?._data?.addressData || {};\n        const tempCVSAddress = this.tempCVSAddress;\n        const tempCVSAddressData = this.tempCVSAddressData;\n        this.showAdvancedPickupAddress = false;\n        if (tempCVSAddress) {\n          Ember.set(model, '_data.address', tempCVSAddress);\n        }\n        if (RA.isNotNilOrEmpty(tempCVSAddressData)) {\n          Ember.set(model, '_data.addressData', tempCVSAddressData);\n        }\n        Ember.set(model, '_data.isConvenienceStore', true);\n        Ember.set(model, '_data.hasAdvancedAddress', true);\n        Ember.set(model, '_data.addressData.type', this.constants.pickupMethods.convenienceStore.value);\n        model?.updateAddressWithAdvanceAddress?.();\n      } else if (pickupMethod === this.constants.pickupMethods.storeLocationPickup.value) {\n        const tempAddress = model?._data?.address;\n        this.tempAddress = tempAddress;\n        this.showAdvancedAddress = false;\n        this.recordStoreLocationAddress();\n      }\n      Ember.set(model, '_data.pickupMethod', pickupMethod);\n    }\n    recordStoreLocationAddress() {\n      const model = this.args?.model || {};\n      const storeLocation = model?._data?.storeLocationData || {};\n      if (storeLocation?.address) {\n        let isPickup = storeLocation.address;\n        if (storeLocation?.label && storeLocation.address !== storeLocation.label) {\n          isPickup = `(${storeLocation.label})${storeLocation.address}`;\n        }\n        Ember.set(model, '_data.address', isPickup);\n        Ember.set(model, '_data.isPickup', isPickup);\n        this.isStoreLocationPickup = true;\n      }\n    }\n    editConvenienceStoreWarning(value) {\n      const model = this.args?.model || {};\n      if (value === true) {\n        const msg = this.intl.t('danger editing message');\n        const confirmed = window.confirm(msg);\n        if (confirmed === false) {\n          this.showEditableConvenienceStoreAddress = false;\n        } else {\n          this.tempConvenienceStoreData = R.clone(model?._data?.addressData);\n          this.showAdvancedAddress = true;\n        }\n      } else {\n        const tempConvenienceStoreData = this.tempConvenienceStoreData;\n        if (RA.isNotNilOrEmpty(tempConvenienceStoreData) && this.tempAddress) {\n          Ember.set(model, '_data.addressData', tempConvenienceStoreData);\n          Ember.set(model, '_data.address', this.tempAddress);\n        }\n      }\n    }\n    editStoreLocationWarning(value) {\n      const model = this.args?.model || {};\n      if (value === true) {\n        const msg = this.intl.t('danger editing message');\n        const confirmed = window.confirm(msg);\n        if (confirmed === false) {\n          this.showEditableStoreLocationAddress = false;\n          this.showAdvancedPickupAddress = false;\n        } else {\n          this.tempStoreLocationData = R.clone(model?._data?.storeLocationData);\n          this.showAdvancedPickupAddress = true;\n          this.showAdvancedAddress = false;\n        }\n      } else {\n        const tempStoreLocationData = this.tempStoreLocationData;\n        if (RA.isNotNilOrEmpty(tempStoreLocationData)) {\n          Ember.set(model, '_data.storeLocationData', tempStoreLocationData);\n          Ember.set(model, '_data.isPickup', tempStoreLocationData?.address);\n          Ember.set(model, '_data.address', tempStoreLocationData?.address);\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"showAdvancedAddress\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showAdvancedPickupAddress\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"showEditableConvenienceStoreAddress\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"showEditableStoreLocationAddress\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"pickupMethods\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [this.constants.pickupMethods.homeDelivery];\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"pickupMethod\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.constants.pickupMethods.homeDelivery.value;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupStoreLocation\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setupStoreLocation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"writePickupMethodToModel\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"writePickupMethodToModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowAdvancedAddress\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowAdvancedAddress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowAdvancedPickupAddress\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowAdvancedPickupAddress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectAllAddressesList\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectAllAddressesList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateTransporter\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"updateTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onLoadContactDetail\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"onLoadContactDetail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAddContactDetail\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddContactDetail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectConvenienceStoreBrand\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"selectConvenienceStoreBrand\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectStoreLocationTag\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"selectStoreLocationTag\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reassignAddress\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"reassignAddress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"recordStoreLocationAddress\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"recordStoreLocationAddress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editConvenienceStoreWarning\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"editConvenienceStoreWarning\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editStoreLocationWarning\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"editStoreLocationWarning\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/contact/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eGAflTiY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@enableSelectPickupMethod\\\",\\\"@onInputAddress\\\",\\\"@onLoadContactPerson\\\",\\\"@isTransporterEditor\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"person\\\",\\\"documents\\\",[23,2,[]],[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"sourceKey\\\"]],\\\"recipient\\\",\\\"contact person\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,4,[\\\"_data\\\",\\\"person\\\"]],[28,\\\"eq\\\",[[23,3,[]],false],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@onInput\\\",\\\"@placeholder\\\",\\\"@readonly\\\",\\\"@translatePlaceholder\\\",\\\"@value\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"updateTransporter\\\"]],\\\"transporterContactPerson\\\"],null],[23,4,[\\\"_data\\\",\\\"contact\\\"]],[23,3,[]],false,[23,4,[\\\"_data\\\",\\\"person\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"translatePlaceholder\\\",\\\"value\\\"],[true,false,[23,4,[\\\"_data\\\",\\\"contact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,4,[\\\"selectedContact\\\",\\\"allPersonsAndDepartmentsList\\\"]],[23,7,[]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@resultsComponent\\\"],[[23,3,[]],\\\"\\\",[23,4,[\\\"selectedContact\\\",\\\"allPersonsAndDepartmentsList\\\"]],[23,7,[]],\\\"contacts/results/contact-persons-results\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"telephone\\\",\\\"documents\\\",[23,2,[]],[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"sourceKey\\\"]],\\\"receivers mobile number\\\",\\\"telephone\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@onInput\\\",\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"updateTransporter\\\"]],\\\"transporterContactPhone\\\"],null],[23,3,[]],[23,4,[\\\"_data\\\",\\\"telephone\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"selectedContact\\\",\\\"allPhonesList\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@resultsComponent\\\"],[[23,3,[]],[23,4,[\\\"selectedContact\\\",\\\"allPhonesList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onLoadContactDetail\\\"]],\\\"telephone\\\"],null],\\\"contacts/results/contact-details-results\\\"]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@resultsComponent\\\"],[[23,3,[]],\\\"add\\\",[23,4,[\\\"selectedContact\\\",\\\"allPhonesList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onAddContactDetail\\\"]],\\\"telephone\\\"],null],\\\"contacts/results/contact-details-results\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"email\\\",\\\"documents\\\",[23,2,[]],\\\"email\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"email\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"selectedContact\\\",\\\"allEmailsList\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@resultsComponent\\\",\\\"@onSelect\\\"],[[23,3,[]],[23,4,[\\\"selectedContact\\\",\\\"allEmailsList\\\"]],\\\"contacts/results/contact-details-results\\\",[28,\\\"fn\\\",[[23,0,[\\\"onLoadContactDetail\\\"]],\\\"email\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,8,[]],[23,4,[\\\"_data\\\",\\\"isConvenienceStore\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"transporters/seven-eleven/store-selector\\\",[],[[\\\"@isReadonly\\\",\\\"@storeId\\\",\\\"@storeName\\\",\\\"@storeAddress\\\",\\\"@transporterExtension\\\",\\\"@transporterAccount\\\",\\\"@transporterKey\\\",\\\"@waybill\\\",\\\"@documentKey\\\",\\\"@docType\\\",\\\"@docName\\\",\\\"@documentId\\\",\\\"@storeClosureStoreTypes\\\",\\\"@onUpdate\\\",\\\"@onRemove\\\"],[[23,3,[]],[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeId\\\"]],[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeName\\\"]],[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeAddress\\\"]],[23,4,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,4,[\\\"_data\\\",\\\"transporterAccount\\\"]],[23,4,[\\\"_data\\\",\\\"transporterKey\\\"]],[23,4,[\\\"_data\\\",\\\"waybill\\\"]],[23,4,[\\\"_data\\\",\\\"_key\\\"]],[23,4,[\\\"_data\\\",\\\"docType\\\"]],[23,4,[\\\"_data\\\",\\\"docName\\\"]],[23,4,[\\\"_data\\\",\\\"_id\\\"]],[23,4,[\\\"storeClosureStoreTypes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"transporterService\\\",\\\"updateDocumentConvenienceStore\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[23,4,[]]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"transporterService\\\",\\\"removeDocumentConvenienceStore\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\"],[[23,4,[]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@required\\\"],[[23,1,[]],\\\"address\\\",[23,2,[]],\\\"address\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"pickupMethod\\\"]],[23,0,[\\\"constants\\\",\\\"pickupMethods\\\",\\\"storeLocationPickup\\\",\\\"value\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,4,[\\\"_data\\\",\\\"isPickup\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@translate\\\"],[[28,\\\"if\\\",[[23,0,[\\\"showAdvancedPickupAddress\\\"]],\\\"fas fa-caret-up\\\",\\\"fas fa-caret-down\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowAdvancedPickupAddress\\\"]]],null],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[]],[23,4,[\\\"_data\\\",\\\"isConvenienceStore\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"hasAdvancedAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[23,4,[\\\"addressDisplay\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"tt\\\",[[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"brand\\\"]]],null],false],[0,\\\" - \\\"],[1,[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeName\\\"]],false],[0,\\\" - \\\"],[1,[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeAddress\\\"]],false],[0,\\\" - (\\\"],[1,[28,\\\"tt\\\",[\\\"storeId\\\"],null],false],[0,\\\": \\\"],[1,[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"storeId\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@onInput\\\",\\\"@readonly\\\",\\\"@value\\\"],[[23,6,[]],[28,\\\"or\\\",[[23,3,[]],[23,4,[\\\"_data\\\",\\\"hasAdvancedAddress\\\"]]],null],[23,4,[\\\"_data\\\",\\\"address\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"hasAdvancedAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@onSubmit\\\",\\\"@translate\\\"],[[28,\\\"if\\\",[[23,0,[\\\"showAdvancedAddress\\\"]],\\\"fas fa-caret-up\\\",\\\"fas fa-caret-down\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"toggleShowAdvancedAddress\\\"]]],null],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"selectedContact\\\",\\\"allAddressesList\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@resultsComponent\\\"],[[23,3,[]],[23,4,[\\\"selectedContact\\\",\\\"allAddressesList\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectAllAddressesList\\\"]]],null],\\\"contacts/results/contact-details-results\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showAdvancedAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"isConvenienceStore\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"convenienceStoreBrand\\\",\\\"documents\\\",[23,2,[]],\\\"convenience store brand\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isLabel\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"isAddressReadOnly\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,4,[\\\"_data\\\",\\\"addressData\\\",\\\"brand\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-convenience-stores-lists-brands\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectConvenienceStoreBrand\\\"]]],null],true,[23,4,[\\\"_data\\\",\\\"addressData\\\",\\\"brand\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"convenienceStoreName\\\",\\\"documents\\\",[23,2,[]],\\\"convenience store name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@onInput\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,4,[\\\"updateAddressWithAdvanceAddress\\\"]],[23,0,[\\\"isAddressReadOnly\\\"]],false,[23,4,[\\\"_data\\\",\\\"addressData\\\",\\\"storeName\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"convenienceStoreId\\\",\\\"documents\\\",[23,2,[]],\\\"convenience store id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@onInput\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,4,[\\\"updateAddressWithAdvanceAddress\\\"]],[23,0,[\\\"isAddressReadOnly\\\"]],false,[23,4,[\\\"_data\\\",\\\"addressData\\\",\\\"storeId\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],\\\"country\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"isAddressReadOnly\\\"]],[23,4,[\\\"_data\\\",\\\"addressData\\\",\\\"country\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],\\\"postCode\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\"],[true,[23,0,[\\\"isAddressReadOnly\\\"]],[23,4,[\\\"_data\\\",\\\"addressData\\\",\\\"postCode\\\"]],[23,4,[\\\"updateAddressWithAdvanceAddress\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],\\\"city\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\"],[true,[23,0,[\\\"isAddressReadOnly\\\"]],[23,4,[\\\"_data\\\",\\\"addressData\\\",\\\"region\\\"]],[23,4,[\\\"updateAddressWithAdvanceAddress\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],\\\"district\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\"],[true,[23,0,[\\\"isAddressReadOnly\\\"]],[23,4,[\\\"_data\\\",\\\"addressData\\\",\\\"district\\\"]],[23,4,[\\\"updateAddressWithAdvanceAddress\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\"],[[23,1,[]],\\\"street\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@onInput\\\"],[true,[23,0,[\\\"isAddressReadOnly\\\"]],[23,4,[\\\"_data\\\",\\\"addressData\\\",\\\"street\\\"]],[23,4,[\\\"updateAddressWithAdvanceAddress\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showAdvancedPickupAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"storeLocationPickup\\\",\\\"documents\\\",[23,2,[]],\\\"store location pick up\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isLabel\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@label\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[23,0,[\\\"showEditableStoreLocationAddress\\\"]],[23,3,[]],true],null],true,\\\"_data.label\\\",\\\"_data.address\\\",[23,4,[\\\"_data\\\",\\\"storeLocationData\\\",\\\"label\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-locations\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"selectStoreLocationTag\\\"]]],null],false,[23,4,[\\\"_data\\\",\\\"storeLocationData\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"storeLocationAddress\\\",\\\"documents\\\",[23,2,[]],\\\"store location address\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@onInput\\\",\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"recordStoreLocationAddress\\\"]]],null],[28,\\\"if\\\",[[23,0,[\\\"showEditableStoreLocationAddress\\\"]],[23,3,[]],true],null],[23,4,[\\\"_data\\\",\\\"storeLocationData\\\",\\\"address\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowToggleEditAdvancedAddress\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,0,[\\\"pickupMethod\\\"]],[23,0,[\\\"constants\\\",\\\"pickupMethods\\\",\\\"storeLocationPickup\\\",\\\"value\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\",\\\"@onToggle\\\"],[\\\"use advanced address\\\",[23,3,[]],[23,4,[\\\"_data\\\",\\\"hasAdvancedAddress\\\"]],true,false,[28,\\\"fn\\\",[[23,0,[\\\"toggleShowAdvancedAddress\\\"]],false],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"pickupMethod\\\"]],[23,0,[\\\"constants\\\",\\\"pickupMethods\\\",\\\"convenienceStore\\\",\\\"value\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,3,[]],\\\"edit convenience store address\\\",[28,\\\"fn\\\",[[23,0,[\\\"editConvenienceStoreWarning\\\"]]],null],false,true,[23,0,[\\\"showEditableConvenienceStoreAddress\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"pickupMethod\\\"]],[23,0,[\\\"constants\\\",\\\"pickupMethods\\\",\\\"storeLocationPickup\\\",\\\"value\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@onToggle\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,3,[]],\\\"edit store location address\\\",[28,\\\"fn\\\",[[23,0,[\\\"editStoreLocationWarning\\\"]]],null],false,true,[23,0,[\\\"showEditableStoreLocationAddress\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"gt\\\",[[23,0,[\\\"pickupMethods\\\",\\\"length\\\"]],1],null],[23,5,[]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\",\\\"@label\\\"],[[23,1,[]],\\\"changePickupMethod\\\",\\\"documents\\\",[23,2,[]],\\\"pickup methods\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,3,[]],true,\\\"label\\\",\\\"value\\\",\\\"change pickup method\\\",[23,0,[\\\"pickupMethods\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"reassignAddress\\\"]]],null],true,[23,4,[\\\"_data\\\",\\\"pickupMethod\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/contact/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/credentials-modal/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 TransportersCredentialsModalComponent = _exports.default = (_dec = Ember.inject.service(), _dec2 = Ember.inject.service('constants'), _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class TransportersCredentialsModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor3, this);\n      _defineProperty(this, \"adapterNameContactsTransporters\", 'contacts');\n      this.crud.addLists(this, ['transporter/lists/credentials-modal']);\n    }\n    get transporterComponent() {\n      const transporterExtension = this.args?.model?._data?.transporterExtension;\n      const transporterListsCredentialsModal = this.crud.lists['transporter-lists-credentials-modal'] || [];\n      const transporterCredentialsModal = transporterListsCredentialsModal.find(item => item._data.value === transporterExtension);\n      return transporterCredentialsModal?._data?.component;\n    }\n    setupDirty() {\n      const model = this.args.model;\n      if (model._data._key) {\n        this.dirty = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model\n        });\n      } else {\n        this.dirty = model;\n      }\n    }\n    *onSubmitTask(onCloseDialogAction, onDisplay) {\n      let model;\n      if (this.dirty?._data?._key) {\n        model = yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterNameContactsTransporters,\n          model: this.dirty\n        });\n      }\n      onCloseDialogAction();\n      if (onDisplay) {\n        onDisplay(model);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/credentials-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"IZpuGjXo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@onDisplay\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@modalDialogTitle\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-key\\\",[23,2,[]],[28,\\\"concat\\\",[[23,4,[\\\"_data\\\",\\\"transporterExtension\\\"]],\\\" \\\",\\\"credentials\\\"],null],\\\"credentials\\\",[23,0,[\\\"setupDirty\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[11,\\\"data-form-id\\\",[23,0,[\\\"dirty\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"transporterComponent\\\"]]],[[\\\"model\\\",\\\"isReadonly\\\"],[[23,0,[\\\"dirty\\\"]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],\\\"\\\",[23,0,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onSubmitTask\\\"]],[23,1,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,2,[]],false,\\\"done\\\",[28,\\\"perform\\\",[[23,0,[\\\"onSubmitTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/credentials-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/credentials/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 TransportersCredentialsModalComponent = _exports.default = (_dec = Ember.inject.service(), _dec2 = Ember.inject.service('constants'), _dec3 = Ember._tracked, _dec4 = Ember._action, _class = class TransportersCredentialsModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor3, this);\n      _defineProperty(this, \"adapterNameContactsTransporters\", 'contacts');\n      this.crud.addLists(this, ['transporter/lists/credentials-modal']);\n    }\n    get transporterComponent() {\n      const transporterExtension = this.args?.model?._data?.transporterExtension;\n      const transporterListsCredentialsModal = this.crud.lists['transporter-lists-credentials-modal'] || [];\n      const transporterCredentialsModal = transporterListsCredentialsModal.find(item => item._data.value === transporterExtension);\n      return transporterCredentialsModal?._data?.component;\n    }\n    setupDirty() {\n      const model = this.args.model;\n      if (model._data._key) {\n        this.dirty = this.crud.setupDirty({\n          adapterName: this.adapterNameContactsTransporters,\n          model\n        });\n      } else {\n        this.dirty = model;\n      }\n    }\n    *onSubmitTask(onCloseDialogAction, onDisplay) {\n      let model;\n      if (this.dirty?._data?._key) {\n        model = yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterNameContactsTransporters,\n          model: this.dirty\n        });\n      }\n      onCloseDialogAction();\n      if (onDisplay) {\n        onDisplay(model);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmitTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmitTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/credentials/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"naL3TyHW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@isReadonly\\\",\\\"@onDisplay\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@modalDialogTitle\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-key\\\",[23,2,[]],[28,\\\"concat\\\",[[23,4,[\\\"_data\\\",\\\"transporterExtension\\\"]],\\\" \\\",\\\"credentials\\\"],null],\\\"credentials\\\",[23,0,[\\\"setupDirty\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[11,\\\"data-form-id\\\",[23,0,[\\\"dirty\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"transporterComponent\\\"]]],[[\\\"model\\\",\\\"isReadonly\\\"],[[23,0,[\\\"dirty\\\"]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],\\\"\\\",[23,0,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onSubmitTask\\\"]],[23,1,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,2,[]],false,\\\"done\\\",[28,\\\"perform\\\",[[23,0,[\\\"onSubmitTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/credentials/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/editor-component/component\", [\"exports\", \"ember-concurrency\", \"ramda-adjunct\", \"client/mixins/date\", \"client/mixins/search-contacts\", \"client/mixins/transporter\"], function (_exports, _emberConcurrency, RA, _date, _searchContacts, _transporter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_date.default, _searchContacts.default, _transporter.default, {\n    crud: Ember.inject.service(),\n    dispatchService: Ember.inject.service('dispatch'),\n    listAdapters: null,\n    receiver: null,\n    // contact receiving goods\n    tagName: 'div',\n    isReadonly: false,\n    isPickerOnly: false,\n    // true: only has transport selector. false: will have additional form info\n    // autoFetchData: false, //auto fetch hct data on init\n    searchTransportersContactsList: null,\n    // contacts search results\n    // list of phone numbers for contact person (not the transporter)\n    contactsPhonesList: null,\n    loadHCTData: false,\n    init() {\n      this._super(...arguments);\n      this.set('searchTransportersContactsList', []);\n      if (this.allowEdit) {\n        this.set('isReadonly', true);\n      }\n      this.setupTCat.perform();\n    },\n    setupTCat: (0, _emberConcurrency.task)(function* () {\n      const transporterKey = this?.model?._data?.transporterKey;\n      const tCatModel = yield this.dispatchService.tCatGetModel.perform();\n      this.set('tCatModel', tCatModel);\n    }),\n    filteredTransportersList: Ember.computed('transportersList.[]', function () {\n      return this.transportersList || [];\n    }),\n    isTCatExtension: Ember.computed('model._data.{transporterExtension,transporterKey}', 'tCatModel.{_data._key,synced}', function () {\n      const model = this.model;\n      if (!model?._data?.transporterKey) {\n        return false;\n      }\n      if (model?._data?.transporterExtension === 't-cat') {\n        return true;\n      }\n      if (model?._data?.transporterKey === this?.dispatchService?.tCatModel?._data?._key) {\n        return true;\n      }\n      return false;\n    }),\n    _hideTitleContainer: Ember.computed('hideTitleContainer', function () {\n      return RA.defaultWhen(RA.isNilOrEmpty, false, this.hideTitleContainer);\n    }),\n    /**\n     * disable if component isReadonly or if has already been despatched\n     * @return {[type]} [description]\n     */\n    isDisabled: Ember.computed('isReadonly', 'model._data.transporterIsDispatched', function () {\n      const isReadonly = this.isReadonly;\n      const model = this.model;\n      const isDispatched = model.getData('transporterIsDispatched');\n      if (isReadonly || isDispatched) {\n        return true;\n      }\n      return false;\n    }),\n    hasHCT: Ember.computed('model._data.transporterExtension', 'settings._data.features.extensions.tw_hct', 'dontFetchRegionCode', function () {\n      if (!this.dontFetchRegionCode && this.settings.getProp('features.extensions.tw_hct') && this.get('model._data.transporterExtension') === 'hct') {\n        return true;\n      }\n      return false;\n    }),\n    transporterEditorComponent: Ember.computed('model._data.transporterExtension', function () {\n      const transporterExtension = this.model?._data?.transporterExtension;\n      return `transporters/${transporterExtension}-editor`;\n    }),\n    actions: {\n      loadTransporter(model, transporter) {\n        this.loadTransporter(model, transporter);\n\n        // only set default pickup location if using listSearcher\n        this.setTransporterDataWithDefaultPickupLocation(model, transporter);\n      }\n    }\n  });\n});","define(\"client/pods/components/transporters/editor-component/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KL/7ClF8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@canChangeConvenienceStoreOverride\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,2,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"preDispatchModal\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"dispatch\\\",[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]]]]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,9,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@hideTitleContainer\\\"],[[23,7,[]],\\\"transporter\\\",\\\"transporter_group\\\",[23,1,[]],[23,0,[\\\"hideTitleContainer\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"transporter\\\",[22,\\\"errors\\\"],\\\"transporter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"lists/list-searcher\\\",null,[[\\\"allowCustom\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"selectedItemValueKey\\\",\\\"value\\\",\\\"hasSelected\\\",\\\"hasSelectedIcon\\\",\\\"allowCustom\\\",\\\"disabled\\\",\\\"onSearch\\\",\\\"isRunning\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[true,[24,[\\\"filteredTransportersList\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterLabel\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterKey\\\"]],\\\"fas fa-address-book\\\",true,[24,[\\\"isReadonly\\\"]],[28,\\\"perform\\\",[[24,[\\\"searchContactsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"query\\\",\\\"resultsProperty\\\"],[\\\"supplier\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterLabel\\\"]],\\\"transportersList\\\"]]]],null],[24,[\\\"searchContactsTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\",[24,[\\\"model\\\"]]],null],[24,[\\\"onUnloadTransporter\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isPickerOnly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"hasHCT\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"transporters/hct-editor\\\",null,[[\\\"formInitData\\\",\\\"autoFetchTransporter\\\",\\\"isReadonly\\\",\\\"errors\\\",\\\"disabled\\\",\\\"transporter\\\",\\\"fetchHCTRegionDataOnInit\\\",\\\"onLoadContactPerson\\\",\\\"onLoadContactDetail\\\",\\\"onAddContactDetail\\\",\\\"model\\\"],[[23,1,[]],[24,[\\\"autoFetchTransporter\\\"]],[24,[\\\"isReadonly\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"isDisabled\\\"]],[24,[\\\"transporter\\\"]],[24,[\\\"fetchHCTRegionDataOnInit\\\"]],[24,[\\\"onLoadContactPerson\\\"]],[24,[\\\"onLoadContactDetail\\\"]],[24,[\\\"onAddContactDetail\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isTCatExtension\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"transporters/t-cat-editor\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@disabled\\\",\\\"@transporter\\\",\\\"@model\\\"],[[23,1,[]],[22,\\\"isReadonly\\\"],[22,\\\"errors\\\"],[22,\\\"isDisabled\\\"],[22,\\\"transporter\\\"],[22,\\\"model\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isTransporterSevenEleven\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"transporters/seven-eleven-editor\\\",[],[[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@disabled\\\",\\\"@transporter\\\",\\\"@model\\\",\\\"@canChangeConvenienceStoreOverride\\\"],[[23,1,[]],[22,\\\"isReadonly\\\"],[22,\\\"errors\\\"],[22,\\\"isDisabled\\\"],[22,\\\"transporter\\\"],[22,\\\"model\\\"],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"transporterExtension\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"transporterEditorComponent\\\"]]],[[\\\"isReadonly\\\",\\\"canChangeConvenienceStoreOverride\\\",\\\"errors\\\",\\\"disabled\\\",\\\"formInitData\\\",\\\"transporter\\\",\\\"model\\\"],[[24,[\\\"isReadonly\\\"]],[23,4,[]],[24,[\\\"errors\\\"]],[24,[\\\"isDisabled\\\"]],[23,1,[]],[24,[\\\"transporter\\\"]],[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[24,[\\\"docType\\\"]],\\\"sales\\\"],null],[28,\\\"or\\\",[[28,\\\"eq\\\",[[24,[\\\"docName\\\"]],\\\"consignments\\\"],null],[28,\\\"eq\\\",[[24,[\\\"docName\\\"]],\\\"invoices\\\"],null]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"waybill\\\",[22,\\\"errors\\\"],\\\"waybill\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"placeholder\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],\\\"auto\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"waybill\\\"]]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"packages\\\",[22,\\\"errors\\\"],\\\"packages\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"packages\\\"]]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"arrival date\\\",[22,\\\"errors\\\"],\\\"transporterArrivalDateZ\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.transporterArrivalDateZ\\\",[23,2,[]],[23,2,[\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]],[23,3,[]]]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"transporter notes\\\",[22,\\\"errors\\\"],\\\"transporterNotes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"rows\\\",\\\"readonly\\\",\\\"value\\\"],[1,[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/editor-component/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-editor/component\", [\"exports\", \"ramda\", \"client/mixins/date\", \"client/utils/nventor\", \"client/mixins/search-contacts\", \"ember-concurrency\", \"client/mixins/transporter-accounts\", \"client/mixins/hct-fetch\", \"ramda-adjunct\"], function (_exports, R, _date, _nventor, _searchContacts, _emberConcurrency, _transporterAccounts, _hctFetch, RA) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_date.default, _hctFetch.default, _searchContacts.default, _transporterAccounts.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    settingsService: Ember.inject.service('settings'),\n    // @TODO: figure out a way to handle hct extension. since it will be an external extension, how will model\n    // @TODO: know that that data is incomplete?\n    // @TODO: move transporter into a modal dialog if isHCT\n    // @TODO: then ater processing hct data (on server) then respond with isComplete.\n\n    tagName: 'div',\n    isReadonly: false,\n    isPickerOnly: false,\n    // true: only has transport selector. false: will have additional form info\n    isModal: false,\n    requestTimer: '',\n    // used to keep track of latest timer for when making hct calls\n    autoFetchTransporter: true,\n    showAdvancedAddress: false,\n    async init() {\n      this.crud.addLists(this, ['extensions/apps/tw/hct/batches', 'extensions/apps/tw/t-cat/lists/thermosphere']);\n      this.autoFetchTransporter = R.propOr(true, 'autoFetchTransporter')(this);\n      this._super(...arguments);\n      const model = this.model;\n      const transporterKey = model.getData('transporterKey');\n      if (!this.transporter && transporterKey && this.autoFetchTransporter) {\n        const transporter = await this.findTask.perform({\n          adapterName: 'contacts',\n          appendPath: transporterKey\n        });\n        this.set('transporter', transporter);\n      }\n      if (this?.model?._data?.hasAdvancedAddress) {\n        this.set('showAdvancedAddress', true);\n      }\n      if (model.getData('transporterExtension') === 'hct' && !model.getData('transporterAccountNumber')) {\n        this.setDefaultHCTAccount(model);\n      }\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const model = this.model;\n      if (model.getData('transporterExtension') === 'hct') {\n        if (this.fetchHCTRegionDataOnInit && model.getData('transporterExtension') === 'hct' && !model.getData('transporterRegion')) {\n          this.fetchHCTRegionDataTask.perform(model);\n        }\n        if (!model?._data?.transporterPackageTemperature) {\n          this.setDefaultTransporterPackageTemperature(model);\n        }\n      }\n    },\n    setDefaultTransporterPackageTemperature(model) {\n      const defaultPackageTemperatureModel = R.path(['crud', 'lists', 'extensions-apps-tw-t-cat-lists-thermosphere', 0])(this);\n      if (!defaultPackageTemperatureModel) {\n        return;\n      }\n      model.setData('transporterPackageTemperature', defaultPackageTemperatureModel?._data?.value);\n    },\n    /**\n     * disable if component isReadonly or if has already been despatched\n     * @return {[type]} [description]\n     */\n    isDisabled: Ember.computed('isReadonly', 'model._data.transporterIsDispatched', 'disabled', function () {\n      if (!R.isNil(this.disabled)) {\n        return this.disabled;\n      }\n      const isReadonly = this.isReadonly;\n      const model = this.model;\n      const isDispatched = model.getData('transporterIsDispatched');\n      if (isReadonly || isDispatched) {\n        return true;\n      }\n      return false;\n    }),\n    disallowChangeSenderData: Ember.computed('isReadonly', 'model._data.hasCustomSenderAddress', 'disabled', function () {\n      return this.isReadonly;\n    }),\n    setDefaultHCTAccount(model) {\n      model.setData('transporterBatchNumber', '1');\n      model.setData('transporterBatchLabel', '1');\n      const hasTransporterPackageTemperature = R.pipe(R.path(['_data', 'transporterPackageTemperature']), RA.isNotNilOrEmpty)(model);\n      if (!hasTransporterPackageTemperature) {\n        const transporterAccounts = this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere'];\n        const transporterAccountValue = R.pathOr('', [0, '_data', 'value'])(transporterAccounts);\n        model.setData('transporterPackageTemperature', transporterAccountValue);\n      }\n      const hasTransporterSenderName = R.pipe(R.path(['_data', 'transporterSenderName']), RA.isNotNilOrEmpty)(model);\n      if (!hasTransporterSenderName) {\n        const transporterSenderName = this?.transporter?._data?.senderName || this.settingsService?.settingsModel?._data?.company;\n        model.set('_data.transporterSenderName', transporterSenderName);\n      }\n      const hasTransporterSenderTelephone = R.pipe(R.path(['_data', 'transporterSenderTelephone']), RA.isNotNilOrEmpty)(model);\n      if (!hasTransporterSenderTelephone) {\n        const transporterSenderTelephone = this?.transporter?._data?.senderTelephone || this.settingsService?.settingsModel?._data?.companyTel;\n        model.set('_data.transporterSenderTelephone', transporterSenderTelephone);\n      }\n      const hasTransporterSenderAddress = R.pipe(R.path(['_data', 'transporterSenderAddress']), RA.isNotNilOrEmpty)(model);\n      if (!hasTransporterSenderAddress) {\n        const transporterSenderAddress = this?.transporter?._data?.senderAddress || this.settingsService?.settingsModel?._data?.address;\n        model.set('_data.transporterSenderAddress', transporterSenderAddress);\n      }\n      if (RA.isNilOrEmpty(model?._data?._key) && !model.getData('transporterAccountNumber')) {\n        const defaultAccount = R.pipe(R.pathOr([], ['transporter', '_data', 'transporterAccounts']), transporterAccounts => {\n          const defaultTransporterAccount = transporterAccounts.find(account => account?._data?.isDefault);\n          if (defaultTransporterAccount) {\n            return defaultTransporterAccount;\n          }\n          return transporterAccounts[0];\n        })(this);\n        if (!model.getData('packages')) {\n          model.setData('packages', '1');\n        }\n        this.setHCTWeightRate(defaultAccount);\n      }\n    },\n    unsetDefaultHCTAccount(model) {\n      model.setData('transporterBatchNumber', '');\n      model.setData('transporterBatchLabel', '');\n      model.setData('transporterAccountNumber', '');\n      model.setData('transporterAccount', '');\n      model.setData('packages', '');\n      model.setData('transporterWeightRate', '');\n      model.setData('transporterExtension', '');\n      model.setData('transporterPackageTemperature', '');\n    },\n    /**\n     * update hct region data\n     */\n    // updateHCTRegion(model) {\n    //\n    //   const self = this;\n    //\n    //   const hasPreviousTimer = self.get('requestTimer');\n    //   if (hasPreviousTimer) {\n    //\n    //     clearTimeout(hasPreviousTimer);\n    //   }\n    //\n    //   return new Ember.RSVP.Promise(function (resolve, reject) {\n    //\n    //     if (model.getData('isHCT') && model.getData('address') && !isPickerOnly) {\n    //\n    //       //do not fetch hct region data immediately on key press changes,\n    //       //allow a slight delay before fetching, this will minimise http calls\n    //       const requestTimer = setTimeout(function () {\n    //\n    //         //must wait for first request to finish before requesting again\n    //         const hasPreviousRequest = self.get('request');\n    //         if (hasPreviousRequest) {\n    //           hasPreviousRequest.then(function () {\n    //\n    //             return resolve(self._fetchHCTRegionData(model));\n    //           });\n    //         } else {\n    //\n    //           return resolve(self._fetchHCTRegionData(model));\n    //         }\n    //       }, 600);\n    //\n    //     } else {\n    //\n    //       model.setData('transporterRegion', '');\n    //       model.setData('transporterRegionIsOuter', '');\n    //     }\n    //\n    //     self.set('requestTimer', requestTimer);\n    //   });\n    // },\n\n    unloadHCT(model) {\n      model.setData('transporterRegion', '');\n      model.setData('transporterRegionIsOuter', '');\n      this.unsetDefaultHCTAccount(model);\n    },\n    setHCTWeightRate(account) {\n      const hasAccount = RA.isNotNilOrEmpty(account);\n      if (hasAccount) {\n        const weightRate = account.getData('rate');\n        const model = this.model;\n        model.setData('transporterWeightRate', weightRate);\n        model.setData('transporterAccount', account.getData('name'));\n        model.setData('transporterAccountNumber', account?._data?.account);\n      }\n    },\n    fetchAndSubmitTask: (0, _emberConcurrency.task)(function* () {\n      try {\n        const model = this.model;\n        const transporterRegion = model.getData('transporterRegion');\n        if (transporterRegion !== '' && transporterRegion != null && transporterRegion !== false) {\n          model.set('showHCTModal', false);\n          return this._submit(model);\n        }\n        const fetchedTransporterRegion = yield this.fetchHCTRegionDataTask.perform(model);\n        const errors = this.isHCTIncomplete(model);\n        if (errors) {\n          this.set('errors', errors);\n          return false;\n        }\n        if (fetchedTransporterRegion) {\n          return this._submit(model);\n        }\n      } catch (err) {\n        this.set('errors', err.data);\n        _nventor.default.throw('fetchAndSubmitTask failed', err);\n      }\n    }).drop(),\n    _submit(model) {\n      model.set('showHCTModal', false);\n      return this.onSubmitTask.perform({\n        appendPath: 'final'\n      });\n    },\n    toggleShowAdvancedAddress(value) {\n      const showAdvancedAddress = this.showAdvancedAddress;\n      if (RA.isNotNilOrEmpty(value) && R.is(Boolean, value)) {\n        this.set('showAdvancedAddress', value);\n      } else {\n        this.set('showAdvancedAddress', R.not(showAdvancedAddress));\n      }\n    },\n    loadCustomSenderDetails(model) {\n      if (!this.hadCustomSenderDetails || !model) {\n        return;\n      }\n      this.setTransporterSender(this.customSenderDetails);\n    },\n    setTransporterSender(transporterPersonData = {}) {\n      const docSalesModel = this.model;\n      if (!docSalesModel) {\n        return;\n      }\n      const transporterData = R.pipe(R.toPairs, R.filter(R.pipe(R.head, R.test(/^transporter/))), R.fromPairs)(transporterPersonData);\n\n      // Set transporter data to docSales\n\n      for (const transporterKey in transporterData) {\n        const value = transporterData[transporterKey];\n        const hasValue = RA.isNotNilOrEmpty(value);\n        if (hasValue) {\n          docSalesModel.setData(transporterKey, value);\n        }\n      }\n    },\n    updateSenderDetails(senderModel) {\n      const selectedSenderName = senderModel?._data?.name;\n      this.set('selectedSenderName', selectedSenderName);\n      this.setTransporterSender(senderModel);\n    },\n    refreshModel(model) {\n      this.set('transporter', model);\n    },\n    updateArrivalDate(newDate) {\n      this.set('_data.transporterArrivalDateZ', newDate);\n    },\n    setTransporterData(transporterModel, senderModel) {\n      const senderData = senderModel?.getTransporterData() || {};\n      this.model.setData('transporterSenderAddress', senderData?.transporterSenderAddress);\n      this.model.setData('transporterSenderName', senderData?.transporterSenderName);\n      this.model.setData('transporterSenderTelephone', senderData?.transporterSenderTelephone);\n      this.model.setData('transporterPackageTemperature', senderData?.transporterAccount);\n    },\n    actions: {\n      loadTransporterContactPerson(person) {\n        const model = this.model;\n        const name = person.getData('name');\n        model.setData('person', name);\n      },\n      /**\n       * action to handle when address has changed with input change\n       */\n      hctAddressChanged() {\n        const model = this.model;\n        model.setData('transporterRegion', '');\n        model.setData('transporterRegionIsOuter', '');\n        if (this.fetchHCTRegionDataOnInit && model.getData('transporterExtension') === 'hct') {\n          this.fetchHCTRegionDataTask.perform(model);\n        }\n      },\n      hctSetWeightRate(account) {\n        this.setHCTWeightRate(account);\n      },\n      loadTransporterAddress(prop, detail) {\n        this.onLoadContactDetail(prop, detail);\n        this.send('hctAddressChanged');\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleShowAdvancedAddress\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleShowAdvancedAddress\"), _obj), _applyDecoratedDescriptor(_obj, \"loadCustomSenderDetails\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"loadCustomSenderDetails\"), _obj), _applyDecoratedDescriptor(_obj, \"setTransporterSender\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"setTransporterSender\"), _obj), _applyDecoratedDescriptor(_obj, \"updateSenderDetails\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"updateSenderDetails\"), _obj), _applyDecoratedDescriptor(_obj, \"refreshModel\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"refreshModel\"), _obj), _applyDecoratedDescriptor(_obj, \"updateArrivalDate\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"updateArrivalDate\"), _obj), _applyDecoratedDescriptor(_obj, \"setTransporterData\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"setTransporterData\"), _obj), _obj));\n});","define(\"client/pods/components/transporters/hct-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6RNVijd+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@formInitData\\\",\\\"@onLoadContactPerson\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@title\\\"],[[23,4,[]],true,true,\\\"recipient\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"transporters/contact\\\",[],[[\\\"@formInitData\\\",\\\"@model\\\",\\\"@enableSelectPickupMethod\\\",\\\"@isReadonly\\\",\\\"@onInputAddress\\\",\\\"@onLoadContactPerson\\\"],[[23,4,[]],[23,2,[]],false,[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"hctAddressChanged\\\"],null],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@title\\\"],[[23,4,[]],true,true,\\\"transporter settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[[23,4,[]],\\\"arrival date\\\",[24,[\\\"errors\\\"]],\\\"transporterArrivalDateZ\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onChange\\\",\\\"@isReadonly\\\"],[\\\"_data.transporterArrivalDateZ\\\",[23,2,[]],[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]],[23,2,[\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]],[23,2,[\\\"_data\\\",\\\"expectedDateZ\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"updateArrivalDate\\\"],null],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,4,[]],\\\"pickup locations\\\",[23,6,[]],\\\"pickupLocations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"transporters/sender-list-btn\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onRefreshModel\\\",\\\"@onSelect\\\",\\\"@defaultPersonId\\\",\\\"@listSelectorValueKey\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[22,\\\"model\\\"],[23,0,[\\\"refreshModel\\\"]],[23,0,[\\\"setTransporterData\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterDefaultPickupLocationPersonId\\\"]],\\\"_data.transporterDefaultPickupLocationPersonId\\\"]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"required\\\"],[[23,4,[]],\\\"transporter account\\\",[24,[\\\"errors\\\"]],\\\"transporterAccountNumber\\\",true]],{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[23,2,[\\\"_data\\\",\\\"transporterAccount\\\"]]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"transporter\\\",\\\"_data\\\",\\\"transporterAccounts\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"disabled\\\",\\\"readonly\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"onSelect\\\",\\\"value\\\"],[true,[23,0,[\\\"disallowChangeSenderData\\\"]],true,[23,0,[\\\"transporter\\\",\\\"_data\\\",\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",[28,\\\"action\\\",[[23,0,[]],\\\"hctSetWeightRate\\\"],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"transporterPackageTemperature\\\",[22,\\\"formInitData\\\"],\\\"transporter package temperature\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],[23,2,[\\\"_data\\\",\\\"transporterPackageTemperature\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"required\\\"],[[23,4,[]],\\\"packages\\\",[24,[\\\"errors\\\"]],\\\"packages\\\",true]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"packages\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[[23,4,[]],\\\"transporter notes\\\",[24,[\\\"errors\\\"]],\\\"transporterNotes\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"readonly\\\",\\\"rows\\\",\\\"maxlength\\\",\\\"value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],2,97,[24,[\\\"model\\\",\\\"_data\\\",\\\"transporterNotes\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,4,[]],\\\"sender name\\\",[23,6,[]],\\\"transporterSenderName\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"transporterSenderName\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,4,[]],\\\"sender telephone\\\",[23,6,[]],\\\"transporterSenderTelephone\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"transporterSenderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,4,[]],\\\"sender_address\\\",[23,6,[]],\\\"transporterSenderAddress\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"transporterSenderAddress\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[[23,4,[]],\\\"waybill\\\",[24,[\\\"errors\\\"]],\\\"waybill\\\"]],{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"transporters/waybill-display\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-page-waybill/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class TransportersHctPageWaybillComponent extends _component.default {}\n  _exports.default = TransportersHctPageWaybillComponent;\n});","define(\"client/pods/components/transporters/hct-page-waybill/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ovNB6h6U\",\n    \"block\": \"{\\\"symbols\\\":[\\\"row\\\",\\\"rowIndex\\\",\\\"@firstRowBottomPadding\\\",\\\"@lastRowTopPadding\\\",\\\"@hctWaybillsPerPage\\\",\\\"@page\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"hct-waybills__multiple-waybills-per-page u-page-break-not-last-child\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"hct-waybills__table\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"transporters/hct-row-waybill\\\",[],[[\\\"@firstRowBottomPadding\\\",\\\"@lastRowTopPadding\\\",\\\"@hctWaybillsPerPage\\\",\\\"@rowIndex\\\",\\\"@row\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,2,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct-page-waybill/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-row-waybill/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 TransportersHctRowWaybillComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class TransportersHctRowWaybillComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor, this);\n    }\n    // Unused\n    get style() {\n      let style = '';\n      const isSixWaybillsPerPage = Number(this.args?.hctWaybillsPerPage) === 6;\n      if (!isSixWaybillsPerPage) {\n        return style;\n      }\n      const isFirstRow = this.args?.rowIndex === 0;\n      if (this.args?.firstRowBottomPadding && isFirstRow) {\n        style += `padding-bottom: ${this.args?.firstRowBottomPadding}mm; `;\n      }\n      const isLastRow = this.args?.rowIndex === 2;\n      if (this.args?.lastRowTopPadding && isLastRow) {\n        style += `padding-top: ${this.args?.lastRowTopPadding}mm; `;\n      }\n      return style;\n    }\n    togglePrintWaybill(model) {\n      model.toggleProperty('printWaybill', false);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"togglePrintWaybill\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePrintWaybill\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/hct-row-waybill/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UkP9OWCt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"modelWithShippingWaybill\\\",\\\"@row\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"hct-waybills__row u-print-no-break\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"hct-waybills__column\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"transporters/hct-waybill\\\",null,[[\\\"pageIndex\\\",\\\"rowIndex\\\",\\\"shippingWaybill\\\",\\\"onTogglePrintWaybill\\\"],[[24,[\\\"pageIndex\\\"]],[24,[\\\"rowIndex\\\"]],[23,1,[\\\"shippingWaybill\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"togglePrintWaybill\\\"]],[23,1,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"hct-waybill__container hct-waybills__container--empty\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"h1\\\",true],[10,\\\"class\\\",\\\"u-no-print\\\"],[8],[0,\\\"- \\\"],[1,[28,\\\"tt\\\",[\\\"empty\\\"],null],false],[0,\\\" -\\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct-row-waybill/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-sender-details/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 TransportersHctSenderDetailsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember.computed('args.model._data.details.[]'), _dec4 = Ember.computed('args.model._data.details.[]'), _dec5 = Ember.computed('args.model._data.details.[]'), _dec6 = Ember.computed('args.model._data.details.[]'), _dec7 = Ember._action, _class = class TransportersHctSenderDetailsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"model\", _descriptor2, this);\n    }\n    get telephoneDetailModelProxy() {\n      const subType = 'telephone';\n      return this._getDetailModelBySubType(subType);\n    }\n    get addressDetailModelProxy() {\n      const subType = 'address';\n      return this._getDetailModelBySubType(subType);\n    }\n    get transporterAccountDetailModelProxy() {\n      const subType = 'transporterAccount';\n      return this._getDetailModelBySubType(subType);\n    }\n    get transporterPackageTemperatureDetailModelProxy() {\n      const subType = 'transporterPackageTemperature';\n      return this._getDetailModelBySubType(subType);\n    }\n    _getDetailModelBySubType(subType) {\n      return R.pipe(R.pathOr([], ['args', 'model', '_data', 'details']), R.find(R.pathEq(['_data', 'subType'], subType)))(this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"telephoneDetailModelProxy\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"telephoneDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addressDetailModelProxy\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"addressDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterAccountDetailModelProxy\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterAccountDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterPackageTemperatureDetailModelProxy\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterPackageTemperatureDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getDetailModelBySubType\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"_getDetailModelBySubType\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/hct-sender-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"V1Q9oYn1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\"],\\\"statements\\\":[[2,\\\" Telephone \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"telephoneDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],true,true,[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],true,[23,0,[\\\"telephoneDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Address \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"addressDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],true,true,[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],true,[23,0,[\\\"addressDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Account \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"transporterAccountDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,0,[\\\"transporterAccountDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Package Temperature \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"transporterPackageTemperatureDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],[23,0,[\\\"transporterPackageTemperatureDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct-sender-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-summary/component\", [\"exports\", \"ramda\", \"ramda-extension\"], function (_exports, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    pageLimit: 10,\n    init() {\n      this.crud.addLists(this, ['extensions/apps/tw/hct/accounts/filters']);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this.set('listsIsLoaded', Math.random());\n    },\n    allSummaryList: Ember.computed('listsIsLoaded', 'crud.lists.extensions-apps-tw-hct-accounts-filters.[]', 'results.[]', function () {\n      const results = this.results || [];\n      const accounts = R_.dotPath('crud.lists.extensions-apps-tw-hct-accounts-filters')(this) || [];\n      const hctExtension = this.get('constants.transporterExtensions.hct');\n      const hctDocuments = R.filter(result => {\n        const transporterExtension = result.getData?.('transporterExtension') || result?._data?.transporterExtension || '';\n        return transporterExtension === hctExtension;\n      })(results);\n      const documentsByAccountNumber = R.groupBy(result => {\n        return result.getData?.('transporterAccountNumber') || result?._data?.transporterAccountNumber || '';\n      })(hctDocuments);\n      const summaries = R.pipe(R.toPairs, R.map(([accountNumber, accountDocuments]) => {\n        const accountModel = R.find(account => {\n          return account.getData?.('value') === accountNumber;\n        })(accounts);\n        const summaryPages = this.buildSummaryPages(accountDocuments);\n        const packageCount = R.reduce((totalPackages, result) => {\n          const packages = Number(result.getData?.('packages') || result?._data?.packages) || 0;\n          return totalPackages + packages;\n        }, 0)(accountDocuments);\n        return {\n          account: accountModel || {\n            _data: {\n              value: accountNumber,\n              label: accountNumber\n            }\n          },\n          totals: {\n            count: accountDocuments.length,\n            packages: packageCount\n          },\n          pages: summaryPages,\n          weightRate: accountModel?.getData?.('weightRate')\n        };\n      }))(documentsByAccountNumber);\n      const lastSummary = R.last(summaries);\n      const lastPage = R.last(lastSummary?.pages || []);\n      if (lastPage) {\n        lastPage.isLastPrintedPage = true;\n      }\n      return summaries;\n    }),\n    buildSummaryPages(accountDocuments = []) {\n      const pageLimit = this.pageLimit;\n      const pages = [];\n      let pageIndex = 0;\n      let subPackages = 0;\n      let subCount = 0;\n      R.forEach(result => {\n        const packages = Number(result.getData?.('packages') || result?._data?.packages) || 0;\n        subPackages = subPackages + packages;\n        subCount = subCount + 1;\n        if (!pages[pageIndex]) {\n          pages[pageIndex] = {\n            data: []\n          };\n        }\n        pages[pageIndex].data.push(result);\n        pages[pageIndex].subCount = subCount;\n        pages[pageIndex].subPackages = subPackages;\n        pages[pageIndex].page = pageIndex + 1;\n        if (subCount >= pageLimit) {\n          subPackages = 0;\n          subCount = 0;\n          pageIndex = pageIndex + 1;\n        }\n      })(accountDocuments);\n      return pages;\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-summary/hct-summary-row/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SubPanelsFaqsComponent = _exports.default = (_dec = Ember.inject.service, _class = class SubPanelsFaqsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"big\", _descriptor, this);\n    }\n    get hasDocumentsWithCash() {\n      const model = this.args.model || {};\n      let paymentMethodKeys = [];\n      if (model) {\n        paymentMethodKeys = model.getGroupedDocumentsPaymentMethodKeys({\n          document: model,\n          hasGroups: true,\n          hasPaymentLastFiveDigits: false,\n          isJoinResults: false,\n          isTranslate: false\n        });\n      }\n      return R.includes('cash', paymentMethodKeys);\n    }\n    get groupedDocsTotal() {\n      const model = this.args.model || {};\n      if (model) {\n        return model.getGroupedDocumentsTotal({\n          document: model,\n          hasGroups: true\n        });\n      }\n      return {\n        exclTotal: 0,\n        taxTotal: 0,\n        inclTotal: 0,\n        cashCollectionInclTotal: 0\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"big\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/transporters/hct-summary/hct-summary-row/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"sMqGQ1V+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@summary\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"waybill\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"transporterRegion\\\"]],false],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"transporterContactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[23,1,[\\\"_data\\\",\\\"transporterContactPerson\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"contact\\\"]],[28,\\\"not-eq\\\",[[23,1,[\\\"_data\\\",\\\"transporterContactPerson\\\"]],[23,1,[\\\"_data\\\",\\\"contact\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        (\\\"],[1,[23,1,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[1,[23,1,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"packages\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"multiply\\\",[[23,1,[\\\"_data\\\",\\\"packages\\\"]],[23,2,[\\\"weightRate\\\"]]],null],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"telephone\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasDocumentsWithCash\\\"]]],null,{\\\"statements\\\":[[0,\\\"      41\\\\n      \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n      代收貨款: \\\"],[1,[23,0,[\\\"groupedDocsTotal\\\",\\\"cashCollectionInclTotal\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      11\\\\n      \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n      元付\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"style\\\",\\\"border-bottom:solid 1px;\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[8],[1,[23,1,[\\\"_data\\\",\\\"address\\\"]],false],[9],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-float-right\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"date\\\",[[23,1,[\\\"_data\\\",\\\"dispatchDateZ\\\"]],\\\"YYYY-MM-DD\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-float-clear\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct-summary/hct-summary-row/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-summary/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jExR8jeW\",\n    \"block\": \"{\\\"symbols\\\":[\\\"summary\\\",\\\"page\\\",\\\"model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"allSummaryList\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"allSummaryList\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[\\\"pages\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-print-page hct-summary \\\",[28,\\\"if\\\",[[23,2,[\\\"isLastPrintedPage\\\"]],\\\"last\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table u-full-width\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[10,\\\"class\\\",\\\"has-text-centered\\\"],[8],[0,\\\"\\\\n              新竹物流託運總表\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-float-right\\\"],[8],[0,\\\"頁次: \\\"],[1,[23,2,[\\\"page\\\"]],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-float-clear\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"發送日期:\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[24,[\\\"period\\\",\\\"date\\\"]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"客戶代號:\\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"account\\\",\\\"_data\\\",\\\"value\\\"]],false],[0,\\\" - \\\"],[1,[23,1,[\\\"account\\\",\\\"_data\\\",\\\"label\\\"]],false],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"pod/get\\\",[\\\"company\\\"],null],false],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border-top:double;border-bottom:double\\\"],[8],[0,\\\"\\\\n              查貨號碼\\\\n              \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n              收貨人地址\\\\n              \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n              備註\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border-top:double;border-bottom:double\\\"],[8],[0,\\\"到著站\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border-top:double;border-bottom:double\\\"],[8],[0,\\\"收貨人名稱\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border-top:double;border-bottom:double\\\"],[8],[0,\\\"件數\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border-top:double;border-bottom:double\\\"],[8],[0,\\\"\\\\n              重量\\\\n              \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n              (公斤)\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border-top:double;border-bottom:double\\\"],[8],[0,\\\"收貨人電話\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"style\\\",\\\"border-top:double;border-bottom:double\\\"],[8],[0,\\\"\\\\n              傳票區分\\\\n              \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n              代收貨款\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"data\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"transporters/hct-summary/hct-summary-row\\\",[],[[\\\"@model\\\",\\\"@summary\\\"],[[23,3,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"小計:\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[23,2,[\\\"subCount\\\"]],false],[0,\\\" 筆\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[8],[0,\\\"小計:\\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[23,2,[\\\"subPackages\\\"]],false],[0,\\\" 件\\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"compare\\\",[[23,2,[\\\"page\\\"]],\\\"==\\\",[28,\\\"count\\\",[[23,1,[\\\"pages\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"總筆數:\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[23,1,[\\\"totals\\\",\\\"count\\\"]],false],[0,\\\" 筆\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"總件數:\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-right\\\"],[8],[1,[23,1,[\\\"totals\\\",\\\"packages\\\"]],false],[0,\\\" 件\\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct-summary/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-waybill/component\", [\"exports\", \"client/mixins/droppable\", \"client/mixins/date\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _droppable, _date, R, _emberConcurrencyDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _obj;\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  var _default = _exports.default = Ember.Component.extend(_date.default, _droppable.default, (_obj = {\n    big: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    tagName: 'div',\n    classNames: ['hct-waybill__container-outer'],\n    transporterWaybillBase64Image: null,\n    // @deprecated?\n    arrivalDate: Ember.computed('model._data.arrivalDate', function () {\n      const model = this.model;\n      let arrivalDate = '';\n      const transporterArrivalDateZ = model.getData('transporterArrivalDateZ');\n      const tomorrow = this.getTomorrow();\n      const tomorrowZ = this.getStartOfDayZ(tomorrow);\n      if (transporterArrivalDateZ && (this.isEqualWeekday(transporterArrivalDateZ, 6) || transporterArrivalDateZ > tomorrowZ)) {\n        arrivalDate = this.formatDate(transporterArrivalDateZ, 'YYYY-MM-DD');\n      }\n      return arrivalDate;\n    }),\n    waybillStyle: Ember.computed('model._data.waybill', 'transporterWaybillBase64Image', function () {\n      return `\n  width: 100%;\n  height: 100%;\n  display: block;\n  `;\n    }),\n    // for print all, hasGroups always true\n    // @deprecated?\n    hasDocumentsWithCash: Ember.computed('model._data.{paymentMethodKey,groups.@each.synced}', function () {\n      const model = this.model || {};\n      let paymentMethodKeys = [];\n      if (model) {\n        paymentMethodKeys = model.getGroupedDocumentsPaymentMethodKeys({\n          document: model,\n          hasGroups: true,\n          hasPaymentLastFiveDigits: false,\n          isJoinResults: false,\n          isTranslate: false\n        });\n      }\n      return R.includes('cash', paymentMethodKeys);\n    }),\n    // @deprecated?\n    groupedDocsTotal: Ember.computed('model._data.{groups.@each.synced,exclTotal,inclTotal,taxTotal,cashCollectionInclTotal,paymentMethodKey}', function () {\n      const model = this.model || {};\n      if (model) {\n        return model.getGroupedDocumentsTotal({\n          document: model,\n          hasGroups: true\n        });\n      }\n      return {\n        exclTotal: 0,\n        taxTotal: 0,\n        inclTotal: 0,\n        cashCollectionInclTotal: 0\n      };\n    }),\n    *fetchWaybillRecord(model) {\n      let transporterWaybillBase64Image = R.path(['_data', 'transporterWaybillRecords', 0, 'transporterWaybillBase64Image'])(model);\n      if (!transporterWaybillBase64Image) {\n        const result = yield this.dispatch.hctFetchWaybillRecordTask.perform({\n          component: this,\n          documents: [model]\n        });\n        transporterWaybillBase64Image = result?.data?.[0]?.transporterWaybillBase64Image;\n      }\n      this.set('transporterWaybillBase64Image', transporterWaybillBase64Image);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"fetchWaybillRecord\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"fetchWaybillRecord\"), _obj), _obj));\n});","define(\"client/pods/components/transporters/hct-waybill/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dKGTNK3G\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@shippingWaybill\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"hct-waybill__container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"waybill\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"hct-waybill__image\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[29,[\\\"data:image/png;base64,\\\",[23,1,[\\\"transporterWaybillBase64Image\\\"]]]]],[11,\\\"alt\\\",[29,[[23,1,[\\\"waybill\\\"]]]]],[11,\\\"style\\\",[23,0,[\\\"waybillStyle\\\"]]],[8],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-no-print has-text-centered u-section has-text-info\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"onSubmit\\\"],[\\\"fas fa-eye-slash\\\",[24,[\\\"onTogglePrintWaybill\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"not yet generated\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct-waybill/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-waybills-list/component\", [\"exports\", \"client/mixins/sortable-actions\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\", \"ember-concurrency-decorators\"], function (_exports, _sortableActions, R, R_, RA, _emberConcurrencyDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _obj;\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  var _default = _exports.default = Ember.Component.extend(_sortableActions.default, (_obj = {\n    crud: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    settingsService: Ember.inject.service('settings'),\n    filterTransporterAccountNumber: 'all',\n    filterTransporterAccountNumberLabel: 'all',\n    filterTransporterBatchNumber: 'all',\n    filterTransporterBatchNumberLabel: 'all',\n    indexProp: 'index',\n    init() {\n      this.crud.addLists(this, ['extensions/apps/tw/hct/accounts/filters', 'extensions/apps/tw/hct/batches/filters', 'extensions/apps/tw/hct/print/waybills', 'extensions/apps/tw/hct/print/waybills/positions']);\n      const passedWaybillsPerPage = this.hctWaybillsPerPage;\n      if (RA.isNilOrEmpty(passedWaybillsPerPage)) {\n        const hctWaybillsPerPage = this.settings.getProp('hctWaybillsPerPage') || 1;\n        this.set('hctWaybillsPerPage', hctWaybillsPerPage);\n      }\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this.set('listsIsLoaded', Math.random());\n      this.setup();\n    },\n    setup() {\n      if (RA.isNilOrEmpty(this.waybillsPrintStartPosition)) {\n        this.set('waybillsPrintStartPosition', 1);\n      }\n      this.set('firstRowBottomPadding', this.settingsService?.settingsModel?._data?.hctOptions?.firstRowBottomPadding || null);\n      this.set('lastRowTopPadding', this.settingsService?.settingsModel?._data?.hctOptions?.lastRowTopPadding || null);\n    },\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this.applyPrintWaybillDefaultFromSidebar();\n    },\n    applyPrintWaybillDefaultFromSidebar() {\n      const printWaybillDefault = this.printWaybillDefault;\n      if (typeof printWaybillDefault !== 'boolean') {\n        return;\n      }\n      const allSummaryList = this.allSummaryList || [];\n      allSummaryList.forEach(documentModel => {\n        documentModel.set('printWaybill', printWaybillDefault);\n      });\n    },\n    mulitpleWaybillsPerPage: Ember.computed('hctWaybillsPerPage', 'refreshWaybills', function () {\n      if (this.hctWaybillsPerPage > 1) {\n        return true;\n      }\n      return false;\n    }),\n    allowPrintAllWaybills: Ember.computed('dispatchProcess._data.allowPrintAllWaybills', 'tab.dispatchProcess._data.allowPrintAllWaybills', function () {\n      const dispatchProcess = this.dispatchProcess || this.tab?.dispatchProcess;\n      return R.pathEq(['_data', 'allowPrintAllWaybills'], true)(dispatchProcess);\n    }),\n    allSummaryList: Ember.computed('refreshWaybills', 'crud.lists.{extensions-apps-tw-hct-accounts-filters.[],extensions-apps-tw-hct-batches-filters}', 'results.[]', 'filterTransporterAccountNumber', 'filterTransporterBatchNumber', 'dispatch.generateAndDownloadWaybillsTask.isRunning', 'isForceReloading', 'fetchWaybillRecords.isRunning', function () {\n      const results = this.get('results') || [];\n      const filterTransporters = ['hct'];\n      const filterDispatchStatus = this.get('constants.dispatchStatus.dispatched');\n      const all = [];\n      const filterTransporterAccountNumber = this.get('filterTransporterAccountNumber');\n      const filterTransporterBatchNumber = this.get('filterTransporterBatchNumber');\n      const accounts = R_.dotPath('crud.lists.extensions-apps-tw-hct-accounts-filters')(this) || [];\n      const batches = R_.dotPath('crud.lists.extensions-apps-tw-hct-batches-filters')(this) || [];\n\n      // addLists clears listsIsLoaded when this list is created. On a second reprint the\n      // account and batch lists are already cached, so waiting on that flag renders no rows.\n      if (!R.isEmpty(accounts) && !R.isEmpty(batches)) {\n        // get summary lists for each account and each batch\n\n        accounts.forEach(accountModel => {\n          const accountNumber = accountModel.getData('value');\n          batches.forEach(batchModel => {\n            const batchNumber = batchModel.getData('value');\n            if ((filterTransporterAccountNumber === 'all' || filterTransporterAccountNumber === accountNumber) && (filterTransporterBatchNumber === 'all' || filterTransporterBatchNumber === batchNumber)) {\n              results.forEach(result => {\n                const transporterExtension = result.getData('transporterExtension', '');\n                const dispatchStatus = result.getData('dispatchStatus', false);\n                const transporterAccountNumber = result.getData('transporterAccountNumber', 'all');\n                const transporterBatchNumber = result.getData('transporterBatchNumber', 'all');\n                const filterByTransporters = this._filterByTransporters(filterTransporters, transporterExtension);\n                const filterByDispatchStatus = this._filterByDispatchStatus(filterDispatchStatus, dispatchStatus);\n                if (this.allowPrintAllWaybills && dispatchStatus !== filterDispatchStatus || filterByTransporters && filterByDispatchStatus) {\n                  if (transporterAccountNumber === accountNumber && transporterBatchNumber === batchNumber) {\n                    const existInArray = all.find(a => a.getData('_key') === result.getData('_key'));\n                    if (!existInArray) {\n                      all.pushObject(result);\n                    }\n                  }\n                }\n              });\n            }\n          });\n        });\n      }\n      return all;\n    }),\n    toPrintWaybills: Ember.computed('allSummaryList.@each.{index,printWaybill}', 'filter', 'refreshWaybills', 'isForceReloading', 'fetchWaybillRecords.isRunning', function () {\n      const allSummaryList = this.allSummaryList;\n      const filter = this.filter;\n      const mapIndexed = R.addIndex(R.map);\n      return R.pipe(R.filter(doc => {\n        if (R.prop('printWaybill', doc) === false && !filter) {\n          return false;\n        }\n        if (filter) {\n          const data = R.prop('_data', doc);\n          const values = R.pipe(R.pick(['telephone', 'contact', 'transporterContactPerson', 'waybill', 'address']), R.values)(data);\n          const matches = R.filter(value => {\n            if (value.indexOf(filter) > -1) {\n              return true;\n            }\n            return false;\n          })(values);\n          if (matches.length > 0) {\n            return true;\n          }\n          return false;\n        }\n        return true;\n      }), mapIndexed((doc, i) => {\n        doc.set('index', i);\n        return doc;\n      }))(allSummaryList);\n    }),\n    toPrintWaybillsWithShippingWaybills: Ember.computed('toPrintWaybills.[]', 'refreshWaybills', 'shippingWaybills.[]', 'isForceReloading', 'fetchWaybillRecords.isRunning', 'shippingWaybillsByDocSalesKey', function () {\n      const toPrintWaybills = this.toPrintWaybills;\n      const waybillsByDocSalesKey = R.pipe(R.pathOr([], ['shippingWaybills']), R.groupBy(R.prop('resourceKey')))(this);\n      return R.pipe(R.map(doc => {\n        const salesKey = doc.getData('_key');\n        const packages = doc.getData('packages');\n        const notYetGeneratedShippingWaybill = R.times(() => {\n          return {\n            resourceKey: salesKey,\n            waybill: '',\n            packages\n          };\n        })(packages);\n        const shippingWaybills = waybillsByDocSalesKey[salesKey] || notYetGeneratedShippingWaybill;\n        return {\n          model: doc,\n          shippingWaybills\n        };\n      }))(toPrintWaybills);\n    }),\n    hiddenWaybills: Ember.computed('refreshWaybills', 'allSummaryList.@each.printWaybill', 'filter', 'isForceReloading', 'fetchWaybillRecords.isRunning', 'shippingWaybills.[]', function () {\n      const allSummaryList = this.allSummaryList;\n      const waybillsByDocSalesKey = R.pipe(R.pathOr([], ['shippingWaybills']), R.groupBy(R.prop('resourceKey')))(this);\n      return R.pipe(R.reject(R.prop('printWaybill')), R.map(doc => {\n        const salesKey = doc.getData('_key');\n        const shippingWaybills = waybillsByDocSalesKey[salesKey] || [];\n        return {\n          model: doc,\n          shippingWaybills\n        };\n      }))(allSummaryList);\n    }),\n    shippingWaybillsByDocSalesKey: Ember.computed('shippingWaybills.[]', 'toPrintWaybills.[]', function () {\n      const shippingWaybillsByDocSalesKey = R.pipe(R.pathOr([], ['shippingWaybills']), R.groupBy(R.prop('resourceKey')))(this);\n      return R.pipe(R.pathOr({}, ['toPrintWaybills']), R.reduce((acc, doc) => {\n        const salesKey = doc.getData('_key');\n        const shippingWaybills = shippingWaybillsByDocSalesKey[salesKey] || [];\n        if (RA.isNotNilOrEmpty(shippingWaybills)) {\n          return acc.concat(shippingWaybills);\n        }\n        const packages = doc.getData('packages');\n        const notYetGeneratedShippingWaybill = R.times(() => {\n          return {\n            resourceKey: salesKey,\n            waybill: '',\n            packages\n          };\n        })(packages);\n        return acc.concat(notYetGeneratedShippingWaybill);\n      }, []))(this);\n    }),\n    groupedWaybills: Ember.computed('waybillsPrintStartPosition', 'hctWaybillsPerPage', 'toPrintWaybills.[]', 'refreshWaybills', 'isForceReloading', 'fetchWaybillRecords.isRunning', 'shippingWaybills.[]', function () {\n      const hctWaybillsPerPage = parseInt(this.hctWaybillsPerPage) || 1;\n      const waybillsPrintStartPosition = parseInt(this.waybillsPrintStartPosition) || 1;\n      const adjustPositionBy = waybillsPrintStartPosition - 1;\n      const addEmptyObject = n => n > 0 ? [false, n - 1] : false;\n      const adjustment = R.unfold(addEmptyObject, adjustPositionBy);\n      let shippingWaybills = this.shippingWaybillsByDocSalesKey;\n      shippingWaybills = R.concat(adjustment, shippingWaybills);\n      const isOdd = n => n % 2 === 1;\n      const processed = R.pipe(R.reduce((acc, doc) => {\n        if (doc === false) {\n          return acc.concat(false);\n        }\n        const model = R.pipe(R.pathOr({}, ['toPrintWaybills']), R.find(R.pathEq(['_data', '_key'], doc?.resourceKey)))(this);\n        if (RA.isNilOrEmpty(model)) {\n          return acc;\n        }\n        const packages = R.pathOr(1, ['_data', 'packages'], doc);\n        const modelWithShippingWaybill = {\n          model,\n          shippingWaybill: doc\n        };\n        return R.concat(acc, R.repeat(modelWithShippingWaybill, packages));\n      }, []), R.flatten, R.splitEvery(hctWaybillsPerPage), R.map(group => {\n        if (isOdd(R.length(group))) {\n          group = R.concat(group, [false]);\n        }\n        return R.splitEvery(2, group);\n      }))(shippingWaybills);\n      return processed;\n    }),\n    _filterByTransporters(filterTransporters, transporterExtension) {\n      if (Ember.isEmpty(filterTransporters)) {\n        return true;\n      }\n      if (filterTransporters.indexOf(transporterExtension) > -1) {\n        return true;\n      }\n      return false;\n    },\n    _filterByDispatchStatus(filterDispatchStatus, dispatchStatus) {\n      // no filter set, dont filter\n      if (Ember.isEmpty(filterDispatchStatus)) {\n        return true;\n      }\n\n      // match status\n      if (dispatchStatus === filterDispatchStatus) {\n        return true;\n      }\n      return false;\n    },\n    *fetchWaybillRecords(documents) {\n      const result = yield this.dispatch.hctFetchWaybillRecordTask.perform({\n        component: this,\n        documents\n      });\n      let shippingWaybills = R.pipe(R.pathOr([], ['data']))(result);\n      this.set('shippingWaybills', shippingWaybills);\n    },\n    actions: {\n      togglePrintWaybill(model) {\n        model.toggleProperty('printWaybill', false);\n      },\n      togglePrintAll() {\n        this.set('filter', '');\n        const toPrintWaybills = this.allSummaryList || [];\n        toPrintWaybills.forEach(doc => doc.set('printWaybill', true));\n      },\n      toggleHidePrintAll() {\n        this.set('filter', '');\n        const toPrintWaybills = this.allSummaryList || [];\n        toPrintWaybills.forEach(doc => doc.set('printWaybill', false));\n      },\n      reorderWaybills(model, dragItem) {\n        // console.log(model)\n        // console.log(dragItem)\n        // const dragIndex = dragItem.index\n        // const onOverItemIndex = model.get('index')\n        // // const models = this.getData('models')\n        // if (dragIndex === onOverItemIndex) {\n        //   // do nothing\n        // } else if (dragIndex < onOverItemIndex) {\n        //   // move to below onOverItemIndex\n        //   this.setData('details', details.map(detail => this.moveDetailBelow(detail, dragIndex, onOverItemIndex)))\n\n        //   this.set('sortOrder')\n        //   if (this.get('sortDetails')) {\n        //     this.get('sortDetails')()\n        //   }\n        // } else {\n        //   // move to above onOverItemIndex\n        //   this.setData('details', details.map(detail => this.moveDetailAbove(detail, dragIndex, onOverItemIndex)))\n\n        //   if (this.get('sortDetails')) {\n        //     this.get('sortDetails')()\n        //   }\n        // }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"fetchWaybillRecords\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"fetchWaybillRecords\"), _obj), _obj));\n});","define(\"client/pods/components/transporters/hct-waybills-list/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"edSj6yNh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"toPrintWaybillsWithShippingWaybill\\\",\\\"shippingWaybill\\\",\\\"page\\\",\\\"pageIndex\\\",\\\"hiddenWaybill\\\",\\\"shippingWaybill\\\",\\\"@model\\\",\\\"@isForceReloading\\\"],\\\"statements\\\":[[5,\\\"helpers/force-reloading\\\",[],[[\\\"@isForceReloading\\\"],[[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"hideAccountFilters\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-no-print panel-grid__header-title\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"account number\\\"],null],false],[0,\\\":\\\\n        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"list\\\",\\\"label\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-hct-accounts-filters\\\"]],[24,[\\\"filterTransporterAccountNumberLabel\\\"]],[24,[\\\"filterTransporterAccountNumber\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"tt\\\",[\\\"batch number\\\"],null],false],[0,\\\":\\\\n        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"list\\\",\\\"label\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-hct-batches-filters\\\"]],[24,[\\\"filterTransporterBatchNumberLabel\\\"]],[24,[\\\"filterTransporterBatchNumber\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"is-pulled-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"value\\\",\\\"placeholder\\\"],[[24,[\\\"filter\\\"]],\\\"search\\\"]]],false],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show all\\\",\\\"fas fa-eye\\\",[28,\\\"or\\\",[[23,0,[\\\"dispatch\\\",\\\"hctGenerateWaybillTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatch\\\",\\\"generateAndDownloadWaybillsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"togglePrintAll\\\"],null]]]],false],[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"hide all\\\",\\\"fas fa-eye-slash\\\",[28,\\\"or\\\",[[23,0,[\\\"dispatch\\\",\\\"hctGenerateWaybillTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatch\\\",\\\"generateAndDownloadWaybillsTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleHidePrintAll\\\"],null]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-no-print u-section\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[28,\\\"tt\\\",[\\\"waybills per page\\\"],null],false],[0,\\\":\\\\n    \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"list\\\",\\\"label\\\",\\\"value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-hct-print-waybills\\\"]],[24,[\\\"hctWaybillsPerPage\\\"]],[24,[\\\"hctWaybillsPerPage\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"hctWaybillsPerPage\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"print waybills starting position\\\"],null],false],[0,\\\":\\\\n      \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"list\\\",\\\"label\\\",\\\"value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-hct-print-waybills-positions\\\"]],[24,[\\\"waybillsPrintStartPosition\\\"]],[24,[\\\"waybillsPrintStartPosition\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"dispatch\\\",\\\"hctGenerateWaybillTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatch\\\",\\\"generateAndDownloadWaybillsTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-no-print panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hiddenWaybills\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"hiddenWaybills\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"hct-waybill__hidden has-text-centered u-desc u-desc--mini u-tappable\\\"],[3,\\\"action\\\",[[23,0,[]],\\\"togglePrintWaybill\\\",[23,5,[\\\"model\\\"]]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"model\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,5,[\\\"model\\\",\\\"_data\\\",\\\"transporterContactPerson\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,7,[\\\"_data\\\",\\\"contact\\\"]],[28,\\\"not-eq\\\",[[23,7,[\\\"_data\\\",\\\"transporterContactPerson\\\"]],[23,5,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"                  (\\\"],[1,[23,7,[\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                \\\"],[1,[23,5,[\\\"model\\\",\\\"_data\\\",\\\"contact\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"shippingWaybills\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n                  \\\"],[1,[23,6,[\\\"waybill\\\"]],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-no-print u-section\\\"],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"toPrintWaybills\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"fetchWaybillRecords\\\"]],[23,0,[\\\"toPrintWaybills\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"mulitpleWaybillsPerPage\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"groupedWaybills\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"transporters/hct-page-waybill\\\",[],[[\\\"@firstRowBottomPadding\\\",\\\"@lastRowTopPadding\\\",\\\"@hctWaybillsPerPage\\\",\\\"@page\\\"],[[23,0,[\\\"firstRowBottomPadding\\\"]],[23,0,[\\\"lastRowTopPadding\\\"]],[23,0,[\\\"hctWaybillsPerPage\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"toPrintWaybillsWithShippingWaybills\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-page-break-not-last-child\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"shippingWaybills\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"transporters/hct-waybill\\\",null,[[\\\"model\\\",\\\"onTogglePrintWaybill\\\",\\\"shippingWaybill\\\"],[[23,1,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"togglePrintWaybill\\\",[23,1,[\\\"model\\\"]]],null],[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct-waybills-list/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct-waybills-settings/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, _ramda) {\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 TransportersHctWaybillsSettingsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _class = class TransportersHctWaybillsSettingsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      this.crud.addLists(this, ['extensions/apps/tw/hct/print/waybills', 'extensions/apps/tw/hct/print/waybills/positions']);\n      const model = this.args.transporterExtensionOptionsModel;\n      model.set('printComponent', 'dispatch/print-options/hct-waybills');\n      model.set('additionalPrintTabs', [{\n        value: 'hctSummary',\n        kind: 'hctSummary',\n        label: 'hct summary',\n        printComponent: 'dispatch/print-options/hct-summary'\n      }]);\n    }\n    afterLoadLists() {\n      this.setupModel();\n    }\n    setupModel() {\n      const hctWaybillsPerPage = this.settings.getProp('hctWaybillsPerPage') || 1;\n      const model = this.args.transporterExtensionOptionsModel;\n      if (typeof model.get('enabled') !== 'boolean') {\n        model.set('enabled', true);\n      }\n      model.set('waybillsPrintStartPosition', 1);\n      model.set('firstRowBottomPadding', this.settingsService?.settingsModel?._data?.hctOptions?.firstRowBottomPadding || null);\n      model.set('lastRowTopPadding', this.settingsService?.settingsModel?._data?.hctOptions?.lastRowTopPadding || null);\n      model.set('filterTransporterAccountNumber', 'all');\n      model.set('filterTransporterAccountNumberLabel', 'all');\n      model.set('filterTransporterBatchNumber', 'all');\n      model.set('filterTransporterBatchNumberLabel', 'all');\n      model.set('hctFilter', '');\n      model.set('hctWaybillsPerPage', hctWaybillsPerPage);\n      model.set('hctPrintWaybillDefault', null);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class); // import Component from '@ember/component'\n  // import { computed } from '@ember/object'\n  // import { inject as service } from '@ember/service'\n  // import SortableActionsMixin from '../../../../mixins/sortable-actions'\n  // import { isEmpty } from '@ember/utils'\n  // import * as R from 'ramda'\n  // import * as R_ from 'ramda-extension'\n  // import * as RA from 'ramda-adjunct'\n  // import { task } from 'ember-concurrency-decorators'\n  // export default Component.extend(SortableActionsMixin, {\n  //   crud: service(),\n  //   dispatch: service(),\n  //   settingsService: service('settings'),\n  //   filterTransporterAccountNumber: 'all',\n  //   filterTransporterAccountNumberLabel: 'all',\n  //   filterTransporterBatchNumber: 'all',\n  //   filterTransporterBatchNumberLabel: 'all',\n  //   indexProp: 'index',\n  //   init () {\n  //     this.crud.addLists(this, [\n  //       'extensions/apps/tw/hct/accounts/filters',\n  //       'extensions/apps/tw/hct/batches/filters',\n  //       'extensions/apps/tw/hct/print/waybills',\n  //       'extensions/apps/tw/hct/print/waybills/positions'\n  //     ])\n  //     const hctWaybillsPerPage = this.settings.getProp('hctWaybillsPerPage') || 1\n  //     this.set('hctWaybillsPerPage', hctWaybillsPerPage)\n  //     this._super(...arguments)\n  //   },\n  //   afterLoadLists () {\n  //     this.set('listsIsLoaded', Math.random())\n  //     this.setup()\n  //   },\n  //   setup () {\n  //     this.set('waybillsPrintStartPosition', 1)\n  //     this.set('firstRowBottomPadding', this.settingsService?.settingsModel?._data?.hctOptions?.firstRowBottomPadding || null)\n  //     this.set('lastRowTopPadding', this.settingsService?.settingsModel?._data?.hctOptions?.lastRowTopPadding || null)\n  //   },\n  //   mulitpleWaybillsPerPage: computed('hctWaybillsPerPage', 'refreshWaybills', function () {\n  //     if (this.hctWaybillsPerPage > 1) {\n  //       return true\n  //     }\n  //     return false\n  //   }),\n  //   allowPrintAllWaybills: computed('dispatchProcess._data.allowPrintAllWaybills', 'tab.dispatchProcess._data.allowPrintAllWaybills', function () {\n  //     const dispatchProcess = this.dispatchProcess || this.tab?.dispatchProcess\n  //     return R.pathEq(['_data', 'allowPrintAllWaybills'], true)(dispatchProcess)\n  //   }),\n  //   allSummaryList: computed(\n  //     'listsIsLoaded',\n  //     'refreshWaybills',\n  //     'crud.lists.{extensions-apps-tw-hct-accounts-filters.[],extensions-apps-tw-hct-batches-filters}',\n  //     'results.[]',\n  //     'filterTransporterAccountNumber',\n  //     'filterTransporterBatchNumber',\n  //     'dispatch.generateAndDownloadWaybillsTask.isRunning',\n  //     'isForceReloading',\n  //     'fetchWaybillRecords.isRunning',\n  //     function () {\n  //       const results = this.get('results') || []\n  //       const listsIsLoaded = this.listsIsLoaded\n  //       const filterTransporters = ['hct']\n  //       const filterDispatchStatus = this.get('constants.dispatchStatus.dispatched')\n  //       const all = []\n  //       const filterTransporterAccountNumber = this.get('filterTransporterAccountNumber')\n  //       const filterTransporterBatchNumber = this.get('filterTransporterBatchNumber')\n  //       const accounts = R_.dotPath('crud.lists.extensions-apps-tw-hct-accounts-filters')(this) || []\n  //       const batches = R_.dotPath('crud.lists.extensions-apps-tw-hct-batches-filters')(this) || []\n  //       if (listsIsLoaded && !R.isEmpty(accounts) && !R.isEmpty(batches)) {\n  //         // get summary lists for each account and each batch\n  //         accounts.forEach(accountModel => {\n  //           const accountNumber = accountModel.getData('value')\n  //           batches.forEach(batchModel => {\n  //             const batchNumber = batchModel.getData('value')\n  //             if (\n  //               (filterTransporterAccountNumber === 'all' || filterTransporterAccountNumber === accountNumber) &&\n  //               (filterTransporterBatchNumber === 'all' || filterTransporterBatchNumber === batchNumber)\n  //             ) {\n  //               results.forEach(result => {\n  //                 const transporterExtension = result.getData('transporterExtension', '')\n  //                 const dispatchStatus = result.getData('dispatchStatus', false)\n  //                 const transporterAccountNumber = result.getData('transporterAccountNumber', 'all')\n  //                 const transporterBatchNumber = result.getData('transporterBatchNumber', 'all')\n  //                 const filterByTransporters = this._filterByTransporters(filterTransporters, transporterExtension)\n  //                 const filterByDispatchStatus = this._filterByDispatchStatus(filterDispatchStatus, dispatchStatus)\n  //                 if (\n  //                   this.allowPrintAllWaybills &&\n  //                   (dispatchStatus !== filterDispatchStatus) ||\n  //                   (filterByTransporters && filterByDispatchStatus)\n  //                 ) {\n  //                   if (transporterAccountNumber === accountNumber && transporterBatchNumber === batchNumber) {\n  //                     const existInArray = all.find(a => a.getData('_key') === result.getData('_key'))\n  //                     if (!existInArray) {\n  //                       all.pushObject(result)\n  //                     }\n  //                   }\n  //                 }\n  //               })\n  //             }\n  //           })\n  //         })\n  //       }\n  //       return all\n  //     }\n  //   ),\n  //   toPrintWaybills: computed('allSummaryList.@each.{index,printWaybill}', 'filter', 'refreshWaybills', 'isForceReloading', 'fetchWaybillRecords.isRunning', function () {\n  //     const allSummaryList = this.allSummaryList\n  //     const filter = this.filter\n  //     const mapIndexed = R.addIndex(R.map)\n  //     return R.pipe(\n  //       R.filter(doc => {\n  //         if (R.prop('printWaybill', doc) === false && !filter) {\n  //           return false\n  //         }\n  //         if (filter) {\n  //           const data = R.prop('_data', doc)\n  //           const values = R.pipe(\n  //             R.pick(['telephone', 'contact', 'transporterContactPerson', 'waybill', 'address']),\n  //             R.values\n  //           )(data)\n  //           const matches = R.filter(value => {\n  //             if (value.indexOf(filter) > -1) {\n  //               return true\n  //             }\n  //             return false\n  //           })(values)\n  //           if (matches.length > 0) {\n  //             return true\n  //           }\n  //           return false\n  //         }\n  //         return true\n  //       }),\n  //       mapIndexed((doc, i) => {\n  //         doc.set('index', i)\n  //         return doc\n  //       })\n  //     )(allSummaryList)\n  //   }),\n  //   toPrintWaybillsWithShippingWaybills: computed(\n  //     'toPrintWaybills.[]',\n  //     'refreshWaybills',\n  //     'shippingWaybills.[]',\n  //     'isForceReloading',\n  //     'fetchWaybillRecords.isRunning',\n  //     'shippingWaybillsByDocSalesKey',\n  //     function () {\n  //       const toPrintWaybills = this.toPrintWaybills\n  //       const waybillsByDocSalesKey = R.pipe(\n  //         R.pathOr([], ['shippingWaybills']),\n  //         R.groupBy(R.prop('resourceKey'))\n  //       )(this)\n  //       return R.pipe(\n  //         R.map(doc => {\n  //           const salesKey = doc.getData('_key')\n  //           const packages = doc.getData('packages')\n  //           const notYetGeneratedShippingWaybill = R.times(() => {\n  //             return {\n  //               resourceKey: salesKey,\n  //               waybill: '',\n  //               packages\n  //             }\n  //           })(packages)\n  //           const shippingWaybills = waybillsByDocSalesKey[salesKey] || notYetGeneratedShippingWaybill\n  //           return {\n  //             model: doc,\n  //             shippingWaybills\n  //           }\n  //         })\n  //       )(toPrintWaybills)\n  //     }\n  //   ),\n  //   hiddenWaybills: computed('refreshWaybills', 'allSummaryList.@each.printWaybill', 'filter', 'isForceReloading', 'fetchWaybillRecords.isRunning', 'shippingWaybills.[]', function () {\n  //     const allSummaryList = this.allSummaryList\n  //     const waybillsByDocSalesKey = R.pipe(\n  //       R.pathOr([], ['shippingWaybills']),\n  //       R.groupBy(R.prop('resourceKey'))\n  //     )(this)\n  //     return R.pipe(\n  //       R.reject(R.prop('printWaybill')),\n  //       R.map(doc => {\n  //         const salesKey = doc.getData('_key')\n  //         const shippingWaybills = waybillsByDocSalesKey[salesKey] || []\n  //         return {\n  //           model: doc,\n  //           shippingWaybills\n  //         }\n  //       })\n  //     )(allSummaryList)\n  //   }),\n  //   shippingWaybillsByDocSalesKey: computed(\n  //     'shippingWaybills.[]',\n  //     'toPrintWaybills.[]',\n  //     function () {\n  //       const shippingWaybillsByDocSalesKey = R.pipe(\n  //         R.pathOr([], ['shippingWaybills']),\n  //         R.groupBy(R.prop('resourceKey'))\n  //       )(this)\n  //       return R.pipe(\n  //         R.pathOr({}, ['toPrintWaybills']),\n  //         R.reduce(\n  //           (acc, doc) => {\n  //             const salesKey = doc.getData('_key')\n  //             const shippingWaybills = shippingWaybillsByDocSalesKey[salesKey] || []\n  //             if (RA.isNotNilOrEmpty(shippingWaybills)) {\n  //               return acc.concat(shippingWaybills)\n  //             }\n  //             const packages = doc.getData('packages')\n  //             const notYetGeneratedShippingWaybill = R.times(() => {\n  //               return {\n  //                 resourceKey: salesKey,\n  //                 waybill: '',\n  //                 packages\n  //               }\n  //             })(packages)\n  //             return acc.concat(notYetGeneratedShippingWaybill)\n  //           }, []\n  //         )\n  //       )(this)\n  //     }\n  //   ),\n  //   groupedWaybills: computed('waybillsPrintStartPosition', 'hctWaybillsPerPage', 'toPrintWaybills.[]', 'refreshWaybills', 'isForceReloading', 'fetchWaybillRecords.isRunning', 'shippingWaybills.[]', function () {\n  //     const hctWaybillsPerPage = parseInt(this.hctWaybillsPerPage) || 1\n  //     const waybillsPrintStartPosition = parseInt(this.waybillsPrintStartPosition) || 1\n  //     const adjustPositionBy = waybillsPrintStartPosition - 1\n  //     const addEmptyObject = n => n > 0 ? [false, n - 1] : false\n  //     const adjustment = R.unfold(addEmptyObject, adjustPositionBy)\n  //     let shippingWaybills = this.shippingWaybillsByDocSalesKey\n  //     shippingWaybills = R.concat(adjustment, shippingWaybills)\n  //     const isOdd = n => n % 2 === 1\n  //     const processed = R.pipe(\n  //       R.reduce((acc, doc) => {\n  //         if (doc === false) {\n  //           return acc.concat(false)\n  //         }\n  //         const model = R.pipe(\n  //           R.pathOr({}, ['toPrintWaybills']),\n  //           R.find(R.pathEq(['_data', '_key'], doc?.resourceKey))\n  //         )(this)\n  //         if (RA.isNilOrEmpty(model)) {\n  //           return acc\n  //         }\n  //         const packages = R.pathOr(1, ['_data', 'packages'], doc)\n  //         const modelWithShippingWaybill = {\n  //           model,\n  //           shippingWaybill: doc\n  //         }\n  //         return R.concat(acc, R.repeat(modelWithShippingWaybill, packages))\n  //       }, []),\n  //       R.flatten,\n  //       R.splitEvery(hctWaybillsPerPage),\n  //       R.map(group => {\n  //         if (isOdd(R.length(group))) {\n  //           group = R.concat(group, [false])\n  //         }\n  //         return R.splitEvery(2, group)\n  //       })\n  //     )(shippingWaybills)\n  //     return processed\n  //   }),\n  //   _filterByTransporters (filterTransporters, transporterExtension) {\n  //     if (isEmpty(filterTransporters)) {\n  //       return true\n  //     }\n  //     if (filterTransporters.indexOf(transporterExtension) > -1) {\n  //       return true\n  //     }\n  //     return false\n  //   },\n  //   _filterByDispatchStatus (filterDispatchStatus, dispatchStatus) {\n  //     // no filter set, dont filter\n  //     if (isEmpty(filterDispatchStatus)) {\n  //       return true\n  //     }\n  //     // match status\n  //     if (dispatchStatus === filterDispatchStatus) {\n  //       return true\n  //     }\n  //     return false\n  //   },\n  //   @task\n  //   * fetchWaybillRecords (documents) {\n  //     const result = yield this.dispatch.hctFetchWaybillRecordTask.perform({\n  //       component: this,\n  //       documents\n  //     })\n  //     let shippingWaybills = R.pipe(\n  //       R.pathOr([], ['data'])\n  //     )(result)\n  //     this.set('shippingWaybills', shippingWaybills)\n  //   },\n  //   actions: {\n  //     togglePrintWaybill (model) {\n  //       model.toggleProperty('printWaybill', false)\n  //     },\n  //     togglePrintAll () {\n  //       this.set('filter', '')\n  //       const toPrintWaybills = this.allSummaryList || []\n  //       toPrintWaybills.forEach(doc => doc.set('printWaybill', true))\n  //     },\n  //     toggleHidePrintAll () {\n  //       this.set('filter', '')\n  //       const toPrintWaybills = this.allSummaryList || []\n  //       toPrintWaybills.forEach(doc => doc.set('printWaybill', false))\n  //     },\n  //     reorderWaybills (model, dragItem) {\n  //       // console.log(model)\n  //       // console.log(dragItem)\n  //       // const dragIndex = dragItem.index\n  //       // const onOverItemIndex = model.get('index')\n  //       // // const models = this.getData('models')\n  //       // if (dragIndex === onOverItemIndex) {\n  //       //   // do nothing\n  //       // } else if (dragIndex < onOverItemIndex) {\n  //       //   // move to below onOverItemIndex\n  //       //   this.setData('details', details.map(detail => this.moveDetailBelow(detail, dragIndex, onOverItemIndex)))\n  //       //   this.set('sortOrder')\n  //       //   if (this.get('sortDetails')) {\n  //       //     this.get('sortDetails')()\n  //       //   }\n  //       // } else {\n  //       //   // move to above onOverItemIndex\n  //       //   this.setData('details', details.map(detail => this.moveDetailAbove(detail, dragIndex, onOverItemIndex)))\n  //       //   if (this.get('sortDetails')) {\n  //       //     this.get('sortDetails')()\n  //       //   }\n  //       // }\n  //     }\n  //   }\n  // })\n});","define(\"client/pods/components/transporters/hct-waybills-settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WGTVUaLX\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@formInitData\\\",\\\"@transporterExtensionOptionsModel\\\",\\\"@printOptionsModel\\\",\\\"@transporterExtension\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@description\\\"],[\\\"reprint\\\",\\\"redownload\\\",[23,2,[]],[28,\\\"unless\\\",[[23,4,[\\\"isReprintAllowed\\\"]],\\\"reprint is only available in the printed tab\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"reprint\\\",\\\"fas fa-print\\\",[28,\\\"or\\\",[[28,\\\"not\\\",[[23,4,[\\\"isReprintAllowed\\\"]]],null],[28,\\\"not\\\",[[28,\\\"get\\\",[[23,4,[\\\"printBadgeByTransporterExtension\\\"]],[23,5,[]]],null]],null]],null],[23,4,[\\\"openReprintModalTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,4,[\\\"openReprintModal\\\"]],[28,\\\"hash\\\",null,[[\\\"kind\\\",\\\"transporterExtension\\\",\\\"label\\\"],[\\\"waybill\\\",[23,5,[]],\\\"hct waybills\\\"]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"waybills per page\\\",[23,1,[]],\\\"waybillsPerPage\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@label\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-hct-print-waybills\\\"]],[23,3,[\\\"hctWaybillsPerPage\\\"]],[23,3,[\\\"hctWaybillsPerPage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,3,[\\\"hctWaybillsPerPage\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"print waybills starting position\\\",[23,1,[]],\\\"printWaybillsStartingPosition\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@label\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-hct-print-waybills-positions\\\"]],[23,3,[\\\"waybillsPrintStartPosition\\\"]],[23,3,[\\\"waybillsPrintStartPosition\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct-waybills-settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct/pickup-location/editor-extension/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 TransportersHctPickupLocationEditorExtensionComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class TransportersHctPickupLocationEditorExtensionComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"transporterAccount\", _descriptor2, this);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere']);\n      this.setup();\n      const subType = this.args?.model?._data?.subType || '';\n      if (subType === 'transporterAccount') {\n        this.transporterAccount = this.args?.model?._data?.value;\n      }\n      // setDefaultTransporterPackageTemperature\n      if (this.isPackageTemperatureDropdown && !this?.args?.model?._data?.value) {\n        const defaultPackageTemperatureModel = R.path(['crud', 'lists', 'extensions-apps-tw-t-cat-lists-thermosphere', 0])(this);\n        if (!defaultPackageTemperatureModel) {\n          return;\n        }\n        this.args.model.setData('value', defaultPackageTemperatureModel?._data?.value);\n      }\n    }\n    get list() {\n      if (this.args.model._data.subType === 'transporterAccount') {\n        return this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere'];\n      }\n      return [];\n    }\n    get isDropdown() {\n      const subType = this.args?.model?._data?.subType || '';\n      const dropdownSubTypes = ['transporterAccount'];\n      const isDropdown = dropdownSubTypes.includes(subType);\n      if (isDropdown) {\n        return true;\n      }\n      return false;\n    }\n    get isPackageTemperatureDropdown() {\n      const subType = this.args?.model?._data?.subType || '';\n      const dropdownSubTypes = ['transporterPackageTemperature'];\n      const isDropdown = dropdownSubTypes.includes(subType);\n      if (isDropdown) {\n        return true;\n      }\n      return false;\n    }\n    setup() {\n      // Set defaults\n      if (this.args?.model?._data?.subType === 'transporterAccount' && !this.args?.model?._data?.value) {\n        const firstTransporterAccount = R.pathOr('', ['args', 'transporterModel', '_data', 'transporterAccounts', 0, '_data', 'account'])(this);\n        this.args.model.set('_data.value', firstTransporterAccount);\n      }\n    }\n    setTransporterAccount() {\n      this.args.model.setData('value', this.transporterAccount);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"transporterAccount\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTransporterAccount\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setTransporterAccount\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/hct/pickup-location/editor-extension/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uTrGN38Y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@transporterModel\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,1,[\\\"label\\\"]],true,true,[23,1,[\\\"_data\\\",\\\"subType\\\"]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isDropdown\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\"],[[23,1,[\\\"_data\\\",\\\"value\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasBtnLabel\\\",\\\"@hasEditButon\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@addItemComponent\\\",\\\"@onSelect\\\"],[true,false,false,[23,2,[]],[23,3,[\\\"_data\\\",\\\"transporterAccounts\\\"]],\\\"_data.account\\\",\\\"_data.name\\\",[23,0,[\\\"transporterAccount\\\"]],\\\"contacts/transporters-accounts-editor\\\",[28,\\\"fn\\\",[[23,0,[\\\"setTransporterAccount\\\"]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isPackageTemperatureDropdown\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],[23,1,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],true,[23,1,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct/pickup-location/editor-extension/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/hct/pickup/editor-extension/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 TransportersHctPickupEditorExtensionComponent = _exports.default = (_dec = Ember.inject.service, _class = class TransportersHctPickupEditorExtensionComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/delivery-time']);\n    }\n    get transporterPackageTemperature() {\n      return this.args?.personDetails?.transporterPackageTemperature;\n    }\n    get transporterAccountNumber() {\n      return this.args?.personDetails?.transporterAccount;\n    }\n    get transporterNotes() {\n      return this.args?.personDetails?.note;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/transporters/hct/pickup/editor-extension/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Pmh1JiGG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@transporterModel\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"transporter account\\\",[23,1,[]],\\\"transporterAccountNumber\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[22,\\\"isDisabled\\\"],true,\\\"_data.name\\\",\\\"_data.account\\\",[23,2,[\\\"_data\\\",\\\"transporterAccounts\\\"]],true,false,[23,0,[\\\"transporterAccountNumber\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"transporter package temperature\\\",[23,1,[]],\\\"transporterPackageTemperature\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,3,[]],\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],[23,0,[\\\"updateTransporterAccount\\\"]],true,[23,0,[\\\"transporterPackageTemperature\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/hct/pickup/editor-extension/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/iframe-waybills/component\", [\"exports\", \"@glimmer/component\", \"client/utils/nventor\"], function (_exports, _component, _nventor) {\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;\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 TransportersIframeWaybillsComponent = _exports.default = (_dec = Ember.inject.service('dispatch'), _dec2 = Ember._action, _dec3 = Ember._action, _class = class TransportersIframeWaybillsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor, this);\n      const iframeId = _nventor.default.random.alphaNum(8);\n      Ember.set(this, 'args.waybillsOptionsByProvider.iframeId', `iframe-${iframeId}`);\n    }\n\n    /**\n     *\n     * @param {HTMLIFrameElement} iframe\n     */\n    setOnloadEvent(iframe) {\n      const resetHeight = () => {\n        const iframeContentHeight = iframe.contentDocument.body.scrollHeight;\n        iframe.style.height = `${iframeContentHeight + 50}px`;\n      };\n      resetHeight();\n      iframe.onload = () => {\n        resetHeight();\n        if (!this.args?.waybillsOptionsByProvider?.iframeLoaded && this.args?.waybillsOptionsByProvider?.onLoadShowPrintDialog) {\n          iframe.contentWindow.focus();\n          iframe.contentWindow.print();\n          Ember.set(this, 'args.waybillsOptionsByProvider.iframeLoaded', true);\n        }\n      };\n    }\n    setupPopup() {\n      const popupWindow = window.open('', '_blank', 'width=800,height=600');\n      popupWindow.document.write(this.args.waybillsOptionsByProvider.srcDoc);\n      popupWindow.document.close();\n      popupWindow.focus();\n      popupWindow.print();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setOnloadEvent\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"setOnloadEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupPopup\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPopup\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/iframe-waybills/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tLP64ueI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@waybillsOptionsByProvider\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"or\\\",[[23,0,[\\\"dispatchService\\\",\\\"generateAndDownloadWaybillsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatchService\\\",\\\"hctFetchWaybillRecordTask\\\",\\\"isRunning\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,1,[\\\"srcDoc\\\"]],[23,1,[\\\"iframeId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__content\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"setupPopup\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/iframe-waybills/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/payuni-seven-eleven-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency-decorators\", \"client/constants/index\"], function (_exports, _component, R, RA, _emberConcurrencyDecorators, _index) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _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 TransportersPayuniSevenElevenEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('transporter'), _dec3 = Ember.inject.service('settings'), _dec4 = Ember.inject.service('dispatch'), _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember.computed('args.model.originalModel._data.convenienceStoreData.storeId', 'args.model._data.convenienceStoreData.storeId'), _dec9 = Ember.computed('args.model.originalModel._data.convenienceStoreData.storeName', 'args.model._data.convenienceStoreData.storeName'), _dec0 = Ember.computed('args.isReadonly'), _dec1 = Ember.computed('args.canChangeConvenienceStoreOverride', 'args.isReadonly', 'args.model._data._key'), _dec10 = Ember._action, _dec11 = Ember.computed('args.model._data.cashCollectionInclTotal'), _dec12 = Ember.computed('args.model.{netInclTotal,returnsDetails.[],_data.inclTotal}'), _dec13 = Ember.computed('documentNetInclTotal'), _dec14 = Ember.computed('args.model._data.{declaredAmount,packages}', 'documentNetInclTotal'), _class = class TransportersPayuniSevenElevenEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"convenienceStoreWindow\", _descriptor6, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor7, this);\n      this.crud.addLists(this, ['extensions/apps/tw/payuni-seven-eleven/accounts', 'extensions/apps/tw/payuni-seven-eleven/type']);\n      if (this.args.isReadonly !== true) {\n        this.transporterService.setupReturnStoreTask.perform(this.args.model);\n      }\n    }\n    get storeId() {\n      return R.path(['args', 'model', 'originalModel', '_data', 'convenienceStoreData', 'storeId'])(this) || R.pathOr('', ['args', 'model', '_data', 'convenienceStoreData', 'storeId'])(this);\n    }\n    get storeName() {\n      return R.path(['args', 'model', 'originalModel', '_data', 'convenienceStoreData', 'storeName'])(this) || R.pathOr('', ['args', 'model', '_data', 'convenienceStoreData', 'storeName'])(this);\n    }\n    get senderNamePlaceHolder() {\n      return this.transporterService.getSenderNamePlaceHolder();\n    }\n    get allowUpdatePackageQty() {\n      const isReadonly = R.pathEq(['args', 'isReadonly'], true)(this);\n      if (isReadonly) {\n        return false;\n      }\n      const hasCollectionAmount = this.transporterService.hasCollectionAmount(this.args.model);\n      return !hasCollectionAmount;\n    }\n    get canChangeConvenienceStore() {\n      if (this.args.canChangeConvenienceStoreOverride === true) {\n        return true;\n      }\n      if (this.args.isReadonly === false) {\n        return false;\n      }\n      if (this.args.model?._data?._key) {\n        return true;\n      }\n      return false;\n    }\n    closeUpdateConvenienceStoreWindow(storeId) {\n      try {\n        if (this.convenienceStoreWindow && this.convenienceStoreWindow.close) {\n          this.convenienceStoreWindow.close();\n          if (this.args?.outerOnCloseDialogAction) {\n            this.args.outerOnCloseDialogAction();\n          }\n        }\n      } catch (error) {\n        // DO NOTHING ON STORE WINDOWS REFERENCE ERROR\n      }\n    }\n\n    /**\n     * @param {Object} model - The model object.\n     * @return {void} - This method does not return anything.\n     */\n    *updateConvenienceStoreTask(model) {\n      let personId;\n      if (this.args.upsertPersonTask && this.args?.isNewPerson) {\n        personId = this.args?.personModel?._data?.personId;\n        const transporterModel = yield this.args.upsertPersonTask.perform();\n        const hasPerson = R.pipe(R.pathOr([], ['_data', 'persons']), R.find(R.pathEq(['_data', 'personId'], personId)))(transporterModel);\n        if (!hasPerson) {\n          personId = null;\n        }\n      } else if (model?._data?.transporterDefaultPickupLocationPersonId) {\n        personId = model?._data?.transporterDefaultPickupLocationPersonId;\n      } else if (this.args?.personModel?._data?.personId) {\n        personId = this.args?.personModel?._data?.personId;\n      } else {\n        const transporterAccount = this.args.model?._data?.transporterAccount;\n        personId = this.transporterModel.getPersonIdByTransporterAccount(transporterAccount);\n      }\n      const transporterKey = this.args?.transporterKey || this.args?.model?._data?.transporterKey || '';\n      try {\n        const url = yield this.dispatchService.updateConvenienceStoreUrl.perform({\n          model,\n          transporterKey,\n          personId\n        });\n        this.convenienceStoreWindow = window.open(url, '_blank');\n        this.args.outerOnCloseDialogAction();\n      } catch (error) {\n        // DO NOTHING ON STORE WINDOWS REFERENCE ERROR\n      }\n    }\n\n    /**\n     * The declared amount only applies to waybills that collect nothing on delivery. Same rule as the\n     * API: a collection amount of 0 or less collects nothing. Cash orders save it as a string, such as '0',\n     * which transporterService.hasCollectionAmount counts as a collection, so it is not used here.\n     * @return {boolean}\n     */\n    get showDeclaredAmount() {\n      const collectionAmount = Number(this.args.model?._data?.cashCollectionInclTotal) || 0;\n      const hasNothingToCollect = collectionAmount <= 0;\n      return hasNothingToCollect;\n    }\n\n    /**\n     * The document total after returns, which the API declares when no declared amount is saved.\n     * The document model's netInclTotal is 0 for a document without returns, so inclTotal is used then.\n     * @return {number}\n     */\n    get documentNetInclTotal() {\n      const model = this.args.model;\n      const hasReturns = RA.isNotNilOrEmpty(model?.returnsDetails);\n      if (hasReturns) {\n        return Number(model.netInclTotal) || 0;\n      }\n      return Number(model?._data?.inclTotal) || 0;\n    }\n\n    /**\n     * The declared amount the API sends when the merchant leaves the input empty.\n     * @return {number}\n     */\n    get declaredAmountPlaceholder() {\n      const minimumDeclaredAmount = _index.default.payuniSevenElevenDeclaredAmountLimits.min;\n      return Math.max(this.documentNetInclTotal, minimumDeclaredAmount);\n    }\n\n    /**\n     * Whether the declared amount per waybill is outside what PayUni accepts, so the API will change it.\n     * @return {boolean}\n     */\n    get showDeclaredAmountWarning() {\n      const typedDeclaredAmount = this.args.model?._data?.declaredAmount;\n      const isDeclaredAmountEmpty = RA.isNilOrEmpty(typedDeclaredAmount);\n      const shipmentDeclaredAmount = isDeclaredAmountEmpty ? this.documentNetInclTotal : Number(typedDeclaredAmount);\n      const packageCount = Math.max(Number(this.args.model?._data?.packages) || 1, 1);\n      const declaredAmountPerWaybill = shipmentDeclaredAmount / packageCount;\n      const limits = _index.default.payuniSevenElevenDeclaredAmountLimits;\n      const isBelowMinimum = declaredAmountPerWaybill < limits.min;\n      const isAboveMaximum = declaredAmountPerWaybill > limits.max;\n      return isBelowMinimum || isAboveMaximum;\n    }\n\n    /**\n     * @return {string} the translated range the declared amount per waybill must stay in\n     */\n    get declaredAmountLimitsWarning() {\n      const limits = _index.default.payuniSevenElevenDeclaredAmountLimits;\n      return this.intl.t('declared amount must be between {minAmount} and {maxAmount} per waybill', {\n        minAmount: limits.min,\n        maxAmount: limits.max\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"convenienceStoreWindow\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"storeId\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"storeId\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"storeName\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"storeName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allowUpdatePackageQty\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"allowUpdatePackageQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canChangeConvenienceStore\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"canChangeConvenienceStore\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeUpdateConvenienceStoreWindow\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"closeUpdateConvenienceStoreWindow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateConvenienceStoreTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateConvenienceStoreTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showDeclaredAmount\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"showDeclaredAmount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"documentNetInclTotal\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"documentNetInclTotal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"declaredAmountPlaceholder\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"declaredAmountPlaceholder\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showDeclaredAmountWarning\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"showDeclaredAmountWarning\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/payuni-seven-eleven-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"mkr++GUt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onLoadContactPerson\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,[23,1,[]],\\\"recipient\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"transporters/contact\\\",[],[[\\\"@formInitData\\\",\\\"@enableSelectPickupMethod\\\",\\\"@isReadonly\\\",\\\"@readonly\\\",\\\"@model\\\",\\\"@onLoadContactPerson\\\",\\\"@disallowChangeAddress\\\",\\\"@isTransporterEditor\\\"],[[23,1,[]],false,[23,3,[]],[23,3,[]],[23,4,[]],[23,5,[]],true,true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-sub-group\\\",[[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"closeUpdateConvenienceStoreWindow\\\"]],[23,0,[\\\"storeId\\\"]]],null]]]],[[\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@formInitData\\\",\\\"@title\\\"],[true,true,[23,1,[]],\\\"transporter settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"pickup locations\\\",[23,2,[]],\\\"pickupLocations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"transporters/sender-list-btn\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onSelect\\\",\\\"@defaultPersonId\\\",\\\"@listSelectorValueKey\\\"],[[23,3,[]],[23,4,[]],[23,4,[\\\"setTransporterData\\\"]],[23,4,[\\\"_data\\\",\\\"transporterDefaultPickupLocationPersonId\\\"]],\\\"_data.transporterDefaultPickupLocationPersonId\\\"]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"sender name\\\",[23,2,[]],\\\"transporterSenderName\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[23,3,[]],[23,3,[]],[23,0,[\\\"disallowChangeSenderData\\\"]]],null],[23,0,[\\\"senderNamePlaceHolder\\\"]],[23,4,[\\\"_data\\\",\\\"transporterSenderName\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"sender telephone\\\",[23,2,[]],\\\"transporterSenderTelephone\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[23,3,[]],[23,3,[]],[23,0,[\\\"disallowChangeSenderData\\\"]]],null],[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"companyTel\\\"]],[23,4,[\\\"_data\\\",\\\"transporterSenderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\"],[[23,1,[]],\\\"transporter type\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,3,[]],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-payuni-seven-eleven-type\\\"]],true,[23,4,[\\\"_data\\\",\\\"transporterType\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"transporter account\\\",[23,2,[]],\\\"transporterAccountNumber\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,3,[]],\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-payuni-seven-eleven-accounts\\\"]],true,[23,4,[\\\"_data\\\",\\\"transporterAccount\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"packages\\\",[23,2,[]],\\\"packages\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[23,0,[\\\"allowUpdatePackageQty\\\"]],false,true],null],[23,4,[\\\"_data\\\",\\\"packages\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDeclaredAmount\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"declared amount\\\",[23,2,[]],\\\"declaredAmount\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@type\\\",\\\"@min\\\",\\\"@step\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[\\\"number\\\",\\\"0\\\",\\\"1\\\",[23,3,[]],[23,0,[\\\"declaredAmountPlaceholder\\\"]],[23,4,[\\\"_data\\\",\\\"declaredAmount\\\"]]]]],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDeclaredAmountWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\",\\\"@translate\\\"],[[23,0,[\\\"declaredAmountLimitsWarning\\\"]],false]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"waybill\\\",[23,2,[]],\\\"waybill\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"transporters/waybill-display\\\",[],[[\\\"@isReadonly\\\",\\\"@canRemoveWaybill\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,3,[]],true,[23,4,[]],[23,6,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"transporters/seven-eleven/store-selector\\\",[],[[\\\"@isReturnStore\\\",\\\"@isReadonly\\\",\\\"@storeId\\\",\\\"@storeName\\\",\\\"@storeAddress\\\",\\\"@transporterExtension\\\",\\\"@transporterAccount\\\",\\\"@transporterKey\\\",\\\"@waybill\\\",\\\"@documentKey\\\",\\\"@docType\\\",\\\"@docName\\\",\\\"@documentId\\\",\\\"@storeClosureStoreTypes\\\",\\\"@onUpdate\\\",\\\"@onRemove\\\"],[true,[23,3,[]],[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"returnStoreId\\\"]],[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"returnStoreName\\\"]],[23,4,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"returnStoreAddress\\\"]],[23,4,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,4,[\\\"_data\\\",\\\"transporterAccount\\\"]],[23,4,[\\\"_data\\\",\\\"transporterKey\\\"]],[23,4,[\\\"_data\\\",\\\"waybill\\\"]],[23,4,[\\\"_data\\\",\\\"_key\\\"]],[23,4,[\\\"_data\\\",\\\"docType\\\"]],[23,4,[\\\"_data\\\",\\\"docName\\\"]],[23,4,[\\\"_data\\\",\\\"_id\\\"]],[23,4,[\\\"storeClosureStoreTypes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"transporterService\\\",\\\"updateDocumentConvenienceStore\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"isReturnStore\\\"],[[23,4,[]],true]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"transporterService\\\",\\\"removeDocumentConvenienceStore\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"isReturnStore\\\"],[[23,4,[]],true]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/payuni-seven-eleven-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/payuni-seven-eleven-sender-details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 TransportersPayuniSevenElevenSenderDetailsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.computed('args.model._data.details.[]'), _dec3 = Ember.computed('args.model._data.details.[]'), _dec4 = Ember.computed('args.model._data.details.[]'), _dec5 = Ember.computed('args.model._data.details.[]'), _dec6 = Ember.computed('args.model._data.details.[]'), _dec7 = Ember.computed('args.model._data.details.[]'), _dec8 = Ember._action, _dec9 = Ember._action, _class = class TransportersPayuniSevenElevenSenderDetailsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    get telephoneDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('telephone');\n    }\n    get transporterAccountDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('transporterAccount');\n    }\n    get transporterTypeDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('transporterType');\n    }\n    get transporterStoreIdModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('storeId');\n    }\n    get transporterStoreNameModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('storeName');\n    }\n    get transporterStoreAddressModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('storeAddress');\n    }\n\n    /**\n     *\n     * @param {any} model\n     * @param {ISevenElevenStoreData} sevenElevenStoreData\n     */\n    updateDocumentConvenienceStore(model, sevenElevenStoreData) {\n      this.transporterStoreIdModelProxy.setData('value', sevenElevenStoreData?.convenienceStoreId);\n      this.transporterStoreNameModelProxy.setData('value', sevenElevenStoreData?.convenienceStoreName);\n      this.transporterStoreAddressModelProxy.setData('value', sevenElevenStoreData?.convenienceStoreAddress);\n    }\n    removeDocumentConvenienceStore() {\n      this.transporterStoreIdModelProxy.setData('value', '');\n      this.transporterStoreNameModelProxy.setData('value', '');\n      this.transporterStoreAddressModelProxy.setData('value', '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"telephoneDetailModelProxy\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"telephoneDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterAccountDetailModelProxy\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterAccountDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterTypeDetailModelProxy\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterTypeDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterStoreIdModelProxy\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterStoreIdModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterStoreNameModelProxy\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterStoreNameModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterStoreAddressModelProxy\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterStoreAddressModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateDocumentConvenienceStore\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDocumentConvenienceStore\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeDocumentConvenienceStore\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"removeDocumentConvenienceStore\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/payuni-seven-eleven-sender-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PfGPdQkT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@contactModel\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[2,\\\" Telephone \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[true,[23,1,[]],[23,0,[\\\"telephoneDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"telephoneDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Account \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[true,[23,1,[]],[23,0,[\\\"transporterAccountDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,false,true,[23,2,[\\\"transporterAccounts\\\"]],[23,0,[\\\"transporterAccountDetailModelProxy\\\"]],\\\"_data.value\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Type \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[true,[23,1,[]],[23,0,[\\\"transporterTypeDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-payuni-seven-eleven-type\\\"]],[23,0,[\\\"transporterTypeDetailModelProxy\\\"]],\\\"_data.value\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Store selector \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\",\\\"@overrideFormInputClassNames\\\"],[true,[23,1,[]],\\\"return convenience store\\\",\\\"persons.details.value\\\",\\\"flex-container-column flex-item--align-self-start\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"transporters/seven-eleven/store-selector\\\",[],[[\\\"@isReturnStore\\\",\\\"@isReadonly\\\",\\\"@storeId\\\",\\\"@storeName\\\",\\\"@storeAddress\\\",\\\"@transporterExtension\\\",\\\"@transporterAccount\\\",\\\"@transporterKey\\\",\\\"@transporterCredentials\\\",\\\"@onUpdate\\\",\\\"@onRemove\\\"],[true,[23,3,[]],[23,0,[\\\"transporterStoreIdModelProxy\\\",\\\"_data\\\",\\\"value\\\"]],[23,0,[\\\"transporterStoreNameModelProxy\\\",\\\"_data\\\",\\\"value\\\"]],[23,0,[\\\"transporterStoreAddressModelProxy\\\",\\\"_data\\\",\\\"value\\\"]],[23,2,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,0,[\\\"transporterAccountDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]],[23,2,[\\\"_data\\\",\\\"_key\\\"]],[23,2,[\\\"_data\\\",\\\"transporterCredentials\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDocumentConvenienceStore\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"removeDocumentConvenienceStore\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/payuni-seven-eleven-sender-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/payuni-seven-eleven-waybill/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _component, R, _emberConcurrencyDecorators, _emberConcurrency, _nventor, _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, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\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 TransportersPayuniSevenElevenWaybillComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service('dispatch'), _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._action, _dec11 = Ember.computed('args.waybillsOptionsByProvider.showPresPrintButtonMessage'), _dec12 = Ember.computed('args.waybillsPerPage', 'args.waybillsOptionsByProvider'), _class = class TransportersPayuniSevenElevenWaybillComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"transporter\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sevenElevenHtmlWaybills\", _descriptor7, this);\n      _initializerDefineProperty(this, \"waybillsPerPagePreviousValue\", _descriptor8, this);\n      _initializerDefineProperty(this, \"transporterArray\", _descriptor9, this);\n      _initializerDefineProperty(this, \"transporterTypeList\", _descriptor0, this);\n      _initializerDefineProperty(this, \"transporterAccountList\", _descriptor1, this);\n      this.crud.addLists(this, ['extensions/apps/tw/seven-eleven/lists/waybill-print-per-page', 'extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-b2c', 'extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-c2c', 'extensions/apps/tw/payuni-seven-eleven/type', 'extensions/apps/tw/payuni-seven-eleven/accounts']);\n      this.waybillsPerPagePreviousValue = this.args.waybillsPerPage;\n    }\n    afterLoadLists() {\n      this.setTransporterTypeList();\n      this.setTransporterAccountList();\n    }\n    setTransporterTypeList() {\n      const allOption = _nventor.default.createModel(_model.default, {\n        label: 'all',\n        value: 'all'\n      });\n      this.transporterTypeList = R.pipe(R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-payuni-seven-eleven-type']), R.concat([allOption]))(this);\n    }\n    setTransporterAccountList() {\n      const allOption = _nventor.default.createModel(_model.default, {\n        label: 'all',\n        value: 'all'\n      });\n      this.transporterAccountList = R.pipe(R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-payuni-seven-eleven-accounts']), R.concat([allOption]))(this);\n    }\n    get waybillsOptionsByProvider() {\n      return R.pathOr({}, ['args', 'waybillsOptionsByProvider', this.constants.transporterExtensions.payuniSevenEleven])(this);\n    }\n    get showPresPrintButtonMessage() {\n      if (!this.waybillsOptionsByProvider.waybillsPerPage) {\n        return false;\n      }\n      if (this.waybillsOptionsByProvider.waybillsPerPage === this.args.waybillsPerPage) {\n        return false;\n      }\n      return true;\n    }\n    *fetchTransporter(models = []) {\n      const transporterArrayTask = R.pipe(R.map(R.pathOr('', ['_data', 'transporterKey'])), R.uniq, R.map(transporterKey => this.transporter.fetchTransporterTask.perform({\n        transporterKey\n      })))(models);\n      const transporterArray = yield (0, _emberConcurrency.all)(transporterArrayTask);\n      const transporter = transporterArray[0];\n      const waybillsPerPage = R.pathOr(4, ['_data', 'sevenEleven', 'waybillsPerPage'])(transporter);\n      const waybillPrintPerPageModel = R.pipe(R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-seven-eleven-lists-waybill-print-per-page']), R.filter(R.pathEq(['_data', 'value'], waybillsPerPage)), R.path([0]))(this);\n      if (waybillPrintPerPageModel) {\n        this.waybillsPerPage = waybillsPerPage;\n        this.args.onSetWaybillsPerPage(waybillPrintPerPageModel, {\n          defaultWaybillsPerPage: waybillsPerPage\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"transporter\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"sevenElevenHtmlWaybills\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"waybillsPerPagePreviousValue\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 4;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"transporterArray\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"transporterTypeList\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"transporterAccountList\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterLoadLists\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"afterLoadLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"waybillsOptionsByProvider\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"waybillsOptionsByProvider\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showPresPrintButtonMessage\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"showPresPrintButtonMessage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTransporter\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransporter\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/payuni-seven-eleven-waybill/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZYiNnZr7\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@subTabFilters\\\",\\\"@onSetWaybillsPerPage\\\",\\\"@results\\\",\\\"@isRunning\\\",\\\"@allowProcesses\\\",\\\"@allResults\\\",\\\"@autoFetchProduct\\\",\\\"@dispatchedResults\\\",\\\"@dispatchProcess\\\",\\\"@filteredResults\\\",\\\"@filters\\\",\\\"@hasGroups\\\",\\\"@hasPrices\\\",\\\"@isDispatched\\\",\\\"@isDispatchedBeforeToday\\\",\\\"@isDispatchedProcessModel\\\",\\\"@onFetchUnpaginatedData\\\",\\\"@period\\\",\\\"@summaryData\\\",\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,21,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\"],[\\\"transporter type\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[[28,\\\"or\\\",[[23,0,[\\\"dispatchService\\\",\\\"hctFetchWaybillRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatchService\\\",\\\"generateAndDownloadWaybillsTask\\\",\\\"isRunning\\\"]]],null],true,[23,0,[\\\"transporterTypeList\\\"]],\\\"list-selector list-selector--horizontal\\\",\\\"list-selector__item list-selector__item--horizontal\\\",[23,2,[]],\\\"_data.transporterType\\\",\\\"_data.value\\\",\\\"_data.label\\\",false,false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"transporter account\\\",[23,1,[]],\\\"transporterAccountNumber\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\"],[[28,\\\"or\\\",[[23,0,[\\\"dispatchService\\\",\\\"hctFetchWaybillRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatchService\\\",\\\"generateAndDownloadWaybillsTask\\\",\\\"isRunning\\\"]]],null],true,[23,0,[\\\"transporterAccountList\\\"]],\\\"list-selector list-selector--horizontal\\\",\\\"list-selector__item list-selector__item--horizontal\\\",[23,2,[]],\\\"_data.transporterAccount\\\",\\\"_data.value\\\",\\\"_data.label\\\",false,false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"waybills per page c2c\\\",[23,1,[]],\\\"sevenEleven.waybillsPerPage\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[[28,\\\"or\\\",[[23,0,[\\\"dispatchService\\\",\\\"hctFetchWaybillRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatchService\\\",\\\"generateAndDownloadWaybillsTask\\\",\\\"isRunning\\\"]]],null],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-c2c\\\"]],\\\"list-selector list-selector--horizontal\\\",\\\"list-selector__item list-selector__item--horizontal\\\",[23,2,[]],\\\"_data.tw_shipping_payuni.sevenEleven.waybillsPerPageC2C\\\",\\\"_data.value\\\",\\\"_data.label\\\",false,false,[23,3,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"waybills per page b2c\\\",[23,1,[]],\\\"sevenEleven.waybillsPerPage\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@classNames\\\",\\\"@itemClassNames\\\",\\\"@model\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@onSelect\\\"],[[28,\\\"or\\\",[[23,0,[\\\"dispatchService\\\",\\\"hctFetchWaybillRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatchService\\\",\\\"generateAndDownloadWaybillsTask\\\",\\\"isRunning\\\"]]],null],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-b2c\\\"]],\\\"list-selector list-selector--horizontal\\\",\\\"list-selector__item list-selector__item--horizontal\\\",[23,2,[]],\\\"_data.tw_shipping_payuni.sevenEleven.waybillsPerPageB2C\\\",\\\"_data.value\\\",\\\"_data.label\\\",false,false,[23,3,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showPresPrintButtonMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"notification-item u-no-print\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fas fa-info-circle\\\",\\\"please press print again to see changes\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"notification-item u-no-print\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"fetchTransporter\\\"]],[23,4,[]]],null]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fas fa-info-circle\\\",\\\"if there are multiple payment types, waybills will be grouped by payment type\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"dispatch/panels-display/display-list\\\",[],[[\\\"@isRunning\\\",\\\"@allowProcesses\\\",\\\"@allResults\\\",\\\"@autoFetchProduct\\\",\\\"@dispatchedResults\\\",\\\"@dispatchProcess\\\",\\\"@filteredResults\\\",\\\"@filters\\\",\\\"@hasGroups\\\",\\\"@hasPrices\\\",\\\"@hasPrintBtn\\\",\\\"@isDispatched\\\",\\\"@isDispatchedBeforeToday\\\",\\\"@isDispatchedProcessModel\\\",\\\"@isPrinting\\\",\\\"@isReadonly\\\",\\\"@onFetchUnpaginatedData\\\",\\\"@period\\\",\\\"@results\\\",\\\"@scheduleOnceAfterRender\\\",\\\"@summaryData\\\",\\\"@tab\\\"],[[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],false,[23,15,[]],[23,16,[]],[23,17,[]],true,true,[23,18,[]],[23,19,[]],[23,4,[]],false,[23,20,[]],[23,21,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/payuni-seven-eleven-waybill/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/payuni-seven-eleven-waybills-settings/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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;\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 TransportersPayuniSevenElevenWaybillsSettingstComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('dispatch'), _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _class = class TransportersPayuniSevenElevenWaybillsSettingstComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"printType\", _descriptor6, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor7, this);\n      _initializerDefineProperty(this, \"reprintError\", _descriptor8, this);\n      _defineProperty(this, \"adapterNameContacts\", 'contacts');\n      this.crud.addLists(this, ['extensions/apps/tw/seven-eleven/lists/waybill-print-per-page', 'extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-b2c', 'extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-c2c', 'extensions/apps/tw/payuni-seven-eleven/type', 'extensions/apps/tw/payuni-seven-eleven/accounts', 'contacts/transporters']);\n      const model = this.args.transporterExtensionOptionsModel;\n      const waybillsPerPageC2C = this.settings.getProp('tw_shipping_payuni.sevenEleven.waybillsPerPageC2C');\n      const waybillsPerPageB2C = this.settings.getProp('tw_shipping_payuni.sevenEleven.waybillsPerPageB2C');\n      if (typeof model.get('enabled') !== 'boolean') {\n        model.set('enabled', true);\n      }\n      model.set('waybillsPerPageC2C', waybillsPerPageC2C);\n      model.set('waybillsPerPageB2C', waybillsPerPageB2C);\n      model.set('waybillsPerPage', Number(waybillsPerPageC2C) || 4);\n      model.set('printComponent', 'dispatch/print-options/seven-eleven-waybills');\n    }\n    async reprintWaybills() {\n      const printOptions = this.args.printOptionsModel;\n      if (!printOptions?.isReprintAllowed || !printOptions.carrierDocumentCount(this.args.transporterExtension)) {\n        return;\n      }\n      this.reprintError = '';\n      const {\n        printBatchRequest\n      } = printOptions.readPrintBatchRequest();\n      try {\n        const waybillPages = await this.dispatchService.redownloadSevenElevenWaybillPagesTask.perform({\n          transporterExtension: this.args.transporterExtension,\n          filters: printBatchRequest?.filters || {},\n          carrierSettings: this.args.transporterExtensionOptionsModel\n        });\n        if (RA.isNilOrEmpty(waybillPages)) {\n          this.reprintError = 'waybills not yet created';\n        }\n      } catch (error) {\n        this.reprintError = error?.message || 'error occurred please try again later';\n      }\n    }\n    get hasB2C() {\n      const transporters = this.crud.lists?.['contacts-transporters'];\n      const payuniTransporters = R.filter(transporter => transporter?._data?.transporterExtension === 'payuni-seven-eleven')(transporters);\n      return R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('persons'), R.flatten, R.reject(RA.isNilOrEmpty), R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('details'), R.flatten, R.reject(RA.isNilOrEmpty), R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.find(R.allPass([R.propEq('subType', 'transporterType'), R.propEq('value', 'B2C')])), RA.isNotNilOrEmpty)(payuniTransporters);\n    }\n    get hasC2C() {\n      const transporters = this.crud.lists?.['contacts-transporters'];\n      const payuniTransporters = R.filter(transporter => transporter?._data?.transporterExtension === 'payuni-seven-eleven')(transporters);\n      return R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('persons'), R.flatten, R.reject(RA.isNilOrEmpty), R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('details'), R.flatten, R.reject(RA.isNilOrEmpty), R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.find(R.allPass([R.propEq('subType', 'transporterType'), R.propEq('value', 'C2C')])), RA.isNotNilOrEmpty)(payuniTransporters);\n    }\n\n    // @computed('printOptionsModel.toPrintTransporterExtensions.[]')\n    // get transporterExtensionModel () {\n    //   const toPrintTransporterExtensions = this.args.printOptionsModel?.toPrintTransporterExtensions || []\n    //   return R.find(R.propEq('transporterExtension', this.transporterExtension))(toPrintTransporterExtensions)\n    // }\n\n    // get transporterAccountList () {\n    //   const allOption = nventor.createModel(OptionModel, {\n    //     label: 'all',\n    //     value: 'all'\n    //   })\n    //   return R.pipe(\n    //     R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-t-cat-lists-thermosphere']),\n    //     R.concat([allOption])\n    //   )(this)\n    // }\n\n    // get tCatDocs () {\n    //   const tCatKey = this?.dispatchService?.tCatModel?._data?._key\n    //   return R.pipe(\n    //     R.pathOr([], ['args', 'results']),\n    //     R.filter(R.pathEq(['_data', 'transporterKey'], tCatKey))\n    //   )(this)\n    // }\n\n    // get tCatDocsProxy () {\n    //   return R.map(model => ({ model }))(this.tCatDocs)\n    // }\n\n    // get tCatDocsDisplayList () {\n    //   const tCatKey = this?.dispatchService?.tCatModel?._data?._key\n    //   return R.filter(\n    //     R.anyPass([\n    //       R.pathEq([\n    //         'args',\n    //         'dispatchedResults',\n    //         'model',\n    //         '_data',\n    //         'transporterExtension'\n    //       ],\n    //       this.transporterExtension),\n    //       R.pathEq(['_data', 'transporterKey'], tCatKey)\n    //     ])\n    //   )(this)\n    // }\n\n    // @task\n    // * generateAndDownloadWaybillTask () {\n    //   return yield this.dispatchService.tCatGenerateAndDownloadWaybillTask.perform({\n    //     component: this,\n    //     documents: this.tCatDocs,\n    //     printType: this.printType\n    //   })\n    // }\n\n    // @task\n    // * fetchTransporterTask () {\n    //   this.transporterModel = yield this.dispatchService.tCatGetModel.perform()\n\n    //   // not exists in transporterModel anymore, use settings\n    //   const defaultTCatTransporterWaybillPrintType = this.settings.getProp('defaultTCatTransporterWaybillPrintType')\n    //   this.printType = defaultTCatTransporterWaybillPrintType\n    //   if (RA.isNilOrEmpty(this.printType)) {\n    //     this.printType = 'twoPerPage'\n    //   }\n\n    //   if (this?.args?.onSetPrintType) {\n    //     this.args.onSetPrintType(this.printType)\n    //   }\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"printType\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"reprintError\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"reprintWaybills\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"reprintWaybills\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/payuni-seven-eleven-waybills-settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZLz8YThi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@transporterExtensionOptionsModel\\\",\\\"@formInitData\\\",\\\"@printOptionsModel\\\",\\\"@transporterExtension\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@description\\\"],[\\\"reprint\\\",\\\"redownload\\\",[23,3,[]],[28,\\\"unless\\\",[[23,4,[\\\"isReprintAllowed\\\"]],\\\"reprint is only available in the printed tab\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"reprint\\\",\\\"fas fa-download\\\",[28,\\\"or\\\",[[28,\\\"not\\\",[[23,4,[\\\"isReprintAllowed\\\"]]],null],[28,\\\"not\\\",[[28,\\\"get\\\",[[23,4,[\\\"printBadgeByTransporterExtension\\\"]],[23,5,[]]],null]],null]],null],[23,0,[\\\"dispatchService\\\",\\\"redownloadSevenElevenWaybillPagesTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"reprintWaybills\\\"]]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"reprintError\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@error\\\"],[[23,0,[\\\"reprintError\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasC2C\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"waybills per page c2c\\\",[23,1,[]],\\\"sevenEleven.waybillsPerPage\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@label\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-c2c\\\"]],[23,2,[\\\"waybillsPerPageC2C\\\"]],[23,2,[\\\"waybillsPerPageC2C\\\"]]]]],[0,\\\"\\\\n  \\\\n\\\"],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasB2C\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"waybills per page b2c\\\",[23,1,[]],\\\"sevenEleven.waybillsPerPage\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@label\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-b2c\\\"]],[23,2,[\\\"waybillsPerPageB2C\\\"]],[23,2,[\\\"waybillsPerPageB2C\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/payuni-seven-eleven-waybills-settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/payuni-seven-eleven/pickup-location/editor-extension/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 TransportersPayuniSevenElevenPickupLocationEditorExtensionComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember.computed('synced'), _dec4 = Ember._action, _class = class TransportersPayuniSevenElevenPickupLocationEditorExtensionComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"synced\", _descriptor2, this);\n    }\n    get list() {\n      const subType = this.args?.model?._data?.subType || '';\n      const payuniLists = {\n        transporterAccount: R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-payuni-seven-eleven-accounts'])(this),\n        transporterType: R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-payuni-seven-eleven-type'])(this)\n      };\n      return R.pathOr([], [subType])(payuniLists);\n    }\n    get isDropdown() {\n      const subType = this.args?.model?._data?.subType || '';\n      const dropdownSubTypes = ['transporterAccount', 'transporterType'];\n      return dropdownSubTypes.includes(subType);\n    }\n    get isC2C() {\n      const details = this.args.model?._data?.details || [];\n      const isC2C = details.some(detail => {\n        if (detail._data.subType === 'transporterType' && detail._data.value === 'C2C') {\n          return true;\n        }\n        return false;\n      });\n      return isC2C;\n    }\n    setTransporterType() {\n      this.synced = Math.random().toString().slice(2);\n      if (!this.isC2C) {\n        return;\n      }\n\n      // Reset Return Store Data when B2C\n      const resetKeyValues = ['storeId', 'storeName', 'storeAddress'];\n      const details = this.args.model?._data?.details || [];\n      R.forEach(key => {\n        const detailModel = details.find(detail => detail._data.subType === key);\n        if (!detailModel) {\n          return;\n        }\n        detailModel.setData('value', '');\n      })(resetKeyValues);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"synced\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isC2C\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"isC2C\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTransporterType\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setTransporterType\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/payuni-seven-eleven/pickup-location/editor-extension/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lvs0rX4K\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detailModel\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@transporterModel\\\",\\\"@onCloseDialogAction\\\",\\\"@onUpsertPersonTask\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]],\\\"storeId\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]],\\\"storeName\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]],\\\"storeAddress\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,1,[\\\"label\\\"]],true,true,[23,1,[\\\"_data\\\",\\\"subType\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]],\\\"transporterType\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-payuni-seven-eleven-type\\\"]],[23,1,[\\\"_data\\\",\\\"value\\\"]],[23,0,[\\\"setTransporterType\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]],\\\"transporterAccount\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-payuni-seven-eleven-accounts\\\"]],[23,1,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@isRequired\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],[23,1,[\\\"_data\\\",\\\"value\\\"]],true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isC2C\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@overrideFormInputClassNames\\\"],[\\\"return convenience store\\\",\\\"returnStore\\\",[23,2,[]],\\\"flex-container-column flex-item--align-self-start\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"transporters/seven-eleven/pickup-location/return-store-editor\\\",[],[[\\\"@model\\\",\\\"@transporterModel\\\",\\\"@onCloseDialogAction\\\",\\\"@onUpsertPersonTask\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/payuni-seven-eleven/pickup-location/editor-extension/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/sender-details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 TransportersSenderDetailsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember.computed('args.parentModel._data.transporterExtension'), _dec5 = Ember._action, _dec6 = Ember._action, _class = class TransportersSenderDetailsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      // If a person is provided (editing), use it. Otherwise setup a new person and attach to parentModel.\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"model\", _descriptor3, this);\n      const isEditing = this.args.isEditing === true || !!this.args.person;\n      if (isEditing && this.args.person) {\n        this.model = this.args.person;\n        return;\n      }\n\n      // Setup new person model on pickuplocation tab only, whne on wizard\n      const updateProps = this.args?.formInitData?.wizardContainerComponent?.updateProps || [];\n      if (updateProps.some(prop => prop.includes('persons'))) {\n        // Only add if no persons already added\n        const persons = this.args?.parentModel?._data?.persons || [];\n        if (persons.length === 0) {\n          this.setupPickupLocation();\n        }\n      }\n    }\n    get transporterSenderDetailsComponent() {\n      const transporterSenderDetailsComponentHash = {\n        [this.constants.transporterExtensions.hct]: 'transporters/hct-sender-details',\n        [this.constants.transporterExtensions.tCat]: 'transporters/t-cat-sender-details',\n        [this.constants.transporterExtensions.sevenEleven]: 'transporters/seven-eleven-sender-details',\n        [this.constants.transporterExtensions.payuniSevenEleven]: 'transporters/payuni-seven-eleven-sender-details'\n      };\n      const transporterExtension = this.args.parentModel?._data?.transporterExtension;\n      return transporterSenderDetailsComponentHash[transporterExtension] || null;\n    }\n    setupPickupLocation() {\n      this.model = this.crud.setupNewRecord({\n        adapterName: 'contacts/persons',\n        data: {\n          type: 'pickupLocation'\n        }\n      });\n      const transporterExtension = this.args.parentModel?._data?.transporterExtension;\n      const setupPersonOptions = {\n        transporterExtension\n      };\n      // Setup person\n      this.model.setupPerson(setupPersonOptions);\n\n      // Add Person to contact\n      // Add Person to contact (parentModel)\n      if (this.args.parentModel && this.args.parentModel.addTransporterPerson) {\n        this.args.parentModel.addTransporterPerson(this.model);\n      }\n    }\n    removePickupLocation(person) {\n      this.args.parentModel.removeTransporterPerson(person);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"transporterSenderDetailsComponent\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterSenderDetailsComponent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupPickupLocation\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPickupLocation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removePickupLocation\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"removePickupLocation\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/sender-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6COjxPAB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detailModel\\\",\\\"person\\\",\\\"index\\\",\\\"@parentModel\\\",\\\"@formInitData\\\",\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"transporterSenderDetailsComponent\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"persons\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-sub-group\\\",[[12,\\\"class\\\",[23,0,[\\\"formGroupClassNames\\\"]]]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@isAccordian\\\"],[[23,6,[]],[28,\\\"concat\\\",[\\\"transporterPickupLocationsPerson_group_\\\",[23,3,[]]],null],[22,\\\"formInitData\\\"],[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"transporter pickup location\\\"],null],\\\" : \\\",[23,2,[\\\"_data\\\",\\\"label\\\"]]],null],false,true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@context\\\"],[[23,5,[]],true,true,[23,0,[\\\"errors\\\"]],\\\"transporter pickup location name\\\",\\\"persons.label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@isRequired\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"label\\\"]],true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@context\\\"],[[23,5,[]],true,true,[23,0,[\\\"errors\\\"]],\\\"sender name\\\",\\\"persons.name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],true,[23,2,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[1,[28,\\\"component\\\",[[23,0,[\\\"transporterSenderDetailsComponent\\\"]]],[[\\\"model\\\",\\\"contactModel\\\",\\\"formInitData\\\"],[[23,2,[]],[23,4,[]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"lte\\\",[[23,4,[\\\"_data\\\",\\\"persons\\\",\\\"length\\\"]],1],null],true,false],null],\\\"remove pickup location\\\",\\\"fas fa-trash\\\",[28,\\\"fn\\\",[[23,0,[\\\"removePickupLocation\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@onSubmit\\\"],[\\\"add pickup location\\\",\\\"fas fa-plus\\\",\\\"add\\\",[23,0,[\\\"setupPickupLocation\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"transporter pickup location name\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"persons.label\\\",[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"transporterPersonModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@isRequired\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],[23,4,[\\\"transporterPersonModel\\\",\\\"_data\\\",\\\"label\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"transporterPersonModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"sender name\\\",true,true,[23,0,[\\\"errors\\\"]],\\\"persons.name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],true,[23,4,[\\\"transporterPersonModel\\\",\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"transporterEditorExtensionDynamicComponent\\\",\\\"shouldLoop\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,4,[\\\"transporterPersonModel\\\",\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"component\\\",[[23,4,[\\\"transporterEditorExtensionDynamicComponent\\\",\\\"component\\\"]]],[[\\\"model\\\",\\\"transporterModel\\\"],[[23,1,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"component\\\",[[23,4,[\\\"transporterEditorExtensionDynamicComponent\\\",\\\"component\\\"]]],[[\\\"model\\\",\\\"transporterModel\\\"],[[23,4,[\\\"transporterPersonModel\\\"]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/sender-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/sender-list-btn/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency-decorators\"], function (_exports, _component, R, RA, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _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 TransportersSenderListBtnComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('transporter'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _class = class TransportersSenderListBtnComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"selectedSenderName\", _descriptor4, this);\n      _initializerDefineProperty(this, \"selectedPersonId\", _descriptor5, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor6, this);\n      _initializerDefineProperty(this, \"useDefaults\", _descriptor7, this);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time']);\n      this.fetchTransporterTask.perform();\n    }\n    get isLoading() {\n      if (this.fetchTransporterTask.isRunning) {\n        return true;\n      }\n      const model = this.args?.model || false;\n      const transporterModel = this.args?.transporterModel || this.transporterModel || false;\n      if (!model || !transporterModel) {\n        return true;\n      }\n      return false;\n    }\n    get listSelectorValueKey() {\n      const listSelectorValueKey = this.args.listSelectorValueKey;\n      if (listSelectorValueKey) {\n        return listSelectorValueKey;\n      }\n      return '_data.defaultPickupLocationPersonId';\n    }\n\n    /**\n     * Return a list of pickup locations\n     * @return {Array<{\n     * transporterSenderName: string,\n     * transporterSenderTelephone: string,\n     * transporterSenderAddress: string,\n     * transporterDeliveryTime: string,\n     * transporterPackageTemperature: string,\n     * transporterPackageSize: string,\n     * transporterPackageType: string,\n     * transporterNotes: string,\n     * personId: string,\n     * name: string,\n     * telephone: string,\n     * address: string,\n     * label: string,\n     * model: Object\n     * }>}\n     */\n    get pickupLocationsList() {\n      const persons = this.transporterModel?._data?.persons || [];\n      const pickupLocations = R.filter(R.pathEq(['_data', 'type'], 'pickupLocation'))(persons);\n      const findDetailByType = (details, type) => {\n        const detailType = details.find(detail => detail?._data?.subType === type) || {};\n        return detailType?._data?.value;\n      };\n      return R.map(pickupLocation => {\n        const name = pickupLocation?._data?.name || '';\n        const label = pickupLocation?._data?.label || '';\n        const personId = pickupLocation?._data?.personId || '';\n        const details = pickupLocation?._data?.details || [];\n        const telephone = findDetailByType(details, 'telephone');\n        const address = findDetailByType(details, 'address');\n        const transporterSenderName = name;\n        const transporterSenderTelephone = findDetailByType(details, 'telephone');\n        const transporterSenderAddress = findDetailByType(details, 'address');\n        const transporterDeliveryTime = findDetailByType(details, 'deliveryTime');\n        const transporterAccount = findDetailByType(details, 'transporterAccount');\n        const transporterAccountNumber = findDetailByType(details, 'transporterAccountNumber') || transporterAccount;\n        const transporterPackageTemperature = findDetailByType(details, 'transporterPackageTemperature');\n        const transporterPackageSize = findDetailByType(details, 'packageSize');\n        const transporterPackageType = findDetailByType(details, 'packageType');\n        const transporterNotes = findDetailByType(details, 'note');\n        const storeId = findDetailByType(details, 'storeId');\n        const storeName = findDetailByType(details, 'storeName');\n        const storeAddress = findDetailByType(details, 'storeAddress');\n        const transporterAccountLabel = R.pipe(R.pathOr([], ['transporterModel', '_data', 'transporterAccounts']), R.find(R.anyPass([R.pathEq(['_data', 'account'], transporterAccount), R.pathEq(['_data', 'account'], transporterAccountNumber)])), R.pathOr('', ['_data', 'name']))(this);\n        const elementOption = this.genLabel({\n          name,\n          label,\n          telephone,\n          address,\n          transporterDeliveryTime,\n          transporterPackageTemperature,\n          transporterPackageSize,\n          transporterPackageType,\n          transporterNotes,\n          transporterAccount: transporterAccount,\n          storeId,\n          storeName,\n          storeAddress\n        });\n        return {\n          transporterAccount: transporterAccountLabel,\n          transporterSenderName,\n          transporterSenderTelephone,\n          transporterSenderAddress,\n          transporterDeliveryTime,\n          transporterPackageTemperature,\n          transporterPackageSize,\n          transporterPackageType,\n          transporterNotes,\n          transporterDefaultPickupLocationPersonId: personId,\n          personId,\n          name,\n          telephone,\n          address,\n          label: elementOption,\n          model: pickupLocation,\n          storeId,\n          storeName,\n          storeAddress\n        };\n      })(pickupLocations);\n    }\n    get defaultPickupLocation() {\n      const selectedPersonId = this.selectedPersonId;\n      const useDefaults = this.args?.model?._data?.transporterUseDefaultPickupLocation;\n      if (useDefaults) {\n        const defaultPersonId = this.transporterModel?._data?.defaultPickupLocationPersonId;\n        if (defaultPersonId) {\n          return this.pickupLocationsList.find(pickupLocation => pickupLocation.personId === defaultPersonId);\n        }\n        return this?.transporterModel?.transporterData;\n      }\n      const pathArray = R.split('.')(this.listSelectorValueKey);\n      let defaultPersonId = R.path(pathArray)(this.args?.model) || selectedPersonId || this.selectedSenderName;\n      if (!defaultPersonId) {\n        defaultPersonId = this?.transporterModel?._data?.defaultPickupLocationPersonId;\n      }\n      if (defaultPersonId) {\n        return this.pickupLocationsList.find(pickupLocation => pickupLocation.personId === defaultPersonId);\n      }\n      return this?.transporterModel?.transporterData;\n    }\n    genLabel({\n      name,\n      telephone,\n      address,\n      transporterDeliveryTime,\n      transporterPackageSize,\n      transporterPackageType,\n      transporterAccount,\n      transporterPackageTemperature,\n      storeId,\n      storeName,\n      storeAddress,\n      label\n    } = {}) {\n      let elementOption = '<span>';\n      if (label) {\n        elementOption += `${this.intl.t('label')} : ${label}<br>`;\n      }\n      if (name) {\n        elementOption += `${this.intl.t('name')} : ${name}<br>`;\n      }\n      if (telephone) {\n        elementOption += `${this.intl.t('telephone')}: ${telephone}<br>`;\n      }\n      if (address) {\n        elementOption += `${this.intl.t('address')} : ${address}<br>`;\n      }\n      if (RA.isNotNilOrEmpty(transporterAccount)) {\n        elementOption += `${this.intl.t('transporter account')} : ${this.intl.t(transporterAccount)}<br>`;\n      }\n      if (RA.isNotNilOrEmpty(transporterDeliveryTime)) {\n        elementOption += `${this.intl.t('delivery time')} : ${this.intl.t(transporterDeliveryTime)}<br>`;\n      }\n      if (RA.isNotNilOrEmpty(transporterPackageSize)) {\n        elementOption += `${this.intl.t('package size')} : ${transporterPackageSize}<br>`;\n      }\n      if (RA.isNotNilOrEmpty(transporterPackageType)) {\n        elementOption += `${this.intl.t('product type')} : ${this.intl.t(transporterPackageType)}<br>`;\n      }\n      if (RA.isNotNilOrEmpty(transporterPackageTemperature)) {\n        elementOption += `${this.intl.t('transporter package temperature')} : ${this.intl.t(transporterPackageTemperature)}<br>`;\n      }\n      if (RA.isNotNilOrEmpty(storeId)) {\n        elementOption += `${this.intl.t('storeId')} : ${storeId}<br>`;\n      }\n      if (RA.isNotNilOrEmpty(storeName)) {\n        elementOption += `${this.intl.t('storeName')} : ${storeName}<br>`;\n      }\n      if (RA.isNotNilOrEmpty(storeAddress)) {\n        elementOption += `${this.intl.t('storeAddress')} : ${storeAddress}<br>`;\n      }\n      elementOption += '</span>';\n      return elementOption;\n    }\n    *fetchTransporterTask() {\n      const transporterModel = this.args?.transporterModel;\n      this.transporterModel = transporterModel;\n      const transporterKey = transporterModel?._data?._key || this.args.model._data.transporterKey;\n      if (!transporterModel || transporterKey) {\n        this.transporterModel = yield this.transporterService.fetchTransporterTask.perform({\n          transporterKey\n        });\n      }\n      this.setTransporterSenderDefaults();\n    }\n    getCurrentPerson(personId) {\n      const defaultPersonId = this.args.defaultPersonId || '';\n      if (!this.selectedSenderName && defaultPersonId) {\n        personId = defaultPersonId;\n      }\n      let person = this.pickupLocationsList.find(pickupLocation => pickupLocation.personId === personId);\n      if (this.selectedSenderName !== person?.name && defaultPersonId) {\n        person = this.pickupLocationsList.find(pickupLocation => pickupLocation.personId === defaultPersonId);\n      }\n      if (!person?.personId) {\n        this.selectedSenderName = '';\n        return;\n      }\n      return person;\n    }\n    setTransporterSenderDefaults() {\n      const personId = this.transporterModel?._data?.defaultPickupLocationPersonId;\n      if (!personId) {\n        return;\n      }\n      const person = this.getCurrentPerson(personId);\n      this.onSelectAction(person);\n    }\n    onSelectAction(sender) {\n      this.selectedPersonId = sender?.personId;\n      this.selectedSenderName = sender?.name;\n      if (this.args?.isReadonly) {\n        return;\n      }\n      const senderModel = R.pipe(R.pathOr([], ['transporterModel', 'pickupLocationList']), R.find(R.pathEq(['_data', 'personId'], this.selectedPersonId)))(this);\n      this.args?.onSelect?.(this.transporterModel, senderModel);\n    }\n    onSelectWrapper(transporterModel, senderModel) {\n      this.args?.onSelect?.(transporterModel, senderModel);\n    }\n    autoSelectOnFirstPerson(model = {}, onCloseDialogAction = fn => fn) {\n      if (this.pickupLocationsList.length === 1) {\n        const defaultPickupLocationPersonId = this.pickupLocationsList[0].personId;\n        model.set('_data.defaultPickupLocationPersonId', defaultPickupLocationPersonId);\n        model.set('_data.transporterDefaultPickupLocationPersonId', defaultPickupLocationPersonId);\n        this.transporterModel = model;\n        this.setTransporterSenderDefaults();\n        this.args.onRefreshModel(model);\n        onCloseDialogAction();\n      }\n    }\n    autoSelectFirstPerson(model, transporterModel) {\n      if (this.args?.isReadonly) {\n        return false;\n      }\n      if (!model?._data?.transporterDefaultPickupLocationPersonId) {\n        return false;\n      }\n      const persons = transporterModel?._data?.persons || [];\n      const pickupLocationPersons = persons.filter(pickupLocation => pickupLocation?._data?.type === 'pickupLocation');\n      const hasTransporterDefaultPickupLocationPersonId = R.pipe(R.path(['_data', 'transporterDefaultPickupLocationPersonId']), RA.isNotNilOrEmpty)(model);\n      if (pickupLocationPersons.length === 0 || hasTransporterDefaultPickupLocationPersonId) {\n        return;\n      }\n      const transporterDefaultPickupLocationPersonIdFromCombinedZones = R.pipe(R.pathOr([], ['_data', 'shippingFeeData', 'combinedZones']), R.find(R.propEq('transporterKey', model?._data?.transporterKey)), R.pathOr(null, ['transporterDefaultPickupLocationPersonId']))(model);\n      let firstPerson;\n      if (transporterDefaultPickupLocationPersonIdFromCombinedZones) {\n        firstPerson = pickupLocationPersons.find(person => person?._data?.personId === transporterDefaultPickupLocationPersonIdFromCombinedZones) || pickupLocationPersons[0];\n      } else {\n        firstPerson = pickupLocationPersons[0];\n      }\n      const personId = firstPerson?._data?.personId;\n      model.set('_data.transporterDefaultPickupLocationPersonId', personId);\n      this.selectedPersonId = personId;\n      this.selectedSenderName = firstPerson?._data?.name;\n      this.onSelectWrapper(transporterModel, firstPerson);\n    }\n    refreshTransporterModel(model) {\n      this.transporterModel = model;\n    }\n    setDefaults(toggle) {\n      this.useDefaults = toggle;\n      if (toggle) {\n        this.selectedPersonId = this.transporterModel?._data?.defaultPickupLocationPersonId;\n      } else {\n        this.selectedSenderName = '';\n        this.setTransporterSenderDefaults(this.args.model);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"selectedSenderName\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"selectedPersonId\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"useDefaults\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchTransporterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransporterTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getCurrentPerson\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"getCurrentPerson\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTransporterSenderDefaults\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setTransporterSenderDefaults\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectAction\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectWrapper\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectWrapper\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"autoSelectOnFirstPerson\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"autoSelectOnFirstPerson\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"autoSelectFirstPerson\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"autoSelectFirstPerson\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshTransporterModel\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshTransporterModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDefaults\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"setDefaults\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/sender-list-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PDJhUeVf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"result\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@showPreview\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"isLoading\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[[3,\\\"did-insert\\\",[[28,\\\"fn\\\",[[23,0,[\\\"autoSelectFirstPerson\\\"]],[23,4,[]],[23,0,[\\\"transporterModel\\\"]]],null]]]],[[\\\"@icon\\\",\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@addItemComponent\\\",\\\"@model\\\",\\\"@onSelect\\\"],[\\\"fas fa-dolly\\\",true,[23,3,[]],[23,0,[\\\"transporterModel\\\",\\\"pickupLocationList\\\"]],\\\"_data.personId\\\",\\\"label\\\",[23,4,[\\\"_data\\\",\\\"transporterDefaultPickupLocationPersonId\\\"]],\\\"contacts/persons/pickup-location/editor\\\",[23,0,[\\\"transporterModel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"onSelectWrapper\\\"]],[23,0,[\\\"transporterModel\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"contacts/persons/pickup-location\\\",[],[[\\\"@model\\\"],[[23,1,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"sender name\\\",[23,2,[]],\\\"twTCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterSenderName\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"sender telephone\\\",[23,2,[]],\\\"twTCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterSenderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"tcat_sender_address\\\",[23,2,[]],\\\"twTCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterSenderAddress\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"transporter account\\\",[23,2,[]],\\\"transporterAccountNumber\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,true,\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],true,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterPackageTemperature\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"package size\\\",[23,2,[]],\\\"twTCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-package-size\\\"]],[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterPackageSize\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"package type\\\",[23,2,[]],\\\"twTCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-product-type\\\"]],[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterPackageType\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"transporter notes\\\",[23,2,[]],\\\"twTCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@maxlength\\\",\\\"@value\\\"],[true,2,97,[23,0,[\\\"defaultPickupLocation\\\",\\\"transporterNotes\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/sender-list-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/seven-eleven-editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\"], function (_exports, _component, R, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _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 TransportersSevenElevenEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('transporter'), _dec3 = Ember.inject.service('settings'), _dec4 = Ember.inject.service('dispatch'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember.computed('args.model.originalModel._data.convenienceStoreData.storeId', 'args.model._data.convenienceStoreData.storeId'), _dec8 = Ember.computed('args.model.originalModel._data.convenienceStoreData.storeName', 'args.model._data.convenienceStoreData.storeName'), _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class TransportersSevenElevenEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"convenienceStoreWindow\", _descriptor5, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor6, this);\n      this.crud.addLists(this, ['extensions/apps/tw/seven-eleven/lists/type', 'extensions/apps/tw/seven-eleven/lists/thermosphere', 'extensions/apps/tw/payuni-seven-eleven/accounts', 'extensions/apps/tw/payuni-seven-eleven/type']);\n      this.transporterService.setupReturnStoreTask.perform(this.args.model);\n    }\n    get storeId() {\n      return R.path(['args', 'model', 'originalModel', '_data', 'convenienceStoreData', 'storeId'])(this) || R.pathOr('', ['args', 'model', '_data', 'convenienceStoreData', 'storeId'])(this);\n    }\n    get storeName() {\n      return R.path(['args', 'model', 'originalModel', '_data', 'convenienceStoreData', 'storeName'])(this) || R.pathOr('', ['args', 'model', '_data', 'convenienceStoreData', 'storeName'])(this);\n    }\n    get senderNamePlaceHolder() {\n      return this.transporterService.getSenderNamePlaceHolder();\n    }\n    get allowUpdatePackageQty() {\n      const isReadonly = R.pathEq(['args', 'isReadonly'], true)(this);\n      if (isReadonly) {\n        return false;\n      }\n      const hasCollectionAmount = this.transporterService.hasCollectionAmount(this.args.model);\n      return !hasCollectionAmount;\n    }\n    afterLoadLists() {\n      this.setTransporterData();\n    }\n    setTransporterData() {\n      const model = this.args?.model;\n      if (!model?._data?.transporterType) {\n        const transporterTypes = this.crud.lists['extensions-apps-tw-seven-eleven-lists-type'] || [];\n        const transporterType = transporterTypes[0]?._data?.value || '';\n        model.setData('transporterType', transporterType);\n      }\n    }\n    closeUpdateConvenienceStoreWindow(storeId) {\n      try {\n        if (this.convenienceStoreWindow && this.convenienceStoreWindow.close) {\n          this.convenienceStoreWindow.close();\n          if (this.args?.outerOnCloseDialogAction) {\n            this.args.outerOnCloseDialogAction();\n          }\n        }\n      } catch (error) {\n        // DO NOTHING ON STORE WINDOWS REFERENCE ERROR\n      }\n    }\n\n    /**\n     * @param {Object} model - The model object.\n     * @return {void} - This method does not return anything.\n     */\n    *updateConvenienceStoreTask(model) {\n      let personId;\n      if (this.args.upsertPersonTask && this.args?.isNewPerson) {\n        personId = this.args?.personModel?._data?.personId;\n        const transporterModel = yield this.args.upsertPersonTask.perform();\n        const hasPerson = R.pipe(R.pathOr([], ['_data', 'persons']), R.find(R.pathEq(['_data', 'personId'], personId)))(transporterModel);\n        if (!hasPerson) {\n          personId = null;\n        }\n      } else if (model?._data?.transporterDefaultPickupLocationPersonId) {\n        personId = model?._data?.transporterDefaultPickupLocationPersonId;\n      } else if (this.args?.personModel?._data?.personId) {\n        personId = this.args?.personModel?._data?.personId;\n      } else {\n        const transporterAccount = this.args.model?._data?.transporterAccount;\n        personId = this.transporterModel.getPersonIdByTransporterAccount(transporterAccount);\n      }\n      const transporterKey = this.args?.transporterKey || this.args?.model?._data?.transporterKey || '';\n      try {\n        const url = yield this.dispatchService.updateConvenienceStoreUrl.perform({\n          model,\n          transporterKey,\n          personId\n        });\n        this.convenienceStoreWindow = window.open(url, '_blank');\n        this.args.outerOnCloseDialogAction();\n      } catch (error) {\n        // DO NOTHING ON STORE WINDOWS REFERENCE ERROR\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"convenienceStoreWindow\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"storeId\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"storeId\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"storeName\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"storeName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterLoadLists\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"afterLoadLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTransporterData\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setTransporterData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeUpdateConvenienceStoreWindow\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"closeUpdateConvenienceStoreWindow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateConvenienceStoreTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateConvenienceStoreTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/seven-eleven-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"1ICyWJbY\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onLoadContactPerson\\\",\\\"@tab\\\",\\\"@errors\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@title\\\"],[[23,1,[]],true,true,\\\"recipient\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"transporters/contact\\\",[],[[\\\"@formInitData\\\",\\\"@enableSelectPickupMethod\\\",\\\"@isReadonly\\\",\\\"@readonly\\\",\\\"@model\\\",\\\"@onLoadContactPerson\\\",\\\"@disallowChangeAddress\\\",\\\"@isTransporterEditor\\\"],[[23,1,[]],false,[23,2,[]],[23,2,[]],[23,3,[]],[23,4,[]],true,true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@title\\\"],[[23,1,[]],true,true,\\\"transporter settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"transporters/waybill-display/list\\\",[],[[\\\"@model\\\",\\\"@tab\\\"],[[23,3,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"pickup locations\\\",[23,6,[]],\\\"pickupLocations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"transporters/sender-list-btn\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onSelect\\\",\\\"@defaultPersonId\\\",\\\"@listSelectorValueKey\\\"],[[23,2,[]],[23,3,[]],[23,3,[\\\"setTransporterData\\\"]],[23,3,[\\\"_data\\\",\\\"transporterDefaultPickupLocationPersonId\\\"]],\\\"_data.transporterDefaultPickupLocationPersonId\\\"]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"sender name\\\",[23,6,[]],\\\"transporterSenderName\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[23,2,[]],[23,2,[]],[23,0,[\\\"disallowChangeSenderData\\\"]]],null],[23,0,[\\\"senderNamePlaceHolder\\\"]],[23,3,[\\\"_data\\\",\\\"transporterSenderName\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"sender company\\\",[23,6,[]],\\\"transporterSenderCompany\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[23,2,[]],[23,2,[]],[23,0,[\\\"disallowChangeSenderData\\\"]]],null],[23,0,[\\\"senderNamePlaceHolder\\\"]],[23,3,[\\\"_data\\\",\\\"transporterSenderCompany\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"sender telephone\\\",[23,6,[]],\\\"transporterSenderTelephone\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[23,2,[]],[23,2,[]],[23,0,[\\\"disallowChangeSenderData\\\"]]],null],[23,0,[\\\"settingsService\\\",\\\"settingsModel\\\",\\\"_data\\\",\\\"companyTel\\\"]],[23,3,[\\\"_data\\\",\\\"transporterSenderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\"],[[23,1,[]],\\\"transporter type\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[23,2,[]],[23,2,[]],[23,0,[\\\"disallowChangeSenderData\\\"]]],null],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-type\\\"]],true,[23,3,[\\\"_data\\\",\\\"transporterType\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"transporter account\\\",[23,6,[]],\\\"transporterAccountNumber\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[28,\\\"if\\\",[[23,2,[]],[23,2,[]],[23,0,[\\\"disallowChangeSenderData\\\"]]],null],\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-thermosphere\\\"]],true,[23,3,[\\\"_data\\\",\\\"transporterAccount\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"packages\\\",[23,6,[]],\\\"packages\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"if\\\",[[23,0,[\\\"allowUpdatePackageQty\\\"]],false,true],null],[23,3,[\\\"_data\\\",\\\"packages\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"waybill\\\",[23,6,[]],\\\"waybill\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"transporters/waybill-display\\\",[],[[\\\"@isReadonly\\\",\\\"@canRemoveWaybill\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,2,[]],true,[23,3,[]],[23,5,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"transporters/seven-eleven/store-selector\\\",[],[[\\\"@isReturnStore\\\",\\\"@isReadonly\\\",\\\"@storeId\\\",\\\"@storeName\\\",\\\"@storeAddress\\\",\\\"@transporterExtension\\\",\\\"@transporterAccount\\\",\\\"@transporterKey\\\",\\\"@waybill\\\",\\\"@documentKey\\\",\\\"@docType\\\",\\\"@docName\\\",\\\"@documentId\\\",\\\"@storeClosureStoreTypes\\\",\\\"@onUpdate\\\",\\\"@onRemove\\\"],[true,[23,2,[]],[23,3,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"returnStoreId\\\"]],[23,3,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"returnStoreName\\\"]],[23,3,[\\\"_data\\\",\\\"convenienceStoreData\\\",\\\"returnStoreAddress\\\"]],[23,3,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,3,[\\\"_data\\\",\\\"transporterAccount\\\"]],[23,3,[\\\"_data\\\",\\\"transporterKey\\\"]],[23,3,[\\\"_data\\\",\\\"waybill\\\"]],[23,3,[\\\"_data\\\",\\\"_key\\\"]],[23,3,[\\\"_data\\\",\\\"docType\\\"]],[23,3,[\\\"_data\\\",\\\"docName\\\"]],[23,3,[\\\"_data\\\",\\\"_id\\\"]],[23,3,[\\\"storeClosureStoreTypes\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"transporterService\\\",\\\"updateDocumentConvenienceStore\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"isReturnStore\\\"],[[23,3,[]],true]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"transporterService\\\",\\\"removeDocumentConvenienceStore\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"isReturnStore\\\"],[[23,3,[]],true]]]],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/seven-eleven-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/seven-eleven-sender-details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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, _dec0, _dec1, _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 TransportersSevenElevenSenderDetailsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember.computed('args.model._data.details.[]'), _dec4 = Ember.computed('args.model._data.details.[]'), _dec5 = Ember.computed('args.model._data.details.[]'), _dec6 = Ember.computed('args.model._data.details.[]'), _dec7 = Ember.computed('args.model._data.details.[]'), _dec8 = Ember.computed('args.model._data.details.[]'), _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class TransportersSevenElevenSenderDetailsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"isRefreshing\", _descriptor2, this);\n      this.setup();\n    }\n    get telephoneDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('telephone');\n    }\n    get addressDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('transporterSenderCompany');\n    }\n    get transporterAccountDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('transporterAccount');\n    }\n    setup() {\n      // auto select first option\n      const transporterAccount = this.args.contactModel?.transporterAccounts?.[0]?._data?.value;\n      this.transporterAccountDetailModelProxy.set('_data.value', transporterAccount);\n    }\n    get transporterStoreIdModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('storeId');\n    }\n    get transporterStoreNameModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('storeName');\n    }\n    get transporterStoreAddressModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('storeAddress');\n    }\n\n    /**\n     *\n     * @param {any} model\n     * @param {ISevenElevenStoreData} sevenElevenStoreData\n     */\n    updateDocumentConvenienceStore(model, sevenElevenStoreData) {\n      this.transporterStoreIdModelProxy.setData('value', sevenElevenStoreData?.convenienceStoreId);\n      this.transporterStoreNameModelProxy.setData('value', sevenElevenStoreData?.convenienceStoreName);\n      this.transporterStoreAddressModelProxy.setData('value', sevenElevenStoreData?.convenienceStoreAddress);\n    }\n    removeDocumentConvenienceStore() {\n      this.transporterStoreIdModelProxy.setData('value', '');\n      this.transporterStoreNameModelProxy.setData('value', '');\n      this.transporterStoreAddressModelProxy.setData('value', '');\n    }\n    refreshList() {\n      this.isRefreshing = true;\n      this.args.contactModel.set('synced', Math.random());\n      setTimeout(() => {\n        this.isRefreshing = false;\n      }, 100);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isRefreshing\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"telephoneDetailModelProxy\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"telephoneDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addressDetailModelProxy\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"addressDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterAccountDetailModelProxy\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterAccountDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterStoreIdModelProxy\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterStoreIdModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterStoreNameModelProxy\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterStoreNameModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterStoreAddressModelProxy\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterStoreAddressModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateDocumentConvenienceStore\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDocumentConvenienceStore\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeDocumentConvenienceStore\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"removeDocumentConvenienceStore\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshList\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshList\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/seven-eleven-sender-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yDGh0PKp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@contactModel\\\",\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[2,\\\" Telephone \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[true,[23,2,[]],[23,0,[\\\"telephoneDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"telephoneDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Sender Company \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[true,[23,2,[]],[23,0,[\\\"addressDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@isRequired\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"addressDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Account \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[true,[23,2,[]],[23,0,[\\\"transporterAccountDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"refreshList\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isRefreshing\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,false,true,[23,1,[\\\"transporterAccounts\\\"]],[23,0,[\\\"transporterAccountDetailModelProxy\\\"]],\\\"_data.value\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Store selector \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@context\\\",\\\"@overrideFormInputClassNames\\\"],[true,[23,2,[]],\\\"return convenience store\\\",\\\"persons.details.value\\\",\\\"flex-container-column flex-item--align-self-start\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"transporters/seven-eleven/store-selector\\\",[],[[\\\"@isReturnStore\\\",\\\"@isReadonly\\\",\\\"@storeId\\\",\\\"@storeName\\\",\\\"@storeAddress\\\",\\\"@transporterExtension\\\",\\\"@transporterAccount\\\",\\\"@transporterKey\\\",\\\"@transporterCredentials\\\",\\\"@onUpdate\\\",\\\"@onRemove\\\"],[true,[23,3,[]],[23,0,[\\\"transporterStoreIdModelProxy\\\",\\\"_data\\\",\\\"value\\\"]],[23,0,[\\\"transporterStoreNameModelProxy\\\",\\\"_data\\\",\\\"value\\\"]],[23,0,[\\\"transporterStoreAddressModelProxy\\\",\\\"_data\\\",\\\"value\\\"]],[23,1,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,0,[\\\"transporterAccountDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]],[23,1,[\\\"_data\\\",\\\"_key\\\"]],[23,1,[\\\"_data\\\",\\\"transporterCredentials\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"updateDocumentConvenienceStore\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"removeDocumentConvenienceStore\\\"]],[23,4,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/seven-eleven-sender-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/seven-eleven-waybill/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ember-concurrency-decorators\", \"ember-concurrency\"], function (_exports, _component, R, _emberConcurrencyDecorators, _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, _dec8, _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 TransportersSevenElevenWaybillComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember.computed('args.waybillsOptionsByProvider.showPresPrintButtonMessage'), _dec8 = Ember.computed('args.waybillsPerPage', 'args.waybillsOptionsByProvider'), _class = class TransportersSevenElevenWaybillComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"transporter\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sevenElevenHtmlWaybills\", _descriptor4, this);\n      _initializerDefineProperty(this, \"waybillsPerPagePreviousValue\", _descriptor5, this);\n      _initializerDefineProperty(this, \"transporterArray\", _descriptor6, this);\n      this.crud.addLists(this, ['extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-c2c']);\n    }\n    get waybillsOptionsByProvider() {\n      return R.pathOr({}, ['args', 'waybillsOptionsByProvider', this.constants.transporterExtensions.sevenEleven])(this);\n    }\n    get showPresPrintButtonMessage() {\n      if (!this.waybillsOptionsByProvider.waybillsPerPage) {\n        return false;\n      }\n      if (this.waybillsOptionsByProvider.waybillsPerPage === this.args.waybillsPerPage) {\n        return false;\n      }\n      return true;\n    }\n    *fetchTransporter(models = []) {\n      const transporterArrayTask = R.pipe(R.map(R.pathOr('', ['_data', 'transporterKey'])), R.uniq, R.map(transporterKey => this.transporter.fetchTransporterTask.perform({\n        transporterKey\n      })))(models);\n      const transporterArray = yield (0, _emberConcurrency.all)(transporterArrayTask);\n      const transporter = transporterArray[0];\n      const waybillsPerPage = R.pathOr(4, ['_data', 'sevenEleven', 'waybillsPerPage'])(transporter);\n      const waybillPrintPerPageModel = R.pipe(R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-c2c']), R.filter(R.pathEq(['_data', 'value'], waybillsPerPage)), R.path([0]))(this);\n      if (waybillPrintPerPageModel) {\n        this.waybillsPerPage = waybillsPerPage;\n        this.args.onSetWaybillsPerPage(waybillPrintPerPageModel, {\n          showConfirmation: false,\n          defaultWaybillsPerPage: waybillsPerPage\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"transporter\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sevenElevenHtmlWaybills\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"waybillsPerPagePreviousValue\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"transporterArray\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"waybillsOptionsByProvider\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"waybillsOptionsByProvider\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showPresPrintButtonMessage\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"showPresPrintButtonMessage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTransporter\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransporter\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/seven-eleven-waybill/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qTBfXziz\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@waybillsPerPage\\\",\\\"@onSetWaybillsPerPage\\\",\\\"@results\\\",\\\"@allowProcesses\\\",\\\"@allResults\\\",\\\"@autoFetchProduct\\\",\\\"@dispatchedResults\\\",\\\"@dispatchProcess\\\",\\\"@filteredResults\\\",\\\"@filters\\\",\\\"@hasGroups\\\",\\\"@hasPrices\\\",\\\"@isDispatched\\\",\\\"@isDispatchedBeforeToday\\\",\\\"@isDispatchedProcessModel\\\",\\\"@onFetchUnpaginatedData\\\",\\\"@period\\\",\\\"@summaryData\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[[12,\\\"class\\\",\\\"u-no-print\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"waybills per page\\\",[23,1,[]],\\\"sevenEleven.waybillsPerPage\\\",\\\"extensions_tw_sevenEleven\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@onSelect\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-c2c\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,2,[]],[23,3,[]],false,[23,4,[]],[23,0,[\\\"fetchTransporter\\\",\\\"isRunning\\\"]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showPresPrintButtonMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"notification-item u-no-print\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fas fa-info-circle\\\",\\\"please press print again to see changes\\\"]]],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"notification-item u-no-print\\\"],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"fetchTransporter\\\"]],[23,6,[]]],null]]],[8],[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fas fa-info-circle\\\",\\\"if there are multiple payment types, waybills will be grouped by payment type\\\"]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"dispatch/panels-display/display-list\\\",[],[[\\\"@allowProcesses\\\",\\\"@allResults\\\",\\\"@autoFetchProduct\\\",\\\"@dispatchedResults\\\",\\\"@dispatchProcess\\\",\\\"@filteredResults\\\",\\\"@filters\\\",\\\"@hasGroups\\\",\\\"@hasPrices\\\",\\\"@hasPrintBtn\\\",\\\"@isDispatched\\\",\\\"@isDispatchedBeforeToday\\\",\\\"@isDispatchedProcessModel\\\",\\\"@isPrinting\\\",\\\"@isReadonly\\\",\\\"@onFetchUnpaginatedData\\\",\\\"@period\\\",\\\"@results\\\",\\\"@scheduleOnceAfterRender\\\",\\\"@summaryData\\\",\\\"@tab\\\"],[[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],false,[23,16,[]],[23,17,[]],[23,18,[]],true,true,[23,19,[]],[23,20,[]],[23,6,[]],false,[23,21,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/seven-eleven-waybill/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/seven-eleven-waybills-settings/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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, _dec0, _dec1, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 TransportersSevenElevenWaybillsSettingstComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('dispatch'), _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _class = class TransportersSevenElevenWaybillsSettingstComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"printType\", _descriptor6, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor7, this);\n      _initializerDefineProperty(this, \"hasC2C\", _descriptor8, this);\n      _initializerDefineProperty(this, \"hasB2C\", _descriptor9, this);\n      // currently not supported\n      _initializerDefineProperty(this, \"reprintError\", _descriptor0, this);\n      _defineProperty(this, \"adapterNameContacts\", 'contacts');\n      this.crud.addLists(this, ['extensions/apps/tw/seven-eleven/lists/waybill-print-per-page', 'extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-b2c', 'extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-c2c', 'extensions/apps/tw/payuni-seven-eleven/type', 'extensions/apps/tw/payuni-seven-eleven/accounts', 'contacts/transporters']);\n      const model = this.args.transporterExtensionOptionsModel;\n      const waybillsPerPageC2C = this.settings.getProp('tw_shipping_payuni.sevenEleven.waybillsPerPageC2C');\n      // const waybillsPerPageB2C = this.settings.getProp('tw_shipping_payuni.sevenEleven.waybillsPerPageB2C')\n\n      if (typeof model.get('enabled') !== 'boolean') {\n        model.set('enabled', true);\n      }\n      model.set('waybillsPerPageC2C', waybillsPerPageC2C);\n      model.set('waybillsPerPage', Number(waybillsPerPageC2C) || 4);\n      model.set('printComponent', 'dispatch/print-options/seven-eleven-waybills');\n      // model.set('waybillsPerPageB2C', waybillsPerPageB2C)\n    }\n    async reprintWaybills() {\n      const printOptions = this.args.printOptionsModel;\n      if (!printOptions?.isReprintAllowed || !printOptions.carrierDocumentCount(this.args.transporterExtension)) {\n        return;\n      }\n      this.reprintError = '';\n      const {\n        printBatchRequest\n      } = printOptions.readPrintBatchRequest();\n      try {\n        const waybillPages = await this.dispatchService.redownloadSevenElevenWaybillPagesTask.perform({\n          transporterExtension: this.args.transporterExtension,\n          filters: printBatchRequest?.filters || {},\n          carrierSettings: this.args.transporterExtensionOptionsModel\n        });\n        if (RA.isNilOrEmpty(waybillPages)) {\n          this.reprintError = 'waybills not yet created';\n        }\n      } catch (error) {\n        this.reprintError = error?.message || 'error occurred please try again later';\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"printType\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hasC2C\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"hasB2C\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"reprintError\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"reprintWaybills\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"reprintWaybills\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/seven-eleven-waybills-settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ih8F4xS1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@transporterExtensionOptionsModel\\\",\\\"@formInitData\\\",\\\"@printOptionsModel\\\",\\\"@transporterExtension\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@description\\\"],[\\\"reprint\\\",\\\"redownload\\\",[23,3,[]],[28,\\\"unless\\\",[[23,4,[\\\"isReprintAllowed\\\"]],\\\"reprint is only available in the printed tab\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"reprint\\\",\\\"fas fa-download\\\",[28,\\\"or\\\",[[28,\\\"not\\\",[[23,4,[\\\"isReprintAllowed\\\"]]],null],[28,\\\"not\\\",[[28,\\\"get\\\",[[23,4,[\\\"printBadgeByTransporterExtension\\\"]],[23,5,[]]],null]],null]],null],[23,0,[\\\"dispatchService\\\",\\\"redownloadSevenElevenWaybillPagesTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"reprintWaybills\\\"]]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"reprintError\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@error\\\"],[[23,0,[\\\"reprintError\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasC2C\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"waybills per page c2c\\\",[23,1,[]],\\\"sevenEleven.waybillsPerPage\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@label\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-c2c\\\"]],[23,2,[\\\"waybillsPerPageC2C\\\"]],[23,2,[\\\"waybillsPerPageC2C\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasB2C\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"waybills per page b2c\\\",[23,1,[]],\\\"sevenEleven.waybillsPerPage\\\",\\\"extensions_tw_payuni\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@list\\\",\\\"@label\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-seven-eleven-lists-waybill-print-per-page-b2c\\\"]],[23,2,[\\\"waybillsPerPageB2C\\\"]],[23,2,[\\\"waybillsPerPageB2C\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/seven-eleven-waybills-settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/seven-eleven/pickup-location/editor-extension/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 TransportersSevenElevenPickupLocationEditorExtensionComponent = _exports.default = (_dec = Ember.inject.service, _class = class TransportersSevenElevenPickupLocationEditorExtensionComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['extensions/apps/tw/seven-eleven/lists/thermosphere']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/transporters/seven-eleven/pickup-location/editor-extension/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fzA7E9wA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"detailModel\\\",\\\"@isReadonly\\\",\\\"@transporterModel\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@onCloseDialogAction\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"details\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]],\\\"storeId\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]],\\\"storeName\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]],\\\"storeAddress\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,1,[\\\"label\\\"]],true,true,[23,1,[\\\"_data\\\",\\\"subType\\\"]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"subType\\\"]],\\\"transporterAccount\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,2,[]],[23,3,[\\\"transporterAccounts\\\"]],[23,1,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],true,[23,1,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@overrideFormInputClassNames\\\"],[\\\"return convenience store\\\",\\\"returnStore\\\",\\\"extensions_tw_sevenEleven\\\",\\\"flex-container-column flex-item--align-self-start\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"transporters/seven-eleven/pickup-location/return-store-editor\\\",[],[[\\\"@model\\\",\\\"@transporterModel\\\",\\\"@onCloseDialogAction\\\"],[[23,5,[]],[23,3,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/seven-eleven/pickup-location/editor-extension/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/seven-eleven/pickup-location/return-store-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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  /**\n   * @deprecated\n   */\n  let TransportersSevenElevenPickupLocationReturnStoreEditorComponent = _exports.default = (_dec = Ember.inject.service('transporter'), _dec2 = Ember.inject.service('application'), _class = class TransportersSevenElevenPickupLocationReturnStoreEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor2, this);\n    }\n    /**\n     * @deprecated\n     */\n    *updateReturnConvenienceStoreTask(onCloseDialogAction, model, transporterModel) {\n      try {\n        const transporterKey = transporterModel._data._key;\n        const personId = model._data.personId;\n        let newWindow;\n        if (this.applicationService.isMobile) {\n          // Open the blank page immediately\n          newWindow = window.open('', '_blank');\n          if (!newWindow) {\n            // Handle case where the popup was blocked\n            alert('please allow popups to open');\n            return;\n          }\n          const url = yield this.transporterService.getUpdateConvenienceStoreUrlTask.perform({\n            model: transporterModel,\n            transporterKey,\n            personId\n          });\n\n          // Update the blank page to the actual URL\n          newWindow.location.href = url;\n        } else {\n          const url = yield this.transporterService.getUpdateConvenienceStoreUrlTask.perform({\n            model: transporterModel,\n            transporterKey,\n            personId\n          });\n          // Open the blank page immediately\n          newWindow = window.open('', '_blank');\n          if (!newWindow) {\n            // Handle case where the popup was blocked\n            alert('please allow popups to open');\n            return;\n          }\n          // Update the blank page to the actual URL\n          newWindow.location.href = url;\n        }\n        onCloseDialogAction();\n      } catch (error) {\n        // DO NOTHING ON STORE WINDOWS REFERENCE ERROR\n      }\n    }\n\n    /**\n     * @deprecated\n     */\n    *clearReturnConvenienceStoreTask(onCloseDialogAction, model, transporterModel) {\n      model.clearConvenienceStoreData();\n      yield this.transporterService.replacePersonTask.perform(transporterModel, model);\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateReturnConvenienceStoreTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateReturnConvenienceStoreTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearReturnConvenienceStoreTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearReturnConvenienceStoreTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/seven-eleven/pickup-location/return-store-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nxN8tAvo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@transporterModel\\\",\\\"@model\\\",\\\"@onUpsertPersonTask\\\",\\\"@onCloseDialogAction\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[8],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"convenienceStoreData\\\",\\\"storeId\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[23,2,[\\\"convenienceStoreData\\\",\\\"storeName\\\"]],false],[0,\\\" - \\\"],[1,[23,2,[\\\"convenienceStoreData\\\",\\\"storeAddress\\\"]],false],[0,\\\" (\\\"],[1,[28,\\\"tt\\\",[\\\"storeId\\\"],null],false],[0,\\\"\\\\n      : \\\"],[1,[23,2,[\\\"convenienceStoreData\\\",\\\"storeId\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"tt\\\",[\\\"seven-eleven return store description\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"isDirty\\\"]],[23,2,[\\\"convenienceStoreData\\\",\\\"storeId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@typeToDelete\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[false,\\\"\\\",\\\"fas fa-trash\\\",[28,\\\"perform\\\",[[23,0,[\\\"clearReturnConvenienceStoreTask\\\"]],[23,4,[]],[23,2,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"_key\\\"]],false,true],null],true,\\\"change return convenience store\\\",[28,\\\"or\\\",[[23,0,[\\\"updateReturnConvenienceStoreTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"clearReturnConvenienceStoreTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"updateReturnConvenienceStoreTask\\\"]],[23,3,[]],[23,2,[]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/seven-eleven/pickup-location/return-store-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/seven-eleven/pickup/editor-extension/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 TransportersSevenElevenPickupEditorExtensionComponent = _exports.default = (_dec = Ember.inject.service, _class = class TransportersSevenElevenPickupEditorExtensionComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere']);\n    }\n    get transporterPackageTemperatureList() {\n      const transporterPackageTemperatureList = this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere'] || [];\n      return transporterPackageTemperatureList.filter(t => t._data.value !== 'refrigerated');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/transporters/seven-eleven/pickup/editor-extension/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"RYZLnp9Z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@transporterModel\\\",\\\"@personDetails\\\",\\\"@personModel\\\",\\\"@upsertPersonTask\\\",\\\"@outerOnCloseDialogAction\\\",\\\"@isNewPerson\\\",\\\"@errors\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"extensions/apps/tw/seven-eleven/print-item-meta\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@transporterKey\\\",\\\"@storeId\\\",\\\"@storeName\\\",\\\"@storeAddress\\\",\\\"@storeIdPlaceholder\\\",\\\"@storeNamePlaceholder\\\",\\\"@storeAddressPlaceholder\\\",\\\"@isUpdateReturnStore\\\",\\\"@onClearReturnShop\\\",\\\"@personDetails\\\",\\\"@personModel\\\",\\\"@upsertPersonTask\\\",\\\"@outerOnCloseDialogAction\\\",\\\"@isNewPerson\\\"],[[23,1,[]],[23,2,[]],[23,2,[\\\"_data\\\",\\\"_key\\\"]],[23,3,[\\\"storeId\\\",\\\"_data\\\",\\\"value\\\"]],[23,3,[\\\"storeName\\\",\\\"_data\\\",\\\"value\\\"]],[23,3,[\\\"storeAddress\\\",\\\"_data\\\",\\\"value\\\"]],\\\"same as drop off\\\",\\\"same as drop off\\\",\\\"same as drop off\\\",true,[23,0,[\\\"onClearReturnShop\\\"]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"transporter package temperature\\\",[23,8,[]],\\\"transporterPackageTemperature\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,9,[]],\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"transporterPackageTemperatureList\\\"]],true,[23,3,[\\\"transporterAccount\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/seven-eleven/pickup/editor-extension/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/seven-eleven/store-selector/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"client/constants/index\"], function (_exports, _component, _emberConcurrencyDecorators, _index) {\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  let TransportersSevenElevenStoreSelectorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('transporter'), _dec3 = Ember.inject.service('application'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _class = class TransportersSevenElevenStoreSelectorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_sevenElevenCheckClosedInterval\", _descriptor4, this);\n      _initializerDefineProperty(this, \"storeUpdateError\", _descriptor5, this);\n    }\n    get showReturnStoreWarning() {\n      if (this.args.isReturnStore !== true) {\n        return false;\n      }\n      if (this.args.storeId && this.args.storeName && this.args.storeAddress) {\n        return false;\n      }\n      return true;\n    }\n    get storeIdLabel() {\n      if (this.args.isReturnStore) {\n        return 'return storeId';\n      }\n      return 'storeId';\n    }\n    get storeNameLabel() {\n      if (this.args.isReturnStore) {\n        return 'return storeName';\n      }\n      return 'storeName';\n    }\n    get storeAddressLabel() {\n      if (this.args.isReturnStore) {\n        return 'return storeAddress';\n      }\n      return 'storeAddress';\n    }\n    get storeSelectorBtnLabel() {\n      if (this.args.storeId && this.args.storeName && this.args.storeAddress) {\n        return this.intl.t('change convenience store');\n      }\n      return this.intl.t('add convenience store');\n    }\n    get upsertBtnClassNames() {\n      if (this.args.isReturnStore) {\n        return '';\n      }\n      if (this.args.storeId && this.args.storeName && this.args.storeAddress) {\n        return '';\n      }\n      return 'is-primary';\n    }\n    get disableRemoveConvenienceStoreBtn() {\n      if (this.args.storeId && this.args.storeName && this.args.storeAddress) {\n        return false;\n      }\n      return true;\n    }\n    get expectedStoreUpdateType() {\n      // 數網 store types: 01 = 取件門市 (pickup), 02 = 退件門市 (return)\n      return this.args.isReturnStore ? '02' : '01';\n    }\n    get hasWaybill() {\n      return Boolean(this.args.waybill);\n    }\n\n    // 數網 only accepts a store change while the waybill is in 門市關轉 (announced by the\n    // CCS notification), and only for the store type that actually 關轉'd. Before a waybill\n    // exists (create flow) the store is freely selectable.\n    get canChangeStoreOnCarrier() {\n      if (!this.args.waybill) {\n        return true;\n      }\n      // The 關轉 gate is 數網 (Presco) only. PayUni updates the waybill directly via the\n      // store map (Tag=4/5) and has no CCS notification, so it must not be gated here.\n      if (this.args.transporterExtension !== _index.default.transporterExtensions.sevenEleven) {\n        return true;\n      }\n      const activeStoreClosureTypes = this.args.storeClosureStoreTypes || [];\n      return activeStoreClosureTypes.includes(this.expectedStoreUpdateType);\n    }\n    get isStoreChangeDisabled() {\n      // Create flow (no waybill yet): selecting the store is part of editing the invoice,\n      // so it is an edit-mode action and stays disabled in read-only mode.\n      if (!this.hasWaybill) {\n        return this.args.isReadonly;\n      }\n      // Carrier change (existing waybill): committing the new store to 7-ELEVEN happens\n      // out-of-band (數網 §3.3 / PayUni map) and the backend broadcasts the result, so it is\n      // a VIEW-mode action. Forbidding it while editing avoids the dirty model overwriting\n      // the carrier-synced write on a later save. Still gated on the 關轉 rule (數網).\n      return !this.args.isReadonly || !this.canChangeStoreOnCarrier;\n    }\n    get storeChangeDisabledHint() {\n      if (!this.hasWaybill) {\n        return '';\n      }\n      // The store change is a view-mode action; while editing, point the user to view mode.\n      if (!this.args.isReadonly) {\n        return 'convenience store change requires view mode';\n      }\n      if (!this.canChangeStoreOnCarrier) {\n        // The pickup (取件門市) and return (退件門市) stores are gated on their own\n        // CCS 關轉 StoreType, so name the store this selector controls.\n        if (this.args.isReturnStore) {\n          return 'return convenience store change requires store closure notification';\n        }\n        return 'pickup convenience store change requires store closure notification';\n      }\n      return '';\n    }\n    get requiresStoreChangeConfirmation() {\n      // Only the carrier-change path (existing waybill) mutates 7-ELEVEN immediately.\n      return this.hasWaybill;\n    }\n    get storeChangeConfirmMsg() {\n      if (this.args.isReturnStore) {\n        return 'confirm return convenience store change on carrier';\n      }\n      return 'confirm pickup convenience store change on carrier';\n    }\n    clearStoreCheckInterval() {\n      if (this._sevenElevenCheckClosedInterval) {\n        clearInterval(this._sevenElevenCheckClosedInterval);\n        this._sevenElevenCheckClosedInterval = null;\n      }\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      if (typeof window !== 'undefined') {\n        window.removeEventListener('message', this.sevenElevenRedirectEvent, false);\n      }\n      this.clearStoreCheckInterval();\n    }\n    *updateReturnConvenienceStoreTask({\n      onUpdate,\n      transporterExtension,\n      transporterAccount,\n      transporterKey,\n      transporterCredentials,\n      waybill,\n      documentKey,\n      docType,\n      docName,\n      documentId,\n      isReturnStore\n    }) {\n      let newWindow;\n      // Reset any previous carrier-rejection error when a new attempt starts.\n      this.storeUpdateError = null;\n      try {\n        const payload = {\n          transporterExtension,\n          transporterAccount,\n          transporterKey,\n          transporterCredentials\n        };\n        // When a waybill already exists, this is a store change on an existing\n        // PayUni waybill (e.g. the 門市關轉 reselection). Pass the waybill\n        // (ShipTradeNo) and document context so the backend updates the waybill\n        // on PayUni via ship_map Tag=4 (pickup) / Tag=5 (return) instead of just\n        // overwriting local records. Without a waybill we keep the create flow (Tag=2).\n        if (waybill) {\n          payload.waybill = waybill;\n          payload.documentKey = documentKey;\n          payload.docType = docType;\n          payload.docName = docName;\n          payload.documentId = documentId;\n          payload.storeUpdateMode = isReturnStore ? 'return' : 'pickup';\n        }\n        let windowFeatures = '';\n        if (!this.applicationService.isMobile) {\n          windowFeatures = 'width=1000,height=600';\n        }\n        // Open the blank page immediately to avoid popup blockers on async operations\n        newWindow = window.open('', '_blank', windowFeatures);\n        if (!newWindow) {\n          window.alert(this.intl.t('please allow popups to open'));\n          return;\n        }\n        window.addEventListener('message', this.sevenElevenRedirectEvent, false);\n\n        // Detect popup closed without completing\n        this._sevenElevenCheckClosedInterval = setInterval(() => {\n          if (newWindow && newWindow.closed) {\n            this.clearStoreCheckInterval();\n            // handle popup closed without response\n            window.removeEventListener('message', this.sevenElevenRedirectEvent, false);\n          }\n        }, 500);\n\n        // Now that the window is open, fetch the URL and redirect it\n        newWindow.location.href = yield this.transporterService.getUpdateConvenienceStoreUrlTask.perform(payload);\n      } catch (error) {\n        if (newWindow) {\n          newWindow.close();\n        }\n        // DO NOTHING ON STORE WINDOWS REFERENCE ERROR\n      }\n    }\n    *clearReturnConvenienceStoreTask(onCloseDialogAction, model, transporterModel) {\n      // Drop any stale carrier-rejection message so it does not linger after the store is removed.\n      this.storeUpdateError = null;\n      model.clearConvenienceStoreData();\n      if (transporterModel?._data?._key) {\n        yield this.transporterService.replacePersonTask.perform(transporterModel, model);\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    sevenElevenRedirectEvent(event) {\n      const onUpdate = this.args?.onUpdate;\n      // Security: verify origin\n      if (event.origin !== window.location.origin) {\n        // ignore messages from other origins\n        return;\n      }\n      if (event.data.source !== 'seven-eleven') {\n        return;\n      }\n      console.debug('SevenElevenRedirectEvent: ', event?.data);\n      window.removeEventListener('message', this.sevenElevenRedirectEvent, false);\n      const payload = event?.data?.payload;\n\n      // The carrier rejected the store change (e.g. 數網 §3.3 資料已鎖定 / past deadline).\n      // Surface it next to the button and do NOT overwrite the local store data.\n      if (payload?.error) {\n        this.storeUpdateError = payload.error;\n        this.clearStoreCheckInterval();\n        // window.alert(payload.error)\n        return;\n      }\n      this.storeUpdateError = null;\n      this.clearStoreCheckInterval();\n      if (onUpdate.perform) {\n        return onUpdate.perform(payload);\n      }\n      if (typeof onUpdate === 'function') {\n        return onUpdate(payload);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_sevenElevenCheckClosedInterval\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"storeUpdateError\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateReturnConvenienceStoreTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateReturnConvenienceStoreTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearReturnConvenienceStoreTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"clearReturnConvenienceStoreTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sevenElevenRedirectEvent\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"sevenElevenRedirectEvent\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/seven-eleven/store-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xg84gWIF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@onRemove\\\",\\\"@isReturnStore\\\",\\\"@documentId\\\",\\\"@docName\\\",\\\"@docType\\\",\\\"@documentKey\\\",\\\"@waybill\\\",\\\"@transporterCredentials\\\",\\\"@transporterKey\\\",\\\"@transporterAccount\\\",\\\"@transporterExtension\\\",\\\"@onUpdate\\\",\\\"@formInitData\\\",\\\"@storeAddress\\\",\\\"@storeName\\\",\\\"@storeId\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,17,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,14,[]],\\\"storeId\\\",[23,0,[\\\"storeIdLabel\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,17,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,16,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,14,[]],\\\"storeName\\\",[23,0,[\\\"storeNameLabel\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,16,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,15,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\"],[[23,14,[]],\\\"storeAddress\\\",[23,0,[\\\"storeAddressLabel\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[true,[23,15,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showReturnStoreWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[\\\"seven-eleven return store description\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"storeChangeDisabledHint\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@rowClassNames\\\"],[\\\"seven-eleven-store-change-hint\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[[23,0,[\\\"storeChangeDisabledHint\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"storeUpdateError\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@rowClassNames\\\"],[\\\"seven-eleven-store-change-hint\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@translate\\\",\\\"@error\\\"],[false,[23,0,[\\\"storeUpdateError\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[2,\\\" SEVEN-ELEVEN STORE SELECTOR \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\"],[[23,14,[]],\\\"storeSelector\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"upsertBtnClassNames\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"upsertBtnClassNames\\\"]],[23,0,[\\\"isStoreChangeDisabled\\\"]],false,[23,0,[\\\"storeSelectorBtnLabel\\\"]],[23,0,[\\\"requiresStoreChangeConfirmation\\\"]],[23,0,[\\\"storeChangeConfirmMsg\\\"]],true,[28,\\\"or\\\",[[23,0,[\\\"updateReturnConvenienceStoreTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"clearReturnConvenienceStoreTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"updateReturnConvenienceStoreTask\\\"]],[28,\\\"hash\\\",null,[[\\\"onUpdate\\\",\\\"transporterExtension\\\",\\\"transporterAccount\\\",\\\"transporterKey\\\",\\\"transporterCredentials\\\",\\\"waybill\\\",\\\"documentKey\\\",\\\"docType\\\",\\\"docName\\\",\\\"documentId\\\",\\\"isReturnStore\\\"],[[23,13,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@disabled\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@requiresConfirmation\\\",\\\"@confirmMsg\\\",\\\"@confirmMsgTranslate\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"isStoreChangeDisabled\\\"]],false,[23,0,[\\\"storeSelectorBtnLabel\\\"]],[23,0,[\\\"requiresStoreChangeConfirmation\\\"]],[23,0,[\\\"storeChangeConfirmMsg\\\"]],true,[28,\\\"or\\\",[[23,0,[\\\"updateReturnConvenienceStoreTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"clearReturnConvenienceStoreTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"updateReturnConvenienceStoreTask\\\"]],[28,\\\"hash\\\",null,[[\\\"onUpdate\\\",\\\"transporterExtension\\\",\\\"transporterAccount\\\",\\\"transporterKey\\\",\\\"transporterCredentials\\\",\\\"waybill\\\",\\\"documentKey\\\",\\\"docType\\\",\\\"docName\\\",\\\"documentId\\\",\\\"isReturnStore\\\"],[[23,13,[]],[23,12,[]],[23,11,[]],[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@typeToDelete\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,1,[]],[23,0,[\\\"disableRemoveConvenienceStoreBtn\\\"]]],null],false,\\\"remove convenience store\\\",\\\"fas fa-trash\\\",[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/seven-eleven/store-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/t-cat-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 TransportersTCatEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _class = class TransportersTCatEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor4, this);\n      _initializerDefineProperty(this, \"transporterKey\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedSenderName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"customSenderDetailsToggle\", _descriptor7, this);\n      _initializerDefineProperty(this, \"hadCustomSenderDetails\", _descriptor8, this);\n      _initializerDefineProperty(this, \"customSenderDetails\", _descriptor9, this);\n      _initializerDefineProperty(this, \"previousSenderPersonId\", _descriptor0, this);\n      _defineProperty(this, \"adapterNameContacts\", 'contacts');\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time']);\n      this.transporterKey = R.pathOr('', ['args', 'model', '_data', 'transporterKey'])(this);\n      this.storeCustomSenderDetails(this.args?.model);\n      this.setupTransporterTask.perform();\n    }\n    setTransporterDefaults() {\n      const transporterData = R.pathOr({}, ['transporterModel', '_data'])(this);\n      const docSalesModel = R.pathOr({}, ['args', 'model'])(this);\n      const docSalesData = R.propOr({}, '_data')(docSalesModel);\n      if (!this.disallowChangeSenderData && RA.isNilOrEmpty(docSalesData.transporterSenderName)) {\n        this.setTransporterSender({\n          name: transporterData.senderName\n        });\n      }\n      if (!this.disallowChangeSenderData && RA.isNilOrEmpty(docSalesData.transporterSenderTelephone)) {\n        this.setTransporterSender({\n          telephone: transporterData.senderTelephone\n        });\n      }\n      if (!this.disallowChangeSenderData && RA.isNilOrEmpty(docSalesData.transporterSenderAddress)) {\n        this.setTransporterSender({\n          address: transporterData.senderAddress\n        });\n      }\n      if (RA.isNilOrEmpty(docSalesData.transporterAccountNumber)) {\n        const defaultTransporterAccount = this.transporterModel.defaultTransporterAccount;\n        docSalesModel.setData('transporterAccountNumber', defaultTransporterAccount);\n        if (defaultTransporterAccount) {\n          docSalesModel.setData('transporterAccount', defaultTransporterAccount);\n        }\n      }\n      if (RA.isNilOrEmpty(docSalesData.transporterPackageSize)) {\n        docSalesModel.setData('transporterPackageSize', transporterData.packageSizeDefault);\n      }\n      if (RA.isNilOrEmpty(docSalesData.transporterPackageType)) {\n        docSalesModel.setData('transporterPackageType', transporterData.productTypeDefault);\n      }\n      if (RA.isNilOrEmpty(docSalesData.transporterDeliveryTime)) {\n        docSalesModel.setData('transporterDeliveryTime', transporterData.defaultDeliveryTime);\n      }\n      if (RA.isNilOrEmpty(docSalesData.packages)) {\n        docSalesModel.setData('packages', 1);\n      }\n      if (RA.isNilOrEmpty(docSalesData.person) && RA.isNotNilOrEmpty(docSalesData.transporterContactPerson)) {\n        docSalesModel.setData('person', docSalesData.transporterContactPerson);\n      }\n    }\n    storeCustomSenderDetails(model) {\n      if (!model) {\n        return;\n      }\n      const hasCustomSenderAddress = model?._data?.hasCustomSenderAddress;\n      if (hasCustomSenderAddress) {\n        this.customSenderDetailsToggle = true;\n        this.hadCustomSenderDetails = true;\n        this.customSenderDetails = {\n          name: model?._data?.transporterSenderName,\n          telephone: model?._data?.transporterSenderTelephone,\n          address: model?._data?.transporterSenderAddress,\n          personId: ''\n        };\n      }\n    }\n    get disallowChangeSenderData() {\n      return this.args.isReadonly;\n    }\n    loadCustomSenderDetails(model) {\n      if (!this.hadCustomSenderDetails || !model) {\n        return;\n      }\n      this.setTransporterSender(this.customSenderDetails);\n    }\n    setTransporterSender(transporterData = {}) {\n      const docSalesModel = this.args.model;\n      if (!docSalesModel) {\n        return;\n      }\n      if (transporterData?.name) {\n        docSalesModel.setData('transporterSenderName', transporterData?.name);\n      }\n      if (transporterData?.telephone) {\n        docSalesModel.setData('transporterSenderTelephone', transporterData?.telephone);\n      }\n      if (transporterData?.address) {\n        docSalesModel.setData('transporterSenderAddress', transporterData?.address);\n      }\n      if (transporterData?.personId) {\n        docSalesModel.setData('transporterDefaultPickupLocationPersonId', transporterData?.personId);\n      }\n    }\n    toggleHasCustomSenderAddress(value) {\n      this.args.model.set('_data.hasCustomSenderAddress', value);\n      this.args.model.set('_data.transporterSenderPostNumber', '');\n      if (value) {\n        this.previousSenderPersonId = this.args.model._data.transporterDefaultPickupLocationPersonId;\n        this.args.model.set('_data.transporterDefaultPickupLocationPersonId', '');\n      } else {\n        this.args.model.set('_data.transporterDefaultPickupLocationPersonId', this.previousSenderPersonId);\n      }\n      this.loadCustomSenderDetails(this.args?.model);\n    }\n    updateTransporterAccount(transporterAccountModel) {\n      const transporterAccountNumber = transporterAccountModel?._data?.account || '';\n      if (!transporterAccountNumber) {\n        return;\n      }\n      this.args.model.setData('transporterAccount', transporterAccountNumber);\n      this.args.model.setData('transporterPackageTemperature', transporterAccountNumber);\n    }\n    updateSenderDetails(sender) {\n      this.selectedSenderName = sender?.name;\n      this.setTransporterSender(sender);\n    }\n    refreshModel(model) {\n      this.transporterModel = model;\n    }\n    *setupTransporterTask() {\n      yield this.fetchTransporterTask.perform();\n      this?.transporterModel?.setTransporterExtensionsDefaults?.();\n    }\n    *fetchTransporterTask() {\n      this.transporterModel = yield this.crud.findTask.perform({\n        adapterName: this.adapterNameContacts,\n        appendPath: this.transporterKey\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"transporterKey\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedSenderName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"customSenderDetailsToggle\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hadCustomSenderDetails\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"customSenderDetails\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"previousSenderPersonId\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setTransporterDefaults\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setTransporterDefaults\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"storeCustomSenderDetails\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"storeCustomSenderDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadCustomSenderDetails\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"loadCustomSenderDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTransporterSender\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"setTransporterSender\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleHasCustomSenderAddress\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleHasCustomSenderAddress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateTransporterAccount\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"updateTransporterAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateSenderDetails\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"updateSenderDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshModel\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupTransporterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTransporterTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTransporterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransporterTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/t-cat-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lEwCpu/1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onLoadContactPerson\\\",\\\"@errors\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@title\\\"],[[23,1,[]],true,true,\\\"recipient\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"transporters/contact\\\",[],[[\\\"@formInitData\\\",\\\"@enableSelectPickupMethod\\\",\\\"@isReadonly\\\",\\\"@readonly\\\",\\\"@model\\\",\\\"@onLoadContactPerson\\\"],[[23,1,[]],false,[23,2,[]],[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-sub-group\\\",[],[[\\\"@formInitData\\\",\\\"@isAccordian\\\",\\\"@isAccordianExpanded\\\",\\\"@title\\\"],[[23,1,[]],true,true,\\\"transporter settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"delivery time\\\",[23,5,[]],\\\"transporterDeliveryTime\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-delivery-time\\\"]],[23,3,[\\\"_data\\\",\\\"transporterPreferredArrivalTimePeriod\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"arrival date\\\",[23,5,[]],\\\"transporterArrivalDateZ\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.transporterArrivalDateZ\\\",[23,3,[]],[23,3,[\\\"_data\\\",\\\"transporterArrivalDateZ\\\"]],[23,2,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"pickup locations\\\",[23,5,[]],\\\"pickupLocations\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"transporters/sender-list-btn\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onRefreshModel\\\",\\\"@onSelect\\\",\\\"@defaultPersonId\\\",\\\"@listSelectorValueKey\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[23,3,[]],[23,0,[\\\"refreshModel\\\"]],[23,3,[\\\"setTransporterData\\\"]],[23,3,[\\\"_data\\\",\\\"transporterDefaultPickupLocationPersonId\\\"]],\\\"_data.transporterDefaultPickupLocationPersonId\\\"]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"sender name\\\",[23,5,[]],\\\"transporterSenderName\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,3,[\\\"_data\\\",\\\"transporterSenderName\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"sender telephone\\\",[23,5,[]],\\\"transporterSenderTelephone\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,3,[\\\"_data\\\",\\\"transporterSenderTelephone\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"sender_address\\\",[23,5,[]],\\\"transporterSenderAddress\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,3,[\\\"_data\\\",\\\"transporterSenderAddress\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"transporter account\\\",[23,5,[]],\\\"transporterAccount\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,0,[\\\"disallowChangeSenderData\\\"]],\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],[23,0,[\\\"updateTransporterAccount\\\"]],true,[23,3,[\\\"_data\\\",\\\"transporterAccount\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"package size\\\",[23,5,[]],\\\"transporterPackageSize\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,false,[23,0,[\\\"disallowChangeSenderData\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-package-size\\\"]],[23,3,[\\\"_data\\\",\\\"transporterPackageSize\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"package type\\\",[23,5,[]],\\\"transporterPackageType\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"disallowChangeSenderData\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-product-type\\\"]],[23,3,[\\\"_data\\\",\\\"transporterPackageType\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"transporter notes\\\",[23,5,[]],\\\"transporterNotes\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@maxlength\\\",\\\"@value\\\"],[[23,0,[\\\"disallowChangeSenderData\\\"]],2,97,[23,3,[\\\"_data\\\",\\\"transporterNotes\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"packages\\\",[23,5,[]],\\\"packages\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,2,[]],[23,3,[\\\"_data\\\",\\\"packages\\\"]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[[23,1,[]],\\\"waybill\\\",[23,5,[]],\\\"waybill\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"transporters/waybill-display\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,2,[]],[23,3,[]],[23,6,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/t-cat-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/t-cat-sender-details/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 TransportersTCatSenderDetailsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.computed('args.model._data.details.[]'), _dec3 = Ember.computed('args.model._data.details.[]'), _dec4 = Ember.computed('args.model._data.details.[]'), _dec5 = Ember.computed('args.model._data.details.[]'), _dec6 = Ember.computed('args.model._data.details.[]'), _dec7 = Ember.computed('args.model._data.details.[]'), _class = class TransportersTCatSenderDetailsComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    get telephoneDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('telephone');\n    }\n    get addressDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('address');\n    }\n    get transporterAccountDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('transporterAccount');\n    }\n    get transporterDeliveryTimeDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('deliveryTime');\n    }\n    get transporterPackageSizeDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('packageSize');\n    }\n    get transporterPackageTypeDetailModelProxy() {\n      if (!this.args.model?.getDetailModelBySubType) {\n        return null;\n      }\n      return this.args.model.getDetailModelBySubType('packageType');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"telephoneDetailModelProxy\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"telephoneDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addressDetailModelProxy\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"addressDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterAccountDetailModelProxy\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterAccountDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterDeliveryTimeDetailModelProxy\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterDeliveryTimeDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterPackageSizeDetailModelProxy\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterPackageSizeDetailModelProxy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transporterPackageTypeDetailModelProxy\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterPackageTypeDetailModelProxy\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/t-cat-sender-details/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eArOakrU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\"],\\\"statements\\\":[[2,\\\" Telephone \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"telephoneDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],true,true,[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],true,[23,0,[\\\"telephoneDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Address \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"addressDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],true,true,[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],true,[23,0,[\\\"addressDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Account \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"transporterAccountDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],[23,0,[\\\"transporterAccountDetailModelProxy\\\"]],\\\"_data.value\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Delivery Time \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"transporterDeliveryTimeDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-delivery-time\\\"]],[23,0,[\\\"transporterDeliveryTimeDetailModelProxy\\\"]],\\\"_data.value\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Package Size \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"transporterPackageSizeDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--horizontal\\\",false,false,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-package-size\\\"]],[23,0,[\\\"transporterPackageSizeDetailModelProxy\\\"]],\\\"_data.value\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[2,\\\" Transporter Package Type \\\"],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],[23,0,[\\\"transporterPackageTypeDetailModelProxy\\\",\\\"_data\\\",\\\"customLabel\\\"]],[23,0,[\\\"errors\\\"]],\\\"persons.details.value\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-product-type\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"transporterPackageTypeDetailModelProxy\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/t-cat-sender-details/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/t-cat-waybill/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA, _nventor, _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, _dec6, _dec7, _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 TransportersTCatWaybillComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('dispatch'), _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class TransportersTCatWaybillComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"printType\", _descriptor6, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor7, this);\n      _defineProperty(this, \"adapterNameContacts\", 'contacts');\n      _defineProperty(this, \"transporterExtension\", 't-cat');\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/waybill-print-type']);\n      this.fetchTransporterTask.perform();\n    }\n    get transporterAccountList() {\n      const allOption = _nventor.default.createModel(_model.default, {\n        label: 'all',\n        value: 'all'\n      });\n      return R.pipe(R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-t-cat-lists-thermosphere']), R.concat([allOption]))(this);\n    }\n    get tCatDocs() {\n      const tCatKey = this?.dispatchService?.tCatModel?._data?._key;\n      return R.pipe(R.pathOr([], ['args', 'results']), R.filter(R.pathEq(['_data', 'transporterKey'], tCatKey)))(this);\n    }\n    get tCatDocsProxy() {\n      return R.map(model => ({\n        model\n      }))(this.tCatDocs);\n    }\n    get tCatDocsDisplayList() {\n      const tCatKey = this?.dispatchService?.tCatModel?._data?._key;\n      return R.filter(R.anyPass([R.pathEq(['args', 'dispatchedResults', 'model', '_data', 'transporterExtension'], this.transporterExtension), R.pathEq(['_data', 'transporterKey'], tCatKey)]))(this);\n    }\n    *generateAndDownloadWaybillTask() {\n      return yield this.dispatchService.tCatGenerateAndDownloadWaybillTask.perform({\n        component: this,\n        documents: this.tCatDocs,\n        printType: this.printType\n      });\n    }\n    *fetchTransporterTask() {\n      this.transporterModel = yield this.dispatchService.tCatGetModel.perform();\n\n      // not exists in transporterModel anymore, use settings\n      const defaultTCatTransporterWaybillPrintType = this.settings.getProp('defaultTCatTransporterWaybillPrintType');\n      this.printType = defaultTCatTransporterWaybillPrintType;\n      if (RA.isNilOrEmpty(this.printType)) {\n        this.printType = 'twoPerPage';\n      }\n      if (this?.args?.onSetPrintType) {\n        this.args.onSetPrintType(this.printType);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"printType\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"generateAndDownloadWaybillTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"generateAndDownloadWaybillTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTransporterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransporterTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/t-cat-waybill/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fAk2fgge\",\n    \"block\": \"{\\\"symbols\\\":[\\\"error\\\",\\\"@errors\\\",\\\"@subTabFilters\\\",\\\"@onSetPrintType\\\",\\\"@allowProcesses\\\",\\\"@allResults\\\",\\\"@autoFetchProduct\\\",\\\"@dispatchedResults\\\",\\\"@dispatchProcess\\\",\\\"@filteredResults\\\",\\\"@filters\\\",\\\"@hasPrices\\\",\\\"@hasGroups\\\",\\\"@hasPrintBtn\\\",\\\"@isDispatched\\\",\\\"@isDispatchedBeforeToday\\\",\\\"@isDispatchedProcessModel\\\",\\\"@isPrinting\\\",\\\"@onFetchUnpaginatedData\\\",\\\"@period\\\",\\\"@results\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"msgs/error-msg\\\",[],[[\\\"@error\\\",\\\"@translate\\\"],[[23,1,[\\\"Message\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"transporter account\\\",[23,2,[]],\\\"transporterAccount\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@value\\\",\\\"@translate\\\"],[true,[23,0,[\\\"transporterAccountList\\\"]],\\\"_data.label\\\",\\\"_data.value\\\",[23,3,[\\\"_data\\\",\\\"transporterAccount\\\"]],true]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"t-cat print type\\\",[23,2,[]],\\\"printType\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,true,[22,\\\"isDisabled\\\"],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-waybill-print-type\\\"]],[23,0,[\\\"printType\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"dispatch/panels-display/display-list\\\",[],[[\\\"@errors\\\",\\\"@allowProcesses\\\",\\\"@allResults\\\",\\\"@autoFetchProduct\\\",\\\"@dispatchedResults\\\",\\\"@dispatchProcess\\\",\\\"@filteredResults\\\",\\\"@filters\\\",\\\"@hasPrices\\\",\\\"@hasGroups\\\",\\\"@hasPrintBtn\\\",\\\"@isDispatched\\\",\\\"@isDispatchedBeforeToday\\\",\\\"@isDispatchedProcessModel\\\",\\\"@isPrinting\\\",\\\"@onFetchUnpaginatedData\\\",\\\"@period\\\",\\\"@results\\\",\\\"@tab\\\"],[[23,2,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[23,9,[]],[23,10,[]],[23,11,[]],[23,12,[]],[23,13,[]],[23,14,[]],[23,15,[]],[23,16,[]],[23,17,[]],[23,18,[]],[23,19,[]],[23,20,[]],[23,21,[]],[23,22,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/t-cat-waybill/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/t-cat-waybills-settings/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 TransportersTCatWaybillsSettingsComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('dispatch'), _dec6 = Ember._tracked, _dec7 = Ember._action, _class = class TransportersTCatWaybillsSettingsComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"server\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dispatchService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"transporterModel\", _descriptor6, this);\n      _defineProperty(this, \"adapterNameContacts\", 'contacts');\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/waybill-print-type']);\n      const defaultTCatTransporterWaybillPrintType = this.settings.getProp('defaultTCatTransporterWaybillPrintType');\n      const model = this.args.transporterExtensionOptionsModel;\n      if (typeof model.get('enabled') !== 'boolean') {\n        model.set('enabled', true);\n      }\n      model.set('printType', defaultTCatTransporterWaybillPrintType);\n      model.set('printComponent', 'dispatch/print-options/t-cat-download');\n    }\n    reprintWaybillFiles() {\n      const printOptions = this.args.printOptionsModel;\n      if (!printOptions?.isReprintAllowed || !printOptions.carrierDocumentCount(this.args.transporterExtension)) {\n        return;\n      }\n      const {\n        printBatchRequest\n      } = printOptions.readPrintBatchRequest();\n      this.dispatchService.redownloadTCatWaybillFilesTask.perform({\n        filters: printBatchRequest?.filters || {}\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dispatchService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"transporterModel\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"reprintWaybillFiles\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"reprintWaybillFiles\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/t-cat-waybills-settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GBH3tSi1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@formInitData\\\",\\\"@printOptionsModel\\\",\\\"@transporterExtension\\\",\\\"@errors\\\",\\\"@transporterExtensionOptionsModel\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@description\\\"],[\\\"reprint\\\",\\\"redownload\\\",[23,1,[]],[28,\\\"unless\\\",[[23,2,[\\\"isReprintAllowed\\\"]],\\\"reprint is only available in the printed tab\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"reprint\\\",\\\"fas fa-download\\\",[28,\\\"or\\\",[[28,\\\"not\\\",[[23,2,[\\\"isReprintAllowed\\\"]]],null],[28,\\\"not\\\",[[28,\\\"get\\\",[[23,2,[\\\"printBadgeByTransporterExtension\\\"]],[23,3,[]]],null]],null]],null],[28,\\\"or\\\",[[23,0,[\\\"dispatchService\\\",\\\"redownloadTCatWaybillFilesTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"dispatchService\\\",\\\"tCatDownloadWaybill\\\",\\\"isRunning\\\"]]],null],[23,0,[\\\"reprintWaybillFiles\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"t-cat print type\\\",[23,4,[]],\\\"printType\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@translate\\\",\\\"@list\\\",\\\"@value\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-waybill-print-type\\\"]],[23,5,[\\\"printType\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/t-cat-waybills-settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/t-cat/pickup-location/editor-extension/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 TransportersTCatPickupLocationEditorExtensionComponent = _exports.default = (_dec = Ember.inject.service, _class = class TransportersTCatPickupLocationEditorExtensionComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time']);\n    }\n    get list() {\n      if (this.args.model._data.subType === 'deliveryTime') {\n        return this.crud.lists['extensions-apps-tw-t-cat-lists-delivery-time'];\n      }\n      if (this.args.model._data.subType === 'transporterAccount') {\n        return this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere'];\n      }\n      if (this.args.model._data.subType === 'packageSize') {\n        return this.crud.lists['extensions-apps-tw-t-cat-lists-package-size'];\n      }\n      if (this.args.model._data.subType === 'packageType') {\n        return this.crud.lists['extensions-apps-tw-t-cat-lists-product-type'];\n      }\n      return [];\n    }\n    get isDropdown() {\n      const subType = this.args?.model?._data?.subType || '';\n      const dropdownSubTypes = ['deliveryTime', 'transporterAccount', 'packageSize', 'packageType'];\n      const isDropdown = dropdownSubTypes.includes(subType);\n      if (isDropdown) {\n        return true;\n      }\n      return false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/transporters/t-cat/pickup-location/editor-extension/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"iXw/Uql5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@required\\\",\\\"@isRequired\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,1,[\\\"label\\\"]],true,true,[23,1,[\\\"_data\\\",\\\"subType\\\"]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isDropdown\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,2,[]],[23,0,[\\\"list\\\"]],[23,1,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"required\\\"],null],true,[23,1,[\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/t-cat/pickup-location/editor-extension/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/t-cat/pickup/editor-extension/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 TransportersTCatPickupEditorExtensionComponent = _exports.default = (_dec = Ember.inject.service, _class = class TransportersTCatPickupEditorExtensionComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      this.crud.addLists(this, ['extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time']);\n    }\n    get transporterDeliveryTime() {\n      return this.args?.personDetails?.deliveryTime;\n    }\n    get transporterAccountNumber() {\n      return this.args?.personDetails?.transporterAccount;\n    }\n    get transporterPackageSize() {\n      return this.args?.personDetails?.packageSize;\n    }\n    get transporterPackageType() {\n      return this.args?.personDetails?.packageType;\n    }\n    get transporterNotes() {\n      return this.args?.personDetails?.note;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/transporters/t-cat/pickup/editor-extension/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"L90G0zE2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"delivery time\\\",[23,1,[]],\\\"transporterDeliveryTime\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-delivery-time\\\"]],[23,0,[\\\"transporterDeliveryTime\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"transporter account\\\",[23,1,[]],\\\"transporterAccountNumber\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@translate\\\",\\\"@value\\\"],[true,[23,2,[]],\\\"_data.name\\\",\\\"_data.account\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-thermosphere\\\"]],[23,0,[\\\"updateTransporterAccount\\\"]],true,[23,0,[\\\"transporterAccountNumber\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"package size\\\",[23,1,[]],\\\"transporterPackageSize\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,false,[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-package-size\\\"]],[23,0,[\\\"transporterPackageSize\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"package type\\\",[23,1,[]],\\\"transporterPackageType\\\",\\\"extensions_tw_tCat\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@value\\\"],[true,true,[23,2,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"extensions-apps-tw-t-cat-lists-product-type\\\"]],[23,0,[\\\"transporterPackageType\\\",\\\"_data\\\",\\\"value\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/t-cat/pickup/editor-extension/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uL+P8KTo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@allowCreate\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,0,[\\\"constants\\\",\\\"transporterExtensions\\\",\\\"tCat\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"extensions/apps/tw/t-cat/create-contact\\\",[],[[\\\"@isReadonly\\\",\\\"@disabled\\\",\\\"@allowCreate\\\",\\\"@disallowDeselect\\\",\\\"@fetchTransporter\\\",\\\"@label\\\",\\\"@model\\\",\\\"@transporterModel\\\"],[[23,1,[]],[23,1,[]],[23,2,[]],true,false,\\\"update t-cat contact\\\",[23,3,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,0,[\\\"constants\\\",\\\"transporterExtensions\\\",\\\"hct\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"extensions/apps/tw/hct/create-contact\\\",[],[[\\\"@disabled\\\",\\\"@isReadonly\\\",\\\"@allowCreate\\\",\\\"@label\\\",\\\"@model\\\",\\\"@disallowDeselect\\\"],[[23,1,[]],[23,1,[]],[23,2,[]],\\\"update hct contact\\\",[23,3,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,0,[\\\"constants\\\",\\\"transporterExtensions\\\",\\\"sevenEleven\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"extensions/apps/tw/seven-eleven/create-contact\\\",[],[[\\\"@isReadonly\\\",\\\"@disabled\\\",\\\"@allowCreate\\\",\\\"@label\\\",\\\"@model\\\",\\\"@transporterModel\\\",\\\"@disallowDeselect\\\"],[[23,1,[]],[23,1,[]],[23,2,[]],\\\"update seven-eleven contact\\\",[23,3,[]],[23,3,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[1,[28,\\\"tt\\\",[\\\"no transporter selected\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/transporter-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class TransportersTransporterEditorComponent extends _component.default {}\n  _exports.default = TransportersTransporterEditorComponent;\n});","define(\"client/pods/components/transporters/transporter-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cQaXBLW5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[14,1]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/transporter-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/waybill-display/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency-decorators\"], function (_exports, _component, R, RA, _emberConcurrencyDecorators) {\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 TransportersWaybillDisplayComponent = _exports.default = (_dec = Ember.inject.service('constants'), _dec2 = Ember.inject.service('transporter'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _class = class TransportersWaybillDisplayComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"transporterWaybillRecords\", _descriptor4, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      if (!this.args.model?._data?.transporterExtension) {\n        return;\n      }\n      this.transporterWaybillRecords = yield this.transporterService.fetchShippingWaybills.perform(this.args.model);\n    }\n    get message() {\n      const model = this.args.model;\n      if (!model) {\n        return '';\n      }\n      const transporterWaybillRecord = this.transporterWaybillRecords[0];\n      const waybillError = transporterWaybillRecord?._data?.errorMessage || transporterWaybillRecord?.errorMessage;\n      if (waybillError && !model.waybill) {\n        return waybillError;\n      }\n      const isPayuniSevenEleven = model.transporterExtension === this.constantsService.transporterExtensions.payuniSevenEleven;\n      if (!isPayuniSevenEleven) {\n        return '';\n      }\n      const hasUnSuccessfullyWaybill = R.pathEq(['transporterWaybillRecords', 0, '_data', 'paymentNumber'], model._data.waybill)(model._data);\n      if (!hasUnSuccessfullyWaybill) {\n        return '';\n      }\n      return this.intl.t('please press print again to see changes');\n    }\n    get errorDetails() {\n      const transporterWaybillRecord = this.transporterWaybillRecords[0];\n      const recordData = transporterWaybillRecord?._data || transporterWaybillRecord || {};\n      const responseData = recordData.response?.data || recordData.response || {};\n      const errors = responseData.errors || responseData.data?.errors || [];\n      return R.filter(errorDetail => RA.isNotNilOrEmpty(errorDetail?.message))(RA.ensureArray(errors));\n    }\n    get shippingWaybills() {\n      const modelData = this.args.model?._data || {};\n      const currentWaybill = modelData.waybill;\n      if (!currentWaybill) {\n        return [];\n      }\n      return R.pipe(R.pathOr([], ['transporterWaybillRecords']), R.reduce((acc, transporterWaybillRecord) => {\n        const isLatestWaybill = transporterWaybillRecord.waybill === currentWaybill;\n        if (isLatestWaybill) {\n          acc.push(transporterWaybillRecord);\n        } else if (acc.length) {\n          const printCount = acc[0].printCount;\n          const isOnTheSamePrintCountGroup = transporterWaybillRecord.printCount === printCount;\n          if (isOnTheSamePrintCountGroup) {\n            acc.push(transporterWaybillRecord);\n          }\n        }\n        return acc;\n      }, []))(modelData);\n    }\n    get allowRemoveWaybill() {\n      const model = this.args.model;\n      // Only the 7-ELEVEN and PayUni editors offer it, in view and edit mode; not lists or picking lists.\n      if (!this.args.canRemoveWaybill || this.isPickingList) {\n        return false;\n      }\n      const modelData = model?._data || {};\n      const waybill = R.trim(String(modelData.waybill || ''));\n      if (!waybill || modelData.isDispatched || modelData.isVoid) {\n        return false;\n      }\n      const transporterExtensions = this.constantsService.transporterExtensions;\n      const removableWaybillTransporters = [transporterExtensions.sevenEleven, transporterExtensions.payuniSevenEleven];\n      if (!R.includes(modelData.transporterExtension, removableWaybillTransporters)) {\n        return false;\n      }\n\n      // Removing only cancels shipping waybill records, so a waybill the user typed in\n      // (no active record carries it) is not removable here.\n      const isIssuedByTransporter = R.any(transporterWaybillRecord => transporterWaybillRecord?._data?.waybill === waybill)(this.transporterWaybillRecords || []);\n      return isIssuedByTransporter;\n    }\n    *removeWaybillTask({\n      preOnAfter\n    } = {}) {\n      const model = this.args.model;\n      let isRemoved = false;\n\n      // While saving, the broadcast of the updated document does not set an open form out of date.\n      model.startSaving?.();\n      try {\n        const response = yield this.transporterService.removeWaybillTask.perform(model);\n        isRemoved = Boolean(response) && response.success !== false;\n        if (isRemoved) {\n          this.clearRemovedWaybill(model, response.data);\n        }\n      } finally {\n        model.stopSaving?.();\n      }\n      if (!isRemoved) {\n        return;\n      }\n      if (preOnAfter) {\n        preOnAfter();\n      }\n      yield this.setupTask.perform();\n    }\n\n    /**\n     * Bring the model in line with the document after its waybill was removed.\n     * In edit mode the model is the form's copy, which the broadcast does not update: without this the\n     * waybill would stay on screen, saving would write it back, and the old _rev would fail the save.\n     * @param {Object} model - the document shown\n     * @param {Object[]} updatedDocuments - the documents the API returned after the removal\n     */\n    clearRemovedWaybill(model, updatedDocuments = []) {\n      model.setData('waybill', '');\n      model.setData('isPrinted', false);\n      model.setData('transporterWaybillRecord', '');\n      const documentKey = model?._data?._key;\n      const updatedDocument = R.find(document => document?._key === documentKey)(updatedDocuments || []);\n      if (updatedDocument?._rev) {\n        model.setData('_rev', updatedDocument._rev);\n      }\n    }\n    get isPickingList() {\n      if (this.args?.isPickingList === true) {\n        return true;\n      }\n      let tab = R.pathOr('', ['args', 'tab', 'value'])(this);\n      return R.includes('pickingList')(tab);\n    }\n\n    /**\n     * The latest waybill's declared value adjustment, shown under the waybill number so the merchant\n     * sees it without opening the popup. The records are newest first.\n     * @return {string} the translated message, or empty when the declared value was sent unchanged\n     */\n    get latestDeclaredAmountAdjustmentMessage() {\n      const latestTransporterWaybillRecord = this.transporterWaybillRecords?.[0];\n      return this.transporterService.getDeclaredAmountAdjustmentMessage(latestTransporterWaybillRecord);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"transporterWaybillRecords\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeWaybillTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"removeWaybillTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/waybill-display/list/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let TransportersWaybillDisplayListComponent = _exports.default = (_dec = Ember.computed('args.model.synced', 'args.shippingWaybill.[]'), _class = class TransportersWaybillDisplayListComponent extends _component.default {\n    get transporterWaybillRecords() {\n      const shippingWaybill = this.args.shippingWaybill;\n      const hasShippingWaybills = RA.isNotNilOrEmpty(shippingWaybill);\n      if (hasShippingWaybills) {\n        return RA.ensureArray(shippingWaybill);\n      }\n      return this.args.model?._data?.transporterWaybillRecords || [];\n    }\n    get isPickingList() {\n      let tab = R.pathOr('', ['args', 'tab', 'value'])(this);\n      return R.includes('pickingList')(tab);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"transporterWaybillRecords\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"transporterWaybillRecords\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/waybill-display/list/item/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, RA) {\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 TransportersWaybillDisplayListItemComponent = _exports.default = (_dec = Ember.inject.service('transporter'), _dec2 = Ember.inject.service('constants'), _dec3 = Ember._tracked, _class = class TransportersWaybillDisplayListItemComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      // @TODO: to implement later, this should fetch all statuses per waybill\n      _initializerDefineProperty(this, \"transporterService\", _descriptor, this);\n      _initializerDefineProperty(this, \"constantsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"waybillStatus\", _descriptor3, this);\n      this.fetchWaybillStatusTask.perform();\n    }\n    get isActive() {\n      const waybillRecord = this.args.transporterWaybillRecord?._data || this.args.transporterWaybillRecord || {};\n      const hasNoWaybill = RA.isNilOrEmpty(waybillRecord.waybill);\n      const hasError = RA.isNotNilOrEmpty(waybillRecord.errorMessage);\n      if (hasNoWaybill && hasError) {\n        return false;\n      }\n      const isCanceled = this.args?.shippingWaybill?.isCancel === true;\n      const isDeleted = this.args?.shippingWaybill?.isDeleted === true;\n      if (isCanceled || isDeleted) {\n        return false;\n      }\n      return true;\n    }\n    get icon() {\n      const transporterWaybillData = this.args.transporterWaybillRecord?._data || {};\n      if (transporterWaybillData.isDeleted || transporterWaybillData.isCanceled) {\n        return 'fas fa-times';\n      }\n      return 'fas fa-check-circle';\n    }\n    get iconClassNames() {\n      const transporterWaybillData = this.args.transporterWaybillRecord?._data || {};\n      if (transporterWaybillData.isDeleted || transporterWaybillData.isCanceled) {\n        return 'has-text-danger';\n      }\n      return 'has-text-success';\n    }\n\n    /**\n     * Loads shipping waybill statuses for this list item.\n     *\n     * Restartable so overlapping Add/Save refreshes cancel the older fetch; only\n     * the latest result is written to `waybillStatus` and shown in the table.\n     *\n     * @return {Generator} Task generator. Side effects: sets `this.waybillStatus`.\n     */\n    *fetchWaybillStatusTask() {\n      this.waybillStatus = yield this.transporterService.fetchShippingWaybillStatus.perform(this.args.transporterWaybillRecord);\n    }\n\n    /**\n     * @return {string} this waybill's declared value adjustment message, or empty when it was sent unchanged\n     */\n    get declaredAmountAdjustmentMessage() {\n      return this.transporterService.getDeclaredAmountAdjustmentMessage(this.args.transporterWaybillRecord);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constantsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"waybillStatus\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchWaybillStatusTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchWaybillStatusTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/waybill-display/list/item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"uCzcDFwg\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"shippingWaybillStatus\\\",\\\"@isReadonly\\\",\\\"@transporterWaybillRecord\\\",\\\"@model\\\",\\\"@onFetchOverviewTask\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"waybill\\\",false,true,[28,\\\"if\\\",[[23,11,[]],[23,11,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"transporters\\\",[23,10,[]],[23,9,[]],[23,8,[]],[23,7,[]]]]]],null],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--column-2\\\"]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\",\\\"@translate\\\",\\\"@icon\\\",\\\"@iconClassNames\\\"],[[23,9,[]],\\\"waybills_group\\\",[23,1,[]],[23,4,[\\\"_data\\\",\\\"waybill\\\"]],false,[23,0,[\\\"icon\\\"]],[23,0,[\\\"iconClassNames\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"has-text-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"declaredAmountAdjustmentMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\",\\\"@translate\\\"],[[23,0,[\\\"declaredAmountAdjustmentMessage\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"isPickingList\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"fetchWaybillStatusTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"waybillStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"date\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"                  \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\n                  \\\"],[9],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"waybillStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[0,\\\"\\\\n                    \\\"],[9],[0,\\\"\\\\n                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n                      \\\"],[1,[23,2,[\\\"_data\\\",\\\"originalMessage\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isAttentionRequired\\\"]]],null,{\\\"statements\\\":[[0,\\\"                        - \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[1,[28,\\\"tt\\\",[\\\"shippingStatus_attentionRequired\\\"],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"                    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"isCustomStatus\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,0,[\\\"constantsService\\\",\\\"transporterExtensions\\\",\\\"payuniSevenEleven\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[5,\\\"transporters/waybill-editor\\\",[],[[\\\"@isReadonly\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@transporterWaybillRecordModel\\\",\\\"@resourceId\\\",\\\"@onFetchOverviewTask\\\",\\\"@onAfterSaveStatuses\\\",\\\"@label\\\"],[[23,3,[]],true,[23,2,[]],[23,4,[]],[23,5,[\\\"_data\\\",\\\"_id\\\"]],[23,6,[]],[28,\\\"perform\\\",[[23,0,[\\\"fetchWaybillStatusTask\\\"]]],null],\\\"edit status\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[9],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"transporterExtension\\\"]],[23,0,[\\\"constantsService\\\",\\\"transporterExtensions\\\",\\\"payuniSevenEleven\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"transporters/waybill-editor\\\",[],[[\\\"@isReadonly\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@transporterWaybillRecordModel\\\",\\\"@resourceId\\\",\\\"@onFetchOverviewTask\\\",\\\"@onAfterSaveStatuses\\\",\\\"@label\\\"],[[23,3,[]],false,true,[23,4,[]],[23,5,[\\\"_data\\\",\\\"_id\\\"]],[23,6,[]],[28,\\\"perform\\\",[[23,0,[\\\"fetchWaybillStatusTask\\\"]]],null],\\\"add status\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/waybill-display/list/item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/waybill-display/list/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"w+NqtqT1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"transporterWaybillRecord\\\",\\\"@model\\\",\\\"@onFetchOverviewTask\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"transporterWaybillRecords\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"transporters/waybill-display/list/item\\\",[],[[\\\"@model\\\",\\\"@transporterWaybillRecord\\\",\\\"@onFetchOverviewTask\\\",\\\"@isReadonly\\\"],[[23,2,[]],[23,1,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/waybill-display/list/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/waybill-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"UCjnLPFU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"errorDetail\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@onFetchOverviewTask\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"transporterExtension\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"waybill\\\"]],[23,0,[\\\"message\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"dispatch-item__line \\\",[28,\\\"if\\\",[[23,0,[\\\"allowRemoveWaybill\\\"]],\\\"waybill-display__line--removable\\\"],null]]]],[8],[0,\\\"\\\\n        \\\"],[5,\\\"helpers/info-popup\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"message\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@badge\\\"],[false,[23,3,[\\\"_data\\\",\\\"waybill\\\"]],[28,\\\"count\\\",[[23,0,[\\\"transporterWaybillRecords\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[23,3,[\\\"latestWaybillStatusMessage\\\"]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"latestDeclaredAmountAdjustmentMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\",\\\"@translate\\\"],[[23,0,[\\\"latestDeclaredAmountAdjustmentMessage\\\"]],false]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"transporterWaybillRecords\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"helpers/info-popup-content\\\",[],[[\\\"@isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"errorDetails\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"errorDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__message\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"label\\\"]]],null],false],[0,\\\":\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"message\\\"]]],null],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"message\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"dispatch-print-batch-documents__message\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"message\\\"]]],null],false],[0,\\\"\\\\n                \\\"],[9],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[5,\\\"transporters/waybill-display/list\\\",[],[[\\\"@isReadonly\\\",\\\"@shippingWaybill\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isPickingList\\\",\\\"@onFetchOverviewTask\\\"],[[23,4,[]],[23,0,[\\\"transporterWaybillRecords\\\"]],[23,3,[]],[23,5,[]],[23,0,[\\\"isPickingList\\\"]],[23,6,[]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowRemoveWaybill\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@typeToDelete\\\",\\\"@label\\\",\\\"@tooltipLabel\\\",\\\"@title\\\",\\\"@message\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[true,\\\"\\\",\\\"remove waybill\\\",\\\"remove waybill\\\",\\\"remove waybill warning\\\",[23,0,[\\\"removeWaybillTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"removeWaybillTask\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"a\\\",true],[10,\\\"class\\\",\\\"is-active\\\"],[10,\\\"href\\\",\\\"#\\\"],[10,\\\"aria-current\\\",\\\"page\\\"],[8],[0,\\\"\\\\n    \\\"],[1,[23,3,[\\\"_data\\\",\\\"waybill\\\"]],false],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/waybill-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/transporters/waybill-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, RA, R) {\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;\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 TransportersWaybillEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _class = class TransportersWaybillEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'transporter/waybill-record/shipping-waybill-status');\n      this.crud.addLists(this, ['transporter/waybill-record/lists/shipping-waybill-status-type']);\n    }\n    setupShippingWaybillStatusDirty() {\n      let dirty;\n      if (this.args.isEditing) {\n        dirty = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model: this.args.model\n        });\n      } else {\n        dirty = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          data: {}\n        });\n      }\n      const transporterWaybillRecordModel = this.args.transporterWaybillRecordModel;\n      dirty.setData('resource', transporterWaybillRecordModel._data.resource);\n      dirty.setData('resourceKey', transporterWaybillRecordModel._data.resourceKey);\n      dirty.setData('resourceId', this.args.resourceId);\n      this.dirty = dirty;\n      const selectedShippingWaybillStatusType = R.pipe(R.pathOr([], ['crud', 'lists', 'transporter-waybill-record-lists-shipping-waybill-status-type']), R.find(R.pathEq(['_data', 'value'], dirty.getData('status'))))(this);\n      if (RA.isNotNilOrEmpty(selectedShippingWaybillStatusType)) {\n        this.setShippingWaybillStatusParams(selectedShippingWaybillStatusType);\n      }\n    }\n    setShippingWaybillStatusParams(selectedShippingWaybillStatusType) {\n      const dirty = this.dirty;\n      const transporterWaybillRecordModel = this.args.transporterWaybillRecordModel || {};\n      dirty.setData('isCustomStatus', true);\n      dirty.setData('transporterOrderId', transporterWaybillRecordModel._data.transporterOrderId || '');\n      dirty.setData('waybill', transporterWaybillRecordModel._data.waybill || '');\n      dirty.setData('provider', transporterWaybillRecordModel._data.provider || '');\n      dirty.setData('paymentNumber', transporterWaybillRecordModel._data.paymentNumber || '');\n      dirty.setData('milestoneCode', selectedShippingWaybillStatusType.getData('milestoneCode'));\n      if (!this.args.isEditing) {\n        dirty.setData('statusMessage', selectedShippingWaybillStatusType.getData('statusMessage'));\n        dirty.setData('message', selectedShippingWaybillStatusType.getData('statusMessage'));\n      }\n    }\n    cancelShippingWaybillStatusDirty(onCloseDialogAction) {\n      if (this.args.isEditing) {\n        this.crud.cancelEditing({\n          adapterName: this.adapterName,\n          dirty: this.dirty\n        });\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n\n    /**\n     * Creates or updates the shipping waybill status currently being edited.\n     *\n     * Reads `this.args.isEditing` to decide between update and create, and saves\n     * `this.dirty` through the crud service. Once the record is saved it refreshes\n     * the dispatch overview via `this.args.onFetchOverviewTask` (when provided) and\n     * then kicks off the waybill status list refresh via `this.args.onAfterSaveStatuses`\n     * (when provided) without awaiting it, so the Date/Status table updates without\n     * reopening the modal and without tearing down this editor mid-task.\n     *\n     * @param {Function} [onCloseDialogAction] - Closes the surrounding modal dialog once the record is saved and the overview refresh has run.\n     * @return {Generator} Task generator. Side effects: persists the dirty record, refreshes the dispatch overview, starts the waybill status refresh and closes the dialog.\n     */\n    *saveTask(onCloseDialogAction) {\n      const dirty = this.dirty;\n      if (this.args.isEditing) {\n        yield this.crud.updateRecordTask.perform({\n          adapterName: this.adapterName,\n          model: dirty\n        });\n      } else {\n        yield this.crud.createRecordTask.perform({\n          adapterName: this.adapterName,\n          model: dirty\n        });\n      }\n      if (this?.args?.onFetchOverviewTask?.()) {\n        yield this.args.onFetchOverviewTask();\n      }\n      const refreshStatuses = this.args.onAfterSaveStatuses;\n      if (refreshStatuses) {\n        refreshStatuses();\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n\n    /**\n     * Removes the shipping waybill status currently being edited.\n     *\n     * Removes `this.dirty` through the crud service without an extra confirmation\n     * (the delete button already confirms). Once the record is removed it refreshes\n     * the dispatch overview via `this.args.onFetchOverviewTask` (when provided) and\n     * then kicks off the waybill status list refresh via `this.args.onAfterSaveStatuses`\n     * (when provided) without awaiting it, so the Date/Status table updates without\n     * reopening the modal and without tearing down this editor mid-task.\n     *\n     * @param {Function} [onCloseDialogAction] - Closes the surrounding modal dialog once the record is removed and the overview refresh has run.\n     * @return {Generator} Task generator. Side effects: removes the dirty record, refreshes the dispatch overview, starts the waybill status refresh and closes the dialog.\n     */\n    *removeTask(onCloseDialogAction) {\n      const dirty = this.dirty;\n      yield this.crud.removeRecordTask.perform({\n        adapterName: this.adapterName,\n        model: dirty,\n        noConfirm: true // already has confirm in the btnDelete\n      });\n      if (this?.args?.onFetchOverviewTask?.()) {\n        yield this.args.onFetchOverviewTask();\n      }\n      const refreshStatuses = this.args.onAfterSaveStatuses;\n      if (refreshStatuses) {\n        refreshStatuses();\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupShippingWaybillStatusDirty\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"setupShippingWaybillStatusDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setShippingWaybillStatusParams\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setShippingWaybillStatusParams\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelShippingWaybillStatusDirty\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelShippingWaybillStatusDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/transporters/waybill-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"KnarDLqJ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@isReadonly\\\",\\\"@label\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@isPushBtn\\\",\\\"@icon\\\",\\\"@classNames\\\",\\\"@modalSize\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[[23,8,[]],[23,9,[]],[28,\\\"if\\\",[[23,10,[]],true,false],null],[28,\\\"if\\\",[[23,10,[]],\\\"fas fa-pen fa-xs\\\",\\\"fas fa-plus\\\"],null],\\\"is-primary\\\",\\\"small\\\",[28,\\\"fn\\\",[[23,0,[\\\"setupShippingWaybillStatusDirty\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"cancelShippingWaybillStatusDirty\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,0,[\\\"dirty\\\",\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"shippingWaybill\\\",false,true,[28,\\\"if\\\",[[23,7,[]],[23,7,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"transporters\\\",[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]]]]]],null],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",\\\"form-group__container--column-2\\\"]],[[\\\"@tab\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[[23,5,[]],\\\"shippingWaybillStatus_group\\\",[23,2,[]],\\\"waybill status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\"],[\\\"message\\\",\\\"shippingWaybillStatus\\\",\\\"dispatch\\\",[22,\\\"errors\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[22,\\\"isReadonly\\\"],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"message\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@documentationResource\\\",\\\"@errors\\\"],[\\\"status\\\",\\\"shippingWaybillStatus\\\",\\\"dispatch\\\",[22,\\\"errors\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"transporter-waybill-record-lists-shipping-waybill-status-type\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"status\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setShippingWaybillStatusParams\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/footer-btns\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-trash\\\",[28,\\\"or\\\",[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"removeTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"removeTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"removeTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"cancelShippingWaybillStatusDirty\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"or\\\",[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"removeTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/transporters/waybill-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/units-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 UnitsEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class UnitsEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"model\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", this.args?.customAdapterName || this.args.adapterName || 'units');\n      const model = this.args?.model;\n      const tab = this.args?.tab;\n      this.tab = tab;\n      const isEditing = this.args?.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    get hasRunningTasks() {\n      return this.crud.hasRunningTasks;\n    }\n    afterCreateRecordTask(model) {\n      this.args?.onAddItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args?.onUpdateItem?.(model);\n      this.args?.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask(model) {\n      this.args?.onRemoveItem?.(model);\n    }\n    cancel() {\n      this.args?.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/units-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2MljsQS3\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@disabled\\\",\\\"@isEditing\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@formGroupClassNames\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"unitsEditor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"units\\\",[23,7,[]],[23,6,[]],[23,5,[]],[23,4,[]]]]],[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[[12,\\\"class\\\",[23,8,[]]]],[[\\\"@tab\\\",\\\"@title\\\",\\\"@context\\\",\\\"@formInitData\\\"],[[23,6,[]],\\\"units\\\",\\\"units_group\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@formInitData\\\"],[\\\"label\\\",\\\"unit\\\",[23,0,[\\\"model\\\"]],[23,6,[]],[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,9,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterRemoveRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,2,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[23,0,[\\\"afterCreateRecordTask\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/units-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/updates/update-btn/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    updates: Ember.inject.service(),\n    actions: {\n      reload() {\n        window.location.reload();\n      }\n    }\n  });\n});","define(\"client/pods/components/updates/update-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ivnkKLHI\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isBtnOnly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"updates\\\",\\\"hasNewVersion\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@tooltipLabel\\\",\\\"@classNames\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"has-text-danger\\\",\\\"update now\\\",\\\"fas fa-sync-alt\\\",[28,\\\"fn\\\",[[23,0,[\\\"updates\\\",\\\"reload\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"tt\\\",[\\\"update required, please reload\\\"],null],false],[9],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@tooltipLabel\\\",\\\"@classNames\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"has-text-danger\\\",\\\"update now\\\",\\\"fas fa-sync-alt\\\",[28,\\\"fn\\\",[[23,0,[\\\"updates\\\",\\\"reload\\\"]]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[9],[0,\\\"    \\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/updates/update-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/updates/update-notify-btn/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    updates: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      const version = this.updates.get('version');\n      this.set('version', version);\n    },\n    actions: {\n      broadcastNewVersion(onCloseDialogAction) {\n        const version = this.version;\n        this.socket.send('broadcastNewVersion', {\n          version,\n          host: window.location.hostname\n        });\n        onCloseDialogAction();\n      }\n    }\n  });\n});","define(\"client/pods/components/updates/update-notify-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xcqEWD4X\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"hasSectionWrapper\\\",\\\"label\\\",\\\"translate\\\"],[true,\\\"notify update\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"disabled\\\",\\\"translatedPlaceholder\\\",\\\"value\\\"],[true,\\\"version\\\",[24,[\\\"version\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"translate\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,\\\"notify update\\\",[28,\\\"action\\\",[[23,0,[]],\\\"broadcastNewVersion\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/updates/update-notify-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/user-login/component\", [\"exports\", \"client/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    auth: Ember.inject.service(),\n    applicationService: Ember.inject.service('application'),\n    updates: Ember.inject.service(),\n    username: '',\n    password: '',\n    code: '',\n    step: 0,\n    resentCode: false,\n    twoFactorAuthTries: 0,\n    init() {\n      this.crud.addLists(this, ['languages']);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      if (_environment.default.isProduction === false) {\n        this.auth.setLanguage('en-us');\n      }\n    },\n    goToVersion(version) {\n      if (version === 'old') {\n        window.location.href = 'https://old.bigordr.com';\n      } else {\n        window.location.href = 'https://app.bigordr.com';\n      }\n    },\n    goToApp() {\n      const mainAppUrl = _environment.default.APP.mainAppUrl;\n      if (!mainAppUrl) {\n        return;\n      }\n      window.location.assign(mainAppUrl);\n    },\n    actions: {\n      async login() {\n        this.set('resentCode', false);\n        this.set('code', '');\n        this.set('step', 0);\n        this.set('twoFactorAuthTries', 0);\n        const params = this.params || {};\n        const credentials = {\n          username: this.username,\n          password: this.password,\n          app: params?.app ?? '',\n          redirect: params?.redirect ?? ''\n        };\n        const loginResponse = await this.auth.get('loginTask').perform(credentials);\n        if (loginResponse?.isTwoFactorAuth) {\n          this.set('step', 1);\n        }\n      },\n      async loginTwoFactor() {\n        const code = this.code || '';\n        if (!code) {\n          // set error\n          return;\n        }\n        const loginSuccessfully = await this.auth.get('loginTwoFactorTask').perform(code);\n        this.twoFactorAuthTries = Number(this.twoFactorAuthTries || 0) + 1;\n        if (!loginSuccessfully) {\n          this.set('code', '');\n          if (this.twoFactorAuthTries >= 3) {\n            this.set('step', 0);\n          }\n        }\n      },\n      async resendTwoFactorCode() {\n        const hasSentSuccessfully = await this.auth.get('resendTwoFactorCodeTask').perform();\n        if (hasSentSuccessfully) {\n          this.set('resentCode', true);\n        } else {\n          this.set('resentCode', false);\n          this.set('step', 0);\n        }\n      },\n      async cancelTwoFactorAuth() {\n        this.set('code', '');\n        this.set('resentCode', false);\n        this.set('step', 0);\n        this.set('twoFactorAuthTries', 0);\n        this.auth.resetLogin();\n      },\n      setLanguage(item) {\n        this.auth.setLanguage(item.getData('value'));\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"goToVersion\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"goToVersion\"), _obj), _applyDecoratedDescriptor(_obj, \"goToApp\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"goToApp\"), _obj), _obj));\n});","define(\"client/pods/components/user-login/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZevKMQ1J\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"layouts/section-container\\\",[[12,\\\"class\\\",\\\"login\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"login\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section/sub\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"header\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"login__header\\\"],[8],[1,[28,\\\"tt\\\",[\\\"welcome to bigordr\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section/sub\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"auth\\\",\\\"loginFailed\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row login__row--error\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[24,[\\\"auth\\\",\\\"loginErrorMsg\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"applicationService\\\",\\\"isBetaMode\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card-content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"you are currently using the new version (beta). go to the main app to log in.\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"onSubmit\\\"],[\\\"go to login page\\\",\\\"is-primary\\\",[28,\\\"action\\\",[[23,0,[]],\\\"goToApp\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputClassNames\\\",\\\"placeholder\\\",\\\"autocomplete\\\",\\\"value\\\",\\\"autofocus\\\",\\\"onSubmit\\\"],[\\\"u-input--large\\\",\\\"email\\\",\\\"on\\\",[24,[\\\"username\\\"]],true,[28,\\\"action\\\",[[23,0,[]],\\\"login\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"type\\\",\\\"inputClassNames\\\",\\\"placeholder\\\",\\\"autocomplete\\\",\\\"value\\\",\\\"onSubmit\\\"],[\\\"password\\\",\\\"u-input--large\\\",\\\"password\\\",\\\"off\\\",[24,[\\\"password\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"login\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"readonly\\\",\\\"placeholder\\\",\\\"list\\\",\\\"value\\\",\\\"onSelect\\\"],[true,\\\"current_lang\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"languages\\\"]],[24,[\\\"language\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"setLanguage\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"login\\\",\\\"is-primary\\\",[24,[\\\"auth\\\",\\\"loginTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"login\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"resentCode\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"two factor authentication code has been resent\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"please check email for two factor authentication code\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"inputClassNames\\\",\\\"placeholder\\\",\\\"value\\\",\\\"autofocus\\\",\\\"onSubmit\\\"],[\\\"u-input--large\\\",\\\"4 digit code\\\",[23,0,[\\\"code\\\"]],true,[28,\\\"action\\\",[[23,0,[]],\\\"loginTwoFactor\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"two_factor_authentication_resendCode\\\",\\\"\\\",[24,[\\\"auth\\\",\\\"loginTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resendTwoFactorCode\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"login\\\",\\\"is-primary\\\",[28,\\\"if\\\",[[23,0,[\\\"code\\\"]],false,true],null],[24,[\\\"auth\\\",\\\"loginTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"loginTwoFactor\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"login__row\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",\\\"\\\",[24,[\\\"auth\\\",\\\"loginTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"cancelTwoFactorAuth\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"p\\\",true],[8],[0,\\\"v\\\"],[1,[24,[\\\"updates\\\",\\\"version\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/user-login/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/assign-results/component\", [\"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 = Ember.Component.extend({\n    classNames: ['list-selector'],\n    itemClassNames: ['list-selector__item'],\n    legendClassNames: ['list-selector__legend'],\n    optionLabelKey: '_data.username',\n    // key that points to option's label\n    optionValueKey: '_data._key',\n    // key that points to option's value\n    value: '',\n    /**\n     * trigger onSelect action\n     * @param {object} option - selected object\n     * @param {object} optionComponent - the component sending the toggle action,\n     *                                    used to keep track of selected state\n     */\n    selectOption(option /* ,  optionComponent */) {\n      // send action to onSelect event..only used for when list is in a dropdown\n      if (this.onSelect) {\n        this.onSelect(option, this);\n      }\n    },\n    // getOptionValue(option) {\n    //   return option.get(this.get('itemValueKey'));\n    // },\n    //\n    // /**\n    //  * return model's selected value\n    //  */\n    // getModelValue() {\n    //\n    //   return this.get('model').get(this.get('valueKey'));\n    // },\n    // /**\n    //  * set model's selected value\n    //  */\n    // setModelValue(value) {\n    //\n    //   return this.get('model').set(this.get('valueKey'), value);\n    // },\n\n    actions: {\n      /**\n       * listen for toggle event sent from options component\n       */\n      toggleOption(option, optionComponent) {\n        // list results only allows select (no deselect)\n        // handle select event\n        this.selectOption(option, optionComponent);\n      }\n    }\n  });\n});","define(\"client/pods/components/users/assign-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"jwhNbJmq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"option\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"legend\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"legend\\\",true],[11,\\\"class\\\",[22,\\\"legendClassNames\\\"]],[8],[1,[28,\\\"tt\\\",[[24,[\\\"legend\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"span\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"list\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-option\\\",null,[[\\\"translate\\\",\\\"rememberSelected\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"classNames\\\",\\\"option\\\",\\\"onToggle\\\"],[[24,[\\\"translate\\\"]],false,[24,[\\\"optionValueKey\\\"]],[24,[\\\"optionLabelKey\\\"]],[24,[\\\"itemClassNames\\\"]],[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleOption\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[2,\\\" <div class='u-desc u-desc--mini'> \\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[2,\\\" </div> \\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/assign-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/ip-addresses-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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;\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 UsersIpAddressesEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class UsersIpAddressesEditor extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"model\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'users/lists/ip-addresses');\n      const model = this.args.model || this.args.parentModel || {};\n      const tab = this.args.tab || {};\n      this.tab = tab;\n      const isEditing = this.args.isEditing;\n      if (isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    afterCreateRecordTask(model) {\n      this.args.onAddItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterReplaceRecordTask(model) {\n      this.args.onUpdateItem?.(model);\n      this.args.onCloseDialogAction?.();\n    }\n    afterRemoveRecordTask() {\n      this.args.onRemoveItem?.(this.model);\n    }\n    cancel() {\n      this.args.onCloseDialogAction?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"afterCreateRecordTask\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"afterCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterReplaceRecordTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"afterReplaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterRemoveRecordTask\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"afterRemoveRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/users/ip-addresses-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dI6rfufs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@disabled\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isModal\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"users\\\",true,\\\"description\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,true,[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isModal\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"ip\\\",\\\"users\\\",true,\\\"ip address\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@translatedPlaceholder\\\",\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"tt\\\",[\\\"auto\\\"],null],true,true,[28,\\\"or\\\",[[23,3,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]]],null],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"ip\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\"],[\\\"in use by\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"users/ip-addresses-users\\\",[],[[\\\"@model\\\"],[[23,0,[\\\"model\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterRemoveRecordTask\\\"]]],null],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[23,1,[]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterReplaceRecordTask\\\"]],[23,0,[\\\"model\\\"]]],null],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"crud\\\",\\\"hasRunningTasks\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"afterCreateRecordTask\\\"]],[23,0,[\\\"model\\\"]]],null],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/ip-addresses-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/ip-addresses-users/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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 UsersIpAddressesUsers = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _class = class UsersIpAddressesUsers extends _component.default {\n    constructor() {\n      super(...arguments);\n      // fetch ip table\n      _initializerDefineProperty(this, \"server\", _descriptor, this);\n      _initializerDefineProperty(this, \"usersForIp\", _descriptor2, this);\n      _defineProperty(this, \"adapterName\", 'users/lists/ip-addresses');\n      this.fetchDefaultDataTask.perform();\n    }\n    *fetchDefaultDataTask() {\n      const model = this.args.model;\n      const ipKey = model?._data?._key;\n      // @TODO: use adapter\n      const usersForIp = yield this.server.getAdapter('users/lists/ip-addresses').getIpUsersTable.perform(ipKey);\n      this.usersForIp = usersForIp;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"usersForIp\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchDefaultDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDefaultDataTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/users/ip-addresses-users/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qO17aS/Z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"user\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"usersForIp\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"usersForIp\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,1,[\\\"username\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/ip-addresses-users/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/panels-dash/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    adapterName: 'users'\n  });\n});","define(\"client/pods/components/users/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Z7LBrwEv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"user\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"results\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[3,\\\"action\\\",[[23,0,[]],[24,[\\\"onDisplay\\\"]],[23,1,[]]]],[8],[0,\\\"\\\\n    \\\"],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-types\\\"]],[23,1,[\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-roles-internal\\\"]],[23,1,[\\\"_data\\\",\\\"role\\\"]]]]],false],[0,\\\"\\\\n\\\\n    \\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[23,1,[\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/panels-display/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    editAction: 'edit',\n    updateAction: 'update',\n    dashAction: 'dash',\n    errorMsg: Ember.computed(function () {\n      return this.intl.t('error occurred please try again later');\n    }),\n    init: function () {\n      this.crud.addLists(this, ['users/lists/types', 'users/lists/roles/internal', 'users/lists/ip-addresses', 'statuses']);\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const model = this.get('tab.model');\n\n      // images is required to be an array\n      if (!R.is(Array, model.getData('images'))) {\n        model.setData('images', []);\n      }\n      this.set('model', model);\n    },\n    notAllowedEdit: Ember.computed('model._data._key', function () {\n      const tokenData = this.storage.get('tokenData');\n      const uid = tokenData.uid;\n      const userKey = R.path(['model', '_data', '_key'])(this);\n      if (uid === userKey) {\n        return false;\n      }\n      const role = tokenData.role || '';\n      if (R.toLower(role) === 'super') {\n        return false;\n      }\n      return true;\n    })\n  });\n});","define(\"client/pods/components/users/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ayvUeNMd\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"users/users-editor\\\",null,[[\\\"model\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"errors\\\",\\\"onEdit\\\"],[[24,[\\\"model\\\"]],false,false,[24,[\\\"errors\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onEdit\\\"]],[24,[\\\"model\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/panels-edit/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    adapterName: 'users',\n    init() {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const model = this.model;\n      const dirty = this.setupDirty({\n        adapterName: this.adapterName,\n        model\n      });\n      this.set('dirty', dirty);\n    }\n  });\n});","define(\"client/pods/components/users/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hIdlT19I\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"users/users-editor\\\",null,[[\\\"model\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"errors\\\",\\\"onSubmitTask\\\",\\\"onRemoveTask\\\",\\\"onCancel\\\"],[[24,[\\\"dirty\\\"]],false,true,[24,[\\\"errors\\\"]],[24,[\\\"updateRecordTask\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\"],[\\\"users\\\",[24,[\\\"dirty\\\"]],true]]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancelEditing\\\",[28,\\\"hash\\\",null,[[\\\"dirty\\\"],[[24,[\\\"dirty\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/panels-new/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    adapterName: 'users',\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      const data = {\n        type: this.get('constants.userTypes.employee'),\n        status: this.get('constants.status.active'),\n        changePassword: true,\n        role: 'general' // @TODO: setup default role somewhere else\n      };\n      const attrs = {\n        isNew: true\n      };\n      const model = this.setupNewRecord({\n        data,\n        attrs\n      });\n      this.set('model', model);\n    }\n  });\n});","define(\"client/pods/components/users/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pMjBYGAu\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"users/users-editor\\\",null,[[\\\"model\\\",\\\"isNew\\\",\\\"isEditing\\\",\\\"errors\\\",\\\"onSubmitTask\\\",\\\"onCancel\\\"],[[24,[\\\"model\\\"]],true,false,[24,[\\\"errors\\\"]],[24,[\\\"createRecordTask\\\"]],[24,[\\\"onDash\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/search-results-persons-item/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['users/lists/types', 'users/lists/roles/internal', 'statuses']);\n    }\n  });\n});","define(\"client/pods/components/users/search-results-persons-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gl7R0Bob\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"companyName\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"companyName\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-types\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-roles-internal\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"role\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/search-results-persons-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/search-results/component\", [\"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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['users/lists/types', 'users/lists/roles/internal', 'statuses']);\n    },\n    statusTagClassName: Ember.computed('result._data.status', function () {\n      const status = this.get('result._data.status');\n      if (status === this.get('constants.status.active')) {\n        return 'list-tags__item--active-status';\n      } else {\n        return 'list-tags__item--inactive-status';\n      }\n    })\n  });\n});","define(\"client/pods/components/users/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zPW7qfjF\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\"],[2,\\\" <div class='u-results__text u-desc u-desc--mini'> \\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\"],[2,\\\" </div> \\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-types\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"type\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-roles-internal\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"role\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\"],[1,[28,\\\"lists/list-tags\\\",null,[[\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"result\\\",\\\"_data\\\",\\\"status\\\"]]]]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/tab-container/component\", [\"exports\", \"client/mixins/crud\", \"client/mixins/users-list-by\", \"ember-concurrency\"], function (_exports, _crud, _usersListBy, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _usersListBy.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    adapterName: 'users',\n    filtersAdapterName: 'users/filters',\n    init() {\n      this.crud.addLists(this, ['users/lists/menu', 'users/lists/types', 'users/lists/roles/internal', 'statuses']);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      this.set('filters.showResults', true);\n      this._super(...arguments);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      this.loadTabTask.perform();\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      // const tab = this.get('tab')\n      // const loadInstructions = this.get('tabsManager').getLoadInstructions(tab)\n      // if (loadInstructions) {\n      //   const model = loadInstructions.getData('model')\n      //   if (model) {\n      //     this.display(loadInstructions.getData('model'))\n      //   } else {\n      //     const id = loadInstructions.getData('find.id')\n      //     const found = yield this.get('findTask').perform({\n      //       appendPath: id\n      //     })\n      //     this.display(found)\n      //   }\n      // } else {\n      const adapterName = this.adapterName;\n      const filters = this.filters;\n      filters.setData('query', '');\n      const results = yield this.fetchDefaultDataTask.perform({\n        adapterName,\n        filters\n      });\n      this.set('results', results);\n      this.dash(results);\n      // }\n    }),\n    dash(results) {\n      // create dashboard\n\n      if (!results) {\n        this.loadTabTask.perform();\n      }\n      const tab = this.tab;\n      const subTabOptions = {\n        component: 'users/panels-dash'\n        // model: model\n      };\n      this.tabsManager.reuseSubTab(tab, subTabOptions);\n    },\n    /**\n     * display the user\n     * @param  {object} user model\n     */\n    display(model) {\n      const subTabOptions = {\n        component: 'users/panels-display',\n        model: model\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    new(subTabOptions) {\n      const tab = this.tab;\n      this.set('filters.showResults', false);\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n    },\n    // @TODO: NEED TO USE NGUARD TO RESTRICT CERTAIN ACTIONS\n\n    actions: {\n      dash() {\n        this.set('filters.showResults', true);\n        this.dash();\n      },\n      // search () {\n      //   const self = this\n\n      //   // get search term\n      //   const data = {\n      //     query: self.get('query')\n      //   }\n\n      //   self.get('dataStore').search('users', data).then(function (results) {\n      //     if (!self.get('isDestroyed')) {\n      //       self.set('resultsToggle', true)\n      //       self.set('results', results)\n      //     }\n      //   })\n      // },\n      display(model) {\n        this.set('filters.showResults', false);\n        this.display(model);\n      },\n      new(subTabOptions) {\n        this.new(...arguments);\n      },\n      edit(model) {\n        const tab = this.tab;\n        this.set('filters.showResults', false);\n        const subTabOptions = {\n          component: 'users/panels-edit',\n          model: model\n        };\n        this.tabsManager.replaceSubTab(tab, subTabOptions);\n      }\n    }\n  });\n});","define(\"client/pods/components/users/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"zWkiQ/Y+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"result\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,6,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@hasBadge\\\",\\\"@badge\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[23,0,[\\\"filters\\\",\\\"hasNewSearchResults\\\"]],[23,0,[\\\"filters\\\",\\\"fullCount\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/search-bar\\\",[],[[\\\"@adapterName\\\",\\\"@allowEmptyQuery\\\",\\\"@component\\\",\\\"@filters\\\",\\\"@onAfter\\\",\\\"@placeholder\\\"],[[23,0,[\\\"adapterName\\\"]],true,[23,0,[]],[23,0,[\\\"filters\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"afterSearch\\\",\\\"\\\"],null],\\\"users\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"users\\\",[23,3,[]],[23,5,[]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-menu\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,5,[]]]]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[3,4,5]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"filters\\\",\\\"showResults\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[\\\"filters\\\"]],\\\"showResults\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"classNames\\\",\\\"itemClassNames\\\",\\\"onSelect\\\"],[[24,[\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"u-results__list\\\",\\\"u-results__item\\\",[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"users/search-results\\\",null,[[\\\"query\\\",\\\"result\\\"],[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[23,2,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]],[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null]],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tabParent\\\",\\\"tab\\\",\\\"model\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onDash\\\"],[[24,[\\\"tab\\\"]],[23,1,[]],[23,1,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/users-editor/component\", [\"exports\", \"ramda\", \"ember-concurrency-decorators\", \"client/constants\"], function (_exports, R, _emberConcurrencyDecorators, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _obj;\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  var _default = _exports.default = Ember.Component.extend((_obj = {\n    applicationService: Ember.inject.service('application'),\n    intl: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    server: Ember.inject.service(),\n    users: Ember.inject.service(),\n    terminalService: Ember.inject.service('terminal'),\n    eInvoicesService: Ember.inject.service('extensions/apps/tw/e-invoices'),\n    apiAccessToken: null,\n    tagName: 'div',\n    classNames: ['col-container'],\n    disabled: false,\n    translate: true,\n    isNew: false,\n    hasRemainingCount: false,\n    init() {\n      this.crud.addLists(this, ['users/lists/types', 'users/lists/roles/internal', 'users/lists/roles/external', 'users/lists/roles/terminal', 'users/lists/ip-addresses', 'statuses', 'printer/lists/allow-printing-from', 'printer/lists/models']);\n      this._super(...arguments);\n      this.setupDefaultPrinterModel();\n      this.fetchRemainingCount.perform();\n    },\n    /**\n     * Show the default printer model on a printer terminal that has none saved,\n     * because the backend treats a missing printer model as the default one.\n     *\n     * This writes to the record the editor was given, which for the display panel is\n     * the tab's cached record (not a dirty copy): on purpose, so a legacy printer user\n     * shows \"Microchip\" instead of a blank, the edit panel's copy starts from it (the\n     * form is not dirty on open), and a save stores what the operator saw.\n     */\n    setupDefaultPrinterModel() {\n      const model = this.model;\n      const isEInvoicePrinterTerminal = model?._data?.type === _constants.default.userTypes.eInvoicePrinterTerminal;\n      if (!isEInvoicePrinterTerminal) {\n        return;\n      }\n      if (model._data.twEInvoicePrinterModel) {\n        return;\n      }\n      model.setData('twEInvoicePrinterModel', _constants.default.twEInvoicePrinter.defaultModel);\n    },\n    *fetchRemainingCount() {\n      const isEInvoicePrinterTerminal = R.pathEq(['model', '_data', 'type'], _constants.default.userTypes.eInvoicePrinterTerminal)(this);\n      if (!isEInvoicePrinterTerminal) {\n        return;\n      }\n      const allowPrintingFromAnyNextAvailableNumbers = R.pathEq(['model', '_data', 'twEInvoiceAllowPrintingFrom'], _constants.default.twEInvoicePrinter.allowPrintingFrom.anyNextAvailableNumbers)(this);\n      if (allowPrintingFromAnyNextAvailableNumbers) {\n        return;\n      }\n      const fetchAvailableCountToIssueData = yield this.eInvoicesService.fetchAvailableCountToIssueTask.perform({\n        userKey: this.model?._data?._key\n      });\n      const hasRemainingCount = fetchAvailableCountToIssueData?.hasRemainingCount || false;\n      this.set('hasRemainingCount', hasRemainingCount);\n      return fetchAvailableCountToIssueData;\n    },\n    *generateApiAccessTokenTask(model) {\n      const confirm = yield window.confirm(this.intl.t('api_access_token_generate_note'));\n      if (!confirm) {\n        return;\n      }\n      const resp = yield this.server.call('PATCH', 'api/protected/users/api-access-token', {\n        _key: model?._data?._key\n      });\n      const apiAccessToken = resp?.data?.apiAccessToken;\n      if (!apiAccessToken) {\n        window.alert(this.intl.t('failed to generate api access token'));\n        return;\n      }\n      Ember.set(this, 'apiAccessToken', apiAccessToken);\n    },\n    allowPrintingFromList: Ember.computed('model._data.role', function () {\n      const userRole = this.users.getProp('role');\n      if (userRole === 'super') {\n        return false;\n      }\n      return true;\n    }),\n    notAllowedToChangeSecurity: Ember.computed('model._data.type', 'crud.lists.printer-lists-allow-printing-from', 'hasRemainingCount', function () {\n      const isEInvoicePrinterTerminal = R.pathEq(['model', '_data', 'type'], _constants.default.userTypes.eInvoicePrinterTerminal)(this);\n      if (!isEInvoicePrinterTerminal) {\n        return false;\n      }\n      const list = R.pathOr([], ['crud', 'lists', 'printer-lists-allow-printing-from'])(this);\n      if (!this.hasRemainingCount) {\n        return list;\n      }\n      const a = R.filter(R.pathEq(['_data', 'value'], _constants.default.twEInvoicePrinter.allowPrintingFrom.printerAllocatedNumbers))(list);\n      return a;\n    }),\n    notAllowDelete: Ember.computed('model._data._key', function () {\n      const tokenData = this.storage.get('tokenData') || {};\n      const uid = tokenData?.uid;\n      const userKey = R.path(['model', '_data', '_key'])(this);\n      if (uid === userKey) {\n        return true;\n      }\n      const role = tokenData?.role || '';\n      if (R.toLower(role) === 'super') {\n        return false;\n      }\n      return true;\n    }),\n    isReadonly: Ember.computed('isEditing', 'isNew', function () {\n      if (this.isNew) {\n        return false;\n      }\n      if (this.isEditing) {\n        return false;\n      }\n      return true;\n    }),\n    disableChangeRoles: Ember.computed('model._data.role', 'isReadonly', function () {\n      if (this.isReadonly) {\n        return true;\n      }\n      const role = this.get('users').getProp('role');\n      if (R.toLower(role) === 'super') {\n        return false;\n      }\n      return true;\n    }),\n    rolesListByUserType: Ember.computed('model._data.{role,type}', 'crud.lists.users-lists-roles-internal', 'crud.lists.users-lists-roles-external', 'crud.lists.users-lists-roles-terminal', function () {\n      const userType = this.model?._data?.type || '';\n      const dynamicRolesList = R.pathOr([], ['crud', 'lists', `users-lists-roles-${userType}`])(this);\n      if (dynamicRolesList && dynamicRolesList.length) {\n        return dynamicRolesList;\n      }\n      const customRolesList = {\n        [this.constants.userTypes.employee]: R.pathOr([], ['crud', 'lists', 'users-lists-roles-internal'])(this),\n        [this.constants.userTypes.apiAccess]: R.pathOr([], ['crud', 'lists', 'users-lists-roles-internal'])(this),\n        [this.constants.userTypes.eInvoicePrinterTerminal]: R.pathOr([], ['crud', 'lists', 'users-lists-roles-terminal'])(this)\n      };\n      return customRolesList[userType];\n    }),\n    shouldShowAllowPublicTemplate: Ember.computed('model._data.{role,type}', function () {\n      const isAdmin = this.users.getProp('isAdmin') === true;\n      if (!isAdmin) {\n        return false;\n      }\n      const userType = this.model?._data?.type || '';\n      if (userType === this.constants.userTypes.eInvoicePrinterTerminal) {\n        return false;\n      }\n      return true;\n    }),\n    disableEdit: Ember.computed('isReadonly', 'model._data._key', function () {\n      const loggedInUser = this.users.getProp('uid');\n      const role = this.users.getProp('role');\n      if (role === 'super') {\n        return false;\n      }\n      if (loggedInUser === this.model?._data?._key) {\n        return false;\n      }\n      return true;\n    }),\n    actions: {\n      toggleType() {\n        const model = this.model;\n        if (model.getData('type') === this.get('constants.userTypes.eInvoicePrinterTerminal')) {\n          model.setData('twEInvoiceAllowPrintingFrom', 'anyNextAvailableNumbers');\n          model.setData('twEInvoicePrinterModel', _constants.default.twEInvoicePrinter.defaultModel);\n        } else {\n          model.setData('twEInvoiceAllowPrintingFrom', '');\n          model.setData('twEInvoicePrinterModel', '');\n        }\n        if (model.getData('type') === this.get('constants.userTypes.external')) {\n          model.setData('username', '');\n          model.setData('role', 'external');\n        } else {\n          model.setData('role', 'general');\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"fetchRemainingCount\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"fetchRemainingCount\"), _obj), _applyDecoratedDescriptor(_obj, \"generateApiAccessTokenTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"generateApiAccessTokenTask\"), _obj), _obj));\n});","define(\"client/pods/components/users/users-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"8Y9qLUzv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@onRemoveTask\\\",\\\"@onSubmitTask\\\",\\\"@model\\\",\\\"@tab\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"leftUsersEditor\\\",\\\"users\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"type\\\",[24,[\\\"errors\\\"]],\\\"type\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"disabled\\\",\\\"list\\\",\\\"model\\\",\\\"valueKey\\\",\\\"onSelect\\\",\\\"allowEmpty\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-types\\\"]],[24,[\\\"model\\\"]],\\\"_data.type\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleType\\\"],null],false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"status\\\",[24,[\\\"errors\\\"]],\\\"status\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"disabled\\\",\\\"list\\\",\\\"model\\\",\\\"valueKey\\\",\\\"allowEmpty\\\"],[[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],[24,[\\\"model\\\"]],\\\"_data.status\\\",false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"userUsersEditor\\\",\\\"users\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"name\\\",true,[24,[\\\"errors\\\"]],\\\"name\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"readonly\\\",\\\"value\\\"],[true,[23,0,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"apiAccess\\\"],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"email\\\",true,[24,[\\\"errors\\\"]],\\\"email\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,0,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"email\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"description\\\",[24,[\\\"errors\\\"]],\\\"description\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-textarea\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[23,0,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n      \\\\n\\\"],[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"beta.twoFactorAuth\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"apiAccess\\\"],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"two factor authentication\\\",true,[24,[\\\"errors\\\"]],\\\"twoFactorAuth\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,0,[\\\"notAllowedToChangeSecurity\\\"]],[23,0,[\\\"isReadonly\\\"]]],null],[23,4,[\\\"_data\\\",\\\"twoFactorAuth\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"restrict login using ip addresses\\\",true,[24,[\\\"errors\\\"]],\\\"twoFactorAuth\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,0,[\\\"notAllowedToChangeSecurity\\\"]],[23,0,[\\\"isReadonly\\\"]]],null],[23,4,[\\\"_data\\\",\\\"ipLock\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"ipLock\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"allowed ip addresses\\\",true,[24,[\\\"errors\\\"]],\\\"twoFactorAuth\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[28,\\\"or\\\",[[23,0,[\\\"notAllowedToChangeSecurity\\\"]],[23,0,[\\\"isReadonly\\\"]]],null],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@disabled\\\",\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[[28,\\\"or\\\",[[24,[\\\"notAllowedToChangeSecurity\\\"]],[23,0,[\\\"isReadonly\\\"]]],null],\\\"users/lists/ip-addresses\\\",\\\"users/ip-addresses-editor\\\",true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-ip-addresses\\\"]],[23,4,[]],true,\\\"_data._key\\\",[23,5,[]],false,\\\"_data.allowedIpAddresses\\\"]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-lists-ip-addresses\\\"]],\\\"_data._key\\\",false,[23,4,[\\\"_data\\\",\\\"allowedIpAddresses\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"apiAccess\\\"],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"newUsersEditor\\\",\\\"users\\\"]],{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"changePassword\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\"],[\\\"change password\\\",\\\"u-btn\\\",[23,0,[\\\"isReadonly\\\"]],true,false,[24,[\\\"model\\\",\\\"_data\\\",\\\"changePassword\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"changePassword\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"password (at least 8 characters)\\\",true,[24,[\\\"errors\\\"]],\\\"password\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"type\\\",\\\"autocomplete\\\",\\\"value\\\"],[\\\"password\\\",\\\"new-password\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"password\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"confirm password\\\",true,[24,[\\\"errors\\\"]],\\\"confirmPassword\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"type\\\",\\\"autocomplete\\\",\\\"value\\\"],[\\\"password\\\",\\\"new-password\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"confirmPassword\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"roleUsersEditor\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"role\\\",[24,[\\\"errors\\\"]],\\\"role\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\"],[true,true,true,[24,[\\\"disableChangeRoles\\\"]],[23,0,[\\\"rolesListByUserType\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"role\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"apiAccess\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"userTypes\\\",\\\"eInvoicePrinterTerminal\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"roleUsersEditor\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"allocate e-invoice numbers method\\\",[24,[\\\"errors\\\"]],\\\"printer\\\",\\\"twEInvoiceAllowPrintingFrom\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isRunning\\\",\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\"],[[23,0,[\\\"fetchRemainingCount\\\",\\\"isRunning\\\"]],true,true,true,[24,[\\\"disableChangeRoles\\\"]],[23,0,[\\\"notAllowedToChangeSecurity\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"twEInvoiceAllowPrintingFrom\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"printer model\\\",[23,0,[\\\"errors\\\"]],\\\"twEInvoicePrinterModel\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"translate\\\",\\\"readonly\\\",\\\"disabled\\\",\\\"list\\\",\\\"value\\\"],[true,true,true,[23,0,[\\\"disableChangeRoles\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"printer-lists-models\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"twEInvoicePrinterModel\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],\\\"apiAccess\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"shouldShowAllowPublicTemplate\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"templateEditorUsersEditor\\\",\\\"users\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"allow public template editor\\\",[24,[\\\"errors\\\"]],\\\"templateEditor\\\",\\\"users\\\"]],{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"userTypes\\\",\\\"employee\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\"],[[23,0,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"allowPublicTemplate\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"userTypes\\\",\\\"external\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,[[\\\"context\\\",\\\"documentationResource\\\"],[\\\"accessDateUsersEditor\\\",\\\"users\\\"]],{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"allow access date start\\\",[24,[\\\"errors\\\"]],\\\"accessDateStartZ\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.accessDateStartZ\\\",[23,4,[]],[23,4,[\\\"_data\\\",\\\"accessDateStartZ\\\"]],[23,0,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"allow access date end\\\",[24,[\\\"errors\\\"]],\\\"accessDateEndZ\\\",\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.accessDateEndZ\\\",[23,4,[]],[23,4,[\\\"_data\\\",\\\"accessDateEndZ\\\"]],[23,0,[\\\"isReadonly\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content \\\"],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constants\\\",\\\"userTypes\\\",\\\"apiAccess\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@hasSectionWrapper\\\",\\\"@modalDialogTitle\\\",\\\"@modalSize\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@closeOnOverlayClick\\\"],[true,\\\"api access token\\\",\\\"small\\\",\\\"generate api access token\\\",true,true]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"generateApiAccessTokenTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@translate\\\"],[\\\"api access token\\\",\\\"users\\\",\\\"api access token\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"apiAccessToken\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\"],[[23,0,[\\\"apiAccessToken\\\"]],true]]],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\"],[\\\"far fa-copy\\\",true,\\\"copy\\\",true,[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"copyText\\\"]],[23,0,[\\\"apiAccessToken\\\"]],false],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@translate\\\",\\\"@label\\\",\\\"@isCopyBtn\\\",\\\"@onSubmit\\\"],[true,\\\"generate api access token\\\",true,[28,\\\"perform\\\",[[23,0,[\\\"generateApiAccessTokenTask\\\"]],[23,0,[\\\"model\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"apiAccessToken\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[1,[28,\\\"tt\\\",[\\\"api_access_token_note\\\"],null],false],[9],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"close\\\",[23,1,[]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"disabled\\\",\\\"onSubmit\\\"],[[23,0,[\\\"disableEdit\\\"]],[24,[\\\"onEdit\\\"]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[22,\\\"notAllowDelete\\\"],[28,\\\"or\\\",[[23,3,[\\\"isRunning\\\"]],[23,2,[\\\"isRunning\\\"]]],null],[23,2,[]],true]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[28,\\\"or\\\",[[24,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[24,[\\\"onRemoveTask\\\",\\\"isRunning\\\"]]],null],[23,0,[\\\"isReadonly\\\"]],[24,[\\\"onCancel\\\"]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[[28,\\\"or\\\",[[24,[\\\"onSubmitTask\\\",\\\"isRunning\\\"]],[24,[\\\"onRemoveTask\\\",\\\"isRunning\\\"]]],null],[23,0,[\\\"isReadonly\\\"]],[28,\\\"perform\\\",[[24,[\\\"onSubmitTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/users-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/users/users-selector/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    adapterName: 'users/associates',\n    filtersName: 'users/associates/filters',\n    isSingleSelect: true,\n    //currently only supports sinlge select. as list searcher does not allow more\n    autofocus: false,\n    allowIsAssociates: true,\n    query: '',\n    init() {\n      this.crud.addLists(this, ['users/lists/menu']);\n      this._super(...arguments);\n      const filters = this?.filters || this.search.setupFilters({\n        adapterName: this.filtersName\n      });\n      this.set('filters', filters);\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      if (!this.readonly) {\n        this.loadTabTask.perform();\n      }\n    },\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.filters;\n      filters.setData('query', '');\n      filters.setData('allowIsAssociates', this.allowIsAssociates);\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        filters: filters,\n        component: this,\n        resultsProperty: 'results'\n      });\n    }),\n    assignSalesPerson(person) {\n      if (this.onAssignSalesPerson) {\n        this.onAssignSalesPerson(person);\n      }\n      this.set('resultsToggle', false);\n      this.set('query', '');\n    },\n    unassignSalesPerson(person) {\n      if (this.onUnassignSalesPerson) {\n        this.onUnassignSalesPerson(person);\n      }\n      this.set('resultsToggle', false);\n      this.set('query', '');\n    },\n    _placeholder: Ember.computed('placeholder', function () {\n      return this.placeholder || 'search';\n    })\n  }, _applyDecoratedDescriptor(_obj, \"assignSalesPerson\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"assignSalesPerson\"), _obj), _applyDecoratedDescriptor(_obj, \"unassignSalesPerson\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"unassignSalesPerson\"), _obj), _obj));\n});","define(\"client/pods/components/users/users-selector/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0MtKcbxf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"person\\\",\\\"@isGuest\\\",\\\"@autofocus\\\",\\\"@readonly\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[28,\\\"and\\\",[[24,[\\\"isSingleSelect\\\"]],[28,\\\"gt\\\",[[24,[\\\"salesPersons\\\",\\\"length\\\"]],0],null]],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@list\\\",\\\"@placeholder\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@value\\\"],[[23,3,[]],\\\"span\\\",false,[23,0,[\\\"filters\\\",\\\"results\\\"]],[23,0,[\\\"_placeholder\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",\\\"users/search-results-persons-item\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"query\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"filters\\\"]],[23,0,[\\\"query\\\"]]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"assignSalesPerson\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"unassignSalesPerson\\\"]]],null],[23,0,[\\\"query\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"salesPersons\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,2,[]]],null],[28,\\\"not\\\",[[23,1,[\\\"_data\\\",\\\"role\\\"]]],null]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"_key\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,1,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showCompanyName\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t(\\\"],[1,[23,1,[\\\"_data\\\",\\\"companyName\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"readonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-pushbtn\\\",null,[[\\\"classNames\\\",\\\"person\\\",\\\"onSubmit\\\"],[\\\"u-close-btn\\\",[23,1,[]],[28,\\\"action\\\",[[23,0,[]],\\\"unassignSalesPerson\\\",[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/users/users-selector/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/links-editor-modal/component\", [\"exports\", \"ramda\", \"@glimmer/component\"], function (_exports, R, _component) {\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 WebsitesLinksEditorModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _class = class WebsitesLinksEditorModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tempModel\", _descriptor3, this);\n      this._setup();\n    }\n    _setup() {\n      const data = {};\n      const attributes = this.args?.attributes || {};\n      data.linkType = R.pathOr('url', ['data-href-link-type'])(attributes);\n      data.linkTitle = R.pathOr(this.constants.websitePageLinkTypes.pageAndCategory, ['data-href-title'])(attributes);\n      data.linkUrl = R.pathOr('', ['data-href'])(attributes);\n      data.linkResourceName = R.pathOr('', ['data-href-resource-name'])(attributes);\n      data.linkResourceType = R.pathOr('', ['data-href-resource-type'])(attributes);\n      data.linkResourceKey = R.pathOr('', ['data-href-resource-key'])(attributes);\n      data.linkTarget = R.pathOr('_self', ['data-href-target'])(attributes);\n      const tempModel = this.crud.setupNewRecord({\n        adapterName: 'websites/links',\n        data\n      });\n      Ember.set(this, 'tempModel', tempModel);\n    }\n    updateLink(onCloseDialogAction) {\n      const previousAttributes = this.args?.attributes || {};\n      const tempModel = this.tempModel;\n      const linkType = tempModel?._data?.linkType || '';\n      const linkTitle = tempModel?._data?.linkTitle || '';\n      const linkUrl = tempModel?._data?.linkUrl || '';\n      const linkResourceName = tempModel?._data?.linkResourceName || '';\n      const linkResourceType = tempModel?._data?.linkResourceType || '';\n      const linkResourceKey = tempModel?._data?.linkResourceKey || '';\n      const linkTarget = tempModel?._data?.linkTarget || '';\n      const updatedAttributes = R.mergeRight(previousAttributes, {\n        'data-href-target': linkTarget,\n        'data-href': linkUrl || linkResourceKey,\n        'data-href-link-type': linkType,\n        'data-href-title': linkTitle,\n        'data-href-resource-name': linkResourceName,\n        'data-href-resource-type': linkResourceType,\n        'data-href-resource-key': linkResourceKey\n      });\n      this.args.onUpdateModel(updatedAttributes);\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tempModel\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"_setup\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"_setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateLink\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"updateLink\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/links-editor-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ZrXVvHSh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"formInitData\\\",\\\"@modalTitleLabel\\\",\\\"@isReadonly\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@outerFormInitData\\\",\\\"@website\\\",\\\"@shopKey\\\",\\\"@websiteKey\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@closeOnOverlayClick\\\"],[[23,3,[]],false,[23,4,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,0,[\\\"tempModel\\\",\\\"instanceId\\\"]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"websitesLinksEditor\\\",false,true,[28,\\\"if\\\",[[23,9,[]],[23,9,[]],[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"websites\\\",[23,8,[]],[23,7,[]],[23,6,[]],[23,5,[]]]]]],null],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"links\\\",[23,2,[]],\\\"link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@isReadonly\\\",\\\"@model\\\",\\\"@website\\\",\\\"@shopKey\\\",\\\"@websiteKey\\\",\\\"@formInitData\\\"],[[23,4,[]],[23,0,[\\\"tempModel\\\"]],[23,10,[]],[23,11,[]],[23,12,[]],[23,2,[]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/footer-btns\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@classNames\\\"],[\\\"is-right\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"\\\",[28,\\\"fn\\\",[[23,0,[\\\"updateLink\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/links-editor-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/links-editor/component\", [\"exports\", \"ramda\", \"ramda-extension\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, R, R_, _component, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 GrapesjsLinksModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('websites'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember.computed('args.hasLinkToggle', 'args.model._data.hasLink'), _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember.computed('args.model._data.linkType', 'crud.lists.websites-lists-types-links'), _class = class GrapesjsLinksModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedFilter\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedAdapter\", _descriptor7, this);\n      _initializerDefineProperty(this, \"allFilters\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allSetupData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"query\", _descriptor0, this);\n      this.crud.addLists(this, ['websites/lists/types/links', 'websites/lists/types/links/targets']);\n      this._setup.perform();\n    }\n    get showLinkEditor() {\n      if (!this.args.hasLinkToggle) {\n        return true;\n      }\n      const model = this.args.model;\n      if (model?._data?.hasLink) {\n        return true;\n      }\n      return false;\n    }\n    _setupFilters(linkType, setupData) {\n      const allFilters = this.allFilters;\n      const filter = this.search.setupFilters(setupData.filterData);\n      allFilters[linkType] = filter;\n      this.allFilters = allFilters;\n    }\n    *_setup() {\n      let websiteKey = this.args?.websiteKey || '';\n      let shopKey = this.args?.shopKey || '';\n      if (shopKey) {\n        websiteKey = shopKey;\n      }\n      const website = this.args.website;\n      if (website) {\n        websiteKey = website.getData('_key');\n        shopKey = website.getData('shopKey');\n      }\n      const allSetupData = {\n        pageAndCategory: {\n          adapterName: 'websites/pages',\n          filterData: {\n            adapterName: 'websites/pages/filters',\n            defaultFiltersData: {\n              master: websiteKey,\n              itemLabelKey: '_data.name',\n              itemValueKey: '_data._key',\n              resultsItemComponent: 'websites/search-results/links'\n            }\n          },\n          toLoadDataFromModel: {\n            linkTitle: {\n              dotPath: 'pageName'\n            },\n            linkResourceName: {\n              dotPath: 'pageName'\n            },\n            linkResourceType: {\n              dotPath: '_data.type'\n            },\n            linkResourceKey: {\n              dotPath: '_data._key'\n            },\n            linkUrl: {\n              dotPath: '_data.url'\n            },\n            linkTarget: {\n              value: '_self'\n            }\n          }\n        },\n        product: {\n          adapterName: 'channels/shop/campaigns/details',\n          filterData: {\n            adapterName: 'channels/shop/campaigns/details/filters',\n            defaultFiltersData: {\n              master: shopKey,\n              itemLabelKey: '_data.item',\n              itemValueKey: '_data._itemKey',\n              resultsItemComponent: 'channels/shop/items/search-results/links'\n            }\n          },\n          toLoadDataFromModel: {\n            linkTitle: {\n              dotPath: '_data.item'\n            },\n            linkResourceName: {\n              dotPath: '_data.item'\n            },\n            linkResourceType: {\n              value: 'product'\n            },\n            linkResourceKey: {\n              dotPath: '_data.itemKey'\n            },\n            linkUrl: {\n              dotPath: '_data.url'\n            },\n            linkTarget: {\n              value: '_self'\n            }\n          }\n        },\n        blog: {\n          adapterName: 'blogs',\n          filterData: {\n            adapterName: 'blogs/filters',\n            defaultFiltersData: {\n              master: websiteKey,\n              resultsItemComponent: 'blogs/search-results'\n            }\n          },\n          toLoadDataFromModel: {\n            linkTitle: {\n              dotPath: '_data.name'\n            },\n            linkResourceName: {\n              dotPath: '_data.name'\n            },\n            linkResourceType: {\n              value: 'blog'\n            },\n            linkResourceKey: {\n              dotPath: '_data._key'\n            },\n            linkUrl: {\n              dotPath: '_data.url'\n            },\n            linkTarget: {\n              value: '_self'\n            }\n          }\n        },\n        news: {\n          adapterName: 'news',\n          filterData: {\n            adapterName: 'news/filters',\n            defaultFiltersData: {\n              master: websiteKey,\n              resultsItemComponent: 'news/search-results'\n            }\n          },\n          toLoadDataFromModel: {\n            linkTitle: {\n              dotPath: '_data.name'\n            },\n            linkResourceName: {\n              dotPath: '_data.name'\n            },\n            linkResourceType: {\n              value: 'news'\n            },\n            linkResourceKey: {\n              dotPath: '_data._key'\n            },\n            linkUrl: {\n              dotPath: '_data.url'\n            },\n            linkTarget: {\n              value: '_self'\n            }\n          }\n        },\n        storeLocation: {\n          adapterName: 'store-location',\n          filterData: {\n            adapterName: 'store-location/filters',\n            defaultFiltersData: {\n              master: websiteKey,\n              resultsItemComponent: 'store-location/search-results'\n            }\n          },\n          toLoadDataFromModel: {\n            linkTitle: {\n              dotPath: '_data.name'\n            },\n            linkResourceName: {\n              dotPath: '_data.name'\n            },\n            linkResourceType: {\n              value: 'store-location'\n            },\n            linkResourceKey: {\n              dotPath: '_data._key'\n            },\n            linkUrl: {\n              dotPath: '_data.url'\n            },\n            linkTarget: {\n              value: '_self'\n            }\n          }\n        },\n        flows: {\n          adapterName: 'flows',\n          filterData: {\n            adapterName: 'flows/filters',\n            defaultFiltersData: {\n              itemLabelKey: '_data.name',\n              itemValueKey: '_data._key',\n              websiteKey,\n              shopKey\n            }\n          },\n          toLoadDataFromModel: {\n            linkTitle: {\n              dotPath: '_data.name'\n            },\n            linkResourceName: {\n              dotPath: '_data.name'\n            },\n            linkResourceType: {\n              value: 'flows'\n            },\n            linkResourceKey: {\n              dotPath: '_data._key'\n            },\n            linkUrl: {\n              dotPath: '_data.url'\n            },\n            linkTarget: {\n              value: '_self'\n            }\n          }\n        }\n      };\n      this.allSetupData = allSetupData;\n      R.mapObjIndexed((setupData, linkType) => {\n        this._setupFilters(linkType, setupData);\n      })(allSetupData);\n      yield this._selectTypeTask.perform();\n    }\n    *_selectTypeTask() {\n      const model = this.args.model;\n      const linkType = model?._data?.linkType;\n      this.selectedFilter = this.allFilters[linkType];\n      if (!this.selectedFilter) {\n        this.selectedFilter = {};\n        this.selectedAdapter = {};\n        return;\n      }\n      const adapterData = this.allSetupData[linkType];\n      this.selectedAdapter = adapterData;\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: adapterData.adapterName,\n        appendPath: adapterData.appendPath,\n        filters: this.selectedFilter,\n        component: this\n      });\n    }\n    *onChangeTypeTask() {\n      this.unloadResource();\n      yield this._selectTypeTask.perform();\n    }\n    loadResource(selected) {\n      const model = this.args.model;\n      const linkType = model?._data?.linkType;\n      const toLoadDataFromModel = R.pathOr({}, ['allSetupData', linkType, 'toLoadDataFromModel'])(this);\n      R.mapObjIndexed((getValueInstructions, toSaveKey) => {\n        if (getValueInstructions.value) {\n          model.setData(toSaveKey, getValueInstructions.value);\n          return;\n        }\n        const value = R_.dotPathOr('', getValueInstructions.dotPath)(selected);\n        model.setData(toSaveKey, value);\n      })(toLoadDataFromModel);\n    }\n    unloadResource() {\n      const model = this.args.model;\n      model.setData('linkTitle', '');\n      model.setData('linkResourceName', '');\n      model.setData('linkResourceKey', '');\n      model.setData('linkResourceType', '');\n      model.setData('linkUrl', '');\n    }\n    get showLink() {\n      const linkType = this.args.model?._data?.linkType;\n      const list = this.crud.lists['websites-lists-types-links'] || [];\n      const item = R.find(item => item?._data?.value === linkType)(list);\n      return item?._data?.showLink;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedFilter\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedAdapter\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"allFilters\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"allSetupData\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"query\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"showLinkEditor\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"showLinkEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setup\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_selectTypeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_selectTypeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeTypeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeTypeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadResource\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"loadResource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadResource\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadResource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showLink\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"showLink\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/links-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tdDd6IDt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@contextPrefix\\\",\\\"@formInitData\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@hasLinkToggle\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"enable link\\\",[29,[[23,1,[]],\\\"hasLink\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\",\\\"@disabled\\\",\\\"@toggleOnValue\\\",\\\"@toggleOffValue\\\"],[[23,3,[\\\"_data\\\",\\\"hasLink\\\"]],[23,4,[]],true,false]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showLinkEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"type\\\",[29,[[23,1,[]],\\\"linkType_group\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[\\\"@size\\\"],[\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,[23,4,[]],\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-types-links\\\"]],true,[23,3,[\\\"_data\\\",\\\"linkType\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"onChangeTypeTask\\\"]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@value\\\"],[true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-types-links-targets\\\"]],true,[23,4,[]],[23,3,[\\\"_data\\\",\\\"linkTarget\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not-eq\\\",[[23,3,[\\\"_data\\\",\\\"linkType\\\"]],\\\"url\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"search\\\",[29,[[23,1,[]],\\\"linkResourceName\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@autofocus\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@hasPagination\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@isRunning\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onDeselect\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onPaginationTask\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@selectedItemValueKey\\\",\\\"@tagName\\\",\\\"@value\\\"],[false,false,[23,4,[]],[23,0,[\\\"selectedFilter\\\"]],true,[23,3,[\\\"_data\\\",\\\"linkResourceKey\\\"]],\\\"fas fa-link\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"selectedFilter\\\",\\\"_data\\\",\\\"itemLabelKey\\\"]],[23,0,[\\\"selectedFilter\\\",\\\"_data\\\",\\\"itemValueKey\\\"]],[23,0,[\\\"selectedFilter\\\",\\\"results\\\"]],[23,0,[\\\"unloadResource\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"component\\\",\\\"resultsProperty\\\",\\\"query\\\"],[[23,0,[\\\"selectedAdapter\\\",\\\"adapterName\\\"]],[23,0,[\\\"selectedFilter\\\"]],[23,0,[]],\\\"results\\\",[23,0,[\\\"query\\\"]]]]]],null],[23,0,[\\\"loadResource\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,4,[]],[23,0,[\\\"selectedFilter\\\",\\\"_data\\\",\\\"resultsItemComponent\\\"]],\\\"_data.linkResourceName\\\",\\\"span\\\",[23,3,[\\\"_data\\\",\\\"linkResourceName\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showLink\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"href\\\",[29,[[23,1,[]],\\\"linkUrl\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[[12,\\\"autofocus\\\",true]],[[\\\"@readonly\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,4,[]],[28,\\\"not-eq\\\",[[23,3,[\\\"_data\\\",\\\"linkType\\\"]],\\\"url\\\"],null]],null],[23,3,[\\\"_data\\\",\\\"linkUrl\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"link title\\\",[29,[[23,1,[]],\\\"linkTitle\\\"]],[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@value\\\",\\\"@readonly\\\",\\\"@placeholder\\\"],[[23,3,[\\\"_data\\\",\\\"linkTitle\\\"]],[23,4,[]],\\\"optional\\\"]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/links-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/mixins/websites-list-by\", [\"exports\", \"client/mixins/date\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, _date, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_crud.default, _date.default, {\n    listByTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      appendPath,\n      filters,\n      match,\n      byLatest,\n      campaignStatus,\n      dateStart,\n      dateEnd,\n      query,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      if (campaignStatus) {\n        filters.setData('campaignStatus', campaignStatus);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }),\n    actions: {\n      listByDate(onHideDropdown, dateZ, date) {\n        return this.listByTask.perform({\n          date,\n          dateZ,\n          resultsToggle: 'resultsToggle'\n        }, onHideDropdown);\n      }\n    }\n  });\n});","define(\"client/pods/components/websites/panels-dash/component\", [\"exports\", \"ember-concurrency\", \"client/mixins/date\", \"client/pods/components/websites/mixins/websites-list-by\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, _date, _websitesListBy, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_websitesListBy.default, _date.default, {\n    crud: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    adapterName: 'channels/shop/campaigns',\n    init() {\n      this.crud.addLists(this, ['periods/months', 'periods/years', 'channels/shop/campaigns/reports/filters', 'taxMethods/filters']);\n      const customDateStartZ = this.dateService.getMonthStart().toISOString();\n      const customDateEndZ = this.dateService.getMonthEnd().toISOString();\n      this.customDateStartZ = customDateStartZ;\n      this.customDateEndZ = customDateEndZ;\n      this.set('showCampaignReportBy', Ember.Object.create({\n        revenueBy: 'ordered',\n        taxMethods: 'inclusive'\n      }));\n      this._super(...arguments);\n      const period = this.getPeriod();\n      const pastMonths = this.getPastMonths(14);\n      this.set('pastMonths', pastMonths);\n      this.displayByMonth(period);\n      this.tabsManager.setHeader(this.tabParent, '');\n    },\n    displayByMonth(period) {\n      const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n      this.display({\n        dateStart,\n        dateEnd\n      });\n    },\n    display(period) {\n      const {\n        dateStart,\n        dateEnd\n      } = period;\n      this.set('period', period);\n      this.set('dateStart', dateStart);\n      this.set('dateEnd', dateEnd);\n      this.fetchReports({\n        dateStart,\n        dateEnd\n      });\n    },\n    dispatchStatusFilter: Ember.computed('showCampaignReportBy.revenueBy', function () {\n      const revenueBy = this.get('showCampaignReportBy.revenueBy');\n      if (revenueBy === 'ordered') {\n        return 'all';\n      }\n      return this.get('constants.dispatchStatus.dispatched');\n    }),\n    fetchReports({\n      dateStart,\n      dateEnd\n    }) {\n      this.fetchReportTask.perform({\n        dateStart,\n        dateEnd\n      });\n      this.fetchYearTask.perform({\n        dateStart,\n        dateEnd\n      });\n    },\n    fetchReportTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd\n    }) {\n      const monthlyReport = yield this._fetchReportTask.perform({\n        dateStart,\n        dateEnd,\n        segments: ['dateZ']\n      });\n      this.set('monthlyReport', monthlyReport);\n      this.set('sourceReport', []);\n      this.set('paymentMethodKeyReport', []);\n      this.set('itemReport', []);\n      this.set('contactReport', []);\n    }),\n    displaySourceReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const sourceReport = yield this._fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['source']\n        });\n        this.set('sourceReport', sourceReport);\n      }\n    }),\n    displayPaymentMethodKeyReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const paymentMethodKeyReport = yield this._fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['paymentMethodKey']\n        });\n        this.set('paymentMethodKeyReport', paymentMethodKeyReport);\n      }\n    }),\n    displayItemReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const itemReport = yield this._fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['item']\n        });\n        this.set('itemReport', itemReport);\n      }\n    }),\n    displayContactReportTask: (0, _emberConcurrency.task)(function* () {\n      const dateStart = this.dateStart || '';\n      const dateEnd = this.dateEnd || '';\n      if (RA.isNotNilOrEmpty(dateStart) && RA.isNotNilOrEmpty(dateEnd)) {\n        const contactReport = yield this._fetchReportTask.perform({\n          dateStart,\n          dateEnd,\n          segments: ['contact', 'contactTags', 'customerType', 'memberType', 'gender', 'age']\n        });\n        this.set('contactReport', contactReport);\n      }\n    }),\n    _fetchReportTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd,\n      segments = []\n    }) {\n      const monthParams = {\n        docType: 'sales',\n        dateStart,\n        dateEnd,\n        match: ['channel'],\n        status: this.get('constants.documentsStatus.final'),\n        dispatchStatus: this.dispatchStatusFilter,\n        query: 'shop',\n        // segments: [\n        //   'dateZ',\n        //   'contact',\n        //   'item',\n        //   'channel',\n        //   'source',\n        //   'paymentMethodKey',\n        //   'promoCode',\n        //   'customerType',\n        //   'memberType',\n        //   'gender',\n        //   'age'\n        // ]\n        segments\n      };\n      const results = yield this.server.call('GET', 'api/protected/reports/dashboard/', monthParams);\n      return results.data;\n    }),\n    fetchYearTask: (0, _emberConcurrency.task)(function* ({\n      dateStart,\n      dateEnd\n    }) {\n      const yearParams = {\n        docType: 'sales',\n        dateStart: this.formatDateForUrl(this.getYearStart(dateStart)),\n        dateEnd: this.formatDateForUrl(this.getYearEnd(dateEnd)),\n        match: ['channel'],\n        status: this.get('constants.documentsStatus.final'),\n        dispatchStatus: this.dispatchStatusFilter,\n        query: 'shop',\n        segments: ['month']\n      };\n      const year = yield this.server.call('GET', 'api/protected/reports/dashboard/', yearParams);\n      this.set('yearlyReport', year.data);\n    }),\n    isTaxExclusive: Ember.computed('showCampaignReportBy.taxMethods', function () {\n      if (this.get('showCampaignReportBy.taxMethods') === 'exclusive') {\n        return true;\n      }\n      return false;\n    }),\n    actions: {\n      display(model) {\n        this.display(model);\n      },\n      displayByMonth(period) {\n        this.displayByMonth(period);\n      },\n      displayByCustom() {\n        if (!this.customDateEndZ || !this.customDateStartZ) {\n          return;\n        }\n        const period = this.dateService.getCustomPeriod(this.customDateEndZ, this.customDateStartZ);\n        this.display(period);\n      },\n      fetchReports({\n        dateStart,\n        dateEnd\n      }) {\n        dateStart = dateStart || this.dateStart;\n        dateEnd = dateEnd || this.dateEnd;\n        this.fetchReports({\n          dateStart,\n          dateEnd\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/websites/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pZG0IV00\",\n    \"block\": \"{\\\"symbols\\\":[\\\"period\\\",\\\"@chartOptions\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-inline-flex flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateStartZ\\\",[23,0,[]],[23,0,[\\\"customDateStartZ\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-margin-left-3 u-margin-right-3\\\"],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\"],[\\\"customDateEndZ\\\",[23,0,[]],[23,0,[\\\"customDateEndZ\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"fas fa-search\\\",\\\"is-primary u-margin-left-3\\\",[28,\\\"or\\\",[[24,[\\\"fetchMonthTask\\\",\\\"isRunning\\\"]],[24,[\\\"fetchYearTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"action\\\",[[23,0,[]],\\\"displayByCustom\\\"],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"hr\\\",true],[8],[9],[0,\\\" \\\\n\\\"],[4,\\\"lists/list-results\\\",null,[[\\\"list\\\",\\\"onSelect\\\"],[[24,[\\\"pastMonths\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displayByMonth\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[23,1,[\\\"name\\\"]]],null],false],[0,\\\" \\\"],[1,[23,1,[\\\"yyyy\\\"]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"title is-4\\\"],[8],[1,[28,\\\"tt\\\",[\\\"date_period\\\"],null],false],[0,\\\": \\\"],[1,[28,\\\"date\\\",[[24,[\\\"monthlyReport\\\",\\\"dateStartZ\\\"]]],null],false],[0,\\\" ~ \\\"],[1,[28,\\\"date\\\",[[24,[\\\"monthlyReport\\\",\\\"dateEndZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__table\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\",\\\"onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-reports-filters\\\"]],\\\"list-selector list-selector--horizontal\\\",[24,[\\\"showCampaignReportBy\\\"]],\\\"revenueBy\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false,[28,\\\"action\\\",[[23,0,[]],\\\"fetchReports\\\",[28,\\\"hash\\\",null,[[\\\"dateStart\\\",\\\"dateEnd\\\"],[\\\"\\\",\\\"\\\"]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],\\\"list-selector list-selector--horizontal\\\",[24,[\\\"showCampaignReportBy\\\"]],\\\"taxMethods\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-stats\\\",null,[[\\\"title\\\",\\\"isTaxExclusive\\\",\\\"report\\\",\\\"fetchReportTask\\\"],[\\\"stats for month\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"monthlyReport\\\"]],[24,[\\\"fetchReportTask\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-stats\\\",null,[[\\\"title\\\",\\\"isTaxExclusive\\\",\\\"report\\\",\\\"fetchReportTask\\\"],[\\\"stats for year\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"yearlyReport\\\"]],[24,[\\\"fetchYearTask\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__table\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartHeight\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"revenue for month\\\",\\\"bar\\\",\\\"200\\\",[23,2,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"monthlyReport\\\"]],[23,0,[\\\"monthlyReport\\\",\\\"segments\\\",\\\"dateZ\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchYearTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-for-year\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"report\\\",\\\"data\\\"],[\\\"revenue for year\\\",\\\"bar\\\",[24,[\\\"chartOptions\\\"]],\\\"200\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"yearlyReport\\\"]],[24,[\\\"yearlyReport\\\",\\\"segments\\\",\\\"month\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"sourceReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by campaign\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"sourceReport\\\",\\\"segments\\\",\\\"source\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"translate\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by payment method\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",true,[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"paymentMethodKeyReport\\\",\\\"segments\\\",\\\"paymentMethodKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"isItem\\\",\\\"data\\\"],[\\\"revenue by product\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",true,[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"itemReport\\\",\\\"segments\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by contact\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-tags\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"hasWarning\\\",\\\"warningText\\\",\\\"isContactTags\\\",\\\"data\\\"],[\\\"revenue by contact tags\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],true,\\\"may contain duplicate data\\\",true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contactTags\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by customer type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"customerType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by member type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"memberType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by gender\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"gender\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"chartHeight\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by age\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],\\\"300\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"age\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"sourceReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by shop\\\",[23,0,[\\\"displaySourceReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displaySourceReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by payment method\\\",[23,0,[\\\"displayPaymentMethodKeyReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayPaymentMethodKeyReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by product\\\",[23,0,[\\\"displayItemReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayItemReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by contact\\\",[23,0,[\\\"displayContactReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayContactReportTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/component\", [\"exports\", \"client/mixins/crud\", \"client/utils/nventor\", \"client/config/environment\", \"ember-concurrency\", \"ramda\", \"ramda-extension\"], function (_exports, _crud, _nventor, _environment, _emberConcurrency, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    adapterName: 'websites',\n    init() {\n      this.crud.addLists(this, ['statuses', 'toggles/auto', 'toggles/onOff', 'websites/lists/subPanels']);\n      this._super(...arguments);\n      this.set('config', _environment.default);\n      const tab = this.tab;\n      const model = tab.get('model');\n      this.set('model', model);\n      this.set('copyErrors', []);\n      this.tabsManager.setHeader(this.tabParent, model.getData('name'));\n      // this.set('config', config)\n    },\n    duplicateRecordTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      model\n    } = {}) {\n      adapterName = adapterName || this.adapterName;\n      model = model || this.dirty;\n      return yield this.createRecordTask.perform({\n        adapterName,\n        model,\n        errorsProp: 'copyErrors'\n      });\n    }).drop(),\n    subPanels: Ember.computed('crud.lists.websites-lists-subPanels.[]', 'model.{synced,_data.shopKey,_data.allowAllCampaigns}', 'tab.isEditingPage', function () {\n      let subPanels = this.crud?.lists['websites-lists-subPanels'] || [];\n      const tab = this.tab;\n      const isEditingPage = tab?.isEditingPage || false;\n      const allowAllCampaigns = this.model?._data?.allowAllCampaigns ?? false;\n      if (allowAllCampaigns) {\n        subPanels = R.filter(panel => {\n          if (panel?._data?.hideOnAllowAllCampaigns) {\n            return false;\n          }\n          return true;\n        })(subPanels);\n      }\n      if (isEditingPage) {\n        return R.filter(panel => {\n          if (panel?._data?.value === 'webpages') {\n            return true;\n          }\n          return false;\n        })(subPanels);\n      }\n      const shopKey = this.model?._data?.shopKey;\n      if (shopKey) {\n        return subPanels;\n      }\n      return R.filter(panel => {\n        if (panel?._data?.value === 'shop') {\n          return false;\n        }\n        return true;\n      })(subPanels);\n    }),\n    actions: {\n      editPanel() {\n        const tab = this.tab;\n        const model = this.model;\n        const activeSubTab = this.tabsManager.getActiveSubTab(tab);\n        const subPanels = R_.dotPath('crud.lists.websites-lists-subPanels')(this) || [];\n        const subTabOptions = subPanels.findBy('_data.component', activeSubTab?.component);\n        const tabOptions = {\n          loadInstructions: {\n            component: subTabOptions?._data?.editingComponent || ''\n          }\n        };\n        this.onEdit(model, {\n          tabOptions\n        });\n      },\n      prepareDuplicateRecord() {\n        const model = this.model;\n        const adapterName = this.adapterName;\n        const adapter = this.dataManager.getAdapter(adapterName);\n        const data = adapter.serialize(model);\n        const newModel = this.setupNewRecord({\n          adapterName,\n          data\n        });\n        let name = model.getData('name');\n        let shopUrl = model.getData('shopUrl');\n        name = `${name}-copy-` + _nventor.default.random.digits(3);\n        shopUrl = `${shopUrl}-copy-` + _nventor.default.random.digits(3);\n        newModel.setData('status', this.get('constants.status.inactive'));\n        newModel.setData('name', name);\n        newModel.setData('password', '');\n        newModel.setData('shopUrl', shopUrl);\n        newModel.setData('_key', '');\n        newModel.setData('_id', '');\n        newModel.setData('_rev', '');\n        newModel.setData('modified', '');\n        newModel.setData('created', '');\n        newModel.setData('copyFromKey', model.getData('_key'));\n        this.set('dirty', newModel);\n      }\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-3rd-party/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/websites/panels-display/sub-panels-3rd-party/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"azk/YyFT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDash\\\"],\\\"statements\\\":[[1,[28,\\\"websites/websites-editor/3rd-party-editor\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"model\\\"],[[24,[\\\"tab\\\"]],false,true,[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"websites/panels-display/sub-panels-footer-btns\\\",null,[[\\\"tab\\\",\\\"hasEditBtn\\\",\\\"copyErrors\\\",\\\"model\\\",\\\"dirty\\\",\\\"onEditPanel\\\",\\\"onDash\\\",\\\"onPrepareDuplicateRecord\\\",\\\"duplicateRecordTask\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\",\\\"onToggleCommissionMethod\\\",\\\"errorMsg\\\"],[[24,[\\\"tab\\\"]],true,[24,[\\\"copyErrors\\\"]],[24,[\\\"model\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"onEditPanel\\\"]],[23,1,[]],[24,[\\\"onPrepareDuplicateRecord\\\"]],[24,[\\\"duplicateRecordTask\\\"]],[24,[\\\"onAssignSalesPerson\\\"]],[24,[\\\"onUnassignSalesPerson\\\"]],[24,[\\\"onToggleCommissionMethod\\\"]],[24,[\\\"errorMsg\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-3rd-party/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-blogs/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {});\n});","define(\"client/pods/components/websites/panels-display/sub-panels-blogs/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"S0RGl202\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"blogs/tab-container\\\",[],[[\\\"@tab\\\",\\\"@master\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"_key\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-blogs/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-emails/component\", [\"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 = Ember.Component.extend();\n});","define(\"client/pods/components/websites/panels-display/sub-panels-emails/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"a9qUflvj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDash\\\"],\\\"statements\\\":[[1,[28,\\\"websites/websites-editor/emails-editor\\\",null,[[\\\"tab\\\",\\\"isReadonly\\\",\\\"isEditing\\\",\\\"model\\\"],[[24,[\\\"tab\\\"]],true,false,[24,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"websites/panels-display/sub-panels-footer-btns\\\",null,[[\\\"tab\\\",\\\"hasEditBtn\\\",\\\"copyErrors\\\",\\\"model\\\",\\\"dirty\\\",\\\"onEditPanel\\\",\\\"onDash\\\",\\\"onPrepareDuplicateRecord\\\",\\\"duplicateRecordTask\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\",\\\"onToggleCommissionMethod\\\",\\\"errorMsg\\\"],[[24,[\\\"tab\\\"]],true,[24,[\\\"copyErrors\\\"]],[24,[\\\"model\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"onEditPanel\\\"]],[23,1,[]],[24,[\\\"onPrepareDuplicateRecord\\\"]],[24,[\\\"duplicateRecordTask\\\"]],[24,[\\\"onAssignSalesPerson\\\"]],[24,[\\\"onUnassignSalesPerson\\\"]],[24,[\\\"onToggleCommissionMethod\\\"]],[24,[\\\"errorMsg\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-emails/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-footer-btns/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class WebsitesPanelsDisplaySubPanelsFooterBtns extends _component.default {}\n  _exports.default = WebsitesPanelsDisplaySubPanelsFooterBtns;\n});","define(\"client/pods/components/websites/panels-display/sub-panels-footer-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nhBfG9bG\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@disabled\\\",\\\"@onEditPanel\\\",\\\"@errors\\\",\\\"@model\\\",\\\"@hasErrors\\\",\\\"@onDash\\\",\\\"@tab\\\",\\\"@hasEditBtn\\\"],\\\"statements\\\":[[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@errors\\\",\\\"@model\\\",\\\"@hasErrors\\\"],[[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/btn-back\\\",[],[[\\\"@onSubmit\\\",\\\"@tooltipLabel\\\"],[[23,6,[]],\\\"overview\\\"]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"comments/comments-manager\\\",[],[[\\\"@componentName\\\",\\\"@isPreview\\\",\\\"@master\\\",\\\"@metaData\\\",\\\"@tab\\\",\\\"@type\\\"],[\\\"comments/comments-manager/modal-btn\\\",true,[23,4,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"campaign\\\",\\\"campaignKey\\\",\\\"name\\\"],[[23,4,[\\\"_data\\\",\\\"name\\\"]],[23,4,[\\\"_data\\\",\\\"_key\\\"]],[23,4,[\\\"_data\\\",\\\"name\\\"]]]]],[23,7,[]],\\\"websites\\\"]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-footer-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-headers/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service()\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-headers/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"n+q+kHwl\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDash\\\"],\\\"statements\\\":[[1,[28,\\\"websites/websites-editor/headers-editor\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"saveTask\\\"],[[24,[\\\"tab\\\"]],false,true,[24,[\\\"model\\\"]],[24,[\\\"updateRecordTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"websites/panels-display/sub-panels-footer-btns\\\",null,[[\\\"tab\\\",\\\"hasEditBtn\\\",\\\"copyErrors\\\",\\\"model\\\",\\\"dirty\\\",\\\"onEditPanel\\\",\\\"onDash\\\",\\\"onPrepareDuplicateRecord\\\",\\\"duplicateRecordTask\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\",\\\"onToggleCommissionMethod\\\",\\\"errorMsg\\\"],[[24,[\\\"tab\\\"]],true,[24,[\\\"copyErrors\\\"]],[24,[\\\"model\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"onEditPanel\\\"]],[23,1,[]],[24,[\\\"onPrepareDuplicateRecord\\\"]],[24,[\\\"duplicateRecordTask\\\"]],[24,[\\\"onAssignSalesPerson\\\"]],[24,[\\\"onUnassignSalesPerson\\\"]],[24,[\\\"onToggleCommissionMethod\\\"]],[24,[\\\"errorMsg\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-headers/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-news/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {});\n});","define(\"client/pods/components/websites/panels-display/sub-panels-news/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"npAQV+Oy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"news/tab-container\\\",[],[[\\\"@tab\\\",\\\"@master\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"_key\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-news/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-overview/component\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    init() {\n      // is this used? can't find any component calling websites/panels-display/sub-panels-overview.\n      this.crud.addLists(this, ['websites/reports/filters', 'taxMethods/filters']);\n      this.set('showCampaignReportBy', Ember.Object.create({\n        revenueBy: 'ordered',\n        taxMethods: 'inclusive'\n      }));\n      this._super(...arguments);\n    },\n    dispatchStatusFilter: Ember.computed('showCampaignReportBy.revenueBy', function () {\n      const revenueBy = this.get('showCampaignReportBy.revenueBy');\n      if (revenueBy === 'ordered') {\n        return 'all';\n      }\n      return this.get('constants.dispatchStatus.dispatched');\n    }),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      const model = this.model;\n      const sourceKey = model.getData('_key');\n      this.fetchReportTask.perform({\n        sourceKey\n      });\n    },\n    fetchReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const report = yield this._fetchReportTask.perform({\n        sourceKey,\n        segments: ['orderDateZ', 'expectedDispatchDateZ', 'dispatchDateZ', 'status']\n      });\n      this.set('report', report);\n      this.set('itemReport', []);\n      this.set('paymentMethodKeyReport', []);\n      this.set('contactReport', []);\n    }),\n    displayItemReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const itemReport = yield this._fetchReportTask.perform({\n        sourceKey,\n        segments: ['item']\n      });\n      this.set('itemReport', itemReport);\n    }),\n    displayPaymentMethodKeyReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const paymentMethodKeyReport = yield this._fetchReportTask.perform({\n        sourceKey,\n        segments: ['paymentMethodKey']\n      });\n      this.set('paymentMethodKeyReport', paymentMethodKeyReport);\n    }),\n    displayContactReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey\n    }) {\n      const contactReport = yield this._fetchReportTask.perform({\n        sourceKey,\n        segments: ['contact', 'contactTags', 'customerType', 'memberType', 'gender', 'age']\n      });\n      this.set('contactReport', contactReport);\n    }),\n    _fetchReportTask: (0, _emberConcurrency.task)(function* ({\n      sourceKey,\n      segments = []\n    }) {\n      const params = {\n        sourceKey,\n        status: this.get('constants.documentsStatus.final'),\n        dispatchStatus: this.dispatchStatusFilter,\n        // segments: [\n        //   'orderDateZ',\n        //   'expectedDispatchDateZ',\n        //   'dispatchDateZ',\n        //   'contact',\n        //   'item',\n        //   'paymentMethodKey',\n        //   'status',\n        //   'customerType',\n        //   'memberType',\n        //   'gender',\n        //   'age'\n        // ]\n        segments\n      };\n      const results = yield this.server.call('GET', 'api/protected/reports/campaigns/', params);\n      return results.data;\n    }),\n    isTaxExclusive: Ember.computed('showCampaignReportBy.taxMethods', function () {\n      if (this.get('showCampaignReportBy.taxMethods') === 'exclusive') {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-overview/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CWJYln18\",\n    \"block\": \"{\\\"symbols\\\":[\\\"doc\\\",\\\"@chartOptions\\\",\\\"@onDash\\\"],\\\"statements\\\":[[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__table\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"99\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\",\\\"onSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-reports-filters\\\"]],\\\"list-selector list-selector--horizontal\\\",[24,[\\\"showCampaignReportBy\\\"]],\\\"revenueBy\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false,[28,\\\"perform\\\",[[24,[\\\"fetchReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"taxMethods-filters\\\"]],\\\"list-selector list-selector--horizontal\\\",[24,[\\\"showCampaignReportBy\\\"]],\\\"taxMethods\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,false]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-stats\\\",null,[[\\\"title\\\",\\\"isTaxExclusive\\\",\\\"report\\\",\\\"fetchReportTask\\\"],[\\\"stats for campaign\\\",[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"report\\\"]],[24,[\\\"fetchReportTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"u-half-width\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"reports/dashboard/card-stat\\\",null,[[\\\"title\\\"],[\\\"total\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"report__dash-table u-full-width\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"status\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"number\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"exclusive amount\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"inclusive amount\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"report\\\",\\\"segments\\\",\\\"status\\\",\\\"invoices\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,1,[\\\"docCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"docDispatchStatus\\\",[[23,1,[\\\"segmentValue\\\",\\\"status\\\"]],[23,1,[\\\"segmentValue\\\",\\\"dispatchStatus\\\"]]],null]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"number\\\",[[23,1,[\\\"docCount\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"exclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"currency\\\",[[23,1,[\\\"inclAmt\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"showCampaignReportBy\\\",\\\"revenueBy\\\"]],\\\"ordered\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"orders by date\\\",\\\"bar\\\",[23,2,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"report\\\"]],[23,0,[\\\"report\\\",\\\"segments\\\",\\\"orderDateZ\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[24,[\\\"showCampaignReportBy\\\",\\\"revenueBy\\\"]],\\\"expectedDispatch\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"expected dispatch date\\\",\\\"bar\\\",[23,2,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"report\\\"]],[23,0,[\\\"report\\\",\\\"segments\\\",\\\"expectedDispatchDateZ\\\"]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"reports/dashboard/card-revenue-for-month\\\",[],[[\\\"@title\\\",\\\"@chartType\\\",\\\"@chartOptions\\\",\\\"@isTaxExclusive\\\",\\\"@report\\\",\\\"@data\\\",\\\"@hasNestedSegments\\\"],[\\\"dispatched by date\\\",\\\"bar\\\",[23,2,[]],[23,0,[\\\"isTaxExclusive\\\"]],[23,0,[\\\"report\\\"]],[23,0,[\\\"report\\\",\\\"segments\\\",\\\"dispatchDateZ\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"averageByItemQty\\\",\\\"isTaxExclusive\\\",\\\"isItem\\\",\\\"data\\\"],[\\\"revenue by product\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],true,[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"itemReport\\\",\\\"segments\\\",\\\"item\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by payment method\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"paymentMethodKeyReport\\\",\\\"segments\\\",\\\"paymentMethodKey\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by contact\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contact\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-tags\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"hasWarning\\\",\\\"warningText\\\",\\\"isContactTags\\\",\\\"data\\\"],[\\\"revenue by contact tags\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,\\\"may contain duplicate data\\\",true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"contactTags\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by customer type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"customerType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"translate\\\",\\\"data\\\"],[\\\"revenue by member type\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],true,[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"memberType\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by gender\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"gender\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"fetchReportTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"reports/dashboard/card-revenue-by-group-with-percentage\\\",null,[[\\\"title\\\",\\\"chartType\\\",\\\"chartOptions\\\",\\\"isTaxExclusive\\\",\\\"data\\\"],[\\\"revenue by age\\\",\\\"horizontalBar\\\",[24,[\\\"chartOptions\\\"]],[24,[\\\"isTaxExclusive\\\"]],[24,[\\\"contactReport\\\",\\\"segments\\\",\\\"age\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"itemReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by product\\\",[23,0,[\\\"displayItemReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayItemReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"paymentMethodKeyReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by payment method\\\",[23,0,[\\\"displayPaymentMethodKeyReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayPaymentMethodKeyReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,0,[\\\"contactReport\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"layouts/section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"show revenue by contact\\\",[23,0,[\\\"displayContactReportTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"displayContactReportTask\\\"]],[28,\\\"hash\\\",null,[[\\\"sourceKey\\\"],[[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[28,\\\"websites/panels-display/sub-panels-footer-btns\\\",null,[[\\\"tab\\\",\\\"hasEditBtn\\\",\\\"copyErrors\\\",\\\"model\\\",\\\"dirty\\\",\\\"onEditPanel\\\",\\\"onDash\\\",\\\"onPrepareDuplicateRecord\\\",\\\"duplicateRecordTask\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\",\\\"onToggleCommissionMethod\\\",\\\"errorMsg\\\"],[[24,[\\\"tab\\\"]],true,[24,[\\\"copyErrors\\\"]],[24,[\\\"model\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"onEditPanel\\\"]],[23,3,[]],[24,[\\\"onPrepareDuplicateRecord\\\"]],[24,[\\\"duplicateRecordTask\\\"]],[24,[\\\"onAssignSalesPerson\\\"]],[24,[\\\"onUnassignSalesPerson\\\"]],[24,[\\\"onToggleCommissionMethod\\\"]],[24,[\\\"errorMsg\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-overview/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/component\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/crud\", \"ember-concurrency\"], function (_exports, R, RA, _crud, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    adapterName: 'websites/pages',\n    applicationService: Ember.inject.service('application'),\n    search: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    websitesService: Ember.inject.service('websites'),\n    isShowWebsitePagesNav: true,\n    isMenuExpanded: false,\n    currentScrollPosition: 0,\n    didInsertElement() {\n      this._super(...arguments);\n      const model = this.get('model');\n      const filters = this.search.setupFilters({\n        adapterName: 'websites/pages/filters',\n        defaultFiltersData: {\n          master: model.getData('_key'),\n          allowAllCampaigns: model.getData('allowAllCampaigns')\n        }\n      });\n      this.set('filters', filters);\n      this.fetchPagesCollectionTask.perform();\n    },\n    fetchPagesCollectionTask: (0, _emberConcurrency.task)(function* () {\n      const model = this.get('model');\n      const collectionModel = yield this.websitesService.fetchPagesCollectionTask.perform(model);\n      this.set('pagesCollection', collectionModel);\n      const pages = collectionModel.get('sorted') || [];\n      collectionModel.setData('pages', pages);\n      const initialPage = this.tabsManager.getLoadInstructions(this.tab) || pages.get('firstObject');\n      if (initialPage) {\n        this.displaySubPanel('websites/panels-display/sub-panels-pages/pages-display', initialPage);\n        this.set('isShowWebsitePagesNav', true);\n      } else {\n        this.newPanel(model);\n      }\n    }),\n    isSearchResults: Ember.computed('filters.results.[]', 'filters._data.query', 'pagesCollection.{synced,menu.[]}', function () {\n      const filters = this.get('filters');\n      const query = filters?._data?.query;\n      const results = filters?.results || [];\n      if (query && RA.isNotNilOrEmpty(results)) {\n        return true;\n      }\n      return false;\n    }),\n    filteredPages: Ember.computed('filters.results.[]', 'filters._data.query', 'pagesCollection.{synced,menu.[],menuAllowAllCampaigns.[]}', 'model._data.allowAllCampaigns', function () {\n      const filters = this.get('filters');\n      const query = filters?._data?.query;\n      const results = filters?.results || [];\n      const pagesCollection = this.get('pagesCollection');\n      if (query && RA.isNotNilOrEmpty(results)) {\n        return results;\n      }\n      const allowAllCampaigns = this?.model?._data?.allowAllCampaigns ?? false;\n      if (allowAllCampaigns) {\n        return pagesCollection?.menuAllowAllCampaigns ?? [];\n      }\n      return pagesCollection?.menu ?? [];\n    }),\n    displaySubPanel(componentName, pageModel) {\n      if (!pageModel?.isModel) {\n        const collectionModel = this.pagesCollection;\n        const pages = collectionModel.get('sorted') || [];\n        pageModel = this.tabsManager.getLoadInstructions(this.tab) || pages.get('firstObject');\n      }\n      if (pageModel?.isModel) {\n        const subTabOptions = {\n          component: componentName,\n          id: pageModel.getData('name'),\n          model: pageModel\n        };\n        const tab = this.tab;\n        tab.resetTabs();\n        this.tabsManager.replaceSubTab(tab, subTabOptions);\n        this.set('selectedPageModel', pageModel);\n      } else {\n        const model = this.model;\n        this.newPanel(model);\n      }\n      if (this.applicationService.isMobile) {\n        this.set('isShowWebsitePagesNav', false);\n      }\n    },\n    newPanel(website, parentModel, type) {\n      const collectionModel = this.pagesCollection;\n      const data = {};\n      const pages = collectionModel.get('sorted') || [];\n      if (pages.length < 1) {\n        data.isHome = true;\n        data.name = this.intl.t('home page');\n      } else {\n        data.isHome = false;\n      }\n      data.master = website.getData('_key');\n      data.status = this.get('constants.status.active');\n      let depth = 0;\n      const posIndex = collectionModel.get('nextPosIndex');\n      if (R.path(['_data', 'name'], parentModel)) {\n        // index = collectionModel.getNextSubIndex(parentModel)\n        const parentsArray = [];\n        const grandParent = parentModel.getData('parent');\n        if (grandParent) {\n          parentsArray.pushObject(grandParent);\n        }\n        parentsArray.pushObject(parentModel.getData('_key'));\n        const currentParent = R.join('/', parentsArray);\n        depth = R.pipe(R.split('/'), R.length)(currentParent);\n        data.parent = currentParent;\n      }\n      data.posIndex = posIndex;\n      data.depth = depth;\n      data.type = type;\n      data.hasTemplate = false;\n      if (type === 'page') {\n        data.hasTemplate = true;\n      }\n      const pageModel = this.setupNewRecord({\n        adapterName: 'websites/pages',\n        data\n      });\n      pageModel.onSelectType();\n      const subTabOptions = {\n        component: 'websites/panels-display/sub-panels-pages/pages-new',\n        value: this.intl.t('new'),\n        model: pageModel\n      };\n      const tab = this.tab;\n      this.tabsManager.replaceSubTab(tab, subTabOptions);\n      if (this.applicationService.isMobile) {\n        this.set('isShowWebsitePagesNav', false);\n      }\n    },\n    actions: {\n      newPage(onHideDropdown, type, website = this.model, parent) {\n        this.newPanel(website, parent, type);\n        if (onHideDropdown) {\n          onHideDropdown();\n        }\n      },\n      displaySubPanel(model) {\n        const parentTab = this.parentTab;\n        Ember.set(parentTab, 'isEditingPage', false);\n        this.displaySubPanel('websites/panels-display/sub-panels-pages/pages-display', model);\n      },\n      afterRemovePage() {\n        this.displaySubPanel('websites/panels-display/sub-panels-pages/pages-display');\n      },\n      editPage(model, {\n        currentScrollPosition = 0\n      } = {}) {\n        this.set('currentScrollPosition', currentScrollPosition);\n        const parentTab = this.parentTab;\n        Ember.set(parentTab, 'isEditingPage', true);\n        return this.displaySubPanel('websites/panels-display/sub-panels-pages/pages-edit', model);\n      },\n      reorderPages(droppedOn, position, dragged) {\n        const pagesCollection = this.pagesCollection;\n        let pages = pagesCollection.reorderPages(droppedOn, position, dragged);\n        pages = R.map(page => {\n          page.set('posChanged', false);\n          return {\n            _key: page.getData('_key'),\n            posIndex: page.getData('posIndex'),\n            depth: page.getData('depth'),\n            parent: page.getData('parent')\n          };\n        })(pages);\n        if (!R.isEmpty(pages)) {\n          const adapterName = 'websites/pages/collection';\n          const dirty = this.setupDirty({\n            adapterName,\n            model: pagesCollection\n          });\n          dirty.setData('pages', pages);\n          const master = this.get('model._data._key');\n          const appendPath = `/indexes/${master}`;\n          this.updateRecordTask.perform({\n            adapterName,\n            appendPath,\n            model: dirty\n          });\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div',\n    classNames: ['nav-tree'],\n    translate: true,\n    isViewable: true,\n    disabled: false,\n    labelKey: 'label',\n    isDraggable: true,\n    subProperty: 'sub',\n    init() {\n      this._super(...arguments);\n      this.set('itemClassNames', []);\n    },\n    actions: {\n      selectOrToggleExpand(component, item, ...args) {\n        return this.onSelect(item, ...args);\n        // const itemHasContentKey = this.get('itemHasContentKey')\n        // if (itemHasContentKey) {\n\n        //   if (item.get(itemHasContentKey)) {\n        //     return this.get('onSelect')(item)\n        //   }\n        // }\n        // component.toggleProperty('isExpanded')\n      },\n      toggleExpand(component) {\n        component.toggleProperty('isExpanded');\n      },\n      drop() {\n        if (this.onDrop) {\n          this.onDrop(...arguments);\n        }\n      }\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-item/component\", [\"exports\", \"client/pods/tabs-manager/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 = Ember.Component.extend({\n    crud: Ember.inject.service(),\n    websitesService: Ember.inject.service('websites'),\n    classNames: [],\n    hasDropAboveContainer: true,\n    hasDropBelowContainer: true,\n    isDraggable: true,\n    isViewable: true,\n    item: null,\n    labelKey: 'label',\n    tagName: '',\n    translate: true,\n    init() {\n      this._super(...arguments);\n      if (this.get('item._data.isHome')) {\n        this.set('droppable', false);\n      }\n      const newTab = _model.default.create();\n      this.set('newTab', newTab);\n    },\n    label: Ember.computed('item', 'labelKey', 'item.synced', function () {\n      return this.get('item.' + this.labelKey);\n    }),\n    draggable: Ember.computed('item._data.isHome', 'isDraggable', function () {\n      if (this.get('item._data.isHome')) {\n        return false;\n      }\n      return this.get('isDraggable');\n    }),\n    isSelected: Ember.computed('selectedPageModel._data._key', function () {\n      if (!this?.selectedPageModel?._data?._key) {\n        return false;\n      }\n      if (this?.selectedPageModel?._data?._key == this.item?._data?._key) {\n        return true;\n      }\n      return false;\n    }),\n    _hasDropAboveContainer: Ember.computed('index', 'hasDropAboveContainer', function () {\n      if (this.hasDropAboveContainer && this.index === 0) {\n        return true;\n      }\n      return false;\n    }),\n    previewUrl: Ember.computed('item._data.url', 'website._data.{domain,domainVerified,subdomain}', function () {\n      return this.websitesService.getPreviewLink({\n        model: this.item,\n        website: this.website\n      });\n    }),\n    actions: {\n      select(disabled, item) {\n        if (!disabled) {\n          return this.onSelect(item, false);\n        }\n      }\n\n      // toggleQuickOptions (item) {\n      //   return this.onSelect(item, true)\n      // }\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/StUcHYZ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"showOnData\\\",\\\"index\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@pagesCollection\\\",\\\"@website\\\",\\\"@item\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"website-nav-tree__item-container \\\",[28,\\\"if\\\",[[23,0,[\\\"isSelected\\\"]],\\\"is-selected\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"draggable\\\"]],[24,[\\\"_hasDropAboveContainer\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"helpers/drop-container\\\",null,[[\\\"classNames\\\",\\\"droppable\\\",\\\"onDrop\\\"],[\\\"drop-container--above\\\",[24,[\\\"draggable\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onDrop\\\"]],\\\"above\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"website-nav-tree__item-wrapper\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"flex-container-row flex-container--justify-space-between \\\",[28,\\\"if\\\",[[24,[\\\"disabled\\\"]],\\\"disabled\\\"],null],\\\" website-nav-tree__item\\\"]]],[3,\\\"action\\\",[[23,0,[]],\\\"select\\\",[24,[\\\"disabled\\\"]],[24,[\\\"item\\\"]]]],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-desc \\\",[28,\\\"if\\\",[[23,0,[\\\"isSelected\\\"]],\\\"u-desc--bold\\\"],null],\\\" u-truncate\\\"]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[24,[\\\"label\\\"]]],[[\\\"translate\\\"],[[24,[\\\"translate\\\"]]]]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"pageUrl\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-margin-left-5 u-desc u-desc--italics u-desc--mini u-truncate\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"websitePageUrl\\\",[[23,7,[]],[23,8,[]],[28,\\\"hash\\\",null,[[\\\"omitDomain\\\"],[true]]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"website-nav-tree__info u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"website_type_\\\",[28,\\\"or\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"type\\\"]],\\\"page\\\"],null]],null]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"item\\\",\\\"showOnLabels\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isOn\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n                  \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[23,2,[\\\"label\\\"]],false],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2,3]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"website-nav-tree__info u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"channels/shop/shop-status\\\",[],[[\\\"@model\\\"],[[22,\\\"item\\\"]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"isDynamicPage\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-icon\\\",[],[[\\\"@icon\\\",\\\"@clickToView\\\",\\\"@tooltipLabel\\\"],[\\\"fas fa-lock\\\",false,\\\"system generated\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-margin-left--auto flex-container-row flex-container--align-items-center\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"isHome\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\"],[\\\"element-btn--no-border\\\",\\\"fa-solid fa-house\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isExpandable\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"classNames\\\",\\\"isToggler\\\",\\\"toggleIsOn\\\"],[\\\"element-btn--no-border\\\",true,[24,[\\\"isExpanded\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasSettingsModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@classNames\\\",\\\"@translate\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\"],[\\\"fas fa-cog\\\",\\\"element-btn--no-border\\\",false,[24,[\\\"item\\\",\\\"pageName\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"websites/websites-editor/pages-editor/settings-modal\\\",[],[[\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@pagesCollection\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@onCloseDialogAction\\\",\\\"@onRemove\\\"],[[23,4,[]],[23,5,[]],[28,\\\"if\\\",[[23,5,[]],false,true],null],[22,\\\"item\\\"],[23,6,[]],[23,0,[\\\"newTab\\\"]],[23,7,[]],[23,1,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[24,[\\\"item\\\"]],true,[23,1,[]]]]]],null]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n            \\\"],[1,[28,\\\"helpers/drag-container\\\",null,[[\\\"data\\\",\\\"draggable\\\",\\\"onDragStart\\\"],[[28,\\\"hash\\\",null,[[\\\"index\\\",\\\"_key\\\"],[[24,[\\\"item\\\",\\\"_data\\\",\\\"index\\\"]],[24,[\\\"item\\\",\\\"_data\\\",\\\"_key\\\"]]]]],[24,[\\\"draggable\\\"]],[24,[\\\"onDragStart\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"item\\\",\\\"_data\\\",\\\"isHome\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"onNewPage\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"fas fa-plus\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onNewPage\\\"]],[24,[\\\"item\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasDropBelowContainer\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"helpers/drop-container\\\",null,[[\\\"classNames\\\",\\\"droppable\\\",\\\"onDrop\\\"],[\\\"drop-container--below\\\",true,[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onDrop\\\"]],\\\"below\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-nested/component\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend((_dec = Ember._action, _obj = {\n    tagName: 'div',\n    classNames: ['nav-nested'],\n    translate: true,\n    item: null,\n    isExpanded: false,\n    childIsExpanded: false,\n    disabled: false,\n    isViewable: true,\n    init() {\n      this._super(...arguments);\n      this.set('childIsExpanded', this.isExpanded);\n      const selected = this.selected;\n      const item = this.item;\n      if (selected) {\n        if (selected._data._key === item._data._key) {\n          if (!this.disabled) {\n            this.set('disabled', true);\n          }\n        }\n      }\n    },\n    wasUpdated(isExpanded) {\n      this.set('childIsExpanded', isExpanded);\n    },\n    draggable: Ember.computed('item._data.isHome', function () {\n      if (this.get('item._data.isHome')) {\n        return false;\n      }\n      return true;\n    }),\n    actions: {\n      drop() {\n        if (this.onDrop) {\n          this.onDrop(...arguments);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"wasUpdated\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"wasUpdated\"), _obj), _obj));\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-nested/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/v8p4Hu6\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"websites/panels-display/sub-panels-pages/nav-menu-nested/nav-item\\\",null,[[\\\"disabled\\\",\\\"excludePath\\\",\\\"excludeWhen\\\",\\\"hasDropAboveContainer\\\",\\\"hasDropBelowContainer\\\",\\\"iconKey\\\",\\\"isDraggable\\\",\\\"isExpandable\\\",\\\"isExpanded\\\",\\\"item\\\",\\\"itemHasContentKey\\\",\\\"labelKey\\\",\\\"onDrop\\\",\\\"onNewPage\\\",\\\"onSelect\\\",\\\"onToggleExpand\\\",\\\"tab\\\",\\\"onNew\\\",\\\"onDisplay\\\",\\\"onAfterRemove\\\",\\\"onEdit\\\",\\\"translate\\\",\\\"website\\\",\\\"pagesCollection\\\",\\\"selectedPageModel\\\",\\\"hasSettingsModal\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"excludePath\\\"]],[24,[\\\"excludeWhen\\\"]],false,false,[24,[\\\"iconKey\\\"]],[24,[\\\"isDraggable\\\"]],true,[24,[\\\"childIsExpanded\\\"]],[24,[\\\"item\\\"]],[24,[\\\"itemHasContentKey\\\"]],[24,[\\\"labelKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"drop\\\",[24,[\\\"item\\\"]]],null],[24,[\\\"onNewPage\\\"]],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onSelectOrToggleExpand\\\"]],[23,0,[]]],null],[28,\\\"action\\\",[[23,0,[]],[24,[\\\"onToggleExpand\\\"]],[23,0,[]]],null],[24,[\\\"tab\\\"]],[24,[\\\"onNew\\\"]],[24,[\\\"onDisplay\\\"]],[24,[\\\"onAfterRemove\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"website\\\"]],[24,[\\\"pagesCollection\\\"]],[24,[\\\"selectedPageModel\\\"]],[24,[\\\"hasSettingsModal\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"childIsExpanded\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[1,[28,\\\"websites/panels-display/sub-panels-pages/nav-menu-nested\\\",null,[[\\\"classNames\\\",\\\"disabled\\\",\\\"excludePath\\\",\\\"excludeWhen\\\",\\\"dropZone\\\",\\\"iconKey\\\",\\\"isDraggable\\\",\\\"isExpanded\\\",\\\"itemHasContentKey\\\",\\\"labelKey\\\",\\\"menu\\\",\\\"onDrop\\\",\\\"onNewPage\\\",\\\"onSelect\\\",\\\"selected\\\",\\\"subProperty\\\",\\\"tab\\\",\\\"onNew\\\",\\\"onDisplay\\\",\\\"onAfterRemove\\\",\\\"onEdit\\\",\\\"translate\\\",\\\"website\\\",\\\"pagesCollection\\\",\\\"selectedPageModel\\\",\\\"hasSettingsModal\\\"],[\\\"nav-tree__children-container\\\",[24,[\\\"disabled\\\"]],[24,[\\\"excludePath\\\"]],[24,[\\\"excludeWhen\\\"]],[24,[\\\"item\\\",\\\"_data\\\",\\\"index\\\"]],[24,[\\\"iconKey\\\"]],[24,[\\\"isDraggable\\\"]],[24,[\\\"childIsExpanded\\\"]],[24,[\\\"itemHasContentKey\\\"]],[24,[\\\"labelKey\\\"]],[28,\\\"get\\\",[[24,[\\\"item\\\"]],[24,[\\\"subProperty\\\"]]],null],[24,[\\\"onDrop\\\"]],[24,[\\\"onNewPage\\\"]],[24,[\\\"onSelect\\\"]],[24,[\\\"selected\\\"]],[24,[\\\"subProperty\\\"]],[24,[\\\"tab\\\"]],[24,[\\\"onNew\\\"]],[24,[\\\"onDisplay\\\"]],[24,[\\\"onAfterRemove\\\"]],[24,[\\\"onEdit\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"website\\\"]],[24,[\\\"pagesCollection\\\"]],[24,[\\\"selectedPageModel\\\"]],[24,[\\\"hasSettingsModal\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[7,\\\"span\\\",false],[12,\\\"style\\\",\\\"display:none;\\\"],[3,\\\"did-update\\\",[[28,\\\"fn\\\",[[23,0,[\\\"wasUpdated\\\"]],[24,[\\\"isExpanded\\\"]]],null]]],[8],[0,\\\"\\\\n  \\\"],[1,[22,\\\"isExpanded\\\"],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n\\\"],[1,[28,\\\"helpers/drop-container\\\",null,[[\\\"classNames\\\",\\\"droppable\\\",\\\"onDrop\\\"],[\\\"drop-container--below\\\",[24,[\\\"draggable\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"drop\\\",[24,[\\\"item\\\"]],\\\"below\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/nav-nested/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"CwvtaZ4C\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"index\\\",\\\"&default\\\",\\\"@excludeWhen\\\",\\\"@excludePath\\\"],\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"menu\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"isNotExcluded\\\",[[23,1,[]],[23,5,[]],[23,4,[]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"isEmptyProp\\\",[[23,1,[]],[24,[\\\"subProperty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"websites/panels-display/sub-panels-pages/nav-menu-nested/nav-item\\\",null,[[\\\"disabled\\\",\\\"dropPosition\\\",\\\"dropZone\\\",\\\"hasDropAboveContainer\\\",\\\"iconKey\\\",\\\"index\\\",\\\"isDraggable\\\",\\\"item\\\",\\\"itemHasContentKey\\\",\\\"labelKey\\\",\\\"onDrop\\\",\\\"onNewPage\\\",\\\"onSelect\\\",\\\"tab\\\",\\\"translate\\\",\\\"website\\\",\\\"pagesCollection\\\",\\\"selectedPageModel\\\",\\\"hasSettingsModal\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"dropPosition\\\"]],[24,[\\\"dropZone\\\"]],true,[24,[\\\"iconKey\\\"]],[23,2,[]],[24,[\\\"isDraggable\\\"]],[23,1,[]],[24,[\\\"itemHasContentKey\\\"]],[24,[\\\"labelKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"drop\\\",[23,1,[]]],null],[24,[\\\"onNewPage\\\"]],[24,[\\\"onSelect\\\"]],[24,[\\\"tab\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"website\\\"]],[24,[\\\"pagesCollection\\\"]],[24,[\\\"selectedPageModel\\\"]],[24,[\\\"hasSettingsModal\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"websites/panels-display/sub-panels-pages/nav-menu-nested/nav-nested\\\",null,[[\\\"disabled\\\",\\\"excludePath\\\",\\\"excludeWhen\\\",\\\"dropZone\\\",\\\"iconKey\\\",\\\"isDraggable\\\",\\\"isExpanded\\\",\\\"item\\\",\\\"itemHasContentKey\\\",\\\"labelKey\\\",\\\"onDrop\\\",\\\"onNewPage\\\",\\\"onSelect\\\",\\\"onSelectOrToggleExpand\\\",\\\"onToggleExpand\\\",\\\"selected\\\",\\\"subProperty\\\",\\\"tab\\\",\\\"translate\\\",\\\"website\\\",\\\"pagesCollection\\\",\\\"selectedPageModel\\\",\\\"hasSettingsModal\\\"],[[24,[\\\"disabled\\\"]],[24,[\\\"excludePath\\\"]],[24,[\\\"excludeWhen\\\"]],[24,[\\\"dropZone\\\"]],[24,[\\\"iconKey\\\"]],[24,[\\\"isDraggable\\\"]],[24,[\\\"isExpanded\\\"]],[23,1,[]],[24,[\\\"itemHasContentKey\\\"]],[24,[\\\"labelKey\\\"]],[24,[\\\"onDrop\\\"]],[24,[\\\"onNewPage\\\"]],[24,[\\\"onSelect\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"selectOrToggleExpand\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"toggleExpand\\\"],null],[24,[\\\"selected\\\"]],[24,[\\\"subProperty\\\"]],[24,[\\\"tab\\\"]],[24,[\\\"translate\\\"]],[24,[\\\"website\\\"]],[24,[\\\"pagesCollection\\\"]],[24,[\\\"selectedPageModel\\\"]],[24,[\\\"hasSettingsModal\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[24,[\\\"blockType\\\"]],\\\"append\\\"],null],[25,3]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[14,3],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1,2]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-pages/nav-menu-nested/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/pages-display/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 WebsitesPanelsDisplaySubPanelsPagesPagesDisplayComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _class = class WebsitesPanelsDisplaySubPanelsPagesPagesDisplayComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/pages-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D3t0QE/D\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@model\\\",\\\"@website\\\",\\\"@pagesCollection\\\",\\\"@onEdit\\\",\\\"@onNew\\\",\\\"@onAfterRemove\\\",\\\"@isShowWebsitePagesNav\\\",\\\"@currentScrollPosition\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[23,2,[\\\"allowWebBuilder\\\"]],[23,2,[\\\"_data\\\",\\\"hasTemplate\\\"]],[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"templateType\\\"]],[23,0,[\\\"constants\\\",\\\"templateTypes\\\",\\\"blocks\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor\\\",[],[[\\\"@website\\\",\\\"@page\\\",\\\"@tab\\\",\\\"@pagesCollection\\\",\\\"@currentScrollPosition\\\",\\\"@onEdit\\\",\\\"@onNew\\\",\\\"@isShowWebsitePagesNav\\\"],[[23,3,[]],[23,2,[]],[23,1,[]],[23,4,[]],[23,9,[]],[23,5,[]],[23,6,[]],[23,8,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"websites/websites-editor/pages-editor\\\",[],[[\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@model\\\",\\\"@website\\\",\\\"@pagesCollection\\\",\\\"@onEdit\\\",\\\"@onNew\\\",\\\"@onAfterRemove\\\",\\\"@isShowWebsitePagesNav\\\",\\\"@onRemove\\\"],[[23,1,[]],false,false,[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]],[23,8,[]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[23,2,[]],[23,7,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-pages/pages-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/pages-edit/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 WebsitesPanelsDisplaySubPanelsPagesPagesEditComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _class = class WebsitesPanelsDisplaySubPanelsPagesPagesEditComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor4, this);\n      const model = this.args.model;\n      const dirty = this.crud.setupDirty({\n        adapterName: 'websites/pages',\n        model\n      });\n      Ember.set(this, 'dirty', dirty);\n    }\n    get shouldUseSimpleBlockEditor() {\n      if (this.args.model?._data?.templateType !== this.constants.templateTypes.blocks) {\n        return false;\n      }\n      if (this.args.model?._data?.isDynamicPage === true) {\n        return false;\n      }\n      if (this.args.model?._data?.hasTemplate === false) {\n        return false;\n      }\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class); // import Component from '@ember/component'\n  // import CrudMixin from '../../../../../../mixins/crud'\n  // import { task } from 'ember-concurrency'\n  // export default Component.extend(CrudMixin, {\n  //   adapterName: 'websites/pages',\n  //   init () {\n  //     this._super(...arguments)\n  //     const dirty = this.crud.setupDirty({\n  //       adapterName: this.adapterName,\n  //       model: this.model\n  //     })\n  //     this.set('dirty', dirty)\n  //   },\n  //   updateTask: task(function * ({ adapterName }, model, options) {\n  //     yield this.updateRecordTask.perform({ adapterName, model, ...options })\n  //   }).drop(),\n  //   actions: {\n  //     cancel () {\n  //       const original = this.crud.cancelEditing({\n  //         adapterName: this.adapterName,\n  //         dirty: this.dirty\n  //       })\n  //       this.onDisplay(original)\n  //     }\n  //   }\n  // })\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/pages-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"m5QDiTgm\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@website\\\",\\\"@pagesCollection\\\",\\\"@onDisplay\\\",\\\"@onAfterRemove\\\",\\\"@currentScrollPosition\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"shouldUseSimpleBlockEditor\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"simple-editor\\\",[],[[\\\"@website\\\",\\\"@page\\\",\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isRunning\\\",\\\"@pagesCollection\\\",\\\"@currentScrollPosition\\\",\\\"@onCancel\\\",\\\"@onAfterCancel\\\",\\\"@onSaveTask\\\",\\\"@onAfterSave\\\"],[[23,2,[]],[23,0,[\\\"dirty\\\"]],[23,1,[]],true,false,[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],[23,3,[]],[23,6,[]],[23,0,[\\\"crud\\\",\\\"cancelEditing\\\"]],[23,4,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"websites/websites-editor/pages-editor\\\",[],[[\\\"@tab\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@website\\\",\\\"@pagesCollection\\\",\\\"@errors\\\",\\\"@fullscreenOnInit\\\",\\\"@onCancel\\\",\\\"@onAfterRemove\\\",\\\"@isRunning\\\",\\\"@onSaveTask\\\",\\\"@onRemove\\\"],[[23,1,[]],true,false,false,[23,0,[\\\"dirty\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"errors\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"cancelEditing\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"dirty\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[23,0,[\\\"dirty\\\"]],[23,4,[]]]]]],null],[23,5,[]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"tab\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[23,0,[\\\"dirty\\\"]],[23,1,[]],[23,4,[]]]]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[23,0,[\\\"dirty\\\"]],[23,0,[\\\"onAfterRemove\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-pages/pages-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/pages-new/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\", \"ramda\"], function (_exports, _crud, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    saveTask: (0, _emberConcurrency.task)(function* ({\n      adapterName,\n      onAfter\n    }, model, options) {\n      return yield this.createRecordTask.perform({\n        adapterName,\n        onAfter,\n        model,\n        ...options\n      });\n    }).drop(),\n    actions: {\n      onAfter(model) {\n        model.set('preSaved', true);\n        const isWebsitePage = R.pathEq(['_data', 'type'], 'page')(model);\n        if (isWebsitePage) {\n          this.onEdit(model);\n        } else {\n          this.onDisplay(model);\n        }\n        return model;\n      }\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/pages-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GU1o9V0H\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"websites/websites-editor/pages-editor\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"website\\\",\\\"fullscreenOnInit\\\",\\\"pagesCollection\\\",\\\"errors\\\",\\\"onCancel\\\",\\\"onSaveTask\\\"],[[24,[\\\"tab\\\"]],false,true,false,[24,[\\\"model\\\"]],[24,[\\\"website\\\"]],true,[24,[\\\"pagesCollection\\\"]],[24,[\\\"errors\\\"]],[24,[\\\"onDisplay\\\"]],[28,\\\"perform\\\",[[24,[\\\"saveTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"tab\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[24,[\\\"tab\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onAfter\\\"],null]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-pages/pages-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-pages/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"BWgugFnQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"onHideDropdown\\\",\\\"@model\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@isPanel\\\",\\\"@isSticky\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,true,false,[23,0,[\\\"isShowWebsitePagesNav\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[]],\\\"isShowWebsitePagesNav\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/section\\\",[[12,\\\"class\\\",\\\"flex-container-row flex-container--align-items-center\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@placeholder\\\",\\\"@autofocus\\\",\\\"@disabled\\\",\\\"@value\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@isSearchBar\\\"],[\\\"webpages\\\",true,[24,[\\\"model\\\",\\\"_data\\\",\\\"allowAllCampaigns\\\"]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]],[28,\\\"or\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"crud\\\",\\\"listByTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"appendPath\\\",\\\"filters\\\",\\\"resultsProperty\\\",\\\"component\\\"],[\\\"websites/pages\\\",[28,\\\"concat\\\",[\\\"master/\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null],[23,0,[\\\"filters\\\"]],\\\"results\\\",[23,0,[]]]]],[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"query\\\"]]],null],true]]],[0,\\\"\\\\n\\\"],[4,\\\"lists/list-btn\\\",null,[[\\\"icon\\\",\\\"disabled\\\"],[\\\"fas fa-plus\\\",[24,[\\\"model\\\",\\\"_data\\\",\\\"allowAllCampaigns\\\"]]]],{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"website_type_page\\\",\\\"fas fa-plus\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"newPage\\\",[23,2,[]],\\\"page\\\",[24,[\\\"website\\\"]]],null]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"website_type_category\\\",\\\"fas fa-plus\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"newPage\\\",[23,2,[]],\\\"category\\\",[24,[\\\"website\\\"]]],null]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"icon\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"website_type_link\\\",\\\"fas fa-plus\\\",[24,[\\\"disabled\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"newPage\\\",[23,2,[]],\\\"link\\\",[24,[\\\"website\\\"]]],null]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@isToggler\\\",\\\"@disabled\\\",\\\"@toggleOffIconRightClassName\\\",\\\"@toggleOnIconRightClassName\\\",\\\"@toggleIsOn\\\"],[true,[24,[\\\"model\\\",\\\"_data\\\",\\\"allowAllCampaigns\\\"]],\\\"fa-regular fa-square-plus\\\",\\\"fa-regular fa-square-minus\\\",[23,0,[\\\"isMenuExpanded\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[1,[28,\\\"websites/panels-display/sub-panels-pages/nav-menu-nested\\\",null,[[\\\"classNames\\\",\\\"menu\\\",\\\"pagesCollection\\\",\\\"isDraggable\\\",\\\"isExpanded\\\",\\\"labelKey\\\",\\\"itemHasContentKey\\\",\\\"translate\\\",\\\"isViewable\\\",\\\"website\\\",\\\"tab\\\",\\\"hasSettingsModal\\\",\\\"selectedPageModel\\\",\\\"onSelect\\\",\\\"onDrop\\\"],[\\\"pages-nav\\\",[23,0,[\\\"filteredPages\\\"]],[24,[\\\"pagesCollection\\\"]],[28,\\\"if\\\",[[24,[\\\"isSearchResults\\\"]],false,true],null],[23,0,[\\\"isMenuExpanded\\\"]],\\\"pageName\\\",\\\"_data.hasTemplate\\\",false,true,[24,[\\\"model\\\"]],[24,[\\\"tab\\\"]],true,[23,0,[\\\"selectedPageModel\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"displaySubPanel\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"reorderPages\\\"],null]]]],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[24,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@label\\\",\\\"@translate\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,0,[\\\"isShowWebsitePagesNav\\\"]],[23,1,[\\\"model\\\",\\\"pageName\\\"]],false]]],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n              \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\",\\\"@icon\\\"],[[28,\\\"websitePageUrl\\\",[[23,3,[]],[23,1,[\\\"model\\\"]]],null],\\\"fas fa-external-link-alt\\\"]]],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"model\\\",\\\"_data\\\",\\\"isPublicTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n                \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@label\\\"],[\\\"tag is-warning\\\",\\\"fas fa-exclamation-triangle\\\",\\\"website template\\\"]]],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"isShowWebsitePagesNav\\\",\\\"pagesCollection\\\",\\\"model\\\",\\\"website\\\",\\\"onNew\\\",\\\"onDisplay\\\",\\\"onAfterRemove\\\",\\\"onEdit\\\",\\\"isShowWebsitePagesNav\\\",\\\"currentScrollPosition\\\"],[[23,1,[]],[24,[\\\"isShowWebsitePagesNav\\\"]],[24,[\\\"pagesCollection\\\"]],[23,1,[\\\"model\\\"]],[24,[\\\"model\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"newPage\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"displaySubPanel\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"afterRemovePage\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"editPage\\\"],null],[23,0,[\\\"isShowWebsitePagesNav\\\"]],[23,0,[\\\"currentScrollPosition\\\"]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-pages/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-seo/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service()\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-seo/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"aficl44K\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDash\\\"],\\\"statements\\\":[[1,[28,\\\"websites/websites-editor/seo-editor\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"saveTask\\\"],[[24,[\\\"tab\\\"]],false,true,[24,[\\\"model\\\"]],[24,[\\\"updateRecordTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"websites/panels-display/sub-panels-footer-btns\\\",null,[[\\\"tab\\\",\\\"hasEditBtn\\\",\\\"copyErrors\\\",\\\"model\\\",\\\"dirty\\\",\\\"onEditPanel\\\",\\\"onDash\\\",\\\"onPrepareDuplicateRecord\\\",\\\"duplicateRecordTask\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\",\\\"onToggleCommissionMethod\\\",\\\"errorMsg\\\"],[[24,[\\\"tab\\\"]],true,[24,[\\\"copyErrors\\\"]],[24,[\\\"model\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"onEditPanel\\\"]],[23,1,[]],[24,[\\\"onPrepareDuplicateRecord\\\"]],[24,[\\\"duplicateRecordTask\\\"]],[24,[\\\"onAssignSalesPerson\\\"]],[24,[\\\"onUnassignSalesPerson\\\"]],[24,[\\\"onToggleCommissionMethod\\\"]],[24,[\\\"errorMsg\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-seo/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-settings/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service()\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-settings/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Npk68QEb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDash\\\"],\\\"statements\\\":[[1,[28,\\\"websites/websites-editor/settings-editor\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"saveTask\\\"],[[24,[\\\"tab\\\"]],false,true,[24,[\\\"model\\\"]],[24,[\\\"updateRecordTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"websites/panels-display/sub-panels-footer-btns\\\",null,[[\\\"tab\\\",\\\"hasEditBtn\\\",\\\"copyErrors\\\",\\\"model\\\",\\\"dirty\\\",\\\"onEditPanel\\\",\\\"onDash\\\",\\\"onPrepareDuplicateRecord\\\",\\\"duplicateRecordTask\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\",\\\"onToggleCommissionMethod\\\",\\\"errorMsg\\\"],[[24,[\\\"tab\\\"]],true,[24,[\\\"copyErrors\\\"]],[24,[\\\"model\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"onEditPanel\\\"]],[23,1,[]],[24,[\\\"onPrepareDuplicateRecord\\\"]],[24,[\\\"duplicateRecordTask\\\"]],[24,[\\\"onAssignSalesPerson\\\"]],[24,[\\\"onUnassignSalesPerson\\\"]],[24,[\\\"onToggleCommissionMethod\\\"]],[24,[\\\"errorMsg\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-settings/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-shop/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency\", \"ramda\"], function (_exports, _crud, _emberConcurrency, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    // filtersAdaptername: 'channels/shop/campaigns/filters',\n\n    didInsertElement() {\n      this._super(...arguments);\n      const model = this.model;\n      this.fetchShopTask.perform(model);\n\n      // const filters = this.search.setupFilters({ adapterName: this.filtersAdaptername })\n      // this.set('filters', filters)\n    },\n    shopEditBtnIcon: Ember.computed('model._data.shopKey', function () {\n      if (this.get('model._data.shopKey')) {\n        return 'fas fa-pen';\n      }\n      return 'fas fa-plus';\n    }),\n    isDisabled: Ember.computed('model._data.allowAllCampaigns', 'disabled', function () {\n      const disabled = R.pathEq(['disabled'], true)(this);\n      if (disabled) {\n        return true;\n      }\n      const allowAllCampaigns = R.pathEq(['model', '_data', 'allowAllCampaigns'], true)(this);\n      if (allowAllCampaigns) {\n        return true;\n      }\n      return false;\n    }),\n    fetchShopTask: (0, _emberConcurrency.task)(function* (model) {\n      const shopKey = model.getData('shopKey');\n      if (shopKey) {\n        const shop = yield this.findTask.perform({\n          adapterName: 'channels/shop/campaigns',\n          appendPath: `/${shopKey}`\n        });\n        this.setShopModel(shop);\n      } else {\n        this.unloadShopModel();\n      }\n    }),\n    setShopModel(shop) {\n      const tab = this.tab;\n      tab.set('model', shop);\n      this.set('shop', shop);\n    },\n    unloadShopModel() {\n      this.set('shop', '');\n      const tab = this.tab;\n      tab.set('model', '');\n    },\n    actions: {\n      fetchAndSetShopModel(onCloseDialogAction, model) {\n        onCloseDialogAction();\n        this.fetchShopTask.perform(model);\n      },\n      editShopSource(model) {\n        const adapterName = 'websites';\n        const dirty = this.setupDirty({\n          adapterName,\n          model\n        });\n        this.set('dirtyModel', dirty);\n      },\n      cancelEditShopSource() {\n        const dirty = this.dirtyModel;\n        const adapterName = 'websites';\n        this.cancelEditing({\n          adapterName,\n          dirty\n        });\n      }\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-shop/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XByFk3IE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"shop\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"channels/shop/campaigns/tab-container\\\",[],[[\\\"@allowDuplicating\\\",\\\"@preloadedModel\\\",\\\"@tab\\\",\\\"@tabContentOnly\\\"],[false,[23,0,[\\\"shop\\\"]],[23,1,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-shop/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-store-location/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {});\n});","define(\"client/pods/components/websites/panels-display/sub-panels-store-location/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yILjQkjF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@tab\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"store-location/tab-container\\\",[],[[\\\"@tab\\\",\\\"@master\\\"],[[23,1,[]],[23,2,[\\\"_data\\\",\\\"_key\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-store-location/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-style/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service()\n  });\n});","define(\"client/pods/components/websites/panels-display/sub-panels-style/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"p7b/36aa\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onDash\\\"],\\\"statements\\\":[[1,[28,\\\"websites/websites-editor/style-editor\\\",null,[[\\\"tab\\\",\\\"isEditing\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"saveTask\\\"],[[24,[\\\"tab\\\"]],false,true,[24,[\\\"model\\\"]],[24,[\\\"updateRecordTask\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[28,\\\"websites/panels-display/sub-panels-footer-btns\\\",null,[[\\\"tab\\\",\\\"hasEditBtn\\\",\\\"copyErrors\\\",\\\"model\\\",\\\"dirty\\\",\\\"onEditPanel\\\",\\\"onDash\\\",\\\"onPrepareDuplicateRecord\\\",\\\"duplicateRecordTask\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\",\\\"onToggleCommissionMethod\\\",\\\"errorMsg\\\"],[[24,[\\\"tab\\\"]],true,[24,[\\\"copyErrors\\\"]],[24,[\\\"model\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"onEditPanel\\\"]],[23,1,[]],[24,[\\\"onPrepareDuplicateRecord\\\"]],[24,[\\\"duplicateRecordTask\\\"]],[24,[\\\"onAssignSalesPerson\\\"]],[24,[\\\"onUnassignSalesPerson\\\"]],[24,[\\\"onToggleCommissionMethod\\\"]],[24,[\\\"errorMsg\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/sub-panels-style/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PiLpe8jM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\",\\\"@onDash\\\",\\\"@onEditAutomationItem\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,2,[]],[23,2,[\\\"subTabs\\\"]],[23,0,[\\\"subPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,2,[]]],null]]]],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"listsIsLoaded\\\"]],null],null],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,2,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"copyErrors\\\",\\\"dirty\\\",\\\"duplicateRecordTask\\\",\\\"errorMsg\\\",\\\"model\\\",\\\"onEditAutomationItem\\\",\\\"onEditItem\\\",\\\"onEditPanel\\\",\\\"onDash\\\",\\\"onPrepareDuplicateRecord\\\",\\\"onSetAsDefaultImageForAutomationTask\\\",\\\"onSetAsDefaultImageTask\\\",\\\"resourceList\\\",\\\"parentTab\\\",\\\"tab\\\"],[[23,0,[\\\"copyErrors\\\"]],[24,[\\\"dirty\\\"]],[24,[\\\"duplicateRecordTask\\\"]],[24,[\\\"errorMsg\\\"]],[23,0,[\\\"model\\\"]],[23,4,[]],[24,[\\\"onEditItem\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"editPanel\\\"],null],[23,3,[]],[28,\\\"action\\\",[[23,0,[]],\\\"prepareDuplicateRecord\\\"],null],[24,[\\\"onSetAsDefaultImageForAutomationTask\\\"]],[24,[\\\"onSetAsDefaultImageTask\\\"]],[23,0,[\\\"subPanels\\\"]],[23,2,[]],[23,1,[]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar-right hidden\\\"],[8],[9],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__footer-spacer\\\"],[8],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-edit/component\", [\"exports\", \"client/mixins/crud\", \"ember-concurrency-decorators\", \"ramda-extension\"], function (_exports, _crud, _emberConcurrencyDecorators, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    adapterName: 'websites',\n    init() {\n      this.setup();\n      this._super(...arguments);\n    },\n    setup() {\n      this.crud.addLists(this, ['websites/lists/subPanels']);\n      const dirty = this.setupDirty({\n        model: this.get('tab.model')\n      });\n      this.set('dirty', dirty);\n      this.tabsManager.setHeader(this.tabParent, dirty.getData('name'));\n    },\n    _display(model) {\n      const tab = this.tab;\n      const activeSubTab = this.tabsManager.getActiveSubTab(tab);\n      const subPanels = R_.dotPath('crud.lists.websites-lists-subPanels')(this) || [];\n      const subTabOptions = this.tabsManager.findReturnPanel(subPanels, activeSubTab);\n      const tabOptions = {\n        loadInstructions: {\n          component: subTabOptions?._data?.component || '',\n          value: subTabOptions?._data?.value || ''\n        }\n      };\n      return this.onDisplay(model, {\n        tabOptions\n      });\n    },\n    *updateRecordTask() {\n      yield this.crud.updateRecordTask.perform({\n        adapterName: this.adapterName,\n        model: this.dirty,\n        onAfter: this.afterUpdateRecord,\n        tab: this.tab\n      });\n    },\n    afterUpdateRecord(saved) {\n      this._display(saved);\n    },\n    afterCancelEditing(original) {\n      this._display(original);\n    },\n    actions: {\n      cancel(dirty) {\n        this.cancelEditing({\n          adapterName: this.adapterName,\n          dirty: dirty\n        });\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateRecordTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"updateRecordTask\"), _obj), _applyDecoratedDescriptor(_obj, \"afterUpdateRecord\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"afterUpdateRecord\"), _obj), _obj));\n});","define(\"client/pods/components/websites/panels-edit/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"yUGyaSjk\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@errors\\\",\\\"@onDash\\\",\\\"@tab\\\",\\\"@currentScrollPosition\\\"],\\\"statements\\\":[[5,\\\"websites/websites-editor\\\",[],[[\\\"@errors\\\",\\\"@model\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@onDash\\\",\\\"@onCancel\\\",\\\"@onSetAsDefaultImageTask\\\",\\\"@saveTask\\\",\\\"@tab\\\",\\\"@currentScrollPosition\\\"],[[23,1,[]],[23,0,[\\\"dirty\\\"]],true,false,[23,2,[]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\",[24,[\\\"dirty\\\"]]],null],[22,\\\"onSetAsDefaultImageTask\\\"],[23,0,[\\\"updateRecordTask\\\"]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-edit/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-empty/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ggvOu1g6\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-empty/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/panels-new/component\", [\"exports\", \"client/mixins/crud\"], function (_exports, _crud) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, {\n    crud: Ember.inject.service(),\n    adapterName: 'websites',\n    init: function () {\n      this._super(...arguments);\n      this.setup();\n    },\n    setup() {\n      // set default campaign settings\n      const tab = this.tab;\n      const model = this.crud.setupNewRecord({\n        adapterName: this.adapterName,\n        tab\n      });\n      this.set('model', model);\n      this.tabsManager.setHeader(this.tabParent, this.intl.t('new'));\n    },\n    actions: {\n      onAfter(onCloseDialogAction, model) {\n        onCloseDialogAction();\n        this.onDisplay(model);\n      },\n      cancel() {\n        return this.onDash();\n      }\n    }\n  });\n});","define(\"client/pods/components/websites/panels-new/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"gkvUNFAA\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isWizard\\\",\\\"@stepsList\\\",\\\"@onEdit\\\",\\\"@onWizardDone\\\",\\\"@onWizardNew\\\",\\\"@onWizardNext\\\",\\\"@target\\\"],\\\"statements\\\":[[5,\\\"websites/websites-editor\\\",[],[[\\\"@tab\\\",\\\"@model\\\",\\\"@errors\\\",\\\"@isEditing\\\",\\\"@isNew\\\",\\\"@isWizard\\\",\\\"@saveTask\\\",\\\"@stepsList\\\",\\\"@onAfter\\\",\\\"@onCancel\\\",\\\"@onEdit\\\",\\\"@onWizardDone\\\",\\\"@onWizardNew\\\",\\\"@onWizardNext\\\",\\\"@target\\\"],[[23,0,[\\\"tab\\\"]],[23,0,[\\\"model\\\"]],[22,\\\"errors\\\"],true,true,[23,1,[]],[22,\\\"createRecordTask\\\"],[23,2,[]],[28,\\\"action\\\",[[23,0,[]],\\\"onAfter\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"],null],[23,3,[]],[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]]]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/panels-new/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/search-results/component\", [\"exports\", \"client/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: 'div',\n    init() {\n      this._super(...arguments);\n      this.set('config', _environment.default);\n    }\n  });\n});","define(\"client/pods/components/websites/search-results/links/component\", [\"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 = Ember.Component.extend({\n    tagName: 'div'\n  });\n});","define(\"client/pods/components/websites/search-results/links/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Y0FFxjPt\",\n    \"block\": \"{\\\"symbols\\\":[\\\"showOnData\\\",\\\"index\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"url\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"url\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"website_type_\\\",[28,\\\"or\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"type\\\"]],\\\"page\\\"],null]],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"isDynamicPage\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t(\\\"],[1,[28,\\\"tt\\\",[\\\"system generated\\\"],null],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[24,[\\\"result\\\",\\\"showOnLabels\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isOn\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[23,1,[\\\"label\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1,2]},null],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/search-results/links/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/search-results/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qMSW3z6S\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"name\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"domain\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"domain\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\" \\\"],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[1,[28,\\\"highlight\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"subdomain\\\"]],[24,[\\\"query\\\"]]],null],false],[0,\\\" \\\"],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-results__text u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"channels/shop/shop-status\\\",null,[[\\\"model\\\"],[[24,[\\\"result\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"result\\\",\\\"_data\\\",\\\"allowAllCampaigns\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"websiteForAllCampaigns\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/search-results/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/tab-container/component\", [\"exports\", \"client/mixins/crud\", \"client/pods/components/websites/mixins/websites-list-by\", \"ember-concurrency\", \"ramda-adjunct\", \"ramda\", \"client/config/environment\"], function (_exports, _crud, _websitesListBy, _emberConcurrency, RA, R, _environment) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_websitesListBy.default, _crud.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    usersService: Ember.inject.service('users'),\n    crud: Ember.inject.service(),\n    server: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    results: null,\n    query: '',\n    adapterName: 'websites',\n    filtersAdapterName: 'websites/filters',\n    selectedWebsiteKey: null,\n    defaultWebsite: null,\n    createdWebsitesCount: 1,\n    createdWebsitesForAllowAllCampaignsCount: 1,\n    init() {\n      this.crud.addLists(this, ['websites/lists/menu', 'websites/lists/new-website-wizard']);\n      this._super(...arguments);\n      this.set('config', _environment.default);\n      this.checkWebsitesCountTask.perform();\n    },\n    afterLoadLists() {\n      this._super(...arguments);\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      this.set('filters', filters);\n      this.loadTabTask.perform();\n    },\n    websiteMenuFiltered: Ember.computed('crud.lists.websites-lists-menu.[]', 'createdWebsitesCount', 'createdWebsitesForAllowAllCampaignsCount', 'settings.settingsModel._data.features.{websitesCount,websitesForAllowAllCampaignsCount}', function () {\n      const createdWebsitesCount = Number(this.createdWebsitesCount) || 0;\n      const createdWebsitesForAllowAllCampaignsCount = Number(this.createdWebsitesForAllowAllCampaignsCount) || 0;\n      const totalCreated = createdWebsitesCount + createdWebsitesForAllowAllCampaignsCount;\n      // @TODO: create a new api endpoint to get website count\n      const websiteListsMenu = R.pathOr([], ['crud', 'lists', 'websites-lists-menu'])(this);\n      const websitesCount = Number(this?.settings?.settingsModel?._data?.features?.websitesCount) || 1;\n      const allowForAllCampaignsWebsitesCount = Number(this?.settings?.settingsModel?._data?.features?.websitesForAllowAllCampaignsCount) || 1;\n      if (totalCreated >= websitesCount + allowForAllCampaignsWebsitesCount) {\n        return R.reject(R.pathEq(['_data', 'action'], 'new'))(websiteListsMenu);\n      }\n      return websiteListsMenu;\n    }),\n    checkWebsitesCountTask: (0, _emberConcurrency.task)(function* () {\n      const response = yield this.server.call('GET', 'api/protected/websites/count');\n      Ember.set(this, 'createdWebsitesCount', Number(response?.data?.websitesCount) || 0);\n      Ember.set(this, 'createdWebsitesForAllowAllCampaignsCount', Number(response?.data?.websitesForAllowAllCampaignsCount) || 0);\n    }),\n    loadTabTask: (0, _emberConcurrency.task)(function* () {\n      const tab = this.tab;\n      const loadInstructions = tab?.loadInstructions;\n      const adapterName = this.adapterName;\n      if (loadInstructions) {\n        if (loadInstructions?.wizardMode) {\n          this.set('isWizard', true);\n        }\n        let model = R.pathOr('', ['_data', 'model'])(loadInstructions);\n        if (!model) {\n          const id = R.pathOr('', ['_data', 'find', 'id'])(loadInstructions);\n          if (id) {\n            model = yield this.crud.findTask.perform({\n              adapterName,\n              appendPath: id\n            });\n          }\n        }\n        if (this.isWizard) {\n          this.wizard();\n        } else {\n          this.display(model);\n        }\n      } else {\n        const filters = this.filters;\n        const results = yield this.fetchDefaultDataTask.perform({\n          adapterName,\n          filters,\n          resultsProperty: 'results'\n        });\n        this.set('results', results);\n        const defaultWebsite = yield this.fetchDefaultSavedWebsiteTask.perform();\n        let model = results[0];\n        if (defaultWebsite?._data?._key) {\n          model = defaultWebsite;\n        }\n        if (model?._data?._key) {\n          this.display(model);\n        }\n      }\n    }),\n    fetchDefaultSavedWebsiteTask: (0, _emberConcurrency.task)(function* () {\n      const defaultPinnedWebsite = yield this.usersService.getSinglePersonalSettingsTask.perform({\n        menuId: 'websitesDefault_single'\n      });\n      const defaultWebsiteKey = defaultPinnedWebsite?._data?.data?.resourceKey;\n      if (!defaultWebsiteKey) {\n        Ember.set(this, 'defaultWebsite', null);\n        return;\n      }\n\n      // fetch default website\n      const defaultWebsite = yield this.crud.findTask.perform({\n        adapterName: 'websites',\n        appendPath: defaultWebsiteKey\n      });\n      Ember.set(this, 'defaultWebsite', defaultWebsite);\n      return defaultWebsite;\n    }),\n    selectWebsite(website) {\n      this.display(website);\n    },\n    setAsDefaultTask: (0, _emberConcurrency.task)(function* (websiteKey) {\n      yield this.server.call('PATCH', `api/protected/websites/default/${websiteKey}`, {});\n    }),\n    dash(results) {\n      // because website/panels-dash menu is disabled\n      // const menuActionsList = R_.dotPath('crud.lists.websites-lists-menu')(this) || []\n      // const found = menuActionsList.findBy('_data.component', 'websites/panels-dash')\n      // if (!found) {\n      //   return this.schedule()\n      // }\n\n      // if (!results) {\n      //   const adapterName = this.adapterName\n      //   const filters = this.filters\n      //   this.fetchDefaultDataTask.perform({ adapterName, filters, resultsProperty: 'results' })\n      // }\n\n      const tab = this.tab;\n      const filters = this.filters;\n      // filters.set('showResults', true)\n\n      const panelOptions = {\n        component: 'websites/panels-empty'\n      };\n      return this.tabsManager.replaceSubTab(tab, panelOptions);\n    },\n    display(model, {\n      tabOptions\n    } = {}) {\n      this.checkWebsitesCountTask.perform();\n      const filters = this.filters;\n      // filters.set('showResults', false)\n      const tab = this.tab;\n\n      // tabOptions = tabOptions || this.tabsManager.getDefaultLoadInstructions(tab)\n      const panelOptions = {\n        component: 'websites/panels-display',\n        model\n      };\n      this.tabsManager.replaceSubTab(tab, panelOptions, tabOptions);\n      this.set('isWizard', false);\n      this.set('model', model);\n      this.set('selectedWebsiteKey', model?._data?._key);\n    },\n    new(panelOptions) {\n      // add new contact sub tab\n      const tab = this.tab;\n      const settingsModel = this.settings.settingsModel;\n      const wizardEnable = settingsModel?._data?.wizardEnable;\n      if (wizardEnable) {\n        this.wizard();\n      } else {\n        this.tabsManager.replaceSubTab(tab, panelOptions);\n      }\n    },\n    wizard(model = {}) {\n      this.set('resultsToggle', false);\n      const filters = this.filters;\n      // filters.set('showResults', false)\n      this.set('isWizard', true);\n      const tab = this.tab;\n      if (RA.isNilOrEmpty(model)) {\n        model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n      const subTabOptions = {\n        component: 'websites/panels-new',\n        title: 'websites',\n        adapterName: 'websites',\n        target: 'websites',\n        model\n      };\n      this.tabsManager.replaceSubTab(tab, subTabOptions, {});\n    },\n    async wizardNew(model, {\n      tabOptions,\n      updateProps\n    } = {}) {\n      const tab = tabOptions?.tab;\n      return this.crud.createRecordTask.perform({\n        adapterName: this.adapterName,\n        appendPath: '/wizard',\n        model,\n        tab\n      });\n    },\n    async wizardNext(model, {\n      tabOptions,\n      updateProps\n    } = {}) {\n      const tab = tabOptions?.tab;\n      await this.crud.updateRecordTask.perform({\n        adapterName: this.adapterName,\n        appendPath: '/wizard',\n        model,\n        tab,\n        updateProps\n      });\n    },\n    async wizardDone(model, {\n      tabOptions,\n      updateProps\n    } = {}) {\n      const tab = tabOptions?.tab;\n      await this.crud.updateRecordTask.perform({\n        adapterName: this.adapterName,\n        appendPath: '/wizard',\n        model,\n        tab,\n        updateProps\n      });\n      this.display(...arguments);\n    },\n    actions: {\n      dash() {\n        const filters = this.filters;\n        // filters.set('showResults', false)\n        // should deselect results if any..\n        // this.deselectResult();\n        this.dash();\n      },\n      schedule() {\n        // should deselect results if any..\n        // this.deselectResult();\n        this.schedule();\n      },\n      display(model, {\n        tabOptions\n      } = {}) {\n        this.set('resultsToggle', false);\n        if (model) {\n          this.display(...arguments);\n        } else {\n          // if no model then display dash (when model has been deleted)\n          this.dash();\n        }\n      },\n      new(panelOptions) {\n        this.set('resultsToggle', false);\n        const filters = this.filters;\n        // filters.set('showResults', false)\n\n        this.new(...arguments);\n      },\n      edit(model = {}, {\n        tabOptions\n      } = {}) {\n        this.set('resultsToggle', false);\n        this.set('isWizard', false);\n        const tab = this.tab;\n        tabOptions = tabOptions || this.tabsManager.getDefaultLoadInstructions(tab);\n        const subTabOptions = {\n          component: 'websites/panels-edit',\n          model\n        };\n        this.tabsManager.replaceSubTab(tab, subTabOptions, tabOptions);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"selectWebsite\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"selectWebsite\"), _obj), _applyDecoratedDescriptor(_obj, \"wizard\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"wizard\"), _obj), _applyDecoratedDescriptor(_obj, \"wizardNew\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"wizardNew\"), _obj), _applyDecoratedDescriptor(_obj, \"wizardNext\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"wizardNext\"), _obj), _applyDecoratedDescriptor(_obj, \"wizardDone\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"wizardDone\"), _obj), _obj));\n});","define(\"client/pods/components/websites/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"fZ2lGPxr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,5,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child row-container__child--main\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\",\\\"@filters\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@resultsItemComponent\\\",\\\"@onSelect\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],[23,0,[\\\"filters\\\"]],false,[23,0,[\\\"filters\\\",\\\"results\\\"]],\\\"websites/search-results\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectWebsite\\\"]]],null],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"selectedWebsiteKey\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"selectedWebsiteKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"selectedWebsiteKey\\\"]],[23,0,[\\\"defaultWebsite\\\",\\\"_data\\\",\\\"_key\\\"]]],null],\\\"fas fa-star\\\",\\\"far fa-star\\\"],null],\\\"set as default\\\",[28,\\\"or\\\",[[23,0,[\\\"usersService\\\",\\\"upsertSinglePersonalSettingsTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"fetchDefaultSavedWebsiteTask\\\",\\\"isRunning\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"usersService\\\",\\\"upsertSinglePersonalSettingsTask\\\"]],[28,\\\"hash\\\",null,[[\\\"menuId\\\",\\\"data\\\",\\\"onAfter\\\"],[\\\"websitesDefault_single\\\",[28,\\\"hash\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\"],[\\\"websitesDefault\\\",[23,0,[\\\"selectedWebsiteKey\\\"]]]]],[28,\\\"perform\\\",[[23,0,[\\\"fetchDefaultSavedWebsiteTask\\\"]]],null]]]]],null]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"channels/shop/shop-status\\\",[],[[\\\"@model\\\"],[[23,0,[\\\"model\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"allowAllCampaigns\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"websiteForAllCampaigns\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"hasCustomDomain\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child u-display-flex u-min-width__fit-content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"domainVerified\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[28,\\\"concat\\\",[\\\"https://\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"domain\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[1,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"domain\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"domain\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"domainVerified\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"subdomain\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child u-desc u-desc--mini u-display-flex u-min-width__fit-content\\\"],[8],[0,\\\"\\\\n            (\\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[28,\\\"concat\\\",[\\\"https://\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"subdomain\\\"]],\\\".\\\",[23,0,[\\\"config\\\",\\\"APP\\\",\\\"websiteHost\\\"]]],null]]]],[0,\\\")\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"domainVerified\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"domain connected\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"domain not connected\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"helpers/creator-info\\\",[],[[\\\"@iconOnly\\\",\\\"@model\\\"],[true,[23,0,[\\\"model\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"websites\\\",[23,2,[]],[23,4,[]],[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"menus/nav-menu\\\",[],[[\\\"@menu\\\",\\\"@onSelect\\\"],[[23,0,[\\\"websiteMenuFiltered\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"addOnAfter\\\"]],[28,\\\"hash\\\",null,[[\\\"func\\\",\\\"onAfter\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"triggerMenuAction\\\"]],[23,0,[]]],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[2,3,4]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/tabs/grid/content\\\",[[12,\\\"class\\\",\\\"u-no-padding-top\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"loadTabTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,0,[\\\"tab\\\",\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"isWizard\\\",\\\"onCancel\\\",\\\"onDash\\\",\\\"onDisplay\\\",\\\"onEdit\\\",\\\"onWizard\\\",\\\"onWizardCancel\\\",\\\"onWizardDone\\\",\\\"onWizardNew\\\",\\\"onWizardNext\\\",\\\"stepsList\\\",\\\"filters\\\",\\\"tab\\\",\\\"tabParent\\\",\\\"target\\\"],[[23,0,[\\\"isWizard\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"dash\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"display\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[23,0,[\\\"wizard\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\"],null],[23,0,[\\\"wizardDone\\\"]],[23,0,[\\\"wizardNew\\\"]],[23,0,[\\\"wizardNext\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-new-website-wizard\\\"]],[23,0,[\\\"filters\\\"]],[23,1,[]],[23,0,[\\\"tab\\\"]],[23,1,[\\\"target\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/3rd-party-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 WebsitesWebsitesEditor3rdPartyEditor = _exports.default = (_dec = Ember.inject.service, _class = class WebsitesWebsitesEditor3rdPartyEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/websites/websites-editor/3rd-party-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"vO3KNW8Q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"settings/defaults/3rd-party-editor\\\",[],[[\\\"@documentationResource\\\",\\\"@hideGuideMenu\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@parentTab\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@hideShopDotCom\\\",\\\"@hideRss\\\"],[\\\"websites\\\",true,[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]],[28,\\\"if\\\",[[23,1,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-editorSubPanels\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-subPanels\\\"]]],null],[23,5,[]],true,false]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/3rd-party-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/component\", [\"exports\", \"client/config/environment\", \"client/mixins/transporter\"], function (_exports, _environment, _transporter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_transporter.default, {\n    applicationService: Ember.inject.service('application'),\n    settingsService: Ember.inject.service('settings'),\n    crud: Ember.inject.service(),\n    uploadcare: Ember.inject.service(),\n    tagName: 'div',\n    classNames: ['col-container'],\n    translate: true,\n    showWizard: false,\n    init() {\n      this.crud.addLists(this, ['websites/lists/subPanels', 'websites/lists/editorSubPanels', 'statuses', 'toggles/auto', 'toggles/onOff']);\n      this._super(...arguments);\n      this.set('productsList', []);\n      this.set('config', _environment.default);\n      this.set('editingPanels', []);\n      const wizardEnabled = this.settings.settingsModel.getData('wizardEnable') || false;\n      this.set('showWizard', wizardEnabled);\n      const isWizard = this.isWizard;\n      this.set('isWizard', isWizard);\n    },\n    isReadonly: Ember.computed('isEditing', 'saveTask.isRunning', function () {\n      if (this.get('saveTask.isRunning')) {\n        return true;\n      }\n      if (this.isEditing === true) {\n        return false;\n      }\n      return true;\n    }),\n    hasSalesPersons: Ember.computed('model._data.salesPersons.[]', function () {\n      // @TODO TEST\n      const salesPersons = this.get('model._data.salesPersons');\n      if (Ember.isEmpty(salesPersons)) {\n        return false;\n      }\n      return salesPersons;\n    }),\n    actions: {\n      assignSalesPerson(person) {\n        const model = this.model;\n        model.addSalesPerson(person);\n\n        // set commission default to\n        model.setData('commissionMethod', this.get('constants.commissionMethod.percentagePrice'));\n      },\n      unassignSalesPerson(person) {\n        const model = this.model;\n        model.removeSalesPerson(person);\n      },\n      toggleCommissionMethod() {\n        const model = this.model;\n        model.setData('commissionFlat', '');\n        model.setData('commissionPercentage', '');\n      }\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/emails-editor/component\", [\"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 = Ember.Component.extend({});\n});","define(\"client/pods/components/websites/websites-editor/emails-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"94VJZMe3\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/emails-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/headers-editor/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-extension\", \"client/mixins/crud\", \"client/mixins/search-contacts\"], function (_exports, _emberConcurrency, R, R_, _crud, _searchContacts) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    users: Ember.inject.service(),\n    transporterAccounts: null,\n    showColorTemplates: false,\n    hasNextPanel: true,\n    currentPanelIndex: 0,\n    validateDomainLabel: 'validate now',\n    init() {\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/productsImagesRatio', 'contacts/lists/tags', 'swatches', 'websites/lists/logo-menu-position', 'websites/lists/logo-centered-scroll-method', 'websites/lists/logo-icon-position', 'websites/lists/layout/menu-logo-size', 'websites/lists/layout/menu-logo-height', 'websites/lists/layout/menu-logo-height-separate-line', 'websites/lists/layout/menu-font-size', 'websites/lists/layout/menu-position', 'websites/lists/layout/menu-style', 'websites/lists/layout/menu-spacing', 'websites/lists/new-website-wizard', 'websites/lists/shared-color-themes']);\n      this._super(...arguments);\n      if (this.get('model._data.transporterKey')) {\n        this.fetchTransporterTask.perform({\n          model: this.model\n        });\n      }\n    },\n    // afterLoadLists () {\n    //   this._super(...arguments)\n\n    //   if (!this.isNew) {\n    //     return\n    //   }\n\n    //   const initialPanel = this.tabsManager.getLoadInstructions(this.tab) || this.crud.lists['websites-lists-new-website-wizard'].get('firstObject')\n    //   this.tabsManager.displaySubPanel(this, initialPanel)\n    // },\n\n    // validatedDomainLabel: computed('model._data.domainVerified', function () {\n    //   const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this)\n    //   if (domainVerified) {\n    //     return 'valid'\n    //   }\n\n    //   return 'validate now'\n    // }),\n\n    isCurrentStepComplete: Ember.computed('crud.lists.websites-lists-new-website-wizard.@each.isAllStepsFinished', 'model._data.{hasCustomDomain,domainVerified}', function () {\n      // @TODO: this needs to change. using lists.websites to keep track of states is global. this will be shared accross all website instances\n      const hasCustomDomain = R.pathOr(false, ['model', '_data', 'hasCustomDomain'])(this);\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      if (hasCustomDomain && !domainVerified) {\n        return true;\n      }\n      if (this.crud.lists['websites-lists-new-website-wizard']) {\n        return !this.crud.lists['websites-lists-new-website-wizard'][this.currentPanelIndex].isAllStepsFinished;\n      }\n      return true;\n    }),\n    isWizardEnabled: Ember.computed('settings.settingsModel._data.{wizardEnable}', 'showWizard', function () {\n      const settingsModel = R.pathOr(null, ['settingsModel'])(this.settings);\n      if (settingsModel) {\n        const wizardEnable = settingsModel.getData('wizardEnable') || false;\n        return wizardEnable || this.showWizard;\n      }\n      return false;\n    }),\n    isConnectDomainDisabled: Ember.computed('model._data.domainVerified', function () {\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      const isReadonly = R.pathOr(true, ['isReadonly'])(this);\n      if (domainVerified) {\n        return isReadonly;\n      }\n      return false;\n    }),\n    isWizardIncomplete: Ember.computed('model.wizardRequirementsMet.[]', function () {\n      return R.includes(false)(this.model.wizardRequirementsMet);\n    }),\n    validDomainIconComputed: Ember.computed('model._data.{domainVerified,hasCustomDomain,domain}', function () {\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      if (domainVerified) {\n        return 'fas fa-check';\n      } else {\n        return 'fas fa-times';\n      }\n    }),\n    isSameDomain: Ember.computed('model._data.domain', 'previousDomain', function () {\n      const domain = R.pathOr('', ['model', '_data', 'domain'])(this);\n      const previousDomain = R.pathOr('', ['previousDomain'])(this);\n      return domain === previousDomain;\n    }),\n    headerTabs: Ember.computed('crud.lists.websites-lists-new-website-wizard.[]', 'model.wizardRequirementsMet.[]', function () {\n      const wizardHeaderWebsites = this.crud.lists['websites-lists-new-website-wizard'] || [];\n      const requirementsMet = this.model.wizardRequirementsMet || [];\n      const hasTabs = !R.isEmpty(wizardHeaderWebsites);\n      if (hasTabs) {\n        return R.pipe(R.mapObjIndexed((tab, index, tabs) => {\n          index = parseInt(index);\n          const isComplete = requirementsMet[index] || false;\n          if (tab.set) {\n            tab.set('isCompleted', isComplete);\n            const maxIndex = tabs.length - 1;\n            if (maxIndex !== index) {\n              tabs[++index].setData('enable', isComplete);\n            }\n            return tab;\n          }\n          return false;\n        }), R.reject(R.equals(false)), R.toPairs, R.flatten, R.reject(R.is(String)))(wizardHeaderWebsites);\n      }\n      return wizardHeaderWebsites;\n    }),\n    fetchTransporterTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      const transporterKey = model.getData('transporterKey');\n      const transporter = yield this.findTask.perform({\n        adapterName: 'contacts',\n        appendPath: transporterKey\n      });\n      this.loadTransporterAccounts(model, transporter);\n    }),\n    loadTransporterAccounts(model, transporter) {\n      const transporterAccounts = transporter.getData('transporterAccounts') || [];\n      this.set('transporterAccounts', transporterAccounts);\n      if (!model.getData('transporterAccountNumber')) {\n        const setDefaultTransporterAccount = R.pipe(R.filter(account => account.getData('isDefault') === true), R.map(defaultAccount => {\n          model.setData('transporterAccount', defaultAccount.getData('name'));\n          model.setData('transporterAccountNumber', defaultAccount.getData('account'));\n        }));\n        setDefaultTransporterAccount(transporterAccounts);\n      }\n    },\n    shopPaymentMethodsDefaultsList: Ember.computed('crud.lists.paymentMethods-shop.[]', 'model._data.paymentMethods.[]', function () {\n      const paymentMethods = R_.dotPath('crud.lists.paymentMethods-shop')(this) || [];\n      const allowedPaymentMethods = this.get('model._data.paymentMethods') || [];\n      return R.filter(method => R.includes(method.getData('value'), allowedPaymentMethods), paymentMethods);\n    }),\n    goToPanel(gotToHeaderPanel) {\n      const headerPanels = this.crud.lists['websites-lists-new-website-wizard'];\n      let nextIndex;\n      if (gotToHeaderPanel) {\n        nextIndex = headerPanels.indexOf(gotToHeaderPanel);\n      } else {\n        nextIndex = ++this.currentPanelIndex;\n        gotToHeaderPanel = headerPanels[this.currentPanelIndex];\n      }\n      this.set('currentPanelIndex', nextIndex);\n      const headerPanelsTotalIndex = headerPanels.length - 1;\n      if (this.currentPanelIndex < headerPanelsTotalIndex) {\n        this.set('hasNextPanel', true);\n      } else {\n        this.set('hasNextPanel', false);\n      }\n      return this.tabsManager.displaySubPanel(this, gotToHeaderPanel);\n    },\n    validateDomainTask: (0, _emberConcurrency.task)(function* () {\n      const dirty = R.pathOr({}, ['dirty'])(this);\n      const domain = R.pathOr('', ['_data', 'domain'])(dirty);\n      const result = yield this.server.call('POST', 'api/protected/websites/validate/domain', {\n        domain,\n        _key: dirty.getData('_key')\n      });\n      const domainVerified = R.pathOr(false, ['data', 'domainVerified'])(result);\n\n      // @TODO: remove\n      const model = this.model;\n      model.setData('domainVerified', domainVerified);\n    }).drop(),\n    editDomain() {\n      this.set('isEditDomain', true);\n      const dirty = this.crud.setupDirty({\n        adapterName: 'websites',\n        model: this.model\n      });\n      dirty.setData('hasCustomDomain', true);\n      this.set('dirty', dirty);\n    },\n    updateDomainTask: (0, _emberConcurrency.task)(function* () {\n      this.set('domainErrors', []);\n      const updated = yield this.crud.updateRecordTask.perform({\n        adapterName: 'websites',\n        model: this.dirty,\n        component: this,\n        errorsProp: 'domainErrors'\n      });\n      if (!updated) {\n        return false;\n      }\n      this.set('isEditDomain', false);\n      const model = this.model;\n      this.set('dirty', model);\n    }),\n    onSetAsDefaultImageTask: (0, _emberConcurrency.task)(function* () {\n      return this.saveTask.perform({\n        adapterName: 'websites',\n        model: this.model,\n        component: this\n      });\n    }),\n    onOpenGraphImageChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.openGraph.imageUuid', uuid);\n      onCloseDialogAction();\n    },\n    onFavIconChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.favicon', uuid);\n      onCloseDialogAction();\n    },\n    removeFavIcon(onCloseDialogAction, options, uploadsModel) {\n      this.model.set('_data.favicon', '');\n    },\n    onLogoMobileChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.logoMobile', uuid);\n      onCloseDialogAction();\n    },\n    removeLogoMobile(onCloseDialogAction, options, uploadsModel) {\n      this.model.set('_data.logoMobile', '');\n    },\n    removeOpenGraphImage() {\n      this.model.set('_data.openGraph.imageUuid', '');\n    },\n    toggleAllowSeo(hasCustomDomain) {\n      this.model.setData('allowSeo', hasCustomDomain);\n    },\n    actions: {\n      openConnectDomain() {\n        this.set('isEditDomain', false);\n        const model = this.model;\n        this.set('dirty', model);\n        if (!model.getData('domain')) {\n          this.editDomain();\n        }\n      },\n      editDomain() {\n        this.editDomain();\n      },\n      toggleColorTemplates() {\n        this.set('showColorTemplates', !this.showColorTemplates);\n      },\n      selectHeaderPanel(gotToHeaderPanel) {\n        this.goToPanel(gotToHeaderPanel);\n      },\n      selectNextPanel() {\n        this.goToPanel();\n      },\n      resetDomainVerification(onCloseDialogAction) {\n        onCloseDialogAction();\n        if (this.dirty) {\n          this.crud.cancelEditing({\n            adapterName: 'websites',\n            dirty: this.dirty\n          });\n          this.set('isEditDomain', false);\n          this.set('dirty', null);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onOpenGraphImageChange\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onOpenGraphImageChange\"), _obj), _applyDecoratedDescriptor(_obj, \"onFavIconChange\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"onFavIconChange\"), _obj), _applyDecoratedDescriptor(_obj, \"removeFavIcon\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"removeFavIcon\"), _obj), _applyDecoratedDescriptor(_obj, \"onLogoMobileChange\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"onLogoMobileChange\"), _obj), _applyDecoratedDescriptor(_obj, \"removeLogoMobile\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"removeLogoMobile\"), _obj), _applyDecoratedDescriptor(_obj, \"removeOpenGraphImage\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"removeOpenGraphImage\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleAllowSeo\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"toggleAllowSeo\"), _obj), _obj));\n});","define(\"client/pods/components/websites/websites-editor/headers-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Dpjrh/aO\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[28,\\\"user/get\\\",[\\\"allowPublicTemplate\\\"],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"colorTemplate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\"],[\\\"headers-editor\\\",[23,3,[]],true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"websites\\\",[23,5,[]],[23,3,[]],[23,4,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"headers_group\\\",[23,3,[]],\\\"header\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"website_headers\\\",[24,[\\\"errors\\\"]],\\\"headers\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"headers\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"website_scripts\\\",[24,[\\\"errors\\\"]],\\\"scripts\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"scripts\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"footers_group\\\",[23,3,[]],\\\"footer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"website_footer_message\\\",[24,[\\\"errors\\\"]],\\\"footerMessage\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@options\\\",\\\"@hasFileBrowser\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[22,\\\"tab\\\"],[28,\\\"hash\\\",null,[[\\\"height\\\"],[200]]],true,[22,\\\"isReadonly\\\"],[23,2,[\\\"_data\\\",\\\"footerMessage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/headers-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/page-import-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"dONnheYB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@tab\\\",\\\"@onInsertTemplate\\\",\\\"@onReplaceTemplate\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@closeOnOverlayClick\\\"],[[23,2,[]],\\\"fas fa-file-import\\\",[23,3,[]],false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"websites/websites-editor/templates\\\",[],[[\\\"@tab\\\",\\\"@onCloseDialogAction\\\",\\\"@onInsertTemplate\\\",\\\"@onReplaceTemplate\\\"],[[23,4,[]],[23,1,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/page-import-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/pages-editor/add-page/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 WebsitesWebsitesEditorPagesEditorAddPageComponent = _exports.default = (_dec = Ember.inject.service, _class = class WebsitesWebsitesEditorPagesEditorAddPageComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"application\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"application\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/websites/websites-editor/pages-editor/add-page/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"6apjZiT9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\",\\\"@disabled\\\",\\\"@model\\\",\\\"@website\\\",\\\"@onNew\\\"],\\\"statements\\\":[[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\"],[\\\"fas fa-plus\\\",[23,4,[\\\"_data\\\",\\\"allowAllCampaigns\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"website_type_page\\\",\\\"fas fa-plus\\\",[23,2,[]],[28,\\\"fn\\\",[[23,5,[]],[23,1,[]],\\\"page\\\",[23,4,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"website_type_category\\\",\\\"fas fa-plus\\\",[23,2,[]],[28,\\\"fn\\\",[[23,5,[]],[23,1,[]],\\\"category\\\",[23,4,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"website_type_link\\\",\\\"fas fa-plus\\\",[23,2,[]],[28,\\\"fn\\\",[[23,5,[]],[23,1,[]],\\\"link\\\",[23,4,[]]],null]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"_data\\\",\\\"isHome\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"list-results__item\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"sub page\\\",\\\"fas fa-plus\\\",[23,2,[]],[28,\\\"fn\\\",[[23,5,[]],[23,1,[]],\\\"page\\\",[23,4,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/pages-editor/add-page/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/pages-editor/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"jquery\", \"client/mixins/crud\", \"client/utils/nventor\", \"client/config/environment\", \"ramda-adjunct\"], function (_exports, _emberConcurrency, R, _jquery, _crud, _nventor, _environment, RA) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _obj = {\n    tagName: '',\n    crud: Ember.inject.service(),\n    ajax: Ember.inject.service(),\n    tabsManager: Ember.inject.service(),\n    uploadcare: Ember.inject.service(),\n    grapesjs: Ember.inject.service(),\n    users: Ember.inject.service(),\n    search: Ember.inject.service(),\n    applicationService: Ember.inject.service('application'),\n    websitesService: Ember.inject.service('websites'),\n    resource: 'files',\n    resourceKey: 'files',\n    isLoadingTemplate: false,\n    showLinkToProductsModal: false,\n    showProductsModal: false,\n    showScratchCardModal: false,\n    productsResults: null,\n    lastHeight: '',\n    showSliderModal: false,\n    showButtons: true,\n    grapesJsFullscreen: false,\n    isEditorCanvasLoading: true,\n    showBtnModal: false,\n    showFormModal: false,\n    showScheduleModal: false,\n    showReIndexModal: false,\n    editorClassName: 'gjs-column editor-clm',\n    dataTabContainer: 'websites',\n    schedulesTargetContainerClass: null,\n    schedulesTatgetClass: null,\n    schedulesTatgetIsArray: false,\n    linksModalData: null,\n    hasTemplateOnInit: false,\n    _hasFooterBtns: true,\n    init() {\n      const hasFooterBtns = RA.defaultWhen(RA.isNilOrEmpty, true, this.hasFooterBtns);\n      Ember.set(this, '_hasFooterBtns', hasFooterBtns);\n      this.crud.addLists(this, ['websites/lists/types', 'websites/lists/types/links', 'channels/shop/campaigns/lists/website-page-display', 'statuses']);\n      this.set('productsResults', []);\n      let editorId = this.editorId;\n      if (!editorId) {\n        editorId = _nventor.default.random.alpha(10);\n        this.set('editorId', editorId);\n        const storagePrefix = this.storage.wrapWithPrefix(editorId);\n        this.set('storagePrefix', storagePrefix);\n      }\n      this.set('config', _environment.default);\n\n      // this prevents gjs from being loaded when settings modal changes from hasTemplate=false to true\n      const model = this.model;\n      Ember.set(this, 'hasTemplateOnInit', model?._data?.hasTemplate);\n      this._super(...arguments);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this.setup();\n      const timeoutTime = R.pathOr(null, ['model', '_data', 'canvasHeight'])(this) ? 0 : 2500;\n\n      // if (!this.isNew && this.fullscreenOnInit === true) {\n      if (!this.isNew && this.isEditing) {\n        this.setIsFullscreen(true);\n      }\n      setTimeout(() => {\n        if (this?.isDestroyed === false) {\n          this.set('isEditorCanvasLoading', false);\n        }\n      }, timeoutTime);\n    },\n    previewLockedLink: Ember.computed('dataTabContainer', 'model._data.url', 'website._data.{domainVerified,domain,subdomain}', function () {\n      const model = this.model;\n      const website = this.website;\n      return this.websitesService.getPreviewLink({\n        model,\n        website,\n        dataTabContainer: this.dataTabContainer,\n        isPreview: true\n      });\n    }),\n    blogsTask: (0, _emberConcurrency.task)(function* () {\n      const filters = this.search.setupFilters({\n        adapterName: 'blogs/filters',\n        defaultFiltersData: {\n          master: this.website._data._key,\n          count: 1\n        }\n      });\n      return yield this.crud.searchRecordsTask.perform({\n        adapterName: 'blogs',\n        filters\n      });\n    }),\n    /**\n     * search form flows task for website\n     */\n    searchFormFlowsForWebsiteTask: (0, _emberConcurrency.task)(function* () {\n      try {\n        const filters = this.search.setupFilters({\n          adapterName: 'flows/filters',\n          defaultFiltersData: {\n            // no websiteKey filter now\n            // websiteKey: this.website._data._key,\n            // shopKey: this.shopKey,\n            type: 'form'\n          }\n        });\n        return yield this.crud.searchRecordsTask.perform({\n          adapterName: 'flows',\n          filters\n        });\n      } catch (error) {\n        console.error('Error while: searchFormFlowsForWebsiteTask: ', error);\n        return [];\n      }\n    }),\n    isReadonly: Ember.computed('isNew', 'isEditing', function () {\n      if (this.isNew || this.isEditing) {\n        return false;\n      }\n      return true;\n    }),\n    shouldHideFooterExtraOptions: Ember.computed('model._data.isDynamicPage', 'model._data.hasTemplate', 'model.isCategory', 'model.isLink', 'isReadonly', function () {\n      if (this.model?._data?.isDynamicPage || this.model?.isLink || this.model?.isCategory || this.isReadonly || this.model?._data?.hasTemplate === false) {\n        return true;\n      }\n      return false;\n    }),\n    activeSubTabLabel: Ember.computed('parentTab', function () {\n      const currentSubTab = this.tabsManager.getActiveSubTab(this.parentTab);\n      return currentSubTab.label;\n    }),\n    shopKey: Ember.computed('channelsShopKey', 'dataTabContainer', 'website._data.shopKey', function () {\n      if (this.dataTabContainer === 'campaigns') {\n        return this.channelsShopKey;\n      }\n      return this.website._data.shopKey;\n    }),\n    previewLink: Ember.computed('dataTabContainer', 'model._data.url', 'website._data.{domainVerified,domain,subdomain}', function () {\n      const model = this.model;\n      const website = this.website;\n      return this.websitesService.getPreviewLink({\n        model,\n        website,\n        dataTabContainer: this.dataTabContainer\n      });\n    }),\n    setIsFullscreen(currentValue) {\n      const editorElement = document.getElementById(this.editorId);\n      if (editorElement) {\n        const editorContainerElement = editorElement.closest('.editor-clm');\n        if (currentValue === true) {\n          this.set('grapesJsFullscreen', true);\n          return true;\n        }\n        if (currentValue === false) {\n          this.set('grapesJsFullscreen', false);\n          return false;\n        }\n        if (this.isEditing || this.isNew) {\n          this.set('grapesJsFullscreen', true);\n        } else {\n          this.set('grapesJsFullscreen', false);\n        }\n      } else {\n        this.set('grapesJsFullscreen', false);\n      }\n    },\n    setup(setupOnInitToggle = false) {\n      if (this.showWebBuilder) {\n        this.setupEditor();\n      } else if (this.dataTabContainer === 'campaigns' || setupOnInitToggle) {\n        this.setupEditor();\n      }\n    },\n    setupEditor() {\n      Ember.run.scheduleOnce('afterRender', this, async function () {\n        const editorId = this.editorId;\n        const storagePrefix = this.storagePrefix;\n\n        // @TODO: rename to better names\n        const showSearchProductsModal = productsViewComponent => {\n          this.set('productsViewComponent', productsViewComponent);\n          this.set('showProductsModal', true);\n        };\n\n        // @TODO: rename to better names\n        const showProductsModal = productsViewComponent => {\n          // this.set('productsViewComponent', productsViewComponent)\n          this.set('showManyProductsModal', true);\n        };\n        const showBlogsModal = blogsViewComponent => {\n          this.set('showBlogsModal', true);\n          this.set('blogsViewComponent', blogsViewComponent);\n          // this.set('showBlogsModal', true)\n        };\n        const showFormModal = formsViewComponent => {\n          this.set('showFormModal', true);\n          this.set('formsViewComponent', formsViewComponent);\n        };\n        const showSearchImagesModal = (imgType, imagesManager, allowSrcSet = true) => {\n          const imgSet = R.prop('imgSet')(imagesManager);\n          if (imgSet) {\n            this.set('previousImage', {\n              imgSet\n            });\n          }\n          this.set('imgType', imgType);\n          this.set('imagesManager', imagesManager);\n          this.set('showImagesModal', true);\n          this.set('allowSrcSet', allowSrcSet);\n        };\n        const toggleLinksModal = (linksModalData = {}) => {\n          const showLinksModal = !this.showLinksModal;\n          this.set('linksModalData', linksModalData);\n          this.set('showLinksModal', showLinksModal);\n        };\n        const toggleScratchCardModal = scratchCardComponent => {\n          this.set('scratchCardComponent', scratchCardComponent);\n          const toggle = !this.showScratchCardModal;\n          this.set('showScratchCardModal', toggle);\n        };\n        const toggleSliderModal = el => {\n          const children = el.children;\n          const bigordrSlider = el;\n          this.set('sliderImages', children);\n          this.set('bigordrSlider', bigordrSlider);\n          this.set('imgType', 'optimized-image');\n          this.set('imagesManager', {});\n          const toggle = !this.showSliderModal;\n          this.set('showSliderModal', toggle);\n        };\n        const toggleSetSlidesSchedule = () => {\n          this.set('schedulesTargetContainerClass', 'lory-slides');\n          this.set('schedulesTatgetClass', 'gjs-lory-slide');\n          this.set('schedulesTatgetIsArray', true);\n          const toggle = !this.showScheduleModal;\n          this.set('showScheduleModal', toggle);\n        };\n        const toggleReIndexModal = () => {\n          const toggle = !this.showReIndexModal;\n          this.set('showReIndexModal', toggle);\n        };\n        const toggleBtnModal = () => {\n          const toggle = !this.showBtnModal;\n          this.set('showBtnModal', toggle);\n        };\n        const fetchProduct = component => this.fetchProductTask.perform(component);\n        const fetchBlogs = component => this.fetchBlogsTask.perform(component);\n        const model = this.model;\n        const website = this.website;\n        const grapesJsService = this.grapesjs;\n        const pageDataString = model.getData('pageDataString') || '{}';\n        const customPlugins = grapesJsService.getPlugins();\n        const hasNoShop = this.dataTabContainer === 'campaigns' ? false : !this.website._data.shopKey;\n        const isReadonly = this.isReadonly;\n        const blogs = (await this.blogsTask.perform()) || [];\n        const hasBlogs = blogs.length >= 1;\n        const formFlows = (await this.searchFormFlowsForWebsiteTask.perform()) || [];\n        const hasFormFlows = formFlows.length >= 1;\n        const editor = grapesJsService.create(editorId, storagePrefix, pageDataString, {\n          isReadonly,\n          canvasHeight: model.getData('canvasHeight'),\n          translations: {\n            'gjs-Attachment': '附件',\n            'gjs-Background': '背景',\n            'gjs-Background-color': '背景顏色'\n          },\n          openLinksModal: toggleLinksModal,\n          pluginsOpts: {\n            'bigordr-background-fixed': {\n              parentComponent: this,\n              onDbClick: showSearchImagesModal\n            },\n            'bigordr-button': {\n              parentComponent: this,\n              website: this.website,\n              onDbClick: toggleBtnModal,\n              onDrop: toggleBtnModal\n            },\n            'bigordr-slider': {\n              parentComponent: this,\n              onDbClick: toggleSliderModal,\n              onDrop: toggleSliderModal\n            },\n            'bigordr-slider-native': {\n              parentComponent: this,\n              onDbClick: toggleSliderModal,\n              onDrop: toggleSliderModal,\n              onReIndex: toggleReIndexModal,\n              onSetSchedule: toggleSetSlidesSchedule\n            },\n            'bigordr-scratch-card': {\n              parentComponent: this,\n              onDrop: toggleScratchCardModal,\n              onDbClick: toggleScratchCardModal\n            },\n            'bigordr-blogs': {\n              onDrop: showBlogsModal,\n              onDbClick: showBlogsModal,\n              onRender: fetchBlogs,\n              hasBlogs,\n              disabled: true // hasNoBlogs\n            },\n            'bigordr-form': {\n              onDrop: showFormModal,\n              onDbClick: showFormModal,\n              hasFormFlows,\n              disabled: true\n            },\n            'bigordr-product': {\n              onDrop: showSearchProductsModal,\n              onDbClick: showSearchProductsModal,\n              onRender: fetchProduct,\n              disabled: hasNoShop\n            },\n            'bigordr-products': {\n              onDrop: showProductsModal,\n              onDbClick: showProductsModal,\n              disabled: hasNoShop\n            },\n            'bigordr-panels': {\n              parentComponent: this\n            },\n            [customPlugins.ImagePlugin]: {\n              onOpenAssets: showSearchImagesModal\n            },\n            [customPlugins.FullWidthImagePlugin]: {\n              onOpenAssets: showSearchImagesModal,\n              openLinksModal: toggleLinksModal\n            },\n            'bigordr-strip': {\n              'bigordr-strip-image': {\n                onDbClick: showSearchImagesModal\n              }\n            }\n          }\n        }, model, website);\n        this.set('editor', editor);\n      });\n    },\n    // @TODO: FETCH FROM CAMPAIGN DETAILS RATHER THAN PRODUCTS\n    // @TODO: ISSUE #881\n    fetchProductTask: (0, _emberConcurrency.task)(function* (component) {\n      const itemKey = component.get('itemKey');\n      const hasNoDetails = itemKey === '0000000';\n      if (hasNoDetails) {\n        return;\n      }\n      const productModel = yield this.crud.findTask.perform({\n        adapterName: 'products',\n        appendPath: `/${itemKey}`\n      });\n      let defaultImage;\n      try {\n        if (productModel.getDefaultImageUrl) {\n          defaultImage = productModel.getDefaultImageUrl('/-/scale_crop/200x200/smart/');\n          component.set('defaultImage', defaultImage);\n        }\n      } catch (e) {\n        console.error({\n          productModel,\n          itemKey,\n          e\n        });\n      }\n    }),\n    fetchBlogsTask: (0, _emberConcurrency.task)(function* (component) {\n      const resourceKey = R.pipe(c => c.getAttributes(), R.pathOr(null, ['data-bigordr-blog-key']))(component);\n      if (resourceKey) {\n        const uploadsModel = yield this.crud.fetchUploadsTask.perform({\n          resource: 'blogs',\n          resourceKey: resourceKey,\n          adapterName: 'uploads/collection',\n          params: {\n            isDefault: true,\n            onlyDisplayDefault: true\n          }\n        });\n        if (uploadsModel.getDefaultImageUrl) {\n          component.addAttributes({\n            src: uploadsModel.getDefaultImageUrl('/-/scale_crop/200x200/smart/')\n          });\n        }\n      }\n    }),\n    willDestroyElement() {\n      if (!this?.isDestroyed) {\n        this._super(...arguments);\n        this.destroyEditor();\n      }\n    },\n    destroyEditor() {\n      const storagePrefix = this.storagePrefix;\n      this.grapesjs.removeFromStorage(storagePrefix);\n      if (this.editor) {\n        try {\n          // Remove editor from the global scope\n          grapesjs.editors.clear();\n          // remove current editor\n          // this.editor.destroy()\n          this.set('editor', null);\n        } catch (e) {\n          console.error(e);\n        }\n      }\n    },\n    disablePanel: Ember.computed('model._data.hasTemplate', 'isReadonly', function () {\n      if (this.isReadonly) {\n        return true;\n      } else {\n        return !this.model._data.hasTemplate;\n      }\n    }),\n    disableIfEmptyTemplate: Ember.computed('model._data.hasTemplate', 'pageDataString', function () {\n      const hasTemplate = !!this.model.getData('hasTemplate');\n      // if the pageDataString lengh is less than 130 then is an empty template\n      const isEmptyTemplate = this.model.getData('pageDataString').length <= 130;\n      return hasTemplate && isEmptyTemplate;\n    }),\n    hasChanged: Ember.computed('model._data.modified', function () {\n      const modified = this.model.getData('modified') || [];\n      return modified.length >= 1;\n    }),\n    parent: Ember.computed('model.{synced,_data.parent}', function () {\n      const lastParentKey = this.get('model._data.parent') || '';\n      if (lastParentKey) {\n        const pagesCollection = this.pagesCollection || [];\n        const pages = pagesCollection.getData('pages');\n        const parent = R.find(R.pathEq(['_data', '_key'], lastParentKey), pages);\n        if (parent) {\n          return parent;\n        }\n      }\n      return false;\n    }),\n    isCancellable: Ember.computed('model._data.isHome', 'isNew', function () {\n      const model = this.model;\n      if (model.getData('isHome') && this.isNew) {\n        return false;\n      }\n      return true;\n    }),\n    isRemovable: Ember.computed('model.{parent,_data.isHome}', 'isEditing', 'pagesCollection.synced', function () {\n      const model = this.model;\n      if (this.isNew || !this.pagesCollection) {\n        return false;\n      }\n      const pagesCollection = this.pagesCollection;\n      const originalModel = pagesCollection.getCurrentPage(model);\n      if (!originalModel) {\n        return true;\n      }\n      if (originalModel.getData('isHome') || originalModel.get('isParent')) {\n        return false;\n      }\n      return true;\n    }),\n    pageMenuModalLabel: Ember.computed('model._data.{pageName,name}', function () {\n      const model = R.pathOr({}, ['model', '_data'])(this);\n      const pageName = R.prop('pageName')(model);\n      if (model.isHome) {\n        return pageName || this.intl.t('home page');\n      }\n      if (model.isDynamicPage) {\n        return pageName || this.intl.t(model.name);\n      }\n      if (model.type === 'link') {\n        return model?.linkTitle ?? '';\n      }\n      const unnamed = this.intl.t('unnamed');\n      return R.propOr(unnamed, 'name')(model);\n    }),\n    _disableAllSubs(model) {\n      const subs = model.sub || [];\n      model.set('disabled', true);\n      R.forEach(this._disableAllSub)(subs);\n    },\n    showWebBuilder: Ember.computed('model.{allowWebBuilder,_data.hasTemplate}', function () {\n      if (!this?.model?.allowWebBuilder) {\n        return false;\n      }\n      if (this.get('model._data.hasTemplate')) {\n        return true;\n      }\n      return false;\n    }),\n    hasWebBuilderEditing: Ember.computed('isEditing', 'isNew', 'model._data.hasTemplate', function () {\n      if (this.isEditing || this.isNew) {\n        if (this.get('model._data.hasTemplate')) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    submitTaskAsTemplate: (0, _emberConcurrency.task)(function* ({\n      isPublicTemplate = false,\n      onAfter\n    }) {\n      const msg = this.intl.t('are you sure you want to save as template');\n      const confirm = window.confirm(msg);\n      if (confirm) {\n        this.submitTask.perform(...arguments);\n      }\n    }),\n    submitWebsiteTask: (0, _emberConcurrency.task)(function* ({\n      isPublicTemplate = false,\n      onAfter\n    }) {\n      const website = this.websiteDirty;\n      yield this.crud.updateRecordTask.perform({\n        adapterName: 'websites',\n        model: website\n      });\n      yield this.submitTask.perform(...arguments);\n    }).drop(),\n    submitTask: (0, _emberConcurrency.task)(function* ({\n      model,\n      isPublicTemplate = false,\n      isPreview = false,\n      isLockedPreview,\n      onAfter\n    } = {}) {\n      model = model || this.model;\n      const editor = this.editor;\n      if (editor) {\n        this.removeUnUsedCssClassNames(editor);\n\n        // REMOVE DANGLING IMAGES\n        try {\n          const editorComponents = editor?.Components?.getComponent();\n          if (editorComponents) {\n            const fullWidthImageComponents = editorComponents.findType('full-width-image') || [];\n            const optimizedImageComponents = editorComponents.findType('optimized-image') || [];\n            R.pipe(R.concat(optimizedImageComponents), R.filter(img => {\n              // Remove all base64 images\n              const imgElement = img.getEl();\n              const src = imgElement.getAttribute('src');\n              const isBase64Image = src.includes('base64');\n              if (isBase64Image) {\n                imgElement.setAttribute('src', '');\n              }\n              if (!imgElement) {\n                return false;\n              }\n              const removeNow = imgElement.getAttribute('data-remove-now');\n              if (removeNow === 'true') {\n                return true;\n              }\n              return false;\n            }), R.forEach(img => img.remove()))(fullWidthImageComponents);\n          }\n        } catch (error) {\n          console.error('==== ERROR: WHILE REMOVING DANGLING IMAGES FROM TEMPLATE', error);\n        }\n        const selectedComponent = editor.getSelected();\n        if (selectedComponent) {\n          editor.selectToggle(selectedComponent);\n        }\n        editor.store();\n        const wrapper = editor.DomComponents.getWrapper();\n        const imagesOnCanvas = yield this.getImagesOnCanvas(wrapper);\n        let productsOnCanvas = [];\n        wrapper.findType('bigordr-product').forEach(model => {\n          const element = model?.view?.$el;\n          if (!element) {\n            return;\n          }\n          const products = element.find('[data-bigordr-product]');\n          R.forEach(component => {\n            const itemKey = (0, _jquery.default)(component).attr('data-bigordr-product');\n            productsOnCanvas.pushObject(itemKey);\n            return itemKey;\n          })(products);\n        });\n        productsOnCanvas = R.uniq(productsOnCanvas);\n        model.setData('products', productsOnCanvas);\n        let flowForms = [];\n        const bigordrForm = wrapper.findType('bigordr-form');\n        R.forEach(model => {\n          const attributes = model.getAttributes();\n          const formKey = attributes['data-gjs-form-key'];\n          flowForms.pushObject(formKey);\n        })(bigordrForm);\n        flowForms = R.uniq(flowForms);\n        model.setData('flowForms', flowForms);\n        const storagePrefix = this.storagePrefix;\n        const storage = yield this.grapesjs.getPageDataStringFromStorage(editor, storagePrefix);\n        const {\n          html,\n          css,\n          pageDataString\n        } = storage;\n        model.setData('templateImages', imagesOnCanvas);\n        model.setData('pageDataString', pageDataString);\n        model.setData('html', html);\n        model.setData('css', css);\n        model.setData('isPublicTemplate', isPublicTemplate);\n\n        // if (!this.isNew && nventor.isNilOrEmpty(html)) {\n        //   model.setData('hasTemplate', false)\n        // }\n        // if (!this.isNew) {\n        //   model.setData('preSave', false)\n        // }\n\n        /* Add \"Theme\" to public template */\n        if (isPublicTemplate) {\n          const websiteData = this.website._data;\n          const theme = R.pipe(R.toPairs, R.filter(R.test(/^theme|^swatches/)), R.fromPairs)(websiteData);\n          model.setData('theme', theme);\n        }\n      }\n      const channelsShopAdapterName = R.prop('channelsShopAdapterName')(this);\n      if (channelsShopAdapterName) {\n        model.set('adapterName', channelsShopAdapterName);\n      }\n      let saved;\n      if (isPreview) {\n        const dataTabContainer = this.dataTabContainer;\n        if (dataTabContainer === 'campaigns') {\n          // this one using crud mixin replaceRecordTask\n          saved = yield this.onSaveTask(model, {\n            onAfter\n          });\n        }\n        if (dataTabContainer === 'websites') {\n          // this one using crud mixin updateRecordTask\n          saved = yield this.onSaveTask(model, {\n            onAfter\n          });\n        }\n        if (isLockedPreview) {\n          window.open(this.previewLockedLink);\n        } else {\n          window.open(this.previewLink);\n        }\n      } else {\n        saved = yield this.onSaveTask(model);\n      }\n      const body = (0, _jquery.default)('html, body');\n      const gjsRowOffset = (0, _jquery.default)(this.element).find('.gjs-row');\n      if (gjsRowOffset.offset()) {\n        const scrollTo = gjsRowOffset.offset().top - 30;\n        body.stop().animate({\n          scrollTop: scrollTo\n        }, 500, 'swing');\n      }\n      if (isPublicTemplate) {\n        return;\n      }\n      return saved;\n    }).drop(),\n    fetchPageDataTask: (0, _emberConcurrency.task)(function* () {\n      const pageKey = this.get('model._data._key');\n      const version = this.get('model._data.version');\n      let pageData = {};\n      const podKey = this.settings.getPodKey();\n      if (podKey && pageKey && version) {\n        try {\n          const response = yield this.server.call('GET', `api/protected/websites/pages/${podKey}/${pageKey}/${version}`);\n          pageData = R.propOr('', 'data', response);\n        } catch (e) {\n          //\n        }\n        this.set('pageData', pageData);\n      }\n      return pageData;\n    }),\n    onSubmitAfterPreview: (0, _emberConcurrency.task)(function* (onAfterShowSavedLabel, onCloseDialogAction, isLockedPreview = false) {\n      const isReadonly = this.isReadonly;\n      if (!isReadonly) {\n        yield this.submitTask.perform({\n          isPreview: true,\n          isLockedPreview,\n          onAfter: onAfterShowSavedLabel\n        });\n        onCloseDialogAction();\n      }\n      if (isReadonly) {\n        if (isLockedPreview) {\n          window.open(this.previewLockedLink);\n        } else {\n          window.open(this.previewLink);\n        }\n      }\n    }),\n    disableChangeLinkType: Ember.computed('isReadonly', 'model._data.linkToItemKey', function () {\n      if (this.get('model._data.linkToItemKey')) {\n        return true;\n      }\n      return this.isReadonly;\n    }),\n    addBigOrdrStoryOnTop() {\n      const editor = this.editor;\n      const canvasComponent = editor.getComponents();\n      const hasBigOComponent = canvasComponent.find(models => models.get('type') === 'bigordr-stories');\n      if (!hasBigOComponent) {\n        const canvasComponent = editor.getWrapper();\n        canvasComponent.append({\n          type: 'bigordr-stories'\n        }, {\n          at: 0\n        });\n        this.model.setData('showBigOrdrStory', true);\n        return;\n      }\n      hasBigOComponent.remove();\n      this.model.setData('showBigOrdrStory', false);\n    },\n    validateDisplayProductsInShop() {\n      const displayAdvancedTemplateInShop = R.pathOr(false, ['model', '_data', 'displayInShop'])(this);\n      if (!displayAdvancedTemplateInShop) {\n        this.model.setData('displayProductsInShop', true);\n      }\n    },\n    async getImagesOnCanvas(wrapper) {\n      try {\n        const domElement = wrapper?.getEl();\n        if (!domElement) {\n          return [];\n        }\n      } catch (error) {\n        return [];\n      }\n      let images = this.model.getData('templateImages');\n      images = R.map(image => {\n        if (image._data) {\n          return image;\n        }\n        return Ember.Object.create({\n          _data: image\n        });\n      })(images);\n      const resource = this.resource;\n      const resourceKey = this.resourceKey;\n      const wrapperImages = RA.ensureArray(wrapper.find('img'));\n      const wrapperPictureSource = RA.ensureArray(wrapper.find('source'));\n      const allImageTypes = R.concat(wrapperImages, wrapperPictureSource);\n      const getUploadcareUuid = R.pipe(R.split(/https:\\/\\/ucarecdn\\.com\\//), R.pathOr('', [1]), R.split('/'), R.pathOr('', [0]));\n      const imagesOnCanvas = R.pipe(R.map(gjsComponent => {\n        /** @type {HTMLImageElement|HTMLSourceElement} */\n        const gjsDomElement = gjsComponent.getEl();\n        const src = gjsDomElement.getAttribute('src') || gjsDomElement.getAttribute('srcset') || '';\n        const isUploadcare = R.startsWith('https://ucarecdn.com')(src);\n        if (!src || !isUploadcare) {\n          return null;\n        }\n        const gjsComponentUuid = getUploadcareUuid(src);\n        const gjsDomElementWidth = Math.round(gjsDomElement.width);\n        const gjsDomElementHeight = Math.round(gjsDomElement.height);\n        gjsComponent.addAttributes({\n          'data-width': gjsDomElementWidth,\n          'data-height': gjsDomElementHeight,\n          'data-blink-uuid': gjsComponentUuid\n        });\n        const mimeType = R.pipe(R.find(R.pathEq(['_data', 'uuid'], gjsComponentUuid)), R.pathOr('', ['_data', 'mimeType']))(images);\n        const imageData = Ember.Object.create({\n          _data: {\n            resource,\n            resourceKey,\n            mimeType,\n            uuid: gjsComponentUuid,\n            width: gjsDomElementWidth,\n            height: gjsDomElementHeight\n          }\n        });\n        return imageData;\n      }), R.reject(RA.isNilOrEmpty))(allImageTypes);\n\n      // GET IMAGES FROM CSS BACKGROUND\n      const storagePrefix = this.storagePrefix;\n      const data = await this.grapesjs.getPageDataStringFromStorage(this.editor, this.storagePrefix);\n      const {\n        css\n      } = data;\n      let cssImages = [];\n      if (css) {\n        cssImages = R.pipe(R.split(/;/gm), R.filter(R.includes('https://ucarecdn.com')), R.map(getUploadcareUuid), R.map(uuid => {\n          return Ember.Object.create({\n            _data: {\n              resource,\n              resourceKey,\n              uuid,\n              mimeType: '',\n              width: '',\n              height: ''\n            }\n          });\n        }))(css);\n      }\n      const uniqImages = R.pipe(R.concat(cssImages), R.uniqBy(R.path(['_data', 'uuid'])))(imagesOnCanvas);\n      return uniqImages;\n    },\n    removeUnUsedCssClassNames(editor) {\n      if (!editor) {\n        return;\n      }\n      try {\n        const wrapperComponent = editor.Components.getComponent();\n        const optimizeTypes = ['optimized-image', 'full-width-image', 'text', 'cell', 'bigordr-flex-cell'];\n        const allCssSelectors = editor.Css.getAll().map(m => m.getSelectorsString()) || [];\n        optimizeTypes.forEach(type => {\n          const typeModels = wrapperComponent.findType(type) || [];\n          typeModels.forEach(typeModel => {\n            const currentClassNames = typeModel.getClasses() || [];\n            currentClassNames.forEach(currentValue => {\n              const isClassNameBeenUsed = allCssSelectors.some(s => s.includes(currentValue));\n              const isDynamicClassName = R.test(/^(id-i|i)[a-z\\d]{3,10}$/gm)(currentValue);\n              if (!isClassNameBeenUsed && isDynamicClassName) {\n                typeModel.removeClass(currentValue);\n              }\n            });\n          });\n        });\n      } catch (error) {\n        console.error('ERROR WHILE REMOVING UNUSED CSS CLASS NAMES', error);\n      }\n    },\n    showSearchImagesModal(previousImage, allowSrcSet = true, onAddImage = () => null, index) {\n      this.set('showImagesModal', true);\n      this.set('showImagesModalFromSliderModal', true);\n      this.set('previousImage', previousImage);\n      this.set('allowSrcSet', allowSrcSet);\n      this.set('onAddImage', onAddImage);\n      this.set('onAddImageIndex', index);\n    },\n    addImage(onCloseDialogAction, options, selectedItems, data) {\n      const uploadsModel = _nventor.default.safeHeadOr({})(selectedItems || []);\n      if (this.showImagesModalFromSliderModal) {\n        this.onAddImage(uploadsModel, this.onAddImageIndex);\n      } else {\n        const imagesManager = this.imagesManager;\n        const imgType = this.imgType;\n        const imageUrl = uploadsModel.getUrl();\n        imagesManager.onImageSelect(imgType, imageUrl, uploadsModel.getData('mimeType'), uploadsModel, {\n          editor: this.editor\n        });\n        const model = this.model;\n        const images = model.getData('templateImages') || [];\n        images.pushObject(uploadsModel);\n        model.setData('templateImages', images);\n      }\n    },\n    actions: {\n      edit() {\n        // scroll to top)\n        _nventor.default.goToTop(30);\n        this.onEdit(...arguments);\n      },\n      cancel() {\n        // nventor.goToTop(30)\n        this.onCancel(...arguments);\n      },\n      cancelFullscreen() {\n        let confirm = true;\n        if (this.grapesJsFullscreen) {\n          const msg = this.intl.t('are you sure you want to cancel?');\n          confirm = window.confirm(msg);\n        }\n        if (confirm) {\n          this.onCancel(...arguments);\n        }\n      },\n      setupEditor(setupOnInitToggle) {\n        if (setupOnInitToggle) {\n          this.setup(setupOnInitToggle);\n        } else {\n          this.set('grapesJsFullscreen', false);\n        }\n      },\n      resetUrl() {\n        const model = this.model;\n        model.setData('url', '');\n        model.setData('linkToItemKey', '');\n      },\n      addLinkToProduct(onCloseDialogAction, item) {\n        const model = this.model;\n        model.setData('linkToItemKey', item.getData('itemKey'));\n        const url = `item/${item._data.itemKey}/${item._data.item}`;\n        model.setData('url', url);\n        onCloseDialogAction();\n      },\n      removeLinkToProducts() {\n        const model = this.model;\n        model.setData('linkToItemKey', '');\n        model.setData('url', '');\n      },\n      autoSetUrl() {\n        const model = this.model;\n        const url = model.getData('url');\n        if (!url) {\n          const name = model.getData('name');\n          let newUrl = R.pipe(R.trim, R.toLower, R.replace(/\\\\/g, ''), R.replace(/\\s/g, '-'))(name);\n          let parentUrl = model.getData('parentUrl');\n          if (!parentUrl) {\n            parentUrl = model.getData('parentName');\n          }\n          if (parentUrl && newUrl) {\n            newUrl = `${parentUrl}-${newUrl}`;\n          }\n          model.setData('url', newUrl);\n        }\n      },\n      autoFixUrl() {\n        const model = this.model;\n        const url = model.getData('url');\n        if (url) {\n          const newUrl = R.pipe(R.trim, R.replace(/\\\\/g, ''), R.replace(/\\s/g, '-'))(url);\n          model.setData('url', newUrl);\n        }\n      },\n      setParent(onCloseDialogAction, parent) {\n        const model = this.model;\n        model.setData('parent', parent.getData('_key'));\n        const parentDepth = parseInt(parent.getData('depth')) || 0;\n        const currentDepth = parentDepth + 1;\n        model.setData('depth', currentDepth);\n        model.setData('parentUrl', parent.getData('url') || '');\n        model.setData('parentName', parent.getData('name') || '');\n        this.set('parent', parent);\n        onCloseDialogAction();\n      },\n      unsetParent() {\n        const model = this.model;\n        const pagesCollection = this.pagesCollection;\n        const index = pagesCollection.get('nextIndex');\n        model.setData('parent', '');\n        model.setData('index', index);\n        model.setData('depth', 0);\n        model.setData('parentUrl', '');\n        model.setData('parentName', '');\n        this.set('parent', '');\n      },\n      cancelAddImages(onCloseDialogAction) {\n        onCloseDialogAction();\n      },\n      addProduct(onCloseDialogAction, product) {\n        const defaultImageUrl = product.getDefaultImageUrl('/-/scale_crop/200x200/');\n        const productsViewComponent = this.productsViewComponent;\n        productsViewComponent.set('defaultImage', defaultImageUrl);\n        productsViewComponent.set('itemKey', product.getData('itemKey'));\n        const model = this.model;\n        const products = model.getData('products') || [];\n        products.pushObject(product.getData('itemKey'));\n        model.setData('products', products);\n        onCloseDialogAction();\n      },\n      clearTemplate() {\n        const msg = this.intl.t('are you sure you want to clear page');\n        if (window.confirm(msg)) {\n          const editor = this.editor;\n          const grapesJsService = this.grapesjs;\n          grapesJsService.clearPage(editor, this.website);\n        }\n      },\n      replaceTemplate(pageData, templateImages = []) {\n        const model = this.model;\n        const website = this.website;\n        model.replaceTemplate('', templateImages);\n        const editor = this.editor;\n        const grapesJsService = this.grapesjs;\n        grapesJsService.setTemplate(editor, {\n          pageData,\n          website\n        });\n      },\n      async insertTemplate(toInsertPageData, templateImages = []) {\n        // REMOVE IMPORTED THEMES\n        toInsertPageData.styles = R.pipe(R.propOr([], 'styles'), R.reject(R.propEq('selectorsAdd', ':root')))(toInsertPageData);\n        const model = this.model;\n        const website = this.website;\n        model.insertTemplate('', templateImages);\n        const editor = this.editor;\n        const storagePrefix = this.storagePrefix;\n        const grapesJsService = this.grapesjs;\n        const currentPageData = await grapesJsService.getPageDataFromStorage(editor, storagePrefix);\n        const newPageData = {\n          html: '',\n          css: '',\n          styles: [],\n          components: []\n        };\n        newPageData.html = R.concat(R.propOr('', 'html', currentPageData), R.propOr('', 'html', toInsertPageData));\n        newPageData.css = R.propOr('', 'css', currentPageData);\n        newPageData.styles = R.concat(R.propOr('', 'styles', currentPageData), R.propOr('', 'styles', toInsertPageData));\n        newPageData.components = R.concat(R.propOr('', 'components', currentPageData), R.propOr('', 'components', toInsertPageData));\n        grapesJsService.setTemplate(editor, {\n          pageData: newPageData,\n          website\n        });\n      },\n      selectWebsitePageType() {\n        const model = this.model;\n        model.onSelectType();\n      },\n      toggleShowButtons(model, type) {\n        if (type === 'page') {\n          model.setData('hasTemplate', false);\n          model.setData('type', 'page');\n        } else {\n          model.setData('type', 'link');\n        }\n        this.set('showButtons', !this.showButtons);\n      },\n      toggleFullscreen() {\n        this.toggleProperty('grapesJsFullscreen');\n        this.setIsFullscreen(this.grapesJsFullscreen);\n        this.editor.refresh();\n      },\n      showLayerContainer() {\n        const layerManager = document.querySelector('.layer-manager');\n        const styleManager = document.querySelector('.style-manager');\n        if (window.getComputedStyle(layerManager).display === 'none') {\n          layerManager.style.display = 'block';\n          styleManager.style.display = 'none';\n          this.set('showLayerManager', true);\n        } else {\n          layerManager.style.display = 'none';\n          styleManager.style.display = 'block';\n          this.set('showLayerManager', false);\n        }\n      },\n      onDidInsertBtnWithModal(component) {\n        if (this.isNew) {\n          component.toggleOnModalDialog();\n        }\n      },\n      cancelSettingsModal(onCloseDialogAction, onCancel) {\n        onCloseDialogAction();\n        if (this.isNew) {\n          onCancel();\n        }\n      },\n      onAfter(onCloseDialogAction) {\n        if (onCloseDialogAction) {\n          onCloseDialogAction();\n        }\n      },\n      onAfterShowSavedLabel() {\n        this.set('showHasSavedLabel', true);\n        this.setIsFullscreen();\n        setTimeout(() => {\n          if (this?.isDestroyed === false) {\n            this.set('showHasSavedLabel', false);\n          }\n        }, 5000);\n      },\n      setupDirtyWebsite(website) {\n        const dirty = this.crud.setupDirty({\n          adapterName: 'websites',\n          model: website\n        });\n        this.set('websiteDirty', dirty);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"addBigOrdrStoryOnTop\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"addBigOrdrStoryOnTop\"), _obj), _applyDecoratedDescriptor(_obj, \"validateDisplayProductsInShop\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"validateDisplayProductsInShop\"), _obj), _applyDecoratedDescriptor(_obj, \"getImagesOnCanvas\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"getImagesOnCanvas\"), _obj), _applyDecoratedDescriptor(_obj, \"removeUnUsedCssClassNames\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"removeUnUsedCssClassNames\"), _obj), _applyDecoratedDescriptor(_obj, \"showSearchImagesModal\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"showSearchImagesModal\"), _obj), _applyDecoratedDescriptor(_obj, \"addImage\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"addImage\"), _obj), _obj));\n});","define(\"client/pods/components/websites/websites-editor/pages-editor/preview-link/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 WebsitesWebsitesEditorPagesEditorPreviewLinkComponent = _exports.default = (_dec = Ember.inject.service, _class = class WebsitesWebsitesEditorPagesEditorPreviewLinkComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"application\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"application\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/websites/websites-editor/pages-editor/preview-link/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"loP4RQl+\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@onSubmitAfterPreview\\\",\\\"@onAfterShowSavedLabel\\\",\\\"@model\\\"],\\\"statements\\\":[[5,\\\"lists/list-btn\\\",[],[[\\\"@icon\\\"],[\\\"fas fa-eye\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipTranslate\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"view webpage\\\",false,[23,2,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,2,[]],[23,3,[]],[23,1,[]],false],null]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"password\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@tooltipTranslate\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"view locked\\\",false,[23,2,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,2,[]],[23,3,[]],[23,1,[]],true],null]]]],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@icon\\\",\\\"@isCopyBtn\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"far fa-copy\\\",true,false,[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"password\\\"],null],\\\": \\\",[23,4,[\\\"_data\\\",\\\"password\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"application\\\",\\\"copyText\\\"]],[23,4,[\\\"_data\\\",\\\"password\\\"]],false],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/pages-editor/preview-link/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/pages-editor/settings-modal/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-extension\", \"ember-concurrency-decorators\"], function (_exports, _component, R, R_, _emberConcurrencyDecorators) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _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 WebsitesWebsitesEditorPagesEditorDynamicPageModalComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember.computed('dirty._data.url'), _dec7 = Ember.computed('dirty._data.hasTemplate', 'isDefaultPageUrl'), _dec8 = Ember.computed('dirty._data.url', 'isDefaultPageUrl'), _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember.computed('model.isDynamicPage', 'isNew'), _dec10 = Ember.computed('args.pagesCollection.menuExcludingHome.[]'), _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _class = class WebsitesWebsitesEditorPagesEditorDynamicPageModalComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor4, this);\n      _initializerDefineProperty(this, \"pageName\", _descriptor5, this);\n      _defineProperty(this, \"adapterName\", 'websites/pages');\n      this.crud.addLists(this, ['facebook/pixels', 'google/tracking', 'products/lists/tags', 'websites/lists/template-types', 'websites/lists/types', 'websites/lists/types/links', 'statuses']);\n    }\n    get showAllowSeoToggle() {\n      const modelData = this.dirty?._data || {};\n      if (modelData?.isDynamicPage === true) {\n        return false;\n      }\n      return true;\n    }\n    get allowHasBanners() {\n      if (this.dirty?._data?.isDynamicPage) {\n        return true;\n      }\n      const isCategory = this.dirty?._data?.type === this.constants.websitePageTypes.category;\n      if (isCategory) {\n        return true;\n      }\n      return false;\n    }\n    get isDefaultPageUrl() {\n      const dirty = this.dirty;\n      const url = dirty?._data?.url;\n      const defaultPageUrls = ['contact-us', 'privacy-policy', 'shipping-policy'];\n      return R.includes(url, defaultPageUrls);\n    }\n    get hasDefaultContentWarning() {\n      const isDefaultPageUrl = this.isDefaultPageUrl;\n      if (!isDefaultPageUrl) {\n        return false;\n      }\n      const dirty = this.dirty;\n      if (dirty?._data?.hasTemplate) {\n        return false;\n      }\n      return true;\n    }\n    get webpageContentLabel() {\n      const isDefaultPageUrl = this.isDefaultPageUrl;\n      if (isDefaultPageUrl) {\n        return 'custom_webpage_content';\n      }\n      return 'webpage_content';\n    }\n    setupDirtyOnInitAction() {\n      if (this.args.isReadonly) {\n        // model is used for displaying only. should stil be able to update view when broadcasted\n        this.dirty = this.args.model;\n        return;\n      }\n      if (this.args.isNew) {\n        // model is created on the outside\n        this.dirty = this.args.model;\n        return;\n      }\n      const model = this.args.model;\n      if (model?.isDirty) {\n        this.dirty = model;\n        return;\n      }\n\n      // create dirty model on init\n      return this._setupDirty();\n    }\n    _setupDirty() {\n      this.dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model: this.args.model\n      });\n      const parent = this?.parent?._data || {};\n      const parentKey = R.pathOr('', ['dirty', '_data', 'parent'])(this);\n      if (parentKey && parent) {\n        this.dirty = R.pipe(R.propOr({}, 'dirty'), R.over(R.lensProp('_data'), data => {\n          data.parentName = R.propOr('', 'name')(parent);\n          data.parentUrl = R.propOr('', 'url')(parent);\n          return data;\n        }))(this);\n      }\n      if (this.dirty?._data?.isHome || this.dirty?.isLink) {\n        this.dirty.setData('showBreadcrumb', false);\n      }\n    }\n    get isModal() {\n      if (this.args.onCloseDialogAction) {\n        return true;\n      }\n      return false;\n    }\n    get showBtns() {\n      if (this.isModal === false) {\n        return false;\n      }\n      if (this.args.isReadonly) {\n        return false;\n      }\n      if (this.args.isNew) {\n        return true;\n      }\n      if (this.args.isEditing) {\n        return true;\n      }\n      return false;\n    }\n    get height() {\n      return '128';\n    }\n    get width() {\n      return '128';\n    }\n    get transform() {\n      return this.args.transform || '/-/preview/200x200';\n    }\n    get allPages() {\n      return R.pathOr([], ['args', 'pagesCollection', '_data', 'pages'])(this);\n    }\n    get isRemovable() {\n      const model = this.args.model;\n      if (!model?._data?._key) {\n        return false;\n      }\n      if (model?._data?.isHome) {\n        return false;\n      }\n      if (model?._data?.isDynamicPage) {\n        return false;\n      }\n      return true;\n    }\n    get parent() {\n      const lastParentKey = R.pipe(R.pathOr('', ['dirty', '_data', 'parent']), R.split('/'), R.last)(this);\n      return R.find(R.pathEq(['_data', '_key'], lastParentKey))(this.allPages) || {\n        _data: {}\n      };\n    }\n    get canToggleContent() {\n      const isDynamicPage = R.pathOr(false, ['dirty', '_data', 'isDynamicPage'])(this);\n      const isHome = R.pathOr(false, ['dirty', '_data', 'isHome'])(this);\n      if (isHome) {\n        return false;\n      }\n      return !isDynamicPage;\n    }\n    get allowedParents() {\n      const allParents = R_.dotPathOr([], 'args.pagesCollection.menuExcludingHome')(this);\n      const currentPage = this.args.model;\n      const clone = R.concat(allParents)([]);\n      clone.removeObject(currentPage);\n      return clone;\n    }\n    refreshData() {\n      this.dirty = this.dirty;\n    }\n    unsetParent() {\n      const pagesCollection = R.pathOr('', ['args', 'pagesCollection'])(this);\n      const index = pagesCollection.get('nextIndex');\n      this.dirty.setData('parent', '');\n      this.dirty.setData('index', index);\n      this.dirty.setData('depth', 0);\n      this.dirty.setData('parentUrl', '');\n      this.dirty.setData('parentName', '');\n      this.refreshData();\n    }\n    setParent(onCloseDialogAction, parent) {\n      const parentArr = [];\n      const parentDepth = parseInt(parent.getData('depth')) || 0;\n      let i = R.clone(parentDepth);\n      const getAncestors = _parent => {\n        if (i >= 0) {\n          const parentKey = _parent.getData('_key');\n          parentArr[i] = parentKey;\n          i -= 1;\n          const ancestorKey = _parent.getData('parent');\n          if (ancestorKey) {\n            const lastParent = R.pipe(R.split('/'), R.last)(ancestorKey);\n            const ancestor = R.find(R.pathEq(['_data', '_key'], lastParent))(this.allPages);\n            getAncestors(ancestor);\n          }\n        }\n      };\n      getAncestors(parent);\n      const ancestors = R.join('/', parentArr);\n      this.dirty.setData('parent', ancestors);\n      this.dirty.setData('depth', parentDepth + 1);\n      this.dirty.setData('parentUrl', parent.getData('url') || '');\n      this.dirty.setData('parentName', parent.getData('name') || '');\n      this.refreshData();\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    onSubmit(onCloseDialogAction, options, uploadsModel) {\n      const banner = R.pathOr({}, [0, '_data'])(uploadsModel);\n      if (options.topBanner) {\n        this.dirty.set('_data.topBanner', banner);\n      }\n      if (options.bottomBanner) {\n        this.dirty.set('_data.bottomBanner', banner);\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    selectWebsitePageType(type) {\n      return this.dirty.onSelectType();\n    }\n    resetUrl() {\n      this.dirty.setData('url', '');\n      this.dirty.setData('linkToItemKey', '');\n      return this.dirty;\n    }\n    addLinkToProduct(onCloseDialogAction, item) {\n      this.dirty.setData('linkToItemKey', item.getData('itemKey'));\n      const url = `item/${item._data.itemKey}/${item._data.item}`;\n      this.dirty.setData('url', url);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    autoFixUrl() {\n      const url = this.dirty.getData('url');\n      if (!url) {\n        return;\n      }\n      let newUrl = R.pipe(R.trim, R.replace(/\\\\/g, ''), R.replace(/\\s/g, '-'))(url);\n      const type = this.dirty?._data?.type || '';\n      if (type !== this.constants.websitePageTypes.link) {\n        newUrl = R.replace(/\\//gm, '')(newUrl);\n      }\n      this.dirty.setData('url', newUrl);\n    }\n\n    // CURRENTLY NOT USED\n    autoSetUrl() {\n      const type = this.dirty?._data?.type || '';\n      if (type !== this.constants.websitePageTypes.link) {\n        this.dirty.setData('url', '');\n        return;\n      }\n      const url = this.dirty.getData('url');\n      if (!url) {\n        const name = this.dirty.getData('name');\n        let newUrl = R.pipe(R.trim, R.toLower, R.replace(/\\\\/g, ''), R.replace(/\\s/g, '-'))(name);\n        let parentUrl = this.dirty.getData('parentUrl');\n        if (!parentUrl) {\n          parentUrl = this.dirty.getData('parentName');\n        }\n        if (parentUrl && newUrl) {\n          newUrl = `${parentUrl}-${newUrl}`;\n        }\n        this.dirty.setData('url', newUrl);\n      }\n    }\n    cancel(onCloseDialogAction) {\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      if (this.args.isNew && this.args.onCancel) {\n        this.args.onCancel();\n      }\n    }\n    removeBanner(bannerName) {\n      this.dirty.setData(bannerName, null);\n      this.refreshData();\n    }\n    toggleIsDisallowClick() {\n      this.dirty.setData('homePageRedirect', false);\n      this.dirty.setData('hasTemplate', false);\n      if (this.dirty._data.isDynamicPage || this.isDefaultPageUrl) {\n        return;\n      }\n      if (this.dirty._data.type === this.constants.websitePageTypes.page) {\n        this.dirty.setData('hasTemplate', true);\n      }\n    }\n    *saveTask(onCloseDialogAction) {\n      const adapterName = this.adapterName;\n      const model = this.dirty;\n      if (this.args.isNew) {\n        yield this.args.onSubmitTask({\n          model\n        });\n        if (onCloseDialogAction) {\n          onCloseDialogAction();\n        }\n        return false;\n      }\n      return yield this.crud.updateRecordTask.perform({\n        adapterName,\n        model,\n        tab: this.args.tab,\n        onAfter: onCloseDialogAction\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"pageName\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isDefaultPageUrl\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"isDefaultPageUrl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasDefaultContentWarning\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"hasDefaultContentWarning\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"webpageContentLabel\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"webpageContentLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDirtyOnInitAction\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirtyOnInitAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setupDirty\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"_setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isRemovable\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"isRemovable\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allowedParents\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"allowedParents\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unsetParent\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"unsetParent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setParent\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"setParent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSubmit\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"onSubmit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectWebsitePageType\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"selectWebsitePageType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetUrl\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"resetUrl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addLinkToProduct\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"addLinkToProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"autoFixUrl\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"autoFixUrl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"autoSetUrl\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"autoSetUrl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeBanner\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"removeBanner\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsDisallowClick\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsDisallowClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/websites-editor/pages-editor/settings-modal/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"G0kOt4kq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@onRemove\\\",\\\"@onCloseDialogAction\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@documentationIsMinimized\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[[12,\\\"data-form-id\\\",[23,0,[\\\"dirty\\\",\\\"instanceId\\\"]]],[3,\\\"did-insert\\\",[[23,0,[\\\"setupDirtyOnInitAction\\\"]]]]],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"page-editor\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"websitesPages\\\",[23,13,[]],[23,8,[]],[23,12,[]],[23,11,[]]]]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\"],[[23,1,[]],\\\"page\\\",\\\"page_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@disallowedForFeatures\\\",\\\"@label\\\"],[\\\"type\\\",[23,1,[]],[23,6,[]],[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null],\\\"website_menu_type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,7,[]],[28,\\\"if\\\",[[23,0,[\\\"canToggleContent\\\"]],false,true],null]],null],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-types\\\"]],[23,0,[\\\"selectWebsitePageType\\\"]],true,true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"type\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"canToggleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"name\\\",[23,1,[]],[23,6,[]],\\\"default name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"u-desc \\\",[28,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"pageName\\\"]],\\\"u-desc--strikethrough\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"tt\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"name\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[28,\\\"if\\\",[[23,0,[\\\"canToggleContent\\\"]],\\\"name\\\",\\\"pageName\\\"],null],[23,1,[]],[23,6,[]],[23,0,[\\\"canToggleContent\\\"]],\\\"webpage name\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canToggleContent\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\"],[\\\"name\\\",[23,7,[]],true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[\\\"pageName\\\",[23,7,[]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"pageName\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isHome\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"parent\\\",[23,1,[]],[23,6,[]],false,\\\"parent page\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@allowDeselect\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@onDeselect\\\",\\\"@translate\\\"],[true,[23,7,[]],[23,0,[\\\"parent\\\",\\\"pageName\\\"]],[23,0,[\\\"unsetParent\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"websites/panels-display/sub-panels-pages/nav-menu-nested\\\",[],[[\\\"@classNames\\\",\\\"@isDraggable\\\",\\\"@isExpanded\\\",\\\"@isViewable\\\",\\\"@labelKey\\\",\\\"@excludePath\\\",\\\"@excludeWhen\\\",\\\"@menu\\\",\\\"@onSelect\\\",\\\"@selected\\\",\\\"@hasSettingsModal\\\",\\\"@tab\\\",\\\"@translate\\\"],[\\\"app-nav\\\",false,true,true,\\\"pageName\\\",\\\"_data._key\\\",[23,10,[\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"allowedParents\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"setParent\\\"]],[23,3,[]]],null],[23,0,[\\\"dirty\\\"]],false,[23,8,[]],false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasDefaultContentWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"class\\\",\\\"has-text-danger\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-label\\\",[[12,\\\"class\\\",\\\"has-text-danger\\\"]],[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fas fa-circle-info\\\",\\\"default_webpage_content_warning\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canToggleContent\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"isLink\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@title\\\"],[\\\"links\\\",[23,1,[]],\\\"link\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"websites/links-editor\\\",[],[[\\\"@model\\\",\\\"@website\\\",\\\"@isReadonly\\\",\\\"@formInitData\\\"],[[23,0,[\\\"dirty\\\"]],[23,9,[]],[23,7,[]],[23,1,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\"],[[23,1,[]],\\\"page url\\\",\\\"pageUrl_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"url\\\",[23,1,[]],[23,6,[]],[28,\\\"not\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isHome\\\"]]],null],\\\"url\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@context\\\",\\\"@onFocusOut\\\",\\\"@readonly\\\",\\\"@isRequired\\\",\\\"@value\\\"],[\\\"url\\\",[23,0,[\\\"autoFixUrl\\\"]],[23,7,[]],[28,\\\"not\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isHome\\\"]]],null],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"url\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"dirty\\\",\\\"isCategory\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@title\\\"],[[23,1,[]],\\\"password_group\\\",\\\"password\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"password\\\",[23,1,[]],[23,6,[]],\\\"password (at least 8 characters)\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,7,[]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"password\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"page status\\\",\\\"status_group\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"status\\\",[23,1,[]],[23,6,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],true,[23,0,[\\\"dirty\\\",\\\"statusClass\\\"]],true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isDynamicPage\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@btnClassNames\\\",\\\"@disabled\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@modalDialogTitle\\\",\\\"@modalDialogTitleTranslate\\\"],[\\\"u-margin-left-5\\\",[23,7,[]],\\\"far fa-clock\\\",\\\"\\\",\\\"page schedules\\\",\\\"page schedules\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"status-schedules\\\",[],[[\\\"@model\\\",\\\"@schedules\\\",\\\"@hasSchedules\\\",\\\"@listsStatuses\\\",\\\"@type\\\",\\\"@isReadonly\\\",\\\"@errors\\\",\\\"@onCloseDialogAction\\\"],[[23,0,[\\\"dirty\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"pageSchedules\\\"]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"hasPageSchedules\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],\\\"pageSchedules\\\",[23,7,[]],[23,6,[]],[23,2,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"hasPageSchedules\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table u-full-width u-margin-top-10\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"activePageSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"current schedule\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"dirty\\\",\\\"activePageSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"dirty\\\",\\\"activePageSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"nextPageSchedule\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"has-text-weight-bold\\\"],[8],[1,[28,\\\"tt\\\",[\\\"next schedule\\\"],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"dirty\\\",\\\"nextPageSchedule\\\",\\\"_data\\\",\\\"dateStartZ\\\"]]],null],false],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[0,\\\"~\\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"dateTime\\\",[[23,0,[\\\"dirty\\\",\\\"nextPageSchedule\\\",\\\"_data\\\",\\\"dateEndZ\\\"]]],null],false],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"type\\\"]],[23,0,[\\\"constants\\\",\\\"websitePageTypes\\\",\\\"category\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"product tags\\\",\\\"tags_group\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"productTags\\\",[23,1,[]],[23,6,[]],\\\"product tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,7,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"products/lists/tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"hasShowTagsOnFilterToggle\\\",\\\"hasShowTagsOnPageToggle\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[true,true,\\\"tags\\\",true]]],true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],[23,0,[\\\"dirty\\\"]],true,\\\"_data._key\\\",[23,8,[]],false,\\\"_data.productTags\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-tags\\\"]],\\\"_data._key\\\",false,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"productTags\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"seo-settings\\\",\\\"seo_group\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showAllowSeoToggle\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@disallowedForFeatures\\\"],[\\\"allowSeo\\\",[23,1,[]],[23,6,[]],\\\"allow seo\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"allowSeo\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"seoDescription\\\",[23,1,[]],[23,6,[]],false,\\\"webpage seo description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@value\\\"],[[23,7,[]],2,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"seoDescription\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@description\\\",\\\"@translateDescription\\\"],[\\\"seoKeywords\\\",[23,1,[]],[23,6,[]],false,\\\"webpage seo keywords\\\",\\\"separate each keyword using comma\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,7,[]],[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"seoKeywords\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"hasTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@label\\\",\\\"@labelClassNames\\\"],[[23,1,[]],\\\"isCanonical\\\",\\\"website_is_canonical\\\",\\\"u-desc\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@toggleValue\\\"],[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isCanonical\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"headers\\\",[23,1,[]],[23,6,[]],false,\\\"website_headers\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"headers\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"scripts\\\",[23,1,[]],[23,6,[]],false,\\\"website_scripts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"scripts\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"openGraph_group\\\",[23,8,[]],\\\"open graph\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"open-graph\\\",[],[[\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],[23,6,[]],[23,7,[]],[23,0,[\\\"dirty\\\"]],[23,8,[]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"isAdmin\\\"],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"googleTrackingKeys_group\\\",[23,8,[]],\\\"google tags manager\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"googleTrackingKeys\\\",[23,1,[]],\\\"google tracking id\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,7,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@addItemComponent\\\",\\\"@adapterName\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionLabelKey2\\\",\\\"@optionLabelKey2Prefix\\\",\\\"@optionLabelKey2Translate\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@tab\\\",\\\"@valueKey\\\"],[\\\"google/tracking-editor\\\",\\\"google/tracking\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]],[23,0,[\\\"dirty\\\"]],true,\\\"_data.value\\\",\\\": \\\",false,\\\"_data._key\\\",false,[23,8,[]],\\\"_data.googleTrackingKeys\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionLabelKey2\\\",\\\"@optionLabelKey2Prefix\\\",\\\"@optionLabelKey2Translate\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"google-tracking\\\"]],\\\"_data.value\\\",\\\": \\\",false,\\\"_data._key\\\",false,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"googleTrackingKeys\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"facebookPixel_group\\\",[23,8,[]],\\\"facebook pixel\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"facebookPixelKeys\\\",[23,1,[]],\\\"pixel id\\\",[23,0,[\\\"dirty\\\"]],[23,8,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\",\\\"@list\\\"],[[23,7,[]],\\\"fas fa-tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pixels\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@addItemComponent\\\",\\\"@allowEmpty\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@valueKey\\\"],[\\\"facebook/pixels\\\",\\\"facebook/pixel-editor\\\",true,true,\\\"tags\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pixels\\\"]],[23,0,[\\\"dirty\\\"]],true,\\\"_data._key\\\",[23,8,[]],false,\\\"_data.facebookPixelKeys\\\"]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@optionValueKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"facebook-pixels\\\"]],\\\"_data._key\\\",false,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"facebookPixelKeys\\\"]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"show page settings\\\",\\\"showPageSettings_group\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"not\\\",[[28,\\\"or\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isHome\\\"]],[23,0,[\\\"dirty\\\",\\\"isLink\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"pageMenu\\\",[23,1,[]],[23,6,[]],\\\"webpage_show_breadcrumb\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,7,[]],false,true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"showBreadcrumb\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"pageMenu\\\",[23,1,[]],[23,6,[]],\\\"webpage_show_on_menu\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,7,[]],false,true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"showOnMenu\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\",\\\"isCategory\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"pageMenu\\\",[23,1,[]],[23,6,[]],\\\"webpage_show_on_filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,7,[]],false,true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"showOnFilters\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"pageMenu\\\",[23,1,[]],[23,6,[]],\\\"webpage_show_on_footer\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[23,7,[]],false,true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"showOnFooter\\\"]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isHome\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"homePageRedirect\\\",[23,1,[]],[23,6,[]],\\\"webpage_home_page_redirect\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,7,[]],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isDisallowClick\\\"]]],null],false,true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"homePageRedirect\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"isDisallowClick\\\",[23,1,[]],[23,6,[]],\\\"webpage_isDisallowClick\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggleWhenFalse\\\"],[[23,7,[]],false,true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isDisallowClick\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"toggleIsDisallowClick\\\"]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[23,0,[\\\"dirty\\\",\\\"isLink\\\"]],[23,0,[\\\"dirty\\\",\\\"isProductLink\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isDisallowClick\\\"]],[23,0,[\\\"dirty\\\",\\\"isCategory\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\",\\\"@allowedForFeatures\\\"],[[23,1,[]],\\\"webpage_template\\\",\\\"template_group\\\",[28,\\\"array\\\",[\\\"features.hasLegacyWebsitesTemplateTypes\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@allowedForFeatures\\\",\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[28,\\\"array\\\",[\\\"features.hasLegacyWebsitesTemplateTypes\\\"],null],\\\"templateType\\\",[23,1,[]],[23,6,[]],false,\\\"webpage_template_type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@translate\\\",\\\"@value\\\"],[[28,\\\"or\\\",[[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"isDisallowClick\\\"]],[23,7,[]]],null],true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-template-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",true,[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"templateType\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasDefaultContentWarning\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"class\\\",\\\"has-text-danger\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-label\\\",[[12,\\\"class\\\",\\\"has-text-danger\\\"]],[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fas fa-circle-info\\\",\\\"default_webpage_content_warning\\\"]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"allowHasBanners\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\"],[[23,1,[]],\\\"banner top\\\",\\\"bannerTop_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"img-banner\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@imageUuidPath\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@valuePath\\\"],[\\\"topBanner\\\",[23,6,[]],\\\"banner top\\\",\\\"_data.topBanner.uuid\\\",[23,7,[]],[23,0,[\\\"dirty\\\"]],[23,8,[]],\\\"_data.topBanner\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@title\\\",\\\"@context\\\"],[[23,1,[]],\\\"banner bottom\\\",\\\"bannerBottom_group\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"img-banner\\\",[],[[\\\"@context\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@imageUuidPath\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@valuePath\\\"],[\\\"bottomBanner\\\",[23,6,[]],\\\"banner bottom\\\",\\\"_data.bottomBanner.uuid\\\",[23,7,[]],[23,0,[\\\"dirty\\\"]],[23,8,[]],\\\"_data.bottomBanner\\\"]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showBtns\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isRemovable\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[23,4,[]],true]]],[0,\\\"\\\\n\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"cancel\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],\\\"done\\\",[28,\\\"perform\\\",[[23,0,[\\\"saveTask\\\"]],[23,5,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/pages-editor/settings-modal/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/pages-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XvVCXkhe\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@isRunning\\\",\\\"@onNew\\\",\\\"@disabled\\\",\\\"@website\\\",\\\"@model\\\",\\\"@isShowWebsitePagesNav\\\",\\\"@channelsShopKey\\\",\\\"@onAfterRemove\\\",\\\"@isNew\\\",\\\"@onCancel\\\",\\\"@errors\\\",\\\"@pagesCollection\\\",\\\"@tab\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"panel-grid__content gjs-container \\\",[28,\\\"if\\\",[[23,0,[\\\"hasWebBuilderEditing\\\"]],\\\"is-editing\\\"],null]]]],[11,\\\"data-form-id\\\",[23,7,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,7,[\\\"allowWebBuilder\\\"]],[23,0,[\\\"hasTemplateOnInit\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"gjs-view-height\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"gjs-row\\\"],[10,\\\"allowfullscreen\\\",\\\"allowfullscreen\\\"],[10,\\\"style\\\",\\\"height:100%\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"gjs-column editor-clm \\\",[28,\\\"if\\\",[[24,[\\\"grapesJsFullscreen\\\"]],\\\"gjs-fullscreen is-fullscreen\\\"],null]]]],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[11,\\\"id\\\",[28,\\\"concat\\\",[\\\"gjs-panel__top-\\\",[24,[\\\"editorId\\\"]]],null]],[10,\\\"class\\\",\\\"panel__top\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"concat\\\",[\\\"panel__devices-\\\",[24,[\\\"editorId\\\"]],[28,\\\"if\\\",[[28,\\\"and\\\",[[23,0,[\\\"disablePanel\\\"]],[28,\\\"not\\\",[[24,[\\\"isReadonly\\\"]]],null]],null],\\\" gjs-pn-disable\\\"],null]],null]],[8],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,[[\\\"classNames\\\"],[[28,\\\"concat\\\",[\\\"panel__pages-actions-\\\",[24,[\\\"editorId\\\"]],\\\" flex-container-row flex-container--justify-center flex-container--align-items-center\\\"],null]]],{\\\"statements\\\":[[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@translate\\\",\\\"@label\\\"],[false,[24,[\\\"model\\\",\\\"pageName\\\"]]]]],[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"or\\\",[[23,9,[]],[23,11,[]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"beta.stories\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[\\\"gjs-show-bigordr-story\\\",[23,0,[\\\"isReadonly\\\"]],false,true,[24,[\\\"model\\\",\\\"_data\\\",\\\"showBigOrdrStory\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"addBigOrdrStoryOnTop\\\"],null]]]],[0,\\\"\\\\n                  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,9,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"pod/get\\\",[\\\"beta.stories\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@toggleOffValue\\\",\\\"@toggleOnValue\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[\\\"gjs-show-bigordr-story\\\",[23,0,[\\\"isReadonly\\\"]],false,true,[24,[\\\"model\\\",\\\"_data\\\",\\\"showBigOrdrStory\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"addBigOrdrStoryOnTop\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@classNames\\\",\\\"@allowEmpty\\\",\\\"@multiSelect\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@model\\\",\\\"@valueKey\\\"],[\\\"list-selector--vertical\\\",false,true,true,[23,0,[\\\"isReadonly\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-website-page-display\\\"]],[22,\\\"model\\\"],\\\"_data.templateOptions\\\"]]],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"websites/websites-editor/pages-editor/preview-link\\\",[],[[\\\"@model\\\",\\\"@previewLink\\\",\\\"@previewLockedLink\\\",\\\"@onSubmitAfterPreview\\\",\\\"@onAfterShowSavedLabel\\\"],[[22,\\\"model\\\"],[23,0,[\\\"previewLink\\\"]],[23,0,[\\\"previewLockedLink\\\"]],[23,0,[\\\"onSubmitAfterPreview\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onAfterShowSavedLabel\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"not\\\",[[23,0,[\\\"isReadonly\\\"]]],null],[23,0,[\\\"grapesJsFullscreen\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n                \\\"],[1,[28,\\\"elements/btn-delete\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"clear page\\\",[28,\\\"action\\\",[[23,0,[]],\\\"clearTemplate\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"websites/websites-editor/page-import-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@onReplaceTemplate\\\",\\\"@onInsertTemplate\\\"],[\\\"choose template\\\",[22,\\\"isReadonly\\\"],[22,\\\"tab\\\"],[22,\\\"model\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"replaceTemplate\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"insertTemplate\\\"],null]]]],[0,\\\"\\\\n                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"color-preview\\\",[],[[\\\"@editor\\\",\\\"@model\\\",\\\"@onOpen\\\",\\\"@saveTask\\\"],[[22,\\\"editor\\\"],[22,\\\"websiteDirty\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"setupDirtyWebsite\\\",[24,[\\\"website\\\"]]],null],[28,\\\"perform\\\",[[24,[\\\"submitWebsiteTask\\\"]],[28,\\\"hash\\\",null,[[\\\"onAfter\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"onAfterShowSavedLabel\\\"],null]]]]],null]]]],[0,\\\"\\\\n\\\\n                  \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"fas fa-compress\\\",\\\"exit fullscreen\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleFullscreen\\\"],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showLayerManager\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"fas fa-paint-brush\\\",\\\"show style manager\\\",[28,\\\"action\\\",[[23,0,[]],\\\"showLayerContainer\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"fas fa-layer-group\\\",\\\"show layer manager\\\",[28,\\\"action\\\",[[23,0,[]],\\\"showLayerContainer\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"cancelFullscreen\\\"],null]]]],false],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"websites/websites-editor/pages-editor/preview-link\\\",[],[[\\\"@model\\\",\\\"@previewLink\\\",\\\"@previewLockedLink\\\",\\\"@onSubmitAfterPreview\\\",\\\"@onAfterShowSavedLabel\\\"],[[22,\\\"model\\\"],[23,0,[\\\"previewLink\\\"]],[23,0,[\\\"previewLockedLink\\\"]],[23,0,[\\\"onSubmitAfterPreview\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onAfterShowSavedLabel\\\"],null]]]],[0,\\\"\\\\n\\\\n                \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[23,3,[]],[28,\\\"perform\\\",[[24,[\\\"submitTask\\\"]],[28,\\\"hash\\\",null,[[\\\"onAfter\\\"],[[28,\\\"action\\\",[[23,0,[]],\\\"onAfterShowSavedLabel\\\"],null]]]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showHasSavedLabel\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/element-label\\\",null,[[\\\"classNames\\\",\\\"label\\\"],[\\\"label-fade-in label-fade-out\\\",\\\"saved\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"            \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[28,\\\"concat\\\",[\\\"panel__basic-actions-\\\",[24,[\\\"editorId\\\"]],[28,\\\"if\\\",[[23,0,[\\\"disablePanel\\\"]],\\\" gjs-pn-disable\\\"],null]],null]],[8],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"editor-row  \\\",[28,\\\"if\\\",[[23,0,[\\\"isReadonly\\\"]],\\\"is-readonly\\\",\\\"is-editing\\\"],null]]]],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel__left\\\"],[11,\\\"hidden\\\",[22,\\\"isReadonly\\\"]],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[11,\\\"id\\\",[29,[\\\"blocks-container-\\\",[23,0,[\\\"editorId\\\"]]]]],[10,\\\"class\\\",\\\"blocks-container\\\"],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"editor-canvas \\\",[28,\\\"if\\\",[[23,0,[\\\"grapesJsFullscreen\\\"]],\\\"u-height-100vh\\\"],null]]]],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\",\\\"isFullscreen\\\"],[[23,0,[\\\"isEditorCanvasLoading\\\"]],true]]],false],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[11,\\\"id\\\",[29,[[23,0,[\\\"editorId\\\"]]]]],[11,\\\"class\\\",[28,\\\"if\\\",[[23,0,[\\\"isEditorCanvasLoading\\\"]],\\\"editor-loading\\\",\\\"editor-loaded\\\"],null]],[8],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel__right\\\"],[11,\\\"hidden\\\",[22,\\\"isReadonly\\\"]],[8],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"style-manager\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[11,\\\"id\\\",[29,[\\\"style-container-\\\",[23,0,[\\\"editorId\\\"]]]]],[10,\\\"class\\\",\\\"style-container\\\"],[8],[9],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[11,\\\"id\\\",[29,[\\\"trait-container-\\\",[23,0,[\\\"editorId\\\"]]]]],[10,\\\"class\\\",\\\"trait-container\\\"],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"layer-manager gjs-pn-panel gjs-pn-style gjs-one-bg gjs-two-color\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[11,\\\"id\\\",[29,[\\\"layer-container-\\\",[23,0,[\\\"editorId\\\"]]]]],[10,\\\"class\\\",\\\"layer-container\\\"],[8],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showBtnModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"grapesjs/btn-modal\\\",[],[[\\\"@editor\\\",\\\"@modalDialogIsVisible\\\",\\\"@model\\\"],[[22,\\\"editor\\\"],[23,0,[\\\"showBtnModal\\\"]],[22,\\\"website\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showSliderModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"grapesjs/slider-modal\\\",[],[[\\\"@allowMultipleItems\\\",\\\"@allowSrcSet\\\",\\\"@bigordrSlider\\\",\\\"@editor\\\",\\\"@modalDialogIsVisible\\\",\\\"@model\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showSearchImagesModal\\\",\\\"@sliderImages\\\",\\\"@tab\\\"],[false,true,[23,0,[\\\"bigordrSlider\\\"]],[23,0,[\\\"editor\\\"]],[28,\\\"mut\\\",[[23,0,[\\\"showSliderModal\\\"]]],null],[23,6,[]],[23,0,[\\\"resource\\\"]],[23,0,[\\\"resourceKey\\\"]],[23,0,[\\\"showSearchImagesModal\\\"]],[23,0,[\\\"sliderImages\\\"]],[23,15,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showScratchCardModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"grapesjs/scratch-card-modal\\\",[],[[\\\"@editor\\\",\\\"@modalDialogIsVisible\\\",\\\"@onShowSearchImagesModal\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@tab\\\",\\\"@website\\\"],[[23,0,[\\\"editor\\\"]],[28,\\\"mut\\\",[[23,0,[\\\"showScratchCardModal\\\"]]],null],[23,0,[\\\"showSearchImagesModal\\\"]],[23,0,[\\\"resource\\\"]],[23,0,[\\\"resourceKey\\\"]],[23,15,[]],[22,\\\"website\\\"]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showLinksModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"grapesjs/links-modal\\\",[],[[\\\"@editor\\\",\\\"@modalDialogIsVisible\\\",\\\"@onShowSearchImagesModal\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@linksModalData\\\"],[[23,0,[\\\"editor\\\"]],[28,\\\"mut\\\",[[23,0,[\\\"showLinksModal\\\"]]],null],[23,0,[\\\"showSearchImagesModal\\\"]],[23,0,[\\\"resource\\\"]],[23,0,[\\\"resourceKey\\\"]],[23,15,[]],[22,\\\"website\\\"],[23,0,[\\\"linksModalData\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showManyProductsModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"grapesjs/products-modal\\\",[],[[\\\"@editor\\\",\\\"@modalDialogIsVisible\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@shopKey\\\"],[[22,\\\"editor\\\"],[22,\\\"showManyProductsModal\\\"],[22,\\\"tab\\\"],[22,\\\"website\\\"],[23,0,[\\\"shopKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"showBlogsModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"grapesjs/blogs-modal\\\",[],[[\\\"@editor\\\",\\\"@modalDialogIsVisible\\\",\\\"@tab\\\",\\\"@master\\\"],[[22,\\\"editor\\\"],[22,\\\"showBlogsModal\\\"],[22,\\\"tab\\\"],[24,[\\\"website\\\",\\\"_data\\\",\\\"_key\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showFormModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"grapesjs/form-modal\\\",[],[[\\\"@editor\\\",\\\"@modalDialogIsVisible\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@websiteKey\\\",\\\"@shopKey\\\"],[[22,\\\"editor\\\"],[23,0,[\\\"showFormModal\\\"]],[22,\\\"model\\\"],[22,\\\"tab\\\"],[23,0,[\\\"website\\\",\\\"_data\\\",\\\"_key\\\"]],[23,0,[\\\"website\\\",\\\"_data\\\",\\\"shopKey\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showScheduleModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"grapesjs/schedules-modal\\\",[],[[\\\"@editor\\\",\\\"@modalDialogIsVisible\\\",\\\"@model\\\",\\\"@onToggle\\\",\\\"@schedulesTargetContainerClass\\\",\\\"@schedulesTatgetClass\\\",\\\"@schedulesTatgetIsArray\\\",\\\"@tab\\\"],[[23,0,[\\\"editor\\\"]],[28,\\\"mut\\\",[[23,0,[\\\"showScheduleModal\\\"]]],null],[23,6,[]],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"showScheduleModal\\\"]]],null]],null],[23,0,[\\\"schedulesTargetContainerClass\\\"]],[23,0,[\\\"schedulesTatgetClass\\\"]],[23,0,[\\\"schedulesTatgetIsArray\\\"]],[23,15,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showReIndexModal\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"grapesjs/re-index-modal\\\",[],[[\\\"@editor\\\",\\\"@modalDialogIsVisible\\\",\\\"@onToggle\\\"],[[23,0,[\\\"editor\\\"]],[28,\\\"mut\\\",[[23,0,[\\\"showReIndexModal\\\"]]],null],[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"showReIndexModal\\\"]]],null]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[\\\"search products\\\",[22,\\\"showProductsModal\\\"],true,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"showProductsModal\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"isLazyLoad\\\"],[false]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"channels/shop/items/search-bar\\\",null,[[\\\"tab\\\",\\\"shopKey\\\",\\\"onSelect\\\",\\\"tableViewOptions\\\"],[[24,[\\\"tab\\\"]],[23,0,[\\\"shopKey\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"addProduct\\\",[23,2,[]]],null],[28,\\\"hash\\\",null,[[\\\"onMainActionIcon\\\"],[\\\"fas fa-check-circle\\\"]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"                \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"onSubmit\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"files/files-browser-modal\\\",[],[[\\\"@allowSrcSet\\\",\\\"@allowMultipleItems\\\",\\\"@tab\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@modalDialogIsVisible\\\",\\\"@onSubmit\\\",\\\"@previousImage\\\"],[[23,0,[\\\"allowSrcSet\\\"]],false,[23,15,[]],[23,0,[\\\"resource\\\"]],[23,0,[\\\"resourceKey\\\"]],[23,0,[\\\"showImagesModal\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"addImage\\\"]]],null],[23,0,[\\\"previousImage\\\"]]]]],[0,\\\"\\\\n\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"websites/websites-editor/pages-editor/settings-modal\\\",[],[[\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@pagesCollection\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@onCancel\\\",\\\"@isRemovable\\\",\\\"@onRemove\\\"],[[23,11,[]],[23,16,[]],[23,13,[]],[23,0,[\\\"isReadonly\\\"]],[23,7,[]],[23,14,[]],[23,15,[]],[23,6,[]],[23,12,[]],[23,0,[\\\"isRemovable\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[23,7,[]],true,[23,10,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isNew\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@translate\\\",\\\"@label\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@initialModalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onClose\\\"],[\\\"fas fa-cog\\\",false,[24,[\\\"model\\\",\\\"pageName\\\"]],false,[23,11,[]],false,[23,12,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"websites/websites-editor/pages-editor/settings-modal\\\",[],[[\\\"@isNew\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@pagesCollection\\\",\\\"@tab\\\",\\\"@website\\\",\\\"@onCloseDialogAction\\\",\\\"@onCancel\\\",\\\"@onSubmitTask\\\",\\\"@isRemovable\\\",\\\"@onRemove\\\"],[[23,11,[]],[23,13,[]],[23,0,[\\\"isReadonly\\\"]],[22,\\\"model\\\"],[23,14,[]],[23,15,[]],[23,6,[]],[23,1,[]],[23,12,[]],[28,\\\"perform\\\",[[24,[\\\"submitTask\\\"]]],null],[23,0,[\\\"isRemovable\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[24,[\\\"model\\\"]],true,[23,10,[]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"_hasFooterBtns\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[24,[\\\"grapesJsFullscreen\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/panels/panel-footer\\\",null,[[\\\"classNames\\\"],[\\\"zIndex-1001\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"shouldHideFooterExtraOptions\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isRemovable\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[23,7,[\\\"_data\\\",\\\"isDynamicPage\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[24,[\\\"model\\\"]],true,[23,10,[]]]]]],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"isEditing\\\"]],[24,[\\\"isRemovable\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[22,\\\"disabled\\\"],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"websites/pages\\\",[24,[\\\"model\\\"]],true,[23,10,[]]]]]],null],true]]],[0,\\\"\\\\n            \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/btn-delete\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"clear page\\\",[28,\\\"action\\\",[[23,0,[]],\\\"clearTemplate\\\"],null]]]],false],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"websites/websites-editor/page-import-btn\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@onReplaceTemplate\\\",\\\"@onInsertTemplate\\\"],[\\\"choose template\\\",[22,\\\"isReadonly\\\"],[22,\\\"tab\\\"],[22,\\\"model\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"replaceTemplate\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"insertTemplate\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@hasToggleIconRight\\\",\\\"@toggleIsOn\\\",\\\"@label\\\",\\\"@translate\\\",\\\"@truncate\\\",\\\"@truncateChar\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,false,[23,8,[]],[23,7,[\\\"pageName\\\"]],false,true,15]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"applicationService\\\",\\\"isMobile\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"websites/websites-editor/pages-editor/add-page\\\",[],[[\\\"@onNew\\\",\\\"@disabled\\\",\\\"@website\\\",\\\"@model\\\"],[[23,4,[]],[23,5,[]],[23,6,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-edit\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,3,[]],[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[28,\\\"and\\\",[[23,7,[\\\"_data\\\",\\\"hasTemplate\\\"]],[23,0,[\\\"applicationService\\\",\\\"isMobile\\\"]]],null]],null],[28,\\\"action\\\",[[23,0,[]],\\\"edit\\\",[24,[\\\"model\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"or\\\",[[23,0,[\\\"shouldHideFooterExtraOptions\\\"]],[23,0,[\\\"hasChanged\\\"]]],null],[24,[\\\"allowCancel\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[24,[\\\"isCancellable\\\"]],[24,[\\\"allowCancel\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[23,3,[]],[28,\\\"action\\\",[[23,0,[]],\\\"cancel\\\"],null]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"isPage\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"shouldHideFooterExtraOptions\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[\\\"fas fa-compress\\\",\\\"enter fullscreen\\\",[28,\\\"action\\\",[[23,0,[]],\\\"toggleFullscreen\\\"],null]]]],false],[0,\\\"\\\\n\\\\n              \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[5,\\\"websites/websites-editor/pages-editor/preview-link\\\",[],[[\\\"@model\\\",\\\"@previewLink\\\",\\\"@previewLockedLink\\\",\\\"@onSubmitAfterPreview\\\",\\\"@onAfterShowSavedLabel\\\"],[[22,\\\"model\\\"],[23,0,[\\\"previewLink\\\"]],[23,0,[\\\"previewLockedLink\\\"]],[23,0,[\\\"onSubmitAfterPreview\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"onAfterShowSavedLabel\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[23,3,[]],[28,\\\"perform\\\",[[23,0,[\\\"submitTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"allowPublicTemplate\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,0,[\\\"shouldHideFooterExtraOptions\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"save as template\\\",[23,3,[]],[28,\\\"perform\\\",[[24,[\\\"submitTaskAsTemplate\\\"]],[28,\\\"hash\\\",null,[[\\\"isPublicTemplate\\\"],[true]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/pages-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/seo-editor/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-extension\", \"client/mixins/crud\", \"client/mixins/search-contacts\"], function (_exports, _emberConcurrency, R, R_, _crud, _searchContacts) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    users: Ember.inject.service(),\n    transporterAccounts: null,\n    showColorTemplates: false,\n    hasNextPanel: true,\n    currentPanelIndex: 0,\n    validateDomainLabel: 'validate now',\n    init() {\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/productsImagesRatio', 'contacts/lists/tags', 'swatches', 'websites/lists/logo-menu-position', 'websites/lists/logo-centered-scroll-method', 'websites/lists/logo-icon-position', 'websites/lists/layout/menu-logo-size', 'websites/lists/layout/menu-logo-height', 'websites/lists/layout/menu-logo-height-separate-line', 'websites/lists/layout/menu-font-size', 'websites/lists/layout/menu-position', 'websites/lists/layout/menu-style', 'websites/lists/layout/menu-spacing', 'websites/lists/new-website-wizard', 'websites/lists/shared-color-themes']);\n      this._super(...arguments);\n      if (this.get('model._data.transporterKey')) {\n        this.fetchTransporterTask.perform({\n          model: this.model\n        });\n      }\n    },\n    // afterLoadLists () {\n    //   this._super(...arguments)\n\n    //   if (!this.isNew) {\n    //     return\n    //   }\n\n    //   const initialPanel = this.tabsManager.getLoadInstructions(this.tab) || this.crud.lists['websites-lists-new-website-wizard'].get('firstObject')\n    //   this.tabsManager.displaySubPanel(this, initialPanel)\n    // },\n\n    // validatedDomainLabel: computed('model._data.domainVerified', function () {\n    //   const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this)\n    //   if (domainVerified) {\n    //     return 'valid'\n    //   }\n\n    //   return 'validate now'\n    // }),\n\n    isCurrentStepComplete: Ember.computed('crud.lists.websites-lists-new-website-wizard.@each.isAllStepsFinished', 'model._data.{hasCustomDomain,domainVerified}', function () {\n      // @TODO: this needs to change. using lists.websites to keep track of states is global. this will be shared accross all website instances\n      const hasCustomDomain = R.pathOr(false, ['model', '_data', 'hasCustomDomain'])(this);\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      if (hasCustomDomain && !domainVerified) {\n        return true;\n      }\n      if (this.crud.lists['websites-lists-new-website-wizard']) {\n        return !this.crud.lists['websites-lists-new-website-wizard'][this.currentPanelIndex].isAllStepsFinished;\n      }\n      return true;\n    }),\n    isWizardEnabled: Ember.computed('settings.settingsModel._data.{wizardEnable}', 'showWizard', function () {\n      const settingsModel = R.pathOr(null, ['settingsModel'])(this.settings);\n      if (settingsModel) {\n        const wizardEnable = settingsModel.getData('wizardEnable') || false;\n        return wizardEnable || this.showWizard;\n      }\n      return false;\n    }),\n    isConnectDomainDisabled: Ember.computed('model._data.domainVerified', function () {\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      const isReadonly = R.pathOr(true, ['isReadonly'])(this);\n      if (domainVerified) {\n        return isReadonly;\n      }\n      return false;\n    }),\n    isWizardIncomplete: Ember.computed('model.wizardRequirementsMet.[]', function () {\n      return R.includes(false)(this.model.wizardRequirementsMet);\n    }),\n    validDomainIconComputed: Ember.computed('model._data.{domainVerified,hasCustomDomain,domain}', function () {\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      if (domainVerified) {\n        return 'fas fa-check';\n      } else {\n        return 'fas fa-times';\n      }\n    }),\n    isSameDomain: Ember.computed('model._data.domain', 'previousDomain', function () {\n      const domain = R.pathOr('', ['model', '_data', 'domain'])(this);\n      const previousDomain = R.pathOr('', ['previousDomain'])(this);\n      return domain === previousDomain;\n    }),\n    headerTabs: Ember.computed('crud.lists.websites-lists-new-website-wizard.[]', 'model.wizardRequirementsMet.[]', function () {\n      const wizardHeaderWebsites = this.crud.lists['websites-lists-new-website-wizard'] || [];\n      const requirementsMet = this.model.wizardRequirementsMet || [];\n      const hasTabs = !R.isEmpty(wizardHeaderWebsites);\n      if (hasTabs) {\n        return R.pipe(R.mapObjIndexed((tab, index, tabs) => {\n          index = parseInt(index);\n          const isComplete = requirementsMet[index] || false;\n          if (tab.set) {\n            tab.set('isCompleted', isComplete);\n            const maxIndex = tabs.length - 1;\n            if (maxIndex !== index) {\n              tabs[++index].setData('enable', isComplete);\n            }\n            return tab;\n          }\n          return false;\n        }), R.reject(R.equals(false)), R.toPairs, R.flatten, R.reject(R.is(String)))(wizardHeaderWebsites);\n      }\n      return wizardHeaderWebsites;\n    }),\n    fetchTransporterTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      const transporterKey = model.getData('transporterKey');\n      const transporter = yield this.findTask.perform({\n        adapterName: 'contacts',\n        appendPath: transporterKey\n      });\n      this.loadTransporterAccounts(model, transporter);\n    }),\n    loadTransporterAccounts(model, transporter) {\n      const transporterAccounts = transporter.getData('transporterAccounts') || [];\n      this.set('transporterAccounts', transporterAccounts);\n      if (!model.getData('transporterAccountNumber')) {\n        const setDefaultTransporterAccount = R.pipe(R.filter(account => account.getData('isDefault') === true), R.map(defaultAccount => {\n          model.setData('transporterAccount', defaultAccount.getData('name'));\n          model.setData('transporterAccountNumber', defaultAccount.getData('account'));\n        }));\n        setDefaultTransporterAccount(transporterAccounts);\n      }\n    },\n    shopPaymentMethodsDefaultsList: Ember.computed('crud.lists.paymentMethods-shop.[]', 'model._data.paymentMethods.[]', function () {\n      const paymentMethods = R_.dotPath('crud.lists.paymentMethods-shop')(this) || [];\n      const allowedPaymentMethods = this.get('model._data.paymentMethods') || [];\n      return R.filter(method => R.includes(method.getData('value'), allowedPaymentMethods), paymentMethods);\n    }),\n    goToPanel(gotToHeaderPanel) {\n      const headerPanels = this.crud.lists['websites-lists-new-website-wizard'];\n      let nextIndex;\n      if (gotToHeaderPanel) {\n        nextIndex = headerPanels.indexOf(gotToHeaderPanel);\n      } else {\n        nextIndex = ++this.currentPanelIndex;\n        gotToHeaderPanel = headerPanels[this.currentPanelIndex];\n      }\n      this.set('currentPanelIndex', nextIndex);\n      const headerPanelsTotalIndex = headerPanels.length - 1;\n      if (this.currentPanelIndex < headerPanelsTotalIndex) {\n        this.set('hasNextPanel', true);\n      } else {\n        this.set('hasNextPanel', false);\n      }\n      return this.tabsManager.displaySubPanel(this, gotToHeaderPanel);\n    },\n    validateDomainTask: (0, _emberConcurrency.task)(function* () {\n      const dirty = R.pathOr({}, ['dirty'])(this);\n      const domain = R.pathOr('', ['_data', 'domain'])(dirty);\n      const result = yield this.server.call('POST', 'api/protected/websites/validate/domain', {\n        domain,\n        _key: dirty.getData('_key')\n      });\n      const domainVerified = R.pathOr(false, ['data', 'domainVerified'])(result);\n\n      // @TODO: remove\n      const model = this.model;\n      model.setData('domainVerified', domainVerified);\n    }).drop(),\n    editDomain() {\n      this.set('isEditDomain', true);\n      const dirty = this.crud.setupDirty({\n        adapterName: 'websites',\n        model: this.model\n      });\n      dirty.setData('hasCustomDomain', true);\n      this.set('dirty', dirty);\n    },\n    updateDomainTask: (0, _emberConcurrency.task)(function* () {\n      this.set('domainErrors', []);\n      const updated = yield this.crud.updateRecordTask.perform({\n        adapterName: 'websites',\n        model: this.dirty,\n        component: this,\n        errorsProp: 'domainErrors'\n      });\n      if (!updated) {\n        return false;\n      }\n      this.set('isEditDomain', false);\n      const model = this.model;\n      this.set('dirty', model);\n    }),\n    onSetAsDefaultImageTask: (0, _emberConcurrency.task)(function* () {\n      return this.saveTask.perform({\n        adapterName: 'websites',\n        model: this.model,\n        component: this\n      });\n    }),\n    onOpenGraphImageChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.openGraph.imageUuid', uuid);\n      onCloseDialogAction();\n    },\n    onFavIconChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.favicon', uuid);\n      onCloseDialogAction();\n    },\n    removeFavIcon(onCloseDialogAction, options, uploadsModel) {\n      this.model.set('_data.favicon', '');\n    },\n    onLogoMobileChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.logoMobile', uuid);\n      onCloseDialogAction();\n    },\n    removeLogoMobile(onCloseDialogAction, options, uploadsModel) {\n      this.model.set('_data.logoMobile', '');\n    },\n    removeOpenGraphImage() {\n      this.model.set('_data.openGraph.imageUuid', '');\n    },\n    toggleAllowSeo(hasCustomDomain) {\n      this.model.setData('allowSeo', hasCustomDomain);\n    },\n    actions: {\n      openConnectDomain() {\n        this.set('isEditDomain', false);\n        const model = this.model;\n        this.set('dirty', model);\n        if (!model.getData('domain')) {\n          this.editDomain();\n        }\n      },\n      editDomain() {\n        this.editDomain();\n      },\n      toggleColorTemplates() {\n        this.set('showColorTemplates', !this.showColorTemplates);\n      },\n      selectHeaderPanel(gotToHeaderPanel) {\n        this.goToPanel(gotToHeaderPanel);\n      },\n      selectNextPanel() {\n        this.goToPanel();\n      },\n      resetDomainVerification(onCloseDialogAction) {\n        onCloseDialogAction();\n        if (this.dirty) {\n          this.crud.cancelEditing({\n            adapterName: 'websites',\n            dirty: this.dirty\n          });\n          this.set('isEditDomain', false);\n          this.set('dirty', null);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onOpenGraphImageChange\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onOpenGraphImageChange\"), _obj), _applyDecoratedDescriptor(_obj, \"onFavIconChange\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"onFavIconChange\"), _obj), _applyDecoratedDescriptor(_obj, \"removeFavIcon\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"removeFavIcon\"), _obj), _applyDecoratedDescriptor(_obj, \"onLogoMobileChange\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"onLogoMobileChange\"), _obj), _applyDecoratedDescriptor(_obj, \"removeLogoMobile\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"removeLogoMobile\"), _obj), _applyDecoratedDescriptor(_obj, \"removeOpenGraphImage\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"removeOpenGraphImage\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleAllowSeo\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"toggleAllowSeo\"), _obj), _obj));\n});","define(\"client/pods/components/websites/websites-editor/seo-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"lpSBjnDF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@resourceList\\\",\\\"@wizardContainerComponent\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[1,[23,4,[]],false],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\"],[\\\"settings\\\",[23,2,[]],true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"websites\\\",[23,4,[]],[23,2,[]],[23,5,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[28,\\\"user/get\\\",[\\\"allowPublicTemplate\\\"],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"colorTemplate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@allowedForFeatures\\\"],[[23,1,[]],\\\"seo_group\\\",[23,2,[]],\\\"seo\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"          upgrade for seo\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"seo_group\\\",[23,2,[]],\\\"seo\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"website_seo_keywords\\\",[24,[\\\"errors\\\"]],\\\"keywords\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@value\\\"],[[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"keywords\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"website_seo_description\\\",[24,[\\\"errors\\\"]],\\\"description\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@maxlength\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"300\\\",[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"openGraph_group\\\",[23,2,[]],\\\"open graph\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"open-graph\\\",[],[[\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\"],[[23,1,[]],[23,3,[]],[22,\\\"isReadonly\\\"],[22,\\\"model\\\"],[23,2,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"urlRedirects_group\\\",[23,2,[]],\\\"website_seo_broken_links\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@formInitData\\\",\\\"@context\\\"],[\\\"website_seo_url_redirects\\\",[23,3,[]],[23,1,[]],\\\"seoUrlRedirectsRaw\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@maxlength\\\",\\\"@readonly\\\",\\\"@value\\\"],[\\\"50000\\\",[22,\\\"isReadonly\\\"],[24,[\\\"model\\\",\\\"_data\\\",\\\"seoUrlRedirectsRaw\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/seo-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/settings-editor/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-extension\", \"client/mixins/crud\", \"client/mixins/search-contacts\"], function (_exports, _emberConcurrency, R, R_, _crud, _searchContacts) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _obj = {\n    applicationService: Ember.inject.service('application'),\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    users: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    transporterAccounts: null,\n    showColorTemplates: false,\n    hasNextPanel: true,\n    currentPanelIndex: 0,\n    validateDomainLabel: 'validate now',\n    init() {\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/productsImagesRatio', 'contacts/lists/tags', 'swatches', 'websites/lists/logo-menu-position', 'websites/lists/logo-centered-scroll-method', 'websites/lists/logo-icon-position', 'websites/lists/layout/menu-expand-behavior', 'websites/lists/layout/menu-alignment', 'websites/lists/layout/menu-logo-size', 'websites/lists/layout/menu-logo-height', 'websites/lists/layout/menu-logo-height-separate-line', 'websites/lists/layout/menu-font-size', 'websites/lists/layout/menu-position', 'websites/lists/layout/menu-style', 'websites/lists/layout/menu-spacing', 'websites/lists/new-website-wizard', 'websites/lists/shared-color-themes', 'products/lists/bigordr-products-per-row', 'websites/lists/link-thumbnail-image-ratio']);\n      this._super(...arguments);\n      if (this.get('model._data.transporterKey')) {\n        this.fetchTransporterTask.perform({\n          model: this.model\n        });\n      }\n      const shopFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters'\n      });\n      this.set('shopFilters', shopFilters);\n    },\n    // fetchShopTask: task(function * (model) {\n    //   const shopKey = model.getData('shopKey')\n    //   if (shopKey) {\n    //     const shop = yield this.findTask.perform({\n    //       adapterName: 'channels/shop/campaigns',\n    //       appendPath: `/${shopKey}`\n    //     })\n\n    //     this.setShopModel(shop)\n    //   } else {\n    //     this.unloadShopModel()\n    //   }\n    // }),\n\n    // setShopModel (shop) {\n    //   const tab = this.tab\n    //   tab.set('model', shop)\n    //   this.set('shop', shop)\n    // },\n\n    // unloadShopModel () {\n    //   this.set('shop', '')\n    //   const tab = this.tab\n    //   tab.set('model', '')\n    // },\n\n    // afterLoadLists () {\n    //   this._super(...arguments)\n\n    //   if (!this.isNew) {\n    //     return\n    //   }\n\n    //   // const initialPanel = this.tabsManager.getLoadInstructions(this.tab) || this.crud.lists['websites-lists-new-website-wizard'].get('firstObject')\n    //   // this.tabsManager.displaySubPanel(this, initialPanel)\n    // },\n\n    // validatedDomainLabel: computed('model._data.domainVerified', function () {\n    //   const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this)\n    //   if (domainVerified) {\n    //     return 'valid'\n    //   }\n\n    //   return 'validate now'\n    // }),\n\n    isCurrentStepComplete: Ember.computed('crud.lists.websites-lists-new-website-wizard.@each.isAllStepsFinished', 'model._data.{hasCustomDomain,domainVerified}', function () {\n      // @TODO: this needs to change. using lists.websites to keep track of states is global. this will be shared accross all website instances\n      const hasCustomDomain = R.pathOr(false, ['model', '_data', 'hasCustomDomain'])(this);\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      if (hasCustomDomain && !domainVerified) {\n        return true;\n      }\n      if (this.crud.lists['websites-lists-new-website-wizard']) {\n        return !this.crud.lists['websites-lists-new-website-wizard'][this.currentPanelIndex].isAllStepsFinished;\n      }\n      return true;\n    }),\n    isWizardEnabled: Ember.computed('settings.settingsModel._data.{wizardEnable}', 'showWizard', function () {\n      const settingsModel = R.pathOr(null, ['settingsModel'])(this.settings);\n      if (settingsModel) {\n        const wizardEnable = settingsModel.getData('wizardEnable') || false;\n        return wizardEnable || this.showWizard;\n      }\n      return false;\n    }),\n    isConnectDomainDisabled: Ember.computed('model._data.domainVerified', function () {\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      const isReadonly = R.pathOr(true, ['isReadonly'])(this);\n      if (domainVerified) {\n        return isReadonly;\n      }\n      return false;\n    }),\n    isWizardIncomplete: Ember.computed('model.wizardRequirementsMet.[]', function () {\n      return R.includes(false)(this.model.wizardRequirementsMet);\n    }),\n    validDomainIconComputed: Ember.computed('model._data.{domainVerified,hasCustomDomain,domain}', function () {\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      if (domainVerified) {\n        return 'fas fa-check';\n      } else {\n        return 'fas fa-times';\n      }\n    }),\n    isSameDomain: Ember.computed('model._data.domain', 'previousDomain', function () {\n      const domain = R.pathOr('', ['model', '_data', 'domain'])(this);\n      const previousDomain = R.pathOr('', ['previousDomain'])(this);\n      return domain === previousDomain;\n    }),\n    headerTabs: Ember.computed('crud.lists.websites-lists-new-website-wizard.[]', 'model.wizardRequirementsMet.[]', function () {\n      const wizardHeaderWebsites = this.crud.lists['websites-lists-new-website-wizard'] || [];\n      const requirementsMet = this.model.wizardRequirementsMet || [];\n      const hasTabs = !R.isEmpty(wizardHeaderWebsites);\n      if (hasTabs) {\n        return R.pipe(R.mapObjIndexed((tab, index, tabs) => {\n          index = parseInt(index);\n          const isComplete = requirementsMet[index] || false;\n          if (tab.set) {\n            tab.set('isCompleted', isComplete);\n            const maxIndex = tabs.length - 1;\n            if (maxIndex !== index) {\n              tabs[++index].setData('enable', isComplete);\n            }\n            return tab;\n          }\n          return false;\n        }), R.reject(R.equals(false)), R.toPairs, R.flatten, R.reject(R.is(String)))(wizardHeaderWebsites);\n      }\n      return wizardHeaderWebsites;\n    }),\n    fetchTransporterTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      const transporterKey = model.getData('transporterKey');\n      const transporter = yield this.findTask.perform({\n        adapterName: 'contacts',\n        appendPath: transporterKey\n      });\n      this.loadTransporterAccounts(model, transporter);\n    }),\n    loadTransporterAccounts(model, transporter) {\n      const transporterAccounts = transporter.getData('transporterAccounts') || [];\n      this.set('transporterAccounts', transporterAccounts);\n      if (!model.getData('transporterAccountNumber')) {\n        const setDefaultTransporterAccount = R.pipe(R.filter(account => account.getData('isDefault') === true), R.map(defaultAccount => {\n          model.setData('transporterAccount', defaultAccount.getData('name'));\n          model.setData('transporterAccountNumber', defaultAccount.getData('account'));\n        }));\n        setDefaultTransporterAccount(transporterAccounts);\n      }\n    },\n    shopPaymentMethodsDefaultsList: Ember.computed('crud.lists.paymentMethods-shop.[]', 'model._data.paymentMethods.[]', function () {\n      const paymentMethods = R_.dotPath('crud.lists.paymentMethods-shop')(this) || [];\n      const allowedPaymentMethods = this.get('model._data.paymentMethods') || [];\n      return R.filter(method => R.includes(method.getData('value'), allowedPaymentMethods), paymentMethods);\n    }),\n    goToPanel(gotToHeaderPanel) {\n      const headerPanels = this.crud.lists['websites-lists-new-website-wizard'];\n      let nextIndex;\n      if (gotToHeaderPanel) {\n        nextIndex = headerPanels.indexOf(gotToHeaderPanel);\n      } else {\n        nextIndex = ++this.currentPanelIndex;\n        gotToHeaderPanel = headerPanels[this.currentPanelIndex];\n      }\n      this.set('currentPanelIndex', nextIndex);\n      const headerPanelsTotalIndex = headerPanels.length - 1;\n      if (this.currentPanelIndex < headerPanelsTotalIndex) {\n        this.set('hasNextPanel', true);\n      } else {\n        this.set('hasNextPanel', false);\n      }\n      return this.tabsManager.displaySubPanel(this, gotToHeaderPanel);\n    },\n    validateDomainTask: (0, _emberConcurrency.task)(function* () {\n      const dirty = R.pathOr({}, ['dirty'])(this);\n      const domain = R.pathOr('', ['_data', 'domain'])(dirty);\n      const result = yield this.server.call('POST', 'api/protected/websites/validate/domain', {\n        domain,\n        _key: dirty.getData('_key')\n      });\n      const domainVerified = R.pathOr(false, ['data', 'domainVerified'])(result);\n\n      // @TODO: remove\n      const model = this.model;\n      model.setData('domainVerified', domainVerified);\n    }).drop(),\n    editDomain() {\n      this.set('isEditDomain', true);\n      const dirty = this.crud.setupDirty({\n        adapterName: 'websites',\n        model: this.model\n      });\n      dirty.setData('hasCustomDomain', true);\n      this.set('dirty', dirty);\n    },\n    updateDomainTask: (0, _emberConcurrency.task)(function* () {\n      this.set('domainErrors', []);\n      const updated = yield this.crud.updateRecordTask.perform({\n        adapterName: 'websites',\n        model: this.dirty,\n        component: this,\n        errorsProp: 'domainErrors'\n      });\n      if (!updated) {\n        return false;\n      }\n      this.set('isEditDomain', false);\n      const model = this.model;\n      this.set('dirty', model);\n    }),\n    onSetAsDefaultImageTask: (0, _emberConcurrency.task)(function* () {\n      return this.saveTask.perform({\n        adapterName: 'websites',\n        model: this.model,\n        component: this\n      });\n    }),\n    onOpenGraphImageChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.openGraph.imageUuid', uuid);\n      onCloseDialogAction();\n    },\n    onFavIconChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.favicon', uuid);\n      onCloseDialogAction();\n    },\n    removeFavIcon(onCloseDialogAction, options, uploadsModel) {\n      this.model.set('_data.favicon', '');\n    },\n    onLogoMobileChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.logoMobile', uuid);\n      onCloseDialogAction();\n    },\n    removeLogoMobile(onCloseDialogAction, options, uploadsModel) {\n      this.model.set('_data.logoMobile', '');\n    },\n    removeOpenGraphImage() {\n      this.model.set('_data.openGraph.imageUuid', '');\n    },\n    toggleAllowSeo(hasCustomDomain) {\n      this.model.setData('allowSeo', hasCustomDomain);\n    },\n    resetWebsiteShopData(allowAllCampaigns) {\n      if (allowAllCampaigns === false) {\n        return;\n      }\n      this.model.setData('shop', '');\n      this.model.setData('shopKey', '');\n      this.model.setData('allowAllCampaignsCheckOrder', true);\n    },\n    actions: {\n      openConnectDomain() {\n        this.set('isEditDomain', false);\n        const model = this.model;\n        this.set('dirty', model);\n        if (!model.getData('domain')) {\n          this.editDomain();\n        }\n      },\n      editDomain() {\n        this.editDomain();\n      },\n      toggleColorTemplates() {\n        this.set('showColorTemplates', !this.showColorTemplates);\n      },\n      selectHeaderPanel(gotToHeaderPanel) {\n        this.goToPanel(gotToHeaderPanel);\n      },\n      selectNextPanel() {\n        this.goToPanel();\n      },\n      resetDomainVerification(onCloseDialogAction) {\n        onCloseDialogAction();\n        if (this.dirty) {\n          this.crud.cancelEditing({\n            adapterName: 'websites',\n            dirty: this.dirty\n          });\n          this.set('isEditDomain', false);\n          this.set('dirty', null);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onOpenGraphImageChange\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onOpenGraphImageChange\"), _obj), _applyDecoratedDescriptor(_obj, \"onFavIconChange\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"onFavIconChange\"), _obj), _applyDecoratedDescriptor(_obj, \"removeFavIcon\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"removeFavIcon\"), _obj), _applyDecoratedDescriptor(_obj, \"onLogoMobileChange\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"onLogoMobileChange\"), _obj), _applyDecoratedDescriptor(_obj, \"removeLogoMobile\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"removeLogoMobile\"), _obj), _applyDecoratedDescriptor(_obj, \"removeOpenGraphImage\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"removeOpenGraphImage\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleAllowSeo\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"toggleAllowSeo\"), _obj), _applyDecoratedDescriptor(_obj, \"resetWebsiteShopData\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"resetWebsiteShopData\"), _obj), _obj));\n});","define(\"client/pods/components/websites/websites-editor/settings-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Je57xJen\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\"],[\\\"settings-editor\\\",[23,6,[]],true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"websites\\\",[23,8,[]],[23,6,[]],[23,7,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"user/get\\\",[\\\"allowPublicTemplate\\\"],null]],null,{\\\"statements\\\":[[4,\\\"forms/form-section\\\",null,null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"context\\\",\\\"documentationResource\\\"],[[23,1,[]],\\\"save as color template\\\",\\\"colorTemplate\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"colorTemplate\\\"]],true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"status_group\\\",[23,6,[]],\\\"status\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"status\\\",[23,1,[]],\\\"status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@hasStatusBadge\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@statusBadgeClassNames\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,4,[]],true,true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"statuses\\\"]],true,[23,0,[\\\"model\\\",\\\"statusClass\\\"]],[23,0,[\\\"tab\\\"]],true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"status\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"basicInformation_group\\\",[23,6,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"isRequired\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"name\\\",true,[24,[\\\"errors\\\"]],\\\"name\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"autofocus\\\",\\\"readonly\\\",\\\"value\\\"],[true,[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"colorTemplate\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"context\\\"],[[23,1,[]],\\\"connect domain\\\",\\\"hasCustomDomain\\\"]],{\\\"statements\\\":[[0,\\\"            \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"onToggle\\\",\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[[24,[\\\"isReadonly\\\"]],[28,\\\"action\\\",[[23,0,[]],[23,0,[\\\"toggleAllowSeo\\\"]]],null],[24,[\\\"model\\\",\\\"_data\\\",\\\"hasCustomDomain\\\"]],true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"hasCustomDomain\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"formInitData\\\",\\\"label\\\",\\\"errors\\\",\\\"context\\\"],[[23,1,[]],\\\"domain\\\",[24,[\\\"errors\\\"]],\\\"domain\\\"]],{\\\"statements\\\":[[0,\\\"              \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"leftIcon\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[23,0,[\\\"validDomainIconComputed\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"domain\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isReadonly\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"fas fa-plug\\\",\\\"connect domain\\\",[28,\\\"action\\\",[[23,0,[]],\\\"openConnectDomain\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordion\\\"],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[true,\\\"domain_validation_step1_label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"domain_validation_step1\\\"],null],true],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[true,\\\"domain_validation_step2_label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                      \\\"],[1,[28,\\\"tt\\\",[\\\"domain_validation_step2\\\"],null],true],[0,\\\"\\\\n                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                    \\\"],[5,\\\"accordion\\\",[],[[\\\"@expanded\\\",\\\"@label\\\"],[true,\\\"domain_validation_step3_label\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"dns\\\",\\\"txt\\\"]]],null,{\\\"statements\\\":[[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"txt verification\\\",[24,[\\\"domainErrors\\\"]],\\\"dnsTxt\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"                          \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n                            \\\"],[1,[24,[\\\"model\\\",\\\"_data\\\",\\\"dns\\\",\\\"txt\\\"]],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"connect domain\\\",[24,[\\\"domainErrors\\\"]],\\\"hasCustomDomain\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"toggleValue\\\",\\\"toggleOnValue\\\",\\\"toggleOffValue\\\"],[[28,\\\"if\\\",[[24,[\\\"isEditDomain\\\"]],false,true],null],[24,[\\\"dirty\\\",\\\"_data\\\",\\\"hasCustomDomain\\\"]],true,false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"domain\\\",[24,[\\\"domainErrors\\\"]],\\\"domain\\\",\\\"websites\\\"]],{\\\"statements\\\":[[0,\\\"                        \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"leftIcon\\\",\\\"value\\\"],[[28,\\\"if\\\",[[24,[\\\"isEditDomain\\\"]],false,true],null],[23,0,[\\\"validDomainIconComputed\\\"]],[24,[\\\"dirty\\\",\\\"_data\\\",\\\"domain\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"isEditDomain\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"elements/btn-edit\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"\\\",[24,[\\\"validateDomainTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"editDomain\\\",[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"                      \\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"resetDomainVerification\\\",[23,2,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditDomain\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"updateDomainTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"updateDomainTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"domainVerified\\\"]]],null,{\\\"statements\\\":[[0,\\\"                          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n                            \\\"],[1,[28,\\\"tt\\\",[\\\"domain connected\\\"],null],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                          \\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"tooltipLabel\\\",\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"fas fa-plug\\\",\\\"validate domain\\\",\\\"\\\",[28,\\\"if\\\",[[28,\\\"and\\\",[[24,[\\\"model\\\",\\\"_data\\\",\\\"domain\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"domainVerified\\\"]]],null],true,false],null],[24,[\\\"validateDomainTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"validateDomainTask\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\n                          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-warning\\\"],[8],[0,\\\"\\\\n                            \\\"],[1,[28,\\\"tt\\\",[\\\"domain not connected\\\"],null],false],[0,\\\"\\\\n                          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@isRequired\\\",\\\"@context\\\"],[[23,1,[]],\\\"website url (at least 6 characters)\\\",true,\\\"subdomain\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"readonly\\\",\\\"value\\\"],[[24,[\\\"isReadonly\\\"]],[24,[\\\"model\\\",\\\"_data\\\",\\\"subdomain\\\"]]]]],false],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\",\\\"@disallowedForFeatures\\\"],[[23,1,[]],\\\"allowSeo\\\",true,\\\"allow seo\\\",[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"allowSeo\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[\\\"_data\\\",\\\"shopKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"allowAllCampaigns\\\",[23,1,[]],[23,3,[]],true,\\\"allow all campaigns\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@onToggle\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,4,[]],[23,5,[\\\"_data\\\",\\\"shopKey\\\"]]],null],[23,0,[\\\"resetWebsiteShopData\\\"]],[23,5,[\\\"_data\\\",\\\"allowAllCampaigns\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"allowAllCampaignsOrdersHistory\\\",[23,1,[]],[23,3,[]],true,\\\"allow cross store orders history\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[28,\\\"or\\\",[[23,4,[]],[23,5,[\\\"_data\\\",\\\"allowAllCampaigns\\\"]]],null],[23,5,[\\\"_data\\\",\\\"allowAllCampaignsOrdersHistory\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[\\\"_data\\\",\\\"allowAllCampaigns\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponent\\\",\\\"@disallowedForFeatures\\\"],[\\\"shopSettings_group\\\",[23,1,[]],[23,6,[]],\\\"connect shop\\\",[23,7,[]],[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[\\\"shopKey\\\",[23,1,[]],\\\"shop\\\",[23,5,[]],[23,6,[]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@hasSelected\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@isRunning\\\",\\\"@onDeselect\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\"],[false,[23,4,[]],[23,5,[\\\"_data\\\",\\\"shopKey\\\"]],[23,0,[\\\"shopFilters\\\",\\\"shopsList\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"crud\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPath\\\"]],[23,5,[]],\\\"_data.shopKey\\\",\\\"\\\"],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"resultsProperty\\\"],[\\\"channels/shop/campaigns\\\",[23,0,[\\\"shopFilters\\\"]],\\\"shopsList\\\"]]],[23,5,[\\\"_data\\\",\\\"shop\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"modelSetPathFromModelPath\\\"]],[23,5,[]],\\\"_data.shopKey\\\",\\\"_data._key\\\"],null],[23,4,[]],\\\"channels/shop/campaigns/search-results\\\",\\\"_data.name\\\",[23,5,[\\\"_data\\\",\\\"shop\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,5,[\\\"_data\\\",\\\"shopKey\\\"]],[23,4,[]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@formInitData\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[[23,1,[]],[23,5,[]],[23,6,[]],[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@tabLinkLabelClassNames\\\",\\\"@isHoverLink\\\",\\\"@hasLink\\\",\\\"@tabOptions\\\"],[\\\"button\\\",false,[23,5,[\\\"_data\\\",\\\"shopKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,5,[\\\"_data\\\",\\\"shopKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"tt\\\",[\\\"open shop settings\\\"],null],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[28,\\\"user/get\\\",[\\\"allowPublicTemplate\\\"],null],[23,5,[\\\"_data\\\",\\\"colorTemplate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"settings/defaults/company-editor\\\",[],[[\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@formInitData\\\",\\\"@disallowedForFeatures\\\"],[[23,3,[]],[23,4,[]],[23,5,[]],[23,1,[]],[28,\\\"array\\\",[\\\"features.isVirtualOnly\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@tab\\\",\\\"@title\\\",\\\"@wizardContainerComponent\\\"],[\\\"advancedSettings_group\\\",[23,1,[]],[23,6,[]],\\\"advanced\\\",[23,7,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@isRequired\\\",\\\"@label\\\"],[[23,1,[]],\\\"hideLanguagesSelector\\\",true,\\\"disable multiple languages\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,4,[]],[23,5,[\\\"_data\\\",\\\"disableMultipleLanguages\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/settings-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/style-editor/component\", [\"exports\", \"ember-concurrency\", \"ramda\", \"ramda-extension\", \"client/mixins/crud\", \"client/mixins/search-contacts\"], function (_exports, _emberConcurrency, R, R_, _crud, _searchContacts) {\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, _obj;\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  var _default = _exports.default = Ember.Component.extend(_crud.default, _searchContacts.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    users: Ember.inject.service(),\n    transporterAccounts: null,\n    showColorTemplates: false,\n    hasNextPanel: true,\n    currentPanelIndex: 0,\n    validateDomainLabel: 'validate now',\n    init() {\n      this.crud.addLists(this, ['channels/shop/campaigns/lists/productsImagesRatio', 'channels/shop/campaigns/lists/productsImagesFit', 'contacts/lists/tags', 'swatches', 'websites/lists/logo-menu-position', 'websites/lists/logo-centered-scroll-method', 'websites/lists/logo-icon-position', 'websites/lists/layout/menu-expand-behavior', 'websites/lists/layout/menu-alignment', 'websites/lists/layout/menu-logo-size', 'websites/lists/layout/menu-logo-height', 'websites/lists/layout/menu-logo-height-separate-line', 'websites/lists/layout/menu-font-size', 'websites/lists/layout/menu-position', 'websites/lists/layout/menu-style', 'websites/lists/layout/menu-spacing', 'websites/lists/content-width', 'websites/lists/new-website-wizard', 'websites/lists/shared-color-themes', 'products/lists/bigordr-products-per-row', 'blogs/lists/styles', 'blogs/lists/font-size', 'blogs/lists/font-weight', 'blogs/lists/font-family', 'blogs/lists/font-alignment', 'blogs/lists/line-count', 'simple-editor/lists/styling/font-family', 'simple-editor/lists/styling/border-radius']);\n      this._super(...arguments);\n      if (this.get('model._data.transporterKey')) {\n        this.fetchTransporterTask.perform({\n          model: this.model\n        });\n      }\n    },\n    // afterLoadLists () {\n    //   this._super(...arguments)\n\n    //   if (!this.isNew) {\n    //     return\n    //   }\n\n    //   const initialPanel = this.tabsManager.getLoadInstructions(this.tab) || this.crud.lists['websites-lists-new-website-wizard'].get('firstObject')\n    //   this.tabsManager.displaySubPanel(this, initialPanel)\n    // },\n\n    // validatedDomainLabel: computed('model._data.domainVerified', function () {\n    //   const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this)\n    //   if (domainVerified) {\n    //     return 'valid'\n    //   }\n\n    //   return 'validate now'\n    // }),\n\n    isThemeFontFamilyDisable: Ember.computed('isReadonly', 'model._data.themeFontFamilyEnable', function () {\n      if (this.isReadonly) {\n        return true;\n      }\n      if (this.model?._data?.themeFontFamilyEnable !== true) {\n        return true;\n      }\n      return false;\n    }),\n    isCurrentStepComplete: Ember.computed('crud.lists.websites-lists-new-website-wizard.@each.isAllStepsFinished', 'model._data.{hasCustomDomain,domainVerified}', function () {\n      // @TODO: this needs to change. using lists.websites to keep track of states is global. this will be shared accross all website instances\n      const hasCustomDomain = R.pathOr(false, ['model', '_data', 'hasCustomDomain'])(this);\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      if (hasCustomDomain && !domainVerified) {\n        return true;\n      }\n      if (this.crud.lists['websites-lists-new-website-wizard']) {\n        return !this.crud.lists['websites-lists-new-website-wizard'][this.currentPanelIndex].isAllStepsFinished;\n      }\n      return true;\n    }),\n    isWizardEnabled: Ember.computed('settings.settingsModel._data.{wizardEnable}', 'showWizard', function () {\n      const settingsModel = R.pathOr(null, ['settingsModel'])(this.settings);\n      if (settingsModel) {\n        const wizardEnable = settingsModel.getData('wizardEnable') || false;\n        return wizardEnable || this.showWizard;\n      }\n      return false;\n    }),\n    isConnectDomainDisabled: Ember.computed('model._data.domainVerified', function () {\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      const isReadonly = R.pathOr(true, ['isReadonly'])(this);\n      if (domainVerified) {\n        return isReadonly;\n      }\n      return false;\n    }),\n    isWizardIncomplete: Ember.computed('model.wizardRequirementsMet.[]', function () {\n      return R.includes(false)(this.model.wizardRequirementsMet);\n    }),\n    validDomainIconComputed: Ember.computed('model._data.{domainVerified,hasCustomDomain,domain}', function () {\n      const domainVerified = R.pathOr(false, ['model', '_data', 'domainVerified'])(this);\n      if (domainVerified) {\n        return 'fas fa-check';\n      } else {\n        return 'fas fa-times';\n      }\n    }),\n    isSameDomain: Ember.computed('model._data.domain', 'previousDomain', function () {\n      const domain = R.pathOr('', ['model', '_data', 'domain'])(this);\n      const previousDomain = R.pathOr('', ['previousDomain'])(this);\n      return domain === previousDomain;\n    }),\n    headerTabs: Ember.computed('crud.lists.websites-lists-new-website-wizard.[]', 'model.wizardRequirementsMet.[]', function () {\n      const wizardHeaderWebsites = this.crud.lists['websites-lists-new-website-wizard'] || [];\n      const requirementsMet = this.model.wizardRequirementsMet || [];\n      const hasTabs = !R.isEmpty(wizardHeaderWebsites);\n      if (hasTabs) {\n        return R.pipe(R.mapObjIndexed((tab, index, tabs) => {\n          index = parseInt(index);\n          const isComplete = requirementsMet[index] || false;\n          if (tab.set) {\n            tab.set('isCompleted', isComplete);\n            const maxIndex = tabs.length - 1;\n            if (maxIndex !== index) {\n              tabs[++index].setData('enable', isComplete);\n            }\n            return tab;\n          }\n          return false;\n        }), R.reject(R.equals(false)), R.toPairs, R.flatten, R.reject(R.is(String)))(wizardHeaderWebsites);\n      }\n      return wizardHeaderWebsites;\n    }),\n    blogsImagesRatioList: Ember.computed('crud.lists.channels-shop-campaigns-lists-productsImagesRatio', 'model._data.blogsStyle', function () {\n      const blogsStyle = this?.model?._data?.blogsStyle || 'style1';\n      const blogsImagesRatioList = this.crud.lists['channels-shop-campaigns-lists-productsImagesRatio'] || [];\n      return R.filter(ratio => {\n        const allowedForBlogsStyles = ratio?._data?.allowedForBlogsStyles || [];\n        return R.includes(blogsStyle, allowedForBlogsStyles);\n      })(blogsImagesRatioList);\n    }),\n    fetchTransporterTask: (0, _emberConcurrency.task)(function* ({\n      model\n    }) {\n      const transporterKey = model.getData('transporterKey');\n      const transporter = yield this.findTask.perform({\n        adapterName: 'contacts',\n        appendPath: transporterKey\n      });\n      this.loadTransporterAccounts(model, transporter);\n    }),\n    loadTransporterAccounts(model, transporter) {\n      const transporterAccounts = transporter.getData('transporterAccounts') || [];\n      this.set('transporterAccounts', transporterAccounts);\n      if (!model.getData('transporterAccountNumber')) {\n        const setDefaultTransporterAccount = R.pipe(R.filter(account => account.getData('isDefault') === true), R.map(defaultAccount => {\n          model.setData('transporterAccount', defaultAccount.getData('name'));\n          model.setData('transporterAccountNumber', defaultAccount.getData('account'));\n        }));\n        setDefaultTransporterAccount(transporterAccounts);\n      }\n    },\n    shopPaymentMethodsDefaultsList: Ember.computed('crud.lists.paymentMethods-shop.[]', 'model._data.paymentMethods.[]', function () {\n      const paymentMethods = R_.dotPath('crud.lists.paymentMethods-shop')(this) || [];\n      const allowedPaymentMethods = this.get('model._data.paymentMethods') || [];\n      return R.filter(method => R.includes(method.getData('value'), allowedPaymentMethods), paymentMethods);\n    }),\n    goToPanel(gotToHeaderPanel) {\n      const headerPanels = this.crud.lists['websites-lists-new-website-wizard'];\n      let nextIndex;\n      if (gotToHeaderPanel) {\n        nextIndex = headerPanels.indexOf(gotToHeaderPanel);\n      } else {\n        nextIndex = ++this.currentPanelIndex;\n        gotToHeaderPanel = headerPanels[this.currentPanelIndex];\n      }\n      this.set('currentPanelIndex', nextIndex);\n      const headerPanelsTotalIndex = headerPanels.length - 1;\n      if (this.currentPanelIndex < headerPanelsTotalIndex) {\n        this.set('hasNextPanel', true);\n      } else {\n        this.set('hasNextPanel', false);\n      }\n      return this.tabsManager.displaySubPanel(this, gotToHeaderPanel);\n    },\n    validateDomainTask: (0, _emberConcurrency.task)(function* () {\n      const dirty = R.pathOr({}, ['dirty'])(this);\n      const domain = R.pathOr('', ['_data', 'domain'])(dirty);\n      const result = yield this.server.call('POST', 'api/protected/websites/validate/domain', {\n        domain,\n        _key: dirty.getData('_key')\n      });\n      const domainVerified = R.pathOr(false, ['data', 'domainVerified'])(result);\n\n      // @TODO: remove\n      const model = this.model;\n      model.setData('domainVerified', domainVerified);\n    }).drop(),\n    editDomain() {\n      this.set('isEditDomain', true);\n      const dirty = this.crud.setupDirty({\n        adapterName: 'websites',\n        model: this.model\n      });\n      dirty.setData('hasCustomDomain', true);\n      this.set('dirty', dirty);\n    },\n    updateDomainTask: (0, _emberConcurrency.task)(function* () {\n      this.set('domainErrors', []);\n      const updated = yield this.crud.updateRecordTask.perform({\n        adapterName: 'websites',\n        model: this.dirty,\n        component: this,\n        errorsProp: 'domainErrors'\n      });\n      if (!updated) {\n        return false;\n      }\n      this.set('isEditDomain', false);\n      const model = this.model;\n      this.set('dirty', model);\n    }),\n    onSetAsDefaultImageTask: (0, _emberConcurrency.task)(function* () {\n      return this.saveTask.perform({\n        adapterName: 'websites',\n        model: this.model,\n        component: this\n      });\n    }),\n    onOpenGraphImageChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.openGraph.imageUuid', uuid);\n      onCloseDialogAction();\n    },\n    onFavIconChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.favicon', uuid);\n      onCloseDialogAction();\n    },\n    removeFavIcon(onCloseDialogAction, options, uploadsModel) {\n      this.model.set('_data.favicon', '');\n    },\n    onLogoMobileChange(onCloseDialogAction, options, uploadsModel) {\n      const uuid = R.pathOr('', [0, '_data', 'uuid'])(uploadsModel);\n      this.model.set('_data.logoMobile', uuid);\n      onCloseDialogAction();\n    },\n    removeLogoMobile(onCloseDialogAction, options, uploadsModel) {\n      this.model.set('_data.logoMobile', '');\n    },\n    removeOpenGraphImage() {\n      this.model.set('_data.openGraph.imageUuid', '');\n    },\n    toggleAllowSeo(hasCustomDomain) {\n      this.model.setData('allowSeo', hasCustomDomain);\n    },\n    actions: {\n      openConnectDomain() {\n        this.set('isEditDomain', false);\n        const model = this.model;\n        this.set('dirty', model);\n        if (!model.getData('domain')) {\n          this.editDomain();\n        }\n      },\n      editDomain() {\n        this.editDomain();\n      },\n      toggleColorTemplates() {\n        this.set('showColorTemplates', !this.showColorTemplates);\n      },\n      selectHeaderPanel(gotToHeaderPanel) {\n        this.goToPanel(gotToHeaderPanel);\n      },\n      selectNextPanel() {\n        this.goToPanel();\n      },\n      resetDomainVerification(onCloseDialogAction) {\n        onCloseDialogAction();\n        if (this.dirty) {\n          this.crud.cancelEditing({\n            adapterName: 'websites',\n            dirty: this.dirty\n          });\n          this.set('isEditDomain', false);\n          this.set('dirty', null);\n        }\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onOpenGraphImageChange\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onOpenGraphImageChange\"), _obj), _applyDecoratedDescriptor(_obj, \"onFavIconChange\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"onFavIconChange\"), _obj), _applyDecoratedDescriptor(_obj, \"removeFavIcon\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"removeFavIcon\"), _obj), _applyDecoratedDescriptor(_obj, \"onLogoMobileChange\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"onLogoMobileChange\"), _obj), _applyDecoratedDescriptor(_obj, \"removeLogoMobile\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"removeLogoMobile\"), _obj), _applyDecoratedDescriptor(_obj, \"removeOpenGraphImage\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"removeOpenGraphImage\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleAllowSeo\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"toggleAllowSeo\"), _obj), _obj));\n});","define(\"client/pods/components/websites/websites-editor/style-editor/filters-editor/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 WebsitesWebsitesEditorStyleEditorFiltersEditor = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class WebsitesWebsitesEditorStyleEditorFiltersEditor extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dragDropSort\", _descriptor3, this);\n      _initializerDefineProperty(this, \"allTags\", _descriptor4, this);\n    }\n    // all tags that exist in campaign\n\n    reorderTagsWithIndexes(tagsWithIndexes, tag, dragDetail) {\n      const onOverItemIndex = tag?._data?.index;\n      this.dragDropSort.reorderItemsByIndex(tagsWithIndexes, dragDetail, onOverItemIndex);\n    }\n    *getAllTagsForFilterTask() {\n      const model = this.args.model;\n      const adapterName = this.args?.adapterName ?? '';\n      if (!adapterName) {\n        return;\n      }\n      const websiteKey = model?._data?._key;\n      if (!websiteKey) {\n        return;\n      }\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName,\n        appendPath: websiteKey\n      });\n      this.allTags = results;\n      this.args?.setupTagsWithIndexes(this.allTags);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settings\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dragDropSort\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"allTags\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"reorderTagsWithIndexes\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderTagsWithIndexes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getAllTagsForFilterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getAllTagsForFilterTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/websites-editor/style-editor/filters-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"OnS/1gE8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"dragAndDropManager\\\",\\\"tag\\\",\\\"@tagsWithIndexesSorted\\\",\\\"@warningMsg\\\"],\\\"statements\\\":[[0,\\\"\\\\n\\\"],[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"getAllTagsForFilterTask\\\"]]],null]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"is-empty\\\",[[23,3,[]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"msgs/warning-msg\\\",[],[[\\\"@msg\\\"],[[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"helpers/drag-and-drop\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"label\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"helpers/drag-and-drop/drop-container\\\",[],[[\\\"@dropPosition\\\",\\\"@onDrop\\\",\\\"@onDragOver\\\"],[[23,1,[\\\"dropPosition\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"reorderTagsWithIndexes\\\"]],[23,3,[]],[23,2,[]],[23,1,[\\\"dragDetail\\\"]]],null],[28,\\\"fn\\\",[[23,1,[\\\"dragDropSort\\\",\\\"dragOverItem\\\"]],[23,1,[]],[23,2,[]],[23,1,[\\\"dragDetail\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"helpers/drag-and-drop/drag-container\\\",[],[[\\\"@draggable\\\",\\\"@classNames\\\",\\\"@onDragStart\\\",\\\"@onDragEnd\\\",\\\"@data\\\",\\\"@hasGrip\\\"],[true,\\\"has-grip\\\",[28,\\\"fn\\\",[[23,1,[\\\"dragDropSort\\\",\\\"dragStartItem\\\"]],[23,1,[]],[23,2,[]]],null],[28,\\\"fn\\\",[[23,1,[\\\"dragDropSort\\\",\\\"dragEndItem\\\"]],[23,1,[]]],null],[28,\\\"hash\\\",null,[[\\\"index\\\"],[[23,2,[\\\"_data\\\",\\\"index\\\"]]]]],true]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag product-tags-filters\\\"],[8],[1,[23,2,[\\\"_data\\\",\\\"label\\\"]],false],[9],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/style-editor/filters-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/style-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"BPaW/maF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@errors\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@isReadOnly\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"showColorTemplates\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[[22,\\\"showColorTemplates\\\"],false,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[24,[\\\"showColorTemplates\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-section\\\",null,[[\\\"title\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\",\\\"contentClassNames\\\"],[\\\"color theme settings\\\",[23,6,[]],\\\"colorTheme\\\",\\\"wizard\\\",\\\"flex-container-row\\\"]],{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"color-themes\\\",[],[[\\\"@model\\\",\\\"@onCloseDialogAction\\\"],[[22,\\\"model\\\"],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"msgs/footer-msgs\\\",[],[[\\\"@errors\\\",\\\"@hasErrors\\\",\\\"@model\\\"],[[22,\\\"errors\\\"],[22,\\\"hasErrors\\\"],[22,\\\"model\\\"]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"icon\\\",\\\"label\\\",\\\"onSubmit\\\"],[false,\\\"done\\\",[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@tab\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\"],[\\\"style\\\",[23,9,[]],true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"resourceList\\\",\\\"tab\\\",\\\"wizardContainerComponent\\\"],[\\\"websites\\\",[23,12,[]],[23,9,[]],[23,11,[]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"websitesLogo_group\\\",[23,9,[]],\\\"logo\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"logo\\\",[23,1,[]],\\\"logo\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"files-manager\\\",[],[[\\\"@isFilesManagerModalVisible\\\",\\\"@allowShowPreviewModal\\\",\\\"@allowMultipleItems\\\",\\\"@allowUploads\\\",\\\"@allowSetDefault\\\",\\\"@allowRemove\\\",\\\"@debug\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onlyDisplayDefault\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@setAsDefaultOnSelect\\\",\\\"@showDefaultImagePreview\\\",\\\"@tab\\\"],[false,true,false,[28,\\\"not\\\",[[23,10,[]]],null],true,true,true,[23,7,[]],[23,0,[\\\"model\\\"]],true,\\\"websites\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]],true,true,[23,9,[]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"logoMobile\\\",[23,1,[]],\\\"logo mobile\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"logoMobile\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-wrapper\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card slider__products-card\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-image\\\"],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@image\\\",\\\"@transform\\\",\\\"@width\\\"],[\\\"128\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"logoMobile\\\"]],\\\"/-/preview/200x200\\\",\\\"128\\\"]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-medium bigordr-slider-image-delete-btn\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeLogoMobile\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"files-manager\\\",[],[[\\\"@allowMultipleItems\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@hideFilesGallery\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onSubmit\\\",\\\"@resetSubTab\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@tab\\\"],[false,[28,\\\"and\\\",[[28,\\\"not\\\",[[23,10,[]]],null],[28,\\\"is-empty\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"logoMobile\\\"]]],null]],null],true,true,[23,7,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"onLogoMobileChange\\\"]],true,\\\"websites\\\",[28,\\\"concat\\\",[\\\"mobile-logo-\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null],true,[23,0,[\\\"tab\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\"],[\\\"openGraphImage\\\",[23,1,[]],\\\"favicon\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"favicon\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-wrapper\\\"],[8],[0,\\\"\\\\n                \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card slider__products-card\\\"],[8],[0,\\\"\\\\n                  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"slider__products-image\\\"],[8],[0,\\\"\\\\n                    \\\"],[5,\\\"files/image-item\\\",[],[[\\\"@height\\\",\\\"@image\\\",\\\"@transform\\\",\\\"@width\\\"],[\\\"128\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"favicon\\\"]],\\\"/-/preview/200x200\\\",\\\"128\\\"]]],[0,\\\"\\\\n                  \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"                    \\\"],[7,\\\"a\\\",false],[12,\\\"class\\\",\\\"delete is-medium bigordr-slider-image-delete-btn\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeFavIcon\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                \\\"],[9],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"files-manager\\\",[],[[\\\"@allowMultipleItems\\\",\\\"@allowUploads\\\",\\\"@allowRemove\\\",\\\"@hideFilesGallery\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@onSubmit\\\",\\\"@resetSubTab\\\",\\\"@resource\\\",\\\"@resourceKey\\\",\\\"@showDefaultImagePreview\\\",\\\"@tab\\\"],[false,[28,\\\"and\\\",[[28,\\\"not\\\",[[23,10,[]]],null],[28,\\\"is-empty\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"favicon\\\"]]],null]],null],true,true,[23,7,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"onFavIconChange\\\"]],true,\\\"websites\\\",[28,\\\"concat\\\",[\\\"favicon-\\\",[23,0,[\\\"model\\\",\\\"_data\\\",\\\"_key\\\"]]],null],true,[23,0,[\\\"tab\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@title\\\"],[[23,1,[]],\\\"basicSettings_group\\\",\\\"basic settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"website_content_width\\\",\\\"themeContentWidth\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@translate\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-content-width\\\"]],[23,8,[\\\"_data\\\",\\\"themeContentWidth\\\"]],[23,7,[]],\\\"_data.value\\\",\\\"_data.label\\\",false]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@title\\\"],[[23,1,[]],\\\"fontSettings_group\\\",\\\"font settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"themeFontFamilyEnable\\\",[23,1,[]],[23,6,[]],true,\\\"enable custom website fonts\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"themeFontFamilyEnable\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"custom website fonts\\\",\\\"themeFontFamily\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,0,[\\\"isThemeFontFamilyDisable\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-font-family\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,8,[\\\"_data\\\",\\\"themeFontFamily\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"colorTheme_group\\\",[23,9,[]],\\\"color theme settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\",\\\"@formInputClassNames\\\"],[\\\"\\\",[23,1,[]],[22,\\\"errors\\\"],\\\"color template\\\",\\\"flex-container-row\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"color-themes\\\",[],[[\\\"@component\\\",\\\"@displaySelected\\\",\\\"@disabled\\\",\\\"@isReadonly\\\",\\\"@model\\\",\\\"@toggleColorTemplates\\\"],[[23,0,[]],true,[23,7,[]],[23,7,[]],[22,\\\"model\\\"],[28,\\\"action\\\",[[23,0,[]],\\\"toggleColorTemplates\\\"],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"color-preview\\\",[],[[\\\"@disabled\\\",\\\"@model\\\",\\\"@saveTask\\\"],[[23,7,[]],[22,\\\"model\\\"],[22,\\\"saveTask\\\"]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[28,\\\"user/get\\\",[\\\"allowPublicTemplate\\\"],null],[23,8,[\\\"_data\\\",\\\"colorTemplate\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"websiteMenu_group\\\",[23,9,[]],\\\"website_section_nav\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuShowName\\\",[23,1,[]],[23,6,[]],true,\\\"show website name on menu\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"menuShowName\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuShowLogo\\\",[23,1,[]],[23,6,[]],true,\\\"show logo on menu\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"menuShowLogo\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@label\\\"],[true,[23,1,[]],[23,6,[]],\\\"showQuickNav\\\",\\\"show quick nav\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"showQuickNav\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,8,[\\\"_data\\\",\\\"menuShowLogo\\\"]],[23,8,[\\\"_data\\\",\\\"menuShowName\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"logoMenuPosition\\\",[23,1,[]],[23,6,[]],true,\\\"logo menu position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-logo-menu-position\\\"]],true,[23,8,[\\\"_data\\\",\\\"logoMenuPosition\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"logoMenuPosition\\\"]],\\\"separateLine\\\"],null]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"logoIconPosition\\\",[23,1,[]],[23,6,[]],true,\\\"logo position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-logo-icon-position\\\"]],true,[23,8,[\\\"_data\\\",\\\"logoPosition\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"logoIconPosition\\\",[23,1,[]],[23,6,[]],true,\\\"logo icon position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-logo-icon-position\\\"]],true,[23,8,[\\\"_data\\\",\\\"logoIconPosition\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuShowLogoDestopOnlySize\\\",[23,1,[]],[23,6,[]],true,\\\"logo size desktop only\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"dimensions_height\\\"],null],\\\": \\\"],null],false]]],[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-logo-height-separate-line\\\"]],false,[23,8,[\\\"_data\\\",\\\"menuShowLogoDesktopOnlySize\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"logoCenteredScrollMethod\\\",[23,1,[]],[23,6,[]],false,\\\"minimize logo on scroll\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-logo-centered-scroll-method\\\"]],true,[23,8,[\\\"_data\\\",\\\"logoCenteredScrollMethod\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n                \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuExpandBehavior\\\",[23,1,[]],[23,6,[]],true,\\\"menu expand behavior\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-expand-behavior\\\"]],true,[23,8,[\\\"_data\\\",\\\"menuExpandBehavior\\\"]]]]],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"menuExpandBehavior\\\"]],[23,0,[\\\"constants\\\",\\\"menuExpandBehavior\\\",\\\"autoExpand\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuExpandAlignment\\\",[23,1,[]],[23,6,[]],true,\\\"menu expand alignment\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n                    \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-alignment\\\"]],true,[23,8,[\\\"_data\\\",\\\"menuExpandAlignment\\\"]]]]],[0,\\\"\\\\n                  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuStyle\\\",[23,1,[]],[23,6,[]],true,\\\"menu style\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-style\\\"]],true,[23,8,[\\\"_data\\\",\\\"menuStyle\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"menuShowLogo\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuShowLogoSize\\\",[23,1,[]],[23,6,[]],true,\\\"logo size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"dimensions_height\\\"],null],\\\": \\\"],null],false]]],[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-logo-height\\\"]],false,[23,8,[\\\"_data\\\",\\\"menuShowLogoSize\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuShowLogoSize\\\",[23,1,[]],[23,6,[]],true,\\\"mobile logo size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-label\\\",[],[[\\\"@label\\\",\\\"@translate\\\"],[[28,\\\"concat\\\",[[28,\\\"tt\\\",[\\\"dimensions_height\\\"],null],\\\": \\\"],null],false]]],[0,\\\"\\\\n              \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-logo-height\\\"]],false,[23,8,[\\\"_data\\\",\\\"menuShowLogoMobileSize\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"menuStyle\\\"]],\\\"vertical\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuIsAlwaysHidden\\\",[23,1,[]],[23,6,[]],true,\\\"always hide menu\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"menuIsAlwaysHidden\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"menuStyle\\\"]],\\\"vertical\\\"],null]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuExpandSubMenus\\\",[23,1,[]],[23,6,[]],true,\\\"expand sub menus\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"menuExpandSubMenus\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuPosition\\\",[23,1,[]],[23,6,[]],true,\\\"menu position\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-position\\\"]],true,[23,8,[\\\"_data\\\",\\\"menuPosition\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"menuFontSize\\\",[23,1,[]],[23,6,[]],true,\\\"menu font size\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-font-size\\\"]],false,[23,8,[\\\"_data\\\",\\\"menuFontSize\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"blogsSettings_group\\\",[23,9,[]],\\\"blogs settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"isShowBlogsTags\\\",[23,1,[]],[23,6,[]],true,\\\"display blogs tags as filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"isShowBlogsTags\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"isShowBlogsTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"tags_filters_sort\\\",[23,6,[]],\\\"blogTagsWithIndexes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@hasSectionWrapper\\\",\\\"@label\\\",\\\"@modalSize\\\"],[[23,7,[]],true,\\\"tags_filters_sort\\\",\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"websites/websites-editor/style-editor/filters-editor\\\",[],[[\\\"@adapterName\\\",\\\"@warningMsg\\\",\\\"@model\\\",\\\"@setupTagsWithIndexes\\\",\\\"@tagsWithIndexesSorted\\\"],[\\\"websites/blog-tags-filters\\\",\\\"no tags detected. please add blog tags first\\\",[23,8,[]],[23,8,[\\\"setupBlogTagsWithIndexes\\\"]],[23,8,[\\\"blogTagsWithIndexesSorted\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"blogsPreviewSettings_group\\\",[23,9,[]],\\\"blogs preview settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"blogsStyle\\\",[23,1,[]],\\\"blogs style\\\",[23,8,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-styles\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],true,[23,8,[\\\"_data\\\",\\\"blogsStyle\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"blogsPerRow\\\",[23,1,[]],\\\"display blogs per row\\\",[23,8,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-bigordr-products-per-row\\\"]],false,[23,8,[\\\"_data\\\",\\\"blogsPerRow\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"blogsImagesRatio\\\",[23,1,[]],[22,\\\"errors\\\"],\\\"blogs images ratio\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"blogsImagesRatioList\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],true,[23,8,[\\\"_data\\\",\\\"blogsImagesRatio\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"blogsImagesFit\\\",[23,1,[]],[22,\\\"errors\\\"],\\\"blogs images fit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesFit\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],true,[23,8,[\\\"_data\\\",\\\"blogsImagesFit\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"newsSettings_group\\\",[23,9,[]],\\\"news settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"isShowNewsTags\\\",[23,1,[]],[23,6,[]],true,\\\"display news tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"isShowNewsTags\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,8,[\\\"_data\\\",\\\"isShowNewsTags\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"tags_filters_sort\\\",[23,6,[]],\\\"newsTagsWithIndexes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@hasSectionWrapper\\\",\\\"@label\\\",\\\"@modalSize\\\"],[[23,7,[]],true,\\\"tags_filters_sort\\\",\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"websites/websites-editor/style-editor/filters-editor\\\",[],[[\\\"@adapterName\\\",\\\"@warningMsg\\\",\\\"@model\\\",\\\"@setupTagsWithIndexes\\\",\\\"@tagsWithIndexesSorted\\\"],[\\\"websites/news-tags-filters\\\",\\\"no tags detected. please add news tags first\\\",[23,8,[]],[23,8,[\\\"setupNewsTagsWithIndexes\\\"]],[23,8,[\\\"newsTagsWithIndexesSorted\\\"]]]]],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"newsPreviewSettings_group\\\",[23,9,[]],\\\"news preview settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"newsPerRow\\\",[23,1,[]],\\\"display news per row\\\",[23,8,[]],[23,9,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"products-lists-bigordr-products-per-row\\\"]],false,[23,8,[\\\"_data\\\",\\\"newsPerRow\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"newsImagesRatio\\\",[23,1,[]],[22,\\\"errors\\\"],\\\"news images ratio\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"channels-shop-campaigns-lists-productsImagesRatio\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],true,[23,8,[\\\"_data\\\",\\\"newsImagesRatio\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"blogsAndNewsPreviewSettings_group\\\",[23,9,[]],\\\"blogs and news display settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"font alignment for blogs and news title\\\",\\\"blogsAndNewsTitleFontAlignment\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-font-alignment\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],true,[23,8,[\\\"_data\\\",\\\"blogsAndNewsTitleFontAlignment\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"blogsAndNewsPreviewSettings_group\\\",[23,9,[]],\\\"blogs and news preview settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@error\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"font size for blogs and news\\\",[22,\\\"errors\\\"],\\\"blogsAndNewsFontSize\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-font-size\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],true,[23,8,[\\\"_data\\\",\\\"blogsAndNewsFontSize\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@error\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"font weight for blogs and news title\\\",[22,\\\"errors\\\"],\\\"blogsAndNewsFontWeight\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-font-weight\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],true,[23,8,[\\\"_data\\\",\\\"blogsAndNewsFontWeight\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@error\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"font alignment for blogs and news\\\",[22,\\\"errors\\\"],\\\"blogsFontAlignment\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-font-alignment\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],true,[23,8,[\\\"_data\\\",\\\"blogsAndNewsFontAlignment\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@error\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"line count for blogs and news title\\\",[22,\\\"errors\\\"],\\\"blogsAndNewsLineCountForTitle\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-line-count\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],false,[23,8,[\\\"_data\\\",\\\"blogsAndNewsLineCountForTitle\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@error\\\",\\\"@context\\\",\\\"@formInitData\\\"],[\\\"line count for blogs and news description\\\",[22,\\\"errors\\\"],\\\"blogsAndNewsLineCountForDescription\\\",[23,1,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@list\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@readonly\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"blogs-lists-line-count\\\"]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,7,[]],false,[23,8,[\\\"_data\\\",\\\"blogsAndNewsLineCountForDescription\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"isDisplayBlogsAndNewsTitle\\\",[23,1,[]],[22,\\\"errors\\\"],\\\"blogs_and_news_preview_title\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"isDisplayBlogsAndNewsTitle\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"isDisplayBlogsAndNewsDescription\\\",[23,1,[]],[22,\\\"errors\\\"],\\\"blogs_and_news_preview_description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"isDisplayBlogsAndNewsDescription\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"isDisplayBlogsAndNewsAuthor\\\",[23,1,[]],[22,\\\"errors\\\"],\\\"blogs_and_news_preview_author\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"isDisplayBlogsAndNewsAuthor\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"isDisplayBlogsAndNewsDate\\\",[23,1,[]],[22,\\\"errors\\\"],\\\"blogs_and_news_preview_date\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"isDisplayBlogsAndNewsDate\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@label\\\"],[\\\"isDisplayBlogsAndNewsTags\\\",[23,1,[]],[22,\\\"errors\\\"],\\\"blogs_and_news_preview_tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@toggleValue\\\"],[[23,7,[]],[23,8,[\\\"_data\\\",\\\"isDisplayBlogsAndNewsTags\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"storeLocationSettings_group\\\",[23,9,[]],\\\"store location settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@formInitData\\\",\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[[23,1,[]],\\\"tags_filters_sort\\\",[23,6,[]],\\\"storeLocationTagsWithIndexes\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@hasSectionWrapper\\\",\\\"@label\\\",\\\"@modalSize\\\"],[[23,7,[]],true,\\\"tags_filters_sort\\\",\\\"small\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"websites/websites-editor/style-editor/filters-editor\\\",[],[[\\\"@adapterName\\\",\\\"@warningMsg\\\",\\\"@model\\\",\\\"@setupTagsWithIndexes\\\",\\\"@tagsWithIndexesSorted\\\"],[\\\"websites/store-location-tags-filters\\\",\\\"no tags detected. please add store location tags first\\\",[23,8,[]],[23,8,[\\\"setupStoreLocationTagsWithIndexes\\\"]],[23,8,[\\\"storeLocationTagsWithIndexesSorted\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@tab\\\",\\\"@title\\\"],[[23,1,[]],\\\"spacingTheme_group\\\",[23,9,[]],\\\"spacing settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"themeNavTreeItemPaddingX\\\",[23,1,[]],[23,6,[]],true,\\\"themeNavTreeItemPaddingX\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-spacing\\\"]],false,[23,8,[\\\"_data\\\",\\\"themeNavTreeItemPaddingX\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"themeNavTreeItemMarginX\\\",[23,1,[]],[23,6,[]],true,\\\"themeNavTreeItemMarginX\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-spacing\\\"]],false,[23,8,[\\\"_data\\\",\\\"themeNavTreeItemMarginX\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"themeGeneralLetterSpacing\\\",[23,1,[]],[23,6,[]],true,\\\"themeGeneralLetterSpacing\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-spacing\\\"]],false,[23,8,[\\\"_data\\\",\\\"themeGeneralLetterSpacing\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"themeHeaderH1LetterSpacing\\\",[23,1,[]],[23,6,[]],true,\\\"themeHeaderH1LetterSpacing\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-spacing\\\"]],false,[23,8,[\\\"_data\\\",\\\"themeHeaderH1LetterSpacing\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"themeHeaderH2LetterSpacing\\\",[23,1,[]],[23,6,[]],true,\\\"themeHeaderH2LetterSpacing\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-spacing\\\"]],false,[23,8,[\\\"_data\\\",\\\"themeHeaderH2LetterSpacing\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"themeHeaderH3LetterSpacing\\\",[23,1,[]],[23,6,[]],true,\\\"themeHeaderH3LetterSpacing\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-spacing\\\"]],false,[23,8,[\\\"_data\\\",\\\"themeHeaderH3LetterSpacing\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"themeHeaderH4LetterSpacing\\\",[23,1,[]],[23,6,[]],true,\\\"themeHeaderH4LetterSpacing\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-spacing\\\"]],false,[23,8,[\\\"_data\\\",\\\"themeHeaderH4LetterSpacing\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@label\\\"],[true,[23,1,[]],[23,6,[]],\\\"themeHeaderH5LetterSpacing\\\",\\\"themeHeaderH5LetterSpacing\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-spacing\\\"]],false,[23,8,[\\\"_data\\\",\\\"themeHeaderH5LetterSpacing\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@isRequired\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@label\\\"],[true,[23,1,[]],[23,6,[]],\\\"themeHeaderH6LetterSpacing\\\",\\\"themeHeaderH6LetterSpacing\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@disabled\\\",\\\"@isBtn\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\"],[[23,7,[]],true,\\\"_data.label\\\",\\\"_data.value\\\",[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-layout-menu-spacing\\\"]],false,[23,8,[\\\"_data\\\",\\\"themeHeaderH6LetterSpacing\\\"]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@formInitData\\\",\\\"@context\\\",\\\"@title\\\"],[[23,1,[]],\\\"productsDisplaySettings_group\\\",\\\"products display settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@errors\\\",\\\"@isRequired\\\",\\\"@label\\\"],[\\\"productsImagesBorderRadius\\\",[23,1,[]],[23,6,[]],true,\\\"products images radius\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@list\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@translate\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"simple-editor-lists-styling-border-radius\\\"]],[23,8,[\\\"_data\\\",\\\"productsImagesBorderRadius\\\"]],[23,7,[]],\\\"_data.value\\\",\\\"_data.label\\\",true]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/style-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"9nxjFpvR\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@model\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@currentScrollPosition\\\",\\\"@hasErrors\\\",\\\"@saveTask\\\",\\\"@onCancel\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,2,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@menu\\\",\\\"@errors\\\",\\\"@onSelect\\\",\\\"@wizardContainerComponent\\\"],[[23,3,[]],[23,3,[\\\"subTabs\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"websites-lists-editorSubPanels\\\"]],[23,4,[]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,3,[]]],null],[22,\\\"wizardContainerComponent\\\"]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[\\\"_data\\\",\\\"_key\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n            \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"_key\\\"]],\\\"edit\\\",\\\"new\\\"],null]],null],false],[0,\\\":\\\\n              \\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"hasCustomDomain\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-display-flex u-min-width__fit-content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"domainVerified\\\"]]],null,{\\\"statements\\\":[[0,\\\"                  \\\"],[5,\\\"helpers/new-browser-tab-link\\\",[],[[\\\"@link\\\"],[[28,\\\"concat\\\",[\\\"https://\\\",[23,2,[\\\"_data\\\",\\\"domain\\\"]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"                  \\\"],[1,[23,2,[\\\"_data\\\",\\\"domain\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[28,\\\"and\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"domain\\\"]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"domainVerified\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"_data\\\",\\\"subdomain\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-display-flex u-min-width__fit-content\\\"],[8],[0,\\\"\\\\n                  \\\"],[1,[28,\\\"concat\\\",[\\\"https://\\\",[23,2,[\\\"_data\\\",\\\"subdomain\\\"]],\\\".\\\",[23,0,[\\\"config\\\",\\\"APP\\\",\\\"websiteHost\\\"]]],null],false],[0,\\\"\\\\n              \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n            \\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"searchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,3,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"errors\\\",\\\"isEditing\\\",\\\"isNew\\\",\\\"isReadonly\\\",\\\"model\\\",\\\"onAddDetail\\\",\\\"onAfter\\\",\\\"onAssignSalesPerson\\\",\\\"onLoadTransporter\\\",\\\"onSetAsDefaultImageTask\\\",\\\"onToggleCommissionMethod\\\",\\\"onUnassignSalesPerson\\\",\\\"onUnloadTransporter\\\",\\\"parentTab\\\",\\\"saveTask\\\",\\\"showWizard\\\",\\\"tab\\\",\\\"transportersList\\\",\\\"wizardContainerComponent\\\",\\\"currentScrollPosition\\\"],[[24,[\\\"errors\\\"]],[24,[\\\"isEditing\\\"]],[24,[\\\"isNew\\\"]],[23,0,[\\\"isReadonly\\\"]],[23,2,[]],[24,[\\\"onAddDetail\\\"]],[24,[\\\"onAfter\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"assignSalesPerson\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"loadTransporter\\\",[24,[\\\"model\\\"]]],null],[24,[\\\"onSetAsDefaultImageTask\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"toggleCommissionMethod\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unassignSalesPerson\\\"],null],[28,\\\"action\\\",[[23,0,[]],\\\"unloadTransporter\\\",[24,[\\\"model\\\"]]],null],[23,3,[]],[24,[\\\"saveTask\\\"]],[24,[\\\"showWizard\\\"]],[23,1,[]],[24,[\\\"transportersList\\\"]],[24,[\\\"wizardContainerComponent\\\"]],[23,5,[]]]]],false],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\" \\\"],[2,\\\" end panel-grid__content  \\\"],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,2,[]],[23,6,[]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n    \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],[23,7,[\\\"isRunning\\\"]],[23,8,[]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[22,\\\"disabled\\\"],[23,7,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,7,[]]],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\" \\\"],[2,\\\" end grid container \\\"],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/templates/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R, RA, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _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 WebsitesWebsitesEditorTemplatesComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember.computed('publicFilters.results.[]', 'privateFilters.results.[]', 'privateShopFilters.results.[]'), _dec1 = Ember.computed('publicFilters.fullCount', 'privateFilters.fullCount', 'privateShopFilters.fullCount'), _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _class = class WebsitesWebsitesEditorTemplatesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"publicResults\", _descriptor5, this);\n      _initializerDefineProperty(this, \"privateResults\", _descriptor6, this);\n      _initializerDefineProperty(this, \"privateShopResults\", _descriptor7, this);\n      _initializerDefineProperty(this, \"templates\", _descriptor8, this);\n      _initializerDefineProperty(this, \"query\", _descriptor9, this);\n      this.crud.addLists(this, ['websites/lists/templates']);\n      this.publicFilters = this.search.setupFilters({\n        adapterName: 'websites/filters',\n        defaultFiltersData: {\n          componentResultsProperty: 'publicResults',\n          match: ['name'],\n          hasTemplate: true,\n          scope: 'public'\n        }\n      });\n      this.privateFilters = this.search.setupFilters({\n        adapterName: 'websites/filters',\n        defaultFiltersData: {\n          componentResultsProperty: 'privateResults',\n          hasTemplate: true,\n          match: ['name'],\n          scope: 'private'\n        }\n      });\n      this.privateShopFilters = this.search.setupFilters({\n        adapterName: 'websites/filters',\n        defaultFiltersData: {\n          componentResultsProperty: 'privateShopResults',\n          hasTemplate: true,\n          match: ['name'],\n          scope: 'privateShop'\n        }\n      });\n    }\n\n    // get publicTemplates () {\n    //   return R.filter(\n    //     R.pathEq(['_data', 'isPublicTemplate'], true)\n    //   )(this.publicResults)\n    // }\n\n    // get privateTemplates () {\n    //   return R.reject(\n    //     R.anyPass(\n    //       [\n    //         R.pathEq(['_data', 'isPublicTemplate'], true),\n    //         R.pathEq(['_data', 'isPrivateShopTemplate'], true)\n    //       ]\n    //     )\n    //   )(this.privateResults)\n    // }\n\n    // get privateShopTemplate () {\n    //   return R.filter(\n    //     R.pathEq(['_data', 'isPrivateShopTemplate'], true)\n    //   )(this.privateResults)\n    // }\n\n    get hasResults() {\n      const all = R.pipe(R.pathOr([], ['publicFilters', 'results']), R.concat(this.privateFilters?.results || []), R.concat(this.privateShopFilters?.results || []))(this);\n      if (RA.isNotNilOrEmpty(all)) {\n        return true;\n      }\n      return false;\n    }\n    get subPanels() {\n      const subPanels = this.crud.lists['websites-lists-templates'] || [];\n      const publicFullCount = this.publicFilters?.fullCount || 0;\n      const privateFullCount = this.privateFilters?.fullCount || 0;\n      const privateShopFullCount = this.privateShopFilters?.fullCount || 0;\n      if (!R.isEmpty(subPanels)) {\n        return R.map(panel => {\n          if (panel._data.value === 'publicTemplates') {\n            panel.setData('badge', publicFullCount);\n          }\n          if (panel._data.value === 'privateTemplates') {\n            panel.setData('badge', privateFullCount);\n          }\n          if (panel._data.value === 'privateShopTemplate') {\n            panel.setData('badge', privateShopFullCount);\n          }\n          return panel;\n        }, subPanels);\n      }\n      return subPanels;\n    }\n    *searchTask(query) {\n      const q = [];\n      q.push(this.searchWebsiteTemplatesTask.perform({\n        query,\n        filters: this.publicFilters\n      }));\n      q.push(this.searchWebsiteTemplatesTask.perform({\n        query,\n        filters: this.privateFilters\n      }));\n      q.push(this.searchWebsiteTemplatesTask.perform({\n        query,\n        filters: this.privateShopFilters\n      }));\n      yield (0, _emberConcurrency.all)(q);\n    }\n    *searchWebsiteTemplatesTask({\n      adapterName = 'websites/pages',\n      query,\n      filters\n    }) {\n      const componentResultsProperty = R.pathOr('', ['_data', 'componentResultsProperty'])(filters);\n      filters.setData('query', query);\n      this[componentResultsProperty] = yield this.crud.searchRecordsConcurrentlyTask.perform({\n        adapterName,\n        filters,\n        query\n      });\n      return this[componentResultsProperty];\n    }\n    afterLoadLists() {\n      this.searchTask.perform();\n    }\n    insertTemplate(onCloseDialogAction, pageData, templateImages = []) {\n      const onInsertTemplate = R.pathOr(null, ['onInsertTemplate'])(this.args);\n      if (onInsertTemplate) {\n        onInsertTemplate(pageData, templateImages);\n      }\n      onCloseDialogAction();\n    }\n    replaceTemplate(onCloseDialogAction, pageData, templateImages = []) {\n      const onReplaceTemplate = R.pathOr(null, ['onReplaceTemplate'])(this.args);\n      if (onReplaceTemplate) {\n        onReplaceTemplate(pageData, templateImages);\n      }\n      onCloseDialogAction();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"publicResults\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"privateResults\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"privateShopResults\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"templates\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"query\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.args.query || '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"hasResults\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"hasResults\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"subPanels\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"subPanels\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchWebsiteTemplatesTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchWebsiteTemplatesTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterLoadLists\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"afterLoadLists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"insertTemplate\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"insertTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"replaceTemplate\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"replaceTemplate\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/websites-editor/templates/private-shop-template/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 WebsitesWebsitesEditorTemplatesPrivateTemplateComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class WebsitesWebsitesEditorTemplatesPrivateTemplateComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showPreview\", _descriptor, this);\n      _initializerDefineProperty(this, \"page\", _descriptor2, this);\n    }\n    onClick() {\n      const onClick = R.pathOr(null, ['templateOptions', 'onClick'])(this.args);\n      if (onClick) {\n        onClick(...arguments);\n      }\n    }\n    togglePreview(page) {\n      this.page = page;\n      this.showPreview = !!!this.showPreview;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"page\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"togglePreview\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePreview\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/websites-editor/templates/private-shop-template/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"MA0zWDC4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"page\\\",\\\"onCloseDialogAction\\\",\\\"@onReplaceTemplate\\\",\\\"@onInsertTemplate\\\",\\\"@privateShopTemplates\\\",\\\"@templateOptions\\\",\\\"@onPaginationTask\\\",\\\"@privateShopFilters\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[[23,0,[\\\"showPreview\\\"]],true,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"showPreview\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"grapesjs/preview-container\\\",[],[[\\\"@page\\\"],[[23,0,[\\\"page\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close preview\\\",[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"page-import-btn__item-container \\\",[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"selected\\\"]],\\\"quick-template-is-selected\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClick\\\"]],[23,8,[]],[23,4,[]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,4,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-import-btn__template-preview\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"helpers/content-display\\\",null,[[\\\"content\\\"],[[23,4,[\\\"templateFromPageDataString\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,9,[\\\"hideButtonsTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"replace\\\",[28,\\\"action\\\",[[23,0,[]],[23,6,[]],[23,4,[\\\"pageDataJson\\\"]],[23,4,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"insert\\\",[28,\\\"action\\\",[[23,0,[]],[23,7,[]],[23,4,[\\\"pageDataJson\\\"]],[23,4,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"preview\\\",[28,\\\"fn\\\",[[23,0,[\\\"togglePreview\\\"]],[23,4,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"onPaginationTask\\\"],[true,[23,11,[]],[23,10,[]]]]],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/templates/private-shop-template/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/templates/private-template/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 WebsitesWebsitesEditorTemplatesPrivateTemplateComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class WebsitesWebsitesEditorTemplatesPrivateTemplateComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showPreview\", _descriptor, this);\n      _initializerDefineProperty(this, \"page\", _descriptor2, this);\n    }\n    onClick() {\n      const onClick = R.pathOr(null, ['templateOptions', 'onClick'])(this.args);\n      if (onClick) {\n        onClick(...arguments);\n      }\n    }\n    togglePreview(page) {\n      this.page = page;\n      this.showPreview = !!!this.showPreview;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"page\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"togglePreview\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePreview\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/websites-editor/templates/private-template/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PH4acKoK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"page\\\",\\\"onCloseDialogAction\\\",\\\"@onReplaceTemplate\\\",\\\"@onInsertTemplate\\\",\\\"@privateTemplates\\\",\\\"@templateOptions\\\",\\\"@onPaginationTask\\\",\\\"@privateFilters\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[[23,0,[\\\"showPreview\\\"]],true,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"showPreview\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"grapesjs/preview-container\\\",[],[[\\\"@page\\\"],[[23,0,[\\\"page\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[24,[\\\"model\\\"]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close preview\\\",[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"page-import-btn__item-container \\\",[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"selected\\\"]],\\\"quick-template-is-selected\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClick\\\"]],[23,8,[]],[23,4,[]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,4,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-import-btn__template-preview\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"helpers/content-display\\\",null,[[\\\"content\\\"],[[23,4,[\\\"templateFromPageDataString\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,9,[\\\"hideButtonsTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"replace\\\",[28,\\\"action\\\",[[23,0,[]],[23,6,[]],[23,4,[\\\"pageDataJson\\\"]],[23,4,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"insert\\\",[28,\\\"action\\\",[[23,0,[]],[23,7,[]],[23,4,[\\\"pageDataJson\\\"]],[23,4,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"preview\\\",[28,\\\"fn\\\",[[23,0,[\\\"togglePreview\\\"]],[23,4,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"list\\\",\\\"onPaginationTask\\\"],[true,[23,11,[]],[23,11,[]],[23,10,[]]]]],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/templates/private-template/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/templates/public-template/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 WebsitesWebsitesEditorTemplatesPublicTemplateComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class WebsitesWebsitesEditorTemplatesPublicTemplateComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      // Auto select the first element of the templates array\n      _initializerDefineProperty(this, \"showPreview\", _descriptor, this);\n      _initializerDefineProperty(this, \"page\", _descriptor2, this);\n      const onClick = R.path(['onClick'])(this.args.templateOptions);\n      if (onClick) {\n        onClick(this.args.publicTemplates, this.args.publicTemplates[0]);\n      }\n    }\n    onClick() {\n      const onClick = R.path(['templateOptions', 'onClick'])(this.args);\n      if (onClick) {\n        onClick(...arguments);\n      }\n    }\n    togglePreview(page) {\n      this.page = page;\n      this.showPreview = !this.showPreview;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"page\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"togglePreview\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePreview\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/websites-editor/templates/public-template/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hKUd6alK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"page\\\",\\\"onCloseDialogAction\\\",\\\"customActions\\\",\\\"@onReplaceTemplate\\\",\\\"@onInsertTemplate\\\",\\\"@publicTemplates\\\",\\\"@templateOptions\\\",\\\"@model\\\",\\\"@onPaginationTask\\\",\\\"@publicFilters\\\"],\\\"statements\\\":[[5,\\\"modals/modal-dialog\\\",[],[[\\\"@modalDialogIsVisible\\\",\\\"@closeOnOverlayClick\\\",\\\"@onToggle\\\"],[[23,0,[\\\"showPreview\\\"]],true,[28,\\\"fn\\\",[[28,\\\"mut\\\",[[23,0,[\\\"showPreview\\\"]]],null]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"grapesjs/preview-container\\\",[],[[\\\"@model\\\",\\\"@page\\\"],[[23,11,[]],[23,0,[\\\"page\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"color-themes\\\",[],[[\\\"@model\\\",\\\"@onSelect\\\"],[[23,11,[]],[23,6,[\\\"updateStyle\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"msgs/footer-msgs\\\",null,[[\\\"model\\\",\\\"hasErrors\\\",\\\"errors\\\"],[[23,11,[]],[24,[\\\"hasErrors\\\"]],[24,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"close preview\\\",[23,5,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"page-import-btn__item-container \\\",[28,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"selected\\\"]],\\\"quick-template-is-selected\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"onClick\\\"]],[23,9,[]],[23,4,[]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[23,4,[\\\"_data\\\",\\\"name\\\"]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"page-import-btn__template-preview\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"helpers/content-display\\\",null,[[\\\"content\\\"],[[23,4,[\\\"templateFromPageDataString\\\"]]]]],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,10,[\\\"hideButtonsTemplate\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"replace\\\",[28,\\\"action\\\",[[23,0,[]],[23,7,[]],[23,4,[\\\"pageDataJson\\\"]],[23,4,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"insert\\\",[28,\\\"action\\\",[[23,0,[]],[23,8,[]],[23,4,[\\\"pageDataJson\\\"]],[23,4,[\\\"_data\\\",\\\"templateImages\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"onSubmit\\\"],[\\\"preview\\\",[28,\\\"fn\\\",[[23,0,[\\\"togglePreview\\\"]],[23,4,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[1,[28,\\\"helpers/pagination-controls\\\",null,[[\\\"showPageNumbers\\\",\\\"filters\\\",\\\"onPaginationTask\\\"],[true,[23,13,[]],[23,12,[]]]]],false],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2,3]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/templates/public-template/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/templates/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Sokq8sqU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"@tab\\\",\\\"@templateOptions\\\",\\\"@onCloseDialogAction\\\",\\\"@model\\\",\\\"@errors\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[11,\\\"data-form-id\\\",[23,5,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"panel-grid__header is-sticky-row-auto\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"applicationService\\\",\\\"setStickyTop\\\"]]]],[8],[0,\\\"\\\\n    \\\"],[5,\\\"menus/tab-menu-new\\\",[],[[\\\"@tab\\\",\\\"@tabs\\\",\\\"@errors\\\",\\\"@menu\\\",\\\"@onSelect\\\"],[[23,2,[]],[23,2,[\\\"subTabs\\\"]],[23,6,[]],[23,0,[\\\"subPanels\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"tabsManager\\\",\\\"displaySubPanelNew\\\"]],[23,2,[]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container\\\"],[8],[0,\\\"\\\\n        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row-container__child\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"elements/element-input\\\",null,[[\\\"isRunning\\\",\\\"value\\\",\\\"placeholder\\\",\\\"autofocus\\\",\\\"isSearchBar\\\",\\\"onSubmit\\\"],[[24,[\\\"searchTask\\\",\\\"isRunning\\\"]],[23,0,[\\\"query\\\"]],\\\"search\\\",true,true,[28,\\\"perform\\\",[[24,[\\\"searchTask\\\"]]],null]]]],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[23,0,[\\\"searchTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasResults\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,2,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"model\\\",\\\"publicFilters\\\",\\\"privateFilters\\\",\\\"privateShopFilters\\\",\\\"onPaginationTask\\\",\\\"onReplaceTemplate\\\",\\\"onInsertTemplate\\\",\\\"publicTemplates\\\",\\\"privateTemplates\\\",\\\"privateShopTemplates\\\",\\\"templateOptions\\\"],[[23,0,[\\\"subTab\\\"]],[23,5,[]],[23,0,[\\\"publicFilters\\\"]],[23,0,[\\\"privateFilters\\\"]],[23,0,[\\\"privateShopFilters\\\"]],[23,0,[\\\"paginateSearchRecordsTask\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"replaceTemplate\\\"]],[23,4,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"insertTemplate\\\"]],[23,4,[]]],null],[23,0,[\\\"publicFilters\\\",\\\"results\\\"]],[23,0,[\\\"privateFilters\\\",\\\"results\\\"]],[23,0,[\\\"privateShopFilters\\\",\\\"results\\\"]],[23,3,[\\\"perTemplate\\\"]]]]],false],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/templates/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/website-wizard/quick-shop/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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;\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 WebsitesWebsitesEditorWebsiteWizardWebsiteShopComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class WebsitesWebsitesEditorWebsiteWizardWebsiteShopComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _defineProperty(this, \"adapterName\", 'websites');\n      _defineProperty(this, \"filtersAdapterName\", 'channels/shop/campaigns/filters');\n      _defineProperty(this, \"campaignsAdapterName\", 'channels/shop/campaigns');\n      const filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName\n      });\n      Ember.set(this, 'filters', filters);\n    }\n    get shopEditBtnIcon() {\n      const model = this.args.model || {};\n      const shopKey = model?._data?.shopKey;\n      if (shopKey) {\n        return 'fas fa-pen';\n      }\n      return 'fas fa-plus';\n    }\n    *fetchShopTask(model = {}) {\n      const shopKey = model?._data?.shopKey;\n      if (shopKey) {\n        const shop = yield this.crud.findTask.perform({\n          adapterName: this.campaignsAdapterName,\n          appendPath: `/${shopKey}`\n        });\n        this.setShopModel(shop);\n      }\n      this.unloadShopModel();\n    }\n    setShopModel(shop) {\n      const tab = this.args.tab;\n      Ember.set(tab, 'model', shop);\n      Ember.set(this, 'shop', shop);\n    }\n    unloadShopModel() {\n      const tab = this.args.tab;\n      Ember.set(tab, 'model', '');\n      Ember.set(this, 'shop', '');\n    }\n    loadShopSource(dirtyModel = {}, shop = {}) {\n      const shopKey = shop?._data?._key;\n      if (shopKey) {\n        dirtyModel.setData('shopKey', shopKey);\n      }\n    }\n    unloadShopSource(dirtyModel = {}) {\n      dirtyModel.setData('shopKey', '');\n    }\n    fetchAndSetShopModel(onCloseDialogAction, model = {}) {\n      onCloseDialogAction?.();\n      this.fetchShopTask.perform(model);\n    }\n    editShopSource(model = {}) {\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model,\n        tab: this.args.tab\n      });\n      Ember.set(this, 'dirtyModel', dirty);\n    }\n    cancelEditShopSource() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.dirtyModel,\n        tab: this.args.tab\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchShopTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchShopTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadShopSource\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"loadShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadShopSource\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchAndSetShopModel\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchAndSetShopModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editShopSource\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"editShopSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEditShopSource\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEditShopSource\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/websites-editor/website-wizard/quick-shop/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2tMsTBH8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@documentationResource\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@model\\\",\\\"@resourceList\\\",\\\"@isReadOnly\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@resourceList\\\"],[\\\"websiteShop\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@isWizard\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"shop_group\\\",[23,2,[]],true,[23,4,[]],\\\"shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"shopKey\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@hasSelected\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@list\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\"],[false,true,[23,5,[\\\"_data\\\",\\\"shopKey\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"shopsList\\\"]],true,\\\"_data.name\\\",[23,5,[\\\"_data\\\",\\\"shop\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\",\\\"@onClose\\\"],[[23,0,[\\\"shopEditBtnIcon\\\"]],[23,7,[]],[28,\\\"fn\\\",[[23,0,[\\\"editShopSource\\\"]],[23,5,[]]],null],[28,\\\"fn\\\",[[23,0,[\\\"cancelEditShopSource\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirtyModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\"],[\\\"shop\\\",[23,2,[]],\\\"shop\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@hasSelected\\\",\\\"@list\\\",\\\"@itemLabelKey\\\",\\\"@itemValueKey\\\",\\\"@isRunning\\\",\\\"@onDeselect\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@readonly\\\",\\\"@resultsItemComponent\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\"],[false,[23,3,[]],[23,0,[\\\"dirtyModel\\\",\\\"_data\\\",\\\"shopKey\\\"]],[23,0,[\\\"shopsList\\\"]],\\\"_data.name\\\",\\\"_data._key\\\",[23,0,[\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"unloadShopSource\\\"]],[23,0,[\\\"dirtyModel\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"filters\\\",\\\"resultsProperty\\\",\\\"component\\\"],[[23,0,[\\\"campaignsAdapterName\\\"]],[23,0,[\\\"filters\\\"]],\\\"shopsList\\\",[23,0,[]]]]],[23,0,[\\\"dirtyModel\\\",\\\"_data\\\",\\\"shop\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"loadShopSource\\\"]],[23,0,[\\\"dirtyModel\\\"]]],null],[23,3,[]],\\\"channels/shop/campaigns/search-results\\\",\\\"_data.name\\\",[23,0,[\\\"dirtyModel\\\",\\\"_data\\\",\\\"shop\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\\n            \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,3,[]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[\\\"dirtyModel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"fetchAndSetShopModel\\\"]],[23,1,[]]],null],[23,4,[]]]]]],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/website-wizard/quick-shop/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/website-wizard/quick-start/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { dropTask } from 'ember-concurrency-decorators'\n  // import * as R from 'ramda'\n  // import { tracked } from '@glimmer/tracking'\n  // import { inject as service } from '@ember/service'\n\n  class WebsitesWebsitesEditorWebsiteWizardQuickStartComponent extends _component.default {\n    // @service server\n    // @tracked domainVerified = false\n\n    // get validDomainIcon () {\n    //   return this.domainVerified ? 'fas fa-check-circle' : 'fas fa-times-circle'\n    // }\n\n    // @dropTask\n    // * validateDomain () {\n    //   const model = R.pathOr({}, ['args', 'model'])(this)\n    //   const domain = R.pathOr('', ['_data', 'domain'])(model)\n    //   const result = yield this.server.call('POST', 'api/protected/websites/validate/domain', { domain })\n    //   this.domainVerified = R.pathOr(false, ['data'])(result)\n    //   model.set('_data.domainVerified', this.domainVerified)\n    // }\n  }\n  _exports.default = WebsitesWebsitesEditorWebsiteWizardQuickStartComponent;\n});","define(\"client/pods/components/websites/websites-editor/website-wizard/quick-start/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"R6FzxRcj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@model\\\",\\\"@wizardContainerComponent\\\",\\\"@resourceList\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"websites-wizard-info\\\",false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"websitesWizard\\\",[23,6,[]],[23,5,[]],[23,4,[]],[23,3,[]]]]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isWizard\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"basicInformation_group\\\",[23,1,[]],true,[23,5,[]],\\\"basic information\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"name\\\",[23,1,[]],\\\"name\\\",[23,2,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@readonly\\\",\\\"@value\\\"],[true,[23,7,[]],[23,2,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"    \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"subdomain\\\",[23,1,[]],\\\"website url (at least 6 characters)\\\",[23,2,[]],[23,5,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@regex\\\",\\\"@value\\\"],[[23,7,[]],\\\"[^-\\\\\\\\d\\\\\\\\w]\\\",[23,2,[\\\"_data\\\",\\\"subdomain\\\"]]]]],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"subdomain\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini u-margin-top--6\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"concat\\\",[\\\"https://\\\",[23,2,[\\\"_data\\\",\\\"subdomain\\\"]],\\\".bigordr.com\\\"],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/website-wizard/quick-start/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/websites/websites-editor/website-wizard/quick-templates/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 WebsitesWebsitesEditorWebsiteWizardQuickTemplatesComponent = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _class = class WebsitesWebsitesEditorWebsiteWizardQuickTemplatesComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"template\", _descriptor, this);\n    }\n    onClick(templates, templateModel) {\n      const id = templateModel.getData('_id');\n      this.template = templateModel;\n      R.pipe(R.map(template => {\n        template.setData('selected', false);\n        return template;\n      }), R.filter(R.pathEq(['_data', '_id'], id)), R.map(template => {\n        template.setData('selected', true);\n        return template;\n      }), R.head)(templates);\n      this.args.model.setData('defaultHomePageTemplate', templateModel._data);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"template\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _class);\n});","define(\"client/pods/components/websites/websites-editor/website-wizard/quick-templates/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"XuOeB49H\",\n    \"block\": \"{\\\"symbols\\\":[\\\"formInitData\\\",\\\"@resourceList\\\",\\\"@wizardContainerComponent\\\",\\\"@tab\\\",\\\"@documentationIsMinimized\\\",\\\"@model\\\",\\\"@onCloseDialogAction\\\"],\\\"statements\\\":[[5,\\\"forms/form-container\\\",[],[[\\\"@containerId\\\",\\\"@resourceList\\\",\\\"@hasColumns\\\",\\\"@isUserAllowed\\\",\\\"@formInitData\\\",\\\"@tab\\\"],[\\\"websites-wizard-templates\\\",[23,2,[]],false,true,[28,\\\"hash\\\",null,[[\\\"documentationResource\\\",\\\"documentationIsMinimized\\\",\\\"tab\\\",\\\"resourceList\\\",\\\"wizardContainerComponent\\\"],[\\\"websitesPages\\\",[23,5,[]],[23,4,[]],[23,2,[]],[23,3,[]]]]],[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isWizard\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"themeName_group\\\",[23,1,[]],true,[23,4,[]],\\\"pick a color theme\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"color-themes\\\",[],[[\\\"@model\\\",\\\"@autoSelect\\\"],[[23,6,[]],true]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"  \\\"],[5,\\\"forms/form-group\\\",[],[[\\\"@context\\\",\\\"@formInitData\\\",\\\"@isWizard\\\",\\\"@tab\\\",\\\"@title\\\"],[\\\"defaultHomePageTemplate_group\\\",[23,1,[]],true,[23,4,[]],\\\"website template\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"websites/websites-editor/templates\\\",[],[[\\\"@model\\\",\\\"@onCloseDialogAction\\\",\\\"@tab\\\",\\\"@templateOptions\\\"],[[23,6,[]],[23,7,[]],[23,4,[]],[28,\\\"hash\\\",null,[[\\\"perTemplate\\\"],[[28,\\\"hash\\\",null,[[\\\"onClick\\\",\\\"hideButtonsTemplate\\\"],[[23,0,[\\\"onClick\\\"]],true]]]]]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/websites/websites-editor/website-wizard/quick-templates/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/wizards/wizard-btns/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class WizardsWizardBtnsComponent extends _component.default {}\n  _exports.default = WizardsWizardBtnsComponent;\n});","define(\"client/pods/components/wizards/wizard-btns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"tlCQLBqU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@wizardContainerComponent\\\",\\\"@isWizard\\\"],\\\"statements\\\":[[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"previousStep\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-btn\\\",\\\"fas fa-arrow-left\\\",[23,2,[\\\"isRunning\\\"]],\\\"previous step\\\",[23,2,[\\\"previous\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-btn--cancel\\\",[23,2,[\\\"isRunning\\\"]],\\\"cancel\\\",[23,2,[\\\"cancel\\\"]]]]],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@icon\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[28,\\\"if\\\",[[23,2,[\\\"nextStep\\\"]],\\\"fas fa-arrow-right\\\",\\\"fas fa-save\\\"],null],[23,2,[\\\"isRunning\\\"]],[28,\\\"if\\\",[[23,2,[\\\"nextStep\\\"]],\\\"save and go next\\\",\\\"save\\\"],null],[23,2,[\\\"next\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[14,1],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/wizards/wizard-btns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/wizards/wizard-container/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"client/utils/nventor\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, _nventor, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _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 WizardsWizardContainerComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('users'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember.computed('args.allowStepSkipping'), _dec9 = Ember.computed('args.wizardData'), _dec0 = Ember.computed('args.isWizard'), _dec1 = Ember.computed('args.model._data._key'), _dec10 = Ember.computed('args.wizardData.adapterName'), _dec11 = Ember.computed('args.wizardData.isRunning', 'crud.createRecordTask.isRunning', 'crud.updateRecordTask.isRunning', 'crud.replaceRecordTask.isRunning', 'crud.findTask.isRunning'), _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _class = class WizardsWizardContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n\n      // this.crud.addLists(this, [])\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"usersService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"userMenu\", _descriptor5, this);\n      _initializerDefineProperty(this, \"userKey\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isReloading\", _descriptor7, this);\n      this.setupTask.perform();\n    }\n    *setupTask() {\n      const model = this.args.model;\n      const tab = this.args.tab;\n      if (!this.isWizard) {\n        return;\n      }\n      const dirty = this.crud.setupDirty({\n        adapterName: this.adapterName,\n        model,\n        isNew: this.isNew,\n        tab\n      });\n      Ember.set(this, 'dirty', dirty);\n      yield this.getCustomizedUserMenuTask.perform();\n      const stepsList = this.stepsList || [];\n      // Set all nav items to visit to allow skipping sequential completion\n      if (this.allowStepSkipping) {\n        R.forEach(this.markMenuItemVisited)(stepsList);\n      }\n      const initialPanel = _nventor.default.safeHeadOr({}, stepsList);\n      this.tabsManager.displaySubPanel(this, initialPanel);\n    }\n    get allowStepSkipping() {\n      return this.args.allowStepSkipping === true;\n    }\n\n    // afterLoadLists () {\n    //   // @todo: add isWizrd\n    // }\n\n    get wizardData() {\n      return R.pathOr(null, ['wizardData'])(this.args);\n    }\n    get isWizard() {\n      return R.pathOr(false, ['isWizard'])(this.args);\n    }\n    get isNew() {\n      const model = this.args.model;\n      const _key = R.pathOr('', ['_data', '_key'])(model);\n      if (_key) {\n        return false;\n      }\n      return true;\n    }\n    get adapterName() {\n      return this.args.wizardData?.adapterName || '';\n    }\n\n    // May be removed!\n    get target() {\n      const wizardData = this.wizardData;\n      if (!wizardData) {\n        return R.pathOr('', ['target'])(this.args);\n      }\n      return this.adapterName;\n    }\n    get stepsList() {\n      if (!this.isWizard) {\n        return [];\n      }\n      const wizardData = this.wizardData;\n      if (!wizardData) {\n        return R.pathOr([], ['stepsList'])(this.args);\n      }\n      return wizardData?.stepsList || [];\n    }\n    get resourceList() {\n      return R.map(stepObj => stepObj?._data || {})(this.stepsList);\n    }\n    get isRunning() {\n      const creating = this.crud.createRecordTask.isRunning;\n      const updating = this.crud.updateRecordTask.isRunning;\n      const replacing = this.crud.replaceRecordTask.isRunning;\n      const finding = this.crud.findTask.isRunning;\n      const isRunning = this.args.wizardData.isRunning;\n      return creating || updating || replacing || finding || isRunning;\n    }\n    get currentStepIndex() {\n      const tab = this.args.tab;\n      const subTab = this.tabsManager.getActiveSubTab(tab);\n      if (!subTab?.value) {\n        return -1;\n      }\n      const stepsList = this.stepsList;\n      return R.findIndex(R.pathEq(['_data', 'value'], subTab.value))(stepsList);\n    }\n    get previousStep() {\n      const stepsList = this.stepsList;\n      const subTabIndex = this.currentStepIndex;\n      if (subTabIndex === -1 || subTabIndex === 0) {\n        return false;\n      }\n      return stepsList[subTabIndex - 1];\n    }\n    get nextStep() {\n      const stepsList = this.stepsList;\n      const subTabIndex = this.currentStepIndex;\n      if (subTabIndex === -1 || subTabIndex === stepsList.length - 1) {\n        return false;\n      }\n      return stepsList[subTabIndex + 1];\n    }\n    get currentStep() {\n      const stepsList = this.stepsList;\n      const subTabIndex = this.currentStepIndex;\n      if (subTabIndex === -1) {\n        return false;\n      }\n      return stepsList[subTabIndex];\n    }\n    get entities() {\n      return R.pathOr(false, ['_data', 'entities'])(this.currentStep);\n    }\n    get updateProps() {\n      return R.pathOr(false, ['_data', 'updateProps'])(this.currentStep);\n    }\n    setIsReloading() {\n      this.isReloading = true;\n      setTimeout(() => {\n        this.isReloading = false;\n      }, 50);\n    }\n    previous() {\n      const previousStep = this.previousStep;\n      if (previousStep) {\n        this.tabsManager.displaySubPanel(this, previousStep);\n      }\n      this.setIsReloading();\n    }\n    async next() {\n      const dirty = this.dirty;\n      const model = this.args.model;\n      const nextStep = this.nextStep;\n      if (nextStep) {\n        const tab = this.args.tab;\n        const currentStep = this.currentStep;\n        const updateProps = R.pathOr([], ['_data', 'updateProps'])(currentStep);\n        const onWizardNew = this.wizardData?.onWizardNew || this.args.onWizardNew;\n        if (!this.previousStep && this.isNew && onWizardNew) {\n          const saved = await onWizardNew(dirty, {\n            tabOptions: {\n              tab\n            }\n          });\n          const _dirty = this.crud.setupDirty({\n            adapterName: this.adapterName,\n            model: saved,\n            tab\n          });\n          Ember.set(this, 'dirty', _dirty);\n        } else {\n          const onNext = this.wizardData?.onWizardNext || this.args.onWizardNext;\n          if (onNext) {\n            await onNext(model, {\n              updateProps,\n              tabOptions: {\n                tab\n              }\n            });\n          }\n        }\n        this.tabsManager.displaySubPanel(this, nextStep);\n        this.setIsReloading();\n      } else {\n        let model = this.args.model;\n        if (this.dirty._data._key) {\n          model = this.dirty;\n        }\n        await this.updateMemberMenuTask.perform();\n        const onDone = this.wizardData?.onWizardDone || this.args.onWizardDone;\n        if (onDone) {\n          onDone(model);\n        }\n      }\n      this.markMenuItemVisited(nextStep);\n    }\n    async cancel() {\n      let model;\n      // try {\n      //   model = await this.crud.findTask.perform({\n      //     adapterName: this.adapterName\n      //   })\n      // } catch (e) {\n      //  // Nothing to do!\n      // }\n\n      const onCancel = this.wizardData?.onWizardCancel || this.args.onWizardCancel;\n      if (onCancel) {\n        onCancel(model, {\n          tabOptions: {}\n        });\n      }\n    }\n    *getCustomizedUserMenuTask() {\n      const userKey = this.usersService.getUserKey();\n      this.userKey = userKey;\n      const menuId = 'application/lists/wizards';\n      const userMenuFilters = this.search.setupFilters({\n        adapterName: 'members-menu/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'index',\n            direction: 'ASC'\n          }],\n          userKey,\n          menuId,\n          target: this.adapterName\n        }\n      });\n      const menu = yield this.crud.findTask.perform({\n        adapterName: 'wizards',\n        filters: userMenuFilters\n      });\n      this.userMenu = menu;\n    }\n    *updateMemberMenuTask() {\n      const menu = this.userMenu;\n      const collection = R.pathOr([], ['_data', 'collection'])(menu);\n      const targetCollection = R.find(R.pathEq(['_data', 'target'], this.adapterName))(collection);\n      if (!targetCollection) {\n        return;\n      }\n      const dirty = this.crud.setupDirty({\n        adapterName: 'members-menu',\n        model: targetCollection\n      });\n      dirty.setData('isFinished', true);\n      yield this.crud.updateRecordTask.perform({\n        adapterName: 'members-menu/collection',\n        model: dirty\n      });\n    }\n    markMenuItemVisited(item) {\n      if (!item.set) {\n        return;\n      }\n      item.set('visited', true);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"userMenu\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"userKey\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isReloading\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allowStepSkipping\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"allowStepSkipping\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"wizardData\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"wizardData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isWizard\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"isWizard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isNew\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"isNew\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"adapterName\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"adapterName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isRunning\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"isRunning\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIsReloading\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"setIsReloading\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previous\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"previous\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"next\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"next\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getCustomizedUserMenuTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getCustomizedUserMenuTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateMemberMenuTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateMemberMenuTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markMenuItemVisited\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"markMenuItemVisited\"), _class.prototype), _class);\n});","define(\"client/pods/components/wizards/wizard-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"PXuPLuug\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@tab\\\",\\\"@isWizard\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"wizards/wizard-btns\\\",[],[[\\\"@isWizard\\\",\\\"@tab\\\",\\\"@wizardContainerComponent\\\"],[true,[23,2,[]],[23,0,[]]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[14,1,[[23,0,[]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/wizards/wizard-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/create-dynamic/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"client/utils/nventor\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, _nventor, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 WorkflowsCreateDynamicComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('workflows'), _dec5 = Ember.inject.service, _dec6 = Ember.inject.service('users'), _dec7 = Ember.inject.service, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _class = class WorkflowsCreateDynamicComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor5, this);\n      _initializerDefineProperty(this, \"usersService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"storage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"workflow\", _descriptor8, this);\n      _initializerDefineProperty(this, \"workflowStage\", _descriptor9, this);\n      _initializerDefineProperty(this, \"workflowStageId\", _descriptor0, this);\n      _initializerDefineProperty(this, \"workflowItem\", _descriptor1, this);\n      _initializerDefineProperty(this, \"workflowItemActivity\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectedWorkflowKey\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedAction\", _descriptor12, this);\n      _defineProperty(this, \"workflowDefaultName\", this.intl.t('select workflow'));\n      _defineProperty(this, \"workflowStageDefaultName\", this.intl.t('select stage'));\n      this.crud.addLists(this, ['users/related', 'workflows/lists/create-dynamic']);\n    }\n    get workflowStageName() {\n      // return 'no stage selected'\n      return R.pipe(R.pathOr([{}], ['workflow', '_data', 'stages']), R.find(R.pathEq(['_data', 'stageId'], this.workflowStageId)), R.pathOr(this.workflowStageDefaultName, ['_data', 'name']))(this);\n    }\n    get workflowName() {\n      return R.pipe(R.pathOr([{}], ['workflowsService', 'workflows']), R.find(R.pathEq(['_data', '_key'], this.selectedWorkflowKey)), R.pathOr(this.workflowDefaultName, ['_data', 'name']))(this);\n    }\n    compactModeSetup() {\n      const commentModel = R.path(['args', 'model'])(this);\n      if (!commentModel) {\n        return null;\n      }\n      this.workflowItem = this.workflowsService.newWorkflowItem({\n        workflow: this.workflow\n      });\n      this.setDefaultsWorkflowItem(commentModel);\n    }\n    setDefaultsWorkflowItem(comment) {\n      const description = R.pathOr('', ['_data', 'message'])(comment);\n      const username = R.pathOr('', ['_data', 'username'])(comment);\n      // chryspii requested a todo from this.args.type\n      const translatedSection = this.intl.t('requested a todo from');\n      const translatedType = this.intl.t(this.args.type);\n      const title = `@${username} ${translatedSection} ${translatedType}`;\n      this.workflowItem.setData('title', title);\n      this.workflowItem.setData('description', description);\n      this.workflowItem.setData('stageId', this.workflowStageId);\n      let resource = this.args.type;\n      let docType = this.args.metaData?.docType || '';\n      let docName = this.args.metaData?.docName || '';\n      if (this.args.type === 'documents-public') {\n        resource = this.args.subType;\n        const subTypeArray = R.split('-', resource);\n        docType = _nventor.default.safeHeadOr('', subTypeArray);\n        docName = _nventor.default.safeLastOr('', subTypeArray);\n      } else if (this.args.type === 'documents') {\n        resource = `${docType}-${docName}`;\n      }\n      let resourceValue = this.args.metaData?.name || '';\n      if (this.args.type === 'documents') {\n        resourceValue = this.args.metaData?.docNo || '';\n      }\n      const related = this.dataManager.setAsRecord({\n        adapterName: 'workflows/related',\n        data: {\n          resource,\n          resourceValue,\n          resourceKey: this.args.master,\n          docType,\n          docName\n        }\n      });\n      this?.workflowItem?._data?.related?.pushObject(related);\n    }\n    truncate(str = '', truncateBy = 50, append = '...') {\n      const p = document.createElement('p');\n      p.innerHTML = str;\n      const strWithoutHtmlTags = p.innerText;\n      return R.when(R.propSatisfies(R.gt(R.__, truncateBy), 'length'), R.pipe(R.take(truncateBy), R.append(append), R.join('')))(strWithoutHtmlTags);\n    }\n    setDefaultsWorkflowItemActivity(comment) {\n      let title = R.pathOr(R.pathOr('', ['_data', 'message'])(comment), ['_data', 'description'])(this?.workflowItem || {});\n      const description = R.pathOr('', ['_data', 'message'])(comment);\n      const key = R.pathOr('', ['_data', '_key'])(comment);\n      title = this.truncate(title);\n      this.workflowItemActivity.setData('title', title);\n      this.workflowItemActivity.setData('description', description);\n      let resource = this.args.type;\n      let docType = this.args.metaData?.docType || '';\n      let docName = this.args.metaData?.docName || '';\n      if (this.args.type === 'documents-public') {\n        resource = this.args.subType;\n        const subTypeArray = R.split('-', resource);\n        docType = _nventor.default.safeHeadOr('', subTypeArray);\n        docName = _nventor.default.safeLastOr('', subTypeArray);\n      } else if (this.args.type === 'documents') {\n        resource = `${docType}-${docName}`;\n      }\n      let resourceValue = this.args.metaData?.name || '';\n      if (this.args.type === 'documents') {\n        resourceValue = this.args.metaData?.docNo || '';\n      }\n      const related = this.dataManager.setAsRecord({\n        adapterName: 'workflows/related',\n        data: {\n          resource,\n          resourceValue,\n          resourceKey: this.args.master,\n          docType,\n          docName\n        }\n      });\n      this?.workflowItemActivity?._data?.related?.pushObject(related);\n      // ADD COMMENT\n      const commentRelated = {\n        resource: 'comment',\n        resourceValue: description,\n        resourceKey: key\n      };\n      this?.workflowItemActivity?._data?.related?.pushObject(commentRelated);\n    }\n    setWorkflow(selected, workflow) {\n      if (!selected) {\n        this.workflow = null;\n        return null;\n      }\n      this.workflow = workflow;\n\n      // Auto select first stage from workflow\n      const firstStage = R.path(['_data', 'stages', 0])(workflow);\n      if (firstStage) {\n        this.setWorkflowStage(firstStage);\n      }\n      if (this?.args?.model) {\n        const workflowKey = R.path(['_data', '_key'])(workflow);\n        this.args.model.setData('workflowKey', workflowKey);\n      }\n    }\n    setWorkflowStage(stage) {\n      this.workflowStage = stage;\n      this.workflowStageId = R.path(['_data', 'stageId'])(stage);\n      if (this.args.compactMode) {\n        this.compactModeSetup();\n      }\n    }\n    onCreateContact(comment) {\n      if (this.workflow) {\n        this.createWorkflowItemsAndActivities.perform(comment);\n      }\n    }\n    *createWorkflowItemsAndActivities(comment, onCloseDialogAction) {\n      if (!this.args.compactMode) {\n        this.workflowItem = this.workflowsService.newWorkflowItem({\n          workflow: this.workflow\n        });\n        this.setDefaultsWorkflowItem(comment);\n      }\n\n      // TODO: CREATE WORKFLOW ITEM\n      this.workflowItem = yield this.workflowsService.createWorkflowItem.perform({\n        model: this.workflowItem\n      });\n      this.workflowItemActivity = this.workflowsService.newWorkflowItemActivity({\n        workflow: this.workflow,\n        item: this.workflowItem,\n        type: this.constants.workflowsItemsActivitiesTypes.todo\n      });\n      this.setDefaultsWorkflowItemActivity(comment);\n\n      // TODO: CREATE WORKFLOW ITEM ACTIVITY\n      this.workflowItemActivity = yield this.workflowsService.createWorkflowItemActivity.perform({\n        model: this.workflowItemActivity\n      });\n\n      // TODO: UPDATE COMMENT WITH WORKFLOW DATA\n      // TODO: PERHAPS ADD THIS LOGIC ON THE API\n      if (this.args.compactMode) {\n        const dirtyComment = this.crud.setupDirty({\n          adapterName: 'comments',\n          model: comment\n        });\n        yield this.crud.replaceRecordTask.perform({\n          adapterName: 'comments',\n          model: dirtyComment\n        });\n      }\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *searchWorkflowsDropTask() {\n      yield this.workflowsService.searchWorkflows.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"storage\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"workflow\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"workflowStage\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"workflowStageId\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"workflowItem\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"workflowItemActivity\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedWorkflowKey\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'workflows';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedAction\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setWorkflow\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"setWorkflow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setWorkflowStage\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"setWorkflowStage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCreateContact\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"onCreateContact\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createWorkflowItemsAndActivities\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"createWorkflowItemsAndActivities\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchWorkflowsDropTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchWorkflowsDropTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/workflows/create-dynamic/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"GLdEDoIv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@type\\\",\\\"@metaData\\\",\\\"@master\\\",\\\"@tab\\\",\\\"@errors\\\",\\\"@model\\\",\\\"@compactMode\\\",\\\"&default\\\"],\\\"statements\\\":[[14,13,[[28,\\\"hash\\\",null,[[\\\"onCreateContact\\\"],[[23,0,[\\\"onCreateContact\\\"]]]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,11,[\\\"isDirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"span\\\",false],[3,\\\"did-insert\\\",[[28,\\\"perform\\\",[[23,0,[\\\"searchWorkflowsDropTask\\\"]]],null]]],[8],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\"],[\\\"create workflow\\\",\\\"fas fa-random\\\",false]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"campaigns.bulkDiscounts\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"workflows\\\",[23,10,[]],\\\"bulkDiscounts.status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[2,\\\" SELECT WORKFLOW \\\"],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@isRunning\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@label\\\",\\\"@translate\\\"],[[23,0,[\\\"workflowsService\\\",\\\"searchWorkflows\\\",\\\"isRunning\\\"]],\\\"fas fa-random\\\",[23,0,[\\\"workflowsService\\\",\\\"workflows\\\"]],[23,0,[\\\"workflowName\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowEmpty\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"workflows\\\",true,\\\"workflows\\\",false,[23,0,[\\\"workflowsService\\\",\\\"workflows\\\"]],[23,0,[]],false,\\\"selectedWorkflowKey\\\",\\\"_data._key\\\",\\\"_data.name\\\",true,\\\"workflows/create-dynamic/workflow-editor-wrapper\\\",[28,\\\"hash\\\",null,[[\\\"tab\\\",\\\"master\\\",\\\"metaData\\\",\\\"type\\\"],[[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]]]]],[28,\\\"fn\\\",[[23,0,[\\\"setWorkflow\\\"]],true],null],[28,\\\"fn\\\",[[23,0,[\\\"setWorkflow\\\"]],false],null]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"campaigns.bulkDiscounts\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"stages\\\",[23,10,[]],\\\"bulkDiscounts.status\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n          \\\"],[2,\\\" SELECT WORKFLOW STAGE \\\"],[0,\\\"\\\\n          \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@isRunning\\\",\\\"@list\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@translate\\\"],[[23,0,[\\\"workflowsService\\\",\\\"searchWorkflows\\\",\\\"isRunning\\\"]],[23,0,[\\\"workflow\\\",\\\"_data\\\",\\\"stages\\\"]],[23,0,[\\\"workflowStageName\\\"]],[28,\\\"if\\\",[[23,0,[\\\"workflow\\\"]],false,true],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowEmpty\\\",\\\"@onSelect\\\"],[\\\"workflows/stagesCollection\\\",false,\\\"stages\\\",false,[23,0,[\\\"workflow\\\",\\\"_data\\\",\\\"stages\\\"]],[23,0,[]],false,\\\"workflowStageId\\\",\\\"_data.stageId\\\",\\\"_data.name\\\",false,[23,0,[\\\"setWorkflowStage\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"assign to\\\",[24,[\\\"errors\\\"]],\\\"users\\\",\\\"workflowsItemsActivities\\\"]],{\\\"statements\\\":[[0,\\\"          \\\"],[1,[28,\\\"users/users-selector\\\",null,[[\\\"readonly\\\",\\\"disabled\\\",\\\"adapterName\\\",\\\"filtersName\\\",\\\"isSingleSelect\\\",\\\"model\\\",\\\"salesPersons\\\",\\\"list\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\"],[[28,\\\"if\\\",[[23,0,[\\\"workflowStageId\\\"]],false,true],null],[28,\\\"if\\\",[[23,0,[\\\"workflowStageId\\\"]],false,true],null],\\\"users/related\\\",\\\"users/related/filters\\\",false,[23,0,[\\\"workflowItem\\\"]],[23,0,[\\\"workflowItem\\\",\\\"_data\\\",\\\"users\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-related\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"assign\\\"]],[23,0,[\\\"workflowItem\\\"]],\\\"_data.users\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"unassign\\\"]],[23,0,[\\\"workflowItem\\\"]],\\\"_data.users\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"workflowItem\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItemsActivities\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\"],[\\\"description\\\",[23,10,[]],\\\"workflowsItem.description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n            \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@basicToolbar\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[23,9,[]],true,[28,\\\"if\\\",[[23,0,[\\\"workflow\\\"]],false,true],null],[23,0,[\\\"workflowItem\\\",\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n          \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"workflowsService\\\",\\\"searchWorkflows\\\",\\\"isRunning\\\"]],[23,3,[]]]]],[0,\\\"\\\\n          \\\"],[2,\\\"          @label={{'export'}}\\\"],[0,\\\"\\\\n          \\\"],[2,\\\"          @icon={{'fas fa-file-export'}}\\\"],[0,\\\"\\\\n          \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@isRunning\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"createWorkflowItemsAndActivities\\\",\\\"isRunning\\\"]],[28,\\\"is-empty\\\",[[23,0,[\\\"workflow\\\"]]],null],[28,\\\"perform\\\",[[23,0,[\\\"createWorkflowItemsAndActivities\\\"]],[23,11,[]],[23,3,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\\n    \\\"],[5,\\\"workflows/items/mark-as-completed\\\",[],[[\\\"@workflowsItemsActivities\\\"],[[23,11,[\\\"_data\\\",\\\"workflowsItemsActivities\\\"]]]]],[0,\\\"\\\\n\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[2,\\\" SELECT WORKFLOW \\\"],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@isRunning\\\",\\\"@icon\\\",\\\"@list\\\",\\\"@label\\\",\\\"@translate\\\"],[[23,0,[\\\"workflowsService\\\",\\\"searchWorkflows\\\",\\\"isRunning\\\"]],\\\"fas fa-random\\\",[23,0,[\\\"workflowsService\\\",\\\"workflows\\\"]],[23,0,[\\\"workflowName\\\"]],false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowEmpty\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[\\\"workflows\\\",false,\\\"workflows\\\",false,[23,0,[\\\"workflowsService\\\",\\\"workflows\\\"]],[23,0,[]],false,\\\"selectedWorkflowKey\\\",\\\"_data._key\\\",\\\"_data.name\\\",true,\\\"workflows/create-dynamic/workflow-editor-wrapper\\\",[28,\\\"hash\\\",null,[[\\\"tab\\\",\\\"master\\\",\\\"metaData\\\",\\\"type\\\"],[[23,9,[]],[23,8,[]],[23,7,[]],[23,6,[]]]]],[28,\\\"fn\\\",[[23,0,[\\\"setWorkflow\\\"]],true],null],[28,\\\"fn\\\",[[23,0,[\\\"setWorkflow\\\"]],false],null]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n    \\\"],[2,\\\" SELECT WORKFLOW STAGE \\\"],[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@isRunning\\\",\\\"@list\\\",\\\"@label\\\",\\\"@disabled\\\",\\\"@translate\\\"],[[23,0,[\\\"workflowsService\\\",\\\"searchWorkflows\\\",\\\"isRunning\\\"]],[23,0,[\\\"workflow\\\",\\\"_data\\\",\\\"stages\\\"]],[23,0,[\\\"workflowStageName\\\"]],[28,\\\"if\\\",[[23,0,[\\\"workflow\\\"]],false,true],null],false]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@adapterName\\\",\\\"@hasSearch\\\",\\\"@legend\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@valueKey\\\",\\\"@optionValueKey\\\",\\\"@optionLabelKey\\\",\\\"@allowEmpty\\\",\\\"@onSelect\\\"],[\\\"workflows/stagesCollection\\\",false,\\\"stages\\\",false,[23,0,[\\\"workflow\\\",\\\"_data\\\",\\\"stages\\\"]],[23,0,[]],false,\\\"workflowStageId\\\",\\\"_data.stageId\\\",\\\"_data.name\\\",false,[23,0,[\\\"setWorkflowStage\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/create-dynamic/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/create-dynamic/workflow-editor-wrapper/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 WorkflowsCreateDynamicWorkflowEditorWrapperComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('workflows'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _class = class WorkflowsCreateDynamicWorkflowEditorWrapperComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      this.crud.addLists(this, ['workflows/related/types']);\n      this.setModel();\n      this.setDefaults();\n    }\n    setModel() {\n      if (this?.args?.isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: 'workflows',\n          model: this?.args?.model\n        });\n      } else {\n        this.model = this.workflowsService.newWorkflow({\n          type: 'workflows'\n        });\n      }\n    }\n    setDefaults() {\n      const options = R.pathOr({}, ['args', 'addItemOptions'])(this);\n      const type = R.prop('type')(options);\n      const name = R.path(['metaData', 'name'])(options);\n      const master = R.prop('master')(options);\n      if (type === 'documents') {\n        return;\n      }\n\n      // \"workflows/related\"\n      const related = this.dataManager.setAsRecord({\n        adapterName: 'workflows/related',\n        data: {\n          resource: type,\n          resourceValue: name,\n          resourceKey: master\n        }\n      });\n      this?.model?.setData('name', 'TODO');\n      this?.model?._data?.related?.pushObject(related);\n      this?.model?._data?.stages[0]?.setData('name', 'TODO');\n    }\n    onClose() {\n      const onCloseDialogAction = R.path(['args', 'onCloseDialogAction'])(this);\n      const toggleShowEditor = R.path(['args', 'toggleShowEditor'])(this);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n      if (toggleShowEditor) {\n        toggleShowEditor();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _class);\n});","define(\"client/pods/components/workflows/create-dynamic/workflow-editor-wrapper/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"w7DoahEs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@addItemOptions\\\",\\\"@isNew\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[5,\\\"workflows/workflow-editor\\\",[],[[\\\"@tab\\\",\\\"@type\\\",\\\"@adapterName\\\",\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,1,[\\\"tab\\\"]],\\\"workflows\\\",\\\"workflows\\\",[23,0,[\\\"onClose\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"onClose\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/create-dynamic/workflow-editor-wrapper/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/dynamic-wrapper/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class WorkflowsDynamicWrapperComponent extends _component.default {}\n  _exports.default = WorkflowsDynamicWrapperComponent;\n});","define(\"client/pods/components/workflows/dynamic-wrapper/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"SOVDhRmu\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@tab\\\",\\\"@master\\\",\\\"@metaData\\\",\\\"@type\\\"],\\\"statements\\\":[[14,1,[[28,\\\"hash\\\",null,[[\\\"onCreateContact\\\"],[[23,0,[\\\"onCreateContact\\\"]]]]]]],[0,\\\"\\\\n\\\\n\\\"],[5,\\\"workflows/create-dynamic\\\",[],[[\\\"@tab\\\",\\\"@master\\\",\\\"@metaData\\\",\\\"@type\\\"],[[23,2,[]],[23,3,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/dynamic-wrapper/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/items/activities/editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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  let WorkflowsWorkflowEditorComponent = _exports.default = (_dec = Ember.inject.service('contacts'), _dec2 = Ember.inject.service('users'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _class = class WorkflowsWorkflowEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"usersService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hasTypeSelector\", _descriptor6, this);\n      this.crud.addLists(this, ['date/lists/durations', 'date/lists/hours', 'workflows/lists/items/activities/types']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasTypeSelector\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return R.pathOr(true, ['args', 'hasTypeSelector'])(this);\n    }\n  }), _class);\n});","define(\"client/pods/components/workflows/items/activities/editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"eIp6pxIQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@onCloseDialogAction\\\",\\\"@model\\\",\\\"@isEditing\\\",\\\"@onCancel\\\",\\\"@isNew\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,2,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasTypeSelector\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItemsActivities\\\"]],[[\\\"@context\\\"],[\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"type\\\",[23,0,[\\\"errors\\\"]],\\\"type\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-items-activities-types\\\"]],\\\"list-selector--horizontal\\\",[23,2,[]],\\\"_data.type\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item\\\",false,false]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,2,[\\\"_data\\\",\\\"type\\\"]],\\\"notes\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItemsActivities\\\"]],[[\\\"@context\\\"],[\\\"basic\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"description\\\",[23,0,[\\\"errors\\\"]],\\\"description\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@autofocus\\\",\\\"@readonly\\\",\\\"@rows\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@autoResize\\\"],[true,[23,6,[]],4,[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,2,[\\\"_data\\\",\\\"description\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[[23,0,[\\\"errors\\\"]],\\\"isPinned\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"label\\\",\\\"toggleValue\\\"],[[23,6,[]],\\\"pin\\\",[23,2,[\\\"_data\\\",\\\"isPinned\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItemsActivities\\\"]],[[\\\"@context\\\"],[\\\"basic\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\",\\\"@isRequired\\\"],[\\\"title\\\",[23,0,[\\\"errors\\\"]],\\\"title\\\",[23,2,[]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,6,[]],true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,2,[\\\"_data\\\",\\\"title\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"description\\\",[23,0,[\\\"errors\\\"]],\\\"description\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@autoResize\\\"],[[23,6,[]],4,[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,2,[\\\"_data\\\",\\\"description\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@context\\\"],[\\\"other\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"date\\\",[23,0,[\\\"errors\\\"]],\\\"dateStartZ\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateStartZ\\\",[23,2,[]],[23,2,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,6,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"time\\\",[23,0,[\\\"errors\\\"]],\\\"time\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,6,[]],[23,6,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"date-lists-hours\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"time\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"duration\\\",[23,0,[\\\"errors\\\"]],\\\"duration\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,6,[]],[23,6,[]],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"date-lists-durations\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,2,[\\\"_data\\\",\\\"duration\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItemsActivities\\\"]],[[\\\"@context\\\"],[\\\"progress\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-toggler\\\",null,[[\\\"disabled\\\",\\\"label\\\",\\\"toggleValue\\\"],[[23,6,[]],\\\"mark as completed\\\",[23,2,[\\\"_data\\\",\\\"isComplete\\\"]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItemsActivities\\\"]],[[\\\"@context\\\"],[\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"assign to\\\",[24,[\\\"errors\\\"]],\\\"users\\\",\\\"workflowsItemsActivities\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"users/users-selector\\\",null,[[\\\"readonly\\\",\\\"disabled\\\",\\\"adapterName\\\",\\\"filtersName\\\",\\\"isSingleSelect\\\",\\\"model\\\",\\\"salesPersons\\\",\\\"list\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\"],[[23,6,[]],[23,6,[]],\\\"users/related\\\",\\\"users/related/filters\\\",false,[23,2,[]],[23,2,[\\\"_data\\\",\\\"users\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-related\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"assign\\\"]],[23,2,[]],\\\"_data.users\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"unassign\\\"]],[23,2,[]],\\\"_data.users\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItemsActivities\\\"]],[[\\\"@context\\\"],[\\\"related\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"related\\\",[23,0,[\\\"errors\\\"]],\\\"related\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/related/editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,2,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[23,5,[]],[23,3,[]]],null]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,2,[\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-btn--cancel\\\",[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],\\\"delete\\\",[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\"],[\\\"workflows/items/activities\\\",[23,0,[]],[23,2,[]],[23,1,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[23,4,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[]],\\\"workflows/items/activities\\\",[23,2,[]],[23,1,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[]],\\\"workflows/items/activities\\\",[23,2,[]],[23,1,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,2,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/items/activities/editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/items/activities/event/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, R, RA) {\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 WorkflowsWorkflowEditorComponent = _exports.default = (_dec = Ember.inject.service('workflows'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _class = class WorkflowsWorkflowEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor5, this);\n    }\n    get isFilteredRelatedNotEmpty() {\n      const activity = this?.args?.activity || {};\n      const related = activity?._data?.related || [];\n      const filteredRelated = R.pipe(R.map(relatedObject => {\n        const comment = relatedObject?._data?.comment;\n        if (RA.isNilOrEmpty(comment)) {\n          return relatedObject;\n        } else {\n          const isPublic = comment?.isPublic || '';\n          if (R.is(Boolean, isPublic) && isPublic === true) {\n            return relatedObject;\n          }\n        }\n        return false;\n      }), R.reject(R.equals(false)))(related);\n      return R.gt(R.length(filteredRelated), 0);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/workflows/items/activities/event/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"pzXuMhQU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"user\\\",\\\"@activity\\\",\\\"@tab\\\",\\\"@item\\\",\\\"@workflow\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"workflows-item-activity__container\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[1,[23,3,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n  \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@basicToolbar\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[23,4,[]],true,true,[23,3,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"workflows_items_activities_\\\",[23,3,[\\\"_data\\\",\\\"type\\\"]]],null]],null],false],[9],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"dateTime\\\",[[23,3,[\\\"_data\\\",\\\"timestampZ\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,3,[\\\"_data\\\",\\\"dateStartZ\\\"]],[23,3,[\\\"_data\\\",\\\"time\\\"]],[23,3,[\\\"_data\\\",\\\"duration\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"dateStartZ\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"date\\\",[[23,3,[\\\"_data\\\",\\\"dateStartZ\\\"]]],null],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"time\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,3,[\\\"_data\\\",\\\"time\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"duration\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[23,3,[\\\"_data\\\",\\\"duration\\\"]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,3,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]],\\\"system generated\\\"],null],[28,\\\"tt\\\",[[23,3,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]]],null],[23,3,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"users\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"@\\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"and\\\",[[23,3,[\\\"_data\\\",\\\"related\\\"]],[23,0,[\\\"isFilteredRelatedNotEmpty\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"related\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"workflows/related/editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,3,[]],true]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-container-row\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"workflows/items/mark-as-completed\\\",[],[[\\\"@isInnerMarkAsCompleted\\\",\\\"@workflowsItemsActivities\\\"],[true,[23,3,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"isComplete\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n          \\\"],[1,[28,\\\"dateTime\\\",[[23,3,[\\\"_data\\\",\\\"dateZCompleted\\\"]]],null],false],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"btns-group u-margin-left--auto\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[[23,5,[\\\"_data\\\",\\\"name\\\"]],false,\\\"fas fa-pen\\\",false,[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"setupDirty\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"component\\\",\\\"resultsProperty\\\"],[\\\"workflows/items/activities\\\",[23,3,[]],[23,0,[]],\\\"dirty\\\"]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"workflows/items/activities/editor\\\",[],[[\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@workflow\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,1,[]],false,true,false,[23,6,[]],[23,0,[\\\"dirty\\\"]],[23,1,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/items/activities/event/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/items/activities/note/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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 WorkflowsWorkflowEditorComponent = _exports.default = (_dec = Ember.inject.service('workflows'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _class = class WorkflowsWorkflowEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/workflows/items/activities/note/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"nxVz3GdH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@activity\\\",\\\"@item\\\",\\\"@workflow\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"workflows-item-activity__container\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc\\\"],[8],[1,[23,2,[\\\"_data\\\",\\\"description\\\"]],false],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[23,2,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]],false],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[[23,3,[\\\"_data\\\",\\\"name\\\"]],false,\\\"fas fa-pen\\\",false,[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"setupDirty\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"component\\\",\\\"resultsProperty\\\"],[\\\"workflows/items/activities\\\",[23,2,[]],[23,0,[]],\\\"dirty\\\"]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/items/activities/editor\\\",[],[[\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@workflow\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,1,[]],false,true,[23,4,[]],[23,2,[]],[23,1,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/items/activities/note/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/items/activities/templates/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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, _dec0, _dec1, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\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 WorkflowsItemsActivitiesTemplatesComponent = _exports.default = (_dec = Ember.inject.service('users'), _dec2 = Ember.inject.service('search'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._action, _class = class WorkflowsItemsActivitiesTemplatesComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"usersService\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _initializerDefineProperty(this, \"usersRelated\", _descriptor6, this);\n      _initializerDefineProperty(this, \"usersRelatedFilters\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isEditing\", _descriptor8, this);\n      _initializerDefineProperty(this, \"resource\", _descriptor9, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor0, this);\n      _defineProperty(this, \"adapterName\", 'workflows/lists/items/activities/templates');\n      this.loadContactTask.perform();\n      this.resource = R.pathOr(false, ['args', 'addItemOptions', 'resource'])(this);\n      this.isEditing = R.pathOr(false, ['args', 'isEditing'])(this);\n      const model = R.pathOr(false, ['args', 'model'])(this);\n      const tab = this.args?.tab || {};\n      this.tab = tab;\n      if (this.isEditing) {\n        this.model = this.crud.setupDirty({\n          adapterName: this.adapterName,\n          model,\n          tab\n        });\n      } else {\n        this.model = this.crud.setupNewRecord({\n          adapterName: this.adapterName,\n          tab\n        });\n      }\n      this.model.setData('resource', this.resource);\n    }\n    willDestroy() {\n      this.crud.cancelEditing({\n        adapterName: this.adapterName,\n        dirty: this.model,\n        tab: this.tab\n      });\n    }\n    get isRunning() {\n      const removeRecordTaskIsRunning = this.crud.removeRecordTask.isRunning;\n      const replaceRecordTaskIsRunning = this.crud.replaceRecordTask.isRunning;\n      const createRecordTaskIsRunning = this.crud.createRecordTask.isRunning;\n      const loadContactTaskIsRunning = this.loadContactTask.isRunning;\n      return removeRecordTaskIsRunning || replaceRecordTaskIsRunning || createRecordTaskIsRunning || loadContactTaskIsRunning;\n    }\n    *loadContactTask() {\n      this.usersRelatedFilters = this.searchService.setupFilters({\n        adapterName: 'users/related/filters',\n        defaultFiltersData: {\n          isAssociates: false,\n          allMembers: true\n        }\n      });\n      this.usersRelated = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'users/related',\n        filters: this.usersRelatedFilters\n      });\n    }\n    cancel() {\n      const toggleShowEditor = R.path(['args', 'toggleShowEditor'])(this);\n      const onCloseDialogAction = R.path(['args', 'onCloseDialogAction'])(this);\n      if (toggleShowEditor) {\n        return toggleShowEditor();\n      }\n      if (onCloseDialogAction) {\n        return onCloseDialogAction();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"usersRelated\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"usersRelatedFilters\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isEditing\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"resource\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadContactTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadContactTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancel\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"cancel\"), _class.prototype), _class);\n});","define(\"client/pods/components/workflows/items/activities/templates/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"hgHLaLw5\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@isReadonly\\\",\\\"@addItemOptions\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"data-form-id\\\",[23,0,[\\\"model\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\"],[5,\\\"forms/form-section\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"templates\\\",\\\"workflows\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"label\\\",\\\"workflows\\\",\\\"review steps\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRequired\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"model\\\",\\\"_data\\\",\\\"label\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n  \\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@context\\\",\\\"@documentationResource\\\",\\\"@label\\\",\\\"@model\\\",\\\"@tab\\\"],[\\\"users\\\",\\\"workflows\\\",\\\"users\\\",[23,0,[\\\"model\\\"]],[23,0,[\\\"tab\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"users/users-selector\\\",[],[[\\\"@adapterName\\\",\\\"@showCompanyName\\\",\\\"@disabled\\\",\\\"@filters\\\",\\\"@filtersName\\\",\\\"@isSingleSelect\\\",\\\"@list\\\",\\\"@model\\\",\\\"@onAssignSalesPerson\\\",\\\"@onUnassignSalesPerson\\\",\\\"@readonly\\\",\\\"@salesPersons\\\"],[\\\"users/related\\\",[23,2,[\\\"showCompanyName\\\"]],[23,1,[]],[23,0,[\\\"usersRelatedFilters\\\"]],\\\"users/related/filters\\\",false,[23,0,[\\\"usersRelated\\\"]],[23,0,[\\\"model\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"assign\\\"]],[23,0,[\\\"model\\\"]],\\\"_data.users\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"unassign\\\"]],[23,0,[\\\"model\\\"]],\\\"_data.users\\\"],null],[23,1,[]],[23,0,[\\\"model\\\",\\\"_data\\\",\\\"users\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[5,\\\"layouts/panels/panel-footer\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"model\\\"]],true,[23,0,[\\\"cancel\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[5,\\\"layouts/btns-group\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"elements/btn-cancel\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,1,[]],[23,0,[\\\"isRunning\\\"]],[23,0,[\\\"cancel\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"model\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isEditing\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"disabled\\\"]],[23,0,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"replaceRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"cancel\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"elements/btn-save\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"disabled\\\"]],[23,0,[\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"onAfter\\\",\\\"tab\\\"],[[23,0,[\\\"adapterName\\\"]],[23,0,[]],[23,0,[\\\"model\\\"]],[23,0,[\\\"cancel\\\"]],[23,0,[\\\"tab\\\"]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/items/activities/templates/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/items/card/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, _emberConcurrency, R) {\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;\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 WorkflowsPanelDisplayComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('workflows'), _dec5 = Ember.inject.service('auth'), _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = (0, _emberConcurrencyDecorators.task)({\n    enqueue: true,\n    maxConcurrency: 3\n  }), _class = class WorkflowsPanelDisplayComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragAndDrop\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"authService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor6, this);\n      _initializerDefineProperty(this, \"newItemActivityModel\", _descriptor7, this);\n      this.crud.addLists(this, ['users/related', 'workflows/lists/tags']);\n    }\n    get currentUserUid() {\n      return this.authService.getUserProp('uid');\n    }\n    *bulkMarkActivityAsCompleted() {\n      const workflowsItemsActivities = R.pathOr([], ['args', 'item', '_data', 'workflowsItemsActivities'])(this);\n      const updateTask = R.map(workflowItemActivity => {\n        workflowItemActivity.setData('isComplete', true);\n        return this.markActivityAsCompletedTask.perform(workflowItemActivity);\n      })(workflowsItemsActivities);\n      yield (0, _emberConcurrency.all)(updateTask);\n    }\n    *markActivityAsCompletedTask(activity) {\n      return yield this.workflowsService.markActivityAsCompleted.perform({\n        activity,\n        component: this\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragAndDrop\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"authService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"newItemActivityModel\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"bulkMarkActivityAsCompleted\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"bulkMarkActivityAsCompleted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markActivityAsCompletedTask\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"markActivityAsCompletedTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/workflows/items/card/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WULzdX/v\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"related\\\",\\\"user\\\",\\\"@item\\\",\\\"@workflow\\\",\\\"@stageIndex\\\",\\\"@displayItem\\\"],\\\"statements\\\":[[5,\\\"helpers/drag-container\\\",[],[[\\\"@tagName\\\",\\\"@onDragStart\\\",\\\"@draggable\\\",\\\"@data\\\",\\\"@classNames\\\"],[\\\"div\\\",[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,7,[]]],null],true,[23,5,[\\\"_data\\\",\\\"_key\\\"]],\\\"workflows-item__container u-container\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"u-tappable\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,8,[]],[23,5,[]]],null]]],[8],[0,\\\"\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[1,[23,5,[\\\"_data\\\",\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[8],[1,[23,5,[\\\"_data\\\",\\\"contact\\\"]],false],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"expected close date\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"dateTime\\\",[[23,5,[\\\"_data\\\",\\\"dateEndZExpected\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[1,[28,\\\"tt\\\",[\\\"updated\\\"],null],false],[0,\\\" \\\"],[1,[28,\\\"dateTime\\\",[[23,5,[\\\"_data\\\",\\\"timestampZ_latest\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[1,[28,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]],\\\"system generated\\\"],null],[28,\\\"tt\\\",[[23,5,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]]],null],[23,5,[\\\"_data\\\",\\\"creator\\\",\\\"username\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"users\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"@\\\"],[1,[23,4,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-tags\\\"]],false,[23,5,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"isClosed\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[\\\"_data\\\",\\\"isSuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n    \\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\"],[\\\"related\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[\\\"_data\\\",\\\"related\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"workflows/related/editor/detail-searcher\\\",[],[[\\\"@related\\\",\\\"@isReadonly\\\"],[[23,3,[]],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\"    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"btns-group\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-margin-left--auto\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[23,5,[\\\"_data\\\",\\\"name\\\"]],false,\\\"fas fa-pen\\\",false,[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"setupDirty\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"component\\\",\\\"resultsProperty\\\"],[\\\"workflows/items\\\",[23,5,[]],[23,0,[]],\\\"dirty\\\"]]]],null],[23,0,[\\\"bulkMarkActivityAsCompleted\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[5,\\\"workflows/items/editor\\\",[],[[\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@workflow\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,2,[]],false,true,[23,6,[]],[23,0,[\\\"dirty\\\"]],[23,2,[]]]]],[0,\\\"\\\\n      \\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\n      \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@icon\\\",\\\"@tooltipLabel\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[23,5,[\\\"_data\\\",\\\"name\\\"]],false,\\\"fas fa-plus\\\",\\\"add activity\\\",false,[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"newWorkflowItemActivity\\\"]],[28,\\\"hash\\\",null,[[\\\"workflow\\\",\\\"item\\\",\\\"component\\\",\\\"resultsProperty\\\"],[[23,0,[\\\"currentWorkflow\\\"]],[23,5,[]],[23,0,[]],\\\"newItemActivityModel\\\"]]]],null],[23,0,[\\\"bulkMarkActivityAsCompleted\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"newItemActivityModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"workflows/items/activities/editor\\\",[],[[\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@workflow\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,1,[]],true,false,[23,6,[]],[23,0,[\\\"newItemActivityModel\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n  \\\"],[2,\\\"ONLY THE PERSON WHO IS ASSIGNED TO THIS SHOULD BE ABLE TO TOGGLE\\\"],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[\\\"isCompleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"workflows/items/mark-as-completed\\\",[],[[\\\"@workflowsItemsActivities\\\"],[[23,5,[\\\"_data\\\",\\\"workflowsItemsActivities\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/items/card/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/items/editor/component\", [\"exports\", \"@glimmer/component\", \"ramda\"], function (_exports, _component, R) {\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;\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 WorkflowsItemsEditorComponent = _exports.default = (_dec = Ember.inject.service('contacts'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('users'), _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _class = class WorkflowsItemsEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"usersService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"date\", _descriptor4, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor5, this);\n      _initializerDefineProperty(this, \"model\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor7, this);\n      this.crud.addLists(this, ['users/related', 'workflows/lists/tags']);\n    }\n    get availableStages() {\n      const stages = this.args.workflow?._data?.stages || [];\n      return R.reject(R.pathEq(['_data', 'stageId'], 'unassigned'))(stages);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/workflows/items/editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Bx3qnQst\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@onCloseDialogAction\\\",\\\"@model\\\",\\\"@isEditing\\\",\\\"@onCancel\\\",\\\"@isReadonly\\\",\\\"@tab\\\",\\\"@isNew\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[11,\\\"data-form-id\\\",[23,4,[\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sidebar-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"tags\\\",[23,0,[\\\"errors\\\"]],\\\"tags\\\",\\\"workflows\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-tags\\\"]],false,[23,4,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\"],[[23,7,[]],\\\"fas fa-tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@adapterName\\\",\\\"@legend\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\"],[true,\\\"workflows/lists/tags\\\",\\\"tags\\\",[22,\\\"tab\\\"],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-tags\\\"]],[23,4,[]],true,\\\"_data._key\\\",\\\"_data.tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[2]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@context\\\"],[\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"assign to\\\",[23,0,[\\\"errors\\\"]],\\\"users\\\",\\\"workflowsItems\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"users/users-selector\\\",null,[[\\\"readonly\\\",\\\"disabled\\\",\\\"adapterName\\\",\\\"filtersName\\\",\\\"isSingleSelect\\\",\\\"model\\\",\\\"salesPersons\\\",\\\"list\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\"],[[23,7,[]],[23,7,[]],\\\"users/related\\\",\\\"users/related/filters\\\",false,[23,4,[]],[23,4,[\\\"_data\\\",\\\"users\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-related\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"assign\\\"]],[23,4,[]],\\\"_data.users\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"unassign\\\"]],[23,4,[]],\\\"_data.users\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@context\\\"],[\\\"related\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"related\\\",[23,0,[\\\"errors\\\"]],\\\"related\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/related/editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,4,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@context\\\"],[\\\"basic\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\",\\\"@isRequired\\\"],[\\\"title\\\",[23,0,[\\\"errors\\\"]],\\\"title\\\",[23,4,[]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,7,[]],true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,4,[\\\"_data\\\",\\\"title\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"expected close date\\\",[23,0,[\\\"errors\\\"]],\\\"dateEndZExpected\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@isReadonly\\\"],[\\\"_data.dateEndZExpected\\\",[23,4,[]],[23,4,[\\\"_data\\\",\\\"dateEndZExpected\\\"]],[23,7,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"stage\\\",[23,0,[\\\"errors\\\"]],\\\"stage\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@readonly\\\",\\\"@disabled\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,[23,7,[]],[23,7,[]],false,[23,0,[\\\"availableStages\\\"]],\\\"_data.stageId\\\",\\\"_data.name\\\",[23,4,[\\\"_data\\\",\\\"stageId\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@context\\\"],[\\\"description\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"description\\\",[23,0,[\\\"errors\\\"]],\\\"description\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"        \\\"],[5,\\\"froala\\\",[],[[\\\"@tab\\\",\\\"@basicToolbar\\\",\\\"@isReadonly\\\",\\\"@content\\\"],[[23,8,[]],true,[23,7,[]],[23,4,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n\\\"],[2,\\\"\\\\t\\\\t\\\\t\\\\t<Elements::ElementTextarea\\\"],[0,\\\"\\\\n\\\"],[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t@readonly={{@isReadonly}}\\\"],[0,\\\"\\\\n\\\"],[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t@rows={{4}}\\\"],[0,\\\"\\\\n\\\"],[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t@translatedPlaceholder={{tt 'optional'}}\\\"],[0,\\\"\\\\n\\\"],[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t@value={{@model._data.description}}\\\"],[0,\\\"\\\\n\\\"],[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t@autoResize={{true}}\\\"],[0,\\\"\\\\n\\\"],[2,\\\"\\\\t\\\\t\\\\t\\\\t/>\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,7,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"tags\\\",[23,0,[\\\"errors\\\"]],\\\"tags\\\",\\\"workflows\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-tags\\\"]],false,[23,4,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\"],[[23,7,[]],\\\"fas fa-tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@adapterName\\\",\\\"@legend\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\"],[true,\\\"workflows/lists/tags\\\",\\\"tags\\\",[22,\\\"tab\\\"],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-tags\\\"]],[23,4,[]],true,\\\"_data._key\\\",\\\"_data.tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@context\\\"],[\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\",\\\"errors\\\",\\\"context\\\",\\\"documentationResource\\\"],[\\\"assign to\\\",[24,[\\\"errors\\\"]],\\\"users\\\",\\\"workflowsItems\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"users/users-selector\\\",null,[[\\\"readonly\\\",\\\"disabled\\\",\\\"adapterName\\\",\\\"filtersName\\\",\\\"isSingleSelect\\\",\\\"model\\\",\\\"salesPersons\\\",\\\"list\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\"],[[23,7,[]],[23,7,[]],\\\"users/related\\\",\\\"users/related/filters\\\",false,[24,[\\\"model\\\"]],[23,4,[\\\"_data\\\",\\\"users\\\"]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-related\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"assign\\\"]],[23,4,[]],\\\"_data.users\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"unassign\\\"]],[23,4,[]],\\\"_data.users\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@context\\\"],[\\\"related\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"related\\\",[23,0,[\\\"errors\\\"]],\\\"related\\\",[23,4,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/related/editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,4,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,9,[]],[23,5,[]]],null]],null,{\\\"statements\\\":[[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,4,[\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@classNames\\\",\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[\\\"u-btn--cancel\\\",[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[24,[\\\"hasProcessCount\\\"]],[23,4,[\\\"isSystemProcess\\\"]]],null],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],\\\"delete\\\",[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[]],\\\"workflows/items\\\",[23,4,[]],[23,3,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[23,6,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,4,[\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[]],\\\"workflows/items\\\",[23,4,[]],[23,3,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[]],\\\"workflows/items\\\",[23,4,[]],[23,3,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,4,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/items/editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/items/mark-as-closed/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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  let WorkflowsItemsEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('workflows'), _dec3 = Ember.inject.service('date'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._action, _class = class WorkflowsItemsEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor5, this);\n    }\n    setupDirty() {\n      const dirty = this.crud.setupDirty({\n        adapterName: 'workflows/items',\n        component: this,\n        model: this.args.model,\n        resultsProperty: 'dirty'\n      });\n      const isSuccessful = this.args.isSuccessful;\n      dirty.setData('isSuccessful', isSuccessful);\n      dirty.setData('isClosed', true);\n      const nowZ = this.dateService.getNowZ();\n      dirty.setData('dateZClosed', nowZ);\n      if (isSuccessful) {\n        dirty.setData('status', 'successful');\n      } else {\n        dirty.setData('status', 'unsuccessful');\n      }\n      if (this.args.isSuccessful && this.args.workflow._data?.nextWorkflowKey) {\n        const nextWorkflowData = this.workflowsService.getNextWorkflow({\n          dirty: this.dirty,\n          workflows: this.args.workflows || [],\n          nextWorkflowKey: this.args.workflow._data?.nextWorkflowKey\n        });\n        if (RA.isNotNilOrEmpty(nextWorkflowData.workflow)) {\n          dirty.setData('workflowKey', nextWorkflowData.workflow.getData('_key'));\n          if (RA.isNotNilOrEmpty(nextWorkflowData.stage)) {\n            dirty.setData('stageId', nextWorkflowData.stage.getData('stageId'));\n            dirty.set('stage', nextWorkflowData.stage.getData('name'));\n          }\n\n          // reset status when has next status\n          dirty.setData('status', 'open');\n          dirty.setData('isSuccessful', '');\n          dirty.setData('isClosed', false);\n          dirty.setData('dateZClosed', '');\n        }\n      }\n      this.dirty = dirty;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _class);\n});","define(\"client/pods/components/workflows/items/mark-as-closed/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"/+t3RlMQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@isReOpen\\\",\\\"@isSuccessful\\\",\\\"@model\\\",\\\"@workflows\\\",\\\"@isReadonly\\\",\\\"@workflow\\\",\\\"@disabled\\\",\\\"@classNames\\\",\\\"@label\\\"],\\\"statements\\\":[[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@disabled\\\",\\\"@btnClassNames\\\",\\\"@label\\\",\\\"@onSubmit\\\"],[[23,8,[]],[23,9,[]],[23,10,[]],[28,\\\"fn\\\",[[23,0,[\\\"setupDirty\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[11,\\\"data-form-id\\\",[23,0,[\\\"dirty\\\",\\\"instanceId\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@context\\\"],[\\\"reason\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\",\\\"@isRequired\\\"],[\\\"reason\\\",[23,0,[\\\"errors\\\"]],\\\"reason\\\",[23,0,[\\\"dirty\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\",\\\"@autoResize\\\"],[[23,6,[]],4,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"reason\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"or\\\",[[23,2,[]],[28,\\\"and\\\",[[23,3,[]],[23,7,[\\\"_data\\\",\\\"nextWorkflowKey\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@context\\\"],[\\\"nextWorkflow\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"next workflow\\\",[23,0,[\\\"errors\\\"]],\\\"workflowKey\\\",[23,0,[\\\"dirty\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\"],[true,false,true,[23,5,[]],\\\"_data._key\\\",\\\"_data.name\\\",[23,0,[\\\"dirty\\\",\\\"_data\\\",\\\"workflowKey\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\",\\\"@isRequired\\\"],[\\\"stage\\\",[23,0,[\\\"errors\\\"]],\\\"stageId\\\",[23,0,[\\\"dirty\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"dirty\\\",\\\"stage\\\"]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[23,1,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"dirty\\\",\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,0,[\\\"workflowsService\\\",\\\"markItemAsClosed\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"workflowsService\\\",\\\"markItemAsClosed\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"isSuccessful\\\",\\\"isReOpen\\\",\\\"dirty\\\",\\\"onAfter\\\"],[[23,0,[]],[23,3,[]],[23,2,[]],[23,0,[\\\"dirty\\\"]],[23,1,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,4,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/items/mark-as-closed/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/items/mark-as-completed/component\", [\"exports\", \"@glimmer/component\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency-decorators\"], function (_exports, _component, R, RA, _emberConcurrencyDecorators) {\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 WorkflowsItemsMarkAsCompletedComponent = _exports.default = (_dec = Ember.inject.service('auth'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('workflows'), _dec4 = Ember.inject.service, _class = class WorkflowsItemsMarkAsCompletedComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"authService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n    }\n    get currentUserUid() {\n      return this.authService.getUserProp('uid');\n    }\n    get workflowsItemsActivitiesArray() {\n      return R.pipe(R.pathOr([], ['args', 'workflowsItemsActivities']), RA.ensureArray)(this);\n    }\n    *markAsCompleteTask(activity, value) {\n      activity.setData('isComplete', value);\n      return yield this.workflowsService.markActivityAsCompleted.perform({\n        component: this,\n        activity\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"markAsCompleteTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"markAsCompleteTask\"), _class.prototype), _class);\n});","define(\"client/pods/components/workflows/items/mark-as-completed/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kPbw4qdh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"workflowItemActivity\\\",\\\"user\\\",\\\"@isInnerMarkAsCompleted\\\"],\\\"statements\\\":[[2,\\\"ONLY THE PERSON WHO IS ASSIGNED TO THIS SHOULD BE ABLE TO TOGGLE\\\"],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"workflowsItemsActivitiesArray\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[2,\\\" DISPLAY INSIDE WORKFLOW ITEM ACTIVITY \\\"],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"workflowsItemsActivitiesTypes\\\",\\\"attentionRequired\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\",\\\"@onAfter\\\"],[[23,1,[\\\"_data\\\",\\\"salesInvoices\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"markAsCompleteTask\\\"]],[23,1,[]],true],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@label\\\",\\\"@disabled\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[\\\"mark as completed\\\",[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[28,\\\"user/get\\\",[\\\"role\\\"],null],\\\"super\\\"],null],[28,\\\"and\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"creatorUids\\\"]],[23,0,[\\\"currentUserUid\\\"]]],null],[28,\\\"contains\\\",[[23,0,[\\\"currentUserUid\\\"]],[23,1,[\\\"userUids\\\"]]],null]],null],[28,\\\"is-empty\\\",[[23,1,[\\\"userUids\\\"]]],null]],null],false,true],null],[23,1,[\\\"_data\\\",\\\"isComplete\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"workflowsService\\\",\\\"markActivityAsCompleted\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"activity\\\"],[[23,0,[]],[23,1,[]]]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n  \\\"],[2,\\\" DISPLAY OUTSIDE WORKFLOW ITEM ACTIVITY \\\"],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"allowOuterMarkAsCompleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--bold\\\"],[8],[1,[23,1,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"workflowsItemsActivitiesTypes\\\",\\\"attentionRequired\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"workflows/related/editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,1,[]],true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\",\\\"@onAfter\\\"],[[23,1,[\\\"_data\\\",\\\"salesInvoices\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"markAsCompleteTask\\\"]],[23,1,[]],true],null]]]],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"type\\\"]],[24,[\\\"constants\\\",\\\"workflowsItemsActivitiesTypes\\\",\\\"refund\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"workflows/related/editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,1,[]],true]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"documents/payments-status-tag\\\",[],[[\\\"@model\\\",\\\"@onAfter\\\"],[[23,1,[\\\"_data\\\",\\\"salesInvoices\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"markAsCompleteTask\\\"]],[23,1,[]],true],null]]]],[0,\\\"\\\\n\\\\n          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[28,\\\"user/get\\\",[\\\"role\\\"],null],\\\"super\\\"],null],[28,\\\"and\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"creatorUids\\\"]],[23,0,[\\\"currentUserUid\\\"]]],null],[28,\\\"contains\\\",[[23,0,[\\\"currentUserUid\\\"]],[23,1,[\\\"userUids\\\"]]],null]],null],[28,\\\"is-empty\\\",[[23,1,[\\\"userUids\\\"]]],null]],null],false,true],null],\\\"mark as completed\\\",[23,1,[\\\"_data\\\",\\\"isComplete\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"markAsCompleteTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"          \\\"],[5,\\\"elements/element-toggler\\\",[],[[\\\"@disabled\\\",\\\"@label\\\",\\\"@toggleValue\\\",\\\"@onToggle\\\"],[[28,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[28,\\\"user/get\\\",[\\\"role\\\"],null],\\\"super\\\"],null],[28,\\\"and\\\",[[28,\\\"not-eq\\\",[[23,1,[\\\"creatorUids\\\"]],[23,0,[\\\"currentUserUid\\\"]]],null],[28,\\\"contains\\\",[[23,0,[\\\"currentUserUid\\\"]],[23,1,[\\\"userUids\\\"]]],null]],null],[28,\\\"is-empty\\\",[[23,1,[\\\"userUids\\\"]]],null]],null],false,true],null],\\\"mark as completed\\\",[23,1,[\\\"_data\\\",\\\"isComplete\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"markAsCompleteTask\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n        \\\"],[2,\\\"    <div class='u-margin-left--auto'>\\\"],[0,\\\"\\\\n\\\\n        \\\"],[2,\\\"USERS WHO CAN TOGGLE IS_COMPLETED FLAG\\\"],[0,\\\"\\\\n        \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"_data\\\",\\\"users\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"@\\\"],[1,[23,2,[\\\"_data\\\",\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n        \\\"],[2,\\\"    </div>\\\"],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/items/mark-as-completed/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/panels-dash/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import DocsListByMixin from '../../../../mixins/doc-list-by'\n\n  class WorkflowsPanelDashComponent extends _component.default {\n    // crud: service(),\n    // filtersAdapterName: 'emails/filters',\n    // init () {\n    //   this.crud.addLists(this, [\n    //     'emails/lists/menu/notifications'\n    //   ])\n\n    //   this._super(...arguments)\n\n    //   const filters = this.search.setupFilters({\n    //     adapterName: this.filtersAdapterName,\n    //     defaultFiltersData: {\n    //       sort: [{\n    //         by: 'paymentDueDateZ',\n    //         direction: 'ASC'\n    //       }]\n    //     }\n    //   })\n\n    //   this.set('filters', filters)\n\n    //   this.fetchScheduledTask.perform()\n    // },\n\n    // fetchScheduledTask: task(function * () {\n    //   const filters = this.filters\n    //   const results = yield this.listByTask.perform({\n    //     adapterName: 'documents/sales/invoices',\n    //     appendPath: 'emails/payments',\n    //     filters\n    //   })\n\n    //   this.set('results', results)\n    // })\n  }\n  _exports.default = WorkflowsPanelDashComponent;\n});","define(\"client/pods/components/workflows/panels-dash/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"RtUc/HQq\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\n  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/panels-dash/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/panels-display-item/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\"], function (_exports, _component, _emberConcurrencyDecorators) {\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, _dec0, _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  // import * as RA from 'ramda-adjunct'\n  let WorkflowsPanelDisplayItemComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('workflows'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _class = class WorkflowsPanelDisplayItemComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor3, this);\n      _defineProperty(this, \"adapterName\", 'workflows/items/activities/collection');\n      _defineProperty(this, \"filtersAdapterName\", 'workflows/items/activities/collection/filters');\n      _initializerDefineProperty(this, \"filters\", _descriptor4, this);\n      _initializerDefineProperty(this, \"activitiesCollection\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newItemActivityModel\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedActivityType\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isChatVisible\", _descriptor9, this);\n      this.crud.addLists(this, ['date/lists/durations', 'date/lists/hours', 'workflows/lists/items/activities/types']);\n      const workflowItemKey = this.args.model?._data?._key;\n      this.filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          workflowItemKey,\n          sort: [{\n            by: 'timestampZ',\n            direction: 'ASC'\n          }]\n        }\n      });\n      this.setupTask.perform();\n    }\n    get disableManualEdit() {\n      if (this.activitiesCollection.hasAuthorizationType) {\n        return true;\n      }\n      return false;\n    }\n    *setupTask() {\n      const activitiesCollection = yield this.crud.findTask.perform({\n        adapterName: this.adapterName,\n        filters: this.filters,\n        component: this,\n        resultsProperty: ''\n      });\n      this.activitiesCollection = activitiesCollection;\n    }\n    toggleIsChatVisible() {\n      this.isChatVisible = !this.isChatVisible;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"activitiesCollection\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"newItemActivityModel\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedActivityType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isChatVisible\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsChatVisible\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsChatVisible\"), _class.prototype), _class);\n});","define(\"client/pods/components/workflows/panels-display-item/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"ndOqQNgd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"statusProxy\\\",\\\"index\\\",\\\"activity\\\",\\\"@onBack\\\",\\\"@model\\\",\\\"@currentWorkflow\\\",\\\"@isReadonly\\\",\\\"@workflows\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__header-title products-display__name u-header-1\\\"],[8],[0,\\\"\\\\n      \\\"],[1,[23,6,[\\\"_data\\\",\\\"title\\\"]],false],[0,\\\"\\\\n\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"isClosed\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"isSuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-success\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag is-danger\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sidebar-container\\\"],[8],[0,\\\"\\\\n        \\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItemsActivities\\\"]],[[\\\"@context\\\"],[\\\"progress\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"workflows/items/mark-as-closed\\\",[],[[\\\"@classNames\\\",\\\"@isSuccessful\\\",\\\"@label\\\",\\\"@model\\\",\\\"@workflow\\\",\\\"@workflows\\\"],[\\\"is-danger\\\",false,\\\"unsuccessful\\\",[23,6,[]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n          \\\"],[5,\\\"workflows/items/mark-as-closed\\\",[],[[\\\"@disabled\\\",\\\"@classNames\\\",\\\"@isSuccessful\\\",\\\"@label\\\",\\\"@model\\\",\\\"@workflow\\\",\\\"@workflows\\\"],[[23,0,[\\\"disableManualEdit\\\"]],\\\"is-success\\\",true,\\\"successful\\\",[23,6,[]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"isClosed\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"workflows/items/mark-as-closed\\\",[],[[\\\"@classNames\\\",\\\"@isReOpen\\\",\\\"@label\\\",\\\"@model\\\",\\\"@workflow\\\",\\\"@workflows\\\"],[\\\"\\\",true,\\\"workflows_items_status_re-open\\\",[23,6,[]],[23,7,[]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"workflows/items/editor\\\",[],[[\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@workflow\\\",\\\"@model\\\",\\\"@onCancel\\\"],[false,false,true,[23,7,[]],[23,6,[]],[22,\\\"onCloseDialogAction\\\"]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"isClosed\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"workflows-item-activity__container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[\\\"_data\\\",\\\"isSuccessful\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"h2\\\",true],[10,\\\"class\\\",\\\"has-text-success\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"successful\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"            \\\"],[7,\\\"h2\\\",true],[10,\\\"class\\\",\\\"has-text-danger\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"tt\\\",[\\\"unsuccessful\\\"],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n          \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[8],[0,\\\"\\\\n              \\\"],[1,[23,6,[\\\"_data\\\",\\\"reason\\\"]],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n            \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n              \\\"],[1,[28,\\\"dateTime\\\",[[23,6,[\\\"_data\\\",\\\"dateZClosed\\\"]]],null],false],[0,\\\"\\\\n            \\\"],[9],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-container\\\"],[8],[0,\\\"\\\\n\\\"],[0,\\\"            \\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItemsActivities\\\"]],[[\\\"@context\\\"],[\\\"type\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n              \\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflowsItems\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"add activity\\\",[23,0,[\\\"errors\\\"]],\\\"type\\\",[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n                \\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\",\\\"onSelect\\\",\\\"onDeselect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-items-activities-types\\\"]],\\\"list-selector--horizontal\\\",[23,0,[]],\\\"selectedActivityType\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",true,false,[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"newWorkflowItemActivity\\\"]],[28,\\\"hash\\\",null,[[\\\"workflow\\\",\\\"item\\\",\\\"type\\\",\\\"component\\\",\\\"resultsProperty\\\"],[[23,7,[]],[23,6,[]],[23,0,[\\\"selectedActivityType\\\"]],[23,0,[]],\\\"newItemActivityModel\\\"]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"resetNewWorkflowItemActivity\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"resultsProperty\\\",\\\"typeProperty\\\"],[[23,0,[]],\\\"newItemActivityModel\\\",\\\"selectedActivityType\\\"]]]],null]]]],false],[0,\\\"\\\\n              \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n            \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"newItemActivityModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"workflows/items/activities/editor\\\",[],[[\\\"@hasTypeSelector\\\",\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@workflow\\\",\\\"@model\\\",\\\"@onCancel\\\"],[false,[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"resetNewWorkflowItemActivity\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"resultsProperty\\\",\\\"typeProperty\\\"],[[23,0,[]],\\\"newItemActivityModel\\\",\\\"selectedActivityType\\\"]]]],null],true,false,[23,7,[]],[23,0,[\\\"newItemActivityModel\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"resetNewWorkflowItemActivity\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"resultsProperty\\\",\\\"typeProperty\\\"],[[23,0,[]],\\\"newItemActivityModel\\\",\\\"selectedActivityType\\\"]]]],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"activitiesCollection\\\",\\\"byStatus\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"workflows-item-activities-by-status__container\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"h2\\\",true],[8],[0,\\\"\\\\n            \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"status\\\"]]],null],false],[0,\\\"\\\\n          \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"activities\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,4,[\\\"_data\\\",\\\"type\\\"]],\\\"notes\\\"],null]],null,{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"workflows/items/activities/note\\\",[],[[\\\"@activity\\\",\\\"@item\\\",\\\"@isReadonly\\\",\\\"@workflow\\\"],[[23,4,[]],[23,6,[]],[23,8,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"              \\\"],[5,\\\"workflows/items/activities/event\\\",[],[[\\\"@activity\\\",\\\"@item\\\",\\\"@isReadonly\\\",\\\"@workflow\\\"],[[23,4,[]],[23,6,[]],[23,8,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[4]},null],[0,\\\"        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isChatVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar-right\\\"],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"comments/chat-container\\\",null,[[\\\"tab\\\",\\\"type\\\",\\\"isPreview\\\",\\\"master\\\",\\\"metaData\\\"],[[24,[\\\"tab\\\"]],\\\"workflows\\\",true,[23,6,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\"],[\\\"workflowsItems\\\",[23,6,[\\\"_data\\\",\\\"_key\\\"]]]]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[24,[\\\"newItemActivityModel\\\"]]],null,{\\\"statements\\\":[[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n        \\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"tooltipLabel\\\",\\\"icon\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"back_page\\\",\\\"fas fa-arrow-left\\\",[24,[\\\"disabled\\\"]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"layouts/btns-seperator\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@title\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[[23,6,[\\\"_data\\\",\\\"name\\\"]],false,\\\"fas fa-pen\\\",false,[28,\\\"fn\\\",[[23,0,[\\\"crud\\\",\\\"setupDirty\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"component\\\",\\\"resultsProperty\\\"],[\\\"workflows/items\\\",[23,6,[]],[23,0,[]],\\\"dirty\\\"]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n          \\\"],[5,\\\"workflows/items/editor\\\",[],[[\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@workflow\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,1,[]],false,true,[23,7,[]],[23,0,[\\\"dirty\\\"]],[23,1,[]]]]],[0,\\\"\\\\n        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,6,[]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/panels-display-item/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/panels-display/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _component, _emberConcurrencyDecorators, R, RA) {\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;\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 WorkflowsPanelDisplayComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('workflows'), _dec4 = Ember.inject.service, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _class = class WorkflowsPanelDisplayComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dragAndDrop\", _descriptor2, this);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor5, this);\n      _initializerDefineProperty(this, \"workflowData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isSideBarVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor8, this);\n      if (RA.isNotNilOrEmpty(this.args.model?._data?.stages)) {\n        this.setupTask.perform();\n      }\n    }\n    *setupTask() {\n      this.workflowCollection = yield this.crud.findTask.perform({\n        adapterName: 'workflows/stagesCollection',\n        filters: this.args.filters,\n        component: this,\n        resultsProperty: ''\n      });\n    }\n    *updateItemStageIdOnDrop(toStageId, draggedItemKey) {\n      const itemsByStages = this.workflowCollection.byStages || [];\n      const items = R.pipe(R.map(R.prop('items')), R.flatten)(itemsByStages);\n      const itemModel = R.find(R.pathEq(['_data', '_key'], draggedItemKey))(items);\n      const dirty = this.crud.setupDirty({\n        adapterName: 'workflows/items',\n        model: itemModel\n      });\n      dirty.setData('stageId', toStageId);\n      yield this.crud.updateRecordTask.perform({\n        adapterName: 'workflows/items',\n        model: dirty,\n        component: this\n      });\n    }\n    toggleIsSideBarVisible() {\n      this.isSideBarVisible = !this.isSideBarVisible;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dragAndDrop\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"workflowData\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isSideBarVisible\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateItemStageIdOnDrop\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateItemStageIdOnDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsSideBarVisible\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsSideBarVisible\"), _class.prototype), _class);\n});","define(\"client/pods/components/workflows/panels-display/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D+EH40eT\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"stageProxy\\\",\\\"index\\\",\\\"item\\\",\\\"isTooltipVisible\\\",\\\"@tab\\\",\\\"@type\\\",\\\"@currentWorkflow\\\",\\\"@model\\\",\\\"@workflows\\\",\\\"@displayItem\\\"],\\\"statements\\\":[[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[[23,0,[\\\"setupTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n  \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid panel-grid--has-header\\\"],[8],[0,\\\"\\\\n    \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"type\\\"]],\\\"workflows\\\"],null]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"workflows-stages-table\\\"],[8],[0,\\\"\\\\n          \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"workflowCollection\\\",\\\"byStages\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,2,[\\\"isHidden\\\"]]],null,{\\\"statements\\\":[[0,\\\"                \\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@tagName\\\",\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\"],[\\\"td\\\",[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,3,[]]],null],[28,\\\"perform\\\",[[23,0,[\\\"updateItemStageIdOnDrop\\\"]],[23,2,[\\\"stage\\\",\\\"_data\\\",\\\"stageId\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n                  \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"workflows-stages-header\\\"],[8],[0,\\\"\\\\n                    \\\"],[1,[28,\\\"tt\\\",[[23,2,[\\\"stage\\\",\\\"_data\\\",\\\"name\\\"]]],[[\\\"defaultTranslate\\\",\\\"translate\\\"],[true,[28,\\\"if\\\",[[23,2,[\\\"stage\\\",\\\"_data\\\",\\\"translate\\\"]],true,false],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"stage\\\",\\\"_data\\\",\\\"description\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n                        \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n                          \\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-info-circle\\\"]]],false],[0,\\\"\\\\n                        \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,5,[]]]],{\\\"statements\\\":[[0,\\\"                          \\\"],[7,\\\"pre\\\",true],[8],[0,\\\"                            \\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,2,[\\\"stage\\\",\\\"_data\\\",\\\"description\\\"]]]]],false],[0,\\\"                          \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                      \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[23,2,[\\\"count\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n                        \\\"],[1,[28,\\\"number\\\",[[23,2,[\\\"count\\\"]]],null],false],[0,\\\"\\\\n                      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n\\\\n                  \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"items\\\"]]],null,{\\\"statements\\\":[[0,\\\"                      \\\"],[5,\\\"workflows/items/card\\\",[],[[\\\"@workflow\\\",\\\"@workflows\\\",\\\"@item\\\",\\\"@stageIndex\\\",\\\"@displayItem\\\"],[[23,9,[]],[23,10,[]],[23,4,[]],[23,3,[]],[23,11,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\"                  \\\"],[9],[0,\\\"\\\\n                \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2,3]},null],[0,\\\"          \\\"],[9],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"        \\\"],[1,[28,\\\"comments/chat-container\\\",null,[[\\\"tab\\\",\\\"type\\\",\\\"isPreview\\\",\\\"master\\\",\\\"metaData\\\"],[[24,[\\\"tab\\\"]],\\\"messages\\\",true,[23,8,[\\\"_data\\\",\\\"_key\\\"]],[28,\\\"hash\\\",null,[[\\\"resource\\\",\\\"resourceKey\\\"],[\\\"workflowsMessages\\\",[23,8,[\\\"_data\\\",\\\"_key\\\"]]]]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"type\\\"]],\\\"workflows\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[24,[\\\"isSideBarVisible\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar-right\\\"],[8],[0,\\\"\\\\n          \\\"],[5,\\\"workflows/workflow-editor\\\",[],[[\\\"@tab\\\",\\\"@type\\\",\\\"@adapterName\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@isReadonly\\\",\\\"@model\\\"],[[23,6,[]],[23,6,[\\\"type\\\"]],\\\"workflows\\\",false,false,true,[23,8,[]]]]],[0,\\\"\\\\n        \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,8,[\\\"_data\\\",\\\"type\\\"]],\\\"workflows\\\"],null]],null,{\\\"statements\\\":[[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"        \\\\n        \\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-pen\\\",[23,8,[\\\"_data\\\",\\\"isGenerated\\\"]],false,[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"setupWorkflowAsDirty\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"component\\\",\\\"resultsProperty\\\"],[[23,8,[]],[23,0,[]],\\\"dirty\\\"]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"            \\\"],[5,\\\"workflows/workflow-editor\\\",[],[[\\\"@tab\\\",\\\"@type\\\",\\\"@adapterName\\\",\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,6,[]],[23,7,[]],\\\"workflows\\\",[23,1,[]],false,true,[23,0,[\\\"dirty\\\"]],[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"        \\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n      \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n        \\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,9,[]]]]],false],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/panels-display/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/related/editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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  // import { task } from 'ember-concurrency-decorators'\n  let WorkflowsRelatedEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class WorkflowsRelatedEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      this.crud.addLists(this, ['workflows/related/types']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/workflows/related/editor/detail-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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  let WorkflowsRelatedEditorDetailEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('channels/shop/campaigns'), _dec3 = Ember.inject.service('contacts'), _dec4 = Ember.inject.service('documents'), _dec5 = Ember.inject.service('products'), _dec6 = Ember.inject.service('websites'), _class = class WorkflowsRelatedEditorDetailEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"documentsService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor6, this);\n      this.crud.addLists(this, ['workflows/related/types']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"documentsService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/workflows/related/editor/detail-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"WASqcZLF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@related\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isHeader\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"type\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"resource\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@disabled\\\",\\\"@value\\\"],[true,true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-related-types\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,1,[\\\"_data\\\",\\\"resource\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"workflows/related/editor/detail-searcher\\\",[],[[\\\"@related\\\",\\\"@isReadonly\\\"],[[23,1,[]],[23,3,[]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"fas fa-trash\\\",\\\"\\\",[28,\\\"fn\\\",[[23,2,[\\\"removeRelated\\\"]],[23,1,[]]],null],[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/related/editor/detail-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/related/editor/detail-searcher/component\", [\"exports\", \"@glimmer/component\", \"ramda-adjunct\"], function (_exports, _component, RA) {\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 WorkflowsRelatedEditorDetailSearcherComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('channels/shop/campaigns'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('contacts'), _dec6 = Ember.inject.service('documents'), _dec7 = Ember.inject.service('products'), _dec8 = Ember.inject.service('websites'), _class = class WorkflowsRelatedEditorDetailSearcherComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaignsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"contactsService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"documentsService\", _descriptor6, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor7, this);\n      _initializerDefineProperty(this, \"websitesService\", _descriptor8, this);\n      this.crud.addLists(this, ['contacts/lists/relationships']);\n      this.contactsFilters = this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'name',\n            direction: 'ASC'\n          }],\n          status: [this.constants.status.active]\n        }\n      });\n    }\n    get documentTitle() {\n      const related = this?.args?.related || {};\n      const docType = related?._data?.docType || '';\n      const docName = related?._data?.docName || '';\n      if (RA.isNotNilOrEmpty(docType) && RA.isNotNilOrEmpty(docName)) {\n        return `${docType}-${docName}`;\n      }\n      return 'sales-invoices';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaignsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"contactsService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"documentsService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"websitesService\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/workflows/related/editor/detail-searcher/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"7pqBLU0V\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@related\\\",\\\"@isReadonly\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"resource\\\"]],\\\"contacts\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"contacts/tab-container\\\",\\\"contacts\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@filters\\\",\\\"@resultsItemComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\",\\\"@hasPagination\\\",\\\"@onPaginationTask\\\"],[true,\\\"span\\\",true,[23,2,[]],[23,0,[\\\"contactsFilters\\\",\\\"results\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,2,[]],\\\"_data.name\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],\\\"fas fa-address-book\\\",[23,0,[\\\"contactsFilters\\\"]],\\\"contacts/search-results-documents\\\",[23,0,[\\\"contactsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"contactsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"relationship\\\",\\\"resultsProperty\\\",\\\"query\\\",\\\"component\\\",\\\"filters\\\"],[\\\"all\\\",\\\"results\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,0,[]],[23,0,[\\\"contactsFilters\\\"]]]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"loadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"unloadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null],true,[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"resource\\\"]],\\\"campaigns\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"channels/shop/campaigns/tab-container\\\",\\\"campaigns\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,\\\"span\\\",true,[23,2,[]],[23,0,[\\\"campaignsService\\\",\\\"all\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,2,[]],\\\"_data.name\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],\\\"fas fa-bookmark\\\",[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"campaignsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resultsProperty\\\",\\\"query\\\",\\\"component\\\",\\\"global\\\"],[\\\"all\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,0,[]],true]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"loadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"unloadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"resource\\\"]],\\\"websites\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"websites/tab-container\\\",\\\"websites\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,\\\"span\\\",true,[23,2,[]],[23,0,[\\\"websitesService\\\",\\\"all\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,2,[]],\\\"_data.name\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],\\\"fas fa-bookmark\\\",[23,0,[\\\"websitesService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"websitesService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resultsProperty\\\",\\\"query\\\",\\\"component\\\",\\\"global\\\"],[\\\"all\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,0,[]],true]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"loadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"unloadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"resource\\\"]],\\\"products\\\"],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"products/tab-container\\\",\\\"products\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,\\\"span\\\",true,[23,2,[]],[23,0,[\\\"productsService\\\",\\\"all\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,2,[]],\\\"_data.name\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],\\\"fas fa-bookmark\\\",[23,0,[\\\"productsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"productsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resultsProperty\\\",\\\"query\\\",\\\"component\\\",\\\"global\\\"],[\\\"all\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,0,[]],true]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"loadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"unloadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"or\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"resource\\\"]],\\\"documents-public\\\"],null],[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"resource\\\"]],\\\"documents\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[23,0,[\\\"documentTitle\\\"]],[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"sales\\\"],null],[28,\\\"if\\\",[[23,1,[\\\"_data\\\",\\\"docName\\\"]],[23,1,[\\\"_data\\\",\\\"docName\\\"]],\\\"invoices\\\"],null],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@resultsComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,\\\"span\\\",true,[23,2,[]],[28,\\\"get\\\",[[23,0,[\\\"documentsService\\\"]],[23,1,[\\\"_data\\\",\\\"resource\\\"]]],null],\\\"_data._key\\\",\\\"_data.docNo\\\",[23,2,[]],\\\"_data.docNo\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],\\\"fas fa-bookmark\\\",\\\"documents/search-results-documents\\\",[23,0,[\\\"documentsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resultsProperty\\\",\\\"docType\\\",\\\"docName\\\",\\\"query\\\",\\\"component\\\",\\\"global\\\"],[[23,1,[\\\"_data\\\",\\\"resource\\\"]],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]],[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,0,[]],true]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"loadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\",\\\"docType\\\",\\\"docName\\\"],[\\\"_data.resourceKey\\\",\\\"_data.docType\\\",\\\"_data.docName\\\"]]]]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"unloadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\",\\\"docType\\\",\\\"docName\\\"],[\\\"_data.resourceKey\\\",\\\"_data.docType\\\",\\\"_data.docName\\\"]]]]]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"and\\\",[[28,\\\"eq\\\",[[23,1,[\\\"_data\\\",\\\"resource\\\"]],\\\"comment\\\"],null],[23,1,[\\\"_data\\\",\\\"comment\\\",\\\"isPublic\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[28,\\\"and\\\",[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]]],null],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"loadInstructions\\\"],[\\\"comments/tab-container\\\",\\\"customer service\\\",[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,\\\"span\\\",true,[23,2,[]],[23,0,[\\\"productsService\\\",\\\"all\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",[23,2,[]],\\\"_data.name\\\",[28,\\\"concat\\\",[[28,\\\"truncate\\\",[[28,\\\"strip-html\\\",[[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]]],null]],[[\\\"char\\\"],[50]]],\\\" (\\\",[28,\\\"tt\\\",[\\\"comment\\\"],null],\\\")\\\"],null],[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],\\\"fas fa-bookmark\\\",[23,0,[\\\"productsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"productsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resultsProperty\\\",\\\"query\\\",\\\"component\\\",\\\"global\\\"],[\\\"all\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,0,[]],true]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"loadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"unloadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.resourceKey\\\"]]]]]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isDoc\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"helpers/tab-link\\\",[],[[\\\"@hasLink\\\",\\\"@tabOptions\\\"],[[23,1,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"title\\\",\\\"docType\\\",\\\"docName\\\",\\\"loadInstructions\\\"],[\\\"documents/tab-container\\\",[28,\\\"concat\\\",[[23,1,[\\\"_data\\\",\\\"docType\\\"]],\\\"-\\\",[23,1,[\\\"_data\\\",\\\"docName\\\"]]],null],[23,1,[\\\"_data\\\",\\\"docType\\\"]],[23,1,[\\\"_data\\\",\\\"docName\\\"]],[28,\\\"hash\\\",null,[[\\\"find\\\"],[[28,\\\"hash\\\",null,[[\\\"id\\\"],[[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]]]]]]]]]]]]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@readonly\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@hasSelectedIcon\\\",\\\"@resultsComponent\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[true,\\\"span\\\",true,[23,2,[]],[28,\\\"get\\\",[[23,0,[\\\"documentsService\\\"]],[23,1,[\\\"_data\\\",\\\"resource\\\"]]],null],\\\"_data._key\\\",\\\"_data.docNo\\\",[23,2,[]],\\\"_data.docNo\\\",[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,1,[\\\"_data\\\",\\\"resourceKey\\\"]],\\\"fas fa-bookmark\\\",\\\"documents/search-results-documents\\\",[23,0,[\\\"documentsService\\\",\\\"searchInputTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"documentsService\\\",\\\"searchInputTask\\\"]],[28,\\\"hash\\\",null,[[\\\"resultsProperty\\\",\\\"docType\\\",\\\"docName\\\",\\\"query\\\",\\\"component\\\",\\\"global\\\"],[[23,1,[\\\"_data\\\",\\\"resource\\\"]],[23,1,[\\\"docType\\\"]],[23,1,[\\\"docName\\\"]],[23,1,[\\\"_data\\\",\\\"resourceValue\\\"]],[23,0,[]],true]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"loadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\",\\\"docType\\\",\\\"docName\\\"],[\\\"_data.resourceKey\\\",\\\"_data.docType\\\",\\\"_data.docName\\\"]]]]]]],null],[28,\\\"fn\\\",[[23,1,[\\\"unloadSelected\\\"]],[28,\\\"hash\\\",null,[[\\\"props\\\"],[[28,\\\"hash\\\",null,[[\\\"_key\\\",\\\"docType\\\",\\\"docName\\\"],[\\\"_data.resourceKey\\\",\\\"_data.docType\\\",\\\"_data.docName\\\"]]]]]]],null]]]],[0,\\\"\\\\n  \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/related/editor/detail-searcher/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/related/editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"NVQ5JIbv\",\n    \"block\": \"{\\\"symbols\\\":[\\\"related\\\",\\\"related\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[\\\"_data\\\",\\\"related\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"related\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"workflows/related/editor/detail-searcher\\\",[],[[\\\"@related\\\",\\\"@isReadonly\\\"],[[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table is-form-content table-form u-full-width\\\"],[8],[0,\\\"\\\\n      \\\"],[5,\\\"workflows/related/editor/detail-editor\\\",[],[[\\\"@isHeader\\\",\\\"@model\\\",\\\"@isReadonly\\\"],[true,[23,4,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[\\\"_data\\\",\\\"related\\\"]]],null,{\\\"statements\\\":[[0,\\\"        \\\"],[5,\\\"workflows/related/editor/detail-editor\\\",[],[[\\\"@model\\\",\\\"@related\\\",\\\"@isReadonly\\\"],[[23,4,[]],[23,1,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"    \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"add\\\",\\\"u-margin-top-10\\\",\\\"fas fa-plus\\\",[23,3,[]],[28,\\\"fn\\\",[[23,4,[\\\"addRelated\\\"]],\\\"\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/related/editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/search-filters/component\", [\"exports\", \"client/mixins/crud\", \"client/pods/components/workflows/mixins/emails-list-by\"], function (_exports, _crud, _emailsListBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_crud.default, _emailsListBy.default, {\n    crud: Ember.inject.service(),\n    tagName: '',\n    init() {\n      this.crud.addLists(this, ['emails/lists/filters/search',\n      // 'emails/lists/filters/status',\n      'emails/lists/filters/sort', 'filters/count', 'filters/sortDirection']);\n      this._super(...arguments);\n    }\n\n    // actions: {\n    //   listByDate (onHideDropdown, dateZ, date) {\n    //     return this.get('listByTask').perform({ date, dateZ, resultsToggle: 'resultsToggle' }, onHideDropdown)\n    //   }\n    // }\n  });\n});","define(\"client/pods/components/workflows/search-filters/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"b/U/7wyB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onHideDropdown\\\"],\\\"statements\\\":[[4,\\\"lists/list-btn\\\",null,[[\\\"list\\\",\\\"icon\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-lists-filters-search\\\"]],\\\"fas fa-filter\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\"],[7,\\\"legend\\\",true],[10,\\\"class\\\",\\\"list-results__legend\\\"],[8],[1,[28,\\\"tt\\\",[\\\"list all\\\"],null],false],[9],[0,\\\"\\\\n\\\\t\\\\n\\\\t\\\"],[1,[28,\\\"elements/element-btn\\\",null,[[\\\"label\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[\\\"latest\\\",[24,[\\\"listByTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[24,[\\\"listByTask\\\"]],[28,\\\"hash\\\",null,[[\\\"filters\\\"],[[24,[\\\"filters\\\"]]]]],[23,1,[]]],null]]]],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"elements/date-input\\\",[],[[\\\"@target\\\",\\\"@model\\\",\\\"@date\\\",\\\"@onSelectDate\\\",\\\"@isRunning\\\"],[\\\"filterDateZ\\\",[23,0,[]],[23,0,[\\\"filterDateZ\\\"]],[28,\\\"action\\\",[[23,0,[]],\\\"listByDate\\\",[23,1,[]],[23,0,[\\\"filterDateZ\\\"]]],null],[24,[\\\"onListByTask\\\",\\\"isRunning\\\"]]]]],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"helpers/divider-h\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"customBlock\\\"],[true]],{\\\"statements\\\":[[4,\\\"forms/form-cell\\\",null,[[\\\"label\\\"],[\\\"number of results\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-dropdown\\\",null,[[\\\"isBtn\\\",\\\"readonly\\\",\\\"translate\\\",\\\"list\\\",\\\"itemValueKey\\\",\\\"itemLabelKey\\\",\\\"value\\\"],[true,true,false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"filters-count\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[24,[\\\"filters\\\",\\\"_data\\\",\\\"count\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"forms/form-input-row\\\",null,[[\\\"label\\\"],[\\\"search filters\\\"]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[1,[28,\\\"lists/list-selector\\\",null,[[\\\"translate\\\",\\\"list\\\",\\\"classNames\\\",\\\"model\\\",\\\"valueKey\\\",\\\"optionValueKey\\\",\\\"optionLabelKey\\\",\\\"itemClassNames\\\",\\\"allowEmpty\\\",\\\"multiSelect\\\"],[true,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"emails-lists-filters-search\\\"]],\\\"list-selector\\\",[24,[\\\"filters\\\"]],\\\"_data.match\\\",\\\"_data.value\\\",\\\"_data.label\\\",\\\"list-selector__item list-selector__item--horizontal\\\",false,true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\"],[1,[22,\\\"helpers/divider-h\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/search-filters/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/status-tags/component\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    sorted: Ember.computed('events.[]', function () {\n      const events = this.events;\n      const sorted = R.pipe(R.groupBy(event => {\n        return event.event;\n      }), R.map(group => {\n        return {\n          count: R.length(group),\n          last: R.last(group) || {},\n          all: group\n        };\n      }), R.values, R.reject(R.isNil), R.sortBy(R.path(['last', 'timestampZ'])))(events);\n      return sorted;\n    }),\n    hasEvents: Ember.computed('sorted.[]', function () {\n      const sorted = this.sorted || [];\n      if (sorted.length > 0) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/components/workflows/status-tags/status-tag/component\", [\"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 = Ember.Component.extend({\n    tagName: '',\n    statusClass: Ember.computed('data', function () {\n      const event = this.get('data.last.event');\n      if (event === 'delivered') {\n        return 'is-info';\n      }\n      if (event === 'opened') {\n        return 'is-success';\n      }\n      return 'is-warning';\n    })\n  });\n});","define(\"client/pods/components/workflows/status-tags/status-tag/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"sZup1Y5B\",\n    \"block\": \"{\\\"symbols\\\":[\\\"isTooltipVisible\\\",\\\"event\\\"],\\\"statements\\\":[[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"tag \\\",[22,\\\"statusClass\\\"]]]],[8],[0,\\\"\\\\n\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"email_event_\\\",[24,[\\\"data\\\",\\\"last\\\",\\\"event\\\"]]],null]],null],false],[0,\\\" @ \\\"],[1,[28,\\\"dateTime\\\",[[24,[\\\"data\\\",\\\"last\\\",\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"gt\\\",[[24,[\\\"data\\\",\\\"count\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"info-badge\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[24,[\\\"data\\\",\\\"count\\\"]],false],[0,\\\" \\\"],[1,[28,\\\"tt\\\",[\\\"no_of_times\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,1,[]]]],{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"data\\\",\\\"all\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[[28,\\\"concat\\\",[\\\"email_event_\\\",[23,2,[\\\"event\\\"]]],null]],null],false],[0,\\\" @ \\\"],[1,[28,\\\"dateTime\\\",[[23,2,[\\\"timestampZ\\\"]]],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/status-tags/status-tag/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/status-tags/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cgnxrgaK\",\n    \"block\": \"{\\\"symbols\\\":[\\\"group\\\"],\\\"statements\\\":[[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"u-desc u-desc--mini\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"hasEvents\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[24,[\\\"sorted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"emails/status-tags/status-tag\\\",null,[[\\\"data\\\"],[[23,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"tag\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"tt\\\",[\\\"email_queued\\\"],null],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/status-tags/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/tab-container/component\", [\"exports\", \"@glimmer/component\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _component, _emberConcurrencyDecorators, R) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 WorkflowsTabContainerComponent = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember.inject.service('workflows'), _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _class = class WorkflowsTabContainerComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dragAndDrop\", _descriptor4, this);\n      _initializerDefineProperty(this, \"search\", _descriptor5, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor6, this);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor7, this);\n      _initializerDefineProperty(this, \"adapterName\", _descriptor8, this);\n      _initializerDefineProperty(this, \"currentWorkflow\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor0, this);\n      _initializerDefineProperty(this, \"filters\", _descriptor1, this);\n      _initializerDefineProperty(this, \"filtersWorkflows\", _descriptor10, this);\n      _initializerDefineProperty(this, \"workflows\", _descriptor11, this);\n      _defineProperty(this, \"adapterNameWorkflows\", 'workflows/filters');\n      _defineProperty(this, \"filtersAdapterName\", 'workflows/stagesCollection/filters');\n      _initializerDefineProperty(this, \"newModel\", _descriptor12, this);\n      _initializerDefineProperty(this, \"newItemModel\", _descriptor13, this);\n      _initializerDefineProperty(this, \"showSideBar\", _descriptor14, this);\n      _initializerDefineProperty(this, \"status\", _descriptor15, this);\n      _initializerDefineProperty(this, \"userKey\", _descriptor16, this);\n      this.crud.addLists(this, ['users/related', 'workflows/lists/menu', 'workflows/lists/items/statuses']);\n      this.setupFilters();\n      this.fetchDefaultDataTask.perform();\n    }\n    get allowedStatuses() {\n      const statuses = this.crud.lists['workflows-lists-items-statuses'] || [];\n      if (this.currentWorkflow) {\n        const hasNextWorkflowKey = this.currentWorkflow?._data?.nextWorkflowKey;\n        if (hasNextWorkflowKey) {\n          return R.reject(R.pathEq(['_data', 'value'], 'successful'))(statuses);\n        }\n      }\n      return statuses;\n    }\n    setupFilters() {\n      this.filters = this.search.setupFilters({\n        adapterName: this.filtersAdapterName,\n        defaultFiltersData: {\n          status: ['open'],\n          users: [],\n          sort: [{\n            by: 'timestampZ',\n            direction: 'ASC'\n          }]\n        }\n      });\n      this.filtersWorkflows = this.search.setupFilters({\n        adapterName: this.adapterNameWorkflows,\n        resultsProperty: 'results'\n      });\n    }\n    *fetchDefaultDataTask() {\n      yield this.crud.searchRecordsTask.perform({\n        adapterName: this.adapterName,\n        appendPath: '/type/workflows',\n        filters: this.filtersWorkflows,\n        component: this\n      });\n    }\n    *onSearchInputTask(query) {\n      if (!query) {\n        return yield this.fetchDefaultDataTask.perform();\n      }\n      return yield this.crud.searchInputTask.perform({\n        adapterName: this.adapterName,\n        appendPath: '/type/workflows',\n        filters: this.filtersWorkflows,\n        component: this\n      });\n    }\n\n    // @action\n    // dash (model, results) {\n    //   // const filters = this.filters\n    //   // if (RA.isNilOrEmpty(filters.results)) {\n    //   //   const adapterName = this.adapterName\n    //   //   filters.setData('query', '')\n    //   //   this.fetchDefaultDataTask.perform({ adapterName, filters })\n    //   // }\n\n    //   const subTabOptions = {\n    //     component: 'workflows/panels-dash'\n    //   }\n    //   return this.tabsManager.replaceSubTab(this.args.tab, subTabOptions)\n    // }\n\n    display(workflow) {\n      const workflowKey = workflow?._data?._key;\n      this.filters.setData('workflowKey', workflowKey);\n      this.filters.setData('status', [this.status]);\n      const subTabOptions = {\n        component: 'workflows/panels-display',\n        model: workflow\n      };\n      this.currentWorkflow = workflow;\n      this.showSideBar = false;\n      return this.tabsManager.replaceSubTab(this.args.tab, subTabOptions);\n    }\n    displayItem(item) {\n      const subTabOptions = {\n        component: 'workflows/panels-display-item',\n        model: item\n      };\n      return this.tabsManager.replaceSubTab(this.args.tab, subTabOptions);\n    }\n    updateWorkflowIndexesOnDrop(indexStart, indexEnd, results) {\n      let reIndexBlogs;\n      if (indexStart > indexEnd) {\n        reIndexBlogs = R.slice(indexEnd, R.inc(indexStart))(results);\n      } else {\n        reIndexBlogs = R.slice(indexStart, R.inc(indexEnd))(results);\n      }\n      this.crud.adapterCallTask.perform('updateIndexes', {\n        adapterName: 'workflows/batch',\n        appendPath: '/indexes',\n        model: reIndexBlogs\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dragAndDrop\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"adapterName\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'workflows';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"currentWorkflow\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"filtersWorkflows\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"workflows\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"newModel\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"newItemModel\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"showSideBar\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"status\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'open';\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"userKey\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchDefaultDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDefaultDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSearchInputTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"onSearchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"display\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"display\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayItem\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"displayItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateWorkflowIndexesOnDrop\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"updateWorkflowIndexesOnDrop\"), _class.prototype), _class);\n});","define(\"client/pods/components/workflows/tab-container/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"kN/voNIo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"subTab\\\",\\\"workflow\\\",\\\"isTooltipVisible\\\",\\\"onCloseDialogAction\\\",\\\"tabsHeaderComponent\\\",\\\"isOverflowMenu\\\",\\\"onToggleOverflowMenu\\\",\\\"onCloseDialogAction\\\",\\\"onCloseDialogAction\\\",\\\"@tab\\\"],\\\"statements\\\":[[5,\\\"layouts/tabs/grid\\\",[],[[\\\"@tab\\\",\\\"@parentComponent\\\"],[[23,10,[]],[23,0,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\\t\\\"],[5,\\\"layouts/tabs/header\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n    \\\"],[5,\\\"layouts/tabs/header/left\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@hasToggleIcon\\\",\\\"@toggleOnIconClassName\\\",\\\"@toggleOffIconClassName\\\",\\\"@isToggler\\\",\\\"@translate\\\",\\\"@toggleIsOn\\\",\\\"@hasToggleIconRight\\\",\\\"@label\\\"],[true,\\\"fas fa-angle-double-left\\\",\\\"fas fa-angle-double-right\\\",true,[28,\\\"if\\\",[[23,0,[\\\"currentWorkflow\\\",\\\"_data\\\",\\\"translate\\\"]],true,false],null],[23,0,[\\\"showSideBar\\\"]],false,[23,0,[\\\"currentWorkflow\\\",\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"hide-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[\\\"workflow\\\",\\\"fas fa-plus\\\",false,[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"newWorkflow\\\"]],[28,\\\"hash\\\",null,[[\\\"type\\\",\\\"workflow\\\",\\\"workflows\\\",\\\"component\\\",\\\"resultsProperty\\\"],[[23,10,[\\\"type\\\"]],[23,0,[\\\"currentWorkflow\\\"]],[23,0,[\\\"filtersWorkflows\\\",\\\"results\\\"]],[23,0,[]],\\\"newModel\\\"]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"newModel\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/workflow-editor\\\",[],[[\\\"@tab\\\",\\\"@type\\\",\\\"@adapterName\\\",\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,10,[]],[23,10,[\\\"type\\\"]],\\\"workflows\\\",[23,9,[]],true,false,[23,0,[\\\"newModel\\\"]],[23,9,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[9]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[5,\\\"layouts/tabs/header/right\\\",[],[[\\\"@component\\\",\\\"@resource\\\",\\\"@tabsHeaderComponent\\\",\\\"@onToggleOverflowMenu\\\",\\\"@isOverflowMenu\\\"],[[23,0,[]],\\\"workflows\\\",[23,5,[]],[23,7,[]],[23,6,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"currentWorkflow\\\",\\\"_data\\\",\\\"stages\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"filters\\\",\\\"_data\\\",\\\"status\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-dropdown\\\",[],[[\\\"@isBtn\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@value\\\",\\\"@onSelect\\\"],[true,true,[23,0,[\\\"allowedStatuses\\\"]],\\\"_data.value\\\",\\\"_data.label\\\",[23,0,[\\\"status\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]],[23,0,[\\\"currentWorkflow\\\"]]],null]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"layouts/btns-group\\\",[[12,\\\"class\\\",\\\"show-when-overflow\\\"]],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[[12,\\\"fdreswqs\\\",\\\"\\\"]],[[\\\"@label\\\",\\\"@modalDialogTitle\\\",\\\"@translate\\\",\\\"@modalDialogTitleTranslate\\\",\\\"@icon\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"currentWorkflow\\\",\\\"_data\\\",\\\"name\\\"]],[23,0,[\\\"currentWorkflow\\\",\\\"_data\\\",\\\"name\\\"]],[28,\\\"if\\\",[[23,0,[\\\"currentWorkflow\\\",\\\"_data\\\",\\\"translate\\\"]],true,false],null],false,\\\"fas fa-plus\\\",false,[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"newWorkflowItem\\\"]],[28,\\\"hash\\\",null,[[\\\"workflow\\\",\\\"component\\\",\\\"resultsProperty\\\"],[[23,0,[\\\"currentWorkflow\\\"]],[23,0,[]],\\\"newItemModel\\\"]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/items/editor\\\",[],[[\\\"@tab\\\",\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@workflow\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,10,[]],[23,8,[]],true,false,[23,0,[\\\"currentWorkflow\\\"]],[23,0,[\\\"newItemModel\\\"]],[23,8,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[8]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[5,6,7]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/sidebar\\\",[],[[\\\"@isLeft\\\",\\\"@showSidebar\\\",\\\"@toggleSidebar\\\"],[true,[23,0,[\\\"showSideBar\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"applicationService\\\",\\\"toggleModelPath\\\"]],[23,0,[]],\\\"showSideBar\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sidebar-container u-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@autofocus\\\",\\\"@isRunning\\\",\\\"@isSearchBar\\\",\\\"@onSubmit\\\",\\\"@placeholder\\\",\\\"@value\\\"],[true,[23,0,[\\\"onSearchInputTask\\\",\\\"isRunning\\\"]],true,[28,\\\"perform\\\",[[23,0,[\\\"onSearchInputTask\\\"]],[24,[\\\"query\\\"]]],null],\\\"workflows\\\",[23,0,[\\\"filtersWorkflows\\\",\\\"_data\\\",\\\"query\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@classNames\\\",\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\"],[\\\"pagination-controls-container--small\\\",[23,0,[\\\"filtersWorkflows\\\"]],[23,0,[\\\"filtersWorkflows\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],false]]],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"filtersWorkflows\\\",\\\"results\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,2,[\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/drop-container\\\",[],[[\\\"@classNames\\\",\\\"@tagName\\\",\\\"@dropPosition\\\",\\\"@droppable\\\",\\\"@onDragOver\\\",\\\"@onDrop\\\"],[\\\"u-padding-3\\\",\\\"div\\\",[23,0,[\\\"dragAndDrop\\\",\\\"toDropPosition\\\"]],true,[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragOver\\\"]],[23,2,[\\\"_data\\\",\\\"index\\\"]]],null],[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDropWithIndexOld\\\"]],[23,2,[\\\"_data\\\",\\\"index\\\"]],[23,0,[\\\"filtersWorkflows\\\",\\\"results\\\"]],\\\"_data.index\\\",[23,0,[\\\"updateWorkflowIndexesOnDrop\\\"]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/drag-container\\\",[],[[\\\"@onDragStart\\\",\\\"@draggable\\\",\\\"@data\\\"],[[28,\\\"fn\\\",[[23,0,[\\\"dragAndDrop\\\",\\\"onDragStart\\\"]],[23,2,[\\\"_data\\\",\\\"index\\\"]]],null],true,[23,2,[\\\"_data\\\",\\\"index\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/workflow-btn\\\",[],[[\\\"@isRunning\\\",\\\"@model\\\",\\\"@onSubmit\\\"],[[23,0,[\\\"crud\\\",\\\"findTask\\\",\\\"isRunning\\\"]],[23,2,[]],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]],[23,2,[]],\\\"open\\\",[23,0,[\\\"userKey\\\"]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-btn-with-modal-dialog\\\",[],[[\\\"@label\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@closeOnOverlayClick\\\",\\\"@onSubmit\\\"],[\\\"\\\",\\\"fas fa-pen\\\",[23,2,[\\\"_data\\\",\\\"isGenerated\\\"]],false,[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"setupWorkflowAsDirty\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"component\\\",\\\"resultsProperty\\\"],[[23,2,[]],[23,0,[]],\\\"dirty\\\"]]]],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"dirty\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/workflow-editor\\\",[],[[\\\"@tab\\\",\\\"@type\\\",\\\"@adapterName\\\",\\\"@onCloseDialogAction\\\",\\\"@isNew\\\",\\\"@isEditing\\\",\\\"@model\\\",\\\"@onCancel\\\"],[[23,10,[]],[23,10,[\\\"type\\\"]],\\\"workflows\\\",[23,4,[]],false,true,[23,0,[\\\"dirty\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"description\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/info-tooltip\\\",[],[[\\\"@customBlock\\\"],[true]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/element-icon\\\",null,[[\\\"icon\\\"],[\\\"fas fa-info-circle\\\"]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"helpers/info-tooltip-content\\\",null,[[\\\"isViewable\\\"],[[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"helpers/pre-line\\\",null,[[\\\"value\\\"],[[23,2,[\\\"_data\\\",\\\"description\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"helpers/pagination-controls\\\",[],[[\\\"@classNames\\\",\\\"@filters\\\",\\\"@list\\\",\\\"@onPaginationTask\\\",\\\"@showPageNumbers\\\"],[\\\"pagination-controls-container--small\\\",[23,0,[\\\"filtersWorkflows\\\"]],[23,0,[\\\"filtersWorkflows\\\",\\\"results\\\"]],[23,0,[\\\"crud\\\",\\\"paginateSearchRecordsTask\\\"]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\"],[5,\\\"layouts/tabs/grid/content\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"helpers/is-loading\\\",null,[[\\\"isRunning\\\"],[[24,[\\\"loadTabTask\\\",\\\"isRunning\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\"],[5,\\\"tabs/for-each\\\",[],[[\\\"@tabs\\\"],[[23,10,[\\\"subTabs\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"component\\\",[[23,1,[\\\"component\\\"]]],[[\\\"tab\\\",\\\"type\\\",\\\"model\\\",\\\"filters\\\",\\\"workflows\\\",\\\"currentWorkflow\\\",\\\"displayItem\\\",\\\"onBack\\\"],[[23,1,[]],[23,10,[\\\"type\\\"]],[23,1,[\\\"model\\\"]],[24,[\\\"filters\\\"]],[23,0,[\\\"filtersWorkflows\\\",\\\"results\\\"]],[24,[\\\"currentWorkflow\\\"]],[23,0,[\\\"displayItem\\\"]],[28,\\\"fn\\\",[[23,0,[\\\"display\\\"]],[24,[\\\"currentWorkflow\\\"]]],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/tab-container/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/workflow-btn/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class WorkflowsWorkflowBtnComponent extends _component.default {\n\n    // dispatchProcessCount: computed('dispatchProcessesByCount._data.processes.@each.count', 'dispatchProcess._data.code', function () {\n    //   const dispatchProcessesByCount = this.dispatchProcessesByCount\n    //   if (dispatchProcessesByCount) {\n    //     const code = this.get('dispatchProcess._data.code')\n    //     return dispatchProcessesByCount.getData(code) || 0\n    //   }\n    //   return 0\n    // }),\n\n    // isEditable: computed('dispatchProcess._data._key', 'dispatchProcessCount', function () {\n    //   if (this.get('dispatchProcess._data._key')) {\n    //     return true\n    //   }\n    //   return false\n    // }),\n\n    // hasProcessCount: computed('dispatchProcess._data._key', 'dispatchProcessCount', function () {\n    //   if (this.dispatchProcessCount > 0) {\n    //     return true\n    //   }\n\n    //   return false\n    // })\n  }\n  _exports.default = WorkflowsWorkflowBtnComponent;\n});","define(\"client/pods/components/workflows/workflow-btn/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"2p4tky2z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@model\\\",\\\"@btnClassNames\\\",\\\"@dispatchProcessCount\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,2,[\\\"isDeleted\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@translate\\\",\\\"@classNames\\\",\\\"@hasBadge\\\",\\\"@badge\\\",\\\"@onSubmit\\\",\\\"@isRunning\\\"],[[23,2,[\\\"_data\\\",\\\"name\\\"]],[28,\\\"if\\\",[[23,2,[\\\"_data\\\",\\\"translate\\\"]],true,false],null],[23,3,[]],[28,\\\"isGreaterThan\\\",[[24,[\\\"dispatchProcessCount\\\"]],0],null],[23,4,[]],[23,5,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[24,[\\\"isEditable\\\"]]],null,{\\\"statements\\\":[[4,\\\"elements/element-btn-with-modal-dialog\\\",null,[[\\\"icon\\\",\\\"closeOnOverlayClick\\\",\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"fas fa-pen fa-xs\\\",false,[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"name\\\"]],[28,\\\"if\\\",[[24,[\\\"dispatchProcess\\\",\\\"_data\\\",\\\"translate\\\"]],true,false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"dispatch/processes-editor\\\",null,[[\\\"adapterName\\\",\\\"model\\\",\\\"hasProcessCount\\\",\\\"onCloseDialogAction\\\",\\\"isEditing\\\"],[\\\"dispatch/lists/processes\\\",[24,[\\\"dispatchProcess\\\"]],[24,[\\\"hasProcessCount\\\"]],[23,1,[]],true]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/workflow-btn/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/workflow-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\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  let WorkflowsWorkflowEditorComponent = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('users'), _dec3 = Ember.inject.service('workflows'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _class = class WorkflowsWorkflowEditorComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"usersService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"workflowsService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor6, this);\n      this.crud.addLists(this, ['users/related', 'workflows/lists/tags']);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"workflowsService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/workflows/workflow-editor/stages-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 WorkflowsWorkflowEditorStagesEditorComponent = _exports.default = (_dec = Ember.inject.service, _class = class WorkflowsWorkflowEditorStagesEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/workflows/workflow-editor/stages-editor/detail-editor/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 WorkflowsWorkflowEditorStagesEditorDetailEditorComponent = _exports.default = (_dec = Ember.inject.service, _class = class WorkflowsWorkflowEditorStagesEditorDetailEditorComponent extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/components/workflows/workflow-editor/stages-editor/detail-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"oCDCDnUV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@stage\\\",\\\"@model\\\",\\\"@isReadonly\\\",\\\"@isHeader\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"stage\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[1,[28,\\\"tt\\\",[\\\"description\\\"],null],false],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"th\\\",true],[8],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n\\\"],[0,\\\"    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,3,[]],[28,\\\"tt\\\",[\\\"required\\\"],null],[23,1,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n      \\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@inputPvtClassNames\\\",\\\"@readonly\\\",\\\"@value\\\",\\\"@autoResize\\\"],[\\\"u-full-width\\\",[23,3,[]],[23,1,[\\\"_data\\\",\\\"description\\\"]],true]]],[0,\\\"\\\\n    \\\"],[9],[0,\\\"\\\\n    \\\\n\\\"],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n        \\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@icon\\\",\\\"@label\\\",\\\"@onSubmit\\\",\\\"@disabled\\\"],[\\\"fas fa-trash\\\",\\\"\\\",[28,\\\"fn\\\",[[23,2,[\\\"removeStage\\\"]],[23,1,[]]],null],[23,3,[]]]]],[0,\\\"\\\\n      \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/workflow-editor/stages-editor/detail-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/workflow-editor/stages-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"qcCWn6hs\",\n    \"block\": \"{\\\"symbols\\\":[\\\"stage\\\",\\\"@isReadonly\\\",\\\"@model\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,3,[\\\"_data\\\",\\\"stages\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"u-table table-form is-form-content\\\"],[8],[0,\\\"\\\\n    \\\"],[5,\\\"workflows/workflow-editor/stages-editor/detail-editor\\\",[],[[\\\"@isHeader\\\",\\\"@model\\\",\\\"@isReadonly\\\"],[true,[23,3,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[\\\"_data\\\",\\\"stages\\\"]]],null,{\\\"statements\\\":[[0,\\\"      \\\"],[5,\\\"workflows/workflow-editor/stages-editor/detail-editor\\\",[],[[\\\"@model\\\",\\\"@stage\\\",\\\"@isReadonly\\\"],[[23,3,[]],[23,1,[]],[23,2,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"  \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"elements/element-btn\\\",[],[[\\\"@label\\\",\\\"@classNames\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@onSubmit\\\"],[\\\"add\\\",\\\"u-margin-top-10\\\",\\\"fas fa-plus\\\",[23,2,[]],[28,\\\"fn\\\",[[23,3,[\\\"addStage\\\"]],\\\"\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/workflow-editor/stages-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/components/workflows/workflow-editor/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"peG9rhTS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"onCloseDialogAction\\\",\\\"@onCloseDialogAction\\\",\\\"@model\\\",\\\"@isEditing\\\",\\\"@onCancel\\\",\\\"@isReadonly\\\",\\\"@type\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid\\\"],[8],[0,\\\"\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__sidebar\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sidebar-container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[],[[],[]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"tags\\\",[23,0,[\\\"errors\\\"]],\\\"tags\\\",\\\"workflows\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-tags__container\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-tags\\\",[],[[\\\"@list\\\",\\\"@translate\\\",\\\"@value\\\",\\\"@optionValueKey\\\"],[[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-tags\\\"]],false,[23,3,[\\\"_data\\\",\\\"tags\\\"]],\\\"_data._key\\\"]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-btn\\\",[],[[\\\"@disabled\\\",\\\"@icon\\\"],[[23,6,[]],\\\"fas fa-tags\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-selector\\\",[],[[\\\"@hasSearch\\\",\\\"@adapterName\\\",\\\"@legend\\\",\\\"@tab\\\",\\\"@translate\\\",\\\"@list\\\",\\\"@model\\\",\\\"@multiSelect\\\",\\\"@optionValueKey\\\",\\\"@valueKey\\\",\\\"@addItemComponent\\\",\\\"@addItemOptions\\\",\\\"@allowEmpty\\\"],[true,\\\"workflows/lists/tags\\\",\\\"tags\\\",[22,\\\"tab\\\"],false,[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"workflows-lists-tags\\\"]],[23,3,[]],false,\\\"_data._key\\\",\\\"_data.tags\\\",\\\"tags/tags-editor\\\",[28,\\\"hash\\\",null,[[\\\"modalDialogTitle\\\",\\\"modalDialogTitleTranslate\\\"],[\\\"tags\\\",true]]],true]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflows\\\"]],[[\\\"@context\\\"],[\\\"users\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@documentationResource\\\"],[\\\"assign to\\\",[23,0,[\\\"errors\\\"]],\\\"users\\\",\\\"workflows\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"users/users-selector\\\",null,[[\\\"readonly\\\",\\\"disabled\\\",\\\"adapterName\\\",\\\"filtersName\\\",\\\"salesPersons\\\",\\\"model\\\",\\\"list\\\",\\\"isSingleSelect\\\",\\\"onAssignSalesPerson\\\",\\\"onUnassignSalesPerson\\\"],[[23,6,[]],[23,6,[]],\\\"users/related\\\",\\\"users/related/filters\\\",[23,3,[\\\"_data\\\",\\\"users\\\"]],[23,3,[]],[23,0,[\\\"crud\\\",\\\"lists\\\",\\\"users-related\\\"]],false,[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"assign\\\"]],[23,3,[]],\\\"_data.users\\\"],null],[28,\\\"fn\\\",[[23,0,[\\\"usersService\\\",\\\"unassign\\\"]],[23,3,[]],\\\"_data.users\\\"],null]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflows\\\"]],[[\\\"@context\\\"],[\\\"related\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"related\\\",[23,0,[\\\"errors\\\"]],\\\"related\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/related/editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,3,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\\t\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"panel-grid__content\\\"],[8],[0,\\\"\\\\n\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflows\\\"]],[[\\\"@context\\\"],[\\\"settings\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflows\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"name\\\",[23,0,[\\\"errors\\\"]],\\\"name\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-input\\\",[],[[\\\"@readonly\\\",\\\"@autofocus\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,6,[]],true,[28,\\\"tt\\\",[\\\"required\\\"],null],[23,3,[\\\"_data\\\",\\\"name\\\"]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflows\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"description\\\",[23,0,[\\\"errors\\\"]],\\\"description\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/element-textarea\\\",[],[[\\\"@readonly\\\",\\\"@rows\\\",\\\"@translatedPlaceholder\\\",\\\"@value\\\"],[[23,6,[]],4,[28,\\\"tt\\\",[\\\"optional\\\"],null],[23,3,[\\\"_data\\\",\\\"description\\\"]]]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,7,[]],\\\"workflows\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflows\\\"]],[[\\\"@context\\\"],[\\\"stages\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-row\\\",[],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"stages\\\",[23,0,[\\\"errors\\\"]],\\\"stages\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"workflows/workflow-editor/stages-editor\\\",[],[[\\\"@model\\\",\\\"@isReadonly\\\"],[[23,3,[]],[23,6,[]]]]],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-section\\\",[[12,\\\"documentationResource\\\",\\\"workflows\\\"]],[[\\\"@context\\\"],[\\\"nextWorkflow\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"forms/form-input-row\\\",[[12,\\\"documentationResource\\\",\\\"workflows\\\"]],[[\\\"@label\\\",\\\"@errors\\\",\\\"@context\\\",\\\"@model\\\"],[\\\"next workflow\\\",[23,0,[\\\"errors\\\"]],\\\"nextWorkflowKey\\\",[23,3,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"lists/list-searcher\\\",[],[[\\\"@autofocus\\\",\\\"@tagName\\\",\\\"@allowCustom\\\",\\\"@disabled\\\",\\\"@list\\\",\\\"@itemValueKey\\\",\\\"@itemLabelKey\\\",\\\"@selectedItemValueKey\\\",\\\"@value\\\",\\\"@hasSelected\\\",\\\"@isRunning\\\",\\\"@onSearch\\\",\\\"@onSelect\\\",\\\"@onDeselect\\\"],[false,\\\"span\\\",true,[23,6,[]],[23,0,[\\\"workflowsService\\\",\\\"workflows\\\"]],\\\"_data._key\\\",\\\"_data.name\\\",\\\"_data.name\\\",[23,3,[\\\"_data\\\",\\\"nextWorkflow\\\"]],[23,3,[\\\"_data\\\",\\\"nextWorkflowKey\\\"]],[23,0,[\\\"workflowsService\\\",\\\"searchWorkflows\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"workflowsService\\\",\\\"searchWorkflows\\\"]],[28,\\\"hash\\\",null,[[\\\"query\\\",\\\"excludes\\\"],[[23,3,[\\\"_data\\\",\\\"nextWorkflow\\\"]],[28,\\\"array\\\",[[28,\\\"hash\\\",null,[[\\\"key\\\",\\\"value\\\"],[\\\"_key\\\",[23,3,[\\\"_data\\\",\\\"_key\\\"]]]]]],null]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"loadWorkflowProps\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"props\\\"],[[23,3,[]],[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.nextWorkflowKey\\\"]]]]]]],null],[28,\\\"fn\\\",[[23,0,[\\\"workflowsService\\\",\\\"unloadWorkflowProps\\\"]],[28,\\\"hash\\\",null,[[\\\"model\\\",\\\"props\\\"],[[23,3,[]],[28,\\\"hash\\\",null,[[\\\"_key\\\"],[\\\"_data.nextWorkflowKey\\\"]]]]]]],null]]]],[0,\\\"\\\\n\\\\n\\\\t\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"layouts/panels/panel-footer\\\",null,null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,3,[\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[5,\\\"elements/btn-delete\\\",[],[[\\\"@disabled\\\",\\\"@isRunning\\\",\\\"@onSubmit\\\",\\\"@typeToDelete\\\"],[[28,\\\"or\\\",[[24,[\\\"disabled\\\"]],[24,[\\\"hasProcessCount\\\"]],[23,3,[\\\"isSystemProcess\\\"]]],null],[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"removeRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"adapterName\\\",\\\"component\\\",\\\"model\\\",\\\"noConfirm\\\",\\\"onAfter\\\"],[\\\"workflows\\\",[23,0,[]],[23,3,[]],true,[23,2,[]]]]]],null],true]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"layouts/btns-group\\\",null,null,{\\\"statements\\\":[[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-cancel\\\",null,[[\\\"label\\\",\\\"classNames\\\",\\\"disabled\\\",\\\"onSubmit\\\"],[\\\"cancel\\\",\\\"u-btn--cancel\\\",[24,[\\\"disabled\\\"]],[23,5,[]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,3,[\\\"isOutOfDateOrDeleted\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"updateRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[]],\\\"workflows\\\",[23,3,[]],[23,2,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"elements/btn-save\\\",null,[[\\\"disabled\\\",\\\"isRunning\\\",\\\"onSubmit\\\"],[[24,[\\\"disabled\\\"]],[23,0,[\\\"crud\\\",\\\"createRecordTask\\\",\\\"isRunning\\\"]],[28,\\\"perform\\\",[[23,0,[\\\"crud\\\",\\\"createRecordTask\\\"]],[28,\\\"hash\\\",null,[[\\\"component\\\",\\\"adapterName\\\",\\\"model\\\",\\\"onAfter\\\"],[[23,0,[]],\\\"workflows\\\",[23,3,[]],[23,2,[]]]]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\t\\\\t\\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[1,[28,\\\"msgs/deleted-error\\\",null,[[\\\"model\\\"],[[23,3,[]]]]],false],[0,\\\"\\\\n\\\\t\\\\t\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/components/workflows/workflow-editor/template.hbs\"\n    }\n  });\n});","define(\"client/pods/constants/service\", [\"exports\", \"client/constants\"], function (_exports, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Service.extend({\n    init() {\n      this._super(...arguments);\n      this.setProperties(_constants.default);\n    }\n  });\n});","define(\"client/pods/contacts/activity/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/activity/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/activity/filters/model\", [\"exports\", \"client/pods/filters/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    // @TODO: use postingDateZ\n    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        documentStatuses: [],\n        dispatchStatus: [],\n        sort: [{\n          //   by: 'dispatchDateZ',\n          //   direction: 'DESC'\n          // }, {\n          by: 'dateZ',\n          direction: 'DESC'\n        }\n        // multi level sorting aql does not work\n        // , {\n        //   by: 'docNo',\n        //   direction: 'DESC'\n        // }\n        ]\n      };\n    }\n  });\n});","define(\"client/pods/contacts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../utils/nventor'\n  // import DetailModel from './details/model'\n  // import OptionsModel from '../options/model'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts',\n    modelObj: _model.default,\n    idParam: '_id',\n    serialize(model) {\n      let data = this._super(model);\n      data = this.removeNotRequired(data);\n      delete data.contactRewardsData;\n\n      // Operator opt-in for syncing plan fields into member podSettings (API companion).\n      // Transient on the client — set on dirty before save, then cleared after.\n      if (model?._data?.shouldUpdateBigOrdrMemberPodSettings === true) {\n        data.shouldUpdateBigOrdrMemberPodSettings = true;\n      } else {\n        delete data.shouldUpdateBigOrdrMemberPodSettings;\n      }\n      return data;\n    },\n    removeNotRequired(data) {\n      const relationships = data.relationships || [];\n      let hasSales = false;\n      if (relationships.indexOf('customer') > -1) {\n        hasSales = true;\n      }\n      let hasPurchases = false;\n      if (relationships.indexOf('supplier') > -1) {\n        hasPurchases = true;\n      }\n      if (!hasSales) {\n        data.salesTaxMethodKey = '';\n        data.salesPaymentMethodKey = '';\n        data.salesPaymentTermsKey = '';\n        data.salesAccount = '';\n      }\n      if (!hasPurchases) {\n        data.purchasesTaxMethodKey = '';\n        data.purchasesPaymentMethodKey = '';\n        data.purchasesPaymentTermsKey = '';\n        data.purchasesAccount = '';\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/contacts/aging/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/aging/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/aging/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        contact: '',\n        contactCode: '',\n        paymentTerms: [],\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    },\n    paymentTermsCount: Ember.computed('_data.paymentTerms.[]', function () {\n      return this.getPropLength('_data.paymentTerms');\n    })\n  });\n});","define(\"client/pods/contacts/aging/purchases/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/aging/purchases/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/aging/purchases',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/aging/purchases/model\", [\"exports\", \"client/pods/base/model\", \"ramda-adjunct\"], function (_exports, _model, RA) {\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    populate(data, attrs) {\n      if (RA.isNotNilOrEmpty(data.contactData)) {\n        data.contactData = this._transformContact(data.contactData);\n      }\n      this._super(...arguments);\n    },\n    _transformContact(contactData = {}) {\n      return this.dataManager.setPartialRecord({\n        adapterName: 'contacts',\n        data: contactData\n      });\n    }\n  });\n});","define(\"client/pods/contacts/aging/sales/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/aging/sales/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/aging/sales',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/aging/sales/model\", [\"exports\", \"client/pods/base/model\", \"ramda-adjunct\"], function (_exports, _model, RA) {\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    populate(data, attrs) {\n      if (RA.isNotNilOrEmpty(data.contactData)) {\n        data.contactData = this._transformContact(data.contactData);\n      }\n      this._super(...arguments);\n    },\n    _transformContact(contactData = {}) {\n      return this.dataManager.setPartialRecord({\n        adapterName: 'contacts',\n        data: contactData\n      });\n    }\n  });\n});","define(\"client/pods/contacts/batch/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts',\n    idParam: false,\n    serialize(contacts) {\n      return R.map(contact => {\n        return this._serialize(contact._data);\n      })(contacts);\n    }\n\n    // updateIndexes (data, appendPath) {\n    //   const path = this.getFullPath({ pathName: 'updatePath', appendPath, serverType })\n    //   data = R.map(R.pick(['_key', 'index']))(data)\n    //   data = this._addAdapterInfo(data, appendPath)\n\n    //   const payload = {\n    //     batch: data\n    //   }\n    //   try {\n    //     return this.ajax.PATCH(path, payload)\n    //   } catch (e) {\n    //     // console.log(e)\n    //   }\n    // }\n  });\n});","define(\"client/pods/contacts/batch/statuses/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts',\n    idParam: false,\n    serialize(contacts) {\n      const batch = R.map(contact => {\n        return {\n          _key: contact?._data._key\n        };\n      })(contacts);\n      return {\n        batch\n      };\n    }\n  });\n});","define(\"client/pods/contacts/batch/tags/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts',\n    idParam: false,\n    serialize(contacts) {\n      const batch = R.map(contact => {\n        return {\n          _key: contact?._data?._key\n        };\n      })(contacts);\n      return {\n        batch\n      };\n    }\n  });\n});","define(\"client/pods/contacts/data/groups/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/data/groups/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/data/groups',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/data/groups/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/contacts/departments/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/departments/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/departments/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/contacts-is-parent\", \"client/mixins/contacts-persons\"], function (_exports, _model, _contactsIsParent, _contactsPersons) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // details mixin add in persons mixin\n  // export default BaseModel.extend({\n  var _default = _exports.default = _model.default.extend(_contactsIsParent.default, _contactsPersons.default, {\n    componentPath: 'contacts/departments/editor-departments',\n    component: Ember.computed('_data.type', function () {\n      return this.componentPath + this.get('_data.type');\n    }),\n    defaultForDocs: Ember.computed('_data.{isDefault,isDefaultFor,isDefaultForDocs.[]}', function () {\n      if (this.get('_data.isDefault')) {\n        if (this.get('_data.isDefaultFor') === 'all') {\n          return ['all'];\n        }\n        return this.get('_data.isDefaultForDocs') || [];\n      }\n      return [];\n    })\n  });\n});","define(\"client/pods/contacts/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/details/model\", [\"exports\", \"client/pods/base/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    componentPath: 'contacts/details/editor-details/editor-',\n    component: Ember.computed('_data.type', function () {\n      return this.componentPath + this.get('_data.type');\n    }),\n    isAddress: Ember.computed('_data.type', function () {\n      if (this.get('_data.type') === 'address') {\n        return true;\n      }\n      return false;\n    }),\n    label: Ember.computed('_data.{subType,customLabel}', function () {\n      if (this._data?.customLabel) {\n        return this._data.customLabel;\n      }\n      return this._data.subType;\n    }),\n    value: Ember.computed('_data.value', function () {\n      return this._data.value;\n    })\n  });\n});","define(\"client/pods/contacts/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/filters/doc-totals/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/filters/doc-totals/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/filters/doc-totals/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/contacts/filters/model\"], function (_exports, R, RA, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _obj = {\n    intl: Ember.inject.service(),\n    defaults() {\n      return {\n        dataRangeType: 'all',\n        dataRangeTypeLabel: 'from beginning',\n        mmStart: '',\n        yyyyStart: '',\n        mmEnd: '',\n        yyyyEnd: '',\n        docType: 'sales',\n        prop: 'inclTotal',\n        propLabel: `${this.intl.t('order value')} (${this.intl.t('tax inclusive')})`,\n        criteria: 'greaterThan',\n        criteriaLabel: 'greaterThan',\n        value: ''\n      };\n    },\n    hasRequiredValues: Ember.computed('_data.{dataRangeType,docType,prop,criteria,value,mmStart,mmEnd,yyyyStart,yyyyEnd}', function () {\n      const isFilterFilled = R.all(RA.isNotNilOrEmpty)([this._data?.docType ?? '', this._data?.prop ?? '', this._data?.criteria ?? '', this._data?.value ?? '']);\n      if (this._data?.dataRangeType === 'all') {\n        return isFilterFilled;\n      }\n      if (this._data?.dataRangeType === 'monthly') {\n        const isDateRangeFilled = R.all(RA.isNotNilOrEmpty)([this._data?.mmStart ?? '', this._data?.mmEnd ?? '', this._data?.yyyyStart ?? '', this._data?.yyyyEnd ?? '']);\n        return isFilterFilled && isDateRangeFilled;\n      }\n      if (this._data?.dataRangeType === 'yearly') {\n        const isDateRangeFilled = R.all(RA.isNotNilOrEmpty)([this._data?.yyyyStart ?? '']);\n        return isFilterFilled && isDateRangeFilled;\n      }\n      return false;\n    }),\n    tagSuffix: Ember.computed('hasRequiredValues', function () {\n      if (this.hasRequiredValues) {\n        const endSuffix = `${this.intl.t(this._data?.docType)} - ${this._data?.propLabel} ${this.intl.t(this._data?.criteriaLabel)} ${this._data?.value}`;\n        if (this._data?.dataRangeType === 'all') {\n          return `: ${this.intl.t(this._data?.dataRangeTypeLabel)} - ${endSuffix}`;\n        }\n        if (this._data?.dataRangeType === 'monthly') {\n          if (this._data?.yyyyStart === this._data?.yyyyEnd && this._data?.mmStart === this._data?.mmEnd) {\n            return `: (${this.intl.t(`month${this._data?.mmStart}`)} ${this._data?.yyyyStart}) - ${endSuffix}`;\n          }\n          return `: (${this.intl.t(`month${this._data?.mmStart}`)} ${this._data?.yyyyStart} - ${this.intl.t(`month${this._data?.mmEnd}`)} ${this._data?.yyyyEnd}) - ${endSuffix}`;\n        }\n        if (this._data?.dataRangeType === 'yearly') {\n          return `: (${this._data?.yyyyStart}) - ${endSuffix}`;\n        }\n      }\n      return '';\n    }),\n    deselectAll() {\n      this.setData('dataRangeType', '');\n      this.setData('mmStart', '');\n      this.setData('yyyyStart', '');\n      this.setData('mmEnd', '');\n      this.setData('yyyyEnd', '');\n      this.setData('docType', '');\n      this.setData('prop', '');\n      this.setData('criteria', '');\n      this.setData('value', '');\n    }\n  }, _applyDecoratedDescriptor(_obj, \"deselectAll\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"deselectAll\"), _obj), _obj));\n});","define(\"client/pods/contacts/filters/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/filters/model\"], function (_exports, R, RA, _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, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    intl: Ember.inject.service(),\n    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        // relationships: ['customer', 'supplier'],\n        relationships: [],\n        name: '',\n        code: '',\n        birthdayMonthStart: '',\n        birthdayMonthStartLabel: '',\n        birthdayMonthEnd: '',\n        birthdayMonthEndLabel: '',\n        birthdayYearStart: '',\n        birthdayYearEnd: '',\n        ages: '',\n        ageStart: '',\n        ageEnd: '',\n        tags: [],\n        telephone: '',\n        fax: '',\n        email: '',\n        address: '',\n        rewardKeys: [],\n        memberLevelIds: [],\n        paymentTerms: [],\n        salesPersons: [],\n        transporterExtensions: [],\n        isAssociates: '',\n        isMember: '',\n        mailingList: '',\n        transactions: [{\n          prop: '',\n          criteria: '',\n          value: '',\n          valueMax: ''\n        }],\n        docTotals: [{\n          dataRangeType: 'all',\n          dataRangeTypeLabel: 'from beginning',\n          mmStart: '',\n          yyyyStart: '',\n          mmEnd: '',\n          yyyyEnd: '',\n          docType: 'sales',\n          prop: 'inclTotal',\n          propLabel: `${this.intl.t('order value')} (${this.intl.t('tax inclusive')})`,\n          criteria: 'greaterThan',\n          criteriaLabel: 'greaterThan',\n          value: ''\n        }],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    },\n    populate(data = {}) {\n      this._super(...arguments); // get defaults first\n\n      data.transactions = this._transformTransactions(data);\n      data.docTotals = this._transformDocTotals(data);\n    },\n    _transformTransactions(data) {\n      const transactions = R.propOr([], 'transactions')(data);\n      return R.map(transaction => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'contacts/filters/transactions',\n          data: transaction\n        });\n      })(transactions);\n    },\n    _transformDocTotals(data) {\n      const docTotals = R.propOr([], 'docTotals')(data);\n      return R.map(docTotal => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'contacts/filters/doc-totals',\n          data: docTotal\n        });\n      })(docTotals);\n    },\n    tagsCount: Ember.computed('_data.tags.[]', function () {\n      return this.getPropLength('_data.tags');\n    }),\n    relationshipsCount: Ember.computed('_data.relationships.[]', function () {\n      return this.getPropLength('_data.relationships');\n    }),\n    docTotalsBadgeCount: Ember.computed('_data.docTotals.@each.hasRequiredValues', function () {\n      const docTotals = this._data?.docTotals ?? [];\n      if (RA.isNilOrEmpty(docTotals)) {\n        return 0;\n      }\n      return R.pipe(R.pluck('hasRequiredValues'), R.filter(R.equals(true)), R.length)(docTotals);\n    }),\n    addTransaction(transaction = {}) {\n      const transactions = this.getData('transactions') || [];\n      const transactionModel = this.dataManager.setAsRecord({\n        adapterName: 'contacts/filters/transactions',\n        data: transaction\n      });\n      transactions.pushObject(transactionModel);\n      this.setData('transactions', transactions);\n    },\n    removeTransaction(transaction = {}) {\n      const transactions = this.getData('transactions') || [];\n      transactions.removeObject(transaction);\n      if (RA.isNilOrEmpty(transactions)) {\n        this.addTransaction();\n      }\n      this.setData('transactions', transactions);\n    },\n    addDocTotal(docTotal = {}) {\n      const docTotals = this.getData('docTotals') || [];\n      const docTotalModel = this.dataManager.setAsRecord({\n        adapterName: 'contacts/filters/doc-totals',\n        data: docTotal\n      });\n      docTotals.pushObject(docTotalModel);\n      this.setData('docTotals', docTotals);\n    },\n    removeDocTotal(docTotal = {}) {\n      const docTotals = this.getData('docTotals') || [];\n      docTotals.removeObject(docTotal);\n      if (RA.isNilOrEmpty(docTotals)) {\n        this.addDocTotal();\n      }\n      this.setData('docTotals', docTotals);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"addTransaction\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"addTransaction\"), _obj), _applyDecoratedDescriptor(_obj, \"removeTransaction\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"removeTransaction\"), _obj), _applyDecoratedDescriptor(_obj, \"addDocTotal\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"addDocTotal\"), _obj), _applyDecoratedDescriptor(_obj, \"removeDocTotal\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"removeDocTotal\"), _obj), _obj));\n});","define(\"client/pods/contacts/filters/transactions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/filters/transactions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/filters/transactions/model\", [\"exports\", \"client/pods/contacts/filters/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    defaults() {\n      return {\n        prop: '',\n        criteria: '',\n        value: '',\n        valueMax: ''\n      };\n    }\n  });\n});","define(\"client/pods/contacts/groups/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/groups/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/groups',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/contacts/groups/criterias/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/groups/criterias/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/groups/criterias/by/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'reward',\n        label: 'reward'\n      }, {\n        value: 'shop',\n        label: 'shop'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/groups/criterias/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/contacts/groups/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/groups/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/groups/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')]\n      };\n    }\n  });\n});","define(\"client/pods/contacts/groups/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    defaults() {\n      return {\n        name: '',\n        description: '',\n        relationships: ['customer'],\n        criterias: []\n      };\n    },\n    populate(data = {}, attrs = {}) {\n      // may be overridden\n\n      data = this._transformCriterias(data);\n      this._super(...arguments);\n    },\n    _transformCriterias(rawData) {\n      rawData.criterias = R.pipe(R.propOr([], 'criterias'), R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'contacts/groups/criterias',\n          data\n        });\n      }))(rawData);\n      return rawData;\n    },\n    newCriteria() {\n      const criteria = this.dataManager.newRecord({\n        adapterName: 'contacts/groups/criterias',\n        data: {}\n      });\n      const criterias = this.getData('criterias') || [];\n      criterias.pushObject(criteria);\n      this.setData('criterias', criterias);\n    },\n    removeCriteria(criteria) {\n      const hasSelected = criteria?._data?.by;\n      const message = this.intl.t('are you sure you want to remove item', {\n        item: this.intl.t('match_contacts_groups_criteria')\n      });\n      let confirmed = true;\n      if (hasSelected) {\n        confirmed = window.confirm(message);\n      }\n      if (confirmed) {\n        const criterias = this.getData('criterias') || [];\n        criterias.removeObject(criteria);\n        this.setData('criterias', criterias);\n      }\n    }\n  }, _applyDecoratedDescriptor(_obj, \"newCriteria\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"newCriteria\"), _obj), _applyDecoratedDescriptor(_obj, \"removeCriteria\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"removeCriteria\"), _obj), _obj));\n});","define(\"client/pods/contacts/lists/allowed-payment-method/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = ['account', 'consignment'];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/cashbook-relationships-filter/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'customer',\n        label: 'customer',\n        classNames: 'is-customer'\n      }, {\n        value: 'supplier',\n        label: 'supplier',\n        classNames: 'is-supplier'\n      }, {\n        value: 'associates',\n        label: 'associates'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/detail-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'phone',\n        label: 'detailType_phone',\n        icon: 'fas fa-phone',\n        defaultSubType: 'telephone'\n      }, {\n        value: 'email',\n        label: 'detailType_email',\n        icon: 'fas fa-envelope',\n        defaultSubType: 'email'\n      }, {\n        value: 'address',\n        label: 'detailType_address',\n        icon: 'fas fa-map-marker-alt',\n        defaultSubType: 'address'\n      }, {\n        value: 'note',\n        label: 'detailType_note',\n        icon: 'fas fa-sticky-note',\n        defaultSubType: 'note'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/doc-totals/data-ranges/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'from beginning'\n      }, {\n        value: 'yearly',\n        label: 'per year'\n      }, {\n        value: 'monthly',\n        label: 'custom range (monthly)'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/doc-totals/props-criteria/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'equals',\n        label: 'equals'\n      }, {\n        value: 'notEquals',\n        label: 'notEquals'\n      }, {\n        value: 'greaterThan',\n        label: 'greaterThan'\n      }, {\n        value: 'greaterThanOrEqualTo',\n        label: 'greaterThanOrEqualTo'\n      }, {\n        value: 'lessThan',\n        label: 'lessThan'\n      }, {\n        value: 'lessThanOrEqualTo',\n        label: 'lessThanOrEqualTo'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/doc-totals/props/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    intl: Ember.inject.service(),\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'exclTotal',\n        label: `${this.intl.t('order value')} (${this.intl.t('tax exclusive')})`\n      }, {\n        value: 'inclTotal',\n        label: `${this.intl.t('order value')} (${this.intl.t('tax inclusive')})`\n      },\n      // {\n      //   value: 'taxTotal',\n      //   label: `${this.intl.t('order value')} (${this.intl.t('qty')})`\n      // },\n      {\n        value: 'docCount',\n        label: this.intl.t('total transactions')\n      }, {\n        value: 'averageDays',\n        label: this.intl.t('average days per transaction')\n      }, {\n        value: 'averageExclTotal',\n        label: `${this.intl.t('average order value')} (${this.intl.t('tax exclusive')})`\n      }, {\n        value: 'averageInclTotal',\n        label: `${this.intl.t('average order value')} (${this.intl.t('tax inclusive')})`\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/extra/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'birthdayMonth',\n        label: 'birthday months'\n      }, {\n        value: 'birthdayYear',\n        label: 'birthday years'\n      }, {\n        value: 'ages',\n        label: 'age categories'\n      }, {\n        value: 'age',\n        label: 'ages'\n      }, {\n        value: 'docTotal',\n        label: 'activity'\n      }, {\n        value: 'isAssociates',\n        label: 'is associates'\n      }, {\n        value: 'isMember',\n        label: 'is member'\n      }, {\n        value: 'mailingList',\n        label: 'news and offers email consent'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/relationships/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: this.get('constants.contactsRelationship.customer'),\n        label: this.get('constants.contactsRelationship.customer')\n      }, {\n        value: this.get('constants.contactsRelationship.supplier'),\n        label: this.get('constants.contactsRelationship.supplier')\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'code',\n        label: 'code'\n      }, {\n        value: 'description',\n        label: 'description'\n      }, {\n        value: 'taxNumber',\n        label: 'tax number'\n      }, {\n        value: 'details',\n        label: 'details'\n      }, {\n        value: 'persons',\n        label: 'persons'\n      }, {\n        value: 'departments',\n        label: 'departments'\n      }, {\n        value: 'email',\n        label: 'email'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'code',\n        label: 'code'\n      }, {\n        value: 'timestampZ',\n        label: 'created date'\n      }, {\n        value: 'updated_timestampZ',\n        label: 'updated date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: this.get('constants.status.active'),\n        label: this.get('constants.status.active')\n      }, {\n        value: this.get('constants.status.inactive'),\n        label: this.get('constants.status.inactive')\n        // }, {\n        //   value: this.get('constants.status.suspended'),\n        //   label: this.get('constants.status.suspended')\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/transactions/criterias/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/constants\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _constants, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        label: 'greater than or equal to',\n        value: _constants.default.automationsCriterias.greaterThanOrEqualTo\n      }, {\n        label: 'greater than',\n        value: _constants.default.automationsCriterias.greaterThan\n      }, {\n        label: 'less than or equal to',\n        value: _constants.default.automationsCriterias.lessThanOrEqualTo\n      }, {\n        label: 'less than',\n        value: _constants.default.automationsCriterias.lessThan\n      }, {\n        label: 'equals',\n        value: _constants.default.automationsCriterias.equals\n      }, {\n        label: 'not equals',\n        value: _constants.default.automationsCriterias.notEquals\n      }, {\n        label: 'is between',\n        value: _constants.default.automationsCriterias.isBetween\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/filters/transactions/props/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'salesValue',\n        label: 'sales value',\n        criterias: ['equals', 'notEquals', 'greaterThan', 'greaterThanOrEqualTo', 'lessThan', 'lessThanOrEqualTo']\n      }, {\n        value: 'salesCount',\n        label: 'sales count',\n        criterias: ['equals', 'notEquals', 'greaterThan', 'greaterThanOrEqualTo', 'lessThan', 'lessThanOrEqualTo']\n      }, {\n        value: 'purchasesValue',\n        label: 'purchases value',\n        criterias: ['equals', 'notEquals', 'greaterThan', 'greaterThanOrEqualTo', 'lessThan', 'lessThanOrEqualTo']\n      }, {\n        value: 'purchasesCount',\n        label: 'purchases count',\n        criterias: ['equals', 'notEquals', 'greaterThan', 'greaterThanOrEqualTo', 'lessThan', 'lessThanOrEqualTo']\n      }, {\n        value: 'transactionDate',\n        label: 'transaction date',\n        criterias: ['equals', 'greaterThan', 'greaterThanOrEqualTo', 'lessThan', 'lessThanOrEqualTo', 'isBetween']\n      }, {\n        value: 'shop',\n        label: 'shop',\n        criterias: ['equals']\n      }\n      // {\n      //   value: 'reward',\n      //   label: 'reward',\n      //   criterias: [\n      //     'equals'\n      //   ]\n      // },\n      // {\n      //   value: 'memberLevel',\n      //   label: 'member level',\n      //   criterias: [\n      //     'equals'\n      //   ]\n      // }\n      ];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/genders/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'male',\n        label: 'male'\n      }, {\n        value: 'female',\n        label: 'female'\n      }, {\n        value: 'other',\n        label: 'other'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/import-columns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'telephone',\n        label: 'detailType_phone'\n      }, {\n        value: 'email',\n        label: 'detailType_email'\n      }, {\n        value: 'address',\n        label: 'detailType_address'\n      }, {\n        value: 'note',\n        label: 'detailType_note'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/is-transporter/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'on',\n        label: 'on'\n      }, {\n        value: 'off',\n        label: 'off'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/contacts/menu/actions/dash',\n          icon: 'fas fa-table',\n          component: 'contacts/panels-dash',\n          label: 'overview',\n          action: 'dash',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }, {\n          resource: 'api/protected/contacts/menu/actions/dash',\n          icon: 'fas fa-poll',\n          component: 'contacts/panels-report',\n          label: 'report',\n          action: 'report',\n          tabType: 'replaceSubTab',\n          className: 'hide-when-overflow'\n          // REMOVED FOR NOW (NEED FIX)\n          // }, {\n          //   resource: 'api/protected/contacts/menu/actions/dash',\n          //   icon: 'fas fa-users',\n          //   component: 'contacts/groups/panels-dash',\n          //   label: 'contacts_groups',\n          //   action: 'groups',\n          //   tabType: 'replaceSubTab',\n          //   className: 'hide-when-overflow'\n        }, {\n          resource: 'api/protected/contacts/menu/actions/new-customer',\n          component: 'contacts/panels-new',\n          icon: 'fas fa-plus',\n          label: 'customer',\n          action: 'new',\n          relationships: ['customer'],\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }, {\n          resource: 'api/protected/contacts/menu/actions/new-supplier',\n          component: 'contacts/panels-new',\n          icon: 'fas fa-plus',\n          label: 'supplier',\n          action: 'new',\n          relationships: ['supplier'],\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n          // }, {\n          //   resource: 'api/protected/contacts/menu/actions/import',\n          //   component: 'importer/data-import',\n          //   adapterName: 'contacts',\n          //   label: 'import',\n          //   action: 'import'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/contacts/lists/panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../../utils/nventor'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      options,\n      serverType\n    } = {}) {\n      const list = [{\n        resource: '/api/protected/contacts',\n        component: 'contacts/panels-display/sub-panels-details',\n        label: 'details',\n        value: 'details',\n        tabType: 'replaceSubTab'\n      }, {\n        resource: '/api/protected/contacts',\n        component: 'contacts/panels-display/sub-panels-member-levels',\n        label: 'member levels',\n        value: 'member levels',\n        tabType: 'replaceSubTab'\n      }, {\n        resource: '/api/protected/contacts/statements/sales',\n        component: 'contacts/panels-display/sub-panels-statements',\n        label: 'customer statements',\n        value: 'customer statements',\n        tabType: 'replaceSubTab',\n        docType: 'sales'\n      }, {\n        resource: '/api/protected/contacts/activity/sales',\n        component: 'contacts/panels-display/sub-panels-activity',\n        label: 'customer activity',\n        value: 'customer activity',\n        tabType: 'replaceSubTab',\n        docType: 'sales'\n      }, {\n        resource: '/api/protected/contacts/statements/purchases',\n        component: 'contacts/panels-display/sub-panels-statements',\n        label: 'supplier reconciliations',\n        value: 'supplier reconciliations',\n        tabType: 'replaceSubTab',\n        docType: 'purchases'\n      }, {\n        resource: '/api/protected/contacts/activity/purchases',\n        component: 'contacts/panels-display/sub-panels-activity',\n        label: 'supplier activity',\n        value: 'supplier activity',\n        tabType: 'replaceSubTab',\n        docType: 'purchases'\n      }, {\n        resource: '/api/protected/documents/data/pending',\n        component: 'documents/pending/tab-container',\n        label: 'doc-pending',\n        value: 'doc-pending',\n        tabType: 'replaceSubTab',\n        docType: 'sales',\n        docName: 'orders'\n        // docType: 'consignment'\n      }];\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/contacts/lists/relationships/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'customer',\n        label: 'customer',\n        classNames: 'is-customer'\n      }, {\n        value: 'supplier',\n        label: 'supplier',\n        classNames: 'is-supplier'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/sub-types-address/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'address',\n        label: 'address'\n      }, {\n        value: 'billingAddress',\n        label: 'billing address'\n      }, {\n        value: 'deliveryAddress',\n        label: 'delivery address'\n      }, {\n        value: 'pickupAddress',\n        label: 'pickup address'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/sub-types-note/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'note',\n        label: 'note'\n      }, {\n        value: 'link',\n        label: 'link'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/sub-types-phone/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'fax',\n        label: 'fax'\n      }, {\n        value: 'mobile',\n        label: 'mobile'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/tag-report-options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'uniqueTagsOnly',\n        label: 'uniqueTagsOnly'\n      }, {\n        value: 'combinedTagsOnly',\n        label: 'combinedTagsOnly'\n      }, {\n        value: 'allTags',\n        label: 'allTags'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/lists/tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/tags',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/contacts/lists/tax-methods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'auto',\n        label: 'auto'\n      }, {\n        value: 'none',\n        label: 'none'\n      }, {\n        value: 'exclusive',\n        label: 'tax exclusive'\n      }, {\n        value: 'inclusive',\n        label: 'tax inclusive'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/mixins/sales-persons\", \"client/mixins/contacts-is-parent\", \"client/mixins/statuses\", \"client/mixins/contacts-departments\", \"client/pods/options/model\"], function (_exports, R, RA, _model, _salesPersons, _contactsIsParent, _statuses, _contactsDepartments, _model2) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _obj;\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  var _default = _exports.default = _model.default.extend(_salesPersons.default, _contactsIsParent.default, _contactsDepartments.default, _statuses.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    constantsService: Ember.inject.service('constants'),\n    eInvoicesService: Ember.inject.service('extensions/apps/tw/e-invoices'),\n    init() {\n      this._super(...arguments);\n      this.crud.addLists(this, ['transporter', 'contacts/lists/filters/doc-totals/props', 'extensions/apps/tw/t-cat/lists/thermosphere', 'extensions/apps/tw/t-cat/lists/package-size', 'extensions/apps/tw/t-cat/lists/product-type', 'extensions/apps/tw/t-cat/lists/waybill-print-type', 'extensions/apps/tw/t-cat/lists/delivery-time', 'extensions/apps/tw/seven-eleven/lists/thermosphere', 'extensions/apps/tw/payuni-seven-eleven/accounts', 'extensions/apps/tw/payuni-seven-eleven/type']);\n    },\n    defaults() {\n      return {\n        allowSupplierPortal: false,\n        supplierPortalUsers: [{\n          supplierPortalEmail: '',\n          supplierPortalPassword: '',\n          supplierPortalExpiryDateZ: ''\n        }],\n        isAllowedLinkMember: this.settings.getProp('isAllowedLinkMember', false),\n        salesPaymentMethodKey: this.get('constants.paymentMethods.cash'),\n        salesTaxMethodKey: this.get('constants.taxMethods.auto'),\n        purchasesPaymentMethodKey: this.get('constants.paymentMethods.cash'),\n        purchasesTaxMethodKey: this.get('constants.taxMethods.auto'),\n        status: this.get('constants.status.active'),\n        invoicing: this.get('constants.invoicing.auto'),\n        isTransporter: this.get('constants.isTransporter.off'),\n        transporterExtension: '',\n        transporterCredentials: {},\n        transporterSettings: {\n          useAnonymizedProductName: false,\n          anonymizedProductName: '',\n          waybillsPerPage: 4\n        },\n        sevenEleven: {\n          returnStore: {\n            storeId: '',\n            storeName: '',\n            storeAddress: ''\n          },\n          checkout: {},\n          checkoutFrozen: {\n            shopId: '',\n            subShopId: '',\n            printPassword: ''\n          },\n          pickup: {},\n          sftp: {},\n          sftpFrozen: {},\n          waybillsPerPage: 4\n        },\n        payuni: {},\n        companyName: '',\n        taxNumber: '',\n        twEInvoiceCarrierId: '',\n        twEInvoiceCarrierType: '',\n        bigOrdrPlanData: {}\n      };\n    },\n    /**\n     * custom populate function. (overrides data mixin default)\n     * will create child detail models\n     * @param {object/json} data - model data\n     */\n    populate(data = {}, attrs) {\n      const self = this;\n      data = data || {};\n      self.transformSalesPersons(data);\n      self.transformDetails(data);\n      self.transformPersons(data);\n      self.transformDepartments(data);\n      self.transformTransporterAccounts(data);\n      self.transformTwEInvoiceCarrierType(data);\n      self.transformSupplierPortalUsers(data);\n      self.transformBigOrdrPlanData(data);\n      if (data?.transporterExtension === this.get('constants.transporterExtensions.sevenEleven')) {\n        data.sevenEleven = self.transform7ElevenTransporter(data);\n      }\n\n      // populate docName info\n      // self.overwriteData(data)\n      this._super(data, attrs);\n    },\n    /**\n     * Turn stored plan snapshot + selected schedule into Ember records so editors\n     * and list dropdowns can read `_data.planKey` / `_data.recurringScheduleKey` /\n     * `_data.bigOrdrPlan`.\n     * @param {Object} data - contact payload being populated\n     * @param {Object} [data.bigOrdrPlanData] - plan snapshot from the API\n     * @param {string} [data.bigOrdrPlanData.bigOrdrPlan] - plan enum (free, paid1, …)\n     * @param {Object} [data.bigOrdrPlanData.recurringScheduleSelected] - selected schedule snapshot\n     * @return {Object} data with `bigOrdrPlanData` as nested Ember records\n     */\n    transformBigOrdrPlanData(data) {\n      const planData = this.getPlainObjectFromModelOrData(data.bigOrdrPlanData);\n      planData.recurringScheduleSelected = this.transformRecurringScheduleSelected(planData);\n      const selectedScheduleKey = planData.recurringScheduleSelected?._data?.recurringScheduleKey;\n      if (RA.isNilOrEmpty(planData.recurringScheduleKey) && RA.isNotNilOrEmpty(selectedScheduleKey)) {\n        planData.recurringScheduleKey = selectedScheduleKey;\n      }\n      data.bigOrdrPlanData = this.dataManager.setAsRecord({\n        adapterName: 'base',\n        data: planData\n      });\n      return data;\n    },\n    setupDirtyBigOrdrPlanData() {\n      const planDataModel = this._data?.bigOrdrPlanData;\n      return this.crud.setupDirty({\n        adapterName: 'base',\n        model: planDataModel\n      });\n    },\n    /**\n     * Turn the selected schedule snapshot into a `recurring/schedules` record.\n     * Fills `recurringScheduleKey` from `_key` when the snapshot only has `_key`.\n     * Empty snapshots stay as `{}` so serialize does not invent schedule defaults.\n     * @param {Object} planData - plain plan snapshot\n     * @param {Object} [planData.recurringScheduleSelected] - selected schedule snapshot or record\n     * @return {Object} Ember schedule record, or `{}` when nothing is selected\n     */\n    transformRecurringScheduleSelected(planData) {\n      const selectedSchedule = planData.recurringScheduleSelected;\n      if (RA.isNilOrEmpty(selectedSchedule) || typeof selectedSchedule !== 'object') {\n        return {};\n      }\n      const scheduleData = this.getPlainObjectFromModelOrData(selectedSchedule);\n      if (RA.isNilOrEmpty(scheduleData)) {\n        return {};\n      }\n      if (RA.isNilOrEmpty(scheduleData.recurringScheduleKey) && RA.isNotNilOrEmpty(scheduleData._key)) {\n        scheduleData.recurringScheduleKey = scheduleData._key;\n      }\n      return this.dataManager.setAsRecord({\n        adapterName: 'recurring/schedules',\n        data: scheduleData\n      });\n    },\n    getPlainObjectFromModelOrData(value) {\n      if (RA.isNilOrEmpty(value) || typeof value !== 'object') {\n        return {};\n      }\n      if (value._data) {\n        return {\n          ...value._data\n        };\n      }\n      return {\n        ...value\n      };\n    },\n    transformSupplierPortalUsers(data) {\n      let supplierPortalUsers = data?.supplierPortalUsers || [{\n        supplierPortalEmail: '',\n        supplierPortalPassword: '',\n        supplierPortalExpiryDateZ: ''\n      }];\n      data.supplierPortalUsers = R.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'contacts/portals/users',\n          data\n        });\n      })(supplierPortalUsers);\n      return data;\n    },\n    birthday: Ember.computed('_data.birthday,_data.member.birthday', function () {\n      let birthday = this.getData('birthday');\n      if (RA.isNilOrEmpty(birthday)) {\n        birthday = this.getData('member.birthday');\n      }\n      return birthday || '';\n    }),\n    age: Ember.computed('birthday', function () {\n      const birthday = this.birthday || '';\n      if (birthday) {\n        const todayZ = this.dateService.getStartOfDayZ();\n        return this.dateService.getDateDiff(birthday, todayZ, 'years');\n      }\n      return '';\n    }),\n    hasRate: Ember.computed('_data.transporterExtension', function () {\n      return R.pipe(R.pathEq(['_data', 'transporterExtension'], 't-cat'), R.not)(this);\n    }),\n    hasAccountType: Ember.computed('_data.transporterAccounts.[]', function () {\n      return R.pipe(R.pathOr([], ['_data', 'transporterAccounts']), R.find(R.pipe(R.pathOr('', ['_data', 'accountType']), RA.isNotNilOrEmpty)), RA.isNotNilOrEmpty)(this);\n    }),\n    translateAccountName: Ember.computed('_data.transporterExtension', function () {\n      // @TODO: this is difficult to maintain,\n      // there are multiple versions\n      return R.anyPass([R.pathEq(['model', '_data', 'transporterExtension'], 't-cat'), R.pathEq(['model', '_data', 'transporterExtension'], 'seven-eleven')])(this);\n    }),\n    gender: Ember.computed('_data.gender,_data.member.gender', function () {\n      let gender = this.getData('gender');\n      if (RA.isNilOrEmpty(gender)) {\n        gender = this.getData('member.gender');\n      }\n      return gender || '';\n    }),\n    otherGender: Ember.computed('_data.otherGender,_data.member.otherGender', function () {\n      let otherGender = this.getData('otherGender');\n      if (RA.isNilOrEmpty(otherGender)) {\n        otherGender = this.getData('member.otherGender');\n      }\n      return otherGender || '';\n    }),\n    defaultTelephone: Ember.computed('details.[]', 'persons.[]', 'departments.[]', 'synced', function () {\n      const type = 'phone';\n      let defaultPhone = this.getDefaultValue({\n        type,\n        subType: 'telephone'\n      });\n      if (!defaultPhone) {\n        defaultPhone = this.getDefaultValue({\n          type,\n          subType: 'mobile'\n        });\n      }\n      return defaultPhone;\n    }),\n    defaultFax: Ember.computed('details.[]', 'persons.[]', 'departments.[]', 'synced', function () {\n      const type = 'phone';\n      return this.getDefaultValue({\n        type,\n        subType: 'fax'\n      });\n    }),\n    defaultEmail: Ember.computed('details.[]', 'persons.[]', 'departments.[]', 'synced', function () {\n      const type = 'email';\n      return this.getDefaultValue({\n        type\n      });\n    }),\n    defaultAddress: Ember.computed('details.[]', 'persons.[]', 'departments.[]', 'synced', function () {\n      const type = 'address';\n      return this.getDefaultValue({\n        type\n      });\n    }),\n    defaultTransporterAccount: Ember.computed('_data.transporterAccounts.[]', '_data.transporterAccounts.@each.synced', function () {\n      let defaultAccount = this?._data?.transporterAccounts.find(transporterAccount => transporterAccount?._data?.isDefault);\n      if (!defaultAccount) {\n        defaultAccount = this?._data?.transporterAccounts[0];\n      }\n      return defaultAccount?._data?.account || '';\n    }),\n    defaultSender: Ember.computed('_data.defaultPickupLocationPersonId', function () {\n      const personId = this._data?.defaultPickupLocationPersonId;\n      if (!personId) {\n        return;\n      }\n      const findDetailByType = (details, type) => {\n        const detailType = details.find(detail => detail?._data?.type === type) || {};\n        return detailType?._data?.value || '';\n      };\n      const person = R.pipe(R.pathOr([], ['_data', 'persons']), R.find(R.pathEq(['_data', 'personId'], personId)))(this);\n      if (!person) {\n        return;\n      }\n      const name = person?._data?.name || '';\n      const details = person?._data?.details || [];\n      const telephone = findDetailByType(details, 'telephone');\n      const address = findDetailByType(details, 'address');\n      const transporterDeliveryTime = findDetailByType(details, 'deliveryTime');\n      const transporterPackageTemperature = findDetailByType(details, 'transporterAccount');\n      const transporterPackageSize = findDetailByType(details, 'packageSize');\n      const transporterPackageType = findDetailByType(details, 'packageType');\n      const transporterNotes = findDetailByType(details, 'note');\n      return {\n        transporterDeliveryTime,\n        transporterPackageTemperature,\n        transporterPackageSize,\n        transporterPackageType,\n        transporterNotes,\n        personId,\n        name,\n        telephone,\n        address,\n        model: person\n      };\n    }),\n    getDefaultValue({\n      type,\n      subType\n    }) {\n      const detailsData = this._getDetailsList({\n        type,\n        subType\n      });\n      return detailsData.defaultValue || '';\n    },\n    getDetailsList({\n      type,\n      subType,\n      defaultProp = false\n    }) {\n      const detailsData = this._getDetailsList({\n        type,\n        subType\n      });\n      if (defaultProp && detailsData.defaultValue != null) {\n        this.set(defaultProp, detailsData.defaultValue);\n      }\n      return detailsData.detailList;\n    },\n    _getDetailsList({\n      type,\n      subType\n    }) {\n      const detailList = [];\n      const defaultList = [];\n\n      // search for default address in contact.details, contacts.details.departments, etc...\n      // store all addresses in addresses list\n      const details = this.getData('details', []);\n      this._addDetailsToList({\n        type,\n        subType,\n        details,\n        detailList,\n        defaultList\n      });\n      const persons = this.getData('persons', []);\n      persons.forEach(person => {\n        const context = person.getData('name');\n        const details = person.getData('details', []);\n        this._addDetailsToList({\n          type,\n          subType,\n          details,\n          detailList,\n          defaultList,\n          context\n        });\n      });\n      const departments = this.getData('departments', []);\n      departments.forEach(department => {\n        const departmentName = department.getData('name');\n        const context = departmentName;\n        const details = department.getData('details', []);\n        this._addDetailsToList({\n          type,\n          subType,\n          details,\n          detailList,\n          defaultList,\n          context\n        });\n        const deptPersons = department.getData('persons', []);\n        deptPersons.forEach(person => {\n          const context = departmentName + ': ' + person.getData('name');\n          const details = person.getData('details', []);\n          this._addDetailsToList({\n            type,\n            subType,\n            details,\n            detailList,\n            defaultList,\n            context\n          });\n        });\n      });\n      const defaultValue = this.getDefaultDetailValue({\n        detailList,\n        defaultList\n      });\n      return {\n        defaultValue,\n        defaultList,\n        detailList\n      };\n    },\n    relatedComments: Ember.computed('_data._key', function () {\n      const related = [];\n\n      // get related comments for contact\n      const contactKey = this.getData('_key');\n      if (contactKey) {\n        related.push({\n          param: 'contactKey',\n          value: contactKey\n        });\n      }\n      return related;\n    }),\n    getDefaultDetailValue({\n      detailList,\n      defaultList\n    }) {\n      let defaultDetail = detailList.get('firstObject');\n      if (!Ember.isEmpty(defaultList)) {\n        defaultDetail = defaultList.get('firstObject');\n      }\n      if (defaultDetail) {\n        return defaultDetail.getData('value');\n      }\n      return '';\n    },\n    hasSales: Ember.computed('_data.relationships.[]', function () {\n      const relationships = this.getData('relationships') || [];\n      if (relationships.indexOf('customer') > -1) {\n        return true;\n      }\n      return false;\n    }),\n    hasPurchases: Ember.computed('_data.relationships.[]', function () {\n      const relationships = this.getData('relationships') || [];\n      if (relationships.indexOf('supplier') > -1) {\n        return true;\n      }\n      return false;\n    }),\n    hasPickupLocation: Ember.computed('_data.persons.[]', function () {\n      return R.pipe(R.pathOr([], ['_data', 'persons']), R.filter(R.pathEq(['_data', 'type'], 'pickupLocation')), RA.isNotNilOrEmpty)(this);\n    }),\n    isTransporterLocked: Ember.computed('_data.transporterExtension', function () {\n      return R.pathEq(['_data', 'isTransporterLocked'], true)(this);\n    }),\n    isTransporter: Ember.computed('_data.{_key,transporterExtension,isTransporter}', function () {\n      return this?._data?.isTransporter === 'on';\n    }),\n    allowAddTransporterAccounts: Ember.computed('_data.transporterExtension', function () {\n      const isHct = this._data?.transporterExtension === this.get('constants.transporterExtensions.hct');\n      if (isHct) {\n        return true;\n      }\n      return false;\n    }),\n    _addDetailsToList({\n      type,\n      subType = false,\n      details,\n      detailList,\n      defaultList,\n      context\n    }) {\n      details.forEach(detail => {\n        // context does not belong to _data\n        detail.set('context', context);\n        let matchSubType = true;\n        if (subType) {\n          if (detail.getData('subType') !== subType) {\n            matchSubType = false;\n          }\n        }\n        if (detail.getData('type') === type && matchSubType) {\n          detailList.push(detail);\n          if (detail.getData('isDefault')) {\n            defaultList.push(detail);\n          }\n        }\n      });\n    },\n    transformTransporterAccounts(rawData) {\n      if (Ember.isArray(rawData.transporterAccounts)) {\n        rawData.transporterAccounts = rawData.transporterAccounts.map(data => {\n          const isTCat = R.propEq('transporterExtension', 't-cat')(rawData);\n          if (isTCat) {\n            delete data.rate;\n          }\n          data.isDefault = rawData.defaultTransporterAccount === data.account;\n          return this.dataManager.setAsRecord({\n            adapterName: 'base',\n            data: data\n          });\n        });\n      }\n    },\n    transformTwEInvoiceCarrierType(rawData) {\n      // Handle old contacts without the twEInvoiceCarrierType\n      if (rawData?.taxNumber) {\n        rawData.twEInvoiceCarrierType = rawData.twEInvoiceCarrierType || 'b2b';\n      }\n      if (!rawData?.taxNumber && rawData?.member?.taxNumber) {\n        rawData.taxNumber = rawData?.member?.taxNumber;\n        rawData.twEInvoiceCarrierType = rawData?.member?.twEInvoiceCarrierType || 'b2b';\n      }\n      if (!rawData?.twEInvoiceCarrierId && rawData?.member?.twEInvoiceCarrierId) {\n        rawData.twEInvoiceCarrierId = rawData?.member?.twEInvoiceCarrierId;\n      }\n      if (!rawData?.twEInvoiceCarrierType && rawData?.member?.twEInvoiceCarrierType) {\n        rawData.twEInvoiceCarrierType = rawData?.member?.twEInvoiceCarrierType;\n      }\n      return rawData;\n    },\n    setAsTransporter() {\n      const isTransporter = this._data.isTransporter === 'on';\n      if (!isTransporter) {\n        this._removeAllTransporterDefaults();\n        return;\n      }\n      const transporterExtension = '';\n      this.setTransporterExtensionsDefaults(transporterExtension);\n      this.setData('transporterExtension', transporterExtension);\n      this.setData('isAllowedLinkMember', false);\n    },\n    setTransporterExtensionsDefaults(transporterExtension) {\n      const isNew = R.pipe(R.pathOr('', ['_data', '_key']), RA.isNilOrEmpty)(this);\n      if (!isNew) {\n        return;\n      }\n      this._removeAllTransporterDefaults();\n      transporterExtension = transporterExtension || this._data.transporterExtension;\n      this.setData('transporterExtension', transporterExtension);\n      if (!transporterExtension) {\n        return;\n      }\n      const transporterPersonModel = this.crud.setupNewRecord({\n        adapterName: 'contacts/persons',\n        data: {\n          type: 'pickupLocation',\n          name: this.settingsService?.settingsModel?._data?.company || ''\n        }\n      });\n      const setupPersonOptions = {\n        transporterExtension,\n        transporterSenderTelephone: this.settingsService?.settingsModel?._data?.companyTel\n      };\n      transporterPersonModel.setupPerson(setupPersonOptions);\n      const persons = this._data?.persons || [];\n      persons.pushObject(transporterPersonModel);\n      this.setData('persons', persons);\n      this.set('transporterPersonModel', transporterPersonModel);\n      switch (transporterExtension) {\n        case this.constants.transporterExtensions.sevenEleven:\n          return this._setTransporterDefaultsSevenEleven();\n        case this.constants.transporterExtensions.hct:\n          return this._setTransporterDefaultsHct();\n        case this.constants.transporterExtensions.tCat:\n          return this._setTransporterDefaultsTCat();\n        case this.constants.transporterExtensions.payuniSevenEleven:\n          return this._setTransporterDefaultsSevenEleven();\n        default:\n          return;\n      }\n    },\n    _removeAllTransporterDefaults() {\n      this.setData('transporterExtension', '');\n      const transporterPersonModel = this.transporterPersonModel;\n      if (transporterPersonModel) {\n        const persons = this._data?.persons || [];\n        persons.removeObject(transporterPersonModel);\n        this.setData('persons', persons);\n      }\n      const options = {\n        reset: true\n      };\n      this._setTransporterDefaultsSevenEleven(options);\n      this._setTransporterDefaultsHct(options);\n      this._setTransporterDefaultsTCat(options);\n    },\n    _setTransporterDefaultsSevenEleven() {\n      return;\n    },\n    _setTransporterDefaultsHct() {},\n    _setTransporterDefaultsTCat({\n      reset = false\n    } = {}) {\n      const transporterDeliveryTimes = this.crud.lists['extensions-apps-tw-t-cat-lists-delivery-time'];\n      const transporterDeliveryTimeDefault = R.pathOr('anytime', [1, '_data', 'value'])(transporterDeliveryTimes);\n      const transporterAccounts = this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere'];\n      const transporterAccountDefault = R.pathOr('anytime', [0, '_data', 'value'])(transporterAccounts);\n      const transporterPackageSize = this.crud.lists['extensions-apps-tw-t-cat-lists-package-size'];\n      const transporterPackageSizeDefault = R.pathOr('anytime', [0, '_data', 'value'])(transporterPackageSize);\n      const transporterPackageType = this.crud.lists['extensions-apps-tw-t-cat-lists-product-type'];\n      const transporterPackageTypeDefault = R.pathOr('anytime', [0, '_data', 'value'])(transporterPackageType);\n      const updateData = {\n        defaultDeliveryTime: transporterDeliveryTimeDefault,\n        defaultTransporterAccount: transporterAccountDefault,\n        packageSizeDefault: transporterPackageSizeDefault,\n        productTypeDefault: transporterPackageTypeDefault\n      };\n      for (const updateDataKey in updateData) {\n        let value = updateData[updateDataKey];\n        if (reset) {\n          value = '';\n        }\n        this.setData(updateDataKey, value);\n      }\n    },\n    resetSevenElevenReturnStore() {\n      const returnStore = {\n        storeId: '',\n        storeName: '',\n        storeAddress: ''\n      };\n      this.set('_data.sevenEleven.returnStore', returnStore);\n    },\n    transform7ElevenTransporter(data) {\n      const sevenEleven = R.propOr({}, 'sevenEleven')(data);\n      const sevenElevenDefaults = this.defaults().sevenEleven;\n      return R.mergeDeepRight(sevenElevenDefaults, sevenEleven);\n    },\n    setupTaxDetails(companyDetails = {}) {\n      this.eInvoicesService.setupTaxDetails(this, companyDetails);\n    },\n    transporterData: Ember.computed('_data.transporterExtension,isTCat', function () {\n      const isTCat = this._data?.transporterExtension === 't-cat';\n      const transporter = {\n        transporterSenderName: '',\n        transporterSenderTelephone: '',\n        transporterSenderAddress: '',\n        transporterDeliveryTime: '',\n        transporterPackageTemperature: '',\n        transporterPackageSize: '',\n        transporterPackageType: '',\n        transporterNotes: ''\n      };\n      if (isTCat) {\n        transporter.transporterSenderName = this?._data?.senderName;\n        transporter.transporterSenderTelephone = this?._data?.senderTelephone;\n        transporter.transporterSenderAddress = this?._data?.senderAddress;\n        transporter.transporterSenderPostNumber = this?._data?.senderPostNumber;\n        transporter.transporterDeliveryTime = this?._data?.defaultDeliveryTime;\n        transporter.transporterPackageSize = this?._data?.packageSizeDefault;\n        transporter.transporterPackageType = this?._data?.productTypeDefault;\n        transporter.transporterPackageTemperature = this?._data?.defaultTransporterAccount || this?._data?.thermosphereDefault;\n        if (!transporter.transporterPackageTemperature) {\n          transporter.transporterPackageTemperature = R.pathOr('', ['_data', 'transporterAccounts', 0, '_data', 'account'])(this);\n        }\n      }\n      return transporter;\n    }),\n    isTCat: Ember.computed('_data.transporterExtension', function () {\n      return this._data?.transporterExtension === this.get('constants.transporterExtensions.tCat');\n    }),\n    isHct: Ember.computed('_data.transporterExtension', function () {\n      return this._data?.transporterExtension === this.get('constants.transporterExtensions.hct');\n    }),\n    isSevenEleven: Ember.computed('_data.transporterExtension', function () {\n      return this._data?.transporterExtension === this.get('constants.transporterExtensions.sevenEleven');\n    }),\n    allowMultiplePickupLocations: Ember.computed('_data.isTransporter', function () {\n      if (this?._data?.isTransporter) {\n        return true;\n      }\n      return false;\n    }),\n    hasPickupLocations: Ember.computed('_data.{persons.[],type}', function () {\n      const hasPersonsTypePickupLocation = R.pipe(R.pathOr([], ['_data', 'persons']), R.filter(R.pathEq(['_data', 'type'], 'pickupLocation')), RA.isNotNilOrEmpty)(this);\n      return hasPersonsTypePickupLocation;\n    }),\n    /**\n     * Retrieves the transporter accounts based on the current configuration.\n     *\n     * @returns {Array} The transporter accounts.\n     */\n    transporterAccounts: Ember.computed('synced', '_data.sevenEleven.sftpFrozen.{username,password},_data.sevenEleven.checkoutFrozen.{printPassword,shopId,subShopId}', '_data.transporterCredentials.sftpFrozen.{username,password}', '_data.transporterCredentials.checkoutFrozen.{printPassword,shopId,subShopId}', function () {\n      const transporterAccountsByExtension = {\n        [this.constants.transporterExtensions.hct]: this._data.transporterAccounts,\n        [this.constants.transporterExtensions.tCat]: this.crud.lists['extensions-apps-tw-t-cat-lists-thermosphere'],\n        [this.constants.transporterExtensions.sevenEleven]: this.getSevenElevenTransporterAccounts(),\n        [this.constants.transporterExtensions.payuniSevenEleven]: this.crud.lists['extensions-apps-tw-payuni-seven-eleven-accounts']\n      };\n      const transporterExtension = this._data?.transporterExtension;\n      return R.pathOr([], [transporterExtension])(transporterAccountsByExtension);\n    }),\n    transporterEditorExtensionDynamicComponent: Ember.computed('_data.transporterExtension', function () {\n      const transporterEditorExtensionDynamicComponents = {\n        [this.constants.transporterExtensions.hct]: {\n          component: 'transporters/hct/pickup-location/editor-extension',\n          shouldLoop: true\n        },\n        [this.constants.transporterExtensions.tCat]: {\n          component: 'transporters/t-cat/pickup-location/editor-extension',\n          shouldLoop: true\n        },\n        [this.constants.transporterExtensions.sevenEleven]: {\n          component: 'transporters/seven-eleven/pickup-location/editor-extension',\n          shouldLoop: false\n        },\n        [this.constants.transporterExtensions.payuniSevenEleven]: {\n          component: 'transporters/payuni-seven-eleven/pickup-location/editor-extension',\n          shouldLoop: false\n        }\n      };\n      const transporterExtension = this._data?.transporterExtension;\n      return R.pathOr('', [transporterExtension])(transporterEditorExtensionDynamicComponents);\n    }),\n    pickupLocationList: Ember.computed('_data.{persons.[],type}', function () {\n      return R.pipe(R.pathOr([], ['_data', 'persons']), R.filter(R.pathEq(['_data', 'type'], 'pickupLocation')))(this);\n    }),\n    transporterLabel: Ember.computed('_data.{_key,transporterExtension,isTransporter}', function () {\n      if (this?._data?.isTransporter !== 'on') {\n        return '';\n      }\n      if (this?._data?.transporterExtension) {\n        return this.intl.t(this?._data?.transporterExtension);\n      }\n      return this.intl.t('other');\n    }),\n    docTotalsArray: Ember.computed('_data.docTotals', 'crud.lists.contacts-lists-filters-doc-totals-props.[]', function () {\n      // to render in template using {{#each}}\n      const docTotals = this?._data?.docTotals || {};\n      const docTotalsPropsValues = R.pipe(R.pathOr([], ['crud', 'lists', 'contacts-lists-filters-doc-totals-props']), R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('value'), R.reject(RA.isNilOrEmpty))(this);\n      return R.pipe(R.toPairs, R.map(([key, value]) => ({\n        key,\n        value\n      })), R.filter(data => R.includes(data.key, docTotalsPropsValues)))(docTotals);\n    }),\n    getSevenElevenTransporterAccounts() {\n      return R.pipe(R.pathOr([], ['crud', 'lists', 'extensions-apps-tw-seven-eleven-lists-thermosphere']), R.filter(model => this._isValidateSevenElevenAccount(model)))(this);\n    },\n    _isValidateSevenElevenAccount(model) {\n      let sevenElevenData = this._data.transporterCredentials;\n      if (RA.isNilOrEmpty(sevenElevenData)) {\n        // Old Key, should not be use only for old data\n        sevenElevenData = R.pathOr({}, ['_data', 'sevenEleven'])(this);\n      }\n      if (model._data.value === 'frozen') {\n        const validCheckoutFrozen = this._hasValidCredentialsType(sevenElevenData, 'checkoutFrozen');\n        return validCheckoutFrozen;\n      } else {\n        const validCheckout = this._hasValidCredentialsType(sevenElevenData, 'checkout');\n        const validPickup = this._hasValidCredentialsType(sevenElevenData, 'pickup');\n        // Enable when next steps is fix on wizard modal\n        return validCheckout || validPickup;\n      }\n    },\n    _hasValidSftpType(sevenElevenData, type) {\n      return R.pipe(R.pathOr({}, [type]), R.allPass([R.pipe(R.prop('username'), RA.isNotNilOrEmpty), R.pipe(R.prop('password'), RA.isNotNilOrEmpty)]))(sevenElevenData);\n    },\n    _hasValidCredentialsType(sevenElevenData, type) {\n      return R.pipe(R.pathOr({}, [type]), R.allPass([R.pipe(R.prop('printPassword'), RA.isNotNilOrEmpty), R.pipe(R.prop('shopId'), RA.isNotNilOrEmpty), R.pipe(R.prop('subShopId'), RA.isNotNilOrEmpty)]))(sevenElevenData);\n    },\n    addTransporterPerson(model) {\n      model = this._createPersonModel(model);\n      const personsOriginal = this?._data?.persons || [];\n      const persons = personsOriginal.concat([model]);\n      this.setData('persons', persons);\n      return model;\n    },\n    replaceTransporterPerson(model) {\n      const persons = this?._data?.persons?.map?.(person => {\n        if (person?._data?.personId === model?._data?.personId) {\n          return model;\n        }\n        return person;\n      });\n      this._data = R.mergeRight(this._data, {\n        persons\n      });\n    },\n    removeTransporterPerson(model) {\n      const persons = this?._data?.persons?.filter?.(person => person._data.personId !== model._data.personId);\n      this.setData('persons', persons);\n    },\n    /**\n     * Retrieves the person ID by the transporter account.\n     * @param {String} transporterAccount - The transporter account to search for.\n     * @returns {String} The person ID if found, an empty string otherwise.\n     */\n    getPersonIdByTransporterAccount(transporterAccount) {\n      const persons = this._data?.persons || [];\n      const person = persons.find(person => person._data?.details?.find?.(detail => detail._data?.value === transporterAccount));\n      return person?._data?.personId || '';\n    },\n    setTransporterKeysToPersonDetailsModel() {\n      R.pipe(R.pathOr([], ['_data', 'persons']), R.filter(R.pathEq(['_data', 'type'], 'pickupLocation')), R.forEach(personModel => {\n        personModel.setTransporterKeyToDetailsModel();\n      }))(this);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupDirtyBigOrdrPlanData\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupDirtyBigOrdrPlanData\"), _obj), _applyDecoratedDescriptor(_obj, \"setAsTransporter\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"setAsTransporter\"), _obj), _applyDecoratedDescriptor(_obj, \"setTransporterExtensionsDefaults\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"setTransporterExtensionsDefaults\"), _obj), _applyDecoratedDescriptor(_obj, \"_removeAllTransporterDefaults\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"_removeAllTransporterDefaults\"), _obj), _applyDecoratedDescriptor(_obj, \"_setTransporterDefaultsSevenEleven\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"_setTransporterDefaultsSevenEleven\"), _obj), _applyDecoratedDescriptor(_obj, \"_setTransporterDefaultsHct\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"_setTransporterDefaultsHct\"), _obj), _applyDecoratedDescriptor(_obj, \"_setTransporterDefaultsTCat\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"_setTransporterDefaultsTCat\"), _obj), _applyDecoratedDescriptor(_obj, \"resetSevenElevenReturnStore\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"resetSevenElevenReturnStore\"), _obj), _applyDecoratedDescriptor(_obj, \"transform7ElevenTransporter\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"transform7ElevenTransporter\"), _obj), _applyDecoratedDescriptor(_obj, \"setupTaxDetails\", [_dec0], Object.getOwnPropertyDescriptor(_obj, \"setupTaxDetails\"), _obj), _applyDecoratedDescriptor(_obj, \"getSevenElevenTransporterAccounts\", [_dec1], Object.getOwnPropertyDescriptor(_obj, \"getSevenElevenTransporterAccounts\"), _obj), _applyDecoratedDescriptor(_obj, \"_isValidateSevenElevenAccount\", [_dec10], Object.getOwnPropertyDescriptor(_obj, \"_isValidateSevenElevenAccount\"), _obj), _applyDecoratedDescriptor(_obj, \"_hasValidSftpType\", [_dec11], Object.getOwnPropertyDescriptor(_obj, \"_hasValidSftpType\"), _obj), _applyDecoratedDescriptor(_obj, \"_hasValidCredentialsType\", [_dec12], Object.getOwnPropertyDescriptor(_obj, \"_hasValidCredentialsType\"), _obj), _applyDecoratedDescriptor(_obj, \"addTransporterPerson\", [_dec13], Object.getOwnPropertyDescriptor(_obj, \"addTransporterPerson\"), _obj), _applyDecoratedDescriptor(_obj, \"replaceTransporterPerson\", [_dec14], Object.getOwnPropertyDescriptor(_obj, \"replaceTransporterPerson\"), _obj), _applyDecoratedDescriptor(_obj, \"removeTransporterPerson\", [_dec15], Object.getOwnPropertyDescriptor(_obj, \"removeTransporterPerson\"), _obj), _applyDecoratedDescriptor(_obj, \"getPersonIdByTransporterAccount\", [_dec16], Object.getOwnPropertyDescriptor(_obj, \"getPersonIdByTransporterAccount\"), _obj), _applyDecoratedDescriptor(_obj, \"setTransporterKeysToPersonDetailsModel\", [_dec17], Object.getOwnPropertyDescriptor(_obj, \"setTransporterKeysToPersonDetailsModel\"), _obj), _obj));\n});","define(\"client/pods/contacts/persons/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/persons/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","// import Mixin from '@ember/object/mixin'\n\n// /**\n//  * helper methods for setting up lists for tabs and panels\n//  */\n// export default Mixin.create({\n\n//   // init() {\n//   //\n//   //   this._super(...arguments);\n//   //\n//   //   this.setData('persons', []);\n//   // },\n\n//   addPerson (data) {\n//     const person = this.dataManager.setAsRecord({\n//       adapterName: 'contacts/persons',\n//       data: data\n//     })\n//     const persons = this.getData('persons')\n\n//     persons.pushObject(person)\n//   },\n\n//   removePerson (person) {\n//     const persons = this.getData('persons')\n//     persons.removeObject(person)\n//   }\n// })\ndefine(\"client/pods/contacts/persons/contacts-persons\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/contacts/persons/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/contacts-is-parent\", \"client/mixins/contacts-details\", \"client/utils/nventor\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, _contactsIsParent, _contactsDetails, _nventor, R, RA) {\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(_contactsIsParent.default, _contactsDetails.default, {\n    defaults() {\n      return {\n        personId: _nventor.default.random.alphaNum(8)\n      };\n    },\n    populate(data, attrs) {\n      data = this.transformPersonDetails(data, attrs);\n      data = this.transformPersonLabel(data);\n      this._super(data, attrs);\n    },\n    transformPersonLabel(data) {\n      if (_nventor.default.isNotNilOrEmpty(data?.label)) {\n        return data;\n      }\n      const transporterPackageTemperature = R.pipe(R.pathOr([], ['details']), R.find(R.pathEq(['_data', 'subType'], 'transporterAccount')), R.pathOr('', ['value']))(data);\n      if (RA.isNotNilOrEmpty(transporterPackageTemperature) && RA.isNilOrEmpty(data?.label)) {\n        data.label = `${data.name}-${this.intl.t(transporterPackageTemperature)}`;\n        return data;\n      }\n      return data;\n    },\n    transformPersonDetails(data, {\n      transporterExtension\n    } = {}) {\n      if (!transporterExtension) {\n        return data;\n      }\n      const personDefaultDetailsByTransporterAccounts = this.getPersonDetailsByTransporterExtension(transporterExtension);\n      const existingPersonDetails = data?.details || [];\n      // Migrate details with new or missing keys\n      R.forEach(detailModel => {\n        // When create from dirty is not a model\n        if (!detailModel?.setData) {\n          return;\n        }\n        if (detailModel?._data?.customLabel) {\n          return;\n        }\n        const defaultDetail = R.find(model => model?.subType === detailModel?._data?.subType)(personDefaultDetailsByTransporterAccounts);\n        detailModel.setData('customLabel', defaultDetail?.customLabel);\n      })(existingPersonDetails);\n      if (RA.isNilOrEmpty(existingPersonDetails)) {\n        return data;\n      }\n      if (existingPersonDetails.length === personDefaultDetailsByTransporterAccounts.length) {\n        return data;\n      }\n      const updatedPersonDetails = R.map(personDefaultDetail => {\n        const isExistingDetail = existingPersonDetails.find(model => model._data.subType === personDefaultDetail.subType);\n        if (isExistingDetail) {\n          return isExistingDetail;\n        }\n        this.addDetail(personDefaultDetail);\n        return this._data.details.lastObject;\n      })(personDefaultDetailsByTransporterAccounts);\n      data.details = updatedPersonDetails;\n      return data;\n    },\n    setTransporterKeyToDetailsModel() {\n      const details = this?._data?.details || [];\n      const isPickupLocation = this?._data?.type === 'pickupLocation';\n      if (!isPickupLocation) {\n        return details;\n      }\n      const updatedDetails = details.map(detailModel => {\n        const hasTransporterKey = R.pipe(R.prop('transporterKey'), RA.isNotNilOrEmpty)(detailModel);\n        if (hasTransporterKey) {\n          return detailModel;\n        }\n        const transporterKeyHash = {\n          address: 'transporterSenderAddress',\n          telephone: 'transporterSenderTelephone',\n          transporterPackageTemperature: 'transporterAccount'\n        };\n        const subType = detailModel?._data?.subType;\n        const transporterKey = transporterKeyHash[subType];\n        if (transporterKey) {\n          detailModel.setData('transporterKey', transporterKey);\n        }\n        return detailModel;\n      });\n      this.setData('details', updatedDetails);\n    },\n    componentPath: 'contacts/persons/editor-person',\n    component: Ember.computed('componentPath', function () {\n      return this.componentPath;\n    }),\n    label: Ember.computed('_data.{name,label}', function () {\n      const label = this?._data?.label;\n      if (label) {\n        return `${label} (${this?._data?.name})`;\n      }\n      return this?._data?.name;\n    }),\n    defaultForDocs: Ember.computed('_data.{isDefault,isDefaultFor,isDefaultForDocs.[]}', function () {\n      if (this.get('_data.isDefault')) {\n        if (this.get('_data.isDefaultFor') === 'all') {\n          return ['all'];\n        }\n        return this.get('_data.isDefaultForDocs') || [];\n      }\n      return [];\n    }),\n    /**\n     * Computes the convenience store data based on the details data.\n     * READ ONLY\n     *\n     * @returns {Object} The computed convenience store data.\n     */\n    convenienceStoreData: Ember.computed('_data.details.@each.value', 'synced', function () {\n      const data = R.pipe(R.pathOr([], ['_data', 'details']), R.map(detailModel => {\n        const sevenEleven = ['storeId', 'storeName', 'storeAddress'];\n        const subType = detailModel?._data?.subType;\n        const isSevenElevenDetail = sevenEleven.includes(subType);\n        if (isSevenElevenDetail) {\n          return {\n            [subType]: detailModel._data.value\n          };\n        }\n      }), R.reject(RA.isNilOrEmpty))(this);\n      return Object.assign({}, ...data);\n    }),\n    tCatPersonDetails() {\n      return [{\n        customLabel: 'sender telephone',\n        subType: 'telephone',\n        value: '',\n        transporterKey: 'transporterSenderTelephone',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'sender address',\n        subType: 'address',\n        value: '',\n        transporterKey: 'transporterSenderAddress',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      },\n      // DEPRECATED PARAM? (should accomodate for old persons object if still using it)\n      // {\n      //   customLabel: 'preferred delivery time',\n      //   icon: 'fas fa-clock',\n      //   subType: 'deliveryTime',\n      //   value: 'anytime',\n      //   translate: true,\n      //   transporterKey: 'transporterDeliveryTime',\n      //   type: 'pickupLocation',\n      //   isDefault: true\n      // },\n      {\n        customLabel: 'preferred delivery time',\n        icon: 'fas fa-clock',\n        subType: 'deliveryTime',\n        value: 'anytime',\n        translate: true,\n        transporterKey: 'transporterPreferredArrivalTimePeriod',\n        type: 'pickupLocation',\n        isDefault: true\n      }, {\n        customLabel: 'transporter account',\n        icon: 'fas fa-thermometer-half',\n        subType: 'transporterAccount',\n        value: 'unrefrigerated',\n        translate: true,\n        transporterKey: 'transporterAccount',\n        type: 'pickupLocation',\n        isDefault: true\n      }, {\n        customLabel: 'package size',\n        icon: 'fas fa-ruler-combined',\n        subType: 'packageSize',\n        value: '60cm',\n        transporterKey: 'transporterPackageSize',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'product type',\n        icon: 'fas fa-cube',\n        subType: 'packageType',\n        value: 'specialty and local good',\n        translate: true,\n        transporterKey: 'transporterPackageType',\n        type: 'pickupLocation',\n        isDefault: true\n      }];\n    },\n    hctPersonDetails() {\n      return [{\n        customLabel: 'sender telephone',\n        subType: 'telephone',\n        value: '',\n        transporterKey: 'transporterSenderTelephone',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'sender address',\n        subType: 'address',\n        value: '',\n        transporterKey: 'transporterSenderAddress',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'transporter account',\n        icon: 'fas fa-user-circle',\n        subType: 'transporterAccount',\n        value: '',\n        translate: false,\n        transporterKey: 'transporterAccount',\n        type: 'pickupLocation',\n        isDefault: true\n      }, {\n        customLabel: 'transporter package temperature',\n        icon: 'fas fa-user-circle',\n        subType: 'transporterPackageTemperature',\n        value: 'unrefrigerated',\n        translate: true,\n        transporterKey: 'transporterPackageTemperature',\n        type: 'pickupLocation',\n        isDefault: true\n      }];\n    },\n    sevenElevenPersonDetails() {\n      return [{\n        customLabel: 'sender telephone',\n        subType: 'telephone',\n        value: '',\n        transporterKey: 'transporterSenderTelephone',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'sender company',\n        subType: 'transporterSenderCompany',\n        value: '',\n        transporterKey: 'transporterSenderCompany',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'transporter package temperature',\n        icon: 'fas fa-thermometer-half',\n        subType: 'transporterAccount',\n        value: 'unrefrigerated',\n        translate: true,\n        transporterKey: 'transporterAccount',\n        type: 'pickupLocation',\n        isDefault: true\n      }, {\n        customLabel: 'return storeId',\n        icon: 'fas fa-user-circle',\n        subType: 'storeId',\n        value: '',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'return storeName',\n        icon: 'fas fa-user-circle',\n        subType: 'storeName',\n        value: '',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'return storeAddress',\n        icon: 'fas fa-user-circle',\n        subType: 'storeAddress',\n        value: '',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }];\n    },\n    payuniSevenElevenPersonDetails() {\n      return [{\n        customLabel: 'sender telephone',\n        subType: 'telephone',\n        value: '',\n        transporterKey: 'transporterSenderTelephone',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'transporter type',\n        icon: 'fa-solid fa-people-carry-box',\n        subType: 'transporterType',\n        value: 'B2C',\n        translate: false,\n        transporterKey: 'transporterType',\n        type: 'pickupLocation',\n        isDefault: true\n      }, {\n        customLabel: 'transporter account',\n        icon: 'fas fa-thermometer-half',\n        subType: 'transporterAccount',\n        value: 'unrefrigerated',\n        translate: true,\n        transporterKey: 'transporterAccount',\n        type: 'pickupLocation',\n        isDefault: true\n      }, {\n        customLabel: 'return storeId',\n        icon: 'fas fa-user-circle',\n        subType: 'storeId',\n        value: '',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'return storeName',\n        icon: 'fas fa-user-circle',\n        subType: 'storeName',\n        value: '',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }, {\n        customLabel: 'return storeAddress',\n        icon: 'fas fa-user-circle',\n        subType: 'storeAddress',\n        value: '',\n        type: 'pickupLocation',\n        isDefault: true,\n        translate: false\n      }];\n    },\n    /**\n     *\n     * @param {Object} options\n     * @param {string} options.transporterExtension\n     * @param {string?} options.transporterSenderTelephone\n     */\n    setupPerson({\n      transporterExtension,\n      transporterSenderTelephone = ''\n    }) {\n      const personDefaultDetailsByTransporterAccounts = this.getPersonDetailsByTransporterExtension(transporterExtension);\n      R.forEach(detailData => {\n        if (transporterSenderTelephone && detailData.transporterKey === 'transporterSenderTelephone') {\n          detailData.value = transporterSenderTelephone;\n        }\n        this.addDetail(detailData);\n      })(personDefaultDetailsByTransporterAccounts);\n    },\n    clearConvenienceStoreData() {\n      const details = R.pipe(R.pathOr([], ['_data', 'details']), R.map(detailModel => {\n        const sevenEleven = ['storeId', 'storeName', 'storeAddress'];\n        const subType = detailModel?._data?.subType;\n        const isSevenElevenDetail = sevenEleven.includes(subType);\n        if (isSevenElevenDetail) {\n          detailModel.setData('value', '');\n          return detailModel;\n        }\n        return detailModel;\n      }), R.reject(RA.isNilOrEmpty))(this);\n      this.setData('details', details);\n    },\n    getTransporterData() {\n      const transporterSenderName = this._data.name;\n      const transporterData = R.pipe(R.pathOr([], ['_data', 'details']), R.filter(R.hasPath(['_data', 'transporterKey'])), R.reduce((obj, model) => {\n        const transporterKey = R.pathOr('', ['_data', 'transporterKey'])(model);\n        obj[transporterKey] = R.pathOr('', ['_data', 'value'])(model);\n        return obj;\n      }, {}))(this);\n      return R.mergeRight({\n        transporterSenderName\n      }, transporterData);\n    },\n    getPersonDetailsByTransporterExtension(transporterExtension) {\n      const personDefaultDetailsByTransporterAccounts = {\n        [this.constants.transporterExtensions.hct]: this.hctPersonDetails(),\n        [this.constants.transporterExtensions.tCat]: this.tCatPersonDetails(),\n        [this.constants.transporterExtensions.sevenEleven]: this.sevenElevenPersonDetails(),\n        [this.constants.transporterExtensions.payuniSevenEleven]: this.payuniSevenElevenPersonDetails()\n      };\n      return personDefaultDetailsByTransporterAccounts[transporterExtension] || [];\n    },\n    getDetailModelBySubType(subType) {\n      return R.pipe(R.pathOr([], ['_data', 'details']), R.find(R.pathEq(['_data', 'subType'], subType)))(this);\n    }\n  });\n});","define(\"client/pods/contacts/portals/users/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/portals/users/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/portals/users/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        supplierPortalEmail: '',\n        supplierPortalPassword: '',\n        supplierPortalExpiryDateZ: ''\n      };\n    }\n  });\n});","define(\"client/pods/contacts/preview/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/report/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/report/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/report',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/report/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/report/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/report/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        query: ''\n      };\n    }\n  });\n});","define(\"client/pods/contacts/report/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/contacts/rewards/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/rewards',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/rewards/lists/history-periods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'all',\n        value: 0\n      }, {\n        label: 'last 1 month',\n        value: 1\n      }, {\n        label: 'last 3 months',\n        value: 3\n      }, {\n        label: 'last 6 months',\n        value: 6\n      }, {\n        label: 'last 1 year',\n        value: 12\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/contacts/rewards/recipients/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/rewards/recipients/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/rewards/recipients',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/rewards/recipients/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/rewards/recipients/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/rewards/recipients/filters/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        includeNonMember: false,\n        includeContactsWithoutOrder: false,\n        isSubscribed: false,\n        isBirthday: true,\n        isNotification: false,\n        rewardEvent: 'promotion'\n      };\n    }\n  });\n});","define(\"client/pods/contacts/rewards/recipients/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/contacts/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emberConcurrencyDecorators, R, RA) {\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, _dec0, _dec1, _dec10, _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 ContactsService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class ContactsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"search\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"server\", _descriptor5, this);\n      _initializerDefineProperty(this, \"all\", _descriptor6, this);\n      _initializerDefineProperty(this, \"customer\", _descriptor7, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dataGroupsFilters\", _descriptor9, this);\n    }\n    // @restartableTask\n    // * findTask (contactKey) {\n    //   // const filters = this.setupFilters()\n    //   const results = yield this.crud.findTask.perform(\n    //     {\n    //       adapterName: 'contacts',\n    //       appendPath: `/${contactKey}`\n    //     }\n    //   )\n    //   return results\n    // }\n\n    *searchContactsByGroupsTask({\n      filters,\n      relationship = 'all',\n      query = '',\n      group,\n      groupKey,\n      hasEmailOnly,\n      resultsProperty = '',\n      component,\n      resultsToggle = false,\n      global = true,\n      match = [],\n      onAfter\n    }) {\n      // if (RA.isNilOrEmpty(filters)) {\n      //   filters = this.dataGroupsFilters\n      // }\n\n      filters.setData('group', group);\n      filters.setData('groupKey', groupKey);\n      filters.setData('hasEmailOnly', hasEmailOnly);\n      const results = yield this.crud.searchInputTask.perform({\n        adapterName: 'contacts/data/groups',\n        filters,\n        query,\n        resultsProperty,\n        component,\n        resultsToggle,\n        allowEmptyQuery: true\n      });\n      if (global && resultsProperty) {\n        this[resultsProperty] = results;\n      }\n      if (onAfter) {\n        return onAfter(results);\n      }\n      return results;\n    }\n    setupFilters(defaultFiltersData = {}) {\n      defaultFiltersData = RA.isNotNilOrEmpty(defaultFiltersData) ? defaultFiltersData : {\n        sort: [{\n          by: 'name',\n          direction: 'ASC'\n        }],\n        status: [this.constants.status.active]\n      };\n      return this.search.setupFilters({\n        adapterName: 'contacts/filters',\n        defaultFiltersData\n      });\n    }\n    *searchInputTask({\n      relationship = 'all',\n      query = '',\n      filters,\n      resultsProperty = '',\n      component,\n      resultsToggle = false,\n      global = true,\n      match = []\n    }) {\n      const relationships = [];\n      if (relationship === 'all') {\n        relationships.push('customer');\n        relationships.push('supplier');\n      } else {\n        relationships.push(relationship);\n      }\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.setupFilters();\n      }\n      filters.setData('relationships', relationships);\n      filters.setData('query', query);\n      filters.setData('match', match);\n      const results = yield this.crud.searchInputTask.perform({\n        adapterName: 'contacts',\n        filters,\n        query,\n        resultsProperty,\n        component,\n        resultsToggle,\n        allowEmptyQuery: true\n      });\n      // if (global && resultsProperty) {\n      //   this[resultsProperty] = results\n      // }\n\n      // if (component) {\n      //   component.set('contactsFilters', filters)\n      // }\n\n      return results;\n    }\n    loadContactProps({\n      props,\n      model\n    }, selected) {\n      R.mapObjIndexed((toProp, fromProp) => {\n        const fromValue = selected.getData(fromProp);\n        model.set(toProp, fromValue);\n      })(props);\n    }\n    unloadContactProps({\n      props,\n      model\n    }, selected) {\n      R.mapObjIndexed((toProp, fromProp) => {\n        model.set(toProp, '');\n      })(props);\n    }\n    *loadContactTask(filters) {\n      const results = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'contacts',\n        filters: filters\n      });\n      return results;\n    }\n    get birthdayPeriodYears() {\n      const pastYears = this.dateService.getPastYears({\n        number: 130\n      });\n      const data = [];\n      pastYears.forEach(period => {\n        const item = {\n          value: period.yyyy,\n          label: period.yyyy\n        };\n        data.pushObject(item);\n      });\n      return data;\n    }\n    *notifySupplierTask(model, portalUser) {\n      const key = model.getData('_key');\n      if (!key) {\n        return;\n      }\n      const supplierPortalEmail = portalUser?._data?.supplierPortalEmail;\n      if (!supplierPortalEmail) {\n        return;\n      }\n      yield this.server.call('POST', `api/protected/contacts/suppliers/${key}/notify?supplierPortalEmail=${supplierPortalEmail}`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"all\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"customer\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"supplier\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"dataGroupsFilters\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchContactsByGroupsTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchContactsByGroupsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupFilters\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setupFilters\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchInputTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadContactProps\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"loadContactProps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadContactProps\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadContactProps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadContactTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadContactTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"notifySupplierTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"notifySupplierTask\"), _class.prototype), _class);\n});","define(\"client/pods/contacts/statements/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/statements/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/statements',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/statements/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/statements/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/contacts/statements/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/contacts/statements/model\", [\"exports\", \"client/pods/base/model\", \"ramda-adjunct\", \"ramda\"], function (_exports, _model, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _model.default.extend({\n    dataManager: Ember.inject.service(),\n    populate(data, attrs) {\n      data.transactions = this._transformTransactions(data);\n      this._super(data, attrs);\n    },\n    _transformTransactions(transactions) {\n      return R.pipe(R.propOr([], 'transactions'), R.map(transaction => {\n        const docType = transaction.docType || '';\n        const docName = transaction.docName || '';\n        if (RA.isNotNilOrEmpty(docName) && RA.isNotNilOrEmpty(docType)) {\n          return this.dataManager.setAsRecord({\n            adapterName: `documents/${docType}/${docName}`,\n            data: transaction\n          });\n        } else {\n          return this.dataManager.setAsRecord({\n            adapterName: 'ledgers/journals/cashbook',\n            data: transaction\n          });\n        }\n      }))(transactions);\n    }\n  });\n});","define(\"client/pods/contacts/transporters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters',\n    modelObj: _model.default,\n    idPrefix: 'transporter',\n    idParam: '_id'\n  });\n});","define(\"client/pods/contacts/transporters/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    resourcePath: 'api/protected/contacts/transporters',\n    idParam: false,\n    findAll: function () {\n      const data = {};\n      return this._super(data).then(results => {\n        const noneOption = {\n          _key: '',\n          name: 'pick up',\n          translate: true\n        };\n        results.unshift(noneOption);\n        return results;\n      });\n    }\n  });\n});","define(\"client/pods/contacts/transporters/model\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/contacts/wizard/transporter/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/wizard/transporter/model\"], function (_exports, _adapter, _adaptersNew, _model) {\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 ContactsWizardTransporterAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", false);\n    }\n  }\n  _exports.default = ContactsWizardTransporterAdapter;\n});","define(\"client/pods/contacts/wizard/transporter/hct/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\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 ContactsWizardTransporterHctAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", false);\n    }\n    // entities: use FormEntity > context\n    // updateProps: use FormRow || FormInputRow > context\n    // (should be the same as saved data variable key)\n    findAll() {\n      const data = [{\n        component: 'contacts/panels-new',\n        label: 'transporter info',\n        value: 'details',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['basicInformation', 'transporter'],\n        updateProps: ['name'],\n        _isNewTab: true,\n        modelData: {\n          name: 'HCT',\n          relationships: [this.constants.contactsRelationship.supplier],\n          isTransporter: this.constants.isTransporter.on,\n          transporterExtension: this.constants.transporterExtensions.hct,\n          transporterCredentials: {\n            username: '',\n            password: ''\n          },\n          transporterSettings: {}\n        }\n      }, {\n        component: 'contacts/panels-new',\n        label: 'transporter credentials',\n        value: 'transporterCredentials',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterCredentials_group'],\n        updateProps: ['transporterCredentials.username', 'transporterCredentials.password'],\n        _isNewTab: true\n      }, {\n        component: 'contacts/panels-new',\n        label: 'transporter settings',\n        value: 'transporterSettings',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterSettings_group'],\n        updateProps: ['transporterSettings.newWaybillPerPackage'],\n        _isNewTab: true\n      }, {\n        component: 'contacts/panels-new',\n        label: 'transporter pickup location',\n        value: 'transporterPickupLocations',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterPickupLocations'],\n        updateProps: ['persons.label', 'persons.name', 'persons.details.telephone', 'persons.details.address', 'persons.details.transporterAccount', 'persons.details.value'],\n        _isNewTab: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  }\n  _exports.default = ContactsWizardTransporterHctAdapter;\n});","define(\"client/pods/contacts/wizard/transporter/model\", [\"exports\", \"ember-concurrency-decorators\", \"client/pods/application/lists/wizards/model\"], function (_exports, _emberConcurrencyDecorators, _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;\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 ContactsWizardTransporterModel = _exports.default = (_dec = Ember.inject.service('transporter'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember.computed('transporters.[]'), _class = class ContactsWizardTransporterModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"transporterService\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"transporters\", _descriptor3, this);\n      _defineProperty(this, \"dynamicComponent\", 'contacts/wizard/transporter');\n    }\n    populate(data = {}, attrs) {\n      super.populate(data, attrs);\n      this.fetchTransportersByExtensionTask.perform(this._data?.subTypeOptions?.transporterExtension);\n    }\n    get isAllStepsFinished() {\n      if (!this.transporters) {\n        return false;\n      }\n      return this.transporters.length >= 1;\n    }\n    *fetchTransportersByExtensionTask(transporterExtensions) {\n      this.transporters = null;\n      const transporters = yield this.transporterService.fetchTransportersByExtensionTask.perform({\n        transporterExtensions\n      });\n      this.transporters = transporters;\n      return transporters;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"transporterService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"transporters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isAllStepsFinished\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"isAllStepsFinished\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTransportersByExtensionTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransportersByExtensionTask\"), _class.prototype), _class);\n});","define(\"client/pods/contacts/wizard/transporter/payuni-seven-eleven/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\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 ContactsWizardTransporterPayuniSevenElevenAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", false);\n    }\n    // entities: use FormEntity > context\n    // updateProps: use FormRow || FormInputRow > context\n    // (should be the same as saved data variable key)\n    findAll() {\n      const data = [{\n        component: 'contacts/panels-new',\n        label: 'transporter info',\n        value: 'details',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['basicInformation', 'transporter'],\n        updateProps: ['name'],\n        _isNewTab: true,\n        modelData: {\n          name: 'PayUni 7Eleven',\n          relationships: [this.constants.contactsRelationship.supplier],\n          isTransporter: this.constants.isTransporter.on,\n          transporterExtension: this.constants.transporterExtensions.payuniSevenEleven,\n          transporterCredentials: {\n            isPartner: true,\n            id: '',\n            key: '',\n            iv: ''\n          }\n        }\n      },\n      // Replace it With Transporter Credentials\n      {\n        component: 'contacts/panels-new',\n        label: 'transporter credentials',\n        value: 'transporterCredentials',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterCredentials_group'],\n        updateProps: ['transporterCredentials.id', 'transporterCredentials.isPartner', 'transporterCredentials.key', 'transporterCredentials.iv'],\n        _isNewTab: true\n      }, {\n        component: 'contacts/panels-new',\n        label: 'transporter pickup location',\n        value: 'transporterPickupLocations',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterPickupLocations'],\n        updateProps: ['persons.label', 'persons.name', 'persons.details.telephone', 'persons.details.address', 'persons.details.transporterAccount', 'persons.details.value'],\n        _isNewTab: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  }\n  _exports.default = ContactsWizardTransporterPayuniSevenElevenAdapter;\n});","define(\"client/pods/contacts/wizard/transporter/seven-eleven/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\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 ContactsWizardTransporterSevenElevenAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", false);\n    }\n    // entities: use FormEntity > context\n    // updateProps: use FormRow || FormInputRow > context\n    // (should be the same as saved data variable key)\n    findAll() {\n      const data = [{\n        component: 'contacts/panels-new',\n        label: 'transporter info',\n        value: 'details',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['basicInformation', 'transporter'],\n        updateProps: ['name'\n        // 'transportCredentials',\n        // 'transporterCredentials.pickup.shopId',\n        // 'transporterCredentials.pickup.subShopId',\n        // 'transporterCredentials.pickup.printPassword'\n        ],\n        _isNewTab: true,\n        modelData: {\n          name: '7Eleven',\n          relationships: [this.constants.contactsRelationship.supplier],\n          isTransporter: this.constants.isTransporter.on,\n          transporterExtension: this.constants.transporterExtensions.sevenEleven,\n          transporterCredentials: {\n            checkoutFrozen: {\n              shopId: '',\n              subShopId: '',\n              printPassword: ''\n            },\n            checkout: {\n              shopId: '',\n              subShopId: '',\n              printPassword: ''\n            },\n            pickup: {\n              shopId: '',\n              subShopId: '',\n              printPassword: ''\n            },\n            sftp: {\n              username: '',\n              password: ''\n            },\n            sftpFrozen: {\n              username: '',\n              password: ''\n            }\n          }\n        }\n      },\n      // Replace it With Transporter Credentials\n      {\n        component: 'contacts/panels-new',\n        label: 'transporter credentials',\n        value: 'transporterCredentials',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterCredentials_group'],\n        updateProps: ['transporterCredentials.pickup', 'transporterCredentials.checkout', 'transporterCredentials.checkoutFrozen', 'transporterCredentials.sftp', 'transporterCredentials.sftpFrozen', 'transportCredentials', 'transporterCredentials.pickup.shopId', 'transporterCredentials.pickup.subShopId', 'transporterCredentials.pickup.printPassword', 'transporterCredentials.checkout.shopId', 'transporterCredentials.checkout.subShopId', 'transporterCredentials.checkout.printPassword', 'transporterCredentials.checkoutFrozen.shopId', 'transporterCredentials.checkoutFrozen.subShopId', 'transporterCredentials.checkoutFrozen.printPassword', 'transporterCredentials.sftp.username', 'transporterCredentials.sftp.password', 'transporterCredentials.sftpFrozen.username', 'transporterCredentials.sftpFrozen.password'],\n        _isNewTab: true\n      }, {\n        component: 'contacts/panels-new',\n        label: 'transporter pickup location',\n        value: 'transporterPickupLocations',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterPickupLocations'],\n        updateProps: ['persons.label', 'persons.name', 'persons.details.telephone', 'persons.details.address', 'persons.details.transporterAccount', 'persons.details.value'],\n        _isNewTab: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  }\n  _exports.default = ContactsWizardTransporterSevenElevenAdapter;\n});","define(\"client/pods/contacts/wizard/transporter/t-cat/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\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 ContactsWizardTransporterTCatAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", false);\n    }\n    // entities: use FormEntity > context\n    // updateProps: use FormRow || FormInputRow > context\n    // (should be the same as saved data variable key)\n    findAll() {\n      const data = [{\n        component: 'contacts/panels-new',\n        label: 'transporter info',\n        value: 'details',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['basicInformation', 'transporter'],\n        updateProps: ['name'],\n        _isNewTab: true,\n        modelData: {\n          name: 'TCat',\n          relationships: [this.constants.contactsRelationship.supplier],\n          isTransporter: this.constants.isTransporter.on,\n          transporterExtension: this.constants.transporterExtensions.tCat,\n          transporterCredentials: {\n            id: '',\n            secret: ''\n          }\n        }\n      }, {\n        component: 'contacts/panels-new',\n        label: 'transporter credentials',\n        value: 'transporterCredentials',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterCredentials_group'],\n        updateProps: ['transporterCredentials.id', 'transporterCredentials.secret'],\n        _isNewTab: true\n      }, {\n        component: 'contacts/panels-new',\n        label: 'transporter settings',\n        value: 'transporterSettings',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterSettings_group'],\n        updateProps: ['transporterSettings.useAnonymizedProductName', 'transporterSettings.anonymizedProductName'],\n        _isNewTab: true\n      }, {\n        component: 'contacts/panels-new',\n        label: 'transporter pickup location',\n        value: 'transporterPickupLocations',\n        containerId: 'details',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['transporterPickupLocations'],\n        updateProps: ['persons.label', 'persons.name', 'persons.details.telephone', 'persons.details.address', 'persons.details.transporterAccount', 'persons.details.value'],\n        _isNewTab: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  }\n  _exports.default = ContactsWizardTransporterTCatAdapter;\n});","define(\"client/pods/contacts/wizard/transporter/validate-credentials/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/contacts/wizard/transporter/model\"], function (_exports, _adapter, _adaptersNew, _model) {\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 ContactsWizardTransporterValidateCredentialsAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"resourcePath\", 'api/protected/contacts/transporters');\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", false);\n    }\n  }\n  _exports.default = ContactsWizardTransporterValidateCredentialsAdapter;\n});","define(\"client/pods/crud/service\", [\"exports\", \"client/utils/nventor\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\"], function (_exports, _nventor, _emberConcurrencyDecorators, _emberConcurrency, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.QUEUE_FLUSH_MS = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _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   * Milliseconds to wait before flushing a fetchBatch queue.\n   * Tests should wait longer than this.\n   * @type {number}\n   */\n  const QUEUE_FLUSH_MS = _exports.QUEUE_FLUSH_MS = 600;\n  let CrudService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 1\n  }), _dec13 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 10\n  }), _dec14 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 10\n  }), _dec15 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 15\n  }), _dec16 = Ember._action, _dec17 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 10\n  }), _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _class = class CrudService extends Ember.Service {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"tabsManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"server\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"listAdapters\", _descriptor6, this);\n      _initializerDefineProperty(this, \"lists\", _descriptor7, this);\n      _initializerDefineProperty(this, \"imagesCache\", _descriptor8, this);\n      /**\n       * Independent fetch queues keyed by queueName (or adapterName + appendPath).\n       * Each queue debounces and POSTs on its own, so several destinations can\n       * flush at the same time.\n       * @type {Object<string, Object>}\n       */\n      _defineProperty(this, \"_queues\", {});\n      _defineProperty(this, \"errorsTrackerList\", []);\n      this.imagesCache = new Map();\n    }\n    get hasRunningTasks() {\n      const isRemoveRecordTaskRunning = this.removeRecordTask.isRunning;\n      const isReplaceRecordTaskRunning = this.replaceRecordTask.isRunning;\n      const isCreateRecordTaskRunning = this.createRecordTask.isRunning;\n      return isRemoveRecordTaskRunning || isReplaceRecordTaskRunning || isCreateRecordTaskRunning;\n    }\n\n    // setDirtyOnTab (tab, dirty = null) {\n    // if (RA.isNotNilOrEmpty(tab)) {\n    //   const parentTab = this.tabsManager.getOuterMostTab()\n    //   set(parentTab, 'dirty', dirty)\n    // }\n    // }\n\n    getAdapter(adapterName = '') {\n      return this.server.getAdapter(adapterName);\n    }\n\n    /**\n     * New Record\n     * @typedef {Object} NewRecordType\n     * @property {string} adapterName - Adapter name\n     * @property {Object} data - Data under _data\n     * @property {Object} attrs - attributes\n     */\n\n    /**\n     * Create new model base on the adapter name\n     * This model does not support broadcasting\n     * @param {NewRecordType} options\n     * @return {Object}\n     */\n    setupNewRecord(args = {}) {\n      const {\n        component,\n        resultsProperty = 'newModel'\n      } = args;\n      if (RA.isNotNilOrEmpty(args.model)) {\n        args.data = args.model.serialize();\n      }\n      const newModel = this.dataManager.newRecord(args);\n      newModel.instanceId = _nventor.default.random.alphaNum(8);\n      // this.setDirtyOnTab?.(args?.tab, newModel)\n\n      if (component) {\n        Ember.set(component, resultsProperty, newModel);\n      }\n      return newModel;\n    }\n\n    /**\n     * Setup a dirty model\n     * @param {boolean} debug\n     * @param {string} adapterName\n     * @param {any} model\n     * @param {Object} attrs\n     * @param {Ember.Object} component\n     * @param {string} resultsProperty\n     * @param {boolean} isNew\n     * @return {*}\n     */\n    setupDirty({\n      debug,\n      adapterName = '',\n      model,\n      attrs,\n      component,\n      resultsProperty = 'dirty',\n      isNew = false,\n      tab\n    } = {}) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      if (isNew) {\n        return this.setupNewRecord(...arguments);\n      }\n      const dirty = this.dataManager.getDirtyRecord(adapterName, model, attrs);\n      dirty.instanceId = _nventor.default.random.alphaNum(8);\n\n      // const originalDirtyCopy = dirty.serialize()\n      // dirty.set('originalDirtyCopy', R.clone(originalDirtyCopy))\n\n      // this.setDirtyOnTab(tab, dirty)\n\n      if (component) {\n        Ember.set(component, resultsProperty, dirty);\n      }\n      return dirty;\n    }\n    setValidationErrors(errorsProp = 'errors', err, options = {}) {\n      const {\n        component = {},\n        dirty,\n        tab\n      } = options;\n      const errors = err.data || {};\n      const isOutOfDate = R.prop('isOutOfDate')(errors);\n      if (isOutOfDate) {\n        dirty.set('isOutOfDate', isOutOfDate);\n        const msg = this.intl.t('update failed the data is out of date as it may have been changed by someone else please cancel and try again');\n        window.alert(msg);\n      }\n      if (R.is(String, errors) || !err.data) {\n        const apiMessage = _nventor.default.confirm.get(err, 'message', 'error occurred');\n        if (apiMessage && apiMessage !== 'error occurred') {\n          window.alert(apiMessage);\n          return false;\n        }\n        const msg = this.intl.t('error occurred please try again later');\n        console.log('error', msg);\n        // window.alert(msg)\n        return false;\n      }\n      // when handlers are still using old nvalidator, there will not be an errors.errors array\n      try {\n        if (!errors.errors) {\n          errors.errors = R.values(errors);\n          errors.errors = R.map(error => {\n            if (R.is(String, error)) {\n              return {\n                context: {\n                  key: error\n                }\n              };\n            }\n            error.context = {\n              key: error.context\n            };\n            return error;\n          })(errors.errors);\n        }\n        errors.errors = R.pipe(R.propOr([], 'errors'), R.map(error => {\n          const hasIndex = RA.isNotNilOrEmpty(error.index);\n          if (hasIndex && RA.isNotNilOrEmpty(error.context)) {\n            const keyWithIndex = R.join(`[${error.index}].`, error.path);\n            error.context.keyWithIndex = keyWithIndex;\n          }\n          return error;\n        }))(errors);\n        if (component) {\n          Ember.set(component, errorsProp, errors.errors);\n        }\n      } catch (e) {\n        console.log('error setting validation errors');\n        console.log(e);\n      }\n      if (dirty) {\n        if (dirty.set) {\n          dirty.set('apiErrors', errors.errors);\n        } else {\n          dirty.apiErrors = errors.errors;\n        }\n      }\n      // this.setDirtyOnTab(tab, dirty)\n      return errors;\n    }\n\n    /**\n     * copy the dirty data to the original model\n     * @param {Object} options\n     * @param {Object} options.originalModel\n     * @param {Object} options.dirty\n     * @param {Function} options.onAfter\n     */\n    confirmChanges({\n      originalModel,\n      dirty,\n      onAfter\n    } = {}) {\n      originalModel._data = dirty._data;\n      if (onAfter) {\n        return onAfter(originalModel);\n      }\n      return originalModel;\n    }\n    cancelEditing({\n      adapterName,\n      dirty,\n      onAfter,\n      onAfterOptions,\n      tab,\n      debug\n    } = {}) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n\n      // this.setDirtyOnTab(tab)\n\n      const original = this.dataManager.cancelDirty(adapterName, dirty);\n\n      // this.tabsManager.clearErrors(tab)\n\n      if (onAfter) {\n        return onAfter(original, onAfterOptions);\n      }\n      return original;\n    }\n\n    /**\n     * Replaces a record with a new one in the data manager.\n     *\n     * @method replaceRecordTask\n     * @param {Object} options - The options for the replaceRecordTask method.\n     * @param {string} [options.adapterName=''] - The name of the adapter to be used.\n     * @param {string} [options.appendPath] - The path to append to the adapter endpoint URL.\n     * @param {string} [options.errorsProp='errors'] - The name of the property to store validation errors.\n     * @param {Object} options.model - The model representing the record to be replaced.\n     * @param {Function} options.onAfter - The function to execute after the record has been replaced.\n     * @param {boolean} [options.rawResponse=false] - A flag indicating whether to return the raw response instead of the saved record.\n     * @param {Object} options.component - The component associated with the record being replaced.\n     * @param {string} options.tab - The tab associated with the record being replaced.\n     * @param {IServerType} options.serverType - The server type to be used for the replace operation.\n     * @returns {Promise|Object} - The saved record or the raw response (if rawResponse is true).\n     * @throws {Error} - If the replaceRecordTask method fails.\n     */\n    *replaceRecordTask(options = {}) {\n      const {\n        adapterName = '',\n        appendPath,\n        errorsProp = 'errors',\n        model,\n        onAfter,\n        rawResponse = false,\n        component,\n        tab,\n        serverType\n      } = options;\n      try {\n        this.tabsManager.resetErrorsWrappers(model);\n        const saved = yield this.dataManager.replaceRecord({\n          adapterName,\n          appendPath,\n          dirty: model,\n          rawResponse,\n          serverType\n        });\n        this._setWasSaved(component);\n        this.tabsManager.clearErrors(tab);\n        if (onAfter) {\n          return onAfter(saved);\n        }\n        return saved;\n      } catch (err) {\n        const dirty = model;\n        this.setValidationErrors(errorsProp, err, {\n          component,\n          dirty,\n          tab\n        });\n        if (dirty.instanceId) {\n          const parentTab = this.tabsManager.getOuterMostTab();\n          this.tabsManager.registerErrors({\n            dirty,\n            parentTab,\n            tab\n          });\n        }\n        _nventor.default.throw('replaceRecordTask failed', err);\n        throw err;\n      }\n    }\n    *queueUpdateRecordTask() {\n      return yield this.updateRecordTask.perform(...arguments);\n    }\n    _setWasSaved(component) {\n      if (component && !component?.isDestroyed) {\n        Ember.set(component, 'wasSaved', true);\n        setTimeout(() => {\n          if (component && !component?.isDestroyed) {\n            Ember.set(component, 'wasSaved', false);\n          }\n        }, 5000);\n      }\n    }\n\n    /**\n     * Updates a record with the given options.\n     *\n     * @param {Object} options - The options for updating the record.\n     * @param {string} [options.adapterName=''] - The name of the adapter to use for updating.\n     * @param {string} [options.appendPath] - The path to append to the base URL for updating.\n     * @param {Object} options.component - The component associated with the record.\n     * @param {string} [options.errorsProp='errors'] - The property name to store validation errors.\n     * @param {string[]} [options.excludeProps] - The properties to exclude when updating the record.\n     * @param {Object} options.model - The model to update.\n     * @param {Function} [options.onAfter] - The callback function to execute after updating.\n     * @param {Object} [options.onAfterOptions={}] - The options to pass to the onAfter callback function.\n     * @param {Function} [options.onBefore] - The callback function to execute before updating.\n     * @param {Function} [options.onError] - The callback function to execute on error.\n     * @param {boolean} [options.rawResponse=false] - Whether to return the raw response or the updated model.\n     * @param {boolean} [options.setupDirty=false] - Whether to automatically set the model as dirty before updating.\n     * @param {boolean} [options.updateProps] - The properties to update on the record.\n     * @param {boolean} [options.hasUpdateProps=false] - Whether the record has properties to update.\n     * @param {string} [options.tab] - The tab associated with the record.\n     * @param {boolean} [options.debug=false] - Whether to enable debugging.\n     * @param {IServerType} [options.serverType] - The server type to use for updating.\n     *\n     * @returns {Object} - The updated model or the raw response, depending on the rawResponse option.\n     */\n    *updateRecordTask(options = {}) {\n      let {\n        adapterName = '',\n        appendPath,\n        component,\n        errorsProp = 'errors',\n        excludeProps,\n        model,\n        onAfter,\n        onAfterOptions = {},\n        onBefore,\n        onError,\n        rawResponse = false,\n        setupDirty = false,\n        updateProps,\n        hasUpdateProps = false,\n        tab,\n        debug = false,\n        serverType\n      } = options;\n      try {\n        if (debug) {\n          debugger; //eslint-disable-line\n        }\n        if (onBefore) {\n          model = onBefore(model);\n        }\n\n        // automatically setup model as dirty just before updating\n        // only should be used when not allowing changes to be seen on the interface while editing\n        if (setupDirty) {\n          model = this.setupDirty({\n            adapterName,\n            model\n          });\n        }\n        this.tabsManager.resetErrorsWrappers(model);\n        if (hasUpdateProps) {\n          const originalData = model?.originalModel?.serialize();\n          const modifiedData = JSON.parse(JSON.stringify(model.serialize()));\n          updateProps = this.getDifferentProperties(originalData, modifiedData);\n        }\n\n        // when updating specific properties but there is no changes at all\n        if (hasUpdateProps && RA.isNilOrEmpty(updateProps)) {\n          return model;\n        }\n        const saved = yield this.dataManager.updateRecord({\n          adapterName,\n          appendPath,\n          dirty: model,\n          excludeProps,\n          updateProps,\n          rawResponse,\n          serverType\n        });\n        this._setWasSaved(component);\n        this.tabsManager.clearErrors(tab);\n        if (onAfter) {\n          if (tab) {\n            this.cancelEditing({\n              tab,\n              adapterName,\n              dirty: model\n            });\n          }\n          return onAfter(saved, onAfterOptions);\n        }\n        return saved;\n      } catch (err) {\n        const dirty = model;\n        this.setValidationErrors(errorsProp, err, {\n          component,\n          dirty,\n          tab\n        });\n        if (dirty.instanceId) {\n          const parentTab = this.tabsManager.getOuterMostTab();\n          this.tabsManager.registerErrors({\n            dirty,\n            parentTab,\n            tab\n          });\n        }\n        _nventor.default.throw('updateRecordTask failed', err);\n        if (onError) {\n          return onError(err);\n        }\n        throw err;\n\n        // return null\n      }\n    }\n    getDifferentProperties(original, modified) {\n      if (R.equals(original, modified)) {\n        return [];\n      }\n      return R.pipe(R.keys, R.concat(R.keys(modified)), R.map(key => {\n        if (modified[key] !== original[key] && !R.equals(original[key], modified[key])) {\n          return key;\n        }\n      }), R.reject(RA.isNilOrEmpty), R.uniq)(original);\n    }\n\n    /**\n     * Update batch task.\n     *\n     * @param {Object} options - The options for updating the batch task.\n     * @param {string} [options.adapterName = ''] - The name of the adapter.\n     * @param {string} [options.appendPath] - The path to append to the adapter URL.\n     * @param {Object} options.component - The component object.\n     * @param {string} [options.errorsProp = 'errors'] - The property name for errors.\n     * @param {Array} options.excludeProps - The properties to exclude from update.\n     * @param {Array} options.batch - The batch to update.\n     * @param {function} options.onAfter - The callback function to run after update.\n     * @param {Object} options.onAfterOptions - Additional options for onAfter callback.\n     * @param {function} options.onBefore - The callback function to run before update.\n     * @param {function} options.onError - The callback function to run on error.\n     * @param {boolean} [options.rawResponse = false] - Whether to return raw response or not.\n     * @param {boolean} [options.setupDirty = false] - Whether to setup model as dirty or not.\n     * @param {Object} options.updateProps - The properties to update.\n     * @param {string} options.tab - The tab to update.\n     * @param {IServerType} options.serverType - The type of server.\n     *\n     * @return {Promise} - The updated batch task.\n     */\n    *updateBatchTask(options = {}) {\n      let {\n        adapterName = '',\n        appendPath,\n        component,\n        errorsProp = 'errors',\n        excludeProps,\n        batch,\n        onAfter,\n        onAfterOptions,\n        onBefore,\n        onError,\n        rawResponse = false,\n        setupDirty = false,\n        updateProps,\n        tab,\n        serverType\n      } = options;\n      try {\n        if (onBefore) {\n          batch = onBefore(batch);\n        }\n\n        // automatically setup model as dirty just before updating\n        // only should be used when not allowing changes to be seen on the interface while editing\n        if (setupDirty) {\n          batch = R.map(model => {\n            return this.setupDirty({\n              adapterName,\n              model\n            });\n          })(batch);\n        }\n        const saved = yield this.dataManager.updateBatch({\n          adapterName,\n          appendPath,\n          dirtyBatch: batch,\n          rawResponse,\n          serverType\n        });\n        this._setWasSaved(component);\n        this.tabsManager.clearErrors(tab);\n        if (onAfter) {\n          return onAfter(saved, onAfterOptions);\n        }\n        return saved;\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err, {\n          component,\n          dirty: batch,\n          tab\n        });\n        _nventor.default.throw('updateBatchTask failed', err);\n        if (onError) {\n          return onError(err);\n        }\n        return null;\n      }\n    }\n    *_removeBatchTask(options = {}) {\n      return yield this.dataManager.removeBatch(options);\n    }\n\n    /**\n     * Removes a batch of tasks.\n     *\n     * @param {Object} options - The options for removing the tasks.\n     * @param {string} [options.adapterName=''] - (Optional) The name of the adapter.\n     * @param {string} [options.appendPath] - (Optional) The path to append to the adapter URL.\n     * @param {Object} options.component - The component associated with the tasks.\n     * @param {string} [options.errorsProp='errors'] - (Optional) The property name for storing validation errors.\n     * @param {Array} options.batch - The batch of tasks to be removed.\n     * @param {number} [options.batchSize=10] - (Optional) The size of each batch to be removed.\n     * @param {Function} [options.onAfter] - (Optional) The callback function to be executed after the tasks are removed.\n     * @param {Object} [options.onAfterOptions] - (Optional) The additional options to be passed to the onAfter callback function.\n     * @param {Function} [options.onBefore] - (Optional) The callback function to be executed before the tasks are removed.\n     * @param {Function} [options.onError] - (Optional) The callback function to be executed if an error occurs during the removal process.\n     * @param {boolean} [options.rawResponse=false] - (Optional) Indicates whether to return the raw response instead of merging.\n     * @param {string} [options.tab] - (Optional) The tab associated with the tasks.\n     * @param {string} [options.confirmMsg] - (Optional) The confirmation message shown to the user before removing the tasks.\n     * @param {boolean} [options.noConfirm=false] - (Optional) Indicates whether to skip the confirmation prompt.\n     * @param {IServerType} [options.serverType] - (Optional) The type of server to be used for the removal process.\n     *\n     * @returns {Object|null} - The response object if the removal is successful, null otherwise.\n     */\n    *removeBatchTask(options = {}) {\n      let {\n        adapterName = '',\n        appendPath,\n        component,\n        errorsProp = 'errors',\n        batch,\n        batchSize = 10,\n        onAfter,\n        onAfterOptions,\n        onBefore,\n        onError,\n        rawResponse = false,\n        tab,\n        confirmMsg,\n        noConfirm = false,\n        serverType\n      } = options;\n      const msg = confirmMsg || this.intl.t('are you sure you want to delete');\n      const confirmed = noConfirm || window.confirm(msg);\n      if (!confirmed) {\n        return;\n      }\n      try {\n        if (onBefore) {\n          batch = onBefore(batch);\n        }\n        const unsuccessful = [];\n        const savedPerformArray = R.pipe(R.splitEvery(batchSize), R.map(dirtyBatch => {\n          const data = {\n            adapterName,\n            appendPath,\n            dirtyBatch,\n            rawResponse,\n            serverType\n          };\n          return this._removeBatchTask.perform(data).catch(error => {\n            const requestData = {\n              data,\n              error\n            };\n            unsuccessful.push(requestData);\n          });\n        }))(batch);\n        const savedArray = yield (0, _emberConcurrency.all)(savedPerformArray);\n        const responseFlatten = R.flatten(savedArray);\n        let response;\n        try {\n          response = R.reduce((acc, value) => {\n            acc = R.mergeDeepWith(R.concat, acc, value);\n            return acc;\n          }, {})(responseFlatten);\n        } catch (error) {\n          response = responseFlatten;\n        }\n        if (unsuccessful.length) {\n          console.log('unsuccessful:', unsuccessful);\n        }\n        this._setWasSaved(component);\n        this.tabsManager.clearErrors(tab);\n        if (onAfter) {\n          return onAfter(response, onAfterOptions);\n        }\n        return response;\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err, {\n          component,\n          dirty: batch,\n          tab\n        });\n        _nventor.default.throw('updateBatchTask failed', err);\n        if (onError) {\n          return onError(err);\n        }\n        return null;\n      }\n    }\n\n    /**\n     * Remove a record task.\n     *\n     * @param {object} options - The options for the remove record task.\n     * @param {string} options.adapterName - The name of the adapter.\n     * @param {string} options.appendPath - The path to append to the model's URL.\n     * @param {boolean} options.batch - Whether to process the request in batch mode.\n     * @param {object} options.component - The component associated with the task.\n     * @param {string} options.confirmMsg - The confirmation message for deletion.\n     * @param {boolean} options.noConfirm - Whether to skip the confirmation dialog.\n     * @param {string} options.errorsProp - The property in which to store validation errors.\n     * @param {string} options.model - The model to remove records from.\n     * @param {function} options.onAfter - The callback function to execute after successful deletion.\n     * @param {function} options.onDash - The callback function to execute when deletion fails.\n     * @param {boolean} options.rawResponse - Whether to return the raw server response instead of the default success flag.\n     * @param {string} options.tab - The tab associated with the task.\n     * @param {IServerType} options.serverType - The type of server to use.\n     * @param {object} event - The event associated with the task.\n     * @param {string} originatingComponent - The originating component of the task.\n     * @param {object} additionalOptions - Additional options for the task.\n     * @param {function} additionalOptions.preOnAfter - The callback function to execute before the onAfter callback.\n     *\n     * @returns {boolean|null} - The success flag or null if an error occurred.\n     */\n    *removeRecordTask(options = {}, event, originatingComponent, additionalOptions = {}) {\n      const {\n        adapterName = '',\n        appendPath,\n        batch,\n        component,\n        confirmMsg,\n        noConfirm = false,\n        errorsProp = 'errors',\n        model,\n        onAfter,\n        onDash,\n        rawResponse = false,\n        tab,\n        serverType\n      } = options;\n      const {\n        preOnAfter\n      } = additionalOptions;\n      const msg = confirmMsg || this.intl.t('are you sure you want to delete');\n      const confirmed = noConfirm || window.confirm(msg);\n      if (confirmed) {\n        try {\n          const success = yield this.dataManager.removeRecord({\n            adapterName,\n            appendPath,\n            model,\n            batch,\n            rawResponse,\n            serverType\n          });\n          this._setWasSaved(component);\n          this.tabsManager.clearErrors(tab);\n          if (preOnAfter) {\n            if (!RA.isNilOrEmpty(batch)) {\n              preOnAfter(batch);\n            }\n            preOnAfter(model);\n          }\n          if (onAfter) {\n            if (!RA.isNilOrEmpty(batch)) {\n              return onAfter(batch);\n            }\n            return onAfter(model);\n          }\n          if (onDash) {\n            if (!RA.isNilOrEmpty(batch)) {\n              return onDash(batch);\n            }\n            return onDash(model);\n          }\n          return success;\n        } catch (err) {\n          this.setValidationErrors(errorsProp, err, {\n            component,\n            dirty: model,\n            tab\n          });\n          _nventor.default.throw('removeRecordTask failed', err);\n          return null;\n        }\n      }\n    }\n\n    /**\n     * Performs an AJAX call using the specified method and parameters.\n     *\n     * @param {string} method - The method to use for the AJAX call.\n     * @param {object} options - Additional options for the AJAX call.\n     * @param {string} options.adapterName - The adapter name for the AJAX call.\n     * @param {string} options.appendPath - The path to append to the AJAX call URL.\n     * @param {string} options.model - The model name for the AJAX call.\n     * @param {object} options.data - The data to send with the AJAX call.\n     * @param {object} options.additionalData - Additional data to send with the AJAX call.\n     * @param {object} options.filters - Any filters to apply to the AJAX call.\n     * @param {object} options.component - The component associated with the AJAX call.\n     * @param {function} options.onAfter - Callback function to execute after the AJAX call.\n     * @param {boolean} [options.allowSubmitWhenEmpty=true] - Flag to allow submitting when data is empty.\n     * @param {string} [options.errorsProp='errors'] - The property name where errors are stored.\n     * @param {string} options.tab - The tab associated with the AJAX call.\n     * @param {IServerType} options.serverType - The server type for the AJAX call.\n     *\n     * @return {Promise} - A promise that resolves with the AJAX call results or rejects with an error.\n     */\n    *ajaxCallTask(method, {\n      adapterName,\n      appendPath,\n      model,\n      data,\n      additionalData,\n      filters,\n      component,\n      onAfter,\n      allowSubmitWhenEmpty = true,\n      errorsProp = 'errors',\n      tab,\n      serverType\n    } = {}) {\n      if (allowSubmitWhenEmpty === false) {\n        return false;\n      }\n      if (RA.isNilOrEmpty(allowSubmitWhenEmpty)) {\n        return false;\n      }\n      if (filters?.serialize) {\n        const filterData = filters.serialize();\n        data = R.mergeRight(filterData)(data);\n      }\n      try {\n        const results = yield this.dataManager.ajaxCall({\n          method,\n          adapterName,\n          appendPath,\n          model,\n          data,\n          additionalData,\n          filters,\n          serverType\n        });\n        this.tabsManager.clearErrors(tab);\n        if (onAfter) {\n          return onAfter(results);\n        }\n        return results;\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err, {\n          component,\n          dirty: model,\n          tab\n        });\n        _nventor.default.throw('removeRecordTask failed', err);\n        return null;\n      }\n    }\n    *adapterCallTask(method, {\n      adapterName,\n      appendPath,\n      model,\n      component,\n      debug,\n      serverType = ''\n    } = {}) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      if (component) {\n        this._setWasSaved(component);\n      }\n      return yield this.dataManager.adapterCall({\n        method,\n        adapterName,\n        appendPath,\n        model,\n        serverType\n      });\n    }\n\n    /**\n     * Fetches uploads data from the server.\n     *\n     * @param {Object} options - The options for fetching uploads.\n     * @param {string} options.resource - The resource name.\n     * @param {string} options.resourceKey - The resource key.\n     * @param {Object} options.filters - The filters to apply.\n     * @param {string} options.adapterName - The name of the adapter to use.\n     * @param {string} options.appendPath - The additional path to append to the request URL.\n     * @param {Object} [options.params={}] - Additional parameters to include in the request.\n     * @param {IServerType} options.serverType - The type of server.\n     *\n     * @return {Promise} - A promise that resolves to the fetched uploads data.\n     */\n    *fetchUploadsTask({\n      resource,\n      resourceKey,\n      filters,\n      adapterName,\n      appendPath,\n      params = {},\n      serverType\n    }) {\n      // @TODO: @nafis, the image cache is broken. there is a timing issue. sometimes images disappear after products is loaded?\n      // images loads first time, but clicking on overview it disappears from cache.\n      // const cacheKey = `${resource}_${resourceKey}`\n      let result = null;\n      // let result = this.imagesCache.get(cacheKey)\n\n      if (!result) {\n        result = yield this.findConcurrentTask.perform({\n          adapterName,\n          appendPath,\n          params: {\n            resource,\n            resourceKey,\n            filters,\n            ...params,\n            serverType\n          }\n        });\n\n        // cache image\n        // this.imagesCache.set(cacheKey, result)\n      }\n      return result;\n    }\n    *findTask() {\n      return yield this.findConcurrentTask.perform(...arguments);\n    }\n\n    /**\n     * Enqueues a concurrent task with a maximum concurrency of 10.\n     *\n     * @param {object} args - The arguments for the concurrent task.\n     * @param {string} args.adapterName - The name of the adapter to use.\n     * @param {string} args.appendPath - The path to append to the adapter URL.\n     * @param {string} args.component - The component to associate with the concurrent task.\n     * @param {string} args.errorsProp - The property name to store any errors encountered.\n     * @param {object} args.params - The parameters to pass to the concurrent task.\n     * @param {object} args.filters - The filters to apply to the concurrent task.\n     * @param {string} args.token - The authentication token for the concurrent task.\n     * @param {boolean} args.rawResponse - Whether to return the raw response or not.\n     * @param {string} args.model - The model to use for the concurrent task.\n     * @param {string} args.tab - The tab to use for the concurrent task.\n     * @param {IServerType} args.serverType - The type of server to use for the concurrent task.\n     *\n     * @returns {Promise<object|null>} A Promise that resolves to the result of the concurrent task, or null if an error occurred.\n     */\n    *findConcurrentTask(args = {}) {\n      const {\n        adapterName = '',\n        appendPath,\n        component,\n        errorsProp = 'errors',\n        params,\n        filters,\n        token,\n        rawResponse = false,\n        model,\n        tab,\n        serverType\n      } = args;\n      try {\n        return yield this.dataManager.findRecord({\n          adapterName,\n          appendPath,\n          params,\n          rawResponse,\n          token,\n          filters,\n          serverType\n        });\n      } catch (err) {\n        _nventor.default.throw('findTask failed', err);\n        return null;\n      }\n    }\n\n    /**\n     * Validates a record task.\n     *\n     * @param {Object} options - The options for validating the record task.\n     * @param {string} options.adapterName - The name of the adapter to use.\n     * @param {string} [options.appendPath] - The path to append to the adapter URL.\n     * @param {Object} options.component - The component to use for validation errors.\n     * @param {string} [options.errorsProp='errors'] - The property to store validation errors.\n     * @param {Object} options.model - The data model to validate.\n     * @param {Function} [options.onAfter] - The callback function to execute after validation.\n     * @param {Object} [options.onAfterOptions] - The options to pass to the onAfter callback.\n     * @param {Function} [options.onBefore] - The callback function to execute before validation.\n     * @param {boolean} [options.rawResponse=false] - Whether to return the raw response instead of parsed data.\n     * @param {string} options.tab - The tab to use for validation errors.\n     * @param {IServerType} options.serverType - The server type to use for the AJAX call.\n     *\n     * @returns {Object|null} - The validated and saved data, or null if validation failed.\n     * @throws {Error} - If the validation task fails.\n     */\n    *validateRecordTask({\n      adapterName = '',\n      appendPath,\n      component,\n      errorsProp = 'errors',\n      model,\n      onAfter,\n      onAfterOptions,\n      onBefore,\n      rawResponse = false,\n      tab,\n      serverType\n    }) {\n      try {\n        if (onBefore) {\n          model = onBefore(model);\n        }\n        this.tabsManager.resetErrorsWrappers(model);\n        const saved = yield this.dataManager.ajaxCall({\n          method: 'POST',\n          adapterName,\n          appendPath,\n          model,\n          rawResponse,\n          serverType\n        });\n        this.tabsManager.clearErrors(tab);\n        if (onAfter) {\n          return onAfter(saved, onAfterOptions);\n        }\n        return saved;\n      } catch (err) {\n        const dirty = model;\n        this.setValidationErrors(errorsProp, err, {\n          component,\n          dirty,\n          tab\n        });\n        if (dirty.instanceId) {\n          const parentTab = this.tabsManager.getOuterMostTab();\n          this.tabsManager.registerErrors({\n            dirty,\n            parentTab,\n            tab\n          });\n        }\n        _nventor.default.throw('validateRecordTask failed', err);\n        // throw err\n        return null;\n      }\n    }\n\n    /**\n     * Creates a record task.\n     *\n     * @function createRecordTask\n     * @param {Object} [args={}] - The arguments for the create record task.\n     * @param {string} [args.adapterName=''] - The adapter name.\n     * @param {string} [args.appendPath] - The append path.\n     * @param {Object} args.component - The component.\n     * @param {string} [args.errorsProp='errors'] - The errors property.\n     * @param {boolean} [args.debug] - Debug flag.\n     * @param {Object} args.model - The model.\n     * @param {Function} [args.onAfter] - The onAfter function.\n     * @param {Object} [args.onAfterOptions] - The options for the onAfter function.\n     * @param {Function} [args.onBefore] - The onBefore function.\n     * @param {boolean} [args.rawResponse=false] - The raw response flag.\n     * @param {string} [args.tab] - The tab.\n     * @param {IServerType} [args.serverType] - The server type.\n     * @returns {Promise} - The promise containing the result of the create record task.\n     * @throws {Error} - Throws an error if the create record task fails.\n     */\n    *createRecordTask(args = {}) {\n      let {\n        adapterName = '',\n        appendPath,\n        component,\n        errorsProp = 'errors',\n        debug,\n        model,\n        onAfter,\n        onAfterOptions,\n        onBefore,\n        rawResponse = false,\n        tab,\n        serverType\n      } = args;\n      try {\n        if (debug) {\n          debugger; //eslint-disable-line\n        }\n        if (onBefore) {\n          model = onBefore(model);\n        }\n        this.tabsManager.resetErrorsWrappers(model);\n        const saved = yield this.dataManager.createRecord({\n          adapterName,\n          appendPath,\n          model,\n          rawResponse,\n          serverType\n        });\n        this.tabsManager.clearErrors(tab);\n        if (component) {\n          this._setWasSaved(component);\n        }\n        if (onAfter) {\n          return onAfter(saved, onAfterOptions);\n        }\n        return saved;\n      } catch (err) {\n        if (debug) {\n          debugger; //eslint-disable-line\n        }\n        const dirty = model;\n        this.setValidationErrors(errorsProp, err, {\n          component,\n          dirty,\n          tab\n        });\n        if (dirty.instanceId) {\n          const parentTab = this.tabsManager.getOuterMostTab();\n          this.tabsManager.registerErrors({\n            dirty,\n            parentTab,\n            tab\n          });\n        }\n        _nventor.default.throw('createRecordTask failed', err);\n        throw err;\n      }\n    }\n\n    /**\n     * upsert a record task.\n     *\n     * @function createRecordTask or update\n     * @param {Object} [args={}] - The arguments for the create record task.\n     * @param {string} [args.adapterName=''] - The adapter name.\n     * @param {string} [args.appendPath] - The append path.\n     * @param {Object} args.component - The component.\n     * @param {string} [args.errorsProp='errors'] - The errors property.\n     * @param {boolean} [args.debug] - Debug flag.\n     * @param {Object} args.model - The model.\n     * @param {Function} [args.onAfter] - The onAfter function.\n     * @param {Object} [args.onAfterOptions] - The options for the onAfter function.\n     * @param {Function} [args.onBefore] - The onBefore function.\n     * @param {boolean} [args.rawResponse=false] - The raw response flag.\n     * @param {string} [args.tab] - The tab.\n     * @param {IServerType} [args.serverType] - The server type.\n     * @returns {Promise} - The promise containing the result of the create record task.\n     * @throws {Error} - Throws an error if the create record task fails.\n     */\n    *upsertRecordTask(args = {}) {\n      let {\n        adapterName = '',\n        appendPath,\n        component,\n        errorsProp = 'errors',\n        debug,\n        model,\n        onAfter,\n        onAfterOptions,\n        onBefore,\n        rawResponse = false,\n        tab,\n        serverType\n      } = args;\n      try {\n        if (debug) {\n          debugger; //eslint-disable-line\n        }\n        if (onBefore) {\n          model = onBefore(model);\n        }\n        this.tabsManager.resetErrorsWrappers(model);\n        const saved = yield this.dataManager.createRecord({\n          adapterName,\n          appendPath,\n          model,\n          rawResponse,\n          method: 'PUT',\n          serverType,\n          debug\n        });\n        this.tabsManager.clearErrors(tab);\n        if (component) {\n          this._setWasSaved(component);\n        }\n        if (onAfter) {\n          return onAfter(saved, onAfterOptions);\n        }\n        return saved;\n      } catch (err) {\n        const dirty = model;\n        this.setValidationErrors(errorsProp, err, {\n          component,\n          dirty,\n          tab\n        });\n        if (dirty.instanceId) {\n          const parentTab = this.tabsManager.getOuterMostTab();\n          this.tabsManager.registerErrors({\n            dirty,\n            parentTab,\n            tab\n          });\n        }\n        _nventor.default.throw('createRecordTask failed', err);\n        throw err;\n      }\n    }\n    *queueCreateRecordTask(\n      /* searchSettings, e */\n    ) {\n      return yield this.createRecordTask.perform(...arguments);\n    }\n    *searchRecordsTask(\n      /* searchSettings, e */\n    ) {\n      return yield this.searchRecordsConcurrentlyTask.perform(...arguments);\n    }\n\n    /**\n     * Search records concurrently task.\n     *\n     * @param {Object} args - The arguments object.\n     * @param {string} args.method - The method to use for searching records.\n     * @param {string} [args.adapterName=''] - The name of the adapter to use for searching records.\n     * @param {string} [args.appendPath=''] - The path to append to the adapter URL.\n     * @param {Object} args.component - The component to update with the search results.\n     * @param {boolean} [args.copyFilters=false] - Whether to make a copy of the filters object.\n     * @param {Object} [args.data={}] - The data object to send with the search request.\n     * @param {string} [args.errorsProp='errors'] - The name of the property to store errors.\n     * @param {Object} args.filters - The filters object to use for the search.\n     * @param {boolean} [args.isSearchBar=false] - Send only the query on top of default filters, ignoring advanced search criteria.\n     * @param {Function} [args.onBefore] - The callback function to execute before the search is done. returns filter.\n     * @param {Function} [args.onAfter] - The callback function to execute after the search is complete.\n     * @param {string} [args.lastSearchSettingsProperty='lastSearchSettings'] - The name of the property to store the last search settings.\n     * @param {string} [args.modelAdapterName] - The name of the adapter to use for the model.\n     * @param {boolean} [args.newFilters=false] - Whether to create new filters for the search.\n     * @param {Object} [args.newFiltersDefaultData={}] - The default data for the new filters.\n     * @param {Object} [args.options={}] - The options object to send with the search request.\n     * @param {string} [args.query=''] - The query string for the search.\n     * @param {string} [args.resultsProperty='results'] - The name of the property to store the search results.\n     * @param {boolean} [args.rawResponse=false] - Whether to return the raw response from the search request.\n     * @param {boolean} [args.debug=false] - Whether to enable debug mode.\n     * @param {Object} args.model - The model object to use for the search.\n     * @param {string} args.tab - The name of the tab to use for the search.\n     * @param {IServerType} args.serverType - The type of the server to use for the search.\n     * @return {Promise<*>} - The search results.\n     */\n    *searchRecordsConcurrentlyTask(args = {}) {\n      let {\n        method,\n        adapterName = '',\n        appendPath = '',\n        component,\n        copyFilters = false,\n        data = {},\n        errorsProp = 'errors',\n        filters,\n        isSearchBar = false,\n        onBefore,\n        onAfter,\n        lastSearchSettingsProperty = 'lastSearchSettings',\n        modelAdapterName,\n        newFilters = false,\n        newFiltersDefaultData = {},\n        options = {},\n        query = '',\n        resultsProperty = 'results',\n        rawResponse = false,\n        debug = false,\n        model,\n        tab,\n        serverType\n      } = args;\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      if (onBefore) {\n        onBefore(args);\n      }\n      if (!adapterName) {\n        adapterName = filters.getData('resultsAdapterName') || filters.get('lastSearchSettings.adapterName') || '';\n      }\n      appendPath = appendPath || args.appendPath || filters?.getData('appendPath');\n      if (copyFilters) {\n        filters = this.search.copyFilters({\n          filters\n        });\n      }\n      if (newFilters) {\n        query = query || filters.getData('query');\n        // CATCH CASE WHEN QUERY IS NOT A STRING AND SET IT TO AN EMPTY STRING\n        const isNotString = typeof query !== 'string';\n        if (isNotString) {\n          query = '';\n        }\n        newFiltersDefaultData = R.clone(newFiltersDefaultData);\n        filters = this.search.setupFilters({\n          adapterName: filters._data.filtersAdapterName,\n          defaultFiltersData: newFiltersDefaultData\n        });\n        filters.setData('query', query);\n      }\n      if (filters && query !== filters?.currentQuerySubmitted) {\n        filters.setData('page', 1);\n      }\n\n      // resultsProperty = R.path(['_data', 'resultsProperty'])(filters) || 'results'\n      resultsProperty = R.pathOr(resultsProperty, ['_data', 'resultsProperty'])(filters);\n      if (!resultsProperty && resultsProperty !== '') {\n        resultsProperty = 'results';\n      }\n\n      // if (resultsProperty === '') {\n      //   resultsProperty = 'results'\n      // }\n\n      try {\n        if (`${query}`.trim() !== '') {\n          data.query = `${query}`.trim();\n        }\n        if (R.isNil(options)) {\n          options = {};\n        }\n        options.method = method;\n        const results = yield this.dataManager.findAll({\n          method,\n          adapterName,\n          appendPath,\n          modelAdapterName,\n          data,\n          filters,\n          isSearchBar,\n          rawResponse,\n          options,\n          debug,\n          serverType\n        });\n        if (filters) {\n          filters.set('lastSearchSettingsProperty', lastSearchSettingsProperty);\n          filters.set(lastSearchSettingsProperty, {\n            adapterName,\n            appendPath,\n            resultsProperty,\n            component,\n            query,\n            options,\n            data,\n            filters,\n            isSearchBar\n          });\n          const previousQueries = filters?.previousQueries || [];\n          previousQueries.unshiftObject(query);\n          filters.set('previousQueries', previousQueries);\n          filters.set('currentQuerySubmitted', query);\n          filters.set(resultsProperty, results);\n          filters.updateSynced();\n        }\n        if (component && !component?.isDestroyed && resultsProperty) {\n          // component[resultsProperty] = []\n          Ember.set(component, resultsProperty, results);\n        }\n        if (onAfter) {\n          return onAfter(results);\n        }\n        return results;\n      } catch (err) {\n        _nventor.default.throw('searchRecordsTask failed', err);\n        return null;\n      }\n    }\n\n    /**\n     * @task\n     *\n     * Reloads the search records task with the given arguments.\n     *\n     * @param {object} args - The arguments for the task.\n     * @param {object} args.filters - The filters object.\n     * @param {string} [args.lastSearchSettingsProperty='lastSearchSettings'] - The property name to store the last search settings.\n     * @param {object} [args.searchSettings] - The search settings object.\n     * @param {boolean} [args.reset=false] - Determines whether to reset the filters.\n     * @param {IServerType} args.serverType - The server type.\n     *\n     * @return {object} - The result of the search records task.\n     */\n    *reloadSearchRecordsTask(args = {}) {\n      let {\n        filters,\n        lastSearchSettingsProperty = 'lastSearchSettings',\n        searchSettings,\n        resetExcludes = [],\n        reset = false,\n        serverType,\n        onAfter,\n        debug = false\n      } = args;\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      filters.setData('page', 1);\n      if (reset) {\n        filters.reset({\n          resetExcludes\n        });\n      }\n      if (RA.isNilOrEmpty(searchSettings)) {\n        searchSettings = filters.get(lastSearchSettingsProperty);\n        if (reset && searchSettings) {\n          searchSettings.query = '';\n        }\n      }\n      if (RA.isNilOrEmpty(searchSettings)) {\n        searchSettings = {};\n      }\n\n      // a plain refresh must repeat the last search as it was, including a search bar search\n      if (reset) {\n        searchSettings.isSearchBar = false;\n      }\n      searchSettings.lastSearchSettingsProperty = lastSearchSettingsProperty;\n      searchSettings.filters = filters;\n      searchSettings.serverType = serverType;\n      searchSettings.onAfter = onAfter;\n      searchSettings.debug = debug;\n      return yield this.searchRecordsConcurrentlyTask.perform(searchSettings);\n    }\n\n    /**\n     * A task for paginating search records.\n     *\n     * @param {object} args - The arguments for the task.\n     * @param {object} args.filters - The search filters.\n     * @param {string} [args.lastSearchSettingsProperty='lastSearchSettings'] - The last search settings property name.\n     * @param {string} args.resultsProperty - The results property name.\n     * @param {object} args.searchSettings - The search settings.\n     * @param {object} args.component - The component.\n     * @param {boolean} args.debug - Whether to enable debugging.\n     * @param {IServerType} args.serverType - The server type.\n     * @return {Promise} A promise that resolves with the search results.\n     */\n    *paginateSearchRecordsTask(args = {}) {\n      let {\n        filters,\n        lastSearchSettingsProperty = 'lastSearchSettings',\n        resultsProperty,\n        searchSettings,\n        component,\n        debug,\n        serverType,\n        onAfter\n      } = args;\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      if (RA.isNilOrEmpty(searchSettings)) {\n        searchSettings = filters.get(lastSearchSettingsProperty);\n      }\n      if (RA.isNilOrEmpty(searchSettings)) {\n        searchSettings = {};\n      }\n      searchSettings.lastSearchSettingsProperty = lastSearchSettingsProperty;\n      searchSettings.resultsProperty = resultsProperty || searchSettings.resultsProperty || filters.getData('resultsProperty');\n      if (component) {\n        searchSettings.component = component;\n      }\n      searchSettings.filters = filters;\n      searchSettings.debug = debug;\n      searchSettings.serverType = serverType;\n      searchSettings.onAfter = onAfter;\n      return yield this.searchRecordsTask.perform(searchSettings);\n    }\n\n    /**\n     * Performs a search task on the input.\n     *\n     * @restartableTask\n     *\n     * @param {Object} args - The arguments for the search task.\n     * @param {string} [args.adapterName=''] - The adapter name to be used for searching.\n     * @param {boolean} [args.copyFilters=false] - A flag indicating whether to copy filters or not.\n     * @param {Object} args.data - The data object.\n     * @param {Object} args.filters - The filters object.\n     * @param {string} args.lastSearchSettingsProperty - The property for the last search settings.\n     * @param {boolean} [args.newFilters=false] - A flag indicating whether to use new filters or not.\n     * @param {Object} [args.newFiltersDefaultData={}] - The default data for new filters.\n     * @param {Function} [args.onAfter] - The callback function to be called after the search task is performed.\n     * @param {Object} args.component - The component object.\n     * @param {Object} args.options - The options object.\n     * @param {string} [args.resultsProperty='results'] - The property for the results.\n     * @param {boolean} [args.allowEmptyQuery=false] - A flag indicating whether to allow empty query or not.\n     * @param {boolean} [args.isSearchBar=false] - Send only the query on top of default filters, ignoring advanced search criteria.\n     * @param {boolean} [args.debug=false] - A flag indicating whether to enable debug mode or not.\n     * @param {IServerType} args.serverType - The server type to be used for searching.\n     * @param {string} [args.appendPath] - The path to append.\n     * @param {string} query - The query to be searched.\n     * @param {Event} e - The event object.\n     *\n     * @return {Array} The search results.\n     */\n    *searchInputTask(args = {}, query, e) {\n      const {\n        adapterName = '',\n        copyFilters = false,\n        data,\n        filters,\n        lastSearchSettingsProperty,\n        newFilters = false,\n        newFiltersDefaultData = {},\n        onBefore,\n        onAfter,\n        component,\n        options,\n        resultsProperty = 'results',\n        allowEmptyQuery = false,\n        isSearchBar = false,\n        debug = false,\n        serverType\n      } = args;\n      const DEBOUNCE_MS = 550;\n      yield (0, _emberConcurrency.timeout)(DEBOUNCE_MS);\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      const appendPath = args.appendPath || filters.getData('appendPath');\n      filters.setData('page', 1);\n      query = query || filters.getData('query');\n      query = query.trim();\n      if (query === '' && !allowEmptyQuery) {\n        return [];\n      }\n      filters.setData('query', query);\n      const results = yield this.searchRecordsTask.perform({\n        adapterName,\n        appendPath,\n        copyFilters,\n        data,\n        filters,\n        isSearchBar,\n        lastSearchSettingsProperty,\n        newFilters,\n        newFiltersDefaultData,\n        options,\n        onBefore,\n        query,\n        resultsProperty,\n        serverType\n      }, e);\n      if (filters) {\n        if (resultsProperty) {\n          filters.set(resultsProperty, results);\n        } else {\n          // this line is incorrect. but it may be used?\n          filters.set('results', results);\n        }\n      }\n      if (component && resultsProperty) {\n        Ember.set(component, resultsProperty, results);\n      }\n      if (onAfter) {\n        return onAfter(results);\n      }\n      return results;\n    }\n\n    /**\n     * Searches for records using advanced filters.\n     *\n     * @param {Object} args - The arguments for the method.\n     * @param {string} [args.adapterName=''] - The name of the adapter to use.\n     * @param {boolean} [args.debug=false] - Whether or not to enable debug mode.\n     * @param {Object} args.filters - The advanced filters.\n     * @param {Object} args.component - The component to use.\n     * @param {string} args.resultsProperty - The property to store the search results.\n     * @param {boolean} args.rawResponse - Whether or not to return the raw response.\n     * @param {function} args.onAfter - The callback function to execute after the search.\n     * @param {IServerType} args.serverType - The server type to use.\n     *\n     * @return {Object} - The search results.\n     */\n    *searchAdvancedTask(args = {}) {\n      const {\n        adapterName = '',\n        debug = false,\n        filters,\n        component,\n        resultsProperty,\n        rawResponse,\n        onBefore,\n        onAfter,\n        serverType\n      } = args;\n      const DEBOUNCE_MS = 550;\n      yield (0, _emberConcurrency.timeout)(DEBOUNCE_MS);\n      filters.setData('page', 1);\n\n      // always reset query\n      filters.setData('query', '');\n      return yield this.searchRecordsTask.perform({\n        adapterName,\n        appendPath: '/advanced',\n        debug,\n        filters,\n        component,\n        onBefore,\n        onAfter,\n        resultsProperty,\n        rawResponse,\n        serverType\n      });\n    }\n    *searchAdvancedEnqueuedTask({\n      adapterName = '',\n      debug = false,\n      filters,\n      component,\n      resultsProperty,\n      rawResponse,\n      onBefore,\n      onAfter,\n      serverType\n    } = {}) {\n      const DEBOUNCE_MS = 550;\n      yield (0, _emberConcurrency.timeout)(DEBOUNCE_MS);\n      filters.setData('page', 1);\n\n      // always reset query\n      filters.setData('query', '');\n      return yield this.searchRecordsTask.perform({\n        adapterName,\n        appendPath: '/advanced',\n        debug,\n        filters,\n        component,\n        onBefore,\n        onAfter,\n        resultsProperty,\n        rawResponse,\n        serverType\n      });\n    }\n    *fetchDefaultDataTask(args = {}) {\n      const {\n        adapterName = '',\n        byLatest = true,\n        filters,\n        listByTask\n      } = args;\n      // the function implementing needs to also have the correct list by mixin\n      return yield listByTask.perform({\n        adapterName,\n        filters,\n        byLatest\n      });\n    }\n\n    /* From List Mixins */\n    /**\n     *\n     * @param component\n     * @param {Array<string|IAdapter>}listAdapters\n     * @param onAfter\n     * @param debug\n     * @returns {any}\n     */\n    addLists(component, listAdapters, {\n      onAfter,\n      debug = false\n    } = {}) {\n      if (component && !component?.isDestroyed) {\n        Ember.set(component, 'listsIsLoaded', null);\n      }\n      if (!Ember.isArray(listAdapters)) {\n        listAdapters = [listAdapters];\n      }\n      const existing = this.listAdapters;\n      if (Ember.isArray(existing)) {\n        listAdapters.forEach(adapterName => {\n          if (!existing.includes(adapterName)) {\n            existing.pushObject(adapterName);\n          }\n        });\n      }\n      return this.setupListsTask.perform({\n        listAdapters,\n        component,\n        onAfter,\n        debug\n      });\n    }\n\n    /**\n     * Enqueues a task to fetch a list of data.\n     *\n     * @param {Object} [params] - The parameters for fetching the list.\n     * @param {string} params.adapterName - The name of the adapter to use for fetching the list.\n     * @param {string} params.appendPath - The path to append to the adapter's base URL for fetching the list.\n     * @param {string} [params.listId=''] - The ID of the list.\n     * @param {Object} [params.options={}] - Additional options for fetching the list.\n     * @param {Object} params.component - The component that is making the fetch request.\n     * @param {IServerType} params.serverType - The type of the server to use for fetching the list.\n     *\n     * @return {Promise} A Promise that resolves with the fetched list.\n     */\n    *_fetchList({\n      adapterName,\n      appendPath,\n      listId = '',\n      options = {},\n      component,\n      serverType\n    } = {}) {\n      const list = yield this.dataManager.fetchList({\n        adapterName,\n        appendPath,\n        options,\n        serverType\n      });\n      if (!component?.isDestroyed) {\n        Ember.set(this.lists, listId, list);\n        this.refreshList(this.lists);\n      }\n      return list;\n    }\n    getListId({\n      adapterName,\n      appendPath\n    } = {}) {\n      let listId = adapterName.replace(/\\//g, '-');\n      if (!_nventor.default.isNilOrEmpty(appendPath)) {\n        listId = `${listId}--${appendPath.replace(/\\//g, '-')}`;\n      }\n      return listId;\n    }\n\n    /**\n     * @param {Object} args - The arguments for the method.\n     * @param {Array<string|IAdapter>} args.listAdapters - The list adapters.\n     * @param {Object} args.component - The component.\n     * @param {Function} args.onAfter - The callback function to execute after setupListsTask.\n     * @param {IServerType} args.serverType - The server type.\n     * @return {Array} - The results of the setupListsTask method.\n     */\n    *setupListsTask(args = {}) {\n      const {\n        listAdapters,\n        component,\n        onAfter,\n        serverType,\n        debug = false\n      } = args;\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      if (!component?.isDestroyed) {\n        Ember.set(component, 'isLoadingLists', true);\n      }\n      let options = {};\n      const toFetchListAdapters = listAdapters || this.listAdapters;\n      const q = toFetchListAdapters.map(adapter => {\n        let adapterName;\n        let appendPath = '';\n        if (_nventor.default.confirm.isObject(adapter)) {\n          appendPath = adapter.appendPath;\n          adapterName = adapter.adapterName || adapter.name;\n          options = adapter.options;\n        } else {\n          adapterName = adapter;\n        }\n        const listId = this.getListId({\n          adapterName,\n          appendPath\n        });\n        return this._fetchList.perform({\n          adapterName,\n          appendPath,\n          listId,\n          options,\n          component,\n          serverType\n        });\n      });\n      const results = yield (0, _emberConcurrency.all)(q);\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      component.lists = this.lists;\n      if (component.debug) {\n        debugger; //eslint-disable-line\n      }\n      if (component && !component?.isDestroyed) {\n        Ember.set(component, 'isLoadingLists', false);\n        Ember.set(component, 'listsIsLoaded', Math.random());\n      }\n      if (onAfter) {\n        // @TODO: this should be deprecated. since this wont call after loadList\n        // known places where its used:\n        // transporter mixin: didinsert autofetch list\n        return onAfter(results);\n      }\n      if (component.afterLoadLists && !component?.isDestroyed) {\n        return component.afterLoadLists(results);\n      }\n      return results;\n    }\n    refreshList(lists) {\n      this.lists = lists;\n    }\n\n    // @deprecated. should this be used?\n    afterSearch({\n      dashComponent,\n      component,\n      tab\n    }, results) {\n      // const tab = this.tab\n\n      if (!_nventor.default.isNilOrEmpty(results)) {\n        if (this.tabsManager.isActiveSubTab) {\n          if (this.tabsManager.isActiveSubTab(tab, {\n            component: dashComponent\n          })) {\n            if (component.dash) {\n              return component.dash({}, results);\n            }\n          }\n        }\n      }\n      return Ember.set(component, 'showResults', true);\n    }\n    afterTabSearch({\n      component,\n      filters,\n      ignoreForComponent\n    }, results) {\n      const tabs = component?.args?.tab?.subTabs || component?.tab?.subTabs || [];\n      const activeTab = this.tabsManager.getActiveTab(tabs);\n      if (activeTab?.component === ignoreForComponent) {\n        return;\n      }\n      Ember.set(filters, 'showResults', true);\n    }\n\n    /**\n     * Creates a batch task with the given options.\n     *\n     * @param {Object} options - The options for creating the batch task.\n     * @param {string} [options.adapterName=''] - The name of the adapter.\n     * @param {string} [options.appendPath] - The path to append to the adapter URL.\n     * @param {Object} options.component - The component associated with the batch task.\n     * @param {string} [options.errorsProp='errors'] - The property name to store the validation errors.\n     * @param {Array} options.batch - The batch data.\n     * @param {function} [options.onAfter] - The callback function to execute after the batch task is created.\n     * @param {any} [options.onAfterOptions] - The options to be passed to the onAfter callback function.\n     * @param {function} [options.onBefore] - The callback function to execute before the batch task is created.\n     * @param {function} [options.onError] - The callback function to execute if an error occurs.\n     * @param {string} [options.tab] - The tab associated with the batch task.\n     * @param {IServerType} [options.serverType] - The server type to use.\n     *\n     * @returns {Generator<any>} - The promise that resolves with the saved data or null if an error occurs.\n     *\n     * @throws {Error} - If the updateBatchTask fails.\n     */\n    *createBatchTask(options = {}) {\n      let {\n        adapterName = '',\n        appendPath,\n        component,\n        errorsProp = 'errors',\n        batch,\n        onAfter,\n        onAfterOptions,\n        onBefore,\n        onError,\n        tab,\n        serverType\n      } = options;\n      try {\n        if (onBefore) {\n          batch = onBefore(batch);\n        }\n        const saved = yield this.dataManager.createBatch({\n          adapterName,\n          appendPath,\n          batch,\n          serverType\n        });\n        this._setWasSaved(component);\n        this.tabsManager.clearErrors(tab);\n        if (onAfter) {\n          return onAfter(saved, onAfterOptions);\n        }\n        return saved;\n      } catch (err) {\n        this.setValidationErrors(errorsProp, err, {\n          component,\n          dirty: batch,\n          tab\n        });\n        _nventor.default.throw('updateBatchTask failed', err);\n        if (onError) {\n          return onError(err);\n        }\n        return null;\n      }\n    }\n\n    /**\n     * Build a stable key for one fetchBatch queue.\n     * @param {string} adapterName - crud adapter\n     * @param {string} appendPath - path appended to the adapter\n     * @param {string} [queueName] - explicit queue name; wins over adapter + path\n     * @return {string} queue key\n     */\n    _getQueueKey(adapterName, appendPath, queueName) {\n      if (queueName) {\n        return queueName;\n      }\n      return `${adapterName}${appendPath}`;\n    }\n\n    /**\n     * Get or create the in-memory queue for one destination.\n     * @param {string} queueKey - key from _getQueueKey\n     * @param {Object} destination - request destination stored on first use\n     * @param {string} destination.adapterName - crud adapter\n     * @param {string} destination.appendPath - path appended to the adapter\n     * @return {Object} queue state\n     */\n    _getQueue(queueKey, destination) {\n      if (!this._queues[queueKey]) {\n        this._queues[queueKey] = {\n          items: [],\n          flushScheduled: false,\n          adapterName: destination.adapterName,\n          appendPath: destination.appendPath\n        };\n      }\n      return this._queues[queueKey];\n    }\n\n    /**\n     * Build the group key for one queued item.\n     * @param {Object} item - queued fetch item\n     * @return {string} group key\n     */\n    _getQueueItemGroupKey(item) {\n      return item.groupKey || _nventor.default.safeStringifyJSON(item.data);\n    }\n\n    /**\n     * Same payload is sent once. Every caller's callback and promise is kept.\n     * @param {Object[]} queuedItems - queued fetch items claimed at flush time\n     * @return {Object[]} one item per unique payload, with all waiters collected\n     */\n    _groupQueueItems(queuedItems) {\n      const itemsByKey = R.groupBy(this._getQueueItemGroupKey)(queuedItems);\n      return R.map(items => {\n        return {\n          data: items[0].data,\n          cbs: R.pluck('cb')(items),\n          resolves: R.pluck('resolve')(items),\n          rejects: R.pluck('reject')(items),\n          debug: R.any(item => item.debug)(items)\n        };\n      })(R.values(itemsByKey));\n    }\n\n    /**\n     * Turn one raw batch row into a record. Same path as findRecord.\n     * @param {string} adapterName - crud adapter\n     * @param {Object|*} row - raw JSON or an existing record\n     * @return {Object} populated record\n     */\n    _populateBatchRow(adapterName, row) {\n      return this.dataManager.setAsRecord({\n        adapterName,\n        data: row\n      });\n    }\n\n    /**\n     * Populate a batch response. A list slot becomes a list of records (contacts\n     * batch). An object slot becomes one record (collection batch).\n     * @param {string} adapterName - crud adapter used for setAsRecord\n     * @param {Array|*} rawResults - POST body after search, before populate\n     * @return {Array|*} same shape, with rows turned into records\n     */\n    _populateBatchResults(adapterName, rawResults) {\n      if (!R.is(Array, rawResults)) {\n        return this._populateBatchRow(adapterName, rawResults);\n      }\n      return R.map(slot => {\n        if (!R.is(Array, slot)) {\n          return this._populateBatchRow(adapterName, slot);\n        }\n        return R.map(row => {\n          return this._populateBatchRow(adapterName, row);\n        })(slot);\n      })(rawResults);\n    }\n\n    /**\n     * Queue a fetch and debounce it into a shared batch POST for that destination.\n     * Separate adapterName + appendPath (or queueName) values use separate queues\n     * and can flush in parallel. immediate sends only this item (other queued\n     * items stay on the debounce timer). The callback receives the populated\n     * batch and the result for this payload. Returns a promise that resolves\n     * after the request and callbacks.\n     * @param {Object} options - fetch identity\n     * @param {Object} [options.data={}] - payload sent as one batch item\n     * @param {string} options.adapterName - crud adapter\n     * @param {string} [options.appendPath=''] - path appended to the adapter\n     * @param {string} [options.queueName] - explicit queue; defaults to adapter + path\n     * @param {boolean} [options.immediate=false] - skip debounce; send only this item now (pending debounce items stay queued)\n     * @param {boolean} [options.debug=false] - pause in the debugger after the response\n     * @param {string} [options.groupKey] - dedupe key; defaults to a safe stringify of data\n     * @param {Function} cb - called with (populatedBatch, result) when the request finishes\n     * @return {Promise<*>} resolves with this payload's result after callbacks run\n     */\n    fetchBatch({\n      data = {},\n      adapterName,\n      appendPath = '',\n      queueName,\n      immediate = false,\n      debug = false,\n      groupKey\n    }, cb) {\n      if (!adapterName) {\n        return Promise.reject(new Error('fetchBatch requires adapterName'));\n      }\n      const payload = R.clone(data || {});\n      let resolveRequest;\n      let rejectRequest;\n      const requestPromise = new Promise((resolve, reject) => {\n        resolveRequest = resolve;\n        rejectRequest = reject;\n      });\n      const queuedItem = {\n        data: payload,\n        cb,\n        debug,\n        groupKey,\n        resolve: resolveRequest,\n        reject: rejectRequest\n      };\n      if (immediate) {\n        this._flushQueueTask.perform({\n          queuedItems: [queuedItem],\n          debug,\n          adapterName,\n          appendPath\n        });\n        return requestPromise;\n      }\n      const queueKey = this._getQueueKey(adapterName, appendPath, queueName);\n      const queue = this._getQueue(queueKey, {\n        adapterName,\n        appendPath\n      });\n      queue.items.push(queuedItem);\n      this._scheduleQueueFlush(queue);\n      return requestPromise;\n    }\n\n    /**\n     * Start a single debounce timer for this queue if none is waiting.\n     * @param {Object} queue - queue state from _getQueue\n     * @return {undefined}\n     */\n    _scheduleQueueFlush(queue) {\n      if (queue.flushScheduled) {\n        return;\n      }\n      queue.flushScheduled = true;\n      setTimeout(() => {\n        queue.flushScheduled = false;\n        this._flushQueue(queue);\n      }, QUEUE_FLUSH_MS);\n    }\n\n    /**\n     * Claim the current queue items and start the network task.\n     * @param {Object} queue - queue state from _getQueue\n     * @return {undefined}\n     */\n    _flushQueue(queue) {\n      const queuedItems = queue.items;\n      if (RA.isNilOrEmpty(queuedItems)) {\n        return;\n      }\n      queue.items = [];\n      const debug = R.any(item => item.debug)(queuedItems);\n      this._flushQueueTask.perform({\n        queuedItems,\n        debug,\n        adapterName: queue.adapterName,\n        appendPath: queue.appendPath\n      });\n    }\n\n    /**\n     * Call each function in the list. Skips anything that is not a function.\n     * @param {Function[]} [fns=[]] - callbacks, resolves, or rejects\n     * @param {...*} args - arguments passed to each function\n     * @return {undefined}\n     */\n    _callFunctions(fns = [], ...args) {\n      R.forEach(fn => {\n        if (typeof fn !== 'function') {\n          return;\n        }\n        fn(...args);\n      })(fns);\n    }\n\n    /**\n     * This request's result from the batch response.\n     * @param {Array|*} populatedBatch - populated batch response\n     * @param {number} index - item index in the unique batch\n     * @return {*} the value at index, or the whole response when it is not an array\n     */\n    _getIndexedResult(populatedBatch, index) {\n      if (!R.is(Array, populatedBatch)) {\n        return populatedBatch;\n      }\n      return populatedBatch[index];\n    }\n\n    /**\n     * Run callbacks and resolves for each unique item with its result.\n     * @param {Object[]} uniqueItems - grouped queue items\n     * @param {Array|*} populatedBatch - populated batch response\n     * @return {undefined}\n     */\n    _deliverQueueResults(uniqueItems, populatedBatch) {\n      RA.mapIndexed((item, index) => {\n        const result = this._getIndexedResult(populatedBatch, index);\n        this._callFunctions(item.cbs, populatedBatch, result);\n        this._callFunctions(item.resolves, result);\n      })(uniqueItems);\n    }\n\n    /**\n     * Reject every queued promise with the same error.\n     * @param {Object[]} uniqueItems - grouped queue items\n     * @param {Error} error - request error\n     * @return {undefined}\n     */\n    _rejectQueueItems(uniqueItems, error) {\n      R.forEach(item => {\n        this._callFunctions(item.rejects, error);\n      })(uniqueItems);\n    }\n\n    /**\n     * POST the queued payloads as one batch, populate each slot into records,\n     * and invoke each item's callback with its result. Does not touch\n     * queue.items; the caller already claimed the items before yielding.\n     * Concurrent with other queues.\n     * @param {Object} options - claimed batch to send\n     * @param {Object[]} options.queuedItems - queued fetch items claimed at flush time\n     * @param {boolean} [options.debug=false] - pause in the debugger after the response\n     * @param {string} options.adapterName - crud adapter\n     * @param {string} [options.appendPath=''] - path appended to the adapter\n     * @return {Array} populated batch results (one result per unique payload)\n     */\n    *_flushQueueTask({\n      queuedItems,\n      debug = false,\n      adapterName,\n      appendPath = ''\n    }) {\n      const uniqueItems = this._groupQueueItems(queuedItems);\n      const batch = R.pluck('data')(uniqueItems);\n      try {\n        const rawResults = yield this.searchRecordsTask.perform({\n          method: 'POST',\n          adapterName,\n          appendPath,\n          rawResponse: true,\n          data: {\n            batch\n          }\n        });\n        const populatedBatch = this._populateBatchResults(adapterName, rawResults);\n        if (debug) {\n          debugger; //eslint-disable-line\n        }\n        this._deliverQueueResults(uniqueItems, populatedBatch);\n        return populatedBatch;\n      } catch (error) {\n        this._rejectQueueItems(uniqueItems, error);\n        throw error;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tabsManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"listAdapters\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"lists\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"imagesCache\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupNewRecord\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setupNewRecord\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDirty\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setValidationErrors\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"setValidationErrors\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmChanges\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEditing\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEditing\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"replaceRecordTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"replaceRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"queueUpdateRecordTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"queueUpdateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateRecordTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"updateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateBatchTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"updateBatchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_removeBatchTask\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"_removeBatchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeBatchTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"removeBatchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeRecordTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"removeRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"ajaxCallTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"ajaxCallTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"adapterCallTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"adapterCallTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchUploadsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchUploadsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"findTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"findTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"findConcurrentTask\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"findConcurrentTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateRecordTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"validateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createRecordTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"createRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"upsertRecordTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"upsertRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"queueCreateRecordTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"queueCreateRecordTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchRecordsTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchRecordsConcurrentlyTask\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"searchRecordsConcurrentlyTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadSearchRecordsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadSearchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"paginateSearchRecordsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"paginateSearchRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchInputTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchAdvancedTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchAdvancedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchAdvancedEnqueuedTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchAdvancedEnqueuedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDefaultDataTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDefaultDataTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_fetchList\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"_fetchList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getListId\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"getListId\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupListsTask\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"setupListsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshList\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterSearch\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"afterSearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterTabSearch\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"afterTabSearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createBatchTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"createBatchTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchBatch\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchBatch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_flushQueueTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_flushQueueTask\"), _class.prototype), _class);\n  /**\n   * @typedef {Object} IAdapter\n   * @property {string} name\n   * @property {string} appendPath\n   */\n});","define(\"client/pods/data-manager/service\", [\"exports\", \"client/utils/nventor\", \"client/config/environment\", \"ramda-adjunct\", \"ramda\"], function (_exports, _nventor, _environment, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  window.Ed = {};\n  window.Ed.CACHE = {};\n  window.Ed.edit = {};\n  window.Ed.sync = {};\n  window.Ed.syncList = {};\n  var _default = _exports.default = Ember.Service.extend({\n    big: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    applicationService: Ember.inject.service('application'),\n    notificationsService: Ember.inject.service('notifications'),\n    campaignsProductsService: Ember.inject.service('campaigns-products'),\n    transporterService: Ember.inject.service('transporter'),\n    search: Ember.inject.service('search'),\n    emails: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    productsService: Ember.inject.service('products'),\n    recurringService: Ember.inject.service('recurring'),\n    eInvoicesService: Ember.inject.service('extensions/apps/tw/e-invoices'),\n    websitesService: Ember.inject.service('websites'),\n    server: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    uploadcare: Ember.inject.service(),\n    users: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n      this.resetCache();\n    },\n    resetCache() {\n      // resets store on create\n      window.Ed = {};\n      window.Ed.CACHE = {};\n      window.Ed.edit = {};\n      window.Ed.sync = {};\n      window.Ed.syncList = {};\n      this.set('cache', window.Ed.CACHE);\n      this.set('editingRegistry', window.Ed.edit);\n      this.set('syncQ', window.Ed.sync);\n    },\n    _getCacheId(adapterName, record) {\n      const adapter = this.getAdapter(adapterName);\n      if (!record) {\n        return false;\n      }\n      const idParam = adapter.get('idParam');\n      const idPrefix = adapter.get('idPrefix');\n      if (idParam === false) {\n        return false;\n      }\n      let cacheId;\n      // if (record._data) {\n      //   if (!R.is(Array, idParam)) {\n      //     cacheId = this._getIdFromMultipleParams(idParam, record._data)\n      //   } else {\n      //     cacheId = record._data[idParam]\n      //   }\n      // } else {\n      //   cacheId = this._getIdFromMultipleParams(idParam, record)\n      // }\n\n      let data;\n      if (record._data) {\n        data = record._data;\n      } else {\n        data = record;\n      }\n      if (R.is(Array, idParam)) {\n        cacheId = this._getIdFromMultipleParams(idParam, data);\n      } else {\n        cacheId = data[idParam];\n      }\n      if (cacheId) {\n        if (idPrefix) {\n          cacheId = `${idPrefix}/${cacheId}`;\n        }\n        return cacheId;\n      }\n      if (!R.isEmpty(data)) {\n        _nventor.default.throw('AdapterName: ' + adapterName + ' Cannot get id from record/data. idParam: ' + idParam, record);\n      }\n    },\n    _getIdFromMultipleParams(idParams, record) {\n      if (!R.is(Array, idParams)) {\n        idParams = [idParams];\n      }\n      return R.pipe(R.map(param => R.propOr(param, param, record)), R.join('--'))(idParams);\n    },\n    getFromCache(cacheId) {\n      if (cacheId === false) {\n        return false;\n      }\n      const cache = this.cache;\n      return cache[cacheId];\n    },\n    _storeToCache(model, cacheId) {\n      if (model?.isDirty) {\n        return model;\n      }\n      const cache = this.cache;\n      if (cacheId !== false && RA.isNotNilOrEmpty(cacheId)) {\n        if (model.set) {\n          model.set('_cacheId', cacheId);\n        }\n        cache[cacheId] = model;\n        if (cache[cacheId]) {\n          return cache[cacheId];\n        }\n      }\n      return model;\n    },\n    _moveCached(oldCacheId, newCacheId) {\n      const cache = this.cache;\n      const model = cache[oldCacheId];\n      cache[newCacheId] = model;\n      delete cache[oldCacheId];\n    },\n    getAdapter(adapterName) {\n      const adapter = Ember.getOwner(this).lookup(`adapter:${adapterName}`);\n      if (!adapter) {\n        if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n          debugger; //eslint-disable-line\n        }\n        _nventor.default.throw(`DATA MANAGER: getAdapterError. Invalid adpaterName: ${adapterName}.`);\n      }\n      adapter.set('syncAdapterName', adapterName);\n      return adapter;\n    },\n    findAll({\n      method = 'GET',\n      adapterName,\n      appendPath,\n      modelAdapterName,\n      data = {},\n      rawResponse,\n      filters,\n      isSearchBar = false,\n      onAfter,\n      options = {},\n      debug,\n      serverType\n    } = {}) {\n      // @NOTE: must supply DATA if options object is also supplied\n      const adapter = this.getAdapter(adapterName);\n      if (filters) {\n        if (filters._data) {\n          const filtersData = isSearchBar ? filters.serializeSearchBarData() : filters.serialize();\n          data = R.mergeRight(data, filtersData);\n        } else {\n          const keys = Object.keys(filters) || [];\n          keys.forEach(key => {\n            data[key] = filters[key];\n          });\n        }\n      }\n\n      // check if appendPath was supplied\n      if (_nventor.default.confirm.isObject(appendPath)) {\n        options = _nventor.default.copy(data);\n        data = _nventor.default.copy(appendPath);\n        appendPath = null;\n      }\n\n      // findAll may return [results] array or an object with an array as one of the props. the prop is set in the adapter\n      options.filters = filters;\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      return adapter.findAll({\n        data,\n        appendPath,\n        options,\n        serverType\n      }).then(responseData => {\n        if (debug) {\n          debugger; //eslint-disable-line\n        }\n        if (adapter.afterFindAll) {\n          return adapter.afterFindAll(responseData);\n        }\n\n        // convert each JSON data to a model instance (record)\n        let resultsArray = responseData;\n        if (adapter.resultsProperty) {\n          resultsArray = R.propOr([], adapter.resultsProperty, responseData);\n        }\n        if (options.excludeDeleted) {\n          resultsArray = R.reject(R.pathEq(['isDeleted'], true))(resultsArray);\n        }\n        if (rawResponse) {\n          return resultsArray;\n        }\n        const isPartial = options?.isPartial || false;\n        const results = R.map(json => {\n          if (isPartial) {\n            return this.setPartialRecord({\n              adapterName: modelAdapterName || adapterName,\n              data: json\n            });\n          }\n\n          // if record already exists in cache, it will update the data\n          // cache can be turned off by using options\n          return this.setAsRecord({\n            adapterName: modelAdapterName || adapterName,\n            data: json,\n            options,\n            debug\n          });\n        })(resultsArray);\n        if (adapter.resultsProperty) {\n          responseData[adapter.resultsProperty] = results;\n          return responseData;\n        }\n        return results;\n      });\n    },\n    /**\n     * Use when broadcasting is required. To register in the cache, the data object should contain the idParam key:value pair\n     * @param options\n     * @param options.adapterName\n     * @param options.data\n     * @param options.attrs\n     * @param options.options\n     * @param options.debug\n     * @returns {{_data}|{}|{isDirty}|*|{set}|boolean}\n     */\n    setAsRecord({\n      adapterName,\n      data = {},\n      attrs = {},\n      options = {},\n      debug\n    }) {\n      // if (debug) {\n      //   debugger //eslint-disable-line\n      // }\n\n      if (data._data) {\n        // already a class. dont set as class again. this will only happen when sync update has action=push\n        return data;\n      }\n\n      // if (nventor.isNilOrEmpty(data)) {\n      //   return {}\n      // }\n\n      // store cache of each individual result model: default = true\n      const cache = R.propOr(true, 'cache', options);\n      const adapter = this.getAdapter(adapterName);\n      if (data._isPartial) {\n        attrs.isPartial = true;\n      }\n      if (adapter.beforePopulate) {\n        data = adapter.beforePopulate(data);\n      }\n      if (cache && adapter.get('idParam')) {\n        const cacheId = this._getCacheId(adapterName, data);\n        if (cacheId == null && !R.isEmpty(data)) {\n          _nventor.default.throw('Cannot Set as Record: no id found in model for ' + adapterName + '. Id: ' + cacheId);\n        }\n        const hasCached = this.getFromCache(cacheId);\n        if (hasCached) {\n          this.setEditingToOutOfDate(cacheId, data);\n          return this._refreshModel({\n            record: hasCached,\n            data,\n            options,\n            attrs,\n            debug\n          });\n        }\n        const record = this.newRecord({\n          adapterName,\n          data,\n          attrs,\n          debug\n        });\n        return this._storeToCache(record, cacheId);\n      }\n      return this.newRecord({\n        adapterName,\n        data,\n        attrs,\n        debug\n      });\n    },\n    setPartialRecord({\n      adapterName,\n      data,\n      attrs = {}\n    }) {\n      // create partial\n      attrs.isPartial = true;\n      return this.setAsRecord({\n        adapterName,\n        data,\n        attrs\n      });\n    },\n    mergeAndSetPartialRecord({\n      adapterName,\n      data,\n      attrs = {},\n      options = {}\n    }) {\n      // create partial\n      attrs.isPartial = true;\n      options.mergeWithCache = true;\n      return this.setAsRecord({\n        adapterName,\n        data,\n        attrs,\n        options\n      });\n    },\n    /**\n     * Create model but dont store to cache\n     * @param options\n     * @param options.adapterName\n     * @param options.data\n     * @param options.attrs\n     * @param options.debug\n     * @returns {*}\n     */\n    newRecord({\n      adapterName,\n      data = {},\n      attrs = {},\n      debug\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n\n      // create model but dont store to cache\n      try {\n        if (adapterName !== 'settings') {\n          attrs.settings = this.settings;\n        }\n        attrs.dataManager = this;\n        attrs.productsService = this.productsService;\n        attrs.crud = this.crud;\n        attrs.applicationService = this.applicationService;\n        attrs.campaignsProductsService = this.campaignsProductsService;\n        attrs.transporterService = this.transporterService;\n        attrs.search = this.search;\n        attrs.notificationsService = this.notificationsService;\n        attrs.dateService = this.dateService;\n        attrs.uploadcare = this.uploadcare;\n        attrs.server = this.server;\n        attrs.big = this.big;\n        attrs.users = this.users;\n        attrs.emails = this.emails;\n        attrs.intl = this.intl;\n        attrs.adapterName = adapterName;\n        attrs.eInvoicesService = this.eInvoicesService;\n        attrs.websitesService = this.websitesService;\n        if (data._isPartial) {\n          attrs.isPartial = true;\n        }\n        return adapter.createModel(adapterName, adapter, data, attrs);\n      } catch (e) {\n        // console.log('context: ', data)\n        _nventor.default.throw('Cannot create new record for adapter ' + adapterName + '. Error: ' + e, data);\n      }\n    },\n    findRecord({\n      adapterName,\n      appendPath = '',\n      params = {},\n      filters = {},\n      token,\n      options,\n      rawResponse,\n      serverType\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      if (Ember.isNone(adapter)) {\n        return _nventor.default.throw('Incorrect adapterName given: `' + adapterName + '`');\n      }\n      if (_nventor.default.confirm.isObject(appendPath)) {\n        params = appendPath;\n        appendPath = null;\n      }\n      if (RA.isNotNilOrEmpty(filters)) {\n        let filtersData = filters;\n        if (filters.serialize) {\n          filtersData = filters.serialize();\n        }\n        params = R.mergeRight(filtersData, params);\n      }\n      return adapter.find({\n        data: params,\n        appendPath,\n        token,\n        serverType\n      }).then(found => {\n        if (rawResponse) {\n          return found;\n        }\n\n        // @NOTE: this has a problem when the model is not found. it will still create an empty model\n\n        return this.setAsRecord({\n          adapterName,\n          data: found,\n          options\n        });\n      });\n    },\n    /**\n     * call method on adapter directly. (custom method).\n     * custom method exists on adapter, that can do extra processing\n     * will use the adpaters serializer and methods.\n     * used for batches or when wanting to update but need to bypass the data manager cache\n     */\n    adapterCall({\n      method,\n      adapterName,\n      appendPath,\n      model,\n      serverType\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      let serializedData = model;\n      serializedData = adapter.serialize(model);\n\n      // call custom method on adapter\n      return adapter[method]({\n        data: serializedData,\n        appendPath,\n        serverType\n      });\n    },\n    /**\n     * Makes an AJAX call using the specified method, adapter, and parameters.\n     * call AJAX method bypassing data manager but\n     * will use the adpaters serializer and methods.\n     * used for batches or when wanting to update but need to bypass the data manager cache.\n     * will still have the convenience of using adapters endpoint and serializer, but will not require dirty and reloading of templates\n     *\n     * @param {Object} options - The options for the AJAX call.\n     * @param {string} options.method - The HTTP method to use for the request.\n     * @param {string} options.adapterName - The name of the adapter to use for the request.\n     * @param {string} [options.appendPath=''] - The path to append to the request URL.\n     * @param {Object} [options.model={}] - The model data to be serialized and sent with the request.\n     * @param {Object} [options.data={}] - Additional data to be sent with the request.\n     * @param {Object} [options.additionalData={}] - Additional data to be merged with the serialized data.\n     * @param {Object} [options.filters] - Filters to be applied to the request.\n     * @param {boolean} [options.debug=false] - Whether to enable debugging mode.\n     * @param {IServerType} [options.serverType] - The type of server to send the request to.\n     * @return {Promise} A promise that resolves with the response from the AJAX call.\n     */\n    ajaxCall({\n      method,\n      adapterName,\n      appendPath = '',\n      model = {},\n      data = {},\n      additionalData = {},\n      filters,\n      debug = false,\n      serverType\n    }) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      const adapter = this.getAdapter(adapterName);\n      let serializedData = {};\n      if (model._data || R.is(Array, model)) {\n        serializedData = adapter.serialize(model, additionalData);\n      }\n      if (RA.isNotNilOrEmpty(data)) {\n        serializedData = R.mergeRight(serializedData, data);\n      }\n      if (RA.isNotNilOrEmpty(additionalData)) {\n        serializedData = R.mergeRight(serializedData, additionalData);\n      }\n      const options = {\n        filters\n      };\n      return adapter.call({\n        method,\n        data: serializedData,\n        appendPath,\n        options,\n        serverType\n      }).then(res => {\n        return res;\n      }).catch(err => {\n        // pass error down the promise chain\n        throw err;\n      });\n    },\n    /**\n     * Create a new record using the specified adapter.\n     *\n     * @param {Object} options - The options for creating a record.\n     * @param {string} options.adapterName - The name of the adapter to use.\n     * @param {string} [options.appendPath] - The path to append to the adapter URL.\n     * @param {Object} options.model - The model object to create the record from.\n     * @param {boolean} [options.rawResponse=false] - Flag indicating whether to return the raw response or not.\n     * @param {IServerType} [options.serverType=''] - The server type to use.\n     * @param {string} [options.method='POST'] - The request method.\n     *\n     * @returns {Object|Promise<Object>} - The created model object or a Promise that resolves with the created model object.\n     */\n    async createRecord({\n      adapterName,\n      appendPath,\n      model,\n      rawResponse = false,\n      serverType,\n      method = 'POST'\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      if (Ember.isNone(adapter)) {\n        return _nventor.default.throw('Incorrect adapterName given: `' + adapterName + '`');\n      }\n      if (_nventor.default.confirm.isObject(appendPath)) {\n        model = appendPath;\n        appendPath = null;\n      }\n      const data = adapter.serialize(model);\n      const newRecord = this.copyRecord(adapterName, model);\n      const date = new Date();\n      newRecord.set('createdAt', date.getTime());\n      newRecord?.startSaving?.();\n      const response = await adapter.save({\n        data,\n        appendPath,\n        serverType,\n        method\n      });\n      const createdData = R.propOr(response, 'model', response);\n      newRecord?.stopSaving?.();\n      newRecord.populate(createdData);\n      const cacheId = this._getCacheId(adapterName, newRecord);\n      newRecord.setData('_cacheId', cacheId);\n\n      // save instance to cache..\n      const newModel = this._storeToCache(newRecord, cacheId);\n      if (rawResponse) {\n        return {\n          rawResponse: response,\n          model: newModel\n        };\n      }\n      return newModel;\n    },\n    /**\n     * Updates a record in the system.\n     * @param {object} options - The options for updating the record.\n     * @param {string} options.adapterName - The name of the adapter.\n     * @param {string|null} options.appendPath - The path to append.\n     * @param {object} options.dirty - The dirty model.\n     * @param {object} [options.updateProps={}] - The properties to update.\n     * @param {object} [options.excludeProps={}] - The properties to exclude.\n     * @param {boolean} [options.rawResponse=false] - Indicates if the raw response should be returned.\n     * @param {boolean} [options.debug=false] - Indicates if debugging should be enabled.\n     * @param {IServerType} [options.serverType=''] - The server type to use.\n     * @returns {Promise<object>|Promise<Error>} - A promise that resolves to the updated model or rejects with an error.\n     */\n    updateRecord({\n      adapterName,\n      appendPath,\n      dirty,\n      updateProps = {},\n      excludeProps = {},\n      rawResponse = false,\n      debug = false,\n      serverType\n    }) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n\n      // check if appendPath was supplied\n      if (_nventor.default.confirm.isObject(appendPath)) {\n        dirty = appendPath;\n        appendPath = null;\n      }\n      const adapter = this.getAdapter(adapterName);\n      const cacheId = this._getCacheId(adapterName, dirty);\n      const original = this.getFromCache(cacheId);\n      if (!original) {\n        _nventor.default.log(`no cacheId set for model in adapter: ${adapter}`);\n      }\n\n      // set saving on both original and dirty model\n      dirty?.startSaving?.();\n      original?.startSaving?.();\n\n      // send data as an object\n      let data = adapter.serialize(dirty);\n      if (!_nventor.default.isNilOrEmpty(excludeProps)) {\n        data = R.omit(excludeProps)(data);\n        data._isPartial = true;\n      }\n      if (!_nventor.default.isNilOrEmpty(updateProps)) {\n        // if (adapterName === 'settings') {\n        //   updateProps = updateProps.concat([\n        //     'company',\n        //     'dispatchedEmailSubject',\n        //     'emailFromAddress',\n        //     'emailFromName',\n        //     'emailSignature',\n        //     'orderedEmailSubject'\n        //   ])\n        // }\n        updateProps = updateProps.concat(['_key', '_id', '_rev']);\n        data = R.pick(updateProps)(data);\n        data._isPartial = true;\n      }\n      data._cacheId = cacheId;\n      return adapter.update({\n        data,\n        appendPath,\n        serverType\n      }).then(response => {\n        const updatedData = R.propOr(response, 'model', response);\n\n        // repopulates model with data supplied or data from syncQ\n        this._refreshModel({\n          record: original,\n          data: updatedData,\n          attrs: {\n            isPartial: dirty?.isPartial || false\n          }\n        });\n\n        // update record will not update model, the server will send data via websocket and update the model via sync\n\n        dirty?.stopSaving?.();\n        original?.stopSaving?.();\n        this._deregisterEditing(dirty, cacheId);\n        if (rawResponse) {\n          return {\n            rawResponse: response,\n            model: original\n          };\n        }\n        return original;\n      }).catch(err => {\n        dirty?.stopSaving?.();\n        original?.stopSaving?.();\n        if (err.revisionError) {\n          // handle revision error..\n          this.setEditingToOutOfDate(cacheId);\n          // throw an error to allow the other .catch to chain\n        }\n\n        // pass error down the promise chain\n        throw err;\n      });\n    },\n    /**\n     * Replace the record with the given data and return the updated record.\n     *\n     * @param {Object} options - The options for the replace operation.\n     * @param {string} options.adapterName - The name of the adapter to use.\n     * @param {Object} options.appendPath - The append path.\n     * @param {Object} options.dirty - The dirty data.\n     * @param {boolean} [options.rawResponse=false] - Whether to return the raw response with the updated record.\n     * @param {IServerType} [options.serverType=''] - The server type to use.\n     *\n     * @returns {Promise<Object>} - A promise that resolves with the updated record object.\n     *                            If `rawResponse` is set to `true`, the promise resolves with `{ rawResponse, model }`.\n     *\n     * @throws - An error if the replace operation fails or a revision error is occurred.\n     */\n    replaceRecord({\n      adapterName,\n      appendPath,\n      dirty,\n      rawResponse = false,\n      serverType,\n      debug = false\n    }) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n\n      // check if appendPath was supplied\n      if (_nventor.default.confirm.isObject(appendPath)) {\n        dirty = appendPath;\n        appendPath = null;\n      }\n      const adapter = this.getAdapter(adapterName);\n      const cacheId = this._getCacheId(adapterName, dirty);\n      const original = this.getFromCache(cacheId);\n\n      // set saving on both original and dirty model\n      dirty?.startSaving?.();\n      original?.startSaving?.();\n\n      // send data as an object\n      const data = adapter.serialize(dirty);\n      data._cacheId = cacheId;\n      return adapter.replace({\n        data,\n        appendPath,\n        serverType\n      }).then(response => {\n        const updatedData = R.propOr(response, 'model', response);\n        /* jshint unused: false */\n        // repopulates model with data supplied or data from syncQ\n        this._refreshModel({\n          record: original,\n          data: updatedData,\n          attrs: {\n            isPartial: dirty?.isPartial || false\n          }\n        });\n\n        // update record will not update model, the server will send data via websocket and update the model via sync\n\n        dirty?.stopSaving?.();\n        original?.stopSaving?.();\n        this._deregisterEditing(dirty, cacheId);\n        if (rawResponse) {\n          return {\n            rawResponse: response,\n            model: original\n          };\n        }\n        return original;\n      }).catch(err => {\n        dirty?.stopSaving?.();\n        original?.stopSaving?.();\n        if (err.revisionError) {\n          // handle revision error..\n          this.setEditingToOutOfDate(cacheId);\n          // throw an error to allow the other .catch to chain\n        }\n\n        // pass error down the promise chain\n        throw err;\n      });\n    },\n    /**\n     * Remove a record from the server using the specified adapter.\n     * This method removes the record from the cache as well if the removal is successful.\n     *\n     * @param {Object} options - The parameters for removing the record.\n     * @param {string} options.adapterName - The name of the adapter to use for removing the record.\n     * @param {string} options.appendPath - The additional path to append to the adapter's base URL.\n     * @param {Object} options.model - The model object of the record to be removed.\n     * @param {Array} options.batch - The array of model objects if multiple records are to be removed in a batch.\n     * @param {IServerType} [options.serverType=''] - The server type to use.\n     * @param {Object} [options.extraData] - Optional extra data to merge into the DELETE payload (e.g. `{ force: true }`).\n     *\n     * @return {Promise} A promise that resolves to true if the record is successfully removed, false otherwise.\n     */\n    removeRecord({\n      adapterName,\n      appendPath,\n      model,\n      batch,\n      serverType,\n      extraData\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      const cacheId = this._getCacheId(adapterName, model);\n      let data = {};\n      let batchData;\n      if (!RA.isNilOrEmpty(batch)) {\n        batchData = R.map(model => {\n          return adapter.serialize(model);\n        })(batch);\n      } else {\n        data = adapter.serialize(model);\n      }\n      if (RA.isNotNilOrEmpty(extraData)) {\n        data = R.mergeRight(data, extraData);\n      }\n      data._cacheId = cacheId;\n      data.batch = batchData;\n      return adapter.remove({\n        data,\n        appendPath,\n        serverType\n      }).then(isDeleted => {\n        if (!RA.isNilOrEmpty(batch)) {\n          // model is an array\n          R.forEach(deleted => {\n            if (isDeleted === true) {\n              // remove instance from cache..\n              this._removeModel(deleted);\n            }\n          })(batch);\n          return true;\n        }\n        if (isDeleted === true || isDeleted?.deleted || isDeleted?.model?.isDeleted) {\n          const cachedModel = this.getFromCache(cacheId);\n          if (cachedModel) {\n            this._removeModel(cachedModel);\n          }\n          if (model && model !== cachedModel) {\n            this._removeModel(model);\n          }\n          this.setEditingToIsDeleted(cacheId);\n          return true;\n        }\n\n        // @TODO: handle error\n        return false;\n      });\n    },\n    /**\n     * used when model is not a record.\n     */\n    updateModelWith({\n      adapterName,\n      original,\n      dirty\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      const data = adapter.serialize(dirty);\n      original.populate(data);\n      return original;\n    },\n    getDirtyRecord(adapterName, record, attrs = {}) {\n      const cacheId = this._getCacheId(adapterName, record);\n\n      // check if record (original) is in cache, if not then must add to cache\n      // this needs to be done because on updating record,\n      // it will need to update original\n      this._storeToCache(record, cacheId);\n      const dirty = this.copyRecord(adapterName, record, attrs);\n      dirty.set('dataManager', this);\n      dirty.set('settings', this.settings);\n      dirty.set('isDirty', true);\n\n      // if (!nventor.isNilOrEmpty(attrs)) {\n      //   dirty.setProperties(attrs)\n      // }\n\n      dirty.set('originalModel', record);\n\n      // how to register when there are:\n      //  .details = [record, record]\n\n      // add record to editing\n      this._registerEditing(dirty, cacheId);\n      return dirty;\n    },\n    cancelDirty(adapterName, dirty) {\n      if (dirty.get('isDirty')) {\n        const cacheId = this._getCacheId(adapterName, dirty);\n        this._deregisterEditing(dirty, cacheId);\n        return this.getFromCache(cacheId);\n      }\n      return dirty;\n    },\n    _removeModel(model) {\n      model.set('isDeleted', true);\n      model.set('isEditable', false);\n      if (model.updateSynced) {\n        model.updateSynced();\n      }\n    },\n    _refreshModel({\n      record,\n      data,\n      action,\n      actionOptions,\n      propPath,\n      options,\n      attrs = {}\n    }) {\n      const callBeforeSyncRefresh = incomingData => {\n        if (typeof record.beforeSyncRefresh !== 'function') {\n          return incomingData;\n        }\n        const preparedIncomingData = record.beforeSyncRefresh(action, incomingData);\n        if (RA.isNotNil(preparedIncomingData)) {\n          return preparedIncomingData;\n        }\n        return incomingData;\n      };\n      if (action && propPath) {\n        data = callBeforeSyncRefresh(data);\n        if (action === 'arrayPop') {\n          const recordData = record._data;\n          const array = R.path(propPath, recordData);\n          const popIdPath = actionOptions.popIdPath || '';\n          if (!popIdPath) {\n            _nventor.default.throw('arrayPop needs actionOptions.popIdPath');\n            return false;\n          }\n          const dataId = data[popIdPath] || '';\n          if (!dataId) {\n            _nventor.default.throw(`data[${popIdPath}] needs a value to arrayPop`);\n            return false;\n          }\n          const newArray = R.reduce((acc, record) => {\n            const toMatchId = record.getData(popIdPath);\n            if (toMatchId === dataId) {\n              return acc;\n            }\n            acc.pushObject(record);\n            return acc;\n          }, [])(array);\n          record.setData(propPath, newArray);\n          // array.unshiftObject(data)\n          data = recordData;\n        } else if (action === 'arrayPush') {\n          const recordData = record._data;\n          const array = R.path(propPath, recordData);\n          if (array.indexOf(data) <= -1) {\n            array.pushObject(data);\n          }\n          data = recordData;\n        } else if (action === 'arrayUnshift') {\n          const recordData = record._data;\n          const array = R.path(propPath, recordData);\n          array.unshiftObject(data);\n          data = recordData;\n        }\n\n        // need to repopulate model as array items needs to be transformed to models again\n        const newData = record.serialize();\n        record.populate(newData);\n      } else {\n        // @TODO: if isPartial then check if revs equal. if equal merge\n        // if no rev, then check if props match.\n        // or never have isPartial without a rev?\n        if (record.populate) {\n          const oldData = record.serialize();\n          // @NOTE: there is still a problem here with partial data.\n          // if originally a record is a partial, then when syncing with a full model,\n          // the record still remains as a partial\n          // if partial record contains: {\n          //   name: 'abc',\n          //   age: 2\n          // } and is then updated with a new partial of {\n          //   name: 'aaa'\n          // } if age is no longer there then the record cannot remove the age prop\n          // if (record.isPartial || attrs.isPartial || data._isPartial) {\n\n          // always treat as partial\n          data = callBeforeSyncRefresh(data);\n          const refreshWithData = R.mergeRight(oldData, data);\n          record.populate(refreshWithData);\n\n          // } else {\n          //   record.populate(data)\n          // }\n        }\n        if (!_nventor.default.isNilOrEmpty(attrs) && record?.setProperties) {\n          record?.setProperties?.(attrs);\n        }\n      }\n      return record;\n    },\n    _registerEditing(dirty, id, idPrefix) {\n      const registry = this.editingRegistry;\n\n      // each time a model is being edited a random UID is given\n      // so that only that specific instance can be deregistered\n      // when no longer editing\n      // (there can be multiple dirty models in different places)\n\n      const isEditing = Math.random();\n      dirty.set('isEditing', isEditing);\n      if (id) {\n        if (idPrefix) {\n          id = `${idPrefix}/${id}`;\n        }\n\n        // add instance to editing list\n        // because the same model can be edited in multiple places,\n        // an array is required to keep track of the different places the model is being edited\n        registry[id] = registry[id] || [];\n        registry[id].pushObject(dirty);\n      }\n    },\n    /**\n     * SYNC\n     * deregisters the object instance from the editing list\n     * @param  {object} dirty - editing model copy instance\n     */\n    _deregisterEditing(dirty, cacheId) {\n      const editingRegistry = this.editingRegistry;\n      const instances = editingRegistry[cacheId];\n      if (instances) {\n        if (instances.length <= 1) {\n          // remove list\n          delete editingRegistry[cacheId];\n        } else {\n          // only remove the instance with specific isEditing\n          // var isEditing = dirty.get('isEditing');\n          instances.removeObject(dirty);\n        }\n      }\n    },\n    /**\n     * for getting cache id when syncing (only for when no adapter is given)\n     */\n    _generateCacheId(id, idPrefix) {\n      if (idPrefix) {\n        return `${idPrefix}/${id}`;\n      }\n      return id;\n    },\n    syncUpdate(syncOptions = {}) {\n      if (RA.isNilOrEmpty(syncOptions)) {\n        // there should never be the case for syncOptions to be empty\n        // but somehow there is a case where it is empty. there should be an email to admin here\n        return;\n      }\n      const {\n        model,\n        id,\n        replaceId,\n        idPrefix,\n        action,\n        propPath,\n        actionOptions,\n        propPaths,\n        debug\n      } = syncOptions;\n      // @deprecate propPath, should us propPaths instead\n      const adapters = syncOptions.adapters;\n      this.set('isSyncing', true);\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      if (replaceId) {\n        const replaceCacheId = this._generateCacheId(replaceId, idPrefix);\n        // const oldCacheId = this._generateCacheId(id, idPrefix)\n        // if (!R.is(Array, adapters)) {\n        //   adapters = [adapters]\n        // }\n\n        // adapters.forEach(adapterData => this._syncUpdate({ model, cacheId: replaceCacheId, adapterData, action, propPath }))\n        this._syncUpdate({\n          model,\n          cacheId: replaceCacheId,\n          idPrefix,\n          action,\n          propPath,\n          actionOptions,\n          propPaths,\n          debug\n        });\n        // this._moveCached(replaceId, oldCacheId)\n      } else if (R.is(Array, adapters) && !R.isEmpty(adapters)) {\n        adapters.forEach(adapterData => this._syncUpdate({\n          model,\n          id,\n          idPrefix,\n          adapterData,\n          action,\n          actionOptions,\n          propPath,\n          propPaths,\n          debug\n        }));\n      } else {\n        this._syncUpdate({\n          model,\n          id,\n          idPrefix,\n          action,\n          actionOptions,\n          propPath,\n          propPaths,\n          debug\n        });\n      }\n      this.set('isSyncing', false);\n    },\n    _syncUpdate({\n      model,\n      id,\n      idPrefix,\n      cacheId,\n      adapterData = {},\n      action,\n      actionOptions,\n      propPath,\n      propPaths,\n      debug = false\n    }) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      const {\n        adapterName,\n        appendPath\n      } = adapterData;\n      if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n        console.log('---sync update---'); //eslint-disable-line\n        console.log(model); //eslint-disable-line\n        console.log('adapterNames:'); //eslint-disable-line\n        console.log(adapterName); //eslint-disable-line\n        console.log(`appendPath: ${appendPath}`); //eslint-disable-line\n        console.log(`id: ${id}`); //eslint-disable-line\n        console.log(`idPrefix: ${idPrefix}`); //eslint-disable-line\n        console.log(`cacheId: ${cacheId}`); //eslint-disable-line\n      }\n      if (adapterName) {\n        if (R.is(Array, model)) {\n          model = model || [];\n          return this._syncUpdateList({\n            adapterName,\n            appendPath,\n            list: model,\n            action\n          });\n        }\n      }\n      if (!cacheId && adapterName) {\n        cacheId = this._getCacheId(adapterName, model);\n      }\n      if (!cacheId && id) {\n        cacheId = this._generateCacheId(id, idPrefix);\n      }\n      if (!Ember.isNone(cacheId)) {\n        this.setEditingToOutOfDate(cacheId, model);\n\n        // update all model instances of id with new model\n        const cachedModel = this.getFromCache(cacheId);\n        if (cachedModel) {\n          if (action === 'updateProps' && propPaths) {\n            if (!R.is(Array(propPaths))) {\n              propPaths = [propPaths];\n            }\n            const partialData = R.reduce((acc, propData) => {\n              acc[propData.path] = propData.value;\n              return acc;\n            }, {})(propPaths);\n            cachedModel.populatePartial(partialData);\n          } else if (action === 'updatePartial') {\n            cachedModel.populatePartial(model);\n          } else {\n            // refresh model with sync model\n            this._refreshModel({\n              record: cachedModel,\n              data: model,\n              actionOptions,\n              action,\n              propPath\n            });\n          }\n          const synced = Math.random();\n          cachedModel.set('synced', synced);\n        }\n      }\n    },\n    // syncUpdateProperty (data, id, idPrefix) {\n    //   // console.log('----sync update property--');\n\n    //   if (!isNone(id)) {\n    //     // update the model instance in the store with new data\n\n    //     // @NOTE: syncUpdateProperty can only be used if it does not change model _rev\n    //     // as it will not make model outdated\n    //     //\n    //     // @NOTE: if wanting to sync model data property need to use _data.property name\n\n    //     const cacheId = this._generateCacheId(id, idPrefix)\n    //     const model = this.getFromCache(cacheId)\n\n    //     if (model) {\n    //       // refresh model with sync data\n    //       const keys = Object.keys(data)\n    //       keys.forEach(function (key) {\n    //         const value = data[key]\n    //         model.set(key, value)\n    //       })\n    //     }\n    //   }\n    // },\n\n    syncRemove({\n      model,\n      id,\n      idPrefix,\n      adapters,\n      debug\n    }) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      this.set('isSyncing', true);\n      // @TODO: should include who deleted model and when\n      if (R.is(Array, adapters) && !R.isEmpty(adapters)) {\n        adapters.forEach(adapterData => this._syncRemove({\n          model,\n          adapterData\n        }));\n      } else {\n        this._syncRemove({\n          model,\n          id,\n          idPrefix\n        });\n      }\n      this.set('isSyncing', false);\n    },\n    _syncRemove({\n      model,\n      id,\n      idPrefix,\n      adapterData\n    }) {\n      // const { adapterName } = adapterData\n      const {\n        adapterName,\n        appendPath\n      } = adapterData;\n      if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n        console.log('---sync remove---'); //eslint-disable-line\n        console.log(model); //eslint-disable-line\n        console.log('adapterNames:'); //eslint-disable-line\n        console.log(adapterName); //eslint-disable-line\n        console.log(`appendPath: ${appendPath}`); //eslint-disable-line\n      }\n      let cacheId;\n      if (!cacheId && id) {\n        // @TODO remove\n        cacheId = this._generateCacheId(id, idPrefix);\n      }\n      if (!cacheId && adapterName) {\n        cacheId = this._getCacheId(adapterName, model);\n      }\n\n      // update all model instances of id with new data, set all isEditing to out of date\n      if (!Ember.isNone(cacheId)) {\n        this.setEditingToIsDeleted(cacheId);\n        const cachedModel = this.getFromCache(cacheId);\n        if (cachedModel) {\n          this._removeModel(cachedModel);\n          const synced = Math.random();\n          cachedModel.set('synced', synced);\n        }\n      }\n    },\n    /**\n     * SYNC\n     * checks which instances for a specific model\n     * are being edited and sets them to out of date.\n     * @param  {string} id\n     */\n    setEditingToOutOfDate(cacheId, newData = {}) {\n      const editingRegistry = this.editingRegistry;\n      const editingInstances = editingRegistry[cacheId];\n      if (editingInstances) {\n        // set all editing instances as out of date\n        editingInstances.forEach(dirty => {\n          let setIsOutOfDate = false;\n          let rev;\n          if (dirty._data) {\n            rev = dirty.getData('_rev');\n          } else {\n            rev = dirty._rev;\n          }\n          if (rev !== newData._rev) {\n            setIsOutOfDate = true;\n          }\n          if (newData._data) {\n            if (rev !== newData._data._rev) {\n              setIsOutOfDate = true;\n            }\n          }\n          if (!newData) {\n            setIsOutOfDate = true;\n          }\n          if (setIsOutOfDate) {\n            dirty.setOutOfDate(newData);\n          }\n        });\n      }\n    },\n    setEditingToIsDeleted(cacheId) {\n      const editingRegistry = this.editingRegistry;\n      if (editingRegistry[cacheId]) {\n        // model is currently being edited\n        const instances = editingRegistry[cacheId];\n\n        // set all instances to deleted\n        instances.forEach(function (dirty) {\n          dirty.setIsDeleted();\n        });\n      }\n    },\n    /**\n     * Fetches a list of items from the server or cache.\n     *\n     * @param {string} adapterName - The name of the adapter to use.\n     * @param {string} appendPath - The path to append to the adapterName.\n     * @param {Object} options - Additional options for fetching the list.\n     * @param {IServerType} [serverType=''] - The server type to use.\n     *\n     * @return {Promise} A promise that resolves with the fetched list.\n     */\n    fetchList({\n      adapterName,\n      appendPath,\n      options = {},\n      serverType\n    }) {\n      let listId = adapterName;\n      if (appendPath) {\n        listId = listId + '--' + appendPath.replace(/\\//g, '-');\n      }\n      const adapter = this.getAdapter(adapterName);\n      const cacheList = adapter.cacheList;\n      const cached = this.getFromCache(listId);\n      if (cached && cacheList !== false) {\n        const excludeDeleted = R.reject(R.pathEq(['_data', 'isDeleted'], true))(cached);\n        return Ember.RSVP.resolve(excludeDeleted);\n      }\n      options.cache = true;\n      options.excludeDeleted = true;\n      return this.findAll({\n        adapterName,\n        appendPath,\n        options,\n        serverType\n      }).then(results => {\n        return this._storeToCache(results, listId);\n      });\n    },\n    getRecordInList({\n      adapterName,\n      list = [],\n      record\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      const idParam = adapter?.idParam;\n      if (idParam) {\n        const recordId = record.getData(idParam);\n        const found = R.find(listRecord => {\n          return listRecord.getData(idParam) === recordId;\n        })(list);\n        return found;\n      }\n      if (list.indexOf(record) > -1) {\n        return record;\n      }\n      return false;\n    },\n    _syncUpdateList({\n      adapterName,\n      appendPath,\n      list,\n      action\n    }) {\n      let listId = adapterName;\n      if (appendPath) {\n        listId = listId + '--' + appendPath.replace(/\\//g, '-');\n      }\n\n      // const cachedList = this.getFromCache(listId) || []\n      const crudListId = R.replace(/\\//g, '-')(listId);\n      const crudList = this.crud.lists[crudListId] || [];\n      if (crudList !== null) {\n        list.forEach(data => {\n          const record = this.setAsRecord({\n            adapterName,\n            data\n          });\n          const recordInList = this.getRecordInList({\n            adapterName,\n            list: crudList,\n            record\n          });\n          if (action) {\n            if (action === 'arrayPop') {\n              if (RA.isNotNilOrEmpty(recordInList)) {\n                // cachedList.unshiftObject(record)\n                crudList.removeObject(record);\n              }\n            } else if (action === 'arrayPush') {\n              if (RA.isNilOrEmpty(recordInList)) {\n                // cachedList.pushObject(record)\n                crudList.pushObject(record);\n              }\n            } else if (action === 'arrayUnshift') {\n              if (RA.isNilOrEmpty(recordInList)) {\n                // cachedList.pushObject(record)\n                crudList.unshiftObject(record);\n              }\n            } else if (action === 'arrayReplace') {\n              if (RA.isNotNilOrEmpty(recordInList)) {\n                crudList.removeObject(recordInList);\n                crudList.pushObject(record);\n              }\n            }\n          } else {\n            if (!recordInList) {\n              // cachedList.pushObject(record)\n              crudList.pushObject(record);\n            }\n          }\n          if (record?.updateSynced) {\n            record.updateSynced();\n          }\n        });\n      }\n      /* Refresh list from crud */\n      // this.crud.lists = this.crud.lists\n\n      this._storeToCache(crudList, listId);\n    },\n    copyRecord(adapterName, record, attrs = {}) {\n      const adapter = this.getAdapter(adapterName);\n      if (Ember.isNone(adapter)) {\n        return _nventor.default.throw('Cannot copy, incorrect adapterName given: `' + adapterName + '`');\n      }\n      const data = adapter.serialize(record);\n      const orginalAttrs = R.propOr([], '_attrs')(record);\n      let attrsObj = R.reduce((acc, key) => {\n        acc[key] = record.get(key);\n        return acc;\n      }, {})(orginalAttrs);\n      try {\n        attrsObj = R.mergeRight(attrsObj, attrs);\n      } catch (e) {\n        _nventor.default.throw('cannot merge original model attrs with passed in attrs', {\n          attrs,\n          attrsObj\n        });\n      }\n      return this.newRecord({\n        adapterName,\n        data,\n        attrs: attrsObj\n      });\n    },\n    /**\n     * Imports a batch of data using the specified adapter.\n     *\n     * @param {Object} options - The options for importing the batch.\n     * @param {string} options.adapterName - The name of the adapter to use.\n     * @param {string} [options.appendPath='batch'] - The optional append path for the batch.\n     * @param {Object} options.batchData - The data to import.\n     * @param {IServerType} [options.serverType=''] - The server type to use.\n     *\n     * @return {Promise} A promise that resolves to the response of the batch import.\n     *\n     * @throws {Error} If the adapter name is incorrect.\n     */\n    batchImport({\n      adapterName,\n      appendPath = 'batch',\n      batchData,\n      serverType\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      if (Ember.isNone(adapter)) {\n        return _nventor.default.throw('Incorrect adapterName given: `' + adapterName + '`');\n      }\n      const data = {\n        batch: batchData\n      };\n      return adapter.saveBatch({\n        data,\n        appendPath,\n        serverType\n      }).then(response => {\n        return response;\n      }).catch(err => {\n        // pass error down the promise chain\n        throw err;\n      });\n    },\n    /**\n     * Updates a batch of data using the specified adapter.\n     *\n     * @param {Object} options - The options\n     * @param {string} options.adapterName - The name of the adapter to use for updating the batch.\n     * @param {string} [options.appendPath='batch'] - The optional append path to use for the update.\n     * @param {Array} options.dirtyBatch - The array of dirty data to update.\n     * @param {IServerType} [options.serverType=''] - The server type to use.\n     *\n     * @returns {Promise} - A Promise that resolves with the response from updating the batch.\n     *\n     * @throws {Error} - Throws an error if an incorrect adapterName is given.\n     */\n    updateBatch({\n      adapterName,\n      appendPath = 'batch',\n      dirtyBatch,\n      serverType\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      if (Ember.isNone(adapter)) {\n        return _nventor.default.throw('Incorrect adapterName given: `' + adapterName + '`');\n      }\n      const batch = R.map(dirty => {\n        return adapter.serialize(dirty);\n      })(dirtyBatch);\n      const data = {\n        batch\n      };\n      return adapter.updateBatch({\n        data,\n        appendPath,\n        serverType\n      }).then(response => {\n        return response;\n      }).catch(err => {\n        // pass error down the promise chain\n        throw err;\n      });\n    },\n    /**\n     * Removes a batch of data using the specified adapter.\n     *\n     * @param {Object} options - The options\n     * @param {string} options.adapterName - The name of the adapter to use.\n     * @param {string} [options.appendPath='batch'] - The path to append to the adapter URL.\n     * @param {Array} options.dirtyBatch - The dirty batch of data to remove.\n     * @param {IServerType} [options.serverType=''] - The server type to use.\n     *\n     * @returns {Promise} A promise that resolves to the response from removing the batch of data.\n     *\n     * @throws {Error} If the specified adapterName is incorrect.\n     */\n    removeBatch({\n      adapterName,\n      appendPath = 'batch',\n      dirtyBatch,\n      serverType\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      if (Ember.isNone(adapter)) {\n        return _nventor.default.throw('Incorrect adapterName given: `' + adapterName + '`');\n      }\n      const batch = R.map(dirty => {\n        return adapter.serialize(dirty);\n      })(dirtyBatch);\n      const data = {\n        batch\n      };\n      return adapter.removeBatch({\n        data,\n        appendPath,\n        serverType\n      }).then(response => {\n        return response;\n      }).catch(err => {\n        // pass error down the promise chain\n        throw err;\n      });\n    },\n    /**\n     * Creates a batch of items using the specified adapter.\n     * @param {Object} options - The options object.\n     * @param {string} options.adapterName - The name of the adapter to use.\n     * @param {string} [options.appendPath='batch'] - The append path for saving the batch.\n     * @param {Array} options.batch - The array of items to be batched.\n     * @param {IServerType} [options.serverType=''] - The server type to use.\n     *\n     * @return {Promise<any>} - A promise that resolves when the batch is successfully saved.\n     */\n    async createBatch({\n      adapterName,\n      appendPath = 'batch',\n      batch,\n      serverType\n    }) {\n      const adapter = this.getAdapter(adapterName);\n      if (Ember.isNone(adapter)) {\n        return _nventor.default.throw('Incorrect adapterName given: `' + adapterName + '`');\n      }\n      const batchSerialize = R.map(dirty => {\n        return adapter.serialize(dirty);\n      })(batch);\n      const data = {\n        batch: batchSerialize\n      };\n      return adapter.saveBatch({\n        data,\n        appendPath,\n        serverType\n      });\n    }\n  });\n});","define(\"client/pods/data-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'text',\n        label: 'dataType_text'\n      }, {\n        value: 'number',\n        label: 'dataType_number'\n      }, {\n        value: 'email',\n        label: 'dataType_email'\n      }, {\n        value: 'mobile',\n        label: 'dataType_mobile'\n      }, {\n        value: 'telephone',\n        label: 'dataType_telephone'\n      }, {\n        value: 'date',\n        label: 'dataType_date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/date/lists/durations/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/base/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class OpenHours extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: OpenHours,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'none',\n        label: '',\n        translate: true\n      }, {\n        value: 0.25,\n        label: '15 minutes'\n      }, {\n        value: 0.5,\n        label: '30 minutes'\n      }, {\n        value: 1,\n        label: '1 hour'\n      }, {\n        value: 2,\n        label: '2 hours'\n      }, {\n        value: 3,\n        label: '3 hours'\n      }, {\n        value: 4,\n        label: '4 hours'\n      }, {\n        value: 5,\n        label: '5 hours'\n      }, {\n        value: 6,\n        label: '6 hours'\n      }, {\n        value: 24,\n        label: '1 day'\n      }, {\n        value: 48,\n        label: '2 days'\n      }, {\n        value: 72,\n        label: '3 days'\n      }, {\n        value: 96,\n        label: '4 days'\n      }, {\n        value: 168,\n        label: '1 week'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/date/lists/hours/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/base/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class OpenHours extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: OpenHours,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'none',\n        label: 'none',\n        translate: true\n      }, {\n        value: '00:00',\n        label: '00:00'\n      }, {\n        value: '00:15',\n        label: '00:15'\n      }, {\n        value: '00:30',\n        label: '00:30'\n      }, {\n        value: '00:45',\n        label: '00:45'\n      }, {\n        value: '01:00',\n        label: '01:00'\n      }, {\n        value: '01:15',\n        label: '01:15'\n      }, {\n        value: '01:30',\n        label: '01:30'\n      }, {\n        value: '01:45',\n        label: '01:45'\n      }, {\n        value: '02:00',\n        label: '02:00'\n      }, {\n        value: '02:15',\n        label: '02:15'\n      }, {\n        value: '02:30',\n        label: '02:30'\n      }, {\n        value: '02:45',\n        label: '02:45'\n      }, {\n        value: '03:00',\n        label: '03:00'\n      }, {\n        value: '03:15',\n        label: '03:15'\n      }, {\n        value: '03:30',\n        label: '03:30'\n      }, {\n        value: '03:45',\n        label: '03:45'\n      }, {\n        value: '04:00',\n        label: '04:00'\n      }, {\n        value: '04:15',\n        label: '04:15'\n      }, {\n        value: '04:30',\n        label: '04:30'\n      }, {\n        value: '04:45',\n        label: '04:45'\n      }, {\n        value: '05:00',\n        label: '05:00'\n      }, {\n        value: '05:15',\n        label: '05:15'\n      }, {\n        value: '05:30',\n        label: '05:30'\n      }, {\n        value: '05:45',\n        label: '05:45'\n      }, {\n        value: '06:00',\n        label: '06:00'\n      }, {\n        value: '06:15',\n        label: '06:15'\n      }, {\n        value: '06:30',\n        label: '06:30'\n      }, {\n        value: '06:45',\n        label: '06:45'\n      }, {\n        value: '07:00',\n        label: '07:00'\n      }, {\n        value: '07:15',\n        label: '07:15'\n      }, {\n        value: '07:30',\n        label: '07:30'\n      }, {\n        value: '07:45',\n        label: '07:45'\n      }, {\n        value: '08:00',\n        label: '08:00'\n      }, {\n        value: '08:15',\n        label: '08:15'\n      }, {\n        value: '08:30',\n        label: '08:30'\n      }, {\n        value: '08:45',\n        label: '08:45'\n      }, {\n        value: '09:00',\n        label: '09:00'\n      }, {\n        value: '09:15',\n        label: '09:15'\n      }, {\n        value: '09:30',\n        label: '09:30'\n      }, {\n        value: '09:45',\n        label: '09:45'\n      }, {\n        value: '10:00',\n        label: '10:00'\n      }, {\n        value: '10:15',\n        label: '10:15'\n      }, {\n        value: '10:30',\n        label: '10:30'\n      }, {\n        value: '10:45',\n        label: '10:45'\n      }, {\n        value: '11:00',\n        label: '11:00'\n      }, {\n        value: '11:15',\n        label: '11:15'\n      }, {\n        value: '11:30',\n        label: '11:30'\n      }, {\n        value: '11:45',\n        label: '11:45'\n      }, {\n        value: '12:00',\n        label: '12:00'\n      }, {\n        value: '12:15',\n        label: '12:15'\n      }, {\n        value: '12:30',\n        label: '12:30'\n      }, {\n        value: '12:45',\n        label: '12:45'\n      }, {\n        value: '13:00',\n        label: '13:00'\n      }, {\n        value: '13:15',\n        label: '13:15'\n      }, {\n        value: '13:30',\n        label: '13:30'\n      }, {\n        value: '13:45',\n        label: '13:45'\n      }, {\n        value: '14:00',\n        label: '14:00'\n      }, {\n        value: '14:15',\n        label: '14:15'\n      }, {\n        value: '14:30',\n        label: '14:30'\n      }, {\n        value: '14:45',\n        label: '14:45'\n      }, {\n        value: '15:00',\n        label: '15:00'\n      }, {\n        value: '15:15',\n        label: '15:15'\n      }, {\n        value: '15:30',\n        label: '15:30'\n      }, {\n        value: '15:45',\n        label: '15:45'\n      }, {\n        value: '16:00',\n        label: '16:00'\n      }, {\n        value: '16:15',\n        label: '16:15'\n      }, {\n        value: '16:30',\n        label: '16:30'\n      }, {\n        value: '16:45',\n        label: '16:45'\n      }, {\n        value: '17:00',\n        label: '17:00'\n      }, {\n        value: '17:15',\n        label: '17:15'\n      }, {\n        value: '17:30',\n        label: '17:30'\n      }, {\n        value: '17:45',\n        label: '17:45'\n      }, {\n        value: '18:00',\n        label: '18:00'\n      }, {\n        value: '18:15',\n        label: '18:15'\n      }, {\n        value: '18:30',\n        label: '18:30'\n      }, {\n        value: '18:45',\n        label: '18:45'\n      }, {\n        value: '19:00',\n        label: '19:00'\n      }, {\n        value: '19:15',\n        label: '19:15'\n      }, {\n        value: '19:30',\n        label: '19:30'\n      }, {\n        value: '19:45',\n        label: '19:45'\n      }, {\n        value: '20:00',\n        label: '20:00'\n      }, {\n        value: '20:15',\n        label: '20:15'\n      }, {\n        value: '20:30',\n        label: '20:30'\n      }, {\n        value: '20:45',\n        label: '20:45'\n      }, {\n        value: '21:00',\n        label: '21:00'\n      }, {\n        value: '21:15',\n        label: '21:15'\n      }, {\n        value: '21:30',\n        label: '21:30'\n      }, {\n        value: '21:45',\n        label: '21:45'\n      }, {\n        value: '22:00',\n        label: '22:00'\n      }, {\n        value: '22:15',\n        label: '22:15'\n      }, {\n        value: '22:30',\n        label: '22:30'\n      }, {\n        value: '22:45',\n        label: '22:45'\n      }, {\n        value: '23:00',\n        label: '23:00'\n      }, {\n        value: '23:15',\n        label: '23:15'\n      }, {\n        value: '23:30',\n        label: '23:30'\n      }, {\n        value: '23:45',\n        label: '23:45'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/date/lists/unit-of-time/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/base/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class OpenHours extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: OpenHours,\n    idParam: false,\n    findAll() {\n      const data = [{\n        //   value: 'milliseconds',\n        //   label: 'milliseconds'\n        // }, {\n        //   value: 'seconds',\n        //   label: 'seconds'\n        // }, {\n        value: 'minutes',\n        label: 'minutes'\n      }, {\n        value: 'hours',\n        label: 'hours'\n      }, {\n        value: 'days',\n        label: 'days'\n      }, {\n        value: 'weeks',\n        label: 'weeks'\n      }, {\n        value: 'months',\n        label: 'months'\n      }, {\n        //   value: 'quarters',\n        //   label: 'quarters'\n        // }, {\n        value: 'years',\n        label: 'years'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/date/service\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"moment-timezone\"], function (_exports, R, RA, _momentTimezone) {\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  const APP_TIMEZONE = 'Asia/Taipei';\n  _momentTimezone.default.tz.setDefault(APP_TIMEZONE);\n  class DateService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"defaultDateFormat\", 'YYYY-MM-DD');\n      _defineProperty(this, \"nonWorkDays\", [6, 7]);\n      _defineProperty(this, \"getDateDiff\", (startDate, endDate, periods = 'days') => {\n        startDate = (0, _momentTimezone.default)(startDate);\n        endDate = (0, _momentTimezone.default)(endDate);\n        return endDate.diff(startDate, periods);\n      });\n    }\n    // isoWeekdays (1=mon, 7=sun). default non-working days are sat/sun\n\n    // @NOTE: mm is never JS mm. its js mm + 1\n    // eg. js for feb = 1. but here mm would be 2\n\n    /**\n     * Get weekdays (default to start from Monday)\n     * @param {String} startingFrom the beginning of the week ()\n     * @returns {Array<String>} weekdays in order\n     */\n    getWeekdays(startingFrom) {\n      if (startingFrom === 'sunday') {\n        return ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'];\n      }\n      return ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'];\n    }\n\n    // utcOffset: 8,\n\n    /**\n     * Get moment, will return moment js\n     * moment will check if string is an ISO8601 Date\n     * dont give format a default value, because if you pass ISO time,\n     * it will formatted using new format and the date become different\n     * ex: string = 2022-11-09T16:00:00.000Z, format = 'YYYY-MM-DD' -> moment(string, format).toISOString()\n     * -> 2022-11-08T16:00:00.000Z (minus 1 days from original)\n     * @param {String} string date string\n     * @param {String|undefined} format (eg. 'yyyy-mm-dd')\n     * @returns {String} date format (need to check if moment() is also a string)\n     */\n    getMoment(string, format) {\n      // TODO: allow setting of utcOffset?\n      // client will use devices time settings to generate date.\n      // the problem is that if an offset is set, pikaday (datepicker) does not use the same offset\n      // pikaday uses moment but always uses devices time settings\n\n      // return moment(string, format).utcOffset(this.get('utcOffset'));\n      if (string) {\n        return (0, _momentTimezone.default)(string, format);\n      }\n      return (0, _momentTimezone.default)();\n    }\n    getLocaleData() {\n      return _momentTimezone.default.localeData();\n    }\n\n    /**\n     * Get local time of certain dateString\n     * @param {String} dateString\n     * @param {String} format (optional) (eg. 'yyyy-mm-dd')\n     * @returns {String}\n     */\n    toLocalTime(dateString, format) {\n      return this.getMoment(dateString, format).local();\n    }\n\n    /**\n     * Get nowZ\n     * @returns {String} Zulu Time in ISO 8601 format\n     */\n    getNowZ() {\n      return this.getMoment().toISOString();\n    }\n    getToday() {\n      return this.getMoment().startOf('day');\n    }\n    getEndOfDay() {\n      return this.getMoment().endOf('day');\n    }\n    isBeforeToday(dateZ, format) {\n      return this.getMoment(dateZ, format).isBefore(this.getToday());\n    }\n    isBeforeNumberOfDays(days, dateZ, format) {\n      const numberOfDays = this.getToday().subtract(days, 'days');\n      return this.getMoment(dateZ, format).isBefore(numberOfDays);\n    }\n    isSameOrBefore(dateZ, format) {\n      return this.getMoment(dateZ, format).isSameOrBefore(this.getToday());\n    }\n\n    /**\n     * return the start of day at local time\n     * (converted to Zulu Time)\n     * @param {string} dateString (optional)\n     * @param {string} format (optional) (eg. 'yyyy-mm-dd')\n     * @return {string} Zulu Time in ISO 8601 format\n     */\n    getStartOfDayZ(dateString, format) {\n      return this.getMoment(dateString, format).startOf('day').toISOString();\n    }\n\n    /**\n     * return the end of day at local time\n     * (converted to Zulu Time)\n     * @param {String} dateString (optional)\n     * @param {String} format (optional) (eg. 'yyyy-mm-dd')\n     * @returns {String} Zulu Time in ISO 8601 format\n     */\n    getEndOfDayZ(dateString, format) {\n      return this.getMoment(dateString, format).endOf('day').toISOString();\n    }\n\n    /**\n     * get working next available working date\n     * @param {moment|dateZ} - can be moment, dateZ or date string (will require format)\n     * @param {integer} nonWorkDays - (optional) isoWeekday 1=monday, 7=sunday\n     * @param {string} format - (optional) only required for date=string\n     * @return {class} moment instance\n     */\n    getNextWorkDate(today, nonWorkDays, format) {\n      const self = this;\n      if (!today) {\n        today = self.getMoment(today, format);\n      }\n      if (typeof nonWorkDays === 'string') {\n        format = nonWorkDays;\n      }\n\n      // determines what are non working days\n      nonWorkDays = nonWorkDays || self.get('nonWorkDays');\n\n      // if today is not a moment instance\n      if (typeof today === 'string') {\n        today = self.getMoment(today, format);\n      }\n      let tomorrow = today.add(1, 'days');\n      let count = 1;\n      while (count <= 7) {\n        const isNonWorkDay = self._isNonWorkDay(tomorrow.isoWeekday(), nonWorkDays);\n        if (isNonWorkDay) {\n          tomorrow = tomorrow.add(1, 'days');\n          count++;\n        } else {\n          count = 8;\n        }\n      }\n      return tomorrow;\n    }\n    getYesterday(today, format) {\n      const self = this;\n      if (!today) {\n        today = self.getMoment(today, format);\n      }\n      if (typeof today === 'string') {\n        today = self.getMoment(today, format);\n      }\n      return today.subtract(1, 'days');\n    }\n    getYesterdayZ(today, format) {\n      const yesterday = this.getYesterday(today, format);\n      return yesterday.toISOString();\n    }\n    getTomorrow(today, format) {\n      const self = this;\n      if (!today) {\n        today = self.getMoment(today, format);\n      }\n      if (typeof today === 'string') {\n        today = self.getMoment(today, format);\n      }\n      return today.add(1, 'days');\n    }\n    getTomorrowZ(today, format) {\n      const tomorrow = this.getTomorrow(today, format);\n      return tomorrow.toISOString();\n    }\n    getMM(mm) {\n      if (parseInt(mm) < 10) {\n        return `0${mm}`;\n      }\n      return mm;\n    }\n\n    /**\n     * get working next available working date\n     * @param {moment|dateZ} - can be moment, dateZ or date string (will require format)\n     * @param {integer} nonWorkDays - (optional) isoWeekday 1=monday, 7=sunday\n     * @param {string} format - (optional) only required for date=string\n     * @return {string} Zulu Time in ISO 8601 format\n     */\n    getNextWorkDateZ(today, nonWorkDays, format) {\n      return this.getNextWorkDate(today, nonWorkDays, format).toISOString();\n    }\n\n    /**\n     * check if day is a nonWorkingDay\n     * @param  {integer}  day         isoWeekday (1=mon, 7=sun)\n     * @param  {array}  nonWorkDays   array of nonWorkDays\n     * @return {Boolean}\n     */\n    _isNonWorkDay(day, nonWorkDays) {\n      nonWorkDays = nonWorkDays || this.nonWorkDays;\n      if (nonWorkDays.indexOf(day) > -1) {\n        // day is a nonWorkingDay\n        return true;\n      }\n      return false;\n    }\n    isEqualWeekday(date, day) {\n      if (typeof date === 'string') {\n        date = this.getMoment(date);\n      }\n      if (date.isoWeekday() === day) {\n        return true;\n      }\n      return false;\n    }\n    getMonthEnd(yyyy, mm) {\n      // @NOTE: this mm is not js mm. its js mm + 1\n      // eg. js for feb = 1. but here mm would be 2\n      let current;\n      if (yyyy && mm) {\n        current = this.getMoment(`${yyyy}-${mm}-01`, this.defaultDateFormat);\n      } else if (yyyy) {\n        current = this.getMoment(yyyy, this.defaultDateFormat);\n      } else {\n        current = this.getToday();\n      }\n      return current.endOf('month');\n    }\n    getMonthStart(yyyy, mm) {\n      let current;\n      if (yyyy && mm) {\n        current = this.getMoment(`${yyyy}-${mm}-01`, this.defaultDateFormat);\n      } else if (yyyy) {\n        current = this.getMoment(yyyy, this.defaultDateFormat);\n      } else {\n        current = this.getToday();\n      }\n      return current.startOf('month');\n    }\n    getYearEnd(yyyy, mm) {\n      let current;\n      if (yyyy && mm) {\n        current = this.getMoment(`${yyyy}-${mm}-01`, this.defaultDateFormat);\n      } else if (yyyy) {\n        current = this.getMoment(yyyy, this.defaultDateFormat);\n      } else {\n        current = this.getToday();\n      }\n      return current.endOf('year');\n    }\n    getYearStart(yyyy, mm) {\n      let current;\n      if (yyyy && mm) {\n        current = this.getMoment(`${yyyy}-${mm}-01`, this.defaultDateFormat);\n      } else if (yyyy) {\n        current = this.getMoment(yyyy, this.defaultDateFormat);\n      } else {\n        current = this.getToday();\n      }\n      return current.startOf('year');\n    }\n    getLocale() {\n      return this.intl.get('locale')[0];\n    }\n\n    /**\n     * get correct date format based on locale\n     * @param  {string|date object} date - if string is passed, will convert to date object\n     * @return {string} formatted date string\n     */\n    formatDate(date, format = this.defaultDateFormat) {\n      // uses moment to parse date into date object,\n      // then use moment to show date using dateFormat\n\n      if (!date) {\n        return '';\n      }\n      if (typeof date === 'string') {\n        date = this.getMoment(date);\n      }\n\n      // display date using format\n      // WHY NOT using ember-intl:\n      //  ember intl will display date for current locale\n      //  BUT we cannot know which format it used.\n      //  ie. if locale is en-us it will display date using 'mm/dd/yyyy',\n      //  but we cannot get this locale date string in the code to parse dates.\n      //  intl only allows u to specify how year, date and month\n      //  is to be displayed but not the order in which they appear which is useless\n      //  when you need to parse the date.\n      // Reason for needing to parse date: when the user manually types in a date string\n      //  in the input (instead of picking from calendar) it needs to be parsed\n      //  then converted to dateZ.\n\n      return date.format(format);\n      // return this.get('intl').formatDate(date, {\n      //   year: 'numeric',\n      //   month: '2-digit',\n      //   day: '2-digit'\n      // });\n    }\n\n    /**\n     * Get format date for url\n     * @param {String|Object} date\n     * @returns {String} date in format YYYY-MM-DD\n     */\n    formatDateForUrl(date) {\n      if (RA.isNilOrEmpty(date)) {\n        return '';\n      }\n      const isIsoDate = this.isIsoDate(date);\n      if (typeof date === 'string' && isIsoDate) {\n        date = this.getMoment(date);\n      }\n      if (typeof date === 'string' && !isIsoDate) {\n        date = this.getMoment(date, this.defaultDateFormat);\n      }\n      return date.format('YYYY-MM-DD');\n    }\n    getAllDatesForMonth(date) {\n      if (!date) {\n        date = this.getToday();\n      }\n      if (typeof date === 'string') {\n        date = this.getMoment(date);\n      }\n      const mm = date.month() + 1;\n      const yyyy = date.year();\n\n      // get all days for month\n      // const monthEnd = this.getMonthEnd(date)\n      const daysInMonth = date.daysInMonth();\n      return R.times(index => {\n        const day = index + 1;\n        return this.getMoment(`${yyyy}-${mm}-${day}`, 'YYYY-MM-DD');\n      }, daysInMonth);\n    }\n    getDaysOfMonthForCalendar(date) {\n      const dates = this.getAllDatesForMonth(date);\n      const firstDayOfWeek = dates.get('firstObject').day();\n      const lastDayOfWeek = dates.get('lastObject').day();\n      const numberOfDaysInFirstWeek = 7 - firstDayOfWeek;\n      const numberOfPreviousMonthDaysForFirstWeek = 7 - numberOfDaysInFirstWeek;\n      const fillersForFirstWeek = R.times(() => R.clone({}), numberOfPreviousMonthDaysForFirstWeek);\n      const numberOfDaysInLastWeek = lastDayOfWeek + 1;\n      const numberOfPreviousMonthDaysForLastWeek = 7 - numberOfDaysInLastWeek;\n      const fillersForLastWeek = R.times(() => R.clone({}), numberOfPreviousMonthDaysForLastWeek);\n      const firstWeek = R.pipe(R.splitAt(numberOfDaysInFirstWeek), R.head, R.map(date => this.getPeriod(date)), R.prepend(fillersForFirstWeek), R.flatten)(dates);\n      const lastWeek = R.pipe(R.splitAt(dates.length - numberOfDaysInLastWeek), R.last, R.map(date => this.getPeriod(date)), R.append(fillersForLastWeek), R.flatten)(dates);\n      const byWeeks = R.pipe(R.drop(numberOfDaysInFirstWeek), R.dropLast(numberOfDaysInLastWeek), R.map(date => this.getPeriod(date)), R.splitEvery(7), R.prepend(firstWeek), R.append(lastWeek))(dates);\n      return byWeeks;\n    }\n\n    /**\n     * return array of past months\n     * @param  {integer} number defaults to 12\n     * @return {[type]}        [description]\n     */\n    getPastMonths(number, year) {\n      number = number || 12;\n      const today = this.getMoment();\n      year = year || today.year();\n      let month = today.month() + 1; // js month starts with 0 so need to add 1\n      const pastMonths = [];\n      while (number > 0) {\n        if (month === 0) {\n          month = 12;\n          // decrease year\n          year = year - 1;\n        }\n        const mm = month;\n        const period = Ember.Object.create({\n          name: `month${mm}`,\n          // used for translation\n          mm: mm,\n          yyyy: year\n        });\n        pastMonths.push(period);\n        month--;\n        number--;\n      }\n      return pastMonths;\n    }\n\n    /**\n     * return array of past years\n     * @return {[type]}        [description]\n     */\n    getPastYears({\n      number,\n      year,\n      futureYearsNumber = 0\n    }) {\n      const today = this.getMoment();\n      year = year || today.year();\n      number = number || 5;\n      const pastYears = [];\n      let futureYears = year + futureYearsNumber;\n      while (futureYearsNumber > 0) {\n        const period = Ember.Object.create({\n          yyyy: futureYears\n        });\n        pastYears.push(period);\n        futureYears--;\n        futureYearsNumber--;\n      }\n      while (number > 0) {\n        const period = Ember.Object.create({\n          yyyy: year\n        });\n        pastYears.push(period);\n        year--;\n        number--;\n      }\n      return pastYears;\n    }\n\n    /**\n     * return array of past days\n     * @param  {integer} number defaults to 7\n     * @param  {string} from (optional) - from date string (defaults to today)\n     * @return {array} past days from date given\n     */\n    getPastDays(number, from) {\n      const self = this;\n      number = number || 7;\n      from = this.getMoment(from).add(1, 'days');\n\n      // let date = today.date();\n      const pastDays = [];\n      while (number > 0) {\n        const current = from.subtract(1, 'days');\n        const mm = current.month() + 1;\n        const period = Ember.Object.create({\n          weekday: 'weekday' + current.isoWeekday(),\n          dateZ: current.toISOString(),\n          date: current.format(self.defaultDateFormat),\n          day: current.isoWeekday(),\n          dd: current.date(),\n          mm: mm,\n          yyyy: current.year(),\n          q: current.quarter()\n        });\n        pastDays.push(period);\n        number--;\n      }\n      return pastDays;\n    }\n    getPreviousPeriod(dateZ, format) {\n      let current;\n      if (!dateZ) {\n        current = this.getToday();\n      }\n      if (typeof dateZ === 'string') {\n        // if ISO format then no \"format\" is required\n        // if other format then format must be supplied\n\n        current = this.getMoment(dateZ, format);\n      }\n      if (!current) {\n        current = dateZ;\n      }\n      const previous = current.subtract(1, 'months');\n      return this.getPeriod(previous);\n    }\n    getNextPeriod(dateZ, format) {\n      let current;\n      if (!dateZ) {\n        current = this.getToday();\n      }\n      if (typeof dateZ === 'string') {\n        // if ISO format then no \"format\" is required\n        // if other format then format must be supplied\n\n        current = this.getMoment(dateZ, format);\n      }\n      if (!current) {\n        current = dateZ;\n      }\n      const next = current.add(1, 'months');\n      return this.getPeriod(next);\n    }\n    getPeriod(dateZ, format) {\n      let current;\n      if (!dateZ) {\n        current = this.getToday();\n      } else {\n        if (typeof dateZ === 'string') {\n          // if ISO format then no \"format\" is required\n          // if other format then format must be supplied\n\n          current = this.getMoment(dateZ, format);\n        }\n      }\n      if (!current) {\n        current = dateZ;\n      }\n\n      // @NOTE: date is the actual date for the current timezone.\n      // eg. current timezone (UTC +8) may be 16th 0:00 am,\n      // but dateZ will be 15th at 16:00 pm.\n\n      const dd = current.date();\n\n      // @NOTE: js jan starts at 0\n      // should +1 to month\n      const mm = current.month() + 1;\n      const yyyy = current.year();\n      const quarter = current.quarter();\n      return {\n        weekday: 'weekday' + current.isoWeekday(),\n        dateZ: current.toISOString(),\n        date: current.format(this.defaultDateFormat),\n        dd: dd,\n        mm: mm,\n        yyyy: yyyy,\n        q: quarter,\n        monthEnd: this.getMonthEnd(yyyy, mm).format(this.defaultDateFormat),\n        monthEndZ: this.getMonthEnd(yyyy, mm).toISOString(),\n        monthStart: this.getMonthStart(yyyy, mm).format(this.defaultDateFormat),\n        monthStartZ: this.getMonthStart(yyyy, mm).toISOString()\n      };\n    }\n    getEvenInvoiceMonth(mm) {\n      const currentDate = new Date();\n      const currentMonth = mm || currentDate.getMonth() + 1;\n      return RA.isOdd(currentMonth) ? currentMonth + 1 : currentMonth;\n    }\n    displayByMonth(period) {\n      period = period || this.dateService.getPeriod();\n      const dateStart = this.formatDateForUrl(`${period.yyyy}-${period.mm}-01`);\n      const dateEnd = this.formatDateForUrl(this.getMonthEnd(period.yyyy, period.mm));\n      return {\n        dateStart,\n        dateEnd\n      };\n    }\n    /**\n     * return custom period\n     * @param {string} dateEndString\n     * @param {string} dateStartString\n     * @returns {{dateStart: string, dateEnd: string}}\n     */\n    getCustomPeriod(dateEndString, dateStartString) {\n      let dateEnd;\n      let dateStart;\n      if (dateStartString > dateEndString) {\n        dateEnd = this.formatDateForUrl(dateStartString);\n        dateStart = this.formatDateForUrl(dateEndString);\n      } else {\n        dateEnd = this.formatDateForUrl(dateEndString);\n        dateStart = this.formatDateForUrl(dateStartString);\n      }\n      return {\n        dateStart,\n        dateEnd\n      };\n    }\n\n    /**\n     * Get the date after days\n     * @param {String} dateString date string\n     * @param {Number} days default to zero (today)\n     * @param {String} format (optional) (eg. 'yyyy-mm-dd')\n     * @returns {String|Undefined} Zulu Time in ISO 8601 format | undifined if date string is incorrect\n     */\n    getDaysAfter(dateString, days = 0, format) {\n      if (!dateString) {\n        dateString = this.getMoment(dateString, format);\n      }\n      dateString = this.getMoment?.(dateString?.toString?.(), format);\n      return dateString?.add?.(days, 'days');\n    }\n\n    /**\n     * Get dateZ after days\n     * @param {String} dateString date string\n     * @param {Number} days default to zero (today)\n     * @param {String} format (optional) (eg. 'yyyy-mm-dd')\n     * @returns {String} Zulu Time in ISO 8601 format\n     */\n    getDaysAfterZ(dateString, days = 0, format) {\n      const daysAfter = this.getDaysAfter(dateString, days, format);\n      return daysAfter?.toISOString?.();\n    }\n\n    /**\n     * Get the date before days\n     * @param {String} dateString date string\n     * @param {Number} days default to zero\n     * @param {String} format (optional) (eg. 'yyyy-mm-dd')\n     * @returns {String} Zulu Time in ISO 8601 format\n     */\n    getDaysBefore(dateString, days = 0, format) {\n      if (!dateString) {\n        dateString = this.getMoment(dateString, format);\n      }\n      dateString = this.getMoment?.(dateString?.toString?.(), format);\n      return dateString?.subtract?.(days, 'days');\n    }\n\n    /**\n     * Get dateZ before days\n     * @param {String} dateString date string\n     * @param {Number} days default to zero\n     * @param {String} format (optional) (eg. 'yyyy-mm-dd')\n     * @returns {String} Zulu Time in ISO 8601 format\n     */\n    getDaysBeforeZ(dateString, days = 0, format) {\n      const daysBefore = this.getDaysBefore(dateString, days, format);\n      return daysBefore?.toISOString?.();\n    }\n\n    // https://stackoverflow.com/questions/52869695/check-if-a-date-string-is-in-iso-and-utc-format\n    isIsoDate(isoDateSting) {\n      if (/\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/.test(isoDateSting)) {\n        return true;\n      }\n      return false;\n    }\n\n    // https://stackoverflow.com/questions/52428072/how-can-i-use-moment-js-to-add-days-excluding-weekends\n    addBusinessDays({\n      date = '',\n      duration = 0\n    }) {\n      const Sunday = 0;\n      const Saturday = 6;\n      let daysRemaining = duration;\n      const dateMoment = (0, _momentTimezone.default)(date);\n      const newDate = dateMoment.clone();\n      while (daysRemaining > 0) {\n        newDate.add(1, 'days');\n        if (newDate.day() !== Sunday && newDate.day() !== Saturday) {\n          daysRemaining--;\n        }\n      }\n      return newDate;\n    }\n  }\n  _exports.default = DateService;\n});","define(\"client/pods/days-of-week/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 0,\n        label: 'sunday'\n      }, {\n        value: 1,\n        label: 'monday'\n      }, {\n        value: 2,\n        label: 'tuesday'\n      }, {\n        value: 3,\n        label: 'wednesday'\n      }, {\n        value: 4,\n        label: 'thursday'\n      }, {\n        value: 5,\n        label: 'friday'\n      }, {\n        value: 6,\n        label: 'saturday'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/discounts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/discounts',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/discounts/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: 'api/protected/discounts',\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'rate',\n        label: 'discount %',\n        translate: true\n      }, {\n        value: 'amount',\n        label: 'discount amount',\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/dispatch/processes',\n    modelObj: _model.default,\n    idParam: '_id',\n    resultsProperty: 'docs' // findAll returns an object { docs: [results], summaryData } instead of the standard [results] array\n\n    // @NOTE: there is a potential for problems here.\n    // individual document models are created using document/sales/invoices (or others) adapter,\n    // but when viewing dispatch, document models are created using the dispatch adapter.\n    // there are differences. ideally they should use the document model's adapter\n    // but how? since dispatch is a collection of models (eg. invoices/consignments). how to determine the correct model\n  });\n});","define(\"client/pods/dispatch/export/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/dispatch/processes/export',\n    modelObj: _model.default,\n    idParam: false,\n    resultsProperty: 'docs' // findAll returns an object { docs: [results], summaryData } instead of the standard [results] array\n  });\n});","define(\"client/pods/dispatch/export/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/dispatch/export/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/dispatch/export/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        date: '',\n        docNo: '',\n        contact: '',\n        code: '',\n        ref: '',\n        inclTotal: '',\n        transporterLabel: '',\n        onlyEmptyTransporter: false,\n        transporterAccount: '',\n        waybill: '',\n        packages: '',\n        paymentMethods: [],\n        paymentLastFiveDigits: '',\n        sourceKey: '',\n        statuses: [this.get('constants.status.active')],\n        contactTags: [],\n        exportPosType: 'exclude',\n        exportStatusType: 'byDispatchProcesses',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    },\n    productTags: Ember.computed('_data.productTags.[]', function () {\n      return this.getPropLength('_data.productTags');\n    }),\n    contactTags: Ember.computed('_data.contactTags.[]', function () {\n      return this.getPropLength('_data.contactTags');\n    })\n  });\n});","define(\"client/pods/dispatch/export/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/dispatch/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/dispatch/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/dispatch/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        date: '',\n        docNo: '',\n        contact: '',\n        code: '',\n        ref: '',\n        inclTotal: '',\n        transporterLabel: '',\n        onlyEmptyTransporter: false,\n        transporterAccount: '',\n        waybill: '',\n        packages: '',\n        paymentMethods: [],\n        paymentLastFiveDigits: '',\n        sourceKey: '',\n        statuses: [this.get('constants.status.active')],\n        contactTags: [],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    },\n    productTags: Ember.computed('_data.productTags.[]', function () {\n      return this.getPropLength('_data.productTags');\n    }),\n    contactTags: Ember.computed('_data.contactTags.[]', function () {\n      return this.getPropLength('_data.contactTags');\n    })\n  });\n});","define(\"client/pods/dispatch/lists/date-header/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'timestampZ_latest',\n        label: 'updated date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/dispatch-sort-direction/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'ASC',\n        label: 'date_ascending'\n      }, {\n        value: 'DESC',\n        label: 'date_descending'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/dispatch-sort-filters-advanced/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'dispatchProcessUpdatedTimestampZ',\n        label: 'status change date'\n      }, {\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'expectedPrepareDateZ',\n        label: 'expected prepare date'\n      }, {\n        value: 'expectedDispatchDateZ',\n        label: 'expected dispatch date'\n      }, {\n        value: 'transporterArrivalDateZ',\n        label: 'customer expected arrival date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/dispatch-sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'dispatchProcessUpdatedTimestampZ',\n        label: 'status change date'\n      }, {\n        value: 'timestampZ_latest',\n        label: 'updated date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/documents-sort-filters-advanced/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'dispatchProcessUpdatedTimestampZ',\n        label: 'status change date'\n      }, {\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'timestampZ_latest',\n        label: 'updated date'\n      }, {\n        value: 'dispatchDateZ',\n        label: 'dispatch date'\n      }, {\n        value: 'expectedPrepareDateZ',\n        label: 'expected prepare date'\n      }, {\n        value: 'expectedDispatchDateZ',\n        label: 'expected dispatch date'\n      }, {\n        value: 'transporterArrivalDateZ',\n        label: 'customer expected arrival date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/export-by-statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'byDispatchProcesses',\n        label: 'byDispatchProcesses'\n      }, {\n        value: 'byDocumentsStatuses',\n        label: 'byDocumentsStatuses'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/export-file-type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'xlsx',\n        label: 'xlsx'\n      }, {\n        value: 'biff8',\n        label: 'xls'\n      }, {\n        value: 'csv',\n        label: 'csv'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/export-options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'exportAndUpdateStatus',\n        label: 'export data and update status'\n      }, {\n        value: 'exportOnly',\n        label: 'export'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/export-pos/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'include',\n        label: 'include pos'\n      }, {\n        value: 'exclude',\n        label: 'exclude pos'\n      }, {\n        value: 'only',\n        label: 'only pos'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/filters/dispatchstatuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'undispatched',\n        label: 'undispatched'\n      }, {\n        value: 'onHold',\n        label: 'on hold'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'timestampZ',\n        label: 'created date'\n      }, {\n        value: 'updated_timestampZ',\n        label: 'updated date'\n      }, {\n        value: 'docNo',\n        label: 'document number'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'transporter',\n        label: 'transporter'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'inventoryStatus',\n        label: 'inventory status report',\n        component: 'dispatch/panels-summary',\n        className: 'hide-when-overflow'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/print-all-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'pickingList',\n        label: 'picking list',\n        component: 'dispatch/panels-display/display-list',\n        tabType: 'reuseSubTab',\n        icon: 'fas fa-people-carry'\n      }, {\n        value: 'deliveryNotes',\n        label: 'delivery notes',\n        component: 'documents/document-print/print-list',\n        tabType: 'reuseSubTab',\n        icon: 'fas fa-truck'\n      }, {\n        value: 'waybills',\n        label: 'hct waybills',\n        component: 'transporters/hct-waybills-list',\n        tabType: 'reuseSubTab',\n        icon: 'fas fa-sticky-note',\n        transporterExtension: 'hct'\n      }, {\n        value: 'hctSummary',\n        label: 'hct summary',\n        component: 'transporters/hct-summary',\n        tabType: 'reuseSubTab',\n        icon: 'fas fa-sticky-note',\n        transporterExtension: 'hct'\n      }, {\n        value: 't-cat',\n        label: 't-cat waybill',\n        component: 'transporters/t-cat-waybill',\n        tabType: 'reuseSubTab',\n        icon: 'fas fa-cat',\n        transporterExtension: 't-cat'\n      }];\n      if (this.settings.getProp('beta.sevenEleven')) {\n        data.push({\n          value: 'seven-eleven',\n          label: 'seven-eleven waybill',\n          component: 'transporters/seven-eleven-waybill',\n          tabType: 'reuseSubTab',\n          icon: 'fas fa-sticky-note',\n          transporterExtension: 'seven-eleven'\n        });\n      }\n      if (this.settings.getProp('beta.payuniSevenEleven')) {\n        data.push({\n          value: 'payuni-seven-eleven',\n          label: 'payuni-seven-eleven waybill',\n          component: 'transporters/payuni-seven-eleven-waybill',\n          tabType: 'reuseSubTab',\n          icon: 'fas fa-sticky-note',\n          transporterExtension: 'payuni-seven-eleven'\n        });\n      }\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/processes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/dispatch/lists/processes/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/dispatch/steps',\n    modelObj: _model.default,\n    idParam: '_id',\n    dispatch: Ember.inject.service(),\n    // cacheList: false,\n    async findAll() {\n      const results = await this._super(...arguments);\n      const specsCollectionModel = await this.crud.findTask.perform({\n        adapterName: 'specs/collection'\n      });\n      return this.dispatch.getDispatchProcesses({\n        hasDispatched: true,\n        results,\n        defaultExportSheets: specsCollectionModel.defaultSelectedExportSheets,\n        settings: this?.settings?.settingsModel || {}\n      });\n    }\n  });\n});","define(\"client/pods/dispatch/lists/processes/custom-worksheets/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/dispatch/lists/processes/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/dispatch/lists/processes/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/dispatch/steps',\n    modelObj: _model.default,\n    idParam: '_id',\n    dispatch: Ember.inject.service(),\n    // cacheList: false,\n    async findAll() {\n      const results = await this._super(...arguments);\n      const specsCollectionModel = await this.crud.findTask.perform({\n        adapterName: 'specs/collection'\n      });\n      return this.dispatch.getDispatchProcesses({\n        hasDrafts: true,\n        hasAll: true,\n        results,\n        defaultExportSheets: specsCollectionModel.defaultSelectedExportSheets,\n        settings: this?.settings?.settingsModel || {}\n      });\n    }\n  });\n});","define(\"client/pods/dispatch/lists/processes/menu/waybills/seven-eleven/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [\n      // hide undispatched for now\n      // {\n      //   label: 'undispatched',\n      //   statuses: [\n      //     {\n      //       showBtnForStatus: true,\n      //       btnClassNames: 'u-margin-left-10',\n      //       value: 'noWaybills',\n      //       label: 'shippingStatus_noWaybill'\n      //     },\n      //     {\n      //       showBtnForStatus: true,\n      //       btnClassNames: 'u-margin-left-10',\n      //       value: 'awaitingDispatch',\n      //       label: 'shippingStatus_awaitingDispatch'\n      //     }\n      //   ]\n      // },\n      {\n        label: 'dispatched',\n        statuses: [{\n          showBtnForStatus: false,\n          value: 'shipped',\n          label: 'shippingStatus_shipped'\n        }]\n      }, {\n        label: 'returns',\n        statuses: [{\n          showBtnForStatus: false,\n          value: 'returns',\n          label: 'shippingStatus_toReturn'\n        }]\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/processes/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    defaults() {\n      return {\n        name: '',\n        code: '',\n        hideSetParents: false,\n        hideShippingFee: false,\n        isGroupDocs: false,\n        showSetDetails: true,\n        defaultExportCustomSheets: [],\n        showProductSetWithChoices: false,\n        sortBy: 'none',\n        sortByDirection: 'DESC'\n      };\n    },\n    populate(data, attrs) {\n      data.defaultExportCustomSheets = this._transformDefaultExportCustomSheets(data);\n      if (!R.path(['defaultExportSheets'], data)) {\n        data.defaultExportSheets = R.pathOr([], ['defaultExportSheetsKeyList'], data);\n      }\n      this._super(data, attrs);\n    },\n    _transformDefaultExportCustomSheets(data) {\n      return R.pipe(R.propOr([], 'defaultExportCustomSheets'), R.map(defaultExportCustomSheet => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'dispatch/lists/processes/custom-worksheets',\n          data: defaultExportCustomSheet\n        });\n      }))(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/specs',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/dispatch/lists/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'undispatched',\n        label: 'undispatched'\n      }, {\n        value: 'dispatched',\n        label: 'dispatched'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/lists/summary/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'collapse under product name',\n        value: 'collapseUnderProductName'\n      }, {\n        label: 'expand to show other aliases',\n        value: 'expandToShowAliases'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/dispatch/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    populate(data, attrs) {\n      // Override old paymentData with payment record from payment collection\n      this._super(data, attrs);\n    },\n    translateAccountName: Ember.computed('_data.transporterExtension', function () {\n      // @TODO: this is difficult to maintain,\n      // there are multiple versions\n      return R.anyPass([R.pathEq(['model', '_data', 'transporterExtension'], 't-cat'), R.pathEq(['model', '_data', 'transporterExtension'], 'seven-eleven')])(this);\n    }),\n    waybill: Ember.computed('_data.waybill', function () {\n      return R.pipe(R.pathOr([], ['model', '_data', 'waybill']), R.replace(/,/g, '<br>'))(this);\n    })\n  });\n});","define(\"client/pods/dispatch/processes/count/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/dispatch/processes/count',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/dispatch/service\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"@sentry/ember\", \"ember-concurrency\", \"client/mixins/date\", \"client/config/environment\"], function (_exports, R, RA, R_, Sentry, _emberConcurrency, _date, _environment) {\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, _obj;\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  // UI guard only; the API rejects overlapping bulk splits with HTTP 409 per pod.\n  // A queued batch frees the pod when its bulk-split alert arrives\n  // (applyBulkSplitAlert). This window is the fallback for a tab that never\n  // receives the alert, for example one that lost its socket.\n  const BULK_SPLIT_REQUEST_IN_FLIGHT_WINDOW_MS = 30 * 60 * 1000; // 30 minutes\n\n  const HTTP_STATUS_CONFLICT = 409;\n\n  // the server may still be splitting after a 409 (another request holds the\n  // pod), a dropped connection (0) or a gateway timeout, so the pod stays locked\n  const BULK_SPLIT_MAY_STILL_RUN_HTTP_STATUSES = [0, HTTP_STATUS_CONFLICT, 502, 503, 504];\n  const BULK_SPLIT_STILL_PROCESSING_TRANSLATION_KEY = 'bulk split may still be processing do not resubmit refresh dispatch folder';\n  const BULK_SPLIT_ALREADY_RUNNING_TRANSLATION_KEY = 'a bulk split is already running';\n  const BULK_SPLIT_QUEUED_TRANSLATION_KEY = 'bulk split queued';\n  const transporterDashboardKeyFieldSeparator = '\\u0001';\n\n  // Sent when every transporter card is unchecked. Matches no documents, while the bar keeps showing every transporter.\n  const dashboardTransportersNoMatchFieldValue = '\\u0000';\n  const dashboardTransportersMatchNothingPayload = [{\n    onlyEmptyTransporter: false,\n    transporter: dashboardTransportersNoMatchFieldValue,\n    transporterKey: dashboardTransportersNoMatchFieldValue,\n    transporterAccount: dashboardTransportersNoMatchFieldValue,\n    transporterAccountNumber: dashboardTransportersNoMatchFieldValue\n  }];\n  const processEmailPreviewPageSize = 20;\n  const processEmailPreviewFields = ['contact', 'person', 'email', 'docNo', 'docType', 'docName', 'dispatchProcess', 'dispatchProcessLabel', 'dispatchProcessLabelTranslate', 'dispatchDateZ', 'dateZ', 'transporterArrivalDateZ', 'emailsSent'];\n  const documentPrintBatchStrategies = {\n    pickingList: {\n      printComponent: 'dispatch/print-options/picking-list'\n    },\n    deliveryNotes: {\n      printComponent: 'dispatch/print-options/delivery-notes'\n    }\n  };\n  function readDispatchDocumentData(documentRow) {\n    return documentRow?.model?._data ?? documentRow?._data ?? documentRow ?? {};\n  }\n  var _default = _exports.default = Ember.Service.extend(_date.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    processEmailPreviewPageSize,\n    crud: Ember.inject.service(),\n    search: Ember.inject.service(),\n    dataManager: Ember.inject.service(),\n    server: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    tabsManager: Ember.inject.service(),\n    ajax: Ember.inject.service(),\n    ifetch: Ember.inject.service(),\n    tCatExtension: 't-cat',\n    tCatModel: null,\n    openWindow: null,\n    showDocumentDetailsThumbnailImage: false,\n    init() {\n      this._super(...arguments);\n      Ember.set(this, 'bulkSplitRequestLock', null);\n    },\n    bulkSplitRequestKeepsInFlight(err) {\n      return R.includes(err?.httpStatus, BULK_SPLIT_MAY_STILL_RUN_HTTP_STATUSES);\n    },\n    bulkSplitRequestErrorTranslationKey(err) {\n      if (this.bulkSplitRequestKeepsInFlight(err)) {\n        return BULK_SPLIT_STILL_PROCESSING_TRANSLATION_KEY;\n      }\n      return 'error occurred please try again later';\n    },\n    // One bulk split at a time per pod, whichever folder it targets.\n    // Read-only: called from getters/computed during render, so it must not set state.\n    // An expired lock is simply ignored and replaced by the next begin.\n    // `get` makes the read autotracked in glimmer getters; begin/end dirty it with `set`.\n    isBulkSplitRequestInFlight() {\n      const lock = Ember.get(this, 'bulkSplitRequestLock');\n      if (!lock) {\n        return false;\n      }\n      const lockAgeMs = Date.now() - lock.startedAt;\n      return lockAgeMs < BULK_SPLIT_REQUEST_IN_FLIGHT_WINDOW_MS;\n    },\n    // Read-only like isBulkSplitRequestInFlight: the dialog shows it while the pod is locked.\n    getBulkSplitLockTranslationKey() {\n      if (!this.isBulkSplitRequestInFlight()) {\n        return '';\n      }\n      return BULK_SPLIT_STILL_PROCESSING_TRANSLATION_KEY;\n    },\n    applyBulkSplitAlert(alert) {\n      if (alert?.type !== 'bulk-split') {\n        return;\n      }\n      if (alert.status === 'queued') {\n        this.beginBulkSplitRequest();\n        return;\n      }\n      this.endBulkSplitRequest();\n    },\n    beginBulkSplitRequest() {\n      Ember.set(this, 'bulkSplitRequestLock', {\n        startedAt: Date.now()\n      });\n    },\n    endBulkSplitRequest() {\n      Ember.set(this, 'bulkSplitRequestLock', null);\n    },\n    /**\n     * Sends the bulk split PATCH, holds the pod's in-flight lock and tells the\n     * user the outcome that closes the dialog. It runs on the service rather\n     * than in the dialog, so the lock outlives a dialog that is closed before\n     * the response arrives. A second perform while the PATCH is in flight is\n     * dropped. The API queues the batch and answers right away, and the pod\n     * stays locked until applyBulkSplitAlert frees it. A 409 means another\n     * batch holds the pod, so the user is told and the pod stays locked. Any\n     * other error is rethrown for the dialog to show.\n     *\n     * @param {Object} options\n     * @param {Object} options.data - the bulk split PATCH payload\n     */\n    sendBulkSplitRequestTask: (0, _emberConcurrency.task)(function* ({\n      data\n    }) {\n      this.beginBulkSplitRequest();\n      try {\n        yield this.dataManager.ajaxCall({\n          method: 'PATCH',\n          adapterName: 'documents/sales/invoices',\n          appendPath: '/final/split/batch',\n          data,\n          serverType: 'jobs'\n        });\n        window.alert(this.intl.t(BULK_SPLIT_QUEUED_TRANSLATION_KEY));\n      } catch (err) {\n        const keepsInFlight = this.bulkSplitRequestKeepsInFlight(err);\n        if (!keepsInFlight) {\n          this.endBulkSplitRequest();\n        }\n        if (err?.httpStatus === HTTP_STATUS_CONFLICT) {\n          window.alert(this.intl.t(BULK_SPLIT_ALREADY_RUNNING_TRANSLATION_KEY));\n          return;\n        }\n        throw err;\n      }\n    }).drop(),\n    getAsDirty(model) {\n      const docType = model.getData('docType');\n      const docName = model.getData('docName');\n      const adapterName = `documents/${docType}/${docName}`;\n      const dirty = this.dataManager.getDirtyRecord(adapterName, model);\n      return dirty;\n    },\n    getDispatchProcesses({\n      hasDrafts = false,\n      hasAll = false,\n      hasDispatched = false,\n      results = [],\n      defaultExportSheets = [],\n      settings = {}\n    } = {}) {\n      let defaults = [];\n      if (hasDrafts) {\n        defaults = R.concat(defaults, [{\n          _id: 'steps_draft',\n          systemProcessId: 'steps_draft',\n          isSystemProcess: true,\n          isEditable: false,\n          name: 'draft',\n          code: 'draft',\n          index: -3,\n          defaultExportSheets,\n          defaultExportCustomSheets: [],\n          translate: true,\n          isLocked: true,\n          criterias: {\n            status: 'draft'\n          }\n        }]);\n      }\n      defaults = R.concat(defaults, [{\n        _id: 'steps_unprepared',\n        systemProcessId: 'steps_unprepared',\n        isSystemProcess: true,\n        isEditable: true,\n        name: 'unprepared',\n        code: this.get('constants.dispatchProcess.unprepared'),\n        index: 0,\n        defaultExportSheets,\n        defaultExportCustomSheets: [],\n        translate: true,\n        isLocked: true,\n        criterias: {\n          status: 'final',\n          dispatchProcesses: [{\n            criteria: 'equals',\n            value: ''\n          }, {\n            criteria: 'equals',\n            value: this.get('constants.dispatchProcess.unprepared')\n          }]\n        }\n      }, {\n        _id: 'steps_awaitingPayment',\n        systemProcessId: 'steps_awaitingPayment',\n        isSystemProcess: true,\n        isEditable: true,\n        name: 'awaiting payment',\n        code: this.get('constants.dispatchProcess.awaitingPayment'),\n        index: -2,\n        defaultExportSheets,\n        defaultExportCustomSheets: [],\n        translate: true,\n        isLocked: true,\n        criterias: {\n          status: 'final',\n          dispatchProcesses: [{\n            criteria: 'equals',\n            value: this.get('constants.dispatchProcess.awaitingPayment')\n          }]\n        }\n      }, {\n        _id: 'steps_outOfStock',\n        systemProcessId: 'steps_outOfStock',\n        isSystemProcess: true,\n        isEditable: true,\n        index: -1,\n        name: 'out of stock',\n        code: this.get('constants.dispatchProcess.outOfStock'),\n        status: 'active',\n        defaultExportSheets,\n        defaultExportCustomSheets: [],\n        translate: true,\n        isLocked: true,\n        criterias: {\n          status: 'final',\n          dispatchProcesses: [{\n            criteria: 'equals',\n            value: this.get('constants.dispatchProcess.outOfStock')\n          }]\n        }\n      }]);\n      const isBetaAllowRecurringSchedules = settings?._data?.beta?.allowRecurringSchedules || false;\n      const isFeaturesAllowRecurringSchedules = settings?._data?.features?.allowRecurringSchedules || false;\n      if (isBetaAllowRecurringSchedules && isFeaturesAllowRecurringSchedules) {\n        defaults = R.concat(defaults, [{\n          _id: 'steps_awaitingRecurringPayment',\n          systemProcessId: 'steps_awaitingRecurringPayment',\n          isSystemProcess: true,\n          isEditable: true,\n          name: 'awaitingRecurringPayment',\n          code: this.get('constants.dispatchProcess.awaitingRecurringPayment'),\n          index: -3,\n          defaultExportSheets,\n          defaultExportCustomSheets: [],\n          translate: true,\n          isLocked: true,\n          criterias: {\n            status: 'final',\n            dispatchProcesses: [{\n              criteria: 'equals',\n              value: this.get('constants.dispatchProcess.awaitingRecurringPayment')\n            }]\n          }\n        }]);\n      }\n      if (hasDispatched) {\n        defaults = R.concat(defaults, [{\n          _id: 'steps_dispatched',\n          systemProcessId: 'steps_dispatched',\n          isSystemProcess: true,\n          isEditable: true,\n          isDispatched: true,\n          allowEInvoices: true,\n          allowEInvoicesForPaymentMethods: [],\n          name: 'dispatched',\n          code: this.get('constants.dispatchProcess.dispatched'),\n          index: 10000,\n          noPanel: true,\n          defaultExportSheets,\n          defaultExportCustomSheets: [],\n          translate: true,\n          isLocked: true,\n          criterias: {\n            status: 'final',\n            dispatchProcesses: [{\n              criteria: 'equals',\n              value: this.get('constants.dispatchProcess.dispatched')\n            }]\n          }\n        }]);\n      }\n      defaults = R.map(defaultData => {\n        const settingsData = R.find(R.propEq('systemProcessId', defaultData.systemProcessId))(results) || {};\n        return R.pipe(R.omit(['translate', 'code', 'name', 'isEditable']), R.mergeRight(defaultData))(settingsData);\n      })(defaults);\n      const customResults = R.reject(R.propEq('isSystemProcess', true))(results);\n      defaults = R.concat(defaults, customResults);\n      if (hasAll) {\n        defaults = R.concat(defaults, [{\n          _id: 'steps_All',\n          systemProcessId: 'steps_All',\n          isSystemProcess: true,\n          isEditable: false,\n          name: 'all',\n          code: 'all',\n          index: 1000,\n          defaultExportSheets,\n          defaultExportCustomSheets: [],\n          noPanel: true,\n          translate: true,\n          isLocked: true,\n          criterias: {\n            dispatchProcesses: [{\n              criteria: 'notEquals',\n              value: this.get('constants.dispatchProcess.dispatched')\n            }]\n          }\n        }]);\n      }\n      defaults = R.sortWith([R.ascend(R.prop('index'))])(defaults);\n      return defaults;\n    },\n    findDispatchProcess(dispatchProcesses, dispatchProcessCode) {\n      dispatchProcesses = dispatchProcesses || [];\n      if (R.isEmpty(dispatchProcesses)) {\n        return false;\n      }\n      return dispatchProcesses.findBy('_data.code', dispatchProcessCode);\n    },\n    // @TODO: remove this function. this is handled on api\n    getDuplicateAddressesWithoutConvinienceStore(duplicateAddresses) {\n      let countWithoutConvinienceStores = duplicateAddresses?.count || 0;\n      const valuesWithoutConvinienceStores = R.pipe(R.propOr([], 'values'), R.map(value => {\n        // const docs = value?.docs || []\n        // const hasConvinienceStore = R.pipe(\n        //   R.filter(R.propEq('shippingType', 'convenienceStore')),\n        //   RA.isNotNilOrEmpty\n        // )(docs)\n\n        // if (hasConvinienceStore) {\n        //   countWithoutConvinienceStores = countWithoutConvinienceStores - value.count\n        //   return {}\n        // }\n\n        return value;\n      }), R.reject(RA.isNilOrEmpty))(duplicateAddresses) || [];\n      return {\n        values: valuesWithoutConvinienceStores,\n        count: countWithoutConvinienceStores\n      };\n    },\n    fetchSpecsTask: (0, _emberConcurrency.task)(function* () {\n      return yield this.crud.findTask.perform({\n        adapterName: 'specs/collection'\n      });\n    }),\n    markAsPrintedTask: (0, _emberConcurrency.task)(function* (toPrintList, showMarkAsPrintedBtn, allowMarkAsPrinted) {\n      if (showMarkAsPrintedBtn && allowMarkAsPrinted) {\n        const payload = {\n          batch: R.map(R.pipe(R.path(['model', '_data']), R.pick(['_key', '_id', 'docType', 'docName', 'printHistory', 'transporterExtension'])))(toPrintList)\n        };\n        return yield this.server.call('PATCH', 'api/protected/documents/sales/dispatch/printed/batch', payload);\n      }\n      return false;\n    }),\n    /**\n     * Move every document in the current dispatch list scope (process, date, printed status pill, search) on the API.\n     * @param {Object} args\n     * @param {Object} args.allDocumentsScope - { filters, dispatchProcess, period } of the list being moved\n     * @param {Object} args.toDispatchProcess\n     * @param {string} [args.toDispatchDate]\n     * @param {string} [args.toDispatchDateZ]\n     * @returns {Promise<Object>} { batch, successful, rejected }\n     */\n    updateEntireDispatchProcessTask: (0, _emberConcurrency.task)(function* ({\n      allDocumentsScope,\n      toDispatchProcess,\n      toDispatchDate,\n      toDispatchDateZ\n    }) {\n      const todayZ = this.dateService.getStartOfDayZ();\n      const listFilters = this.buildDispatchListScopeFilters(allDocumentsScope);\n      const payload = {\n        filters: listFilters,\n        toDispatchProcess: toDispatchProcess.getData('code'),\n        toDispatchDate,\n        toDispatchDateZ,\n        setTodayBasedOnCompanyLocale: toDispatchDateZ === todayZ,\n        toDispatchProcessLabel: toDispatchProcess.getData('name'),\n        toDispatchProcessLabelTranslate: toDispatchProcess.getData('translate')\n      };\n      const response = yield this.server.call('PATCH', 'api/protected/documents/sales/dispatch/process/all', payload);\n      return response?.data || response;\n    }),\n    setDispatchProcessTask: (0, _emberConcurrency.task)(function* ({\n      model,\n      allDocumentsScope,\n      dispatchProcess,\n      dispatchDate,\n      dispatchDateZ\n    }) {\n      if (allDocumentsScope) {\n        return yield this.updateEntireDispatchProcessTask.perform({\n          allDocumentsScope,\n          toDispatchProcess: dispatchProcess,\n          toDispatchDate: dispatchDate,\n          toDispatchDateZ: dispatchDateZ\n        });\n      }\n      const todayZ = this.dateService.getStartOfDayZ();\n      if (R.is(Array, model)) {\n        const models = model;\n        const dispatchProcessCode = dispatchProcess.getData('code');\n        const dispatchProcessLabel = dispatchProcess.getData('name');\n        const dispatchProcessLabelTranslate = dispatchProcess.getData('translate');\n        const batch = R.map(model => {\n          return {\n            docType: model.getData('docType'),\n            docName: model.getData('docName'),\n            dispatchProcessUpdatedTimestampZ: model.getData('dispatchProcessUpdatedTimestampZ'),\n            timestampZ: model.getData('timestampZ'),\n            ref: model.getData('ref'),\n            _key: model.getData('_key')\n          };\n        }, models);\n        const payload = {\n          batch,\n          toDispatchProcess: dispatchProcessCode,\n          toDispatchDate: dispatchDate,\n          toDispatchDateZ: dispatchDateZ,\n          setTodayBasedOnCompanyLocale: false,\n          toDispatchProcessLabel: dispatchProcessLabel,\n          toDispatchProcessLabelTranslate: dispatchProcessLabelTranslate\n        };\n        if (dispatchDateZ === todayZ) {\n          payload.setTodayBasedOnCompanyLocale = true;\n        }\n        return yield this.server.call('PATCH', 'api/protected/documents/sales/dispatch/process/batch', payload);\n      } else {\n        let confirmed = true;\n        if (model.get('isDispatchedBeforeToday')) {\n          const msg = this.intl.t('this may already have been dispatched on a previous day- are you sure you want to change its dispatch status');\n          confirmed = window.confirm(msg);\n        }\n        if (confirmed) {\n          const docType = model.getData('docType');\n          const docName = model.getData('docName');\n          const adapterName = `documents/${docType}/${docName}`;\n          const dirty = this.getAsDirty(model);\n          if (dispatchDate) {\n            dirty.setData('dispatchDate', dispatchDate);\n          }\n          if (dispatchDateZ) {\n            dirty.setData('dispatchDateZ', dispatchDateZ);\n          }\n          dirty.setData('setTodayBasedOnCompanyLocale', false);\n          if (dispatchDateZ === todayZ) {\n            dirty.setData('setTodayBasedOnCompanyLocale', true);\n          }\n          dirty.setData('dispatchProcess', dispatchProcess.getData('code'));\n          dirty.setData('dispatchProcessLabel', dispatchProcess.getData('name'));\n          dirty.setData('dispatchProcessLabelTranslate', dispatchProcess.getData('translate'));\n          const appendPath = 'dispatch/process';\n          const saved = yield this.dataManager.updateRecord({\n            adapterName,\n            appendPath,\n            dirty\n          });\n          return [saved];\n        }\n      }\n    }).enqueue().maxConcurrency(1),\n    // NOTE: important, this cannot be more than 1 otherwise creating waybill numbers will have racing conditions\n\n    tCatGenerateAndDownloadWaybillTask: (0, _emberConcurrency.task)(function* ({\n      component,\n      printType,\n      documents,\n      onAfter\n    }) {\n      documents = RA.ensureArray(documents);\n      if (RA.isNilOrEmpty(documents)) {\n        return null;\n      }\n\n      // Only warn when regenerating numbers for docs that already have a waybill.\n      if (this.documentsIncludeAlreadyPrintedWaybill(documents)) {\n        const msg = this.intl.t('everytime you print it will generate a new Waybill number. are you sure you want to print?');\n        const confirmed = window.confirm(msg);\n        if (!confirmed) {\n          return null;\n        }\n      }\n      const results = R.pipe(R.map(R.pipe(R.propOr({}, '_data'), R.pick(['_key', 'docType', 'docName']))))(documents);\n      try {\n        // The errors should be handled on the tabs manager\n        if (component) {\n          component.set('errors', []);\n        }\n        const result = yield this.server.call('POST', 'api/protected/extensions/apps/tw/transporters/t-cat', {\n          transporterWaybillPrintType: printType,\n          docs: results\n        });\n        const generateResult = this.readTCatGenerateResult(result?.data);\n        const downloadFiles = R.map(download => this.tCatDownloadWaybill.perform(download))(generateResult.downloads);\n        yield (0, _emberConcurrency.all)(downloadFiles);\n        this.reportTCatUnsuccessfulRows({\n          component,\n          unsuccessful: generateResult.unsuccessful\n        });\n      } catch (error) {\n        const errors = R.pipe(R.pathOr([], ['data', 'errors']), RA.ensureArray)(error);\n        this.setTCatWaybillErrors({\n          component,\n          errors\n        });\n        let errorMessages = R.pipe(R.map(R.pathOr('', ['Message'])), R.reject(RA.isNilOrEmpty), R.join('\\n'))(errors);\n        if (errorMessages) {\n          R.pipe(R.pluck('Message'), R.map(R.pipe(R.split('執行失敗 -> 【第'), R.map(R.split('筆訂單資料')), R.flatten, R.nth(1), parseInt, R.dec)), R.forEachObjIndexed((value, index) => {\n            const message = R.path([index, 'Message'])(errors);\n            const docNo = R.path([value, '_data', 'docNo'])(documents);\n            const ref = R.path([value, '_data', 'ref'])(documents);\n            if (ref) {\n              errors[index].Message = `#${docNo} | ${ref} - ${message}`;\n            } else {\n              errors[index].Message = `#${docNo} - ${message}`;\n            }\n            errors[index]._key = R.path([value, '_data', '_key'])(documents);\n          }))(errors);\n        } else {\n          errorMessages = R.pipe(R.map(error => {\n            const document = R.find(R.pathEq(['_data', '_key'], error._key))(documents);\n            const docNo = R.pathOr('', ['_data', 'docNo'], document);\n            const ref = R.pathOr('', ['_data', 'ref'], document);\n            if (ref) {\n              return `#${docNo} | ${ref}`;\n            }\n            return `#${docNo}`;\n          }), R.join('\\n'))(errors);\n          const message = this.intl.t('error while generating waybill numbers');\n          if (errorMessages) {\n            errorMessages = `${message}:\\n- ${errorMessages}`;\n          } else {\n            errorMessages = `${message}`;\n          }\n        }\n        alert(errorMessages);\n        throw error;\n      }\n      if (onAfter) {\n        onAfter();\n      }\n    }),\n    /**\n     * Downloads and unsuccessful rows from a T-Cat generate response. The server answers with\n     * `{ downloads, successful, unsuccessful }`; older servers answer with the download entries only.\n     * @param {Object|Object[]} data - response data\n     * @returns {{downloads: Object[], unsuccessful: Object[]}}\n     */\n    readTCatGenerateResult(data) {\n      if (Array.isArray(data)) {\n        return {\n          downloads: data,\n          unsuccessful: []\n        };\n      }\n      return {\n        downloads: data?.downloads || [],\n        unsuccessful: data?.unsuccessful || []\n      };\n    },\n    /**\n     * One alert line per document T-Cat rejected.\n     * @param {Object[]} unsuccessful - rows with docNo, ref and the carrier message\n     * @returns {string}\n     */\n    buildTCatUnsuccessfulMessage(unsuccessful = []) {\n      const lines = R.map(row => {\n        const label = row?.ref ? `#${row?.docNo} | ${row?.ref}` : `#${row?.docNo}`;\n        return `${label} - ${row?.message || ''}`;\n      })(unsuccessful);\n      const header = this.intl.t('error while generating waybill numbers');\n      return `${header}:\\n- ${lines.join('\\n- ')}`;\n    },\n    /**\n     * Show the T-Cat errors on the component and on its active sub-tab.\n     * @param {Object} args\n     * @param {Object} [args.component]\n     * @param {Object[]} args.errors - rows with a `Message`, as the t-cat-waybill template reads them\n     */\n    setTCatWaybillErrors({\n      component,\n      errors = []\n    }) {\n      if (!component) {\n        return;\n      }\n      component.set('errors', errors);\n      const activeSubTab = this.tabsManager.getActiveSubTab(component.tab);\n      if (activeSubTab) {\n        activeSubTab.set('errors', errors);\n      }\n    },\n    /**\n     * Keep the rejected documents on the tab errors and tell the user which ones failed.\n     * @param {Object} args\n     * @param {Object} [args.component]\n     * @param {Object[]} args.unsuccessful\n     */\n    reportTCatUnsuccessfulRows({\n      component,\n      unsuccessful = []\n    }) {\n      if (RA.isNilOrEmpty(unsuccessful)) {\n        return;\n      }\n      const errors = R.map(row => {\n        return R.mergeRight(row, {\n          Message: row?.message || ''\n        });\n      })(unsuccessful);\n      this.setTCatWaybillErrors({\n        component,\n        errors\n      });\n      alert(this.buildTCatUnsuccessfulMessage(unsuccessful));\n    },\n    /**\n     * Whether any loaded row already has a T-Cat file number.\n     * @param {Object[]} documentRows\n     * @returns {boolean}\n     */\n    documentRowsHaveTCatWaybillFile(documentRows = []) {\n      return R.any(documentRow => {\n        const row = readDispatchDocumentData(documentRow);\n        const isTCat = row?.transporterExtension === this.tCatExtension;\n        const hasFileNumber = RA.isNotNilOrEmpty(row?.transporterWaybillFileNumber);\n        return isTCat && hasFileNumber;\n      })(RA.ensureArray(documentRows));\n    },\n    /**\n     * T-Cat rows that already have a file number and a waybill.\n     * @param {Object[]} documentRows\n     * @returns {Object[]}\n     */\n    readTCatRowsWithWaybillFile(documentRows = []) {\n      return R.pipe(RA.ensureArray, R.map(readDispatchDocumentData), R.filter(row => {\n        const isTCat = row?.transporterExtension === this.tCatExtension;\n        const hasFileNumber = RA.isNotNilOrEmpty(row?.transporterWaybillFileNumber);\n        const hasWaybill = RA.isNotNilOrEmpty(row?.waybill);\n        return isTCat && hasFileNumber && hasWaybill;\n      }))(documentRows);\n    },\n    /**\n     * T-Cat PDF downloads from print-batch carriers. Each download keeps its own\n     * transporterCredentials, so multiple t-cat accounts in one batch stay unique.\n     * @param {Object} args\n     * @param {Object[]} args.carriers - printBatch.carriers\n     * @param {string} [args.transporterExtension]\n     * @returns {Object[]}\n     */\n    buildTCatLatestFileDownloads({\n      carriers = [],\n      transporterExtension = this.tCatExtension\n    } = {}) {\n      return R.pipe(RA.ensureArray, R.filter(carrier => carrier?.transporterExtension === transporterExtension), R.chain(carrier => RA.ensureArray(carrier?.downloads)), R.filter(download => {\n        const fileNumber = download?.transporterWaybillFileNumber;\n        const customerId = download?.transporterCredentials?.CustomerId;\n        const customerToken = download?.transporterCredentials?.CustomerToken;\n        return RA.isNotNilOrEmpty(fileNumber) && RA.isNotNilOrEmpty(customerId) && RA.isNotNilOrEmpty(customerToken);\n      }))(carriers);\n    },\n    /**\n     * Reprint the latest T-Cat waybill files for the current sidebar filters.\n     * @param {Object} args\n     * @param {Object} [args.filters]\n     */\n    redownloadTCatWaybillFilesTask: (0, _emberConcurrency.task)(function* ({\n      filters = {}\n    } = {}) {\n      const response = yield this.server.call('POST', 'api/protected/extensions/apps/tw/transporters/t-cat/waybill/redownload', {\n        transporterExtension: this.tCatExtension,\n        filters\n      });\n      const downloads = response?.data?.downloads || [];\n      R.forEach(download => {\n        this.tCatDownloadWaybill.perform(download);\n      })(RA.ensureArray(downloads));\n    }),\n    tCatDownloadWaybill: (0, _emberConcurrency.task)(function* (result) {\n      const transporterWaybillFileNumber = R.pathOr('', ['transporterWaybillFileNumber'])(result);\n      const CustomerId = R.pathOr('', ['transporterCredentials', 'CustomerId'])(result);\n      const CustomerToken = R.pathOr('', ['transporterCredentials', 'CustomerToken'])(result);\n      if (RA.isNilOrEmpty(transporterWaybillFileNumber)) {\n        return;\n      }\n      const obtNumbers = R.pipe(R.pathOr([], ['waybills']), R.map(R.pick(['OBTNumber'])))(result);\n      const myHeaders = new Headers();\n      myHeaders.append('Content-Type', 'application/json');\n      const raw = JSON.stringify({\n        CustomerId,\n        CustomerToken,\n        FileNo: transporterWaybillFileNumber,\n        Orders: obtNumbers\n      });\n      const requestOptions = {\n        method: 'POST',\n        headers: myHeaders,\n        body: raw,\n        redirect: 'follow'\n      };\n      const date = this.dateService.getMoment().format('YYYY-MM-DD_HH-mm-ss-SSSS');\n      const filename = `黑貓_${date}.pdf`;\n\n      // yield timeout(1000)\n\n      yield fetch(_environment.default.tCat.url, requestOptions).then(async res => ({\n        filename,\n        blob: await res.blob()\n      })).then(resObj => {\n        // It is necessary to create a new blob object with mime-type explicitly set for all browsers except Chrome, but it works for Chrome too.\n        const newBlob = new Blob([resObj.blob], {\n          type: 'application/pdf'\n        });\n\n        // MS Edge and IE don't allow using a blob object directly as link href, instead it is necessary to use msSaveOrOpenBlob\n        if (window.navigator && window.navigator.msSaveOrOpenBlob) {\n          window.navigator.msSaveOrOpenBlob(newBlob);\n        } else {\n          // For other browsers: create a link pointing to the ObjectURL containing the blob.\n          const objUrl = window.URL.createObjectURL(newBlob);\n          const link = document.createElement('a');\n          link.href = objUrl;\n          link.download = resObj.filename;\n          link.click();\n\n          // For Firefox it is necessary to delay revoking the ObjectURL.\n          setTimeout(() => {\n            window.URL.revokeObjectURL(objUrl);\n          }, 250);\n        }\n      }).catch(error => {\n        console.error('DOWNLOAD ERROR', error);\n      });\n    }).enqueue(),\n    tCatGetModel: (0, _emberConcurrency.task)(function* ({\n      transporterKey = ''\n    } = {}) {\n      const transporters = this?.crud?.lists['contacts-transporters'] || [];\n      let tCatModel = R.find(R.pathEq(['_data', 'transporterExtension'], 't-cat'))(transporters);\n      if (transporterKey) {\n        tCatModel = R.find(R.pathEq(['_data', '_key'], transporterKey))(transporters);\n      }\n      this.set('tCatModel', tCatModel);\n      return tCatModel;\n    }),\n    tCatValidateDocAddress: (0, _emberConcurrency.task)(function* (document) {\n      const documentData = R.pipe(R.propOr({}, '_data'), R.pick(['address', 'transporterExtension', 'docName', 'docType', '_key', '_id', '_rev']))(document);\n      if (!document?._data?.isVoid) {\n        const response = yield this.server.call('POST', 'api/protected/extensions/apps/tw/transporters/validate/address', documentData);\n        return R.pipe(R.propOr({}, 'data'), R.pick(['postNumber', 'transporterSenderAddress', 'transporterSenderName', 'transporterSenderPostNumber', 'transporterSenderTelephone']))(response);\n      }\n    }),\n    _handleWaybillErrors(error = []) {\n      const errors = R.pipe(R.pathOr(error, ['data', 'errors']), RA.ensureArray)(error);\n      let errorMessages = R.pipe(R.map(R.pathOr('', ['message'])), R.reject(RA.isNilOrEmpty), R.join('\\n'))(errors);\n      if (errorMessages) {\n        errorMessages = R.pipe(R.map(error => {\n          const document = error.doc || R.find(R.pathEq(['_data', '_key'], error._key))(documents);\n          const docNo = R.pathOr('', ['docNo'], document) || R.pathOr('', ['_data', 'docNo'], document);\n          const ref = R.pathOr('', ['ref'], document) || R.pathOr('', ['_data', 'ref'], document);\n          let message = `#${docNo}`;\n          if (ref) {\n            message = `#${docNo} | ${ref}`;\n          }\n          if (error.type && error.context) {\n            message += ` | ${this.intl.t(error.type, error.context)}`;\n          } else {\n            message += ` | ${error.message}`;\n          }\n          return message;\n        }), R.join('\\n'))(errors);\n      } else {\n        errorMessages = R.pipe(\n        // R.map(error => {\n        //   const document = R.find(\n        //     R.pathEq(['_data', '_key'], error._key)\n        //   )(documents)\n        //   const docNo = R.pathOr('', ['_data', 'docNo'], document)\n        //   const ref = R.pathOr('', ['_data', 'ref'], document)\n        //   if (ref) {\n        //     return `#${docNo} | ${ref}`\n        //   }\n        //   return `#${docNo}`\n        // }),\n        R.join('\\n'))(errors);\n        const message = this.intl.t('error while generating waybill numbers');\n        errorMessages = `${message}:\\n- ${errorMessages}`;\n      }\n      alert(errorMessages);\n      throw error;\n    },\n    hctGenerateWaybillTask: (0, _emberConcurrency.task)(function* ({\n      component,\n      documents,\n      onAfter,\n      isNewWaybill,\n      transporterExtension,\n      isUpdate\n    } = {}) {\n      let msg;\n      if (isNewWaybill && this.documentsIncludeAlreadyPrintedWaybill(documents)) {\n        // Only warn when regenerating numbers for docs that already have a waybill.\n        msg = 'everytime you print it will generate a new Waybill number. are you sure you want to print?';\n      } else if (isUpdate) {\n        // When update ignore documents with expiry waybills\n        documents = R.reject(R.propEq('hasExpiredWaybill', true))(documents);\n        msg = 'update waybills with the latest changes. the update will omit any expired waybill. are you sure you want to update?';\n      }\n      if (RA.isNotNilOrEmpty(msg)) {\n        const translatedMsg = this.intl.t(msg);\n        const confirmed = window.confirm(translatedMsg);\n        if (!confirmed) {\n          return null;\n        }\n      }\n      documents = R.pipe(RA.ensureArray, R.map(documentModel => {\n        documentModel.set('_data.isNewWaybill', isNewWaybill);\n        documentModel.set('_data.isUpdate', isUpdate);\n        return documentModel;\n      }))(documents);\n      if (RA.isNilOrEmpty(documents)) {\n        return null;\n      }\n      try {\n        // The errors should be handled on the tabs manager\n        if (component && component.set) {\n          component.set('errors', []);\n        }\n        const result = yield this.crud.updateBatchTask.perform({\n          adapterName: `documents/waybills`,\n          batch: documents\n        });\n        return result?.data || [];\n      } catch (error) {\n        this._handleWaybillErrors(error);\n      }\n      if (onAfter) {\n        onAfter();\n      }\n    }),\n    hctFetchWaybillRecordTask: (0, _emberConcurrency.task)(function* ({\n      component,\n      documents,\n      transporterExtension = 'hct',\n      subTab,\n      onPrintDialogAction,\n      waybillsPerPage,\n      filtersData = {},\n      shouldThrowError = false\n    } = {}) {\n      const hasDocs = RA.isNotNilOrEmpty(documents);\n      if (!hasDocs) {\n        return;\n      }\n      documents = RA.ensureArray(documents);\n      const docs = R.pipe(R.map(document => {\n        let documentData = R.prop('_data')(document);\n        if (!documentData) {\n          documentData = document;\n        }\n        return {\n          resource: `${documentData?.docType}-${documentData?.docName}`,\n          resourceKey: documentData?._key\n        };\n      }))(documents);\n      try {\n        let result; // = yield this.server.getAdapter('documents/waybills').downloadBatch(documents)\n\n        const supportPDFDownload = [this.constants.transporterExtensions.sevenEleven, this.constants.transporterExtensions.payuniSevenEleven];\n        const shouldDownloadPDF = supportPDFDownload.includes(transporterExtension);\n        if (shouldDownloadPDF) {\n          const maxAttempts = 3;\n          const retryDelayMs = 3000;\n          let lastError;\n          for (let attempt = 1; attempt <= maxAttempts; attempt++) {\n            try {\n              return yield this.ifetch.iFetch({\n                method: 'POST',\n                path: `api/protected/extensions/apps/tw/transporters/${transporterExtension}/waybill/download`,\n                data: {\n                  docs,\n                  waybillsPerPage,\n                  filtersData\n                }\n              });\n            } catch (downloadError) {\n              lastError = downloadError;\n              if (attempt < maxAttempts) {\n                yield (0, _emberConcurrency.timeout)(retryDelayMs);\n              }\n            }\n          }\n          throw lastError;\n        } else {\n          // Split calls to fetch waybills\n          const fetchArray = R.pipe(R.splitEvery(15), R.map(batch => {\n            return this.server.call('GET', `api/protected/extensions/apps/tw/transporters/${transporterExtension}/waybill`, {\n              docs: batch\n            });\n          }))(docs);\n          const resultArray = yield (0, _emberConcurrency.all)(fetchArray);\n          const data = R.pipe(R.map(R.propOr([], 'data')), R.flatten)(resultArray);\n          result = {\n            data\n          };\n        }\n        return result;\n      } catch (error) {\n        console.error(error);\n        if (shouldThrowError) {\n          throw error;\n        }\n      }\n    }).enqueue().maxConcurrency(15),\n    generateAndDownloadWaybillsTask: (0, _emberConcurrency.task)(function* ({\n      component,\n      documents,\n      transporterExtension = '',\n      isNewWaybill = false,\n      onlyFetch = false,\n      onlyGenerate = false,\n      isUpdate = false,\n      onAfter,\n      waybillsPerPage,\n      filtersData = {}\n    } = {}) {\n      let result;\n      const allowTransporterExtension = R.anyPass([R.equals(this.constants.transporterExtensions.hct), R.equals(this.constants.transporterExtensions.sevenEleven), R.equals(this.constants.transporterExtensions.payuniSevenEleven)])(transporterExtension);\n      if (!allowTransporterExtension) {\n        return;\n      }\n      const response = yield this.hctGenerateWaybillTask.perform({\n        transporterExtension,\n        component,\n        documents,\n        isNewWaybill,\n        isUpdate\n      });\n      const successful = R.propOr([], 'successful')(response);\n      const unsuccessful = R.propOr([], 'unsuccessful')(response);\n      if (transporterExtension === this.constants.transporterExtensions.payuniSevenEleven && RA.isNotNilOrEmpty(successful)) {\n        const defaultDelayTime = 5000;\n        const documentsBatchSize = 50;\n        const documentsBatches = Math.ceil(successful.length / documentsBatchSize);\n        const delayByDocumentsBatch = defaultDelayTime * documentsBatches;\n\n        // Wait for 5 seconds per batch of 50 documents to ensure the waybill is generated\n        yield (0, _emberConcurrency.timeout)(delayByDocumentsBatch);\n      }\n      result = yield this.hctFetchWaybillRecordTask.perform({\n        transporterExtension,\n        component,\n        documents: successful,\n        waybillsPerPage,\n        filtersData\n      });\n\n      // update docSales for slow request or broadcast issues\n      if (transporterExtension === this.constants.transporterExtensions.hct) {\n        R.pipe(R.pathOr([], ['data']), R.forEach(shippingWaybill => {\n          const docSalesRecord = R.find(R.pathEq(['_data', '_key'], shippingWaybill?.resourceKey))(documents);\n          if (!docSalesRecord) {\n            return;\n          }\n          if (docSalesRecord?.setData) {\n            docSalesRecord.setData('transporterWaybillRecords', [shippingWaybill]);\n          }\n        }))(result);\n      }\n      if (unsuccessful.length) {\n        if (RA.isNotNilOrEmpty(result?.data)) {\n          response.data = result.data;\n        }\n        return response;\n      }\n      if (onAfter) {\n        onAfter(result);\n      }\n      return result;\n    }).enqueue(),\n    removeWaybillsTask: (0, _emberConcurrency.task)(function* ({\n      component,\n      documents,\n      transporterExtension = '',\n      isNewWaybill = false\n    } = {}) {\n      try {\n        let result;\n        if (transporterExtension === this.constants.transporterExtensions.hct) {\n          yield this.hctGenerateWaybillTask.perform({\n            component,\n            documents,\n            isNewWaybill\n          });\n        }\n        return result;\n      } catch (error) {\n        console.error(error);\n      }\n    }).drop(),\n    hctRemoveWaybillTask: (0, _emberConcurrency.task)(function* ({\n      documents\n    } = {}) {\n      documents = RA.ensureArray(documents);\n      if (RA.isNilOrEmpty(documents)) {\n        return null;\n      }\n      const results = R.pipe(R.map(R.pipe(R.propOr({}, '_data'), R.pick(['_key', 'docType', 'docName', 'waybill', 'transporterWaybillRecord']))))(documents);\n      try {\n        yield this.server.call('DELETE', 'api/protected/extensions/apps/tw/transporters/hct/waybill', {\n          docs: results\n        });\n      } catch (error) {}\n    }),\n    downloadPdf: (0, _emberConcurrency.task)(function* ({\n      name = '黑貓',\n      rawResponse,\n      rawResponseBuffer\n    } = {}) {\n      const date = this.dateService.getMoment().format('YYYY-MM-DD_HH-mm-ss');\n      const filename = `${name}_${date}.pdf`;\n\n      // blob = blob || yield rawResponse.blob()\n\n      // It is necessary to create a new blob object with mime-type explicitly set for all browsers except Chrome, but it works for Chrome too.\n      const newBlob = new Blob([rawResponseBuffer], {\n        type: 'application/pdf'\n      });\n\n      // MS Edge and IE don't allow using a blob object directly as link href, instead it is necessary to use msSaveOrOpenBlob\n      if (window.navigator && window.navigator.msSaveOrOpenBlob) {\n        window.navigator.msSaveOrOpenBlob(newBlob);\n      } else {\n        // For other browsers: create a link pointing to the ObjectURL containing the blob.\n        const objUrl = window.URL.createObjectURL(newBlob);\n        const link = document.createElement('a');\n        link.href = objUrl;\n        link.download = filename;\n        link.click();\n\n        // For Firefox it is necessary to delay revoking the ObjectURL.\n        setTimeout(() => {\n          window.URL.revokeObjectURL(objUrl);\n        }, 250);\n      }\n    }),\n    /**\n     * Updates the convenience store URL.\n     * @deprecated\n     * @async\n     * @function updateConvenienceStoreUrl\n     * @param {object} options - The options for updating the convenience store URL.\n     * @param {object} options.model - The model containing the data.\n     * @param {string} [options.transporterKey=''] - The transporter key.\n     * @param {string} [options.personId=''] - The person ID.\n     * @returns {Promise} - The promise that resolves to the response data.\n     */\n    updateConvenienceStoreUrl: (0, _emberConcurrency.task)(function* ({\n      model,\n      transporterKey = '',\n      personId = ''\n    } = {}) {\n      const documentId = model?._data?._id || '';\n      const documentKey = model?._data?._key || '';\n      const docType = model?._data?.docType || '';\n      const docName = model?._data?.docName || '';\n      transporterKey = transporterKey || model?._data?.transporterKey || '';\n      const data = {\n        documentId,\n        documentKey,\n        docType,\n        docName,\n        personId\n      };\n      const path = `api/protected/extensions/apps/tw/transporters/${transporterKey}`;\n      const response = yield this.ifetch.iFetch({\n        method: 'PATCH',\n        path,\n        data\n      });\n      return response.data;\n    }),\n    /**\n     * Summary dashData scoped to current filters (list, transporter bar, duplicates).\n     * @param {Object} dashData - summary dashData from API\n     * @returns {Object}\n     */\n    readDispatchDashDataInView(dashData) {\n      return dashData?.inView ?? {};\n    },\n    /**\n     * Print-status pill counts for the dispatch process tab (process + date scope from API).\n     * @param {Object} dashData - summary dashData from API\n     * @returns {Object}\n     */\n    readDispatchProcessPrintedStatusCounts(dashData) {\n      return dashData?.dispatchProcess?.printedStatusCounts ?? {};\n    },\n    /**\n     * Translation key for a printed status pill.\n     * @param {string} printedStatus - filters printedStatus value\n     * @returns {string}\n     */\n    readPrintedStatusLabel(printedStatus = '') {\n      const labelByPrintedStatus = {\n        unprinted: 'unprinted',\n        hasIssues: 'has issues',\n        printed: 'printed',\n        '': 'all'\n      };\n      return labelByPrintedStatus[printedStatus] ?? 'all';\n    },\n    /**\n     * Document fields on a dispatch row, whether it is a list proxy or a record.\n     * @param {Object} documentRow\n     * @returns {Object}\n     */\n    readDispatchDocumentData(documentRow) {\n      return readDispatchDocumentData(documentRow);\n    },\n    /**\n     * Document models that belong to one carrier.\n     * @param {Object[]} documentModels\n     * @param {string} transporterExtension\n     * @returns {Object[]}\n     */\n    filterDocumentModelsByTransporterExtension(documentModels = [], transporterExtension = '') {\n      return R.filter(documentModel => {\n        return documentModel?._data?.transporterExtension === transporterExtension;\n      })(documentModels || []);\n    },\n    /**\n     * List rows checked for batch print on the open dispatch process panel.\n     * @param {Object[]} results - dispatch ModelProxy rows\n     * @param {string} dispatchProcessCode - open panel process code (or `all`)\n     * @returns {Object[]}\n     */\n    filterSelectedDispatchDocuments(results = [], dispatchProcessCode = '') {\n      return R.filter(proxyModel => {\n        const rowDispatchProcess = proxyModel?.model?._data?.dispatchProcess ?? 'unprepared';\n        const isSelected = proxyModel?.isSelected === true;\n        if (!isSelected) {\n          return false;\n        }\n        return rowDispatchProcess === dispatchProcessCode || dispatchProcessCode === 'all';\n      })(results);\n    },\n    /**\n     * Numerator for the print sidebar when row checkboxes are used; otherwise inView total.\n     * @param {Object} args\n     * @param {Object[]} args.results - dispatch ModelProxy rows\n     * @param {string} args.dispatchProcessCode\n     * @param {Object} args.dashData - summary dashData from API\n     * @returns {number}\n     */\n    resolvePrintInfoDocumentCount({\n      results = [],\n      dispatchProcessCode = '',\n      dashData\n    }) {\n      const selectedCount = this.filterSelectedDispatchDocuments(results, dispatchProcessCode).length;\n      if (selectedCount > 0) {\n        return selectedCount;\n      }\n      return Number(this.readDispatchDashDataInView(dashData)?.total) || 0;\n    },\n    /**\n     * Badge counts for dispatch sidebar print actions (row selection or inView aggregates).\n     * @param {Object} args\n     * @param {Object[]} args.results - dispatch ModelProxy rows\n     * @param {string} args.dispatchProcessCode\n     * @param {Object} args.dashData - summary dashData from API\n     * @returns {{ documentCount: number, packagesByTransporterExtension: Object }}\n     */\n    buildDispatchPrintSidebarCounts({\n      results = [],\n      dispatchProcessCode = '',\n      dashData\n    }) {\n      const selectedDocuments = this.filterSelectedDispatchDocuments(results, dispatchProcessCode);\n      const documentCount = this.resolvePrintInfoDocumentCount({\n        results,\n        dispatchProcessCode,\n        dashData\n      });\n      const dashDataInView = this.readDispatchDashDataInView(dashData);\n      const inViewPackagesByTransporterExtension = dashDataInView.packagesByTransporterExtension ?? {};\n      if (selectedDocuments.length === 0) {\n        return {\n          documentCount,\n          packagesByTransporterExtension: inViewPackagesByTransporterExtension\n        };\n      }\n      const packagesByTransporterExtension = R.pipe(R.map(proxyModel => proxyModel?.model?._data), R.reject(R.isNil), R.filter(documentRow => RA.isNotNilOrEmpty(documentRow?.transporterExtension)), R.groupBy(R.prop('transporterExtension')), R.map(documentRows => {\n        const packages = R.pipe(R.map(documentRow => Number(documentRow?.packages) || 0), R.sum)(documentRows);\n        return {\n          count: documentRows.length,\n          packages\n        };\n      }))(selectedDocuments);\n      return {\n        documentCount,\n        packagesByTransporterExtension\n      };\n    },\n    /**\n     * Whether a document already has a waybill (printed / generated before).\n     * @param {Object} documentRow - ModelProxy row or document model\n     * @returns {boolean}\n     */\n    documentHasWaybill(documentRow) {\n      const rowData = readDispatchDocumentData(documentRow);\n      if (RA.isNilOrEmpty(rowData)) {\n        return false;\n      }\n      if (RA.isNotNilOrEmpty(rowData.waybill)) {\n        return true;\n      }\n      return RA.isNotNilOrEmpty(rowData.transporterWaybillRecord);\n    },\n    /**\n     * True when any document in the batch already has a waybill (regenerate warning applies).\n     * @param {Object[]} documents\n     * @returns {boolean}\n     */\n    documentsIncludeAlreadyPrintedWaybill(documents = []) {\n      return R.any(documentRow => {\n        return this.documentHasWaybill(documentRow);\n      })(RA.ensureArray(documents));\n    },\n    /**\n     * API search filters for every document in a dispatch list (process, date, printed status pill, search).\n     * @param {Object} args\n     * @param {Object} args.filters\n     * @param {Object} args.dispatchProcess\n     * @param {Object} [args.period]\n     * @returns {Object}\n     */\n    buildDispatchListScopeFilters({\n      filters,\n      dispatchProcess,\n      period\n    } = {}) {\n      const filtersData = filters?.serialize?.() || {};\n      const dispatchProcessCode = dispatchProcess?.getData?.('code') || filtersData.dispatchProcess || '';\n      const dispatchedProcessCode = this.constants?.dispatchProcess?.dispatched;\n      const isDispatchProcess = dispatchProcessCode === dispatchedProcessCode;\n      const listFilters = R.mergeRight(filtersData, {\n        matches: [],\n        count: '1000',\n        dispatchProcessesCriterias: dispatchProcess?.getData?.('criterias'),\n        dispatchProcess: dispatchProcessCode,\n        hidePrinted: '',\n        useFilterInvoicesString: false,\n        sort: filters?.getData?.('sort'),\n        externalIds: []\n      });\n      if (period && isDispatchProcess) {\n        listFilters.dispatchDate = period.date;\n        listFilters.dispatchDateZ = period.dateZ;\n      } else {\n        listFilters.dispatchDate = '';\n        listFilters.dispatchDateZ = '';\n      }\n      return listFilters;\n    },\n    /**\n     * Dispatch list filters for process emails, without document keys.\n     * @param {Object} args\n     * @param {Object} args.filters\n     * @param {Object} args.dispatchProcess\n     * @param {Object} [args.period]\n     * @returns {Object}\n     */\n    buildProcessEmailListFilters({\n      filters,\n      dispatchProcess,\n      period\n    } = {}) {\n      const listFilters = this.buildDispatchListScopeFilters({\n        filters,\n        dispatchProcess,\n        period\n      });\n      return R.omit(['docKeys'], listFilters);\n    },\n    /**\n     * One page of the dispatch list, for the email preview table.\n     * @param {Object} args\n     * @param {Object} args.filters\n     * @param {Object} args.dispatchProcess\n     * @param {Object} [args.period]\n     * @param {number} [args.page]\n     * @param {number} [args.count]\n     * @returns {Object}\n     */\n    buildProcessEmailPreviewFilters({\n      filters,\n      dispatchProcess,\n      period,\n      page,\n      count\n    } = {}) {\n      const listFilters = this.buildProcessEmailListFilters({\n        filters,\n        dispatchProcess,\n        period\n      });\n      const previewPage = Number(page) || 1;\n      const previewPageSize = Number(count) || this.processEmailPreviewPageSize;\n      return R.mergeRight(listFilters, {\n        page: previewPage,\n        count: previewPageSize\n      });\n    },\n    /**\n     * Send-all body: the preview filters and the preview total.\n     * @param {Object} args\n     * @param {Object} args.filters\n     * @param {Object} args.dispatchProcess\n     * @param {Object} [args.period]\n     * @param {number} args.expectedCount\n     * @param {string} [args.subject]\n     * @param {string} [args.message]\n     * @param {boolean} [args.useDefaultsDispatchedEmailEstimatedTransporterArrivalDate]\n     * @param {boolean} [args.dispatchedEmailHasEstimateTransporterArrivalDate]\n     * @param {number} [args.dispatchedEmailEstimateTransporterArrivalDaysFromDispatch]\n     * @param {boolean} [args.dispatchedEmailTransporterArrivalDateSkipWeekends]\n     * @returns {Object}\n     */\n    buildProcessEmailSendAllPayload({\n      filters,\n      dispatchProcess,\n      period,\n      expectedCount,\n      subject,\n      message,\n      useDefaultsDispatchedEmailEstimatedTransporterArrivalDate,\n      dispatchedEmailHasEstimateTransporterArrivalDate,\n      dispatchedEmailEstimateTransporterArrivalDaysFromDispatch,\n      dispatchedEmailTransporterArrivalDateSkipWeekends\n    } = {}) {\n      const listFilters = this.buildProcessEmailListFilters({\n        filters,\n        dispatchProcess,\n        period\n      });\n      const sendFilters = R.mergeRight(listFilters, {\n        page: 1\n      });\n      const previewCount = Number(expectedCount) || 0;\n      const arrivalDays = Number(dispatchedEmailEstimateTransporterArrivalDaysFromDispatch) || 0;\n      return {\n        filters: sendFilters,\n        expectedCount: previewCount,\n        subject: subject || '',\n        message: message || '',\n        useDefaultsDispatchedEmailEstimatedTransporterArrivalDate,\n        dispatchedEmailHasEstimateTransporterArrivalDate,\n        dispatchedEmailEstimateTransporterArrivalDaysFromDispatch: arrivalDays,\n        dispatchedEmailTransporterArrivalDateSkipWeekends\n      };\n    },\n    /**\n     * Whether this dispatch row has an address to mail.\n     * @param {Object} documentRow\n     * @returns {boolean}\n     */\n    hasProcessEmailAddress(documentRow) {\n      const email = readDispatchDocumentData(documentRow)?.email;\n      return RA.isNotNilOrEmpty(email);\n    },\n    /**\n     * Keys of the checked dispatch rows.\n     * @param {Object[]} selectedDocuments\n     * @returns {string[]}\n     */\n    readSelectedDocumentKeys(selectedDocuments = []) {\n      return R.pipe(RA.ensureArray, R.map(documentRow => readDispatchDocumentData(documentRow)?._key || ''), R.reject(RA.isNilOrEmpty))(selectedDocuments);\n    },\n    /**\n     * Send body for checked rows. Document keys are the selection.\n     * @param {Object} args\n     * @param {Object} args.filters\n     * @param {Object} args.dispatchProcess\n     * @param {Object} [args.period]\n     * @param {Object[]} args.selectedDocuments\n     * @param {string} [args.subject]\n     * @param {string} [args.message]\n     * @param {boolean} [args.useDefaultsDispatchedEmailEstimatedTransporterArrivalDate]\n     * @param {boolean} [args.dispatchedEmailHasEstimateTransporterArrivalDate]\n     * @param {number} [args.dispatchedEmailEstimateTransporterArrivalDaysFromDispatch]\n     * @param {boolean} [args.dispatchedEmailTransporterArrivalDateSkipWeekends]\n     * @returns {Object}\n     */\n    buildProcessEmailSendSelectedPayload({\n      filters,\n      dispatchProcess,\n      period,\n      selectedDocuments,\n      subject,\n      message,\n      useDefaultsDispatchedEmailEstimatedTransporterArrivalDate,\n      dispatchedEmailHasEstimateTransporterArrivalDate,\n      dispatchedEmailEstimateTransporterArrivalDaysFromDispatch,\n      dispatchedEmailTransporterArrivalDateSkipWeekends\n    } = {}) {\n      const listFilters = this.buildProcessEmailListFilters({\n        filters,\n        dispatchProcess,\n        period\n      });\n      const documentsWithEmail = R.filter(documentRow => {\n        return this.hasProcessEmailAddress(documentRow);\n      })(RA.ensureArray(selectedDocuments));\n      const docKeys = this.readSelectedDocumentKeys(documentsWithEmail);\n      const arrivalDays = Number(dispatchedEmailEstimateTransporterArrivalDaysFromDispatch) || 0;\n      return {\n        filters: listFilters,\n        docKeys,\n        subject: subject || '',\n        message: message || '',\n        useDefaultsDispatchedEmailEstimatedTransporterArrivalDate,\n        dispatchedEmailHasEstimateTransporterArrivalDate,\n        dispatchedEmailEstimateTransporterArrivalDaysFromDispatch: arrivalDays,\n        dispatchedEmailTransporterArrivalDateSkipWeekends\n      };\n    },\n    /**\n     * Fields shown on one row of the dispatch email preview table.\n     * @param {Object} documentRow\n     * @returns {Object}\n     */\n    readProcessEmailPreview(documentRow) {\n      const rowData = readDispatchDocumentData(documentRow);\n      return R.pick(processEmailPreviewFields, rowData);\n    },\n    /**\n     * One page of emails for the dispatch send preview.\n     * @param {Object} filters\n     * @returns {Promise<Object>}\n     */\n    previewProcessEmailsTask: (0, _emberConcurrency.task)(function* (filters) {\n      const response = yield this.server.call('POST', 'api/protected/documents/emails/process/preview', {\n        filters\n      });\n      return response?.data || {};\n    }),\n    /**\n     * Send process emails for the checked documents.\n     * @param {Object} payload\n     * @returns {Promise<Object>}\n     */\n    sendSelectedProcessEmailsTask: (0, _emberConcurrency.task)(function* (payload) {\n      return yield this.server.call('PUT', 'api/protected/documents/emails/process', payload);\n    }),\n    /**\n     * Send process emails for every document matching the preview filters.\n     * @param {Object} payload\n     * @returns {Promise<Object>}\n     */\n    sendAllProcessEmailsTask: (0, _emberConcurrency.task)(function* (payload) {\n      return yield this.server.call('PUT', 'api/protected/documents/emails/process/all', payload);\n    }),\n    /**\n     * Filters, checked keys, and carrier print settings for one Print All request.\n     * Checked rows send keys only. Otherwise the API loads the list filter scope.\n     * @param {Object} args\n     * @param {Object} args.filters\n     * @param {Object} args.dispatchProcess\n     * @param {Object} [args.period]\n     * @param {Object[]} [args.selectedDocuments]\n     * @param {Object[]} [args.carrierSettings]\n     * @param {boolean} [args.printWaybills]\n     * @returns {Object}\n     */\n    buildSidebarPrintBatchRequest({\n      filters,\n      dispatchProcess,\n      period,\n      selectedDocuments = [],\n      carrierSettings = [],\n      printWaybills = true\n    } = {}) {\n      const requestFilters = this.buildDispatchListScopeFilters({\n        filters,\n        dispatchProcess,\n        period\n      });\n      const dispatchProcessCode = requestFilters.dispatchProcess;\n      const selected = R.pipe(RA.ensureArray, R.map(documentRow => {\n        const rowData = readDispatchDocumentData(documentRow);\n        return {\n          _key: rowData?._key || '',\n          docType: rowData?.docType || 'sales',\n          docName: rowData?.docName || ''\n        };\n      }), R.filter(row => RA.isNotNilOrEmpty(row._key)))(selectedDocuments);\n      return {\n        filters: requestFilters,\n        selected,\n        dispatchProcess: dispatchProcessCode,\n        carrierSettings,\n        printWaybills\n      };\n    },\n    /**\n     * Ask whether Print All should confirm before creating waybills.\n     * @param {Object} printBatchRequest\n     * @returns {Promise<Object>}\n     */\n    readPrintBatchNeedsConfirmTask: (0, _emberConcurrency.task)(function* (printBatchRequest = {}) {\n      const response = yield this.server.call('POST', 'api/protected/dispatch/print-batch/needs-confirm', printBatchRequest);\n      if (response?.needsConfirm === true || response?.needsConfirm === false) {\n        return response;\n      }\n      return response?.data || response;\n    }),\n    /**\n     * Run Print All on the API. The response body is the print batch.\n     * @param {Object} printBatchRequest\n     * @returns {Promise<Object>}\n     */\n    runSidebarPrintBatchTask: (0, _emberConcurrency.task)(function* (printBatchRequest = {}) {\n      const response = yield this.server.call('POST', 'api/protected/dispatch/print-batch', printBatchRequest);\n      if (response?.carriers) {\n        return response;\n      }\n      return response?.data || response;\n    }),\n    /**\n     * Read active concurrent Print All claim for a dispatch process (Dragonfly via API).\n     * @param {string} dispatchProcessCode\n     * @returns {Object|null}\n     */\n    fetchSidebarPrintBatchClaimTask: (0, _emberConcurrency.task)(function* (dispatchProcessCode = '') {\n      if (RA.isNilOrEmpty(dispatchProcessCode)) {\n        return null;\n      }\n      try {\n        return yield this.server.call('GET', `api/protected/dispatch/print-batch/claim/${encodeURIComponent(dispatchProcessCode)}`);\n      } catch (error) {\n        return null;\n      }\n    }),\n    /**\n     * Sidebar copy when another Print All batch owns docs for this process.\n     * @param {Object|null} claim\n     * @returns {string}\n     */\n    buildSidebarPrintBatchClaimReport(claim = null) {\n      if (RA.isNilOrEmpty(claim?.batchId)) {\n        return '';\n      }\n      const dispatchProcess = claim.dispatchProcess || '';\n      const docCount = Number(claim.docCount) || 0;\n      const batchIdShort = R.take(8, String(claim.batchId));\n      const actorName = claim.actor?.displayName || '';\n      const actorLabel = RA.isNotNilOrEmpty(actorName) ? `${actorName} ` : '';\n      return `Ignored: ${actorLabel}batch ${batchIdShort} printing ${docCount} / ${dispatchProcess}`;\n    },\n    /**\n     * Print All modal tabs: one per carrier in sidebar order, then picking list and delivery notes.\n     * @param {Object} args\n     * @param {Object} args.printBatch - response from runSidebarPrintBatchTask\n     * @param {string[]} args.sidebarTransporterExtensions - carriers in the order the sidebar lists them\n     * @param {boolean} [args.includeCarrierTabs]\n     * @param {boolean} [args.includePickingList]\n     * @param {boolean} [args.includeDeliveryNotes]\n     * @returns {Object[]}\n     */\n    buildPrintBatchTabs({\n      printBatch = {},\n      sidebarTransporterExtensions = [],\n      includeCarrierTabs = true,\n      includePickingList = true,\n      includeDeliveryNotes = true\n    } = {}) {\n      const readSidebarPosition = carrier => {\n        const sidebarPosition = R.indexOf(carrier?.transporterExtension, sidebarTransporterExtensions);\n        if (sidebarPosition === -1) {\n          return sidebarTransporterExtensions.length;\n        }\n        return sidebarPosition;\n      };\n      const carriers = includeCarrierTabs ? printBatch?.carriers || [] : [];\n      const carrierTabs = R.pipe(R.sortBy(readSidebarPosition), R.map(carrier => {\n        const transporterExtension = carrier?.transporterExtension || '';\n        const unsuccessful = carrier?.unsuccessful || [];\n        const failed = carrier?.status === 'error';\n        return {\n          value: transporterExtension,\n          kind: 'waybill',\n          label: transporterExtension,\n          transporterExtension,\n          documentCount: Number(carrier?.successfulCount) || 0,\n          hasIssues: failed || RA.isNotNilOrEmpty(unsuccessful),\n          failed,\n          error: carrier?.error || '',\n          unsuccessful,\n          downloads: carrier?.downloads || []\n        };\n      }))(carriers);\n      const printDocumentCount = R.length(printBatch?.documents || []);\n      const documentTabDefinitions = R.filter(documentTab => {\n        if (documentTab.kind === 'pickingList') {\n          return includePickingList;\n        }\n        if (documentTab.kind === 'deliveryNotes') {\n          return includeDeliveryNotes;\n        }\n        return true;\n      })([{\n        value: 'pickingList',\n        kind: 'pickingList',\n        label: 'picking list',\n        documentCount: printDocumentCount\n      }, {\n        value: 'deliveryNotes',\n        kind: 'deliveryNotes',\n        label: 'delivery notes',\n        documentCount: printDocumentCount\n      }]);\n      const documentTabs = R.map(documentTab => {\n        return this.applyDocumentPrintBatchStrategy(documentTab);\n      })(documentTabDefinitions);\n      return R.concat(carrierTabs, documentTabs);\n    },\n    /**\n     * Copy the picking list or delivery notes print component onto a tab.\n     * @param {Object} printBatchTab\n     * @returns {Object}\n     */\n    applyDocumentPrintBatchStrategy(printBatchTab = {}) {\n      const documentPrintStrategy = documentPrintBatchStrategies[printBatchTab?.kind];\n      if (!documentPrintStrategy) {\n        return printBatchTab;\n      }\n      return R.mergeRight(printBatchTab, documentPrintStrategy);\n    },\n    /**\n     * Reprint stored 7-11 waybills and open each printable page.\n     * @param {Object} args\n     * @param {string} args.transporterExtension - seven-eleven or payuni-seven-eleven\n     * @param {Object} [args.filters]\n     * @param {Object} [args.carrierSettings] - the carrier's sidebar settings model\n     * @returns {Object[]} pages from buildSevenElevenWaybillPages\n     */\n    redownloadSevenElevenWaybillPagesTask: (0, _emberConcurrency.task)(function* ({\n      transporterExtension = '',\n      filters = {},\n      carrierSettings = {}\n    } = {}) {\n      const waybillsPerPageC2C = Number(carrierSettings?.waybillsPerPageC2C) || 1;\n      const waybillsPerPageB2C = Number(carrierSettings?.waybillsPerPageB2C) || 4;\n      const response = yield this.server.call('POST', `api/protected/extensions/apps/tw/transporters/${transporterExtension}/waybill/redownload`, {\n        transporterExtension,\n        filters,\n        waybillsPerPage: waybillsPerPageC2C,\n        filtersData: {\n          tw_shipping_payuni: {\n            sevenEleven: {\n              waybillsPerPageC2C,\n              waybillsPerPageB2C\n            }\n          }\n        }\n      });\n      const redownloadResult = response?.data || {};\n      const transporterHtmlData = redownloadResult.transporterHtmlData || redownloadResult;\n      const waybillPages = this.buildSevenElevenWaybillPages({\n        transporterExtension,\n        transporterHtmlData,\n        waybillsPerPageC2C\n      });\n      R.forEach(waybillPage => {\n        this.openSevenElevenWaybillPageWindow(waybillPage);\n      })(waybillPages);\n      return waybillPages;\n    }),\n    /**\n     * Download 7-11 waybill HTML for documents that already have waybills, split into printable pages.\n     * @param {Object} args\n     * @param {string} args.transporterExtension - seven-eleven or payuni-seven-eleven\n     * @param {Object[]} args.documents - document models\n     * @param {Object} [args.carrierSettings] - the carrier's sidebar settings model\n     * @returns {Object[]} pages from buildSevenElevenWaybillPages\n     */\n    fetchSevenElevenWaybillPagesTask: (0, _emberConcurrency.task)(function* ({\n      transporterExtension = '',\n      documents = [],\n      carrierSettings = {}\n    } = {}) {\n      if (RA.isNilOrEmpty(documents)) {\n        return [];\n      }\n      const waybillsPerPageC2C = carrierSettings?.waybillsPerPageC2C || 1;\n      const filtersData = {\n        tw_shipping_payuni: {\n          sevenEleven: {\n            waybillsPerPageC2C: carrierSettings?.waybillsPerPageC2C,\n            waybillsPerPageB2C: carrierSettings?.waybillsPerPageB2C\n          }\n        }\n      };\n      const response = yield this.hctFetchWaybillRecordTask.perform({\n        transporterExtension,\n        documents,\n        waybillsPerPage: waybillsPerPageC2C,\n        filtersData,\n        shouldThrowError: true\n      });\n      return this.buildSevenElevenWaybillPages({\n        transporterExtension,\n        transporterHtmlData: response?.data,\n        waybillsPerPageC2C\n      });\n    }),\n    /**\n     * One printable page per transporter type and account from a 7-11 waybill download.\n     * @param {Object} args\n     * @param {string} args.transporterExtension\n     * @param {Object} args.transporterHtmlData - waybill HTML grouped by type (C2C, B2C), then account (normal, frozen)\n     * @param {number} [args.waybillsPerPageC2C=1]\n     * @returns {{ title: string, html: string }[]}\n     */\n    buildSevenElevenWaybillPages({\n      transporterExtension = '',\n      transporterHtmlData = {},\n      waybillsPerPageC2C = 1\n    } = {}) {\n      const printsOneC2CWaybillPerPage = Number(waybillsPerPageC2C) === 1;\n      const buildPage = (transporterType, transporterAccount, batch) => {\n        const mergedHtml = this.mergeSevenElevenWaybillBatch({\n          batch,\n          transporterType\n        });\n        if (RA.isNilOrEmpty(mergedHtml)) {\n          return null;\n        }\n        const splitsC2CWaybills = transporterType === 'C2C' && printsOneC2CWaybillPerPage;\n        const html = splitsC2CWaybills ? this.convertSevenElevenWaybillsToOnePerPage(mergedHtml) : mergedHtml;\n        const titleParts = [transporterExtension, transporterType.toLowerCase(), transporterAccount.toLowerCase()];\n        const title = R.pipe(R.map(titlePart => this.intl.t(titlePart)), R.join(' - '))(titleParts);\n        return {\n          title,\n          html,\n          provider: transporterExtension,\n          transporterType\n        };\n      };\n      return R.pipe(R.toPairs, R.chain(([transporterType, batchByTransporterAccount]) => {\n        return R.pipe(R.toPairs, R.map(([transporterAccount, batch]) => buildPage(transporterType, transporterAccount, batch)))(batchByTransporterAccount || {});\n      }), R.reject(RA.isNilOrEmpty))(transporterHtmlData || {});\n    },\n    /**\n     * Merge the 7-11 waybill HTML pages of one transporter type into a single document.\n     * @param {Object} args\n     * @param {string|string[]} args.batch\n     * @param {string} args.transporterType - C2C or B2C\n     * @returns {string}\n     */\n    mergeSevenElevenWaybillBatch({\n      batch,\n      transporterType\n    }) {\n      const waybillPages = RA.ensureArray(batch);\n      let htmlElement;\n      if (transporterType === 'C2C') {\n        htmlElement = this._mergeSevenElevenWaybillHtml({\n          waybillPages,\n          mainContainerSelector: '#Panel1'\n        });\n        htmlElement = this._useSevenElevenC2CAbsoluteUrls(htmlElement);\n      } else if (transporterType === 'B2C') {\n        htmlElement = this._mergeSevenElevenWaybillHtml({\n          waybillPages,\n          mainContainerSelector: '.mainContent'\n        });\n      }\n      return htmlElement?.outerHTML || '';\n    },\n    _mergeSevenElevenWaybillHtml({\n      waybillPages,\n      mainContainerSelector\n    }) {\n      return R.reduce((mergedHtmlElement, html) => {\n        if (!mergedHtmlElement) {\n          const mainHtmlElement = document.createElement('html');\n          mainHtmlElement.innerHTML = html;\n          return mainHtmlElement;\n        }\n        const mainContainer = mergedHtmlElement.querySelector(mainContainerSelector);\n        const htmlElement = document.createElement('html');\n        htmlElement.innerHTML = html;\n        const childrenContainer = htmlElement.querySelector(mainContainerSelector);\n        if (!mainContainer || !childrenContainer) {\n          return mergedHtmlElement;\n        }\n        Array.from(childrenContainer.children).forEach(child => {\n          mainContainer.appendChild(child);\n        });\n        return mergedHtmlElement;\n      }, null)(waybillPages);\n    },\n    _useSevenElevenC2CAbsoluteUrls(htmlElement) {\n      if (!htmlElement) {\n        return htmlElement;\n      }\n      const linkElements = htmlElement.querySelectorAll('[src], [href]');\n      linkElements.forEach(linkElement => {\n        if (linkElement.hasAttribute('src')) {\n          const src = linkElement.getAttribute('src');\n          linkElement.src = `https://epayment.7-11.com.tw/C2C/C2CWeb/${src}`;\n        } else if (linkElement.hasAttribute('href')) {\n          const href = linkElement.getAttribute('href');\n          linkElement.href = `https://epayment.7-11.com.tw/C2C/C2CWeb/${href}`;\n        }\n      });\n      return htmlElement;\n    },\n    /**\n     * Put each C2C waybill on its own printed page.\n     * @param {string} html - merged C2C waybill HTML\n     * @returns {string}\n     */\n    convertSevenElevenWaybillsToOnePerPage(html) {\n      const htmlElement = document.createElement('html');\n      htmlElement.innerHTML = html;\n      const headElement = htmlElement.querySelector('head');\n      const style = document.createElement('style');\n      style.innerHTML = `\n    div#Panel1 > table > tbody > tr > td {\n        display: block !important;\n        border-style: none !important;\n    }\n    p {\n        page-break-after: avoid !important;\n    }\n    `;\n      headElement.appendChild(style);\n      const tdDivs = htmlElement.querySelectorAll('td > div');\n      tdDivs.forEach((tdDiv, index) => {\n        const td = tdDiv.parentElement;\n        let updatedStyle = 'break-after: avoid !important;';\n        const orgStyle = td.getAttribute('style');\n        if (orgStyle) {\n          updatedStyle = `${orgStyle}; break-after: avoid !important;`;\n        }\n        if (index < tdDivs.length - 1) {\n          updatedStyle += 'page-break-after: always !important;';\n        }\n        td.setAttribute('style', updatedStyle);\n      });\n      return htmlElement.outerHTML;\n    },\n    /**\n     * Reload waybill barcode images that failed, and add a retry button under any that still fail.\n     * Reloading sets a cache-busting img src. fetch() cannot read 7-Eleven barcodes because they\n     * do not send CORS headers.\n     * @param {Document} waybillDocument - popup or iframe document holding the waybills\n     * @param {Object} [options]\n     * @param {string} [options.provider] - transporter extension, e.g. payuni-seven-eleven\n     * @param {string} [options.transporterType] - C2C or B2C\n     * @returns {Promise<boolean>} true when every barcode loaded\n     */\n    async loadWaybillBarcodeImages(waybillDocument, {\n      provider = '',\n      transporterType = ''\n    } = {}) {\n      if (!waybillDocument) {\n        return false;\n      }\n      const popupWindow = waybillDocument.defaultView;\n      const waybillImages = Array.from(waybillDocument.querySelectorAll('img'));\n      const initiallyFailedImages = R.reject(image => this.isImageLoaded(image))(waybillImages);\n      if (RA.isNilOrEmpty(initiallyFailedImages)) {\n        this.removeWaybillRetryButtons(waybillDocument);\n        return true;\n      }\n      const initialLoadDurations = popupWindow ? R.map(image => this.getImageLoadDurationInMilliseconds({\n        popupWindow,\n        image\n      }))(initiallyFailedImages) : [];\n      await this.reloadImages(initiallyFailedImages);\n      const stillFailedImages = R.reject(image => this.isImageLoaded(image))(initiallyFailedImages);\n      if (popupWindow) {\n        // not awaited: the network probes in the report must not delay the caller\n        this.reportWaybillImageLoadFailure({\n          popupWindow,\n          provider,\n          transporterType,\n          totalImageCount: waybillImages.length,\n          initiallyFailedImages,\n          initialLoadDurations,\n          stillFailedImages\n        });\n      }\n      this.removeWaybillRetryButtons(waybillDocument);\n      if (RA.isNilOrEmpty(stillFailedImages)) {\n        return true;\n      }\n      if (popupWindow) {\n        this.addRefetchBarcodeButtons({\n          popupWindow,\n          failedImages: stillFailedImages,\n          printsWhenRecovered: false\n        });\n      }\n      return false;\n    },\n    removeWaybillRetryButtons(waybillDocument) {\n      waybillDocument.querySelectorAll('.retry-btn-container').forEach(retryButtonContainer => {\n        retryButtonContainer.remove();\n      });\n    },\n    /**\n     * Print the waybill popup once every barcode / QR code image has loaded.\n     * Failed images are retried once automatically. Any failure is reported to Sentry\n     * so it can be diagnosed without asking the user for browser console logs.\n     * @param {Object} options\n     * @param {Window} options.popupWindow\n     * @param {string} options.provider - transporter extension, e.g. payuni-seven-eleven\n     * @param {string} options.transporterType - C2C or B2C\n     */\n    async printWhenWaybillImagesLoaded({\n      popupWindow,\n      provider,\n      transporterType\n    }) {\n      const waybillImages = Array.from(popupWindow.document.querySelectorAll('img'));\n      const initiallyFailedImages = R.reject(image => this.isImageLoaded(image))(waybillImages);\n      if (RA.isNilOrEmpty(initiallyFailedImages)) {\n        popupWindow.print();\n        return;\n      }\n      const initialLoadDurations = R.map(image => this.getImageLoadDurationInMilliseconds({\n        popupWindow,\n        image\n      }))(initiallyFailedImages);\n      await this.reloadImages(initiallyFailedImages);\n      const stillFailedImages = R.reject(image => this.isImageLoaded(image))(initiallyFailedImages);\n\n      // not awaited: the network probes in the report must not delay the alert or print\n      this.reportWaybillImageLoadFailure({\n        popupWindow,\n        provider,\n        transporterType,\n        totalImageCount: waybillImages.length,\n        initiallyFailedImages,\n        initialLoadDurations,\n        stillFailedImages\n      });\n      if (popupWindow.closed) {\n        return;\n      }\n      if (RA.isNilOrEmpty(stillFailedImages)) {\n        popupWindow.print();\n        return;\n      }\n      this.addRefetchBarcodeButtons({\n        popupWindow,\n        failedImages: stillFailedImages\n      });\n      popupWindow.alert(this.intl.t('error fetching barcode'));\n    },\n    isImageLoaded(image) {\n      return image.complete && image.naturalWidth > 0;\n    },\n    /**\n     * Reload images by giving each one a fresh, cache-busting src.\n     * Unlike fetch(), an <img> request does not need CORS headers from 7-Eleven.\n     * @param {HTMLImageElement[]} images\n     * @returns {Promise<boolean[]>} whether each image loaded\n     */\n    reloadImages(images) {\n      const reloadPromises = R.map(image => this.reloadImage(image))(images);\n      return Promise.all(reloadPromises);\n    },\n    reloadImage(image) {\n      if (!image.dataset.originalSrc) {\n        image.dataset.originalSrc = image.getAttribute('src') || '';\n      }\n      const originalSrc = image.dataset.originalSrc;\n      if (!originalSrc) {\n        return Promise.resolve(false);\n      }\n      const reloadTimeoutInMilliseconds = 20000;\n      return new Promise(resolve => {\n        const timeoutId = setTimeout(() => resolve(false), reloadTimeoutInMilliseconds);\n        const resolveReload = isLoaded => {\n          clearTimeout(timeoutId);\n          resolve(isLoaded);\n        };\n        image.onload = () => resolveReload(true);\n        image.onerror = () => resolveReload(false);\n        const querySeparator = originalSrc.includes('?') ? '&' : '?';\n        image.src = `${originalSrc}${querySeparator}retryAt=${Date.now()}`;\n      });\n    },\n    /**\n     * Add a refetch button under each failed image. Clicking it reloads every image\n     * that is still missing and, for a print popup, prints once all of them have loaded.\n     * @param {Object} options\n     * @param {Window} options.popupWindow\n     * @param {HTMLImageElement[]} options.failedImages\n     * @param {boolean} [options.printsWhenRecovered=true] - print after a successful refetch\n     */\n    addRefetchBarcodeButtons({\n      popupWindow,\n      failedImages,\n      printsWhenRecovered = true\n    }) {\n      const retryButtonContainerByImage = new Map();\n      const retryFailedImages = async () => {\n        const imagesToRetry = Array.from(retryButtonContainerByImage.keys());\n        await this.reloadImages(imagesToRetry);\n        const recoveredImages = R.filter(image => this.isImageLoaded(image))(imagesToRetry);\n        R.forEach(image => {\n          retryButtonContainerByImage.get(image).remove();\n          retryButtonContainerByImage.delete(image);\n        })(recoveredImages);\n        if (retryButtonContainerByImage.size === 0) {\n          if (printsWhenRecovered) {\n            popupWindow.print();\n          }\n          return;\n        }\n        popupWindow.alert(this.intl.t('error fetching barcode'));\n      };\n      R.forEach(image => {\n        const retryButtonContainer = popupWindow.document.createElement('div');\n        retryButtonContainer.className = 'retry-btn-container';\n        const retryButton = popupWindow.document.createElement('button');\n        retryButton.textContent = this.intl.t('refetch barcode');\n        retryButton.className = 'retry-btn';\n        retryButton.style.color = 'red';\n        retryButton.style.marginTop = '10px';\n        retryButton.onclick = retryFailedImages;\n        retryButtonContainer.appendChild(retryButton);\n        image.parentElement.appendChild(retryButtonContainer);\n        retryButtonContainerByImage.set(image, retryButtonContainer);\n      })(failedImages);\n    },\n    /**\n     * Request duration of an image from the popup's resource timing.\n     * Cross-origin entries still expose the duration, which separates a blocked request\n     * (no entry or ~0ms) from a timeout (very long) and a fast error response.\n     * @returns {number|null} null when the browser recorded no request\n     */\n    getImageLoadDurationInMilliseconds({\n      popupWindow,\n      image\n    }) {\n      const resourceTimingEntries = popupWindow.performance?.getEntriesByName?.(image.src) || [];\n      const lastResourceTimingEntry = R.last(resourceTimingEntries);\n      if (!lastResourceTimingEntry) {\n        return null;\n      }\n      return Math.round(lastResourceTimingEntry.duration);\n    },\n    /**\n     * Check whether the browser can reach a URL at all.\n     * A no-cors fetch resolves with an opaque response whenever the server answers,\n     * and rejects only on network-level failures (DNS, TLS, firewall, blocker, offline).\n     * @param {string} url\n     * @returns {Promise<'reachable'|'network-error'|'timeout'|'no-url'>}\n     */\n    async probeUrlReachability(url) {\n      if (!url) {\n        return 'no-url';\n      }\n      const probeTimeoutInMilliseconds = 20000;\n      const abortController = new AbortController();\n      const timeoutId = setTimeout(() => abortController.abort(), probeTimeoutInMilliseconds);\n      try {\n        await fetch(url, {\n          mode: 'no-cors',\n          cache: 'no-store',\n          signal: abortController.signal\n        });\n        return 'reachable';\n      } catch (error) {\n        if (error?.name === 'AbortError') {\n          return 'timeout';\n        }\n        return 'network-error';\n      } finally {\n        clearTimeout(timeoutId);\n      }\n    },\n    /**\n     * Summarise probe results into one failure kind for Sentry grouping.\n     * @param {string[]} probeResults\n     * @returns {string}\n     */\n    classifyWaybillImageFailure(probeResults) {\n      if (RA.isNilOrEmpty(probeResults)) {\n        return 'recovered-on-retry';\n      }\n      const uniqueProbeResults = R.uniq(probeResults);\n      if (uniqueProbeResults.length > 1) {\n        return 'mixed';\n      }\n      const probeResultToFailureKind = {\n        reachable: 'bad-response',\n        'network-error': 'network-error',\n        timeout: 'timeout'\n      };\n      return probeResultToFailureKind[R.head(uniqueProbeResults)] || 'unknown';\n    },\n    /**\n     * Send one Sentry event describing why waybill images in a popup failed to load.\n     * @param {Object} options\n     * @param {Window} options.popupWindow\n     * @param {string} options.provider\n     * @param {string} options.transporterType\n     * @param {number} options.totalImageCount\n     * @param {HTMLImageElement[]} options.initiallyFailedImages\n     * @param {Array<number|null>} options.initialLoadDurations - same order as initiallyFailedImages\n     * @param {HTMLImageElement[]} options.stillFailedImages - failed again after the automatic retry\n     */\n    async reportWaybillImageLoadFailure({\n      popupWindow,\n      provider,\n      transporterType,\n      totalImageCount,\n      initiallyFailedImages,\n      initialLoadDurations,\n      stillFailedImages\n    }) {\n      try {\n        const stillFailedImageUrls = R.map(image => this.getOriginalImageUrl(image))(stillFailedImages);\n        const stylesheetUrl = popupWindow.document.querySelector('link[rel=\"stylesheet\"]')?.href || '';\n        const [stylesheetProbeResult, ...imageProbeResults] = await Promise.all(R.map(url => this.probeUrlReachability(url))([stylesheetUrl, ...stillFailedImageUrls]));\n        const waybillImageFailureReport = this.buildWaybillImageFailureReport({\n          provider,\n          transporterType,\n          totalImageCount,\n          initiallyFailedImages,\n          initialLoadDurations,\n          stillFailedImageUrls,\n          imageProbeResults,\n          stylesheetProbeResult\n        });\n        Sentry.captureMessage('waybill images failed to load', waybillImageFailureReport);\n      } catch (error) {\n        // diagnostics must never block printing\n        Sentry.captureException(error);\n      }\n    },\n    /**\n     * Build the Sentry capture context for a waybill image failure.\n     * Image lists are flattened to strings because Sentry truncates deeply nested context.\n     * @param {Object} options\n     * @param {string} options.provider\n     * @param {string} options.transporterType\n     * @param {number} options.totalImageCount\n     * @param {HTMLImageElement[]} options.initiallyFailedImages\n     * @param {Array<number|null>} options.initialLoadDurations - same order as initiallyFailedImages\n     * @param {string[]} options.stillFailedImageUrls\n     * @param {string[]} options.imageProbeResults - same order as stillFailedImageUrls\n     * @param {string} options.stylesheetProbeResult\n     * @returns {Object}\n     */\n    buildWaybillImageFailureReport({\n      provider,\n      transporterType,\n      totalImageCount,\n      initiallyFailedImages,\n      initialLoadDurations,\n      stillFailedImageUrls,\n      imageProbeResults,\n      stylesheetProbeResult\n    }) {\n      const failureKind = this.classifyWaybillImageFailure(imageProbeResults);\n      const isRecoveredOnRetry = RA.isNilOrEmpty(stillFailedImageUrls);\n      const maxReportedImages = 10;\n      const failedImagesAfterRetry = R.pipe(R.zip(stillFailedImageUrls), R.take(maxReportedImages), R.map(([url, probeResult]) => `${probeResult} ${url}`))(imageProbeResults);\n      const initialFailures = R.pipe(R.zip(initiallyFailedImages), R.take(maxReportedImages), R.map(([image, durationInMilliseconds]) => {\n        const durationLabel = R.isNil(durationInMilliseconds) ? 'no-request' : `${durationInMilliseconds}ms`;\n        return `${durationLabel} ${this.getOriginalImageUrl(image)}`;\n      }))(initialLoadDurations);\n      return {\n        level: isRecoveredOnRetry ? 'info' : 'warning',\n        fingerprint: ['waybill-images-failed-to-load', failureKind],\n        tags: {\n          waybillProvider: provider,\n          waybillTransporterType: transporterType,\n          waybillImageFailureKind: failureKind,\n          waybillImagesRecoveredOnRetry: isRecoveredOnRetry\n        },\n        contexts: {\n          waybillImages: {\n            totalImageCount,\n            initiallyFailedImageCount: initiallyFailedImages.length,\n            stillFailedImageCount: stillFailedImageUrls.length,\n            stylesheetProbeResult,\n            isOnline: window.navigator?.onLine,\n            effectiveConnectionType: window.navigator?.connection?.effectiveType || '',\n            failedImagesAfterRetry,\n            initialFailures\n          }\n        }\n      };\n    },\n    /**\n     * The image URL from the waybill HTML, without the retry cache buster.\n     * @param {HTMLImageElement} image\n     * @returns {string}\n     */\n    getOriginalImageUrl(image) {\n      return image.dataset.originalSrc || image.getAttribute('src') || '';\n    },\n    /**\n     * Open one 7-11 waybill page in a new window and print it once its barcodes load.\n     * @param {Object} page - from buildSevenElevenWaybillPages\n     * @returns {Window|null}\n     */\n    openSevenElevenWaybillPageWindow(page = {}) {\n      if (RA.isNilOrEmpty(page?.html)) {\n        return null;\n      }\n      const popupWindow = window.open('', '_blank', 'width=800,height=600');\n      if (!popupWindow) {\n        window.alert(this.intl.t('please allow popups to open'));\n        return null;\n      }\n      popupWindow.document.write(page.html);\n      if (page.title) {\n        popupWindow.document.title = page.title;\n      }\n      popupWindow.document.close();\n      popupWindow.addEventListener('load', () => {\n        this.printWhenWaybillImagesLoaded({\n          popupWindow,\n          provider: page.provider || '',\n          transporterType: page.transporterType || ''\n        });\n      });\n      return popupWindow;\n    },\n    /**\n     * Printed status pill to open on. Waybills still to print open on unprinted: not yet dispatched processes that\n     * allow printing of waybills, and dispatched today or later. Everything else opens on all.\n     * @param {Object} args\n     * @param {Object} args.dispatchProcess\n     * @param {Object} [args.period] - selected dispatch date from getPeriod\n     * @returns {string} printedStatus filter value\n     */\n    readDefaultPrintedStatus({\n      dispatchProcess,\n      period\n    } = {}) {\n      if (!dispatchProcess?._data?.isDispatched) {\n        return dispatchProcess?._data?.allowPrintAllWaybills ? 'unprinted' : '';\n      }\n      const dispatchDate = period?.date || '';\n      const todayDate = this.getPeriod().date;\n      const isDispatchedTodayOrLater = RA.isNotNilOrEmpty(dispatchDate) && dispatchDate >= todayDate;\n      if (isDispatchedTodayOrLater) {\n        return 'unprinted';\n      }\n      return '';\n    },\n    /**\n     * Count for the active print-status pill (process + date scope; ignores transporter/search).\n     * @param {Object} dashData - summary dashData from API\n     * @param {string} [printedStatus=''] - filters printedStatus value\n     * @returns {number|null} null when pill counts are missing\n     */\n    readDispatchProcessPrintedStatusPillTotal(dashData, printedStatus = '') {\n      const printedStatusCounts = this.readDispatchProcessPrintedStatusCounts(dashData);\n      if (RA.isNilOrEmpty(printedStatusCounts)) {\n        return null;\n      }\n      if (printedStatus === 'unprinted') {\n        return Number(printedStatusCounts.unprinted) || 0;\n      }\n      if (printedStatus === 'hasIssues') {\n        return Number(printedStatusCounts.hasIssues) || 0;\n      }\n      if (printedStatus === 'printed') {\n        return Number(printedStatusCounts.printed) || 0;\n      }\n      return Number(printedStatusCounts.all) || 0;\n    },\n    /**\n     * Document count for the open dispatch panel list and pagination.\n     * Uses summary inView scope — same filters as the list and transporter bar.\n     * @param {Object} dashData - summary dashData from API\n     * @returns {number}\n     */\n    readDispatchPanelListTotal(dashData) {\n      const dashDataInView = this.readDispatchDashDataInView(dashData);\n      return Number(dashDataInView?.total) || 0;\n    },\n    /**\n     * Document count for the dispatch process title badge (process scope; matches sidebar and All pill).\n     * @param {Object} dashData - summary dashData from API\n     * @returns {number}\n     */\n    readDispatchPanelHeaderTotal(dashData) {\n      const printedStatusCounts = this.readDispatchProcessPrintedStatusCounts(dashData);\n      return Number(printedStatusCounts?.all) || 0;\n    },\n    fetchDispatchSummaryTask: (0, _emberConcurrency.task)(function* ({\n      filterData\n    }) {\n      const method = 'POST';\n      const summaryPath = 'api/protected/dispatch/processes/summary';\n      const pillCountsPath = 'api/protected/dispatch/processes/summary/printed-status-counts';\n      const [summaryResponse, pillCountsResponse] = yield (0, _emberConcurrency.all)([this.server.call(method, summaryPath, filterData),\n      // Pill counts are optional while the companion API is unavailable.\n      this.server.call(method, pillCountsPath, filterData).catch(() => null)]);\n      const results = summaryResponse?.data || {};\n      const dispatchProcessFromPills = pillCountsResponse?.data?.dashData?.dispatchProcess;\n      if (RA.isNotNilOrEmpty(dispatchProcessFromPills)) {\n        results.dashData = results.dashData || {};\n        results.dashData.dispatchProcess = dispatchProcessFromPills;\n      }\n      return results;\n    }),\n    setFiltersBasedOnDispatchProcessModel({\n      filters,\n      model,\n      groupDocumentsByTransporter\n    }) {\n      if (RA.isNilOrEmpty(filters)) {\n        return;\n      }\n      if (RA.isNilOrEmpty(model)) {\n        return;\n      }\n      const sortBy = model?._data?.sortBy || 'none';\n      const sortByDirection = model?._data?.sortByDirection || 'DESC';\n      // const groupProductByTransporter  = model?._data?.groupProductByTransporter || false\n      filters.setData('sort', []); // reset => remove all sort first\n      if (groupDocumentsByTransporter) {\n        // use transporterLabel and account instead of transporterExtension?\n        filters.addSortNoModel('transporterLabel', 'ASC');\n        filters.addSortNoModel('transporterAccount', 'ASC');\n        filters.addSortNoModel('transporterAccountNumber', 'ASC');\n      }\n      filters.addSortNoModel(sortBy, sortByDirection);\n      const dateHeader = R.pipe(R_.dotPathOr([], 'crud.lists.dispatch-lists-date-header'), R.find(R.pathEq(['_data', 'value'], sortBy)))(this);\n      if (RA.isNotNilOrEmpty(dateHeader)) {\n        filters.setData('dateHeaderValue', dateHeader?._data?.value);\n        filters.setData('dateHeaderLabel', dateHeader?._data?.label);\n      }\n    },\n    /*\n     * Transporter dashboard — shared area input state (see shared-style.mdc).\n     * Entry points (pass `filters`; do not pluck `_data` in components):\n     * - readTransporterDashboardFilterState — flags for all consumers\n     * - prepareSummaryDashDataForTransporterDashboard — summary / aggregates / bar snapshot\n     * - buildTransporterBarDashDisplay — dashboard bar cards\n     * - resolvePrintScopeTotalInView — print sidebar denominator (active print-status pill total)\n     * - readDispatchProcessPrintedStatusPillTotal — pill count for printedStatus filter value\n     * - resolvePrintInfoDocumentCount — print sidebar numerator (selection or inView total)\n     * - buildDispatchPrintSidebarCounts — print button badges (selection or inView aggregates)\n     * - buildDashboardTransportersPayload — writing checkbox selection onto filters before fetch\n     */\n\n    /**\n     * Derive transporter-dashboard flags from dispatch filters (bar, print, summary, aggregates).\n     * @param {Object} filters - dispatch filters model\n     * @param {Object} [options]\n     * @param {string} [options.summaryProp='dashData'] - which summary target is being updated (only main dash refreshes frozen bar)\n     * @returns {Object}\n     */\n    readTransporterDashboardFilterState(filters, {\n      summaryProp = 'dashData'\n    } = {}) {\n      const dashboardTransporters = filters?.getData?.('dashboardTransporters') ?? filters?._data?.dashboardTransporters ?? [];\n      const searchQuery = String(filters?.getData?.('query') ?? filters?._data?.query ?? '').trim();\n      const hasSearchQuery = RA.isNotNilOrEmpty(searchQuery);\n      const hasDashboardTransportersFilter = this.hasDashboardTransportersFilter(dashboardTransporters);\n      const mayRefreshTransporterBarBaseline = summaryProp === 'dashData';\n      return {\n        dashboardTransporters,\n        searchQuery,\n        hasSearchQuery,\n        hasDashboardTransportersFilter,\n        useFrozenTransporterBar: hasDashboardTransportersFilter && !hasSearchQuery,\n        shouldRefreshTransporterBarSnapshot: mayRefreshTransporterBarBaseline && !hasDashboardTransportersFilter && !hasSearchQuery,\n        printedStatus: filters?.getData?.('printedStatus') ?? filters?._data?.printedStatus ?? ''\n      };\n    },\n    /**\n     * Apply transporter-dashboard filter rules to summary dashData (print aggregates + optional bar snapshot).\n     * @param {Object} args\n     * @param {Object} args.filters - dispatch filters model\n     * @param {Object} args.dashData - summary dashData from API\n     * @param {string} [args.summaryProp='dashData'] - summary property being written (see readTransporterDashboardFilterState)\n     * @returns {{ dashData: Object, transporterBarSnapshot: Object|null }}\n     */\n    prepareSummaryDashDataForTransporterDashboard({\n      filters,\n      dashData,\n      summaryProp = 'dashData'\n    }) {\n      const filterState = this.readTransporterDashboardFilterState(filters, {\n        summaryProp\n      });\n      const dashDataInView = this.readDispatchDashDataInView(dashData);\n      const allTransporters = dashDataInView?.transporters || [];\n      const transportersForPrint = R.filter(transporterRow => {\n        return this.transporterRowInDashboardSelection(transporterRow, filterState.dashboardTransporters);\n      })(allTransporters);\n      dashDataInView.packagesByTransporterExtension = this.buildPackagesByTransporterExtension(transportersForPrint);\n      const transporterBarSnapshot = filterState.shouldRefreshTransporterBarSnapshot ? this.buildTransporterBarSnapshotFromSummary(dashData) : null;\n      return {\n        dashData,\n        transporterBarSnapshot\n      };\n    },\n    buildTransporterBarSnapshotFromSummary(dashData) {\n      const dashDataInView = this.readDispatchDashDataInView(dashData);\n      return {\n        total: dashDataInView?.total,\n        packages: dashDataInView?.packages,\n        transporters: dashDataInView?.transporters\n      };\n    },\n    buildTransporterBarDashDisplay({\n      filters,\n      dashData,\n      dashDataTransporterBar\n    }) {\n      const filterState = this.readTransporterDashboardFilterState(filters);\n      const dashDataInView = this.readDispatchDashDataInView(dashData);\n      const shouldUseBaselineSnapshot = dashDataTransporterBar && (filterState.useFrozenTransporterBar || !filterState.hasSearchQuery && !filterState.hasDashboardTransportersFilter);\n      if (shouldUseBaselineSnapshot) {\n        return dashDataTransporterBar;\n      }\n      return {\n        total: dashDataInView?.total,\n        packages: dashDataInView?.packages,\n        transporters: dashDataInView?.transporters\n      };\n    },\n    /**\n     * Denominator for the print sidebar (e.g. “145 / 157”). Uses the active print-status pill total\n     * so transporter and search filters only change the numerator (inView.total).\n     * @returns {number}\n     */\n    resolvePrintScopeTotalInView({\n      filters,\n      dashData,\n      dashDataTransporterBar,\n      dispatchProcess,\n      dispatchProcessesByCount\n    }) {\n      const filterState = this.readTransporterDashboardFilterState(filters);\n      const pillTotal = this.readDispatchProcessPrintedStatusPillTotal(dashData, filterState.printedStatus);\n      if (pillTotal != null) {\n        return pillTotal;\n      }\n      const transporterBarDashData = this.buildTransporterBarDashDisplay({\n        filters,\n        dashData,\n        dashDataTransporterBar\n      });\n      const scopeTotal = Number(transporterBarDashData?.total) || 0;\n      if (scopeTotal > 0) {\n        return scopeTotal;\n      }\n      const dispatchProcessCode = dispatchProcess?._data?.code ?? '';\n      const dispatchProcessesByCountValue = dispatchProcessesByCount?._data?.[dispatchProcessCode]?.count;\n      return Number(dispatchProcessesByCountValue) || 0;\n    },\n    transporterDashboardRowKeys(transporterRows) {\n      const rows = transporterRows || [];\n      return R.map(row => this.transporterDashboardKey(row))(rows);\n    },\n    haveTransporterDashboardRowKeysChanged(previousRowKeys, nextRowKeys) {\n      return !R.equals(previousRowKeys || [], nextRowKeys || []);\n    },\n    transporterDashboardKey(transporterRow) {\n      const transporterLabel = transporterRow?.transporter ?? '';\n      if (RA.isNilOrEmpty(transporterLabel) && RA.isNilOrEmpty(transporterRow?.transporterKey)) {\n        return 'empty';\n      }\n      return [transporterRow?.transporterKey ?? '', transporterLabel, transporterRow?.transporterAccount ?? '', transporterRow?.transporterAccountNumber ?? ''].join(transporterDashboardKeyFieldSeparator);\n    },\n    transporterDashboardRowPayload(transporterRow) {\n      const transporterLabel = transporterRow?.transporter ?? '';\n      return {\n        onlyEmptyTransporter: RA.isNilOrEmpty(transporterLabel),\n        transporter: transporterLabel,\n        transporterKey: transporterRow?.transporterKey ?? '',\n        transporterAccount: transporterRow?.transporterAccount ?? '',\n        transporterAccountNumber: transporterRow?.transporterAccountNumber ?? ''\n      };\n    },\n    transporterRowMatchesDashboardPayload(transporterRow, payload) {\n      if (payload?.onlyEmptyTransporter) {\n        return RA.isNilOrEmpty(transporterRow?.transporter);\n      }\n      return transporterRow?.transporter === (payload?.transporter ?? '') && (transporterRow?.transporterKey ?? '') === (payload?.transporterKey ?? '') && (transporterRow?.transporterAccount ?? '') === (payload?.transporterAccount ?? '') && (transporterRow?.transporterAccountNumber ?? '') === (payload?.transporterAccountNumber ?? '');\n    },\n    hasDashboardTransportersFilter(dashboardTransporters) {\n      return RA.isNotNilOrEmpty(dashboardTransporters);\n    },\n    isDashboardTransportersMatchNothingPayload(dashboardTransporters) {\n      if (!RA.isArray(dashboardTransporters) || dashboardTransporters.length !== 1) {\n        return false;\n      }\n      const payload = dashboardTransporters[0];\n      const field = dashboardTransportersNoMatchFieldValue;\n      return payload?.onlyEmptyTransporter === false && payload?.transporter === field && payload?.transporterKey === field && payload?.transporterAccount === field && payload?.transporterAccountNumber === field;\n    },\n    transporterRowInDashboardSelection(transporterRow, dashboardTransporters) {\n      if (!this.hasDashboardTransportersFilter(dashboardTransporters)) {\n        return true;\n      }\n      if (this.isDashboardTransportersMatchNothingPayload(dashboardTransporters)) {\n        return false;\n      }\n      return R.any(payload => {\n        return this.transporterRowMatchesDashboardPayload(transporterRow, payload);\n      })(dashboardTransporters);\n    },\n    sumTransporterBarCountsForDashboardSelection(barTransporters, dashboardTransporters) {\n      return R.pipe(R.filter(transporterRow => {\n        return this.transporterRowInDashboardSelection(transporterRow, dashboardTransporters);\n      }), R.pluck('count'), R.map(count => Number(count) || 0), R.sum)(barTransporters || []);\n    },\n    /**\n     * Sum transporter bar count and packages for dashboard checkbox selection.\n     * @param {Object[]} barTransporters - rows from transporter bar dash data\n     * @param {string[]} selectedKeys - transporterDashboardKey values that are checked\n     * @returns {{ total: number, packages: number }}\n     */\n    sumTransporterBarTotalsForSelectedKeys(barTransporters, selectedKeys) {\n      const keys = selectedKeys || [];\n      const selectedRows = R.filter(transporterRow => {\n        const rowKey = this.transporterDashboardKey(transporterRow);\n        return R.includes(rowKey, keys);\n      })(barTransporters || []);\n      const total = R.pipe(R.pluck('count'), R.map(count => Number(count) || 0), R.sum)(selectedRows);\n      const packages = R.pipe(R.pluck('packages'), R.map(packagesCount => Number(packagesCount) || 0), R.sum)(selectedRows);\n      return {\n        total,\n        packages\n      };\n    },\n    buildPackagesByTransporterExtension(transporters) {\n      return R.pipe(R.filter(R.prop('transporterExtension')), R.groupBy(R.prop('transporterExtension')), R.map(transporterContacts => {\n        const count = R.pipe(R.pluck('count'), R.reject(RA.isNilOrEmpty), R.sum)(transporterContacts);\n        const packages = R.pipe(R.pluck('packages'), R.reject(RA.isNilOrEmpty), R.sum)(transporterContacts);\n        return {\n          count,\n          packages,\n          transporterContacts\n        };\n      }))(transporters || []);\n    },\n    buildDashboardTransportersPayload(transporterRows, selectedKeys) {\n      const rows = transporterRows || [];\n      const keys = selectedKeys || [];\n      if (RA.isNilOrEmpty(rows)) {\n        return [];\n      }\n      const selectedRows = R.filter(row => {\n        return R.includes(this.transporterDashboardKey(row), keys);\n      })(rows);\n      if (selectedRows.length === rows.length) {\n        return [];\n      }\n      if (selectedRows.length === 0) {\n        return R.slice(0, Infinity, dashboardTransportersMatchNothingPayload);\n      }\n      return R.map(row => this.transporterDashboardRowPayload(row))(selectedRows);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"applyBulkSplitAlert\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"applyBulkSplitAlert\"), _obj), _applyDecoratedDescriptor(_obj, \"beginBulkSplitRequest\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"beginBulkSplitRequest\"), _obj), _applyDecoratedDescriptor(_obj, \"endBulkSplitRequest\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"endBulkSplitRequest\"), _obj), _applyDecoratedDescriptor(_obj, \"_handleWaybillErrors\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"_handleWaybillErrors\"), _obj), _applyDecoratedDescriptor(_obj, \"setFiltersBasedOnDispatchProcessModel\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"setFiltersBasedOnDispatchProcessModel\"), _obj), _obj));\n});","define(\"client/pods/dispatch/waybills/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/dispatch/waybills/statuses/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/dispatch/waybills/statuses/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _obj = {\n    defaults() {\n      return {\n        unsuccessful: [],\n        successful: [],\n        warning: []\n      };\n    },\n    populate(data, attrs) {\n      this._super(data, attrs);\n    },\n    successful: Ember.computed('_data.successful.[]', function () {\n      const successful = this._data?.successful || [];\n      return R.uniqBy(R.prop('_key'))(successful);\n    }),\n    unsuccessful: Ember.computed('_data.{successful,unsuccessful}.[]', function () {\n      const successful = this._data?.successful || [];\n      const unsuccessful = this._data?.unsuccessful || [];\n      const successfulKeys = R.map(R.prop('_key'))(successful);\n      return R.pipe(R.uniqBy(R.prop('_key')), R.reject(record => R.includes(record?._key, successfulKeys)))(unsuccessful);\n    }),\n    // A warning does not replace the document's terminal status: the waybill still issues, so unlike\n    // unsuccessful, keys that also appear in successful must be kept.\n    warning: Ember.computed('_data.warning.[]', function () {\n      const warning = this._data?.warning || [];\n      return R.uniqBy(R.prop('_key'))(warning);\n    }),\n    // Successful is deliberately excluded: a batch where everything issued cleanly has nothing to\n    // report, so the print dialog stays out of the way.\n    hasUnsuccessfulOrWarnings: Ember.computed('unsuccessful', 'warning', function () {\n      return this.unsuccessful.length > 0 || this.warning.length > 0;\n    }),\n    resetBatchStatus() {\n      this.set('_data.successful', []);\n      this.set('_data.unsuccessful', []);\n      this.set('_data.warning', []);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"resetBatchStatus\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"resetBatchStatus\"), _obj), _obj));\n});","define(\"client/pods/doc-list-by/service\", [\"exports\", \"ember-concurrency-decorators\"], function (_exports, _emberConcurrencyDecorators) {\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;\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 CrudService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._action, _class = class CrudService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n    }\n    *listByTask({\n      adapterName,\n      appendPath,\n      contact,\n      contactKey,\n      date,\n      dateEnd,\n      dateStart,\n      dispatchStatus,\n      documentStatus,\n      filters,\n      isVoid,\n      match,\n      notDispatchStatus,\n      query,\n      resultsProperty,\n      resultsToggle,\n      sourceKey\n    } = {}, onHideDropdown) {\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (isVoid) {\n        filters.setData('isVoid', true);\n      }\n      if (documentStatus) {\n        if (!Ember.isArray(documentStatus)) {\n          documentStatus = [documentStatus];\n        }\n        filters.setData('documentStatus', documentStatus);\n      }\n      if (dispatchStatus) {\n        if (!Ember.isArray(dispatchStatus)) {\n          dispatchStatus = [dispatchStatus];\n        }\n        filters.setData('dispatchStatus', dispatchStatus);\n      }\n      if (notDispatchStatus) {\n        if (!Ember.isArray(notDispatchStatus)) {\n          notDispatchStatus = [notDispatchStatus];\n        }\n        filters.setData('notDispatchStatus', notDispatchStatus);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        filters.setData('query', date);\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        filters,\n        query,\n        resultsProperty,\n        resultsToggle\n      };\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }\n    *listByDetailsTask({\n      adapterName,\n      contact,\n      contactKey,\n      date,\n      dateEnd,\n      dateStart,\n      documentStatus,\n      dispatchStatus,\n      filters,\n      itemKey,\n      match,\n      notDispatchStatus,\n      query = '',\n      resultsProperty,\n      resultsToggle,\n      sourceKey\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (itemKey) {\n        filters.setData('itemKey', itemKey);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (documentStatus) {\n        if (!Ember.isArray(documentStatus)) {\n          documentStatus = [documentStatus];\n        }\n        filters.setData('documentStatus', documentStatus);\n      }\n      if (dispatchStatus) {\n        if (!Ember.isArray(dispatchStatus)) {\n          dispatchStatus = [dispatchStatus];\n        }\n        filters.setData('dispatchStatus', dispatchStatus);\n      }\n      if (notDispatchStatus) {\n        if (!Ember.isArray(notDispatchStatus)) {\n          notDispatchStatus = [notDispatchStatus];\n        }\n        filters.setData('notDispatchStatus', notDispatchStatus);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        query = date;\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath: '/details',\n        filters,\n        query,\n        resultsProperty,\n        resultsToggle\n      };\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }\n    listByDate(onHideDropdown, dateZ, date) {\n      return this.listByTask.perform({\n        date,\n        dateZ,\n        resultsToggle: 'resultsToggle'\n      }, onHideDropdown);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"listByTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"listByTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"listByDetailsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"listByDetailsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"listByDate\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"listByDate\"), _class.prototype), _class);\n});","define(\"client/pods/documentation/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/app-version\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isAppVersionAtLeast = isAppVersionAtLeast;\n  /**\n   * Whether the running app version is at least the required version.\n   * An empty required version is always allowed. Comparison is numeric per part, so 2.3.20 is after 2.3.9.\n   * @param {string} appVersion - running app version, eg '2.3.20'\n   * @param {string} requiredVersion - version on the help or New Feature, eg '2.4.0'\n   * @return {boolean}\n   */\n  function isAppVersionAtLeast(appVersion, requiredVersion) {\n    if (!requiredVersion) {\n      return true;\n    }\n    const appParts = versionParts(appVersion);\n    const requiredParts = versionParts(requiredVersion);\n    const length = Math.max(appParts.length, requiredParts.length);\n    for (let index = 0; index < length; index++) {\n      const appPart = appParts[index] || 0;\n      const requiredPart = requiredParts[index] || 0;\n      if (appPart > requiredPart) {\n        return true;\n      }\n      if (appPart < requiredPart) {\n        return false;\n      }\n    }\n    return true;\n  }\n\n  /**\n   * Numeric parts of a version string.\n   * @param {string} version - version string\n   * @return {number[]}\n   */\n  function versionParts(version) {\n    return String(version || '').split('.').map(part => {\n      const number = parseInt(part, 10);\n      return Number.isNaN(number) ? 0 : number;\n    });\n  }\n});","define(\"client/pods/documentation/features/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/features',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documentation/features/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/features/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/features',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documentation/features/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 1,\n        query: ''\n      };\n    }\n  });\n});","define(\"client/pods/documentation/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documentation/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        master: '',\n        match: ['all'],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/documentation/guide-id\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.resolveGuideId = resolveGuideId;\n  /**\n   * Guide id for an element a New Feature step can point at.\n   * An explicit id wins, then the help documentation id, then an untranslated label, tooltip, or icon.\n   * A search field with none of those is 'search'.\n   * @param {Object} [fields]\n   * @param {string} [fields.guideId] - id used as written\n   * @param {string} [fields.documentationId] - help documentation id\n   * @param {string} [fields.documentationResource] - help resource, joined with context\n   * @param {string} [fields.context] - field context\n   * @param {string} [fields.label] - untranslated label\n   * @param {string} [fields.tooltipLabel] - untranslated tooltip\n   * @param {string} [fields.placeholder] - untranslated placeholder, used for a search field\n   * @param {string} [fields.icon] - icon class, such as 'fas fa-print'\n   * @param {boolean} [fields.isSearchBar] - search field with no other id becomes 'search'\n   * @param {boolean} [fields.omitGuideId] - leave the element unmarked so a parent row keeps the id\n   * @return {string|null}\n   */\n  function resolveGuideId({\n    guideId,\n    documentationId,\n    documentationResource,\n    context,\n    label,\n    tooltipLabel,\n    placeholder,\n    icon,\n    isSearchBar,\n    omitGuideId\n  } = {}) {\n    if (omitGuideId) {\n      return null;\n    }\n    const explicitId = textId(guideId) || textId(documentationId);\n    if (explicitId) {\n      return explicitId;\n    }\n    if (textId(documentationResource) && textId(context)) {\n      return `${documentationResource}-${context}`;\n    }\n    const namedId = textId(label) || textId(tooltipLabel) || guideIdFromIcon(icon);\n    if (namedId) {\n      return namedId;\n    }\n    if (!isSearchBar) {\n      return null;\n    }\n    return textId(context) || textId(placeholder) || 'search';\n  }\n\n  /**\n   * A non-empty string, or null.\n   * @param {*} value\n   * @return {string|null}\n   */\n  function textId(value) {\n    if (typeof value !== 'string' || !value) {\n      return null;\n    }\n    return value;\n  }\n\n  /**\n   * Last icon token in a Font Awesome class, eg 'fas fa-print' becomes 'fa-print'.\n   * @param {string} iconClass - icon class string\n   * @return {string|null}\n   */\n  function guideIdFromIcon(iconClass) {\n    const icon = textId(iconClass);\n    if (!icon) {\n      return null;\n    }\n    const iconName = icon.split(' ').find(part => part.startsWith('fa-'));\n    return iconName || null;\n  }\n});","define(\"client/pods/documentation/lists/help/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _model2, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model2.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'isHelp',\n        label: 'help'\n      }, {\n        value: 'isNewFeature',\n        label: 'new feature'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documentation/lists/resource/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/admin/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/admin',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/campaigns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/campaigns',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/contacts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/contacts',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/dispatch/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/dispatch',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/documents/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/documents',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/einvoices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/einvoices',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/email/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/email',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/products/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/products',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/promocodes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/promocodes',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/rewards/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/rewards',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/settings/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/settings',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/users/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/users',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/resource/websites/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/websites',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/settings/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/resource/settings',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/lists/tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documentation/tags',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documentation/model\", [\"exports\", \"client/pods/base/model\", \"client/constants\", \"ramda\"], function (_exports, _model, _constants, R) {\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;\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 DocumentationModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _class = class DocumentationModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    get isActive() {\n      return R.pathEq(['_data', 'status'], _constants.default.status.active)(this);\n    }\n    get hasDocumentation() {\n      return R.pipe(R.pathOr({}, ['_data', '_id']), R.propSatisfies(R.gte(R.__, 1), 'length'))(this);\n    }\n    get hasTemplate() {\n      return R.pipe(R.pathOr({}, ['_data', 'template']), R.propSatisfies(R.gte(R.__, 1), 'length'))(this);\n    }\n    get type() {\n      return this?._data?.type || '';\n    }\n    get isHelp() {\n      if (this.type === 'isHelp') {\n        return true;\n      }\n      return false;\n    }\n    get isGroup() {\n      if (this.type === 'isGroup') {\n        return true;\n      }\n      return false;\n    }\n    populate(data, attrs) {\n      super.populate(data, attrs);\n      data.templates = this._transformTemplates(data);\n    }\n    _transformTemplates(data) {\n      return R.pipe(R.pathOr([], ['templates']), R.map(template => this.dataManager.setAsRecord({\n        adapterName: 'documentation/templates',\n        data: this.getTemplateHash(template)\n      })))(data);\n    }\n    removeTemplate(template) {\n      if (template._data) {\n        this?._data?.templates?.removeObject(template);\n      } else {\n        const header = R.propOr('', 'header')(template);\n        const templateModel = R.pipe(R.pathOr([], ['_data', 'templates']), R.find(R.pathEq(['_data', 'header'], header)))(this);\n        this?._data?.templates?.removeObject(templateModel);\n      }\n    }\n    getTemplateHash(args = {}) {\n      const {\n        template,\n        header,\n        status\n      } = args;\n      return {\n        component: 'products/products-editor/template',\n        get label() {\n          return this.header;\n        },\n        action: 'new',\n        tabType: 'reuseSubTab',\n        header,\n        template,\n        status\n      };\n    }\n    addNewTemplate() {\n      const newTemplate = this.dataManager.newRecord({\n        adapterName: 'documentation/templates',\n        data: this.getTemplateHash()\n      });\n      if (!newTemplate?.instanceId) {\n        newTemplate.instanceId = this?.instanceId;\n      }\n      this?._data?.templates?.pushObject(newTemplate);\n      return newTemplate;\n    }\n    get hasMultipleTemplates() {\n      const templates = this._data.templates || [];\n      if (templates.length > 1) {\n        return true;\n      }\n      return false;\n    }\n    defaults() {\n      return {\n        isHomePageHelp: false,\n        quickTip: '',\n        setup: false,\n        appVersion: '',\n        draftSteps: [],\n        status: _constants.default.status.active,\n        template: '',\n        templates: []\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"_transformTemplates\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"_transformTemplates\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getTemplateHash\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"getTemplateHash\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addNewTemplate\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"addNewTemplate\"), _class.prototype), _class);\n});","define(\"client/pods/documentation/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"client/config/environment\", \"client/pods/documentation/app-version\", \"client/pods/documentation/guide-id\"], function (_exports, _emberConcurrencyDecorators, RA, _environment, _appVersion, _guideId) {\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;\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 DocumentsService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _class = class DocumentsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"server\", _descriptor5, this);\n      _initializerDefineProperty(this, \"users\", _descriptor6, this);\n      _initializerDefineProperty(this, \"editModalCount\", _descriptor7, this);\n    }\n    /**\n     * The New Feature slides stay closed while a documentation edit modal is open.\n     */\n    openEditModal() {\n      this.editModalCount = this.editModalCount + 1;\n    }\n\n    /**\n     * Allow the New Feature slides again after the edit modal closes.\n     */\n    closeEditModal() {\n      this.editModalCount = Math.max(0, this.editModalCount - 1);\n    }\n\n    /**\n     * Guide id for an element a New Feature step can point at.\n     * @param {Object} [fields] - guideId, documentationId, documentationResource, context, label, tooltipLabel, placeholder, icon, isSearchBar\n     * @return {string|null}\n     */\n    resolveGuideId(fields) {\n      return (0, _guideId.resolveGuideId)(fields);\n    }\n\n    /**\n     * Whether a help or New Feature may be shown for this app version.\n     * Editors always see it. A blank version is shown. Otherwise the app must be at least that version.\n     * @param {Object} documentation - documentation model\n     * @return {boolean}\n     */\n    isDocumentationVisible(documentation) {\n      if (this.users.isDocumentationsEditor) {\n        return true;\n      }\n      return (0, _appVersion.isAppVersionAtLeast)(_environment.default.version, documentation?._data?.appVersion);\n    }\n    *searchInputTask({\n      adapterName = 'documentation',\n      filtersAdapterName = 'documentation/filters',\n      query = '',\n      resultsProperty = '',\n      component,\n      resultsToggle = false,\n      global = true,\n      filters\n    }) {\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.search.setupFilters({\n          adapterName: filtersAdapterName,\n          defaultFiltersData: {\n            query\n          }\n        });\n      }\n      const results = yield this.crud.searchInputTask.perform({\n        adapterName,\n        filters,\n        resultsProperty,\n        component,\n        resultsToggle\n      }, query);\n      if (global && resultsProperty) {\n        this[resultsProperty] = results;\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"users\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"editModalCount\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"openEditModal\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"openEditModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeEditModal\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"closeEditModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchInputTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchInputTask\"), _class.prototype), _class);\n});","define(\"client/pods/documentation/templates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documentation/templates/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documentation/templates/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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;\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 DocumentationTemplatesModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class DocumentationTemplatesModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        template: '',\n        header: this.intl.t('features'),\n        status: this.get('constants.status.active')\n      };\n    }\n    replaceTemplate(template, templateImages = []) {\n      this.setData('template', template);\n      this.setData('templateImages', templateImages);\n    }\n    insertTemplate(template, templateImages = []) {\n      const currentTemplate = this.getData('template');\n      const currentTemplateImages = this.getData('templateImages') || [];\n      let newTemplate = '';\n      if (currentTemplate) {\n        newTemplate = `${currentTemplate}<br>`;\n      }\n      newTemplate = `${newTemplate} ${template}`;\n      const newTemplateImages = R.concat(currentTemplateImages, templateImages);\n      this.setData('template', newTemplate);\n      this.setData('templateImages', newTemplateImages);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"replaceTemplate\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"replaceTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"insertTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"insertTemplate\"), _class.prototype), _class);\n});","define(\"client/pods/documents/batch/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/batch',\n    modelObj: _model.default,\n    /**\n     * update dispatch status in a single batch\n     * @param  {array} batch array of dirty models\n     * @return {promise}\n     */\n    udpateDispatchBatch({\n      batch,\n      appendPath,\n      serverType\n    }) {\n      const path = this.getPath('resourcePath', appendPath);\n      batch = batch.map(dirty => {\n        const docType = dirty.getData('docType');\n        const docName = dirty.getData('docName');\n        const adapterName = `documents/${docType}/${docName}`;\n        return this.dataManager.getAdapter(adapterName).serialize(dirty);\n      });\n      const payload = {\n        batch\n      };\n      return this.server.call('PATCH', path, payload, null, {\n        serverType\n      });\n    }\n  });\n});","define(\"client/pods/documents/data/links/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/links/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/data/links',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/documents/data/links/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/links/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/data/links/filters/model\", [\"exports\", \"client/pods/documents/filters/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    defaults() {\n      return {\n        query: '',\n        contact: '',\n        contactKey: '',\n        itemKey: '',\n        excludeFromLinkQty: {},\n        includeCompletedPending: false\n      };\n    }\n  });\n});","define(\"client/pods/documents/data/links/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _model.default.extend();\n});","define(\"client/pods/documents/data/pending/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/pending/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/data/pending',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/documents/data/pending/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/pending/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/data/pending/filters/model\", [\"exports\", \"client/pods/documents/filters/model\", \"ramda\"], function (_exports, _model, R) {\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    defaults() {\n      const resetDefaults = this.resetDefaults || {};\n      return R.mergeRight({\n        page: 1,\n        count: 10,\n        query: '',\n        item: '',\n        itemCode: '',\n        contact: '',\n        master: '',\n        match: ['all'],\n        code: '',\n        docNo: '',\n        taxMethod: 'exclusive',\n        // statuses: [this.get('constants.status.active')],\n        method: 'byProducts',\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      }, resetDefaults);\n    },\n    isTaxExclusive: Ember.computed('_data.taxMethod', function () {\n      if (this?._data?.taxMethod === 'inclusive') {\n        return false;\n      }\n      return true;\n    })\n  });\n});","define(\"client/pods/documents/data/pending/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    idParam: false,\n    modelObj: _model.default,\n    findAll({\n      data = {},\n      appendPath,\n      options,\n      serverType\n    } = {}) {\n      const docType = options.docType;\n      const docName = options.docName;\n      const customData = {\n        list: [{\n          component: 'documents/pending/panel-display-by-products',\n          resource: `/api/protected/documents/${docType}/${docName}`,\n          icon: 'fas fa-boxes',\n          label: 'by products',\n          type: 'byProducts',\n          combined: true,\n          action: 'display',\n          className: 'hide-when-overflow'\n        }, {\n          component: 'documents/pending/panel-display-by-orders',\n          resource: `/api/protected/documents/${docType}/${docName}`,\n          icon: 'far fa-file-alt',\n          label: 'by orders',\n          type: 'byOrders',\n          combined: false,\n          action: 'display',\n          className: 'hide-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/documents/data/pending/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _model.default.extend();\n});","define(\"client/pods/documents/data/pending/orders/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/pending/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/data/pending/orders',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/documents/data/pending/orders/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/pending/orders/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/data/pending/orders/filters/model\", [\"exports\", \"client/pods/documents/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        master: '',\n        match: ['all'],\n        // statuses: [this.get('constants.status.active')],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/documents/data/pending/products/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/pending/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/data/pending/products',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/documents/data/pending/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: 'value',\n    findAll({\n      data = {},\n      appendPath,\n      options,\n      serverType\n    } = {}) {\n      const docType = options.docType;\n      const customData = {\n        list: [{\n          resource: `/api/protected/documents/${docType}/orders`,\n          label: 'orders',\n          value: 'orders',\n          docType: 'orders'\n        }, {\n          resource: `/api/protected/documents/${docType}/consignments`,\n          label: 'consignments',\n          value: 'consignments',\n          docType: 'consignments'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/documents/data/products/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/products/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/data/products',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/documents/data/products/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _model.default.extend();\n});","define(\"client/pods/documents/data/products/transactions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/products/transactions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/data/products/transactions',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/documents/data/products/transactions/model\", [\"exports\", \"client/pods/documents/details/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    qtyIn: Ember.computed('_data.{qty,inventoryDirection}', function () {\n      const inventoryDirection = this.get('_data.inventoryDirection');\n      if (inventoryDirection === 'increase') {\n        return this.get('_data.qty');\n      }\n      return '';\n    }),\n    qtyOut: Ember.computed('_data.{qty,inventoryDirection}', function () {\n      const inventoryDirection = this.get('_data.inventoryDirection');\n      if (inventoryDirection === 'decrease') {\n        return this.get('_data.qty');\n      }\n      return '';\n    })\n  });\n});","define(\"client/pods/documents/data/split/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/data/split/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/data/split',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/documents/data/split/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _model.default.extend();\n});","define(\"client/pods/documents/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/details/calculations-always-inclusive\", [\"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 = Ember.Mixin.create({\n    /**\n     * returns line amt (qty * price), irrespective of exclusive/inclusive\n     * @return {object}  lineAmt as a Big class\n     */\n    getLineAmtBig() {\n      const qty = this.getDataBig('qty');\n      const price = this.getDataBig('inclPrice');\n      let lineAmtBig = qty.times(price);\n      return this._deductDiscount(lineAmtBig);\n    },\n    /**\n     * calculate line totals\n     */\n    calculateLineTotals({\n      isTaxExclusive,\n      hasTaxMethod\n    }) {\n      // only calculate if has details\n      if (isTaxExclusive) {\n        // prices are exclusive\n        this._calculateAndSetInclPrice(hasTaxMethod);\n      } else {\n        this._calculateAndSetExclPrice(hasTaxMethod);\n      }\n      this._calculateLineWhenPricesAreInclusive(hasTaxMethod);\n      this._calculateLineCommission();\n    },\n    _calculateAndSetInclPrice(hasTaxMethod) {\n      const {\n        roundingInventoryPrice\n      } = this.getRounding();\n      let taxRate = 0;\n      if (hasTaxMethod) {\n        taxRate = this.getData('taxRate') || 0;\n      }\n      const taxRateBig = this.newBig(taxRate);\n      const inclPrice = this.getDataBig('price').times(taxRateBig.plus(1)).toFixed(roundingInventoryPrice);\n      this.setData('inclPrice', inclPrice);\n    },\n    _calculateAndSetExclPrice(hasTaxMethod) {\n      const {\n        roundingInventoryPrice\n      } = this.getRounding();\n      let taxRateBig = this.newBig(0);\n      if (hasTaxMethod) {\n        taxRateBig = this.getDataBig('taxRate');\n      }\n      const exclPrice = this.getDataBig('price').div(taxRateBig.plus(1)).toFixed(roundingInventoryPrice);\n      this.setData('exclPrice', exclPrice);\n    },\n    _calculateLineWhenPricesAreInclusive(hasTaxMethod) {\n      // number of decimal places to round\n      const {\n        roundingCurrency,\n        unroundedCurrency\n      } = this.getRounding();\n      let lineAmtBig = this.getLineAmtBig();\n      let taxRateBig = this.newBig(0);\n      if (hasTaxMethod) {\n        taxRateBig = this.getDataBig('taxRate');\n      }\n      const inclAmt = lineAmtBig.toFixed(roundingCurrency);\n      // use unrounded lineAmt to do tax calculations\n      const taxAmtBig = lineAmtBig.times(taxRateBig).div(taxRateBig.plus(1));\n      const taxAmt = taxAmtBig.toFixed(unroundedCurrency);\n      // use rounded tax amt to calculate excl amt\n      const exclAmt = lineAmtBig.minus(taxAmt).toFixed(roundingCurrency);\n      this.setData('exclAmt', exclAmt);\n      this.setData('taxAmt', taxAmt);\n      this.setData('inclAmt', inclAmt);\n    }\n  });\n});","define(\"client/pods/documents/details/calculations-exclusive-or-inclusive\", [\"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 = Ember.Mixin.create({\n    /**\n     * returns line amt (qty * price), irrespective of exclusive/inclusive\n     * @return {object}  lineAmt as a Big class\n     */\n    getLineAmtBig() {\n      const qty = this.getDataBig('qty');\n      const price = this.getDataBig('price');\n      const lineAmtBig = qty.times(price);\n      return this._deductDiscount(lineAmtBig);\n    },\n    /**\n     * calculate line totals\n     */\n    calculateLineTotals({\n      isTaxExclusive,\n      hasTaxMethod\n    }) {\n      // only calculate if has details\n\n      if (isTaxExclusive) {\n        // prices are exclusive\n        this._calculateLineWhenPricesAreExclusive(hasTaxMethod);\n      } else {\n        this._calculateLineWhenPricesAreInclusive(hasTaxMethod);\n      }\n      this._calculateLineCommission();\n\n      // this.sumTotals()\n    },\n    /**\n     * calculate line amounts when prices are exclusive\n     * @return {[type]} [description]\n     */\n    _calculateLineWhenPricesAreExclusive(hasTaxMethod) {\n      // number of decimal places to round\n      const lineAmtBig = this.getLineAmtBig();\n\n      // lineAmtBig = this._deductDiscount(lineAmtBig);\n\n      // use unrounded lineAmt to do tax calculations\n\n      const {\n        roundingCurrency,\n        unroundedCurrency,\n        roundingInventoryPrice\n      } = this.getRounding();\n      const exclAmt = lineAmtBig.toFixed(roundingCurrency);\n      let taxRate = 0;\n      if (hasTaxMethod) {\n        taxRate = this.getData('taxRate') || 0;\n      }\n      const taxRateBig = this.newBig(taxRate);\n      const inclPrice = this.getDataBig('price').times(taxRateBig.plus(1)).toFixed(roundingInventoryPrice);\n      const taxAmtBig = lineAmtBig.times(taxRate);\n\n      // tax should not be rounded yet\n      // incl amt is not required (as tax is only rounded when summing up)\n      const taxAmt = taxAmtBig.toFixed(unroundedCurrency);\n      const inclAmt = taxAmtBig.plus(exclAmt).toFixed(roundingCurrency);\n      this.setData('inclPrice', inclPrice);\n      this.setData('exclAmt', exclAmt);\n      this.setData('taxAmt', taxAmt);\n      this.setData('inclAmt', inclAmt);\n    },\n    /**\n     * calculate line amounts when prices are inclusive\n     * @return {[type]} [description]\n     */\n    _calculateLineWhenPricesAreInclusive(hasTaxMethod) {\n      // number of decimal places to round\n      const {\n        roundingCurrency,\n        unroundedCurrency,\n        roundingInventoryPrice\n      } = this.getRounding();\n      const lineAmtBig = this.getLineAmtBig();\n      let taxRateBig = this.newBig(0);\n      if (hasTaxMethod) {\n        taxRateBig = this.getDataBig('taxRate');\n      }\n      const exclPrice = this.getDataBig('price').div(taxRateBig.plus(1)).toFixed(roundingInventoryPrice);\n      const inclAmt = lineAmtBig.toFixed(roundingCurrency);\n      // use unrounded lineAmt to do tax calculations\n      const taxAmtBig = lineAmtBig.times(taxRateBig).div(taxRateBig.plus(1));\n      const taxAmt = taxAmtBig.toFixed(unroundedCurrency);\n      // use rounded tax amt to calculate excl amt\n      const exclAmt = lineAmtBig.minus(taxAmt).toFixed(roundingCurrency);\n      this.setData('exclPrice', exclPrice);\n      this.setData('exclAmt', exclAmt);\n      this.setData('taxAmt', taxAmt);\n      this.setData('inclAmt', inclAmt);\n    }\n  });\n});","define(\"client/pods/documents/details/model\", [\"exports\", \"client/pods/base/model\", \"client/pods/documents/details/calculations-exclusive-or-inclusive\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, _calculationsExclusiveOrInclusive, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj; // import TaxCalculationsMethodMixin from './calculations-always-inclusive'\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  var _default = _exports.default = _model.default.extend(_calculationsExclusiveOrInclusive.default, (_dec = Ember._action, _obj = {\n    big: Ember.inject.service(),\n    defaults() {\n      return {\n        discountAllowed: true,\n        isRewardEarnAllowed: true,\n        isRewardSpendAllowed: true\n      };\n    },\n    populate(data = {}) {\n      const self = this;\n      self.set('pending', data.pending);\n      delete data.pending;\n      self.set('consignments', data.consignments);\n      delete data.consignments;\n      const docModel = this.transformDoc(data);\n      self.set('doc', docModel);\n\n      // `populate` is custom here, so apply BaseModel defaults explicitly.\n      const detailData = data.detail || data;\n      self.overwriteData(this.setupWithDefaults(detailData));\n    },\n    transformDoc(rawData) {\n      if (rawData.doc) {\n        if (rawData?.doc?.details) {\n          delete rawData.doc.details;\n        }\n        const docData = rawData.doc;\n        delete rawData.doc;\n        let adapterName;\n        if (RA.isNotNilOrEmpty(docData.docType) && RA.isNotNilOrEmpty(docData.docName)) {\n          adapterName = `documents/${docData.docType}/${docData.docName}`;\n        } else {\n          adapterName = 'products/inventory/adjustments';\n        }\n        return this.dataManager.setPartialRecord({\n          adapterName,\n          data: docData\n        });\n      }\n      return false;\n    },\n    statusClass: Ember.computed('_data.productStatus', function () {\n      const productStatus = this?._data?.productStatus || '';\n      if (productStatus === 'preOrder') {\n        return 'is-warning';\n      }\n      return '';\n    }),\n    getRounding() {\n      return {\n        roundingCurrency: this.getData('roundingCurrency', this.get('settings.roundingCurrency')),\n        unroundedCurrency: this.getData('unroundedCurrency', this.get('settings.unroundedCurrency')),\n        roundingInventoryPrice: this.getData('roundingInventoryPrice', this.get('settings.roundingInventoryPrice'))\n      };\n    },\n    isProduct: Ember.computed('_data.type', function () {\n      const itemType = this._data.type || '';\n      if (itemType === 'shippingFee' || itemType === 'paymentFee') {\n        return false;\n      }\n      return true;\n    }),\n    isSet: Ember.computed('_data.isSet', function () {\n      return this?._data?.isSet === true;\n    }),\n    shouldShowSupplierInformation: Ember.computed('_data.{itemKey,isSet,isSetWithChoices}', function () {\n      const itemKey = this.getData('itemKey');\n      if (RA.isNilOrEmpty(itemKey)) {\n        return false;\n      }\n      const isSet = this.getData('isSet');\n      const isSetWithChoices = this.getData('isSetWithChoices');\n      if (isSet || isSetWithChoices) {\n        return false;\n      }\n      return true;\n    }),\n    /**\n     * QR ticket toggle belongs on sellable leaf / set-child rows only.\n     * Hide on isSet and isSetWithChoices wrappers (API clears QR on those parents).\n     * @return {boolean}\n     */\n    shouldShowQrCodeTicketToggle: Ember.computed('_data.{isSet,isSetWithChoices}', function () {\n      const isSet = this.getData('isSet') === true;\n      const isSetWithChoices = this.getData('isSetWithChoices') === true;\n      if (isSet || isSetWithChoices) {\n        return false;\n      }\n      return true;\n    }),\n    isDiscountRate: Ember.computed('_data.discountType', function () {\n      const discType = this.getData('discountType');\n      if (discType === this.get('constants.discountTypes.rate')) {\n        return true;\n      }\n      return false;\n    }),\n    /**\n     * @deprecated\n     * deduct discount from lineAmt (discount rate set on each item:)\n     * Discount is rounded per line item\n     */\n    _deductDiscount(lineAmtBig) {\n      // const { roundingCurrency } = this.getRounding()\n\n      // let discRateBig = this.getDataBig('discountRate')\n      // let discAmountBig = this.getDataBig('discountAmount')\n\n      // if (this.isDiscountRate && discRateBig.gt(0)) {\n      //   // discount is %, divide by 100\n      //   discRateBig = discRateBig.div(100)\n\n      //   discAmountBig = lineAmtBig.times(discRateBig)\n      // }\n\n      // if (discAmountBig.gt(0)) {\n      //   const discAmtRounded = discAmountBig.toFixed(roundingCurrency)\n\n      //   // use rounded discount\n      //   lineAmtBig = lineAmtBig.minus(discAmtRounded)\n\n      //   // store discounted unit price for display and reporting purposes only\n      //   const qtyBig = this.getDataBig('qty')\n\n      //   const discPriceRounded = lineAmtBig.div(qtyBig).toFixed(roundingCurrency)\n      //   this.setData('discPrice', discPriceRounded)\n      //   this.setData('discAmt', discAmtRounded)\n      // } else {\n      //   this.setData('discPrice', '')\n      //   this.setData('discAmt', '')\n      // }\n\n      return lineAmtBig;\n    },\n    _calculateLineCommission() {\n      const {\n        roundingCurrency\n      } = this.getRounding();\n      const commissionBaseCost = this.getDataBig('commissionBaseCost');\n      // const commissionBaseCost = 0\n      let commission = 0;\n      if (commissionBaseCost > 0 && !Ember.isEmpty(this.get('model._data.salesPersons'))) {\n        const exclAmt = this.getDataBig('exclAmt');\n        const qty = this.getDataBig('qty');\n        const baseAmt = qty.times(commissionBaseCost);\n        commission = exclAmt.minus(baseAmt).toFixed(roundingCurrency);\n      }\n      this.setData('commissionAmt', commission);\n    },\n    // @TODO: #473 refactor to handle decimals\n    remainingQty: Ember.computed('_data.{qty,originalQty,allReturnedQty}', function () {\n      const originalQty = parseInt(this._data.originalQty) || 0;\n      const qty = parseInt(this._data.qty) || 0;\n      const allReturnedQty = parseInt(this._data.allReturnedQty) || 0;\n      return originalQty - qty - allReturnedQty;\n    }),\n    originalRemainingQty: Ember.computed('_data.{originalQty,allReturnedQty}', function () {\n      const originalQty = parseInt(this._data.originalQty) || 0;\n      const allReturnedQty = parseInt(this._data.allReturnedQty) || 0;\n      return originalQty - allReturnedQty;\n    }),\n    hasDiscount: Ember.computed('_data.allocatedInclDiscountUnrounded', function () {\n      const allocatedDisc = parseInt(R.path(['_data', 'allocatedInclDiscountUnrounded'])(this)) || 0;\n      if (allocatedDisc > 0) {\n        return true;\n      }\n      return false;\n    }),\n    detailQtyWhenLinkedExceedAllowedQty: Ember.computed('_data.{fromDocName,fromDetailKey,ordersPendingId,consignmentsPendingId,maxQtyWhenLinked,qty}', function () {\n      const fromDocName = R.pathOr('', ['_data', 'fromDocName'])(this);\n      let pendingId = '';\n      if (RA.isNotNilOrEmpty(fromDocName)) {\n        pendingId = R.pathOr('', ['_data', `${fromDocName}PendingId`])(this);\n        if (R.equals(fromDocName, 'invoices')) {\n          pendingId = R.pathOr('', ['_data', 'fromDetailKey'])(this);\n        }\n      }\n      if (RA.isNotNilOrEmpty(pendingId)) {\n        const maxQtyWhenLinked = R.pathOr('', ['_data', 'maxQtyWhenLinked'])(this);\n        const detailQty = R.pathOr(0, ['_data', 'qty'])(this);\n        if (RA.isNotNilOrEmpty(maxQtyWhenLinked)) {\n          if (this.big.newBig(detailQty).gt(maxQtyWhenLinked)) {\n            return true;\n          }\n        }\n        return false;\n      }\n      return false;\n    }),\n    isDocumentDetail: Ember.computed('_data.{docName,itemKey,item,itemCode,qty}', function () {\n      return true;\n    }),\n    toggleShowQtyWarningMsg() {\n      this.set('showQtyWarningMsg', true);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"toggleShowQtyWarningMsg\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"toggleShowQtyWarningMsg\"), _obj), _obj));\n});","define(\"client/pods/documents/dispatch/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/dispatch/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/dispatch/filters/model\", [\"exports\", \"client/pods/documents/filters/model\", \"ramda-adjunct\"], function (_exports, _model, RA) {\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    defaults() {\n      return {\n        isFromDispatch: true,\n        page: 1,\n        count: 10,\n        query: '',\n        master: '',\n        match: ['all'],\n        documentStatus: [],\n        documentStatuses: [],\n        productStatuses: [],\n        dispatchStatus: [],\n        dispatchProcesses: [],\n        multipleDispatchProcessesCriterias: [],\n        date: '',\n        dateHeaderValue: 'dateZ',\n        dateHeaderLabel: 'date',\n        dateZ: '',\n        timestampZ_latest: '',\n        dispatchDate: '',\n        dispatchDateZ: '',\n        timestampZ: '',\n        expectedDispatchDateZ: '',\n        expectedPrepareDateZ: '',\n        transporterArrivalDateZ: '',\n        latestDispatchDate: '',\n        docNo: '',\n        contact: '',\n        promoCode: '',\n        code: '',\n        ref: '',\n        item: '',\n        inclTotal: '',\n        transporterLabel: '',\n        onlyEmptyTransporter: false,\n        dashboardTransporters: [],\n        transporterAccount: '',\n        waybill: '',\n        packages: '',\n        printedStatus: 'unprinted',\n        paymentMethods: [],\n        paymentMethodsCustomLabel: [],\n        paymentTerms: [],\n        paymentLastFiveDigits: '',\n        pickupLocations: [],\n        salesPersons: [],\n        source: '',\n        sourceKey: '',\n        statuses: [this.get('constants.status.active')],\n        contactKey: '',\n        contactTags: [],\n        useFilterInvoicesString: true,\n        isVoid: false,\n        sort: [{\n          by: 'dispatchProcessUpdatedTimestampZ',\n          direction: 'DESC'\n        }]\n      };\n    },\n    tagsCount: Ember.computed('_data.tags.[]', function () {\n      return this.getPropLength('_data.tags');\n    }),\n    productTags: Ember.computed('_data.productTags.[]', function () {\n      return this.getPropLength('_data.productTags');\n    }),\n    contactTags: Ember.computed('_data.contactTags.[]', function () {\n      return this.getPropLength('_data.contactTags');\n    }),\n    dateCount: Ember.computed('_data.{dateHeaderValue,dateZ,timestampZ_latest}', function () {\n      const dateHeaderValue = this?._data?.dateHeaderValue || 'dateZ';\n      const dateZ = this?._data?.dateZ || '';\n      const timestampZ_latest = this?._data?.timestampZ_latest || '';\n      if (dateHeaderValue === 'dateZ' && dateZ) {\n        return 1;\n      }\n      if (dateHeaderValue === 'timestampZ_latest' && timestampZ_latest) {\n        return 1;\n      }\n      return 0;\n    }),\n    paymentMethodsCount: Ember.computed('_data.paymentMethods.[]', function () {\n      return this.getPropLength('_data.paymentMethods');\n    }),\n    paymentMethodsCustomLabelCount: Ember.computed('_data.paymentMethodsCustomLabel.[]', function () {\n      return this.getPropLength('_data.paymentMethodsCustomLabel');\n    }),\n    paymentTermsCount: Ember.computed('_data.paymentTerms.[]', function () {\n      return this.getPropLength('_data.paymentTerms');\n    }),\n    inclTotalCount: Ember.computed('_data.inclTotal', function () {\n      const inclTotal = this?._data?.inclTotal || '';\n      if (RA.isNilOrEmpty(inclTotal)) {\n        return 0;\n      }\n      return 1;\n    }),\n    paymentLastFiveDigitsCount: Ember.computed('_data.paymentLastFiveDigits', function () {\n      const paymentLastFiveDigits = this?._data?.paymentLastFiveDigits || '';\n      if (RA.isNilOrEmpty(paymentLastFiveDigits)) {\n        return 0;\n      }\n      return 1;\n    }),\n    transporterLabelCount: Ember.computed('_data.transporterLabel', function () {\n      const transporterLabel = this?._data?.transporterLabel || '';\n      if (RA.isNilOrEmpty(transporterLabel)) {\n        return 0;\n      }\n      return 1;\n    }),\n    transporterAccountCount: Ember.computed('_data.transporterAccount', function () {\n      const transporterAccount = this?._data?.transporterAccount || '';\n      if (RA.isNilOrEmpty(transporterAccount)) {\n        return 0;\n      }\n      return 1;\n    }),\n    waybillCount: Ember.computed('_data.waybill', function () {\n      const waybill = this?._data?.waybill || '';\n      if (RA.isNilOrEmpty(waybill)) {\n        return 0;\n      }\n      return 1;\n    }),\n    packagesCount: Ember.computed('_data.packages', function () {\n      const packages = this?._data?.packages || '';\n      if (RA.isNilOrEmpty(packages)) {\n        return 0;\n      }\n      return 1;\n    }),\n    pickupLocationsCount: Ember.computed('_data.pickupLocations.[]', function () {\n      return this.getPropLength('_data.pickupLocations');\n    }),\n    productStatusesCount: Ember.computed('_data.productStatuses.[]', function () {\n      return this.getPropLength('_data.productStatuses');\n    }),\n    dispatchDateZCount: Ember.computed('_data.dispatchDateZ', function () {\n      const dispatchDateZ = this?._data?.dispatchDateZ || '';\n      if (RA.isNilOrEmpty(dispatchDateZ)) {\n        return 0;\n      }\n      return 1;\n    }),\n    dispatchProcessesCount: Ember.computed('_data.dispatchProcesses.[]', function () {\n      return this.getPropLength('_data.dispatchProcesses');\n    }),\n    sourceKeyCount: Ember.computed('_data.sourceKey', function () {\n      const sourceKey = this?._data?.sourceKey || '';\n      if (RA.isNilOrEmpty(sourceKey)) {\n        return 0;\n      }\n      return 1;\n    }),\n    salesPersonsCount: Ember.computed('_data.salesPersons.[]', function () {\n      return this.getPropLength('_data.salesPersons');\n    }),\n    documentStatusesCount: Ember.computed('_data.documentStatuses.[]', function () {\n      return this.getPropLength('_data.documentStatuses');\n    })\n  });\n});","define(\"client/pods/documents/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/filters/model\", [\"exports\", \"client/pods/filters/model\", \"ramda-adjunct\"], function (_exports, _model, RA) {\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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        master: '',\n        match: ['all'],\n        documentStatuses: [],\n        productStatuses: [],\n        dispatchStatus: [],\n        dispatchProcesses: [],\n        multipleDispatchProcessesCriterias: [],\n        date: '',\n        dateHeaderValue: 'dateZ',\n        dateHeaderLabel: 'date',\n        dateZ: '',\n        timestampZ_latest: '',\n        dispatchDate: '',\n        // not sure if it's used\n        dispatchDateZ: '',\n        timestampZ: '',\n        expectedDispatchDateZ: '',\n        expectedPrepareDateZ: '',\n        transporterArrivalDateZ: '',\n        latestDispatchDate: '',\n        docNo: '',\n        contact: '',\n        promoCode: '',\n        code: '',\n        ref: '',\n        item: '',\n        inclTotal: '',\n        transporterLabel: '',\n        onlyEmptyTransporter: false,\n        transporterAccount: '',\n        waybill: '',\n        packages: '',\n        paymentMethods: [],\n        paymentMethodsCustomLabel: [],\n        paymentTerms: [],\n        paymentLastFiveDigits: '',\n        pickupLocations: [],\n        salesPersons: [],\n        source: '',\n        sourceKey: '',\n        statuses: [this.get('constants.status.active')],\n        contactTags: [],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    },\n    tagsCount: Ember.computed('_data.tags.[]', function () {\n      return this.getPropLength('_data.tags');\n    }),\n    productTags: Ember.computed('_data.productTags.[]', function () {\n      return this.getPropLength('_data.productTags');\n    }),\n    contactTags: Ember.computed('_data.contactTags.[]', function () {\n      return this.getPropLength('_data.contactTags');\n    }),\n    dateCount: Ember.computed('_data.{dateHeaderValue,dateZ,timestampZ_latest}', function () {\n      const dateHeaderValue = this?._data?.dateHeaderValue || 'dateZ';\n      const dateZ = this?._data?.dateZ || '';\n      const timestampZ_latest = this?._data?.timestampZ_latest || '';\n      if (dateHeaderValue === 'dateZ' && dateZ) {\n        return 1;\n      }\n      if (dateHeaderValue === 'timestampZ_latest' && timestampZ_latest) {\n        return 1;\n      }\n      return 0;\n    }),\n    paymentMethodsCount: Ember.computed('_data.paymentMethods.[]', function () {\n      return this.getPropLength('_data.paymentMethods');\n    }),\n    paymentMethodsCustomLabelCount: Ember.computed('_data.paymentMethodsCustomLabel.[]', function () {\n      return this.getPropLength('_data.paymentMethodsCustomLabel');\n    }),\n    paymentTermsCount: Ember.computed('_data.paymentTerms.[]', function () {\n      return this.getPropLength('_data.paymentTerms');\n    }),\n    inclTotalCount: Ember.computed('_data.inclTotal', function () {\n      const inclTotal = this?._data?.inclTotal || '';\n      if (RA.isNilOrEmpty(inclTotal)) {\n        return 0;\n      }\n      return 1;\n    }),\n    paymentLastFiveDigitsCount: Ember.computed('_data.paymentLastFiveDigits', function () {\n      const paymentLastFiveDigits = this?._data?.paymentLastFiveDigits || '';\n      if (RA.isNilOrEmpty(paymentLastFiveDigits)) {\n        return 0;\n      }\n      return 1;\n    }),\n    transporterLabelCount: Ember.computed('_data.transporterLabel', function () {\n      const transporterLabel = this?._data?.transporterLabel || '';\n      if (RA.isNilOrEmpty(transporterLabel)) {\n        return 0;\n      }\n      return 1;\n    }),\n    transporterAccountCount: Ember.computed('_data.transporterAccount', function () {\n      const transporterAccount = this?._data?.transporterAccount || '';\n      if (RA.isNilOrEmpty(transporterAccount)) {\n        return 0;\n      }\n      return 1;\n    }),\n    waybillCount: Ember.computed('_data.waybill', function () {\n      const waybill = this?._data?.waybill || '';\n      if (RA.isNilOrEmpty(waybill)) {\n        return 0;\n      }\n      return 1;\n    }),\n    packagesCount: Ember.computed('_data.packages', function () {\n      const packages = this?._data?.packages || '';\n      if (RA.isNilOrEmpty(packages)) {\n        return 0;\n      }\n      return 1;\n    }),\n    pickupLocationsCount: Ember.computed('_data.pickupLocations.[]', function () {\n      return this.getPropLength('_data.pickupLocations');\n    }),\n    productStatusesCount: Ember.computed('_data.productStatuses.[]', function () {\n      return this.getPropLength('_data.productStatuses');\n    }),\n    dispatchDateZCount: Ember.computed('_data.dispatchDateZ', function () {\n      const dispatchDateZ = this?._data?.dispatchDateZ || '';\n      if (RA.isNilOrEmpty(dispatchDateZ)) {\n        return 0;\n      }\n      return 1;\n    }),\n    dispatchProcessesCount: Ember.computed('_data.dispatchProcesses.[]', function () {\n      return this.getPropLength('_data.dispatchProcesses');\n    }),\n    sourceKeyCount: Ember.computed('_data.sourceKey', function () {\n      const sourceKey = this?._data?.sourceKey || '';\n      if (RA.isNilOrEmpty(sourceKey)) {\n        return 0;\n      }\n      return 1;\n    }),\n    salesPersonsCount: Ember.computed('_data.salesPersons.[]', function () {\n      return this.getPropLength('_data.salesPersons');\n    }),\n    documentStatusesCount: Ember.computed('_data.documentStatuses.[]', function () {\n      return this.getPropLength('_data.documentStatuses');\n    })\n  });\n});","define(\"client/pods/documents/lists/date-filter/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '6',\n        label: '6Months'\n      }, {\n        value: '12',\n        label: '12Months'\n      }, {\n        value: '24',\n        label: '24Months'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/date-range-filter/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '12',\n        label: 'last 1 year'\n      }, {\n        value: '24',\n        label: 'last 2 years'\n      }, {\n        value: '36',\n        label: 'last 3 years'\n      }, {\n        value: 'all',\n        label: 'all'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/deliverydatesoptions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        label: 'single delivery date',\n        value: 'single'\n      }, {\n        label: 'multiple delivery dates',\n        value: 'multiple'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/detail-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'inventory',\n        label: 'products'\n      }, {\n        value: this.get('constants.productTypes.virtual'),\n        label: 'product_type_virtual'\n      }, {\n        value: this.get('constants.productTypes.service'),\n        label: 'product_type_service'\n      }];\n      if (this.settings?.isFeatureAllowed('features.allowCollectOnBehalf')) {\n        data.push({\n          value: this.get('constants.productTypes.collectOnBehalf'),\n          label: 'product_type_collect_on_behalf'\n        });\n      }\n      data.push({\n        value: 'shippingFee',\n        label: 'shipping fee'\n      }, {\n        value: 'automations',\n        label: 'automations'\n      }, {\n        value: 'paymentFee',\n        label: 'payment fee'\n      });\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/discountmethods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'on total',\n        value: 'onTotal'\n        // }, {\n        //   label: 'per line',\n        //   value: 'perLine'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/filters/dispatch-status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: this.get('constants.dispatchStatus.undispatched'),\n        label: 'undispatched'\n      }, {\n        value: this.get('constants.dispatchStatus.dispatched'),\n        label: 'dispatched'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/filters/extra/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'inclTotal',\n        label: 'inclusive total'\n      }, {\n        value: 'paymentLastFiveDigits',\n        label: 'account last 5 digits'\n      }, {\n        value: 'transporterLabel',\n        label: 'transporter'\n      }, {\n        value: 'transporterAccount',\n        label: 'transporter account'\n      }, {\n        value: 'waybill',\n        label: 'waybill'\n      }, {\n        value: 'packages',\n        label: 'packages'\n      }, {\n        value: 'dispatchDateZ',\n        label: 'dispatch date'\n      }, {\n        value: 'sourceKey',\n        label: 'shop'\n      }, {\n        value: 'sortBy',\n        label: 'sort by'\n      }, {\n        value: 'groupDocumentsByTransporter',\n        label: 'group by transporter'\n      }, {\n        value: 'onlyEmptyTransporter',\n        label: 'only show orders without transporter'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/filters/products-status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        //   value: 'all',\n        //   label: 'all'\n        // }, {\n        value: this.get('constants.productsStatus.active'),\n        label: 'hasStock'\n      }, {\n        value: this.get('constants.productsStatus.preOrder'),\n        label: 'hasPreOrder'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'docNo',\n        label: 'document number'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'email',\n        label: 'email'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'address',\n        label: 'address'\n      }, {\n        value: 'waybill',\n        label: 'waybill'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'timestampZ_latest',\n        label: 'updated date'\n      }, {\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'timestampZ',\n        label: 'created date'\n      }, {\n        value: 'dispatchDateZ',\n        label: 'dispatch date'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'docNo',\n        label: 'document number'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'address',\n        label: 'address'\n      }, {\n        value: 'waybill',\n        label: 'waybill'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'email',\n        label: 'email'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/filters/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: this.get('constants.documentsStatus.draft'),\n        label: 'draft'\n      }, {\n        value: this.get('constants.documentsStatus.final'),\n        label: 'final'\n      }, {\n        value: this.get('constants.documentsStatus.void'),\n        label: 'void'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/hide-printed/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'hidePrintedAll',\n        label: 'hide all printed'\n      }, {\n        value: 'hidePrintedToday',\n        label: 'hide printed today'\n        // }, {\n        //   value: 'showCustomWaybills',\n        //   label: 'show imported waybills only'\n      }, {\n        value: '',\n        label: 'show all'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/import/dispatched/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    async findAll() {\n      return [{\n        headerValue: '',\n        value: '',\n        label: 'none'\n      }, {\n        headerValue: this.intl.t('contact'),\n        value: 'contact',\n        label: 'contact',\n        required: true\n      }, {\n        headerValue: this.intl.t('telephone'),\n        value: 'telephone',\n        label: 'telephone',\n        required: true\n      }, {\n        headerValue: this.intl.t('address'),\n        value: 'address',\n        label: 'address',\n        required: true\n      }, {\n        headerValue: this.intl.t('waybill'),\n        value: 'waybill',\n        label: 'waybill',\n        required: true\n      }, {\n        headerValue: this.intl.t('payment method'),\n        value: 'paymentMethodKey',\n        label: this.intl.t('payment method'),\n        required: true,\n        translate: false\n      }, {\n        headerValue: this.intl.t('total'),\n        value: 'inclTotal',\n        label: this.intl.t('total'),\n        required: true,\n        translate: false\n      }, {\n        headerValue: this.intl.t('notes'),\n        value: 'notes',\n        label: this.intl.t('notes'),\n        required: true,\n        translate: false\n      }, {\n        // headerValue: '參照編號',\n        headerValue: this.intl.t('ref'),\n        value: 'ref',\n        prop: 'ref',\n        label: this.intl.t('ref'),\n        translate: false\n      }, {\n        headerValue: '#',\n        value: 'docNo',\n        prop: 'docNo',\n        label: '#',\n        translate: false\n      }, {\n        headerValue: this.intl.t('transporter'),\n        value: 'transporterLabel',\n        prop: 'transporterLabel',\n        label: this.intl.t('transporter'),\n        translate: false\n      }, {\n        headerValue: this.intl.t('transporter account'),\n        value: 'transporterAccountNumber',\n        prop: 'transporterAccountNumber',\n        label: this.intl.t('transporter account'),\n        translate: false\n        // }, {\n        //   headerValue: '件數',\n        //   value: 'packages',\n        //   label: 'packages'\n        // }, {\n        //   headerValue: '託運單號',\n        //   value: 'dispatchDateZ',\n        //   label: 'dispatchDateZ'\n      }];\n    }\n  });\n});","define(\"client/pods/documents/lists/import/paid/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    async findAll() {\n      return [{\n        headerValue: '',\n        value: '',\n        label: 'none'\n      }, {\n        headerValue: '帳號',\n        value: 'paymentLastFiveDigits',\n        label: 'payment last 5 digits',\n        required: true\n      }, {\n        headerValue: '存',\n        value: 'inclTotal',\n        label: 'inclTotal',\n        required: true\n      }];\n    }\n  });\n});","define(\"client/pods/documents/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      options,\n      serverType\n    } = {}) {\n      const docType = options.docType;\n      const docName = options.docName;\n      const customData = {\n        list: [{\n          component: 'documents/panels-dash',\n          resource: `/api/protected/documents/${docType}/${docName}`,\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'dash',\n          className: 'show-when-overflow'\n        }, {\n          component: 'documents/panels-new',\n          resource: `/api/protected/documents/${docType}/${docName}`,\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'new',\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/documents/lists/menu/pos/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      options,\n      serverType\n    } = {}) {\n      const docType = options.docType;\n      const docName = options.docName;\n      const customData = {\n        list: [{\n          component: 'documents/panels-dash',\n          resource: `/api/protected/documents/${docType}/${docName}`,\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'dash',\n          className: 'show-when-overflow'\n        }, {\n          component: 'documents/panels-new',\n          resource: `/api/protected/documents/${docType}/${docName}`,\n          icon: 'fas fa-cash-register',\n          label: 'enter pos mode',\n          action: 'enterPosMode',\n          // this is only called on first time\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/documents/lists/pos/macros/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/lists/pos/macros',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documents/lists/print-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'withPrices',\n        label: 'with prices'\n      }, {\n        value: 'withoutPrices',\n        label: 'without prices'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/print/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'default',\n        label: 'standard printer',\n        translate: true\n      }, {\n        value: 'thermal',\n        label: 'thermal printer',\n        translate: true\n      }\n      // {\n      //   value: 'condensed',\n      //   label: 'condensed'\n      // }\n      ];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/print/barcodes-mode/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'showBarcodeImages',\n        label: 'show barcode with number',\n        translate: true\n      }, {\n        value: 'showBarcodeNumbersOnly',\n        label: 'show number only',\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/print/images-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const values = R.map(R.multiply(5), R.range(1, 15));\n      const data = R.map(value => ({\n        value,\n        label: `${value}px`\n      }))(values);\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/print/paper-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'A4',\n        label: 'A4',\n        translate: false\n      }, {\n        value: 'A5',\n        label: 'A5',\n        translate: false\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/print/product-code/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'hideCode',\n        label: 'hide product code',\n        translate: true\n      }, {\n        value: 'showCodeBelowItems',\n        label: 'show product code below items',\n        translate: true\n      }, {\n        value: 'showCodeNextToItems',\n        label: 'show product code next to items',\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/print/returns-display/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'hideReturns',\n        label: 'hide returns',\n        translate: true\n      }, {\n        value: 'showReturnsSeparately',\n        label: 'show returns underneath',\n        translate: true\n      }, {\n        value: 'showReturnsTogether',\n        label: 'show quantity and totals after returns',\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/print/unit/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'hideUnit',\n        label: 'hide unit',\n        translate: true\n      }, {\n        value: 'showUnitBelowItems',\n        label: 'show unit below items',\n        translate: true\n      }, {\n        value: 'showUnitNextToItems',\n        label: 'show unit next to items',\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'final',\n        label: 'final',\n        classNames: 'is-primary'\n      }, {\n        value: 'draft',\n        label: 'draft',\n        classNames: 'is-warning'\n      }, {\n        value: 'void',\n        label: 'void',\n        classNames: 'is-danger'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/documents/lists/types/doc-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: 'value',\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: '/api/protected/documents/sales/orders',\n          label: 'sales',\n          value: 'sales',\n          docType: 'sales'\n        }, {\n          resource: '/api/protected/documents/purchases/orders',\n          label: 'purchases',\n          value: 'purchases',\n          docType: 'purchases'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/documents/lists/types/purchases/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../../../utils/nventor'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: 'value',\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: '/api/protected/documents/purchases/quotes',\n          label: 'purchases-quotes',\n          value: 'purchases-quotes',\n          docType: 'purchases',\n          docName: 'quotes'\n        }, {\n          resource: '/api/protected/documents/purchases/orders',\n          label: 'purchases-orders',\n          value: 'purchases-orders',\n          docType: 'purchases',\n          docName: 'orders'\n        }, {\n          resource: '/api/protected/documents/purchases/consignments',\n          label: 'purchases-consignments',\n          value: 'purchases-consignments',\n          docType: 'purchases',\n          docName: 'consignments'\n        }, {\n          resource: '/api/protected/documents/purchases/consignments-returns',\n          label: 'purchases-consignments-returns',\n          value: 'purchases-consignments-returns',\n          docType: 'purchases',\n          docName: 'consignments-returns'\n        }, {\n          resource: '/api/protected/documents/purchases/invoices',\n          label: 'purchases-invoices',\n          value: 'purchases-invoices',\n          docType: 'purchases',\n          docName: 'invoices'\n        }, {\n          resource: '/api/protected/documents/purchases/returns',\n          label: 'purchases-returns',\n          value: 'purchases-returns',\n          docType: 'purchases',\n          docName: 'returns'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/documents/lists/types/sales/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../../../utils/nventor'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: 'value',\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: '/api/protected/documents/sales/quotes',\n          label: 'sales-quotes',\n          value: 'sales-quotes',\n          docType: 'sales',\n          docName: 'quotes'\n        }, {\n          resource: '/api/protected/documents/sales/orders',\n          label: 'sales-orders',\n          value: 'sales-orders',\n          docType: 'sales',\n          docName: 'orders'\n        }, {\n          resource: '/api/protected/documents/sales/consignments',\n          label: 'sales-consignments',\n          value: 'sales-consignments',\n          docType: 'sales',\n          docName: 'consignments'\n        }, {\n          resource: '/api/protected/documents/sales/consignments-returns',\n          label: 'sales-consignments-returns',\n          value: 'sales-consignments-returns',\n          docType: 'sales',\n          docName: 'consignments-returns'\n        }, {\n          resource: '/api/protected/documents/sales/invoices',\n          label: 'sales-invoices',\n          value: 'sales-invoices',\n          docType: 'sales',\n          docName: 'invoices'\n        }, {\n          resource: '/api/protected/documents/sales/returns',\n          label: 'sales-returns',\n          value: 'sales-returns',\n          docType: 'sales',\n          docName: 'returns'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/documents/mixins/adapters\", [\"exports\", \"client/mixins/adapters-new\", \"ramda\"], function (_exports, _adaptersNew, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../utils/nventor'\n  var _default = _exports.default = Ember.Mixin.create(_adaptersNew.default, {\n    serialize(model) {\n      const data = this._super(model);\n      const detailsRequiredAttrs = this.detailsRequiredAttrs;\n      const deliveryDateOption = data?.deliveryDateOption || false;\n      data.details = R.pipe(R.propOr([], 'details'), R.filter(detail => this.isNotEmptyDetail(detail, detailsRequiredAttrs)), R.map(detail => {\n        if (deliveryDateOption === 'single' && data?.docName === 'orders') {\n          detail.deliveryDateZ = data.deliveryDateZ;\n        }\n        return detail;\n      }))(data);\n      try {\n        delete data.transporterWaybillRecords;\n      } catch (e) {\n        console.error(e);\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/documents/mixins/calculations-always-inclusive\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Mixin.create((_dec = Ember._action, _obj = {\n    sumTotals() {\n      // @TODO: get from settings\n      const roundingCurrency = this.getData('roundingCurrency', this.getData('roundingCurrency', this.get('settings.roundingCurrency')));\n      const details = this.getData('details') || [];\n      const isTaxExclusive = this.isTaxExclusive;\n      const hasTaxMethod = this.hasTaxMethod;\n      let exclTotal = this.newBig(0);\n      let taxTotal = this.newBig(0);\n      let inclTotal = this.newBig(0);\n      this.set('details', details.map(detailModel => {\n        detailModel.calculateLineTotals({\n          isTaxExclusive,\n          hasTaxMethod\n        });\n        const detailExclAmt = detailModel.getData('exclAmt') || 0;\n        const detailTaxAmt = detailModel.getData('taxAmt') || 0;\n        const detailInclAmt = detailModel.getData('inclAmt') || 0;\n\n        // not rounding here because each detail is already rounded\n        exclTotal = exclTotal.plus(detailExclAmt);\n        taxTotal = taxTotal.plus(detailTaxAmt);\n        inclTotal = inclTotal.plus(detailInclAmt);\n        return detailModel;\n      }));\n      let exclTotalRounded;\n      let taxTotalRounded;\n      let inclTotalRounded;\n      taxTotalRounded = taxTotal.toFixed(roundingCurrency);\n      inclTotalRounded = inclTotal.toFixed(roundingCurrency);\n      exclTotalRounded = this.newBig(inclTotalRounded).minus(taxTotalRounded).toFixed(roundingCurrency);\n      this.setData('exclTotal', exclTotalRounded);\n      this.setData('taxTotal', taxTotalRounded);\n      this.setData('inclTotal', inclTotalRounded);\n      this._applyDiscount(exclTotalRounded, inclTotalRounded);\n      this._sumCommissionAmts();\n    },\n    /**\n     * checks if discount is a rate or amount (for both price exclusive/inclusive),\n     * returns rounded discount amount\n     */\n    _calculateDiscountTotal(isTaxExclusive, exclTotalRounded, inclTotalRounded) {\n      const roundingCurrency = this.getData('roundingCurrency', this.get('settings.roundingCurrency'));\n      let discRateBig = this.getDataBig('discountRate');\n      let discAmountBig = this.getDataBig('discountAmount');\n      if (this.isDiscountRate) {\n        if (discRateBig.gt(0)) {\n          // discount is %, divide by 100\n          discRateBig = discRateBig.div(100);\n          if (isTaxExclusive) {\n            discAmountBig = this.newBig(exclTotalRounded).times(discRateBig);\n          } else {\n            discAmountBig = this.newBig(inclTotalRounded).times(discRateBig);\n          }\n        } else {\n          return false;\n        }\n      }\n      if (discAmountBig.gt(0)) {\n        return discAmountBig.toFixed(roundingCurrency);\n      }\n      return false;\n    },\n    /**\n     * calculate new tax line item after discount\n     */\n    _calculateDetailTaxAmt(isTaxExclusive, lineAmtBig, detail) {\n      const unroundedCurrency = this.getData('unroundedCurrency', this.get('settings.unroundedCurrency'));\n      if (isTaxExclusive) {\n        const taxRate = detail.getData('taxRate');\n        return lineAmtBig.times(taxRate).toFixed(unroundedCurrency);\n      } else {\n        const taxRateBig = detail.getDataBig('taxRate');\n        const taxAmtBig = lineAmtBig.times(taxRateBig).div(taxRateBig.plus(1));\n        return taxAmtBig.toFixed(unroundedCurrency);\n      }\n    },\n    /**\n     * allocates discount total evenly to each detail line.\n     * calculates and sets new lower taxTotalRounded\n     */\n    _applyDocumentDiscountToDetails(isTaxExclusive, preDiscTotalRounded, discTotalRounded) {\n      const roundingCurrency = this.getData('roundingCurrency', this.get('settings.roundingCurrency'));\n      const unroundedCurrency = this.getData('unroundedCurrency', this.get('settings.unroundedCurrency'));\n      const details = this.getData('details');\n      let newTaxTotal = this.newBig();\n      let method;\n      if (isTaxExclusive) {\n        method = 'exclAmt';\n      } else {\n        method = 'inclAmt';\n      }\n      this.setData('details', details.map(detailModel => {\n        // allocate disc to each amt\n        let lineAmtBig = detailModel.getDataBig(method);\n        if (!lineAmtBig.eq(0)) {\n          const ratio = lineAmtBig.div(preDiscTotalRounded);\n          const discAmtBig = ratio.times(discTotalRounded);\n          lineAmtBig = lineAmtBig.minus(discAmtBig);\n          const unroundedTaxAmt = this._calculateDetailTaxAmt(isTaxExclusive, lineAmtBig, detailModel);\n          newTaxTotal = newTaxTotal.plus(unroundedTaxAmt);\n\n          // always use excl amt to calculate commission\n          if (!isTaxExclusive) {\n            // convert incl lineAmtBig to exclTax\n            lineAmtBig = lineAmtBig.minus(unroundedTaxAmt);\n          }\n          const qty = detailModel.getData('qty', 0);\n\n          // @TODO: should use discPrice be rounded/unrounded?\n          // @TODO: should use postDiscExclAmt be rounded/unrounded?\n          const discPriceRounded = lineAmtBig.div(qty).toFixed(roundingCurrency);\n          detailModel.setData('discPrice', discPriceRounded);\n          detailModel.setData('postDiscTax', unroundedTaxAmt);\n          detailModel.setData('postDiscExclAmt', lineAmtBig.toFixed(unroundedCurrency));\n          detailModel.setData('allocatedDiscount', discAmtBig.toFixed(unroundedCurrency));\n        }\n        return detailModel;\n      }));\n      return newTaxTotal.toFixed(roundingCurrency);\n    },\n    _removeDocumentDiscountFromDetails() {\n      const details = this.getData('details');\n      this.setData('details', details.map(detailModel => {\n        detailModel.setData('discPrice', '');\n        detailModel.setData('postDiscTax', '');\n        detailModel.setData('postDiscExclAmt', '');\n        detailModel.setData('allocatedDiscount', '');\n        return detailModel;\n      }));\n    },\n    _applyDiscount(exclTotalRounded, inclTotalRounded) {\n      const roundingCurrency = this.getData('roundingCurrency', this.get('settings.roundingCurrency'));\n      const isTaxExclusive = false;\n      const discTotalRounded = this._calculateDiscountTotal(isTaxExclusive, exclTotalRounded, inclTotalRounded);\n      if (discTotalRounded) {\n        // has discount\n\n        let docTotalBig;\n        let preDiscTotalRounded;\n        let postDiscExclTotalRounded;\n        let postDiscInclTotalRounded;\n        const preDiscExclTotal = exclTotalRounded;\n        docTotalBig = this.newBig(inclTotalRounded);\n        // set pre discount total\n        preDiscTotalRounded = inclTotalRounded;\n        postDiscInclTotalRounded = docTotalBig.minus(discTotalRounded).toFixed(roundingCurrency);\n        this.setData('inclTotal', postDiscInclTotalRounded);\n        this.setData('preDiscExclTotal', preDiscExclTotal);\n        // allocate TOTAL discount to each detail item and get new tax total\n        const taxTotalRounded = this._applyDocumentDiscountToDetails(isTaxExclusive, preDiscTotalRounded, discTotalRounded);\n        this.setData('taxTotal', taxTotalRounded);\n        this.setData('discInclTotal', discTotalRounded);\n        if (isTaxExclusive) {\n          postDiscInclTotalRounded = this.newBig(postDiscExclTotalRounded).plus(taxTotalRounded).toFixed(roundingCurrency);\n          this.setData('inclTotal', postDiscInclTotalRounded);\n        } else {\n          postDiscExclTotalRounded = this.newBig(postDiscInclTotalRounded).minus(taxTotalRounded).toFixed(roundingCurrency);\n          this.setData('exclTotal', postDiscExclTotalRounded);\n        }\n      } else {\n        this.setData('discInclTotal', '');\n        this.setData('preDiscExclTotal', '');\n        this._removeDocumentDiscountFromDetails();\n      }\n    },\n    _sumCommissionAmts() {\n      const roundingCurrency = this.getData('roundingCurrency', this.get('settings.roundingCurrency'));\n      const details = this.getData('details') || [];\n      let commissionTotalBig = this.newBig(0);\n      details.map(detailModel => {\n        const commissionAmt = detailModel.getData('commissionAmt') || 0;\n        commissionTotalBig = commissionTotalBig.plus(commissionAmt);\n        return detailModel;\n      });\n      this.setData('commissionTotal', commissionTotalBig.toFixed(roundingCurrency));\n    }\n  }, _applyDecoratedDescriptor(_obj, \"sumTotals\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"sumTotals\"), _obj), _obj));\n});","define(\"client/pods/documents/mixins/calculations-exclusive-or-inclusive\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  // eslint-disable-next-line ember/no-new-mixins\n  var _default = _exports.default = Ember.Mixin.create((_dec = Ember._action, _obj = {\n    dateService: Ember.inject.service('date'),\n    constants: Ember.inject.service(),\n    isDiscountAllowedForDetail(detailModel) {\n      if (detailModel.getData('discountAllowed') === false) {\n        return false;\n      }\n      const detailType = detailModel.getData('type') || '';\n      const isFee = R.includes(detailType, ['shippingFee', 'paymentFee']);\n      if (!isFee) {\n        return true;\n      }\n      let allowAllocateToFees = this.settings?.getProp('allowAllocatePromoCodeToShipping') || false;\n      if (this.getData('promoCode')) {\n        allowAllocateToFees = this.getData('promoCodeData.allowAllocatePromoCodeToShipping') || allowAllocateToFees;\n      }\n      return allowAllocateToFees;\n    },\n    sumTotals() {\n      const docType = this.getData('docType');\n      const docName = this.getData('docName');\n\n      // @TODO: get from settings\n      const roundingCurrency = this.getData('roundingCurrency', this.getData('roundingCurrency', this.get('settings.roundingCurrency')));\n      const details = this.getData('details') || [];\n      const isTaxExclusive = this.isTaxExclusive;\n      const hasTaxMethod = this.hasTaxMethod;\n      let exclTotal = this.newBig(0);\n      let taxTotal = this.newBig(0);\n      let inclTotal = this.newBig(0);\n      let discOnlyExclTotal = this.newBig(0);\n      let discOnlyInclTotal = this.newBig(0);\n      const rewardData = this.getData('rewardData') || {};\n      const rewardEventForOrder = this._getRewardEventForOrder({\n        rewardData\n      });\n      this.set('rewardEventForOrder', rewardEventForOrder);\n      this.set('details', details.map(detailModel => {\n        const isSetChild = detailModel.getData('isSetChild') || false;\n        if (isSetChild) {\n          return detailModel;\n        }\n        detailModel.calculateLineTotals({\n          isTaxExclusive,\n          hasTaxMethod\n        });\n        const detailExclAmt = detailModel.getData('exclAmt') || 0;\n        const detailTaxAmt = detailModel.getData('taxAmt') || 0;\n        const detailInclAmt = detailModel.getData('inclAmt') || 0;\n\n        // not rounding here because each detail is already rounded\n        const item = detailModel.getData('item') || '';\n        if (RA.isNotNilOrEmpty(item)) {\n          exclTotal = exclTotal.plus(detailExclAmt);\n          taxTotal = taxTotal.plus(detailTaxAmt);\n          inclTotal = inclTotal.plus(detailInclAmt);\n        }\n\n        // get discount only excl/incl total for applyDiscount\n        const discountAllowed = this.isDiscountAllowedForDetail(detailModel);\n        if (discountAllowed) {\n          discOnlyExclTotal = discOnlyExclTotal.plus(detailExclAmt);\n          discOnlyInclTotal = discOnlyInclTotal.plus(detailInclAmt);\n        }\n        return detailModel;\n      }));\n      let exclTotalRounded;\n      let inclTotalRounded;\n      const taxTotalRounded = taxTotal.toFixed(roundingCurrency);\n      if (this.isTaxExclusive) {\n        exclTotalRounded = exclTotal.toFixed(roundingCurrency);\n        inclTotalRounded = this.newBig(exclTotalRounded).plus(taxTotalRounded).toFixed(roundingCurrency);\n      } else {\n        inclTotalRounded = inclTotal.toFixed(roundingCurrency);\n        exclTotalRounded = this.newBig(inclTotalRounded).minus(taxTotalRounded).toFixed(roundingCurrency);\n      }\n      this.setData('exclTotal', exclTotalRounded);\n      this.setData('taxTotal', taxTotalRounded);\n      this.setData('inclTotal', inclTotalRounded);\n      const discOnlyExclTotalRounded = discOnlyExclTotal.toFixed(roundingCurrency);\n      const discOnlyInclTotalRounded = discOnlyInclTotal.toFixed(roundingCurrency);\n      this._applyDiscount({\n        exclTotalRounded,\n        inclTotalRounded,\n        discOnlyExclTotalRounded,\n        discOnlyInclTotalRounded\n      });\n      this._applyReward({\n        rewardEventForOrder\n      });\n      if (docType === 'sales' && docName === 'returns') {\n        const details = this.getData('details') || [];\n        const creditCardRefundTotalBig = R.reduce((acc, detail) => {\n          const isSetChild = detail.getData('isSetChild') || false;\n          if (!isSetChild) {\n            const qty = Number(detail.getData('qty')) || 0;\n            const originalQty = Number(detail.getData('originalQty')) || 0;\n            if (detail.getData('paymentCreditCardStatus') === this.constants.paymentCreditCardStatus.refundRequested && qty > 0) {\n              let postDiscInclAmt = detail.getData('postDiscInclAmt') || 0;\n              if (R.gt(originalQty, 0)) {\n                postDiscInclAmt = this.newBig(postDiscInclAmt).times(qty).div(originalQty).toFixed(roundingCurrency);\n              }\n              acc = acc.plus(postDiscInclAmt);\n            }\n          }\n          return acc;\n        }, this.newBig(0))(details);\n        this.set('creditCardRefundTotal', creditCardRefundTotalBig.toFixed(roundingCurrency));\n      }\n      this._sumCommissionAmts();\n    },\n    /**\n     * checks if discount is a rate or amount (for both price exclusive/inclusive),\n     * returns rounded discount amount\n     */\n    _calculateDiscountTotal(isTaxExclusive, exclTotalRounded, inclTotalRounded) {\n      const roundingCurrency = this.getData('roundingCurrency', this.get('settings.roundingCurrency'));\n      let discRateBig = this.getDataBig('discountRate');\n      const discountMethod = this.getData('discountMethod') || this.constants.discountMethods.onTotal;\n      let discAmountBig = this.newBig();\n      if (this.isDiscountRate) {\n        if (discountMethod === this.constants.discountMethods.onTotal) {\n          if (discRateBig.gt(0)) {\n            // discount is %, divide by 100\n            discRateBig = discRateBig.div(100);\n            if (isTaxExclusive) {\n              discAmountBig = this.newBig(exclTotalRounded).times(discRateBig);\n            } else {\n              discAmountBig = this.newBig(inclTotalRounded).times(discRateBig);\n            }\n            if (discAmountBig.gt(0)) {\n              return discAmountBig.toFixed(roundingCurrency);\n            }\n            return false;\n          } else {\n            return false;\n          }\n        } else {\n          const details = this.getData('details') || [];\n          R.forEach(detailModel => {\n            let discAmountForDetailBig = this.newBig();\n            const isSetChild = detailModel.getData('isSetChild') || false;\n            const discountAllowed = this.isDiscountAllowedForDetail(detailModel);\n            if (isSetChild || !discountAllowed) {\n              return;\n            }\n            discRateBig = detailModel.getDataBig('discountRate');\n            discRateBig = discRateBig.div(100);\n            if (isTaxExclusive) {\n              const exclAmt = detailModel.getData('exclAmt') || 0;\n              discAmountForDetailBig = this.newBig(exclAmt).times(discRateBig);\n            } else {\n              const inclAmt = detailModel.getData('inclAmt') || 0;\n              discAmountForDetailBig = this.newBig(inclAmt).times(discRateBig);\n            }\n            discAmountBig = discAmountBig.plus(discAmountForDetailBig.toFixed(roundingCurrency));\n          })(details);\n          if (discAmountBig.gt(0)) {\n            return discAmountBig.toFixed(roundingCurrency);\n          }\n          return false;\n        }\n      }\n      if (!this.isDiscountRate) {\n        const discAmountBig = this.getDataBig('discountAmount');\n        if (this.getData('docType') === 'sales' && this.getData('docName') === 'returns') {\n          const isReturnAllDiscountAmount = this.get('isReturnAllDiscountAmount') || false;\n          const details = this.getData('details');\n          let discountAmountTotal = this.newBig();\n          R.forEach(detailModel => {\n            const isSetChild = detailModel.getData('isSetChild') || false;\n            if (!isSetChild) {\n              // Match allocate: disallowed return lines must not rebuild into discountAmount\n              // (otherwise the full total dumps onto remaining allowed lines).\n              if (!this.isDiscountAllowedForDetail(detailModel)) {\n                return;\n              }\n              const returnedQty = detailModel.getDataBig('qty');\n              const originalQty = detailModel.getDataBig('originalQty');\n              const allocatedInclDiscountAmount = detailModel?._data?.returnPointsData?.allocatedInclDiscountAmount || detailModel?._data?.allocatedInclDiscountAmount || 0;\n              const allocatedInclDiscountAmountBig = this.newBig(allocatedInclDiscountAmount);\n              let discountAmount;\n              if (isReturnAllDiscountAmount) {\n                discountAmount = allocatedInclDiscountAmountBig;\n              }\n              if (!isReturnAllDiscountAmount) {\n                if (!originalQty.gt(0)) {\n                  return;\n                }\n                discountAmount = allocatedInclDiscountAmountBig.times(returnedQty).div(originalQty);\n              }\n              discountAmountTotal = discountAmountTotal.plus(discountAmount);\n            }\n          })(details);\n\n          // Match invoice amount branch: truthy \"0.00\" would take the has-discount path.\n          if (!discountAmountTotal.gt(0)) {\n            this.setData('discountAmount', '');\n            return false;\n          }\n          this.setData('discountAmount', discountAmountTotal.toFixed(roundingCurrency));\n          return discountAmountTotal.toFixed(roundingCurrency);\n        }\n        if (discAmountBig.gt(0)) {\n          return discAmountBig.toFixed(roundingCurrency);\n        } else {\n          return false;\n        }\n      }\n      return false;\n    },\n    /**\n     * calculate new tax line item after discount\n     */\n    _calculateDetailTaxAmt(isTaxExclusive, lineAmtBig, detail) {\n      const unroundedCurrency = this.getData('unroundedCurrency', this.get('settings.unroundedCurrency'));\n      if (isTaxExclusive) {\n        const taxRate = detail.getData('taxRate');\n        return lineAmtBig.times(taxRate).toFixed(unroundedCurrency);\n      } else {\n        const taxRateBig = detail.getDataBig('taxRate');\n        const taxAmtBig = lineAmtBig.times(taxRateBig).div(taxRateBig.plus(1));\n        return taxAmtBig.toFixed(unroundedCurrency);\n      }\n    },\n    /**\n     * allocates discount total to eligible detail lines.\n     * calculates and sets new lower taxTotalRounded\n     */\n    _applyDocumentDiscountToDetails({\n      isTaxExclusive,\n      preDiscTotalRounded,\n      discTotalRounded,\n      allowedProperty,\n      combineWithExistingDiscount = false,\n      allocateUsingDetailRate = false\n    }) {\n      const roundingCurrency = this.getData('roundingCurrency', this.get('settings.roundingCurrency'));\n      const unroundedCurrency = this.getData('unroundedCurrency', this.get('settings.unroundedCurrency'));\n      const details = this.getData('details');\n      let newTaxTotal = this.newBig();\n      let method;\n      if (isTaxExclusive) {\n        method = 'exclAmt';\n      } else {\n        method = 'inclAmt';\n      }\n      this.setData('details', details.map(detailModel => {\n        const isSetChild = detailModel.getData('isSetChild') || false;\n        if (isSetChild) {\n          return detailModel;\n        }\n        let isAllowed = RA.isNilOrEmpty(allowedProperty) || detailModel.getData(allowedProperty) !== false;\n        if (allowedProperty === 'discountAllowed') {\n          isAllowed = this.isDiscountAllowedForDetail(detailModel);\n        }\n        if (!isAllowed) {\n          const postDiscTax = detailModel.getData('postDiscTax');\n          const currentTax = combineWithExistingDiscount && RA.isNotNilOrEmpty(postDiscTax) ? postDiscTax : detailModel.getData('taxAmt') || 0;\n          newTaxTotal = newTaxTotal.plus(currentTax);\n          if (!combineWithExistingDiscount) {\n            detailModel.setData('discPrice', '');\n            detailModel.setData('postDiscTax', '');\n            detailModel.setData('postDiscExclAmt', '');\n            detailModel.setData('allocatedDiscount', '');\n          }\n          return detailModel;\n        }\n\n        // allocate disc to each amt\n        let lineAmtBig = detailModel.getDataBig(method);\n        const existingDiscountBig = combineWithExistingDiscount ? this.newBig(detailModel.getData('allocatedDiscount') || 0) : this.newBig(0);\n        lineAmtBig = lineAmtBig.minus(existingDiscountBig);\n        if (lineAmtBig.lt(0)) {\n          lineAmtBig = this.newBig(0);\n        }\n        if (!lineAmtBig.eq(0)) {\n          let discAmtBig = this.newBig();\n          if (allocateUsingDetailRate) {\n            const detailDiscountRateBig = detailModel.getDataBig('discountRate').div(100);\n            discAmtBig = this.newBig(lineAmtBig.times(detailDiscountRateBig).toFixed(roundingCurrency));\n          } else {\n            let ratio = this.newBig();\n            if (this.newBig(preDiscTotalRounded).gt(0)) {\n              ratio = lineAmtBig.div(preDiscTotalRounded);\n            }\n            discAmtBig = ratio.times(discTotalRounded);\n          }\n          lineAmtBig = lineAmtBig.minus(discAmtBig);\n          const unroundedTaxAmt = this._calculateDetailTaxAmt(isTaxExclusive, lineAmtBig, detailModel);\n          newTaxTotal = newTaxTotal.plus(unroundedTaxAmt);\n\n          // always use excl amt to calculate commission\n          if (!isTaxExclusive) {\n            // convert incl lineAmtBig to exclTax\n            lineAmtBig = lineAmtBig.minus(unroundedTaxAmt);\n          }\n          const qtyBig = detailModel.getDataBig('qty');\n\n          // @TODO: should use discPrice be rounded/unrounded?\n          // @TODO: should use postDiscExclAmt be rounded/unrounded?\n          let discPriceRounded = 0;\n          if (qtyBig.gt(0)) {\n            discPriceRounded = lineAmtBig.div(qtyBig).toFixed(roundingCurrency);\n          }\n          detailModel.setData('discPrice', discPriceRounded);\n          detailModel.setData('postDiscTax', unroundedTaxAmt);\n          detailModel.setData('postDiscExclAmt', lineAmtBig.toFixed(unroundedCurrency));\n          const allocatedDiscountBig = existingDiscountBig.plus(discAmtBig);\n          detailModel.setData('allocatedDiscount', allocatedDiscountBig.toFixed(unroundedCurrency));\n        } else {\n          const postDiscTax = detailModel.getData('postDiscTax');\n          const currentTax = combineWithExistingDiscount && RA.isNotNilOrEmpty(postDiscTax) ? postDiscTax : detailModel.getData('taxAmt') || 0;\n          newTaxTotal = newTaxTotal.plus(currentTax);\n          if (!combineWithExistingDiscount) {\n            detailModel.setData('discPrice', '');\n            detailModel.setData('postDiscTax', '');\n            detailModel.setData('postDiscExclAmt', '');\n            detailModel.setData('allocatedDiscount', '');\n          }\n        }\n        return detailModel;\n      }));\n      return newTaxTotal.toFixed(roundingCurrency);\n    },\n    _removeDocumentDiscountFromDetails() {\n      const details = this.getData('details');\n      this.setData('details', details.map(detailModel => {\n        detailModel.setData('discPrice', '');\n        detailModel.setData('postDiscTax', '');\n        detailModel.setData('postDiscExclAmt', '');\n        detailModel.setData('allocatedDiscount', '');\n        return detailModel;\n      }));\n    },\n    _getRewardAllocationTotalRounded({\n      isTaxExclusive,\n      roundingCurrency\n    }) {\n      const method = isTaxExclusive ? 'exclAmt' : 'inclAmt';\n      const details = this.getData('details') || [];\n      const allocationTotalBig = R.reduce((totalBig, detailModel) => {\n        const isSetChild = detailModel.getData('isSetChild') === true;\n        const isRewardSpendAllowed = detailModel.getData('isRewardSpendAllowed') !== false;\n        if (isSetChild || !isRewardSpendAllowed) {\n          return totalBig;\n        }\n        const existingDiscountBig = this.newBig(detailModel.getData('allocatedDiscount') || 0);\n        const allocationLineAmountBig = detailModel.getDataBig(method).minus(existingDiscountBig);\n        if (allocationLineAmountBig.lte(0)) {\n          return totalBig;\n        }\n        return totalBig.plus(allocationLineAmountBig);\n      }, this.newBig(0))(details);\n      return allocationTotalBig.toFixed(roundingCurrency);\n    },\n    _capTotalToAllocation({\n      total,\n      allocationTotal,\n      roundingCurrency\n    }) {\n      const totalBig = this.newBig(total);\n      const allocationTotalBig = this.newBig(allocationTotal);\n      if (totalBig.lte(0) || allocationTotalBig.lte(0)) {\n        return false;\n      }\n      if (totalBig.gt(allocationTotalBig)) {\n        return allocationTotalBig.toFixed(roundingCurrency);\n      }\n      return totalBig.toFixed(roundingCurrency);\n    },\n    /**\n     * Apply and calculate reward points to document\n     * @param {Object} args\n     * @param {Object} args.rewardEventForOrder - reward event for order\n     * @return {void}\n     */\n    _applyReward({\n      rewardEventForOrder\n    }) {\n      if (RA.isNilOrEmpty(rewardEventForOrder)) {\n        this.setData('rewardAmountTotal', '');\n        this.setData('rewardAmountTotalWithoutPromoCode', '');\n        this.setData('rewardInclTotal', '');\n        return;\n      }\n      const roundingCurrency = this.getData('roundingCurrency', this.get('settings.roundingCurrency'));\n      let rewardTotalRounded = 0;\n      const ratePerPointBig = this.newBig(rewardEventForOrder.ratePerPoint || 0);\n      const pointApplied = this.getData('rewardPointApplied') || 0;\n      if (ratePerPointBig.gt(0)) {\n        rewardTotalRounded = this.newBig(pointApplied).times(ratePerPointBig).toFixed(roundingCurrency);\n      }\n      const requestedRewardTotalBig = this.newBig(rewardTotalRounded);\n      const isTaxExclusive = false;\n      const exclTotalRounded = this.getData('exclTotal');\n      const inclTotalRounded = this.getData('inclTotal');\n      const originalPreDiscExclTotal = this.getData('preDiscExclTotal') || exclTotalRounded;\n      const allocationTotalRounded = this._getRewardAllocationTotalRounded({\n        isTaxExclusive,\n        roundingCurrency\n      });\n      rewardTotalRounded = this._capTotalToAllocation({\n        total: rewardTotalRounded,\n        allocationTotal: allocationTotalRounded,\n        roundingCurrency\n      });\n      // Cap returns false when nothing is spend-eligible. newBig(false) → 0 would\n      // otherwise look like a real cap and permanently wipe rewardPointApplied.\n      if (ratePerPointBig.gt(0) && rewardTotalRounded !== false && this.newBig(rewardTotalRounded).lt(requestedRewardTotalBig)) {\n        const cappedPointAppliedBig = this.newBig(rewardTotalRounded).div(ratePerPointBig).round(0, 0);\n        rewardTotalRounded = cappedPointAppliedBig.times(ratePerPointBig).round(roundingCurrency, 0).toFixed(roundingCurrency);\n        this.setData('rewardPointApplied', cappedPointAppliedBig.toFixed(0));\n      }\n      if (this.newBig(rewardTotalRounded).gt(0)) {\n        this.setData('rewardAmountTotal', rewardTotalRounded);\n        this.setData('rewardAmountTotalWithoutPromoCode', rewardTotalRounded);\n        let docTotalBig;\n        let preDiscTotalRounded;\n        let postDiscExclTotalRounded;\n        let postDiscInclTotalRounded;\n        if (isTaxExclusive) {\n          docTotalBig = this.newBig(exclTotalRounded);\n\n          // set pre discount total\n          preDiscTotalRounded = exclTotalRounded;\n          // calculate post discount amount\n          postDiscExclTotalRounded = docTotalBig.minus(rewardTotalRounded).toFixed(roundingCurrency);\n          this.setData('preDiscExclTotal', preDiscTotalRounded);\n          this.setData('exclTotal', postDiscExclTotalRounded);\n        } else {\n          docTotalBig = this.newBig(inclTotalRounded);\n          // set pre discount total\n          preDiscTotalRounded = inclTotalRounded;\n          postDiscInclTotalRounded = docTotalBig.minus(rewardTotalRounded).toFixed(roundingCurrency);\n          this.setData('inclTotal', postDiscInclTotalRounded);\n        }\n        this.setData('preDiscExclTotal', originalPreDiscExclTotal);\n        const taxTotalRounded = this._applyDocumentDiscountToDetails({\n          isTaxExclusive,\n          preDiscTotalRounded: allocationTotalRounded,\n          discTotalRounded: rewardTotalRounded,\n          allowedProperty: 'isRewardSpendAllowed',\n          combineWithExistingDiscount: true\n        });\n        this.setData('taxTotal', taxTotalRounded);\n        this.setData('rewardInclTotal', rewardTotalRounded);\n        if (isTaxExclusive) {\n          postDiscInclTotalRounded = this.newBig(postDiscExclTotalRounded).plus(taxTotalRounded).toFixed(roundingCurrency);\n          this.setData('inclTotal', postDiscInclTotalRounded);\n        } else {\n          postDiscExclTotalRounded = this.newBig(postDiscInclTotalRounded).minus(taxTotalRounded).toFixed(roundingCurrency);\n          this.setData('exclTotal', postDiscExclTotalRounded);\n        }\n      } else {\n        this.setData('rewardAmountTotal', '');\n        this.setData('rewardAmountTotalWithoutPromoCode', '');\n        this.setData('rewardInclTotal', '');\n      }\n    },\n    /**\n     * Apply discount to document\n     * @param {Object} args\n     * @param {String|Number} args.exclTotalRounded - excl total rounded\n     * @param {String|Number} args.inclTotalRounded - incl total rounded\n     * @param {String|Number} args.discOnlyExclTotalRounded - item only excl total rounded\n     * @param {String|Number} args.discOnlyInclTotalRounded - item only incl total rounded\n     */\n    _applyDiscount({\n      exclTotalRounded,\n      inclTotalRounded,\n      discOnlyExclTotalRounded,\n      discOnlyInclTotalRounded\n    }) {\n      const roundingCurrency = this.getData('roundingCurrency', this.get('settings.roundingCurrency'));\n      const isTaxExclusive = false;\n      const allocationTotalRounded = isTaxExclusive ? discOnlyExclTotalRounded : discOnlyInclTotalRounded;\n      const discountMethod = this.getData('discountMethod') || this.constants.discountMethods.onTotal;\n      const allocateUsingDetailRate = this.isDiscountRate && discountMethod === this.constants.discountMethods.perLine;\n      // @TODO: @Darwin should fix this.\n      let discTotalRounded = this._calculateDiscountTotal(isTaxExclusive, discOnlyExclTotalRounded, discOnlyInclTotalRounded);\n      const isSalesReturns = this.getData('docType') === 'sales' && this.getData('docName') === 'returns';\n      // Amount cap is invoice-only. Returns already rebuild discountAmount from original\n      // allocations in _calculateDiscountTotal; capping to current eligible totals under-returns.\n      if (!this.isDiscountRate && !isSalesReturns) {\n        discTotalRounded = this._capTotalToAllocation({\n          total: discTotalRounded,\n          allocationTotal: allocationTotalRounded,\n          roundingCurrency\n        });\n        // Cap falsy (e.g. every line has Allow discount off) must clear the amount field too;\n        // the else branch only clears discInclTotal and would leave a stale discountAmount.\n        if (!discTotalRounded) {\n          this.setData('discountAmount', '');\n        }\n      }\n      // const discTotalRounded = this._calculateDiscountTotal(isTaxExclusive, exclTotalRounded, inclTotalRounded)\n      if (discTotalRounded) {\n        // has discount\n\n        let docTotalBig;\n        let preDiscTotalRounded;\n        let postDiscExclTotalRounded;\n        let postDiscInclTotalRounded;\n        const preDiscExclTotal = exclTotalRounded;\n        if (isTaxExclusive) {\n          docTotalBig = this.newBig(exclTotalRounded);\n\n          // set pre discount total\n          preDiscTotalRounded = exclTotalRounded;\n          // calculate post discount amount\n          postDiscExclTotalRounded = docTotalBig.minus(discTotalRounded).toFixed(roundingCurrency);\n          this.setData('preDiscExclTotal', preDiscTotalRounded);\n          this.setData('exclTotal', postDiscExclTotalRounded);\n        } else {\n          docTotalBig = this.newBig(inclTotalRounded);\n          // set pre discount total\n          preDiscTotalRounded = inclTotalRounded;\n          postDiscInclTotalRounded = docTotalBig.minus(discTotalRounded).toFixed(roundingCurrency);\n          this.setData('inclTotal', postDiscInclTotalRounded);\n        }\n        this.setData('preDiscExclTotal', preDiscExclTotal);\n        // allocate TOTAL discount to each detail item and get new tax total\n        const taxTotalRounded = this._applyDocumentDiscountToDetails({\n          isTaxExclusive,\n          preDiscTotalRounded: allocationTotalRounded,\n          discTotalRounded,\n          allowedProperty: 'discountAllowed',\n          allocateUsingDetailRate\n        });\n        this.setData('taxTotal', taxTotalRounded);\n        this.setData('discInclTotal', discTotalRounded);\n        if (isTaxExclusive) {\n          postDiscInclTotalRounded = this.newBig(postDiscExclTotalRounded).plus(taxTotalRounded).toFixed(roundingCurrency);\n          this.setData('inclTotal', postDiscInclTotalRounded);\n        } else {\n          postDiscExclTotalRounded = this.newBig(postDiscInclTotalRounded).minus(taxTotalRounded).toFixed(roundingCurrency);\n          this.setData('exclTotal', postDiscExclTotalRounded);\n        }\n      } else {\n        this.setData('discInclTotal', '');\n        this.setData('preDiscExclTotal', '');\n        this._removeDocumentDiscountFromDetails();\n      }\n    },\n    _sumCommissionAmts() {\n      const roundingCurrency = this.getData('roundingCurrency', this.get('settings.roundingCurrency'));\n      const details = this.getData('details') || [];\n      let commissionTotalBig = this.newBig(0);\n      details.map(detailModel => {\n        const commissionAmt = detailModel.getData('commissionAmt') || 0;\n        commissionTotalBig = commissionTotalBig.plus(commissionAmt);\n        return detailModel;\n      });\n      this.setData('commissionTotal', commissionTotalBig.toFixed(roundingCurrency));\n    },\n    /**\n     * Get reward event for order\n     * @param {Object} rewardData - reward data\n     * @return {Object} - reward event\n     */\n    _getRewardEventForOrder({\n      rewardData\n    }) {\n      if (RA.isNilOrEmpty(rewardData)) {\n        return {};\n      }\n      let rewardEventForOrder = this.get('rewardEventForOrder') || {};\n      const contactRewardsData = this.getData('fetchedContactRewardData') || {};\n      if (RA.isNilOrEmpty(rewardEventForOrder) && RA.isNotNilOrEmpty(contactRewardsData)) {\n        const memberLevelId = R.propOr('', 'memberLevelId')(contactRewardsData);\n        rewardEventForOrder = R.pipe(R.propOr([], 'memberLevels'), R.find(R.propEq('memberLevelId', memberLevelId)), R.propOr([], 'rewardsEvents'), R.find(R.propEq('type', this.constants.rewardEvents.order)))(rewardData) || {};\n      }\n      return rewardEventForOrder;\n    }\n  }, _applyDecoratedDescriptor(_obj, \"sumTotals\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"sumTotals\"), _obj), _obj));\n});","define(\"client/pods/documents/mixins/calculations\", [\"exports\", \"client/pods/documents/mixins/calculations-exclusive-or-inclusive\"], function (_exports, _calculationsExclusiveOrInclusive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import TaxCalculationsMethodMixin from './calculations-always-inclusive'\n  var _default = _exports.default = Ember.Mixin.create(_calculationsExclusiveOrInclusive.default);\n});","define(\"client/pods/documents/mixins/contacts\", [\"exports\", \"client/pods/components/documents/docConfig\", \"ramda-adjunct\", \"ramda\"], function (_exports, _docConfig, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    intl: Ember.inject.service(),\n    loadContact({\n      docType,\n      contact,\n      paymentMethodsList,\n      paymentTermsList\n    }) {\n      const key = contact.getData('_key');\n      const salesPersons = contact.getData('salesPersons', []);\n      const config = _docConfig.default.getFor({\n        docType,\n        docName: this._data.docName\n      });\n      this.set('selectedContact', contact);\n      this.setData('contactKey', key);\n      this.setData('salesPersons', salesPersons);\n      this.setData('birthday', contact.getData('birthday'));\n      const toLoadName = contact?._data?.name || '';\n      if (toLoadName && toLoadName != this.getData('contact')) {\n        this.setData('contact', toLoadName);\n      }\n\n      // When load contact and is pos, only override contact keys.\n      const isPos = R.pathEq(['_data', 'isPos'], true)(this);\n      if (isPos) {\n        this.loadContactPerson();\n        // When final do not override\n        const isFinal = R.pathEq(['_data', 'status'], 'final')(this);\n        if (isFinal) {\n          return;\n        }\n      }\n      if (config.hasTaxNumber) {\n        this.setData('taxNumber', contact.getData('taxNumber'));\n        this.setData('companyName', contact.getData('companyName'));\n        this.setData('twEInvoiceCarrierId', contact.getData('twEInvoiceCarrierId'));\n        this.setData('twEInvoiceCarrierType', contact.getData('twEInvoiceCarrierType'));\n      }\n      const settingsModel = this.settings.getModel();\n      let autoPrintInvoices = contact.getData('autoPrintInvoices');\n      if (autoPrintInvoices === this.constants.invoicing.auto || !autoPrintInvoices) {\n        autoPrintInvoices = settingsModel.getData('autoPrintInvoices');\n      }\n      this.setData('autoPrintInvoices', autoPrintInvoices);\n      this.setData('twEInvoicePrint', false); // @TODO: what does this do?\n      this.setData('roundingCurrency', contact.getData('roundingCurrency', settingsModel.getData('roundingCurrency')));\n      this.setData('unroundedCurrency', contact.getData('unroundedCurrency', settingsModel.getData('unroundedCurrency')));\n      this.setData('roundingInventoryQty', contact.getData('roundingInventoryQty', settingsModel.getData('roundingInventoryQty')));\n      this.setData('roundingInventoryPrice', contact.getData('roundingInventoryPrice', settingsModel.getData('roundingInventoryPrice')));\n      let contactRelationship = this?._data?.contactRelationship || '';\n      if (RA.isNilOrEmpty(contactRelationship)) {\n        if (R.equals(docType, 'sales')) {\n          contactRelationship = 'customer';\n        }\n        if (R.equals(docType, 'purchases')) {\n          contactRelationship = 'supplier';\n        }\n      }\n      let relevantDocType = docType;\n      if (R.includes(this._data.docName, ['invoices', 'returns'])) {\n        const contactRelationships = contact.getData('relationships') || [];\n        if (R.equals(R.length(contactRelationships), 1)) {\n          contactRelationship = R.head(contactRelationships);\n        }\n      }\n\n      // loading contact payment method using whatever the relevant docType is\n      relevantDocType = 'purchases';\n      if (R.equals(contactRelationship, 'customer')) {\n        relevantDocType = 'sales';\n      }\n      this._loadContactPaymentMethod({\n        docType: relevantDocType,\n        docName: this._data.docName,\n        contact,\n        paymentMethodsList,\n        paymentTermsList\n      });\n      this.setData('contactRelationship', contactRelationship);\n\n      // if taxtMethod is on auto, do not change taxMethod as it is already set by panel defaults\n      const contactTaxMethodKey = contact.getData(`${docType}TaxMethodKey`);\n      if (contactTaxMethodKey !== 'auto' && contactTaxMethodKey !== '' && contactTaxMethodKey != null) {\n        // not auto\n        this.setData('taxMethodKey', contactTaxMethodKey);\n      }\n      this.loadContactPerson();\n    },\n    unloadContact() {\n      const empty = '';\n      const emptyArray = [];\n      this.set('selectedContact', empty);\n      this.setData('contactRelationship', empty);\n      this.setData('contact', empty);\n      this.setData('contactKey', empty);\n      this.setData('birthday', empty);\n      this.setData('salesPersons', emptyArray);\n      this.setData('address', empty);\n      this.setData('email', empty);\n      this.setData('telephone', empty);\n      this.setData('twEInvoicePrint', false);\n    },\n    _loadContactPaymentMethod({\n      docType,\n      docName,\n      contact,\n      paymentMethodsList,\n      paymentTermsList\n    }) {\n      // load payment method when it's not a consignment doc\n      // if it's consignment doc, check if the contact payment method is consignment too or not\n      const salesPaymentMethodKey = contact.getData('salesPaymentMethodKey');\n      const purchasesPaymentMethodKey = contact.getData('purchasesPaymentMethodKey');\n      const isNotConsignmentsDoc = !R.equals(docName, 'consignments') && !R.equals(docName, 'consignments-returns');\n      const contactsPaymentMethodIsConsignments = R.equals(docType, 'sales') && R.equals(salesPaymentMethodKey, 'consignment') || R.equals(docType, 'purchases') && R.equals(purchasesPaymentMethodKey, 'consignment');\n      if (isNotConsignmentsDoc || contactsPaymentMethodIsConsignments) {\n        const paymentMethodKey = contact.getData(`${docType}PaymentMethodKey`);\n        const paymentMethodCustomLabel = contact.getData(`${docType}PaymentMethodCustomLabel`);\n        if (paymentMethodKey !== 'auto' && paymentMethodKey !== '' && paymentMethodKey != null) {\n          let paymentMethod = paymentMethodsList.findBy('_data.value', paymentMethodKey);\n          if (RA.isNotNilOrEmpty(paymentMethodCustomLabel)) {\n            paymentMethod = paymentMethodsList.findBy('_data.customLabel', paymentMethodCustomLabel);\n          }\n          this.loadPaymentMethod({\n            paymentMethod,\n            paymentMethodKey\n          });\n        }\n        const paymentTermsKey = contact.getData(`${docType}PaymentTermsKey`);\n        if (paymentTermsKey !== 'auto' && paymentTermsKey !== '' && paymentTermsKey != null) {\n          const paymentTerms = paymentTermsList.findBy('_data._key', paymentTermsKey);\n          this.setData('paymentTermsKey', paymentTermsKey);\n          this.loadPaymentTerms({\n            paymentTerms,\n            paymentTermsKey\n          });\n        }\n      }\n    },\n    // loadDefaultContactDetails () {\n    //   const personOrDepartment = this.loadContactPerson()\n    //   this.loadContactTelephone(personOrDepartment)\n    // },\n\n    loadContactPerson(personOrDepartment) {\n      const selectedContact = this.selectedContact;\n      if (selectedContact) {\n        if (!personOrDepartment && selectedContact.getDefaultPersonOrDepartment) {\n          personOrDepartment = selectedContact.getDefaultPersonOrDepartment(this.getData('docType'), this.getData('docName'));\n        }\n        let parent = selectedContact;\n        if (personOrDepartment) {\n          this.setData('person', personOrDepartment.getData('name'));\n          parent = personOrDepartment;\n        }\n        this.loadDetail(selectedContact, parent, 'telephone', 'phone');\n        this.loadDetail(selectedContact, parent, 'email', 'email');\n        this.loadDetail(selectedContact, parent, 'address', 'address');\n        return personOrDepartment;\n      }\n    },\n    loadDetail(selectedContact, personOrDepartment, setProp, type) {\n      const defaultDetail = personOrDepartment.getDefaultDetail({\n        contact: selectedContact,\n        type\n      });\n      let value = '';\n      if (defaultDetail) {\n        value = defaultDetail.getData('value');\n      }\n      if (value) {\n        this.setData(setProp, value);\n      }\n      return defaultDetail;\n    }\n  });\n});","define(\"client/pods/documents/mixins/details\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/mixins/sortable-details\"], function (_exports, R, RA, _sortableDetails) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_sortableDetails.default, {\n    newBlankDetail({\n      taxesList,\n      bulkInsert = false\n    }) {\n      const details = this.getOrSetData('details', []);\n      const lastDetail = details.get('lastObject');\n      let mustAddDetail = true;\n      if (lastDetail && !bulkInsert) {\n        if (!lastDetail.getData('item') && !lastDetail.getData('itemCode')) {\n          mustAddDetail = false;\n        }\n      }\n      if (mustAddDetail || bulkInsert) {\n        const taxRate = this.settings.getDefaultTaxRate(taxesList);\n        const newData = {\n          discountType: this.get('constants.discountTypes.rate'),\n          taxRate,\n          roundingCurrency: this.getData('roundingCurrency'),\n          unroundedCurrency: this.getData('unroundedCurrency'),\n          roundingInventoryQty: this.settings.getProp('roundingInventoryQty'),\n          roundingInventoryPrice: this.settings.getProp('roundingInventoryPrice'),\n          type: 'inventory' // default when adding new product\n        };\n        const docName = this.docName;\n        if (docName === 'orders' || docName === 'quotes') {\n          newData.deliveryDateZ = this.getNextDeliveryDateZ();\n        }\n        return this.addDetail(newData);\n      }\n      return false;\n    },\n    /**\n     * creates new detail row\n     * @param {object} data (optional) - detail data\n     * @return {object} detail object\n     */\n    addDetail(data) {\n      data = data || {};\n\n      // create details array if it doesnt exist\n      let details = this.getData('details');\n      if (!details) {\n        details = [];\n        this.setData('details', details);\n      }\n\n      // only add index if not exists\n      if (data.index == null) {\n        const index = details.length + 1;\n        data.index = index;\n      }\n      data.discountAllowed = data.discountAllowed ?? true;\n      data.isRewardEarnAllowed = data.isRewardEarnAllowed ?? true;\n      data.isRewardSpendAllowed = data.isRewardSpendAllowed ?? true;\n      const detailModel = this.dataManager.setAsRecord({\n        adapterName: 'documents/details',\n        data: data\n      });\n      detailModel.set('requiredAttrs', this.detailsRequiredAttrs);\n      this.getData('details').pushObject(detailModel);\n      this.resetIndexes();\n      return detailModel;\n    },\n    addPosDetail(data) {\n      data = data || {};\n\n      // create details array if it doesnt exist\n      let details = this.getData('details');\n      if (!details) {\n        details = [];\n        this.setData('details', details);\n      }\n\n      // only add index if not exists\n      if (data.index == null) {\n        data.index = details.length + 1;\n      }\n      const detailModel = this.dataManager.setAsRecord({\n        adapterName: 'documents/details',\n        data\n      });\n      detailModel.set('requiredAttrs', this.detailsRequiredAttrs);\n      const postion = this.getData('details').length - 1;\n      this.getData('details').splice(postion, 0, detailModel);\n      this.resetIndexes();\n      return detailModel;\n    },\n    /**\n     * remove current detail\n     * @param  {object} detail\n     */\n    removeDetail(detail) {\n      const details = this.getData('details');\n      // remove detail\n      if (detail.getData('isSet')) {\n        const master = detail.getData('itemKey');\n        const index = detail.getData('index');\n        // const childIndex = detail.getData('childIndex')\n        const removeChildren = R.pipe(R.filter(child => {\n          if (child.getData('isSetChildOf') === master && child.getData('index') === index) {\n            return true;\n          }\n          return false;\n        }), R.forEach(child => {\n          details.removeObject(child);\n        }));\n        removeChildren(details);\n      }\n      details.removeObject(detail);\n      this.resetIndexes(details);\n      return details;\n    },\n    removeAllDetails() {\n      this.setData('details', []);\n      this.resetSortOrder();\n    },\n    /**\n     * resets detail line to blank state\n     */\n    resetDetail(detail) {\n      // @TODO move this to detail model!?\n\n      const data = detail.get('_data');\n      const keys = Object.keys(data);\n      keys.forEach(function (key) {\n        let allowReset = true;\n\n        // @TODO: could set a disallowResetAttrs array,\n        // @TODO: eg. disallowResetAttrs: ['index', 'deliveryDateZ']\n        // @TODO: then it will not allow resetting those values\n        if (key === 'index' || key === 'deliveryDateZ') {\n          allowReset = false;\n        }\n        if (allowReset) {\n          const value = detail.getData(key) || '';\n\n          // if (R.is(Array, value)) {\n          //   value = []\n          // } else {\n          //   if (R.is(Object, value)) {\n          //     value = {}\n          //   }\n          // }\n\n          detail.setData(key, value);\n        }\n      });\n      detail.setData('roundingCurrency', this.getData('roundingCurrency'));\n      detail.setData('unroundedCurrency', this.getData('unroundedCurrency'));\n      detail.setData('roundingInventoryQty', this.settings.getProp('roundingInventoryQty'));\n      detail.setData('roundingInventoryPrice', this.settings.getProp('roundingInventoryPrice'));\n      const itemKey = detail.getData('itemKey') || '';\n      if (RA.isNilOrEmpty(itemKey)) {\n        detail.setData('ref', '');\n      }\n      const ref = detail.getData('ref') || '';\n      if (RA.isNilOrEmpty(ref)) {\n        detail.setData('fromRef', '');\n        detail.setData('fromDocKey', '');\n        detail.setData('fromDocType', '');\n        detail.setData('fromDocName', '');\n        detail.setData('fromDocNo', '');\n        detail.setData('fromMaster', '');\n        detail.setData('fromDetailKey', '');\n        detail.setData('disallowCreditCardPartialRefunds', false);\n        detail.setData('consignmentsPendingId', '');\n        detail.setData('ordersPendingId', '');\n        detail.setData('maxQtyWhenLinked', '');\n      }\n    },\n    incompleteItemsDetails() {\n      const details = this.getData('details');\n      const requiredDetails = this.detailsRequiredAttrs;\n      let hasEmptyCount = 0;\n      details.forEach(function (detail) {\n        let hasEmpty = false;\n        requiredDetails.forEach(function (attr) {\n          if (!detail.getData(attr)) {\n            hasEmpty = true;\n          }\n        });\n        if (hasEmpty) {\n          hasEmptyCount++;\n        }\n      });\n      if (hasEmptyCount === 1 && details.length === 1) {\n        return true;\n      }\n      if (hasEmptyCount > 1) {\n        return true;\n      }\n      return false;\n    },\n    removeEmptyDetails() {\n      const details = this.getData('details');\n      const requiredDetails = this.detailsRequiredAttrs;\n      details.forEach(function (detail) {\n        let isEmpty = true;\n        requiredDetails.forEach(function (attr) {\n          if (detail.getData(attr)) {\n            isEmpty = false;\n          }\n        });\n        if (isEmpty) {\n          // remove\n          details.removeObject(detail);\n        }\n      });\n    }\n  });\n});","define(\"client/pods/documents/mixins/details/adapters\", [\"exports\", \"client/mixins/adapters-new\"], function (_exports, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create(_adaptersNew.default, {\n    beforepopulate(data = {}) {\n      data._key = data.detail._key;\n      return data;\n    }\n  });\n});","define(\"client/pods/documents/mixins/linking\", [\"exports\", \"client/utils/nventor\", \"client/pods/base/model\", \"ramda-adjunct\"], function (_exports, _nventor, _model, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    constants: Ember.inject.service(),\n    preLinkInfo(linkFromDetail, key) {\n      const linkTo = this.linkTemp;\n      const linkFrom = _nventor.default.createModel(_model.default, linkFromDetail.getData('doc'));\n      if (this[`_link_${key}`]) {\n        return this[`_link_${key}`]({\n          linkTo,\n          key,\n          linkFrom\n        });\n      }\n      return this._link({\n        key,\n        linkFrom,\n        linkTo\n      });\n    },\n    linkInfoFromTemp(key) {\n      if (this[`_link_${key}`]) {\n        return this[`_link_${key}`]({\n          linkTo: this,\n          linkFrom: this.linkTemp,\n          key\n        });\n      }\n      return this._link({\n        linkTo: this,\n        linkFrom: this.linkTemp,\n        key\n      });\n    },\n    _link({\n      linkTo,\n      linkFrom,\n      key\n    }) {\n      linkTo = linkTo || this;\n      let value;\n      if (linkFrom) {\n        value = linkFrom.getData(key) || '';\n      } else {\n        value = '';\n      }\n      linkTo.setData(key, value);\n      return true;\n    },\n    _link_discount({\n      linkTo,\n      linkFrom\n    }) {\n      if (linkTo.allowDiscounts) {\n        if (linkFrom.getData('doc.discountType') === this.get('constants.discountTypes.rate')) {\n          this._link({\n            linkTo,\n            linkFrom,\n            key: 'discountType'\n          });\n          this._link({\n            linkTo,\n            linkFrom,\n            key: 'discountRate'\n          });\n          this._link({\n            linkTo,\n            key: 'discountAmount'\n          });\n        } else {\n          this._link({\n            linkTo,\n            linkFrom,\n            key: 'discountType'\n          });\n          this._link({\n            linkTo,\n            linkFrom,\n            key: 'discountAmount'\n          });\n          this._link({\n            linkTo,\n            key: 'discountRate'\n          });\n        }\n      }\n    },\n    _link_paymentMethod({\n      linkTo,\n      linkFrom\n    }) {\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'contactRewardsData'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'fetchedContactRewardData'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'rewardData'\n      });\n\n      // SalesOrders should not link payments discount\n      const isSalesOrder = linkFrom?._data?.docType === 'sales' && linkFrom?._data?.docName === 'orders';\n      if (!isSalesOrder) {\n        this._link({\n          linkTo,\n          linkFrom,\n          key: 'discountType'\n        });\n        this._link({\n          linkTo,\n          linkFrom,\n          key: 'discountRate'\n        });\n        this._link({\n          linkTo,\n          linkFrom,\n          key: 'discountAmount'\n        });\n      }\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentMethodKey'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentLastFiveDigits'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'hasPaymentTerms'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentTermsKey'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentTermsMonths'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentTermsDays'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentTermsFrom'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentTermsEnd'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentTermsLastDayOfMonth'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentCreditCardProvider'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentCreditCardStatus'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentCreditCardTransactionCode'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentCreditCardTransactionTimestampZ'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'disallowCreditCardPartialRefunds'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentMethodIsInstallments'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'paymentMethodInstallmentsBank'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'provider'\n      });\n    },\n    _link_shop({\n      linkTo,\n      linkFrom\n    }) {\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'source'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'sourceKey'\n      });\n    },\n    _link_transporter({\n      linkTo,\n      linkFrom\n    }) {\n      // this._link({ linkTo, linkFrom, key: 'person' })\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'hasCustomSenderAddress'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterAccount'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterAccountNumber'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterArrivalDateZ'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterBatchLabel'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterBatchNumber'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterContactPerson'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterContactPhone'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterDefaultPickupLocationPersonId'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterDeliveryTime'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterExtension'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterKey'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterLabel'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterNotes'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterPackageSize'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterPackageTemperature'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterPackageType'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterPreferredArrivalTimePeriod'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterRegion'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterRegionIsOuter'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterSenderAddress'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterSenderCompany'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterSenderName'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterSenderPostNumber'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterSenderTelephone'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterType'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterWaybillPrintType'\n      });\n      this._link({\n        linkTo,\n        linkFrom,\n        key: 'transporterWeightRate'\n      });\n    },\n    linkFromTemp() {\n      this.linkAttrs.map(key => {\n        let param;\n        if (_nventor.default.confirm.isObject(key)) {\n          param = key.param;\n        } else {\n          param = key;\n        }\n        this.linkInfoFromTemp(param);\n      });\n    },\n    loadLinkedDetail(linkFromDetail, linkToDetail) {\n      linkToDetail.setData('ref', linkFromDetail.getData('doc.docNo'));\n      linkToDetail.setData('fromRef', linkFromDetail.getData('doc.ref'));\n      linkToDetail.setData('fromDocKey', linkFromDetail.getData('doc._key'));\n      linkToDetail.setData('fromDocType', linkFromDetail.getData('doc.docType'));\n      linkToDetail.setData('fromDocName', linkFromDetail.getData('doc.docName'));\n      linkToDetail.setData('fromDocNo', linkFromDetail.getData('doc.docNo'));\n      linkToDetail.setData('fromMaster', linkFromDetail.getData('master'));\n      linkToDetail.setData('fromDetailKey', linkFromDetail.getData('detailKey'));\n      const paymentCreditCardTransactionCode = linkFromDetail.getData('paymentCreditCardTransactionCode') || linkFromDetail.getData('doc.paymentCreditCardTransactionCode');\n      const paymentCreditCardTransactionTimestampZ = linkFromDetail.getData('paymentCreditCardTransactionTimestampZ') || linkFromDetail.getData('doc.paymentCreditCardTransactionTimestampZ');\n      linkToDetail.setData('paymentCreditCardTransactionCode', paymentCreditCardTransactionCode);\n      linkToDetail.setData('paymentCreditCardTransactionTimestampZ', paymentCreditCardTransactionTimestampZ);\n      linkToDetail.setData('disallowCreditCardPartialRefunds', linkFromDetail.getData('disallowCreditCardPartialRefunds'));\n      linkToDetail.setData('paymentMethodIsInstallments', linkFromDetail.getData('paymentMethodIsInstallments'));\n      linkToDetail.setData('paymentMethodInstallmentsCount', linkFromDetail.getData('paymentMethodInstallmentsCount'));\n      linkToDetail.setData('paymentMethodInstallmentsProvider', linkFromDetail.getData('paymentMethodInstallmentsProvider'));\n      linkToDetail.setData('paymentMethodInstallmentsBank', linkFromDetail.getData('paymentMethodInstallmentsBank'));\n      linkToDetail.setData('itemKey', linkFromDetail.getData('itemKey'));\n      linkToDetail.setData('itemCode', linkFromDetail.getData('itemCode'));\n      linkToDetail.setData('item', linkFromDetail.getData('item'));\n      linkToDetail.setData('supplierKey', linkFromDetail.getData('supplierKey') || linkFromDetail.getData('preferredSupplierKey') || '');\n      linkToDetail.setData('supplierName', linkFromDetail.getData('supplierName') || linkFromDetail.getData('preferredSupplierName') || '');\n      linkToDetail.setData('invoiceDescription', linkFromDetail.getData('invoiceDescription'));\n      linkToDetail.setData('collectOnBehalfPreDescription', linkFromDetail.getData('collectOnBehalfPreDescription'));\n      linkToDetail.setData('collectOnBehalfDescription', linkFromDetail.getData('collectOnBehalfDescription'));\n      linkToDetail.setData('unit', linkFromDetail.getData('unit'));\n      linkToDetail.setData('unitKey', linkFromDetail.getData('unitKey'));\n      linkToDetail.setData('source', linkFromDetail.getData('source'));\n      linkToDetail.setData('sourceKey', linkFromDetail.getData('sourceKey'));\n      const taxMethodKey = this.getData('taxMethodKey');\n      let inclPrice = linkFromDetail.getData('discInclPrice') || linkFromDetail.getData('inclPrice');\n      let exclPrice = linkFromDetail.getData('discExclPrice') || linkFromDetail.getData('exclPrice');\n      const roundingInventoryPrice = linkFromDetail.getData('roundingInventoryPrice') || 2;\n      inclPrice = this.autoRound(roundingInventoryPrice, inclPrice);\n      exclPrice = this.autoRound(roundingInventoryPrice, exclPrice);\n      if (taxMethodKey === this.get('constants.taxMethods.inclusive')) {\n        linkToDetail.setData('price', inclPrice);\n        linkToDetail.setData('exclPrice', exclPrice);\n      } else {\n        linkToDetail.setData('price', exclPrice);\n        linkToDetail.setData('inclPrice', inclPrice);\n      }\n      linkToDetail.setData('taxRate', linkFromDetail.getData('taxRate'));\n\n      // if (linkToDetail.docType === 'sales' && linkToDetail.docName !== 'returns') {\n      //   linkToDetail.setData('discountType', linkFromDetail.getData('discountType'))\n      //   linkToDetail.setData('discountRate', linkFromDetail.getData('discountRate'))\n      //   linkToDetail.setData('discountAmount', linkFromDetail.getData('discountAmount'))\n      // }\n\n      linkToDetail.setData('ordersPendingId', linkFromDetail.getData('ordersPendingId'));\n      linkToDetail.setData('consignmentsPendingId', linkFromDetail.getData('consignmentsPendingId'));\n\n      // linkToDetail.setData('isLinked', true)\n\n      // @TODO: link detail discount, link order number\n\n      // where to get qty from:\n      // doc=orders/invoices/consignments, linkFrom=quotes : qty = linkFrom.qty\n      // doc=invoices/consignments, linkFrom=orders : qty = linkFrom.outstandingQty\n      // doc=returns, linkFrom=invoices : qty = linkFrom.qty\n      // doc=consignments-returns, linkFrom=orders : qty = linkFrom.qty\n\n      if (!linkToDetail.getData('qty')) {\n        let linkQty = linkFromDetail.getData('linkQtyRemainder') || '';\n        if (RA.isNilOrEmpty(linkQty)) {\n          linkQty = linkFromDetail.getData('linkQty');\n        } else {\n          try {\n            delete linkFromDetail._data.linkQtyRemainder;\n          } catch (e) {\n            console.log(e);\n          }\n        }\n        linkToDetail.setData('qty', linkQty);\n      }\n      if (!linkToDetail.getData('maxQtyWhenLinked')) {\n        linkToDetail.setData('maxQtyWhenLinked', linkFromDetail.getData('linkQty'));\n      }\n\n      // for returns\n      const docType = this.getData('docType');\n      const docName = this.getData('docName');\n      if (docType === 'sales' && docName === 'returns') {\n        linkToDetail.setData('allocatedRewardPointApplied', linkFromDetail.getData('allocatedRewardPointApplied'));\n        linkToDetail.setData('allocatedRewardPointEarned', linkFromDetail.getData('allocatedRewardPointEarned'));\n        linkToDetail.setData('discountRate', linkFromDetail.getData('discountRate'));\n        linkToDetail.setData('allocatedInclDiscountAmount', linkFromDetail.getData('allocatedInclDiscountAmount'));\n        linkToDetail.setData('allocatedInclDiscountRate', linkFromDetail.getData('allocatedInclDiscountRate'));\n        linkToDetail.setData('discountAllowed', linkFromDetail.getData('discountAllowed'));\n        linkToDetail.setData('isRewardSpendAllowed', linkFromDetail.getData('isRewardSpendAllowed'));\n        linkToDetail.setData('isRewardEarnAllowed', linkFromDetail.getData('isRewardEarnAllowed'));\n        linkToDetail.setData('isLinkedReturnDetail', true);\n        linkToDetail.setData('originalQty', linkFromDetail.getData('linkQty'));\n        linkToDetail.setData('discountType', linkFromDetail.getData('discountType'));\n      }\n\n      // const linkFromDocData = linkFromDetail.getData('doc')\n      // if (!isEmpty(linkFromDocData.salesPersons)) {\n      //   const salesPersons = []\n\n      //   this.setData('salesPersons', salesPersons)\n      //   linkFromDocData.salesPersons.forEach(function (salesPerson) {\n      //     this.addSalesPerson(salesPerson)\n      //   })\n\n      // }\n\n      if (!Ember.isEmpty(this.getData('salesPersons'))) {\n        linkToDetail.setData('commissionBaseCost', linkFromDetail.getData('commissionBaseCost'));\n      }\n      this.sumTotals();\n      return true;\n    }\n  });\n});","define(\"client/pods/documents/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/sales-persons\", \"client/pods/documents/mixins/linking\", \"client/pods/documents/mixins/details\", \"client/pods/documents/mixins/calculations\", \"client/pods/documents/mixins/contacts\", \"client/mixins/date\", \"ramda\", \"ramda-adjunct\", \"client/config/environment\", \"client/utils/nventor\", \"client/constants/index\"], function (_exports, _model, _salesPersons, _linking, _details, _calculations, _contacts, _date, R, RA, _environment, _nventor, _index) {\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, _obj;\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  var _default = _exports.default = _model.default.extend(_salesPersons.default, _linking.default, _date.default, _details.default, _calculations.default, _contacts.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    search: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    documents: Ember.inject.service(),\n    eInvoicesService: Ember.inject.service('extensions/apps/tw/e-invoices'),\n    intl: Ember.inject.service(),\n    unroundedCurrency: 8,\n    selectedLinkFromDocKeys: null,\n    showHCTModal: false,\n    print: true,\n    printWaybill: true,\n    printAsPackingList: false,\n    init() {\n      this._super(...arguments);\n      this.set('selectedLinkFromDocKeys', []);\n\n      // used for when copied to dirty.\n      this.set('_attrs', ['eInvoicesCollection']);\n      this.set('mergeDetailsProps', ['fromMaster', 'exclPrice', 'itemCode', 'itemKey', 'ref', 'taxRate', 'unitKey', 'source', 'sourceKey']);\n      this.set('linkTemp', _model.default.create());\n      this.set('linkAttrs', [{\n        label: 'payment method',\n        param: 'paymentMethod',\n        // this corresponds to _link_paymentMethod method in linking mixin\n        component: 'documents/links-conflict/payment-method-conflict',\n        group: [\n        // 'isConsignment',\n        'paymentMethodKey', 'paymentTerms', 'paymentTermsKey']\n      }, {\n        param: 'paymentDueDateZ',\n        label: 'payment due date',\n        component: 'documents/links-conflict/payment-due-conflict'\n      }, 'account', {\n        param: 'shop',\n        // this corresponds to _link_shop method in linking mixin\n        label: 'shop',\n        group: ['source', 'sourceKey'],\n        component: 'documents/links-conflict/shop-conflict'\n      }, {\n        param: 'taxMethodKey',\n        label: 'tax method',\n        translate: true,\n        translatePrefix: 'tax_'\n      }, {\n        param: 'ref',\n        label: 'reference'\n      }, {\n        param: 'person',\n        label: 'recipient'\n      }, {\n        param: 'taxNumber',\n        label: 'tax number'\n      },\n      // {\n      //   param: 'discount',\n      //   group: ['discountType', 'discountAmount', 'discountRate'],\n      //   component: 'documents/links-conflict/discount-conflict'\n      // },\n      'address', {\n        param: 'transporter',\n        // this corresponds to _link_transporter method in linking mixin\n        label: 'transporter',\n        group: ['transporterLabel', 'transporterKey'],\n        component: 'documents/links-conflict/transporter-conflict',\n        excludeForDocName: 'returns'\n      }, {\n        param: 'notes',\n        component: 'documents/links-conflict/notes-conflict'\n      }]);\n      this.set('adapters', {\n        eInvoicesCollection: 'extensions/apps/tw/e-invoices/collection'\n      });\n      this.set('sortArrayInstructions', [{\n        direction: 'ascend',\n        prop: '_data.index'\n      }, {\n        direction: 'ascend',\n        prop: '_data.childIndex'\n      }, {\n        direction: 'ascend',\n        prop: '_data.grandChildIndex'\n      }]);\n    },\n    defaults() {\n      return {\n        rewardData: {},\n        currency: 'NTD',\n        timestampZ_printed: '',\n        printBatchId: '',\n        isPrinted: false,\n        printHistory: [],\n        createRefundWorkflow: false,\n        createRefundWorkflowAmount: '0',\n        detailsInventoryData: [],\n        contactRelationship: this._getDefaultContactRelationship(),\n        storeLocationData: {\n          label: '',\n          address: ''\n        },\n        twEInvoiceCarrierType: ''\n      };\n    },\n    newBlank({\n      docType,\n      docName,\n      paymentMethodsList = [],\n      paymentTermsList = [],\n      paymentMethodKey = '',\n      paymentTerms = '',\n      isFromShortcut = false,\n      isFromDocument = false,\n      isDuplicateDocumentShortcut = false,\n      contact = '',\n      contactKey = '',\n      currency = '',\n      paymentDueDateZ = '',\n      person = '',\n      ref = '',\n      salesPersons = [],\n      duplicateData = {},\n      contactsModel,\n      tabParent = {},\n      twEInvoicePrint\n    }) {\n      const todayZ = this.getStartOfDayZ();\n      const settingsModel = this.settings.getModel();\n      this.setData('docType', docType);\n      this.setData('docName', docName);\n      this.setData('taxMethodKey', settingsModel.getData(`${docType}TaxMethodKey`, this.get('constants.taxMethods.exclusive')));\n      if (docType === 'sales' && docName === 'invoices') {\n        this.setData('autoPrintInvoices', settingsModel.getData('autoPrintInvoices'));\n      }\n      if (paymentMethodKey === '') {\n        if (docName === 'consignments' || docName === 'consignments-returns') {\n          paymentMethodKey = this.get('constants.paymentMethods.consignment');\n        } else {\n          paymentMethodKey = settingsModel.getData(`${docType}PaymentMethodKey`, this.get('constants.paymentMethods.cash'));\n        }\n      }\n      const isPos = R.propEq('isPos', true)(tabParent);\n      if (isPos) {\n        // Set Payment Method to Cash for POS\n        paymentMethodKey = this.get('constants.paymentMethods.cash');\n        this.setData('taxMethodKey', this.get('constants.taxMethods.inclusive'));\n        const hasTwEInvoicePrint = RA.isNotNilOrEmpty(twEInvoicePrint);\n        if (hasTwEInvoicePrint) {\n          this.setData('twEInvoicePrint', twEInvoicePrint);\n        } else {\n          this.setData('twEInvoicePrint', true);\n        }\n        this.setData('isPos', true);\n      }\n      const paymentMethod = paymentMethodsList.findBy('_data.value', paymentMethodKey);\n      this.loadPaymentMethod({\n        paymentMethod,\n        paymentMethodKey\n      });\n      if (paymentTerms === '') {\n        const paymentTermsKey = settingsModel.getData(`${docType}PaymentTermsKey`);\n        paymentTerms = paymentTermsList.findBy('_data._key', paymentTermsKey);\n        this.loadPaymentTerms({\n          paymentTerms,\n          paymentTermsKey\n        });\n      } else {\n        this.setData('paymentTerms', paymentTerms);\n      }\n      this.setData('discountType', settingsModel.getData('discountType', this.get('constants.discountTypes.rate')));\n      this.setData('discountMethod', this.get('constants.discountMethods.onTotal'));\n      this.setData('dateZ', todayZ);\n      this.setData('roundingCurrency', settingsModel.getData('roundingCurrency'));\n      this.setData('unroundedCurrency', settingsModel.getData('unroundedCurrency'));\n      this.setData('roundingInventoryQty', settingsModel.getData('roundingInventoryQty'));\n      this.setData('roundingInventoryPrice', settingsModel.getData('roundingInventoryPrice'));\n      if (docName === 'quotes') {\n        // @TODO: validity is currently set at 1 month from date. should get from settings\n        const validityDate = this.getMoment(todayZ).add(1, 'months');\n        this.setData('validityDateZ', validityDate.toISOString());\n      }\n      if (docName === 'orders') {\n        this.setData('deliveryDateOption', this.get('constants.deliveryDateOptions.single'));\n        this.setData('deliveryDateZ', todayZ);\n      }\n      if (this.hasPaymentReminders) {\n        this.setData('paymentRemindersAutoEmail', settingsModel.getData('paymentRemindersAutoEmail'));\n      }\n\n      // if (isFromShortcut) {\n      //   this.setData('contact', contact)\n      //   this.setData('contactKey', contactKey)\n      //   // this.setData('createdDateZ', createdDateZ)\n      //   this.setData('currency', currency)\n      //   // this.setData('dateZ', dateZ)\n      //   // this.setData('docNo', docNo)\n      //   this.setData('paymentDueDateZ', paymentDueDateZ)\n      //   this.setData('person', person)\n      //   this.setData('ref', ref)\n      //   this.setData('salesPersons', salesPersons)\n      //   // this.setData('status', status)\n      // }\n\n      // @TODO: refactor\n      if (isDuplicateDocumentShortcut) {\n        this.set('_data', duplicateData);\n        const details = this.get('_data.details');\n        // used to remove linking property\n        // remove if linking is needed for duplicate document\n        R.forEach(detail => {\n          detail.setData('ref', '');\n          detail.setData('fromRef', '');\n          detail.setData('fromDocKey', '');\n          detail.setData('fromDocType', '');\n          detail.setData('fromDocName', '');\n          detail.setData('fromDocNo', '');\n          detail.setData('fromMaster', '');\n          detail.setData('fromDetailKey', '');\n        })(details);\n        this.setData('docNo', '');\n        this.setData('ref', '');\n        this.setData('_id', '');\n        this.setData('_key', '');\n        this.setData('_rev', '');\n        this.setData('externalId', '');\n        this.setData('externalUrl', '');\n        this.setData('dispatchStatus', '');\n        this.setData('isDispatch', '');\n        this.setData('dispatchProcess', '');\n        this.setData('paymentDate', '');\n        this.setData('declaredAmount', '');\n      }\n\n      // load contact to fill default telephone, address, etc\n      if (RA.isNotNilOrEmpty(contactsModel)) {\n        this.loadContact({\n          docType,\n          contact: contactsModel,\n          paymentMethodsList,\n          paymentTermsList\n        });\n      }\n\n      // if (docType === 'sales' && docName === 'invoices') {\n      //   this.setData('autoPrintInvoices', settingsModel.getData('autoPrintInvoices'))\n      // }\n    },\n    hasNotifications: Ember.computed('notifications.[]', function () {\n      return R.pipe(R.pathOr([], ['notifications']), R.propSatisfies(R.gte(R.__, 1), 'length'))(this);\n    }),\n    validTaxNumber: Ember.computed('_data.{companyName,twEInvoiceCarrierType,taxNumber}', function () {\n      const isB2B = R.pathEq(['_data', 'twEInvoiceCarrierType'], 'b2b')(this);\n      if (!isB2B) {\n        return true;\n      }\n      const validTaxNumber = this._data?.taxNumber?.length === 8;\n      if (!validTaxNumber) {\n        return false;\n      }\n      const validCompanyName = this._data?.companyName?.length >= 4;\n      if (!validCompanyName) {\n        return false;\n      }\n      return true;\n    }),\n    docAdapterName: Ember.computed('_data.{docType,docName}', function () {\n      const docType = this.get('_data.docType');\n      const docName = this.get('_data.docName');\n      return `documents/${docType}/${docName}`;\n    }),\n    title: Ember.computed('_data.{docType,docName}', function () {\n      const docType = this.get('_data.docType');\n      const docName = this.get('_data.docName');\n      return `${docType}-${docName}`;\n    }),\n    _getDefaultContactRelationship() {\n      const docType = this?._data?.docType || '';\n      const isContactRelationshipAllowed = this.isContactRelationshipAllowed;\n      if (isContactRelationshipAllowed) {\n        if (R.equals(docType, 'sales')) {\n          return 'customer';\n        } else {\n          return 'supplier';\n        }\n      }\n      return '';\n    },\n    latestWaybillStatus: Ember.computed('_data.transporterWaybillRecords.[]', function () {\n      return R.pathOr({}, ['_data', 'transporterWaybillRecords', 0, '_data', 'shippingWaybillStatuses', 0])(this);\n    }),\n    latestWaybillStatusMessage: Ember.computed('latestWaybillStatus.message', function () {\n      return R.pathOr('', ['latestWaybillStatus', 'message'])(this);\n    }),\n    // The 數網 門市關轉 (store closure) store types currently needing a reselection — the\n    // CCS notification's StoreType (01 = 取件/pickup, 02 = 退件/return). This scans ALL\n    // waybill statuses (not just the latest), because a later 貨態 often lands on top of\n    // the addressChangeRequired notification, so latestWaybillStatus would miss it.\n    // The editor works on a dirty copy whose serialize() strips the populated\n    // transporterWaybillRecords, so fall back to originalModel when present.\n    storeClosureStoreTypes: Ember.computed('_data.transporterWaybillRecords.[]', 'originalModel._data.transporterWaybillRecords.[]', function () {\n      const sourceModel = this.originalModel || this;\n      const shippingWaybillStatuses = sourceModel?._data?.transporterWaybillRecords?.[0]?._data?.shippingWaybillStatuses || [];\n      return shippingWaybillStatuses.filter(shippingWaybillStatus => shippingWaybillStatus?._data?.status === 'addressChangeRequired').map(shippingWaybillStatus => shippingWaybillStatus?._data?.notificationType).filter(Boolean);\n    }),\n    waybillsStatusesCount: Ember.computed('_data.transporterWaybillRecords.[]', function () {\n      return R.pathOr('', ['_data', 'transporterWaybillRecords', 0, '_data', 'shippingWaybillStatuses', 'length'])(this);\n    }),\n    isContactRelationshipAllowed: Ember.computed('_data.docName', function () {\n      const docName = this?._data?.docName || '';\n      const allowedDocName = ['invoices', 'returns'];\n      if (R.includes(docName, allowedDocName)) {\n        return true;\n      }\n      return false;\n    }),\n    /**\n     * create model when dataManager is not available. this is when in public viewing mode\n     */\n    _createModelForPublicMode(data) {\n      return Ember.Object.create({\n        _data: data\n      });\n    },\n    docStatus: Ember.computed('_data.{status,dispatchProcess}', 'hasDispatchProcess', function () {\n      const status = this.getData('status');\n      let docStatus = status;\n      if (this.get('_data.isMerged')) {\n        return 'merged_document';\n      }\n      if (!this.hasDispatchProcess) {\n        return docStatus;\n      }\n      const dispatchProcess = this.getData('dispatchProcess');\n      if (status === this.get('constants.documentsStatus.final')) {\n        docStatus = dispatchProcess;\n      }\n      if (!docStatus) {\n        docStatus = this.get('constants.dispatchProcess.unprepared');\n      }\n      return docStatus;\n    }),\n    statusClass: Ember.computed('_data.{status,dispatchProcess}', 'hasDispatchProcess', function () {\n      const status = this.get('_data.status');\n      const dispatchProcess = this.get('_data.dispatchProcess');\n      if (this.isMerged) {\n        return 'is-danger';\n      }\n      if (status === this.get('constants.documentsStatus.draft')) {\n        return 'is-warning';\n      }\n      if (status === this.get('constants.documentsStatus.void')) {\n        return 'is-danger';\n      }\n      if (!this.hasDispatchProcess) {\n        return 'is-success';\n      }\n      if (dispatchProcess === this.get('constants.dispatchProcess.awaitingPayment') && status === this.get('constants.documentsStatus.final')) {\n        return 'is-dark';\n      }\n      if (dispatchProcess === this.get('constants.dispatchProcess.awaitingRecurringPayment') && status === this.get('constants.documentsStatus.final')) {\n        return 'is-dark';\n      }\n      if (dispatchProcess === this.get('constants.dispatchProcess.dispatched') && status === this.get('constants.documentsStatus.final')) {\n        return 'is-success';\n      }\n      if (dispatchProcess === this.get('constants.dispatchProcess.unprepared') || dispatchProcess === '') {\n        return 'is-info';\n      }\n      if (dispatchProcess === this.get('constants.dispatchProcess.outOfStock') || dispatchProcess === '') {\n        return 'is-black';\n      }\n      return 'is-dark';\n    }),\n    // dispatchStatusClass: computed('_data.dispatchStatus', function () {\n    //   const dispatchStatus = this.get('_data.dispatchStatus')\n    //   if (dispatchStatus === this.get('constants.dispatchStatus.onHold')) {\n    //     return 'is-dark'\n    //   }\n\n    //   if (dispatchStatus === this.get('constants.dispatchStatus.undispatched') || !dispatchStatus) {\n    //     return 'is-info'\n    //   }\n\n    //   if (dispatchStatus === this.get('constants.dispatchStatus.dispatched')) {\n    //     return 'is-success'\n    //   }\n    // }),\n\n    allowSplit: Ember.computed('_data.{isDispatched,details.[],groupId}', function () {\n      if (this.get('_data.isDispatched')) {\n        return false;\n      }\n      const details = this.get('_data.details') || [];\n      if (details.length < 1) {\n        return false;\n      }\n      if (details.length === 1) {\n        const detail = details.get('firstObject');\n        if (detail?._data?.qty) {\n          const qty = parseFloat(detail.getData('qty')) || 0;\n          if (qty <= 1) {\n            return false;\n          }\n        } else {\n          return false;\n        }\n      }\n      const groupId = this?._data?.groupId || '';\n      if (RA.isNotNilOrEmpty(groupId)) {\n        return false;\n      }\n      return true;\n    }),\n    hasPreOrderDetails: Ember.computed('_data.{status,details.[]}', 'hasPreOrderDetailsCount', function () {\n      if (this?._data?.status !== 'final') {\n        return false;\n      }\n      const preOrderDetailsCount = this.hasPreOrderDetailsCount || 0;\n      return R.gt(preOrderDetailsCount, 0);\n    }),\n    hasPreOrderDetailsCount: Ember.computed('_data.{status,details.[]}', function () {\n      if (this?._data?.status !== 'final') {\n        return false;\n      }\n      return R.pipe(R.pathOr([], ['_data', 'details']), R.filter(detail => {\n        return R.pathEq(['_data', 'productStatus'], 'preOrder')(detail);\n      }), R.length)(this);\n    }),\n    allowPrintWaybill: Ember.computed('_data.{transporterExtension,status}', function () {\n      const transporterExtension = this.getData('transporterExtension');\n      const hasAllowedTransporterExtension = R.anyPass([R.equals(this.get('constants.transporterExtensions.hct')), R.equals(this.get('constants.transporterExtensions.tCat')), R.equals(this.get('constants.transporterExtensions.sevenEleven'))])(transporterExtension);\n      const status = this.getData('status');\n      const isFinal = status === this.get('constants.documentsStatus.final');\n      if (hasAllowedTransporterExtension && isFinal) {\n        return true;\n      }\n      return false;\n    }),\n    isTransporterTCat: Ember.computed('_data.transporterExtension', function () {\n      const tCat = this.get('constants.transporterExtensions.tCat');\n      return R.pathEq(['_data', 'transporterExtension'], tCat)(this);\n    }),\n    isTransporterHct: Ember.computed('_data.transporterExtension', function () {\n      const hct = this.get('constants.transporterExtensions.hct');\n      return R.pathEq(['_data', 'transporterExtension'], hct)(this);\n    }),\n    isTransporterSevenEleven: Ember.computed('_data.transporterExtension', function () {\n      const sevenEleven = this.get('constants.transporterExtensions.sevenEleven');\n      return R.pathEq(['_data', 'transporterExtension'], sevenEleven)(this);\n    }),\n    isDispatched: Ember.computed('synced', '_data.{isDispatched,status}', function () {\n      const isDispatched = this.getData('isDispatched');\n      const status = this.getData('status');\n      if (R.equals(isDispatched, true) && R.equals(status, 'final')) {\n        return true;\n      }\n      return false;\n    }),\n    notDispatched: Ember.computed('isDispatched', function () {\n      return !this.isDispatched;\n    }),\n    allowTransporterQuickChange: Ember.computed('notDispatched', 'isDispatchedBeforeToday', 'isTransporterSevenEleven', function () {\n      if (this.notDispatched) {\n        return true;\n      } else if (!this.isDispatchedBeforeToday) {\n        return true;\n      } else if (this.isTransporterSevenEleven) {\n        return true;\n      }\n      return false;\n    }),\n    hasEInvoiceInfoChanged: Ember.computed('_data.{email,taxNumber,address,status}', 'requirePrintEInvoice', function () {\n      return Math.random();\n    }),\n    hasEInvoices: Ember.computed('synced', 'eInvoicesCollection.{[],synced}', function () {\n      const invoices = this.get('eInvoicesCollection._data.invoices') || [];\n      if (invoices.length > 0) {\n        return true;\n      }\n      return false;\n    }),\n    successfulEInvoices: Ember.computed('synced', 'eInvoicesCollection.{[],synced}', function () {\n      const invoices = this.get('eInvoicesCollection._data.invoices') || [];\n      return R.filter(R.pathEq(['_data', 'status'], 'successful'), invoices);\n    }),\n    successfulEInvoiceNumbers: Ember.computed('successfulEInvoices.[]', function () {\n      const successfulEInvoices = this.successfulEInvoices || [];\n      return R.pipe(R.map(R.path(['_data', 'number'])), R.reject(RA.isNilOrEmpty), R.join(', '))(successfulEInvoices);\n    }),\n    lastSuccessfulEInvoice: Ember.computed('synced', 'eInvoicesCollection.{[],synced}', function () {\n      const invoices = this.get('eInvoicesCollection._data.invoices') || [];\n      const successful = R.filter(R.pathEq(['_data', 'status'], 'successful'), invoices);\n      if (successful.length > 0) {\n        return R.head(successful);\n      }\n      return false;\n    }),\n    lastSuccessfulEInvoiceNumber: Ember.computed('synced', 'lastSuccessfulEInvoice._data.number', function () {\n      return R.pathOr(false, ['lastSuccessfulEInvoice', '_data', 'number'])(this);\n    }),\n    paymentLink: Ember.computed('_data.{externalUrl,email,ref,isRecurringChild,isRecurringMaster,shopUrl}', function () {\n      const isRecurringOrder = this._data?.isRecurringChild || this._data?.isRecurringMaster || false;\n      const shopUrl = this._data?.shopUrl || '';\n      if (isRecurringOrder && shopUrl) {\n        const shopUrl = this._data?.shopUrl || '';\n        const email = this._data?.email || '';\n        const ref = this._data?.ref || '';\n        return `${_environment.default.APP.bigordrHost}/shop/${shopUrl}/orders/status/${email}/${ref}`;\n      }\n      const externalUrl = this?._data?.externalUrl;\n      if (externalUrl) {\n        return `${_environment.default.APP.bigordrHost}/erp/payments/card/doc/${externalUrl}`;\n      }\n      return '';\n    }),\n    paymentLinkPos: Ember.computed('paymentLink', function () {\n      if (this.paymentLink) {\n        return `${this.paymentLink}?isPos=true`;\n      }\n      return this.paymentLink;\n    }),\n    refOrDocNo: Ember.computed('_data.{ref,docNo,sendRefAsDocNo}', function () {\n      const sendRefAsDocNo = this.get('_data.sendRefAsDocNo');\n      const ref = this.get('_data.ref');\n      if (sendRefAsDocNo && ref) {\n        return ref;\n      }\n      return this.get('_data.docNo');\n    }),\n    isDispatchedBeforeToday: Ember.computed('_data.{dispatchStatus,dispatchDateZ}', function () {\n      const dispatchStatus = this.getData('dispatchStatus');\n      const dispatchDateZ = this.getData('dispatchDateZ');\n      if (this.isBeforeToday(dispatchDateZ) && dispatchStatus === this.get('constants.dispatchStatus.dispatched')) {\n        return true;\n      }\n      return false;\n    }),\n    // @TODO use new isComplete computed in base. simply set requiredAttrs in model. still need to work out how details will also work\n    // @TODO simply add _data.details.@each.isComplete? and then for details also set requiredAttrs\n\n    isComplete: Ember.computed('_data.{contact,dateZ,details.@each.hasIncomplete}', 'incompleteItems.[]', function () {\n      // @NOTE: overwrites base.isComplete\n\n      const self = this;\n      let hasIncomplete = false;\n      if (!self.getData('contact')) {\n        hasIncomplete = true;\n      }\n      if (!self.getData('dateZ')) {\n        hasIncomplete = true;\n      }\n      const details = self.getData('details') || [];\n      let detailsIncomplete = 0;\n      details.forEach(function (detail) {\n        if (detail.get('hasIncomplete')) {\n          detailsIncomplete++;\n        }\n      });\n      if (details.length === 1 && detailsIncomplete === 1) {\n        hasIncomplete = true;\n      }\n      if (detailsIncomplete > 1) {\n        hasIncomplete = true;\n      }\n      self.addToIncomplete('info', hasIncomplete);\n      const incompleteItems = this.incompleteItems;\n      if (incompleteItems.length > 0) {\n        hasIncomplete = true;\n      }\n      if (hasIncomplete) {\n        return false;\n      }\n      return true;\n    }),\n    isDispatchableToday: Ember.computed('_data.{status,dispatchProcess,dateZ}', function () {\n      if (this.getData('isDispatched') && this.getData('status') === this.get('constants.documentsStatus.final')) {\n        return true;\n      }\n      const dateZ = this.getData('dateZ');\n      if (this.isSameOrBefore(dateZ)) {\n        return true;\n      }\n      return false;\n    }),\n    isMissingHCTDataClassNames: Ember.computed('_data.{address,status,isDispatched,transporterExtension,transporterRegionIsOuter}', 'IsOuter', 'sevenElevenWaybillNotificationModel', 'hasAddressChangeRequired', function () {\n      let classNames = '';\n      const transporterExtension = this.getData('transporterExtension');\n      if (transporterExtension === 'hct') {\n        if (this.isOuterRegion) {\n          classNames = 'is-warning';\n        }\n      }\n      if (this.isTransporterSevenEleven) {\n        if (this.hasAddressChangeRequired) {\n          classNames = 'is-danger';\n        }\n      }\n      return classNames;\n    }),\n    hasAddressChangeRequired: Ember.computed('latestWaybillStatus.status', function () {\n      if (this.latestWaybillStatus.status === 'addressChangeRequired') {\n        return true;\n      }\n      return false;\n    }),\n    isOuterRegion: Ember.computed('_data.transporterWaybillRecord', '_data.transporterWaybillRecords.length', function () {\n      const latestShippingWaybill = R.pipe(R.pathOr([], ['_data', 'transporterWaybillRecords']), R.sortWith([R.descend(R.pathOr('', ['_data', 'timestampZ_latest']))]), R.pathOr({}, [0]))(this);\n      return R.pathEq(['transporterRegionIsOuter'], true)(latestShippingWaybill);\n    }),\n    hasDispatchToday: Ember.computed('_data.{expectedDispatchDateZ,isDispatched}', function () {\n      const expectedDispatchDateZ = this.getData('expectedDispatchDateZ');\n      const isDispatched = this.getData('isDispatched');\n      if (this.dateService.isSameOrBefore(expectedDispatchDateZ) && !isDispatched) {\n        return true;\n      }\n      return false;\n    }),\n    setRewardAndContactReward({\n      rewardData\n    }) {\n      if (RA.isNilOrEmpty(rewardData)) {\n        return;\n      }\n      let rewardDataSerialized = rewardData;\n      if (rewardData.serialize) {\n        rewardDataSerialized = rewardData.serialize();\n      }\n      rewardDataSerialized = R.pick(['_key', 'name', 'memberLevels', 'startTime', 'startPeriod'])(rewardDataSerialized);\n      this.setData('rewardData', rewardDataSerialized);\n      const rewardKey = rewardDataSerialized._key;\n      const contact = this?.selectedContact;\n      const currentContactReward = R.pipe(R.pathOr([], ['_data', 'contactRewardsData']), R.find(R.pathEq(['rewardData', '_key'], rewardKey)))(contact) || {};\n\n      // to set current reward data\n      // on document update, fetchedContactRewardData is reward data when doc created\n      this.set('contactRewardData', currentContactReward);\n      const fetchedContactRewardData = this?._data?.fetchedContactRewardData || {};\n      if (RA.isNilOrEmpty(fetchedContactRewardData)) {\n        this.setData('fetchedContactRewardData', {\n          contactKey: this?._data?.contactKey || '',\n          memberId: this?._data?.memberId || '',\n          validPointsKey: currentContactReward?.pointsData?._key || '',\n          levelPointsKey: currentContactReward?.level?._key || '',\n          validPoints: currentContactReward?.pointsData?.validPoints || 0,\n          pendingPoints: currentContactReward?.pointsData?.pendingPoints || 0,\n          memberLevelPoints: currentContactReward?.level?.points || 0,\n          productTags: currentContactReward?.level?.productTags || [],\n          memberLevelId: currentContactReward?.level?.memberLevelId || ''\n        });\n      }\n    },\n    /**\n     * custom populate function.\n     * will create child detail models\n     * @param {object/json} data - model data\n     */\n    populate(data = {}, attrs = {}) {\n      const self = this;\n      data = data || {};\n      const docType = data?.docType;\n      const docName = data?.docName;\n      if (docType && docName) {\n        const docTypeDocName = `documents/${docType}/${docName}`;\n        this.set('adapterName', docTypeDocName);\n        attrs.adapterName = docTypeDocName;\n      }\n      const notifications = self._transformNotifications(data);\n      self.set('notifications', notifications);\n      const detailsRequiredAttrs = self.get('detailsRequiredAttrs');\n      // create models for each detail\n      if (data.details) {\n        let detailModels = R.pipe(R.propOr([], 'details'),\n        // R.groupBy(R.prop('index')),\n        // R.map(group => {\n        //   // group by child index\n        // }),\n        R.map(detailData => {\n          detailData = this.transformDiscountData(data, detailData);\n          const commissionBaseCost = detailData.commissionBaseCost || '';\n          if (RA.isNilOrEmpty(detailData.commissionBaseCostFinal)) {\n            detailData.commissionBaseCostFinal = commissionBaseCost;\n          }\n          if (this.dataManager) {\n            const detailModel = this.dataManager.setAsRecord({\n              adapterName: 'documents/details',\n              data: detailData\n            });\n            detailModel.set('requiredAttrs', detailsRequiredAttrs);\n            return detailModel;\n          } else {\n            return this._createModelForPublicMode(detailData);\n          }\n        }))(data);\n\n        // detailModels = this.addDiscountAndRewardToDetails(detailModels)\n\n        let lastSetWithChoicesOf = '';\n        let lastSetWithChoicesIndex = '';\n        data.details = R.map(detailModel => {\n          if (detailModel?._data.isSet) {\n            return detailModel;\n          }\n          if (detailModel?._data?.isSetWithChoicesChildOf && lastSetWithChoicesOf != detailModel?._data?.isSetWithChoicesChildOf && lastSetWithChoicesIndex != detailModel?._data?.childIndex) {\n            detailModel.set('isFirstSetChoiceItem', true);\n            lastSetWithChoicesOf = detailModel?._data?.isSetWithChoicesChildOf;\n            lastSetWithChoicesIndex = detailModel?._data?.childIndex;\n          }\n          if (detailModel?._data?.isSetWithChoicesChildOf) {\n            const setWithChoicesParent = R.find(toMatch => {\n              if (!toMatch?._data?.setItem) {\n                return false;\n              }\n              if (toMatch?._data?.isSetWithChoicesChildOf !== detailModel?._data?.isSetWithChoicesChildOf) {\n                return false;\n              }\n              return true;\n            })(detailModels);\n            detailModel.set('setWithChoicesItem', setWithChoicesParent?._data?.setItem);\n          }\n          if (detailModel?._data?.isSetChildOf) {\n            const setParent = R.find(toMatch => {\n              if (toMatch?._data?.isSet !== true) {\n                return false;\n              }\n              if (toMatch?._data?.index !== detailModel?._data?.index) {\n                return false;\n              }\n              if (toMatch?._data?.itemKey !== detailModel?._data?.isSetChildOf) {\n                return false;\n              }\n              return true;\n            })(detailModels);\n            detailModel.set('setParent', setParent);\n            if (String(detailModel?._data?.childIndex) === '1') {\n              detailModel.set('isFirstSetChildItem', true);\n            }\n          }\n          return detailModel;\n        })(detailModels);\n      }\n      if (RA.isNilOrEmpty(data.eInvoices) && !this.eInvoicesCollection && data?._key) {\n        // this prevents eInvoicesCollection from being overritten if already set\n        // see bigordr/app issue #4245\n        const eInvoicesCollection = self.transformEInvoices(data);\n        this.set('eInvoicesCollection', eInvoicesCollection);\n      }\n      self.transformSalesPersons(data);\n      const returnsDetails = self.transformReturnsDetails(data);\n      self.set('returnsDetails', returnsDetails);\n      const returnDocs = self._transformReturnsDoc({\n        returnsDetails\n      });\n      self.set('returnDocs', returnDocs);\n      data.paymentData = self._transformPaymentData(data);\n      data.rewardData = self._transformRewardData(data);\n      data.groups = self._transformGroups(data);\n      data = self._transformCreditCardRefundsSchedules(data);\n      data = self._transformPickupMethod(data);\n      data = self._transformTransporterWaybillRecords(data);\n\n      // populate docName info\n      // self.overwriteData(data)\n      this._super(data, attrs);\n    },\n    _transformRewardData(data) {\n      const rewardData = data?.rewardData || {};\n      return rewardData;\n    },\n    transformDiscountData(data, detailData) {\n      detailData.isRewardEarnAllowed = detailData.isRewardEarnAllowed ?? true;\n      detailData.isRewardSpendAllowed = detailData.isRewardSpendAllowed ?? true;\n      if (RA.isNotNilOrEmpty(detailData.discountAllowed)) {\n        return detailData;\n      }\n\n      // Missing flag matches documents/details defaults and API (true). Do not infer\n      // false from zero allocated amount/rate — that also happens for eligible lines.\n      detailData.discountAllowed = true;\n      return detailData;\n    },\n    populatePartial(data, attrs) {\n      const self = this;\n      data = self._transformTransporterWaybillRecords(data);\n      this._super(data, attrs);\n    },\n    _transformTransporterWaybillRecords(data) {\n      const transporterWaybillRecords = R.propOr([], 'transporterWaybillRecords')(data);\n      if (RA.isNotNilOrEmpty(transporterWaybillRecords)) {\n        data.transporterWaybillRecords = R.map(transporterWaybillRecord => {\n          return this.dataManager.setAsRecord({\n            adapterName: 'transporter/waybill-record',\n            data: transporterWaybillRecord\n          });\n        })(transporterWaybillRecords);\n      }\n      return data;\n    },\n    _transformPickupMethod(data) {\n      if (data?.isConvenienceStore !== true) {\n        return data;\n      }\n      const addressData = data?.addressData || {};\n      const updatedAddressData = R.mergeLeft({\n        type: this.constants.pickupMethods.convenienceStore.value\n      })(addressData);\n      const updatedDataWidthConvenienceStoreData = R.mergeLeft({\n        isConvenienceStore: true,\n        hasAdvancedAddress: true,\n        pickupMethod: this.constants.pickupMethods.convenienceStore.value,\n        addressData: updatedAddressData\n      })(data);\n      return updatedDataWidthConvenienceStoreData;\n    },\n    _transformNotifications(data) {\n      const notifications = R.pipe(R.propOr([], 'notifications'), R.map(notification => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'notifications',\n          data: notification\n        });\n      }))(data);\n      delete data.notifications;\n      return notifications;\n    },\n    _transformGroups(data) {\n      const groups = R.propOr([], 'groups')(data);\n      return R.map(docData => {\n        const docModel = this.dataManager.setAsRecord({\n          adapterName: `documents/${docData.docType}/${docData.docName}`,\n          data: docData\n        });\n        const ref = docModel?._data?.ref || '';\n        const newDetails = R.pipe(R.pathOr([], ['_data', 'details']), R.map(detail => {\n          detail.set('isGroupChild', true);\n          detail.set('docRef', ref);\n          return detail;\n        }))(docModel) || [];\n        const newReturnsDetails = R.pipe(R.pathOr([], ['returnsDetails']), R.map(detail => {\n          detail.set('isGroupChild', true);\n          detail.set('docRef', ref);\n          return detail;\n        }))(docModel) || [];\n        docModel.setData('details', newDetails);\n        docModel.setData('returnsDetails', newReturnsDetails);\n        return docModel;\n      })(groups);\n    },\n    _transformPaymentData(data) {\n      return R.pathOr({}, ['payments', 0])(data);\n    },\n    transformEInvoices(data) {\n      const eInvoicesCollection = data.eInvoices || [];\n      delete data.eInvoices;\n      const collectionData = {\n        master: data._key,\n        invoices: eInvoicesCollection\n      };\n      if (this.dataManager) {\n        return this.dataManager.setAsRecord({\n          adapterName: this.get('adapters.eInvoicesCollection'),\n          data: collectionData\n        });\n      } else {\n        return this._createModelForPublicMode(collectionData);\n      }\n    },\n    transformReturnsDetails(data) {\n      const returns = data.returns || [];\n      delete data.returns;\n      let returnsDetailsModel = [];\n      if (this.dataManager) {\n        let adapterName;\n        if (data.docType === 'sales') {\n          adapterName = 'documents/sales/returns/details';\n        } else {\n          adapterName = 'documents/purchases/returns/details';\n        }\n        returnsDetailsModel = R.map(returnDetailData => {\n          returnDetailData.docData = returnDetailData.doc;\n          return this.dataManager.setPartialRecord({\n            adapterName,\n            data: returnDetailData\n          });\n        })(returns);\n      } else {\n        returnsDetailsModel = R.map(returnDetailData => {\n          return this._createModelForPublicMode(returnDetailData);\n        })(returns);\n      }\n      return R.map(detail => {\n        detail.set('isReturnDetail', true);\n        return detail;\n      })(returnsDetailsModel);\n    },\n    _transformReturnsDoc({\n      returnsDetails\n    }) {\n      if (RA.isNilOrEmpty(returnsDetails)) {\n        return [];\n      }\n      return R.pipe(R.groupBy(R.path(['_data', 'docData', 'docNo'])), R.values, R.map(group => {\n        const docData = R.pathOr({}, ['0', '_data', 'docData'])(group);\n        return {\n          docData: this.dataManager.setPartialRecord({\n            adapterName: 'documents/sales/returns',\n            data: docData\n          }),\n          details: group\n        };\n      }))(returnsDetails);\n    },\n    getGroupedDocumentsPaymentMethodKeys({\n      document,\n      hasGroups = true,\n      hasPaymentLastFiveDigits = false,\n      isJoinResults = true,\n      isTranslate = true\n    }) {\n      const paymentMethodKey = document.getData('paymentMethodKey');\n      const paymentLastFiveDigits = document.getData('paymentLastFiveDigits') || '';\n      let translatedPaymentMethodKey = '';\n      if (isTranslate) {\n        if (RA.isNotNilOrEmpty(paymentLastFiveDigits) && hasPaymentLastFiveDigits) {\n          translatedPaymentMethodKey = `${this.intl.t(paymentMethodKey)} (${this.intl.t('account last 5 digits')}: ${paymentLastFiveDigits})`;\n        } else {\n          translatedPaymentMethodKey = this.intl.t(paymentMethodKey);\n        }\n      } else {\n        translatedPaymentMethodKey = paymentMethodKey;\n      }\n      let paymentMethodKeys = [translatedPaymentMethodKey];\n      if (document && hasGroups) {\n        const groups = document.getData('groups') || [];\n        R.forEach(group => {\n          const groupPaymentMethodKey = group.getData('paymentMethodKey');\n          const groupPaymentLastFiveDigits = group.getData('paymentLastFiveDigits') || '';\n          let groupTranslatedPaymentMethodKey = '';\n          if (isTranslate) {\n            if (RA.isNotNilOrEmpty(groupPaymentLastFiveDigits) && hasPaymentLastFiveDigits) {\n              groupTranslatedPaymentMethodKey = `${this.intl.t(groupPaymentMethodKey)} (${this.intl.t('account last 5 digits')}: ${groupPaymentLastFiveDigits})`;\n            } else {\n              groupTranslatedPaymentMethodKey = this.intl.t(groupPaymentMethodKey);\n            }\n          } else {\n            groupTranslatedPaymentMethodKey = groupPaymentMethodKey;\n          }\n          paymentMethodKeys.push(groupTranslatedPaymentMethodKey);\n        })(groups);\n      }\n      paymentMethodKeys = R.pipe(R.reject(RA.isNilOrEmpty), R.uniq)(paymentMethodKeys);\n      if (isJoinResults) {\n        return R.join(', ', paymentMethodKeys);\n      } else {\n        return paymentMethodKeys;\n      }\n    },\n    getGroupedDocumentsTotal({\n      document,\n      hasGroups = true\n    }) {\n      const roundingCurrency = document.getData('roundingCurrency') || 0;\n      const paymentMethodKey = document.getData('paymentMethodKey');\n      let exclTotal = document.getDataBig('exclTotal');\n      let taxTotal = document.getDataBig('taxTotal');\n      let inclTotal = document.getDataBig('inclTotal');\n      let rewardPointEarned = document.getDataBig('rewardPointEarned');\n      let returnRewardAdjustmentPoints = document.getDataBig('returnRewardAdjustmentPoints');\n      let returnRewardAdjustmentAmount = document.getDataBig('returnRewardAdjustmentAmount');\n      let cashCollectionInclTotal = this.big.newBig(0);\n      if (paymentMethodKey === 'cash') {\n        cashCollectionInclTotal = document.getDataBig('cashCollectionInclTotal');\n      }\n      if (document && hasGroups) {\n        const groups = document.getData('groups') || [];\n        R.forEach(group => {\n          const groupExclTotal = group.getData('exclTotal') || 0;\n          const groupTaxTotal = group.getData('taxTotal') || 0;\n          const groupInclTotal = group.getData('inclTotal') || 0;\n          const groupRewardPointEarned = group.getData('rewardPointEarned') || 0;\n          const groupReturnRewardAdjustmentPoints = group.getData('returnRewardAdjustmentPoints') || 0;\n          const groupReturnRewardAdjustmentAmount = group.getData('returnRewardAdjustmentAmount') || 0;\n          const groupCashCollectionInclTotal = group.getData('cashCollectionInclTotal') || 0;\n          const groupPaymentMethodKey = group.getData('paymentMethodKey');\n          exclTotal = exclTotal.add(groupExclTotal);\n          taxTotal = taxTotal.add(groupTaxTotal);\n          inclTotal = inclTotal.add(groupInclTotal);\n          rewardPointEarned = rewardPointEarned.add(groupRewardPointEarned);\n          returnRewardAdjustmentPoints = returnRewardAdjustmentPoints.add(groupReturnRewardAdjustmentPoints);\n          returnRewardAdjustmentAmount = returnRewardAdjustmentAmount.add(groupReturnRewardAdjustmentAmount);\n          if (groupPaymentMethodKey === 'cash') {\n            cashCollectionInclTotal = cashCollectionInclTotal.add(groupCashCollectionInclTotal);\n          }\n        })(groups);\n      }\n      return {\n        exclTotal: exclTotal.toFixed(roundingCurrency),\n        taxTotal: taxTotal.toFixed(roundingCurrency),\n        inclTotal: inclTotal.toFixed(roundingCurrency),\n        cashCollectionInclTotal: cashCollectionInclTotal.toFixed(0),\n        rewardPointEarned: rewardPointEarned.toFixed(0),\n        returnRewardAdjustmentPoints: returnRewardAdjustmentPoints.toFixed(0),\n        returnRewardAdjustmentAmount: returnRewardAdjustmentAmount.toFixed(roundingCurrency)\n      };\n    },\n    // sortedDetailsNetReturns: computed('sortedDetailsWithDiscountAndReward.[]', 'returnsDetails.[]', function () {\n    //   const returnsDetails = this.returnsDetails || []\n    //   console.log('====returnsDetails======')\n    //   console.log(returnsDetails)\n    //   console.log('====sortedDetailsWithDiscountAndReward======')\n    //   const sortedDetailsWithDiscountAndReward = this.sortedDetailsWithDiscountAndReward || []\n    //   console.log(this.sortedDetailsWithDiscountAndReward)\n    //   if (RA.isNotNilOrEmpty(returnsDetails)) {\n    //   }\n    //   return sortedDetailsWithDiscountAndReward\n    // }),\n\n    addressDisplay: Ember.computed('_data.{addressData,type,isConvenienceStore,hasAdvancedAddress,pickupMethod}', function () {\n      const model = this;\n      const docData = model.serialize();\n      const advancedAddress = this.buildAddressFromAdvancedAddress(docData);\n      return advancedAddress || docData?.address || '';\n    }),\n    convenienceStoreAddress: Ember.computed('addressDisplay', '_data.{isConvenienceStore,hasAdvancedAddress}', '_data.convenienceStoreData.{brand,storeName,storeAddress,storeId}', function () {\n      const isConvenienceStore = this?._data?.isConvenienceStore || false;\n      if (!isConvenienceStore) {\n        return '';\n      }\n      const hasAdvancedAddress = this?._data?.hasAdvancedAddress || false;\n      if (hasAdvancedAddress) {\n        return this.addressDisplay;\n      }\n      const convenienceStoreData = this?._data?.convenienceStoreData || {};\n      return `${this.intl.t(convenienceStoreData.brand)} - ${convenienceStoreData.storeName} - ${convenienceStoreData.storeAddress} - (${this.intl.t('storeId')}: ${convenienceStoreData.storeId})`;\n    }),\n    /**\n     * returns true if discount is a %\n     * @type {Boolean}\n     */\n    isDiscountRate: Ember.computed('_data.discountType', function () {\n      const discType = this.getData('discountType');\n      if (discType === this.get('constants.discountTypes.rate')) {\n        return true;\n      }\n      return false;\n    }),\n    isTaxExclusive: Ember.computed('_data.taxMethodKey', function () {\n      const taxMethodKey = this.getData('taxMethodKey');\n\n      // no taxMethodKey (none) is also treated as exclusive\n      if (taxMethodKey === this.get('constants.taxMethods.exclusive') || taxMethodKey === this.get('constants.taxMethods.none')) {\n        return true;\n      }\n      return false;\n    }),\n    isPurchases: Ember.computed('_data.docType', function () {\n      if (this.get('_data.docType') === 'purchases') {\n        return true;\n      }\n      return false;\n    }),\n    isSales: Ember.computed('_data.docType', function () {\n      if (this.get('_data.docType') === 'sales') {\n        return true;\n      }\n      return false;\n    }),\n    isCashBeforeDelivery: Ember.computed('_data.{docType,docName}', function () {\n      if (this.get('_data.paymentMethodKey') === this.get('constants.paymentMethods.cashBeforeDelivery')) {\n        return true;\n      }\n      return false;\n    }),\n    isCashOnDelivery: Ember.computed('_data.{docType,docName}', function () {\n      if (this.get('_data.paymentMethodKey') === this.get('constants.paymentMethods.cash')) {\n        return true;\n      }\n      return false;\n    }),\n    isSalesReturns: Ember.computed('_data.{docType,docName}', function () {\n      if (this.get('_data.docType') === 'sales' && this.get('_data.docName') === 'returns') {\n        return true;\n      }\n      return false;\n    }),\n    isSalesInvoices: Ember.computed('_data.{docType,docName}', function () {\n      if (this.get('_data.docType') === 'sales' && this.get('_data.docName') === 'invoices') {\n        return true;\n      }\n      return false;\n    }),\n    hasDispatchProcess: Ember.computed('_data.{docType,docName,paymentMethodKey}', function () {\n      const docType = this.get('_data.docType');\n      const docName = this.get('_data.docName');\n      const paymentMethodKey = this.get('_data.paymentMethodKey');\n      if (docType === 'sales' && (docName === 'invoices' || docName === 'consignments')) {\n        if (docName === 'invoices' && paymentMethodKey === _index.default.paymentMethods.consignment) {\n          return false;\n        }\n        return true;\n      }\n      return false;\n    }),\n    dispatchProcess: Ember.computed('_data.dispatchProcess', function () {\n      if (this.get('_data.dispatchProcess') === '') {\n        return 'unprepared';\n      }\n      return this.get('_data.dispatchProcess');\n    }),\n    hasTaxMethod: Ember.computed('_data.taxMethodKey', function () {\n      const taxMethodKey = this.getData('taxMethodKey');\n\n      // no taxMethodKey (none) is also treated as exclusive\n      if (taxMethodKey === this.get('constants.taxMethods.none') || taxMethodKey === '') {\n        return false;\n      }\n      return true;\n    }),\n    hasRewards: Ember.computed('_data.rewardInclTotal', function () {\n      const rewardInclTotal = parseInt(this._data.rewardInclTotal) || 0;\n      if (rewardInclTotal > 0) {\n        return true;\n      }\n      return false;\n    }),\n    hasDiscount: Ember.computed('_data.discInclTotal', function () {\n      const discInclTotal = this.get('_data.discInclTotal') || 0;\n      if (discInclTotal > 0) {\n        return true;\n      }\n      return false;\n    }),\n    hasDiscountRate: Ember.computed('_data.discountRate', function () {\n      if (!this.hasDiscount) {\n        return false;\n      }\n      const discInclTotal = this.getData('discountRate') || 0;\n      if (discInclTotal > 0) {\n        return true;\n      }\n      return false;\n    }),\n    hasDiscountAmount: Ember.computed('hasDiscountRate', '_data.{discountType,discountAmount}', function () {\n      if (!this.hasDiscount) {\n        return false;\n      }\n      const discountType = this.getData('discountType') || '';\n      if (discountType === this.get('constants.discountTypes.amount') && this.getData('discountAmount')) {\n        return true;\n      }\n      return false;\n    }),\n    calculatedDiscExclTotal: Ember.computed('hasDiscountAmount', '_data.{discExclTotal,discInclTotal,details.[]}', function () {\n      if (this.hasDiscountAmount) {\n        if (this.getData('discExclTotal')) {\n          return this.getData('discExclTotal');\n        }\n        const details = this.getData('details') || [];\n        const roundingCurrency = this.getData('roundingCurrency') || 0;\n        return this.big.sumPropAndRound(roundingCurrency, '_data.allocatedExclDiscountUnrounded', details);\n      }\n      return '';\n    }),\n    hasReturnsDetails: Ember.computed('returnsDetails.[]', 'synced', function () {\n      const returnsDetails = this.returnsDetails || [];\n      if (RA.isNilOrEmpty(returnsDetails)) {\n        return false;\n      }\n      return true;\n    }),\n    returnsInclTotal: Ember.computed('returnsDetails.[]', 'synced', function () {\n      let returnsDetails = this.returnsDetails || [];\n      if (RA.isNilOrEmpty(returnsDetails)) {\n        return 0;\n      }\n      returnsDetails = R.reject(R.pathEq(['_data', 'isSetChild'], true))(returnsDetails);\n      const roundingCurrency = this.getData('roundingCurrency') || 0;\n      return this.big.sumPropAndRound(roundingCurrency, '_data.postDiscInclAmt', returnsDetails);\n    }),\n    netInclTotal: Ember.computed('returnsInclTotal', 'returnsDetails.[]', 'synced', function () {\n      let returnsDetails = this.returnsDetails || [];\n      if (RA.isNilOrEmpty(returnsDetails)) {\n        return 0;\n      }\n      returnsDetails = R.reject(R.pathEq(['_data', 'isSetChild'], true))(returnsDetails);\n      return this._calculateNetInclTotal(returnsDetails);\n    }),\n    allowDuplicating: Ember.computed('_data.{rewardPointApplied,rewardPointEarned}', function () {\n      if (this?._data?.rewardPointApplied || this?._data?.rewardPointEarned) {\n        return false;\n      }\n      return true;\n    }),\n    _calculateNetInclTotal(returnsDetails) {\n      const roundingCurrency = this.getData('roundingCurrency') || 0;\n      const returnsInclTotal = this.big.sumPropAndRound(roundingCurrency, '_data.postDiscInclAmt', returnsDetails);\n      const inclTotal = this.getData('inclTotal') || 0;\n      return this.big.newBig(inclTotal).minus(returnsInclTotal).toFixed(roundingCurrency);\n    },\n    hasPaymentReminders: Ember.computed('_data.{docType,docName,paymentMethodKey,paymentCreditCardTransaction}', function () {\n      const docType = this.getData('docType');\n      const docName = this.getData('docName');\n      if (docType === 'sales') {\n        if (docName === 'quotes' || docName === 'invoices' || docName === 'orders') {\n          if (this.getData('paymentMethodKey') === this.constants.paymentMethods.cashBeforeDelivery) {\n            return true;\n          }\n        }\n      }\n      return false;\n    }),\n    hasDispatchStatus: Ember.computed('_data.{status,docType,docName}', function () {\n      const docType = this.getData('docType');\n      const docName = this.getData('docName');\n      const status = this.getData('status');\n      if (docType === 'sales' && (docName === 'invoices' || docName === 'consignments') && status === 'final') {\n        return true;\n      }\n      return false;\n    }),\n    isDraft: Ember.computed('_data.status', function () {\n      const status = this.getData('status');\n      if (status === this.get('constants.documentsStatus.draft')) {\n        return true;\n      }\n      return false;\n    }),\n    isConsignment: Ember.computed('_data.docName', function () {\n      const docName = this.getData('docName');\n      if (docName === 'consignments') {\n        return true;\n      }\n      return false;\n    }),\n    requirePrintEInvoice: Ember.computed('_data.allowPrintInvoice', 'eInvoicesCollection._data.invoices.[]', function () {\n      const settings = this.settings;\n      const eInvoices = this.get('eInvoicesCollection._data.invoices') || [];\n      const hasTwEInvoices = settings.hasTwEInvoices(this);\n      if (hasTwEInvoices) {\n        const successfulInvoices = R.filter(R.pathEq(['_data', 'status'], 'successful'), eInvoices);\n        if (R.isEmpty(successfulInvoices)) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    lockDispatchStatusAfterDays: Ember.computed('_data.transporterExtension', function () {\n      let lockDispatchStatusAfterDays = 30; // default is 30 days\n\n      const transporterExtension = R.pathOr('', ['_data', 'transporterExtension'])(this);\n      if (transporterExtension === this.constants.transporterExtensions.sevenEleven || transporterExtension === this.constants.transporterExtensions.payuniSevenEleven) {\n        lockDispatchStatusAfterDays = 90;\n      } // can add else if here if any more transporter extension need different lock days\n\n      return lockDispatchStatusAfterDays;\n    }),\n    allowDispatchProcesses: Ember.computed('_data.{dispatchDateZ,timestampZ_latest,status}', 'lockDispatchStatusAfterDays', function () {\n      const lockDispatchStatusAfterDays = this.lockDispatchStatusAfterDays;\n      if (this.hasDispatchStatus) {\n        const status = this.get('_data.status');\n        if (status === this.get('constants.documentsStatus.void')) {\n          return false;\n        }\n        const isDispatched = this.get('_data.isDispatched');\n        const dispatchDateZ = this.get('_data.dispatchDateZ');\n        const timestampZ = this.get('_data.timestampZ_latest');\n        const isDispatchDateZBeforeLockDispatchStatusDays = this.dateService.isBeforeNumberOfDays(lockDispatchStatusAfterDays, dispatchDateZ);\n        const isTimestampZBeforeLockDispatchStatusDays = this.dateService.isBeforeNumberOfDays(lockDispatchStatusAfterDays, timestampZ);\n        if (isDispatched && isDispatchDateZBeforeLockDispatchStatusDays && isTimestampZBeforeLockDispatchStatusDays) {\n          return false;\n        }\n        return true;\n      }\n      return false;\n    }),\n    allowUndoVoid: Ember.computed('_data.{isVoid,paymentCreditCardStatus}', function () {\n      if (this.getData('paymentCreditCardStatus') === this.constants.paymentCreditCardStatus.refunded) {\n        return false;\n      }\n      if (this.getData('isVoid') === true) {\n        return true;\n      }\n      return false;\n    }),\n    hasBirthdayNotification: Ember.computed('_data.birthday', function () {\n      const birthday = this?._data?.birthday || '';\n      if (birthday) {\n        const todayZ = this.dateService.getStartOfDayZ();\n        const day = this.dateService.getMoment(birthday).date();\n        const dayStr = day.toString().padStart(2, '0');\n        const month = this.dateService.getMoment(birthday).month();\n        const monthStr = (month + 1).toString().padStart(2, '0');\n        const year = this.dateService.getMoment(todayZ).year();\n        const birthdayInCurrentYear = this.getStartOfDayZ(`${year}-${monthStr}-${dayStr}`);\n        const dateDiff = this.dateService.getDateDiff(birthdayInCurrentYear, todayZ, 'days') || 0;\n        if (Math.abs(dateDiff) <= 15) {\n          return true;\n        }\n        const currentMonth = this.dateService.getMoment(todayZ).month();\n        if (month === currentMonth) {\n          return true;\n        }\n      }\n      return false;\n    }),\n    loadPaymentMethod({\n      paymentMethod,\n      paymentMethodKey\n    } = {}) {\n      if (paymentMethodKey != null) {\n        this.setData('paymentMethodKey', paymentMethodKey);\n      }\n      const hasPaymentTerms = paymentMethod.getData('hasPaymentTerms') || false;\n      this.setData('paymentMethod', paymentMethod.getData('label'));\n      this.setData('hasPaymentTerms', hasPaymentTerms);\n      const paymentMethodIsNotDefault = R.pipe(R.hasPath(['_data', 'isNotEditable']), R.not)(paymentMethod);\n      if (paymentMethodIsNotDefault) {\n        const paymentMethodCustomLabel = paymentMethod.getData('customLabel');\n        this.setData('paymentMethodCustomLabel', paymentMethodCustomLabel);\n      } else {\n        this.setData('paymentMethodCustomLabel', '');\n        delete this._data.paymentMethodCustomLabel;\n        this.updateSynced();\n      }\n      this.loadPaymentTerms();\n    },\n    loadPaymentTerms({\n      paymentTerms,\n      paymentTermsKey\n    } = {}) {\n      // if (!paymentTerms) {\n      //   return false\n      // }\n\n      const hasPaymentTerms = this.getData('hasPaymentTerms');\n      if (!hasPaymentTerms) {\n        this.setData('paymentTermsKey', '');\n        this.setData('paymentTermsMonths', '');\n        this.setData('paymentTermsDays', '');\n        this.setData('paymentTermsFrom', '');\n        this.setData('paymentTermsEnd', '');\n        return false;\n      }\n      if (paymentTermsKey != null) {\n        this.setData('paymentTermsKey', paymentTermsKey);\n      }\n      paymentTermsKey = this.getData('paymentTermsKey');\n      if (!paymentTermsKey) {\n        this.setData('paymentTermsMonths', '0');\n        this.setData('paymentTermsDays', '0');\n        this.setData('paymentTermsFrom', this.get('constants.paymentTermsFrom.invoiceMonth'));\n        this.setData('paymentTermsEnd', this.get('constants.paymentTermsEnd.exactDate'));\n        this.setData('paymentTermsLastDayOfMonth', '0');\n        return false;\n      }\n      if (RA.isNotNilOrEmpty(paymentTerms)) {\n        this.setData('paymentTerms', paymentTerms.getData('label'));\n        this.setData('paymentTermsMonths', paymentTerms.getData('months'));\n        this.setData('paymentTermsDays', paymentTerms.getData('days'));\n        this.setData('paymentTermsFrom', paymentTerms.getData('from'));\n        this.setData('paymentTermsEnd', paymentTerms.getData('end'));\n        this.setData('paymentTermsLastDayOfMonth', paymentTerms.getData('lastDayOfMonth'));\n      }\n      return true;\n    },\n    hasDuplicateProduct(product) {\n      const details = this.getData('details');\n      const found = details.filterBy('_data.itemKey', product.getData('_key'));\n      if (found.length > 1) {\n        return true;\n      }\n      return false;\n    },\n    loadProduct(taxRate, detail, product, historyData) {\n      detail.setData('isSet', product.getData('isSet'));\n      let detailType = product.getData('type') || this.get('constants.productTypes.inventory');\n      if (!this.settings.isFeatureAllowed('features.allowCollectOnBehalf') && detailType === this.get('constants.productTypes.collectOnBehalf')) {\n        detailType = this.get('constants.productTypes.inventory');\n      }\n      detail.setData('type', detailType);\n      detail.setData('unit', product.getData('unit'));\n      detail.setData('unitKey', product.getData('unitKey'));\n      detail.setData('item', product.getData('name'));\n      detail.setData('supplierKey', product.getData('preferredSupplierKey') || '');\n      detail.setData('supplierName', product.getData('preferredSupplierName') || '');\n      detail.setData('invoiceDescription', product.getData('invoiceDescription'));\n      detail.setData('collectOnBehalfPreDescription', product.getData('collectOnBehalfPreDescription') || '');\n      detail.setData('collectOnBehalfDescription', product.getData('collectOnBehalfDescription') || '');\n      detail.setData('roundingInventoryQty', product.getData('roundingInventoryQty', this.settings.getProp('roundingInventoryQty')));\n      detail.setData('roundingInventoryPrice', product.getData('roundingInventoryPrice', this.settings.getProp('roundingInventoryPrice')));\n      detail.setData('taxRate', taxRate);\n      const options = {\n        defaultDetailPrice: detail?._data?.price\n      };\n      this.setDetailPrice(detail, historyData, options);\n    },\n    setDetailPrice(detail, historyData, {\n      defaultDetailPrice = ''\n    } = {}) {\n      let price = defaultDetailPrice;\n      const isTaxExclusive = this.isTaxExclusive;\n      if (!price) {\n        if (isTaxExclusive) {\n          price = historyData.exclPrice;\n        } else {\n          price = historyData.inclPrice;\n        }\n      }\n      if (!price) {\n        const docType = this.get('_data.docType');\n        let method = 'Excl';\n        if (!isTaxExclusive) {\n          method = 'Incl';\n        }\n        price = R.propOr('', `${docType}${method}Price`, historyData);\n      }\n      price = this._setPreBulkDiscountPrice({\n        price,\n        historyData\n      });\n      detail.setData('price', price);\n      this.setProductCommissionsBaseCost(detail, historyData);\n      this.sumTotals();\n    },\n    _setPreBulkDiscountPrice({\n      price,\n      historyData\n    }) {\n      const roundingCurrency = this.getData('roundingCurrency');\n      const bulkDiscountAmt = R.propOr(0, 'bulkDiscountAmt')(historyData);\n      if (R.gt(bulkDiscountAmt, 0)) {\n        price = this.big.newBig(price).plus(bulkDiscountAmt).toFixed(roundingCurrency);\n      }\n      return price;\n    },\n    /**\n     * determine if there is a single discount or has multiple discounts (line by line)\n     */\n    hasSingleDiscount: Ember.computed('_data.discountMethod', function () {\n      const discountMethod = this.get('_data.discountMethod');\n      if (discountMethod === this.get('constants.discountMethods.onTotal')) {\n        return true;\n      }\n      return false;\n    }),\n    hasLineByLineDiscount: Ember.computed('_data.discountMethod', function () {\n      return !this.hasSingleDiscount;\n    }),\n    setProductCommissionsBaseCost(detail, historyData) {\n      const hasSalesPersons = this.hasSalesPersons;\n      if (hasSalesPersons) {\n        // @TODO: should check the sales person from linking doc and to linking doc.\n        // @TODO: commission may be different from sales persons\n        const commissionBaseCost = R.propOr(0, 'commissionBaseCost', historyData);\n        if (commissionBaseCost !== 0 && commissionBaseCost !== '0') {\n          // set base cost only if its non 0\n          detail.setData('commissionBaseCost', commissionBaseCost);\n        }\n      }\n    },\n    hasSalesPersons: Ember.computed('_data.salesPersons.[]', function () {\n      const salesPersons = this.getData('salesPersons') || [];\n      if (R.isEmpty(salesPersons)) {\n        return false;\n      }\n      return salesPersons;\n    }),\n    isCreditCardPayment: Ember.computed('_data.paymentMethodKey', function () {\n      if (this._data.paymentMethodKey === this.constants.paymentMethods.creditCard) {\n        return true;\n      }\n      return false;\n    }),\n    isLinePayPayment: Ember.computed('_data.paymentMethodKey', function () {\n      if (this._data.paymentMethodKey === this.constants.paymentMethods.linePay) {\n        return true;\n      }\n      return false;\n    }),\n    creditCardLastFourDigits: Ember.computed('_data.paymentCreditCardLastFourDigits', '_data.paymentCreditCard.partial_card_number', '_data.paymentCreditCard.card4no', function () {\n      if (this?._data?.paymentCreditCardLastFourDigits) {\n        return this?._data?.paymentCreditCardLastFourDigits;\n      }\n      if (this?._data?.paymentCreditCard?.partial_card_number) {\n        return this?._data?.paymentCreditCard?.partial_card_number;\n      }\n      if (this?._data?.paymentCreditCard?.card4no) {\n        return this?._data?.paymentCreditCard?.card4no;\n      }\n      return '';\n    }),\n    orderNumber: Ember.computed('_data.paymentCreditCardOrderNumber', '_data.paymentCreditCard.bank_transaction_id', function () {\n      if (this?._data?.paymentCreditCardOrderNumber) {\n        return this?._data?.paymentCreditCardOrderNumber;\n      }\n      if (this?._data?.paymentCreditCard?.bank_transaction_id) {\n        return this?._data?.paymentCreditCard?.bank_transaction_id;\n      }\n      return '';\n    }),\n    isIntegratedCreditCardProvider: Ember.computed('_data.paymentCreditCardProvider', function () {\n      const integratedCreditCardProviderList = [this.constants.creditCardProvider.ecPay, this.constants.creditCardProvider.tapPay, this.constants.creditCardProvider.payuni];\n      const paymentCreditCardProvider = this?._data?.paymentCreditCardProvider || '';\n      if (integratedCreditCardProviderList.includes(paymentCreditCardProvider)) {\n        return true;\n      }\n\n      // New single property for payment provider\n      const paymentProviderList = [this.constants.paymentProvider.ecPay, this.constants.paymentProvider.tapPay, this.constants.paymentProvider.payuni];\n      const paymentProvider = this?._data?.paymentProvider || '';\n      if (paymentProviderList.includes(paymentProvider)) {\n        return true;\n      }\n      return false;\n    }),\n    allowReturns: Ember.computed('_data.{docType,docName,dispatchProcess}', function () {\n      // @TODO: allow other docs at a later stage\n      if (this?._data?.dispatchProcess === this.constants.dispatchProcess.awaitingPayment) {\n        // don't allow returns when status is still awaitingPayment\n        return false;\n      }\n\n      // ADD BUTTON FOR INDIVIDUAL RECACHE INVENTORY\n\n      if (this._data.docType !== 'sales' || this._data.docName !== 'invoices') {\n        return false;\n      }\n      if (this._data.isVoid) {\n        return false;\n      }\n      if (this._data.status !== this.constants.documentsStatus.final) {\n        return false;\n      }\n      if (this._data.paymentMethodKey === this.constants.paymentMethods.creditCard && this._data.paymentCreditCardStatus !== this.constants.paymentCreditCardStatus.approved) {\n        return false;\n      }\n      return true;\n    }),\n    allowDiscounts: Ember.computed('_data.{docType,docName}', function () {\n      // @TODO: allow other docs at a later stage\n\n      if (R.includes(this._data.docName)(['returns', 'consignments', 'consignments-returns'])) {\n        return false;\n      }\n      return true;\n    }),\n    allowCreditCardRefunds: Ember.computed('_data.{docType,docName,paymentMethodKey}', function () {\n      if (!this._data.docType === 'sales' || !this._data.docName === 'returns') {\n        return false;\n      }\n      if (this._data.isVoid) {\n        return false;\n      }\n      const refundablePaymentMethods = [this.constants.paymentMethods.creditCard, this.constants.paymentMethods.linePay, this.constants.paymentMethods.applePay, this.constants.paymentMethods.googlePay, this.constants.paymentMethods.samsungPay];\n      const paymentMethodKey = this?._data?.paymentMethodKey || '';\n      if (refundablePaymentMethods.includes(paymentMethodKey)) {\n        return true;\n      }\n      return false;\n    }),\n    isAllowPartialCreditCardRefund: Ember.computed('_data.{disallowCreditCardPartialRefunds,paymentCreditCardTransactionTimestampZ,paymentCreditCardTransactionCode}', 'synced', function () {\n      let allowCreditCardRefund = false;\n      if (this?._data?.disallowCreditCardPartialRefunds) {\n        return false;\n      }\n      const transactionDateZ = this.getData('paymentCreditCardTransactionTimestampZ');\n      if (transactionDateZ) {\n        const fourMonthAgo = this.dateService.getMoment().subtract(4, 'months');\n        allowCreditCardRefund = fourMonthAgo.isBefore(transactionDateZ);\n      }\n      return allowCreditCardRefund;\n    }),\n    detailsWithDiscountAndReward: Ember.computed('{_data.details.@each.synced,synced,hasDiscountAmount,hasRewards,calculatedDiscExclTotal,_data.discInclTotal,_data.rewardPointApplied,_data.rewardExclTotal,_data.rewardInclTotal}', function () {\n      const originalDetails = this.getData('details') || [];\n\n      // @TODO: move this out of computed prop.\n      // this should be added to component as its only for display purposes in doc only?\n      return this.addDiscountAndRewardToDetails(originalDetails);\n    }),\n    sortedDetailsWithDiscountAndReward: Ember.computed('{sorted.@each.synced,synced,hasDiscountAmount,hasRewards,calculatedDiscExclTotal,_data.discInclTotal,_data.rewardPointApplied,_data.rewardExclTotal,_data.rewardInclTotal}', function () {\n      let originalDetails = this.get('sorted') || [];\n\n      // @TODO: move this out of computed prop.\n      // this should be added to component as its only for display purposes in doc only?\n      return this.addDiscountAndRewardToDetails(originalDetails);\n    }),\n    addDiscountAndRewardToDetails(originalDetails) {\n      const details = R.concat(originalDetails, []);\n      const hasDiscount = this.get('hasDiscount') || false;\n      const hasRewards = this.get('hasRewards') || false;\n      const hasNoDiscountDetail = R.pipe(R.find(R.propEq(['_data', 'item'], this.intl.t('discount amount'))), RA.isNilOrEmpty())(details);\n      const hasNoRewardDetail = R.pipe(R.find(R.propEq(['_data', 'item'], `${this.intl.t('points spent')} (${this.intl.t('points', {\n        points: this.getData('rewardPointApplied')\n      })}): $ ${this.getData('rewardInclTotal') || 0}`)), RA.isNilOrEmpty())(details);\n      const roundingCurrency = this.getData('roundingCurrency') || 0;\n      let discountDetail = {};\n      if (hasDiscount && hasNoDiscountDetail) {\n        const inclAmt = this.getData('discInclTotal') || 0;\n        const exclAmt = this.get('calculatedDiscExclTotal') || this.getData('discExclTotal') || 0;\n        const discountTaxAmount = this.big.newBig(inclAmt).minus(exclAmt).toFixed(roundingCurrency);\n        let item = `${this.intl.t('discount')}: $ ${this.intl.formatNumber(this.getData('discountAmount'))}`;\n        if (this.get('hasDiscountRate')) {\n          let discountLabel = this.intl.t('discount');\n          const promoCode = this.getData('promoCode') || '';\n          if (promoCode) {\n            discountLabel = `${discountLabel} (${promoCode})`;\n          }\n          item = `${discountLabel}: ${this.getData('discountRate')}%`;\n        }\n        discountDetail = this.dataManager.setAsRecord({\n          adapterName: 'documents/details',\n          data: {\n            item,\n            exclAmt: R.negate(exclAmt),\n            taxAmt: R.negate(discountTaxAmount),\n            inclAmt: R.negate(inclAmt),\n            hasReturns: false,\n            netReturnsQty: 1\n          }\n        });\n        discountDetail.set('isAdditionalDetail', true);\n        details.pushObject(discountDetail);\n      }\n      let rewardDetail = {};\n      if (hasRewards && hasNoRewardDetail) {\n        const inclAmt = this.getData('rewardInclTotal') || 0;\n        const exclAmt = this.getData('rewardExclTotal') || 0;\n        const rewardTaxAmount = this.big.newBig(inclAmt).minus(exclAmt).toFixed(roundingCurrency);\n        rewardDetail = this.dataManager.setAsRecord({\n          adapterName: 'documents/details',\n          data: {\n            item: `${this.intl.t('points spent')} (${this.intl.t('points', {\n              points: this.getData('rewardPointApplied')\n            })}): $ ${inclAmt}`,\n            exclAmt: R.negate(exclAmt),\n            taxAmt: R.negate(rewardTaxAmount),\n            inclAmt: R.negate(inclAmt),\n            hasReturns: false,\n            netReturnsQty: 1\n          }\n        });\n        rewardDetail.set('isAdditionalDetail', true);\n        details.pushObject(rewardDetail);\n      }\n      return details;\n    },\n    sortedDetailsWithoutSets: Ember.computed('sortedDetailsWithDiscountAndReward.[]', '_data.details.@each.synced', 'synced', function () {\n      const details = this.get('sortedDetailsWithDiscountAndReward') || [];\n      return R.filter(detail => !detail?.isSet)(details);\n    }),\n    allCollectOnBehalfDetailsForPrint: Ember.computed('sortedDetailsWithDiscountAndReward.[]', '_data.details.@each.synced', '_data.groups.[]', '_data.groups.@each.sortedDetailsWithDiscountAndReward', '_data.groups.@each.synced', 'synced', function () {\n      const filterCOB = detail => {\n        const type = detail.getData('type') || '';\n        return type === this.get('constants.productTypes.collectOnBehalf');\n      };\n      const main = R.filter(filterCOB)(this.get('sortedDetailsWithDiscountAndReward') || []);\n      const groups = this.getData('groups') || [];\n      const fromGroups = R.chain(group => R.filter(filterCOB)(group.get('sortedDetailsWithDiscountAndReward') || []))(groups);\n      return R.concat(main, fromGroups);\n    }),\n    hasTaxRoundingDifference: Ember.computed('detailsWithDiscountAndReward', function () {\n      const details = this.get('detailsWithDiscountAndReward');\n      const roundingCurrency = this.getData('roundingCurrency') || 0;\n      const exclTotal = this.getData('exclTotal');\n      const calculatedExclTotal = this.big.sumPropAndRound(roundingCurrency, '_data.exclAmt', details);\n      if (exclTotal !== calculatedExclTotal) {\n        return true;\n      }\n      return false;\n    }),\n    calculatedExclTotal: Ember.computed('detailsWithDiscountAndReward', function () {\n      const details = this.get('detailsWithDiscountAndReward');\n      const roundingCurrency = this.getData('roundingCurrency') || 0;\n      return this.big.sumPropAndRound(roundingCurrency, '_data.exclAmt', details);\n    }),\n    calculatedTaxTotal: Ember.computed('detailsWithDiscountAndReward', function () {\n      const details = this.get('detailsWithDiscountAndReward');\n      const roundingCurrency = this.getData('roundingCurrency') || 0;\n      return this.big.sumPropAndRound(roundingCurrency, '_data.taxAmt', details);\n    }),\n    firstSelectedLinkFromDocKey: Ember.computed('synced', '_data.details.[]', 'selectedLinkFromDocKeys.[]', function () {\n      const selected = this.selectedLinkFromDocKeys || [];\n      if (RA.isNilOrEmpty(selected)) {\n        const details = this._data.details || [];\n        return R.pathOr('', [0, '_data', 'fromMaster'])(details);\n      }\n      return _nventor.default.safeHeadOr('')(selected);\n    }),\n    detailQtyGroupedByLinkedList: Ember.computed('_data.details[]', 'synced', function () {\n      const details = this._data.details || [];\n      return R.pipe(R.filter(detail => {\n        const fromDocName = R.pathOr('', ['_data', 'fromDocName'])(detail);\n        let pendingId = '';\n        if (RA.isNotNilOrEmpty(fromDocName)) {\n          pendingId = R.pathOr('', ['_data', `${fromDocName}PendingId`])(detail);\n          if (RA.isNilOrEmpty(pendingId) && R.equals(fromDocName, 'invoices')) {\n            pendingId = R.pathOr('', ['_data', 'fromDetailKey'])(detail);\n          }\n        }\n        if (RA.isNotNilOrEmpty(pendingId)) {\n          return true;\n        }\n        return false;\n      }), R.groupBy(detail => {\n        const fromDocName = R.pathOr('', ['_data', 'fromDocName'])(detail);\n        if (R.equals(fromDocName, 'invoices')) {\n          return R.path(['_data', 'fromDetailKey'])(detail);\n        }\n        return R.path(['_data', `${fromDocName}PendingId`])(detail);\n      }), R.map(group => {\n        const maxQty = R.pathOr('', [0, '_data', 'maxQtyWhenLinked'])(group);\n        const groupQtys = R.pipe(R.map(detail => {\n          const qty = R.pathOr('0', ['_data', 'qty'])(detail);\n          return this.big.newBig(qty).toFixed(0);\n        }), x => {\n          return this.big.sumArray(x).toFixed(0);\n        })(group);\n        const fromDocName = R.pathOr('', [0, '_data', 'fromDocName'])(group);\n        let isExceedMaxQty = false;\n        let isQtyFullCapacity = false;\n        if (RA.isNotNilOrEmpty(maxQty)) {\n          isExceedMaxQty = this.big.newBig(groupQtys).gt(maxQty);\n          isQtyFullCapacity = this.big.newBig(groupQtys).gte(maxQty);\n        }\n        return {\n          type: fromDocName,\n          isExceedMaxQty,\n          isQtyFullCapacity\n        };\n      }))(details);\n    }),\n    qtyWhenLinkedExceedAllowedQty: Ember.computed('_data.details.@each.synced', 'detailQtyGroupedByLinkedList', 'synced', function () {\n      if (this?._data?.docName !== 'returns') {\n        return false;\n      }\n      if (this?._data?.docName !== 'consignment-returns') {\n        return false;\n      }\n      const details = this._data.details || [];\n      const detailQtyWhenLinkedExceedAllowedQtyList = R.map(R.propOr(false, 'detailQtyWhenLinkedExceedAllowedQty'))(details);\n      const qtyWhenLinkedExceedAllowedQty = R.any(R.equals(true))(detailQtyWhenLinkedExceedAllowedQtyList);\n\n      // check for if there's multiple row of detail with same link and if the sum qty exceed allowed\n      const detailQtyGroupedByLinkedList = this.detailQtyGroupedByLinkedList;\n      const detailQtyGroupedByLinkedExceedAllowedQty = R.pipe(R.values, R.reject(R.propEq('type', 'orders')), R.pluck('isExceedMaxQty'), R.any(R.equals(true)))(detailQtyGroupedByLinkedList);\n      return detailQtyGroupedByLinkedExceedAllowedQty || qtyWhenLinkedExceedAllowedQty;\n    }),\n    qtyHaveValueBelowOne: Ember.computed('_data.docName', '_data.details.@each.synced', 'synced', function () {\n      const details = this?._data?.details || [];\n      const detailQtyBigList = R.pipe(R.map(detail => {\n        const detailItem = R.pathOr('', ['_data', 'item'])(detail);\n        const detailItemKey = R.pathOr('', ['_data', 'itemKey'])(detail);\n        // const detailItemCode = R.pathOr('', ['_data', 'itemCode'])(detail)\n\n        if (RA.isNotNilOrEmpty(detailItem) || RA.isNotNilOrEmpty(detailItemKey)) {\n          const detailQty = R.pathOr('', ['_data', 'qty'])(detail);\n          return this.big.newBig(detailQty);\n        }\n        return false;\n      }), R.reject(R.equals(false)))(details);\n      let isAnyQtyBelowOne = R.any(R.gte(0))(detailQtyBigList);\n      const docName = this?._data?.docName || '';\n      const isReturnDocs = R.includes(docName, ['consignments-returns', 'returns']);\n      const hasMoreThanOneDetail = R.gt(R.length(detailQtyBigList), 1);\n      if (isReturnDocs && hasMoreThanOneDetail) {\n        isAnyQtyBelowOne = R.any(R.gt(0))(detailQtyBigList);\n      }\n      const isTotalDetailQtyZeroOrBelow = R.gte(0, R.sum(detailQtyBigList));\n      const hasMoreThanZeroDetail = R.gt(R.length(detailQtyBigList), 0);\n      if (isTotalDetailQtyZeroOrBelow && hasMoreThanZeroDetail) {\n        return true;\n      }\n      if (isAnyQtyBelowOne) {\n        return true;\n      }\n      return false;\n    }),\n    haveMultiplePendingId: Ember.computed('detailQtyGroupedByLinkedList', 'synced', function () {\n      const detailQtyGroupedByLinkedList = this.detailQtyGroupedByLinkedList || {};\n      const pendingIdListLength = R.pipe(R.values, R.pluck('type'), R.uniq, R.length)(detailQtyGroupedByLinkedList);\n      if (R.gt(pendingIdListLength, 1)) {\n        return true;\n      }\n      return false;\n    }),\n    totalItems: Ember.computed('_data.details.[]', function () {\n      const salesInvoicesDetails = this.getData('details') || [];\n      const salesInvoicesTotalItems = R.pipe(R.reject(R.anyPass([R.pathEq(['_data', 'isSet'], true), R.pathEq(['_data', 'type'], 'paymentFee'), R.pathEq(['_data', 'type'], 'shippingFee')])), R.map(R.pathOr(0, ['_data', 'qty'])), R.sum)(salesInvoicesDetails) || 0;\n      let salesReturnsTotalItems = 0;\n      const returnsDetails = this.get('returnsDetails') || [];\n      if (RA.isNotNilOrEmpty(returnsDetails)) {\n        salesReturnsTotalItems = R.pipe(R.reject(R.anyPass([R.pathEq(['_data', 'isSet'], true), R.pathEq(['_data', 'type'], 'paymentFee'), R.pathEq(['_data', 'type'], 'shippingFee')])), R.map(R.pathOr(0, ['_data', 'qty'])), R.sum)(returnsDetails) || 0;\n      }\n      return R.subtract(salesInvoicesTotalItems, salesReturnsTotalItems);\n    }),\n    hasExpiredWaybill: Ember.computed('_data.{transporterPrintHistory,waybill}', function () {\n      const waybill = this._data.waybill;\n      if (!waybill) {\n        return false;\n      }\n      const transporterPrintHistory = this?._data?.transporterPrintHistory || [];\n      const lastPrintTimestamp = R.pipe(R.find(R.propEq('waybill', waybill)), R.prop('timestampZ_printed'))(transporterPrintHistory);\n      if (lastPrintTimestamp) {\n        const maxAllowDays = 7;\n        let date = this.dateService.getMoment(lastPrintTimestamp);\n        const todayZ = this.dateService.getStartOfDayZ();\n        const days = this.dateService.getDateDiff(date, todayZ, 'days');\n        return days >= maxAllowDays;\n      }\n      return true;\n    }),\n    allowUpdateWaybillData: Ember.computed('_data.{transporterPrintHistory,waybill}', function () {\n      const transporterWaybillRecord = this?._data?.transporterWaybillRecord;\n      if (!transporterWaybillRecord) {\n        return false;\n      }\n      if (this.hasExpiredWaybill) {\n        return false;\n      }\n      return true;\n    }),\n    selectedZone: Ember.computed('_data.{shippingFeeData.combinedZones.[],transporterKey}', function () {\n      const transporterKey = this?._data?.transporterKey;\n      const combinedZones = this?._data?.shippingFeeData?.combinedZones || [];\n      return R.find(R.propEq('transporterKey', transporterKey))(combinedZones);\n    }),\n    /**\n     * Builds the one-line address from the advanced address fields.\n     * @param {Object} data - document data, falls back to the model's own data\n     * @returns {string} empty when the advanced address has no street\n     */\n    buildAddressFromAdvancedAddress(data = {}) {\n      const addressData = data?.addressData || this?._data?.addressData || {};\n      const isConvenienceStore = data?.isConvenienceStore || this?._data?.isConvenienceStore || false;\n      if (!addressData?.street) {\n        return '';\n      }\n      let prefix = '';\n      if (isConvenienceStore) {\n        prefix = `[${this.intl.t(addressData.brand)}](${addressData.storeId}${addressData.storeName})`;\n      }\n      const postCode = addressData?.postCode || '';\n      const region = addressData?.region || '';\n      const district = addressData?.district || '';\n      const street = addressData.street;\n      return `${prefix}${postCode}${region}${district}${street}`;\n    },\n    updateAddressWithAdvanceAddress(data = {}) {\n      const advancedAddress = this.buildAddressFromAdvancedAddress(data);\n      if (advancedAddress) {\n        this.setData('address', advancedAddress);\n        return advancedAddress;\n      }\n      return data?.address || '';\n    },\n    // hasAutoCancelInvoice: computed('lastSuccessfulEInvoice._data.number', function () {\n    //   const hasAutoCancelInvoice = R.pathOr(false, ['lastSuccessfulEInvoice', '_data', 'number'], this)\n    //   return hasAutoCancelInvoice\n    // })\n    // creditCardRefunds: computed('_data.creditCardRefunds.[]', function () {\n    //   const creditCardRefunds = this._data.creditCardRefunds || []\n\n    //   if (RA.isNilOrEmpty(creditCardRefunds)) {\n    //     return ''\n    //   }\n\n    //   return this._data.creditCardRefunds\n    // })\n    _transformCreditCardRefundsSchedules(data) {\n      this.set('creditCardRefundsSchedules', data?.creditCardRefundsSchedules);\n      return R.omit(['creditCardRefundsSchedules'])(data);\n    },\n    toggleDiscountType(item) {\n      const discType = item.getData('value');\n      if (discType === this.get('constants.discountTypes.rate')) {\n        const currentDiscValue = this.getData('discountAmount') || this.getData('discountRate');\n        this.setData('discountRate', currentDiscValue);\n        this.setData('discountAmount', '');\n      } else {\n        const currentDiscValue = this.getData('discountRate') || this.getData('discountAmount');\n        this.setData('discountAmount', currentDiscValue);\n        this.setData('discountRate', '');\n      }\n      this.sumTotals();\n    },\n    toggleShowQtyWarningMsg() {\n      this.set('showQtyWarningMsg', true);\n    },\n    onSetTwEInvoiceCarrierType() {\n      const twEInvoiceCarrierType = this._data?.twEInvoiceCarrierType;\n      if (twEInvoiceCarrierType === 'b2b') {} else {}\n      this.set('_data.twEInvoiceCarrierId', '');\n      this.set('_data.companyName', '');\n      this.set('_data.taxNumber', '');\n      const synced = Math.random();\n      this.set('synced', synced);\n    },\n    setupTaxDetails(companyDetails = {}) {\n      this.eInvoicesService.setupTaxDetails(this, companyDetails);\n    },\n    setTransporterData(transporterModel, senderModel) {\n      if (!transporterModel && !senderModel) {\n        return;\n      }\n      let hasTransporterDeliveryTimeInTransporterKey = false;\n      // NOTE: When transporter sender has been set, it will auto select the data on document.Otherwise, it will be empty.\n      const transporterData = senderModel?.getTransporterData() || {};\n      for (const transporterDataKey in transporterData) {\n        if (transporterDataKey === 'transporterDeliveryTime') {\n          hasTransporterDeliveryTimeInTransporterKey = true;\n        }\n        const value = transporterData[transporterDataKey];\n        this.set(`_data.${transporterDataKey}`, value);\n      }\n\n      // set transporterPreferredArrivalTimePeriod for legacy purpose if pickupLocations still using transporterDeliveryTime\n      if (hasTransporterDeliveryTimeInTransporterKey) {\n        const transporterDeliveryTime = this.getData('transporterDeliveryTime');\n        this.setData('transporterPreferredArrivalTimePeriod', transporterDeliveryTime);\n      }\n    },\n    translateAccountName: Ember.computed('_data.transporterExtension', function () {\n      // @TODO: this is difficult to maintain,\n      // there are multiple versions\n      return R.anyPass([R.pathEq(['_data', 'transporterExtension'], this.constants.transporterExtensions.tCat), R.pathEq(['_data', 'transporterExtension'], this.constants.transporterExtensions.sevenEleven)])(this);\n    }),\n    hasPaymentStatus: Ember.computed('_data.{paymentMethodKey}', function () {\n      const paymentMethodsWithPaymentStatus = [this.constants.paymentMethods.creditCard, this.constants.paymentMethods.linePay, this.constants.paymentMethods.applePay, this.constants.paymentMethods.googlePay, this.constants.paymentMethods.samsungPay];\n      const paymentMethodKey = this?._data?.paymentMethodKey || '';\n      if (paymentMethodsWithPaymentStatus.includes(paymentMethodKey)) {\n        return true;\n      }\n      return false;\n    }),\n    updateConvenienceStoreData(convenienceStoreData) {\n      this.setData('address', `[7-11](${convenienceStoreData?.convenienceStoreId}${convenienceStoreData?.convenienceStoreName})${convenienceStoreData?.convenienceStoreAddress}`);\n      const addressData = {\n        brand: 'sevenEleven',\n        country: 'Taiwan',\n        countryCode: 'TW',\n        district: convenienceStoreData?.convenienceStoreDistrict,\n        hasAdvancedAddress: true,\n        hasPostCode: true,\n        postCode: convenienceStoreData?.convenienceStorePostCode,\n        region: convenienceStoreData?.convenienceStoreRegion,\n        storeId: convenienceStoreData?.convenienceStoreId,\n        storeName: convenienceStoreData?.convenienceStoreName,\n        street: convenienceStoreData?.convenienceStoreStreet,\n        surchargeId: '',\n        transporterAccount: convenienceStoreData?.transporterAccount,\n        type: 'convenienceStore'\n      };\n      this.setData('addressData', addressData);\n      const docConvenienceStoreData = {\n        region: convenienceStoreData?.convenienceStoreRegion,\n        district: convenienceStoreData?.convenienceStoreDistrict,\n        storeId: convenienceStoreData?.convenienceStoreId,\n        storeName: convenienceStoreData?.convenienceStoreName,\n        storeAddress: convenienceStoreData?.convenienceStoreAddress,\n        outlying: convenienceStoreData?.convenienceStoreOutlying === 'true'\n      };\n      this.setData('convenienceStoreData', docConvenienceStoreData);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"updateAddressWithAdvanceAddress\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"updateAddressWithAdvanceAddress\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleDiscountType\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"toggleDiscountType\"), _obj), _applyDecoratedDescriptor(_obj, \"toggleShowQtyWarningMsg\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"toggleShowQtyWarningMsg\"), _obj), _applyDecoratedDescriptor(_obj, \"onSetTwEInvoiceCarrierType\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"onSetTwEInvoiceCarrierType\"), _obj), _applyDecoratedDescriptor(_obj, \"setupTaxDetails\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"setupTaxDetails\"), _obj), _applyDecoratedDescriptor(_obj, \"setTransporterData\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"setTransporterData\"), _obj), _applyDecoratedDescriptor(_obj, \"updateConvenienceStoreData\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"updateConvenienceStoreData\"), _obj), _obj));\n});","define(\"client/pods/documents/proxy/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/documents/purchases/consignments-returns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/consignments-returns',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: false,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/purchases/consignments-returns/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/consignments-returns',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/purchases/consignments/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/consignments',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: false,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/purchases/consignments/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/consignments',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/purchases/invoices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/invoices',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: false,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/purchases/invoices/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/invoices',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/purchases/orders/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/orders',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: false,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/purchases/orders/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/orders',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/purchases/quotes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/quotes',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: false,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/purchases/quotes/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/quotes',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/purchases/returns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/returns',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: false,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/purchases/returns/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/purchases/returns',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/purchases/terms/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/purchases/terms',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documents/sales/consignments-returns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/consignments-returns',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: false,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/sales/consignments-returns/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/consignments-returns',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/sales/consignments/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/consignments',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: true,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/sales/consignments/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/consignments',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/sales/invoices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/invoices',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: true,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/sales/invoices/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/invoices',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/sales/invoices/e-invoice/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/invoices',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/sales/invoices/preview/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/invoices/final/split/batch/preview',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/sales/orders/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/orders',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: true,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/sales/orders/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/orders',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/sales/quotes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/quotes',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: true,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/sales/quotes/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/quotes',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/sales/returns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/returns',\n    modelObj: _model.default,\n    idParam: '_id',\n    hasHCTExtension: false,\n    init() {\n      this._super(...arguments);\n      this.set('infoRequiredAttrs', ['contact', 'dateZ']);\n      this.set('detailsRequiredAttrs', ['item']);\n    }\n  });\n});","define(\"client/pods/documents/sales/returns/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/details/adapters\", \"client/pods/documents/details/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/returns',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/documents/sales/terms/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/sales/terms',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/documents/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"client/pods/components/documents/docConfig\", \"ramda-extension\"], function (_exports, _emberConcurrencyDecorators, R, RA, _docConfig, R_) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 DocumentsService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.inject.service('products'), _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._action, _dec18 = (0, _emberConcurrencyDecorators.task)(), _dec19 = (0, _emberConcurrencyDecorators.task)(), _dec20 = (0, _emberConcurrencyDecorators.task)(), _class = class DocumentsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"search\", _descriptor4, this);\n      _initializerDefineProperty(this, \"server\", _descriptor5, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor6, this);\n      _initializerDefineProperty(this, 'purchases-consignments', _descriptor7, this);\n      _initializerDefineProperty(this, 'purchases-consignments-returns', _descriptor8, this);\n      _initializerDefineProperty(this, 'purchases-invoices', _descriptor9, this);\n      _initializerDefineProperty(this, 'purchases-orders', _descriptor0, this);\n      _initializerDefineProperty(this, 'purchases-quotes', _descriptor1, this);\n      _initializerDefineProperty(this, 'purchases-returns', _descriptor10, this);\n      _initializerDefineProperty(this, 'sales-consignments', _descriptor11, this);\n      _initializerDefineProperty(this, 'sales-consignments-returns', _descriptor12, this);\n      _initializerDefineProperty(this, 'sales-invoices', _descriptor13, this);\n      _initializerDefineProperty(this, 'sales-orders', _descriptor14, this);\n      _initializerDefineProperty(this, 'sales-quotes', _descriptor15, this);\n      _initializerDefineProperty(this, 'sales-returns', _descriptor16, this);\n    }\n    *searchInputTask(args) {\n      let {\n        query = '',\n        resultsProperty = '',\n        filtersAdapterName = 'documents/filters',\n        component,\n        resultsToggle = false,\n        global = true,\n        docType,\n        docName,\n        filters\n      } = args;\n      const docConfigData = _docConfig.default.getFor({\n        docType,\n        docName\n      });\n      const adapterName = docConfigData.adapterName;\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.search.setupFilters({\n          adapterName: filtersAdapterName,\n          defaultFiltersData: {\n            query\n          }\n        });\n      }\n      const results = yield this.crud.searchInputTask.perform({\n        adapterName,\n        filters,\n        query,\n        resultsProperty,\n        component,\n        resultsToggle\n      });\n      if (global && resultsProperty) {\n        this[resultsProperty] = results;\n      }\n      return results;\n    }\n    *listByTask({\n      adapterName,\n      appendPath,\n      match,\n      documentStatus,\n      dispatchStatus,\n      filters,\n      query,\n      notDispatchStatus,\n      date,\n      dateStart,\n      dateEnd,\n      isVoid,\n      contact,\n      contactKey,\n      sourceKey,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (isVoid) {\n        filters.setData('isVoid', true);\n      }\n      if (documentStatus) {\n        if (!Ember.isArray(documentStatus)) {\n          documentStatus = [documentStatus];\n        }\n        filters.setData('documentStatus', documentStatus);\n      }\n      if (dispatchStatus) {\n        if (!Ember.isArray(dispatchStatus)) {\n          dispatchStatus = [dispatchStatus];\n        }\n        filters.setData('dispatchStatus', dispatchStatus);\n      }\n      if (notDispatchStatus) {\n        if (!Ember.isArray(notDispatchStatus)) {\n          notDispatchStatus = [notDispatchStatus];\n        }\n        filters.setData('notDispatchStatus', notDispatchStatus);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        filters.setData('query', date);\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      try {\n        const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n        if (onHideDropdown) {\n          onHideDropdown();\n        }\n        return results;\n      } catch (e) {\n        console.log(e);\n      }\n    }\n    *listByDetailsTask({\n      filters,\n      adapterName,\n      match,\n      documentStatus,\n      dispatchStatus,\n      notDispatchStatus,\n      date,\n      dateStart,\n      dateEnd,\n      query = '',\n      contact,\n      contactKey,\n      itemKey,\n      sourceKey,\n      resultsProperty,\n      resultsToggle\n    } = {}, onHideDropdown) {\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (sourceKey) {\n        filters.setData('sourceKey', sourceKey);\n      }\n      if (itemKey) {\n        filters.setData('itemKey', itemKey);\n      }\n      if (contactKey) {\n        filters.setData('contactKey', contactKey);\n      } else if (contact) {\n        filters.setData('contact', contact);\n      }\n      if (documentStatus) {\n        if (!Ember.isArray(documentStatus)) {\n          documentStatus = [documentStatus];\n        }\n        filters.setData('documentStatus', documentStatus);\n      }\n      if (dispatchStatus) {\n        if (!Ember.isArray(dispatchStatus)) {\n          dispatchStatus = [dispatchStatus];\n        }\n        filters.setData('dispatchStatus', dispatchStatus);\n      }\n      if (notDispatchStatus) {\n        if (!Ember.isArray(notDispatchStatus)) {\n          notDispatchStatus = [notDispatchStatus];\n        }\n        filters.setData('notDispatchStatus', notDispatchStatus);\n      }\n      if (date) {\n        filters.setData('match', ['dateZ']);\n        query = date;\n      }\n      if (dateStart) {\n        filters.setData('dateStart', dateStart);\n      }\n      if (dateEnd) {\n        filters.setData('dateEnd', dateEnd);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath: '/details',\n        resultsProperty,\n        resultsToggle,\n        query,\n        filters\n      };\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }\n    listByDate(onHideDropdown, dateZ, date) {\n      return this.listByTask.perform({\n        date,\n        dateZ,\n        resultsToggle: 'resultsToggle'\n      }, onHideDropdown);\n    }\n    *hasReturns(model, {\n      docType,\n      docName,\n      toDocType,\n      toDocName\n    }) {\n      if (!model) {\n        return {};\n      }\n      const master = model.getData('_key');\n      if (!master) {\n        return {};\n      }\n      const data = {\n        toDocType,\n        toDocName\n      };\n      const response = yield this.server.call('GET', `api/protected/documents/data/remaining/${docType}/${docName}/${master}`, data);\n      return R.propOr({}, 'data', response);\n    }\n    *markPendingAsCompletedTask({\n      detail,\n      docType,\n      docName\n    }) {\n      const msg = this.intl.t('are you sure you want to mark as completed?');\n      if (window.confirm(msg)) {\n        try {\n          const pendingId = detail[`${docName}PendingId`];\n          const data = {};\n          data[`${docName}PendingId`] = pendingId;\n          yield this.server.call('PATCH', `api/protected/documents/data/pending/${docType}/${docName}/${pendingId}`, data);\n          // @NOTE: no realtime sync here\n          Ember.set(detail, 'pendingStatus', 'complete');\n        } catch (e) {\n          this.errors = e;\n          return false;\n        }\n      }\n    }\n    *undoMarkPendingAsCompletedTask({\n      detail,\n      docType,\n      docName\n    }) {\n      const msg = this.intl.t('are you sure you want to undo?');\n      if (window.confirm(msg)) {\n        try {\n          const pendingId = detail[`${docName}PendingId`];\n          const data = {};\n          data[`${docName}PendingId`] = pendingId;\n          yield this.server.call('PATCH', `api/protected/documents/data/pending/${docType}/${docName}/${pendingId}/undo`, data);\n          // @NOTE: no realtime sync here\n          Ember.set(detail, 'pendingStatus', 'pending');\n        } catch (e) {\n          this.errors = e;\n        }\n      }\n    }\n    *loadProductTask({\n      model,\n      product,\n      detail,\n      onAddNewDetail,\n      component\n    } = {}) {\n      const itemKey = product.getData('_key');\n      if (component) {\n        component.set('product', product);\n      }\n      const {\n        preferredHistoryData\n      } = yield this.productsService.fetchDocHistoryTask.perform(model, 'contact', product, itemKey);\n      const taxRate = this.productsService.getTaxRate(model.getData('docType'), R_.dotPath('crud.lists.taxes')(this), product);\n      model.loadProduct(taxRate, detail, product, preferredHistoryData);\n      if (onAddNewDetail) {\n        onAddNewDetail();\n      }\n    }\n    *fetchAllDetailsFromGovTask(taxNumber) {\n      let response = yield this.fetchCompanyDetailsFromGovTask.perform(taxNumber);\n      if (!response.name) {\n        response = yield this.fetchSchoolDetailsFromGovTask.perform(taxNumber);\n      }\n      if (!response.name) {\n        response = yield this.fetchCharityOrganizationDetailsFromGovTask.perform(taxNumber);\n      }\n      if (!response.name) {\n        response = yield this.fetchNonProfitableBusinessDetailsFromGovTask.perform(taxNumber);\n      }\n      if (!response.name) {\n        response.isUnsuccessful = true;\n      }\n      response.taxNumber = taxNumber;\n      return response;\n    }\n    *fetchCompanyDetailsFromGovTask(taxNumber) {\n      // @TODO: MOVE URL TO ENVS\n      // {\n      //   \"ban\": \"50813615\",\n      //   \"businessAddress\": \"臺中市北屯區仁和里崇德十路一段４９１號\",\n      //   \"headquartersBan\": \"\",\n      //   \"businessNm\": \"大筆資訊股份有限公司\"\n      // }\n      const url = `https://eip.fia.gov.tw/OAI/api/businessRegistration/${taxNumber}`;\n      const data = yield this._fetch.perform(url) || {};\n      return RA.renameKeys({\n        businessNm: 'name',\n        businessAddress: 'address',\n        businessType: 'type'\n      })(data);\n    }\n    *fetchSchoolDetailsFromGovTask(taxNumber) {\n      // @TODO: MOVE URL TO ENVS\n      // {\n      //   \"ban\": \"78941008\",\n      //   \"unitNm\": \"高雄市茄萣區砂崙國民小學\",\n      //   \"hsnNm\": \"高雄市\",\n      //   \"modifyDate\": \"1050804\",\n      //   \"modifyReasonCd\": \"02\",\n      //   \"modifyReasonNm\": \"變更負責人(含IDN)\"\n      // }\n      const url = `https://eip.fia.gov.tw/OAI/api/schoolBanData/${taxNumber}`;\n      const data = yield this._fetch.perform(url) || {};\n      return RA.renameKeys({\n        unitNm: 'name'\n      })(data);\n    }\n    *fetchCharityOrganizationDetailsFromGovTask(taxNumber) {\n      // @TODO: MOVE URL TO ENVS\n      // {\n      //   \"donateOrder\": \"1353\",\n      //   \"donateOrgNm\": \"財團法人天主教白永恩神父社會福利基金會\",\n      //   \"donateCode\": \"1111111\",\n      //   \"donateOrgShortNm\": \"\",\n      //   \"ban\": \"18493218\",\n      //   \"hsnNm\": \"臺北市\"\n      // }\n      const url = `https://eip.fia.gov.tw/OAI/api/donateOrgUnit/${taxNumber}`;\n      const data = yield this._fetch.perform(url) || {};\n      return RA.renameKeys({\n        donateOrgNm: 'name'\n      })(data);\n    }\n    *fetchNonProfitableBusinessDetailsFromGovTask(taxNumber) {\n      // @TODO: MOVE URL TO ENVS\n      // {\n      //   \"ban\": \"string\",\n      //   \"unitNm\": \"string\",\n      //   \"hsnNm\": \"基隆市\",\n      //   \"modifyDate\": \"string\",\n      //   \"modifyCd\": \"string\",\n      //   \"modifyReason\": \"string\"\n      // }\n      const url = `https://eip.fia.gov.tw/OAI/api/nonBusinessUnit/${taxNumber}`;\n      const data = yield this._fetch.perform(url) || {};\n      return RA.renameKeys({\n        unitNm: 'name'\n      })(data);\n    }\n    *_fetch(url) {\n      try {\n        const response = yield fetch(url);\n        if (response.ok) {\n          return response.json();\n        }\n        return {\n          error: response.status\n        };\n      } catch (error) {\n        console.error(error);\n        return {\n          error\n        };\n      }\n    }\n    *resendWebhookOnOrderEventTask(docKey) {\n      const payload = {\n        _key: docKey\n      };\n      const response = yield this.server.callJobs('PATCH', 'api/protected/documents/sales/invoices/webhooks/onOrder', payload);\n      let msg = 'webhook_event_sent_failed';\n      if (response?.success) {\n        msg = 'webhook_event_sent_successful';\n      }\n      window.alert(this.intl.t(msg));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, 'purchases-consignments', [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, 'purchases-consignments-returns', [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, 'purchases-invoices', [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, 'purchases-orders', [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, 'purchases-quotes', [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, 'purchases-returns', [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, 'sales-consignments', [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, 'sales-consignments-returns', [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, 'sales-invoices', [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, 'sales-orders', [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, 'sales-quotes', [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, 'sales-returns', [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchInputTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"listByTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"listByTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"listByDetailsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"listByDetailsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"listByDate\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"listByDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasReturns\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"hasReturns\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markPendingAsCompletedTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"markPendingAsCompletedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"undoMarkPendingAsCompletedTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"undoMarkPendingAsCompletedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadProductTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadProductTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchAllDetailsFromGovTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchAllDetailsFromGovTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchCompanyDetailsFromGovTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCompanyDetailsFromGovTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchSchoolDetailsFromGovTask\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchSchoolDetailsFromGovTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchCharityOrganizationDetailsFromGovTask\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCharityOrganizationDetailsFromGovTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchNonProfitableBusinessDetailsFromGovTask\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchNonProfitableBusinessDetailsFromGovTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_fetch\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"_fetch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resendWebhookOnOrderEventTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"resendWebhookOnOrderEventTask\"), _class.prototype), _class);\n});","define(\"client/pods/documents/waybills/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\", \"ramda\"], function (_exports, _adapter, _adapters, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/protected/documents/sales/invoices/waybills',\n    modelObj: _model.default,\n    idParam: false,\n    serialize(model) {\n      const serializedData = this._serialize(model);\n      return R.pick(['_key', 'docType', 'docName', 'transporterKey', 'transporterExtension', 'isNewWaybill', 'isUpdate'])(serializedData);\n    },\n    /**\n     * @todo: UNUSED - SHOULD USE AN ADAPTER TO DOWNLOAD WAYBILL\n     * @param documents\n     * @returns {*}\n     */\n    downloadBatch(documents) {\n      const batch = R.pipe(R.map(document => {\n        let documentData = R.prop('_data')(document);\n        if (!documentData) {\n          documentData = document;\n        }\n        return {\n          resource: `${documentData?.docType}-${documentData?.docName}`,\n          resourceKey: documentData?._key\n        };\n      }))(documents);\n      const path = `/batch`;\n      return this.call({\n        method: 'POST',\n        appendPath: path,\n        data: {\n          batch: documents\n        }\n      }).then(R.propOr([], 'data'));\n    }\n  });\n});","define(\"client/pods/drag-and-drop/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\"], function (_exports, _emberConcurrencyDecorators, R, RA, R_) {\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, _dec0, _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 DragAndDropService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class DragAndDropService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"draggedIndex\", _descriptor2, this);\n      _initializerDefineProperty(this, \"toDropPosition\", _descriptor3, this);\n    }\n    *updateRecordsTask() {\n      return yield this.crud.updateRecordTask.perform(...arguments);\n    }\n    onDragStart(draggedIndex, data = {}) {\n      this.draggedIndex = draggedIndex;\n      this.draggedData = data;\n    }\n    onDragOver(hoveredIndex) {\n      if (this.draggedIndex === hoveredIndex) {\n        this.toDropPosition = '';\n      } else if (this.draggedIndex < hoveredIndex) {\n        this.toDropPosition = 'drop-container--below';\n      } else {\n        this.toDropPosition = 'drop-container--above';\n      }\n    }\n    onDragOverCell(hoveredIndex) {\n      if (this.draggedIndex === hoveredIndex) {\n        this.toDropPosition = '';\n        return this.toDropPosition;\n      }\n      if (this.draggedIndex < hoveredIndex) {\n        this.toDropPosition = 'drop-container--right';\n        return this.toDropPosition;\n      }\n      if (this.draggedIndex > hoveredIndex) {\n        this.toDropPosition = 'drop-container--left';\n        return this.toDropPosition;\n      }\n    }\n\n    // @deprecated. use onDropWithIndex\n    onDrop(droppedAt, results, outerDrop, draggedFrom) {\n      const modelsIndexStart = R.view(R.lensPath([0, 'index']))(results);\n      const fromModel = R.find(R.propEq('index', draggedFrom))(results);\n      const droppedAtIndex = R.findIndex(R.propEq('index', droppedAt))(results);\n      const fromModelIndex = R.findIndex(R.propEq('index', draggedFrom))(results);\n      if (fromModelIndex === -1 || droppedAtIndex === -1) {\n        return;\n      }\n      results.removeAt(fromModelIndex);\n      results.insertAt(droppedAtIndex, fromModel);\n      R.forEachObjIndexed((m, index) => {\n        m.set('_data.index', parseInt(index) + modelsIndexStart);\n      })(results);\n      if (outerDrop) {\n        outerDrop(fromModelIndex, droppedAtIndex, results);\n      }\n    }\n\n    // @deprecated onDropWithIndex. args are now a hash\n    onDropWithIndexOld(droppedAt, results, indexDotPath = '_data.index', outerDrop, draggedFrom) {\n      const modelsIndexStart = R_.dotPathOr(0, `${0}.${indexDotPath}`)(results);\n      const fromModel = R.find(R_.dotPathEq(indexDotPath, draggedFrom))(results);\n      const droppedAtIndex = R.findIndex(R_.dotPathEq(indexDotPath, droppedAt))(results);\n      const fromModelIndex = R.findIndex(R_.dotPathEq(indexDotPath, draggedFrom))(results);\n      results.removeAt(fromModelIndex);\n      results.insertAt(droppedAtIndex, fromModel);\n      R.forEachObjIndexed((m, index) => {\n        m.set(indexDotPath, parseInt(index) + modelsIndexStart);\n      })(results);\n      if (outerDrop) {\n        outerDrop(fromModelIndex, droppedAtIndex, results);\n      }\n    }\n    /**\n     * Handles the drop action for drag and drop functionality with index-based sorting\n     * @param {Object} options - The options object\n     * @param {*} options.droppedAt - The model the item was dropped (will use indexDotPath to find the index)\n     * @param {Array} options.results - The array of items being sorted\n     * @param {string} [options.indexDotPath='_data.index'] - The path to the index property in each item\n     * @param {Function} [options.outerDrop] - Optional callback function to be called after the drop action\n     * @param {*} draggedFrom - The original index or identifier of the dragged item\n     */\n    onDropWithIndex({\n      droppedAt,\n      results,\n      indexDotPath = '_data.index',\n      outerDrop\n    }, draggedFrom) {\n      const modelsIndexStart = R_.dotPathOr(0, `${0}.${indexDotPath}`)(results);\n      const fromModel = R.find(R_.dotPathEq(indexDotPath, draggedFrom))(results);\n      const droppedAtIndex = R.findIndex(R_.dotPathEq(indexDotPath, droppedAt))(results);\n      const fromModelIndex = R.findIndex(R_.dotPathEq(indexDotPath, draggedFrom))(results);\n      if (fromModelIndex === -1 || droppedAtIndex === -1) {\n        return;\n      }\n      results.removeAt(fromModelIndex);\n      results.insertAt(droppedAtIndex, fromModel);\n      R.forEachObjIndexed((m, index) => {\n        m.set(indexDotPath, parseInt(index) + modelsIndexStart);\n      })(results);\n      if (outerDrop) {\n        return outerDrop(fromModelIndex, droppedAtIndex, results);\n      }\n    }\n    *onDropWithIndexTask({\n      droppedAt,\n      results,\n      indexDotPath = '_data.index',\n      outerDrop\n    }, draggedFrom) {\n      yield this.onDropWithIndex(...arguments);\n    }\n    onDropCell(droppedIndex, dirtyModel, originalIndex) {\n      if (!R.equals(droppedIndex, originalIndex)) {\n        const specs = R.pathOr(null, ['_data', 'specs'])(dirtyModel);\n        if (R.equals(droppedIndex.parentIndex, originalIndex.parentIndex)) {\n          let specRow = specs.get(`${droppedIndex.parentIndex}`);\n          const movedItem = specRow.find(spec => spec === specRow[originalIndex.childIndex]);\n          const remainingItems = specRow.filter(spec => spec !== specRow[originalIndex.childIndex]);\n          specRow = R.flatten([RA.list(RA.sliceTo(droppedIndex.childIndex, remainingItems)), RA.list(movedItem), RA.list(RA.sliceFrom(droppedIndex.childIndex, remainingItems))]);\n          specs.set(`${droppedIndex.parentIndex}`, specRow);\n          dirtyModel.setData('specs', specs);\n        } else {\n          let specRowOfOriginalCell = specs.get(`${originalIndex.parentIndex}`);\n          const movedItem = specRowOfOriginalCell.find(spec => spec === specRowOfOriginalCell[originalIndex.childIndex]);\n\n          // for row that is left by original cell\n          specRowOfOriginalCell = specRowOfOriginalCell.filter(spec => spec !== specRowOfOriginalCell[originalIndex.childIndex]);\n          specs.set(`${originalIndex.parentIndex}`, specRowOfOriginalCell);\n\n          // new row of original cell\n          let specRowOfDestination = specs.get(`${droppedIndex.parentIndex}`);\n          specRowOfDestination = R.flatten([RA.list(RA.sliceTo(droppedIndex.childIndex, specRowOfDestination)), RA.list(movedItem), RA.list(RA.sliceFrom(droppedIndex.childIndex, specRowOfDestination))]);\n          specs.set(`${droppedIndex.parentIndex}`, specRowOfDestination);\n          dirtyModel.setData('specs', specs);\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"draggedIndex\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"toDropPosition\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateRecordsTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"updateRecordsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragStart\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOver\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOverCell\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOverCell\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDropWithIndexOld\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"onDropWithIndexOld\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDropWithIndex\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"onDropWithIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDropWithIndexTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"onDropWithIndexTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDropCell\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"onDropCell\"), _class.prototype), _class);\n});","define(\"client/pods/drag-drop-sort/service\", [\"exports\", \"ramda-adjunct\", \"ramda\", \"ramda-extension\"], function (_exports, _ramdaAdjunct, R, R_) {\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;\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  let DragDropSortService = _exports.default = (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _class = class DragDropSortService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"indexProp\", '_data.index');\n      _defineProperty(this, \"checkingIndexProp\", '_data.index');\n    }\n    dragStartItem(component, detail) {\n      Ember.set(component, 'dragDetail', detail);\n    }\n\n    /**\n     * clears a component's dragDetail once its drag is truly over (dropped\n     * anywhere, or cancelled) - without this, a component that sourced a drag\n     * but never itself received the matching drop stays permanently primed,\n     * and a later unrelated drop landing back on it replays the stale item.\n     *\n     * also clears dropPosition - dragOverItem/dragOverItemHorizontally leave it\n     * untouched when dragItem is nil, so without this an unrelated later hover\n     * (e.g. an external file drag with no dragDetail at all) would render a\n     * leftover insert-above/insert-below indicator from the last real drag\n     */\n    dragEndItem(component) {\n      Ember.set(component, 'dragDetail', null);\n      Ember.set(component, 'dropPosition', '');\n    }\n\n    /**\n     * moves dragItem to the position of the item at onOverItemIndex, then\n     * re-writes reindexProp on every item to match its new position.\n     * returns false (without mutating items) when the drop cannot be resolved\n     * to a valid reorder - e.g. dragItem is nil because the drop wasn't\n     * preceded by a matching dragStartItem (such as an external OS file drag\n     * landing on a droppable zone meant for internal reordering)\n     *\n     * @note indexProp defaults to this.indexProp (not checkingIndexProp) -\n     * checkingIndexProp is mutable singleton state that some callers (e.g.\n     * the grapesjs products modal) repoint to a scratch property, and other\n     * unrelated callers must not inherit that as a silent default\n     */\n    reorderItemsByIndex(items, dragItem, onOverItemIndex, indexProp = this.indexProp, reindexProp = indexProp) {\n      if (_ramdaAdjunct.default.isNilOrEmpty(items) || _ramdaAdjunct.default.isNilOrEmpty(dragItem)) {\n        return false;\n      }\n      const itemOver = R.pipe(R.filter(R_.dotPathEq(indexProp, onOverItemIndex)), R.head)(items);\n      const itemOverIndex = items.indexOf(itemOver);\n      const itemIndex = items.indexOf(dragItem);\n      if (itemIndex === -1 || itemOverIndex === -1) {\n        return false;\n      }\n      items.removeAt(itemIndex);\n      items.insertAt(itemOverIndex, dragItem);\n      const forEachIndexed = R.addIndex(R.forEach);\n      forEachIndexed((item, index) => {\n        item.set(reindexProp, index);\n      })(items);\n      return true;\n    }\n    dragOverItem(component, detail, dragItem, hasBorder = true) {\n      dragItem = dragItem || component.dragDetail;\n      // console.log('--dragItem', dragItem)\n      if (_ramdaAdjunct.default.isNilOrEmpty(dragItem)) {\n        // console.log('no drag item!!')\n        return '';\n      }\n      const checkingIndexProp = this?.checkingIndexProp || this?.indexProp || '_data.index';\n      // console.log('checkingIndexProp', checkingIndexProp)\n      const dragIndex = dragItem.get(checkingIndexProp);\n      // console.log('dragIndex', dragIndex)\n      const onOverItemIndex = detail.get(checkingIndexProp);\n      // console.log('onOverItemIndex', onOverItemIndex)\n\n      // not sure if dragIndex is undefined should it become 'insert-above'?\n      if (dragIndex === onOverItemIndex) {\n        // console.log('none')\n        Ember.set(component, 'dropPosition', '');\n      } else if (dragIndex < onOverItemIndex) {\n        let insertPosition = 'insert-below';\n        if (!hasBorder) {\n          insertPosition = 'insert-below-no-border';\n        }\n        // console.log('-below')\n        Ember.set(component, 'dropPosition', insertPosition);\n      } else {\n        let insertPosition = 'insert-above';\n        if (!hasBorder) {\n          insertPosition = 'insert-above-no-border';\n        }\n        // console.log('-above')\n        Ember.set(component, 'dropPosition', insertPosition);\n      }\n      return component.dropPosition || '';\n    }\n    dragOverItemHorizontally(component, detail, dragItem, dropContainerElement, event) {\n      dragItem = dragItem || component.dragDetail;\n      if (_ramdaAdjunct.default.isNilOrEmpty(dragItem)) {\n        return '';\n      }\n      const checkingIndexProp = this?.checkingIndexProp || this?.indexProp || '_data.index';\n      const dragIndex = dragItem.get(checkingIndexProp);\n      const onOverItemIndex = detail.get(checkingIndexProp);\n      if (dragIndex === onOverItemIndex) {\n        Ember.set(component, 'dropPosition', '');\n      } else if (dragIndex < onOverItemIndex) {\n        Ember.set(component, 'dropPosition', 'insert-right');\n      } else {\n        Ember.set(component, 'dropPosition', 'insert-left');\n      }\n      return component.dropPosition || '';\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"dragStartItem\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"dragStartItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragEndItem\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"dragEndItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reorderItemsByIndex\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"reorderItemsByIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragOverItem\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"dragOverItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dragOverItemHorizontally\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"dragOverItemHorizontally\"), _class.prototype), _class);\n});","define(\"client/pods/emails/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/emails',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/emails/campaigns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/emails/campaigns/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/emails/campaigns',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/emails/campaigns/edit-statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'active',\n        label: 'active',\n        classNames: 'is-primary'\n      }, {\n        value: 'draft',\n        label: 'draft',\n        classNames: 'is-warning'\n      }, {\n        value: 'inactive',\n        label: 'inactive',\n        classNames: 'is-danger'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/emails/campaigns/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/emails/campaigns/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/emails/campaigns/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        documentStatus: ['all'],\n        dispatchStatus: ['all'],\n        toName: '',\n        toAddress: '',\n        subject: '',\n        docNo: '',\n        sourceKey: '',\n        sort: {\n          by: 'timestampZ',\n          direction: 'DESC'\n        }\n      };\n    }\n  });\n});","define(\"client/pods/emails/campaigns/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        name: '',\n        description: '',\n        contactsGroupKey: '',\n        contactsGroup: '',\n        subject: '',\n        scheduledDateZ: '',\n        status: this.get('constants.status.draft'),\n        template: ''\n      };\n    },\n    allowSend: Ember.computed('_data.{contactsGroupKey,template,status,subject}', function () {\n      if (this?._data?.contactsGroupKey && this?._data?.template && this?._data?.subject && this?._data?.status) {\n        return true;\n      }\n      return false;\n    }),\n    isSendDisabled: Ember.computed('allowSend', function () {\n      return !this.allowSend;\n    })\n  });\n});","define(\"client/pods/emails/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/emails/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/emails/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        documentStatus: ['all'],\n        dispatchStatus: ['all'],\n        toName: '',\n        toAddress: '',\n        subject: '',\n        docNo: '',\n        emailsCampaignsKey: '',\n        emailsCampaignsName: '',\n        sourceKey: '',\n        source: '',\n        sort: {\n          by: 'timestampZ',\n          direction: 'DESC'\n        }\n      };\n    }\n  });\n});","define(\"client/pods/emails/lists/campaigns/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/emails/lists/campaigns/menu/actions/activity',\n          component: 'emails/campaigns/panels-activity',\n          label: 'all activity',\n          action: 'activity',\n          tabType: 'replaceSubTab'\n        }, {\n          resource: 'api/protected/emails/lists/campaigns/menu/actions/new',\n          component: 'emails/campaigns/panels-new',\n          label: 'new',\n          action: 'new',\n          tabType: 'replaceSubTab'\n          //   resource: 'api/protected/emails/lists/campaigns/menu/actions/scheduled',\n          //   component: 'emails/campaigns/panels-scheduled',\n          //   label: 'scheduled',\n          //   action: 'scheduled',\n          //   tabType: 'replaceSubTab'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/emails/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'toName',\n        label: 'name'\n      }, {\n        value: 'toAddress',\n        label: 'email'\n      }, {\n        value: 'subject',\n        label: 'subject'\n      }, {\n        value: 'fromName',\n        label: 'from name'\n      }, {\n        value: 'fromAddress',\n        label: 'from email address'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/emails/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'timestampZ',\n        label: 'date'\n      }, {\n        value: 'toAddress',\n        label: 'email'\n      }, {\n        value: 'toName',\n        label: 'name'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/emails/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"utils/nventor\", \"mixins/adapters-new\", \"client/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: this.get('constants.campaignStatus.online'),\n        label: 'online'\n      }, {\n        value: this.get('constants.campaignStatus.offline'),\n        label: 'offline'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/emails/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/emails/lists/menu/actions/activity',\n          component: 'emails/panels-activity',\n          label: 'overview',\n          action: 'overview',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n          // }, {\n          //   resource: 'api/protected/emails/lists/menu/actions/scheduled',\n          //   component: 'emails/panels-scheduled',\n          //   label: 'scheduled',\n          //   action: 'scheduled',\n          //   tabType: 'replaceSubTab'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/emails/lists/menu/notifications/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: 'api/protected/emails/lists/menu/notifications',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'payment reminders',\n        action: 'paymentReminders'\n      }, {\n        label: 'dispatched',\n        action: 'dispatched'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/emails/lists/seven-eleven-custom-text-behavior/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'append',\n        label: 'append to default message'\n      }, {\n        value: 'replace',\n        label: 'replace default message'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/emails/lists/seven-eleven-pickup-reminder-days/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: 'day 1'\n      }, {\n        value: 2,\n        label: 'day 2'\n      }, {\n        value: 3,\n        label: 'day 3'\n      }, {\n        value: 4,\n        label: 'day 4'\n      }, {\n        value: 5,\n        label: 'day 5'\n      }, {\n        value: 6,\n        label: 'day 6'\n      }, {\n        value: 7,\n        label: 'day 7'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/emails/lists/to-send-tabs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'toSend',\n        label: 'to send'\n      }, {\n        value: 'alreadySent',\n        label: 'already sent'\n      }, {\n        value: 'cannotSend',\n        label: 'cannot send'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/emails/service\", [\"exports\", \"ramda\", \"client/utils/nventor\"], function (_exports, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const self = {\n    // @DEPRECATED\n    // use applicationService\n    _splitBy: R.curry((char, data) => {\n      return R.pipe(R.split(char), R.map(R.trim), R.reject(_nventor.default.isNilOrEmpty))(data);\n    }),\n    // @DEPRECATED\n    // use applicationService\n    splitToArray(data = '') {\n      if (data == null) {\n        return '';\n      }\n      return R.pipe(R.trim, R.replace(/,/g, ' '), R.replace(/\\n/g, ' '), self._splitBy(' '))(data);\n    },\n    // @DEPRECATED\n    // use applicationService\n    joinAsString(data = []) {\n      return R.pipe(_nventor.default.convertToArray, R.join('\\n'))(data);\n    }\n  };\n  var _default = _exports.default = Ember.Service.extend(self);\n});","define(\"client/pods/emails/templates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/emails/templates',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/excel/service\", [\"exports\", \"client/utils/nventor\", \"client/config/environment\", \"ramda\", \"ramda-adjunct\"], function (_exports, _nventor, _environment, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Service.extend({\n    auth: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    _convertToArray(workbook) {\n      const getColumns = sheetData => {\n        return R.pipe(R.keys, R.map(_nventor.default.withoutNumbers), R.uniq)(sheetData);\n      };\n      const getMaxRows = sheetData => {\n        return R.pipe(R.keys, R.map(_nventor.default.withoutAlpha), _nventor.default.maxInList)(sheetData);\n      };\n      const getCellValue = (sheetData, column, row) => {\n        // get row number\n        const cellData = sheetData[`${column}${row}`];\n        return R.propOr('', 'v')(cellData);\n      };\n      const convertToRowToArray = (maxRows, sheetData) => {\n        const columns = getColumns(sheetData);\n        const rows = [];\n        R.times(i => {\n          const row = i + 1;\n          const rowData = R.reduce((acc, column) => {\n            acc.push(getCellValue(sheetData, column, row));\n            return acc;\n          }, [], columns);\n          rows.push(rowData);\n        })(maxRows);\n        return rows;\n      };\n      return R.pipe(R.propOr({}, 'Sheets'), R.mapObjIndexed(sheetData => {\n        sheetData = R.omit(['!ref', '!margins'])(sheetData);\n        const maxRows = getMaxRows(sheetData);\n        return convertToRowToArray(maxRows, sheetData);\n      }))(workbook);\n    },\n    async readFile(file) {\n      const reader = new window.FileReader();\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        try {\n          reader.onload = e => {\n            const data = new Uint8Array(e.target.result);\n            const workbook = XLSX.read(data, {\n              type: 'array'\n            });\n            const sheets = this._convertToArray(workbook);\n            resolve(sheets);\n          };\n          reader.readAsArrayBuffer(file);\n        } catch (e) {\n          reject(e);\n        }\n      });\n    },\n    /**\n     *\n     * @param {array} worksheets: [{\n     *  sheetName: string,\n     *  data: array [ [col1, col2, ...], [1, 2, ...] ]\n     * }]\n     */\n    exportFile({\n      worksheets,\n      title,\n      subject,\n      author,\n      bookType = 'xlsx',\n      bookTypeLabel = 'xlsx'\n    }) {\n      function s2ab(s) {\n        const buf = new ArrayBuffer(s.length);\n        const view = new Uint8Array(buf);\n        for (let i = 0; i < s.length; i++) view[i] = s.charCodeAt(i) & 0xFF;\n        return buf;\n      }\n      try {\n        const workBook = XLSX.utils.book_new();\n        workBook.Props = {\n          Title: title,\n          Subject: subject || title,\n          Author: author || this.auth.getUserProp('name'),\n          CreatedDate: new Date()\n        };\n        R.forEach(({\n          sheetName,\n          data\n        }) => {\n          // duplicate checker\n          const re = new RegExp('\\b' + sheetName + '\\b');\n          let count = 0;\n          R.forEach(sheet => {\n            const matchBool = R.match(re, sheet);\n            if (RA.isNotNilOrEmpty(matchBool)) {\n              count++;\n            }\n          })(workBook.SheetNames);\n          if (count > 0) {\n            const newSheetName = R.concat(sheetName, `(${count})`);\n            workBook.SheetNames.push(newSheetName);\n          } else {\n            workBook.SheetNames.push(sheetName);\n          }\n          const worksheet = XLSX.utils.aoa_to_sheet(data);\n          const objectMaxLength = [];\n          data.forEach(arr => {\n            arr.forEach((value, key) => {\n              let len = 10;\n              switch (R.type(value)) {\n                case 'Number':\n                  len = 10;\n                  break;\n                case 'String':\n                  len = value.length >= 10 ? value.length : value.length + len;\n                  break;\n                case 'Object':\n                  if (value instanceof Date) len = 10;\n                  break;\n              }\n              if (RA.isNilOrEmpty(objectMaxLength[key])) {\n                objectMaxLength[key] = len;\n              }\n              objectMaxLength[key] = Math.max(objectMaxLength[key], len);\n            });\n          });\n          const worksheetCols = objectMaxLength.map(width => {\n            return {\n              width\n            };\n          });\n          worksheet['!cols'] = worksheetCols;\n          workBook.Sheets[sheetName] = worksheet;\n        }, worksheets);\n        const workBookExport = XLSX.write(workBook, {\n          bookType,\n          type: 'binary'\n        });\n        return saveAs(new Blob([s2ab(workBookExport)], {\n          type: 'application/octet-stream'\n        }), `${title}.${bookTypeLabel}`);\n      } catch (err) {\n        if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n          console.log(err);\n          throw err;\n        }\n      }\n    }\n  });\n});","define(\"client/pods/export/lists/specs/shared/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../../../utils/nventor'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/export/service\", [\"exports\", \"client/mixins/big\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, _big, R, RA, R_, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Service.extend(_big.default, {\n    dateService: Ember.inject.service('date'),\n    crud: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    calculateDocsNetReturns({\n      serialized,\n      useOriginalCashCollectionInclTotal = false,\n      options\n    }) {\n      const detailsProp = R.propOr('details', 'detailsProp')(options);\n      return R.pipe(R.map(doc => {\n        doc.inclTotal = doc.netInclTotal;\n        doc[detailsProp] = R.pipe(R.propOr([], detailsProp), R.map(detail => {\n          detail.qty = detail.netReturnsQty;\n          detail.postDiscInclAmt = detail.netReturnsPostDiscInclAmt;\n          detail.postDiscExclAmt = detail.netReturnsPostDiscExclAmt;\n          detail.postDiscTaxAmt = detail.netReturnsPostDiscTaxAmt;\n          if (useOriginalCashCollectionInclTotal && R.equals(doc.paymentMethodKey, 'cash') && doc.isDispatched) {\n            detail.qty = detail.cashCollectionQty;\n            detail.postDiscInclAmt = detail.cashCollectionInclAmt;\n            detail.postDiscExclAmt = detail.cashCollectionExclAmt;\n            detail.postDiscTaxAmt = detail.cashCollectionTaxAmt;\n          }\n          if (detail.qty === 0 || detail.qty === '0') {\n            return false;\n          }\n          return detail;\n        }), R.reject(R.equals(false)))(doc);\n        if (RA.isNilOrEmpty(doc[detailsProp])) {\n          return false;\n        }\n        if (useOriginalCashCollectionInclTotal && R.equals(doc.paymentMethodKey, 'cash')) {\n          doc.inclTotal = doc.cashCollectionInclTotal;\n        }\n        const thirdPartyCommissions = doc?.thirdPartyCommissions;\n        const shopDotCom = R.find(R.propEq('provider', 'shopDotCom'))(thirdPartyCommissions);\n        if (shopDotCom?.commission) {\n          doc.shopDotComCommission = shopDotCom.commission;\n        }\n        if (doc.paymentMethodkey === 'cash') {\n          doc.unpaidInclTotal = doc.cashCollectionInclTotal;\n        }\n        if (doc.isConvenienceStore) {\n          const cvsData = doc.addressData;\n          doc.address = `${cvsData.postCode}${cvsData.region}${cvsData.district}${cvsData.street}`;\n          doc.convenienceStoreBrand = this.intl.t(cvsData.brand);\n          doc.storeId = cvsData.storeId;\n          doc.storeName = cvsData.storeName;\n        }\n        return doc;\n      }), R.reject(R.equals(false)))(serialized);\n    },\n    exportByMethod({\n      specs,\n      docData,\n      options = {}\n    }) {\n      const today = this.dateService.formatDate(this.dateService.getToday(), 'YYYYMMDD') | '';\n      const method = specs.method;\n      const subMethod = specs.subMethod;\n      const paymentMethodKey = specs.paymentMethod;\n      const description = specs.description;\n      let translatedDescription = this.intl.t(description);\n      if (R.includes('Missing translation', translatedDescription)) {\n        translatedDescription = description;\n      }\n      if (R.equals('export_orders_total', description)) {\n        translatedDescription = R.join('-', [translatedDescription, today]);\n      }\n      if (method === 'byPaymentMethod') {\n        return {\n          sheetName: translatedDescription,\n          data: this[method]({\n            specs,\n            docData,\n            subMethod,\n            paymentMethodKey,\n            options\n          })\n        };\n      }\n      return {\n        sheetName: translatedDescription,\n        data: this[method]({\n          specs,\n          docData,\n          options\n        })\n      };\n    },\n    byDetails({\n      specs,\n      docData,\n      options\n    }) {\n      const madeByDetail = this.makeByDetail({\n        specs,\n        docData,\n        options\n      });\n      return R.propOr([], 'byDetailsWorksheet')(madeByDetail);\n    },\n    byDetailsWithGrandTotals({\n      specs,\n      docData,\n      options\n    }) {\n      const madeByDetail = this.makeByDetail({\n        specs,\n        docData,\n        options\n      });\n      const byDetailsWorksheet = R.propOr([], 'byDetailsWorksheet')(madeByDetail);\n      const grandTotalRow = R.propOr([], 'grandTotalRow')(madeByDetail);\n      return R.append(grandTotalRow)(byDetailsWorksheet);\n    },\n    byAllOrders({\n      specs,\n      docData,\n      options\n    }) {\n      let index = 0;\n      const separatedSpecs = this.separateInfoAndDetailSpecs({\n        specs,\n        options\n      });\n      // only need first specs for column title\n      const specsForColumnTitle = R.pipe(R.propOr([], 'infoSpecs'), R.take(1))(separatedSpecs);\n      const columnTitle = this.getInfoColumnTitle({\n        specs: specsForColumnTitle,\n        docData\n      });\n      return R.compose(R.prepend(columnTitle), R.unnest, R.map(eachDocData => {\n        index = index + 1;\n        // separate the info and detail specs\n        const separatedSpecs = this.separateInfoAndDetailSpecs({\n          specs,\n          options\n        });\n        const infoSpecs = R.propOr({}, 'infoSpecs')(separatedSpecs);\n        const detailSpecs = R.propOr({}, 'detailSpecs')(separatedSpecs);\n        // get data for the info row.\n        const infoRowObject = this.applySpec({\n          specs: infoSpecs,\n          eachDocData,\n          index,\n          type: 'multiple',\n          options\n        });\n        const infoRow = infoRowObject?.infoRows || [];\n        // get data for the detail row\n        //\n        const detailRows = this.createDetailRows({\n          detailSpecs,\n          eachDocData,\n          options\n        });\n        return R.concat(infoRow)(detailRows);\n      }))(docData);\n    },\n    byAllOrdersWithOneColumnRow({\n      specs,\n      docData,\n      options\n    }) {\n      let index = 0;\n      const separatedSpecs = this.separateInfoAndDetailSpecs({\n        specs,\n        options\n      });\n      // only need first specs for column title\n      const specsForColumnTitleInfo = R.pipe(R.propOr([], 'infoSpecs'), R.take(1))(separatedSpecs);\n      const specsForColumnTitleDetail = R.pipe(R.propOr([], 'detailSpecs'), R.take(1))(separatedSpecs);\n      const combinedSpecsForColumnTitle = R.pipe(R.concat(specsForColumnTitleInfo), R.unnest, R.sortBy(R.prop('index')), RA.list)(specsForColumnTitleDetail);\n      const columnTitle = this.getInfoColumnTitle({\n        specs: combinedSpecsForColumnTitle,\n        docData,\n        ignoreDetail: false\n      });\n      return R.compose(R.prepend(columnTitle), R.unnest, R.map(eachDocData => {\n        index = index + 1;\n        // separate the info and detail specs\n        const separatedSpecsObject = this.separateInfoAndDetailSpecs({\n          specs,\n          options\n        });\n        const infoSpecs = R.propOr({}, 'infoSpecs')(separatedSpecsObject);\n        const detailSpecs = R.propOr({}, 'detailSpecs')(separatedSpecsObject);\n        // get data for the info row.\n        const infoRowObject = this.applySpec({\n          specs: infoSpecs,\n          eachDocData,\n          index,\n          type: 'multiple',\n          options\n        });\n        const infoRow = infoRowObject?.infoRowsAsObjects || [];\n        // get data for the detail row\n        const detailRows = this.createDetailRowsAsObject({\n          detailSpecs,\n          eachDocData,\n          options\n        });\n        if (RA.isNilOrEmpty(detailSpecs)) {\n          return R.pipe(_nventor.default.safeHeadOr({}), R.sortBy(R.prop('index')), R.pluck('value'), RA.list)(infoRow);\n        }\n        const returnList = RA.mapIndexed((detailRow, index2) => {\n          const infoRowHead = _nventor.default.safeHeadOr({})(infoRow);\n          if (R.equals(index2, 0)) {\n            return R.pipe(R.concat(detailRow), R.sortBy(R.prop('index')), R.pluck('value'))(infoRowHead);\n          }\n          let emptyInfoRowHead = R.clone(infoRowHead);\n          if (!specs.fillInfoRow) {\n            emptyInfoRowHead = R.map(infoRow => {\n              infoRow.value = '';\n              return infoRow;\n            })(infoRowHead);\n          }\n          return R.pipe(R.concat(detailRow), R.sortBy(R.prop('index')), R.pluck('value'))(emptyInfoRowHead);\n        })(detailRows);\n        return returnList;\n      }))(docData);\n    },\n    byAllOrdersPerRow({\n      specs,\n      docData,\n      options\n    }) {\n      let index = 0;\n      // const separatedSpecs = this.separateInfoAndDetailSpecs({ specs, options })\n      let specsArray = R_.dotPathOr([], 'specs', specs);\n      const showProductSetWithChoices = R.propEq('showProductSetWithChoices', true)(options);\n      if (showProductSetWithChoices) {\n        specsArray = R.map(specArray => {\n          return this.insertProductSetWithChoicesColumn(specArray);\n        })(specsArray);\n      }\n\n      // only need first specs for column title\n      const specsForColumnTitle = R.pipe(R.take(1))(specsArray);\n      const columnTitle = this.getInfoColumnTitle({\n        specs: specsForColumnTitle,\n        docData,\n        ignoreDetail: false\n      });\n      return R.compose(R.prepend(columnTitle), R.unnest, R.map(eachDocData => {\n        index = index + 1;\n        const row = this.createMultipleRows({\n          specsArray,\n          eachDocData,\n          index,\n          options\n        });\n        return R.pipe(R.unnest, R.transpose)(row);\n      }))(docData);\n    },\n    createMultipleRows({\n      specsArray,\n      eachDocData,\n      index,\n      options\n    }) {\n      return R.map(specs => {\n        return R.map(spec => {\n          const specNested = R.pipe(RA.list, RA.list)(spec);\n          if (R.propEq('isDetail', true, spec)) {\n            return R.unnest(this.createDetailRows({\n              detailSpecs: specNested,\n              eachDocData,\n              options\n            }));\n          }\n          const detailsProp = R.propOr('details', 'detailsProp')(options);\n          let usedEachDocDataDetails = R.propOr([], detailsProp)(eachDocData);\n          usedEachDocDataDetails = this._filterDetailsByOptions(options, usedEachDocDataDetails);\n          const detailsLength = R_.dotPathOr(1, 'length')(usedEachDocDataDetails);\n          const infoRowObject = this.applySpec({\n            specs: specNested,\n            eachDocData,\n            index,\n            type: 'multiple',\n            options\n          });\n          const infoRow = infoRowObject?.infoRows || [];\n          return R.pipe(_nventor.default.safeHeadOr(''), R.repeat(R.__, detailsLength), R.unnest)(infoRow);\n        })(specs);\n      })(specsArray);\n    },\n    // @DEPRECATED\n    byAllOrdersWithSummary({\n      specs,\n      docData,\n      options\n    }) {\n      let summaryRows = this.createSummary({\n        specs,\n        docData,\n        options\n      });\n      summaryRows = R.prepend([])(summaryRows);\n      return R.concat(this.byAllOrders({\n        specs,\n        docData,\n        options\n      }))(summaryRows);\n    },\n    byAllOrdersWithOneColumnRowWithSummary({\n      specs,\n      docData,\n      options\n    }) {\n      let summaryRows = this.createSummary({\n        specs,\n        docData,\n        options\n      });\n      summaryRows = R.prepend([])(summaryRows);\n      return R.concat(this.byAllOrdersWithOneColumnRow({\n        specs,\n        docData,\n        options\n      }))(summaryRows);\n    },\n    byAllOrdersPerRowWithSummary({\n      specs,\n      docData,\n      options\n    }) {\n      let summaryRows = this.createSummary({\n        specs,\n        docData,\n        options\n      });\n      summaryRows = R.prepend([])(summaryRows);\n      return R.concat(this.byAllOrdersPerRow({\n        specs,\n        docData\n      }))(summaryRows);\n    },\n    byPaymentMethod({\n      specs,\n      docData,\n      subMethod = 'byAllOrdersWithSummary',\n      paymentMethodKey = 'all',\n      options\n    }) {\n      const paidStatus = docData => {\n        const isGroupDocs = options.isGroupDocs || false;\n        if (docData.paymentMethodKey === 'cash' || isGroupDocs && R.includes('cash', docData.paymentMethodKey)) {\n          return 'unpaid';\n        }\n        return 'paid';\n      };\n      const batchGroupByPayment = R.groupBy(paidStatus)(docData);\n      const applicablePaymentMethods = R.pipe(R.mapObjIndexed((groupData, groupPaymentMethodKey) => {\n        if (paymentMethodKey === 'all') {\n          return groupData;\n        }\n        if (groupPaymentMethodKey === paymentMethodKey) {\n          return groupData;\n        }\n        return false;\n      }), R.reject(R.equals(false)))(batchGroupByPayment);\n      const paymentWorksheets = R.map(eachGroupByPayment => {\n        return this[subMethod]({\n          specs,\n          docData: eachGroupByPayment,\n          options\n        });\n      })(applicablePaymentMethods);\n      return R.unnest(R.values(paymentWorksheets));\n    },\n    // EXPORT HELPER\n    /**\n     * get only column title for info. use this if the detail column title is not needed.\n     * @param {Array} specsData  contains array of array from customer's specs\n     * @return {Array}  array of column title in one row\n     */\n    getInfoColumnTitle({\n      specs,\n      docData = [],\n      ignoreDetail = true\n    }) {\n      return R.pipe(_nventor.default.safeHeadOr([]), R.map(spec => {\n        const isDetail = R.prop('isDetail')(spec);\n        const isCustomCheckoutFieldsSpec = R.propEq('value', 'customCheckoutFieldsValues')(spec);\n        if (isDetail && ignoreDetail && !isCustomCheckoutFieldsSpec) {\n          return false;\n        }\n        if (isCustomCheckoutFieldsSpec) {\n          const customCheckoutFieldsLabels = R.pipe(R.filter(eachDocData => RA.isNotNilOrEmpty(eachDocData?.customCheckoutFieldsValues)), R.pluck('customCheckoutFieldsValues'), R.reject(RA.isNilOrEmpty), R.flatten, R.map(R.propOr('', 'text')), R.reject(RA.isNilOrEmpty), R.uniq)(docData);\n          if (RA.isNotNilOrEmpty(customCheckoutFieldsLabels)) {\n            spec.customCheckoutFieldsLabels = customCheckoutFieldsLabels;\n            return customCheckoutFieldsLabels;\n          }\n        }\n        const label = R.prop('label')(spec);\n        let title = R.prop('column', spec);\n        if (title) {\n          title = this.intl.t(title);\n        }\n        if (label) {\n          title = label;\n        }\n        return title || '';\n      }), R.reject(R.equals(false)), R.flatten // to accomodate isCustomCheckoutFieldsSpec\n      )(specs);\n\n      // let columnTitle = []\n\n      // R.forEach(specsForRow => {\n      //   let columnTitleRow = []\n      //   R.forEach(spec => {\n      //     if (RA.isNilOrEmpty(R.prop('isDetail', spec))) {\n      //       const label = R.prop('label')(spec)\n      //       let title = R.prop('column', spec)\n      //       if (title) {\n      //         title = this.intl.t(title)\n      //       }\n\n      //       if (label) {\n      //         title = label\n      //       }\n\n      //       columnTitleRow = R.append(title, columnTitleRow)\n      //     }\n      //   })(specsForRow)\n      //   columnTitle = R.append(columnTitleRow, columnTitle)\n      // })(specs)\n\n      // return R.unnest(columnTitle)\n    },\n    getColumnsPrep({\n      specs,\n      docData,\n      options\n    }) {\n      const infoColumnNameList = this.getInfoColumnTitle({\n        specs: specs.specs,\n        docData\n      });\n      const [detailColumnNameList, detailItemKeyList, detailItemCodeList] = this.getColumnNameList({\n        specs,\n        docData,\n        options\n      });\n      return {\n        infoColumnNameList,\n        detailColumnNameList,\n        detailItemKeyList,\n        detailItemCodeList\n      };\n    },\n    /**\n     * get all column title (info and detail in 1 row)\n     * @param {Object} specsData\n     * @param {Object} specsData.specs    specs from customer\n     * @param {Object} specsData.docData  serialized dataset\n     * @return {Array}  array of column title in one row\n     */\n    getAllColumnTitle({\n      specs,\n      docData,\n      options\n    }) {\n      const columnsPrep = this.getColumnsPrep({\n        specs,\n        docData,\n        options\n      });\n      const infoColumnNameList = R.propOr([], 'infoColumnNameList')(columnsPrep);\n      const detailColumnNameList = R.propOr([], 'detailColumnNameList')(columnsPrep);\n      return R.concat(infoColumnNameList, detailColumnNameList);\n    },\n    makeByDetail({\n      specs,\n      docData,\n      options\n    }) {\n      let index = 0;\n      // get all column title in one row\n      const columnNameList = this.getAllColumnTitle({\n        specs,\n        docData,\n        options\n      });\n      // get item key list for validating unique item (even if it have different name)\n      const columnsPrep = this.getColumnsPrep({\n        specs,\n        docData,\n        options\n      });\n      const detailItemKeyList = R.propOr({}, 'detailItemKeyList')(columnsPrep);\n      const detailItemCodeList = R.propOr({}, 'detailItemCodeList')(columnsPrep);\n      let combinedRows = [];\n      let grandTotal = R.repeat(0, detailItemKeyList.length);\n      const separatedSpecs = this.separateInfoAndDetailSpecs({\n        specs,\n        options\n      });\n      R.forEach(eachDocData => {\n        index = index + 1;\n        // get only infospecs with separate function\n        const infoSpecs = R.propOr({}, 'infoSpecs')(separatedSpecs);\n        // get info row from each data\n        const infoRowObject = this.applySpec({\n          specs: infoSpecs,\n          eachDocData,\n          index,\n          type: 'single',\n          options\n        });\n        const infoRow = infoRowObject?.infoRows || [];\n        // get detail row from each data\n        const detailRow = this.getDetailQty({\n          eachDocData,\n          detailItemKeyList,\n          options\n        });\n        // make a combined row of info and detail\n        const combinedRow = R.concat(infoRow, detailRow);\n        // append all combined row into one combined rows\n        combinedRows = R.append(combinedRow, combinedRows);\n        // calculate grand total for each item while at it\n        grandTotal = R_.mapIndexed((value, index) => R.add(value, detailRow[index]))(grandTotal);\n      })(docData);\n      // setting place for grand total below all of combined rows.\n      let toRepeat = R.pipe(R.propOr([], 'infoColumnNameList'), R.length)(columnsPrep);\n      const toRepeatForItemCode = R.clone(toRepeat);\n      if (toRepeat) {\n        toRepeat = toRepeat - 1;\n      }\n      let blankSpace = R.repeat('', toRepeat);\n      blankSpace = R.append('Total', blankSpace);\n      let byDetailsWorksheet = RA.list(columnNameList);\n      if (RA.isNotNilOrEmpty(detailItemCodeList)) {\n        let itemCodeRow = R.repeat('', toRepeatForItemCode);\n        itemCodeRow = R.append(detailItemCodeList, itemCodeRow);\n        itemCodeRow = R.flatten(itemCodeRow);\n        byDetailsWorksheet = R.concat(byDetailsWorksheet, RA.list(itemCodeRow));\n      }\n      byDetailsWorksheet = R.concat(byDetailsWorksheet, combinedRows);\n      const grandTotalRow = R.concat(blankSpace, grandTotal);\n      return {\n        byDetailsWorksheet,\n        grandTotalRow\n      };\n    },\n    getDetailQty({\n      eachDocData,\n      detailItemKeyList,\n      options\n    }) {\n      const detailsProp = R.propOr('details', 'detailsProp')(options);\n      const toDetails = R.pipe(R.propOr([], detailsProp), details => {\n        details = this._filterDetailsByOptions(options, details);\n        return details;\n      })(eachDocData);\n      let detailRow = [];\n      R.forEach(detailItemKey => {\n        let detailValue = 0;\n        R.forEach(eachDocDataDetails => {\n          const itemKeyVal = R.prop('itemKey')(eachDocDataDetails);\n          if (detailItemKey === 'total' && itemKeyVal) {\n            detailValue += parseFloat(this.newBig(R.prop('qty')(eachDocDataDetails)).toFixed(0) || 0);\n          } else {\n            if (RA.isNilOrEmpty(itemKeyVal)) {\n              const item = R.prop('item')(eachDocDataDetails);\n              if (detailItemKey === item) {\n                detailValue += parseFloat(this.newBig(R.prop('qty')(eachDocDataDetails)).toFixed(0) || 0);\n              }\n            } else {\n              if (detailItemKey === itemKeyVal) {\n                detailValue += parseFloat(this.newBig(R.prop('qty')(eachDocDataDetails)).toFixed(0) || 0);\n              }\n            }\n          }\n        })(toDetails);\n        detailRow = R.append(detailValue)(detailRow);\n      })(detailItemKeyList);\n      return detailRow;\n    },\n    createSummary({\n      docData,\n      options\n    }) {\n      // use default details summary for now since customer is complaining\n      const detailSpecs = [{\n        value: '',\n        prop: '',\n        isDetail: true,\n        label: '',\n        transforms: []\n      }, {\n        value: 'qty',\n        prop: 'qty',\n        type: 'number',\n        isDetail: true,\n        label: 'Qty',\n        transforms: []\n      }, {\n        value: 'item',\n        prop: 'item',\n        isDetail: true,\n        label: 'Item',\n        transforms: []\n      }, {\n        value: 'code',\n        prop: 'itemCode',\n        isDetail: true,\n        label: 'Code',\n        transforms: []\n      }, {\n        value: 'brand',\n        prop: 'brand',\n        isDetail: true,\n        label: 'Brand',\n        transforms: []\n      }, {\n        value: 'dimensions_concat',\n        defaultLabel: 'dimensions_concat',\n        prop: 'packagingDimensions',\n        isDetail: true,\n        transforms: []\n      }, {\n        value: 'weight',\n        prop: 'weightWithUnit',\n        isDetail: true,\n        transforms: []\n      }, {\n        value: 'inclusive amount',\n        prop: 'postDiscInclAmt',\n        type: 'number',\n        isDetail: true,\n        label: 'Incl. Amount',\n        transforms: []\n      }];\n\n      // const detailSpecs = R.pipe(\n      //   R.propOr([], 'specs'),\n      //   R.flatten,\n      //   R.filter(R.propEq('isDetail', true)),\n      //   R.reject(R.propEq('prop', 'discInclPrice'))\n      // )(specs)\n\n      const columnName = R.map(detailSpec => {\n        const name = R.prop('value')(detailSpec);\n        if (name) {\n          return this.intl.t(name);\n        }\n        return '';\n      })(detailSpecs);\n      const propNames = R.map(detailSpec => {\n        return R.prop('prop')(detailSpec);\n      })(detailSpecs);\n      const groupByItem = eachDocDataDetails => {\n        const itemKey = R.prop('itemKey')(eachDocDataDetails);\n        if (RA.isNotNilOrEmpty(itemKey)) {\n          return itemKey;\n        }\n        return R.prop('item')(eachDocDataDetails);\n      };\n      const detailsProp = R.propOr('details', 'detailsProp')(options);\n      let grandTotal = 0;\n      let data = [];\n      data = R.pipe(R.pluck(detailsProp), R.flatten, details => {\n        details = this._filterDetailsByOptions(options, details);\n        return details;\n      }, R.groupBy(groupByItem), R.mapObjIndexed(groupData => {\n        let propValues = [];\n        R.forEach(prop => {\n          if (R.isEmpty(prop)) {\n            // blank space\n            propValues = R.append('', propValues);\n          }\n          if (prop === 'qty') {\n            // qty\n            const groupTotalQty = parseInt(this.sumPropAndAutoRound(0, 'qty', groupData)) || 0;\n            propValues = R.append(groupTotalQty, propValues);\n          }\n          // if (prop === 'discInclPrice') {\n          //   // discInclPrice\n          //   const groupTotalInclAmt = parseInt(this.sumPropAndAutoRound(0, 'discInclPrice', groupData)) || 0\n          //   grandTotal = grandTotal + groupTotalInclAmt\n          //   propValues = R.append('', propValues)\n          // }\n          if (prop === 'postDiscInclAmt') {\n            // postDiscInclAmt\n\n            // need to filter isSetChild again when show set details is on (don't include the amt in summary bcs it's already represented by isSet)\n            const filteredGroupData = R.reject(data => {\n              const hideSetParents = R.propEq('hideSetParents', true, options);\n              const isSetChild = R.propEq('isSetChild', true)(data);\n              if (!hideSetParents && isSetChild) {\n                return true;\n              }\n              return false;\n            })(groupData);\n            const groupTotalInclAmt = parseInt(this.sumPropAndAutoRound(0, 'postDiscInclAmt', filteredGroupData)) || 0;\n            grandTotal = grandTotal + groupTotalInclAmt;\n            propValues = R.append(groupTotalInclAmt, propValues);\n          }\n          if (prop === 'item') {\n            // item\n            const item = R.pipe(_nventor.default.safeHeadOr({}), R.propOr('', 'item'))(groupData);\n            propValues = R.append(item, propValues);\n          }\n          if (prop === 'itemCode') {\n            // itemCode\n            const itemCode = R.pipe(_nventor.default.safeHeadOr({}), R.propOr('', 'itemCode'))(groupData);\n            propValues = R.append(itemCode, propValues);\n          }\n          if (prop === 'brand') {\n            // brand\n            const brand = R.pipe(R.head, R.propOr('', 'brand'))(groupData);\n            propValues = R.append(brand, propValues);\n          }\n          if (prop === 'packagingDimensions') {\n            // packagingDimensions\n            const packagingDimensions = R.pipe(R.head, R.propOr('', 'packagingDimensions'))(groupData);\n            propValues = R.append(packagingDimensions, propValues);\n          }\n          if (prop === 'weightWithUnit') {\n            // weight\n            const weightWithUnit = R.pipe(R.head, R.propOr('', 'weightWithUnit'))(groupData);\n            propValues = R.append(weightWithUnit, propValues);\n          }\n          // add more for summary\n        })(propNames);\n        return propValues;\n      }), R.values, R.concat([[], columnName]), R.append([]))(docData);\n      let blankSpace = [];\n      if (columnName.length >= 2) {\n        blankSpace = R.repeat('', columnName.length - 2);\n      }\n      data = R.append(R.concat(blankSpace, ['total', grandTotal]), data);\n      return data;\n    },\n    fillItemKeyAndColumnNameList({\n      itemKeyVal = '',\n      itemKeyList,\n      itemCodeVal = '',\n      itemCodeList,\n      itemVal = '',\n      columnNameList,\n      customColumnTitle = itemVal\n    }) {\n      if (RA.isNotNilOrEmpty(itemKeyVal)) {\n        if (!R.includes(itemKeyVal, itemKeyList)) {\n          itemKeyList = R.append(itemKeyVal, itemKeyList);\n          itemCodeList = R.append(itemCodeVal, itemCodeList);\n          columnNameList = R.append(customColumnTitle, columnNameList);\n        }\n      } else {\n        if (!R.includes(itemVal, itemKeyList)) {\n          itemKeyList = R.append(itemVal, itemKeyList);\n          itemCodeList = R.append(itemCodeVal, itemCodeList);\n          columnNameList = R.append(customColumnTitle, columnNameList);\n        }\n      }\n      return [itemKeyList, itemCodeList, columnNameList];\n    },\n    insertTotalColumn({\n      columnNameList,\n      itemKeyList,\n      itemCodeList\n    }) {\n      itemKeyList = R.prepend('total', itemKeyList);\n      itemCodeList = R.prepend('', itemCodeList);\n      const totalColumnName = this.intl.t('total qtys');\n      columnNameList = R.prepend(totalColumnName, columnNameList);\n      return [itemKeyList, itemCodeList, columnNameList];\n    },\n    getColumnNameList({\n      specs,\n      docData,\n      options\n    }) {\n      let itemKeyList = [];\n      let columnNameList = [];\n      let itemCodeList = [];\n      if (!specs.autoGenerateByDetailsSummary) {\n        // check if there's custom detail\n        R.forEach(array => {\n          R.forEach(spec => {\n            if (spec.isDetail) {\n              const itemKeyVal = R.prop('itemKey')(spec);\n              const itemVal = R.prop('item')(spec);\n              const itemCodeVal = R.prop('itemCode')(spec);\n              let customColumnTitle = R.prop('label')(spec); // || itemVal;\n              if (customColumnTitle === 'item') {\n                customColumnTitle = itemVal;\n              }\n              [itemKeyList, itemCodeList, columnNameList] = this.fillItemKeyAndColumnNameList({\n                itemKeyVal,\n                itemKeyList,\n                itemCodeVal,\n                itemCodeList,\n                itemVal,\n                columnNameList,\n                customColumnTitle\n              });\n            }\n          })(array);\n        })(specs.specs);\n      } else {\n        const detailsProp = R.propOr('details', 'detailsProp')(options);\n        let allDocDetails = R.pipe(R.pluck(detailsProp), R.flatten, R.reject(RA.isNilOrEmpty), R.filter(R.prop('itemKey')))(docData);\n        if (specs.shopSortOrderDetailsByIndex) {\n          allDocDetails = R.sortWith([R.ascend(R.path(['index']))])(allDocDetails);\n        }\n        allDocDetails = this._filterDetailsByOptions(options, allDocDetails);\n        R.forEach(eachDocDataDetails => {\n          const itemKeyVal = R.prop('itemKey')(eachDocDataDetails);\n          const itemVal = R.prop('item')(eachDocDataDetails);\n          const itemCodeVal = R.prop('itemCode')(eachDocDataDetails);\n          const filledLists = this.fillItemKeyAndColumnNameList({\n            itemKeyVal,\n            itemKeyList,\n            itemCodeVal,\n            itemCodeList,\n            itemVal,\n            columnNameList\n          });\n          itemKeyList = filledLists?.[0] ?? [];\n          itemCodeList = filledLists?.[1] ?? [];\n          columnNameList = filledLists?.[2] ?? [];\n        })(allDocDetails);\n      }\n      if (specs.generateTotalQtyPerRow) {\n        [itemKeyList, itemCodeList, columnNameList] = this.insertTotalColumn({\n          columnNameList,\n          itemKeyList,\n          itemCodeList\n        });\n      }\n      return [columnNameList, itemKeyList, itemCodeList];\n    },\n    insertProductSetWithChoicesColumn(specs) {\n      if (RA.isNilOrEmpty(specs)) {\n        return specs;\n      }\n      const specIndex = R.findIndex(R.propEq('prop', 'itemCode'))(specs);\n      if (specIndex !== -1) {\n        const spec = specs[specIndex];\n        const productSetWithChoicesSpec = {\n          value: 'product set with choices',\n          prop: 'isSetWithChoicesChild',\n          index: spec.index + 0.5,\n          // bad hotfix, but better than reindexing all specs\n          isDetail: true,\n          label: this.intl.t('product set with choices'),\n          transforms: []\n        };\n        specs = R.insert(specIndex + 1, productSetWithChoicesSpec)(specs);\n      }\n      return specs;\n    },\n    createDetailRows({\n      detailSpecs = [],\n      eachDocData,\n      options\n    }) {\n      detailSpecs = R.unnest(detailSpecs);\n      let detailRows = [];\n      const detailsProp = R.propOr('details', 'detailsProp')(options);\n      const toDetails = R.propOr([], detailsProp)(eachDocData);\n      const showProductSetWithChoices = R.propEq('showProductSetWithChoices', true)(options);\n      let productSetWithChoicesName = '';\n      if (showProductSetWithChoices) {\n        productSetWithChoicesName = R.pipe(R.pathOr([], [detailsProp]), R.flatten, R.pluck('setItem'), R.reject(RA.isNilOrEmpty), _nventor.default.safeHeadOr(''))(eachDocData);\n      }\n      R.pipe(details => {\n        details = this._filterDetailsByOptions(options, details);\n        return details;\n      }, R.forEach(eachDocDataDetails => {\n        // make detail for each item bought\n        let detailRow = [];\n        R.forEach(detailSpec => {\n          const propValue = R.prop('prop')(detailSpec);\n          // add blank\n          if (RA.isNilOrEmpty(propValue)) {\n            detailRow = R.append('', detailRow);\n          }\n          // qty\n          if (propValue === 'qty') {\n            const query = parseInt(this.newBig(R.prop('qty')(eachDocDataDetails)).toFixed(0) || 0);\n            detailRow = R.append(query, detailRow);\n          }\n          // item\n          if (propValue === 'item') {\n            let query = R.prop('item')(eachDocDataDetails);\n            if (eachDocDataDetails.isSet) {\n              query = `${this.intl.t('isSet')}: ${query}`;\n            }\n            detailRow = R.append(query, detailRow);\n          }\n          if (propValue === 'isSetWithChoicesChild') {\n            let query = '';\n            const isSetWithChoicesChild = R.prop('isSetWithChoicesChild')(eachDocDataDetails);\n            if (isSetWithChoicesChild) {\n              query = eachDocDataDetails?.setItem || productSetWithChoicesName;\n            }\n            detailRow = R.append(query, detailRow);\n          }\n          // itemCode\n          if (propValue === 'itemCode') {\n            const query = R.prop('itemCode')(eachDocDataDetails);\n            detailRow = R.append(query, detailRow);\n          }\n          // brand\n          if (propValue === 'brand') {\n            const query = R.prop('brand')(eachDocDataDetails);\n            detailRow = R.append(query, detailRow);\n          }\n          // postDiscInclAmt\n          if (propValue === 'discInclPrice') {\n            let query = R.prop('discInclPrice')(eachDocDataDetails);\n            query = parseFloat(query) || 0;\n            if (eachDocDataDetails.isSetChild && !options.hideSetParents) {\n              query = '';\n            }\n            detailRow = R.append(query, detailRow);\n          }\n          // postDiscInclAmt\n          if (propValue === 'postDiscInclAmt') {\n            let query = R.prop('postDiscInclAmt')(eachDocDataDetails);\n            query = parseFloat(query) || 0;\n            if (eachDocDataDetails.isSetChild && !options.hideSetParents) {\n              query = '';\n            }\n            detailRow = R.append(query, detailRow);\n          }\n          // total\n          // if (propValue === 'total') {\n          //   let postDiscInclAmtQuery = R.prop('postDiscInclAmt')(eachDocDataDetails)\n          //   postDiscInclAmtQuery = parseFloat(postDiscInclAmtQuery) || 0\n          //   const qtyQuery = parseInt(this.newBig(R.prop('qty')(eachDocDataDetails)).toFixed(0) || 0)\n          //   let query = parseFloat(this.newBig(postDiscInclAmtQuery).times(qtyQuery).toFixed(0))\n          //   if (eachDocDataDetails.isSetChild) {\n          //     query = ''\n          //   }\n\n          //   detailRow = R.append(query, detailRow)\n          // }\n          // add more below for custom detailRow\n          // intentionally blank\n          // intentionally blank\n          // intentionally blank\n          // intentionally blank\n        })(detailSpecs);\n        // append each item detail to make multiple item detail (if there are more than one item bought)\n        detailRows = R.append(detailRow, detailRows);\n      }))(toDetails);\n      return detailRows;\n    },\n    createDetailRowsAsObject({\n      detailSpecs = [],\n      eachDocData,\n      options\n    }) {\n      detailSpecs = R.unnest(detailSpecs);\n      let detailRows = [];\n      const detailsProp = R.propOr('details', 'detailsProp')(options);\n      const toDetails = R.propOr([], detailsProp)(eachDocData);\n      const showProductSetWithChoices = R.propEq('showProductSetWithChoices', true)(options);\n      let productSetWithChoicesName = '';\n      if (showProductSetWithChoices) {\n        productSetWithChoicesName = R.pipe(R.pathOr([], [detailsProp]), R.flatten, R.pluck('setItem'), R.reject(RA.isNilOrEmpty), _nventor.default.safeHeadOr(''))(eachDocData);\n      }\n      R.pipe(details => {\n        details = this._filterDetailsByOptions(options, details);\n        return details;\n      }, R.forEach(eachDocDataDetails => {\n        // @NOTE: @TODO: darwin, why is the below a manual process? shouldnt the specs handle each scenario instead of having an if for each prop?\n        // make detail for each item bought\n        let detailRow = [];\n        R.forEach(detailSpec => {\n          const propValue = R.prop('prop')(detailSpec);\n          const toAppend = {\n            index: detailSpec.index\n          };\n          // add blank\n          if (RA.isNilOrEmpty(propValue)) {\n            const query = '';\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else if (propValue === 'qty') {\n            const query = parseInt(this.newBig(R.prop('qty')(eachDocDataDetails)).toFixed(0) || 0);\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else if (propValue === 'item') {\n            let query = R.prop('item')(eachDocDataDetails);\n            if (eachDocDataDetails.isSet) {\n              query = `${this.intl.t('isSet')}: ${query}`;\n            }\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else if (propValue === 'isSetWithChoicesChild') {\n            let query = '';\n            const isSetWithChoicesChild = R.prop('isSetWithChoicesChild')(eachDocDataDetails);\n            if (isSetWithChoicesChild) {\n              query = productSetWithChoicesName;\n            }\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else if (propValue === 'itemCode') {\n            const query = R.prop('itemCode')(eachDocDataDetails);\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else if (propValue === 'brand') {\n            const query = R.prop('brand')(eachDocDataDetails);\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else if (propValue === 'discInclPrice') {\n            let query = R.prop('discInclPrice')(eachDocDataDetails);\n            query = parseFloat(query) || 0;\n            if (eachDocDataDetails.isSetChild && !options.hideSetParents) {\n              query = '';\n            }\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else if (propValue === 'discExclPrice') {\n            let query = R.prop('discExclPrice')(eachDocDataDetails);\n            query = parseFloat(query) || 0;\n            if (eachDocDataDetails.isSetChild && !options.hideSetParents) {\n              query = '';\n            }\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else if (propValue === 'postDiscInclAmt') {\n            let query = R.prop('postDiscInclAmt')(eachDocDataDetails);\n            query = parseFloat(query) || 0;\n            if (eachDocDataDetails.isSetChild && !options.hideSetParents) {\n              query = '';\n            }\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else if (propValue === 'postDiscExclAmt') {\n            let query = R.prop('postDiscInclAmt')(eachDocDataDetails);\n            query = parseFloat(query) || 0;\n            if (eachDocDataDetails.isSetChild && !options.hideSetParents) {\n              query = '';\n            }\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          } else {\n            // anything that doesnt match. ideally this should be handled dynamically per propValue\n            const query = R.prop(propValue)(eachDocDataDetails) || '';\n            toAppend.value = query;\n            detailRow = R.append(toAppend, detailRow);\n          }\n\n          // add more below for custom detailRow\n          // intentionally blank\n          // intentionally blank\n          // intentionally blank\n          // intentionally blank\n        })(detailSpecs);\n        // append each item detail to make multiple item detail (if there are more than one item bought)\n        detailRows = R.append(detailRow, detailRows);\n      }))(toDetails);\n      return detailRows;\n    },\n    /**\n     * separate info and detail specs to be used separately\n     * @param  {Object} specsData contains specs from customer\n     * @return {Object} separatedSpecs object containing info and detail specs\n     */\n    separateInfoAndDetailSpecs({\n      specs,\n      options\n    }) {\n      let infoSpecs = [];\n      let detailSpecs = [];\n      const showProductSetWithChoices = R.propEq('showProductSetWithChoices', true)(options);\n      R.pipe(R.propOr([], 'specs'), R.forEach(array => {\n        let infoSpec = [];\n        let detailSpec = [];\n        RA.mapIndexed((spec, idx) => {\n          const isDetail = R.prop('isDetail')(spec);\n          spec.index = idx;\n          if (isDetail) {\n            detailSpec = R.append(spec, detailSpec);\n          } else {\n            infoSpec = R.append(spec, infoSpec);\n          }\n        })(array);\n        if (RA.isNotNilOrEmpty(infoSpec)) {\n          infoSpecs = R.append(infoSpec, infoSpecs);\n        }\n        if (RA.isNotNilOrEmpty(detailSpec)) {\n          if (showProductSetWithChoices) {\n            detailSpec = this.insertProductSetWithChoicesColumn(detailSpec);\n          }\n          detailSpecs = R.append(detailSpec, detailSpecs);\n        }\n      }))(specs);\n      return {\n        infoSpecs,\n        detailSpecs\n      };\n    },\n    applySpec({\n      specs,\n      eachDocData,\n      index,\n      type = 'single',\n      options\n    }) {\n      let infoRows = [];\n      let infoRowsAsObjects = [];\n      R.forEach(array => {\n        let infoRow = [];\n        let infoRowsAsObject = [];\n        R.forEach(spec => {\n          const value = this.transform_value({\n            spec,\n            eachDocData,\n            index,\n            specOptions: options\n          });\n          if (R.is(Array, value)) {\n            infoRow = R.pipe(R.concat(infoRow), R.flatten)(value);\n            R.forEach(obj => {\n              const objValue = {\n                value: obj,\n                index: spec.index\n              };\n              infoRowsAsObject = R.pipe(RA.ensureArray, R.concat(infoRowsAsObject), R.flatten)(objValue);\n            })(value);\n          } else {\n            const objValue = {\n              value,\n              index: spec.index\n            };\n            infoRow = R.append(value, infoRow);\n            infoRowsAsObject = R.append(objValue, infoRowsAsObject);\n          }\n        })(array);\n        infoRows = R.append(infoRow, infoRows);\n        infoRowsAsObjects = R.append(infoRowsAsObject, infoRowsAsObjects);\n      })(specs);\n      if (type === 'single') {\n        return {\n          infoRows: R.unnest(infoRows),\n          infoRowsAsObjects: R.unnest(infoRowsAsObjects)\n        };\n      }\n      return {\n        infoRows,\n        infoRowsAsObjects\n      };\n    },\n    transform_value({\n      spec,\n      eachDocData,\n      index,\n      specOptions\n    }) {\n      let value = '';\n      // getprop\n      value = this.transform_getProp({\n        spec,\n        eachDocData,\n        value\n      });\n      // transform Fn\n      const transforms = R.prop('transforms')(spec);\n      if (RA.isNotNilOrEmpty(transforms)) {\n        if (R.is(String, transforms)) {\n          value = this[`transform_${transforms}`]({\n            spec,\n            eachDocData,\n            value,\n            options: {},\n            index\n          });\n        } else {\n          R.map(eachFn => {\n            const theFn = R.prop('fn')(eachFn);\n            const options = R.prop('options')(eachFn);\n            if (R.is(Function, theFn)) {\n              value = theFn({\n                spec,\n                eachDocData,\n                value,\n                specOptions,\n                options,\n                index\n              });\n            } else if (theFn) {\n              value = this[`transform_${theFn}`]({\n                spec,\n                eachDocData,\n                value,\n                specOptions,\n                options,\n                index\n              });\n            }\n          })(R.flatten(RA.list(transforms)));\n        }\n      }\n\n      // type\n      const type = R.prop('type')(spec);\n      if (type && RA.isNotNilOrEmpty(type)) {\n        value = this[`transform_${type}`]({\n          spec,\n          eachDocData,\n          value\n        });\n      }\n      return value;\n    },\n    transform_concat({\n      eachDocData,\n      spec,\n      specOptions,\n      options,\n      index\n    }) {\n      const joinWith = R.propOr(' ', 'joinWith')(options);\n      const joinUniqueOnly = R.propOr(true, 'joinUniqueOnly')(options);\n      const availableNormalSpecs = specOptions?.availableNormalSpecs || [];\n      return R.pipe(R.propOr([], 'prop'), RA.ensureArray, props => {\n        return R.map(prop => {\n          const propSpec = R.find(R.propEq('prop', prop))(availableNormalSpecs);\n          // exclude custom since new model wouldn't have customText\n          if (RA.isNotNilOrEmpty(propSpec) && !R.equals(prop, 'custom')) {\n            return this.transform_value({\n              spec: propSpec,\n              eachDocData,\n              index\n            });\n          }\n          return this.transform_getProp({\n            prop,\n            spec,\n            eachDocData\n          });\n        })(props);\n      }, R.reject(RA.isNilOrEmpty), values => {\n        if (joinUniqueOnly) {\n          return R.uniq(values);\n        }\n        return values;\n      }, R.join(joinWith))(options);\n    },\n    transform_joinArray({\n      eachDocData,\n      spec,\n      specOptions,\n      options,\n      index\n    }) {\n      const joinWith = R.propOr(' ', 'joinWith')(options);\n      const availableNormalSpecs = specOptions?.availableNormalSpecs || [];\n      return R.pipe(R.propOr([], 'prop'), RA.ensureArray, props => {\n        return R.map(prop => {\n          const propSpec = R.find(R.propEq('prop', prop))(availableNormalSpecs);\n          // exclude custom since new model wouldn't have customText\n          if (RA.isNotNilOrEmpty(propSpec) && !R.equals(prop, 'custom')) {\n            return this.transform_value({\n              spec: propSpec,\n              eachDocData,\n              index\n            });\n          }\n          return this.transform_getProp({\n            prop,\n            spec,\n            eachDocData\n          });\n        })(props);\n      }, R.reject(RA.isNilOrEmpty), values => {\n        return R.uniq(values);\n      }, R.join(joinWith))(options);\n    },\n    transform_tableLookup({\n      eachDocData,\n      spec,\n      options,\n      value\n    }) {\n      const tableLookupArray = R.propOr([], 'tableLookupArray')(options);\n      const prop = R.propOr([], 'prop')(spec);\n      if (RA.isNilOrEmpty(value)) {\n        value = R_.dotPath(prop)(eachDocData);\n      }\n      const indexofValueInInputArray = R.findIndex(R.propEq('input', value))(tableLookupArray);\n      if (!R.equals(indexofValueInInputArray, -1)) {\n        value = R.propOr('', 'output')(tableLookupArray[indexofValueInInputArray]);\n      }\n      return value;\n    },\n    transform_date({\n      spec,\n      value\n    }) {\n      const format = R.prop('dateFormat')(spec) || 'YYYY-MM-DD';\n      const fillEmpty = R.propOr(false, 'fillEmpty')(spec);\n      if (RA.isNilOrEmpty(value)) {\n        if (fillEmpty) {\n          value = this.dateService.getMoment();\n          return this.dateService.formatDate(value, format);\n        }\n        return '';\n      } else {\n        return this.dateService.formatDate(value, format);\n      }\n    },\n    transform_index({\n      index\n    }) {\n      return index;\n    },\n    transform_number({\n      value\n    }) {\n      return parseFloat(value) || 0;\n    },\n    transform_getPropOr({\n      eachDocData,\n      spec,\n      options\n    }) {\n      let transformResult = this.transform_getProp({\n        spec,\n        eachDocData\n      });\n      if (RA.isNilOrEmpty(transformResult)) {\n        const propOr = options?.propOr || '';\n        transformResult = this.transform_getProp({\n          prop: propOr,\n          spec,\n          eachDocData\n        });\n      }\n      return transformResult;\n    },\n    transform_getProp({\n      prop,\n      spec,\n      eachDocData\n    }) {\n      if (RA.isNilOrEmpty(prop)) {\n        prop = R.prop('prop')(spec);\n      }\n      if (!R.is(String, prop)) {\n        return '';\n      }\n\n      // used if you need some prop to be checked before returning getProp\n      // (e.g. you need to see if docData.hasAdvancedAddress === true before getting countryCode prop, etc.)\n      // only get prop if checkProp is true\n      const checkProp = R.pipe(R.propOr('', 'checkProp'), checkProp => {\n        if (RA.isNotNilOrEmpty(checkProp)) {\n          return R.propOr(true, checkProp)(eachDocData);\n        }\n        return true;\n      })(spec);\n      if (!checkProp) {\n        return '';\n      }\n      let propValue = '';\n      if (RA.isNotNilOrEmpty(prop)) {\n        // Handle customCheckoutFieldsValues specially - return array of field values\n        if (R.equals(prop, 'customCheckoutFieldsValues')) {\n          const customCheckoutFieldsLabels = R.propOr([], 'customCheckoutFieldsLabels')(spec);\n          propValue = R.map(customCheckoutFieldsLabel => {\n            const customCheckoutFieldsValue = R.pipe(R.propOr([], 'customCheckoutFieldsValues'), R.find(R.propEq('text', customCheckoutFieldsLabel)))(eachDocData);\n            if (RA.isNotNilOrEmpty(customCheckoutFieldsValue)) {\n              return R.propOr('', 'value')(customCheckoutFieldsValue);\n            } else {\n              return '';\n            }\n          })(customCheckoutFieldsLabels);\n          return propValue;\n        }\n        propValue = R_.dotPath(prop)(eachDocData);\n        if (R.equals(prop, 'custom')) {\n          propValue = R.prop('customText')(spec);\n        }\n      }\n\n      // select spec child, select prop=paymentMethodKey, availableNormalSpecs { prop: 'paymentMethodKey', translate: true } => becomes the spec child\n\n      if (spec.translateFn) {\n        return spec.translateFn(propValue, eachDocData);\n      }\n      let translate = spec.translate;\n      const translateProp = spec.translateProp;\n      if (translateProp) {\n        translate = R_.dotPath(translateProp)(eachDocData);\n      }\n      if (translate) {\n        return this.intl.t(propValue);\n      }\n      // @TODO: remove this and use the above method\n      if (prop === 'paymentMethodKey') {\n        return this.getPaymentMethodProp(eachDocData, propValue);\n      }\n      if (prop === 'address') {\n        return this.getAddressProp(eachDocData, propValue);\n      }\n      if (prop === 'status') {\n        return this.intl.t(propValue);\n      }\n      if (prop === 'dispatchProcess') {\n        return this.getDispatchProcess(eachDocData, propValue);\n      }\n      if (prop === 'person') {\n        return this.getPerson(eachDocData, propValue);\n      }\n      return propValue;\n    },\n    transform_round({\n      value,\n      options\n    }) {\n      const rounding = R.prop('rounding')(options);\n      value = parseFloat(this.newBig(value).toFixed(rounding));\n      return value;\n    },\n    transform_today({\n      spec\n    }) {\n      const format = R.prop('dateFormat')(spec) || 'YYYY-MM-DD';\n      const today = this.dateService.getMoment();\n      return this.dateService.formatDate(today, format);\n    },\n    transform_getItemData({\n      spec,\n      eachDocData,\n      value,\n      typeOfTransformsArgs\n    }) {\n      let itemData = '';\n      const options = R.propOr('', 'options')(spec);\n      const hasAnyItemData = R.pipe(R.pick(['itemKey', 'itemCode', 'item']), R.reject(RA.isNilOrEmpty))(spec);\n      if (RA.isNotNilOrEmpty(options)) {\n        typeOfTransformsArgs = R.prop('prop')(options);\n      }\n      if (RA.isNotNilOrEmpty(hasAnyItemData)) {\n        const hasItemPropValue = R.includes(R.__, R.values(hasAnyItemData));\n        const detailsProp = R.propOr('details', 'detailsProp')(options);\n        const toTransformData = R.propOr([], detailsProp)(eachDocData);\n        R.map(eachDocDataDetails => {\n          const docHasItemKey = R.prop('itemKey')(eachDocDataDetails);\n          const docHasItemCode = R.prop('itemCode')(eachDocDataDetails);\n          const docHasItem = R.prop('item')(eachDocDataDetails);\n          const hasAnyItemProps = R.any(hasItemPropValue);\n          if (hasAnyItemProps([docHasItemKey, docHasItemCode, docHasItem])) {\n            const productQty = this.newBig(R.prop(typeOfTransformsArgs)(eachDocDataDetails));\n            value = parseFloat(this.newBig(value).plus(productQty));\n            itemData = R.props(['itemCode', 'itemKey'])(eachDocDataDetails);\n          }\n        })(toTransformData);\n        itemData = R.append(value)(itemData);\n      }\n      return itemData;\n    },\n    transform_getItemCode({\n      spec,\n      eachDocData,\n      value = '',\n      typeOfTransformsArgs = 'qty'\n    }) {\n      const itemData = this.transform_getItemData({\n        spec,\n        eachDocData,\n        value,\n        typeOfTransformsArgs\n      });\n      return R.dropLast(1, itemData);\n    },\n    transform_getSum({\n      spec,\n      eachDocData,\n      value = '',\n      typeOfTransformsArgs = 'qty'\n    }) {\n      const itemData = this.transform_getItemData({\n        spec,\n        eachDocData,\n        value,\n        typeOfTransformsArgs\n      });\n      return R.last(itemData);\n    },\n    getPaymentMethodProp(eachDocData, propValue) {\n      const hasPaymentMethodCustomLabel = R.path(['paymentMethodCustomLabel'])(eachDocData);\n      if (hasPaymentMethodCustomLabel) {\n        const paymentMethodCustomLabel = R_.dotPath('paymentMethodCustomLabel')(eachDocData);\n        if (RA.isArray(propValue)) {\n          // for grouped docs, payment method is array ['cash', 'credicCard']\n          const propVal = _nventor.default.safeHeadOr('')(propValue);\n          if (propVal) {\n            return `${paymentMethodCustomLabel} (${this.intl.t(propVal)})`;\n          } else {\n            `${paymentMethodCustomLabel}`;\n          }\n        } else {\n          return `${paymentMethodCustomLabel} (${this.intl.t(propValue)})`;\n        }\n      }\n      if (RA.isArray(propValue)) {\n        // for grouped docs, payment method is array ['cash', 'credicCard']\n        const propVal = _nventor.default.safeHeadOr('')(propValue);\n        if (propVal) {\n          return this.intl.t(propVal);\n        } else {\n          return '';\n        }\n      } else {\n        return this.intl.t(propValue);\n      }\n    },\n    getAddressProp(eachDocData, propValue) {\n      const isConvenienceStore = R.pathOr(false, ['isConvenienceStore'])(eachDocData);\n      if (isConvenienceStore) {\n        const convenienceStoreData = R.pathOr({}, ['convenienceStoreData'])(eachDocData);\n        const brand = convenienceStoreData?.brand || '';\n        const storeName = convenienceStoreData?.storeName || '';\n        const storeAddress = convenienceStoreData?.storeAddress || '';\n        const storeId = convenienceStoreData?.storeId || '';\n        return `${this.intl.t(brand)} - ${storeName} - ${storeAddress} - (${this.intl.t('storeId')}: ${storeId})`;\n      }\n      return propValue;\n    },\n    getDispatchProcess(eachDocData, propValue) {\n      const status = R_.dotPath('status')(eachDocData);\n      if (status !== 'final') {\n        return this.intl.t(status);\n      }\n      let translate = true;\n      const translateProp = 'dispatchProcessLabelTranslate';\n      if (translateProp) {\n        translate = R_.dotPath(translateProp)(eachDocData);\n      }\n      if (translate) {\n        return this.intl.t(propValue);\n      }\n      return propValue;\n    },\n    getPerson(eachDocData, propValue) {\n      if (RA.isNotNilOrEmpty(propValue)) {\n        return propValue;\n      }\n      const contact = R_.dotPath('contact')(eachDocData);\n      return contact;\n    },\n    _filterDetailsByOptions(options, details) {\n      let filteredDetails = R.clone(details);\n      if (R.propEq('hideShippingFee', true)(options)) {\n        filteredDetails = R.reject(R.propEq('type', 'shippingFee'))(filteredDetails);\n      }\n      if (R.propEq('showSetDetails', false)(options)) {\n        filteredDetails = R.reject(R.propEq('isSetChild', true))(filteredDetails);\n      }\n      if (R.propEq('hideSetParents', true)(options) && R.propEq('showSetDetails', true)(options)) {\n        filteredDetails = R.reject(R.propEq('isSet', true))(filteredDetails);\n      }\n      return filteredDetails;\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/convenience-stores/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwCovenienceStoresAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/convenienceStores',\n    modelObj: ExtensionsAppsTwCovenienceStoresAdapter,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/convenience-stores/lists/brands/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwConvenienceStoresListsBrandsAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    constants: Ember.inject.service(),\n    modelObj: ExtensionsAppsTwConvenienceStoresListsBrandsAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'sevenEleven',\n        value: this.constants.convenienceStoresBrands.sevenEleven\n      }, {\n        label: 'familyMart',\n        value: this.constants.convenienceStoresBrands.familyMart\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices',\n    modelObj: _model.default,\n    idParam: '_id',\n    issue({\n      payload,\n      appendPath = ''\n    }) {\n      return this.call({\n        method: 'POST',\n        appendPath,\n        data: payload\n      }).then(R.propOr([], 'data'));\n    },\n    issueBatch({\n      payload,\n      appendPath = ''\n    }) {\n      const path = `/batch${appendPath}`;\n      return this.call({\n        method: 'POST',\n        appendPath: path,\n        data: payload\n      }).then(R.propOr([], 'data'));\n    },\n    rePrint({\n      appendPath,\n      payload\n    }) {\n      const path = `/printer/reprint${appendPath}`;\n      return this.call({\n        method: 'POST',\n        appendPath: path,\n        data: payload\n      }).then(R.propOr([], 'data'));\n    },\n    /**\n     * Mark an unresolved e-invoice as resolved so the sales document can be issued again.\n     * @param {Object} options - request options\n     * @param {Object} options.payload - request body\n     * @param {string} options.payload.invoiceKey - tw_invoices _key to mark as resolved\n     * @return {Promise<Object>} the updated e-invoice row\n     */\n    markAsResolved({\n      payload\n    }) {\n      return this.call({\n        method: 'PATCH',\n        appendPath: '/attentionRequired/resolved',\n        data: payload\n      });\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/available-count-to-issue/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/available-count-to-issue/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/available-count',\n    modelObj: _model.default,\n    idPrefix: 'posProfileAvailableCount',\n    idParam: 'posProfileKey'\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/available-count-to-issue/model\", [\"exports\", \"client/pods/base/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    availableCountToIssueThreshold: 50,\n    isUnderThreshold: Ember.computed('_data.{availableCountToIssue,hasRemainingCount}', function () {\n      if (this._data?.availableCountToIssue <= this.availableCountToIssueThreshold) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/carrier-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        label: 'none',\n        value: ''\n      }, {\n        label: 'tw_eInvoice_carrierType_b2b',\n        value: 'b2b'\n      }, {\n        label: 'tw_eInvoice_carrierType_app',\n        value: 'mobile'\n      }, {\n        label: 'tw_eInvoice_carrierType_person',\n        value: 'citizenDigitalCertificate'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/collection',\n    modelObj: _model.default,\n    idParam: 'master',\n    idPrefix: 'invoices/collection'\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/collection/model\", [\"exports\", \"client/pods/base/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    init() {\n      this._super(...arguments);\n      this.set('adapters', {\n        invoices: 'extensions/apps/tw/e-invoices'\n      });\n    },\n    populate(data, attrs) {\n      data.invoices = this._transformInvoices(data.invoices);\n      this._super(data, attrs);\n    },\n    _transformInvoices(invoices = []) {\n      return invoices.map(invoice => {\n        return this.dataManager.setAsRecord({\n          adapterName: this.get('adapters.invoices'),\n          data: invoice\n        });\n      });\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/docs-for-display/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/docs-for-display/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/docs-for-display',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/docs-for-display/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    populate(data, attrs) {\n      data.eInvoices = this._transformEInvoices(data.eInvoices, attrs);\n      this._super(data, attrs);\n    },\n    _transformEInvoices(eInvoices = [], attrs = {}) {\n      return R.map(eInvoice => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'extensions/apps/tw/e-invoices',\n          data: eInvoice,\n          attrs\n        });\n      })(eInvoices);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/docs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Model from '../../../../../documents/model'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/docs',\n    modelObj: _model.default,\n    idParam: false,\n    resultsProperty: 'docs' // findAll returns an object { docs: [results], summaryData } instead of the standard [results] array\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        docNo: '',\n        date: '',\n        contact: '',\n        ref: '',\n        paymentMethods: [],\n        inclTotal: '',\n        salesPersons: [],\n        dispatchProcesses: [],\n        sort: [{\n          //   by: 'dateLocal',\n          //   direction: 'DESC'\n          // }, {\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/lists/auto-issue/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'tw_eInvoice_auto_issue_on_dispatch',\n        value: 0\n      }, {\n        label: 'tw_eInvoice_auto_issue_seven_days_after',\n        value: 7\n      }, {\n        label: 'tw_eInvoice_auto_issue_fourteen_days_after',\n        value: 14\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'email',\n        label: 'email'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'timestampZ',\n        label: 'created date'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'email',\n        label: 'email'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'successful',\n        label: 'successful'\n      }, {\n        value: 'cancelled',\n        label: 'cancelled'\n      }, {\n        value: 'pending',\n        label: 'pending'\n      }, {\n        value: 'pendingCancellation',\n        label: 'pendingCancellation'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/lists/printers/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/printer/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/printer',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/lists/providers/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'tw_eInvoice_provider_bigOrdr',\n        value: 'bigOrdr'\n      }, {\n        label: 'tw_eInvoice_provider_systemlead',\n        value: 'systemlead'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    isSaved: Ember.computed('isDeleted', '_data.status', function () {\n      if (this.isDeleted) {\n        return false;\n      }\n      if (this.get('_data.status') === 'printed' || this.get('_data.status') === 'pending') {\n        return true;\n      }\n      return false;\n    }),\n    isPending: Ember.computed('_data.status', function () {\n      const status = this.get('_data.status');\n      if (status === 'pending' || status === 'pendingCancellation') {\n        return true;\n      }\n      return false;\n    }),\n    isSuccessful: Ember.computed('_data.status', function () {\n      const status = this.get('_data.status');\n      if (status === 'successful') {\n        return true;\n      }\n      return false;\n    }),\n    isSuccessfulOrCancelled: Ember.computed('_data.status', function () {\n      const status = this.get('_data.status');\n      if (status === 'successful' || status === 'cancelled') {\n        return true;\n      }\n      return false;\n    }),\n    isCancelledOrUnsuccessful: Ember.computed('_data.status', function () {\n      const status = this.get('_data.status');\n      if (status === 'unsuccessful' || status === 'cancelled') {\n        return true;\n      }\n      return false;\n    }),\n    isAttentionRequired: Ember.computed('_data.status', function () {\n      const status = this.get('_data.status');\n      if (status === 'attentionRequired') {\n        return true;\n      }\n      return false;\n    }),\n    /**\n     * An unsuccessful e-invoice that still blocks issuing a new e-invoice for its document\n     * until the user marks it as resolved.\n     * @return {boolean}\n     */\n    isUnresolvedUnsuccessful: Ember.computed('_data.{status,isUnresolved}', function () {\n      const status = this.get('_data.status');\n      const isUnresolved = this.get('_data.isUnresolved');\n      return status === 'unsuccessful' && isUnresolved === true;\n    }),\n    /**\n     * Allow for a reprint whenever the original hasn't been printed successfully.\n     */\n    isAllowReprint: Ember.computed('_data.timestampZ', 'isSuccessful', function () {\n      if (!this?._data?.isSuccessful) {\n        return false;\n      }\n\n      //    const timestampZ = R.pathOr('', ['_data', 'timestampZ'])(this)\n      //    if (!timestampZ) {\n      //      return false\n      //    }\n      //\n      //    const aDayAgoZ = this.dateService.getMoment().subtract(1, 'day')\n      //\n      //    const hasPassedADay = aDayAgoZ.isAfter(timestampZ)\n      //    if (hasPassedADay) {\n      //      return false\n      //    }\n\n      return true;\n    }),\n    statusClassName: Ember.computed('_data.status', function () {\n      const status = this.get('_data.status');\n      if (status === 'successful') {\n        return 'is-success';\n      }\n      if (status === 'attentionRequired') {\n        return 'is-danger';\n      }\n      if (status === 'cancelled') {\n        return 'is-danger';\n      }\n      if (status === 'unsuccessful') {\n        return 'is-black';\n      }\n      return '';\n    }),\n    printStatusClassName: Ember.computed('_data.printed.printStatus', function () {\n      const status = this.get('_data.printStatus');\n      if (status === 'successful') {\n        return 'is-success';\n      }\n      return 'is-warning';\n    }),\n    allowResending: Ember.computed('_data.provider', function () {\n      if (this._data.provider === 'ecPay') {\n        return true;\n      }\n      if (this._data.provider === '') {\n        return true;\n      }\n      return false;\n    }),\n    errorMessage: Ember.computed('_data.{provider,errorMessage,response.RtnMsg}', function () {\n      const errorMessage = R.pipe(R.pathOr('', ['_data', 'errorMessage']), R.trim)(this);\n      if (errorMessage) {\n        return errorMessage;\n      }\n\n      // TODO: Refactor to remove provider-specific error handling. Each provider should populate the errorMessage property directly.\n      if (this._data.provider !== 'ecPay') {\n        return '';\n      }\n      const isSuccessful = this._data?.response?.RtnCode === '1';\n      if (isSuccessful) {\n        return '';\n      }\n      const rtnMessage = R.pipe(R.pathOr('', ['_data', 'response', 'RtnMsg']), R.trim)(this);\n      if (rtnMessage) {\n        return rtnMessage;\n      }\n      return '';\n    })\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/printer/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/printer/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/printer',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/printer/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/printer/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/printer/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        docNo: '',\n        date: '',\n        contact: '',\n        ref: '',\n        paymentMethods: [],\n        inclTotal: '',\n        salesPersons: [],\n        dispatchProcesses: [],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/printer/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwEInvoicesPrinterModel extends _model.default {\n    get printerLastSix() {\n      return R.pipe(R.pathOr('', ['_data', 'printerId']), R.takeLast(6))(this);\n    }\n    get printerIdLastSix() {\n      const label = this._data?.label;\n      if (label) {\n        return label;\n      }\n      return `ID: ${this.printerLastSix}`;\n    }\n  }\n\n  // export default BaseModel.extend({})\n  _exports.default = ExtensionsAppsTwEInvoicesPrinterModel;\n});","define(\"client/pods/extensions/apps/tw/e-invoices/reasons/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '取消訂單'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/service\", [\"exports\", \"client/config/environment\", \"ember-concurrency\", \"ramda\", \"ramda-adjunct\"], function (_exports, _environment, _emberConcurrency, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj; // import AjaxMixin from '../../mixins/ajax'\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  /**\n   * performs and manages connections to servers\n   */\n  var _default = _exports.default = Ember.Service.extend((_dec = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    dateService: Ember.inject.service('date'),\n    server: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    adapterName: 'extensions/apps/tw/e-invoices/to-issue',\n    filtersAdapterName: 'extensions/apps/tw/e-invoices/filters',\n    host: _environment.default.APP.serverUrl,\n    printerData: {},\n    init() {\n      this._super(...arguments);\n      const printerData = Ember.Object.create({\n        twEInvoiceUserKey: null,\n        twEInvoicePrinterId: null,\n        twEInvoiceAllowPrintingFrom: null,\n        printerKey: null\n      });\n      this.set('printerData', printerData);\n    },\n    fetchToIssueEInvoicesTask: (0, _emberConcurrency.task)(function* ({\n      component,\n      adapterName = 'extensions/apps/tw/e-invoices/to-issue',\n      appendPath,\n      filters,\n      period = {},\n      dispatchProcess,\n      includeBeforeStartDate,\n      twEInvoiceUserKey,\n      twEInvoiceAllowPrintingFrom,\n      onlyRemaining = false\n    } = {}) {\n      const data = {\n        isByDispatchProcess: !period.date,\n        dateEnd: period.date || ''\n      };\n      if (!includeBeforeStartDate) {\n        data.dateStart = period.monthStart || period.date;\n        data.dateEnd = period.monthEnd;\n      }\n      if (dispatchProcess && !period.date) {\n        data.dispatchProcess = dispatchProcess.serialize();\n      }\n      data.twEInvoiceUserKey = twEInvoiceUserKey;\n      data.twEInvoiceAllowPrintingFrom = twEInvoiceAllowPrintingFrom;\n      if (onlyRemaining) {\n        data.onlyRemaining = onlyRemaining;\n      }\n      try {\n        const results = yield this.crud.searchRecordsTask.perform({\n          adapterName,\n          appendPath,\n          filters,\n          data\n        });\n        filters.set('fullCount', results?.fullCount);\n        Ember.set(component, 'toIssue', R.pathOr([], ['toIssue'])(results));\n        Ember.set(component, 'invalid', R.pathOr([], ['invalid'])(results));\n        Ember.set(component, 'noAvailableNumbers', R.pathOr([], ['noAvailableNumbers'])(results));\n        Ember.set(component, 'invalidCount', R.pathOr([], ['invalidCount'])(results));\n        Ember.set(component, 'toIssueCount', R.pathOr([], ['toIssueCount'])(results));\n        return results;\n      } catch (err) {\n        console.error('error fetching to issue', err);\n        // this.setValidationErrors('notifyErrors', err)\n      }\n    }),\n    resetToIssueInvoicesData(component) {\n      Ember.set(component, 'toIssue', []);\n      Ember.set(component, 'invalid', []);\n      Ember.set(component, 'noAvailableNumbers', []);\n      Ember.set(component, 'invalidCount', []);\n      Ember.set(component, 'toIssueCount', []);\n    },\n    fetchTrackNumbers: (0, _emberConcurrency.task)(function* ({\n      component,\n      resultProp = 'track',\n      mm = '',\n      yyyy = '',\n      period\n    } = {}) {\n      if (period) {\n        mm = period.mm;\n        yyyy = period.yyyy;\n      }\n      if (!mm || !yyyy) {\n        const currentPeriod = this.dateService.getPeriod();\n        mm = currentPeriod.mm;\n        yyyy = currentPeriod.yyyy;\n      }\n      try {\n        const trackModel = yield this.crud.findTask.perform({\n          adapterName: 'extensions/apps/tw/e-invoices/tracks',\n          params: {\n            mm,\n            yyyy\n          }\n        });\n        if (component && resultProp) {\n          component[resultProp] = trackModel;\n        }\n        return trackModel;\n      } catch (error) {\n        console.error('Error while fetching track numbers: ', error);\n      }\n      return null;\n    }),\n    uploadBlanksTask: (0, _emberConcurrency.task)(function* ({\n      mm = '',\n      yyyy = '',\n      period,\n      uploadUnusedBlanks\n    } = {}) {\n      if (period) {\n        mm = period.mm;\n        yyyy = period.yyyy;\n      }\n      return yield this.server.call('POST', 'api/protected/extensions/apps/tw/e-invoices/upload-blanks', {\n        mm,\n        yyyy,\n        uploadUnusedBlanks\n      });\n    }),\n    customPaginateSearchRecordsTask: (0, _emberConcurrency.task)(function* (args) {\n      const component = R.prop('component')(args);\n      const filters = R.prop('filters')(args);\n      const results = yield this.crud.paginateSearchRecordsTask.perform({\n        filters\n      });\n      if (component) {\n        Ember.set(component, 'toIssue', R.pathOr([], ['toIssue'])(results));\n        Ember.set(component, 'invalid', R.pathOr([], ['invalid'])(results));\n        Ember.set(component, 'invalidCount', R.pathOr([], ['invalidCount'])(results));\n        Ember.set(component, 'toIssueCount', R.pathOr([], ['toIssueCount'])(results));\n      }\n    }),\n    issueAllEInvoicesForPeriodTask: (0, _emberConcurrency.task)(function* (args = {}) {\n      const {\n        component,\n        onCloseDialogAction,\n        period = {},\n        dispatchProcess,\n        includeBeforeStartDate,\n        twEInvoicePrint = false,\n        twEInvoicePrinterId = null,\n        printerKey = null,\n        twEInvoiceUserKey = null,\n        twEInvoiceAllowPrintingFrom = null\n      } = args;\n      const payload = {\n        isByDispatchProcess: !period.date,\n        dateEnd: period.date || '',\n        twEInvoicePrint,\n        twEInvoicePrinterId,\n        printerKey,\n        twEInvoiceUserKey,\n        twEInvoiceAllowPrintingFrom\n      };\n      if (!includeBeforeStartDate) {\n        payload.dateStart = period.monthStart || period.date;\n        payload.dateEnd = period.monthEnd;\n      }\n      if (dispatchProcess && !period.date) {\n        payload.dispatchProcess = dispatchProcess.serialize();\n      }\n      Ember.set(component, 'printErrors', []);\n      try {\n        Ember.set(component, 'hasResults', false);\n        const results = yield this.server.getAdapter('extensions/apps/tw/e-invoices').issueBatch({\n          payload\n        });\n        onCloseDialogAction();\n        const message = this.intl.t('tw_eInvoice_queued_successfully');\n        window.alert(message);\n        return results;\n      } catch (err) {\n        this.crud.setValidationErrors('printErrors', err, component);\n        return false;\n      }\n    }).drop(),\n    issueTask: (0, _emberConcurrency.task)(function* (component, onCloseDialogAction, document, custom, invoiceModel) {\n      const invoiceKey = invoiceModel?._data?._key;\n      const status = invoiceModel?._data?.status;\n      const isUnresolved = invoiceModel?._data?.isUnresolved;\n      if (status === this.constants.eInvoicesStatus.attentionRequired && isUnresolved) {\n        custom.isUnresolved = false;\n      }\n      const payload = {\n        _key: document.getData('_key'),\n        invoiceKey,\n        custom\n      };\n      Ember.set(component, 'issueErrors', []);\n      try {\n        const results = yield this.server.getAdapter('extensions/apps/tw/e-invoices').issue({\n          payload\n        });\n        onCloseDialogAction();\n        const message = this.intl.t('tw_eInvoice_queued_successfully');\n        window.alert(message);\n        return results;\n      } catch (err) {\n        this.crud.setValidationErrors('issueErrors', err, component);\n        return false;\n      }\n    }).drop(),\n    /**\n     * reprint successful e-invoices using printer\n     */\n    rePrintEInvoicesTask: (0, _emberConcurrency.task)(function* (component, document, custom) {\n      const msg = this.intl.t('are you sure you want to reprint');\n      if (window.confirm(msg)) {\n        const appendPath = `/${document.getData('_key')}`;\n        const payload = {\n          printerId: custom?.twEInvoicePrinterId\n        };\n        Ember.set(component, 'issueErrors', []);\n        try {\n          return yield this.server.getAdapter('extensions/apps/tw/e-invoices').rePrint({\n            appendPath,\n            payload\n          });\n        } catch (err) {\n          this.crud.setValidationErrors('issueErrors', err, component);\n          return false;\n        }\n      }\n    }).drop(),\n    issueAndPrintTask: (0, _emberConcurrency.task)(function* (component, onCloseDialogAction, document, custom, invoiceModel) {\n      const invoiceKey = invoiceModel?._data?._key;\n      const status = invoiceModel?._data?.status;\n      const isUnresolved = invoiceModel?._data?.isUnresolved;\n      if (status === this.constants.eInvoicesStatus.attentionRequired && isUnresolved) {\n        custom.isUnresolved = false;\n      }\n      custom.twEInvoicePrint = true;\n      Ember.set(component, 'issueErrors', []);\n      const payload = {\n        _key: document.getData('_key'),\n        invoiceKey,\n        custom\n      };\n      let results;\n      try {\n        results = yield this.server.getAdapter('extensions/apps/tw/e-invoices').issue({\n          payload\n        });\n        onCloseDialogAction();\n        return results;\n      } catch (err) {\n        this.crud.setValidationErrors('issueErrors', err, component);\n        return false;\n      }\n    }).drop(),\n    setupTaxDetails(model, companyDetails) {\n      if (companyDetails.isUnsuccessful) {\n        model.setData('companyName', '');\n        model.setData('twEInvoiceCarrierId', '');\n      }\n      const value = companyDetails.value || companyDetails.taxNumber || '';\n      const isMobileBarcode = value.startsWith('/');\n      if (!value || isMobileBarcode && model?._data?.twEInvoiceCarrierType === 'b2b') {\n        return;\n      }\n      let twEInvoiceCarrierType = '';\n      const hasCompanyDetails = RA.isNotNilOrEmpty(companyDetails);\n      if (hasCompanyDetails) {\n        const companyName = companyDetails?.name || '';\n        const taxNumber = companyDetails?.taxNumber || '';\n        twEInvoiceCarrierType = 'b2b';\n        model.setData('companyName', companyName);\n        model.setData('taxNumber', taxNumber);\n        model.setData('twEInvoiceCarrierId', '');\n      } else {\n        model.setData('companyName', '');\n        model.setData('taxNumber', '');\n      }\n      if (isMobileBarcode) {\n        twEInvoiceCarrierType = 'mobile';\n        model.setData('twEInvoiceCarrierId', value);\n        model.setData('taxNumber', '');\n      } else {\n        model.setData('twEInvoiceCarrierId', '');\n      }\n      model.setData('twEInvoiceCarrierType', twEInvoiceCarrierType);\n    },\n    fetchAvailableCountToIssueTask: (0, _emberConcurrency.task)(function* ({\n      userKey\n    } = {}) {\n      let path = 'api/protected/extensions/apps/tw/e-invoices/available-count';\n      if (userKey) {\n        path = `${path}/${userKey}`;\n      }\n      const availableCountData = yield this.server.call('GET', path);\n      return availableCountData?.data || {};\n    })\n  }, _applyDecoratedDescriptor(_obj, \"setupTaxDetails\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupTaxDetails\"), _obj), _obj));\n});","define(\"client/pods/extensions/apps/tw/e-invoices/to-issue/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/to-issue/model\", \"ramda\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/to-issue',\n    modelObj: _model.default,\n    idParam: false,\n    afterFindAll(responseData) {\n      // overrides what happens after findAll in data-manager\n      // this is required because findAll should return an array but an object is returned\n      // cannot use find because require the use of filters/pagination\n      responseData.toIssue = R.pipe(R.propOr([], 'toIssue'), R.map(docData => {\n        return _nventor.default.createModel(_model.default, docData);\n      }))(responseData);\n      responseData.invalid = R.pipe(R.propOr([], 'invalid'), R.map(docData => {\n        return _nventor.default.createModel(_model.default, docData);\n      }))(responseData);\n      responseData.noAvailableNumbers = R.pipe(R.propOr([], 'noAvailableNumbers'), R.map(docData => {\n        return _nventor.default.createModel(_model.default, docData);\n      }))(responseData);\n      return responseData;\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/to-issue/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    _onlyValid(path, showZeroValueItems, self) {\n      return R.pipe(R.pathOr([], path), R.filter(detail => {\n        if (showZeroValueItems) {\n          return true;\n        }\n        return R.gt(detail.postDiscInclAmt, 0);\n      }))(self);\n    },\n    invoiceDetails: Ember.computed('_data.details.[]', function () {\n      // const showZeroValueItems = this.attrs.settings.getProp('tw_eInvoice_systemlead.showZeroValueItems')\n      return this._onlyValid(['_data', 'details'], true, this);\n    }),\n    returnsDetails: Ember.computed('_data.returns.[]', 'synced', function () {\n      return this._onlyValid(['_data', 'returns'], false, this);\n    })\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/tracks/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 TrackModel = (_dec = Ember._tracked, _class = class TrackModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/tracks',\n    modelObj: TrackModel,\n    idParam: '_id',\n    issue({\n      payload\n    }) {\n      const path = this.getPath('resourcePath');\n      return this.server.call('POST', path, payload).then(R.propOr([], 'data'));\n    },\n    issueBatch({\n      payload\n    }) {\n      const path = `${this.getPath('resourcePath')}/batch`;\n      return this.server.call('POST', path, payload).then(R.propOr([], 'data'));\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/tracks/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        mm: '',\n        yyyy: '',\n        prefix: '',\n        query: '',\n        match: ['all'],\n        statuses: [],\n        sort: [{\n          by: 'index',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    populate(data, attrs) {\n      data.currentNumbers = this._transformCurrentNumbers(data);\n      data = this.transformTrackNumbers(data);\n      this._super(data, attrs);\n      return data;\n    },\n    _transformCurrentNumbers(data) {\n      return R.pipe(R.propOr([], 'currentNumbers'), R.map(currentNumberData => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'extensions/apps/tw/eInvoices/tracks/numbers/current-number',\n          data: currentNumberData\n        });\n      }))(data);\n    },\n    transformTrackNumbers(data) {\n      data.trackNumbers = R.pipe(R.propOr([], 'trackNumbers'), R.map(trackNumber => {\n        trackNumber = this.transformAllocatedNumbers(trackNumber, data);\n        return this.dataManager.setAsRecord({\n          adapterName: 'extensions/apps/tw/eInvoices/tracks/numbers',\n          data: trackNumber\n        });\n      }))(data);\n      return data;\n    },\n    transformAllocatedNumbers(data, {\n      currentNumbers\n    }) {\n      data.allocatedNumbers = R.pipe(R.propOr([], 'allocatedNumbers'), R.map(allocatedNumberData => {\n        const allocatedNumber = this.dataManager.setAsRecord({\n          adapterName: 'extensions/apps/tw/eInvoices/tracks/numbers/allocated',\n          data: allocatedNumberData\n        });\n        allocatedNumber.set('currentNumbers', currentNumbers);\n        return allocatedNumber;\n      }))(data);\n      return data;\n    },\n    // current: computed('_data.current', function () {\n    //   return this._data.current\n    // }),\n\n    index: Ember.computed('_data.index', function () {\n      return this._data.index;\n    }),\n    allocatedNumbersGroupedByEInvoicePrinterTerminals: Ember.computed('_data.trackNumbers.{[],synced}', function () {\n      return R.pipe(R.pathOr([], ['_data', 'trackNumbers']), R.map(R.pathOr([], ['_data', 'allocatedNumbers'])), R.flatten, R.filter(R.path(['_data', 'userKey'])), R.reject(RA.isNilOrEmpty), R.groupBy(R.path(['_data', 'userKey'])))(this);\n    }),\n    allocatedNumberForAny: Ember.computed('_data.trackNumbers.{[],synced}', function () {\n      return R.pipe(R.pathOr([], ['_data', 'trackNumbers']), R.map(R.pathOr([], ['_data', 'allocatedNumbers'])), R.flatten, R.reject(allocated => {\n        if (allocated?._data?.userKey) {\n          return true;\n        }\n        if (!allocated?._data?.isAllowed) {\n          return true;\n        }\n        return false;\n      }), R.reject(RA.isNilOrEmpty)\n      // R.groupBy(() => {\n      //   return 'tw_eInvoices_available_any'\n      // })\n      )(this);\n    }),\n    allocatedNumberForDisallowed: Ember.computed('_data.trackNumbers.{[],synced}', function () {\n      return R.pipe(R.pathOr([], ['_data', 'trackNumbers']), R.map(R.pathOr([], ['_data', 'allocatedNumbers'])), R.flatten, R.filter(R.pathEq(['_data', 'isAllowed'], false))\n      // R.reject(RA.isNilOrEmpty),\n      // R.groupBy(() => {\n      //   return 'tw_eInvoices_disallowed'\n      // })\n      )(this);\n    }),\n    getAvailableCountToIssue({\n      twEInvoiceAllowPrintingFrom,\n      userKey\n    }) {\n      const trackData = this?._data || {};\n      if (twEInvoiceAllowPrintingFrom === this.constants.twEInvoicePrinter.allowPrintingFrom.anyNextAvailableNumbers) {\n        return Number(trackData?.availableCountForAnyAvailable) || 0;\n      }\n      return Number(R.pathOr(0, ['availableCountPerUserKey', userKey])(trackData)) || 0;\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/numbers/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/tracks/numbers/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/tracks/numbers',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/numbers/allocated/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/tracks/numbers/allocated/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/e-invoices/tracks/numbers/allocated',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/numbers/allocated/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    populate(data, attrs) {\n      data.blanks = R.pipe(R.propOr([], 'blanks'), R.map(blank => {\n        return Ember.Object.create(blank);\n      }))(data);\n      this._super(...arguments);\n      this.checkBlanksAllowed(false);\n    },\n    addBlankNumberSet(blank = {\n      startNumber: '',\n      endNumber: ''\n    }) {\n      const blanks = this.getData('blanks') || [];\n      blank.startNumber = '';\n      blank.endNumber = '';\n      blank = Ember.Object.create(blank);\n      blanks.pushObject(blank);\n      this.set('_data.blanks', blanks);\n      return blank;\n    },\n    removeBlankNumberSet(blank) {\n      const blanks = this.getData('blanks') || [];\n      blanks.removeObject(blank);\n      this.setData('blanks', blanks);\n    },\n    checkBlanksAllowed(isFocusOut) {\n      const blanks = this.getData('blanks') || [];\n      R.forEach(blank => {\n        this._checkBlanksAllowed('startNumber', isFocusOut, blank);\n        this._checkBlanksAllowed('endNumber', isFocusOut, blank);\n      })(blanks);\n    },\n    _checkBlanksAllowed(prop, isFocusOut, blank) {\n      const endNumber = this.getData('endNumberString') || this.getData('endNumber');\n      const startNumber = this.getData('startNumberString') || this.getData('startNumber');\n      const allowedProp = `${prop}Allowed`;\n      const startNumberString = `${startNumber}`;\n      let value = blank.get(prop);\n      const valueString = `${value}`;\n      if (valueString.length !== startNumberString.length) {\n        blank.set(allowedProp, false);\n        blank.set('numbersAllowed', false);\n        return blank;\n      }\n      value = parseInt(value) || 0;\n      if (value < parseInt(startNumber) || value > parseInt(endNumber)) {\n        blank.set(allowedProp, false);\n        blank.set('numbersAllowed', false);\n        return blank;\n      }\n\n      // is within range\n      // check if exists in other blanks\n\n      blank.set('isSelf', true);\n      const blanks = this.getData('blanks') || [];\n      const isNotInOtherBlanks = R.reduce((acc, otherBlank) => {\n        if (acc === false) {\n          return false;\n        }\n        if (otherBlank.isSelf) {\n          // dont compare when is itself\n          return true;\n        }\n        if (value >= otherBlank.startNumber && value <= otherBlank.endNumber) {\n          return false;\n        }\n        return true;\n      }, true)(blanks);\n      blank.set(allowedProp, isNotInOtherBlanks);\n      const numbersAllowed = blank.get('startNumberAllowed') && blank.get('endNumberAllowed');\n      blank.set('numbersAllowed', numbersAllowed);\n      blank.set('isSelf', false);\n      if (isFocusOut && numbersAllowed) {\n        if (blank.startNumber > blank.endNumber) {\n          const newEndNumber = blank.startNumber;\n          const newStartNumber = blank.endNumber;\n          blank.set('startNumber', newStartNumber);\n          blank.set('endNumber', newEndNumber);\n        }\n      }\n      return blank;\n    },\n    hasDisallowedBlanks: Ember.computed('_data.blanks.@each.numbersAllowed', function () {\n      const blanks = this.getData('blanks') || [];\n      return R.reduce((acc, blank) => {\n        if (acc === true) {\n          return true;\n        }\n        return !blank.numbersAllowed;\n      }, false)(blanks);\n    }),\n    prefix: Ember.computed('_data.prefix', function () {\n      return this._data.prefix;\n    }),\n    index: Ember.computed('_data.index', function () {\n      return this._data.index;\n    }),\n    startNumber: Ember.computed('_data.startNumber', function () {\n      return this._data.startNumber;\n    }),\n    endNumber: Ember.computed('_data.endNumber', function () {\n      return this._data.endNumber;\n    }),\n    currentNumber: Ember.computed('currentNumbers.@each._rev', function () {\n      // this has a problem?\n      // could startNumber and endNumber change if user changes book ranges?\n      return R.pipe(R.propOr([], 'currentNumbers'), R.find(R.allPass([R.pathEq(['_data', 'prefix'], this.prefix), R.pathEq(['_data', 'startNumber'], this.startNumber), R.pathEq(['_data', 'endNumber'], this.endNumber)])))(this);\n    })\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/numbers/current-number/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/apps/tw/e-invoices/tracks/numbers/current-number/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/numbers/current-number/model\", [\"exports\", \"client/pods/base/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    prefix: Ember.computed('_data.prefix', function () {\n      return this._data.prefix;\n    }),\n    index: Ember.computed('_data.index', function () {\n      return this._data.index;\n    }),\n    startNumber: Ember.computed('_data.startNumber', function () {\n      return this._data.startNumber;\n    }),\n    endNumber: Ember.computed('_data.endNumber', function () {\n      return this._data.endNumber;\n    }),\n    currentNumber: Ember.computed('_data.currentNumber', function () {\n      return this._data.currentNumber;\n    }),\n    nextNumber: Ember.computed('_data.currentNumber', function () {\n      const currentNumber = this._data.currentNumber || 0;\n      return currentNumber + 1;\n    }),\n    nextNumberWithPrefix: Ember.computed('_data.currentNumber', '_data.prefix', function () {\n      const currentNumber = this._data.currentNumber || 0;\n      const nextNumber = currentNumber + 1;\n      return `${this.prefix}${nextNumber}`;\n    }),\n    currentNumberWithPrefix: Ember.computed('_data.current', '_data.prefix', function () {\n      return `${this.prefix}${this.currentNumber}`;\n    }),\n    remainingCount: Ember.computed('currentNumber', 'endNumber', function () {\n      const remainingCount = Math.max(0, this.endNumber - this.currentNumber);\n      if (remainingCount) {\n        return this.endNumber - this.currentNumber;\n      }\n      return 0;\n    })\n  });\n});","define(\"client/pods/extensions/apps/tw/e-invoices/tracks/numbers/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _model, R, RA, _nventor) {\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    crud: Ember.inject.service(),\n    init() {\n      this._super(...arguments);\n    },\n    prefix: Ember.computed('_data.prefix', function () {\n      return this._data.prefix;\n    }),\n    hasUnallocatedNumbers: Ember.computed('synced', '_data.{allocatedNumbers.[]}', function () {\n      const allocatedNumbers = this._data.allocatedNumbers || [];\n      const lastAllocatedNumber = R.pipe(R.map(R.path(['_data', 'endNumber'])), R.reject(RA.isNilOrEmpty), _nventor.default.safeLast)(allocatedNumbers);\n      const endNumber = this._data.endNumber || 0;\n      if (!endNumber) {\n        return false;\n      }\n      if (lastAllocatedNumber >= endNumber) {\n        return false;\n      }\n      return true;\n    }),\n    newAllocatedNumbers() {\n      const prefix = this.get('_data.prefix');\n      return this.dataManager.newRecord({\n        adapterName: 'extensions/apps/tw/eInvoices/tracks/numbers/allocated',\n        data: {\n          prefix,\n          batchKey: this._data.batchKey,\n          index: this._data.index,\n          mm: this._data.mm,\n          yyyy: this._data.yyyy,\n          isAllowed: true\n        }\n      });\n    },\n    addAllocatedNumbers(allocatedModel) {\n      const prefix = this.get('_data.prefix');\n      allocatedModel.setData('prefix', prefix);\n      const allocatedNumbers = this._data.allocatedNumbers || [];\n      allocatedNumbers.pushObject(allocatedModel);\n      this.set('_data.allocatedNumbers', allocatedNumbers);\n    },\n    allocatedNumbers: Ember.computed('synced', '_data.allocatedNumbers.[]', function () {\n      return this._data.allocatedNumbers || [];\n    }),\n    bookRange: Ember.computed('_data.{startNumber,endNumber}', function () {\n      const tracksEndNumber = R.pathOr(0, ['_data', 'endNumber'])(this);\n      let startNumber = R.pathOr(0, ['_data', 'startNumber'])(this);\n      const startNumberBookLabel = R.clone(startNumber);\n      const bookLabel = this.intl.t('tw_eInvoices_book');\n      const numberLabel = this.intl.t('number');\n      const range = [];\n      while (startNumber <= tracksEndNumber) {\n        const endNumber = startNumber + 49;\n        const book = (startNumber - startNumberBookLabel) / 50 + 1;\n        let startNumberString = startNumber.toString();\n        startNumberString = startNumberString.padStart(8, '0');\n        let endNumberString = endNumber.toString();\n        endNumberString = endNumberString.padStart(8, '0');\n        range.pushObject(Ember.Object.create({\n          startNumberLabel: `${bookLabel}: ${book} | ${numberLabel}: ${startNumberString}`,\n          startNumber: startNumber,\n          book: book,\n          endNumberLabel: `${bookLabel}: ${book} | ${numberLabel}: ${endNumberString}`,\n          endNumber: endNumber\n        }));\n        startNumber += 50;\n      }\n      return range;\n    })\n  });\n});","define(\"client/pods/extensions/apps/tw/hct/accounts/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters/extension/hct',\n    modelObj: _model.default,\n    idParam: 'account',\n    async findAll() {\n      const data = {};\n      const results = await this._super(data);\n      const convert = R.pipe(this._getAndSetDefault);\n      return convert(results);\n    },\n    _getAndSetDefault({\n      defaultTransporterAccount,\n      transporterAccounts\n    }) {\n      return R.map(account => {\n        account.isDefault = account.account === defaultTransporterAccount;\n        return account;\n      }, transporterAccounts);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/hct/accounts/filters/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters/extension/hct/all',\n    modelObj: _model.default,\n    idParam: 'value',\n    async findAll() {\n      const data = {};\n      const results = await this._super(data);\n      return this._convert(results);\n    },\n    _convert(results) {\n      const convert = R.pipe(R.pluck('transporterAccounts'), R.flatten, R.map(account => {\n        return {\n          value: account.account,\n          label: account.name,\n          weightRate: account.rate\n        };\n      }), R.prepend({\n        value: 'all',\n        label: 'all'\n      }));\n      return convert(results);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/hct/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters/extension/hct',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/hct/batches/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '1',\n        label: '1'\n      }, {\n        value: '2',\n        label: '2'\n      }, {\n        value: '3',\n        label: '3'\n      }, {\n        value: '4',\n        label: '4'\n      }, {\n        value: '5',\n        label: '5'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/hct/batches/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: '1',\n        label: '1'\n      }, {\n        value: '2',\n        label: '2'\n      }, {\n        value: '3',\n        label: '3'\n      }, {\n        value: '4',\n        label: '4'\n      }, {\n        value: '5',\n        label: '5'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/hct/print/waybills/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: '1'\n      }, {\n        value: 6,\n        label: '6'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/hct/print/waybills/positions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: '1'\n      }, {\n        value: 2,\n        label: '2'\n      }, {\n        value: 3,\n        label: '3'\n      }, {\n        value: 4,\n        label: '4'\n      }, {\n        value: 5,\n        label: '5'\n      }, {\n        value: 6,\n        label: '6'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/invoices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/tw-invoices',\n    modelObj: _model.default,\n    idParam: '_key',\n    createBatch({\n      payload\n    }) {\n      const path = this.getPath('resourcePath');\n      payload.batch = payload.batch.map(dirty => this.dataManager.getAdapter('extensions/apps/tw/invoices').serialize(dirty));\n      return this.server.call('POST', path, payload);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/invoicing-auto/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'auto',\n        label: ''\n      }, {\n        value: 'on',\n        label: 'on'\n      }, {\n        value: 'off',\n        label: 'off'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/invoicing/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'on',\n        label: 'on'\n      }, {\n        value: 'off',\n        label: 'off'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/kerry/accounts/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters/extension/kerry',\n    modelObj: _model.default,\n    idParam: 'account',\n    async findAll() {\n      const data = {};\n      const results = await this._super(data);\n      const convert = R.pipe(this._getAndSetDefault);\n      return convert(results);\n    },\n    _getAndSetDefault({\n      defaultTransporterAccount,\n      transporterAccounts\n    }) {\n      return R.map(account => {\n        account.isDefault = account.account === defaultTransporterAccount;\n        return account;\n      }, transporterAccounts);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/kerry/accounts/filters/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters/extension/kerry',\n    modelObj: _model.default,\n    idParam: 'value',\n    async findAll() {\n      const data = {};\n      const results = await this._super(data);\n      return this._convert(results);\n    },\n    _convert(results) {\n      const convert = R.pipe(R.prop('transporterAccounts'), R.map(account => {\n        return {\n          value: account.account,\n          label: account.name,\n          weightRate: account.rate\n        };\n      }), R.prepend({\n        value: 'all',\n        label: 'all'\n      }));\n      return convert(results);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/kerry/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters/extension/kerry',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/kerry/batches/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '1',\n        label: '1'\n      }, {\n        value: '2',\n        label: '2'\n      }, {\n        value: '3',\n        label: '3'\n      }, {\n        value: '4',\n        label: '4'\n      }, {\n        value: '5',\n        label: '5'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/kerry/batches/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: '1',\n        label: '1'\n      }, {\n        value: '2',\n        label: '2'\n      }, {\n        value: '3',\n        label: '3'\n      }, {\n        value: '4',\n        label: '4'\n      }, {\n        value: '5',\n        label: '5'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/payuni-payment-methods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'creditCard',\n        label: 'creditCard'\n      }, {\n        value: 'virtualAccount',\n        label: 'virtualAccount'\n      }, {\n        value: 'linePay',\n        label: 'linePay'\n      }, {\n        value: 'applePay',\n        label: 'applePay'\n      }, {\n        value: 'googlePay',\n        label: 'googlePay'\n      }, {\n        value: 'samsungPay',\n        label: 'samsungPay'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/payuni-seven-eleven/accounts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsThermosphereAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsThermosphereAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        account: 'unrefrigerated',\n        isDefault: true,\n        name: 'unrefrigerated',\n        rate: '0',\n        value: 'unrefrigerated',\n        label: 'unrefrigerated'\n      }, {\n        account: 'frozen',\n        isDefault: false,\n        name: 'frozen',\n        rate: '0',\n        value: 'frozen',\n        label: 'frozen'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/payuni-seven-eleven/type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwPayuniSevenElevenType extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwPayuniSevenElevenType,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'C2C',\n        label: 'C2C'\n      }, {\n        value: 'B2C',\n        label: 'B2C'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwSevenElevenAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/transporters/seven-eleven',\n    modelObj: ExtensionsAppsTwSevenElevenAdapter,\n    idParam: '_id'\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/lists/delivery-time/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsDeliveryTimeAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsDeliveryTimeAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'afterNoon',\n        label: 'after noon'\n      }, {\n        value: 'anytime',\n        label: 'anytime'\n      }, {\n        value: 'beforeNoon',\n        label: 'before noon'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/lists/package-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsPackageSizeAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsPackageSizeAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '60cm',\n        label: '60cm'\n      }, {\n        value: '90cm',\n        label: '90cm'\n      }, {\n        value: '120cm',\n        label: '120cm'\n      }, {\n        value: '150cm',\n        label: '150cm'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/lists/product-type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsProductTypeAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsProductTypeAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'general food',\n        label: 'general food'\n      }, {\n        value: 'specialty and local good',\n        label: 'specialty and local good'\n      }, {\n        value: 'alcoholic beverage / oil / vinegar / sauce',\n        label: 'alcoholic beverage / oil / vinegar / sauce'\n      }, {\n        value: 'grains, vegetables and fruits',\n        label: 'grains, vegetables and fruits'\n      }, {\n        value: 'seafood / meat',\n        label: 'seafood / meat'\n      }, {\n        value: 'computer, communication and consumer electronics',\n        label: 'computer, communication and consumer electronics'\n      }, {\n        value: 'household appliances',\n        label: 'household appliances'\n      }, {\n        value: 'clothing and accessories',\n        label: 'clothing and accessories'\n      }, {\n        value: 'daily necessities',\n        label: 'daily necessities'\n      }, {\n        value: 'makeup and cosmetics',\n        label: 'makeup and cosmetics'\n      }, {\n        value: 'dietary supplement',\n        label: 'dietary supplement'\n      }, {\n        value: 'medical supplies',\n        label: 'medical supplies'\n      }, {\n        value: 'pet supplies',\n        label: 'pet supplies'\n      }, {\n        value: 'printed products',\n        label: 'printed products'\n      }, {\n        value: 'other',\n        label: 'other'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","// import Adapter from '@ember-data/adapter'\n// import nventor from '../../../../../../../utils/nventor'\n// import AdapterMixin from '../../../../../../../mixins/adapters-new'\n// import OptionsModel from '../../../../../../options/model'\n\n// export default Adapter.extend(AdapterMixin, {\n//   modelObj: OptionsModel,\n//   idParam: false,\n//   findAll () {\n//     const data = [\n//       {\n//         value: 'once',\n//         label: 'once'\n//       },\n//       {\n//         value: 'everyday',\n//         label: 'every day'\n//       }\n//     ]\n\n//     return nventor.resolve(data)\n//   }\n// })\ndefine(\"client/pods/extensions/apps/tw/seven-eleven/lists/send-email-frequency/adapter\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/lists/thermosphere/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwSevenElevenListsThermosphereAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwSevenElevenListsThermosphereAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        account: 'unrefrigerated',\n        isDefault: true,\n        name: 'unrefrigerated',\n        rate: '0',\n        value: 'unrefrigerated',\n        label: 'unrefrigerated'\n      }, {\n        account: 'frozen',\n        isDefault: true,\n        name: 'frozen',\n        rate: '0',\n        value: 'frozen',\n        label: 'frozen'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/lists/type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsThermosphereAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsThermosphereAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'C2C',\n        label: 'C2C'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-b2c/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwSevenElevenListsWaybillPrintPerPageAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwSevenElevenListsWaybillPrintPerPageAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: 1\n      }, {\n        // this is only for b2c\n        value: 6,\n        label: 6\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/lists/waybill-print-per-page-c2c/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwSevenElevenListsWaybillPrintPerPageAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwSevenElevenListsWaybillPrintPerPageAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: 1\n      }, {\n        value: 4,\n        label: 4\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/lists/waybill-print-per-page/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwSevenElevenListsWaybillPrintPerPageAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwSevenElevenListsWaybillPrintPerPageAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: 1\n      }, {\n        value: 4,\n        label: 4\n      }, {\n        // this is only for b2c\n        value: 6,\n        label: `6 (${this.intl.t('only for B2C')})`\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/lists/waybill-print-type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwSevenElevenListsWaybillPrintTypeAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwSevenElevenListsWaybillPrintTypeAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'twoPerPage',\n        label: 'two per page'\n      }, {\n        value: 'threePerPage',\n        label: 'three per page'\n      }, {\n        value: 'thermal',\n        label: 'thermal'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/seven-eleven/notification/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwSevenElevenNotificationAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/transporters/seven-eleven/notifications',\n    modelObj: ExtensionsAppsTwSevenElevenNotificationAdapter,\n    idParam: '_id'\n  });\n});","define(\"client/pods/extensions/apps/tw/t-cat/accounts/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters/extension/t-cat',\n    modelObj: _model.default,\n    idParam: 'account',\n    async findAll() {\n      const data = {};\n      const results = await this._super(data);\n      const convert = R.pipe(this._getAndSetDefault);\n      return convert(results);\n    },\n    _getAndSetDefault({\n      defaultTransporterAccount,\n      transporterAccounts\n    }) {\n      return R.map(account => {\n        account.isDefault = account.account === defaultTransporterAccount;\n        return account;\n      }, transporterAccounts);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/t-cat/accounts/filters/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters/extension/t-cat/all',\n    modelObj: _model.default,\n    idParam: 'value',\n    async findAll() {\n      const data = {};\n      const results = await this._super(data);\n      return this._convert(results);\n    },\n    _convert(results) {\n      const convert = R.pipe(R.map(transporter => {\n        return R.pipe(R.pathOr([], ['persons']), R.map(R.pathOr([], ['details'])), R.flatten, R.filter(R.pathEq(['transporterKey'], 'transporterAccount')))(transporter);\n      }), R.flatten, R.map(account => {\n        return {\n          value: account.value,\n          label: account.value\n        };\n      }), R.prepend({\n        value: 'all',\n        label: 'all'\n      }));\n      return convert(results);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/t-cat/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/contacts/transporters/extension/t-cat',\n    modelObj: ExtensionsAppsTwTCatAdapter,\n    idParam: false\n  });\n});","define(\"client/pods/extensions/apps/tw/t-cat/lists/delivery-time/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsDeliveryTimeAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsDeliveryTimeAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'afterNoon',\n        label: 'after noon'\n      }, {\n        value: 'anytime',\n        label: 'anytime'\n      }, {\n        value: 'beforeNoon',\n        label: 'before noon'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/t-cat/lists/package-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsPackageSizeAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsPackageSizeAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '60cm',\n        label: '60cm'\n      }, {\n        value: '90cm',\n        label: '90cm'\n      }, {\n        value: '120cm',\n        label: '120cm'\n      }, {\n        value: '150cm',\n        label: '150cm'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/t-cat/lists/product-type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsProductTypeAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsProductTypeAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'general food',\n        label: 'general food'\n      }, {\n        value: 'specialty and local good',\n        label: 'specialty and local good'\n      }, {\n        value: 'alcoholic beverage / oil / vinegar / sauce',\n        label: 'alcoholic beverage / oil / vinegar / sauce'\n      }, {\n        value: 'grains, vegetables and fruits',\n        label: 'grains, vegetables and fruits'\n      }, {\n        value: 'seafood / meat',\n        label: 'seafood / meat'\n      }, {\n        value: 'computer, communication and consumer electronics',\n        label: 'computer, communication and consumer electronics'\n      }, {\n        value: 'household appliances',\n        label: 'household appliances'\n      }, {\n        value: 'clothing and accessories',\n        label: 'clothing and accessories'\n      }, {\n        value: 'daily necessities',\n        label: 'daily necessities'\n      }, {\n        value: 'makeup and cosmetics',\n        label: 'makeup and cosmetics'\n      }, {\n        value: 'dietary supplement',\n        label: 'dietary supplement'\n      }, {\n        value: 'medical supplies',\n        label: 'medical supplies'\n      }, {\n        value: 'pet supplies',\n        label: 'pet supplies'\n      }, {\n        value: 'printed products',\n        label: 'printed products'\n      }, {\n        value: 'other',\n        label: 'other'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/t-cat/lists/thermosphere/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsThermosphereAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsThermosphereAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        account: 'unrefrigerated',\n        isDefault: true,\n        name: 'unrefrigerated',\n        rate: '0',\n        value: 'unrefrigerated',\n        label: 'unrefrigerated'\n      }, {\n        account: 'refrigerated',\n        isDefault: true,\n        name: 'refrigerated',\n        rate: '0',\n        value: 'refrigerated',\n        label: 'refrigerated'\n      }, {\n        account: 'frozen',\n        isDefault: true,\n        name: 'frozen',\n        rate: '0',\n        value: 'frozen',\n        label: 'frozen'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/t-cat/lists/waybill-print-type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ExtensionsAppsTwTCatListsWaybillPrintTypeAdapter extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ExtensionsAppsTwTCatListsWaybillPrintTypeAdapter,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'twoPerPage',\n        label: 'two per page'\n      }, {\n        value: 'threePerPage',\n        label: 'three per page'\n      }, {\n        value: 'thermal',\n        label: 'thermal'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/apps/tw/view/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/extensions/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'invoice',\n        label: 'by invoices'\n      }, {\n        value: 'document',\n        label: 'by documents'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: 'extName',\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        label: 'Wildcape',\n        action: 'selectExtension',\n        extName: 'wildcape'\n      }, {\n        label: 'Gowild',\n        action: 'selectExtension',\n        extName: 'gowild'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/lists/submenu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'new orders',\n        action: 'fetch'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/extensions/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/extensions/service\", [\"exports\", \"client/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import AjaxMixin from '../../mixins/ajax'\n  /**\n   * performs and manages connections to servers\n   */\n  var _default = _exports.default = Ember.Service.extend({\n    adapterName: 'extensions/apps/tw/e-invoices/to-issue',\n    filtersAdapterName: 'extensions/apps/tw/e-invoices/filters',\n    host: _environment.default.APP.serverUrl\n  });\n});","define(\"client/pods/facebook/pages/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FacebookPage extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/facebook/pages',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/facebook/pixels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/facebook/pixels',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/faqs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/faqs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/faqs/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        question: '',\n        answer: '',\n        display: true\n      };\n    }\n  });\n});","define(\"client/pods/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/filters/all/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        _key: 'all',\n        value: 'all',\n        name: 'all',\n        label: 'all'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/filters/count/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 10,\n        label: '10'\n      }, {\n        value: 20,\n        label: '20'\n      }, {\n        value: 30,\n        label: '30'\n      }, {\n        value: 40,\n        label: '40'\n      }, {\n        value: 50,\n        label: '50'\n      }, {\n        value: 60,\n        label: '60'\n      }, {\n        value: 70,\n        label: '70'\n      }, {\n        value: 80,\n        label: '80'\n      }, {\n        value: 90,\n        label: '90'\n      }, {\n        value: 100,\n        label: '100'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/filters/criterias/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"client/constants\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'greater than or equal to',\n        value: _constants.default.automationsCriterias.greaterThanOrEqualTo\n      }, {\n        label: 'greater than',\n        value: _constants.default.automationsCriterias.greaterThan\n      }, {\n        label: 'is between',\n        value: _constants.default.automationsCriterias.isBetween\n      }, {\n        label: 'less than or equal to',\n        value: _constants.default.automationsCriterias.lessThanOrEqualTo\n      }, {\n        label: 'less than',\n        value: _constants.default.automationsCriterias.lessThan\n      }, {\n        label: 'equals',\n        value: _constants.default.automationsCriterias.equals\n        // }, {\n        //   label: 'not equals',\n        //   value: constants.automationsCriterias.notEquals\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/filters/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"client/pods/base/model\", \"client/utils/nventor\", \"client/pods/filters/sort/model\"], function (_exports, R, RA, R_, _model, _nventor, _model2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _obj = {\n    defaults() {\n      return {\n        page: 1,\n        count: 20\n      };\n    },\n    populate(data = {}) {\n      this._super(...arguments);\n    },\n    reset(options = {}) {\n      this._super(...arguments);\n      this.setData('query', '');\n      this.set('currentQuerySubmitted', '');\n      this.set('results', []);\n    },\n    /**\n     * Request data for a search bar search: the query on top of reset filters,\n     * so criteria picked in advanced search do not narrow it.\n     * Paging and sort are kept so the results table stays consistent.\n     * @returns {Object}\n     */\n    serializeSearchBarData() {\n      const searchBarKeptData = R.pick(['query', 'page', 'count', 'sort'])(this._data);\n      const searchBarData = R.mergeRight(this.getResetData(), searchBarKeptData);\n      return R.clone(this._serialize(searchBarData));\n    },\n    transformSort(rawData) {\n      const sort = R.propOr([], 'sort')(rawData);\n      if (!R.isEmpty(sort)) {\n        rawData.sort = R.map(sortData => _nventor.default.createModel(_model2.default, sortData))(sort);\n      }\n      return rawData;\n    },\n    // const localecompare = R.curry((getter, a, b) => {\n    //   const aV = getter(a)\n    //   const bV = getter(b)\n    //   return bV.localeCompare(aV)\n    // })\n\n    // const alice = {\n    //   name: 'alice',\n    //   age: 40\n    // };\n    // const bob = {\n    //   name: 'bob',\n    //   age: 30\n    // };\n    // const clara = {\n    //   name: 'Blara',\n    //   age: 30\n    // };\n    // const people = [clara, bob, alice];\n    // const ageNameSort = R.sortWith([\n    //   R.descend(R.prop('age')),\n    //   lc(R.prop('name'))\n    // ]);\n    // ageNameSort(people); //=> [alice, clara, bob]\n\n    getRamdaSortWithArray(propPrefix = '_data.') {\n      const sortArray = this?._data?.sort || [];\n      return R.pipe(R.map(sortByObject => {\n        const sortBy = sortByObject?.by;\n        if (!sortBy) {\n          return false;\n        }\n        const prop = `${propPrefix}${sortBy}`;\n        const safeGetter = data => {\n          const value = R_.dotPathOr('', prop)(data);\n          if (R.isNil(value)) {\n            return '';\n          }\n          if (R.is(String, value)) {\n            return value;\n          }\n          if (R.is(Number, value) || R.is(Boolean, value)) {\n            return `${value}`;\n          }\n          return '';\n        };\n        if (R.toLower(sortByObject?.direction || '') === 'desc') {\n          return _nventor.default.sortTextAndNumericDescendingWithGetter(safeGetter);\n        }\n        return _nventor.default.sortTextAndNumericAscendingWithGetter(safeGetter);\n      }), R.reject(R.equals(false)))(sortArray);\n    },\n    addSort(by, direction, {\n      toNumber = false,\n      paramPrefix = '',\n      keepParamPrefix = false\n    } = {}) {\n      return this._setSortBy('add', by, direction, {\n        toNumber,\n        paramPrefix,\n        keepParamPrefix\n      });\n    },\n    replaceSort(by, direction, {\n      toNumber = false,\n      paramPrefix = '',\n      keepParamPrefix = false\n    } = {}) {\n      return this._setSortBy('replace', by, direction, {\n        toNumber,\n        paramPrefix,\n        keepParamPrefix\n      });\n    },\n    addSortNoModel(by, direction, {\n      toNumber = false,\n      paramPrefix = '',\n      keepParamPrefix = false\n    } = {}) {\n      if (RA.isNilOrEmpty(by)) {\n        return;\n      }\n      if (RA.isNilOrEmpty(direction)) {\n        return;\n      }\n      const sortArray = this?._data?.sort || [];\n      sortArray.pushObject({\n        by,\n        direction,\n        toNumber,\n        paramPrefix,\n        keepParamPrefix\n      });\n      this.setData('sort', sortArray);\n    },\n    replaceSortNoModel(by, direction, {\n      toNumber = false,\n      paramPrefix = '',\n      keepParamPrefix = false\n    } = {}) {\n      this.setData('sort', []);\n      if (RA.isNilOrEmpty(by)) {\n        return;\n      }\n      if (RA.isNilOrEmpty(direction)) {\n        return;\n      }\n      this.setData('sort', [{\n        by,\n        direction,\n        toNumber,\n        paramPrefix,\n        keepParamPrefix\n      }]);\n    },\n    _setSortBy(method, by, direction, {\n      toNumber,\n      paramPrefix,\n      keepParamPrefix\n    }) {\n      // this.set('direction', direction)\n      let sortByObject = this.getSortByObject(by);\n      let sort = [];\n      if (method === 'add') {\n        sort = this?._data?.sort || [];\n        if (sortByObject) {\n          if (direction) {\n            sortByObject.setData('direction', direction);\n            sortByObject.setData('toNumber', toNumber);\n            sortByObject.setData('paramPrefix', paramPrefix);\n            sortByObject.setData('keepParamPrefix', keepParamPrefix);\n          } else {\n            sort.removeObject(sortByObject);\n          }\n        } else {\n          sortByObject = _nventor.default.createModel(_model2.default, {\n            by,\n            direction,\n            toNumber,\n            paramPrefix,\n            keepParamPrefix\n          });\n        }\n      } else {\n        sortByObject = _nventor.default.createModel(_model2.default, {\n          by,\n          direction,\n          toNumber,\n          paramPrefix,\n          keepParamPrefix\n        });\n      }\n      if (direction) {\n        sort.pushObject(sortByObject);\n      }\n      return this.setData('sort', sort);\n    },\n    getSortByObject(by) {\n      const sort = this?._data?.sort || [];\n      const found = R.find(R.pathEq(['_data', 'by'], by))(sort);\n      if (found) {\n        return found;\n      }\n      return '';\n    },\n    getPropLength(prop) {\n      const value = this.get(prop) || [];\n      return value.length;\n    },\n    deselectParam(param) {\n      this.setData(param, '');\n    },\n    statusesCount: Ember.computed('_data.statuses.[]', function () {\n      return this.getPropLength('_data.statuses');\n    }),\n    hasNewSearchResults: Ember.computed('fullCount', 'previousQueries.[]', 'currentQuerySubmitted', 'lastSearchSettings.appendPath', function () {\n      const fullCount = Number(this.fullCount) || 0;\n      if (fullCount <= 0) {\n        return false;\n      }\n\n      // advanced search always submits with an empty query\n      const isAdvancedSearch = this.lastSearchSettings?.appendPath === '/advanced';\n      if (isAdvancedSearch) {\n        return true;\n      }\n      const currentQuerySubmitted = this.currentQuerySubmitted || '';\n      if (!currentQuerySubmitted) {\n        return false;\n      }\n      const previousQueries = this.previousQueries || [];\n      const lastQuery = R.pathOr({}, [0])(previousQueries);\n      if (!lastQuery) {\n        return false;\n      }\n      return lastQuery === currentQuerySubmitted;\n    })\n  }, _applyDecoratedDescriptor(_obj, \"deselectParam\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"deselectParam\"), _obj), _obj));\n});","define(\"client/pods/filters/sort-direction/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'ASC',\n        label: 'earliest'\n      }, {\n        value: 'DESC',\n        label: 'latest'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/filters/sort/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/flows/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../utils/nventor'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    applicationService: Ember.inject.service('application'),\n    resourcePath: 'api/protected/flows',\n    modelObj: _model.default,\n    idParam: '_id',\n    serialize(model) {\n      const data = this._super(model);\n      data.flowsCreatedEmailCopyTo = this.applicationService.splitToArray(data.flowsCreatedEmailCopyTo);\n      data.steps = R.map(step => {\n        const type = step.type;\n        const actionType = step.actionType;\n        if (R.equals(type, 'ACTION') && R.equals(actionType, 'generatePromoCode')) {\n          const defaults = R.pathOr({}, ['actionData', 'defaults'])(step);\n          defaults.emails = this.applicationService.splitToArray(defaults.emails || '');\n          defaults.telephones = this.applicationService.splitToArray(defaults.telephones || '');\n        }\n        return step;\n      })(data.steps || []);\n      return data;\n    }\n  });\n});","define(\"client/pods/flows/criterias/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/automations/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","// import BaseModel from '../../base/model'\n// import constants from '../../../constants'\n\n// export default BaseModel.extend({\n//   defaults () {\n//     return {\n//       index: '',\n//       criteria: constants.automationsCriterias.greaterThanOrEqualTo,\n//       itemKey: '',\n//       itemCode: '',\n//       when: constants.automationsWhen.orderValue,\n//       whenItemQtyType: '',\n//       whenItemQtyTags: '',\n//       thenAction: false,\n//       value: '',\n//       status: constants.status.active\n//     }\n//   }\n// })\ndefine(\"client/pods/flows/criterias/model\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/flows/data/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/flows/data',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/flows/data/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/data/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/flows/data/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        name: '',\n        email: '',\n        telephone: '',\n        address: '',\n        gender: '',\n        birthday: '',\n        custom: {},\n        match: ['all'],\n        statuses: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/flows/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/flows/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        name: '',\n        greeting: '',\n        shopOrWebsite: '',\n        eventTypes: [],\n        eventDisplays: [],\n        statuses: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }],\n        type: ''\n      };\n    },\n    eventTypesCount: Ember.computed('_data.eventTypes.[]', function () {\n      return this.getPropLength('_data.eventTypes');\n    }),\n    eventDisplaysCount: Ember.computed('_data.eventDisplays.[]', function () {\n      return this.getPropLength('_data.eventDisplays');\n    })\n  });\n});","define(\"client/pods/flows/form-steps/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/form-steps/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/flows/form-steps/model\", [\"exports\", \"ramda\", \"client/pods/base/model\", \"client/utils/nventor\"], function (_exports, R, _model, _nventor) {\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    defaults() {\n      return {\n        steps: [],\n        index: 0,\n        nextButtonLabel: 'next page',\n        previousButtonLabel: 'previous page'\n      };\n    },\n    populate(data, attrs) {\n      data.steps = this._transformSteps(data.steps || []);\n      this._super(data, attrs);\n    },\n    _transformSteps(steps) {\n      return steps.map(stepData => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'flows/steps',\n          data: stepData\n        });\n      });\n    }\n  });\n});","define(\"client/pods/flows/lists/actions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {}\n    } = {}) {\n      data = [{\n        label: 'flow_generate_promo_code',\n        value: 'generatePromoCode'\n      }, {\n        label: 'flow_game',\n        value: 'games'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/actions/games/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {}\n    } = {}) {\n      data = [{\n        label: 'flow_scratch_card',\n        value: 'gameScratchCard'\n      }, {\n        label: 'flow_wheel_of_fortune',\n        value: 'gameWheelOfFortune'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/actions/games/scratch-card/background-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {}\n    } = {}) {\n      data = [{\n        label: 'flow_scratch_card_background_color',\n        value: 'backgroundColor'\n      }, {\n        label: 'flow_scratch_card_background_image',\n        value: 'backgroundImage'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/data-keys/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'name',\n        label: 'name',\n        dataType: 'text'\n      }, {\n        value: 'email',\n        label: 'email',\n        dataType: 'email'\n      }, {\n        value: 'telephone',\n        label: 'telephone',\n        dataType: 'telephone'\n      }, {\n        value: 'address',\n        label: 'address',\n        dataType: 'text'\n      }, {\n        value: 'gender',\n        label: 'gender',\n        dataType: 'text'\n      }, {\n        value: 'birthday',\n        label: 'birthday',\n        dataType: 'text'\n      }, {\n        value: 'date',\n        label: 'date',\n        dataType: 'date'\n      }, {\n        value: 'custom',\n        label: 'custom',\n        dataType: 'text'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/editor-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../../utils/nventor'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const list = [{\n        value: 'details',\n        label: 'details',\n        resource: 'api/protected/flows/sub-panels-edit/main',\n        component: 'flows/flows-editor/main-editor',\n        tabType: 'reuseSubTab'\n      }, {\n        value: 'data',\n        label: 'data',\n        resource: 'api/protected/flows/sub-panels-edit/data',\n        component: 'flows/flows-editor/data-display',\n        isDisplayOnly: true,\n        tabType: 'replaceSubTab'\n      }];\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/flows/lists/emails-send-conditions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'successful',\n        label: 'successful'\n      }, {\n        value: 'unsuccessful',\n        label: 'unsuccessful'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/events-display/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {}\n    } = {}) {\n      data = [{\n        value: 'popupMiddle',\n        label: 'flow_popup_middle'\n      }, {\n        value: 'popup',\n        label: 'flow_popup'\n      }, {\n        value: 'message',\n        label: 'flow_chat_message'\n        // }, {\n        //   value: 'autoRun',\n        //   label: 'flow_auto_run'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/events/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {}\n    } = {}) {\n      data = [{\n        //   value: 'menu',\n        //   label: 'menu item',\n        //   category: 'bot'\n        // }, {\n        value: 'view',\n        label: 'page view',\n        category: 'page',\n        hasCriterias: false\n      }, {\n        //   value: 'click',\n        //   label: 'button click',\n        //   category: 'page'\n        // }, {\n        value: 'signup',\n        label: 'signup',\n        category: 'event',\n        hasCriterias: false\n      }, {\n        //   value: 'login',  //welcoming people back\n        //   label: 'login',\n        //   category: 'event'\n        // }, {\n        // // @TODO: add retargeting options. eg. if added to cart,\n        // // @TODO: then come back after x days, give discount\n        //   value: 'addToCart',\n        //   label: 'add to cart',\n        //   category: 'event'\n        // }, {\n        //   value: 'checkoutBefore',\n        //   label: 'before checkout',\n        //   category: 'event'\n        // }, {\n        value: 'checkoutAfter',\n        label: 'after checkout',\n        category: 'event',\n        hasCriterias: true\n        // }, {\n        //   value: 'botOnly',\n        //   label: 'bot only',\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/flow-key-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'website',\n        label: 'website'\n      }, {\n        value: 'shop',\n        label: 'shop'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/flows/menu/actions/dash',\n          component: 'flows/panels-dash',\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'dash',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }, {\n          resource: 'api/protected/flows/menu/actions/new',\n          component: 'flows/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'new',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n          // }, {\n          //   resource: 'api/protected/flows/menu/actions/import',\n          //   component: 'importer/data-import',\n          //   adapterName: 'flows',\n          //   label: 'import',\n          //   action: 'import'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/flows/lists/prizes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {}\n    } = {}) {\n      data = [{\n        value: 'generatePromoCode',\n        label: 'promo code'\n        // }, {\n        //   value: 'product',\n        //   label: 'product'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/steps/presets/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {}\n    } = {}) {\n      const collectUserInfoSteps = [{\n        isPreset: true,\n        isPresetLocked: true,\n        stepType: 'text',\n        text: 'welcome',\n        type: 'TEXT',\n        // hasReply: false,\n        isReplyRequired: false\n        // hasChoices: false\n      }, {\n        isPreset: true,\n        isPresetLocked: true,\n        stepType: 'replyText',\n        key: 'name',\n        text: 'name',\n        type: 'QUICK_REPLY',\n        dataKey: 'name',\n        dataType: 'text',\n        // hasReply: true,\n        isReplyRequired: true\n        // hasChoices: false\n      }, {\n        isPreset: true,\n        isPresetLocked: true,\n        stepType: 'replyText',\n        key: 'telephone',\n        text: 'telephone',\n        dataKey: 'telephone',\n        dataType: 'mobile',\n        type: 'QUICK_REPLY',\n        // hasReply: true,\n        isReplyRequired: true\n        // hasChoices: false\n      }, {\n        isPreset: true,\n        isPresetLocked: true,\n        stepType: 'replyText',\n        key: 'email',\n        text: 'email',\n        dataKey: 'email',\n        dataType: 'email',\n        type: 'QUICK_REPLY',\n        // hasReply: true,\n        isReplyRequired: true\n        // hasChoices: false\n      }];\n      const stepsForPromo = R.clone(collectUserInfoSteps);\n      stepsForPromo.pushObject({\n        isPreset: true,\n        isPresetLocked: true,\n        text: 'generating promo code',\n        type: 'ACTION',\n        dataType: '',\n        key: 'promo code',\n        stepType: 'action',\n        // hasReply: false,\n        isReplyRequired: false,\n        // hasChoices: false,\n        autoTriggerAction: true,\n        actionType: 'generatePromoCode',\n        actionData: {\n          // label: 'generate promo code',\n          defaults: {\n            dateStartZ: '',\n            dateEndZ: '',\n            discountAmount: '',\n            status: 'active',\n            type: 'rate',\n            usageLimit: 1,\n            hasUsageLimitPerPerson: false,\n            usageLimitPerPerson: ''\n          }\n        }\n      });\n      const stepsForGame = R.clone(collectUserInfoSteps);\n      stepsForGame.pushObject({\n        isPreset: true,\n        isPresetLocked: true,\n        text: 'starting game',\n        type: 'ACTION',\n        dataType: '',\n        stepType: 'action',\n        // hasReply: false,\n        isReplyRequired: false,\n        // hasChoices: false,\n        hasAction: true,\n        autoTriggerAction: true,\n        actionType: 'games',\n        gameType: 'gameScratchCard',\n        backgroundType: 'backgroundColor',\n        actionData: {\n          // label: 'wheel of fortune',\n          numberOfPlays: 1,\n          prizes: []\n        }\n      });\n      data = [{\n        isPreset: true,\n        value: 'generatePromoCode',\n        label: 'flow_collect_user_information_generate_and_email_promo_code',\n        steps: stepsForPromo\n      }, {\n        isPreset: true,\n        value: 'games',\n        label: 'flow_collect_user_information_and_play_a_game',\n        steps: stepsForGame\n      }, {\n        isPreset: false,\n        value: 'text',\n        label: 'flow_message',\n        steps: [{\n          isPreset: false,\n          isPresetLocked: false,\n          text: 'message',\n          type: 'TEXT',\n          stepType: 'text',\n          dataType: '',\n          isReplyRequired: false\n          // hasReply: false,\n          // hasChoices: false\n        }]\n      }, {\n        isPreset: false,\n        label: 'flow_reply',\n        value: 'replyText',\n        steps: [{\n          isPreset: false,\n          isPresetLocked: false,\n          text: 'name',\n          type: 'QUICK_REPLY',\n          stepType: 'replyText',\n          dataType: 'text',\n          isReplyRequired: true\n          // hasReply: true,\n          // hasChoices: false\n        }]\n      }, {\n        isPreset: false,\n        isPresetLocked: false,\n        value: 'replyChoices',\n        label: 'flow_reply_choices',\n        steps: [{\n          text: 'email',\n          type: 'QUICK_REPLY',\n          stepType: 'replyChoices',\n          isReplyRequired: true,\n          dataType: 'email',\n          // hasReply: true,\n          // hasChoices: true,\n          choices: []\n        }]\n      }, {\n        isPreset: false,\n        isPresetLocked: false,\n        value: 'action',\n        label: 'flow_generate_promo_code',\n        steps: [{\n          text: 'generating promo code',\n          type: 'ACTION',\n          stepType: 'action',\n          actionType: 'generatePromoCode',\n          isReplyRequired: false,\n          autoTriggerAction: true,\n          dataType: 'action',\n          key: 'promo code',\n          // hasReply: false,\n          // hasChoices: false,\n          choices: [],\n          actionData: {}\n        }]\n      }, {\n        isPreset: false,\n        isPresetLocked: false,\n        value: 'action',\n        label: 'flow_wheel_of_fortune',\n        steps: [{\n          text: 'start game',\n          type: 'ACTION',\n          stepType: 'action',\n          actionType: 'games',\n          gameType: 'gameScratchCard',\n          autoTriggerAction: true,\n          isReplyRequired: false,\n          dataType: 'action',\n          // hasReply: false,\n          // hasChoices: false,\n          choices: [],\n          actionData: {}\n        }]\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/steps/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {}\n    } = {}) {\n      data = [{\n        value: 'text',\n        label: 'flow_message',\n        isPreset: false,\n        isPresetLocked: false,\n        text: 'message',\n        type: 'TEXT',\n        stepType: 'text',\n        dataType: '',\n        isReplyRequired: false\n        // hasReply: false,\n        // hasChoices: false\n      }, {\n        label: 'flow_reply',\n        value: 'replyText',\n        isPreset: false,\n        isPresetLocked: false,\n        text: 'name',\n        type: 'QUICK_REPLY',\n        stepType: 'replyText',\n        dataType: 'text',\n        isReplyRequired: true\n        // hasReply: true,\n        // hasChoices: false\n      }, {\n        isPreset: false,\n        isPresetLocked: false,\n        value: 'replyChoices',\n        label: 'flow_reply_choices',\n        text: 'email',\n        type: 'QUICK_REPLY',\n        stepType: 'replyChoices',\n        isReplyRequired: true,\n        dataType: 'email',\n        // hasReply: true,\n        // hasChoices: true,\n        choices: []\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/lists/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {}\n    } = {}) {\n      data = [{\n        value: 'notification',\n        label: 'notification'\n      }, {\n        value: 'bot',\n        label: 'bot'\n      }, {\n        value: 'form',\n        label: 'flow_form'\n      }, {\n        value: 'scrollingNotification',\n        label: 'scrolling-notification'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/flows/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/utils/nventor\"], function (_exports, R, RA, _model, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _obj = {\n    defaults() {\n      return {\n        name: '',\n        dateStartZ: '',\n        dateEndZ: '',\n        eventHasCriterias: false,\n        type: 'bot',\n        eventType: 'view',\n        eventCategory: 'page',\n        eventDisplay: 'message',\n        eventCriterias: [],\n        eventHasLimitsTotal: false,\n        eventHasLimitsTotalQty: 0,\n        eventHasLimitsPerOrder: true,\n        eventHasLimitsPerOrderQty: 1,\n        eventHasLimitsPerPerson: false,\n        eventHasLimitsPerPersonQty: 0,\n        scrollingMessageLink: {},\n        scrollingMessageTimer: 5,\n        steps: [],\n        status: 'active',\n        // emailsSendOnlyIfHasResults: false,\n        emailsAlsoSendToCustomer: false,\n        emailsSendWhenSuccessful: false,\n        flowsCreatedEmailSuccessfulTitle: '',\n        flowsCreatedEmailSuccessfulMessage: '',\n        flowsCreatedEmailCopyTo: '',\n        flowKeyType: 'website',\n        formSteps: [],\n        formTitle: '',\n        lastButtonLabel: 'submit button text'\n      };\n    },\n    populate(data, attrs) {\n      data.steps = this._transformSteps(data);\n      data.eventCriterias = this._transformCriterias(data);\n      data.flowsCreatedEmailCopyTo = this.emails.joinAsString(data.flowsCreatedEmailCopyTo);\n      data.formSteps = this._transformFormSteps(data);\n      this._super(data, attrs);\n    },\n    _transformSteps(data) {\n      return R.pipe(R.propOr([], 'steps'), R.map(step => {\n        return this._getStepModel(step);\n      }))(data);\n    },\n    _transformCriterias(data) {\n      return R.pipe(R.propOr([], 'eventCriterias'), RA.mapIndexed((criteria, index) => {\n        criteria.index = index;\n        return this.dataManager.setAsRecord({\n          adapterName: 'flows/criterias',\n          data: criteria\n        });\n      }))(data);\n    },\n    _transformFormSteps(data) {\n      return R.pipe(R.propOr([], 'formSteps'), R.map(formStep => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'flows/formSteps',\n          data: formStep\n        });\n      }))(data);\n    },\n    isNotification: Ember.computed('_data.type', function () {\n      const type = this?._data?.type || 'bot';\n      if (type === 'notification') {\n        return true;\n      }\n      return false;\n    }),\n    isForm: Ember.computed('_data.type', function () {\n      const type = this?._data?.type || 'bot';\n      if (type === 'form') {\n        return true;\n      }\n      return false;\n    }),\n    isScrollingNotification: Ember.computed('_data.type', function () {\n      const type = this?._data?.type || 'bot';\n      if (type === 'scrollingNotification') {\n        return true;\n      }\n      return false;\n    }),\n    isSignUpEvent: Ember.computed('_data.eventType', function () {\n      const eventType = this?._data?.eventType || '';\n      if (eventType === 'signup') {\n        return true;\n      }\n      return false;\n    }),\n    setupCriterias(eventHasCriterias) {\n      this.getData('eventCriterias', []);\n      if (eventHasCriterias) {\n        this.addCriteria();\n      }\n      return this.getData('eventCriterias');\n    },\n    addCriteria(criteria = {}) {\n      const eventCriterias = this.setData('eventCriterias') || [];\n      criteria.index = eventCriterias.length;\n      const eventCriteria = this.dataManager.setAsRecord({\n        adapterName: 'flows/criterias',\n        data: criteria\n      });\n      eventCriterias.pushObject(eventCriteria);\n      this.setData('eventCriterias', eventCriterias);\n      return criteria;\n    },\n    selectType(type) {\n      if (type?._data?.value === 'notification') {\n        this.setData('steps', []);\n      }\n      if (type?._data?.value === 'form') {\n        this.setData('steps', []);\n        this.setData('eventType', '');\n        this.setData('eventDisplay', '');\n        this.setData('eventCategory', '');\n        this.setData('flowKeyType', 'website');\n      }\n      if (type?._data?.value === 'scrollingNotification') {\n        this.setData('steps', []);\n        this.setData('eventType', '');\n        this.setData('eventDisplay', '');\n        this.setData('eventCategory', '');\n      }\n\n      // const category = eventthis.getData('category')\n      // this.setData('eventCategory', category)\n\n      // if (!eventModel.getData('hasCriterias')) {\n      //   this.setData('eventHasCriterias', false)\n      //   this.setData('eventCriterias', [])\n      // }\n    },\n    selectEventType(eventModel) {\n      const category = eventModel.getData('category');\n      this.setData('eventCategory', category);\n      const eventType = this.getData('eventType');\n      this.setData('eventHasLimitsPerPerson', false);\n      this.setData('eventHasLimitsPerPersonQty', '');\n      if (R.equals(eventType, 'view')) {\n        this.setData('eventHasLimitsPerOrder', false);\n        this.setData('eventHasLimitsPerOrderQty', '');\n      }\n      if (R.equals(eventType, 'signup')) {\n        this.setData('eventHasLimitsTotal', false);\n        this.setData('eventHasLimitsTotalQty', '');\n        this.setData('eventHasLimitsPerOrder', false);\n        this.setData('eventHasLimitsPerOrderQty', '');\n        this.setData('eventHasLimitsPerPerson', true);\n        this.setData('eventHasLimitsPerPersonQty', 1);\n        this.setData('eventHasLimitsTotal', false);\n        this.setData('eventHasLimitsTotalQty', '');\n      }\n      if (!eventModel.getData('hasCriterias')) {\n        this.setData('eventHasCriterias', false);\n        this.setData('eventCriterias', []);\n      }\n    },\n    setupNewSteps(typeModel, steps) {\n      steps = R.map(step => {\n        return R.clone(step);\n      })(steps);\n      const parentStepLabel = typeModel.getData('label');\n      let currentIndex = this.getStepLastIndex();\n      const parentIndex = this.getStepLastParentIndex() + 1;\n      return R.map(step => {\n        currentIndex = currentIndex + 1;\n        step.index = currentIndex;\n        step.stepId = _nventor.default.random.alphaNum(17);\n        step.parentIndex = parentIndex;\n        step.parentStepLabel = parentStepLabel;\n        step.isValidated = false;\n        const stepModel = this._getStepModel(step);\n        if (step.actionType === 'games') {\n          const actionModel = stepModel?._data?.actionData;\n          actionModel.newPrize();\n        }\n        return stepModel;\n      })(steps);\n    },\n    setupNewStepsInFormStep(typeModel, steps, formStep) {\n      const formStepId = formStep?._data?.formStepId;\n      steps = R.map(step => {\n        return R.clone(step);\n      })(steps);\n      const parentStepLabel = typeModel.getData('label');\n      let currentIndex = this.getStepLastIndexInEachFormStep(formStep);\n      const newSteps = R.map(step => {\n        currentIndex = currentIndex + 1;\n        step.index = currentIndex;\n        step.stepId = _nventor.default.random.alphaNum(17);\n        step.parentStepLabel = parentStepLabel;\n        step.isValidated = true;\n        const stepModel = this._getStepModel(step);\n        return stepModel;\n      })(steps);\n      let formSteps = this.getData('formSteps') || [];\n      let targetFormStep = formSteps.find(fs => fs?._data?.formStepId === formStepId);\n      let targetIndex = targetFormStep?._data?.index;\n      if (!targetFormStep) {\n        return;\n      }\n      const currentFormStep = formSteps[targetIndex - 1] || [];\n      const stepsIncurrentFormStep = currentFormStep?._data?.steps || [];\n      if (!stepsIncurrentFormStep) {\n        return;\n      }\n      stepsIncurrentFormStep.pushObjects(newSteps);\n      this.setData('formSteps', formSteps);\n      return newSteps;\n    },\n    removeStep(step) {\n      if (this.isForm) {\n        return this._removeStepFromFormStep(step);\n      } else {\n        return this._removeStep(step);\n      }\n    },\n    _removeStep(step) {\n      const parentIndex = step?._data?.parentIndex;\n      if (!parentIndex) {\n        _nventor.default.throw('removeStep: parentIndex is not defined');\n        return;\n      }\n      let steps = this.getData('steps') || [];\n      steps = R.pipe(R.reject(R.pathEq(['_data', 'parentIndex'], parentIndex)), R.forEachObjIndexed((m, index) => {\n        m.set('_data.index', parseInt(index) + 1);\n      }))(steps);\n      this.setData('steps', steps);\n    },\n    _removeStepFromFormStep(step) {\n      const currentStepId = step?._data?.stepId;\n      let formSteps = this.getData('formSteps') || [];\n      const checkStepId = R.pipe(R.pathOr([], ['_data', 'steps']), R.any(R.pathEq(['_data', 'stepId'], currentStepId)));\n      let formStepToUpdate = R.find(checkStepId, formSteps);\n      if (!formStepToUpdate) {\n        return;\n      }\n      let stepsToUpdate = formStepToUpdate?._data?.steps || [];\n      if (!stepsToUpdate) {\n        return;\n      }\n      stepsToUpdate = R.reject(s => s._data.stepId === currentStepId, stepsToUpdate);\n      stepsToUpdate.forEach((s, index) => {\n        s.setData('index', index + 1);\n      });\n      formStepToUpdate.setData('steps', stepsToUpdate);\n      this.setData('formSteps', formSteps);\n    },\n    addSteps(steps = [], onCloseDialogAction) {\n      const currentSteps = this.getData('steps') || [];\n      const newSteps = R.pipe(R.concat(currentSteps), R.forEachObjIndexed((m, index) => {\n        m.set('_data.index', parseInt(index) + 1);\n      }))(steps);\n      this.setData('steps', newSteps);\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    },\n    _getStepModel(data) {\n      let stepData = data;\n      if (data.serialize) {\n        stepData = data.serialize();\n      }\n      return this.dataManager.setAsRecord({\n        adapterName: 'flows/steps',\n        data: stepData\n      });\n    },\n    getStepLastIndex() {\n      const lastIndex = R.pipe(R.pathOr([], ['_data', 'steps']), R.reduce((acc, step) => {\n        const index = step.getData('index');\n        if (index > acc) {\n          return index;\n        }\n        return acc;\n      }, 0))(this);\n      return lastIndex;\n    },\n    getStepLastParentIndex() {\n      const lastIndex = R.pipe(R.pathOr([], ['_data', 'steps']), R.reduce((acc, step) => {\n        const index = step.getData('parentIndex');\n        if (index > acc) {\n          return index;\n        }\n        return acc;\n      }, 0))(this);\n      return lastIndex;\n    },\n    getFormStepLastIndex() {\n      const formSteps = this.getData('formSteps') || [];\n      const lastIndex = formSteps.length;\n      return lastIndex;\n    },\n    getStepLastIndexInEachFormStep(formStep) {\n      const lastIndex = R.pipe(R.pathOr([], ['_data', 'steps']), R.reduce((acc, step) => {\n        const index = step.getData('index');\n        if (index > acc) {\n          return index;\n        }\n        return acc;\n      }, 0))(formStep);\n      return lastIndex;\n    },\n    setupNewFormSteps(formStep) {\n      const formStepIndex = this.getFormStepLastIndex();\n      formStep.setData('index', formStepIndex + 1);\n      formStep.setData('formStepId', _nventor.default.random.alphaNum(17));\n      formStep.setData('isValidated', true);\n    },\n    newFormStep() {\n      return this.addFormStep({});\n    },\n    addFormStep(formStepData = {}) {\n      const formStepModel = this.dataManager.setAsRecord({\n        adapterName: 'flows/formSteps',\n        data: formStepData\n      });\n      this.setupNewFormSteps(formStepModel);\n      const formSteps = this.getData('formSteps') || [];\n      formSteps.pushObject(formStepModel);\n      this.setData('formSteps', formSteps);\n      return formStepModel;\n    },\n    removeFormStep(formStepModel) {\n      const formSteps = this.getData('formSteps') || [];\n      formSteps.removeObject(formStepModel);\n      formSteps.forEach((formStep, index) => {\n        formStep.setData('index', index + 1);\n      });\n      this.setData('formSteps', formSteps);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"setupCriterias\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupCriterias\"), _obj), _applyDecoratedDescriptor(_obj, \"addCriteria\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"addCriteria\"), _obj), _applyDecoratedDescriptor(_obj, \"selectType\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"selectType\"), _obj), _applyDecoratedDescriptor(_obj, \"selectEventType\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"selectEventType\"), _obj), _applyDecoratedDescriptor(_obj, \"setupNewSteps\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"setupNewSteps\"), _obj), _applyDecoratedDescriptor(_obj, \"setupNewStepsInFormStep\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"setupNewStepsInFormStep\"), _obj), _applyDecoratedDescriptor(_obj, \"removeStep\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"removeStep\"), _obj), _applyDecoratedDescriptor(_obj, \"_removeStep\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"_removeStep\"), _obj), _applyDecoratedDescriptor(_obj, \"_removeStepFromFormStep\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"_removeStepFromFormStep\"), _obj), _applyDecoratedDescriptor(_obj, \"addSteps\", [_dec0], Object.getOwnPropertyDescriptor(_obj, \"addSteps\"), _obj), _applyDecoratedDescriptor(_obj, \"getStepLastIndex\", [_dec1], Object.getOwnPropertyDescriptor(_obj, \"getStepLastIndex\"), _obj), _applyDecoratedDescriptor(_obj, \"getStepLastParentIndex\", [_dec10], Object.getOwnPropertyDescriptor(_obj, \"getStepLastParentIndex\"), _obj), _applyDecoratedDescriptor(_obj, \"getFormStepLastIndex\", [_dec11], Object.getOwnPropertyDescriptor(_obj, \"getFormStepLastIndex\"), _obj), _applyDecoratedDescriptor(_obj, \"getStepLastIndexInEachFormStep\", [_dec12], Object.getOwnPropertyDescriptor(_obj, \"getStepLastIndexInEachFormStep\"), _obj), _applyDecoratedDescriptor(_obj, \"setupNewFormSteps\", [_dec13], Object.getOwnPropertyDescriptor(_obj, \"setupNewFormSteps\"), _obj), _applyDecoratedDescriptor(_obj, \"newFormStep\", [_dec14], Object.getOwnPropertyDescriptor(_obj, \"newFormStep\"), _obj), _applyDecoratedDescriptor(_obj, \"addFormStep\", [_dec15], Object.getOwnPropertyDescriptor(_obj, \"addFormStep\"), _obj), _applyDecoratedDescriptor(_obj, \"removeFormStep\", [_dec16], Object.getOwnPropertyDescriptor(_obj, \"removeFormStep\"), _obj), _obj));\n});","define(\"client/pods/flows/service\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Service.extend({\n    router: Ember.inject.service(),\n    getFlowButtonData({\n      shop,\n      eventType\n    }) {\n      return R.pipe(R.pathOr([], ['_data', 'flows']), R.find(R.propEq('eventType', eventType)))(shop);\n    }\n  });\n});","define(\"client/pods/flows/steps/actions/games/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/steps/actions/games/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/flows/steps/actions/games/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"client/utils/nventor\"], function (_exports, _model, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    defaults() {\n      return {\n        actionType: 'games',\n        unsuccessfulMessage: '',\n        numberOfPlays: 1,\n        prizes: []\n      };\n    },\n    populate(data, attrs) {\n      data.prizes = this._transformPrizes(data);\n      this._super(data, attrs);\n    },\n    _transformPrizes(data) {\n      return R.pipe(R.propOr([], 'prizes'), R.map(prizeData => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'flows/steps/actions/games/prizes',\n          data: prizeData\n        });\n      }))(data);\n    },\n    newPrize(data = {}) {\n      const prizeModel = this.addPrize();\n      const prizeType = prizeModel?._data?.prizeType;\n      if (prizeType === 'generatePromoCode') {\n        const shopKey = '';\n        const shop = '';\n        const promoCodeModel = prizeModel.getPromoCodeModel({\n          shopKey,\n          shop\n        });\n        prizeModel.setData('defaults', promoCodeModel);\n      }\n      return prizeModel;\n    },\n    addPrize(data = {}) {\n      data.subStepId = _nventor.default.random.alphaNum(17);\n      const prizeModel = this.dataManager.setAsRecord({\n        adapterName: 'flows/steps/actions/games/prizes',\n        data\n      });\n      const prizes = this.getData('prizes') || [];\n      prizes.pushObject(prizeModel);\n      this.setData('prizes', prizes);\n      return prizeModel;\n    },\n    removePrize(prizeModel) {\n      const prizes = this.getData('prizes') || [];\n      prizes.removeObject(prizeModel);\n      return prizes;\n    }\n  }, _applyDecoratedDescriptor(_obj, \"newPrize\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"newPrize\"), _obj), _applyDecoratedDescriptor(_obj, \"addPrize\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"addPrize\"), _obj), _applyDecoratedDescriptor(_obj, \"removePrize\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"removePrize\"), _obj), _obj));\n});","define(\"client/pods/flows/steps/actions/games/prizes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/steps/actions/games/prizes/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/flows/steps/actions/games/prizes/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _model, R, RA, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    defaults() {\n      return {\n        subStepId: _nventor.default.random.alphaNum(17),\n        prizeType: 'generatePromoCode',\n        isPrize: true,\n        name: '',\n        description: '',\n        successfulMessage: '',\n        defaults: {}\n      };\n    },\n    populate(data, attrs) {\n      if (RA.isNotNilOrEmpty(data?.defaults) && data.prizeType === 'generatePromoCode') {\n        data.defaults = this._transformDefaults(data);\n      }\n      this._super(data, attrs);\n    },\n    setupPrizeType({\n      prizeType,\n      shopKey,\n      shop\n    }) {\n      // @TODO: make this the same as action\n      let hasSetupPrizeType = this?._data?.hasSetupPrizeType || '';\n      if (!prizeType || prizeType !== hasSetupPrizeType) {\n        if (prizeType === 'generatePromoCode') {\n          const promoCodeModel = this.getPromoCodeModel({\n            shopKey,\n            shop\n          });\n          this.setData('defaults', promoCodeModel);\n          this.setData('hasSetupPrizeType', prizeType);\n        }\n      }\n    },\n    getPromoCodeModel({\n      defaultsData = {},\n      shopKey,\n      shop\n    } = {}) {\n      if (RA.isNilOrEmpty(defaultsData)) {\n        defaultsData = {\n          dateEndZ: '',\n          dateStartZ: '',\n          discountAmount: 0,\n          discountRate: 0,\n          discountRateOnSale: 0,\n          status: 'active',\n          type: 'rate',\n          usageLimit: 1,\n          hasUsageLimitPerPerson: false,\n          usageLimitPerPerson: '',\n          allowedShopKey: shopKey,\n          allowedShop: shop\n        };\n      }\n      return this.dataManager.setAsRecord({\n        adapterName: 'flows/steps/actions/promo-codes-default',\n        data: defaultsData\n      });\n    },\n    _transformDefaults(data) {\n      let defaultsData = R.pathOr({}, ['defaults'])(data);\n      return this.getPromoCodeModel({\n        defaultsData\n      });\n    },\n    actionsComponent: Ember.computed('_data.prizeType', function () {\n      if (this?._data?.prizeType === 'generatePromoCode') {\n        const prefix = 'flows/flows-editor/steps-editor/actions-editor';\n        return `${prefix}/generate-promo-code`;\n      }\n      return '';\n    })\n  }, _applyDecoratedDescriptor(_obj, \"setupPrizeType\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupPrizeType\"), _obj), _applyDecoratedDescriptor(_obj, \"getPromoCodeModel\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"getPromoCodeModel\"), _obj), _applyDecoratedDescriptor(_obj, \"_transformDefaults\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"_transformDefaults\"), _obj), _obj));\n});","define(\"client/pods/flows/steps/actions/generate-promo-code/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/steps/actions/generate-promo-code/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/flows/steps/actions/generate-promo-code/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    defaults() {\n      return {\n        defaults: {\n          actionType: 'generatePromoCode'\n        }\n      };\n    },\n    populate(data, attrs) {\n      data.defaults = this._transformDefaults(data);\n      this._super(data, attrs);\n    },\n    _transformDefaults(data) {\n      let defaultsData = R.pathOr({}, ['defaults'])(data);\n      if (RA.isNilOrEmpty(defaultsData)) {\n        defaultsData = {\n          dateEndZ: '',\n          dateStartZ: '',\n          discountAmount: 0,\n          discountRate: 0,\n          discountRateOnSale: 0,\n          status: 'active',\n          type: 'rate',\n          usageLimit: 1,\n          hasUsageLimitPerPerson: false,\n          usageLimitPerPerson: ''\n        };\n      }\n      return this.dataManager.setAsRecord({\n        adapterName: 'flows/steps/actions/promo-codes-default',\n        data: defaultsData\n      });\n    }\n  });\n});","define(\"client/pods/flows/steps/actions/generate-promo-code/presets/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/steps/actions/generate-promo-code/presets/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/flows/steps/actions/generate-promo-code/presets/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @TODO: check if used. if not remove\n  var _default = _exports.default = _model.default.extend({\n    defaults() {\n      return {\n        allowedShop: '',\n        allowedShopKey: '',\n        allowedShops: '',\n        allowOnSale: '',\n        code: '',\n        dateEndZ: '',\n        dateStartZ: '',\n        description: '',\n        disallowedShops: '',\n        discountAmount: '',\n        discountRate: '',\n        discountRateOnSale: '',\n        isUnlimited: '',\n        minRequiredAmount: '',\n        status: '',\n        type: '',\n        unlimited: '',\n        usageLimit: '',\n        hasUsageLimitPerPerson: false,\n        usageLimitPerPerson: '',\n        expiryDateStartUnit: 'days',\n        expiryDateEndUnit: 'days',\n        useExpiryDate: ''\n      };\n    }\n  });\n});","define(\"client/pods/flows/steps/actions/promo-codes-default/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/steps/actions/promo-codes-default/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    applicationService: Ember.inject.service('application'),\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default,\n    serialize(model) {\n      const type = model._data.type;\n      if (type === this.constants.discountTypes.amount) {\n        model.setData('discountRate', '');\n        model.setData('discountRateOnSale', '');\n      } else {\n        model.setData('discountAmount', '');\n      }\n      if (!model._data.allowOnSale) {\n        model.setData('discountRateOnSale', '');\n      }\n      const data = this._super(model);\n      data.emails = this.applicationService.splitToArray(data.emails || '');\n      data.telephones = this.applicationService.splitToArray(data.telephones || '');\n      return data;\n    }\n  });\n});","define(\"client/pods/flows/steps/actions/promo-codes-default/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        status: this.constants.status.active,\n        type: this.constants.discountTypes.rate,\n        discountAmount: '',\n        discountRate: '',\n        discountRateOnSale: '',\n        emails: '',\n        telephones: '',\n        productTags: [],\n        denyProductTags: [],\n        usageLimit: 1,\n        hasUsageLimitPerPerson: false,\n        usageLimitPerPerson: '',\n        expiryDateStartUnit: 'days',\n        expiryDateEndUnit: 'days',\n        useExpiryDate: false\n      };\n    },\n    populate(data = {}) {\n      data.emails = this.applicationService.joinAsString(data.emails || []);\n      data.telephones = this.applicationService.joinAsString(data.telephones || []);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/flows/steps/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/steps/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    applicationService: Ember.inject.service('application'),\n    resourcePath: 'api/protected/flows/step/validate',\n    modelObj: _model.default,\n    idParam: false,\n    serialize(model) {\n      const data = this._super(model);\n      const type = data.type;\n      const actionType = data.actionType;\n      if (R.equals(type, 'ACTION') && R.equals(actionType, 'generatePromoCode')) {\n        const defaults = R.pathOr({}, ['actionData', 'defaults'])(data);\n        defaults.emails = this.applicationService.splitToArray(defaults.emails || '');\n        defaults.telephones = this.applicationService.splitToArray(defaults.telephones || '');\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/flows/steps/choices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/flows/steps/choices/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/flows/steps/choices/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        index: '',\n        value: '',\n        label: '',\n        status: 'active'\n      };\n    }\n  });\n});","define(\"client/pods/flows/steps/model\", [\"exports\", \"ramda\", \"client/pods/base/model\", \"client/utils/nventor\"], function (_exports, R, _model, _nventor) {\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, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _obj = {\n    defaults() {\n      return {\n        stepId: _nventor.default.random.alphaNum(17),\n        isPreset: false,\n        isPresetLocked: false,\n        text: '',\n        stepType: 'text',\n        dataType: 'text',\n        key: '',\n        dataKey: '',\n        type: '',\n        isValidated: false,\n        // hasReply: false,\n        isReplyRequired: false,\n        // hasChoices: false,\n        hasAction: false,\n        choices: [],\n        allowCustomChoice: false,\n        actionData: {},\n        isTextArea: false\n      };\n    },\n    typeComponent: Ember.computed('_data.stepType', function () {\n      const stepType = R.pathOr('', ['_data', 'stepType'])(this);\n      const prefix = 'flows/flows-editor/steps-editor';\n      switch (stepType) {\n        case 'action':\n          return `${prefix}/actions-editor`;\n        default:\n          return `${prefix}/reply-choices`;\n      }\n    }),\n    actionsComponent: Ember.computed('_data.actionType', function () {\n      const prefix = 'flows/flows-editor/steps-editor/actions-editor';\n      const actionType = R.path(['_data', 'actionType'])(this);\n      if (!actionType) {\n        return '';\n      }\n      switch (actionType) {\n        case 'generatePromoCode':\n          return `${prefix}/generate-promo-code`;\n        case 'games':\n          return `${prefix}/games`;\n      }\n      return '';\n    }),\n    populate(data, attrs) {\n      data.actionData = this._transformAction(data);\n      data.choices = this._transformChoices(data);\n      this._super(data, attrs);\n    },\n    _transformChoices(data) {\n      return R.pipe(R.propOr([], 'choices'), R.map(choice => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'flows/steps/choices',\n          data: choice\n        });\n      }))(data);\n    },\n    _transformAction(data) {\n      const actionData = R.propOr({}, 'actionData')(data);\n      const actionType = R.prop('actionType')(data);\n      return this._createActionModel(actionType, actionData);\n    },\n    _createActionModel(actionType, actionData) {\n      if (!actionType) {\n        return {};\n      }\n      return this.dataManager.setAsRecord({\n        adapterName: `flows/steps/actions/${actionType}`,\n        data: actionData\n      });\n    },\n    allowAction: Ember.computed('_data.isPresetLocked', function () {\n      if (this?._data?.isPresetLocked && !this?._data?.hasAction) {\n        return false;\n      }\n      return true;\n    }),\n    allowReply: Ember.computed('_data.isPresetLocked', function () {\n      if (this?._data?.isPresetLocked && !this?.hasReply) {\n        return false;\n      }\n      return true;\n    }),\n    hasReply: Ember.computed('_data.stepType', function () {\n      const stepType = R.path(['_data', 'stepType'])(this);\n      if (R.includes(stepType)(['replyChoices', 'replyText'])) {\n        return true;\n      }\n      return false;\n    }),\n    hasChoices: Ember.computed('_data.stepType', function () {\n      const stepType = R.path(['_data', 'stepType'])(this);\n      if (R.includes(stepType)(['replyChoices'])) {\n        return true;\n      }\n      return false;\n    }),\n    isScratchCardGame: Ember.computed('_data.gameType', function () {\n      if (this?._data?.gameType === 'gameScratchCard') {\n        return true;\n      }\n      return false;\n    }),\n    subSteps: Ember.computed('_data.{stepType,actionType,actionData.prizes.[]}', function () {\n      const stepType = this?._data?.stepType;\n      if (stepType !== 'action') {\n        return [];\n      }\n      const actionType = this?._data?.actionType;\n      if (actionType === 'games') {\n        const actionData = this.getData('actionData') || {};\n        if (actionData?.getData) {\n          const prizes = actionData.getData('prizes') || [];\n          R.forEach(prize => {\n            // set parent step on each prize\n            prize.set('parentStep', this);\n          })(prizes);\n          return prizes;\n        }\n      }\n\n      // if (actionType === 'generatePromoCode') {\n      //   return this.getData('prizes') || []\n      // }\n\n      return [];\n    }),\n    hasCustomDataKey: Ember.computed('_data.dataKey', function () {\n      if (this?._data?.dataKey === this.constants?.dataKeys?.custom) {\n        return true;\n      }\n      return false;\n    }),\n    selectType(stepType) {\n      const step = stepType.getData('step') || {};\n      R.mapObjIndexed((value, key) => {\n        this.setData(key, value);\n      })(step);\n    },\n    selectDataKey(dataKeyData) {\n      const dataType = dataKeyData?._data?.dataType || 'text';\n      let key = dataKeyData?._data?.value || '';\n      if (key === this.constants?.dataKeys?.custom) {\n        key = '';\n      }\n      this.setData('dataType', dataType);\n      this.setData('key', key);\n    },\n    addAction(actionType, actionData = {}) {\n      actionData.actionType = actionType;\n      const actionModel = this._createActionModel(actionType, actionData);\n      this.setData('actionData', actionModel);\n    },\n    newChoice() {\n      return this.addChoice({});\n    },\n    addChoice(choiceData = {}) {\n      const choiceModel = this.dataManager.setAsRecord({\n        adapterName: 'flows/steps/choices',\n        data: choiceData\n      });\n      const choices = this.getData('choices') || [];\n      choices.pushObject(choiceModel);\n      this.setData('choices', choices);\n      return choiceModel;\n    },\n    removeChoice(choiceModel) {\n      const choices = this.getData('choices') || [];\n      choices.removeObject(choiceModel);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"selectType\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"selectType\"), _obj), _applyDecoratedDescriptor(_obj, \"selectDataKey\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"selectDataKey\"), _obj), _applyDecoratedDescriptor(_obj, \"addAction\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"addAction\"), _obj), _applyDecoratedDescriptor(_obj, \"newChoice\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"newChoice\"), _obj), _applyDecoratedDescriptor(_obj, \"addChoice\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"addChoice\"), _obj), _applyDecoratedDescriptor(_obj, \"removeChoice\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"removeChoice\"), _obj), _obj));\n});","define(\"client/pods/form-container/form-container-sub/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FormContainerSubModel extends _model.default {}\n  _exports.default = FormContainerSubModel;\n});","define(\"client/pods/form-container/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FormContainerModel extends _model.default {}\n  _exports.default = FormContainerModel;\n});","define(\"client/pods/froala/service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class FroalaService extends Ember.Service {\n    /**\n     * Attaches event listeners to an element to prevent dropping.\n     * @param {HTMLElement} element\n     * @private\n     */\n    makeNonDroppable(element) {\n      const preventDrop = e => {\n        // Prevent the browser's default behavior for the event.\n        e.preventDefault();\n        // Stop the event from bubbling up to parent elements (like the editor container).\n        e.stopPropagation();\n        // Prevent any other listeners on the same element from being called.\n        e.stopImmediatePropagation();\n      };\n      const dragOverHandler = e => {\n        preventDrop(e);\n        // Explicitly signal that a drop is not allowed here.\n        if (e.dataTransfer) {\n          e.dataTransfer.dropEffect = 'none';\n          e.dataTransfer.effectAllowed = 'none';\n        }\n      };\n\n      // We'll listen for dragenter, dragover, and drop to be thorough.\n      element.addEventListener('dragenter', preventDrop);\n      element.addEventListener('dragover', dragOverHandler);\n      element.addEventListener('drop', preventDrop);\n    }\n  }\n  _exports.default = FroalaService;\n});","define(\"client/pods/generic/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/generic/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    applicationService: Ember.inject.service('application'),\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/generic/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {};\n    }\n  });\n});","define(\"client/pods/google/tracking/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/google/tracking',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/grapesjs/categories\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: categories\n   * @author Nafis Rubio\n   * @since 17/09/2020\n   * @copyright (C) 2020 BigOrdr\n   * @description: Constant categories, here all categories are documented\n   */\n  /**\n   * @typedef {Object} Category\n   * @property {string} id\n   * @property {string} label\n   * */\n  /**\n   * @typedef {Object} Categories\n   * @property {Category} complex\n   * @property {Category} shop\n   * @property {Category} basic\n   */\n  /**\n   *\n   * @param intl\n   * @return {Categories}\n   */\n  var _default = intl => ({\n    basic: {\n      id: 'basic',\n      label: intl.t('basic'),\n      open: true\n    },\n    shop: {\n      id: 'shop',\n      label: intl.t('shop'),\n      open: true\n    },\n    complex: {\n      id: 'complex',\n      label: intl.t('complex'),\n      open: true\n    }\n  });\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/lists/btn-modal/target/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '_blank',\n        label: 'new window'\n      }, {\n        value: '_self',\n        label: 'this window'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/grapesjs/lists/slider/btns-color/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'lightColor',\n        label: 'light color'\n      }, {\n        value: 'darkColor',\n        label: 'dark color'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/grapesjs/lists/slider/btns-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'small',\n        label: 'small'\n      }, {\n        value: 'medium',\n        label: 'medium'\n      }, {\n        value: 'large',\n        label: 'large'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/grapesjs/lists/slider/nav-position/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'insideImage',\n        label: 'inside image'\n      }, {\n        value: 'outsideImage',\n        label: 'outside image'\n      }, {\n        value: 'hide',\n        label: 'always hide'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/grapesjs/lists/slider/nav-style/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'navItemLine',\n        label: 'nav item line'\n      }, {\n        value: 'navItemDot',\n        label: 'nav item dot'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/grapesjs/plugins/animation-trait\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: animation-trait\n   * @author Nafis Rubio\n   * @since 01/07/2021\n   * @copyright (C) 2021 BigOrdr\n   * @description: $DESCRIPTION$\n   */\n\n  const ANIMATION_NAMES = Object.freeze({\n    none: 'none',\n    fadeIn: 'fadeIn',\n    fadeInDown: 'fadeInDown',\n    zoomIn: 'zoomIn',\n    slideInDown: 'slideInDown',\n    rotate: 'rotate',\n    rotateIn: 'rotateIn',\n    backInDown: 'backInDown',\n    backInUp: 'backInUp',\n    flip: 'flip',\n    flipInX: 'flipInX',\n    flipInY: 'flipInY',\n    flash: 'flash',\n    pulse: 'pulse',\n    rubberBand: 'rubberBand',\n    bounce: 'bounce',\n    shakeX: 'shakeX',\n    shakeY: 'shakeY',\n    swing: 'swing',\n    tada: 'tada',\n    wobble: 'wobble',\n    jello: 'jello',\n    heartbeat: 'heartbeat'\n  });\n  const ANIMATION_TEXT_NAMES = Object.freeze({\n    ...ANIMATION_NAMES,\n    typing: 'typing'\n  });\n  const ANIMATION_ITERATIONS_COUNT = Object.freeze({\n    once: 'once',\n    infinite: 'infinite'\n  });\n  var _default = editor => {\n    const {\n      TraitManager\n    } = editor;\n    const returnedElement = (options, preselected) => {\n      const el = document.createElement('div');\n      el.innerHTML = `\n      <select class='bigordr-animation__type'>\n        ${options.map(opt => `<option value='${opt.id}' ${preselected === opt.id ? 'selected=\"selected\"' : ''}>${opt.name}</option>`).join('')}\n      </select>\n    `;\n      return el;\n    };\n    const traitName = 'bigordr-animation-trait';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', traitName])(editor);\n    const {\n      intl\n    } = options;\n    TraitManager.addType(traitName, {\n      createInput({\n        /* trait, */\n        component\n      }) {\n        const componentAttributes = component.getAttributes();\n        const preselectedAnimation = R.propOr(ANIMATION_NAMES.none, 'data-gjs-animation')(componentAttributes);\n        const options = R.pipe(R.map(animationName => ({\n          id: animationName,\n          name: intl.t(animationName)\n        })), R.values)(ANIMATION_NAMES);\n        const el = returnedElement(options, preselectedAnimation);\n        return el;\n      },\n      onEvent({\n        component,\n        event\n      }) {\n        const selectedAnimation = R.pathOr(ANIMATION_NAMES.none, ['target', 'value'])(event);\n        component.addAttributes({\n          'data-gjs-animation': selectedAnimation\n        });\n      }\n    });\n    const titleTraitName = 'bigordr-animation-text-trait';\n    TraitManager.addType(titleTraitName, {\n      createInput({\n        component\n      }) {\n        const componentAttributes = component.getAttributes();\n        const preselectedAnimation = R.propOr(ANIMATION_TEXT_NAMES.none, 'data-gjs-text-animation')(componentAttributes);\n        const options = R.pipe(R.map(animationName => ({\n          id: animationName,\n          name: intl.t(animationName)\n        })), R.values)(ANIMATION_TEXT_NAMES);\n        const el = returnedElement(options, preselectedAnimation);\n        return el;\n      },\n      onEvent({\n        component,\n        event\n      }) {\n        const selectedAnimation = R.pathOr(ANIMATION_NAMES.none, ['target', 'value'])(event);\n        component.addAttributes({\n          'data-gjs-text-animation': selectedAnimation\n        });\n      }\n    });\n    const iterationTraitName = 'bigordr-animation-iteration-trait';\n    TraitManager.addType(iterationTraitName, {\n      createInput({\n        component\n      }) {\n        const componentAttributes = component.getAttributes();\n        const preselectedCount = R.propOr(ANIMATION_ITERATIONS_COUNT.once, 'data-gjs-animation__iteration-count')(componentAttributes);\n        const options = R.pipe(R.map(animationCount => ({\n          id: animationCount,\n          name: intl.t(animationCount)\n        })), R.values)(ANIMATION_ITERATIONS_COUNT);\n        const el = returnedElement(options, preselectedCount);\n        return el;\n      },\n      onEvent({\n        component,\n        event\n      }) {\n        const selectedCount = R.pathOr(ANIMATION_ITERATIONS_COUNT.once, ['target', 'value'])(event);\n        component.addAttributes({\n          'data-gjs-animation__iteration-count': selectedCount\n        });\n      }\n    });\n    const durationTraitName = 'bigordr-animation-duration-trait';\n    TraitManager.addType(durationTraitName, {\n      createInput({\n        component\n      }) {\n        const componentAttributes = component.getAttributes();\n        const presetDuration = R.pipe(R.propOr(null, 'data-gjs-animation__duration'), parseFloat)(componentAttributes);\n        const el = document.createElement('div');\n        if (typeof presetDuration === 'number' && !isNaN(presetDuration)) {\n          el.innerHTML = `\n          <input type='text' value=${presetDuration}>\n        `;\n        } else {\n          el.innerHTML = `\n          <input type='text'>\n        `;\n        }\n        return el;\n      },\n      onEvent({\n        component,\n        event\n      }) {\n        const customizedDuration = R.pipe(R.pathOr(null, ['target', 'value']), parseFloat)(event);\n        if (typeof customizedDuration === 'number' && !isNaN(customizedDuration)) {\n          component.addAttributes({\n            'data-gjs-animation__duration': customizedDuration\n          });\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/background-fixed\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: scratch-card\n   * @author Derek Chou\n   * @since 29/11/2022\n   * @copyright (C) 2022 BigOrdr\n   * @description: Background Fixed\n   */\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const pluginName = 'bigordr-background-fixed';\n    const pluginBlockId = `${pluginName}-block`;\n    const bigordrBackgroundFixedCover = 'bigordr-background-fixed-cover';\n    const bigordrBackgroundFixedBackground = 'bigordr-background-fixed-background';\n    const BODY_SELECTOR = '[data-gjs-type=\"wrapper\"]';\n    const COVER_SELECTOR = '[data-gjs-type=\"bigordr-background-fixed-cover\"]';\n    const P_CLASSNAME = 'bigordr-background-fixed-p';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', 'bigordr-background-fixed'])(editor);\n    const onImageSelect = (model, ...args) => {\n      const uploadModel = args[3];\n      const imgSet = uploadModel?.imgSet || {};\n      const {\n        desktopUrl,\n        mobileUrl,\n        tabletUrl\n      } = imgSet;\n      const id = model?.getId?.();\n      if (id) {\n        const style = `\n        <style>\n          @media screen and (min-width: 1000px) {\n            #${id} {\n              background-image: url(${desktopUrl});\n            }\n          }\n  \n          @media screen and (min-width: 700px) and (max-width: 1000px) {\n            #${id} {\n              background-image: url(${tabletUrl});\n            }\n          }\n  \n          @media screen and (max-width: 700px) {\n            #${id} {\n              background-image: url(${mobileUrl});\n            }\n          }\n        </style>\n      `;\n        model.components().add(style);\n      }\n    };\n    const {\n      onDbClick,\n      intl,\n      isReadonly,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const blockLabel = intl.t(pluginName);\n    DomComponents.addType(bigordrBackgroundFixedBackground, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          name: intl.t(bigordrBackgroundFixedBackground),\n          attributes: {\n            'data-gjs-component': bigordrBackgroundFixedBackground,\n            alt: 'none'\n          },\n          classes: [bigordrBackgroundFixedBackground],\n          badgable: false,\n          copyable: false,\n          draggable: false,\n          droppable: false,\n          editable: true,\n          highlightable: true,\n          hoverable: false,\n          layerable: false,\n          removable: false,\n          resizable: false,\n          selectable: true,\n          stylable: false,\n          traits: []\n        }\n      },\n      view: {\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick() {\n          if (onDbClick && !isReadonly) {\n            const component = this.model;\n            const imgType = '';\n            const imagesManager = {\n              onImageSelect: (...args) => onImageSelect(component, ...args)\n            };\n            const allowSrcSet = true;\n            onDbClick(imgType, imagesManager, allowSrcSet);\n          }\n        }\n      }\n    });\n    DomComponents.addType(bigordrBackgroundFixedCover, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          name: intl.t(bigordrBackgroundFixedCover),\n          attributes: {\n            'data-gjs-component': bigordrBackgroundFixedCover,\n            alt: 'none'\n          },\n          badgable: false,\n          copyable: false,\n          draggable: false,\n          droppable: false,\n          editable: false,\n          highlightable: false,\n          hoverable: false,\n          layerable: false,\n          removable: false,\n          resizable: false,\n          selectable: false,\n          stylable: false,\n          traits: []\n        }\n      }\n    });\n    DomComponents.addType(pluginName, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          name: blockLabel,\n          droppable: BODY_SELECTOR,\n          removable: true,\n          copyable: true,\n          resizable: false,\n          draggable: BODY_SELECTOR,\n          selectable: true,\n          attributes: {\n            'data-gjs-component': pluginName\n          },\n          toolbar: [{\n            attributes: {\n              class: 'fas fa-pencil-alt'\n            },\n            command(editor) {\n              const selected = editor.getSelected();\n              const component = selected.findType(bigordrBackgroundFixedBackground)[0];\n              if (onDbClick) {\n                const imgType = '';\n                const imagesManager = {\n                  onImageSelect: (...args) => onImageSelect(component, ...args)\n                };\n                const allowSrcSet = true;\n                onDbClick(imgType, imagesManager, allowSrcSet);\n              }\n            }\n          }, {\n            attributes: {\n              class: 'fa fa-trash'\n            },\n            command: 'tlb-delete'\n          }],\n          components: [{\n            selectable: true,\n            removable: false,\n            draggable: false,\n            type: bigordrBackgroundFixedBackground,\n            style: {\n              width: '100%',\n              'min-height': '100vh',\n              position: 'sticky',\n              top: '0'\n            },\n            components: [{\n              type: 'row',\n              selectable: true,\n              highlightable: true,\n              hoverable: true,\n              removable: false,\n              components: [{\n                type: 'cell',\n                selectable: true,\n                highlightable: true,\n                hoverable: true,\n                removable: false,\n                components: [{\n                  type: 'text',\n                  style: {\n                    padding: '10px',\n                    margin: '10px'\n                  },\n                  tagName: 'p',\n                  classes: [P_CLASSNAME],\n                  content: intl.t('insert text or drag content here, remove this text block if not needed')\n                }]\n              }],\n              style: {\n                'min-height': '100vh',\n                position: 'sticky',\n                top: '0',\n                'text-align': 'center',\n                width: '100vw',\n                display: 'flex',\n                'justify-content': 'center',\n                'align-items': 'center',\n                padding: '10px'\n              }\n            }],\n            attributes: {},\n            traits: []\n          }, {\n            selectable: false,\n            removable: false,\n            draggable: false,\n            type: bigordrBackgroundFixedCover,\n            style: {\n              background: 'transparent',\n              width: '100%',\n              position: 'sticky',\n              top: '0',\n              'min-height': '100vh',\n              display: 'flex',\n              'justify-content': 'center',\n              'align-items': 'center'\n            },\n            attributes: {},\n            components: [{\n              type: 'row',\n              selectable: true,\n              highlightable: true,\n              hoverable: true,\n              removable: false,\n              components: [{\n                type: 'cell',\n                selectable: true,\n                highlightable: true,\n                hoverable: true,\n                removable: false,\n                components: [{\n                  type: 'text',\n                  style: {\n                    padding: '10px',\n                    margin: '10px'\n                  },\n                  tagName: 'p',\n                  classes: [P_CLASSNAME],\n                  content: intl.t('insert text or drag content here, remove this text block if not needed')\n                }]\n              }],\n              style: {\n                'text-align': 'center',\n                width: '100vw',\n                display: 'flex',\n                'justify-content': 'center',\n                'align-items': 'center',\n                position: 'relative',\n                padding: '10px'\n              }\n            }],\n            traits: []\n          }],\n          traits: []\n        }\n      },\n      view: {\n        onRender({\n          model,\n          editor,\n          el\n        }) {\n          const cover = el.querySelector(COVER_SELECTOR);\n          cover.style.minHeight = 'unset';\n        }\n      }\n    });\n    BlockManager.add(pluginBlockId, {\n      label: blockLabel,\n      category: categories.complex,\n      content: {\n        type: pluginName\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n    <svg class='block-icon' width=\"100%\" height=\"100%\" version=\"1.1\" id=\"圖層_1\" xmlns:x=\"&ns_extend;\" xmlns:i=\"&ns_ai;\" xmlns:graph=\"&ns_graphs;\"\n    xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 299 291\"\n    style=\"enable-background:new 0 0 299 291;\" xml:space=\"preserve\">\n    <style type=\"text/css\">\n      .st0{fill:#FFFFFF;}\n      .st1{fill:#231815;}\n      .st2{fill:#EFEFEF;}\n      .st3{fill:#3E3A39;}\n      .st4{fill:#FFFFFF;stroke:#3E3A39;stroke-width:8;stroke-miterlimit:10;}\n      .st5{fill:#FFFFFF;stroke:#231815;stroke-width:12;stroke-miterlimit:10;}\n      .st6{fill:#EFEFEF;stroke:#231815;stroke-width:12;stroke-miterlimit:10;}\n      .st7{fill:none;stroke:#231815;stroke-width:5.9009;stroke-miterlimit:10;}\n      .st8{fill:none;stroke:#231815;stroke-width:12;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n      .st9{fill:#B5B5B6;stroke:#231815;stroke-width:12;stroke-miterlimit:10;}\n      .st10{fill:none;stroke:#231815;stroke-width:12.6247;stroke-miterlimit:10;}\n      .st11{fill:none;stroke:#231815;stroke-width:12;stroke-miterlimit:10;}\n      .st12{fill:none;stroke:#231815;stroke-width:20;stroke-miterlimit:10;}\n      .st13{fill:#FFFFFF;stroke:#231815;stroke-width:8;stroke-miterlimit:10;}\n      .st14{stroke:#231815;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n    </style>\n    <switch>\n      <foreignObject requiredExtensions=\"&ns_ai;\" x=\"0\" y=\"0\" width=\"1\" height=\"1\">\n        <i:aipgfRef  xlink:href=\"#adobe_illustrator_pgf\">\n        </i:aipgfRef>\n      </foreignObject>\n      <g i:extraneous=\"self\">\n        <g>\n          <path class=\"st1\" d=\"M276,288H23V3h253V288z M35,276h229V15H35V276z\"/>\n        </g>\n        <g>\n          <g>\n            <path class=\"st1\" d=\"M232.64,215h-180V99h180V215z M64.64,203h156v-92h-156V203z\"/>\n          </g>\n          <g>\n            <g>\n              <path class=\"st0\" d=\"M142.13,261.38c-1.9,0-3.68-0.9-4.82-2.42l-18.43-24.81c-1.35-1.82-1.56-4.25-0.54-6.27s3.09-3.3,5.36-3.3\n                h3.54v-32.83c0-3.31,2.69-6,6-6h18.11c3.31,0,6,2.69,6,6v32.83h3.22c2.27,0,4.34,1.28,5.36,3.3s0.81,4.45-0.54,6.27\n                l-18.43,24.81C145.81,260.48,144.03,261.38,142.13,261.38z\"/>\n            </g>\n            <g>\n              <path class=\"st1\" d=\"M151.34,191.74v38.83h9.22l-18.43,24.81l-18.43-24.81h9.54v-38.83H151.34 M151.34,179.74h-18.11\n                c-6.63,0-12,5.37-12,12v27.09c-3.53,0.74-6.6,3.05-8.26,6.36c-2.04,4.05-1.62,8.91,1.09,12.55l18.43,24.81\n                c2.26,3.05,5.84,4.84,9.63,4.84s7.37-1.8,9.63-4.84l18.43-24.81c2.71-3.64,3.13-8.5,1.09-12.55c-1.61-3.2-4.54-5.47-7.94-6.28\n                v-27.16C163.34,185.11,157.97,179.74,151.34,179.74L151.34,179.74z\"/>\n            </g>\n          </g>\n          <g>\n            <g>\n              <path class=\"st0\" d=\"M131.91,124.48c-3.31,0-6-2.69-6-6V85.65h-3.22c-2.27,0-4.34-1.28-5.36-3.3s-0.81-4.45,0.54-6.27\n                l18.43-24.81c1.13-1.52,2.92-2.42,4.82-2.42s3.68,0.9,4.82,2.42l18.43,24.81c1.35,1.82,1.56,4.25,0.54,6.27s-3.09,3.3-5.36,3.3\n                h-3.54v32.83c0,3.31-2.69,6-6,6H131.91z\"/>\n            </g>\n            <g>\n              <path class=\"st1\" d=\"M141.13,54.84l18.43,24.81h-9.54v38.83h-18.11V79.65h-9.22L141.13,54.84 M141.13,42.84\n                c-3.8,0-7.37,1.8-9.63,4.84l-18.43,24.81c-2.71,3.64-3.13,8.5-1.09,12.55c1.61,3.2,4.54,5.47,7.94,6.28v27.16\n                c0,6.63,5.37,12,12,12h18.11c6.63,0,12-5.37,12-12V91.39c3.53-0.74,6.6-3.05,8.26-6.36c2.04-4.05,1.62-8.91-1.09-12.55\n                l-18.43-24.81C148.5,44.64,144.92,42.84,141.13,42.84L141.13,42.84z\"/>\n            </g>\n          </g>\n          <g>\n            <g>\n              <path class=\"st0\" d=\"M252.04,206.79c-1.02-1.95-2.34-3.93-3.12-5.97c-1.33-3.47-1.47-7.5-2.15-11.13\n                c-1.44-7.77-4.03-15.27-7.7-22.28l-5.49-10.49c-0.7-1.33-1.88-2.32-3.32-2.77c-1.44-0.45-2.96-0.32-4.3,0.38\n                c-2.76,1.44-3.83,4.86-2.38,7.62c0.08,0.15,0.02,0.33-0.13,0.41c-0.15,0.08-0.33,0.02-0.41-0.13l-2.17-4.14\n                c-0.7-1.34-1.88-2.32-3.32-2.77c-1.44-0.45-2.97-0.32-4.31,0.38c-2.76,1.44-3.83,4.86-2.38,7.62c0.08,0.15,0.02,0.33-0.13,0.41\n                c-0.15,0.08-0.33,0.02-0.41-0.13l-2.56-4.9c-0.7-1.33-1.88-2.32-3.32-2.77c-1.44-0.45-2.97-0.32-4.3,0.38\n                c-2.76,1.44-3.83,4.86-2.39,7.62c0.08,0.15,0.02,0.33-0.13,0.41c-0.15,0.08-0.33,0.02-0.41-0.13l-8.47-16.2\n                c-0.7-1.33-1.87-2.32-3.31-2.77c-1.45-0.45-2.98-0.31-4.31,0.38c-2.76,1.44-3.83,4.86-2.39,7.62l19.26,36.83\n                c0.06,0.12,0.04,0.26-0.05,0.35c-0.02,0.02-0.05,0.04-0.08,0.06c-0.08,0.04-0.19,0.05-0.27,0l-10.07-4.95\n                c-1.44-0.45-2.96-0.31-4.3,0.39c-1.34,0.7-2.32,1.88-2.77,3.31c-1.23,3.92,0.14,4.86,10.75,12.14\n                c2.52,1.73,5.66,3.89,9.38,6.51c4.25,3,8.82,5.57,13.59,7.64c1.8,0.78,3.03,1.24,3.98,3.02c0.79,1.49,1.63,2.97,2.41,4.47\n                c0.71,1.35,2.39,1.88,3.74,1.17l26.57-13.89C252.23,209.83,252.75,208.15,252.04,206.79z\"/>\n              <path class=\"st1\" d=\"M223.03,228.74c-2.44,0-4.8-1.32-6.01-3.63c-0.46-0.88-0.92-1.73-1.39-2.59\n                c-0.34-0.62-0.67-1.24-1.01-1.86c-0.21-0.39-0.24-0.45-1.75-1.11l-0.29-0.13c-5.02-2.18-9.83-4.89-14.3-8.04\n                c-3.65-2.58-6.75-4.71-9.25-6.42l-0.09-0.06c-11.08-7.6-14.42-9.9-12.31-16.64c0.77-2.45,2.45-4.46,4.74-5.66\n                c2.29-1.2,4.9-1.43,7.35-0.66l0.49,0.19l-14.02-26.81c-2.46-4.71-0.64-10.56,4.08-13.02c2.27-1.19,4.88-1.42,7.34-0.66\n                c2.47,0.78,4.48,2.46,5.67,4.74l4.12,7.88c0.57-0.49,1.2-0.92,1.88-1.28c2.29-1.2,4.9-1.43,7.36-0.65\n                c1.24,0.39,2.37,1.01,3.33,1.82c0.69-0.7,1.5-1.31,2.41-1.79c2.28-1.19,4.89-1.43,7.35-0.66c0.98,0.3,1.89,0.75,2.7,1.33\n                c0.74-0.81,1.63-1.51,2.65-2.05c2.29-1.2,4.91-1.43,7.37-0.65c2.45,0.77,4.46,2.45,5.66,4.73l5.49,10.49\n                c3.85,7.36,6.57,15.23,8.08,23.4c0.23,1.25,0.4,2.51,0.57,3.73c0.33,2.45,0.64,4.76,1.38,6.69c0.41,1.07,1.07,2.23,1.77,3.46\n                c0.4,0.7,0.79,1.39,1.16,2.09c1.73,3.31,0.45,7.41-2.86,9.14l-26.57,13.89C225.16,228.49,224.09,228.74,223.03,228.74z\n                M184.11,191.31c0.77,1.1,4.59,3.72,9.37,7l0.09,0.06c2.51,1.72,5.64,3.87,9.33,6.48c4.03,2.84,8.36,5.28,12.88,7.25l0.28,0.12\n                c1.91,0.83,4.08,1.77,5.64,4.69c0.32,0.6,0.64,1.19,0.97,1.79c0.29,0.54,0.59,1.08,0.88,1.62l24.37-12.75\n                c-0.14-0.25-0.28-0.5-0.42-0.75c-0.82-1.43-1.67-2.92-2.3-4.56c-1.08-2.81-1.47-5.7-1.84-8.49c-0.16-1.18-0.31-2.29-0.5-3.34\n                c-1.37-7.38-3.83-14.5-7.31-21.15l-5.49-10.49c-0.21-0.39-0.54-0.67-0.97-0.81c-0.43-0.13-0.86-0.09-1.25,0.11\n                c-0.8,0.42-1.11,1.42-0.69,2.22c0.53,1.01,0.64,2.18,0.29,3.28c-0.34,1.09-1.09,1.99-2.1,2.53c-2.11,1.1-4.72,0.29-5.82-1.82\n                l-2.17-4.14c-0.21-0.4-0.54-0.67-0.96-0.8c-0.44-0.14-0.87-0.1-1.26,0.11c-0.8,0.42-1.11,1.42-0.69,2.22\n                c1.1,2.09,0.29,4.7-1.81,5.8c-2.13,1.1-4.72,0.28-5.82-1.82l-2.56-4.9c-0.21-0.39-0.54-0.67-0.97-0.81\n                c-0.43-0.13-0.86-0.09-1.25,0.11c-0.52,0.27-0.73,0.72-0.81,0.97c-0.08,0.25-0.16,0.73,0.11,1.26\n                c0.53,1.01,0.64,2.18,0.29,3.28s-1.09,2-2.12,2.53c-2.09,1.1-4.7,0.29-5.8-1.81l-8.47-16.21c-0.21-0.4-0.54-0.68-0.97-0.81\n                c-0.42-0.13-0.85-0.09-1.25,0.11c-0.8,0.42-1.12,1.42-0.69,2.22l19.26,36.83c0.87,1.64,0.58,3.66-0.74,5.01l-0.43,0.44\n                l-0.62,0.35c-1.24,0.65-2.68,0.67-3.91,0.08l-9.74-4.79c-0.35-0.06-0.71-0.01-1.04,0.17c-0.4,0.21-0.68,0.54-0.81,0.96\n                C184.17,190.98,184.13,191.19,184.11,191.31z M248.5,208.65C248.5,208.65,248.5,208.65,248.5,208.65L248.5,208.65\n                C248.5,208.65,248.5,208.65,248.5,208.65z M194.46,192.14c0.01,0.01,0.01,0.02,0.02,0.03L194.46,192.14z M194.21,165.99\n                c0,0.01,0.01,0.02,0.01,0.03C194.22,166.01,194.22,166,194.21,165.99z M207.32,165.37c0,0.01,0.01,0.02,0.01,0.03\n                C207.33,165.39,207.33,165.38,207.32,165.37z M220.03,164c0,0.01,0.01,0.02,0.01,0.03C220.04,164.02,220.04,164.01,220.03,164z\n                \"/>\n            </g>\n            <g>\n              <g>\n                <path class=\"st1\" d=\"M192.76,164.27c2.33,4.67,4.67,9.33,7,14c2.59,5.18,10.36,0.63,7.77-4.54c-2.33-4.67-4.67-9.33-7-14\n                  C197.94,154.55,190.17,159.1,192.76,164.27L192.76,164.27z\"/>\n              </g>\n            </g>\n            <g>\n              <g>\n                <path class=\"st1\" d=\"M204.76,162.27c2.33,4.67,4.67,9.33,7,14c2.59,5.18,10.36,0.63,7.77-4.54c-2.33-4.67-4.67-9.33-7-14\n                  C209.94,152.55,202.17,157.1,204.76,162.27L204.76,162.27z\"/>\n              </g>\n            </g>\n            <g>\n              <g>\n                <path class=\"st1\" d=\"M217.76,161.27c2.33,4.67,4.67,9.33,7,14c2.59,5.18,10.36,0.63,7.77-4.54c-2.33-4.67-4.67-9.33-7-14\n                  C222.94,151.55,215.17,156.1,217.76,161.27L217.76,161.27z\"/>\n              </g>\n            </g>\n          </g>\n        </g>\n        <g>\n          <path d=\"M58.65,45.65c-1.02,0-2.03-0.19-3.03-0.56c-1-0.37-1.89-0.86-2.68-1.46c-0.79-0.6-1.43-1.28-1.91-2.04\n            c-0.49-0.76-0.73-1.53-0.73-2.32v-2.32l3.13,2.34l-1.35,1.35c0.48,0.9,1.3,1.7,2.46,2.4c1.16,0.7,2.3,1.09,3.41,1.17v-9h-3.02\n            v-1.39h3.02V32.1c-0.59-0.22-1.04-0.54-1.37-0.97c-0.32-0.43-0.49-0.93-0.49-1.48c0-0.71,0.25-1.31,0.75-1.81\n            c0.5-0.49,1.1-0.74,1.8-0.74c0.71,0,1.31,0.25,1.81,0.74c0.49,0.49,0.74,1.1,0.74,1.81c0,0.56-0.16,1.05-0.49,1.48\n            c-0.32,0.43-0.78,0.76-1.37,0.97v1.72h3.02v1.39h-3.02v9c1.11-0.08,2.25-0.47,3.41-1.17s1.98-1.5,2.46-2.4l-1.35-1.35L67,36.95\n            v2.32c0,0.79-0.24,1.56-0.73,2.32c-0.49,0.76-1.13,1.44-1.91,2.04c-0.79,0.6-1.68,1.09-2.68,1.46\n            C60.68,45.46,59.67,45.65,58.65,45.65z M58.65,30.8c0.32,0,0.6-0.12,0.82-0.35c0.22-0.23,0.34-0.5,0.34-0.81\n            c0-0.32-0.11-0.6-0.34-0.82s-0.5-0.34-0.82-0.34c-0.31,0-0.58,0.11-0.81,0.34c-0.23,0.22-0.35,0.5-0.35,0.82\n            c0,0.31,0.12,0.58,0.35,0.81C58.07,30.69,58.34,30.8,58.65,30.8z\"/>\n          <path class=\"st1\" d=\"M58.65,46.15c-1.08,0-2.15-0.2-3.2-0.59c-1.04-0.39-1.98-0.9-2.81-1.53c-0.83-0.63-1.51-1.36-2.03-2.17\n            c-0.54-0.84-0.81-1.71-0.81-2.59v-2.32c0-0.19,0.11-0.36,0.28-0.45c0.17-0.08,0.37-0.06,0.52,0.05l3.13,2.34\n            c0.12,0.09,0.19,0.22,0.2,0.36c0.01,0.14-0.04,0.29-0.15,0.39l-1.07,1.07c0.45,0.69,1.15,1.33,2.09,1.89\n            c0.9,0.54,1.79,0.89,2.65,1.04v-7.94h-2.52c-0.28,0-0.5-0.22-0.5-0.5v-1.39c0-0.28,0.22-0.5,0.5-0.5h2.52v-0.88\n            c-0.53-0.25-0.95-0.58-1.27-1.01c-0.39-0.52-0.59-1.12-0.59-1.78c0-0.85,0.3-1.58,0.9-2.17c0.6-0.59,1.32-0.89,2.15-0.89\n            c0.84,0,1.57,0.3,2.16,0.89c0.59,0.59,0.89,1.32,0.89,2.16c0,0.66-0.2,1.26-0.59,1.78c-0.32,0.42-0.74,0.76-1.27,1.01v0.88h2.52\n            c0.28,0,0.5,0.22,0.5,0.5v1.39c0,0.28-0.22,0.5-0.5,0.5h-2.52v7.94c0.86-0.14,1.75-0.49,2.65-1.04c0.94-0.57,1.64-1.2,2.09-1.89\n            l-1.07-1.07c-0.1-0.1-0.16-0.24-0.15-0.39c0.01-0.14,0.08-0.28,0.2-0.36l3.13-2.34c0.15-0.11,0.35-0.13,0.52-0.05\n            c0.17,0.08,0.28,0.26,0.28,0.45v2.32c0,0.88-0.27,1.75-0.81,2.59c-0.52,0.8-1.2,1.53-2.03,2.17c-0.82,0.63-1.77,1.15-2.81,1.53\n            C60.8,45.95,59.72,46.15,58.65,46.15z M50.8,37.95v1.32c0,0.69,0.22,1.38,0.65,2.05c0.45,0.71,1.06,1.35,1.8,1.91\n            c0.75,0.57,1.6,1.04,2.55,1.39c1.87,0.7,3.83,0.7,5.71,0c0.95-0.35,1.8-0.82,2.55-1.39c0.74-0.56,1.34-1.21,1.8-1.92\n            c0.43-0.67,0.65-1.36,0.65-2.05v-1.32l-1.87,1.4l0.94,0.94c0.16,0.16,0.19,0.39,0.09,0.59c-0.52,0.97-1.41,1.85-2.64,2.59\n            c-1.22,0.74-2.45,1.16-3.64,1.24c-0.13,0.01-0.27-0.04-0.38-0.13c-0.1-0.09-0.16-0.23-0.16-0.37v-9c0-0.28,0.22-0.5,0.5-0.5h2.52\n            v-0.39h-2.52c-0.28,0-0.5-0.22-0.5-0.5V32.1c0-0.21,0.13-0.4,0.33-0.47c0.5-0.18,0.87-0.45,1.14-0.81\n            c0.26-0.35,0.39-0.74,0.39-1.18c0-0.58-0.2-1.05-0.6-1.46c-0.4-0.4-0.88-0.6-1.46-0.6c-0.56,0-1.04,0.2-1.45,0.6\n            c-0.41,0.4-0.6,0.88-0.6,1.45c0,0.45,0.13,0.84,0.39,1.18c0.27,0.36,0.64,0.62,1.14,0.81c0.2,0.07,0.33,0.26,0.33,0.47v1.72\n            c0,0.28-0.22,0.5-0.5,0.5h-2.52v0.39h2.52c0.28,0,0.5,0.22,0.5,0.5v9c0,0.14-0.06,0.27-0.16,0.37c-0.1,0.1-0.25,0.15-0.38,0.13\n            c-1.19-0.08-2.41-0.5-3.63-1.24c-1.23-0.75-2.12-1.62-2.64-2.59c-0.1-0.19-0.07-0.43,0.09-0.59l0.94-0.94L50.8,37.95z\n            M58.65,31.3c-0.45,0-0.84-0.17-1.17-0.5c-0.32-0.32-0.49-0.73-0.49-1.17c0-0.46,0.17-0.87,0.5-1.18\n            c0.67-0.64,1.71-0.62,2.34,0.01c0.32,0.31,0.48,0.72,0.48,1.18c0,0.44-0.16,0.83-0.48,1.16C59.52,31.13,59.11,31.3,58.65,31.3z\n            M58.65,28.98c-0.18,0-0.33,0.06-0.46,0.2c-0.13,0.13-0.2,0.28-0.2,0.46c0,0.17,0.06,0.32,0.2,0.46\n            c0.29,0.29,0.67,0.27,0.92,0.01c0.13-0.14,0.2-0.29,0.2-0.46c0-0.19-0.06-0.34-0.19-0.47C58.99,29.04,58.84,28.98,58.65,28.98z\"\n            />\n        </g>\n      </g>\n    </switch>\n  </svg>\n  <div class=\"block-label\">${model.get('label')}</div>\n  </div>`\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/banner\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: banner\n   * @author Nafis Rubio\n   * @since 18/09/2020\n   * @copyright (C) 2020 BigOrdr\n   * @description: $DESCRIPTION$\n   */\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const pluginName = 'bigordr-banner';\n    const pluginBlockId = `${pluginName}-block`;\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const margin0 = 'margin-0';\n    const {\n      intl,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const blockLabel = intl.t(pluginName);\n    const componentName = intl.t(pluginName);\n    DomComponents.addType(pluginName, {\n      extend: 'bigordr-strip-image',\n      model: {\n        defaults: {\n          removable: true,\n          copyable: true,\n          resizable: true,\n          draggable: true,\n          style: {\n            'background-attachment': 'scroll',\n            'background-image': 'url(https://picsum.photos/512.webp?grayscale&blur=1)',\n            'background-position': 'center center',\n            'background-repeat': 'no-repeat',\n            'background-size': 'cover',\n            'object-fit': 'cover',\n            height: 'auto',\n            width: '100%'\n          },\n          attributes: {\n            'data-class': 'bigordr-banner'\n          },\n          name: componentName,\n          components: [{\n            selectable: false,\n            type: 'row',\n            style: {\n              padding: '0px 0px 0px 0px'\n            },\n            components: [{\n              type: 'cell',\n              removable: true,\n              draggable: false\n            }, {\n              type: 'cell',\n              removable: true,\n              draggable: false,\n              components: [{\n                tagName: 'section',\n                name: intl.t('text-block'),\n                style: {\n                  margin: '10% 0 10% 0',\n                  padding: '10px',\n                  'text-align': 'center'\n                },\n                components: [{\n                  type: 'text',\n                  style: {\n                    padding: '10px'\n                  },\n                  classes: ['bigordr-title', margin0],\n                  tagName: 'h1',\n                  name: intl.t('title'),\n                  content: 'Insert title here',\n                  traits: [{\n                    type: 'bigordr-animation-text-trait',\n                    name: 'animationSelector',\n                    label: intl.t('select animation')\n                  }, {\n                    type: 'bigordr-animation-iteration-trait',\n                    name: 'animationIterationSelector',\n                    label: intl.t('select iteration count')\n                  }, {\n                    type: 'bigordr-animation-duration-trait',\n                    name: 'animationDuration',\n                    label: intl.t('enter duration (sec)')\n                  }]\n                }, {\n                  type: 'text',\n                  style: {\n                    padding: '10px'\n                  },\n                  tagName: 'h2',\n                  content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce lobortis ullamcorper lorem. Donec tempor lectus sapien, eu consequat dolor vehicula eu. Vestibulum non felis blandit, condimentum mi ac, pulvinar dolor.',\n                  traits: [{\n                    type: 'bigordr-animation-trait',\n                    name: 'animationSelector',\n                    label: intl.t('select animation')\n                  }, {\n                    type: 'bigordr-animation-iteration-trait',\n                    name: 'animationIterationSelector',\n                    label: intl.t('select iteration count')\n                  }, {\n                    type: 'bigordr-animation-duration-trait',\n                    name: 'animationDuration',\n                    label: intl.t('enter duration (sec)')\n                  }],\n                  classes: [margin0]\n                }]\n              }]\n            }, {\n              type: 'cell',\n              removable: true,\n              draggable: false\n            }]\n          }],\n          traits: []\n        }\n      }\n    });\n    BlockManager.add(pluginBlockId, {\n      label: blockLabel,\n      category: categories.complex,\n      content: {\n        type: pluginName\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n    <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 1024 760\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;\">\n    <g transform=\"matrix(1.08549,0,0,1.08549,-50.9445,-285.797)\">\n        <g>\n            <g transform=\"matrix(1.37733,0,0,1.65228,-180.565,-864.206)\">\n                <path d=\"M207.809,832.911L800.909,832.911\" style=\"fill:none;stroke:black;stroke-width:27.25px;\"/>\n            </g>\n            <g transform=\"matrix(1,0,0,1,118.44,399.43)\">\n                <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:398.39px;stroke-linecap:square;\"/>\n                </g>\n                <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:398.39px;stroke-linecap:square;\"/>\n                </g>\n            </g>\n            <g transform=\"matrix(-1,-1.22465e-16,1.22465e-16,-1,918.773,624.57)\">\n                <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:398.39px;stroke-linecap:square;\"/>\n                </g>\n                <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:398.39px;stroke-linecap:square;\"/>\n                </g>\n            </g>\n        </g>\n        <g transform=\"matrix(1,0,0,1,5.14536,37.2616)\">\n            <g>\n                <g transform=\"matrix(1.00794,0,0,0.792537,12.4421,44.5258)\">\n                    <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:35.56px;stroke-linecap:square;stroke-linejoin:miter;\"/>\n                </g>\n                <g transform=\"matrix(1.08069,0,0,1.08069,-48.6111,-30.4861)\">\n                    <g transform=\"matrix(1.51835,-6.97105e-19,-6.97105e-19,1.52404,-502.354,-212.761)\">\n                        <circle cx=\"567.803\" cy=\"388.754\" r=\"27.858\" style=\"fill:rgb(209,209,209);stroke:rgb(209,209,209);stroke-width:16.81px;\"/>\n                    </g>\n                    <g transform=\"matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)\">\n                        <g transform=\"matrix(-0.93623,0,0,0.939727,1014.78,130.716)\">\n                            <path d=\"M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z\" style=\"fill:rgb(209,209,209);\"/>\n                        </g>\n                        <g transform=\"matrix(-1.01027,0,0,0.756475,916.709,228.489)\">\n                            <path d=\"M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z\" style=\"fill:rgb(209,209,209);\"/>\n                        </g>\n                    </g>\n                </g>\n            </g>\n        </g>\n    </g>\n    <g transform=\"matrix(0.644138,0,0,0.60847,234.912,-33.029)\">\n        <text x=\"260.627px\" y=\"673.073px\" style=\"font-family:'Helvetica-Bold', 'Helvetica';font-weight:700;font-size:551.145px;\">T</text>\n    </g>\n    <g transform=\"matrix(1.23491,0,0,1.23491,-148.637,-397.634)\">\n        <text x=\"299.313px\" y=\"922.5px\" style=\"font-family:'AppleSDGothicNeo-Bold', 'Apple SD Gothic Neo';font-weight:700;font-size:184.248px;\">背景圖</text>\n    </g>\n    </svg>\n    <div class=\"block-label\">${model.get('label')}</div>\n    </div>`\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/blocks\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global grapesjs */\n\n  const pluginName = 'bigordr-blocks';\n  const contentComponentClassName = 'bigordr-row';\n  const rowComponentClassName = 'bigordr-inner-row';\n  const cellComponentClassName = 'bigordr-cell';\n  const Plugin = grapesjs.plugins.add(pluginName, (editor, options) => {\n    const blocksOptions = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl = {\n        t: foo => foo\n      },\n      /** @type {Categories} */\n      categories\n    } = blocksOptions;\n\n    /**\n     * merge default options with a property from options\n     *\n     * @param {string} optionsProp\n     * @param {object} defaultOptions\n     */\n    const _mergeOptions = (optionsProp, defaultOptions) => {\n      return R.merge(defaultOptions, R.prop(optionsProp, options));\n    };\n    const BlockManager = editor.BlockManager;\n\n    // const styleCell = `\n    //   .${cellComponentClassName} {\n    //     min-height: 50px;\n    //     flex-grow: 1;\n    //     flex-basis: 100%;\n    //     font-family: Arial, Helvetica, sans-serif;\n    //   }\n    // `\n\n    // const resizerBtm = { tl: 0, tc: 1, tr: 0, cl: 0, cr: 0, bl: 0, br: 0, minDim }\n    const resizerRight = {\n      tl: 0,\n      tc: 0,\n      tr: 0,\n      cl: 1,\n      cr: 1,\n      bl: 0,\n      br: 0,\n      bc: 0\n    };\n    resizerRight.keyWidth = 'flex-basis';\n    const resizerImg = {\n      tl: 1,\n      tc: 0,\n      tr: 1,\n      cl: 0,\n      cr: 0,\n      bl: 1,\n      bc: 0,\n      br: 1,\n      ratioDefault: 1\n    };\n    const privateCls = [`.${rowComponentClassName}`, `.${cellComponentClassName}`];\n    editor.on('selector:add', selector => privateCls.indexOf(selector.getFullName()) >= 0 && selector.set('private', 1));\n    const attrsToString = attrs => {\n      const result = [];\n      for (const key in attrs) {\n        let value = attrs[key];\n        const toParse = value instanceof Array || value instanceof Object;\n        value = toParse ? JSON.stringify(value) : value;\n        result.push(`${key}=${toParse ? `'${value}'` : `\"${value}\"`}`);\n      }\n      return result.length ? ` ${result.join(' ')}` : '';\n    };\n    const isCellDraggable = {\n      'data-gjs-draggable': `.${cellComponentClassName}, [data-gjs-type='link']`\n    };\n    // curried function to use when wanting to add isCellDraggable attribute\n    const mergeWithOnlyCellDraggableAttrs = (attrs = {}) => {\n      attrs = R.mergeRight(isCellDraggable)(attrs);\n      return attrsToString(attrs);\n    };\n    const onlyCellDraggableAttrString = attrsToString(isCellDraggable);\n\n    // const colAttr = {\n    //   class: cellComponentClassName,\n    //   'data-gjs-draggable': `.${contentComponentClassName}, .${rowComponentClassName}`,\n    //   'data-gjs-resizable': resizerRight,\n    //   'data-gjs-name': 'Cell',\n    //   'data-gjs-type': 'cell',\n    //   'data-gjs-unstylable': ['width'],\n    //   'data-gjs-stylable-require': ['flex-basis']\n    // }\n    // const attrsCell = attrsToString(colAttr)\n\n    // BlockManager.add('text', _mergeOptions('text', {\n    //   type: 'text',\n    //   category: categories.basic,\n    //   content: {\n    //     type: 'text',\n    //     content: 'Insert your text here',\n    //     style: { padding: '10px' },\n    //     draggable: `.${cellComponentClassName}, [data-gjs-type='link']`\n    //   },\n    //   render: () => `\n    //     <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/'\n    // style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'> <g transform='matrix(1,0,0,1,49.9262,39.6375)'> <g transform='matrix(1,0,0,1,-34.9989,-70.467)'> <rect x='203.744' y='249.501' width='586.657'\n    // height='586.657' style='fill:white;stroke:black;stroke-width:15px;'/> </g> <g transform='matrix(1,0,0,1,-57.9517,-98.8077)'> <rect x='765.514' y='816.659' width='95.679' height='95.679'/> </g> <g\n    // transform='matrix(1,0,0,1,-644.609,-98.8077)'> <rect x='765.514' y='816.659' width='95.679' height='95.679'/> </g> <g transform='matrix(1,0,0,1,-644.609,-685.465)'> <rect x='765.514' y='816.659' width='95.679' height='95.679'/> </g>\n    // <g transform='matrix(1,0,0,1,-57.9517,-685.465)'> <rect x='765.514' y='816.659' width='95.679' height='95.679'/> </g> <g transform='matrix(0.715811,0,0,0.676173,154.154,151.358)'> <g\n    // transform='matrix(551.145,0,0,551.145,260.627,673.073)'> <path d='M0.599,-0.72L0.599,-0.592L0.384,-0.592L0.384,0L0.232,0L0.232,-0.592L0.016,-0.592L0.016,-0.72L0.599,-0.72Z' style='fill-rule:nonzero;'/> </g> </g> </g> </svg> ` }))\n\n    // const attrsText = mergeWithOnlyCellDraggableAttrs({\n    //   style: 'padding:10px'\n    // })\n    // const attrsTextBlock = mergeWithOnlyCellDraggableAttrs({\n    //   style: 'padding:10px'\n    // })\n\n    // BlockManager.add('text-block', _mergeOptions('text-block', {\n    //   label: 'Text section',\n    //   category: categories.basic,\n    //   type: 'text-block',\n    //   content: `<section ${attrsTextBlock}>\n    //     <h1 ${onlyCellDraggableAttrString} class='title'>Insert title here</h1>\n    //     <p ${attrsText} style='padding:0'>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</p>\n    //   </section>`,\n    //   render: () => `\n    //     <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/'\n    // style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'> <g transform='matrix(1,0,0,1,49.9262,39.6375)'> <g transform='matrix(1,0,0,1,-34.9989,-70.467)'> <rect x='203.744' y='249.501' width='586.657'\n    // height='586.657' style='fill:white;stroke:black;stroke-width:15px;'/> </g> <g transform='matrix(1,0,0,1,-57.9517,-98.8077)'> <rect x='765.514' y='816.659' width='95.679' height='95.679'/> </g> <g\n    // transform='matrix(1,0,0,1,-644.609,-98.8077)'> <rect x='765.514' y='816.659' width='95.679' height='95.679'/> </g> <g transform='matrix(1,0,0,1,-644.609,-685.465)'> <rect x='765.514' y='816.659' width='95.679' height='95.679'/> </g>\n    // <g transform='matrix(1,0,0,1,-57.9517,-685.465)'> <rect x='765.514' y='816.659' width='95.679' height='95.679'/> </g> </g> <g transform='matrix(0.697024,0,0,0.646383,87.8947,149.831)'> <rect x='301.902' y='349.059' width='385.98'\n    // height='98.525'/> </g> <g transform='matrix(1.11832,0,0,1,-62.6481,-73.0593)'> <rect x='322.785' y='550.771' width='382.132' height='25.78'/> </g> <g transform='matrix(1.11832,0,0,1,-62.6481,-21.5278)'> <rect x='322.785' y='550.771'\n    // width='382.132' height='25.78'/> </g> <g transform='matrix(1.11832,0,0,1,-62.6481,24.6035)'> <rect x='322.785' y='550.771' width='382.132' height='25.78'/> </g> <g transform='matrix(1.11832,0,0,1,-62.6481,71.9924)'> <rect x='322.785'\n    // y='550.771' width='382.132' height='25.78'/> </g> </svg> ` }))\n\n    /*\n      BlockManager.add('link-block', _mergeOptions('link-block', {\n        label: 'Link Block',\n        category: categories.basic,\n        content: {\n          type: 'link',\n          editable: false,\n          droppable: true,\n          draggable: true,\n          style: {\n            display: 'block',\n            padding: '0',\n            width: '100%',\n            'min-height': '50px',\n            'min-width': '50px'\n          }\n        },\n        render: () => `\n          <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n            <g transform='matrix(1,0,0,1,49.9262,39.6375)'>\n                <g transform='matrix(1,0,0,1,-34.9989,-70.467)'>\n                    <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:15px;'/>\n                </g>\n                <g transform='matrix(1,0,0,1,-57.9517,-98.8077)'>\n                    <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n                </g>\n                <g transform='matrix(1,0,0,1,-644.609,-98.8077)'>\n                    <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n                </g>\n                <g transform='matrix(1,0,0,1,-644.609,-685.465)'>\n                    <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n                </g>\n                <g transform='matrix(1,0,0,1,-57.9517,-685.465)'>\n                    <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n                </g>\n            </g>\n            <g transform='matrix(8.41257e-16,13.7388,-13.7388,8.41257e-16,684.75,346.784)'>\n                <path d='M5.563,0C4.137,0 2.707,0.543 1.625,1.625C-0.539,3.789 -0.539,7.336 1.625,9.5L5.281,13.156C5.668,13.555 6.305,13.559 6.703,13.172C7.102,12.785 7.105,12.148 6.719,11.75L3.031,8.063C1.633,6.664 1.633,4.43 3.031,3.031C4.43,1.633 6.664,1.633 8.063,3.031L12.969,7.938C14.367,9.336 14.367,11.57 12.969,12.969C12.805,13.133 12.621,13.25 12.438,13.375C11.98,13.688 11.859,14.309 12.172,14.766C12.484,15.223 13.105,15.344 13.563,15.031C13.848,14.836 14.125,14.625 14.375,14.375C16.539,12.211 16.539,8.664 14.375,6.5L9.5,1.625C8.418,0.543 6.988,0 5.563,0ZM10.781,8.875C10.738,8.883 10.695,8.895 10.656,8.906C10.508,8.938 10.371,9 10.25,9.094C10.039,9.254 9.82,9.43 9.625,9.625C7.461,11.789 7.461,15.336 9.625,17.5L14.5,22.375C16.664,24.539 20.211,24.539 22.375,22.375C24.539,20.211 24.539,16.664 22.375,14.5L18.719,10.875C18.477,10.578 18.09,10.441 17.715,10.527C17.344,10.613 17.051,10.906 16.965,11.277C16.879,11.652 17.016,12.039 17.313,12.281L20.969,15.938C22.367,17.336 22.367,19.57 20.969,20.969C19.57,22.367 17.336,22.367 15.938,20.969L11.031,16.063C9.633,14.664 9.633,12.43 11.031,11.031C11.152,10.906 11.301,10.82 11.438,10.719C11.84,10.473 12.016,9.977 11.855,9.531C11.699,9.086 11.25,8.813 10.781,8.875Z' style='fill-rule:nonzero;'/>\n            </g>\n          </svg>\n        `\n      }))\n    */\n\n    BlockManager.add('optimized-image', _mergeOptions('optimized-image', {\n      label: intl.t('image'),\n      category: categories.basic,\n      content: {\n        type: 'optimized-image',\n        imgType: 'optimized-image',\n        draggable: `.${cellComponentClassName}, [data-gjs-type='link']`,\n        resizable: resizerImg,\n        activeOnRender: 1\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n      <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n        <g transform='matrix(1,0,0,1,-1.46126,37.2616)'>\n            <g>\n                <g>\n                    <g transform='matrix(1.00794,0,0,0.792537,12.4421,44.5258)'>\n                        <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:38.6px;'/>\n                    </g>\n                    <g transform='matrix(1.08069,0,0,1.08069,-48.6111,-30.4861)'>\n                        <g transform='matrix(1.51835,-6.97105e-19,-6.97105e-19,1.52404,-502.354,-212.761)'>\n                            <circle cx='567.803' cy='388.754' r='27.858' style='stroke:black;stroke-width:18.25px;stroke-linecap:round;stroke-linejoin:round;'/>\n                        </g>\n                        <g transform='matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)'>\n                            <g transform='matrix(-0.93623,0,0,0.939727,1014.78,130.716)'>\n                                <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                            </g>\n                            <g transform='matrix(-1.01027,0,0,0.756475,916.709,228.489)'>\n                                <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                            </g>\n                        </g>\n                    </g>\n                </g>\n            </g>\n        </g>\n      </svg>\n      <div class=\"block-label\">${model.get('label')}</div>\n      </div>\n    `\n    }));\n    editor.Commands.add('core:component-delete', {\n      run(ed, sender, opts = {}) {\n        let components = opts.component || ed.getSelectedAll();\n        components = R.is(Array, components) ? [...components] : [components];\n\n        // It's important to deselect components first otherwise,\n        // with undo, the component will be set with the wrong `collection`\n        ed.select(null);\n        components.forEach(component => {\n          if (!component || !component.get('removable')) {\n            return;\n          }\n          if (R.pathEq(['attributes', 'type'], 'cell', component)) {\n            const parent = component.view.$el[0].parentElement;\n            const parentClassNames = R.propOr([], 'classList')(parent);\n            const parentIsContentRow = R.includes('bigordr-row', parentClassNames);\n            const parentIsInnerRow = R.includes('bigordr-inner-row', parentClassNames);\n            const parentParentIsTabContent = component?.parent()?.parent()?.get('type') === 'tab-content';\n            const parentIsTabContent = component?.parent()?.get('type') === 'tab-content';\n            const isLastCell = R.pipe(R.propOr([], 'children'), R.length, R.equals(1))(parent);\n            if ((parentIsInnerRow || parentIsContentRow) && isLastCell && !parentParentIsTabContent && !parentIsTabContent) {\n              const coll = component.collection;\n              const row = coll.parent.trigger('component:destroy');\n              row.remove();\n            }\n            if ((parentParentIsTabContent || parentIsTabContent) && !isLastCell && (parentIsInnerRow || parentIsContentRow)) {\n              const coll = component.collection;\n              component.trigger('component:destroy');\n              coll && coll.remove(component);\n              return;\n            }\n          }\n          const parentParentIsTabContent = component?.parent()?.parent()?.get('type') === 'tab-content';\n          const parentIsTabContent = component?.parent()?.get('type') === 'tab-content';\n          if (component && !parentParentIsTabContent && !parentIsTabContent) {\n            const coll = component.collection;\n            component.trigger('component:destroy');\n            coll && coll.remove(component);\n          } else if (component && parentIsTabContent) {\n            const tabComponent = component?.parent();\n            const rowComponents = tabComponent.findType('row');\n            const allowRemoveSelectedRowComponent = rowComponents.length > 1;\n            if (!allowRemoveSelectedRowComponent) {\n              return;\n            }\n            const coll = component.collection;\n            component.trigger('component:destroy');\n            coll && coll.remove(component);\n          }\n        });\n        return components;\n      }\n    });\n    editor.Commands.add('tlb-move', {\n      run(ed, sender, opts = {}) {\n        let dragger;\n        const em = ed.getModel();\n        const event = opts && opts.event;\n        const {\n          target\n        } = opts;\n        const sel = target || ed.getSelected();\n        const selAll = target ? [target] : [...ed.getSelectedAll()];\n        const nativeDrag = event && event.type === 'dragstart';\n        const defComOptions = {\n          preserveSelected: 1\n        };\n        const modes = ['absolute', 'translate'];\n        const hideTlb = () => em.stopDefault(defComOptions);\n\n        // Dirty patch to prevent parent selection on drop (in absolute mode)\n        em.set('_cmpDrag', 1);\n        if (!sel || !sel.get('draggable')) {\n          console.warn('The element is not draggable');\n          return;\n        }\n        if (R.pathEq(['attributes', 'type'], 'cell', sel)) {\n          const parent = sel.view.$el[0].parentElement;\n          const parentClassNames = R.propOr([], 'classList')(parent);\n          const parentIsContentRow = R.includes('bigordr-row', parentClassNames);\n          const parentIsInnerRow = R.includes('bigordr-inner-row', parentClassNames);\n          const isLastCell = R.pipe(R.propOr([], 'children'), R.length, R.equals(1))(parent);\n          if ((parentIsInnerRow || parentIsContentRow) && isLastCell) {\n            return;\n          }\n        }\n        const mode = sel.get('dmode') || em.get('dmode');\n\n        // Without setTimeout the ghost image disappears\n        nativeDrag ? setTimeout(hideTlb, 0) : hideTlb();\n        const onEnd = (e, opts) => {\n          em.runDefault(defComOptions);\n          selAll.forEach(sel => sel.set('status', 'selected'));\n          ed.select(selAll);\n          sel.emitUpdate();\n        };\n        if (R.includes(mode, modes)) {\n          // TODO move grabbing func in editor/canvas from the Sorter\n          dragger = ed.runCommand('core:component-drag', {\n            guidesInfo: 1,\n            mode,\n            target: sel,\n            onEnd,\n            event\n          });\n        } else {\n          if (nativeDrag) {\n            event.dataTransfer.setDragImage(sel.view.el, 0, 0);\n          }\n          const cmdMove = ed.Commands.get('move-comp');\n          cmdMove.onEndMoveFromModel = onEnd;\n          cmdMove.initSorterFromModels(selAll);\n        }\n        selAll.forEach(sel => sel.set('status', 'freezed-selected'));\n      }\n    });\n  });\n  var _default = _exports.default = Plugin;\n});","define(\"client/pods/grapesjs/plugins/blogs\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const bigordrBlogs = 'bigordr-blogs';\n    const bigordrBlogsWrapper = 'bigordr-blogs-wrapper';\n    const columnComponentClassName = 'bigordr-cell';\n    const blockId = `${bigordrBlogs}-block`;\n    const pluginOptions = R.pathOr({}, ['Config', 'pluginsOpts', bigordrBlogs])(editor);\n    const {\n      // disabled,\n      onDbClick,\n      onDrop,\n      intl,\n      isReadonly,\n      onRender,\n      /** @type {Categories} */\n      categories,\n      hasBlogs = true\n    } = pluginOptions;\n\n    // if (disabled) {\n    //   return\n    // }\n\n    const blockLabel = intl.t('blogs');\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const styles = `\n    <style>\n      .bigordr-blog {\n        display: inline-block;\n      }\n      .bigordr-blogs-wrapper {\n        display: flex;\n      }\n    </style>\n  `;\n    const setBlogImage = (component, value) => {\n      if (!value) {\n        value = component.get('defaultImage');\n      }\n      component.addAttributes({\n        src: value\n      });\n    };\n    const setBlogId = (component, value) => {\n      if (!value) {\n        value = component.get('itemKey');\n      }\n      const bigordrProductsId = component.findType('bigordr-blog-id').firstObject;\n      if (bigordrProductsId) {\n        const bigordrProductsIdAttr = bigordrProductsId.getAttributes();\n        bigordrProductsIdAttr['data-bigordr-blog'] = value;\n        bigordrProductsId.setAttributes(bigordrProductsIdAttr);\n      }\n    };\n\n    // Create blog component\n    DomComponents.addType('bigordr-blog', {\n      model: {\n        defaults: {\n          defaultImage: 'https://via.placeholder.com/300?text=Blog',\n          attributes: {\n            src: 'https://via.placeholder.com/300?text=Blog'\n          },\n          tagName: 'img',\n          classes: ['bigordr-blog'],\n          badgable: false,\n          copyable: false,\n          draggable: false,\n          droppable: false,\n          editable: false,\n          highlightable: false,\n          hoverable: false,\n          layerable: false,\n          propagate: ['badgable', 'copyable', 'draggable', 'droppable', 'editable', 'highlightable', 'hoverable', 'layerable', 'removable', 'resizable', 'selectable', 'stylable'],\n          removable: false,\n          resizable: false,\n          selectable: false,\n          stylable: false,\n          traits: []\n        },\n        init() {\n          setBlogId(this);\n          setBlogImage(this);\n        },\n        updated(property, value) {\n          if (property === 'itemKey') {\n            setBlogId(this, value);\n          }\n          if (property === 'defaultImage') {\n            setBlogImage(this, value);\n          }\n        }\n      },\n      view: {\n        onRender() {\n          if (onRender) {\n            onRender(this.model);\n          }\n        }\n      }\n    });\n    DomComponents.addType(bigordrBlogs, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          badgable: false,\n          copyable: false,\n          draggable: false,\n          droppable: false,\n          editable: false,\n          highlightable: false,\n          hoverable: false,\n          layerable: false,\n          propagate: ['badgable', 'copyable', 'draggable', 'droppable', 'editable', 'highlightable', 'hoverable', 'layerable', 'removable', 'resizable', 'selectable', 'stylable'],\n          removable: false,\n          resizable: false,\n          selectable: false,\n          stylable: false,\n          classes: ['bigordr-blogs'],\n          components: [{\n            type: 'bigordr-blog'\n          }],\n          traits: []\n        }\n      }\n    });\n    DomComponents.addType(bigordrBlogsWrapper, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          name: blockLabel,\n          draggable: `.${columnComponentClassName}`,\n          droppable: false,\n          classes: ['bigordr-blogs-wrapper'],\n          components: [{\n            type: bigordrBlogs\n          }],\n          traits: []\n        }\n      },\n      view: {\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick() {\n          const parentType = this.model.parent().get('type');\n          if (onDbClick && !isReadonly && parentType !== 'bigordr-blogs') {\n            onDbClick(this.model);\n          }\n        }\n      }\n    });\n    if (hasBlogs) {\n      BlockManager.add(blockId, {\n        label: blockLabel,\n        category: categories.basic,\n        content: {\n          type: bigordrBlogsWrapper,\n          draggable: `.${columnComponentClassName}`,\n          content: styles\n        },\n        render: ({\n          model\n        }) => `\n      <div class=\"gjs-block__media\">\n      <svg viewBox=\"0 -20 512 511\" width=\"100%\" height=\"100%\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m67.179688 48.394531h-.101563c-5.523437 0-10 4.476563-10 10 0 5.523438 4.476563 10 10 10h.101563c5.523437 0 10-4.476562 10-10 0-5.523437-4.476563-10-10-10zm0 0\"/><path d=\"m116.710938 48.394531h-.101563c-5.523437 0-10 4.476563-10 10 0 5.523438 4.476563 10 10 10h.101563c5.523437 0 10-4.476562 10-10 0-5.523437-4.476563-10-10-10zm0 0\"/><path d=\"m166.242188 48.394531h-.101563c-5.523437 0-10 4.476563-10 10 0 5.523438 4.476563 10 10 10h.101563c5.523437 0 10-4.476562 10-10 0-5.523437-4.476563-10-10-10zm0 0\"/><path d=\"m444.308594 48.394531h-192.929688c-5.523437 0-10 4.476563-10 10 0 5.519531 4.476563 10 10 10h192.929688c5.523437 0 10-4.480469 10-10 0-5.523437-4.476563-10-10-10zm0 0\"/><path d=\"m262.890625 452.4375c-2.628906 0-5.199219 1.070312-7.070313 2.929688-1.859374 1.859374-2.929687 4.441406-2.929687 7.070312s1.070313 5.210938 2.929687 7.070312c1.871094 1.859376 4.441407 2.929688 7.070313 2.929688s5.210937-1.070312 7.070313-2.929688c1.867187-1.859374 2.929687-4.441406 2.929687-7.070312s-1.0625-5.210938-2.929687-7.070312c-1.859376-1.859376-4.441407-2.929688-7.070313-2.929688zm0 0\"/><path d=\"m480.230469.5h-448.460938c-17.515625 0-31.769531 14.253906-31.769531 31.769531v408.398438c0 17.519531 14.253906 31.769531 31.769531 31.769531h189.230469c5.523438 0 10-4.476562 10-10s-4.476562-10-10-10h-189.230469c-6.488281 0-11.769531-5.277344-11.769531-11.769531v-324.378907h472v324.378907c0 6.488281-5.28125 11.769531-11.769531 11.769531h-176.5625c-5.523438 0-10 4.476562-10 10s4.476562 10 10 10h176.5625c17.515625 0 31.769531-14.25 31.769531-31.769531v-408.398438c0-17.515625-14.253906-31.769531-31.769531-31.769531zm-460.230469 95.785156v-64.015625c0-6.488281 5.28125-11.769531 11.769531-11.769531h448.460938c6.488281 0 11.769531 5.28125 11.769531 11.769531v64.019531h-472zm0 0\"/><path d=\"m178.039062 230.5c0-19.851562-16.148437-36-36-36h-33.667968c-5.523438 0-10 4.476562-10 10v104c0 5.523438 4.476562 10 10 10h33.667968c19.851563 0 36-16.148438 36-36 0-10.214844-4.28125-19.441406-11.140624-26 6.859374-6.558594 11.140624-15.785156 11.140624-26zm-20 52c0 8.820312-7.179687 16-16 16h-23.667968v-32h23.667968c8.820313 0 16 7.175781 16 16zm-39.667968-36v-32h23.667968c8.824219 0 16 7.179688 16 16s-7.175781 16-16 16zm0 0\"/><path d=\"m206.648438 194.5c-5.523438 0-10 4.476562-10 10v80.871094c0 18.269531 14.863281 33.128906 33.128906 33.128906 5.523437 0 10-4.476562 10-10s-4.476563-10-10-10c-7.238282 0-13.128906-5.890625-13.128906-13.128906v-80.871094c0-5.523438-4.476563-10-10-10zm0 0\"/><path d=\"m324.867188 282.289062c0-19.96875-16.242188-36.214843-36.210938-36.214843s-36.210938 16.246093-36.210938 36.214843 16.246094 36.210938 36.210938 36.210938c19.96875 0 36.210938-16.242188 36.210938-36.210938zm-52.421876 0c0-8.941406 7.273438-16.214843 16.210938-16.214843s16.210938 7.273437 16.210938 16.214843c0 8.9375-7.269532 16.210938-16.210938 16.210938s-16.210938-7.273438-16.210938-16.210938zm0 0\"/><path d=\"m377.414062 346.5c-8.9375 0-16.210937-7.273438-16.210937-16.210938 0-5.523437-4.476563-10-10-10s-10 4.476563-10 10c0 19.96875 16.246094 36.210938 36.210937 36.210938 19.96875 0 36.214844-16.242188 36.214844-36.210938v-48c0-19.96875-16.246094-36.214843-36.214844-36.214843-19.964843 0-36.210937 16.246093-36.210937 36.214843s16.246094 36.210938 36.210937 36.210938c5.828126 0 11.332032-1.390625 16.214844-3.847656v15.636718c0 8.9375-7.273437 16.210938-16.214844 16.210938zm0-48c-8.9375 0-16.210937-7.273438-16.210937-16.210938 0-8.941406 7.273437-16.214843 16.210937-16.214843 8.941407 0 16.214844 7.273437 16.214844 16.214843 0 8.9375-7.273437 16.210938-16.214844 16.210938zm0 0\"/><path d=\"m108.371094 416.5h295.257812c5.523438 0 10-4.476562 10-10s-4.476562-10-10-10h-295.257812c-5.519532 0-10 4.476562-10 10s4.480468 10 10 10zm0 0\"/></svg><div class=\"block-label\">${model.get('label')}</div>\n      </div>`\n      });\n    }\n    editor.on('block:drag:stop', component => {\n      if (component && component.is && component.is(bigordrBlogsWrapper)) {\n        editor.select(component);\n        if (onDrop) {\n          onDrop(component);\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/button\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const BIGORDR_BUTTON = 'bigordr-button';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', BIGORDR_BUTTON])(editor);\n    const {\n      intl = {\n        t(txt) {\n          return txt;\n        }\n      },\n      /** @type {Categories} */\n      categories,\n      onDbClick,\n      onDrop,\n      isReadonly\n    } = options;\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    DomComponents.addType('button', {\n      model: {\n        defaults: {\n          tagName: 'a',\n          stylable: false,\n          classes: ['button'],\n          draggable: '.bigordr-cell, [data-gjs-type=\"text-block\"]',\n          traits: []\n        },\n        init() {\n          const icon = this.get('icon');\n          if (icon) {\n            this.setIcon(icon);\n          }\n        },\n        setIcon(icon) {\n          const classes = this.getClasses();\n          classes.insertAt(0, 'button');\n          this.setClass(classes);\n          this.set('content', '');\n          this.components({\n            tagName: 'span',\n            classes: ['icon'],\n            components: [{\n              tagName: 'i',\n              classes: icon\n            }]\n          });\n        }\n      }\n    });\n    DomComponents.addType(BIGORDR_BUTTON, {\n      extend: 'button',\n      model: {\n        defaults: {\n          content: 'Button',\n          name: intl.t('button'),\n          classes: ['button'],\n          attributes: {\n            'data-gjs-button-theme': 'button',\n            target: '_blank',\n            rel: 'noreferrer noopener'\n          },\n          traits: [],\n          toolbar: [{\n            attributes: {\n              class: 'fas fa-pencil-alt'\n            },\n            command(editor) {\n              const el = editor.getSelected().getEl();\n              if (onDbClick) {\n                onDbClick(el);\n              }\n            }\n          }, {\n            attributes: {\n              class: 'fas fa-level-up-alt'\n            },\n            command: 'select-parent'\n          }, {\n            attributes: {\n              class: 'fas fa-arrows-alt'\n            },\n            command: 'tlb-move'\n          }, {\n            attributes: {\n              class: 'far fa-clone'\n            },\n            command: 'tlb-clone'\n          }, {\n            attributes: {\n              class: 'fas fa-trash'\n            },\n            command: 'tlb-delete'\n          }]\n          // As by default, traits are binded to attributes, so to define\n          // their initial value we can use attributes\n        },\n        init() {\n          this.on('change:attributes', this.handleTypeChange);\n        },\n        handleTypeChange(model, attributes = {}) {\n          const {\n            content,\n            href = ''\n          } = attributes;\n          if (content) {\n            this.set('content', content);\n          }\n          if (href && !R.includes('https://')(href)) {\n            const validHref = R.pipe(R.unless(R.includes('https://'), R.pipe(R.split('//'), R.takeLast(1), R.prepend('https://'), R.join(''))))(href);\n            const previousAttributes = model.getAttributes();\n            const updatedAttributes = R.mergeRight(previousAttributes, {\n              href: validHref\n            });\n            model.setAttributes(updatedAttributes);\n          }\n        }\n      },\n      view: {\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick() {\n          if (onDbClick && !isReadonly) {\n            onDbClick(this.model);\n          }\n        },\n        // On init you can create listeners, like in the model, or start some other\n        // function at the beginning\n        init({\n          model\n        }) {\n          const attributes = model.getAttributes();\n          attributes.content = model.get('content');\n          model.setAttributes(attributes);\n        }\n      }\n    });\n    BlockManager.add('bigordr-button-block', {\n      label: intl.t('button'),\n      category: categories.basic,\n      content: {\n        type: BIGORDR_BUTTON\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n      <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n        <g transform='matrix(1,0,0,1.20897,0,-211.8)'>\n            <path d='M853.168,517.228C853.168,483.819 820.375,456.694 779.984,456.694L244.016,456.694C203.625,456.694 170.832,483.819 170.832,517.228L170.832,638.296C170.832,671.706 203.625,698.83 244.016,698.83L779.984,698.83C820.375,698.83 853.168,671.706 853.168,638.296L853.168,517.228Z' style='fill:white;stroke:black;stroke-width:31.55px;'/>\n        </g>\n        <g transform='matrix(1,0,0,1,42.6175,-287.434)'>\n            <g transform='matrix(160,0,0,160,220.906,830.15)'>\n                <path d='M0.353,-0.544C0.423,-0.544 0.477,-0.519 0.517,-0.468C0.556,-0.418 0.576,-0.353 0.576,-0.273C0.576,-0.19 0.557,-0.122 0.518,-0.067C0.479,-0.013 0.424,0.014 0.354,0.014C0.31,0.014 0.275,0.005 0.248,-0.012C0.232,-0.023 0.215,-0.041 0.196,-0.067L0.196,0L0.06,0L0.06,-0.719L0.199,-0.719L0.199,-0.463C0.216,-0.488 0.236,-0.507 0.257,-0.52C0.282,-0.536 0.314,-0.544 0.353,-0.544ZM0.317,-0.101C0.353,-0.101 0.381,-0.115 0.4,-0.144C0.42,-0.173 0.43,-0.211 0.43,-0.258C0.43,-0.296 0.425,-0.327 0.416,-0.352C0.397,-0.399 0.363,-0.422 0.313,-0.422C0.263,-0.422 0.228,-0.399 0.209,-0.354C0.199,-0.329 0.194,-0.298 0.194,-0.259C0.194,-0.213 0.204,-0.175 0.225,-0.146C0.245,-0.116 0.276,-0.101 0.317,-0.101Z' style='fill-rule:nonzero;'/>\n            </g>\n            <g transform='matrix(160,0,0,160,318.64,830.15)'>\n                <path d='M0.204,-0.532L0.204,-0.211C0.204,-0.181 0.207,-0.158 0.214,-0.143C0.227,-0.116 0.252,-0.103 0.289,-0.103C0.337,-0.103 0.369,-0.122 0.387,-0.16C0.396,-0.181 0.4,-0.208 0.4,-0.243L0.4,-0.532L0.542,-0.532L0.542,0L0.406,0L0.406,-0.075C0.405,-0.074 0.402,-0.069 0.396,-0.061C0.391,-0.052 0.385,-0.045 0.378,-0.039C0.356,-0.02 0.335,-0.006 0.315,0.001C0.294,0.008 0.271,0.012 0.243,0.012C0.164,0.012 0.111,-0.017 0.084,-0.073C0.069,-0.104 0.061,-0.151 0.061,-0.211L0.061,-0.532L0.204,-0.532Z' style='fill-rule:nonzero;'/>\n            </g>\n            <g transform='matrix(160,0,0,160,416.375,830.15)'>\n                <path d='M0.01,-0.428L0.01,-0.527L0.084,-0.527L0.084,-0.676L0.222,-0.676L0.222,-0.527L0.309,-0.527L0.309,-0.428L0.222,-0.428L0.222,-0.147C0.222,-0.125 0.225,-0.112 0.23,-0.106C0.236,-0.101 0.253,-0.098 0.281,-0.098C0.285,-0.098 0.29,-0.098 0.295,-0.098C0.299,-0.099 0.304,-0.099 0.309,-0.099L0.309,0.005L0.243,0.007C0.177,0.01 0.132,-0.002 0.108,-0.027C0.092,-0.043 0.084,-0.067 0.084,-0.101L0.084,-0.428L0.01,-0.428Z' style='fill-rule:nonzero;'/>\n            </g>\n            <g transform='matrix(160,0,0,160,469.656,830.15)'>\n                <path d='M0.01,-0.428L0.01,-0.527L0.084,-0.527L0.084,-0.676L0.222,-0.676L0.222,-0.527L0.309,-0.527L0.309,-0.428L0.222,-0.428L0.222,-0.147C0.222,-0.125 0.225,-0.112 0.23,-0.106C0.236,-0.101 0.253,-0.098 0.281,-0.098C0.285,-0.098 0.29,-0.098 0.295,-0.098C0.299,-0.099 0.304,-0.099 0.309,-0.099L0.309,0.005L0.243,0.007C0.177,0.01 0.132,-0.002 0.108,-0.027C0.092,-0.043 0.084,-0.067 0.084,-0.101L0.084,-0.428L0.01,-0.428Z' style='fill-rule:nonzero;'/>\n            </g>\n            <g transform='matrix(160,0,0,160,522.937,830.15)'>\n                <path d='M0.304,-0.098C0.344,-0.098 0.376,-0.113 0.397,-0.142C0.419,-0.171 0.43,-0.212 0.43,-0.265C0.43,-0.319 0.419,-0.36 0.397,-0.388C0.376,-0.417 0.344,-0.432 0.304,-0.432C0.263,-0.432 0.232,-0.417 0.21,-0.388C0.188,-0.36 0.177,-0.319 0.177,-0.265C0.177,-0.212 0.188,-0.171 0.21,-0.142C0.232,-0.113 0.263,-0.098 0.304,-0.098ZM0.576,-0.265C0.576,-0.187 0.554,-0.12 0.509,-0.065C0.464,-0.009 0.396,0.019 0.304,0.019C0.213,0.019 0.145,-0.009 0.1,-0.065C0.055,-0.12 0.032,-0.187 0.032,-0.265C0.032,-0.342 0.055,-0.409 0.1,-0.465C0.145,-0.521 0.213,-0.549 0.304,-0.549C0.396,-0.549 0.464,-0.521 0.509,-0.465C0.554,-0.409 0.576,-0.342 0.576,-0.265Z' style='fill-rule:nonzero;'/>\n            </g>\n            <g transform='matrix(160,0,0,160,620.672,830.15)'>\n                <path d='M0.36,-0.545C0.415,-0.545 0.46,-0.531 0.495,-0.502C0.53,-0.473 0.547,-0.425 0.547,-0.358L0.547,0L0.405,0L0.405,-0.324C0.405,-0.352 0.401,-0.373 0.394,-0.388C0.38,-0.416 0.354,-0.429 0.315,-0.429C0.268,-0.429 0.236,-0.409 0.218,-0.369C0.209,-0.348 0.205,-0.321 0.205,-0.288L0.205,0L0.066,0L0.066,-0.531L0.2,-0.531L0.2,-0.454C0.218,-0.481 0.235,-0.501 0.251,-0.513C0.28,-0.534 0.316,-0.545 0.36,-0.545Z' style='fill-rule:nonzero;'/>\n            </g>\n        </g>\n    </svg>\n    <div class=\"block-label\">${model.get('label')}</div>\n    </div>\n  `\n    });\n    editor.on('block:drag:stop', component => {\n      if (component && component.is(BIGORDR_BUTTON)) {\n        editor.select(component);\n        if (onDrop) {\n          onDrop(component.getEl());\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/cell\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const pluginName = 'cell';\n    const bigordrFlexCell = 'bigordr-flex-cell';\n    const bigordrFlexCellBlockId = `${bigordrFlexCell}-block`;\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl = {\n        t: txt => txt\n      },\n      /** @type {Categories} */\n      categories\n    } = options;\n    const bigordrCellLabel = intl.t('bigordr-cell');\n    const bigordrFlexCellLabel = intl.t(bigordrFlexCell);\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    DomComponents.addType(pluginName, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          name: bigordrCellLabel,\n          classes: ['bigordr-cell'],\n          draggable: ['.bigordr-row', '.bigordr-inner-row'],\n          droppable(itemModel, targetModel) {\n            const itemType = itemModel.get('type');\n            const slider = targetModel.closestType('lory-slider');\n            if (slider) {\n              const disabledArr = ['bigordr-slider', 'bigordr-background-fixed', 'bigordr-blogs-wrapper', 'bigordr-products-wrapper', 'bigordr-tabs-with-header', 'bigordr-grid-images', 'tabs', 'lory-slider'];\n              const disableDrop = R.includes(itemType)(disabledArr);\n              if (disableDrop) {\n                return false;\n              }\n            }\n            return true;\n          },\n          traits: []\n        }\n      }\n    });\n    DomComponents.addType(bigordrFlexCell, {\n      extend: pluginName,\n      model: {\n        defaults: {\n          name: bigordrFlexCellLabel,\n          classes: ['bigordr-cell', 'flex-container-column', 'flex-item--align-self-center'],\n          droppable: false,\n          components: [{\n            type: 'default',\n            name: intl.t('default'),\n            tagName: 'div',\n            style: {\n              margin: 'auto',\n              height: '100%',\n              width: '100%'\n            },\n            classes: ['bigordr-cell', 'flex-container-column'],\n            hoverable: false,\n            selectable: false,\n            draggable: false\n          }],\n          traits: []\n        }\n      },\n      view: {\n        onRender({\n          model /* , editor, el */\n        }) {\n          // add id as class name. so, style can be added to a specific image\n          const className = `id-${model.getId()}`;\n          // Remove style from copy\n          // const modelClasses = model.getClasses()\n          // const removeClasses = R.filter(R.includes('id'))(modelClasses)\n          // model.removeClass(removeClasses)\n          model.addClass(className);\n        }\n      }\n    });\n    const attrsCell = `class=\"bigordr-cell\" data-gjs-draggable=\".bigordr-row, .bigordr-inner-row\" data-gjs-resizable=\\'{\"tl\":0,\"tc\":0,\"tr\":0,\"cl\":1,\"cr\":1,\"bl\":0,\"br\":0,\"bc\":0,\"keyWidth\":\"flex-basis\"}\\' data-gjs-name=${intl.t('bigordr-cell')} data-gjs-type=\"cell\" data-gjs-unstylable=\\'[\"width\"]\\' data-gjs-stylable-require=\\'[\"flex-basis\"]\\'`;\n    BlockManager.add('bigordr-blocks-cell', {\n      label: intl.t('add cell'),\n      category: categories.basic,\n      content: `\n        <div ${attrsCell}></div>\n      </div>\n    `,\n      render: ({\n        model\n      }) => {\n        return `\n      <div class=\"gjs-block__media\">\n        <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n          <g transform='matrix(7.09919e-17,-1.15939,1.15939,7.09919e-17,-146.697,1100.93)'>\n                <g transform='matrix(0.987223,1.2326e-32,-6.16298e-33,0.839935,1.85971,94.4041)'>\n                    <rect x='196.848' y='321.016' width='631.615' height='327.658' style='fill:white;stroke:black;stroke-width:32.94px;'/>\n                </g>\n                <g transform='matrix(9.35262e-17,1.5274,-1.5274,9.35262e-17,1251.14,-573.016)'>\n                    <g transform='matrix(1.09375,2.6963e-32,-2.6963e-32,1.09375,128.028,12.4834)'>\n                        <circle cx='608.595' cy='433.442' r='79.613' style='stroke:black;stroke-width:18.07px;stroke-linejoin:round;'/>\n                    </g>\n                    <g transform='matrix(3.97777e-17,-0.649619,0.649619,3.97777e-17,272.62,652.086)'>\n                        <path d='M243.134,868.614L243.134,813.425L188.356,813.425L188.356,790.36L243.134,790.36L243.134,735.583L266.473,735.583L266.473,790.36L321.25,790.36L321.25,813.425L266.473,813.425L266.473,868.614L243.134,868.614Z' style='fill:white;fill-rule:nonzero;stroke:white;stroke-width:30.42px;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:2;'/>\n                    </g>\n                </g>\n            </g>\n        </svg>\n        <div class=\"block-label\">${model.get('label')}</div>\n        </div>\n      `;\n      }\n    });\n    BlockManager.add(bigordrFlexCellBlockId, {\n      label: bigordrFlexCellLabel,\n      category: categories.basic,\n      content: {\n        type: bigordrFlexCell\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n<svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n    <g transform='matrix(7.09919e-17,-1.15939,1.15939,7.09919e-17,-146.697,1100.93)'>\n        <g transform='matrix(1.16987,-2.56318e-22,-2.18076e-22,1.95806,-91.7749,-447.717)'>\n            <rect x='196.848' y='321.016' width='631.615' height='327.658' style='fill:white;stroke:black;stroke-width:21.39px;'/>\n        </g>\n        <g transform='matrix(9.35262e-17,1.5274,-1.5274,9.35262e-17,1080.15,-389.837)'>\n            <g transform='matrix(1.09375,2.6963e-32,-2.6963e-32,1.09375,128.028,12.4834)'>\n                <circle cx='608.595' cy='433.442' r='79.613' style='stroke:black;stroke-width:18.07px;stroke-linejoin:round;'/>\n            </g>\n            <g transform='matrix(3.97777e-17,-0.649619,0.649619,3.97777e-17,272.62,652.086)'>\n                <path d='M243.134,868.614L243.134,813.425L188.356,813.425L188.356,790.36L243.134,790.36L243.134,735.583L266.473,735.583L266.473,790.36L321.25,790.36L321.25,813.425L266.473,813.425L266.473,868.614L243.134,868.614Z' style='fill:white;fill-rule:nonzero;stroke:white;stroke-width:30.42px;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:2;'/>\n            </g>\n        </g>\n        <g transform='matrix(2.10801e-15,34.4265,-34.4265,2.10801e-15,17263.5,-14971.5)'>\n            <text x='443.443px' y='490.748px' style=\"font-family:'JCkg', 'GungSeo';font-size:12px;\">中</text>\n        </g>\n    </g>\n</svg>\n<div class=\"block-label\">${model.get('label')}</div>\n</div>\n`\n    });\n    editor.on('component:styleUpdate', (component, property) => {\n      if (component && component.is && component.is('cell') && property === 'text-align') {\n        const bigordrVideoAlignmentWrapper = component.find('div > .bigordr-video-alignment-wrapper');\n        const hasVideoComponents = R.pipe(R.isEmpty, R.not)(bigordrVideoAlignmentWrapper);\n        if (hasVideoComponents) {\n          bigordrVideoAlignmentWrapper.forEach(videoComponent => {\n            const style = component.getStyle();\n            videoComponent.set(property, style[property]);\n          });\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/ckeditor/index\", [\"exports\", \"grapesjs\", \"ramda\"], function (_exports, _grapesjs, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global CKEDITOR */\n\n  /**\n   * @project: bigordr-app\n   * @file: ckeditor\n   * @author Nafis Rubio\n   * @since 25/05/2022\n   * @copyright (C) 2022 BigOrdr\n   * @description: CKEditor plugin for grapesjs\n   */\n\n  const stopPropagation = e => e.stopPropagation();\n  const EDITOR_REFRESH_TIMEOUT = 10;\n  var _default = editor => {\n    const ckeditorPlugin = 'ckeditor-plugin';\n    const c = R.pathOr({}, ['Config', 'pluginsOpts', ckeditorPlugin])(editor);\n    const {\n      intl = {\n        t: txt => txt\n      }\n    } = c;\n    const defaults = {\n      // CKEditor options\n      options: {\n        language: intl.t('ckeditor-language'),\n        skin: 'moono-lisa',\n        plugins: `a11yhelp,\n        about,\n        basicstyles,\n        bidi,\n        blockquote,\n        button,\n        clipboard,\n        colorbutton,\n        colordialog,\n        contextmenu,\n        copyformatting,\n        dialog,\n        dialogadvtab,\n        dialogui,\n        div,\n        elementspath,\n        enterkey,\n        entities,\n        fakeobjects,\n        filebrowser,\n        filetools,\n        find,\n        floatingspace,\n        floatpanel,\n        font,\n        format,\n        forms,\n        horizontalrule,\n        htmlwriter,\n        iframe,\n        image,\n        indent,\n        indentblock,\n        indentlist,\n        justify,\n        language,\n        lineutils,\n        link,\n        list,\n        listblock,\n        liststyle,\n        magicline,\n        maximize,\n        menu,\n        menubutton,\n        newpage,\n        notification,\n        notificationaggregator,\n        pagebreak,\n        panel,\n        panelbutton,\n        pastefromword,\n        pastetext,\n        popup,\n        preview,\n        print,\n        removeformat,\n        resize,\n        richcombo,\n        save,\n        scayt,\n        selectall,\n        showblocks,\n        showborders,\n        smiley,\n        sourcearea,\n        specialchar,\n        stylescombo,\n        tab,\n        table,\n        tableselection,\n        tabletools,\n        templates,\n        toolbar,\n        undo,\n        uploadimage,\n        uploadwidget,\n        widget,\n        widgetselection,\n        wysiwygarea`,\n        font_defaultLabel: 'Arial',\n        toolbar: [{\n          name: 'basicstyles',\n          items: ['Undo', 'Redo', '-', 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'CopyFormatting', 'RemoveFormat']\n        }, {\n          name: 'paragraph',\n          items: ['Outdent', 'Indent', '-', 'NumberedList', 'BulletedList', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']\n        }, {\n          name: 'links',\n          items: ['Link', 'Unlink']\n        }, {\n          name: 'insert',\n          items: ['Table']\n        }, '/', {\n          name: 'styles',\n          items: []\n        }, {\n          name: 'colors',\n          items: ['TextColor', 'BGColor']\n        }]\n      },\n      // On which side of the element to position the toolbar\n      // Available options: 'left|center|right'\n      position: 'left'\n    };\n\n    // Load defaults\n    for (const name in defaults) {\n      if (!(name in c)) {\n        c[name] = defaults[name];\n      }\n    }\n    if (!CKEDITOR) {\n      throw new Error('CKEDITOR instance not found');\n    }\n    const refreshEditor = () => setTimeout(() => editor.refresh(), EDITOR_REFRESH_TIMEOUT);\n    editor.setCustomRte({\n      enable(el, rte) {\n        // If already exists I'll just focus on it\n        if (rte && rte.status !== 'destroyed') {\n          this.focus(el, rte);\n          return rte;\n        }\n        el.contentEditable = true;\n\n        // Seems like 'sharedspace' plugin doesn't work exactly as expected\n        // so will help hiding other toolbars already created\n        const rteToolbar = editor.RichTextEditor.getToolbarEl();\n        [].forEach.call(rteToolbar.children, child => {\n          child.style.display = 'none';\n        });\n\n        // Check for the mandatory options\n        const opt = c.options;\n        const plgName = 'sharedspace';\n        if (opt.extraPlugins) {\n          if (typeof opt.extraPlugins === 'string') {\n            opt.extraPlugins += ',' + plgName;\n          } else {\n            opt.extraPlugins.push(plgName);\n          }\n        } else {\n          opt.extraPlugins = plgName;\n        }\n        if (!c.options.sharedSpaces) {\n          c.options.sharedSpaces = {\n            top: rteToolbar\n          };\n        }\n\n        // Init CkEditors\n        rte = CKEDITOR.inline(el, c.options);\n\n        /**\n         * Implement the `rte.getContent` method so that GrapesJS is able to retrieve CKE's generated content (`rte.getData`) properly\n         *\n         * See:\n         *  - {@link https://github.com/artf/grapesjs/issues/2916}\n         *  - {@link https://github.com/artf/grapesjs/blob/dev/src/dom_components/view/ComponentTextView.js#L80}\n         *  - {@link https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-getData}\n         */\n        rte.getContent = rte.getData;\n\n        // Make click event propogate\n        rte.on('loaded', () => {\n          refreshEditor();\n        });\n        // Make click event propogate\n        rte.on('contentDom', () => {\n          const editable = rte.editable();\n          editable.attachListener(editable, 'click', () => {\n            el.click();\n          });\n        });\n\n        // The toolbar is not immediatly loaded so will be wrong positioned.\n        // With this trick we trigger an event which updates the toolbar position\n        rte.on('instanceReady', e => {\n          const toolbar = rteToolbar.querySelector('#cke_' + rte.name);\n          if (toolbar) {\n            toolbar.style.display = 'block';\n          }\n          editor.trigger('canvasScroll');\n        });\n\n        // Prevent blur when some of CKEditor's element is clicked\n        rte.on('dialogShow', e => {\n          const editorEls = _grapesjs.default.$('.cke_dialog_background_cover, .cke_dialog');\n          ['off', 'on'].forEach(m => editorEls[m]('mousedown', stopPropagation));\n        });\n        this.focus(el, rte);\n        return rte;\n      },\n      disable(el, rte) {\n        el.contentEditable = false;\n        if (rte && rte.focusManager) {\n          rte.focusManager.blur(true);\n        }\n      },\n      focus(el, rte) {\n        refreshEditor();\n        // Do nothing if already focused\n        if (rte && rte.focusManager && rte.focusManager.hasFocus) {\n          return;\n        }\n        el.contentEditable = true;\n        rte && rte.focus();\n      }\n    });\n\n    // Update RTE toolbar position\n    editor.on('rteToolbarPosUpdate', pos => {\n      switch (c.position) {\n        case 'center':\n          pos.left = pos.elementLeft + (pos.elementWidth >> 1) - (pos.targetWidth >> 1);\n          break;\n        case 'right':\n          pos.left = pos.elementLeft + pos.elementWidth - pos.targetWidth;\n          break;\n        default:\n          break;\n      }\n      if (pos.top <= pos.canvasTop) {\n        pos.top = pos.elementTop + pos.elementHeight;\n      }\n\n      // Check if not outside of the canvas\n      if (pos.left < pos.canvasLeft) {\n        pos.left = pos.canvasLeft;\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/double-row\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const pluginName = 'double-row';\n    const {\n      BlockManager\n    } = editor;\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl = {\n        t: txt => txt\n      },\n      /** @type {Categories} */\n      categories\n    } = options;\n    const blockId = `${pluginName}-block`;\n    const blockLabel = intl.t(pluginName);\n\n    //   BlockManager.add(blockId, {\n    //     label: blockLabel,\n    //     category: categories.complex,\n    //     content: {\n    //       type: 'row',\n    //       components: [\n    //         {\n    //           type: 'cell',\n    //           components: [\n    //             {\n    //               type: 'row'\n    //             },\n    //             {\n    //               type: 'row'\n    //             }\n    //           ]\n    //         }\n    //       ],\n    //       traits: []\n    //     },\n    //     render: ({ model }) => `\n    //     <div class=\"gjs-block__media\">\n    // <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;\">\n    //     <g transform=\"matrix(1.15939,0,0,1.15939,-76.9273,-146.697)\">\n    //         <g transform=\"matrix(0.987223,1.2326e-32,-6.16298e-33,0.839935,1.85777,232.008)\">\n    //             <rect x=\"196.848\" y=\"321.016\" width=\"631.615\" height=\"327.658\" style=\"fill:white;stroke:black;stroke-width:32.94px;\"/>\n    //         </g>\n    //         <g transform=\"matrix(0.987223,1.2326e-32,-6.16298e-33,0.839935,1.85777,-43.2039)\">\n    //             <rect x=\"196.848\" y=\"321.016\" width=\"631.615\" height=\"327.658\" style=\"fill:white;stroke:black;stroke-width:32.94px;\"/>\n    //         </g>\n    //         <g transform=\"matrix(9.35262e-17,1.5274,-1.5274,9.35262e-17,1251.14,-435.413)\">\n    //             <g transform=\"matrix(1.09375,2.6963e-32,-2.6963e-32,1.09375,128.028,12.4834)\">\n    //                 <circle cx=\"608.595\" cy=\"433.442\" r=\"79.613\" style=\"stroke:black;stroke-width:18.07px;stroke-linejoin:round;\"/>\n    //             </g>\n    //             <g transform=\"matrix(3.97777e-17,-0.649619,0.649619,3.97777e-17,272.62,652.086)\">\n    //                 <path d=\"M243.134,868.614L243.134,813.425L188.356,813.425L188.356,790.36L243.134,790.36L243.134,735.583L266.473,735.583L266.473,790.36L321.25,790.36L321.25,813.425L266.473,813.425L266.473,868.614L243.134,868.614Z\" style=\"fill:white;fill-rule:nonzero;stroke:white;stroke-width:30.42px;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:2;\"/>\n    //             </g>\n    //         </g>\n    //     </g>\n    // </svg>\n    // <div class=\"block-label\">${model.get('label')}</div>\n    // </div>\n    // `\n    //   })\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/form\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const bigordrForm = 'bigordr-form';\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const columnComponentClassName = 'bigordr-cell';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', bigordrForm])(editor);\n    const blockId = `${bigordrForm}-block`;\n    const {\n      onDbClick,\n      onDrop,\n      intl = {\n        t: txt => txt\n      },\n      isReadonly,\n      onRender,\n      categories,\n      hasFormFlows = true\n    } = options;\n    const blockLabel = intl.t(bigordrForm);\n    DomComponents.addType(bigordrForm, {\n      model: {\n        defaults: {\n          draggable: `.${columnComponentClassName}`,\n          droppable: false,\n          name: blockLabel,\n          classes: ['bigordr-form'],\n          attributes: {\n            'data-gjs-component': 'bigordr-form'\n          },\n          traits: [],\n          style: {\n            padding: '10px'\n          }\n        },\n        updated(property, value) {\n          if (property === 'attributes') {\n            const formName = value?.content;\n            const textNode = document.createTextNode(formName);\n            this.view.el.innerText = '';\n            this.view.el.appendChild(textNode);\n          }\n        }\n      },\n      view: {\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick() {\n          const parentType = this.model.parent().get('type');\n          if (onDbClick && !isReadonly && parentType !== 'bigordr-form') {\n            onDbClick(this.model);\n          }\n        },\n        onRender() {\n          const formName = this.model.getAttributes()['data-gjs-form-name'];\n          if (formName) {\n            const textNode = document.createTextNode(formName);\n            this.el.appendChild(textNode);\n          }\n          if (onRender) {\n            onRender(this.model);\n          }\n        }\n      }\n    });\n    if (hasFormFlows) {\n      BlockManager.add(blockId, {\n        label: blockLabel,\n        category: categories.basic,\n        content: {\n          type: bigordrForm,\n          draggable: `.${columnComponentClassName}`\n        },\n        render: ({\n          model\n        }) => `\n      <div class=\"gjs-block__media\">\n        <svg id=\"SvgjsSvg1012\" width=\"100%\" height=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:svgjs=\"http://svgjs.com/svgjs\"><defs id=\"SvgjsDefs1013\"></defs><g id=\"SvgjsG1014\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"88\" height=\"58\"><path d=\"m392 361c-66.167969 0-120 54.28125-120 121h-242v-391.011719h242v90.011719h90v36.28125c-26.460938 11.597656-45 38.027344-45 68.71875 0 41.355469 33.644531 75 75 75s75-33.644531 75-75c0-16.847656-5.585938-32.414062-15-44.949219v-241.050781h-392v61c-39.5625 0-24.207031 0-60 0v451h512v-30c0-66.71875-53.832031-121-120-121zm-90-210v-38.78125c12.527344 12.53125 26.273438 26.285156 38.746094 38.78125zm135 135c0 24.8125-20.1875 45-45 45s-45-20.1875-45-45 20.1875-45 45-45 45 20.1875 45 45zm-347-256h332v187.28125c-9.195312-4.027344-19.335938-6.28125-30-6.28125v-51.070312c-4.976562-4.984376-98.789062-98.921876-98.789062-98.921876-40.8125 0-142.957032.003907-203.210938.003907zm212 452c0-45.011719 32.488281-82.488281 75-89.730469v58.730469h30v-58.730469c42.511719 7.242188 75 44.71875 75 89.730469zm0 0\" fill=\"#000000\" class=\"color000 svgShape\"></path><path d=\"M60 211h242v30h-242zm0 0M60 271h212v30h-212zm0 0M60 331h212v30h-212zm0 0M60 391h182v30h-182zm0 0M120 151h92v30h-92zm0 0\" fill=\"#000000\" class=\"color000 svgShape\"></path></svg></g></svg>\n        <div class=\"block-label\">${model.get('label')}</div>\n        </div>\n        `\n      });\n    }\n    editor.on('block:drag:stop', component => {\n      if (component && component.is(bigordrForm)) {\n        editor.select(component);\n        if (onDrop) {\n          onDrop(component);\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/full-width-image\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global grapesjs */\n\n  const pluginName = 'full-width-image';\n  const UPLOADCARE_TRANSFORMS = ''; // '/-/format/webp/-/quality/smart/-/preview/'\n  const Plugin = grapesjs.plugins.add(pluginName, (editor, options = {}) => {\n    const components = editor.DomComponents;\n    const pluginOptions = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl = {\n        t: foo => foo\n      },\n      /** @type {Categories} */\n      categories\n    } = pluginOptions;\n    const blockLabel = intl.t(pluginName);\n    const styles = `\n    <style>\n      .full-width-image {\n        width: 100%;\n      }\n    </style>\n  `;\n    const getUploadcareUuid = R.pipe(R.split(/https:\\/\\/ucarecdn\\.com\\//), R.pathOr('', [1]), R.split('/'), R.pathOr('', [0]));\n    const defaultOptions = {\n      extend: 'image',\n      model: {\n        defaults: {\n          resizable: false,\n          components: [styles],\n          classes: [pluginName],\n          attributes: {\n            type: pluginName\n          },\n          name: blockLabel,\n          toolbar: [{\n            attributes: {\n              class: 'fa fa-arrow-up'\n            },\n            command: 'select-parent'\n          }, {\n            attributes: {\n              class: 'fa fa-arrows'\n            },\n            command: 'tlb-move'\n          }, {\n            attributes: {\n              class: 'fa fa-clone'\n            },\n            command: 'tlb-clone'\n          }, {\n            attributes: {\n              class: 'fa fa-trash'\n            },\n            command: 'tlb-delete'\n          }],\n          traits: [{\n            type: 'bigordr-animation-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }, {\n            type: 'bigordr-link-trait'\n          }]\n        },\n        init() {\n          if (this?.parent()?.get('type') !== 'bigordr-picture') {\n            // TODO: REMOVE UNUSED IMAGE ELEMENTS FROM CANVAS\n            // this.remove()\n          }\n        }\n      },\n      view: {\n        init() {\n          // TODO: REMOVE UNUSED IMAGE ELEMENTS FROM CANVAS\n          // console.log('Local hook: view.init')\n        },\n        onRender({\n          model,\n          editor,\n          el\n        }) {\n          model.removeStyle('width');\n          // add id as class name. so, style can be added to a specific image\n          const className = `id-${model.getId()}`;\n          model.addClass(className);\n\n          // append parent id\n          const isCopy = model.get('isCopy');\n          const parentId = model.get('data-parent-id');\n          const isParentTypeBigordrPicture = model.parent().get('type') === 'bigordr-picture';\n          if (isParentTypeBigordrPicture && !parentId) {\n            // get picture id\n            model.set('data-parent-id', model.parent().getId());\n          } else if (isParentTypeBigordrPicture && parentId && isCopy) {\n            // RESET PARENT ID\n            model.set('data-parent-id', model.parent().getId());\n          } else if (parentId && !isParentTypeBigordrPicture) {\n            el.setAttribute('data-remove-now', 'true');\n            el.style.display = 'none';\n            // move parent to here\n            const parentId = model.get('data-parent-id');\n            const parentPictureArray = editor.Components.getComponent().find(`#${parentId}`);\n            if (RA.isNilOrEmpty(parentPictureArray)) {\n              return;\n            }\n            const parentPicture = R.path([0])(parentPictureArray);\n            const imageAttributes = model.getAttributes();\n            const newPicture = model.replaceWith({\n              desktopUrl: parentPicture.get('desktopUrl'),\n              desktopUuid: parentPicture.get('desktopUuid'),\n              tabletUrl: parentPicture.get('tabletUrl'),\n              tabletUuid: parentPicture.get('tabletUuid'),\n              mobileUrl: parentPicture.get('mobileUrl'),\n              mobileUuid: parentPicture.get('mobileUuid'),\n              imageType: pluginName,\n              imageAttributes: R.pick(['data-href-title', 'data-href', 'data-href-target'])(imageAttributes),\n              type: 'bigordr-picture'\n            });\n            editor.refresh();\n            editor.selectRemove(model);\n            parentPicture.remove();\n            model.remove();\n            editor.refresh();\n            const newImg = newPicture.findType(pluginName)[0];\n            editor.select(newImg);\n            const previousClasses = model.getClasses();\n            R.forEach(className => newImg.addClass(className))(previousClasses);\n          }\n        }\n      }\n    };\n    const openAssetsFn = {\n      run(editor, sender, opts = {}) {\n        if (!options.onOpenAssets) {\n          return;\n        }\n        let imgType = R.path(['target', 'attributes', 'imgType'], opts) || R.path(['target', 'attributes', 'type'])(opts);\n        let target = editor.getSelected() || opts.target;\n        const targetType = target.get('type');\n        if (targetType === 'bigordr-picture-layer-container') {\n          const bigordrPictureArr = target.findType('bigordr-picture');\n          if (RA.isNotNilOrEmpty(bigordrPictureArr)) {\n            const bigordrPicture = R.nth(0)(bigordrPictureArr);\n            target = bigordrPicture.findType('full-width-image')[0];\n            imgType = R.path(['attributes', 'imageType'])(bigordrPicture);\n          }\n        }\n        if (!imgType) {\n          const attributes = target?.getAttributes();\n          imgType = R.prop('imgType')(attributes) || R.propOr('background-img', 'data-imgType')(attributes);\n        }\n\n        /** @type{HTMLImageElement|HTMLPictureElement} */\n        const elementTarget = target?.getEl();\n        let image = elementTarget;\n        if (elementTarget.tagName === 'PICTURE') {\n          image = elementTarget.querySelector('img');\n        }\n        let src = '';\n        if (image && image.getAttribute) {\n          src = image.getAttribute('src') || '';\n        }\n        const imgSet = {\n          imgType,\n          desktopUrl: src,\n          tabletUrl: src,\n          mobileUrl: src\n        };\n        if (imgType === 'background-img') {\n          // SET METADATA ON DOM ELEMENT\n          imgSet.desktopUrl = image.getAttribute('data-image-url');\n          imgSet.tabletUrl = image.getAttribute('data-image-url');\n          imgSet.mobileUrl = image.getAttribute('data-image-url');\n          imgSet.desktopUuid = image.getAttribute('data-image-uuid');\n          imgSet.tabletUuid = image.getAttribute('data-image-uuid');\n          imgSet.mobileUuid = image.getAttribute('data-image-uuid');\n        } else {\n          // SET PREVIOUS IMAGES\n          imgSet.desktopUuid = getUploadcareUuid(src);\n          imgSet.tabletUuid = getUploadcareUuid(src);\n          imgSet.mobileUuid = getUploadcareUuid(src);\n        }\n        if (target?.parent()?.get('type') === 'bigordr-picture') {\n          const pictureSourceDesktop = image.parentElement.querySelector('[data-gjs-type=\"picture-desktop\"]');\n          if (pictureSourceDesktop) {\n            src = pictureSourceDesktop.getAttribute('srcset');\n            imgSet.desktopUrl = src;\n            imgSet.desktopUuid = getUploadcareUuid(imgSet.desktopUrl);\n          }\n          const pictureSourceTablet = image.parentElement.querySelector('[data-gjs-type=\"picture-tablet\"]');\n          if (pictureSourceTablet) {\n            imgSet.tabletUrl = pictureSourceTablet.getAttribute('srcset');\n            imgSet.tabletUuid = getUploadcareUuid(imgSet.tabletUrl);\n          }\n          const pictureSourceMobile = image.parentElement.querySelector('[data-gjs-type=\"picture-mobile\"]');\n          if (pictureSourceMobile) {\n            imgSet.mobileUrl = pictureSourceMobile.getAttribute('srcset');\n            imgSet.mobileUuid = getUploadcareUuid(imgSet.mobileUrl);\n          }\n        }\n        options.onOpenAssets(imgType, {\n          onImageSelect(type, url, mimeType, uploadsModel, args = {}) {\n            const editor = opts?.target?.em?.getEditor() || args?.editor;\n            let selectedComponent = editor.getSelected() || opts.target;\n            selectedComponent.em.refreshCanvas();\n            const targetType = selectedComponent.get('type');\n            if (targetType === 'bigordr-picture-layer-container') {\n              const bigordrPictureArr = selectedComponent.findType('bigordr-picture');\n              const fullWidthImageArr = selectedComponent.findType('full-width-image');\n              if (RA.isNotNilOrEmpty(bigordrPictureArr)) {\n                const bigordrPicture = R.nth(0)(bigordrPictureArr);\n                selectedComponent = bigordrPicture.findType('full-width-image')[0];\n                imgType = R.path(['attributes', 'imageType'])(bigordrPicture);\n              } else if (RA.isNotNilOrEmpty(fullWidthImageArr)) {\n                selectedComponent = R.nth(0)(fullWidthImageArr);\n              }\n            }\n            const bigordrPictureOptions = R.pathOr({}, ['attributes', 'bigordrPictureOptions'])(selectedComponent);\n            if (!selectedComponent) {\n              selectedComponent = opts.target;\n            }\n            if (!selectedComponent) {\n              console.error('No selected component!!!');\n              return;\n            }\n            editor.refresh();\n            if (type === 'background-img') {\n              // Handle background-img\n              selectedComponent.addAttributes({\n                'data-image-uuid': getUploadcareUuid(url),\n                'data-image-url': url\n              });\n              selectedComponent.addStyle({\n                'background-image': `url(${url})`\n              });\n              return;\n            }\n            const imgSet = R.prop('imgSet')(uploadsModel);\n            mimeType = uploadsModel.getData('mimeType');\n            const pictureData = {\n              ...bigordrPictureOptions,\n              desktopUrl: url,\n              desktopUuid: uploadsModel.getData('uuid'),\n              tabletUrl: url,\n              tabletUuid: uploadsModel.getData('uuid'),\n              mobileUrl: url,\n              mobileUuid: uploadsModel.getData('uuid'),\n              fileType: mimeType,\n              imageType: type,\n              type: 'bigordr-picture'\n            };\n            const selectedComponentParent = selectedComponent.parent();\n            const isGif = R.includes('gif')(mimeType);\n            if (isGif) {\n              const attributes = {\n                src: url,\n                attributes: {\n                  src: url,\n                  'data-gjs-type': type,\n                  'data-mime-type': mimeType,\n                  imgType\n                },\n                type\n              };\n              if (!selectedComponentParent) {\n                console.error('No selected component parent!!!');\n                return;\n              }\n              if (selectedComponentParent.get('type') === 'bigordr-picture') {\n                selectedComponentParent.replaceWith(attributes);\n              } else {\n                selectedComponent.replaceWith(attributes);\n              }\n              return;\n            }\n            // <img\n            // data-gjs-type=\"optimized-image\"\n            // draggable=\"true\"\n            // src=\"https://ucarecdn.com/3b1a5ccc-f577-4c2c-b1d9-7015e4bb9e25/\"\n            // data-mime-type=\"image/gif\"\n            // imgtype=\"optimized-image\"\n            // class=\"optimized-image if3cb gjs-selected\"\n            // id=\"if3cb\">\n            if (selectedComponentParent.get('type') !== 'bigordr-picture' && !imgSet) {\n              selectedComponent.replaceWith(pictureData);\n            } else if (selectedComponentParent.get('type') !== 'bigordr-picture' && imgSet) {\n              const mobile = R.prop('mobile')(imgSet);\n              pictureData.mobileUrl = mobile.getUrl(UPLOADCARE_TRANSFORMS);\n              pictureData.mobileUuid = mobile.getData('uuid');\n              const tablet = R.prop('tablet')(imgSet);\n              pictureData.tabletUrl = tablet.getUrl(UPLOADCARE_TRANSFORMS);\n              pictureData.tabletUuid = tablet.getData('uuid');\n              const desktop = R.prop('desktop')(imgSet);\n              pictureData.desktopUrl = desktop.getUrl(UPLOADCARE_TRANSFORMS);\n              pictureData.desktopUuid = desktop.getData('uuid');\n              selectedComponent.replaceWith(pictureData);\n            } else if (selectedComponentParent.get('type') === 'bigordr-picture' && imgSet) {\n              const mobile = R.prop('mobile')(imgSet);\n              const mobileUrl = mobile.getUrl(UPLOADCARE_TRANSFORMS);\n              const mobileUuid = mobile.getData('uuid');\n              const tablet = R.prop('tablet')(imgSet);\n              const tabletUrl = tablet.getUrl(UPLOADCARE_TRANSFORMS);\n              const tabletUuid = tablet.getData('uuid');\n              const desktop = R.prop('desktop')(imgSet);\n              const desktopUrl = desktop.getUrl(UPLOADCARE_TRANSFORMS);\n              const desktopUuid = desktop.getData('uuid');\n              selectedComponentParent.set('mobileUrl', mobileUrl);\n              selectedComponentParent.set('mobileUuid', mobileUuid);\n              selectedComponentParent.set('tabletUrl', tabletUrl);\n              selectedComponentParent.set('tabletUuid', tabletUuid);\n              selectedComponentParent.set('desktopUrl', desktopUrl);\n              selectedComponentParent.set('desktopUuid', desktopUuid);\n              selectedComponentParent.set('fileType', mimeType);\n            } else {\n              selectedComponentParent.set('mobileUrl', pictureData.mobileUrl);\n              selectedComponentParent.set('mobileUuid', pictureData.mobileUuid);\n              selectedComponentParent.set('tabletUrl', pictureData.mobileUrl);\n              selectedComponentParent.set('tabletUuid', pictureData.mobileUuid);\n              selectedComponentParent.set('desktopUrl', pictureData.mobileUrl);\n              selectedComponentParent.set('desktopUuid', pictureData.mobileUuid);\n              selectedComponentParent.set('fileType', mimeType);\n            }\n          },\n          imgSet\n        });\n      }\n    };\n    editor.Commands.add('open-assets', openAssetsFn);\n    options = R.mergeDeepRight(defaultOptions, options);\n    components.addType(pluginName, options);\n    editor.BlockManager.add(pluginName, {\n      label: blockLabel,\n      category: categories.basic,\n      content: {\n        style: {\n          width: '100%'\n        },\n        activeOnRender: 1,\n        badgable: true,\n        type: pluginName,\n        imgType: pluginName,\n        traits: [{\n          type: 'bigordr-animation-trait',\n          name: 'animationSelector',\n          label: intl.t('select animation')\n        }, {\n          type: 'bigordr-animation-iteration-trait',\n          name: 'animationIterationSelector',\n          label: intl.t('select iteration count')\n        }, {\n          type: 'bigordr-animation-duration-trait',\n          name: 'animationDuration',\n          label: intl.t('enter duration (sec)')\n        }]\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n      <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'>\n        <g transform='matrix(1,0,0,1,-3.32468,1.7053e-13)'>\n            <g>\n                <g transform='matrix(1,0,0,1,-3.28194,-1.08002e-12)'>\n                    <g transform='matrix(1.37733,0,0,1.65228,-180.565,-864.206)'>\n                        <path d='M207.809,832.911L800.909,832.911' style='fill:none;stroke:black;stroke-width:29.59px;'/>\n                    </g>\n                    <g transform='matrix(1,0,0,1,118.44,399.43)'>\n                        <g transform='matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)'>\n                            <path d='M207.809,832.911L828.197,832.911' style='fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;'/>\n                        </g>\n                        <g transform='matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)'>\n                            <path d='M207.809,832.911L828.197,832.911' style='fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;'/>\n                        </g>\n                    </g>\n                    <g transform='matrix(-1,-1.22465e-16,1.22465e-16,-1,918.773,624.57)'>\n                        <g transform='matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)'>\n                            <path d='M207.809,832.911L828.197,832.911' style='fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;'/>\n                        </g>\n                        <g transform='matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)'>\n                            <path d='M207.809,832.911L828.197,832.911' style='fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;'/>\n                        </g>\n                    </g>\n                </g>\n                <g transform='matrix(1,0,0,1,1.86342,37.2616)'>\n                    <g transform='matrix(1.00794,0,0,0.792537,12.4421,44.5258)'>\n                        <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:38.6px;stroke-linecap:square;stroke-linejoin:miter;'/>\n                    </g>\n                    <g transform='matrix(1.08069,0,0,1.08069,-48.6111,-30.4861)'>\n                        <g transform='matrix(1.51835,-6.97105e-19,-6.97105e-19,1.52404,-502.354,-212.761)'>\n                            <circle cx='567.803' cy='388.754' r='27.858' style='stroke:black;stroke-width:18.25px;'/>\n                        </g>\n                        <g transform='matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)'>\n                            <g transform='matrix(-0.93623,0,0,0.939727,1014.78,130.716)'>\n                                <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                            </g>\n                            <g transform='matrix(-1.01027,0,0,0.756475,916.709,228.489)'>\n                                <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                            </g>\n                        </g>\n                    </g>\n                </g>\n            </g>\n        </g>\n    </svg>\n    <div class=\"block-label\">${model.get('label')}</div>\n    </div>\n`\n    });\n    editor.on('component:remove', (component, ...args) => {\n      if (component && component.is(pluginName)) {\n        const editor = component.em.getEditor();\n        const editorCanvas = editor.Canvas.getDocument();\n        if (editorCanvas) {\n          // remove images outside pictures\n          const imgsToRemove = Array.from(editorCanvas.querySelectorAll('[data-remove-now=\"true\"]'));\n          if (RA.isNotNilOrEmpty(imgsToRemove)) {\n            R.forEach(img => img.remove())(imgsToRemove);\n          }\n        }\n\n        // REMOVE PICTURE TAG\n        const componentParent = component.parent();\n        if (componentParent) {\n          const isParentAPicture = componentParent.get('type') === 'bigordr-picture';\n          if (isParentAPicture) {\n            componentParent.remove();\n          }\n        }\n      }\n    });\n    editor.on('component:clone', component => {\n      if (component && component.is(pluginName)) {\n        component.set('isCopy', true);\n      }\n    });\n  });\n  var _default = _exports.default = Plugin;\n});","define(\"client/pods/grapesjs/plugins/grid-images\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: grid-images\n   * @author Nafis Rubio\n   * @since 21/09/2020\n   * @copyright (C) 2020 BigOrdr\n   * @description: Images grid\n   */\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const pluginName = 'bigordr-grid-images';\n    const pluginBlockId = `${pluginName}-block`;\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const blockLabel = intl.t(pluginName);\n    const componentName = intl.t(pluginName);\n    const margin0 = 'margin-0';\n    function getRandomIntInclusive(min, max) {\n      min = Math.ceil(min);\n      max = Math.floor(max);\n      return Math.floor(Math.random() * (max - min + 1) + min); // The maximum is inclusive and the minimum is inclusive\n    }\n    DomComponents.addType('bigordr-grid-image', {\n      extend: 'bigordr-strip-image',\n      model: {\n        defaults: {\n          style: {\n            'background-attachment': 'scroll',\n            'background-image': `url(https://picsum.photos/512.webp?blur=2&random=${getRandomIntInclusive(1, 100)})`,\n            'background-position': 'center center',\n            'background-repeat': 'no-repeat',\n            'background-size': 'cover',\n            'flex-grow': '1',\n            'flex-basis': '25%',\n            'min-height': '100%',\n            'object-fit': 'cover',\n            height: 'auto',\n            width: '100%',\n            display: 'flex',\n            'justify-content': 'center',\n            'flex-direction': 'column'\n          },\n          selectable: false,\n          components: [{\n            type: 'row',\n            style: {\n              padding: '0',\n              'flex-grow': '1'\n            },\n            components: [{\n              type: 'cell',\n              style: {\n                padding: '0',\n                'text-align': 'center'\n              },\n              components: [{\n                type: 'text',\n                style: {\n                  padding: '10px'\n                },\n                name: intl.t('title'),\n                classes: ['bigordr-title', margin0],\n                tagName: 'h1',\n                content: 'Insert title here',\n                traits: [{\n                  type: 'bigordr-animation-text-trait',\n                  name: 'animationSelector',\n                  label: intl.t('select animation')\n                }, {\n                  type: 'bigordr-animation-iteration-trait',\n                  name: 'animationIterationSelector',\n                  label: intl.t('select iteration count')\n                }, {\n                  type: 'bigordr-animation-duration-trait',\n                  name: 'animationDuration',\n                  label: intl.t('enter duration (sec)')\n                }]\n              }],\n              traits: []\n            }],\n            traits: []\n          }, {\n            type: 'row',\n            style: {\n              padding: '0'\n            },\n            components: [{\n              type: 'cell',\n              style: {\n                padding: '0',\n                'text-align': 'center'\n              },\n              components: [{\n                type: 'bigordr-button',\n                traits: []\n              }],\n              traits: []\n            }],\n            traits: []\n          }],\n          traits: [{\n            type: 'bigordr-animation-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }]\n        }\n      }\n    });\n    DomComponents.addType(pluginName, {\n      model: {\n        defaults: {\n          name: componentName,\n          style: {\n            padding: '0'\n          },\n          components: [{\n            type: 'row',\n            style: {\n              padding: '0'\n            },\n            components: [{\n              type: 'cell',\n              style: {\n                padding: '0',\n                'flex-grow': '1',\n                'flex-basis': '100%'\n              },\n              components: {\n                type: 'bigordr-grid-image',\n                traits: [{\n                  type: 'bigordr-animation-trait',\n                  name: 'animationSelector',\n                  label: intl.t('select animation')\n                }, {\n                  type: 'bigordr-animation-iteration-trait',\n                  name: 'animationIterationSelector',\n                  label: intl.t('select iteration count')\n                }, {\n                  type: 'bigordr-animation-duration-trait',\n                  name: 'animationDuration',\n                  label: intl.t('enter duration (sec)')\n                }]\n              },\n              traits: []\n            }],\n            traits: []\n          }],\n          traits: [{\n            type: 'bigordr-animation-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }]\n        }\n      }\n    });\n    BlockManager.add(pluginBlockId, {\n      label: blockLabel,\n      category: categories.complex,\n      content: {\n        type: pluginName\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n    <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M 5 4 A 1.0001 1.0001 0 0 0 4 5 L 4 45 A 1.0001 1.0001 0 0 0 5 46 L 45 46 A 1.0001 1.0001 0 0 0 46 45 L 46 5 A 1.0001 1.0001 0 0 0 45 4 L 5 4 z M 6 6 L 44 6 L 44 10 L 6 10 L 6 6 z M 6 12 L 44 12 L 44 44 L 6 44 L 6 12 z M 10 15 A 1.0001 1.0001 0 0 0 9 16 L 9 20 A 1.0001 1.0001 0 0 0 10 21 L 40 21 A 1.0001 1.0001 0 0 0 41 20 L 41 16 A 1.0001 1.0001 0 0 0 40 15 L 10 15 z M 11 17 L 39 17 L 39 19 L 11 19 L 11 17 z M 11 23 C 9.9069372 23 9 23.906937 9 25 L 9 39 C 9 40.093063 9.9069372 41 11 41 L 22 41 C 23.093063 41 24 40.093063 24 39 L 24 25 C 24 23.906937 23.093063 23 22 23 L 11 23 z M 28 23 C 26.906937 23 26 23.906937 26 25 L 26 39 C 26 40.093063 26.906937 41 28 41 L 39 41 C 40.093063 41 41 40.093063 41 39 L 41 25 C 41 23.906937 40.093063 23 39 23 L 28 23 z M 11 25 L 22 25 L 22 39 L 11 39 L 11 25 z M 28 25 L 39 25 L 39 39 L 28 39 L 28 25 z\"></path></svg> \n    <div class=\"block-label\">${model.get('label')}</div>\n    </div>\n    `\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/grid\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: grid\n   * @author Nafis Rubio\n   * @since 19/09/2020\n   * @copyright (C) 2020 BigOrdr\n   * @description: Grid component\n   */\n  /**\n   * @typedef {import(\"../categories\").Categories}\n   */\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const pluginName = 'bigordr-grid';\n    const bigordrGridImages = 'bigordr-grid-images';\n    const bigordrGridComponent = 'bigordr-grid-component';\n    const pluginBlockId = `${pluginName}-block`;\n    const bigordrGridImagesBlockId = `${bigordrGridImages}-block`;\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const margin0 = 'margin-0';\n    const {\n      intl,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const blockLabel = intl.t(pluginName);\n    const bigordrGridImagesBlockLabel = intl.t(bigordrGridImages);\n    const componentName = intl.t(pluginName);\n    DomComponents.addType(bigordrGridComponent, {\n      extend: 'cell',\n      model: {\n        defaults: {\n          style: {\n            padding: '10px'\n          },\n          components: [{\n            imgType: 'full-width-image',\n            type: 'full-width-image',\n            src: 'https://picsum.photos/512.webp',\n            traits: [{\n              type: 'bigordr-animation-trait',\n              name: 'animationSelector',\n              label: intl.t('select animation')\n            }, {\n              type: 'bigordr-animation-iteration-trait',\n              name: 'animationIterationSelector',\n              label: intl.t('select iteration count')\n            }, {\n              type: 'bigordr-animation-duration-trait',\n              name: 'animationDuration',\n              label: intl.t('enter duration (sec)')\n            }]\n          }, {\n            type: 'text',\n            tagName: 'h1',\n            name: intl.t('title'),\n            classes: ['bigordr-title', margin0],\n            content: 'Insert title here',\n            traits: [{\n              type: 'bigordr-animation-text-trait',\n              name: 'animationSelector',\n              label: intl.t('select animation')\n            }, {\n              type: 'bigordr-animation-iteration-trait',\n              name: 'animationIterationSelector',\n              label: intl.t('select iteration count')\n            }, {\n              type: 'bigordr-animation-duration-trait',\n              name: 'animationDuration',\n              label: intl.t('enter duration (sec)')\n            }]\n          }, {\n            type: 'text',\n            style: {\n              padding: '10px'\n            },\n            tagName: 'p',\n            content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce lobortis ullamcorper lorem. Donec tempor lectus sapien, eu consequat dolor vehicula eu. Vestibulum non felis blandit, condimentum mi ac, pulvinar dolor.',\n            traits: [{\n              type: 'bigordr-animation-trait',\n              name: 'animationSelector',\n              label: intl.t('select animation')\n            }, {\n              type: 'bigordr-animation-iteration-trait',\n              name: 'animationIterationSelector',\n              label: intl.t('select iteration count')\n            }, {\n              type: 'bigordr-animation-duration-trait',\n              name: 'animationDuration',\n              label: intl.t('enter duration (sec)')\n            }],\n            classes: [margin0]\n          }]\n        },\n        traits: []\n      }\n    });\n    DomComponents.addType(pluginName, {\n      model: {\n        defaults: {\n          name: componentName,\n          classes: [pluginName],\n          components: [{\n            type: 'row',\n            selectable: false,\n            style: {\n              padding: '0'\n            },\n            components: [{\n              type: bigordrGridComponent,\n              src: 'https://picsum.photos/512.webp?random=1',\n              traits: []\n            }, {\n              type: bigordrGridComponent,\n              src: 'https://picsum.photos/512.webp?random=2',\n              traits: []\n            }, {\n              type: bigordrGridComponent,\n              src: 'https://picsum.photos/512.webp?random=3',\n              traits: []\n            }]\n          }],\n          traits: []\n        }\n      }\n    });\n    DomComponents.addType(bigordrGridImages, {\n      model: {\n        defaults: {\n          name: componentName,\n          classes: [bigordrGridImages],\n          components: [{\n            type: 'row',\n            style: {\n              padding: '0'\n            },\n            components: [{\n              type: 'cell',\n              style: {\n                padding: '10px'\n              },\n              components: [{\n                imgType: 'full-width-image',\n                type: 'full-width-image',\n                src: 'https://picsum.photos/512.webp?random=1'\n              }]\n            }, {\n              type: 'cell',\n              style: {\n                padding: '10px'\n              },\n              components: [{\n                imgType: 'full-width-image',\n                type: 'full-width-image',\n                src: 'https://picsum.photos/512.webp?random=2'\n              }]\n            }, {\n              type: 'cell',\n              style: {\n                padding: '10px'\n              },\n              components: [{\n                imgType: 'full-width-image',\n                type: 'full-width-image',\n                src: 'https://picsum.photos/512.webp?random=3'\n              }]\n            }]\n          }, {\n            type: 'row',\n            style: {\n              padding: '0'\n            },\n            components: [{\n              type: 'cell',\n              style: {\n                padding: '10px'\n              },\n              components: [{\n                imgType: 'full-width-image',\n                type: 'full-width-image',\n                src: 'https://picsum.photos/512.webp?random=4'\n              }]\n            }, {\n              type: 'cell',\n              style: {\n                padding: '10px'\n              },\n              components: [{\n                imgType: 'full-width-image',\n                type: 'full-width-image',\n                src: 'https://picsum.photos/512.webp?random=5'\n              }]\n            }, {\n              type: 'cell',\n              style: {\n                padding: '10px'\n              },\n              components: [{\n                imgType: 'full-width-image',\n                type: 'full-width-image',\n                src: 'https://picsum.photos/512.webp?random=6'\n              }]\n            }]\n          }],\n          traits: []\n        }\n      }\n    });\n    BlockManager.add(pluginBlockId, {\n      label: blockLabel,\n      category: categories.complex,\n      content: {\n        type: pluginName\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n    <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n    <g transform='matrix(1,0,0,1,-1.46126,-85.0551)'>\n        <g>\n            <g>\n                <g transform='matrix(1.00794,0,0,0.792537,12.4421,44.5258)'>\n                    <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:38.6px;'/>\n                </g>\n                <g transform='matrix(1.08069,0,0,1.08069,-48.6111,-30.4861)'>\n                    <g transform='matrix(1.51835,-6.97105e-19,-6.97105e-19,1.52404,-502.354,-212.761)'>\n                        <circle cx='567.803' cy='388.754' r='27.858' style='stroke:black;stroke-width:18.25px;stroke-linecap:round;stroke-linejoin:round;'/>\n                    </g>\n                    <g transform='matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)'>\n                        <g transform='matrix(-0.93623,0,0,0.939727,1014.78,130.716)'>\n                            <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                        </g>\n                        <g transform='matrix(-1.01027,0,0,0.756475,916.709,228.489)'>\n                            <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                        </g>\n                    </g>\n                </g>\n            </g>\n        </g>\n    </g>\n    <g transform='matrix(0.697024,0,0,0.646383,-7.75042,441.721)'>\n        <rect x='301.902' y='349.059' width='385.98' height='98.525'/>\n    </g>\n    <g transform='matrix(1.62999,0,0,1,-323.453,211.159)'>\n        <rect x='322.785' y='550.771' width='382.132' height='25.78'/>\n    </g>\n    <g transform='matrix(1.62999,0,0,1,-323.453,262.69)'>\n        <rect x='322.785' y='550.771' width='382.132' height='25.78'/>\n    </g>\n    <g transform='matrix(1.62999,0,0,1,-323.453,308.821)'>\n        <rect x='322.785' y='550.771' width='382.132' height='25.78'/>\n    </g>\n</svg>\n<div class=\"block-label\">${model.get('label')}</div>\n</div>`\n    });\n    BlockManager.add(bigordrGridImagesBlockId, {\n      label: bigordrGridImagesBlockLabel,\n      category: categories.complex,\n      content: {\n        type: bigordrGridImages\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n    <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n    <g transform='matrix(1,0,0,1,10.3804,-27.0402)'>\n        <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:15px;'/>\n    </g>\n    <g transform='matrix(0.387407,0,0,0.387407,171.456,210.719)'>\n        <g transform='matrix(1.07796,0,0,0.792537,-23.8264,44.5258)'>\n            <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:40.93px;'/>\n        </g>\n        <g transform='matrix(1,0,0,1,-7.30471,-8.68871)'>\n            <g transform='matrix(1.02774,-4.71854e-19,-4.71854e-19,1.03159,-262.217,-3.18345)'>\n                <circle cx='567.803' cy='388.754' r='27.858' style='stroke:black;stroke-width:75.21px;stroke-linecap:round;stroke-linejoin:round;'/>\n            </g>\n            <g transform='matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)'>\n                <g transform='matrix(-1.13872,0,0,0.939727,1136.32,130.716)'>\n                    <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                </g>\n                <g transform='matrix(-1.2181,0,0,0.756475,980.282,228.489)'>\n                    <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                </g>\n            </g>\n        </g>\n    </g>\n    <g transform='matrix(0.387407,0,0,0.387407,171.456,454.781)'>\n        <g transform='matrix(1.07796,0,0,0.792537,-23.8264,44.5258)'>\n            <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:40.93px;'/>\n        </g>\n        <g transform='matrix(1,0,0,1,-7.30471,-8.68871)'>\n            <g transform='matrix(1.02774,-4.71854e-19,-4.71854e-19,1.03159,-262.217,-3.18345)'>\n                <circle cx='567.803' cy='388.754' r='27.858' style='stroke:black;stroke-width:75.21px;stroke-linecap:round;stroke-linejoin:round;'/>\n            </g>\n            <g transform='matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)'>\n                <g transform='matrix(-1.13872,0,0,0.939727,1136.32,130.716)'>\n                    <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                </g>\n                <g transform='matrix(-1.2181,0,0,0.756475,980.282,228.489)'>\n                    <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                </g>\n            </g>\n        </g>\n    </g>\n    <g transform='matrix(0.387407,0,0,0.387407,449.404,210.719)'>\n        <g transform='matrix(1.07796,0,0,0.792537,-23.8264,44.5258)'>\n            <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:40.93px;'/>\n        </g>\n        <g transform='matrix(1,0,0,1,-7.30471,-8.68871)'>\n            <g transform='matrix(1.02774,-4.71854e-19,-4.71854e-19,1.03159,-262.217,-3.18345)'>\n                <circle cx='567.803' cy='388.754' r='27.858' style='stroke:black;stroke-width:75.21px;stroke-linecap:round;stroke-linejoin:round;'/>\n            </g>\n            <g transform='matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)'>\n                <g transform='matrix(-1.13872,0,0,0.939727,1136.32,130.716)'>\n                    <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                </g>\n                <g transform='matrix(-1.2181,0,0,0.756475,980.282,228.489)'>\n                    <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                </g>\n            </g>\n        </g>\n    </g>\n    <g transform='matrix(0.387407,0,0,0.387407,449.404,454.781)'>\n        <g transform='matrix(1.07796,0,0,0.792537,-23.8264,44.5258)'>\n            <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:40.93px;'/>\n        </g>\n        <g transform='matrix(1,0,0,1,-7.30471,-8.68871)'>\n            <g transform='matrix(1.02774,-4.71854e-19,-4.71854e-19,1.03159,-262.217,-3.18345)'>\n                <circle cx='567.803' cy='388.754' r='27.858' style='stroke:black;stroke-width:75.21px;stroke-linecap:round;stroke-linejoin:round;'/>\n            </g>\n            <g transform='matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)'>\n                <g transform='matrix(-1.13872,0,0,0.939727,1136.32,130.716)'>\n                    <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                </g>\n                <g transform='matrix(-1.2181,0,0,0.756475,980.282,228.489)'>\n                    <path d='M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z'/>\n                </g>\n            </g>\n        </g>\n    </g>\n</svg>\n<div class=\"block-label\">${model.get('label')}</div>\n</div>`\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/image\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global grapesjs */\n\n  const pluginName = 'optimized-image';\n  const Plugin = grapesjs.plugins.add(pluginName, (editor, options = {}) => {\n    const components = editor.DomComponents;\n    const pluginOptions = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl = {\n        t: foo => foo\n      }\n    } = pluginOptions;\n    const styles = `\n    <style>\n    .optimized-image {\n      width: 100%;\n      max-width: 100%;\n      height: auto;\n    }\n    </style>\n  `;\n    const defaultOptions = {\n      extend: 'image',\n      model: {\n        defaults: {\n          draggable: '.bigordr-cell, [data-gjs-type=\"link\"]',\n          resizable: {\n            tl: 1,\n            tc: 0,\n            tr: 1,\n            cl: 0,\n            cr: 0,\n            bl: 1,\n            bc: 0,\n            br: 1,\n            ratioDefault: 1\n          },\n          activeOnRender: 1,\n          classes: [pluginName],\n          components: [styles],\n          traits: [{\n            type: 'bigordr-animation-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }, {\n            type: 'bigordr-link-trait'\n          }]\n        },\n        init() {\n          if (this?.parent()?.get('type') === 'bigordr-picture') {\n            // get picture id\n          }\n        }\n      },\n      view: {\n        onRender({\n          model,\n          editor,\n          el\n        }) {\n          // add id as class name. so, style can be added to a specific image\n          const className = `id-${model.getId()}`;\n          model.addClass(className);\n\n          // append default style\n          model.append(styles);\n          // append parent id\n          const isCopy = model.get('isCopy');\n          const parentId = model.get('data-parent-id');\n          const isParentTypeBigordrPicture = model.parent().get('type') === 'bigordr-picture';\n          if (isParentTypeBigordrPicture && !parentId) {\n            // get picture id\n            model.set('data-parent-id', model.parent().getId());\n          } else if (isParentTypeBigordrPicture && parentId && isCopy) {\n            // RESET PARENT ID\n            model.set('data-parent-id', model.parent().getId());\n          } else if (parentId && !isParentTypeBigordrPicture) {\n            el.setAttribute('data-remove-now', 'true');\n            el.style.display = 'none';\n            // move parent to here\n            const parentId = model.get('data-parent-id');\n            const parentPictureArray = editor.Components.getComponent().find(`#${parentId}`);\n            if (RA.isNilOrEmpty(parentPictureArray)) {\n              el.remove();\n              editor.refresh();\n              model.remove();\n              editor.refresh();\n              return;\n            }\n            const parentPicture = R.path([0])(parentPictureArray);\n            const imageAttributes = model.getAttributes();\n            const newPicture = model.replaceWith({\n              desktopUrl: parentPicture.get('desktopUrl'),\n              desktopUuid: parentPicture.get('desktopUuid'),\n              tabletUrl: parentPicture.get('tabletUrl'),\n              tabletUuid: parentPicture.get('tabletUuid'),\n              mobileUrl: parentPicture.get('mobileUrl'),\n              mobileUuid: parentPicture.get('mobileUuid'),\n              imageType: pluginName,\n              imageAttributes: R.pick(['data-href-title', 'data-href', 'data-href-target'])(imageAttributes),\n              type: 'bigordr-picture'\n            });\n            editor.refresh();\n            editor.selectRemove(model);\n            parentPicture.remove();\n            model.remove();\n            editor.refresh();\n            const newImg = newPicture.findType(pluginName)[0];\n            editor.select(newImg);\n            const previousClasses = model.getClasses();\n            R.forEach(className => newImg.addClass(className))(previousClasses);\n          }\n          // ONLY ON GJS\n          // Remove src and srcset attributes\n          // Let Uploadcare blinkloader handle the image\n          // const src = el.getAttribute('src') || ''\n          // const isUploadcare = R.startsWith('https://ucarecdn.com')(src)\n          // if (isUploadcare) {\n          //   el.removeAttribute('src')\n          //   el.setAttribute('src', src + '/-/format/webp/-/quality/smart/-/preview/')\n          // }\n        }\n      }\n    };\n    options = R.mergeDeepRight(defaultOptions, options);\n    components.addType(pluginName, options);\n    editor.on('component:remove', component => {\n      if (component && component.is(pluginName)) {\n        // REMOVE PICTURE TAG\n        const componentParent = component.parent();\n        if (componentParent) {\n          const isParentAPicture = componentParent.get('type') === 'bigordr-picture';\n          if (isParentAPicture) {\n            componentParent.remove();\n          }\n        }\n      }\n    });\n    editor.on('component:clone', component => {\n      if (component && component.is(pluginName)) {\n        component.set('isCopy', true);\n      }\n    });\n  });\n  var _default = _exports.default = Plugin;\n});","define(\"client/pods/grapesjs/plugins/non-editable\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global grapesjs */\n\n  const pluginName = 'bigordr-non-editable';\n  const componentClassName = 'bigordr-non-editable';\n  const Plugin = grapesjs.plugins.add(pluginName, (editor, options) => {\n    const defaultOptions = {\n      isComponent: el => {\n        if (el.className) {\n          if (R.includes(componentClassName, el.className)) {\n            return true;\n          }\n        }\n      },\n      model: {\n        defaults: {\n          badgable: false,\n          stylable: false,\n          editable: false,\n          selectable: false,\n          hoverable: false,\n          traits: []\n        }\n      }\n    };\n    options = R.mergeDeepRight(defaultOptions, options);\n    const components = editor.DomComponents;\n    components.addType(pluginName, options);\n  });\n  var _default = _exports.default = Plugin;\n});","define(\"client/pods/grapesjs/plugins/panels\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const {\n      Commands,\n      Panels\n    } = editor;\n    Commands.add('set-device-desktop', function (e) {\n      e.setDevice('Desktop');\n    });\n    Commands.add('set-device-tablet', function (e) {\n      e.setDevice('Tablet');\n    });\n    Commands.add('set-device-mobile', function (e) {\n      e.setDevice('Mobile portrait');\n    });\n    const panels = Panels.getPanels();\n    R.pipe(R.forEach(singlePanel => {\n      const el = singlePanel.get('el');\n      if (el.includes('style')) {\n        singlePanel.set('id', 'style');\n      } else if (el.includes('devices')) {\n        singlePanel.set('id', 'devices');\n      } else if (el.includes('basic')) {\n        singlePanel.set('id', 'basic');\n      }\n    }))(panels.models);\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/picture-layer-container\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager,\n      Commands\n    } = editor;\n    const bigordrPictureWrapper = 'bigordr-picture-layer-container';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', bigordrPictureWrapper])(editor);\n    const {\n      onDbClick,\n      onDrop,\n      intl = {\n        t: txt => txt\n      },\n      isReadonly,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const bigordrPictureBlock = `${bigordrPictureWrapper}-block`;\n    const bigordrPictureBlockLabel = intl.t(`${bigordrPictureWrapper}-block`);\n    DomComponents.addType(bigordrPictureWrapper, {\n      model: {\n        defaults: {\n          classes: [bigordrPictureWrapper],\n          tagName: 'div',\n          name: bigordrPictureBlockLabel,\n          // style: {\n          //   position: 'relative',\n          // },\n          components: [{\n            bigordrPictureOptions: {\n              'data-source-mobile': {\n                droppable: false,\n                draggable: false,\n                selectable: false\n              }\n            },\n            imgType: 'full-width-image',\n            type: 'full-width-image',\n            droppable: false,\n            draggable: false,\n            selectable: false,\n            src: ''\n          }, {\n            type: 'row',\n            removable: false,\n            draggable: false,\n            style: {\n              position: 'absolute',\n              top: 0,\n              right: 0,\n              left: 0,\n              padding: '15px 0 15px 0',\n              margin: '0 5% 0 5%',\n              display: 'flex',\n              height: '100%',\n              width: '90%'\n            },\n            components: [{\n              type: 'cell',\n              classes: ['bigordr-cell'],\n              style: {\n                height: 'auto',\n                'min-height': '100px',\n                margin: 'auto 0 auto 0',\n                display: 'block'\n              },\n              removable: false,\n              draggable: false\n            }]\n          }],\n          traits: [{\n            type: 'bigordr-animation-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }, {\n            type: 'bigordr-link-trait'\n          }]\n        }\n      }\n    });\n    BlockManager.add(bigordrPictureBlock, {\n      label: bigordrPictureBlockLabel,\n      category: categories.complex,\n      content: {\n        type: bigordrPictureWrapper\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n    <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 1024 530\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;\">\n    <g transform=\"matrix(1.08669,0,0,1.08669,-51.5659,-291.386)\">\n        <g>\n            <g transform=\"matrix(1.37733,0,0,1.65228,-180.565,-864.206)\">\n                <path d=\"M207.809,832.911L800.909,832.911\" style=\"fill:none;stroke:black;stroke-width:27.22px;\"/>\n            </g>\n            <g transform=\"matrix(1,0,0,1,118.44,399.43)\">\n                <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:397.95px;stroke-linecap:square;\"/>\n                </g>\n                <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:397.95px;stroke-linecap:square;\"/>\n                </g>\n            </g>\n            <g transform=\"matrix(-1,-1.22465e-16,1.22465e-16,-1,918.773,624.57)\">\n                <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:397.95px;stroke-linecap:square;\"/>\n                </g>\n                <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:397.95px;stroke-linecap:square;\"/>\n                </g>\n            </g>\n        </g>\n        <g transform=\"matrix(1,0,0,1,5.14536,37.2616)\">\n            <g>\n                <g transform=\"matrix(1.00794,0,0,0.792537,12.4421,44.5258)\">\n                    <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:35.52px;stroke-linecap:square;stroke-linejoin:miter;\"/>\n                </g>\n                <g transform=\"matrix(1.08069,0,0,1.08069,-48.6111,-30.4861)\">\n                    <g transform=\"matrix(1.51835,-6.97105e-19,-6.97105e-19,1.52404,-502.354,-212.761)\">\n                        <circle cx=\"567.803\" cy=\"388.754\" r=\"27.858\" style=\"fill:rgb(209,209,209);stroke:rgb(209,209,209);stroke-width:16.79px;\"/>\n                    </g>\n                    <g transform=\"matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)\">\n                        <g transform=\"matrix(-0.93623,0,0,0.939727,1014.78,130.716)\">\n                            <path d=\"M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z\" style=\"fill:rgb(209,209,209);\"/>\n                        </g>\n                        <g transform=\"matrix(-1.01027,0,0,0.756475,916.709,228.489)\">\n                            <path d=\"M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z\" style=\"fill:rgb(209,209,209);\"/>\n                        </g>\n                    </g>\n                </g>\n            </g>\n        </g>\n    </g>\n    <g transform=\"matrix(4.61671e-17,0.753966,-0.753966,4.61671e-17,897.629,-102.853)\">\n        <g transform=\"matrix(6.58553e-17,-1.0755,0.673667,4.12502e-17,129.874,1059.88)\">\n            <path d=\"M809.5,237.609L209.331,237.609L209.331,745L809.5,745L809.5,237.609ZM770.022,300.635L770.022,681.974C770.022,681.974 248.809,681.974 248.809,681.974C248.809,681.974 248.809,300.635 248.809,300.635C376.488,300.635 770.022,300.635 770.022,300.635L770.022,300.635Z\"/>\n        </g>\n        <g transform=\"matrix(1.24867,9.12172e-33,-9.12172e-33,1.24867,-367.618,-116.939)\">\n            <g transform=\"matrix(1.09375,0,0,1.09375,114.921,30.8775)\">\n                <circle cx=\"608.595\" cy=\"433.442\" r=\"79.613\" style=\"stroke:black;stroke-width:14.57px;stroke-linecap:square;\"/>\n            </g>\n            <g transform=\"matrix(3.30005e-17,-0.538939,0.538939,3.30005e-17,348.287,642.276)\">\n                <text x=\"172.705px\" y=\"901.151px\" style=\"font-family:'ArialMT', 'Arial', sans-serif;font-size:281.165px;fill:white;stroke:white;stroke-width:19.71px;stroke-linecap:butt;stroke-miterlimit:2;\">+</text>\n            </g>\n        </g>\n    </g>\n</svg>\n<div class=\"block-label\">${model.get('label')}</div>\n</div>`\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/picture\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const UPLOADCARE_DOMAIN = 'https://ucarecdn.com';\n  const UPLOADCARE_TRANSFORM = '/-/format/webp/-/quality/smart/-/preview/';\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager,\n      Commands\n    } = editor;\n    const bigordrPicture = 'bigordr-picture';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', bigordrPicture])(editor);\n    const {\n      onDbClick,\n      onDrop,\n      intl = {\n        t: txt => txt\n      },\n      isReadonly,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const bigordrPictureBlock = 'bigordr-picture-block';\n    const bigordrPictureBlockLabel = intl.t('bigordr-picture-block');\n    DomComponents.addType(bigordrPicture, {\n      model: {\n        defaults: {\n          tagName: 'picture',\n          name: bigordrPictureBlockLabel,\n          droppable: false,\n          draggable: true,\n          selectable: true,\n          components: [{\n            type: 'picture-desktop',\n            tagName: 'source',\n            name: intl.t('picture-desktop'),\n            attributes: {\n              'data-imgType': 'optimized-image',\n              'data-source': 'desktop',\n              srcset: '',\n              media: '(min-width: 1000px)'\n            },\n            selectable: false,\n            droppable: false,\n            draggable: false,\n            layerable: false\n          }, {\n            type: 'picture-tablet',\n            tagName: 'source',\n            name: intl.t('picture-tablet'),\n            attributes: {\n              'data-imgType': 'optimized-image',\n              'data-source': 'tablet',\n              srcset: '',\n              media: '(min-width: 700px)'\n            },\n            selectable: false,\n            droppable: false,\n            draggable: false,\n            layerable: false\n          }],\n          traits: []\n        },\n        init() {\n          const components = this.components();\n          if (components.length < 3) {\n            this.addImageTagByType();\n            this.setImages();\n          }\n        },\n        updated(property, value) {\n          const isUpdatedPropUrl = property === 'mobileUrl' || property === 'mobileUuid' || property === 'tabletUrl' || property === 'tabletUuid' || property === 'desktopUrl' || property === 'desktopUuid';\n          if (isUpdatedPropUrl) {\n            this.setImages();\n          }\n        },\n        addImageTagByType() {\n          const dataSourceMobileOptions = R.pathOr({}, ['attributes', 'data-source-mobile'])(this);\n          // ADD IMAGE TAG\n          const imageType = this.get('imageType');\n          const imageAttributes = this.get('imageAttributes') || {};\n          const attributes = R.mergeRight({\n            'data-imgType': imageType,\n            'data-source': 'mobile',\n            src: ''\n          }, imageAttributes);\n          const imageData = {\n            ...dataSourceMobileOptions,\n            type: imageType,\n            name: intl.t('optimized-image'),\n            attributes,\n            style: {\n              display: 'block'\n            },\n            selectable: false,\n            hoverable: false,\n            draggable: false,\n            layerable: false\n            // toolbar: [\n            //   {\n            //     attributes: { class: 'fas fa-level-up-alt' },\n            //     command: 'select-parent'\n            //   }\n            // ]\n          };\n          this.append(imageData);\n        },\n        setImages() {\n          const desktop = R.pipe(model => model.findType('picture-desktop'), R.pathOr({}, [0]))(this);\n          const tablet = R.pipe(model => model.findType('picture-tablet'), R.pathOr({}, [0]))(this);\n          const mobile = R.pipe(model => model.components(), R.pathOr([], ['models']), R.last)(this);\n          const fileType = R.pathOr('', ['attributes', 'fileType'])(this);\n          if (this.get('desktopUrl') && desktop.addAttributes) {\n            desktop.addAttributes({\n              srcset: this.get('desktopUrl'),\n              'data-blink-uuid': this.get('desktopUuid'),\n              'data-file-type': fileType\n            });\n          }\n          if (this.get('tabletUrl') && tablet.addAttributes) {\n            tablet.addAttributes({\n              srcset: this.get('tabletUrl'),\n              'data-blink-uuid': this.get('tabletUuid'),\n              'data-file-type': fileType\n            });\n          }\n          if (this.get('mobileUrl') && mobile.addAttributes) {\n            const src = this.get('mobileUrl');\n            const mobileUuid = this.get('mobileUuid');\n            mobile.set('src', src);\n            mobile.set('data-blink-uuid', mobileUuid);\n            mobile.addAttributes({\n              src,\n              'data-blink-uuid': mobileUuid,\n              'data-file-type': fileType\n            });\n            // mobile.set('droppable', true)\n            // mobile.set('removable', true)\n            // mobile.set('copyable', true)\n            // mobile.set('draggable', true)\n\n            if (mobile.get('type') === 'optimized-image') {\n              // this.set('draggable', '.bigordr-cell, [data-gjs-type=\"link\"]')\n              // this.set('resizable', true)\n            }\n          }\n        }\n      },\n      view: {\n        // Add easily component specific listeners with `events`\n        // Being component specific (eg. you can't attach here listeners to window)\n        // you don't need to care about removing them when the component is removed,\n        // they will be managed automatically by the editor\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick(event) {\n          if (onDbClick && !isReadonly) {\n            const element = event.target.parentElement;\n            onDbClick(element);\n          }\n        },\n        onRender({\n          model /* , editor, el */\n        }) {\n          model.removeStyle('width');\n          // add id as class name. so, style can be added to a specific image\n          // model.addClass(model.getId())\n\n          // ONLY ON GJS\n          // Remove src and srcset attributes\n          // Let Uploadcare blinkloader handle the image\n          const imgEl = this.el.querySelector('img');\n          if (!imgEl) {\n            return;\n          }\n          const src = imgEl.getAttribute('src') || '';\n          if (R.startsWith(UPLOADCARE_DOMAIN)(src)) {\n            imgEl.setAttribute('src', src + UPLOADCARE_TRANSFORM);\n            this.el.querySelectorAll('source').forEach(source => {\n              const srcset = source.getAttribute('srcset');\n              if (srcset && R.startsWith(UPLOADCARE_DOMAIN)(srcset)) {\n                source.setAttribute('srcset', srcset + UPLOADCARE_TRANSFORM);\n              }\n            });\n          }\n        }\n      }\n    });\n\n    /*\n      BlockManager.add(bigordrPictureBlock, {\n        label: bigordrPictureBlockLabel,\n        category: categories.basic,\n        content: {\n          type: bigordrPicture\n        },\n        render: () => `\n          <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 80 80\"><path d=\"M 5 14 L 5 68 L 75 68 L 75 14 Z M 7 16 L 73 16 L 73 66 L 7 66 Z M 13 22 L 13 60 L 67 60 L 67 22 Z M 15 24 L 65 24 L 65 37 C 64.449219 37 64 37.449219 64 38 C 64 38.550781 64.449219 39 65 39 L 65 43 C 64.449219 43 64 43.449219 64 44 C 64 44.550781 64.449219 45 65 45 L 65 49 L 63.492188 47.871094 C 63.804688 47.691406 64 47.359375 64 47 C 64 46.449219 63.550781 46 63 46 C 62.535156 46 62.132813 46.320313 62.027344 46.769531 L 55.492188 41.871094 C 55.804688 41.691406 56 41.359375 56 41 C 56 40.449219 55.550781 40 55 40 C 54.535156 40 54.132813 40.320313 54.027344 40.769531 L 49.988281 37.742188 L 49.96875 37.757813 C 49.859375 37.3125 49.457031 37 49 37 C 48.449219 37 48 37.449219 48 38 C 48 38.367188 48.203125 38.707031 48.527344 38.878906 L 42 43.957031 C 41.976563 43.421875 41.535156 43 41 43 C 40.449219 43 40 43.449219 40 44 C 40 44.054688 40.007813 44.109375 40.015625 44.164063 L 35.964844 40.734375 C 35.855469 40.335938 35.511719 40.046875 35.097656 40.003906 L 33.640625 38.769531 C 33.867188 38.578125 34 38.296875 34 38 C 34 37.449219 33.550781 37 33 37 C 32.644531 37 32.316406 37.191406 32.136719 37.5 L 30.0625 35.746094 L 23.589844 40.191406 C 23.417969 40.066406 23.210938 40 23 40 C 22.449219 40 22 40.449219 22 41 C 22 41.089844 22.011719 41.175781 22.035156 41.261719 L 18 44.035156 C 18 44.023438 18 44.011719 18 44 C 18 43.449219 17.550781 43 17 43 C 16.449219 43 16 43.449219 16 44 C 16 44.429688 16.273438 44.808594 16.679688 44.945313 L 15 46.097656 L 15 42 C 15.550781 42 16 41.550781 16 41 C 16 40.449219 15.550781 40 15 40 L 15 36 C 15.550781 36 16 35.550781 16 35 C 16 34.449219 15.550781 34 15 34 Z M 21 31 C 20.449219 31 20 31.449219 20 32 C 20 32.550781 20.449219 33 21 33 C 21.550781 33 22 32.550781 22 32 C 22 31.449219 21.550781 31 21 31 Z M 25 31 C 24.449219 31 24 31.449219 24 32 C 24 32.550781 24.449219 33 25 33 C 25.550781 33 26 32.550781 26 32 C 26 31.449219 25.550781 31 25 31 Z M 37 31 C 36.449219 31 36 31.449219 36 32 C 36 32.550781 36.449219 33 37 33 C 37.550781 33 38 32.550781 38 32 C 38 31.449219 37.550781 31 37 31 Z M 41 31 C 40.449219 31 40 31.449219 40 32 C 40 32.550781 40.449219 33 41 33 C 41.550781 33 42 32.550781 42 32 C 42 31.449219 41.550781 31 41 31 Z M 53 31 C 52.449219 31 52 31.449219 52 32 C 52 32.550781 52.449219 33 53 33 C 53.550781 33 54 32.550781 54 32 C 54 31.449219 53.550781 31 53 31 Z M 57 31 C 56.449219 31 56 31.449219 56 32 C 56 32.550781 56.449219 33 57 33 C 57.550781 33 58 32.550781 58 32 C 58 31.449219 57.550781 31 57 31 Z M 19 34 C 18.449219 34 18 34.449219 18 35 C 18 35.550781 18.449219 36 19 36 C 19.550781 36 20 35.550781 20 35 C 20 34.449219 19.550781 34 19 34 Z M 23 34 C 22.449219 34 22 34.449219 22 35 C 22 35.550781 22.449219 36 23 36 C 23.550781 36 24 35.550781 24 35 C 24 34.449219 23.550781 34 23 34 Z M 27 34 C 26.449219 34 26 34.449219 26 35 C 26 35.550781 26.449219 36 27 36 C 27.550781 36 28 35.550781 28 35 C 28 34.449219 27.550781 34 27 34 Z M 31 34 C 30.449219 34 30 34.449219 30 35 C 30 35.550781 30.449219 36 31 36 C 31.550781 36 32 35.550781 32 35 C 32 34.449219 31.550781 34 31 34 Z M 35 34 C 34.449219 34 34 34.449219 34 35 C 34 35.550781 34.449219 36 35 36 C 35.550781 36 36 35.550781 36 35 C 36 34.449219 35.550781 34 35 34 Z M 39 34 C 38.449219 34 38 34.449219 38 35 C 38 35.550781 38.449219 36 39 36 C 39.550781 36 40 35.550781 40 35 C 40 34.449219 39.550781 34 39 34 Z M 43 34 C 42.449219 34 42 34.449219 42 35 C 42 35.550781 42.449219 36 43 36 C 43.550781 36 44 35.550781 44 35 C 44 34.449219 43.550781 34 43 34 Z M 47 34 C 46.449219 34 46 34.449219 46 35 C 46 35.550781 46.449219 36 47 36 C 47.550781 36 48 35.550781 48 35 C 48 34.449219 47.550781 34 47 34 Z M 51 34 C 50.449219 34 50 34.449219 50 35 C 50 35.550781 50.449219 36 51 36 C 51.550781 36 52 35.550781 52 35 C 52 34.449219 51.550781 34 51 34 Z M 55 34 C 54.449219 34 54 34.449219 54 35 C 54 35.550781 54.449219 36 55 36 C 55.550781 36 56 35.550781 56 35 C 56 34.449219 55.550781 34 55 34 Z M 59 34 C 58.449219 34 58 34.449219 58 35 C 58 35.550781 58.449219 36 59 36 C 59.550781 36 60 35.550781 60 35 C 60 34.449219 59.550781 34 59 34 Z M 63 34 C 62.449219 34 62 34.449219 62 35 C 62 35.550781 62.449219 36 63 36 C 63.550781 36 64 35.550781 64 35 C 64 34.449219 63.550781 34 63 34 Z M 17 37 C 16.449219 37 16 37.449219 16 38 C 16 38.550781 16.449219 39 17 39 C 17.550781 39 18 38.550781 18 38 C 18 37.449219 17.550781 37 17 37 Z M 21 37 C 20.449219 37 20 37.449219 20 38 C 20 38.550781 20.449219 39 21 39 C 21.550781 39 22 38.550781 22 38 C 22 37.449219 21.550781 37 21 37 Z M 25 37 C 24.449219 37 24 37.449219 24 38 C 24 38.550781 24.449219 39 25 39 C 25.550781 39 26 38.550781 26 38 C 26 37.449219 25.550781 37 25 37 Z M 37 37 C 36.449219 37 36 37.449219 36 38 C 36 38.550781 36.449219 39 37 39 C 37.550781 39 38 38.550781 38 38 C 38 37.449219 37.550781 37 37 37 Z M 41 37 C 40.449219 37 40 37.449219 40 38 C 40 38.550781 40.449219 39 41 39 C 41.550781 39 42 38.550781 42 38 C 42 37.449219 41.550781 37 41 37 Z M 45 37 C 44.449219 37 44 37.449219 44 38 C 44 38.550781 44.449219 39 45 39 C 45.550781 39 46 38.550781 46 38 C 46 37.449219 45.550781 37 45 37 Z M 53 37 C 52.449219 37 52 37.449219 52 38 C 52 38.550781 52.449219 39 53 39 C 53.550781 39 54 38.550781 54 38 C 54 37.449219 53.550781 37 53 37 Z M 57 37 C 56.449219 37 56 37.449219 56 38 C 56 38.550781 56.449219 39 57 39 C 57.550781 39 58 38.550781 58 38 C 58 37.449219 57.550781 37 57 37 Z M 61 37 C 60.449219 37 60 37.449219 60 38 C 60 38.550781 60.449219 39 61 39 C 61.550781 39 62 38.550781 62 38 C 62 37.449219 61.550781 37 61 37 Z M 29.9375 38.253906 L 53.269531 58 L 15 58 L 15 48.527344 Z M 19 40 C 18.449219 40 18 40.449219 18 41 C 18 41.550781 18.449219 42 19 42 C 19.550781 42 20 41.550781 20 41 C 20 40.449219 19.550781 40 19 40 Z M 39 40 C 38.449219 40 38 40.449219 38 41 C 38 41.550781 38.449219 42 39 42 C 39.550781 42 40 41.550781 40 41 C 40 40.449219 39.550781 40 39 40 Z M 43 40 C 42.449219 40 42 40.449219 42 41 C 42 41.550781 42.449219 42 43 42 C 43.550781 42 44 41.550781 44 41 C 44 40.449219 43.550781 40 43 40 Z M 59 40 C 58.449219 40 58 40.449219 58 41 C 58 41.550781 58.449219 42 59 42 C 59.550781 42 60 41.550781 60 41 C 60 40.449219 59.550781 40 59 40 Z M 63 40 C 62.449219 40 62 40.449219 62 41 C 62 41.550781 62.449219 42 63 42 C 63.550781 42 64 41.550781 64 41 C 64 40.449219 63.550781 40 63 40 Z M 50.011719 40.257813 L 65 51.5 L 65 58 L 56.367188 58 L 42.394531 46.179688 Z M 61 43 C 60.449219 43 60 43.449219 60 44 C 60 44.550781 60.449219 45 61 45 C 61.550781 45 62 44.550781 62 44 C 62 43.449219 61.550781 43 61 43 Z\"></path></svg>\n        `\n      })\n    */\n\n    editor.on('block:drag:stop', component => {\n      if (component && component.is(bigordrPicture)) {\n        editor.select(component);\n        if (onDrop) {\n          onDrop(component.getEl());\n        }\n      }\n    });\n    editor.on('component:remove', (component, ...args) => {\n      if (component && component.is(bigordrPicture)) {\n        const editor = component.em.getEditor();\n        const editorCanvas = editor.Canvas.getDocument();\n        if (editorCanvas) {\n          // remove images outside pictures\n          const imgsToRemove = Array.from(editorCanvas.querySelectorAll('[data-remove-now=\"true\"]'));\n          R.forEach(img => img.remove())(imgsToRemove);\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/product\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const pluginName = 'bigordr-product';\n    const columnComponentClassName = 'bigordr-cell';\n    const blockId = `${pluginName}-block`;\n    const pluginOptions = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      disabled,\n      onDbClick,\n      onDrop,\n      intl,\n      isReadonly,\n      onRender,\n      /** @type {Categories} */\n      categories\n    } = pluginOptions;\n    if (disabled) {\n      return;\n    }\n    const blockLabel = intl.t('product');\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const styles = `\n    <style>\n      .bigordr-product {\n        display: inline-block;\n      }\n    </style>\n  `;\n    const setProductImage = (component, value) => {\n      if (!value) {\n        value = component.get('defaultImage');\n      }\n      const image = component.findType('bigordr-product-image').firstObject;\n      if (image) {\n        image.setAttributes({\n          src: value\n        });\n      }\n    };\n    const setProductId = (component, value) => {\n      if (!value) {\n        value = component.get('itemKey');\n      }\n      const bigordrProductsId = component.findType('bigordr-product-id').firstObject;\n      if (bigordrProductsId) {\n        const bigordrProductsIdAttr = bigordrProductsId.getAttributes();\n        bigordrProductsIdAttr['data-bigordr-product'] = value;\n        bigordrProductsId.setAttributes(bigordrProductsIdAttr);\n      }\n    };\n    DomComponents.addType(pluginName, {\n      model: {\n        defaults: {\n          itemKey: '0000000',\n          name: blockLabel,\n          defaultImage: 'https://via.placeholder.com/200?text=Product',\n          tagName: 'span',\n          draggable: `.${columnComponentClassName}`,\n          droppable: false,\n          classes: ['bigordr-product'],\n          components: [{\n            type: 'bigordr-product-id',\n            badgable: false,\n            copyable: false,\n            draggable: false,\n            droppable: false,\n            editable: false,\n            highlightable: false,\n            hoverable: false,\n            layerable: false,\n            propagate: ['badgable', 'copyable', 'draggable', 'droppable', 'editable', 'highlightable', 'hoverable', 'layerable', 'removable', 'resizable', 'selectable', 'stylable'],\n            removable: false,\n            resizable: false,\n            selectable: false,\n            stylable: false,\n            components: [{\n              type: 'bigordr-product-image',\n              tagName: 'img',\n              traits: []\n            }],\n            traits: []\n          }],\n          traits: []\n        },\n        init() {\n          setProductId(this);\n          setProductImage(this);\n        },\n        updated(property, value) {\n          if (property === 'itemKey') {\n            setProductId(this, value);\n          }\n          if (property === 'defaultImage') {\n            setProductImage(this, value);\n          }\n        }\n      },\n      view: {\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick() {\n          const parentType = this.model.parent().get('type');\n          if (onDbClick && !isReadonly && parentType !== 'bigordr-products') {\n            onDbClick(this.model);\n          }\n        },\n        onRender() {\n          if (onRender) {\n            onRender(this.model);\n          }\n        }\n      }\n    });\n\n    // BlockManager.add(blockId, {\n    //   label: blockLabel,\n    //   category: categories.shop,\n    //   content: {\n    //     type: pluginName,\n    //     draggable: `.${columnComponentClassName}`,\n    //     content: styles\n    //   },\n    //   render: ({model}) => `\n    //   <div class=\"gjs-block__media\">\n    //     <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;\">\n    //       <g transform=\"matrix(1.26996,0,0,1.26996,138.624,158.728)\">\n    //           <g transform=\"matrix(-0.694823,-3.04913e-16,1.52756e-16,-0.602169,647.959,604.311)\">\n    //               <rect x=\"209.331\" y=\"237.609\" width=\"600.169\" height=\"507.391\" style=\"fill:white;\"/>\n    //               <path d=\"M809.5,237.609L209.331,237.609L209.331,745L809.5,745L809.5,237.609ZM769.835,283.377L248.996,283.377L248.996,699.232L769.835,699.232L769.835,283.377Z\"/>\n    //           </g>\n    //           <g transform=\"matrix(0.993398,0,0,0.663184,-259.355,-401.328)\">\n    //               <path d=\"M766.929,839.922L347.146,839.922L408.125,748.581L705.95,748.581L766.929,839.922Z\"/>\n    //           </g>\n    //           <g transform=\"matrix(4.57099e-17,0.841621,-1.0989,7.04059e-17,695.157,-185.091)\">\n    //               <rect x=\"494.977\" y=\"314.602\" width=\"40.355\" height=\"100.893\"/>\n    //           </g>\n    //           <g transform=\"matrix(-1.74942,0,0,1.09689,1527.02,-330.238)\">\n    //               <rect x=\"656.97\" y=\"593.001\" width=\"15.497\" height=\"84.821\"/>\n    //           </g>\n    //           <g transform=\"matrix(-2.00868,0,0,1.09689,1744.48,-330.238)\">\n    //               <rect x=\"656.97\" y=\"593.001\" width=\"15.497\" height=\"84.821\"/>\n    //           </g>\n    //           <g transform=\"matrix(-1.96583,0,0,1.09689,1595.75,-330.238)\">\n    //               <rect x=\"656.97\" y=\"593.001\" width=\"15.497\" height=\"84.821\"/>\n    //           </g>\n    //           <g transform=\"matrix(-1.05195,0,0,1.09689,1028.68,-330.238)\">\n    //               <rect x=\"656.97\" y=\"593.001\" width=\"15.497\" height=\"84.821\"/>\n    //           </g>\n    //           <g transform=\"matrix(-1.05195,0,0,1.09689,1147.26,-330.238)\">\n    //               <rect x=\"656.97\" y=\"593.001\" width=\"15.497\" height=\"84.821\"/>\n    //           </g>\n    //       </g>\n    //   </svg>\n    //   <div class=\"block-label\">${model.get('label')}</div>\n    //   </div>\n    //   `\n    // })\n\n    editor.on('block:drag:stop', component => {\n      if (component && component.is && component.is(pluginName)) {\n        editor.select(component);\n        if (onDrop) {\n          onDrop(component);\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/products\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const bigordrProducts = 'bigordr-products';\n  const bigordrProductsWrapper = 'bigordr-products-wrapper';\n  const columnComponentClassName = 'bigordr-cell';\n  var _default = editor => {\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', bigordrProducts])(editor);\n    const {\n      disabled,\n      onDbClick,\n      onDrop,\n      intl,\n      isReadonly,\n      /** @type {Categories} */\n      categories\n    } = options;\n    if (disabled) {\n      return;\n    }\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const noProductsMessage = `<div data-no-products-message='true' style='margin: 50px;text-align: center;grid-area: btnLeft/products/btnRight;'><h1>${intl.t('no products found, double click to refresh or add new products')}</h1></div>`;\n    const style = `\n  <style>\n    .bigordr-products-wrapper {\n      display: grid;\n      grid-template-rows: auto;\n      grid-template-areas: \"btnLeft products btnRight\";\n      grid-template-columns: auto auto auto;\n    }\n\n    .bigordr-products-wrapper-controls {\n    align-self: center;\n    margin: 10px;\n    }\n\n    .bigordr-products {\n      overflow-x: auto;\n      white-space: nowrap;\n      padding: 15px 0;\n      display: flex;\n    }\n\n    .slider__products-card {\n      display: inline-block;\n      margin: 0 10px;\n    }\n\n    .checkout-form__extra-max-width{\n    max-width: 1255px;\n    }\n  </style>\n`;\n    DomComponents.addType('noProductsMessage', {\n      model: {\n        defaults: {\n          tagName: 'div',\n          'data-no-products-message': 'true',\n          style: {\n            margin: '50px',\n            'text-align': 'center',\n            'grid-area': 'btnLeft/products/btnRight'\n          },\n          attributes: {\n            'data-no-products-message': 'true'\n          },\n          badgable: false,\n          copyable: false,\n          draggable: false,\n          droppable: false,\n          editable: false,\n          highlightable: false,\n          hoverable: false,\n          layerable: false,\n          propagate: ['badgable', 'copyable', 'draggable', 'droppable', 'editable', 'highlightable', 'hoverable', 'layerable', 'removable', 'resizable', 'selectable', 'stylable'],\n          removable: false,\n          resizable: false,\n          selectable: false,\n          stylable: false,\n          components: [{\n            type: 'text',\n            tagName: 'h1',\n            content: intl.t('no products found, double click to refresh or add new products'),\n            traits: []\n          }],\n          traits: []\n        }\n      }\n    });\n    DomComponents.addType(bigordrProducts, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          classes: [bigordrProducts],\n          traits: []\n        }\n      }\n    });\n    DomComponents.addType(bigordrProductsWrapper, {\n      model: {\n        defaults: {\n          defaultNoProductsMessage: noProductsMessage,\n          defaultStyle: style,\n          tagName: 'div',\n          name: intl.t('products'),\n          classes: [bigordrProductsWrapper],\n          draggable: `.${columnComponentClassName}`,\n          droppable: false,\n          components: [{\n            type: 'noProductsMessage',\n            traits: []\n          }, {\n            type: bigordrProducts,\n            style: {\n              'grid-area': 'products'\n            },\n            badgable: false,\n            copyable: false,\n            draggable: false,\n            droppable: false,\n            editable: false,\n            highlightable: false,\n            hoverable: false,\n            layerable: false,\n            propagate: ['badgable', 'copyable', 'draggable', 'droppable', 'editable', 'highlightable', 'hoverable', 'layerable', 'removable', 'resizable', 'selectable', 'stylable'],\n            removable: false,\n            resizable: false,\n            selectable: false,\n            stylable: false,\n            traits: []\n          }],\n          traits: []\n        }\n      },\n      view: {\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick(event) {\n          if (onDbClick && !isReadonly) {\n            const element = event.target.parentElement;\n            onDbClick(element);\n          }\n        }\n      }\n    });\n    BlockManager.add(`${bigordrProducts}-block`, {\n      label: intl.t('product'),\n      category: categories.shop,\n      content: {\n        type: bigordrProductsWrapper,\n        content: `${style}`\n        // draggable: rowComponentClassNames\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n      <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'>\n        <g transform='matrix(1,0,0,1,38.5979,8.83922)'>\n            <g transform='matrix(1,0,0,1,-79.7883,-78.1175)'>\n                <g transform='matrix(1,0,0,1,37.8139,455.871)'>\n                    <g transform='matrix(-0.694823,-3.04913e-16,1.52756e-16,-0.602169,647.959,604.311)'>\n                        <rect x='209.331' y='237.609' width='600.169' height='507.391' style='fill:white;'/>\n                        <path d='M809.5,237.609L209.331,237.609L209.331,745L809.5,745L809.5,237.609ZM759.127,295.733L259.704,295.733L259.704,686.877L759.127,686.877L759.127,295.733Z'/>\n                    </g>\n                    <g transform='matrix(0.993398,0,0,0.663184,-259.355,-401.328)'>\n                        <path d='M766.929,839.922L347.146,839.922L408.125,748.581L705.95,748.581L766.929,839.922Z'/>\n                    </g>\n                    <g transform='matrix(4.57099e-17,0.841621,-1.0989,7.04059e-17,695.157,-185.091)'>\n                        <rect x='494.977' y='314.602' width='40.355' height='100.893'/>\n                    </g>\n                    <g transform='matrix(-1.74942,0,0,1.09689,1527.02,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                    <g transform='matrix(-2.00868,0,0,1.09689,1744.48,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                    <g transform='matrix(-1.96583,0,0,1.09689,1595.75,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                    <g transform='matrix(-1.05195,0,0,1.09689,1028.68,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                    <g transform='matrix(-1.05195,0,0,1.09689,1147.26,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                </g>\n                <g transform='matrix(1,0,0,1,480.557,455.871)'>\n                    <g transform='matrix(-0.694823,-3.04913e-16,1.52756e-16,-0.602169,647.959,604.311)'>\n                        <rect x='209.331' y='237.609' width='600.169' height='507.391' style='fill:white;'/>\n                        <path d='M809.5,237.609L209.331,237.609L209.331,745L809.5,745L809.5,237.609ZM759.127,295.733L259.704,295.733L259.704,686.877L759.127,686.877L759.127,295.733Z'/>\n                    </g>\n                    <g transform='matrix(0.993398,0,0,0.663184,-259.355,-401.328)'>\n                        <path d='M766.929,839.922L347.146,839.922L408.125,748.581L705.95,748.581L766.929,839.922Z'/>\n                    </g>\n                    <g transform='matrix(4.57099e-17,0.841621,-1.0989,7.04059e-17,695.157,-185.091)'>\n                        <rect x='494.977' y='314.602' width='40.355' height='100.893'/>\n                    </g>\n                    <g transform='matrix(-1.74942,0,0,1.09689,1527.02,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                    <g transform='matrix(-2.00868,0,0,1.09689,1744.48,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                    <g transform='matrix(-1.96583,0,0,1.09689,1595.75,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                    <g transform='matrix(-1.05195,0,0,1.09689,1028.68,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                    <g transform='matrix(-1.05195,0,0,1.09689,1147.26,-330.238)'>\n                        <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                    </g>\n                </g>\n            </g>\n            <g transform='matrix(1,0,0,1,179.397,72.2187)'>\n                <g transform='matrix(-0.694823,-3.04913e-16,1.52756e-16,-0.602169,647.959,604.311)'>\n                    <rect x='209.331' y='237.609' width='600.169' height='507.391' style='fill:white;'/>\n                    <path d='M809.5,237.609L209.331,237.609L209.331,745L809.5,745L809.5,237.609ZM759.127,295.733L259.704,295.733L259.704,686.877L759.127,686.877L759.127,295.733Z'/>\n                </g>\n                <g transform='matrix(0.993398,0,0,0.663184,-259.355,-401.328)'>\n                    <path d='M766.929,839.922L347.146,839.922L408.125,748.581L705.95,748.581L766.929,839.922Z'/>\n                </g>\n                <g transform='matrix(4.57099e-17,0.841621,-1.0989,7.04059e-17,695.157,-185.091)'>\n                    <rect x='494.977' y='314.602' width='40.355' height='100.893'/>\n                </g>\n                <g transform='matrix(-1.74942,0,0,1.09689,1527.02,-330.238)'>\n                    <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                </g>\n                <g transform='matrix(-2.00868,0,0,1.09689,1744.48,-330.238)'>\n                    <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                </g>\n                <g transform='matrix(-1.96583,0,0,1.09689,1595.75,-330.238)'>\n                    <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                </g>\n                <g transform='matrix(-1.05195,0,0,1.09689,1028.68,-330.238)'>\n                    <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                </g>\n                <g transform='matrix(-1.05195,0,0,1.09689,1147.26,-330.238)'>\n                    <rect x='656.97' y='593.001' width='15.497' height='84.821'/>\n                </g>\n            </g>\n        </g>\n    </svg>\n    <div class=\"block-label\">${model.get('label')}</div>\n    </div>\n  `\n    });\n    editor.on('block:drag:stop', component => {\n      if (component && component.is && component.is(bigordrProductsWrapper)) {\n        editor.select(component);\n        if (onDrop) {\n          onDrop(component);\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/row\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const pluginName = 'row';\n    const bigOrdrInnerRow = 'bigordr-inner-row';\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl = {\n        t: txt => txt\n      },\n      /** @type {Categories} */\n      categories\n    } = options;\n    const blockId = `${pluginName}-block`;\n    const blockLabel = intl.t('row');\n    const rowComponentClassName = 'bigordr-inner-row';\n    const cellComponentClassName = 'bigordr-cell';\n    const style = `\n    <style>\n      .${rowComponentClassName} {\n        display: -webkit-box;\n        display: -moz-box;\n        display: -webkit-flex;\n        display: -ms-flexbox;\n        display: flex;\n\n        -webkit-box-direction: normal;\n        -webkit-box-orient: horizontal;\n        -moz-box-direction: normal;\n        -moz-box-orient: horizontal;\n\n        min-height: 55px;\n      }\n\n      @media (max-width: 768px) {\n        .${rowComponentClassName} {\n          -webkit-flex-wrap: wrap;\n          -ms-flex-wrap: wrap;\n          flex-wrap: wrap;\n          min-height:55px;\n          width:100%;\n          padding:15px;\n        }\n      }\n\n      .${cellComponentClassName} {\n        min-height: 50px;\n        flex-grow: 1;\n        flex-basis: 100%;\n        font-family: Arial, Helvetica, sans-serif;\n      }\n    </style>\n  `;\n    const defaultPadding = {\n      padding: '15px 10% 15px 10%'\n    };\n    const defaultChildPadding = {\n      padding: '10px 10px 10px 10px'\n    };\n    DomComponents.addType(pluginName, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          name: intl.t(bigOrdrInnerRow),\n          classes: [bigOrdrInnerRow],\n          resizable: false,\n          draggable: `.${cellComponentClassName}, [data-gjs-type='wrapper'], [data-gjs-type='lory-slide']`,\n          droppable(itemModel, targetModel) {\n            const itemType = itemModel.get('type');\n            const itemClassNames = itemModel.getClasses() || [];\n            if (itemClassNames.includes(cellComponentClassName)) {\n              return true;\n            }\n            if (itemType === 'custom-code') {\n              return true;\n            }\n            const slider = targetModel.closestType('lory-slider');\n            if (slider) {\n              const disabledArr = ['bigordr-slider', 'bigordr-background-fixed', 'bigordr-blogs-wrapper', 'bigordr-products-wrapper', 'bigordr-tabs-with-header', 'bigordr-grid-images', 'bigordr-scratch-card', 'tabs', 'lory-slider'];\n              const disableDrop = R.includes(itemType)(disabledArr);\n              if (disableDrop) {\n                return false;\n              }\n            }\n            return false;\n          },\n          components: [{\n            type: 'cell',\n            classes: ['bigordr-cell']\n          }],\n          traits: []\n        }\n      },\n      view: {\n        init({\n          model\n        }) {\n          const hasParent = model.closestType('row') || model.closestType('bigordr-strip') || model.closestType('tab-contents') || model.closestType('lory-slide');\n          //\n          // if (model.closestType('tab-contents')) {\n          //   model.onAll(innerComponents => innerComponents.set('removable', false))\n          // }\n\n          const modifiedStyle = model.getStyle();\n          const hasNotModifiedStyle = R.isEmpty(modifiedStyle);\n          if (hasParent && hasNotModifiedStyle) {\n            model.setStyle(defaultChildPadding);\n          } else if (hasNotModifiedStyle) {\n            model.setStyle(defaultPadding);\n          } else {\n            model.setStyle(modifiedStyle);\n          }\n        }\n      }\n    });\n    BlockManager.add(blockId, {\n      label: blockLabel,\n      category: categories.basic,\n      content: {\n        type: pluginName\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n      <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n    <g transform='matrix(1.15939,0,0,1.15939,-76.9273,-146.697)'>\n        <g transform='matrix(0.987223,1.2326e-32,-6.16298e-33,0.839935,1.85971,94.4041)'>\n            <rect x='196.848' y='321.016' width='631.615' height='327.658' style='fill:white;stroke:black;stroke-width:32.94px;' />\n        </g>\n      <g transform='matrix(9.35262e-17,1.5274,-1.5274,9.35262e-17,1251.14,-573.016)'>\n            <g transform='matrix(1.09375,2.6963e-32,-2.6963e-32,1.09375,128.028,12.4834)'>\n                <circle cx='608.595' cy='433.442' r='79.613' style='stroke:black;stroke-width:18.07px;stroke-linejoin:round;' />\n            </g>\n        <g transform='matrix(3.97777e-17,-0.649619,0.649619,3.97777e-17,272.62,652.086)'>\n                <path d='M243.134,868.614L243.134,813.425L188.356,813.425L188.356,790.36L243.134,790.36L243.134,735.583L266.473,735.583L266.473,790.36L321.25,790.36L321.25,813.425L266.473,813.425L266.473,868.614L243.134,868.614Z' style='fill:white;fill-rule:nonzero;stroke:white;stroke-width:30.42px;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:2;' />\n            </g>\n        </g>\n    </g>\n</svg>\n<div class=\"block-label\">${model.get('label')}</div>\n</div>`\n    });\n    editor.on('component:add', component => {\n      if (component && component.is && (component.is('row') || component.is('bigordr-strip'))) {\n        component.components().add(style);\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/scratch-card\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: scratch-card\n   * @author Derek Chou\n   * @since 02/11/2022\n   * @copyright (C) 2022 BigOrdr\n   * @description: Scratch Card\n   */\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const pluginName = 'bigordr-scratch-card';\n    const pluginBlockId = `${pluginName}-block`;\n    const bigordrScratchCardCover = 'bigordr-scratch-card-cover';\n    const bigordrScratchCardBackground = 'bigordr-scratch-card-background';\n    const COVER_SELECTOR = '[data-gjs-type=\"bigordr-scratch-card-cover\"]';\n    const BACKGROUND_SELECTOR = '[data-gjs-type=\"bigordr-scratch-card-background\"]';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', 'bigordr-scratch-card'])(editor);\n    const {\n      onDbClick,\n      onDrop,\n      intl,\n      isReadonly,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const blockLabel = intl.t(pluginName);\n    DomComponents.addType(bigordrScratchCardCover, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          attributes: {\n            'data-gjs-component': bigordrScratchCardCover,\n            alt: 'none'\n          },\n          style: {\n            width: 'auto'\n          },\n          badgable: false,\n          copyable: false,\n          draggable: false,\n          droppable: false,\n          editable: false,\n          highlightable: false,\n          hoverable: false,\n          layerable: false,\n          removable: false,\n          resizable: false,\n          selectable: false,\n          stylable: false,\n          traits: []\n        }\n      }\n    });\n    DomComponents.addType(bigordrScratchCardBackground, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          attributes: {\n            'data-gjs-component': bigordrScratchCardBackground,\n            alt: 'none'\n          },\n          style: {\n            width: 'auto'\n          },\n          badgable: false,\n          copyable: false,\n          draggable: false,\n          droppable: false,\n          editable: false,\n          highlightable: true,\n          hoverable: false,\n          layerable: false,\n          removable: false,\n          resizable: false,\n          selectable: false,\n          stylable: false,\n          traits: []\n        }\n      }\n    });\n    DomComponents.addType(pluginName, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          name: blockLabel,\n          draggable: true,\n          droppable: false,\n          attributes: {\n            'data-gjs-component': pluginName\n          },\n          toolbar: [{\n            attributes: {\n              class: 'fas fa-pencil-alt'\n            },\n            command(editor) {\n              const el = editor.getSelected().getEl();\n              if (onDbClick) {\n                onDbClick(el.closest('[data-gjs-type=\"bigordr-scratch-card\"]'));\n              }\n            }\n          }, {\n            attributes: {\n              class: 'fa fa-trash'\n            },\n            command: 'tlb-delete'\n          }],\n          components: [{\n            type: 'row',\n            style: {\n              padding: '0px 0px 0px 0px'\n            },\n            components: [{\n              selectable: false,\n              removable: false,\n              draggable: false,\n              type: bigordrScratchCardCover,\n              attributes: {},\n              traits: []\n            }, {\n              selectable: false,\n              removable: false,\n              draggable: false,\n              type: bigordrScratchCardBackground,\n              attributes: {},\n              traits: []\n            }],\n            badgable: false,\n            copyable: false,\n            draggable: false,\n            droppable: false,\n            editable: false,\n            highlightable: false,\n            hoverable: false,\n            layerable: false,\n            removable: false,\n            resizable: false,\n            selectable: false,\n            stylable: false,\n            traits: []\n          }]\n        }\n      },\n      view: {\n        // Add easily component specific listeners with `events`\n        // Being component specific (eg. you can't attach here listeners to window)\n        // you don't need to care about removing them when the component is removed,\n        // they will be managed automatically by the editor\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick(event) {\n          if (onDbClick && !isReadonly) {\n            const el = editor.getSelected().getEl();\n            onDbClick(el.closest('[data-gjs-type=\"bigordr-scratch-card\"]'));\n          }\n        },\n        onRender({\n          model,\n          editor,\n          el\n        }) {\n          const coverEl = el.querySelector(COVER_SELECTOR);\n          const backgroundEl = el.querySelector(BACKGROUND_SELECTOR);\n          const dataset = el.dataset || {};\n          if (RA.isNilOrEmpty(dataset)) {\n            return;\n          }\n          const {\n            backgroundBgColor,\n            backgroundImageSet,\n            backgroundImageUrl,\n            backgroundText,\n            backgroundTextColor,\n            backgroundType,\n            coverBgColor,\n            coverImageSet,\n            coverImageUrl,\n            coverText,\n            coverTextColor,\n            coverType,\n            imageHeight,\n            imageWidth\n          } = dataset;\n\n          // set for cover\n          this._setInnerLayout({\n            el: coverEl,\n            width: imageWidth,\n            height: imageHeight,\n            imageSet: coverImageSet,\n            imageUrl: coverImageUrl,\n            text: coverText,\n            textColor: coverTextColor,\n            type: coverType,\n            bgColor: coverBgColor\n          });\n\n          // set gor background\n          this._setInnerLayout({\n            el: backgroundEl,\n            width: imageWidth,\n            height: imageHeight,\n            imageSet: backgroundImageSet,\n            imageUrl: backgroundImageUrl,\n            text: backgroundText,\n            textColor: backgroundTextColor,\n            type: backgroundType,\n            bgColor: backgroundBgColor\n          });\n        },\n        _setInnerLayout({\n          el,\n          width,\n          height,\n          imageSet,\n          imageUrl,\n          text,\n          textColor,\n          type,\n          bgColor\n        }) {\n          const hasChildren = el.children.length > 0;\n          if (!hasChildren) {\n            el.appendChild(document.createElement('div'));\n          }\n          const innerEl = document.createElement('div');\n          innerEl.style.width = `${width}px`;\n          innerEl.style.height = `${height}px`;\n          innerEl.style.color = textColor;\n          innerEl.style.display = 'flex';\n          innerEl.style.alignItems = 'center';\n          innerEl.style.justifyContent = 'center';\n          const textContent = document.createElement('p');\n          textContent.innerHTML = text;\n          innerEl.appendChild(textContent);\n\n          // @TODO: use different imageUrl from imageSet based on preview device\n\n          const isImage = !!(type === 'backgroundImage' && imageUrl);\n          if (isImage) {\n            innerEl.style.background = `url(${imageUrl}-/scale_crop/${width}x${height}/center/)`;\n          } else {\n            innerEl.style.backgroundColor = bgColor;\n          }\n          const replaceTarget = el.children[0];\n          replaceTarget.replaceWith(innerEl);\n        }\n      }\n    });\n    BlockManager.add(pluginBlockId, {\n      label: blockLabel,\n      category: categories.complex,\n      content: {\n        type: pluginName\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n        <svg width=\"100%\" height=\"100%\"  xmlns=\"http://www.w3.org/2000/svg\" id=\"a\" viewBox=\"0 0 419 291\">\n        <defs>\n          <style>\n            .b,\n            .c {\n              fill: #fff;\n            }\n\n            .d {\n              fill: #efefef;\n            }\n\n            .e {\n              fill: #231815;\n            }\n\n            .f {\n              fill: #3e3a39;\n            }\n\n            .c {\n              stroke: #3e3a39;\n              stroke-miterlimit: 10;\n              stroke-width: 8px;\n            }\n\n          </style>\n        </defs>\n        <g>\n          <rect class=\"b\" x=\"65\" y=\"38\" width=\"337\" height=\"236\" />\n          <path class=\"e\" d=\"M408,280H59V32H408v248Zm-337-12H396V44H71v224Z\" />\n        </g>\n        <g>\n          <rect class=\"d\" x=\"19\" y=\"10\" width=\"361\" height=\"236\" />\n          <path class=\"e\" d=\"M386,252H13V4H386V252ZM25,240H374V16H25V240Z\" />\n        </g>\n        <path class=\"b\"\n          d=\"M124.29,210.56c54.54-51.08,116.27-93.41,179.32-133.2l-12.11-20.72c-50.38,37.59-100.94,75.32-146.11,119.2-4.25,4.13-4.58,11.19-.94,15.76,3.4,4.27,10.6,6.69,15.48,3.09,52.05-38.32,104.31-76.69,160.93-108.1l-12.11-20.72c-55.55,39.42-109.56,81.02-161.87,124.65-10.39,8.67,3.3,26.54,14.54,18.85,52.47-35.87,106.14-69.95,160.92-102.17l-12.11-20.72c-43.6,30.9-85.63,64.01-125.82,99.22-10.12,8.86,3.38,26.81,14.54,18.85,49.49-35.3,101.12-67.52,154.59-96.45,5.7-3.08,7.5-10.96,4.31-16.42-3.46-5.91-10.6-7.2-16.42-4.31l-15.72,7.82c-5.8,2.89-7.42,11.09-4.31,16.42,3.46,5.91,10.6,7.2,16.42,4.31l15.72-7.82-12.11-20.72c-53.46,28.93-105.1,61.15-154.59,96.45l14.54,18.85c38.67-33.88,79.02-65.75,120.96-95.47,5.28-3.74,7.78-10.48,4.31-16.42-3.27-5.6-10.81-7.6-16.42-4.31-54.78,32.22-108.46,66.3-160.92,102.17l14.54,18.85c50.75-42.33,103.12-82.66,157.01-120.9,5.28-3.75,7.78-10.47,4.31-16.42s-10.73-7.46-16.42-4.31c-56.62,31.42-108.87,69.78-160.93,108.1l14.54,18.85c43.71-42.47,92.49-79.07,141.25-115.45,5.19-3.87,7.84-10.38,4.31-16.42-3.19-5.46-10.92-7.78-16.42-4.31-64.73,40.86-128.17,84.51-184.18,136.96-11.3,10.58,5.7,27.53,16.97,16.97h0Z\" />\n        <path class=\"b\"\n          d=\"M326.28,94.98c-44.43,23.14-85.31,53.01-120.98,88.17-9.52,9.38,2.91,26.42,14.54,18.85,42.03-27.38,86.04-51.61,131.64-72.49l-12.11-20.72c-45.19,29.08-91.09,58.83-127,99.36-9.13,10.31,2.2,24.98,14.54,18.85,44.16-21.94,88.31-43.88,132.47-65.82,5.8-2.88,7.42-11.1,4.31-16.42-3.46-5.91-10.59-7.2-16.42-4.31-44.16,21.94-88.31,43.88-132.47,65.82l14.54,18.85c34.64-39.1,78.56-67.57,122.15-95.61,5.44-3.5,7.68-10.65,4.31-16.42-3.54-6.05-10.5-7.01-16.42-4.31-45.61,20.88-89.61,45.11-131.64,72.49l14.54,18.85c34.31-33.82,73.39-62.17,116.12-84.42,5.75-2.99,7.46-11.02,4.31-16.42-3.41-5.83-10.65-7.31-16.42-4.31h0Z\" />\n        <g>\n          <path class=\"f\"\n            d=\"M154.6,175.09l9.57-67.1h13.5l10.18,67.1h-9.53l-1.6-11.97h-10.83l-1.45,11.97h-9.84Zm21.05-20.17l-4.5-33.7h-.15l-4.12,33.7h8.77Z\" />\n          <path class=\"f\"\n            d=\"M223.57,125.22c0,7.22-1.96,11.65-5.87,13.31,4.78,1.6,7.17,6.88,7.17,15.82v1.71c-.05,6.74-1.23,11.59-3.53,14.56-2.3,2.97-6.06,4.46-11.27,4.46h-14.83V107.99h14.53c5.01,0,8.55,1.16,10.64,3.49,2.08,2.33,3.14,6.22,3.16,11.69v2.06Zm-18.11,9.91h3.77c1.75,0,2.9-.56,3.45-1.68,.55-1.12,.82-3.42,.82-6.9v-4.04c-.03-2.59-.38-4.33-1.07-5.2-.69-.88-1.87-1.32-3.55-1.32h-3.43v19.14Zm0,32.03h3.62c2.03,0,3.46-.7,4.27-2.1,.81-1.4,1.22-3.9,1.22-7.51v-5.41c0-3.41-.33-5.81-.99-7.23-.66-1.41-1.93-2.12-3.81-2.12h-4.31v24.36Z\" />\n          <path class=\"f\"\n            d=\"M257.69,171.18c-2.31,3.11-5.95,4.67-10.9,4.67s-8.66-1.66-11.11-4.98c-2.45-3.32-3.68-8.09-3.68-14.32v-29.24c0-9.99,2.62-16.23,7.85-18.72,1.93-.91,4.27-1.37,7.01-1.37,9.43,0,14.15,5.95,14.15,17.84v9.23h-9.88v-8.58c0-3.46-.29-5.93-.88-7.42-.58-1.49-1.73-2.23-3.43-2.23s-2.88,.79-3.54,2.36c-.66,1.58-.99,3.99-.99,7.24v31.34c0,3.61,.32,6.19,.95,7.74,.63,1.55,1.79,2.33,3.47,2.33s2.83-.79,3.47-2.36c.63-1.58,.95-4.18,.95-7.82v-9.61h10.03v9.49c0,6.48-1.16,11.28-3.47,14.39Z\" />\n        </g>\n        <path class=\"d\"\n          d=\"M124.52,86.27c-26.96,31.05-52.71,63.13-77.31,96.09-3.53,4.73-1.24,12.25,3.09,15.48,5.13,3.83,10.95,2.91,15.76-.94,47.16-37.75,95.3-74.93,149.67-101.83l-12.11-20.72c-51.93,38.17-101.4,79.61-147.91,124.24-4.68,4.49-4.52,12.45,0,16.97,4.95,4.95,11.95,4.13,16.97,0,49.83-41,99.97-82.01,155.95-114.48l-14.54-18.85c-34.24,30.08-68.84,59.76-103.79,89.02l16.97,16.97c37.25-32.66,76.9-62.37,118.66-89.01l-16.42-16.42c-6.92,11.64-19.37,20.18-29.39,29.01-4.86,4.29-4.38,12.59,0,16.97,4.83,4.83,12.09,4.3,16.97,0,11.75-10.36,25.02-20.2,33.14-33.87,6-10.09-6.17-22.96-16.42-16.42-43.45,27.72-84.76,58.79-123.52,92.77-4.88,4.27-4.37,12.6,0,16.97,4.92,4.92,11.99,4.17,16.97,0,34.95-29.26,69.55-58.94,103.79-89.02,10.39-9.13-2.95-25.57-14.54-18.85-57.71,33.47-109.42,75.96-160.8,118.23l16.97,16.97c45.03-43.2,92.77-83.53,143.05-120.48,5.21-3.83,7.82-10.41,4.31-16.42-3.46-5.92-10.59-7.19-16.42-4.31-56.19,27.8-105.8,66.58-154.53,105.58l18.85,14.54c23.37-31.32,47.94-61.72,73.56-91.23,4.25-4.89,4.81-12.16,0-16.97-4.34-4.34-12.7-4.91-16.97,0h0Z\" />\n        <g>\n          <path class=\"c\"\n            d=\"M353.4,210.79c-1.02-1.95-2.34-3.93-3.12-5.97-1.33-3.47-1.47-7.5-2.15-11.13-1.44-7.77-4.03-15.27-7.7-22.28l-5.49-10.49c-.7-1.33-1.88-2.32-3.32-2.77-1.44-.45-2.96-.32-4.3,.38-2.76,1.44-3.83,4.86-2.38,7.62,.08,.15,.02,.33-.13,.41-.15,.08-.33,.02-.41-.13l-2.17-4.14c-.7-1.34-1.88-2.32-3.32-2.77-1.44-.45-2.97-.32-4.31,.38-2.76,1.44-3.83,4.86-2.38,7.62,.08,.15,.02,.33-.13,.41-.15,.08-.33,.02-.41-.13l-2.56-4.9c-.7-1.33-1.88-2.32-3.32-2.77-1.44-.45-2.97-.32-4.3,.38-2.76,1.44-3.83,4.86-2.39,7.62,.08,.15,.02,.33-.13,.41-.15,.08-.33,.02-.41-.13l-8.47-16.2c-.7-1.33-1.87-2.32-3.31-2.77-1.45-.45-2.98-.31-4.31,.38-2.76,1.44-3.83,4.86-2.39,7.62l19.26,36.83c.06,.12,.04,.26-.05,.35-.02,.02-.05,.04-.08,.06-.08,.04-.19,.05-.27,0l-10.07-4.95c-1.44-.45-2.96-.31-4.3,.39-1.34,.7-2.32,1.88-2.77,3.31-1.23,3.92,.14,4.86,10.75,12.14,2.52,1.73,5.66,3.89,9.38,6.51,4.25,3,8.82,5.57,13.59,7.64,1.8,.78,3.03,1.24,3.98,3.02,.79,1.49,1.63,2.97,2.41,4.47,.71,1.35,2.39,1.88,3.74,1.17l26.57-13.89c1.35-.71,1.88-2.39,1.17-3.74Z\" />\n          <path class=\"f\" d=\"M294.11,168.27l7,14c2.59,5.18,10.36,.63,7.77-4.54l-7-14c-2.59-5.18-10.36-.63-7.77,4.54h0Z\" />\n          <path class=\"f\" d=\"M306.11,166.27l7,14c2.59,5.18,10.36,.63,7.77-4.54l-7-14c-2.59-5.18-10.36-.63-7.77,4.54h0Z\" />\n          <path class=\"f\" d=\"M319.11,165.27l7,14c2.59,5.18,10.36,.63,7.77-4.54l-7-14c-2.59-5.18-10.36-.63-7.77,4.54h0Z\" />\n        </g>\n      </svg>\n      <div class=\"block-label\">${model.get('label')}</div>\n      </div>\n    `\n    });\n    editor.on('block:drag:stop', component => {\n      if (component && component.is(pluginName)) {\n        editor.select(component);\n        if (onDrop) {\n          const el = component.getEl();\n          onDrop(el);\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/sessionStorage\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const {\n      Storage\n    } = editor;\n    const storageConfig = Storage.getConfig();\n    const options = storageConfig.options || {};\n    const indexedDBKey = options.indexedDB.key || 'gjs-editor';\n    const parseKey = (obj, key) => {\n      try {\n        return JSON.parse(obj?.[key]);\n      } catch (error) {\n        return obj?.[key];\n      }\n    };\n    Storage.add('indexedDB', {\n      async load(options = {}) {\n        const data = await idbKeyval.get(indexedDBKey);\n        return JSON.parse(data);\n      },\n      async store(data, options = {}) {\n        const updatedData = {\n          assets: parseKey(data, 'assets'),\n          components: parseKey(data, 'components'),\n          css: parseKey(data, 'css'),\n          html: parseKey(data, 'html'),\n          styles: parseKey(data, 'styles')\n        };\n        await idbKeyval.set(indexedDBKey, JSON.stringify(updatedData));\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/blocks\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/constants\"], function (_exports, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (editor, config = {}) => {\n    const bm = editor.BlockManager;\n    const {\n      intl,\n      categories,\n      sliderBlock\n    } = config;\n    const {\n      sliderName\n    } = _constants.default;\n    sliderBlock && bm.add(sliderName, {\n      render: () => `\n    <div class=\"gjs-block__media\">\n      <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;\">\n        <g transform=\"matrix(1,0,0,1,-6.60663,21.9871)\">\n            <g transform=\"matrix(1.00794,-6.84695e-39,4.65812e-39,0.792537,158.108,-76.7203)\">\n                <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:38.6px;\"/>\n            </g>\n            <g transform=\"matrix(1.00794,0,1.30506e-54,0.792537,83.8538,-2.46648)\">\n                <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:38.6px;\"/>\n            </g>\n            <g transform=\"matrix(1.00794,-6.84695e-39,4.65812e-39,0.792537,17.5874,81.7874)\">\n                <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:38.6px;\"/>\n            </g>\n            <g transform=\"matrix(1.08069,-5.87747e-39,5.87747e-39,1.08069,-43.4658,6.77548)\">\n                <g transform=\"matrix(1.51835,-6.97105e-19,-6.97105e-19,1.52404,-502.354,-212.761)\">\n                    <circle cx=\"567.803\" cy=\"388.754\" r=\"27.858\" style=\"stroke:black;stroke-width:18.25px;stroke-linecap:round;stroke-linejoin:round;\"/>\n                </g>\n                <g transform=\"matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)\">\n                    <g transform=\"matrix(-0.93623,0,0,0.939727,1014.78,130.716)\">\n                        <path d=\"M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z\"/>\n                    </g>\n                    <g transform=\"matrix(-1.01027,0,0,0.756475,916.709,228.489)\">\n                        <path d=\"M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z\"/>\n                    </g>\n                </g>\n            </g>\n        </g>\n        <g transform=\"matrix(1,0,0,1,0.251863,-73.6856)\">\n            <g transform=\"matrix(1.43016,5.71454e-23,-5.71454e-23,1.43016,-956.422,144.288)\">\n                <g transform=\"matrix(1.09375,2.6963e-32,-2.6963e-32,1.09375,128.028,12.4834)\">\n                    <circle cx=\"608.595\" cy=\"433.442\" r=\"79.613\" style=\"stroke:black;stroke-width:22.38px;stroke-linejoin:round;\"/>\n                </g>\n                <g transform=\"matrix(-0.794376,-9.7283e-17,9.7283e-17,-0.794376,1440.42,575.983)\">\n                    <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                        <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:white;stroke-width:328.44px;stroke-linejoin:round;\"/>\n                    </g>\n                    <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                        <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:white;stroke-width:328.44px;stroke-linejoin:round;\"/>\n                    </g>\n                </g>\n            </g>\n            <g transform=\"matrix(-1.43016,-1.75144e-16,1.75144e-16,-1.43016,1979.92,1536.01)\">\n                <g transform=\"matrix(1.09375,2.6963e-32,-2.6963e-32,1.09375,128.028,12.4834)\">\n                    <circle cx=\"608.595\" cy=\"433.442\" r=\"79.613\" style=\"stroke:black;stroke-width:22.38px;stroke-linejoin:round;\"/>\n                </g>\n                <g transform=\"matrix(-0.794376,-9.7283e-17,9.7283e-17,-0.794376,1440.42,575.983)\">\n                    <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                        <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:white;stroke-width:328.44px;stroke-linejoin:round;\"/>\n                    </g>\n                    <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                        <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:white;stroke-width:328.44px;stroke-linejoin:round;\"/>\n                    </g>\n                </g>\n            </g>\n        </g>\n      </svg>\n      <div class=\"block-label\">${intl.t('slider')}</div>\n      </div>\n    `,\n      category: categories.complex,\n      content: {\n        type: sliderName\n      },\n      ...sliderBlock\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/components/NavDot\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/utils\", \"client/pods/grapesjs/plugins/slider-native/constants\"], function (_exports, _utils, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (dc, config = {}) => {\n    const defaultType = dc.getType('default');\n    const defaultModel = defaultType.model;\n    const {\n      dotName\n    } = _constants.default;\n    const classId = dotName;\n    const type = dotName;\n    const {\n      intl\n    } = config;\n    dc.addType(type, {\n      model: defaultModel.extend({\n        defaults: {\n          ...defaultModel.prototype.defaults,\n          name: intl.t('nav dot'),\n          copyable: 0,\n          draggable: false,\n          selectable: false,\n          droppable: false,\n          classes: ['lory-dot', 'lory-dot-color']\n        },\n        init() {\n          this.get('classes').pluck('name').indexOf(classId) < 0 && this.addClass(classId);\n        }\n      }, {\n        isComponent(el) {\n          if ((0, _utils.elHasClass)(el, classId)) return {\n            type\n          };\n        }\n      }),\n      view: {\n        ...defaultType.view\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/components/NavDots\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/utils\", \"client/pods/grapesjs/plugins/slider-native/constants\"], function (_exports, _utils, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (dc, config = {}) => {\n    const defaultType = dc.getType('default');\n    const defaultModel = defaultType.model;\n    const {\n      dotsName\n    } = _constants.default;\n    const classId = dotsName;\n    const type = dotsName;\n    const {\n      intl\n    } = config;\n    dc.addType(type, {\n      model: defaultModel.extend({\n        defaults: {\n          ...defaultModel.prototype.defaults,\n          name: intl.t('nav dots'),\n          copyable: 0,\n          draggable: false,\n          selectable: false,\n          layerable: false,\n          droppable: false,\n          hoverable: false,\n          classes: ['lory-dots']\n        },\n        init() {\n          this.get('classes').pluck('name').indexOf(classId) < 0 && this.addClass(classId);\n        }\n      }, {\n        isComponent(el) {\n          if ((0, _utils.elHasClass)(el, classId)) return {\n            type\n          };\n        }\n      }),\n      view: {\n        ...defaultType.view\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/components/NavNext\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/constants\", \"client/pods/grapesjs/plugins/slider-native/utils\"], function (_exports, _constants, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (dc, config = {}) => {\n    const defaultType = dc.getType('default');\n    const defaultModel = defaultType.model;\n    const {\n      nextName,\n      nextId,\n      sliderSelector\n    } = _constants.default;\n    const classId = config.classNext;\n    const type = nextName;\n    const {\n      intl\n    } = config;\n    dc.addType(type, {\n      model: defaultModel.extend({\n        defaults: {\n          ...defaultModel.prototype.defaults,\n          name: intl.t('nav next'),\n          copyable: 0,\n          draggable: sliderSelector,\n          selectable: false,\n          droppable: false,\n          layerable: false,\n          classes: ['lory-controls-arrows', 'lory-controls-arrows-right', 'lory-controls-arrows-color', 'size-small'],\n          style: {\n            // position: 'absolute',\n            // display: 'block',\n            // cursor: 'pointer',\n            // top: '50%',\n            // right: 0,\n            // 'margin-top': '-25px'\n          },\n          ...config.nextProps\n        },\n        init() {\n          this.get('classes').pluck('name').indexOf(classId) < 0 && this.addClass(classId);\n        }\n      }, {\n        isComponent(el) {\n          if ((0, _utils.elHasClass)(el, classId)) return {\n            type\n          };\n        }\n      }),\n      view: {\n        ...defaultType.view,\n        // Add easily component specific listeners with `events`\n        // Being component specific (eg. you can't attach here listeners to window)\n        // you don't need to care about removing them when the component is removed,\n        // they will be managed automatically by the editor\n        events: {\n          click: 'selectSlider'\n        },\n        selectSlider(event) {\n          try {\n            event.stopPropagation();\n            const slider = this.model.parent();\n            const editor = this.model.em;\n            editor.setSelected(slider);\n          } catch (error) {\n            console.error('ERROR WHILE SELECTING SLIDER', error);\n          }\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/components/NavPrev\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/constants\", \"client/pods/grapesjs/plugins/slider-native/utils\"], function (_exports, _constants, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (dc, config = {}) => {\n    const defaultType = dc.getType('default');\n    const defaultModel = defaultType.model;\n    const {\n      prevName,\n      prevId,\n      sliderSelector\n    } = _constants.default;\n    const classId = config.classPrev;\n    const type = prevName;\n    const {\n      intl\n    } = config;\n    dc.addType(type, {\n      model: defaultModel.extend({\n        defaults: {\n          ...defaultModel.prototype.defaults,\n          name: intl.t('nav previous'),\n          copyable: 0,\n          draggable: sliderSelector,\n          selectable: false,\n          droppable: false,\n          layerable: false,\n          classes: ['lory-controls-arrows', 'lory-controls-arrows-left', 'lory-controls-arrows-color', 'size-small'],\n          style: {\n            // position: 'absolute',\n            // display: 'block',\n            // cursor: 'pointer',\n            // top: '50%',\n            // left: 0,\n            // 'margin-top': '-25px'\n          },\n          ...config.prevProps\n        },\n        init() {\n          this.get('classes').pluck('name').indexOf(classId) < 0 && this.addClass(classId);\n        }\n      }, {\n        isComponent(el) {\n          if ((0, _utils.elHasClass)(el, classId)) return {\n            type\n          };\n        }\n      }),\n      view: {\n        ...defaultType.view,\n        // Add easily component specific listeners with `events`\n        // Being component specific (eg. you can't attach here listeners to window)\n        // you don't need to care about removing them when the component is removed,\n        // they will be managed automatically by the editor\n        events: {\n          click: 'selectSlider'\n        },\n        selectSlider(event) {\n          try {\n            event.stopPropagation();\n            const slider = this.model.parent();\n            const editor = this.model.em;\n            editor.setSelected(slider);\n          } catch (error) {\n            console.error('ERROR WHILE SELECTING SLIDER', error);\n          }\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/components/Slide\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/constants\", \"client/pods/grapesjs/plugins/slider-native/utils\", \"ramda\"], function (_exports, _constants, _utils, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (dc, config = {}) => {\n    const defaultType = dc.getType('default');\n    const defaultModel = defaultType.model;\n    const defaultView = defaultType.view;\n    const {\n      slideName,\n      slideId,\n      slidesSelector\n    } = _constants.default;\n    const {\n      intl\n    } = config;\n    dc.addType(slideName, {\n      model: defaultModel.extend({\n        defaults: {\n          ...defaultModel.prototype.defaults,\n          name: intl.t('slide'),\n          draggable: slidesSelector,\n          selectable: false,\n          style: {\n            // display: 'inline-block',\n            // position: 'relative',\n            // color: '#fff',\n            // width: '880px',\n            // 'min-width': '880px',\n            // 'margin-right': '10px',\n            // 'vertical-align': 'top',\n            // 'min-height': '100px',\n            // 'white-space': 'normal'\n            // 'background-color': 'rgba(0, 0, 0, 0.1)'\n          },\n          ...config.slideProps,\n          droppable(itemModel, targetModel) {\n            const itemType = itemModel.get('type');\n            const slider = targetModel.closestType('lory-slider');\n            if (slider) {\n              const disabledArr = ['bigordr-slider', 'bigordr-blogs-wrapper', 'bigordr-products-wrapper', 'bigordr-tabs-with-header', 'bigordr-grid-images', 'bigordr-scratch-card', 'tabs', 'lory-slider'];\n              const disableDrop = R.includes(itemType)(disabledArr);\n              if (disableDrop) {\n                return false;\n              }\n            }\n            return true;\n          },\n          components: [{\n            type: 'row',\n            style: {\n              padding: '0px'\n            },\n            selectable: false,\n            components: [{\n              type: 'cell',\n              selectable: false,\n              classes: ['sider-cell__view', 'bigordr-cell', 'flex-container-column']\n            }]\n          }]\n        }\n      }, {\n        isComponent(el) {\n          if ((0, _utils.elHasClass)(el, config.classSlide)) return {\n            type: slideName\n          };\n        }\n      }),\n      // onInit(el, model){\n      //   const slider = this.getParent()\n      //   slider.autoLoadComponetns\n      //   this.add(autoLoadComp)\n      // },\n\n      view: defaultView\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/components/Slider\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/constants\", \"ramda\"], function (_exports, _constants, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global lory */\n  var _default = (dc, config = {}) => {\n    const defaultType = dc.getType('default');\n    const defaultModel = defaultType.model;\n    const defaultView = defaultType.view;\n    const {\n      frameName,\n      prevSelector,\n      nextSelector,\n      sliderName,\n      slidesName,\n      prevName,\n      nextName,\n      dotsName,\n      dotName,\n      sliderId,\n      prevId,\n      nextId,\n      frameId,\n      slidesId,\n      slideId\n    } = _constants.default;\n    const {\n      onReIndex = foo => foo,\n      onSetSchedule = foo => foo,\n      onDbClick = foo => foo,\n      intl = {\n        t: foo => foo\n      }\n      /*    parentComponent */\n    } = config;\n    const defaultModelTraits = [{\n      type: 'checkbox',\n      label: intl.t('gjs-fix-visible-items'),\n      name: 'fix-visible-items',\n      changeProp: 1,\n      allowWithSmoothScroll: true\n    }, {\n      type: 'checkbox',\n      label: intl.t('gjs-smooth-scroll'),\n      name: 'smooth-scroll',\n      changeProp: 1,\n      allowWithSmoothScroll: false\n    }, {\n      type: 'checkbox',\n      label: intl.t('gjs-infinite'),\n      name: 'infinite',\n      changeProp: 1,\n      allowWithSmoothScroll: false\n    }, {\n      type: 'checkbox',\n      label: intl.t('gjs-rewind'),\n      name: 'rewind',\n      changeProp: 1,\n      allowWithSmoothScroll: false\n    }, {\n      type: 'select',\n      label: intl.t('gjs-ease'),\n      name: 'ease',\n      changeProp: 1,\n      options: ['ease', 'linear', 'ease-in', 'ease-out', 'ease-in-out'],\n      allowWithSmoothScroll: false\n    }, {\n      type: 'number',\n      label: intl.t('gjs-slide-speed'),\n      name: 'slide-speed',\n      changeProp: 1,\n      allowWithSmoothScroll: false\n    }, {\n      type: 'number',\n      label: intl.t('gjs-rewind-speed'),\n      name: 'rewind-speed',\n      changeProp: 1,\n      allowWithSmoothScroll: false\n    }, {\n      type: 'number',\n      label: intl.t('gjs-slides-to-scroll'),\n      name: 'slides-to-scroll',\n      changeProp: 1,\n      allowWithSmoothScroll: false\n    }, {\n      type: 'number',\n      label: intl.t('gjs-total-items'),\n      name: 'total-items',\n      changeProp: 1,\n      allowWithSmoothScroll: true\n    }, {\n      type: 'select',\n      label: intl.t('gjs-slides-per-page'),\n      name: 'slides-per-page',\n      changeProp: 1,\n      options: ['1', '2', '3', '4'],\n      allowWithSmoothScroll: true\n    }, {\n      type: 'select',\n      label: intl.t('gjs-arrows-position'),\n      name: 'arrows-position',\n      changeProp: 1,\n      options: [{\n        id: 'outside',\n        name: intl.t('gjs-outside')\n      }, {\n        id: 'inside',\n        name: intl.t('gjs-inside')\n      }],\n      allowWithSmoothScroll: false\n    }, {\n      type: 'select',\n      label: intl.t('gjs-arrows-display'),\n      name: 'arrows-display',\n      changeProp: 1,\n      options: [{\n        id: 'visible',\n        name: intl.t('gjs-visible')\n      }, {\n        id: 'hidden',\n        name: intl.t('gjs-hidden')\n      }],\n      allowWithSmoothScroll: true\n    }, {\n      type: 'select',\n      label: intl.t('gjs-arrows-size'),\n      name: 'arrows-size',\n      changeProp: 1,\n      options: [{\n        id: 'small',\n        name: intl.t('small')\n      }, {\n        id: 'medium',\n        name: intl.t('medium')\n      }, {\n        id: 'large',\n        name: intl.t('large')\n      }],\n      allowWithSmoothScroll: true\n    }, {\n      type: 'color',\n      label: intl.t('gjs-arrows-color'),\n      name: 'arrows-color',\n      changeProp: 1,\n      allowWithSmoothScroll: true\n    }, {\n      type: 'checkbox',\n      label: intl.t('gjs-arrows-background-hidden'),\n      name: 'arrows-background-hidden',\n      changeProp: 1,\n      allowWithSmoothScroll: true\n    },\n    // Dots\n    {\n      type: 'select',\n      label: intl.t('gjs-dots-display'),\n      name: 'dots-display',\n      changeProp: 1,\n      options: [{\n        id: 'visible',\n        name: intl.t('gjs-visible')\n      }, {\n        id: 'hidden',\n        name: intl.t('gjs-hidden')\n      }],\n      allowWithSmoothScroll: true\n    }, {\n      type: 'select',\n      label: intl.t('gjs-dots-size'),\n      name: 'dots-size',\n      changeProp: 1,\n      options: [{\n        id: 'small',\n        name: intl.t('small')\n      }, {\n        id: 'medium',\n        name: intl.t('medium')\n      }, {\n        id: 'large',\n        name: intl.t('large')\n      }],\n      allowWithSmoothScroll: true\n    }, {\n      type: 'select',\n      label: intl.t('gjs-dots-position'),\n      name: 'dots-position',\n      changeProp: 1,\n      options: [{\n        id: 'outside',\n        name: intl.t('gjs-outside')\n      }, {\n        id: 'inside',\n        name: intl.t('gjs-inside')\n      }],\n      allowWithSmoothScroll: true\n    }, {\n      type: 'select',\n      label: intl.t('gjs-dots-style'),\n      name: 'dots-style',\n      changeProp: 1,\n      options: [{\n        id: 'dot',\n        name: intl.t('gjs-dots-style-dot')\n      }, {\n        id: 'line',\n        name: intl.t('gjs-dots-style-line')\n      }],\n      allowWithSmoothScroll: true\n    }, {\n      type: 'color',\n      label: intl.t('gjs-dots-color'),\n      name: 'dots-color',\n      changeProp: 1,\n      allowWithSmoothScroll: true\n    }, {\n      type: 'color',\n      label: intl.t('gjs-dots-active-color'),\n      name: 'dots-active-color',\n      changeProp: 1,\n      allowWithSmoothScroll: true\n    }, {\n      type: 'select',\n      label: intl.t('gjs-default-sliders-status'),\n      name: 'default-sliders-status',\n      changeProp: 1,\n      options: [{\n        id: 'active',\n        name: intl.t('gjs-status-active')\n      }, {\n        id: 'inactive',\n        name: intl.t('gjs-status-inactive')\n      }],\n      allowWithSmoothScroll: true\n    }, {\n      type: 'button',\n      label: intl.t('gjs-schedules'),\n      name: 'schedules',\n      full: true,\n      command: () => onSetSchedule(),\n      text: intl.t('set schedules'),\n      changeProp: 1,\n      allowWithSmoothScroll: true\n    }, {\n      type: 'button',\n      label: intl.t('gjs-re-index'),\n      name: 're-index',\n      full: true,\n      command: () => onReIndex(),\n      text: intl.t('re-index'),\n      changeProp: 1,\n      allowWithSmoothScroll: true\n    },\n    // Extra options\n    {\n      type: 'checkbox',\n      label: intl.t('gjs-autoplay'),\n      name: 'autoplay',\n      changeProp: true,\n      allowWithSmoothScroll: true\n    }, {\n      type: 'select',\n      label: intl.t('gjs-autoplay-delay'),\n      name: 'autoplay-delay',\n      changeProp: true,\n      options: [{\n        id: '1',\n        name: 1\n      }, {\n        id: '2',\n        name: 2\n      }, {\n        id: '3',\n        name: 3\n      }, {\n        id: '5',\n        name: 5\n      }, {\n        id: '8',\n        name: 8\n      }],\n      allowWithSmoothScroll: true\n    }];\n    const defaultModelToolbar = [\n    // @TODO: Move traits to modal\n    // {\n    //   attributes: { class: 'fas fa-pencil-alt' },\n    //   command (editor) {\n    //     const slider = editor.getSelected()\n    //     onDbClick(slider.getEl(), {\n    //       slider,\n    //       editor\n    //     })\n    //   }\n    // },\n    {\n      attributes: {\n        class: 'fas fa-level-up-alt'\n      },\n      command: 'select-parent'\n    }, {\n      attributes: {\n        class: 'fas fa-arrows-alt'\n      },\n      command: 'tlb-move'\n    }, {\n      attributes: {\n        class: 'far fa-clone'\n      },\n      command: 'tlb-clone'\n    }, {\n      attributes: {\n        class: 'fas fa-trash'\n      },\n      command: 'tlb-delete'\n    }];\n    const defaultArrowsColor = '#000';\n    const defaultDotsColor = '#EEE';\n    const defaultDotsActiveColor = '#41ABE5';\n    dc.addType(sliderName, {\n      model: defaultModel.extend({\n        defaults: {\n          ...defaultModel.prototype.defaults,\n          name: intl.t('slider'),\n          // Slider arrows color\n          // <- [ img ] ->\n          'arrows-background-hidden': true,\n          // Slider arrows color\n          // <- [ img ] ->\n          'arrows-color': defaultArrowsColor,\n          // Slider arrows\n          // <- [ img ] ->\n          'arrows-size': 'medium',\n          // Slider arrows\n          // <- [ img ] ->\n          'arrows-position': 'inside',\n          // Slider arrows\n          //    [ img ]\n          'arrows-display': 'visible',\n          // Slider dots color\n          // [ img ]\n          // * * *\n          'dots-style': 'dot',\n          // Slider dots color\n          // [ img ]\n          // * * *\n          'dots-color': defaultDotsColor,\n          // Slider dots color\n          // [ img ]\n          // * * *\n          'dots-active-color': defaultDotsActiveColor,\n          // Slider dots\n          // [ img ]\n          // * * *\n          'dots-size': 'medium',\n          // Slider dots\n          // [ img ]\n          // * * *\n          'dots-position': 'outside',\n          // Slider dots\n          //    [ img ]\n          'dots-display': 'visible',\n          // Slides scrolled at once\n          'slides-per-page': '1',\n          // Slides scrolled at once\n          'total-items': 3,\n          // Slides scrolled at once\n          'slides-to-scroll': 1,\n          // Enabled mouse events\n          'enable-mouse-events': false,\n          // Time in milliseconds for the animation of a valid slide attempt\n          'slide-speed': 300,\n          // Time in milliseconds for the animation of the rewind after the last slide\n          'rewind-speed': 600,\n          // Time for the snapBack of the slider if the slide attempt was not valid\n          'snap-back-speed': 200,\n          // Like carousel, works with multiple slides. (do not combine with rewind)\n          infinite: false,\n          // Like carousel, works with multiple slides. (do not combine with rewind)\n          'smooth-scroll': true,\n          // Like carousel, works with multiple slides. (do not combine with rewind)\n          'fix-visible-items': true,\n          // If slider reached the last slide, with next click the slider goes\n          // back to the startindex. (do not combine with infinite)\n          rewind: false,\n          // Cubic bezier easing functions: http://easings.net/de\n          ease: 'ease',\n          // Cubic bezier easing functions: http://easings.net/de\n          autoplay: false,\n          // Cubic bezier easing functions: http://easings.net/de\n          'autoplay-delay': '5',\n          droppable: `${prevSelector}, ${nextSelector}`,\n          classes: ['lory-slider', 'gjs-lory-slider-min-width'],\n          traits: defaultModelTraits,\n          toolbar: defaultModelToolbar,\n          'script-deps': config.script,\n          'class-frame': config.classFrame,\n          'class-slides': config.classSlides,\n          'class-prev': config.classPrev,\n          'class-next': config.classNext,\n          // Define which properties to pass (this will also reset your script on their changes)\n          'script-props': ['autoplay', 'smooth-scroll', 'autoplay-delay'],\n          script\n        },\n        init() {\n          // update the amount of slides per page by resizing the slide\n          this.on('change:slides-per-page', this.onSlidesPerPageUpdate);\n\n          // Update the total amount of slides\n          this.on('change:total-items', this.onSlidesCountUpdate);\n\n          // Update the total amount of slides\n          this.on('change:smooth-scroll', this.onSmoothScrollUpdate);\n\n          // Update slider arrows position\n          this.on('change:arrows-position', this._onArrowsPositionUpdate);\n\n          // Update slider arrows display\n          this.on('change:arrows-display', this._onArrowsDisplayUpdate);\n\n          // Update slider arrows display\n          this.on('change:arrows-size', this._onArrowsSizeUpdate);\n\n          // Update slider arrows display\n          this.on('change:arrows-color', this._onArrowsColorUpdate);\n\n          // Update slider arrows display\n          this.on('change:arrows-background-hidden', this._onArrowsBackgroundUpdate);\n\n          // Update slider dots position\n          this.on('change:dots-position', this._onDotsPositionUpdate);\n\n          // Update slider dots display\n          this.on('change:dots-display', this._onDotsDisplayUpdate);\n\n          // Update slider dots size\n          this.on('change:dots-size', this._onDotsSizeUpdate);\n\n          // Update slider dots color\n          this.on('change:dots-color', this._onDotsColorUpdate);\n\n          // Update slider dots color\n          this.on('change:dots-style', this._onDotsStyleUpdate);\n\n          // Update slider dots color\n          this.on('change:dots-active-color', this._onDotsActiveColorUpdate);\n\n          // Update slider items display\n          this.on('change:fix-visible-items', this._onFixVisibleItemsUpdate);\n\n          // Update slider default sliders statuses\n          this.on('change:default-sliders-status', this._onDefaultSlidersStatusUpdate);\n          this.on('change:schedules', this._onSchedulesUpdate);\n\n          // update trains base on previous user settings\n          this.onSmoothScrollUpdate(this, true);\n        },\n        /**\n         * Public adapter for the slider, to be called outside grapesjs\n         * @param {boolean} value - display or hide arrows background\n         */\n        updateArrowsBackground(value) {\n          this.set('arrows-background-hidden', value);\n        },\n        /**\n         * Public adapter for the slider, to be called outside grapesjs\n         * @param {string} value - hex color\n         */\n        updateArrowsColor(value) {\n          this.set('arrows-color', value);\n        },\n        /**\n         * Public adapter for the slider, to be called outside grapesjs\n         * @param {string} value - size of arrows | small, medium, large\n         */\n        updateArrowsSize(value) {\n          this.set('arrows-size', value);\n        },\n        /**\n         * Public adapter for the slider, to be called outside grapesjs\n         * @param {string} value - arrows position | insideImage, outsideImage, hide\n         */\n        updateArrowsPosition(value) {\n          const arrowsPositionKey = 'arrows-position';\n          const arrowsDisplayKey = 'arrows-display';\n          if (value === 'outsideImage' || value === 'insideImage') {\n            this.set(arrowsDisplayKey, 'visible');\n          }\n          if (value === 'hide') {\n            this.set(arrowsDisplayKey, 'hidden');\n          } else {\n            value = value.replace(/Image$/g, '');\n            this.set(arrowsPositionKey, value);\n          }\n        },\n        updateScheddules(schedules = []) {\n          const schedulesStr = JSON.stringify(schedules);\n          const schedulesKey = 'schedules';\n          this.set(schedulesKey, schedulesStr);\n        },\n        /**\n         * Public adapter for the slider, to be called outside grapesjs\n         * @param {string} value - dots Display | visible, hidden\n         */\n        updateDotsDisplay(value = 'visible') {\n          const dotsDisplayKey = 'dots-display';\n          this.set(dotsDisplayKey, value);\n        },\n        _onFixVisibleItemsUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const slideAutoWidth = 'gjs-lory-slide-auto-width';\n          const slideArray = model?.findType('lory-slide') || [];\n          if (value) {\n            slideArray.forEach(slide => {\n              slide.removeClass(slideAutoWidth);\n            });\n            // Dots are not allowed when more than one slides are visible\n            this.updateDotsDisplay('visible');\n          } else {\n            slideArray.forEach(slide => {\n              slide.addClass(slideAutoWidth);\n            });\n            this.updateDotsDisplay('hidden');\n          }\n        },\n        _onArrowsBackgroundUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const loryPrev = model?.findType('lory-prev')[0];\n          const loryNext = model?.findType('lory-next')[0];\n          const arrowsBackgroundClassNames = 'hidden-background';\n          if (value) {\n            loryPrev.addClass(arrowsBackgroundClassNames);\n            loryNext.addClass(arrowsBackgroundClassNames);\n          } else {\n            loryPrev.removeClass(arrowsBackgroundClassNames);\n            loryNext.removeClass(arrowsBackgroundClassNames);\n          }\n        },\n        _onArrowsColorUpdate(model, value) {\n          const editor = this.em.getEditor();\n          editor.Css.setRule('.lory-controls-arrows-color', {\n            color: value\n          });\n        },\n        _onArrowsSizeUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const loryPrev = model?.findType('lory-prev')[0];\n          const loryNext = model?.findType('lory-next')[0];\n          const classNameSizeSmall = 'size-small';\n          const classNameSizeMedium = 'size-medium';\n          const classNameSizeLarge = 'size-large';\n          const arrowsSizeClassNames = [classNameSizeSmall, classNameSizeMedium, classNameSizeLarge];\n          arrowsSizeClassNames.forEach(className => {\n            loryPrev.removeClass(className);\n            loryNext.removeClass(className);\n          });\n          switch (value) {\n            case 'small':\n              loryPrev.addClass(classNameSizeSmall);\n              loryNext.addClass(classNameSizeSmall);\n              break;\n            case 'medium':\n              loryPrev.addClass(classNameSizeMedium);\n              loryNext.addClass(classNameSizeMedium);\n              break;\n            case 'large':\n              loryPrev.addClass(classNameSizeLarge);\n              loryNext.addClass(classNameSizeLarge);\n              break;\n            default:\n              console.log('Unknown arrows size');\n              break;\n          }\n        },\n        _onArrowsDisplayUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const loryPrev = model?.findType('lory-prev')[0];\n          const loryNext = model?.findType('lory-next')[0];\n          const classControlsArrowsHidden = 'lory-controls-arrows--always-hidden';\n          switch (value) {\n            case 'visible':\n              loryPrev.removeClass(classControlsArrowsHidden);\n              loryNext.removeClass(classControlsArrowsHidden);\n              break;\n            case 'hidden':\n              loryPrev.addClass(classControlsArrowsHidden);\n              loryNext.addClass(classControlsArrowsHidden);\n              break;\n            default:\n              console.log('Unknown value for arrows-display');\n              break;\n          }\n        },\n        _onArrowsPositionUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const slideArray = model?.findType('lory-slide') || [];\n          const classNameFrameInsideArrows = 'gjs-lory-frame--inside-arrows';\n          const classNameSlideInsideArrows = 'gjs-lory-slide--inside-arrows';\n          switch (value) {\n            case 'outside':\n              frame.removeClass(classNameFrameInsideArrows);\n              slideArray.forEach(slide => {\n                slide.removeClass(classNameSlideInsideArrows);\n              });\n              break;\n            case 'inside':\n              frame.addClass(classNameFrameInsideArrows);\n              slideArray.forEach(slide => {\n                slide.addClass(classNameSlideInsideArrows);\n              });\n              break;\n            default:\n              console.log('Unknown arrows position!!!');\n              break;\n          }\n        },\n        _onDotsStyleUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const dotModelArray = model?.findType('lory-dot');\n          const classNameDotStyleLine = 'lory-dot--style-line';\n          switch (value) {\n            case 'dot':\n              dotModelArray.forEach(dotModel => {\n                dotModel.removeClass(classNameDotStyleLine);\n              });\n              break;\n            case 'line':\n              dotModelArray.forEach(dotModel => {\n                dotModel.addClass(classNameDotStyleLine);\n              });\n              break;\n            default:\n              console.log('Unknown arrows position!!!');\n              break;\n          }\n        },\n        _onDotsColorUpdate(model, value) {\n          const editor = this.em.getEditor();\n          editor.Css.setRule('.lory-dot-color', {\n            'background-color': value\n          });\n        },\n        _onDotsActiveColorUpdate(model, value) {\n          const editor = this.em.getEditor();\n          editor.Css.setRule('.lory-dot-color.dot-active-color', {\n            'background-color': value\n          });\n        },\n        _onDefaultSlidersStatusUpdate(model, value) {\n          model.addAttributes({\n            'data-gjs-default-sliders-status': value\n          });\n        },\n        _onDotsSizeUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const dotModelArray = model?.findType('lory-dot');\n          const classNameSizeSmall = 'size-small';\n          const classNameSizeMedium = 'size-medium';\n          const classNameSizeLarge = 'size-large';\n          const arrowsSizeClassNames = [classNameSizeSmall, classNameSizeMedium, classNameSizeLarge];\n          arrowsSizeClassNames.forEach(className => {\n            dotModelArray.forEach(dotModel => {\n              dotModel.removeClass(className);\n            });\n          });\n          switch (value) {\n            case 'small':\n              dotModelArray.forEach(dotModel => {\n                dotModel.addClass(classNameSizeSmall);\n              });\n              break;\n            case 'medium':\n              dotModelArray.forEach(dotModel => {\n                dotModel.addClass(classNameSizeMedium);\n              });\n              break;\n            case 'large':\n              dotModelArray.forEach(dotModel => {\n                dotModel.addClass(classNameSizeLarge);\n              });\n              break;\n            default:\n              console.log('Unknown dot size');\n              break;\n          }\n        },\n        _onDotsDisplayUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const dotsModel = model?.findType(dotsName)[0];\n          const classControlsArrowsHidden = `${dotsName}--hidden`;\n          const classNameMarginZero = 'lory-slider--margin-zero';\n          switch (value) {\n            case 'visible':\n              dotsModel.removeClass(classControlsArrowsHidden);\n              model.removeClass(classNameMarginZero);\n              break;\n            case 'hidden':\n              dotsModel.addClass(classControlsArrowsHidden);\n              model.addClass(classNameMarginZero);\n              break;\n            default:\n              console.log('Unknown value for dot-display');\n              break;\n          }\n        },\n        _onDotsPositionUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const dotsModel = model?.findType(dotsName)[0];\n          const classNameInsideDots = 'lory-dots--inside-dots';\n          const classNameMarginZero = 'lory-slider--margin-zero';\n          switch (value) {\n            case 'outside':\n              dotsModel.removeClass(classNameInsideDots);\n              model.removeClass(classNameMarginZero);\n              break;\n            case 'inside':\n              dotsModel.addClass(classNameInsideDots);\n              model.addClass(classNameMarginZero);\n              break;\n            default:\n              console.log('Unknown arrows position!!!');\n              break;\n          }\n        },\n        _onSchedulesUpdate(model, value) {\n          const frame = model?.findType('lory-frame')[0];\n          if (!frame) {\n            return;\n          }\n          const slideArray = model?.findType('lory-slide') || [];\n          if (value) {\n            const schedules = R.pluck('schedulesAttributes')(JSON.parse(value)) || [];\n            const applyToAll = R.pathOr('false', [0, 'data-gjs-model-applytoall'])(schedules);\n            slideArray.map((slide, index) => {\n              let schedule = {};\n              if (applyToAll) {\n                schedule = schedules[0] || {};\n              } else {\n                schedule = schedules[index] || {};\n              }\n              if (schedule) {\n                const scheduleStr = schedule['data-gjs-model-schedule'];\n                slide.addAttributes({\n                  'data-gjs-model-applytoall': applyToAll,\n                  'data-gjs-model-schedule': scheduleStr\n                });\n              }\n            });\n          }\n        },\n        onSmoothScrollUpdate(model, value) {\n          const ulSlides = model.findType('lory-slides')?.[0];\n          if (!ulSlides) {\n            return;\n          }\n\n          // Remove all traits\n          defaultModelTraits.forEach(({\n            name\n          }) => {\n            model.removeTrait(name);\n          });\n          const classNameSlides = 'gjs-lory-slides';\n          const classNameSlidesSmoothScroll = 'gjs-lory-slides__smooth-scroll';\n          if (value) {\n            ulSlides.removeClass(classNameSlides);\n            ulSlides.addClass(classNameSlidesSmoothScroll);\n\n            // @TODO: add traits on next release\n            // add only compatible traits\n            const traits = defaultModelTraits.filter(trait => {\n              const allowWithSmoothScroll = trait.allowWithSmoothScroll;\n              const sliderPerPage = parseInt(model.get('slides-per-page'), 10);\n              const isDotTrait = trait.name.includes('dot');\n              if (sliderPerPage > 1 && isDotTrait) {\n                return false;\n              }\n              if (allowWithSmoothScroll) {\n                return true;\n              }\n              return false;\n            }) || [];\n            traits.forEach(trait => {\n              model.addTrait(trait);\n            });\n          } else {\n            ulSlides.removeClass(classNameSlidesSmoothScroll);\n            ulSlides.addClass(classNameSlides);\n\n            // @TODO: add traits on next release\n            // Add all default traits\n            defaultModelTraits.forEach(trait => {\n              model.addTrait(trait);\n            });\n          }\n        },\n        onSlidesCountUpdate(model, count) {\n          count = parseInt(count, 10);\n          const slides = model.findType('lory-slides')[0];\n          const dotsModel = model?.findType(dotsName)[0];\n          const totalSlides = slides.components().length || 0;\n          const addSlides = count > totalSlides;\n          const slideArray = slides.components();\n          const dotsArray = dotsModel.components();\n          if (addSlides) {\n            const slidesToAdd = count - totalSlides;\n            for (let i = 0; i < slidesToAdd; i++) {\n              slideArray.add({\n                tagName: 'li',\n                type: 'lory-slide',\n                classes: ['gjs-lory-slide-min-width', 'gjs-lory-slide', `gjs-lory-slide-id-${config.slideId}`, 'js_slide']\n              });\n              dotsArray.add({\n                tagName: 'li',\n                type: dotName\n              });\n            }\n          } else {\n            const slidesToRemoveCount = totalSlides - count;\n            if (slidesToRemoveCount > 0) {\n              const slidesToRemove = R.takeLast(slidesToRemoveCount)(slideArray);\n              slidesToRemove.forEach(slide => {\n                slides.components().remove(slide);\n              });\n\n              // Remove Dots\n              const dotsToRemove = R.takeLast(slidesToRemoveCount)(dotsArray);\n              dotsToRemove.forEach(slide => {\n                dotsModel.components().remove(slide);\n              });\n            }\n          }\n          this.onSlidesPerPageUpdate(model, model.get('slides-per-page'));\n        },\n        onSlidesPerPageUpdate(model, slidesPerPage = 0) {\n          slidesPerPage = parseInt(slidesPerPage, 10);\n          const slidesPerPageClassNames = ['gjs-lory-slide-min-width', 'gjs-lory-slide-min-width__2_slides', 'gjs-lory-slide-min-width__3_slides', 'gjs-lory-slide-min-width__4_slides'];\n          const innerSlides = model.findType('lory-slide') || [];\n          innerSlides.forEach(slideModel => {\n            slidesPerPageClassNames.forEach(className => {\n              slideModel.removeClass(className);\n            });\n            if (slidesPerPage === 1) {\n              slideModel.addClass(slidesPerPageClassNames[0]);\n              // Dots are not allowed with 1 slide per page\n              this.updateDotsDisplay('visible');\n            } else {\n              this.updateDotsDisplay('hidden');\n              slideModel.addClass(slidesPerPageClassNames[slidesPerPage - 1]);\n            }\n          });\n        }\n      }, {\n        isComponent(el) {\n          if (el.hasAttribute && el.hasAttribute(sliderId)) {\n            return {\n              type: sliderName\n            };\n          }\n        }\n      }),\n      view: defaultView.extend({\n        init() {\n          const props = ['fix-visible-items', 'dots-style', 'dots-color', 'dots-active-color', 'dots-size', 'dots-display', 'dots-position', 'arrows-color', 'arrows-size', 'arrows-display', 'arrows-position', 'arrows-background-hidden', 'total-items', 'slides-per-page', 'smooth-scroll', 'slides-to-scroll', 'enable-mouse-events', 'slide-speed', 'rewind-speed', 'snap-back-speed', 'infinite', 'rewind', 'ease'];\n          const reactTo = props.map(prop => `change:${prop}`).join(' ');\n          this.listenTo(this.model, reactTo, this.render);\n          const comps = this.model.components();\n\n          // Add a basic template if it's not yet initialized\n          if (!comps.length) {\n            comps.add(`\n          <div data-gjs-type=\"${frameName}\" class=\"${frameName}\">\n            <ul class=\"slides js_slides\" data-gjs-type=\"${slidesName}\">\n                ${config.slideEls}\n            </ul>\n          </div>\n          <span data-gjs-type=\"${prevName}\">${config.prevEl}</span>\n          <span data-gjs-type=\"${nextName}\">${config.nextEl}</span>\n          <ul data-gjs-type=\"${dotsName}\">\n            <li data-gjs-type=\"${dotName}\" class=\"${dotName} lory-dot-color dot-active-color\"></li>\n            <li data-gjs-type=\"${dotName}\" class=\"${dotName} lory-dot-color\"></li>\n            <li data-gjs-type=\"${dotName}\" class=\"${dotName} lory-dot-color\"></li>\n          </ul>\n        `);\n          }\n        },\n        onRender({\n          model,\n          editor,\n          el\n        }) {\n          model.onSmoothScrollUpdate(model, true);\n          model._onArrowsPositionUpdate(model, 'inside');\n\n          // Set autoplay off on GJS\n          // this.model.set('should-autoplay', false)\n          el.setAttribute('data-gjs-should-autoplay', false);\n        }\n      })\n    });\n    function script(props) {\n      if (!window.GJSOptions) {\n        window.GJSOptions = {};\n      }\n      let shouldAutoplay = false;\n      const shouldAutoplayEl = this.getAttribute('data-gjs-should-autoplay');\n      if (!shouldAutoplayEl) {\n        shouldAutoplay = true;\n      }\n      // const shouldAutoplay = props['should-autoplay'] === true\n      const autoplay = props.autoplay;\n      const autoplayDelay = props['autoplay-delay'] || 3;\n      const smoothScroll = props['smooth-scroll'];\n      const sliderKey = 'sliderLory';\n      const el = this;\n      // const deps = '{[ script-deps ]}'\n      // const falsies = ['0', 'false']\n      // let infinite = '{[ infinite ]}'\n      // infinite = infinite === 'true' ? 1 : parseInt(infinite, 10)\n      // let fixVisibleItems = '{[ fix-visible-items ]}'\n      // fixVisibleItems = fixVisibleItems === 'true' ? 1 : parseInt(fixVisibleItems, 10)\n      // let smoothScroll\n      // try {\n      //   smoothScroll = JSON.parse('{[ smooth-scroll ]}') || false\n      // } catch (error) {\n      //   smoothScroll = false\n      // }\n      // const options = {\n      //   slidesToScroll: parseInt('{[ slides-to-scroll ]}', 10),\n      //   totalItems: parseInt('{[ total-items ]}', 10),\n      //   enableMouseEvents: falsies.indexOf('{[ enable-mouse-events ]}') >= 0 ? 0 : 1,\n      //   infinite: isNaN(infinite) ? false : infinite,\n      //   fixVisibleItems: isNaN(fixVisibleItems) ? false : fixVisibleItems,\n      //   rewind: !(falsies.indexOf('{[ rewind ]}') >= 0),\n      //   slideSpeed: parseInt('{[ slide-speed ]}', 10),\n      //   rewindSpeed: parseInt('{[ rewind-speed ]}', 10),\n      //   snapBackSpeed: parseInt('{[ snap-back-speed ]}', 10),\n      //   slidesPerPage: '{[ slides-per-page ]}',\n      //   ease: '{[ ease ]}',\n      //   arrowsPosition: '{[ arrows-position ]}',\n      //   arrowsBackground: '{[ arrows-background-hidden ]}',\n      //   arrowsDisplay: '{[ arrows-display ]}',\n      //   classNameFrame: '{[ class-frame ]}',\n      //   classNameSlideContainer: '{[ class-slides ]}',\n      //   classNamePrevCtrl: '{[ class-prev ]}',\n      //   classNameNextCtrl: '{[ class-next ]}'\n      // }\n\n      const classNameActiveDot = 'dot-active-color';\n      const classNameLoryControlsArrowsHidden = 'lory-controls-arrows--hidden';\n      const getCurrentSlides = () => el.querySelectorAll('.lory-dot') || [];\n      const allDotsArray = getCurrentSlides();\n      const querySelectorSlides = el.querySelector('.lory-slides');\n      const getPixelsToMove = () => {\n        try {\n          const result = el.querySelector('.gjs-lory-slide').clientWidth;\n          return Math.round(result);\n        } catch (error) {\n          console.error('Error getting pixels to move', error);\n          return 0;\n        }\n      };\n      const setDotAsActive = ({\n        index,\n        shouldUpdatePosition = false,\n        isArrowClick = false,\n        isDotClick = false\n      } = {}) => {\n        if (allDotsArray.length === 0) {\n          el.style.display = 'none';\n          return;\n        }\n        if (allDotsArray.length === 1) {\n          const allDotsArrayContainer = el.querySelector('.lory-dots');\n          allDotsArrayContainer.style.display = 'none';\n        }\n        if (!isArrowClick && !isDotClick) {\n          // Remove active class from all dots\n          allDotsArray.forEach(dot => {\n            dot.classList.remove(classNameActiveDot);\n          });\n          allDotsArray[index].classList.add(classNameActiveDot);\n          // updateArrowVisibility(index)\n        }\n        if (shouldUpdatePosition) {\n          const pixelsToMove = getPixelsToMove();\n          querySelectorSlides.scrollLeft = index * pixelsToMove;\n        }\n        try {\n          const pixelsToMove = getPixelsToMove();\n          const slidesCount = getCurrentSlides().length;\n          const scrollLeft = pixelsToMove * index;\n          const scrollLeftRounded = Math.round(scrollLeft);\n          const scrollWidthRounded = pixelsToMove * slidesCount;\n          const clientWidthRounded = pixelsToMove;\n          const hideLArrows = scrollLeftRounded === 0;\n          const hideRArrows = scrollWidthRounded - clientWidthRounded === scrollLeftRounded;\n          // Show both arrows\n          // el.querySelector('.lory-prev').classList.remove(classNameLoryControlsArrowsHidden)\n          // el.querySelector('.lory-next').classList.remove(classNameLoryControlsArrowsHidden)\n\n          if (hideLArrows) {\n            // Hide left arrow\n            el.querySelector('.lory-prev').classList.add(classNameLoryControlsArrowsHidden);\n          } else {\n            el.querySelector('.lory-prev').classList.remove(classNameLoryControlsArrowsHidden);\n          }\n          if (hideRArrows) {\n            // Hide right arrow\n            el.querySelector('.lory-next').classList.add(classNameLoryControlsArrowsHidden);\n          } else {\n            el.querySelector('.lory-next').classList.remove(classNameLoryControlsArrowsHidden);\n          }\n        } catch (error) {\n          console.error('Error while updating arrows visibility', error);\n        }\n      };\n      setDotAsActive({\n        index: 0\n      });\n\n      // Always remove the previous interval so the new one can be added\n      const autoplayIntervalId = window.GJSOptions[this.id]?.autoplayIntervalId;\n      if (autoplayIntervalId) {\n        clearInterval(autoplayIntervalId);\n        delete window.GJSOptions[this.id];\n      }\n      if (!smoothScroll) {\n        return;\n      }\n\n      // remove bind\n      if (window[sliderKey] && window[sliderKey].destroy) {\n        window[sliderKey].destroy();\n      }\n      const onClickPrev = () => {\n        const activeDot = el.querySelector(`.${classNameActiveDot}`);\n        let selectedDotIndex = Array.from(allDotsArray).indexOf(activeDot);\n        if (selectedDotIndex !== 0) {\n          selectedDotIndex--;\n        }\n        setDotAsActive({\n          index: selectedDotIndex,\n          shouldUpdatePosition: true,\n          isArrowClick: true,\n          isSettingActiveSlide: true\n        });\n      };\n      const onClickNext = () => {\n        const activeDot = el.querySelector(`.${classNameActiveDot}`);\n        let selectedDotIndex = Array.from(allDotsArray).indexOf(activeDot);\n        const indexOfLastDot = allDotsArray.length - 1;\n        if (selectedDotIndex < indexOfLastDot) {\n          selectedDotIndex++;\n        }\n        setDotAsActive({\n          index: selectedDotIndex,\n          shouldUpdatePosition: true,\n          isArrowClick: true,\n          isSettingActiveSlide: true\n        });\n      };\n      el.querySelector('.lory-prev').addEventListener('click', onClickPrev);\n      el.querySelector('.lory-next').addEventListener('click', onClickNext);\n\n      // Dots events\n      allDotsArray.forEach(dotElement => {\n        dotElement.onclick = event => {\n          const searchElement = event.target;\n          const selectedDotIndex = Array.from(allDotsArray).indexOf(searchElement);\n          setDotAsActive({\n            index: selectedDotIndex,\n            shouldUpdatePosition: true,\n            isDotClick: true\n          });\n        };\n      });\n      const onScrollEvent = event => {\n        const slides = event.target;\n        const pixelsToMove = getPixelsToMove();\n        if (slides.scrollLeft === 0 && pixelsToMove === 0) {\n          return;\n        }\n        const rawValue = slides.scrollLeft / pixelsToMove;\n        const selectDotIndex = Math.round(rawValue);\n        setDotAsActive({\n          index: selectDotIndex,\n          shouldUpdatePosition: false\n        });\n      };\n      querySelectorSlides.addEventListener('scroll', event => {\n        const GJSOptionsByComponentId = window.GJSOptions[this.id] || {};\n        const throttlePause = GJSOptionsByComponentId.throttlePause;\n        if (throttlePause) {\n          return;\n        }\n        GJSOptionsByComponentId.throttlePause = true;\n        window.GJSOptions[this.id] = Object.assign({}, GJSOptionsByComponentId);\n        setTimeout(() => {\n          GJSOptionsByComponentId.throttlePause = false;\n          window.GJSOptions[this.id] = Object.assign({}, GJSOptionsByComponentId);\n          onScrollEvent(event);\n        }, 500);\n      });\n      if (shouldAutoplay && autoplay) {\n        const intervalMs = autoplayDelay * 1000;\n        const intervalId = setInterval(() => {\n          const GJSOptionsByComponentId = window.GJSOptions[this.id] || {};\n          // const autoplayIntervalId = GJSOptionsByComponentId.autoplayIntervalId\n          const GJSOptionsByComponentIdCount = GJSOptionsByComponentId.count || 1;\n\n          // when gets to the end should jump to the start\n          if (GJSOptionsByComponentIdCount >= querySelectorSlides.childElementCount) {\n            setDotAsActive({\n              index: 0,\n              shouldUpdatePosition: true,\n              isArrowClick: true\n            });\n            // console.log('props.autoplayIntervalId::end of slide', autoplayIntervalId)\n            // clearInterval(autoplayIntervalId)\n            window.GJSOptions[this.id] = Object.assign({}, window.GJSOptions[this.id], {\n              count: 1\n            });\n            // delete window.GJSOptions[this.id]\n            return;\n          }\n          onClickNext();\n          GJSOptionsByComponentId.count = GJSOptionsByComponentIdCount + 1;\n          window.GJSOptions[this.id] = Object.assign({}, window.GJSOptions[this.id], GJSOptionsByComponentId);\n        }, intervalMs);\n        const GJSOptionsByComponentId = window.GJSOptions[this.id] || {};\n        window.GJSOptions[this.id] = Object.assign({}, GJSOptionsByComponentId, {\n          autoplayIntervalId: intervalId\n        });\n      }\n    }\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/components/SliderFrame\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/constants\", \"client/pods/grapesjs/plugins/slider-native/utils\"], function (_exports, _constants, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (dc, config = {}) => {\n    const defaultType = dc.getType('default');\n    const defaultModel = defaultType.model;\n    const defaultView = defaultType.view;\n    const {\n      frameName,\n      frameId,\n      slidesSelector\n    } = _constants.default;\n    const {\n      intl\n    } = config;\n    dc.addType(frameName, {\n      model: defaultModel.extend({\n        defaults: {\n          ...defaultModel.prototype.defaults,\n          name: intl.t('slider frame'),\n          droppable: slidesSelector,\n          draggable: false,\n          selectable: false,\n          layerable: false,\n          style: {\n            // width: '880px',\n            margin: '0 auto',\n            position: 'relative',\n            overflow: 'hidden',\n            'white-space': 'nowrap'\n          },\n          ...config.frameProps\n        },\n        init() {\n          const cls = config.classFrame;\n          this.get('classes').pluck('name').indexOf(cls) < 0 && this.addClass(cls);\n        }\n      }, {\n        isComponent(el) {\n          if ((0, _utils.elHasClass)(el, config.classFrame)) return {\n            type: frameName\n          };\n        }\n      }),\n      view: defaultView\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/components/Slides\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/constants\", \"client/pods/grapesjs/plugins/slider-native/utils\"], function (_exports, _constants, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (dc, config = {}) => {\n    const defaultType = dc.getType('default');\n    const defaultModel = defaultType.model;\n    const {\n      slidesName,\n      slidesId,\n      slideSelector,\n      frameSelector\n    } = _constants.default;\n    const {\n      intl\n    } = config;\n    dc.addType(slidesName, {\n      model: defaultModel.extend({\n        defaults: {\n          ...defaultModel.prototype.defaults,\n          name: intl.t('slides'),\n          droppable: slideSelector,\n          draggable: frameSelector,\n          selectable: false,\n          style: {\n            // display: 'inline-block',\n            'transition-delay': '1ms'\n          },\n          ...config.slidesProps\n        },\n        init() {\n          const cls = config.classSlides;\n          this.get('classes').pluck('name').indexOf(cls) < 0 && this.addClass(cls);\n\n          // add defaults\n          this.addDefaults();\n        },\n        addDefaults() {\n          this.addClass('lory-slides');\n        }\n      }, {\n        isComponent(el) {\n          if ((0, _utils.elHasClass)(el, config.classSlides)) return {\n            type: slidesName\n          };\n        }\n      }),\n      view: defaultType.view.extend({\n        init() {\n          this.listenTo(this.model.components(), 'add remove', this.renderSlider);\n        },\n        renderSlider() {\n          const slider = this.model.parent().parent();\n          slider && slider.view.render();\n        }\n      })\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/components/index\", [\"exports\", \"client/pods/grapesjs/plugins/slider-native/constants\", \"client/pods/grapesjs/plugins/slider-native/components/Slider\", \"client/pods/grapesjs/plugins/slider-native/components/Slides\", \"client/pods/grapesjs/plugins/slider-native/components/Slide\", \"client/pods/grapesjs/plugins/slider-native/components/NavPrev\", \"client/pods/grapesjs/plugins/slider-native/components/NavNext\", \"client/pods/grapesjs/plugins/slider-native/components/SliderFrame\", \"client/pods/grapesjs/plugins/slider-native/components/NavDots\", \"client/pods/grapesjs/plugins/slider-native/components/NavDot\"], function (_exports, _constants, _Slider, _Slides, _Slide, _NavPrev, _NavNext, _SliderFrame, _NavDots, _NavDot) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (editor, config = {}) => {\n    const dc = editor.DomComponents;\n    const defaultType = dc.getType('default');\n    const defaultModel = defaultType.model;\n    const defaultView = defaultType.view;\n    const {\n      sliderName,\n      slideName,\n      sliderId,\n      slideId\n    } = _constants.default;\n    (0, _Slider.default)(dc, config);\n    (0, _Slides.default)(dc, config);\n    (0, _Slide.default)(dc, config);\n    (0, _NavPrev.default)(dc, config);\n    (0, _NavNext.default)(dc, config);\n    (0, _SliderFrame.default)(dc, config);\n    (0, _NavDots.default)(dc, config);\n    (0, _NavDot.default)(dc, config);\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/constants\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const prefix = 'lory-';\n  const sliderName = `${prefix}slider`;\n  const slideName = `${prefix}slide`;\n  const slidesName = `${prefix}slides`;\n  const frameName = `${prefix}frame`;\n  const prevName = `${prefix}prev`;\n  const nextName = `${prefix}next`;\n  const dotsName = `${prefix}dots`;\n  const dotName = `${prefix}dot`;\n  var _default = _exports.default = {\n    sliderName,\n    slideName,\n    slidesName,\n    prevName,\n    nextName,\n    frameName,\n    dotsName,\n    dotName,\n    // Selectors\n    sliderSelector: `[data-${sliderName}]`,\n    slidesSelector: `[data-${slidesName}]`,\n    slideSelector: `[data-${slideName}]`,\n    prevSelector: `[data-${prevName}]`,\n    nextSelector: `[data-${nextName}]`,\n    frameSelector: `[data-${frameName}]`,\n    dotsSelector: `[data-${dotsName}]`,\n    dotSelector: `[data-${dotName}]`,\n    // IDs\n    sliderId: `data-${sliderName}`,\n    slideId: `data-${slideName}`,\n    slidesId: `data-${slidesName}`,\n    prevId: `data-${prevName}`,\n    nextId: `data-${nextName}`,\n    frameId: `data-${frameName}`,\n    dotsId: `data-${dotsName}`,\n    dotId: `data-${dotName}`\n  };\n});","define(\"client/pods/grapesjs/plugins/slider-native/index\", [\"exports\", \"ramda\", \"client/pods/grapesjs/plugins/slider-native/components\", \"client/pods/grapesjs/plugins/slider-native/blocks\"], function (_exports, R, _components, _blocks) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: slider\n   * @author Nafis Rubio\n   * @since 26/05/2022\n   * @copyright (C) 2022 BigOrdr\n   * @description: Slider plugin for grapesjs\n   */\n  var _default = editor => {\n    const bigordrSliderNative = 'bigordr-slider-native';\n    const customOptions = R.pathOr({}, ['Config', 'pluginsOpts', bigordrSliderNative])(editor);\n    const slideId = Math.random().toString(36).substring(2, 15);\n    const defaultOptions = {\n      slideId,\n      // Object to extend the default slider block, eg. `{ label: 'Slider', attributes: { ... } }`\n      // Pass a falsy value to avoid adding the block\n      sliderBlock: {},\n      // Object to extend the default slider properties, eg. `{ name: 'My Slider', draggable: false, ... }`\n      sliderProps: {},\n      // Object to extend the default slider frame properties\n      frameProps: {},\n      // Object to extend the default slides properties\n      slidesProps: {},\n      // Object to extend the default slide properties\n      slideProps: {},\n      // Object to extend the default previous nav properties\n      prevProps: {},\n      // Object to extend the default next nav properties\n      nextProps: {},\n      // Default slides\n      slideEls: `\n            <li class=\"gjs-lory-slide-min-width gjs-lory-slide gjs-lory-slide-id-${slideId} js_slide\"></li>\n            <li class=\"gjs-lory-slide-min-width gjs-lory-slide gjs-lory-slide-id-${slideId} js_slide\"></li>\n            <li class=\"gjs-lory-slide-min-width gjs-lory-slide gjs-lory-slide-id-${slideId} js_slide\"></li>\n    `,\n      // Previous nav element string, as for example, an HTML string\n      prevEl: `<i class=\"fas fa-angle-left\"></i>`,\n      // prevEl: `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"50\" height=\"50\" viewBox=\"0 0 501.5 501.5\">\n      //     <g><path fill=\"#2E435A\" d=\"M302.67 90.877l55.77 55.508L254.575 250.75 358.44 355.116l-55.77 55.506L143.56 250.75z\"/></g>\n      //   </svg>`,\n\n      // Next nav element string, as for example, an HTML string\n      nextEl: `<i class=\"fas fa-angle-right\"></i>`,\n      // Class name for the slider frame\n      classFrame: 'gjs-lory-frame gjs-lory-frame-min-width',\n      // Class name for slides container\n      classSlides: 'gjs-lory-slides',\n      // Class name for slides container\n      classSlide: 'gjs-lory-slide',\n      // Class name for slider previous control\n      classPrev: 'lory-prev',\n      // Class name for slider next control\n      classNext: 'lory-next',\n      // Script to load dynamically in case no lory instance was found\n      script: 'https://cdnjs.cloudflare.com/ajax/libs/lory.js/2.3.4/lory.min.js'\n    };\n    const options = R.mergeRight(defaultOptions, customOptions);\n\n    // Add components\n    (0, _components.default)(editor, options);\n\n    // Add blocks\n    (0, _blocks.default)(editor, options);\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/slider-native/utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.elHasClass = void 0;\n  const elHasClass = (el, toFind) => {\n    let cls = el.className;\n    cls = cls && cls.toString();\n    if (cls && cls.split(' ').indexOf(toFind) >= 0) return 1;\n  };\n  _exports.elHasClass = elHasClass;\n});","define(\"client/pods/grapesjs/plugins/slider\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', 'bigordr-slider'])(editor);\n    const {\n      onDbClick,\n      onDrop,\n      intl,\n      isReadonly,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const imagePlaceholder = {\n      src: 'https://via.placeholder.com/2048x1024?text=Image',\n      url: 'https://via.placeholder.com',\n      ratio: '2048x1024',\n      text: 'Image'\n    };\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const updateImageRatio = el => {\n      const images = el.children;\n      R.forEach(image => {\n        const pixelRatio = image.getAttribute('data-gjs-model-pixelratio');\n        const src = image.getAttribute('src');\n        if (src) {\n          const scaled = src.includes('scale_crop');\n          if (pixelRatio && !scaled) {\n            const cropSrc = `${src}-/scale_crop/${pixelRatio}/center/`;\n            image.setAttribute('src', cropSrc);\n          }\n        }\n      })(images);\n    };\n    DomComponents.addType('bigordr-slider-image', {\n      model: {\n        defaults: {\n          tagName: 'img',\n          classes: ['full-width-image'],\n          attributes: {\n            'data-gjs-component': 'bigordr-slider-image',\n            alt: 'none'\n          },\n          style: {\n            width: '100%'\n          },\n          badgable: false,\n          copyable: false,\n          draggable: false,\n          droppable: false,\n          editable: false,\n          highlightable: false,\n          hoverable: false,\n          layerable: false,\n          removable: false,\n          resizable: false,\n          selectable: false,\n          stylable: false,\n          traits: []\n        }\n      }\n    });\n    DomComponents.addType('bigordr-slider', {\n      model: {\n        defaults: {\n          defaultRatio: '2048x1024',\n          defaultPlaceholder: imagePlaceholder,\n          tagName: 'div',\n          draggable: '.bigordr-cell, [data-gjs-type=\"wrapper\"]',\n          droppable: false,\n          attributes: {\n            'data-gjs-component': 'bigordr-slider',\n            alt: 'none'\n          },\n          toolbar: [{\n            attributes: {\n              class: 'fas fa-pencil-alt'\n            },\n            command(editor) {\n              const el = editor.getSelected().getEl();\n              if (onDbClick) {\n                onDbClick(el);\n              }\n            }\n          }, {\n            attributes: {\n              class: 'fa fa-arrow-up'\n            },\n            command: 'select-parent'\n          }, {\n            attributes: {\n              class: 'fa fa-arrows'\n            },\n            command: 'tlb-move'\n          }, {\n            attributes: {\n              class: 'fa fa-clone'\n            },\n            command: 'tlb-clone'\n          }, {\n            attributes: {\n              class: 'fa fa-trash'\n            },\n            command: 'tlb-delete'\n          }],\n          components: [{\n            type: 'bigordr-slider-image',\n            attributes: {\n              defaultPlaceholder: true,\n              src: imagePlaceholder.src\n            },\n            traits: []\n          }],\n          traits: []\n        },\n        updated() {\n          this.removeDefaultPlaceholders();\n          updateImageRatio(this.getEl());\n        },\n        removeDefaultPlaceholders() {\n          const hasMoreComp = this.components().length > 1;\n          if (hasMoreComp) {\n            const components = this.components().models;\n            R.pipe(R.filter(R.pathEq(['attributes', 'attributes', 'defaultPlaceholder'], true)), R.map(c => c.remove()))(components);\n          }\n        }\n      },\n      view: {\n        // Add easily component specific listeners with `events`\n        // Being component specific (eg. you can't attach here listeners to window)\n        // you don't need to care about removing them when the component is removed,\n        // they will be managed automatically by the editor\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick(event) {\n          if (onDbClick && !isReadonly) {\n            const element = event.target.parentElement;\n            onDbClick(element);\n          }\n        },\n        removeDefaultPlaceholders(model) {\n          const hasMoreComp = model.components().length > 1;\n          if (hasMoreComp) {\n            const components = model.components().models;\n            R.pipe(R.filter(R.pathEq(['attributes', 'attributes', 'defaultPlaceholder'], true)), R.map(c => c.remove()))(components);\n          }\n        },\n        updateSliderImagesDisplay(el) {\n          R.pipe(R.pathOr([], ['children']), R.map(img => {\n            img.classList.remove('full-width-image--display-none');\n            return img;\n          }), R.tail, R.forEach(img => img.classList.add('full-width-image--display-none')))(el);\n        },\n        onRender({\n          el\n        }) {\n          this.updateSliderImagesDisplay(el);\n          this.removeDefaultPlaceholders(this.model);\n          updateImageRatio(el);\n        }\n      }\n    });\n\n    // BlockManager.add('bigordr-slider-block', {\n    //   label: intl.t('slider'),\n    //   category: categories.basic,\n    //   content: {\n    //     type: 'bigordr-slider'\n    //   },\n    //   render: () => `\n    //     <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;\">\n    //       <g transform=\"matrix(1,0,0,1,-6.60663,21.9871)\">\n    //           <g transform=\"matrix(1.00794,-6.84695e-39,4.65812e-39,0.792537,158.108,-76.7203)\">\n    //               <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:38.6px;\"/>\n    //           </g>\n    //           <g transform=\"matrix(1.00794,0,1.30506e-54,0.792537,83.8538,-2.46648)\">\n    //               <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:38.6px;\"/>\n    //           </g>\n    //           <g transform=\"matrix(1.00794,-6.84695e-39,4.65812e-39,0.792537,17.5874,81.7874)\">\n    //               <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:38.6px;\"/>\n    //           </g>\n    //           <g transform=\"matrix(1.08069,-5.87747e-39,5.87747e-39,1.08069,-43.4658,6.77548)\">\n    //               <g transform=\"matrix(1.51835,-6.97105e-19,-6.97105e-19,1.52404,-502.354,-212.761)\">\n    //                   <circle cx=\"567.803\" cy=\"388.754\" r=\"27.858\" style=\"stroke:black;stroke-width:18.25px;stroke-linecap:round;stroke-linejoin:round;\"/>\n    //               </g>\n    //               <g transform=\"matrix(1.01538,0,0,1.01538,-7.2449,-44.0848)\">\n    //                   <g transform=\"matrix(-0.93623,0,0,0.939727,1014.78,130.716)\">\n    //                       <path d=\"M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z\"/>\n    //                   </g>\n    //                   <g transform=\"matrix(-1.01027,0,0,0.756475,916.709,228.489)\">\n    //                       <path d=\"M453.058,338.375L600.233,533.547L305.882,533.547L453.058,338.375Z\"/>\n    //                   </g>\n    //               </g>\n    //           </g>\n    //       </g>\n    //       <g transform=\"matrix(1,0,0,1,0.251863,-73.6856)\">\n    //           <g transform=\"matrix(1.43016,5.71454e-23,-5.71454e-23,1.43016,-956.422,144.288)\">\n    //               <g transform=\"matrix(1.09375,2.6963e-32,-2.6963e-32,1.09375,128.028,12.4834)\">\n    //                   <circle cx=\"608.595\" cy=\"433.442\" r=\"79.613\" style=\"stroke:black;stroke-width:22.38px;stroke-linejoin:round;\"/>\n    //               </g>\n    //               <g transform=\"matrix(-0.794376,-9.7283e-17,9.7283e-17,-0.794376,1440.42,575.983)\">\n    //                   <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n    //                       <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:white;stroke-width:328.44px;stroke-linejoin:round;\"/>\n    //                   </g>\n    //                   <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n    //                       <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:white;stroke-width:328.44px;stroke-linejoin:round;\"/>\n    //                   </g>\n    //               </g>\n    //           </g>\n    //           <g transform=\"matrix(-1.43016,-1.75144e-16,1.75144e-16,-1.43016,1979.92,1536.01)\">\n    //               <g transform=\"matrix(1.09375,2.6963e-32,-2.6963e-32,1.09375,128.028,12.4834)\">\n    //                   <circle cx=\"608.595\" cy=\"433.442\" r=\"79.613\" style=\"stroke:black;stroke-width:22.38px;stroke-linejoin:round;\"/>\n    //               </g>\n    //               <g transform=\"matrix(-0.794376,-9.7283e-17,9.7283e-17,-0.794376,1440.42,575.983)\">\n    //                   <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n    //                       <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:white;stroke-width:328.44px;stroke-linejoin:round;\"/>\n    //                   </g>\n    //                   <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n    //                       <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:white;stroke-width:328.44px;stroke-linejoin:round;\"/>\n    //                   </g>\n    //               </g>\n    //           </g>\n    //       </g>\n    //     </svg>\n    //   `\n    // })\n\n    editor.on('block:drag:stop', component => {\n      if (component && component.is('bigordr-slider')) {\n        editor.select(component);\n        if (onDrop) {\n          onDrop(component.getEl());\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/stories\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @typedef {import(\"../categories\").Categories}\n   */\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const pluginName = 'bigordr-stories';\n    const textBlock = 'bigordr-stories-block';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const textBlockLabel = intl.t(textBlock);\n    const textBlockLabelId = `${textBlockLabel}-id`;\n    DomComponents.addType(pluginName, {\n      extend: 'row',\n      model: {\n        defaults: {\n          classes: [pluginName],\n          style: {\n            margin: '0 auto',\n            'max-width': '451px',\n            'max-height': '800px',\n            'overflow': 'hidden'\n          },\n          attributes: {\n            'data-gjs-component': pluginName\n          },\n          components: [{\n            type: 'lory-slider',\n            style: {\n              'width': '451px',\n              'height': '800px'\n            },\n            traits: []\n          }],\n          traits: []\n        },\n        traits: []\n      }\n    });\n\n    // BlockManager.add(textBlockLabelId, {\n    //   label: textBlockLabel,\n    //   category: categories.complex,\n    //   content: {\n    //     type: pluginName\n    //   },\n    //   render: ({ model }) => `\n    // <div class=\"gjs-block__media\">\n    // <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" id=\"add-instagram-story\"><path fill=\"#000\" fill-rule=\"evenodd\" d=\"M12 5.25C12.4142 5.25 12.75 5.58579 12.75 6V18C12.75 18.4142 12.4142 18.75 12 18.75C11.5858 18.75 11.25 18.4142 11.25 18V6C11.25 5.58579 11.5858 5.25 12 5.25Z\" clip-rule=\"evenodd\"></path>\n    //   <path fill=\"#000\" fill-rule=\"evenodd\" d=\"M5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H18C18.4142 11.25 18.75 11.5858 18.75 12 18.75 12.4142 18.4142 12.75 18 12.75H6C5.58579 12.75 5.25 12.4142 5.25 12zM10.2263 2.128C10.3296 2.52914 10.0881 2.93802 9.68694 3.04127 9.19056 3.16903 8.7103 3.33698 8.24979 3.54149 7.87123 3.7096 7.42806 3.539 7.25994 3.16044 7.09183 2.78187 7.26243 2.3387 7.64099 2.17059 8.17667 1.9327 8.73547 1.73727 9.31306 1.58861 9.7142 1.48537 10.1231 1.72686 10.2263 2.128zM5.75633 4.15238C6.03781 4.45625 6.01966 4.93078 5.71579 5.21226 4.97148 5.90172 4.34093 6.71184 3.85525 7.61113 3.65841 7.97559 3.2034 8.11148 2.83894 7.91464 2.47448 7.71781 2.33859 7.26279 2.53543 6.89834 3.1 5.85298 3.83243 4.91218 4.69645 4.11183 5.00032 3.83035 5.47485 3.8485 5.75633 4.15238zM2.25612 9.61903C2.66481 9.6865 2.94142 10.0725 2.87396 10.4812 2.79247 10.9748 2.75 11.4821 2.75 11.9999 2.75 12.5177 2.79247 13.025 2.87396 13.5186 2.94142 13.9273 2.66481 14.3133 2.25612 14.3808 1.84744 14.4482 1.46145 14.1716 1.39399 13.7629 1.29922 13.1888 1.25 12.5998 1.25 11.9999 1.25 11.4 1.29922 10.811 1.39399 10.2369 1.46145 9.82819 1.84744 9.55157 2.25612 9.61903zM2.83894 16.0851C3.2034 15.8883 3.65841 16.0242 3.85525 16.3887 4.34093 17.288 4.97147 18.0981 5.71578 18.7875 6.01966 19.069 6.03781 19.5435 5.75633 19.8474 5.47485 20.1513 5.00032 20.1694 4.69644 19.888 3.83243 19.0876 3.1 18.1468 2.53543 17.1015 2.33859 16.737 2.47448 16.282 2.83894 16.0851zM7.25994 20.8394C7.42805 20.4608 7.87122 20.2902 8.24979 20.4583 8.7103 20.6628 9.19056 20.8308 9.68694 20.9585 10.0881 21.0618 10.3296 21.4707 10.2263 21.8718 10.1231 22.2729 9.7142 22.5144 9.31306 22.4112 8.73547 22.2625 8.17667 22.0671 7.64099 21.8292 7.26243 21.6611 7.09183 21.2179 7.25994 20.8394zM11.25 2C11.25 1.58579 11.5858 1.25 12 1.25 17.9371 1.25 22.75 6.06294 22.75 12 22.75 12.4142 22.4142 12.75 22 12.75 21.5858 12.75 21.25 12.4142 21.25 12 21.25 6.89137 17.1086 2.75 12 2.75 11.5858 2.75 11.25 2.41421 11.25 2zM21.4682 15.3127C21.8478 15.4786 22.021 15.9207 21.8552 16.3003 20.197 20.0954 16.4094 22.75 12 22.75 11.5858 22.75 11.25 22.4142 11.25 22 11.25 21.5858 11.5858 21.25 12 21.25 15.7919 21.25 19.0526 18.9682 20.4806 15.6997 20.6465 15.3202 21.0886 15.1469 21.4682 15.3127z\" clip-rule=\"evenodd\"></path></svg>\n    // <div class=\"block-label\">${model.get('label')}</div></div>`\n    // })\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/strip\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = editor => {\n    const bigordrStrip = 'bigordr-strip';\n    const bigordrStripBlockId = `${bigordrStrip}-block`;\n\n    // Inner Components\n    const bigordrStripImage = 'bigordr-strip-image';\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', bigordrStrip])(editor);\n    const bigordrStripImageOptions = R.pathOr({}, [bigordrStripImage])(options);\n    const margin0 = 'margin-0';\n    const {\n      intl = {\n        t: txt => txt\n      },\n      isReadonly,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const {\n      onDbClick = args => args\n    } = bigordrStripImageOptions;\n    const blockLabel = intl.t(bigordrStrip);\n    const onImageSelect = (component, imgType, imageUrl, mimeType) => {\n      component.addStyle({\n        'background-image': `url(${imageUrl})`\n      });\n    };\n    DomComponents.addType(bigordrStripImage, {\n      model: {\n        defaults: {\n          imgType: 'full-width-image',\n          name: intl.t(bigordrStripImage),\n          style: {\n            'background-attachment': 'scroll',\n            'background-image': 'url(https://picsum.photos/512)',\n            'background-position': 'center center',\n            'background-repeat': 'no-repeat',\n            'background-size': 'cover',\n            'max-height': '100%',\n            'min-height': '200px',\n            'object-fit': 'cover',\n            'flex-shrink': '1',\n            height: 'auto',\n            width: '100%'\n          },\n          removable: true,\n          copyable: false,\n          draggable: false,\n          stylable: true,\n          droppable: false,\n          selectable: true,\n          traits: []\n        }\n      },\n      view: {\n        // Add easily component specific listeners with `events`\n        // Being component specific (eg. you can't attach here listeners to window)\n        // you don't need to care about removing them when the component is removed,\n        // they will be managed automatically by the editor\n        events: {\n          dblclick: 'onDbClick'\n        },\n        onDbClick(event) {\n          const targetType = R.pathOr('', ['target', 'dataset', 'gjsType'])(event);\n          if (onDbClick && !isReadonly && targetType !== 'text' && targetType !== 'bigordr-button') {\n            const imgType = '';\n            const imagesManager = {\n              onImageSelect: (...args) => onImageSelect(this.model, ...args)\n            };\n            const allowSrcSet = false;\n            onDbClick(imgType, imagesManager, allowSrcSet);\n          }\n        }\n      }\n    });\n    DomComponents.addType(bigordrStrip, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          name: intl.t(bigordrStrip),\n          classes: ['bigordr-strip'],\n          components: [{\n            type: 'row',\n            style: {\n              padding: '0px 0px 0px 0px'\n            },\n            selectable: false,\n            droppable: false,\n            draggable: false,\n            components: [{\n              type: bigordrStripImage,\n              traits: [{\n                type: 'bigordr-animation-trait',\n                name: 'animationSelector',\n                label: intl.t('select animation')\n              }, {\n                type: 'bigordr-animation-iteration-trait',\n                name: 'animationIterationSelector',\n                label: intl.t('select iteration count')\n              }, {\n                type: 'bigordr-animation-duration-trait',\n                name: 'animationDuration',\n                label: intl.t('enter duration (sec)')\n              }],\n              classes: ['bigordr-strip-image']\n            }, {\n              type: 'cell',\n              selectable: false,\n              components: [{\n                tagName: 'section',\n                name: intl.t('text-block'),\n                style: {\n                  padding: '10px'\n                },\n                components: [{\n                  type: 'text',\n                  classes: ['bigordr-title', margin0],\n                  name: intl.t('title'),\n                  style: {\n                    padding: '10px'\n                  },\n                  tagName: 'h1',\n                  content: 'Insert title here',\n                  traits: [{\n                    type: 'bigordr-animation-text-trait',\n                    name: 'animationSelector',\n                    label: intl.t('select animation')\n                  }, {\n                    type: 'bigordr-animation-iteration-trait',\n                    name: 'animationIterationSelector',\n                    label: intl.t('select iteration count')\n                  }, {\n                    type: 'bigordr-animation-duration-trait',\n                    name: 'animationDuration',\n                    label: intl.t('enter duration (sec)')\n                  }]\n                }, {\n                  type: 'text',\n                  style: {\n                    padding: '10px'\n                  },\n                  tagName: 'p',\n                  content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce lobortis ullamcorper lorem. Donec tempor lectus sapien, eu consequat dolor vehicula eu. Vestibulum non felis blandit, condimentum mi ac, pulvinar dolor. Nullam eu mi sodales, tempus eros in, blandit urna. Suspendisse potenti. Etiam sit amet dignissim ex. Maecenas elit quam, tempus quis consectetur sed, malesuada eu tortor. In faucibus, quam at efficitur aliquam, sem tortor feugiat velit, in hendrerit ipsum enim sit amet tortor. Quisque a lacus sed tortor rutrum facilisis ac eget magna. In gravida consequat justo ut eleifend. Vivamus dapibus rhoncus eros, et vestibulum eros fringilla ac. Maecenas porttitor est nec tempor mattis.',\n                  traits: [{\n                    type: 'bigordr-animation-trait',\n                    name: 'animationSelector',\n                    label: intl.t('select animation')\n                  }, {\n                    type: 'bigordr-animation-iteration-trait',\n                    name: 'animationIterationSelector',\n                    label: intl.t('select iteration count')\n                  }, {\n                    type: 'bigordr-animation-duration-trait',\n                    name: 'animationDuration',\n                    label: intl.t('enter duration (sec)')\n                  }],\n                  classes: [margin0]\n                }],\n                traits: []\n              }],\n              traits: []\n            }, {\n              type: bigordrStripImage,\n              traits: [{\n                type: 'bigordr-animation-trait',\n                name: 'animationSelector',\n                label: intl.t('select animation')\n              }, {\n                type: 'bigordr-animation-iteration-trait',\n                name: 'animationIterationSelector',\n                label: intl.t('select iteration count')\n              }, {\n                type: 'bigordr-animation-duration-trait',\n                name: 'animationDuration',\n                label: intl.t('enter duration (sec)')\n              }],\n              classes: ['bigordr-strip-image']\n            }],\n            traits: []\n          }],\n          traits: []\n        }\n      }\n    });\n    BlockManager.add(bigordrStripBlockId, {\n      label: blockLabel,\n      category: categories.complex,\n      content: {\n        type: bigordrStrip\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n    <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;\">\n        <g transform=\"matrix(1,0,0,1,-3.32468,1.7053e-13)\">\n            <g>\n                <g transform=\"matrix(1,0,0,1,-3.28194,-1.08002e-12)\">\n                    <g transform=\"matrix(1.37733,0,0,1.65228,-180.565,-864.206)\">\n                        <path d=\"M207.809,832.911L800.909,832.911\" style=\"fill:none;stroke:black;stroke-width:29.59px;\"/>\n                    </g>\n                    <g transform=\"matrix(1,0,0,1,118.44,399.43)\">\n                        <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                            <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;\"/>\n                        </g>\n                        <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                            <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;\"/>\n                        </g>\n                    </g>\n                    <g transform=\"matrix(-1,-1.22465e-16,1.22465e-16,-1,918.773,624.57)\">\n                        <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                            <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;\"/>\n                        </g>\n                        <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                            <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;\"/>\n                        </g>\n                    </g>\n                </g>\n                <g transform=\"matrix(1,0,0,1,1.86342,37.2616)\">\n                    <g transform=\"matrix(1.00794,0,0,0.792537,12.4421,44.5258)\">\n                        <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:38.6px;stroke-linecap:square;stroke-linejoin:miter;\"/>\n                    </g>\n                    <g transform=\"matrix(0.314179,0,0,0.783256,138.804,45.509)\">\n                        <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:rgb(209,209,209);\"/>\n                    </g>\n                    <g transform=\"matrix(0.314179,0,0,0.783256,576.983,42.2419)\">\n                        <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:rgb(209,209,209);\"/>\n                    </g>\n                    <g transform=\"matrix(1.00794,0,0,0.792537,12.4421,44.5258)\">\n                        <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:none;stroke:black;stroke-width:38.6px;stroke-linecap:square;stroke-linejoin:miter;\"/>\n                    </g>\n                </g>\n            </g>\n        </g>\n        <g transform=\"matrix(0.399314,0,0,0.377203,340.227,332.928)\">\n            <text x=\"260.627px\" y=\"673.073px\" style=\"font-family:'Helvetica-Bold', 'Helvetica';font-weight:700;font-size:551.145px;\">T</text>\n        </g>\n    </svg>\n    <div class=\"block-label\">${model.get('label')}</div>\n    </div>`\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs-with-header\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: grid\n   * @author Nafis Rubio\n   * @since 19/09/2020\n   * @copyright (C) 2020 BigOrdr\n   * @description: Grid component\n   */\n  /**\n   * @typedef {import(\"../categories\").Categories}\n   */\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const pluginName = 'bigordr-tabs-with-header';\n    const textBlock = 'bigordr-tabs-with-header-block';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const textBlockLabel = intl.t(textBlock);\n    const textBlockLabelId = `${textBlockLabel}-id`;\n    DomComponents.addType(pluginName, {\n      model: {\n        defaults: {\n          classes: [pluginName],\n          name: textBlockLabel,\n          components: [{\n            type: 'text',\n            name: intl.t('title'),\n            tagName: 'h2',\n            content: 'Title Anchor Tag ⚓️',\n            droppable: false,\n            draggable: false,\n            removable: false,\n            copyable: false,\n            attributes: {\n              [`data-${pluginName}-anchor`]: true\n            },\n            traits: [{\n              type: 'bigordr-animation-trait',\n              name: 'animationSelector',\n              label: 'Select Animation'\n            }, {\n              type: 'bigordr-animation-iteration-trait',\n              name: 'animationIterationSelector',\n              label: intl.t('select iteration count')\n            }, {\n              type: 'bigordr-animation-duration-trait',\n              name: 'animationDuration',\n              label: intl.t('enter duration (sec)')\n            }]\n          }, {\n            type: 'tabs',\n            name: intl.t('tabs'),\n            draggable: false,\n            removable: false,\n            copyable: false\n          }],\n          traits: []\n        }\n      }\n    });\n    BlockManager.add(textBlockLabelId, {\n      label: textBlockLabel,\n      category: categories.complex,\n      content: {\n        type: pluginName\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg width=\"100%\" height=\"100%\" viewBox=\"0 0 4267 4267\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-miterlimit:1.5;\">\n    <g transform=\"matrix(4.16667,0,0,4.16667,0,0)\">\n        <g transform=\"matrix(2.28635,0,0,2.40366,-172.973,-970.666)\">\n            <rect x=\"87.22\" y=\"585.137\" width=\"424.78\" height=\"201.562\" style=\"fill:rgb(235,235,235);stroke:black;stroke-width:19.37px;\"/>\n        </g>\n        <g transform=\"matrix(48.2112,0,0,48.2112,-63.9628,50.1959)\">\n            <path d=\"M7,5.013C7,5.006 6.994,5 6.987,5L3.013,5C3.006,5 3,5.006 3,5.013L3,6.987C3,6.994 3.006,7 3.013,7L6.987,7C6.994,7 7,6.994 7,6.987L7,5.013Z\"/>\n        </g>\n        <g transform=\"matrix(48.2112,0,0,48.2112,-63.9628,50.1959)\">\n            <path d=\"M12,5.013C12,5.006 11.994,5 11.987,5L8.013,5C8.006,5 8,5.006 8,5.013L8,6.987C8,6.994 8.006,7 8.013,7L11.987,7C11.994,7 12,6.994 12,6.987L12,5.013Z\"/>\n        </g>\n        <g transform=\"matrix(48.2112,0,0,48.2112,-63.9628,50.1959)\">\n            <path d=\"M17,5.013C17,5.006 16.994,5 16.987,5L13.013,5C13.006,5 13,5.006 13,5.013L13,6.987C13,6.994 13.006,7 13.013,7L16.987,7C16.994,7 17,6.994 17,6.987L17,5.013Z\"/>\n        </g>\n        <g transform=\"matrix(0.431255,0,0,0.431255,-375.802,-44.7949)\">\n            <text x=\"926.12px\" y=\"672.779px\" style=\"font-family:'Arial-Black', 'Arial Black', sans-serif;font-weight:900;font-size:288px;\">TITLE</text>\n        </g>\n        <g transform=\"matrix(0.515727,0,0,0.24,-643.139,0)\">\n            <rect x=\"1211.46\" y=\"573.284\" width=\"2050.17\" height=\"540.011\" style=\"fill:none;stroke:black;stroke-width:59.67px;stroke-linejoin:round;\"/>\n        </g>\n    </g>\n</svg>\n<div class=\"block-label\">${model.get('label')}</div>\n</div>\n`\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs/blocks\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (editor, {\n    tabsBlock,\n    typeTabs,\n    categories,\n    intl\n  }) => {\n    const bm = editor.BlockManager;\n    tabsBlock && bm.add(typeTabs, {\n      category: categories.complex,\n      label: intl.t('tabs'),\n      media: `\n      <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 4267 4267\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-miterlimit:1.5;\">\n          <g transform=\"matrix(4.16667,0,0,4.16667,0,0)\">\n              <g transform=\"matrix(1.76161,0,0,1.852,-15.7958,-702.631)\">\n                  <rect x=\"87.22\" y=\"585.137\" width=\"424.78\" height=\"201.562\" style=\"fill:rgb(235,235,235);stroke:black;stroke-width:19.37px;\"/>\n              </g>\n              <g transform=\"matrix(37.1463,0,0,37.1463,68.1956,83.9336)\">\n                  <path d=\"M7,5.013C7,5.006 6.994,5 6.987,5L3.013,5C3.006,5 3,5.006 3,5.013L3,6.987C3,6.994 3.006,7 3.013,7L6.987,7C6.994,7 7,6.994 7,6.987L7,5.013Z\"/>\n              </g>\n              <g transform=\"matrix(37.1463,0,0,37.1463,68.1956,83.9336)\">\n                  <path d=\"M12,5.013C12,5.006 11.994,5 11.987,5L8.013,5C8.006,5 8,5.006 8,5.013L8,6.987C8,6.994 8.006,7 8.013,7L11.987,7C11.994,7 12,6.994 12,6.987L12,5.013Z\"/>\n              </g>\n              <g transform=\"matrix(37.1463,0,0,37.1463,68.1956,83.9336)\">\n                  <path d=\"M17,5.013C17,5.006 16.994,5 16.987,5L13.013,5C13.006,5 13,5.006 13,5.013L13,6.987C13,6.994 13.006,7 13.013,7L16.987,7C16.994,7 17,6.994 17,6.987L17,5.013Z\"/>\n              </g>\n          </g>\n      </svg>\n      <div class=\"block-label\">${intl.t('tabs')}</div>\n    `,\n      content: {\n        type: typeTabs\n      },\n      ...tabsBlock\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs/components/Tab\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.role = _exports.default = void 0;\n  const role = _exports.role = 'tab';\n  var _default = (dc, {\n    defaultModel,\n    typeTabs,\n    selectorTab,\n    editor,\n    intl = {\n      t: txt => txt\n    },\n    ...config\n  }) => {\n    const traits = [{\n      full: 1,\n      type: 'button',\n      label: false,\n      text: 'Style Active',\n      command: ed => {\n        const openSm = ed.Panels.getButton('views', 'open-sm');\n        openSm && openSm.set('active', 1);\n        const cls = `.${config.classTab}.${config.classTabActive}`;\n        ed.StyleManager.setTarget(cls, {\n          targetIsClass: 1\n        });\n      }\n    }];\n    dc.addType(config.typeTab, {\n      model: {\n        defaults: {\n          name: intl.t('tab'),\n          draggable: `[data-gjs-type=\"${config.typeTabContainer}\"]`,\n          attributes: {\n            role\n          },\n          components: config.templateTab,\n          classes: config.classTab,\n          traits: [],\n          ...config.tabProps\n        },\n        init() {\n          this.on('removed', this.__onRemove);\n        },\n        __initTab() {\n          if (this.tabContent) return;\n          let content = this.getTabContent();\n\n          // If the tab content was found I'll attach it to the tab model\n          // otherwise I'll create e new one\n          if (!content) {\n            const tabs = this.getTabsType();\n            const cnts = tabs.getContentsType();\n            content = cnts.append({\n              type: config.typeTabContent,\n              components: config.templateTabContent(this)\n            })[0];\n            const id = content.getId();\n            const tabId = this.getId();\n            content.addAttributes({\n              id,\n              'aria-labelledby': tabId,\n              hidden: true\n            });\n            this.addAttributes({\n              [selectorTab]: id,\n              id: tabId\n            });\n            this.tabContent = content;\n          }\n          this.tabContent = content;\n        },\n        __onRemove() {\n          const content = this.getTabContent();\n          content && content.remove();\n          const removeAll = this.getTabsType().get('removeAll');\n          if (!removeAll) {\n            this.getTabsType().trigger('rerender');\n          }\n        },\n        getTabsType() {\n          return this.closestType(typeTabs);\n        },\n        getTabContent() {\n          const id = this.getAttributes()[selectorTab];\n          const tabs = this.getTabsType();\n          if (!tabs || !id) return;\n          const contents = tabs.findContents();\n          return contents.filter(c => c.getId() == id)[0];\n        },\n        clone() {\n          const cloned = defaultModel.prototype.clone.apply(this, arguments);\n          cloned.addAttributes({\n            [selectorTab]: ''\n          });\n          return cloned;\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs/components/TabContainer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.role = _exports.default = void 0;\n  const role = _exports.role = 'tablist';\n  function hasStyleForClass(model, className) {\n    const em = model.em; // GrapesJS EditorModel\n    const cssComposer = em?.get?.('CssComposer');\n    if (!cssComposer) {\n      return false;\n    }\n\n    // Rule is stored by selector (class selector in our case)\n    const rule = cssComposer.getRule(`.${className}`);\n    if (rule) {\n      const style = rule.getStyle?.() || {};\n      return Object.keys(style).length > 0;\n    }\n    return false;\n  }\n  var _default = (dc, {\n    intl = {\n      t: txt => txt\n    },\n    ...config\n  }) => {\n    dc.addType(config.typeTabContainer, {\n      model: {\n        defaults: {\n          name: intl.t('tab container'),\n          draggable: false,\n          // `[data-gjs-type=\"${config.typeTabs}\"]`,\n          droppable: false,\n          // `[data-gjs-type=\"${config.typeTab}\"]`,\n          copyable: false,\n          removable: false,\n          highlightable: false,\n          attributes: {\n            role\n          },\n          classes: config.classTabContainer,\n          traits: [],\n          ...config.tabContainerProps\n        }\n      },\n      view: {\n        onRender({\n          model /* , editor, el */\n        }) {\n          // add id as class name. so, style can be added to a specific tabContainer\n          const modelClasses = model.getClasses() || [];\n          modelClasses.forEach(className => {\n            if (className.includes('id-') && !hasStyleForClass(model, className)) {\n              model.removeClass(className);\n            }\n          });\n          const className = `id-${model.getId()}`;\n          model.addClass(className);\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs/components/TabContent\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.role = _exports.default = void 0;\n  const role = _exports.role = 'tabpanel';\n  var _default = (dc, {\n    intl = {\n      t: txt => txt\n    },\n    ...config\n  }) => {\n    dc.addType(config.typeTabContent, {\n      model: {\n        defaults: {\n          name: intl.t('tab content'),\n          draggable: false,\n          droppable: false,\n          copyable: false,\n          removable: false,\n          highlightable: false,\n          attributes: {\n            role\n          },\n          classes: config.classTabContent,\n          traits: [],\n          ...config.tabContentProps\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs/components/TabContents\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (dc, {\n    intl = {\n      t: txt => txt\n    },\n    ...config\n  }) => {\n    dc.addType(config.typeTabContents, {\n      model: {\n        defaults: {\n          name: intl.t('tab contents'),\n          draggable: false,\n          droppable: false,\n          copyable: false,\n          removable: false,\n          classes: config.classTabContents,\n          traits: [],\n          ...config.tabContentsProps\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs/components/Tabs\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (dc, {\n    typeTab,\n    typeTabContent,\n    typeTabContents,\n    typeTabContainer,\n    style,\n    intl = {\n      t: txt => txt\n    },\n    ...config\n  }) => {\n    const type = config.typeTabs;\n    const script = function (props) {\n      const el = this;\n      const classTabActive = props.classactive;\n      const selectorTab = props.selectortab;\n      const {\n        history,\n        _isEditor\n      } = window;\n      const attrTabindex = 'tabIndex';\n      const attrSelected = 'ariaSelected';\n      const roleTab = '[role=tab]';\n      const roleTabContent = '[role=tabpanel]';\n      const {\n        body,\n        location\n      } = document;\n      const matches = body.matchesSelector || body.webkitMatchesSelector || body.mozMatchesSelector || body.msMatchesSelector;\n      const each = (items, clb) => {\n        const arr = items || [];\n        for (let i = 0; i < arr.length; i++) clb(arr[i], i);\n      };\n      const hideContents = () => {\n        each(el.querySelectorAll(roleTabContent), i => i.hidden = true);\n      };\n      const getTabId = item => item.getAttribute(selectorTab);\n      const qS = (elem, qs) => elem.querySelector(qs);\n      const getAllTabs = () => el.querySelectorAll(roleTab);\n      const upTabIdx = (item, val) => !_isEditor && (item[attrTabindex] = val);\n      const activeTab = tabEl => {\n        each(getAllTabs(), item => {\n          item.className = item.className.replace(classTabActive, '').trim();\n          item[attrSelected] = 'false';\n          upTabIdx(item, '-1');\n        });\n        hideContents();\n        tabEl.className += ' ' + classTabActive;\n        tabEl[attrSelected] = 'true';\n        upTabIdx(tabEl, '0');\n        const tabContentId = getTabId(tabEl);\n        const tabContent = tabContentId && qS(el, `#${tabContentId}`);\n        tabContent && (tabContent.hidden = false);\n      };\n      const getTabByHash = () => {\n        const hashId = (location.hash || '').replace('#', '');\n        const qrStr = att => `${roleTab}[${att}=${hashId}]`;\n        return hashId && qS(el, qrStr(selectorTab));\n      };\n      const getSelectedTab = target => {\n        let found;\n        each(getAllTabs(), item => {\n          if (found) return;\n          if (item.contains(target)) found = item;\n        });\n        return found;\n      };\n      let tabToActive = qS(el, `.${classTabActive}${roleTab}`);\n      tabToActive = tabToActive || getTabByHash() || qS(el, roleTab);\n      tabToActive && activeTab(tabToActive);\n      el.onclick = ev => {\n        let {\n          target\n        } = ev;\n        let found = matches.call(target, roleTab);\n        if (!found) {\n          target = getSelectedTab(target);\n          if (target) found = 1;\n        }\n        if (found && !ev.__trg && target.className.indexOf(classTabActive) < 0) {\n          ev.preventDefault();\n          ev.__trg = 1;\n          activeTab(target);\n          const id = getTabId(target);\n          try {\n            history && history.pushState(null, null, `#${id}`);\n          } catch (e) {}\n        }\n      };\n    };\n    const defTabs = [1, 2, 3].map(i => ({\n      type: typeTab\n    }));\n    const traits = [{\n      full: 1,\n      type: 'button',\n      label: false,\n      text: intl.t('add tab'),\n      command: ed => {\n        const sel = ed.getSelected();\n        sel && sel.addTab();\n      }\n    }, {\n      name: 'sticky-top',\n      type: 'checkbox',\n      label: intl.t('sticky top'),\n      value: true\n    }];\n    dc.addType(type, {\n      model: {\n        defaults: {\n          'sticky-top': 'true',\n          name: intl.t('tabs'),\n          classes: ['bigordr-tabs'],\n          classactive: config.classTabActive,\n          selectortab: config.selectorTab,\n          'script-props': ['classactive', 'selectortab'],\n          script,\n          traits: [],\n          draggable: '.bigordr-cell, [data-gjs-type=\\'wrapper\\']',\n          droppable: '.bigordr-cell, [data-gjs-type=\\'wrapper\\']',\n          components: [{\n            type: typeTabContainer,\n            components: defTabs\n          }, {\n            type: typeTabContents\n          }],\n          ...config.tabsProps\n        },\n        init() {\n          this.findTabs().map(this.__onTab);\n          this.listenTo(this.getTabContainerType().components(), 'add', this.__onTab);\n          this.on('change:attributes:sticky-top', this.toggleStickyTop);\n        },\n        __onTab(tab, v, opts = {}) {\n          !opts.avoidStore && !opts.temporary && tab.__initTab && tab.__initTab();\n        },\n        getTabContainerType() {\n          return this.findType(typeTabContainer)[0];\n        },\n        getContentsType() {\n          return this.findType(typeTabContents)[0] || this;\n        },\n        findTabs() {\n          return this.findType(typeTab);\n        },\n        findContents() {\n          return this.findType(typeTabContent);\n        },\n        addTab(content) {\n          const cnt = this.getTabContainerType();\n          cnt.append({\n            type: typeTab,\n            components: content\n          });\n        },\n        toggleStickyTop(component, toggleValue) {\n          const result = component.findType('tab-container');\n          const stickyTopClassName = 'bigordr-tab-container__sticky-tabs';\n          if (result) {\n            const tabContainer = result[0];\n            if (toggleValue) {\n              tabContainer.addClass(stickyTopClassName);\n            } else {\n              tabContainer.removeClass(stickyTopClassName);\n            }\n          }\n        }\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs/components/index\", [\"exports\", \"client/pods/grapesjs/plugins/tabs/components/Tab\", \"client/pods/grapesjs/plugins/tabs/components/Tabs\", \"client/pods/grapesjs/plugins/tabs/components/TabContent\", \"client/pods/grapesjs/plugins/tabs/components/TabContents\", \"client/pods/grapesjs/plugins/tabs/components/TabContainer\", \"ramda\"], function (_exports, _Tab, _Tabs, _TabContent, _TabContents, _TabContainer, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (editor, config = {}) => {\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', 'tabs'])(editor);\n    const dc = editor.DomComponents;\n    const opts = {\n      ...options,\n      ...config,\n      defaultModel: dc.getType('default').model,\n      editor\n    };\n    [_Tab.default, _Tabs.default, _TabContent.default, _TabContents.default, _TabContainer.default].map(c => c(dc, opts));\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs/index\", [\"exports\", \"client/pods/grapesjs/plugins/tabs/components/index\", \"client/pods/grapesjs/plugins/tabs/blocks\", \"client/pods/grapesjs/plugins/tabs/options\", \"ramda\"], function (_exports, _index, _blocks, _options, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: index\n   * @author Nafis Rubio\n   * @since 27/03/2021\n   * @copyright (C) 2021 BigOrdr\n   * @description: $DESCRIPTION$\n   */\n  var _default = editor => {\n    const customOptions = R.pathOr({}, ['Config', 'pluginsOpts', 'bigordr-tabs'])(editor);\n    const defOptions = (0, _options.default)(customOptions);\n    const options = {\n      ...defOptions,\n      ...customOptions\n    };\n\n    // Add components\n    (0, _index.default)(editor, options);\n\n    // Add blocks\n    (0, _blocks.default)(editor, options);\n    editor.on('component:remove', component => {\n      if (component?.is('tabs')) {\n        component.set('removeAll', true);\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/tabs/options\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = ({\n    intl = {\n      t: txt => txt\n    }\n  }) => ({\n    // Object to extend the default tabs block, eg. `{ label: 'Tabs', attributes: { ... } }`\n    // Pass a falsy value to avoid adding the block\n    tabsBlock: {},\n    // Object to extend the default tabs properties, eg. `{ name: 'My Tabs', droppable: false, ... }`\n    tabsProps: {},\n    // Object to extend the default tab container properties\n    tabContainerProps: {},\n    // Object to extend the default tab properties\n    tabProps: {},\n    // Object to extend the default tab content properties\n    tabContentProps: {},\n    // Object to extend the default tab contents properties\n    tabContentsProps: {},\n    // Default class to use on tab\n    classTab: 'bigordr-tab',\n    // Default class to use on tab container\n    classTabContainer: ['bigordr-tab-container', 'bigordr-tab-container__sticky-tabs'],\n    // Class used on tabs when active\n    classTabActive: 'bigordr-tab-active',\n    // Default class to use on tab content\n    classTabContent: 'bigordr-tab-content',\n    // Default class to use on tab contents\n    classTabContents: 'bigordr-tab-contents',\n    // The attribute used inside tabs as a selector for tab contents\n    selectorTab: 'aria-controls',\n    // Tabs component id\n    typeTabs: 'tabs',\n    // TabContainer component id\n    typeTabContainer: 'tab-container',\n    // Tab component id\n    typeTab: 'tab',\n    // TabContent component id\n    typeTabContent: 'tab-content',\n    // TabContents component id\n    typeTabContents: 'tab-contents',\n    // Default template for new tabs\n    templateTab: () => ({\n      type: 'text',\n      tagName: 'span',\n      draggable: false,\n      content: intl.t('tab name')\n    }),\n    // Default template for new tab contents\n    templateTabContent: () => [{\n      type: 'row',\n      draggable: false\n    }],\n    intl: {\n      t: txt => txt\n    }\n  });\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/text\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: grid\n   * @author Nafis Rubio\n   * @since 19/09/2020\n   * @copyright (C) 2020 BigOrdr\n   * @description: Grid component\n   */\n\n  const margin0 = 'margin-0';\n  /**\n   * @typedef {import(\"../categories\").Categories}\n   */\n  var _default = editor => {\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const pluginName = 'text';\n    const textBlock = 'text-block';\n    const textBlockWithSubHeader = 'text-block-with-subtitle';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', pluginName])(editor);\n    const {\n      intl,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const blockLabel = intl.t(pluginName);\n    const textBlockLabel = intl.t(textBlock);\n    const blockLabelId = `${blockLabel}-id`;\n    const textBlockLabelId = `${textBlockLabel}-id`;\n    const textBlockWithSubHeaderLabel = intl.t(textBlockWithSubHeader);\n    const textBlockWithSubHeaderId = `${textBlockWithSubHeaderLabel}-id`;\n    const textSample = intl.t('gjs-Insert your text here');\n\n    // After saving it will show this\n    DomComponents.addType(pluginName, {\n      extend: 'text',\n      model: {\n        defaults: {\n          style: {\n            padding: '10px'\n          },\n          name: blockLabel,\n          content: textSample,\n          draggable: '.bigordr-cell, [data-gjs-type=\"link\"], section',\n          traits: [{\n            type: 'bigordr-animation-text-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }],\n          classes: [margin0]\n        }\n      },\n      view: {\n        onRender({\n          model /* , editor, el */\n        }) {\n          // add id as class name. so, style can be added to a specific text\n          const className = `id-${model.getId()}`;\n          model.addClass(className);\n        }\n      }\n    });\n    BlockManager.add(blockLabelId, {\n      label: blockLabel,\n      category: categories.basic,\n      content: {\n        type: pluginName\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n      <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n        <g transform='matrix(1,0,0,1,49.9262,39.6375)'>\n            <g transform='matrix(1,0,0,1,-34.9989,-70.467)'>\n                <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:15px;'/>\n            </g>\n            <g transform='matrix(1,0,0,1,-57.9517,-98.8077)'>\n                <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n            </g>\n            <g transform='matrix(1,0,0,1,-644.609,-98.8077)'>\n                <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n            </g>\n            <g transform='matrix(1,0,0,1,-644.609,-685.465)'>\n                <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n            </g>\n            <g transform='matrix(1,0,0,1,-57.9517,-685.465)'>\n                <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n            </g>\n            <g transform='matrix(0.715811,0,0,0.676173,154.154,151.358)'>\n                <g transform='matrix(551.145,0,0,551.145,260.627,673.073)'>\n                    <path d='M0.599,-0.72L0.599,-0.592L0.384,-0.592L0.384,0L0.232,0L0.232,-0.592L0.016,-0.592L0.016,-0.72L0.599,-0.72Z' style='fill-rule:nonzero;'/>\n                </g>\n            </g>\n        </g>\n      </svg>\n      <div class=\"block-label\">${model.get('label')}</div>\n      </div>`\n    });\n\n    // This block here only shows when onCreate\n    BlockManager.add(textBlockLabelId, {\n      label: textBlockLabel,\n      category: categories.basic,\n      content: {\n        draggable: '.cell, .bigordr-cell, [data-gjs-type=\"link\"]',\n        tagName: 'section',\n        name: textBlockLabel,\n        style: {\n          padding: '10px'\n        },\n        components: [{\n          type: 'text',\n          name: intl.t('title'),\n          classes: ['bigordr-title', margin0],\n          traits: [{\n            type: 'bigordr-animation-text-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }]\n        }, {\n          type: 'text',\n          style: {\n            padding: 0\n          },\n          content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua',\n          traits: [{\n            type: 'bigordr-animation-text-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }],\n          classes: [margin0]\n        }],\n        traits: []\n      },\n      render: ({\n        model\n      }) => `\n      <svg width='100%' height='100%' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;'>\n        <g transform='matrix(1,0,0,1,49.9262,39.6375)'>\n            <g transform='matrix(1,0,0,1,-34.9989,-70.467)'>\n                <rect x='203.744' y='249.501' width='586.657' height='586.657' style='fill:white;stroke:black;stroke-width:15px;'/>\n            </g>\n            <g transform='matrix(1,0,0,1,-57.9517,-98.8077)'>\n                <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n            </g>\n            <g transform='matrix(1,0,0,1,-644.609,-98.8077)'>\n                <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n            </g>\n            <g transform='matrix(1,0,0,1,-644.609,-685.465)'>\n                <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n            </g>\n            <g transform='matrix(1,0,0,1,-57.9517,-685.465)'>\n                <rect x='765.514' y='816.659' width='95.679' height='95.679'/>\n            </g>\n        </g>\n        <g transform='matrix(0.697024,0,0,0.646383,87.8947,149.831)'>\n            <rect x='301.902' y='349.059' width='385.98' height='98.525'/>\n        </g>\n        <g transform='matrix(1.11832,0,0,1,-62.6481,-73.0593)'>\n            <rect x='322.785' y='550.771' width='382.132' height='25.78'/>\n        </g>\n        <g transform='matrix(1.11832,0,0,1,-62.6481,-21.5278)'>\n            <rect x='322.785' y='550.771' width='382.132' height='25.78'/>\n        </g>\n        <g transform='matrix(1.11832,0,0,1,-62.6481,24.6035)'>\n            <rect x='322.785' y='550.771' width='382.132' height='25.78'/>\n        </g>\n        <g transform='matrix(1.11832,0,0,1,-62.6481,71.9924)'>\n            <rect x='322.785' y='550.771' width='382.132' height='25.78'/>\n        </g>\n      </svg>\n      <div class=\"block-label\">${model.get('label')}</div>`\n    });\n\n    // This block here only shows when onCreate\n    BlockManager.add(textBlockWithSubHeaderId, {\n      label: textBlockWithSubHeaderLabel,\n      category: categories.basic,\n      content: {\n        draggable: '.cell, .bigordr-cell, [data-gjs-type=\"link\"]',\n        tagName: 'section',\n        name: textBlockWithSubHeaderLabel,\n        style: {\n          padding: '10px'\n        },\n        components: [{\n          type: 'text',\n          name: intl.t('title'),\n          classes: ['bigordr-title', margin0],\n          traits: [{\n            type: 'bigordr-animation-text-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }]\n        }, {\n          type: 'text',\n          name: intl.t('subtitle'),\n          classes: ['bigordr-subtitle', margin0],\n          traits: [{\n            type: 'bigordr-animation-text-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }]\n        }, {\n          type: 'text',\n          style: {\n            padding: 0\n          },\n          content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua',\n          traits: [{\n            type: 'bigordr-animation-text-trait',\n            name: 'animationSelector',\n            label: intl.t('select animation')\n          }, {\n            type: 'bigordr-animation-iteration-trait',\n            name: 'animationIterationSelector',\n            label: intl.t('select iteration count')\n          }, {\n            type: 'bigordr-animation-duration-trait',\n            name: 'animationDuration',\n            label: intl.t('enter duration (sec)')\n          }],\n          classes: [margin0]\n        }],\n        traits: []\n      },\n      render: ({\n        model\n      }) => `\n<svg viewBox=\"0 0 1024 1024\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;\" xmlns=\"http://www.w3.org/2000/svg\">\n  <g transform=\"matrix(1, 0, 0, 1, 49.92620086669922, 39.637500762939446)\">\n    <g transform=\"matrix(1,0,0,1,-34.9989,-70.467)\">\n      <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:15px;\"/>\n    </g>\n    <g transform=\"matrix(1,0,0,1,-57.9517,-98.8077)\">\n      <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n    </g>\n    <g transform=\"matrix(1,0,0,1,-644.609,-98.8077)\">\n      <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n    </g>\n    <g transform=\"matrix(1,0,0,1,-644.609,-685.465)\">\n      <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n    </g>\n    <g transform=\"matrix(1,0,0,1,-57.9517,-685.465)\">\n      <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n    </g>\n  </g>\n  <g transform=\"matrix(0.6970241069793701, 0, 0, 0.6463829874992371, 87.89469909667969, 114.01539611816406)\">\n    <rect x=\"301.902\" y=\"349.059\" width=\"385.98\" height=\"98.525\"/>\n  </g>\n  <g transform=\"matrix(1.1183199882507324, 0, 0, 1, -62.648101806640625, -73.05930328369142)\">\n    <rect x=\"322.785\" y=\"550.771\" width=\"382.132\" height=\"25.78\"/>\n  </g>\n  <g transform=\"matrix(1.1183199882507324, 0, 0, 1, -62.648101806640625, -21.527799606323242)\">\n    <rect x=\"322.785\" y=\"550.771\" width=\"382.132\" height=\"25.78\"/>\n  </g>\n  <g transform=\"matrix(1.1183199882507324, 0, 0, 1, -62.648101806640625, 24.603500366210938)\">\n    <rect x=\"322.785\" y=\"550.771\" width=\"382.132\" height=\"25.78\"/>\n  </g>\n  <g transform=\"matrix(1.1183199882507324, 0, 0, 1, -62.648101806640625, 71.99240112304688)\">\n    <rect x=\"322.785\" y=\"550.771\" width=\"382.132\" height=\"25.78\"/>\n  </g>\n  <g transform=\"matrix(0.8832429647445679, 0, 0, 0.4125649929046631, 31.98003387451172, 275.9749755859375)\" style=\"\">\n    <rect x=\"301.902\" y=\"349.059\" width=\"385.98\" height=\"98.525\"/>\n  </g>\n</svg>\n      <div class=\"block-label\">${model.get('label')}</div>`\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/traits/link\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @project: bigordr-app\n   * @file: link\n   * @author Nafis Rubio\n   * @since 11/05/2022\n   * @copyright (C) 2022 BigOrdr\n   * @description: link trait\n   */\n  var _default = editor => {\n    const {\n      TraitManager\n    } = editor;\n    const traitName = 'bigordr-link-trait';\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', traitName])(editor);\n    const {\n      intl,\n      openLinksModal\n    } = options;\n    TraitManager.addType(traitName, {\n      // noLabel: false,\n\n      createLabel(ref = {}) {\n        const label = R.prop('label')(ref) || intl.t('href');\n        return `<div>\n      ${label}\n    </div>`;\n      },\n      // Return a simple HTML string or an HTML element\n      createInput({\n        trait\n      }) {\n        const _options = [{\n          id: '_self',\n          name: intl.t('this window') || 'This window'\n        }, {\n          id: '_blank',\n          name: intl.t('new window') || 'New window'\n        }];\n\n        // Create a new element container add some content\n        const el = document.createElement('div');\n        el.innerHTML = `\n      <style>\n      .bigordr-link-trait {\n        border: 1px solid #838385 !important;\n        margin: 0;\n      }\n      </style>\n      <div class=\"bigordr-link-trait-container u-tappable\">\n        <button class='button'>${intl.t('href')}</button>\n      </div>\n      `;\n        const container = el.querySelector('.bigordr-link-trait-container');\n        container.addEventListener('click', function () {\n          openLinksModal();\n        });\n        return el;\n      }\n    });\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/plugins/video\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // Common video wrapper types\n  const bigordrVideo = 'bigordr-video';\n  const bigordrVideoWrapper = 'bigordr-video-wrapper';\n  const bigordrVideoFullWidth = 'bigordr-video-full-width';\n  const bigordrVideoAlignment = 'bigordr-video-alignment';\n  const bigordrVideoAlignmentWrapper = 'bigordr-video-alignment-wrapper';\n  const bigordrVideoAlignmentWrapperEmpty = 'bigordr-video-alignment-wrapper-empty';\n  const bigordrVideoOuterWrapper = 'bigordr-video-outer-wrapper';\n  const bigordrVideoInnerWrapper = 'bigordr-video-inner-wrapper';\n  const bigordrVideoInnerWrapperEmpty = 'bigordr-video-inner-wrapper-empty';\n  const bigordrVideoOuterWrapperEmpty = 'bigordr-video-outer-wrapper-empty';\n  const bigordrVideoFullWidthOuterWrapper = 'bigordr-video-full-width-outer-wrapper';\n  const bigordrVideoFullWidthInnerWrapper = 'bigordr-video-full-width-inner-wrapper';\n  const bigordrVideoFullWidthOuterWrapperEmpty = 'bigordr-video-full-width-outer-wrapper-empty';\n  const bigordrVideoFullWidthInnerWrapperEmpty = 'bigordr-video-full-width-inner-wrapper-empty';\n  const styles = `\n    <style>\n      .${bigordrVideoInnerWrapper} {\n        position: relative;\n        padding-bottom: 56.25%; /* 16:9 */\n        height: 0;\n      }\n\n      .${bigordrVideoInnerWrapper} > div {\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n      }\n\n      .${bigordrVideoInnerWrapper} > video {\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n      }\n\n      .${bigordrVideoInnerWrapper} > iframe {\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n      }\n    </style>\n  `;\n  const addVideoAlignment = (component, property, value) => {\n    // Flex classes\n    const flexContainerJustifyStart = 'flex-container--justify-start';\n    const flexContainerJustifyCenter = 'flex-container--justify-center';\n    const flexContainerJustifyEnd = 'flex-container--justify-end';\n    if (property === 'text-align' && value) {\n      component.getEl().classList.remove(flexContainerJustifyStart, flexContainerJustifyCenter, flexContainerJustifyEnd);\n      component.removeClass(flexContainerJustifyStart);\n      component.removeClass(flexContainerJustifyCenter);\n      component.removeClass(flexContainerJustifyEnd);\n      switch (value) {\n        case 'right':\n          component.addClass(flexContainerJustifyEnd);\n          break;\n        case 'center':\n          component.addClass(flexContainerJustifyCenter);\n          break;\n        case 'left':\n        default:\n          component.addClass(flexContainerJustifyStart);\n          break;\n      }\n    }\n  };\n  const setupVideoWrappers = ({\n    DomComponents\n  }) => {\n    DomComponents.addType(bigordrVideoWrapper, {\n      model: {\n        defaults: {\n          tagName: 'div',\n          badgable: false,\n          copyable: false,\n          droppable: false,\n          editable: false,\n          highlightable: false,\n          hoverable: true,\n          layerable: true,\n          removable: false,\n          resizable: false,\n          selectable: true,\n          stylable: false\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoAlignment, {\n      extend: bigordrVideoWrapper,\n      model: {\n        defaults: {\n          classes: [bigordrVideoAlignmentWrapper, 'flex-container-row', 'flex-container--justify-center']\n        },\n        updated(property, value) {\n          addVideoAlignment(this, property, value);\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoOuterWrapperEmpty, {\n      extend: bigordrVideoWrapper,\n      model: {\n        defaults: {\n          classes: [bigordrVideoOuterWrapper],\n          draggable: false,\n          style: {\n            'max-width': '640px',\n            width: '100%'\n          },\n          components: [{\n            type: bigordrVideoInnerWrapperEmpty\n          }]\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoInnerWrapperEmpty, {\n      extend: bigordrVideoWrapper,\n      draggable: false,\n      layerable: false,\n      model: {\n        defaults: {\n          classes: [bigordrVideoInnerWrapper]\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoAlignmentWrapperEmpty, {\n      extend: bigordrVideoAlignment,\n      model: {\n        defaults: {\n          components: [{\n            type: bigordrVideoOuterWrapperEmpty\n          }]\n        }\n      }\n    });\n  };\n  const setupVideoPlugin = editor => {\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', bigordrVideo])(editor);\n    const {\n      intl,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const bigordrVideoBlockName = `${bigordrVideo}-block`;\n    const bigordrVideoBlockNameLabel = intl.t('video');\n    const bigordrVideoDraggable = '[data-gjs-type=cell], [data-gjs-type=\"bigordr-video-inner-wrapper\"]';\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    const Component = DomComponents.Component;\n\n    // Video Not Full width\n    DomComponents.addType(bigordrVideo, {\n      extend: 'video',\n      model: {\n        defaults: {\n          resizable: {\n            tc: 0,\n            cl: 0,\n            cr: 0,\n            bc: 0,\n            ratioDefault: 1\n          },\n          draggable: bigordrVideoDraggable,\n          layerable: false,\n          src: 'https://storage.coverr.co/videos/6az802eRbt56ZV5xcVS6016gycP9aEODfG?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjExNDMyN0NEOTRCMUFCMTFERTE3IiwiaWF0IjoxNTg4NTc2NDA3fQ.6EKzfoX_Z6hpvAHStTg1_DE_aYo7zE-F3US_VO9JgeY',\n          toolbar: [{\n            attributes: {\n              class: 'fa fa-arrow-up'\n            },\n            command: 'select-parent'\n          }, {\n            attributes: {\n              class: 'fa fa-arrows'\n            },\n            command: 'tlb-move'\n          }, {\n            attributes: {\n              class: 'fa fa-clone'\n            },\n            command: 'tlb-clone'\n          }, {\n            attributes: {\n              class: 'fa fa-trash'\n            },\n            command(gjsEditor) {\n              const videoModel = gjsEditor.getSelected();\n              const outerWrapper = videoModel.closest(`div.${bigordrVideoAlignmentWrapper}`) || videoModel.closest(`div.${bigordrVideoOuterWrapper}`);\n              if (outerWrapper) {\n                outerWrapper.remove();\n                gjsEditor.selectRemove(videoModel);\n              }\n            }\n          }]\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         */\n        initialize(o, opt) {\n          this.em = opt.em;\n          if (this.get('src')) this.parseFromSrc();\n          this.updateTraits();\n          this.listenTo(this, 'change:provider', this.updateTraits);\n          this.listenTo(this, 'change:videoId change:provider', this.updateSrc);\n\n          // the original code uses ComponentImage as Component,\n          // so also extends the initialize function of that\n          Component.prototype.initialize.apply(this, arguments);\n          const {\n            src\n          } = this.get('attributes');\n          if (src) {\n            this.set('src', src, {\n              silent: 1\n            });\n          }\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Set attributes by src string\n         */\n        parseFromSrc() {\n          var prov = this.get('provider');\n          var uri = this.parseUri(this.get('src'));\n          var qr = uri.query;\n          switch (prov) {\n            case 'yt':\n            case 'ytnc':\n            case 'vi':\n              var videoId = uri.pathname.split('/').pop();\n              this.set('videoId', videoId);\n              qr.list && this.set('list', qr.list);\n              if (qr.autoplay) this.set('autoplay', 1);\n              if (qr.loop) this.set('loop', 1);\n              if (parseInt(qr.controls) === 0) this.set('controls', 0);\n              if (qr.color) this.set('color', qr.color);\n              if (qr.rel === '0') this.set('rel', 0);\n              if (qr.modestbranding === '1') this.set('modestbranding', 1);\n              break;\n            default:\n          }\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Update src on change of video ID\n         * @private\n         */\n        updateSrc() {\n          const prov = this.get('provider');\n          let src = '';\n          switch (prov) {\n            case 'yt':\n              src = this.getYoutubeSrc();\n              break;\n            case 'ytnc':\n              src = this.getYoutubeNoCookieSrc();\n              break;\n            case 'vi':\n              src = this.getVimeoSrc();\n              break;\n          }\n          this.set({\n            src\n          });\n        },\n        init() {\n          this.listenTo(this, 'change:status', this.handlePropChange);\n          this.listenTo(this, 'change:ratio', this.handleRatioChange);\n          this.listenTo(this, 'change:align', this.handlePositionChange);\n        },\n        updated(property /* value, prevValue, model, ...rest */) {\n          if (property === 'provider' || property === 'videoId') {\n            const parent = this.parent().parent();\n            if (parent) {\n              const isVideoOuterWrapper = parent.getClasses().includes(bigordrVideoOuterWrapper);\n              const style = parent.getStyle();\n              if (isVideoOuterWrapper && R.isEmpty(style)) {\n                parent.setStyle({\n                  'max-width': '640px',\n                  width: '100%',\n                  height: 'auto'\n                });\n              }\n            }\n          }\n        },\n        handlePropChange(model, status) {\n          if (this.previousAttributes().status === 'selected' && status === '') {\n            const style = this.getStyle();\n            const hasStyle = R.pipe(R.isEmpty, R.not)(style);\n            if (hasStyle && style && (style.width || style.height)) {\n              const parent = this.closest(`div.${bigordrVideoOuterWrapper}`);\n              if (parent) {\n                const newStyle = R.mergeRight(style, {\n                  'max-width': style.width || '640px',\n                  width: '100%'\n                });\n                this.set('currentStyle', newStyle);\n                parent.setStyle(newStyle);\n                this.setStyle();\n              }\n            }\n          }\n        },\n        handleRatioChange(model, ratio) {\n          const target = model.closest(`div.${bigordrVideoInnerWrapper}`);\n          const id = target.getId();\n          if (id) {\n            const value = ratio || '56.25%';\n            const style = `\n            <style>\n              #${id} {\n                padding-bottom: ${value};\n              }\n            </style>\n          `;\n            target.components().add(style);\n          }\n        },\n        handlePositionChange(model, position) {\n          const target = model.closest(`div.${bigordrVideoAlignmentWrapper}`);\n          const value = position || 'left';\n          addVideoAlignment(target, 'text-align', value);\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Update traits by provider\n         * @private\n         */\n        updateTraits() {\n          const prov = this.get('provider');\n          let tagName = 'iframe';\n          let traits;\n          switch (prov) {\n            case 'yt':\n            case 'ytnc':\n              traits = this.getYoutubeTraits();\n              break;\n            case 'vi':\n              traits = this.getVimeoTraits();\n              break;\n            default:\n              tagName = 'video';\n              traits = this.getSourceTraits();\n          }\n          this.set({\n            tagName\n          }, {\n            silent: 1\n          }); // avoid break in view\n          this.set({\n            traits\n          });\n          this.em.trigger('component:toggled');\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Return traits for the source provider\n         * @return {Array<Object>}\n         * @private\n         */\n        getYoutubeTraits() {\n          return [this.getProviderTrait(), {\n            label: 'Video ID',\n            name: 'videoId',\n            placeholder: 'eg. jNQXAC9IVRw',\n            changeProp: 1\n          }, this.getAutoplayTrait(), this.getLoopTrait(), this.getControlsTrait(), {\n            type: 'checkbox',\n            label: 'Related',\n            name: 'rel',\n            changeProp: 1\n          }, {\n            type: 'checkbox',\n            label: 'Modest',\n            name: 'modestbranding',\n            changeProp: 1\n          }, this.getRatioTrait(), this.getPositionTrait()];\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Return traits for the source provider\n         * @return {Array<Object>}\n         * @private\n         */\n        getVimeoTraits() {\n          return [this.getProviderTrait(), {\n            label: 'Video ID',\n            name: 'videoId',\n            placeholder: 'eg. 123456789',\n            changeProp: 1\n          }, {\n            label: 'Color',\n            name: 'color',\n            placeholder: 'eg. FF0000',\n            changeProp: 1\n          }, this.getAutoplayTrait(), this.getLoopTrait(), this.getRatioTrait(), this.getPositionTrait()];\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Return traits for the source provider\n         * @return {Array<Object>}\n         * @private\n         */\n        getSourceTraits() {\n          return [this.getProviderTrait(), {\n            label: 'Source',\n            name: 'src',\n            placeholder: 'eg. ./media/video.mp4',\n            changeProp: 1\n          }, {\n            label: 'Poster',\n            name: 'poster',\n            placeholder: 'eg. ./media/image.jpg'\n            // changeProp: 1\n          }, this.getAutoplayTrait(), this.getLoopTrait(), this.getControlsTrait(), this.getRatioTrait(), this.getPositionTrait()];\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Return the provider trait\n         * @return {Object}\n         * @private\n         */\n        getProviderTrait() {\n          return {\n            type: 'select',\n            label: 'Provider',\n            name: 'provider',\n            changeProp: 1,\n            options: [{\n              value: 'so',\n              name: 'HTML5 Source'\n            }, {\n              value: 'yt',\n              name: 'Youtube'\n            }, {\n              value: 'ytnc',\n              name: 'Youtube (no cookie)'\n            }, {\n              value: 'vi',\n              name: 'Vimeo'\n            }]\n          };\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Return object trait\n         * @return {Object}\n         * @private\n         */\n        getAutoplayTrait() {\n          return {\n            type: 'checkbox',\n            label: 'Autoplay',\n            name: 'autoplay',\n            changeProp: 1\n          };\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Return object trait\n         * @return {Object}\n         * @private\n         */\n        getLoopTrait() {\n          return {\n            type: 'checkbox',\n            label: 'Loop',\n            name: 'loop',\n            changeProp: 1\n          };\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Return object trait\n         * @return {Object}\n         * @private\n         */\n        getControlsTrait() {\n          return {\n            type: 'checkbox',\n            label: 'Controls',\n            name: 'controls',\n            changeProp: 1\n          };\n        },\n        getRatioTrait() {\n          return {\n            type: 'select',\n            label: intl.t('gjs_video ratio'),\n            name: 'ratio',\n            changeProp: 1,\n            default: '56.25%',\n            options: [{\n              name: intl.t('gjs_portrait'),\n              value: '177.78%'\n            }, {\n              name: intl.t('gjs_landscape'),\n              value: '56.25%'\n            }]\n          };\n        },\n        getPositionTrait() {\n          return {\n            type: 'select',\n            label: intl.t('gjs-Position'),\n            name: 'align',\n            changeProp: 1,\n            default: 'center',\n            options: [{\n              name: intl.t('gjs-Left'),\n              value: 'left'\n            }, {\n              name: intl.t('gjs-Center'),\n              value: 'center'\n            }, {\n              name: intl.t('gjs-Right'),\n              value: 'right'\n            }]\n          };\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Returns url to youtube video\n         * @return {string}\n         * @private\n         */\n        getYoutubeSrc() {\n          const id = this.get('videoId');\n          let url = this.get('ytUrl');\n          const list = this.get('list');\n          url += id + (id.indexOf('?') < 0 ? '?' : '');\n          url += list ? `&list=${list}` : '';\n          url += this.get('autoplay') ? '&autoplay=1&mute=1' : '';\n          url += !this.get('controls') ? '&controls=0&showinfo=0' : '';\n          // Loop works only with playlist enabled\n          // https://stackoverflow.com/questions/25779966/youtube-iframe-loop-doesnt-work\n          url += this.get('loop') ? `&loop=1&playlist=${id}` : '';\n          url += this.get('rel') ? '' : '&rel=0';\n          url += this.get('modestbranding') ? '&modestbranding=1' : '';\n          return url;\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Returns url to youtube no cookie video\n         * @return {string}\n         * @private\n         */\n        getYoutubeNoCookieSrc() {\n          let url = this.getYoutubeSrc();\n          url = url.replace(this.get('ytUrl'), this.get('ytncUrl'));\n          return url;\n        },\n        /**\n         * From grapesjs, see: https://github.com/artf/grapesjs/blob/v0.18.4/src/dom_components/model/ComponentVideo.js\n         * Returns url to vimeo video\n         * @return {string}\n         * @private\n         */\n        getVimeoSrc() {\n          var url = this.get('viUrl');\n          url += this.get('videoId') + '?';\n          url += this.get('autoplay') ? '&autoplay=1&muted=1' : '';\n          url += this.get('loop') ? '&loop=1' : '';\n          url += !this.get('controls') ? '&title=0&portrait=0&badge=0' : '';\n          url += this.get('color') ? '&color=' + this.get('color') : '';\n          return url;\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoAlignmentWrapper, {\n      extend: bigordrVideoAlignment,\n      model: {\n        defaults: {\n          name: intl.t('video'),\n          components: [{\n            type: bigordrVideoOuterWrapper\n          }]\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoOuterWrapper, {\n      extend: bigordrVideoWrapper,\n      model: {\n        defaults: {\n          classes: [bigordrVideoOuterWrapper],\n          draggable: false,\n          layerable: false,\n          style: {\n            'max-width': '640px',\n            width: '100%'\n          },\n          components: [{\n            type: bigordrVideoInnerWrapper\n          }]\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoInnerWrapper, {\n      extend: bigordrVideoWrapper,\n      model: {\n        defaults: {\n          classes: [bigordrVideoInnerWrapper],\n          draggable: false,\n          layerable: false,\n          components: [{\n            type: bigordrVideo,\n            draggable: false,\n            layerable: false\n          }]\n        }\n      }\n    });\n    BlockManager.add(bigordrVideoBlockName, {\n      label: bigordrVideoBlockNameLabel,\n      category: categories.basic,\n      content: {\n        draggable: bigordrVideoDraggable,\n        type: bigordrVideoAlignmentWrapper,\n        content: styles\n      },\n      render: ({\n        model\n      }) => `\n    <div class=\"gjs-block__media\">\n      <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;\">\n        <g transform=\"matrix(0.93504,0,0,1,11.876,4.1044)\">\n            <g>\n                <g transform=\"matrix(1.07796,0,0,0.792537,-0.957412,77.683)\">\n                    <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:38.6px;\"/>\n                </g>\n                <g transform=\"matrix(1,0,0,1,-5.38389,172.379)\">\n                    <g transform=\"matrix(0.512261,0,0,0.512261,245.802,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,-120.793,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,1.40527,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,123.603,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,368,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                </g>\n                <g transform=\"matrix(1,0,0,1,-5.38389,501.655)\">\n                    <g transform=\"matrix(0.512261,0,0,0.512261,245.802,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,-120.793,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,1.40527,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,123.603,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,368,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                </g>\n                <g transform=\"matrix(3.66112e-17,0.597907,-0.761557,4.66319e-17,922.089,134.831)\">\n                    <path d=\"M623.951,431.185L751.048,585.73L496.854,585.73L623.951,431.185Z\"/>\n                </g>\n            </g>\n        </g>\n      </svg>\n      <div class=\"block-label\">${model.get('label')}</div>\n      </div>\n    `\n    });\n  };\n  const setupVideoFullWidthPlugin = editor => {\n    const options = R.pathOr({}, ['Config', 'pluginsOpts', bigordrVideoFullWidth])(editor);\n    const {\n      intl,\n      /** @type {Categories} */\n      categories\n    } = options;\n    const bigordrVideoFullWidthBlockName = `${bigordrVideoFullWidth}-block`;\n    const bigordrVideoFullWidthBlockLabel = intl.t('full width video');\n    const {\n      DomComponents,\n      BlockManager\n    } = editor;\n    // Full width video wrapper\n    DomComponents.addType(bigordrVideoFullWidth, {\n      extend: bigordrVideo,\n      model: {\n        defaults: {\n          resizable: false,\n          draggable: true,\n          src: 'https://storage.coverr.co/videos/UdqLtOWUabcGdhChsop7F02bh02xpjQQ7G?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjExNDMyN0NEOTRCMUFCMTFERTE3IiwiaWF0IjoxNTg4NTcwMjc4fQ.uYn4qPOJtFEIbCNzX4Wt-mChpeJBquO-JD2047wi18M'\n        },\n        init() {\n          // required to override the hooks in video component\n          this.listenTo(this, 'change:ratio', this.handleRatioChange);\n        },\n        updated(/* property, value, prevValue, model, ...rest */\n        ) {\n          // required to override the hooks in video component\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoFullWidthOuterWrapper, {\n      extend: bigordrVideoWrapper,\n      model: {\n        defaults: {\n          name: intl.t('full width video'),\n          classes: [bigordrVideoOuterWrapper],\n          components: [{\n            type: bigordrVideoFullWidthInnerWrapper\n          }]\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoFullWidthInnerWrapper, {\n      extend: bigordrVideoWrapper,\n      model: {\n        defaults: {\n          draggable: false,\n          layerable: false,\n          classes: [bigordrVideoInnerWrapper],\n          components: [{\n            type: bigordrVideoFullWidth,\n            draggable: false,\n            layerable: false\n          }]\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoFullWidthOuterWrapperEmpty, {\n      extend: bigordrVideoWrapper,\n      model: {\n        defaults: {\n          classes: [bigordrVideoOuterWrapper],\n          components: [{\n            type: bigordrVideoFullWidthInnerWrapperEmpty\n          }]\n        }\n      }\n    });\n    DomComponents.addType(bigordrVideoFullWidthInnerWrapperEmpty, {\n      extend: bigordrVideoWrapper,\n      model: {\n        defaults: {\n          classes: [bigordrVideoInnerWrapper]\n        }\n      }\n    });\n    BlockManager.add(bigordrVideoFullWidthBlockName, {\n      label: bigordrVideoFullWidthBlockLabel,\n      category: categories.basic,\n      content: {\n        type: bigordrVideoFullWidthOuterWrapper,\n        content: styles\n      },\n      render: ({\n        model\n      }) => `\n      <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" xmlns:serif=\"http://www.serif.com/\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;\">\n        <g transform=\"matrix(1,0,0,1,-6.60663,-9.09495e-13)\">\n            <g transform=\"matrix(1.37733,0,0,1.65228,-180.565,-864.206)\">\n                <path d=\"M207.809,832.911L800.909,832.911\" style=\"fill:none;stroke:black;stroke-width:29.59px;\"/>\n            </g>\n            <g transform=\"matrix(1,0,0,1,118.44,399.43)\">\n                <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;\"/>\n                </g>\n                <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;\"/>\n                </g>\n            </g>\n            <g transform=\"matrix(-1,-1.22465e-16,1.22465e-16,-1,918.773,624.57)\">\n                <g transform=\"matrix(0.0811978,0.0811978,-0.0650785,0.0650785,826.292,-8.88271)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;\"/>\n                </g>\n                <g transform=\"matrix(-0.0811978,0.0811978,-0.0650785,-0.0650785,910.413,149.901)\">\n                    <path d=\"M207.809,832.911L828.197,832.911\" style=\"fill:none;stroke:black;stroke-width:432.45px;stroke-linecap:square;\"/>\n                </g>\n            </g>\n        </g>\n        <g transform=\"matrix(0.93504,0,0,1,11.876,4.1044)\">\n            <g>\n                <g transform=\"matrix(1.07796,0,0,0.792537,-0.957412,77.683)\">\n                    <rect x=\"203.744\" y=\"249.501\" width=\"586.657\" height=\"586.657\" style=\"fill:white;stroke:black;stroke-width:38.6px;stroke-linecap:square;stroke-linejoin:miter;\"/>\n                </g>\n                <g transform=\"matrix(1,0,0,1,-5.38389,172.379)\">\n                    <g transform=\"matrix(0.512261,0,0,0.512261,245.802,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,-120.793,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,1.40527,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,123.603,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,368,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                </g>\n                <g transform=\"matrix(1,0,0,1,-5.38389,501.655)\">\n                    <g transform=\"matrix(0.512261,0,0,0.512261,245.802,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,-120.793,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,1.40527,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,123.603,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                    <g transform=\"matrix(0.512261,0,0,0.512261,368,-272.972)\">\n                        <rect x=\"765.514\" y=\"816.659\" width=\"95.679\" height=\"95.679\"/>\n                    </g>\n                </g>\n                <g transform=\"matrix(3.66112e-17,0.597907,-0.761557,4.66319e-17,922.089,134.831)\">\n                    <path d=\"M623.951,431.185L751.048,585.73L496.854,585.73L623.951,431.185Z\"/>\n                </g>\n            </g>\n        </g>\n      </svg>\n      <div class=\"block-label\">${model.get('label')}</div>\n`\n    });\n  };\n  const removeVideoWrapperFn = R.curry((outerWrapper, ended) => {\n    if (ended) {\n      outerWrapper.remove();\n    }\n  });\n  const addEvents = editor => {\n    let removeVideoWrapper;\n    editor.on('sorter:drag:start', (componentEl, componentModel) => {\n      if (componentModel && componentModel.closest && componentModel.is) {\n        removeVideoWrapper = removeVideoWrapperFn(componentModel);\n        let outerWrapper;\n        if (componentModel.is(bigordrVideoFullWidth)) {\n          outerWrapper = componentModel.closest(`div.${bigordrVideoOuterWrapper}`);\n        } else {\n          outerWrapper = componentModel.closest(`div.${bigordrVideoAlignmentWrapper}`);\n        }\n        removeVideoWrapper = removeVideoWrapperFn(outerWrapper);\n      }\n    });\n    editor.on('sorter:drag:end', ({\n      modelToDrop,\n      validResult /* dst, srcEl, targetCollection, warns */\n    }) => {\n      if (modelToDrop && modelToDrop.is && (modelToDrop.is(bigordrVideoFullWidth) || modelToDrop.is(bigordrVideo))) {\n        if (removeVideoWrapper) {\n          removeVideoWrapper(true);\n        }\n        if (modelToDrop.is(bigordrVideoFullWidth)) {\n          // Add and empty video wrapper\n          const videoWrapperOuter = validResult.trgModel.components().find(modelToDrop).replaceWith({\n            type: bigordrVideoFullWidthOuterWrapperEmpty\n          });\n          const videoWrapperInner = videoWrapperOuter.components().findWhere({\n            type: bigordrVideoFullWidthInnerWrapperEmpty\n          });\n          videoWrapperInner.append(modelToDrop);\n          return;\n        }\n\n        // Add and empty video wrapper\n        const videoAlignmentWrapperEmpty = validResult.trgModel.components().find(modelToDrop).replaceWith({\n          type: bigordrVideoAlignmentWrapperEmpty\n        });\n        const videoWrapperOuter = videoAlignmentWrapperEmpty.components().findWhere({\n          type: bigordrVideoOuterWrapperEmpty\n        });\n        const videoWrapperInner = videoWrapperOuter.components().findWhere({\n          type: bigordrVideoInnerWrapperEmpty\n        });\n        const targetStyle = validResult.trgModel.getStyle();\n        const value = R.values(targetStyle)[0];\n        const key = R.keys(targetStyle)[0];\n        addVideoAlignment(videoAlignmentWrapperEmpty, key, value);\n        videoWrapperInner.append(modelToDrop);\n        const currentStyle = modelToDrop.get('currentStyle');\n        if (currentStyle) {\n          modelToDrop.parent().parent().setStyle(currentStyle);\n        }\n      }\n    });\n    editor.on('component:remove', component => {\n      const hasChangeProvider = R.hasPath(['changed', 'provider'])(component);\n      if (component && component.is && (component.is(bigordrVideoFullWidth) || component.is(bigordrVideo)) && !hasChangeProvider) {\n        let outerWrapper;\n        let isOuterWrapperClassName;\n        if (component.is(bigordrVideoFullWidth)) {\n          outerWrapper = component.parent().parent();\n          isOuterWrapperClassName = bigordrVideoOuterWrapper;\n        } else {\n          outerWrapper = component.parent().parent().parent();\n          isOuterWrapperClassName = bigordrVideoAlignmentWrapper;\n        }\n        if (!outerWrapper) {\n          return;\n        }\n        const isOuterWrapper = outerWrapper.getClasses().includes(isOuterWrapperClassName);\n        const hasChildren = outerWrapper.getEl().children.length >= 1;\n        if (outerWrapper && hasChildren && isOuterWrapper) {\n          outerWrapper.remove();\n        }\n      }\n    });\n  };\n  var _default = editor => {\n    // Video wrappers has to be added before the plugins\n    setupVideoWrappers(editor);\n    setupVideoPlugin(editor);\n    setupVideoFullWidthPlugin(editor);\n\n    // Video Events\n    addEvents(editor);\n  };\n  _exports.default = _default;\n});","define(\"client/pods/grapesjs/schedules/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/grapesjs/schedules/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/grapesjs/schedules/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, _ramdaAdjunct) {\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    defaults() {\n      return {\n        status: 'active',\n        schedules: [],\n        applytoall: false\n      };\n    },\n    populate(data, attrs) {\n      data = this._transform(data);\n      data.schedules = this._transformSchedules(data);\n      this._super(data, attrs);\n    },\n    _transform({\n      status,\n      schedules = [],\n      applytoall\n    }) {\n      if (status) {\n        this.setData('status', status);\n      }\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(schedules)) {\n        this.setData('schedules', schedules);\n      }\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(applytoall)) {\n        this.setData('applytoall', applytoall);\n      }\n      return this._data;\n    },\n    _transformSchedules(data) {\n      const schedules = R.propOr([], 'schedules')(data);\n      return R.map(schedule => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'grapesjs/schedules/schedules',\n          data: schedule\n        });\n      })(schedules);\n    },\n    addSchedule(schedule = {}) {\n      const schedules = this.getData('schedules') || [];\n      const scheduleModel = this.dataManager.setAsRecord({\n        adapterName: 'grapesjs/schedules/schedules',\n        data: schedule\n      });\n      schedules.pushObject(scheduleModel);\n      this.setData('schedules', schedules);\n    },\n    statusClass: Ember.computed('_data.status', function () {\n      const status = this.getData('status');\n      if (status === this.constants.status.active) {\n        return 'is-primary';\n      }\n      return 'is-danger';\n    }),\n    checkOverlapDate({\n      model\n    }) {\n      const schedules = model.getData('schedules') || [];\n      const emptyStartDateZSchedules = R.filter(R.pathEq(['_data', 'dateStartZ'], ''))(schedules);\n      if (R.length(emptyStartDateZSchedules) > 1) {\n        return {\n          hasOverlap: true,\n          ids: R.pipe(R.pluck('_data'), R.pluck('scheduleId'))(emptyStartDateZSchedules)\n        };\n      }\n      const emptyDateEndZSchedules = R.filter(R.pathEq(['_data', 'dateEndZ'], ''))(schedules);\n      if (R.length(emptyDateEndZSchedules) > 1) {\n        return {\n          hasOverlap: true,\n          ids: R.pipe(R.pluck('_data'), R.pluck('scheduleId'))(emptyDateEndZSchedules)\n        };\n      }\n      const emptyStartDateZSchedule = R.head(emptyStartDateZSchedules) || {};\n      const emptyDateEndZSchedule = R.head(emptyDateEndZSchedules) || {};\n      const scheduleWithoutEmptyDate = R.reject(R.anyPass([R.pathEq(['_data', 'startDateZ'], ''), R.pathEq(['_data', 'dateEndZ'], '')]))(schedules);\n      const overlappedIds = [];\n      const hasOverlap = R.pipe(R.sortBy(R.path(['_data', 'dateEndZ'])), R.sortBy(R.path(['_data', 'dateStartZ'])), R.prepend(emptyStartDateZSchedule), R.append(emptyDateEndZSchedule), R.reject(_ramdaAdjunct.default.isNilOrEmpty), _ramdaAdjunct.default.mapIndexed((data, i, sortedDatas) => {\n        const dateEndZ = data.getData('dateEndZ') || '';\n        let nextDateStartZ = '';\n        const nextData = sortedDatas[i + 1];\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(nextData)) {\n          nextDateStartZ = nextData.getData('dateStartZ');\n          if (nextDateStartZ <= dateEndZ) {\n            overlappedIds.push(data.getData('scheduleId'));\n            overlappedIds.push(nextData.getData('scheduleId'));\n            return true;\n          }\n        }\n        return false;\n      }), R.includes(true))(scheduleWithoutEmptyDate);\n      return {\n        hasOverlap,\n        ids: R.uniq(overlappedIds)\n      };\n    }\n  });\n});","define(\"client/pods/grapesjs/schedules/schedules/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/grapesjs/schedules/schedules/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/grapesjs/schedules/schedules/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        scheduleId: '',\n        dateStartZ: '',\n        dateEndZ: '',\n        status: 'active'\n      };\n    },\n    populate(data, attrs) {\n      attrs.startHours = '00';\n      attrs.startMinutes = '00';\n      attrs.endHours = '00';\n      attrs.endMinutes = '00';\n      this._super(data, attrs);\n    },\n    isActive: Ember.computed('_data.{dateStartZ,dateEndZ}', function () {\n      const nowZ = this.getNowZ();\n      const dateStartZ = this.getData('dateStartZ');\n      const dateEndZ = this.getData('dateEndZ');\n      if (dateStartZ && !dateEndZ && dateStartZ <= nowZ) {\n        return true;\n      }\n      if (dateEndZ && !dateStartZ && dateEndZ >= nowZ) {\n        return true;\n      }\n      if (dateStartZ <= nowZ && dateEndZ >= nowZ) {\n        return true;\n      }\n      return false;\n    }),\n    isActiveNext: Ember.computed('_data.{dateStartZ,dateEndZ}', function () {\n      const todayZ = this.getNowZ();\n      const dateStartZ = this.getData('dateStartZ');\n      if (dateStartZ > todayZ) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/grapesjs/service\", [\"exports\", \"handlebars/dist/handlebars\", \"client/pods/grapesjs/plugins/banner\", \"client/pods/grapesjs/plugins/blocks\", \"client/pods/grapesjs/plugins/button\", \"client/pods/grapesjs/categories\", \"client/pods/grapesjs/plugins/cell\", \"client/pods/grapesjs/plugins/full-width-image\", \"client/pods/grapesjs/plugins/image\", \"client/pods/grapesjs/plugins/non-editable\", \"client/pods/grapesjs/plugins/panels\", \"client/pods/grapesjs/plugins/product\", \"client/pods/grapesjs/plugins/products\", \"client/pods/grapesjs/plugins/row\", \"client/pods/grapesjs/plugins/slider\", \"client/pods/grapesjs/plugins/strip\", \"client/pods/grapesjs/plugins/video\", \"client/pods/grapesjs/plugins/grid\", \"client/pods/grapesjs/plugins/double-row\", \"client/pods/grapesjs/plugins/form\", \"client/pods/grapesjs/plugins/text\", \"client/pods/grapesjs/plugins/tabs\", \"client/pods/grapesjs/plugins/background-fixed\", \"client/pods/grapesjs/plugins/blogs\", \"client/pods/grapesjs/plugins/animation-trait\", \"client/pods/grapesjs/plugins/traits/link\", \"client/pods/grapesjs/plugins/tabs-with-header\", \"client/pods/grapesjs/plugins/picture\", \"client/pods/grapesjs/plugins/picture-layer-container\", \"client/pods/grapesjs/plugins/ckeditor\", \"client/pods/grapesjs/plugins/slider-native\", \"client/pods/grapesjs/plugins/sessionStorage\", \"client/pods/grapesjs/plugins/scratch-card\", \"client/pods/grapesjs/plugins/stories\", \"ramda\", \"ramda-adjunct\", \"client/config/environment\"], function (_exports, _handlebars, _banner, _blocks, _button, _categories, _cell, _fullWidthImage, _image, _nonEditable, _panels, _product, _products, _row, _slider, _strip, _video, _grid, _doubleRow, _form, _text, _tabs, _backgroundFixed, _blogs, _animationTrait, _link, _tabsWithHeader, _picture, _pictureLayerContainer, _ckeditor, _sliderNative, _sessionStorage, _scratchCard, _stories, R, RA, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* global grapesjs, store, CKEDITOR */\n\n  // import customCodePlugin from 'grapesjs-custom-code'\n\n  const isCKEditorLoaded = R.pipe(R.prop('CKEDITOR'), RA.isNotNilOrEmpty)(window);\n  if (isCKEditorLoaded) {\n    window.CKEDITOR = R.pipe(R.prop('CKEDITOR'), R.set(R.lensPath(['dtd', '$editable', 'span']), 1), R.set(R.lensPath(['dtd', '$editable', 'a']), 1))(window);\n  }\n  const genBtnStyles = website => {\n    const cssBtnThemes = R.pipe(R.pathOr([], ['colors']), R.filter(R.pipe(R.propOr('', 'key'), R.test(/^themeButton/))), R.groupBy(theme => {\n      const {\n        key = ''\n      } = theme;\n      return key.includes('3') ? 'button3' : key.includes('2') ? 'button2' : 'button';\n    }), R.map(R.map(R.values)), R.map(R.map(R.over(R.lensIndex(0), R.replace(/\\d/, '')))), R.map(R.fromPairs), R.mapObjIndexed(btnStyles => {\n      if (!btnStyles.themeButtonBorderRadius) {\n        btnStyles.themeButtonBorderRadius = '20px';\n      }\n      return btnStyles;\n    }))(website);\n    const cssTemplate = _handlebars.default.compile(`\n  {{#each this.cssBtnThemes as |btnTheme index|}}\n   .{{index}} {\n      border: 1px solid {{btnTheme.themeButtonBorderColor}} !important;\n      background-color: {{btnTheme.themeButtonColor}} !important;\n      color: {{btnTheme.themeButtonTextColor}} !important;\n      border-radius: {{btnTheme.themeButtonBorderRadius}} !important;\n  }\n\n   .{{index}}:hover {\n      background-color: {{btnTheme.themeButtonHoverColor}} !important;\n  }\n{{/each}}\n      `);\n    return cssTemplate({\n      cssBtnThemes\n    });\n  };\n  const create = (id = 'gjs', storagePrefix, intl, opts = {}, btnStyles = '') => {\n    const categories = (0, _categories.default)(intl);\n    const plugins = R.pipe(R.propOr([], 'plugins'), R.concat([_sessionStorage.default, _ckeditor.default, _link.default, _animationTrait.default, _row.default, _cell.default, 'gjs-preset-webpage', _panels.default, _text.default, _blocks.default, _fullWidthImage.default, _video.default, _slider.default, _button.default, _nonEditable.default, _image.default, _product.default, _products.default, _blogs.default, _pictureLayerContainer.default, _banner.default, _strip.default, _grid.default, _doubleRow.default, _tabs.default, _tabsWithHeader.default, _picture.default, _sliderNative.default, _scratchCard.default, _backgroundFixed.default, _stories.default, _form.default, 'grapesjs-custom-code']))(opts);\n    delete opts.details;\n\n    // language=CSS\n    let baseCss = `\n      * {\n          box-sizing: border-box;\n      }\n\n      html, body, [data-gjs-type=wrapper] {\n          min-height: 100vh;\n          background-color: var(--themeBackgroundPrimaryColor);\n      }\n\n      body {\n          margin: 0;\n          height: 100%;\n      }\n\n      [data-gjs-type=wrapper] {\n          overflow: auto;\n          overflow-x: hidden;\n      }\n\n      .grapesjs-custom-code {\n          min-height: 75px;\n      }\n\n      * ::-webkit-scrollbar-track {\n          background: rgba(0, 0, 0, 0.1)\n      }\n\n      * ::-webkit-scrollbar-thumb {\n          background: rgba(255, 255, 255, 0.2)\n      }\n\n      * ::-webkit-scrollbar {\n          width: 10px\n      }\n\n      /*********************\n      ****** Flex Box ******\n      **********************/\n      .flex-container-column {\n          display: -webkit-box;\n          display: -moz-box;\n          display: -webkit-flex;\n          display: -ms-flexbox;\n          display: flex;\n          -webkit-box-direction: normal;\n          -webkit-box-orient: vertical;\n          -moz-box-direction: normal;\n          -moz-box-orient: vertical;\n          -webkit-flex-direction: column;\n          -ms-flex-direction: column;\n          flex-direction: column;\n      }\n\n      .flex-container-row {\n          display: -webkit-box;\n          display: -moz-box;\n          display: -webkit-flex;\n          display: -ms-flexbox;\n          display: flex;\n          -webkit-box-direction: normal;\n          -webkit-box-orient: horizontal;\n          -moz-box-direction: normal;\n          -moz-box-orient: horizontal;\n          -webkit-flex-direction: row;\n          -ms-flex-direction: row;\n          flex-direction: row;\n      }\n\n      .flex-container--no-wrap {\n          -webkit-flex-wrap: nowrap;\n          -ms-flex-wrap: none;\n          flex-wrap: nowrap;\n      }\n\n      .flex-container--wrap-reverse {\n          -webkit-flex-wrap: wrap-reverse;\n          -ms-flex-wrap: wrap-reverse;\n          flex-wrap: wrap-reverse;\n      }\n\n      /* The justify-content property is used to align the flex items */\n      .flex-container--justify-center {\n          -webkit-box-pack: center;\n          -moz-box-pack: center;\n          -ms-flex-pack: center;\n          -webkit-justify-content: center;\n          justify-content: center;\n      }\n\n      .flex-container--justify-start {\n          -webkit-box-pack: start;\n          -moz-box-pack: start;\n          -ms-flex-pack: start;\n          -webkit-justify-content: flex-start;\n          justify-content: flex-start;\n      }\n\n      .flex-container--justify-end {\n          -webkit-box-pack: end;\n          -moz-box-pack: end;\n          -ms-flex-pack: end;\n          -webkit-justify-content: flex-end;\n          justify-content: flex-end;\n      }\n\n      .flex-container--justify-space-around {\n          -ms-flex-pack: distribute;\n          -webkit-justify-content: space-around;\n          justify-content: space-around;\n      }\n\n      .flex-container--justify-space-between {\n          -webkit-box-pack: justify;\n          -moz-box-pack: justify;\n          -ms-flex-pack: justify;\n          -webkit-justify-content: space-between;\n          justify-content: space-between;\n      }\n\n      /* The align-items property is used to align the flex items vertically */\n      .flex-container--align-items-center {\n          -webkit-box-align: center;\n          -moz-box-align: center;\n          -ms-flex-align: center;\n          -webkit-align-items: center;\n          align-items: center;\n      }\n\n      .flex-container--align-items-start {\n          -webkit-box-align: start;\n          -moz-box-align: start;\n          -ms-flex-align: start;\n          -webkit-align-items: flex-start;\n          align-items: flex-start;\n      }\n\n      .flex-container--align-items-end {\n          -webkit-box-align: end;\n          -moz-box-align: end;\n          -ms-flex-align: end;\n          -webkit-align-items: flex-end;\n          align-items: flex-end;\n      }\n\n      .flex-container--align-items-stretch {\n          -webkit-box-align: stretch;\n          -moz-box-align: stretch;\n          -ms-flex-align: stretch;\n          -webkit-align-items: stretch;\n          align-items: stretch;\n      }\n\n      /* The align-content property is used to align the flex lines. used for multiple flex lines in a flex wrap container */\n      .flex-container--align-content-center {\n          -webkit-align-content: center;\n          -ms-flex-line-pack: center;\n          align-content: center;\n      }\n\n      .flex-container--align-content-start {\n          -webkit-align-content: flex-start;\n          -ms-flex-line-pack: start;\n          align-content: flex-start;\n      }\n\n      .flex-container--align-content-end {\n          -webkit-align-content: flex-end;\n          -ms-flex-line-pack: end;\n          align-content: flex-end;\n      }\n\n      .flex-container--align-content-space-around {\n          -webkit-align-content: space-around;\n          -ms-flex-line-pack: space-around;\n          align-content: space-around;\n      }\n\n      .flex-container--align-content-space-between {\n          -webkit-align-content: space-between;\n          -ms-flex-line-pack: space-between;\n          align-content: space-between;\n      }\n\n      .flex-container--align-content-space-evenly {\n          -webkit-align-content: space-evenly;\n          -ms-flex-line-pack: space-evenly;\n          align-content: space-evenly;\n      }\n\n      /* The align-self property specifies the alignment for the selected item inside the flexible container. Note: The align-self property overrides the flexible container's align-items property. */\n      .flex-item--align-self-center {\n          -webkit-align-self: center;\n          -ms-flex-item-align: center;\n          align-self: center;\n      }\n\n      .flex-item--align-self-start {\n          -webkit-align-self: flex-start;\n          -ms-flex-item-align: start;\n          align-self: flex-start;\n      }\n\n      .flex-item--align-self-end {\n          -webkit-align-self: flex-end;\n          -ms-flex-item-align: end;\n          align-self: flex-end;\n      }\n\n      .flex-item--align-self-stretch {\n          -webkit-align-self: stretch;\n          -ms-flex-item-align: stretch;\n          align-self: stretch;\n      }\n\n      .flex-row-space-between {\n          display: -webkit-box;\n          display: -moz-box;\n          display: -webkit-flex;\n          display: -ms-flexbox;\n          display: flex;\n          -webkit-box-direction: normal;\n          -webkit-box-orient: horizontal;\n          -moz-box-direction: normal;\n          -moz-box-orient: horizontal;\n          -webkit-flex-direction: row;\n          -ms-flex-direction: row;\n          flex-direction: row;\n          -webkit-box-pack: justify;\n          -moz-box-pack: justify;\n          -ms-flex-pack: justify;\n          -webkit-justify-content: space-between;\n          justify-content: space-between;\n          -webkit-box-align: center;\n          -moz-box-align: center;\n          -ms-flex-align: center;\n          -webkit-align-items: center;\n          align-items: center;\n      }\n\n      .flex-row-space-around {\n          display: -webkit-box;\n          display: -moz-box;\n          display: -webkit-flex;\n          display: -ms-flexbox;\n          display: flex;\n          -webkit-box-direction: normal;\n          -webkit-box-orient: horizontal;\n          -moz-box-direction: normal;\n          -moz-box-orient: horizontal;\n          -webkit-flex-direction: row;\n          -ms-flex-direction: row;\n          flex-direction: row;\n          -ms-flex-pack: distribute;\n          -webkit-justify-content: space-around;\n          justify-content: space-around;\n          -webkit-box-align: center;\n          -moz-box-align: center;\n          -ms-flex-align: center;\n          -webkit-align-items: center;\n          align-items: center;\n      }\n\n      /*********************\n      ****** Flex Box ******\n      **********************/\n\n      $\n      {\n          btnStyles\n      }\n      .full-width-image--display-none {\n          display: none;\n      }\n\n      /*********************\n      ****** Flex Box ******\n      **********************/\n\n      .bigordr-tab {\n          cursor: pointer;\n          padding: 7px 14px;\n          display: inline-block;\n          border-radius: 3px;\n          margin-right: 10px;\n      }\n\n      .bigordr-tab:hover {\n          background-color: var(--themeActionHoverColor);\n          color: var(--themeActionTextColor);\n      }\n\n      .bigordr-tab:focus {\n          outline: none;\n      }\n\n      .bigordr-tab.bigordr-tab-active {\n          background-color: var(--themeActionColor);\n          color: var(--themeActionTextColor);\n      }\n\n      .bigordr-tab.bigordr-tab-active:hover {\n          background-color: var(--themeActionHoverColor);\n          color: var(--themeActionTextColor);\n      }\n\n      .bigordr-tab-container {\n          display: inline-block;\n          padding-left: 25px;\n      }\n\n      .bigordr-tab-content {\n          animation: fadeEffect 1s;\n      }\n\n      .bigordr-tab-contents {\n          min-height: 100px;\n          padding: 10px;\n      }\n\n      @keyframes fadeEffect {\n          from {\n              opacity: 0;\n          }\n          to {\n              opacity: 1;\n          }\n      }\n\n      /*********************\n      ****** Flex Box ******\n      **********************/\n      .bigordr-blogs {\n          display: flex;\n      }\n\n      .bigordr-blog {\n          width: 100%;\n          height: 100%;\n          min-width: 5px;\n          min-height: 5px;\n      }\n\n      .bigordr-products-wrapper {\n          display: grid;\n          grid-template-rows: auto;\n          grid-template-areas: \"btnLeft products btnRight\";\n          grid-template-columns: auto auto auto;\n      }\n\n      .bigordr-products-wrapper-controls {\n          align-self: center;\n          margin: 10px;\n      }\n\n      .bigordr-products {\n          overflow-x: auto;\n          white-space: nowrap;\n          padding: 15px 0;\n          display: flex;\n      }\n\n      .slider__products-card {\n          display: inline-block;\n          margin: 0 10px;\n      }\n\n      .checkout-form__extra-max-width {\n          max-width: 1255px;\n      }\n\n      .sider-cell__view.bigordr-cell {\n          min-height: 150px;\n      }\n\n\n      /*  Video  */\n\n      .bigordr-video-inner-wrapper {\n          position: relative;\n          padding-bottom: 56.25%; /* 16:9 */\n          height: 0;\n      }\n\n      .bigordr-video-inner-wrapper > div {\n          position: absolute;\n          top: 0;\n          left: 0;\n          width: 100%;\n          height: 100%;\n      }\n\n      .bigordr-video-inner-wrapper > video {\n          position: absolute;\n          top: 0;\n          left: 0;\n          width: 100%;\n          height: 100%;\n      }\n\n      .bigordr-video-inner-wrapper > iframe {\n          position: absolute;\n          top: 0;\n          left: 0;\n          width: 100%;\n          height: 100%;\n      }\n\n      .bigordr-tab-container__sticky-tabs {\n          top: 0;\n          background-color: transparent;\n          display: block;\n          overflow-x: auto;\n          white-space: nowrap;\n      }\n\n      /* TEXT STYLE */\n      .bigordr-title {\n          color: rgb(54, 54, 54);\n          font-size: 2rem;\n          font-weight: 600;\n          line-height: 1.125;\n      }\n\n      .bigordr-subtitle {\n          color: rgb(54, 54, 54);\n          font-size: 1.2rem;\n          font-weight: 600;\n          line-height: 1.125;\n      }\n\n      /* Slider */\n\n      @media screen and (min-width: 640px) {\n          /**\n           * Demo Page Styles\n           */\n          .examplecode, .frame, .events_log {\n              width: 580px;\n          }\n\n          .testscreen {\n              width: 500px;\n          }\n\n          table {\n              width: 580px;\n              margin: 0 auto;\n          }\n\n          tr {\n              padding: 0;\n          }\n\n          /**\n           * Slider specific styles\n           */\n          .slider {\n              width: 640px;\n              margin: 0 auto 20px;\n          }\n\n          .simple > .frame li,\n          .rewind > .frame li,\n          .events > .frame li {\n              width: 580px;\n          }\n\n          .variablewidth li {\n              width: 280px;\n              margin-right: 10px;\n          }\n\n          .multipleelements li, .multislides li, .ease li {\n              width: 130px;\n              margin-right: 20px;\n          }\n      }\n\n      /* bigordr-picture-layer-container */\n      .bigordr-picture-layer-container {\n          position: relative;\n          line-height: 1.5;\n      }\n\n      /*  CUSTOM SLIDER */\n      .lory-slider {\n          position: relative;\n      }\n\n      .lory-slider.lory-slider--margin-zero {\n          margin: 0 auto;\n      }\n\n      .gjs-lory-frame {\n          margin: 0 auto;\n          overflow: hidden;\n          white-space: nowrap;\n          width: 100%;\n      }\n\n      li.gjs-lory-slide-min-width.gjs-lory-slide.js_slide.gjs-lory-slide--inside-arrows {\n          width: 100%;\n      }\n\n      li.gjs-lory-slide-auto-width.gjs-lory-slide.js_slide.gjs-lory-slide--inside-arrows {\n          width: auto;\n      }\n\n      .gjs-lory-slide {\n          display: inline-block;\n          position: relative;\n          vertical-align: top;\n          white-space: normal;\n          min-height: 50px;\n      }\n\n      .gjs-lory-slide-min-width {\n          min-width: 50px;\n      }\n\n      .gjs-lory-slide-min-width__2_slides {\n          width: 50%;\n          min-width: 50px;\n      }\n\n      .gjs-lory-slide-min-width__3_slides {\n          width: 33.33%;\n          min-width: 50px;\n      }\n\n      .gjs-lory-slide-min-width__4_slides {\n          width: 25%;\n          min-width: 50px;\n      }\n\n      .gjs-lory-slider-min-width {\n          width: 100%;\n          min-width: 50px;\n      }\n\n      .gjs-lory-slides {\n          display: inline-block;\n      }\n\n      .gjs-lory-slides__smooth-scroll {\n          overflow: scroll;\n          scroll-behavior: smooth;\n      }\n\n      li.gjs-lory-slide.js_slide {\n          background-color: rgba(0, 0, 0, 0.1);\n      }\n\n      .lory-controls-arrows {\n          position: absolute;\n          display: block;\n          cursor: pointer;\n          top: 50%;\n          margin-top: -2%;\n          font-size: 30px;\n          padding: 5px 15px;\n          background-color: #e4e4e4d2;\n          border: none;\n          border-radius: 100%;\n      }\n\n      .lory-controls-arrows.hidden-background {\n          background-color: transparent;\n      }\n\n      .lory-controls-arrows.size-small {\n          font-size: 20px;\n          padding: 10px 15px;\n      }\n\n      .lory-controls-arrows.size-medium {\n          font-size: 30px;\n          padding: 12.5px 20px;\n      }\n\n      .lory-controls-arrows.size-large {\n          font-size: 40px;\n          padding: 12.5px 22.5px;\n      }\n\n      .lory-controls-arrows-left {\n          left: 0;\n          margin-left: 15px;\n      }\n\n      .lory-controls-arrows-right {\n          right: 0;\n          margin-right: 15px;\n      }\n\n      .lory-controls-arrows-color {\n          color: #000\n      }\n\n      span.lory-controls-arrows--hidden {\n          display: none;\n      }\n\n      span.lory-controls-arrows--always-hidden {\n          display: none;\n      }\n\n      ul.lory-dots--hidden {\n          display: none;\n      }\n\n      .lory-dots {\n          padding: 0;\n          text-align: center;\n          position: relative;\n          width: 100%;\n          margin: 5px 0;\n      }\n\n      .lory-dots.lory-dots--inside-dots {\n          bottom: 0;\n          position: absolute;\n      }\n\n      .lory-dot {\n          border-radius: 100%;\n          display: inline-block;\n          height: 10px;\n          width: 10px;\n          margin: 0 5px;\n          cursor: pointer;\n      }\n\n      .lory-dot-color {\n          background-color: #eee;\n      }\n\n      .lory-dot-color.dot-active-color {\n          background-color: #41ABE5;\n      }\n\n      .lory-dot.size-small {\n          height: 8px;\n          width: 8px;\n      }\n\n      .lory-dot.size-medium {\n          height: 10px;\n          width: 10px;\n      }\n\n      .lory-dot.size-large {\n          height: 15px;\n          width: 15px;\n      }\n\n      .lory-dot.lory-dot--style-line {\n          width: 25px;\n          height: 4px;\n          padding: 0;\n          margin: 6px;\n          border-radius: 0;\n      }\n\n      .lory-dot.lory-dot--style-line.size-small {\n          height: 2px;\n          margin: 5px;\n      }\n\n      .lory-dot.lory-dot--style-line.size-medium {\n          height: 4px;\n          margin: 6px;\n      }\n\n      .lory-dot.lory-dot--style-line.size-large {\n          height: 5px;\n          margin: 7px;\n      }\n\n\n      @media (min-width: 900px) {\n          /*\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width {\n            width: 880px;\n          }\n          */\n      }\n\n      @media (min-width: 800px) {\n          /*\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width {\n            width: 580px;\n          }\n\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width.gjs-lory-frame--inside-arrows {\n            width: 100%;\n          }\n          */\n      }\n\n      @media (max-width: 780px) {\n          .lory-slider {\n              /*width: 680px !important;*/\n          }\n\n          /*\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width {\n            width: 580px;\n          }\n\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width.gjs-lory-frame--inside-arrows {\n            width: 100%;\n          }\n          */\n      }\n\n      @media (max-width: 500px) {\n          li.gjs-lory-slide-min-width.gjs-lory-slide.js_slide {\n              width: 100%;\n          }\n\n          .lory-slider {\n              /*width: 425px !important;*/\n          }\n\n          /*\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width {\n            width: 325px;\n          }\n\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width.gjs-lory-frame--inside-arrows {\n            width: 100%;\n          }\n          */\n      }\n\n      @media (max-width: 375px) {\n          li.gjs-lory-slide-min-width.gjs-lory-slide.js_slide {\n              width: 100%;\n          }\n\n          .lory-slider {\n              /*width: 375px !important;*/\n          }\n\n          /*\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width {\n            width: 275px;\n          }\n\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width.gjs-lory-frame--inside-arrows {\n            width: 100%;\n          }\n          */\n      }\n\n      @media (max-width: 320px) {\n          li.gjs-lory-slide-min-width.gjs-lory-slide.js_slide {\n              width: 100%;\n          }\n\n          .lory-slider {\n              /*width: 320px !important;*/\n              margin: 0 auto 40px !important;\n          }\n\n          /*\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width {\n            width: 220px;\n          }\n\n          div.lory-frame.gjs-lory-frame.gjs-lory-frame-min-width.gjs-lory-frame--inside-arrows {\n            width: 100%;\n          }\n          */\n      }\n\n      html {\n          scroll-behavior: smooth;\n      }\n  `;\n    if (!opts.isReadonly) {\n      baseCss += `\n    #wrapper {\n      padding-top: 10px;\n      padding-bottom: 500px;\n    }\n    `;\n    }\n    const ss = ', sans-serif';\n    const ms = ', monospace';\n    const customStyleManager = [{\n      name: intl.t('gjs-Style'),\n      open: true,\n      buildProps: ['font-family', 'font-size', 'color', 'text-align',\n      // Background Settings\n      'opacity', 'background-color', 'border-radius-c', 'border', 'box-shadow', 'background'],\n      properties: [{\n        name: intl.t('gjs-Font Size'),\n        property: 'font-size',\n        type: 'number',\n        units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n        default: 'medium',\n        min: 0,\n        fixedValues: ['medium', 'xx-small', 'x-small', 'small', 'large', 'x-large', 'xx-large', 'smaller', 'larger', 'length', 'initial', 'inherit']\n      }, {\n        name: intl.t('gjs-Font Family'),\n        property: 'font-family',\n        type: 'select',\n        default: `Arial, Helvetica${ss}`,\n        options: [{\n          id: `Arial Black, Gadget${ss}`,\n          label: 'Arial Black'\n        }, {\n          id: `Arial, Helvetica${ss}`,\n          label: 'Arial'\n        }, {\n          id: `Brush Script MT${ss}`,\n          label: 'Brush Script MT'\n        }, {\n          id: `Comic Sans MS, cursive${ss}`,\n          label: 'Comic Sans MS'\n        }, {\n          id: `Courier New, Courier${ms}`,\n          label: 'Courier New'\n        }, {\n          id: `Georgia, serif${ss}`,\n          label: 'Georgia'\n        }, {\n          id: `Helvetica${ss}`,\n          label: 'Helvetica'\n        }, {\n          id: `Impact, Charcoal${ss}`,\n          label: 'Impact'\n        }, {\n          id: `Lucida Sans Unicode, Lucida Grande${ss}`,\n          label: 'Lucida Sans Unicode'\n        }, {\n          id: `Noto Sans TC${ss}`,\n          label: 'Noto Sans TC'\n        }, {\n          id: `Noto Serif TC${ss}`,\n          label: 'Noto Serif TC'\n        }, {\n          id: `Tahoma, Geneva${ss}`,\n          label: 'Tahoma'\n        }, {\n          id: `Times New Roman, Times, serif${ss}`,\n          label: 'Times New Roman'\n        }, {\n          id: `Trebuchet MS, Helvetica${ss}`,\n          label: 'Trebuchet MS'\n        }, {\n          id: `Verdana, Geneva${ss}`,\n          label: 'Verdana'\n        }]\n      }, {\n        name: intl.t('gjs-Text align'),\n        property: 'text-align',\n        type: 'radio',\n        defaults: 'left',\n        options: [{\n          value: 'left',\n          name: intl.t('gjs-Left'),\n          className: 'fa fa-align-left'\n        }, {\n          value: 'center',\n          name: intl.t('gjs-Center'),\n          className: 'fa fa-align-center'\n        }, {\n          value: 'right',\n          name: intl.t('gjs-Right'),\n          className: 'fa fa-align-right'\n        }, {\n          value: 'justify',\n          name: intl.t('gjs-Justify'),\n          className: 'fa fa-align-justify'\n        }]\n      }, {\n        name: intl.t('gjs-Color'),\n        property: 'color',\n        type: 'color'\n      }, {\n        name: intl.t['gjs-Line-height'] || 'Line height',\n        property: 'line-height',\n        type: 'number',\n        units: ['px', '%', 'em', 'rem', 'vh', 'vw']\n      }, {\n        name: intl.t('gjs-Background Color'),\n        property: 'background-color',\n        type: 'color'\n      }, {\n        name: intl.t('gjs-Border Radius'),\n        property: 'border-radius',\n        type: 'number',\n        units: ['px', '%'],\n        defaults: '0',\n        min: 0\n      }, {\n        type: 'composite',\n        name: intl.t('gjs-Border'),\n        property: 'border',\n        // info: 'SOME BORDER INFO',\n        properties: [{\n          name: intl.t('gjs-Border Width'),\n          property: 'border-width',\n          id: `border-width-${id}`,\n          type: 'number',\n          units: ['px', 'em', 'rem', 'vh', 'vw'],\n          default: '0',\n          min: 0\n        }, {\n          name: intl.t('gjs-Border Style'),\n          property: 'border-style',\n          id: `border-style-${id}`,\n          type: 'select',\n          default: 'solid',\n          options: [{\n            name: intl.t('gjs-none'),\n            value: 'none'\n          }, {\n            name: intl.t('gjs-solid'),\n            value: 'solid'\n          }, {\n            name: intl.t('gjs-dotted'),\n            value: 'dotted'\n          }, {\n            name: intl.t('gjs-dashed'),\n            value: 'dashed'\n          }, {\n            name: intl.t('gjs-double'),\n            value: 'double'\n          }\n          // { id: 'groove' },\n          // { id: 'ridge' },\n          // { id: 'inset' },\n          // { id: 'outset' }\n          ]\n        }, {\n          name: intl.t('gjs-Border Color'),\n          property: 'border-color',\n          id: `border-color-${id}`,\n          type: 'color',\n          default: 'black'\n        }]\n      }, {\n        name: intl.t('gjs-Opacity'),\n        type: 'slider',\n        property: 'opacity',\n        defaults: 1,\n        step: 0.01,\n        max: 1,\n        min: 0\n      }, {\n        name: intl.t('gjs-Box Shadow'),\n        property: 'box-shadow',\n        type: 'stack',\n        preview: true,\n        layerLabel: (l, {\n          values\n        }) => {\n          const x = values[`box-shadow-h-${id}`];\n          const y = values[`box-shadow-v-${id}`];\n          const blur = values[`box-shadow-blur-${id}`];\n          const spread = values[`box-shadow-spread-${id}`];\n          return `${x} ${y} ${blur} ${spread}`;\n        },\n        properties: [{\n          name: intl.t('gjs-X position'),\n          property: 'box-shadow-h',\n          id: `box-shadow-h-${id}`,\n          type: 'number',\n          units: ['px', 'em', 'rem', 'vh', 'vw'],\n          default: '0'\n        }, {\n          name: intl.t('gjs-Y position'),\n          property: 'box-shadow-v',\n          id: `box-shadow-v-${id}`,\n          type: 'number',\n          units: ['px', 'em', 'rem', 'vh', 'vw'],\n          default: '0'\n        }, {\n          name: intl.t('gjs-Blur'),\n          property: 'box-shadow-blur',\n          id: `box-shadow-blur-${id}`,\n          type: 'number',\n          units: ['px', 'em', 'rem', 'vh', 'vw'],\n          default: '5px',\n          min: 0\n        }, {\n          name: intl.t('gjs-Spread'),\n          property: 'box-shadow-spread',\n          id: `box-shadow-spread-${id}`,\n          type: 'number',\n          units: ['px', 'em', 'rem', 'vh', 'vw'],\n          default: '0'\n        }, {\n          name: intl.t('gjs-box-shadow-color'),\n          property: 'box-shadow-color',\n          id: `box-shadow-color-${id}`,\n          type: 'color',\n          default: 'black'\n        }, {\n          name: intl.t('gjs-shadow-type'),\n          property: 'box-shadow-type',\n          id: `box-shadow-type-${id}`,\n          type: 'select',\n          default: '',\n          options: [{\n            id: '',\n            label: intl.t('gjs-outside')\n          }, {\n            id: 'inset',\n            label: intl.t('gjs-inside')\n          }]\n        }]\n      }, {\n        name: intl.t('gjs-Background'),\n        property: 'background',\n        type: 'stack',\n        preview: true,\n        detached: true,\n        layerLabel: (l, args = {}) => {\n          const {\n            values\n          } = args;\n          const repeat = values[`background-repeat-${id}`];\n          const pos = values[`background-position-${id}`];\n          const att = values[`background-attachment-${id}`];\n          const size = values[`background-size-${id}`];\n          const repeatLabel = intl.t(`gjs-${repeat}`);\n          const repeatPos = intl.t(`gjs-${pos}`);\n          const repeatAtt = intl.t(`gjs-${att}`);\n          const repeatSize = intl.t(`gjs-${size}`);\n          return `${repeatLabel} | ${repeatPos} | ${repeatAtt} | ${repeatSize}`;\n        },\n        properties: [{\n          name: intl.t('gjs-Image'),\n          property: 'background-image',\n          id: `background-image-${id}`,\n          type: 'file',\n          functionName: 'url',\n          full: true\n        }, {\n          name: intl.t('gjs-Repeat'),\n          property: 'background-repeat',\n          id: `background-repeat-${id}`,\n          type: 'select',\n          default: 'no-repeat',\n          options: [{\n            id: 'repeat',\n            name: intl.t('gjs-repeat')\n          }, {\n            id: 'repeat-x',\n            name: intl.t('gjs-repeat-x')\n          }, {\n            id: 'repeat-y',\n            name: intl.t('gjs-repeat-y')\n          }, {\n            id: 'no-repeat',\n            name: intl.t('gjs-no-repeat')\n          }]\n        }, {\n          name: intl.t('gjs-Position'),\n          property: 'background-position',\n          id: `background-position-${id}`,\n          type: 'select',\n          default: 'center center',\n          options: [{\n            id: 'left top',\n            name: intl.t('gjs-left top')\n          }, {\n            id: 'left center',\n            name: intl.t('gjs-left center')\n          }, {\n            id: 'left bottom',\n            name: intl.t('gjs-left bottom')\n          }, {\n            id: 'right top',\n            name: intl.t('gjs-right top')\n          }, {\n            id: 'right center',\n            name: intl.t('gjs-right center')\n          }, {\n            id: 'right bottom',\n            name: intl.t('gjs-right bottom')\n          }, {\n            id: 'center top',\n            name: intl.t('gjs-center top')\n          }, {\n            id: 'center center',\n            name: intl.t('gjs-center center')\n          }, {\n            id: 'center bottom',\n            name: intl.t('gjs-center bottom')\n          }]\n        }, {\n          name: intl.t('gjs-Attachment'),\n          property: 'background-attachment',\n          id: `background-attachment-${id}`,\n          type: 'select',\n          default: 'scroll',\n          options: [{\n            id: 'scroll',\n            name: intl.t('gjs-scroll')\n          }, {\n            id: 'fixed',\n            name: intl.t('gjs-fixed')\n          }, {\n            id: 'local',\n            name: intl.t('gjs-local')\n          }]\n        }, {\n          name: intl.t('gjs-Size'),\n          property: 'background-size',\n          id: `background-size-${id}`,\n          type: 'select',\n          default: 'auto',\n          options: [{\n            id: 'auto',\n            name: intl.t('gjs-auto')\n          }, {\n            id: 'cover',\n            name: intl.t('gjs-cover')\n          }, {\n            id: 'contain',\n            name: intl.t('gjs-contain')\n          }]\n        }]\n      }]\n    }, {\n      name: intl.t('gjs-Dimension') || 'Dimension',\n      open: false,\n      buildProps: ['width', 'height', 'max-width', 'min-height', 'margin', 'padding'],\n      properties: [{\n        name: intl.t('gjs-Width') || 'Width',\n        property: 'width',\n        id: `width-${id}`,\n        type: 'number',\n        units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n        default: 'auto',\n        fixedValues: ['initial', 'inherit', 'auto', 'fit-content'],\n        min: 0\n      }, {\n        name: intl.t('gjs-Height') || 'Height',\n        property: 'height',\n        id: `height-${id}`,\n        type: 'number',\n        units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n        default: 'auto',\n        fixedValues: ['initial', 'inherit', 'auto', 'fit-content'],\n        min: 0\n      }, {\n        name: intl.t('gjs-Max-width') || 'Max width',\n        property: 'max-width',\n        id: `max-width-${id}`,\n        type: 'number',\n        units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n        default: 'auto',\n        fixedValues: ['initial', 'inherit', 'auto'],\n        min: 0\n      }, {\n        name: intl.t('gjs-Min-height') || 'Min height',\n        property: 'min-height',\n        id: `min-height-${id}`,\n        type: 'number',\n        units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n        default: 'auto',\n        fixedValues: ['initial', 'inherit', 'auto'],\n        min: 0\n      }, {\n        name: intl.t('gjs-Margin') || 'Margin',\n        property: 'margin',\n        type: 'composite',\n        properties: [{\n          name: intl.t('gjs-Top') || 'Top',\n          property: 'margin-top',\n          id: `margin-top-${id}`,\n          type: 'number',\n          units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n          default: '0'\n        }, {\n          name: intl.t('gjs-Right') || 'Right',\n          property: 'margin-right',\n          id: `margin-right-${id}`,\n          type: 'number',\n          units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n          default: '0'\n        }, {\n          name: intl.t('gjs-Bottom') || 'Bottom',\n          property: 'margin-bottom',\n          id: `margin-bottom-${id}`,\n          type: 'number',\n          units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n          default: '0'\n        }, {\n          name: intl.t('gjs-Left') || 'Left',\n          property: 'margin-left',\n          id: `margin-left-${id}`,\n          type: 'number',\n          units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n          default: '0'\n        }]\n      }, {\n        name: intl.t('gjs-Padding') || 'Padding',\n        property: 'padding',\n        type: 'composite',\n        properties: [{\n          name: intl.t('gjs-Top') || 'Top',\n          property: 'padding-top',\n          id: `padding-top-${id}`,\n          fixedValues: ['initial', 'inherit', 'auto'],\n          type: 'number',\n          units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n          default: '0',\n          min: 0\n        }, {\n          name: intl.t('gjs-Right') || 'Right',\n          property: 'padding-right',\n          id: `padding-right-${id}`,\n          fixedValues: ['initial', 'inherit', 'auto'],\n          type: 'number',\n          units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n          default: '0',\n          min: 0\n        }, {\n          name: intl.t('gjs-Bottom') || 'Bottom',\n          property: 'padding-bottom',\n          id: `padding-bottom-${id}`,\n          fixedValues: ['initial', 'inherit', 'auto'],\n          type: 'number',\n          units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n          default: '0',\n          min: 0\n        }, {\n          name: intl.t('gjs-Left') || 'Left',\n          property: 'padding-left',\n          id: `padding-left-${id}`,\n          fixedValues: ['initial', 'inherit', 'auto'],\n          type: 'number',\n          units: ['px', '%', 'em', 'rem', 'vh', 'vw'],\n          default: '0',\n          min: 0\n        }]\n      }]\n    }];\n    // Editor config https://github.com/artf/grapesjs/blob/dev/src/editor/config/config.js\n    const defaults = {\n      // Indicate where to init the editor. You can also pass an HTMLElement\n      container: `#${id}`,\n      allowScripts: 1,\n      // dont allow scripts\n      // Get the content for the canvas directly from the element\n      // As an alternative we could use: `components: '<h1>Hello World Component!</h1>'`,\n      fromElement: false,\n      // Size of the editor\n      height: '100%',\n      width: 'auto',\n      // On creation of a new Component (via object), if the 'style' attribute is not\n      // empty, all those roles will be moved in its new class\n      forceClass: true,\n      // Type of logs to print with the logger (by default is used the devtool console).\n      // Available by default: debug, info, warning, error\n      // You can use `false` to disable all of them or `true` to print all of them\n      log: ['error'],\n      // ['warning', 'error'],\n\n      // By default Grapes injects base CSS into the canvas. For example, it sets body margin to 0\n      // and sets a default background color of white. This CSS is desired in most cases.\n      // use this property if you wish to overwrite the base CSS to your own CSS. This is most\n      // useful if for example your template is not based off a document with 0 as body margin.\n      baseCss,\n      canvasCss: 'body {height: auto;}',\n      canvas: {\n        styles: [`${_environment.default.APP.storageUrl}/api/proxy/file/vendor/css`, `${_environment.default.APP.storageUrl}/api/proxy/file/shop/css`, 'https://fonts.googleapis.com/css?family=Noto+Sans+TC|Noto+Serif+TC'],\n        scripts: ['https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/js/all.min.js']\n      },\n      // Disable the storage manager for the moment\n      storageManager: {\n        id: '',\n        type: 'indexedDB',\n        // Type of the storage\n        autosave: true,\n        // Store data automatically\n        autoload: false,\n        // Autoload stored data on init\n        stepsBeforeSave: 1,\n        // If autosave enabled, indicates how many changes are necessary before store method is\n        options: {\n          indexedDB: {\n            key: storagePrefix\n          }\n        }\n        // triggered\n      },\n      // Avoid any default panel\n      // selectorManager: {\n      //   appendTo: `#style-container-${id}`\n      // },\n      styleManager: {\n        appendTo: `#style-container-${id}`,\n        sectors: []\n      },\n      traitManager: {\n        appendTo: `#trait-container-${id}`\n      },\n      blockManager: {\n        appendTo: `#blocks-container-${id}`\n      },\n      layerManager: {\n        appendTo: `#layer-container-${id}`,\n        hidable: false,\n        custom: true\n      },\n      plugins,\n      pluginsOpts: {\n        'bigordr-slider-native': {\n          categories,\n          intl,\n          ...opts\n        },\n        'ckeditor-plugin': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-animation-trait': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-animation-text-trait': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-animation-iteration-trait': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-link-trait': {\n          categories,\n          intl,\n          ...opts\n        },\n        tabs: {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-tabs-with-header': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-background-fixed': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-blogs': {\n          categories,\n          intl,\n          ...opts\n        },\n        'double-row': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-form': {\n          categories,\n          intl,\n          ...opts\n        },\n        text: {\n          categories,\n          intl,\n          ...opts\n        },\n        row: {\n          categories,\n          intl,\n          ...opts\n        },\n        cell: {\n          categories,\n          intl,\n          ...opts\n        },\n        'full-width-image': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-grid': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-grid-images': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-blocks': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-banner': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-strip': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-panels': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-button': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-slider': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-video': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-product': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-products': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-video-full-width': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-picture': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-picture-layer-container': {\n          categories,\n          intl,\n          ...opts\n        },\n        'gjs-preset-webpage': {\n          editorId: id,\n          customStyleManager\n        },\n        'grapesjs-custom-code': {\n          blockCustomCode: {\n            category: 'complex',\n            media: `<div class='gjs-custom-code'><i class=\"fas fa-code\"></i></div><div class=\"block-label\">${intl.t('html-custom-code')}</div>`,\n            attributes: {\n              title: intl.t('html-custom-code')\n            }\n          },\n          propsCustomCode: {\n            attributes: {\n              title: intl.t('html-custom-code'),\n              class: 'grapesjs-custom-code'\n            }\n          }\n        },\n        'bigordr-tabs': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-scratch-card': {\n          categories,\n          intl,\n          ...opts\n        },\n        'bigordr-stories': {\n          categories,\n          intl,\n          ...opts\n        }\n      }\n    };\n    opts = R.mergeDeepRight(defaults, opts);\n    clearPanels(id);\n    const editor = grapesjs.init(opts);\n    return editor;\n  };\n  const clearPanels = id => {\n    const panelDevices = document.getElementsByClassName(`panel__devices-${id}`)[0];\n    if (panelDevices) {\n      while (panelDevices.firstChild) {\n        panelDevices.removeChild(panelDevices.firstChild);\n      }\n    }\n    const panelBasic = document.getElementsByClassName(`panel__basic-actions-${id}`)[0];\n    if (panelBasic) {\n      while (panelBasic.firstChild) {\n        panelBasic.removeChild(panelBasic.firstChild);\n      }\n    }\n  };\n  var _default = _exports.default = Ember.Service.extend({\n    intl: Ember.inject.service(),\n    initialCanvasSize: 600,\n    didDestroyElement() {\n      this._super(...arguments);\n      window.removeEventListener('resize', this.resetHeight);\n    },\n    create(editorId, storagePrefix, pageDataString = '{}', options, model, website) {\n      const debounce = (func, wait) => {\n        let timeout;\n        return function executedFunction(...args) {\n          const later = () => {\n            clearTimeout(timeout);\n            func(...args);\n          };\n          clearTimeout(timeout);\n          timeout = setTimeout(later, wait);\n        };\n      };\n      const storageService = this.storage;\n      const activeEditors = storageService.get('activeEditors') || [];\n      activeEditors.push(storagePrefix);\n      storageService.set('activeEditors', activeEditors);\n      let pageData = {};\n      try {\n        if (R.type(pageDataString) === 'String') {\n          pageData = JSON.parse(pageDataString);\n        } else {\n          pageData = pageDataString;\n        }\n      } catch (e) {\n        pageData = {};\n      }\n      const intl = this.intl;\n      try {\n        // const canvasHeight = options.canvasHeight\n        options.model = model;\n        options.editorId = editorId;\n        options.intl = intl;\n        const btnStyles = genBtnStyles(website);\n        const editor = create(editorId, storagePrefix, intl, options, btnStyles);\n        // Re-Bind delete and backspace to handle bug on GJS\n        editor.Keymaps.add('delete', 'delete', 'core:component-delete');\n        editor.Keymaps.add('backspace', 'backspace', 'core:component-delete');\n        const {\n          isReadonly\n        } = options;\n        const timeoutTime = 1000;\n        let components = R.pipe(R.propOr([], 'components'), R.filter(component => {\n          if (component.tagName === '' && component.type === 'textnode') {\n            return false;\n          }\n          return true;\n        }))(pageData);\n        if (RA.isNilOrEmpty(components)) {\n          components = pageData.html;\n        }\n        const styles = pageData.styles || pageData.css;\n        const rHeight = debounce(() => {\n          this.resetHeight(editor, {\n            isReadonly,\n            canvasHeight: options.canvasHeight\n          });\n        }, timeoutTime);\n        if (isReadonly) {\n          editor.setComponents('<div></div>');\n          editor.DomComponents.getWrapper().onAll(comp => comp.set({\n            badgable: false,\n            copyable: false,\n            draggable: false,\n            droppable: false,\n            editable: false,\n            highlightable: false,\n            hoverable: false,\n            layerable: false,\n            propagate: ['badgable', 'copyable', 'draggable', 'droppable', 'editable', 'highlightable', 'hoverable', 'layerable', 'removable', 'resizable', 'selectable', 'stylable'],\n            removable: false,\n            resizable: false,\n            selectable: false,\n            stylable: false\n          }));\n          editor.on('component:update', rHeight);\n          editor.on('component:add', rHeight);\n\n          // window.addEventListener('resize', rHeight)\n        } else {\n          editor.on('component:deselected', (component, ...args) => {\n            try {\n              editor.refresh({\n                tools: true\n              });\n              const editorElement = editor.getEl();\n              if (!component?.getAttributes) {\n                return;\n              }\n              const attributes = component.getAttributes() || {};\n              const elementId = attributes?.id;\n              if (!elementId) {\n                return;\n              }\n              const toolbar = editorElement.querySelector(`.gjs-link-tooltip-${elementId}`);\n              toolbar.remove();\n            } catch (e) {\n              // do nothing\n            }\n          });\n          editor.on('component:select', (component, ...args) => {\n            editor.refresh({\n              tools: true\n            });\n            const selected = editor.getSelected();\n            if (!selected?.getAttributes) {\n              return;\n            }\n            const toolbar = selected.get('toolbar') || [];\n            const alreadyAdded = R.find(R.pathEq(['attributes', 'class'], 'fa-solid fa-link'))(toolbar);\n            if (!alreadyAdded) {\n              toolbar.unshift({\n                attributes: {\n                  class: 'fa-solid fa-link'\n                },\n                command() {\n                  options.openLinksModal(editor);\n                }\n              });\n              selected.set('toolbar', toolbar);\n            }\n            const attributes = selected.getAttributes() || {};\n            const elementId = attributes?.id;\n            if (!elementId) {\n              return;\n            }\n            let linkUrl = R.pathOr('', ['data-href'])(attributes);\n            if (!linkUrl) {\n              return;\n            }\n            // gjs does something with the toolbar, need to wait till its ready?\n            setTimeout(() => {\n              const linkType = R.pathOr('url', ['data-href-link-type'])(attributes);\n              if (linkType !== 'url') {\n                const linkTitle = R.pathOr('', ['data-href-title'])(attributes);\n                linkUrl = linkTitle;\n              }\n              const editorElement = editor.getEl();\n              const toolbar = editorElement.querySelector('.gjs-toolbar');\n              const linkToolTipContainer = document.createElement('div');\n              linkToolTipContainer.classList.add('gjs-link-tooltip', `gjs-link-tooltip-${elementId}`);\n              linkToolTipContainer.innerHTML = `<div class='u-truncate'>${intl.t('link')}: ${linkUrl}</div>`;\n              toolbar.appendChild(linkToolTipContainer);\n            }, 250);\n          });\n        }\n        // Component is mounted to an element and rendered in canvas\n        editor.on('component:mount', rHeight);\n\n        // Set body id to previous id if any\n        const vDomHtml = document.createElement('html');\n        vDomHtml.innerHTML = pageData.html;\n        const previousBodyId = vDomHtml.querySelector('body').getAttribute('id');\n        if (previousBodyId) {\n          const editorWrapper = editor.getWrapper();\n          editorWrapper.setId(previousBodyId);\n        }\n        editor.setComponents(components);\n\n        // TODO: THIS CLEANER STYLE SHOULD BE REMOVE ONCE ALL THE WEBSITES ARE MODIFY\n        let cleanStyles = styles;\n        if (R.is(Array, styles)) {\n          cleanStyles = R.map(R.over(R.lensPath(['selectorsAdd']), (s = '') => R.replace('#wrapper > ', '')(s)))(styles);\n\n          // REMOVE ROOT STYLE IF ANY\n          cleanStyles = R.reject(R.propEq('selectorsAdd', ':root'))(styles);\n\n          // REMOVE gjs-dashed copies\n          cleanStyles = R.reject(R.pathEq(['selectors', 0], 'gjs-dashed'))(cleanStyles);\n\n          // Omit old embedded gjs component styles\n          const oldEmbeddedCssClasses = ['bigordr-product', 'bigordr-products-wrapper'];\n          cleanStyles = R.reduce((acc, style) => {\n            const selectors = R.pathOr([], ['selectors'])(style);\n            if (selectors.some(selector => oldEmbeddedCssClasses.includes(selector))) {\n              return acc;\n            }\n            return acc.concat(style);\n          }, [])(cleanStyles);\n\n          // cleanStyles = R.concat(cleanStyles, lastGjsDashedStyle)\n\n          // @NOTE: this cleans up old templates where button has static style in template\n          // cleanStyles = R.pipe(\n          //   R.map(item => {\n          //     const isButton = R.pipe(\n          //       R.propOr([], 'selectors'),\n          //       R.find(R.propEq('name', 'button'))\n          //     )(item)\n\n          //     if (!isButton) {\n          //       return item\n          //     }\n\n          //     if (item.style) {\n          //       return R.omit(['style'])(item)\n          //     }\n\n          //     return item\n          //   })\n          // )(cleanStyles)\n        }\n        editor.setStyle(cleanStyles);\n        editor.getStyle().add(this.genThemeFromWebsiteModel(website));\n        return editor;\n      } catch (e) {\n        console.error('==> Error Initializing GrapesJs <== \\n%O\\n==> Error Initializing GrapesJs <== ', e);\n      }\n    },\n    setTemplate(editor, {\n      pageData,\n      website\n    }) {\n      // Remove current template\n      this.clearPage(editor, website);\n\n      // Set new template with styles\n      editor.setComponents(pageData?.components);\n      editor.setStyle(pageData?.styles);\n\n      // Save temp[late to indexedDB\n      const StorageManager = editor.StorageManager;\n      const currentStorage = StorageManager.getCurrent();\n      const storage = StorageManager.get(currentStorage);\n      storage.store(pageData).then(() => {\n        return editor.load();\n      }).catch(console.error);\n    },\n    resetHeight(editor, options = {}) {\n      const {\n        addComponent = true,\n        isReadonly\n      } = options;\n      const canvasHeight = options.canvasHeight;\n      if (editor.Canvas) {\n        const canvasDocument = editor.Canvas.getDocument();\n        if (canvasDocument) {\n          const canvasBody = canvasDocument.body;\n          const canvasHtml = canvasDocument.documentElement;\n          // if (!canvasHeight) {\n          const newCanvasHeight = Math.max(canvasBody.clientHeight, canvasBody.scrollHeight, canvasBody.offsetHeight, canvasHtml.clientHeight, canvasHtml.scrollHeight, canvasHtml.offsetHeight);\n\n          // }\n\n          // const h = canvasBody.scrollHeight //+ 300\n          const h = editor.Canvas.getDocument().querySelector('[data-gjs-type=\\'wrapper\\']').clientHeight + 300;\n\n          // const isInitial = editor.getEl().parentElement.style.height === '300px' || editor.getEl().parentElement.style.height === ''\n\n          if (isReadonly) {\n            this.set('initialCanvasSize', h);\n            editor.getEl().parentElement.style.height = `${h}px`;\n          } else if (addComponent) {\n            this.set('initialCanvasSize', h);\n            editor.addStyle({\n              selectors: 'gjs-dashed',\n              style: {\n                height: `${h}px`\n              }\n            });\n          }\n        }\n      }\n    },\n    getPlugins() {\n      return {\n        FullWidthImagePlugin: _fullWidthImage.default,\n        ImagePlugin: _image.default,\n        NonEditablePlugin: _nonEditable.default,\n        ProductPlugin: _product.default\n      };\n    },\n    getPluginsAsArray() {\n      const obj = this.getPlugins();\n      return R.values(obj);\n    },\n    async getPageDataStringFromStorage(editor, storagePrefix) {\n      // getPageDataFromStorage awaits editor.store(), so the IndexedDB blob read\n      // below reflects the latest editor state (no stale-read race).\n      const pageData = await this.getPageDataFromStorage(editor, storagePrefix);\n      const pageDataString = JSON.stringify(pageData);\n      // Read html/css straight from the in-memory editor so they never depend on\n      // the persisted blob (which the storage adapter does not always include).\n      const html = editor.getHtml();\n      const css = editor.getCss();\n      return {\n        css: css || R.propOr('', 'css', pageData),\n        html: html || R.propOr('', 'html', pageData),\n        pageDataString\n      };\n    },\n    async getPageDataFromStorage(editor, storagePrefix) {\n      // Await the store: editor.store() persists to IndexedDB asynchronously, and\n      // reading before it resolves can return a stale/incomplete blob.\n      await editor.store();\n      const data = await idbKeyval.get(storagePrefix);\n      return JSON.parse(data);\n    },\n    async setPageDataToStorage(storagePrefix, pageData) {\n      await idbKeyval.set(storagePrefix, JSON.stringify(pageData));\n      return pageData;\n    },\n    removeFromStorage(storagePrefix) {\n      // using global store property as grapesjs doesnt store these using storage service\n      if (storagePrefix) {\n        idbKeyval.del(storagePrefix);\n      }\n    },\n    clearPage(editor, website) {\n      if (editor) {\n        const domComponents = editor.DomComponents;\n        const cssComposer = editor.CssComposer;\n        domComponents.clear();\n        cssComposer.clear();\n        editor.getStyle().add(this.genThemeFromWebsiteModel(website));\n      }\n    },\n    /**\n     * Generate css var from website\n     * @param {WebsiteType} website\n     * @return {string}\n     */\n    genThemeFromWebsiteModel(website) {\n      const customTheme = R.propOr({}, '_data')(website);\n      const themeData = {\n        themeWidthDefault: '1344px'\n      };\n      const activeColor = '#000000';\n      const backgroundColor = '#ffffff';\n      const borderColor = '#eeeeee';\n      const chatColor = '#66aee4';\n      const chatHoverColor = '#4390ca';\n      const chatTextColor = '#ffffff';\n      const linkColor = '#000000';\n      const linkHoverColor = '#262626';\n      const neutralColor = '#ffffff';\n      const neutralHoverColor = '#eeeeee';\n      const primaryColor = '#e4666f';\n      const primaryContrastColor = '#ffffff';\n      const primaryHoverColor = '#fa2e3c';\n      const saleColor = '#ff4a68';\n      const saleTextColor = '#ffffff';\n      const secondaryBackgroundColor = '#eeeeee';\n      const secondaryBackgroundLinkColor = '#000000';\n      const secondaryBackgroundLinkHoverColor = '#262626';\n      const secondaryBackgroundTextColor = '#666666';\n      const secondaryColor = '#000000';\n      const secondaryContrastColor = '#ffffff';\n      const secondaryHoverColor = '#262626';\n      const textColor = '#666666';\n      const themeChatButtonColor = R.propOr(chatColor, 'themeChatButtonColor', customTheme);\n      const themeChatButtonTextColor = R.propOr(chatTextColor, 'themeChatButtonTextColor', customTheme);\n      const white = '#ffffff';\n      if (themeChatButtonColor === white && themeChatButtonTextColor === white) {\n        website.setData('themeChatButtonColor', chatColor);\n      }\n      themeData.themeActionColor = R.propOr(primaryColor, 'themeActionColor', customTheme);\n      themeData.themeActionFinalColor = R.propOr(secondaryColor, 'themeActionFinalColor', customTheme);\n      themeData.themeActionFinalHoverColor = R.propOr(secondaryHoverColor, 'themeActionFinalHoverColor', customTheme);\n      themeData.themeActionFinalTextColor = R.propOr(secondaryContrastColor, 'themeActionFinalTextColor', customTheme);\n      themeData.themeActionHoverColor = R.propOr(primaryHoverColor, 'themeActionHoverColor', customTheme);\n      themeData.themeActionTextColor = R.propOr(primaryContrastColor, 'themeActionTextColor', customTheme);\n      themeData.themeActiveColor = R.propOr(activeColor, 'themeActiveColor', customTheme);\n      themeData.themeBackgroundPrimaryColor = R.propOr(backgroundColor, 'themeBackgroundPrimaryColor', customTheme);\n      themeData.themeBackgroundSecondaryColor = R.propOr(backgroundColor, 'themeBackgroundSecondaryColor', customTheme);\n      themeData.themeBorderColor = R.propOr(borderColor, 'themeBorderColor', customTheme);\n      themeData.themeButtonBorderColor = R.propOr(borderColor, 'themeButtonBorderColor', customTheme);\n      themeData.themeButtonColor = R.propOr(neutralColor, 'themeButtonColor', customTheme);\n      themeData.themeButtonHoverColor = R.propOr(neutralHoverColor, 'themeButtonHoverColor', customTheme);\n      themeData.themeButtonHoverTextColor = R.propOr(neutralHoverColor, 'themeButtonHoverTextColor', customTheme);\n      themeData.themeButtonHoverTextColor1 = R.propOr(neutralHoverColor, 'themeButtonHoverTextColor1', customTheme);\n      themeData.themeButtonTextColor = R.propOr(textColor, 'themeButtonTextColor', customTheme);\n      themeData.themeButtonBorderColor1 = R.propOr(borderColor, 'themeButtonBorderColor1', customTheme);\n      themeData.themeButtonColor1 = R.propOr(neutralColor, 'themeButtonColor1', customTheme);\n      themeData.themeButtonHoverColor1 = R.propOr(neutralHoverColor, 'themeButtonHoverColor1', customTheme);\n      themeData.themeButtonTextColor1 = R.propOr(textColor, 'themeButtonTextColor1', customTheme);\n      themeData.themeButtonHoverTextColor2 = R.propOr(neutralHoverColor, 'themeButtonHoverTextColor2', customTheme);\n      themeData.themeButtonBorderColor2 = R.propOr(borderColor, 'themeButtonBorderColor2', customTheme);\n      themeData.themeButtonColor2 = R.propOr(neutralColor, 'themeButtonColor2', customTheme);\n      themeData.themeButtonHoverColor2 = R.propOr(neutralHoverColor, 'themeButtonHoverColor2', customTheme);\n      themeData.themeButtonTextColor2 = R.propOr(textColor, 'themeButtonTextColor2', customTheme);\n      themeData.themeButtonHoverTextColor3 = R.propOr(neutralHoverColor, 'themeButtonHoverTextColor3', customTheme);\n      themeData.themeButtonBorderColor3 = R.propOr(borderColor, 'themeButtonBorderColor3', customTheme);\n      themeData.themeButtonColor3 = R.propOr(neutralColor, 'themeButtonColor3', customTheme);\n      themeData.themeButtonHoverColor3 = R.propOr(neutralHoverColor, 'themeButtonHoverColor3', customTheme);\n      themeData.themeButtonTextColor3 = R.propOr(textColor, 'themeButtonTextColor3', customTheme);\n      themeData.themeVariantButtonColor = R.propOr(primaryContrastColor, 'themeVariantButtonColor')(customTheme);\n      themeData.themeVariantButtonTextColor = R.propOr(primaryColor, 'themeVariantButtonTextColor')(customTheme);\n      themeData.themeVariantButtonBorderColor = R.propOr(primaryColor, 'themeVariantButtonBorderColor')(customTheme);\n      themeData.themeVariantButtonHoverColor = R.propOr(primaryContrastColor, 'themeVariantButtonHoverColor')(customTheme);\n      themeData.themeVariantButtonHoverTextColor = R.propOr(primaryHoverColor, 'themeVariantButtonHoverTextColor')(customTheme);\n      themeData.themeVariantButtonHoverBorderColor = R.propOr(primaryHoverColor, 'themeVariantButtonHoverBorderColor')(customTheme);\n      themeData.themeVariantButtonSelectedColor = R.propOr(primaryColor, 'themeVariantButtonSelectedColor')(customTheme);\n      themeData.themeVariantButtonSelectedTextColor = R.propOr(primaryContrastColor, 'themeVariantButtonSelectedTextColor')(customTheme);\n      themeData.themeVariantButtonSelectedBorderColor = R.propOr(primaryColor, 'themeVariantButtonSelectedBorderColor')(customTheme);\n      themeData.themeButtonBorderRadius = R.prop('themeButtonBorderRadius')(customTheme) || '20px';\n      themeData.themeButtonBorderRadius2 = R.prop('themeButtonBorderRadius2')(customTheme) || '20px';\n      themeData.themeButtonBorderRadius3 = R.prop('themeButtonBorderRadius3')(customTheme) || '20px';\n      themeData.themeVariantButtonBorderRadius = R.prop('themeVariantButtonBorderRadius')(customTheme) || '20px';\n      themeData.themeChatButtonColor = R.propOr(chatColor, 'themeChatButtonColor', customTheme);\n      themeData.themeChatButtonHoverColor = R.propOr(chatHoverColor, 'themeChatButtonHoverColor', customTheme);\n      themeData.themeChatButtonTextColor = R.propOr(chatTextColor, 'themeChatButtonTextColor', customTheme);\n      themeData.themeCountDownColor = R.propOr(secondaryColor, 'themeCountDownColor', customTheme);\n      themeData.themeCarouselBannerColor = R.propOr(secondaryColor, 'themeCarouselBannerColor', customTheme);\n      themeData.themeFooterBackgroundColor = R.propOr(secondaryBackgroundColor, 'themeFooterBackgroundColor', customTheme);\n      themeData.themeFooterLinkColor = R.propOr(secondaryBackgroundLinkColor, 'themeFooterLinkColor', customTheme);\n      themeData.themeFooterLinkHoverColor = R.propOr(secondaryBackgroundLinkHoverColor, 'themeFooterLinkHoverColor', customTheme);\n      themeData.themeFooterTextColor = R.propOr(secondaryBackgroundTextColor, 'themeFooterTextColor', customTheme);\n      themeData.themeInputBackgroundColor = R.propOr(backgroundColor, 'themeInputBackgroundColor', customTheme);\n      themeData.themeInputBorderColor = R.propOr(borderColor, 'themeInputBorderColor', customTheme);\n      themeData.themeInputBorderFocusColor = R.propOr(borderColor, 'themeInputBorderFocusColor', customTheme);\n      themeData.themeLinkColor = R.propOr(linkColor, 'themeLinkColor', customTheme);\n      themeData.themeLinkHoverColor = R.propOr(linkHoverColor, 'themeLinkHoverColor', customTheme);\n      themeData.themeMenuBackgroundPrimaryColor = R.propOr(backgroundColor, 'themeMenuBackgroundPrimaryColor', customTheme);\n      themeData.themeMenuBackgroundSecondaryColor = R.propOr(backgroundColor, 'themeMenuBackgroundSecondaryColor', customTheme);\n      themeData.themeMenuBorderColor = R.propOr(borderColor, 'themeMenuBorderColor', customTheme);\n      themeData.themeMenuItemBorderColor = R.propOr(themeData.themeMenuBackgroundPrimaryColor, 'themeMenuItemBorderColor', customTheme);\n      themeData.themeMenuLinkColor = R.propOr(linkColor, 'themeMenuLinkColor', customTheme);\n      themeData.themeMenuLinkHoverColor = R.propOr(linkHoverColor, 'themeMenuLinkHoverColor', customTheme);\n      themeData.themeMenuButtonColor = R.propOr(themeData.themeMenuLinkColor, 'themeMenuButtonColor', customTheme);\n      themeData.themeMenuButtonHoverColor = R.propOr(themeData.themeMenuLinkHoverColor, 'themeMenuButtonHoverColor', customTheme);\n      themeData.themeSubmenuBackgroundPrimaryColor = R.propOr(backgroundColor, 'themeSubmenuBackgroundPrimaryColor', customTheme);\n      themeData.themeSubmenuBackgroundSecondaryColor = R.propOr(backgroundColor, 'themeSubmenuBackgroundSecondaryColor', customTheme);\n      themeData.themeSubmenuBorderColor = R.propOr(borderColor, 'themeSubmenuBorderColor', customTheme);\n      themeData.themeSubMenuItemBorderColor = R.propOr(themeData.themeMenuItemBorderColor, 'themeSubMenuItemBorderColor', customTheme);\n      themeData.themeSubmenuLinkColor = R.propOr(linkColor, 'themeSubmenuLinkColor', customTheme);\n      themeData.themeSubmenuLinkHoverColor = R.propOr(linkHoverColor, 'themeSubmenuLinkHoverColor', customTheme);\n      themeData.themeSaleColor = R.propOr(saleColor, 'themeSaleColor', customTheme);\n      themeData.themeSaleTextColor = R.propOr(saleTextColor, 'themeSaleTextColor', customTheme);\n      themeData.themeText2Color = R.propOr(textColor, 'themeText2Color', customTheme);\n      themeData.themeText3Color = R.propOr(textColor, 'themeText3Color', customTheme);\n      themeData.themeTextColor = R.propOr(textColor, 'themeTextColor', customTheme);\n      themeData.themeSalePriceTextColor = R.propOr(textColor, 'themeSalePriceTextColor', customTheme);\n      themeData.themeOriginalPriceTextColor = R.propOr(textColor, 'themeOriginalPriceTextColor', customTheme);\n      themeData.themeCampaignHeaderBackgroundColor = R.propOr(secondaryBackgroundColor, 'themeCampaignHeaderBackgroundColor', customTheme);\n      themeData.themeCampaignHeaderTitleColor = R.propOr(themeData.themeTextColor, 'themeCampaignHeaderTitleColor', customTheme);\n      themeData.themeCampaignHeaderSubtitleColor = R.propOr(secondaryBackgroundTextColor, 'themeCampaignHeaderSubtitleColor', customTheme);\n      themeData.themeCampaignHeaderNoticeColor = R.propOr(secondaryBackgroundTextColor, 'themeCampaignHeaderNoticeColor', customTheme);\n      if (themeData) {\n        let stylesToInsert = ':root {';\n        Object.keys(themeData).forEach(key => {\n          stylesToInsert += `--${key}: ${themeData[key]} !important;`;\n        });\n        stylesToInsert += '}';\n        return stylesToInsert;\n      }\n    }\n  });\n});","define(\"client/pods/grapesjs/slider/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/grapesjs/slider/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/grapesjs/slider/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, _ramdaAdjunct) {\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    defaults() {\n      return {\n        src: '',\n        link: '',\n        status: 'active',\n        buttonlabel: '',\n        pixelratio: '2048x1024',\n        ratio: '2:1',\n        schedules: [],\n        applytoall: false\n      };\n    },\n    populate(data, attrs) {\n      data = this._transform(data);\n      data.schedules = this._transformSchedules({\n        data,\n        schedulesProp: 'schedules'\n      });\n      this._super(data, attrs);\n    },\n    _transform({\n      src = '',\n      pixelratio,\n      link,\n      status,\n      buttonlabel,\n      schedules = [],\n      applytoall\n    }) {\n      if (pixelratio) {\n        this.setRatio(pixelratio);\n      }\n      if (link) {\n        this.setData('link', link);\n      }\n      if (status) {\n        this.setData('status', status);\n      }\n      if (buttonlabel) {\n        this.setData('buttonlabel', buttonlabel);\n      }\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(schedules)) {\n        this.setData('schedules', schedules);\n      }\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(applytoall)) {\n        this.setData('applytoall', applytoall);\n      }\n      if (src.includes('placeholder')) {\n        const regex = this.getRegex();\n        this._data.src = R.pipe(R.split(regex), R.head)(src);\n        return this._data;\n      }\n      this._data.src = this.setSrc(src);\n      return this._data;\n    },\n    getRegex() {\n      return new RegExp(/\\d{2,4}x\\d{2,4}/gm);\n    },\n    _transformSchedules({\n      data,\n      schedulesProp\n    }) {\n      const schedules = R.propOr([], schedulesProp)(data);\n      return R.map(schedule => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'status-schedules',\n          data: schedule\n        });\n      })(schedules);\n    },\n    addSchedule({\n      schedule = {},\n      schedulesProp = ''\n    } = {}) {\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(schedulesProp)) {\n        const schedules = this.getData(schedulesProp) || [];\n        const scheduleModel = this.dataManager.setAsRecord({\n          adapterName: 'status-schedules',\n          data: schedule\n        });\n        schedules.pushObject(scheduleModel);\n        this.setData(schedulesProp, schedules);\n      }\n    },\n    statusClass: Ember.computed('_data.status', function () {\n      const status = this.getData('status');\n      if (status === this.constants.status.active) {\n        return 'is-primary';\n      }\n      return 'is-danger';\n    }),\n    activeSchedule: Ember.computed('_data.schedules.@each.isActive', function () {\n      const schedules = this.getData('schedules') || [];\n      return R.find(R.propEq('isActive', true))(schedules);\n    }),\n    nextSchedule: Ember.computed('_data.schedules.@each.isActiveNext', function () {\n      const schedules = this.getData('schedules') || [];\n      return R.find(R.propEq('isActiveNext', true))(schedules);\n    }),\n    getSrcWithRatio: Ember.computed('_data.{src,pixelratio,ratio}', function () {\n      const src = this.getData('src');\n      const pixelratio = this.getData('pixelratio');\n      if (src.includes('placeholder')) {\n        const regex = this.getRegex();\n        const requiredReplacePixelRatio = R.test(regex)(src);\n        if (requiredReplacePixelRatio) {\n          return R.replace(regex, this.getData('pixelratio'))(src);\n        }\n        return `${src}/${pixelratio}/?text=Image`;\n      }\n      return `${src}-/scale_crop/${pixelratio}/center/`;\n    }),\n    isPlaceholder: Ember.computed('_data.src', function () {\n      const src = this.getData('src');\n      return src.includes('placeholder');\n    }),\n    uuid: Ember.computed('_data.src', function () {\n      const getUploadcareUuid = R.pipe(R.pathOr('', ['_data', 'src']), R.split(/https:\\/\\/ucarecdn\\.com\\//), R.pathOr('', [1]), R.split('/'), R.pathOr('', [0]));\n      return getUploadcareUuid(this);\n    }),\n    setSrc(src) {\n      return R.pipe(R.match(/https:\\/\\/ucarecdn\\.com\\/\\S{36}\\//mg), R.head)(src);\n    },\n    setRatio(pixelRatio) {\n      switch (pixelRatio) {\n        case '2048x682':\n          this.setData('ratio', '3:1');\n          this.setData('pixelratio', pixelRatio);\n          break;\n        case '2048x1024':\n          this.setData('ratio', '2:1');\n          this.setData('pixelratio', pixelRatio);\n          break;\n        case '2048x1536':\n          this.setData('ratio', '4:3');\n          this.setData('pixelratio', pixelRatio);\n          break;\n        default:\n          this.setData('ratio', '2:1');\n          this.setData('pixelratio', pixelRatio);\n          break;\n      }\n      return this;\n    },\n    checkOverlapDate({\n      model\n    }) {\n      const schedules = model.getData('schedules') || [];\n      const emptyStartDateZSchedules = R.filter(R.pathEq(['_data', 'dateStartZ'], ''))(schedules);\n      if (R.length(emptyStartDateZSchedules) > 1) {\n        return {\n          hasOverlap: true,\n          ids: R.pipe(R.pluck('_data'), R.pluck('scheduleId'))(emptyStartDateZSchedules)\n        };\n      }\n      const emptyDateEndZSchedules = R.filter(R.pathEq(['_data', 'dateEndZ'], ''))(schedules);\n      if (R.length(emptyDateEndZSchedules) > 1) {\n        return {\n          hasOverlap: true,\n          ids: R.pipe(R.pluck('_data'), R.pluck('scheduleId'))(emptyDateEndZSchedules)\n        };\n      }\n      const emptyStartDateZSchedule = R.head(emptyStartDateZSchedules) || {};\n      const emptyDateEndZSchedule = R.head(emptyDateEndZSchedules) || {};\n      const scheduleWithoutEmptyDate = R.reject(R.anyPass([R.pathEq(['_data', 'startDateZ'], ''), R.pathEq(['_data', 'dateEndZ'], '')]))(schedules);\n      const overlappedIds = [];\n      const hasOverlap = R.pipe(R.sortBy(R.path(['_data', 'dateEndZ'])), R.sortBy(R.path(['_data', 'dateStartZ'])), R.prepend(emptyStartDateZSchedule), R.append(emptyDateEndZSchedule), R.reject(_ramdaAdjunct.default.isNilOrEmpty), _ramdaAdjunct.default.mapIndexed((data, i, sortedDatas) => {\n        const dateEndZ = data.getData('dateEndZ') || '';\n        let nextDateStartZ = '';\n        const nextData = sortedDatas[i + 1];\n        if (_ramdaAdjunct.default.isNotNilOrEmpty(nextData)) {\n          nextDateStartZ = nextData.getData('dateStartZ');\n          if (nextDateStartZ <= dateEndZ) {\n            overlappedIds.push(data.getData('scheduleId'));\n            overlappedIds.push(nextData.getData('scheduleId'));\n            return true;\n          }\n        }\n        return false;\n      }), R.includes(true))(scheduleWithoutEmptyDate);\n      return {\n        hasOverlap,\n        ids: R.uniq(overlappedIds)\n      };\n    }\n  });\n});","define(\"client/pods/guests/documents/sales/invoices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/pods/documents/mixins/adapters\", \"client/pods/documents/model\"], function (_exports, _adapter, _adapters, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adapters.default, {\n    resourcePath: 'api/guests/documents/sales/invoices',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/guests/portal/campaigns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/guests/portal/campaigns',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/guests/portal/campaigns/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/guests/portal/campaigns/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/guests/portal/campaigns/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        match: ['all'],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/guests/portal/campaigns/route\", [\"exports\", \"ember-concurrency\", \"ramda-adjunct\", \"ramda\", \"client/utils/nventor\"], function (_exports, _emberConcurrency, RA, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Route.extend({\n    guests: Ember.inject.service(),\n    server: Ember.inject.service(),\n    search: Ember.inject.service(),\n    model() {\n      const paramsForParent = this.paramsFor('guests.portal');\n      const shopUrlPrefix = paramsForParent?.shop_url_prefix;\n      this.guests.setup(shopUrlPrefix);\n      return {\n        shopUrlPrefix\n      };\n    },\n    ensurePortalCampaignKey(model) {\n      let selectedCampaignKey = this.guests.getPortalSelectedCampaignKey();\n      if (!RA.isNilOrEmpty(selectedCampaignKey)) {\n        return selectedCampaignKey;\n      }\n      const campaigns = model.campaigns ?? [];\n      if (R.length(campaigns) === 1) {\n        const campaign = _nventor.default.safeHeadOr({})(campaigns);\n        selectedCampaignKey = campaign?._data?.campaignKey || '';\n        if (RA.isNotNilOrEmpty(selectedCampaignKey)) {\n          this.guests.setPortalSelectedCampaignKey(selectedCampaignKey);\n        }\n      }\n      return selectedCampaignKey;\n    },\n    fetchCampaignsTask: (0, _emberConcurrency.task)(function* (model, shopUrlPrefix) {\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'guests/portal/campaigns/filters'\n      });\n      const campaigns = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'guests/portal/campaigns',\n        filters: campaignFilters,\n        appendPath: shopUrlPrefix\n      });\n      if (RA.isNotNil(model)) {\n        model.campaignFilters = campaignFilters;\n        model.campaigns = campaigns;\n      }\n    }),\n    afterModel(model) {\n      if (!this.guests.getToken()) {\n        return;\n      }\n      const shopUrlPrefix = model.shopUrlPrefix;\n      if (!shopUrlPrefix) {\n        return;\n      }\n      return this.fetchCampaignsTask.perform(model, shopUrlPrefix);\n    },\n    redirect(model) {\n      const token = this.guests.getToken();\n      if (!token) {\n        const shopUrlPrefix = model?.shopUrlPrefix;\n        if (shopUrlPrefix) {\n          return this.transitionTo('guests.portal.login', shopUrlPrefix);\n        }\n        return this.transitionTo('/');\n      }\n      const selectedCampaignKey = this.ensurePortalCampaignKey(model);\n      if (RA.isNilOrEmpty(selectedCampaignKey)) {\n        model.shouldSelectCampaign = true;\n        return;\n      }\n      const shopUrlPrefix = model.shopUrlPrefix;\n      if (shopUrlPrefix) {\n        return this.transitionTo('guests.portal.report', shopUrlPrefix);\n      }\n    }\n  });\n});","define(\"client/pods/guests/portal/campaigns/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"DVR+WgW5\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"shouldSelectCampaign\\\"]]],null,{\\\"statements\\\":[[0,\\\"  \\\"],[5,\\\"guests/portal/campaigns-modal\\\",[],[[\\\"@shopUrlPrefix\\\",\\\"@campaigns\\\",\\\"@campaignFilters\\\"],[[23,0,[\\\"model\\\",\\\"shopUrlPrefix\\\"]],[23,0,[\\\"model\\\",\\\"campaigns\\\"]],[23,0,[\\\"model\\\",\\\"campaignFilters\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/guests/portal/campaigns/template.hbs\"\n    }\n  });\n});","define(\"client/pods/guests/portal/login/route\", [\"exports\", \"ember-concurrency\"], function (_exports, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Route.extend({\n    guests: Ember.inject.service(),\n    model(params) {\n      const paramsForParent = this.paramsFor('guests.portal');\n      const shopUrlPrefix = paramsForParent?.shop_url_prefix;\n      this.guests.setup(shopUrlPrefix);\n      return {\n        params: paramsForParent\n      };\n    }\n  });\n});","define(\"client/pods/guests/portal/login/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"L2KveTPC\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"guests/portal/login-form\\\",[],[[\\\"@shopUrlPrefix\\\"],[[23,0,[\\\"model\\\",\\\"params\\\",\\\"shop_url_prefix\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/guests/portal/login/template.hbs\"\n    }\n  });\n});","define(\"client/pods/guests/portal/report/lists/sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        component: 'guests/portal/campaign-main/campaign-dashboard',\n        value: 'dashboard',\n        label: 'dashboard',\n        docType: 'sales',\n        docName: 'invoices',\n        tabType: 'replaceSubTab'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/guests/portal/report/route\", [\"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 = Ember.Route.extend({\n    guests: Ember.inject.service(),\n    model() {\n      const paramsForParent = this.paramsFor('guests.portal');\n      const shopUrlPrefix = paramsForParent?.shop_url_prefix;\n      this.guests.setup(shopUrlPrefix);\n      const campaignKey = this.guests.getPortalSelectedCampaignKey();\n      return {\n        campaignKey,\n        shopUrlPrefix\n      };\n    },\n    redirect(model) {\n      const token = this.guests.getToken();\n      if (!token) {\n        const shopUrlPrefix = model.shopUrlPrefix;\n        if (shopUrlPrefix) {\n          return this.transitionTo('guests.portal.login', shopUrlPrefix);\n        }\n        return this.transitionTo('/');\n      }\n    }\n  });\n});","define(\"client/pods/guests/portal/report/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"0M3BdBoC\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"guests/portal/app-logged-in\\\",null,[[\\\"campaignKey\\\"],[[24,[\\\"model\\\",\\\"campaignKey\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/guests/portal/report/template.hbs\"\n    }\n  });\n});","define(\"client/pods/guests/service\", [\"exports\", \"client/config/environment\", \"client/utils/nventor\", \"ramda\"], function (_exports, _environment, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Service.extend({\n    auth: Ember.inject.service(),\n    server: Ember.inject.service(),\n    storage: Ember.inject.service(),\n    router: Ember.inject.service(),\n    host: _environment.default.APP.serverUrl,\n    shop: _environment.default.APP.shopUrl,\n    resource: '',\n    setup(resource) {\n      this.set('resource', resource);\n      this.set('isGuest', true);\n    },\n    call(method, path, data = {}) {\n      const token = this.getToken();\n      return this.server.call(method, path, data, token);\n    },\n    setToken(token) {\n      return this.storage.setWithPrefix(this.resource, 'guestToken', token);\n    },\n    /**\n     * Set to local storage\n     * @param {{key: string, value: any}} args\n     */\n    setToLocalStorage({\n      key,\n      value\n    }) {\n      return this.storage.setWithPrefix(this.resource, key, value);\n    },\n    /**\n     * Get to local storage\n     * @param {{key: string}} args\n     */\n    getToLocalStorage({\n      key\n    }) {\n      return this.storage.getWithPrefix(this.resource, key);\n    },\n    getPortalSelectedCampaignKey() {\n      return this.getToLocalStorage({\n        key: 'portalSelectedCampaignKey'\n      });\n    },\n    setPortalSelectedCampaignKey(value) {\n      return this.setToLocalStorage({\n        key: 'portalSelectedCampaignKey',\n        value\n      });\n    },\n    isNewWayLogin() {\n      return this.getToLocalStorage({\n        key: 'isNewWay'\n      });\n    },\n    redirectToNewWay() {\n      this.setToken('');\n      const url = `${this.shop}/${this.resource}/influencer/logout`;\n      window.open(url, '_self');\n    },\n    getToken() {\n      const params = _nventor.default.parseParams(window.location);\n      const tokenParams = R.prop('token')(params);\n      const isNewWay = R.propEq('isNewWay', 'true')(params);\n      if (tokenParams) {\n        this.setToLocalStorage({\n          key: 'isNewWay',\n          value: isNewWay\n        });\n        this.setToken(tokenParams);\n        // Remove token from url\n        window.history.pushState({}, document.title, window.location.pathname);\n        return tokenParams;\n      }\n      return this.storage.getWithPrefix(this.resource, 'guestToken');\n    },\n    getTokenData() {\n      const token = this.getToken();\n      const tokenData = this.auth.parseToken(token);\n      // Identify the guest to Sentry here (rather than once at setup) so it runs\n      // on both fresh page load and reload rehydration -- the guest report flow\n      // reads tokenData on render. Only identify once a token exists so guests\n      // still on the login redirect aren't tagged as a session.\n      if (token) {\n        this.auth.identifyGuestToSentry(tokenData, this.resource);\n      }\n      return tokenData;\n    },\n    logout() {\n      this.setToken('');\n      const resource = this?.router?.currentRoute?.params?.guest_resource;\n      if (resource) {\n        const url = `${this.shop}/${this.resource}/influencer/logout`;\n        window.open(url, '_self');\n        return;\n      }\n      return this.router.transitionTo('/');\n    }\n  });\n});","define(\"client/pods/guests/shop/campaigns/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    emails: Ember.inject.service(),\n    // resourcePath: 'api/protected/channels/shop/campaigns',\n    resourcePath: 'api/guests/channels/shop/campaigns',\n    idParam: false,\n    modelObj: _model.default,\n    serialize(model) {\n      const data = this._super(model);\n      data.orderedEmailCopyTo = this.emails.splitToArray(data.orderedEmailCopyTo);\n      delete data.details;\n      return data;\n    }\n  });\n});","define(\"client/pods/guests/shop/campaigns/commissions/adjustment/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/adjustment/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/guests/channels/shop/campaigns/commissions/adjustment',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/guests/shop/campaigns/commissions/all/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/all/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/guests/channels/shop/campaigns/commissions',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/guests/shop/campaigns/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/guests/channels/shop/campaigns/details',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/guests/shop/campaigns/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/guests/shop/campaigns/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: 'api/guests/channels/shop/campaigns/products',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/guests/shop/campaigns/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/guests/shop/login/route\", [\"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 = Ember.Route.extend({\n    guests: Ember.inject.service(),\n    model(params) {\n      const guestResource = params.guest_resource;\n      this.guests.setup(guestResource);\n      this.guests.redirectToNewWay();\n      return;\n    }\n  });\n});","define(\"client/pods/guests/shop/login/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Gmyl+lbW\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"u-section\\\"],[8],[0,\\\"\\\\n  \\\"],[5,\\\"helpers/is-loading\\\",[],[[\\\"@isRunning\\\"],[true]]],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/guests/shop/login/template.hbs\"\n    }\n  });\n});","define(\"client/pods/guests/shop/report/lists/sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        component: 'guests/campaign-main/campaign-report',\n        value: 'report',\n        label: 'report',\n        docType: 'sales',\n        docName: 'invoices',\n        tabType: 'replaceSubTab'\n      }, {\n        component: 'guests/campaign-main/campaign-products',\n        value: 'products',\n        label: 'products',\n        tabType: 'replaceSubTab'\n      }, {\n        component: 'guests/campaign-main/campaign-activity',\n        value: 'activity',\n        label: 'activity',\n        docType: 'sales',\n        docName: 'invoices',\n        tabType: 'replaceSubTab'\n      }, {\n        value: 'commissions',\n        label: 'commissions',\n        component: 'guests/campaign-main/campaign-commissions',\n        tabType: 'replaceSubTab'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/guests/shop/report/route\", [\"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 = Ember.Route.extend({\n    guests: Ember.inject.service(),\n    model(params) {\n      const guestResource = params.guest_resource;\n      this.guests.setup(guestResource);\n      return {\n        guestResource\n      };\n    },\n    redirect(model) {\n      const token = this.guests.getToken();\n      if (!token) {\n        const resource = model.guestResource;\n        return this.transitionTo('guests.shop.login', resource);\n      }\n    }\n  });\n});","define(\"client/pods/guests/shop/report/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"D/NwFGDZ\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[28,\\\"guests/app-logged-in\\\",null,[[\\\"guestResource\\\"],[[24,[\\\"model\\\",\\\"guestResource\\\"]]]]],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/guests/shop/report/template.hbs\"\n    }\n  });\n});","define(\"client/pods/guide-menu/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _model, R, RA, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor; // import { computed } from '@ember/object'\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 TabGuideMenuModel = _exports.default = (_dec = Ember._tracked, _class = class TabGuideMenuModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"menu\", _descriptor, this);\n    }\n    /**\n     * Used for comparison in template\n     * @returns {String} Specific className of current active guide menu tab\n     */\n    get activeMenuClassName() {\n      const className = this.currentActiveGuideMenu?.className || '';\n      return className;\n    }\n\n    /**\n     * Used for comparison in template\n     * @returns {String} Specific className of current active guide menu item\n     */\n    get activeMenuItemClassName() {\n      const subs = R.pipe(R.propOr([], 'sub'), R.filter(R.propEq('showActive', true)))(this.currentActiveGuideMenu);\n      if (RA.isNotNilOrEmpty(subs)) {\n        return subs?.[0]?.className;\n      }\n      return '';\n    }\n\n    /**\n     * Used to provide current active guide menu\n     * @returns {Object}\n     */\n    get currentActiveGuideMenu() {\n      const menu = this.menu || [];\n      const allActiveTabs = R.filter(R.propEq('showActive', true))(menu);\n      return _nventor.default.safeHeadOr({}, allActiveTabs);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"menu\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"client/pods/guides/service\", [\"exports\", \"ember-concurrency-decorators\", \"ember-concurrency\", \"ramda\"], function (_exports, _emberConcurrencyDecorators, _emberConcurrency, R) {\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, _dec0, _dec1, _dec10, _dec11, _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 VISIBLE_TAB_SELECTOR = '.tab-parent.tab-visible';\n  const START_GUIDE_ATTEMPTS = 6;\n  const START_GUIDE_RETRY_MS = 500;\n\n  /**\n   * Plays New Feature tours.\n   * A guide here is a documentation model of type 'isNewFeature'; its steps point at\n   * elements by their data-guide-id.\n   */\n  let GuidesService = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _class = class GuidesService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"playingGuide\", _descriptor3, this);\n      _initializerDefineProperty(this, \"playableSteps\", _descriptor4, this);\n      _initializerDefineProperty(this, \"stepIndex\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isPreview\", _descriptor6, this);\n      _initializerDefineProperty(this, \"setupSearchVersion\", _descriptor7, this);\n      _defineProperty(this, \"finishedGuideKeys\", new Set());\n      _defineProperty(this, \"allSteps\", []);\n    }\n    /**\n     * Current step of the playing guide.\n     * @return {Object|undefined} current step\n     * @return {string} return.guideId - data-guide-id of the row the step points at\n     * @return {string} return.note - step note html\n     */\n    get currentStep() {\n      return this.playableSteps[this.stepIndex];\n    }\n\n    /**\n     * Whether the current step is the last playable step.\n     * @return {boolean}\n     */\n    get isLastStep() {\n      return this.stepIndex >= this.playableSteps.length - 1;\n    }\n\n    /**\n     * Tell the setup helper to search New Features in setup again.\n     */\n    bumpSetupSearchVersion() {\n      this.setupSearchVersion = this.setupSearchVersion + 1;\n    }\n\n    /**\n     * Documentation resource of the visible screen, the same value the New Feature popup uses.\n     * The last visible header wins, so a nested screen beats the tab around it.\n     * @return {string} data-documentation-resource, or ''\n     */\n    getVisibleDocumentationResource() {\n      const selector = `${VISIBLE_TAB_SELECTOR} [data-documentation-resource]`;\n      const headers = Array.from(document.querySelectorAll(selector));\n      const visibleHeader = R.findLast(header => this.isElementVisible(header))(headers);\n      return visibleHeader?.dataset?.documentationResource || '';\n    }\n\n    /**\n     * Whether an element is rendered and shown.\n     * An element inside a tab must be in the visible top-level tab. App chrome, such as a tab header, is outside every tab and counts when it is on screen.\n     * @param {HTMLElement} element - element to check\n     * @return {boolean}\n     */\n    isElementVisible(element) {\n      if (!element) {\n        return false;\n      }\n      const isUnderHiddenElement = Boolean(element.closest('[hidden]'));\n      if (isUnderHiddenElement) {\n        return false;\n      }\n      if (element.getClientRects().length === 0) {\n        return false;\n      }\n      const tab = element.closest('.tab-parent');\n      if (!tab) {\n        return true;\n      }\n      return tab.classList.contains('tab-visible');\n    }\n\n    /**\n     * Guide id of the picked element, and the parent guide id when one wraps it.\n     * The parent is the next ancestor with its own data-guide-id, such as the header around a button.\n     * @param {HTMLElement} element - element the user picked\n     * @return {Object} ids\n     * @return {string} return.guideId - data-guide-id, or ''\n     * @return {string} return.parentGuideId - ancestor data-guide-id, or ''\n     */\n    findGuideTarget(element) {\n      const guideElement = element?.closest?.('[data-guide-id]');\n      if (!this.isElementVisible(guideElement)) {\n        return {\n          guideId: '',\n          parentGuideId: ''\n        };\n      }\n      const guideId = guideElement.dataset.guideId || '';\n      const parentElement = guideElement.parentElement?.closest?.('[data-guide-id]');\n      let parentGuideId = '';\n      if (parentElement && this.isElementVisible(parentElement)) {\n        parentGuideId = parentElement.dataset.guideId || '';\n      }\n      return {\n        guideId,\n        parentGuideId\n      };\n    }\n\n    /**\n     * Guide id of the nearest visible element that contains the picked element.\n     * @param {HTMLElement} element - element the user picked\n     * @return {string} data-guide-id, or ''\n     */\n    findGuideIdFromElement(element) {\n      return this.findGuideTarget(element).guideId;\n    }\n\n    /**\n     * First visible element with this guide id.\n     * When parentGuideId is set, the search stays inside that ancestor.\n     * Elements in a hidden tab are skipped. Elements outside any tab, such as a tab header, are included.\n     * @param {string} guideId - data-guide-id to look for\n     * @param {string} [parentGuideId] - ancestor data-guide-id to search inside\n     * @return {HTMLElement|null}\n     */\n    findVisibleGuideElement(guideId, parentGuideId) {\n      if (!guideId) {\n        return null;\n      }\n      const guideSelector = `[data-guide-id=\"${CSS.escape(guideId)}\"]`;\n      const selector = parentGuideId ? `[data-guide-id=\"${CSS.escape(parentGuideId)}\"] ${guideSelector}` : guideSelector;\n      const matchingElements = Array.from(document.querySelectorAll(selector));\n      return R.find(element => this.isElementVisible(element))(matchingElements) || null;\n    }\n\n    /**\n     * Start playing a guide with the steps whose element is visible now.\n     * Refuses while another guide is playing, so two popups cannot start two tours.\n     * @param {Object} args\n     * @param {Object} args.guide - documentation model of type isNewFeature\n     * @param {Object} args.guide._data - documentation data\n     * @param {string} args.guide._data._key - documentation key, used to mark read once\n     * @param {Object[]} args.steps - steps to play, in order\n     * @param {string} args.steps[].guideId - data-guide-id of the row the step points at\n     * @param {string} args.steps[].note - step note html\n     * @param {boolean} [args.isPreview=false] - operator preview of draft steps, never marks read\n     * @return {boolean} true when playback started\n     */\n    startGuide({\n      guide,\n      steps,\n      isPreview = false\n    }) {\n      if (this.playingGuide) {\n        return false;\n      }\n      const authoredSteps = steps || [];\n      const playableSteps = R.addIndex(R.filter)((step, index) => {\n        const isVisible = Boolean(this.findVisibleGuideElement(step?.guideId, step?.parentGuideId));\n        if (isVisible) {\n          return true;\n        }\n\n        // The previous step opens this one with a click, so it is not on screen yet.\n        return Boolean(authoredSteps[index - 1]?.advanceOnClick);\n      })(authoredSteps);\n      if (R.isEmpty(playableSteps)) {\n        return false;\n      }\n      this.playingGuide = guide;\n      this.allSteps = steps || [];\n      this.playableSteps = playableSteps;\n      this.stepIndex = 0;\n      this.isPreview = isPreview;\n      this.closeHelpSidebar();\n      return true;\n    }\n\n    /**\n     * Close the open Help sidebar in the visible tab so the guide has room.\n     */\n    closeHelpSidebar() {\n      const closeButton = document.querySelector('.tab-parent.tab-visible .layouts__close-btn-container .delete');\n      closeButton?.click();\n    }\n\n    /**\n     * Start a guide, retrying for a few seconds because the rows may render after the popup fetch.\n     * When no step becomes visible nothing plays and the guide stays unread.\n     * @param {Object} args - same arguments as startGuide\n     * @param {Object} args.guide - documentation model of type isNewFeature\n     * @param {Object[]} args.steps - steps to play, in order\n     * @param {string} args.steps[].guideId - data-guide-id of the row the step points at\n     * @param {string} args.steps[].note - step note html\n     * @param {boolean} [args.isPreview=false] - operator preview of draft steps, never marks read\n     * @return {boolean} true when playback started\n     */\n    *startGuideTask({\n      guide,\n      steps,\n      isPreview = false\n    }) {\n      for (let attempt = 1; attempt <= START_GUIDE_ATTEMPTS; attempt++) {\n        if (this.startGuide({\n          guide,\n          steps,\n          isPreview\n        })) {\n          return true;\n        }\n\n        // another tour is on screen: waiting would only start this one on top of it later\n        if (this.playingGuide) {\n          return false;\n        }\n        if (attempt < START_GUIDE_ATTEMPTS) {\n          yield (0, _emberConcurrency.timeout)(START_GUIDE_RETRY_MS);\n        }\n      }\n      return false;\n    }\n\n    /**\n     * After a click-to-continue step, wait until the next authored step is on screen, then move to it.\n     * The click's own action still runs. The wait covers a panel or list that renders after that click.\n     */\n    *continueToNextStepTask() {\n      if (!this.playingGuide) {\n        return;\n      }\n      if (this.isLastStep) {\n        this.finishGuide();\n        return;\n      }\n      const currentStep = this.playableSteps[this.stepIndex];\n      const authoredSteps = this.allSteps || [];\n      const authoredIndex = authoredSteps.indexOf(currentStep);\n      const nextAuthoredStep = authoredIndex >= 0 ? authoredSteps[authoredIndex + 1] : this.playableSteps[this.stepIndex + 1];\n      if (!nextAuthoredStep) {\n        this.finishGuide();\n        return;\n      }\n      let isNextStepVisible = Boolean(this.findVisibleGuideElement(nextAuthoredStep.guideId, nextAuthoredStep.parentGuideId));\n      if (!isNextStepVisible) {\n        for (let attempt = 1; attempt <= START_GUIDE_ATTEMPTS; attempt++) {\n          yield (0, _emberConcurrency.timeout)(START_GUIDE_RETRY_MS);\n          if (!this.playingGuide) {\n            return;\n          }\n          isNextStepVisible = Boolean(this.findVisibleGuideElement(nextAuthoredStep.guideId, nextAuthoredStep.parentGuideId));\n          if (isNextStepVisible) {\n            break;\n          }\n        }\n      }\n      if (!this.playingGuide) {\n        return;\n      }\n      const followingStep = this.playableSteps[this.stepIndex + 1];\n      if (followingStep !== nextAuthoredStep) {\n        this.playableSteps = R.insert(this.stepIndex + 1, nextAuthoredStep, this.playableSteps);\n      }\n      this.nextStep();\n    }\n\n    /**\n     * Move to the previous step.\n     */\n    previousStep() {\n      if (this.stepIndex === 0) {\n        return;\n      }\n      this.stepIndex = this.stepIndex - 1;\n    }\n\n    /**\n     * Move to the next step.\n     */\n    nextStep() {\n      if (this.isLastStep) {\n        return;\n      }\n      this.stepIndex = this.stepIndex + 1;\n    }\n\n    /**\n     * End playback before the last step. The guide is not shown again.\n     * Asks first, because a merchant guide is marked read and does not start again.\n     */\n    skipGuide() {\n      const warning = this.isPreview ? this.intl.t('are you sure you want to close?') : this.intl.t('are you sure you want to close this guide?');\n      if (!window.confirm(warning)) {\n        return;\n      }\n      this.endGuide();\n    }\n\n    /**\n     * End playback after the last step.\n     */\n    finishGuide() {\n      this.endGuide();\n    }\n\n    /**\n     * Clear playback state and mark a merchant guide as read.\n     */\n    endGuide() {\n      const guide = this.playingGuide;\n      const shouldMarkAsRead = !this.isPreview;\n      this.playingGuide = null;\n      this.playableSteps = [];\n      this.allSteps = [];\n      this.stepIndex = 0;\n      this.isPreview = false;\n      if (shouldMarkAsRead) {\n        this.markGuideAsRead(guide);\n      }\n    }\n\n    /**\n     * Mark a New Feature as read on the server, once per session.\n     * @param {Object} guide - documentation model of type isNewFeature\n     * @param {Object} guide._data - documentation data\n     * @param {string} guide._data._key - documentation key\n     */\n    markGuideAsRead(guide) {\n      const guideKey = guide?._data?._key;\n      if (!guideKey) {\n        return;\n      }\n      if (this.finishedGuideKeys.has(guideKey)) {\n        return;\n      }\n      this.finishedGuideKeys.add(guideKey);\n      this.applicationService.markAsReadTask.perform(guide);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"playingGuide\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"playableSteps\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"stepIndex\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isPreview\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"setupSearchVersion\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"bumpSetupSearchVersion\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"bumpSetupSearchVersion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startGuide\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"startGuide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startGuideTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"startGuideTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"continueToNextStepTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"continueToNextStepTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"previousStep\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"previousStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextStep\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"nextStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"skipGuide\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"skipGuide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"finishGuide\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"finishGuide\"), _class.prototype), _class);\n});","define(\"client/pods/helpers/service\", [\"exports\", \"ramda-extension\"], function (_exports, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\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  let HelpersService = _exports.default = (_dec = Ember._action, _class = class HelpersService extends Ember.Service {\n    setValue(model, prop, value) {\n      Ember.set(model, prop, value);\n    }\n    setValueFromModel(model, prop, fromModelProp, fromModel) {\n      const fromModelValue = R_.dotPath(fromModelProp)(fromModel) || '';\n      Ember.set(model, prop, fromModelValue);\n    }\n    unsetValue(model, prop, value) {\n      Ember.set(model, prop, value);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"setValue\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"setValue\"), _class.prototype), _class);\n});","define(\"client/pods/home/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/home/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\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 HomeAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"resourcePath\", 'api/protected/home');\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", '_id');\n    }\n  }\n  _exports.default = HomeAdapter;\n});","define(\"client/pods/home/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, R, RA, _model, _model2, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class HomeModel extends _model.default {\n    defaults() {\n      return {};\n    }\n  }\n  _exports.default = HomeModel;\n});","define(\"client/pods/ifetch/service\", [\"exports\", \"client/config/environment\", \"ramda-adjunct\", \"ramda\"], function (_exports, _environment, RA, R) {\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 IfetchService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _class = class IfetchService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"guests\", _descriptor, this);\n      _initializerDefineProperty(this, \"storage\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _defineProperty(this, \"host\", _environment.default.APP.serverJobsUrl);\n    }\n    async iFetch({\n      url,\n      path = '',\n      method = 'GET',\n      data,\n      isReturnAsPdfUrl = false\n    } = {}) {\n      const token = this.storage.get('token') || this.guests.getToken();\n      const options = {\n        method,\n        headers: {\n          'Content-Type': 'application/json; charset=UTF-8'\n        }\n      };\n      if (!url) {\n        const headers = {\n          Authorization: `Bearer ${token}`\n        };\n        options.headers = R.pipe(R.propOr({}, 'headers'), R.mergeLeft(headers))(options);\n      }\n      if (data && method === 'GET') {\n        const searchParams = new URLSearchParams(data);\n        path += `?${searchParams.toString()}`;\n      } else if (data) {\n        options.body = JSON.stringify(data);\n      }\n      url = url || `${this.host}/${path}`;\n      try {\n        const response = await fetch(url, options);\n        if (!response.ok) {\n          const error = await this._readErrorBody(response);\n          const message = this.intl.t(error.message);\n          window.alert(message);\n          return error;\n        }\n        const contentType = response.headers.get('Content-Type');\n        if (contentType === 'application/pdf') {\n          const filename = response.headers.get('content-disposition').split(';').find(n => n.includes('filename=')).replace('filename=', '').trim();\n          const blob = await response.blob();\n          const url = window.URL.createObjectURL(blob);\n          if (isReturnAsPdfUrl) {\n            return url;\n          }\n          const a = document.createElement('a');\n          a.style.display = 'none';\n          a.href = url;\n          a.download = filename;\n          document.body.appendChild(a);\n          a.click();\n          window.URL.revokeObjectURL(url);\n        } else if (contentType.includes('application/json')) {\n          return response.json();\n        } else if (contentType.includes('text/html')) {\n          const data = await response.text();\n          if (RA.isNotNilOrEmpty(data)) {\n            // const newWindow = window.open('', '_blank', 'width=750,height=850')\n            // if (!newWindow) {\n            //   const message = this.intl.t('please allow popups to open')\n            //   window.alert(message)\n            //   return\n            // }\n            // newWindow.document.write(data)\n            // newWindow.document.close()\n            return data;\n          }\n        }\n        return response;\n      } catch (error) {\n        console.error('iFetch error', error);\n        window.alert(this.intl.t('error occurred please try again later'));\n      }\n    }\n    async _readErrorBody(response) {\n      const rawBody = await response.text();\n      try {\n        return JSON.parse(rawBody);\n      } catch (parseError) {\n        console.error('iFetch non-JSON error response', response.status, rawBody);\n        return {\n          message: 'error occurred please try again later'\n        };\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"guests\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"storage\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/index/route\", [\"exports\", \"client/utils/nventor\"], function (_exports, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Route.extend({\n    // inject ember intl service\n    auth: Ember.inject.service(),\n    queryParams: {\n      reload: {\n        refreshModel: true\n      },\n      lang: {\n        refreshModel: false\n      },\n      app: {\n        refreshModel: false\n      },\n      redirect: {\n        refreshModel: false\n      }\n    },\n    model(params) {\n      return {\n        params\n      };\n    },\n    /**\n     * Reloads when asked to, and signs in with a one-time beta login code when the address carries one.\n     *\n     * @param {Object} model - index route model\n     * @param {Object} model.params - index route query params\n     * @param {boolean} model.params.reload - reload the page once\n     * @returns {void}\n     */\n    redirect(model) {\n      const params = model.params || {};\n      if (params.reload) {\n        _nventor.default.removeAndUpdateQueryParams(['reload']);\n        window.location.reload();\n        return;\n      }\n\n      // `code` is read once from the address instead of being a route query param,\n      // so it does not stick to the route and get retried after a later logout\n      const betaLoginCode = new URLSearchParams(window.location.search).get('code');\n      if (!betaLoginCode) {\n        return;\n      }\n      _nventor.default.removeAndUpdateQueryParams(['code']);\n      this.auth.exchangeBetaLoginCodeTask.perform(betaLoginCode);\n    }\n  });\n});","define(\"client/pods/index/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"Lpzq6RGo\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@model\\\"],\\\"statements\\\":[[5,\\\"public/login-page\\\",[],[[\\\"@params\\\"],[[23,1,[\\\"params\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/index/template.hbs\"\n    }\n  });\n});","define(\"client/pods/influencer/service\", [\"exports\", \"ember-concurrency-decorators\"], function (_exports, _emberConcurrencyDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 InfluencerService = _exports.default = (_dec = Ember.inject.service('server'), _class = class InfluencerService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"serverService\", _descriptor, this);\n    }\n    /**\n     * Update influencer profile\n     * @param {string} memberId\n     * @param {Object|any} payload\n     * @returns {Generator<*, void, *>}\n     */\n    *updateInfluencerStatusTask(memberId, payload) {\n      const path = `api/protected/influencer/${memberId}`;\n      yield this.serverService.call('PATCH', path, payload);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"serverService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateInfluencerStatusTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateInfluencerStatusTask\"), _class.prototype), _class);\n});","define(\"client/pods/languages/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/languages',\n    modelObj: _model.default,\n    idParam: 'value',\n    findAll() {\n      const data = [{\n        value: 'en-us',\n        label: 'English'\n      }, {\n        value: 'zh-tw',\n        label: '繁體中文'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/ledgers/accounts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/ledgers/accounts',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/ledgers/accounts/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/ledgers/accounts/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/ledgers/accounts/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        match: ['all'],\n        contra: '',\n        statuses: [this.get('constants.status.active')],\n        sort: [{\n          by: 'code',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/ledgers/accounts/lists/account-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'assets',\n        label: 'assets'\n      }, {\n        value: 'liabilities',\n        label: 'liabilities'\n      }, {\n        value: 'equity',\n        label: 'equity'\n      }, {\n        value: 'revenue',\n        label: 'revenue'\n      }, {\n        value: 'expenses',\n        label: 'expenses'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/ledgers/accounts/lists/banks/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/ledgers/accounts/banks',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/ledgers/accounts/lists/contra-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'contacts',\n        label: 'contacts'\n      }, {\n        value: 'ledgerAccount',\n        label: 'ledger account'\n      }, {\n        value: 'bankTransfer',\n        label: 'bank transfer'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/ledgers/journals/cashbook/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/ledgers/journals/cashbook/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/ledgers/journals/cashbook',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/ledgers/journals/cashbook/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/ledgers/journals/cashbook/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/ledgers/journals/cashbook/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        contraTypes: [],\n        dateZ: '',\n        date: '',\n        relationships: [],\n        accountCode: '',\n        description: '',\n        amount: '',\n        discount: '',\n        total: '',\n        comments: '',\n        match: ['all'],\n        contra: '',\n        accountWhenIsBank: '',\n        sort: [\n        // doesn't work\n        {\n          by: 'dateZ',\n          direction: 'DESC'\n        }, {\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    },\n    contraTypesCount: Ember.computed('_data.contraTypes.[]', function () {\n      return this.getPropLength('_data.contraTypes');\n    }),\n    relationshipCount: Ember.computed('_data.relationships.[]', function () {\n      return this.getPropLength('_data.relationships');\n    })\n  });\n});","define(\"client/pods/ledgers/journals/cashbook/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'overview',\n        value: 'overview',\n        component: 'ledgers/journals/cashbook/panels-display',\n        allowNewDetail: false,\n        txType: '',\n        docType: '',\n        tabType: 'replaceSubTab'\n      }, {\n        label: 'receipts',\n        value: 'receipts',\n        component: 'ledgers/journals/cashbook/panels-display',\n        allowNewDetail: true,\n        txType: 'cashIn',\n        docType: 'sales',\n        tabType: 'replaceSubTab'\n      }, {\n        label: 'payments',\n        value: 'payments',\n        component: 'ledgers/journals/cashbook/panels-display',\n        allowNewDetail: true,\n        txType: 'cashOut',\n        docType: 'purchases',\n        tabType: 'replaceSubTab'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/ledgers/journals/cashbook/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/settings\"], function (_exports, _model, _settings) {\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(_settings.default, {\n    /**\n     * calculate payment after discount total\n     */\n    calculateTotals: Ember.observer('_data.amount', '_data.discount', function () {\n      const roundingCurrency = this.roundingCurrency;\n      const amountBig = this.getDataBig('amount');\n      const discountBig = this.getDataBig('discount');\n      const total = amountBig.plus(discountBig).toFixed(roundingCurrency);\n      this.setData('total', total);\n    }),\n    isMinRequiredMet: Ember.computed('_data.{total,ledgersAccountKey,contactKey,transferToAccountKey}', function () {\n      // @TODO: should also check contactKey, date etc..\n      const total = this.getData('total');\n      const ledgersAccountKey = this.getData('ledgersAccountKey');\n      const contactKey = this.getData('contactKey');\n      const transferToAccountKey = this.getData('transferToAccountKey');\n      if (!ledgersAccountKey && !contactKey && !transferToAccountKey) {\n        return false;\n      }\n      if (total === '') {\n        return false;\n      }\n      if (total >= 0) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/members-menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/members-menu/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/members-menu',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/members-menu/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/members-menu/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/members-menu/collection',\n    modelObj: _model.default,\n    idParam: 'userKey',\n    idPrefix: 'members-menu/collection'\n  });\n});","define(\"client/pods/members-menu/collection/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    populate(data = {}) {\n      data.collection = this._transformCollection(data);\n      this._super(...arguments);\n    },\n    _transformCollection(data) {\n      return R.pipe(R.propOr([], 'collection'), R.map(menuData => {\n        menuData.isPinned = true;\n        return this.dataManager.setAsRecord({\n          adapterName: 'members-menu',\n          data: menuData\n        });\n      }))(data);\n    },\n    // moved to members-menu/collection computed prop\n    allowedUserMenu: Ember.computed('crud.lists.application-lists-main.[]', 'synced', 'settings.settingsModel.synced', 'settings.settingsModel._data.beta.billing', function () {\n      const allowed = R.pathOr([], ['crud', 'lists', 'application-lists-main'])(this);\n      const allPinned = R.pathOr([], ['_data', 'collection'])(this);\n      const userFavoriteMenu = this.applicationService.processMenu({\n        allowed,\n        allPinned,\n        onlyPinned: true\n      }) || [];\n      const favoritesData = {\n        isFavorites: true,\n        label: 'favorites',\n        pinLabel: 'favorites',\n        translate: true,\n        isExpanded: true,\n        icon: 'fas fa-star',\n        sub: userFavoriteMenu\n      };\n      const favoriteMenu = this.crud.setupNewRecord({\n        adapterName: 'members-menu',\n        data: favoritesData\n      });\n      return RA.list(favoriteMenu);\n    })\n  });\n});","define(\"client/pods/members-menu/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/members-menu/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/members-menu/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        userKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'ASC'\n        }],\n        type: ''\n      };\n    }\n  });\n});","define(\"client/pods/members-menu/groups-sub/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/members-menu/model\", [\"exports\", \"client/pods/base/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    populate(data, attrs) {\n      data.groups = this._transformGroups(data.groups);\n      data.sub = this._transformSub(data.sub);\n      this._super(...arguments);\n    },\n    _transformGroups(groups = []) {\n      return groups.map(group => {\n        return group.map(data => {\n          data.sub = this._transformSubNested(data.sub);\n          return this.dataManager.setPartialRecord({\n            adapterName: 'members-menu/groups-sub',\n            data\n          });\n        });\n      });\n    },\n    _transformSub(sub = []) {\n      return sub.map(data => {\n        data.groups = this._transformGroups(data.groups);\n        data.sub = this._transformSubNested(data.sub);\n        return this.dataManager.setPartialRecord({\n          adapterName: 'members-menu/groups-sub',\n          data\n        });\n      });\n    },\n    _transformSubNested(sub = []) {\n      return sub.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'members-menu/groups-sub',\n          data\n        });\n      });\n    }\n  });\n});","define(\"client/pods/messages/message/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/messages/message/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    createPath: 'api/protected/bot/send-message',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/messages/message/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /*globals R */\n  var _default = _exports.default = _model.default.extend({\n    defaults() {\n      return {\n        sender: '',\n        recipient: '',\n        message: {\n          type: '',\n          payload: {}\n        },\n        timestampZ: ''\n      };\n    },\n    getQuickReplies() {\n      const model = this.getData('message');\n      return R.pathOr({}, ['payload', 'options'])(model);\n    }\n  });\n});","define(\"client/pods/messages/messages/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/messages/messages/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/messages/facebook/messages',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/messages/messages/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/messages/messages/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/messages/messages/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        match: ['all'],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/messages/messages/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /*globals R */\n  var _default = _exports.default = _model.default.extend({\n    defaults() {\n      return {\n        sender: '',\n        recipient: '',\n        message: {\n          type: '',\n          payload: {}\n        },\n        timestampZ: ''\n      };\n    },\n    getQuickReplies() {\n      const model = this.getData('message');\n      return R.pathOr({}, ['payload', 'options'])(model);\n    }\n  });\n});","define(\"client/pods/messages/users/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/messages/users/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/messages/facebook/users',\n    modelObj: _model.default,\n    idParam: 'specialId'\n  });\n});","define(\"client/pods/messages/users/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/messages/users/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/messages/users/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        query: '',\n        match: ['all'],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/messages/users/model\", [\"exports\", \"ramda\", \"client/pods/base/model\"], function (_exports, R, _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    defaults() {\n      return {\n        pageName: '',\n        pageId: '',\n        id: '',\n        firstName: '',\n        lastName: '',\n        locale: '',\n        timezone: 0,\n        gender: '',\n        name: '',\n        profilePic: 'https://img.icons8.com/wired/2x/circled-user.png',\n        timestampZ: '',\n        unreadMessages: 0\n      };\n    },\n    populate(data) {\n      data = this.transformMessages(data);\n      this.overwriteData(data);\n    },\n    transformMessages(data) {\n      let lastTimestampZ = '';\n      data.messages = R.pipe(R.propOr([], 'messages'), R.map(messageData => {\n        const id = R.pathOr(false, ['_data', '_id'], messageData) || R.pathOr(false, ['_id'], messageData);\n        if (!id) {\n          return false;\n        }\n        if (messageData._data) {\n          lastTimestampZ = messageData._data.timestampZ;\n          return messageData;\n        }\n        lastTimestampZ = messageData.timestampZ;\n        return this.dataManager.setAsRecord({\n          adapterName: 'messages/messages',\n          data: messageData\n        });\n      }), R.reject(R.equals(false)))(data);\n      data.timestampZ = lastTimestampZ;\n      return data;\n    },\n    setupMessages(messages = []) {\n      const data = this.transformMessages({\n        messages\n      });\n      this.setData('messages', data.messages);\n      this.setData('timestampZ', data.timestampZ);\n      this.setData('totalMessages', data.messages.length);\n    },\n    //\n    // newMessageModel({ pageId, recipient, message }) {\n    //   return this.dataManager.setAsRecord({\n    //     adapterName: 'messages/messages',\n    //     data: {\n    //       pageId,\n    //       sender: pageId,\n    //       recipient,\n    //       timestampZ: new Date(),\n    //       fromUs: true,\n    //       message: message\n    //     }\n    //   })\n    // },\n\n    resetNewMessagesCount() {\n      const messagesArray = this.getData('messages');\n      this.setData('totalMessages', messagesArray.length);\n    },\n    chatMessages: Ember.computed('synced', '_data.messages.[]', function () {\n      const messages = this.getData('messages') || [];\n      return R.sortWith([R.ascend(R.path(['_data', 'timestampZ']))])(messages);\n    }),\n    newMessagesCount: Ember.computed('synced', '_data.{messages.[],totalMessages,unreadMessagesCount}', function () {\n      const messagesArray = this.getData('messages');\n      const totalMessages = this.getData('totalMessages') || 0;\n      const unreadMessages = this.getData('unreadMessages') || 0;\n      const messageCount = messagesArray.length - totalMessages + unreadMessages;\n      return messageCount;\n    }),\n    // fbsbx|line-scdn\n    memberOf: Ember.computed('synced', '_data.profilePic', function () {\n      // @TODO: rather add messageProvider to model from api\n\n      const profilePic = this.getData('profilePic') || 'none';\n      const isLineMember = R.test(/line-scdn/, profilePic);\n      const isFacebookMember = R.test(/fbsbx/, profilePic);\n      if (isLineMember) {\n        return 'line';\n      } else if (isFacebookMember) {\n        return 'facebook';\n      } else {\n        return 'none';\n      }\n    })\n  });\n});","define(\"client/pods/modals/service\", [\"exports\", \"client/config/environment\", \"ramda\", \"ramda-adjunct\"], function (_exports, _environment, R, RA) {\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;\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 ModalsService = _exports.default = (_dec = Ember.inject.service('application'), _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _class = class ModalsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"applicationService\", _descriptor, this);\n    }\n    setupModal({\n      id,\n      headerHeight = 39,\n      footerHeight = 61,\n      modalPos = 'bottom',\n      modalContainerClassNames = '',\n      modalDialogZIndex,\n      modalOverLayZIndex,\n      modalDialogZIndexOnFullScreen,\n      modalOverLayZIndexOnFullscreen,\n      isSidebar,\n      hasExtraSidebar,\n      sidebarModalMaxWidth,\n      isMobile,\n      moveToModalSection = true,\n      parentElement,\n      debug\n    }) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      if (window.debug) {\n        debugger; //eslint-disable-line\n      }\n      const header = document.querySelector('.app-grid__header');\n      if (header) {\n        const headerStyleHeight = window.getComputedStyle(header).height;\n        headerHeight = parseInt(headerStyleHeight) || 39;\n      }\n      let modalDialog = document.getElementById(id);\n      const overlay = document.getElementById(`overlay-${id}`);\n      if (RA.isNilOrEmpty(modalDialog)) {\n        return;\n      }\n      if (RA.isNilOrEmpty(parentElement)) {\n        parentElement = this._getParentElement({\n          modalDialog,\n          modalContainerClassNames\n        });\n      }\n      const parentElementBoundingClientRect = parentElement.getBoundingClientRect(); // need to initialize in the beginning\n      const parentElementComputedStyle = window.getComputedStyle(parentElement);\n      const marginRight = parseInt(parentElementComputedStyle.marginRight) || 0;\n      parentElementBoundingClientRect.rightWithoutMarginRight = Number(parentElementBoundingClientRect?.right || 0) - marginRight;\n\n      // const parentElementBoundingClientRect\n      const modalDialogBoundingClientRect = modalDialog.getBoundingClientRect();\n      const positionYData = this._getPositionYData({\n        parentElement,\n        debug,\n        parentElementBoundingClientRect,\n        modalPos,\n        modalDialogBoundingClientRect,\n        modalDialog\n      });\n      const positionXData = this._getPositionXData({\n        parentElementBoundingClientRect,\n        modalDialogBoundingClientRect\n      });\n\n      // Move the modal to its final container BEFORE positioning. A `position: fixed`\n      // element is positioned relative to its containing block, and the container it\n      // ends up in (or a transformed ancestor like `.modal-container--dialog`) decides\n      // that block. Positioning after the move lets `_setPositionY`/`_setPositionX`\n      // measure the correct containing block and compensate for its offset.\n      if (moveToModalSection) {\n        modalDialog.style.visibility = 'hidden';\n        const modalSection = this._getModalContainerSection(modalDialog);\n        if (overlay) {\n          modalSection.appendChild(overlay);\n        }\n        modalSection.appendChild(modalDialog);\n      }\n\n      // Fit-content dialogs size from CSS. Inline top, bottom, and height would stretch them to the screen.\n      if (modalDialog.querySelector('.modal-dialog--fit-content')) {\n        if (moveToModalSection) {\n          modalDialog.style.visibility = '';\n        }\n        return;\n      }\n      modalDialog = this._setPositionY({\n        modalDialog,\n        parentElementBoundingClientRect,\n        positionYData,\n        headerHeight,\n        footerHeight,\n        isSidebar,\n        hasExtraSidebar,\n        sidebarModalMaxWidth,\n        isMobile\n      });\n      modalDialog = this._setPositionX({\n        modalDialog,\n        parentElement,\n        parentElementBoundingClientRect,\n        positionYData,\n        positionXData,\n        headerHeight,\n        isSidebar,\n        modalContainerClassNames\n      });\n      if (moveToModalSection) {\n        modalDialog.style.visibility = '';\n      }\n    }\n\n    // A transformed/filtered ancestor (e.g. `.modal-container--dialog` uses\n    // `transform: translateX(-50%)`) becomes the containing block for a\n    // `position: fixed` descendant. When that happens, viewport-relative\n    // coordinates must be shifted by the containing block's offset. Returns the\n    // containing block's bounding rect, or null when the viewport is the\n    // containing block (no compensation needed).\n    _getFixedContainingBlockRect(element) {\n      let ancestor = element.parentElement;\n      while (ancestor) {\n        const ancestorStyle = window.getComputedStyle(ancestor);\n        const hasTransform = ancestorStyle.transform !== 'none';\n        const hasPerspective = ancestorStyle.perspective !== 'none';\n        const hasFilter = ancestorStyle.filter !== 'none';\n        const hasWillChange = R.includes('transform', ancestorStyle.willChange) || R.includes('perspective', ancestorStyle.willChange) || R.includes('filter', ancestorStyle.willChange);\n        if (hasTransform || hasPerspective || hasFilter || hasWillChange) {\n          return ancestor.getBoundingClientRect();\n        }\n        ancestor = ancestor.parentElement;\n      }\n      return null;\n    }\n    _getCurrentTab(element) {\n      return element.closest('.tab-parent');\n    }\n    _getModalContainerSection(element) {\n      const currentTab = this._getCurrentTab(element);\n      let modalSection = document.querySelector('.global-modals');\n      if (!currentTab) {\n        return modalSection;\n      }\n      // Get the active tab, and ignore the rest.\n      const currentParentContainerTab = currentTab?.querySelector('.tab-grid > .tab-grid__content').querySelector(':scope > .tab-parent-container.tab-visible') || currentTab;\n      let modalContainerSelector = '.tab-modals-container';\n      const isFullscreen = currentParentContainerTab?.querySelector('.is-fullscreen');\n      if (isFullscreen) {\n        modalContainerSelector = '.tab-fullscreen-modals-container';\n        const fullScreenModalContainerSection = currentParentContainerTab.querySelector(modalContainerSelector);\n        if (!fullScreenModalContainerSection) {\n          const newDiv = document.createElement('div');\n          newDiv.classList.add('tab-fullscreen-modals-container');\n          isFullscreen.append(newDiv);\n          return newDiv;\n        }\n      }\n      modalSection = currentParentContainerTab.querySelector(modalContainerSelector);\n      if (!modalSection) {\n        const newDiv = document.createElement('div');\n        newDiv.classList.add('tab-modals-container');\n        currentParentContainerTab.append(newDiv);\n        modalSection = newDiv;\n      }\n      return modalSection;\n    }\n\n    // @action\n    // setupOverlay (\n    //   {\n    //     modalOverLayZIndex,\n    //     modalOverLayZIndexOnFullscreen\n    //   },\n    //   element\n    // ) {\n    //   element.classList.add('tab-grid__modal-overlay', 'modal-overlay')\n\n    //   // const currentTab = this._getCurrentTab(element)\n    //   const modalSection = this._getModalContainerSection(element)\n\n    //   modalSection.appendChild(element)\n    //   // if (currentTab) {\n    //   //   const modalSection = currentTab.lastElementChild\n    //   //   const hasModalFullscreen = currentTab.querySelector('.tab-grid__modal--fullscreen')\n    //   //   const hasPosFullscreen = currentTab.querySelector('.pos-view--fullscreen')\n    //   //   const hasModalSidebar = currentTab.lastElementChild.querySelector('.modal-sidebar')\n    //   //   const onSidebar = element.closest('.app-grid__sidebar')\n\n    //   //   // if (hasModalFullscreen || hasPosFullscreen || onSidebar || hasModalSidebar) {\n    //   //   //   element.style.zIndex = modalOverLayZIndexOnFullscreen\n    //   //   // } else {\n    //   //   //   element.style.zIndex = modalOverLayZIndex\n    //   //   // }\n\n    //   //   modalSection.appendChild(element)\n    //   // } else {\n    //   //   element.style.zIndex = modalOverLayZIndexOnFullscreen\n\n    //   //   const modalSection = document.querySelector('.global-modals.no-tab')\n    //   //   if (modalSection) {\n    //   //     modalSection.appendChild(element)\n    //   //   }\n    //   // }\n\n    //   // app-grid__content\n    //   document.querySelector('.modal-overlay').addEventListener('wheel', function (e) {\n    //     e.preventDefault()\n    //   }, { passive: false })\n    // }\n\n    closeDialog({\n      component,\n      prop,\n      beforeClose\n    }) {\n      if (beforeClose) {\n        beforeClose();\n      }\n      Ember.set(component, prop, false);\n    }\n\n    // this should be deprecated\n    // @deprecated\n    closeOverlay({\n      component,\n      closeOnOverlayClick = true,\n      isShowOverlay,\n      onToggleModalDialog,\n      onToggle,\n      onClose\n    }) {\n      if (closeOnOverlayClick === false) {\n        return;\n      }\n      if (isShowOverlay) {\n        if (onToggleModalDialog) {\n          onToggleModalDialog();\n        }\n        if (onToggle) {\n          onToggle();\n        }\n        if (onClose) {\n          onClose();\n        }\n      }\n    }\n    _getParentElement({\n      modalContainerClassNames,\n      modalDialog\n    }) {\n      if (window.debug) {\n        debugger; //eslint-disable-line\n      }\n      const classNames = modalContainerClassNames ?? '';\n      const isListDropdown = R.includes('is-list-dropdown', classNames);\n      const isListBtn = R.includes('is-list-btn', classNames);\n      const isListSearcher = R.includes('is-list-searcher', classNames);\n      const isTooltip = R.includes('is-tooltip', classNames);\n      let parentElement = modalDialog.parentElement;\n      if (isListBtn || isListSearcher) {\n        let parentElementBtn = parentElement;\n        while (parentElementBtn) {\n          if (parentElementBtn.classList.contains('button')) {\n            break;\n          }\n          parentElementBtn = parentElementBtn.previousElementSibling;\n        }\n        parentElement = parentElementBtn;\n        if (RA.isNilOrEmpty(parentElement)) {\n          parentElement = modalDialog.parentElement;\n        }\n      } else if (isListDropdown) {\n        let hasListDropdown = false;\n        if (RA.isNotNilOrEmpty(parentElement)) {\n          hasListDropdown = parentElement?.classList?.contains('list-dropdown');\n        }\n        if (!hasListDropdown) {\n          parentElement = modalDialog.closest('.list-dropdown').querySelector('button');\n        }\n        if (RA.isNilOrEmpty(parentElement)) {\n          parentElement = modalDialog.closest('.list-dropdown').querySelector('span');\n        }\n        if (RA.isNilOrEmpty(parentElement)) {\n          parentElement = modalDialog.closest('.list-dropdown');\n        }\n        if (RA.isNilOrEmpty(parentElement)) {\n          parentElement = modalDialog.previousElementSibling;\n        }\n      } else if (isTooltip) {\n        parentElement = modalDialog.closest('.info-tooltip-container');\n        // parentElement = modalDialog.closest('.info-tooltip')\n\n        if (RA.isNilOrEmpty(parentElement)) {\n          parentElement = modalDialog.parentElement.parentElement;\n        }\n      } else {\n        const elementBtnAnchor = this.elementBtnAnchorInListMenu(modalDialog);\n        if (elementBtnAnchor) {\n          parentElement = elementBtnAnchor;\n        }\n      }\n\n      // prevent modalDialog without parentElement\n      if (RA.isNilOrEmpty(parentElement)) {\n        parentElement = modalDialog.parentElement;\n      }\n      return parentElement;\n    }\n\n    /**\n     * Button a list-menu popover should open from.\n     * Shells around the button have no box, so the button is the anchor.\n     * @param {HTMLElement} modalDialog\n     * @returns {HTMLElement|null}\n     */\n    elementBtnAnchorInListMenu(modalDialog) {\n      if (modalDialog.querySelector('.modal-dialog')) {\n        return null;\n      }\n      const listMenu = modalDialog.closest('.modal-container__content.is-list-btn');\n      if (!listMenu) {\n        return null;\n      }\n      let sibling = modalDialog.previousElementSibling;\n      while (sibling) {\n        if (sibling.classList.contains('element-btn')) {\n          return sibling;\n        }\n        const nestedButton = sibling.querySelector('.element-btn');\n        if (nestedButton) {\n          return nestedButton;\n        }\n        sibling = sibling.previousElementSibling;\n      }\n      return null;\n    }\n    _getPositionYData({\n      debug,\n      parentElementBoundingClientRect,\n      modalPos,\n      modalDialogBoundingClientRect,\n      parentElement\n    }) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      const maxTop = 85;\n      const maxBottom = 85;\n      const parentElementTop = parentElementBoundingClientRect.top;\n      const parentElementBottom = parentElementBoundingClientRect.bottom + 5;\n\n      // const modalDialogBoundingClientRect = modalDialog.getBoundingClientRect()\n      const modalDialogHeight = modalDialogBoundingClientRect.height;\n      const screenHeight = document.documentElement.clientHeight;\n      const screenHeightWithoutFooter = screenHeight - 60;\n      const topSpace = parentElementTop - maxTop; // 75px navbar\n      const bottomSpace = screenHeightWithoutFooter - parentElementBottom;\n      if (modalPos === 'top') {\n        return this._modalPosYTopPriority({\n          bottomSpace,\n          maxBottom,\n          maxTop,\n          modalDialogHeight,\n          parentElementBottom,\n          parentElementTop,\n          screenHeight,\n          screenHeightWithoutFooter,\n          topSpace\n        });\n      }\n      return this._modalPosYBottomPriority({\n        bottomSpace,\n        maxBottom,\n        maxTop,\n        modalDialogHeight,\n        parentElementBottom,\n        parentElementTop,\n        screenHeight,\n        screenHeightWithoutFooter,\n        topSpace\n      });\n\n      // let top = parentElementBottom + 5\n      // if (bottomSpace >= modalDialogHeight) {\n      //   return {\n      //     top\n      //   }\n      // }\n\n      // let bottom = screenHeight - parentElementTop + 5\n      // if (topSpace >= modalDialogHeight) {\n      //   return {\n      //     bottom\n      //   }\n      // }\n\n      // if (bottomSpace > topSpace && bottomSpace > 200) {\n      //   // render on bottom\n      //   bottom = maxBottom\n      //   return {\n      //     top,\n      //     bottom\n      //   }\n      // }\n\n      // // render on top\n      // top = maxTop\n      // if (topSpace > 200) {\n      //   // topSpace > bottomSpace\n      //   return {\n      //     top,\n      //     bottom\n      //   }\n      // }\n\n      // return {\n      //   top,\n      //   bottom,\n      //   maxHeight: screenHeightWithoutFooter - maxBottom\n      // }\n    }\n    _modalPosYTopPriority({\n      bottomSpace,\n      maxBottom,\n      maxTop,\n      modalDialogHeight,\n      parentElementBottom,\n      parentElementTop,\n      screenHeight,\n      screenHeightWithoutFooter,\n      topSpace\n    }) {\n      if (window.debug) {\n        debugger; //eslint-disable-line\n      }\n      let top = parentElementBottom + 5;\n      let bottom = screenHeight - parentElementTop + 5;\n      if (topSpace >= modalDialogHeight) {\n        return {\n          bottom\n        };\n      }\n      if (bottomSpace >= modalDialogHeight) {\n        return {\n          top\n        };\n      }\n\n      // render on top\n      if (topSpace > 200) {\n        top = maxTop;\n        // topSpace > bottomSpace\n        return {\n          top,\n          bottom\n        };\n      }\n      if (bottomSpace > topSpace && bottomSpace > 200) {\n        // render on bottom\n        bottom = maxBottom;\n        return {\n          top,\n          bottom\n        };\n      }\n      return {\n        top,\n        bottom,\n        maxHeight: screenHeightWithoutFooter - maxBottom\n      };\n    }\n    _modalPosYBottomPriority({\n      bottomSpace,\n      maxBottom,\n      maxTop,\n      modalDialogHeight,\n      parentElementBottom,\n      parentElementTop,\n      screenHeight,\n      screenHeightWithoutFooter,\n      topSpace\n    }) {\n      let top = parentElementBottom;\n      if (bottomSpace >= modalDialogHeight) {\n        return {\n          top\n        };\n      }\n      let bottom = screenHeight - parentElementTop + 5;\n      if (topSpace >= modalDialogHeight) {\n        return {\n          bottom\n        };\n      }\n      if (bottomSpace > topSpace && bottomSpace > 200) {\n        // render on bottom\n        bottom = maxBottom;\n        return {\n          top,\n          bottom\n        };\n      }\n\n      // render on top\n      top = maxTop;\n      if (topSpace > 200) {\n        // topSpace > bottomSpace\n        return {\n          top,\n          bottom\n        };\n      }\n      return {\n        top,\n        bottom,\n        maxHeight: screenHeightWithoutFooter - maxBottom\n      };\n    }\n    _getPositionXData({\n      parentElementBoundingClientRect,\n      modalDialogBoundingClientRect\n    }) {\n      const parentElementLeft = parentElementBoundingClientRect.left;\n      const parentElementRight = parentElementBoundingClientRect.rightWithoutMarginRight;\n      const screenWidth = document.documentElement.clientWidth - 10;\n      const modalDialogWidth = modalDialogBoundingClientRect.width;\n      // const leftSpace = pscreenWidth - parentElementLeft\n      const rightSpace = screenWidth - parentElementLeft - 10;\n      if (modalDialogWidth >= screenWidth) {\n        return {\n          left: 10,\n          right: 10\n        };\n      }\n      const currentMousePosition = this.applicationService.getMouseEventPosition();\n      if (RA.isNotNilOrEmpty(currentMousePosition)) {\n        const mousePositionX = currentMousePosition?.x || 0;\n        if (modalDialogWidth <= parentElementBoundingClientRect.width && modalDialogBoundingClientRect.right <= mousePositionX) {\n          const rightSpaceFromMousePosition = screenWidth - mousePositionX;\n          if (rightSpaceFromMousePosition >= modalDialogWidth) {\n            return {\n              left: mousePositionX\n            };\n          }\n        }\n        if (modalDialogWidth <= parentElementBoundingClientRect.width && mousePositionX >= modalDialogWidth) {\n          return {\n            right: screenWidth - mousePositionX\n          };\n        }\n      }\n      if (rightSpace >= modalDialogWidth) {\n        return {\n          left: parentElementLeft\n        };\n      }\n      let rightPos = parentElementRight;\n      if (rightPos >= screenWidth) {\n        // parent element right is out of window\n        rightPos = screenWidth;\n      }\n\n      // check if has available space\n      const newLeft = rightPos - modalDialogWidth;\n      if (newLeft < 0) {\n        return {\n          left: 10,\n          right: 10\n        };\n      }\n\n      // has available space\n      return {\n        right: screenWidth - rightPos\n      };\n    }\n    _setPositionY({\n      modalDialog,\n      parentElementBoundingClientRect,\n      positionYData,\n      headerHeight = 46,\n      footerHeight = 61,\n      isSidebar,\n      hasExtraSidebar,\n      sidebarModalMaxWidth,\n      isMobile\n    }) {\n      const screenWidth = document.documentElement.clientWidth;\n      const screenHeight = document.documentElement.clientHeight;\n      const modalContainerContent = modalDialog.querySelector('.modal-container__content');\n      if (!modalContainerContent) {\n        return modalDialog;\n      }\n      let maxHeight;\n      let maxWidth;\n\n      // @TODO: this does not belong here? should side bar be a general or specific solution?\n      // ie. should size be set on each side bar? then modal does not need to adjust width. only check if it exceeds max width\n      // the contents should be what determines width\n      if (isSidebar) {\n        maxHeight = screenHeight - headerHeight;\n        const defaultsidebarModalMaxWidth = screenWidth * 0.98;\n        sidebarModalMaxWidth = sidebarModalMaxWidth || defaultsidebarModalMaxWidth;\n        const sidebarModalFullSize = screenWidth; // - (screenWidth * 0.01)\n        maxWidth = sidebarModalFullSize;\n        if (maxWidth > sidebarModalMaxWidth) {\n          maxWidth = sidebarModalMaxWidth;\n        }\n        if (isMobile) {\n          maxWidth = sidebarModalFullSize;\n        }\n\n        // modalContainerContent.style.width = `${maxWidth}px`\n        modalContainerContent.style.height = `${maxHeight}px`;\n        modalContainerContent.style.maxHeight = `${maxHeight}px`;\n        modalContainerContent.style.maxWidth = `${maxWidth}px`;\n      } else {\n        modalContainerContent.style.height = '100%';\n\n        // positionYData holds viewport-relative coordinates. Shift them by the\n        // containing block's offset so a fixed modal inside a transformed ancestor\n        // (e.g. a tooltip inside `.modal-container--dialog`) lands in the right spot.\n        const containingBlockRect = this._getFixedContainingBlockRect(modalDialog);\n        const containingBlockTop = containingBlockRect ? containingBlockRect.top : 0;\n        const containingBlockBottom = containingBlockRect ? containingBlockRect.bottom : screenHeight;\n        if (RA.isNotNil(positionYData.maxHeight)) {\n          // modalContainerContent.style.height = `${positionYData.maxHeight}px`\n          modalDialog.style.height = `${positionYData.maxHeight}px`;\n        }\n        if (RA.isNotNil(positionYData.top)) {\n          // modalContainerContent.style.top = `${positionYData.top}px`\n          modalDialog.style.top = `${positionYData.top - containingBlockTop}px`;\n        }\n        if (RA.isNotNil(positionYData.bottom)) {\n          // modalContainerContent.style.bottom = `${positionYData.bottom}px`\n          modalDialog.style.bottom = `${positionYData.bottom - (screenHeight - containingBlockBottom)}px`;\n        }\n      }\n      return modalDialog;\n    }\n    _setPositionX({\n      modalDialog,\n      parentElement,\n      parentElementBoundingClientRect,\n      positionYData,\n      positionXData,\n      headerHeight,\n      isSidebar,\n      modalContainerClassNames = ''\n    }) {\n      if (window.debug) {\n        debugger; //eslint-disable-line\n      }\n      modalDialog.style.position = 'fixed';\n      isSidebar = isSidebar || false;\n      const isOversized = modalDialog?.isOversized || false;\n      if (isSidebar) {\n        modalDialog.style.top = `${headerHeight}px`;\n        modalDialog.style.right = '0px';\n        setTimeout(() => {\n          // remove slide-in-right after animation\n          modalDialog.classList.remove('slide-in-right');\n        }, 1000);\n      } else if (isOversized) {\n        modalDialog.style.top = `calc(50% + ${headerHeight}px)`;\n        modalDialog.style.left = '50%';\n        // modalDialog.style.transform = `translate(-50%, calc(-50% - ${headerHeight / 2}px))`\n      } else {\n        // positionXData holds viewport-relative coordinates. Shift them by the\n        // containing block's offset so a fixed modal inside a transformed ancestor\n        // (e.g. a tooltip inside `.modal-container--dialog`) lands in the right spot.\n        const screenWidth = document.documentElement.clientWidth;\n        const containingBlockRect = this._getFixedContainingBlockRect(modalDialog);\n        const containingBlockLeft = containingBlockRect ? containingBlockRect.left : 0;\n        const containingBlockRight = containingBlockRect ? containingBlockRect.right : screenWidth;\n        if (RA.isNotNil(positionXData.right)) {\n          modalDialog.style.right = `${positionXData.right - (screenWidth - containingBlockRight)}px`;\n        }\n        if (RA.isNotNil(positionXData.left)) {\n          modalDialog.style.left = `${positionXData.left - containingBlockLeft}px`;\n        }\n      }\n      return modalDialog;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"applicationService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupModal\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"setupModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDialog\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeOverlay\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"closeOverlay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getParentElement\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"_getParentElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getPositionYData\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"_getPositionYData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_getPositionXData\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"_getPositionXData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setPositionY\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"_setPositionY\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_setPositionX\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"_setPositionX\"), _class.prototype), _class);\n});","define(\"client/pods/news/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/news/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/news',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/news/details/batch/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/news/details/batch',\n    idParam: false,\n    serialize(details) {\n      return R.map(detail => {\n        return this._serialize(detail._data);\n      })(details);\n    },\n    updateIndexes({\n      data,\n      appendPath,\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'updatePath',\n        appendPath,\n        serverType\n      });\n      data = R.map(R.pick(['_key', 'index']))(data);\n      data = this._addAdapterInfo(data, appendPath);\n      const payload = {\n        batch: data\n      };\n      try {\n        return this.ajax.PATCH(path, payload);\n      } catch (e) {\n        console.error(e);\n      }\n    }\n  });\n});","define(\"client/pods/news/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/news/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/news/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        keys: [],\n        tags: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/news/lists/bigordr-blogs-slider-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'slider',\n        label: 'slider'\n      }, {\n        value: 'grid',\n        label: 'images_grid'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/news/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'description',\n        label: 'description'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/news/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'timestampZ_latest',\n        label: 'updated date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/news/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: this.get('constants.status.active'),\n        label: this.get('constants.status.active')\n      }, {\n        value: this.get('constants.status.inactive'),\n        label: this.get('constants.status.inactive')\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/news/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/news/lists/menu/actions/dash',\n          component: 'news/panels-dash',\n          icon: 'fas fa-table',\n          label: 'overview',\n          value: 'overview',\n          action: 'refreshDash',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }, {\n          resource: 'api/protected/news/lists/menu/actions/new',\n          component: 'news/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          value: 'new',\n          action: 'new',\n          tabType: 'reuseSubTab',\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/news/lists/tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/news/tags',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/news/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/uploads\", \"client/mixins/statuses\"], function (_exports, _model, _uploads, _statuses) {\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(_uploads.default, _statuses.default, {\n    defaults() {\n      return {\n        index: 0,\n        isCanonical: true,\n        customUrl: ''\n      };\n    },\n    index: Ember.computed('_data.index', function () {\n      return this._data.index;\n    }),\n    displayIndex: Ember.computed('_data.index', function () {\n      return this._data.index; // cannot + 1, because when editing will not +1\n    })\n  });\n});","define(\"client/pods/not-found/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class NotFoundRoute extends Ember.Route {\n    // replaceWith so Back does not re-enter this catch-all with the bad URL\n    beforeModel() {\n      return this.replaceWith('index');\n    }\n  }\n  _exports.default = NotFoundRoute;\n});","define(\"client/pods/not-found/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"cPE6iMjD\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/not-found/template.hbs\"\n    }\n  });\n});","define(\"client/pods/notifications/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/notifications/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/notifications',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/notifications/manager/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/notifications/manager/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * notifications manager is a collection of all notifications by type.\n   * notifcationsManger = {\n   *   alerts: []\n   * }\n   * \n   * it is used as a receiver for broadcast messages of\n   * _id='notifications/manager', action='arrayPush' and\n   * propPath=['alerts']\n   */\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: '_id',\n    find() {\n      const data = {\n        _id: 'notifications/manager',\n        alerts: [],\n        changeLogs: []\n      };\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/notifications/manager/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-extension\"], function (_exports, _model, R, R_) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    defaults() {\n      return {\n        _id: 'notifications/manager'\n      };\n    },\n    populate(data = {}) {\n      data.alerts = R.pipe(R.propOr([], 'alerts'), R.map(alert => {\n        return Ember.Object.create(alert);\n      }))(data);\n      this._super(...arguments);\n    },\n    /**\n     * register resource with notifications manager to display unread count.\n     * \n     * will store a REFERENCE to an array of models (that has isRead prop)\n     * in notifications manager model, the list of notifications does not\n     * need to be a model of notifications.\n     */\n    registerResource({\n      resource,\n      notifications\n    }) {\n      const registeredResources = this.registeredResources || [];\n      registeredResources.pushObject(`resource__${resource}`);\n      Ember.set(this, 'registeredResources', registeredResources);\n      let registeredResourcesModels = this.registeredResourcesModels || [];\n      registeredResourcesModels.pushObject(notifications);\n      Ember.set(this, `registeredResources_models`, registeredResourcesModels);\n      this.updateSynced();\n    },\n    markAsReadLocallyOnDestroy(notification) {\n      notification.set('isReadLocally', true);\n      if (notification?.setData) {\n        const isReadDotPath = this.isReadDotPath || '_data.notificationStatus';\n        notification.setData(isReadDotPath, this.constants.notificationsStatus.read);\n      }\n    },\n    markAllBroadcastAlertsAsRead() {\n      const unreadAlerts = this.unreadAlerts || [];\n      R.forEach(alert => {\n        alert.set('isReadLocally', true);\n      })(unreadAlerts);\n    },\n    isRead(notification) {\n      let data = notification;\n      if (notification?._data) {\n        data = notification.serialize();\n      }\n      if (data?.isRead === true) {\n        return true;\n      }\n      if (data?.read === true) {\n        return true;\n      }\n      if (data?.isReadLocally === true) {\n        return true;\n      }\n      if (data?.notificationStatus === this.constants.notificationsStatus.read) {\n        return true;\n      }\n      return false;\n    },\n    getUnreadForResource({\n      resourceDotPath\n    } = {}) {\n      const notifications = R.pipe(R_.dotPathOr([], resourceDotPath), R.reject(notification => {\n        return this.isRead(notification);\n      }))(this);\n      return notifications;\n    },\n    unreadAlerts: Ember.computed('_data.alerts.[]', 'synced', function () {\n      return this.getUnreadForResource({\n        resourceDotPath: '_data.alerts'\n      });\n    }),\n    unread: Ember.computed('synced', '_data.{alerts.[],registeredResources.[]}', 'registeredResources_models.@each.length', function () {\n      const synced = this.synced;\n      const registeredResourcesModels = this.registeredResources_models || [];\n      const unreadForRegisteredResources = R.pipe(R.map(modelsForResource => {\n        return R.reject(notification => {\n          return this.isRead(notification);\n        })(modelsForResource);\n      }), R.reject(RA.isNilOrEmpty), R.flatten)(registeredResourcesModels);\n      const allNotifications = R.concat(unreadForRegisteredResources)(this.unreadAlerts);\n      return allNotifications;\n    })\n  }, _applyDecoratedDescriptor(_obj, \"markAsReadLocallyOnDestroy\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"markAsReadLocallyOnDestroy\"), _obj), _applyDecoratedDescriptor(_obj, \"markAllBroadcastAlertsAsRead\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"markAllBroadcastAlertsAsRead\"), _obj), _applyDecoratedDescriptor(_obj, \"isRead\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"isRead\"), _obj), _applyDecoratedDescriptor(_obj, \"getUnreadForResource\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"getUnreadForResource\"), _obj), _obj));\n});","define(\"client/pods/notifications/model\", [\"exports\", \"client/pods/base/model\", \"ramda-extension\", \"ramda\"], function (_exports, _model, R_, R) {\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});","define(\"client/pods/notifications/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _emberConcurrencyDecorators, R) {\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;\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 NotificationsService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class NotificationsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor2, this);\n      _initializerDefineProperty(this, \"updates\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notificationsManager\", _descriptor4, this);\n    }\n    get unreadCount() {\n      const unread = this.notificationsManager?.unread || [];\n      let unreadCount = unread.length || 0;\n      if (this.updates.hasNewVersion) {\n        unreadCount = unreadCount + 1;\n      }\n      return unreadCount;\n    }\n    *setupNotificationsManagerTask() {\n      const notificationsManager = yield this.crud.findTask.perform({\n        adapterName: 'notifications/manager'\n      });\n      Ember.set(this, 'notificationsManager', notificationsManager);\n      return notificationsManager;\n    }\n    /**\n     * register resource with notifications manager to display unread count\n     */\n    registerResource({\n      resource,\n      notifications = []\n    }) {\n      this.notificationsManager.registerResource({\n        resource,\n        notifications\n      });\n    }\n    markAllBroadcastAlertsAsRead() {\n      if (!this.notificationsManager) {\n        return;\n      }\n      this.notificationsManager.markAllBroadcastAlertsAsRead();\n    }\n    markAsReadLocallyOnDestroy(notification) {\n      if (!this.notificationsManager) {\n        return;\n      }\n      this.notificationsManager.markAsReadLocallyOnDestroy(notification);\n    }\n    *markAsReadTask({\n      notification,\n      resource\n    }) {\n      let data = {};\n      if (notification?._data) {\n        data = notification.serialize();\n      } else {\n        data = notification;\n      }\n      const isRead = data?.isRead || data?.isReadSubmitted || data?.notificationStatus === this.constants.notificationsStatus.read;\n      if (isRead) {\n        return;\n      }\n      data.status = this.constants.notificationsStatus.read;\n      data.resource = resource;\n      const adapterName = 'notifications';\n      const model = this.crud.setupNewRecord({\n        adapterName,\n        data\n      });\n      notification.set('isReadSubmitted', true);\n      return yield this.crud.queueCreateRecordTask.perform({\n        adapterName,\n        model\n      });\n    }\n    *markAsReadBulkTask({\n      notifications,\n      resource\n    }) {\n      const promises = R.map(notification => {\n        this.markAsReadTask.perform({\n          notification,\n          resource\n        });\n      })(notifications);\n      yield Ember.RSVP.all(promises);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"updates\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notificationsManager\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupNotificationsManagerTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupNotificationsManagerTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerResource\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"registerResource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markAllBroadcastAlertsAsRead\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"markAllBroadcastAlertsAsRead\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markAsReadLocallyOnDestroy\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"markAsReadLocallyOnDestroy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markAsReadTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"markAsReadTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markAsReadBulkTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"markAsReadBulkTask\"), _class.prototype), _class);\n});","define(\"client/pods/notifications/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: this.get('constants.notificationsStatus.read'),\n        label: 'notifications_read',\n        classNames: 'u-is-read'\n      }, {\n        value: this.get('constants.notificationsStatus.unread'),\n        label: 'notifications_unread',\n        classNames: 'u-is-unread'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/open-hours/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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;\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 OpenHoursModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _class = class OpenHoursModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasOpeningHours\", _descriptor2, this);\n    }\n    get label() {\n      return `${this._data.name} opening hours`;\n    }\n    get dayName() {\n      return this._data.name;\n    }\n    defaults() {\n      return {\n        open: 'none',\n        openAfterBreak: 'none',\n        closeAfterBreak: 'none',\n        close: 'none'\n      };\n    }\n    populate(data, attrs) {\n      super.populate(data, attrs);\n    }\n    toggleHasOpeningHours() {\n      this.hasOpeningHours = this._data.open !== 'none';\n    }\n    copyOpeningHours(sortedOpenHours) {\n      const weekDay = this._data.name;\n      const currentIndex = R.findIndex(R.pathEq(['_data', 'name'], weekDay))(sortedOpenHours);\n      const previousDayIndex = R.dec(currentIndex);\n      const previousDay = sortedOpenHours[previousDayIndex];\n      const previousDayData = previousDay._data;\n      R.pipe(R.omit(['name']), R.forEachObjIndexed((value, key) => {\n        this.setData(key, value);\n      }))(previousDayData);\n      this.toggleHasOpeningHours();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasOpeningHours\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this._data.open !== 'none';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleHasOpeningHours\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleHasOpeningHours\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyOpeningHours\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"copyOpeningHours\"), _class.prototype), _class);\n});","define(\"client/pods/operator/change-logs/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/operator/change-logs/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/operator/change-logs',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/operator/change-logs/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/operator/change-logs/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/operator/change-logs/filters/model\", [\"exports\", \"client/pods/filters/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    dateService: Ember.inject.service('date'),\n    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        description: '',\n        privateNotes: '',\n        publicReleaseNotes: '',\n        sort: [{\n          by: 'dateZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/operator/change-logs/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/operator/change-logs/menu/actions/dash',\n          component: 'operator/change-logs/panels-dash',\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'dash',\n          tabType: 'replaceSubTab',\n          className: 'hide-when-overflow'\n        }, {\n          resource: 'api/protected/operator/change-logs/menu/actions/new',\n          component: 'operator/change-logs/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'new',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/operator/change-logs/lists/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const listData = [{\n        value: 'changeLogs',\n        label: 'change logs'\n      }, {\n        value: 'notification',\n        label: 'notification'\n      }];\n      return _nventor.default.resolve(listData);\n    }\n  });\n});","define(\"client/pods/operator/change-logs/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        type: 'changeLogs',\n        version: '',\n        deployed: false,\n        forceUpdate: false,\n        status: this.constants.publicStatus.private\n      };\n    },\n    publicStatusClass: Ember.computed('_data.status', 'synced', function () {\n      const status = this?._data?.status;\n      if (status === this.constants.publicStatus.public) {\n        return 'u-is-public';\n      }\n      return 'u-is-private';\n    })\n  });\n});","define(\"client/pods/operator/pods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/base/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/operator/pods',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/operator/pods/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/operator/pods/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/operator/pods/filters/model\", [\"exports\", \"client/pods/filters/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    intl: Ember.inject.service(),\n    defaults() {\n      return {\n        page: 1,\n        count: 30,\n        query: '',\n        match: ['all'],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: '_id',\n    serialize(model) {\n      let data = this._super(model);\n      data = this.removeNotRequired(data);\n      return data;\n    },\n    removeNotRequired(data) {\n      const relationships = data.relationships || [];\n      let hasSales = false;\n      if (relationships.indexOf('customer') > -1) {\n        hasSales = true;\n      }\n      let hasPurchases = false;\n      if (relationships.indexOf('supplier') > -1) {\n        hasPurchases = true;\n      }\n      if (!hasSales) {\n        data.salesTaxMethodKey = '';\n        data.salesPaymentMethodKey = '';\n        data.salesPaymentTermsKey = '';\n        data.salesAccount = '';\n      }\n      if (!hasPurchases) {\n        data.purchasesTaxMethodKey = '';\n        data.purchasesPaymentMethodKey = '';\n        data.purchasesPaymentTermsKey = '';\n        data.purchasesAccount = '';\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/options/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const OptionContainerMixin = Ember.Mixin.create({\n    isEditable: Ember.computed('_data._key', function () {\n      const key = this.getData('_key');\n      if (key != null && key !== '') {\n        return true;\n      }\n      return false;\n    }),\n    /**\n     * should determine if option should be translated\n     */\n    translate: Ember.computed('_data._key', function () {\n      // @TODO: rename to 'isTranslate'\n      const key = this.getData('_key');\n      if (key != null && key !== '') {\n        return false;\n      }\n      return true;\n    })\n  });\n  var _default = _exports.default = _model.default.extend(OptionContainerMixin);\n});","define(\"client/pods/parser/service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const parser = new exprEval.Parser();\n  var _default = _exports.default = Ember.Service.extend({\n    evaluate(expr, subs = {}) {\n      return parser.parse(expr).evaluate(subs);\n    }\n  });\n});","define(\"client/pods/payment-methods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payment-methods/model\", \"ramda\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/payment-methods',\n    modelObj: _model.default,\n    idParam: '_id',\n    paymentsService: Ember.inject.service('payments'),\n    async afterFindAll(responseData) {\n      // Filter out un-enabled payment methods. eg LinePay, ApplePay, GooglePay, SamsungPay\n      const validatedPaymentMethods = this.paymentsService.validatePaymentMethods(responseData);\n      return R.map(data => _nventor.default.createModel(_model.default, data))(validatedPaymentMethods);\n    }\n  });\n});","define(\"client/pods/payment-methods/credit-cards/banks/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ramda\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      let data = [{\n        label: 'bank of china',\n        value: 'boc'\n      }, {\n        label: 'cathay united bank',\n        value: 'cathay'\n      }, {\n        label: 'chang hwa bank',\n        value: 'chb'\n      }, {\n        label: 'taiwan cooperative bank',\n        value: 'coop'\n      }, {\n        label: 'ctbc',\n        value: 'ctbc'\n      }, {\n        label: 'esun',\n        value: 'esun'\n      }, {\n        label: 'first bank',\n        value: 'first'\n      }, {\n        label: 'fubon',\n        value: 'fubon'\n      }, {\n        label: 'taishin',\n        value: 'taishin'\n      }, {\n        label: 'kgi Bank',\n        value: 'kgi'\n      }, {\n        label: 'national credit card center of ROC',\n        value: 'nccc'\n      }, {\n        label: 'neweb Pay',\n        value: 'neweb'\n      }, {\n        label: 'sinopac',\n        value: 'bsp'\n      }, {\n        label: 'sunny Bank',\n        value: 'sunny'\n      }, {\n        label: 'union bank Of taiwan',\n        value: 'ubot'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payment-methods/installment-periods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ramda\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      let data = [{\n        label: '3',\n        value: 3\n      }, {\n        label: '6',\n        value: 6\n      }, {\n        label: '9',\n        value: 9\n      }, {\n        label: '12',\n        value: 12\n      }, {\n        label: '18',\n        value: 18\n      }, {\n        label: '24',\n        value: 24\n      }, {\n        label: '30',\n        value: 30\n      }, {\n        label: '36',\n        value: 36\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payment-methods/model\", [\"exports\", \"client/pods/base/model\", \"ramda-adjunct\"], function (_exports, _model, RA) {\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    defaults() {\n      return {\n        customLabel: '',\n        value: '',\n        label: '',\n        hasPaymentTerms: false\n      };\n    },\n    populate(data, attrs) {\n      const label = data.label;\n      const customLabel = data.customLabel;\n      if (RA.isNilOrEmpty(customLabel)) {\n        data.customLabel = label;\n      }\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/payment-methods/shop/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ramda-adjunct\", \"ramda\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    cacheList: false,\n    paymentsService: Ember.inject.service('payments'),\n    findAll() {\n      let data = [{\n        value: this.constants.paymentMethods.creditCard,\n        hasPaymentTerms: false,\n        label: 'credit card',\n        isNotEditable: true\n      }, {\n        value: this.constants.paymentMethods.cash,\n        hasPaymentTerms: false,\n        label: 'cash',\n        isNotEditable: true\n      }, {\n        value: this.constants.paymentMethods.cashBeforeDelivery,\n        hasPaymentTerms: false,\n        label: 'cash before delivery',\n        isNotEditable: true\n      }, {\n        value: this.constants.paymentMethods.linePay,\n        hasPaymentTerms: false,\n        label: 'line pay',\n        isNotEditable: true,\n        isThirdParty: true\n      }, {\n        value: this.constants.paymentMethods.applePay,\n        hasPaymentTerms: false,\n        label: 'apple pay',\n        isNotEditable: true,\n        isThirdParty: true\n      }, {\n        value: this.constants.paymentMethods.googlePay,\n        hasPaymentTerms: false,\n        label: 'google pay',\n        isNotEditable: true,\n        isThirdParty: true\n      }, {\n        value: this.constants.paymentMethods.samsungPay,\n        hasPaymentTerms: false,\n        label: 'samsung pay',\n        isNotEditable: true,\n        isThirdParty: true\n      }];\n      // Add index to data array\n      data = RA.mapIndexed((methodData = {}, index) => {\n        return R.mergeRight(methodData, {\n          index: ++index\n        });\n      })(data);\n\n      // Filter out un-enabled payment methods. eg LinePay, ApplePay, GooglePay, SamsungPay\n      const validPaymentMethods = this.paymentsService.validatePaymentMethods(data);\n      return _nventor.default.resolve(validPaymentMethods);\n    }\n  });\n});","define(\"client/pods/payment-terms/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/payment-terms',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/payment-terms/end/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'exact date',\n        value: 'exactDate'\n      }, {\n        label: 'month end',\n        value: 'monthEnd'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payment-terms/from/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'end of invoice month',\n        value: 'invoiceMonth'\n      }, {\n        label: 'invoice date',\n        value: 'invoiceDate'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/card/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/payments/card',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/payments/card/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/card/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/payments/card/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        // RELOADING DATESTART AND DATEEND REMOVES MONTHLY FILTER\n        // dateStart: '',\n        // dateEnd: '',\n        abandonded: '',\n        contact: '',\n        contactKey: '',\n        email: '',\n        externalId: '',\n        ref: '',\n        partialCreditCardNumber: '',\n        paymentCreditCardStatus: ['approved', 'refundRequested', 'refunded'],\n        dispatchProcesses: [],\n        multipleDispatchProcessesCriterias: [],\n        paymentTransactionDateZ: '',\n        refundRequestedDateZ: '',\n        refundedDateZ: '',\n        sourceKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }],\n        inclTotal: '',\n        telephone: ''\n      };\n    }\n  });\n});","define(\"client/pods/payments/card/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'email',\n        label: 'email'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'address',\n        label: 'address'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/card/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'timestampZ',\n        label: 'created date'\n      }, {\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'email',\n        label: 'email'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/card/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'isSuccessful',\n        label: 'successful'\n      }, {\n        value: 'isUnsuccessful',\n        label: 'unsuccessful'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/card/lists/panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const PaymentsCardListsPanelsAdapterBase = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'activity',\n        label: 'activity',\n        component: 'payments/card/panels-display',\n        filtersAdapterName: 'payments/card/filters',\n        adapterName: 'payments/card',\n        className: 'show-when-overflow'\n      }, {\n        value: 'activityLogs',\n        label: 'all activity',\n        component: 'payments/card/panels-transactions',\n        filtersAdapterName: 'payments/card/transactions/filters',\n        adapterName: 'payments/card/transactions',\n        className: 'hide-when-overflow'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n  class PaymentsCardListsPanelsAdapter extends PaymentsCardListsPanelsAdapterBase {}\n  _exports.default = PaymentsCardListsPanelsAdapter;\n});","define(\"client/pods/payments/card/lists/providers/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'TapPay',\n        value: 'tapPay'\n      }, {\n        label: 'BigOrdr',\n        value: 'bigOrdr'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/card/lists/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'cc_approved',\n        value: 'approved'\n      }, {\n        label: 'cc_awaitingPayment',\n        value: 'awaitingPayment'\n      }, {\n        label: 'cc_awaitingRecurringPayment',\n        value: 'awaitingRecurringPayment'\n      }, {\n        label: 'cc_declined',\n        value: 'declined'\n      }, {\n        label: 'cc_refundRequested',\n        value: 'refundRequested'\n      }, {\n        label: 'cc_refunded',\n        value: 'refunded'\n      }, {\n        label: 'cc_unsuccessful',\n        value: 'unsuccessful'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/card/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/card/specs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/payments/card/specs/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import * as R from 'ramda'\n  // import EmberObject, { computed } from '@ember/object'\n  var _default = _exports.default = _model.default.extend({\n    // populate (data, attrs) {\n    //   if (!data.label) {\n    //     data.label = ''\n    //     if (data.fn) {\n    //       data.label = attrs.intl.t(data.fn)\n    //     }\n    //     if (data.type) {\n    //       data.label = attrs.intl.t(data.type)\n    //     }\n    //   }\n    //   if (!data.value) {\n    //     data.value = ''\n    //     if (data.fn) {\n    //       data.value = data.fn\n    //     }\n    //     if (data.type) {\n    //       data.value = data.type\n    //     }\n    //   }\n\n    //   this._super(...arguments)\n    // }\n  });\n});","define(\"client/pods/payments/card/transactions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/card/transactions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const PaymentsCardTransactionsAdapterBase = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/payments/card/ccTemp',\n    modelObj: _model.default,\n    idParam: false\n  });\n  class PaymentsCardTransactionsAdapter extends PaymentsCardTransactionsAdapterBase {}\n  _exports.default = PaymentsCardTransactionsAdapter;\n});","define(\"client/pods/payments/card/transactions/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/card/transactions/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const PaymentsCardTransactionsFiltersAdapterBase = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n  class PaymentsCardTransactionsFiltersAdapter extends PaymentsCardTransactionsFiltersAdapterBase {}\n  _exports.default = PaymentsCardTransactionsFiltersAdapter;\n});","define(\"client/pods/payments/card/transactions/filters/model\", [\"exports\", \"client/pods/filters/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;\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 PaymentsCardTransactionsFiltersModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class PaymentsCardTransactionsFiltersModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        dateExactZ: '',\n        dateExact: '',\n        dateStart: '',\n        dateEnd: '',\n        abandonded: '',\n        contact: '',\n        contactKey: '',\n        email: '',\n        externalId: '',\n        ref: '',\n        partialCreditCardNumber: '',\n        paymentCreditCardStatus: [],\n        dispatchProcesses: [],\n        multipleDispatchProcessesCriterias: [],\n        paymentTransactionDateZ: '',\n        sourceKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }],\n        inclTotal: '',\n        telephone: ''\n      };\n    }\n    updatePeriod({\n      dateStart,\n      dateEnd\n    }) {\n      this._data.dateStart = dateStart;\n      this._data.dateEnd = dateEnd;\n    }\n    updateProvider(provider) {\n      this._data.provider = provider;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updatePeriod\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"updatePeriod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateProvider\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"updateProvider\"), _class.prototype), _class);\n});","define(\"client/pods/payments/card/transactions/model\", [\"exports\", \"client/pods/documents/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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 PaymentsCardTransactionsModel = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember._tracked, _class = class PaymentsCardTransactionsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      /** @type {ccTemp} */\n      _initializerDefineProperty(this, \"_data\", _descriptor3, this);\n      _defineProperty(this, \"overDueAfter\", 20);\n    }\n    // minutes\n\n    get ccNumber() {\n      const partialNumber = R.pathOr(null, ['_data', 'paymentCreditCard', 'partial_card_number'])(this);\n      if (partialNumber) {\n        return partialNumber;\n      }\n      const paymentCreditCardLastFourDigits = R.pathOr(null, ['_data', 'paymentCreditCardLastFourDigits'])(this);\n      if (paymentCreditCardLastFourDigits) {\n        return paymentCreditCardLastFourDigits;\n      }\n      const tapPayCardInfo = R.pathOr(null, ['_data', 'firstPaymentResponse', 'card_info'])(this);\n      const lastFour = R.propOr(null, 'last_four')(tapPayCardInfo);\n      if (lastFour) {\n        return lastFour;\n      }\n      return '';\n    }\n    get isTapPay() {\n      const provider = R.pathOr('', ['_data', 'paymentCreditCardProvider'])(this);\n      return provider === 'tapPay';\n    }\n    get isSuccessfulTransaction() {\n      const hasTransactionCode = R.pipe(R.pathOr('', ['_data', 'paymentCreditCardTransactionCode']), RA.isNotNilOrEmpty)(this);\n      const hasSuccessfulMessage = R.pipe(R.pathOr('', ['_data', 'paymentResponse', 'msg']), R.toLower, R.equals('success'))(this);\n      return hasTransactionCode && hasSuccessfulMessage;\n    }\n    get isUnsuccessfulTransaction() {\n      const isUnsuccessful = R.pipe(R.pathOr('', ['_data', 'paymentsResponses', 'msg']), R.toLower, R.equals('success'), R.not)(this);\n      if (isUnsuccessful && !this.isAwaitingPayment) {\n        return true;\n      }\n\n      // const isPending = this._data.paymentCreditCardStatus === this.constants.paymentCreditCardStatus.pending\n      // const isNotSuccessful = this._data.isSuccessful === false\n      // return isPending && isNotSuccessful\n\n      return false;\n    }\n    get isAwaitingPayment() {\n      const isPending = this._data.paymentCreditCardStatus === this.constants.paymentCreditCardStatus.pending;\n      const isNotSuccessful = this._data.isSuccessful === false;\n      return isPending && isNotSuccessful && !this.paymentTransactionOverDue;\n    }\n    get paymentTransactionOverDue() {\n      const has3ds = R.pathOr(false, ['_data', 'paymentCreditCardThreeDomainSecure'])(this);\n      if (!has3ds) {\n        return false;\n      }\n      const now = this.dateService.getMoment().subtract(this.overDueAfter, 'm');\n      const paymentCreditCardTransactionTimestampZ = R.pipe(R.pathOr('', ['_data', 'timestampZ']), time => this.dateService.getMoment(time))(this);\n      return now.isAfter(paymentCreditCardTransactionTimestampZ);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  /**\n   * @typedef ccTemp\n   * @type {Object}\n   * @property {string} paymentCreditCardProvider\n   * @property {string} paymentCreditCardStatus\n   * @property {string} paymentsResponses\n   * @property {boolean} isSuccessful\n   */\n});","define(\"client/pods/payments/linepay/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/documents/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/payments/linepay',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/payments/linepay/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/linepay/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/payments/linepay/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        // RELOADING DATESTART AND DATEEND REMOVES MONTHLY FILTER\n        // dateStart: '',\n        // dateEnd: '',\n        abandonded: '',\n        contact: '',\n        contactKey: '',\n        email: '',\n        externalId: '',\n        ref: '',\n        partialCreditCardNumber: '',\n        paymentCreditCardStatus: ['approved', 'refundRequested', 'refunded'],\n        dispatchProcesses: [],\n        multipleDispatchProcessesCriterias: [],\n        paymentTransactionDateZ: '',\n        refundRequestedDateZ: '',\n        refundedDateZ: '',\n        sourceKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }],\n        inclTotal: '',\n        telephone: ''\n      };\n    }\n  });\n});","define(\"client/pods/payments/linepay/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'email',\n        label: 'email'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'address',\n        label: 'address'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/linepay/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'timestampZ',\n        label: 'created date'\n      }, {\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'email',\n        label: 'email'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/linepay/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'isSuccessful',\n        label: 'successful'\n      }, {\n        value: 'isUnsuccessful',\n        label: 'unsuccessful'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/linepay/lists/panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const PaymentsCardListsPanelsAdapterBase = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'activity',\n        label: 'activity',\n        component: 'payments/linepay/panels-display',\n        filtersAdapterName: 'payments/linepay/filters',\n        adapterName: 'payments/linepay',\n        className: 'show-when-overflow'\n      }, {\n        value: 'activityLogs',\n        label: 'all activity',\n        component: 'payments/linepay/panels-transactions',\n        filtersAdapterName: 'payments/linepay/transactions/filters',\n        adapterName: 'payments/linepay/transactions',\n        className: 'hide-when-overflow'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n  class PaymentsCardListsPanelsAdapter extends PaymentsCardListsPanelsAdapterBase {}\n  _exports.default = PaymentsCardListsPanelsAdapter;\n});","define(\"client/pods/payments/linepay/lists/providers/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'TapPay',\n        value: 'tapPay'\n      }, {\n        label: 'PayUni',\n        value: 'payuni'\n      }\n      // @NOTE: Reminder, this is a placeholder for the future implementation of Line Pay\n      // {\n      //   label: 'BigOrdr',\n      //   value: 'bigOrdr'\n      // }\n      ];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/linepay/lists/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'cc_approved',\n        value: 'approved'\n      }, {\n        label: 'cc_awaitingPayment',\n        value: 'awaitingPayment'\n      }, {\n        label: 'cc_declined',\n        value: 'declined'\n      }, {\n        label: 'cc_refundRequested',\n        value: 'refundRequested'\n      }, {\n        label: 'cc_refunded',\n        value: 'refunded'\n      }, {\n        label: 'cc_unsuccessful',\n        value: 'unsuccessful'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/linepay/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/linepay/specs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/payments/linepay/specs/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import * as R from 'ramda'\n  // import EmberObject, { computed } from '@ember/object'\n  var _default = _exports.default = _model.default.extend({\n    // populate (data, attrs) {\n    //   if (!data.label) {\n    //     data.label = ''\n    //     if (data.fn) {\n    //       data.label = attrs.intl.t(data.fn)\n    //     }\n    //     if (data.type) {\n    //       data.label = attrs.intl.t(data.type)\n    //     }\n    //   }\n    //   if (!data.value) {\n    //     data.value = ''\n    //     if (data.fn) {\n    //       data.value = data.fn\n    //     }\n    //     if (data.type) {\n    //       data.value = data.type\n    //     }\n    //   }\n\n    //   this._super(...arguments)\n    // }\n  });\n});","define(\"client/pods/payments/linepay/transactions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/linepay/transactions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const PaymentsCardTransactionsAdapterBase = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/payments/linepay/ccTemp',\n    modelObj: _model.default,\n    idParam: false\n  });\n  class PaymentsCardTransactionsAdapter extends PaymentsCardTransactionsAdapterBase {}\n  _exports.default = PaymentsCardTransactionsAdapter;\n});","define(\"client/pods/payments/linepay/transactions/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/linepay/transactions/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const PaymentsCardTransactionsFiltersAdapterBase = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n  class PaymentsCardTransactionsFiltersAdapter extends PaymentsCardTransactionsFiltersAdapterBase {}\n  _exports.default = PaymentsCardTransactionsFiltersAdapter;\n});","define(\"client/pods/payments/linepay/transactions/filters/model\", [\"exports\", \"client/pods/filters/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;\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 PaymentsCardTransactionsFiltersModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class PaymentsCardTransactionsFiltersModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        dateExactZ: '',\n        dateExact: '',\n        dateStart: '',\n        dateEnd: '',\n        abandonded: '',\n        contact: '',\n        contactKey: '',\n        email: '',\n        externalId: '',\n        ref: '',\n        partialCreditCardNumber: '',\n        paymentCreditCardStatus: [],\n        dispatchProcesses: [],\n        multipleDispatchProcessesCriterias: [],\n        paymentTransactionDateZ: '',\n        sourceKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }],\n        inclTotal: '',\n        telephone: ''\n      };\n    }\n    updatePeriod({\n      dateStart,\n      dateEnd\n    }) {\n      this._data.dateStart = dateStart;\n      this._data.dateEnd = dateEnd;\n    }\n    updateProvider(provider) {\n      this._data.provider = provider;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updatePeriod\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"updatePeriod\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateProvider\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"updateProvider\"), _class.prototype), _class);\n});","define(\"client/pods/payments/linepay/transactions/model\", [\"exports\", \"client/pods/documents/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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 PaymentsCardTransactionsModel = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember._tracked, _class = class PaymentsCardTransactionsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"constants\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      /** @type {ccTemp} */\n      _initializerDefineProperty(this, \"_data\", _descriptor3, this);\n      _defineProperty(this, \"overDueAfter\", 20);\n    }\n    // minutes\n\n    get ccNumber() {\n      const partialNumber = R.pathOr(null, ['_data', 'paymentCreditCard', 'partial_card_number'])(this);\n      if (partialNumber) {\n        return partialNumber;\n      }\n      const paymentCreditCardLastFourDigits = R.pathOr(null, ['_data', 'paymentCreditCardLastFourDigits'])(this);\n      if (paymentCreditCardLastFourDigits) {\n        return paymentCreditCardLastFourDigits;\n      }\n      const tapPayCardInfo = R.pathOr(null, ['_data', 'firstPaymentResponse', 'card_info'])(this);\n      const lastFour = R.propOr(null, 'last_four')(tapPayCardInfo);\n      if (lastFour) {\n        return lastFour;\n      }\n      return '';\n    }\n    get isTapPay() {\n      const provider = R.pathOr('', ['_data', 'paymentCreditCardProvider'])(this);\n      return provider === 'tapPay';\n    }\n    get isSuccessfulTransaction() {\n      const hasTransactionCode = R.pipe(R.pathOr('', ['_data', 'paymentCreditCardTransactionCode']), RA.isNotNilOrEmpty)(this);\n      const hasSuccessfulMessage = R.pipe(R.pathOr('', ['_data', 'paymentResponse', 'msg']), R.toLower, R.equals('success'))(this);\n      return hasTransactionCode && hasSuccessfulMessage;\n    }\n    get isUnsuccessfulTransaction() {\n      const isUnsuccessful = R.pipe(R.pathOr('', ['_data', 'paymentsResponses', 'msg']), R.toLower, R.equals('success'), R.not)(this);\n      if (isUnsuccessful && !this.isAwaitingPayment) {\n        return true;\n      }\n\n      // const isPending = this._data.paymentCreditCardStatus === this.constants.paymentCreditCardStatus.pending\n      // const isNotSuccessful = this._data.isSuccessful === false\n      // return isPending && isNotSuccessful\n\n      return false;\n    }\n    get isAwaitingPayment() {\n      const isPending = this._data.paymentCreditCardStatus === this.constants.paymentCreditCardStatus.pending;\n      const isNotSuccessful = this._data.isSuccessful === false;\n      return isPending && isNotSuccessful && !this.paymentTransactionOverDue;\n    }\n    get paymentTransactionOverDue() {\n      const has3ds = R.pathOr(false, ['_data', 'paymentCreditCardThreeDomainSecure'])(this);\n      if (!has3ds) {\n        return false;\n      }\n      const now = this.dateService.getMoment().subtract(this.overDueAfter, 'm');\n      const paymentCreditCardTransactionTimestampZ = R.pipe(R.pathOr('', ['_data', 'timestampZ']), time => this.dateService.getMoment(time))(this);\n      return now.isAfter(paymentCreditCardTransactionTimestampZ);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  /**\n   * @typedef ccTemp\n   * @type {Object}\n   * @property {string} paymentCreditCardProvider\n   * @property {string} paymentCreditCardStatus\n   * @property {string} paymentsResponses\n   * @property {boolean} isSuccessful\n   */\n});","define(\"client/pods/payments/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _emberConcurrencyDecorators, R) {\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;\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 PaymentsService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('settings'), _dec3 = Ember._action, _class = class PaymentsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor2, this);\n    }\n    *fetchHistory(docKey) {\n      return yield this.crud.findTask.perform({\n        adapterName: 'payments/card',\n        appendPath: `/${docKey}`\n      });\n    }\n    validatePaymentMethods(paymentMethods) {\n      const settingsAllowPaymentMethods = this.settingsService?.settingsModel?.allowedPaymentMethodsByProviders || [];\n      return R.reduce((acc, paymentMethod) => {\n        if (paymentMethod._key) {\n          return acc.concat(paymentMethod);\n        }\n        if (paymentMethod.isNotEditable === true && paymentMethod.isThirdParty !== true) {\n          return acc.concat(paymentMethod);\n        }\n        if (settingsAllowPaymentMethods.length >= 1 && settingsAllowPaymentMethods.includes(paymentMethod.value)) {\n          return acc.concat(paymentMethod);\n        }\n        return acc;\n      }, [])(paymentMethods);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchHistory\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchHistory\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validatePaymentMethods\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"validatePaymentMethods\"), _class.prototype), _class);\n});","define(\"client/pods/payments/virtual-accounts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/virtual-accounts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/payments/virtual-accounts',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/payments/virtual-accounts/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/virtual-accounts/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/payments/virtual-accounts/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        createdDateZ: '',\n        paymentDateZ: '',\n        virtualAccountNumber: '',\n        contact: '',\n        contactKey: '',\n        email: '',\n        ref: '',\n        paymentVirtualAccountStatus: [],\n        dispatchProcesses: [],\n        multipleDispatchProcessesCriterias: [],\n        sourceKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/payments/virtual-accounts/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'email',\n        label: 'email'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'address',\n        label: 'address'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/virtual-accounts/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'timestampZ',\n        label: 'created date'\n      }, {\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'contact',\n        label: 'contact'\n      }, {\n        value: 'ref',\n        label: 'reference'\n      }, {\n        value: 'telephone',\n        label: 'telephone'\n      }, {\n        value: 'email',\n        label: 'email'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/virtual-accounts/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'isSuccessful',\n        label: 'successful'\n      }, {\n        value: 'isUnsuccessful',\n        label: 'unsuccessful'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/virtual-accounts/lists/providers/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ramda\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    settings: Ember.inject.service(),\n    findAll() {\n      const data = [{\n        label: 'atm_eSun',\n        value: 'eSun'\n      }, {\n        label: 'atm_ubot',\n        value: 'ubot'\n      }, {\n        label: 'atm_bsp',\n        value: 'bsp'\n      }];\n      const eSun = this.settings.getProp('tw_payments_eSun', {});\n      const ubot = this.settings.getProp('tw_payments_ubot', {});\n      const bsp = this.settings.getProp('tw_payments_bsp', {});\n      const eSunVirtualAccounts = R.propOr([], 'virtualAccounts')(eSun);\n      const ubotVirtualAccounts = R.propOr([], 'virtualAccounts')(ubot);\n      const bspVirtualAccounts = R.propOr([], 'virtualAccounts')(bsp);\n      const enabledProviders = R.pipe(R.concat(bspVirtualAccounts), R.concat(ubotVirtualAccounts), R.filter(R.propEq('enabled', true)), R.pluck('provider'))(eSunVirtualAccounts);\n      const onlyEnabled = R.filter(list => {\n        return R.includes(list.value)(enabledProviders);\n      })(data);\n      return _nventor.default.resolve(onlyEnabled);\n    }\n  });\n});","define(\"client/pods/payments/virtual-accounts/lists/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'atm_approved',\n        value: 'approved'\n      }, {\n        label: 'atm_pending',\n        value: 'pending'\n      }, {\n        label: 'atm_expired',\n        value: 'expired'\n      }, {\n        label: 'atm_attentionRequired',\n        value: 'attentionRequired'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/payments/virtual-accounts/model\", [\"exports\", \"client/pods/base/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    populate(data, attrs) {\n      data.doc = this._transformDoc(data.doc);\n      this._super(data, attrs);\n    },\n    _transformDoc(data) {\n      return this.dataManager.setPartialRecord({\n        adapterName: 'documents/sales/invoices',\n        data\n      });\n\n      // not sure what else gets returned with documents so return a partial generic model that is not cached..\n      // return this.dataManager.setAsRecord({\n      //   adapterName: 'partial',\n      //   data\n      // })\n    }\n  });\n});","define(\"client/pods/payments/virtual-accounts/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/payments/virtual-accounts/specs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/payments/virtual-accounts/specs/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import * as R from 'ramda'\n  // import EmberObject, { computed } from '@ember/object'\n  var _default = _exports.default = _model.default.extend({\n    // populate (data, attrs) {\n    //   if (!data.label) {\n    //     data.label = ''\n    //     if (data.fn) {\n    //       data.label = attrs.intl.t(data.fn)\n    //     }\n    //     if (data.type) {\n    //       data.label = attrs.intl.t(data.type)\n    //     }\n    //   }\n    //   if (!data.value) {\n    //     data.value = ''\n    //     if (data.fn) {\n    //       data.value = data.fn\n    //     }\n    //     if (data.type) {\n    //       data.value = data.type\n    //     }\n    //   }\n\n    //   this._super(...arguments)\n    // }\n  });\n});","define(\"client/pods/periods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: '',\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: _constants.default.timePeriods.days,\n        label: _constants.default.timePeriods.days\n      }, {\n        value: _constants.default.timePeriods.weeks,\n        label: _constants.default.timePeriods.weeks\n      }, {\n        value: _constants.default.timePeriods.months,\n        label: _constants.default.timePeriods.months\n      }, {\n        value: _constants.default.timePeriods.years,\n        label: _constants.default.timePeriods.years\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/periods/date-options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/mixins/date\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _date, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, _date.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'date',\n        value: '1_days'\n      }, {\n        label: 'single_month',\n        value: '1_months'\n      }, {\n        label: 'three_months',\n        value: '3_months'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/periods/months/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/mixins/date\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _date, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, _date.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const pastMonths = this.getPastMonths(12);\n      const data = [];\n      const intl = this.intl;\n      pastMonths.forEach(period => {\n        const item = {\n          value: period.mm,\n          label: intl.t(period.name)\n        };\n        data.pushObject(item);\n      });\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/periods/years/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/mixins/date\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _date, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, _date.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      // @TODO: should set more years later/or custom year\n      const pastYears = this.getPastYears({\n        number: 5,\n        futureYearsNumber: 1\n      });\n      const data = [];\n      const intl = this.intl;\n      pastYears.forEach(period => {\n        const item = {\n          value: period.yyyy,\n          label: period.yyyy\n        };\n        data.pushObject(item);\n      });\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/pikaday/service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * stores to localstorage using the store.js library.\n   * will use other methods in localstorage is not available\n   */\n  //@TODO: test\n  var _default = _exports.default = Ember.Service.extend({\n    setup(options) {\n      options = options || {};\n      return new Pikaday(options);\n    }\n  });\n});","define(\"client/pods/pos/lists/macros/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/pos/lists/macros',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/pos/lists/profiles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/pos/lists/profiles/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/pos/lists/profiles',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/pos/lists/profiles/model\", [\"exports\", \"client/pods/base/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    populate(data, attrs) {\n      const user = this._transformUsers(data);\n      this.set('user', user);\n      this._super(data, attrs);\n    },\n    _transformUsers(data) {\n      if (data?.userData) {\n        const userData = data.userData;\n        delete data.userData;\n        return this.dataManager.setPartialRecord({\n          adapterName: 'users',\n          data: userData\n        });\n      }\n      return {};\n    }\n  });\n});","define(\"client/pods/pos/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\", \"client/config/environment\"], function (_exports, _emberConcurrencyDecorators, R, _environment) {\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, _dec0, _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 PosService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service('terminal'), _dec4 = Ember.inject.service, _dec5 = Ember.inject.service('users'), _dec6 = Ember.inject.service('settings'), _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _class = class PosService extends Ember.Service {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"terminalService\", _descriptor3, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor4, this);\n      _initializerDefineProperty(this, \"usersService\", _descriptor5, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor6, this);\n      this.crud.addLists(this, ['paymentMethods']);\n    }\n    get posPaymentMethods() {\n      // @NOTE: only type 'cash' and 'other' are allowed.\n      const posMandatoryPaymentMethodsFilters = [R.pathEq(['_data', 'value'], this.constants.paymentMethods.cash), R.pathEq(['_data', 'value'], this.constants.paymentMethods.other)];\n      return R.pipe(R.pathOr([], ['crud', 'lists', 'paymentMethods']), R.filter(R.anyPass(posMandatoryPaymentMethodsFilters)))(this);\n    }\n    *fetchCampaignWithPosEnableTask(shopKey) {\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {\n          hasPos: true\n        }\n      });\n      return yield this.crud.findTask.perform({\n        filters: campaignFilters,\n        adapterName: 'channels/shop/campaigns',\n        appendPath: `/${shopKey}`\n      });\n    }\n    *fetchCampaignsWithPosEnableTask() {\n      const campaignFilters = this.search.setupFilters({\n        adapterName: 'channels/shop/campaigns/filters',\n        defaultFiltersData: {\n          hasPos: true\n        }\n      });\n      return yield this.crud.searchRecordsTask.perform({\n        filters: campaignFilters,\n        adapterName: 'channels/shop/campaigns',\n        allowEmptyQuery: true\n      });\n    }\n    *fetchCampaignsDetails(filters) {\n      const appendPath = filters?._data?.appendPath;\n      return yield this.crud.searchRecordsTask.perform({\n        adapterName: 'channels/shop/campaigns/details',\n        appendPath,\n        filters\n      });\n    }\n    enterPosProfile(tab, posProfileModel) {\n      tab.set('hasAlreadyEnteredPosMode', true);\n      tab.set('posProfileModel', posProfileModel);\n      return tab;\n    }\n    exitPosProfile(tab) {\n      tab.set('hasAlreadyEnteredPosMode', false);\n      tab.set('posProfileModel', null);\n      return tab;\n    }\n    setupDocumentWithPosProfile(posProfileModel, documentModel) {\n      documentModel.setData('source', posProfileModel?._data?.shopData?.name);\n      documentModel.setData('sourceKey', posProfileModel?._data?.shopKey);\n      documentModel.setData('status', this.constants.documentsStatus.final);\n      documentModel.setData('posProfileKey', posProfileModel?._data?._key);\n      documentModel.setData('twEInvoiceUserKey', posProfileModel?.user?._data?._key);\n      const twEInvoiceAllowPrintingFrom = posProfileModel?.user?._data?.twEInvoiceAllowPrintingFrom || this.constants.twEInvoicePrinter.allowPrintingFrom.anyNextAvailableNumbers;\n      documentModel.setData('twEInvoiceAllowPrintingFrom', twEInvoiceAllowPrintingFrom);\n      const autoIssueEInvoice = posProfileModel?._data?.autoIssueEInvoice;\n      let twEInvoicePrint = posProfileModel?._data?.autoIssueEInvoice;\n      if (documentModel?._data?.twEInvoiceCarrierId) {\n        twEInvoicePrint = false;\n      }\n      documentModel.setData('twEInvoicePrint', twEInvoicePrint);\n      let autoIssueEInvoiceString = this.constants.invoicing.off;\n      if (autoIssueEInvoice) {\n        autoIssueEInvoiceString = this.constants.invoicing.on;\n        documentModel = this.terminalService.setupDocumentWithPrinterTerminal({\n          userModel: posProfileModel?.user || {},\n          documentModel\n        });\n      }\n      documentModel.setData('autoPrintInvoices', autoIssueEInvoiceString);\n      return documentModel;\n    }\n    generateWebPosLink(shopModel) {\n      const appUrl = _environment.default?.APP?.appUrl || '';\n      const shopUrl = _environment.default?.APP?.shopUrl || '';\n      const shopUrlPrefix = this?.settingsService?.shopUrlPrefix || '';\n      const modelShopUrl = shopModel?._data?.shopUrl || '';\n      const prefix = shopUrlPrefix ? `${shopUrlPrefix}-` : '';\n      return appUrl + '?app=web-pos&redirect=' + encodeURIComponent(shopUrl + '/' + prefix + modelShopUrl);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"terminalService\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"usersService\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignWithPosEnableTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignWithPosEnableTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignsWithPosEnableTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignsWithPosEnableTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignsDetails\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchCampaignsDetails\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"enterPosProfile\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"enterPosProfile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"exitPosProfile\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"exitPosProfile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDocumentWithPosProfile\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDocumentWithPosProfile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"generateWebPosLink\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"generateWebPosLink\"), _class.prototype), _class);\n});","define(\"client/pods/print/service\", [\"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 = Ember.Service.extend({});\n});","define(\"client/pods/printer/lists/allow-printing-from/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'printerAllocatedNumbers',\n        label: 'printerAllocatedNumbers'\n      }, {\n        value: 'anyNextAvailableNumbers',\n        label: 'anyNextAvailableNumbers'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/printer/lists/models/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _constants, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const printerModels = [{\n        value: _constants.default.twEInvoicePrinter.models.microchip,\n        label: 'printer model microchip'\n      }, {\n        value: _constants.default.twEInvoicePrinter.models.hprtTp805,\n        label: 'printer model hprt tp805'\n      }];\n      return _nventor.default.resolve(printerModels);\n    }\n  });\n});","define(\"client/pods/printer/lists/printers/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/printer/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/processes/model\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Object.extend({\n    init: function () {\n      this._super(...arguments);\n      const random = Math.floor(Math.random() * 100000);\n      this.set('id', random);\n    },\n    serialize(model) {\n      const data = this._super(model);\n      if (data.isSystemProcess) {\n        delete data.index;\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/products-list-by/service\", [\"exports\", \"ember-concurrency-decorators\"], function (_exports, _emberConcurrencyDecorators) {\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 ProductsListByService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class ProductsListByService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"date\", _descriptor2, this);\n    }\n    *listByTask({\n      adapterName,\n      appendPath,\n      byLatest,\n      filters,\n      match,\n      onAfter,\n      query,\n      resultsProperty,\n      resultsToggle,\n      status\n    } = {}, onHideDropdown) {\n      // when list by always set to page 1\n      filters.setData('page', 1);\n      if (match) {\n        filters.setData('match', match);\n      }\n      if (status) {\n        if (!Ember.isArray(status)) {\n          status = [status];\n        }\n        filters.setData('status', status);\n      }\n      if (byLatest) {\n        filters.setData('sort', [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]);\n      }\n      const searchSettings = {\n        adapterName,\n        appendPath,\n        filters,\n        onAfter,\n        query,\n        resultsProperty,\n        resultsToggle\n      };\n      const results = yield this.crud.searchRecordsTask.perform(searchSettings);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"listByTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"listByTask\"), _class.prototype), _class);\n});","define(\"client/pods/products/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/model\"], function (_exports, R, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products',\n    modelObj: _model.default,\n    idParam: '_id',\n    serialize(model) {\n      const data = this._super(model);\n      if (data.isSet) {\n        const setDetailsRequiredAttrs = ['itemKey'];\n        const setDetails = data.setDetails || [];\n        data.setDetails = R.filter(detail => this.isNotEmptyDetail(detail, setDetailsRequiredAttrs))(setDetails);\n      } else {\n        data.setDetails = [];\n      }\n      if (data.hasVariants) {\n        const variantsRequiredAttrs = ['name'];\n        const variants = data.variants || [];\n        data.variants = R.pipe(R.filter(detail => this.isNotEmptyDetail(detail, variantsRequiredAttrs)), R.map(variant => {\n          variant.options = R.pipe(R.propOr([], 'options'), R.filter(option => this.isNotEmptyDetail(option, variantsRequiredAttrs)), R.sortWith([R.ascend(R.prop('index'))]))(variant);\n          return variant;\n        }))(variants);\n      } else {\n        data.variants = [];\n      }\n      if (data.isSetWithChoices) {\n        const choicesRequiredAttrs = ['itemKey'];\n        const choices = data.choices || [];\n        data.choices = R.pipe(R.map(choice => {\n          choice.details = R.filter(option => this.isNotEmptyDetail(option, choicesRequiredAttrs))(choice.details || []);\n          return choice;\n        }), R.filter(choice => !R.isEmpty(choice.details)))(choices);\n      } else {\n        data.choices = [];\n      }\n      if (data.hasCustomizations) {\n        const customizationsRequiredAttrs = ['name'];\n        const customizations = data.customizations || [];\n        data.customizations = R.pipe(R.filter(detail => this.isNotEmptyDetail(detail, customizationsRequiredAttrs)), R.map(customization => {\n          customization.options = R.pipe(R.propOr([], 'options'), R.sortWith([R.ascend(R.prop('index'))]))(customization);\n          return customization;\n        }))(customizations);\n      } else {\n        data.customizations = [];\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/products/attachments/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/barcodes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/barcodes/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/barcodes/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/products/batch/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products',\n    idParam: false,\n    serialize(products) {\n      return R.map(product => {\n        return this._serialize(product._data);\n      })(products);\n    }\n\n    // updateIndexes (data, appendPath) {\n    //   const path = this.getFullPath({ pathName: 'updatePath', appendPath, serverType })\n    //   data = R.map(R.pick(['_key', 'index']))(data)\n    //   data = this._addAdapterInfo(data, appendPath)\n\n    //   const payload = {\n    //     batch: data\n    //   }\n    //   try {\n    //     return this.ajax.PATCH(path, payload)\n    //   } catch (e) {\n    //     // console.log(e)\n    //   }\n    // }\n  });\n});","define(\"client/pods/products/batch/statuses/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products',\n    idParam: false,\n    serialize(products) {\n      const batch = R.map(product => {\n        return {\n          _key: product?._data._key\n        };\n      })(products);\n      return {\n        batch\n      };\n    }\n  });\n});","define(\"client/pods/products/batch/tags/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products',\n    idParam: false,\n    serialize(products) {\n      const batch = R.map(product => {\n        return {\n          _key: product?._data._key\n        };\n      })(products);\n      return {\n        batch\n      };\n    }\n  });\n});","define(\"client/pods/products/brands/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products/brands',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/products/choices/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/choices/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/choices/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/choices/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/choices/details/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/products-children\", \"client/mixins/uploads\"], function (_exports, _model, _productsChildren, _uploads) {\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(_productsChildren.default, _uploads.default, {\n    init() {\n      this._super(...arguments);\n      this.set('childAdapters', {\n        choices: 'products/choices',\n        'choices-details': 'products/choices/details',\n        'sets-details': 'products/sets/details',\n        variants: 'products/variants',\n        'variants-options': 'products/variants/options',\n        'variants-children': 'products/variants/children'\n      });\n    },\n    defaults() {\n      return {};\n    }\n  });\n});","define(\"client/pods/products/choices/model\", [\"exports\", \"ramda\", \"client/pods/base/model\", \"client/mixins/sortable-details\", \"client/mixins/products-children\"], function (_exports, R, _model, _sortableDetails, _productsChildren) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import { computed } from '@ember/object'\n  // import nventor from '../../../utils/nventor'\n  // import ChoicesDetailsModel from './details/model'\n  var _default = _exports.default = _model.default.extend(_productsChildren.default, _sortableDetails.default, {\n    toSortProp: '_data.details',\n    init() {\n      this._super(...arguments);\n      this.set('childAdapters', {\n        choices: 'products/choices',\n        'choices-details': 'products/choices/details',\n        'sets-details': 'products/sets/details',\n        variants: 'products/variants',\n        'variants-options': 'products/variants/options',\n        'variants-children': 'products/variants/children'\n      });\n    },\n    defaults() {\n      return {};\n    },\n    toSortArray: Ember.computed('_data.details.[]', 'synced', function () {\n      return this.get('_data.details');\n    }),\n    setChildProductPrice(child, historyData) {\n      const isCampaign = R.prop('campaign', historyData);\n      this._setItemPrice(isCampaign, child, historyData);\n      this._setVariantChildrenPrices(isCampaign, child, historyData);\n    },\n    _setItemPrice(isCampaign, item, historyData) {\n      if (isCampaign) {\n        const price = R.propOr('', 'price', historyData);\n        const priceDiscounted = R.propOr('', 'priceDiscounted', historyData);\n        const onSale = R.propOr('', 'onSale', historyData);\n        if (onSale) {\n          item.setData('onSale', onSale);\n        }\n        item.setData('price', price);\n        item.setData('priceDiscounted', priceDiscounted);\n      } else {\n        let price;\n        price = historyData.inclPrice;\n        if (!price) {\n          price = R.propOr('', 'salesInclPrice', historyData);\n        }\n        item.setData('price', price);\n        item.setData('priceDiscounted', '');\n      }\n    },\n    _setVariantChildrenPrices(isCampaign, item, historyData) {\n      const variantChildrenHistory = R.propOr([], 'variantChildren')(historyData);\n      R.pipe(R.pathOr([], ['_data', 'variantChildren']), R.forEach(child => {\n        const variantChildId = child._data.variantChildId;\n        let childHistory = R.find(R.propEq('variantChildId', variantChildId))(variantChildrenHistory);\n        if (!childHistory) {\n          const variantChildUid = child._data.variantChildUid;\n          childHistory = R.find(R.propEq('variantChildUid', variantChildUid))(variantChildrenHistory);\n        }\n        if (childHistory) {\n          this._setItemPrice(isCampaign, child, childHistory);\n        }\n      }))(item);\n    },\n    addChoiceDetail(data) {\n      const details = this._data.details || [];\n      const lastDetail = details.get('lastObject');\n      let index = 1;\n      if (lastDetail) {\n        const lastIndex = parseInt(lastDetail._data.index) || 0;\n        index = lastIndex + 1;\n      }\n      const defaultData = {\n        index,\n        name: '',\n        status: this.get('constants.status.active')\n      };\n      data = data || defaultData;\n      const detailModel = this.dataManager.setAsRecord({\n        adapterName: 'products/choices/details',\n        data\n      });\n      details.pushObject(detailModel);\n      this.setData('details', details);\n      return data;\n    },\n    removeChoiceDetail(detail) {\n      const details = this._data.details || [];\n      if (details.get('lastObject._data.index') === detail._data.index) {\n        // do not remove detail, clear detail only\n        this.resetChoiceDetail(detail);\n      } else {\n        details.removeObject(detail);\n        this.resetIndexes(details);\n      }\n    },\n    resetChoiceDetail(detail) {\n      const data = detail.get('_data');\n      const keys = Object.keys(data);\n      keys.forEach(function (key) {\n        let allowReset = true;\n\n        // @TODO: could set a disallowResetAttrs array,\n        // @TODO: eg. disallowResetAttrs: ['index', 'deliveryDateZ']\n        // @TODO: then it will not allow resetting those values\n        const allowResetKey = R.anyPass([R.equals('index'), R.equals('status')])(key);\n        if (allowResetKey) {\n          allowReset = false;\n        }\n        if (allowReset) {\n          detail.setData(key, '');\n        }\n      });\n    }\n  });\n});","define(\"client/pods/products/customizations/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/customizations/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/customizations/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/products-children\", \"client/mixins/sortable-details\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, _productsChildren, _sortableDetails, R, RA) {\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(_productsChildren.default, _sortableDetails.default, {\n    toSortProp: '_data.options',\n    indexProp: '_data.index',\n    toSortArray: Ember.computed('_data.options.[]', 'synced', function () {\n      return this.get('_data.options');\n    }),\n    populate(data = {}) {\n      if (RA.isNotNilOrEmpty(data?.options || [])) {\n        data.options = R.pipe(R.propOr([], 'options'), R.map(option => {\n          return this.dataManager.setAsRecord({\n            adapterName: 'products/customizations/options',\n            data: option\n          });\n        }))(data);\n      }\n      this._super(...arguments);\n    },\n    defaults() {\n      return {};\n    }\n  });\n});","define(\"client/pods/products/customizations/options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/customizations/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/customizations/options/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        isCustomResponse: false\n      };\n    }\n  });\n});","define(\"client/pods/products/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/filters/inventory-report/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/filters/model\", [\"exports\", \"client/pods/filters/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    dateService: Ember.inject.service('date'),\n    defaults() {\n      const period = this.dateService.getPeriod();\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        types: [],\n        setTypes: [],\n        recurringFilters: [],\n        hasImages: '',\n        name: '',\n        code: '',\n        brands: [],\n        barcode: '',\n        tags: [],\n        hideNoActivity: false,\n        units: [],\n        statusesCount: '',\n        fetchWithActiveCampaigns: '',\n        hasActiveCampaigns: '',\n        salesTaxRate: '',\n        purchasesTaxRate: '',\n        fetchMax: false,\n        inventoryReportMMStart: period.mm || '',\n        inventoryReportYYYYStart: period.yyyy || '',\n        inventoryReportMMEnd: period.mm || '',\n        inventoryReportYYYYEnd: period.yyyy || '',\n        itemKey: '',\n        itemCode: '',\n        includeInventoryReport: false,\n        hideVariantChildrenInProductsSearch: false,\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    },\n    tagsCount: Ember.computed('_data.tags.[]', function () {\n      return this.getPropLength('_data.tags');\n    }),\n    unitsCount: Ember.computed('_data.units.[]', function () {\n      return this.getPropLength('_data.units');\n    }),\n    brandsCount: Ember.computed('_data.brands.[]', function () {\n      return this.getPropLength('_data.brands');\n    }),\n    typesCount: Ember.computed('_data.types.[]', function () {\n      return this.getPropLength('_data.types');\n    }),\n    setTypesCount: Ember.computed('_data.setTypes.[]', function () {\n      return this.getPropLength('_data.setTypes');\n    }),\n    recurringFiltersCount: Ember.computed('_data.recurringFilters.[]', function () {\n      return this.getPropLength('_data.recurringFilters');\n    })\n  });\n});","define(\"client/pods/products/inventory/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/inventory/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products/inventory',\n    modelObj: _model.default,\n    idParam: 'itemKey',\n    idPrefix: 'inventory'\n  });\n});","define(\"client/pods/products/inventory/adjustments/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/inventory/adjustments/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products/inventory/adjustments',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/products/inventory/adjustments/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/inventory/adjustments/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/inventory/adjustments/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 10,\n        countLabel: '10',\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        types: [],\n        setTypes: [],\n        name: '',\n        code: '',\n        barcode: '',\n        tags: [],\n        dateZ: '',\n        adjustments: [],\n        adjustment: '',\n        adjustmentLabel: '',\n        // to reset list dropdown label\n        itemCode: '',\n        item: '',\n        description: '',\n        unit: '',\n        // to reset list dropdown label\n        unitKey: '',\n        qty: '',\n        exclPrice: '',\n        notes: '',\n        sort: [{\n          by: 'dateZ',\n          direction: 'DESC'\n        }, {\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/products/inventory/adjustments/model\", [\"exports\", \"ramda\", \"client/pods/base/model\"], function (_exports, R, _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    loadProduct(product, historyData) {\n      this.setData('item', product.getData('name'));\n      this.setData('roundingInventoryQty', product.getData('roundingInventoryQty', this.settings.getProp('roundingInventoryQty')));\n      this.setData('roundingInventoryPrice', product.getData('roundingInventoryPrice', this.settings.getProp('roundingInventoryPrice')));\n      this.setData('unit', product.getData('unit'));\n      this.setData('unitKey', product.getData('unitKey'));\n      this.setPrice(historyData);\n    },\n    setPrice(historyData) {\n      let price;\n      price = historyData.exclPrice;\n      if (!price) {\n        price = R.propOr('', 'salesExclPrice', historyData);\n      }\n      this.setData('exclPrice', price);\n    }\n  });\n});","define(\"client/pods/products/inventory/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/inventory/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/inventory/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        types: [],\n        setTypes: [],\n        name: '',\n        code: '',\n        barcode: '',\n        tags: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/products/inventory/lists/adjustments/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'increase',\n        label: 'increase'\n      }, {\n        value: 'decrease',\n        label: 'decrease'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/inventory/lists/qty-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'onHandQty',\n        label: 'on hand qty'\n      }, {\n        value: 'bookQty',\n        label: 'book qty'\n      }, {\n        value: 'reOrderWhenQty',\n        label: 're-order qty'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/inventory/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/big\"], function (_exports, _model, _big) {\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(_big.default, {\n    isLessThanEqualQty(cutOff, qty) {\n      const qtyBig = this.newBig(qty || 0);\n      if (qtyBig.lte(cutOff)) {\n        return true;\n      }\n      return false;\n    },\n    onBookQtyIsEmpty: Ember.computed('onBookQty', function () {\n      return this.isLessThanEqualQty(0, this.getData('onBookQty'));\n    }),\n    onHandQtyIsEmpty: Ember.computed('onHandQty', function () {\n      return this.isLessThanEqualQty(0, this.getData('onHandQty'));\n    }),\n    availableQtyIsEmpty: Ember.computed('availableQty', function () {\n      return this.isLessThanEqualQty(0, this.getData('availableQty'));\n    })\n\n    // totalSalesPendingAndUndispatchedQtyIsEmpty: computed('totalSalesPendingAndUndispatchedQty', function () {\n    //   return this.isLessThanEqualQty(0, this.getData('totalSalesPendingAndUndispatchedQty'))\n    // }),\n\n    // totalSalesPendingAndUndispatchedQty: computed('_data.{salesInvoicesUndispatchedQty,salesConsignmentsUndispatchedQty,salesOrdersPendingQty,salesConsignmentsPendingQty}', function () {\n    //   const salesInvoicesUndispatchedQty = this.get('_data.salesInvoicesUndispatchedQty')\n    //   const salesConsignmentsUndispatchedQty = this.get('_data.salesConsignmentsUndispatchedQty')\n    //   const salesOrdersPendingQty = this.get('_data.salesOrdersPendingQty')\n\n    //   const roundingInventoryQty = this.getData('roundingInventoryQty', this.get('settings').getProp('roundingInventoryQty'))\n    //   const total = this.autoRound(\n    //     roundingInventoryQty,\n    //     this.newBig(salesOrdersPendingQty)\n    //       .plus(salesInvoicesUndispatchedQty)\n    //       .plus(salesConsignmentsUndispatchedQty)\n    //   )\n    //   return total\n    // })\n  });\n});","define(\"client/pods/products/inventory/report/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products/inventory',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/lists/attachments-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      let data = [{\n        value: this.constants.productAttachmentsTypes.video,\n        label: 'video',\n        translate: true\n      }, {\n        value: this.constants.productAttachmentsTypes.link,\n        label: 'link',\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/bigordr-products-per-row/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 3,\n        // number\n        label: '3'\n      }, {\n        value: 4,\n        // number\n        label: '4'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/bigordr-products-slider-items/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '3',\n        label: '3'\n      }, {\n        value: '4',\n        label: '4'\n      }, {\n        value: '5',\n        label: '5'\n      }, {\n        value: '6',\n        label: '6'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/bigordr-products-slider-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'slider',\n        label: 'slider'\n      }, {\n        value: 'grid',\n        label: 'images_grid'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/bulk-insert-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'add',\n        label: 'add'\n      }\n      // next step add remove\n      // {\n      //   value: 'remove',\n      //   label: 'remove',\n      // }\n      ];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/campaigns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/lists/campaigns/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products/campaigns-list',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/lists/campaigns/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/lists/campaigns/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/lists/campaigns/details/model\", [\"exports\", \"client/pods/base/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;\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 ProductsListsCampaignsListModel = _exports.default = (_dec = Ember.inject.service('products'), _dec2 = Ember.computed('_data.status'), _class = class ProductsListsCampaignsListModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"productsService\", _descriptor, this);\n    }\n    /**\n     * campaign detail status class\n     */\n    get statusClass() {\n      const status = this?._data?.status || 'inactive';\n      return this.productsService.getStatusClass(status);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"statusClass\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"statusClass\"), _class.prototype), _class);\n});","define(\"client/pods/products/lists/campaigns/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\"], function (_exports, R, RA, _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;\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 ProductsListsCampaignsListModel = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('products'), _dec3 = Ember._tracked, _dec4 = Ember.computed('_data.campaign.status'), _dec5 = Ember.computed('_data.status'), _class = class ProductsListsCampaignsListModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"productsService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_data\", _descriptor3, this);\n    }\n    get campaignKey() {\n      return R.pathOr('', ['_data', 'campaign', '_key'])(this);\n    }\n    get isActive() {\n      return R.pathEq(['_data', 'campaign', 'status'], 'active')(this);\n    }\n    get campaignName() {\n      const isAutomation = R.pathEq(['_data', 'isAutomation'], true)(this);\n      const campaignName = R.pathOr('', ['_data', 'campaign', 'name'])(this);\n      if (isAutomation) {\n        return `${campaignName} (${this.intl.t('automation')})`;\n      }\n      return campaignName;\n    }\n\n    /**\n     * campaign status class\n     */\n    get campaignStatusClass() {\n      const isActive = this?.isActive;\n      if (isActive) {\n        return 'is-primary';\n      }\n      return 'is-danger';\n    }\n\n    /**\n     * campaign detail status class\n     */\n    get statusClass() {\n      const status = this?._data?.status || 'inactive';\n      return this.productsService.getStatusClass(status);\n    }\n    populate(data, attrs) {\n      data.campaignDetails = this._transformCampaignDetails(data);\n      super.populate(data, attrs);\n    }\n    _transformCampaignDetails(data) {\n      const campaignDetails = data?.campaignDetails || [];\n      if (RA.isNotNilOrEmpty(campaignDetails)) {\n        return R.map(campaignDetail => {\n          return this.dataManager.newRecord({\n            adapterName: 'products/lists/campaigns/details',\n            data: campaignDetail\n          });\n        })(campaignDetails);\n      }\n      return [];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"productsService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"campaignStatusClass\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"campaignStatusClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"statusClass\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"statusClass\"), _class.prototype), _class);\n});","define(\"client/pods/products/lists/categories/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'simple',\n        label: 'simple'\n      }, {\n        value: 'compound',\n        label: 'compound'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/display-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const list = [{\n        value: 'details',\n        label: 'details',\n        resource: 'api/protected/products/sub-panels-display/details',\n        component: 'products/panels-display/details-display',\n        tabType: 'reuseSubTab',\n        editingComponent: 'products/products-editor/details-editor'\n      }, {\n        value: 'isSet',\n        label: 'product_sets',\n        resource: 'api/protected/products/sub-panels-display/sets',\n        component: 'products/panels-display/sets-display',\n        tabType: 'reuseSubTab',\n        editingComponent: 'products/products-editor/sets-editor'\n      }, {\n        value: 'isSetWithChoices',\n        label: 'product_sets_with_choices',\n        resource: 'api/protected/products/sub-panels-display/sets-with-choices',\n        component: 'products/panels-display/sets-with-choices-display',\n        tabType: 'reuseSubTab',\n        editingComponent: 'products/products-editor/sets-with-choices-editor'\n      }, {\n        value: 'hasVariants',\n        label: 'variants',\n        resource: 'api/protected/products/sub-panels-display/variants',\n        component: 'products/panels-display/variants-display',\n        tabType: 'reuseSubTab',\n        editingComponent: 'products/products-editor/variants-editor'\n      }];\n      list.pushObject({\n        value: 'webpages',\n        label: 'webpages_content',\n        resource: 'api/protected/products/sub-panels-display/pages',\n        component: 'products/panels-display/pages-display',\n        tabType: 'reuseSubTab',\n        editingComponent: 'products/products-editor/pages-editor'\n      });\n      list.pushObject({\n        value: 'seo',\n        label: 'seo',\n        resource: 'api/protected/products/sub-panels-display/seo',\n        component: 'products/panels-display/seo-display',\n        tabType: 'reuseSubTab',\n        editingComponent: 'products/products-editor/seo-editor'\n      });\n      list.pushObject({\n        value: 'emails',\n        label: 'emails',\n        resource: 'api/protected/products/sub-panels-display/emails',\n        component: 'products/panels-display/emails-display',\n        tabType: 'reuseSubTab',\n        editingComponent: 'products/products-editor/emails-editor'\n      });\n      list.pushObject({\n        value: 'tickets',\n        label: 'tickets',\n        resource: 'api/protected/products/sub-panels-display/tickets',\n        component: 'products/panels-display/tickets-display',\n        tabType: 'reuseSubTab',\n        editingComponent: 'products/products-editor/tickets-editor'\n      });\n      if (this.settings.getProp('beta.allowRecurringSchedules') && this.settings.getProp('features.allowRecurringSchedules')) {\n        list.pushObject({\n          value: 'recurringSchedules',\n          label: 'recurring schedules',\n          resource: 'api/protected/recurring',\n          component: 'products/products-editor/recurring-schedules-editor',\n          tabType: 'reuseSubTab',\n          editingComponent: 'products/products-editor/recurring-schedules-editor'\n        });\n      }\n      list.pushObject({\n        value: 'customizations',\n        label: 'customizations',\n        resource: 'api/protected/products/sub-panels-display/customizations',\n        component: 'products/products-editor/customizations-editor',\n        tabType: 'reuseSubTab',\n        editingComponent: 'products/products-editor/customizations-editor'\n      });\n\n      // @TODO: this currently does not do anything yet.\n      // this will work, but to complete feature, this needs to send data out on order success email\n      // {\n      //   value: 'virtual',\n      //   label: 'virtual_content',\n      //   resource: 'api/protected/products/sub-panels-display/virtual-contents',\n      //   component: 'products/products-editor/virtual-contents-editor',\n      //   editingComponent: 'products/products-editor/virtual-contents-editor',\n      //   tabType: 'reuseSubTab'\n      // },\n\n      list.pushObject({\n        value: 'faqs',\n        label: 'faqs',\n        resource: 'api/protected/products/sub-panels-display/faqs',\n        component: 'products/panels-display/faqs-display',\n        editingComponent: 'products/products-editor/details-editor'\n      });\n      list.pushObject({\n        value: 'customerActivity',\n        label: 'customer activity',\n        resource: 'api/protected/products/sub-panels/customer-activity',\n        docType: 'sales',\n        tabType: 'replaceSubTab',\n        component: 'products/panels-display/activity-display',\n        editingComponent: 'products/products-editor/details-editor'\n      });\n      list.pushObject({\n        value: 'supplierActivity',\n        label: 'supplier activity',\n        resource: 'api/protected/products/sub-panels/supplier-activity',\n        docType: 'purchases',\n        tabType: 'replaceSubTab',\n        component: 'products/panels-display/activity-display',\n        editingComponent: 'products/products-editor/details-editor'\n      });\n\n      // list.pushObject({\n      //   value: 'activity',\n      //   label: 'activity',\n      //   resource: 'api/protected/products/sub-panels/transactions',\n      //   component: 'products/panels-display/transactions-display',\n      //   tabType: 'replaceSubTab',\n      //   editingComponent: 'products/products-editor/details-editor'\n      // })\n\n      list.pushObject({\n        resource: '/api/protected/documents/data/pending',\n        component: 'documents/pending/tab-container',\n        label: 'doc-pending',\n        tabType: 'replaceSubTab',\n        docType: 'sales',\n        docName: 'orders'\n        // docType: 'consignment'\n      });\n      list.pushObject({\n        value: 'shop',\n        label: 'shop',\n        resource: 'api/protected/products/sub-panels/shop',\n        component: 'products/panels-display/shop-display',\n        tabType: 'replaceSubTab'\n      });\n\n      // const isVirtualOnly = this.settings?.isFeatureAllowed('features.isVirtualOnly')\n      // if (isVirtualOnly) {\n      //   const allowed = [\n      //     'details',\n      //     'webpages',\n      //     'virtual',\n      //     'seo',\n      //     'activity'\n      //   ]\n      //   list = R.filter(item => {\n      //     return R.includes(item.value)(allowed)\n      //   })(list)\n      // }\n\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/products/lists/display-tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/lists/display-tags/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products/display-tags',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/products/lists/display-tags/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/products/lists/editor-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import nventor from '../../../../utils/nventor'\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const list = [{\n        value: 'details',\n        label: 'details',\n        resource: 'api/protected/products/sub-panels-edit/details',\n        component: 'products/products-editor/details-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isFromShop', 'isNew', 'isEditing']\n      }, {\n        value: 'isSet',\n        label: 'product_sets',\n        resource: 'api/protected/products/sub-panels-edit/sets',\n        component: 'products/products-editor/sets-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isFromShop', 'isNew', 'isEditing']\n      }, {\n        value: 'isSetWithChoices',\n        label: 'product_sets_with_choices',\n        resource: 'api/protected/products/sub-panels-edit/sets-with-choices',\n        component: 'products/products-editor/sets-with-choices-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isFromShop', 'isNew', 'isEditing']\n      }, {\n        value: 'hasVariants',\n        label: 'variants',\n        resource: 'api/protected/products/sub-panels-edit/variants',\n        component: 'products/products-editor/variants-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isFromShop', 'isNew', 'isEditing']\n      }, {\n        value: 'webpages',\n        label: 'webpages_content',\n        resource: 'api/protected/products/sub-panels-edit/webpages',\n        component: 'products/products-editor/pages-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isFromShop', 'isNew', 'isEditing']\n      },\n      // @TODO: this currently does not do anything yet.\n      // this will work, but to complete feature, this needs to send data out on order success email\n      // {\n      //   value: 'virtual',\n      //   label: 'virtual_content',\n      //   resource: 'api/protected/products/sub-panels-edit/virtual',\n      //   component: 'products/products-editor/virtual-contents-editor',\n      //   tabType: 'reuseSubTab'\n      //   allowedFor: ['isFromShop', 'isNew'],\n      // },\n      {\n        value: 'seo',\n        label: 'seo',\n        resource: 'api/protected/products/sub-panels-edit/seo',\n        component: 'products/products-editor/seo-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isFromShop', 'isNew', 'isEditing']\n      }, {\n        value: 'emails',\n        label: 'emails',\n        resource: 'api/protected/products/sub-panels-edit/emails',\n        component: 'products/products-editor/emails-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isFromShop', 'isNew', 'isEditing']\n      }, {\n        value: 'tickets',\n        label: 'tickets',\n        resource: 'api/protected/products/sub-panels-edit/tickets',\n        component: 'products/products-editor/tickets-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isFromShop', 'isNew', 'isEditing']\n      }];\n      if (this.settings.getProp('beta.allowRecurringSchedules') && this.settings.getProp('features.allowRecurringSchedules')) {\n        list.pushObject({\n          value: 'recurringSchedules',\n          label: 'recurring schedules',\n          resource: 'api/protected/recurring',\n          component: 'products/products-editor/recurring-schedules-editor',\n          tabType: 'reuseSubTab',\n          allowedFor: ['isFromShop', 'isNew', 'isEditing'],\n          editingComponent: 'products/products-editor/recurring-schedules-editor'\n        });\n      }\n      list.pushObject({\n        value: 'customizations',\n        label: 'customizations',\n        resource: 'api/protected/products/customizations',\n        component: 'products/products-editor/customizations-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isFromShop', 'isNew', 'isEditing'],\n        editingComponent: 'products/products-editor/customizations-editor'\n      });\n      list.pushObject({\n        value: 'shop',\n        label: 'shop',\n        resource: 'api/protected/products/sub-panels-edit/shop',\n        component: 'products/products-editor/shop-editor',\n        tabType: 'reuseSubTab',\n        allowedFor: ['isNew']\n      });\n\n      // const isVirtualOnly = this.settings?.isFeatureAllowed('features.isVirtualOnly')\n      // if (isVirtualOnly) {\n      //   const allowed = [\n      //     'details',\n      //     'webpages',\n      //     'virtual',\n      //     'seo',\n      //     'activity'\n      //   ]\n      //   list = R.filter(item => {\n      //     return R.includes(item.value)(allowed)\n      //   })(list)\n      // }\n\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/products/lists/filters/extra/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'hideVariantChildrenInProductsSearch',\n        label: 'only show variant parents'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'code',\n        label: 'code'\n      }, {\n        value: 'description',\n        label: 'product_description'\n        // }, {\n        //   value: 'tags',\n        //   label: 'tags'\n      }, {\n        value: 'barcode',\n        label: 'barcode'\n      }, {\n        value: 'notes',\n        label: 'notes'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'code',\n        label: 'code'\n      }, {\n        value: 'barcode',\n        label: 'barcode'\n      }, {\n        value: 'timestampZ_latest',\n        label: 'updated date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        //   value: 'all',\n        //   label: 'all'\n        // }, {\n        value: this.get('constants.status.active'),\n        label: this.get('constants.status.active')\n      }, {\n        value: this.get('constants.status.inactive'),\n        label: this.get('constants.status.inactive')\n        // }, {\n        //   value: this.get('constants.status.suspended'),\n        //   label: this.get('constants.status.suspended')\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/filters/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: this.get('constants.productTypes.inventory'),\n        label: this.get('constants.productTypes.inventory')\n      }, {\n        value: this.get('constants.productTypes.service'),\n        label: this.get('constants.productTypes.service')\n      }];\n      if (this.settings?.isFeatureAllowed('features.allowCollectOnBehalf')) {\n        data.push({\n          value: this.get('constants.productTypes.collectOnBehalf'),\n          label: this.get('constants.productTypes.collectOnBehalf')\n        });\n      }\n      const isVirtualOnly = this.settings?.isFeatureAllowed('features.isVirtualOnly');\n      if (isVirtualOnly) {\n        data.push({\n          value: this.get('constants.productTypes.virtual'),\n          label: this.get('constants.productTypes.virtual')\n        });\n      }\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/inventory-report-types-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '',\n        label: 'normal product'\n      }, {\n        value: 'isVariantChild',\n        label: 'variant child'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/inventory-set-types-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'isSet',\n        label: 'product set'\n      }, {\n        value: 'isVariantChild',\n        label: 'variant child'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/invoice-descriptions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [\n        // {\n        //   value: '運費',\n        //   label: '運費'\n        // }\n      ];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/limit-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'campaign',\n        label: 'campaign qty'\n      }, {\n        value: 'inventory',\n        label: 'inventory qty'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/products/menu/actions/dash',\n          component: 'products/panels-dash',\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'dashOverview',\n          tabType: 'replaceSubTab',\n          className: 'hide-when-overflow'\n        }, {\n          resource: 'api/protected/products/menu/actions/inventory',\n          component: 'products/panels-inventory',\n          icon: 'fas fa-book',\n          label: 'inventory management',\n          action: 'inventory',\n          tabType: 'replaceSubTab',\n          className: 'hide-when-overflow'\n        }, {\n          resource: 'api/protected/products/menu/actions/new',\n          component: 'products/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'new',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n          // }, {\n          //   resource: 'api/protected/products/menu/actions/import',\n          //   component: 'importer/data-import',\n          //   adapterName: 'products',\n          //   label: 'import',\n          //   action: 'import'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/products/lists/on-sale-tag-display-position/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'left-top',\n        label: 'position_left-top'\n      }, {\n        value: 'right-top',\n        label: 'position_right-top'\n      }, {\n        value: 'left-bottom',\n        label: 'position_left-bottom'\n      }, {\n        value: 'right-bottom',\n        label: 'position_right-bottom'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/on-sale-tag-display-style/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'default',\n        label: 'default'\n      }, {\n        value: 'ribbon',\n        label: 'ribbon'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/page-import-btn-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'products',\n        label: 'products',\n        component: 'products/page-import-btn/products-results'\n      }, {\n        value: 'campaigns',\n        label: 'campaigns',\n        component: 'channels/shop/campaigns/page-import-btn/campaigns-details-results'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/product-display-position/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'right-top',\n        label: 'position_right-top'\n      }, {\n        value: 'left-bottom',\n        label: 'position_left-bottom'\n      }, {\n        value: 'center-bottom',\n        label: 'position_center-bottom'\n      }, {\n        value: 'right-bottom',\n        label: 'position_right-bottom'\n      }, {\n        value: 'center-center',\n        label: 'position_center-center'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/products-shop-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const list = [{\n        value: 'productNew',\n        label: 'edit product',\n        resource: 'api/protected/products',\n        component: 'products/panels-new',\n        allowedFor: ['productNew']\n        // tabType: 'replaceSubTab',\n        // editingComponent: 'products/products-editor/details-editor'\n      }, {\n        value: 'productEdit',\n        label: 'edit product',\n        resource: 'api/protected/products',\n        component: 'products/panels-edit',\n        allowedFor: ['productEdit', 'campaignDetail', 'productLimits']\n        // component: 'products/panels-display/details-display',\n        // tabType: 'replaceSubTab',\n        // editingComponent: 'products/products-editor/details-editor'\n      }, {\n        value: 'campaignDetail',\n        label: 'edit campaign detail',\n        resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/products',\n        component: 'channels/shop/campaigns/campaigns-item-editor',\n        allowedFor: ['productEdit', 'campaignDetail', 'productLimits']\n        // disabledFor: ['productNew']\n        // tabType: 'replaceSubTab',\n        // editingComponent: 'products/products-editor/pages-editor'\n      }\n      // {\n      //   value: 'productLimits',\n      //   label: 'product limits',\n      //   component: 'channels/shop/campaigns/campaigns-item-limits-editor',\n      //   resource: 'api/protected/channels/shop/campaigns/lists/menu/sub-panels/products-limits',\n      //   allowedFor: ['productEdit', 'campaignDetail', 'productLimits'],\n      //   // disabledFor: ['productNew']\n      // }\n      ];\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/products/lists/recurring-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'recurringSchedulesEnabled',\n        label: 'recurring schedules',\n        translate: true,\n        classNames: 'is-danger'\n      }, {\n        value: 'recurringSchedulesOnly',\n        label: 'only allow recurring schedules in shop',\n        translate: true,\n        classNames: 'is-danger'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/set-types-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '',\n        label: 'product_general'\n      }, {\n        value: 'isSet',\n        label: 'product set'\n      }, {\n        value: 'isSetWithChoices',\n        label: 'product set with choices'\n      }, {\n        value: 'hasVariants',\n        label: 'variants'\n      }, {\n        value: 'isVariantChild',\n        label: 'variant child'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/set-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '',\n        label: 'product_general'\n      }, {\n        value: 'isSet',\n        label: 'product set',\n        translate: true\n      }, {\n        value: 'isSetWithChoices',\n        label: 'product set with choices',\n        translate: true\n      }, {\n        value: 'hasVariants',\n        label: 'variants',\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/set-types/variants/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: true,\n        label: 'isVariantChild'\n      }];\n      const model = _nventor.default.resolve(data);\n      return model;\n    }\n  });\n});","define(\"client/pods/products/lists/sync/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ProductsListsSyncModel extends _model.default {}\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: ProductsListsSyncModel,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'item',\n        label: 'name',\n        translate: true\n      }, {\n        value: 'description',\n        label: 'description',\n        translate: true\n      }, {\n        value: 'additionalDescription',\n        label: 'additional description',\n        translate: true\n      }, {\n        value: 'templates',\n        label: 'templates',\n        translate: true\n      }, {\n        value: 'productTags',\n        label: 'tags',\n        translate: true\n      }, {\n        value: 'productDisplayTags',\n        label: 'display tags',\n        translate: true\n      }];\n      if (this.settings.getProp('beta.allowRecurringSchedules') && this.settings.getProp('features.allowRecurringSchedules')) {\n        data.pushObject({\n          value: 'recurringSchedules',\n          label: 'recurring schedules',\n          translate: true\n        });\n      }\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/lists/tags/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products/tags',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/products/lists/tags/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        showTagsOnFilter: true,\n        showTagsOnPage: true\n      };\n    }\n  });\n});","define(\"client/pods/products/lists/tracking/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'on',\n        label: 'on',\n        translate: true\n      }, {\n        value: 'off',\n        label: 'off',\n        translate: true\n      }];\n      const model = _nventor.default.resolve(data);\n      return model;\n    }\n  });\n});","define(\"client/pods/products/lists/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'inventory',\n        label: 'product_type_inventory',\n        translate: true\n      },\n      // {\n      //   value: 'service',\n      //   label: 'product_type_service',\n      //   translate: true\n      // },\n      {\n        value: 'virtual',\n        label: 'product_type_virtual',\n        translate: true\n      }];\n      if (this.settings?.isFeatureAllowed('features.allowCollectOnBehalf')) {\n        data.push({\n          value: this.get('constants.productTypes.collectOnBehalf'),\n          label: 'product_type_collect_on_behalf',\n          translate: true\n        });\n      }\n\n      // const isVirtualOnly = this.settings?.isFeatureAllowed('features.isVirtualOnly')\n      // if (isVirtualOnly) {\n      //   // only allow virtual for now\n      //   data = [{\n      //     value: 'virtual',\n      //     label: 'product_type_virtual',\n      //     translate: true\n      //   }]\n      // }\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/lists/variants/auto-fill/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'autoFill',\n        label: 'auto fill column',\n        translate: true\n      }, {\n        value: 'clear',\n        label: 'clear column',\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/products/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/mixins/sortable-details\", \"client/mixins/products-children\", \"client/mixins/uploads\", \"client/mixins/templates\", \"client/pods/faqs/model\", \"client/utils/nventor\"], function (_exports, R, RA, _model, _sortableDetails, _productsChildren, _uploads, _templates, _model2, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _obj;\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  var _default = _exports.default = _model.default.extend(_productsChildren.default, _sortableDetails.default, _templates.default, _uploads.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _obj = {\n    intl: Ember.inject.service(),\n    toSortProp: '_data.setDetails',\n    init() {\n      this._super(...arguments);\n      this.set('importParams', [{\n        label: 'name',\n        value: 'name'\n      }]);\n      this.set('setDetailsRequiredAttrs', ['item', 'itemKey', 'qty', 'status']);\n      this.set('childAdapters', {\n        choices: 'products/choices',\n        'choices-details': 'products/choices/details',\n        'sets-details': 'products/sets/details',\n        variants: 'products/variants',\n        'variants-options': 'products/variants/options',\n        'variants-children': 'products/variants/children',\n        'customizations': 'products/customizations',\n        'customizations-options': 'products/customizations/options'\n      });\n    },\n    defaults() {\n      const settings = this.settings;\n      const resourceKeyTemp = _nventor.default.random.alphaNum(8);\n      const defaultData = {\n        type: settings.getProp('inventoryType', this.get('constants.productTypes.inventory')),\n        setType: '',\n        tracking: settings.getProp('inventoryTracking', this.get('constants.productTracking.on')),\n        status: this.get('constants.status.active'),\n        salesTaxRateKey: this.get('constants.taxes.auto'),\n        purchasesTaxRateKey: this.get('constants.taxes.auto'),\n        weightUnit: settings.getProp('weightUnit', 'g'),\n        packagingDimensionsUnit: settings.getProp('packagingDimensionsUnit', 'cm'),\n        recurringSchedulesEnabled: false,\n        recurringSchedulesOnly: false,\n        recurringSchedules: [],\n        setDetails: [],\n        choices: [],\n        variants: [],\n        faqs: [],\n        images: [],\n        templates: [],\n        productDisplayTags: [],\n        hasOnPaidSendEmail: false,\n        productEmailMessage: '',\n        productEmailHeader: '',\n        seoKeywords: '',\n        seoDescription: '',\n        resourceKeyTemp,\n        hasReminderLimitsQty: false,\n        reminderLimitsQty: 1,\n        barcodes: [{\n          barcodeType: 'EAN13',\n          barcode: ''\n        }\n        // {\n        //   barcodeType: 'EAN8',\n        //   barcode: ''\n        // },\n        // {\n        //   barcodeType: 'EAN5',\n        //   barcode: ''\n        // },\n        // {\n        //   barcodeType: 'EAN2',\n        //   barcode: ''\n        // },\n        // {\n        //   barcodeType: 'CODE128',\n        //   barcode: ''\n        // },\n        // {\n        //   barcodeType: 'CODE39',\n        //   barcode: ''\n        // },\n        ],\n        specs: [],\n        descriptionAttachments: [],\n        emailAttachments: [],\n        virtualContentAttachments: [],\n        tags: [],\n        campaignDetailInstructions: {},\n        collectOnBehalfDescription: '',\n        collectOnBehalfPreDescription: '',\n        useDefaultShowAlmostEmptyQtyWarningForProducts: true,\n        showAlmostEmptyQtyWarningForProducts: settings.getProp('showAlmostEmptyQtyWarningForProducts', false),\n        almostEmptyQtyWarningThreshold: settings.getProp('almostEmptyQtyWarningThreshold', 0),\n        almostEmptyQtyWarningShopCustomText: settings.getProp('almostEmptyQtyWarningShopCustomText', ''),\n        almostPreOrderQtyWarningShopCustomText: settings.getProp('almostPreOrderQtyWarningShopCustomText', '')\n      };\n      if (this.settings.isFeatureAllowed('features.isVirtualOnly')) {\n        defaultData.type = settings.getProp('inventoryType', this.get('constants.productTypes.virtual'));\n        defaultData.tracking = settings.getProp('inventoryTracking', this.get('constants.productTracking.off'));\n      }\n      return defaultData;\n    },\n    toSortArray: Ember.computed('_data.setDetails.[]', 'synced', function () {\n      return this.get('_data.setDetails');\n    }),\n    isDeletedOrInactive: Ember.computed('isDeleted', '_data.status', function () {\n      return this.isDeleted || R.equals(this?._data?.status, 'inactive');\n    }),\n    hasSetType: Ember.computed('_data.{type,isVariantChild}', function () {\n      const type = this?._data?.type;\n\n      // if (type === this.constants.productTypes.virtual) {\n      //   return false\n      // }\n\n      const isVariantChild = this?._data?.isVariantChild;\n      if (isVariantChild) {\n        return false;\n      }\n      return true;\n    }),\n    shouldShowSupplierInformation: Ember.computed('_data.setType', function () {\n      const setType = this.getData('setType');\n      if (setType === 'isSet' || setType === 'isSetWithChoices') {\n        return false;\n      }\n      return true;\n    }),\n    /**\n     * Apply a product set type. Choice sets disable type in the editor, but leftover\n     * virtual or collect-on-behalf still changes tickets and inventory, so reset\n     * to Product or Service when a choice set is selected.\n     * @param {string} [selectedSetType] - `isSet`, `isSetWithChoices`, `hasVariants`, or empty\n     */\n    setSetType(selectedSetType) {\n      this.setData('isSet', false);\n      this.setData('isSetWithChoices', false);\n      this.setData('hasVariants', false);\n      if (selectedSetType) {\n        this.setData(selectedSetType, true);\n      }\n      if (selectedSetType === 'isSetWithChoices') {\n        this.setData('type', this.get('constants.productTypes.inventory'));\n      }\n    },\n    populate(data = {}) {\n      data = this.setupWithDefaults(data);\n      if (data.tracking === this.get('constants.togglesOnOff.on') && RA.isNotNilOrEmpty(data.inventory)) {\n        const inventory = this.transformInventory(data);\n        this.set('inventory', inventory);\n      }\n      if (RA.isNotNilOrEmpty(data.inventoryReport)) {\n        const inventoryReport = this.transformInventoryReport(data);\n        this.set('inventoryReport', inventoryReport);\n      }\n      data.recurringSchedules = this._transformRecurringSchedules(data);\n      data.customizations = this._transformCustomizations(data);\n      this._transformProductCampaignsData(data);\n      data.barcodes = this._transformBarcodes(data);\n      data.faqs = this._transformFaqs(data);\n      data.templates = this._transformTemplates(data);\n      if (RA.isNilOrEmpty(data.templates)) {\n        data.templates.pushObject(this.dataManager.setAsRecord({\n          adapterName: 'products/templates',\n          data: this.getTemplateHash('')\n        }));\n      }\n      data.productDisplayTags = this._transformProductDisplayTags(data);\n      data.descriptionAttachments = this._transformAttachments('descriptionAttachments', data);\n      data.emailAttachments = this._transformAttachments('emailAttachments', data);\n      data.virtualContentAttachments = this._transformAttachments('virtualContentAttachments', data);\n      data.specs = this._transformSpecs(data);\n      this._super(...arguments);\n    },\n    almostEmptyQtyWarningThreshold: Ember.computed('_data.{tracking,type,almostEmptyQtyWarningThreshold,useDefaultShowAlmostEmptyQtyWarningForProducts,showAlmostEmptyQtyWarningForProducts}', function () {\n      const isAlmostEmptyQtyWarningBetaEnabled = this.settings.getProp('beta.almostEmptyQtyWarningForProducts', false);\n      if (!isAlmostEmptyQtyWarningBetaEnabled) {\n        return 0;\n      }\n      const showAlmostEmptyQtyWarningForProducts = this?._data?.showAlmostEmptyQtyWarningForProducts;\n      if (!showAlmostEmptyQtyWarningForProducts) {\n        return 0;\n      }\n      return this?._data?.almostEmptyQtyWarningThreshold ?? 0;\n    }),\n    _transformSpecs(data) {\n      let index = 0;\n      return R.pipe(R.propOr([], 'specs'), R.map(spec => {\n        spec.index = index;\n        index = index + 1;\n        return this._newAttachmentModel(spec);\n      }))(data);\n    },\n    _transformAttachments(prop, data) {\n      let index = 0;\n      return R.pipe(R.propOr([], prop), R.map(attachment => {\n        attachment.index = index;\n        index = index + 1;\n        return this._newAttachmentModel(attachment);\n      }))(data);\n    },\n    _transformBarcodes(data) {\n      return R.pipe(R.propOr([], 'barcodes'), R.map(barcodeData => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'products/barcodes',\n          data: barcodeData\n        });\n      }))(data);\n    },\n    _transformRecurringSchedules(data) {\n      return R.pipe(R.propOr([], 'recurringSchedules'), R.map(schedule => this.dataManager.setAsRecord({\n        adapterName: 'recurring/schedules',\n        data: schedule\n      })))(data);\n    },\n    _transformProductCampaignsData(data) {\n      const productCampaignsData = R.pipe(R.propOr([], 'productCampaignsData'), R.map(productCampaignData => {\n        return this.dataManager.newRecord({\n          adapterName: 'products/lists/campaigns',\n          data: productCampaignData\n        });\n      }))(data);\n      this.set('productCampaignsData', productCampaignsData);\n    },\n    /**\n     * Set correct indexes on load\n     * @param data\n     * @returns {any[]}\n     * @private\n     */\n    _transformCustomizations(data) {\n      const customizations = data?.customizations || [];\n      if (RA.isNilOrEmpty(customizations)) {\n        return customizations;\n      }\n      return RA.mapIndexed((customization, index) => {\n        customization.index = ++index;\n        return customization;\n      })(customizations);\n    },\n    _transformTemplates(data) {\n      return R.pipe(R.pathOr([], ['templates']), R.map(template => this.dataManager.setAsRecord({\n        adapterName: 'products/templates',\n        data: this.getTemplateHash(template)\n      })))(data);\n    },\n    getTemplateHash(args = {}) {\n      const {\n        template,\n        header,\n        status\n      } = args;\n      return {\n        component: 'products/products-editor/template',\n        get label() {\n          return this.header;\n        },\n        action: 'new',\n        tabType: 'reuseSubTab',\n        header,\n        template,\n        status\n      };\n    },\n    removeBarcode(selectedBarcodeData) {\n      const barcodes = this?._data?.barcodes || [];\n      barcodes.removeObject(selectedBarcodeData);\n    },\n    addNewBarcode(onHideDropdown, selectedBarcodeData) {\n      const barcodeType = selectedBarcodeData?._data?.value;\n      if (!barcodeType) {\n        onHideDropdown();\n        return;\n      }\n      const barcodeData = {\n        barcodeType,\n        barcode: ''\n      };\n      const barcodeModel = this.dataManager.newRecord({\n        adapterName: 'products/barcodes',\n        data: barcodeData\n      });\n      const barcodes = this?._data?.barcodes || [];\n      barcodes.pushObject(barcodeModel);\n      onHideDropdown();\n      return barcodeModel;\n    },\n    addNewTemplate() {\n      const newTemplate = this.dataManager.newRecord({\n        adapterName: 'products/templates',\n        data: this.getTemplateHash()\n      });\n      if (!newTemplate?.instanceId) {\n        newTemplate.instanceId = this?.instanceId;\n      }\n      this?._data?.templates?.pushObject(newTemplate);\n      return newTemplate;\n    },\n    removeTemplate(template) {\n      if (template._data) {\n        this?._data?.templates?.removeObject(template);\n      } else {\n        const header = R.propOr('', 'header')(template);\n        const templateModel = R.pipe(R.pathOr([], ['_data', 'templates']), R.find(R.pathEq(['_data', 'header'], header)))(this);\n        this?._data?.templates?.removeObject(templateModel);\n      }\n    },\n    _transformProductDisplayTags(data) {\n      const productDisplayTags = R.propOr([], 'productDisplayTags')(data);\n      return R.map(productDisplayTag => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'products/product-display-tags',\n          data: productDisplayTag\n        });\n      })(productDisplayTags);\n    },\n    addProductDisplayTags(productDisplayTag = {}) {\n      const productDisplayTags = this.getData('productDisplayTags') || [];\n      const productDisplayTagModel = this.dataManager.setAsRecord({\n        adapterName: 'products/product-display-tags',\n        data: productDisplayTag\n      });\n      productDisplayTags.pushObject(productDisplayTagModel);\n      this.setData('productDisplayTags', productDisplayTags);\n    },\n    removeProductDisplayTag(productDisplayTag = {}) {\n      const productDisplayTags = this.getData('productDisplayTags') || [];\n      productDisplayTags.removeObject(productDisplayTag);\n      this.setData('productDisplayTags', productDisplayTags);\n    },\n    _transformFaqs(data) {\n      return R.pipe(R.propOr([], 'faqs'), R.reject(_nventor.default.isNilOrEmpty), R.map(faq => _nventor.default.createModel(_model2.default, faq)))(data);\n    },\n    hasDuplicateSetDetailsProduct(product) {\n      const details = this.get('_data.setDetails') || [];\n      const found = details.filterBy('_data.itemKey', product.getData('_key'));\n      if (found.length > 1) {\n        return true;\n      }\n      const itself = details.filterBy('_data.itemKey', this.getData('_key'));\n      if (itself.length > 0) {\n        return true;\n      }\n      return false;\n    },\n    hasDuplicateSetWithChoicesDetailsProduct(product) {\n      const details = R.pipe(R.pathOr([], ['_data', 'choices']), R.pluck('_data'), R.pluck('details'), R.flatten)(this);\n      const found = details.filterBy('_data.itemKey', product.getData('_key'));\n      if (found.length > 1) {\n        return true;\n      }\n      const itself = details.filterBy('_data.itemKey', this.getData('_key'));\n      if (itself.length > 0) {\n        return true;\n      }\n      return false;\n    },\n    loadChildProduct(detail, product) {\n      const productData = product.serialize({\n        exclude: ['_key', '_rev', '_id']\n      });\n      productData.variantChildren = R.pipe(R.propOr([], 'variantChildren'), R.map(child => {\n        child.item = child.name;\n        child.itemKey = child._key;\n        return child;\n      }))(productData);\n      productData.setDetails = R.propOr([], 'setDetails')(productData);\n      const itemData = detail.serialize();\n      itemData.item = productData.name;\n      itemData.productTags = productData.tags;\n      itemData.roundingInventoryQty = productData.roundingInventoryQty || this.settings.getProp('roundingInventoryQty');\n      itemData.roundingInventoryPrice = productData.roundingInventoryPrice || this.settings.getProp('roundingInventoryPrice');\n      productData.salesInclPrice = '';\n      productData.salesExclPrice = '';\n      productData.purchasesInclPrice = '';\n      productData.purchasesExclPrice = '';\n      const newItemData = R.mergeRight(itemData, productData);\n      detail.populate(newItemData);\n    },\n    hasInventory: Ember.computed('_data.{tracking,type}', function () {\n      const type = this.get('_data.type');\n      if (type === this.get('constants.productTypes.service')) {\n        return false;\n      }\n      if (type === this.get('constants.productTypes.virtual') || type === this.get('constants.productTypes.collectOnBehalf')) {\n        return false;\n      }\n      const tracking = this.get('_data.tracking');\n      if (tracking === this.get('constants.productTracking.on')) {\n        return true;\n      }\n      return false;\n    }),\n    hasManyProductCampaignsData: Ember.computed('productCampaignsData.[]', function () {\n      return R.pipe(R.pathOr([], ['productCampaignsData']), R.propSatisfies(R.gte(R.__, 3), 'length'))(this);\n    }),\n    transformInventory(rawData) {\n      if (rawData.inventory) {\n        const inventoryData = rawData.inventory;\n        delete rawData.inventory;\n        return this.dataManager.setAsRecord({\n          adapterName: 'products/inventory',\n          data: inventoryData\n        });\n      }\n      return false;\n    },\n    transformInventoryReport(rawData) {\n      if (rawData.inventoryReport) {\n        const inventoryReportData = rawData.inventoryReport;\n        delete rawData.inventoryReport;\n        return this.dataManager.setAsRecord({\n          adapterName: 'products/inventory/report',\n          data: inventoryReportData\n        });\n      }\n      return false;\n    },\n    newBlankSetDetail(newData) {\n      const details = this.getOrSetData('setDetails', []);\n      const lastDetail = details.get('lastObject');\n      let mustAddDetail = true;\n      if (lastDetail) {\n        if (!lastDetail.getData('item') && !lastDetail.getData('itemCode')) {\n          mustAddDetail = false;\n        }\n      }\n      if (mustAddDetail) {\n        return this._addSetDetail(newData);\n      }\n      return false;\n    },\n    /**\n     * creates new detail row\n     * @param {object} data (optional) - detail data\n     * @return {object} detail object\n     */\n    _addSetDetail(data) {\n      data = data || {};\n\n      // create details array if it doesnt exist\n      let details = this.getData('setDetails');\n      if (!details) {\n        details = [];\n        this.setData('setDetails', details);\n      }\n\n      // only add index if not exists\n      if (data.index == null) {\n        const index = details.length + 1;\n        data.index = index;\n      }\n      const detailModel = this.dataManager.setAsRecord({\n        adapterName: this.get('childAdapters.sets-details'),\n        data\n      });\n      // detailModel.set('requiredAttrs', this.get('setDetailsRequiredAttrs'))\n\n      this.getData('setDetails').pushObject(detailModel);\n      this.resetSortOrder();\n      return detailModel;\n    },\n    removeSetDetail(detail) {\n      const details = this.getData('setDetails');\n\n      // only remove detail if current line is not last line\n      if (details.get('lastObject').getData('index') === detail.getData('index')) {\n        // do not remove detail, clear detail only\n        this.resetSetDetail(detail);\n      } else {\n        details.removeObject(detail);\n        this.resetIndexes(details);\n      }\n      return details;\n    },\n    removeAllSetDetails() {\n      this.setData('setDetails', []);\n      this.resetSortOrder();\n    },\n    /**\n     * resets detail line to blank state\n     */\n    resetSetDetail(detail) {\n      // @TODO move this to detail model!?\n\n      const data = detail.get('_data');\n      const keys = Object.keys(data);\n      keys.forEach(function (key) {\n        let allowReset = true;\n\n        // @TODO: could set a disallowResetAttrs array,\n        // @TODO: eg. disallowResetAttrs: ['index', 'deliveryDateZ']\n        // @TODO: then it will not allow resetting those values\n        const allowResetKey = R.anyPass([R.equals('index'), R.equals('status')])(key);\n        if (allowResetKey) {\n          allowReset = false;\n        }\n        if (allowReset) {\n          detail.setData(key, '');\n        }\n      });\n    },\n    addVariant(currentVariant, data) {\n      const variants = this.getData('variants') || [];\n      const lastVariant = variants.get('lastObject');\n      const lastIndex = R.path(['_data', 'index'], lastVariant);\n      let addVariant = false;\n      if (!currentVariant) {\n        addVariant = true;\n      } else {\n        if (R.path(['_data', 'index'], currentVariant) === lastIndex) {\n          addVariant = true;\n        }\n      }\n      if (addVariant) {\n        let index = 1;\n        if (lastIndex) {\n          index = parseInt(lastIndex) + 1;\n        }\n        const defaultData = {\n          index,\n          name: '',\n          status: this.get('constants.status.active'),\n          options: []\n        };\n        data = data || defaultData;\n        const variantModel = this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.variants'),\n          data\n        });\n        variants.pushObject(variantModel);\n        this.setData('variants', variants);\n      }\n      return data;\n    },\n    removeVariant(variant) {\n      const variants = this.getData('variants') || [];\n      variants.removeObject(variant);\n      this.resetIndexes(variants);\n      return variant;\n    },\n    addVariantOption(variant, currentOption, data) {\n      const options = variant._data.options || [];\n      const lastOption = options.get('lastObject');\n      let addOption = false;\n      if (!currentOption) {\n        addOption = true;\n      } else {\n        if (R.path(['_data', 'index'], currentOption) === R.path(['_data', 'index'], lastOption)) {\n          addOption = true;\n        }\n      }\n      if (addOption) {\n        let index = 1;\n        if (lastOption) {\n          const lastIndex = parseInt(lastOption._data.index) || 0;\n          index = lastIndex + 1;\n        }\n        const defaultData = {\n          index,\n          name: '',\n          status: this.get('constants.status.active')\n        };\n        data = data || defaultData;\n        data.optionUid = _nventor.default.random.alphaNum(10);\n        const detailModel = this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.variants-options'),\n          data\n        });\n        options.pushObject(detailModel);\n        variant.setData('options', options);\n        variant.resetIndexes();\n        return data;\n      }\n      return false;\n    },\n    removeVariantOption(variant, option) {\n      const options = variant._data.options || [];\n      if (options.get('lastObject._data.index') === option._data.index) {\n        // do not remove detail, clear detail only\n        this.resetVariantOption(option);\n      } else {\n        options.removeObject(option);\n        this.resetIndexes(options);\n      }\n      variant.resetIndexes();\n      return variant;\n    },\n    resetVariantOption(option) {\n      option.name = '';\n      return option;\n    },\n    addCustomization(currentCustomizationOptions, data) {\n      const customizations = this.getData('customizations') || [];\n      const lastCustomization = customizations.get('lastObject');\n      const lastIndex = R.path(['_data', 'index'], lastCustomization);\n      let addCustomization = false;\n      if (!currentCustomizationOptions) {\n        addCustomization = true;\n      } else {\n        if (R.path(['_data', 'index'], currentCustomizationOptions) === lastIndex) {\n          addCustomization = true;\n        }\n      }\n      if (addCustomization) {\n        let index = 1;\n        if (lastIndex) {\n          index = parseInt(lastIndex) + 1;\n        }\n        const defaultData = {\n          index,\n          name: '',\n          status: this.get('constants.status.active'),\n          options: []\n        };\n        data = data || defaultData;\n        const customizationModel = this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.customizations'),\n          data\n        });\n        customizations.pushObject(customizationModel);\n        this.setData('customizations', customizations);\n      }\n      return data;\n    },\n    removeCustomization(customization) {\n      const customizations = this.getData('customizations') || [];\n      customizations.removeObject(customization);\n      this.resetIndexes(customizations);\n      return customization;\n    },\n    addCustomizationOption(customization, currentOption, data) {\n      const options = customization._data.options || [];\n      const lastOption = options.get('lastObject');\n      let addOption = false;\n      if (!currentOption) {\n        addOption = true;\n      } else {\n        if (R.path(['_data', 'index'], currentOption) === R.path(['_data', 'index'], lastOption)) {\n          addOption = true;\n        }\n      }\n      if (addOption) {\n        let index = 1;\n        if (lastOption) {\n          const lastIndex = parseInt(lastOption._data.index) || 0;\n          index = lastIndex + 1;\n        }\n        const defaultData = {\n          index,\n          name: '',\n          status: this.get('constants.status.active')\n        };\n        data = data || defaultData;\n        data.optionUid = _nventor.default.random.alphaNum(10);\n        const optionModel = this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.customizations-options'),\n          data\n        });\n        options.pushObject(optionModel);\n        customization.setData('options', options);\n        customization.resetIndexes();\n        return data;\n      }\n      return false;\n    },\n    removeCustomizationOption(customization, option) {\n      const options = customization._data.options || [];\n      if (options.get('lastObject._data.index') === option._data.index) {\n        // do not remove detail, clear detail only\n        this.resetCustomizationOption(option);\n      } else {\n        options.removeObject(option);\n        this.resetIndexes(options);\n      }\n      customization.resetIndexes();\n      return customization;\n    },\n    resetCustomizationOption(option) {\n      option.name = '';\n      return option;\n    },\n    filterEmptyCustomizations() {\n      const filteredCustomizations = R.pipe(R.pathOr([], ['_data', 'customizations']), R.reduce((acc, customization) => {\n        if (!customization?._data?.name) {\n          return acc;\n        }\n        const filteredOptions = R.pipe(R.pathOr([], ['_data', 'options']), R.reduce((acc, customizationOption) => {\n          if (!customizationOption?._data?.name) {\n            return acc;\n          }\n          return acc.concat(customizationOption);\n        }, []))(customization);\n        const index = acc.length + 1;\n        customization.setData('index', index);\n        customization.setData('options', filteredOptions);\n        return acc.concat(customization);\n      }, []))(this);\n      this.setData('customizations', filteredCustomizations);\n    },\n    addVariantChild(data, existingVariantChildren) {\n      let found = R.find(R.pathEq(['_data', 'variantChildId'], data.variantChildId), existingVariantChildren);\n      if (!found) {\n        found = R.find(R.pathEq(['_data', 'variantChildUid'], data.variantChildUid), existingVariantChildren);\n      }\n      if (found) {\n        const overwriteProps = ['salesExclPrice', 'salesInclPrice', 'purchasesExclPrice', 'purchasesInclPrice'];\n        R.forEach(prop => {\n          this.overwriteExisintVariantChildProp(found, prop, data[prop]);\n        }, overwriteProps);\n        const toSetProps = R.pipe(R.omit(overwriteProps), R.keys)(data);\n        R.forEach(key => {\n          const value = R.prop(key)(data);\n          found.setData(key, value);\n        })(toSetProps);\n        return found;\n      } else {\n        const childModel = this.dataManager.setAsRecord({\n          adapterName: this.get('childAdapters.variants-children'),\n          data\n        });\n        existingVariantChildren.pushObject(childModel);\n        this.setData('_createVariantChildren', existingVariantChildren);\n        return childModel;\n      }\n    },\n    overwriteExisintVariantChildProp: R.curry((existingChildModel, prop, value) => {\n      if (!existingChildModel.getData(prop)) {\n        existingChildModel.setData(prop, value);\n      }\n      return existingChildModel;\n    }),\n    filterEmptyVariants() {\n      const variants = this.getData('variants') || [];\n      R.pipe(R.map(variant => {\n        // remove empty options\n        R.pipe(R.pathOr([], ['_data', 'options']), R.reject(R.last), R.reject(option => {\n          const optionName = option?._data?.name || '';\n          if (RA.isNilOrEmpty(optionName)) {\n            return false;\n          }\n          return true;\n        }), R.forEach(option => {\n          this.removeVariantOption(variant, option);\n        }))(variant);\n        const options = variant?._data?.options || [];\n        if (RA.isNilOrEmpty(options)) {\n          return variant;\n        }\n        const variantName = variant?._data?.name || '';\n        if (RA.isNilOrEmpty(variantName)) {\n          return variant;\n        }\n        return false;\n      }), R.reject(R.equals(false)), R.forEach(variant => {\n        this.removeVariant(variant);\n      }))(variants);\n    },\n    updateVariantChildrenList({\n      originalModel,\n      autoFill = '',\n      autoFillCommand = '',\n      isNew = false,\n      setInitialValue = false,\n      onAfter,\n      productsVariantsCodeSeparator,\n      productsVariantsNameSeparator\n    }) {\n      // when first calling this, originalModel must be supplied,\n      // then on input, originalModel must not be supplied\n      const variants = this.getData('variants') || [];\n      const existingVariantChildren = this.getData('_createVariantChildren') || [];\n      let originalVariantChildren;\n      if (RA.isNotNilOrEmpty(originalModel)) {\n        originalVariantChildren = R.pipe(R.pathOr([], ['_data', 'variantChildren'])\n        // R.filter(R.pathEq(['_data', 'status'], 'active')),\n        )(originalModel);\n      }\n      const productName = this.getData('name');\n      const productCode = this.getData('code');\n      const allOptions = R.map(variant => {\n        const variantType = R.trim(variant.getData('name')) || '';\n        const variantIndex = variant.getData('index');\n        let options = R.pipe(R.pathOr([], ['_data', 'options']), R.sortWith([R.ascend(R.pathOr('', ['_data', 'index']))]))(variant);\n        options = R.pipe(R.map(option => {\n          if (option.getData('name')) {\n            const status = option.getData('status');\n            const optionName = R.trim(option.getData('name')) || '';\n            const optionUid = option.getData('optionUid');\n            return {\n              variant: variantType,\n              variantIndex,\n              name: optionName,\n              code: option.getData('code'),\n              optionId: `${variantType}:${optionName}`,\n              optionUid,\n              status\n            };\n          }\n          return false;\n        }), R.reject(R.equals(false)))(options);\n        return options;\n      })(variants);\n      const combinations = R.pipe(R.reduce((acc, optionsData) => {\n        if (R.isEmpty(acc)) {\n          return R.map(optionData => [optionData])(optionsData);\n        }\n        if (R.isEmpty(optionsData)) {\n          return acc;\n        }\n        return R.xprod(acc)(optionsData);\n      }, []), R.map(R.flatten), _nventor.default.mapIndexed((optionData, index) => {\n        const variantChildId = R.pipe(R.pluck('optionId'), _nventor.default.sortTextAscending, R.join(':'))(optionData);\n\n        // the new prefered way to create variant child ids\n        const variantChildUid = R.pipe(R.pluck('optionUid'), _nventor.default.sortTextAscending, R.join(':'))(optionData);\n        let existingVariantChild = R.find(R.pathEq(['_data', 'variantChildUid'], variantChildUid))(existingVariantChildren);\n        // second try match by option choices (old way: legacy purposes only)\n        if (!existingVariantChild) {\n          existingVariantChild = R.find(R.pathEq(['_data', 'variantChildId'], variantChildId))(existingVariantChildren);\n        }\n        const statuses = R.pluck('status')(optionData);\n        let status = this.get('constants.status.active');\n        if (R.includes(this.get('constants.status.inactive'), statuses)) {\n          status = this.get('constants.status.inactive');\n        }\n        const existingStatus = R.pathOr('', ['_data', 'status'])(existingVariantChild);\n        if (RA.isNotNilOrEmpty(existingStatus)) {\n          status = existingStatus;\n        }\n        let name = R.pipe(R.sortWith([R.ascend(R.prop('variantIndex'))]), R.pluck('name'), R.reject(_nventor.default.isNilOrEmpty), R.join(productsVariantsNameSeparator))(optionData);\n        const existingName = R.pathOr('', ['_data', 'name'])(existingVariantChild);\n        if (existingName && (!isNew || autoFill !== 'name')) {\n          name = existingName;\n        } else if (name && productName && autoFill === 'name' && autoFillCommand === 'autoFill') {\n          name = `${productName}${productsVariantsNameSeparator}${name}`;\n        } else if (name && productName && isNew && RA.isNilOrEmpty(autoFillCommand)) {\n          name = `${productName}${productsVariantsNameSeparator}${name}`;\n        } else {\n          name = '';\n        }\n        let code = R.pipe(R.sortWith([R.ascend(R.prop('variantIndex'))]), data => {\n          // use variantOptions if no codes\n          const codes = R.pluck('code')(data);\n          return RA.mapIndexed((code, index) => {\n            if (RA.isNotNilOrEmpty(code)) {\n              return code;\n            }\n            return R.pathOr('', [index, 'name'])(data);\n          })(codes);\n        }, R.join(productsVariantsCodeSeparator))(optionData);\n        const codePlaceholder = R.clone(code);\n        const existingCode = R.pathOr('', ['_data', 'code'])(existingVariantChild);\n        if (existingCode && (!isNew || autoFill !== 'code')) {\n          code = existingCode;\n        } else if (code && productCode && autoFill === 'code' && autoFillCommand === 'autoFill') {\n          code = `${productCode}${productsVariantsCodeSeparator}${code}`;\n        } else if (code && productCode && isNew && RA.isNilOrEmpty(autoFillCommand)) {\n          code = `${productCode}${productsVariantsCodeSeparator}${code}`;\n        } else {\n          code = '';\n        }\n        const existingKey = R.pathOr('', ['_data', '_key'])(existingVariantChild);\n        let key = existingKey;\n        const existingId = R.pathOr('', ['_data', '_id'])(existingVariantChild);\n        let id = existingId;\n        let salesExclPrice = this.getData('salesExclPrice');\n        let salesInclPrice = this.getData('salesInclPrice');\n        let purchasesExclPrice = this.getData('purchasesExclPrice');\n        let purchasesInclPrice = this.getData('purchasesInclPrice');\n        if (RA.isNotNilOrEmpty(originalVariantChildren)) {\n          // first try match by variant uid\n          let originalVariantChild = R.find(R.pathEq(['_data', 'variantChildUid'], variantChildUid))(originalVariantChildren);\n\n          // second try match by option choices (old way: legacy purposes only)\n          if (!originalVariantChild) {\n            originalVariantChild = R.find(R.pathEq(['_data', 'variantChildId'], variantChildId))(originalVariantChildren);\n          }\n          if (originalVariantChild) {\n            salesExclPrice = originalVariantChild.getData('salesExclPrice');\n            salesInclPrice = originalVariantChild.getData('salesInclPrice');\n            purchasesExclPrice = originalVariantChild.getData('purchasesExclPrice');\n            purchasesInclPrice = originalVariantChild.getData('purchasesInclPrice');\n\n            // will always use original name & code'\n            // only use original name and code for when initial?\n            if (autoFill !== 'name' && autoFill !== 'code' && setInitialValue) {\n              status = originalVariantChild.getData('status');\n              name = originalVariantChild.getData('name');\n              code = originalVariantChild.getData('code');\n              key = originalVariantChild.getData('_key');\n              id = originalVariantChild.getData('_id');\n            }\n          } else {\n            if (autoFill !== 'name' & !autoFill == 'code' && setInitialValue) {\n              status = 'active';\n            }\n          }\n        }\n        if (autoFill === 'name' && autoFillCommand === 'clear') {\n          name = '';\n        }\n        if (autoFill === 'code' && autoFillCommand === 'clear') {\n          code = '';\n        }\n        if (existingStatus === 'inactive') {\n          status = existingStatus;\n          key = existingKey;\n          id = existingId;\n          code = existingCode;\n          name = existingName;\n          salesExclPrice = R.pathOr('', ['_data', 'salesExclPrice'])(existingVariantChild);\n          salesInclPrice = R.pathOr('', ['_data', 'salesInclPrice'])(existingVariantChild);\n          purchasesExclPrice = R.pathOr('', ['_data', 'purchasesExclPrice'])(existingVariantChild);\n          purchasesInclPrice = R.pathOr('', ['_data', 'purchasesInclPrice'])(existingVariantChild);\n        }\n        const variantChildData = {\n          _key: key,\n          _id: id,\n          variantChildIndex: index + 1,\n          variantChildId,\n          variantChildUid,\n          code,\n          codePlaceholder,\n          name,\n          salesExclPrice,\n          salesInclPrice,\n          purchasesExclPrice,\n          purchasesInclPrice,\n          status\n        };\n        return this.addVariantChild(variantChildData, existingVariantChildren);\n      }))(allOptions);\n      this.removeUnusedVariantChildren(combinations);\n      if (RA.isNotNilOrEmpty(onAfter) && R.is(Function, onAfter)) {\n        onAfter();\n      }\n    },\n    removeUnusedVariantChildren(newChildren) {\n      const newChildrenId = R.map(variantChild => variantChild._data.variantChildId)(newChildren);\n      const newChildrenUId = R.map(variantChild => variantChild._data.variantChildUid)(newChildren);\n      const variantChildren = this.getData('variantChildren') || [];\n      R.pipe(R.pathOr([], ['_data', '_createVariantChildren']), R.reject(R.pathEq(['_data', 'permanentlyUnavailable'], true)), R.reject(variantChild => {\n        const variantChildKey = variantChild?._data?._key || '';\n        const variantChildId = variantChild?._data?.variantChildId || '';\n        const variantChildUid = variantChild?._data?.variantChildUid || '';\n        if (!variantChildKey) {\n          return true;\n        }\n        if (R.includes(variantChildId, newChildrenId) || R.includes(variantChildUid, newChildrenUId)) {\n          return true;\n        }\n        return false;\n      }), R.forEach(variantChild => {\n        const variantChildCopy = this.dataManager.copyRecord(this.get('childAdapters.variants-children'), variantChild);\n        variantChildCopy.setData('status', 'inactive');\n        variantChildCopy.setData('permanentlyUnavailable', true);\n        variantChildren.pushObject(variantChildCopy);\n      }))(this);\n      this.setData('_createVariantChildren', newChildren);\n    },\n    addChoice(currentChoice, data) {\n      const choices = this.getData('choices') || [];\n      const lastChoice = choices.get('lastObject');\n      const lastIndex = R.path(['_data', 'index'], lastChoice);\n      let index = 1;\n      if (lastIndex) {\n        index = parseInt(lastIndex) + 1;\n      }\n      const defaultData = {\n        index,\n        name: '',\n        choicesQty: '',\n        status: this.get('constants.status.active'),\n        options: []\n      };\n      data = data || defaultData;\n      const choiceModel = this.dataManager.setAsRecord({\n        adapterName: this.get('childAdapters.choices'),\n        data\n      });\n      choices.pushObject(choiceModel);\n      this.setData('choices', choices);\n    },\n    removeChoice(choice) {\n      const choices = this.get('_data.choices') || [];\n      choices.removeObject(choice);\n      this.resetIndexes(choices);\n      return choice;\n    },\n    addFaq(faq) {\n      this.getData('faqs').pushObject(faq);\n    },\n    _blankAttachment() {\n      return {\n        type: this.constants.productAttachmentsTypes.video,\n        source: this.constants.videoSources.youtube,\n        url: ''\n      };\n    },\n    _newAttachmentModel(data) {\n      if (RA.isNilOrEmpty(data)) {\n        data = this._blankAttachment();\n      }\n      return this.dataManager.setAsRecord({\n        adapterName: 'products/attachments',\n        data\n      });\n    },\n    addDescriptionAttachment() {\n      const attachments = this.getData('descriptionAttachments') || [];\n      if (attachments.length >= 5) {\n        alert(this.intl.t('over limit'));\n        return;\n      }\n      const model = this._newAttachmentModel();\n      const newIndex = attachments.length - 1;\n      model.setData('index', newIndex);\n      attachments.pushObject(model);\n      this.setData('descriptionAttachments', attachments);\n    },\n    addEmailAttachment() {\n      const attachments = this.getData('emailAttachments') || [];\n      if (attachments.length >= 5) {\n        alert(this.intl.t('over limit'));\n        return;\n      }\n      const model = this._newAttachmentModel({\n        type: this.constants.productAttachmentsTypes.video,\n        source: this.constants.videoSources.youtube,\n        url: '',\n        label: this.intl.t('open link')\n      });\n      const newIndex = attachments.length - 1;\n      model.setData('index', newIndex);\n      attachments.pushObject(model);\n      this.setData('emailAttachments', attachments);\n    },\n    addVirtualContentsAttachment() {\n      const attachments = this.getData('virtualContentAttachments') || [];\n      if (attachments.length >= 5) {\n        alert(this.intl.t('over limit'));\n        return;\n      }\n      const model = this._newAttachmentModel();\n      const newIndex = attachments.length - 1;\n      model.setData('index', newIndex);\n      attachments.pushObject(model);\n      this.setData('virtualContentAttachments', attachments);\n    },\n    _blankSpec() {\n      return {\n        label: '',\n        value: ''\n      };\n    },\n    _newSpecModel(data) {\n      if (RA.isNilOrEmpty(data)) {\n        data = this._blankSpec();\n      }\n      return this.dataManager.setAsRecord({\n        adapterName: 'products/specs',\n        data\n      });\n    },\n    addSpec() {\n      const specs = this.getData('specs') || [];\n      if (specs.length >= 20) {\n        alert(this.intl.t('over limit'));\n        return;\n      }\n      const newIndex = specs.length - 1;\n      const model = this._newSpecModel();\n      model.setData('index', newIndex);\n      specs.pushObject(model);\n      this.setData('specs', specs);\n    },\n    removeCampaignDetail() {\n      this.set('campaignDetailInstructions', {});\n    }\n  }, _applyDecoratedDescriptor(_obj, \"defaults\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"defaults\"), _obj), _applyDecoratedDescriptor(_obj, \"_transformSpecs\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"_transformSpecs\"), _obj), _applyDecoratedDescriptor(_obj, \"_transformAttachments\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"_transformAttachments\"), _obj), _applyDecoratedDescriptor(_obj, \"removeBarcode\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"removeBarcode\"), _obj), _applyDecoratedDescriptor(_obj, \"addNewBarcode\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"addNewBarcode\"), _obj), _applyDecoratedDescriptor(_obj, \"addNewTemplate\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"addNewTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"removeTemplate\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"removeTemplate\"), _obj), _applyDecoratedDescriptor(_obj, \"addProductDisplayTags\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"addProductDisplayTags\"), _obj), _applyDecoratedDescriptor(_obj, \"removeProductDisplayTag\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"removeProductDisplayTag\"), _obj), _applyDecoratedDescriptor(_obj, \"_blankAttachment\", [_dec0], Object.getOwnPropertyDescriptor(_obj, \"_blankAttachment\"), _obj), _applyDecoratedDescriptor(_obj, \"_newAttachmentModel\", [_dec1], Object.getOwnPropertyDescriptor(_obj, \"_newAttachmentModel\"), _obj), _applyDecoratedDescriptor(_obj, \"addDescriptionAttachment\", [_dec10], Object.getOwnPropertyDescriptor(_obj, \"addDescriptionAttachment\"), _obj), _applyDecoratedDescriptor(_obj, \"addEmailAttachment\", [_dec11], Object.getOwnPropertyDescriptor(_obj, \"addEmailAttachment\"), _obj), _applyDecoratedDescriptor(_obj, \"addVirtualContentsAttachment\", [_dec12], Object.getOwnPropertyDescriptor(_obj, \"addVirtualContentsAttachment\"), _obj), _applyDecoratedDescriptor(_obj, \"_blankSpec\", [_dec13], Object.getOwnPropertyDescriptor(_obj, \"_blankSpec\"), _obj), _applyDecoratedDescriptor(_obj, \"_newSpecModel\", [_dec14], Object.getOwnPropertyDescriptor(_obj, \"_newSpecModel\"), _obj), _applyDecoratedDescriptor(_obj, \"addSpec\", [_dec15], Object.getOwnPropertyDescriptor(_obj, \"addSpec\"), _obj), _applyDecoratedDescriptor(_obj, \"removeCampaignDetail\", [_dec16], Object.getOwnPropertyDescriptor(_obj, \"removeCampaignDetail\"), _obj), _obj));\n});","define(\"client/pods/products/product-display-tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/product-display-tags/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/product-display-tags/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/products/service\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency\", \"client/utils/nventor\"], function (_exports, R, RA, _emberConcurrency, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj;\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  var _default = _exports.default = Ember.Service.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    intl: Ember.inject.service(),\n    dataManager: Ember.inject.service(),\n    settings: Ember.inject.service(),\n    server: Ember.inject.service(),\n    bigService: Ember.inject.service('big'),\n    constants: Ember.inject.service(),\n    search: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    unknownStatusClass: 'is-danger',\n    init() {\n      this._super('...arguments');\n      this.set('statusClasses', {\n        [this.get('constants.productsStatus.active')]: 'is-primary',\n        [this.get('constants.productsStatus.inactive')]: 'is-danger',\n        [this.get('constants.productsStatus.preOrder')]: 'is-warning',\n        [this.get('constants.productsStatus.draft')]: 'is-danger',\n        [this.get('constants.productsStatus.outOfStock')]: 'is-black',\n        [this.get('constants.productsStatus.soldOut')]: 'is-black'\n      });\n    },\n    searchInputTask: (0, _emberConcurrency.task)(function* ({\n      adapterName = 'products',\n      filtersAdapterName = 'products/filters',\n      query = '',\n      resultsProperty = '',\n      component,\n      resultsToggle = false,\n      global = true,\n      filters\n    }) {\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.search.setupFilters({\n          adapterName: filtersAdapterName,\n          defaultFiltersData: {\n            query,\n            match: [],\n            sort: [{\n              by: 'name',\n              direction: 'ASC'\n            }],\n            status: [this.get('constants.status.active')]\n          }\n        });\n      }\n      const results = yield this.crud.searchInputTask.perform({\n        adapterName,\n        filters,\n        resultsProperty,\n        component,\n        resultsToggle\n      }, query);\n      if (global && resultsProperty) {\n        // this[resultsProperty] = results\n        this.set(resultsProperty, results);\n      }\n      return results;\n    }),\n    getStatusClass(status) {\n      const statusClasses = this.statusClasses;\n      return R.propOr(this.unknownStatusClass, status, statusClasses);\n    },\n    fetchDocHistoryTask: (0, _emberConcurrency.task)(function* (docModel, preferredKey, product, itemKey) {\n      const docType = docModel.getData('docType');\n      const docName = docModel.getData('docName');\n      const contactKey = docModel.getData('contactKey');\n      const contact = docModel.getData('contact');\n      const priceHistoryData = yield this.getHistoryTask.perform({\n        docType,\n        docName,\n        contact,\n        contactKey,\n        itemKey\n      });\n      let preferredHistoryData;\n      preferredHistoryData = this.getLatestFor(preferredKey, priceHistoryData);\n      if (!preferredHistoryData) {\n        preferredHistoryData = product.serialize({\n          exclude: ['_key', '_rev', '_id']\n        });\n      }\n      const isPos = R.pathEq(['_data', 'isPos'], true)(docModel);\n      if (isPos) {\n        priceHistoryData.history = R.pipe(R.propOr({}, 'history'), R.over(R.lensProp('others'), (others = []) => R.sortWith([R.descend(R.prop('isPos'))])(others)))(priceHistoryData);\n      }\n      return {\n        priceHistoryData,\n        preferredHistoryData\n      };\n    }).enqueue().maxConcurrency(4),\n    fetchPurchasesHistoryTask: (0, _emberConcurrency.task)(function* (docModel, preferredKey, product, itemKey) {\n      docModel.setData('docType', 'purchases');\n      docModel.setData('docName', 'invoices');\n      return yield this.fetchDocHistoryTask.perform(docModel, preferredKey, product, itemKey);\n    }),\n    getHistoryTask: (0, _emberConcurrency.task)(function* ({\n      docType,\n      docName,\n      contact,\n      contactKey,\n      item,\n      itemKey,\n      docTypes\n    }) {\n      const data = {\n        contact,\n        contactKey,\n        item,\n        itemKey,\n        docTypes\n      };\n      const results = yield this.server.call('GET', `api/protected/documents/data/prices/${docType}/${docName}`, data);\n      return R.propOr({}, 'data', results);\n    }).enqueue().maxConcurrency(4),\n    getFor(prop, historyData) {\n      return R.pathOr([], ['history', prop], historyData);\n    },\n    getLatestFor(prop, historyData) {\n      // return R.pathOr([], ['history', prop], historyData)\n      const forProp = this.getFor(prop, historyData);\n      let found = false;\n      if (!R.isEmpty(forProp)) {\n        found = R.head(forProp);\n      }\n      return found;\n    },\n    getLatestDetail(props, historyData) {\n      let found = '';\n      R.forEach(prop => {\n        if (!found) {\n          const forProp = this.getFor(prop, historyData);\n          if (!R.isEmpty(forProp)) {\n            found = R.head(forProp);\n          }\n        }\n      }, props);\n      return found || false;\n    },\n    setPrice(model, historyData, onHideDropdown) {\n      model.setPrice(historyData);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    },\n    setDetailPrice(detail, child, historyData, onHideDropdown) {\n      detail.setDetailPrice(child, historyData);\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    },\n    // is this used?\n    selectChildHistoryPrice(detail, historyData, onHideDropdown) {\n      detail.setChildProductPrice(detail, historyData);\n      if (R.pathEq(['_data', 'isSet'], true, detail)) {\n        detail.recalculatePriceForSet(detail);\n      }\n      if (onHideDropdown) {\n        onHideDropdown();\n      }\n    },\n    getTaxRate(docType, taxes, product) {\n      // @TODO: should get taxRateKey from product to fetch tax rate from lists.tax\n      // also fetch tax rate label from lists.tax\n      // if no taxRate from product then get from settings\n      // PRO: if tax rate is removed, then assume taxrate no longer available\n      //      but if using taxrate and label stored in products, it will use old taxrate/label instead of settings\n      // CON: requires additional step to search lists.tax\n\n      const taxRateKey = product.getData(`${docType}TaxRateKey`);\n      let taxRate;\n      if (taxRateKey) {\n        const productTax = taxes.findBy('_data._key', taxRateKey);\n        if (productTax) {\n          taxRate = productTax.getData('value');\n        }\n      }\n      if (!taxRateKey || taxRateKey === 'auto') {\n        const defaultTaxRate = this.settings.getDefaultTaxRate(taxes);\n        taxRate = defaultTaxRate;\n      }\n      if (taxRateKey === 'none') {\n        taxRate = 0;\n      }\n      return taxRate;\n    },\n    getRecurringFiltersTask: (0, _emberConcurrency.task)(function* () {\n      yield this.crud.addLists(this, ['products/lists/recurring-filters', 'recurring/schedules/options']);\n      const productsListsRecurringFilters = R.pathOr([], ['crud', 'lists', 'products-lists-recurring-filters'])(this);\n      const recurringSchedulesOptions = R.pathOr([], ['crud', 'lists', 'recurring-schedules-options'])(this);\n      let recurringFilters = R.concat(productsListsRecurringFilters, recurringSchedulesOptions);\n      recurringFilters = R.map(recurringFilter => {\n        const hasTranslate = R.pathEq(['_data', 'translate'], true)(recurringFilter);\n        if (recurringFilter?._data) {\n          Ember.set(recurringFilter, '_data.translate', hasTranslate);\n        }\n        return recurringFilter;\n      })(recurringFilters) || [];\n      return recurringFilters;\n    }),\n    resetInventoryDataTask: (0, _emberConcurrency.task)(function* ({\n      inventoryResetDateZ\n    }) {\n      if (RA.isNilOrEmpty(inventoryResetDateZ)) {\n        return;\n      }\n      yield this.server.call('POST', 'api/protected/products/reset-inventory-data', {\n        inventoryResetDateZ,\n        revalidateAllReport: true\n      });\n    }),\n    setAsDefaultImageTask: (0, _emberConcurrency.task)(function* ({\n      adapterName = 'products',\n      resource = 'products',\n      resourceKey,\n      uploadsModel\n    }) {\n      // no need to send entire record over, should only update record, not replace\n      const product = yield this.dataManager.findRecord({\n        adapterName,\n        appendPath: `/${resourceKey}`\n      });\n      const dirty = this.dataManager.getDirtyRecord(adapterName, product);\n      dirty.setData('defaultImage', uploadsModel?._data?.uuid);\n      try {\n        return yield this.dataManager.updateRecord({\n          adapterName,\n          dirty\n        });\n      } catch (err) {\n        this.set('errors', err.data);\n        _nventor.default.throw('setAsDefaultImageTask failed', err);\n      }\n    }).drop(),\n    checkForDisallowedValues({\n      modelToCheck,\n      models,\n      prop\n    }) {\n      const value = R.pipe(R.pathOr('', ['_data', prop]), R.trim)(modelToCheck);\n      if (!value) {\n        return false;\n      }\n      if (R.includes(':', value)) {\n        const msg = this.intl.t('colon not allowed');\n        window.alert(msg);\n        const strippedValue = R.replace(/:/g, '')(value);\n        modelToCheck.setData(prop, strippedValue);\n        return false;\n      }\n      const found = R.filter(model => {\n        const propValueToCheck = R.pipe(R.pathOr('', ['_data', prop]), R.trim)(model);\n        if (propValueToCheck === value) {\n          return true;\n        }\n        return false;\n      })(models);\n      if (found.length > 1) {\n        const msg = this.intl.t('duplicate value');\n        window.alert(msg);\n        modelToCheck.setData(prop, '');\n        return false;\n      }\n    },\n    fetchChildrenInventoryTask: (0, _emberConcurrency.task)(function* (product) {\n      const master = product?._data?._key || '';\n      if (master) {\n        const adapterName = 'products';\n        const appendPath = '/children';\n        const data = {\n          master\n        };\n        const children = yield this.dataManager.findAll({\n          adapterName,\n          appendPath,\n          data\n        });\n        return children;\n      }\n    }),\n    fetchCampaignsForProductTask: (0, _emberConcurrency.task)(function* (productKey) {\n      return yield this.crud.searchRecordsTask.perform({\n        adapterName: 'products/lists/campaigns',\n        appendPath: productKey\n      });\n    }),\n    getProductTagList({\n      exclude = []\n    } = {}) {\n      const allProductTags = this.crud.lists['products-lists-tags'] || [];\n      return allProductTags.filter(productTag => {\n        return !exclude.includes(productTag?._data?._key);\n      });\n    }\n  }, _applyDecoratedDescriptor(_obj, \"selectChildHistoryPrice\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"selectChildHistoryPrice\"), _obj), _applyDecoratedDescriptor(_obj, \"checkForDisallowedValues\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"checkForDisallowedValues\"), _obj), _applyDecoratedDescriptor(_obj, \"getProductTagList\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"getProductTagList\"), _obj), _obj));\n});","define(\"client/pods/products/sets/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/sets/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/sets/details/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/products-children\", \"client/mixins/uploads\"], function (_exports, _model, _productsChildren, _uploads) {\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(_productsChildren.default, _uploads.default, {\n    init() {\n      this._super(...arguments);\n      this.set('childAdapters', {\n        'choices': 'products/choices',\n        'choices-details': 'products/choices/details',\n        'sets-details': 'products/sets/details',\n        'variants': 'products/variants',\n        'variants-options': 'products/variants/options',\n        'variants-children': 'products/variants/children'\n      });\n    },\n    defaults() {\n      return {\n        isSet: true,\n        status: this.get('constants.status.active')\n      };\n    }\n\n    // defaultImage: computed('productsUploadsCollection._data.uploads.[]', 'productsCampaignsUploadsCollection._data.uploads.[]', '_data.defaultImage', function () {\n    //   if (this.get('_data.defaultImage')) {\n    //     return this.get('_data.defaultImage')\n    //   }\n\n    //   const productsUploadsCollection = this.get('productsUploadsCollection._data.uploads') || []\n    //   const productsCampaignsUploadsCollection = this.get('productsCampaignsUploadsCollection._data.uploads') || []\n    //   const allUploads = productsUploadsCollection.concat(productsCampaignsUploadsCollection)\n    //   const firstImage = allUploads.get('firstObject')\n\n    //   if (firstImage) {\n    //     return firstImage.uuid\n    //   }\n\n    //   return false\n    // })\n  });\n});","define(\"client/pods/products/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/templates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/templates/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/templates/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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;\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 ProductsTemplatesModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _class = class ProductsTemplatesModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        template: '',\n        header: this.intl.t('product information'),\n        status: this.get('constants.status.active')\n      };\n    }\n    replaceTemplate(template, templateImages = []) {\n      this.setData('template', template);\n      this.setData('templateImages', templateImages);\n    }\n    insertTemplate(template, templateImages = []) {\n      const currentTemplate = this.getData('template');\n      const currentTemplateImages = this.getData('templateImages') || [];\n      let newTemplate = '';\n      if (currentTemplate) {\n        newTemplate = `${currentTemplate}<br>`;\n      }\n      newTemplate = `${newTemplate} ${template}`;\n      const newTemplateImages = R.concat(currentTemplateImages, templateImages);\n      this.setData('template', newTemplate);\n      this.setData('templateImages', newTemplateImages);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"replaceTemplate\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"replaceTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"insertTemplate\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"insertTemplate\"), _class.prototype), _class);\n});","define(\"client/pods/products/variants/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/variants/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/variants/children/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/variants/children/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/products/variants',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/variants/children/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        setType: 'isVariantChild'\n      };\n    }\n  });\n});","define(\"client/pods/products/variants/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/products-children\", \"client/mixins/sortable-details\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, _productsChildren, _sortableDetails, R, RA) {\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(_productsChildren.default, _sortableDetails.default, {\n    toSortProp: '_data.options',\n    indexProp: '_data.index',\n    toSortArray: Ember.computed('_data.options.[]', 'synced', function () {\n      return this.get('_data.options');\n    }),\n    populate(data = {}) {\n      if (RA.isNotNilOrEmpty(data?.options || [])) {\n        data.options = R.pipe(R.propOr([], 'options'), R.map(option => {\n          return this.dataManager.setAsRecord({\n            adapterName: 'products/variants/options',\n            data: option\n          });\n        }))(data);\n      }\n      this._super(...arguments);\n    },\n    defaults() {\n      return {};\n    }\n  });\n});","define(\"client/pods/products/variants/options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/products/variants/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/products/variants/options/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {};\n    }\n  });\n});","define(\"client/pods/protected/companies/route\", [\"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 = Ember.Route.extend({\n    // inject ember intl service\n    auth: Ember.inject.service(),\n    storage: Ember.inject.service(),\n    queryParams: {\n      lang: {\n        refreshModel: true\n      }\n    },\n    model: function (params) {\n      const companyName = this.storage.companyName;\n      this.auth.isAlreadyAuthenticated(companyName, params.user_id, params);\n      return {};\n    }\n  });\n});","define(\"client/pods/protected/companies/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"p2LokHfv\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"app-companies/modal\\\",[],[[],[]]]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/protected/companies/template.hbs\"\n    }\n  });\n});","define(\"client/pods/protected/company/route\", [\"exports\", \"client/utils/nventor\"], function (_exports, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Route.extend({\n    // inject ember intl service\n    auth: Ember.inject.service(),\n    queryParams: {\n      reload: {\n        refreshModel: true\n      },\n      lang: {\n        refreshModel: true\n      }\n    },\n    model(params) {\n      const isAuth = this.auth.isAlreadyAuthenticated(params.company_name, params.user_id, params);\n      return {\n        isAuth,\n        params\n      };\n    },\n    afterModel(model) {\n      const params = model.params || {};\n      if (params.reload) {\n        setTimeout(() => {\n          _nventor.default.removeAndUpdateQueryParams(['reload']);\n          window.location.reload();\n        }, 100);\n      }\n    }\n  });\n});","define(\"client/pods/protected/company/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"V5NASOdm\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"app-container\\\"],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/protected/company/template.hbs\"\n    }\n  });\n});","define(\"client/pods/protected/help/route\", [\"exports\", \"client/utils/nventor\"], function (_exports, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Route.extend({\n    // inject ember intl service\n    auth: Ember.inject.service(),\n    queryParams: {\n      reload: {\n        refreshModel: true\n      },\n      lang: {\n        refreshModel: true\n      }\n    },\n    model(params) {\n      console.log('params', params);\n      const isAuth = this.auth.isAlreadyAuthenticated(params.company_name, params.user_id, params);\n      return {\n        isAuth,\n        params\n      };\n    },\n    afterModel(model) {\n      const params = model.params || {};\n      if (params.reload) {\n        setTimeout(() => {\n          _nventor.default.removeAndUpdateQueryParams(['reload']);\n          window.location.reload();\n        }, 100);\n      }\n    }\n  });\n});","define(\"client/pods/protected/help/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xnC10JMr\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-help-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"model\\\",\\\"isAuth\\\"]]],null,{\\\"statements\\\":[[0,\\\"    \\\"],[5,\\\"layouts/section\\\",[],[[\\\"@translate\\\",\\\"@title\\\"],[false,[23,0,[\\\"model\\\",\\\"params\\\",\\\"documentation_id\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n      \\\"],[5,\\\"documentation/viewer\\\",[],[[\\\"@isPopupBtn\\\",\\\"@fetchDocumentationResource\\\",\\\"@fetchDocumentationId\\\"],[false,[23,0,[\\\"model\\\",\\\"params\\\",\\\"documentation_resource\\\"]],[23,0,[\\\"model\\\",\\\"params\\\",\\\"documentation_id\\\"]]]]],[0,\\\"\\\\n    \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"    \\\"],[1,[28,\\\"tt\\\",[\\\"please login to view this page\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/protected/help/template.hbs\"\n    }\n  });\n});","define(\"client/pods/public-statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'private',\n        label: 'private',\n        classNames: 'u-is-private'\n      }, {\n        value: 'public',\n        label: 'public',\n        classNames: 'u-is-public'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/recurring/discounts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'apply to last order only',\n        value: 'last'\n      }, {\n        label: 'apply to first order only',\n        value: 'first'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/recurring/schedules/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/recurring/schedules/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/recurring/schedules',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/recurring/schedules/end/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'exact date',\n        value: 'exactDate'\n      }, {\n        label: 'month end',\n        value: 'monthEnd'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/recurring/schedules/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/recurring/schedules/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/recurring/schedules/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/recurring/schedules/from/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'end of invoice month',\n        value: 'invoiceMonth'\n      }, {\n        label: 'invoice date',\n        value: 'invoiceDate'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/recurring/schedules/model\", [\"exports\", \"client/pods/base/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, _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 RecurringSchedulesModel = _exports.default = (_dec = Ember._tracked, _class = class RecurringSchedulesModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        label: '',\n        totalPeriods: 1,\n        months: 0,\n        days: 0,\n        from: this.constants.paymentTermsFrom.invoiceMonth,\n        end: this.constants.paymentTermsEnd.exactDate,\n        discountType: 'rate',\n        discountRate: '',\n        discountAmount: '',\n        allowOnSale: '',\n        discountRateOnSale: '',\n        status: this.constants.status.active\n      };\n    }\n    populate(data, attrs) {\n      super.populate(data, attrs);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/recurring/schedules/options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/recurring/schedules/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/recurring/schedules',\n    modelObj: _model.default,\n    idParam: '_id',\n    serialize(model) {\n      const data = this._super(model);\n      const months = Number(data.months) || 0;\n      const days = Number(data.days) || 0;\n      data.daysOrMonths = months + days;\n      return data;\n    }\n  });\n});","define(\"client/pods/recurring/schedules/options/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 RecurringSchedulesModel = _exports.default = (_dec = Ember._tracked, _class = class RecurringSchedulesModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        label: '',\n        totalPeriods: 1,\n        months: 0,\n        days: 0,\n        from: this.constants.paymentTermsFrom.invoiceMonth,\n        end: this.constants.paymentTermsEnd.exactDate,\n        status: this.constants.status.active\n      };\n    }\n    populate(data, attrs) {\n      data.value = R.clone(data?._key || '');\n      super.populate(data, attrs);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/recurring/service\", [\"exports\", \"ramda\"], function (_exports, R) {\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;\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 RecurringService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('search'), _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _class = class RecurringService extends Ember.Service {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"recurringSchedulesFilters\", _descriptor3, this);\n      this.recurringSchedulesFilters = this.searchService.setupFilters({\n        adapterName: 'recurring/schedules/filters',\n        defaultFiltersData: {}\n      });\n    }\n    addSchedule({\n      model,\n      schedule = {},\n      tab\n    }) {\n      const recurringSchedules = model?._data?.recurringSchedules || [];\n      const newRecurringSchedule = this.crud.setupNewRecord({\n        adapterName: 'recurring/schedules',\n        data: schedule,\n        tab\n      });\n      recurringSchedules.pushObject(newRecurringSchedule);\n      model.setData('recurringSchedules', recurringSchedules);\n    }\n    removeSchedule({\n      model,\n      schedule = {}\n    }) {\n      const recurringSchedules = model?._data?.recurringSchedules || [];\n      recurringSchedules.removeObject(schedule);\n      model.setData('recurringSchedules', recurringSchedules);\n    }\n    setScheduleFromPreset({\n      schedule\n    }, preset) {\n      let data = preset.serialize();\n      data = R.omit(['_id', '_key', '_rev'])(data);\n      R.mapObjIndexed((value, key) => {\n        schedule.setData(key, value);\n      })(data);\n    }\n    resetSchedule({\n      schedule\n    }) {}\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"recurringSchedulesFilters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"addSchedule\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"addSchedule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSchedule\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSchedule\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setScheduleFromPreset\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"setScheduleFromPreset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetSchedule\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"resetSchedule\"), _class.prototype), _class);\n});","define(\"client/pods/recurring/shipping/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'apply to all orders',\n        value: 'all'\n      }, {\n        label: 'apply to first order only',\n        value: 'first'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/reports/commissions/data/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/reports/commissions/data',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/adjustment/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/adjustment/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/reports/commissions/data/adjustment',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/reports/commissions/data/adjustment/details/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/adjustment/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/adjustment/details/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/reports/commissions/data/adjustment/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/adjustment/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/adjustment/filters/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        resultsProperty: 'results',\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        username: '',\n        tags: [],\n        segments: [],\n        sort: [{\n          by: 'dateZ',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/reports/commissions/data/adjustment/lists/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/adjustment/lists/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/reports/commissions/data/adjustment/lists',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/adjustment/lists/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/adjustment/lists/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/adjustment/lists/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        resultsProperty: 'results',\n        page: 1,\n        count: 100,\n        query: '',\n        match: ['all'],\n        item: '',\n        dispatchStatus: 'dispatched',\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        username: '',\n        tags: [],\n        status: 'final',\n        segments: [],\n        sort: [{\n          by: 'dateZ',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/reports/commissions/data/adjustment/lists/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/reports/commissions/data/adjustment/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _obj = {\n    defaults() {\n      return {\n        selectedCommissionBaseCostMethod: 'normalPercent',\n        isCalculatedByExclAmt: true,\n        paymentTermsKey: ''\n      };\n    },\n    populate(data = {}) {\n      data = data || {};\n      data = this.transformDetails(data);\n\n      // populate docName info\n      this.overwriteData(data);\n      this._super(...arguments);\n    },\n    transformDetails(rawData) {\n      // const self = this\n      rawData.details = R.pipe(R.pathOr([], ['details']), R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'reports/commissions/data/adjustment/details',\n          data\n        });\n      }))(rawData);\n      return rawData;\n    },\n    addNewRow(data) {\n      if (RA.isNilOrEmpty(data)) {\n        data = {\n          item: '',\n          itemKey: '',\n          manual: true\n          // commissionBaseCost: '',\n        };\n      }\n      const detailModel = this.dataManager.setAsRecord({\n        adapterName: 'reports/commissions/data/adjustment/details',\n        data\n      });\n      let details = this.getData('details') || [];\n      details.pushObject(detailModel);\n      return detailModel;\n    }\n  }, _applyDecoratedDescriptor(_obj, \"addNewRow\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"addNewRow\"), _obj), _obj));\n});","define(\"client/pods/reports/commissions/data/all/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/all/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/reports/commissions/data',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/all/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/all/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/all/filters/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        username: '',\n        tags: [],\n        segments: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/reports/commissions/data/all/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    populate(data = {}) {\n      data = data || {};\n      data = this.transformPayouts(data);\n\n      // populate docName info\n      this.overwriteData(data);\n    },\n    transformPayouts(rawData) {\n      // const self = this\n      rawData.commissionsDueData.payoutsThisMonth = R.pipe(R.pathOr([], ['commissionsDueData', 'payoutsThisMonth']), R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'ledgers/journals/cashbook',\n          data\n        });\n      }))(rawData);\n      return rawData;\n    }\n  });\n});","define(\"client/pods/reports/commissions/data/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        username: '',\n        tags: [],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/reports/commissions/data/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/reports/commissions/data/payouts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/payouts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/reports/commissions/payouts',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/reports/commissions/data/payouts/model\", [\"exports\", \"client/pods/base/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\n    // requiredAttrs: Ember.computed('_data.type', 'isNew', function () {\n\n    //   if (this.get('_data.type') === this.get('constants.userTypes.employee')) {\n\n    //     if (this.get('isNew'))  {\n\n    //       return ['_data.name', '_data.username', '_data.email', '_data.password', '_data.confirmPassword'];\n    //     }\n    //     return ['_data.name', '_data.username', '_data.email'];\n    //   }\n\n    //   if (this.get('isNew'))  {\n    //     return ['_data.name', '_data.email', '_data.password', '_data.confirmPassword'];\n    //   }\n\n    //   return ['_data.name', '_data.email'];\n    // }),\n  });\n});","define(\"client/pods/reports/commissions/data/summary/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/summary/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/reports/commissions/data/summary',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/summary/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/reports/commissions/data/summary/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/reports/commissions/data/summary/filters/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        username: '',\n        tags: [],\n        segments: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/reports/commissions/data/summary/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/reports/lists/contact-tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'uniqueTagsOnly',\n        label: 'uniqueTagsOnly'\n      }, {\n        value: 'combinedTagsOnly',\n        label: 'combinedTagsOnly'\n      }, {\n        value: 'allTags',\n        label: 'allTags'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/reports/lists/export-date-type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'campaignPeriod',\n        label: 'use campaign period'\n      }, {\n        value: 'month',\n        label: 'monthly'\n      }, {\n        value: 'customDate',\n        label: 'use custom date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/reports/lists/show-item-by/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'showItem',\n        label: 'only show set parents (hide details)'\n      }, {\n        value: 'showItemWithSetChildOnly',\n        label: 'only show set details (hide parents)'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/reports/lists/show-reports-by/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'day',\n        label: 'daily'\n      }, {\n        value: 'month',\n        label: 'monthly'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/reset/route\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ResetRoute extends Ember.Route {\n    model() {\n      window.localStorage.clear();\n    }\n    // redirect () {\n    //   this.transitionTo('index', {\n    //     queryParams: {\n    //       reload: true\n    //     }\n    //   })\n    // }\n  }\n  _exports.default = ResetRoute;\n});","define(\"client/pods/reset/template\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"RTHxI8Mb\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/pods/reset/template.hbs\"\n    }\n  });\n});","define(\"client/pods/schedules/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/schedules/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/schedules',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/schedules/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/schedules/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/schedules/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        resources: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/schedules/model\", [\"exports\", \"client/pods/base/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    users: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    dataManager: Ember.inject.service(),\n    // defaults () {\n    //   return {\n    //     description: '',\n    //     from: '',\n    //     end: '',\n    //     discountType: 'rate',\n    //     discountRate: '',\n    //     discountAmount: '',\n    //     allowOnSale: '',\n    //     discountRateOnSale: ''\n    //   }\n    // },\n\n    get statusClass() {\n      const status = this._data.status;\n      switch (status) {\n        case 'inactive':\n          return 'is-danger';\n        case 'cancelled':\n          return 'is-danger';\n        case 'pending':\n          return 'is-warning';\n        case 'completed':\n          return 'is-success';\n      }\n    },\n    populate(data, attrs) {\n      data.workflowsItemsActivities = this._transformWorkflowsItemsActivities(data.workflowsItemsActivities);\n      this._super(data, attrs);\n    },\n    _transformWorkflowsItemsActivities(reviewSteps = []) {\n      return reviewSteps.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'workflows/items/activities',\n          data\n        });\n      });\n    }\n  });\n});","define(\"client/pods/search/service\", [\"exports\", \"ramda\", \"ramda-extension\", \"ember-concurrency-decorators\"], function (_exports, R, R_, _emberConcurrencyDecorators) {\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 SearchService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _class = class SearchService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"users\", _descriptor, this);\n      _initializerDefineProperty(this, \"crud\", _descriptor2, this);\n    }\n    // props.dynamicFilterKeys - eg. campaign master must never be saved, but must be used for every load from saved. this way filters can be saved and re-used across multiple campaigns\n    setupFilters({\n      adapterName,\n      altStorageProp = false,\n      rememberMe = false,\n      rememberProps = [],\n      defaultFiltersData = {},\n      resetDefaults = {},\n      onAfter,\n      props = {},\n      debug = false\n    }) {\n      if (debug) {\n        debugger; //eslint-disable-line\n      }\n      const storageProp = altStorageProp || adapterName;\n      if (rememberMe === true) {\n        defaultFiltersData = this.getFromStorage(storageProp) || defaultFiltersData;\n      }\n      defaultFiltersData.filtersAdapterName = adapterName;\n      defaultFiltersData.storageProp = storageProp;\n      defaultFiltersData.rememberMe = rememberMe;\n      defaultFiltersData.rememberProps = rememberProps;\n      const userKey = this.users.getUserKey();\n      defaultFiltersData.userKey = userKey;\n      if (!defaultFiltersData.menuId) {\n        defaultFiltersData.menuId = adapterName;\n      }\n      const filters = this.dataManager.setAsRecord({\n        debug,\n        adapterName,\n        data: defaultFiltersData\n      });\n      R_.mapKeysWithValue((key, value) => {\n        filters.set(key, value);\n      })(props);\n      filters.set('resetDefaults', resetDefaults);\n      filters.snapshotSetupData();\n      return filters;\n    }\n    copyFilters({\n      filters,\n      adapterName,\n      altStorageProp = false,\n      rememberMe = false,\n      lastSearchSettingsProperty = 'lastSearchSettings',\n      defaultFiltersData\n    }) {\n      let toCopyDefaultFiltersData = filters.serialize();\n      toCopyDefaultFiltersData = R.mergeRight(toCopyDefaultFiltersData, defaultFiltersData);\n      adapterName = adapterName || defaultFiltersData.filtersAdapterName;\n      const copy = this.setupFilters({\n        adapterName,\n        altStorageProp,\n        rememberMe,\n        defaultFiltersData: toCopyDefaultFiltersData\n      });\n      copy.set('lastSearchSettingsProperty', lastSearchSettingsProperty);\n      // the copy starts from the source's current criteria, so its reset baseline must come from the source\n      const copySetupData = R.mergeRight(filters.setupData || {}, defaultFiltersData || {});\n      copy.snapshotSetupData(copySetupData);\n      return copy;\n    }\n    getFromStorage(storageProp) {\n      storageProp = R.replace('/', '__')(storageProp);\n      return this.storage.get(`settings__${storageProp}__filters`) || false;\n    }\n    setToStorage(filters, rememberProps = false) {\n      let storageProp = filters.getData('storageProp');\n      storageProp = R.replace('/', '__')(storageProp);\n      rememberProps = rememberProps || filters.getData('rememberProps') || [];\n      let filterData = filters.serialize();\n      if (!R.isEmpty(rememberProps)) {\n        filterData = R.pick(rememberProps)(filterData);\n      }\n      this.storage.set(`settings__${storageProp}__filters`, filterData);\n      return filters;\n    }\n    *loadFromSavedFilters({\n      currentFilters,\n      savedFilter,\n      onAfter\n    }) {\n      const currentFiltersSerialized = currentFilters.serialize();\n      const savedFilterSerialized = savedFilter.serialize();\n      const savedFilterData = savedFilterSerialized.data || {};\n\n      // keep dynamic filter values from being overritten\n      const dynamicFilterKeys = currentFilters?.dynamicFilterKeys || [];\n      R.forEach(dynamicKey => {\n        const dynamicValue = R.prop(dynamicKey)(currentFiltersSerialized);\n        if (!R.isNil(dynamicValue)) {\n          savedFilterData[dynamicKey] = dynamicValue;\n        }\n      })(dynamicFilterKeys);\n\n      // use populate to ensure data is transformed\n      currentFilters.populate(savedFilterData);\n      yield onAfter(currentFilters);\n    }\n    *saveFiltersTask({\n      filters,\n      onCloseDialogAction\n    }) {\n      // const userMenu = this.userMenu || []\n      // const lastIndex = userMenu.length || 0\n      // filters.setData('index', 0)\n      const dynamicFilterKeys = filters?.dynamicFilterKeys || [];\n      let filtersData = filters.serialize();\n      filtersData = R.omit(dynamicFilterKeys)(filtersData);\n\n      // @NOTE: always set to page 1.\n      // if need to set a different page, should add input in save filter modal\n      filtersData.page = 1;\n      const model = this.crud.setupNewRecord({\n        adapterName: filters.adapterName,\n        data: {\n          menuId: filtersData?.menuId,\n          userKey: filtersData?.userKey,\n          label: filtersData?.label,\n          data: filtersData\n        }\n      });\n      yield this.crud.createRecordTask.perform({\n        adapterName: 'users/personal-filters',\n        model\n      });\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *removeSavedFiltersTask(savedFilter) {\n      yield this.crud.removeRecordTask.perform({\n        adapterName: 'users/personal-filters',\n        model: savedFilter,\n        noConfirm: false\n      });\n    }\n    *getSavedFiltersTask({\n      menuId\n    }) {\n      const personalFilters = this.setupFilters({\n        adapterName: 'users/personal-filters/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'index',\n            direction: 'ASC'\n          }],\n          menuId\n        }\n      });\n      this.set('personalFilters', personalFilters);\n      const personalSavedFilters = yield this.crud.findTask.perform({\n        adapterName: 'users/personal-filters/collection',\n        filters: personalFilters\n      });\n      return personalSavedFilters;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"users\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loadFromSavedFilters\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadFromSavedFilters\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"saveFiltersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSavedFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSavedFiltersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getSavedFiltersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getSavedFiltersTask\"), _class.prototype), _class);\n});","define(\"client/pods/server/service\", [\"exports\", \"client/config/environment\", \"client/utils/nventor\", \"ramda\"], function (_exports, _environment, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import AjaxMixin from '../../mixins/ajax' // @TODO: remove this\n  /**\n   * There are 4 ways to connect to the server from code\n   * 1. code -> crudMixin (find/search/save/replace/remove...) -> dataManagerService -> (cache) -> adapter (adapterMixin) -> ajaxService\n   *    for normal models:\n   *      - caches responses\n   *      - has realtime updates\n   *      - adds config.host to path\n   *\n   * 2. code -> crudMixin (getAdapter) -> server (getAdapter) -> adapter (adapterMixin) -> ajaxService\n   *    for connections that don't necessarily fit into rest way of doing things.\n   *      - does not cache responses\n   *      - no realtime updates\n   *      - adds config.host to path\n   *\n   * 3. code -> server (call) -> ajaxService\n   *    for simply calling server\n   *      - no adapter for this connection\n   *      - no caches\n   *      - no realtime updates\n   *      - adds config.host to path\n   *\n   * 4. code -> ajaxService\n   *    raw call to server\n   *      - must specify host in path\n   *      - can connect to other servers\n   *\n   */\n  var _default = _exports.default = Ember.Service.extend({\n    host: _environment.default.APP.serverUrl,\n    hostingHost: _environment.default.APP.hostingUrl,\n    settings: Ember.inject.service(),\n    updates: Ember.inject.service(),\n    socket: Ember.inject.service(),\n    users: Ember.inject.service(),\n    ajax: Ember.inject.service(),\n    logError(data, token) {\n      const method = 'POST';\n      const path = 'api/protected/app/logs/errors';\n      const url = this.host + `/${path}`;\n      let settingsData = {};\n      const settingsModel = this.settings.getModel();\n      if (settingsModel?.serialize) {\n        settingsData = settingsModel.serialize();\n        settingsData = R.pick(['company', 'podKey', 'plan'])(settingsData);\n      }\n      const userData = this?.users?.tokenData();\n      data.error = data.error || {};\n      data.error.clientVersion = this.updates.version;\n      data.error.apiVersion = this.socket.apiVersion;\n      data.error.settings = settingsData;\n      data.error.user = userData;\n      return this.ajax[method](url, data, token);\n    },\n    login(credentials) {\n      // var url = 'app/login'\n\n      // always stringify data when sending to Server\n      // const data = JSON.stringify(credentials)\n\n      const url = this.host + '/app/login';\n      return this.ajax.POST(url, credentials);\n    },\n    loginWithTwoFactorAuth(code, twoFactorAuthToken, appendPath = '') {\n      // var url = 'app/login'\n\n      // always stringify data when sending to Server\n      // const data = JSON.stringify(credentials)\n\n      let url = this.host + '/app/login/2FA';\n      if (appendPath) {\n        url = `${url}/${appendPath}`;\n      }\n      const data = {\n        code: code || ''\n      };\n      return this.ajax.POST(url, data, twoFactorAuthToken);\n    },\n    /**\n     * Logs in through the beta login API, which answers with a beta redirect instead of a login token.\n     *\n     * @param {Object} credentials - login form values\n     * @param {string} credentials.username - email entered on the login page\n     * @param {string} credentials.password - password entered on the login page\n     * @param {string} credentials.app - app query param of the login page ('' when absent)\n     * @returns {Promise<Object>} `{ data: { isTwoFactorAuth }, token }` on a 2FA pause, otherwise `{ data: { redirectUrl } }`\n     */\n    loginToBeta(credentials) {\n      const url = `${this.host}/app/login/beta`;\n      return this.ajax.POST(url, credentials);\n    },\n    /**\n     * Finishes a beta login that paused for two factor authentication.\n     *\n     * @param {string} code - two factor authentication code from the email\n     * @param {string} twoFactorAuthToken - 2FA token returned by the beta login pause\n     * @returns {Promise<Object>} `{ data: { redirectUrl } }`\n     */\n    loginToBetaWithTwoFactorAuth(code, twoFactorAuthToken) {\n      const url = `${this.host}/app/login/beta/2FA`;\n      const data = {\n        code: code || ''\n      };\n      return this.ajax.POST(url, data, twoFactorAuthToken);\n    },\n    /**\n     * Asks for a beta address for the current login.\n     * The API answers with JSON because ajax follows an HTTP redirect without moving the browser.\n     *\n     * @returns {Promise<Object>} `{ data: { redirectUrl } }`\n     */\n    redirectToBeta() {\n      const url = `${this.host}/api/protected/app/login/beta`;\n      return this.ajax.POST(url, {});\n    },\n    /**\n     * Trades a one-time beta login code for a login token.\n     *\n     * @param {string} code - one-time code from the beta redirect address\n     * @returns {Promise<Object>} `{ token }`\n     */\n    exchangeBetaLoginCode(code) {\n      const url = `${this.host}/app/login/beta/exchange`;\n      // hasToken false: the code is the only credential, a stale stored token must not be sent with it\n      const hasToken = false;\n      return this.ajax.POST(url, {\n        code\n      }, null, hasToken);\n    },\n    loginToCompany(podKey, token) {\n      // var url = 'app/login'\n\n      // always stringify data when sending to Server\n      // const data = JSON.stringify(credentials)\n\n      const url = `${this.host}/api/protected/app/login/company`;\n      return this.ajax.POST(url, {\n        podKey\n      }, token);\n    },\n    /**\n     * Makes an AJAX method call, for normal short, quick tasks.\n     *\n     * @param {'GET'|'POST'|'PUT'|'PATCH'|'DELETE'} method - The HTTP method to use for the request (e.g. \"GET\", \"POST\").\n     * @param {string} path - The endpoint path to append to the base URL.\n     * @param {Object} data - Optional data to send with the request (e.g. request payload).\n     * @param {string?} token - Optional authorization token for authenticated requests.\n     *\n     * @return {Promise} - Promise representing the AJAX request.\n     */\n    call(method, path, data, token) {\n      const host = this.host;\n      const url = `${host}/${path}`;\n      return this.ajax[method](url, data, token);\n    },\n    /**\n     * Makes an AJAX method call for LONG TASKS.\n     *\n     * @param {'GET'|'POST'|'PUT'|'PATCH'|'DELETE'} method - The HTTP method to use for the request (e.g. \"GET\", \"POST\").\n     * @param {string} path - The endpoint path to append to the base URL.\n     * @param {Object} data - Optional data to send with the request (e.g. request payload).\n     * @param {string?} token - Optional authorization token for authenticated requests.\n     *\n     * @return {Promise} - Promise representing the AJAX request.\n     */\n    callJobs(method, path, data, token) {\n      const host = _environment.default.APP.serverJobsUrl;\n      const url = `${host}/${path}`;\n      return this.ajax[method](url, data, token);\n    },\n    /**\n     * Calls the specified outer method using the provided parameters.\n     *\n     * @param {'GET'|'POST'|'PUT'|'PATCH'|'DELETE'} method - The HTTP method to be used (e.g. 'GET', 'POST', 'PUT', 'DELETE').\n     * @param {string} url - The URL where the request should be sent.\n     * @param {Object} [data] - The data to be sent with the request (optional).\n     * @param {string} [token] - The authentication token to be sent with the request (optional).\n     * @param {boolean} [hasToken=false] - Specifies whether the request needs an authentication token (default: false).\n     *\n     * @return {Promise} - A Promise that will be resolved with the response from the server,\n     *                     or rejected with an error if the request fails.\n     *                     The reponse may be in any format, depending on the server implementation.\n     */\n    callOuter(method, url, data, token, hasToken = false) {\n      return this.ajax[method](url, data, token, hasToken);\n    },\n    // getFromHosting(method, paths, data, token) {\n    //   let url = this.get('hostingHost')\n    //   let hasToken = false\n    //   if (CONFIG.environment === 'development') {\n    //     hasToken = true\n    //   }\n\n    //   const promises = R.map(path => {\n    //     if (path) {\n    //       url += `/${path}`\n    //     }\n\n    //     this.get('ajax')._ajax('GET', url, { data, token, hasToken })\n    //   })(paths)\n    //   return all(promises)\n    // },\n\n    postFormData(path, data, token) {\n      const url = this.host + `/${path}`;\n      const config = {\n        contentType: false,\n        processData: false\n      };\n      return this.ajax._ajax('POST', url, {\n        data,\n        config,\n        token\n      });\n    },\n    getAdapter(adapterName) {\n      const adapter = Ember.getOwner(this).lookup(`adapter:${adapterName}`);\n      if (!adapter) {\n        _nventor.default.throw(`SERVER: getAdapterError. Invalid adpaterName: ${adapterName}.`);\n      }\n      return adapter;\n    }\n  });\n});","define(\"client/pods/settings/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/settings/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    emails: Ember.inject.service(),\n    resourcePath: 'api/protected/settings',\n    modelObj: _model.default,\n    idParam: '_id',\n    serialize(model) {\n      const data = this._super(model);\n      data.orderedEmailCopyTo = this.emails.splitToArray(data.orderedEmailCopyTo);\n      data.orderMessagesEmailCopyTo = this.emails.splitToArray(data.orderMessagesEmailCopyTo);\n      data.returnsEmailCopyTo = this.emails.splitToArray(data.returnsEmailCopyTo);\n      data.tw_eInvoices_notifyEmailAddress = this.emails.splitToArray(data.tw_eInvoices_notifyEmailAddress);\n      if (!data?.thirdParty?.shopDotCom?.enabled) {\n        data.thirdParty.shopDotCom = {};\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/settings/checkout-date-method/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'expectedArrivalDate',\n        label: 'expected arrival date'\n      }, {\n        value: 'expectedDispatchDate',\n        label: 'expected dispatch date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/settings/countries/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/settings/countries',\n    modelObj: _model.default,\n    idParam: 'code',\n    idPrefix: 'country'\n  });\n});","define(\"client/pods/settings/countries/districts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/settings/countries/districts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    // there are no unique attributes in districts data\n    idParam: 'postcode',\n    idPrefix: 'district'\n  });\n});","define(\"client/pods/settings/countries/districts/lists/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/settings/countries/districts/lists/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/settings/countries/districts',\n    modelObj: _model.default\n  });\n});","define(\"client/pods/settings/countries/districts/lists/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/settings/countries/districts/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/settings/countries/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/settings/countries/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/settings/countries/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/settings/countries/model\", [\"exports\", \"client/pods/base/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});","define(\"client/pods/settings/countries/regions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/settings/countries/regions/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/settings/countries/regions',\n    modelObj: _model.default,\n    idParam: 'key',\n    idPrefix: 'region'\n  });\n});","define(\"client/pods/settings/countries/regions/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    populate(data, attrs) {\n      data.hasSelected = false;\n      data.isShow = true;\n      data.districts = R.pipe(R.propOr([], 'districts'), R.map(district => {\n        return attrs.dataManager.setAsRecord({\n          adapterName: 'settings/countries/districts',\n          data: district\n        });\n      }))(data);\n      this._super(data);\n    }\n  });\n});","define(\"client/pods/settings/editor-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          group: 'general',\n          component: 'settings/settings-editor/basic-editor',\n          label: 'basic',\n          value: 'basic',\n          resource: 'api/protected/settings/sub-panels-edit/basic',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/basic-editor',\n            isEditing: 'settings/settings-editor/basic-editor',\n            isNew: 'settings/settings-editor/basic-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'general',\n          component: 'settings/settings-editor/invoices-editor',\n          label: 'settings_invoices',\n          value: 'invoices',\n          resource: 'api/protected/settings/sub-panels-edit/invoices',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/invoices-editor',\n            isEditing: 'settings/settings-editor/invoices-editor',\n            isNew: 'settings/settings-editor/invoices-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'general',\n          component: 'settings/settings-editor/documents-editor',\n          label: 'settings_documents',\n          value: 'documents',\n          resource: 'api/protected/settings/sub-panels-edit/documents',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/documents-editor',\n            isEditing: 'settings/settings-editor/documents-editor',\n            isNew: 'settings/settings-editor/documents-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'general',\n          component: 'settings/settings-editor/products-editor',\n          label: 'products',\n          value: 'products',\n          resource: 'api/protected/settings/sub-panels-edit/products',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/products-editor',\n            isEditing: 'settings/settings-editor/products-editor',\n            isNew: 'settings/settings-editor/products-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'websites',\n          component: 'settings/settings-editor/websites-editor',\n          label: 'websites',\n          value: 'websites',\n          allowedForFeatures: ['features.hasLegacyWebsitesTemplateTypes'],\n          resource: 'api/protected/settings/sub-panels-edit/websites',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/websites-editor',\n            isEditing: 'settings/settings-editor/websites-editor',\n            isNew: 'settings/settings-editor/websites-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'shop',\n          component: 'settings/settings-editor/shop-editor',\n          label: 'shop',\n          value: 'shop',\n          resource: 'api/protected/settings/sub-panels-edit/shop',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/shop-editor',\n            isEditing: 'settings/settings-editor/shop-editor',\n            isNew: 'settings/settings-editor/shop-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'shop',\n          component: 'settings/settings-editor/payments-editor',\n          label: 'settings_payments',\n          value: 'payments',\n          resource: 'api/protected/settings/sub-panels-edit/payments',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/payments-editor',\n            isEditing: 'settings/settings-editor/payments-editor',\n            isNew: 'settings/settings-editor/payments-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'shop',\n          component: 'settings/settings-editor/shipping-editor',\n          label: 'settings_shipping',\n          value: 'shipping',\n          resource: 'api/protected/settings/sub-panels-edit/shipping',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/shipping-editor',\n            isEditing: 'settings/settings-editor/shipping-editor',\n            isNew: 'settings/settings-editor/shipping-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'shop',\n          component: 'settings/settings-editor/emails-editor',\n          label: 'emails',\n          value: 'emails',\n          resource: 'api/protected/settings/sub-panels-edit/emails',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/emails-editor',\n            isEditing: 'settings/settings-editor/emails-editor',\n            isNew: 'settings/settings-editor/emails-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'shop',\n          component: 'settings/settings-editor/social-editor',\n          label: 'settings_social',\n          value: 'social',\n          resource: 'api/protected/settings/sub-panels-edit/social',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/social-editor',\n            isEditing: 'settings/settings-editor/social-editor',\n            isNew: 'settings/settings-editor/social-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'shop',\n          component: 'settings/settings-editor/3rd-party-editor',\n          label: '3rd-party',\n          value: '3rd-party',\n          resource: 'api/protected/settings/sub-panels-edit/3rd-party',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/3rd-party-editor',\n            isEditing: 'settings/settings-editor/3rd-party-editor',\n            isNew: 'settings/settings-editor/3rd-party-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }, {\n          group: 'other',\n          component: 'settings/settings-editor/beta-editor',\n          label: 'beta',\n          value: 'beta',\n          resource: 'api/protected/settings/sub-panels-edit/beta',\n          loadInstructions: {\n            isDisplay: 'settings/settings-editor/beta-editor',\n            isEditing: 'settings/settings-editor/beta-editor',\n            isNew: 'settings/settings-editor/beta-editor'\n          },\n          tabType: 'reuseSubTab',\n          _isNewTab: true\n        }]\n      };\n      customData.list = this.settings.isListItemsAllowed(customData.list);\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(res => {\n        return res?.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/settings/images-hover-filter/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 90,\n        label: '90%'\n      }, {\n        value: 100,\n        label: '100%'\n      }, {\n        value: 110,\n        label: '110%'\n      }, {\n        value: 120,\n        label: '120%'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/settings/images-hover-transform/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'none',\n        label: 'none'\n      }, {\n        value: 'smaller',\n        label: 'smaller'\n      }, {\n        value: 'bigger',\n        label: 'bigger'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/settings/model\", [\"exports\", \"client/pods/base/model\", \"client/utils/nventor\", \"client/pods/options/model\", \"client/pods/faqs/model\", \"client/pods/open-hours/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, _nventor, _model2, _model3, _model4, R, RA) {\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    populate(data, attrs) {\n      data.paymentReminderEmails = this._transformPaymentReminderEmails(data.paymentReminderEmails);\n      data.facebookPages = this._transformFacebookPages(data.facebookPages);\n      data.orderedEmailCopyTo = this.emails.joinAsString(data.orderedEmailCopyTo);\n      data.orderMessagesEmailCopyTo = this.emails.joinAsString(data.orderMessagesEmailCopyTo);\n      data.returnsEmailCopyTo = this.emails.joinAsString(data.returnsEmailCopyTo);\n      data.tw_eInvoices_notifyEmailAddress = this.emails.joinAsString(data.tw_eInvoices_notifyEmailAddress);\n      data.faqs = this._transformFaqs(data);\n      data.shopPriceFilters = this._transformRates(data.shopPriceFilters);\n      data.tw_payments_bsp = this._transformBspPayments(data);\n      data.openHours = this._transformOpenHours(data);\n      data.beta = this._transformBeta(data);\n      data.sevenElevenPickupReminderDays = this._transformSevenElevenPickupReminderDays(data.sevenElevenPickupReminderDays);\n      this._super(data, attrs);\n    },\n    defaults() {\n      const defaultData = {\n        shopAllowConvenienceStorePickup: false,\n        shopAllowConvenienceStoreBrands: [],\n        shopAllowConvenienceStoreBrandDefault: 'sevenEleven',\n        shopAllowShipping: true,\n        shopAllowPickup: false,\n        shopHideCampaignHeader: false,\n        shopPickupLocations: [],\n        shopCheckoutConvenienceStoreDescription: '',\n        shopCheckoutSummaryDescription: '',\n        shopCheckoutDetailsDescription: '',\n        shopCheckoutPaymentDescription: '',\n        successOrderDescription: '',\n        productsVariantsCodeSeparator: '-',\n        productsVariantsNameSeparator: '-',\n        openHours: {\n          hasBreakTime: false,\n          monday: {},\n          tuesday: {},\n          wednesday: {},\n          thursday: {},\n          friday: {},\n          saturday: {},\n          sunday: {}\n        },\n        blogsImagesRatio: this.get('constants.status.oneByOne'),\n        shopDispatchProcess: this.get('constants.dispatchProcess.unprepared'),\n        shopShowEnterPromoCode: true,\n        shopSortOrderDetailsByIndex: false,\n        shippingFee: '',\n        shippingFeeCondition: '',\n        shippingFeeAlwaysCharge: false,\n        faqs: [],\n        facebookPixelKeys: [],\n        googleTrackingKeys: [],\n        isAllowedLinkMember: false,\n        isCommissionsUsingAverage: true,\n        isShowTotalQty: false,\n        shopVirtualAccountAutoExpiry: false,\n        shopVirtualAccountExpiryDays: 7,\n        dispatchFiltersCount: 10,\n        salesPendingTaxMethod: this.get('constants.taxMethods.exclusive'),\n        purchasesPendingTaxMethod: this.get('constants.taxMethods.exclusive'),\n        creditCard_gmo: {\n          enabled: false\n        },\n        creditCard_tapPay: {\n          enabled: false,\n          merchantId: '',\n          partnerKey: '',\n          bank: '',\n          bankLabel: '',\n          threeDomainSecure: true,\n          isBig5Encoding: true\n        },\n        creditCard_tapPay_installments: {\n          enabled: false,\n          merchantId: '',\n          threeDomainSecure: true,\n          isBig5Encoding: true,\n          bank: '',\n          bankLabel: '',\n          allowRememberCard: '',\n          periods: '',\n          minRequiredAmountPerPeriod: '',\n          isInstallments: true\n        },\n        creditCard_tapPay_scheduledPayment: {\n          enabled: false,\n          merchantId: '',\n          threeDomainSecure: false,\n          isBig5Encoding: true,\n          bank: '',\n          bankLabel: '',\n          allowRememberCard: '',\n          periods: '',\n          isInstallments: ''\n        },\n        linePay_tapPay: {\n          enabled: false,\n          merchantId: ''\n        },\n        emails_mailgun: {\n          enabled: false,\n          apiKey: ''\n        },\n        features: {\n          allowCollectOnBehalf: false,\n          allowMasterChildCampaigns: false,\n          hasRewardForSpecificProductTags: false,\n          extensions: {\n            tw_eInvoices_print_allow_print: false,\n            tw_eInvoices_print_allow_shop: false,\n            tw_eInvoice_print_custom_block: '',\n            tw_eInvoices_print_aesKey: ''\n          },\n          hasCustomProductsDisplaySettings: false\n        },\n        tw_payments_ecPay: {\n          enabledVirtualAccount: false,\n          merchantId: '',\n          hashKey: '',\n          hashIv: '',\n          periods: '',\n          minRequiredAmountPerPeriod: ''\n        },\n        tw_eInvoice_ecPay: {\n          enabled: false,\n          hasCustom: false,\n          merchant: '',\n          merchantId: '',\n          hashKey: '',\n          hashIv: ''\n        },\n        tw_payments_payuni: {\n          enabled: false,\n          paymentMethods: [],\n          merchantId: '',\n          merchantKey: '',\n          merchantIV: '',\n          allowRememberCard: true,\n          threeDomainSecure: true\n        },\n        tw_eInvoice_systemlead: {\n          companyId: '',\n          enabled: false,\n          hasCustom: true,\n          remind: true,\n          remindCount: 100,\n          salt: ''\n        },\n        thirdParty: {\n          shopDotCom: {\n            enabled: false,\n            advertiserId: '',\n            offerId: '',\n            commissionRatio: 0,\n            antiFraudText: this.intl.t('anti-fraud text')\n          }\n        },\n        defaultWorkflowsItemsActivities: {},\n        enableAuthorizationWorkflows: false,\n        showFaqsOnFooter: false,\n        showCustomerContactsStatementAging: true,\n        showSupplierContactsStatementAging: true,\n        enableShopPriceFilter: true,\n        shopRecurringShippingFeeBehavior: this.get('constants.recurringShippingFeeBehavior.all'),\n        shopRecurringPromoCodeBehavior: this.get('constants.recurringPromoCodeBehavior.last'),\n        shopRecurringPaymentReminderTime: '',\n        shopRecurringPaymentReminderPeriod: 'days',\n        shopPriceFilters: [],\n        variantSelectorStyle: this.get('constants.variantSelectorStyle.dropdown'),\n        shippingRateMethod: 'highest',\n        shippingRateMethodFreeShipping: 'includeFreeShipping',\n        shopProductsSort: 'recommended',\n        shopProductsImagesRatio: 'oneByOne',\n        recurringAgreement: '',\n        deliveryNotePrintFormat: 'default',\n        hasHeaderForMultiplePages: true,\n        // @deprecated\n        deliveryNotePaperSize: 'A4',\n        // @deprecated\n        showUnit: 'showUnitBelowItems',\n        showProductCode: 'showCodeBelowItems',\n        productsImagesSize: 'small',\n        imagesHoverFilter: 100,\n        imagesHoverTransform: 'bigger',\n        productsNameFontSize: 'small',\n        showOnSaleTag: true,\n        onSaleTagDisplayPosition: 'left-top',\n        onSaleTagDisplayStyle: 'default',\n        productsNameLineCount: 2,\n        showItemCode: false,\n        contactTagsReportSummaryOption: 'uniqueTagsOnly',\n        // need to know what should be the default\n        defaultTransporters: {},\n        isAllowToCrawl: true,\n        cartBtnStyle: 'addToCartAndChooseOptions',\n        showImagesOnDocuments: false,\n        printDocumentsUserName: true,\n        printSalesInvoicesUserName: false,\n        printSalesInvoicesReceiverSignature: false,\n        printImagesOnDocuments: false,\n        printImagesSize: 30,\n        printReturnsDisplayForInvoice: 'showReturnsSeparately',\n        printReturnsDisplayForDispatch: 'showReturnsTogether',\n        dispatchedEmailAutoSend: false,\n        dispatchedEmailHasEstimateTransporterArrivalDate: true,\n        dispatchedEmailEstimateTransporterArrivalDaysFromDispatch: 1,\n        dispatchedEmailTransporterArrivalDateSkipWeekends: false,\n        hideTaxNumber: false,\n        showTelephoneOnDeliveryNotes: true,\n        showTaxNumberOnDeliveryNotes: true,\n        showDateOnDeliveryNotes: true,\n        showDispatchDateOnDeliveryNotes: true,\n        deliveryNoteBarcodesMode: 'showBarcodeImages',\n        showBarcodeOnDeliveryNotes: true,\n        showBarcodeOnDeliveryNotesForShopDocuments: true,\n        showBarcodeOnDeliveryNotesForNonShopDocuments: true,\n        showBarcodeNumberOnDeliveryNotes: true,\n        showBarcodeNumberOnDeliveryNotesForShopDocuments: true,\n        showBarcodeNumberOnDeliveryNotesForNonShopDocuments: true,\n        automationsShippingBehavior: 'shipWithCartItems',\n        expectedDateMethod: 'expectedArrivalDate',\n        salesInvoicesDatesColumns: ['dispatchDateZ', 'expectedPreparedDateZ', 'latestDispatchDateZ', 'expectedArrivalDateZ'],\n        dispatchSummaryType: 'collapseUnderProductName',\n        separateCustomizationByName: true,\n        showCustomizationsPriceType: 'hideIfZeroPrice',\n        showBackToShoppingButton: true,\n        hasCustomLimitedQtyPerPersonText: false,\n        customLimitedQtyPerPersonText: '',\n        productsPerRow: 3,\n        defaultInvoicesView: 'invoice',\n        defaultTCatTransporterWaybillPrintType: 'twoPerPage',\n        shopCheckoutNoteMaxCharacterLimit: 200,\n        dispatchFiltersSortBy: 'dateZ',\n        dispatchFiltersSortByDirection: 'DESC',\n        dispatchFiltersShowAdvanced: false,\n        groupDocumentsByTransporter: false,\n        hctOptions: {},\n        tw_shipping_payuni: {\n          sevenEleven: {\n            waybillsPerPageC2C: 4,\n            waybillsPerPageB2C: 6\n          }\n        },\n        autoIssueEInvoicesDaily: false,\n        autoIssueAfterDays: 0,\n        froalaImageAlignment: 'center',\n        allowAllocatePromoCodeToShipping: false,\n        websitesTemplateType: this.constants?.templateTypes?.templates,\n        payuniSendReadyForPickupAtDestination: false,\n        payuniSendReadyForPickupAtDestinationFrequency: 'once',\n        sevenElevenCustomEmailTextBehavior: 'append',\n        sevenElevenCustomEmailText: '',\n        sevenElevenPickupReminderEnabled: true,\n        sevenElevenPickupReminderDays: [1, 2, 3, 4, 5, 6, 7],\n        blackListedContactMsg: '',\n        useInventoryAsLimitedQty: false,\n        showAlmostEmptyQtyWarningForProducts: false,\n        almostEmptyQtyWarningThreshold: 0,\n        almostEmptyQtyWarningShopCustomText: '',\n        almostPreOrderQtyWarningShopCustomText: '',\n        bigOrdrBillingCompanyName: '',\n        bigOrdrBillingEmail: '',\n        bigOrdrBillingTelephone: ''\n      };\n      return defaultData;\n    },\n    _transformBeta(data = {}) {\n      const defaults = this.defaults() || {};\n      return R.pipe(R.pathOr({}, ['beta']), R.mergeDeepLeft(defaults?.beta))(data);\n    },\n    _transformOpenHours(data) {\n      const defaults = this.defaults() || {};\n      const defaultsOpenHours = defaults.openHours || {};\n      const openHours = R.propOr(defaultsOpenHours, 'openHours')(data);\n      return R.mapObjIndexed((value, key) => {\n        if (R.type(value) === 'Boolean') {\n          return value;\n        }\n        value.name = key;\n        return _nventor.default.createModel(_model4.default, value);\n      })(openHours);\n    },\n    _transformPaymentReminderEmails(emails = []) {\n      return R.map(this.newBlankPaymentReminderEmail, emails);\n    },\n    _transformSevenElevenPickupReminderDays(days) {\n      if (!RA.isArray(days)) {\n        return days;\n      }\n      if (R.equals(days, [0, 1, 2, 3, 4, 5, 6])) {\n        return [1, 2, 3, 4, 5, 6, 7];\n      }\n      return R.filter(day => day >= 1 && day <= 7, days);\n    },\n    _transformFaqs(data) {\n      return R.pipe(R.propOr([], 'faqs'), R.reject(_nventor.default.isNilOrEmpty), R.map(faq => _nventor.default.createModel(_model3.default, faq)))(data);\n    },\n    _transformRates(shopPriceFilters) {\n      if (!shopPriceFilters) {\n        return [{\n          _data: {\n            min: 0,\n            max: 99\n          }\n        }, {\n          _data: {\n            min: 100,\n            max: 499\n          }\n        }, {\n          _data: {\n            min: 500,\n            max: 999\n          }\n        }, {\n          _data: {\n            min: 1000\n          }\n        }];\n      }\n      return shopPriceFilters.map(range => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'channels/shop/campaigns/price-filter',\n          data: range\n        });\n      });\n    },\n    newBlankPaymentReminderEmail(data = {}) {\n      return _nventor.default.createModel(_model2.default, data);\n    },\n    _transformFacebookPages(data = []) {\n      return R.map(this.newFacebookPage, data);\n    },\n    createFacebookPages(data = []) {\n      const pages = this._transformFacebookPages(data);\n      this.setData('facebookPages', pages);\n    },\n    newFacebookPage(data = {}) {\n      return _nventor.default.createModel(_model2.default, data);\n    },\n    _transformBspPayments(data) {\n      const tw_payments_bsp = R.pathOr({}, ['tw_payments_bsp'])(data);\n      tw_payments_bsp.virtualAccounts = R.pipe(R.pathOr([], ['virtualAccounts']), R.map(virtualAccount => _nventor.default.createModel(_model2.default, virtualAccount)))(tw_payments_bsp);\n      return tw_payments_bsp;\n    },\n    hasCashPaymentFee: Ember.computed('_data.shopPaymentMethods.[]', function () {\n      const paymentMethods = this.getData('shopPaymentMethods');\n      if (paymentMethods.indexOf('cash') > -1) {\n        return true;\n      }\n      return false;\n    }),\n    /**\n     * Billing company name, falling back to the company name from settings when unset.\n     * @return {string} billing company name or company fallback\n     */\n    billingCompanyName: Ember.computed('_data.{bigOrdrBillingCompanyName,company}', function () {\n      return this.getData('bigOrdrBillingCompanyName', '') || this.getData('company', '') || '';\n    }),\n    /**\n     * Billing email, falling back to the from-email address from settings when unset.\n     * @return {string} billing email or emailFromAddress fallback\n     */\n    billingEmail: Ember.computed('_data.{bigOrdrBillingEmail,emailFromAddress}', function () {\n      return this.getData('bigOrdrBillingEmail', '') || this.getData('emailFromAddress', '') || '';\n    }),\n    /**\n     * Billing telephone, falling back to companyTel from settings when unset.\n     * @return {string} billing telephone or companyTel fallback\n     */\n    billingTelephone: Ember.computed('_data.{bigOrdrBillingTelephone,companyTel}', function () {\n      return this.getData('bigOrdrBillingTelephone', '') || this.getData('companyTel', '') || '';\n    }),\n    /**\n     * Plan payment method, falling back to the value nested on bigOrdrPlanData when unset.\n     * @return {string} creditCard, cashBeforeDelivery, or empty\n     */\n    billingPaymentMethod: Ember.computed('_data.{bigOrdrPlanPaymentMethod,bigOrdrPlanData.bigOrdrPlanPaymentMethod}', function () {\n      return this.getData('bigOrdrPlanPaymentMethod', '') || this._data?.bigOrdrPlanData?.bigOrdrPlanPaymentMethod || '';\n    }),\n    hasInstallments: Ember.computed('_data.{creditCard_tapPay_installments.enabled,tw_payments_ecPay.enabledCreditCardInstallments,tw_payments_payuni.enabledCreditCardInstallments}', function () {\n      if (this?._data?.creditCard_tapPay_installments?.enabled) {\n        return true;\n      }\n      if (this?._data?.tw_payments_ecPay?.enabledCreditCardInstallments) {\n        return true;\n      }\n      if (this?._data?.tw_payments_payuni?.enabledCreditCardInstallments) {\n        return true;\n      }\n      return false;\n    }),\n    openDays: Ember.computed('_data.openHours.monday.{open,close}', '_data.openHours.tuesday.{open,close}', '_data.openHours.wednesday.{open,close}', '_data.openHours.thursday.{open,close}', '_data.openHours.friday.{open,close}', '_data.openHours.saturday.{open,close}', '_data.openHours.sunday.{open,close}', function () {\n      const openHours = this._data.openHours;\n      if (openHours) {\n        return R.map(R.ifElse(R.propEq('open', 'none'), R.always({\n          hasOpeningTime: true\n        }), R.always({\n          hasOpeningTime: false\n        })))(openHours);\n      }\n    }),\n    sortedOpenHours: Ember.computed('_data.openHours.monday.{open,close,hasOpeningHours}', '_data.openHours.tuesday.{open,close,hasOpeningHours}', '_data.openHours.wednesday.{open,close,hasOpeningHours}', '_data.openHours.thursday.{open,close,hasOpeningHours}', '_data.openHours.friday.{open,close,hasOpeningHours}', '_data.openHours.saturday.{open,close,hasOpeningHours}', '_data.openHours.sunday.{open,close,hasOpeningHours}', function () {\n      const openHours = this._data.openHours;\n      const weekdays = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'];\n      const sortDays = R.pipe(R.toPairs, R.sortBy(R.pipe(R.head, R.indexOf(R.__, weekdays))), R.fromPairs, R.values, R.reject(day => R.type(day) === 'Boolean'));\n      return sortDays(openHours);\n    }),\n    allowPrintEInvoices: Ember.computed('_data.{tw_eInvoices_allow_print,tw_eInvoice_systemlead.enabled}', function () {\n      const twEInvoiceSystemleadEnabled = R.pathOr(false, ['_data', 'tw_eInvoice_systemlead', 'enabled'])(this);\n      const twEInvoicesAllowPrint = R.pathOr(false, ['_data', 'features', 'extensions', 'tw_eInvoices_print_allow_print'])(this);\n      return twEInvoiceSystemleadEnabled && twEInvoicesAllowPrint;\n    }),\n    setBspDefaultVirtualAccount(defaultVirtualAccountModel) {\n      const bspVirtualAccounts = R.pathOr([{}], ['_data', 'tw_payments_bsp', 'virtualAccounts'])(this);\n      R.forEach(bspVirtualAccount => {\n        if (defaultVirtualAccountModel._data.merchantId === bspVirtualAccount._data.merchantId) {\n          bspVirtualAccount.setData('enabled', true);\n          bspVirtualAccount.setData('isDefault', true);\n        } else {\n          bspVirtualAccount.setData('enabled', false);\n          bspVirtualAccount.setData('isDefault', false);\n        }\n      })(bspVirtualAccounts);\n    },\n    isShopDotComEnabled: Ember.computed('_data.thirdParty.shopDotCom.enabled', function () {\n      return R.pathOr(false, ['_data', 'thirdParty', 'shopDotCom', 'enabled'])(this);\n    }),\n    limitAdjustType: Ember.computed('_data.adjustCampaignsDetailsLimitQtyBy', function () {\n      const limitAdjustType = 'adjustTotalQty';\n      const adjustCampaignsDetailsLimitQtyBy = this._data.adjustCampaignsDetailsLimitQtyBy;\n      if (RA.isNotNilOrEmpty(adjustCampaignsDetailsLimitQtyBy)) {\n        return adjustCampaignsDetailsLimitQtyBy;\n      }\n      return limitAdjustType;\n    }),\n    linePayEnabled: Ember.computed('_data.linePay_tapPay.enabled', '_data.tw_payments_payuni.enabled', function () {\n      const isTapPayLinePayEnabled = R.pathEq(['_data', 'linePay_tapPay', 'enabled'], true)(this);\n      if (isTapPayLinePayEnabled) {\n        return true;\n      }\n      const isPayuniEnabled = R.pathEq(['_data', 'tw_payments_payuni', 'enabled'], true)(this);\n      const isPayuniLinePayEnabled = R.pipe(R.pathOr([], ['_data', 'tw_payments_payuni', 'paymentMethods']), R.includes(this.constants.paymentMethods.linePay))(this);\n      if (isPayuniEnabled && isPayuniLinePayEnabled) {\n        return true;\n      }\n      return false;\n    }),\n    applePayEnabled: Ember.computed('_data.tw_payments_payuni.enabled', function () {\n      const isPayuniEnabled = R.pathEq(['_data', 'tw_payments_payuni', 'enabled'], true)(this);\n      const isPayuniApplePayEnabled = R.pipe(R.pathOr([], ['_data', 'tw_payments_payuni', 'paymentMethods']), R.includes(this.constants.paymentMethods.applePay))(this);\n      if (isPayuniEnabled && isPayuniApplePayEnabled) {\n        return true;\n      }\n      return false;\n    }),\n    googlePayEnabled: Ember.computed('_data.tw_payments_payuni.enabled', function () {\n      const isPayuniEnabled = R.pathEq(['_data', 'tw_payments_payuni', 'enabled'], true)(this);\n      const isPayuniGooglePayEnabled = R.pipe(R.pathOr([], ['_data', 'tw_payments_payuni', 'paymentMethods']), R.includes(this.constants.paymentMethods.googlePay))();\n      if (isPayuniEnabled && isPayuniGooglePayEnabled) {\n        return true;\n      }\n      return false;\n    }),\n    allowedPaymentMethodsByProviders: Ember.computed('_data.tw_payments_payuni.enabled', '_data.linePay_tapPay.enabled', function () {\n      const allowedPaymentMethods = new Set();\n\n      // Always add cash to allowPaymentMethods\n      allowedPaymentMethods.add(this.constants.paymentMethods.cash);\n      allowedPaymentMethods.add(this.constants.paymentMethods.cashBeforeDelivery);\n\n      /**\n       * PayUni\n       */\n      const isPayuniEnabled = R.pathEq(['_data', 'tw_payments_payuni', 'enabled'], true)(this);\n      if (isPayuniEnabled) {\n        const payuniPaymentMethods = R.pathOr([], ['_data', 'tw_payments_payuni', 'paymentMethods'])(this);\n        payuniPaymentMethods.forEach(paymentMethod => {\n          if (paymentMethod === 'virtualAccount') {\n            allowedPaymentMethods.add(this.constants.paymentMethods.cashBeforeDelivery);\n            return;\n          }\n          allowedPaymentMethods.add(paymentMethod);\n        });\n      }\n\n      /**\n       * TapPay\n       */\n      const isTapPayLinePayEnabled = R.pathEq(['_data', 'linePay_tapPay', 'enabled'], true)(this);\n      if (isTapPayLinePayEnabled) {\n        allowedPaymentMethods.add(this.constants.paymentMethods.linePay);\n      }\n      const isTapPayCreditCardEnabled = R.pathEq(['_data', 'creditCard_tapPay', 'enabled'], true)(this);\n      const isTapPayCreditCardInstallmentsEnabled = R.pathEq(['_data', 'creditCard_tapPay_installments', 'enabled'], true)(this);\n      const isTapPayCreditCardScheduledPaymentEnabled = R.pathEq(['_data', 'creditCard_tapPay_scheduledPayment', 'enabled'], true)(this);\n      if (isTapPayCreditCardEnabled || isTapPayCreditCardInstallmentsEnabled || isTapPayCreditCardScheduledPaymentEnabled) {\n        allowedPaymentMethods.add(this.constants.paymentMethods.creditCard);\n      }\n\n      /**\n       * EcPay\n       */\n      const isEcPayEnabled = R.pathEq(['_data', 'tw_payments_ecPay', 'enabled'], true)(this);\n      if (isEcPayEnabled) {\n        const isEcPayCreditCardEnabled = R.pathEq(['_data', 'tw_payments_ecPay', 'enabledCreditCard'], true)(this);\n        if (isEcPayCreditCardEnabled) {\n          allowedPaymentMethods.add(this.constants.paymentMethods.creditCard);\n        }\n        const isEcPayVirtualAccountEnabled = R.pathEq(['_data', 'tw_payments_ecPay', 'enabledVirtualAccount'], true)(this);\n        if (isEcPayVirtualAccountEnabled) {\n          allowedPaymentMethods.add(this.constants.paymentMethods.cashBeforeDelivery);\n        }\n      }\n\n      /**\n       * BSP\n       */\n      const isBspEnabled = R.pathEq(['_data', 'tw_payments_bsp', 'enabled'], true)(this);\n      const isBspAnyVirtualAccountEnabled = R.pipe(R.pathOr([], ['_data', 'tw_payments_bsp', 'virtualAccounts']), R.find(R.pathEq(['enabled'], true)), RA.isNotNilOrEmpty)(this);\n      if (isBspEnabled && isBspAnyVirtualAccountEnabled) {\n        allowedPaymentMethods.add(this.constants.paymentMethods.cashBeforeDelivery);\n      }\n\n      /**\n       * UBOT\n       */\n      const isUbotAnyVirtualAccountEnabled = R.pipe(R.pathOr([], ['_data', 'tw_payments_ubot', 'virtualAccounts']), R.find(R.pathEq(['enabled'], true)), RA.isNotNilOrEmpty)(this);\n      if (isUbotAnyVirtualAccountEnabled) {\n        allowedPaymentMethods.add(this.constants.paymentMethods.cashBeforeDelivery);\n      }\n\n      /**\n       * ESUN\n       */\n      const isESunAnyVirtualAccountEnabled = R.pipe(R.pathOr([], ['_data', 'tw_payments_eSun', 'virtualAccounts']), R.find(R.pathEq(['enabled'], true)), RA.isNotNilOrEmpty)(this);\n      if (isESunAnyVirtualAccountEnabled) {\n        allowedPaymentMethods.add(this.constants.paymentMethods.cashBeforeDelivery);\n      }\n      return Array.from(allowedPaymentMethods);\n    })\n  });\n});","define(\"client/pods/settings/rounding-auto/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: '',\n        label: 'auto',\n        translate: true\n      }, {\n        value: 0,\n        label: '0'\n      }, {\n        value: 1,\n        label: '1'\n      }, {\n        value: 2,\n        label: '2'\n      }, {\n        value: 3,\n        label: '3'\n      }, {\n        value: 4,\n        label: '4'\n      }, {\n        value: 5,\n        label: '5'\n      }, {\n        value: 6,\n        label: '6'\n      }, {\n        value: 7,\n        label: '7'\n      }, {\n        value: 8,\n        label: '8'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/settings/rounding/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 0,\n        label: '0'\n      }, {\n        value: 1,\n        label: '1'\n      }, {\n        value: 2,\n        label: '2'\n      }, {\n        value: 3,\n        label: '3'\n      }, {\n        value: 4,\n        label: '4'\n      }, {\n        value: 5,\n        label: '5'\n      }, {\n        value: 6,\n        label: '6'\n      }, {\n        value: 7,\n        label: '7'\n      }, {\n        value: 8,\n        label: '8'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/settings/sales-invoice-panel-options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @DEPRECATED ?\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'dispatchDateZ',\n        label: 'dispatch date'\n      }, {\n        value: 'expectedPreparedDateZ',\n        label: 'expected prepare date'\n      }, {\n        value: 'latestDispatchDateZ',\n        label: 'latest dispatch date'\n      }, {\n        value: 'expectedArrivalDateZ',\n        label: 'customer expected arrival date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/settings/service\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/config/environment\", \"ember-concurrency\"], function (_exports, R, RA, _environment, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _obj;\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  var _default = _exports.default = Ember.Service.extend((_dec = Ember._action, _obj = {\n    dataManager: Ember.inject.service(),\n    constants: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    storage: Ember.inject.service(),\n    config: _environment.default,\n    setupTask: (0, _emberConcurrency.task)(function* () {\n      const settingsModel = yield this.dataManager.findRecord({\n        adapterName: 'settings'\n      });\n      this.set('settingsModel', settingsModel);\n    }),\n    /**\n     * Partially updates the settings model, saving only the given data paths.\n     *\n     * The values are read off the supplied dirty settings model and applied onto a fresh dirty\n     * copy of the current settings, so unrelated edits on the supplied model are never sent.\n     *\n     * @param {Object} dirtySettings - dirty settings model holding the new values\n     * @param {string[]} dataPathsToUpdate - data paths to save, eg ['shopUrlPrefix', 'tw_eInvoice_ecPay.enabled']\n     * @returns {Object} the updated settings model\n     */\n    updatePartiallyTask: (0, _emberConcurrency.task)(function* (dirtySettings, dataPathsToUpdate = []) {\n      if (!dirtySettings || RA.isNilOrEmpty(dataPathsToUpdate)) {\n        return this.settingsModel;\n      }\n      if (!this.settingsModel) {\n        return;\n      }\n      const partialDirtySettings = this.crud.setupDirty({\n        adapterName: 'settings',\n        model: this.settingsModel\n      });\n      R.forEach(dataPath => {\n        partialDirtySettings.setData(dataPath, dirtySettings.getData(dataPath));\n      })(dataPathsToUpdate);\n      return yield this.crud.updateRecordTask.perform({\n        adapterName: 'settings',\n        model: partialDirtySettings,\n        updateProps: this.getRootPropNames(dataPathsToUpdate)\n      });\n    }).enqueue(),\n    /**\n     * dataManager picks the props to send from the top level of the serialized data,\n     * so nested paths must be reduced to their root prop name.\n     * eg ['shopUrlPrefix', 'tw_eInvoice_ecPay.enabled'] -> ['shopUrlPrefix', 'tw_eInvoice_ecPay']\n     *\n     * @param {string[]} dataPaths\n     * @returns {string[]}\n     */\n    getRootPropNames(dataPaths = []) {\n      return R.pipe(R.map(dataPath => R.head(R.split('.', dataPath))), R.uniq)(dataPaths);\n    },\n    getPodKey() {\n      const tokenData = this.storage.get('tokenData');\n      return tokenData.pod;\n    },\n    getModel() {\n      return this.settingsModel;\n    },\n    getProp(prop, defaultValue, override = {}) {\n      if (this.settingsModel) {\n        if (RA.isNotNilOrEmpty(override)) {\n          return override.getData('roundingInventoryQty', this.settingsModel.getData(prop, defaultValue));\n        }\n        return this.settingsModel.getData(prop, defaultValue);\n      }\n    },\n    // overrideWith ({ prop, override, defaultValue }) {\n    //   if (override != null) {\n    //     return override\n    //   }\n    //   return this.get('settingsModel').getData(prop, defaultValue)\n    // },\n\n    getDefaultTaxRate(taxes = []) {\n      const taxRateKey = this.getProp('taxRateKey');\n      const defaultTax = taxes.findBy('_data._key', taxRateKey);\n      if (defaultTax) {\n        return defaultTax.getData('value');\n      }\n      const firstObject = taxes.get('firstObject');\n      if (firstObject) {\n        return firstObject.getData('value') || '0';\n      }\n      return '0';\n    },\n    getDefaultLogo() {\n      return this.getProp('defaultLogo');\n    },\n    getDefaultTerms(docType, docName) {\n      docName = docName.charAt(0).toUpperCase() + docName.slice(1);\n      return this.getProp(`${docType}${docName}Terms`);\n    },\n    shouldTranslateLabel(value, translate, itemTranslate) {\n      if (translate) {\n        if (itemTranslate === true) {\n          return true;\n        }\n        if (itemTranslate === '' || itemTranslate == null) {\n          return true;\n        }\n        return itemTranslate;\n      }\n      if (itemTranslate === '' || itemTranslate == null) {\n        return false;\n      }\n      return itemTranslate;\n    },\n    roundingCurrency: Ember.computed('settingsModel._data.roundingCurrency', function () {\n      return this.getProp('roundingCurrency') || 0;\n    }),\n    roundingInventoryPrice: Ember.computed('settingsModel._data.roundingInventoryPrice', function () {\n      return this.getProp('roundingInventoryPrice') || 2;\n    }),\n    roundingInventoryQty: Ember.computed('settingsModel._data.roundingInventoryQty', function () {\n      return this.getProp('roundingInventoryQty') || 2;\n    }),\n    unroundedCurrency: 8,\n    isBetaAllowed(betaPath) {\n      if (!betaPath) {\n        return true;\n      }\n\n      // Beta toggles are strict booleans: only `true` may unlock gated UI.\n      // Missing / false / '' must hide (getData returns '' when the path is unset).\n      return this.getProp(betaPath) === true;\n    },\n    isFeatureAllowed(featurePath) {\n      if (!featurePath) {\n        return true;\n      }\n      return this.getProp(featurePath);\n    },\n    shopUrlPrefix: Ember.computed('settingsModel._data.shopUrlPrefix', function () {\n      return this.get('settingsModel._data.shopUrlPrefix');\n    }),\n    allowTwInvoicing(docType, docName) {\n      if (docType === 'sales' && docName === 'invoices') {\n        const hasTwEInvoicesFeatures = this.getProp('features.extensions.tw_eInvoices');\n        const twEInvoicesSetting = this.getProp('tw_eInvoices');\n        if (hasTwEInvoicesFeatures && twEInvoicesSetting === this.get('constants.togglesOnOff.on')) {\n          return true;\n        }\n      }\n      return false;\n    },\n    hasTwEInvoices(document) {\n      const hasTwEInvoicesFeature = this.getProp('features.extensions.tw_eInvoices');\n      if (hasTwEInvoicesFeature) {\n        const hasTwEInvoices = this.getProp('tw_eInvoices');\n        const settingsAutoPrintInvoices = this.getProp('autoPrintInvoices');\n        if (hasTwEInvoices === this.get('constants.invoicing.on')) {\n          const paymentMethodKey = document.getData('paymentMethodKey');\n          if (paymentMethodKey !== 'free') {\n            // @TODO: should change document.auotPrintInvoices to document.printInvoices\n            const isSettingsSetToAutoPrint = settingsAutoPrintInvoices === this.get('constants.invoicing.on');\n            const isDocSetToNotPrint = R.anyPass([R.equals('off')])(document.getData('autoPrintInvoices'));\n            if (isDocSetToNotPrint) {\n              return false;\n            }\n            const isDocSetToPrint = R.anyPass([R.equals('on')])(document.getData('autoPrintInvoices'));\n            if (isDocSetToPrint) {\n              return true;\n            }\n            if (isSettingsSetToAutoPrint) {\n              return true;\n            }\n          }\n        }\n      }\n      return false;\n    },\n    getDefaultEInvoiceProvider() {\n      const systemLead = this.getProp('tw_eInvoice_systemlead', {});\n      const ecPay = this.getProp('tw_eInvoice_ecPay', {});\n      if (systemLead?.enabled) {\n        return 'systemlead';\n      }\n      if (ecPay?.enabled) {\n        return 'bigOrdr';\n      }\n      return 'bigOrdr';\n    },\n    getDefaultCreditCardProvider() {\n      const tapPay = this.getProp('creditCard_tapPay', {});\n      const gmo = this.getProp('creditCard_gmo', {});\n      if (tapPay?.enabled) {\n        return 'tapPay';\n      }\n      if (gmo?.enabled) {\n        return 'bigOrdr';\n      }\n      return 'bigOrdr';\n    },\n    getDefaultVirtualAccountProvider() {\n      const eSun = this.getProp('tw_payments_eSun', {});\n      const ubot = this.getProp('tw_payments_ubot', {});\n      const bsp = this.getProp('tw_payments_bsp', {});\n      const isDefaultProvider = R.pipe(R.propOr([], 'virtualAccounts'), R.find(R.allPass([R.propEq('isDefault', true), R.propEq('enabled', true)])));\n      if (isDefaultProvider(eSun)) {\n        return 'eSun';\n      }\n      if (isDefaultProvider(bsp)) {\n        return 'bsp';\n      }\n      if (isDefaultProvider(ubot)) {\n        return 'ubot';\n      }\n      return '';\n    },\n    isListItemsAllowed(listItems) {\n      return R.filter(listItem => {\n        let allowedForFeatures = listItem.allowedForFeatures || [];\n        allowedForFeatures = RA.ensureArray(allowedForFeatures);\n        if (RA.isNotNilOrEmpty(allowedForFeatures)) {\n          const isAllowed = R.reduce((acc, featurePath) => {\n            if (acc === true) {\n              return true;\n            }\n            acc = this.isFeatureAllowed(featurePath);\n            return acc;\n          }, false)(allowedForFeatures);\n          return isAllowed;\n        }\n        let disallowedForFeatures = listItem.disallowedForFeatures || [];\n        disallowedForFeatures = RA.ensureArray(disallowedForFeatures);\n        if (RA.isNotNilOrEmpty(disallowedForFeatures)) {\n          const isAllowed = R.reduce((acc, featurePath) => {\n            if (acc === true) {\n              return true;\n            }\n            acc = this.isFeatureAllowed(featurePath);\n            return acc;\n          }, false)(disallowedForFeatures);\n          return !isAllowed;\n        }\n        return true;\n      })(listItems);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"isListItemsAllowed\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"isListItemsAllowed\"), _obj), _obj));\n});","define(\"client/pods/settings/wizard/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\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 SettingsWizardAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", false);\n    }\n    // entities: use FormEntity > context\n    // updateProps: use FormRow || FormInputRow > context\n    // (should be the same as saved data variable key)\n    findAll() {\n      const data = [{\n        component: 'settings/settings-editor/basic-editor',\n        label: 'contact info',\n        value: 'basic',\n        containerId: 'basic',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['logo', 'contactInfo'],\n        updateProps: ['logo', 'company', 'companyTel', 'companyFax', 'address', 'taxNumber', 'shopUrlPrefix'],\n        _isNewTab: true\n      },\n      // {\n      //   component: 'settings/settings-editor/basic-editor',\n      //   label: 'banking details',\n      //   value: 'bankingDetails',\n      //   containerId: 'payments',\n      //   resource: 'api/protected/settings/wizard',\n      //   tabType: 'reuseSubTab',\n      //   entities: [\n      //     'bankingDetails'\n      //   ],\n      //   updateProps: [\n      //     'bankingDetails'\n      //   ],\n      //   _isNewTab: true\n      // },\n      {\n        component: 'settings/settings-editor/basic-editor',\n        label: 'taxes',\n        value: 'taxes',\n        containerId: 'basic',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['defaultTaxRate'],\n        updateProps: ['taxRateKey'],\n        _isNewTab: true\n      }, {\n        component: 'settings/settings-editor/basic-editor',\n        label: 'emails',\n        value: 'emails',\n        containerId: 'basic',\n        resource: 'api/protected/settings/wizard',\n        tabType: 'reuseSubTab',\n        entities: ['emailSettings'],\n        updateProps: ['emailFromName', 'emailFromAddress', 'emailSignature', 'isUseCompanyEmail'],\n        _isNewTab: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  }\n  _exports.default = SettingsWizardAdapter;\n});","define(\"client/pods/shipping/delivery-times/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'noon',\n        label: 'noon'\n      }, {\n        value: 'night',\n        label: 'night'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/shipping/fee-type/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, R, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      let data = [{\n        value: 'zones',\n        label: 'zones fee'\n      }, {\n        value: 'flat',\n        label: 'flat fee'\n      }];\n      if (!this.settings.getProp('beta.zones')) {\n        data = R.drop(1, data);\n      }\n\n      // @TODO: add based on weight/volume\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/shortcuts/service\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj; // import * as R from 'ramda'\n  // import Service, { inject as service } from '@ember/service'\n  // import { action } from '@ember/object'\n  // export default Service.extend({\n  //   keysPressed: {},\n  //   alreadyTriggered: false,\n  //   @action\n  //   onKeyDown (handler, e) {\n  //     this.keysPressed[event.key] = true\n  //     // shortcuts are onKeyDown to appear more instant\n  //     if (handler && !this.alreadyTriggered) {\n  //       const key = e.key\n  //       const hasCmdOrCtrl = this.keysPressed?.Meta || this.keysPressed?.Control\n  //       const hasEnter = key === 'Enter'\n  //       if (hasCmdOrCtrl && hasEnter) {\n  //         this.set('alreadyTriggered', true)\n  //         // return handler()\n  //       }\n  //     }\n  //   },\n  //   @action\n  //   onKeyUp (handler, e) {\n  //     delete this.keysPressed[event.key]\n  //     if (handler) {\n  //       return handler()\n  //     }\n  //     this.set('alreadyTriggered', false)\n  //   }\n  // })\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  var _default = _exports.default = Ember.Service.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    keysPressed: {},\n    alreadyTriggered: false,\n    _hasAnyMatch(shortcutKeysArray, keysPressedArray) {\n      return R.reduce((acc, shortcutKeys) => {\n        if (acc) {\n          return acc;\n        }\n        const intersection = R.intersection(shortcutKeys)(keysPressedArray);\n        if (intersection.length === shortcutKeys.length) {\n          acc = true;\n        }\n        return acc;\n      }, false)(shortcutKeysArray);\n    },\n    matchByKeysPressed(shortcutsMap) {\n      const keysPressedArray = R.keys(this.keysPressed || {});\n      const matched = R.find(shortcutObj => {\n        let shortcutKeys = shortcutObj.keys;\n        if (!R.is(Array, shortcutKeys[0])) {\n          shortcutKeys = [shortcutKeys];\n        }\n\n        // shortcutKeys should always be an array of array.\n        // if a single array, make it an array of array.\n        // this allows for 1 handler to have many shortcuts\n        // shortcutKeys = [\n        //   ['key1', 'key2'], // option1\n        //   ['key1', 'key3'], // option2\n        // ]\n        return this._hasAnyMatch(shortcutKeys, keysPressedArray);\n      })(shortcutsMap);\n      return matched;\n    },\n    onKeyDown(shortcutsMap, e) {\n      this.keysPressed[e.key] = true;\n\n      // shortcuts are onKeyDown to appear more instant\n      if (!this.alreadyTriggered) {\n        const matched = this.matchByKeysPressed(shortcutsMap, this.keysPressed);\n        if (matched) {\n          e.preventDefault();\n          this.set('alreadyTriggered', true);\n          this.onKeyUp(false, e);\n          if (matched?.handler?.perform) {\n            return matched.handler.perform();\n          }\n          return matched.handler();\n        }\n      }\n    },\n    onKeyUp(handler, e) {\n      if (e.key === 'Meta') {\n        // problem with meta. it will only always trigger one key up event, even when many keys were pressed\n        this.keysPressed = {};\n      } else {\n        delete this.keysPressed[e.key];\n      }\n      if (handler) {\n        return handler();\n      }\n      this.set('alreadyTriggered', false);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"matchByKeysPressed\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"matchByKeysPressed\"), _obj), _applyDecoratedDescriptor(_obj, \"onKeyDown\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"onKeyDown\"), _obj), _applyDecoratedDescriptor(_obj, \"onKeyUp\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"onKeyUp\"), _obj), _obj));\n});","define(\"client/pods/simple-editor/lists/features/contents/panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const list = [{\n        value: 'contents',\n        label: 'contents',\n        component: 'simple-editor/page-block-editor/features/panels/contents'\n        // tabType: 'reuseSubTab',\n        // editingComponent: 'simple-editor/page-block-editor/features/contents/contents'\n      }];\n      //   {\n      //     value: 'webpages',\n      //     label: 'webpages_content',\n      //     resource: 'api/protected/products/sub-panels-display/pages',\n      //     component: 'products/panels-display/pages-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/pages-editor'\n      //   },\n      //   // @TODO: this currently does not do anything yet.\n      //   // this will work, but to complete feature, this needs to send data out on order success email\n      //   // {\n      //   //   value: 'virtual',\n      //   //   label: 'virtual_content',\n      //   //   resource: 'api/protected/products/sub-panels-display/virtual-contents',\n      //   //   component: 'products/products-editor/virtual-contents-editor',\n      //   //   editingComponent: 'products/products-editor/virtual-contents-editor',\n      //   //   tabType: 'reuseSubTab'\n      //   // },\n      //   {\n      //     value: 'seo',\n      //     label: 'seo',\n      //     resource: 'api/protected/products/sub-panels-display/seo',\n      //     component: 'products/panels-display/seo-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/seo-editor'\n      //   },\n      //   {\n      //     value: 'email',\n      //     label: 'email',\n      //     resource: 'api/protected/products/sub-panels-display/email',\n      //     component: 'products/panels-display/email-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/email-editor'\n      //   },\n      //   {\n      //     value: 'faqs',\n      //     label: 'faqs',\n      //     resource: 'api/protected/products/sub-panels-display/faqs',\n      //     component: 'products/panels-display/faqs-display',\n      //     editingComponent: 'products/products-editor/details-editor'\n      //   },\n      //   {\n      //     value: 'isSet',\n      //     label: 'product_sets',\n      //     resource: 'api/protected/products/sub-panels-display/sets',\n      //     component: 'products/panels-display/sets-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/sets-editor'\n      //   },\n      //   {\n      //     value: 'isSetWithChoices',\n      //     label: 'product_sets_with_choices',\n      //     resource: 'api/protected/products/sub-panels-display/sets-with-choices',\n      //     component: 'products/panels-display/sets-with-choices-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/sets-with-choices-editor'\n      //   },\n      //   {\n      //     value: 'hasVariants',\n      //     label: 'variants',\n      //     resource: 'api/protected/products/sub-panels-display/variants',\n      //     component: 'products/panels-display/variants-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/variants-editor'\n      //   }\n      // ]\n\n      // if (this.settings.getProp('beta.allowRecurringSchedules') && this.settings.getProp('features.allowRecurringSchedules')) {\n      //   list.pushObject(\n      //     {\n      //       value: 'recurringSchedules',\n      //       label: 'recurring schedules',\n      //       resource: 'api/protected/recurring',\n      //       component: 'products/products-editor/recurring-schedules-editor',\n      //       tabType: 'reuseSubTab',\n      //       editingComponent: 'products/products-editor/recurring-schedules-editor'\n      //     }\n      //   )\n      // }\n\n      // list.pushObject(\n      //   {\n      //     value: 'customizations',\n      //     label: 'customizations',\n      //     resource: 'api/protected/products/sub-panels-display/customizations',\n      //     component: 'products/products-editor/customizations-editor',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/customizations-editor'\n      //   }\n      // )\n\n      // list.pushObject({\n      //   value: 'customerActivity',\n      //   label: 'customer activity',\n      //   resource: 'api/protected/products/sub-panels/customer-activity',\n      //   docType: 'sales',\n      //   tabType: 'replaceSubTab',\n      //   component: 'products/panels-display/activity-display',\n      //   editingComponent: 'products/products-editor/details-editor'\n      // })\n\n      // list.pushObject({\n      //   value: 'supplierActivity',\n      //   label: 'supplier activity',\n      //   resource: 'api/protected/products/sub-panels/supplier-activity',\n      //   docType: 'purchases',\n      //   tabType: 'replaceSubTab',\n      //   component: 'products/panels-display/activity-display',\n      //   editingComponent: 'products/products-editor/details-editor'\n      // })\n\n      // list.pushObject({\n      //   value: 'activity',\n      //   label: 'activity',\n      //   resource: 'api/protected/products/sub-panels/transactions',\n      //   component: 'products/panels-display/transactions-display',\n      //   tabType: 'replaceSubTab',\n      //   editingComponent: 'products/products-editor/details-editor'\n      // })\n\n      // list.pushObject({\n      //   resource: '/api/protected/documents/data/pending',\n      //   component: 'documents/pending/tab-container',\n      //   label: 'doc-pending',\n      //   tabType: 'replaceSubTab',\n      //   docType: 'sales',\n      //   docName: 'orders'\n      //   // docType: 'consignment'\n      // })\n\n      // list.pushObject(\n      //   {\n      //     value: 'shop',\n      //     label: 'shop',\n      //     resource: 'api/protected/products/sub-panels/shop',\n      //     component: 'products/panels-display/shop-display',\n      //     tabType: 'replaceSubTab'\n      //   }\n      // )\n\n      // // const isVirtualOnly = this.settings?.isFeatureAllowed('features.isVirtualOnly')\n      // // if (isVirtualOnly) {\n      // //   const allowed = [\n      // //     'details',\n      // //     'webpages',\n      // //     'virtual',\n      // //     'seo',\n      // //     'activity'\n      // //   ]\n      // //   list = R.filter(item => {\n      // //     return R.includes(item.value)(allowed)\n      // //   })(list)\n      // // }\n\n      // const customData = {\n      //   list\n      // }\n\n      // const path = this.getFullPath({ pathName: 'findAllPath', appendPath, serverType })\n\n      // return this.ajax.POST(path, customData).then(function (res) {\n      //   return res.data || []\n      // })\n\n      return _nventor.default.resolve(list);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/page-blocks-presets/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/websites/lists/page-blocks-presets',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/simple-editor/lists/panels-container/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const list = [{\n        value: 'settings',\n        label: 'settings',\n        component: 'simple-editor/page-block-editor/base/panels-container',\n        tabType: 'reuseSubTab'\n        // editingComponent: 'simple-editor/page-block-editor/features/contents/contents'\n      }];\n      //   {\n      //     value: 'webpages',\n      //     label: 'webpages_content',\n      //     resource: 'api/protected/products/sub-panels-display/pages',\n      //     component: 'products/panels-display/pages-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/pages-editor'\n      //   },\n      //   // @TODO: this currently does not do anything yet.\n      //   // this will work, but to complete feature, this needs to send data out on order success email\n      //   // {\n      //   //   value: 'virtual',\n      //   //   label: 'virtual_content',\n      //   //   resource: 'api/protected/products/sub-panels-display/virtual-contents',\n      //   //   component: 'products/products-editor/virtual-contents-editor',\n      //   //   editingComponent: 'products/products-editor/virtual-contents-editor',\n      //   //   tabType: 'reuseSubTab'\n      //   // },\n      //   {\n      //     value: 'seo',\n      //     label: 'seo',\n      //     resource: 'api/protected/products/sub-panels-display/seo',\n      //     component: 'products/panels-display/seo-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/seo-editor'\n      //   },\n      //   {\n      //     value: 'email',\n      //     label: 'email',\n      //     resource: 'api/protected/products/sub-panels-display/email',\n      //     component: 'products/panels-display/email-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/email-editor'\n      //   },\n      //   {\n      //     value: 'faqs',\n      //     label: 'faqs',\n      //     resource: 'api/protected/products/sub-panels-display/faqs',\n      //     component: 'products/panels-display/faqs-display',\n      //     editingComponent: 'products/products-editor/details-editor'\n      //   },\n      //   {\n      //     value: 'isSet',\n      //     label: 'product_sets',\n      //     resource: 'api/protected/products/sub-panels-display/sets',\n      //     component: 'products/panels-display/sets-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/sets-editor'\n      //   },\n      //   {\n      //     value: 'isSetWithChoices',\n      //     label: 'product_sets_with_choices',\n      //     resource: 'api/protected/products/sub-panels-display/sets-with-choices',\n      //     component: 'products/panels-display/sets-with-choices-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/sets-with-choices-editor'\n      //   },\n      //   {\n      //     value: 'hasVariants',\n      //     label: 'variants',\n      //     resource: 'api/protected/products/sub-panels-display/variants',\n      //     component: 'products/panels-display/variants-display',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/variants-editor'\n      //   }\n      // ]\n\n      // if (this.settings.getProp('beta.allowRecurringSchedules') && this.settings.getProp('features.allowRecurringSchedules')) {\n      //   list.pushObject(\n      //     {\n      //       value: 'recurringSchedules',\n      //       label: 'recurring schedules',\n      //       resource: 'api/protected/recurring',\n      //       component: 'products/products-editor/recurring-schedules-editor',\n      //       tabType: 'reuseSubTab',\n      //       editingComponent: 'products/products-editor/recurring-schedules-editor'\n      //     }\n      //   )\n      // }\n\n      // list.pushObject(\n      //   {\n      //     value: 'customizations',\n      //     label: 'customizations',\n      //     resource: 'api/protected/products/sub-panels-display/customizations',\n      //     component: 'products/products-editor/customizations-editor',\n      //     tabType: 'reuseSubTab',\n      //     editingComponent: 'products/products-editor/customizations-editor'\n      //   }\n      // )\n\n      // list.pushObject({\n      //   value: 'customerActivity',\n      //   label: 'customer activity',\n      //   resource: 'api/protected/products/sub-panels/customer-activity',\n      //   docType: 'sales',\n      //   tabType: 'replaceSubTab',\n      //   component: 'products/panels-display/activity-display',\n      //   editingComponent: 'products/products-editor/details-editor'\n      // })\n\n      // list.pushObject({\n      //   value: 'supplierActivity',\n      //   label: 'supplier activity',\n      //   resource: 'api/protected/products/sub-panels/supplier-activity',\n      //   docType: 'purchases',\n      //   tabType: 'replaceSubTab',\n      //   component: 'products/panels-display/activity-display',\n      //   editingComponent: 'products/products-editor/details-editor'\n      // })\n\n      // list.pushObject({\n      //   value: 'activity',\n      //   label: 'activity',\n      //   resource: 'api/protected/products/sub-panels/transactions',\n      //   component: 'products/panels-display/transactions-display',\n      //   tabType: 'replaceSubTab',\n      //   editingComponent: 'products/products-editor/details-editor'\n      // })\n\n      // list.pushObject({\n      //   resource: '/api/protected/documents/data/pending',\n      //   component: 'documents/pending/tab-container',\n      //   label: 'doc-pending',\n      //   tabType: 'replaceSubTab',\n      //   docType: 'sales',\n      //   docName: 'orders'\n      //   // docType: 'consignment'\n      // })\n\n      // list.pushObject(\n      //   {\n      //     value: 'shop',\n      //     label: 'shop',\n      //     resource: 'api/protected/products/sub-panels/shop',\n      //     component: 'products/panels-display/shop-display',\n      //     tabType: 'replaceSubTab'\n      //   }\n      // )\n\n      // // const isVirtualOnly = this.settings?.isFeatureAllowed('features.isVirtualOnly')\n      // // if (isVirtualOnly) {\n      // //   const allowed = [\n      // //     'details',\n      // //     'webpages',\n      // //     'virtual',\n      // //     'seo',\n      // //     'activity'\n      // //   ]\n      // //   list = R.filter(item => {\n      // //     return R.includes(item.value)(allowed)\n      // //   })(list)\n      // // }\n\n      // const customData = {\n      //   list\n      // }\n\n      // const path = this.getFullPath({ pathName: 'findAllPath', appendPath, serverType })\n\n      // return this.ajax.POST(path, customData).then(function (res) {\n      //   return res.data || []\n      // })\n\n      return _nventor.default.resolve(list);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/align-vertical/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: `align_${this.constants.alignmentVertical.top}`,\n        value: this.constants.alignmentVertical.top\n      }, {\n        label: `align_${this.constants.alignmentVertical.center}`,\n        value: this.constants.alignmentVertical.center\n      }, {\n        label: `align_${this.constants.alignmentVertical.bottom}`,\n        value: this.constants.alignmentVertical.bottom\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/align/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: `align_${this.constants.alignment.left}`,\n        value: this.constants.alignment.left\n      }, {\n        label: `align_${this.constants.alignment.center}`,\n        value: this.constants.alignment.center\n      }, {\n        label: `align_${this.constants.alignment.right}`,\n        value: this.constants.alignment.right\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/animations-count/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    intl: Ember.inject.service(),\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: '1',\n        value: '1'\n      }, {\n        label: '2',\n        value: '2'\n      }, {\n        label: '3',\n        value: '3'\n      }, {\n        label: this.intl.t('infinite'),\n        value: 'infinite'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/animations-duration/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'fast',\n        value: 'fast'\n      }, {\n        label: 'medium',\n        value: 'medium'\n      }, {\n        label: 'slow',\n        value: 'slow'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/animations/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'none',\n        value: ''\n      }, {\n        label: 'fadeIn',\n        value: 'fadeIn',\n        type: 'transitionIn'\n      }, {\n        label: 'blurIn',\n        value: 'blurIn',\n        type: 'transitionIn'\n      }, {\n        label: 'zoomIn',\n        value: 'zoomIn',\n        type: 'transitionIn'\n      }, {\n        label: 'slideInDown',\n        value: 'slideInDown',\n        type: 'transitionIn'\n      }, {\n        label: 'slideInUp',\n        value: 'slideInUp',\n        type: 'transitionIn'\n      }, {\n        label: 'rotateIn',\n        value: 'rotateIn',\n        type: 'transitionIn'\n      },\n      // {\n      //   label: 'rotate',\n      //   value: 'rotate',\n      //   type: 'animation'\n      // },\n      {\n        label: 'flash',\n        value: 'flash',\n        type: 'animation'\n      }, {\n        label: 'pulse',\n        value: 'pulse',\n        type: 'animation'\n      }, {\n        label: 'bounce',\n        value: 'bounce',\n        type: 'animation'\n      }, {\n        label: 'shakeX',\n        value: 'shakeX',\n        type: 'animation'\n      }, {\n        label: 'shakeY',\n        value: 'shakeY',\n        type: 'animation'\n      }, {\n        label: 'swing',\n        value: 'swing',\n        type: 'animation'\n      }, {\n        label: 'tada',\n        value: 'tada',\n        type: 'animation'\n      }, {\n        label: 'wobble',\n        value: 'wobble',\n        type: 'animation'\n      }, {\n        label: 'jello',\n        value: 'jello',\n        type: 'animation'\n      }, {\n        label: 'heartbeat',\n        value: 'heartbeat',\n        type: 'animation'\n      }, {\n        label: 'typing',\n        value: 'typing',\n        type: 'animation'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/blogs-sorting/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'index',\n        value: 'index'\n      }, {\n        label: 'created date',\n        value: 'timestampZ'\n      }, {\n        label: 'updated date',\n        value: 'timestampZ_update'\n      }, {\n        label: 'custom date display',\n        value: 'customDateZDisplay'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/border-radius/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.sizes.none,\n        value: this.constants.sizes.none\n      }, {\n        label: this.constants.sizes.small,\n        value: this.constants.sizes.small\n      }, {\n        label: this.constants.sizes.medium,\n        value: this.constants.sizes.medium\n      }, {\n        label: this.constants.sizes.large,\n        value: this.constants.sizes.large\n      }, {\n        label: this.constants.sizes.xLarge,\n        value: this.constants.sizes.xLarge\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/border-style/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'border_none',\n        value: 'none'\n      }, {\n        label: 'border_solid',\n        value: 'solid'\n      }, {\n        label: 'border_dashed',\n        value: 'dashed'\n      }, {\n        label: 'border_dotted',\n        value: 'dotted'\n      }, {\n        label: 'border_double',\n        value: 'double'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/border-width/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: '1px',\n        value: '1px'\n      }, {\n        label: '2px',\n        value: '2px'\n      }, {\n        label: '3px',\n        value: '3px'\n        // },\n        // {\n        //   label: '4px',\n        //   value: '4px'\n        // },\n        // {\n        //   label: '5px',\n        //   value: 5\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/buttons-display-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'small',\n        label: 'small'\n      }, {\n        value: 'medium',\n        label: 'medium'\n      }, {\n        value: 'large',\n        label: 'large'\n      }, {\n        value: 'full-width',\n        label: 'fullWidth'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/buttons-display-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.buttonsDisplayStyles.vertical,\n        value: this.constants.buttonsDisplayStyles.vertical\n      }, {\n        label: this.constants.buttonsDisplayStyles.horizontal,\n        value: this.constants.buttonsDisplayStyles.horizontal\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/buttons-images-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.buttonImagesOptions.none,\n        value: this.constants.buttonImagesOptions.none\n      }, {\n        label: this.constants.buttonImagesOptions.left,\n        value: this.constants.buttonImagesOptions.left\n      }, {\n        label: this.constants.buttonImagesOptions.right,\n        value: this.constants.buttonImagesOptions.right\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/buttons-images-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.buttonImagesTypes.icon,\n        value: this.constants.buttonImagesTypes.icon\n      }, {\n        label: this.constants.buttonImagesTypes.image,\n        value: this.constants.buttonImagesTypes.image\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/colors-options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: `colorOptions_${this.constants.colorOptions.solid}`,\n        value: this.constants.colorOptions.solid\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/colors/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'black',\n        color: '#0A0A0A'\n      }, {\n        label: 'white',\n        color: '#fefefe'\n      }, {\n        label: 'gray',\n        color: '#8d8d8d'\n      }, {\n        label: 'red',\n        color: '#c24219'\n      }, {\n        label: 'green',\n        color: '#3da33d'\n      }, {\n        label: 'blue',\n        color: '#256ed1'\n      }, {\n        label: 'yellow',\n        color: '#ffec3d'\n      }, {\n        label: 'orange',\n        color: '#CC8400'\n      }, {\n        label: 'purple',\n        color: '#660066'\n      }, {\n        label: 'brown',\n        color: '#8B4513'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/container-margin-options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'top and bottom margin',\n        value: 'topAndBottom'\n      }, {\n        label: 'custom',\n        value: 'custom'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/container-padding-options/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'all padding',\n        value: 'all'\n      }, {\n        label: 'custom',\n        value: 'custom'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/container-width/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'default',\n        value: 'default'\n      }, {\n        label: this.constants.sizes.fullWidth,\n        value: this.constants.sizes.fullWidth\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/display-by/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.displayBy.tags,\n        value: this.constants.displayBy.tags\n      }, {\n        label: this.constants.displayBy.items,\n        value: this.constants.displayBy.items\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/display-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.productsDisplayStyles.slider,\n        value: this.constants.productsDisplayStyles.slider\n      }, {\n        label: this.constants.productsDisplayStyles.grid,\n        value: this.constants.productsDisplayStyles.grid\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/features-content-display-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"ramda-adjunct\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.featuresContentDisplayStyles.textOnImageOne,\n        value: this.constants.featuresContentDisplayStyles.textOnImageOne,\n        editingComponent: 'simple-editor/page-block-editor/features/contents/text-on-image-one',\n        isAllowedFor: ['slider', 'grid', 'story']\n      }, {\n        label: this.constants.featuresContentDisplayStyles.textOnImageTwo,\n        value: this.constants.featuresContentDisplayStyles.textOnImageTwo,\n        editingComponent: 'simple-editor/page-block-editor/features/contents/text-on-image-two',\n        isAllowedFor: ['slider', 'grid', 'story']\n      }, {\n        label: this.constants.featuresContentDisplayStyles.textAndImageSplitOne,\n        value: this.constants.featuresContentDisplayStyles.textAndImageSplitOne,\n        editingComponent: 'simple-editor/page-block-editor/features/contents/text-and-image-split-one',\n        isAllowedFor: ['grid']\n      }, {\n        label: this.constants.featuresContentDisplayStyles.topDownOne,\n        value: this.constants.featuresContentDisplayStyles.topDownOne,\n        editingComponent: 'simple-editor/page-block-editor/features/contents/top-down-one',\n        isAllowedFor: ['grid']\n      }];\n\n      // data = RA.mapIndexed((option, index) => {\n      //   // option.label = index + 1\n      //   return option\n      // })(data)\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/features-display-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"ramda-adjunct\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.featuresDisplayStyles.slider,\n        value: this.constants.featuresDisplayStyles.slider\n      }, {\n        label: this.constants.featuresDisplayStyles.grid,\n        value: this.constants.featuresDisplayStyles.grid\n      }, {\n        label: this.constants.featuresDisplayStyles.story,\n        value: this.constants.featuresDisplayStyles.story\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/font-family/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const DEFAULT_FONTS = [{\n    label: \"browser default\",\n    isTranslate: true,\n    value: \"\"\n  }, {\n    label: \"Arial\",\n    value: \"Arial, Helvetica, sans-serif\"\n  }, {\n    label: \"Courier New\",\n    value: \"'Courier New', Courier, monospace\"\n  }, {\n    label: \"Georgia\",\n    value: \"Georgia, serif\"\n  }, {\n    label: \"Helvetica\",\n    value: \"'Helvetica Neue', Helvetica, Arial, sans-serif\"\n  }, {\n    label: \"Impact\",\n    value: \"Impact, Charcoal, sans-serif\"\n  }, {\n    label: \"Lucida Console\",\n    value: \"'Lucida Console', Monaco, monospace\"\n  }, {\n    label: \"Lucida Grande\",\n    value: \"'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Geneva, Verdana, sans-serif\"\n  }, {\n    label: \"Palatino Linotype\",\n    value: \"'Palatino Linotype', 'Book Antiqua', Palatino, serif\"\n  }, {\n    label: \"Tahoma\",\n    value: \"Tahoma, Geneva, sans-serif\"\n  }, {\n    label: \"Times New Roman\",\n    value: \"'Times New Roman', Times, serif\"\n  }, {\n    label: \"Trebuchet MS\",\n    value: \"'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif\"\n  }, {\n    label: \"Verdana\",\n    value: \"Verdana, Geneva, sans-serif\"\n  }];\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    settings: Ember.inject.service(),\n    simpleEditorService: Ember.inject.service('simple-editor'),\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    async findAll() {\n      const customFonts = await this.simpleEditorService.getCustomFontsTask.perform();\n      return _nventor.default.resolve(this.mergeFonts(DEFAULT_FONTS, customFonts));\n    },\n    mergeFonts(defaultFonts, customFonts) {\n      const fontsByValue = new Map();\n      for (const font of [...defaultFonts, ...customFonts]) {\n        fontsByValue.set(font.value, font);\n      }\n      return Array.from(fontsByValue.values());\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/font-sizes-basic/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 12,\n        value: 12\n      }, {\n        label: 14,\n        value: 14\n      }, {\n        label: 18,\n        value: 18\n      }, {\n        label: 22,\n        value: 22\n      }, {\n        label: 26,\n        value: 26\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/font-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: `font_style_${this.constants.fontStyles.bold}`,\n        value: this.constants.fontStyles.bold\n      }, {\n        label: `font_style_${this.constants.fontStyles.italic}`,\n        value: this.constants.fontStyles.italic\n      }, {\n        label: `font_style_${this.constants.fontStyles.underline}`,\n        value: this.constants.fontStyles.underline\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/grid-align-vertical/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: `align_${this.constants.alignmentVertical.top}`,\n        value: this.constants.alignmentVertical.top\n      }, {\n        label: `align_${this.constants.alignmentVertical.center}`,\n        value: this.constants.alignmentVertical.center\n      }, {\n        label: `align_${this.constants.alignmentVertical.bottom}`,\n        value: this.constants.alignmentVertical.bottom\n      }, {\n        label: `align_${this.constants.alignmentVertical.equalHeights}`,\n        value: this.constants.alignmentVertical.equalHeights\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/grid-row-items/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: '3',\n        value: 3\n      }, {\n        label: '4',\n        value: 4\n      }, {\n        label: '5',\n        value: 5\n      }, {\n        label: '6',\n        value: 6\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/image-sizes-custom/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.sizes.small,\n        value: this.constants.sizes.small\n      }, {\n        label: this.constants.sizes.medium,\n        value: this.constants.sizes.medium\n      }, {\n        label: this.constants.sizes.large,\n        value: this.constants.sizes.large\n      }, {\n        label: this.constants.sizes.xLarge,\n        value: this.constants.sizes.xLarge\n      }, {\n        label: this.constants.sizes.fullWidth,\n        value: this.constants.sizes.fullWidth\n      }, {\n        label: this.constants.sizes.custom,\n        value: this.constants.sizes.custom\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/image-sizes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.sizes.small,\n        value: this.constants.sizes.small\n      }, {\n        label: this.constants.sizes.medium,\n        value: this.constants.sizes.medium\n      }, {\n        label: this.constants.sizes.large,\n        value: this.constants.sizes.large\n      }, {\n        label: this.constants.sizes.xLarge,\n        value: this.constants.sizes.xLarge\n      }, {\n        label: this.constants.sizes.fullWidth,\n        value: this.constants.sizes.fullWidth\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-display-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.imagesDisplayStyles.slider,\n        value: this.constants.imagesDisplayStyles.slider\n      }, {\n        label: `images_${this.constants.imagesDisplayStyles.grid}`,\n        value: this.constants.imagesDisplayStyles.grid\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-grid-columns-gaps/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'none',\n        value: 'none'\n      }, {\n        label: 'small',\n        value: 'small'\n      }, {\n        label: 'medium',\n        value: 'medium'\n      }, {\n        label: 'large',\n        value: 'large'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-grid-columns/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: '1',\n        value: 1\n      }, {\n        label: '2',\n        value: 2\n      }, {\n        label: '3',\n        value: 3\n      }, {\n        label: '4',\n        value: 4\n      }, {\n        label: '5',\n        value: 5\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-grid-style/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'ratio_original',\n        value: 'original'\n      }, {\n        label: 'oneByOne',\n        value: 'square'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-slider-arrows-position/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'insideImage',\n        value: this.constants.imagesSliderElementPosition.inside\n      }, {\n        label: 'outsideImage',\n        value: this.constants.imagesSliderElementPosition.outside\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-slider-arrows-sizes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.imagesSliderSizeOptions.small,\n        value: this.constants.imagesSliderSizeOptions.small\n      }, {\n        label: this.constants.imagesSliderSizeOptions.medium,\n        value: this.constants.imagesSliderSizeOptions.medium\n      }, {\n        label: this.constants.imagesSliderSizeOptions.large,\n        value: this.constants.imagesSliderSizeOptions.large\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-slider-autoplay-speed/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: '3s',\n        value: 3000\n      }, {\n        label: '5s',\n        value: 5000\n      }, {\n        label: '10s',\n        value: 6000\n      }, {\n        label: '15s',\n        value: 15000\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-slider-dots-position/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'insideImage',\n        value: this.constants.imagesSliderElementPosition.inside\n      }, {\n        label: 'outsideImage',\n        value: this.constants.imagesSliderElementPosition.outside\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-slider-dots-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: `slider_${this.constants.imagesSliderDotsStyles.dots}`,\n        value: this.constants.imagesSliderDotsStyles.dots\n      }, {\n        label: `slider_${this.constants.imagesSliderDotsStyles.lines}`,\n        value: this.constants.imagesSliderDotsStyles.lines\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-slider-slides-space/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'none',\n        value: 'none'\n      }, {\n        label: this.constants.imagesSliderSizeOptions.small,\n        value: this.constants.imagesSliderSizeOptions.small\n      }, {\n        label: this.constants.imagesSliderSizeOptions.medium,\n        value: this.constants.imagesSliderSizeOptions.medium\n      }, {\n        label: this.constants.imagesSliderSizeOptions.large,\n        value: this.constants.imagesSliderSizeOptions.large\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-slider-slides-to-scroll/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: '1',\n        value: 1\n      }, {\n        label: '2',\n        value: 2\n      }, {\n        label: '3',\n        value: 3\n      }, {\n        label: '4',\n        value: 4\n      }, {\n        label: '5',\n        value: 5\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/images-slider-slides-to-show/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: '1',\n        value: 1\n      }, {\n        label: '2',\n        value: 2\n      }, {\n        label: '3',\n        value: 3\n      }, {\n        label: '4',\n        value: 4\n      }, {\n        label: '5',\n        value: 5\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/interaction-methods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.interactionMethods.link,\n        value: this.constants.interactionMethods.link\n      }, {\n        label: this.constants.interactionMethods.button,\n        value: this.constants.interactionMethods.button\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/items-per-page/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 10,\n        label: '10'\n      }, {\n        value: 20,\n        label: '20'\n      }, {\n        value: 30,\n        label: '30'\n      }, {\n        value: 40,\n        label: '40'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/line-count/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: '1'\n      }, {\n        value: 2,\n        label: '2'\n      }, {\n        value: 3,\n        label: '3'\n      }, {\n        value: 4,\n        label: '4'\n      }, {\n        value: 5,\n        label: '5'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/margin-sizes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.sizes.none,\n        value: this.constants.sizes.none\n      }, {\n        label: this.constants.sizes.small,\n        value: this.constants.sizes.small\n      }, {\n        label: this.constants.sizes.medium,\n        value: this.constants.sizes.medium\n      }, {\n        label: this.constants.sizes.large,\n        value: this.constants.sizes.large\n      }, {\n        label: this.constants.sizes.xLarge,\n        value: this.constants.sizes.xLarge\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/order-horizontal/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: this.constants.alignment.left,\n        label: this.constants.alignment.left\n      }, {\n        label: this.constants.alignment.right,\n        value: this.constants.alignment.right\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/padding-sizes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.sizes.none,\n        value: this.constants.sizes.none\n      }, {\n        label: this.constants.sizes.small,\n        value: this.constants.sizes.small\n      }, {\n        label: this.constants.sizes.medium,\n        value: this.constants.sizes.medium\n      }, {\n        label: this.constants.sizes.large,\n        value: this.constants.sizes.large\n      }, {\n        label: this.constants.sizes.xLarge,\n        value: this.constants.sizes.xLarge\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/products-display-by/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.productsDisplayBy.tags,\n        value: this.constants.productsDisplayBy.tags\n      }, {\n        label: this.constants.productsDisplayBy.products,\n        value: this.constants.productsDisplayBy.products\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/products-display-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.productsDisplayStyles.slider,\n        value: this.constants.productsDisplayStyles.slider\n      }, {\n        label: this.constants.productsDisplayStyles.grid,\n        value: this.constants.productsDisplayStyles.grid\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/products-grid-row-items/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: '3',\n        value: 3\n      }, {\n        label: '4',\n        value: 4\n      }, {\n        label: '5',\n        value: 5\n      }, {\n        label: '6',\n        value: 6\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/products-product-per-page/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 10,\n        label: '10'\n      }, {\n        value: 20,\n        label: '20'\n      }, {\n        value: 30,\n        label: '30'\n      }, {\n        value: 40,\n        label: '40'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/sizes-units/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.sizesUnits.px,\n        value: this.constants.sizesUnits.px\n      }, {\n        label: 'percentage_sign',\n        value: this.constants.sizesUnits['%']\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/sizes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.sizes.small,\n        value: this.constants.sizes.small\n      }, {\n        label: this.constants.sizes.medium,\n        value: this.constants.sizes.medium\n      }, {\n        label: this.constants.sizes.large,\n        value: this.constants.sizes.large\n      }, {\n        label: this.constants.sizes.xLarge,\n        value: this.constants.sizes.xLarge\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/social-links-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.socialLinksTypes.instagram,\n        value: this.constants.socialLinksTypes.instagram\n      }, {\n        label: this.constants.socialLinksTypes.facebook,\n        value: this.constants.socialLinksTypes.facebook\n      }, {\n        label: this.constants.socialLinksTypes.line,\n        value: this.constants.socialLinksTypes.line\n      }, {\n        label: this.constants.socialLinksTypes.thread,\n        value: this.constants.socialLinksTypes.thread\n      }, {\n        label: this.constants.socialLinksTypes.x,\n        value: this.constants.socialLinksTypes.x\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/text-display-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: this.constants.textDisplayStyles.basic,\n        value: this.constants.textDisplayStyles.basic\n      }, {\n        label: this.constants.textDisplayStyles.advanced,\n        value: this.constants.textDisplayStyles.advanced\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/title-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: `font_style_${this.constants.fontStyles.italic}`,\n        value: this.constants.fontStyles.italic\n      }, {\n        label: `font_style_${this.constants.fontStyles.underline}`,\n        value: this.constants.fontStyles.underline\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/transparency/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: `transparency_${this.constants.transparency.none}`,\n        value: 0\n      }, {\n        label: `transparency_${this.constants.transparency.slight}`,\n        value: 25\n      }, {\n        label: `transparency_${this.constants.transparency.half}`,\n        value: 50\n      }, {\n        label: `transparency_${this.constants.transparency.very}`,\n        value: 75\n      }, {\n        label: `transparency_${this.constants.transparency.full}`,\n        value: 100\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/styling/video-display-styles/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: `videoBlockStyles_${this.constants.videosDisplayStyles.fullWidth}`,\n        value: this.constants.videosDisplayStyles.fullWidth\n      }, {\n        label: `videoBlockStyles_${this.constants.videosDisplayStyles.fixedWidth}`,\n        value: this.constants.videosDisplayStyles.fixedWidth\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/lists/templates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'publicTemplates',\n        label: 'public templates',\n        component: 'simple-editor/page-block-import/templates'\n      }, {\n        value: 'privateTemplates',\n        label: 'private templates',\n        component: 'simple-editor/page-block-import/templates'\n      }, {\n        value: 'privateShopTemplate',\n        label: 'private shop templates',\n        component: 'simple-editor/page-block-import/templates'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/simple-editor/nav-tree/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/nav-tree/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/nav-tree/model\", [\"exports\", \"client/pods/base/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, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _class;\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  const noIcon = '';\n  const chevronDown = 'fa-solid fa-chevron-down';\n  const eyeSlash = 'fas fa-eye-slash';\n  const eye = 'fas fa-eye';\n  const alignLeft = 'fa-solid fa-align-left';\n  const image = 'fa-solid fa-image';\n  const toggleOn = 'fa-solid fa-toggle-on';\n  const ellipsis = 'fas fa-link';\n  let SimpleEditorNavTree = _exports.default = (_dec = Ember.computed('synced', '_data.content.syncedComputed', '_data.label', '_data.content._data.label', '_data.content._data.hasText', '_data.content._data.textContentBlock._data.template', '_data.content._data.textContentBlock._data.title', '_data.content._data.interactionMethod', '_data.content._data.hasInteraction', '_data.content._data.link._data.linkUrl', '_data.content._data.content', '_data.content._data.image.desktop.uuid', '_data.content._data.imageAlt'), _dec2 = Ember.computed('synced', '_data.content.syncedComputed', '_data.label', '_data.content._data.label', '_data.content._data.hasText', '_data.content._data.textContentBlock._data.template', '_data.content._data.textContentBlock._data.title', '_data.content._data.interactionMethod', '_data.content._data.hasInteraction', '_data.content._data.link._data.linkUrl', '_data.content._data.content', '_data.content._data.image.desktop.uuid', '_data.content._data.imageAlt'), _dec3 = Ember.computed('_data.label', '_data.content._data.hasText', '_data.content._data.textContentBlock._data.template', '_data.content._data.textContentBlock._data.title', '_data.content._data.interactionMethod', '_data.content._data.hasInteraction', '_data.content._data.link._data.linkUrl', '_data.content._data.content', '_data.content._data.image.desktop.uuid', '_data.content._data.imageAlt'), _dec4 = Ember.computed('_data.label', '_data.content._data.hasText', '_data.content._data.textContentBlock._data.template', '_data.content._data.textContentBlock._data.title', '_data.content._data.interactionMethod', '_data.content._data.hasInteraction', '_data.content._data.link._data.linkUrl', '_data.content._data.content', '_data.content._data.image.desktop.uuid', '_data.content._data.imageAlt'), _dec5 = Ember.computed('_data.label', '_data.content._data.hasText', '_data.content._data.textContentBlock._data.template', '_data.content._data.textContentBlock._data.title', '_data.content._data.interactionMethod', '_data.content._data.hasInteraction', '_data.content._data.link._data.linkUrl', '_data.content._data.content', '_data.content._data.label', '_data.content._data.content._data.label', '_data.content._data.image.desktop.uuid', '_data.content._data.imageAlt'), _dec6 = Ember.computed('_data.label', '_data.content._data.hasText', '_data.content._data.textContentBlock._data.template', '_data.content._data.textContentBlock._data.title', '_data.content._data.interactionMethod', '_data.content._data.hasInteraction', '_data.content._data.link._data.linkUrl', '_data.content._data.content', '_data.content._data.label', '_data.content._data.content._data.label', '_data.content._data.image.desktop.uuid', '_data.content._data.imageAlt'), _dec7 = Ember.computed('_data.label', '_data.pageBlock._data.settings.displayStyle', '_data.content._data.hasText', '_data.content._data.textContentBlock._data.template', '_data.content._data.textContentBlock._data.title', '_data.content._data.interactionMethod', '_data.content._data.hasInteraction', '_data.content._data.link._data.linkUrl', '_data.content._data.content', '_data.content._data.label', '_data.content._data.content._data.label', '_data.content._data.image.desktop.uuid', '_data.content._data.imageAlt', '_data.content._data.name', '_data.content._data.type'), _dec8 = Ember.computed('_data.label', '_data.content._data.hasText', '_data.content._data.textContentBlock._data.template', '_data.content._data.textContentBlock._data.title', '_data.content._data.interactionMethod', '_data.content._data.hasInteraction', '_data.content._data.link._data.linkUrl', '_data.content._data.content', '_data.content._data.label', '_data.content._data.content._data.label', '_data.content._data.image.desktop.uuid', '_data.content._data.imageAlt'), _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _class = class SimpleEditorNavTree extends _model.default {\n    defaults() {\n      return {\n        value: '',\n        label: '',\n        component: '',\n        depth: 0,\n        index: 0,\n        icon: '',\n        content: '',\n        parentId: '',\n        tabParentId: ''\n      };\n    }\n    populate(data, attrs) {\n      super.populate(data, attrs);\n    }\n    get contentPreviewRight() {\n      const label = this._data?.label || '';\n      const content = this?._data?.content;\n      if (label === 'pageBlocks_image' && content?._data?.imageAlt) {\n        return content?._data?.imageAlt;\n      }\n      if (label === 'pageBlocks_text') {\n        if (content?._data?.textContentBlock?._data?.title) {\n          return content?._data?.textContentBlock?._data?.title;\n        }\n        if (content?._data?.textContentBlock?._data?.template) {\n          const div = document.createElement('div');\n          div.innerHTML = content?._data?.textContentBlock?._data?.template;\n          return div.innerText;\n        }\n      }\n      if (label === 'pageBlocks_links_or_buttons' && content?._data?.interactionMethod === 'link' && content?._data?.link?._data?.linkUrl) {\n        return content?._data?.link?._data?.linkUrl;\n      }\n      if (content?._data?.type === this.constants.pageBlockTypes.buttons) {\n        return content?._data?.label;\n      }\n      return '';\n    }\n    get contentPreviewLeft() {\n      const label = this._data?.label || '';\n      const content = this?._data?.content;\n      const labelWithContentPreviewLeft = [`pageBlocks_${this.constants.pageBlockTypes.features}`, 'pageBlocks_image'];\n      if (!labelWithContentPreviewLeft.includes(label)) {\n        return '';\n      }\n      if (!content?._data?.image?.desktop?.uuid) {\n        return '';\n      }\n      const img = document.createElement('img');\n      const uuid = content?._data?.image?.desktop?.uuid;\n      const width = 20;\n      img.src = `https://ucarecdn.com/${uuid}/-/scale_crop/${width}x${width}/smart/-/format/webp/-/progressive/yes/`;\n      return img.outerHTML;\n    }\n    get icon() {\n      const mainPageBlockLabels = ['settings'];\n      if (mainPageBlockLabels.includes(this?._data?.label)) {\n        return chevronDown;\n      }\n      const type = this?._data?.content?._data?.type;\n      const iconByType = {\n        [this.constants.pageBlockTypes.features]: this.iconByFeatures,\n        [this.constants.pageBlockTypes.images]: this.iconByFeatures,\n        [this.constants.pageBlockTypes.buttons]: this.iconByButtons\n      };\n      const iconByTypeFunction = iconByType[type];\n      if (iconByTypeFunction) {\n        return iconByTypeFunction(this._data?.content);\n      }\n      return noIcon;\n    }\n    get iconSvg() {\n      const type = this?._data?.content?._data?.type;\n      const iconByType = {\n        [this.constants.pageBlockTypes.buttons]: this.iconSvgByButtons\n      };\n      const iconByTypeFunction = iconByType[type];\n      if (iconByTypeFunction) {\n        return iconByTypeFunction(this._data?.content);\n      }\n      return noIcon;\n    }\n    get iconRight() {\n      const mainPageBlockLabels = ['settings', `pageBlocks_${this.constants.pageBlockTypes.features}`];\n      if (mainPageBlockLabels.includes(this?._data?.label)) {\n        return '';\n      }\n      const type = this?._data?.content?._data?.type;\n      const iconByType = {\n        [this.constants.pageBlockTypes.features]: this.iconByFeaturesWhenHasContent,\n        [this.constants.pageBlockTypes.images]: this.iconByFeaturesWhenHasContent,\n        [this.constants.pageBlockTypes.buttons]: this.iconByFeaturesWhenHasContent\n      };\n      const iconByTypeFunction = iconByType[type];\n      if (iconByTypeFunction) {\n        return iconByTypeFunction(this._data?.content);\n      }\n      return noIcon;\n    }\n    get hasLabel() {\n      const mainPageBlockLabels = ['settings', `pageBlocks_${this.constants.pageBlockTypes.features}`];\n      if (mainPageBlockLabels.includes(this?._data?.label)) {\n        return true;\n      }\n      const type = this?._data?.content?._data?.type;\n      const iconByType = {\n        [this.constants.pageBlockTypes.features]: this.hasLabelByType,\n        [this.constants.pageBlockTypes.images]: this.hasLabelByType\n      };\n      const iconByTypeFunction = iconByType[type];\n      if (iconByTypeFunction) {\n        return iconByTypeFunction(this._data?.content);\n      }\n      return false;\n    }\n    get label() {\n      const label = this._data?.label || '';\n      if (label === `pageBlocks_${this.constants.pageBlockTypes.features}`) {\n        const displayStyle = this._data?.pageBlock?._data?.settings?.displayStyle || '';\n        const index = this._data?.content?._data?.index || 0;\n        const title = `${this.intl.t(displayStyle)} ${index + 1}`;\n        const content = this._data?.content;\n        if (displayStyle === this.constants.featuresDisplayStyles.tabs) {\n          const tabHeader = content?._data?.tabHeader || '';\n          if (tabHeader) {\n            return `${title} - ${tabHeader}`;\n          }\n        }\n        const textTitle = content?._data?.textContentBlock?._data?.title || '';\n        const imageAlt = content?._data?.imageAlt || '';\n        if (textTitle) {\n          return `${title} - ${textTitle}`;\n        } else if (imageAlt) {\n          return `${title} - ${imageAlt}`;\n        }\n        return title;\n      }\n\n      // if type is tab, use name instead of label (for realtime change when editing tab name)\n      if (this._data?.content?._data?.type === this.constants.pageBlockTypes.tabs) {\n        return this._data?.content?._data?.name || '';\n      }\n      return label;\n    }\n    get translate() {\n      const label = this._data?.label || '';\n      if (label === `pageBlocks_${this.constants.pageBlockTypes.features}`) {\n        return false;\n      }\n      return true;\n    }\n    get hasContentActions() {\n      const label = this._data?.label || '';\n      if (label === `pageBlocks_${this.constants.pageBlockTypes.features}`) {\n        return true;\n      }\n      const type = this._data?.content?._data?.type ?? '';\n      if (type === this.constants.pageBlockTypes.tabs) {\n        return true;\n      }\n      return false;\n    }\n    iconByFeatures(content) {\n      const label = this._data?.label || '';\n      if (label === `pageBlocks_${this.constants.pageBlockTypes.features}` || label === 'pageBlocks_image' && content?._data?.image?.desktop?.uuid) {\n        return noIcon;\n      }\n      const iconHash = {\n        pageBlocks_text: alignLeft,\n        pageBlocks_image: image,\n        [`pageBlocks_${this.constants.pageBlockTypes.features}`]: image,\n        pageBlocks_links_or_buttons: ellipsis\n      };\n      const iconByLabel = iconHash[label];\n      return iconByLabel || noIcon;\n    }\n    iconByButtons() {\n      return toggleOn;\n    }\n    iconSvgByButtons() {\n      return `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"\" width=\"24px\" fill=\"#000000\">\n      <rect x=\"3\" y=\"10\" rx=\"3\" ry=\"3\" width=\"80%\" height=\"40%\" fill=\"rgb(225, 225, 225)\" stroke=\"rgb(215, 215, 215)\"></rect>\n      </svg>\n    `;\n    }\n    iconByFeaturesWhenHasContent(content) {\n      const label = this._data?.label || '';\n      if (label === 'pageBlocks_text' && (content?._data?.textContentBlock?._data?.template || content?._data?.textContentBlock?._data?.title)) {\n        return eye;\n      }\n      if (label === 'pageBlocks_images') {\n        return noIcon;\n      }\n      if (label === 'pageBlocks_image' && content?._data?.image?.desktop?.uuid && content?._data?.image?.tablet?.uuid && content?._data?.image?.mobile?.uuid) {\n        return eye;\n      }\n      if (label === 'pageBlocks_links_or_buttons' && content?._data?.interactionMethod === 'button' && content?._data?.buttonsPageBlock?._data?.enabled === true && content?._data?.buttonsPageBlock?._data?.contents?.length > 0) {\n        return noIcon;\n      }\n      if (label === 'pageBlocks_links_or_buttons' && content?._data?.interactionMethod === 'link' && content?._data?.link?._data?.linkUrl) {\n        return eye;\n      }\n      if (content?._data?.type === this.constants.pageBlockTypes.buttons && content?._data?.label) {\n        return eye;\n      }\n      return eyeSlash;\n    }\n    hasLabelByType(content) {\n      const label = this._data?.label || '';\n      if (label === 'pageBlocks_text' && (content?._data?.textContentBlock?._data?.template || content?._data?.textContentBlock?._data?.title)) {\n        return false;\n      }\n      if (label === 'pageBlocks_images') {\n        return false;\n      }\n      if (label === 'pageBlocks_image' && content?._data?.imageAlt) {\n        return false;\n      }\n      if (label === 'pageBlocks_links_or_buttons' && content?._data?.interactionMethod === 'link' && content?._data?.link?._data?.linkUrl) {\n        return false;\n      }\n      return true;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"contentPreviewRight\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"contentPreviewRight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"contentPreviewLeft\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"contentPreviewLeft\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"icon\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"icon\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"iconSvg\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"iconSvg\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"iconRight\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"iconRight\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasLabel\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"hasLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"label\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"translate\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"translate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"iconByFeatures\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"iconByFeatures\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"iconByButtons\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"iconByButtons\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"iconSvgByButtons\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"iconSvgByButtons\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"iconByFeaturesWhenHasContent\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"iconByFeaturesWhenHasContent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasLabelByType\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"hasLabelByType\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/websites/pages/pages-blocks',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/blogs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/blogs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/blogs/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/blogs/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/blogs/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksBlogsContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksBlogsContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {});\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/blogs/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/model\", \"ramda\"], function (_exports, _model, R) {\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 SimpleEditorPageBlocksBlogsModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _class = class SimpleEditorPageBlocksBlogsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"showPreview\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasPreviewComponent\", _descriptor3, this);\n    }\n    defaults() {\n      const _defaults = super.defaults();\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.blogs,\n        settings: {\n          style: 'style1',\n          imageRatio: 'oneByOne',\n          imageFit: this.constants.campaignProductsImageFit.scaleCrop,\n          displayStyle: this.constants.imagesDisplayStyles.slider,\n          displayBy: this.constants.productsDisplayBy.tags,\n          sortBy: this.constants.blogsSortBy.index,\n          sortDirection: 'ASC',\n          lineCountTitle: 1,\n          lineCountDescription: 1,\n          gridRowItems: 3,\n          itemsPerPage: 20,\n          tags: [],\n          keys: []\n        }\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasPreviewComponent\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/blogs/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda-adjunct\", \"ramda\"], function (_exports, _emberConcurrencyDecorators, RA, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksBlogsService = _exports.default = (_dec = Ember.inject.service, _class = class SimpleEditorPageBlocksBlogsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    *fetchByTagsTask(filters, tags) {\n      if (RA.isNilOrEmpty(filters?._data?.tags) && RA.isNilOrEmpty(tags)) {\n        return;\n      }\n      if (RA.isNotNilOrEmpty(tags)) {\n        filters.setData('tags', tags);\n      }\n      return yield this.fetchTask.perform(filters);\n    }\n    *fetchByKeysTask(filters, keys) {\n      if (RA.isNilOrEmpty(filters?._data?.keys) && RA.isNilOrEmpty(keys)) {\n        return;\n      }\n      if (RA.isNotNilOrEmpty(keys)) {\n        filters.setData('keys', keys);\n      }\n      return yield this.fetchTask.perform(filters);\n    }\n    *fetchTask(filters) {\n      const tags = filters?._data?.tags || [];\n      const keys = filters?._data?.keys || [];\n      if (tags.length === 0 && keys.length === 0) {\n        return;\n      }\n      const results = yield this.crud.searchAdvancedEnqueuedTask.perform({\n        adapterName: 'blogs',\n        filters\n      });\n      if (RA.isNotNilOrEmpty(keys)) {\n        // When fetch by keys, should sort by keys and re-index\n        const sortedResults = R.pipe(R.sortBy(R.pipe(R.path(['_data', '_key']), R.indexOf(R.__, keys))), RA.mapIndexed((blog, index) => {\n          blog.setData('index', index);\n          return blog;\n        }))(results);\n        filters.set('results', sortedResults);\n        return sortedResults;\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchByTagsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByTagsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchByKeysTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByKeysTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTask\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/buttons/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/buttons/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/buttons/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/buttons/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/buttons/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksButtonsContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksButtonsContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      const defaultLabel = this.intl.t('button');\n      return R.mergeDeepRight(_defaults, {\n        label: defaultLabel,\n        animation: '',\n        icon: '',\n        imageUid: '',\n        hasCustomStyle: false,\n        buttonStyle: 'button1',\n        buttonImageType: this.constants.buttonImagesTypes.image,\n        link: {\n          hasLink: true,\n          linkType: this.constants.websitePageLinkTypes.url,\n          linkTitle: '',\n          linkUrl: '',\n          linkResourceName: '',\n          linkResourceType: '',\n          linkResourceKey: '',\n          linkTarget: '_self'\n        }\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/buttons/model\", [\"exports\", \"ramda\", \"client/pods/simple-editor/page-blocks/model\"], function (_exports, R, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksButtonsModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksButtonsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.buttons,\n        settings: {\n          displayStyle: 'horizontal',\n          displaySize: 'medium',\n          buttonStyle: 'button1',\n          buttonImageStyle: this.constants.buttonImagesOptions.none,\n          buttonImageBorderRadius: '0px',\n          fontAlign: this.constants.alignment.center,\n          fontSize: this.constants.sizes.medium,\n          fontStyles: []\n        },\n        contents: [{\n          label: this.intl.t('button')\n        }]\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/contentModel\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/utils/nventor\"], function (_exports, R, RA, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 SimpleEditorPageBlocksContentModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _class = class SimpleEditorPageBlocksContentModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        contentId: _nventor.default.random.alphaNum(10),\n        index: 0,\n        hasContainerSchedules: false,\n        schedules: [{\n          dateStartZ: '',\n          dateEndZ: ''\n        }]\n      };\n    }\n    _transformByType({\n      type,\n      data\n    }) {\n      data.type = type;\n      const model = this.dataManager.setAsRecord({\n        adapterName: `simple-editor/page-blocks/${type}/content`,\n        data\n      });\n      return model;\n    }\n    _transformToPageBlock({\n      type,\n      data,\n      attrs = {}\n    }) {\n      data.type = type;\n      const model = this.dataManager.setAsRecord({\n        adapterName: `simple-editor/page-blocks/${type}`,\n        data,\n        attrs\n      });\n      return model;\n    }\n    _transformLinks(data) {\n      const linkData = data?.link || {};\n      return this.dataManager.setAsRecord({\n        adapterName: 'simple-editor/page-blocks/data/links',\n        data: linkData\n      });\n    }\n    _transformSchedules(data) {\n      const schedules = data?.schedules || [];\n      return R.map(schedule => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'simple-editor/page-blocks/data/schedule',\n          data: schedule\n        });\n      })(schedules);\n    }\n    populate(data, attrs) {\n      if (attrs?.isGenerateNewId) {\n        data.contentId = _nventor.default.random.alphaNum(10);\n      }\n      super.populate(data, attrs);\n\n      // if (RA.isNotNilOrEmpty(data.image)) {\n      //   data.image = this._transformByType({\n      //     type: 'images',\n      //     data: data.image\n      //   })\n      // }\n      if (RA.isNotNilOrEmpty(data.textContentBlock)) {\n        data.textContentBlock = this._transformByType({\n          type: 'texts',\n          data: data.textContentBlock\n        });\n      }\n      if (RA.isNotNilOrEmpty(data.buttonsPageBlock)) {\n        data.buttonsPageBlock = this._transformToPageBlock({\n          type: 'buttons',\n          data: data.buttonsPageBlock,\n          attrs\n        });\n      }\n      if (RA.isNotNilOrEmpty(data.schedules)) {\n        data.schedules = this._transformSchedules(data);\n      }\n      data.link = this._transformLinks(data);\n    }\n    addSchedule(schedule = {}) {\n      const schedules = this?._data?.schedules || [];\n      const scheduleModel = this.dataManager.setAsRecord({\n        adapterName: 'simple-editor/page-blocks/data/schedule',\n        data: schedule\n      });\n      schedules.pushObject(scheduleModel);\n      Ember.set(this, '_data.schedules', schedules);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"addSchedule\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"addSchedule\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/custom/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/custom/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/custom/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/custom/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/custom/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksCustomContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksCustomContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        content: '',\n        type: ''\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/custom/model\", [\"exports\", \"ramda\", \"client/pods/simple-editor/page-blocks/model\"], function (_exports, R, _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 SimpleEditorPageBlocksCustomModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _class = class SimpleEditorPageBlocksCustomModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"contentsLimit\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasPreviewComponent\", _descriptor3, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.custom,\n        settings: {},\n        contents: [{\n          contentType: 'css',\n          content: ''\n        }, {\n          contentType: 'js',\n          content: ''\n        }, {\n          contentType: 'html',\n          content: ''\n        }]\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contentsLimit\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 2;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasPreviewComponent\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/data/links/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/data/links/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/data/links/model\", [\"exports\", \"ramda\", \"client/pods/options/model\"], function (_exports, R, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksDataLinksModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksDataLinksModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        linkType: this.constants.websitePageLinkTypes.url,\n        linkTitle: '',\n        linkUrl: '',\n        linkResourceName: '',\n        linkResourceType: '',\n        linkResourceKey: '',\n        linkTarget: '_self'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/data/schedule/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/data/schedule/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/data/schedule/model\", [\"exports\", \"ramda\", \"client/pods/options/model\"], function (_exports, R, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksDataScheduleModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksDataScheduleModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        dateStartZ: '',\n        dateEndZ: ''\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/faqs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/faqs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/faqs/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/faqs/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/faqs/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksFaqsContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksFaqsContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        label: '',\n        animation: '',\n        icon: '',\n        imageUid: '',\n        hasCustomStyle: false,\n        buttonStyle: 'button1',\n        buttonImageType: this.constants.buttonImagesTypes.image,\n        link: {\n          hasLink: true,\n          linkType: this.constants.websitePageLinkTypes.url,\n          linkTitle: '',\n          linkUrl: '',\n          linkResourceName: '',\n          linkResourceType: '',\n          linkResourceKey: '',\n          linkTarget: '_self'\n        }\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/faqs/model\", [\"exports\", \"ramda\", \"client/pods/simple-editor/page-blocks/model\"], function (_exports, R, _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 SimpleEditorPageBlocksFaqsModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _class = class SimpleEditorPageBlocksFaqsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"hasPreviewComponent\", _descriptor2, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.faqs,\n        settings: {}\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasPreviewComponent\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/features/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/features/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/features/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/features/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/features/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\", \"ramda-adjunct\"], function (_exports, _contentModel, R, RA) {\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;\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 SimpleEditorPageBlocksFeaturesContentModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember.computed('_data.displayStyle'), _dec3 = Ember.computed('_data.buttonsPageBlock.synced', '_data.textContentBlock.synced', '_data.schedules.length', '_data.hasInteraction', '_data.interactionMethod', '_data.image.desktop.uuid'), _class = class SimpleEditorPageBlocksFeaturesContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      const website = this.website || {};\n      return R.mergeDeepRight(_defaults, {\n        type: 'features',\n        imageAlt: '',\n        tabHeader: '',\n        // text: '',\n        // fontSize: this.constants.sizes.large,\n        // fontColor: '#fefefe', // white\n        displayStyle: this.constants.featuresContentDisplayStyles.textOnImageOne,\n        interactionMethod: this.constants.interactionMethods.link,\n        hasBackground: false,\n        backgroundColorStyle: this.constants.colorOptions.solid,\n        backgroundColor: '#ffffff',\n        backgroundColorTransparency: 25,\n        hasText: true,\n        hasInteraction: false,\n        imagePosition: this.constants.alignment.left,\n        imageSize: this.constants.sizes.small,\n        positionHorizontal: this.constants.alignment.center,\n        positionVertical: this.constants.alignmentVertical.bottom,\n        contentAlign: this.constants.alignment.center,\n        image: {\n          desktop: {\n            uuid: 'a0dd0fec-d1fa-4ca3-bb56-47a3e6492f16',\n            imageMimeType: 'image/jpeg',\n            imageFormat: 'JPEG',\n            imageWidth: 1500,\n            imageHeight: 1125,\n            imageSequence: false,\n            imageMainColors: [[182, 178, 175], [123, 96, 68], [156, 152, 148], [40, 29, 21]]\n          },\n          tablet: {\n            uuid: 'a0dd0fec-d1fa-4ca3-bb56-47a3e6492f16',\n            imageMimeType: 'image/jpeg',\n            imageFormat: 'JPEG',\n            imageWidth: 1500,\n            imageHeight: 1125,\n            imageSequence: false,\n            imageMainColors: [[182, 178, 175], [123, 96, 68], [156, 152, 148], [40, 29, 21]]\n          },\n          mobile: {\n            uuid: 'a0dd0fec-d1fa-4ca3-bb56-47a3e6492f16',\n            imageMimeType: 'image/jpeg',\n            imageFormat: 'JPEG',\n            imageWidth: 1500,\n            imageHeight: 1125,\n            imageSequence: false,\n            imageMainColors: [[182, 178, 175], [123, 96, 68], [156, 152, 148], [40, 29, 21]]\n          }\n        },\n        textContentBlock: {\n          title: '',\n          text: '',\n          fontSize: this.constants.sizes.large,\n          fontColor: website?._data?.themeTextColor || '#0A0A0A',\n          // black\n          fontFamilyTitle: 'Arial, Helvetica, sans-serif',\n          positionHorizontal: this.constants.alignment.center,\n          positionVertical: this.constants.alignmentVertical.bottom\n        },\n        buttonsPageBlock: {\n          type: this.constants.pageBlockTypes.buttons,\n          contentsLimit: 3,\n          settings: {\n            buttonImageBorderRadius: '0px',\n            buttonImageStyle: this.constants.buttonImagesOptions.none,\n            buttonStyle: 'button1',\n            containerAnimationCount: '1',\n            containerAnimationDuration: 'medium',\n            containerAnimationType: '',\n            containerBackgroundColor: website?._data?.themeBackgroundPrimaryColor || '#fefefe',\n            containerBackgroundColorTransparency: 0,\n            containerBorderColor: website?._data?.themeBorderColor || '#0A0A0A',\n            containerBorderRadius: 'none',\n            containerBorderStyle: 'solid',\n            containerBorderWidth: '1px',\n            containerMarginVertical: 'none',\n            containerMaxWidth: 'default',\n            containerMarginOption: 'topAndBottom',\n            containerPaddingOption: 'all',\n            containerPadding: 'none',\n            displaySize: 'medium',\n            displayStyle: 'horizontal',\n            fontAlign: this.constants.alignment.left,\n            fontSize: this.constants.sizes.medium,\n            fontStyles: [],\n            hasContainerAnimation: false,\n            hasContainerBackground: false,\n            hasContainerBorder: false,\n            hasContainerSchedules: false\n          },\n          contents: []\n        },\n        link: {\n          hasLink: true,\n          linkType: this.constants.websitePageLinkTypes.url,\n          linkTitle: '',\n          linkUrl: '',\n          linkResourceName: '',\n          linkResourceType: '',\n          linkResourceKey: '',\n          linkTarget: '_self'\n        }\n      });\n    }\n    get presetPreviewComponent() {\n      return 'simple-editor/page-block-display/features/contents';\n    }\n    populate(data, attrs) {\n      const buttonsPageBlock = this?._data?.buttonsPageBlock;\n      if (RA.isNotNilOrEmpty(buttonsPageBlock)) {\n        buttonsPageBlock.set('contentsLimit', 3);\n      }\n      data.buttonsPageBlock = this._transformButtonsPageBlock(data?.buttonsPageBlock);\n      super.populate(data, attrs);\n    }\n    _transformButtonsPageBlock(buttonsPageBlock = {}) {\n      const defaultButtonsPageBlock = this.defaults().buttonsPageBlock;\n      buttonsPageBlock.settings = R.pipe(R.pathOr({}, ['settings']), R.mergeDeepWith((l, r) => r === '' ? l : r, defaultButtonsPageBlock.settings))(buttonsPageBlock);\n      return buttonsPageBlock;\n    }\n    get syncedComputed() {\n      if (\n      // this._data.hasInteraction ||\n      this._data.interactionMethod) {\n        return Math.random();\n      }\n      return Math.random();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"presetPreviewComponent\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"presetPreviewComponent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"syncedComputed\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"syncedComputed\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/features/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/model\", \"ramda\"], function (_exports, _model, R) {\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 SimpleEditorPageBlocksFeaturesModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _class = class SimpleEditorPageBlocksFeaturesModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"contentsLimit\", _descriptor2, this);\n    }\n    defaults() {\n      const website = this.website || {};\n      const _defaults = super.defaults();\n      const allDefaults = R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.features,\n        settings: {\n          displayStyle: this.constants.featuresDisplayStyles.slider,\n          sliderAutoplay: false,\n          sliderAutoplaySpeed: 5000,\n          // 5 seconds\n\n          sliderArrowsEnabled: true,\n          sliderArrowsSize: this.constants.imagesSliderSizeOptions.small,\n          sliderArrowsStyle: website?._data?.themeSliderArrowsStyle || 'circle',\n          sliderArrowsPosition: this.constants.imagesSliderElementPosition.inside,\n          sliderArrowsBorderColor: website?._data?.themeButtonBorderColor || '#fefefe',\n          sliderArrowsBackgroundColor: website?._data?.themeButtonColor || '#fefefe',\n          sliderArrowsHoverBackgroundColor: website?._data?.themeButtonHoverColor || '#ededed',\n          sliderArrowsTextColor: website?._data?.themeButtonTextColor || '#0A0A0A',\n          sliderBorderWidth: 1,\n          sliderDotsEnabled: true,\n          sliderDotsStyle: website?._data?.themeSliderDotsStyle || this.constants.imagesSliderDotsStyles.dots,\n          sliderDotsPosition: this.constants.imagesSliderElementPosition.inside,\n          slidesToShow: 1,\n          slidesToScroll: 1,\n          slidesSpacing: this.constants.imagesSliderSizeOptions.small,\n          sliderDotsSize: this.constants.imagesSliderSizeOptions.medium,\n          sliderDotsColor: website?._data?.themeButtonColor || '#ededed',\n          sliderDotsActiveColor: website?._data?.themeButtonHoverColor || '#0A0A0A',\n          gridNumberOfColumns: 1,\n          gridColumnsGap: 'medium',\n          gridAlignHorizontal: this.constants.alignment.center,\n          gridAlignVertical: this.constants.alignmentVertical.equalHeights,\n          fontAlign: this.constants.alignment.center,\n          fontColor: '#fefefe',\n          // white\n          fontFamilyTitle: 'Arial, Helvetica, sans-serif',\n          backgroundColorStyle: this.constants.colorOptions.none,\n          backgroundColor: '#fefefe' // white\n        },\n        contents: [{\n          type: this.constants.pageBlockTypes.features,\n          textContentBlock: {\n            title: '',\n            text: '',\n            fontSize: this.constants.sizes.large,\n            fontColor: website?._data?.themeTextColor || '#0A0A0A',\n            // black\n            fontFamilyTitle: 'Arial, Helvetica, sans-serif',\n            positionHorizontal: this.constants.alignment.center,\n            positionVertical: this.constants.alignmentVertical.bottom\n          },\n          buttonsPageBlock: {\n            type: this.constants.pageBlockTypes.buttons,\n            settings: {\n              displayStyle: 'horizontal',\n              displaySize: 'medium',\n              buttonStyle: 'button1',\n              buttonImageStyle: this.constants.buttonImagesOptions.none,\n              buttonImageBorderRadius: '0px',\n              fontSize: this.constants.sizes.medium,\n              fontAlign: this.constants.alignment.left,\n              fontStyles: []\n            },\n            contents: []\n          },\n          link: {\n            hasLink: true,\n            linkType: this.constants.websitePageLinkTypes.url,\n            linkTitle: '',\n            linkUrl: '',\n            linkResourceName: '',\n            linkResourceType: '',\n            linkResourceKey: '',\n            linkTarget: '_self'\n          }\n        }]\n      });\n      return allDefaults;\n    }\n    populate(data, attrs) {\n      const defaults = this.defaults();\n      const defaultSettings = defaults?.settings || {};\n      data.settings = R.pipe(R.pathOr({}, ['settings']),\n      // merge deep and ignore empty strings\n      R.mergeDeepWith((l, r) => r === '' ? l : r, defaultSettings))(data);\n      super.populate(data, attrs);\n    }\n    get message() {\n      return '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contentsLimit\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 10;\n    }\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/flows/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/flows/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/flows/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/flows/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/flows/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksFlowsContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksFlowsContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        name: '',\n        formKey: ''\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/flows/model\", [\"exports\", \"ramda\", \"client/pods/simple-editor/page-blocks/model\"], function (_exports, R, _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 SimpleEditorPageBlocksFlowsModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _class = class SimpleEditorPageBlocksFlowsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"contentsLimit\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasPreviewComponent\", _descriptor3, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.flows,\n        settings: {},\n        contents: [{\n          name: '',\n          formKey: ''\n        }]\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contentsLimit\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 5;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasPreviewComponent\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/flows/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _emberConcurrencyDecorators, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksFlowsService = _exports.default = (_dec = Ember.inject.service, _class = class SimpleEditorPageBlocksFlowsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    *fetchTask(filters) {\n      const keys = filters?._data?.keys || [];\n      if (keys.length === 0) {\n        return;\n      }\n      return yield this.crud.searchAdvancedEnqueuedTask.perform({\n        adapterName: 'flows',\n        filters\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTask\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/images/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/images/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/images/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/images/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/images/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\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;\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 SimpleEditorPageBlocksImagesContentModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember.computed('_data.buttonsPageBlock.synced', '_data.textContentBlock.synced', '_data.schedules.length', '_data.hasInteraction', '_data.interactionMethod', '_data.image.desktop.uuid'), _dec3 = Ember.computed('_data.imageAlt'), _class = class SimpleEditorPageBlocksImagesContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      const website = this.website || {};\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.images,\n        imageAlt: '',\n        // title: '',\n        // text: '',\n        // fontSize: this.constants.sizes.large,\n        // fontColor: '#fefefe', // white\n        displayStyle: this.constants.featuresContentDisplayStyles.textOnImageTwo,\n        interactionMethod: this.constants.interactionMethods.link,\n        hasBackground: false,\n        backgroundColorStyle: this.constants.colorOptions.solid,\n        backgroundColor: '#ffffff',\n        backgroundColorTransparency: 25,\n        positionHorizontal: this.constants.alignment.center,\n        positionVertical: this.constants.alignmentVertical.bottom,\n        hasText: false,\n        hasInteraction: false,\n        imageSize: this.constants.sizes.fullWidth,\n        imageSizeUnit: this.constants.sizesUnits['%'],\n        imageSizeCustom: '100',\n        imageAlign: this.constants.alignment.center,\n        image: {\n          desktop: {\n            uuid: 'a0dd0fec-d1fa-4ca3-bb56-47a3e6492f16',\n            imageMimeType: 'image/jpeg',\n            imageFormat: 'JPEG',\n            imageWidth: 1500,\n            imageHeight: 1125,\n            imageSequence: false,\n            imageMainColors: [[182, 178, 175], [123, 96, 68], [156, 152, 148], [40, 29, 21]]\n          },\n          tablet: {\n            uuid: 'a0dd0fec-d1fa-4ca3-bb56-47a3e6492f16',\n            imageMimeType: 'image/jpeg',\n            imageFormat: 'JPEG',\n            imageWidth: 1500,\n            imageHeight: 1125,\n            imageSequence: false,\n            imageMainColors: [[182, 178, 175], [123, 96, 68], [156, 152, 148], [40, 29, 21]]\n          },\n          mobile: {\n            uuid: 'a0dd0fec-d1fa-4ca3-bb56-47a3e6492f16',\n            imageMimeType: 'image/jpeg',\n            imageFormat: 'JPEG',\n            imageWidth: 1500,\n            imageHeight: 1125,\n            imageSequence: false,\n            imageMainColors: [[182, 178, 175], [123, 96, 68], [156, 152, 148], [40, 29, 21]]\n          }\n        },\n        textContentBlock: {\n          title: '',\n          text: '',\n          fontSize: this.constants.sizes.large,\n          fontColor: website?._data?.themeTextColor || '#0A0A0A',\n          // black\n          fontFamilyTitle: 'Arial, Helvetica, sans-serif',\n          positionHorizontal: this.constants.alignment.center,\n          positionVertical: this.constants.alignmentVertical.bottom\n        },\n        buttonsPageBlock: {\n          type: this.constants.pageBlockTypes.buttons,\n          settings: {\n            displayStyle: 'horizontal',\n            buttonStyle: 'button1',\n            buttonImageStyle: this.constants.buttonImagesOptions.none,\n            buttonImageBorderRadius: '0px',\n            fontSize: this.constants.sizes.medium,\n            fontAlign: this.constants.alignment.left,\n            fontStyles: []\n          },\n          contents: []\n        },\n        link: {\n          hasLink: true,\n          linkType: this.constants.websitePageLinkTypes.url,\n          linkTitle: '',\n          linkUrl: '',\n          linkResourceName: '',\n          linkResourceType: '',\n          linkResourceKey: '',\n          linkTarget: '_self'\n        }\n      });\n    }\n    populate(data, attrs) {\n      super.populate(...arguments);\n      const buttonsPageBlock = this?._data?.buttonsPageBlock;\n      if (RA.isNotNilOrEmpty(buttonsPageBlock)) {\n        buttonsPageBlock.set('contentsLimit', 3);\n      }\n    }\n    get syncedComputed() {\n      if (\n      // this._data.hasInteraction ||\n      this._data.interactionMethod) {\n        return Math.random();\n      }\n      return Math.random();\n    }\n    get label() {\n      const pageBlockType = this.constants.pageBlockTypes.images;\n      const typeLabel = this.intl.t(`pageBlocks_${pageBlockType}`);\n      const contentImageAlt = this._data?.imageAlt;\n      if (!contentImageAlt) {\n        return typeLabel;\n      }\n      return `${typeLabel} (${contentImageAlt})`;\n    }\n\n    // get hasCustomImageSizes () {\n    //   // this._data.\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"syncedComputed\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"syncedComputed\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"label\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/images/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/model\", \"ramda\"], function (_exports, _model, R) {\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;\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 SimpleEditorPageBlocksImagesModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember.computed('_data.contents.length', '_data.contents.@each.syncedComputed'), _class = class SimpleEditorPageBlocksImagesModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"contentsLimit\", _descriptor2, this);\n    }\n    defaults() {\n      const website = this.website || {};\n      const _defaults = super.defaults();\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.images,\n        settings: {\n          displayStyle: this.constants.imagesDisplayStyles.grid,\n          gridNumberOfColumns: 1,\n          gridColumnsGap: 'medium',\n          imagesGridStyle: this.constants.imagesGridStyle.original\n\n          // fontAlign: this.constants.alignment.center,\n          // fontColor: '#fefefe', // white\n          // backgroundColorStyle: this.constants.colorOptions.none,\n          // backgroundColor: '#fefefe' // white\n        },\n        contents: [{\n          type: this.constants.pageBlockTypes.images\n        }]\n      });\n    }\n    get syncedComputed() {\n      const contents = this._data?.contents || [];\n      return R.reduce((acc, content) => {\n        acc += content.syncedComputed;\n        return acc;\n      }, 0)(contents);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contentsLimit\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 24;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"syncedComputed\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"syncedComputed\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/model\", [\"exports\", \"client/pods/base/model\", \"client/utils/nventor\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, _nventor, R, RA) {\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, _obj, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3; // import * as R from 'ramda'\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 _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\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  const SimpleEditorPageBlocksBaseModel = _model.default.extend((_dec = Ember.computed('_data.settings.{hasContainerSchedules,schedules.[]}'), _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _obj = {\n    populate(data, attrs) {\n      const options = {};\n      if (attrs?.isGenerateNewId) {\n        options.isGenerateNewId = true;\n        delete attrs.isGenerateNewId;\n        data.blockId = _nventor.default.random.alphaNum(10);\n      }\n      const defaults = this.defaults();\n      const defaultSettings = defaults?.settings || {};\n      data.settings = R.pipe(R.pathOr({}, ['settings']),\n      // merge deep and ignore empty strings\n      R.mergeDeepWith((l, r) => r === '' ? l : r, defaultSettings))(data);\n      this._super(data, attrs);\n      if (data?.settings?.link) {\n        data.settings.link = this._transformLinks(data);\n      }\n      if (RA.isNotNilOrEmpty(data.settings.schedules)) {\n        data.settings.schedules = this._transformSchedules(data);\n      }\n      data.contents = this._transformContents(data, options);\n      return data;\n    },\n    get isDraggable() {\n      if (this._data?.type !== this.constants.pageBlockTypes.features) {\n        return true;\n      }\n      return false;\n    },\n    get firstSchedule() {\n      const settings = this?._data?.settings;\n      const hasContainerSchedules = settings?.hasContainerSchedules || false;\n      if (!hasContainerSchedules) {\n        return {};\n      }\n      const schedules = settings?.schedules || [];\n      if (schedules.length <= 0) {\n        return {};\n      }\n      return R.head(schedules);\n    },\n    _transformLinks(data) {\n      const linkData = data?.settings?.link || {};\n      return this.dataManager.setAsRecord({\n        adapterName: `simple-editor/page-blocks/data/links`,\n        data: linkData\n      });\n    },\n    _transformSchedules(data) {\n      const schedules = data?.settings?.schedules || [];\n      return R.map(schedule => {\n        return this.dataManager.setAsRecord({\n          adapterName: `simple-editor/page-blocks/data/schedule`,\n          data: schedule\n        });\n      })(schedules);\n    },\n    _transformContents(data, attrs = {}) {\n      const type = data?.type;\n      let index = 0;\n      return R.pipe(R.propOr([], 'contents'), R.map(contentData => {\n        contentData.index = index;\n        index = index + 1;\n        try {\n          return this._newContentModel(type, contentData, attrs);\n        } catch (error) {\n          console.error('Error creating content model', error);\n          return null;\n        }\n      }), R.reject(R.isNil))(data);\n    },\n    _newContentModel(type, contentData = {}, attrs = {}) {\n      contentData.type = type;\n      return this.websitesService.newPageBlockContentModel({\n        pageBlockContentData: contentData,\n        attrs\n      });\n    },\n    newContent(data = {}) {\n      if (data._data) {\n        data = data.serialize();\n        return this.addContent(data);\n      }\n      return this.addContent();\n    },\n    addContent(contentData = {}) {\n      const contents = this._data?.contents || [];\n      if (this.isContentLimited) {\n        return;\n      }\n      const type = this._data?.type;\n      contentData.index = contents.length;\n      const contentModel = this._newContentModel(type, contentData, {\n        isGenerateNewId: true,\n        isTriggerEditOnLoad: true\n      });\n      contents.pushObject(contentModel);\n      this.setData('contents', contents);\n      return contentModel;\n    },\n    addSchedule(schedule = {}) {\n      const schedules = this?._data?.settings?.schedules || [];\n      const scheduleModel = this.dataManager.setAsRecord({\n        adapterName: `simple-editor/page-blocks/data/schedule`,\n        data: schedule\n      });\n      schedules.pushObject(scheduleModel);\n      Ember.set(this, '_data.settings.schedules', schedules);\n    }\n  }, _applyDecoratedDescriptor(_obj, \"firstSchedule\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"firstSchedule\"), _obj), _applyDecoratedDescriptor(_obj, \"_newContentModel\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"_newContentModel\"), _obj), _applyDecoratedDescriptor(_obj, \"newContent\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"newContent\"), _obj), _applyDecoratedDescriptor(_obj, \"addContent\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"addContent\"), _obj), _applyDecoratedDescriptor(_obj, \"addSchedule\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"addSchedule\"), _obj), _obj));\n  let SimpleEditorPageBlocksModel = _exports.default = (_dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._action, _dec0 = Ember.computed('_data.type'), _dec1 = Ember.computed('_data.type'), _dec10 = Ember.computed('_data.type', '_data.settings.displayStyle'), _dec11 = Ember.computed('contentsLimit', '_data.contents.[]'), _dec12 = Ember._action, _dec13 = Ember.computed('_data.contents.length', '_data.contents.@each.syncedComputed'), _class = class SimpleEditorPageBlocksModel extends SimpleEditorPageBlocksBaseModel {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"contentsLimit\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showPreview\", _descriptor3, this);\n    }\n    defaults() {\n      const website = this.website || {};\n      return {\n        blockId: _nventor.default.random.alphaNum(10),\n        enabled: true,\n        index: 0,\n        contents: [],\n        settings: {\n          hasQuickLinks: false,\n          hasContainerSchedules: false,\n          hasContainerBackground: false,\n          containerBackgroundColorTransparency: 0,\n          containerBackgroundColor: website?._data?.themeBackgroundPrimaryColor || '#fefefe',\n          hasContainerAnimation: false,\n          containerMaxWidth: 'default',\n          containerMarginOption: 'topAndBottom',\n          containerMarginData: {\n            top: 'medium',\n            bottom: 'medium',\n            left: 'medium',\n            right: 'medium'\n          },\n          containerMarginVertical: 'medium',\n          containerPadding: 'medium',\n          containerPaddingData: {\n            top: 'medium',\n            bottom: 'medium',\n            left: 'medium',\n            right: 'medium'\n          },\n          containerPaddingOption: 'all',\n          containerAnimationType: '',\n          containerAnimationCount: '1',\n          containerAnimationDuration: 'medium',\n          hasContainerBorder: false,\n          containerBorderColor: website?._data?.themeBorderColor || '#0A0A0A',\n          containerBorderStyle: 'solid',\n          containerBorderWidth: '1px',\n          containerBorderRadius: 'none',\n          quickLink: {\n            enabled: false,\n            text: '',\n            textEnabled: true,\n            fontFamily: 'Arial, Helvetica, sans-serif',\n            fontAlign: this.constants.alignment.left,\n            fontColor: website?._data?.themeTextColor || '#0A0A0A',\n            // black\n            fontSize: this.constants.sizes.medium\n          },\n          link: {\n            hasLink: false,\n            linkType: this.constants.websitePageLinkTypes.url,\n            linkTitle: '',\n            linkUrl: '',\n            linkResourceName: '',\n            linkResourceType: '',\n            linkResourceKey: '',\n            linkTarget: '_self'\n          },\n          schedules: [{\n            dateStartZ: '',\n            dateEndZ: ''\n          }]\n        }\n      };\n    }\n    get componentForDisplay() {\n      const type = this._data?.type;\n      if (!type) {\n        console.error('No type found for page block', this);\n      }\n      return `simple-editor/page-block-display/${type}`;\n    }\n    get componentForPreview() {\n      const type = this._data?.type;\n      if (!type) {\n        console.error('No type found for page block', this);\n      }\n      return `simple-editor/page-block-preview/${type}`;\n    }\n    get componentForEdit() {\n      const type = this._data?.type;\n      if (!type) {\n        console.error('No type found for page block', this);\n      }\n      return `simple-editor/page-block-editor/${type}`;\n    }\n    get pageBlockLabel() {\n      const type = this._data?.type || '';\n      let label = this.intl.t(`pageBlocks_${type}`);\n      const displayStyle = this._data?.settings?.displayStyle || '';\n      if (displayStyle) {\n        label = `${label} (${this.intl.t(displayStyle)})`;\n      }\n      return label;\n    }\n    get isContentLimited() {\n      const contentsLimit = this.contentsLimit;\n      if (!contentsLimit) {\n        return false;\n      }\n      if (this._data?.contents?.length < contentsLimit) {\n        return false;\n      }\n      return true;\n    }\n\n    /**\n     * if contents has a display style chosen that is no longer allowed, reset it to the first allowed display style\n     * @param {*} param0\n     */\n    resetContentDisplayStyles({\n      allowedContentDisplayStyles = [],\n      disallowedContentDisplayStyles = []\n    }) {\n      const contents = this?._data?.contents || [];\n      const firstContentDisplayStyle = R.head(allowedContentDisplayStyles);\n      const fallbackDisplayStyle = firstContentDisplayStyle?._data?.value || '';\n\n      // there is nothing valid to reset to, so leave the contents as they are\n      // rather than blanking a display style the user cannot pick again\n      if (RA.isNilOrEmpty(fallbackDisplayStyle)) {\n        return;\n      }\n      const disallowedStyles = R.map(R.path(['_data', 'value']))(disallowedContentDisplayStyles);\n      R.forEach(content => {\n        const hasDisallowedDisplayStyle = R.includes(content?._data?.displayStyle)(disallowedStyles);\n        if (hasDisallowedDisplayStyle) {\n          content.setData('displayStyle', fallbackDisplayStyle);\n        }\n      })(contents);\n    }\n    get syncedComputed() {\n      const contents = this._data?.contents || [];\n      return R.reduce((acc, content) => {\n        acc += content.syncedComputed;\n        return acc;\n      }, 0)(contents);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contentsLimit\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 10;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"defaults\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"defaults\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"componentForDisplay\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"componentForDisplay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"componentForPreview\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"componentForPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"pageBlockLabel\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"pageBlockLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isContentLimited\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"isContentLimited\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetContentDisplayStyles\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"resetContentDisplayStyles\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"syncedComputed\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"syncedComputed\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/news/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/news/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/news/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/news/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/news/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksBlogsContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksBlogsContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {});\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/news/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/model\", \"ramda\"], function (_exports, _model, R) {\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 SimpleEditorPageBlocksNewsModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _class = class SimpleEditorPageBlocksNewsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"showPreview\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasPreviewComponent\", _descriptor3, this);\n    }\n    defaults() {\n      const _defaults = super.defaults();\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.news,\n        settings: {\n          displayStyle: this.constants.imagesDisplayStyles.slider,\n          displayBy: this.constants.productsDisplayBy.tags,\n          lineCountTitle: 1,\n          lineCountDescription: 1,\n          gridRowItems: 3,\n          itemsPerPage: 20,\n          tags: [],\n          keys: []\n        }\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasPreviewComponent\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/news/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda-adjunct\"], function (_exports, _emberConcurrencyDecorators, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksNewsService = _exports.default = (_dec = Ember.inject.service, _class = class SimpleEditorPageBlocksNewsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    *fetchByTagsTask(filters, tags) {\n      if (RA.isNilOrEmpty(filters?._data?.tags) && RA.isNilOrEmpty(tags)) {\n        return;\n      }\n      if (RA.isNotNilOrEmpty(tags)) {\n        filters.setData('tags', tags);\n      }\n      return yield this.fetchTask.perform(filters);\n    }\n    *fetchByKeysTask(filters, keys) {\n      if (RA.isNilOrEmpty(filters?._data?.keys) && RA.isNilOrEmpty(keys)) {\n        return;\n      }\n      if (RA.isNotNilOrEmpty(keys)) {\n        filters.setData('keys', keys);\n      }\n      return yield this.fetchTask.perform(filters);\n    }\n    *fetchTask(filters) {\n      const keys = filters?._data?.keys || [];\n      const tags = filters?._data?.tags || [];\n      if (tags.length === 0 && keys.length === 0) {\n        return;\n      }\n      return yield this.crud.searchAdvancedEnqueuedTask.perform({\n        adapterName: 'news',\n        filters\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchByTagsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByTagsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchByKeysTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByKeysTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTask\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/products/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/products/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/products/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/products/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/products/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksProductsContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksProductsContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {});\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/products/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/model\", \"ramda\"], function (_exports, _model, R) {\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 SimpleEditorPageBlocksProductsModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _class = class SimpleEditorPageBlocksProductsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"showPreview\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasPreviewComponent\", _descriptor3, this);\n    }\n    defaults() {\n      const _defaults = super.defaults();\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.products,\n        settings: {\n          displayStyle: this.constants.imagesDisplayStyles.slider,\n          displayBy: this.constants.productsDisplayBy.tags,\n          gridRowItems: 3,\n          productsPerPage: 20,\n          productTags: [],\n          productKeys: []\n        }\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showPreview\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasPreviewComponent\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/products/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emberConcurrencyDecorators, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 SimpleEditorPageBlocksProductsService = _exports.default = (_dec = Ember.inject.service, _dec2 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 1\n  }), _class = class SimpleEditorPageBlocksProductsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    *fetchProductsByTagTask({\n      filters\n    }) {\n      const tags = filters?._data?.tags || [];\n      const itemKeys = filters?._data?.itemKeys || [];\n      if (tags.length === 0 && itemKeys.length === 0) {\n        filters.set('results', []);\n        return [];\n      }\n      const results = yield this.crud.searchAdvancedTask.perform({\n        adapterName: 'channels/shop/campaigns/details',\n        filters\n      });\n      if (RA.isNotNilOrEmpty(itemKeys)) {\n        const sortedResults = R.sortBy(model => R.indexOf(model?._data?.itemKey, itemKeys))(results);\n        filters.set('results', sortedResults);\n        return sortedResults;\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchProductsByTagTask\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchProductsByTagTask\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/service\", [\"exports\", \"ramda\"], function (_exports, R) {\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 SimpleEditorPageBlocksService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      /**\n       * Max hand-pick keys a products block can select, and the Contents reorder load window.\n       * Lists saved before the select cap can still be longer.\n       */\n      _defineProperty(this, \"handPickReorderCap\", 200);\n    }\n    /**\n     * Whether a hand-pick list is already at (or over) the select cap.\n     * @param {string[]} keys - current `productKeys`\n     * @param {number} [cap] - max keys a merchant can add\n     * @return {boolean} true when another key must not be appended\n     */\n    isAtHandPickCap(keys, cap = this.handPickReorderCap) {\n      return (keys || []).length >= cap;\n    }\n\n    /**\n     * Append one key when the list is under the select cap.\n     * No-ops when the key is empty, already present, or the list is at the cap.\n     * @param {string[]} keys - current `productKeys`\n     * @param {string} itemKey - product key to add\n     * @param {number} [cap] - max keys a merchant can add\n     * @return {string[]} keys with `itemKey` at the end, or the same list\n     */\n    appendHandPickKey(keys, itemKey, cap = this.handPickReorderCap) {\n      const currentKeys = keys || [];\n      if (!itemKey || currentKeys.includes(itemKey)) {\n        return currentKeys;\n      }\n      if (this.isAtHandPickCap(currentKeys, cap)) {\n        return currentKeys;\n      }\n      return R.append(itemKey, currentKeys);\n    }\n\n    /**\n     * Take the first keys that a hand-pick Contents reorder list is allowed to load.\n     * Extra keys stay on the page block but are not fetched for drag-reorder.\n     * @param {string[]} keys - full hand-pick keys in storefront order\n     * @param {number} [cap] - max keys to load for the reorder surface\n     * @return {string[]} first `cap` keys, or [] when keys is empty\n     */\n    takeHandPickKeysForReorder(keys, cap = this.handPickReorderCap) {\n      return R.take(cap, keys || []);\n    }\n\n    /**\n     * Rebuild hand-pick keys after a drag on the capped reorder list.\n     * Walk the capped prefix: keep keys that were not loaded (e.g. no image) in place,\n     * and emit the dragged order only for keys that were shown. Keys past the cap stay after them.\n     * @param {string[]} reorderedShownKeys - keys from the loaded reorder list after drop\n     * @param {string[]} allKeys - full hand-pick keys before the drop\n     * @param {number} [cap] - same cap used when loading the list\n     * @return {string[]} unique keys: merged prefix plus leftover keys after the cap\n     */\n    mergeReorderedHandPickKeys(reorderedShownKeys, allKeys, cap = this.handPickReorderCap) {\n      const shownKeys = reorderedShownKeys || [];\n      const previousKeys = allKeys || [];\n      const prefixKeys = R.take(cap, previousKeys);\n      const remainderKeys = R.drop(cap, previousKeys);\n      const shownKeySet = new Set(shownKeys);\n      let nextShownIndex = 0;\n      const mergedPrefix = R.map(key => {\n        if (!shownKeySet.has(key)) {\n          return key;\n        }\n        const nextShownKey = shownKeys[nextShownIndex];\n        nextShownIndex += 1;\n        return nextShownKey;\n      })(prefixKeys);\n      return R.uniq(R.concat(mergedPrefix, remainderKeys));\n    }\n\n    /**\n     * Drop one key from a hand-pick list without touching other keys.\n     * Used to remove a product from a page block, not from the shop catalog.\n     * @param {string[]} keys - current `productKeys`\n     * @param {string} itemKey - key to drop from the block\n     * @return {string[]} keys without `itemKey`\n     */\n    removeKey(keys, itemKey) {\n      return R.reject(R.equals(itemKey))(keys || []);\n    }\n  }\n  _exports.default = SimpleEditorPageBlocksService;\n});","define(\"client/pods/simple-editor/page-blocks/social-links/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/social-links/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/social-links/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/social-links/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/social-links/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksSocialLinksContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksSocialLinksContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        url: '',\n        socialLinksType: ''\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/social-links/model\", [\"exports\", \"ramda\", \"client/pods/simple-editor/page-blocks/model\"], function (_exports, R, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksSocialLinksModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksSocialLinksModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.socialLinks,\n        settings: {\n          containerAlign: 'center',\n          socialLinksTypes: [this.constants.socialLinksTypes.instagram]\n        },\n        contents: [{\n          url: '',\n          socialLinksType: this.constants.socialLinksTypes.instagram\n        }]\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/tabs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/tabs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/tabs/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/tabs/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/tabs/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\", \"ramda-adjunct\"], function (_exports, _contentModel, R, RA) {\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;\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 SimpleEditorPageBlocksTabsContentModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember.computed('_data.contents.{length,@each.syncedComputed}'), _class = class SimpleEditorPageBlocksTabsContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.tabs,\n        name: this.intl.t('new_tab'),\n        contents: []\n      });\n    }\n    populate(data, attrs) {\n      super.populate(data, attrs);\n      if (RA.isNotNilOrEmpty(data.contents)) {\n        const mapIndexed = R.addIndex(R.map);\n        data.contents = R.pipe(mapIndexed((pageBlockData, index) => {\n          pageBlockData.index = index;\n          return this.websitesService.newPageBlockModel({\n            pageBlockData,\n            // important for copy operations: regenerate ids for nested content models\n            attrs: attrs ? {\n              ...attrs\n            } : {}\n          });\n        }), R.reject(R.isNil))(data.contents);\n      }\n    }\n    addPageBlock(website, pageBlock) {\n      let pageBlockData = pageBlock;\n      if (pageBlock?._data) {\n        pageBlockData = pageBlock?.serialize?.() || pageBlock;\n      }\n      const pageBlockModel = this.websitesService.newPageBlockModel({\n        pageBlockData,\n        attrs: {\n          isGenerateNewId: true\n        }\n      });\n      const contents = this._data?.contents ?? [];\n      pageBlockModel.setData('index', contents.length);\n      contents.pushObject(pageBlockModel);\n      this.setData('contents', contents);\n      return pageBlockModel;\n    }\n    get syncedComputed() {\n      const contents = this._data?.contents || [];\n      return R.reduce((acc, content) => {\n        const synced = content?.syncedComputed || 0;\n        acc += synced;\n        return acc;\n      }, Math.random())(contents);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"addPageBlock\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"addPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"syncedComputed\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"syncedComputed\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/page-blocks/tabs/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/model\", \"ramda\"], function (_exports, _model, R) {\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 SimpleEditorPageBlocksTabsModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _class = class SimpleEditorPageBlocksTabsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"contentsLimit\", _descriptor2, this);\n    }\n    defaults() {\n      const _defaults = super.defaults();\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.tabs,\n        displayLabel: 'tabs',\n        settings: {\n          hasContainerBorder: false,\n          hasContainerSchedules: false,\n          hasContainerBackground: false,\n          containerBackgroundColorTransparency: 0,\n          containerBackgroundColor: '#fefefe',\n          containerMaxWidth: 'default',\n          containerMarginVertical: 'small',\n          containerPadding: 'none',\n          schedules: [{\n            dateStartZ: '',\n            dateEndZ: ''\n          }],\n          displayStyle: 'tabs',\n          buttonStyle: 'button1',\n          buttonImageStyle: 'none',\n          buttonImageBorderRadius: '0px',\n          tabAlign: 'center',\n          fontAlign: 'center',\n          fontSize: 'medium',\n          fontStyles: [],\n          containerBackgroundColorStyle: 'solid',\n          containerBorderColor: '',\n          containerBorderStyle: 'solid',\n          containerBorderWidth: '',\n          containerBorderRadius: ''\n        },\n        contents: [{\n          type: this.constants.pageBlockTypes.tabs,\n          name: this.intl.t('new_tab'),\n          contents: []\n        }]\n      });\n    }\n    populate(data, attrs) {\n      const defaults = this.defaults();\n      const defaultSettings = defaults?.settings || {};\n      data.settings = R.pipe(R.pathOr({}, ['settings']), R.mergeDeepWith((l, r) => r === '' ? l : r, defaultSettings))(data);\n      super.populate(data, attrs);\n    }\n    get message() {\n      return '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contentsLimit\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 10;\n    }\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/texts/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/texts/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/texts/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/texts/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/texts/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksTextsContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksTextsContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        title: '',\n        template: ''\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/texts/model\", [\"exports\", \"ramda\", \"client/pods/simple-editor/page-blocks/model\"], function (_exports, R, _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 SimpleEditorPageBlocksFlowsModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _class = class SimpleEditorPageBlocksFlowsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"contentsLimit\", _descriptor2, this);\n    }\n    defaults() {\n      const website = this.website || {};\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.flows,\n        settings: {\n          displayStyle: this.constants.textDisplayStyles.basic,\n          fontAlign: this.constants.alignment.left,\n          fontColor: website?._data?.themeTextColor || '#0A0A0A',\n          // black\n          fontFamilyTitle: \"Arial, Helvetica, sans-serif\",\n          fontSize: this.constants.sizes.medium,\n          titleStyles: []\n        },\n        contents: [{\n          type: 'texts',\n          title: 'Title',\n          template: '<p>Text description...</p>'\n        }]\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contentsLimit\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/videos/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/videos/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/videos/content/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/simple-editor/page-blocks/videos/content/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/simple-editor/page-blocks/videos/content/model\", [\"exports\", \"client/pods/simple-editor/page-blocks/contentModel\", \"ramda\"], function (_exports, _contentModel, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksVideosContentModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksVideosContentModel extends _contentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        autoplay: false,\n        loop: false,\n        url: ''\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/page-blocks/videos/model\", [\"exports\", \"ramda\", \"client/pods/simple-editor/page-blocks/model\"], function (_exports, R, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 SimpleEditorPageBlocksVideosModel = _exports.default = (_dec = Ember._tracked, _class = class SimpleEditorPageBlocksVideosModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      const website = this.website || {};\n      const _defaults = super.defaults(...arguments);\n      return R.mergeDeepRight(_defaults, {\n        type: this.constants.pageBlockTypes.videos,\n        settings: {\n          displayStyle: this.constants.videosDisplayStyles.fullWidth,\n          source: this.constants.videoSources.youtube\n        },\n        contents: [{\n          url: ''\n        }]\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/simple-editor/service\", [\"exports\", \"ember-concurrency-decorators\"], function (_exports, _emberConcurrencyDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\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  let SimpleEditorService = _exports.default = (_class = class SimpleEditorService extends Ember.Service {\n    get isMobile() {\n      if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n        return true;\n      }\n      return false;\n    }\n    *addScriptToHeaderTask(src) {\n      const alreadyLoaded = document.querySelector(`script[src=\"${src}\"]`);\n      if (alreadyLoaded) {\n        return true;\n      }\n      return yield new Promise((resolve, reject) => {\n        const script = document.createElement('script');\n        script.src = src;\n        script.async = true;\n        script.onload = () => {\n          console.debug(`loaded script: ${src}`);\n          resolve();\n        };\n        script.onerror = error => {\n          console.error('Failed to load masonry library:', error);\n          reject(error);\n        };\n        document.body.appendChild(script);\n      });\n    }\n    *addStyleToHeaderTask(href = '', {\n      integrity = '',\n      crossorigin = '',\n      referrerPolicy = ''\n    } = {}) {\n      try {\n        const alreadyLoaded = document.querySelector(`link[href=\"${href}\"]`);\n        if (alreadyLoaded) {\n          // console.debug(`already loaded style: ${href}`)\n          return true;\n        }\n        return yield new Promise((resolve, reject) => {\n          const link = document.createElement('link');\n          link.rel = 'stylesheet';\n          link.href = href;\n          // Subresource Integrity: only verify the resource when an integrity hash is provided\n          if (integrity) {\n            link.integrity = integrity;\n          }\n          if (crossorigin) {\n            link.crossOrigin = crossorigin;\n          }\n          if (referrerPolicy) {\n            link.referrerPolicy = referrerPolicy;\n          }\n          link.onload = () => {\n            console.debug(`loaded style: ${href}`);\n            resolve();\n          };\n          link.onerror = error => {\n            console.error('Failed to load style: ' + href, error);\n            reject(error);\n          };\n          document.head.appendChild(link);\n        });\n      } catch (error) {\n        // Error is already logged in the promise's onerror handler\n      }\n    }\n    *addFontFaceToHeaderTask(font = {}) {\n      if (!font.familyName || !font.fontUrl) {\n        return false;\n      }\n      const styleId = `custom-font-${font.id || font.familyName}`.replace(/\\s+/g, '-').toLowerCase();\n      const alreadyLoaded = document.getElementById(styleId);\n      if (alreadyLoaded) {\n        return true;\n      }\n      const style = document.createElement('style');\n      style.id = styleId;\n      style.type = 'text/css';\n      style.textContent = `\n      @font-face {\n        font-family: \"${font.familyName}\";\n        src: url(\"${font.fontUrl}\") format(\"opentype\");\n        font-weight: ${font.fontWeight || 'normal'};\n        font-style: ${font.fontStyle || 'normal'};\n        font-display: ${font.fontDisplay || 'swap'};\n      }\n    `;\n      document.head.appendChild(style);\n      return true;\n    }\n    *getCustomFontsTask() {\n      return yield Promise.resolve([{\n        id: 'playwrite-de-sas',\n        label: 'Playwrite DE SAS',\n        familyName: 'Playwrite DE SAS',\n        value: '\"Playwrite DE SAS\", cursive',\n        sourceType: 'google',\n        isCustomFont: true,\n        href: 'https://fonts.googleapis.com/css2?family=Playwrite+DE+SAS:wght@100..400&display=swap'\n      }, {\n        id: 'montserrat',\n        label: 'Montserrat',\n        familyName: 'Montserrat',\n        value: '\"Montserrat\", sans-serif',\n        sourceType: 'google',\n        isCustomFont: true,\n        href: 'https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'\n      }, {\n        id: 'gensen-rounded-2-tw-b',\n        label: 'GenSenRounded2TW-B',\n        familyName: 'GenSenRounded2TW-B',\n        value: '\"GenSenRounded2TW-B\", sans-serif',\n        sourceType: 'custom',\n        isCustomFont: true,\n        fontUrl: 'https://cdn.jsdelivr.net/gh/ButTaiwan/gensen-font@master/otf/TW/GenSenRounded2TW-B.otf',\n        fontWeight: '700',\n        fontStyle: 'normal',\n        fontDisplay: 'swap'\n      }]);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"addScriptToHeaderTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"addScriptToHeaderTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addStyleToHeaderTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"addStyleToHeaderTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addFontFaceToHeaderTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"addFontFaceToHeaderTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getCustomFontsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getCustomFontsTask\"), _class.prototype), _class);\n});","define(\"client/pods/simple-editor/theme/service\", [\"exports\", \"ramda\", \"client/utils/nventor\"], function (_exports, R, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class SimpleEditorTheme extends Ember.Service {\n    // @tracked themesAdded = []\n\n    setupTheme(website) {\n      // const websiteKey = website?._data?._key\n      // const themesAdded = this.themesAdded ?? []\n      // if (R.includes(websiteKey, themesAdded)) {\n      //   return\n      // }\n\n      // this.themesAdded = themesAdded.push(websiteKey)\n      const customTheme = R.propOr({}, '_data')(website);\n      const themeData = {};\n      const width = '1344px';\n      const contentWidth = '1300';\n      const linkColor = '#000000';\n      const linkHoverColor = '#262626';\n      const primaryColor = '#e4666f';\n      const primaryContrastColor = '#ffffff';\n      const primaryHoverColor = '#fa2e3c';\n      const textColor = '#666666';\n      const whiteTextColor = '#ffffff';\n      const activeColor = '#000000';\n      const secondaryColor = '#000000';\n      const secondaryContrastColor = '#ffffff';\n      const secondaryHoverColor = '#262626';\n      const neutralColor = '#ffffff';\n      const neutralHoverColor = '#eeeeee';\n      const backgroundColor = '#ffffff';\n      const borderColor = '#eeeeee';\n      const secondaryBackgroundColor = '#eeeeee';\n      const secondaryBackgroundTextColor = '#666666';\n      const secondaryBackgroundLinkColor = '#000000';\n      const secondaryBackgroundLinkHoverColor = '#262626';\n      const chatColor = '#66aee4';\n      const chatHoverColor = '#4390ca';\n      const chatTextColor = '#ffffff';\n      const saleColor = '#ff4a68';\n      const saleTextColor = '#ffffff';\n      const customTagsColor1 = '#4B4E2A';\n      const customTagsTextColor1 = '#ffffff';\n      const customTagsColor2 = '#0089A7';\n      const customTagsTextColor2 = '#ffffff';\n      const customTagsColor3 = '#DCB879';\n      const customTagsTextColor3 = '#ffffff';\n      const customCardBorderRadius = '.5em';\n      const customSearchbarResetColor = '#666666';\n      const customSearchbarCancelColor = '#e4666f';\n      const customSearchbarHoverColor = '#e4666f';\n      const tagColor = '#f5f5f5';\n      const tagTextColor = '#666666';\n      const tnsLightColor = '#dddddd';\n      const tnsActiveLightColor = '#999999';\n      const tnsDarkColor = '#2f4f4f';\n      const tnsActiveDarkColor = '#b8b8b8';\n      themeData.menuShowLogoSize = _nventor.default.propOrWhenIsNilOrEmpty('20px', 'menuShowLogoSize', customTheme);\n      themeData.menuShowLogoMobileSize = _nventor.default.propOrWhenIsNilOrEmpty('20px', 'menuShowLogoMobileSize', customTheme);\n      themeData.menuShowLogoDesktopOnlySize = _nventor.default.propOrWhenIsNilOrEmpty('20px', 'menuShowLogoDesktopOnlySize', customTheme);\n      themeData.menuFontSize = _nventor.default.propOrWhenIsNilOrEmpty('14px', 'menuFontSize', customTheme);\n      themeData.themeWidthDefault = width;\n      themeData.themeActionColor = _nventor.default.propOrWhenIsNilOrEmpty(primaryColor, 'themeActionColor', customTheme);\n      themeData.themeActionTextColor = _nventor.default.propOrWhenIsNilOrEmpty(primaryContrastColor, 'themeActionTextColor', customTheme);\n      themeData.themeActionHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(primaryHoverColor, 'themeActionHoverColor', customTheme);\n      themeData.themeActionFinalColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryColor, 'themeActionFinalColor', customTheme);\n      themeData.themeActionFinalHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryHoverColor, 'themeActionFinalHoverColor', customTheme);\n      themeData.themeActionFinalTextColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryContrastColor, 'themeActionFinalTextColor', customTheme);\n      themeData.themeActiveColor = _nventor.default.propOrWhenIsNilOrEmpty(activeColor, 'themeActiveColor', customTheme);\n      themeData.themeBackgroundPrimaryColor = _nventor.default.propOrWhenIsNilOrEmpty(backgroundColor, 'themeBackgroundPrimaryColor', customTheme);\n      themeData.themeBackgroundSecondaryColor = _nventor.default.propOrWhenIsNilOrEmpty(backgroundColor, 'themeBackgroundSecondaryColor', customTheme);\n      themeData.themeTagColor = _nventor.default.propOrWhenIsNilOrEmpty(tagColor, 'themeTagColor', customTheme);\n      themeData.themeTagTextColor = _nventor.default.propOrWhenIsNilOrEmpty(tagTextColor, 'themeTagTextColor', customTheme);\n      themeData.themeBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(borderColor, 'themeBorderColor', customTheme);\n      const themeContentWidth = _nventor.default.propOrWhenIsNilOrEmpty(`${contentWidth}px`, 'themeContentWidth', customTheme);\n      themeData.themeContentWidth = themeContentWidth;\n      themeData.themeCountDownColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryColor, 'themeCountDownColor', customTheme);\n      themeData.themeCountDownTextColor = _nventor.default.propOrWhenIsNilOrEmpty(whiteTextColor, 'themeCountDownTextColor', customTheme);\n      themeData.themeCarouselBannerColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundColor, 'themeCarouselBannerColor', customTheme);\n      themeData.themeCarouselBannerTextColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundLinkColor, 'themeCarouselBannerTextColor', customTheme);\n      themeData.themeCarouselBannerLinkHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundLinkHoverColor, 'themeCarouselBannerLinkHoverColor', customTheme);\n      themeData.themeFooterBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundColor, 'themeFooterBackgroundColor', customTheme);\n      themeData.themeFooterLinkColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundLinkColor, 'themeFooterLinkColor', customTheme);\n      themeData.themeFooterLinkHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundLinkHoverColor, 'themeFooterLinkHoverColor', customTheme);\n      themeData.themeFooterTextColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundTextColor, 'themeFooterTextColor', customTheme);\n      themeData.themeInputTextColor = _nventor.default.propOrWhenIsNilOrEmpty('#363636', 'themeInputTextColor', customTheme);\n      themeData.themeInputBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(backgroundColor, 'themeInputBackgroundColor', customTheme);\n      themeData.themeInputBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(borderColor, 'themeInputBorderColor', customTheme);\n      themeData.themeInputHoverBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeInputBorderColor, 'themeInputHoverBorderColor', customTheme); // @TODO: this is not yet implemented on the api\n      themeData.themeInputBorderFocusColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeInputHoverBorderColor, 'themeInputBorderFocusColor', customTheme);\n      themeData.themeLinkColor = _nventor.default.propOrWhenIsNilOrEmpty(linkColor, 'themeLinkColor', customTheme);\n      themeData.themeLinkHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(linkHoverColor, 'themeLinkHoverColor', customTheme);\n      themeData.themeFooterHeaderColor = _nventor.default.propOrWhenIsNilOrEmpty(primaryColor, 'themeFooterHeaderColor', customTheme);\n      themeData.themeMenuBackgroundPrimaryColor = _nventor.default.propOrWhenIsNilOrEmpty(backgroundColor, 'themeMenuBackgroundPrimaryColor', customTheme);\n      themeData.themeMenuBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(borderColor, 'themeMenuBorderColor', customTheme);\n      themeData.themeMenuLinkColor = _nventor.default.propOrWhenIsNilOrEmpty(linkColor, 'themeMenuLinkColor', customTheme);\n      themeData.themeMenuLinkHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(linkHoverColor, 'themeMenuLinkHoverColor', customTheme);\n      themeData.themeMenuItemBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeMenuBackgroundPrimaryColor, 'themeMenuItemBorderColor', customTheme);\n      themeData.themeMenuButtonColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeMenuLinkColor, 'themeMenuButtonColor', customTheme);\n      themeData.themeMenuButtonHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeMenuLinkHoverColor, 'themeMenuButtonHoverColor', customTheme);\n      themeData.themeSubmenuBackgroundPrimaryColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeMenuBackgroundPrimaryColor, 'themeSubmenuBackgroundPrimaryColor', customTheme);\n      themeData.themeSubmenuBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeMenuBorderColor, 'themeSubmenuBorderColor', customTheme);\n      themeData.themeSubmenuItemBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeMenuItemBorderColor, 'themeSubmenuItemBorderColor', customTheme);\n      themeData.themeSubmenuLinkColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeMenuLinkColor, 'themeSubmenuLinkColor', customTheme);\n      themeData.themeSubmenuLinkHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeMenuLinkHoverColor, 'themeSubmenuLinkHoverColor', customTheme);\n      themeData.themeSaleColor = _nventor.default.propOrWhenIsNilOrEmpty(saleColor, 'themeSaleColor', customTheme);\n      themeData.themeSaleTextColor = _nventor.default.propOrWhenIsNilOrEmpty(saleTextColor, 'themeSaleTextColor', customTheme);\n      themeData.themeTagsColor1 = _nventor.default.propOrWhenIsNilOrEmpty(customTagsColor1, 'themeTagsColor1', customTheme);\n      themeData.themeTagsTextColor1 = _nventor.default.propOrWhenIsNilOrEmpty(customTagsTextColor1, 'themeTagsTextColor1', customTheme);\n      themeData.themeTagsColor2 = _nventor.default.propOrWhenIsNilOrEmpty(customTagsColor2, 'themeTagsColor2', customTheme);\n      themeData.themeTagsTextColor2 = _nventor.default.propOrWhenIsNilOrEmpty(customTagsTextColor2, 'themeTagsTextColor2', customTheme);\n      themeData.themeTagsColor3 = _nventor.default.propOrWhenIsNilOrEmpty(customTagsColor3, 'themeTagsColor3', customTheme);\n      themeData.themeTagsTextColor3 = _nventor.default.propOrWhenIsNilOrEmpty(customTagsTextColor3, 'themeTagsTextColor3', customTheme);\n      themeData.themeTextColor = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeTextColor', customTheme);\n      themeData.themeText2Color = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeText2Color', customTheme);\n      themeData.themeText3Color = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeText3Color', customTheme);\n      themeData.themeSalePriceTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeSalePriceTextColor', customTheme);\n      themeData.themeOriginalPriceTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeOriginalPriceTextColor', customTheme);\n      themeData.themeAlmostSoldOutTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeAlmostSoldOutTextColor', customTheme);\n      themeData.themeGeneralLetterSpacing = _nventor.default.propOrWhenIsNilOrEmpty('0px', 'themeGeneralLetterSpacing', customTheme);\n      themeData.themeNavbarLetterSpacing = _nventor.default.propOrWhenIsNilOrEmpty('0px', 'themeNavbarLetterSpacing', customTheme);\n      themeData.themeCardTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeCardTextColor', customTheme);\n      themeData.themeCardBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeCardBackgroundColor', customTheme);\n      themeData.themeCardBorder = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBorderColor, 'themeCardBorder', customTheme);\n      themeData.themeCardBorderRadius = _nventor.default.propOrWhenIsNilOrEmpty(customCardBorderRadius, 'themeCardBorderRadius', customTheme);\n      themeData.themeCardHeaderBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeCardHeaderBackgroundColor', customTheme);\n      themeData.themeCardHeaderTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeCardHeaderTextColor', customTheme);\n      themeData.themeHeaderH1TextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeHeaderH1TextColor', customTheme);\n      themeData.themeHeaderH1BackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeHeaderH1BackgroundColor', customTheme);\n      themeData.themeHeaderH1LetterSpacing = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeGeneralLetterSpacing, 'themeHeaderH1LetterSpacing', customTheme);\n      themeData.themeHeaderH2TextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeHeaderH2TextColor', customTheme);\n      themeData.themeHeaderH2BackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeHeaderH2BackgroundColor', customTheme);\n      themeData.themeHeaderH2LetterSpacing = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeGeneralLetterSpacing, 'themeHeaderH2LetterSpacing', customTheme);\n      themeData.themeHeaderH3TextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeHeaderH3TextColor', customTheme);\n      themeData.themeHeaderH3BackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeHeaderH3BackgroundColor', customTheme);\n      themeData.themeHeaderH3LetterSpacing = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeGeneralLetterSpacing, 'themeHeaderH3LetterSpacing', customTheme);\n      themeData.themeHeaderH4TextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeHeaderH4TextColor', customTheme);\n      themeData.themeHeaderH4BackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeHeaderH4BackgroundColor', customTheme);\n      themeData.themeHeaderH4LetterSpacing = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeGeneralLetterSpacing, 'themeHeaderH4LetterSpacing', customTheme);\n      themeData.themeHeaderH5TextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeHeaderH5TextColor', customTheme);\n      themeData.themeHeaderH5BackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeHeaderH5BackgroundColor', customTheme);\n      themeData.themeHeaderH5LetterSpacing = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeGeneralLetterSpacing, 'themeHeaderH5LetterSpacing', customTheme);\n      themeData.themeHeaderH6TextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeHeaderH6TextColor', customTheme);\n      themeData.themeHeaderH6BackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeHeaderH6BackgroundColor', customTheme);\n      themeData.themeHeaderH6LetterSpacing = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeGeneralLetterSpacing, 'themeHeaderH6LetterSpacing', customTheme);\n\n      // @TODO: add class for searchbar focus?\n      // themeData.themeInputBorderFocusColor\n      themeData.themeSearchbarTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeInputTextColor, 'themeSearchbarTextColor', customTheme);\n      themeData.themeSearchbarBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeInputBorderColor, 'themeSearchbarBorderColor', customTheme);\n      themeData.themeSearchbarBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeInputBackgroundColor, 'themeSearchbarBackgroundColor', customTheme);\n      themeData.themeSearchbarResetColor = _nventor.default.propOrWhenIsNilOrEmpty(customSearchbarResetColor, 'themeSearchbarResetColor', customTheme);\n      themeData.themeSearchbarCancelColor = _nventor.default.propOrWhenIsNilOrEmpty(customSearchbarCancelColor, 'themeSearchbarCancelColor', customTheme);\n      themeData.themeSearchbarHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeInputHoverBorderColor, 'themeSearchbarHoverColor', customTheme);\n      themeData.themeModalTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeModalTextColor', customTheme);\n      themeData.themeModalHeaderBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeModalHeaderBackgroundColor', customTheme);\n      themeData.themeModalBodyBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeModalBodyBackgroundColor', customTheme);\n      themeData.themeModalFooterBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeModalFooterBackgroundColor', customTheme);\n      themeData.themeModalTitleColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeModalTitleColor', customTheme);\n      themeData.themeNavTreeItemPaddingX = _nventor.default.propOrWhenIsNilOrEmpty('0px', 'themeNavTreeItemPaddingX', customTheme);\n      themeData.themeNavTreeItemMarginX = _nventor.default.propOrWhenIsNilOrEmpty('0px', 'themeNavTreeItemMarginX', customTheme);\n      // themeData.themeNavTreeItemPaddingY = nventor.propOrWhenIsNilOrEmpty('0px', 'themeNavTreeItemPaddingY', customTheme)\n      // themeData.themeNavTreeItemMarginY = nventor.propOrWhenIsNilOrEmpty('0px', 'themeNavTreeItemMarginY', customTheme)\n\n      themeData.themeButtonBorderRadius = _nventor.default.propOrWhenIsNilOrEmpty('20px', 'themeButtonBorderRadius', customTheme) || '20px';\n      themeData.themeVariantButtonBorderRadius = _nventor.default.propOrWhenIsNilOrEmpty('20px', 'themeVariantButtonBorderRadius')(customTheme) || '20px';\n      themeData.themeButtonBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(borderColor, 'themeButtonBorderColor', customTheme);\n      themeData.themeButtonColor = _nventor.default.propOrWhenIsNilOrEmpty(neutralColor, 'themeButtonColor', customTheme);\n      if (themeData.themeButtonColor === 'none') {\n        themeData.themeButtonColor = neutralColor;\n      }\n      themeData.themeButtonHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(neutralHoverColor, 'themeButtonHoverColor', customTheme);\n      themeData.themeButtonTextColor = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeButtonTextColor', customTheme);\n      themeData.themeButtonHoverTextColor2 = _nventor.default.propOrWhenIsNilOrEmpty(primaryHoverColor, 'themeButtonHoverTextColor2', customTheme);\n      themeData.themeButtonHoverTextColor3 = _nventor.default.propOrWhenIsNilOrEmpty(primaryHoverColor, 'themeButtonHoverTextColor3', customTheme);\n      themeData.themeButtonHoverTextColor = _nventor.default.propOrWhenIsNilOrEmpty(primaryHoverColor, 'themeButtonHoverTextColor', customTheme);\n      themeData.themeButtonBorderColor2 = _nventor.default.propOrWhenIsNilOrEmpty(borderColor, 'themeButtonBorderColor2', customTheme);\n      themeData.themeButtonColor2 = _nventor.default.propOrWhenIsNilOrEmpty(neutralColor, 'themeButtonColor2', customTheme);\n      themeData.themeButtonHoverColor2 = _nventor.default.propOrWhenIsNilOrEmpty(neutralHoverColor, 'themeButtonHoverColor2', customTheme);\n      themeData.themeButtonTextColor2 = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeButtonTextColor2', customTheme);\n      themeData.themeButtonBorderColor3 = _nventor.default.propOrWhenIsNilOrEmpty(borderColor, 'themeButtonBorderColor3', customTheme);\n      themeData.themeButtonColor3 = _nventor.default.propOrWhenIsNilOrEmpty(neutralColor, 'themeButtonColor3', customTheme);\n      themeData.themeButtonHoverColor3 = _nventor.default.propOrWhenIsNilOrEmpty(neutralHoverColor, 'themeButtonHoverColor3', customTheme);\n      themeData.themeButtonTextColor3 = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeButtonTextColor3', customTheme);\n      themeData.themeVariantButtonColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeVariantButtonColor')(customTheme);\n      themeData.themeVariantButtonTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeVariantButtonTextColor')(customTheme);\n      themeData.themeVariantButtonBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeActionColor, 'themeVariantButtonBorderColor')(customTheme);\n      themeData.themeVariantButtonHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeActionHoverColor, 'themeVariantButtonHoverColor')(customTheme);\n      themeData.themeVariantButtonHoverTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeActionTextColor, 'themeVariantButtonHoverTextColor')(customTheme);\n      themeData.themeVariantButtonHoverBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeActionHoverColor, 'themeVariantButtonHoverBorderColor')(customTheme);\n      themeData.themeVariantButtonSelectedColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeActionHoverColor, 'themeVariantButtonSelectedColor')(customTheme);\n      themeData.themeVariantButtonSelectedTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeActionTextColor, 'themeVariantButtonSelectedTextColor')(customTheme);\n      themeData.themeVariantButtonSelectedBorderColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeActionHoverColor, 'themeVariantButtonSelectedBorderColor')(customTheme);\n      themeData.themeChatButtonColor = _nventor.default.propOrWhenIsNilOrEmpty(chatColor, 'themeChatButtonColor', customTheme);\n      themeData.themeChatButtonHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(chatHoverColor, 'themeChatButtonHoverColor', customTheme);\n      themeData.themeChatButtonTextColor = _nventor.default.propOrWhenIsNilOrEmpty(chatTextColor, 'themeChatButtonTextColor', customTheme);\n      themeData.themeDisabledColor = _nventor.default.propOrWhenIsNilOrEmpty('#666666;', 'themeDisabledColor', customTheme);\n      themeData.themeFaqsQuestionHoverColor = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeFaqsQuestionHoverColor', customTheme);\n      themeData.themeFaqsQuestionColor = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeFaqsQuestionColor', customTheme);\n      themeData.themeFaqsAnswerColor = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeFaqsAnswerColor', customTheme);\n      themeData.themeBreadcrumbsTextColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeTextColor, 'themeBreadcrumbsTextColor', customTheme);\n      themeData.themeBreadcrumbsBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(themeData.themeBackgroundPrimaryColor, 'themeBreadcrumbsBackgroundColor', customTheme);\n      themeData.themeTnsLightColor = _nventor.default.propOrWhenIsNilOrEmpty(tnsLightColor, 'themeTnsLightColor', customTheme);\n      themeData.themeTnsActiveLightColor = _nventor.default.propOrWhenIsNilOrEmpty(tnsActiveLightColor, 'themeTnsLightColor', customTheme);\n      themeData.themeTnsDarkColor = _nventor.default.propOrWhenIsNilOrEmpty(tnsDarkColor, 'themeTnsLightColor', customTheme);\n      themeData.themeTnsActiveDarkColor = _nventor.default.propOrWhenIsNilOrEmpty(tnsActiveDarkColor, 'themeTnsLightColor', customTheme);\n      themeData.themeButtonBorderRadius = R.prop('themeButtonBorderRadius')(customTheme) || '20px';\n      themeData.themeButtonBorderRadius2 = R.prop('themeButtonBorderRadius2')(customTheme) || '20px';\n      themeData.themeButtonBorderRadius3 = R.prop('themeButtonBorderRadius3')(customTheme) || '20px';\n      themeData.themeCampaignHeaderBackgroundColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundColor, 'themeCampaignHeaderBackgroundColor', customTheme);\n      themeData.themeCampaignHeaderTitleColor = _nventor.default.propOrWhenIsNilOrEmpty(textColor, 'themeCampaignHeaderTitleColor', customTheme);\n      themeData.themeCampaignHeaderSubtitleColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundTextColor, 'themeCampaignHeaderSubtitleColor', customTheme);\n      themeData.themeCampaignHeaderNoticeColor = _nventor.default.propOrWhenIsNilOrEmpty(secondaryBackgroundTextColor, 'themeCampaignHeaderNoticeColor', customTheme);\n\n      // this._setupTheme(\n      //   {\n      //     website,\n      //     themeData\n      //   }\n      // )\n\n      if (themeData) {\n        website.set('themeData', themeData);\n        const buildStyleElement = () => {\n          const styleEl = document.createElement('style');\n          styleEl.appendChild(document.createTextNode(''));\n          document.head.appendChild(styleEl);\n          return styleEl.sheet;\n        };\n        const buildThemeToCss = themeData => {\n          let stylesToInsert = ':root {';\n          Object.keys(themeData).forEach(key => {\n            const cssProperty = `--${key}`;\n            stylesToInsert += `${cssProperty}: ${themeData[key]} !important;`;\n          });\n          stylesToInsert += '}';\n          return stylesToInsert;\n        };\n        const stylesheet = buildStyleElement();\n        const customStyleRules = buildThemeToCss(themeData);\n        stylesheet.insertRule(customStyleRules);\n      }\n    }\n  }\n  _exports.default = SimpleEditorTheme;\n});","define(\"client/pods/socket/service\", [\"exports\", \"client/config/environment\", \"ramda\", \"@sentry/ember\", \"client/mixins/date\", \"client/utils/nventor\"], function (_exports, _environment, R, Sentry, _date, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.ignoreForbiddenAppUpdatesCheck = _exports.default = void 0;\n  /* global io */\n\n  // A dropped websocket reconnects on its own. Clearing the connected flag\n  // immediately swaps the header menu and logo for a logout button, then swaps\n  // them back when the socket returns.\n  const MARK_DISCONNECTED_GRACE_MS = 5000;\n\n  /**\n   * Treat a 403 from the socket-connect app-updates check as expected authorization failure.\n   * Other errors are rethrown so they remain unhandled rejections / Sentry events.\n   * @param {Error} err - rejection from server.call\n   * @param {number} [err.httpStatus] - HTTP status on AjaxError\n   * @return {void}\n   */\n  const ignoreForbiddenAppUpdatesCheck = function (err) {\n    if (err?.httpStatus !== 403) {\n      throw err;\n    }\n  };\n\n  /**\n   * Connect to the pod socket and attach listeners when not already connected for this pod.\n   * @param {Ember.Service} self - socket Ember service instance\n   * @param {Object} options - connection details for this socket\n   * @param {string} options.socketName - Ember property name that stores the socket instance\n   * @param {Object} options.tokenData - decoded auth token payload used for the pod connection\n   * @param {string} options.tokenData.pod - company pod key used as the connection identity\n   * @param {string} options.token - auth token emitted on initiate\n   * @param {string} options.host - socket host URL\n   * @return {Object|boolean} connected socket, or false if already connected to this pod\n   */\n  _exports.ignoreForbiddenAppUpdatesCheck = ignoreForbiddenAppUpdatesCheck;\n  const setupListeners = function (self, {\n    socketName,\n    tokenData,\n    token,\n    host\n  }) {\n    const version = _environment.default.version;\n    let apiVersion = _environment.default.apiVersion;\n    const socketOptions = {\n      transports: ['websocket'],\n      withCredentials: true\n    };\n    const hostUrl = new URL(host);\n    if (_environment.default.environment === 'development') {\n      apiVersion = 'dev';\n      socketOptions.path = `/socket-${apiVersion}`;\n    } else {\n      socketOptions.path = `${hostUrl.pathname}/socket-${apiVersion}`;\n    }\n    let socket;\n    if (self.get('isConnected') && self.get('isConnected') === tokenData.pod) {\n      if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n        console.log('===socket already connected===');\n      }\n      socket = self.socket;\n      return false;\n    } else {\n      if (self.socket) {\n        // disconnect from old socket\n        socket = self.socket;\n        console.log(`disconnecting...${tokenData.pod}`);\n        socket.disconnect();\n      }\n      socket = io.connect(hostUrl.origin, socketOptions);\n      self.set('isConnected', tokenData.pod);\n    }\n    socket.on('connect', () => {\n      self.cancelMarkingDisconnected();\n      if (self.get('isConnected') && self.get('isConnected') !== tokenData.pod) {\n        self.disconnect();\n      }\n      if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n        console.log(`===socket is connecting to ${socketName}: ${host} -- ${tokenData.pod} ===`);\n      }\n      const data = {\n        version,\n        host: window.location.hostname\n        // id: self.get('socketId')\n      };\n      socket.emit('initiate', token, data);\n      self.set('socketChanged', Math.random());\n      self.set('isConnected', tokenData.pod);\n      Sentry.setTag('company_podKey', tokenData.pod);\n      self.get('server').call('POST', 'api/protected/app/updates', data).then(res => {\n        return self.updates.newVersionAlert(R.propOr({}, 'data', res));\n      }).catch(ignoreForbiddenAppUpdatesCheck);\n    });\n    socket.on('disconnect', reason => {\n      self.set('disconnectedAt', self.getNowZ());\n      self.set('socketChanged', Math.random());\n\n      // 'io client disconnect' is socket.disconnect() (logout or leaving a pod).\n      if (reason === 'io client disconnect') {\n        self.cancelMarkingDisconnected();\n        self.set('isConnected', false);\n        return;\n      }\n      self.scheduleMarkingDisconnected();\n      if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n        console.log('***APP: socket DISCONNECTED.***');\n      }\n    });\n    socket.on('afterInitiate', data => {\n      console.log(`===socket connected SUCCESSFULLY: ${socketName}: ${host} (id: ${data.id}, pod: ${data.pod})===`);\n      if (self.get('isConnected') !== data.pod) {\n        console.log(`disconnecting...${data.pod}`);\n        socket.disconnect();\n        return false;\n      }\n      self.set('socketId', data.id);\n      self.set('apiVersion', data.apiVersion);\n    });\n\n    // socket.on('apiVersion', data => {\n    //   self.set('apiVersion', data.apiVersion)\n    //   const socketId = self.get('socketId')\n    //   const disconnectedAt = data.disconnectedAt || self.get('disconnectedAt')\n    //   return self.get('updates').checkForReSyncData(socketId, disconnectedAt)\n    // })\n\n    socket.on('alert', data => {\n      data.action = data.action || 'arrayPush';\n      data.id = data.id || 'notifications';\n      data.propPath = _nventor.default.isNilOrEmptyDotPathOr(['alerts'], 'propPath')(data);\n      if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n        console.log('======alert data=====');\n        console.log(data);\n      }\n      self.routeNotificationAlert(data);\n      self.get('dataManager').syncUpdate(data);\n    });\n    socket.on('update', data => {\n      if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n        // console.log('======sync update data=====')\n        // console.log(data)\n      }\n      self.routeNotificationAlert(data);\n      self.get('dataManager').syncUpdate(data);\n    });\n    socket.on('updateBatch', data => {\n      if (_environment.default.environment === 'development' || _environment.default.environment === 'development-online') {\n        // console.log('======sync update batch=====')\n        // console.log(data.batch)\n      }\n      let batch = R.propOr([], 'batch')(data);\n      if (!R.is(Array, batch)) {\n        batch = [batch];\n      }\n      if (data?.debug) {\n        debugger; //eslint-disable-line\n      }\n      R.forEach(data => {\n        self.get('dataManager').syncUpdate(data);\n      })(batch);\n    });\n    socket.on('remove', data => {\n      self.get('dataManager').syncRemove(data);\n    });\n    socket.on('message', data => {\n      console.log('----receiving message----');\n      console.log(data);\n    });\n    socket.on('newVersionAlert', data => {\n      self.updates.newVersionAlert(data);\n    });\n    socket.on('connect_error', () => {\n      // revert to classic upgrade\n      // socket.io.opts.transports = ['polling', 'websocket']\n    });\n    self.set(socketName, socket);\n    return socket;\n  };\n\n  /**\n   * performs and manages connections to servers\n   */\n  var _default = _exports.default = Ember.Service.extend(_date.default, {\n    updates: Ember.inject.service(),\n    server: Ember.inject.service(),\n    dispatch: Ember.inject.service(),\n    host: _environment.default.APP.socketUrl,\n    isConnected: false,\n    socketChanged: '',\n    init() {\n      this._super(...arguments);\n      this.set('session', Math.random());\n\n      // connects to socket on init\n      // this.connect()\n    },\n    /**\n     * Hands a notifications alert pushed by the API to the service that owns the\n     * related UI state, before the alert is synced into the notifications bell.\n     *\n     * @param {Object} data - socket payload\n     */\n    routeNotificationAlert(data) {\n      if (data?.id === 'notifications/manager') {\n        this.dispatch.applyBulkSplitAlert(data.model);\n      }\n    },\n    // isConnected: computed('connected', funciton () {\n    //   return this.get('connected')\n    // }),\n\n    connect() {\n      const self = this;\n      const token = self.getToken();\n      if (token) {\n        const tokenData = this.get('storage').get('tokenData');\n        const host = this.host;\n        setupListeners(self, {\n          socketName: 'podSocket',\n          tokenData,\n          token,\n          host\n        });\n      } else {\n        this.disconnect();\n      }\n    },\n    disconnect() {\n      this.cancelMarkingDisconnected();\n      this.set('isConnected', false);\n      this._leaveSocket('pod');\n    },\n    /**\n     * Keep the header connected until a drop has lasted long enough to be real.\n     * @param {number} [delayMs]\n     */\n    scheduleMarkingDisconnected(delayMs = MARK_DISCONNECTED_GRACE_MS) {\n      this.cancelMarkingDisconnected();\n      this._markDisconnectedTimer = Ember.run.later(this, function () {\n        this._markDisconnectedTimer = null;\n        if (this.isDestroyed || this.isDestroying) {\n          return;\n        }\n        this.set('isConnected', false);\n      }, delayMs);\n    },\n    /**\n     * Drop a pending connected-flag clear.\n     */\n    cancelMarkingDisconnected() {\n      if (!this._markDisconnectedTimer) {\n        return;\n      }\n      Ember.run.cancel(this._markDisconnectedTimer);\n      this._markDisconnectedTimer = null;\n    },\n    willDestroy() {\n      this.cancelMarkingDisconnected();\n      this._super(...arguments);\n    },\n    getToken() {\n      return this.storage.get('token');\n    },\n    _leaveSocket(name) {\n      const socket = this.get(`${name}Socket`);\n      if (socket) {\n        socket.disconnect();\n      }\n    },\n    /**\n     * emit event to server\n     */\n    send(eventName, data) {\n      const token = this.getToken();\n      this.podSocket.emit(eventName, token, data);\n    }\n\n    /**\n     * join pod socket connection.\n     * (only for logged in users)\n     * only users of pods will receive broadcast\n     */\n    // _joinPodSocket() {\n    //\n    //   console.log('...POD: connecting to socket...');\n    //   const tokenData = this.get('storage').get('tokenData');\n    //\n    //   const pod = tokenData.pod;\n    //   console.log('pod: ' + pod);\n    //   const namespace = this.get('host') + `/${pod}`;\n    //   const nsp = io(namespace);\n    //   nsp.on('connect', function () {\n    //\n    //     console.log('===POD: socket connection started.===');\n    //\n    //     nsp.on('pod', function (data) {\n    //\n    //       console.log('----pod receiving sync----');\n    //       console.log(data);\n    //     });\n    //   });\n    //\n    //   nsp.on('disconnect', function () {\n    //\n    //     console.log('***POD: socket DISCONNECTED.***');\n    //   });\n    //\n    //   this.set('podSocket', nsp);\n    // }\n  });\n});","define(\"client/pods/specs/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/specs/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/specs',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/specs/child/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/specs/child/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/specs/child/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    populate(data, attrs) {\n      const hasLabel = data.label;\n      const hasDetail = data.isDetail;\n      if (!hasLabel) {\n        let label = data.value;\n        if (data.translate !== false) {\n          label = this.intl.t(data.value);\n        }\n        data.label = label;\n      }\n      data.transforms = R.pipe(R.propOr([], 'transforms'), R.map(transformObject => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'specs/child/transforms',\n          data: transformObject\n        });\n      }))(data);\n      attrs.hasOptions = RA.isNotNilOrEmpty(data.transforms);\n      this._super(...arguments);\n    },\n    addTransform(data = {}) {\n      const transforms = this.get('_data.transforms') || [];\n      const transformModel = this.dataManager.setAsRecord({\n        adapterName: 'specs/child/transforms',\n        data\n      });\n      transforms.pushObject(transformModel);\n      this.set('_data.transforms', transforms);\n      return transformModel;\n    },\n    setDefaultTransform(specChild, data) {\n      const availableOptions = specChild.get('availableOptions');\n      let allIsTrue = false;\n      R.forEach(allowedTransforms => {\n        if (allowedTransforms === 'all') {\n          allIsTrue = true;\n        }\n      })(data.get('allowedTransforms') || []);\n      let selectedTransforms = [];\n      if (availableOptions) {\n        R.forEach(transformObject => {\n          if (transformObject.fn && allIsTrue === false) {\n            const updateData = this.dataManager.setAsRecord({\n              adapterName: 'specs/child/transforms',\n              data: transformObject\n            });\n            selectedTransforms = R.append(updateData, selectedTransforms);\n          }\n        })(availableOptions);\n      }\n      if (data.get('type')) {\n        const typeArray = RA.list({\n          type: data.get('type')\n        });\n        selectedTransforms = R.map(transformObject => {\n          return this.dataManager.setAsRecord({\n            adapterName: 'specs/child/transforms',\n            data: transformObject\n          });\n        })(typeArray);\n      }\n      this.set('_data.transforms', selectedTransforms);\n      const isDetail = R.propOr(false, 'isDetail')(data);\n      if (RA.isNotNilOrEmpty(selectedTransforms) || isDetail) {\n        specChild.set('hasOptions', true);\n        specChild.setData('hideDefault', true);\n      }\n    },\n    availableOptions: Ember.computed('_data.{type,value}', 'availableNormalSpecs', function () {\n      let propForConcat = this.get('_data.prop') || [];\n      if (R.is(String, propForConcat)) {\n        propForConcat = RA.list(propForConcat);\n      }\n      const allTransforms = [Ember.Object.create({\n        label: 'auto index',\n        value: 'index',\n        fn: 'index'\n      }), Ember.Object.create({\n        label: 'combine labels',\n        value: 'concat',\n        fn: 'concat',\n        options: {\n          joinWith: ' / ',\n          prop: propForConcat\n        }\n      }), Ember.Object.create({\n        label: 'table lookup',\n        value: 'tableLookup',\n        fn: 'tableLookup',\n        options: {\n          tableLookupArray: [{\n            input: '',\n            output: ''\n          }]\n        }\n      })];\n      const availableNormalSpecs = this.get('availableNormalSpecs') || [];\n      const selectedValue = this.getData('value');\n      const normalSpec = R.find(R.propEq('value', selectedValue))(availableNormalSpecs);\n      if (!normalSpec) {\n        return [];\n      }\n      const allowedNames = normalSpec.get('allowedTransforms') || [];\n      const disallowedNames = normalSpec.get('disallowedTransforms') || [];\n      const availableOptions = R.filter(transforms => {\n        const transformsName = transforms.fn;\n        if (R.includes(transformsName, disallowedNames)) {\n          return false;\n        }\n        if (R.includes('all', allowedNames)) {\n          return true;\n        }\n        return R.includes(transformsName, allowedNames);\n      })(allTransforms);\n      const hasType = normalSpec.type;\n      if (hasType === 'number') {\n        availableOptions.pushObject(Ember.Object.create({\n          label: 'convert to number',\n          value: 'number'\n        }));\n      }\n      if (hasType === 'date') {\n        availableOptions.pushObject(Ember.Object.create({\n          label: 'convert to date',\n          value: 'date'\n        }));\n      }\n\n      // if has data type...add data type options\n\n      return availableOptions;\n    })\n  });\n});","define(\"client/pods/specs/child/transforms/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/specs/child/transforms/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/specs/child/transforms/model\", [\"exports\", \"client/pods/base/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import * as R from 'ramda'\n  // import EmberObject, { computed } from '@ember/object'\n  var _default = _exports.default = _model.default.extend({\n    populate(data, attrs) {\n      if (!data.label) {\n        data.label = '';\n        if (data.fn) {\n          data.label = attrs.intl.t(data.fn);\n        }\n        if (data.type) {\n          data.label = attrs.intl.t(data.type);\n        }\n      }\n      if (!data.value) {\n        data.value = '';\n        if (data.fn) {\n          data.value = data.fn;\n        }\n        if (data.type) {\n          data.value = data.type;\n        }\n      }\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/specs/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/specs/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/specs',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/specs/collection/model\", [\"exports\", \"ramda\", \"ramda-extension\", \"client/pods/base/model\", \"ramda-adjunct\"], function (_exports, R, R_, _model, RA) {\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    intl: Ember.inject.service(),\n    populate(data, attrs) {\n      data.shared = this._createModels('shared', data);\n      data.custom = this._createModels('custom', data);\n      this._super(...arguments);\n    },\n    _createModels(prop, data) {\n      return R.pipe(R.propOr([], prop), R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'specs',\n          data\n        });\n      }))(data);\n    },\n    allSpecs: Ember.computed('synced', function () {\n      const shared = R_.dotPath('_data.shared')(this) || [];\n      const custom = R_.dotPath('_data.custom')(this) || [];\n      return R.concat(shared)(custom);\n    }),\n    defaultSelectedExportSheets: Ember.computed('_data.shared.[]', function () {\n      return R.pipe(R.pathOr([], ['_data', 'shared']), R.pluck('_data'), R.pluck('_key'))(this);\n    }),\n    getSerializedByProp({\n      prop,\n      worksheets,\n      selected\n    }) {\n      const data = this.serialize();\n      return R.pipe(R.propOr([], prop), R.filter(spec => {\n        if (selected && RA.isNotNilOrEmpty(worksheets)) {\n          const keys = R.pipe(R.pluck('_data'), R.reject(RA.isNilOrEmpty), R.pluck('value'), R.reject(RA.isNilOrEmpty))(worksheets);\n          const specKey = R.propOr('', '_key')(spec);\n          return R.includes(specKey, keys);\n        }\n        if (selected && RA.isNilOrEmpty(worksheets)) {\n          return false;\n        }\n        if (!selected) {\n          if (worksheets) {\n            const specKey = R.propOr('', '_key')(spec);\n            return R.includes(specKey, worksheets);\n          } else {\n            return true;\n          }\n        }\n      }))(data);\n    }\n  });\n});","define(\"client/pods/specs/lists/method/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'byDetails',\n        value: 'byDetails'\n      }, {\n        label: 'byDetailsWithGrandTotals',\n        value: 'byDetailsWithGrandTotals'\n      }, {\n        label: 'byAllOrdersWithOneColumnRow',\n        value: 'byAllOrdersWithOneColumnRow'\n      }, {\n        label: 'byAllOrdersWithOneColumnRowWithSummary',\n        value: 'byAllOrdersWithOneColumnRowWithSummary'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/specs/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _model, R, R_, RA, _nventor) {\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    init() {\n      this._super(...arguments);\n\n      // @TODO:\n      // const specsPerMethod = {\n      //   byOrders: ['', 'index', ]\n      // }\n\n      const specs = [{\n        // empty block for spaces and first default\n        value: '',\n        defaultLabel: '',\n        prop: '',\n        translate: false,\n        allowedTransforms: [],\n        disallowedTransforms: []\n      }, {\n        value: 'index',\n        defaultLabel: 'index',\n        prop: null,\n        allowedTransforms: ['index'],\n        disallowedTransforms: []\n      }, {\n        value: '#',\n        defaultLabel: '#',\n        prop: 'docNo',\n        translate: false,\n        allowedTransforms: [],\n        disallowedTransforms: []\n      }, {\n        value: 'date',\n        defaultLabel: 'date',\n        prop: 'dateZ',\n        type: 'date',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n        // allowCustomOptions: true/false\n      }, {\n        value: 'dispatch date',\n        defaultLabel: 'dispatch date',\n        prop: 'dispatchDateZ',\n        type: 'date',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n        // allowCustomOptions: true/false\n      }, {\n        value: 'expected prepare date',\n        defaultLabel: 'expected prepare date',\n        prop: 'expectedPrepareDateZ',\n        type: 'date',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'expected dispatch date',\n        defaultLabel: 'expected dispatch date',\n        prop: 'expectedDispatchDateZ',\n        type: 'date',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'customer expected arrival date',\n        defaultLabel: 'customer expected arrival date',\n        prop: 'transporterArrivalDateZ',\n        type: 'date',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'person',\n        defaultLabel: 'person',\n        prop: 'person',\n        label: this.intl.t('person_export'),\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'contact',\n        defaultLabel: 'customer_export',\n        prop: 'contact',\n        label: this.intl.t('customer_export'),\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'person + contact',\n        defaultLabel: 'person + contact',\n        prop: ['person', 'contact'],\n        allowedTransforms: ['concat'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'customCheckoutFieldsValues',\n        defaultLabel: 'custom checkout fields',\n        prop: 'customCheckoutFieldsValues',\n        allowedTransforms: []\n      }, {\n        value: 'address',\n        defaultLabel: 'address',\n        prop: 'address',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'convenienceStoreBrand',\n        defaultLabel: 'convenience store brand',\n        prop: 'convenienceStoreBrand',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'storeId',\n        defaultLabel: 'convenience store id',\n        prop: 'storeId',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'storeName',\n        defaultLabel: 'convenience store name',\n        prop: 'storeName',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'telephone',\n        defaultLabel: 'telephone',\n        prop: 'telephone',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'payment method',\n        defaultLabel: 'payment method',\n        prop: 'paymentMethodKey',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'total',\n        defaultLabel: 'inclusive total',\n        type: 'number',\n        prop: 'inclTotal',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'unpaid total',\n        defaultLabel: 'unpaid total',\n        type: 'number',\n        prop: 'unpaidInclTotal',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'exclTotal',\n        defaultLabel: 'exclusive total',\n        type: 'number',\n        prop: 'exclTotal',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'taxTotal',\n        defaultLabel: 'tax total',\n        type: 'number',\n        prop: 'taxTotal',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'packages',\n        defaultLabel: 'packages',\n        prop: 'packages',\n        type: 'number',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'notes',\n        defaultLabel: 'notes',\n        prop: 'notes',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'ref',\n        defaultLabel: 'ref',\n        prop: 'ref',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'waybill',\n        defaultLabel: 'waybill',\n        prop: 'waybill',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'shop',\n        defaultLabel: 'shop',\n        prop: 'source',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'salesPersons',\n        defaultLabel: 'sales person',\n        prop: 'salesPersons.0.name',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'rewardInclTotal',\n        defaultLabel: 'rewards inclusive total',\n        prop: 'rewardInclTotal',\n        type: 'number',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'discInclTotal',\n        defaultLabel: 'discount amount',\n        prop: 'discInclTotal',\n        type: 'number',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'email',\n        defaultLabel: 'email',\n        prop: 'email',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'taxNumber',\n        defaultLabel: 'tax number',\n        prop: 'taxNumber',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'twEInvoiceCarrierId',\n        defaultLabel: 'tw_eInvoice_carrier_id',\n        prop: 'twEInvoiceCarrierId',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'companyName',\n        defaultLabel: 'tax_companyName',\n        prop: 'companyName',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n        // }, {\n        //   value: 'senderName',\n        //   defaultLabel: 'sender name',\n        //   prop: 'companyName',\n        //   allowedTransforms: ['all'],\n        //   disallowedTransforms: ['index']\n      }, {\n        value: 'senderTelephone',\n        defaultLabel: 'sender telephone',\n        prop: 'companySettings.companyTelephone',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'senderAddress',\n        defaultLabel: 'sender address',\n        prop: 'companySettings.companyAddress',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      },\n      // {\n      //   value: 'senderFax',\n      //   defaultLabel: 'senderFax',\n      //   prop: 'companyFax',\n      //   allowedTransforms: ['all'],\n      //   disallowedTransforms: ['index']\n      // },\n      {\n        value: 'transporterName',\n        defaultLabel: 'transporter',\n        prop: 'transporterLabel',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'transporterAccountName',\n        defaultLabel: 'transporter account',\n        prop: 'transporterAccount',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'transporterAccountNumber',\n        defaultLabel: 'transporter account number',\n        prop: 'transporterAccountNumber',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index']\n      }, {\n        value: 'rewardPointApplied',\n        defaultLabel: 'reward_spent_points',\n        prop: 'rewardPointApplied',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'rewardPointEarned',\n        defaultLabel: 'reward_earned_points',\n        prop: 'rewardPointEarned',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'promoCode',\n        defaultLabel: 'promo code',\n        prop: 'promoCode',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'status',\n        defaultLabel: 'status',\n        prop: 'status',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'dispatchProcess',\n        defaultLabel: 'dispatch status',\n        prop: 'dispatchProcess',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'invoice number',\n        defaultLabel: 'invoice number',\n        prop: 'eInvoices.numbers',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'item',\n        defaultLabel: 'item',\n        item: '',\n        // specific item\n        isDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'shopDotComCommission',\n        defaultLabel: 'shopDotComCommission',\n        prop: 'shopDotComCommission',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'custom',\n        defaultLabel: 'custom',\n        prop: 'custom',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'tableLookup']\n      }, {\n        value: 'country',\n        defaultLabel: 'country',\n        prop: 'addressData.country',\n        checkProp: 'hasAdvancedAddress',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'tableLookup']\n      },\n      // {\n      //   value: 'countryCode',\n      //   defaultLabel: 'countryCode',\n      //   prop: 'addressData.countryCode',\n      //   checkProp: 'hasAdvancedAddress',\n      //   allowedTransforms: ['all'],\n      //   disallowedTransforms: ['index', 'tableLookup']\n      // },\n      {\n        value: 'district',\n        defaultLabel: 'district',\n        prop: 'addressData.district',\n        checkProp: 'hasAdvancedAddress',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'tableLookup']\n      }, {\n        value: 'postCode',\n        defaultLabel: 'postCode',\n        prop: 'addressData.postCode',\n        checkProp: 'hasAdvancedAddress',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'tableLookup']\n      }, {\n        value: 'region',\n        defaultLabel: 'region',\n        prop: 'addressData.region',\n        checkProp: 'hasAdvancedAddress',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'tableLookup']\n      }, {\n        value: 'street',\n        defaultLabel: 'street',\n        prop: 'addressData.street',\n        checkProp: 'hasAdvancedAddress',\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'tableLookup']\n      }, {\n        value: 'itemName',\n        defaultLabel: 'item',\n        prop: 'item',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'product code',\n        defaultLabel: 'product code',\n        prop: 'itemCode',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'qty',\n        defaultLabel: 'qty',\n        prop: 'qty',\n        type: 'number',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'inclusive amount',\n        defaultLabel: 'inclusive amount',\n        prop: 'postDiscInclAmt',\n        type: 'number',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'exclusive amount',\n        defaultLabel: 'exclusive amount',\n        prop: 'postDiscExclAmt',\n        type: 'number',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'exclusive price',\n        defaultLabel: 'exclusive price',\n        prop: 'discExclPrice',\n        type: 'number',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'inclusive price',\n        defaultLabel: 'inclusive price',\n        prop: 'discInclPrice',\n        type: 'number',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'brand',\n        defaultLabel: 'brand',\n        prop: 'brand',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'packagingDimensions',\n        defaultLabel: 'dimensions_concat',\n        prop: 'packagingDimensions',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }, {\n        value: 'weightWithUnit',\n        defaultLabel: 'weight',\n        prop: 'weightWithUnit',\n        isDetail: true,\n        isAutoDetail: true,\n        allowedTransforms: ['all'],\n        disallowedTransforms: ['index', 'concat']\n      }];\n      const availableNormalSpecs = R.map(spec => {\n        const hasLabel = spec.label;\n        if (!hasLabel) {\n          let label = spec.defaultLabel;\n          if (spec?.translate !== false) {\n            label = this.intl.t(spec.defaultLabel);\n          }\n          spec.label = label;\n        }\n        return Ember.Object.create(spec);\n      })(specs);\n      this.set('availableNormalSpecs', availableNormalSpecs);\n    },\n    availableCombineProps: Ember.computed('availableNormalSpecs.[]', function () {\n      return R.pipe(R.propOr([], 'availableNormalSpecs'), R.reject(_nventor.default.isNilOrEmptyDotPath('prop')), R.filter(data => {\n        const dataProp = R_.dotPath('prop', data);\n        return R.is(String, dataProp);\n      }))(this);\n    }),\n    populate(data) {\n      const availableNormalSpecs = this.get('availableNormalSpecs');\n      const dataSpecs = R.pipe(R.propOr([], 'specs'), R.map(R.map(spec => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'specs/child',\n          data: spec,\n          attrs: {\n            availableNormalSpecs\n          }\n        });\n      })))(data);\n      data.specs = dataSpecs;\n      data.originalSpecsStructure = dataSpecs;\n      this._super(...arguments);\n    },\n    columnNames: Ember.computed('_data.specs.[]', 'synced', function () {\n      return R.pipe(R.pathOr([], ['_data', 'specs']), _nventor.default.safeHeadOr([]))(this);\n    }),\n    availableMethods: Ember.computed('_data.{}', function () {\n      return [Ember.Object.create({\n        label: 'byDetails',\n        value: 'byDetails'\n      }), Ember.Object.create({\n        label: 'byAllOrders',\n        value: 'byAllOrders'\n      })];\n    }),\n    addNewRow(data = {}, insertAfterIndex = 0) {\n      let insertAtIndex = 0;\n      if (insertAfterIndex >= 0) {\n        insertAtIndex = parseInt(insertAfterIndex) + 1;\n      }\n      const specs = this.get('_data.specs') || [];\n      if (insertAfterIndex > specs.length) {\n        insertAfterIndex = specs.length;\n      }\n      if (RA.isNilOrEmpty(data)) {\n        data = {\n          value: '',\n          prop: '',\n          label: '',\n          translate: false\n        };\n      }\n      const availableNormalSpecs = this.get('availableNormalSpecs');\n      const newCell = this.dataManager.setAsRecord({\n        adapterName: 'specs/child',\n        data: data,\n        attrs: {\n          availableNormalSpecs\n        }\n      });\n      specs.insertAt(insertAtIndex, RA.list(newCell));\n    },\n    sortedSpecs: Ember.computed('synced', function () {\n      const sortedSpecs = R_.dotPath('_data.specs')(this);\n      return sortedSpecs;\n    })\n  });\n});","define(\"client/pods/status-schedules/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/status-schedules/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @TODO: this is reused by product status schedule and onSaleSchedule and gjs schedule\n  // this should not be reused as the data is different for both\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/status-schedules/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/statuses\", \"client/utils/nventor\"], function (_exports, _model, _statuses, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @TODO: this is reused by product status schedule and onSaleSchedule and gjs schedule\n  // this should not be reused as the data is different for both\n  var _default = _exports.default = _model.default.extend(_statuses.default, {\n    defaults() {\n      return {\n        dateStartZ: '',\n        dateEndZ: '',\n        status: 'active',\n        scheduleId: _nventor.default.random.alphaNum(8),\n        priceDiscounted: '',\n        isOnSale: true\n      };\n    },\n    populate(data, attrs) {\n      this._super(data, attrs);\n    },\n    isActive: Ember.computed('_data.{dateStartZ,dateEndZ,isOnSale}', function () {\n      const nowZ = this.getNowZ();\n      const dateStartZ = this.getData('dateStartZ');\n      const dateEndZ = this.getData('dateEndZ');\n      if (dateStartZ && !dateEndZ && dateStartZ <= nowZ) {\n        return true;\n      }\n      if (dateEndZ && !dateStartZ && dateEndZ >= nowZ) {\n        return true;\n      }\n      if (dateStartZ <= nowZ && dateEndZ >= nowZ) {\n        return true;\n      }\n      return false;\n    }),\n    isActiveNext: Ember.computed('_data.{dateStartZ,dateEndZ}', function () {\n      const nowZ = this.getNowZ();\n      const dateStartZ = this.getData('dateStartZ');\n      if (dateStartZ > nowZ) {\n        return true;\n      }\n      return false;\n    })\n  });\n});","define(\"client/pods/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'active',\n        label: 'active',\n        classNames: 'is-primary',\n        textClassNames: 'has-text-primary'\n      }, {\n        value: 'inactive',\n        label: 'inactive',\n        classNames: 'is-danger',\n        textClassNames: 'has-text-danger'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/storage/service\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * stores to localstorage using the store.js library.\n   * will use other methods in localstorage is not available\n   */\n  // @TODO: test\n  var _default = _exports.default = Ember.Service.extend({\n    userId: '',\n    companyName: '',\n    // init () {\n    //   this._super(...arguments)\n    // },\n\n    setup(companyName, userId) {\n      this.companyName = companyName;\n      this.userId = userId;\n      const keys = this.get('keys') || [];\n      this._set('keys', keys);\n    },\n    wrapWithPrefix(key) {\n      return `${this.companyName}-${this.userId}__${key}`;\n    },\n    setWithPrefix(prefix, key, val, exp) {\n      key = `${prefix}__${key}`;\n      store.set(key, {\n        val: val,\n        exp: exp,\n        time: new Date().getTime()\n      });\n    },\n    getWithPrefix(prefix, key) {\n      key = `${prefix}__${key}`;\n      var info = store.get(key);\n      if (!info) {\n        return null;\n      }\n      if (new Date().getTime() - info.time > info.exp) {\n        // localstorage item has expired, remove and return null\n        store.remove(key);\n        return null;\n      }\n      return info.val;\n    },\n    /**\n     * stores to localstorage\n     * @param {string} keys\n     * @param {mixed} val\n     * @param {integer} exp - expiry in ms\n     */\n    setWithoutPrefix: function (key, val, exp) {\n      this._setWithoutPrefix(key, val, exp);\n\n      // this.updateKeys(key, exp)\n    },\n    /**\n     * stores to localstorage\n     * @param {string} keys\n     * @param {mixed} val\n     * @param {integer} exp - expiry in ms\n     */\n    set(key, val, exp) {\n      this._set(key, val, exp);\n    },\n    _set(key, val, exp) {\n      key = this.wrapWithPrefix(key);\n      store.set(key, {\n        val: val,\n        exp: exp,\n        time: new Date().getTime()\n      });\n    },\n    _setWithoutPrefix: function (key, val, exp) {\n      store.set(key, {\n        val: val,\n        exp: exp,\n        time: new Date().getTime()\n      });\n    },\n    updateKeys(key, exp) {\n      key = this.wrapWithPrefix(key);\n      const keys = this.get('keys') || [];\n      keys.push(key);\n      this._set('keys', keys);\n    },\n    getKeys() {\n      return this.get('keys') || [];\n    },\n    get(key) {\n      key = this.wrapWithPrefix(key);\n      var info = store.get(key);\n      if (!info) {\n        return null;\n      }\n      if (new Date().getTime() - info.time > info.exp) {\n        // localstorage item has expired, remove and return null\n        store.remove(key);\n        return null;\n      }\n      return info.val;\n    },\n    getWithoutPrefix: function (key) {\n      var info = store.get(key);\n      if (!info) {\n        return null;\n      }\n      if (new Date().getTime() - info.time > info.exp) {\n        // localstorage item has expired, remove and return null\n        store.remove(key);\n        return null;\n      }\n      return info.val;\n    },\n    remove(key) {\n      key = this.wrapWithPrefix(key);\n      store.remove(key);\n    },\n    clear() {\n      window.localStorage.clear();\n    }\n\n    // session: {\n    //   set: function (key, value) {\n    //     if(typeof Storage !== \"undefined\") {\n    //       sessionStorage.setItem(key, value);\n    //     }\n    //   },\n    //   get: function (key, defaultValue) {\n    //     if(typeof Storage !== \"undefined\") {\n    //       return sessionStorage.getItem(key) || defaultValue;\n    //     }\n    //   },\n    //   del: function () {\n    //     //@TODO: need to remove key\n    //   }\n    // }\n  });\n});","define(\"client/pods/store-location/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/store-location/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/store-location',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/store-location/details/batch/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/store-location/details/batch',\n    idParam: false,\n    serialize(details) {\n      return R.map(detail => {\n        return this._serialize(detail._data);\n      })(details);\n    },\n    updateIndexes({\n      data,\n      appendPath,\n      serverType\n    }) {\n      const path = this.getFullPath({\n        pathName: 'updatePath',\n        appendPath,\n        serverType\n      });\n      data = R.map(R.pick(['_key', 'index']))(data);\n      data = this._addAdapterInfo(data, appendPath);\n      const payload = {\n        batch: data\n      };\n      try {\n        return this.ajax.PATCH(path, payload);\n      } catch (e) {\n        console.error(e);\n      }\n    }\n  });\n});","define(\"client/pods/store-location/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/store-location/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/store-location/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/store-location/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'description',\n        label: 'description'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/store-location/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'timestampZ_latest',\n        label: 'updated date'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/store-location/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: this.get('constants.status.active'),\n        label: this.get('constants.status.active')\n      }, {\n        value: this.get('constants.status.inactive'),\n        label: this.get('constants.status.inactive')\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/store-location/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          resource: 'api/protected/store-location/lists/menu/actions/dash',\n          component: 'store-location/panels-dash',\n          icon: 'fas fa-table',\n          label: 'overview',\n          action: 'refreshDash',\n          tabType: 'replaceSubTab',\n          className: 'show-when-overflow'\n        }, {\n          resource: 'api/protected/store-location/lists/menu/actions/new',\n          component: 'store-location/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'new',\n          tabType: 'reuseSubTab',\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/store-location/lists/tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/store-location/tags',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/store-location/model\", [\"exports\", \"client/pods/base/model\", \"client/mixins/uploads\", \"client/mixins/statuses\", \"ramda\", \"client/utils/nventor\", \"client/pods/open-hours/model\"], function (_exports, _model, _uploads, _statuses, R, _nventor, _model2) {\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(_uploads.default, _statuses.default, {\n    defaults() {\n      return {\n        index: 0,\n        isShopLocation: false,\n        openHours: {\n          hasBreakTime: false,\n          monday: {},\n          tuesday: {},\n          wednesday: {},\n          thursday: {},\n          friday: {},\n          saturday: {},\n          sunday: {}\n        }\n      };\n    },\n    populate(data, attrs) {\n      data.openHours = this._transformOpenHours(data);\n      this._super(data, attrs);\n    },\n    _transformOpenHours(data) {\n      const defaults = this.defaults() || {};\n      const defaultsOpenHours = defaults.openHours || {};\n      const openHours = R.propOr(defaultsOpenHours, 'openHours')(data);\n      return R.mapObjIndexed((value, key) => {\n        if (R.type(value) === 'Boolean') {\n          return value;\n        }\n        value.name = key;\n        return _nventor.default.createModel(_model2.default, value);\n      })(openHours);\n    },\n    index: Ember.computed('_data.index', function () {\n      return this._data.index;\n    }),\n    displayIndex: Ember.computed('_data.index', function () {\n      return this._data.index; // cannot + 1, because when editing will not +1\n    }),\n    sortedOpenHours: Ember.computed('_data.openHours.monday.{open,close,hasOpeningHours}', '_data.openHours.tuesday.{open,close,hasOpeningHours}', '_data.openHours.wednesday.{open,close,hasOpeningHours}', '_data.openHours.thursday.{open,close,hasOpeningHours}', '_data.openHours.friday.{open,close,hasOpeningHours}', '_data.openHours.saturday.{open,close,hasOpeningHours}', '_data.openHours.sunday.{open,close,hasOpeningHours}', function () {\n      const openHours = this._data.openHours;\n      const weekdays = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'];\n      const sortDays = R.pipe(R.toPairs, R.sortBy(R.pipe(R.head, R.indexOf(R.__, weekdays))), R.fromPairs, R.values, R.reject(day => R.type(day) === 'Boolean'));\n      return sortDays(openHours);\n    }),\n    openDays: Ember.computed('_data.openHours.monday.{open,close}', '_data.openHours.tuesday.{open,close}', '_data.openHours.wednesday.{open,close}', '_data.openHours.thursday.{open,close}', '_data.openHours.friday.{open,close}', '_data.openHours.saturday.{open,close}', '_data.openHours.sunday.{open,close}', function () {\n      const openHours = this._data.openHours;\n      if (openHours) {\n        return R.map(R.ifElse(R.propEq('open', 'none'), R.always({\n          hasOpeningTime: true\n        }), R.always({\n          hasOpeningTime: false\n        })))(openHours);\n      }\n    })\n  });\n});","define(\"client/pods/swatches/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/swatches/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/swatches',\n    modelObj: _model.default,\n    idParam: '_id',\n    async findAll() {\n      const defaults = [{\n        _id: '1',\n        color: '#F6F5F5',\n        isDefault: true\n      }, {\n        _id: '2',\n        color: '#145374',\n        isDefault: true\n      }, {\n        _id: '3',\n        color: '#00334E',\n        isDefault: true\n      }, {\n        _id: '4',\n        color: '#EE6F57',\n        isDefault: true\n      }, {\n        _id: '5',\n        color: '#206A5D',\n        isDefault: true\n      }, {\n        _id: '6',\n        color: '#81B214',\n        isDefault: true\n      }, {\n        _id: '7',\n        color: '#BFDCAE',\n        isDefault: true\n      }, {\n        _id: '8',\n        color: '#F1F1E8',\n        isDefault: true\n      }, {\n        _id: '9',\n        color: '#1B262C',\n        isDefault: true\n      }, {\n        _id: '10',\n        color: '#0F4C75',\n        isDefault: true\n      }, {\n        _id: '11',\n        color: '#00B7C2',\n        isDefault: true\n      }, {\n        _id: '12',\n        color: '#FDCB9E',\n        isDefault: true\n      }, {\n        _id: '13',\n        color: '#B0CAC7',\n        isDefault: true\n      }, {\n        _id: '14',\n        color: '#F7D6BF',\n        isDefault: true\n      }];\n      const list = await this._super(...arguments);\n      return R.concat(defaults, list);\n    }\n  });\n});","define(\"client/pods/swatches/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        color: '#646464'\n      };\n    }\n  });\n});","define(\"client/pods/tabs-manager/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, R, RA, _nventor) {\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;\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 TabsManagerModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _class = class TabsManagerModel extends Ember.Object {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"subTabs\", _descriptor, this);\n      _initializerDefineProperty(this, \"value\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dirty\", _descriptor3, this);\n      _initializerDefineProperty(this, \"errorsTracker\", _descriptor4, this);\n      _initializerDefineProperty(this, \"allDirtyApiErrors\", _descriptor5, this);\n      _initializerDefineProperty(this, \"loadInstructions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"errors\", _descriptor7, this);\n      this.resetTabs();\n    }\n    get errorsTrackerAll() {\n      return this._getErrorsTrackerFromItselfAndChildren(this);\n    }\n    get listName() {\n      return R.pipe(R.propOr('', 'adapterName'), R.replace(/[/]/g, '-'))(this);\n    }\n    get loadInstructionsIsDisplay() {\n      return {\n        loadInstructions: {\n          component: this.loadInstructions.isDisplay,\n          editingComponent: this.loadInstructions.component,\n          value: this.loadInstructions.value\n        }\n      };\n    }\n    get currentErrors() {\n      return this?.errors?.errors || [];\n    }\n    _getErrorsTrackerFromItselfAndChildren(tab) {\n      const errorsTracker = tab.errorsTracker || [];\n      const subTabs = tab?.subTabs || [];\n      const _tracker = R.pipe(R.map(subTab => {\n        const subTabs = R.propOr([], 'subTabs')(subTab);\n        if (subTabs.length > 0) {\n          return this._getErrorsTrackerFromItselfAndChildren(subTab);\n        }\n        return subTab?.errorsTracker || [];\n      }), R.flatten, R.concat(errorsTracker), R.reject(_nventor.default.isNilOrEmpty), R.uniq)(subTabs);\n      errorsTracker.forEach(tracker => {\n        tracker.childTabIds = R.pluck('id')(subTabs) || [];\n      });\n      return _tracker;\n    }\n\n    /**\n     * Use to clear all subTabs\n     * @void\n     */\n    resetTabs() {\n      const tabs = [];\n      tabs._history = [];\n      tabs._closed = [];\n      this.subTabs = tabs;\n    }\n\n    /**\n     * subTabs {Array}\n     * @returns {Array}\n     */\n    get subTabsArray() {\n      return this.subTabs;\n    }\n\n    /**\n     * To refresh guide menu so as to render properly\n     * @param {String} menuId the menuId used to register guide menu\n     * @void\n     */\n    refreshMenu(menuId) {\n      const guideMenuModel = this.get(menuId);\n      if (RA.isNotNilOrEmpty(guideMenuModel)) {\n        guideMenuModel.menu = guideMenuModel.menu || [];\n      }\n    }\n\n    /**\n     * Set the target 'isActive' to true\n     * @param {Object} menuItemModel FormContainerModel || FormContainerSubModel\n     * @void\n     */\n    setMenuItemAsActive(menuItemModel) {\n      Ember.set(menuItemModel, 'showActive', true);\n      const menuId = menuItemModel.menuId;\n      this.refreshMenu(menuId);\n    }\n\n    /**\n     * Set the target 'isActive' to false\n     * @param {Object} menuItemModel FormContainerModel || FormContainerSubModel\n     * @void\n     */\n    setMenuItemAsInactive(menuItemModel) {\n      Ember.set(menuItemModel, 'showActive', false);\n      const menuId = menuItemModel.menuId;\n      this.refreshMenu(menuId);\n    }\n    setErrorTrackerOnModel(errorTracker) {\n      const errorsTracker = this.errorsTracker || [];\n      if (errorsTracker.length === 0) {\n        this.errorsTracker = [errorTracker];\n      } else {\n        errorsTracker.addObject(errorTracker);\n      }\n      errorsTracker.addObject(errorTracker);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"subTabs\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dirty\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"errorsTracker\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"allDirtyApiErrors\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Ember.A([]);\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"loadInstructions\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setErrorTrackerOnModel\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setErrorTrackerOnModel\"), _class.prototype), _class);\n});","// import * as R from 'ramda'\n// import TabsManagerModel from './model'\n// import Service from '@ember/service'\n// import { set, action } from '@ember/object'\n// import { tracked } from '@glimmer/tracking'\n// import OptionsModel from '../options/model'\n// import nventor from '../../utils/nventor'\n\n// // @NOTE: if tab is not toggling between visible=true/false then make sure tagName is set on the component\n\n// // const TabModel = EmberObject.extend({\n// //   init () {\n// //     this._super(...arguments)\n// //\n// //     this.resetTabs()\n// //   },\n// //   resetTabs () {\n// //     const tabs = []\n// //     tabs._history = []\n// //     tabs._closed = []\n// //     this.set('subTabs', tabs)\n// //   },\n// //\n// //   subTabsArray: computed('subTabs.{[],@each.id}', 'tabsUpdated', function () {\n// //     return this.subTabs\n// //   })\n// // })\n\n// export default class TabsManagerService extends Service {\n//   @tracked tabsUpdated = 0\n//   @tracked left\n//   @tracked right\n//   @tracked sidebarRight\n\n//   constructor () {\n//     super(...arguments)\n\n//     this.resetTabs()\n//   }\n\n//   @action\n//   resetTabs () {\n//     this._resetTabs('left')\n//     this._resetTabs('right')\n//     this._resetTabs('sidebarRight')\n//   }\n\n//   _createOptionsModel (tabOptions = []) {\n//     const allTabOptions = Object.assign(...tabOptions)\n\n//     if (!allTabOptions.isModel) {\n//       const TabsManagerModel = OptionsModel.create()\n//       TabsManagerModel.populate(allTabOptions)\n\n//       return TabsManagerModel\n//     }\n\n//     return allTabOptions\n//   }\n\n//   _resetTabs (tabPosition) {\n//     const tabs = []\n//     tabs._history = []\n//     tabs._closed = []\n//     this[tabPosition] = tabs\n//   }\n\n//   @action\n//   openTab (tabPosition, ...tabOptions) {\n//     const tabOptionsModel = this._createOptionsModel(tabOptions)\n//     tabPosition = tabOptionsModel.getData('tabPosition') || tabPosition\n\n//     const tabs = this.get(tabPosition)\n//     const rememberTabScrollTop = true\n//     const tab = this._createTab(tabs, tabOptionsModel, false, rememberTabScrollTop)\n\n//     // set active\n//     this.selectTab(tabs, tab)\n\n//     // if (tabPosition === 'sidebarRight') {\n//     //   const sidebarRight = window.$('.app-grid__sidebar-right')\n//     //   if (!sidebarRight.hasClass('bot-sidebar-right')) {\n//     //     sidebarRight.addClass('bot-sidebar-right')\n//     //   }\n//     // }\n//   }\n\n//   _createTab (tabs, tabOptionsModel, tab = false, rememberTabScrollTop = false) {\n//     const tabOptions = tabOptionsModel._data || {}\n\n//     tabOptions.rememberTabScrollTop = rememberTabScrollTop\n\n//     // let tab\n//     if (tabOptions.tabType === 'singleton') {\n//       // check that tab doesnt already exist\n\n//       let idParam = 'component'\n//       let needle = tabOptions.component\n//       if (tabOptions.id) {\n//         idParam = 'id'\n//         needle = tabOptions.id\n//       }\n//       const isExists = tabs.findBy(idParam, needle)\n\n//       if (isExists) {\n//         if (tabOptions.id) {\n//           if (tabOptions.id === isExists.id) {\n//             return isExists\n//           }\n//         } else {\n//           return isExists\n//         }\n//       }\n//     }\n\n//     if (tabOptions.tabType === 'replace') {\n//       const isExists = tabs.findBy('component', tabOptions.component)\n//       tabs.removeObject(isExists)\n//       this.removeTabFromHistory(tabs, isExists)\n//     }\n\n//     const current = TabsManagerModel.create(tabOptions)\n\n//     let tabId = tabOptions.id\n//     if (!tabId) {\n//       tabId = nventor.random.alphaNum(8)\n//       current.set('id', tabId)\n//     }\n\n//     // @TODO: change id to position\n//     // no longer need id\n//     // id does not work when creating tabs within tabs.\n//     // eg. product tab is created. then new panel is created within product tab.\n//     // it will increment current product tab's id\n//     // const id = this.get('id') + 1;\n//     // this.set('id', id);\n//     // current.set('id', id);\n\n//     // if current model also implements tabs mixin, reset tabs and history so\n//     // that sub tabs will not be shared across other tab instances\n//     // if (current.resetTabs) {\n//     //   current.resetTabs();\n//     // }\n\n//     // tab = current\n\n//     tabs.pushObject(current)\n\n//     if (tab) {\n//       tab.set('tabsUpdated', tabId)\n//     }\n\n//     return current\n//   }\n\n//   @action\n//   selectTab (tabs, tab) {\n//     if (tab) {\n//       const scrollTop = window.$(window).scrollTop()\n//       tabs.forEach(tab => {\n//         if (tab.get('isActive')) {\n//           tab.set('scrollTop', scrollTop)\n//         }\n//         tab.set('isActive', false)\n//       })\n\n//       tab.set('isActive', true)\n\n//       const newScrollTop = tab.get('scrollTop') || 0\n\n//       if (tab.rememberTabScrollTop) {\n//         setTimeout(function () {\n//           window.$(window).scrollTop(newScrollTop)\n//         }, 100)\n//       }\n\n//       this.addTabToHistory(tabs, tab)\n//     }\n//   }\n\n//   @action\n//   getLastSelectedTab (tabs) {\n//     return tabs.get('_history').get('firstObject')\n//   }\n\n//   @action\n//   addTabToHistory (tabs, tab) {\n//     const history = tabs._history\n\n//     history.removeObject(tab)\n//     history.unshiftObject(tab)\n\n//     tabs._history = history\n//   }\n\n//   @action\n//   removeTabFromHistory (tabs, tab) {\n//     const history = tabs._history\n//     history.removeObject(tab)\n//   }\n\n//   @action\n//   addToClosed (tabs, tab) {\n//     const closed = tabs._closed\n//     closed.unshiftObject(tab)\n\n//     tabs._closed = closed\n//   }\n\n//   /**\n//    * close tab\n//    * @param  {object} tab - tab to close\n//    */\n//   @action\n//   closeTab (tabs, tab) {\n//     // @TODO: set isActive=false\n\n//     // remove tab\n//     // set isClosing so that the view can destroy itself\n//     tab.set('isClosing', true)\n//     tabs.removeObject(tab)\n\n//     // remove tab from history\n//     this.removeTabFromHistory(tabs, tab)\n//     this.addToClosed(tabs, tab)\n//     // select next tab in history\n\n//     const lastSelectedTab = this.getLastSelectedTab(tabs)\n//     this.selectTab(tabs, lastSelectedTab)\n\n//     // const sidebarRight = this.get('sidebarRight') || []\n//     // if (sidebarRight.length === 0) {\n//     //   const sidebarRight = window.$('.app-grid__sidebar-right')\n//     //   if (!sidebarRight.hasClass('bot-sidebar-right')) {\n//     //     sidebarRight.removeClass('bot-sidebar-right')\n//     //   }\n//     // }\n//   }\n\n//   @action\n//   recoverLastTab () {\n//     const tabs = this.tabs\n//     const deletedHistory = this.deletedHistory\n\n//     const deleted = deletedHistory.shiftObject()\n\n//     // add deleted tab back\n//     tabs.pushObject(deleted)\n//     this.selectTab(deleted)\n\n//     set(this, 'tabs', tabs)\n//   }\n\n//   @action\n//   getActiveSubTab (tab) {\n//     const subTabs = tab.subTabs || []\n//     // hide all other tabs\n//     return subTabs.findBy('isActive', true) || {}\n//   }\n\n//   @action\n//   isActiveSubTab (tab, data) {\n//     const active = this.getActiveSubTab(tab) || {}\n//     return R.pipe(\n//       R.keys,\n//       R.head,\n//       R.eqProps(R.__, active, data)\n//     )(data)\n//   }\n\n//   @action\n//   reuseSubTab (tab, ...tabOptions) {\n//     const tabOptionsModel = this._createOptionsModel(tabOptions)\n\n//     tabOptionsModel.setData('tabType', 'singleton')\n\n//     const subTabs = tab.subTabs\n//     const subTab = this._createTab(subTabs, tabOptionsModel, tab)\n\n//     this.selectTab(subTabs, subTab)\n\n//     set(tab, 'subTabs', subTabs)\n//   }\n\n//   @action\n//   appendSubTab (tab, ...tabOptions) {\n//     const tabOptionsModel = this._createOptionsModel(tabOptions)\n\n//     tabOptionsModel.setData('tabType', 'append')\n\n//     const subTabs = tab.subTabs\n\n//     const subTab = this._createTab(subTabs, tabOptionsModel, tab)\n\n//     this.selectTab(subTabs, subTab)\n\n//     set(tab, 'subTabs', subTabs)\n//   }\n\n//   @action\n//   replaceSubTab (tab, ...tabOptions) {\n//     const tabOptionsModel = this._createOptionsModel(tabOptions)\n\n//     tabOptionsModel.setData('tabType', 'replace')\n\n//     const subTabs = tab.subTabs\n\n//     const subTab = this._createTab(subTabs, tabOptionsModel, tab)\n\n//     this.selectTab(subTabs, subTab)\n\n//     set(tab, 'subTabs', subTabs)\n\n//     return subTabs\n//   }\n\n//   @action\n//   getLoadInstructions (tab) {\n//     const loadInstructions = tab.get('loadInstructions')\n\n//     if (loadInstructions) {\n//       return nventor.createModel(OptionsModel, loadInstructions)\n//     }\n\n//     return false\n//   }\n\n//   @action\n//   triggerMenuAction (component, menu) {\n//     const handler = R.path(['_data', 'action'])(menu)\n//     if (handler) {\n//       return component[action](menu)\n//     }\n//   }\n\n//   @action\n//   displaySubPanel (component, resourceData = {}) {\n//     const tabType = resourceData.getData('tabType') || 'replaceSubTab'\n//     const tabOptions = resourceData._data || {}\n//     const subTabOptions = R.mergeRight({}, tabOptions)\n//     const tab = component.tab || component.args.tab\n\n//     this[tabType](tab, subTabOptions)\n//   }\n// }\ndefine(\"client/pods/tabs-manager/service-new-but-doesnt-work\", [], function () {\n  \"use strict\";\n});","define(\"client/pods/tabs-manager/service\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"client/pods/tabs-manager/model\", \"client/pods/options/model\", \"client/pods/form-container/model\", \"client/pods/form-container/form-container-sub/model\", \"client/pods/guide-menu/model\", \"client/utils/nventor\"], function (_exports, R, RA, R_, _model, _model2, _model3, _model4, _model5, _nventor) {\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, _dec0, _dec1, _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, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _obj;\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  // @NOTE: if tab is not toggling between visible=true/false then make sure tagName is set on the component\n\n  // const TabModel = EmberObject.extend({\n  //   init () {\n  //     this._super(...arguments)\n  //\n  //     this.resetTabs()\n  //   },\n  //   resetTabs () {\n  //     const tabs = []\n  //     tabs._history = []\n  //     tabs._closed = []\n  //     this.set('subTabs', tabs)\n  //   },\n  //\n  //   subTabsArray: computed('subTabs.{[],@each.id}', 'tabsUpdated', function () {\n  //     return this.subTabs\n  //   })\n  // })\n\n  const self = (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _dec31 = Ember._action, _dec32 = Ember._action, _dec33 = Ember._action, _dec34 = Ember._action, _dec35 = Ember._action, _dec36 = Ember._action, _dec37 = Ember._action, _dec38 = Ember._action, _dec39 = Ember._action, _dec40 = Ember._action, _dec41 = Ember._action, _dec42 = Ember._action, _dec43 = Ember._action, _dec44 = Ember._action, _dec45 = Ember._action, _dec46 = Ember._action, _dec47 = Ember._action, _dec48 = Ember._action, _dec49 = Ember._action, _dec50 = Ember._action, _dec51 = Ember._action, _obj = {\n    crud: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    tabsUpdated: 0,\n    init() {\n      this._super(...arguments);\n      this.resetTabs();\n    },\n    getMasterTab(tabPosition = 'left') {\n      const masterTab = this.getTabs(tabPosition);\n      return this.getActiveTab(masterTab);\n    },\n    copyTab({\n      tab\n    }) {\n      if (!tab) {\n        _nventor.default.throw('tabsManager:Service:copyTab: no tab found');\n      }\n      const tabOptions = tab?._tabOptions || {};\n      tabOptions.id = null;\n      return this._createTabModel(tabOptions);\n    },\n    registerMenu({\n      tab,\n      menuId = '',\n      label = '',\n      parentLabel = '',\n      type = '',\n      className\n    } = {}) {\n      if (tab?.get) {\n        let guideMenu = tab.get(menuId);\n        if (RA.isNilOrEmpty(guideMenu)) {\n          guideMenu = _model5.default.create({\n            menu: []\n          });\n        }\n        const menu = guideMenu?.menu || [];\n        let containerModel = {};\n        if (type === 'container') {\n          containerModel = R.find(R.propEq('label', label))(menu) || {};\n          if (RA.isNilOrEmpty(containerModel)) {\n            containerModel = _model3.default.create({\n              label,\n              className,\n              menuId,\n              showActive: false,\n              sub: []\n            });\n            menu.pushObject(containerModel);\n          } else {\n            if (!containerModel.className) {\n              containerModel.set('className', className);\n            } else if (containerModel.className !== className) {\n              _nventor.default.throw(`Intend to overwrite existing className '${containerModel.className}' with '${className}'!!`);\n            }\n          }\n        }\n        if (type === 'sub') {\n          containerModel = R.find(R.propEq('label', parentLabel))(menu) || {};\n          if (RA.isNilOrEmpty(containerModel)) {\n            const subModel = _model4.default.create({\n              label,\n              className,\n              menuId,\n              showActive: false\n            });\n            containerModel = _model3.default.create({\n              label: parentLabel,\n              showActive: false,\n              menuId,\n              sub: [subModel]\n            });\n            menu.pushObject(containerModel);\n          } else {\n            if (!containerModel?.sub) {\n              containerModel.sub = [];\n            }\n            const existingSubModel = R.find(R.propEq('label', label))(containerModel.sub);\n            if (RA.isNotNilOrEmpty(existingSubModel)) {\n              if (!existingSubModel?.className) {\n                Ember.set(existingSubModel, 'className', className);\n              } else if (existingSubModel.className !== className) {\n                _nventor.default.throw(`Intend to overwrite existing className '${existingSubModel.className}' with '${className}'!!`);\n              }\n            } else {\n              const subModel = _model4.default.create({\n                label,\n                className,\n                menuId,\n                showActive: false\n              });\n              containerModel.sub.push(subModel);\n            }\n          }\n        }\n        Ember.set(guideMenu, 'menu', menu);\n        Ember.set(tab, menuId, guideMenu);\n        return containerModel;\n      }\n    },\n    registerErrors({\n      dirty = null,\n      parentTab = {},\n      tab = {}\n    } = {}) {\n      this._loadAllSubtabs({\n        tab\n      });\n      Ember.run.scheduleOnce('afterRender', () => {\n        this._setTabsErrors(dirty);\n      });\n    },\n    _loadAllSubtabs({\n      tab\n    }) {\n      const activeTab = this.getActiveSubTab(tab);\n      if (RA.isNilOrEmpty(activeTab)) {\n        return;\n      }\n      const tabAdapterName = activeTab?.adapterName || tab?.adapterName;\n      if (!tabAdapterName) {\n        return;\n      }\n      const subPanelsId = this.crud.getListId({\n        adapterName: tabAdapterName\n      });\n      if (RA.isNilOrEmpty(subPanelsId)) {\n        return;\n      }\n      let subPanels = this.crud.lists[subPanelsId];\n      if (RA.isNilOrEmpty(subPanels)) {\n        return;\n      }\n      R.forEach(subPanel => {\n        const hasSubTabs = subPanel?._data?.hasSubTabs || false;\n        if (hasSubTabs) {\n          const parentTab = R.pipe(R.propOr([], 'subTabs'), R.find(R.propEq('adapterName', subPanel.adapterName)))(tab);\n          const subTabsAdapter = subPanel?._data?.subTabsAdapter;\n          if (subTabsAdapter && parentTab) {\n            const activeTab = this.getActiveSubTab(parentTab);\n            const subPanelSubTab = this.crud.getListId({\n              adapterName: subTabsAdapter\n            });\n            const subPanelSubTabs = this.crud.lists[subPanelSubTab];\n            this._loadTabs({\n              tab: parentTab,\n              subPanels: subPanelSubTabs,\n              activeTab\n            });\n          }\n        }\n      })(subPanels);\n      this._loadTabs({\n        tab,\n        subPanels,\n        activeTab\n      });\n    },\n    _loadTabs({\n      tab,\n      subPanels,\n      activeTab\n    }) {\n      const activeSubTab = activeTab?.value;\n      const index = R.findIndex(R.pathEq(['_data', 'value'], activeSubTab))(subPanels);\n      const activePanelModel = subPanels[index];\n      subPanels = R.remove(index, 1, subPanels);\n      subPanels = R.append(activePanelModel, subPanels);\n      for (const subPanel of subPanels) {\n        const component = subPanel?._data?.component;\n        if (RA.isNotNilOrEmpty(component)) {\n          const subTabOptions = R.pipe(R.propOr({}, '_data'), R.pick(['component', 'value', 'label']))(subPanel);\n          this.reuseSubTab(tab, subTabOptions);\n        }\n      }\n    },\n    _setTabsErrors(dirty) {\n      if (!dirty) {\n        return;\n      }\n      const elementsWithValidation = self._getElementsWithValidation({\n        dirty\n      });\n      if (RA.isNilOrEmpty(elementsWithValidation)) {\n        return;\n      }\n      const apiErrorsAll = dirty?.apiErrors || [];\n      R.pipe(R.groupBy(e => e.getAttribute('data-validation')), R.toPairs, R.map(group => {\n        const context = group[0];\n        const elements = group[1];\n        if (!context) {\n          return {};\n        }\n        if (RA.isNilOrEmpty(elements)) {\n          return {};\n        }\n        try {\n          this._setElementsErrors({\n            dirty,\n            context,\n            elements,\n            apiErrorsAll\n          });\n          return group;\n        } catch (e) {\n          return console.log(e);\n        }\n      }), R.reject(RA.isNilOrEmpty))(elementsWithValidation);\n      this._setTabsErrorsMarker({\n        dirty,\n        apiErrorsAll\n      });\n    },\n    _getElementsWithValidation({\n      dirty\n    }) {\n      let panelGridElements = document.querySelectorAll(`[data-form-id='${dirty.instanceId}']`);\n      return R.pipe(R.map(panelGridElement => {\n        // let panelGridElement = document.querySelector(`[data-form-id='${dirty.instanceId}']`)\n\n        let dataTabsContentElements = [];\n        if (!panelGridElement) {\n          const modalDialog = document.querySelectorAll('.modal-dialog');\n          if (modalDialog.length > 0) {\n            dataTabsContentElements = modalDialog;\n          }\n        } else {\n          dataTabsContentElements = panelGridElement.querySelectorAll('[data-tabs-content][data-tabs-content-parent=false]');\n\n          // currently used by simple editor focus element\n          // need to check for other possibilities\n          if (R.length(dataTabsContentElements) === 0) {\n            dataTabsContentElements = [panelGridElement];\n          }\n        }\n        if (!panelGridElement && R.length(dataTabsContentElements) === 0) {\n          console.error('panelGridElement not found. ensure panel grid has data-form-id attribute');\n          return;\n        }\n        if (R.length(dataTabsContentElements) === 0) {\n          const documentContainer = panelGridElement.querySelector('.form-container');\n          dataTabsContentElements = [documentContainer];\n          const tagName = panelGridElement?.tagName;\n          if (tagName === 'TR') {\n            dataTabsContentElements = [panelGridElement];\n          }\n        }\n        return R.pipe(R.map(e => {\n          return e.querySelectorAll('[data-validation]');\n        }), R.flatten)(dataTabsContentElements) || [];\n      }), R.flatten)(panelGridElements);\n    },\n    resetErrorsWrappers(dirty) {\n      let elementsWithDataValidation;\n      if (dirty.instanceId) {\n        elementsWithDataValidation = this._getElementsWithValidation({\n          dirty\n        });\n      }\n      if (!elementsWithDataValidation) {\n        console.error('element not found. ensure form has data-form-id attribute');\n        return;\n      }\n      elementsWithDataValidation.forEach(element => {\n        const errorMessageElement = element.querySelector('.error-message');\n        if (errorMessageElement) {\n          errorMessageElement.innerHTML = '';\n        }\n      });\n    },\n    _getErrorWrapperElements(element, context) {\n      if (R.includes('.', context)) {\n        return element.querySelector(`.${R.replace(/\\./g, '\\\\.')(context)}-error`);\n      }\n      return element.querySelector(`.${context}-error`);\n    },\n    _setElementsErrors({\n      dirty,\n      context,\n      elements,\n      apiErrorsAll\n    }) {\n      // elements need to be more than 1\n      // it possible single element has path.nextPath (settings.label) for single element\n      if (R.includes('.')(context) && R.length(elements) > 1) {\n        this._setMultipleElementsErrors({\n          dirty,\n          context,\n          elements,\n          apiErrorsAll\n        });\n        return;\n      }\n      this._setSingleElementErrors({\n        dirty,\n        context,\n        elements,\n        apiErrorsAll\n      });\n    },\n    _setSingleElementErrors({\n      dirty,\n      context,\n      elements,\n      apiErrorsAll\n    }) {\n      const element = elements[0];\n      const error = this._getSingleElementError({\n        dirty,\n        context,\n        apiErrorsAll\n      });\n      if (error) {\n        const errorElement = this._getErrorWrapperElements(element, context);\n        errorElement.innerHTML = `<i class='fas fa-exclamation-circle'></i> ${this.intl.t(error.message)}`;\n      }\n    },\n    _getSingleElementError({\n      dirty,\n      context,\n      apiErrorsAll\n    }) {\n      const openTopLevelGroupIndex = dirty?.tabsManagerOpenTopLevelGroupIndex;\n      return R.find(error => {\n        const contextKey = R.path(['context', 'key'])(error);\n        let contextLabel = R.path(['context', 'label'])(error);\n        const isNotArrayExtension = R.test(/\\[\\d+\\]/)(contextLabel);\n        if (isNotArrayExtension) {\n          // Same open-BD gate as _getElementIndexForError: reject sibling top-level\n          // indexes before stripping [N], so bulkDiscounts[1].name does not paint\n          // onto the open BD[0] single-field input.\n          if (RA.isNotNil(openTopLevelGroupIndex) && openTopLevelGroupIndex >= 0) {\n            const pathIndexes = R.match(/\\d+(?=\\])/g)(contextLabel || '');\n            const topLevelIndex = Number(R.head(pathIndexes));\n            if (RA.isNotNilOrEmpty(pathIndexes) && topLevelIndex !== Number(openTopLevelGroupIndex)) {\n              return false;\n            }\n          }\n          contextLabel = R.replace(/[0-9\\[\\]]/g, '')(contextLabel);\n        }\n        if (R.includes('.', context)) {\n          // for context with '.' (details.item.name) shoud match by label not key\n          return contextLabel === context;\n        }\n\n        // if contextKey is not the same as contextLabel, then should always use contextLabel (more specific)\n        // seems old require schema (from joi) doesn't have context.label, only context.key\n        if (contextKey !== contextLabel && RA.isNotNilOrEmpty(contextLabel)) {\n          return contextLabel === context;\n        }\n\n        // unique error only has context.key, does not have context.label\n        return contextLabel === context || contextKey === context;\n      })(apiErrorsAll);\n    },\n    _setMultipleElementsErrors({\n      dirty,\n      context,\n      elements,\n      apiErrorsAll\n    }) {\n      const {\n        dataWithElementIndex,\n        matchByTopLevelGroupRelativeIndex\n      } = this._setElementsIndexOnDirty({\n        dirty,\n        context,\n        elements\n      });\n      const openTopLevelGroupIndex = dirty?.tabsManagerOpenTopLevelGroupIndex;\n      elements.forEach((element, index) => {\n        const error = R.pipe(R.map(error => {\n          const errorContextLabel = R.path(['context', 'label'])(error);\n          const isNotArrayExtension = R.test(/\\[\\d+\\]/)(errorContextLabel);\n          if (isNotArrayExtension) {\n            return this._getMultipleElementsErrorWithoutArrayExtension({\n              error,\n              context,\n              dataWithElementIndex,\n              elementIndex: index,\n              matchByTopLevelGroupRelativeIndex,\n              openTopLevelGroupIndex\n            });\n          }\n          return this._getMultipleElementsErrorWithArrayExtension({\n            error,\n            context,\n            dataWithElementIndex,\n            elementIndex: index\n          });\n        }), R.reject(RA.isNilOrEmpty), R.head)(apiErrorsAll);\n        if (error) {\n          const errorElement = this._getErrorWrapperElements(element, context);\n          errorElement.innerHTML = `<i class='fas fa-exclamation-circle'></i> ${this.intl.t(error.message)}`;\n        }\n      });\n    },\n    _getDataAtContextKey(data, contextKey) {\n      if (RA.isArray(data)) {\n        return R.pipe(R.map(item => this._getDataAtContextKey(item, contextKey)), R.reject(R.isNil))(data);\n      }\n      if (RA.isObj(data)) {\n        return R.prop(contextKey)(data);\n      }\n      return data;\n    },\n    _assignResultIndexes(data, startIndex = 0) {\n      if (RA.isArray(data)) {\n        return R.reduce((nextIndex, item) => this._assignResultIndexes(item, nextIndex), startIndex)(data);\n      }\n      if (RA.isObj(data)) {\n        data.resultIndex = startIndex;\n        return startIndex + 1;\n      }\n      return startIndex;\n    },\n    /**\n     * True when a trailing list row is an omitted blank input (null/empty fields only).\n     * Used so `_dropTrailingEmptyInputs` never strips real sibling bulk-discount rules.\n     * @param {*} item Leaf list row\n     * @returns {boolean}\n     */\n    _isTrailingEmptyInput(item) {\n      if (RA.isNilOrEmpty(item)) {\n        return true;\n      }\n      if (!RA.isObj(item)) {\n        return false;\n      }\n      const fieldValues = R.pipe(R.omit(['resultIndex']), R.values)(item);\n      return R.all(RA.isNilOrEmpty)(fieldValues);\n    },\n    /**\n     * UI often omits the trailing blank row (details / tags / rules). Drop that\n     * empty slot from each leaf list so resultIndex lines up with elements.\n     * Only drops when the last row is actually empty — never strips filled rules\n     * (e.g. multi-BD modal with equal sibling rule counts).\n     * @param {*} data Nested arrays/objects from _getDataAtContextKey\n     * @returns {*} Data with trailing empty inputs removed from leaf arrays\n     */\n    _dropTrailingEmptyInputs(data) {\n      if (!RA.isArray(data)) {\n        return data;\n      }\n      const first = R.head(data);\n      if (RA.isArray(first)) {\n        return R.map(item => this._dropTrailingEmptyInputs(item))(data);\n      }\n      if (!this._isTrailingEmptyInput(R.last(data))) {\n        return data;\n      }\n      return R.dropLast(1)(data);\n    },\n    /**\n     * Flatten nested list-of-lists down to leaf row objects (rules / tags / details).\n     * @param {*} data Nested arrays/objects from _getDataAtContextKey\n     * @returns {Object[]}\n     */\n    _flattenLeafObjects(data) {\n      if (!RA.isArray(data)) {\n        if (RA.isObj(data)) {\n          return [data];\n        }\n        return [];\n      }\n      const first = R.head(data);\n      if (RA.isArray(first)) {\n        return R.chain(item => this._flattenLeafObjects(item))(data);\n      }\n      return R.filter(RA.isObj)(data);\n    },\n    /**\n     * Map an API error path onto a DOM element index.\n     * When the form only renders one top-level sibling (campaign BD modal), use the\n     * leaf offset within that sibling so bulkDiscounts[N]…rules[0] → elementIndex 0\n     * for the open BD only — sibling BD errors must not paint on the open form.\n     * @param {Object} args\n     * @param {*} args.dataWithElementIndex\n     * @param {string[]} args.indexes Path indexes from the error label\n     * @param {Object} args.errorNode Walked leaf row\n     * @param {boolean} args.matchByTopLevelGroupRelativeIndex\n     * @param {number|undefined|null} args.openTopLevelGroupIndex Campaign BD index open in the modal\n     * @returns {number|undefined}\n     */\n    _getElementIndexForError({\n      dataWithElementIndex,\n      indexes,\n      errorNode,\n      matchByTopLevelGroupRelativeIndex,\n      openTopLevelGroupIndex\n    }) {\n      if (matchByTopLevelGroupRelativeIndex && RA.isArray(dataWithElementIndex) && RA.isArray(R.head(dataWithElementIndex)) && RA.isNotNilOrEmpty(indexes)) {\n        const topLevelIndex = Number(R.head(indexes));\n        if (RA.isNotNil(openTopLevelGroupIndex) && openTopLevelGroupIndex >= 0 && topLevelIndex !== Number(openTopLevelGroupIndex)) {\n          return;\n        }\n        const group = R.nth(topLevelIndex)(dataWithElementIndex);\n        const leaves = this._flattenLeafObjects(group);\n        const relativeIndex = R.findIndex(leaf => leaf === errorNode)(leaves);\n        if (relativeIndex >= 0) {\n          return relativeIndex;\n        }\n      }\n      return errorNode?.resultIndex;\n    },\n    _setElementsIndexOnDirty({\n      dirty,\n      context,\n      elements\n    }) {\n      const contexts = R.pipe(R.split('.'), R.dropLast(1))(context);\n      let dataWithElementIndex = dirty;\n      const hasData = RA.isNotNilOrEmpty(dirty._data);\n      if (hasData) {\n        dataWithElementIndex = dirty.serialize();\n      }\n      contexts.forEach(contextKey => {\n        dataWithElementIndex = this._getDataAtContextKey(dataWithElementIndex, contextKey);\n      });\n\n      // when ui does not show the trailing empty input row\n      const allResultsLength = R.pipe(R.flatten, R.length)(dataWithElementIndex);\n      let matchByTopLevelGroupRelativeIndex = false;\n      if (allResultsLength !== R.length(elements)) {\n        const withoutTrailingEmptyInputs = this._dropTrailingEmptyInputs(dataWithElementIndex);\n        const droppedResultsLength = R.pipe(R.flatten, R.length)(withoutTrailingEmptyInputs);\n\n        // Keep the drop only when it explains the DOM count (trailing blanks).\n        // Campaign modal saves serialize every bulk discount while the form only\n        // renders one — mismatch is sibling lists, not empty rows.\n        if (droppedResultsLength === R.length(elements)) {\n          dataWithElementIndex = withoutTrailingEmptyInputs;\n        } else {\n          matchByTopLevelGroupRelativeIndex = true;\n        }\n      }\n      this._assignResultIndexes(dataWithElementIndex);\n      return {\n        dataWithElementIndex,\n        matchByTopLevelGroupRelativeIndex\n      };\n    },\n    _getMultipleElementsErrorWithoutArrayExtension({\n      error,\n      context,\n      dataWithElementIndex,\n      elementIndex,\n      matchByTopLevelGroupRelativeIndex = false,\n      openTopLevelGroupIndex\n    }) {\n      const errorContextLabel = R.pathOr('', ['context', 'label'])(error);\n      const noIndexErrorContextLabel = R.replace(/[0-9\\[\\]]/g, '')(errorContextLabel);\n      const hasError = R.equals(noIndexErrorContextLabel, context);\n      if (hasError) {\n        const indexes = R.match(/\\d+(?=\\])/g)(errorContextLabel);\n        let parentData = dataWithElementIndex;\n        R.forEach(index => {\n          parentData = R.propOr({}, index)(parentData);\n        })(indexes);\n        const errorPosition = this._getElementIndexForError({\n          dataWithElementIndex,\n          indexes,\n          errorNode: parentData,\n          matchByTopLevelGroupRelativeIndex,\n          openTopLevelGroupIndex\n        });\n        if (errorPosition === elementIndex) {\n          return error;\n        }\n      }\n      return {};\n    },\n    _getMultipleElementsErrorWithArrayExtension({\n      error,\n      context,\n      dataWithElementIndex,\n      elementIndex\n    }) {\n      const hasError = R.anyPass([R.pathEq(['context', 'key'], context), R.pathEq(['context', 'label'], context)])(error);\n      if (hasError) {\n        const parentIndex = error.parentIndex;\n        if (parentIndex) {\n          const errorIndex = error.index;\n          const parentData = R.propOr([], parentIndex)(dataWithElementIndex);\n          const errorPosition = R.pathOr('', [errorIndex, 'resultIndex'])(parentData);\n          if (errorPosition === elementIndex) {\n            return error;\n          }\n          return {};\n        }\n        if (error.index === elementIndex) {\n          return error;\n        }\n        return {};\n      }\n      return {};\n    },\n    _setTabsErrorsMarker({\n      dirty,\n      apiErrorsAll = []\n    }) {\n      // tabs error counter\n      const panelGridElement = document.querySelector(`[data-form-id='${dirty.instanceId}']`);\n      if (!panelGridElement) {\n        return;\n      }\n      const tabElements = panelGridElement.querySelectorAll('.panel-grid__content .tab-parent-container');\n      tabElements.forEach(tabElement => {\n        const inputsWithValidation = tabElement.querySelectorAll('[data-validation]');\n        let errorTotal = 0;\n        inputsWithValidation.forEach(element => {\n          const context = element.getAttribute('data-validation');\n          const error = this._getSingleElementError({\n            dirty,\n            context,\n            apiErrorsAll\n          });\n          if (RA.isNotNilOrEmpty(error)) {\n            errorTotal++;\n          }\n          const subTabValue = tabElement.getAttribute('data-tabs-content');\n          const tabHeaderBadge = panelGridElement.querySelector(`[data-tabs-header='${subTabValue}'] .u-tab-menu__item-error`);\n          if (tabHeaderBadge) {\n            if (errorTotal > 0) {\n              tabHeaderBadge.classList.replace('u-display-none', 'u-inline-block');\n            } else {\n              tabHeaderBadge.classList.replace('u-inline-block', 'u-display-none');\n            }\n          }\n        });\n      });\n    },\n    clearErrors(tab = {}) {\n      const hasErrors = tab.errors;\n      if (hasErrors) {\n        Ember.set(tab, 'errors', null);\n      }\n    },\n    hasTabs(tabs = []) {\n      const tabsLength = Number(tabs?.length) || 0;\n      if (tabsLength > 0) {\n        return true;\n      }\n      return false;\n    },\n    tabsLength(tabs = []) {\n      const tabsLength = Number(tabs?.length) || 0;\n      return tabsLength;\n    },\n    resetTabs() {\n      this._resetTabs('left');\n      this._resetTabs('right');\n      this._resetTabs('sidebarRight');\n    },\n    setHeader(tab, header = '') {\n      if (tab) {\n        tab.set('header', R.take(30)(header));\n      }\n    },\n    _createOptionsModel(tabOptions = []) {\n      const allTabOptions = Object.assign(...tabOptions);\n      if (!allTabOptions.isModel) {\n        const TabsManagerModel = _model2.default.create();\n        TabsManagerModel.populate(allTabOptions);\n        return TabsManagerModel;\n      }\n      return allTabOptions;\n    },\n    _resetTabs(tabPosition) {\n      const tabs = [];\n      tabs._history = [];\n      tabs._closed = [];\n      this.set(tabPosition, tabs);\n    },\n    getTabs(tabPosition) {\n      return this.get(tabPosition) || [];\n    },\n    openTab(tabPosition, ...tabOptions) {\n      const tabOptionsModel = this._createOptionsModel(tabOptions);\n      tabPosition = tabOptionsModel.getData('tabPosition') || tabPosition;\n      const tabs = this.get(tabPosition);\n      const rememberTabScrollTop = true;\n      const tab = this._createTab(tabs, tabOptionsModel, false, rememberTabScrollTop);\n\n      // set active\n      this.selectTab(tabs, tab);\n\n      // if (tabPosition === 'sidebarRight') {\n      //   const sidebarRight = window.$('.app-grid__sidebar-right')\n      //   if (!sidebarRight.hasClass('bot-sidebar-right')) {\n      //     sidebarRight.addClass('bot-sidebar-right')\n      //   }\n      // }\n    },\n    _createTabModel(tabOptions) {\n      const tab = _model.default.create(tabOptions);\n      tab.set('_tabOptions', tabOptions);\n      let tabId = tabOptions.id;\n      if (!tabId) {\n        tabId = _nventor.default.random.alphaNum(8);\n        tab.set('id', tabId);\n      }\n      tab.set('value', tabOptions.value);\n      return tab;\n    },\n    _createTab(tabs, tabOptionsModel, tab = false, rememberTabScrollTop = true) {\n      const tabOptions = R.pathOr({}, ['_data'])(tabOptionsModel);\n      if (RA.isNilOrEmpty(tabOptions.rememberTabScrollTop)) {\n        tabOptions.rememberTabScrollTop = rememberTabScrollTop;\n      }\n\n      // let tab\n      if (tabOptions.tabType === 'singleton') {\n        // check that tab doesnt already exist\n\n        let idParam = 'component';\n        let needle = tabOptions.component;\n        if (tabOptions.containerId && tabOptions.value) {\n          idParam = 'containerId';\n          needle = tabOptions.value;\n        }\n        if (tabOptions.id) {\n          idParam = 'id';\n          needle = tabOptions.id;\n        }\n        const isExists = tabs.findBy(idParam, needle);\n        if (isExists) {\n          if (tabOptions.id) {\n            if (tabOptions.id === isExists.id) {\n              return isExists;\n            }\n          } else {\n            return isExists;\n          }\n        }\n      }\n\n      // replace has been deprecated, use replaceSubTab\n      if (tabOptions.tabType === 'replaceSubTab' || tabOptions.tabType === 'replace') {\n        const isExists = tabs.findBy('component', tabOptions.component);\n        tabs.removeObject(isExists);\n        this.removeTabFromHistory(tabs, isExists);\n      }\n      const current = this._createTabModel(tabOptions);\n\n      // @TODO: change id to position\n      // no longer need id\n      // id does not work when creating tabs within tabs.\n      // eg. product tab is created. then new panel is created within product tab.\n      // it will increment current product tab's id\n      // const id = this.get('id') + 1;\n      // this.set('id', id);\n      // current.set('id', id);\n\n      // if current model also implements tabs mixin, reset tabs and history so\n      // that sub tabs will not be shared across other tab instances\n      // if (current.resetTabs) {\n      //   current.resetTabs();\n      // }\n\n      // tab = current\n\n      tabs.pushObject(current);\n      if (tab) {\n        tab.set('tabsUpdated', Math.random());\n      }\n      return current;\n    },\n    selectTab(tabs, tab, isModal = false) {\n      if (tab) {\n        const scrollTop = window.pageYOffset;\n        tabs.forEach(tab => {\n          if (tab.get('isActive')) {\n            tab.set('scrollTop', scrollTop);\n          }\n          tab.set('isActive', false);\n        });\n        tab.set('isActive', true);\n        const newScrollTop = tab.get?.('scrollTop') || 0;\n        if (!isModal) {\n          Ember.run.scheduleOnce('afterRender', () => {\n            if (tab?.rememberTabScrollTop) {\n              window.scrollTo({\n                top: newScrollTop,\n                behavior: 'smooth'\n              });\n            } else {\n              window.scrollTo({\n                top: 0,\n                behavior: 'auto'\n              });\n            }\n          });\n        }\n        this.addTabToHistory(tabs, tab);\n      }\n    },\n    getLastSelectedTab(tabs) {\n      return tabs.get('_history').get('firstObject');\n    },\n    addTabToHistory(tabs, tab) {\n      const history = tabs._history;\n      history.removeObject(tab);\n      history.unshiftObject(tab);\n    },\n    removeTabFromHistory(tabs, tab) {\n      const history = tabs._history;\n      history.removeObject(tab);\n    },\n    addToClosed(tabs, tab) {\n      const closed = tabs._closed;\n      closed.unshiftObject(tab);\n    },\n    closeAllSubTabs(subTabs) {\n      const subTabsClone = R.clone(subTabs);\n      R.forEach(subTabClone => {\n        const subTab = subTabs.findBy('id', subTabClone.id);\n        self.closeTab(subTabs, subTab);\n      })(subTabsClone);\n    },\n    closeTab(tabs = [], tab = {}) {\n      // @TODO: set isActive=false\n\n      // remove tab\n      // set isClosing so that the view can destroy itself\n      tab.set('isClosing', true);\n      tabs.removeObject(tab);\n\n      // remove tab from history\n      this.removeTabFromHistory(tabs, tab);\n      this.addToClosed(tabs, tab);\n      // select next tab in history\n\n      const lastSelectedTab = this.getLastSelectedTab(tabs);\n      this.selectTab(tabs, lastSelectedTab);\n\n      // const sidebarRight = this.get('sidebarRight') || []\n      // if (sidebarRight.length === 0) {\n      //   const sidebarRight = window.$('.app-grid__sidebar-right')\n      //   if (!sidebarRight.hasClass('bot-sidebar-right')) {\n      //     sidebarRight.removeClass('bot-sidebar-right')\n      //   }\n      // }\n    },\n    recoverLastTab() {\n      const tabs = this.tabs;\n      const deletedHistory = this.deletedHistory;\n      const deleted = deletedHistory.shiftObject();\n\n      // add deleted tab back\n      tabs.pushObject(deleted);\n      this.selectTab(deleted);\n    },\n    getPath(tabsManagerModel = this, path = []) {\n      const tabs = R.pathOr([], ['left'])(tabsManagerModel);\n      const index = R.pipe(R.pathOr([], [...path]), R.findIndex(R.propEq('isActive', true)))(tabs);\n      if (index === -1) {\n        return path;\n      }\n      path.push(index);\n      path.push('subTabs');\n      const hasSubTabs = R.pipe(R.pathOr([], path), R.isEmpty, R.not)(tabs);\n      if (hasSubTabs) {\n        return this.getPath(tabsManagerModel, path);\n      }\n    },\n    getOuterMostTab() {\n      const [index] = this.getPath();\n      return R.pathOr({}, ['left', index])(this);\n    },\n    getActiveMenuByActiveTab(tabsArray, menu) {\n      const length = tabsArray?.length || 0;\n      if (length <= 0) {\n        return;\n      }\n      const activeTab = this.getActiveTab(tabsArray);\n      if (!activeTab) {\n        return;\n      }\n      const activeTabValue = activeTab?.value;\n      return R.find(R.pathEq(['_data', 'value'], activeTabValue))(menu);\n    },\n    isActiveMenuByActiveTab(tabsArray, menu, currentMenu) {\n      const length = tabsArray?.length || 0;\n      if (length <= 0) {\n        return;\n      }\n      const activeMenu = this.getActiveMenuByActiveTab(tabsArray, menu);\n      if (activeMenu?._data?.value === currentMenu?._data?.value) {\n        return true;\n      }\n      return false;\n    },\n    getNextMenuItem({\n      tabs,\n      menu\n    }) {\n      const index = this.getActiveMenuIndexByActiveTab(tabs, menu);\n      if (index <= -1) {\n        return;\n      }\n      const nextIndex = index + 1;\n      if (nextIndex > menu.length) {\n        return;\n      }\n      return R.path([nextIndex])(menu);\n    },\n    getPrevMenuItem({\n      tabs,\n      menu,\n      debug\n    }) {\n      const index = this.getActiveMenuIndexByActiveTab(tabs, menu);\n      const nextIndex = index - 1;\n      if (nextIndex <= -1) {\n        return;\n      }\n      return R.path([nextIndex])(menu);\n    },\n    selectNextMenuItem({\n      tabs,\n      menu,\n      onSelect\n    }) {\n      const toSelectMenu = this.getNextMenuItem({\n        tabs,\n        menu\n      });\n      if (!toSelectMenu) {\n        return;\n      }\n      return onSelect(toSelectMenu);\n    },\n    selectPrevMenuItem({\n      tabs,\n      menu,\n      onSelect\n    }) {\n      const toSelectMenu = this.getPrevMenuItem({\n        tabs,\n        menu\n      });\n      if (!toSelectMenu) {\n        return;\n      }\n      return onSelect(toSelectMenu);\n    },\n    getActiveMenuIndexByActiveTab(tabsArray, menu) {\n      const length = tabsArray?.length || 0;\n      if (length <= 0) {\n        return -1;\n      }\n      const activeMenu = this.getActiveMenuByActiveTab(tabsArray, menu);\n      if (!activeMenu) {\n        return -1;\n      }\n      return menu.indexOf(activeMenu);\n    },\n    getActiveTab(tabsArray) {\n      const length = tabsArray?.length || 0;\n      if (length <= 0) {\n        return {};\n      }\n\n      // hide all other tabs\n      return tabsArray.findBy('isActive', true) || {};\n    },\n    getActiveSubTab(tab) {\n      if (!tab) {\n        return {};\n      }\n      const subTabs = tab?.subTabs || [];\n      // hide all other tabs\n      return subTabs.findBy('isActive', true) || {};\n    },\n    isActiveSubTab(tab, data) {\n      const active = this.getActiveSubTab(tab) || {};\n      return R.pipe(R.keys, R.head, R.eqProps(R.__, active, data))(data);\n    },\n    appendSubTab(tab, ...tabOptions) {\n      const tabOptionsModel = this._createOptionsModel(tabOptions);\n      tabOptionsModel.setData('tabType', 'append');\n      const subTabs = tab?.subTabs || [];\n      const subTab = this._createTab(subTabs, tabOptionsModel, tab);\n      const isModal = tabOptionsModel.getData('isModal') || false;\n      this.selectTab(subTabs, subTab, isModal);\n      return subTabs;\n    },\n    displaySubPanel(component, resourceData = {}) {\n      const tabType = resourceData.getData?.('tabType') || 'replaceSubTab';\n      const tabOptions = resourceData?._data || {};\n      const subTabOptions = R.mergeRight({}, tabOptions);\n      subTabOptions.adapterName = resourceData?.adapterName;\n      subTabOptions.loadInstructions = resourceData?.loadInstructions;\n      subTabOptions.loadInstructionsForActivePanels = resourceData?.loadInstructionsForActivePanels;\n      subTabOptions.model = resourceData?.model;\n      const tab = component.tab || component.args.tab;\n      self[tabType](tab, subTabOptions);\n    },\n    displaySubPanelNew(tab, resourceData = {}) {\n      const tabType = resourceData.getData?.('tabType') || 'replaceSubTab';\n      const tabOptions = resourceData?._data || {};\n      const subTabOptions = R.mergeRight({}, tabOptions);\n      subTabOptions.adapterName = resourceData?.adapterName;\n      subTabOptions.loadInstructions = resourceData?.loadInstructions;\n      subTabOptions.loadInstructionsForActivePanels = resourceData?.loadInstructionsForActivePanels;\n      subTabOptions.model = resourceData?.model;\n      self[tabType](tab, subTabOptions);\n    },\n    reuseSubTab(tab, ...tabOptions) {\n      const tabOptionsModel = this._createOptionsModel(tabOptions);\n\n      // incorrect?\n      tabOptionsModel.setData('tabType', 'singleton');\n      const subTabs = tab?.subTabs || [];\n      const subTab = this._createTab(subTabs, tabOptionsModel, tab);\n      this.selectTab(subTabs, subTab);\n    },\n    replaceSubTab(tab, ...tabOptions) {\n      const tabOptionsModel = this._createOptionsModel(tabOptions);\n      const activeTab = this.getActiveSubTab(tab);\n      const activeTabData = R.pipe(R.pathOr([], ['subTabs']), R.find(R.pathEq(['isActive'], true)))(activeTab) || tab;\n      const adapterName = R.propOr(tab?.adapterName, 'adapterName')(activeTabData);\n      // const value = R.propOr('', 'value')(activeTabData)\n\n      tabOptionsModel.setData('tabType', 'replaceSubTab');\n      tabOptionsModel.setData('adapterName', adapterName);\n      // tabOptionsModel.setData('value', value)\n\n      const isModal = tabOptionsModel.getData('isModal') || false;\n      const subTabs = tab?.subTabs || [];\n      const subTab = this._createTab(subTabs, tabOptionsModel, tab);\n      this.selectTab(subTabs, subTab, isModal);\n      return subTabs;\n    },\n    _getLoadInstructions(tab, loadInstructions) {\n      // already a model, dont re-create a model\n      if (loadInstructions?._data) {\n        if (RA.isNilOrEmpty(loadInstructions?._data)) {\n          return false;\n        }\n        return loadInstructions;\n      }\n      return _nventor.default.createModel(_model2.default, loadInstructions);\n    },\n    getLoadInstructions(tab) {\n      if (!tab) {\n        return false;\n      }\n      const loadInstructions = tab?.loadInstructions || false;\n      if (!loadInstructions) {\n        return false;\n      }\n      if (RA.isNilOrEmpty(loadInstructions)) {\n        return false;\n      }\n      return this._getLoadInstructions(tab, loadInstructions);\n    },\n    getMenuLoadInstructions(tab) {\n      if (!tab) {\n        return [];\n      }\n\n      // let loadInstructionsForActivePanels = tab?.loadInstructions || []\n      let loadInstructionsForActivePanels = tab?.loadInstructionsForActivePanels || [];\n\n      // add load instructions to the array\n      const loadInstructions = tab?.loadInstructions || {};\n      if (RA.isNotNilOrEmpty(loadInstructions)) {\n        loadInstructionsForActivePanels.push(loadInstructions);\n      }\n      if (RA.isNilOrEmpty(loadInstructionsForActivePanels)) {\n        return [];\n      }\n      return R.map(loadInstruction => {\n        return this._getLoadInstructions(tab, loadInstruction);\n      })(loadInstructionsForActivePanels);\n    },\n    getInitialPanel(tab, menu) {\n      const loadInstructionsForActivePanels = this.getMenuLoadInstructions(tab);\n      const loadInstructions = this.getLoadInstructions(tab);\n      let initialPanel = R.reduce((acc, loadInstructions) => {\n        if (acc) {\n          return acc;\n        }\n        const foundPanel = R.find(R.pathEq(['_data', 'component'], loadInstructions?._data?.component))(menu);\n        return foundPanel;\n      }, null)(loadInstructionsForActivePanels);\n      if (!initialPanel) {\n        initialPanel = _nventor.default.safeHeadOr({}, menu);\n      }\n      initialPanel.set('loadInstructionsForActivePanels', loadInstructionsForActivePanels || []);\n      initialPanel.set('loadInstructions', loadInstructions || {});\n      return initialPanel;\n    },\n    _getActiveSubTabComponent(tab, menu, loadInstructions = []) {\n      const activeSubTab = this.tabsManager.getActiveSubTab(tab);\n      if (RA.isNilOrEmpty(activeSubTab)) {\n        return loadInstructions;\n      }\n      const subTabOptions = menu.findBy('_data.component', activeSubTab?.component);\n      if (RA.isNilOrEmpty(subTabOptions)) {\n        return loadInstructions;\n      }\n      const component = subTabOptions?._data?.editingComponent;\n      if (component) {\n        loadInstructions.push({\n          component\n        });\n      }\n      return this._getActiveSubTabComponent(activeSubTab, menu, loadInstructions);\n    },\n    findReturnPanel(subPanels, activeSubTab) {\n      const byValue = subPanels.findBy('_data.value', activeSubTab?.value);\n      if (RA.isNotNilOrEmpty(byValue)) {\n        return byValue;\n      }\n      const byEditingComponent = subPanels.findBy('_data.editingComponent', activeSubTab?.component);\n      if (RA.isNotNilOrEmpty(byEditingComponent)) {\n        return byEditingComponent;\n      }\n      const byLoadInstructions = subPanels.findBy('_data.editingComponent', activeSubTab?.loadInstructions?.component);\n      if (RA.isNotNilOrEmpty(byLoadInstructions)) {\n        return byLoadInstructions;\n      }\n      return _nventor.default.safeHeadOr({}, subPanels);\n    },\n    getLoadInstructionsForActivePanels(tab, menus = []) {\n      // concat all menu and sub menus\n      let currentTab = tab;\n      const loadInstructionsForActivePanels = [];\n      R.forEach(menuData => {\n        const menu = menuData.menu || [];\n        const componentPath = menuData.componentPath;\n        const activeSubTab = this.getActiveSubTab(currentTab);\n        if (RA.isNilOrEmpty(activeSubTab)) {\n          return;\n        }\n        currentTab = activeSubTab;\n        const matchBy = menuData.matchBy || 'component';\n        const subTabOptions = menu.findBy(`_data.${matchBy}`, activeSubTab.get(matchBy));\n        const component = R_.dotPath(componentPath)(subTabOptions) || '';\n        if (!component) {\n          return;\n        }\n        loadInstructionsForActivePanels.push({\n          component\n        });\n      })(menus);\n      return loadInstructionsForActivePanels;\n    },\n    getLoadInstructionsAndClear(tab) {\n      const loadInstructions = this.getLoadInstructions(tab);\n      this.clearLoadInstructions(tab);\n      return loadInstructions;\n    },\n    clearLoadInstructions(tab) {\n      if (tab.loadInstructions) {\n        tab.set('loadInstructions', null);\n        return true;\n      }\n      return false;\n    },\n    triggerMenuAction(component, menu) {\n      const action = R.path(['_data', 'action'])(menu);\n      if (action && component[action]) {\n        return component[action](menu);\n      }\n    },\n    getDefaultLoadInstructions(tab, options = {}) {\n      if (tab) {\n        const activeSubTab = this.getActiveSubTab(tab);\n        if (!R.isEmpty(activeSubTab)) {\n          if (options.onEdit) {\n            return {\n              loadInstructions: {\n                component: activeSubTab.get('editingComponent'),\n                value: activeSubTab.get('value'),\n                isDisplay: activeSubTab.get('component')\n              }\n            };\n          }\n          return {\n            loadInstructions: {\n              component: activeSubTab.get('component'),\n              value: activeSubTab.get('value')\n            }\n          };\n        }\n      }\n      return {};\n    },\n    filterOutTabMenu(tabsMenuSubPanels) {\n      const filterSub = sub => {\n        return sub?._data?.component;\n      };\n      const filteredTabMenu = R.filter(filterSub)(tabsMenuSubPanels);\n      return filteredTabMenu;\n    }\n  }, _applyDecoratedDescriptor(_obj, \"getMasterTab\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"getMasterTab\"), _obj), _applyDecoratedDescriptor(_obj, \"copyTab\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"copyTab\"), _obj), _applyDecoratedDescriptor(_obj, \"registerMenu\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"registerMenu\"), _obj), _applyDecoratedDescriptor(_obj, \"registerErrors\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"registerErrors\"), _obj), _applyDecoratedDescriptor(_obj, \"_loadAllSubtabs\", [_dec5], Object.getOwnPropertyDescriptor(_obj, \"_loadAllSubtabs\"), _obj), _applyDecoratedDescriptor(_obj, \"clearErrors\", [_dec6], Object.getOwnPropertyDescriptor(_obj, \"clearErrors\"), _obj), _applyDecoratedDescriptor(_obj, \"hasTabs\", [_dec7], Object.getOwnPropertyDescriptor(_obj, \"hasTabs\"), _obj), _applyDecoratedDescriptor(_obj, \"tabsLength\", [_dec8], Object.getOwnPropertyDescriptor(_obj, \"tabsLength\"), _obj), _applyDecoratedDescriptor(_obj, \"resetTabs\", [_dec9], Object.getOwnPropertyDescriptor(_obj, \"resetTabs\"), _obj), _applyDecoratedDescriptor(_obj, \"setHeader\", [_dec0], Object.getOwnPropertyDescriptor(_obj, \"setHeader\"), _obj), _applyDecoratedDescriptor(_obj, \"_createOptionsModel\", [_dec1], Object.getOwnPropertyDescriptor(_obj, \"_createOptionsModel\"), _obj), _applyDecoratedDescriptor(_obj, \"_resetTabs\", [_dec10], Object.getOwnPropertyDescriptor(_obj, \"_resetTabs\"), _obj), _applyDecoratedDescriptor(_obj, \"getTabs\", [_dec11], Object.getOwnPropertyDescriptor(_obj, \"getTabs\"), _obj), _applyDecoratedDescriptor(_obj, \"openTab\", [_dec12], Object.getOwnPropertyDescriptor(_obj, \"openTab\"), _obj), _applyDecoratedDescriptor(_obj, \"_createTabModel\", [_dec13], Object.getOwnPropertyDescriptor(_obj, \"_createTabModel\"), _obj), _applyDecoratedDescriptor(_obj, \"_createTab\", [_dec14], Object.getOwnPropertyDescriptor(_obj, \"_createTab\"), _obj), _applyDecoratedDescriptor(_obj, \"selectTab\", [_dec15], Object.getOwnPropertyDescriptor(_obj, \"selectTab\"), _obj), _applyDecoratedDescriptor(_obj, \"getLastSelectedTab\", [_dec16], Object.getOwnPropertyDescriptor(_obj, \"getLastSelectedTab\"), _obj), _applyDecoratedDescriptor(_obj, \"addTabToHistory\", [_dec17], Object.getOwnPropertyDescriptor(_obj, \"addTabToHistory\"), _obj), _applyDecoratedDescriptor(_obj, \"removeTabFromHistory\", [_dec18], Object.getOwnPropertyDescriptor(_obj, \"removeTabFromHistory\"), _obj), _applyDecoratedDescriptor(_obj, \"addToClosed\", [_dec19], Object.getOwnPropertyDescriptor(_obj, \"addToClosed\"), _obj), _applyDecoratedDescriptor(_obj, \"closeAllSubTabs\", [_dec20], Object.getOwnPropertyDescriptor(_obj, \"closeAllSubTabs\"), _obj), _applyDecoratedDescriptor(_obj, \"closeTab\", [_dec21], Object.getOwnPropertyDescriptor(_obj, \"closeTab\"), _obj), _applyDecoratedDescriptor(_obj, \"recoverLastTab\", [_dec22], Object.getOwnPropertyDescriptor(_obj, \"recoverLastTab\"), _obj), _applyDecoratedDescriptor(_obj, \"getPath\", [_dec23], Object.getOwnPropertyDescriptor(_obj, \"getPath\"), _obj), _applyDecoratedDescriptor(_obj, \"getOuterMostTab\", [_dec24], Object.getOwnPropertyDescriptor(_obj, \"getOuterMostTab\"), _obj), _applyDecoratedDescriptor(_obj, \"getActiveMenuByActiveTab\", [_dec25], Object.getOwnPropertyDescriptor(_obj, \"getActiveMenuByActiveTab\"), _obj), _applyDecoratedDescriptor(_obj, \"isActiveMenuByActiveTab\", [_dec26], Object.getOwnPropertyDescriptor(_obj, \"isActiveMenuByActiveTab\"), _obj), _applyDecoratedDescriptor(_obj, \"getNextMenuItem\", [_dec27], Object.getOwnPropertyDescriptor(_obj, \"getNextMenuItem\"), _obj), _applyDecoratedDescriptor(_obj, \"getPrevMenuItem\", [_dec28], Object.getOwnPropertyDescriptor(_obj, \"getPrevMenuItem\"), _obj), _applyDecoratedDescriptor(_obj, \"selectNextMenuItem\", [_dec29], Object.getOwnPropertyDescriptor(_obj, \"selectNextMenuItem\"), _obj), _applyDecoratedDescriptor(_obj, \"selectPrevMenuItem\", [_dec30], Object.getOwnPropertyDescriptor(_obj, \"selectPrevMenuItem\"), _obj), _applyDecoratedDescriptor(_obj, \"getActiveMenuIndexByActiveTab\", [_dec31], Object.getOwnPropertyDescriptor(_obj, \"getActiveMenuIndexByActiveTab\"), _obj), _applyDecoratedDescriptor(_obj, \"getActiveTab\", [_dec32], Object.getOwnPropertyDescriptor(_obj, \"getActiveTab\"), _obj), _applyDecoratedDescriptor(_obj, \"getActiveSubTab\", [_dec33], Object.getOwnPropertyDescriptor(_obj, \"getActiveSubTab\"), _obj), _applyDecoratedDescriptor(_obj, \"isActiveSubTab\", [_dec34], Object.getOwnPropertyDescriptor(_obj, \"isActiveSubTab\"), _obj), _applyDecoratedDescriptor(_obj, \"appendSubTab\", [_dec35], Object.getOwnPropertyDescriptor(_obj, \"appendSubTab\"), _obj), _applyDecoratedDescriptor(_obj, \"displaySubPanel\", [_dec36], Object.getOwnPropertyDescriptor(_obj, \"displaySubPanel\"), _obj), _applyDecoratedDescriptor(_obj, \"displaySubPanelNew\", [_dec37], Object.getOwnPropertyDescriptor(_obj, \"displaySubPanelNew\"), _obj), _applyDecoratedDescriptor(_obj, \"reuseSubTab\", [_dec38], Object.getOwnPropertyDescriptor(_obj, \"reuseSubTab\"), _obj), _applyDecoratedDescriptor(_obj, \"replaceSubTab\", [_dec39], Object.getOwnPropertyDescriptor(_obj, \"replaceSubTab\"), _obj), _applyDecoratedDescriptor(_obj, \"_getLoadInstructions\", [_dec40], Object.getOwnPropertyDescriptor(_obj, \"_getLoadInstructions\"), _obj), _applyDecoratedDescriptor(_obj, \"getLoadInstructions\", [_dec41], Object.getOwnPropertyDescriptor(_obj, \"getLoadInstructions\"), _obj), _applyDecoratedDescriptor(_obj, \"getMenuLoadInstructions\", [_dec42], Object.getOwnPropertyDescriptor(_obj, \"getMenuLoadInstructions\"), _obj), _applyDecoratedDescriptor(_obj, \"getInitialPanel\", [_dec43], Object.getOwnPropertyDescriptor(_obj, \"getInitialPanel\"), _obj), _applyDecoratedDescriptor(_obj, \"_getActiveSubTabComponent\", [_dec44], Object.getOwnPropertyDescriptor(_obj, \"_getActiveSubTabComponent\"), _obj), _applyDecoratedDescriptor(_obj, \"findReturnPanel\", [_dec45], Object.getOwnPropertyDescriptor(_obj, \"findReturnPanel\"), _obj), _applyDecoratedDescriptor(_obj, \"getLoadInstructionsForActivePanels\", [_dec46], Object.getOwnPropertyDescriptor(_obj, \"getLoadInstructionsForActivePanels\"), _obj), _applyDecoratedDescriptor(_obj, \"getLoadInstructionsAndClear\", [_dec47], Object.getOwnPropertyDescriptor(_obj, \"getLoadInstructionsAndClear\"), _obj), _applyDecoratedDescriptor(_obj, \"clearLoadInstructions\", [_dec48], Object.getOwnPropertyDescriptor(_obj, \"clearLoadInstructions\"), _obj), _applyDecoratedDescriptor(_obj, \"triggerMenuAction\", [_dec49], Object.getOwnPropertyDescriptor(_obj, \"triggerMenuAction\"), _obj), _applyDecoratedDescriptor(_obj, \"getDefaultLoadInstructions\", [_dec50], Object.getOwnPropertyDescriptor(_obj, \"getDefaultLoadInstructions\"), _obj), _applyDecoratedDescriptor(_obj, \"filterOutTabMenu\", [_dec51], Object.getOwnPropertyDescriptor(_obj, \"filterOutTabMenu\"), _obj), _obj);\n  var _default = _exports.default = Ember.Service.extend(self);\n});","define(\"client/pods/tax-methods/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'none',\n        label: 'none'\n      }, {\n        value: 'exclusive',\n        label: 'tax exclusive'\n      }, {\n        value: 'inclusive',\n        label: 'tax inclusive'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/tax-methods/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'exclusive',\n        label: 'tax exclusive'\n      }, {\n        value: 'inclusive',\n        label: 'tax inclusive'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/taxes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/taxes',\n    modelObj: _model.default,\n    idParam: '_id',\n    init() {\n      this._super(...arguments);\n      this.set('relatedAdapters', [{\n        adapterName: 'taxes',\n        appendPath: 'products'\n      }]);\n    }\n  });\n});","define(\"client/pods/terminal/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\"], function (_exports, _emberConcurrencyDecorators, R) {\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;\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 TerminalService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember._action, _class = class TerminalService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n    }\n    *fetchEInvoicesPrinterTerminalsTask({\n      filters\n    }) {\n      return yield this.crud.searchRecordsTask.perform({\n        adapterName: 'users/einvoices-printers-terminals',\n        filters,\n        resultsProperty: 'results',\n        resultsToggle: 'resultsToggle'\n      });\n    }\n    *fetchPrintersTask() {\n      return yield this.crud.searchRecordsConcurrentlyTask.perform({\n        adapterName: 'extensions/apps/tw/e-invoices/printer',\n        filters: this.search.setupFilters({\n          adapterName: 'extensions/apps/tw/e-invoices/printer/filters'\n        })\n      });\n    }\n    setupDocumentWithPrinterTerminal({\n      userModel,\n      documentModel\n    }) {\n      const autoIssueEInvoice = documentModel?._data?.twEInvoicePrint;\n      if (autoIssueEInvoice) {\n        documentModel.setData('printerKey', userModel?._data?.printerKey);\n        documentModel.setData('twEInvoicePrinterId', userModel?._data?.printerId);\n      }\n      return documentModel;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchEInvoicesPrinterTerminalsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchEInvoicesPrinterTerminalsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchPrintersTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchPrintersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupDocumentWithPrinterTerminal\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setupDocumentWithPrinterTerminal\"), _class.prototype), _class);\n});","define(\"client/pods/tiktok/service\", [\"exports\", \"ember-concurrency-decorators\"], function (_exports, _emberConcurrencyDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\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  let TiktokService = _exports.default = (_class = class TiktokService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tiktokEmbeddedUrl\", 'https://www.tiktok.com/embed.js');\n    }\n    *fetchTiktokEmbeddedTask(url) {\n      const tiktokUrl = `https://www.tiktok.com/oembed?url=${url}`;\n      const result = yield fetch(tiktokUrl);\n      if (!result.ok) {\n        return {};\n      }\n      return result.json();\n    }\n    *setupLibraryTask() {\n      return new Promise(resolve => {\n        let script = document.head.querySelector(`[src=\"${this.tiktokEmbeddedUrl}\"]`);\n        if (script) {\n          script.remove();\n        }\n        script = document.createElement('script');\n        script.src = this.tiktokEmbeddedUrl;\n        script.async = true;\n        script.onload = () => {\n          resolve(script);\n        };\n        document.head.appendChild(script);\n      });\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"fetchTiktokEmbeddedTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTiktokEmbeddedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupLibraryTask\", [_emberConcurrencyDecorators.dropTask], Object.getOwnPropertyDescriptor(_class.prototype, \"setupLibraryTask\"), _class.prototype), _class);\n});","define(\"client/pods/times/seconds-recommended/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 1,\n        label: '1'\n      }, {\n        value: 3,\n        label: '3'\n      }, {\n        value: 5,\n        label: '5'\n      }, {\n        value: 8,\n        label: '8'\n      }, {\n        value: 10,\n        label: '10'\n      }, {\n        value: 20,\n        label: '20'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/toggles/all-custom/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'all',\n        value: 'all'\n      }, {\n        label: 'custom',\n        value: 'custom'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/toggles/auto/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'auto',\n        value: 'auto'\n      }, {\n        label: 'on',\n        value: 'on'\n      }, {\n        label: 'off',\n        value: 'off'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/toggles/on-off/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'on',\n        value: 'on'\n      }, {\n        label: 'off',\n        value: 'off'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/toggles/yes-no/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/utils/nventor\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _nventor, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'toggles_yes',\n        value: true\n      }, {\n        label: 'toggles_no',\n        value: false\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/transporter/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'other',\n        value: ''\n      }, {\n        label: _constants.default.transporterExtensions.tCat,\n        value: _constants.default.transporterExtensions.tCat\n      }, {\n        label: _constants.default.transporterExtensions.hct,\n        value: _constants.default.transporterExtensions.hct\n      }];\n      if (this.settings.getProp('beta.sevenEleven')) {\n        data.push({\n          label: _constants.default.transporterExtensions.sevenEleven,\n          value: _constants.default.transporterExtensions.sevenEleven\n        });\n      }\n      if (this.settings.getProp('beta.payuniSevenEleven')) {\n        data.push({\n          label: _constants.default.transporterExtensions.payuniSevenEleven,\n          value: _constants.default.transporterExtensions.payuniSevenEleven\n        });\n      }\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/transporter/filters/sub-tab/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/transporter/filters/sub-tab/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/transporter/filters/sub-tab/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        transporterType: 'all',\n        transporterAccount: 'all',\n        transporterAccountLabel: 'all',\n        tw_shipping_payuni: {\n          sevenEleven: {\n            waybillsPerPageB2C: 6,\n            waybillsPerPageC2C: 4\n          }\n        }\n      };\n    }\n  });\n});","define(\"client/pods/transporter/lists/credentials-modal/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: _constants.default.transporterExtensions.hct,\n        label: _constants.default.transporterExtensions.hct,\n        component: 'extensions/apps/tw/hct/credentials'\n      }, {\n        value: _constants.default.transporterExtensions.tCat,\n        label: _constants.default.transporterExtensions.tCat,\n        component: 'extensions/apps/tw/t-cat/credentials'\n      }, {\n        value: _constants.default.transporterExtensions.sevenEleven,\n        label: _constants.default.transporterExtensions.sevenEleven,\n        component: 'extensions/apps/tw/seven-eleven/credentials'\n      }, {\n        value: _constants.default.transporterExtensions.payuniSevenEleven,\n        label: _constants.default.transporterExtensions.payuniSevenEleven,\n        component: 'extensions/apps/tw/payuni-seven-eleven/credentials'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/transporter/lists/pickup-editor-extension/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'hct',\n        label: 'hct',\n        component: 'transporters/hct/pickup/editor-extension'\n      }, {\n        value: 't-cat',\n        label: 't-cat',\n        component: 'transporters/t-cat/pickup/editor-extension'\n      }, {\n        value: 'seven-eleven',\n        label: 'seven-eleven',\n        component: 'transporters/seven-eleven/pickup/editor-extension'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/transporter/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ramda-extension\", \"client/constants/index\"], function (_exports, _emberConcurrencyDecorators, R, RA, R_, _index) {\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, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _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 TransporterService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('settings'), _dec5 = Ember.inject.service, _dec6 = Ember.inject.service, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec0 = Ember._tracked, _dec1 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _class = class TransporterService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"ifetch\", _descriptor3, this);\n      _initializerDefineProperty(this, \"settingsService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"server\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"isPickerOnly\", true);\n      _initializerDefineProperty(this, \"accounts\", _descriptor7, this);\n      _initializerDefineProperty(this, \"listsIsLoaded\", _descriptor8, this);\n      _initializerDefineProperty(this, \"externalTransportersList\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedTransporter\", _descriptor0, this);\n      _initializerDefineProperty(this, \"transporterAccounts\", _descriptor1, this);\n      _initializerDefineProperty(this, \"transportersList\", _descriptor10, this);\n      _initializerDefineProperty(this, \"sevenElevenWaybillNotificationModel\", _descriptor11, this);\n      _defineProperty(this, \"adapterNameTransporterAccount\", 'contacts');\n    }\n    get transportersList() {\n      const transporters = this.crud.lists['contacts-transporters'] || [];\n      if (this.externalTransportersList) {\n        return this.externalTransportersList;\n      }\n      return transporters || [];\n    }\n    get defaultTransporterAccount() {\n      const transporterAccounts = this.transporterAccounts || [];\n      const defaultAccount = R.find(R.pathEq(['_data', 'isDefault'], true))(transporterAccounts);\n      if (RA.isNilOrEmpty(defaultAccount)) {\n        return R.head(transporterAccounts) || {};\n      }\n      return defaultAccount;\n    }\n    get defaultTransporterAccountNumber() {\n      return this.get('defaultTransporterAccount._data.account') || '';\n    }\n    loadTransporterAccounts(model, transporter) {\n      const transporterExtension = transporter.getData('transporterExtension') || '';\n      model.setData('transporterExtension', transporterExtension);\n      let transporterAccounts = transporter.getData('transporterAccounts');\n      const hasTransporterAccounts = RA.isNotNilOrEmpty(transporterAccounts);\n      if (!hasTransporterAccounts) {\n        transporterAccounts = transporter.transporterAccounts || [];\n      }\n      Ember.set(this, 'transporterAccounts', transporterAccounts);\n      Ember.set(model, 'transporterAccounts', transporterAccounts);\n      if (!model.getData('transporterAccountNumber')) {\n        const setDefaultTransporterAccount = R.pipe(R.filter(account => account.getData('isDefault') === true), R.map(defaultAccount => {\n          model.setData('transporterAccount', defaultAccount.getData('name'));\n          model.setData('transporterAccountNumber', defaultAccount.getData('account'));\n        }));\n        setDefaultTransporterAccount(transporterAccounts);\n      }\n    }\n    *fetchTransportersTask({\n      query = '',\n      filters,\n      component,\n      resultsToggle = false,\n      match = []\n    }) {\n      // @TODO: is this actually necessary?\n      // can just search contacts with supplier (eg. look at contacts/documents search transporter field)\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.search.setupFilters({\n          adapterName: 'contacts/transporters/filters',\n          defaultFiltersData: {\n            relationships: ['supplier'],\n            isTransporter: 'on',\n            query,\n            match\n          }\n        });\n      }\n      return yield this.crud.searchInputTask.perform({\n        adapterName: 'contacts/transporters',\n        filters,\n        query,\n        component,\n        resultsToggle,\n        allowEmptyQuery: true\n      });\n    }\n    *fetchTransporterTask({\n      model,\n      transporterKey\n    }) {\n      transporterKey = transporterKey || model?._data?.transporterKey;\n      if (transporterKey) {\n        // @NOTE: if disconnected from the internet, this will always fetch out of date cached transporter model\n        let transporterModel = R.pipe(R.pathOr([], ['crud', 'lists', 'contacts-transporters']), R.find(R.pathEq(['_data', '_key'], transporterKey)))(this);\n        const hasTransporter = RA.isNotNilOrEmpty(transporterModel);\n        if (!hasTransporter) {\n          transporterModel = yield this.crud.findTask.perform({\n            adapterName: 'contacts/transporters',\n            appendPath: transporterKey\n          });\n        }\n        if (model) {\n          this.loadTransporterAccounts(model, transporterModel);\n        }\n        return transporterModel;\n      }\n    }\n    *fetchTransportersByExtensionTask({\n      model,\n      transporterExtensions\n    } = {}) {\n      transporterExtensions = transporterExtensions || model?._data?.transporterExtensions || '';\n      if (!transporterExtensions) {\n        return [];\n      }\n      const filters = this.search.setupFilters({\n        adapterName: 'contacts/transporters/filters',\n        defaultFiltersData: {\n          all: true,\n          transporterExtension: transporterExtensions\n        }\n      });\n      const transporter = yield this.crud.searchRecordsConcurrentlyTask.perform({\n        adapterName: 'contacts/transporters',\n        appendPath: `extension/${transporterExtensions}`,\n        filters\n      });\n      if (model) {\n        this.loadTransporterAccounts(model, transporter);\n      }\n      return transporter;\n    }\n\n    // @TODO: moved from mixin\n    setSelectedTransporter(model) {\n      const transporterKey = R.pathOr('', ['_data', 'transporterKey'])(model);\n      let transporter = false;\n      if (transporterKey) {\n        transporter = this.findTransporterByKey(transporterKey);\n      }\n      this.selectedTransporter = transporter;\n      this.setTransporterAccounts(transporter);\n    }\n\n    // @TODO: moved from mixin\n    setTransporterAccounts(transporter) {\n      let accounts = [];\n      if (transporter) {\n        accounts = transporter._data.transporterAccounts || [];\n      }\n      this.accounts = accounts;\n    }\n\n    // @TODO: remove side effects (moved from mixin)\n    loadTransporter(model, transporter) {\n      const key = transporter.getData('_key');\n      model.setData('transporterKey', key);\n      if (!this.isPickerOnly) {\n        model.setData('transporterExtension', transporter.getData('transporterExtension'));\n        this.setSelectedTransporter(model);\n      }\n    }\n\n    // @TODO: remove side effects (moced from mixin)\n    unloadTransporter(model) {\n      model.setData('transporterKey', '');\n      if (!this.isPickerOnly) {\n        model.setData('transporterExtension', '');\n        model.setData('transporter', '');\n        model.setData('transporterBatchNumber', '');\n        model.setData('transporterBatchLabel', '');\n        model.setData('transporterAccountNumber', '');\n        model.setData('transporterAccount', '');\n        model.setData('packages', '');\n        model.setData('transporterWeightRate', '');\n        model.setData('transporterRegion', '');\n        model.setData('transporterRegionIsOuter', '');\n        model.setData('person', '');\n        model.setData('transporterContactPhone', '');\n        this.setSelectedTransporter(model);\n      }\n    }\n\n    // @TODO: R.curry is used in Mixin need to check if it should be used\n    afterLoadTransporters(component) {\n      if (!component?.isDestroyed) {\n        const transporters = R_.dotPath('crud.lists.contacts-transporters')(component) || [];\n        if (!R.isEmpty(transporters)) {\n          const model = component?.dirty || component?.model;\n          if (model) {\n            component?.setSelectedTransporter?.(model);\n          }\n        }\n        component.listsIsLoaded = Math.random();\n      }\n    }\n    getSenderNamePlaceHolder(maxLength = 5) {\n      return R.pipe(R.pathOr('', ['settingsService', 'settingsModel', '_data', 'company']), R.take(maxLength))(this);\n    }\n    hasCollectionAmount(model) {\n      return R.pipe(R.pathOr(null, ['_data', 'cashCollectionInclTotal']), R.allPass([R.pipe(R.equals(0), R.not), RA.isNotNilOrEmpty]))(model);\n    }\n\n    /**\n     * Fetches waybill notification for the given model.\n     * If the model is not a transporter with the name 'SevenEleven', the method returns without doing anything.\n     * If the model does not have a waybill, it sets the 'sevenElevenWaybillNotificationModel' property to null and returns.\n     * Otherwise, it performs a find task using the provided adapter and appends the waybill to the path,\n     * and sets the 'sevenElevenWaybillNotificationModel' property to the found model if it has a valid key,\n     * otherwise sets it to null.\n     *\n     * @param {Object} model - docSales Model\n     */\n    *fetchWaybillNotification(model) {\n      if (!model.isTransporterSevenEleven) {\n        return;\n      }\n      const waybill = model?._data?.waybill;\n      if (!waybill) {\n        model.set('sevenElevenWaybillNotificationModel', null);\n        return;\n      }\n      const sevenElevenWaybillNotificationModel = yield this.crud.findTask.perform({\n        adapterName: 'extensions/apps/tw/seven-eleven/notification',\n        appendPath: waybill\n      });\n      if (sevenElevenWaybillNotificationModel?._data?._key) {\n        model.set('sevenElevenWaybillNotificationModel', sevenElevenWaybillNotificationModel);\n      } else {\n        model.set('sevenElevenWaybillNotificationModel', null);\n      }\n    }\n\n    /**\n     * Updates the waybill notification.\n     *\n     * @param {Object} dirty - The dirty object to update the waybill notification.\n     * @returns {Object} - The updated waybill notification model.\n     */\n    *updateWaybillNotification(dirty) {\n      const model = yield this.crud.updateRecordTask.perform({\n        appendPath: 'transporter/re-route',\n        adapterName: 'documents/sales/invoices',\n        model: dirty,\n        component: this\n      });\n      yield this.fetchWaybillNotification.perform(model);\n      return model;\n    }\n\n    /**\n     * Update a person in the transporter persons array.\n     *\n     * @param {Object} model - The model object to be updated.\n     * @param {Object} personModel - The person model object containing the updated person data.\n     * @return {Object} - A promise that resolves to the updated record.\n     */\n    *replacePersonTask(model, personModel) {\n      const parentModelDirty = this.crud.setupDirty({\n        adapterName: this.adapterNameTransporterAccount,\n        model\n      });\n      parentModelDirty.replaceTransporterPerson(personModel);\n      return yield this.crud.updateRecordTask.perform({\n        adapterName: this.adapterNameTransporterAccount,\n        model: parentModelDirty\n      });\n    }\n\n    /**\n     * Remove a person in the transporter persons array.\n     *\n     * @param {Object} model - The model object to be updated.\n     * @param {Object} personModel - The person model object containing the updated person data.\n     * @return {Object} - A promise that resolves to the updated record.\n     */\n    *removePersonTask(model, personModel) {\n      const parentModelDirty = this.crud.setupDirty({\n        adapterName: this.adapterNameTransporterAccount,\n        model\n      });\n      parentModelDirty.removeTransporterPerson(personModel);\n      return yield this.crud.updateRecordTask.perform({\n        adapterName: this.adapterNameTransporterAccount,\n        model: parentModelDirty\n      });\n    }\n\n    /**\n     * Add a person in the transporter persons array.\n     *\n     * @param {Object} model - The model object to be updated.\n     * @param {Object} personModel - The person model object containing the updated person data.\n     * @return {Object} - A promise that resolves to the updated record.\n     */\n    *addPersonTask(model, personModel) {\n      const parentModelDirty = this.crud.setupDirty({\n        adapterName: this.adapterNameTransporterAccount,\n        model\n      });\n      parentModelDirty.addPerson(personModel);\n      return yield this.crud.updateRecordTask.perform({\n        adapterName: this.adapterNameTransporterAccount,\n        model: parentModelDirty\n      });\n    }\n    *getUpdateConvenienceStoreUrlTask(data) {\n      const path = 'api/protected/extensions/apps/tw/transporters/convenience-store';\n      const response = yield this.ifetch.iFetch({\n        method: 'POST',\n        path,\n        data\n      });\n      return response.data;\n    }\n\n    /**\n     * Remove the waybill of a sales document so its shipping data can be edited and a new waybill printed.\n     * @param {Object} model - sales document\n     * @returns {Object} response, `success: false` when the carrier or API refuses\n     */\n    *removeWaybillTask(model) {\n      const transporterExtension = model?._data?.transporterExtension;\n      const docToRemoveWaybill = R.pick(['_key', 'docType', 'docName', 'waybill', 'transporterWaybillRecord'])(model?._data || {});\n      return yield this.ifetch.iFetch({\n        method: 'DELETE',\n        path: `api/protected/extensions/apps/tw/transporters/${transporterExtension}/waybill`,\n        data: {\n          docs: [docToRemoveWaybill]\n        }\n      });\n    }\n    *validateTransporterCredentials(model, type) {\n      let appendPath = `${model._data.transporterExtension}/validate-credentials`;\n      if (type) {\n        appendPath += `/${type}`;\n      }\n      return yield this.crud.validateRecordTask.perform({\n        adapterName: 'contacts/wizard/transporter/validate-credentials',\n        appendPath,\n        model\n      });\n    }\n    *setupReturnStoreTask(model) {\n      const modelData = model?._data || {};\n      const transporterDefaultPickupLocationPersonId = modelData?.transporterDefaultPickupLocationPersonId;\n      if (!transporterDefaultPickupLocationPersonId) {\n        return;\n      }\n      this.transporterModel = yield this.fetchTransporterTask.perform({\n        transporterKey: modelData?.transporterKey\n      });\n      const personModel = R.pipe(R.pathOr([], ['transporterModel', '_data', 'persons']), R.find(R.pathEq(['_data', 'personId'], transporterDefaultPickupLocationPersonId)))(this);\n      if (RA.isNilOrEmpty(personModel)) {\n        return;\n      }\n      const storeIdModel = personModel.getDetailModelBySubType('storeId');\n      const storeNameModel = personModel.getDetailModelBySubType('storeName');\n      const storeAddressModel = personModel.getDetailModelBySubType('storeAddress');\n      if (!storeIdModel || !storeNameModel || !storeAddressModel) {\n        return;\n      }\n      const convenienceStoreData = model?._data?.convenienceStoreData || {};\n      const updatedConvenienceStoreData = R.mergeLeft({\n        returnStoreId: storeIdModel?._data?.value || convenienceStoreData?.returnStoreId || '',\n        returnStoreName: storeNameModel?._data?.value || convenienceStoreData?.returnStoreName || '',\n        returnStoreAddress: storeAddressModel?._data?.value || convenienceStoreData?.returnStoreAddress || ''\n      })(convenienceStoreData);\n      model.setData('convenienceStoreData', updatedConvenienceStoreData);\n    }\n\n    /**\n     * Fetches the shipping waybill records for one document row.\n     * Every calling row queues its own payload, so a list of rows debounces into\n     * a single batched POST to `transporter/waybill-record/batch/by-resource`\n     * instead of one GET per row.\n     *\n     * @param {Object} model - document row whose waybill records are wanted\n     * @param {Object} model._data - the model's raw data\n     * @param {string} model._data.transporterExtension - transporter extension (eg. 'hct')\n     * @param {string} model._data._key - document key used as resourceKey\n     * @return {Promise<Object[]>} this row's indexed batch slot (list of waybill records)\n     * @return {Object} return[] - one populated waybill record\n     * @return {Object} return[]._data - waybill fields from the API\n     * @return {string} [return[]._data.waybill] - waybill number\n     */\n    *fetchShippingWaybills(model) {\n      const transporterExtension = model?._data?.transporterExtension;\n      const resource = 'sales-invoices';\n      const resourceKey = model?._data?._key;\n      return yield this.crud.fetchBatch({\n        adapterName: 'transporter/waybill-record',\n        appendPath: '/batch/by-resource',\n        data: {\n          transporterExtension,\n          resource,\n          resourceKey\n        }\n      });\n    }\n\n    /**\n     * @TODO: To-Implement\n     * */\n    *fetchShippingWaybillStatus(model) {\n      const filters = this.search.setupFilters({\n        adapterName: 'transporter/waybill-record/filters',\n        defaultFiltersData: {\n          transporterExtension: model?._data?.transporterExtension,\n          waybill: model?._data?.waybill\n        }\n      });\n      return yield this.crud.searchRecordsConcurrentlyTask.perform({\n        adapterName: 'transporter/waybill-record/statuses',\n        filters\n      });\n    }\n\n    /**\n     *\n     * @param {{model:any, isReturnStore: boolean}} opts\n     * @param {ISevenElevenStoreData} sevenElevenStoreData\n     */\n    updateDocumentConvenienceStore({\n      model,\n      isReturnStore = false\n    }, sevenElevenStoreData) {\n      model.setData('isConvenienceStore', true);\n      if (isReturnStore) {\n        const convenienceStoreData = model?._data?.convenienceStoreData || {};\n        const returnConvenienceStoreData = R.mergeLeft({\n          returnStoreId: sevenElevenStoreData.convenienceStoreId,\n          returnStoreName: sevenElevenStoreData.convenienceStoreName,\n          returnStoreAddress: sevenElevenStoreData.convenienceStoreAddress\n        })(convenienceStoreData);\n        model.setData('convenienceStoreData', returnConvenienceStoreData);\n        return;\n      }\n      if (model.updateConvenienceStoreData) {\n        model.updateConvenienceStoreData(sevenElevenStoreData);\n        return;\n      }\n      const convenienceStoreData = {\n        region: sevenElevenStoreData?.convenienceStoreRegion,\n        district: sevenElevenStoreData?.convenienceStoreDistrict,\n        storeId: sevenElevenStoreData?.convenienceStoreId,\n        storeName: sevenElevenStoreData?.convenienceStoreName,\n        storeAddress: sevenElevenStoreData?.convenienceStoreAddress,\n        outlying: sevenElevenStoreData?.convenienceStoreOutlying === 'true'\n      };\n      model.setData('convenienceStoreData', convenienceStoreData);\n    }\n\n    /**\n     *\n     * @param {{model:any, isReturnStore: boolean}} opts\n     */\n    removeDocumentConvenienceStore({\n      model,\n      isReturnStore = false\n    }) {\n      if (isReturnStore) {\n        model.setData('convenienceStoreData.returnStoreId', '');\n        model.setData('convenienceStoreData.returnStoreName', '');\n        model.setData('convenienceStoreData.returnStoreAddress', '');\n        return;\n      }\n      model.setData('convenienceStoreData.region', '');\n      model.setData('convenienceStoreData.district', '');\n      model.setData('convenienceStoreData.storeId', '');\n      model.setData('convenienceStoreData.storeName', '');\n      model.setData('convenienceStoreData.storeAddress', '');\n      model.setData('convenienceStoreData.outlying', '');\n    }\n\n    /**\n     * Tells the merchant that the API capped or raised a waybill's declared value before sending it.\n     * @param {Object} [transporterWaybillRecord] - a shipping waybill record\n     * @return {string} the translated message, or empty when the declared value was sent unchanged\n     */\n    getDeclaredAmountAdjustmentMessage(transporterWaybillRecord) {\n      const transporterWaybillData = transporterWaybillRecord?._data || {};\n      const declaredAmountAdjustment = transporterWaybillData.declaredAmountAdjustment;\n      if (!declaredAmountAdjustment) {\n        return '';\n      }\n      const beforeAmount = transporterWaybillData.declaredAmountBeforeAdjustment;\n      const declaredAmountAdjustments = _index.default.declaredAmountAdjustments;\n      const declaredAmountLimits = _index.default.payuniSevenElevenDeclaredAmountLimits;\n      if (declaredAmountAdjustment === declaredAmountAdjustments.capped) {\n        return this.intl.t('declared amount {beforeAmount} was over the limit and was capped to {maxAmount}', {\n          beforeAmount,\n          maxAmount: declaredAmountLimits.max\n        });\n      }\n      if (declaredAmountAdjustment === declaredAmountAdjustments.raised) {\n        return this.intl.t('declared amount {beforeAmount} was under the limit and was raised to {minAmount}', {\n          beforeAmount,\n          minAmount: declaredAmountLimits.min\n        });\n      }\n      return '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"ifetch\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"settingsService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"accounts\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"listsIsLoaded\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"externalTransportersList\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedTransporter\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"transporterAccounts\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"transportersList\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"sevenElevenWaybillNotificationModel\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchTransportersTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransportersTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTransporterTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransporterTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchTransportersByExtensionTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchTransportersByExtensionTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSelectedTransporter\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"setSelectedTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTransporterAccounts\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"setTransporterAccounts\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadTransporter\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"loadTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadTransporter\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadTransporter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterLoadTransporters\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"afterLoadTransporters\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getSenderNamePlaceHolder\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"getSenderNamePlaceHolder\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasCollectionAmount\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"hasCollectionAmount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchWaybillNotification\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchWaybillNotification\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateWaybillNotification\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"updateWaybillNotification\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"replacePersonTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"replacePersonTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removePersonTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removePersonTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addPersonTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"addPersonTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getUpdateConvenienceStoreUrlTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getUpdateConvenienceStoreUrlTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeWaybillTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeWaybillTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateTransporterCredentials\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"validateTransporterCredentials\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupReturnStoreTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"setupReturnStoreTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchShippingWaybills\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchShippingWaybills\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchShippingWaybillStatus\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchShippingWaybillStatus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateDocumentConvenienceStore\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDocumentConvenienceStore\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeDocumentConvenienceStore\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"removeDocumentConvenienceStore\"), _class.prototype), _class);\n  /** @typedef ISevenElevenStoreData\n   * @property {string} convenienceStoreOutlying\n   * @property {string} convenienceStoreShip\n   * @property {string} convenienceStoreAddress\n   * @property {string} convenienceStoreId\n   * @property {string} convenienceStoreName\n   * @property {string} convenienceStoreRegion\n   * @property {string} convenienceStoreDistrict\n   * @property {string} convenienceStorePostCode\n   * @property {string} convenienceStoreStreet\n   * @property {string} transporterAccount\n   * @property {string} cacheId\n   */\n});","define(\"client/pods/transporter/waybill-record/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/transporter/waybill-record/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/sales/invoices/waybills',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/transporter/waybill-record/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/transporter/waybill-record/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/transporter/waybill-record/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        transporterExtension: '',\n        resource: '',\n        resourceKey: ''\n      };\n    }\n  });\n});","define(\"client/pods/transporter/waybill-record/lists/shipping-waybill-status-type/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"client/constants/index\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: _index.default.shippingStatus.completed,\n        label: `shippingStatus_${_index.default.shippingStatus.completed}`,\n        statusMessage: '已完成包裹成功取件',\n        milestoneCode: 1\n      }, {\n        value: _index.default.shippingStatus.cancelled,\n        label: `shippingStatus_${_index.default.shippingStatus.cancelled}`,\n        statusMessage: '交貨便訂單已取消',\n        milestoneCode: 1\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/transporter/waybill-record/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    populate(data = {}, attrs) {\n      const self = this;\n      data = data || {};\n      data = self._transformShippingWaybillStatuses(data);\n      this._super(data, attrs);\n    },\n    errorMessage: Ember.computed(function () {\n      return this?._data?.errorMessage || '';\n    }),\n    _transformShippingWaybillStatuses(data) {\n      const shippingWaybillStatuses = R.propOr([], 'shippingWaybillStatuses')(data);\n      if (RA.isNotNilOrEmpty(shippingWaybillStatuses)) {\n        data.shippingWaybillStatuses = R.map(shippingWaybillStatus => {\n          return this.dataManager.setAsRecord({\n            adapterName: 'transporter/waybill-record/shipping-waybill-status',\n            data: shippingWaybillStatus\n          });\n        })(shippingWaybillStatuses);\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/transporter/waybill-record/shipping-waybill-status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/transporter/waybill-record/shipping-waybill-status/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/extensions/apps/tw/transporters/waybills/statuses',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/transporter/waybill-record/shipping-waybill-status/model\", [\"exports\", \"client/pods/base/model\", \"client/constants/index\"], function (_exports, _model, _index) {\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    defaults() {\n      return {\n        status: _index.default.shippingStatus.completed,\n        translateStatus: true,\n        dateZ: this.getNowZ()\n      };\n    }\n  });\n});","define(\"client/pods/transporter/waybill-record/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/transporter/waybill-record/statuses/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/documents/sales/invoices/waybills/statuses',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/transporter/waybill-record/statuses/model\", [\"exports\", \"client/pods/base/model\", \"client/constants/index\"], function (_exports, _model, _index) {\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    defaults() {\n      return {\n        status: _index.default.shippingStatus.completed,\n        translateStatus: true,\n        dateZ: this.getNowZ()\n      };\n    }\n  });\n});","define(\"client/pods/units/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/units',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/units/dimensions/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'mm',\n        label: 'mm'\n      }, {\n        value: 'cm',\n        label: 'cm'\n        // }, {\n        //   value: 'inch',\n        //   label: 'inch'\n        // }, {\n        //   value: 'feet',\n        //   label: 'feet'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/units/weight/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'g',\n        label: 'g'\n      }, {\n        value: 'kg',\n        label: 'kg'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/updates/service\", [\"exports\", \"ramda\", \"client/config/environment\"], function (_exports, R, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _obj;\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  var _default = _exports.default = Ember.Service.extend((_dec = Ember._action, _dec2 = Ember._action, _obj = {\n    hasNewVersionAlertMessage: false,\n    auth: Ember.inject.service(),\n    server: Ember.inject.service(),\n    crud: Ember.inject.service(),\n    listsIsLoaded: false,\n    init() {\n      this._super(...arguments);\n      this.set('env', _environment.default);\n      this.set('forceLogout', false);\n      if (this.auth.isLoggedIn) {\n        this.crud.addLists(this, ['application/change-logs']);\n      }\n    },\n    hasNewVersion: Ember.computed('hasNewVersionAlertMessage', 'crud.lists.application-change-logs.{[],synced}', function () {\n      if (_environment.default.environment === 'development') {\n        return false;\n      }\n      if (this.hasNewVersionAlertMessage) {\n        return true;\n      }\n      const changeLogs = this.crud?.lists?.['application-change-logs'] || [];\n      const clientVersionNumber = this.versionNumber;\n      return R.reduce((acc, changeLog) => {\n        if (acc === true) {\n          return true;\n        }\n        return this._hasNewerVersionNumber({\n          current: clientVersionNumber,\n          latest: changeLog?._data?.versionNumber\n        });\n      }, false)(changeLogs);\n    }),\n    checkIfIsNewerThanCurrentVersion(toCheck) {\n      const toCheckNumber = this.getAsVersionNumber(toCheck);\n      return this._hasNewerVersionNumber({\n        current: this.versionNumber,\n        latest: toCheckNumber\n      });\n    },\n    _hasNewerVersionNumber({\n      current,\n      latest\n    }) {\n      current = parseInt(current) || 0;\n      latest = parseInt(latest) || 0;\n      if (current < latest) {\n        return true;\n      }\n    },\n    newVersionAlert(data) {\n      if (data.debug) {\n        debugger; //eslint-disable-line\n      }\n      if (data) {\n        const currentClientVersionNumber = this.versionNumber;\n        const isUpdateRequired = this._hasNewerVersionNumber({\n          current: currentClientVersionNumber,\n          latest: data?.versionNumber\n        });\n        if (isUpdateRequired) {\n          this.set('hasNewVersionAlertMessage', true);\n        }\n      }\n      return false;\n    },\n    // checkForReSyncData (socketId, wasDisconnected) {\n    //   this.updateCacheDataTask.perform(socketId, wasDisconnected)\n    // },\n\n    // updateCacheDataTask: task(function * (socketId, wasDisconnected) {\n    //   this.set('isReSyncing', true)\n    //   let isStale = true\n    //   try {\n    //     const response = yield this.server.call('GET', 'api/protected/app/resync', {\n    //       id: socketId,\n    //       timestampZ: wasDisconnected\n    //     })\n\n    //     const currentState = R.propOr({}, 'data', response)\n\n    //     isStale = currentState.isStale\n    //   } catch (e) {\n    //     isStale = true\n    //   }\n\n    //   if (isStale) {\n    //     this.set('forceLogout', true)\n    //   } else {\n    //     this.set('forceLogout', false)\n    //   }\n\n    //   this.set('isReSyncing', false)\n\n    //   return isStale\n    // }).drop(),\n\n    version: Ember.computed('env.version', function () {\n      return _environment.default.version || '';\n    }),\n    getAsVersionNumber(version = '') {\n      return R.pipe(R.split('.'), R.map(number => {\n        let leadingZeros = [0, 0, 0];\n        const numberOfZeros = leadingZeros.length - number.length;\n        leadingZeros = R.take(numberOfZeros)(leadingZeros);\n        leadingZeros.push(number);\n        return R.join('', leadingZeros);\n      }), R.join(''))(version);\n    },\n    versionNumber: Ember.computed('env.versionNumber', function () {\n      return this.getAsVersionNumber(_environment.default.version);\n    }),\n    reload() {\n      window.location.reload();\n    }\n  }, _applyDecoratedDescriptor(_obj, \"checkIfIsNewerThanCurrentVersion\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"checkIfIsNewerThanCurrentVersion\"), _obj), _applyDecoratedDescriptor(_obj, \"reload\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"reload\"), _obj), _obj));\n});","define(\"client/pods/uploadcare/service\", [\"exports\", \"ramda\", \"client/config/environment\", \"ember-concurrency\"], function (_exports, R, _environment, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* globals uploadcare */\n  // @TODO: USE TASKS\n  // @TODO: USE TASKS\n  // @TODO: USE TASKS\n  // @TODO: USE TASKS\n  // @TODO: USE TASKS\n  // @TODO: USE TASKS\n  var _default = _exports.default = Ember.Service.extend({\n    server: Ember.inject.service(),\n    intl: Ember.inject.service(),\n    secureSignature: '',\n    secureExpire: '',\n    init() {\n      this._super(...arguments);\n      const uploadcareConfig = _environment.default.uploadcare;\n      const environment = _environment.default.environment;\n      this.set('publicKey', uploadcareConfig[environment].public.publicKey);\n      this.set('cdnBase', uploadcareConfig[environment].public.cdnBase);\n      const locale = this.intl.get('locale')[0];\n      this.setup(locale);\n    },\n    removeStartingAndEndingSlashes(segment) {\n      return R.pipe(R.when(R.startsWith('/'), R.drop(1)), R.when(R.endsWith('/'), R.dropLast(1)))(segment);\n    },\n    /**\n     * generate url with transforms\n     *\n     * @param {string} uuid - file uuid\n     * @param {string} transforms - eg. '/-/resize/200x300'\n     * @returns\n     */\n    getFileUrl(uuid, transforms = '') {\n      const cdnBase = this.removeStartingAndEndingSlashes(this.cdnBase);\n      let url = `${cdnBase}/${uuid}/`;\n      if (transforms) {\n        url = this.removeStartingAndEndingSlashes(url);\n        transforms = this.removeStartingAndEndingSlashes(transforms);\n        url = `${url}/${transforms}/`;\n      }\n      return url;\n    },\n    getUc() {\n      return uploadcare;\n    },\n    setup(locale, options) {\n      const localesMap = {\n        'zh-tw': 'zhTW'\n      };\n      const localeTranslations = {\n        // messages for widget\n        errors: {\n          fileMinimalSize: this.intl.t('file is too small'),\n          fileMaximumSize: this.intl.t('file is too large'),\n          maxDimensions: this.intl.t('this image exceeds max dimensions'),\n          maxWidth: 'This image exceeds max width.',\n          maxHeight: 'This image exceeds max height.'\n        },\n        // messages for dialog’s error page\n        dialog: {\n          tabs: {\n            preview: {\n              error: {\n                fileMinimalSize: {\n                  title: 'Title.',\n                  text: 'Text.',\n                  back: 'Back'\n                },\n                fileMaximumSize: {\n                  title: 'Title.',\n                  text: 'Text.',\n                  back: 'Back'\n                },\n                maxDimensions: {\n                  title: 'Title.',\n                  text: 'Text.',\n                  back: 'Back'\n                },\n                maxWidth: {\n                  title: 'Title.',\n                  text: 'Text.',\n                  back: 'Back'\n                },\n                maxHeight: {\n                  title: 'Title.',\n                  text: 'Text.',\n                  back: 'Back'\n                }\n              }\n            }\n          }\n        }\n      };\n      locale = localesMap[locale] || 'en';\n      options = options || {};\n      options.publicKey = this.publicKey;\n      options.locale = locale;\n      options.localeTranslations = localeTranslations;\n      options.cdnBase = this.cdnBase;\n      this.getUc().start(options);\n    },\n    getSecureTokenTask: (0, _emberConcurrency.task)(function* () {\n      // fetch secure token\n      const self = this;\n      return self.get('server').call('GET', 'api/protected/uploads/uploadcare/secure').then(response => {\n        const token = response?.data || {};\n        this.set('secureSignature', token?.secureSignature);\n        this.set('secureExpire', token?.secureExpire);\n        return token;\n      });\n    }),\n    uploadFile(file, settings) {\n      const self = this;\n      settings = settings || {};\n      return self.getSecureTokenTask.perform().then(function (tokenData) {\n        settings.secureSignature = tokenData.secureSignature;\n        settings.secureExpire = tokenData.secureExpire;\n        const upload = self.getUc().fileFrom('object', file, settings);\n        return new Ember.RSVP.Promise(function (resolve, reject) {\n          upload.done(function (fileInfo) {\n            resolve(fileInfo);\n            // Upload has successfully completed and a file is ready.\n          }).fail(function (error /* , fileInfo */) {\n            // console.log('---err---')\n            // console.log(error)\n            // console.log(fileInfo)\n            window.alert(self.get('intl').t('error occurred'));\n            reject(error);\n            // reject(error)\n            // Upload failed, or something else went wrong, a file is not ready.\n          });\n        });\n      });\n    },\n    updateFileToServer(resource, resourceKey, info) {\n      // @TODO: handle single uploads\n\n      const self = this;\n      const path = 'api/protected/uploads/uploadcare/file/store';\n      info.resource = resource;\n      info.resourceKey = resourceKey;\n      return self.get('server').call('POST', path, info);\n    },\n    updateFileGroupToServer(resource, resourceKey, info) {\n      // @TODO: handle single uploads\n\n      const self = this;\n      const path = 'api/protected/uploads/uploadcare/groups/store';\n      info.resource = resource;\n      info.resourceKey = resourceKey;\n      return self.get('server').call('POST', path, info);\n    },\n    containsUuid: R.curry((src, image) => {\n      const contains = R.includes(R.path(['_data', 'uuid'], image), src);\n      if (contains) {\n        return contains;\n      }\n      return R.includes(R.path(['uuid'], image), src);\n    })\n  });\n});","define(\"client/pods/uploads/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/uploads/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/uploads',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/uploads/batch/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/uploads/batch',\n    idParam: false,\n    serialize(model) {\n      const batch = R.map(model => {\n        return this._serialize(model._data);\n      })(model);\n      return {\n        batch\n      };\n    }\n  });\n});","define(\"client/pods/uploads/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/uploads/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/uploads/collection',\n    modelObj: _model.default,\n    idParam: null,\n    // [resource, resourceKey]\n    idPrefix: 'uploads',\n    init() {\n      this.set('idParam', ['resource', 'resourceKey']);\n      this._super(...arguments);\n    }\n  });\n});","define(\"client/pods/uploads/collection/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/mixins/uploads\"], function (_exports, R, RA, _model, _uploads) {\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(_uploads.default, {\n    isUploadsCollection: true,\n    // dont populate uploads\n\n    populate(data, attrs) {\n      data.uploads = R.pipe(R.propOr([], 'uploads'), RA.mapIndexed((data, index) => {\n        if (RA.isNilOrEmpty(data.index)) {\n          data.index = index;\n        }\n        return this.dataManager.setAsRecord({\n          adapterName: 'uploads',\n          data,\n          attrs\n        });\n      }))(data);\n      this._super(...arguments);\n    },\n    imagesList: Ember.computed('_data.uploads.[]', 'synced', function () {\n      const uploadedModels = this.get('_data.uploads') || [];\n      return R.filter(R.pathEq(['_data', 'isImage'], true))(uploadedModels);\n    }),\n    imagesUuiList: Ember.computed('imagesList.[]', 'synced', function () {\n      const imagesList = this.imagesList || [];\n      return R.pipe(R.pluck('_data'), R.pluck('uuid'))(imagesList);\n    }),\n    defaultFile: Ember.computed('_data.uploads.[]', 'synced', function () {\n      const uploadedModels = this.get('_data.uploads') || [];\n      const defaultFile = R.find(R.pathEq(['_data', 'isDefault'], true))(uploadedModels);\n      return defaultFile;\n    }),\n    sortedFiles: Ember.computed('_data.uploads.[]', 'synced', function () {\n      let uploadedModels = this.get('_data.uploads') || [];\n      if (RA.isNilOrEmpty(uploadedModels)) {\n        return [];\n      }\n      uploadedModels = R.sortWith([R.descend(R.pathOr('', ['_data', 'isDefault'])), R.ascend(R.pathOr('', ['_data', 'index']))])(uploadedModels);\n      if (uploadedModels.length <= 1) {\n        return uploadedModels;\n      }\n      const defaultFile = this.defaultFile;\n      if (RA.isNilOrEmpty(defaultFile)) {\n        return uploadedModels;\n      }\n      return uploadedModels;\n    }),\n    getAsUrls(list, transforms = '') {\n      const cdnBase = this.uploadcare.get('cdnBase');\n      return R.map(uuid => {\n        return `${cdnBase}/${uuid}${transforms}/`;\n      })(list);\n    },\n    defaultImageUuid: Ember.computed('synced', function () {\n      const uploadedModels = this.get('_data.uploads') || [];\n      const hasOnlyOneImage = uploadedModels.length === 1;\n      if (hasOnlyOneImage) {\n        return R.view(R.lensPath([0, '_data', 'uuid']))(uploadedModels);\n      }\n      return R.pipe(R.filter(R.pathEq(['_data', 'isDefault'], true)), R.view(R.lensPath([0, '_data', 'uuid'])))(uploadedModels);\n    }),\n    onlyIsDefaultUploads: Ember.computed('synced', function () {\n      const found = R.pipe(R.pathOr([], ['_data', 'uploads']), R.filter(R.pathEq(['_data', 'isDefault'], true)))(this);\n      return found;\n    })\n  });\n});","define(\"client/pods/uploads/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/uploads/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/uploads/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        status: [this.get('constants.status.active')],\n        sort: {\n          by: 'timestampZ',\n          direction: 'DESC'\n        }\n      };\n    }\n  });\n});","define(\"client/pods/uploads/lists/resources/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/uploads/lists/resources/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/uploads/resources',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/uploads/lists/resources/model\", [\"exports\", \"client/pods/base/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 ResourcesModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._tracked, _class = class ResourcesModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      // @NOTE: this wont work in multi component situations\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n      _initializerDefineProperty(this, \"selected\", _descriptor2, this);\n    }\n    get name() {\n      return this._data.name;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selected\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n});","define(\"client/pods/uploads/lists/tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/uploads/lists/tags/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/uploads/tags',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/uploads/lists/tags/model\", [\"exports\", \"client/pods/base/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    defaults() {\n      return {\n        showTagsOnFilter: true,\n        showTagsOnPage: true\n      };\n    }\n  });\n});","define(\"client/pods/uploads/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const isImageFormat = R.anyPass([R.equals('AVIF'), R.equals('BMP'), R.equals('GIF'), R.equals('HEIC'), R.equals('JPEG'), R.equals('PCX'), R.equals('PNG'), R.equals('TGA'), R.equals('TIFF'), R.equals('SVG'), R.equals('WEBP'), R.equals('HEIF')]);\n\n  /**\n   * @param {Object} [data={}] - raw upload payload or model `_data`\n   * @returns {boolean}\n   */\n  function resolveIsImage(data = {}) {\n    if (data.isImage === true) {\n      return true;\n    }\n    const mimeType = data.mimeType || '';\n    if (mimeType.startsWith('image/')) {\n      return true;\n    }\n    const imageFormat = (data.imageInfo?.format || '').toUpperCase();\n    return isImageFormat(imageFormat);\n  }\n  const Uploads = _model.default.extend({\n    defaults() {\n      return {\n        tags: []\n      };\n    },\n    populate(data, attrs) {\n      data.mimeType = this._transformMimeType(data);\n      data.isImage = resolveIsImage(data);\n      const main = this._transformMain(data);\n      this.set('main', main);\n      this._super(data, attrs);\n    },\n    _transformMain(data) {\n      const mainData = data?.main;\n      if (RA.isNilOrEmpty(mainData)) {\n        return {};\n      }\n      delete data.main;\n      return this.dataManager.setPartialRecord({\n        adapterName: 'uploads',\n        data: mainData\n      });\n    },\n    _transformMimeType(data) {\n      const format = R.pipe(R.pathOr('', ['imageInfo', 'format']), R.toLower)(data);\n      const isImage = R.pipe(R.toUpper, isImageFormat)(format);\n      if (isImage) {\n        return `image/${format}`;\n      }\n      return data.mimeType;\n    },\n    getUrl(transforms = '') {\n      const cdnBase = this.uploadcare.get('cdnBase');\n      const uuid = this.get('_data.uuid');\n      return `${cdnBase}${uuid}${transforms}/`;\n    },\n    url: Ember.computed('_data.uuid', function () {\n      const cdnBase = this.uploadcare.get('cdnBase');\n      const uuid = this.get('_data.uuid');\n      if (uuid) {\n        return `${cdnBase}${uuid}/`;\n      }\n      return '';\n    })\n  });\n  class UploadsModel extends Uploads {\n    get fileFormat() {\n      return R.pipe(R.pathOr('', ['_data', 'imageInfo', 'format']), R.toLower)(this);\n    }\n    get isImage() {\n      return resolveIsImage(this._data || {});\n    }\n    get isGif() {\n      return this.fileFormat === 'gif';\n    }\n\n    /**\n     * Return value form _data\n     * @param {string} key\n     * @returns {any}\n     */\n    getData(key) {\n      return this.get(`_data.${key}`);\n    }\n  }\n  _exports.default = UploadsModel;\n});","define(\"client/pods/uploads/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"ember-concurrency\"], function (_exports, _emberConcurrencyDecorators, R, RA, _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;\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   * @module UploadsService\n   */\n  let UploadsService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = (0, _emberConcurrencyDecorators.enqueueTask)({\n    maxConcurrency: 10\n  }), _class = class UploadsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"search\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"server\", _descriptor4, this);\n      _defineProperty(this, \"adapterName\", 'uploads');\n      _defineProperty(this, \"adapterNameFilters\", 'uploads/filters');\n      _defineProperty(this, \"collectionAdapterName\", 'uploads/collection');\n    }\n    /**\n     * Fetch upload file by uuid\n     * @param {string} uuid\n     * @returns {Generator<*, void, *>}\n     */\n    *fetchByUuid(uuid) {\n      const filters = this.search.setupFilters({\n        adapterName: this.adapterNameFilters,\n        defaultFiltersData: {\n          excludeCopies: true\n        }\n      });\n      return yield this.crud.searchRecordsConcurrentlyTask.perform({\n        adapterName: this.adapterName,\n        filters,\n        data: {\n          uuid\n        }\n      });\n    }\n    *removeTask(onCloseDialogAction, options, uploadsModel) {\n      const msg = this.intl.t('are you sure you want to delete');\n      uploadsModel = RA.ensureArray(uploadsModel);\n      if (window.confirm(msg)) {\n        const removeAllTasks = R.map(item => this.removeAllTask.perform(item))(uploadsModel);\n        yield (0, _emberConcurrency.all)(removeAllTasks);\n        return true;\n      }\n      return false;\n    }\n    *removeAllTask(file) {\n      const data = {\n        _key: file?._data?._key,\n        uuid: file?._data?.uuid,\n        resource: file?._data?.resource,\n        resourceKey: file?._data?.resourceKey\n      };\n      return yield this.server.call('DELETE', 'api/protected/uploads/uploadcare/file', data);\n    }\n    *fetchUploadsTask(options = {}) {\n      const {\n        excludeCopies = true,\n        onlyDisplayDefault = false,\n        metadata\n      } = options;\n      this.uploadsCollection = yield this.crud.fetchUploadsTask.perform({\n        ...metadata,\n        adapterName: this.collectionAdapterName,\n        params: {\n          excludeCopies,\n          onlyDisplayDefault,\n          count: 30\n        }\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"fetchByUuid\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchByUuid\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAllTask\", [_emberConcurrencyDecorators.enqueueTask], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAllTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchUploadsTask\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchUploadsTask\"), _class.prototype), _class);\n});","define(\"client/pods/users/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/users',\n    modelObj: _model.default,\n    idParam: '_key',\n    // _id may not be available everywhere\n    idPrefix: 'users'\n  });\n});","define(\"client/pods/users/associates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/associates/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/users/associates',\n    modelObj: _model.default,\n    idPrefix: 'users/associates',\n    idParam: '_id'\n  });\n});","define(\"client/pods/users/associates/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/associates/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/users/associates/filters/model\", [\"exports\", \"client/pods/users/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        username: '',\n        tags: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/users/associates/model\", [\"exports\", \"client/pods/base/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\n    // requiredAttrs: Ember.computed('_data.type', 'isNew', function () {\n\n    //   if (this.get('_data.type') === this.get('constants.userTypes.employee')) {\n\n    //     if (this.get('isNew'))  {\n\n    //       return ['_data.name', '_data.username', '_data.email', '_data.password', '_data.confirmPassword'];\n    //     }\n    //     return ['_data.name', '_data.username', '_data.email'];\n    //   }\n\n    //   if (this.get('isNew'))  {\n    //     return ['_data.name', '_data.email', '_data.password', '_data.confirmPassword'];\n    //   }\n\n    //   return ['_data.name', '_data.email'];\n    // }),\n  });\n});","define(\"client/pods/users/einvoices-printers-terminals/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/einvoices-printers-terminals/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/users/einvoices-printers-terminals',\n    modelObj: _model.default,\n    idPrefix: 'users/einvoices-printers-terminals',\n    idParam: '_id'\n  });\n});","define(\"client/pods/users/einvoices-printers-terminals/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/einvoices-printers-terminals/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/users/einvoices-printers-terminals/filters/model\", [\"exports\", \"client/pods/users/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        username: '',\n        tags: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/users/einvoices-printers-terminals/model\", [\"exports\", \"client/pods/base/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\n    // requiredAttrs: Ember.computed('_data.type', 'isNew', function () {\n\n    //   if (this.get('_data.type') === this.get('constants.userTypes.employee')) {\n\n    //     if (this.get('isNew'))  {\n\n    //       return ['_data.name', '_data.username', '_data.email', '_data.password', '_data.confirmPassword'];\n    //     }\n    //     return ['_data.name', '_data.username', '_data.email'];\n    //   }\n\n    //   if (this.get('isNew'))  {\n    //     return ['_data.name', '_data.email', '_data.password', '_data.confirmPassword'];\n    //   }\n\n    //   return ['_data.name', '_data.email'];\n    // }),\n  });\n});","define(\"client/pods/users/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/users/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        username: '',\n        tags: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/users/lists/ip-addresses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ember-concurrency-decorators\"], function (_exports, _adapter, _adaptersNew, _model, _emberConcurrencyDecorators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _obj;\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  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, (_obj = {\n    server: Ember.inject.service(),\n    modelObj: _model.default,\n    resourcePath: 'api/protected/users/ip-addresses',\n    idParam: '_id',\n    *getIpUsersTable(ipKey) {\n      const path = `${this.resourcePath}/${ipKey}/users`;\n      const response = yield this.server.call('GET', path);\n      return response?.data || [];\n    }\n  }, _applyDecoratedDescriptor(_obj, \"getIpUsersTable\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_obj, \"getIpUsersTable\"), _obj), _obj));\n});","define(\"client/pods/users/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          //   resource: 'api/protected/users/menu/actions/dash',\n          //   component: 'users/panels-dash',\n          //   label: 'overview',\n          //   action: 'dash'\n          // }, {\n          resource: 'api/protected/users',\n          method: 'post',\n          component: 'users/panels-new',\n          label: 'new',\n          action: 'new',\n          className: 'show-when-overflow'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/users/lists/roles/external/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'external',\n        label: 'external'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/users/lists/roles/internal/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'super',\n        label: 'super'\n      }, {\n        value: 'power',\n        label: 'power'\n      }, {\n        value: 'general',\n        label: 'general'\n      }, {\n        value: 'accountant_view',\n        label: 'accountant (view only)'\n      }, {\n        value: 'dispatch_view',\n        label: 'dispatch (view only)'\n      }, {\n        value: 'dispatch_write',\n        label: 'dispatch (can create and update)'\n      }, {\n        value: 'qrCodes_admissions',\n        label: 'qrCodes admissions personnel'\n      }, {\n        value: 'pos_web_operator',\n        label: 'POS web operator'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/users/lists/roles/terminal/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'general',\n        label: 'general'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/users/lists/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'employee',\n        label: 'employee'\n      }, {\n        value: 'eInvoicePrinterTerminal',\n        label: 'eInvoicePrinterTerminal'\n      }];\n      if (this.settings?.isBetaAllowed('beta.allowApiAccess')) {\n        data.push({\n          value: 'apiAccess',\n          label: 'apiAccess'\n        });\n      }\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/users/model\", [\"exports\", \"client/pods/base/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\n    // beforePopulate (data = {}) {\n    //   // @NOTE: when users are stored in other documents, it does not contain\n    //   // _id. so would need to make it up to create record\n    //   if (data._key && !data._id) {\n    //     data._id = `users/${data._key}`\n    //   }\n\n    //   return data\n    // }\n  });\n});","define(\"client/pods/users/personal-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/personal-filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/personal',\n    modelObj: _model.default,\n    idPrefix: 'users/personal-filters',\n    idParam: '_id'\n  });\n});","define(\"client/pods/users/personal-filters/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/personal-filters/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/personal/collection',\n    modelObj: _model.default,\n    idParam: ['userKey', 'menuId'],\n    idPrefix: 'users/personal-filters/collection'\n  });\n});","define(\"client/pods/users/personal-filters/collection/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    populate(data = {}) {\n      data.collection = this._transformCollection(data);\n      this._super(...arguments);\n    },\n    _transformCollection(data) {\n      return R.pipe(R.propOr([], 'collection'), R.map(menuData => {\n        menuData.isPinned = true;\n        return this.dataManager.setAsRecord({\n          adapterName: 'users/personal-filters',\n          data: menuData\n        });\n      }))(data);\n    }\n  });\n});","define(\"client/pods/users/personal-filters/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/personal-filters/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/users/personal-filters/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        userKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'ASC'\n        }],\n        type: ''\n      };\n    }\n  });\n});","define(\"client/pods/users/personal-filters/model\", [\"exports\", \"client/pods/base/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    // populate (data, attrs) {\n    //   data.groups = this._transformGroups(data.groups)\n    //   data.sub = this._transformSub(data.sub)\n\n    //   this._super(...arguments)\n    // },\n\n    // _transformGroups (groups = []) {\n    //   return groups.map(group => {\n    //     return group.map(data => {\n    //       data.sub = this._transformSubNested(data.sub)\n    //       return this.dataManager.setPartialRecord({\n    //         adapterName: 'users/personal-menu/groups-sub',\n    //         data\n    //       })\n    //     })\n    //   })\n    // },\n\n    // _transformSub (sub = []) {\n    //   return sub.map(data => {\n    //     data.groups = this._transformGroups(data.groups)\n    //     data.sub = this._transformSubNested(data.sub)\n    //     return this.dataManager.setPartialRecord({\n    //       adapterName: 'users/personal-menu/groups-sub',\n    //       data\n    //     })\n    //   })\n    // },\n\n    // _transformSubNested (sub = []) {\n    //   return sub.map(data => {\n    //     return this.dataManager.setPartialRecord({\n    //       adapterName: 'users/personal-menu/groups-sub',\n    //       data\n    //     })\n    //   })\n    // }\n  });\n});","define(\"client/pods/users/personal-menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/personal-menu/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/members-menu',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/users/personal-menu/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/personal-menu/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/members-menu/collection',\n    modelObj: _model.default,\n    idParam: 'userKey',\n    idPrefix: 'members-menu/collection'\n  });\n});","define(\"client/pods/users/personal-menu/collection/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    populate(data = {}) {\n      data.collection = this._transformCollection(data);\n      this._super(...arguments);\n    },\n    _transformCollection(data) {\n      return R.pipe(R.propOr([], 'collection'), R.map(menuData => {\n        menuData.isPinned = true;\n        return this.dataManager.setAsRecord({\n          adapterName: 'users/personal-menu',\n          data: menuData\n        });\n      }))(data);\n    },\n    // moved to users/personal-menu/collection computed prop\n    allowedUserMenu: Ember.computed('crud.lists.application-lists-main.[]', 'synced', 'settings.settingsModel.synced', 'settings.settingsModel._data.beta.billing', function () {\n      const allowed = R.pathOr([], ['crud', 'lists', 'application-lists-main'])(this);\n      const allPinned = R.pathOr([], ['_data', 'collection'])(this);\n      const userFavoriteMenu = this.applicationService.processMenu({\n        allowed,\n        allPinned,\n        onlyPinned: true\n      }) || [];\n      if (RA.isNilOrEmpty(userFavoriteMenu)) {\n        return [];\n      }\n      const favoritesData = {\n        isFavorites: true,\n        label: 'favorites',\n        pinLabel: 'favorites',\n        translate: true,\n        isExpanded: true,\n        icon: 'fas fa-star',\n        sub: userFavoriteMenu\n      };\n      const favoriteMenu = this.crud.setupNewRecord({\n        adapterName: 'members-menu',\n        data: favoritesData\n      });\n      return RA.list(favoriteMenu);\n    })\n  });\n});","define(\"client/pods/users/personal-menu/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/personal-menu/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/users/personal-menu/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        userKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/users/personal-menu/groups-sub/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/users/personal-menu/model\", [\"exports\", \"client/pods/base/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    populate(data, attrs) {\n      data.groups = this._transformGroups(data.groups);\n      data.sub = this._transformSub(data.sub);\n      this._super(...arguments);\n    },\n    _transformGroups(groups = []) {\n      return groups.map(group => {\n        return group.map(data => {\n          data.sub = this._transformSubNested(data.sub);\n          return this.dataManager.setPartialRecord({\n            adapterName: 'users/personal-menu/groups-sub',\n            data\n          });\n        });\n      });\n    },\n    _transformSub(sub = []) {\n      return sub.map(data => {\n        data.groups = this._transformGroups(data.groups);\n        data.sub = this._transformSubNested(data.sub);\n        return this.dataManager.setPartialRecord({\n          adapterName: 'users/personal-menu/groups-sub',\n          data\n        });\n      });\n    },\n    _transformSubNested(sub = []) {\n      return sub.map(data => {\n        return this.dataManager.setPartialRecord({\n          adapterName: 'users/personal-menu/groups-sub',\n          data\n        });\n      });\n    }\n  });\n});","define(\"client/pods/users/personal-settings/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/personal-settings/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/personal',\n    modelObj: _model.default,\n    idPrefix: 'users/personal-settings',\n    idParam: '_id'\n  });\n});","define(\"client/pods/users/personal-settings/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/personal-settings/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/personal/collection',\n    modelObj: _model.default,\n    idParam: ['userKey', 'menuId'],\n    idPrefix: 'users/personal-settings/collection'\n  });\n});","define(\"client/pods/users/personal-settings/collection/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\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    populate(data = {}) {\n      data.collection = this._transformCollection(data);\n      this._super(...arguments);\n    },\n    _transformCollection(data) {\n      return R.pipe(R.propOr([], 'collection'), R.map(menuData => {\n        menuData.isPinned = true;\n        return this.dataManager.setAsRecord({\n          adapterName: 'users/personal-filters',\n          data: menuData\n        });\n      }))(data);\n    }\n  });\n});","define(\"client/pods/users/personal-settings/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/personal-settings/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/users/personal-settings/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        userKey: '',\n        sort: [{\n          by: 'timestampZ',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/users/personal-settings/model\", [\"exports\", \"client/pods/base/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    // populate (data, attrs) {\n    //   data.groups = this._transformGroups(data.groups)\n    //   data.sub = this._transformSub(data.sub)\n\n    //   this._super(...arguments)\n    // },\n\n    // _transformGroups (groups = []) {\n    //   return groups.map(group => {\n    //     return group.map(data => {\n    //       data.sub = this._transformSubNested(data.sub)\n    //       return this.dataManager.setPartialRecord({\n    //         adapterName: 'users/personal-menu/groups-sub',\n    //         data\n    //       })\n    //     })\n    //   })\n    // },\n\n    // _transformSub (sub = []) {\n    //   return sub.map(data => {\n    //     data.groups = this._transformGroups(data.groups)\n    //     data.sub = this._transformSubNested(data.sub)\n    //     return this.dataManager.setPartialRecord({\n    //       adapterName: 'users/personal-menu/groups-sub',\n    //       data\n    //     })\n    //   })\n    // },\n\n    // _transformSubNested (sub = []) {\n    //   return sub.map(data => {\n    //     return this.dataManager.setPartialRecord({\n    //       adapterName: 'users/personal-menu/groups-sub',\n    //       data\n    //     })\n    //   })\n    // }\n  });\n});","define(\"client/pods/users/related/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/users/related',\n    modelObj: _model.default,\n    idParam: '_key',\n    // _id may not be available everywhere\n    idPrefix: 'users'\n  });\n});","define(\"client/pods/users/related/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/users/related/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/users/related/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        username: '',\n        tags: [],\n        sort: [{\n          by: 'timestampZ_latest',\n          direction: 'DESC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/users/service\", [\"exports\", \"ramda\", \"ember-concurrency-decorators\", \"ramda-extension\", \"client/utils/nventor\"], function (_exports, _ramda, _emberConcurrencyDecorators, R_, _nventor) {\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, _dec0, _dec1, _dec10, _dec11, _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 UsersService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service('search'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _class = class UsersService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"storage\", _descriptor2, this);\n      _initializerDefineProperty(this, \"server\", _descriptor3, this);\n      _initializerDefineProperty(this, \"searchService\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accessRights\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isDocumentationsEditorGlobal\", _descriptor6, this);\n    }\n    get isDocumentationsEditor() {\n      if (!this.isDocumentationsEditorGlobal) {\n        return false;\n      }\n      return this.getProp('isDocumentationsEditor');\n    }\n    getUserKey() {\n      const userData = this.storage.get('tokenData') || {};\n      return userData.uid || '';\n    }\n    hasBigOrdrOperatorRights(prop) {\n      const userData = this.storage.get('tokenData') || {};\n      const isAdmin = userData?.isAdmin;\n      if (isAdmin) {\n        return true;\n      }\n      const isBigOrdrOperator = userData?.isBigOrdrOperator;\n      if (!isBigOrdrOperator) {\n        return false;\n      }\n      const rights = userData?.bigOrdrOperatorRights ?? {};\n      const hasRight = R_.dotPath(prop)(rights) ?? false;\n      return hasRight;\n    }\n    getProp(prop) {\n      const userData = this.storage.get('tokenData') || {};\n      return userData[prop] || '';\n    }\n    tokenData(prop) {\n      return this.storage.get('tokenData') || {};\n    }\n    findPersonByKey(users, person) {\n      const personKey = person._data?._key || person._key;\n      return _ramda.default.find(_ramda.default.pathEq(['_data', '_key'], personKey))(users);\n    }\n    assign(model, propPath, person) {\n      const users = model.get(propPath) || [];\n      const found = this.findPersonByKey(users, person);\n      if (!found) {\n        users.pushObject(person);\n        model.set(propPath, users);\n      } else {\n        this.unassign(model, propPath, found);\n      }\n    }\n    unassign(model, propPath, person) {\n      const users = model.get(propPath) || [];\n      const toRemove = this.findPersonByKey(users, person);\n      users.removeObject(toRemove);\n      model.set(propPath, users);\n    }\n    *hasAccessRightsTask(resource) {\n      if (!resource) {\n        return false;\n      }\n      const path = 'api/protected/app/lists/allowed';\n      const fullResource = `api/protected/${resource}`;\n      const alreadyFetchedResult = _ramda.default.path(['accessRights', fullResource])(this);\n      if (alreadyFetchedResult != null) {\n        return alreadyFetchedResult;\n      }\n      const res = yield this.server.call('POST', path, {\n        resource: fullResource\n      });\n      const isAccessAllowed = res?.data?.isAllowed;\n      this.accessRights[fullResource] = isAccessAllowed;\n      return isAccessAllowed;\n    }\n    _createModel(data) {\n      data._id = `members/${data._key}`;\n      return this.dataManager.setAsRecord({\n        adapterName: 'users',\n        data: data\n      });\n    }\n    *getSavedPersonalSettingsTask({\n      menuId\n    }) {\n      const personalFilters = this.searchService.setupFilters({\n        adapterName: 'users/personal-settings/filters',\n        defaultFiltersData: {\n          sort: [{\n            by: 'index',\n            direction: 'ASC'\n          }],\n          menuId\n        }\n      });\n      this.set('personalFilters', personalFilters);\n      const personalSavedFilters = yield this.crud.findTask.perform({\n        adapterName: 'users/personal-settings/collection',\n        filters: personalFilters\n      });\n      return personalSavedFilters;\n    }\n    *getSinglePersonalSettingsTask({\n      menuId,\n      onAfter\n    }) {\n      const savedSettings = yield this.getSavedPersonalSettingsTask.perform({\n        menuId\n      });\n      const defaultModel = _ramda.default.path(['_data', 'collection', 0])(savedSettings);\n      if (onAfter) {\n        return onAfter(defaultModel);\n      }\n      return defaultModel;\n    }\n    *upsertSinglePersonalSettingsTask({\n      menuId,\n      data,\n      onAfter\n    }) {\n      if (!menuId) {\n        throw new Error('no menu id!');\n      }\n      const model = this.crud.setupNewRecord({\n        adapterName: 'users/personal-settings',\n        data: {\n          menuId,\n          data\n        }\n      });\n      yield this.crud.upsertRecordTask.perform({\n        adapterName: 'users/personal-settings',\n        model\n      });\n      if (_ramda.default.is(Function, onAfter)) {\n        onAfter();\n      }\n    }\n    *savePersonalSettingsTask({\n      data,\n      onCloseDialogAction\n    }) {\n      if (!data?.menuId) {\n        throw new Error('no menu id!');\n      }\n      data.userKey = this.getUserKey();\n      const model = this.crud.setupNewRecord({\n        adapterName: 'users/personal-settings',\n        data\n      });\n      yield this.crud.createRecordTask.perform({\n        adapterName: 'users/personal-settings',\n        model\n      });\n      if (onCloseDialogAction) {\n        onCloseDialogAction();\n      }\n    }\n    *removeSavedPersonalSettingsTask(savedFilter) {\n      yield this.crud.removeRecordTask.perform({\n        adapterName: 'users/personal-settings',\n        model: savedFilter,\n        noConfirm: false\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"storage\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"searchService\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"accessRights\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isDocumentationsEditorGlobal\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"getUserKey\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"getUserKey\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasBigOrdrOperatorRights\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"hasBigOrdrOperatorRights\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getProp\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"getProp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"tokenData\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"tokenData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"findPersonByKey\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"findPersonByKey\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"assign\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"assign\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unassign\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"unassign\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasAccessRightsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"hasAccessRightsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getSavedPersonalSettingsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getSavedPersonalSettingsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"getSinglePersonalSettingsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"getSinglePersonalSettingsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"upsertSinglePersonalSettingsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"upsertSinglePersonalSettingsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"savePersonalSettingsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"savePersonalSettingsTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSavedPersonalSettingsTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSavedPersonalSettingsTask\"), _class.prototype), _class);\n});","define(\"client/pods/validation/service\", [\"exports\", \"ramda\", \"ramda-adjunct\"], function (_exports, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 ValidationService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember._action, _class = class ValidationService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    /**\n     * Get Error Message\n     * @param {Object} args\n     * @param {Object} args.tab\n     * @param {string} args.context\n     * @return {string|*}\n     */\n    getValidationErrorMessage({\n      tab,\n      context,\n      errors\n    } = {}) {\n      errors = tab?.errors?.errors || errors || [];\n      let error = R.find(R.anyPass([R.pathEq(['context', 'label'], context), R.pathEq(['context', 'key'], context)]))(errors);\n      if (!error) {\n        error = errors[context];\n      }\n      if (!error) {\n        return;\n      }\n      const errorLimit = error.context?.limit;\n      const errorMessage = error.message;\n      if (errorLimit && errorMessage) {\n        let limit = '';\n        if (error.type === 'string.min') {\n          limit = 'min length';\n        } else if (error.type === 'string.max') {\n          limit = 'max length';\n        }\n        if (limit) {\n          return `${this.intl.t(errorMessage)}. ${this.intl.t(limit)}: ${errorLimit}`;\n        }\n      }\n      if (errorMessage) {\n        return this.intl.t(errorMessage);\n      }\n      return '';\n    }\n    setErrorsTracker({\n      tab,\n      model,\n      context\n    }) {\n      if (RA.isNotNilOrEmpty(tab) && RA.isNotNilOrEmpty(model) && RA.isNotNilOrEmpty(context)) {\n        const instanceId = model?.instanceId;\n        if (tab && instanceId) {\n          tab?.setErrorTrackerOnModel?.({\n            context,\n            instanceId,\n            isModal: false,\n            tabId: tab?.id\n          });\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getValidationErrorMessage\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"getValidationErrorMessage\"), _class.prototype), _class);\n});","define(\"client/pods/video-sources/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    constants: Ember.inject.service(),\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      let data = [{\n        value: this.constants.videoSources.youtube,\n        label: this.constants.videoSources.youtube,\n        translate: true\n      }, {\n        value: this.constants.videoSources.youtubeShorts,\n        label: this.constants.videoSources.youtubeShorts,\n        translate: true\n      }, {\n        value: this.constants.videoSources.tiktok,\n        label: this.constants.videoSources.tiktok,\n        translate: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/websites/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    emails: Ember.inject.service(),\n    resourcePath: 'api/protected/websites',\n    idParam: '_id',\n    modelObj: _model.default,\n    serialize(model) {\n      const data = this._super(model);\n\n      // @TODO: remove?\n      data.orderedEmailCopyTo = this.emails.splitToArray(data.orderedEmailCopyTo);\n      return data;\n    }\n  });\n});","define(\"client/pods/websites/blog-tags-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/websites/blog-tags-filter',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/websites/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/websites/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/websites/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        domain: '',\n        tags: [],\n        sort: [{\n          by: 'timestampZ',\n          direction: 'ASC'\n        }]\n      };\n    },\n    tagsCount: Ember.computed('_data.tags.[]', function () {\n      return this.getPropLength('_data.tags');\n    }),\n    relationshipsCount: Ember.computed('_data.relationships.[]', function () {\n      return this.getPropLength('_data.relationships');\n    })\n  });\n});","define(\"client/pods/websites/links/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/websites/links/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/websites/links/model\", [\"exports\", \"client/pods/base/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;\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 WebsitesPagesModel = _exports.default = (_dec = Ember._tracked, _dec2 = Ember._action, _class = class WebsitesPagesModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n    defaults() {\n      return {\n        type: 'url',\n        title: '',\n        href: '',\n        page: '',\n        pageKey: '',\n        target: '_self'\n      };\n    }\n\n    // get allowCustomHref () {\n    //   const type = this._data?.type\n\n    //   if (!type) {\n    //     return true\n    //   }\n\n    //   const allowCustomHref = R.includes(type)(\n    //     [\n    //       this.constants.websitePageLinkTypes.url\n    //     ]\n    //   )\n    //   return allowCustomHref\n    // }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"defaults\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"defaults\"), _class.prototype), _class);\n});","define(\"client/pods/websites/lists/content-width/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: '800px',\n        value: '800px'\n      }, {\n        label: '900px',\n        value: '900px'\n      }, {\n        label: '1000px',\n        value: '1000px'\n      }, {\n        label: '1100px',\n        value: '1100px'\n      }, {\n        label: '1200px',\n        value: '1200px'\n      }, {\n        label: '1300px',\n        value: '1300px'\n      }, {\n        label: '1400px',\n        value: '1400px'\n      }, {\n        label: '1500px',\n        value: '1500px'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/editor-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // import Ember from 'ember';\n\n  const filterTabs = (list, filterByLabel) => R.map(R.pipe(R.unless(R.propSatisfies(R.includes(R.__, filterByLabel), 'label'), R.set(R.lensProp('component'), null))))(list);\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/website/campaigns/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          value: 'settings',\n          label: 'settings',\n          component: 'websites/websites-editor/settings-editor',\n          resource: 'api/protected/websites/sub-panels-edit/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'headers-editor',\n          label: 'header-settings',\n          component: 'websites/websites-editor/headers-editor',\n          resource: 'api/protected/websites/sub-panels-edit/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'style-editor',\n          label: 'settings_style',\n          component: 'websites/websites-editor/style-editor',\n          resource: 'api/protected/websites/sub-panels-edit/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: 'seo-editor',\n          label: 'seo',\n          component: 'websites/websites-editor/seo-editor',\n          resource: 'api/protected/websites/sub-panels-edit/settings',\n          tabType: 'reuseSubTab'\n        }, {\n          value: '3rd-party',\n          label: '3rd-party',\n          component: 'websites/websites-editor/3rd-party-editor',\n          resource: 'api/protected/websites/sub-panels-edit/settings',\n          tabType: 'reuseSubTab'\n        }]\n      };\n      const isVirtualOnly = this.settings?.isFeatureAllowed('features.isVirtualOnly');\n      if (isVirtualOnly) {\n        const allowed = ['settings', 'style-editor', 'seo-editor'];\n        customData.list = R.pipe(R.propOr([], 'list'), R.filter(item => {\n          return R.includes(item.value)(allowed);\n        }))(customData);\n      }\n\n      // customData.list = filterTabs(customData.list, ['settings', '3rd-party'])\n      // const path = this.getFullPath({ pathName: 'findAllPath', appendPath, serverType })\n      // return this.ajax.POST(path, customData).then(res => res?.data || [])\n\n      // will be replaced by the code above\n      return _nventor.default.resolve(customData.list);\n    }\n  });\n});","define(\"client/pods/websites/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'url',\n        label: 'url'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'dateZ',\n        label: 'date'\n      }, {\n        value: 'name',\n        label: 'name'\n      }, {\n        value: 'url',\n        label: 'url'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: this.get('constants.campaignStatus.online'),\n        label: 'online'\n      }, {\n        value: this.get('constants.campaignStatus.offline'),\n        label: 'offline'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/header-image-ratio/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '2048x682',\n        label: 'threeByOne'\n      }, {\n        value: '2048x1024',\n        label: 'twoByOne'\n      }, {\n        value: '2048x1536',\n        label: 'fourByThree'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/btns-border-radius/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        label: this.intl.t('default'),\n        value: ''\n      }, {\n        label: '0px',\n        value: '0px'\n      }, {\n        label: '1px',\n        value: '1px'\n      }, {\n        label: '2px',\n        value: '2px'\n      }, {\n        label: '3px',\n        value: '3px'\n      }, {\n        label: '4px',\n        value: '4px'\n      }, {\n        label: '5px',\n        value: '5px'\n      }, {\n        label: '6px',\n        value: '6px'\n      }, {\n        label: '7px',\n        value: '7px'\n      }, {\n        label: '8px',\n        value: '8px'\n      }, {\n        label: '9px',\n        value: '9px'\n      }, {\n        label: '10px',\n        value: '10px'\n      }, {\n        label: '11px',\n        value: '11px'\n      }, {\n        label: '12px',\n        value: '12px'\n      }, {\n        label: '13px',\n        value: '13px'\n      }, {\n        label: '14px',\n        value: '14px'\n      }, {\n        label: '15px',\n        value: '15px'\n      }, {\n        label: '16px',\n        value: '16px'\n      }, {\n        label: '17px',\n        value: '17px'\n      }, {\n        label: '18px',\n        value: '18px'\n      }, {\n        label: '19px',\n        value: '19px'\n      }, {\n        label: '20px',\n        value: '20px'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/menu-alignment/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: _constants.default.alignment.left,\n        label: _constants.default.alignment.left\n      }, {\n        value: _constants.default.alignment.center,\n        label: _constants.default.alignment.center\n      }, {\n        value: _constants.default.alignment.right,\n        label: _constants.default.alignment.right\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/menu-expand-behavior/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/constants\"], function (_exports, _adapter, _nventor, _adaptersNew, _model, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: _constants.default.menuExpandBehavior.autoHide,\n        label: 'auto hide'\n      }, {\n        value: _constants.default.menuExpandBehavior.autoExpand,\n        label: 'auto expand'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/menu-font-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '8px',\n        label: '8px'\n      }, {\n        value: '9px',\n        label: '9px'\n      }, {\n        value: '10px',\n        label: '10px'\n      }, {\n        value: '11px',\n        label: '11px'\n      }, {\n        value: '12px',\n        label: '12px'\n      }, {\n        value: '14px',\n        label: '14px'\n      }, {\n        value: '18px',\n        label: '18px'\n      }, {\n        value: '24px',\n        label: '24px'\n      }, {\n        value: '30px',\n        label: '30px'\n      }, {\n        value: '36px',\n        label: '36px'\n      }, {\n        value: '48px',\n        label: '48px'\n      }, {\n        value: '60px',\n        label: '60px'\n      }, {\n        value: '72px',\n        label: '72px'\n      }, {\n        value: '96px',\n        label: '96px'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/menu-logo-height-separate-line/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '10px',\n        label: '10px'\n      }, {\n        value: '20px',\n        label: '20px'\n      }, {\n        value: '30px',\n        label: '30px'\n      }, {\n        value: '40px',\n        label: '40px'\n      }, {\n        value: '50px',\n        label: '50px'\n      }, {\n        value: '60px',\n        label: '60px'\n      }, {\n        value: '70px',\n        label: '70px'\n      }, {\n        value: '80px',\n        label: '80px'\n      }, {\n        value: '90px',\n        label: '90px'\n      }, {\n        value: '100px',\n        label: '100px'\n      }, {\n        value: '110px',\n        label: '110px'\n      }, {\n        value: '120px',\n        label: '120px'\n      }, {\n        value: '130px',\n        label: '130px'\n      }, {\n        value: '140px',\n        label: '140px'\n      }, {\n        value: '150px',\n        label: '150px'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/menu-logo-height/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '10px',\n        label: '10px'\n      }, {\n        value: '20px',\n        label: '20px'\n      }, {\n        value: '30px',\n        label: '30px'\n      }, {\n        value: '40px',\n        label: '40px'\n      }, {\n        value: '50px',\n        label: '50px'\n      }, {\n        value: '60px',\n        label: '60px'\n      }, {\n        value: '70px',\n        label: '70px'\n      }, {\n        value: '80px',\n        label: '80px'\n      }, {\n        value: '90px',\n        label: '90px'\n      }, {\n        value: '100px',\n        label: '100px'\n      }, {\n        value: '110px',\n        label: '110px'\n      }, {\n        value: '120px',\n        label: '120px'\n      }, {\n        value: '130px',\n        label: '130px'\n      }, {\n        value: '140px',\n        label: '140px'\n      }, {\n        value: '150px',\n        label: '150px'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/menu-logo-size/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @deprecated?\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '20px',\n        label: '20x20'\n      }, {\n        value: '30px',\n        label: '30x30'\n      }, {\n        value: '40px',\n        label: '40x40'\n      }, {\n        value: '50px',\n        label: '50x50'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/menu-position/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'left',\n        label: 'left'\n      }, {\n        value: 'right',\n        label: 'right'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/menu-spacing/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      let data = [];\n      for (let i = 0; i <= 10; i++) {\n        data.push({\n          value: `${i}px`,\n          label: `${i}px`\n        });\n      }\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/layout/menu-style/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'horizontal',\n        label: 'horizontal'\n      }, {\n        value: 'vertical',\n        label: 'vertical'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/link-thumbnail-image-ratio/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '1:1',\n        label: '1:1'\n      }, {\n        value: '2:3',\n        label: '2:3'\n      }, {\n        value: '3:2',\n        label: '3:2'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/logo-centered-scroll-method/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '',\n        label: 'none'\n      }, {\n        value: 'shrink',\n        label: 'logoCenteredScrollMethod_shrink'\n      }, {\n        value: 'hide',\n        label: 'logoCenteredScrollMethod_hide'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/logo-icon-position/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'top',\n        label: 'top'\n      }, {\n        value: 'bottom',\n        label: 'bottom'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/logo-menu-position/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'sameLine',\n        label: 'same line'\n      }, {\n        value: 'separateLine',\n        label: 'separate line'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const list = [{\n        //   component: 'websites/panels-dash',\n        //   resource: 'api/protected/websites/lists/menu/actions/dash',\n        //   label: 'dashboard',\n        //   action: 'dash',\n        //   tabType: 'replaceSubTab'\n        // }, {\n        component: 'websites/panels-new',\n        resource: 'api/protected/websites/lists/menu/actions/new',\n        label: 'new',\n        action: 'new',\n        tabType: 'replaceSubTab'\n      }];\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/websites/lists/new-website-wizard/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        component: 'websites/websites-editor/website-wizard/quick-start',\n        resource: 'api/protected/websites/wizard-steps/website-info',\n        icon: 'fas fa-tasks',\n        label: 'website info',\n        tabType: 'reuseSubTab',\n        value: 'websiteInfo',\n        updateProps: ['name', 'subdomain'],\n        _isNewTab: true\n      }, {\n        component: 'websites/websites-editor/website-wizard/quick-templates',\n        resource: 'api/protected/websites/wizard-steps/public-templates',\n        icon: 'fas fa-file-alt',\n        label: 'public templates',\n        tabType: 'reuseSubTab',\n        value: 'publicTemplates',\n        updateProps: ['themeName', 'defaultHomePageTemplate'],\n        _isNewTab: true\n      }, {\n        component: 'websites/websites-editor/website-wizard/quick-shop',\n        resource: 'api/protected/websites/wizard-steps/website-shop',\n        icon: 'fas fa-file-alt',\n        label: 'shop',\n        tabType: 'reuseSubTab',\n        value: 'websiteShop',\n        updateProps: ['status'],\n        _isNewTab: true\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/page-import-btn-sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'privateTemplates',\n        label: 'private templates',\n        component: 'websites/websites-editor/template/private-template'\n      }, {\n        value: 'publicTemplates',\n        label: 'public templates',\n        component: 'websites/websites-editor/template/public-template'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/shared-color-themes/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/websites/sharedColorThemes',\n    modelObj: _model.default,\n    idParam: false\n    // findAll () {\n    //   const data = [{\n    //     value: 'privateTemplates',\n    //     label: 'private templates',\n    //     component: 'websites/websites-editor/templates/private-template'\n    //   }]\n    //\n    //   return nventor.resolve(data)\n    // }\n  });\n});","define(\"client/pods/websites/lists/sub-panels/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"ramda\"], function (_exports, _adapter, _adaptersNew, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      let list = [{\n        group: 'webpages',\n        value: 'webpages',\n        label: 'webpages',\n        component: 'websites/panels-display/sub-panels-pages',\n        resource: 'api/protected/websites/lists/menu/sub-panels/webpages',\n        tabType: 'reuseSubTab',\n        editingComponent: 'websites/websites-editor/pages-editor'\n      }, {\n        group: 'webpages',\n        value: 'shop',\n        label: 'shop',\n        hideOnAllowAllCampaigns: true,\n        component: 'websites/panels-display/sub-panels-shop',\n        resource: 'api/protected/websites/lists/menu/sub-panels/shop',\n        tabType: 'reuseSubTab',\n        editingComponent: 'websites/websites-editor/shop-editor'\n      }, {\n        group: 'webpages',\n        value: 'blogs',\n        label: 'blogs',\n        hideOnAllowAllCampaigns: true,\n        component: 'websites/panels-display/sub-panels-blogs',\n        resource: 'api/protected/websites/lists/menu/sub-panels/blogs',\n        tabType: 'reuseSubTab',\n        editingComponent: 'websites/websites-editor/blogs-editor'\n      }, {\n        group: 'webpages',\n        value: 'news',\n        label: 'news',\n        hideOnAllowAllCampaigns: true,\n        component: 'websites/panels-display/sub-panels-news',\n        resource: 'api/protected/websites/lists/menu/sub-panels/news',\n        tabType: 'reuseSubTab',\n        editingComponent: 'websites/websites-editor/news-editor'\n      }, {\n        group: 'webpages',\n        value: 'storeLocation',\n        label: 'store locations',\n        hideOnAllowAllCampaigns: true,\n        component: 'websites/panels-display/sub-panels-store-location',\n        resource: 'api/protected/websites/lists/menu/sub-panels/store-location',\n        tabType: 'reuseSubTab',\n        editingComponent: 'websites/websites-editor/store-location'\n      }, {\n        group: 'settings',\n        value: 'settings',\n        label: 'settings',\n        component: 'websites/panels-display/sub-panels-settings',\n        editingComponent: 'websites/websites-editor/settings-editor',\n        resource: 'api/protected/websites/lists/menu/sub-panels/settings',\n        tabType: 'reuseSubTab'\n      }, {\n        group: 'settings',\n        value: 'headers-editor',\n        label: 'header-settings',\n        component: 'websites/panels-display/sub-panels-headers',\n        editingComponent: 'websites/websites-editor/headers-editor',\n        resource: 'api/protected/websites/sub-panels-edit/settings',\n        tabType: 'reuseSubTab'\n      }, {\n        group: 'settings',\n        value: 'style-editor',\n        label: 'settings_style',\n        component: 'websites/panels-display/sub-panels-style',\n        editingComponent: 'websites/websites-editor/style-editor',\n        resource: 'api/protected/websites/sub-panels-edit/settings',\n        tabType: 'reuseSubTab'\n      }, {\n        group: 'settings',\n        value: 'seo-editor',\n        label: 'seo',\n        component: 'websites/panels-display/sub-panels-seo',\n        editingComponent: 'websites/websites-editor/seo-editor',\n        resource: 'api/protected/websites/sub-panels-edit/settings',\n        tabType: 'reuseSubTab'\n      }, {\n        group: 'settings',\n        value: '3rd-party',\n        label: '3rd-party',\n        component: 'websites/panels-display/sub-panels-3rd-party',\n        editingComponent: 'websites/websites-editor/3rd-party-editor',\n        resource: 'api/protected/websites/sub-panels-edit/settings',\n        tabType: 'reuseSubTab'\n      }];\n      const isVirtualOnly = this.settings?.isFeatureAllowed('features.isVirtualOnly');\n      if (isVirtualOnly) {\n        const allowed = ['webpages', 'settings', 'style-editor', 'seo-editor'];\n        list = R.filter(item => {\n          return R.includes(item.value)(allowed);\n        })(list);\n      }\n      const customData = {\n        list\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/websites/lists/template-types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'blocks',\n        label: 'websites_templates_type_blocks'\n        // component: 'websites/websites-editor/pages-editor'\n      }];\n      const hasLegacyWebsitesTemplateTypes = this.settings.getProp('features.hasLegacyWebsitesTemplateTypes') || false;\n      if (hasLegacyWebsitesTemplateTypes) {\n        data.push({\n          value: 'templates',\n          label: 'websites_templates_type_templates'\n          // component: 'websites/websites-editor/pages-editor'\n        });\n      }\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/templates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'publicTemplates',\n        label: 'public templates',\n        component: 'websites/websites-editor/templates/public-template'\n      }, {\n        value: 'privateTemplates',\n        label: 'private templates',\n        component: 'websites/websites-editor/templates/private-template'\n      }, {\n        value: 'privateShopTemplate',\n        label: 'private shop templates',\n        component: 'websites/websites-editor/templates/private-shop-template'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: this.get('constants.websitePageTypes.page'),\n        label: 'website_type_page'\n      }, {\n        value: this.get('constants.websitePageTypes.category'),\n        label: 'website_type_category'\n      }, {\n        value: this.get('constants.websitePageTypes.link'),\n        label: 'website_type_link'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/types/links/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: this.constants.websitePageLinkTypes.url,\n        label: 'website_type_link_url',\n        showLink: true\n      }, {\n        value: this.constants.websitePageLinkTypes.pageAndCategory,\n        label: 'website_type_link_pageAndCategory',\n        showLink: false\n      },\n      // {\n      //   value: this.constants.websitePageLinkTypes.page,\n      //   label: 'website_type_link_page'\n      // },\n      // {\n      //   value: this.constants.websitePageLinkTypes.category,\n      //   label: 'website_type_category'\n      // },\n      {\n        value: this.constants.websitePageLinkTypes.product,\n        label: 'website_type_link_product',\n        showLink: false\n      }, {\n        value: this.constants.websitePageLinkTypes.blog,\n        label: 'website_type_link_blogs',\n        showLink: false\n      }, {\n        value: this.constants.websitePageLinkTypes.news,\n        label: 'website_type_link_news',\n        showLink: false\n      }, {\n        value: this.constants.websitePageLinkTypes.storeLocation,\n        label: 'website_type_link_store-location',\n        showLink: false\n      }, {\n        value: this.constants.websitePageLinkTypes.flows,\n        label: 'website_type_link_flows',\n        showLink: false\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/lists/types/links/targets/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: '_self',\n        label: 'this window'\n      }, {\n        value: '_blank',\n        label: 'new window'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/websites/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/utils/nventor\", \"client/pods/open-hours/model\"], function (_exports, R, RA, _model, _nventor, _model2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _obj, _dec4, _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 _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\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  /**\n   * Website Model Type\n   * @typedef {Object} WebsiteDataType\n   * @property {boolean} facebookPluginEnable\n   * @property {boolean} hasCustomDomain\n   * @property {boolean} lineChatEnable\n   * @property {boolean} menuExpandSubMenus\n   * @property {boolean} menuIsAlwaysHidden\n   * @property {boolean} menuShowName\n   * @property {boolean} menuShowLogo\n   * @property {String} menuShowLogoSize\n   * @property {String} menuShowLogoMobileSize\n   * @property {String} menuShowLogoDesktopOnlySize\n   * @property {boolean} widthDefault\n   * @property {boolean} widthFull\n   * @property {boolean} disableMultipleLanguages\n   * @property {boolean} useDefaultsContactInfo\n   * @property {string} defaultHomePageTemplate\n   * @property {string} domain\n   * @property {string} menuPosition\n   * @property {string} menuStyle\n   * @property {string} productsImagesBorderRadius\n   * @property {string} name\n   * @property {string} status\n   * @property {string} subdomain\n   * @property {string} blogsImagesRatio\n   * @property {string} themeActionColor\n   * @property {string} themeActionFinalColor\n   * @property {string} themeActionFinalFocusColor\n   * @property {string} themeActionFinalHoverColor\n   * @property {string} themeActionFinalTextColor\n   * @property {string} themeActionHoverColor\n   * @property {string} themeActionTextColor\n   * @property {string} themeActiveColor\n   * @property {string} themeBackgroundPrimaryColor\n   * @property {string} themeBackgroundSecondaryColor\n   * @property {string} themeBorderColor\n   * @property {string} themeButtonBorderRadius\n   * @property {string} themeButtonBorderColor\n   * @property {string} themeButtonBorderColor2\n   * @property {string} themeButtonBorderColor3\n   * @property {string} themeButtonColor\n   * @property {string} themeButtonColor2\n   * @property {string} themeButtonColor3\n   * @property {string} themeButtonHoverColor\n   * @property {string} themeButtonHoverColor2\n   * @property {string} themeButtonHoverColor3\n   * @property {string} themeButtonTextColor\n   * @property {string} themeButtonTextColor2\n   * @property {string} themeButtonTextColor3\n   * @property {number} themeContentWidth\n   * @property {string} themeSliderArrowsStyle\n   * @property {string} themeSliderArrowsBorderColor\n   * @property {string} themeSliderArrowsBackgroundColor\n   * @property {string} themeSliderArrowsHoverBackgroundColor\n   * @property {string} themeSliderArrowsTextColor\n   * @property {string} themeSliderDotsColor\n   * @property {string} themeSliderDotsActiveColor\n   * @property {string} themeVariantButtonColor\n   * @property {string} themeVariantButtonTextColor\n   * @property {string} themeVariantButtonBorderColor\n   * @property {string} themeVariantButtonHoverColor\n   * @property {string} themeVariantButtonHoverTextColor\n   * @property {string} themeVariantButtonHoverBorderColor\n   * @property {string} themeVariantButtonSelectedColor\n   * @property {string} themeVariantButtonSelectedTextColor\n   * @property {string} themeVariantButtonSelectedBorderColor\n   * @property {string} themeVariantButtonBorderRadius\n   * @property {string} themeChatButtonColor\n   * @property {string} themeChatButtonHoverColor\n   * @property {string} themeChatButtonTextColor\n   * @property {string} themeCountDownColor\n   * @property {string} themeCountDownTextColor\n   * @property {string} themeCarouselBannerColor\n   * @property {string} themeCarouselBannerTextColor\n   * @property {string} themeCarouselBannerLinkHoverColor\n   * @property {string} themeFooterBackgroundColor\n   * @property {string} themeFooterLinkColor\n   * @property {string} themeFooterLinkHoverColor\n   * @property {string} themeFooterTextColor\n   * @property {string} themeInputBackgroundColor\n   * @property {string} themeInputBorderFocusColor\n   * @property {string} themeInputTextColor\n   * @property {string} themeLinkColor\n   * @property {string} themeLinkHoverColor\n   * @property {string} themeMenuBackgroundPrimaryColor\n   * @property {string} themeMenuBackgroundSecondaryColor\n   * @property {string} themeMenuBorderColor\n   * @property {string} themeMenuItemBorderColor\n   * @property {string} themeMenuLinkColor\n   * @property {string} themeMenuLinkHoverColor\n   * @property {string} themeMenuButtonColor\n   * @property {string} themeMenuButtonHoverColor\n   * @property {string} themeSubmenuBackgroundPrimaryColor\n   * @property {string} themeSubmenuBackgroundSecondaryColor\n   * @property {string} themeSubmenuBorderColor\n   * @property {string} themeSubmenuItemBorderColor\n   * @property {string} themeSubmenuLinkColor\n   * @property {string} themeSubmenuLinkHoverColor\n   * @property {string} themeSaleColor\n   * @property {string} themeSaleTextColor\n   * @property {string} themeTagColor\n   * @property {string} themeTagTextColor\n   * @property {string} themeText2Color\n   * @property {string} themeText3Color\n   * @property {string} themeTextColor\n   * @property {string} themeSalePriceTextColor\n   * @property {string} themeOriginalPriceTextColor\n   * @property {string} themeAlmostSoldOutTextColor\n   * @property {string} widthCustom\n   * @property {string} themeCampaignHeaderBackgroundColor\n   * @property {string} themeCampaignHeaderTitleColor\n   * @property {string} themeCampaignHeaderSubtitleColor\n   * @property {string} themeCampaignHeaderNoticeColor\n   */\n\n  /**\n   * Website Model Type\n   * @typedef {Object} WebsiteType\n   * @property {WebsiteDataType} _data\n   */\n\n  const WebsitesBaseModel = _model.default.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _obj = {\n    defaults() {\n      const settings = this.settings;\n      const linkColor = '#000000';\n      const linkHoverColor = '#262626';\n      const primaryColor = '#e4666f';\n      const primaryContrastColor = '#ffffff';\n      const primaryHoverColor = '#fa2e3c';\n      const textColor = '#666666';\n      const inputTextColor = '#363636';\n      const whiteTextColor = '#ffffff';\n      const secondaryColor = '#000000';\n      const secondaryContrastColor = '#ffffff';\n      const secondaryHoverColor = '#262626';\n      const neutralColor = '#ffffff';\n      const neutralHoverColor = '#eeeeee';\n      const backgroundColor = '#ffffff';\n      const borderColor = '#eeeeee';\n      const secondaryBackgroundColor = '#eeeeee';\n      const secondaryBackgroundTextColor = '#666666';\n      const secondaryBackgroundLinkColor = '#000000';\n      const secondaryBackgroundLinkHoverColor = '#262626';\n      const chatColor = '#66aee4';\n      const chatHoverColor = '#4390ca';\n      const chatTextColor = '#ffffff';\n      const saleColor = '#ff4a68';\n      const saleTextColor = '#ffffff';\n      const activeColor = '#000000';\n      const tagColor = '#f5f5f5';\n      const tagTextColor = '#666666';\n      const defaultRadius = '20px';\n      const defaultSpacing = '0px';\n      const isSimpleSite = settings.isFeatureAllowed('features.isVirtualOnly');\n      return {\n        name: '',\n        subdomain: '',\n        domain: '',\n        defaultHomePageTemplate: {\n          pageDataString: '{\"html\":\"\",\"css\":\"*{box-sizing: border-box;} body {margin: 0;}\",\"assets\":[],\"styles\":[],\"components\":[]}'\n        },\n        themeName: '',\n        hasCustomDomain: false,\n        blogsImagesFit: this.constants.campaignProductsImageFit.scaleCrop,\n        blogsImagesRatio: settings.getProp('websiteBlogsImagesRatio'),\n        facebookPluginEnable: settings.getProp('facebookPluginEnable', false),\n        lineChatEnable: settings.getProp('lineChatEnable', false),\n        status: this.get('constants.status.active'),\n        widthDefault: true,\n        widthFull: false,\n        widthCustom: '1344',\n        menuExpandAlignment: this.get('constants.alignment.left'),\n        menuExpandBehavior: this.get('constants.menuExpandBehavior.autoHide'),\n        menuIsAlwaysHidden: false,\n        menuExpandSubMenus: false,\n        menuStyle: 'horizontal',\n        menuShowName: true,\n        menuShowLogo: true,\n        menuShowLogoSize: '20px',\n        menuShowLogoMobileSize: '20px',\n        menuShowLogoDesktopOnlySize: '20px',\n        menuFontSize: '14px',\n        menuPosition: 'left',\n        productsImagesBorderRadius: 'none',\n        facebookPixelKeys: [],\n        googleTrackingKeys: [],\n        showQuickNav: true,\n        useDefaultsFacebookPixelKeys: true,\n        useDefaultsGoogleTrackingKeys: true,\n        useDefaultsContactInfo: true,\n        themeActionColor: primaryColor,\n        themeActionTextColor: primaryContrastColor,\n        themeActionHoverColor: primaryHoverColor,\n        themeActionFinalColor: secondaryColor,\n        themeActionFinalFocusColor: secondaryHoverColor,\n        themeActionFinalHoverColor: secondaryHoverColor,\n        themeActionFinalTextColor: secondaryContrastColor,\n        themeActiveColor: activeColor,\n        themeBackgroundPrimaryColor: backgroundColor,\n        themeBackgroundSecondaryColor: backgroundColor,\n        themeBorderColor: borderColor,\n        themeTagColor: tagColor,\n        themeTagTextColor: tagTextColor,\n        themeButtonBorderRadius: defaultRadius,\n        themeButtonBorderRadius2: defaultRadius,\n        themeButtonBorderRadius3: defaultRadius,\n        themeVariantButtonBorderRadius: defaultRadius,\n        themeButtonBorderColor: borderColor,\n        themeButtonColor: neutralColor,\n        themeButtonHoverColor: neutralHoverColor,\n        themeButtonHoverTextColor: primaryHoverColor,\n        themeButtonTextColor: textColor,\n        themeButtonBorderColor2: '#b8b8b8',\n        themeButtonColor2: '#b8b8b8',\n        themeButtonHoverColor2: '#666666',\n        themeButtonHoverTextColor2: primaryHoverColor,\n        themeButtonTextColor2: secondaryContrastColor,\n        themeButtonBorderColor3: '#666666',\n        themeButtonColor3: '#666666',\n        themeButtonHoverColor3: '#b8b8b8',\n        themeButtonHoverTextColor3: primaryHoverColor,\n        themeButtonTextColor3: secondaryContrastColor,\n        themeContentWidth: '1300px',\n        // themeSliderArrowsStyle: 'circle',\n        // themeSliderArrowsBorderColor: borderColor,\n        // themeSliderArrowsBackgroundColor: neutralColor,\n        // themeSliderArrowsHoverBackgroundColor: neutralHoverColor,\n        // themeSliderArrowsTextColor: textColor,\n        // themeSliderDotsStyle: this.constants.imagesSliderDotsStyles.dots,\n        // themeSliderDotsColor: neutralColor,\n        // themeSliderDotsActiveColor: neutralHoverColor,\n\n        themeVariantButtonColor: primaryContrastColor,\n        themeVariantButtonTextColor: primaryColor,\n        themeVariantButtonBorderColor: primaryColor,\n        themeVariantButtonHoverColor: primaryContrastColor,\n        themeVariantButtonHoverTextColor: primaryHoverColor,\n        themeVariantButtonHoverBorderColor: primaryHoverColor,\n        themeVariantButtonSelectedColor: primaryColor,\n        themeVariantButtonSelectedTextColor: primaryContrastColor,\n        themeVariantButtonSelectedBorderColor: primaryColor,\n        themeChatButtonColor: chatColor,\n        themeChatButtonHoverColor: chatHoverColor,\n        themeChatButtonTextColor: chatTextColor,\n        themeCountDownColor: secondaryColor,\n        themeCountDownTextColor: whiteTextColor,\n        themeCarouselBannerColor: secondaryBackgroundColor,\n        themeCarouselBannerTextColor: secondaryBackgroundLinkColor,\n        themeCarouselBannerLinkHoverColor: secondaryBackgroundLinkHoverColor,\n        themeFooterHeaderColor: primaryColor,\n        themeFooterBackgroundColor: secondaryBackgroundColor,\n        themeFooterLinkColor: secondaryBackgroundLinkColor,\n        themeFooterLinkHoverColor: secondaryBackgroundLinkHoverColor,\n        themeFooterTextColor: secondaryBackgroundTextColor,\n        themeInputTextColor: inputTextColor,\n        themeInputBackgroundColor: backgroundColor,\n        themeInputBorderFocusColor: borderColor,\n        themeLinkColor: linkColor,\n        themeLinkHoverColor: linkHoverColor,\n        themeMenuBackgroundPrimaryColor: backgroundColor,\n        themeMenuBackgroundSecondaryColor: backgroundColor,\n        themeMenuBorderColor: borderColor,\n        themeMenuItemBorderColor: backgroundColor,\n        themeMenuLinkColor: linkColor,\n        themeMenuLinkHoverColor: linkHoverColor,\n        themeMenuButtonColor: linkColor,\n        themeMenuButtonHoverColor: linkHoverColor,\n        themeSubmenuBackgroundPrimaryColor: backgroundColor,\n        themeSubmenuBackgroundSecondaryColor: backgroundColor,\n        themeSubmenuBorderColor: borderColor,\n        themeSubmenuItemBorderColor: backgroundColor,\n        themeSubmenuLinkColor: linkColor,\n        themeSubmenuLinkHoverColor: linkHoverColor,\n        themeText2Color: textColor,\n        themeText3Color: textColor,\n        themeTextColor: textColor,\n        themeSalePriceTextColor: textColor,\n        themeOriginalPriceTextColor: textColor,\n        themeAlmostSoldOutTextColor: textColor,\n        themeFaqsQuestionColor: textColor,\n        themeFaqsQuestionHoverColor: textColor,\n        themeFaqsAnswerColor: textColor,\n        themeBreadcrumbsTextColor: textColor,\n        themeBreadcrumbsBackgroundColor: backgroundColor,\n        themeSaleColor: saleColor,\n        themeSaleTextColor: saleTextColor,\n        themeCampaignHeaderBackgroundColor: backgroundColor,\n        themeCampaignHeaderTitleColor: textColor,\n        themeCampaignHeaderSubtitleColor: textColor,\n        themeCampaignHeaderNoticeColor: textColor,\n        themeNavTreeItemPaddingX: '0px',\n        themeNavTreeItemMarginX: '0px',\n        themeGeneralLetterSpacing: defaultSpacing,\n        themeHeaderH1LetterSpacing: defaultSpacing,\n        themeHeaderH2LetterSpacing: defaultSpacing,\n        themeHeaderH3LetterSpacing: defaultSpacing,\n        themeHeaderH4LetterSpacing: defaultSpacing,\n        themeHeaderH5LetterSpacing: defaultSpacing,\n        themeHeaderH6LetterSpacing: defaultSpacing,\n        openHours: {\n          hasBreakTime: false,\n          monday: {},\n          tuesday: {},\n          wednesday: {},\n          thursday: {},\n          friday: {},\n          saturday: {},\n          sunday: {}\n        },\n        openGraph: {\n          imageRatio: '3:2'\n        },\n        favicon: '',\n        logoMobile: '',\n        logoPosition: 'top',\n        logoIconPosition: 'top',\n        allowSeo: false,\n        thirdParty: {\n          rss: {\n            enabled: false\n          },\n          shopDotCom: {}\n        },\n        isShowBlogsTags: true,\n        isShowNewsTags: true,\n        blogsPerRow: 3,\n        newsPerRow: 3,\n        isSimpleSite,\n        blogsAndNewsTitleFontAlignment: 'left',\n        blogsStyle: 'style1',\n        blogsAndNewsFontSize: 'small',\n        blogsAndNewsFontWeight: 'bold',\n        blogsAndNewsFontFamily: 'Arial, Helvetica, sans-serif',\n        blogsAndNewsFontAlignment: 'center',\n        blogsAndNewsLineCountForTitle: 2,\n        blogsAndNewsLineCountForDescription: 3,\n        isDisplayBlogsAndNewsAuthor: false,\n        isDisplayBlogsAndNewsTags: false,\n        isDisplayBlogsAndNewsDate: false,\n        isDisplayBlogsAndNewsTitle: true,\n        isDisplayBlogsAndNewsDescription: true,\n        disableMultipleLanguages: true\n      };\n    },\n    populate(data, attrs) {\n      // @TODO: remove?\n      data.orderedEmailCopyTo = this.emails.joinAsString(data.orderedEmailCopyTo);\n      data.themeMenuButtonColor = data.themeMenuButtonColor || data.themeMenuLinkColor;\n      data.themeMenuButtonHoverColor = data.themeMenuButtonHoverColor || data.themeMenuLinkHoverColor;\n      data.allowSeo = this._setSeoFlagOnOldWebsites(data);\n      data.openHours = this._transformOpenHours(data);\n      data.thirdParty = this._transformThirdParty(data);\n      data.openGraph = this._transformOpenGraph(data);\n      data.blogTagsWithIndexes = this._transformBlogTagsWithIndexes(data);\n      if (data.allowAllCampaigns) {\n        data.allowAllCampaignsCheckOrder = true;\n      }\n      this._super(data, attrs);\n    },\n    _transformBlogTagsWithIndexes(data) {\n      const blogTagsWithIndexes = R.propOr([], 'blogTagsWithIndexes')(data);\n      return R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'websites/blog-tags-filters',\n          data\n        });\n      })(blogTagsWithIndexes);\n    },\n    _transformNewsTagsWithIndexes(data) {\n      const newsTagsWithIndexes = R.propOr([], 'newsTagsWithIndexes')(data);\n      return R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'websites/news-tags-filters',\n          data\n        });\n      })(newsTagsWithIndexes);\n    },\n    _transformStoreLocationTagsWithIndexes(data) {\n      const storeLocationTagsWithIndexes = R.propOr([], 'storeLocationTagsWithIndexes')(data);\n      return R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'websites/storeLocation-tags-filters',\n          data\n        });\n      })(storeLocationTagsWithIndexes);\n    },\n    _transformOpenGraph(data) {\n      const defaults = this.defaults() || {};\n      return R.pipe(R.pathOr({}, ['openGraph']), R.mergeRight(defaults.openGraph))(data);\n    },\n    _transformThirdParty(data) {\n      const defaults = this.defaults() || {};\n      return R.pipe(R.propOr({}, 'thirdParty'), R.mergeRight(defaults.thirdParty))(data);\n    },\n    colors: Ember.computed('synced', function () {\n      return R.pipe(R.propOr({}, '_data'), R.toPairs, R.filter(R.pipe(R.head, R.test(/^theme(?!Name)/))), R.sort(([a], [b]) => a.localeCompare(b)), R.map(R.zipObj(['key', 'value'])))(this);\n    }),\n    wizardTabRequirements: [['name', 'subdomain'], ['defaultHomePageTemplate', 'themeName']],\n    wizardRequirementsMet: Ember.computed('_data.{name,subdomain,defaultHomePageTemplate,themeName}', function () {\n      const wizardTabRequirements = this.wizardTabRequirements || [];\n      const requirements = R.pipe(R.map(req => R.pick(req)(this._data)), R.reject(R.isEmpty))(wizardTabRequirements);\n      if (R.isEmpty(requirements)) {\n        return requirements;\n      }\n      const noEmpty = R.pipe(R.isEmpty, R.not);\n      return R.pipe(R.map(R.pipe(R.map(noEmpty), R.values, RA.allEqualTo(true))))(requirements);\n    }),\n    openDays: Ember.computed('_data.openHours.monday.{open,close}', '_data.openHours.tuesday.{open,close}', '_data.openHours.wednesday.{open,close}', '_data.openHours.thursday.{open,close}', '_data.openHours.friday.{open,close}', '_data.openHours.saturday.{open,close}', '_data.openHours.sunday.{open,close}', function () {\n      const openHours = this._data.openHours;\n      if (openHours) {\n        return R.map(R.ifElse(R.propEq('open', 'none'), R.always({\n          hasOpeningTime: true\n        }), R.always({\n          hasOpeningTime: false\n        })))(openHours);\n      }\n    }),\n    _transformOpenHours(data) {\n      const defaults = this.defaults() || {};\n      const defaultsOpenHours = defaults.openHours || {};\n      const openHours = R.propOr(defaultsOpenHours, 'openHours')(data);\n      return R.mapObjIndexed((value, key) => {\n        if (R.type(value) === 'Boolean') {\n          return value;\n        }\n        value.name = key;\n        return _nventor.default.createModel(_model2.default, value);\n      })(openHours);\n    },\n    _setSeoFlagOnOldWebsites(data) {\n      if (data.hasCustomDomain && RA.isNilOrEmpty(data.allowSeo)) {\n        return true;\n      }\n      return data?.allowSeo || false;\n    },\n    sortedOpenHours: Ember.computed('_data.openHours.monday.{open,close,hasOpeningHours}', '_data.openHours.tuesday.{open,close,hasOpeningHours}', '_data.openHours.wednesday.{open,close,hasOpeningHours}', '_data.openHours.thursday.{open,close,hasOpeningHours}', '_data.openHours.friday.{open,close,hasOpeningHours}', '_data.openHours.saturday.{open,close,hasOpeningHours}', '_data.openHours.sunday.{open,close,hasOpeningHours}', function () {\n      const openHours = this._data.openHours;\n      const weekdays = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'];\n      const sortDays = R.pipe(R.toPairs, R.sortBy(R.pipe(R.head, R.indexOf(R.__, weekdays))), R.fromPairs, R.values, R.reject(day => R.type(day) === 'Boolean'));\n      return sortDays(openHours);\n    }),\n    rssUrls: Ember.computed('_data.{domain,subdomain}', function () {\n      const rssConsumers = ['google', 'facebook'];\n      return rssConsumers.reduce((acc, consumerName) => {\n        const shouldUseCustomDomain = this._data?.domainVerified && this._data?.hasCustomDomain;\n        let url = `https://${this._data.subdomain}.bigordr.com`;\n        if (shouldUseCustomDomain) {\n          url = `https://${this._data.domain}`;\n        }\n        const feedData = {\n          name: consumerName,\n          url: `${url}/api/public/3rdparty/rss/${consumerName}/products.xml`\n        };\n        return acc.concat(feedData);\n      }, []);\n    }),\n    openGraphImageData: Ember.computed('_data.openGraph.{width,height}', function () {\n      const ratioData = {\n        '1:1': {\n          width: 200,\n          height: 200,\n          classNames: ''\n        },\n        '2:3': {\n          width: 200,\n          height: 400,\n          classNames: 'height-inherit'\n        },\n        '3:2': {\n          width: 400,\n          height: 200,\n          classNames: ''\n        }\n      };\n      const imageRatio = this._data.openGraph.imageRatio || '3:2';\n      const data = ratioData[imageRatio];\n      const width = this._data.openGraph?.width || data.width;\n      const height = this._data.openGraph?.height || data.height;\n      const transform = '/-/progressive/yes/-/format/auto/-/quality/better/-/preview/';\n      return {\n        width,\n        height,\n        transform\n      };\n    }),\n    setupBlogTagsWithIndexes(blogTagsWithIndexes) {\n      const latestBlogTagsWithIndexes = this._transformBlogTagsWithIndexes({\n        blogTagsWithIndexes\n      });\n      this.setData('blogTagsWithIndexes', latestBlogTagsWithIndexes);\n    },\n    blogTagsWithIndexesSorted: Ember.computed('synced', '_data.blogTagsWithIndexes.@each.index', function () {\n      const blogTagsWithIndexes = this._data?.blogTagsWithIndexes || [];\n      return R.sortWith([R.ascend(R.path(['_data', 'index']))])(blogTagsWithIndexes);\n    }),\n    setupNewsTagsWithIndexes(newsTagsWithIndexes) {\n      const latestNewsTagsWithIndexes = this._transformNewsTagsWithIndexes({\n        newsTagsWithIndexes\n      });\n      this.setData('newsTagsWithIndexes', latestNewsTagsWithIndexes);\n    },\n    newsTagsWithIndexesSorted: Ember.computed('synced', '_data.newsTagsWithIndexes.@each.index', function () {\n      const newsTagsWithIndexes = this._data?.newsTagsWithIndexes || [];\n      return R.sortWith([R.ascend(R.path(['_data', 'index']))])(newsTagsWithIndexes);\n    }),\n    setupStoreLocationTagsWithIndexes(storeLocationTagsWithIndexes) {\n      const latestStoreLocationTagsWithIndexes = this._transformStoreLocationTagsWithIndexes({\n        storeLocationTagsWithIndexes\n      });\n      this.setData('storeLocationTagsWithIndexes', latestStoreLocationTagsWithIndexes);\n    },\n    storeLocationTagsWithIndexesSorted: Ember.computed('synced', '_data.storeLocationTagsWithIndexes.@each.index', function () {\n      const storeLocationTagsWithIndexes = this._data?.storeLocationTagsWithIndexes || [];\n      return R.sortWith([R.ascend(R.path(['_data', 'index']))])(storeLocationTagsWithIndexes);\n    })\n  }, _applyDecoratedDescriptor(_obj, \"setupBlogTagsWithIndexes\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"setupBlogTagsWithIndexes\"), _obj), _applyDecoratedDescriptor(_obj, \"setupNewsTagsWithIndexes\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"setupNewsTagsWithIndexes\"), _obj), _applyDecoratedDescriptor(_obj, \"setupStoreLocationTagsWithIndexes\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"setupStoreLocationTagsWithIndexes\"), _obj), _obj));\n  let WebsitesModel = _exports.default = (_dec4 = Ember._tracked, _class = class WebsitesModel extends WebsitesBaseModel {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/websites/news-tags-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/websites/news-tags-filter',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/websites/pages/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/websites/pages/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/websites/pages',\n    idParam: '_id',\n    idPrefix: 'websitesPages',\n    // this is needed for when campaigns advanced templates are mixed with websitesPages. this happens when searching for load website pages with campaigns advanced templates. (@TODO: campaigns should use another adapter \"channels/shop/campaigns/advanced-template\")\n    modelObj: _model.default\n  });\n});","define(\"client/pods/websites/pages/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/websites/pages/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/websites/pages/collection',\n    modelObj: _model.default,\n    idParam: 'master',\n    idPrefix: 'websites/pages/collection'\n  });\n});","define(\"client/pods/websites/pages/collection/model\", [\"exports\", \"ramda\", \"client/pods/base/model\", \"client/mixins/sortable-details\", \"client/utils/nventor\"], function (_exports, R, _model, _sortableDetails, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 WebsitesPagesCollectionBaseModel = _model.default.extend(_sortableDetails.default, {\n    toSortProp: '_data.pages',\n    indexProp: '_data.posIndex',\n    init() {\n      this._super(...arguments);\n      this.set('adapters', {\n        pages: 'websites/pages'\n      });\n    },\n    populate(data, attrs) {\n      data.pages = this._transformPages(data.pages);\n      this._super(data, attrs);\n    },\n    _transformPages(pages = []) {\n      return pages.map(page => {\n        return this.dataManager.setAsRecord({\n          adapterName: this.get('adapters.pages'),\n          data: page,\n          attrs: {\n            sub: []\n          }\n        });\n      });\n    },\n    getCurrentPage(page) {\n      const key = page.getData('_key');\n      const pages = this.getData('pages') || [];\n      return R.find(R.pathEq(['_data', '_key'], key))(pages);\n    },\n    nextPosIndex: Ember.computed('_data.pages.[]', 'synced', function () {\n      let pages = this.get('_data.pages') || [];\n      pages = R.sortWith([R.ascend(R.path(['_data', 'posIndex']))])(pages);\n      const lastPage = pages.get('lastObject');\n      let lastPosIndex = pages.length;\n      if (lastPage) {\n        lastPosIndex = parseInt(lastPage.getData('posIndex')) || pages.length;\n      }\n      return lastPosIndex + 1;\n    }),\n    toSortArray: Ember.computed('_data.pages.[]', 'synced', function () {\n      return this.get('_data.pages');\n    }),\n    menu: Ember.computed('_data.sorted.{[],@each.synced}', '_data.pages.@each.synced', function () {\n      let sorted = this.sorted || [];\n      const byDepths = R.pipe(R.sortWith([R.ascend(R.path(['_data', 'depth']))]), R.groupBy(R.path(['_data', 'depth'])), R.values)(sorted);\n      const childrenByParent = R.pipe(R.drop(1), R.flatten, R.groupBy(R.path(['_data', 'parent'])))(byDepths);\n      const findChildrenByParent = (parentKey, childrenByParent) => {\n        return R.pipe(R.mapObjIndexed((childrenPages, key) => {\n          const hasMatchingLastSegment = R.pipe(R.split('/'), _nventor.default.safeLast, R.equals(parentKey))(key);\n          if (hasMatchingLastSegment) {\n            return childrenPages;\n          }\n          return false;\n        }), R.values, R.reject(R.equals(false)), R.flatten)(childrenByParent);\n      };\n      return R.pipe(R.map(depthData => {\n        return R.map(item => {\n          const sub = findChildrenByParent(item._data._key, childrenByParent);\n          item.set('sub', sub);\n          return item;\n        })(depthData);\n      }), _nventor.default.safeHeadOr([]))(byDepths);\n    }),\n    menuExcludingHome: Ember.computed('menu.@each.synced', 'synced', function () {\n      const menu = this.menu || [];\n      return R.reject(R.pathEq(['_data', 'isHome'], true))(menu);\n    }),\n    menuAllowAllCampaigns: Ember.computed('menu.@each.synced', 'synced', function () {\n      const menu = this.menu || [];\n      return R.filter(R.anyPass([R.pathEq(['_data', 'isHome'], true), R.pathEq(['_data', 'status'], 'active'), R.pathEq(['_data', 'url'], 'privacy-policy'), R.pathEq(['_data', 'url'], 'shipping-policy')]))(menu);\n    }),\n    reorderPages(droppedOn, position, draggedData) {\n      // const menu = this.get('menu') || [] //required to get posIndex?\n      const pages = this.get('_data.pages') || [];\n      // let details = menu || []\n      const dragged = R.find(R.pathEq(['_data', '_key'], draggedData._key))(pages);\n      const droppedParentKey = droppedOn.getData('parent');\n      let droppedOnPosIndex = droppedOn.getData('posIndex');\n      const draggedPosIndex = dragged.getData('posIndex');\n      const draggedKey = dragged.getData('_key');\n      if (draggedPosIndex === droppedOnPosIndex || draggedKey === droppedParentKey) {\n        return pages;\n      }\n      const droppedDepth = droppedOn.getData('depth') || 0;\n      dragged.set('_data.parent', droppedParentKey);\n      dragged.set('_data.depth', droppedDepth);\n      if (position === 'into') {\n        // not yet implemented\n      } else {\n        if (draggedPosIndex > droppedOnPosIndex && position === 'below') {\n          droppedOnPosIndex = droppedOnPosIndex + 1;\n        }\n        dragged.set('moveToIndex', droppedOnPosIndex);\n      }\n      if (draggedPosIndex < droppedOnPosIndex && position === 'below') {\n        // move to below onOverItemIndex\n        pages.map(detail => {\n          this.moveDetailBelow(detail, draggedPosIndex, droppedOnPosIndex);\n        });\n      } else {\n        // move to above onOverItemIndex\n        pages.map(detail => {\n          this.moveDetailAbove(detail, draggedPosIndex, droppedOnPosIndex);\n        });\n      }\n\n      // reset index because it's messy.\n      // filtering isHome because should always be on top\n      // maybe need to filter isDynamicPage (system generated page) too?\n      R.pipe(R.reject(R.pathEq(['_data', 'isHome'], true)), R.sortWith([R.ascend(R.path(['_data', 'posIndex']))]), R.forEachObjIndexed((page, index) => {\n        const oldIndex = page.getData('posIndex');\n        if (Number(oldIndex) !== Number(index)) {\n          page.setData('posIndex', parseInt(index));\n          page.set('posChanged', true);\n        }\n      }))(pages);\n      this.updateSynced();\n      return R.filter(R.pathEq(['posChanged'], true))(pages);\n    },\n    moveDetailAbove(detail, fromIndex, toIndex) {\n      const moveToIndex = detail.get('moveToIndex');\n      if (moveToIndex) {\n        detail.set('_data.posIndex', moveToIndex);\n        detail.set('moveToIndex', false);\n        detail.set('posChanged', true);\n        return detail;\n      }\n      const currentIndex = detail._data.posIndex;\n      if (currentIndex >= toIndex && currentIndex < fromIndex) {\n        detail.set('_data.posIndex', currentIndex + 1);\n        detail.set('posChanged', true);\n      }\n      return detail;\n    },\n    moveDetailBelow(detail, fromIndex, toIndex) {\n      const moveToIndex = detail.get('moveToIndex');\n      if (moveToIndex) {\n        detail.set('_data.posIndex', moveToIndex);\n        detail.set('moveToIndex', false);\n        detail.set('posChanged', true);\n        return detail;\n      }\n      const currentIndex = detail._data.posIndex;\n      if (currentIndex > fromIndex && currentIndex <= toIndex) {\n        detail.set('_data.posIndex', currentIndex - 1);\n        detail.set('posChanged', true);\n      }\n      return detail;\n    }\n  });\n  let WebsitesPagesCollectionModel = _exports.default = (_dec = Ember._tracked, _class = class WebsitesPagesCollectionModel extends WebsitesPagesCollectionBaseModel {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/websites/pages/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/websites/pages/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/websites/pages/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        statuses: [this.get('constants.status.active')],\n        name: '',\n        domain: '',\n        tags: [],\n        sort: [{\n          by: 'posIndex',\n          direction: 'ASC'\n        }]\n      };\n    }\n  });\n});","define(\"client/pods/websites/pages/model\", [\"exports\", \"ramda\", \"ramda-adjunct\", \"client/pods/base/model\", \"client/utils/nventor\", \"client/mixins/templates\"], function (_exports, R, RA, _model, _nventor, _templates) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj, _dec5, _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 _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\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  const WebsitesPagesBaseModel = _model.default.extend(_templates.default, (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    defaults() {\n      const settings = this.settings;\n      return {\n        css: '',\n        hasTemplate: false,\n        html: '',\n        pageDataString: '{\"html\":\"\",\"css\":\"* { box-sizing: border-box; } body {margin: 0;}\",\"assets\":[],\"styles\":[],\"components\":[]}',\n        products: [],\n        pageSchedules: [],\n        templateType: settings.getProp('websitesTemplateType', this.constants?.templateTypes?.templates),\n        // this currently doesnt work because of code below: \"data.templateType = data.templateType ||this.constants?.templateTypes?.templates\"\n        showOnMenu: true,\n        showOnFooter: false,\n        showOnFilters: false,\n        templateImages: [],\n        type: this.constants?.websitePageTypes?.page,\n        homePageRedirect: false,\n        showBigOrdrStory: false,\n        allowSeo: true,\n        flowForms: [],\n        facebookPixelKeys: [],\n        googleTrackingKeys: [],\n        pageBlocks: [],\n        openGraph: {},\n        isCanonical: true\n      };\n    },\n    populate(data, attrs) {\n      data.pageBlocks = this._transformPageBlocks(data);\n      data.pageSchedules = this._transformSchedules({\n        data,\n        schedulesProp: 'pageSchedules'\n      });\n\n      // converts old data with no templateType\n      const settings = this.settings;\n      const hasLegacyWebsitesTemplateTypes = settings.getProp('features.hasLegacyWebsitesTemplateTypes');\n      if (hasLegacyWebsitesTemplateTypes) {\n        data.templateType = data.templateType || settings.getProp('websitesTemplateType', this.constants?.templateTypes?.templates);\n      } else {\n        data.templateType = this.constants?.templateTypes?.blocks; // only allow blocks\n      }\n      this._super(data, attrs);\n    },\n    _transformPageBlocks(data) {\n      // @TODO: move into service\n      return this.websitesService.transformPageBlocks(data);\n    },\n    _transformSchedules({\n      data,\n      schedulesProp\n    }) {\n      const schedules = R.propOr([], schedulesProp)(data);\n      return R.map(schedule => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'status-schedules',\n          data: schedule\n        });\n      })(schedules);\n    },\n    addSchedule({\n      schedule = {},\n      schedulesProp = ''\n    }) {\n      if (schedulesProp) {\n        const schedules = this.getData(schedulesProp) || [];\n        const scheduleModel = this.dataManager.setAsRecord({\n          adapterName: 'status-schedules',\n          data: schedule\n        });\n        schedules.pushObject(scheduleModel);\n        this.setData(schedulesProp, schedules);\n      }\n    },\n    statusClass: Ember.computed('_data.status', function () {\n      // @TODO: needs to schedules into account\n      const status = this.getData('status');\n      if (status === this.constants.status.active) {\n        return 'is-primary';\n      }\n      return 'is-danger';\n    }),\n    isPage: Ember.computed('_data.type', function () {\n      if (this.get('_data.type') === this.get('constants.websitePageTypes.page')) {\n        return true;\n      }\n      return false;\n    }),\n    isCategory: Ember.computed('_data.type', function () {\n      if (this.get('_data.type') === this.get('constants.websitePageTypes.category')) {\n        return true;\n      }\n      return false;\n    }),\n    isLink: Ember.computed('_data.type', function () {\n      if (this.get('_data.type') === this.get('constants.websitePageTypes.link')) {\n        return true;\n      }\n      return false;\n    }),\n    isProductLink: Ember.computed('isLink', '_data.linkType', function () {\n      const linkType = this.get('_data.linkType');\n      if (this.isLink && linkType === this.get('constants.websitePageLinkTypes.page')) {\n        return true;\n      }\n      return false;\n    }),\n    allowWebBuilder: Ember.computed('model.{isPage,isLink,isCategory}', function () {\n      if (this.get('model.isLink')) {\n        return false;\n      }\n      return true;\n    }),\n    previewUrl: Ember.computed('_data.{_key,_rev,version}', 'synced', function () {\n      const pageKey = this.get('_data._key');\n      const version = this.get('_data.version');\n      const previewHostingUrl = this.get('settings.config.APP.previewHostingUrl');\n      const podKey = this.settings.getPodKey();\n      return `${previewHostingUrl}/${podKey}/${pageKey}/${version}-preview.html`;\n    }),\n    isParent: Ember.computed('sub.[]', 'synced', function () {\n      const sub = this.sub || [];\n      if (R.isEmpty(sub)) {\n        return false;\n      }\n      return true;\n    }),\n    lastParentSegment: Ember.computed('_data.parent', function () {\n      const allParentKeys = this.get('_data.parent') || '';\n      return R.pipe(R.split('/'), _nventor.default.safeLast)(allParentKeys);\n    }),\n    pageDataJson: Ember.computed('_data.pageDataString', function () {\n      const pageDataString = this.get('_data.pageDataString');\n      try {\n        return JSON.parse(pageDataString);\n      } catch (e) {\n        return '';\n      }\n    }),\n    templateFromPageDataString: Ember.computed('_data.pageDataString', function () {\n      const pageDataString = this.get('_data.pageDataString');\n      try {\n        const pageData = JSON.parse(pageDataString);\n        return R.propOr('', 'html', pageData);\n      } catch (e) {\n        return '';\n      }\n    }),\n    pageName: Ember.computed('_data.{name,pageName,_rev}', 'synced', function () {\n      const pageData = R.pathOr({}, ['_data'])(this);\n      const pageName = R.prop('pageName')(pageData);\n      if (pageData.isHome) {\n        return pageName || this.intl.t('home page');\n      }\n      if (pageData.isDynamicPage) {\n        return pageName || this.intl.t(pageData.name);\n      }\n      const unnamed = this.intl.t('unnamed');\n      return R.propOr(unnamed, 'name')(pageData);\n    }),\n    pageUrl: Ember.computed('_data.{url,type,linkUrl}', function () {\n      if (this?._data?.type === 'link' && this?._data?.linkUrl) {\n        return this?._data?.linkUrl ?? '';\n      }\n      const url = this?._data?.url || '';\n      if (R.startsWith('http')(url)) {\n        return url;\n      }\n      if (!url) {\n        return '';\n      }\n      return `/${url}`;\n    }),\n    showOnLabels: Ember.computed('_data.{showOnMenu,showOnFilters,showOnFooter}', function () {\n      const showOnMenu = this?._data?.showOnMenu;\n      const showOnFilters = this?._data?.showOnFilters;\n      const showOnFooter = this?._data?.showOnFooter;\n      const showOnLabels = [];\n      showOnLabels.push({\n        isOn: showOnMenu,\n        label: this.intl.t('webpage_show_on_menu_short')\n      });\n      showOnLabels.push({\n        isOn: showOnFilters,\n        label: this.intl.t('webpage_show_on_filters_short')\n      });\n      showOnLabels.push({\n        isOn: showOnFooter,\n        label: this.intl.t('webpage_show_on_footer_short')\n      });\n      return showOnLabels;\n    }),\n    activePageSchedule: Ember.computed('_data.pageSchedules.@each.isActive', function () {\n      const pageSchedules = this.getData('pageSchedules') || [];\n      return R.find(R.propEq('isActive', true))(pageSchedules);\n    }),\n    nextPageSchedule: Ember.computed('_data.pageSchedules.@each.isActiveNext', function () {\n      const pageSchedules = this.getData('pageSchedules') || [];\n      return R.find(R.propEq('isActiveNext', true))(pageSchedules);\n    }),\n    onSelectType() {\n      const type = this.get('_data.type');\n      if (type === this.constants.websitePageTypes.page) {\n        this.setData('linkType', '');\n        this.setData('hasTemplate', true);\n        this.setData('showOnFilters', false);\n        this.setData('linkType', '');\n        this.setData('target', '');\n      } else if (type === this.constants.websitePageTypes.link) {\n        this.setData('showBreadcrumb', false);\n        this.setData('linkType', this.get('constants.websitePageLinkTypes.url'));\n        this.setData('target', '_self');\n        this.setData('hasTemplate', false);\n        this.setData('showOnFilters', false);\n      } else if (type === this.constants.websitePageTypes.category) {\n        this.setData('hasTemplate', false);\n        this.setData('showOnFilters', true);\n        this.setData('showOnFooter', false);\n        this.setData('linkType', '');\n        this.setData('target', '');\n      }\n    },\n    serialize(model) {\n      const data = this._super(model);\n\n      // dont allow '__' in url\n      let url = data?.url || '';\n      if (url) {\n        url = R.replace(/__/g, '')(url);\n        url = R.replace(/--/g, '')(url);\n        data.url = url;\n      }\n      return data;\n    },\n    addPageBlock(website, pageBlock, index = '') {\n      let newIndex = '';\n      if (RA.isNotNilOrEmpty(index)) {\n        newIndex = Number(index) + 1;\n      }\n      const pageBlockModel = this.websitesService.addPageBlock({\n        website,\n        pageModel: this,\n        pageBlock,\n        index: newIndex,\n        attrs: {\n          isGenerateNewId: true\n        }\n      });\n      return pageBlockModel;\n    },\n    removePageBlock(pageBlockModel) {\n      const pageBlocks = this.getData('pageBlocks') || [];\n      pageBlocks.removeObject(pageBlockModel);\n      this.setData('pageBlocks', pageBlocks);\n      return pageBlockModel;\n    }\n  }, _applyDecoratedDescriptor(_obj, \"onSelectType\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"onSelectType\"), _obj), _applyDecoratedDescriptor(_obj, \"serialize\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"serialize\"), _obj), _applyDecoratedDescriptor(_obj, \"addPageBlock\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"addPageBlock\"), _obj), _applyDecoratedDescriptor(_obj, \"removePageBlock\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"removePageBlock\"), _obj), _obj));\n  let WebsitesPagesModel = _exports.default = (_dec5 = Ember._tracked, _class = class WebsitesPagesModel extends WebsitesPagesBaseModel {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_data\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/websites/pages/products/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/channels/shop/campaigns/details/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/channels/shop/campaigns/details',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/websites/service\", [\"exports\", \"ember-concurrency-decorators\", \"client/config/environment\", \"ramda\", \"ramda-adjunct\"], function (_exports, _emberConcurrencyDecorators, _environment, R, RA) {\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, _dec0, _dec1, _dec10, _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 WebsitesService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _dec10 = Ember._action, _class = class WebsitesService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"server\", _descriptor4, this);\n      _initializerDefineProperty(this, \"constants\", _descriptor5, this);\n      _initializerDefineProperty(this, 'all', _descriptor6, this);\n    }\n    getPreviewLink({\n      model,\n      website,\n      dataTabContainer,\n      isPreview = false\n    } = {}) {\n      if (dataTabContainer === 'campaigns') {\n        return `${_environment.default.APP.shopUrl}/${model.getData('url')}`;\n      }\n      let url;\n      if (_environment.default.environment === 'development') {\n        url = _environment.default.APP.bigordrHost;\n      } else {\n        url = 'https://';\n        if (website.getData('domainVerified')) {\n          // if domain verified, use domain\n          url += `${website.getData('domain')}`;\n        } else {\n          // if domain not verified, use subdomain\n          url += `${website.getData('subdomain')}.`;\n          url += _environment.default.APP.websiteHost;\n        }\n      }\n      if (model.getData('url')) {\n        url += `/${model.getData('url')}`;\n      }\n      if (isPreview) {\n        url += '?preview=true';\n      }\n      return url;\n    }\n    *searchInputTask(args) {\n      let {\n        query = '',\n        resultsProperty = '',\n        adapterName = 'websites',\n        filtersAdapterName = 'websites/filters',\n        component,\n        resultsToggle = false,\n        global = true,\n        filters\n      } = args;\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.search.setupFilters({\n          adapterName: filtersAdapterName,\n          defaultFiltersData: {\n            query\n          }\n        });\n      }\n      const results = yield this.crud.searchInputTask.perform({\n        adapterName,\n        filters,\n        query,\n        resultsProperty,\n        component,\n        resultsToggle\n      });\n      if (global && resultsProperty) {\n        this[resultsProperty] = results;\n      }\n      return results;\n    }\n\n    /**\n     * fetches the page collections. the collection will sync update when\n     * new pages are added.\n     * @param {Object} website model of the website\n     * @returns\n     */\n    *fetchPagesCollectionTask(website) {\n      const collectionModel = yield this.crud.findTask.perform({\n        adapterName: 'websites/pages/collection',\n        appendPath: website.getData('_key')\n      });\n      return collectionModel;\n    }\n    transformPageBlocks(data, attrs = {}) {\n      // @TODO: move into service\n      const pageBlocks = R.propOr([], 'pageBlocks')(data);\n      return R.pipe(R.sortBy(R.prop('index')), R.map(pageBlockData => {\n        try {\n          return this.newPageBlockModel({\n            pageBlockData,\n            attrs\n          });\n        } catch (error) {\n          console.error('Error creating page block model', error);\n          return null;\n        }\n      }), R.reject(R.isNil))(pageBlocks);\n    }\n    newPageBlockModel({\n      pageBlockData,\n      attrs = {}\n    }) {\n      const type = pageBlockData.type;\n      try {\n        return this.dataManager.setAsRecord({\n          adapterName: `simple-editor/page-blocks/${type}`,\n          data: pageBlockData,\n          attrs\n        });\n      } catch (error) {\n        console.error('Error creating page block model', error);\n        return null;\n      }\n    }\n    addPageBlock({\n      pageModel,\n      pageBlock,\n      index = '',\n      attrs = {}\n    }) {\n      let pageBlockData = pageBlock;\n      if (pageBlock?._data) {\n        pageBlockData = pageBlock?.serialize?.() || pageBlock;\n      }\n      const pageBlockModel = this.newPageBlockModel({\n        pageBlockData,\n        attrs\n      });\n      let pageBlocks = pageModel.getData('pageBlocks') || [];\n      if (RA.isNilOrEmpty(index)) {\n        pageBlockModel.setData('index', pageBlocks.length);\n        pageBlocks.pushObject(pageBlockModel);\n      } else {\n        pageBlockModel.setData('index', index);\n        pageBlocks = R.insert(index, pageBlockModel, pageBlocks);\n        pageBlocks = this._reindexList(pageBlocks);\n      }\n      pageModel.setData('pageBlocks', pageBlocks);\n      return pageBlockModel;\n    }\n    newPageBlockContentModel({\n      pageBlockContentData,\n      attrs = {}\n    }) {\n      const serializedData = pageBlockContentData?.serialize?.() || pageBlockContentData;\n      const type = serializedData?.type;\n      return this.dataManager.setAsRecord({\n        adapterName: `simple-editor/page-blocks/${type}/content`,\n        data: pageBlockContentData,\n        attrs\n      });\n    }\n    copyModel({\n      parentModel,\n      listProp,\n      model,\n      adapterName\n    }) {\n      const attrs = {\n        isGenerateNewId: true\n      };\n      if (parentModel?.website) {\n        attrs.website = parentModel.website;\n      }\n      const data = model.serialize();\n      const newModel = this.dataManager.setAsRecord({\n        adapterName,\n        data,\n        attrs\n      });\n      const index = data.index;\n      let list = parentModel._data[listProp];\n      list = R.insert(index + 1, newModel, list);\n      list = this._reindexList(list);\n      parentModel.setData(listProp, list);\n    }\n    _reindexList(models) {\n      return RA.mapIndexed((model, index) => {\n        model.setData('index', index);\n        return model;\n      })(models);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"server\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"constants\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, 'all', [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getPreviewLink\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"getPreviewLink\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"searchInputTask\", [_emberConcurrencyDecorators.restartableTask], Object.getOwnPropertyDescriptor(_class.prototype, \"searchInputTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchPagesCollectionTask\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchPagesCollectionTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transformPageBlocks\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"transformPageBlocks\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newPageBlockModel\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"newPageBlockModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addPageBlock\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"addPageBlock\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newPageBlockContentModel\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"newPageBlockContentModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyModel\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"copyModel\"), _class.prototype), _class);\n});","define(\"client/pods/websites/store-location-tags-filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/websites/store-location-tags-filter',\n    idParam: false,\n    modelObj: _model.default\n  });\n});","define(\"client/pods/wizards/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/wizards/model\"], function (_exports, _adapter, _adaptersNew, _model) {\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 WizardsAdapter extends _adapter.default.extend(_adaptersNew.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"resourcePath\", 'api/protected/app/members-menu/collection/wizards');\n      _defineProperty(this, \"modelObj\", _model.default);\n      _defineProperty(this, \"idParam\", 'userKey');\n      _defineProperty(this, \"idPrefix\", 'wizards/collection');\n    }\n  }\n  _exports.default = WizardsAdapter;\n});","define(\"client/pods/wizards/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _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 WizardsModel = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.computed('synced', 'crud.lists.application-lists-wizards.[]'), _class = class WizardsModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n    }\n    populate(data = {}) {\n      data.collection = this._transformCollection(data);\n      this._data = data;\n    }\n    _transformCollection(data) {\n      return R.pipe(R.propOr([], 'collection'), R.map(menuData => {\n        menuData.isPinned = true;\n        return this.dataManager.setAsRecord({\n          adapterName: 'members-menu',\n          data: menuData\n        });\n      }))(data);\n    }\n    get allowedUserMenu() {\n      const allowed = R.pathOr([], ['crud', 'lists', 'application-lists-wizards'])(this);\n      const collection = R.pathOr([], ['_data', 'collection'])(this);\n      const allPinned = R.pipe(R.map(menuItem => {\n        if (menuItem?._data?.isFinished === false) {\n          menuItem._data.isPinned = true;\n        }\n        return menuItem;\n      }), R.filter(menuItem => menuItem?._data?.isPinned))(collection);\n      const userWizardsMenu = this.applicationService.processMenu({\n        allowed,\n        allPinned\n      }) || [];\n      const wizardsData = {\n        label: 'wizards',\n        pinLabel: 'wizards',\n        translate: true,\n        isExpanded: true,\n        icon: 'fas fa-book',\n        sub: userWizardsMenu\n      };\n      const wizardsMenu = this.crud.setupNewRecord({\n        adapterName: 'members-menu',\n        data: wizardsData\n      });\n      return RA.list(wizardsMenu);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"allowedUserMenu\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"allowedUserMenu\"), _class.prototype), _class);\n});","define(\"client/pods/workflows/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/model\", \"ramda-adjunct\"], function (_exports, _adapter, _adaptersNew, _model, _ramdaAdjunct) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/workflows',\n    modelObj: _model.default,\n    idParam: '_id',\n    serialize(model) {\n      const data = this._super(model);\n      if (_ramdaAdjunct.default.isNotNilOrEmpty(data.tags)) {\n        data.tags = [data.tags];\n      }\n      return data;\n    }\n  });\n});","define(\"client/pods/workflows/batch/adapter\", [\"exports\", \"ramda\", \"@ember-data/adapter\", \"client/mixins/adapters-new\"], function (_exports, R, _adapter, _adaptersNew) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/workflows/batch',\n    idParam: false,\n    serialize(workflows) {\n      return R.map(workflow => {\n        return this._serialize(workflow._data);\n      })(workflows);\n    },\n    updateIndexes({\n      data,\n      appendPath,\n      serverType\n    } = {}) {\n      const path = this.getFullPath({\n        pathName: 'updatePath',\n        appendPath,\n        serverType\n      });\n      data = R.map(R.pick(['_key', 'index']))(data);\n      data = this._addAdapterInfo(data, appendPath);\n      const payload = {\n        batch: data\n      };\n      try {\n        return this.ajax.PATCH(path, payload);\n      } catch (e) {\n        console.error(e);\n      }\n    }\n  });\n});","define(\"client/pods/workflows/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/workflows/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 20,\n        query: '',\n        match: ['all'],\n        documentStatus: ['all'],\n        dispatchStatus: ['all'],\n        toName: '',\n        toAddress: '',\n        subject: '',\n        docNo: '',\n        sourceKey: '',\n        sort: {\n          by: 'index',\n          direction: 'ASC'\n        }\n      };\n    }\n  });\n});","define(\"client/pods/workflows/items/activities/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/items/activities/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/workflows/items/activities',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/workflows/items/activities/collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/items/activities/collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/workflows/items/activities/collection',\n    modelObj: _model.default,\n    idParam: 'workflowItemKey',\n    idPrefix: 'activitiesCollection'\n  });\n});","define(\"client/pods/workflows/items/activities/collection/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/items/activities/collection/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/workflows/items/activities/collection/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 50,\n        query: '',\n        match: ['all'],\n        documentStatus: ['all'],\n        dispatchStatus: ['all'],\n        toName: '',\n        toAddress: '',\n        subject: '',\n        docNo: '',\n        sourceKey: '',\n        sort: {\n          by: 'timestampZ',\n          direction: 'ASC'\n        }\n      };\n    }\n  });\n});","define(\"client/pods/workflows/items/activities/collection/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\", \"client/constants/index\"], function (_exports, _model, R, RA, _index) {\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    populate(data = {}) {\n      data.collection = this._transformCollection(data);\n      this._super(...arguments);\n    },\n    allActivitiesCompletes: Ember.computed('synced', '_data.{collection.@each.synced}', function () {\n      const itemsActivities = R.pathOr([], ['_data', 'collection'])(this);\n      const allActivitiesCompleted = R.pipe(R.map(R.pathOr(false, ['_data', 'isComplete'])), R.all(R.equals(true)))(itemsActivities);\n      return allActivitiesCompleted;\n    }),\n    hasAuthorizationType: Ember.computed('synced', '_data.{collection.@each.synced}', function () {\n      const itemsActivities = R.pathOr([], ['_data', 'collection'])(this);\n      const allActivitiesCompleted = R.pipe(R.map(R.pathOr('', ['_data', 'type'])), R.any(R.equals(_index.default.workflowsItemsActivitiesTypes.authorization)))(itemsActivities);\n      return allActivitiesCompleted;\n    }),\n    _transformCollection(data) {\n      return R.pipe(R.pathOr([], ['collection']), R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'workflows/items/activities',\n          data\n        });\n      }))(data);\n    },\n    byStatus: Ember.computed('synced', '_data.{collection.@each.synced}', function () {\n      const collection = this._data?.collection || [];\n      const statuses = ['isPinned', 'isIncomplete', 'isComplete'];\n      const groupingFn = activity => {\n        if (activity._data?.isPinned) {\n          return 'isPinned';\n        }\n        if (activity._data?.type === 'notes') {\n          return 'isComplete';\n        }\n        if (activity._data?.isComplete) {\n          return 'isComplete';\n        }\n        return 'isIncomplete';\n      };\n      const byStatus = R.groupBy(groupingFn)(collection);\n      return R.pipe(R.map(status => {\n        const activities = R.prop(status)(byStatus);\n        if (activities) {\n          return {\n            status,\n            activities\n          };\n        }\n        return [];\n      }), R.reject(RA.isNilOrEmpty))(statuses);\n    })\n  });\n});","define(\"client/pods/workflows/items/activities/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"client/constants\"], function (_exports, _model, R, _constants) {\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    intl: Ember.inject.service(),\n    populate(data = {}) {\n      data.users = this._transformUsers(data);\n      data.related = this._transformRelated(data);\n      data.salesInvoices = this._transformSalesInvoices(data);\n      this._super(...arguments);\n    },\n    /**\n     * Allow mark as complete on the item card\n     */\n    allowOuterMarkAsCompleted: Ember.computed('synced', '_data.type', function () {\n      const type = R.path(['_data', 'type'])(this);\n      const isTypeAllowOuterMark = R.anyPass([R.equals(_constants.default.workflowsItemsActivitiesTypes.authorization), R.equals(_constants.default.workflowsItemsActivitiesTypes.review), R.equals(_constants.default.workflowsItemsActivitiesTypes.attentionRequired), R.equals(_constants.default.workflowsItemsActivitiesTypes.refund), R.equals(_constants.default.workflowsItemsActivitiesTypes.todo)])(type);\n      if (isTypeAllowOuterMark) {\n        return true;\n      }\n      return false;\n    }),\n    creatorUids: Ember.computed('synced', '_data.creator.userKey', function () {\n      return R.pathOr('', ['_data', 'creator', 'userKey'])(this);\n    }),\n    userUids: Ember.computed('synced', '_data.{users.@each.synced}', function () {\n      return R.pipe(R.pathOr([], ['_data', 'users']), R.map(R.pathOr('', ['_data', '_key'])))(this);\n    }),\n    isDisabled: Ember.computed('_data.{related.@each.synced,related.@each.docType}', function () {\n      // Currently only check for comments. If the activity was created from a comment\n      // then, will be read only.\n      const hasComments = R.pipe(R.pathOr([], ['_data', 'related']), R.map(R.pathOr('', ['_data', 'resource'])), R.includes('comment'))(this);\n      const isGenerated = R.pathOr(false, ['_data', 'isGenerated'])(this);\n      if (hasComments || isGenerated) {\n        return true;\n      }\n      return false;\n    }),\n    title: Ember.computed('synced', '_data.title', function () {\n      const isGenerated = R.pathOr(false, ['_data', 'isGenerated'])(this);\n      const translate = R.pathOr(false, ['_data', 'translate'])(this);\n      const truncateBy = 50;\n      const append = '...';\n      const title = R.pipe(R.pathOr('', ['_data', 'title']), title => {\n        const p = document.createElement('div');\n        p.innerHTML = title;\n        // Translate when is auto generated and has the trasnlate flag\n        if (isGenerated && translate) {\n          return this.intl.t(p.innerText);\n        }\n        return p.innerText;\n      }, R.when(R.propSatisfies(R.gt(R.__, truncateBy), 'length'), R.pipe(R.take(truncateBy), R.append(append), R.join(''))))(this);\n      return title;\n    }),\n    _transformSalesInvoices(data) {\n      const salesInvoices = R.prop('salesInvoices')(data);\n      if (!salesInvoices) {\n        return null;\n      }\n      return this.dataManager.setAsRecord({\n        adapterName: 'documents/sales/invoices',\n        data: salesInvoices\n      });\n    }\n  });\n});","define(\"client/pods/workflows/items/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/items/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/workflows/items',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/workflows/items/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/items/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/workflows/items/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 250,\n        query: '',\n        match: ['all'],\n        documentStatus: ['all'],\n        dispatchStatus: ['all'],\n        toName: '',\n        toAddress: '',\n        subject: '',\n        docNo: '',\n        sourceKey: '',\n        sort: {\n          by: 'timestampZ',\n          direction: 'ASC'\n        }\n      };\n    }\n  });\n});","define(\"client/pods/workflows/items/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"client/constants\"], function (_exports, _model, R, _constants) {\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    defaults() {\n      return {\n        status: 'open'\n      };\n    },\n    populate(data = {}) {\n      data.users = this._transformUsers(data);\n      data.related = this._transformRelated(data);\n      data.workflowsItemsActivities = this._transformItemsActivities(data);\n      this._super(...arguments);\n    },\n    _transformItemsActivities(data) {\n      return R.pipe(R.pathOr([], ['workflowsItemsActivities']), R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'workflows/items/activities',\n          data\n        });\n      }))(data);\n    },\n    isCompleted: Ember.computed('synced', '_data.{isSuccessful,isClosed}', function () {\n      const isSuccessful = R.pathOr(false, ['_data', 'isSuccessful'])(this);\n      const isClosed = R.pathOr(false, ['_data', 'isClosed'])(this);\n      return isSuccessful && isClosed;\n    }),\n    allowBulkMarkAsCompleted: Ember.computed('synced', '_data.workflowsItemsActivities.@each.synced', function () {\n      const workflowsItemsActivities = R.path(['_data', 'workflowsItemsActivities'])(this);\n      if (!workflowsItemsActivities) {\n        return false;\n      }\n      const hasAuthorizationType = R.pipe(R.map(R.pathOr([], ['_data', 'type'])), R.any(R.equals(_constants.default.workflowsItemsActivitiesTypes.authorization)))(workflowsItemsActivities);\n      if (hasAuthorizationType) {\n        return true;\n      }\n      return true;\n    })\n  });\n});","define(\"client/pods/workflows/lists/create-dynamic/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'create',\n        label: 'create'\n      }, {\n        value: 'append',\n        label: 'append'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/workflows/lists/filters/search/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: 'toName',\n        label: 'name'\n      }, {\n        value: 'toAddress',\n        label: 'email'\n      }, {\n        value: 'subject',\n        label: 'subject'\n      }, {\n        value: 'fromName',\n        label: 'from name'\n      }, {\n        value: 'fromAddress',\n        label: 'from email address'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/workflows/lists/filters/sort/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/utils/nventor\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'timestampZ',\n        label: 'date'\n      }, {\n        value: 'toAddress',\n        label: 'email'\n      }, {\n        value: 'toName',\n        label: 'name'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/workflows/lists/filters/status/adapter\", [\"exports\", \"@ember-data/adapter\", \"utils/nventor\", \"mixins/adapters-new\", \"client/options/model\"], function (_exports, _adapter, _nventor, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    idParam: false,\n    modelObj: _model.default,\n    findAll() {\n      const data = [{\n        value: 'all',\n        label: 'all'\n      }, {\n        value: this.get('constants.campaignStatus.online'),\n        label: 'online'\n      }, {\n        value: this.get('constants.campaignStatus.offline'),\n        label: 'offline'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/workflows/lists/items/activities/templates/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/lists/items/activities/templates/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/workflows/items/activities/templates',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/workflows/lists/items/activities/templates/model\", [\"exports\", \"client/pods/base/model\", \"ramda\"], function (_exports, _model, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _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 WorkflowsListsItemsActivitiesTemplatesModel = _exports.default = (_dec = Ember.inject.service, _class = class WorkflowsListsItemsActivitiesTemplatesModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dataManager\", _descriptor, this);\n    }\n    populate(data, attrs) {\n      data.users = this._transformUsers(data.users);\n      super.populate(data, attrs);\n    }\n    _transformUsers(users = []) {\n      return R.map(data => this.dataManager.setPartialRecord({\n        adapterName: 'users',\n        data\n      }))(users);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"dataManager\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"client/pods/workflows/lists/items/activities/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"client/constants/index\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: _index.default.workflowsItemsActivitiesTypes.notes,\n        label: 'workflows_items_activities_notes'\n      }, {\n        value: _index.default.workflowsItemsActivitiesTypes.email,\n        label: 'workflows_items_activities_email'\n      }, {\n        value: _index.default.workflowsItemsActivitiesTypes.call,\n        label: 'workflows_items_activities_call'\n      }, {\n        value: _index.default.workflowsItemsActivitiesTypes.event,\n        label: 'workflows_items_activities_event'\n      }, {\n        value: _index.default.workflowsItemsActivitiesTypes.meeting,\n        label: 'workflows_items_activities_meeting'\n      }, {\n        value: _index.default.workflowsItemsActivitiesTypes.review,\n        label: 'workflows_items_activities_review'\n      }, {\n        value: _index.default.workflowsItemsActivitiesTypes.authorization,\n        label: 'workflows_items_activities_authorization'\n      }, {\n        value: _index.default.workflowsItemsActivitiesTypes.todo,\n        label: 'workflows_items_activities_todo'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/workflows/lists/items/statuses/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\", \"client/constants/index\"], function (_exports, _adapter, _adaptersNew, _model, _nventor, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: _index.default.workflowsItemsStatuses.open,\n        label: 'workflows_items_status_open'\n      }, {\n        value: _index.default.workflowsItemsStatuses.successful,\n        label: 'workflows_items_status_successful'\n      }, {\n        value: _index.default.workflowsItemsStatuses.unsuccessful,\n        label: 'workflows_items_status_unsuccessful'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/workflows/lists/menu/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/app/lists/menu',\n    modelObj: _model.default,\n    idParam: false,\n    findAll({\n      data = {},\n      appendPath,\n      serverType\n    } = {}) {\n      const customData = {\n        list: [{\n          //   resource: 'api/protected/workflows/menu/actions/dash',\n          //   component: 'workflows/panels-dash',\n          //   icon: 'fas fa-table',\n          //   label: 'overview',\n          //   action: 'dash',\n          //   tabType: 'replaceSubTab'\n          // }, {\n          resource: 'api/protected/workflows/items/menu/actions/new',\n          component: 'workflows/items/panels-new',\n          icon: 'fas fa-plus',\n          label: 'new',\n          action: 'newWorkflowItem',\n          tabType: 'replaceSubTab'\n        }]\n      };\n      const path = this.getFullPath({\n        pathName: 'findAllPath',\n        appendPath,\n        serverType\n      });\n      return this.ajax.POST(path, customData).then(function (res) {\n        return res.data || [];\n      });\n    }\n  });\n});","define(\"client/pods/workflows/lists/menu/notifications/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    // resourcePath: 'api/protected/emails/lists/menu/notifications',\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        label: 'payment reminders',\n        action: 'paymentReminders'\n      }, {\n        label: 'dispatched',\n        action: 'dispatched'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/workflows/lists/tags/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/workflows/tags',\n    modelObj: _model.default,\n    idParam: '_id'\n  });\n});","define(\"client/pods/workflows/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _model, R, RA, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _obj;\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  var _default = _exports.default = _model.default.extend((_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _obj = {\n    intl: Ember.inject.service(),\n    defaults() {\n      return {\n        related: [],\n        stages: []\n      };\n    },\n    // name: computed('_data.name', function () {\n    //   const isGenerated = R.path(['_data','isGenerated'])(this)\n    //   const title = R.path(['_data','name'])(this)\n    //   if (title && isGenerated) {\n    //     return this.intl.t(title)\n    //   }\n    //   return title\n    // }),\n\n    populate(data = {}) {\n      data.stages = this._transformStages(data);\n      data.related = this._transformRelated(data);\n      data.users = this._transformUsers(data);\n      data.tags = R.pipe(R.propOr([], 'tags'), _nventor.default.safeHeadOr(''))(data);\n      this._super(...arguments);\n    },\n    _transformStages(data) {\n      return R.pipe(R.propOr([], 'stages'), R.reject(RA.isNilOrEmpty), R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'workflows/stages',\n          data\n        });\n      }))(data);\n    },\n    addStage(data = {}) {\n      data = data || {};\n      const stages = this.getOrSetData('stages', []);\n\n      // get last index\n      let index = 0;\n      const last = stages.get('lastObject');\n      if (RA.isNotNilOrEmpty(last)) {\n        index = last?._data?.index + 1;\n      }\n      data.index = index;\n      const stage = this.dataManager.setAsRecord({\n        adapterName: 'workflows/stages',\n        data\n      });\n      stages.pushObject(stage);\n      this.setData('stages', stages);\n      return stage;\n    },\n    removeStage(stage) {\n      const stages = this.getData('stages') || [];\n      stages.removeObject(stage);\n    },\n    removeUnassignedStage() {\n      const stages = this.getData('stages') || [];\n      const unassigned = R.find(R.pathEq(['_data', 'stageId'], 'unassigned'))(stages);\n      stages.removeObject(unassigned);\n    },\n    getNewItemData() {\n      let stages = this.getData('stages') || [];\n      stages = R.reject(R.pathEq(['_data', 'stageId'], 'unassigned'))(stages);\n      const firstStage = stages.get('firstObject');\n      if (RA.isNotNilOrEmpty(firstStage)) {\n        return {\n          workflowKey: this._data?._key,\n          users: this._data?.users,\n          stageId: firstStage._data?.stageId\n        };\n      }\n      return {};\n    }\n  }, _applyDecoratedDescriptor(_obj, \"addStage\", [_dec], Object.getOwnPropertyDescriptor(_obj, \"addStage\"), _obj), _applyDecoratedDescriptor(_obj, \"removeStage\", [_dec2], Object.getOwnPropertyDescriptor(_obj, \"removeStage\"), _obj), _applyDecoratedDescriptor(_obj, \"removeUnassignedStage\", [_dec3], Object.getOwnPropertyDescriptor(_obj, \"removeUnassignedStage\"), _obj), _applyDecoratedDescriptor(_obj, \"getNewItemData\", [_dec4], Object.getOwnPropertyDescriptor(_obj, \"getNewItemData\"), _obj), _obj));\n});","define(\"client/pods/workflows/related/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/related/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/workflows/related/model\", [\"exports\", \"client/pods/base/model\", \"client/utils/nventor\", \"ramda\"], function (_exports, _model, _nventor, _ramda) {\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    defaults() {\n      return {\n        stageId: _nventor.default.random.alphaNum(8)\n      };\n    },\n    isDoc: Ember.computed('_data.resource', function () {\n      const resource = this.getData('resource');\n      if (_ramda.default.includes('sales-')(resource)) {\n        return true;\n      }\n      if (_ramda.default.includes('purchases-')(resource)) {\n        return true;\n      }\n      return false;\n    }),\n    _getDocTypeData(resource) {\n      if (resource) {\n        // eg resource = purchases-consignments\n        const docTypeData = _ramda.default.pipe(_ramda.default.split('-'), _ramda.default.zipObj(['docType', 'docName']))(resource);\n        return docTypeData;\n      }\n      return {};\n    },\n    docType: Ember.computed('_data.resource', function () {\n      const resource = this.getData('resource');\n      const docTypeData = this._getDocTypeData(resource);\n      return docTypeData.docType || '';\n    }),\n    docName: Ember.computed('_data.resource', function () {\n      const resource = this.getData('resource');\n      const docTypeData = this._getDocTypeData(resource);\n      return docTypeData.docName || '';\n    })\n  });\n});","define(\"client/pods/workflows/related/types/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/options/model\", \"client/utils/nventor\"], function (_exports, _adapter, _adaptersNew, _model, _nventor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false,\n    findAll() {\n      const data = [{\n        value: 'contacts',\n        label: 'contacts'\n      }, {\n        value: 'campaigns',\n        label: 'campaigns'\n      }, {\n        value: 'products',\n        label: 'products'\n      }, {\n        value: 'websites',\n        label: 'websites'\n      }, {\n        value: 'sales-consignments',\n        label: 'sales-sales-consignments'\n      }, {\n        value: 'sales-consignments-returns',\n        label: 'sales-sales-consignments-returns'\n      }, {\n        value: 'sales-invoices',\n        label: 'sales-sales-invoices'\n      }, {\n        value: 'sales-orders',\n        label: 'sales-sales-orders'\n      }, {\n        value: 'sales-quotes',\n        label: 'sales-sales-quotes'\n      }, {\n        value: 'sales-returns',\n        label: 'sales-sales-returns'\n      }, {\n        value: 'purchases-consignments',\n        label: 'purchases-purchases-consignments'\n      }, {\n        value: 'purchases-consignments-returns',\n        label: 'purchases-purchases-consignments-returns'\n      }, {\n        value: 'purchases-invoices',\n        label: 'purchases-purchases-invoices'\n      }, {\n        value: 'purchases-orders',\n        label: 'purchases-purchases-orders'\n      }, {\n        value: 'purchases-quotes',\n        label: 'purchases-purchases-quotes'\n      }, {\n        value: 'purchases-returns',\n        label: 'purchases-purchases-returns'\n      }, {\n        value: 'documents-public',\n        label: 'documents-public'\n      }, {\n        value: 'documents',\n        label: 'documents'\n      }, {\n        value: 'comments',\n        label: 'customer service'\n      }];\n      return _nventor.default.resolve(data);\n    }\n  });\n});","define(\"client/pods/workflows/service\", [\"exports\", \"ember-concurrency-decorators\", \"ramda\", \"ramda-adjunct\", \"client/utils/nventor\"], function (_exports, _emberConcurrencyDecorators, R, RA, _nventor) {\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, _dec0, _dec1, _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 WorkflowsService = _exports.default = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('date'), _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec0 = Ember._action, _dec1 = Ember._action, _class = class WorkflowsService extends Ember.Service {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"crud\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateService\", _descriptor2, this);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"workflows\", _descriptor4, this);\n    }\n    *searchWorkflows({\n      filters,\n      query,\n      excludes\n    } = {}) {\n      if (RA.isNilOrEmpty(filters)) {\n        filters = this.search.setupFilters({\n          adapterName: 'workflows/filters',\n          defaultFiltersData: {\n            query,\n            excludes,\n            fetchMax: true //@TODO: remove this. this is a temp solution until list selector has pagination\n          }\n        });\n      }\n      filters.setData('query', query);\n      this.workflows = yield this.crud.searchRecordsTask.perform({\n        adapterName: 'workflows',\n        appendPath: '/type/workflows',\n        filters\n      });\n    }\n    setupWorkflowAsDirty({\n      model,\n      component,\n      resultsProperty\n    }) {\n      const dirty = this.crud.setupDirty({\n        adapterName: 'workflows',\n        model,\n        component,\n        resultsProperty\n      });\n      dirty.removeUnassignedStage();\n      return dirty;\n    }\n    loadWorkflowProps({\n      props,\n      model\n    }, selected) {\n      return R.mapObjIndexed((toProp, fromProp) => {\n        const fromValue = selected.getData(fromProp);\n        model.set(toProp, fromValue);\n      })(props);\n    }\n    unloadWorkflowProps({\n      props,\n      model\n    }, selected) {\n      return R.mapObjIndexed((toProp, fromProp) => {\n        model.set(toProp, '');\n      })(props);\n    }\n    newWorkflow({\n      component,\n      resultsProperty,\n      workflows = [],\n      type = 'workflows'\n    }) {\n      // get last index\n      const lastWorkflow = R.pipe(R.sortWith([R.ascend(R.path(['_data', 'index']))]), _nventor.default.safeLast)(workflows);\n      const lastIndex = R.pathOr(-1, ['_data', 'index'])(lastWorkflow);\n      const index = lastIndex + 1;\n      const newModel = this.crud.setupNewRecord({\n        adapterName: 'workflows',\n        data: {\n          index,\n          type\n        }\n      });\n      if (type === 'workflows') {\n        newModel.addStage();\n      }\n      if (resultsProperty) {\n        component[resultsProperty] = newModel;\n      }\n      return newModel;\n    }\n    newWorkflowItem({\n      component,\n      workflow,\n      resultsProperty\n    }) {\n      if (RA.isNotNilOrEmpty(workflow)) {\n        const newItemData = workflow.getNewItemData();\n        const newModel = this.crud.setupNewRecord({\n          adapterName: 'workflows/items',\n          data: newItemData\n        });\n        if (resultsProperty) {\n          component[resultsProperty] = newModel;\n        }\n        return newModel;\n      }\n    }\n    newWorkflowItemActivity({\n      component,\n      workflow,\n      item,\n      type = 'notes',\n      resultsProperty\n    }) {\n      if (RA.isNotNilOrEmpty(item)) {\n        const newModel = this.crud.setupNewRecord({\n          adapterName: 'workflows/items/activities',\n          data: {\n            workflowItemKey: item._data?._key,\n            workflowKey: item._data?.workflowKey,\n            users: item._data?.users,\n            type\n          }\n        });\n        if (component && resultsProperty) {\n          component[resultsProperty] = newModel;\n        }\n        return newModel;\n      }\n    }\n    resetNewWorkflowItemActivity({\n      component,\n      resultsProperty,\n      typeProperty\n    }) {\n      if (component && resultsProperty) {\n        component[resultsProperty] = '';\n        component[typeProperty] = '';\n      }\n    }\n    *markActivityAsCompleted({\n      component,\n      activity\n    }) {\n      const dirty = this.crud.setupDirty({\n        adapterName: 'workflows/items/activities',\n        model: activity\n      });\n      if (dirty.getData('isComplete')) {\n        const nowZ = this.dateService.getNowZ();\n        dirty.setData('dateZCompleted', nowZ);\n      } else {\n        dirty.setData('dateZCompleted', '');\n      }\n      yield this.crud.updateRecordTask.perform({\n        adapterName: 'workflows/items/activities',\n        model: dirty,\n        component\n      });\n    }\n    *markItemAsClosed({\n      component,\n      dirty,\n      isReOpen,\n      onAfter\n    }) {\n      // dirty.setData('isSuccessful', isSuccessful)\n      // dirty.setData('isClosed', true)\n      // const nowZ = this.dateService.getNowZ()\n      // dirty.setData('dateZClosed', nowZ)\n\n      // if (isSuccessful) {\n      //   dirty.setData('status', 'successful')\n      // } else {\n      //   dirty.setData('status', 'unsuccessful')\n      // }\n\n      if (isReOpen) {\n        dirty.setData('status', 'open');\n        dirty.setData('reason', '');\n        dirty.setData('isSuccessful', false);\n        dirty.setData('isClosed', false);\n      }\n      yield this.crud.updateRecordTask.perform({\n        adapterName: 'workflows/items',\n        model: dirty,\n        component,\n        onAfter\n      });\n    }\n    getNextWorkflow({\n      dirty,\n      workflows,\n      nextWorkflowKey\n    }) {\n      const nextWorkflow = R.find(R.pathEq(['_data', '_key'], nextWorkflowKey))(workflows) || {};\n      const stages = nextWorkflow?._data?.stages || [];\n      const stage = stages.get('firstObject');\n      return {\n        workflow: nextWorkflow,\n        stage\n      };\n    }\n    *createItemsActivitiesTemplates({\n      component,\n      workflow,\n      resultsProperty\n    }) {\n      if (RA.isNotNilOrEmpty(workflow)) {\n        const newItemData = workflow.getNewItemData();\n        const newModel = yield this.crud.setupNewRecord({\n          adapterName: 'workflows/lists/items/activities/templates',\n          data: newItemData\n        });\n        if (resultsProperty) {\n          component[resultsProperty] = newModel;\n        }\n        return newModel;\n      }\n    }\n    *createWorkflowItem({\n      component,\n      model,\n      onAfter\n    }) {\n      return yield this.crud.createRecordTask.perform({\n        component,\n        model,\n        onAfter,\n        adapterName: 'workflows/items'\n      });\n    }\n    *createWorkflowItemActivity({\n      component,\n      model,\n      onAfter\n    }) {\n      return yield this.crud.createRecordTask.perform({\n        component,\n        model,\n        onAfter,\n        adapterName: 'workflows/items/activities'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"crud\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dateService\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"workflows\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"searchWorkflows\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"searchWorkflows\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupWorkflowAsDirty\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setupWorkflowAsDirty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadWorkflowProps\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"loadWorkflowProps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unloadWorkflowProps\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"unloadWorkflowProps\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newWorkflow\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"newWorkflow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newWorkflowItem\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"newWorkflowItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"newWorkflowItemActivity\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"newWorkflowItemActivity\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetNewWorkflowItemActivity\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"resetNewWorkflowItemActivity\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markActivityAsCompleted\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"markActivityAsCompleted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"markItemAsClosed\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"markItemAsClosed\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createItemsActivitiesTemplates\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"createItemsActivitiesTemplates\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createWorkflowItem\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"createWorkflowItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createWorkflowItemActivity\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"createWorkflowItemActivity\"), _class.prototype), _class);\n});","define(\"client/pods/workflows/stages-collection/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/stages-collection/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: 'api/protected/workflows/items/stages',\n    modelObj: _model.default,\n    idParam: 'workflowKey',\n    idPrefix: 'byStages'\n  });\n});","define(\"client/pods/workflows/stages-collection/filters/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/stages-collection/filters/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    resourcePath: '',\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/workflows/stages-collection/filters/model\", [\"exports\", \"client/pods/filters/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    defaults() {\n      return {\n        page: 1,\n        count: 250,\n        query: '',\n        match: ['all'],\n        documentStatus: ['all'],\n        dispatchStatus: ['all'],\n        toName: '',\n        toAddress: '',\n        subject: '',\n        docNo: '',\n        sourceKey: '',\n        sort: {\n          by: 'timestampZ',\n          direction: 'DESC'\n        }\n      };\n    }\n  });\n});","define(\"client/pods/workflows/stages-collection/model\", [\"exports\", \"client/pods/base/model\", \"ramda\", \"ramda-adjunct\"], function (_exports, _model, R, RA) {\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    populate(data = {}) {\n      data = this._transformWorkflow(data);\n      data.collection = this._transformCollection(data);\n      this._super(...arguments);\n    },\n    _transformWorkflow(data) {\n      const workflow = R.path(['workflow'])(data);\n      if (RA.isNotNilOrEmpty(workflow)) {\n        data.workflow = this.dataManager.setAsRecord({\n          adapterName: 'workflows',\n          // @TODO: this should be the workflow model instead\n          data: workflow\n        });\n      }\n      return data;\n    },\n    _transformCollection(data) {\n      return R.pipe(R.pathOr([], ['collection']), R.map(data => {\n        return this.dataManager.setAsRecord({\n          adapterName: 'workflows/items',\n          data\n        });\n      }))(data);\n    },\n    byStages: Ember.computed('synced', '_data.{collection.@each.synced,stages.@each.synced,workflow.synced}', function () {\n      const workflow = this._data?.workflow || [];\n      const stages = R.pathOr([], ['_data', 'stages'])(workflow);\n      const itemsCollection = this._data?.collection || [];\n      const allStageIds = R.pipe(R.map(R.path(['_data', 'stageId'])), R.reject(R.equals('unassigned')))(stages);\n      return R.map(stage => {\n        const stageId = stage._data?.stageId;\n        let items = [];\n        let isHidden = false;\n        if (stageId === 'unassigned') {\n          items = R.reject(item => {\n            const stageId = item.getData('stageId');\n            return R.includes(stageId)(allStageIds);\n          })(itemsCollection);\n          if (items.length === 0) {\n            isHidden = true;\n          }\n        } else {\n          items = R.filter(R.pathEq(['_data', 'stageId'], stageId))(itemsCollection);\n        }\n        items = R.reject(R.anyPass([R.pathEq(['isDeleted'], true), R.pathEq(['_data', 'isDeleted'], true)]))(items);\n        return {\n          count: items.length,\n          stage,\n          items,\n          isHidden\n        };\n      })(stages);\n    })\n  });\n});","define(\"client/pods/workflows/stages/adapter\", [\"exports\", \"@ember-data/adapter\", \"client/mixins/adapters-new\", \"client/pods/workflows/stages/model\"], function (_exports, _adapter, _adaptersNew, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adapter.default.extend(_adaptersNew.default, {\n    modelObj: _model.default,\n    idParam: false\n  });\n});","define(\"client/pods/workflows/stages/model\", [\"exports\", \"client/pods/base/model\", \"client/utils/nventor\"], function (_exports, _model, _nventor) {\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    intl: Ember.inject.service(),\n    defaults() {\n      return {\n        stageId: _nventor.default.random.alphaNum(8)\n      };\n    }\n\n    // name: computed('_data.name', function () {\n    //   const isGenerated = R.path(['_data','isGenerated'])(this)\n    //   const title = R.path(['_data','name'])(this)\n    //   if (title && isGenerated) {\n    //     return this.intl.t(title)\n    //   }\n    //   return title\n    // })\n  });\n});","define(\"client/router\", [\"exports\", \"client/config/environment\"], function (_exports, _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 Router extends Ember.Router {\n    constructor(...args) {\n      super(...args);\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('protected', {\n      path: 'p'\n    }, function () {\n      this.route('companies', {\n        path: '/:user_name/:user_id'\n      });\n      this.route('company', {\n        path: '/c/:user_name/:user_id/:company_name'\n      });\n      this.route('help', {\n        path: '/c/:user_name/:user_id/:company_name/help/:documentation_resource/:documentation_id'\n      });\n    });\n    this.route('guests', function () {\n      this.route('shop', function () {\n        this.route('login', {\n          path: '/login/:guest_resource'\n        });\n        this.route('report', {\n          path: '/report/:guest_resource'\n        });\n      });\n      this.route('portal', {\n        path: '/portal/:shop_url_prefix'\n      }, function () {\n        this.route('login');\n        this.route('campaigns');\n        this.route('report');\n      });\n    });\n    this.route('payments', function () {\n      this.route('card', function () {\n        this.route('lists', function () {\n          this.route('panels');\n        });\n      });\n    });\n    this.route('reset');\n\n    // Catch-all so a malformed URL redirects instead of throwing UnrecognizedURLError\n    this.route('not-found', {\n      path: '/*wildcard'\n    });\n  });\n});","define(\"client/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 () {\n      return _json.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _jsonApi.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _rest.default;\n    }\n  });\n});","define(\"client/services/-in-viewport\", [\"exports\", \"ember-in-viewport/services/-in-viewport\"], function (_exports, _inViewport) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inViewport.default;\n    }\n  });\n});","define(\"client/services/in-viewport\", [\"exports\", \"ember-in-viewport/services/in-viewport\"], function (_exports, _inViewport) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inViewport.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _intl.default;\n    }\n  });\n});","define(\"client/services/page-blocks\", [\"exports\", \"ramda\"], function (_exports, R) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class PageBlocksService extends Ember.Service {\n    // @action\n    // addBlock(\n    //   {\n    //     model,\n    //     pageBlocksPath,\n    //     pageBlock\n    //   }\n    // ) {\n    //   const pageBlocks = model[pageBlocksPath] || []\n    //   pageBlocks.pushObject(pageBlock)\n\n    //   if (R.startsWith('_data.')(pageBlocksPath)) {\n    //     return model.setData('pageBlocks', pageBlocks)\n    //   }\n\n    //   return model.set(pageBlocksPath, pageBlocks)\n    // }\n\n    // @action\n    // removeBlock(\n    //   {\n    //     model,\n    //     pageBlocksPath,\n    //     pageBlock\n    //   }\n    // ) {\n    //   const pageBlocks = model[pageBlocksPath] || []\n    //   blocks.removeObject(pageBlock)\n\n    //   if (R.startsWith('_data.')(pageBlocksPath)) {\n    //     return model.setData('pageBlocks', pageBlocks)\n    //   }\n\n    //   return model.set(pageBlocksPath, pageBlocks)\n    // }\n  }\n  _exports.default = PageBlocksService;\n});","define(\"client/services/resize-observer\", [\"exports\", \"ember-resize-observer-service/services/resize-observer\"], function (_exports, _resizeObserver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _resizeObserver.default;\n    }\n  });\n});","define(\"client/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 () {\n      return _store.default;\n    }\n  });\n});","define(\"client/templates/application\", [\"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 = Ember.HTMLBars.template({\n    \"id\": \"xUAYupb2\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\",\n    \"meta\": {\n      \"moduleName\": \"client/templates/application.hbs\"\n    }\n  });\n});","define(\"client/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 () {\n      return _private.BooleanTransform;\n    }\n  });\n});","define(\"client/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 () {\n      return _private.DateTransform;\n    }\n  });\n});","define(\"client/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 () {\n      return _private.NumberTransform;\n    }\n  });\n});","define(\"client/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 () {\n      return _private.StringTransform;\n    }\n  });\n});","define(\"client/translations/en-us\", [\"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    \"\": \"\",\n    \"#\": \"#\",\n    \"%\": \"%\",\n    \"...\": \"...\",\n    \"1 day\": \"1 day\",\n    \"1 hour\": \"1 hour\",\n    \"1 point equal to\": \"1 Point = $\",\n    \"1 week\": \"1 week\",\n    \"10s\": \"10s\",\n    \"120+ days\": \"120+ Days\",\n    \"120cm\": \"120cm\",\n    \"12Months\": \"1 year\",\n    \"15 minutes\": \"15 minutes\",\n    \"150cm\": \"150cm\",\n    \"15s\": \"15s\",\n    \"2 days\": \"2 days\",\n    \"2 hours\": \"2 hours\",\n    \"24Months\": \"2 years\",\n    \"3 days\": \"3 days\",\n    \"3 hours\": \"3 hours\",\n    \"30 days\": \"30 Days\",\n    \"30 minutes\": \"30 minutes\",\n    \"31 characters max\": \"31 characters maximum\",\n    \"3rd party\": \"3rd Party\",\n    \"3rd-party\": \"Third Party\",\n    \"3s\": \"3s\",\n    \"4 days\": \"4 days\",\n    \"4 digit code\": \"4 digit code\",\n    \"4 hours\": \"4 hours\",\n    \"5 hours\": \"5 hours\",\n    \"5s\": \"5s\",\n    \"6 hours\": \"6 hours\",\n    \"60 days\": \"60 Days\",\n    \"60cm\": \"60cm\",\n    \"6Months\": \"6 Months\",\n    \"90 days\": \"90 Days\",\n    \"90cm\": \"90cm\",\n    \"ATM_BOT\": \"Bank of Taiwan ATM\",\n    \"ATM_CATHAY\": \"Cathay United Bank ATM (Not available)\",\n    \"ATM_CHINATRUST\": \"Chinatrust Bank ATM\",\n    \"ATM_ESUN\": \"E.SUN Bank ATM (Not available)\",\n    \"ATM_FIRST\": \"First Bank ATM\",\n    \"ATM_FUBON\": \"Taipei Fubon Bank ATM (Not available)\",\n    \"ATM_LAND\": \"Land Bank of Taiwan ATM\",\n    \"ATM_TACHONG\": \"Ta Chong Bank ATM (Has been merged by Yuanta Bank Since 2018)\",\n    \"ATM_TAISHIN\": \"Taishin Bank ATM\",\n    \"Api Key\": \"Api Key\",\n    \"B2C\": \"B2C\",\n    \"C2C\": \"C2C\",\n    \"CODE128\": \"CODE128\",\n    \"CODE39\": \"CODE39\",\n    \"EAN13\": \"EAN13\",\n    \"EAN2\": \"EAN2\",\n    \"EAN5\": \"EAN5\",\n    \"EAN8\": \"EAN8\",\n    \"HCT\": \"HCT\",\n    \"Mailgun\": \"Mailgun\",\n    \"Taiwan\": \"Taiwan\",\n    \"TapPay is out of service.\": \"Tap Pay is out of service. Please try again later.\",\n    \"Wrong format of param CustomerPhone or length exceeded.\": \"Wrong format of param Customer Phone or length exceeded\",\n    \"_blank_\": \" \",\n    \"a bulk split is already running\": \"A bulk split is already running. Do not submit again. You will be notified when it finishes.\",\n    \"a payment page for this invoice is still open, try again later\": \"A payment page for this invoice is still open. Please try again later.\",\n    \"abandoned\": \"Abandoned\",\n    \"access token\": \"Access token\",\n    \"account\": \"Account\",\n    \"account code\": \"Account Code\",\n    \"account description\": \"Account Description\",\n    \"account last 5 digits\": \"Acc Last 5 Digits\",\n    \"account number\": \"Account Number\",\n    \"account type\": \"Account Type\",\n    \"accountant (view only)\": \"Accountant (View Only)\",\n    \"accounts\": \"Accounts\",\n    \"active\": \"Active\",\n    \"activity\": \"Activity\",\n    \"add\": \"Add\",\n    \"add activity\": \"Add Activity\",\n    \"add all\": \"Add All\",\n    \"add attachment\": \"Add Attachment\",\n    \"add automation\": \"Add Automation\",\n    \"add cell\": \"Add Cell\",\n    \"add convenience store\": \"Add Convenience Store\",\n    \"add credit card\": \"Add Credit Card\",\n    \"add criteria\": \"Add Criteria\",\n    \"add custom worksheet\": \"Add Custom Worksheet\",\n    \"add department\": \"Add Department\",\n    \"add detail\": \"Add Detail\",\n    \"add display tags\": \"Add Image Tags\",\n    \"add form step\": \"Add Form Step\",\n    \"add header for multiple pages\": \"Add Header For Multiple Pages\",\n    \"add help\": \"Add Help\",\n    \"add image\": \"Add Image\",\n    \"add link\": \"Add link\",\n    \"add new adjustment\": \"Add New Adjustment\",\n    \"add new choices\": \"Add New Choices\",\n    \"add new customization\": \"Add New Customization\",\n    \"add new record\": \"Add New Record\",\n    \"add new rule\": \"Add New Rule\",\n    \"add new rule set\": \"Add New Rule Set\",\n    \"add new schedule\": \"Add New Schedule\",\n    \"add new variant type\": \"Add New Variant Type\",\n    \"add or edit\": \"Add or Edit\",\n    \"add person\": \"Add Person\",\n    \"add pickup location\": \"Add Pickup Location\",\n    \"add prize\": \"Add Prize\",\n    \"add product\": \"Add Product\",\n    \"add product to shop\": \"Add product\",\n    \"add quick link label as block title\": \"Add Quick Link Label As Block Title\",\n    \"add return convenience store\": \"Add\",\n    \"add row\": \"Add Row\",\n    \"add schedule\": \"Add Schedule\",\n    \"add spec\": \"Add Spec\",\n    \"add status\": \"Add status\",\n    \"add step\": \"Add Step\",\n    \"add surcharge\": \"Add Surcharge\",\n    \"add tab\": \"Add Tab\",\n    \"add to cart\": \"Add to Cart\",\n    \"add to home page\": \"Add to home page\",\n    \"add to quick links\": \"Add To Quick Links\",\n    \"add to shop\": \"Add To Shop\",\n    \"addAll\": \"Add All\",\n    \"addToCartAndChooseOptions\": \"Show add to cart and choose options\",\n    \"addToCartForAll\": \"Show add to cart for all\",\n    \"add_block\": \"Add Block\",\n    \"added\": \"Added\",\n    \"added member level points will be added to current member level points\": \"Added member level points will be added to current member level points\",\n    \"additional\": \"Additional\",\n    \"additional description\": \"Additional Description\",\n    \"additional free shipping rule\": \"Additional free shipping rule\",\n    \"additional information\": \"Additional Information\",\n    \"additional message\": \"Additional Message\",\n    \"additional promo code settings\": \"Additional Promo Code Settings\",\n    \"address\": \"Address\",\n    \"addresses\": \"Addresses\",\n    \"addtional checkout information\": \"Additional description on the checkout page\",\n    \"addtional item checkout information\": \"Add additional description of the product, e.g. allergen labeling\",\n    \"adjust all commission base costs\": \"Adjust all commission base costs\",\n    \"adjust currently available preOrder qty\": \"Adjust Currently Available Pre Order Qty\",\n    \"adjust currently available qty\": \"Adjust Currently Available Qty\",\n    \"adjust indexes\": \"Adjust Indexes\",\n    \"adjust inventory\": \"Adjust Inventory\",\n    \"adjust limit preorder qty\": \"Adjust Limit Pre Order Qty\",\n    \"adjust limit qty\": \"Adjust Limit Qty\",\n    \"adjust limited preorder qty\": \"Adjust Limited Pre Order Qty\",\n    \"adjust limited qty\": \"Adjust Limited Qty\",\n    \"adjust limited qty by\": \"Adjust Limited Qty By\",\n    \"adjust member level\": \"Adjust Member Level\",\n    \"adjust prices\": \"Adjust Prices\",\n    \"adjust total qty\": \"Adjust Total Qty\",\n    \"adjusted commission base cost\": \"Adjusted Commission Base Cost\",\n    \"adjusted commission total amount\": \"Adjusted Commission Total Amount\",\n    \"adjusted shipping fee\": \"Adjusted Shipping Fee\",\n    \"adjustment\": \"Adjustment\",\n    \"adjustment amount\": \"Totals Adjustment\",\n    \"adjustment this month\": \"Adjustment This Month\",\n    \"adjustments\": \"Adjustments\",\n    \"admin\": \"Admin\",\n    \"admin->credit card\": \"Admin > Credit Card\",\n    \"admin->maintenance\": \"Admin > maintenance\",\n    \"admin->members\": \"Admin > Members\",\n    \"admin->tw_eInvoicing\": \"Admin > E-Invoices\",\n    \"admitted qty\": \"Admitted Qty\",\n    \"advanced\": \"Advanced\",\n    \"advanced search\": \"Advanced Search\",\n    \"advanced template\": \"Advanced Template\",\n    \"advanced template options\": \"Advanced Template Options\",\n    \"advanced-settings\": \"Advanced Settings\",\n    \"advancedTemplate\": \"Advanced Webpage\",\n    \"advanced_template_type\": \"Advanced Template Type\",\n    \"advertisement\": \"Advertisement\",\n    \"advertiser id\": \"Advertiser_ID\",\n    \"after checkout\": \"After Checkout\",\n    \"after noon\": \"After Noon\",\n    \"afterNoon\": \"After Noon\",\n    \"age categories\": \"Age Categories\",\n    \"ages\": \"Ages\",\n    \"alcoholic beverage / oil / vinegar / sauce\": \"Alcoholic Beverage / Oil / Vinegar / Sauce\",\n    \"align_bottom\": \"Bottom\",\n    \"align_center\": \"Center\",\n    \"align_equalHeights\": \"Equal Heights\",\n    \"align_left\": \"Left\",\n    \"align_right\": \"Right\",\n    \"align_top\": \"Top\",\n    \"alignment\": \"Alignment\",\n    \"all\": \"All\",\n    \"all activity\": \"all activity\",\n    \"all banks\": \"All Banks\",\n    \"all is shown by default for past dispatch dates\": \"All is shown by default for past dispatch dates\",\n    \"all is shown by default when printing of waybills is not allowed\": \"All is shown by default when Allow printing of waybills is off\",\n    \"all padding\": \"Top, Bottom, Left And Right Padding\",\n    \"all qty\": \"All Qty\",\n    \"all to view all\": \"All to view all\",\n    \"all undispatched\": \"All Undispatched\",\n    \"allTags\": \"Show Group of Tags Together (Any single or combination of tag matches)\",\n    \"all_payment_methods_in_shop\": \"All Payment Methods in Shop\",\n    \"allocate e-invoice numbers method\": \"Allocate E-Invoice Numbers Method\",\n    \"allocated discount amount\": \"Allocated Discount Amount\",\n    \"allocated discount rate\": \"Allocated Discount Rate\",\n    \"allocated reward earn\": \"Allocated Reward Earn\",\n    \"allocated reward level earn\": \"Allocated Reward Level Earn\",\n    \"allocated reward spend\": \"Allocated Reward Spend\",\n    \"allow access date end\": \"Allow Access Date End\",\n    \"allow access date start\": \"Allow Access Date Start\",\n    \"allow access to supplier portal\": \"Allow Access To Supplier Portal\",\n    \"allow all campaigns\": \"Allow All Campaigns\",\n    \"allow all campaigns per website\": \"Allow all campaigns per website\",\n    \"allow barcode in delivery notes\": \"Allow barcode in delivery notes\",\n    \"allow collect on behalf\": \"Allow collect on behalf\",\n    \"allow credit card installments\": \"allow credit card installments\",\n    \"allow cross store orders history\": \"Allow Cross Store Orders History\",\n    \"allow custom checkout fields\": \"Allow Custom Checkout Fields\",\n    \"allow custom checkout fields - use defaults from settings\": \"Allow Custom Checkout Fields: Use Defaults From Settings\",\n    \"allow custom pick up location\": \"Allow Custom Pick Up Location\",\n    \"allow customers to see enter promo code on checkout\": \"Allow customers to see \\\"enter promo\\\" code on checkout\",\n    \"allow discount\": \"Allow Discount\",\n    \"allow discount for on sale items\": \"Allow Discount For On Sale Items\",\n    \"allow e-invoices to be issued\": \"Allow e-invoices to be issued\",\n    \"allow earn reward\": \"Allow Earn Reward\",\n    \"allow linked campaigns\": \"Allow Linked Campaigns\",\n    \"allow multiple bulk discounts per item\": \"Allow multiple bulk discounts per item\",\n    \"allow on sale items\": \"Allow On Sale Items\",\n    \"allow order messages\": \"Allow Order Messages\",\n    \"allow pick up\": \"Allow Pick Up\",\n    \"allow pos terminals\": \"Allow POS Terminals\",\n    \"allow preOrder\": \"Allow Pre Order\",\n    \"allow printing of waybills\": \"Allow printing of waybills\",\n    \"allow public template editor\": \"Allow public template editor\",\n    \"allow recalculate inventory\": \"Allow Recalculate Inventory\",\n    \"allow recurring schedules\": \"Allow Recurring Schedules\",\n    \"allow rss feeds on campaigns\": \"Allow RSS feeds on campaigns\",\n    \"allow seo\": \"Allow SEO\",\n    \"allow shipping\": \"Allow Shipping\",\n    \"allow spend reward\": \"Allow Spend Reward\",\n    \"allow sync product properties\": \"Allow Sync Product Properties\",\n    \"allow tax numbers per shop\": \"Allow tax numbers per shop\",\n    \"allow this shop to appear in supplier portal\": \"Allow This Shop To Appear In Supplier Portal\",\n    \"allow to earn reward points\": \"Allow to Earn Reward Points\",\n    \"allow to re-index all products\": \"Allow to Re-Index All Products\",\n    \"allow to respond with multiple lines\": \"Allow to respond with multiple lines\",\n    \"allow to spend reward points\": \"Allow to Spend Reward Points\",\n    \"allow today pickup\": \"Allow Today To Pickup\",\n    \"allow track reward for non member\": \"Allow Track Reward For Non Member\",\n    \"allow transporter arrive time period\": \"Allow Transporter Arrive Time Period (Only applicable for BlackCat Transporter)\",\n    \"allow web pos\": \"Allow Web POS\",\n    \"allow with promo code\": \"Allow with Promo Code\",\n    \"allowApiAccess\": \"Allow api access\",\n    \"allowShipSeparately\": \"Allow Free Items To Ship Separately\",\n    \"allowed emails\": \"Allowed Emails\",\n    \"allowed ip addresses\": \"Allowed ip addresses\",\n    \"allowed product tags\": \"Allowed Product Tags\",\n    \"allowed shipping zones\": \"Allowed Shipping Zones\",\n    \"allowed shop\": \"Allowed Shop\",\n    \"allowed telephones\": \"Allowed Telephones\",\n    \"almost empty qty warning shop custom text\": \"Almost Empty Qty Warning Shop Custom Text\",\n    \"almost empty qty warning threshold\": \"Almost Empty Qty Warning Threshold\",\n    \"almost empty qty warning use default from settings\": \"Almost Empty Qty Warning: Use Default From Settings\",\n    \"almost pre order qty warning shop custom text\": \"Almost Pre-Order Qty Warning Shop Custom Text\",\n    \"almostEmptyQtyWarningShopCustomText_placeholder\": \"The product will be sold out soon. Order soon.\",\n    \"almostPreOrderQtyWarningShopCustomText_placeholder\": \"The product will be pre-ordered soon. Order soon.\",\n    \"already added\": \"Already Added\",\n    \"already imported\": \"Already imported\",\n    \"already sent\": \"Already Sent\",\n    \"always charge shipping fee\": \"Always Charge Shipping Fee\",\n    \"always display wizard\": \"Always Display Wizard\",\n    \"always hide\": \"Always hide\",\n    \"always hide menu\": \"Always Hide Menu\",\n    \"amount\": \"Amount\",\n    \"amount due\": \"Amount Due\",\n    \"animation\": \"Animation\",\n    \"animation count\": \"Animation Count\",\n    \"animation duration\": \"Animation Duration\",\n    \"animation only plays when the element first scrolls into view\": \"Animation Only Plays When The Element First Scrolls Into View\",\n    \"animations\": \"Animations\",\n    \"anonymized product name\": \"Anonymized Product Name\",\n    \"answer\": \"Answer\",\n    \"anti-fraud info\": \"Anti-fraud Informations\",\n    \"anti-fraud text\": \"ref：We will not ask you to operate ATM. ATMs serve only for remittence and money transfer, and cannot deal with cancelation of installment payment or order error. Call 165 to access more anti-fraud informations.\",\n    \"anyNextAvailableNumbers\": \"Any next available numbers\",\n    \"anytime\": \"Anytime\",\n    \"api access\": \"Api Access\",\n    \"api access token\": \"API Token\",\n    \"apiAccess\": \"API Access\",\n    \"api_access_token_generate_note\": \"Are you sure you want to generate a new API Token? This will invalidate the current API Token if it exists.\",\n    \"api_access_token_note\": \"This API Token will not be shown again. Please copy it now.\",\n    \"api_help\": \"API Help\",\n    \"api_settings wizard description\": \"Settings Wizard Description\",\n    \"append to default message\": \"Append to Default Message\",\n    \"apple pay\": \"Apple Pay\",\n    \"applePay\": \"Apple Pay\",\n    \"apply adjustment amount\": \"Adjust refund amount when there are insufficient points to deduct\",\n    \"apply discount to shipping fee and payment fee\": \"Apply discount to shipping fee and payment fee\",\n    \"apply schedules to all images\": \"Apply Schedules to All Images\",\n    \"apply schedules to all pages\": \"Apply Schedule To All Pages\",\n    \"apply to all orders\": \"Apply to all orders\",\n    \"apply to all products\": \"Apply To All Products\",\n    \"apply to first order only\": \"Apply to first order only\",\n    \"apply to last order only\": \"Apply to last order only\",\n    \"approve\": \"Approve\",\n    \"archive\": \"Archive\",\n    \"archived\": \"Archived\",\n    \"are you sure you want to archive\": \"Are you sure you want to archive?\",\n    \"are you sure you want to cancel invoice number\": \"Are you sure you want to cancel Invoice Number\",\n    \"are you sure you want to cancel this order?\": \"Are you sure you want to cancel this Order?\",\n    \"are you sure you want to cancel?\": \"Are you sure you want to Cancel?\",\n    \"are you sure you want to clear\": \"Are you sure you want to clear {item}?\",\n    \"are you sure you want to clear page\": \"Are you sure you want to clear page?\",\n    \"are you sure you want to close this guide?\": \"Are you sure you want to close this guide? It will not show again.\",\n    \"are you sure you want to close?\": \"Are you sure you want to Close?\",\n    \"are you sure you want to close? any unsaved changes will be lost.\": \"Are you sure you want to Close? Any unsaved changes will be lost.\",\n    \"are you sure you want to comment and notify customer\": \"Are you sure you want to comment and notify customer?\",\n    \"are you sure you want to copy from master to children\": \"Are you sure you want to copy from master to children?\",\n    \"are you sure you want to delete\": \"Are you sure you want to Delete?\",\n    \"are you sure you want to delete comment\": \"Are you sure you want to delete comment\",\n    \"are you sure you want to delete image?\": \"Are you sure you want to Delete Image?\",\n    \"are you sure you want to delete this campaign\": \"Are you sure you want to delete this campaign? You would not be able to revert this change.\",\n    \"are you sure you want to delete this step? all linked steps will be deleted too\": \"Are you sure you want to delete this step? All linked steps will be deleted too.\",\n    \"are you sure you want to delete variant option\": \"Are you sure you want to delete variant option? Related child products will be deleted.\",\n    \"are you sure you want to dispatch all?\": \"Are you sure you want to dispatch all?\",\n    \"are you sure you want to hold all?\": \"Are you sure you want to hold all?\",\n    \"are you sure you want to logout\": \"Are you sure you want to Logout?\",\n    \"are you sure you want to mark as completed?\": \"Are you sure you want to mark as completed?\",\n    \"are you sure you want to merge contacts\": \"Are you sure you want to Merge Contacts?\",\n    \"are you sure you want to move all documents to dispatch process\": \"Move {count} documents to {dispatchProcess}?\",\n    \"are you sure you want to re-index all products? this may take some time.\": \"Are you sure you want to re-index all products? This may take some time.\",\n    \"are you sure you want to re-sync product\": \"Are you sure you want to Re-Sync product?\",\n    \"are you sure you want to remove\": \"Are you sure you want to Remove?\",\n    \"are you sure you want to remove entire row?\": \"are you sure you want to remove entire row?\",\n    \"are you sure you want to remove item\": \"Are you sure you want to Remove: {item}?\",\n    \"are you sure you want to remove this cell?\": \"are you sure you want to remove this cell?\",\n    \"are you sure you want to remove this custom sheet?\": \"are you sure you want to remove this custom sheet?\",\n    \"are you sure you want to reprint\": \"Are you sure you want to reprint?\",\n    \"are you sure you want to reset all rows?\": \"Are you sure you want to reset all rows?\",\n    \"are you sure you want to revert to draft\": \"Are you sure you want to Revert to Draft?\",\n    \"are you sure you want to save as template\": \"Are you sure you want to Save as Template?\",\n    \"are you sure you want to send an email to the supplier\": \"Are You Sure You Want To Send An Email To The Supplier\",\n    \"are you sure you want to unarchive\": \"Are you sure you want to unarchive?\",\n    \"are you sure you want to undispatch all?\": \"Are you sure you want to undispatch all?\",\n    \"are you sure you want to undo cancel?\": \"Are you sure you want to Undo Cancel?\",\n    \"are you sure you want to undo void\": \"Are you sure you want to undo void?\",\n    \"are you sure you want to undo void for document\": \"Are you sure you want to undo void for document\",\n    \"are you sure you want to undo?\": \"Are you sure you want to undo?\",\n    \"are you sure you want to unhold all?\": \"Are you sure you want to unhold all?\",\n    \"are you sure you want to void document\": \"Are you sure you want to void document\",\n    \"area\": \"Area\",\n    \"array\": {\n      \"min\": \"minimum requirement not met. {limit}\"\n    },\n    \"arrival date\": \"Arrival Date\",\n    \"arrival date is\": \"Arrival Date is {date}\",\n    \"arrow settings\": \"Arrow settings\",\n    \"arrows button background color\": \"Arrows Button Background Color\",\n    \"arrows button border color\": \"Arrows Button Border Color\",\n    \"arrows button hover color\": \"Arrows Button Hover Color\",\n    \"arrows button size\": \"Arrows Button Size\",\n    \"arrows color\": \"Arrows color\",\n    \"arrows position\": \"Arrows Position\",\n    \"arrows settings\": \"Arrows Settings\",\n    \"arrows size\": \"Arrows size\",\n    \"assets\": \"Assets\",\n    \"assign a new waybill number for each package\": \"Assign a new waybill number for each package. Only applicable when rate is by volume.\",\n    \"assign to\": \"Assign To\",\n    \"associate\": \"Affiliate\",\n    \"associates\": \"Affiliates\",\n    \"at least 6 characters\": \"At least 6 characters\",\n    \"atm_approved\": \"Approved\",\n    \"atm_attentionRequired\": \"Attention Required\",\n    \"atm_bsp\": \"永豐銀行 Bank SinoPac\",\n    \"atm_eSun\": \"玉山銀行 E. Sun\",\n    \"atm_expired\": \"Expired\",\n    \"atm_pending\": \"Pending\",\n    \"atm_pending_short\": \"Pending\",\n    \"atm_ubot\": \"聯邦銀行 Union Bank Of Taiwan\",\n    \"attentionRequired\": \"Attention Required\",\n    \"authorize refund\": \"Authorize Refund\",\n    \"auto\": \"Auto\",\n    \"auto add new product to website\": \"Auto Add New Product To Website\",\n    \"auto cancel expired atm orders\": \"Auto cancel expired atm orders\",\n    \"auto expand\": \"Auto Expand\",\n    \"auto fill column\": \"Auto Fill Column\",\n    \"auto fill commissions\": \"Auto fill commissions\",\n    \"auto fill shipping fee adjustment\": \"Auto fill shipping fee adjustment\",\n    \"auto fill variant children's code\": \"Auto fill variant children's code\",\n    \"auto fill variant children's name\": \"Auto fill variant children's name\",\n    \"auto generate detail row\": \"Auto Generate Detail Row\",\n    \"auto generate if empty\": \"Auto Generate If Empty\",\n    \"auto generate sales history (optional)\": \"Auto Generate Sales History (optional)\",\n    \"auto hide\": \"Auto Hide\",\n    \"auto index\": \"Auto Index\",\n    \"auto link member\": \"Auto Link Member\",\n    \"auto mark as printed\": \"Automatically Mark as Printed\",\n    \"auto print invoices\": \"Auto Print Invoices\",\n    \"auto redirect to url when campaign has ended\": \"Auto redirect to url when campaign has ended\",\n    \"auto renew plan\": \"Auto Renew Plan\",\n    \"auto select images when uploading\": \"Auto Select Images When Uploading\",\n    \"auto send dispatched email at 10pm every day\": \"Auto send dispatched email at 10pm every day\",\n    \"automatically end campaign\": \"Automatically End Campaign\",\n    \"automatically send payment reminders\": \"Automatically Send Payment Reminders\",\n    \"automatically update all following invoices\": \"Automatically update all following Invoices\",\n    \"automation\": \"Automation\",\n    \"automation index\": \"Automation Index\",\n    \"automation key\": \"Automation Key\",\n    \"automation priority\": \"Automation Priority\",\n    \"automation_action_mayAdd\": \"Show Additional Items\",\n    \"automation_action_mustAdd\": \"Automatically Add Items to Cart\",\n    \"automation_qty\": \"Value\",\n    \"automation_selection_type\": \"How to add\",\n    \"automation_then\": \"Then\",\n    \"automation_title\": \"Message\",\n    \"automation_when\": \"When\",\n    \"automations\": \"Automations\",\n    \"automations shipping behavior\": \"Automation Shipping Behavior\",\n    \"automations-settings\": \"Automations Settings\",\n    \"autoplay\": \"Autoplay\",\n    \"autoplay delay\": \"Autoplay Delay\",\n    \"available\": \"Available\",\n    \"available preOrder qty\": \"Available Pre Order Qty\",\n    \"available promo code\": \"Available promo code\",\n    \"available qty\": \"Available Qty\",\n    \"available to sell qty\": \"Available To Sell Qty\",\n    \"available_sales_qty\": \"Available Sales Qty\",\n    \"average\": \"Average\",\n    \"average days per transaction\": \"Average Days per Transaction\",\n    \"average item price\": \"Av. Item Price\",\n    \"average order value\": \"Av. Order Value\",\n    \"average price\": \"Average Price\",\n    \"awaiting payment\": \"Awaiting Payment\",\n    \"awaitingPayment\": \"Awaiting Payment\",\n    \"awaitingRecurringPayment\": \"Awaiting Recurring Payment\",\n    \"awaitingReplyFromCustomer\": \"Awaiting reply from customer\",\n    \"awaitingReplyFromMerchant\": \"Awaiting reply from merchant\",\n    \"b2b\": \"B2B,\",\n    \"b2c\": \"B2C\",\n    \"back to previous\": \"Back\",\n    \"backInDown\": \"Back In Down\",\n    \"backInUp\": \"Back In Up\",\n    \"back_page\": \"Back\",\n    \"background\": \"Background\",\n    \"background color\": \"Background Color\",\n    \"background color options\": \"Background Color Options\",\n    \"background image\": \"Background Image\",\n    \"background transparency\": \"Background Transparency\",\n    \"balance sheet\": \"Balance Sheet\",\n    \"bank\": \"Bank\",\n    \"bank accounts\": \"Bank Accounts\",\n    \"bank of china\": \"Bank of China\",\n    \"bank processing error\": \"Bank processing error\",\n    \"bank transfer\": \"Bank Transfer\",\n    \"bankTransfer\": \"Bank Transfer\",\n    \"banking details\": \"Banking Details\",\n    \"banner\": \"Banner\",\n    \"banner bottom\": \"Banner Bottom\",\n    \"banner top\": \"Banner Top\",\n    \"barcode\": \"Barcode\",\n    \"barcode print settings\": \"Barcode Print Settings\",\n    \"barcode type\": \"Barcode Type\",\n    \"barcode types\": \"Barcode Types\",\n    \"barcode_ean13\": \"Barcode (EAN13)\",\n    \"barcode_generator_error\": \"Cannot generate barcode.\",\n    \"barcodes\": \"Barcodes\",\n    \"base cost\": \"Base Cost\",\n    \"basic\": \"Basic\",\n    \"basic information\": \"Basic Information\",\n    \"basic settings\": \"Basic Settings\",\n    \"basic-settings\": \"Basic Settings\",\n    \"basic_webpage\": \"Basic Webpage\",\n    \"batch number\": \"Batch Number\",\n    \"before checkout\": \"Before Checkout\",\n    \"before noon\": \"Before Noon\",\n    \"beforeNoon\": \"Before Noon\",\n    \"beginning of month\": \"Beginning Of Month\",\n    \"beta\": \"Beta\",\n    \"beta settings\": \"Beta Settings\",\n    \"beta-settings\": \"Beta Settings\",\n    \"better images\": \"better images\",\n    \"bigOrdrPlanStaticVirtualAccountNumber_placeholder\": \"Leave empty to auto-generate a single-use virtual account number\",\n    \"bigger\": \"Bigger\",\n    \"bigordr\": \"BigOrdr\",\n    \"bigordr customer\": \"BigOrdr Customer\",\n    \"bigordr plan\": \"BigOrdr Plan\",\n    \"bigordr-background-fixed\": \"Fixed Background\",\n    \"bigordr-background-fixed-background\": \"bigordr-background-fixed-background\",\n    \"bigordr-background-fixed-cover\": \"bigordr-background-fixed-cover\",\n    \"bigordr-banner\": \"Banner\",\n    \"bigordr-cell\": \"Cell\",\n    \"bigordr-flex-cell\": \"Flex Cell\",\n    \"bigordr-form\": \"Form\",\n    \"bigordr-grid\": \"Grid\",\n    \"bigordr-grid-images\": \"Grid Images\",\n    \"bigordr-inner-row\": \"Inner Row\",\n    \"bigordr-picture-block\": \"Picture Block\",\n    \"bigordr-picture-layer-container-block\": \"Picture Layer\",\n    \"bigordr-scratch-card\": \"Scratch Card\",\n    \"bigordr-stories-block\": \"Stories\",\n    \"bigordr-strip\": \"Strip\",\n    \"bigordr-strip-image\": \"Strip Image\",\n    \"bigordr-tabs-with-header-block\": \"Tabs With Header\",\n    \"billing address\": \"Billing Address\",\n    \"billing management\": \"Billing Management\",\n    \"billingAddress\": \"Billing Address\",\n    \"billing_company_name\": \"Billing Company Name\",\n    \"billing_contact\": \"Billing Contact\",\n    \"billing_credits\": \"Credits\",\n    \"billing_credits_auto_topup\": \"Auto Topup\",\n    \"billing_credits_auto_topup_amount\": \"Auto Topup Amount\",\n    \"billing_credits_auto_topup_disabled\": \"Auto Topup Disabled\",\n    \"billing_credits_auto_topup_enabled\": \"Auto Topup Enabled\",\n    \"billing_credits_auto_topup_when_amount_below\": \"Auto Topup When Amount Is Below\",\n    \"billing_credits_buy\": \"Buy Credits Now\",\n    \"billing_credits_history\": \"Credits History\",\n    \"billing_details\": \"Billing Details\",\n    \"billing_email\": \"Billing Email\",\n    \"billing_invoices_history\": \"Invoices History\",\n    \"billing_plan\": \"Plan\",\n    \"billing_plan_admin\": \"Admin\",\n    \"billing_plan_free\": \"Free\",\n    \"billing_plan_paid1\": \"Basic\",\n    \"billing_plan_paid2\": \"Pro\",\n    \"billing_plans\": \"Plans\",\n    \"billing_systemlead_addon\": \"SystemLead E-Invoice Addon\",\n    \"billing_systemlead_addon_confirm\": \"Subscribe to the SystemLead e-invoice addon at NT${price}/year? Billed yearly — the renewal invoice is issued in November for the following year.\",\n    \"billing_systemlead_addon_disabled\": \"Not Subscribed\",\n    \"billing_systemlead_addon_enabled\": \"Enabled\",\n    \"billing_systemlead_addon_plan\": \"Plan\",\n    \"billing_systemlead_addon_plan_12000\": \"12,000 e-invoices/year\",\n    \"billing_systemlead_addon_renew\": \"Renew Now\",\n    \"billing_systemlead_addon_renew_available_from\": \"Renewal available from {date}\",\n    \"billing_systemlead_addon_renewal_date\": \"Renewal Date\",\n    \"billing_systemlead_addon_subscribe\": \"Subscribe\",\n    \"billing_systemlead_addon_yearly_price\": \"Yearly Price\",\n    \"billing_telephone\": \"Billing Telephone\",\n    \"birthday\": \"Birthday\",\n    \"birthday email\": \"Birthday Email\",\n    \"birthday months\": \"Birthday Months\",\n    \"birthday reward recipients\": \"Birthday Reward Recipients\",\n    \"birthday rewards\": \"Birthday Rewards\",\n    \"birthday years\": \"Birthday Years\",\n    \"black list\": \"Black List\",\n    \"black list reason\": \"Black List Reason\",\n    \"blackListedContactMsgDefault\": \"Sorry, we're unable to process your order at this time. Please contact our customer support for assistance.\",\n    \"blog\": \"Blog\",\n    \"blogs\": \"Blogs\",\n    \"blogs and news display settings\": \"Blogs And News Display Settings\",\n    \"blogs and news preview settings\": \"Blogs And News Preview Settings\",\n    \"blogs images fit\": \"Blogs Images Fit\",\n    \"blogs images ratio\": \"Blogs Images Ratio\",\n    \"blogs preview settings\": \"Blogs Preview Settings\",\n    \"blogs settings\": \"Blogs Settings\",\n    \"blogs show breadcrumb\": \"Show Breadcrumb Navigation\",\n    \"blogs style\": \"Blogs Style\",\n    \"blogs tags\": \"Blogs Tags\",\n    \"blogs_and_news_preview_author\": \"Show Blogs And News Author in preview\",\n    \"blogs_and_news_preview_date\": \"Show Blogs And News Date in preview\",\n    \"blogs_and_news_preview_description\": \"Show Blogs And News Description in preview\",\n    \"blogs_and_news_preview_tags\": \"Show Blogs And News Tags in preview\",\n    \"blogs_and_news_preview_title\": \"Show Blogs And News Title in preview\",\n    \"blogs_style1\": \"Blogs Style 1 (Grid)\",\n    \"blogs_style2\": \"Blogs Style 2 (Horizontal)\",\n    \"blurIn\": \"Blur In\",\n    \"book qty\": \"Book Qty\",\n    \"border\": \"Border\",\n    \"border color\": \"Border Color\",\n    \"border radius\": \"Border Radius\",\n    \"border style\": \"Border Style\",\n    \"border width\": \"Border Width\",\n    \"border_dashed\": \"Dashed\",\n    \"border_dotted\": \"Dotted\",\n    \"border_double\": \"Double\",\n    \"border_none\": \"None\",\n    \"border_solid\": \"Solid\",\n    \"bot\": \"Bot\",\n    \"bot builder\": \"Bot Builder\",\n    \"bottom\": \"Bottom\",\n    \"bounce\": \"Bounce\",\n    \"brand\": \"Brand\",\n    \"brands\": \"Brands\",\n    \"browse\": \"Browse\",\n    \"browse mode\": \"Browse\",\n    \"browser default\": \"Browser Default Font\",\n    \"bsp\": \"永豐銀行 Bank SinoPac\",\n    \"bsp_hash\": \"Hash\",\n    \"bsp_merchant_id\": \"Merchant ID\",\n    \"bsp_payments\": \"永豐銀行 Bank SinoPac\",\n    \"bsp_virtualAccount\": \"永豐銀行 VirtualAccount Enable\",\n    \"bulk add\": \"Bulk Add\",\n    \"bulk discount\": \"Bulk Discount\",\n    \"bulk discount conflicts\": \"Bulk Discount Conflicts\",\n    \"bulk discount schedules\": \"Bulk Discount Schedules\",\n    \"bulk discounts\": \"Bulk Discounts\",\n    \"bulk edit\": \"Bulk Edit\",\n    \"bulk insert products\": \"Bulk insert products\",\n    \"bulk insert products into campaign\": \"Enter product code or name, and each product should be on a new line.\",\n    \"bulk insert products into document\": \"Enter product code or name, and each product should be on a new line.\",\n    \"bulk split\": \"Bulk Split\",\n    \"bulk split finished\": \"Bulk split finished\",\n    \"bulk split may still be processing do not resubmit refresh dispatch folder\": \"The bulk split may still be processing on the server. Do not submit again. Refresh Dispatch Management after a few minutes to check the results.\",\n    \"bulk split queued\": \"Bulk split queued. You will be notified when it finishes.\",\n    \"bulk split stopped\": \"Bulk split stopped before all orders were processed\",\n    \"bulk update document status and print\": \"Bulk Update Document Status And Print\",\n    \"button\": \"Button\",\n    \"button alignment\": \"Button Alignment\",\n    \"button click\": \"Button Click\",\n    \"button image options\": \"Button Image Options\",\n    \"button image radius\": \"Button Image Radius\",\n    \"button image type\": \"Button Image Type\",\n    \"button label\": \"Button Label\",\n    \"button styles\": \"Button Styles\",\n    \"button1\": \"button1\",\n    \"button2\": \"button2\",\n    \"button3\": \"button3\",\n    \"buttons\": \"Buttons\",\n    \"by documents\": \"By Documents\",\n    \"by invoices\": \"By Invoices\",\n    \"by orders\": \"By Orders\",\n    \"by products\": \"By Products\",\n    \"byAllOrder\": \"Shipping Data - All Order\",\n    \"byAllOrdersWithOneColumnRow\": \"One Row Per Detail\",\n    \"byAllOrdersWithOneColumnRowWithSummary\": \"One Row Per Detail + Summary\",\n    \"byDetails\": \"Shipping Data with Custom Detail\",\n    \"byDetailsWithGrandTotals\": \"Shipping Data with Custom Detail + Grand Totals\",\n    \"byDispatchProcesses\": \"By Dispatch Processes\",\n    \"byDocumentsStatuses\": \"By Documents Statuses\",\n    \"c2c\": \"C2C\",\n    \"cache updated\": \"Cache Updated\",\n    \"calculate dispatch days starting from today\": \"Calculate Dispatch Days Starting From Today\",\n    \"calendar settings\": \"Calendar Settings\",\n    \"calendar settings type\": \"Calendar Settings Type\",\n    \"callback url\": \"Callback Url\",\n    \"campaign\": \"Campaign\",\n    \"campaign detail product tags\": \"Campaign Detail Product Tags\",\n    \"campaign ended settings\": \"Campaign Ended Settings\",\n    \"campaign expired settings\": \"Campaign Expired Settings\",\n    \"campaign images\": \"Campaign Images\",\n    \"campaign key\": \"Campaign Key\",\n    \"campaign notification\": \"Campaign Notification\",\n    \"campaign period\": \"Campaign Period\",\n    \"campaign products\": \"Campaign Products\",\n    \"campaign qty\": \"Campaign Qty\",\n    \"campaign reports\": \"Campaign Reports\",\n    \"campaign review is not set!\": \"Campaign review is not set!\",\n    \"campaign settings\": \"Campaign Settings\",\n    \"campaign status\": \"Campaign Status\",\n    \"campaign-settings\": \"Campaign Settings\",\n    \"campaignDetail_active\": \"Visible\",\n    \"campaignDetail_draft\": \"Draft\",\n    \"campaignDetail_inactive\": \"Hidden\",\n    \"campaignDetail_preOrder\": \"Pre Order\",\n    \"campaignDetail_soldOut\": \"Sold Out\",\n    \"campaign_description\": \"Campaign Description\",\n    \"campaign_description_group\": \"Campaign Description\",\n    \"campaign_expired_template\": \"Expired Template\",\n    \"campaigns\": \"Campaigns\",\n    \"campaigns finished syncing\": \"Campaigns finished syncing\",\n    \"campaigns review\": \"Campaigns Review\",\n    \"campaigns review settings\": \"Campaigns Review Settings\",\n    \"campaigns_are_syncing\": \"Campaigns are syncing\",\n    \"can preOrder\": \"Can pre-order\",\n    \"can split by transporter\": \"Can Split By Transporter\",\n    \"cancel\": \"Cancel\",\n    \"cancel invoice\": \"Cancel Invoice\",\n    \"cancel invoice reason\": \"Cancel Invoice Reason\",\n    \"cancel order\": \"Cancel Order\",\n    \"cancel_save\": \"Cancel\",\n    \"cancelled\": \"Cancelled\",\n    \"cancelled invoices\": \"Cancelled Invoices\",\n    \"cannot delete. tag is in use by shipping zones\": \"This tag is used in {count} shipping zones: {zones}. Delete anyway?\",\n    \"cannot have empty commission\": \"Cannot have empty commission!\",\n    \"cannot import due to incorrect data\": \"Cannot import due to incorrect data\",\n    \"cannot issue e-invoices\": \"Cannot Issue E-invoices\",\n    \"cannot merge. contacts are linked to different members\": \"Cannot merge, contacts are linked to different members.\",\n    \"cannot refund credit card\": \"Cannot Refund Credit Card\",\n    \"cannot send\": \"Cannot Send\",\n    \"cannot upload file, files must be under 10mb\": \"Cannot upload file. Files must be under 10 MB.\",\n    \"cannot void because document has used reward points\": \"Cannot void because document has used reward points, please use return\",\n    \"carrier refused to cancel waybill\": \"The transporter refused to cancel this waybill\",\n    \"cart\": \"cart\",\n    \"cart button style\": \"Cart Button Style\",\n    \"cart items\": \"cart items\",\n    \"cash\": \"Cash\",\n    \"cash before delivery\": \"Cash Before Del.\",\n    \"cash book\": \"Cash Book\",\n    \"cash on delivery\": \"Cash On Delivery\",\n    \"cash payment fee\": \"Cash Payment Fee\",\n    \"cashBeforeDelivery\": \"Cash Before Del.\",\n    \"category\": \"Category\",\n    \"cathay united bank\": \"Cathay United Bank\",\n    \"cc_approved\": \"Approved\",\n    \"cc_awaitingPayment\": \"Awaiting Credit Card Payment\",\n    \"cc_awaiting_3ds_verification\": \"Awaiting 3DS Verification\",\n    \"cc_declined\": \"Declined\",\n    \"cc_paidOut\": \"Paid Out\",\n    \"cc_partial_card_number\": \"Partial Card Number\",\n    \"cc_pending\": \"Refund Requested\",\n    \"cc_ref\": \"Payment Ref\",\n    \"cc_refund\": \"Credit Card Refund\",\n    \"cc_refundRequested\": \"Refund Requested\",\n    \"cc_refundRequested date\": \"Refund Requested Date\",\n    \"cc_refund_total\": \"Refund Total\",\n    \"cc_refunded\": \"Refunded\",\n    \"cc_refunded date\": \"Refunded Date\",\n    \"cc_total\": \"Total\",\n    \"cc_unsuccessful\": \"unsuccessful\",\n    \"center\": \"Center\",\n    \"chang hwa bank\": \"Chang Hwa Bank\",\n    \"change convenience store\": \"Change convenience store\",\n    \"change credit card\": \"Change Credit Card\",\n    \"change language? will reload page\": \"Change Language? Will reload Page\",\n    \"change logs\": \"Change Logs\",\n    \"change password\": \"Change Password\",\n    \"change pickup method\": \"Change Pickup Method (DANGER)\",\n    \"change return convenience store\": \"Change Return Convenience Store\",\n    \"changes summary\": \"Changes Summary\",\n    \"changes_deployed\": \"Changes has already been deployed\",\n    \"channel\": \"Channel\",\n    \"channel id\": \"Channel Id\",\n    \"channel secret\": \"Channel Secret\",\n    \"channels\": \"Channels\",\n    \"charge shipping fee\": \"Charge Shipping Fee\",\n    \"charge to different account\": \"Charge to Different Account\",\n    \"charge to different customer account\": \"Charge to Different Customer Account\",\n    \"charge to different supplier account\": \"Charge to Different Supplier Account\",\n    \"chat messages\": \"Chat Messages\",\n    \"check history\": \"Check History\",\n    \"check order status\": \"check order status\",\n    \"checkout\": \"Checkout\",\n    \"checkout convenience store description\": \"Customize Convenience Store Description\",\n    \"checkout description\": \"Product Description When Checkout\",\n    \"checkout details description\": \"Customize Description on Checkout Details Step\",\n    \"checkout logs\": \"Checkout Logs\",\n    \"checkout page on select dispatch or arrival date\": \"Checkout Page On Select Expected Dispatch Date Or Arrival Date\",\n    \"checkout payment description\": \"Customize Description on Checkout Payment Step\",\n    \"checkout settings\": \"Checkout Settings\",\n    \"checkout summary description\": \"Customize Description on Checkout Summary Step\",\n    \"checkout/details\": \"Checkout Shipping (Step 2/4)\",\n    \"checkout/payment\": \"Checkout Payment (Step 3/4)\",\n    \"checkout/success\": \"Checkout Sucessful (Step 4/4)\",\n    \"checkout/summary\": \"Checkout Summary (Step 1/4)\",\n    \"checkoutId logs\": \"CheckoutId Logs\",\n    \"child campaign\": \"Child Campaign\",\n    \"children campaign\": \"Children Campaign\",\n    \"choice\": \"Choice\",\n    \"choice name\": \"Choice Name\",\n    \"choice price\": \"Choice Price\",\n    \"choiceIsEmpty\": \"Empty choices\",\n    \"choices\": \"Choices\",\n    \"choose between\": \"Choose Between\",\n    \"choose form\": \"Choose Form\",\n    \"choose how to adjust qty\": \"Choose How To Adjust Qty\",\n    \"choose link\": \"Choose Link\",\n    \"choose qty\": \"Choose Qty\",\n    \"choose template\": \"Choose a Template\",\n    \"chooseBetween\": \"Choose Between\",\n    \"choose_all\": \"Choose All\",\n    \"choose_between\": \"Choose Between\",\n    \"citizenDigitalCertificate\": \"Citizen Cert\",\n    \"city\": \"city\",\n    \"ckeditor-language\": \"en\",\n    \"clear\": \"Clear\",\n    \"clear above\": \"Clear Blanks Above\",\n    \"clear all\": \"Clear All Blanks\",\n    \"clear below\": \"Clear Blanks Below\",\n    \"clear column\": \"Clear Column\",\n    \"clear page\": \"Clear page\",\n    \"click id\": \"Click_ID\",\n    \"close\": \"Close\",\n    \"close preview\": \"Close Preview\",\n    \"closing balance\": \"Closing Balance\",\n    \"clothing and accessories\": \"Clothing And Accessories\",\n    \"cm\": \"cm\",\n    \"code\": \"Code\",\n    \"collapse under product name\": \"Collapse Under Product Name\",\n    \"collect on behalf description\": \"Collect on Behalf Description\",\n    \"collect on behalf pre description\": \"Collect on Behalf Pre-Description\",\n    \"collect on behalf receipt\": \"Collect on Behalf Receipt\",\n    \"collect payment now\": \"Collect Payment Now\",\n    \"collectOnBehalf\": \"Collect on Behalf\",\n    \"colon not allowed\": \"Colon (:) not allowed\",\n    \"color template\": \"Color Template\",\n    \"color theme settings\": \"Color Theme Settings\",\n    \"colorOptions_none\": \"None\",\n    \"colorOptions_solid\": \"Solid\",\n    \"combine labels\": \"Combine Labels\",\n    \"combinedTagsOnly\": \"Show Group of Tags Together (Must match exact tags combinations)\",\n    \"comment\": \"Comment\",\n    \"comments\": \"Comments\",\n    \"comments settings\": \"Comment Settings\",\n    \"commission\": \"Commission\",\n    \"commission %\": \"Commission %\",\n    \"commission % per item\": \"Commission % Per Item\",\n    \"commission amount\": \"Commission Amount\",\n    \"commission amount per item\": \"Commission Amount Per Item\",\n    \"commission base cost\": \"Commission Base Cost\",\n    \"commission base cost per item\": \"Commission Base Cost per Item\",\n    \"commission base costs\": \"Commission Base Costs\",\n    \"commission calculation\": \"Commission Calculation\",\n    \"commission due date\": \"Commission Due Date\",\n    \"commission due from last month\": \"Commission Due From Last Month\",\n    \"commission due this month\": \"Commission Due This Month\",\n    \"commission payout\": \"Commission Payout\",\n    \"commission per unit\": \"Commission per unit\",\n    \"commission qty\": \"Commission Qty\",\n    \"commission ratio\": \"Commission Ratio (%)\",\n    \"commission refunded this month\": \"Commissions Refunded This Month\",\n    \"commission total\": \"Total Commission\",\n    \"commission total amount\": \"Commission total amount\",\n    \"commission_adjustment_error_msg\": \"Error! Max discount amount is 10\",\n    \"commission_byAmount\": \"Commission Amount\",\n    \"commission_byBaseCost\": \"Commission Base Cost\",\n    \"commission_normalPercent\": \"Commission (%)\",\n    \"commission_twPercent\": \"Commission (折)\",\n    \"commissions\": \"Commissions\",\n    \"commissions adjustment\": \"Commissions Adjustment\",\n    \"commissions calculated\": \"Comissions generated\",\n    \"commissions calculation method\": \"Commissions calculation method\",\n    \"commissions due\": \"Commissions Due\",\n    \"commissions due returned\": \"Commissions Due Returned\",\n    \"commissions generated\": \"Commissions Generated\",\n    \"commissions generated returned\": \"Commissions Generated Returned\",\n    \"commissions payouts\": \"Commissions Payouts\",\n    \"commissions refunded\": \"Commissions Refunded\",\n    \"commissions settings\": \"Commissions Settings\",\n    \"commissions summary for this month\": \"Commissions Summary for This Month\",\n    \"commissionsSettings\": \"Commmissions Settings\",\n    \"compact rows\": \"Compact rows\",\n    \"company\": \"Company\",\n    \"company address\": \"Company Address\",\n    \"company info\": \"Company Info\",\n    \"company name\": \"Company Name\",\n    \"company opening hours\": \"Oompany Hpening hours\",\n    \"company telephone\": \"Company Telephone\",\n    \"complete\": \"Complete\",\n    \"complex\": \"Complex\",\n    \"compound\": \"Compound\",\n    \"computer, communication and consumer electronics\": \"Computer, Communication And Consumer Electronics\",\n    \"confirm\": \"Confirm\",\n    \"confirm collect payment\": \"Confirm Collect Payment\",\n    \"confirm migrate to multiple bulk discounts\": \"Switching to the new bulk discount version allows multiple bulk discounts to be applied together. This change cannot be reversed. Do you want to continue?\",\n    \"confirm password\": \"Confirm Password\",\n    \"confirm pickup convenience store change on carrier\": \"This will immediately update the pickup store on 7-ELEVEN for this waybill. Continue?\",\n    \"confirm return convenience store change on carrier\": \"This will immediately update the return store on 7-ELEVEN for this waybill. Continue?\",\n    \"confirm_ignore\": \"Confirm ignored\",\n    \"connect domain\": \"Connect Domain\",\n    \"connect shop\": \"Connect Shop\",\n    \"connection error\": \"Connection Error\",\n    \"consignment\": \"Consignment\",\n    \"consignment delivery\": \"Consignment Delivery\",\n    \"consignment qty\": \"Consignment Qty\",\n    \"consignment receipt\": \"Consignment Receipt\",\n    \"consignments\": \"Consignments\",\n    \"contact\": \"Contact\",\n    \"contact customer service to update\": \"Contact Customer Service To Update\",\n    \"contact email\": \"Contact email\",\n    \"contact info\": \"Contact Info\",\n    \"contact is not a member, send reward\": \"Contact is not a member, send reward?\",\n    \"contact key\": \"Contact Key\",\n    \"contact name\": \"Contact name\",\n    \"contact person\": \"Contact Person\",\n    \"contact phone number\": \"Contact Phone Number\",\n    \"contact tags report summary option\": \"Contact Tags Report Summary Option\",\n    \"contact us\": \"Contact Us\",\n    \"contacts\": \"Contacts\",\n    \"contacts rewards\": \"Contacts Rewards\",\n    \"contacts without member level\": \"Contacts Without Member Level\",\n    \"contacts_groups\": \"Groups\",\n    \"container margin bottom\": \"Container Margin Bottom\",\n    \"container margin left\": \"Container Margin Left\",\n    \"container margin options\": \"Container Margin Options\",\n    \"container margin right\": \"Container Margin Right\",\n    \"container margin top\": \"Container Margin Top\",\n    \"container margin vertical\": \"Container Top and Bottom Margin\",\n    \"container padding\": \"Container Padding\",\n    \"container padding bottom\": \"Container Padding Bottom\",\n    \"container padding left\": \"Container Padding Left\",\n    \"container padding options\": \"Container Padding Options\",\n    \"container padding right\": \"Container Padding Right\",\n    \"container padding top\": \"Container Padding Top\",\n    \"container quick link label\": \"Container Quick link Label\",\n    \"container settings\": \"Container Settings\",\n    \"container width\": \"Container Width\",\n    \"contains an invalid value\": \"contains an invalid value\",\n    \"contains duplicate value\": \"contains duplicate value\",\n    \"content background\": \"Content Background\",\n    \"content horizontal position\": \"Content Horizontal Position\",\n    \"content position\": \"Content Position\",\n    \"content vertical position\": \"Content Vertical Position\",\n    \"contents_and_settings\": \"Contents And Settings\",\n    \"continue when clicked\": \"Continue When Clicked\",\n    \"continue_when_clicked_description\": \"The guide continues when this element is clicked. Next Step stays hidden until then.\",\n    \"contra type\": \"Contra Type\",\n    \"contract dates\": \"Contract Dates\",\n    \"contract end date\": \"Contract End Date\",\n    \"contract fee\": \"Contract Fee\",\n    \"contract start date\": \"Contract Start Date\",\n    \"contract type\": \"Contract Type\",\n    \"convenience store\": \"Convenience Store\",\n    \"convenience store brand\": \"Convenience Store Brand\",\n    \"convenience store change requires view mode\": \"Finish editing and return to view mode to change the store on 7-ELEVEN for this waybill.\",\n    \"convenience store id\": \"Store ID\",\n    \"convenience store name\": \"Store Name\",\n    \"conversion rate\": \"conversion rate\",\n    \"convert set items to only show set child items\": \"Convert Bundle to only show bundle child items\",\n    \"convert to date\": \"Convert To Date\",\n    \"convert to index\": \"Convert To Index\",\n    \"convert to number\": \"Convert To Number\",\n    \"copy\": \"Copy\",\n    \"copy & paste\": \"Copy & Paste\",\n    \"copy all\": \"Copy All\",\n    \"copy block\": \"Copy To Clipboard\",\n    \"copy document contents\": \"Copy Document Contents\",\n    \"copy existing bulk discounts\": \"Copy Existing Bulk Discounts\",\n    \"copy from above\": \"Copy From Above\",\n    \"copy images\": \"Copy Images\",\n    \"copy link\": \"Copy Link\",\n    \"copy payment link\": \"Copy Payment Link\",\n    \"copy preview url\": \"Copy Preview Url\",\n    \"copy shop link\": \"Copy Shop Link\",\n    \"copy theme from another website\": \"Copy Theme From Another Website\",\n    \"cost of sales\": \"Cost Of Sales\",\n    \"could not confirm the payment status with tappay, try again later\": \"Could not confirm the payment status with Tap Pay. Please try again later.\",\n    \"could not sync\": \"Could not sync\",\n    \"countries\": \"Countries\",\n    \"country\": \"Country\",\n    \"countryCode\": \"Country Code\",\n    \"create a qr code ticket for this product\": \"Create a QR Code Ticket for this product\",\n    \"create from\": \"Create From\",\n    \"create hct contact\": \"Create HCT Contact\",\n    \"create new adjustment\": \"Create New Adjustment\",\n    \"create new commissions\": \"Create New Commissions\",\n    \"create product and add to shop\": \"Create Product And Add To Shop\",\n    \"create seven-eleven contact\": \"Create 7-11 Contact\",\n    \"create t-cat contact\": \"Create TCat Contact\",\n    \"create workflow\": \"create workflow\",\n    \"created by\": \"Created By\",\n    \"created date\": \"Created Date\",\n    \"credentials\": \"Credentials\",\n    \"credit\": \"Credit\",\n    \"credit card\": \"Credit Card\",\n    \"credit card declined\": \"Credit Card Declined\",\n    \"credit card expired\": \"Credit Card Expired\",\n    \"credit card history\": \"Credit Card History\",\n    \"credit card installments: use defaults from settings\": \"Credit card installments: use defaults from settings\",\n    \"credit card provider installments: tap pay\": \"Credit Card Provider (Installments): Tap Pay\",\n    \"credit card provider recurring: tap pay\": \"Credit Card Provider (Recurring Payments): Tap Pay\",\n    \"credit card provider: tap pay\": \"Credit Card Provider: Tap Pay\",\n    \"credit card refund authorization request\": \"Credit card refund authorization request\",\n    \"credit card refunded email\": \"Credit Card Refunded Email\",\n    \"credit card status\": \"Credit Card Status\",\n    \"credit card transactions\": \"Credit Card Transactions\",\n    \"creditCard\": \"Credit Card\",\n    \"creditCardExpiryDate\": \"Crefit card expiration date (MM/YY)\",\n    \"creditCardHolder\": \"Credit card holder\",\n    \"creditCardHolderEmail\": \"Credit card holder email\",\n    \"creditCardNumber\": \"Credit card number\",\n    \"creditCardSecureCode\": \"Credit card secure code\",\n    \"credit_card_name_msg\": \"Must be exactly the same as the English name printed on the credit card surface\",\n    \"credit_card_name_placeholder\": \"Card Holder English Name\",\n    \"creditors\": \"Creditors\",\n    \"criteria\": \"Criteria\",\n    \"criterias\": \"Criterias\",\n    \"css\": \"CSS\",\n    \"ctbc\": \"CTBC\",\n    \"cumulative\": \"Cumulative\",\n    \"cumulative total\": \"Cumulative Total\",\n    \"currency\": \"Currency\",\n    \"currency decimal rounding\": \"Currency Decimal Rounding\",\n    \"current\": \"Current\",\n    \"current active\": \"Current Active\",\n    \"current available qty\": \"Current Available Qty\",\n    \"current bulk discount\": \"Current Bulk Discount\",\n    \"current document\": \"Current Document\",\n    \"current inventory book qty\": \"Current Inventory Book Qty\",\n    \"current month\": \"Current Month\",\n    \"current on hand qty\": \"Current On Hand Qty\",\n    \"current points\": \"Current Points\",\n    \"current sale\": \"Current Sale\",\n    \"current schedule\": \"Current Schedule\",\n    \"current year\": \"Current Year\",\n    \"current_lang\": \"ENGLISH\",\n    \"currently active schedule\": \"Currently Active Schedule\",\n    \"custom\": \"Custom\",\n    \"custom author display\": \"Custom Author Display\",\n    \"custom checkout fields\": \"Custom Checkout Fields\",\n    \"custom date display\": \"Custom Date Display\",\n    \"custom export\": \"Custom Export\",\n    \"custom id\": \"Custom Id (Facebook/Google Product Catalog)\",\n    \"custom image size\": \"Custom Image Size\",\n    \"custom limited qty per person text\": \"Custom Limited Qty Per Person Text\",\n    \"custom message displayed to blacklisted members during checkout\": \"Custom Message Displayed To Blacklisted Members During Checkout\",\n    \"custom message for additional free shipping\": \"Custom message for additional free shipping\",\n    \"custom message for quoted rate shipping\": \"Custom message for quoted rate shipping\",\n    \"custom pick up locations\": \"Custom Pick Up Locations\",\n    \"custom products display settings\": \"Custom Products Display Settings\",\n    \"custom range (monthly)\": \"Custom Range (Monthly)\",\n    \"custom website fonts\": \"Custom Website Fonts\",\n    \"custom width\": \"Custom width\",\n    \"custom worksheet\": \"Custom Worksheet\",\n    \"custom_webpage_content\": \"Use Custom Webpage Content\",\n    \"customer\": \"Customer\",\n    \"customer account\": \"Customer Account\",\n    \"customer activity\": \"Customer Activity\",\n    \"customer bank account number\": \"Customer Bank Account Number\",\n    \"customer comments\": \"Customer Comments\",\n    \"customer expected arrival date\": \"Customer Expected Arrival (PickUp) Date\",\n    \"customer expected dispatch date\": \"Customer Expected Dispatch (PickUp) Date\",\n    \"customer payment method\": \"Customer Payment Method\",\n    \"customer payment terms\": \"Customer Payment Terms\",\n    \"customer service\": \"Customer Service\",\n    \"customer statements\": \"Customer Statements\",\n    \"customer tags\": \"Customer Tags\",\n    \"customerService\": \"Customer Service\",\n    \"customerSettings\": \"Customer Settings\",\n    \"customer_export\": \"Contact\",\n    \"customization options\": \"Customization Options\",\n    \"customization prefix\": \"Prefix (Will be added to product name)\",\n    \"customization type\": \"Customization Type\",\n    \"customizations\": \"Customizations\",\n    \"customizations are disabled for mustAdd\": \"Customizations are disabled when item is automatically added to cart\",\n    \"customizations price behavior\": \"Customizations Price Behavior\",\n    \"customizations settings\": \"Customizations Settings\",\n    \"customize worksheet\": \"Customize Worksheet\",\n    \"daily\": \"Daily\",\n    \"daily necessities\": \"Daily Necessities\",\n    \"daily revenue\": \"Daily Revenue\",\n    \"danger editing message\": \"Editing may cause irreversable change in records. Are you sure you want to continue?\",\n    \"dark color\": \"Dark Color\",\n    \"darkColor\": \"Dark Color\",\n    \"dashboard\": \"Dashboard\",\n    \"data\": \"Data\",\n    \"data exceeds its size limit. cannot save\": \"data exceeds its size limit. Cannot save.\",\n    \"data feed\": \"Data feed\",\n    \"data out of date\": \"Data out of date\",\n    \"data range\": \"Data Range\",\n    \"data to export\": \"Data To Export\",\n    \"data was updated\": \"Data was Updated\",\n    \"dataType_date\": \"Date\",\n    \"dataType_email\": \"Email\",\n    \"dataType_mobile\": \"Mobile\",\n    \"dataType_number\": \"Number\",\n    \"dataType_telephone\": \"Telephone\",\n    \"dataType_text\": \"Text\",\n    \"date\": \"Date\",\n    \"date conflict\": \"Date conflict\",\n    \"date end\": \"Date End\",\n    \"date error\": \"Date Error\",\n    \"date is required\": \"Date is required on checkout\",\n    \"date period for overview\": \"Date Period for Overview\",\n    \"date period for search\": \"Date Period for Search\",\n    \"date range\": \"Date Range\",\n    \"date settings\": \"Date Settings\",\n    \"date start\": \"Date Start\",\n    \"date_ascending\": \"Date Oldest to Newest\",\n    \"date_descending\": \"Date Newest to Oldest\",\n    \"date_period\": \"Period\",\n    \"day\": \"Day\",\n    \"day 1\": \"Day 1\",\n    \"day 2\": \"Day 2\",\n    \"day 3\": \"Day 3\",\n    \"day 4\": \"Day 4\",\n    \"day 5\": \"Day 5\",\n    \"day 6\": \"Day 6\",\n    \"day 7\": \"Day 7\",\n    \"day of month\": \"Day Of Month\",\n    \"day of week\": \"Day\",\n    \"days\": \"Days\",\n    \"days after checkout\": \"Days after checkout\",\n    \"daysOld_0\": \"0\",\n    \"daysOld_1\": \"1\",\n    \"daysOld_2\": \"2\",\n    \"daysOld_3\": \"3\",\n    \"daysOld_4\": \"4\",\n    \"daysOld_5\": \"5\",\n    \"daysOld_6\": \"6\",\n    \"daysOld_7\": \"7+\",\n    \"debit\": \"Debit\",\n    \"debtors\": \"Debtors\",\n    \"declared amount\": \"Declared Amount\",\n    \"declared amount must be between {minAmount} and {maxAmount} per waybill\": \"Declared amount must be between {minAmount} and {maxAmount} per waybill\",\n    \"declared amount {beforeAmount} was over the limit and was capped to {maxAmount}\": \"Declared amount {beforeAmount} was over the limit and was capped to {maxAmount}\",\n    \"declared amount {beforeAmount} was under the limit and was raised to {minAmount}\": \"Declared amount {beforeAmount} was under the limit and was raised to {minAmount}\",\n    \"decrease\": \"Decrease\",\n    \"deduct points earned\": \"Deduct points earned\",\n    \"default\": \"Default\",\n    \"default campaigns review\": \"Default Campaigns Review\",\n    \"default email content\": \"Default Email Content\",\n    \"default facebook page\": \"Default Facebook Page\",\n    \"default flat shipping fee\": \"Flat Shipping Fee Default Settings\",\n    \"default for documents\": \"Default For Documents\",\n    \"default hct\": \"Default HCT Settings\",\n    \"default image\": \"Default image\",\n    \"default item tax\": \"Default Item Tax\",\n    \"default name\": \"Default Name\",\n    \"default payment method\": \"Default Payment Method\",\n    \"default payuni-seven-eleven\": \"PayUni 7-11 Default Settings\",\n    \"default pickup settings\": \"Default Pickup Settings\",\n    \"default settings\": \"Default Settings\",\n    \"default seven-eleven\": \"7-11 Default Settings\",\n    \"default shipping fee using zones\": \"Shipping Fee Using Zones Default Settings\",\n    \"default shipping settings\": \"Default Shipping Settings\",\n    \"default shop price filter\": \"Default Shop Price Filter\",\n    \"default status for when over sales limited qty\": \"Default Status For When Over Sales Limited Qty\",\n    \"default t-cat\": \"TCat Default Settings\",\n    \"default tax\": \"Default Tax\",\n    \"default tax on purchases for products\": \"Default Tax On Purchases For Products\",\n    \"default tax on purchases for services\": \"Default Tax On Purchases For Services\",\n    \"default tax on sales for products\": \"Default Tax On Sales For Products\",\n    \"default tax on sales for services\": \"Default Tax On Sales For Services\",\n    \"default tax rate\": \"Default Tax Rate\",\n    \"default transporter settings\": \"Default Transporter Settings\",\n    \"default value for allow seo for new shops\": \"Default value for Allow SEO for new shops\",\n    \"default weight unit\": \"Default Weight Unit\",\n    \"defaultCanceledEmailMessage\": \"Your order has been cancelled, the following is the information about canceling this order\",\n    \"defaultDispatchedEmailMessage\": \"Your order has been shipped for you today\",\n    \"defaultOrderedEmailMessage\": \"Thank you for your support and love, you have completed the order, the following is your order details\",\n    \"defaultRefundedEmailMessage\": \"Has been refunded, the following products have been refunded\",\n    \"defaultShopRecurringLastOrderEmailMessage\": \"This is the last order of your current recurring order. If you would like to buy again, please click on the link.\",\n    \"default_webpage_content_warning\": \"This page is automatically created by the system and uses the default content provided by the system.\",\n    \"defaults\": \"Defaults\",\n    \"defaults faqs\": \"Default FAQs\",\n    \"delete\": \"Delete\",\n    \"delete campaign\": \"Delete Campaign\",\n    \"delete_keyword\": \"DELETE\",\n    \"deleted\": \"Deleted\",\n    \"delivered\": \"Delivered\",\n    \"delivered qty\": \"Delivered Qty\",\n    \"deliveries\": \"Deliveries\",\n    \"delivery\": \"Delivery\",\n    \"delivery address\": \"Delivery Address\",\n    \"delivery date\": \"Delivery Date\",\n    \"delivery date is required\": \"Delivery Date is required on checkout\",\n    \"delivery date options\": \"Delivery Date Options\",\n    \"delivery date settings\": \"Delivery Date Settings\",\n    \"delivery dates settings\": \"Delivery Dates Settings\",\n    \"delivery max day description\": \"If You Choose Method Expected Arrival Date, The Latest Available Date For Customers Is : {descriptionValue}\",\n    \"delivery max days\": \"Max Selectable Expected Delivery Day(s) (Days After Order Date)\",\n    \"delivery min day description\": \"If You Choose Method Expected Arrival Date, Need {inputValue} Working Days, The Earliest Available Date For Customers Is : {descriptionValue}\",\n    \"delivery min days\": \"Days to prepare for dispatch (Days After Order Date)\",\n    \"delivery note\": \"Delivery Note\",\n    \"delivery note barcodes\": \"Delivery note barcodes\",\n    \"delivery note print format\": \"Print Delivery Note Print Format\",\n    \"delivery notes\": \"Delivery Notes\",\n    \"delivery time\": \"Delivery Time\",\n    \"delivery-settings\": \"Delivery Settings\",\n    \"deliveryAddress\": \"Delivery Address\",\n    \"deliveryTime\": \"Delivery Time\",\n    \"denied product tags\": \"Denied Product Tags\",\n    \"department\": \"Department\",\n    \"department name\": \"Department Name\",\n    \"departments\": \"Departments\",\n    \"description\": \"Description\",\n    \"description attachments\": \"Description Attachments\",\n    \"deselect all\": \"Deselect All\",\n    \"designated zone\": \"Designated Zone\",\n    \"desktop\": \"Desktop\",\n    \"detail\": \"Detail\",\n    \"detailIsEmpty\": \"Empty set details\",\n    \"detailLimitTypes_campaign\": \"campaign qty\",\n    \"detailLimitTypes_inventory\": \"inventory\",\n    \"detailType_address\": \"Address\",\n    \"detailType_email\": \"Email\",\n    \"detailType_note\": \"Note / Link\",\n    \"detailType_phone\": \"Phone / Fax / Mobile\",\n    \"detailed statement\": \"Detailed Statement\",\n    \"details\": \"Details\",\n    \"did not receive an activation email? resend activation email\": \"Did not receive an activation email? Resend activation email-\",\n    \"dietary supplement\": \"Dietary Supplement\",\n    \"differentChildLength\": \"Child items not found in database\",\n    \"differentChoiceLength\": \"Child items not found in database\",\n    \"dimensions\": \"Dimensions\",\n    \"dimensions_concat\": \"Dimensions (Length x Width x Height)\",\n    \"dimensions_height\": \"H\",\n    \"dimensions_length\": \"L\",\n    \"dimensions_unit\": \"Unit (cm/mm)\",\n    \"dimensions_width\": \"W\",\n    \"disable multiple languages\": \"Disable Multiple Languages\",\n    \"disabled\": \"Disabled\",\n    \"disallow notes on checkout\": \"Disallow Notes on Checkout\",\n    \"disallow shopping\": \"Disallow Shopping\",\n    \"disallow subscribe to newsletter\": \"Disallow Subscribe to Newsletter (Receive Latest News & Offers)\",\n    \"disallow use different delivery info\": \"Disallow Use Different Delivery Info\",\n    \"disallowed arrival days\": \"Set Disallowed Arrival Days\",\n    \"disallowed dispatch days\": \"Set Disallowed Dispatch Days\",\n    \"disallowed prepare days\": \"Set Disallowed Prepare Days\",\n    \"disallowed shipping zones\": \"Disallowed Shipping Zones\",\n    \"disc\": \"Disc\",\n    \"discInclTotal\": \"Inclusive Discount\",\n    \"discount\": \"Discount\",\n    \"discount %\": \"Discount %\",\n    \"discount amount\": \"Discount Amount\",\n    \"discount amount exceeds allowed\": \"Discount amount exceeds allowed\",\n    \"discount for on sale items\": \"Disount For On Sale Items\",\n    \"discount rate\": \"Discount %\",\n    \"discount rate for on sale items\": \"Disount Percentage For On Sale Items\",\n    \"discount rate on sale\": \"Discount Rate On Sale\",\n    \"discount total\": \"Discount Total\",\n    \"discount type\": \"Discount Type\",\n    \"discount when buy items\": \"discount when buy items\",\n    \"discount when items value\": \"discount when items value\",\n    \"discounts\": \"Discounts\",\n    \"dispatch\": \"Dispatch\",\n    \"dispatch (can create and update)\": \"Dispatch (Can create and update Sales Invoices)\",\n    \"dispatch (view only)\": \"Dispatch (View Only)\",\n    \"dispatch all\": \"Dispatch All\",\n    \"dispatch date\": \"Dispatch Date\",\n    \"dispatch date end\": \"Dispatch Date End\",\n    \"dispatch date start\": \"Dispatch Date Start\",\n    \"dispatch dates settings\": \"Dispatch Dates Settings\",\n    \"dispatch list number of records\": \"Dispatch List Number Of Records\",\n    \"dispatch list sort by\": \"Dispatch List Sort by\",\n    \"dispatch management settings\": \"Dispatch Management Settings\",\n    \"dispatch max day description\": \"If You Choose Method Expected Dispatch Date, The Latest Available Date For Customers Is : {moreDescriptionValue}\",\n    \"dispatch max days\": \"Max Selectable Expected Disptach Day(s) (Days After Order Date)\",\n    \"dispatch min day description\": \"If You Choose Method Expected Dispatch Date, Need {inputValue} Working Days, The Earliest Available Date For Customers Is : {moreDescriptionValue}\",\n    \"dispatch min days\": \"Min Selectable Expected Disptach Day(s) (Days After Order Date)\",\n    \"dispatch notification\": \"Dispatch Notification\",\n    \"dispatch process for new orders\": \"Dispatch process for new orders\",\n    \"dispatch process shortcut\": \"Dispatch Process Shortcut\",\n    \"dispatch qty\": \"Dispatch Qty\",\n    \"dispatch status\": \"Dispatch Status\",\n    \"dispatch summary behavior\": \"Dispatch Summary Behavior\",\n    \"dispatch today\": \"Dispatch Today\",\n    \"dispatch-settings\": \"Dispatch Settings\",\n    \"dispatched\": \"Dispatched\",\n    \"dispatched by date\": \"Dispatched By Date\",\n    \"display\": \"Display\",\n    \"display advanced template\": \"Advanced Template\",\n    \"display basic web page\": \"Basic Web Page and Products\",\n    \"display blogs per row\": \"Display blogs per row\",\n    \"display blogs tags as filters\": \"Display blogs tags as filters\",\n    \"display by\": \"Display By\",\n    \"display in shop\": \"Display in Shop\",\n    \"display items per row\": \"Display items per row\",\n    \"display news per row\": \"Display news per row\",\n    \"display news tags\": \"Display news tags as filters\",\n    \"display order\": \"Display Order\",\n    \"display products in shop\": \"Display Products In Shop\",\n    \"display style\": \"Display Style\",\n    \"display tag\": \"Image Tag\",\n    \"display tags\": \"Image Tags\",\n    \"display wizard\": \"Display Wizard\",\n    \"display_by_waybills_statuses\": \"Display\",\n    \"display_faq\": \"Display\",\n    \"district\": \"District\",\n    \"districts\": \"Districts\",\n    \"dividends\": \"Dividends\",\n    \"do not use inventory qty\": \"Override: Don't Use Inventory Qty\",\n    \"doc\": \"Doc\",\n    \"doc-pending\": \"Pending Orders\",\n    \"docNo\": \"Doc No.\",\n    \"document\": \"Document\",\n    \"document delivery dates\": \"Document Delivery Dates\",\n    \"document delivery notes\": \"Document Delivery Notes\",\n    \"document number\": \"Document Number\",\n    \"document print settings\": \"Document Print Settings\",\n    \"document settings\": \"Document Settings\",\n    \"document_row_action_buttons\": \"Document Row Action Buttons\",\n    \"documentation\": \"Documentation\",\n    \"documentationId\": \"documentationId\",\n    \"documents\": \"Documents\",\n    \"documents purchases\": \"Document Purchases\",\n    \"documents sales\": \"Documents Sales\",\n    \"documents without waybill were skipped\": \"Documents without a waybill were skipped\",\n    \"documents-public\": \"Customer Service Messages\",\n    \"does not contain required value\": \"does not contain required value\",\n    \"domain\": \"Domain\",\n    \"domain connected\": \"Domain Connected\",\n    \"domain not connected\": \"Domain Not Connected\",\n    \"domain_validation_step1\": \"<ol class='spaced-list'> <li>In a second browser window or tab, sign in to your domain host account. For details, see&nbsp;<a href='/a/answer/48323' rel='noopener'>Identify your domain&nbsp;host</a>.</li> <li>Go to your domain’s DNS records. The page might be called something like <strong>DNS Management</strong>, <strong>Name</strong> <strong>Server Management</strong>, <strong>Control Panel</strong>, or <strong>Advanced Settings</strong>. </li> <li>Select the option to add a new record.</li> </ol>\",\n    \"domain_validation_step1_label\": \"Step 1: Go to your domain's DNS records\",\n    \"domain_validation_step2\": \"<ol class='spaced-list'> <li>For the record type, select <strong>TXT</strong>.</li> <li>In the <strong>Name/Host/Alias</strong> field, enter <strong>@</strong> or leave it blank.<br> Your host might require you&nbsp;to enter your domain, which looks like <em>example.com</em>,&nbsp;into this field. Your other DNS records might indicate what you should enter. </li> <li>In the <strong>Time to Live (TTL)</strong> field, enter <strong>86400</strong> or leave the default.</li> <li>In the <strong>Value/Answer/Destination</strong> field, paste the verification record you copied in step 1.</li> <li>Save the record.</li> </ol>\",\n    \"domain_validation_step2_label\": \"Step 2: Add the verification record to your domain host\",\n    \"domain_validation_step3_label\": \"Step 3: Come back and verify\",\n    \"done\": \"Done\",\n    \"dont have an account? try control pod for free\": \"Don't have an account? Try Control Pod for FREE!\",\n    \"dot settings\": \"Dot settings\",\n    \"dots active color\": \"Dots Active color\",\n    \"dots color\": \"Dots color\",\n    \"dots position\": \"Dots Position\",\n    \"dots settings\": \"Dots Settings\",\n    \"dots size\": \"Dots size\",\n    \"dots style\": \"Dots Style\",\n    \"double click to edit\": \"Double Click To Edit\",\n    \"double-row\": \"Double Row\",\n    \"download\": \"Download\",\n    \"download qr code\": \"Download QR Code\",\n    \"draft\": \"Draft\",\n    \"drafts\": \"Drafts\",\n    \"dropdown\": \"Dropdown\",\n    \"due\": \"Due\",\n    \"due date\": \"Due Date\",\n    \"duplicate\": \"Duplicate\",\n    \"duplicate addresses\": \"Duplicate Addresses\",\n    \"duplicate block\": \"Duplicate Block\",\n    \"duplicate document\": \"Copy\",\n    \"duplicate product\": \"Duplicate Product\",\n    \"duplicate value\": \"Duplicate Value\",\n    \"duplicate waybills\": \"Duplicate Waybills\",\n    \"duplicated\": \"Duplicated\",\n    \"duplicated contact data\": \"Duplicated Contact Data\",\n    \"duration\": \"Duration\",\n    \"eInvoice\": \"E-Invoice\",\n    \"eInvoicePrinterTerminal\": \"E-Invoice Printer Terminal\",\n    \"each\": \"Each\",\n    \"earliest\": \"Earliest\",\n    \"earliest delivery date\": \"The Earliest Available Date On Checkout Page\",\n    \"ecPay\": \"EC Pay\",\n    \"ecPay_creditCard\": \"Enable EcPay Credit Card\",\n    \"ecPay_eInvoice\": \"EC Pay: E-Invoice\",\n    \"ecPay_hash_iv\": \"Hash IV\",\n    \"ecPay_hash_key\": \"Hash Key\",\n    \"ecPay_installments\": \"EC Pay: Installments\",\n    \"ecPay_merchant\": \"Merchant\",\n    \"ecPay_merchant_id\": \"Merchant ID\",\n    \"ecPay_payments\": \"綠界科技 EcPay Payments\",\n    \"ecPay_virtualAccount\": \"VirtualAccount Enable\",\n    \"edit\": \"Edit\",\n    \"edit campaign detail\": \"Edit Campaign Detail\",\n    \"edit convenience store address\": \"Edit Convenience Store Address (DANGER)\",\n    \"edit display order\": \"Edit Display Order\",\n    \"edit functions\": \"Edit Functions\",\n    \"edit product\": \"Edit Product\",\n    \"edit sales invoice\": \"Edit Sales Invoice\",\n    \"edit sales order\": \"Edit Sales Order\",\n    \"edit shop price\": \"Edit Shop Price\",\n    \"edit status\": \"Edit status\",\n    \"edit store location address\": \"Edit Store Location Address (DANGER)\",\n    \"edit template\": \"Edit Template\",\n    \"edit theme colors and styles\": \"Edit Theme Colors and Styles\",\n    \"einvoice printer terminal\": \"E-Invoice Printer Terminal\",\n    \"email\": \"Email\",\n    \"email attachments\": \"Email Attachments\",\n    \"email campaign\": \"Email Campaign\",\n    \"email campaigns\": \"Email Campaigns\",\n    \"email content behavior\": \"Email Content Behavior\",\n    \"email delivery note\": \"Email Delivery Note\",\n    \"email document\": \"Email Document\",\n    \"email header\": \"Email Header\",\n    \"email message\": \"Email Message\",\n    \"email message for recipient\": \"Email Message For Recipient\",\n    \"email message for referrer\": \"Email Message For Referrer\",\n    \"email message to buy more\": \"Email Message For Last Recurring Order\",\n    \"email not sent\": \"Email not sent\",\n    \"email payment reminder\": \"Email Payment Reminder\",\n    \"email placeholder\": \"Email Placeholder\",\n    \"email sent to\": \"Email sent to\",\n    \"email settings\": \"Email Settings\",\n    \"email signature\": \"Email Signature\",\n    \"email subject\": \"Email Subject\",\n    \"email subject for recipient\": \"Email Subject For Recipient\",\n    \"email subject for referrer\": \"Email Subject For Referrer\",\n    \"email_canceled_order_default_subject\": \"Your order has been canceled\",\n    \"email_dispatched_default_subject\": \"Dispatch Notification\",\n    \"email_event_delivered\": \"Delivered\",\n    \"email_event_failed\": \"Failed\",\n    \"email_event_opened\": \"Opened\",\n    \"email_payment_reminder_subject\": \"Payment Reminder\",\n    \"email_placeholder_desc\": \"Copy and paste the placeholder in your text to where you want to display\",\n    \"email_queued\": \"Queued\",\n    \"email_refunded_order_default_subject\": \"Your order has been refunded\",\n    \"email_test_to_address\": \"Test Email Address\",\n    \"email_test_to_name\": \"Test Contact Name\",\n    \"emails\": \"Emails\",\n    \"emails to send\": \"Emails to send\",\n    \"emails->all activity\": \"Emails > all activity\",\n    \"emails->email campaign\": \"Emails > Email Campaign\",\n    \"employee\": \"Employee\",\n    \"empty\": \"Empty\",\n    \"empty shipping payment methods warning\": \"Will use shop payment methods if none selected\",\n    \"emptyChoices\": \"Child items not found in database\",\n    \"emptySetDetails\": \"Child items not found in database\",\n    \"emptyVariantChildren\": \"Child items not found in database\",\n    \"enable\": \"Enable\",\n    \"enable allow printing of waybills on any dispatch process\": \"Enable Allow Printing of Waybills On Any Dispatch Process\",\n    \"enable custom website fonts\": \"Enable Custom Website Fonts\",\n    \"enable customizations\": \"Enable Customizations\",\n    \"enable facebook chat\": \"Enable Facebook Chat\",\n    \"enable facebook chat by default\": \"Enable Facebook Chat By Default\",\n    \"enable facebook pixel conversion api\": \"Enable Facebook Pixel Conversion API\",\n    \"enable installments by default\": \"Enable installments by default\",\n    \"enable line chat\": \"Enable Line Chat\",\n    \"enable line chat by default\": \"Enable Line Chat By Default\",\n    \"enable link\": \"Enable Link\",\n    \"enable recurring schedules\": \"Enable Recurring Schedules\",\n    \"enable seven eleven pickup reminder\": \"Enable Seven-Eleven Pickup Reminder\",\n    \"enable shop price filter\": \"Enable Price Filter\",\n    \"enable shop.com service\": \"Enable Shop.com service\",\n    \"enabled\": \"Enabled\",\n    \"encountered unknown error\": \"We encountered an error, it is recommended that you save all your work and refresh your browser\",\n    \"end\": \"End\",\n    \"end date\": \"End Date\",\n    \"end of invoice month\": \"End Of Invoice Month\",\n    \"end of month\": \"End Of Month\",\n    \"end on\": \"End On\",\n    \"end setup\": \"End Setup\",\n    \"end time\": \"End Time\",\n    \"enquiry\": \"Enquiry\",\n    \"enter duration (sec)\": \"Enter Duration (sec)\",\n    \"enter fullscreen\": \"Enter Fullscreen\",\n    \"enter pos mode\": \"Enter POS Mode\",\n    \"entered amount exceeds the outstanding amount\": \"Entered amount exceeds the outstanding amount\",\n    \"equals\": \"Equals\",\n    \"equity\": \"Equity\",\n    \"error fetching barcode\": \"Error Fetching Barcode\",\n    \"error message\": \"Error Message\",\n    \"error occurred\": \"Error Occurred\",\n    \"error occurred please try again later\": \"Error occurred. Please try again later.\",\n    \"error syncing. could not sync\": \"Error syncing. Could not sync\",\n    \"error while generating waybill numbers\": \"Error while generating waybill numbers\",\n    \"error_ccExpiry\": \"Credit card expiry\",\n    \"error_ccHolder\": \"Card Holder English Name: Please enter name as it appears on the credit card\",\n    \"error_ccNumber\": \"Credit card number\",\n    \"error_ccSecureCode\": \"Invalid credit Card (CCV)\",\n    \"errors\": \"Errors\",\n    \"estimate delivery date\": \"Estimate Delivery Date\",\n    \"estimated commissions\": \"Estimated Commissions\",\n    \"estimated commissions percentage\": \"Estimated Commissions Percentage\",\n    \"estimated delivery date\": \"Estimated Delivery Date\",\n    \"estimated earnings\": \"Estimated earnings\",\n    \"estimated total commissions\": \"Estimated Total Commissions ({percentage}%)\",\n    \"esun\": \"E Sun\",\n    \"event\": \"Event\",\n    \"every day\": \"Every Day\",\n    \"everytime you print it will generate a new Waybill number. are you sure you want to print?\": \"Everytime you print it will generate a new Waybill number. Are you sure you want to print?\",\n    \"exact date\": \"Exact Date\",\n    \"example\": \"Example\",\n    \"exclude all stores\": \"Exclude All Stores\",\n    \"exclude pos\": \"Exclude POS\",\n    \"exclude shipping from sales history\": \"Exclude shipping from sales history\",\n    \"exclude specific dates\": \"Exclude Specific Date(s)(Click on the date to add to excluded list, the selected date(s) will be grey like; if want to remove the date, just click on the date again)\",\n    \"excludeFreeShipping\": \"Exclude Free Shipping\",\n    \"excluded dates\": \"Excluded Dates\",\n    \"excluding shipping fee\": \"Excluding Shipping Fee\",\n    \"excluding tax discount\": \"Excluding Tax Discount\",\n    \"exclusive amount\": \"Excl. Amount\",\n    \"exclusive base cost\": \"Exclusive Base Cost\",\n    \"exclusive discount\": \"Exclusive Discount\",\n    \"exclusive price\": \"Excl. Price\",\n    \"exclusive selling price\": \"Excl. Selling Price\",\n    \"exclusive total\": \"Exclusive Total\",\n    \"exclusive total after discount\": \"Exclusive Total After Discount\",\n    \"existing\": \"Existing\",\n    \"exit fullscreen\": \"Exit Fullscreen\",\n    \"expand\": \"Expand\",\n    \"expand sub menus\": \"Expand Sub Menus\",\n    \"expand to show other aliases\": \"Expand To Show Other Aliases\",\n    \"expected arrival date\": \"Expected Arrival Date\",\n    \"expected arrival date subtitle\": \"Checkout Page Expected Arrival Date Subtitle\",\n    \"expected close date\": \"Expected Close Date\",\n    \"expected dispatch date\": \"Expected Dispatch Date\",\n    \"expected prepare date\": \"Expected Prepare Date\",\n    \"expenses\": \"Expenses\",\n    \"expire after days\": \"Expire after days\",\n    \"expired\": \"Expired\",\n    \"expiring reward points notification\": \"Expiring Reward Points Notification\",\n    \"expiring reward points notification email\": \"Expiring Reward Points Notification Email\",\n    \"expiry end at\": \"Expiry end at\",\n    \"expiry start from\": \"Expiry start from\",\n    \"export\": \"Export\",\n    \"export HCT data\": \"Export HCT Data\",\n    \"export all\": \"Export All\",\n    \"export all data\": \"Export All Data\",\n    \"export all search results\": \"Export All Search Results\",\n    \"export by\": \"Export By\",\n    \"export campaign reports\": \"Export Campaign Reports\",\n    \"export contacts\": \"Export Contacts\",\n    \"export count\": \"Export Count\",\n    \"export data\": \"Export Data\",\n    \"export data and update status\": \"Export Data & Update Status\",\n    \"export dispatched data\": \"Export Dispatch Data\",\n    \"export file format\": \"Export File Format\",\n    \"export invoices data\": \"Export Invoices Data\",\n    \"export items by payment status\": \"Export items by payment status\",\n    \"export limited qtys\": \"Export Limited Qtys\",\n    \"export method\": \"Export Method\",\n    \"export order\": \"Export Order\",\n    \"export order details using specified order\": \"Export Order Details Using Specified Order\",\n    \"export products\": \"Export Products\",\n    \"export products to set prices\": \"Export Products To Set Prices\",\n    \"export type\": \"Export Type\",\n    \"export_all_transporters\": \"All Shipping Data\",\n    \"export_eInvoices_all\": \"All E-Invoices\",\n    \"export_eInvoices_cancelled\": \"Unsuccessful E-Invoices\",\n    \"export_eInvoices_details\": \"Export E-Invoices & Details\",\n    \"export_eInvoices_successful\": \"Successful E-Invoices\",\n    \"export_orders_details\": \"Order Product Details\",\n    \"export_orders_info\": \"Orders\",\n    \"export_orders_per_row\": \"By Item Rows\",\n    \"export_orders_total\": \"All Orders (1)\",\n    \"export_orders_total_two\": \"All Orders (2)\",\n    \"export_paid\": \"Paid\",\n    \"export_paid-available\": \"Paid (Available)\",\n    \"export_paid-preOrder\": \"Paid (Pre-Order)\",\n    \"export_paid-total\": \"Paid (Available + Pre-Order)\",\n    \"export_paid_export_orders_info\": \"Paid-Orders\",\n    \"export_paid_export_transporter\": \"Paid-Shipping data\",\n    \"export_pay_on_delivery\": \"Pay On Delivery\",\n    \"export_pay_on_delivery_export_orders_info\": \"Pay On Delivery-Orders\",\n    \"export_pay_on_delivery_export_transporter\": \"Pay On Delivery-Shipping Data\",\n    \"export_preOrderLimitedQty\": \"Pre Order Qty\",\n    \"export_preOrderLimitedQty_remaining\": \"Remaining Pre Order Qty\",\n    \"export_salesLimitedQty\": \"Sales Limited Qty\",\n    \"export_salesLimitedQty_remaining\": \"Remaining Sales Limited Qty\",\n    \"export_total-available\": \"Total (Available)\",\n    \"export_total-preOrder\": \"Total (Pre-Order)\",\n    \"export_total-total\": \"Total (Available + Pre-Order)\",\n    \"export_transporter\": \"Shipping Data\",\n    \"export_unpaid-available\": \"Not Paid (Available)\",\n    \"export_unpaid-preOrder\": \"Not Paid (Pre-Order)\",\n    \"export_unpaid-total\": \"Not Paid (Available + Pre-Order)\",\n    \"extensions\": \"Extensions\",\n    \"external\": \"External\",\n    \"facebook\": \"Facebook\",\n    \"facebook chat\": \"Facebook Chat\",\n    \"facebook login\": \"Facebook Login\",\n    \"facebook login short intro\": \"Automatically enable Facebook messenger chat plugin on your website. Once you login, select the page you would like to use for your website's customer service chat.\",\n    \"facebook page\": \"Facebook Page\",\n    \"facebook page id\": \"Facebook Page Id\",\n    \"facebook page inbox\": \"FACEBOOK PAGE INBOX\",\n    \"facebook page name\": \"Facebook Page Name\",\n    \"facebook page url\": \"Facebook Page Url\",\n    \"facebook pixel\": \"Facebook Pixel\",\n    \"facebook plugin\": \"Facebook Plugin\",\n    \"facebook store\": \"Facebook Store\",\n    \"fadeIn\": \"Fade In\",\n    \"fadeInDown\": \"Fade In Down\",\n    \"failed to generate api access token\": \"Failed to generate API Token\",\n    \"failed to update cache\": \"Failed to Update Cache\",\n    \"family mart only provides room temperature delivery\": \"* Family Mart only provides room temperature delivery\",\n    \"familyMart\": \"Family mart\",\n    \"faqs\": \"FAQs\",\n    \"faqs display\": \"FAQs Display\",\n    \"faqs for product\": \"FAQs For Product\",\n    \"faqs for shop\": \"FAQs For Shop\",\n    \"faqs-settings\": \"FAQs Settings\",\n    \"fast\": \"Fast\",\n    \"favicon\": \"Favicon\",\n    \"favorite\": \"Favorite\",\n    \"favorites\": \"Favorites\",\n    \"fax\": \"Fax\",\n    \"features\": \"Features\",\n    \"fees\": \"Fees\",\n    \"female\": \"Female\",\n    \"fetch waybills\": \"fetch waybills\",\n    \"fetching data\": \"Fetching Data\",\n    \"field\": \"Field\",\n    \"file is too large\": \"File is too Large\",\n    \"file is too small\": \"File is too Small\",\n    \"file name\": \"File Name\",\n    \"files\": \"Files\",\n    \"files manager\": \"Files Manager\",\n    \"files_manager_tags\": \"Tags\",\n    \"fill above\": \"Fill Blank Above\",\n    \"fill all\": \"Fill All Blanks\",\n    \"fill below\": \"Fill Blank Below\",\n    \"filters\": \"Filters\",\n    \"final\": \"Final\",\n    \"first bank\": \"First Bank\",\n    \"first name\": \"First Name\",\n    \"first waybill number\": \"First Waybill Number\",\n    \"fiscal\": \"Fiscal\",\n    \"fit\": \"Scale to Fit\",\n    \"flash\": \"Flash\",\n    \"flat fee\": \"Flat Fee\",\n    \"flat shipping fee\": \"Flat Shipping Fee\",\n    \"flip\": \"Flip\",\n    \"flipInX\": \"Flip In X\",\n    \"flipInY\": \"Flip In Y\",\n    \"floor\": \"Floor\",\n    \"flow_allow_custom_choice\": \"Allow Custom Text Reply\",\n    \"flow_chat_message\": \"Chat Message\",\n    \"flow_collect_user_information_and_play_a_game\": \"Collect user information and then play a game\",\n    \"flow_collect_user_information_generate_and_email_promo_code\": \"Collect user information, generate and email promo code\",\n    \"flow_event\": \"Event\",\n    \"flow_event_allow_backdating\": \"Allow Backdating\",\n    \"flow_event_display\": \"Display\",\n    \"flow_event_greeting\": \"Greeting\",\n    \"flow_event_has_criterias\": \"Has criterias\",\n    \"flow_form\": \"Form\",\n    \"flow_form_steps\": \"Form Steps\",\n    \"flow_game_unsuccessful_message\": \"Game Unsuccessful Message\",\n    \"flow_generate_promo_code\": \"Generate Promo Code\",\n    \"flow_limits\": \"Limits\",\n    \"flow_message\": \"Message\",\n    \"flow_payload_value\": \"Value\",\n    \"flow_popup\": \"Chat Message Popup\",\n    \"flow_popup_middle\": \"Popup\",\n    \"flow_question\": \"Question\",\n    \"flow_reply\": \"Question & Reply\",\n    \"flow_reply_choices\": \"Multiple choice\",\n    \"flow_scratch_card\": \"Scratch Card\",\n    \"flow_scratch_card_background\": \"Scratch Card Background\",\n    \"flow_scratch_card_background_color\": \"Scratch Card Background Color\",\n    \"flow_scratch_card_background_image\": \"Scratch Card Background Image (4:3 ratio)\",\n    \"flow_scratch_card_inner_background_image\": \"Scratch Card Inner Background Image (4:3 ratio)\",\n    \"flow_scratch_card_inner_text_color\": \"Scratch Card Inner Text Color\",\n    \"flow_scratch_card_text\": \"Scratch Card Text\",\n    \"flow_scratch_card_text_color\": \"Scratch Card Text Color\",\n    \"flow_scrolling_message\": \"Scrolling Message\",\n    \"flow_scrolling_message_link\": \"Scrolling Message Link\",\n    \"flow_scrolling_message_timer\": \"Scrolling Message Timer(Unit:sec, please set a number between 1 to 20)\",\n    \"flow_steps\": \"Steps\",\n    \"flow_wheel_of_fortune\": \"Wheel of Fortune\",\n    \"flows\": \"Flows\",\n    \"flows-scratchCardImage\": \"Scratch Card Image\",\n    \"flows-scratchCardImageLose\": \"Scratch Card Image (Lose)\",\n    \"flows-scratchCardImageWin\": \"Scratch Card Image (Win)\",\n    \"font alignment\": \"Font alignment\",\n    \"font alignment for blogs and news\": \"Font Alignment for Blogs and News\",\n    \"font alignment for blogs and news title\": \"Font Alignment for Blogs and News Title\",\n    \"font color\": \"Font color\",\n    \"font family\": \"Font Family\",\n    \"font family for blogs and news\": \"Font Family for Blogs and News\",\n    \"font family only for title\": \"Font Family only for Title\",\n    \"font settings\": \"Font Settings\",\n    \"font size\": \"Font Size\",\n    \"font size for blogs and news\": \"Font Size for Blogs and News\",\n    \"font size for product name\": \"Font Size for product name\",\n    \"font style\": \"Font Style\",\n    \"font weight for blogs and news title\": \"Font Weight for Blogs and News Title\",\n    \"font_style_bold\": \"Bold\",\n    \"font_style_italic\": \"Italic\",\n    \"font_style_underline\": \"Underline\",\n    \"font_weight_bold\": \"Bold\",\n    \"font_weight_normal\": \"Normal\",\n    \"footer\": \"Footer\",\n    \"for documents\": \"For Documents\",\n    \"force update\": \"force update\",\n    \"force user to update to current version\": \"force user to update to current version\",\n    \"forgot your password\": \"Forgot your Password?\",\n    \"form title\": \"Form Title\",\n    \"fourByThree\": \"4x3\",\n    \"free\": \"Free\",\n    \"free shipping condition\": \"Free Shipping Condition\",\n    \"free shipping for orders greater and equal to\": \"Free Shipping For Orders Greater And Equal To\",\n    \"free_shipping_any\": \"When match any conditions\",\n    \"free_shipping_none\": \"None\",\n    \"free_shipping_only\": \"When match all conditions\",\n    \"frequently asked questions\": \"Frequently Asked Questions\",\n    \"friday\": \"Friday\",\n    \"friday opening hours\": \"Friday Opening Hours\",\n    \"from\": \"From\",\n    \"from beginning\": \"From Beginning\",\n    \"from day of order\": \"From day of Order\",\n    \"from email address\": \"From Email Address\",\n    \"from email name\": \"From Email Name\",\n    \"from end of invoice month\": \"From End Of Invoice Month\",\n    \"from invoice date\": \"From Invoice Date\",\n    \"from name\": \"From Name\",\n    \"from now\": \"From Now\",\n    \"from now on only persons with the latest code will be linked\": \"From now on only persons with the latest code will be linked\",\n    \"from person\": \"From Person\",\n    \"frozen\": \"Frozen\",\n    \"ftp password\": \"FTP Password\",\n    \"ftp user\": \"FTP User\",\n    \"fubon\": \"Fubon\",\n    \"full width\": \"Full width\",\n    \"full width video\": \"Full Width Video\",\n    \"full-width-image\": \"Full Width Image\",\n    \"fullWidth\": \"Full Width\",\n    \"g\": \"g\",\n    \"gender\": \"Gender\",\n    \"general\": \"General\",\n    \"general food\": \"General Food\",\n    \"generate\": \"Generate\",\n    \"generate api access token\": \"Generate API Token\",\n    \"generate new waybills\": \"Generate New Waybills\",\n    \"generate new waybills and print\": \"Generate new waybills and print\",\n    \"generate password\": \"Generate Password\",\n    \"generate qr code ticket\": \"Generate QR Code Ticket\",\n    \"generate sales invoice data\": \"Generate Sales Invoice Data\",\n    \"generate settings\": \"Generate Settings\",\n    \"generate total qty per row\": \"Generate total qty per row\",\n    \"generate waybills\": \"Generate Waybills\",\n    \"gjs-Attachment\": \"Attachment\",\n    \"gjs-Background\": \"Background\",\n    \"gjs-Background Color\": \"Background Color\",\n    \"gjs-Blur\": \"Blur\",\n    \"gjs-Border\": \"Border\",\n    \"gjs-Border Color\": \"Border Color\",\n    \"gjs-Border Radius\": \"Border Radius\",\n    \"gjs-Border Style\": \"Border Style\",\n    \"gjs-Border Width\": \"Border Width\",\n    \"gjs-Bottom\": \"Bottom\",\n    \"gjs-Box Shadow\": \"Box Shadow\",\n    \"gjs-Center\": \"Center\",\n    \"gjs-Color\": \"Color\",\n    \"gjs-Dimension\": \"Dimension\",\n    \"gjs-Font Family\": \"Font Family\",\n    \"gjs-Font Size\": \"Font Size\",\n    \"gjs-Height\": \"Height\",\n    \"gjs-Image\": \"Image\",\n    \"gjs-Images\": \"Images\",\n    \"gjs-Insert your text here\": \"Insert your text here\",\n    \"gjs-Inside\": \"Inside\",\n    \"gjs-Justify\": \"Justify\",\n    \"gjs-Layer 1\": \"Layer 1\",\n    \"gjs-Left\": \"Left\",\n    \"gjs-Line-height\": \"Line Height\",\n    \"gjs-Margin\": \"Margin\",\n    \"gjs-Max-width\": \"Max width\",\n    \"gjs-Min-height\": \"Min height\",\n    \"gjs-Opacity\": \"Opacity\",\n    \"gjs-Outside\": \"Outside\",\n    \"gjs-Padding\": \"Padding\",\n    \"gjs-Position\": \"Position\",\n    \"gjs-Repeat\": \"Repeat\",\n    \"gjs-Repeat-x\": \"Repeat-x\",\n    \"gjs-Repeat-y\": \"Repeat-y\",\n    \"gjs-Right\": \"Right\",\n    \"gjs-Shadow type\": \"Shadow type\",\n    \"gjs-Size\": \"Size\",\n    \"gjs-Spread\": \"Spread\",\n    \"gjs-Style\": \"Style\",\n    \"gjs-Text align\": \"Text align\",\n    \"gjs-Top\": \"Top\",\n    \"gjs-Width\": \"Width\",\n    \"gjs-X position\": \"X position\",\n    \"gjs-Y position\": \"Y position\",\n    \"gjs-arrows-background-hidden\": \"Arrows Background Hidden\",\n    \"gjs-arrows-color\": \"Arrows color\",\n    \"gjs-arrows-display\": \"Arrows Display\",\n    \"gjs-arrows-position\": \"Arrows Position\",\n    \"gjs-arrows-size\": \"Arrows size\",\n    \"gjs-auto\": \"auto\",\n    \"gjs-autoplay\": \"Autoplay\",\n    \"gjs-autoplay-delay\": \"Autoplay Delay\",\n    \"gjs-box-shadow-color\": \"Color\",\n    \"gjs-center bottom\": \"center bottom\",\n    \"gjs-center center\": \"center center\",\n    \"gjs-center top\": \"center top\",\n    \"gjs-contain\": \"contain\",\n    \"gjs-cover\": \"cover\",\n    \"gjs-dashed\": \"dashed\",\n    \"gjs-default-sliders-status\": \"Default Sliders Status\",\n    \"gjs-dots-active-color\": \"Dots Active color\",\n    \"gjs-dots-background-hidden\": \"Dots Background Hidden\",\n    \"gjs-dots-color\": \"Dots color\",\n    \"gjs-dots-display\": \"Dots Display\",\n    \"gjs-dots-position\": \"Dots Position\",\n    \"gjs-dots-size\": \"Dots size\",\n    \"gjs-dots-style\": \"Dots Style\",\n    \"gjs-dots-style-dot\": \"Dots\",\n    \"gjs-dots-style-line\": \"Lines\",\n    \"gjs-dotted\": \"dotted\",\n    \"gjs-double\": \"double\",\n    \"gjs-fix-visible-items\": \"Fix Visible Items\",\n    \"gjs-fixed\": \"fixed\",\n    \"gjs-hidden\": \"Hidden\",\n    \"gjs-infinite\": \"Infinite\",\n    \"gjs-inside\": \"Inside\",\n    \"gjs-left bottom\": \"left bottom\",\n    \"gjs-left center\": \"left center\",\n    \"gjs-left top\": \"left top\",\n    \"gjs-local\": \"local\",\n    \"gjs-no-repeat\": \"non-Repeat\",\n    \"gjs-non-Repeat\": \"non-Repeat\",\n    \"gjs-none\": \"none\",\n    \"gjs-outside\": \"Outside\",\n    \"gjs-re-index\": \"Re-Index\",\n    \"gjs-repeat\": \"Repeat\",\n    \"gjs-repeat-x\": \"Repeat-x\",\n    \"gjs-repeat-y\": \"Repeat-y\",\n    \"gjs-rewind\": \"Rewind\",\n    \"gjs-rewind-speed\": \"Rewind speed\",\n    \"gjs-right bottom\": \"right bottom\",\n    \"gjs-right center\": \"right center\",\n    \"gjs-right top\": \"right top\",\n    \"gjs-schedules\": \"Schedules\",\n    \"gjs-scroll\": \"scroll\",\n    \"gjs-shadow-type\": \"Shadow type\",\n    \"gjs-show-bigordr-story\": \"Show story\",\n    \"gjs-slide-speed\": \"Slide speed\",\n    \"gjs-slides-per-page\": \"Slides per page\",\n    \"gjs-slides-to-scroll\": \"Slides to scroll\",\n    \"gjs-smooth-scroll\": \"Smooth Scroll\",\n    \"gjs-solid\": \"solid\",\n    \"gjs-status-active\": \"Active\",\n    \"gjs-status-inactive\": \"Inactive\",\n    \"gjs-timing\": \"Timing\",\n    \"gjs-title\": \"title\",\n    \"gjs-total-items\": \"Total items\",\n    \"gjs-visible\": \"Visible\",\n    \"gjs_landscape\": \"Landscape\",\n    \"gjs_portrait\": \"Portrait\",\n    \"gjs_video ratio\": \"Video Ratio\",\n    \"global settings\": \"Global settings\",\n    \"go back to old version\": \"Go Back To Old Version\",\n    \"go to\": \"Go To\",\n    \"go to login page\": \"Go To Login Page\",\n    \"go to the main app\": \"Go To The Main App\",\n    \"google add to cart conversion label\": \"Add to Cart Conversion Label\",\n    \"google merchant center\": \"Google Merchant Center\",\n    \"google pay\": \"Google Pay\",\n    \"google purchase conversion label\": \"Purchase Event Conversion Label\",\n    \"google tags manager\": \"Google Tags Manager\",\n    \"google tracking id\": \"Google Tracking ID\",\n    \"googlePay\": \"Google Pay\",\n    \"grains, vegetables and fruits\": \"Grains, Vegetables And Fruits\",\n    \"greater than\": \"Greater Than\",\n    \"greater than or equal to\": \"Greater Than Or Equal To\",\n    \"greaterThan\": \"Greater Than\",\n    \"greaterThanOrEqualTo\": \"Greater Than Or Equal To\",\n    \"greeting\": \"Greeting\",\n    \"grid\": \"Grid\",\n    \"grid column gap\": \"Grid Column Gap\",\n    \"grid of 1 with image right and text left\": \"Grid of 1 with image right and text left\",\n    \"grid of 1 with image, text and button\": \"Grid of 1 with image, text and button\",\n    \"grid of 1 with title and button\": \"Grid of 1 with title and button\",\n    \"grid of 2 with image left and text right\": \"Grid of 2 with image left and text right\",\n    \"grid of 2 with image right and text left\": \"Grid of 2 with image right and text left\",\n    \"grid of 2 with image, text and button\": \"Grid of 2 with image, text and button\",\n    \"grid of 3 columns with text\": \"Grid of 3 columns with text\",\n    \"grid of 3 images\": \"Grid of 3 images\",\n    \"grid of 3 with image and text\": \"Grid of 3 with image and text\",\n    \"grid of 3 with image top and text bottom\": \"Grid of 3 with image top and text bottom\",\n    \"grid of 3 with image, text and button\": \"Grid of 3 with image, text and button\",\n    \"grid of 6 images\": \"Grid of 6 images\",\n    \"grid with image left and text right\": \"Grid with image left and text right\",\n    \"grid with text left\": \"Grid with text left\",\n    \"grid with text left image right and background color\": \"Grid with text left image right and background color\",\n    \"grid with text right\": \"Grid with text right\",\n    \"grid with text right image left and background color\": \"Grid with text right image left and background color\",\n    \"gross profit\": \"Gross Profit\",\n    \"group by product set with choices\": \"Group by Set With Choices\",\n    \"group by tags\": \"Group By Tags\",\n    \"group by transporter\": \"Group by transporter\",\n    \"group picking list by transporter\": \"Group Picking List by transporter\",\n    \"group product by transporter\": \"Group Product By Transporter\",\n    \"grouped to\": \"Grouped To\",\n    \"grouped with\": \"Grouped With\",\n    \"guide setup\": \"Guide Setup\",\n    \"guide step\": \"Guide Step\",\n    \"guide steps\": \"Guide Steps\",\n    \"guide_click_to_continue\": \"Click the highlighted element to continue.\",\n    \"guide_select_element_hint\": \"Click the element to select it. Press Esc to cancel.\",\n    \"guide_select_element_no_id\": \"This element cannot be a guide step. Click a form row with help, a sidebar, or a header.\",\n    \"guide_setup_description\": \"While guide setup is on, merchants do not see this new feature and only Help Editors see the guide helper. Turn guide setup off to publish the guide steps; the new feature keeps its current status.\",\n    \"has active campaigns\": \"Active campaigns\",\n    \"has break time\": \"Has Break Time\",\n    \"has cash payment fee\": \"Has Cash Payment Fee\",\n    \"has choices\": \"Has Choices\",\n    \"has custom limited qty per person text\": \"Has Custom Limited Qty Per Person Text\",\n    \"has disallowed product tags\": \"Has Disallowed Product Tags\",\n    \"has image\": \"Has Image\",\n    \"has images\": \"Has Images?\",\n    \"has issues\": \"Has Issues\",\n    \"has issues to resolve issues\": \"Has Issues to resolve issues\",\n    \"has limit\": \"Has Limit\",\n    \"has limits\": \"Has limits\",\n    \"has limits per person\": \"Has Limits per Person\",\n    \"has no image\": \"No Image\",\n    \"has reply\": \"Has Reply\",\n    \"has surcharge on free shipping\": \"Has Surcharge On Free Shipping\",\n    \"has times per order\": \"Has Times per Order\",\n    \"has unset weight\": \"No Weight Set For Product\",\n    \"has usage limit per person\": \"Has Usage Limit Per Person\",\n    \"has variants\": \"Has Variants\",\n    \"hasPreOrder\": \"Pre Order\",\n    \"hasPreOrderCount\": \"Pre Order: {count}\",\n    \"hasSameValuesWithDatabase\": \"No changes\",\n    \"hasStock\": \"In Stock\",\n    \"hasVariants\": \"Has Variants\",\n    \"have not reissued e-invoices\": \"Have Not Reissued E-Invoices\",\n    \"having both linked consignments and orders in one document is not allowed\": \"Having both linked consignments and orders in one document is not allowed!\",\n    \"hct\": \"HCT\",\n    \"hct contact\": \"HCT Contact\",\n    \"hct credentials\": \"HCT Credentials\",\n    \"hct extensions\": \"HCT Extensions\",\n    \"hct summary\": \"HCT Summary\",\n    \"hct summary successfully submitted\": \"HCT Summary Successfully Submitted\",\n    \"hct waybills\": \"HCT Waybills\",\n    \"hct_region_error\": \"查無此區號，請檢查配送地址\",\n    \"header\": \"Header\",\n    \"header-settings\": \"Header & Footer\",\n    \"heartbeat\": \"Heart Beat\",\n    \"height\": \"Height\",\n    \"help\": \"Help\",\n    \"help editor\": \"Help Editor\",\n    \"hidden\": \"Hidden\",\n    \"hide\": \"Hide\",\n    \"hide add to cart button with a password\": \"Hide Add To Cart Button With A Password\",\n    \"hide all\": \"Hide All\",\n    \"hide all customization prices\": \"Hide All Customization Prices\",\n    \"hide all printed\": \"Hide All Printed\",\n    \"hide customization prices if 0\": \"Hide Customization Price When 0\",\n    \"hide payouts details\": \"Hide Payouts Details\",\n    \"hide price when has password\": \"Hide Price When Has Password\",\n    \"hide printed\": \"Hide already printed\",\n    \"hide printed today\": \"Hide Printed Today\",\n    \"hide product code\": \"Hide Product Code\",\n    \"hide products with missing data\": \"Hide products with missing data (negative product qty)\",\n    \"hide products with no activity\": \"Hide products with no activity\",\n    \"hide returns\": \"Hide Returns\",\n    \"hide shipping fee\": \"Hide Shipping Fee\",\n    \"hide shop description for all shops\": \"Hide Shop Description For All Shops\",\n    \"hide tax number and telephone on delivery note\": \"Hide tax number and telephone on delivery note\",\n    \"hide tax number for all shops\": \"Hide Tax Number For All Shops\",\n    \"hide unit\": \"Hide Unit\",\n    \"highest\": \"Highest\",\n    \"hold all\": \"Hold All\",\n    \"home\": \"Home\",\n    \"home fax\": \"Home Fax\",\n    \"home page\": \"home page\",\n    \"home page help index\": \"Home page help index\",\n    \"home phone\": \"Home Phone\",\n    \"horizontal\": \"Horizontal\",\n    \"horizontal alignment\": \"Horizontal Alignment\",\n    \"horizontal buttons with different colors\": \"Horizontal buttons with different colors\",\n    \"horizontal position\": \"Horizontal Position\",\n    \"hours\": \"Hours\",\n    \"household appliances\": \"Household Appliances\",\n    \"how to show returns when printing from dispatch management\": \"how to show returns when printing from dispatch management\",\n    \"how to show returns when printing from sales invoices\": \"how to show returns when printing from sales invoices\",\n    \"href\": \"Href\",\n    \"html\": \"HTML\",\n    \"html-custom-code\": \"Html Code\",\n    \"i have a referral code\": \"I have a referral code\",\n    \"icon\": \"Icon\",\n    \"if there are multiple payment types, waybills will be grouped by payment type\": \"If there are multiple payment types, waybills will be grouped by payment type.\",\n    \"image\": \"Image\",\n    \"image alignment\": \"Image Alignment\",\n    \"image alt\": \"Image Alternative Text (SEO)\",\n    \"image caption\": \"Image Caption\",\n    \"image grid style\": \"Image Grid Style\",\n    \"image link\": \"Image Link\",\n    \"image name\": \"Image Name\",\n    \"image not found, maybe deleted\": \"Image not found, maybe deleted\",\n    \"image order\": \"Image Order\",\n    \"image position\": \"Image Position\",\n    \"image ratio\": \"Image Ratio (Width x Height)\",\n    \"image settings\": \"Image Settings\",\n    \"image size\": \"Image Size\",\n    \"images\": \"Images\",\n    \"images hover brightness effect\": \"Images hover brightness effect\",\n    \"images hover zoom effect\": \"Images hover zoom effect\",\n    \"images_grid\": \"Grid\",\n    \"import\": \"Import\",\n    \"import data\": \"Import Data\",\n    \"import dispatched\": \"Import Dispatched\",\n    \"import limited qtys\": \"Import Limited Qtys\",\n    \"import paid\": \"Import Paid\",\n    \"import products\": \"Import Products\",\n    \"import to bulk update status and print\": \"Import To Bulk Update Status And Print\",\n    \"import_transporter_template\": \"Download Import Transporter Template\",\n    \"in dispatch summary show each customizations name in a separate row\": \"In dispatch summary, show each customizations name in a separate row\",\n    \"in pixel\": \" (unit: px)\",\n    \"in sync\": \"In Sync\",\n    \"in use by\": \"In use by\",\n    \"inactive\": \"Inactive\",\n    \"inactive variant children\": \"Inactive Variant Children\",\n    \"inclTotal\": \"Inclusive Total\",\n    \"include in seo shop locations\": \"Include in seo shop locations\",\n    \"include pos\": \"Include POS\",\n    \"include price\": \"Include Price\",\n    \"include qty\": \"Include Qty\",\n    \"includeFreeShipping\": \"Include Free Shipping\",\n    \"including tax discount\": \"Including Tax Discount\",\n    \"inclusive amount\": \"Incl. Amount\",\n    \"inclusive discount\": \"Inclusive Discount\",\n    \"inclusive discount default\": \"Inclusive Discount\",\n    \"inclusive discount settings\": \"Inclusive Discount Settings\",\n    \"inclusive discounted price\": \"Inclusive Discounted Price\",\n    \"inclusive price\": \"Incl. Price\",\n    \"inclusive selling price\": \"Incl. Selling Price\",\n    \"inclusive total\": \"Inclusive Total\",\n    \"inclusive total after discount\": \"Inclusive Total After Discount\",\n    \"inclusive total after returns\": \"Inclusive Total After Returns\",\n    \"inclusive_total_short\": \"Incl. Total\",\n    \"income statement\": \"Income Statement\",\n    \"incoming transactions summary\": \"Incoming Transactions Summary\",\n    \"incomplete pdf. please re-download\": \"Incomplete PDF, Please re-download.\",\n    \"incomplete telephone/address\": \"Incomplete telephone/address\",\n    \"incorrect\": \"incorrect\",\n    \"incorrect array order\": \"incorrect array order\",\n    \"incorrect array order and/or incorrect number of items\": \"incorrect array order and/or incorrect number of items\",\n    \"incorrect byte\": \"incorrect byte\",\n    \"incorrect bytes\": \"incorrect bytes\",\n    \"incorrect credit card details\": \"Incorrect Credit Card Details\",\n    \"incorrect date\": \"incorrect date\",\n    \"incorrect date format\": \"incorrect date format\",\n    \"incorrect date range\": \"incorrect date range\",\n    \"incorrect decimal places\": \"incorrect decimal places\",\n    \"incorrect length\": \"Incorrect Length\",\n    \"incorrect number\": \"incorrect number\",\n    \"incorrect number of items\": \"incorrect number of items\",\n    \"incorrect uri scheme\": \"incorrect uri scheme\",\n    \"increase\": \"Increase\",\n    \"increase/decrease limited qty\": \"+/- limited qty\",\n    \"increase/decrease preOrder qty\": \"+/- Pre Order qty\",\n    \"index\": \"Index\",\n    \"individual\": \"Individual\",\n    \"infinite\": \"Infinite\",\n    \"information\": \"Information\",\n    \"init\": \"Start\",\n    \"input value\": \"Input Value\",\n    \"insert\": \"Insert\",\n    \"insert documents ref here\": \"Insert Documents Ref here\",\n    \"insert or replace templates\": \"Insert or Replace Templates\",\n    \"insert text or drag content here, remove this text block if not needed\": \"Insert text or drag content here, remove this text block if not needed.\",\n    \"inside image\": \"Inside Image\",\n    \"insideImage\": \"Inside Image\",\n    \"instagram\": \"Instagram\",\n    \"instagram url\": \"Instagram Url\",\n    \"installment periods\": \"installment periods\",\n    \"installments\": \"Installments\",\n    \"internal comments\": \"Internal Comments\",\n    \"invalid\": \"Invalid\",\n    \"invalid credentials\": \"Invalid Credentials\",\n    \"invalid email or password\": \"Invalid Email or Password\",\n    \"invalid image type\": \"Invalid Image Type\",\n    \"invalid json\": \"invalid JSON\",\n    \"invalid number of days\": \"Invalid number of Days\",\n    \"invalid number of months\": \"Invalid number of Months\",\n    \"invalid password\": \"密碼錯誤\",\n    \"invalid rate\": \"Invalid Rate\",\n    \"invalid returns\": \"Invalid returns\",\n    \"invalid returns. returned qty greater than invoiced qty\": \"Invalid returns. Returned qty greater than invoiced qty\",\n    \"invalid status\": \"Invalid Status\",\n    \"invalid tax types. Provider does not allow mixed types\": \"Invalid tax types. Provider does not allow mixed types\",\n    \"invalid totals. totals for document - returns does not equal to issue total\": \"Invalid totals. Totals for document minus returns does not equal to issue total\",\n    \"invalid two factor authentication code\": \"Invalid two factor authentication code\",\n    \"invalid username or password\": \"Invalid Username or Password!\",\n    \"inventory\": \"Inventory\",\n    \"inventory activity\": \"Inventory Activity\",\n    \"inventory adjustment\": \"Inventory Adjustment\",\n    \"inventory available\": \"Inventory Available\",\n    \"inventory book qty\": \"Inventory Book Qty\",\n    \"inventory filters\": \"Inventory Filters\",\n    \"inventory in\": \"Inventory In\",\n    \"inventory management\": \"Inventory Management\",\n    \"inventory notification\": \"Inventory Notification\",\n    \"inventory on hand\": \"Inventory On Hand\",\n    \"inventory on hand qty\": \"Inventory On Hand Qty\",\n    \"inventory out\": \"Inventory Out\",\n    \"inventory qty\": \"Inventory Qty\",\n    \"inventory report\": \"Inventory Report\",\n    \"inventory reports\": \"Inventory Reports\",\n    \"inventory status report\": \"Inventory Status Report\",\n    \"invoice\": \"Invoice\",\n    \"invoice date\": \"Invoice Date\",\n    \"invoice description\": \"Invoice Description\",\n    \"invoice number\": \"Invoice Number\",\n    \"invoice numbers\": \"Invoice Numbers\",\n    \"invoiced\": \"Invoiced\",\n    \"invoices\": \"Invoices\",\n    \"ip address\": \"IP address\",\n    \"is associates\": \"Is An Affiliate\",\n    \"is between\": \"Is Between\",\n    \"is child campaign\": \"Is Child Campaign\",\n    \"is custom response\": \"Is Custom Response?\",\n    \"is finished\": \"Is Finished\",\n    \"is master campaign\": \"Is Master Campaign\",\n    \"is member\": \"Is Member\",\n    \"is not allowed\": \"is not allowed\",\n    \"is partner\": \"Is Partner\",\n    \"is required\": \"Is Required\",\n    \"is transporter\": \"Is Transporter\",\n    \"is unlimited\": \"Is Unlimited\",\n    \"isAssociatesSettings\": \"Affiliates Settings\",\n    \"isBetween\": \"Is Between\",\n    \"isComplete\": \"Completed\",\n    \"isIncomplete\": \"Incomplete\",\n    \"isOutOfSync\": \"Out of Sync\",\n    \"isPinned\": \"Pinned\",\n    \"isRecurringChild\": \"Recurring\",\n    \"isRecurringMaster\": \"Recurring\",\n    \"isSet\": \"Bundle\",\n    \"isSetChild\": \"Bundle Child\",\n    \"isSetWithChoices\": \"Bundle With Choices\",\n    \"isVariantChild\": \"Variant Child\",\n    \"issue invoice\": \"Issue Invoice\",\n    \"issue invoices now\": \"Issue Invoices Now\",\n    \"item\": \"Item\",\n    \"item key\": \"item Key\",\n    \"item name\": \"Item Name\",\n    \"item quantity\": \"Item Quantity\",\n    \"item value\": \"Item Value\",\n    \"item was not invoiced\": \"Item was not invoiced\",\n    \"itemName\": \"Item\",\n    \"itemQty\": \"Item Quantity\",\n    \"itemQuantity\": \"Item Quantity\",\n    \"itemValue\": \"Item Value\",\n    \"items\": \"Items\",\n    \"items per page\": \"Items per page\",\n    \"items total price is not equal to the set price\": \"Items' total price is not equal to the set price!\",\n    \"jello\": \"Jello\",\n    \"job_position\": \"Position\",\n    \"join with\": \"Join With\",\n    \"js\": \"JavaScript\",\n    \"json\": \"JSON\",\n    \"kg\": \"kg\",\n    \"kgi Bank\": \"KGI Bank\",\n    \"knowledge base\": \"Knowledge Base\",\n    \"label\": \"Label\",\n    \"label for transporter\": \"Label For Transporter\",\n    \"language is now set to\": \"Language is now set to\",\n    \"large\": \"Large\",\n    \"last 1 month\": \"Last 1 month\",\n    \"last 1 year\": \"Last 1 year\",\n    \"last 2 years\": \"Last 2 years\",\n    \"last 3 months\": \"Last 3 months\",\n    \"last 3 years\": \"Last 3 years\",\n    \"last 4 digits\": \"Last 4 Digits\",\n    \"last 6 months\": \"Last 6 months\",\n    \"last button label\": \"Last Button Label\",\n    \"last day of invoice month\": \"Last Day Of Invoice Month\",\n    \"last month\": \"Last Month\",\n    \"last name\": \"Last Name\",\n    \"last waybill number\": \"Last Waybill Number\",\n    \"lastest delivery date\": \"The Latest Available Date On Checkout Page\",\n    \"latest\": \"Latest\",\n    \"latest customers\": \"Latest Customers\",\n    \"latest dispatch date\": \"Latest Dispatch Date\",\n    \"latest dispatch time\": \"Latest Time For Dispatch Of The Day Of Order\",\n    \"latest dispatch time description\": \"If the order is after Latest Time For Dispatch, it will automatically be postponed to the next day\",\n    \"latest pickup time\": \"Latest Time For Store Pickup Of The Day Of Order\",\n    \"latest pickup time description\": \"If the order is after Latest Time For Store Pickup, it will automatically be postponed to the next day\",\n    \"latest suppliers\": \"Latest Suppliers\",\n    \"launch\": \"Launch\",\n    \"lead time\": \"Lead Time\",\n    \"ledger\": \"Ledger\",\n    \"ledger account\": \"Ledger Account\",\n    \"ledgerAccount\": \"Ledger Account\",\n    \"ledgers\": \"Ledgers\",\n    \"ledgers->cash book\": \"Ledgers > Cash Book\",\n    \"ledgers->creditors\": \"Ledgers > Creditors\",\n    \"ledgers->debtors\": \"Ledgers > Debtors\",\n    \"left\": \"Left\",\n    \"legacy plan\": \"Legacy Plan\",\n    \"less than\": \"Less Than\",\n    \"less than or equal to\": \"Less Than Or Equal To\",\n    \"lessThan\": \"Less Than\",\n    \"lessThanOrEqualTo\": \"Less Than Or Equal To\",\n    \"level change\": \"Level Change\",\n    \"liabilities\": \"Liabilities\",\n    \"light color\": \"Light Color\",\n    \"lightColor\": \"Light Color\",\n    \"limit by\": \"Limit By\",\n    \"limit preOrder qty\": \"Limit Pre Order Qty\",\n    \"limit sales qty\": \"Limit Sales Qty\",\n    \"limited preOrder qty\": \"Limited Pre Order Qty\",\n    \"limited qty\": \"Limited Qty\",\n    \"limited qty per person\": \"Limited Qty Per Person\",\n    \"limited sales qty\": \"Limited Sales Qty\",\n    \"limits for specific dates\": \"Limits For Specific Dates\",\n    \"line\": \"Line\",\n    \"line chat\": \"Line Chat\",\n    \"line count for blogs and news description\": \"Line Count for Blogs and News Description\",\n    \"line count for blogs and news title\": \"Line Count for Blogs and News Title\",\n    \"line count for description\": \"Line Count for Description\",\n    \"line count for title\": \"Line Count for Title\",\n    \"line id\": \"Line Id\",\n    \"line pay\": \"Line Pay\",\n    \"line pay history\": \"Line Pay History\",\n    \"line pay provider: tap pay\": \"Line Pay Provider: Tap Pay\",\n    \"line pay transactions\": \"Line Pay Transactions\",\n    \"linePay\": \"Line Pay\",\n    \"linePay Providers\": \"Line Pay Provider\",\n    \"linePay_awaitingPayment\": \"Awaiting Line Pay Payment\",\n    \"link\": \"Link\",\n    \"link description\": \"Link Description\",\n    \"link options\": \"Link Options\",\n    \"link thumbnail image\": \"Link Thumbnail Image\",\n    \"link thumbnail image ratio\": \"Link Thumbnail Image Ratio\",\n    \"link title\": \"Link Title\",\n    \"link to existing product\": \"Link to Existing Product\",\n    \"link to flow\": \"Link To Flow\",\n    \"link_target\": \"Target\",\n    \"linked campaigns\": \"Linked Campaigns\",\n    \"linked documents have conflicts\": \"Linked documents have conflicts!\",\n    \"linked to\": \"Linked To\",\n    \"links\": \"Links\",\n    \"links or buttons\": \"Links or Buttons\",\n    \"list all\": \"List All\",\n    \"list all abandoned\": \"List All Abandoned\",\n    \"loading\": \"Loading\",\n    \"lock\": \"Lock\",\n    \"locked\": \"Locked\",\n    \"log into new company?\": \"Log into [ {company} ]? Will close all tabs\",\n    \"logged out\": \"Logged Out\",\n    \"login\": \"Login\",\n    \"logo\": \"Logo\",\n    \"logo icon position\": \"Logo Icon Position\",\n    \"logo menu position\": \"Logo Menu Position\",\n    \"logo mobile\": \"Logo (Mobile)\",\n    \"logo on top\": \"Logo on Top\",\n    \"logo position\": \"Logo Position\",\n    \"logo size\": \"Logo Size\",\n    \"logo size desktop only\": \"Logo Size (Desktop Only)\",\n    \"logoCenteredScrollMethod_hide\": \"Hide\",\n    \"logoCenteredScrollMethod_shrink\": \"Shrink\",\n    \"logout\": \"Logout\",\n    \"lowest\": \"Lowest\",\n    \"mailing list\": \"Mailing List\",\n    \"mailing_groups\": \"List\",\n    \"main\": \"Main\",\n    \"main account number\": \"Main Account Number\",\n    \"main content\": \"Main Content\",\n    \"main content settings\": \"Main Content Settings\",\n    \"main island\": \"Main Island\",\n    \"main settings\": \"Main Settings\",\n    \"maintenance\": \"Maintenance\",\n    \"make sure that this is the intended qty\": \"please make sure that this is the intended qty\",\n    \"makeup and cosmetics\": \"Makeup And Cosmetics\",\n    \"male\": \"Male\",\n    \"manage auto topup\": \"Manage Auto Topup\",\n    \"manage bigordr plan\": \"Manage BigOrdr Plan\",\n    \"manage billing details\": \"Manage Billing Details\",\n    \"manage duplicates\": \"Manage Duplicates\",\n    \"manage rules\": \"Manage Rules\",\n    \"margin\": \"Margin\",\n    \"margin settings\": \"Margin Settings\",\n    \"mark as completed\": \"Mark As Complete\",\n    \"mark as inactive\": \"Mark as Inactive\",\n    \"mark as paid\": \"Mark as paid\",\n    \"mark as resolved\": \"Mark as resolved\",\n    \"mark as unresolved\": \"Mark as unresolved\",\n    \"master campaign\": \"Master Campaign\",\n    \"match_contacts_groups\": \"Match\",\n    \"match_contacts_groups_criteria\": \"Criteria\",\n    \"max length\": \"Max Length\",\n    \"max order price\": \"Maximum Order Price\",\n    \"max order qty\": \"Maximum Order Quantity\",\n    \"max order weight\": \"Maximum Order Weight\",\n    \"max price\": \"Max Price\",\n    \"max qty\": \"Maximum Qty\",\n    \"max range 3 months\": \"Maximum Range of 3 Months\",\n    \"may contain duplicate data\": \"May Contain Duplicate Data\",\n    \"mayAdd\": \"Show Additional Items\",\n    \"medical supplies\": \"Medical Supplies\",\n    \"medium\": \"Medium\",\n    \"member\": \"Member\",\n    \"member email\": \"Member Email\",\n    \"member id\": \"Member Id\",\n    \"member level\": \"Member Level\",\n    \"member level adjustment email\": \"Member Level Adjustment Email\",\n    \"member level description\": \"Member Level Description\",\n    \"member level expiry date\": \"Member Level Expiry Date\",\n    \"member level expiry time\": \"Member Level Expiry Time\",\n    \"member level name\": \"Member Level Name\",\n    \"member level order value\": \"Order Value\",\n    \"member level points\": \"Level Points\",\n    \"member level points will be set to member level minimum points\": \"Member level points will be set to member level minimum points\",\n    \"member level status\": \"Status\",\n    \"member levels\": \"Member Levels\",\n    \"members\": \"Members\",\n    \"membership_rewards_adjustment\": \"Membership Adjustment\",\n    \"menu\": \"Menu\",\n    \"menu expand alignment\": \"Menu Expand Alignment\",\n    \"menu expand behavior\": \"Menu Expand Behavior\",\n    \"menu font size\": \"menu font size\",\n    \"menu position\": \"Menu Position\",\n    \"menu style\": \"Menu Style\",\n    \"merchant center settings\": \"Merchant Center Settings\",\n    \"merchantId\": \"Merchant ID\",\n    \"merchantIv\": \"Merchant IV\",\n    \"merchantKey\": \"Merchant Key\",\n    \"merge\": \"Merge\",\n    \"merge_document\": \"Merge\",\n    \"merged\": \"Merged\",\n    \"merged to\": \"Merged To\",\n    \"merged with\": \"Merged With\",\n    \"merged_document\": \"Merged\",\n    \"message\": \"Message\",\n    \"message to display when campaign has ended\": \"Message To Display When Campaign Has Ended\",\n    \"messages\": \"Messages\",\n    \"method\": \"Method\",\n    \"migrate\": \"Migrate\",\n    \"min amount required per period\": \"Minimum amount required per period\",\n    \"min length\": \"Min Length\",\n    \"min order price\": \"Minimum Order Price\",\n    \"min order qty\": \"Minimum Order Quantity\",\n    \"min order to allow shipping\": \"Min order to allow shipping: {amount}\",\n    \"min order weight\": \"Minimum Order Weight\",\n    \"min price\": \"Min Price\",\n    \"min qty\": \"Minimum Qty\",\n    \"minimize logo on scroll\": \"Minimize logo on scroll\",\n    \"minimum cart amount\": \"Minimum Cart Amount\",\n    \"minimum spend requirement\": \"Minimum order amount to allow spening points\",\n    \"minutes\": \"Minutes\",\n    \"miscellaneous\": \"Miscellaneous\",\n    \"missing data\": \"Missing Data\",\n    \"mm\": \"mm\",\n    \"mm1\": \"January\",\n    \"mm10\": \"October\",\n    \"mm11\": \"November\",\n    \"mm12\": \"December\",\n    \"mm2\": \"February\",\n    \"mm3\": \"March\",\n    \"mm4\": \"April\",\n    \"mm5\": \"May\",\n    \"mm6\": \"June\",\n    \"mm7\": \"July\",\n    \"mm8\": \"August\",\n    \"mm9\": \"September\",\n    \"mobile\": \"Mobile\",\n    \"mobile logo size\": \"Mobile Logo Size\",\n    \"monday\": \"Monday\",\n    \"monday opening hours\": \"Monday Opening Hours\",\n    \"month\": \"Month\",\n    \"month end\": \"Month End\",\n    \"month1\": \"January\",\n    \"month10\": \"October\",\n    \"month11\": \"November\",\n    \"month12\": \"December\",\n    \"month2\": \"February\",\n    \"month3\": \"March\",\n    \"month4\": \"April\",\n    \"month5\": \"May\",\n    \"month6\": \"June\",\n    \"month7\": \"July\",\n    \"month8\": \"August\",\n    \"month9\": \"September\",\n    \"monthly\": \"Monthly\",\n    \"monthly revenue\": \"Monthly Revenue\",\n    \"months\": \"Months\",\n    \"more\": \"more\",\n    \"moreThanFiveDays\": \"5+ Days\",\n    \"move down\": \"Move down\",\n    \"move up\": \"Move up\",\n    \"multiple\": \"Multiple\",\n    \"multiple delivery dates\": \"Multiple Delivery dates\",\n    \"multiple discount rate\": \"Multiple Discount Rate\",\n    \"multiple discounts\": \"Multiple Discounts\",\n    \"must be a bigger number\": \"must be a bigger number\",\n    \"must be a boolean\": \"must be a boolean\",\n    \"must be a buffer or a string\": \"must be a buffer or a string\",\n    \"must be a credit card\": \"must be a credit card\",\n    \"must be a float or double\": \"must be a float or double\",\n    \"must be a negative number\": \"must be a negative number\",\n    \"must be a number\": \"must be a number\",\n    \"must be a positive number\": \"must be a positive number\",\n    \"must be a smaller number\": \"must be a smaller number\",\n    \"must be a string\": \"must be a string\",\n    \"must be a valid GUID\": \"must be a valid GUID\",\n    \"must be a valid ISO 8601 date\": \"must be a valid ISO 8601 date\",\n    \"must be a valid base64 string\": \"must be a valid base64 string\",\n    \"must be a valid date\": \"must be a valid date\",\n    \"must be a valid email\": \"must be a valid email\",\n    \"must be a valid hostname\": \"must be a valid hostname\",\n    \"must be a valid ip address\": \"must be a valid ip address\",\n    \"must be a valid port\": \"must be a valid port\",\n    \"must be a valid relative uri\": \"must be a valid relative uri\",\n    \"must be a valid taiwanese address\": \"Must Be A Valid Taiwanese Address\",\n    \"must be a valid timestamp or number of milliseconds\": \"must be a valid timestamp or number of milliseconds\",\n    \"must be a valid timestamp or number of second\": \"must be a valid timestamp or number of second\",\n    \"must be a valid uri\": \"must be a valid uri\",\n    \"must be an array\": \"must be an array\",\n    \"must be an integer\": \"must be an integer\",\n    \"must be smaller than inclusive price\": \"Must be smaller than inclusive price\",\n    \"must be unicode normalized\": \"must be unicode normalized\",\n    \"must dispatch today\": \"Must Dispatch Today\",\n    \"must exclude value\": \"must exclude value\",\n    \"must not have leading or trailing whitespace\": \"must not have leading or trailing whitespace\",\n    \"must only contain alpha-numeric and underscore characters\": \"must only contain alpha-numeric and underscore characters\",\n    \"must only contain alpha-numeric characters\": \"must only contain alpha-numeric characters\",\n    \"must only contain hexadecimal characters\": \"must only contain hexadecimal characters\",\n    \"must only contain uppercase characters\": \"must only contain uppercase characters\",\n    \"must use shipping zones to set limits per day\": \"Must Use Shipping Zones To Set Limits Per Day\",\n    \"mustAdd\": \"Automatically Add Items to Cart\",\n    \"mutliple documents found. please capture manually\": \"Mutliple documents found. please capture manually\",\n    \"my profile\": \"My Profile\",\n    \"name\": \"Name\",\n    \"national credit card center of ROC\": \"National Credit Card Center of ROC\",\n    \"nav container position\": \"Nav Container Position\",\n    \"nav dot\": \"Nav Dot\",\n    \"nav dots\": \"Nav Dots\",\n    \"nav item dot\": \"Dot\",\n    \"nav item line\": \"Line\",\n    \"nav item style\": \"Nav Item Style\",\n    \"nav next\": \"Nav Next\",\n    \"nav previous\": \"Nav Previous\",\n    \"navItemDot\": \"Dot\",\n    \"navItemLine\": \"Line\",\n    \"never expire\": \"Never Expire\",\n    \"new\": \"New\",\n    \"new account\": \"New Account\",\n    \"new bulk discount\": \"New Bulk Discount\",\n    \"new customer\": \"New Customer\",\n    \"new customer and supplier\": \"New Customer & Supplier\",\n    \"new feature\": \"New Feature\",\n    \"new features\": \"New Features\",\n    \"new member level\": \"new member level\",\n    \"new member level points\": \"New Member Level Points\",\n    \"new orders\": \"New Orders\",\n    \"new product\": \"New Product\",\n    \"new products editor\": \"New Products Editor\",\n    \"new sales invoice\": \"New Sales Invoice\",\n    \"new sales order\": \"New Sales Order\",\n    \"new shipping zone\": \"New Shipping Zone\",\n    \"new supplier\": \"New Supplier\",\n    \"new template\": \"New Template\",\n    \"new total must be equal to the original document total\": \"New total must be equal to the original document total\",\n    \"new value\": \"New Value\",\n    \"new variant product code\": \"New Variant Product Code\",\n    \"new variant product name\": \"New Variant Product Name\",\n    \"new window\": \"New Window\",\n    \"newCustomer\": \"New Customer\",\n    \"new_contacts_groups\": \"New Group\",\n    \"new_tab\": \"New Tab\",\n    \"neweb Pay\": \"Neweb Pay\",\n    \"newestFirst\": \"Newest First\",\n    \"news\": \"News\",\n    \"news and offers email consent\": \"News & Offers Email Consent\",\n    \"news images ratio\": \"News Images Ratio\",\n    \"news preview settings\": \"News Preview Settings\",\n    \"news settings\": \"News Settings\",\n    \"news show breadcrumb\": \"Show Breadcrumb Navigation\",\n    \"next\": \"Next\",\n    \"next active\": \"Next Active\",\n    \"next button label\": \"Next Button Label\",\n    \"next schedule\": \"Next Schedule\",\n    \"next step\": \"Next Step\",\n    \"next step conversion rate\": \"Next Step Conversion Rate\",\n    \"next workflow\": \"Next Workflow\",\n    \"night\": \"Night\",\n    \"no\": \"No\",\n    \"no active schedule\": \"No active schedule\",\n    \"no applicable shipping zones\": \"No Applicable Shipping Zones\",\n    \"no background colour\": \"No Background Colour\",\n    \"no comments\": \"No Comments\",\n    \"no commission this month\": \"No Commission This Month!\",\n    \"no data\": \"No Data\",\n    \"no data to export\": \"No Data To Export\",\n    \"no details\": \"No Details\",\n    \"no dispatched data\": \"no dispatched data\",\n    \"no emails to send\": \"No emails to send\",\n    \"no image\": \"No Image\",\n    \"no master campaign found\": \"No master campaign found\",\n    \"no member level changes\": \"No member level changes!\",\n    \"no next available number\": \"no next available number\",\n    \"no preview\": \"No Preview\",\n    \"no price history found\": \"No price history found\",\n    \"no products added yet\": \"No Products Added Yet\",\n    \"no products found, double click to refresh or add new products\": \"no products found, double click to refresh or add new products\",\n    \"no rates\": \"No Rates\",\n    \"no reward expiry set\": \"No reward expiry set\",\n    \"no reward points set\": \"No reward points set\",\n    \"no saved credit cards found for this member\": \"No Saved Credit Cards Found For This Member\",\n    \"no shipping zones set in campaign\": \"No shipping zones set in campaign\",\n    \"no tags detected. please add blog tags first\": \"No Tags Detected. Please Add Blog Tags First.\",\n    \"no tags detected. please add news tags first\": \"No Tags Detected. Please Add News Tags First.\",\n    \"no tags detected. please add product tags first\": \"No Tags Detected. Please Add Product Tags First.\",\n    \"no tags detected. please add store location tags first\": \"No Tags Detected. Please Add Store Location Tags First.\",\n    \"no tax allowed\": \"No Tax Allowed\",\n    \"no transporter\": \"No transporter\",\n    \"no transporter selected\": \"No Transporter Selected\",\n    \"no valid credit card information found\": \"No Valid Credit Card Information Found\",\n    \"noItemInDatabase\": \"No item found in database\",\n    \"noItemInDatabase-choiceDetails\": \"No item found in database\",\n    \"noItemInDatabase-choiceSetDetails\": \"No item found in database\",\n    \"noItemInDatabase-choiceVariantChildren\": \"No item found in database\",\n    \"no_of_documents_unit\": \"documents\",\n    \"no_of_times\": \"times\",\n    \"nonMember\": \"Non-Member\",\n    \"none\": \"None\",\n    \"noon\": \"Noon\",\n    \"normal\": \"Normal\",\n    \"normal percentage\": \"Normal Percentage\",\n    \"normal product\": \"Normal Product\",\n    \"not a day of the month (1-31)\": \"Not a day of the month (1-31)\",\n    \"not a url\": \"Not a Url\",\n    \"not an email\": \"Not an Email\",\n    \"not date\": \"Date Required\",\n    \"not dispatched\": \"Not Dispatched\",\n    \"not editable\": \"Not Editable\",\n    \"not email\": \"Not Email\",\n    \"not equals\": \"Not Equals\",\n    \"not float\": \"Not a number\",\n    \"not found\": \"Not Found\",\n    \"not matching any of the allowed alternatives\": \"not matching any of the allowed alternatives\",\n    \"not member\": \"Not Member\",\n    \"not number\": \"Not Number\",\n    \"not selected\": \"Not Selected\",\n    \"not unique\": \"Not Unique\",\n    \"not yet addded to any shops\": \"not yet addded to any shops\",\n    \"not yet dispatched\": \"Not Yet Dispatched\",\n    \"not yet generated\": \"Not yet generated\",\n    \"not yet invoiced\": \"Not Yet Invoiced\",\n    \"not yet saved\": \"Not yet saved\",\n    \"not yet set\": \"Not yet set\",\n    \"notEquals\": \"Not Equals\",\n    \"note\": \"Note\",\n    \"note is required on checkout\": \"Note is Required on Checkout\",\n    \"notes\": \"Notes\",\n    \"notes on checkout\": \"Notes On Checkout\",\n    \"nothing to print\": \"Nothing to print.\",\n    \"nothing to print, click on\": \"Nothing to print. Click on\",\n    \"notification\": \"Notification\",\n    \"notifications\": \"Notifications\",\n    \"notifications_read\": \"Read\",\n    \"notifications_unread\": \"New\",\n    \"number\": \"Number\",\n    \"number of columns\": \"Number of Columns\",\n    \"number of days\": \"Number Of Days\",\n    \"number of days after dispatch date\": \"Number Of Days After Dispatch Date\",\n    \"number of games per person\": \"Number of games per person\",\n    \"number of lines for product name\": \"Number of line for product name\",\n    \"number of months\": \"Number Of Months\",\n    \"number of orders\": \"Number of Orders\",\n    \"number of orders (after split)\": \"Number of Orders (After Split)\",\n    \"number of orders (before split)\": \"Number of Orders (Before Split)\",\n    \"number of results\": \"Number of Results\",\n    \"number of selections\": \"Number of Selections\",\n    \"number of transactions\": \"number of transactions\",\n    \"off\": \"Off\",\n    \"offer id\": \"Offer_ID\",\n    \"office fax\": \"Office Fax\",\n    \"office phone\": \"Office Phone\",\n    \"offline\": \"Offline\",\n    \"old exclusive price\": \"Old Exclusive Price\",\n    \"old inclusive price\": \"Old Inclusive Price\",\n    \"old member level points\": \"Old Member Level Points\",\n    \"old store id\": \"Old Store ID\",\n    \"old store name\": \"Old Store Name\",\n    \"on\": \"On\",\n    \"on checkout delivery date selection\": \"Checkout Page Delivery Date Selection\",\n    \"on checkout dispatch date selection\": \"Checkout Page Dispatch Date Selection\",\n    \"on checkout pickup date selection\": \"Checkout Page Pickup Date Selection\",\n    \"on consignment qty\": \"On consignment qty\",\n    \"on hand qty\": \"On Hand Qty\",\n    \"on hold\": \"On Hold\",\n    \"on hold qty (checkout in progress)\": \"On hold qty (checkout in progress)\",\n    \"on paid send email\": \"On Paid Send Email\",\n    \"on sale\": \"On Sale\",\n    \"on sale schedules\": \"On Sale Schedules\",\n    \"on sale tag display position\": \"On Sale Tag Display Position\",\n    \"on sale tag display style\": \"On Sale Tag Display Style\",\n    \"on set date\": \"On set Date\",\n    \"on total\": \"On Total\",\n    \"onHold\": \"On Hold\",\n    \"onSaleScheduleWarning_notOnSale\": \"* When there is no active schedule, this item will use [original price]\",\n    \"onSaleScheduleWarning_onSale\": \"* When there is no active schedule, this item will use [discounted price]\",\n    \"on_consignment_exclusive_total\": \"On consignment excl. total\",\n    \"on_consignment_inclusive_total\": \"On consignment incl. total\",\n    \"once\": \"Once\",\n    \"once off\": \"Once Off\",\n    \"one item limit per checkout\": \"One Item Limit Per Checkout\",\n    \"oneByOne\": \"1x1 (square)\",\n    \"oneToThreeDays\": \"1-3 Days\",\n    \"online\": \"Online\",\n    \"only advanced template\": \"Only Advanced Template\",\n    \"only allow recurring schedules in shop\": \"Only allow recurring schedules in shop\",\n    \"only categories\": \"only categories\",\n    \"only for B2C\": \"Only for B2C\",\n    \"only for mobile preview and slider display\": \"Only for mobile preview and slider display\",\n    \"only include items with sales activity\": \"Only include items with sales activity\",\n    \"only one bulk discount allowed with all product tags\": \"Only one bulk discount allowed with all product tags\",\n    \"only pos\": \"Only POS\",\n    \"only send when customer won prizes\": \"Only send when customer won prizes\",\n    \"only show orders without transporter\": \"Only Show Orders Without Transporter\",\n    \"only show set details (hide parents)\": \"Only show bundle details (hide parents)\",\n    \"only show set parents (hide details)\": \"Only show bundle parents (hide details)\",\n    \"only show shipping description, rate is quoted after order\": \"Only show shipping description, rate is quoted after order\",\n    \"only show variant parents\": \"Only show variant parents\",\n    \"only show variant parents in products search\": \"Only show variant parents in products search\",\n    \"only tags\": \"only tags\",\n    \"open graph\": \"Open Graph\",\n    \"open help\": \"Open Help\",\n    \"open hours\": \"Open Hours\",\n    \"open in new tab\": \"Open in new tab\",\n    \"open link\": \"Open Link\",\n    \"open shop settings\": \"Go To Shop Settings\",\n    \"open web pos\": \"Open Web POS\",\n    \"open_tab\": \"Open Tab\",\n    \"open_window\": \"Open Window\",\n    \"opening balance\": \"Opening Balance\",\n    \"opening inventory book qty\": \"Opening Inventory Book Qty\",\n    \"opening inventory book value\": \"Opening Inventory Book Value\",\n    \"opening inventory on hand qty\": \"Opening Inventory On Hand Qty\",\n    \"opening inventory on hand value\": \"Opening Inventory On Hand Value\",\n    \"opening points\": \"Opening Points\",\n    \"operator\": \"Operator\",\n    \"operator->change logs\": \"Operator > Change Logs\",\n    \"optimized-image\": \"Optimized Image\",\n    \"optional\": \"Optional\",\n    \"options\": \"Options\",\n    \"or\": \"or\",\n    \"order\": \"Order\",\n    \"order #\": \"Order #\",\n    \"order activity showing options\": \"Order Activity Showing Options Setting\",\n    \"order canceled email\": \"Order Canceled Email\",\n    \"order date\": \"Order Date\",\n    \"order dispatched email\": \"Order Dispatched Email\",\n    \"order number\": \"Order Number\",\n    \"order percentage\": \"Order Percentage\",\n    \"order requirements\": \"Order Requirements\",\n    \"order success email\": \"Order Success Email\",\n    \"order summary\": \"Order Summary\",\n    \"order value\": \"Order Value\",\n    \"order-activity-settings\": \"Order Activity Settings\",\n    \"orderValue\": \"Order Value\",\n    \"ordered\": \"Ordered\",\n    \"ordered date\": \"Ordered Date\",\n    \"ordered qty\": \"Ordered Qty\",\n    \"ordered_exclusive_total\": \"Ordered excl. total\",\n    \"ordered_inclusive_total\": \"Ordered incl. total\",\n    \"orders\": \"Orders\",\n    \"orders by date\": \"Orders By Date\",\n    \"original commission base cost\": \"Original Commission Base Cost\",\n    \"original commission total amount\": \"Original Commission Total Amount\",\n    \"original document total\": \"Original document total\",\n    \"original inclusive price\": \"Original Inclusive Price\",\n    \"original total commission\": \"Original Total Commission\",\n    \"original value\": \"Original Value\",\n    \"other\": \"Other\",\n    \"other income\": \"Other Income\",\n    \"out of stock\": \"Out Of Stock\",\n    \"outOfStock\": \"Out Of Stock\",\n    \"outer region\": \"Outer Region\",\n    \"outgoing transactions summary\": \"Outgoing Transactions Summary\",\n    \"outlying islands\": \"Outlying Islands\",\n    \"output\": \"Output\",\n    \"output value\": \"Output Value\",\n    \"outside image\": \"Outside Image\",\n    \"outsideImage\": \"Outside Image\",\n    \"outstanding\": \"Outstanding\",\n    \"outstanding qty\": \"Outstanding Qty\",\n    \"outstanding total\": \"Outstanding Total\",\n    \"outstanding_exclusive_total\": \"Outstanding excl. total\",\n    \"outstanding_inclusive_total\": \"Outstanding incl. total\",\n    \"over limit\": \"Over Limit\",\n    \"overdue commission\": \"Overdue Commission\",\n    \"overlap date description\": \"Overlap date for the schedule\",\n    \"overpaid\": \"Overpaid\",\n    \"overview\": \"Overview\",\n    \"package size\": \"Package Size\",\n    \"package temperature\": \"Package Temperature\",\n    \"package type\": \"Product Type\",\n    \"packageSize\": \"Package Size\",\n    \"packageType\": \"Product Type\",\n    \"packages\": \"Packages\",\n    \"packages_short\": \"Pkg\",\n    \"packaging_dimensions\": \"Packaging Dimensions\",\n    \"packaging_dimensions_unit_default\": \"Default Packaging Dimensions Unit\",\n    \"padding settings\": \"Padding Settings\",\n    \"page\": \"Page\",\n    \"page is hidden on menu\": \"Page is Hidden On Menu\",\n    \"page schedules\": \"Page Schedules\",\n    \"page status\": \"Page Status\",\n    \"page url\": \"Page Url\",\n    \"page view\": \"Page View\",\n    \"page views\": \"Page Views\",\n    \"page views per person\": \"Page Views Per Person\",\n    \"pageBlocks_blogs\": \"Blogs\",\n    \"pageBlocks_buttons\": \"Buttons\",\n    \"pageBlocks_custom\": \"Custom HTML/JS/CSS\",\n    \"pageBlocks_facebookPosts\": \"Facebook Posts\",\n    \"pageBlocks_faqs\": \"Faqs\",\n    \"pageBlocks_features\": \"Features\",\n    \"pageBlocks_flows\": \"Forms\",\n    \"pageBlocks_group_basic\": \"Basic\",\n    \"pageBlocks_group_contents\": \"Contents\",\n    \"pageBlocks_group_marketing\": \"Marketing\",\n    \"pageBlocks_group_payments\": \"Payments\",\n    \"pageBlocks_group_shop\": \"Shop\",\n    \"pageBlocks_group_social\": \"Social\",\n    \"pageBlocks_image\": \"Image\",\n    \"pageBlocks_images\": \"Images\",\n    \"pageBlocks_instagramPosts\": \"Instagram Posts\",\n    \"pageBlocks_links\": \"Links\",\n    \"pageBlocks_links_or_buttons\": \"Links or Buttons\",\n    \"pageBlocks_mailingList\": \"Mailing List\",\n    \"pageBlocks_news\": \"News\",\n    \"pageBlocks_products\": \"Products\",\n    \"pageBlocks_sliders\": \"Sliders\",\n    \"pageBlocks_social-links\": \"Social Links\",\n    \"pageBlocks_socialLinks\": \"Social Links\",\n    \"pageBlocks_tabs\": \"Tabs\",\n    \"pageBlocks_text\": \"Text\",\n    \"pageBlocks_texts\": \"Text\",\n    \"pageBlocks_threadsPosts\": \"Threads Posts\",\n    \"pageBlocks_tikTokPosts\": \"TikTok Posts\",\n    \"pageBlocks_tips\": \"Tips/Donations\",\n    \"pageBlocks_videos\": \"Videos\",\n    \"page_blocks_products_hand_pick_select_cap_warning\": \"You can select up to {count} products.\",\n    \"paid\": \"Paid\",\n    \"parent page\": \"Parent Page\",\n    \"passed allowed refund period\": \"Passed Allowed Refund Period\",\n    \"password\": \"Password\",\n    \"password (at least 4 characters)\": \"Password (At Least 4 Characters)\",\n    \"password (at least 8 characters)\": \"Password (At Least 8 Characters)\",\n    \"password button label\": \"Password Button Label\",\n    \"password description\": \"Password Description\",\n    \"paste\": \"Paste\",\n    \"paste as plain text\": \"paste as plain text\",\n    \"paste block\": \"Paste Block\",\n    \"pay\": \"Pay\",\n    \"pay to account auto expiry\": \"Virtual Account Auto Expiry\",\n    \"payers phone number\": \"Payer's Phone Number\",\n    \"payment\": \"Payment\",\n    \"payment amount\": \"Payment Amount\",\n    \"payment date\": \"Payment Date\",\n    \"payment due\": \"Payment Due\",\n    \"payment due date\": \"Payment Due Date\",\n    \"payment due date will be auto calculated after saving\": \"Payment Due Date Will Be Auto Calculated After Saving\",\n    \"payment fee\": \"Payment Fee\",\n    \"payment is already being processed for this document\": \"A payment for this invoice is already being processed. Please wait a moment and refresh.\",\n    \"payment last 5 digits\": \"Acc Last 5 Digits\",\n    \"payment link\": \"Payment Link\",\n    \"payment method\": \"Payment Method\",\n    \"payment methods\": \"Payment Methods\",\n    \"payment number\": \"payment number\",\n    \"payment overdue date\": \"Payment Overdue Date\",\n    \"payment reminder email\": \"Payment Reminder Email\",\n    \"payment reminder email message\": \"Payment Reminder Email Message\",\n    \"payment reminder email subject\": \"Payment Reminder Email Subject\",\n    \"payment reminder email templates\": \"Payment Reminder Email Templates\",\n    \"payment reminders\": \"Payment Reminders\",\n    \"payment settings\": \"Payment Settings\",\n    \"payment status\": \"Payment Status\",\n    \"payment terms\": \"Payment Terms\",\n    \"payment-flow\": \"Payment Flow\",\n    \"payment-settings\": \"Payment Settings\",\n    \"paymentAndCheckout\": \"Payment and Checkout\",\n    \"payments\": \"Payments\",\n    \"payments and due date\": \"Payments and Due Date\",\n    \"payments->credit card\": \"Payments > Credit Card\",\n    \"payments->line pay\": \"Payments > Line Pay\",\n    \"payments->virtual account\": \"Payments > Virtual Account\",\n    \"payout\": \"Payout\",\n    \"payouts this month\": \"Payouts This Month\",\n    \"payuni\": \"PayUni\",\n    \"payuni / seven eleven email\": \"Payuni / Seven-Eleven Email\",\n    \"payuni-seven-eleven\": \"PayUni 7-11\",\n    \"payuni-seven-eleven credentials\": \"PayUni 7-11 Credentials\",\n    \"payuni-seven-eleven waybill\": \"Payuni 7-11 Waybill\",\n    \"payuni_hash_iv\": \"Hash IV\",\n    \"payuni_hash_key\": \"Hash Key\",\n    \"payuni_import from contact\": \"Import from contact\",\n    \"payuni_installments\": \"PayUni Installments\",\n    \"payuni_merchant_id\": \"Merchant ID\",\n    \"payuni_payments\": \"PayUni Payments\",\n    \"pending\": \"Pending\",\n    \"pending points\": \"Pending Points\",\n    \"pending products\": \"Pending Products\",\n    \"pending qty\": \"Pending Qty\",\n    \"pendingCancellation\": \"Pending Cancellation\",\n    \"per line\": \"Per Line\",\n    \"per year\": \"Per Year\",\n    \"percentage of price\": \"Percentage Of Price\",\n    \"percentage_sign\": \"%\",\n    \"permanently unavailable variant children\": \"Permanently Unavailable Variant Children\",\n    \"person\": \"Person\",\n    \"person + contact\": \"Person + Contact\",\n    \"person name\": \"Person Name\",\n    \"person_export\": \"Person\",\n    \"persons\": \"Persons\",\n    \"persons_count\": \"No. of People\",\n    \"pet supplies\": \"Pet Supplies\",\n    \"phone\": \"Phone\",\n    \"pick a color theme\": \"Pick a color theme\",\n    \"pick up\": \"Pick Up\",\n    \"pick up locations\": \"Pickup Locations\",\n    \"picking list\": \"Picking List\",\n    \"pickup address\": \"Pickup Address\",\n    \"pickup convenience store change requires store closure notification\": \"The pickup store can only be changed after 7-ELEVEN reports a store closure/relocation (門市關轉) for this waybill.\",\n    \"pickup date options\": \"Pickup Date Options\",\n    \"pickup date settings\": \"Pickup Date Settings\",\n    \"pickup date subtitle\": \"Checkout Page Pickup Date Subtitle : Show On Checkout Page\",\n    \"pickup locations\": \"Pickup Locations\",\n    \"pickup methods\": \"Pickup Methods\",\n    \"pickup settings\": \"Pickup Settings\",\n    \"pickup-settings\": \"Pickup Settings\",\n    \"pickupAddress\": \"Pickup Address\",\n    \"picture-desktop\": \"picture (desktop)\",\n    \"picture-tablet\": \"picture (tablet)\",\n    \"pin\": \"Pin\",\n    \"pinned\": \"Pinned\",\n    \"pixel id\": \"Pixel ID\",\n    \"plan\": \"Plan\",\n    \"plan name\": \"Plan Name\",\n    \"please add\": \"Please Add\",\n    \"please allow popups to open\": \"Please allow popups to open\",\n    \"please check email for two factor authentication code\": \"Please check email for two factor authentication code\",\n    \"please login to view this page\": \"Please login to view this page\",\n    \"please press print again to see changes\": \"please press print again to see changes\",\n    \"please select\": \"Please Select\",\n    \"podKey\": \"PodKey\",\n    \"point\": \"point\",\n    \"points\": \"{points} points\",\n    \"points adjustment email\": \"Points Adjustment Email\",\n    \"points become valid after number of days\": \"points become valid after number of days\",\n    \"points earned\": \"Points Earned\",\n    \"points expiry date\": \"Points Expiry Date\",\n    \"points expiry time\": \"Points Expiry Time\",\n    \"points spent\": \"Points Spent\",\n    \"points to adjust\": \"Points To Adjust\",\n    \"points to adjust expiry date\": \"Points To Adjust Expiry Date\",\n    \"points to send\": \"Points To Send\",\n    \"pos\": \"POS\",\n    \"pos link\": \"POS Link\",\n    \"pos profile\": \"POS Profile\",\n    \"pos profile not found\": \"POS profile Not Found\",\n    \"pos terminal\": \"POS Terminal\",\n    \"position\": \"Position\",\n    \"position_center-bottom\": \"Center Bottom\",\n    \"position_center-center\": \"Center\",\n    \"position_center-top\": \"Center Top\",\n    \"position_left-bottom\": \"Left Bottom\",\n    \"position_left-top\": \"Left Top\",\n    \"position_right-bottom\": \"Right Bottom\",\n    \"position_right-top\": \"Right Top\",\n    \"possibly missing data\": \"Possibly missing data\",\n    \"post office\": \"Post Office\",\n    \"postCode\": \"Postal Code\",\n    \"postal codes\": \"Postal Codes\",\n    \"power\": \"Power\",\n    \"pre order\": \"Pre Order\",\n    \"preOrder\": \"Pre Order\",\n    \"preOrder stats\": \"Pre Order Stats\",\n    \"preOrder-notes\": \"Pre Order Notes\",\n    \"preferred delivery time\": \"Preferred Delivery Time\",\n    \"prepare for dispatch\": \"Prepare For Dispatch\",\n    \"preparing\": \"Preparing\",\n    \"preset commissions\": \"Preset Commissions\",\n    \"presets\": \"Presets\",\n    \"press\": \"Press\",\n    \"press enter or search button to search\": \"Press Enter or Search Button to Search\",\n    \"press enter to select, and search button to search\": \"Press Enter to Select, and Search Button to Search\",\n    \"preview\": \"Preview\",\n    \"preview animation\": \"Preview Animation\",\n    \"preview merge\": \"Preview Merge\",\n    \"previous\": \"Previous\",\n    \"previous button label\": \"Previous Button Label\",\n    \"previous step\": \"Previous Step\",\n    \"price\": \"Price\",\n    \"price (for accounting purpose)\": \"Price (for Accounting Purpose)\",\n    \"price history\": \"Price History\",\n    \"price range\": \"Price Range\",\n    \"priceAsc\": \"Price from low to high\",\n    \"priceDesc\": \"Price from high to low\",\n    \"priceLessThanPriceDiscounted\": \"Inclusive Discounted Price: Must be smaller than inclusive price\",\n    \"pricing\": \"Pricing\",\n    \"print\": \"Print\",\n    \"print all\": \"Print All\",\n    \"print all delivery notes\": \"Print All Delivery Notes\",\n    \"print all eInvoices\": \"Issue All E-Invoices\",\n    \"print all invoices\": \"Print All Invoices\",\n    \"print all waybills\": \"Print All Waybills\",\n    \"print delivery note\": \"Print Delivery Note\",\n    \"print document paper size\": \"Print Document Paper Size\",\n    \"print format\": \"Print Format\",\n    \"print hct summary\": \"Print HCT Summary\",\n    \"print image size\": \"Print Image Size\",\n    \"print images\": \"Print Images\",\n    \"print images on documents\": \"Print Images On Documents\",\n    \"print invoice\": \"Print Invoice\",\n    \"print invoices\": \"Print Invoices\",\n    \"print picking list\": \"Print Picking List\",\n    \"print settings\": \"Print Settings\",\n    \"print statement\": \"Print Statement\",\n    \"print units\": \"Print Units\",\n    \"print waybill\": \"Print Waybill\",\n    \"print waybills count is not the same as invoices count. are you sure you want to continue\": \"Print Waybills Count Is Not The Same As Invoices Count. Are You Sure You Want To Continue?\",\n    \"print waybills starting position\": \"Print Waybills Starting Position\",\n    \"print: {printedStatus}\": \"Print: {printedStatus}\",\n    \"print_delivery_note_prices\": \"Print Delivery Note (with prices)\",\n    \"printed\": \"Printed\",\n    \"printed products\": \"Printed Products\",\n    \"printed to reprint\": \"Printed to reprint\",\n    \"printer\": \"Printer\",\n    \"printer download mac arm\": \"Mac (M chips)\",\n    \"printer download mac intel\": \"Mac (Intel)\",\n    \"printer download windows\": \"Windows\",\n    \"printer error, please check printer connection\": \"Printer Error, Please check printer connection.\",\n    \"printer id\": \"Printer ID\",\n    \"printer model\": \"Printer Model\",\n    \"printer model hprt tp805\": \"HPRT TP805\",\n    \"printer model microchip\": \"E-Invoice Printer (Microchip)\",\n    \"printerAllocatedNumbers\": \"Printer allocated numbers\",\n    \"privacy policy\": \"Privacy Policy\",\n    \"private\": \"private\",\n    \"private notes\": \"private notes\",\n    \"private shop templates\": \"My Shop Templates\",\n    \"private templates\": \"My Templates\",\n    \"prize\": \"Prize\",\n    \"prize description\": \"Description\",\n    \"prize_successfulMessage\": \"Prize Message\",\n    \"prize_successfulTitle\": \"Prize Title\",\n    \"probably missing data\": \"Probably missing data!\",\n    \"process_order\": \"Order\",\n    \"processing\": \"Processing\",\n    \"processing please wait\": \"Processing please wait\",\n    \"product\": \"Product\",\n    \"product code\": \"Product Code\",\n    \"product decimal places\": \"Product Decimal Places\",\n    \"product display\": \"Product Display\",\n    \"product grouping\": \"Product Grouping\",\n    \"product image ratio\": \"Product Image Ratio (Width x Height)\",\n    \"product images\": \"Product Images\",\n    \"product images size\": \"Product Images Size\",\n    \"product info\": \"Product Info\",\n    \"product information\": \"Product information\",\n    \"product limits\": \"Product Limits\",\n    \"product name\": \"Product Name\",\n    \"product price rounding\": \"Product Price Rounding\",\n    \"product schedules\": \"Product Schedules\",\n    \"product set\": \"Bundle\",\n    \"product set with choices\": \"Bundle With Choices\",\n    \"product sets\": \"Bundles\",\n    \"product settings\": \"Product Settings\",\n    \"product size\": \"Product Size\",\n    \"product stats\": \"Product Stats\",\n    \"product status\": \"Product Status\",\n    \"product tags\": \"Product Tags\",\n    \"product type\": \"Product Type\",\n    \"product url\": \"Product Url\",\n    \"product_description\": \"Product Description\",\n    \"product_description_short\": \"Desc\",\n    \"product_general\": \"General\",\n    \"product_set\": \"Bundle\",\n    \"product_set_price\": \"Bundle Price\",\n    \"product_sets\": \"Bundle\",\n    \"product_sets_contents\": \"Bundle Contents\",\n    \"product_sets_with_choices\": \"Bundle With Choices\",\n    \"product_sets_with_choices_contents\": \"Bundle With Choices Contents\",\n    \"product_short description\": \"Short Description\",\n    \"product_sync\": \"Re-Sync With Products\",\n    \"product_sync_warning\": \"Changes to product will not reflect in shop. Please press the re-sync buttton to update shop.\",\n    \"product_tags_any\": \"Contains\",\n    \"product_tags_only\": \"Only\",\n    \"product_type_collect_on_behalf\": \"Collect on Behalf\",\n    \"product_type_inventory\": \"Product or Service\",\n    \"product_type_service\": \"Service Product\",\n    \"product_type_virtual\": \"Virtual Product\",\n    \"products\": \"Products\",\n    \"products display settings\": \"Products Display Settings\",\n    \"products images hover brightness effect\": \"Products images hover brightness effect\",\n    \"products images hover zoom effect\": \"Products images hover zoom effect\",\n    \"products images radius\": \"Products Images Radius\",\n    \"products images ratio\": \"Products Images Ratio\",\n    \"products images size\": \"Products Images Size\",\n    \"products in this shop\": \"Products in this Shop\",\n    \"products overview name\": \"Shop overview name\",\n    \"products overview style\": \"Shop overview style\",\n    \"products per page\": \"Products per page\",\n    \"products sort by\": \"Products Sort By\",\n    \"products to be converted to normal product\": \"Products to be converted to normal product\",\n    \"products to be converted to variant child product\": \"Products to be converted to variant child product\",\n    \"products variants code separator\": \"Products Variants Code Separator\",\n    \"products variants name separator\": \"Products Variants Name Separator\",\n    \"products_management\": \"Products\",\n    \"profile\": \"Profile\",\n    \"promo code\": \"Promo Code\",\n    \"promo code (at least 6 characters)\": \"Promo Code (at least 6 characters)\",\n    \"promo codes\": \"Promo Codes\",\n    \"promotion\": \"Promotion\",\n    \"property\": \"Property\",\n    \"provider\": \"Provider\",\n    \"public\": \"public\",\n    \"public description\": \"Public Description\",\n    \"public release notes\": \"public release notes\",\n    \"public status\": \"Public Status (Visible to the public)\",\n    \"public templates\": \"Default Templates\",\n    \"pulse\": \"Pulse\",\n    \"purchases\": \"Purchases\",\n    \"purchases consignment\": \"Purchases Consignment\",\n    \"purchases consignment overview\": \"Purchases Consignment Overview\",\n    \"purchases consignment receipt\": \"Purchases Consignment Receipt\",\n    \"purchases consignment return\": \"Purchases Consignment Return\",\n    \"purchases count\": \"Purchases Count\",\n    \"purchases enquiry\": \"Purchases Enquiry\",\n    \"purchases invoice\": \"Purchases Invoice\",\n    \"purchases invoices this month\": \"Purchases Invoices This Month\",\n    \"purchases order\": \"Purchases Order\",\n    \"purchases price history\": \"Purchases Price History\",\n    \"purchases return\": \"Purchases Return\",\n    \"purchases returns this month\": \"Purchases Returns This Month\",\n    \"purchases terms\": \"Purchases Terms\",\n    \"purchases value\": \"Purchases Value\",\n    \"purchases->consignments\": \"Purchases > Consignments\",\n    \"purchases->consignments->purchases-consignments\": \"Purchases > Consignments > Consignment Receipt\",\n    \"purchases->consignments->purchases-consignments-returns\": \"Purchases > Consignments > Consignment Return\",\n    \"purchases->doc-pending\": \"Purchases > Pending Orders\",\n    \"purchases->purchases-invoices\": \"Purchases > Purchases Invoice\",\n    \"purchases->purchases-orders\": \"Purchases > Purchases Order\",\n    \"purchases->purchases-quotes\": \"Purchases > Purchases Enquiry\",\n    \"purchases->purchases-returns\": \"Purchases > Debit Note\",\n    \"purchases-consignments\": \"Consignment Receipt\",\n    \"purchases-consignments-returns\": \"Consignment Return\",\n    \"purchases-invoices\": \"Purchases Invoice\",\n    \"purchases-orders\": \"Purchases Order\",\n    \"purchases-pending\": \"Purchases: Pending\",\n    \"purchases-pending: display tax method\": \"Purchases Pending Report: Display tax method\",\n    \"purchases-purchases-consignments\": \"Consignment Receipt\",\n    \"purchases-purchases-consignments-returns\": \"Consignment Return\",\n    \"purchases-purchases-invoices\": \"Purchases Invoice\",\n    \"purchases-purchases-orders\": \"Purchases Order\",\n    \"purchases-purchases-quotes\": \"Purchases Enquiry\",\n    \"purchases-purchases-returns\": \"Debit Note\",\n    \"purchases-quotes\": \"Purchases Enquiry\",\n    \"purchases-returns\": \"Debit Note\",\n    \"purchases: on consignment\": \"Purchases: On Consignment\",\n    \"purchases: on consignment qty\": \"Purchases: On Consignment Qty\",\n    \"purchases_delivered_exclusive_total\": \"Received excl. total\",\n    \"purchases_delivered_inclusive_total\": \"Received incl. total\",\n    \"purchasing exclusive price\": \"Purchasing Exclusive Price\",\n    \"purchasing inclusive price\": \"Purchasing inclusive Price\",\n    \"px\": \"px\",\n    \"qr code\": \"QR Code\",\n    \"qr code admissions\": \"QR Code Admissions\",\n    \"qr codes\": \"QR Codes\",\n    \"qrCodes admissions personnel\": \"QR Codes Admissions Personnel\",\n    \"qty\": \"Qty\",\n    \"qty cannot be empty or have value below one\": \"Qty cannot be empty or have value below one!\",\n    \"qty cannot be greater than the allowed qty\": \"Qty cannot be greater than the allowed qty!\",\n    \"qty sold\": \"Qty Sold\",\n    \"qty sold (to invoice)\": \"qty sold (to invoice)\",\n    \"quantity\": \"Quantity\",\n    \"quantity based rates\": \"Quantity Based Rates\",\n    \"query\": \"Query\",\n    \"question\": \"Question\",\n    \"questions\": \"Questions\",\n    \"queued\": \"Queued\",\n    \"quick add\": \"Quick Add\",\n    \"quick links\": \"Quick Links\",\n    \"quick login\": \"Quick Login\",\n    \"quickTip\": \"QuickTip\",\n    \"quote\": \"Quote\",\n    \"range separator\": \"And\",\n    \"rate\": \"Rate\",\n    \"rate table\": \"Rate table\",\n    \"ratio_original\": \"Original\",\n    \"re-download\": \"Re-Download\",\n    \"re-download already generated waybills\": \"Re-Download already generated Waybills\",\n    \"re-download waybills\": \"Re-Download Waybills\",\n    \"re-index\": \"Re-Index\",\n    \"re-index all products\": \"Re-Index All Products\",\n    \"re-login\": \"re-login\",\n    \"re-order qty\": \"Re-Order Qty\",\n    \"re-sync product stats\": \"Re-Sync Product Stats\",\n    \"real qty sold\": \"Real qty sold\",\n    \"reason\": \"Reason\",\n    \"recalculate inventory\": \"Recalculate Inventory\",\n    \"receipt\": \"Receipt\",\n    \"receipts\": \"Receipts\",\n    \"received qty\": \"Received qty\",\n    \"received_exclusive_total\": \"Received excl. total\",\n    \"received_inclusive_total\": \"Received incl. total\",\n    \"receivers mobile number\": \"Receivers Mobile Number\",\n    \"recipient\": \"Recipient\",\n    \"recommended\": \"Recommended\",\n    \"record commissions\": \"Record Commissions\",\n    \"recurring order email\": \"Recurring Order Email\",\n    \"recurring orders\": \"Recurring orders\",\n    \"recurring schedule\": \"Recurring Schedule\",\n    \"recurring schedules\": \"Recurring Schedules\",\n    \"recurring settings\": \"Recurring Settings\",\n    \"recurring-settings\": \"Recurring Settings\",\n    \"recurring_discount_behavior\": \"Recurring Discounts Behavior\",\n    \"recurring_discount_paymentReminder\": \"Recurring Payment Reminder\",\n    \"recurring_only\": \"Recurring only\",\n    \"recurring_options\": \"Options\",\n    \"recurring_shipping_behavior\": \"Recurring Shipping Fee Behavior\",\n    \"ref\": \"Ref\",\n    \"refech barcode\": \"Refech Barcode\",\n    \"reference\": \"Reference\",\n    \"referenced field is not a date\": \"referenced field is not a date\",\n    \"referenced field is not a number\": \"referenced field is not a number\",\n    \"referral email\": \"Referral Email\",\n    \"referral_message\": \"Referral Message\",\n    \"referral_reward\": \"Referral Reward\",\n    \"referral_reward_details\": \"Referral reward event details\",\n    \"referral_reward_for_recipient\": \"For Recipient\",\n    \"referral_reward_for_referrer\": \"For Referrer\",\n    \"referral_reward_limit per day\": \"Limit per Day\",\n    \"referral_reward_recipient\": \"Recipient\",\n    \"referral_reward_referrer\": \"Referrer\",\n    \"refresh\": \"Refresh\",\n    \"refrigerated\": \"Refrigerated\",\n    \"refund\": \"Refund\",\n    \"refund amount\": \"Refund Amount\",\n    \"refund credit card\": \"Refund Credit Card\",\n    \"refund credit card total\": \"Refund Credit Card Total\",\n    \"refund line pay\": \"Refund Line Pay\",\n    \"refund payment\": \"Refund Payment\",\n    \"refund reminder amount\": \"Refund Reminder Amount\",\n    \"refunds\": \"Refunds\",\n    \"refunds require authorization\": \"Refunds require authorization\",\n    \"refunds settings\": \"Refunds Settings\",\n    \"regenerate access code\": \"regenerate access code\",\n    \"regenerate document number\": \"regenerate document number\",\n    \"region\": \"Region\",\n    \"region code\": \"Region Code\",\n    \"regions\": \"Regions\",\n    \"related\": \"Related\",\n    \"relationship\": \"Relationship\",\n    \"relationships\": \"Relationships\",\n    \"reload inventory reports\": \"Reload inventory reports\",\n    \"remaining\": \"Remaining\",\n    \"remaining qty\": \"Remaining Qty\",\n    \"remember credit card\": \"Remember credit card\",\n    \"reminder limits qty\": \"Add Reminder When Product Qty Falls Below Specific Qty\",\n    \"remove\": \"Remove\",\n    \"remove all row\": \"Remove All Row\",\n    \"remove bulk discount\": \"Remove Bulk Discount\",\n    \"remove cell\": \"Remove Cell\",\n    \"remove convenience store\": \"Remove convenience store\",\n    \"remove from block\": \"Remove from block\",\n    \"remove image\": \"Remove Image\",\n    \"remove item from page\": \"Remove Item From Page\",\n    \"remove pickup location\": \"Remove Pickup Location\",\n    \"remove product from shop\": \"Remove Product From Shop\",\n    \"remove selected products\": \"Remove Selected Products\",\n    \"remove waybill\": \"Remove Waybill\",\n    \"remove waybill warning\": \"Do not ship with the old label. After removing, edit the document if needed, then print to generate a new waybill.\",\n    \"remove_from_block_confirm\": \"Remove from this block? The product stays in the shop.\",\n    \"repeat order info for each detail row\": \"Repeat order info for each detail row\",\n    \"replace\": \"Replace\",\n    \"replace default message\": \"Replace Default Message\",\n    \"report\": \"Report\",\n    \"report link\": \"report link\",\n    \"report password\": \"Report Password\",\n    \"reports\": \"Reports\",\n    \"reports->commissions\": \"Reports > Commissions\",\n    \"reports->sales\": \"Reports > Sales\",\n    \"reprint\": \"Reprint\",\n    \"reprint is only available in the printed tab\": \"Reprint is only available in the Printed tab\",\n    \"request missing waybills\": \"request missing waybills\",\n    \"request waybills\": \"Request Waybills\",\n    \"requestId\": \"Request ID\",\n    \"requested a todo from\": \"requested a todo from\",\n    \"required\": \"Required\",\n    \"resend\": \"Resend\",\n    \"resend order webhook event\": \"Webhook: resend order data\",\n    \"reset commission presets\": \"Reset commission presets\",\n    \"reset inventory data\": \"Reset Inventory Data\",\n    \"reset inventory date\": \"Reset Inventory Date\",\n    \"resolved\": \"Resolved\",\n    \"resource\": \"Resource\",\n    \"restrict login using ip addresses\": \"Restrict login using ip addresses\",\n    \"results\": \"Results\",\n    \"return\": \"Return\",\n    \"return all discount\": \"Return all discount\",\n    \"return convenience store\": \"Return Convenience Store\",\n    \"return convenience store change requires store closure notification\": \"The return store can only be changed after 7-ELEVEN reports a store closure/relocation (門市關轉) for this waybill.\",\n    \"return points spent\": \"Return points spent\",\n    \"return qty\": \"Return Qty\",\n    \"return storeAddress\": \"Return Store Address\",\n    \"return storeId\": \"Return Store Id\",\n    \"return storeName\": \"Return Store Name\",\n    \"return_points_adjustment_explanation\": \"The refund amount has been adjusted because there weren’t enough points to deduct. Some of the points earned from this order may have already been used\",\n    \"returningCustomer\": \"Returning Customer\",\n    \"returns\": \"Returns\",\n    \"returns application email\": \"Returns Application Email\",\n    \"returns inclusive total\": \"Returns Inclusive Total\",\n    \"revenue\": \"Revenue\",\n    \"revenue by age\": \"Revenue By Age\",\n    \"revenue by campaign\": \"Revenue By Campaign\",\n    \"revenue by channel\": \"Revenue By Channel\",\n    \"revenue by contact\": \"Revenue By Contact\",\n    \"revenue by contact tags\": \"Revenue By Contact Tags\",\n    \"revenue by customer type\": \"Revenue By Customer Type\",\n    \"revenue by day\": \"Revenue By Day\",\n    \"revenue by gender\": \"Revenue By Gender\",\n    \"revenue by member type\": \"Revenue By Member Type\",\n    \"revenue by month\": \"Revenue By Month\",\n    \"revenue by payment method\": \"Revenue By Payment Method\",\n    \"revenue by product\": \"Revenue By Product\",\n    \"revenue by product (all)\": \"Revenue By Product (All)\",\n    \"revenue by product (dispatched)\": \"Revenue By Product (Dispatched)\",\n    \"revenue by promo code\": \"Revenue By Promo Code\",\n    \"revenue for campaign\": \"Revenue For Campaign\",\n    \"revenue for month\": \"Revenue For Month\",\n    \"revenue for year\": \"Revenue For Year\",\n    \"revenue percentage\": \"Revenue Percentage\",\n    \"revert to draft\": \"Revert to Draft\",\n    \"review steps\": \"Review Steps\",\n    \"reviewSettings\": \"Review Settings\",\n    \"reward\": \"Reward\",\n    \"reward earning rate from total order\": \"{rate}% from total price of order\",\n    \"reward event\": \"Reward Event\",\n    \"reward event allow on sale\": \"Allow on Sale\",\n    \"reward event allow to earn points\": \"Allow To Earn Points\",\n    \"reward event allow with promo code\": \"Allow with Promo Code\",\n    \"reward event earn\": \"Earn\",\n    \"reward event earn as promo code\": \"Earn as promo code\",\n    \"reward event expiry\": \"Expiry Time\",\n    \"reward event max deduction\": \"Maximum Points Allowed To Spend Per Order\",\n    \"reward event rate per Point\": \"Exchange Rate Per Point\",\n    \"reward event requirement\": \"Minimum spend amount to earn points\",\n    \"reward event spend\": \"Spend\",\n    \"reward event start\": \"Start Time\",\n    \"reward event status\": \"Status\",\n    \"reward event type\": \"Reward Type\",\n    \"reward for specific product tags\": \"Reward for Specific Product Tags\",\n    \"reward history\": \"Reward History\",\n    \"reward name\": \"Reward Name\",\n    \"reward notification email\": \"Reward Notification Email\",\n    \"reward points\": \"Reward Points\",\n    \"rewardInclTotal\": \"Rewards Inclusive Total\",\n    \"reward_adjustment\": \"Adjustment\",\n    \"reward_adjustment_points\": \"Adjustment Points\",\n    \"reward_birthday\": \"Birthday\",\n    \"reward_birthday_points\": \"Birthday Points\",\n    \"reward_current_points\": \"Closing Points\",\n    \"reward_earned_points\": \"Earned Points\",\n    \"reward_event_birthday\": \"Points Awarded For Birthday\",\n    \"reward_event_order\": \"Points Awarded Per Order\",\n    \"reward_event_referral\": \"Points Awarded Per Referral\",\n    \"reward_event_signup\": \"Points Awarded For Signup\",\n    \"reward_expire_soon\": \"Expiring Soon\",\n    \"reward_memberLevelAdjustment\": \"Member Level Adjustment\",\n    \"reward_no_data\": \"No reward history at this periods\",\n    \"reward_opening\": \"Opening Balance\",\n    \"reward_opening_points\": \"Opening Points\",\n    \"reward_order\": \"Order\",\n    \"reward_pointsAdjustment\": \"Points Adjustment\",\n    \"reward_promotion\": \"Promotion\",\n    \"reward_promotion_points\": \"Promotion Points\",\n    \"reward_referral\": \"Referral\",\n    \"reward_referral_points\": \"Referral Points\",\n    \"reward_return\": \"Return\",\n    \"reward_returns\": \"Return\",\n    \"reward_signup\": \"Sign up\",\n    \"reward_signup_points\": \"Sign Up Points\",\n    \"reward_spent_points\": \"Spent Points\",\n    \"rewards\": \"Rewards\",\n    \"rewards inclusive total\": \"Rewards Inclusive Total\",\n    \"rewards promotion email\": \"Rewards Promotion Email (Manually sending rewards)\",\n    \"rewind\": \"Rewind\",\n    \"ribbon\": \"Ribbon\",\n    \"rid\": \"RID\",\n    \"right\": \"Right\",\n    \"role\": \"Role\",\n    \"rotate\": \"Rotate\",\n    \"rotateIn\": \"Rotate In\",\n    \"row\": \"Row\",\n    \"rss feeds\": \"RSS feeds\",\n    \"rss_description\": \"Enable RSS feeds for Facebook and Google\",\n    \"rss_feed_name\": \"RSS Consumer Name\",\n    \"rss_feed_url\": \"RSS URL\",\n    \"rubberBand\": \"Rubber Band\",\n    \"rule set\": \"Rule Set\",\n    \"rules_notes\": \"You can write down your internal rules and best practices here. This allows everyone on your team to follow the same rules and procedures.\",\n    \"sales\": \"Sales\",\n    \"sales consignment\": \"Sales Consignment\",\n    \"sales consignment delivery\": \"Sales Consignment Delivery\",\n    \"sales consignment overview\": \"Sales Consignment Overview\",\n    \"sales consignment return\": \"Sales Consignment Return\",\n    \"sales count\": \"Sales Count\",\n    \"sales invoice\": \"Sales Invoice\",\n    \"sales limits\": \"Sales Limits\",\n    \"sales limits by specific dates\": \"Sales Limits By Specific Dates\",\n    \"sales limits by weekdays\": \"Sales Limits By Weekdays (Repeats weekly)\",\n    \"sales limits per day\": \"Sales Limits Per Day\",\n    \"sales or purchases metrics\": \"Sales / Purchases Metrics\",\n    \"sales order\": \"Sales Order\",\n    \"sales person\": \"Sales Person\",\n    \"sales persons\": \"Sales Persons\",\n    \"sales price history\": \"Sales Price History\",\n    \"sales quote\": \"Sales Quote\",\n    \"sales report\": \"Sales Report\",\n    \"sales return\": \"Sales Return\",\n    \"sales terms\": \"Sales Terms\",\n    \"sales value\": \"Sales Value\",\n    \"sales->consignments\": \"Sales > Consignments\",\n    \"sales->consignments->sales-consignments\": \"Sales > Consignments > Consignment Delivery\",\n    \"sales->consignments->sales-consignments-returns\": \"Sales > Consignments > Consignment Return\",\n    \"sales->doc-pending\": \"Sales > Pending Orders\",\n    \"sales->sales-invoices\": \"Sales > Sales Invoice\",\n    \"sales->sales-orders\": \"Sales > Sales Order\",\n    \"sales->sales-quotes\": \"Sales > Sales Quote\",\n    \"sales->sales-returns\": \"Sales > Credit Note\",\n    \"sales-consignments\": \"Consignment Delivery\",\n    \"sales-consignments-returns\": \"Consignment Return\",\n    \"sales-invoices\": \"Sales Invoice\",\n    \"sales-orders\": \"Sales Order\",\n    \"sales-pending\": \"Sales: Pending\",\n    \"sales-pending: display tax method\": \"Sales Pending Report: Display tax method\",\n    \"sales-quotes\": \"Sales Quote\",\n    \"sales-returns\": \"Credit Note\",\n    \"sales-sales-consignments\": \"Consignment Delivery\",\n    \"sales-sales-consignments-returns\": \"Consignment Return\",\n    \"sales-sales-invoices\": \"Sales Invoice\",\n    \"sales-sales-orders\": \"Sales Order\",\n    \"sales-sales-quotes\": \"Sales Quote\",\n    \"sales-sales-returns\": \"Credit Note\",\n    \"sales: on consignment\": \"Sales: On Consignment\",\n    \"sales: on consignment qty\": \"Sales: On Consignment Qty\",\n    \"sales_delivered_exclusive_total\": \"Delivered excl. total\",\n    \"sales_delivered_inclusive_total\": \"Delivered incl. total\",\n    \"same as date end\": \"Same as date end\",\n    \"same as drop off\": \"Same as drop off\",\n    \"same line\": \"Same Line\",\n    \"samsung pay\": \"Samsung Pay\",\n    \"samsungPay\": \"Samsung Pay\",\n    \"saturday\": \"Saturday\",\n    \"saturday opening hours\": \"Saturday Opening Hours\",\n    \"save\": \"Save\",\n    \"save and edit shop prices\": \"Save and Edit Shop Prices\",\n    \"save and go next\": \"Save and Go Next\",\n    \"save and update next invoice number\": \"Save and Update Next Invoice Number\",\n    \"save as color template\": \"Save As Color Template\",\n    \"save as copy\": \"Save as Copy\",\n    \"save as draft\": \"Save as Draft\",\n    \"save as template\": \"Save as Template\",\n    \"save as void\": \"Save as Void\",\n    \"save this search\": \"Save this search\",\n    \"saved\": \"Saved\",\n    \"scale crop\": \"Fill\",\n    \"schedule\": \"Schedule\",\n    \"schedule status\": \"Schedule Status\",\n    \"scheduled\": \"Scheduled\",\n    \"scheduled payment\": \"Scheduled Payment\",\n    \"scheduled_tasks\": \"Scheduled Tasks\",\n    \"scheduled_time\": \"Scheduled Time\",\n    \"schedules\": \"Schedules\",\n    \"scratch card background\": \"Scratch Card (Background)\",\n    \"scratch card background background color\": \"Scratch Card Background Background Color\",\n    \"scratch card background image\": \"Scratch Card Background Image\",\n    \"scratch card background text\": \"Scratch Card Background Text\",\n    \"scratch card background text color\": \"Scratch Card Background Text Color\",\n    \"scratch card cover\": \"Scratch Card (Cover)\",\n    \"scratch card cover background color\": \"Scratch Card Cover Background Color\",\n    \"scratch card cover image\": \"Scratch Card Cover Image\",\n    \"scratch card cover text\": \"Scratch Card Cover Text\",\n    \"scratch card cover text color\": \"Scratch Card Cover Text Color\",\n    \"scratch card image size\": \"Scratch Card Image Size\",\n    \"scratch card image size warning text\": \"If the scratch card image ratio is inconsistant with the image ratio, it may leads to distortion\",\n    \"scratch card settings\": \"Scratch Card Settings\",\n    \"scratch card type\": \"Type\",\n    \"screen\": \"Screen\",\n    \"scrolling-notification\": \"Navbar Scrolling Notification\",\n    \"seafood / meat\": \"Seafood / Meat\",\n    \"search\": \"Search\",\n    \"search bulk discounts\": \"Search bulk discounts\",\n    \"search companies\": \"Search Companies\",\n    \"search existing product\": \"Search Existing Product\",\n    \"search filters\": \"Search Filters\",\n    \"search flows\": \"Search Flows\",\n    \"search images\": \"Search Images\",\n    \"search products\": \"Search Products\",\n    \"search reference\": \"Search Reference\",\n    \"search reward name\": \"Search Reward Name\",\n    \"search shipping zones\": \"Search Shipping Zones\",\n    \"select\": \"Select\",\n    \"select a preset website theme\": \"Select a Preset Website Theme\",\n    \"select all\": \"Select All\",\n    \"select all main island\": \"Select All Main Island\",\n    \"select all outlying\": \"Select All Outlying\",\n    \"select animation\": \"Select Animation\",\n    \"select blogs\": \"Select Blogs\",\n    \"select company\": \"Select Company\",\n    \"select dispatch date\": \"Select Dispatch Date\",\n    \"select dispatch or arrival date\": \"Set Dispatch Date Or Arrival Date\",\n    \"select einvoice printer terminal\": \"Select E-Invoice Printer Terminal\",\n    \"select element\": \"Select Element\",\n    \"select image\": \"Select Image\",\n    \"select images\": \"Select\",\n    \"select iteration count\": \"Select Iteration Count\",\n    \"select news\": \"Select News\",\n    \"select periods\": \"Select Periods\",\n    \"select product\": \"Select Product\",\n    \"select reward program first\": \"Select reward program first\",\n    \"select specific dates\": \"Select Exclude Specific Date(s)\",\n    \"select stage\": \"Select Stage\",\n    \"select store closed day\": \"Set Store Closed Day(s)\",\n    \"select workflow\": \"Select Workflow\",\n    \"selectable\": \"Selectable\",\n    \"selected campaigns review\": \"Selected Campaigns Review\",\n    \"selected items\": \"Selected Items\",\n    \"selected orders\": \"Selected Orders\",\n    \"selling exclusive price\": \"Selling Exclusive Price\",\n    \"selling inclusive price\": \"Selling Inclusive Price\",\n    \"send\": \"Send\",\n    \"send a copy of email to addresses\": \"Send a copy of email to addresses\",\n    \"send a copy of order email to addresses\": \"Send a copy of order email to addresses\",\n    \"send a copy of order messages to addresses\": \"Send a copy of order messages to addresses\",\n    \"send all dispatched emails\": \"Send All Dispatched Emails\",\n    \"send all emails\": \"Send All Emails\",\n    \"send birthday reward\": \"Send Birthday Reward\",\n    \"send birthday rewards manually\": \"Send Birthday Rewards Manually\",\n    \"send dispatched email\": \"Send Dispatched Email\",\n    \"send document\": \"Send document\",\n    \"send email\": \"Send Email\",\n    \"send email message\": \"Send Email Message\",\n    \"send email to customer\": \"Send email to customer (need to have customer's email!)\",\n    \"send emails\": \"Send Emails\",\n    \"send emails when successful\": \"Send e-mail after flow is submitted\",\n    \"send from website\": \"Send From Website\",\n    \"send how many times?\": \"Send how many times?\",\n    \"send payment reminder when overdue by\": \"Send Payment Reminder When Overdue By\",\n    \"send pickup reminder on these days after ready for pickup\": \"Send pickup reminder on these days after ready for pickup\",\n    \"send reminder when the package is ready for pickup in seven eleven\": \"Send reminder when the package is ready for pickup in seven eleven\",\n    \"send reward\": \"Send Reward\",\n    \"send reward manually\": \"Send Reward Manually\",\n    \"send test email\": \"Send Test Email\",\n    \"send void email\": \"Send Void Email\",\n    \"sender address\": \"Sender Address\",\n    \"sender company\": \"Sender Company\",\n    \"sender name\": \"Sender Name\",\n    \"sender telephone\": \"Sender Telephone\",\n    \"sender_address\": \"Sender Address\",\n    \"sent_member_level_adjustment\": \"Sent: Member Level Adjustment\",\n    \"sent_valid_points_adjustment\": \"Sent: Valid Points Adjustment\",\n    \"seo\": \"SEO\",\n    \"seo-settings\": \"SEO Settings\",\n    \"separate each keyword using comma\": \"Separate each keywords using comma\",\n    \"separate line\": \"Separate Line (Desktop Only)\",\n    \"separator\": \"Separator\",\n    \"server logs\": \"Server Logs\",\n    \"session expired due to inactivity\": \"session expired due to inactivity\",\n    \"set as default\": \"Set as Default\",\n    \"set as default business\": \"Set as Default Business\",\n    \"set as default for\": \"Set as Default For\",\n    \"set as shop default\": \"Set As Shop Default\",\n    \"set commission amount\": \"Set commission amount\",\n    \"set commission base cost\": \"Set commission base cost\",\n    \"set default\": \"Set Default\",\n    \"set link\": \"Set Link\",\n    \"set member level\": \"Set member level\",\n    \"set member level by value\": \"Set member level by value\",\n    \"set number of days\": \"Set Number of Days\",\n    \"set period\": \"Set Period\",\n    \"set price\": \"Set Price\",\n    \"set price on bundle\": \"Set price on Bundle\",\n    \"set prices later\": \"Set prices later\",\n    \"set prices now\": \"Set prices now\",\n    \"set schedules\": \"Click to Set\",\n    \"set shipping zones\": \"Set Shipping Zones\",\n    \"set shop default shipping zones\": \"Set Shop Default Shipping Zones\",\n    \"set today as the first day\": \"Set Today As The First Day\",\n    \"setType_\": \"Normal Product\",\n    \"setType_hasVariants\": \"Variant Parent\",\n    \"setType_isSet\": \"Bundle\",\n    \"setType_isSetWithChoices\": \"Bundle With Choices\",\n    \"setType_isVariantChild\": \"Variant Child\",\n    \"setTypes\": \"Set Types\",\n    \"set_price_confirmation\": \"Are you sure to use {price} for the current item price?\",\n    \"settings\": \"Settings\",\n    \"settings_documents\": \"Sales, Purchases & Dispatch\",\n    \"settings_invoices\": \"Invoicing\",\n    \"settings_payments\": \"Payments\",\n    \"settings_shipping\": \"Shipping\",\n    \"settings_social\": \"Social\",\n    \"settings_style\": \"Styling\",\n    \"setup guides\": \"Setup Guides\",\n    \"seven eleven pickup reminder\": \"Seven-Eleven Pickup Reminder\",\n    \"seven-eleven\": \"7-11\",\n    \"seven-eleven contact\": \"7-11 contact\",\n    \"seven-eleven credentials\": \"7-11 Credentials\",\n    \"seven-eleven out of service\": \"seven-eleven out of service\",\n    \"seven-eleven pay on checkout\": \"Pay on Checkout\",\n    \"seven-eleven pay on checkout print password\": \"7-11 Pay on Checkout Print password\",\n    \"seven-eleven pay on checkout shop id\": \"7-11 Pay on Checkout Shop Id\",\n    \"seven-eleven pay on checkout sub shop id\": \"7-11 Pay on Checkout Sub Shop Id\",\n    \"seven-eleven pay on pickup\": \"Pay on Pickup\",\n    \"seven-eleven pay on pickup print password\": \"7-11 Pay on Pickup Print password\",\n    \"seven-eleven pay on pickup shop id\": \"7-11 Pay on Pickup Shop Id\",\n    \"seven-eleven pay on pickup sub shop id\": \"7-11 Pay on Pickup Sub Shop Id\",\n    \"seven-eleven payment on pickup\": \"7-11 Payment on Pickup\",\n    \"seven-eleven pickup\": \"7-11 Pickup\",\n    \"seven-eleven pickup frozen\": \"7-11 Pickup Frozen\",\n    \"seven-eleven pickup frozen print password\": \"7-11 Pickup Frozen Print password\",\n    \"seven-eleven pickup frozen shop id\": \"7-11 Pickup Frozen Shop Id\",\n    \"seven-eleven pickup frozen sub shop id\": \"7-11 Pickup Frozen Sub Shop Id\",\n    \"seven-eleven pickup print password\": \"7-11 Pickup Print password\",\n    \"seven-eleven pickup shop id\": \"7-11 Pickup Shop Id\",\n    \"seven-eleven pickup sub shop id\": \"7-11 Pickup Sub Shop Id\",\n    \"seven-eleven print password\": \"Print password\",\n    \"seven-eleven return store description\": \"Please specify the delivery store for package returns. If not specified, it will default to the store where the package was originally sent.\",\n    \"seven-eleven sftp\": \"7-11 SFTP\",\n    \"seven-eleven sftp frozen\": \"7-11 SFTP Frozen\",\n    \"seven-eleven sftp frozen password\": \"7-11 sftp frozen password\",\n    \"seven-eleven sftp frozen username\": \"7-11 sftp frozen username\",\n    \"seven-eleven sftp password\": \"7-11 sftp password\",\n    \"seven-eleven sftp username\": \"7-11 sftp username\",\n    \"seven-eleven shop id\": \"Shop Id\",\n    \"seven-eleven sub shop id\": \"Sub Shop Id\",\n    \"seven-eleven waybill\": \"7-11 Waybill\",\n    \"seven-eleven: out of service\": \"seven-eleven: out of service\",\n    \"sevenEleven\": \"7-11\",\n    \"shakeX\": \"Shake X\",\n    \"shakeY\": \"Shake Y\",\n    \"share\": \"Share\",\n    \"share link\": \"Share Link\",\n    \"shipWithCartItems\": \"Ship Free Items With Cart Items\",\n    \"shipped\": \"Shipped\",\n    \"shipping\": \"Shipping\",\n    \"shipping and returns policy\": \"Shipping and Returns Policy\",\n    \"shipping days\": \"Shipping Days (Default to 1, If you choose method expected dispatch date,this value is only calculated for email's expected arrival date)\",\n    \"shipping default payment method\": \"Shipping Default Payment Method\",\n    \"shipping fee\": \"Shipping Fee\",\n    \"shipping fee adjustment\": \"Shipping fee adjustment\",\n    \"shipping fee type\": \"Shipping Fee Type\",\n    \"shipping fee using zones\": \"Shipping Fee Using Zones\",\n    \"shipping locations\": \"Shipping Locations\",\n    \"shipping payment method\": \"Shipping Payment Method\",\n    \"shipping rate\": \"Shipping Rate\",\n    \"shipping rate method\": \"Shipping Rate Method\",\n    \"shipping rates\": \"Shipping Rates\",\n    \"shipping rates warning\": \"Shipping Rates are incorrect\",\n    \"shipping settings\": \"Shipping Settings\",\n    \"shipping type\": \"Shipping Type\",\n    \"shipping zone\": \"Shipping Zone\",\n    \"shipping zone details\": \"Shipping Zone Details\",\n    \"shipping zones\": \"Shipping Zones\",\n    \"shipping zones according to selected cart items\": \"Shipping Zones According To Selected Cart Items\",\n    \"shipping-settings\": \"Shipping Settings\",\n    \"shippingStatus_addressChangeRequired\": \"Address Change Required\",\n    \"shippingStatus_attentionRequired\": \"Attention Required\",\n    \"shippingStatus_awaitingDispatch\": \"Awaiting Dispatch\",\n    \"shippingStatus_cancelled\": \"Cancelled\",\n    \"shippingStatus_completed\": \"Completed\",\n    \"shippingStatus_delivered\": \"Delivered\",\n    \"shippingStatus_exception\": \"Exception\",\n    \"shippingStatus_noWaybill\": \"Waybill Not Yet Created\",\n    \"shippingStatus_outForDelivery\": \"Out For Delivery\",\n    \"shippingStatus_readyForPickupAtDestination\": \"Ready For Pickup At Destination\",\n    \"shippingStatus_readyForPickupAtReturnDestination\": \"Ready For Pickup At Return Destination\",\n    \"shippingStatus_shipped\": \"Shipped\",\n    \"shippingStatus_toReturn\": \"To Return\",\n    \"shippingStatus_waybillCreated\": \"Waybill Created\",\n    \"shipping_convenience_store\": \"Convenience Store Shipping Fee\",\n    \"shipping_lalamove\": \"Lalamove\",\n    \"shipping_multiple\": \"Additional Shipping Fee\",\n    \"shipping_single\": \"Shipping\",\n    \"shop\": \"Shop\",\n    \"shop checkout note character limit\": \"Shop Checkout Note Character Limit\",\n    \"shop filters\": \"Shop Filters\",\n    \"shop lists\": \"shop lists\",\n    \"shop name\": \"Shop name\",\n    \"shop not found\": \"Shop Not Found\",\n    \"shop or dispatch status is empty!\": \"Shop or dispatch status is empty!\",\n    \"shop or website\": \"Shop or Website\",\n    \"shop review\": \"shop review\",\n    \"shop settings\": \"Shop Settings\",\n    \"shop url\": \"Shop Url\",\n    \"shop url (at least 6 characters)\": \"Shop Url (At Least 6 Characters)\",\n    \"shop url prefix\": \"Shop Url Prefix\",\n    \"shop->campaigns\": \"Shop > Campaigns\",\n    \"shop->customer service\": \"Shop > Customer Service\",\n    \"shop->promo codes\": \"Shop > Promo Codes\",\n    \"shop->rewards\": \"Shop > Rewards\",\n    \"shop->shipping zones\": \"Shop > Shipping Zones\",\n    \"shop->web\": \"Shop > Web\",\n    \"shop.com\": \"Shop.com\",\n    \"shop.com characters limit\": \"Shop.com Characters Limit: \",\n    \"shop.com instruction\": \"It can only be activated after you get the Offer_ID and Advertiser_ID from Shop.com\",\n    \"shopDisplaySettings\": \"Shop Display Settings\",\n    \"shopDotComCommission\": \"Shop.com Commission\",\n    \"shop_dot_com_notyetsent\": \"Not yet Sent\",\n    \"shop_dot_com_successful\": \"Successfully Sent\",\n    \"shop_dot_com_unsuccessful\": \"Failed to Send\",\n    \"shop_products_overview_style_condensed\": \"Condensed\",\n    \"shop_products_overview_style_full\": \"Full\",\n    \"shop_status_expiredHaveCommissionData\": \"Completed - Have Commission Data\",\n    \"shop_status_expiredNoCommissionData\": \"Completed - No Commission Data\",\n    \"shop_status_inProgress\": \"In Progress\",\n    \"shop_status_linked_all\": \"Linked: All\",\n    \"shop_status_linked_out_of_sync\": \"Linked: Out of Sync\",\n    \"shop_status_noDate\": \"Without Date\",\n    \"shop_status_upcoming\": \"Upcoming\",\n    \"shopping is disallowed\": \"Shopping is Disallowed\",\n    \"shops\": \"Shops\",\n    \"short description\": \"Short Description\",\n    \"should be unique values\": \"Should Be Unique Values\",\n    \"show activity tab in guest view\": \"Can see activity tab in guest view\",\n    \"show advanced CSS settings\": \"Show Advanced CSS Settings\",\n    \"show advanced search by default\": \"Show Advanced Search By Default\",\n    \"show after grouped\": \"Show After Grouped\",\n    \"show aging in statements\": \"show aging in statements\",\n    \"show all\": \"Show All\",\n    \"show all customization prices (including 0)\": \"Show All Customization Prices (Including 0)\",\n    \"show almost empty qty warning for products\": \"Show Almost Empty Qty Warning For Products\",\n    \"show arrows\": \"Show Arrows\",\n    \"show available quantity\": \"Show Available Quantity\",\n    \"show back to shopping button\": \"Show Back To Shopping Button\",\n    \"show barcode for non-shop documents\": \"Show barcodes on delivery notes from non-shop orders\",\n    \"show barcode for shop documents\": \"Show barcodes on delivery notes from shop orders\",\n    \"show barcode number for non-shop documents\": \"Non-shop orders\",\n    \"show barcode number for shop documents\": \"Shop orders\",\n    \"show barcode number on delivery notes\": \"Show barcode number on delivery notes\",\n    \"show barcode on delivery notes\": \"Show barcode on delivery notes\",\n    \"show barcode with number\": \"Show barcode with number\",\n    \"show bot\": \"Show Bot\",\n    \"show campaign header\": \"Show campaign header\",\n    \"show commissions tab in guests view\": \"Show commissions tab in guests view\",\n    \"show contents\": \"Show Contents\",\n    \"show countdown timer\": \"Show Countdown Timer\",\n    \"show data for campaign period only\": \"Show Data For Campaign Period Only\",\n    \"show date on delivery notes\": \"Show date on delivery notes\",\n    \"show description\": \"Show description\",\n    \"show descriptions\": \"Show descriptions\",\n    \"show discounted price vs original price\": \"Show Discounted Price vs. Original Price\",\n    \"show dispatch date on delivery notes\": \"Show dispatch date on delivery notes\",\n    \"show dots\": \"Show Dots\",\n    \"show estimated delivery date\": \"Show Estimated Delivery Date\",\n    \"show faqs on footer\": \"Show Faqs On Footer\",\n    \"show form on checkout\": \"Show Form On Checkout\",\n    \"show full rows\": \"Show full rows\",\n    \"show grouped documents from different shops\": \"Show Grouped Documents from different shops\",\n    \"show grouped documents into one\": \"Show grouped documents into one\",\n    \"show images\": \"Show Images\",\n    \"show images when viewing documents\": \"Show images when viewing documents\",\n    \"show imported waybills only\": \"Show Imported Waybills Only\",\n    \"show item code\": \"Show Item Code\",\n    \"show label \\\"more\\\" on product\": \"show label \\\"more\\\" on product\",\n    \"show label more\": \"show label more\",\n    \"show layer manager\": \"Show Layer Manager\",\n    \"show less\": \"Show Less\",\n    \"show limited qty\": \"Show Limited Qty\",\n    \"show limits\": \"Show Limits\",\n    \"show logo on menu\": \"Show Logo On Menu\",\n    \"show more\": \"Show More\",\n    \"show number of lines for description\": \"Show Number Of Lines for Description\",\n    \"show number only\": \"Show number only\",\n    \"show on sale tag\": \"Show On Sale Tag\",\n    \"show one blog per slide on mobile\": \"Show one blog per slide on mobile\",\n    \"show original price\": \"Show Original Price\",\n    \"show page settings\": \"Show Page Settings\",\n    \"show payment method\": \"Show Payment Method\",\n    \"show payouts details\": \"Show Payouts Details\",\n    \"show prices\": \"Show Prices\",\n    \"show print modal after import\": \"Show Print Modal After Import\",\n    \"show product code\": \"Show Product Code\",\n    \"show product code below items\": \"Show Product Code Below Items\",\n    \"show product code next to items\": \"Show Product Code Next to Items\",\n    \"show product description\": \"Show Product Description\",\n    \"show product info\": \"Show Product Info\",\n    \"show product set with choices\": \"Show Product Set With Choices\",\n    \"show quantity and totals after returns\": \"Show Values After Returns\",\n    \"show quick nav\": \"Show Quick Nav (Bottom Right)\",\n    \"show returns\": \"Show Returns\",\n    \"show returns underneath\": \"Show Returns Underneath\",\n    \"show revenue by activity\": \"Show revenue by Activity\",\n    \"show revenue by channel and shop\": \"Show revenue by Channel and Shop\",\n    \"show revenue by contact\": \"Show revenue by Contact\",\n    \"show revenue by payment method\": \"Show revenue by Payment Method\",\n    \"show revenue by payment method and promo code\": \"Show revenue by Payment Method and Promo Code\",\n    \"show revenue by product\": \"Show revenue by Product\",\n    \"show revenue by shop\": \"Show revenue by Shop\",\n    \"show sales quantity\": \"Show Sales Quantity\",\n    \"show section for receiver to sign when printing sales invoices\": \"Show section for receiver to sign when printing Sales Invoices\",\n    \"show senders name when printing other documents\": \"Show sender's name when printing all other Documents\",\n    \"show senders name when printing sales invoices\": \"Show sender's name when printing Sales Invoices\",\n    \"show set details on export tables\": \"Show bundle details on export tables\",\n    \"show shipping options on dispatching\": \"Show Shipping Options On Dispatching\",\n    \"show shipping waybills on dispatching\": \"Show Shipping Waybills On Dispatching\",\n    \"show shop.com commission\": \"Show Shop.com Commission\",\n    \"show style manager\": \"Show Style Manager\",\n    \"show tags on filter\": \"Show tags on filter\",\n    \"show tags on page\": \"Show tags on page\",\n    \"show tax number on delivery notes\": \"Show tax number on delivery notes\",\n    \"show telephone number on delivery notes\": \"Show telephone number on delivery notes\",\n    \"show total due\": \"Show Total Due\",\n    \"show total due when printing contact statements\": \"Show total due when printing contact statements\",\n    \"show total quantity when printing sales invoices\": \"Show total quantity when printing Sales Invoices\",\n    \"show unit\": \"Show Unit\",\n    \"show unit below items\": \"Show Unit Below Items\",\n    \"show unit next to items\": \"Show Unit Next to Items\",\n    \"show units\": \"Show Units\",\n    \"show website name on menu\": \"Show Website Name On Menu\",\n    \"sigint\": \"Restart\",\n    \"sign up\": \"Sign Up\",\n    \"signature\": \"Signature\",\n    \"signup\": \"Sign up\",\n    \"signup reward email\": \"Signup Reward Email\",\n    \"simple\": \"Simple\",\n    \"simpleEditor_blocks\": \"Blocks\",\n    \"single delivery date\": \"Single Delivery date\",\n    \"single discount\": \"Single Discount\",\n    \"single discount rate\": \"Single Discount Rate\",\n    \"single time purchase\": \"Single time purchase\",\n    \"single_month\": \"Single Month\",\n    \"sinopac\": \"SinoPac\",\n    \"size\": \"Size\",\n    \"skip\": \"Skip\",\n    \"skip weekends\": \"Skip Weekends (Saturday/Sunday)\",\n    \"slide\": \"Slide\",\n    \"slideInDown\": \"Slide In Down\",\n    \"slideInUp\": \"Slide In Up\",\n    \"slider\": \"Slider\",\n    \"slider active buttons color\": \"Slider Active Buttons Color\",\n    \"slider buttons color\": \"Slider Buttons Color\",\n    \"slider frame\": \"Slider Frame\",\n    \"slider images with text and button\": \"Slider Image with text and button\",\n    \"slider with text and button\": \"Slider with text and button\",\n    \"slider with text left\": \"Slider with text left\",\n    \"slider with text right\": \"Slider with text right\",\n    \"slider_dots\": \"Dots\",\n    \"slider_lines\": \"Lines\",\n    \"slides\": \"Slides\",\n    \"slides spacing\": \"Slides spacing\",\n    \"slides to scroll\": \"Slides to scroll\",\n    \"slides to show\": \"Slides to show\",\n    \"slow\": \"Slow\",\n    \"small\": \"Small\",\n    \"smaller\": \"Smaller\",\n    \"social links\": \"Social Links\",\n    \"social-media\": \"Social Media\",\n    \"sold out\": \"Sold Out\",\n    \"soldOut\": \"Sold Out\",\n    \"some\": \"Some\",\n    \"some documents could not be moved\": \"{count} documents could not be moved: {refs}\",\n    \"some items have incorrect shipping zones\": \"Some items have incorrect shipping zones\",\n    \"sort by\": \"Sort By\",\n    \"sort customer order using shop product index\": \"Sort Customer Order Using Shop Product Index\",\n    \"sort detail row by campaign detail index\": \"Sort detail row by campaign detail index\",\n    \"sort direction\": \"Sort Direction\",\n    \"spacing settings\": \"Spacing Settings\",\n    \"spec\": \"Spec\",\n    \"spec_detail\": \"Spec Detail\",\n    \"spec_name\": \"Spec Name\",\n    \"specialty and local good\": \"Specialty And Local Good\",\n    \"specify first and last date\": \"Specify Start And End Date\",\n    \"specs\": \"Specs\",\n    \"spend reward points\": \"Spend Reward Points\",\n    \"split\": \"Split\",\n    \"split from\": \"Split From\",\n    \"split from original\": \"Split From Original\",\n    \"split qty\": \"Split Qty\",\n    \"split_document\": \"split\",\n    \"split_shipping\": \"Split\",\n    \"stage\": \"Stage\",\n    \"stages\": \"Stages\",\n    \"standard printer\": \"Standard Printer\",\n    \"start\": \"Start\",\n    \"start date\": \"Start Date\",\n    \"start from\": \"Start From\",\n    \"start time\": \"Start Time\",\n    \"startup\": \"Startup\",\n    \"statement\": \"Statement\",\n    \"statement count\": \"Statement Count\",\n    \"statements\": \"Statements\",\n    \"statements settings\": \"Statements Settings\",\n    \"stats for campaign\": \"Stats For Campaign\",\n    \"stats for month\": \"Stats For Month\",\n    \"stats for year\": \"Stats For Year\",\n    \"status\": \"Status\",\n    \"status change date\": \"Status Change Date\",\n    \"status for when over sales limited qty\": \"Status For When Over Sales Limited Qty\",\n    \"status will be applied to all schedules for current bulk discount\": \"Status will be applied to all schedules for current bulk discount\",\n    \"stay on old\": \"Stay On Old\",\n    \"step\": \"step\",\n    \"stereotyped contract content\": \"Stereotyped Contract Content\",\n    \"sticky top\": \"Sticky top\",\n    \"store location\": \"Store Location\",\n    \"store location address\": \"Store Location Address\",\n    \"store location pick up\": \"Store Location Pick Up\",\n    \"store location settings\": \"Store Location Settings\",\n    \"store locations\": \"Store Locations\",\n    \"store-location\": \"Store Location\",\n    \"storeAddress\": \"Store Address\",\n    \"storeId\": \"Store ID\",\n    \"storeName\": \"Store Name\",\n    \"stories\": \"Stories\",\n    \"story\": \"Story\",\n    \"street\": \"Street\",\n    \"string\": {\n      \"max\": \"\\\"{value}\\\" max length {limit}\",\n      \"min\": \"\\\"{value}\\\" min length {limit}\",\n      \"pattern\": {\n        \"name\": \"\\\"{value}\\\" is not a valid number\"\n      }\n    },\n    \"structure\": \"Structure\",\n    \"style settings\": \"Style Settings\",\n    \"sub account number\": \"Sub Account Number\",\n    \"sub page\": \"Sub Page\",\n    \"subject\": \"Subject\",\n    \"submit\": \"Submit\",\n    \"submit hct summary\": \"Submit HCT Summary\",\n    \"subscribe to newsletter\": \"Subscribe To Newsletter\",\n    \"subtitle\": \"Subtitle\",\n    \"subtotal\": \"Subtotal\",\n    \"success order description\": \"Customize Description on Success Order\",\n    \"successful\": \"Successful\",\n    \"suggested\": \"Suggested\",\n    \"sunday\": \"Sunday\",\n    \"sunday opening hours\": \"Sunday Opening Hours\",\n    \"sunny Bank\": \"Sunny Bank\",\n    \"super\": \"Super\",\n    \"supplier\": \"Supplier\",\n    \"supplier account\": \"Supplier Account\",\n    \"supplier activity\": \"Supplier Activity\",\n    \"supplier fulfillment method\": \"Supplier Fulfillment Method\",\n    \"supplier information\": \"Supplier Information\",\n    \"supplier link\": \"Supplier Link\",\n    \"supplier payment method\": \"Supplier Payment Method\",\n    \"supplier payment terms\": \"Supplier Payment Terms\",\n    \"supplier portal\": \"Supplier Portal\",\n    \"supplier portal code (minimum 8 characters)\": \"Supplier Portal Code (Minimum 8 Characters)\",\n    \"supplier portal email\": \"Supplier Portal Email\",\n    \"supplier portal login email\": \"Supplier Portal Login Email\",\n    \"supplier portal login expiration date (optional)\": \"Supplier Portal Login Expiration Date (Optional)\",\n    \"supplier portal password (minimum 8 characters)\": \"Supplier Portal Password (Minimum 8 Characters)\",\n    \"supplier reconciliations\": \"Supplier Reconciliations\",\n    \"supplier_portal_credentials_for\": \"Supplier Portal Credentials for {company}\",\n    \"surcharge\": \"Surcharge\",\n    \"surcharge type\": \"Surcharge Type\",\n    \"surcharge_floor\": \"Floor\",\n    \"suspended\": \"Suspended\",\n    \"swing\": \"Swing\",\n    \"sync campaigns\": \"Sync Campaigns\",\n    \"sync date\": \"Sync Date\",\n    \"sync limit qty with inventory\": \"Sync limit qty with inventory\",\n    \"sync master to all children\": \"Sync master to all children\",\n    \"sync product properties\": \"Sync Product Properties\",\n    \"system generated\": \"System Generated\",\n    \"systemlead\": \"Systemlead\",\n    \"systemlead_companyId\": \"Company Id\",\n    \"systemlead_remind\": \"Remind when E-Invoices are low\",\n    \"systemlead_remindCount\": \"Remind when E-Invoices Count is Below Number\",\n    \"systemlead_salt\": \"Salt\",\n    \"systemlead_showZeroValueItems\": \"Show Zero Value Items\",\n    \"t-cat\": \"TCat\",\n    \"t-cat contact\": \"TCat Contact\",\n    \"t-cat credentials\": \"TCat Credentials\",\n    \"t-cat custom product name\": \"TCat Custom Product Name\",\n    \"t-cat default package size\": \"TCat Default Package Size\",\n    \"t-cat default product type\": \"TCat Default Product Type\",\n    \"t-cat default thermosphere\": \"TCat Default Thermosphere\",\n    \"t-cat delivery time\": \"TCat Delivery Time\",\n    \"t-cat id\": \"TCat ID\",\n    \"t-cat package size\": \"TCat Package Size\",\n    \"t-cat print type\": \"TCat Print Type\",\n    \"t-cat temperature\": \"TCat Temperature\",\n    \"t-cat thermosphere\": \"TCat Thermosphere\",\n    \"t-cat token\": \"TCat Token\",\n    \"t-cat use custom product name\": \"TCat Use Custom Product Name\",\n    \"t-cat waybill\": \"TCat Waybill\",\n    \"tab\": \"Tab Button\",\n    \"tab container\": \"Tab Container\",\n    \"tab content\": \"Tab Content\",\n    \"tab contents\": \"Tab Contents\",\n    \"tab name\": \"Tab Name\",\n    \"table lookup\": \"Table Lookup\",\n    \"tablet\": \"Tablet\",\n    \"tabs\": \"Tabs\",\n    \"tada\": \"Tada\",\n    \"tag\": \"Tag\",\n    \"tags\": \"Tags\",\n    \"tags_filters_sort\": \"Filter Display Order\",\n    \"taishin\": \"TaiShin\",\n    \"taiwan cooperative bank\": \"Taiwan Cooperative Bank\",\n    \"taiwan percentage\": \"Taiwan Percentage\",\n    \"tap the right side to skip\": \"Tap the right side to skip\",\n    \"tapPay\": \"Tap Pay\",\n    \"tapPay_3ds\": \"3DS Verification\",\n    \"tapPay_isBig5\": \"Only Big5\",\n    \"tapPay_merchant_id\": \"Merchant Id\",\n    \"tapPay_partner_key\": \"Partner Key\",\n    \"task\": \"Task\",\n    \"tax\": \"Tax\",\n    \"tax %\": \"Tax %\",\n    \"tax after discount\": \"Tax After Discount\",\n    \"tax allowed\": \"Tax Allowed\",\n    \"tax exclusive\": \"Tax Exclusive\",\n    \"tax inclusive\": \"Tax Inclusive\",\n    \"tax method\": \"Tax Method\",\n    \"tax number\": \"Tax Number\",\n    \"tax on purchases\": \"Tax On Purchases\",\n    \"tax on sales\": \"Tax On Sales\",\n    \"tax rate\": \"Tax Rate\",\n    \"tax settings\": \"Tax Settings\",\n    \"tax total\": \"Tax Total\",\n    \"tax_auto\": \"Auto\",\n    \"tax_companyName\": \"Company Name (Tax)\",\n    \"tax_exclusive\": \"Tax Exclusive\",\n    \"tax_inclusive\": \"Tax Inclusive\",\n    \"tax_none\": \"None\",\n    \"taxes\": \"Taxes\",\n    \"tcat_sender_address\": \"TCat Sender Address\",\n    \"tel\": \"Tel\",\n    \"telephone\": \"Telephone\",\n    \"template\": \"Template\",\n    \"templates\": \"Templates\",\n    \"terms\": \"Terms\",\n    \"test code field is only for test purposes. it must be empty in production\": \"Test Code field is only for test purposes. It must be empty in production\",\n    \"test user\": \"Test user\",\n    \"text\": \"Text\",\n    \"text-and-image-split-one\": \"Text and Image - 3\",\n    \"text-block\": \"title with text\",\n    \"text-block-with-subtitle\": \"Title With Subtitle\",\n    \"text-on-image-one\": \"Text and Image - 1\",\n    \"text-on-image-two\": \"Text and Image - 2\",\n    \"text_content\": \"Content\",\n    \"the company name, {companyName}, does not match the company name for the tax number. Do you want to use {taxNumberCompanyName}?\": \"the company name, {companyName}, does not match the company name for the tax number. Do you want to use {taxNumberCompanyName}?\",\n    \"the current product is still a draft. The product schedule will not work.\": \"The current product is still a draft. The product schedule will not work.\",\n    \"the expiry date cannot be less than\": \"The expiry date cannot be less than {date} days\",\n    \"the expiry date cannot be more than\": \"The expiry date cannot be more than {date} days\",\n    \"the payment could not be sent, try again\": \"The payment could not be sent. Please try again.\",\n    \"the system will schedule a refund after voiding the order\": \"The system will schedule a refund after voiding the order\",\n    \"themeGeneralLetterSpacing\": \"General Letter Spacing\",\n    \"themeHeaderH1LetterSpacing\": \"H1 Letter Spacing\",\n    \"themeHeaderH2LetterSpacing\": \"H2 Letter Spacing\",\n    \"themeHeaderH3LetterSpacing\": \"H3 Letter Spacing\",\n    \"themeHeaderH4LetterSpacing\": \"H4 Letter Spacing\",\n    \"themeHeaderH5LetterSpacing\": \"H5 Letter Spacing\",\n    \"themeHeaderH6LetterSpacing\": \"H6 Letter Spacing\",\n    \"themeNavTreeItemMarginX\": \"Menu Item Margin (left/right)\",\n    \"themeNavTreeItemPaddingX\": \"Menu Item Padding (left/right)\",\n    \"themes\": \"Themes\",\n    \"there will always be a single instance of this block at the top of the page\": \"This block can only be used once per page.\",\n    \"thermal\": \"Thermal\",\n    \"thermal printer\": \"Thermal Printer\",\n    \"thermal_show_product_code\": \"Thermal Printer: Show Product Code\",\n    \"thermal_show_units\": \"Thermal Printer: Show Units\",\n    \"this block can only be used once per page\": \"This block can only be used once per page.\",\n    \"this bulk discount method is outdated\": \"This bulk discount method is outdated. You can keep using it but we recommend switching to the newer version.\",\n    \"this campaign detail is currently not online because it is out of sync. please update the product and make sure there is nothing wrong\": \"This campaign detail is currently not online because it is out of sync. please update the product and make sure there is nothing wrong.\",\n    \"this comment will be public\": \"This comment will be public\",\n    \"this image exceeds max dimensions\": \"This image exceeds max dimensions\",\n    \"this is the legacy way to share shop reports. please use the new way\": \"This is the legacy way to share shop reports. Please use the new way!\",\n    \"this is the new way to share shop reports\": \"this is the new way to share shop reports\",\n    \"this may already have been dispatched on a previous day- are you sure you want to change its dispatch status\": \"This may already have been dispatched on a previous day. Are you sure you want to change its dispatch status?\",\n    \"this month\": \"This Month\",\n    \"this product exists in documents/campaigns! the products will be set as inactive instead\": \"This product exists in documents/campaigns! the products will be set as inactive instead\",\n    \"this product set is outdated\": \"This product bundle is outdated\",\n    \"this product set is outdated, click here to change it to the new type (set item prices individually)\": \"This product set is outdated. Click here to change it to the new type (set item prices individually)\",\n    \"this row contains invoices with partial returns and/or returns without linked invoice\": \"This row contains invoices with partial returns and/or returns without linked invoice\",\n    \"this status will override all schedule statuses\": \"This status will override all schedule statuses\",\n    \"this window\": \"This Window\",\n    \"thread\": \"Thread\",\n    \"three per page\": \"Three per page\",\n    \"threeByFour\": \"3x4\",\n    \"threeByOne\": \"3x1\",\n    \"threeByTwo\": \"3x2\",\n    \"threeToFiveDays\": \"3-5 Days\",\n    \"three_months\": \"Three Months\",\n    \"threw an error when running default method\": \"threw an error when running default method\",\n    \"thursday\": \"Thursday\",\n    \"thursday opening hours\": \"Thursday Opening Hours\",\n    \"ticketing_dispatch_warning_non_virtual\": \"On checkout, the ticket will NOT be auto set as dispatched.\",\n    \"ticketing_dispatch_warning_virtual\": \"On checkout, the ticket will be auto set as dispatched.\",\n    \"tickets\": \"Tickets\",\n    \"tickets_group\": \"Tickets\",\n    \"tiktok\": \"TikTok\",\n    \"time\": \"time\",\n    \"times per order\": \"Times per Order\",\n    \"title\": \"Title\",\n    \"title color\": \"Title Color\",\n    \"title font\": \"Title Font\",\n    \"title size\": \"Title Size\",\n    \"title style\": \"Title Style\",\n    \"to\": \"To\",\n    \"to change please check allow seo settings on website\": \"To change please check allow seo settings on website\",\n    \"to issue e-invoices\": \"To Issue E-Invoices\",\n    \"to print\": \"To Print\",\n    \"to send\": \"To Send\",\n    \"to send birthday\": \"To Send Birthday Reward\",\n    \"to send promotion\": \"To Send Promotion Reward\",\n    \"today\": \"Today\",\n    \"toggle off all override\": \"turn off all override toggle\",\n    \"toggles_no\": \"No\",\n    \"toggles_yes\": \"Yes\",\n    \"too long\": \"Too Long\",\n    \"top\": \"Top\",\n    \"top and bottom margin\": \"Container Top and Bottom Margin\",\n    \"top-down-one\": \"Text and Image - 4\",\n    \"total\": \"Total\",\n    \"total active contacts\": \"Total Active Contacts\",\n    \"total adjustment\": \"Total Adjustment\",\n    \"total admitted qty\": \"Total Admitted Qty\",\n    \"total amount paid\": \"Total Amount Paid\",\n    \"total commission\": \"Total commission\",\n    \"total commission base cost\": \"Total Commission Base Cost\",\n    \"total commissions due\": \"Total Commissions Due\",\n    \"total commissions due returned\": \"Total Commissions Due Returned\",\n    \"total commissions due this month\": \"Total Commission Due This Month\",\n    \"total commissions generated\": \"Total Commissions Generated\",\n    \"total commissions generated returned\": \"Total Commissions Generated Returned\",\n    \"total commissions generated this month\": \"Total Commissions Generated This Month\",\n    \"total credit card amount\": \"Total Credit Card Amount\",\n    \"total details without shipping zones\": \"{total} Items Without Applicable Shipping Zones!\",\n    \"total due\": \"Total Due\",\n    \"total due after adjustment\": \"Total Due After Adjustment\",\n    \"total due after payouts\": \"Total Due After Payouts\",\n    \"total due at\": \"Total Due At {date}\",\n    \"total inclusive discounted price\": \"Total Inclusive Discounted Price\",\n    \"total inclusive price\": \"Total Incl. Price\",\n    \"total limit\": \"Total Limit\",\n    \"total limited qty\": \"Total Limited Qty\",\n    \"total orders\": \"Total Orders\",\n    \"total periods\": \"Total Periods\",\n    \"total points expiring\": \"Total Points Expiring\",\n    \"total qty\": \"Total Qty\",\n    \"total qtys\": \"Total Qtys\",\n    \"total quantity\": \"Items Total Quantity\",\n    \"total returns\": \"Total Returns\",\n    \"total revenue\": \"Total Revenue\",\n    \"total sales\": \"Total Sales\",\n    \"total shipping fee\": \"Total Shipping Fee\",\n    \"total times per person\": \"Total Times per Person\",\n    \"total transactions\": \"Total Transactions\",\n    \"total_data\": \"Total\",\n    \"total_dispatched\": \"Total Dispatched\",\n    \"total_invoices_amount\": \"Invoices Amount\",\n    \"total_invoices_attentionRequired\": \"Invoices Attention Required\",\n    \"total_invoices_cancelled\": \"Invoices Cancelled\",\n    \"total_invoices_pending\": \"Invoices Pending\",\n    \"total_invoices_pendingCancellation\": \"Invoices Pending Cancellation\",\n    \"total_invoices_successful\": \"Invoices Successful\",\n    \"total_rounding_difference_explanation\": \"Difference in total is due to rounding.\",\n    \"track inventory\": \"Track Inventory\",\n    \"tracking\": \"Tracking\",\n    \"tracking code\": \"Tracking Code\",\n    \"tracking codes\": \"Tracking Codes\",\n    \"transaction date\": \"Transaction Date\",\n    \"transaction number\": \"Transaction Number\",\n    \"transaction type\": \"Transaction Type\",\n    \"transparency\": \"Transparency\",\n    \"transparency_full\": \"Full Transparent\",\n    \"transparency_half\": \"Half Transparent\",\n    \"transparency_none\": \"Not Transparent\",\n    \"transparency_slight\": \"Slightly Transparent\",\n    \"transparency_very\": \"Very Transparent\",\n    \"transport\": \"Transport\",\n    \"transporter\": \"Transporter\",\n    \"transporter (optional)\": \"Transporter (Optional)\",\n    \"transporter account\": \"Transporter Account\",\n    \"transporter account (optional)\": \"Transporter Account (Optional)\",\n    \"transporter account number\": \"Transporter Account Number\",\n    \"transporter accounts\": \"Transporter Accounts\",\n    \"transporter credentials\": \"Transporter Credentials\",\n    \"transporter hct settings\": \"Transporter Hct Settings\",\n    \"transporter hct settings wizard description\": \"Transporter Hct Settings Wizard Description\",\n    \"transporter info\": \"Transporter Info\",\n    \"transporter notes\": \"Transporter Notes\",\n    \"transporter package temperature\": \"Transporter Package Temperature\",\n    \"transporter payuni-seven-eleven settings\": \"Transporter PayUni 7Eleven Settings\",\n    \"transporter payuni-seven-eleven settings wizard description\": \"Transporter PayUni 7Eleven Settings Wizard Description\",\n    \"transporter pickup location\": \"Pickup Location For Transporter\",\n    \"transporter pickup location name\": \"Pickup Location Name\",\n    \"transporter settings\": \"Transporter Settings\",\n    \"transporter seven-eleven settings\": \"Transporter 7Eleven Settings\",\n    \"transporter seven-eleven settings wizard description\": \"Transporter 7Eleven Settings Wizard Description\",\n    \"transporter t-cat settings\": \"Transporter TCat Settings\",\n    \"transporter t-cat settings wizard description\": \"Transporter TCat Settings Wizard Description\",\n    \"transporter type\": \"Transporter Type\",\n    \"transporter-settings\": \"Transporter Settings\",\n    \"transporterAccount\": \"Transporter Account\",\n    \"transporterPackageTemperature\": \"Transporter Package Temperature\",\n    \"transporter_account_short\": \"Transporter Acc\",\n    \"try it now\": \"Try It Now\",\n    \"try latest version with latest features (beta)\": \"Try Latest Version With Latest Features (Beta)\",\n    \"try new\": \"Try New\",\n    \"try new features\": \"Try New Features\",\n    \"tuesday\": \"Tuesday\",\n    \"tuesday opening hours\": \"Tuesday Opening Hours\",\n    \"twEInvoicePrint\": \"E-Invoice Allow Print\",\n    \"tw_auto_issue_eInvoices\": \"Auto issue eInvoices\",\n    \"tw_auto_print_invoices\": \"Issue E-invoices for manually created documents\",\n    \"tw_auto_print_invoices_for_shop\": \"Issue E-Invoices for Shop Orders\",\n    \"tw_default_invoices_view\": \"Default E-invoices View\",\n    \"tw_eInvoice_allow_print\": \"Allow Print\",\n    \"tw_eInvoice_auto_issue_fourteen_days_after\": \"14 Days After Dispatch\",\n    \"tw_eInvoice_auto_issue_on_dispatch\": \"On Dispatch\",\n    \"tw_eInvoice_auto_issue_seven_days_after\": \"7 Days After Dispatch\",\n    \"tw_eInvoice_carrierType_app\": \"Mobile\",\n    \"tw_eInvoice_carrierType_b2b\": \"B2B\",\n    \"tw_eInvoice_carrierType_person\": \"Citizen Cert\",\n    \"tw_eInvoice_carrier_id\": \"Carrier Id\",\n    \"tw_eInvoice_carrier_type\": \"Carrier Type (Optional)\",\n    \"tw_eInvoice_carrier_type_optional\": \"E-Invoice Type\",\n    \"tw_eInvoice_company_name\": \"Company Name\",\n    \"tw_eInvoice_print_custom_block\": \"Print Custom Block\",\n    \"tw_eInvoice_print_custom_block_placeholder\": \"You are allow the following characters amount per line\\\\\\\\n 34 English Character per row\\\\\\\\n 17 Chinese Character per row\\\\\\\\n NOTE: If you mix both character sets on the same line we cannot guarantee a correct printing layout.\\\\\\\\n\\n\",\n    \"tw_eInvoice_print_reload\": \"Reload E-Invoice Printers\",\n    \"tw_eInvoice_provider_bigOrdr\": \"EcPay\",\n    \"tw_eInvoice_provider_systemlead\": \"Systemlead\",\n    \"tw_eInvoice_queued_successfully\": \"Queued Successfully. Invoices will automatically be Issue.\",\n    \"tw_eInvoice_reprint\": \"Reprint Invoice\",\n    \"tw_eInvoices\": \"E-Invoices\",\n    \"tw_eInvoices_allocate_numbers\": \"Allocate E-Invoice Numbers\",\n    \"tw_eInvoices_allow_numbers\": \"Allowed E-Invoice Track Numbers\",\n    \"tw_eInvoices_allow_numbers_off_warning\": \"If numbers are not allowed, this row cannot be changed after saving.\",\n    \"tw_eInvoices_attention_required\": \"Attention Required\",\n    \"tw_eInvoices_available_any\": \"Non-designated E-Invoices\",\n    \"tw_eInvoices_blankUploaded_successful\": \"Uploaded\",\n    \"tw_eInvoices_blankUploaded_unsuccessful\": \"Not Yet Uploaded\",\n    \"tw_eInvoices_book\": \"Book\",\n    \"tw_eInvoices_captured\": \"Captured\",\n    \"tw_eInvoices_captured_invoices\": \"Captured Invoices\",\n    \"tw_eInvoices_captured_returns\": \"Captured Returns\",\n    \"tw_eInvoices_count\": \"Count\",\n    \"tw_eInvoices_custom_description\": \"Description\",\n    \"tw_eInvoices_disallowed\": \"Disallowed E-Invoices\",\n    \"tw_eInvoices_edit_and_reissue\": \"Edit and Re-Issue E-Invoice\",\n    \"tw_eInvoices_first_number\": \"First Number\",\n    \"tw_eInvoices_include_until_current_date\": \"Include All E-Invoices\",\n    \"tw_eInvoices_issue_results\": \"E-Invoice Issue Results\",\n    \"tw_eInvoices_last_number\": \"Last Number\",\n    \"tw_eInvoices_last_number_used\": \"Last Number\",\n    \"tw_eInvoices_no_allocated\": \"No Allocated E-Invoice Numbers\",\n    \"tw_eInvoices_no_printer_setup\": \"Printer has not been setup yet. Please login to BigOrdr printer app.\",\n    \"tw_eInvoices_no_track_numbers\": \"No E-Invoice Track Numbers\",\n    \"tw_eInvoices_notify_email_address\": \"E-Invoice Notify Email Address\",\n    \"tw_eInvoices_numbers\": \"E-Invoice Numbers\",\n    \"tw_eInvoices_numbers_auto_upload_blanks\": \"System will automatically upload blank numbers at 21:00 on 5th of every odd months\",\n    \"tw_eInvoices_numbers_available_count\": \"Available E-Invoices\",\n    \"tw_eInvoices_numbers_blank_end\": \"Blank Numbers End\",\n    \"tw_eInvoices_numbers_blank_numbers\": \"Blank Numbers\",\n    \"tw_eInvoices_numbers_blank_remaining_unused\": \"Unused E-Invoice Numbers\",\n    \"tw_eInvoices_numbers_blank_start\": \"Blank Numbers Start\",\n    \"tw_eInvoices_numbers_blank_upload_all_remaining_unused\": \"Include All Unused E-Invoice Numbers\",\n    \"tw_eInvoices_numbers_books_end\": \"Books End\",\n    \"tw_eInvoices_numbers_books_range\": \"Books Range\",\n    \"tw_eInvoices_numbers_books_start\": \"Books Start\",\n    \"tw_eInvoices_numbers_current_books_range\": \"Current Numbers Range\",\n    \"tw_eInvoices_numbers_end\": \"End\",\n    \"tw_eInvoices_numbers_enter_blanks\": \"Enter Blank Numbers\",\n    \"tw_eInvoices_numbers_last\": \"Last\",\n    \"tw_eInvoices_numbers_manager\": \"Manage E-Invoice Numbers\",\n    \"tw_eInvoices_numbers_next\": \"Next\",\n    \"tw_eInvoices_numbers_no_available_count\": \"No Available E-Invoices\",\n    \"tw_eInvoices_numbers_no_available_count_create_docSales_without_eInvoice\": \"No Available E-Invoices, Should create DocSales without issue an eInvoice?\",\n    \"tw_eInvoices_numbers_remaining\": \"Remaining Numbers\",\n    \"tw_eInvoices_numbers_start\": \"Start\",\n    \"tw_eInvoices_numbers_upload_blanks\": \"Upload Blank Numbers\",\n    \"tw_eInvoices_numbers_upload_blanks_not_uploaded\": \"Not Yet Uploaded\",\n    \"tw_eInvoices_only_remaining\": \"Issue All Unallocated E-Invoices\",\n    \"tw_eInvoices_prefix\": \"Prefix\",\n    \"tw_eInvoices_print_aesKey\": \"E-Invoice AESKey\",\n    \"tw_eInvoices_print_allow_print\": \"E-Invoice Allow Print\",\n    \"tw_eInvoices_print_allow_shop\": \"E-Invoice Allow Print on Shop\",\n    \"tw_eInvoices_printed_count\": \"Count\",\n    \"tw_eInvoices_printed_pending\": \"Print Pending\",\n    \"tw_eInvoices_printed_successful\": \"Printed Successfully\",\n    \"tw_eInvoices_printer_app\": \"BigOrdr Printer app\",\n    \"tw_eInvoices_printer_app_desc\": \"Always the latest version. Install it on the machine the printer is connected to and sign in with the printer user.\",\n    \"tw_eInvoices_scheduled\": \"e-invoice scheduled for auto creating tonight: 9:00pm\",\n    \"tw_eInvoices_total_available\": \"Total Available\",\n    \"tw_eInvoices_total_available_per_printer\": \"Designated To E-Invoice Printers\",\n    \"tw_eInvoices_uncaptured_total\": \"Uncaptured Inclusive Total\",\n    \"tw_eInvoices_unresolved_blocks_new_issue\": \"This unsuccessful e-invoice is still unresolved, so a new e-invoice cannot be issued. Update the document, then mark as resolved to issue a new e-invoice.\",\n    \"tw_eInvoicing\": \"E-Invoices\",\n    \"tw_eInvoicing_print\": \"Print E-Invoice\",\n    \"tw_invoicing\": \"Invoicing\",\n    \"tw_issue_print_eInvoice\": \"Issue and Print E-Invoice\",\n    \"tw_print_eInvoices\": \"Print E-Invoices\",\n    \"tw_print_eInvoices_now\": \"Issue E-Invoices Now\",\n    \"tw_print_invoices\": \"Print Invoices\",\n    \"two factor authentication\": \"Two Factor Authentication\",\n    \"two factor authentication code has been resent\": \"A new two factor authentication code has been resent to your email\",\n    \"two per page\": \"Two per page\",\n    \"twoByOne\": \"2x1\",\n    \"twoByThree\": \"2x3\",\n    \"two_factor_authentication_resendCode\": \"Resend code\",\n    \"txt verification\": \"TXT Verification\",\n    \"type\": \"Type\",\n    \"type delete to delete\": \"Type DELETE to delete\",\n    \"type_content\": \"Click to type...\",\n    \"typing\": \"Typing\",\n    \"unable to add new option- please try again later-\": \"Unable to add new option- Please try again later-\",\n    \"unable to create profile- please try again later-\": \"Unable to create profile- Please try again later-\",\n    \"unable to update profile- please try again later-\": \"Unable to update profile- Please try again later-\",\n    \"unable to verify account- please try again later-\": \"Unable to verify account- Please try again later-\",\n    \"unallocated\": \"Unallocated\",\n    \"unarchive\": \"Unarchive\",\n    \"unassigned\": \"Unassigned\",\n    \"uncaughtException\": \"Uncaught Exception\",\n    \"underpaid\": \"Underpaid\",\n    \"undispatched\": \"Not Yet Dispatched\",\n    \"undispatched or due\": \"Not Yet Dispatched / Due\",\n    \"undo\": \"Undo\",\n    \"undo cancel invoice\": \"Undo Cancel Invoice\",\n    \"undo void\": \"Undo Void\",\n    \"unfinished\": \"Unfinished\",\n    \"ungroup_document\": \"Unmerge\",\n    \"unhandledRejection\": \"Unhandled Rejection\",\n    \"unhold all\": \"Unhold All\",\n    \"union bank Of taiwan\": \"Union Bank Of Taiwan\",\n    \"uniqueTagsOnly\": \"Show Each Tag Separately (Any single tags matching)\",\n    \"unit\": \"Unit\",\n    \"units\": \"Units\",\n    \"unlink\": \"Unlink\",\n    \"unlock\": \"Unlock\",\n    \"unnamed\": \"Unnamed\",\n    \"unpaid total\": \"Unpaid Total\",\n    \"unprepared\": \"Unprepared\",\n    \"unprinted\": \"Unprinted\",\n    \"unprinted is shown by default for today and future dispatch dates\": \"Unprinted is shown by default for today and future dispatch dates\",\n    \"unprinted is shown by default when printing of waybills is allowed\": \"Unprinted is shown by default when Allow printing of waybills is on\",\n    \"unrefrigerated\": \"Normal\",\n    \"unresolved\": \"Unresolved\",\n    \"unsuccessful\": \"Unsuccessful\",\n    \"unsuccessfulDetail\": \"Error: Child items\",\n    \"untag\": \"Untag\",\n    \"update\": \"Update\",\n    \"update all status\": \"Update All Status\",\n    \"update bulk discount\": \"Update bulk discount\",\n    \"update cache\": \"Update Cache\",\n    \"update failed the data is out of date as it may have been changed by someone else please cancel and try again\": \"Update failed, the data is out of date as it may have been changed by someone else, please cancel and try again\",\n    \"update failed the data is out of date as it may have been changed by someone else please try again\": \"Update failed, the data is out of date as it may have been changed by someone else. Please try again.\",\n    \"update hct contact\": \"Update Hct Contact\",\n    \"update now\": \"Update Now\",\n    \"update required, please reload\": \"Update required. Please reload\",\n    \"update seven-eleven contact\": \"Update 7-11 Contact\",\n    \"update status\": \"Update Status\",\n    \"update t-cat contact\": \"Update TCat Contact\",\n    \"update waybill with latest changes. are you sure you want to update?\": \"Update waybill with latest changes. Are you sure you want to update?\",\n    \"update waybills\": \"Update Waybills\",\n    \"update waybills with the latest changes. the update will omit any expired waybill. are you sure you want to update?\": \"Update waybills with the latest changes. The update will omit any expired waybill. Are you sure you want to update?\",\n    \"updated\": \"Updated\",\n    \"updated date\": \"Updated Date\",\n    \"updated time\": \"Updated Time\",\n    \"updating the product may cause it to be out of sync with the shop\": \"Updating the product may cause it to be out of sync with the shop and will be hidden from the shop. Please make sure to update each shop with new pricing where this product appears.\",\n    \"upload\": \"Upload\",\n    \"upload files\": \"Upload Files\",\n    \"upload image\": \"Upload Image\",\n    \"upload images\": \"Upload Images\",\n    \"upload images to campaigns\": \"Upload Images to Campaigns\",\n    \"upload images to products\": \"Upload Images to Products\",\n    \"upload logo\": \"Upload Logo\",\n    \"upload status\": \"Upload Status\",\n    \"upload to folder\": \"Upload to folder\",\n    \"uploaded files\": \"Uploaded Files\",\n    \"uploaded to shops\": \"Uploaded To Shops\",\n    \"uploading please wait\": \"uploading please wait...\",\n    \"url\": \"Url\",\n    \"usage limit\": \"Total Usage Limit\",\n    \"usage limit per person\": \"Usage Limit Per Person\",\n    \"usage limits\": \"Usage Limits\",\n    \"use advanced address\": \"Use advanced address\",\n    \"use anonymized product name\": \"Use Anonymized Product Name\",\n    \"use average prices for each product\": \"Use average price for each product\",\n    \"use campaign period\": \"Use Campaign Period\",\n    \"use company email address when sending email manually\": \"Use Company Email Address When Sending Email Manually\",\n    \"use custom date\": \"Use Custom Date\",\n    \"use custom message for additional free shipping\": \"Use custom message for additional free shipping\",\n    \"use custom message for quoted rate shipping\": \"Use custom message for quoted rate shipping\",\n    \"use default auto redirect url from settings\": \"Use Default Auto Redirect Url From Settings\",\n    \"use default birthday message in rewards\": \"Use default birthday message in rewards\",\n    \"use default birthday message in settings\": \"Use default birthday message in settings\",\n    \"use default description\": \"Use Default Description\",\n    \"use default message in settings\": \"Use default message in settings\",\n    \"use default payment methods\": \"Use Default Payment Methods\",\n    \"use default products display settings from settings\": \"Use default products display settings from settings\",\n    \"use default promotion message in rewards\": \"Use default promotion message in rewards\",\n    \"use default promotion message in settings\": \"Use default promotion message in settings\",\n    \"use default width\": \"Use default width\",\n    \"use defaults estimated delivery date in settings\": \"Use defaults estimated delivery date in settings\",\n    \"use defaults flat fee\": \"Use Defaults Flat Fee\",\n    \"use defaults from products\": \"Use Defaults From Products\",\n    \"use defaults from settings\": \"Use defaults from settings\",\n    \"use defaults shipping zones\": \"Use Defaults Shipping Zones\",\n    \"use defaults shop price filter\": \"Use Default Shop Price Filter\",\n    \"use different delivery info\": \"Use Different Delivery Info\",\n    \"use exclusive selling price to calculate commission\": \"Use exclusive selling price to calculate commission\",\n    \"use expiry date instead\": \"Use expiry date instead\",\n    \"use inventory qty as product limits\": \"Use Inventory Qty As Product Limit\",\n    \"use inventory qty as product limits defaults\": \"Use Inventory Qty As Product Limit Defaults\",\n    \"use normal percentage\": \"Use normal percentage\",\n    \"use original amount at dispatch date\": \"Use original amount at dispatch\",\n    \"use password\": \"Use Password\",\n    \"use payment terms\": \"Use Payment Terms\",\n    \"use preset commissions to fill commission value\": \"Use preset commissions to fill commission value\",\n    \"use product set children\": \"Use Bundle children to calculate commissions\",\n    \"use shipping fee adjustment\": \"Allow to deduct shipping fee from product price\",\n    \"use taiwan percentage\": \"Use taiwan percentage\",\n    \"use website logo for delivery notes\": \"Use website logo for delivery notes (Instead of Logo for Company)\",\n    \"user\": \"User\",\n    \"user colors\": \"User Colors\",\n    \"user didnt complete the transaction\": \"user didnt complete the transaction\",\n    \"user-agreement-settings\": \"User Agreement Settings\",\n    \"username\": \"Username\",\n    \"username or email\": \"Username or Email\",\n    \"users\": \"Users\",\n    \"users to authorize refunds\": \"Users to authorize refunds\",\n    \"utm campaign\": \"UTM Campaign\",\n    \"utm medium\": \"UTM Medium\",\n    \"utm source\": \"UTM Source\",\n    \"valid\": \"Valid\",\n    \"valid input\": \"Valid Input\",\n    \"valid points\": \"Valid Points\",\n    \"validate domain\": \"Validate Domain\",\n    \"validation error\": \"Validation Error\",\n    \"validity date\": \"Validity Date\",\n    \"value\": \"Value\",\n    \"value based rates\": \"Value Based Rates\",\n    \"value is required\": \"Value is Required\",\n    \"variant\": \"Variant\",\n    \"variant child\": \"Variant Child\",\n    \"variant children\": \"Variant Children\",\n    \"variant code\": \"Variant Code\",\n    \"variant options\": \"Variant Options\",\n    \"variant selector style\": \"Variant Selector Style\",\n    \"variant type\": \"Variant Type\",\n    \"variantOptionsNameChanges\": \"Will change {originalOptionName} to {newOptionName}\",\n    \"variant_example\": \"For example: Color, Size\",\n    \"variant_options_example\": \"For example: Red, Small\",\n    \"variant_options_save_warning\": \"You have not finished editing variant options, please complete before saving.\",\n    \"variants\": \"Variants\",\n    \"vat\": \"Vat\",\n    \"verified payment\": \"Verified Payment\",\n    \"version\": \"Version\",\n    \"vertical\": \"Vertical\",\n    \"vertical alignment\": \"Vertical Alignment\",\n    \"vertical buttons\": \"Vertical buttons\",\n    \"vertical buttons with different colors\": \"Vertical buttons with different colors\",\n    \"vertical position\": \"Vertical Position\",\n    \"video\": \"Video\",\n    \"videoBlockStyles_fixedWidth\": \"Fixed Width\",\n    \"videoBlockStyles_fullWidth\": \"Full Width\",\n    \"video_source\": \"Video Source\",\n    \"videos\": \"Videos\",\n    \"view\": \"View\",\n    \"view available placeholders\": \"View available placeholders\",\n    \"view locked\": \"View Locked\",\n    \"view original file\": \"View Original File\",\n    \"view schedules\": \"View Schedules\",\n    \"view webpage\": \"View Webpage\",\n    \"virtual\": \"Virtual Product\",\n    \"virtual account\": \"Virtual Account\",\n    \"virtual account bank code\": \"Virtual Account Bank Code\",\n    \"virtual account bank name\": \"Virtual Account Bank Name\",\n    \"virtual account expiry date\": \"Virtual Account Expiry Date\",\n    \"virtual account number\": \"Virtual Account Number\",\n    \"virtual content attachments\": \"Virtual Content Attachments\",\n    \"virtualAccount\": \"Virtual Account\",\n    \"virtual_account_from_account\": \"From account\",\n    \"virtual_account_provider_eSun\": \"E. Sun 玉山銀行虛擬帳號\",\n    \"virtual_account_provider_ecPay\": \"EC Pay 綠界科技虛擬帳號\",\n    \"virtual_account_provider_ubot\": \"Union Bank of Taiwan 聯邦銀行虛擬帳號\",\n    \"virtual_content\": \"Virtual Content\",\n    \"void\": \"Void\",\n    \"warning\": \"Warning\",\n    \"warnings\": \"Warnings\",\n    \"waybill\": \"Waybill\",\n    \"waybill cannot be removed after dispatch\": \"Waybill cannot be removed after dispatch\",\n    \"waybill status\": \"Waybill Status\",\n    \"waybills\": \"Waybills\",\n    \"waybills created\": \"Waybills created\",\n    \"waybills first row bottom padding\": \"Waybills First Row Bottom Padding\",\n    \"waybills last row top padding\": \"Waybills Last Row Top Padding\",\n    \"waybills not yet created\": \"Waybills Not Yet Created\",\n    \"waybills per page\": \"Waybills Per Page\",\n    \"waybills per page b2c\": \"Waybills Per Page B2C\",\n    \"waybills per page c2c\": \"Waybills Per Page C2C\",\n    \"waybills-settings\": \"Waybills Settings\",\n    \"we have new features. dispatch is now faster and easier. before we move you over, we want to give you time to get familiar with the new way. do you want to try them out now?\": \"We have new features. Dispatch is now faster and easier.\\n\\nBefore we move you over, we want to give you time to get familiar with the new way.\\n\\nDo you want to try them out now?\",\n    \"web\": \"Web\",\n    \"webhook: notify on order URL\": \"Webhook: Notify On Order URL\",\n    \"webhook_event_sent_failed\": \"Notify Event Failed\",\n    \"webhook_event_sent_successful\": \"Notify Event Successful\",\n    \"webhooks: enable notify on order\": \"Webhooks: Enable Notify On Order\",\n    \"webpage\": \"Webpage\",\n    \"webpage name\": \"Webpage Name\",\n    \"webpage seo description\": \"Webpage SEO Description\",\n    \"webpage seo keywords\": \"Webpage SEO Keywords\",\n    \"webpage settings\": \"Webpage Settings\",\n    \"webpage_content\": \"Webpage Content\",\n    \"webpage_home_page_redirect\": \"Redirect to Home Page\",\n    \"webpage_isDisallowClick\": \"Don't allow click, Only show in menu\",\n    \"webpage_show_breadcrumb\": \"Show BreadCrumb Navigation\",\n    \"webpage_show_on_filters\": \"Show In Products Filters\",\n    \"webpage_show_on_filters_short\": \"Products Filters\",\n    \"webpage_show_on_footer\": \"Show On Footer\",\n    \"webpage_show_on_footer_short\": \"Footer\",\n    \"webpage_show_on_menu\": \"Show On Menu\",\n    \"webpage_show_on_menu_short\": \"Menu\",\n    \"webpage_template\": \"Webpage Template\",\n    \"webpage_template_type\": \"Website Template Type\",\n    \"webpages\": \"Webpages\",\n    \"webpages_content\": \"Webpage Content\",\n    \"website\": \"Website\",\n    \"website admin mode\": \"Website Admin Mode\",\n    \"website info\": \"Website Info\",\n    \"website template\": \"Website Template\",\n    \"website url\": \"Website URL\",\n    \"website url (at least 6 characters)\": \"Website Url (At Least 6 Characters)\",\n    \"websiteForAllCampaigns\": \"Campaigns Website\",\n    \"website_action_color\": \"Action Button Color\",\n    \"website_action_final_color\": \"Action Final Color\",\n    \"website_action_final_hover_color\": \"Action Final Hover Color\",\n    \"website_action_final_text\": \"Checkout Button Text\",\n    \"website_action_final_text_color\": \"Action Final Text Color\",\n    \"website_action_hover_color\": \"Hover Color\",\n    \"website_action_text_color\": \"Action Button Text Color\",\n    \"website_active_color\": \"Selected Color\",\n    \"website_almost_sold_out_text_color\": \"Almost Sold Out Text Color\",\n    \"website_background_primary_color\": \"Primary Background Color\",\n    \"website_background_secondary_color\": \"Secondary Background Color\",\n    \"website_border_color\": \"Border Color\",\n    \"website_breadcrumbs_background_color\": \"Breadcrumbs Background Color\",\n    \"website_breadcrumbs_text_color\": \"Breadcrumbs Text Color\",\n    \"website_button_border_color\": \"Button Border Color\",\n    \"website_button_border_color2\": \"Button border color 2\",\n    \"website_button_border_color3\": \"Button border color 3\",\n    \"website_button_border_radius\": \"Button Border Radius\",\n    \"website_button_border_radius_2\": \"Button Border Radius 2\",\n    \"website_button_border_radius_3\": \"Button Border Radius 3\",\n    \"website_button_color\": \"Button Color\",\n    \"website_button_color2\": \"Button color 2\",\n    \"website_button_color3\": \"Button color 3\",\n    \"website_button_hover_color\": \"Button Hover Color\",\n    \"website_button_hover_color2\": \"Button hover color 2\",\n    \"website_button_hover_color3\": \"Button hover color 3\",\n    \"website_button_hover_text_color\": \"Button Hover Text Color\",\n    \"website_button_hover_text_color2\": \"Button Hover Text Color 2\",\n    \"website_button_hover_text_color3\": \"Button Hover Text Color 3\",\n    \"website_button_text_color\": \"Button Text Color\",\n    \"website_button_text_color2\": \"Button text color 2\",\n    \"website_button_text_color3\": \"Button text color 3\",\n    \"website_campaign_header\": \"Campaign Header\",\n    \"website_campaign_header_background_color\": \"Campaign Header Background Color\",\n    \"website_campaign_header_notice_color\": \"Campaign Header Notice Color\",\n    \"website_campaign_header_subtitle_color\": \"Campaign Header Subtitle Color\",\n    \"website_campaign_header_title_color\": \"Campaign Header Title Color\",\n    \"website_chat_button_color\": \"Chat Button Color\",\n    \"website_chat_button_hover_color\": \"Chat Button Hover Color\",\n    \"website_chat_button_text_color\": \"Chat Button Text Color\",\n    \"website_content_width\": \"Website Content Width\",\n    \"website_count_down_color\": \"Count Down Color\",\n    \"website_count_down_text_color\": \"Countdown Text Color\",\n    \"website_faqs_answer_color\": \"FAQs Answer Color\",\n    \"website_faqs_question_color\": \"FAQs Question Color\",\n    \"website_faqs_question_hover_color\": \"FAQs Question Hover Color\",\n    \"website_footer_background_color\": \"Footer Background Color\",\n    \"website_footer_background_primary_color\": \"Footer Background Color\",\n    \"website_footer_header_color\": \"Website Footer Header Color\",\n    \"website_footer_link_color\": \"Footer Link Color\",\n    \"website_footer_link_hover_color\": \"Footer Link Hover Color\",\n    \"website_footer_message\": \"Footer Message\",\n    \"website_footer_text_color\": \"Footer Text Color\",\n    \"website_headers\": \"Custom HTML Head Content\",\n    \"website_input_background_color\": \"Input Background Color\",\n    \"website_input_border_color\": \"Input Border Color\",\n    \"website_input_border_focus_color\": \"Input Border Focus Color\",\n    \"website_input_text_color\": \"Input Text Color\",\n    \"website_is_canonical\": \"Auto Set Current Page As Canonical\",\n    \"website_link_color\": \"Link Color\",\n    \"website_link_hover_color\": \"Link Hover Color\",\n    \"website_menu_background_primary_color\": \"Menu Background Color\",\n    \"website_menu_background_secondary_color\": \"Menu Background Secondary Color\",\n    \"website_menu_border_color\": \"Menu Border Color\",\n    \"website_menu_button_color\": \"Menu Button Color\",\n    \"website_menu_button_hover_color\": \"Menu Button Hover Color\",\n    \"website_menu_item_border_color\": \"Menu Item Divider Color(Vertical  Only)\",\n    \"website_menu_link_color\": \"Menu Text Color\",\n    \"website_menu_link_hover_color\": \"Menu Text Hover Color\",\n    \"website_menu_type\": \"Type\",\n    \"website_original_price_text_color\": \"Original Price Text Color\",\n    \"website_primary_color\": \"Primary Color\",\n    \"website_sale_color\": \"On Sale Tag Color\",\n    \"website_sale_price_text_color\": \"On Sale Price Text Color\",\n    \"website_sale_text_color\": \"On Sale Tag Text Color\",\n    \"website_scripts\": \"Javascript\",\n    \"website_section_action\": \"Add To Cart Button\",\n    \"website_section_action_final_btn\": \"Checkout Button\",\n    \"website_section_backgrounds\": \"Backgrounds\",\n    \"website_section_breadcrumbs\": \"Breadcrumbs\",\n    \"website_section_button_1\": \"Button 1\",\n    \"website_section_button_2\": \"Button 2\",\n    \"website_section_button_3\": \"Button 3\",\n    \"website_section_buttons\": \"Buttons\",\n    \"website_section_carousel_banner\": \"Carousel Banner\",\n    \"website_section_carousel_banner_color\": \"Carousel Banner Background Color\",\n    \"website_section_carousel_banner_link_hover_color\": \"Carousel Banner Link Hover Color\",\n    \"website_section_carousel_banner_text_color\": \"Carousel Banner Link Text Color\",\n    \"website_section_chat\": \"Line/FB Chat\",\n    \"website_section_count_down\": \"Countdown\",\n    \"website_section_faqs\": \"FAQs\",\n    \"website_section_footer\": \"Footer\",\n    \"website_section_inputs\": \"Inputs\",\n    \"website_section_links\": \"Links\",\n    \"website_section_nav\": \"Menu\",\n    \"website_section_other\": \"Other\",\n    \"website_section_sales\": \"Promotions\",\n    \"website_section_sliders\": \"Sliders\",\n    \"website_section_submenu\": \"Submenu\",\n    \"website_section_tags\": \"Tags\",\n    \"website_section_text\": \"Text\",\n    \"website_section_text_basic\": \"Basic\",\n    \"website_section_variant_button\": \"Variant Button\",\n    \"website_seo_broken_links\": \"Old Broken Links\",\n    \"website_seo_custom_url\": \"Custom URL\",\n    \"website_seo_description\": \"SEO Description\",\n    \"website_seo_keywords\": \"SEO Keywords\",\n    \"website_seo_title\": \"SEO Title\",\n    \"website_seo_url_redirects\": \"Website Redirect Urls\",\n    \"website_slider_arrow_button_background_color\": \"Arrow Button Color\",\n    \"website_slider_arrow_button_borderColor\": \"Arrow Button Border Color\",\n    \"website_slider_arrow_button_borderRadius\": \"Arrow Button Border Radius\",\n    \"website_slider_arrow_button_borderWidth\": \"Arrow Button Border Width\",\n    \"website_slider_arrow_button_hover_background_color\": \"Arrow Button Hover Color\",\n    \"website_slider_arrow_button_textColor\": \"Arrow Button Text Color\",\n    \"website_slider_dots_activeColor\": \"Dots Active Color\",\n    \"website_slider_dots_color\": \"Dots Color\",\n    \"website_slider_dots_display\": \"Dots Display\",\n    \"website_slider_dots_positioning\": \"Dots Positioning\",\n    \"website_slider_dots_style\": \"Dots Style\",\n    \"website_submenu_background_primary_color\": \"Submenu Background Color\",\n    \"website_submenu_background_secondary_color\": \"Submenu Background Secondary Color\",\n    \"website_submenu_border_color\": \"Submenu Border Color\",\n    \"website_submenu_item_border_color\": \"Submenu Item Divider Color(Vertical  Only)\",\n    \"website_submenu_link_color\": \"Submenu Text Color\",\n    \"website_submenu_link_hover_color\": \"Submenu Text Hover Color\",\n    \"website_tag_color\": \"Tag Color\",\n    \"website_tag_text_color\": \"Tag Text Color\",\n    \"website_text_2_color\": \"Text 2 Color\",\n    \"website_text_3_color\": \"Text 3 Color\",\n    \"website_text_color\": \"Text Color\",\n    \"website_type_category\": \"Product Category\",\n    \"website_type_link\": \"Link\",\n    \"website_type_link_blogs\": \"Blogs\",\n    \"website_type_link_flows\": \"Flows\",\n    \"website_type_link_news\": \"News\",\n    \"website_type_link_page\": \"Page\",\n    \"website_type_link_pageAndCategory\": \"Page And Category\",\n    \"website_type_link_product\": \"Product\",\n    \"website_type_link_store-location\": \"Store Locations\",\n    \"website_type_link_url\": \"Url\",\n    \"website_type_page\": \"Page\",\n    \"website_variant_button_border_color\": \"Variant Button Border Color\",\n    \"website_variant_button_border_radius\": \"Variant Button Border Radius\",\n    \"website_variant_button_color\": \"Variant Button Color\",\n    \"website_variant_button_hover_border_color\": \"Variant Button Hover Border Color\",\n    \"website_variant_button_hover_color\": \"Variant Button Hover Color\",\n    \"website_variant_button_hover_text_color\": \"Variant Button Hover Text Color\",\n    \"website_variant_button_selected_border_color\": \"Variant Button Selected Border Color\",\n    \"website_variant_button_selected_color\": \"Variant Button Selected Color\",\n    \"website_variant_button_selected_text_color\": \"Variant Button Selected Text Color\",\n    \"website_variant_button_text_color\": \"Variant Button Text Color\",\n    \"websites\": \"Websites\",\n    \"websites_templates_type_blocks\": \"Blocks Webpage\",\n    \"websites_templates_type_templates\": \"Advanced Webpage\",\n    \"wednesday\": \"Wednesday\",\n    \"wednesday opening hours\": \"Wednesday Opening Hours\",\n    \"weekday1\": \"Monday\",\n    \"weekday2\": \"Tuesday\",\n    \"weekday3\": \"Wednesday\",\n    \"weekday4\": \"Thursday\",\n    \"weekday5\": \"Friday\",\n    \"weekday6\": \"Saturday\",\n    \"weekday7\": \"Sunday\",\n    \"weeks\": \"Weeks\",\n    \"weight\": \"Weight\",\n    \"weight based rates\": \"Weight Based Rates\",\n    \"weight need to be set from each child items\": \"Weight need to be set from each child items\",\n    \"weight unit\": \"weight Unit\",\n    \"welcome to bigordr\": \"Welcome to BigOrdr!\",\n    \"welcome to bigordr supplier portal\": \"Welcome to BigOrdr Portal\",\n    \"width\": \"Width\",\n    \"width height ratio\": \"Width Height Ratio\",\n    \"will also be used for the canonical url\": \"Will Also Be Used For The Canonical URL\",\n    \"will be autocompleted\": \"Will Be Autocompleted\",\n    \"will be calculated accurately after saving\": \"Will Be Calculated Accurately After Saving\",\n    \"will only export campaigns with start and end dates\": \"Will only export campaigns with start and end dates.\",\n    \"win percentage\": \"Win Percentage\",\n    \"with grand totals\": \"with Grand Totals\",\n    \"with prices\": \"With Prices\",\n    \"without prices\": \"Without Prices\",\n    \"wizard\": \"Wizard\",\n    \"wizard pending\": \"PENDING...\",\n    \"wizard success\": \"SUCCESS!\",\n    \"wizard_start\": \"Start\",\n    \"wizards\": \"Wizards\",\n    \"wobble\": \"Wobble\",\n    \"workflow\": \"Workflow\",\n    \"workflows\": \"Workflows\",\n    \"workflows_items_activities_attentionRequired\": \"Attention Required\",\n    \"workflows_items_activities_authorization\": \"Authorization\",\n    \"workflows_items_activities_call\": \"Call\",\n    \"workflows_items_activities_email\": \"Email\",\n    \"workflows_items_activities_event\": \"Event\",\n    \"workflows_items_activities_meeting\": \"Meeting\",\n    \"workflows_items_activities_notes\": \"Notes\",\n    \"workflows_items_activities_refund\": \"Refund\",\n    \"workflows_items_activities_review\": \"Review\",\n    \"workflows_items_activities_todo\": \"Todo\",\n    \"workflows_items_activity\": \"Activity\",\n    \"workflows_items_status_open\": \"Open\",\n    \"workflows_items_status_re-open\": \"Re-Open\",\n    \"workflows_items_status_successful\": \"Successful\",\n    \"workflows_items_status_unsuccessful\": \"Unsuccessful\",\n    \"x\": \"X\",\n    \"xLarge\": \"Extra Larger\",\n    \"year\": \"Year\",\n    \"years\": \"Years\",\n    \"years_old\": \"Years\",\n    \"yes\": \"Yes\",\n    \"you are currently using the new version (beta)\": \"You are currently using the new version (beta)\",\n    \"you are currently using the new version (beta). go to the main app to log in.\": \"You are currently using the new version (beta). Go to the main app to log in.\",\n    \"you have less than to issue\": \"you have less than {availableCountToIssue} eInvoices to issue\",\n    \"youtube\": \"YouTube\",\n    \"youtube channel url\": \"Youtube Channel Url\",\n    \"youtube-shorts\": \"YouTube Shorts\",\n    \"zone priority\": \"Zone Priority\",\n    \"zones fee\": \"Zones Fee\",\n    \"zoomIn\": \"Zoom In\"\n  };\n});","define(\"client/translations/zh-tw\", [\"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    \"\": \"\",\n    \"#\": \"#\",\n    \"%\": \"%\",\n    \"...\": \"...\",\n    \"1 day\": \"1天\",\n    \"1 hour\": \"1小時\",\n    \"1 point equal to\": \"一點 = $\",\n    \"1 week\": \"一週\",\n    \"10s\": \"10秒\",\n    \"120+ days\": \"120天以上\",\n    \"120cm\": \"120cm\",\n    \"12Months\": \"1年\",\n    \"15 minutes\": \"15分鐘\",\n    \"150cm\": \"150cm\",\n    \"15s\": \"15秒\",\n    \"2 days\": \"2天\",\n    \"2 hours\": \"2小時\",\n    \"24Months\": \"2年\",\n    \"3 days\": \"3天\",\n    \"3 hours\": \"3小時\",\n    \"30 days\": \"30天\",\n    \"30 minutes\": \"30分鐘\",\n    \"31 characters max\": \"最多31字元\",\n    \"3rd party\": \"第三方平台\",\n    \"3rd-party\": \"第三方平台\",\n    \"3s\": \"3秒\",\n    \"4 days\": \"4天\",\n    \"4 digit code\": \"四碼\",\n    \"4 hours\": \"4小時\",\n    \"5 hours\": \"5小時\",\n    \"5s\": \"5秒\",\n    \"6 hours\": \"6小時\",\n    \"60 days\": \"60天\",\n    \"60cm\": \"60cm\",\n    \"6Months\": \"6個月\",\n    \"90 days\": \"90天\",\n    \"90cm\": \"90cm\",\n    \"ATM_BOT\": \"台灣銀行 ATM\",\n    \"ATM_CATHAY\": \"國泰世華銀行 ATM (暫不提供)\",\n    \"ATM_CHINATRUST\": \"中國信託 ATM\",\n    \"ATM_ESUN\": \"玉山銀行 ATM (暫不提供)\",\n    \"ATM_FIRST\": \"第一銀行 ATM\",\n    \"ATM_FUBON\": \"台北富邦 ATM (暫不提供)\",\n    \"ATM_LAND\": \"土地銀行 ATM\",\n    \"ATM_TACHONG\": \"大眾銀行 ATM (2018 年已併到元大銀行\",\n    \"ATM_TAISHIN\": \"台新銀行 ATM\",\n    \"Api Key\": \"串接金鑰\",\n    \"B2C\": \"B2C\",\n    \"C2C\": \"C2C\",\n    \"CODE128\": \"CODE128\",\n    \"CODE39\": \"CODE39\",\n    \"EAN13\": \"EAN13\",\n    \"EAN2\": \"EAN2\",\n    \"EAN5\": \"EAN5\",\n    \"EAN8\": \"EAN8\",\n    \"HCT\": \"新竹物流\",\n    \"Mailgun\": \"Mailgun\",\n    \"Maximum Range 3 Month\": \"最大範圍為3個月\",\n    \"Taiwan\": \"台灣\",\n    \"TapPay is out of service.\": \"Tap Pay 暫停服務，請稍候再嘗試\",\n    \"Wrong format of param CustomerPhone or length exceeded.\": \"參數客戶電話格式錯誤或長度超出\",\n    \"_blank_\": \" \",\n    \"a bulk split is already running\": \"大量拆單正在執行中，請勿再次送出。完成後將通知您。\",\n    \"a payment page for this invoice is still open, try again later\": \"此出貨單的付款頁面仍在進行中，請稍候再嘗試\",\n    \"abandoned\": \"放棄\",\n    \"access token\": \"轉換API Access Token\",\n    \"account\": \"帳戶\",\n    \"account code\": \"帳戶代碼\",\n    \"account description\": \"帳戶描述\",\n    \"account last 5 digits\": \"後五碼\",\n    \"account number\": \"帳戶號碼\",\n    \"account type\": \"帳戶類別\",\n    \"accountant (view only)\": \"帳務人員(僅有閱讀權限)\",\n    \"accounts\": \"帳戶\",\n    \"active\": \"有效的\",\n    \"activity\": \"交易歷史\",\n    \"add\": \"增加\",\n    \"add activity\": \"新增事件\",\n    \"add all\": \"添加全部\",\n    \"add attachment\": \"新增附件\",\n    \"add automation\": \"新增滿額禮或加購\",\n    \"add cell\": \"並排區塊\",\n    \"add convenience store\": \"增加便利商店\",\n    \"add credit card\": \"新增信用卡\",\n    \"add criteria\": \"新增條件\",\n    \"add custom worksheet\": \"增加自訂工作表\",\n    \"add department\": \"新增部門\",\n    \"add detail\": \"增加詳細資料\",\n    \"add display tags\": \"新增圖片文字標籤\",\n    \"add form step\": \"新增表單步驟\",\n    \"add header for multiple pages\": \"列印多頁單據時，每頁加上頁首\",\n    \"add help\": \"Add Help\",\n    \"add image\": \"新增圖片\",\n    \"add link\": \"新增連結\",\n    \"add new adjustment\": \"增加新佣金調整\",\n    \"add new choices\": \"增加分區任選\",\n    \"add new customization\": \"新增客製化規格\",\n    \"add new record\": \"Add New Record\",\n    \"add new rule\": \"新增規則\",\n    \"add new rule set\": \"新增規則組合\",\n    \"add new schedule\": \"新增排程\",\n    \"add new variant type\": \"增加商品規格\",\n    \"add or edit\": \"新增或編輯\",\n    \"add person\": \"新增聯絡人\",\n    \"add pickup location\": \"新增取貨地點\",\n    \"add prize\": \"新增獎品\",\n    \"add product\": \"增加商品\",\n    \"add product to shop\": \"上架商品\",\n    \"add quick link label as block title\": \"新增快速連結標籤為區塊標題\",\n    \"add row\": \"增加橫列\",\n    \"add schedule\": \"增加時間表\",\n    \"add spec\": \"新增規格\",\n    \"add status\": \"新增狀態\",\n    \"add step\": \"新增步驟\",\n    \"add surcharge\": \"新增附加費用\",\n    \"add tab\": \"新增標頭標籤\",\n    \"add to cart\": \"加入購物車\",\n    \"add to home page\": \"新增到首頁\",\n    \"add to quick links\": \"加入標題列\",\n    \"add to shop\": \"新增商品並上架\",\n    \"addAll\": \"添加全部\",\n    \"addToCartAndChooseOptions\": \"顯示加入購物車及選取內容文字\",\n    \"addToCartForAll\": \"統一顯示加入購物車文字\",\n    \"add_block\": \"新增區塊\",\n    \"added\": \"已加入\",\n    \"added member level points will be added to current member level points\": \"新增的會員點數將會被加入現有會員點數中\",\n    \"additional\": \"其他資訊\",\n    \"additional description\": \"更多描述\",\n    \"additional free shipping rule\": \"額外免運費條件\",\n    \"additional information\": \"其他資料\",\n    \"additional message\": \"更多電子信箱內文\",\n    \"additional promo code settings\": \"更多優惠代碼設定\",\n    \"address\": \"地址\",\n    \"addresses\": \"地址\",\n    \"addtional checkout information\": \"顯示在結帳頁面的額外資訊\",\n    \"addtional item checkout information\": \"關於商品的額外資訊，例如：過敏原標示\",\n    \"adjust all commission base costs\": \"調整所有抽成底價\",\n    \"adjust currently available preOrder qty\": \"調整目前可預購數量\",\n    \"adjust currently available qty\": \"調整目前可用數量\",\n    \"adjust indexes\": \"調整排序\",\n    \"adjust inventory\": \"調整庫存\",\n    \"adjust limit preorder\": \"調整預購限制數量\",\n    \"adjust limit qty\": \"調整限制數量\",\n    \"adjust limited preorder qty\": \"調整預購限制數量\",\n    \"adjust limited qty\": \"調整限制數量\",\n    \"adjust limited qty by\": \"預設限制數量方式\",\n    \"adjust member level\": \"調整會員等級\",\n    \"adjust prices\": \"調整價格\",\n    \"adjust total qty\": \"設定數量\",\n    \"adjusted commission base cost\": \"調整後佣金成本基數\",\n    \"adjusted commission total amount\": \"調整後佣金總數\",\n    \"adjusted shipping fee\": \"調整後運費\",\n    \"adjustment\": \"調整\",\n    \"adjustment amount\": \"依使用情況調整的會員點數\",\n    \"adjustment this month\": \"本月調整\",\n    \"adjustments\": \"調整\",\n    \"admin\": \"管理員\",\n    \"admin->credit card\": \"管理員 > 信用卡\",\n    \"admin->maintenance\": \"管理員 > 系統維護\",\n    \"admin->members\": \"管理員 > 會員\",\n    \"admin->tw_eInvoicing\": \"管理員 > 電子發票\",\n    \"admitted qty\": \"已入場數量\",\n    \"advanced\": \"進階\",\n    \"advanced search\": \"進階篩選\",\n    \"advanced template\": \"進階網頁\",\n    \"advanced template options\": \"進階網頁選項\",\n    \"advanced-settings\": \"進階設定\",\n    \"advancedTemplate\": \"進階網頁\",\n    \"advanced_template_type\": \"進階類型\",\n    \"advertisement\": \"廣告\",\n    \"advertiser id\": \"Advertiser_ID\",\n    \"after checkout\": \"結帳後\",\n    \"after noon\": \"中午以後\",\n    \"afterNoon\": \"中午以後\",\n    \"age categories\": \"年齡分類\",\n    \"ages\": \"年齡\",\n    \"alcoholic beverage / oil / vinegar / sauce\": \"酒/油/醋/醬\",\n    \"align_bottom\": \"靠下\",\n    \"align_center\": \"置中\",\n    \"align_equalHeights\": \"等高\",\n    \"align_left\": \"靠左\",\n    \"align_right\": \"靠右\",\n    \"align_top\": \"靠上\",\n    \"alignment\": \"對齊\",\n    \"all\": \"全部\",\n    \"all activity\": \"所有紀錄\",\n    \"all banks\": \"所有銀行\",\n    \"all is shown by default for past dispatch dates\": \"過去的出貨日期預設顯示「全部」\",\n    \"all is shown by default when printing of waybills is not allowed\": \"未開啟「允許列印托運單」時預設顯示「全部」\",\n    \"all padding\": \"上下左右內距\",\n    \"all qty\": \"所有數量\",\n    \"all to view all\": \"「全部」查看全部\",\n    \"all undispatched\": \"全部取消出貨\",\n    \"allTags\": \"Show All Tags (Unique and Combined)\",\n    \"all_payment_methods_in_shop\": \"使用商店所有付款方式\",\n    \"allocate e-invoice numbers method\": \"印表機選取電子發票號碼方式\",\n    \"allocated discount amount\": \"分攤折扣金額\",\n    \"allocated discount rate\": \"分攤折扣率\",\n    \"allocated reward earn\": \"分攤賺取獎勵\",\n    \"allocated reward level earn\": \"分攤賺取等級獎勵\",\n    \"allocated reward spend\": \"分攤使用獎勵\",\n    \"allow access date end\": \"允許登入結束日期\",\n    \"allow access date start\": \"允許登入開始日期\",\n    \"allow access to supplier portal\": \"允許登入供應商入口 (僅官網可用)\",\n    \"allow all campaigns\": \"所有商店/團購頁套用此官網主網域\",\n    \"allow all campaigns per website\": \"所有商店/團購頁套用此官網主網域\",\n    \"allow barcode in delivery notes\": \"出貨單允許顯示條碼\",\n    \"allow collect on behalf\": \"允許代收代付商品類型\",\n    \"allow credit card installments\": \"允許分期付款\",\n    \"allow cross store orders history\": \"會員查詢訂單時，顯示跨商店訂單\",\n    \"allow custom checkout fields\": \"允許自訂結帳欄位\",\n    \"allow custom checkout fields - use defaults from settings\": \"允許自訂結帳欄位: 使用預設設定\",\n    \"allow custom pick up location\": \"允許自訂取貨點取貨\",\n    \"allow customers to see enter promo code on checkout\": \"結帳時顯示\\\"我有優惠代碼\\\"\",\n    \"allow discount\": \"允許折扣\",\n    \"allow discount for on sale items\": \"允許特價商品可以再折扣\",\n    \"allow e-invoices to be issued\": \"允許開立電子發票\",\n    \"allow earn reward\": \"允許賺取獎勵\",\n    \"allow linked campaigns\": \"允許連結活動\",\n    \"allow multiple bulk discounts per item\": \"允許單一商品套用多個量販折扣\",\n    \"allow on sale items\": \"允許特價商品\",\n    \"allow order messages\": \"允許訂單留言功能\",\n    \"allow pick up\": \"允許自取\",\n    \"allow pos terminals\": \"允許 POS 終端\",\n    \"allow preOrder\": \"允許預購\",\n    \"allow printing of waybills\": \"允許列印托運單\",\n    \"allow public template editor\": \"可建網頁公用模板\",\n    \"allow recalculate inventory\": \"Allow Recalculate Inventory\",\n    \"allow recurring schedules\": \"允許定期購\",\n    \"allow rss feeds on campaigns\": \"商店允許 RSS訂閱\",\n    \"allow seo\": \"允許 SEO (搜尋引擎最佳化)\",\n    \"allow shipping\": \"可運輸\",\n    \"allow shopping\": \"允許購物車\",\n    \"allow spend reward\": \"允許使用獎勵\",\n    \"allow sync product properties\": \"允許各商店自訂商品內容\",\n    \"allow tax numbers per shop\": \"Allow tax numbers per shop\",\n    \"allow this shop to appear in supplier portal\": \"允許此商店出現在供應商入口\",\n    \"allow to earn reward points\": \"允許累積會員點數\",\n    \"allow to re-index all products\": \"允許重新排序所有商品\",\n    \"allow to respond with multiple lines\": \"允許多行文字回應\",\n    \"allow to spend reward points\": \"允許使用會員點數折抵消費金額\",\n    \"allow today pickup\": \"允許當日為起算日\",\n    \"allow track reward for non member\": \"允許非會員累積點數（非會員不能使用會員點數，成為會員後先前累積的點數就能看到和使用)\",\n    \"allow transporter arrive time period\": \"允許指定黑貓物流到貨時段（僅適用於黑貓宅急便）\",\n    \"allow web pos\": \"可啟用 Web POS 模式\",\n    \"allow with promo code\": \"允許使用折扣碼\",\n    \"allowApiAccess\": \"Allow api access\",\n    \"allowShipSeparately\": \"允許贈品拆單運送\",\n    \"allowed emails\": \"限可使用電子信箱\",\n    \"allowed ip addresses\": \"允許的IP位址\",\n    \"allowed product tags\": \"允許商品標籤\",\n    \"allowed shipping zones\": \"目前可使用的運費規則\",\n    \"allowed shop\": \"可使用商店\",\n    \"allowed telephones\": \"限可使用手機帳號\",\n    \"almost empty qty warning shop custom text\": \"即將售完訊息自訂文字\",\n    \"almost empty qty warning threshold\": \"即將售完數量門檻\",\n    \"almost empty qty warning use default from settings\": \"即將售完訊息: 使用預設設定\",\n    \"almost pre order qty warning shop custom text\": \"即將轉為預購訊息自訂文字\",\n    \"almostEmptyQtyWarningShopCustomText_placeholder\": \"商品即將售完\",\n    \"almostPreOrderQtyWarningShopCustomText_placeholder\": \"商品即將轉為預購\",\n    \"already added\": \"已加入\",\n    \"already imported\": \"先前已匯入\",\n    \"already sent\": \"已送出\",\n    \"always charge shipping fee\": \"一定要收運費\",\n    \"always display wizard\": \"永遠顯示快速建立模示\",\n    \"always hide\": \"永遠隱藏\",\n    \"always hide menu\": \"永遠隱藏主選單\",\n    \"amount\": \"金額\",\n    \"amount due\": \"總撥款\",\n    \"animation\": \"動畫\",\n    \"animation count\": \"動畫次數\",\n    \"animation duration\": \"動畫長度\",\n    \"animation only plays when the element first scrolls into view\": \"動畫只會在元素首次進入畫面時觸發\",\n    \"animations\": \"動畫\",\n    \"anonymized product name\": \"匿名商品名稱\",\n    \"answer\": \"答案\",\n    \"anti-fraud info\": \"防詐騙資訊\",\n    \"anti-fraud text\": \"參考：我們不會要求並指示您至 ATM 操作。ATM 只有匯款及轉帳功能，無法解除分期付款或訂單錯誤問題。隨時可撥打 165 反詐騙諮詢專線。\",\n    \"anyNextAvailableNumbers\": \"任何下一個可用電子發票號碼\",\n    \"anytime\": \"任何時段\",\n    \"api access\": \"Api Access\",\n    \"api access token\": \"API Token\",\n    \"apiAccess\": \"API\",\n    \"api_access_token_generate_note\": \"你確定要生成新的 API Token？這將會使目前的 API Token 失效。\",\n    \"api_access_token_note\": \"此 API Token 將不會再次顯示。請立即複製。\",\n    \"api_settings wizard description\": \"設定快速建立簡介\",\n    \"append to default message\": \"附加於預設內容\",\n    \"apple pay\": \"Apple Pay\",\n    \"applePay\": \"Apple Pay\",\n    \"apply adjustment amount\": \"退款金額扣除已使用點數\",\n    \"apply discount to shipping fee and payment fee\": \"允許運費和付款手續費適用優惠\",\n    \"apply schedules to all images\": \"套用排程至所有圖片\",\n    \"apply schedules to all pages\": \"將排套用至所有頁面\",\n    \"apply to all orders\": \"應用至所有訂單\",\n    \"apply to all products\": \"適用於全部商品\",\n    \"apply to first order only\": \"僅應用至第一筆訂單\",\n    \"apply to last order only\": \"僅應用至最後一筆訂單\",\n    \"approve\": \"批准\",\n    \"archive\": \"封存\",\n    \"archived\": \"已封存\",\n    \"are you sure you want to archive\": \"您確定要封存?\",\n    \"are you sure you want to cancel invoice number\": \"您確定要作廢發票\",\n    \"are you sure you want to cancel this order?\": \"您確定要取消訂單嗎?\",\n    \"are you sure you want to cancel?\": \"您確定要取消?\",\n    \"are you sure you want to clear\": \"確定要清除 {item} 嗎？\",\n    \"are you sure you want to clear page\": \"您確定要刪除嗎?\",\n    \"are you sure you want to close this guide?\": \"確定要關閉此導覽嗎？關閉後將不再顯示。\",\n    \"are you sure you want to close?\": \"您確定要關閉嗎?\",\n    \"are you sure you want to close? any unsaved changes will be lost.\": \"您確定要關閉嗎? 任何未保存的變更將會遺失。\",\n    \"are you sure you want to comment and notify customer\": \"您確定要留言和通知顧客嗎?\",\n    \"are you sure you want to copy from master to children\": \"您確定要複製主活動到所有子活動嗎？\",\n    \"are you sure you want to delete\": \"您確定要刪除嗎?\",\n    \"are you sure you want to delete comment\": \"您確定要刪除留言\",\n    \"are you sure you want to delete image?\": \"您確定要刪除圖片?\",\n    \"are you sure you want to delete this campaign\": \"您是否確定要刪除此商店活動頁面？您將無法再復原這個頁面。\",\n    \"are you sure you want to delete this step? all linked steps will be deleted too\": \"您確定要刪除此步驟？所有與此連結的步驟也會連帶刪除\",\n    \"are you sure you want to delete variant option\": \"您確定要刪除商品變體選項嗎？相關子商品也會連帶刪除。\",\n    \"are you sure you want to dispatch all?\": \"您確定要全部發送嗎?\",\n    \"are you sure you want to hold all?\": \"您確定要全部暫停嗎?\",\n    \"are you sure you want to logout\": \"您確定要登出嗎?\",\n    \"are you sure you want to mark as completed?\": \"你確認要標記為已完成？\",\n    \"are you sure you want to merge contacts\": \"你確認要合併聯絡人？\",\n    \"are you sure you want to move all documents to dispatch process\": \"確定要將 {count} 筆單據移至 {dispatchProcess}？\",\n    \"are you sure you want to re-index all products? this may take some time.\": \"您確認要重新排序所有商品嗎？這可能會花上一些時間。\",\n    \"are you sure you want to re-sync product\": \"確定要重新整理嗎？\",\n    \"are you sure you want to remove\": \"您確定要刪除嗎?\",\n    \"are you sure you want to remove entire row?\": \"你確認要刪除這個橫列嗎？\",\n    \"are you sure you want to remove item\": \"您確定要刪除嗎: {item}?\",\n    \"are you sure you want to remove this cell?\": \"你確認要刪除這個儲存格嗎？\",\n    \"are you sure you want to remove this custom sheet?\": \"你確認要刪除這個自訂工作表嗎？\",\n    \"are you sure you want to reprint\": \"您確定要重新列印?\",\n    \"are you sure you want to reset all rows?\": \"您確定要重置所有的橫列嗎？\",\n    \"are you sure you want to revert to draft\": \"您確定要還原成草稿?\",\n    \"are you sure you want to save as template\": \"您確定要存為模板?\",\n    \"are you sure you want to send an email to the supplier\": \"確定要寄送電子郵件給供應商嗎\",\n    \"are you sure you want to unarchive\": \"您確定要取消封存?\",\n    \"are you sure you want to undispatch all?\": \"您確定要全部取消發送嗎?\",\n    \"are you sure you want to undo cancel?\": \"您確定要回復已取消?\",\n    \"are you sure you want to undo void\": \"你確定要取消作廢嗎？\",\n    \"are you sure you want to undo void for document\": \"您確定要回復作廢的單據\",\n    \"are you sure you want to undo?\": \"您確定要回復?\",\n    \"are you sure you want to unhold all?\": \"您確定要全部取消暫停嗎?\",\n    \"are you sure you want to void document\": \"您確定要作廢單據\",\n    \"area\": \"地區\",\n    \"array\": {\n      \"min\": \"必填 {limit}\"\n    },\n    \"arrival date\": \"到貨日期\",\n    \"arrival date is\": \"到貨日期{date}\",\n    \"arrow settings\": \"箭頭設定\",\n    \"arrows button background color\": \"箭頭按鈕背景顏色\",\n    \"arrows button border color\": \"箭頭按鈕邊框顏色\",\n    \"arrows button hover color\": \"滑鼠移到箭頭按鈕顏色\",\n    \"arrows button size\": \"箭頭按鈕大小\",\n    \"arrows color\": \"箭頭顏色\",\n    \"arrows position\": \"箭頭位置\",\n    \"arrows settings\": \"箭頭設定\",\n    \"arrows size\": \"箭頭大小\",\n    \"assets\": \"資產\",\n    \"assign a new waybill number for each package\": \"系統會為每件包裹生成獨立託運單。僅適用於按體積計費的運費。\",\n    \"assign to\": \"指派給\",\n    \"associate\": \"抽成合作夥伴\",\n    \"associates\": \"抽成合作夥伴\",\n    \"at least 6 characters\": \"至少6個字符\",\n    \"atm_approved\": \"付款成功\",\n    \"atm_attentionRequired\": \"需要手動處理\",\n    \"atm_bsp\": \"永豐銀行\",\n    \"atm_eSun\": \"玉山銀行\",\n    \"atm_expired\": \"已超過付款期限\",\n    \"atm_pending\": \"未付款\",\n    \"atm_pending_short\": \"未付款\",\n    \"atm_ubot\": \"聯邦銀行\",\n    \"attentionRequired\": \"需要手動處理\",\n    \"authorize refund\": \"授權退款\",\n    \"auto\": \"自動\",\n    \"auto add new product to website\": \"自動上架新商品到商店\",\n    \"auto cancel expired atm orders\": \"自動取消過期的ATM訂單\",\n    \"auto expand\": \"自動展開\",\n    \"auto fill column\": \"自動填入以下內容\",\n    \"auto fill commissions\": \"自動填入歷史抽成\",\n    \"auto fill shipping fee adjustment\": \"自動填入調整運費\",\n    \"auto fill variant children's code\": \"自動填商品編碼\",\n    \"auto fill variant children's name\": \"自動填商品名稱\",\n    \"auto generate detail row\": \"自動產生商品細項橫列\",\n    \"auto generate if empty\": \"如果為空，則自動生成\",\n    \"auto generate sales history (optional)\": \"自動產生銷售紀錄（非必填）\",\n    \"auto hide\": \"自動隱藏\",\n    \"auto index\": \"自動編號\",\n    \"auto link member\": \"會員資料是否和聯絡人資料自動連結？\",\n    \"auto mark as printed\": \"自動標記為已列印\",\n    \"auto print invoices\": \"自動列印統一發票\",\n    \"auto redirect to url when campaign has ended\": \"結團後自動到到不同的網址\",\n    \"auto renew plan\": \"自動續訂方案\",\n    \"auto select images when uploading\": \"上傳圖片時自動選擇圖片\",\n    \"auto send dispatched email at 10pm every day\": \"每天10點自動發送出貨通知信\",\n    \"automatically end campaign\": \"自動結束活動\",\n    \"automatically send payment reminders\": \"自動發送付款提醒信\",\n    \"automatically update all following invoices\": \"自動更新其他發票號碼\",\n    \"automation\": \"滿額禮或加購\",\n    \"automation index\": \"加價購序數\",\n    \"automation key\": \"加價購識別碼\",\n    \"automation priority\": \"條件排序\",\n    \"automation_action_mayAdd\": \"加價購\",\n    \"automation_action_mustAdd\": \"滿額禮\",\n    \"automation_qty\": \"金額/數量\",\n    \"automation_selection_type\": \"添加方式\",\n    \"automation_then\": \"則\",\n    \"automation_title\": \"顯示標題\",\n    \"automation_when\": \"當\",\n    \"automations\": \"滿額禮或加購\",\n    \"automations shipping behavior\": \"設定贈品（拆單）方式\",\n    \"automations-settings\": \"自動化設定\",\n    \"autoplay\": \"自動播放\",\n    \"autoplay delay\": \"輪播秒數\",\n    \"available\": \"可得到\",\n    \"available preOrder qty\": \"可預購數量\",\n    \"available promo code\": \"搜尋現有優惠代碼\",\n    \"available qty\": \"可用庫存\",\n    \"available to sell qty\": \"可賣數量\",\n    \"available_sales_qty\": \"可銷售量\",\n    \"average\": \"平均\",\n    \"average days per transaction\": \"平均消費週期(日)\",\n    \"average item price\": \"平均價格\",\n    \"average order value\": \"平均單價\",\n    \"average price\": \"平均價格\",\n    \"awaiting payment\": \"未付款\",\n    \"awaitingPayment\": \"未付款\",\n    \"awaitingRecurringPayment\": \"等待定期購付款\",\n    \"awaitingReplyFromCustomer\": \"等待顧客回覆\",\n    \"awaitingReplyFromMerchant\": \"等待商家回覆\",\n    \"b2b\": \"B2B,\",\n    \"b2c\": \"B2C\",\n    \"back to previous\": \"回上一頁\",\n    \"backInDown\": \"後方進入後向下\",\n    \"backInUp\": \"後方進入後向上\",\n    \"back_page\": \"回到上一頁\",\n    \"background\": \"背景\",\n    \"background color\": \"背景色\",\n    \"background color options\": \"背景顏色選項\",\n    \"background image\": \"背景圖片\",\n    \"background transparency\": \"背景透明度\",\n    \"balance sheet\": \"資產負債表\",\n    \"bank\": \"銀行\",\n    \"bank accounts\": \"銀行帳戶\",\n    \"bank of china\": \"Bank of China\",\n    \"bank processing error\": \"信用卡銀行發生錯誤，請稍後再試\",\n    \"bank transfer\": \"銀行轉帳\",\n    \"bankTransfer\": \"銀行轉帳\",\n    \"banking details\": \"銀行帳號資料\",\n    \"banner\": \"橫幅圖\",\n    \"banner bottom\": \"下方橫幅圖\",\n    \"banner top\": \"上方橫幅圖\",\n    \"barcode\": \"國際條碼\",\n    \"barcode print settings\": \"國際條碼列印設定\",\n    \"barcode type\": \"條碼類型\",\n    \"barcode types\": \"條碼類型\",\n    \"barcode_ean13\": \"國際條碼(EAN13)\",\n    \"barcode_generator_error\": \"無法產生條碼\",\n    \"barcodes\": \"國際條碼\",\n    \"base cost\": \"抽成底價\",\n    \"basic\": \"基本\",\n    \"basic information\": \"基本資料\",\n    \"basic settings\": \"基本設定\",\n    \"basic-settings\": \"基本設定\",\n    \"basic_webpage\": \"基本網頁\",\n    \"batch number\": \"批號\",\n    \"before checkout\": \"結帳前\",\n    \"before noon\": \"中午以前\",\n    \"beforeNoon\": \"中午以前\",\n    \"beginning of month\": \"月初\",\n    \"beta\": \"新功能(測試中/可試用)\",\n    \"beta settings\": \"測試設定\",\n    \"beta-settings\": \"測試設定\",\n    \"better images\": \"better images\",\n    \"bigOrdrPlanStaticVirtualAccountNumber_placeholder\": \"留空則自動產生單次使用虛擬帳號\",\n    \"bigger\": \"放大\",\n    \"bigordr\": \"BigOrdr\",\n    \"bigordr customer\": \"BigOrdr顧客\",\n    \"bigordr plan\": \"BigOrdr 方案\",\n    \"bigordr-background-fixed\": \"滑動效果\",\n    \"bigordr-background-fixed-background\": \"滑動效果底層\",\n    \"bigordr-background-fixed-cover\": \"滑動效果上層\",\n    \"bigordr-banner\": \"滿版圖文\",\n    \"bigordr-cell\": \"並排區塊\",\n    \"bigordr-flex-cell\": \"置中對齊區塊\",\n    \"bigordr-form\": \"表單\",\n    \"bigordr-grid\": \"圖文群組\",\n    \"bigordr-grid-images\": \"圖片群組\",\n    \"bigordr-inner-row\": \"一般區塊\",\n    \"bigordr-picture-block\": \"圖片\",\n    \"bigordr-picture-layer-container-block\": \"自定義橫幅\",\n    \"bigordr-scratch-card\": \"刮刮卡\",\n    \"bigordr-stories-block\": \"動態\",\n    \"bigordr-strip\": \"留白圖文\",\n    \"bigordr-strip-image\": \"留白圖文圖片\",\n    \"bigordr-tabs-with-header-block\": \"頁籤傳送門\",\n    \"billing address\": \"帳單地址\",\n    \"billing management\": \"系統費管理\",\n    \"billingAddress\": \"帳單地址\",\n    \"billing_company_name\": \"帳單公司名稱\",\n    \"billing_contact\": \"帳單聯絡資訊\",\n    \"billing_credits\": \"點數\",\n    \"billing_credits_auto_topup\": \"自動儲值\",\n    \"billing_credits_auto_topup_amount\": \"每次自動儲值金額\",\n    \"billing_credits_auto_topup_disabled\": \"自動儲值已停用\",\n    \"billing_credits_auto_topup_enabled\": \"自動儲值已啟用\",\n    \"billing_credits_auto_topup_when_amount_below\": \"當餘額低於指定金額時，自動儲值\",\n    \"billing_credits_buy\": \"立即購買點數\",\n    \"billing_credits_history\": \"點數紀錄\",\n    \"billing_details\": \"帳單資訊\",\n    \"billing_email\": \"帳單電子郵件\",\n    \"billing_invoices_history\": \"系統費紀錄\",\n    \"billing_plan\": \"方案\",\n    \"billing_plan_admin\": \"管理員方案\",\n    \"billing_plan_free\": \"免費方案\",\n    \"billing_plan_paid1\": \"基本方案\",\n    \"billing_plan_paid2\": \"專業方案\",\n    \"billing_plans\": \"方案\",\n    \"billing_systemlead_addon\": \"e首發票加購\",\n    \"billing_systemlead_addon_confirm\": \"要訂閱 e首發票加購（每年 NT${price}）？每年續約，續約發票將於 11 月開立（適用於次年期間）。\",\n    \"billing_systemlead_addon_disabled\": \"未訂閱\",\n    \"billing_systemlead_addon_enabled\": \"已啟用\",\n    \"billing_systemlead_addon_plan\": \"方案\",\n    \"billing_systemlead_addon_plan_12000\": \"每年 12,000 張電子發票\",\n    \"billing_systemlead_addon_renew\": \"立即續約\",\n    \"billing_systemlead_addon_renew_available_from\": \"續約將於 {date} 起\",\n    \"billing_systemlead_addon_renewal_date\": \"續約日期\",\n    \"billing_systemlead_addon_subscribe\": \"訂閱\",\n    \"billing_systemlead_addon_yearly_price\": \"年費\",\n    \"billing_telephone\": \"帳單電話\",\n    \"birthday\": \"生日\",\n    \"birthday email\": \"生日祝賀信件\",\n    \"birthday months\": \"生日月份\",\n    \"birthday reward recipients\": \"生日獎勵收受人\",\n    \"birthday rewards\": \"生日獎勵\",\n    \"birthday years\": \"生日年份\",\n    \"black\": \"黑色\",\n    \"black list\": \"黑名單\",\n    \"black list reason\": \"黑名單原因\",\n    \"blackListedContactMsgDefault\": \"很抱歉，目前無法處理您的訂單。請聯繫我們的客服協助。\",\n    \"blog\": \"文章\",\n    \"blogs\": \"文章\",\n    \"blogs and news display settings\": \"文章和最新消息顯示設定\",\n    \"blogs and news preview settings\": \"文章和最新消息總覽設定\",\n    \"blogs images fit\": \"圖片顯示方式\",\n    \"blogs images ratio\": \"文章圖片長寬比例\",\n    \"blogs preview settings\": \"文章總覽設定\",\n    \"blogs settings\": \"文章設定\",\n    \"blogs show breadcrumb\": \"顯示麵包屑導覽\",\n    \"blogs style\": \"文章排版風格\",\n    \"blogs tags\": \"文章標籤\",\n    \"blogs_and_news_preview_author\": \"總覽顯示文章和最新消息作者\",\n    \"blogs_and_news_preview_date\": \"總覽顯示文章和最新消息日期\",\n    \"blogs_and_news_preview_description\": \"總覽顯示文章和最新消息描述\",\n    \"blogs_and_news_preview_tags\": \"總覽顯示文章和最新消息標籤\",\n    \"blogs_and_news_preview_title\": \"總覽顯示文章和最新消息標題\",\n    \"blogs_style1\": \"風格 1（多篇文章一列）\",\n    \"blogs_style2\": \"風格 2（單篇文章一列）\",\n    \"blue\": \"藍色\",\n    \"blurIn\": \"模糊進入\",\n    \"book qty\": \"帳面庫存量\",\n    \"border\": \"邊框\",\n    \"border color\": \"邊框顏色\",\n    \"border radius\": \"邊框圓角\",\n    \"border style\": \"邊框樣式\",\n    \"border width\": \"邊框寬度\",\n    \"border_dashed\": \"虛線\",\n    \"border_dotted\": \"點線\",\n    \"border_double\": \"雙線\",\n    \"border_none\": \"無\",\n    \"border_solid\": \"實線\",\n    \"bot\": \"機器人\",\n    \"bot builder\": \"建立聊天機器人\",\n    \"bottom\": \"下方\",\n    \"bounce\": \"彈跳\",\n    \"brand\": \"品牌\",\n    \"brands\": \"品牌\",\n    \"brown\": \"棕色\",\n    \"browse\": \"瀏覽\",\n    \"browse mode\": \"瀏覽\",\n    \"browser default\": \"瀏覽器預設字型\",\n    \"bsp\": \"永豐銀行Bank SinoPac\",\n    \"bsp_hash\": \"Hash\",\n    \"bsp_merchant_id\": \"商家編號\",\n    \"bsp_payments\": \"永豐銀行Bank SinoPac\",\n    \"bsp_virtualAccount\": \"啟用虛擬帳戶\",\n    \"bulk add\": \"商品批次上架\",\n    \"bulk discount\": \"量販折扣\",\n    \"bulk discount conflicts\": \"量販折扣衝突\",\n    \"bulk discount schedules\": \"量販折扣時間表\",\n    \"bulk discounts\": \"量販折扣\",\n    \"bulk edit\": \"大量編輯\",\n    \"bulk insert products\": \"同步填入多個商品\",\n    \"bulk insert products into campaign\": \"請輸入商品代碼或商品名稱，且每個商品請分行。\",\n    \"bulk insert products into document\": \"請輸入商品代碼或商品名稱，且每個商品請分行。\",\n    \"bulk split\": \"大量拆單\",\n    \"bulk split finished\": \"大量拆單完成\",\n    \"bulk split may still be processing do not resubmit refresh dispatch folder\": \"大量拆單可能仍在伺服器上處理中，請勿再次送出。請於數分鐘後重整「出貨管理」以確認結果。\",\n    \"bulk split queued\": \"大量拆單已排程，完成後將通知您\",\n    \"bulk split stopped\": \"大量拆單未完成即中止\",\n    \"bulk update document status and print\": \"批次更新狀態並列印\",\n    \"bulk update status and print\": \"批次更新狀態並列印\",\n    \"button\": \"按鈕\",\n    \"button alignment\": \"Button Alignment\",\n    \"button click\": \"按下按鈕\",\n    \"button image options\": \"圖片選項\",\n    \"button image radius\": \"圖片圓角值\",\n    \"button image type\": \"按鈕圖片類型\",\n    \"button label\": \"按鈕標籤\",\n    \"button styles\": \"按鈕風格\",\n    \"button1\": \"按鈕1\",\n    \"button2\": \"按鈕2\",\n    \"button3\": \"按鈕3\",\n    \"buttons\": \"按鈕\",\n    \"by documents\": \"依出貨單檢視\",\n    \"by invoices\": \"依電子發票檢視\",\n    \"by orders\": \"依訂單\",\n    \"by products\": \"依商品\",\n    \"byAllOrder\": \"顯示所有商品\",\n    \"byAllOrdersWithOneColumnRow\": \"商品品項獨立顯示\",\n    \"byAllOrdersWithOneColumnRowWithSummary\": \"商品品項獨立顯示 ＋明細\",\n    \"byDetails\": \"顯示訂購商品數量\",\n    \"byDetailsWithGrandTotals\": \"顯示訂購商品數量加總計\",\n    \"byDispatchProcesses\": \"依出貨狀態\",\n    \"byDocumentsStatuses\": \"依單據狀態\",\n    \"c2c\": \"C2C\",\n    \"cache updated\": \"暫存已更新\",\n    \"calculate dispatch days starting from today\": \"允許當日為起算日\",\n    \"calendar settings\": \"日曆設定\",\n    \"calendar settings type\": \"日曆設定方式\",\n    \"callback url\": \"重導向頁面網址\",\n    \"campaign\": \"活動\",\n    \"campaign detail product tags\": \"限本商店商品標籤\",\n    \"campaign ended settings\": \"活動結束設定\",\n    \"campaign expired settings\": \"結團設定\",\n    \"campaign images\": \"活動圖片\",\n    \"campaign key\": \"活動識別碼\",\n    \"campaign notification\": \"活動提醒\",\n    \"campaign period\": \"活動期間\",\n    \"campaign products\": \"活動商品\",\n    \"campaign qty\": \"活動數量\",\n    \"campaign reports\": \"活動報表\",\n    \"campaign review is not set!\": \"尚未設定活動審查流程！\",\n    \"campaign settings\": \"商店設定\",\n    \"campaign status\": \"商店狀態\",\n    \"campaign-settings\": \"活動設定\",\n    \"campaignDetail_active\": \"銷售中\",\n    \"campaignDetail_draft\": \"草稿\",\n    \"campaignDetail_inactive\": \"隱藏中\",\n    \"campaignDetail_preOrder\": \"預購中\",\n    \"campaignDetail_soldOut\": \"已售完\",\n    \"campaign_description\": \"商店簡介\",\n    \"campaign_description_group\": \"商店主打簡述\",\n    \"campaign_expired_template\": \"已結團內文\",\n    \"campaigns\": \"活動\",\n    \"campaigns finished syncing\": \"活動結束同步\",\n    \"campaigns review\": \"活動審查流程\",\n    \"campaigns review settings\": \"活動審查流程設定\",\n    \"campaigns_are_syncing\": \"活動同步中，請無編輯主活動與子活動\",\n    \"can preOrder\": \"可預購\",\n    \"can split by transporter\": \"可依照物流業者拆單\",\n    \"cancel\": \"取消\",\n    \"cancel invoice\": \"作廢統一發票\",\n    \"cancel invoice reason\": \"作廢統一發票原因 (最多20個字符)\",\n    \"cancel order\": \"取消訂單\",\n    \"cancel_save\": \"取消儲存\",\n    \"cancelled\": \"已取消\",\n    \"cancelled invoices\": \"已作廢發票\",\n    \"cannot delete. tag is in use by shipping zones\": \"此標籤正被 {count} 個運費規則使用：{zones}。仍要刪除嗎？\",\n    \"cannot have empty commission\": \"需要填入抽成\",\n    \"cannot import due to incorrect data\": \"訂單資料有錯誤無法匯入\",\n    \"cannot issue e-invoices\": \"無法開立\",\n    \"cannot merge. contacts are linked to different members\": \"無法合併，聯絡人連結到不同的會員\",\n    \"cannot refund credit card\": \"無法信用卡退刷總計\",\n    \"cannot send\": \"無法送出\",\n    \"cannot upload file, files must be under 10mb\": \"無法上傳單據，檔案必須小於10 MB。\",\n    \"cannot void because document has used reward points\": \"因為當次消費賺取的會員點數在其他次消費中被使用，退款總額中將會依使用情形調整。\",\n    \"carrier refused to cancel waybill\": \"物流商拒絕取消此托運單\",\n    \"cart\": \"購物車\",\n    \"cart button style\": \"購物車按鈕樣式\",\n    \"cart items\": \"購物車品項\",\n    \"cash\": \"貨到付款\",\n    \"cash before delivery\": \"銀行轉帳\",\n    \"cash book\": \"銀行帳戶\",\n    \"cash on delivery\": \"貨到付款\",\n    \"cash payment fee\": \"貨到付款手續費\",\n    \"cashBeforeDelivery\": \"ATM轉帳\",\n    \"category\": \"性質\",\n    \"cathay united bank\": \"Cathay United Bank\",\n    \"cc_approved\": \"刷卡成功\",\n    \"cc_awaitingPayment\": \"刷卡未付款\",\n    \"cc_awaiting_3ds_verification\": \"3D驗證未完成\",\n    \"cc_declined\": \"刷卡失敗\",\n    \"cc_paidOut\": \"已撥款\",\n    \"cc_partial_card_number\": \"卡號\",\n    \"cc_pending\": \"刷卡申請退款中\",\n    \"cc_ref\": \"付款編碼\",\n    \"cc_refund\": \"刷卡退款\",\n    \"cc_refundRequested\": \"刷卡申請退款中\",\n    \"cc_refundRequested date\": \"申請退款日期\",\n    \"cc_refund_total\": \"退款總計\",\n    \"cc_refunded\": \"刷卡已退款\",\n    \"cc_refunded date\": \"退款日期\",\n    \"cc_total\": \"刷卡金額\",\n    \"cc_unsuccessful\": \"不成功\",\n    \"center\": \"中側\",\n    \"chang hwa bank\": \"Chang Hwa Bank\",\n    \"change convenience store\": \"更換便利商店\",\n    \"change credit card\": \"更改信用卡\",\n    \"change language? will reload page\": \"您確定要更改語言？此動作將會更新頁面\",\n    \"change logs\": \"更新紀錄\",\n    \"change password\": \"變更密碼\",\n    \"change pickup method\": \"改變取貨方式(不建議)\",\n    \"change return convenience store\": \"更換\",\n    \"changes summary\": \"商品變動列表\",\n    \"changes_deployed\": \"工程師已更新伺服器\",\n    \"channel\": \"通路\",\n    \"channel id\": \"頻道ID\",\n    \"channel secret\": \"頻道密鑰\",\n    \"channels\": \"通路\",\n    \"charge shipping fee\": \"收運費\",\n    \"charge to different account\": \"選擇其他帳號\",\n    \"charge to different customer account\": \"選擇其他的顧客帳號\",\n    \"charge to different supplier account\": \"選擇其他的供應商帳號\",\n    \"chat messages\": \"聊天訊息\",\n    \"check history\": \"查詢歷史\",\n    \"check order status\": \"訂單查詢\",\n    \"checkout\": \"結帳\",\n    \"checkout convenience store description\": \"客製便利商店訊息\",\n    \"checkout description\": \"商品結帳階段資訊\",\n    \"checkout details description\": \"結帳步驟:顧客資料 客製化訊息\",\n    \"checkout logs\": \"結帳紀錄(Checkout Logs)\",\n    \"checkout page on select dispatch or arrival date\": \"結帳頁面選擇預計出貨日或是預計到貨日\",\n    \"checkout payment description\": \"結帳步驟:付款 客製化訊息\",\n    \"checkout settings\": \"結帳設定\",\n    \"checkout summary description\": \"結帳步驟:購物車內容 客製化訊息\",\n    \"checkout/details\": \"結帳顧客資料 (步驟 2/4)\",\n    \"checkout/payment\": \"結帳付款 (步驟 3/4)\",\n    \"checkout/success\": \"結帳成功 (步驟 4/4)\",\n    \"checkout/summary\": \"結帳購物車內容 (步驟 1/4)\",\n    \"checkoutId logs\": \"結帳ID紀錄(CheckoutId Logs)\",\n    \"child campaign\": \"子活動\",\n    \"children campaign\": \"子活動\",\n    \"choice\": \"選項\",\n    \"choice name\": \"任選名稱\",\n    \"choice price\": \"任選價格\",\n    \"choiceIsEmpty\": \"任選商品內容空白\",\n    \"choices\": \"選項\",\n    \"choose between\": \"選擇\",\n    \"choose form\": \"選擇問卷\",\n    \"choose how to adjust qty\": \"選擇調整數量方式\",\n    \"choose link\": \"選擇連結\",\n    \"choose qty\": \"任選數量\",\n    \"choose template\": \"套用模板\",\n    \"chooseBetween\": \"選擇\",\n    \"choose_all\": \"全部\",\n    \"choose_between\": \"選擇\",\n    \"citizenDigitalCertificate\": \"自然人憑證\",\n    \"city\": \"城市\",\n    \"ckeditor-language\": \"zh\",\n    \"clear\": \"清空\",\n    \"clear above\": \"以上清除\",\n    \"clear all\": \"全部清除\",\n    \"clear below\": \"以下清除\",\n    \"clear column\": \"清除以下內容\",\n    \"clear page\": \"刪除內文\",\n    \"click id\": \"Click_ID\",\n    \"close\": \"關閉\",\n    \"close preview\": \"顏色預覽\",\n    \"closing balance\": \"期終餘額\",\n    \"clothing and accessories\": \"服飾配件\",\n    \"cm\": \"公分\",\n    \"code\": \"編碼\",\n    \"collapse under product name\": \"顯示原始商品名稱\",\n    \"collect on behalf description\": \"代收收據說明\",\n    \"collect on behalf pre description\": \"代收收據前置說明\",\n    \"collect on behalf receipt\": \"代收收據\",\n    \"collect payment now\": \"立即收款\",\n    \"collectOnBehalf\": \"代收收據\",\n    \"colon not allowed\": \"不能使用冒號 「 : 」\",\n    \"color template\": \"顏色模板\",\n    \"color theme settings\": \"主題風格設定\",\n    \"colorOptions_none\": \"無\",\n    \"colorOptions_solid\": \"底色\",\n    \"combine labels\": \"結合標籤\",\n    \"combinedTagsOnly\": \"Group Tags Together (Combined Tags)\",\n    \"comment\": \"留言\",\n    \"comments\": \"留言\",\n    \"comments settings\": \"客服留言設定\",\n    \"commission\": \"抽成\",\n    \"commission %\": \"抽成比例(％)\",\n    \"commission % per item\": \"每件抽成比例(％)\",\n    \"commission amount\": \"抽成金額\",\n    \"commission amount per item\": \"每件抽成金額\",\n    \"commission base cost\": \"抽成底價\",\n    \"commission base cost per item\": \"每件商品抽成底價基數\",\n    \"commission base costs\": \"抽成底價\",\n    \"commission calculation\": \"抽成計算\",\n    \"commission due date\": \"抽成付款日期\",\n    \"commission due from last month\": \"上個月到期抽成\",\n    \"commission due this month\": \"本月到期抽成\",\n    \"commission payout\": \"抽成支出\",\n    \"commission per unit\": \"每單位抽成\",\n    \"commission qty\": \"實際抽成數量\",\n    \"commission ratio\": \"佣金比例 (%)\",\n    \"commission refunded this month\": \"本月取消退回抽成\",\n    \"commission total\": \"總抽成\",\n    \"commission total amount\": \"抽成總金額\",\n    \"commission_adjustment_error_msg\": \"發生錯誤！最大折扣金額為10\",\n    \"commission_byAmount\": \"總額\",\n    \"commission_byBaseCost\": \"低消\",\n    \"commission_normalPercent\": \"百分比折扣(%)\",\n    \"commission_twPercent\": \"折\",\n    \"commissions\": \"抽成\",\n    \"commissions adjustment\": \"佣金調整\",\n    \"commissions calculated\": \"已算抽成\",\n    \"commissions calculation method\": \"抽成計算方法\",\n    \"commissions due\": \"應付抽成\",\n    \"commissions due returned\": \"應付退貨抽成\",\n    \"commissions generated\": \"產生的抽成\",\n    \"commissions generated returned\": \"退貨抽成\",\n    \"commissions payouts\": \"抽成支出\",\n    \"commissions refunded\": \"抽成已取消退回\",\n    \"commissions settings\": \"抽成設定\",\n    \"commissions summary for this month\": \"本月抽成總結\",\n    \"commissionsSettings\": \"抽成設定\",\n    \"compact rows\": \"緊湊列\",\n    \"company\": \"公司\",\n    \"company address\": \"公司地址\",\n    \"company info\": \"公司資料\",\n    \"company name\": \"公司名\",\n    \"company opening hours\": \"公司營業時間\",\n    \"company telephone\": \"公司電話\",\n    \"complete\": \"已完成\",\n    \"complex\": \"進階\",\n    \"compound\": \"複合\",\n    \"computer, communication and consumer electronics\": \"3C\",\n    \"confirm\": \"確認\",\n    \"confirm collect payment\": \"確認收款\",\n    \"confirm migrate to multiple bulk discounts\": \"切換至新版量販折扣後，可同時套用多個量販折扣。此變更無法復原。您確定要繼續嗎？\",\n    \"confirm password\": \"再次確認密碼\",\n    \"confirm pickup convenience store change on carrier\": \"此操作將立即向 7-ELEVEN 更新此物流單的取件門市，確定要繼續嗎？\",\n    \"confirm return convenience store change on carrier\": \"此操作將立即向 7-ELEVEN 更新此物流單的退件門市，確定要繼續嗎？\",\n    \"confirm_ignore\": \"已處理不要理\",\n    \"connect domain\": \"連接網域\",\n    \"connect shop\": \"連接商店\",\n    \"connection error\": \"連線錯誤\",\n    \"consignment\": \"寄賣\",\n    \"consignment delivery\": \"寄賣出貨單\",\n    \"consignment qty\": \"寄賣數量\",\n    \"consignment receipt\": \"寄賣收據\",\n    \"consignments\": \"寄賣\",\n    \"contact\": \"聯絡人\",\n    \"contact customer service to update\": \"聯絡客服更新結帳欄位\",\n    \"contact email\": \"收件人電子信箱\",\n    \"contact info\": \"聯絡資料\",\n    \"contact is not a member, send reward\": \"聯絡人並非會員，您確定要寄送獎勵嗎？\",\n    \"contact key\": \"聯絡人識別碼\",\n    \"contact name\": \"收件人姓名\",\n    \"contact person\": \"聯絡人\",\n    \"contact phone number\": \"聯絡電話\",\n    \"contact tags report summary option\": \"Contact Tags Report Summary Option\",\n    \"contact us\": \"聯絡我們\",\n    \"contacts\": \"聯絡資料\",\n    \"contacts rewards\": \"聯絡人點數\",\n    \"contacts without member level\": \"沒有會員等級的聯絡人\",\n    \"contacts_groups\": \"群組\",\n    \"container margin bottom\": \"下外距\",\n    \"container margin left\": \"左外距\",\n    \"container margin options\": \"外距選項\",\n    \"container margin right\": \"右外距\",\n    \"container margin top\": \"上外距\",\n    \"container margin vertical\": \"上下外距\",\n    \"container padding\": \"區塊內距\",\n    \"container padding bottom\": \"下內距\",\n    \"container padding left\": \"左內距\",\n    \"container padding options\": \"內距選項\",\n    \"container padding right\": \"右內距\",\n    \"container padding top\": \"上內距\",\n    \"container quick link label\": \"區塊快速連結\",\n    \"container settings\": \"區塊設定\",\n    \"container width\": \"區塊寬度\",\n    \"contains an invalid value\": \"輸入錯誤：內含無效數值\",\n    \"contains duplicate value\": \"輸入錯誤，有重複值\",\n    \"content background\": \"內容背景\",\n    \"content horizontal position\": \"內容左右位置\",\n    \"content position\": \"內容位置\",\n    \"content vertical position\": \"內容上下位置\",\n    \"contents_and_settings\": \"內容設定\",\n    \"continue when clicked\": \"點擊後繼續\",\n    \"continue_when_clicked_description\": \"點選此元素後導覽才會繼續。在此之前不顯示下一步。\",\n    \"contra type\": \"類型\",\n    \"contract dates\": \"合約日期\",\n    \"contract end date\": \"合約終止日期\",\n    \"contract fee\": \"合約費\",\n    \"contract start date\": \"合約起始日期\",\n    \"contract type\": \"合約業額\",\n    \"convenience store\": \"超商取貨\",\n    \"convenience store brand\": \"超商品牌\",\n    \"convenience store change requires view mode\": \"請先結束編輯並回到檢視模式，才能向 7-ELEVEN 更換此物流單的門市。\",\n    \"convenience store id\": \"店號\",\n    \"convenience store name\": \"店名\",\n    \"conversion rate\": \"轉換率\",\n    \"convert set items to only show set child items\": \"組合商品轉為只顯示組合商品子項\",\n    \"convert to date\": \"轉換成日期\",\n    \"convert to index\": \"轉換成指數\",\n    \"convert to number\": \"轉換成數字\",\n    \"copy\": \"複製\",\n    \"copy & paste\": \"複製貼上\",\n    \"copy all\": \"複製全部\",\n    \"copy block\": \"複製區塊後自訂貼上\",\n    \"copy document contents\": \"複製文件內容\",\n    \"copy existing bulk discounts\": \"複製現有的量販折扣\",\n    \"copy from above\": \"複製上面\",\n    \"copy images\": \"複製圖片\",\n    \"copy link\": \"複製連結\",\n    \"copy payment link\": \"複製付款連結\",\n    \"copy preview url\": \"複製預覽網址\",\n    \"copy shop link\": \"複製商店連結\",\n    \"copy theme from another website\": \"從其他網站複製主題風格\",\n    \"cost of sales\": \"銷貨成本\",\n    \"could not confirm the payment status with tappay, try again later\": \"無法向 Tap Pay 確認付款狀態，請稍候再嘗試\",\n    \"could not sync\": \"無法同步\",\n    \"countries\": \"國家\",\n    \"country\": \"國家\",\n    \"countryCode\": \"國家地區代碼\",\n    \"create a qr code ticket for this product\": \"成功付款產生QR Code票券\",\n    \"create from\": \"建立自\",\n    \"create hct contact\": \"新增新竹物流聯絡資料\",\n    \"create new adjustment\": \"抽成調整\",\n    \"create new commissions\": \"新增抽成計算\",\n    \"create product and add to shop\": \"新增商品並上架\",\n    \"create seven-eleven contact\": \"創建 7-11 聯絡資料\",\n    \"create t-cat contact\": \"建立黑貓聯絡人\",\n    \"create workflow\": \"建立工作流程\",\n    \"created by\": \"建立人\",\n    \"created date\": \"建立日期\",\n    \"credentials\": \"憑證\",\n    \"credit\": \"貸記\",\n    \"credit card\": \"信用卡\",\n    \"credit card declined\": \"刷卡失敗\",\n    \"credit card expired\": \"信用卡已過期\",\n    \"credit card history\": \"刷卡歷史\",\n    \"credit card installments: use defaults from settings\": \"分期付款: 使用設定預設\",\n    \"credit card provider installments: tap pay\": \"信用卡提供者 (分期付款): Tap Pay\",\n    \"credit card provider recurring: tap pay\": \"信用卡提供者 (定期購): Tap Pay\",\n    \"credit card provider: tap pay\": \"信用卡提供者: Tap Pay\",\n    \"credit card refund authorization request\": \"信用卡退刷請求\",\n    \"credit card refunded email\": \"已退刷通知信\",\n    \"credit card status\": \"信用卡狀態\",\n    \"credit card transactions\": \"信用卡明細\",\n    \"creditCard\": \"線上刷卡\",\n    \"creditCardExpiryDate\": \"信用卡到期日 (MM/YY)\",\n    \"creditCardHolder\": \"信用卡持有人\",\n    \"creditCardHolderEmail\": \"信用卡持有人電子信箱\",\n    \"creditCardNumber\": \"信用卡號\",\n    \"creditCardSecureCode\": \"信用卡安全碼\",\n    \"credit_card_name_msg\": \"請輸入卡片上的英文姓名\",\n    \"credit_card_name_placeholder\": \"請輸入卡片上的英文姓名\",\n    \"creditors\": \"應付 (債權人)\",\n    \"criteria\": \"符合此條件\",\n    \"criterias\": \"條件\",\n    \"css\": \"CSS\",\n    \"ctbc\": \"CTBC\",\n    \"cumulative\": \"累計\",\n    \"cumulative total\": \"累計\",\n    \"currency\": \"貨幣\",\n    \"currency decimal rounding\": \"貨幣小數點位數\",\n    \"current\": \"本月\",\n    \"current active\": \"正在進行的活動\",\n    \"current available qty\": \"Current Available Qty\",\n    \"current bulk discount\": \"正在套用的量販折扣\",\n    \"current document\": \"本單據\",\n    \"current inventory book qty\": \"Current Inventory Book Qty\",\n    \"current month\": \"本月\",\n    \"current on hand qty\": \"Current On Hand Qty\",\n    \"current points\": \"目前點數\",\n    \"current sale\": \"銷售項目\",\n    \"current schedule\": \"當前排程\",\n    \"current year\": \"本年\",\n    \"current_lang\": \"繁體中文\",\n    \"currently active schedule\": \"現在有效的排程\",\n    \"custom\": \"自訂\",\n    \"custom author display\": \"自訂作者顯示方式\",\n    \"custom checkout fields\": \"自訂結帳欄位\",\n    \"custom date display\": \"自訂日期顯示方式\",\n    \"custom export\": \"自訂匯出\",\n    \"custom id\": \"自訂商品ID (Facebook/Google 廣告目錄)\",\n    \"custom image size\": \"自訂圖片大小\",\n    \"custom limited qty per person text\": \"自訂限制銷售量文字\",\n    \"custom message displayed to blacklisted members during checkout\": \"黑名單會員於結帳時顯示的訊息\",\n    \"custom message for additional free shipping\": \"未達免運門檻訊息內容\",\n    \"custom message for quoted rate shipping\": \"報價運費的自訂訊息\",\n    \"custom pick up locations\": \"自訂實體通路\",\n    \"custom products display settings\": \"商品顯示設定\",\n    \"custom range (monthly)\": \"自訂月份\",\n    \"custom website fonts\": \"自訂網站字型\",\n    \"custom width\": \"自訂寬度\",\n    \"custom worksheet\": \"自訂工作表\",\n    \"custom_webpage_content\": \"使用自訂網頁內容\",\n    \"customer\": \"顧客\",\n    \"customer account\": \"顧客帳號\",\n    \"customer activity\": \"顧客歷史\",\n    \"customer bank account number\": \"顧客銀行帳號\",\n    \"customer comments\": \"顧客留言\",\n    \"customer expected arrival date\": \"顧客預期送達（取貨）日\",\n    \"customer expected dispatch date\": \"顧客預期出貨（取貨）日\",\n    \"customer payment method\": \"銷貨付款方式\",\n    \"customer payment terms\": \"銷貨付款條件\",\n    \"customer service\": \"客服\",\n    \"customer statements\": \"顧客對帳表\",\n    \"customer tags\": \"顧客標籤\",\n    \"customerService\": \"客服\",\n    \"customerSettings\": \"顧客設定\",\n    \"customer_export\": \"訂購人\",\n    \"customization options\": \"規格名稱\",\n    \"customization prefix\": \"規格開頭 (將添加到商品名)\",\n    \"customization type\": \"客製化規格\",\n    \"customizations\": \"客製化\",\n    \"customizations are disabled for mustAdd\": \"滿額禮無法客製化\",\n    \"customizations price behavior\": \"客製價格顯示\",\n    \"customizations settings\": \"客製化設定\",\n    \"customize worksheet\": \"自訂工作表\",\n    \"daily\": \"每日\",\n    \"daily necessities\": \"生活用品\",\n    \"daily revenue\": \"每日營業額\",\n    \"danger editing message\": \"編輯可能導致原記錄無法復原，確定要繼續進行？\",\n    \"dark color\": \"暗色\",\n    \"darkColor\": \"暗色\",\n    \"dashboard\": \"分析\",\n    \"data\": \"資料\",\n    \"data exceeds its size limit. cannot save\": \"資料超過大小限制，無法儲存。\",\n    \"data feed\": \"Data feed\",\n    \"data out of date\": \"您的資料已過期\",\n    \"data range\": \"統計期間\",\n    \"data to export\": \"匯出資料\",\n    \"data was updated\": \"資料已變動\",\n    \"dataType_date\": \"日期\",\n    \"dataType_email\": \"電子郵件\",\n    \"dataType_mobile\": \"手機\",\n    \"dataType_number\": \"數字\",\n    \"dataType_telephone\": \"電話\",\n    \"dataType_text\": \"文字\",\n    \"date\": \"日期\",\n    \"date conflict\": \"日期衝突\",\n    \"date end\": \"結束日期\",\n    \"date error\": \"Date Error\",\n    \"date is required\": \"結帳頁到(出)貨日必填\",\n    \"date period for overview\": \"總覽顯示期間\",\n    \"date period for search\": \"搜尋顯示期間\",\n    \"date range\": \"日期範圍\",\n    \"date settings\": \"日期設定\",\n    \"date start\": \"開始日期\",\n    \"date_ascending\": \"日期由舊到新\",\n    \"date_descending\": \"日期由新到舊\",\n    \"date_period\": \"日期\",\n    \"day\": \"天\",\n    \"day 1\": \"第1天\",\n    \"day 2\": \"第2天\",\n    \"day 3\": \"第3天\",\n    \"day 4\": \"第4天\",\n    \"day 5\": \"第5天\",\n    \"day 6\": \"第6天\",\n    \"day 7\": \"第7天\",\n    \"day of month\": \"日期\",\n    \"day of week\": \"星期\",\n    \"days\": \"天\",\n    \"days after checkout\": \"下單完成幾日內\",\n    \"daysOld_0\": \"0\",\n    \"daysOld_1\": \"1\",\n    \"daysOld_2\": \"2\",\n    \"daysOld_3\": \"3\",\n    \"daysOld_4\": \"4\",\n    \"daysOld_5\": \"5\",\n    \"daysOld_6\": \"6\",\n    \"daysOld_7\": \"7+\",\n    \"debit\": \"借記\",\n    \"debtors\": \"應收 (債務人)\",\n    \"declared amount\": \"商品價值\",\n    \"declared amount must be between {minAmount} and {maxAmount} per waybill\": \"商品價值每件須介於 {minAmount}~{maxAmount} 元\",\n    \"declared amount {beforeAmount} was over the limit and was capped to {maxAmount}\": \"商品價值 {beforeAmount} 超過上限，已調整為 {maxAmount}\",\n    \"declared amount {beforeAmount} was under the limit and was raised to {minAmount}\": \"商品價值 {beforeAmount} 低於下限，已調整為 {minAmount}\",\n    \"decrease\": \"減少\",\n    \"deduct points earned\": \"扣除該筆訂單獲得的點數\",\n    \"default\": \"預設\",\n    \"default campaigns review\": \"預設活動審查流程\",\n    \"default email content\": \"預設電子郵件內容\",\n    \"default facebook page\": \"預設的Facebook頁面\",\n    \"default flat shipping fee\": \"預設固定運費設定\",\n    \"default for documents\": \"設為單據預設\",\n    \"default hct\": \"預設新竹物流設定\",\n    \"default image\": \"預設圖片\",\n    \"default item tax\": \"預設稅額\",\n    \"default name\": \"預設名稱\",\n    \"default payment method\": \"預設付款方式\",\n    \"default payuni-seven-eleven\": \"預設PayUni 7-11設定\",\n    \"default pickup settings\": \"預設自取設定\",\n    \"default settings\": \"預設值\",\n    \"default seven-eleven\": \"預設7-11設定\",\n    \"default shipping fee using zones\": \"預設地區運費設定\",\n    \"default shipping settings\": \"預設配送設定\",\n    \"default shop price filter\": \"預設價格篩選\",\n    \"default status for when over sales limited qty\": \"超過限制銷售數量預設狀態\",\n    \"default t-cat\": \"預設黑貓宅急便設定\",\n    \"default tax\": \"預設稅額\",\n    \"default tax on purchases for products\": \"商品進貨預設稅額\",\n    \"default tax on purchases for services\": \"服務進貨預設稅額\",\n    \"default tax on sales for products\": \"商品銷貨預設稅額\",\n    \"default tax on sales for services\": \"服務銷貨預設稅額\",\n    \"default tax rate\": \"預設稅率\",\n    \"default transporter settings\": \"預設物流設定\",\n    \"default value for allow seo for new shops\": \"允許 SEO (搜尋引擎最佳化): 新增一頁式商店時，是否開啟\",\n    \"default weight unit\": \"預設重量單位\",\n    \"defaultCanceledEmailMessage\": \"已取消您的訂單，以下為取消此訂單的相關資訊\",\n    \"defaultDispatchedEmailMessage\": \"您的訂單今日已幫您出貨\",\n    \"defaultOrderedEmailMessage\": \"感謝您的支持與喜愛，您已完成訂單，如下為您的訂單明細\",\n    \"defaultRefundedEmailMessage\": \"已退刷，以下列商品已完成退刷\",\n    \"defaultShopRecurringLastOrderEmailMessage\": \"這是您最後一期定期購，如果您還想再次購買，請點擊以下連結。\",\n    \"default_webpage_content_warning\": \"此頁面是預設頁面，將使用系統的預設內容\",\n    \"defaults\": \"預設\",\n    \"defaults faqs\": \"預設:常見問題\",\n    \"delete\": \"刪除\",\n    \"delete campaign\": \"刪除商店活動\",\n    \"delete_keyword\": \"刪除\",\n    \"deleted\": \"已刪除\",\n    \"delivered\": \"出貨\",\n    \"delivered qty\": \"出貨數量\",\n    \"deliveries\": \"出貨\",\n    \"delivery\": \"出貨\",\n    \"delivery address\": \"收件地址\",\n    \"delivery date\": \"出貨日期\",\n    \"delivery date is required\": \"結帳到貨日必填\",\n    \"delivery date options\": \"交貨日期選項\",\n    \"delivery date settings\": \"指定到(出)貨日期設定\",\n    \"delivery max day description\": \"選擇結帳頁顯示預計到貨日，顧客最晚可選日期為 : {descriptionValue} \",\n    \"delivery max days\": \"備貨期後可指定天數\",\n    \"delivery min day description\": \"選擇結帳頁顯示預計到貨日，需 {inputValue} 個工作天，顧客可選最早日期為 : {descriptionValue}\",\n    \"delivery min days\": \"預估備貨天數\",\n    \"delivery note\": \"出貨單\",\n    \"delivery note barcodes\": \"出貨單條碼顯示\",\n    \"delivery note print format\": \"出貨單列印格式\",\n    \"delivery notes\": \"出貨單\",\n    \"delivery time\": \"配送時間\",\n    \"delivery-settings\": \"出貨設定\",\n    \"deliveryAddress\": \"收件地址\",\n    \"deliveryTime\": \"配送時間\",\n    \"denied product tags\": \"禁止商品標籤\",\n    \"department\": \"部門\",\n    \"department name\": \"部門名稱\",\n    \"departments\": \"部門\",\n    \"description\": \"敘述\",\n    \"description attachments\": \"商品附件\",\n    \"deselect all\": \"取消全選\",\n    \"designated zone\": \"指定運送區域\",\n    \"desktop\": \"電腦\",\n    \"detail\": \"詳細資料\",\n    \"detailIsEmpty\": \"組合商品內容空白\",\n    \"detailLimitTypes_campaign\": \"活動數量\",\n    \"detailLimitTypes_inventory\": \"庫存量\",\n    \"detailType_address\": \"地址 / 公司地址 / 收件地址\",\n    \"detailType_email\": \"電子信箱\",\n    \"detailType_note\": \"備註 / 連結\",\n    \"detailType_phone\": \"電話 / 傳真 / 手機\",\n    \"detailed statement\": \"詳細說明\",\n    \"details\": \"詳細資料\",\n    \"did not receive an activation email? resend activation email\": \"沒有收到認證信嗎? 重新寄送驗證信\",\n    \"dietary supplement\": \"保健食品\",\n    \"differentChildLength\": \"資料庫中未找到子項\",\n    \"differentChoiceLength\": \"資料庫中未找到子項\",\n    \"dimensions\": \"規格\",\n    \"dimensions_concat\": \"包裝尺寸 (長 x 寬 x 高)\",\n    \"dimensions_height\": \"高\",\n    \"dimensions_length\": \"長\",\n    \"dimensions_unit\": \"單位 (公釐/公分)\",\n    \"dimensions_width\": \"寬\",\n    \"disable multiple languages\": \"禁用多語言\",\n    \"disabled\": \"未啟用的\",\n    \"disallow notes on checkout\": \"結帳時不顯示備註欄位\",\n    \"disallow shopping\": \"禁止購物\",\n    \"disallow subscribe to newsletter\": \"結帳時不顯示訂閱電子報選項（接收最新消息與優惠）\",\n    \"disallow use different delivery info\": \"結帳時不顯示使用不同收件資訊選項\",\n    \"disallowed arrival days\": \"設定結帳頁面不可到貨日(物流不可配送日，請依照所選物流進行勾選，日曆上此日期會反灰，即顧客不可選取日期)\",\n    \"disallowed dispatch days\": \"設定不可出貨日（店家休息日，若選擇為結帳頁顯示預計出貨日，日曆上此日期會反灰，即顧客不可選取日期）\",\n    \"disallowed prepare days\": \"設定不可備貨日（店家休息日）\",\n    \"disallowed shipping zones\": \"目前不提供的運費規則\",\n    \"disc\": \"折扣\",\n    \"discInclTotal\": \"含稅折扣\",\n    \"discount\": \"折扣\",\n    \"discount %\": \"折扣 %\",\n    \"discount amount\": \"折扣額\",\n    \"discount amount exceeds allowed\": \"折扣金額超過允許範圍\",\n    \"discount for on sale items\": \"特價商品折扣\",\n    \"discount rate\": \"折扣%\",\n    \"discount rate for on sale items\": \"特價商品折扣\",\n    \"discount rate on sale\": \"特價折扣率\",\n    \"discount total\": \"總折扣\",\n    \"discount type\": \"折扣方式\",\n    \"discount when buy items\": \"折扣當購買商品\",\n    \"discount when items value\": \"當購物滿 <金額> 折扣\",\n    \"discounts\": \"折扣\",\n    \"dispatch\": \"出貨管理\",\n    \"dispatch (can create and update)\": \"出貨人員 - (可出貨，新增及編輯訂單，但無法瀏覽其他內容)\",\n    \"dispatch (view only)\": \"出貨人員 - (只能查看出貨訂單，且無法編輯任何內容)\",\n    \"dispatch all\": \"全部出貨\",\n    \"dispatch date\": \"出貨日期\",\n    \"dispatch date end\": \"出貨日期結束\",\n    \"dispatch date start\": \"出貨日期開始\",\n    \"dispatch dates settings\": \"出貨日期設定\",\n    \"dispatch list number of records\": \"出貨管理: 出貨單筆數\",\n    \"dispatch list sort by\": \"出貨管理: 排序\",\n    \"dispatch management settings\": \"出貨管理設定\",\n    \"dispatch max day description\": \"選擇結帳頁顯示預計出貨日，顧客最晚可選日期為 : {moreDescriptionValue} \",\n    \"dispatch max days\": \"最大可選預計出貨日 (訂單日期後)\",\n    \"dispatch min day description\": \"選擇結帳頁顯示預計出貨日，需 {inputValue} 個工作天，顧客可選最早日期為 : {moreDescriptionValue}\",\n    \"dispatch min days\": \"最小可選預計出貨日 (訂單日期後)\",\n    \"dispatch notification\": \"出貨提醒\",\n    \"dispatch process for new orders\": \"新訂單的出貨流程\",\n    \"dispatch process shortcut\": \"配送流程快速鍵\",\n    \"dispatch qty\": \"出貨數量\",\n    \"dispatch status\": \"出貨狀態\",\n    \"dispatch summary behavior\": \"出貨管理總: 計明細顯示\",\n    \"dispatch today\": \"今天出貨\",\n    \"dispatch-settings\": \"出貨設定\",\n    \"dispatched\": \"已出貨\",\n    \"dispatched by date\": \"依出貨日期\",\n    \"display\": \"顯示\",\n    \"display advanced template\": \"顯示進階網頁\",\n    \"display basic web page\": \"顯示基本網頁和商品\",\n    \"display blogs per row\": \"每橫列顯示的文章數量\",\n    \"display blogs tags as filters\": \"顯示側邊文章分類\",\n    \"display by\": \"顯示方式\",\n    \"display in shop\": \"顯示進階模板\",\n    \"display items per row\": \"每橫列顯示的商品數量\",\n    \"display news per row\": \"每橫列顯示的最新消息數量\",\n    \"display news tags\": \"顯示最新消息標籤\",\n    \"display order\": \"顯示順序\",\n    \"display products in shop\": \"同時使用進階模板及預設商品模板\",\n    \"display style\": \"顯示風格\",\n    \"display tag\": \"商品圖片標籤\",\n    \"display tags\": \"商品圖片標籤\",\n    \"display wizard\": \"快速建立模示\",\n    \"display_by_waybills_statuses\": \"顯示\",\n    \"display_faq\": \"顯示\",\n    \"district\": \"區域\",\n    \"districts\": \"區域\",\n    \"dividends\": \"紅利\",\n    \"do not use inventory qty\": \"不共用商品庫存量\",\n    \"doc\": \"單據\",\n    \"doc-pending\": \"未交總表\",\n    \"docNo\": \"單據號碼\",\n    \"doc_detail\": \"訂單資料\",\n    \"document\": \"單據\",\n    \"document delivery dates\": \"出貨日期\",\n    \"document delivery notes\": \"出貨單設定\",\n    \"document number\": \"單據號碼\",\n    \"document print settings\": \"單據列印設定\",\n    \"document settings\": \"單據設定\",\n    \"document_row_action_buttons\": \"單據欄按鈕列表\",\n    \"documentation\": \"說明\",\n    \"documentationId\": \"說明編號\",\n    \"documents\": \"單據\",\n    \"documents purchases\": \"進貨\",\n    \"documents sales\": \"銷貨\",\n    \"documents without waybill were skipped\": \"沒有託運單的單據已略過\",\n    \"documents-public\": \"客服訊息\",\n    \"does not contain required value\": \"輸入錯誤\",\n    \"domain\": \"網址\",\n    \"domain connected\": \"網域已連接\",\n    \"domain not connected\": \"網域未連接\",\n    \"domain_validation_step1\": \"<ol class='spaced-list'> <li>開啟一個新的視窗或分頁, 登入您的網域主機帳號， 詳情請見&nbsp;<a href='/a/answer/48323' rel='noopener'>辨認您的網域&nbsp;host</a>.</li> <li>前往您的網域 DNS 紀錄， 可能也叫做 <strong>DNS管理 (DNS Management)</strong>, <strong>網域名稱</strong> <strong>伺服器管理</strong>, <strong>控制台</strong>, 或 <strong>進階設定</strong>. </li> <li>選擇新增紀錄的選項</li> </ol>\",\n    \"domain_validation_step1_label\": \"步驟 1: 前往您的網域 DNS 紀錄\",\n    \"domain_validation_step2\": \"<ol class='spaced-list'> <li>紀錄類型選擇 <strong>TXT</strong>。</li> <li>在 <strong>名稱/主機/別名</strong> 處，輸入 <strong>@</strong> 或直接空白。<br> 您的主機可能會需要您&nbsp;輸入您的網域，看起來會像 <em>example.com</em>,&nbsp;。您的其他 DNS 紀錄也可能包含您可以輸入的資訊。 </li> <li>在 <strong>存續時間 (TTL)</strong> 處，輸入 <strong>86400</strong> 或留空白。</li> <li>在 <strong>值/答案/目的</strong> 處，貼上您在步驟 1. 複製的紀錄</li> <li>儲存紀錄</li> </ol>\",\n    \"domain_validation_step2_label\": \"步驟 2: 新增確認紀錄到您的網域主機\",\n    \"domain_validation_step3_label\": \"步驟 3: 回到原本的地方並確認\",\n    \"done\": \"完成\",\n    \"dont have an account? try control pod for free\": \"還沒有帳戶嗎？現在可以免費試用!\",\n    \"dot settings\": \"切換點設定\",\n    \"dots active color\": \"圓點活躍顏色\",\n    \"dots color\": \"圓點顏色\",\n    \"dots position\": \"圓點位置\",\n    \"dots settings\": \"圓點設定\",\n    \"dots size\": \"圓點大小\",\n    \"dots style\": \"圓點樣式\",\n    \"double click to edit\": \"點兩下編輯\",\n    \"double-row\": \"雙橫列\",\n    \"download\": \"下載\",\n    \"download qr code\": \"下載 QR Code\",\n    \"draft\": \"草稿\",\n    \"drafts\": \"草稿\",\n    \"dropdown\": \"下拉式選單\",\n    \"due\": \"付款截止日\",\n    \"due date\": \"預定日期\",\n    \"duplicate\": \"資料重複\",\n    \"duplicate addresses\": \"地址重複\",\n    \"duplicate block\": \"複製區塊並貼到下方\",\n    \"duplicate document\": \"複製\",\n    \"duplicate product\": \"商品重複\",\n    \"duplicate value\": \"資料重複\",\n    \"duplicate waybills\": \"托運單重複\",\n    \"duplicated\": \"Duplicated\",\n    \"duplicated contact data\": \"聯絡人資料已重複（自動連結時找到信箱有重複）\",\n    \"duration\": \"持續時間\",\n    \"eInvoice\": \"電子發票\",\n    \"eInvoicePrinterTerminal\": \"電子發票印表機主機\",\n    \"each\": \"每個\",\n    \"earliest\": \"最舊的\",\n    \"earliest delivery date\": \"選擇結帳頁最早可送達（取貨）日期\",\n    \"ecPay\": \"綠界科技\",\n    \"ecPay_creditCard\": \"授權啟用綠界信用卡支付\",\n    \"ecPay_eInvoice\": \"綠界科技: 電子發票\",\n    \"ecPay_hash_iv\": \"Hash IV\",\n    \"ecPay_hash_key\": \"Hash Key\",\n    \"ecPay_installments\": \"綠界科技 (分期付款)\",\n    \"ecPay_merchant\": \"商家統編\",\n    \"ecPay_merchant_id\": \"商店代號\",\n    \"ecPay_payments\": \"綠界科技 EcPay Payments\",\n    \"ecPay_virtualAccount\": \"啟用虛擬帳戶\",\n    \"edit\": \"編輯\",\n    \"edit campaign detail\": \"編輯本商店價格與資料\",\n    \"edit convenience store address\": \"編輯超商店址(不建議)\",\n    \"edit display order\": \"編輯顯示順序\",\n    \"edit functions\": \"編輯功能\",\n    \"edit product\": \"編輯商品目錄\",\n    \"edit sales invoice\": \"編輯出貨單\",\n    \"edit sales order\": \"編輯訂單\",\n    \"edit shop price\": \"編輯商店價格\",\n    \"edit status\": \"編輯狀態\",\n    \"edit store location address\": \"編輯實體通路店址(不建議)\",\n    \"edit template\": \"Edit Template\",\n    \"edit theme colors and styles\": \"修改主題風格設定\",\n    \"einvoice printer terminal\": \"電子發票印表機主機\",\n    \"email\": \"電子信箱\",\n    \"email attachments\": \"Email Attachments\",\n    \"email campaign\": \"活動信件\",\n    \"email campaigns\": \"活動信件\",\n    \"email content behavior\": \"電子郵件內容行為\",\n    \"email delivery note\": \"寄送出貨單信件\",\n    \"email document\": \"寄送電子單據\",\n    \"email header\": \"Email Header\",\n    \"email message\": \"電子信箱內文\",\n    \"email message for recipient\": \"給被推薦人的電子郵件訊息\",\n    \"email message for referrer\": \"給推薦人的電子郵件訊息\",\n    \"email message to buy more\": \"最後一期定期購的信件內容\",\n    \"email not sent\": \"無法發送電子郵件\",\n    \"email payment reminder\": \"發送付款提醒\",\n    \"email placeholder\": \"語法\",\n    \"email sent to\": \"電子郵件已發送\",\n    \"email settings\": \"電子信箱設定\",\n    \"email signature\": \"電子信箱簽名檔\",\n    \"email subject\": \"電子信箱主旨\",\n    \"email subject for recipient\": \"給被推薦人的電子郵件主旨\",\n    \"email subject for referrer\": \"給推薦人的電子郵件主旨\",\n    \"email_canceled_order_default_subject\": \"已取消您的訂單\",\n    \"email_dispatched_default_subject\": \"出貨通知\",\n    \"email_event_delivered\": \"已發送\",\n    \"email_event_failed\": \"發送錯誤\",\n    \"email_event_opened\": \"已打開\",\n    \"email_payment_reminder_subject\": \"付款提醒\",\n    \"email_placeholder_desc\": \"您可以直接複製語法放到您想顯示的位置\",\n    \"email_queued\": \"排程中\",\n    \"email_refunded_order_default_subject\": \"已退刷\",\n    \"email_test_to_address\": \"測試用電子信箱\",\n    \"email_test_to_name\": \"測試用聯絡姓名\",\n    \"emails\": \"電子信箱\",\n    \"emails to send\": \"電子郵件發送數量\",\n    \"emails->all activity\": \"電子信箱 > 所有紀錄\",\n    \"emails->email campaign\": \"電子信箱 > 電子郵件活動\",\n    \"employee\": \"員工\",\n    \"empty\": \"空\",\n    \"empty shipping payment methods warning\": \"如皆未勾選，按儲存後將使用商店所有付款方式\",\n    \"emptyChoices\": \"資料庫中未找到子項\",\n    \"emptySetDetails\": \"資料庫中未找到子項\",\n    \"emptyVariantChildren\": \"資料庫中未找到子項\",\n    \"enable\": \"啟用\",\n    \"enable allow printing of waybills on any dispatch process\": \"允許任意配送流程啟用列印托運單\",\n    \"enable custom website fonts\": \"啟用自訂網站字型\",\n    \"enable customizations\": \"啟用客製化\",\n    \"enable facebook chat\": \"啟用Facebook聊天\",\n    \"enable facebook chat by default\": \"預設開啟Facebook聊天功能\",\n    \"enable facebook pixel conversion api\": \"啟用 Facebook 像素(Pixel) 轉換 API\",\n    \"enable installments by default\": \"允許分期付款\",\n    \"enable line chat\": \"啟用Line聊天\",\n    \"enable line chat by default\": \"預設開啟Line聊天功能\",\n    \"enable link\": \"啟用連結\",\n    \"enable recurring schedules\": \"允許定期購\",\n    \"enable seven eleven pickup reminder\": \"啟用7-11取貨提醒\",\n    \"enable shop price filter\": \"啟用價格篩選\",\n    \"enable shop.com service\": \"啟用 Shop.com(美安) 服務\",\n    \"enabled\": \"已啟用\",\n    \"encountered unknown error\": \"系統正在嘗試修復問題，建議您先重新整理頁面。\",\n    \"end\": \"止\",\n    \"end date\": \"終止日期\",\n    \"end of invoice month\": \"從月底開始算\",\n    \"end of month\": \"月底\",\n    \"end on\": \"止\",\n    \"end setup\": \"結束導覽設定\",\n    \"end time\": \"終止時間\",\n    \"enquiry\": \"詢價單\",\n    \"enter duration (sec)\": \"輸入時長(秒)\",\n    \"enter fullscreen\": \"進入全螢幕\",\n    \"enter pos mode\": \"進入POS模式\",\n    \"entered amount exceeds the outstanding amount\": \"輸入金額超過未付金額\",\n    \"equals\": \"等於\",\n    \"equity\": \"權益\",\n    \"error fetching barcode\": \"下載條碼錯誤\",\n    \"error message\": \"錯誤信息\",\n    \"error occurred\": \"發生錯誤\",\n    \"error occurred please try again later\": \"發生錯誤\",\n    \"error syncing. could not sync\": \"同步錯誤，無法同步\",\n    \"error while generating waybill numbers\": \"產生托運單編碼時出現錯誤\",\n    \"error_ccEmail\": \"請輸入電子信箱\",\n    \"error_ccExpiry\": \"信用卡到期日輸入錯誤\",\n    \"error_ccHolder\": \"請輸入卡片上的英文姓名\",\n    \"error_ccNumber\": \"信用卡號輸入錯誤\",\n    \"error_ccPhoneNumber\": \"請輸入手機號碼\",\n    \"error_ccSecureCode\": \"信用卡安全碼(CCV)輸入錯誤\",\n    \"errors\": \"錯誤信息\",\n    \"estimate delivery date\": \"預計送達日期\",\n    \"estimated commissions\": \"預估抽成\",\n    \"estimated commissions percentage\": \"預估抽成百分比\",\n    \"estimated delivery date\": \"預計送達日期\",\n    \"estimated earnings\": \"預計收益\",\n    \"estimated total commissions\": \"預估分潤（抽成{percentage}%）\",\n    \"esun\": \"E Sun\",\n    \"event\": \"事件\",\n    \"every day\": \"每天\",\n    \"everytime you print it will generate a new Waybill number. are you sure you want to print?\": \"當您每次列印時都會產生一個新的託運單號，您確定要列印嗎？\",\n    \"exact date\": \"指定日期\",\n    \"example\": \"範例\",\n    \"exclude all stores\": \"未指定商店訂單\",\n    \"exclude pos\": \"排除POS交易\",\n    \"exclude shipping from sales history\": \"銷售紀錄排除運費\",\n    \"exclude specific dates\": \"排除特定日期（點選日期加入排除特定日期列表，已選取的日期呈現反灰 ; 若想取消，再次點擊反灰日期以取消該日）\",\n    \"excludeFreeShipping\": \"排除免運規則\",\n    \"excluded dates\": \"已排除特定日期\",\n    \"excluding shipping fee\": \"不含運費\",\n    \"excluding tax discount\": \"未稅折扣\",\n    \"exclusive amount\": \"未稅額\",\n    \"exclusive base cost\": \"抽成未稅底價\",\n    \"exclusive discount\": \"未稅折扣\",\n    \"exclusive price\": \"未稅單價\",\n    \"exclusive selling price\": \"未稅售價\",\n    \"exclusive total\": \"未稅總計\",\n    \"exclusive total after discount\": \"折扣後未稅總計\",\n    \"existing\": \"現有的\",\n    \"exit fullscreen\": \"離開全螢幕\",\n    \"expand\": \"展開\",\n    \"expand sub menus\": \"永遠顯示子選單\",\n    \"expand to show other aliases\": \"展開，顯示原始商品名稱和別名\",\n    \"expected arrival date\": \"預計到貨日期\",\n    \"expected arrival date subtitle\": \"結帳頁預期送達(出貨)日副標題 : 顯示於結帳頁日曆上方\",\n    \"expected close date\": \"預計結束日期\",\n    \"expected dispatch date\": \"預計出貨日期\",\n    \"expected prepare date\": \"預計備貨日期\",\n    \"expenses\": \"開銷\",\n    \"expire after days\": \"幾天後過期?\",\n    \"expired\": \"已過期\",\n    \"expiring reward points notification\": \"點數到期通知\",\n    \"expiring reward points notification email\": \"點數到期通知信\",\n    \"expiry end at\": \"期限結束\",\n    \"expiry start from\": \"期限開始\",\n    \"export\": \"匯出\",\n    \"export HCT data\": \"匯出新竹物流資料\",\n    \"export all\": \"匯出全部\",\n    \"export all data\": \"匯出全部已出貨\",\n    \"export all search results\": \"匯出全部搜尋結果\",\n    \"export by\": \"匯出狀態\",\n    \"export campaign reports\": \"匯出活動報表\",\n    \"export contacts\": \"匯出聯絡資料\",\n    \"export count\": \"匯出數量\",\n    \"export data\": \"匯出資料\",\n    \"export data and update status\": \"匯出及更新狀態\",\n    \"export dispatched data\": \"匯出出貨資料\",\n    \"export file format\": \"匯出檔案格式\",\n    \"export invoices data\": \"匯出電子發票\",\n    \"export items by payment status\": \"匯出交易歷史和付款狀態\",\n    \"export limited qtys\": \"匯出限制數量\",\n    \"export method\": \"匯出方式\",\n    \"export order\": \"匯出順序\",\n    \"export order details using specified order\": \"匯出時，按指定商品順序\",\n    \"export products\": \"匯出商品\",\n    \"export products to set prices\": \"匯出商品並設定價格\",\n    \"export type\": \"匯出種類\",\n    \"export_all_transporters\": \"全部物流資料\",\n    \"export_eInvoices_all\": \"電子發票(成功&作廢)\",\n    \"export_eInvoices_cancelled\": \"電子發票(作廢)\",\n    \"export_eInvoices_details\": \"電子發票&商品明細\",\n    \"export_eInvoices_successful\": \"電子發票(成功)\",\n    \"export_orders_details\": \"訂單商品明細\",\n    \"export_orders_info\": \"訂單明細\",\n    \"export_orders_per_row\": \"訂購商品每項一列排序\",\n    \"export_orders_total\": \"訂單總表（一）\",\n    \"export_orders_total_two\": \"訂單總表（二）\",\n    \"export_paid\": \"已收款\",\n    \"export_paid-available\": \"已付款(現)\",\n    \"export_paid-preOrder\": \"已付款(預)\",\n    \"export_paid-total\": \"已付款(現+預)\",\n    \"export_paid_export_orders_info\": \"已收款-訂單明細\",\n    \"export_paid_export_transporter\": \"已收款-物流資料\",\n    \"export_pay_on_delivery\": \"貨到付款\",\n    \"export_pay_on_delivery_export_orders_info\": \"貨到付款-訂單明細\",\n    \"export_pay_on_delivery_export_transporter\": \"貨到付款-物流資料\",\n    \"export_preOrderLimitedQty\": \"原始預購庫存\",\n    \"export_preOrderLimitedQty_remaining\": \"剩餘預購庫存\",\n    \"export_salesLimitedQty\": \"原始現有庫存\",\n    \"export_salesLimitedQty_remaining\": \"剩餘現有庫存\",\n    \"export_total-available\": \"加總(現)\",\n    \"export_total-preOrder\": \"加總(預)\",\n    \"export_total-total\": \"加總(現+預)\",\n    \"export_transporter\": \"物流資料\",\n    \"export_unpaid-available\": \"未付款(現)\",\n    \"export_unpaid-preOrder\": \"未付款(預)\",\n    \"export_unpaid-total\": \"未付款(現+預)\",\n    \"extensions\": \"擴充表單\",\n    \"external\": \"外部\",\n    \"facebook\": \"Facebook\",\n    \"facebook chat\": \"Facebook聊天\",\n    \"facebook login\": \"Facebook登入\",\n    \"facebook login short intro\": \"自動在您的網站上啟用 Facebook Messenger 聊天外掛程式。在您登入後，選擇您打算啟用網站客服聊天室的頁面。\",\n    \"facebook page\": \"Facebook專頁\",\n    \"facebook page id\": \"Facebook 專頁代碼\",\n    \"facebook page inbox\": \"Facebook頁面訊息\",\n    \"facebook page name\": \"Facebook 專頁名稱\",\n    \"facebook page url\": \"Facebook網址\",\n    \"facebook pixel\": \"Facebook 像素(Pixel)\",\n    \"facebook plugin\": \"Facebook外掛程式\",\n    \"facebook store\": \"Facebook Store\",\n    \"fadeIn\": \"淡入\",\n    \"fadeInDown\": \"向下淡入\",\n    \"failed to generate api access token\": \"生成 API Token 失敗\",\n    \"failed to update cache\": \"更新暫存失敗\",\n    \"family mart only provides room temperature delivery\": \"* 全家僅提供常溫配送\",\n    \"familyMart\": \"全家\",\n    \"faqs\": \"常見問題\",\n    \"faqs display\": \"常見問題顯示設定\",\n    \"faqs for product\": \"商品:常見問題\",\n    \"faqs for shop\": \"商店:常見問題\",\n    \"faqs-settings\": \"常見問答設定\",\n    \"fast\": \"快\",\n    \"favicon\": \"頁面圖示\",\n    \"favorite\": \"最愛\",\n    \"favorites\": \"最愛\",\n    \"fax\": \"傳真\",\n    \"features\": \"功能\",\n    \"fees\": \"手續費\",\n    \"female\": \"女\",\n    \"fetch waybills\": \"fetch waybills\",\n    \"fetching data\": \"正在捉取資料\",\n    \"field\": \"數據欄位\",\n    \"file is too large\": \"檔案過大\",\n    \"file is too small\": \"檔案過小\",\n    \"file name\": \"檔案名稱\",\n    \"files\": \"通用圖庫\",\n    \"files manager\": \"檔案總管\",\n    \"files_manager_tags\": \"標籤\",\n    \"fill above\": \"以上空白填入相同\",\n    \"fill all\": \"全部空白填入相同\",\n    \"fill below\": \"以下空白填入相同\",\n    \"filters\": \"篩選\",\n    \"final\": \"正式\",\n    \"first bank\": \"First Bank\",\n    \"first name\": \"姓名\",\n    \"first waybill number\": \"托運單第一號\",\n    \"fiscal\": \"財務的\",\n    \"fit\": \"自動縮小\",\n    \"flash\": \"閃爍\",\n    \"flat fee\": \"固定運費\",\n    \"flat shipping fee\": \"固定運費\",\n    \"flip\": \"翻轉\",\n    \"flipInX\": \"上下翻轉\",\n    \"flipInY\": \"水平翻轉\",\n    \"floor\": \"下限\",\n    \"flow_allow_custom_choice\": \"允許自訂選項\",\n    \"flow_chat_message\": \"聊天訊息\",\n    \"flow_collect_user_information_and_play_a_game\": \"蒐集使用者資訊並玩遊戲\",\n    \"flow_collect_user_information_generate_and_email_promo_code\": \"蒐集使用者資訊，產生並以電子郵件發送優惠代碼\",\n    \"flow_event\": \"觸發事件\",\n    \"flow_event_allow_backdating\": \"允許回溯\",\n    \"flow_event_display\": \"展示方式\",\n    \"flow_event_greeting\": \"歡迎訊息\",\n    \"flow_event_has_criterias\": \"有評判基準\",\n    \"flow_form\": \"表單\",\n    \"flow_form_steps\": \"表單步驟\",\n    \"flow_game_unsuccessful_message\": \"遊戲挑戰失敗訊息\",\n    \"flow_generate_promo_code\": \"產生優惠代碼\",\n    \"flow_limits\": \"限制\",\n    \"flow_message\": \"訊息\",\n    \"flow_payload_value\": \"數值\",\n    \"flow_popup\": \"彈出聊天視窗\",\n    \"flow_popup_middle\": \"彈出視窗\",\n    \"flow_question\": \"問題\",\n    \"flow_reply\": \"問答\",\n    \"flow_reply_choices\": \"複選回覆\",\n    \"flow_scratch_card\": \"刮刮樂\",\n    \"flow_scratch_card_background\": \"刮刮樂背景\",\n    \"flow_scratch_card_background_color\": \"刮刮樂背景顏色\",\n    \"flow_scratch_card_background_image\": \"刮刮樂背景圖片 (比例4x3)\",\n    \"flow_scratch_card_inner_background_image\": \"刮刮樂內容背景圖片 (比例4x3)\",\n    \"flow_scratch_card_inner_text_color\": \"刮刮樂內容文字\",\n    \"flow_scratch_card_text\": \"刮刮樂文字\",\n    \"flow_scratch_card_text_color\": \"刮刮樂文字顏色\",\n    \"flow_scrolling_message\": \"滾動訊息\",\n    \"flow_scrolling_message_link\": \"滾動訊息連結\",\n    \"flow_scrolling_message_timer\": \"滾動訊息持續時間(單位:秒，請輸入1至20內的數字)\",\n    \"flow_steps\": \"步驟\",\n    \"flow_wheel_of_fortune\": \"輪盤\",\n    \"flows\": \"聊天機器人\",\n    \"flows-scratchCardImage\": \"刮刮卡圖片\",\n    \"flows-scratchCardImageLose\": \"刮刮卡圖片(沒刮中)\",\n    \"flows-scratchCardImageWin\": \"刮刮卡圖片(刮中)\",\n    \"font alignment\": \"字體對齊\",\n    \"font alignment for blogs and news\": \"文章和最新消息字體對齊方式\",\n    \"font alignment for blogs and news title\": \"文章和最新消息標題字體對齊方式\",\n    \"font color\": \"字體顏色\",\n    \"font family\": \"字體系列\",\n    \"font family only for title\": \"標題專用字體系列\",\n    \"font settings\": \"字型設定\",\n    \"font size\": \"字體大小\",\n    \"font size for blogs and news\": \"文章和最新消息字體大小\",\n    \"font size for product name\": \"品名字體大小\",\n    \"font style\": \"字體樣式\",\n    \"font weight for blogs and news title\": \"文章和最新消息標題字體\",\n    \"font_style_bold\": \"粗體\",\n    \"font_style_italic\": \"斜體\",\n    \"font_style_underline\": \"底線\",\n    \"font_weight_bold\": \"粗體\",\n    \"font_weight_normal\": \"正常\",\n    \"footer\": \"頁尾\",\n    \"for documents\": \"單據\",\n    \"force update\": \"強制使用者更新\",\n    \"force user to update to current version\": \"強制使用者更新\",\n    \"forgot your password\": \"忘記密碼了嗎?\",\n    \"form title\": \"表單名稱\",\n    \"fourByThree\": \"4x3\",\n    \"free\": \"免費\",\n    \"free shipping condition\": \"免運金額門檻\",\n    \"free shipping for orders greater and equal to\": \"訂單免運金額(含)以上\",\n    \"free_shipping_any\": \"符合任ㄧ條件\",\n    \"free_shipping_none\": \"無\",\n    \"free_shipping_only\": \"符合所有條件\",\n    \"frequently asked questions\": \"常見問題\",\n    \"friday\": \"星期五\",\n    \"friday opening hours\": \"星期五營業時間\",\n    \"from\": \"從\",\n    \"from beginning\": \"全期間\",\n    \"from day of order\": \"從下單日期開始\",\n    \"from email address\": \"寄件人電子信箱\",\n    \"from email name\": \"寄件人\",\n    \"from end of invoice month\": \"從發票月底\",\n    \"from invoice date\": \"從發票日\",\n    \"from name\": \"寄件人\",\n    \"from now\": \"從現在\",\n    \"from now on only persons with the latest code will be linked\": \"重新產生報表連結\",\n    \"from person\": \"發行人\",\n    \"frozen\": \"冷凍\",\n    \"ftp password\": \"FTP 密碼\",\n    \"ftp user\": \"FTP 使用者名稱\",\n    \"fubon\": \"Fubon\",\n    \"full width\": \"全寬度\",\n    \"full width video\": \"滿版影片\",\n    \"full-width-image\": \"滿版圖片\",\n    \"fullWidth\": \"滿版\",\n    \"g\": \"公克\",\n    \"gender\": \"性別\",\n    \"general\": \"一般\",\n    \"general food\": \"一般食品\",\n    \"generate\": \"產生\",\n    \"generate api access token\": \"生成 API Token\",\n    \"generate new waybills\": \"產生新托運單\",\n    \"generate new waybills and print\": \"Generate new waybills and print\",\n    \"generate password\": \"產生密碼\",\n    \"generate qr code ticket\": \"產生QR Code票券\",\n    \"generate sales invoice data\": \"產生銷售資料\",\n    \"generate settings\": \"產生設定\",\n    \"generate total qty per row\": \"每行加總總數量\",\n    \"generate waybills\": \"產生托運單\",\n    \"gjs-Attachment\": \"圖檔位置\",\n    \"gjs-Background\": \"背景\",\n    \"gjs-Background Color\": \"底色\",\n    \"gjs-Blur\": \"模糊\",\n    \"gjs-Border\": \"框線\",\n    \"gjs-Border Color\": \"框線顏色\",\n    \"gjs-Border Radius\": \"外框線弧度\",\n    \"gjs-Border Style\": \"框線樣式\",\n    \"gjs-Border Width\": \"框線寬度\",\n    \"gjs-Bottom\": \"下\",\n    \"gjs-Box Shadow\": \"外框陰影\",\n    \"gjs-Center\": \"中\",\n    \"gjs-Color\": \"文字顏色\",\n    \"gjs-Dimension\": \"進階（調整尺寸）\",\n    \"gjs-Font Family\": \"字型\",\n    \"gjs-Font Size\": \"字體大小\",\n    \"gjs-Height\": \"高\",\n    \"gjs-Image\": \"圖片\",\n    \"gjs-Images\": \"圖片\",\n    \"gjs-Insert your text here\": \"請在這裡輸入文字\",\n    \"gjs-Inside\": \"內側\",\n    \"gjs-Justify\": \"調整\",\n    \"gjs-Layer 1\": \"第一層\",\n    \"gjs-Left\": \"左\",\n    \"gjs-Line-height\": \"行距\",\n    \"gjs-Margin\": \"外距（元素與元素之距離）\",\n    \"gjs-Max-width\": \"最大寬度\",\n    \"gjs-Min-height\": \"最小高度\",\n    \"gjs-Opacity\": \"透明度\",\n    \"gjs-Outside\": \"外側\",\n    \"gjs-Padding\": \"內距（元素內容與元素邊界之距離）\",\n    \"gjs-Position\": \"位置\",\n    \"gjs-Repeat\": \"重複圖片\",\n    \"gjs-Repeat-x\": \"水平重複填滿\",\n    \"gjs-Repeat-y\": \"垂直重複填滿\",\n    \"gjs-Right\": \"右\",\n    \"gjs-Shadow type\": \"陰影樣式\",\n    \"gjs-Size\": \"尺寸\",\n    \"gjs-Spread\": \"粗度\",\n    \"gjs-Style\": \"風格\",\n    \"gjs-Text align\": \"對齊方式\",\n    \"gjs-Top\": \"上\",\n    \"gjs-Width\": \"寬\",\n    \"gjs-X position\": \"橫座標\",\n    \"gjs-Y position\": \"直座標\",\n    \"gjs-arrows-background-hidden\": \"隱藏箭頭背景\",\n    \"gjs-arrows-color\": \"箭頭顏色\",\n    \"gjs-arrows-display\": \"顯示箭頭\",\n    \"gjs-arrows-position\": \"箭頭位置\",\n    \"gjs-arrows-size\": \"箭頭大小\",\n    \"gjs-auto\": \"自動\",\n    \"gjs-autoplay\": \"自動播放\",\n    \"gjs-autoplay-delay\": \"輪播秒數\",\n    \"gjs-box-shadow-color\": \"顏色\",\n    \"gjs-center bottom\": \"下方置中\",\n    \"gjs-center center\": \"置中\",\n    \"gjs-center top\": \"上方置中\",\n    \"gjs-contain\": \"原始大小\",\n    \"gjs-cover\": \"填滿\",\n    \"gjs-dashed\": \"虛線\",\n    \"gjs-default-sliders-status\": \"輪播圖預設狀態\",\n    \"gjs-dots-active-color\": \"圓點活躍顏色\",\n    \"gjs-dots-background-hidden\": \"圓點隱藏背景\",\n    \"gjs-dots-color\": \"圓點顏色\",\n    \"gjs-dots-display\": \"圓點顯示\",\n    \"gjs-dots-position\": \"圓點位置\",\n    \"gjs-dots-size\": \"圓點尺寸\",\n    \"gjs-dots-style\": \"輪播分頁樣式\",\n    \"gjs-dots-style-dot\": \"點狀\",\n    \"gjs-dots-style-line\": \"線狀\",\n    \"gjs-dotted\": \"點線\",\n    \"gjs-double\": \"雙框線\",\n    \"gjs-fix-visible-items\": \"固定顯示項目數量\",\n    \"gjs-fixed\": \"固定\",\n    \"gjs-hidden\": \"隱藏\",\n    \"gjs-infinite\": \"無限銜接\",\n    \"gjs-inside\": \"內側\",\n    \"gjs-left bottom\": \"坐下方\",\n    \"gjs-left center\": \"左方置中\",\n    \"gjs-left top\": \"左上方\",\n    \"gjs-local\": \"原始位置\",\n    \"gjs-no-repeat\": \"不重複\",\n    \"gjs-non-Repeat\": \"不重複\",\n    \"gjs-none\": \"無框線\",\n    \"gjs-outside\": \"外側\",\n    \"gjs-re-index\": \"重新排序\",\n    \"gjs-repeat\": \"重複圖片\",\n    \"gjs-repeat-x\": \"水平重複填滿\",\n    \"gjs-repeat-y\": \"垂直重複填滿\",\n    \"gjs-rewind\": \"回到開頭\",\n    \"gjs-rewind-speed\": \"倒轉速度\",\n    \"gjs-right bottom\": \"右下方\",\n    \"gjs-right center\": \"右方置中\",\n    \"gjs-right top\": \"右上方\",\n    \"gjs-schedules\": \"排程\",\n    \"gjs-scroll\": \"滾動\",\n    \"gjs-shadow-type\": \"陰影樣式\",\n    \"gjs-show-bigordr-story\": \"顯示story\",\n    \"gjs-slide-speed\": \"輪播速度\",\n    \"gjs-slides-per-page\": \"每頁輪播圖數量\",\n    \"gjs-slides-to-scroll\": \"每次滑動的輪播圖數量\",\n    \"gjs-smooth-scroll\": \"平滑滾動\",\n    \"gjs-solid\": \"實線\",\n    \"gjs-status-active\": \"有效\",\n    \"gjs-status-inactive\": \"無效\",\n    \"gjs-timing\": \"滑動速度\",\n    \"gjs-title\": \"標題\",\n    \"gjs-total-items\": \"項目總數\",\n    \"gjs-visible\": \"可見\",\n    \"gjs_landscape\": \"橫式\",\n    \"gjs_portrait\": \"直式\",\n    \"gjs_video ratio\": \"影片比例\",\n    \"global settings\": \"全域設定\",\n    \"go back to old version\": \"返回舊版\",\n    \"go to\": \"前往\",\n    \"go to login page\": \"前往登入頁面\",\n    \"go to the main app\": \"前往主程式\",\n    \"google add to cart conversion label\": \"加入購物車轉換標籤\",\n    \"google merchant center\": \"Google Merchant Center\",\n    \"google pay\": \"Google Pay\",\n    \"google purchase conversion label\": \"購買轉換標籤\",\n    \"google tags manager\": \"Google Tags Manager\",\n    \"google tracking id\": \"Google Tracking ID\",\n    \"googlePay\": \"Google Pay\",\n    \"grains, vegetables and fruits\": \"穀物蔬果\",\n    \"gray\": \"灰色\",\n    \"greater than\": \"大於\",\n    \"greater than or equal to\": \"大於或等於\",\n    \"greaterThan\": \"大於\",\n    \"greaterThanOrEqualTo\": \"大於或等於\",\n    \"green\": \"綠色\",\n    \"greeting\": \"歡迎訊息\",\n    \"grid\": \"網格\",\n    \"grid column gap\": \"網格欄位間距\",\n    \"grid of 1 with image right and text left\": \"網格：一個圖片在右，文字在左\",\n    \"grid of 1 with image, text and button\": \"網格：一個圖文和按鈕\",\n    \"grid of 1 with title and button\": \"網格：標題和按鈕\",\n    \"grid of 2 with image left and text right\": \"網格：二個圖片在左，文字在右\",\n    \"grid of 2 with image right and text left\": \"網格：二個圖片在右，文字在左\",\n    \"grid of 2 with image, text and button\": \"網格：二個圖文和按鈕\",\n    \"grid of 3 columns with text\": \"網格：三個文字區塊\",\n    \"grid of 3 images\": \"網格：三個圖片\",\n    \"grid of 3 with image and text\": \"網格：三個圖文區塊\",\n    \"grid of 3 with image top and text bottom\": \"網格：三個圖片在上，文字在下\",\n    \"grid of 3 with image, text and button\": \"網格：三個圖文和按鈕\",\n    \"grid of 6 images\": \"網格：六個圖片\",\n    \"grid with image left and text right\": \"網格：圖片在左，文字在右\",\n    \"grid with text left\": \"網格：文字在左\",\n    \"grid with text left image right and background color\": \"網格：文字在左，圖片在右，帶有背景顏色\",\n    \"grid with text right\": \"網格：文字在右\",\n    \"grid with text right image left and background color\": \"網格：文字在右，圖片在左，帶有背景顏色\",\n    \"gross profit\": \"毛利\",\n    \"group by product set with choices\": \"顯示任選商品\",\n    \"group by tags\": \"使用標籤分類\",\n    \"group by transporter\": \"所有列印格式依物流公司排序\",\n    \"group picking list by transporter\": \"所有列印格式依物流公司排序\",\n    \"group product by transporter\": \"依物流公司排序\",\n    \"grouped to\": \"已合併至\",\n    \"grouped with\": \"已合併\",\n    \"guide setup\": \"導覽設定\",\n    \"guide step\": \"導覽步驟\",\n    \"guide steps\": \"導覽步驟\",\n    \"guide_click_to_continue\": \"請點選標示的元素以繼續。\",\n    \"guide_select_element_hint\": \"請點選要指向的元素，按 Esc 取消。\",\n    \"guide_select_element_no_id\": \"此元素無法作為導覽步驟，請點選有說明的欄位、側邊欄或標頭。\",\n    \"guide_setup_description\": \"導覽設定開啟時，商家不會看到此新功能，只有 Help Editor 會看到導覽助手。關閉導覽設定即可發布導覽步驟，新功能的狀態維持不變。\",\n    \"has active campaigns\": \"活動中\",\n    \"has break time\": \"有午休時間\",\n    \"has cash payment fee\": \"自訂貨到付款手續費\",\n    \"has choices\": \"有限定選項\",\n    \"has custom limited qty per person text\": \"自訂限制銷售量文字\",\n    \"has disallowed product tags\": \"有禁止商品標籤\",\n    \"has image\": \"有圖片\",\n    \"has images\": \"是否有圖片?\",\n    \"has issues\": \"有異常\",\n    \"has issues to resolve issues\": \"「有異常」處理異常\",\n    \"has limit\": \"數量有限\",\n    \"has limits\": \"有次數上限\",\n    \"has limits per person\": \"有每人次數上限\",\n    \"has no image\": \"無圖片\",\n    \"has reply\": \"需要回覆\",\n    \"has surcharge on free shipping\": \"免運費但有附加費用\",\n    \"has times per order\": \"有每筆訂單次數上限\",\n    \"has unset weight\": \"此商品未設定重量\",\n    \"has usage limit per person\": \"每人有使用次數上限\",\n    \"has variants\": \"多規格商品\",\n    \"hasPreOrder\": \"預購\",\n    \"hasPreOrderCount\": \"預購: {count}\",\n    \"hasSameValuesWithDatabase\": \"無變更\",\n    \"hasStock\": \"現貨\",\n    \"hasVariants\": \"多規格商品\",\n    \"have not reissued e-invoices\": \"尚未重新開立電子發票\",\n    \"having both linked consignments and orders in one document is not allowed\": \"同一份單據內無法同時有訂單與連結寄賣\",\n    \"hct\": \"新竹物流\",\n    \"hct contact\": \"新竹物流聯絡資料\",\n    \"hct credentials\": \"新竹物流憑證\",\n    \"hct extensions\": \"新竹物流進階設定\",\n    \"hct summary\": \"新竹物流總表\",\n    \"hct summary successfully submitted\": \"成功上傳新竹物流總表\",\n    \"hct waybills\": \"新竹物托運單\",\n    \"hct_region_error\": \"查無此區號，請檢查配送地址\",\n    \"header\": \"標頭\",\n    \"header-settings\": \"標頭與頁尾\",\n    \"heartbeat\": \"心跳\",\n    \"height\": \"高度\",\n    \"help\": \"說明\",\n    \"help editor\": \"Help Editor\",\n    \"hidden\": \"隱藏\",\n    \"hide\": \"隱藏\",\n    \"hide add to cart button with a password\": \"開啟鎖定按鈕並隱藏加入購物車按鈕\",\n    \"hide all\": \"全隱藏\",\n    \"hide all customization prices\": \"隱藏所有客製價格\",\n    \"hide all printed\": \"隱藏全已列印\",\n    \"hide customization prices if 0\": \"隱藏0元客製化價格\",\n    \"hide payouts details\": \"隱藏支出細節\",\n    \"hide price when has password\": \"鎖定時隱藏商品價格\",\n    \"hide printed\": \"隱藏已列印\",\n    \"hide printed today\": \"隱藏今日已列印\",\n    \"hide product code\": \"隱藏編碼\",\n    \"hide products with missing data\": \"Hide products with missing data (negative product qty)\",\n    \"hide products with no activity\": \"隱藏沒有活動的商品\",\n    \"hide returns\": \"不顯示折讓單\",\n    \"hide shipping fee\": \"隱藏運費\",\n    \"hide shop description for all shops\": \"隱藏所有商店簡介\",\n    \"hide tax number and telephone on delivery note\": \"出貨單隱藏電話及統一編號\",\n    \"hide tax number for all shops\": \"隱藏所有商店統編\",\n    \"hide unit\": \"隱藏單位\",\n    \"highest\": \"收取最高運費\",\n    \"hold all\": \"全部暫停\",\n    \"home\": \"首頁\",\n    \"home fax\": \"住家傳真\",\n    \"home page\": \"首頁\",\n    \"home page help index\": \"首頁顯示順序\",\n    \"home phone\": \"住家電話\",\n    \"horizontal\": \"水平\",\n    \"horizontal alignment\": \"水平對齊\",\n    \"horizontal buttons with different colors\": \"不同顏色的水平按鈕\",\n    \"horizontal position\": \"左右位置\",\n    \"hours\": \"小時\",\n    \"household appliances\": \"家電\",\n    \"how to show returns when printing from dispatch management\": \"如何在「出貨管理」列印出貨單時顯示退貨\",\n    \"how to show returns when printing from sales invoices\": \"如何在「銷貨 > 出貨單」列印出貨單時顯示退貨\",\n    \"href\": \"連結\",\n    \"html\": \"HTML\",\n    \"html-custom-code\": \"Html代碼\",\n    \"i have a referral code\": \"我有推薦代碼\",\n    \"icon\": \"圖示\",\n    \"if there are multiple payment types, waybills will be grouped by payment type\": \"系統會將7-11取貨付款、取貨不付款訂單分類好再列印托運單，列印順序與揀貨單、出貨單不同屬於正常情況。\",\n    \"image\": \"圖片\",\n    \"image alignment\": \"圖片對齊\",\n    \"image alt\": \"圖片替代文字 (SEO)\",\n    \"image caption\": \"圖片標題\",\n    \"image grid style\": \"圖片網格樣式\",\n    \"image link\": \"圖片連結\",\n    \"image name\": \"圖片名稱\",\n    \"image not found, maybe deleted\": \"圖片未找到，可能已刪除\",\n    \"image order\": \"圖片位置\",\n    \"image position\": \"圖片位置\",\n    \"image ratio\": \"圖片長寬比例(長x寬)\",\n    \"image settings\": \"圖片設定\",\n    \"image size\": \"圖片大小\",\n    \"images\": \"圖片\",\n    \"images hover brightness effect\": \"滑鼠移到圖片亮度調整\",\n    \"images hover zoom effect\": \"滑鼠移到圖片縮放效果\",\n    \"images_grid\": \"網格\",\n    \"import\": \"匯入\",\n    \"import data\": \"匯入資料\",\n    \"import dispatched\": \"匯入已出貨\",\n    \"import limited qtys\": \"匯入限制數量\",\n    \"import paid\": \"匯入已付款\",\n    \"import products\": \"匯入商品\",\n    \"import to bulk update status and print\": \"匯入批次更新狀態並列印\",\n    \"import_transporter_template\": \"下載匯入物流資料表格\",\n    \"in dispatch summary show each customizations name in a separate row\": \"出貨管理總計: 根據客製化名稱單獨顯示\",\n    \"in pixel\": \" (單位: px)\",\n    \"in sync\": \"已同步\",\n    \"in use by\": \"使用中\",\n    \"inactive\": \"無效的\",\n    \"inactive variant children\": \"無效的商品變體子項\",\n    \"inclTotal\": \"含稅總計\",\n    \"include in seo shop locations\": \"加到 SEO 商店位置\",\n    \"include pos\": \"包含POS交易\",\n    \"include price\": \"含價格\",\n    \"include qty\": \"含數量\",\n    \"includeFreeShipping\": \"包含免運規則\",\n    \"including tax discount\": \"含稅折扣\",\n    \"inclusive amount\": \"含稅額\",\n    \"inclusive discount\": \"含稅折扣\",\n    \"inclusive discount default\": \"預設含稅折扣\",\n    \"inclusive discount settings\": \"含稅折扣設定\",\n    \"inclusive discounted price\": \"含稅折扣價\",\n    \"inclusive price\": \"含稅單價\",\n    \"inclusive selling price\": \"含稅售價\",\n    \"inclusive total\": \"含稅總計\",\n    \"inclusive total after discount\": \"折扣後含稅總計\",\n    \"inclusive total after returns\": \"折讓後含稅總計\",\n    \"inclusive_total_short\": \"含稅總計\",\n    \"income statement\": \"收入狀態\",\n    \"incoming transactions summary\": \"傳入交易摘要\",\n    \"incomplete pdf. please re-download\": \"PDF下載不完整，請重新下載\",\n    \"incomplete telephone/address\": \"電話/地址不完整\",\n    \"incorrect\": \"輸入錯誤\",\n    \"incorrect array order\": \"輸入錯誤\",\n    \"incorrect array order and/or incorrect number of items\": \"輸入錯誤\",\n    \"incorrect byte\": \"輸入錯誤\",\n    \"incorrect bytes\": \"輸入錯誤\",\n    \"incorrect credit card details\": \"信用卡資料錯誤\",\n    \"incorrect date\": \"輸入日期錯誤\",\n    \"incorrect date format\": \"輸入日期格式錯誤\",\n    \"incorrect date range\": \"輸入日期範圍不正確\",\n    \"incorrect decimal places\": \"輸入錯誤，須為數值，小數位不正確\",\n    \"incorrect length\": \"輸入行長度錯誤\",\n    \"incorrect number\": \"輸入錯誤，須為數值\",\n    \"incorrect number of items\": \"輸入錯誤\",\n    \"incorrect uri scheme\": \"輸入錯誤，網址格式有誤\",\n    \"increase\": \"增加\",\n    \"increase/decrease limited qty\": \"+/- 限制數量\",\n    \"increase/decrease preOrder qty\": \"+/- 預購數量\",\n    \"index\": \"編號\",\n    \"individual\": \"個人\",\n    \"infinite\": \"無限\",\n    \"information\": \"資訊\",\n    \"init\": \"啟動\",\n    \"input value\": \"原始值\",\n    \"insert\": \"插入\",\n    \"insert documents ref here\": \"輸入參照編號\",\n    \"insert or replace templates\": \"插入或更換內文\",\n    \"insert text or drag content here, remove this text block if not needed\": \"插入文字或拖曳內容至此，若不需要文字方塊請移除\",\n    \"inside image\": \"在圖片中\",\n    \"insideImage\": \"在圖片中\",\n    \"instagram\": \"Instagram\",\n    \"instagram url\": \"Instagram網址\",\n    \"installment periods\": \"分期付款\",\n    \"installments\": \"分期付款\",\n    \"internal comments\": \"內部備註\",\n    \"invalid\": \"錯誤\",\n    \"invalid credentials\": \"憑證錯誤\",\n    \"invalid email or password\": \"電子郵件或密碼錯誤\",\n    \"invalid image type\": \"圖片格式錯誤\",\n    \"invalid json\": \"錯誤的JSON\",\n    \"invalid number of days\": \"無效的日數\",\n    \"invalid number of months\": \"無效的月數\",\n    \"invalid password\": \"密碼錯誤\",\n    \"invalid rate\": \"無效費率\",\n    \"invalid returns\": \"折讓單不正確\",\n    \"invalid returns. returned qty greater than invoiced qty\": \"退貨數量大於出貨數量\",\n    \"invalid status\": \"狀態錯誤\",\n    \"invalid tax types. Provider does not allow mixed types\": \"不允許混合稅別\",\n    \"invalid totals. totals for document - returns does not equal to issue total\": \"發票總額與退貨總額不符\",\n    \"invalid two factor authentication code\": \"OTP認證失敗\",\n    \"invalid username or password\": \"使用者名稱或密碼錯誤\",\n    \"inventory\": \"庫存\",\n    \"inventory activity\": \"庫存歷史\",\n    \"inventory adjustment\": \"庫存調整\",\n    \"inventory available\": \"可用庫存\",\n    \"inventory book qty\": \"帳面庫存量\",\n    \"inventory filters\": \"庫存篩選\",\n    \"inventory in\": \"入庫\",\n    \"inventory management\": \"庫存管理\",\n    \"inventory notification\": \"存貨通知\",\n    \"inventory on hand\": \"現有庫存\",\n    \"inventory on hand qty\": \"現有庫存量\",\n    \"inventory out\": \"出庫\",\n    \"inventory qty\": \"庫存量\",\n    \"inventory report\": \"列印庫存表\",\n    \"inventory reports\": \"存貨報告\",\n    \"inventory status report\": \"庫存狀態\",\n    \"invoice\": \"發票\",\n    \"invoice date\": \"從發票開立日期\",\n    \"invoice description\": \"發票商品名稱\",\n    \"invoice number\": \"發票號碼\",\n    \"invoice numbers\": \"發票號碼\",\n    \"invoiced\": \"已開立\",\n    \"invoices\": \"統一發票\",\n    \"ip address\": \"IP位址\",\n    \"is associates\": \"抽成合作夥伴\",\n    \"is between\": \"之間\",\n    \"is child campaign\": \"是子活動\",\n    \"is custom response\": \"客戶自訂回應\",\n    \"is finished\": \"已完成\",\n    \"is master campaign\": \"是主活動\",\n    \"is member\": \"已是會員\",\n    \"is not allowed\": \"輸入錯誤\",\n    \"is partner\": \"由大筆協助申請的合作夥伴\",\n    \"is required\": \"必填\",\n    \"is transporter\": \"物流公司\",\n    \"is unlimited\": \"不限次數\",\n    \"isAssociatesSettings\": \"抽成合作夥伴報表查閱權限\",\n    \"isBetween\": \"之間\",\n    \"isComplete\": \"完成\",\n    \"isIncomplete\": \"未完成\",\n    \"isOutOfSync\": \"已下架，請到商店更新價格\",\n    \"isPinned\": \"已置頂\",\n    \"isRecurringChild\": \"定期購\",\n    \"isRecurringMaster\": \"定期購\",\n    \"isSet\": \"組合商品\",\n    \"isSetChild\": \"組合商品子項\",\n    \"isSetWithChoices\": \"任選商品\",\n    \"isVariantChild\": \"商品變體子項\",\n    \"issue invoice\": \"開立統一發票\",\n    \"issue invoices now\": \"立即開立電子發票\",\n    \"item\": \"品項\",\n    \"item key\": \"商品識別碼\",\n    \"item name\": \"品名\",\n    \"item quantity\": \"商品數量\",\n    \"item value\": \"商品金額\",\n    \"item was not invoiced\": \"未開發票商品\",\n    \"itemName\": \"品項\",\n    \"itemQty\": \"商品數量\",\n    \"itemQuantity\": \"商品數量\",\n    \"itemValue\": \"商品金額\",\n    \"items\": \"品項\",\n    \"items per page\": \"每頁項目數\",\n    \"items total price is not equal to the set price\": \"商品總價格不等於組合價格！\",\n    \"jello\": \"Q彈\",\n    \"job_position\": \"職稱\",\n    \"join with\": \"連接\",\n    \"js\": \"JavaScript\",\n    \"json\": \"JSON\",\n    \"kg\": \"公斤\",\n    \"kgi Bank\": \"KGI Bank\",\n    \"knowledge base\": \"知識庫\",\n    \"label\": \"標籤\",\n    \"label for transporter\": \"給物流公司的備註\",\n    \"language is now set to\": \"現在設定的語言是\",\n    \"large\": \"大\",\n    \"last 1 month\": \"過去一個月\",\n    \"last 1 year\": \"過去一年\",\n    \"last 2 years\": \"過去兩年\",\n    \"last 3 months\": \"過去三個月\",\n    \"last 3 years\": \"過去三年\",\n    \"last 4 digits\": \"後四碼\",\n    \"last 6 months\": \"過去六個月\",\n    \"last button label\": \"送出按鈕標籤\",\n    \"last day of invoice month\": \"結帳截止日\",\n    \"last month\": \"上個月\",\n    \"last name\": \"姓氏\",\n    \"last waybill number\": \"托運最後一號\",\n    \"lastest delivery date\": \"選擇結帳頁最晚可送達（取貨）日期\",\n    \"latest\": \"最新的\",\n    \"latest customers\": \"最新的顧客\",\n    \"latest dispatch date\": \"最晚需出貨日\",\n    \"latest dispatch time\": \"當日最晚可出貨時間\",\n    \"latest dispatch time description\": \"若下單時間超過當日最晚可出貨時間，結帳頁日期則自動往後加一天\",\n    \"latest pickup time\": \"當日最晚可店取取貨時間\",\n    \"latest pickup time description\": \"若下單時間超過當日最晚可店取取貨時間，結帳頁日期則自動往後加一天\",\n    \"latest suppliers\": \"最新的供應商\",\n    \"launch\": \"啟動\",\n    \"lead time\": \"交貨時間\",\n    \"ledger\": \"分類帳戶\",\n    \"ledger account\": \"分類帳戶\",\n    \"ledgerAccount\": \"分類帳戶\",\n    \"ledgers\": \"分類帳戶\",\n    \"ledgers->cash book\": \"分類帳戶 > 銀行帳戶\",\n    \"ledgers->creditors\": \"分類帳戶 > 應付 (債權人)\",\n    \"ledgers->debtors\": \"分類帳戶 > 應收 (債務人)\",\n    \"left\": \"左側\",\n    \"legacy plan\": \"舊版方案\",\n    \"less than\": \"小於\",\n    \"less than or equal to\": \"小於或等於\",\n    \"lessThan\": \"小於\",\n    \"lessThanOrEqualTo\": \"小於或等於\",\n    \"level change\": \"會員等級更新\",\n    \"liabilities\": \"負債\",\n    \"light color\": \"亮色\",\n    \"lightColor\": \"亮色\",\n    \"limit by\": \"限制方式\",\n    \"limit preOrder qty\": \"限制預購數量\",\n    \"limit sales qty\": \"限制銷售量\",\n    \"limited preOrder qty\": \"預購量限制\",\n    \"limited qty\": \"限制數量\",\n    \"limited qty per person\": \"每人限制數量\",\n    \"limited sales qty\": \"限制銷售量\",\n    \"limits for specific dates\": \"特定日期限制\",\n    \"line\": \"Line\",\n    \"line chat\": \"Line聊天\",\n    \"line count for blogs and news description\": \"文章和最新消息描述顯示行數\",\n    \"line count for blogs and news title\": \"文章和最新消息標題顯示行數\",\n    \"line count for description\": \"描述顯示行數\",\n    \"line count for title\": \"標題顯示行數\",\n    \"line id\": \"Line帳號\",\n    \"line pay\": \"Line Pay\",\n    \"line pay history\": \"Line Pay歷史\",\n    \"line pay provider: tap pay\": \"Line Pay 提供者: Tap Pay\",\n    \"line pay transactions\": \"Line Pay明細\",\n    \"linePay\": \"Line Pay\",\n    \"linePay_awaitingPayment\": \"等待 Line Pay 付款中\",\n    \"link\": \"連結\",\n    \"link description\": \"連結敘述\",\n    \"link options\": \"連結選項\",\n    \"link thumbnail image\": \"連結縮圖\",\n    \"link thumbnail image ratio\": \"連結縮圖比例\",\n    \"link title\": \"連結標題\",\n    \"link to existing product\": \"鉤稽既有商品\",\n    \"link to flow\": \"Link To Flow\",\n    \"link_target\": \"目標視窗\",\n    \"linked campaigns\": \"已連結活動\",\n    \"linked documents have conflicts\": \"連結的單據有衝突!\",\n    \"linked to\": \"連結到\",\n    \"links\": \"連結\",\n    \"links or buttons\": \"連結或按鈕\",\n    \"list all\": \"全部列出\",\n    \"list all abandoned\": \"列出所有被廢棄的\",\n    \"loading\": \"載入中\",\n    \"lock\": \"鎖定\",\n    \"locked\": \"鎖住\",\n    \"log into new company?\": \"您確定要登入 [ {company} ]? 會更新頁面\",\n    \"logged out\": \"已登出\",\n    \"login\": \"登入\",\n    \"logo\": \"商標\",\n    \"logo icon position\": \"Logo圖標位置\",\n    \"logo menu position\": \"Logo與主選單位置\",\n    \"logo mobile\": \"商標 (行動裝置)\",\n    \"logo on top\": \"Logo在上\",\n    \"logo position\": \"Logo 位置\",\n    \"logo size\": \"Logo大小\",\n    \"logo size desktop only\": \"Logo大小(電腦版限定)\",\n    \"logoCenteredScrollMethod_hide\": \"完全隱藏\",\n    \"logoCenteredScrollMethod_shrink\": \"縮小(只剩Logo圖標)\",\n    \"logout\": \"登出\",\n    \"lowest\": \"收取最低運費\",\n    \"mailing list\": \"電子報\",\n    \"mailing_groups\": \"名單\",\n    \"main\": \"主要的\",\n    \"main account number\": \"主要帳戶\",\n    \"main content\": \"主頁內容\",\n    \"main content settings\": \"主頁\",\n    \"main island\": \"本島地區\",\n    \"main settings\": \"主設定\",\n    \"maintenance\": \"系統維護\",\n    \"make sure that this is the intended qty\": \"請確保此為可提供的數量\",\n    \"makeup and cosmetics\": \"美容彩妝\",\n    \"male\": \"男\",\n    \"manage auto topup\": \"管理自動儲值\",\n    \"manage bigordr plan\": \"管理 BigOrdr 方案\",\n    \"manage billing details\": \"管理帳單資訊\",\n    \"manage duplicates\": \"合併\",\n    \"manage rules\": \"管理規則\",\n    \"margin\": \"毛利率\",\n    \"margin settings\": \"外距設定\",\n    \"mark as completed\": \"已完成\",\n    \"mark as inactive\": \"設為無效\",\n    \"mark as paid\": \"標記為已付款\",\n    \"mark as resolved\": \"標記為已解決\",\n    \"mark as unresolved\": \"標記為未解決\",\n    \"master campaign\": \"主活動\",\n    \"match_contacts_groups\": \"當\",\n    \"match_contacts_groups_criteria\": \"條件\",\n    \"max length\": \"最大長度\",\n    \"max order price\": \"最高訂單金額\",\n    \"max order qty\": \"最高重量\",\n    \"max order weight\": \"最高重量\",\n    \"max price\": \"最高價格\",\n    \"max qty\": \"最大數量\",\n    \"max range 3 months\": \"最大範圍為3個月\",\n    \"may contain duplicate data\": \"May Contain Duplicate Data\",\n    \"mayAdd\": \"加價購\",\n    \"medical supplies\": \"醫療相關用品\",\n    \"medium\": \"中\",\n    \"member\": \"會員\",\n    \"member email\": \"會員電子信箱\",\n    \"member id\": \"會員ID\",\n    \"member level\": \"會員等級\",\n    \"member level adjustment email\": \"會員等級調整信\",\n    \"member level description\": \"會員等級敘述\",\n    \"member level expiry date\": \"會員等級到期日\",\n    \"member level expiry time\": \"會員等級到期時間\",\n    \"member level name\": \"會員等級名稱\",\n    \"member level order value\": \"會員等級訂單金額門檻\",\n    \"member level points\": \"會員等級累積金額\",\n    \"member level points will be set to member level minimum points\": \"會員等級點數將會設為該等級最低點數\",\n    \"member level status\": \"狀態\",\n    \"member levels\": \"會員等級\",\n    \"members\": \"會員\",\n    \"membership_rewards_adjustment\": \"會員調整\",\n    \"menu\": \"目錄\",\n    \"menu expand alignment\": \"選單展開對齊\",\n    \"menu expand behavior\": \"選單展開行為\",\n    \"menu font size\": \"主選單字體大小\",\n    \"menu position\": \"主選單位置\",\n    \"menu style\": \"主選單格式\",\n    \"merchant center settings\": \"廣告目錄\",\n    \"merchantId\": \"Merchant ID\",\n    \"merchantIv\": \"Merchant IV\",\n    \"merchantKey\": \"Merchant Key\",\n    \"merge\": \"合併\",\n    \"merge_document\": \"併單\",\n    \"merged\": \"已合併\",\n    \"merged to\": \"已合併至\",\n    \"merged with\": \"已合併\",\n    \"merged_document\": \"已併單\",\n    \"message\": \"訊息\",\n    \"message to display when campaign has ended\": \"活動結束顯示訊息\",\n    \"messages\": \"訊息\",\n    \"method\": \"方式\",\n    \"migrate\": \"轉移\",\n    \"min amount required per period\": \"分期付款，每期最低總金額\",\n    \"min length\": \"最小長度\",\n    \"min order price\": \"最低訂單金額\",\n    \"min order qty\": \"最低數量\",\n    \"min order to allow shipping\": \"Min order to allow shipping: {amount}\",\n    \"min order weight\": \"最低重量\",\n    \"min price\": \"最低價格\",\n    \"min qty\": \"最小數量\",\n    \"minimize logo on scroll\": \"向下滾動時縮小Logo\",\n    \"minimum cart amount\": \"折扣碼最低購買額度\",\n    \"minimum spend requirement\": \"使用會員點數最低消費金額\",\n    \"minutes\": \"分\",\n    \"miscellaneous\": \"其他 (運費，手續費，等)\",\n    \"missing data\": \"資料錯誤或缺失\",\n    \"mm\": \"公釐\",\n    \"mm1\": \"一\",\n    \"mm10\": \"十\",\n    \"mm11\": \"十一\",\n    \"mm12\": \"十二\",\n    \"mm2\": \"二\",\n    \"mm3\": \"三\",\n    \"mm4\": \"四\",\n    \"mm5\": \"五\",\n    \"mm6\": \"六\",\n    \"mm7\": \"七\",\n    \"mm8\": \"八\",\n    \"mm9\": \"九\",\n    \"mobile\": \"手機\",\n    \"mobile logo size\": \"行動裝置Logo大小\",\n    \"monday\": \"星期一\",\n    \"monday opening hours\": \"星期一營業時間\",\n    \"month\": \"月\",\n    \"month end\": \"月底\",\n    \"month1\": \"一月\",\n    \"month10\": \"十月\",\n    \"month11\": \"十一月\",\n    \"month12\": \"十二月\",\n    \"month2\": \"二月\",\n    \"month3\": \"三月\",\n    \"month4\": \"四月\",\n    \"month5\": \"五月\",\n    \"month6\": \"六月\",\n    \"month7\": \"七月\",\n    \"month8\": \"八月\",\n    \"month9\": \"九月\",\n    \"monthly\": \"每月\",\n    \"monthly revenue\": \"每月營業額\",\n    \"months\": \"月\",\n    \"more\": \"更多\",\n    \"moreThanFiveDays\": \"5+天\",\n    \"move down\": \"下移\",\n    \"move up\": \"上移\",\n    \"multiple\": \"多次\",\n    \"multiple delivery dates\": \"多次出貨日期\",\n    \"multiple discount rate\": \"多重折扣率\",\n    \"multiple discounts\": \"多次折扣\",\n    \"multiple documents found. please capture manually\": \"找到多筆單據，請人工選取\",\n    \"must be a bigger number\": \"輸入錯誤，必須是一個更大的數字\",\n    \"must be a boolean\": \"輸入錯誤\",\n    \"must be a buffer or a string\": \"輸入錯誤\",\n    \"must be a credit card\": \"必須是信用卡號\",\n    \"must be a float or double\": \"輸入錯誤，須為數值，可有小數點\",\n    \"must be a negative number\": \"輸入錯誤，須為數值，必須是負數\",\n    \"must be a number\": \"輸入錯誤，須為數值\",\n    \"must be a positive number\": \"輸入錯誤，須為數值，必須是正數\",\n    \"must be a smaller number\": \"輸入錯誤，必須是一個更小的數字\",\n    \"must be a string\": \"輸入錯誤，須為字串\",\n    \"must be a valid GUID\": \"必須是有效的GUID\",\n    \"must be a valid ISO 8601 date\": \"必須是有效的ISO 8601日期\",\n    \"must be a valid base64 string\": \"必須是有效的base64字串\",\n    \"must be a valid date\": \"輸入日期格式錯誤\",\n    \"must be a valid email\": \"輸入錯誤，電子信箱格式不正確\",\n    \"must be a valid hostname\": \"必須是有效的主機名\",\n    \"must be a valid ip address\": \"必須是有效的IP地址\",\n    \"must be a valid port\": \"輸入錯誤，必須是有效的連接埠\",\n    \"must be a valid relative uri\": \"輸入錯誤，必須是網址\",\n    \"must be a valid taiwanese address\": \"必須是有效的台灣地址\",\n    \"must be a valid timestamp or number of milliseconds\": \"輸入錯誤，時間格式須為毫秒數\",\n    \"must be a valid timestamp or number of second\": \"輸入錯誤，時間格式須為秒數\",\n    \"must be a valid uri\": \"輸入錯誤，必須是有效的網址\",\n    \"must be an array\": \"輸入錯誤\",\n    \"must be an integer\": \"輸入錯誤，須為數值，不可有小數點\",\n    \"must be smaller than inclusive price\": \"必須小於含稅單價\",\n    \"must be unicode normalized\": \"必須是unicode\",\n    \"must dispatch today\": \"今日須出貨\",\n    \"must exclude value\": \"輸入錯誤\",\n    \"must not have leading or trailing whitespace\": \"前後不可有空格\",\n    \"must only contain alpha-numeric and underscore characters\": \"輸入錯誤，只可包含字母、數字與底線\",\n    \"must only contain alpha-numeric characters\": \"輸入錯誤，只可包含字母與數字\",\n    \"must only contain hexadecimal characters\": \"必須只包含十六進制字串\",\n    \"must only contain uppercase characters\": \"只能大寫字母\",\n    \"must use shipping zones to set limits per day\": \"請使用地區運費，設定每日訂單上限\",\n    \"mustAdd\": \"滿額禮\",\n    \"my profile\": \"我的資料\",\n    \"name\": \"名稱\",\n    \"national credit card center of ROC\": \"National Credit Card Center of ROC\",\n    \"nav container position\": \"輪播分頁位置\",\n    \"nav dot\": \"輪播分頁指示點\",\n    \"nav dots\": \"輪播分頁指示器\",\n    \"nav item dot\": \"點狀\",\n    \"nav item line\": \"線狀\",\n    \"nav item style\": \"輪播分頁樣式\",\n    \"nav next\": \"下一頁按鈕\",\n    \"nav previous\": \"上一頁按鈕\",\n    \"navItemDot\": \"點狀\",\n    \"navItemLine\": \"線狀\",\n    \"never expire\": \"無限期\",\n    \"new\": \"新增\",\n    \"new account\": \"新帳戶\",\n    \"new bulk discount\": \"新增量販折扣\",\n    \"new customer\": \"新增客戶\",\n    \"new customer and supplier\": \"新增客戶及供應商\",\n    \"new feature\": \"新功能\",\n    \"new features\": \"新功能\",\n    \"new member level\": \"新會員等級\",\n    \"new member level points\": \"新會員點數\",\n    \"new orders\": \"新訂單\",\n    \"new product\": \"新商品\",\n    \"new products editor\": \"新商品編輯模式\",\n    \"new sales invoice\": \"新增出貨單\",\n    \"new sales order\": \"新增訂單\",\n    \"new shipping zone\": \"新增運費規則\",\n    \"new supplier\": \"新增供應商\",\n    \"new template\": \"新增頁籤\",\n    \"new total must be equal to the original document total\": \"新總價不等於原始總價\",\n    \"new value\": \"調整後數量\",\n    \"new variant product code\": \"新增變體子項商品編碼\",\n    \"new variant product name\": \"新增變體子項商品名稱\",\n    \"new window\": \"新視窗\",\n    \"newCustomer\": \"新顧客\",\n    \"new_contacts_groups\": \"新增群組\",\n    \"new_tab\": \"新分頁\",\n    \"neweb Pay\": \"Neweb Pay\",\n    \"newestFirst\": \"上架日期由新到舊\",\n    \"news\": \"最新消息\",\n    \"news and offers email consent\": \"訂閱電子報\",\n    \"news images ratio\": \"最新消息圖片長寬比例\",\n    \"news preview settings\": \"最新消息總覽設定\",\n    \"news settings\": \"最新消息設定\",\n    \"news show breadcrumb\": \"顯示麵包屑導覽\",\n    \"next\": \"下一頁\",\n    \"next active\": \"下一個進行的活動\",\n    \"next button label\": \"下一頁按鈕標籤\",\n    \"next schedule\": \"下期排程\",\n    \"next step\": \"下一步\",\n    \"next step conversion rate\": \"下一步轉換率\",\n    \"next workflow\": \"下個工作流程\",\n    \"night\": \"晚上\",\n    \"no\": \"否\",\n    \"no active schedule\": \"時間表上沒有正在進行的活動\",\n    \"no applicable shipping zones\": \"未選擇運費規則，顧客目前無法購買此商品\",\n    \"no background colour\": \"無背景色\",\n    \"no comments\": \"無留言\",\n    \"no commission this month\": \"本月無抽成！\",\n    \"no data\": \"無資料\",\n    \"no data to export\": \"無匯出資料\",\n    \"no details\": \"無詳細資料\",\n    \"no dispatched data\": \"無已出貨資料\",\n    \"no emails to send\": \"無可發送的電子郵件\",\n    \"no image\": \"無圖片\",\n    \"no master campaign found\": \"並未找到對應的主活動\",\n    \"no member level changes\": \"會員等級尚未有任何變更!\",\n    \"no next available number\": \"目前無可用的電子發票號碼\",\n    \"no preview\": \"無預覽\",\n    \"no price history found\": \"未找到歷史\",\n    \"no products added yet\": \"未選擇商品\",\n    \"no products found, double click to refresh or add new products\": \"找不到商品，若已加入商品請點擊兩次更新畫面或加入新商品\",\n    \"no rates\": \"免運費\",\n    \"no reward expiry set\": \"未設到期時間\",\n    \"no reward points set\": \"未設要發送的點數\",\n    \"no saved credit cards found for this member\": \"找不到此會員的已儲存信用卡\",\n    \"no shipping zones set in campaign\": \"未設置運費規則於商店，顧客目前無法購買此商品\",\n    \"no tags detected. please add blog tags first\": \"文章尚未設標籤\",\n    \"no tags detected. please add news tags first\": \"最新消息尚未設標籤\",\n    \"no tags detected. please add product tags first\": \"商品尚未設標籤\",\n    \"no tags detected. please add store location tags first\": \"實體通路尚未設標籤\",\n    \"no tax allowed\": \"不允許有稅\",\n    \"no transporter\": \"No transporter\",\n    \"no transporter selected\": \"未選擇物流公司\",\n    \"no valid credit card information found\": \"找不到有效的信用卡資料\",\n    \"noItemInDatabase\": \"查無此商品\",\n    \"noItemInDatabase-choiceDetails\": \"查無此商品\",\n    \"noItemInDatabase-choiceSetDetails\": \"查無此商品\",\n    \"noItemInDatabase-choiceVariantChildren\": \"查無此商品\",\n    \"no_of_documents_unit\": \"筆\",\n    \"no_of_times\": \"次\",\n    \"nonMember\": \"非會員\",\n    \"none\": \"無\",\n    \"noon\": \"下午\",\n    \"normal\": \"一般商品\",\n    \"normal percentage\": \"一般折數百分比\",\n    \"normal product\": \"一般商品\",\n    \"not a day of the month (1-31)\": \"不正確的日數 (1-31)\",\n    \"not a url\": \"網址格式錯誤\",\n    \"not an email\": \"電子郵件格式錯誤\",\n    \"not date\": \"須填日期\",\n    \"not dispatched\": \"未出貨\",\n    \"not editable\": \"不可編輯\",\n    \"not email\": \"電子郵件格式錯誤\",\n    \"not equals\": \"不等於\",\n    \"not float\": \"請輸入數字\",\n    \"not found\": \"查無此項\",\n    \"not matching any of the allowed alternatives\": \"輸入錯誤\",\n    \"not member\": \"非會員\",\n    \"not number\": \"須為數字\",\n    \"not selected\": \"未選擇\",\n    \"not unique\": \"資料重複\",\n    \"not yet addded to any shops\": \"未上架至商店\",\n    \"not yet dispatched\": \"未出貨\",\n    \"not yet generated\": \"未產生\",\n    \"not yet invoiced\": \"未開立\",\n    \"not yet saved\": \"未儲存\",\n    \"not yet set\": \"未設定\",\n    \"notEquals\": \"不等於\",\n    \"note\": \"備註\",\n    \"note is required on checkout\": \"顧客注意事項為必填\",\n    \"notes\": \"備註\",\n    \"notes on checkout\": \"結帳時顯示備註欄位\",\n    \"nothing to print\": \"沒有可列印的內容。\",\n    \"nothing to print, click on\": \"沒有可列印的內容，請點選\",\n    \"notification\": \"通知\",\n    \"notifications\": \"通知\",\n    \"notifications_read\": \"已讀\",\n    \"notifications_unread\": \"未讀（新增）\",\n    \"number\": \"號碼\",\n    \"number of columns\": \"欄數\",\n    \"number of days\": \"日數\",\n    \"number of days after dispatch date\": \"發貨後的天數\",\n    \"number of games per person\": \"每人遊戲數量\",\n    \"number of lines for product name\": \"品名顯示行數\",\n    \"number of months\": \"月數\",\n    \"number of orders\": \"訂單數量\",\n    \"number of orders (after split)\": \"訂單數量(拆單後)\",\n    \"number of orders (before split)\": \"訂單數量(拆單前)\",\n    \"number of results\": \"搜尋數量\",\n    \"number of selections\": \"選擇的數量\",\n    \"number of transactions\": \"交易數量\",\n    \"off\": \"關\",\n    \"offer id\": \"Offer_ID\",\n    \"office fax\": \"辦公室傳真\",\n    \"office phone\": \"公司電話\",\n    \"offline\": \"離線中\",\n    \"old exclusive price\": \"舊的未稅價格\",\n    \"old inclusive price\": \"舊的含稅價格\",\n    \"old member level points\": \"舊會員點數\",\n    \"old store id\": \"商店ID\",\n    \"old store name\": \"商店名\",\n    \"on\": \"開\",\n    \"on checkout delivery date selection\": \"結帳頁顯示到(出)貨日期選擇\",\n    \"on checkout dispatch date selection\": \"結帳頁出貨日期選擇\",\n    \"on checkout pickup date selection\": \"結帳頁顯示店取日期選擇\",\n    \"on consignment qty\": \"寄賣數量\",\n    \"on hand qty\": \"現有庫存量\",\n    \"on hold\": \"暫停\",\n    \"on hold qty (checkout in progress)\": \"保留數量 (還在結帳流程)\",\n    \"on paid send email\": \"付款成功後發送電子郵件\",\n    \"on sale\": \"特價中\",\n    \"on sale schedules\": \"特價時間表\",\n    \"on sale tag display position\": \"特價中標籤顯示位置\",\n    \"on sale tag display style\": \"特價中標籤顯示樣式\",\n    \"on set date\": \"在設定日期\",\n    \"on total\": \"總額計算\",\n    \"onHold\": \"暫停\",\n    \"onSaleScheduleWarning_notOnSale\": \"若您尚未選取排程，此商品將會繼續顯示【原始價格】\",\n    \"onSaleScheduleWarning_onSale\": \"若您尚未選取排程，此商品將會繼續顯示【原折扣價格】\",\n    \"on_consignment_exclusive_total\": \"寄賣未稅總額\",\n    \"on_consignment_inclusive_total\": \"寄賣含稅總額\",\n    \"once\": \"一次\",\n    \"once off\": \"一次性\",\n    \"one item limit per checkout\": \"每次結帳限制一件商品\",\n    \"oneByOne\": \"1x1 (正方形)\",\n    \"oneToThreeDays\": \"1-3天\",\n    \"online\": \"上線中\",\n    \"only advanced template\": \"僅進階網頁\",\n    \"only allow recurring schedules in shop\": \"只顯示定期購選項（不可單買）\",\n    \"only categories\": \"只顯示商品分類\",\n    \"only for B2C\": \"僅支援B2C使用\",\n    \"only for mobile preview and slider display\": \"僅影響輪播和手機瀏覽的文章總覽\",\n    \"only include items with sales activity\": \"隱藏無交易商品\",\n    \"only one bulk discount allowed with all product tags\": \"僅能有一個包含全部商品標籤的量販折扣\",\n    \"only pos\": \"限POS交易\",\n    \"only send when customer won prizes\": \"僅在顧客贏得獎勵時寄送\",\n    \"only show orders without transporter\": \"只顯示不含物流公司的出貨單\",\n    \"only show set details (hide parents)\": \"只顯示組合子項 (隱藏組合母項)\",\n    \"only show set parents (hide details)\": \"只顯示組合母項 (隱藏組合子項)\",\n    \"only show shipping description, rate is quoted after order\": \"只顯示配送資訊，運費會在下單後報價\",\n    \"only show variant parents\": \"只顯示主附加選項\",\n    \"only show variant parents in products search\": \"在商品分頁搜尋只顯示主附加選項\",\n    \"only tags\": \"只顯示商品標籤\",\n    \"open graph\": \"Open Graph\",\n    \"open help\": \"開啟說明\",\n    \"open hours\": \"營業時間\",\n    \"open in new tab\": \"在新分頁開啟\",\n    \"open link\": \"開啟連結\",\n    \"open shop settings\": \"開商店設定分頁\",\n    \"open web pos\": \"開啟 Web POS\",\n    \"open_tab\": \"開新分頁\",\n    \"open_window\": \"開啟新視窗\",\n    \"opening balance\": \"期初盈餘\",\n    \"opening inventory book qty\": \"現有庫存量\",\n    \"opening inventory book value\": \"現有庫存價值\",\n    \"opening inventory on hand qty\": \"帳面庫存量\",\n    \"opening inventory on hand value\": \"帳面庫存價值\",\n    \"opening points\": \"初始點數\",\n    \"operator\": \"操作人員\",\n    \"operator->change logs\": \"操作人員 > 更新紀錄\",\n    \"optimized-image\": \"圖片\",\n    \"optional\": \"非必填\",\n    \"optional_will_use_default\": \"非必填，將使用系統預設值\",\n    \"options\": \"選項\",\n    \"or\": \"或\",\n    \"orange\": \"橙色\",\n    \"order\": \"訂單\",\n    \"order #\": \"訂單 #\",\n    \"order activity showing options\": \"訂單交易歷史出貨日期顯示設定\",\n    \"order canceled email\": \"已取消通知信\",\n    \"order date\": \"訂購日期\",\n    \"order dispatched email\": \"訂單出貨通知信\",\n    \"order number\": \"訂單號碼\",\n    \"order percentage\": \"訂單占比\",\n    \"order requirements\": \"訂單要求設定\",\n    \"order success email\": \"訂單成功信\",\n    \"order summary\": \"訂單明細\",\n    \"order value\": \"訂單總計\",\n    \"order-activity-settings\": \"訂單交易歷史設定\",\n    \"orderValue\": \"訂單總計\",\n    \"ordered\": \"訂購\",\n    \"ordered date\": \"訂購日期\",\n    \"ordered qty\": \"訂購數量\",\n    \"ordered_exclusive_total\": \"訂購未稅額\",\n    \"ordered_inclusive_total\": \"訂購含稅額\",\n    \"orders\": \"訂單\",\n    \"orders by date\": \"依訂購日期\",\n    \"original commission base cost\": \"原始佣金成本基數\",\n    \"original commission total amount\": \"原始佣金總數\",\n    \"original document total\": \"原始總價\",\n    \"original inclusive price\": \"含稅原價\",\n    \"original total commission\": \"原始總佣金\",\n    \"original value\": \"原始數量\",\n    \"other\": \"其他\",\n    \"other income\": \"其他收入\",\n    \"out of stock\": \"缺貨中\",\n    \"outOfStock\": \"缺貨中\",\n    \"outer region\": \"偏遠地區\",\n    \"outgoing transactions summary\": \"送出交易摘要\",\n    \"outlying islands\": \"外島地區\",\n    \"output\": \"輸出\",\n    \"output value\": \"自訂值\",\n    \"outside image\": \"在圖片外\",\n    \"outsideImage\": \"在圖片外\",\n    \"outstanding\": \"未出貨\",\n    \"outstanding qty\": \"未出貨數量\",\n    \"outstanding total\": \"未付總金額\",\n    \"outstanding_exclusive_total\": \"未交未稅額\",\n    \"outstanding_inclusive_total\": \"未交含稅額\",\n    \"over limit\": \"已超過限制\",\n    \"overdue commission\": \"逾期抽成\",\n    \"overlap date description\": \"排程重疊日期\",\n    \"overpaid\": \"超額付款\",\n    \"overview\": \"總覽\",\n    \"package size\": \"黑貓包裹尺寸\",\n    \"package temperature\": \"包裹溫度\",\n    \"package type\": \"黑貓預設商品類型\",\n    \"packageSize\": \"黑貓包裹尺寸\",\n    \"packageType\": \"黑貓預設商品類型\",\n    \"packages\": \"件數\",\n    \"packages_short\": \"件數\",\n    \"packaging_dimensions\": \"包裝尺寸\",\n    \"packaging_dimensions_unit_default\": \"預設包裝尺寸單位\",\n    \"padding settings\": \"內距設定\",\n    \"page\": \"頁\",\n    \"page is hidden on menu\": \"在主選單隱藏\",\n    \"page schedules\": \"頁面排程\",\n    \"page status\": \"頁面狀態\",\n    \"page url\": \"頁面網址\",\n    \"page view\": \"瀏覽頁面\",\n    \"page views\": \"瀏覽量\",\n    \"page views per person\": \"每人平均瀏覽量\",\n    \"pageBlocks_blogs\": \"文章\",\n    \"pageBlocks_buttons\": \"按鈕\",\n    \"pageBlocks_custom\": \"Custom HTML/JS/CSS\",\n    \"pageBlocks_facebookPosts\": \"Facebook 貼文\",\n    \"pageBlocks_faqs\": \"常見問題\",\n    \"pageBlocks_features\": \"介紹\",\n    \"pageBlocks_flows\": \"聊天機器人\",\n    \"pageBlocks_group_basic\": \"基本\",\n    \"pageBlocks_group_contents\": \"內容\",\n    \"pageBlocks_group_marketing\": \"行銷\",\n    \"pageBlocks_group_payments\": \"金錢\",\n    \"pageBlocks_group_shop\": \"商店\",\n    \"pageBlocks_group_social\": \"社群\",\n    \"pageBlocks_image\": \"圖片\",\n    \"pageBlocks_images\": \"圖片\",\n    \"pageBlocks_instagramPosts\": \"Instagram 貼文\",\n    \"pageBlocks_links_or_buttons\": \"連結或按鈕\",\n    \"pageBlocks_mailingList\": \"郵件名單\",\n    \"pageBlocks_news\": \"最新消息\",\n    \"pageBlocks_products\": \"商品\",\n    \"pageBlocks_sliders\": \"輪播\",\n    \"pageBlocks_social-links\": \"社交連結\",\n    \"pageBlocks_socialLinks\": \"社交連結\",\n    \"pageBlocks_tabs\": \"分頁\",\n    \"pageBlocks_text\": \"文字\",\n    \"pageBlocks_texts\": \"文字\",\n    \"pageBlocks_threadsPosts\": \"Threads 貼文\",\n    \"pageBlocks_tikTokPosts\": \"TikTok 貼文\",\n    \"pageBlocks_tips\": \"小費/贊助\",\n    \"pageBlocks_videos\": \"影片\",\n    \"page_blocks_products_hand_pick_select_cap_warning\": \"最多可選 {count} 個商品。\",\n    \"paid\": \"已付款\",\n    \"paid total\": \"已付款總額\",\n    \"parent page\": \"顯示在分類頁面下\",\n    \"passed allowed refund period\": \"已超過可退刷日期\",\n    \"password\": \"密碼\",\n    \"password (at least 4 characters)\": \"密碼（至少4個字符）\",\n    \"password (at least 8 characters)\": \"密碼（至少8個字符）\",\n    \"password button label\": \"鎖定按鈕標籤\",\n    \"password description\": \"解除鎖定說明\",\n    \"paste as plain text\": \"貼上純文字\",\n    \"paste block\": \"貼上區塊\",\n    \"pay\": \"付款\",\n    \"pay to account auto expiry\": \"銀行轉帳時效自動設定\",\n    \"payers phone number\": \"付款人電話\",\n    \"payment\": \"付款\",\n    \"payment amount\": \"付款金額\",\n    \"payment date\": \"付款日期\",\n    \"payment due\": \"付款截止日\",\n    \"payment due date\": \"付款截止日\",\n    \"payment due date will be auto calculated after saving\": \"付款截止日將在儲存後自動計算\",\n    \"payment fee\": \"手續費\",\n    \"payment is already being processed for this document\": \"此出貨單的付款正在處理中，請稍候再重整\",\n    \"payment last 5 digits\": \"後五碼\",\n    \"payment link\": \"付款連結\",\n    \"payment method\": \"付款方式\",\n    \"payment methods\": \"付款方式\",\n    \"payment number\": \"payment number\",\n    \"payment overdue date\": \"付款逾期日\",\n    \"payment reminder email\": \"付款提醒信\",\n    \"payment reminder email message\": \"付款提醒電子郵件內容\",\n    \"payment reminder email subject\": \"付款提醒電子郵件主旨\",\n    \"payment reminder email templates\": \"付款提醒郵件模板\",\n    \"payment reminders\": \"付款提醒\",\n    \"payment settings\": \"付款設定\",\n    \"payment status\": \"付款狀態\",\n    \"payment terms\": \"付款條件\",\n    \"payment-flow\": \"金流\",\n    \"payment-settings\": \"付款設定\",\n    \"paymentAndCheckout\": \"付款與結帳\",\n    \"payments\": \"付款\",\n    \"payments and due date\": \"付款與期限\",\n    \"payments->credit card\": \"付款 > 信用卡\",\n    \"payments->line pay\": \"付款 > Line Pay\",\n    \"payments->virtual account\": \"付款 > 虛擬帳號\",\n    \"payout\": \"撥款\",\n    \"payouts this month\": \"本月支出\",\n    \"payuni\": \"PayUni\",\n    \"payuni / seven eleven email\": \"Payuni / Seven-Eleven Email\",\n    \"payuni-seven-eleven\": \"PayUni 7-11\",\n    \"payuni-seven-eleven credentials\": \"PayUni 7-11 Credentials\",\n    \"payuni-seven-eleven waybill\": \"Payuni 7-11 托運單\",\n    \"payuni_hash_iv\": \"Hash IV\",\n    \"payuni_hash_key\": \"Hash Key\",\n    \"payuni_import from contact\": \"Import from contact\",\n    \"payuni_installments\": \"Payuni 分期付款\",\n    \"payuni_merchant_id\": \"Merchant ID\",\n    \"payuni_payments\": \"PayUni金流\",\n    \"pending\": \"未完成\",\n    \"pending points\": \"待定點數\",\n    \"pending products\": \"掛單\",\n    \"pending qty\": \"未出庫存\",\n    \"pendingCancellation\": \"作廢處理中\",\n    \"per line\": \"個別計算\",\n    \"per year\": \"年度統計\",\n    \"percentage of price\": \"價格的百分比\",\n    \"percentage_sign\": \"%\",\n    \"permanently unavailable variant children\": \"已刪除的多規格子商品\",\n    \"person\": \"聯絡人\",\n    \"person + contact\": \"收件人 + 訂購人\",\n    \"person name\": \"聯絡人姓名\",\n    \"person_export\": \"收件人\",\n    \"persons\": \"聯絡人\",\n    \"persons_count\": \"不重複訪客數\",\n    \"pet supplies\": \"寵物用品飼料\",\n    \"phone\": \"電話\",\n    \"pick a color theme\": \"選擇一個顏色主題\",\n    \"pick up\": \"自取\",\n    \"pick up locations\": \"取貨點地址\",\n    \"picking list\": \"檢貨單\",\n    \"pickup address\": \"取貨地址\",\n    \"pickup convenience store change requires store closure notification\": \"此物流單僅能於 7-ELEVEN 通知取件門市關轉時更換取件門市。\",\n    \"pickup date options\": \"取貨日期選項\",\n    \"pickup date settings\": \"指定店取日期設定\",\n    \"pickup date subtitle\": \"選擇取貨日副標題(顯示於結帳頁)\",\n    \"pickup locations\": \"取貨點地址\",\n    \"pickup methods\": \"取貨方式\",\n    \"pickup settings\": \"自取設定\",\n    \"pickup-settings\": \"自取設定\",\n    \"pickupAddress\": \"取貨地址\",\n    \"picture-desktop\": \"圖片（桌電）\",\n    \"picture-tablet\": \"圖片（平板）\",\n    \"pin\": \"置頂\",\n    \"pinned\": \"已置頂\",\n    \"pixel id\": \"像素(Pixel) ID\",\n    \"plan\": \"方案\",\n    \"plan name\": \"方案名稱\",\n    \"please add\": \"請新增\",\n    \"please allow popups to open\": \"請允許彈出視窗\",\n    \"please check email for two factor authentication code\": \"請至登入信箱查收BigOrdr發送之信件，並取得驗證碼。\",\n    \"please login to view this page\": \"請先登入才能查看此頁面\",\n    \"please press print again to see changes\": \"請重按列印鍵變更\",\n    \"please select\": \"請選擇\",\n    \"podKey\": \"識別碼\",\n    \"point\": \"點數\",\n    \"points\": \"{points} 點數\",\n    \"points adjustment email\": \"會員點數調整通知信\",\n    \"points become valid after number of days\": \"點數生效日\",\n    \"points earned\": \"獲得的會員點數\",\n    \"points expiry date\": \"會員點數到期日\",\n    \"points expiry time\": \"會員點數有效期限\",\n    \"points spent\": \"會員點數\",\n    \"points to adjust\": \"調整的會員點數\",\n    \"points to adjust expiry date\": \"調整到期日的點數\",\n    \"points to send\": \"要發送的點數\",\n    \"pos\": \"POS\",\n    \"pos link\": \"POS連結\",\n    \"pos profile\": \"POS設定檔\",\n    \"pos profile not found\": \"找不到POS設定檔\",\n    \"pos terminal\": \"POS終端\",\n    \"position\": \"位置\",\n    \"position_center-bottom\": \"下方置中\",\n    \"position_center-center\": \"正中\",\n    \"position_center-top\": \"上方置中\",\n    \"position_left-bottom\": \"左下角\",\n    \"position_left-top\": \"左上角\",\n    \"position_right-bottom\": \"右下角\",\n    \"position_right-top\": \"右上角\",\n    \"possibly missing data\": \"可能有資料遺失\",\n    \"post office\": \"郵局\",\n    \"postCode\": \"郵遞區號\",\n    \"postal codes\": \"郵遞區號\",\n    \"power\": \"權力用戶\",\n    \"pre order\": \"預購中\",\n    \"preOrder\": \"預購中\",\n    \"preOrder stats\": \"預購統計\",\n    \"preOrder-notes\": \"預購商品名備註\",\n    \"preferred delivery time\": \"偏好的送達時段\",\n    \"prepare for dispatch\": \"準備出貨\",\n    \"preparing\": \"準備中\",\n    \"preset commissions\": \"預設抽成\",\n    \"presets\": \"預設\",\n    \"press\": \"按\",\n    \"press enter or search button to search\": \"按下 Enter 或搜尋鍵來搜尋\",\n    \"press enter to select, and search button to search\": \"按下 Enter 選擇，按搜尋鍵來搜尋\",\n    \"preview\": \"預覽\",\n    \"preview animation\": \"播放動畫\",\n    \"preview merge\": \"預覽合併\",\n    \"previous\": \"上一頁\",\n    \"previous button label\": \"上一頁按鈕標籤\",\n    \"previous step\": \"上一步\",\n    \"price\": \"單價\",\n    \"price (for accounting purpose)\": \"價格（作帳用）\",\n    \"price history\": \"價格歷史\",\n    \"price range\": \"價格範圍\",\n    \"priceAsc\": \"價格由低至高\",\n    \"priceDesc\": \"價格由高至低\",\n    \"priceLessThanPriceDiscounted\": \"含稅折扣價: 必須小於含稅單價\",\n    \"pricing\": \"定價\",\n    \"print\": \"列印\",\n    \"print all\": \"列印全部\",\n    \"print all delivery notes\": \"列印全部出貨單\",\n    \"print all eInvoices\": \"開立全部電子發票\",\n    \"print all invoices\": \"列印全部統一發票\",\n    \"print all waybills\": \"列印全部托運單\",\n    \"print delivery note\": \"列印出貨單\",\n    \"print document paper size\": \"列印紙張大小\",\n    \"print format\": \"列印格式\",\n    \"print hct summary\": \"列印新竹物流總表\",\n    \"print image size\": \"列印圖片大小\",\n    \"print images\": \"列印商品圖片\",\n    \"print images on documents\": \"列印商品圖片\",\n    \"print invoice\": \"列印統一發票\",\n    \"print invoices\": \"列印統一發票\",\n    \"print picking list\": \"列印檢貨單\",\n    \"print settings\": \"列印設定\",\n    \"print statement\": \"列印對帳表\",\n    \"print units\": \"列印單位\",\n    \"print waybill\": \"列印托運單\",\n    \"print waybills count is not the same as invoices count. are you sure you want to continue\": \"印刷運單數量與發票數量不一致。確定要繼續嗎？\",\n    \"print waybills starting position\": \"開始列印位置\",\n    \"print: {printedStatus}\": \"列印: {printedStatus}\",\n    \"print_delivery_note_prices\": \"列印請款單\",\n    \"printed\": \"已列印\",\n    \"printed products\": \"印刷品\",\n    \"printed to reprint\": \"「已列印」重新列印\",\n    \"printer\": \"印表機\",\n    \"printer download mac arm\": \"Mac（M 系列晶片）\",\n    \"printer download mac intel\": \"Mac（Intel）\",\n    \"printer download windows\": \"Windows\",\n    \"printer error, please check printer connection\": \"列印錯誤\",\n    \"printer id\": \"打印機 ID\",\n    \"printer model\": \"印表機型號\",\n    \"printer model hprt tp805\": \"HPRT TP805\",\n    \"printer model microchip\": \"電子發票印表機（Microchip）\",\n    \"printerAllocatedNumbers\": \"印表機指派的電子發票號碼\",\n    \"privacy policy\": \"隱私權說明\",\n    \"private\": \"非公開\",\n    \"private notes\": \"非公開訊息\",\n    \"private shop templates\": \"我的商店模板\",\n    \"private templates\": \"我的模板\",\n    \"prize\": \"獎品\",\n    \"prize description\": \"獎品描述\",\n    \"prize_successfulMessage\": \"中獎成功訊息\",\n    \"prize_successfulTitle\": \"中獎成功標題\",\n    \"probably missing data\": \"Probably missing data!\",\n    \"process_order\": \"排序\",\n    \"processing\": \"處理中\",\n    \"processing please wait\": \"處理中請稍候\",\n    \"product\": \"商品\",\n    \"product code\": \"編碼\",\n    \"product decimal places\": \"商品小數點位數\",\n    \"product display\": \"商品顯示\",\n    \"product grouping\": \"商品分類\",\n    \"product image ratio\": \"商品圖片長寬比例(長x寬)\",\n    \"product images\": \"商品圖片\",\n    \"product images size\": \"商品圖片大小\",\n    \"product info\": \"商品資料\",\n    \"product information\": \"商品介紹\",\n    \"product limits\": \"商品限制數量\",\n    \"product name\": \"商品名稱\",\n    \"product price rounding\": \"商品價格小數點位數\",\n    \"product schedules\": \"商品上架時間表\",\n    \"product set\": \"組合商品\",\n    \"product set with choices\": \"任選商品\",\n    \"product sets\": \"組合商品\",\n    \"product settings\": \"商品設定\",\n    \"product size\": \"商品尺寸\",\n    \"product stats\": \"商品數據統計\",\n    \"product status\": \"商品狀態\",\n    \"product tags\": \"商品標籤\",\n    \"product type\": \"商品類型\",\n    \"product url\": \"自訂URL代稱 (URL Slug)\",\n    \"product_description\": \"商品規格\",\n    \"product_description_short\": \"商品規格\",\n    \"product_general\": \"一般商品\",\n    \"product_set\": \"組合商品\",\n    \"product_set_price\": \"組合價格\",\n    \"product_sets\": \"組合商品\",\n    \"product_sets_contents\": \"組合內容\",\n    \"product_sets_with_choices\": \"任選商品\",\n    \"product_sets_with_choices_contents\": \"任選商品內容\",\n    \"product_short description\": \"商品摘要\",\n    \"product_sync\": \"單次重整商品\",\n    \"product_sync_warning\": \"更新此頁面內容不會自動同步至商店，儲存後請至【商店】點擊編輯商品，按下【單次重整商品】\",\n    \"product_tags_any\": \"含\",\n    \"product_tags_only\": \"僅含\",\n    \"product_type_collect_on_behalf\": \"代收代付\",\n    \"product_type_inventory\": \"商品或服務\",\n    \"product_type_service\": \"服務\",\n    \"product_type_virtual\": \"虛擬\",\n    \"products\": \"商品\",\n    \"products display settings\": \"商品顯示設定\",\n    \"products images hover brightness effect\": \"滑鼠移到商品圖片亮度調整\",\n    \"products images hover zoom effect\": \"滑鼠移到商品圖片縮放效果\",\n    \"products images radius\": \"商品圖片圓角\",\n    \"products images ratio\": \"商品圖片長寬比例\",\n    \"products images size\": \"商品圖片尺寸\",\n    \"products in this shop\": \"本店的商品\",\n    \"products overview name\": \"商品預覽名稱\",\n    \"products overview style\": \"商品預覽風格\",\n    \"products per page\": \"每頁輪播圖數量\",\n    \"products sort by\": \"商品排序\",\n    \"products style\": \"Products Style\",\n    \"products to be converted to normal product\": \"轉換為一般商品的品項\",\n    \"products to be converted to variant child product\": \"轉換為多規格子商品的品項\",\n    \"products variants code separator\": \"商品多規格商品編碼分隔符號\",\n    \"products variants name separator\": \"商品多規格商品名稱分隔符號\",\n    \"products-campaigns\": \"商店商品\",\n    \"products_management\": \"商品目錄\",\n    \"profile\": \"簡介\",\n    \"promo code\": \"優惠代碼\",\n    \"promo code (at least 6 characters)\": \"優惠代碼(至少6個字符)\",\n    \"promo codes\": \"優惠代碼\",\n    \"promotion\": \"促銷\",\n    \"property\": \"參數名稱\",\n    \"provider\": \"平台\",\n    \"public\": \"公開\",\n    \"public description\": \"自訂優惠代碼訊息\",\n    \"public release notes\": \"公開宣布訊息\",\n    \"public status\": \"資料公開狀態（客戶可看見）\",\n    \"public templates\": \"預設模板\",\n    \"pulse\": \"脈動\",\n    \"purchases\": \"進貨\",\n    \"purchases consignment\": \"進項寄賣\",\n    \"purchases consignment overview\": \"進項寄賣槪要\",\n    \"purchases consignment receipt\": \"寄賣進貨單\",\n    \"purchases consignment return\": \"進項寄賣退貨單\",\n    \"purchases count\": \"購買次數\",\n    \"purchases enquiry\": \"詢價單\",\n    \"purchases invoice\": \"進貨單\",\n    \"purchases invoices this month\": \"本月進貨單\",\n    \"purchases order\": \"採購單\",\n    \"purchases price history\": \"進價歷史\",\n    \"purchases return\": \"進貨折讓單\",\n    \"purchases returns this month\": \"本月進貨折讓單\",\n    \"purchases terms\": \"進貨條件\",\n    \"purchases value\": \"購買金額\",\n    \"purchases->consignments\": \"進貨 > 寄賣\",\n    \"purchases->consignments->purchases-consignments\": \"進貨 > 寄賣 > 寄賣進貨單\",\n    \"purchases->consignments->purchases-consignments-returns\": \"進貨 > 寄賣 > 進項寄賣退貨單\",\n    \"purchases->doc-pending\": \"進貨 > 未交總表\",\n    \"purchases->purchases-invoices\": \"進貨 > 進貨單\",\n    \"purchases->purchases-orders\": \"進貨 > 採購單\",\n    \"purchases->purchases-quotes\": \"進貨 > 詢價單\",\n    \"purchases->purchases-returns\": \"進貨 > 進貨折讓單\",\n    \"purchases-consignments\": \"寄賣進貨單\",\n    \"purchases-consignments-returns\": \"進項寄賣退貨單\",\n    \"purchases-invoices\": \"進貨單\",\n    \"purchases-orders\": \"採購單\",\n    \"purchases-pending\": \"未交總表\",\n    \"purchases-pending: display tax method\": \"進貨未交總表: 顯示未稅或含稅\",\n    \"purchases-purchases-consignments\": \"進貨: 寄賣進貨單\",\n    \"purchases-purchases-consignments-returns\": \"進貨: 進項寄賣退貨單\",\n    \"purchases-purchases-invoices\": \"進貨: 進貨單\",\n    \"purchases-purchases-orders\": \"進貨: 採購單\",\n    \"purchases-purchases-quotes\": \"進貨: 詢價單\",\n    \"purchases-purchases-returns\": \"進貨: 進貨折讓單\",\n    \"purchases-quotes\": \"詢價單\",\n    \"purchases-returns\": \"進貨折讓單\",\n    \"purchases: on consignment\": \"購買：寄賣\",\n    \"purchases: on consignment qty\": \"購買：寄賣量\",\n    \"purchases_delivered_exclusive_total\": \"已進貨未稅額\",\n    \"purchases_delivered_inclusive_total\": \"已進貨含稅額\",\n    \"purchasing exclusive price\": \"進貨未稅價\",\n    \"purchasing inclusive price\": \"進貨含稅價\",\n    \"purple\": \"紫色\",\n    \"px\": \"px\",\n    \"qr code\": \"QR Code\",\n    \"qr code admissions\": \"QR Code 入場\",\n    \"qr codes\": \"QR Codes\",\n    \"qrCodes admissions personnel\": \"QR Code 入場人員\",\n    \"qty\": \"數量\",\n    \"qty cannot be empty or have value below one\": \"數量不可為空或是小於一!\",\n    \"qty cannot be greater than the allowed qty\": \"數量無法大於允許數量!\",\n    \"qty sold\": \"售出數量\",\n    \"qty sold (to invoice)\": \"已售數量(未紀錄)\",\n    \"quantity\": \"數量\",\n    \"quantity based rates\": \"以數量設定運費\",\n    \"query\": \"查詢\",\n    \"question\": \"問題\",\n    \"questions\": \"問題\",\n    \"queued\": \"排程中\",\n    \"quick add\": \"快速增加\",\n    \"quick add products to shop\": \"快速新增商品到商店\",\n    \"quick links\": \"快速連結\",\n    \"quick login\": \"已經是會員，請快速登錄\",\n    \"quickTip\": \"小提示\",\n    \"quote\": \"報價單\",\n    \"range separator\": \"至\",\n    \"rate\": \"費率\",\n    \"rate table\": \"運費區間\",\n    \"ratio_original\": \"原始\",\n    \"re-download\": \"重新下載\",\n    \"re-download already generated waybills\": \"重新下載已經產生的運單\",\n    \"re-download waybills\": \"重新下載運單\",\n    \"re-index\": \"重新排序\",\n    \"re-index all products\": \"重新排序所有商品\",\n    \"re-login\": \"重新登入\",\n    \"re-order qty\": \"再訂購數量\",\n    \"re-sync product stats\": \"重新同步商品數據\",\n    \"real qty sold\": \"實際銷售數量\",\n    \"reason\": \"原因\",\n    \"recalculate inventory\": \"重整庫存\",\n    \"receipt\": \"收款\",\n    \"receipts\": \"收款\",\n    \"received qty\": \"已收數量\",\n    \"received_exclusive_total\": \"已收未稅總額\",\n    \"received_inclusive_total\": \"已收含稅總額\",\n    \"receivers mobile number\": \"收件人手機\",\n    \"recipient\": \"收件人\",\n    \"recommended\": \"推薦排序\",\n    \"record commissions\": \"紀錄抽成\",\n    \"recurring order email\": \"定期購信件\",\n    \"recurring orders\": \"定期購訂單\",\n    \"recurring schedule\": \"定期排程\",\n    \"recurring schedules\": \"定期購\",\n    \"recurring settings\": \"定期購設定\",\n    \"recurring-settings\": \"定期購設定\",\n    \"recurring_discount_behavior\": \"定期購折扣\",\n    \"recurring_discount_paymentReminder\": \"定期購付款提醒\",\n    \"recurring_only\": \"不可單買\",\n    \"recurring_options\": \"選項\",\n    \"recurring_shipping_behavior\": \"定期購運費\",\n    \"red\": \"紅色\",\n    \"ref\": \"參照編號\",\n    \"reference\": \"參照編號\",\n    \"referenced field is not a date\": \"輸入日期格式錯誤\",\n    \"referenced field is not a number\": \"輸入錯誤，須為數值\",\n    \"referral email\": \"推薦信\",\n    \"referral_message\": \"推薦訊息\",\n    \"referral_reward\": \"推薦獎勵\",\n    \"referral_reward_details\": \"詳細推薦獎勵\",\n    \"referral_reward_for_recipient\": \"給被推薦人\",\n    \"referral_reward_for_referrer\": \"給推薦人\",\n    \"referral_reward_limit per day\": \"每日推薦上限\",\n    \"referral_reward_recipient\": \"被推薦人\",\n    \"referral_reward_referrer\": \"推薦人\",\n    \"refetch barcode\": \"重新下載條碼\",\n    \"refresh\": \"重整\",\n    \"refrigerated\": \"冷藏\",\n    \"refund\": \"退款\",\n    \"refund amount\": \"退款金額\",\n    \"refund credit card\": \"信用卡退刷\",\n    \"refund credit card total\": \"信用卡退刷總計\",\n    \"refund line pay\": \"Line Pay退款\",\n    \"refund payment\": \"退還已付款項\",\n    \"refund reminder amount\": \"退款提醒金額\",\n    \"refunds\": \"退款\",\n    \"refunds require authorization\": \"退款需要授權\",\n    \"refunds settings\": \"退款設定\",\n    \"regenerate access code\": \"重新產生報表連結\",\n    \"regenerate document number\": \"重新產生單據編號\",\n    \"region\": \"地區\",\n    \"region code\": \"地區代碼\",\n    \"regions\": \"地區\",\n    \"related\": \"相關的\",\n    \"relationship\": \"關係\",\n    \"relationships\": \"關係\",\n    \"reload inventory reports\": \"重載存貨報告\",\n    \"reload_images_grid\": \"重新排列圖格\",\n    \"remaining\": \"剩餘\",\n    \"remaining qty\": \"剩餘數量\",\n    \"remember credit card\": \"記住信用卡\",\n    \"reminder limits qty\": \"提醒數量(當商品低於數量時，提醒我)\",\n    \"remove\": \"刪除\",\n    \"remove all row\": \"刪除橫列\",\n    \"remove bulk discount\": \"移除量販折扣\",\n    \"remove cell\": \"刪除儲存格\",\n    \"remove convenience store\": \"移除便利商店\",\n    \"remove from block\": \"從區塊移除\",\n    \"remove image\": \"刪除圖片\",\n    \"remove item from page\": \"自頁面移除項目\",\n    \"remove pickup location\": \"移除取貨地點\",\n    \"remove product from shop\": \"下架商品\",\n    \"remove selected products\": \"下架已選擇的商品\",\n    \"remove waybill\": \"移除托運單\",\n    \"remove waybill warning\": \"請勿使用舊的托運單寄貨。移除後可編輯單據，再列印以產生新托運單。\",\n    \"remove_from_block_confirm\": \"要從這個區塊移除嗎？商品仍會留在商店商品。\",\n    \"repeat order info for each detail row\": \"每一列重複顯示訂單資訊\",\n    \"replace\": \"更換\",\n    \"replace default message\": \"取代預設內容\",\n    \"report\": \"報表\",\n    \"report link\": \"報表連結\",\n    \"report password\": \"報表密碼\",\n    \"reports\": \"報表\",\n    \"reports->commissions\": \"報表 > 抽成\",\n    \"reports->sales\": \"報表 > 銷貨\",\n    \"reprint\": \"重新列印\",\n    \"reprint is only available in the printed tab\": \"重新列印僅可在「已列印」分頁使用\",\n    \"request missing waybills\": \"request missing waybills\",\n    \"request waybills\": \"產生托運單\",\n    \"requestId\": \"請求ID (Request ID)\",\n    \"requested a todo from\": \"請求待辦事項：\",\n    \"required\": \"必填\",\n    \"resend\": \"重寄\",\n    \"resend order webhook event\": \"Webhook: 重新傳送訂單資料\",\n    \"reset commission presets\": \"重設抽成\",\n    \"reset inventory data\": \"Reset Inventory Data\",\n    \"reset inventory date\": \"Reset Inventory Date\",\n    \"resolved\": \"已解決\",\n    \"resource\": \"資源\",\n    \"restrict login using ip addresses\": \"限制登入IP位址\",\n    \"results\": \"搜尋結果\",\n    \"return\": \"退貨\",\n    \"return all discount\": \"退還全部折扣\",\n    \"return convenience store\": \"退件包裹送達門市\",\n    \"return convenience store change requires store closure notification\": \"此物流單僅能於 7-ELEVEN 通知退件門市關轉時更換退件門市。\",\n    \"return points spent\": \"退還該筆訂單使用的點數\",\n    \"return qty\": \"退貨數量\",\n    \"return storeAddress\": \"返回店家地址\",\n    \"return storeId\": \"返回商店 ID\",\n    \"return storeName\": \"返回店家名稱\",\n    \"return_points_adjustment_explanation\": \"因為當次消費賺取的會員點數在其他次消費中被使用，退款總額中將會依使用情形調整。\",\n    \"returningCustomer\": \"回購客/舊客\",\n    \"returns\": \"退貨\",\n    \"returns application email\": \"退貨申請信\",\n    \"returns inclusive total\": \"折讓含稅總計\",\n    \"revenue\": \"營業額\",\n    \"revenue by age\": \"顧客年齡營業額\",\n    \"revenue by campaign\": \"商店營業額\",\n    \"revenue by channel\": \"通路營業額\",\n    \"revenue by contact\": \"顧客營業額\",\n    \"revenue by contact tags\": \"顧客標籤營業額\",\n    \"revenue by customer type\": \"顧客類別營業額\",\n    \"revenue by day\": \"每日營業額\",\n    \"revenue by gender\": \"顧客性別營業額\",\n    \"revenue by member type\": \"會員營業額\",\n    \"revenue by month\": \"每月營業額\",\n    \"revenue by payment method\": \"付款方式營業額\",\n    \"revenue by product\": \"商品營業額\",\n    \"revenue by product (all)\": \"商品營業額(全部)\",\n    \"revenue by product (dispatched)\": \"商品營業額(已出貨)\",\n    \"revenue by promo code\": \"優惠代碼營業額\",\n    \"revenue for campaign\": \"商店營業額\",\n    \"revenue for month\": \"本月營業額\",\n    \"revenue for year\": \"本年營業額\",\n    \"revenue percentage\": \"營業額占比\",\n    \"revert to draft\": \"還原成草稿\",\n    \"review steps\": \"審查步驟\",\n    \"reviewSettings\": \"審查設定\",\n    \"reward\": \"獎勵\",\n    \"reward earning rate from total order\": \"會員點數為訂單總價 {rate}％\",\n    \"reward event\": \"獎勵類型\",\n    \"reward event allow on sale\": \"允許特價\",\n    \"reward event allow to earn points\": \"允許獲得購物點數\",\n    \"reward event allow with promo code\": \"允許使用折扣碼\",\n    \"reward event earn\": \"點數累積設定\",\n    \"reward event earn as promo code\": \"賺取優惠代碼\",\n    \"reward event expiry\": \"到期時間\",\n    \"reward event max deduction\": \"每筆最高折抵金額\",\n    \"reward event rate per Point\": \"每點點數兌換率（每點點數換多少購物金）\",\n    \"reward event requirement\": \"獎勵最低購物金額（買多少才有購物點數）\",\n    \"reward event spend\": \"點數使用設定\",\n    \"reward event start\": \"起始時間\",\n    \"reward event status\": \"狀態\",\n    \"reward event type\": \"獎勵類型\",\n    \"reward for specific product tags\": \"特定商品標籤的獎勵\",\n    \"reward history\": \"獎勵歷史紀錄\",\n    \"reward name\": \"獎勵名稱\",\n    \"reward notification email\": \"獎勵通知信\",\n    \"reward points\": \"會員點數\",\n    \"rewardInclTotal\": \"含稅購物金\",\n    \"reward_adjustment\": \"調整\",\n    \"reward_adjustment_points\": \"調整點數\",\n    \"reward_birthday\": \"生日\",\n    \"reward_birthday_points\": \"生日點數\",\n    \"reward_current_points\": \"現有點數\",\n    \"reward_earned_points\": \"會員點數\",\n    \"reward_event_birthday\": \"生日點數\",\n    \"reward_event_order\": \"購物點數（買多少送多少點數）\",\n    \"reward_event_referral\": \"推薦點數\",\n    \"reward_event_signup\": \"註冊點數\",\n    \"reward_expire_soon\": \"即將到期\",\n    \"reward_memberLevelAdjustment\": \"會員等級調整\",\n    \"reward_no_data\": \"此期間內並無獎勵歷史紀錄\",\n    \"reward_opening\": \"期初點數\",\n    \"reward_opening_points\": \"初始點數\",\n    \"reward_order\": \"訂單\",\n    \"reward_pointsAdjustment\": \"會員點數調整\",\n    \"reward_promotion\": \"促銷\",\n    \"reward_promotion_points\": \"促銷點數\",\n    \"reward_referral\": \"推薦\",\n    \"reward_referral_points\": \"轉介點數\",\n    \"reward_return\": \"返還\",\n    \"reward_returns\": \"退貨\",\n    \"reward_signup\": \"註冊\",\n    \"reward_signup_points\": \"註冊點數\",\n    \"reward_spent_points\": \"使用點數\",\n    \"rewards\": \"獎勵\",\n    \"rewards inclusive total\": \"含稅購物金\",\n    \"rewards promotion email\": \"手動寄送獎勵通知信件\",\n    \"rewind\": \"回到開頭\",\n    \"ribbon\": \"斜角\",\n    \"rid\": \"RID\",\n    \"right\": \"右側\",\n    \"role\": \"角色\",\n    \"rotate\": \"旋轉\",\n    \"rotateIn\": \"旋入\",\n    \"row\": \"一般區塊\",\n    \"rss feeds\": \"RSS 訂閱\",\n    \"rss_description\": \"開啟Facebook 和 Google RSS訂閱\",\n    \"rss_feed_name\": \"RSS 消費者名稱\",\n    \"rss_feed_url\": \"RSS 網址\",\n    \"rubberBand\": \"橡皮筋\",\n    \"rule set\": \"規則組合\",\n    \"rules_notes\": \"你可以在這裡記錄內部規則或SOP，讓所有團隊的人做事可以有ㄧ致性以提高效率。\",\n    \"sales\": \"銷貨\",\n    \"sales consignment\": \"銷項寄賣\",\n    \"sales consignment delivery\": \"寄賣出貨單\",\n    \"sales consignment overview\": \"銷項寄賣槪要\",\n    \"sales consignment return\": \"銷項寄賣退貨單\",\n    \"sales count\": \"銷售次數\",\n    \"sales invoice\": \"出貨單\",\n    \"sales limits\": \"銷售限制數量\",\n    \"sales limits by specific dates\": \"特定日期訂單上限\",\n    \"sales limits by weekdays\": \"每日訂單上限（每週重複）\",\n    \"sales limits per day\": \"每日訂單上限\",\n    \"sales or purchases metrics\": \"交易數據篩選\",\n    \"sales order\": \"銷貨訂單\",\n    \"sales person\": \"業務人員\",\n    \"sales persons\": \"業務人員\",\n    \"sales price history\": \"售價歷史\",\n    \"sales quote\": \"報價單\",\n    \"sales report\": \"銷售報表\",\n    \"sales return\": \"銷貨折讓單\",\n    \"sales terms\": \"銷貨條件\",\n    \"sales value\": \"銷售金額\",\n    \"sales->consignments\": \"銷貨 > 寄賣\",\n    \"sales->consignments->sales-consignments\": \"銷貨 > 寄賣 > 寄賣出貨單\",\n    \"sales->consignments->sales-consignments-returns\": \"銷貨 > 寄賣 > 銷項寄賣退貨單\",\n    \"sales->doc-pending\": \"銷貨 > 未交總表\",\n    \"sales->sales-invoices\": \"銷貨 > 出貨單\",\n    \"sales->sales-orders\": \"銷貨 > 銷貨訂單\",\n    \"sales->sales-quotes\": \"銷貨 > 進貨： 報價單\",\n    \"sales->sales-returns\": \"銷貨 > 銷貨折讓單\",\n    \"sales-consignments\": \"寄賣出貨單\",\n    \"sales-consignments-returns\": \"銷項寄賣退貨單\",\n    \"sales-invoices\": \"出貨單\",\n    \"sales-orders\": \"銷貨訂單\",\n    \"sales-pending\": \"銷貨: 未交總表\",\n    \"sales-pending: display tax method\": \"銷貨未交總表: 顯示未稅或含稅\",\n    \"sales-quotes\": \"報價單\",\n    \"sales-returns\": \"銷貨折讓單\",\n    \"sales-sales-consignments\": \"銷售: 寄賣出貨單\",\n    \"sales-sales-consignments-returns\": \"銷售: 銷項寄賣退貨單\",\n    \"sales-sales-invoices\": \"銷售: 出貨單\",\n    \"sales-sales-orders\": \"銷售: 銷貨訂單\",\n    \"sales-sales-quotes\": \"銷售: 報價單\",\n    \"sales-sales-returns\": \"銷售: 銷貨折讓單\",\n    \"sales: on consignment\": \"銷售：寄賣\",\n    \"sales: on consignment qty\": \"銷售：寄賣量\",\n    \"sales_delivered_exclusive_total\": \"已出貨未稅額\",\n    \"sales_delivered_inclusive_total\": \"已出貨含稅額\",\n    \"same as date end\": \"同結束日期\",\n    \"same as drop off\": \"與包裹寄件門市相同\",\n    \"same line\": \"不分行\",\n    \"samsung pay\": \"Samsung Pay\",\n    \"samsungPay\": \"Samsung Pay\",\n    \"saturday\": \"星期六\",\n    \"saturday opening hours\": \"星期六營業時間\",\n    \"save\": \"儲存\",\n    \"save and edit shop prices\": \"儲存回到編輯本商店價格與資料\",\n    \"save and go next\": \"儲存並下一步\",\n    \"save and update next invoice number\": \"儲存更新下一個發票號碼\",\n    \"save as color template\": \"存為顏色模板\",\n    \"save as copy\": \"另存為副本\",\n    \"save as draft\": \"儲存成草稿\",\n    \"save as template\": \"儲存為模板\",\n    \"save as void\": \"儲存成作廢\",\n    \"save this search\": \"儲存搜尋\",\n    \"saved\": \"已儲存\",\n    \"scale crop\": \"鋪滿\",\n    \"schedule\": \"排程\",\n    \"schedule status\": \"活動狀態\",\n    \"scheduled\": \"排程\",\n    \"scheduled payment\": \"排程付款\",\n    \"scheduled_tasks\": \"預定任務\",\n    \"scheduled_time\": \"排程時間\",\n    \"schedules\": \"排程\",\n    \"scratch card background\": \"刮刮樂(底層)\",\n    \"scratch card background background color\": \"刮刮樂底層背景顏色\",\n    \"scratch card background image\": \"刮刮樂底層圖片\",\n    \"scratch card background text\": \"刮刮樂底層文字\",\n    \"scratch card background text color\": \"刮刮樂底層文字顏色\",\n    \"scratch card cover\": \"刮刮樂(封面)\",\n    \"scratch card cover background color\": \"刮刮樂封面背景顏色\",\n    \"scratch card cover image\": \"刮刮樂封面圖片\",\n    \"scratch card cover text\": \"刮刮樂封面文字\",\n    \"scratch card cover text color\": \"刮刮樂封面文字顏色\",\n    \"scratch card image size\": \"刮刮樂圖片尺寸\",\n    \"scratch card image size warning text\": \"如果圖片尺寸設定比例與圖片不一致，可能會導致圖片變形\",\n    \"scratch card settings\": \"刮刮樂設定\",\n    \"scratch card type\": \"類別\",\n    \"screen\": \"畫面\",\n    \"scrolling-notification\": \"橫幅滾動通知\",\n    \"seafood / meat\": \"水產/肉品\",\n    \"search\": \"搜尋\",\n    \"search bulk discounts\": \"搜尋量販折扣\",\n    \"search companies\": \"搜尋公司\",\n    \"search existing product\": \"搜尋既有商品\",\n    \"search filters\": \"搜尋篩選\",\n    \"search flows\": \"Search Flows\",\n    \"search images\": \"搜尋照片\",\n    \"search products\": \"搜尋商品\",\n    \"search reference\": \"搜尋參照編號\",\n    \"search results\": \"搜尋結果\",\n    \"search reward name\": \"搜尋獎勵名稱\",\n    \"search shipping zones\": \"搜尋運費規則\",\n    \"select\": \"選擇\",\n    \"select a preset website theme\": \"選擇預設網站主題顏色\",\n    \"select all\": \"全選\",\n    \"select all main island\": \"選取所有本島地區\",\n    \"select all outlying\": \"選取所有離島地區\",\n    \"select animation\": \"選擇動畫\",\n    \"select blogs\": \"選擇博客\",\n    \"select company\": \"選擇公司\",\n    \"select dispatch date\": \"選擇出貨日\",\n    \"select dispatch or arrival date\": \"設定預計出貨日或預計到貨日\",\n    \"select einvoice printer terminal\": \"選擇電子發票印表機主機\",\n    \"select element\": \"選取元素\",\n    \"select image\": \"選擇圖片\",\n    \"select images\": \"選擇\",\n    \"select iteration count\": \"選擇迴圈次數\",\n    \"select news\": \"選擇新聞\",\n    \"select periods\": \"選擇期間\",\n    \"select product\": \"選取商品\",\n    \"select reward program first\": \"先選取獎勵計劃\",\n    \"select specific dates\": \"選擇排除日期\",\n    \"select stage\": \"選擇階段\",\n    \"select store closed day\": \"選擇店休日（結帳頁日曆顯示反灰，即顧客不可選取日期\",\n    \"select workflow\": \"選擇工作流程\",\n    \"selectable\": \"可選\",\n    \"selected campaigns review\": \"已選審查流程\",\n    \"selected items\": \"已選擇\",\n    \"selected orders\": \"已選擇的訂單\",\n    \"selling exclusive price\": \"銷貨未稅價\",\n    \"selling inclusive price\": \"銷貨含稅價\",\n    \"send\": \"發送\",\n    \"send a copy of email to addresses\": \"電子郵件的副本發送地址\",\n    \"send a copy of order email to addresses\": \"電子郵件的副本發送地址\",\n    \"send a copy of order messages to addresses\": \"訂單留言電子郵件的副本發送地址\",\n    \"send all dispatched emails\": \"發送所有出貨通知信\",\n    \"send all emails\": \"發送所有電子郵件\",\n    \"send birthday reward\": \"寄送生日獎勵\",\n    \"send birthday rewards manually\": \"手動寄送生日獎勵\",\n    \"send dispatched email\": \"發送已出貨通知信\",\n    \"send document\": \"發送電子郵件\",\n    \"send email\": \"寄送電子郵件\",\n    \"send email message\": \"寄送電子郵件\",\n    \"send email to customer\": \"寄給顧客(需要顧客信箱)\",\n    \"send emails\": \"寄送電子郵件\",\n    \"send emails when successful\": \"成功送出問答或表單時寄送電子郵件\",\n    \"send from website\": \"寄送網站\",\n    \"send how many times?\": \"Send how many times?\",\n    \"send payment reminder when overdue by\": \"逾期幾日後發送付款提醒信\",\n    \"send pickup reminder on these days after ready for pickup\": \"於取貨通知後第幾天發送取貨提醒\",\n    \"send reminder when the package is ready for pickup in seven eleven\": \"Send reminder when the package is ready for pickup in seven eleven\",\n    \"send reward\": \"發送獎勵\",\n    \"send reward manually\": \"手動寄送獎勵\",\n    \"send test email\": \"寄送測試電子郵件\",\n    \"send void email\": \"發送已取消通知信\",\n    \"sender address\": \"寄件人地址\",\n    \"sender company\": \"寄件人公司\",\n    \"sender name\": \"寄件人姓名\",\n    \"sender telephone\": \"寄件人電話\",\n    \"sender_address\": \"集貨地址\",\n    \"sent_member_level_adjustment\": \"已送出：會員等級調整\",\n    \"sent_valid_points_adjustment\": \"已送出：會員點數調整\",\n    \"seo\": \"SEO\",\n    \"seo-settings\": \"SEO 設定\",\n    \"separate each keyword using comma\": \"使用逗號分每個關鍵字\",\n    \"separate line\": \"上下分行(電腦版限定)\",\n    \"separator\": \"分隔符\",\n    \"server logs\": \"伺服器紀錄(Server Logs)\",\n    \"session expired due to inactivity\": \"憑證已過期，請重新登錄\",\n    \"set as default\": \"設為預設\",\n    \"set as default business\": \"設為預設公司\",\n    \"set as default for\": \"設為預設\",\n    \"set as shop default\": \"設為商店預設\",\n    \"set commission amount\": \"設定抽成總額\",\n    \"set commission base cost\": \"設定抽成底價\",\n    \"set default\": \"設為預設值\",\n    \"set link\": \"新增連結\",\n    \"set member level\": \"設定會員等級\",\n    \"set member level by value\": \"依金額設定會員等級\",\n    \"set number of days\": \"指定可選取天數\",\n    \"set period\": \"選擇期間\",\n    \"set price\": \"設定價格\",\n    \"set price on bundle\": \"設總價\",\n    \"set prices later\": \"現不要設定價格\",\n    \"set prices now\": \"立即設定價格\",\n    \"set schedules\": \"點擊設定\",\n    \"set shipping zones\": \"設定運費規則\",\n    \"set shop default shipping zones\": \"設定商店預設運費規則\",\n    \"set today as the first day\": \"日曆起算日包含當日\",\n    \"setType_\": \"一般商品\",\n    \"setType_hasVariants\": \"多規格商品\",\n    \"setType_isSet\": \"組合商品\",\n    \"setType_isSetWithChoices\": \"任選商品\",\n    \"setType_isVariantChild\": \"商品變體子項\",\n    \"setTypes\": \"組合種類\",\n    \"set_price_confirmation\": \"您確定要使用 {price} 作為當前項目的價錢?\",\n    \"settings\": \"設定\",\n    \"settings_documents\": \"出貨、銷售及進貨\",\n    \"settings_invoices\": \"電子發票\",\n    \"settings_payments\": \"金流\",\n    \"settings_shipping\": \"物流\",\n    \"settings_social\": \"行銷追蹤及社群連結\",\n    \"settings_style\": \"風格\",\n    \"setup guides\": \"快速建立指南\",\n    \"seven eleven pickup reminder\": \"7-11取貨提醒\",\n    \"seven-eleven\": \"7-11\",\n    \"seven-eleven contact\": \"7-11 聯絡資料\",\n    \"seven-eleven credentials\": \"7-11憑證\",\n    \"seven-eleven pay on checkout\": \"結帳付款\",\n    \"seven-eleven pay on checkout print password\": \"7-11 結帳付款列印密碼\",\n    \"seven-eleven pay on checkout shop id\": \"7-11 結帳付款商店 IＤ\",\n    \"seven-eleven pay on checkout sub shop id\": \"7-11 結帳付款子商店 IＤ\",\n    \"seven-eleven pay on pickup\": \"取貨付款\",\n    \"seven-eleven pay on pickup print password\": \"7-11 取貨付款列印密碼\",\n    \"seven-eleven pay on pickup shop id\": \"7-11 取貨付款商店 IＤ\",\n    \"seven-eleven pay on pickup sub shop id\": \"7-11 取貨付款子商店 IＤ\",\n    \"seven-eleven payment on pickup\": \"7-11 取貨付款廠商編號\",\n    \"seven-eleven pickup\": \"7-11 取貨不付款廠商編號\",\n    \"seven-eleven pickup frozen\": \"7-11 Pickup Frozen\",\n    \"seven-eleven pickup frozen print password\": \"7-11 Pickup Frozen Print password\",\n    \"seven-eleven pickup frozen shop id\": \"7-11 Pickup Frozen Shop Id\",\n    \"seven-eleven pickup frozen sub shop id\": \"7-11 Pickup Frozen Sub Shop Id\",\n    \"seven-eleven pickup print password\": \"7-11 取貨不付款廠列印密碼\",\n    \"seven-eleven pickup shop id\": \"7-11 取貨不付款廠商店 IＤ\",\n    \"seven-eleven pickup sub shop id\": \"7-11 取貨不付款廠子商店 IＤ\",\n    \"seven-eleven print password\": \"列印密碼\",\n    \"seven-eleven return store description\": \"您可指定退件包裹送達門市，若未填則預設為包裹寄件門市\",\n    \"seven-eleven sftp\": \"7-11 SFTP\",\n    \"seven-eleven sftp frozen\": \"7-11 SFTP 冷凍\",\n    \"seven-eleven sftp frozen password\": \"7-11 SFTP 冷凍 密碼\",\n    \"seven-eleven sftp frozen username\": \"7-11 SFTP 冷凍 使用者名稱\",\n    \"seven-eleven sftp password\": \"7-11 SFTP 密碼\",\n    \"seven-eleven sftp username\": \"7-11 SFTP 使用者名稱\",\n    \"seven-eleven shop id\": \"商店 IＤ\",\n    \"seven-eleven sub shop id\": \"子商店 IＤ\",\n    \"seven-eleven waybill\": \"7-11 托運單\",\n    \"seven-eleven: out of service\": \"7-11目前系統發生問題，請稍後再試。\",\n    \"sevenEleven\": \"7-11\",\n    \"shakeX\": \"水平搖晃\",\n    \"shakeY\": \"垂直搖晃\",\n    \"share\": \"分享\",\n    \"share link\": \"分享連結\",\n    \"shipWithCartItems\": \"贈品隨貨寄出，不拆送\",\n    \"shipped\": \"已發送\",\n    \"shipping\": \"運輸\",\n    \"shipping and returns policy\": \"退換貨政策\",\n    \"shipping days\": \"預估配送時間(預設為1，若您選擇結帳頁顯示預計出貨日，此設定為email發送出貨通知時計算預估到貨時間用)\",\n    \"shipping default payment method\": \"預設付款方式\",\n    \"shipping fee\": \"運費\",\n    \"shipping fee adjustment\": \"運費調整\",\n    \"shipping fee type\": \"運費種類\",\n    \"shipping fee using zones\": \"地區運費\",\n    \"shipping locations\": \"配送區域\",\n    \"shipping payment method\": \"付款方式\",\n    \"shipping rate\": \"運費費率\",\n    \"shipping rate method\": \"多條件運費模式設定\",\n    \"shipping rates\": \"運費費率\",\n    \"shipping rates warning\": \"運費不正確\",\n    \"shipping settings\": \"配送設定\",\n    \"shipping type\": \"運送類型\",\n    \"shipping zone\": \"運費規則\",\n    \"shipping zone details\": \"運費規則細節\",\n    \"shipping zones\": \"運費規則\",\n    \"shipping zones according to selected cart items\": \"依據購物車品項劃分運費規則\",\n    \"shipping-settings\": \"配送設定\",\n    \"shippingStatus_addressChangeRequired\": \"需要更改地址\",\n    \"shippingStatus_attentionRequired\": \"需要手動處理\",\n    \"shippingStatus_awaitingDispatch\": \"等待出貨\",\n    \"shippingStatus_cancelled\": \"已取消\",\n    \"shippingStatus_completed\": \"已完成\",\n    \"shippingStatus_delivered\": \"已送達\",\n    \"shippingStatus_exception\": \"異常\",\n    \"shippingStatus_noWaybill\": \"未產生托運單\",\n    \"shippingStatus_outForDelivery\": \"配送中\",\n    \"shippingStatus_readyForPickupAtDestination\": \"已在目的地\",\n    \"shippingStatus_readyForPickupAtReturnDestination\": \"已在退貨目的地\",\n    \"shippingStatus_shipped\": \"已發送\",\n    \"shippingStatus_toReturn\": \"已準備退貨\",\n    \"shippingStatus_waybillCreated\": \"托運單已成立\",\n    \"shipping_convenience_store\": \"超商運費\",\n    \"shipping_lalamove\": \"Lalamove\",\n    \"shipping_multiple\": \"額外運費\",\n    \"shipping_single\": \"運送區域\",\n    \"shop\": \"商店\",\n    \"shop checkout note character limit\": \"商店結帳備註字數限制\",\n    \"shop filters\": \"商店篩選\",\n    \"shop lists\": \"商店清單\",\n    \"shop name\": \"商店名稱\",\n    \"shop not found\": \"找不到商店\",\n    \"shop or dispatch status is empty!\": \"商店狀態或出貨狀態未設定！\",\n    \"shop or website\": \"商店或官網\",\n    \"shop review\": \"商店總審查\",\n    \"shop settings\": \"商店設定\",\n    \"shop url\": \"商店網址\",\n    \"shop url (at least 6 characters)\": \"商店網址 (至少6個字符)\",\n    \"shop url prefix\": \"商店網址開頭\",\n    \"shop->campaigns\": \"商店 > 活動\",\n    \"shop->customer service\": \"商店 > 客服\",\n    \"shop->promo codes\": \"商店 > 優惠代碼\",\n    \"shop->rewards\": \"商店 > 獎勵\",\n    \"shop->shipping zones\": \"商店 > 運費規則\",\n    \"shop->web\": \"商店 > 官網\",\n    \"shop.com\": \"Shop.com (美安)\",\n    \"shop.com characters limit\": \"Shop.com (美安) 字數限制: \",\n    \"shop.com instruction\": \"只有在與美安(Shop.com)簽訂合作並取得 Offer_ID 和 Advertiser_ID 後才可啟用此功能\",\n    \"shopDisplaySettings\": \"商店顯示設定\",\n    \"shopDotComCommission\": \"Shop.com(美安) 佣金\",\n    \"shop_dot_com_notyetsent\": \"尚未傳送\",\n    \"shop_dot_com_successful\": \"成功傳送\",\n    \"shop_dot_com_unsuccessful\": \"傳送失敗\",\n    \"shop_products_overview_style_condensed\": \"已壓縮\",\n    \"shop_products_overview_style_full\": \"原圖\",\n    \"shop_status_expiredHaveCommissionData\": \"已結團 - 已算抽成\",\n    \"shop_status_expiredNoCommissionData\": \"已結團\",\n    \"shop_status_inProgress\": \"進行中\",\n    \"shop_status_linked_all\": \"已連結活動: 全部\",\n    \"shop_status_linked_out_of_sync\": \"已連結活動: 未同步\",\n    \"shop_status_noDate\": \"進行中 - 長期開啟\",\n    \"shop_status_upcoming\": \"未開團\",\n    \"shopping is disallowed\": \"禁止購物\",\n    \"shops\": \"商店\",\n    \"short description\": \"摘要\",\n    \"should be unique values\": \"數值重複\",\n    \"show activity tab in guest view\": \"在報顯示所有訂單紀錄\",\n    \"show advanced CSS settings\": \"顯示進階CSS設定\",\n    \"show advanced search by default\": \"出貨管理: 預設顯示進階篩選\",\n    \"show after grouped\": \"顯示合併後\",\n    \"show aging in statements\": \"在對帳表顯示帳齡表\",\n    \"show all\": \"顯示所有\",\n    \"show all customization prices (including 0)\": \"顯示所有客製價格（包含0元）\",\n    \"show almost empty qty warning for products\": \"顯示商品即將售完訊息\",\n    \"show arrows\": \"顯示箭頭\",\n    \"show available quantity\": \"顯示剩餘數量\",\n    \"show back to shopping button\": \"顯示「繼續選購」按鈕\",\n    \"show barcode for non-shop documents\": \"在非商店訂單的出貨單顯示條碼\",\n    \"show barcode for shop documents\": \"在商店訂單的出貨單顯示條碼\",\n    \"show barcode number for non-shop documents\": \"非商店訂單\",\n    \"show barcode number for shop documents\": \"商店訂單\",\n    \"show barcode number on delivery notes\": \"出貨單顯示條碼號碼\",\n    \"show barcode on delivery notes\": \"出貨單顯示條碼\",\n    \"show barcode with number\": \"顯示國際條碼及號碼\",\n    \"show bot\": \"顯示機器人\",\n    \"show campaign header\": \"顯示活動頁首\",\n    \"show commissions tab in guests view\": \"在報表公開抽成頁面\",\n    \"show contents\": \"顯示內容\",\n    \"show countdown timer\": \"顯示倒數計時器\",\n    \"show data for campaign period only\": \"只顯示活動期間的資料\",\n    \"show date on delivery notes\": \"出貨單顯示日期\",\n    \"show description\": \"顯示敘述\",\n    \"show descriptions\": \"顯示敘述\",\n    \"show discounted price vs original price\": \"顯示折扣價格與原始價格\",\n    \"show dispatch date on delivery notes\": \"出貨單顯示出貨日期\",\n    \"show dots\": \"顯示圓點\",\n    \"show estimated delivery date\": \"顯示預計送達日期\",\n    \"show faqs on footer\": \"在頁尾顯示常見問題\",\n    \"show form on checkout\": \"結帳時顯示表單\",\n    \"show full rows\": \"顯示完整列\",\n    \"show grouped documents from different shops\": \"顯示不同商店來源的已合併單據\",\n    \"show grouped documents into one\": \"將已合併單據顯示為單一單據\",\n    \"show images\": \"顯示商品圖片\",\n    \"show images when viewing documents\": \"在單據顯示商品圖片\",\n    \"show imported waybills only\": \"顯示匯入托運單\",\n    \"show item code\": \"在商品頁面顯示商品編碼\",\n    \"show label \\\"more\\\" on product\": \"顯示「...更多...」\",\n    \"show label more\": \"顯示「...更多...」\",\n    \"show layer manager\": \"顯示圖層管理器\",\n    \"show less\": \"檢視更少\",\n    \"show limited qty\": \"顯示限制數量\",\n    \"show limits\": \"顯示限制數量\",\n    \"show logo on menu\": \"在主選單顯示Logo\",\n    \"show more\": \"檢視更多\",\n    \"show number of lines for description\": \"顯示描述行數\",\n    \"show number only\": \"僅顯示號碼\",\n    \"show on sale tag\": \"顯示特價中標籤\",\n    \"show one blog per slide on mobile\": \"在手機上每頁只顯示一篇文章\",\n    \"show original price\": \"顯示原價\",\n    \"show page settings\": \"頁面顯示設定\",\n    \"show payment method\": \"顯示付款方式\",\n    \"show payouts details\": \"顯示支出細節\",\n    \"show prices\": \"顯示價格\",\n    \"show print modal after import\": \"匯入後開啟列印視窗\",\n    \"show product code\": \"顯示編碼\",\n    \"show product code below items\": \"在商品下方顯示編碼\",\n    \"show product code next to items\": \"在商品旁顯示編碼\",\n    \"show product description\": \"顯示商品商品摘要\",\n    \"show product info\": \"顯示商品資料\",\n    \"show product set with choices\": \"顯示任選商品主要名稱(原品名)\",\n    \"show quantity and totals after returns\": \"顯示折讓單後的數量和總計\",\n    \"show quick nav\": \"顯示快速結帳按鈕(右下角)\",\n    \"show returns\": \"顯示折讓\",\n    \"show returns underneath\": \"下方顯示折讓單\",\n    \"show revenue by activity\": \"依瀏覽顯示營收\",\n    \"show revenue by channel and shop\": \"依通路和商店顯示營收\",\n    \"show revenue by contact\": \"依聯絡人顯示營收\",\n    \"show revenue by payment method\": \"依付款方式顯示營收\",\n    \"show revenue by payment method and promo code\": \"依付款方式及折扣碼顯示營收\",\n    \"show revenue by product\": \"依商品顯示營收\",\n    \"show revenue by shop\": \"依商店顯示營收\",\n    \"show sales quantity\": \"顯示銷售數量\",\n    \"show section for receiver to sign when printing sales invoices\": \"列印出貨單時顯示收件人簽名區\",\n    \"show senders name when printing other documents\": \"列印其他單據時顯示寄件人姓名 (報價單、銷貨訂單...等)\",\n    \"show senders name when printing sales invoices\": \"列印出貨單時顯示寄件人姓名\",\n    \"show set details on export tables\": \"在匯出表上顯示組合詳細資料\",\n    \"show shipping options on dispatching\": \"顯示運輸方式\",\n    \"show shipping waybills on dispatching\": \"顯示付款方式\",\n    \"show shop.com commission\": \"顯示 Shop.com(美安) 佣金\",\n    \"show style manager\": \"顯示樣式管理器\",\n    \"show tags on filter\": \"在篩選清單顯示標籤\",\n    \"show tags on page\": \"在頁面顯示標籤\",\n    \"show tax number on delivery notes\": \"出貨單顯示統一編號\",\n    \"show telephone number on delivery notes\": \"出貨單顯示電話號碼\",\n    \"show total due\": \"顯示最低應繳總額\",\n    \"show total due when printing contact statements\": \"列印對帳表時顯示最低應繳總額\",\n    \"show total quantity when printing sales invoices\": \"列印出貨單時顯示總數量\",\n    \"show unit\": \"顯示單位\",\n    \"show unit below items\": \"在商品下方顯示單位\",\n    \"show unit next to items\": \"在商品旁顯示單位\",\n    \"show units\": \"顯示單位\",\n    \"show website name on menu\": \"在主選單顯示官網名稱\",\n    \"sigint\": \"重新啟動\",\n    \"sign up\": \"註冊\",\n    \"signature\": \"簽名\",\n    \"signup\": \"註冊\",\n    \"signup reward email\": \"註冊會員獎勵通知信\",\n    \"simple\": \"單一\",\n    \"simpleEditor_blocks\": \"區塊\",\n    \"single delivery date\": \"單次出貨日期\",\n    \"single discount\": \"單一折扣\",\n    \"single discount rate\": \"單一折扣率\",\n    \"single time purchase\": \"單次購買\",\n    \"single_month\": \"1個月\",\n    \"sinopac\": \"SinoPac\",\n    \"size\": \"尺寸\",\n    \"skip\": \"略過\",\n    \"skip weekends\": \"跳過週末（週六/週日）\",\n    \"slide\": \"輪播頁\",\n    \"slideInDown\": \"向下滑入\",\n    \"slideInUp\": \"向上滑入\",\n    \"slider\": \"輪播圖\",\n    \"slider active buttons color\": \"輪播按鈕活躍色\",\n    \"slider buttons color\": \"輪播按鈕顏色\",\n    \"slider frame\": \"所有輪播頁外框\",\n    \"slider images with text and button\": \"輪播：圖文\",\n    \"slider with text and button\": \"輪播：圖文和按鈕\",\n    \"slider with text left\": \"輪播：文字在左\",\n    \"slider with text right\": \"輪播：文字在右\",\n    \"slider_dots\": \"圓點\",\n    \"slider_lines\": \"線條\",\n    \"slides\": \"所有輪播頁\",\n    \"slides spacing\": \"圖片間距\",\n    \"slides to scroll\": \"捲動張數\",\n    \"slides to show\": \"顯示張數\",\n    \"slow\": \"慢\",\n    \"small\": \"小\",\n    \"smaller\": \"縮小\",\n    \"social links\": \"社群媒體連結\",\n    \"social-media\": \"社群媒體\",\n    \"sold out\": \"已售完\",\n    \"soldOut\": \"已售完\",\n    \"some\": \"部分\",\n    \"some documents could not be moved\": \"{count} 筆單據無法移動：{refs}\",\n    \"some items have incorrect shipping zones\": \"有些商品的運費規則不正確\",\n    \"sort by\": \"排序方式\",\n    \"sort customer order using shop product index\": \"依照商品上架順序排序顧客訂單\",\n    \"sort detail row by campaign detail index\": \"依照商品上架順序排序\",\n    \"sort direction\": \"排序方向\",\n    \"spacing settings\": \"間距設定\",\n    \"spec\": \"規格\",\n    \"spec_detail\": \"規格詳情\",\n    \"spec_name\": \"規格名稱\",\n    \"specialty and local good\": \"名特產\",\n    \"specify first and last date\": \"指定開始及結束日期\",\n    \"specs\": \"規格\",\n    \"spend reward points\": \"套用會員點數\",\n    \"split\": \"拆單\",\n    \"split from\": \"拆單自\",\n    \"split from original\": \"拆單自原始單據\",\n    \"split qty\": \"拆單數量\",\n    \"split_document\": \"拆單\",\n    \"split_shipping\": \"拆單\",\n    \"stage\": \"階段\",\n    \"stages\": \"階段\",\n    \"standard printer\": \"一般印表機\",\n    \"starred\": \"書籤\",\n    \"start\": \"從\",\n    \"start date\": \"起始日期\",\n    \"start from\": \"從\",\n    \"start time\": \"開始時間\",\n    \"startup\": \"啟動\",\n    \"statement\": \"對帳表\",\n    \"statement count\": \"Statement Count\",\n    \"statements\": \"對帳表\",\n    \"statements settings\": \"對帳表設定\",\n    \"stats for campaign\": \"活動數據\",\n    \"stats for month\": \"本月\",\n    \"stats for year\": \"本年\",\n    \"status\": \"狀態\",\n    \"status change date\": \"狀態變更時間\",\n    \"status for when over sales limited qty\": \"當已售出數量超過限制銷售數量狀態\",\n    \"status will be applied to all schedules for current bulk discount\": \"將會套用至當前量販折扣的所有排程\",\n    \"stay on old\": \"留在舊版\",\n    \"step\": \"步驟\",\n    \"stereotyped contract content\": \"定型化契約內容\",\n    \"sticky top\": \"置頂\",\n    \"store location\": \"實體通路\",\n    \"store location address\": \"地址\",\n    \"store location pick up\": \"實體通路取貨\",\n    \"store location settings\": \"實體通路設定\",\n    \"store locations\": \"實體通路\",\n    \"store-location\": \"實體通路\",\n    \"storeAddress\": \"商店地址\",\n    \"storeId\": \"商店ID\",\n    \"storeName\": \"商店名\",\n    \"stories\": \"類限動\",\n    \"story\": \"Story\",\n    \"street\": \"街道名\",\n    \"string\": {\n      \"max\": \"\\\"{value}\\\" 最大字數 {limit}\",\n      \"min\": \"\\\"{value}\\\" 最小字數 {limit}\",\n      \"pattern\": {\n        \"name\": \"\\\"{value}\\\" 不是有效的數字\"\n      }\n    },\n    \"structure\": \"結構\",\n    \"style settings\": \"風格設定\",\n    \"sub account number\": \"次要帳戶\",\n    \"sub page\": \"子頁面\",\n    \"subject\": \"主旨\",\n    \"submit\": \"確定送出\",\n    \"submit hct summary\": \"上傳新竹物流總表\",\n    \"subscribe to newsletter\": \"訂閱電子報\",\n    \"subtitle\": \"副標題\",\n    \"subtotal\": \"小計\",\n    \"success order description\": \"自訂訂單成功頁面訊息\",\n    \"successful\": \"成功\",\n    \"suggested\": \"建議\",\n    \"sunday\": \"星期日\",\n    \"sunday opening hours\": \"星期日營業時間\",\n    \"sunny Bank\": \"Sunny Bank\",\n    \"super\": \"超級用戶\",\n    \"supplier\": \"供應商\",\n    \"supplier account\": \"供應商帳號\",\n    \"supplier activity\": \"供應商歷史\",\n    \"supplier fulfillment method\": \"供應商配送方式\",\n    \"supplier information\": \"供應商資料\",\n    \"supplier link\": \"供應商連結\",\n    \"supplier payment method\": \"進貨付款方式\",\n    \"supplier payment terms\": \"進貨付款條件\",\n    \"supplier portal\": \"供應商報表入口\",\n    \"supplier portal code (minimum 8 characters)\": \"供應商入口代碼 (最少 8 個字元)\",\n    \"supplier portal email\": \"供應商入口電子信箱\",\n    \"supplier portal login email\": \"供應商入口登入電子郵件\",\n    \"supplier portal login expiration date (optional)\": \"供應商入口登入到期日 (選填)\",\n    \"supplier portal password (minimum 8 characters)\": \"供應商入口密碼 (最少 8 個字元)\",\n    \"supplier reconciliations\": \"供應商對帳表\",\n    \"supplier_portal_credentials_for\": \"供應商入口網站登入資訊 {company}\",\n    \"surcharge\": \"附加費用\",\n    \"surcharge type\": \"附加費用類型\",\n    \"surcharge_floor\": \"下限\",\n    \"suspended\": \"暫停\",\n    \"swing\": \"搖擺\",\n    \"sync campaigns\": \"將主活動同步至所有子活動\",\n    \"sync date\": \"同步日期\",\n    \"sync limit qty with inventory\": \"共用商品庫存量\",\n    \"sync master to all children\": \"將主活動同步至所有子活動\",\n    \"sync product properties\": \"同步商品內容\",\n    \"system generated\": \"系統產生\",\n    \"systemlead\": \"e首發票\",\n    \"systemlead_companyId\": \"公司ID\",\n    \"systemlead_remind\": \"低於一定數量時通知\",\n    \"systemlead_remindCount\": \"當字軌配號低於一定數量時發送通知\",\n    \"systemlead_salt\": \"Salt\",\n    \"systemlead_showZeroValueItems\": \"在電子發票顯示0元商品\",\n    \"t-cat\": \"黑貓宅急便\",\n    \"t-cat contact\": \"黑貓聯絡人\",\n    \"t-cat credentials\": \"黑貓宅急便憑證\",\n    \"t-cat custom product name\": \"自訂黑貓托運單顯示品名\",\n    \"t-cat default package size\": \"黑貓預設包裹尺寸\",\n    \"t-cat default product type\": \"黑貓預設商品類型\",\n    \"t-cat default thermosphere\": \"黑貓預設配送溫層\",\n    \"t-cat delivery time\": \"黑貓配送時間\",\n    \"t-cat id\": \"黑貓代號\",\n    \"t-cat package size\": \"黑貓包裹尺寸\",\n    \"t-cat print type\": \"黑貓列印托運單類別\",\n    \"t-cat temperature\": \"黑貓配送溫層\",\n    \"t-cat thermosphere\": \"黑貓配送溫層\",\n    \"t-cat token\": \"黑貓安全權杖\",\n    \"t-cat use custom product name\": \"自訂黑貓托運單顯示品名\",\n    \"t-cat waybill\": \"黑貓托運單\",\n    \"tab\": \"頁籤按鈕\",\n    \"tab container\": \"頁籤按鈕層\",\n    \"tab content\": \"頁籤內容\",\n    \"tab contents\": \"頁籤內容層\",\n    \"tab name\": \"頁籤\",\n    \"table lookup\": \"自定義\",\n    \"tablet\": \"平板\",\n    \"tabs\": \"頁籤\",\n    \"tada\": \"搭啦!\",\n    \"tag\": \"標籤\",\n    \"tags\": \"標籤\",\n    \"tags_filters_sort\": \"標籤分類排序\",\n    \"taishin\": \"TaiShin\",\n    \"taiwan cooperative bank\": \"Taiwan Cooperative Bank\",\n    \"taiwan percentage\": \"台灣折數百分比\",\n    \"tap the right side to skip\": \"點擊圖片右邊到下一頁\",\n    \"tapPay\": \"Tap Pay\",\n    \"tapPay_3ds\": \"3D驗證\",\n    \"tapPay_isBig5\": \"僅允許 Big5\",\n    \"tapPay_merchant_id\": \"商家編號\",\n    \"tapPay_partner_key\": \"Partner Key\",\n    \"task\": \"任務\",\n    \"tax\": \"稅\",\n    \"tax %\": \"稅 %\",\n    \"tax after discount\": \"折扣後稅\",\n    \"tax allowed\": \"允許稅率\",\n    \"tax exclusive\": \"未稅\",\n    \"tax inclusive\": \"含稅\",\n    \"tax method\": \"計稅方式\",\n    \"tax number\": \"統編\",\n    \"tax on purchases\": \"進貨稅\",\n    \"tax on sales\": \"銷貨稅\",\n    \"tax rate\": \"稅率\",\n    \"tax settings\": \"稅金設定\",\n    \"tax total\": \"稅總計\",\n    \"tax_auto\": \"自動\",\n    \"tax_companyName\": \"公司抬頭\",\n    \"tax_exclusive\": \"未稅\",\n    \"tax_inclusive\": \"含稅\",\n    \"tax_none\": \"無\",\n    \"taxes\": \"稅\",\n    \"tcat_sender_address\": \"速達前往集貨地址\",\n    \"tel\": \"電話\",\n    \"telephone\": \"電話\",\n    \"template\": \"內文\",\n    \"templates\": \"內文\",\n    \"terms\": \"交易條件\",\n    \"test code field is only for test purposes. it must be empty in production\": \"Test Code 只能在測試環境填入，正式上線時須保持空白\",\n    \"test user\": \"Test user\",\n    \"text\": \"文字\",\n    \"text-and-image-split-one\": \"文字和圖-3\",\n    \"text-block\": \"標題及文字\",\n    \"text-block-with-subtitle\": \"標題與副標題標題與副標題\",\n    \"text-on-image-one\": \"文字和圖-1\",\n    \"text-on-image-two\": \"文字和圖-2\",\n    \"text_content\": \"內文\",\n    \"the company name, {companyName}, does not match the company name for the tax number. Do you want to use {taxNumberCompanyName}?\": \"公司名稱 「{companyName}」與統編公司名稱不符，您要使用 「{taxNumberCompanyName}」 嗎？\",\n    \"the current product is still a draft. The product schedule will not work.\": \"The current product is still a draft. The product schedule will not work.\",\n    \"the expiry date cannot be less than\": \"到期日期不能小於{date}天\",\n    \"the expiry date cannot be more than\": \"到期日期不能超過{date}天\",\n    \"the payment could not be sent, try again\": \"付款未能送出，請再嘗試一次\",\n    \"the system will schedule a refund after voiding the order\": \"訂單作廢後，系統將排程退刷。\",\n    \"themeGeneralLetterSpacing\": \"總體文字間隔\",\n    \"themeHeaderH1LetterSpacing\": \"H1標題文字間隔\",\n    \"themeHeaderH2LetterSpacing\": \"H2標題文字間隔\",\n    \"themeHeaderH3LetterSpacing\": \"H3標題文字間隔\",\n    \"themeHeaderH4LetterSpacing\": \"H4標題文字間隔\",\n    \"themeHeaderH5LetterSpacing\": \"H5標題文字間隔\",\n    \"themeHeaderH6LetterSpacing\": \"H6標題文字間隔\",\n    \"themeNavTreeItemMarginX\": \"主選單子元素水平方向外距\",\n    \"themeNavTreeItemPaddingX\": \"主選單子元素水平方向內距\",\n    \"themes\": \"設定\",\n    \"there will always be a single instance of this block at the top of the page\": \"此類限動區塊，每個頁面只能新增一個\",\n    \"thermal\": \"熱轉印宅配\",\n    \"thermal printer\": \"熱感印表機\",\n    \"thermal_show_product_code\": \"熱感應印刷: 顯示編碼\",\n    \"thermal_show_units\": \"熱感應印刷: 顯示單位\",\n    \"this block can only be used once per page\": \"此類限動區塊，每個頁面只能新增一個\",\n    \"this bulk discount method is outdated\": \"此量販折扣方法已過時。您可以繼續使用它，但我們建議切換到最新版本。\",\n    \"this campaign detail is currently not online because it is out of sync. please update the product and make sure there is nothing wrong\": \"此商品目前未在此商店中販售。請確認價格並儲存，以重新加入商店。\",\n    \"this comment will be public\": \"該留言將顯示在顧客頁面\",\n    \"this image exceeds max dimensions\": \"圖片超過最大尺寸\",\n    \"this is the legacy way to share shop reports. please use the new way\": \"舊版分享商店報表方式，請使用新版功能！\",\n    \"this is the new way to share shop reports\": \"新版分享商店報表功能，只要提供合作夥伴連結，對方即可註冊登入查看商店報表。\",\n    \"this may already have been dispatched on a previous day- are you sure you want to change its dispatch status\": \"這可能已經在前一天出貨了。您確定要更改出貨狀態嗎？\",\n    \"this month\": \"本月\",\n    \"this product exists in documents/campaigns! the products will be set as inactive instead\": \"已有銷售紀錄無法執行刪除，所有商店將同步改為無效狀態\",\n    \"this product set is outdated\": \"這個組合商品已經過期\",\n    \"this product set is outdated, click here to change it to the new type (set item prices individually)\": \"這個組合商品已經過期，請點擊這裡以更新資訊（分別設定各項商品價格\",\n    \"this row contains invoices with partial returns and/or returns without linked invoice\": \"此行包含部分折讓的商品，或是折讓單裡手動輸入的名稱\",\n    \"this status will override all schedule statuses\": \"此狀態將覆蓋所有排程狀態\",\n    \"this window\": \"本視窗\",\n    \"thread\": \"Thread\",\n    \"three per page\": \"A4三模宅配\",\n    \"threeByFour\": \"3x4\",\n    \"threeByOne\": \"3x1\",\n    \"threeByTwo\": \"3x2\",\n    \"threeToFiveDays\": \"3-5天\",\n    \"three_months\": \"3個月\",\n    \"threw an error when running default method\": \"輸入錯誤\",\n    \"thursday\": \"星期四\",\n    \"thursday opening hours\": \"星期四營業時間\",\n    \"ticketing_dispatch_warning_non_virtual\": \"結帳時，票券「不會」自動設為「已出貨」。\",\n    \"ticketing_dispatch_warning_virtual\": \"結帳時，票券「會」自動設為「已出貨」。\",\n    \"tickets\": \"票券\",\n    \"tickets_group\": \"票券\",\n    \"tiktok\": \"TikTok\",\n    \"time\": \"時間\",\n    \"times per order\": \"每筆訂單次數上限\",\n    \"title\": \"標題\",\n    \"title color\": \"標題顏色\",\n    \"title font\": \"標題字體\",\n    \"title size\": \"標題大小\",\n    \"title style\": \"標題樣式\",\n    \"to\": \"收方\",\n    \"to change please check allow seo settings on website\": \"如要更改，請至官網設定\",\n    \"to issue e-invoices\": \"可開立\",\n    \"to print\": \"列印\",\n    \"to send\": \"可送出\",\n    \"to send birthday\": \"寄送生日獎勵\",\n    \"to send promotion\": \"寄送促銷獎勵\",\n    \"today\": \"今日\",\n    \"toggle off all override\": \"所有商品皆不共用\",\n    \"toggles_no\": \"沒有\",\n    \"toggles_yes\": \"有\",\n    \"too long\": \"太長\",\n    \"top\": \"上方\",\n    \"top and bottom margin\": \"上下外距\",\n    \"top-down-one\": \"文字和圖-4\",\n    \"total\": \"總計\",\n    \"total active contacts\": \"全部活躍的聯絡人\",\n    \"total adjustment\": \"總調整\",\n    \"total admitted qty\": \"已入場總數量\",\n    \"total amount paid\": \"已付款金額\",\n    \"total commission\": \"總抽成\",\n    \"total commission base cost\": \"總抽成底價\",\n    \"total commissions due\": \"應付總抽成\",\n    \"total commissions due returned\": \"應付總退貨抽成\",\n    \"total commissions due this month\": \"本月到期總抽成\",\n    \"total commissions generated\": \"抽成總額\",\n    \"total commissions generated returned\": \"總退貨抽成\",\n    \"total commissions generated this month\": \"本月產生總抽成\",\n    \"total credit card amount\": \"總信用卡金額\",\n    \"total details without shipping zones\": \"還有 {total} 個商品未選擇運費規則 !\",\n    \"total due\": \"總應付\",\n    \"total due after adjustment\": \"調整後總應付抽成\",\n    \"total due after payouts\": \"支出後總應付抽成\",\n    \"total due at\": \"到期最低應繳總額 {date}\",\n    \"total inclusive discounted price\": \"折扣後含稅總價\",\n    \"total inclusive price\": \"含稅總價\",\n    \"total limit\": \"次數上限\",\n    \"total limited qty\": \"總限制數量\",\n    \"total orders\": \"總訂單\",\n    \"total periods\": \"總共期數\",\n    \"total points expiring\": \"即將到期點數總計\",\n    \"total qty\": \"總數量\",\n    \"total qtys\": \"總數量\",\n    \"total quantity\": \"總數量\",\n    \"total returns\": \"總退貨\",\n    \"total revenue\": \"總營業額\",\n    \"total sales\": \"總銷售\",\n    \"total shipping fee\": \"總運費\",\n    \"total times per person\": \"每人次數上限\",\n    \"total transactions\": \"累積消費次數\",\n    \"total_data\": \"總額\",\n    \"total_dispatched\": \"已出貨金額\",\n    \"total_invoices_amount\": \"電子發票金額\",\n    \"total_invoices_attentionRequired\": \"需要手動處理\",\n    \"total_invoices_cancelled\": \"已取消金額\",\n    \"total_invoices_pending\": \"未完成金額\",\n    \"total_invoices_pendingCancellation\": \"取消處理中金額\",\n    \"total_invoices_successful\": \"電子發票金額\",\n    \"total_rounding_difference_explanation\": \"總金額的差額是因四捨五入產生\",\n    \"track inventory\": \"庫存追蹤\",\n    \"tracking\": \"追蹤\",\n    \"tracking code\": \"追蹤碼\",\n    \"tracking codes\": \"追蹤碼\",\n    \"transaction date\": \"交易日期\",\n    \"transaction number\": \"交易編號\",\n    \"transaction type\": \"交易類型\",\n    \"transparency\": \"透明度\",\n    \"transparency_full\": \"全透明\",\n    \"transparency_half\": \"半透明\",\n    \"transparency_none\": \"不透明\",\n    \"transparency_slight\": \"微透明\",\n    \"transparency_very\": \"非常透明\",\n    \"transport\": \"貨運\",\n    \"transporter\": \"物流公司\",\n    \"transporter (optional)\": \"物流公司 (非必填)\",\n    \"transporter account\": \"物流客代\",\n    \"transporter account (optional)\": \"物流客代 (非必填)\",\n    \"transporter account number\": \"物流客代\",\n    \"transporter accounts\": \"物流客代\",\n    \"transporter credentials\": \"物流業者憑證\",\n    \"transporter hct settings\": \"新竹物流設定\",\n    \"transporter hct settings wizard description\": \"快速建立新竹物流設定\",\n    \"transporter info\": \"物流公司資料\",\n    \"transporter notes\": \"貨運公司記事\",\n    \"transporter package temperature\": \"物流包裹溫度\",\n    \"transporter payuni-seven-eleven settings\": \"PayUni 7-ELEVEN 物流設定\",\n    \"transporter payuni-seven-eleven settings wizard description\": \"快速建立 PayUni 7-ELEVEN 物流設定\",\n    \"transporter pickup location\": \"物流取貨點\",\n    \"transporter pickup location name\": \"物流取貨點名稱\",\n    \"transporter settings\": \"物流設定\",\n    \"transporter seven-eleven settings\": \"7-ELEVEN 物流設定\",\n    \"transporter seven-eleven settings wizard description\": \"快速建立 7-ELEVEN 物流設定\",\n    \"transporter t-cat settings\": \"黑貓宅急便 黑貓宅急便設定\",\n    \"transporter t-cat settings wizard description\": \"快速建立黑貓宅急便設定\",\n    \"transporter type\": \"物流型態\",\n    \"transporter-settings\": \"物流設定\",\n    \"transporterAccount\": \"物流客代\",\n    \"transporterPackageTemperature\": \"物流包裹溫度\",\n    \"transporter_account_short\": \"物流客代\",\n    \"try it now\": \"立即試用\",\n    \"try latest version with latest features (beta)\": \"我們有新版本，包含新功能 (beta)\",\n    \"try new\": \"試用新版\",\n    \"try new features\": \"試用新功能\",\n    \"tuesday\": \"星期二\",\n    \"tuesday opening hours\": \"星期二營業時間\",\n    \"twEInvoicePrint\": \"允許列印電子發票\",\n    \"tw_auto_issue_eInvoices\": \"自動開立電子發票\",\n    \"tw_auto_print_invoices\": \"允許手動建立訂單開立電子發票\",\n    \"tw_auto_print_invoices_for_shop\": \"允許商店成立訂單開立電子發票\",\n    \"tw_default_invoices_view\": \"預設電子發票檢視\",\n    \"tw_eInvoice_auto_issue_fourteen_days_after\": \"出貨後14天自動開立\",\n    \"tw_eInvoice_auto_issue_on_dispatch\": \"出貨時自動開立\",\n    \"tw_eInvoice_auto_issue_seven_days_after\": \"出貨後7天自動開立\",\n    \"tw_eInvoice_carrierType_app\": \"手機載具\",\n    \"tw_eInvoice_carrierType_b2b\": \"營業人發票\",\n    \"tw_eInvoice_carrierType_person\": \"自然人憑證\",\n    \"tw_eInvoice_carrier_id\": \"載具編號\",\n    \"tw_eInvoice_carrier_type\": \"載具\",\n    \"tw_eInvoice_carrier_type_optional\": \"電子發票類別 (非必填)\",\n    \"tw_eInvoice_company_name\": \"公司抬頭\",\n    \"tw_eInvoice_print_custom_block\": \"列印自訂區域\",\n    \"tw_eInvoice_print_custom_block_placeholder\": \"在列印附註或明細時每行限制字數為：\\\\\\\\n 英文34個字元，\\\\\\\\n 中文17個字元，\\\\\\\\n 如果中英夾雜則1個中文等於2個英文字元的長度，\\\\\\\\n 但我們不能保證中英文並用時列印格式是否能維持正確。\\\\\\\\n\\n\",\n    \"tw_eInvoice_print_reload\": \"重新載入電子發票印表機\",\n    \"tw_eInvoice_provider_bigOrdr\": \"綠界科技\",\n    \"tw_eInvoice_provider_systemlead\": \"e首發票\",\n    \"tw_eInvoice_queued_successfully\": \"排程成功，發票將自動開立\",\n    \"tw_eInvoice_reissue\": \"重新開立電子發票\",\n    \"tw_eInvoice_reprint\": \"重新列印電子發票\",\n    \"tw_eInvoices\": \"電子發票\",\n    \"tw_eInvoices_allocate_numbers\": \"字軌切本\",\n    \"tw_eInvoices_allow_numbers\": \"字軌可在本系統開立\",\n    \"tw_eInvoices_allow_numbers_off_warning\": \"請注意:如字軌不在本系統開立，儲存後將無法修改\",\n    \"tw_eInvoices_attention_required\": \"需要手動處理\",\n    \"tw_eInvoices_available_any\": \"不指定列表機\",\n    \"tw_eInvoices_blankUploaded_successful\": \"已上傳\",\n    \"tw_eInvoices_blankUploaded_unsuccessful\": \"未上傳\",\n    \"tw_eInvoices_book\": \"本號\",\n    \"tw_eInvoices_captured\": \"已確認紀錄\",\n    \"tw_eInvoices_captured_invoices\": \"已確認紀錄發票\",\n    \"tw_eInvoices_captured_returns\": \"已確認紀錄發票折讓\",\n    \"tw_eInvoices_count\": \"張數\",\n    \"tw_eInvoices_custom_description\": \"自訂說明\",\n    \"tw_eInvoices_disallowed\": \"不可開立\",\n    \"tw_eInvoices_edit_and_reissue\": \"編輯並重新開立電子發票\",\n    \"tw_eInvoices_first_number\": \"起始號\",\n    \"tw_eInvoices_include_until_current_date\": \"所有未開電子發票至\",\n    \"tw_eInvoices_issue_results\": \"開立電子發票結果\",\n    \"tw_eInvoices_last_number\": \"終止號\",\n    \"tw_eInvoices_last_number_used\": \"最後開立發票號碼\",\n    \"tw_eInvoices_no_allocated\": \"未分配電子發票號碼\",\n    \"tw_eInvoices_no_printer_setup\": \"印表機尚未設定。請登入 BigOrdr 印表機應用程式。\",\n    \"tw_eInvoices_no_track_numbers\": \"無電子發票字軌\",\n    \"tw_eInvoices_notify_email_address\": \"電子發票通知電子信箱\",\n    \"tw_eInvoices_numbers\": \"字軌\",\n    \"tw_eInvoices_numbers_auto_upload_blanks\": \"系統每單數月5號21:00自動上傳未使用空白發票\",\n    \"tw_eInvoices_numbers_available_count\": \"剩餘發票數\",\n    \"tw_eInvoices_numbers_blank_end\": \"空白終止號\",\n    \"tw_eInvoices_numbers_blank_numbers\": \"空白號\",\n    \"tw_eInvoices_numbers_blank_remaining_unused\": \"未使用空白號\",\n    \"tw_eInvoices_numbers_blank_start\": \"空白起始號\",\n    \"tw_eInvoices_numbers_blank_upload_all_remaining_unused\": \"含所有未使用空白號\",\n    \"tw_eInvoices_numbers_books_end\": \"本號迄\",\n    \"tw_eInvoices_numbers_books_range\": \"本號起迄\",\n    \"tw_eInvoices_numbers_books_start\": \"本號起\",\n    \"tw_eInvoices_numbers_current_books_range\": \"本字軌範圍\",\n    \"tw_eInvoices_numbers_end\": \"終止號\",\n    \"tw_eInvoices_numbers_enter_blanks\": \"輸入空白號\",\n    \"tw_eInvoices_numbers_last\": \"最後取號\",\n    \"tw_eInvoices_numbers_manager\": \"字軌管理\",\n    \"tw_eInvoices_numbers_next\": \"下次取號\",\n    \"tw_eInvoices_numbers_no_available_count\": \"無可開立發票字軌\",\n    \"tw_eInvoices_numbers_no_available_count_create_docSales_without_eInvoice\": \"無可用電子發票號碼，是否直接建立出貨單而不開立電子發票？\",\n    \"tw_eInvoices_numbers_remaining\": \"剩餘發票數\",\n    \"tw_eInvoices_numbers_start\": \"起始號\",\n    \"tw_eInvoices_numbers_upload_blanks\": \"上傳空白號\",\n    \"tw_eInvoices_numbers_upload_blanks_not_uploaded\": \"未上傳\",\n    \"tw_eInvoices_only_remaining\": \"所有部份補開發票\",\n    \"tw_eInvoices_prefix\": \"字軌\",\n    \"tw_eInvoices_print_aesKey\": \"電子發票 AESKey\",\n    \"tw_eInvoices_print_allow_print\": \"允許列印電子發票\",\n    \"tw_eInvoices_print_allow_shop\": \"允許在商店顯示是否列印電子發票\",\n    \"tw_eInvoices_printed_count\": \"次數\",\n    \"tw_eInvoices_printed_pending\": \"未列印\",\n    \"tw_eInvoices_printed_successful\": \"已列印\",\n    \"tw_eInvoices_printer_app\": \"BigOrdr 印表機應用程式\",\n    \"tw_eInvoices_printer_app_desc\": \"永遠是最新版本。請安裝在連接印表機的電腦上，並以印表機使用者登入。\",\n    \"tw_eInvoices_scheduled\": \"電子發票預計在今晚九點自動發送\",\n    \"tw_eInvoices_total_available\": \"全部可用發票總數\",\n    \"tw_eInvoices_total_available_per_printer\": \"指定列表機\",\n    \"tw_eInvoices_uncaptured_total\": \"未確認紀錄總額\",\n    \"tw_eInvoices_unresolved_blocks_new_issue\": \"這張不成功的電子發票尚未解決，因此無法開立新的電子發票。請先更新單據，再標記為已解決後重新開立。\",\n    \"tw_eInvoicing\": \"電子發票\",\n    \"tw_eInvoicing_print\": \"列印電子發票\",\n    \"tw_invoicing\": \"統一發票\",\n    \"tw_issue_print_eInvoice\": \"開立且列印電子發票\",\n    \"tw_print_eInvoices\": \"開立電子發票功能\",\n    \"tw_print_eInvoices_now\": \"開立電子發票\",\n    \"tw_print_invoices\": \"列印統一發票\",\n    \"two factor authentication\": \"OTP認證\",\n    \"two factor authentication code has been resent\": \"已重新發送驗證碼至您的信箱。\",\n    \"two per page\": \"A4二模宅配\",\n    \"twoByOne\": \"2x1\",\n    \"twoByThree\": \"2x3\",\n    \"two_factor_authentication_resendCode\": \"重新發送驗證碼\",\n    \"txt verification\": \"txt verification\",\n    \"type\": \"種類\",\n    \"type delete to delete\": \"輸入「 刪除 」\",\n    \"type_content\": \"輸入內容\",\n    \"typing\": \"打字效果\",\n    \"unable to add new option- please try again later-\": \"無法新增新的選項，請稍候再嘗試\",\n    \"unable to create profile- please try again later-\": \"無法建立簡介，請稍候再嘗試\",\n    \"unable to update profile- please try again later-\": \"無法更新簡介，請稍候再嘗試\",\n    \"unable to verify account- please try again later-\": \"無法辨識帳號，請稍候再嘗試\",\n    \"unallocated\": \"未分配\",\n    \"unarchive\": \"取消封存\",\n    \"unassigned\": \"未指定\",\n    \"uncaughtException\": \"未捕捉的異常 (Uncaught Exception)\",\n    \"underpaid\": \"不足額\",\n    \"undispatched\": \"未出貨\",\n    \"undispatched or due\": \"未出貨 / 未到期\",\n    \"undo\": \"回復\",\n    \"undo cancel invoice\": \"回復已作廢發票\",\n    \"undo void\": \"取消作廢\",\n    \"unfinished\": \"未完成\",\n    \"ungroup_document\": \"取消合併\",\n    \"unhandledRejection\": \"未處理的拒絕 (Unhandled Rejection)\",\n    \"unhold all\": \"全部取消暫停\",\n    \"union bank Of taiwan\": \"Union Bank Of Taiwan\",\n    \"uniqueTagsOnly\": \"Show Each Tag Separately (Unique Tags Only)\",\n    \"unit\": \"單位\",\n    \"units\": \"單位\",\n    \"unlink\": \"去除連結\",\n    \"unlock\": \"解鎖\",\n    \"unnamed\": \"未命名\",\n    \"unpaid total\": \"未付款總額\",\n    \"unprepared\": \"未準備\",\n    \"unprinted\": \"未列印\",\n    \"unprinted is shown by default for today and future dispatch dates\": \"今日（含）之後的出貨日期預設顯示「未列印」\",\n    \"unprinted is shown by default when printing of waybills is allowed\": \"開啟「允許列印托運單」時預設顯示「未列印」\",\n    \"unrefrigerated\": \"常溫\",\n    \"unresolved\": \"未解決\",\n    \"unsuccessful\": \"不成功\",\n    \"unsuccessfulDetail\": \"任選、組合或多規格商品內容不符合\",\n    \"untag\": \"取消標籤\",\n    \"update\": \"更新\",\n    \"update all status\": \"更新全部狀態\",\n    \"update bulk discount\": \"編輯量販折扣\",\n    \"update cache\": \"更新暫存\",\n    \"update failed the data is out of date as it may have been changed by someone else please cancel and try again\": \"更新失敗，您的資料已過期，可能有遭到變動，請先取消並再試一次\",\n    \"update failed the data is out of date as it may have been changed by someone else please try again\": \"更新失敗，您的資料已過期，可能有遭到變動，請再試一次\",\n    \"update hct contact\": \"更新新竹物流聯絡資料\",\n    \"update now\": \"立即更新最新版本\",\n    \"update required, please reload\": \"已更新版本。請重新載入頁面\",\n    \"update seven-eleven contact\": \"更新進階 7-11 聯絡資料\",\n    \"update status\": \"更新狀態\",\n    \"update t-cat contact\": \"更新黑貓聯絡人\",\n    \"update waybill with latest changes. are you sure you want to update?\": \"將依最新的更動更新托運單，您是否確定要更新？\",\n    \"update waybills\": \"更新托運單\",\n    \"update waybills with the latest changes. the update will omit any expired waybill. are you sure you want to update?\": \"將依最新的更動更新托運單，此更動會移除所有過期的托運單，您是否確定要更新？\",\n    \"updated\": \"已更新\",\n    \"updated date\": \"更新日期\",\n    \"updated time\": \"更新時間\",\n    \"updating the product may cause it to be out of sync with the shop\": \"當您新增或修改商品時，若尚未設定價格或變更內容會影響售價，系統會暫時停止販售，請確認價格後再儲存，即可恢復上架。\",\n    \"upload\": \"上傳\",\n    \"upload files\": \"上傳檔案\",\n    \"upload image\": \"上傳圖片\",\n    \"upload images\": \"上傳圖片\",\n    \"upload images to campaigns\": \"上傳活動圖片\",\n    \"upload images to products\": \"上傳商品圖片\",\n    \"upload logo\": \"上傳商標\",\n    \"upload status\": \"上傳狀態\",\n    \"upload to folder\": \"上傳到\",\n    \"uploaded files\": \"檔案\",\n    \"uploaded to shops\": \"銷售中\",\n    \"uploading please wait\": \"上傳中請稍候...\",\n    \"url\": \"網址\",\n    \"usage limit\": \"使用次數總上限\",\n    \"usage limit per person\": \"每人使用次數上限\",\n    \"usage limits\": \"使用限制\",\n    \"use advanced address\": \"使用進階地址\",\n    \"use anonymized product name\": \"使用匿名商品名稱\",\n    \"use average prices for each product\": \"每個商品都使用平均售價\",\n    \"use campaign period\": \"使用活動期間\",\n    \"use company email address when sending email manually\": \"人工寄送郵件時使用公司郵件地址\",\n    \"use custom date\": \"使用自訂時間\",\n    \"use custom message for additional free shipping\": \"自訂未達免運門檻訊息內容\",\n    \"use custom message for quoted rate shipping\": \"使用自訂訊息顯示報價運費\",\n    \"use default auto redirect url from settings\": \"結團後自動到到不同的網址(使用預設網址)\",\n    \"use default birthday message in rewards\": \"使用預設生日祝賀訊息（在獎勵）\",\n    \"use default birthday message in settings\": \"使用預設生日祝賀訊息（在設定）\",\n    \"use default description\": \"使用預設敘述\",\n    \"use default message in settings\": \"使用設定預設\",\n    \"use default payment methods\": \"使用預設付款方式\",\n    \"use default products display settings from settings\": \"商品顯示: 使用設定預設\",\n    \"use default promotion message in rewards\": \"使用預設促銷訊息（在獎勵）\",\n    \"use default promotion message in settings\": \"使用預設促銷訊息（在設定）\",\n    \"use default width\": \"使用預設寬度\",\n    \"use defaults estimated delivery date in settings\": \"使用預設預計送達日期\",\n    \"use defaults flat fee\": \"使用預設的固定運費\",\n    \"use defaults from products\": \"使用商品預設\",\n    \"use defaults from settings\": \"系統預設\",\n    \"use defaults shipping zones\": \"使用預設的運費規則\",\n    \"use defaults shop price filter\": \"使用預設價格篩選\",\n    \"use different delivery info\": \"使用不同收件資訊\",\n    \"use exclusive selling price to calculate commission\": \"使用未稅售價計算抽成\",\n    \"use expiry date instead\": \"改為使用期限\",\n    \"use inventory qty as product limits\": \"共用商品庫存量\",\n    \"use inventory qty as product limits defaults\": \"預設共用商品庫存量\",\n    \"use normal percentage\": \"使用百分比折扣\",\n    \"use original amount at dispatch date\": \"使用出貨日期的原始金額\",\n    \"use payment terms\": \"使用付款條件\",\n    \"use preset commissions to fill commission value\": \"將預設抽成設為抽成金額\",\n    \"use product set children\": \"組合價以單品計算抽成\",\n    \"use shipping fee adjustment\": \"允許從商品價格扣運費\",\n    \"use taiwan percentage\": \"使用折數（例如：8.5折）\",\n    \"use website logo for delivery notes\": \"出貨單使用品牌官網 Logo (不使用公司 Logo)\",\n    \"user\": \"使用者\",\n    \"user colors\": \"使用者顏色\",\n    \"user didnt complete the transaction\": \"未完成信用卡交易\",\n    \"user-agreement-settings\": \"使用者同意設定\",\n    \"username\": \"使用者名稱\",\n    \"username or email\": \"使用者名稱或電子信箱\",\n    \"users\": \"使用者\",\n    \"users to authorize refunds\": \"授權退款使用者\",\n    \"utm campaign\": \"UTM 活動\",\n    \"utm medium\": \"UTM 媒介\",\n    \"utm source\": \"UTM 來源\",\n    \"valid\": \"valid\",\n    \"valid input\": \"可輸入數值\",\n    \"valid points\": \"有效點數\",\n    \"validate domain\": \"validate domain\",\n    \"validation error\": \"驗證錯誤\",\n    \"validity date\": \"有效期\",\n    \"value\": \"參數值\",\n    \"value based rates\": \"以訂單金額設定運費\",\n    \"value is required\": \"必填\",\n    \"variant\": \"多規格商品\",\n    \"variant child\": \"商品變體子項\",\n    \"variant children\": \"商品變體子項\",\n    \"variant code\": \"規格編碼\",\n    \"variant options\": \"規格名稱\",\n    \"variant selector style\": \"多規格商品選項風格\",\n    \"variant type\": \"商品規格\",\n    \"variantOptionsNameChanges\": \"將從 {originalOptionName} 變為 {newOptionName}\",\n    \"variant_example\": \"例如：顏色、尺寸\",\n    \"variant_options_example\": \"例如：紅色、小\",\n    \"variant_options_save_warning\": \"您尚有未編輯選項，請完成所有編輯後再儲存\",\n    \"variants\": \"多規格商品\",\n    \"vat\": \"增值稅\",\n    \"verified payment\": \"確認付款\",\n    \"version\": \"版本\",\n    \"vertical\": \"垂直\",\n    \"vertical alignment\": \"垂直對齊\",\n    \"vertical buttons\": \"垂直按鈕\",\n    \"vertical buttons with different colors\": \"不同顏色的垂直按鈕\",\n    \"vertical position\": \"上下位置\",\n    \"video\": \"影片\",\n    \"videoBlockStyles_fixedWidth\": \"固定寬度\",\n    \"videoBlockStyles_fullWidth\": \"滿版\",\n    \"video_source\": \"影片來源\",\n    \"videos\": \"影片\",\n    \"view\": \"檢視\",\n    \"view available placeholders\": \"顯示可插入的語法內容\",\n    \"view locked\": \"檢視鎖住\",\n    \"view original file\": \"檢視原始檔\",\n    \"view schedules\": \"查看時間表\",\n    \"view webpage\": \"檢視網頁\",\n    \"virtual\": \"虛擬\",\n    \"virtual account\": \"虛擬帳號\",\n    \"virtual account bank code\": \"分行\",\n    \"virtual account bank name\": \"銀行\",\n    \"virtual account expiry date\": \"最後可轉帳日期\",\n    \"virtual account number\": \"虛擬帳號\",\n    \"virtual content attachments\": \"虛擬內容附件\",\n    \"virtualAccount\": \"啟用虛擬帳戶\",\n    \"virtual_account_from_account\": \"轉出帳號\",\n    \"virtual_account_provider_eSun\": \"玉山銀行虛擬帳號\",\n    \"virtual_account_provider_ecPay\": \"綠界科技虛擬帳號\",\n    \"virtual_account_provider_ubot\": \"聯邦銀行虛擬帳號\",\n    \"virtual_content\": \"虛擬商品內容\",\n    \"void\": \"作廢\",\n    \"warning\": \"警告\",\n    \"warnings\": \"Warnings\",\n    \"waybill\": \"託運單號\",\n    \"waybill cannot be removed after dispatch\": \"已出貨的單據無法移除托運單\",\n    \"waybill status\": \"Waybill Status\",\n    \"waybills\": \"托運單\",\n    \"waybills created\": \"已產生托運單\",\n    \"waybills first row bottom padding\": \"托運單第一行底部間距\",\n    \"waybills last row top padding\": \"托運單最後一行頂部間距\",\n    \"waybills not yet created\": \"未產生托運單\",\n    \"waybills per page\": \"每頁托運單張數\",\n    \"waybills per page b2c\": \"B2C每頁托運單張數\",\n    \"waybills per page c2c\": \"C2C每頁托運單張數\",\n    \"waybills-settings\": \"托運單設定\",\n    \"we have new features. dispatch is now faster and easier. before we move you over, we want to give you time to get familiar with the new way. do you want to try them out now?\": \"我們有新功能。出貨管理現在更快、更容易。\\n\\n在我們為您切換之前，希望先給您一些時間熟悉新的方式。\\n\\n要現在試用嗎？\",\n    \"web\": \"官網\",\n    \"webhook_event_sent_failed\": \"通知失敗\",\n    \"webhook_event_sent_successful\": \"通知成功\",\n    \"webhooks: authorization token\": \"Webhook: 通知訂單【Authorization Token】(Bearer ...)\",\n    \"webhooks: enable notify on order\": \"Webhook: 開啟通知訂單\",\n    \"webhooks: notify on order URL\": \"Webhook: 通知訂單 URL\",\n    \"webpage\": \"網頁\",\n    \"webpage name\": \"網頁名稱\",\n    \"webpage seo description\": \"網頁搜尋引擎優化描述\",\n    \"webpage seo keywords\": \"網頁搜尋引擎優化及關鍵字\",\n    \"webpage settings\": \"網頁設定\",\n    \"webpage_content\": \"網頁內容\",\n    \"webpage_home_page_redirect\": \"跳轉至首頁\",\n    \"webpage_isDisallowClick\": \"僅顯示於主選單，無法點擊\",\n    \"webpage_show_breadcrumb\": \"顯示麵包屑導覽\",\n    \"webpage_show_on_filters\": \"在商品篩選顯示\",\n    \"webpage_show_on_filters_short\": \"商品篩選\",\n    \"webpage_show_on_footer\": \"在頁尾顯示\",\n    \"webpage_show_on_footer_short\": \"頁尾\",\n    \"webpage_show_on_menu\": \"在主選單顯示\",\n    \"webpage_show_on_menu_short\": \"主選單\",\n    \"webpage_template\": \"網頁模板\",\n    \"webpage_template_type\": \"網頁類型\",\n    \"webpages\": \"網頁\",\n    \"webpages_content\": \"網頁內容\",\n    \"website\": \"官網\",\n    \"website admin mode\": \"網站管理者模式\",\n    \"website info\": \"網站資訊\",\n    \"website template\": \"網頁模版\",\n    \"website url\": \"官網網址\",\n    \"website url (at least 6 characters)\": \"官網網址 (至少6個字符)\",\n    \"websiteForAllCampaigns\": \"團購官網\",\n    \"website_action_color\": \"加入購物車-按鈕底色\",\n    \"website_action_final_color\": \"結帳-按鈕顏底色\",\n    \"website_action_final_hover_color\": \"結帳-按鈕滑鼠滑過變色\",\n    \"website_action_final_text\": \"結帳-按鈕顏色\",\n    \"website_action_final_text_color\": \"結帳-按鈕文字顏色\",\n    \"website_action_hover_color\": \"加入購物車-按鈕滑鼠滑過變色\",\n    \"website_action_text_color\": \"加入購物車-按鈕字體色\",\n    \"website_active_color\": \"選定顏色\",\n    \"website_almost_sold_out_text_color\": \"即將售完文字顏色\",\n    \"website_background_primary_color\": \"背景主色\",\n    \"website_background_secondary_color\": \"背景第二次色\",\n    \"website_border_color\": \"邊框顏色\",\n    \"website_breadcrumbs_background_color\": \"麵包屑背景顏色\",\n    \"website_breadcrumbs_text_color\": \"麵包屑文字顏色\",\n    \"website_button_border_color\": \"按鈕邊框顏色\",\n    \"website_button_border_color2\": \"按鈕邊框顏色2\",\n    \"website_button_border_color3\": \"按鈕邊框顏色3\",\n    \"website_button_border_radius\": \"按鈕圓角值\",\n    \"website_button_border_radius_2\": \"按鈕圓角值2\",\n    \"website_button_border_radius_3\": \"按鈕圓角值3\",\n    \"website_button_color\": \"按鈕顏色\",\n    \"website_button_color2\": \"按鈕顏色2\",\n    \"website_button_color3\": \"按鈕顏色3\",\n    \"website_button_hover_color\": \"滑鼠移到按鈕的顏色\",\n    \"website_button_hover_color2\": \"滑鼠移到按鈕的顏色2\",\n    \"website_button_hover_color3\": \"滑鼠移到按鈕的顏色3\",\n    \"website_button_hover_text_color\": \"滑鼠移到文字的顏色\",\n    \"website_button_hover_text_color2\": \"滑鼠移到文字的顏色2\",\n    \"website_button_hover_text_color3\": \"滑鼠移到文字的顏色3\",\n    \"website_button_text_color\": \"按鈕文字顏色\",\n    \"website_button_text_color2\": \"按鈕文字顏色2\",\n    \"website_button_text_color3\": \"按鈕文字顏色3\",\n    \"website_campaign_header\": \"商店活動頁首\",\n    \"website_campaign_header_background_color\": \"商店活動背景色\",\n    \"website_campaign_header_notice_color\": \"商店活動日期顏色\",\n    \"website_campaign_header_subtitle_color\": \"商店活動內文顏色\",\n    \"website_campaign_header_title_color\": \"商店活動名稱顏色\",\n    \"website_chat_button_color\": \"Line/FB-對話按鈕顏色\",\n    \"website_chat_button_hover_color\": \"Line/FB-滑鼠移到對話按鈕的顏色\",\n    \"website_chat_button_text_color\": \"Line/FB-對話內文文字顏色\",\n    \"website_content_width\": \"內容寬度\",\n    \"website_count_down_color\": \"倒數計時顏色\",\n    \"website_count_down_text_color\": \"倒數計時文字顏色\",\n    \"website_faqs_answer_color\": \"常見問題回答顏色\",\n    \"website_faqs_question_color\": \"常見問題顏色\",\n    \"website_faqs_question_hover_color\": \"滑鼠移到常見問題的顏色\",\n    \"website_footer_background_color\": \"頁尾背景色\",\n    \"website_footer_background_primary_color\": \"頁尾背景色\",\n    \"website_footer_header_color\": \"頁尾標題景色\",\n    \"website_footer_link_color\": \"頁尾連結景色\",\n    \"website_footer_link_hover_color\": \"頁尾連結滑鼠滑過變色\",\n    \"website_footer_message\": \"頁尾內容\",\n    \"website_footer_text_color\": \"頁尾字體景色\",\n    \"website_headers\": \"自訂HTML Head內容\",\n    \"website_input_background_color\": \"輸入格背景色\",\n    \"website_input_border_color\": \"欄位邊框顏色\",\n    \"website_input_border_focus_color\": \"欄位邊框聚焦顏色\",\n    \"website_input_text_color\": \"輸入格文字色\",\n    \"website_is_canonical\": \"自動設本頁為標準網頁 (Canonical)\",\n    \"website_link_color\": \"連結字體顏色\",\n    \"website_link_hover_color\": \"滑鼠移到網站連結的顏色\",\n    \"website_menu_background_primary_color\": \"主選單背景主要色\",\n    \"website_menu_background_secondary_color\": \"主選單背景次要色\",\n    \"website_menu_border_color\": \"主選單外框色\",\n    \"website_menu_button_color\": \"主選單按鈕顏色\",\n    \"website_menu_button_hover_color\": \"主選單按鈕滑過顏色\",\n    \"website_menu_item_border_color\": \"垂直主選單選項下方分隔線顏色\",\n    \"website_menu_link_color\": \"主選單字體色\",\n    \"website_menu_link_hover_color\": \"主選單字體滑鼠滑過變色\",\n    \"website_menu_type\": \"種類\",\n    \"website_original_price_text_color\": \"原價價格文字顏色\",\n    \"website_primary_color\": \"主顏色\",\n    \"website_sale_color\": \"特賣標籤顏色\",\n    \"website_sale_price_text_color\": \"特賣價格文字顏色\",\n    \"website_sale_text_color\": \"特賣標籤文字顏色\",\n    \"website_scripts\": \"Javascript程式語言\",\n    \"website_section_action\": \"加入購物車\",\n    \"website_section_action_final_btn\": \"結帳\",\n    \"website_section_backgrounds\": \"背景\",\n    \"website_section_breadcrumbs\": \"麵包屑\",\n    \"website_section_button_1\": \"按鈕1\",\n    \"website_section_button_2\": \"按鈕2\",\n    \"website_section_button_3\": \"按鈕3\",\n    \"website_section_buttons\": \"按鈕\",\n    \"website_section_carousel_banner\": \"橫幅滾動文字\",\n    \"website_section_carousel_banner_color\": \"橫幅滾動文字背景顏色\",\n    \"website_section_carousel_banner_link_hover_color\": \"橫幅滾動文字連結滑鼠滑過變色\",\n    \"website_section_carousel_banner_text_color\": \"橫幅滾動文字連結文字顏色\",\n    \"website_section_chat\": \"Line/FB聊天\",\n    \"website_section_count_down\": \"倒數\",\n    \"website_section_faqs\": \"常見問題\",\n    \"website_section_footer\": \"頁尾\",\n    \"website_section_inputs\": \"輸入格\",\n    \"website_section_links\": \"連結\",\n    \"website_section_nav\": \"主選單\",\n    \"website_section_other\": \"其他\",\n    \"website_section_sales\": \"特賣\",\n    \"website_section_sliders\": \"輪播圖\",\n    \"website_section_submenu\": \"子選單\",\n    \"website_section_tags\": \"標籤\",\n    \"website_section_text\": \"文字\",\n    \"website_section_text_basic\": \"一般\",\n    \"website_section_variant_button\": \"Variant Button\",\n    \"website_seo_broken_links\": \"舊網站失效鏈接\",\n    \"website_seo_custom_url\": \"自訂URL代稱 (URL Slug)\",\n    \"website_seo_description\": \"搜尋引擎優化描述\",\n    \"website_seo_keywords\": \"搜尋引擎優化及關鍵字\",\n    \"website_seo_title\": \"搜尋引擎優化標題\",\n    \"website_seo_url_redirects\": \"輸入舊網站的URL重新導向至新的URL (舊的URL == 新的URL)\",\n    \"website_slider_arrow_button_background_color\": \"箭頭按鈕顏色\",\n    \"website_slider_arrow_button_borderColor\": \"箭頭按鈕邊框顏色\",\n    \"website_slider_arrow_button_borderRadius\": \"箭頭按鈕圓角\",\n    \"website_slider_arrow_button_borderWidth\": \"箭頭按鈕邊框寬度\",\n    \"website_slider_arrow_button_hover_background_color\": \"滑鼠移到箭頭按鈕滑鼠顏色\",\n    \"website_slider_arrow_button_textColor\": \"箭頭按鈕文字顏色\",\n    \"website_slider_dots_activeColor\": \"分頁啟用時顏色\",\n    \"website_slider_dots_color\": \"分頁顏色\",\n    \"website_slider_dots_display\": \"分頁顯示\",\n    \"website_slider_dots_positioning\": \"分頁位置\",\n    \"website_slider_dots_style\": \"分頁樣式\",\n    \"website_submenu_background_primary_color\": \"子選單背景主要色\",\n    \"website_submenu_background_secondary_color\": \"子選單背景次要色\",\n    \"website_submenu_border_color\": \"子選單外框色\",\n    \"website_submenu_item_border_color\": \"垂直子選單選項下方分隔線顏色\",\n    \"website_submenu_link_color\": \"子選單字體色\",\n    \"website_submenu_link_hover_color\": \"子選單字體滑鼠滑過變色\",\n    \"website_tag_color\": \"標籤顏色\",\n    \"website_tag_text_color\": \"標籤文字顏色\",\n    \"website_text_2_color\": \"第二階層內文的顏色\",\n    \"website_text_3_color\": \"第三階層內文的顏色\",\n    \"website_text_color\": \"文字顏色\",\n    \"website_type_category\": \"純商品分類頁\",\n    \"website_type_link\": \"連結\",\n    \"website_type_link_blogs\": \"文章\",\n    \"website_type_link_flows\": \"聊天機器人\",\n    \"website_type_link_news\": \"新聞\",\n    \"website_type_link_page\": \"網站頁面\",\n    \"website_type_link_pageAndCategory\": \"網站頁面 & 商品分類頁面\",\n    \"website_type_link_product\": \"商品\",\n    \"website_type_link_store-location\": \"實體通路\",\n    \"website_type_link_url\": \"網址\",\n    \"website_type_page\": \"自訂頁面\",\n    \"website_variant_button_border_color\": \"多規格按鈕邊框顏色\",\n    \"website_variant_button_border_radius\": \"多規格按鈕圓角值\",\n    \"website_variant_button_color\": \"多規格按鈕顏色\",\n    \"website_variant_button_hover_border_color\": \"多規格滑鼠移到按鈕邊框顏色\",\n    \"website_variant_button_hover_color\": \"多規格滑鼠移到按鈕的顏色\",\n    \"website_variant_button_hover_text_color\": \"多規格滑鼠移到文字的顏色\",\n    \"website_variant_button_selected_border_color\": \"多規格已選擇按鈕邊框顏色\",\n    \"website_variant_button_selected_color\": \"多規格已選擇按鈕顏色\",\n    \"website_variant_button_selected_text_color\": \"多規格已選擇按鈕文字顏色\",\n    \"website_variant_button_text_color\": \"多規格按鈕文字顏色\",\n    \"websites\": \"官網\",\n    \"websites_templates_type_blocks\": \"區塊網頁 (新)\",\n    \"websites_templates_type_templates\": \"拖曳網頁 (舊)\",\n    \"wednesday\": \"星期三\",\n    \"wednesday opening hours\": \"星期三營業時間\",\n    \"weekday1\": \"星期一\",\n    \"weekday2\": \"星期二\",\n    \"weekday3\": \"星期三\",\n    \"weekday4\": \"星期四\",\n    \"weekday5\": \"星期五\",\n    \"weekday6\": \"星期六\",\n    \"weekday7\": \"星期日\",\n    \"weeks\": \"星期\",\n    \"weight\": \"重量\",\n    \"weight based rates\": \"以重量設定運費\",\n    \"weight need to be set from each child items\": \"重量須由各個商品子項設定\",\n    \"weight unit\": \"重量單位\",\n    \"welcome to bigordr\": \"歡迎來到BigOrdr!\",\n    \"welcome to bigordr supplier portal\": \"歡迎使用 BigOrdr 供應商入口\",\n    \"white\": \"白色\",\n    \"width\": \"寬度\",\n    \"width height ratio\": \"寬高比\",\n    \"will also be used for the canonical url\": \"也會用於 Canonical URL\",\n    \"will be autocompleted\": \"將會自動完成\",\n    \"will be calculated accurately after saving\": \"儲存後將準確計算\",\n    \"will only export campaigns with start and end dates\": \"只匯出有開始及結束日期的活動\",\n    \"win percentage\": \"勝率\",\n    \"with grand totals\": \"加總計\",\n    \"with prices\": \"含價格\",\n    \"without prices\": \"不含價格\",\n    \"wizard\": \"快速建立精靈\",\n    \"wizard pending\": \"未完成...\",\n    \"wizard success\": \"已完成!\",\n    \"wizard_start\": \"開始\",\n    \"wizards\": \"快速建立精靈\",\n    \"wobble\": \"搖動籤筒\",\n    \"workflow\": \"工作流程\",\n    \"workflows\": \"工作流程\",\n    \"workflows_items_activities_attentionRequired\": \"需要手動處理\",\n    \"workflows_items_activities_authorization\": \"授權\",\n    \"workflows_items_activities_call\": \"電話通話\",\n    \"workflows_items_activities_email\": \"電子信箱\",\n    \"workflows_items_activities_event\": \"事件\",\n    \"workflows_items_activities_meeting\": \"會議\",\n    \"workflows_items_activities_notes\": \"注意事項\",\n    \"workflows_items_activities_refund\": \"退款\",\n    \"workflows_items_activities_review\": \"審查\",\n    \"workflows_items_activities_todo\": \"待辦事項\",\n    \"workflows_items_activity\": \"事件\",\n    \"workflows_items_status_open\": \"進行中\",\n    \"workflows_items_status_re-open\": \"重啟\",\n    \"workflows_items_status_successful\": \"成功\",\n    \"workflows_items_status_unsuccessful\": \"不成功\",\n    \"x\": \"X\",\n    \"xLarge\": \"特大\",\n    \"year\": \"年\",\n    \"years\": \"年\",\n    \"years_old\": \"歲\",\n    \"yellow\": \"黃色\",\n    \"yes\": \"是\",\n    \"you are currently using the new version (beta)\": \"您目前使用新版本 (beta)\",\n    \"you are currently using the new version (beta). go to the main app to log in.\": \"您目前使用新版本 (beta)。請前往主程式登入。\",\n    \"you have less than to issue\": \"您的電子發票剩餘「 {availableCountToIssue} 」 張\",\n    \"youtube\": \"YouTube\",\n    \"youtube channel url\": \"Youtube頻道連結\",\n    \"youtube-shorts\": \"YouTube Shorts\",\n    \"zone priority\": \"運送區域優先程度\",\n    \"zones fee\": \"地區運費\",\n    \"zoomIn\": \"放大\"\n  };\n});","define(\"client/utils/intl/missing-message\", [\"exports\", \"client/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = missingMessage;\n  function missingMessage(key, locales) {\n    const errorMissingTranslations = `[ember-intl] Missing translation for key: \"${key}\" for locales: \"${locales}\"`;\n    if (_environment.default.isProduction) {\n      console.error(errorMissingTranslations);\n      return key;\n    }\n    return errorMissingTranslations;\n  }\n});","define(\"client/utils/nventor\", [\"exports\", \"client/constants\", \"ramda\", \"ramda-extension\", \"ramda-adjunct\"], function (_exports, _constants, R, R_, RA) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // @TODO:\n  // move to vendor/bower_components\n  // refactor for better readability and best practices\n  // (reason: some functions below require the use of other functions,\n  // the functions need to be created in a specific order for them\n  // to be available to other functions)\n  //\n  // better?  (not sure how much better the below is)\n  // export function fmt() { ... }\n  //\n  // export function isObject() { ... }\n  //\n  // export function get(obj) {\n  //   USE FUNCTION HERE (try: reversing isObject and get function orders)\n  //   if (isObject(obj)) {\n  //\n  //   }\n  // }\n  //\n  // export default {\n  //   fmt: fmt,\n  //   confirm: {\n  //     isObject: isObject\n  //   }\n  // };\n\n  const nventor = {\n    log(data) {\n      console.log(data);\n      return data;\n    },\n    /**\n     * make a copy javascript object\n     * @param  {object} object\n     * @return {object}        copy\n     */\n    copy(object) {\n      const self = this;\n      if (!self.confirm.isObject(object)) {\n        return object;\n      }\n      return JSON.parse(JSON.stringify(object));\n    },\n    safeParseJSON(jsonString) {\n      try {\n        return JSON.parse(jsonString);\n      } catch (e) {\n        return {};\n      }\n    },\n    safeStringifyJSON(value) {\n      try {\n        return JSON.stringify(value);\n      } catch (e) {\n        return '';\n      }\n    },\n    throw(msg, data) {\n      const isDev = true;\n      if (isDev) {\n        console.error('----error----');\n        console.error(msg);\n        console.error('^^^^^^^^^^^^^');\n        if (data) {\n          console.error('----error context----');\n          if (!R.is(Array, data)) {\n            data = [data];\n          }\n          R.forEach(d => {\n            console.error(d);\n            console.error('^^^^^^^^^^^^^');\n          }, data);\n          console.error('=============');\n        }\n        throw msg;\n      } else {\n\n        // log message somewhere\n      }\n    },\n    /**\n     * creates an error\n     */\n    error(name, details) {\n      var error = new Error(name);\n      error.details = details;\n      return error;\n    },\n    resolve(data) {\n      return new Ember.RSVP.Promise(function (resolve) {\n        resolve(data);\n      });\n    },\n    reject(data) {\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        reject(data);\n      });\n    },\n    isEven(n) {\n      n = parseInt(n);\n      return n % 2 === 0;\n    },\n    isNilOrEmpty(data) {\n      if (R.isNil(data) || R.isEmpty(data)) {\n        return true;\n      }\n      return false;\n    },\n    isNilOrEmptyDotPath: R.curry((dotPath, data) => {\n      const val = R_.dotPath(dotPath)(data);\n      if (R.isNil(val) || R.isEmpty(val)) {\n        return true;\n      }\n      return false;\n    }),\n    sortTextAscending: R.sort((a, b) => a.localeCompare(b)),\n    sortAscending: R.sort((a, b) => a - b),\n    sortTextAscendingByPath: R.curry((path, array) => {\n      return R.sort((a, b) => {\n        const aV = R.path(path)(a);\n        const bV = R.path(path)(b);\n        return aV.localeCompare(bV);\n      })(array);\n    }),\n    sortTextDescendingByPath: R.curry((path, array) => {\n      return R.sort((a, b) => {\n        const aV = R.path(path)(a);\n        const bV = R.path(path)(b);\n        return bV.localeCompare(aV);\n      })(array);\n    }),\n    sortTextAndNumericAscendingWithGetter: R.curry((getter, a, b) => {\n      const aV = getter(a);\n      const bV = getter(b);\n      return aV.localeCompare(bV, undefined, {\n        isNumeric: true\n      });\n    }),\n    sortTextAndNumericDescendingWithGetter: R.curry((getter, a, b) => {\n      const aV = getter(a);\n      const bV = getter(b);\n      return bV.localeCompare(aV, undefined, {\n        isNumeric: true\n      });\n    }),\n    mapIndexed: R.addIndex(R.map),\n    try: R.curry((fn, arg) => {\n      try {\n        return fn(arg);\n      } catch (e) {\n        return false;\n      }\n    }),\n    safeLast(array) {\n      if (R.isEmpty(array) || !R.is(Array, array)) {\n        return '';\n      }\n      return R.last(array);\n    },\n    safeLastOr: R.curry((defaultValue, array) => {\n      if (R.isEmpty(array) || !R.is(Array, array)) {\n        return defaultValue;\n      }\n      return R.last(array);\n    }),\n    safeHead(array) {\n      if (R.isEmpty(array) || !R.is(Array, array)) {\n        return '';\n      }\n      return R.head(array);\n    },\n    safeHeadOr: R.curry((defaultValue, array) => {\n      if (R.isEmpty(array) || !R.is(Array, array)) {\n        return defaultValue;\n      }\n      return R.head(array);\n    }),\n    ensurePathOr(type, pathArray, detail) {\n      const value = R.path(pathArray, detail) || type;\n      if (!R.equals(R.type(type), R.type(value))) {\n        return type;\n      }\n      return value;\n    },\n    mergeRightWhenNotEmpty(obj1, obj2) {\n      const overwriteIfEmpty = (key, left, right) => {\n        if (this.isNilOrEmpty(right)) {\n          return left;\n        }\n        return right;\n      };\n      return R.mergeWithKey(overwriteIfEmpty, obj1, obj2);\n    },\n    /**\n     * merge an array of objects using supplied function with signature (left, right) => return either left/right\n     */\n    mergeAllWith: R.curry((fn, array) => {\n      return R.reduce(R.mergeWith(fn), {}, array);\n    }),\n    /**\n     * merge an array of objects by key using supplied function with signature (key, left, right) => return either left/right\n     */\n    mergeAllWithKey: R.curry((fn, array) => {\n      return R.reduce(R.mergeWithKey(fn), {}, array);\n    }),\n    /**\n     * checks if all properties supplied in array are equal in two objects\n     */\n    allEqProps: R.curry((props, obj1, obj2) => {\n      // @TODO: deprecated. use allEqDotPaths\n      return R.reduceWhile(R.equals(true), (acc, prop) => {\n        return R.eqProps(prop, obj1, obj2);\n      }, true, props);\n    }),\n    /**\n     * checks if all dot paths supplied in array are equal in two objects\n     */\n    allEqDotPaths: R.curry((dotPaths, obj1, obj2) => {\n      return R.reduceWhile(R.equals(true), (acc, dotPath) => {\n        const path = R.split('.', dotPath);\n        return R.equals(R.path(path, obj2), obj1[dotPath]);\n      }, true, dotPaths);\n    }),\n    dotPath: R.curry((dotPath, obj) => {\n      const path = R.split('.')(dotPath);\n      return R.path(path, obj);\n    }),\n    dotPathOr: R.curry((orValue, dotPath, obj) => {\n      const path = R.split('.')(dotPath);\n      return R.pathOr(orValue, path, obj);\n    }),\n    /**\n     * find by props\n     * @param  {object} objectToMatch - key value pair. prop => value to match\n     * @param  {array} array - array of objects\n     * @return {object} object found\n     */\n    findByProps: R.curry((objectToMatch, array) => {\n      // @TODO: deprecated. just use findByDotPaths\n      const keysToMatch = R.keys(objectToMatch);\n      const matchAllProps = nventor.allEqProps(keysToMatch, objectToMatch);\n      const found = R.filter(matchAllProps)(array);\n      if (found.length > 0) {\n        return R.head(found);\n      }\n      return false;\n    }),\n    /**\n     * find by paths\n     * @param  {object} objectToMatch - key value pair. prop => value to match\n     * @param  {array} array - array of objects\n     * @return {object} object found\n     */\n    findByDotPaths: R.curry((objectToMatch, array) => {\n      const keysToMatch = R.keys(objectToMatch);\n      const matchAll = nventor.allEqDotPaths(keysToMatch, objectToMatch);\n      const found = R.filter(matchAll)(array);\n      if (found.length > 0) {\n        return R.head(found);\n      }\n      return false;\n    }),\n    propNotEq: R.curry((prop, value, obj) => {\n      return !R.propEq(prop, value, obj);\n    }),\n    propOrWhenIsNilOrEmpty: R.curry((defaultValue, key, object) => {\n      const value = R.prop(key, object);\n      if (nventor.isNilOrEmpty(value)) {\n        return defaultValue;\n      }\n      return value;\n    }),\n    /**\n     * group an array and group by array of prop values.\n     * will return an array of array\n     */\n    groupByEqProps: R.curry((props, array) => {\n      const byEqProps = item => {\n        const key = R.pipe(R.pick(props), R.values, R.join('--'))(item);\n        return key;\n      };\n      return R.pipe(R.groupBy(byEqProps), R.values)(array);\n    }),\n    /**\n     * creates a model instance\n     * @param {object} - reference to model object\n     * @param {object} data - data to populate model with\n     * @param {object} attrs - (optional) attributes to set\n     * return model instance\n     */\n    createModel(model, data, attrs) {\n      attrs = attrs || {};\n      attrs.constants = _constants.default;\n      model = model.create(attrs);\n      // if (model.setup) {\n      //   model.setup(data)\n      // } else {\n      // @TODO: should move this to model base\n      // @TODO: instead of .populate use .start (or something)\n      // @TODO: which then will call .populate and .setOriginalData\n      // if (data) {\n      if (model.populate) {\n        let newRecordData = {};\n        // try {\n        //   // newRecordData = nventor.copy(data) || {}\n        // } catch (e) {\n        //   newRecordData = data || {}\n        //   // nventor.throw('Cannot clone data ' + adapterName + '. Error: ' + e, data)\n        // }\n        newRecordData = data || {};\n        // custom model with sync abilities (extended from base)\n        model.populate(newRecordData, attrs);\n      } else {\n        // @TODO: remove this\n        // plain ember object model (used for tabs)\n        model.setProperties(data);\n      }\n      // }\n      // }\n\n      return model;\n    },\n    // fmt (string) {\n    //   // if is array then return multiline, else just return unescaped\n    //   if (string != null) {\n    //     var lines = string.split(/\\r\\n|\\r|\\n/g)\n    //     if (lines.length > 1) {\n    //       lines.map(line => {\n    //         // escape user data\n    //         return Ember.Handlebars.Utils.escapeExpression(line)\n    //       })\n\n    //       // @todo: consider wrapping each line in a custom tag\n    //       // eg. <p class='multi-line'>line</p>\n    //       // then multi-line class can handle styling\n    //       return htmlSafe(lines.join('<br/>'))\n    //     }\n    //   }\n\n    //   // not multiline, do nothing, return original string\n    //   return string\n    // },\n\n    /**\n     * check dot path for isNilOrEmpty and then returns default value if isNilOrEmpty\n     */\n    isNilOrEmptyDotPathOr: R.curry((defaultValue, path, obj) => {\n      return R.pipe(R_.dotPath(path), R.when(RA.isNilOrEmpty, R.always(defaultValue)))(obj);\n    }),\n    /**\n     * check path for isNilOrEmpty and then returns default value if isNilOrEmpty\n     */\n    isNilOrEmptyPathOr: R.curry((defaultValue, path, obj) => {\n      return R.pipe(R.path(path), R.when(RA.isNilOrEmpty, R.always(defaultValue)))(obj);\n    }),\n    convertToArray: array => {\n      if (R.is(Array, array)) {\n        return array;\n      }\n      if (nventor.isNilOrEmpty(array)) {\n        return [];\n      }\n      return [array];\n    },\n    arrayToObject(array, keyField) {\n      return array.reduce((obj, item) => {\n        obj[item[keyField]] = item;\n        return obj;\n      }, {});\n    },\n    /**\n     * get max (positive) number from list\n     * @param {array} array\n     * @returns {number}\n     */\n    maxInList(array) {\n      return R.reduce(R.maxBy(Math.abs), 0)(array);\n    },\n    /**\n     * return without aplha\n     * eg. A1 => 1\n     * @param {string} string\n     * @returns {string}\n     */\n    withoutAlpha(string) {\n      return R.replace(/\\D/g, '')(string);\n    },\n    /**\n     * return without number\n     *\n     * @param {*} string\n     * @returns\n     */\n    withoutNumbers(string) {\n      return R.replace(/\\d/g, '')(string);\n    },\n    /**\n     * returns default value if value does not exist\n     * @param  {mixed} value\n     * @param  {mixed} defaultValue\n     * @return {mixed} either value or default\n     */\n    returnDefault(value, defaultValue) {\n      if (defaultValue != null) {\n        return defaultValue;\n      }\n      return value;\n    },\n    getFilesArray(filesList) {\n      let filesArray = [];\n      if (filesList.length === 0) {\n        filesArray = false;\n      } else {\n        filesArray = Array.prototype.slice.call(filesList);\n      }\n      return filesArray;\n    },\n    confirm: {\n      /**\n       * confirms whether variable is an object\n       * @param  {mixed} obj\n       * @return {Boolean}\n       */\n      isObject(obj) {\n        if (obj !== null && typeof obj === 'object') {\n          // arrays are still considered objects..\n          if (!R.is(Array, obj)) {\n            return true;\n          }\n        }\n        return false;\n      },\n      /**\n       * determines if value is a function\n       * @param  {mixed}  value\n       * @return {Boolean}\n       */\n      isFunction(value) {\n        var getType = {};\n        return value && getType.toString.call(value) === '[object Function]';\n      },\n      /**\n       * determines if value is numeric\n       * @param  {mixed}  n\n       * @return {Boolean}\n       */\n      isNumeric(n) {\n        return !isNaN(parseFloat(n)) && isFinite(n);\n      },\n      isNotNumeric(n) {\n        if (!isNaN(parseFloat(n)) && isFinite(n)) {\n          return false;\n        }\n        return true;\n      },\n      /**\n       * returns value if exists\n       * @param  {object/array}  obj\n       * @param  {string}  key\n       * @param  {mixed}  defaultValue\n       * @return {value}\n       */\n      get(obj, key, defaultValue) {\n        var self = nventor;\n        var value;\n        // var value = ''\n        if (self.confirm.isEmpty(obj) !== true) {\n          if (self.confirm.isObject(obj)) {\n            // this has problems sometimes. (when using template hash to create object?)\n            // this should be deprecated.\n            var exists = obj?.hasOwnProperty?.(key);\n            if (exists) {\n              value = obj[key];\n            }\n          }\n          if (R.is(Array, obj)) {\n            if (key in obj) {\n              value = obj[key];\n            }\n          }\n        }\n\n        // if default value exists (defaultValue of false would also return false)\n        if (defaultValue != null && value == null) {\n          value = defaultValue;\n        }\n        return value;\n      },\n      /**\n       * checks whether object/array/string is empty\n       * (empty = true when value = false, '', null, undefined, array.length is 0, object has no own properties)\n       * @param  {mixed}  value\n       * @param {mixed} defaultTrue value to return if empty is true\n       * @param {mixed} defaultFalse value to return if empty is false\n       * @return {Boolean|mixed}\n       */\n      isEmpty(value, defaultTrue, defaultFalse) {\n        var self = nventor;\n        if (value === '' || value === null || typeof value === 'undefined' || value === false) {\n          return self.returnDefault(true, defaultTrue);\n        }\n        if (self.confirm.isObject(value)) {\n          // is an object\n          for (var prop in value) {\n            if (value.hasOwnProperty(prop)) {\n              return self.returnDefault(false, defaultFalse);\n            }\n          }\n          return self.returnDefault(true, defaultTrue);\n        }\n        if (R.is(Array, value)) {\n          // is an array\n          if (value.length > 0) {\n            return self.returnDefault(false, defaultFalse);\n          }\n          return self.returnDefault(true, defaultTrue);\n        }\n        if (self.confirm.isNumeric(value)) {\n          if (value === 0) {\n            return self.returnDefault(true, defaultTrue);\n          }\n          return self.returnDefault(false, defaultFalse);\n        }\n        return self.returnDefault(false, defaultFalse);\n      }\n    },\n    random: {\n      _alpha() {\n        return 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n      },\n      _digits() {\n        return '0123456789';\n      },\n      digits(length) {\n        let random = '';\n        const possible = this._digits();\n        for (let i = 0; i < length; i++) {\n          random += possible.charAt(Math.floor(Math.random() * possible.length));\n        }\n        return random;\n      },\n      alpha(length) {\n        let random = '';\n        const possible = this._alpha();\n        for (var i = 0; i < length; i++) {\n          random += possible.charAt(Math.floor(Math.random() * possible.length));\n        }\n        return random;\n      },\n      alphaNum(length) {\n        let random = '';\n        const possible = this._alpha() + this._digits();\n        for (var i = 0; i < length; i++) {\n          random += possible.charAt(Math.floor(Math.random() * possible.length));\n        }\n        return random;\n      }\n    },\n    pluckPath(dotPath, obj) {\n      const path = R.split('.')(dotPath);\n      return R.pipe(R.map(R.pathOr(null, path)))(obj);\n    },\n    /**\n     * parent: the container that has scroll behaviour, default to be window\n     * goTo: the element to be scrolled to\n     * offset: default to be 0\n     * horizontal: default to be false, determines the scroll direction\n     * @param {Object} params\n     * @void\n     */\n    goToElement({\n      parent,\n      goTo,\n      offset = 0,\n      horizontal = false\n    }) {\n      Ember.run.scheduleOnce('afterRender', () => {\n        if (RA.isNilOrEmpty(parent)) {\n          parent = window;\n        }\n        if (RA.isNotNilOrEmpty(goTo)) {\n          if (horizontal) {\n            const scrollLeft = goTo?.offsetLeft - offset;\n            parent.scrollTo({\n              left: scrollLeft,\n              behavior: 'smooth'\n            });\n          } else {\n            const scrollTop = goTo?.offsetTop - offset;\n            parent.scrollTo({\n              top: scrollTop,\n              behavior: 'smooth'\n            });\n          }\n        }\n      });\n    },\n    goToTop(offset) {\n      window.$('html, body').animate({\n        scrollTop: window.$('body').offset().top + offset\n      }, 200);\n      // offset = offset || 0\n      // scheduleOnce('afterRender', () => {\n      //   window.$('html, body').animate({\n      //     scrollTop: window.$('body').offset().top + offset\n      //   }, 200)\n      // })\n    },\n    parseParams(location) {\n      if (!location) {\n        location = window.location;\n      }\n\n      // need to handle params that are arrays\n      // a[]=1&a[]=2 ==> a: [1, 2]\n\n      // a=&b=2\n      // { a: '', b: 2}\n\n      return R.pipe(R.pathOr('', ['search']),\n      // ?a=1&b=2\n      R.split('?'),\n      // [?, a=1&b=2]\n      R.drop(1),\n      // [a=1&b=2]\n      R.map(R.split('&')),\n      // [ [a=1], [b=2] ]\n      R.map(R.map(R.split('='))),\n      // [ [a, 1], [b, 2] ]\n      R.unnest, R.fromPairs)(location);\n    },\n    parseParamsForUrl(url) {\n      if (!R.is(String)(url)) {\n        return {};\n      }\n      return R.pipe(decodeURIComponent, R.split('?'),\n      // [?, a=1&b=2]\n      R.drop(1),\n      // [a=1&b=2]\n      R.map(R.split('&')),\n      // [ [a=1], [b=2] ]\n      R.map(R.map(R.split('='))),\n      // [ [a, 1], [b, 2] ]\n      R.unnest, R.fromPairs)(url);\n    },\n    removeAndUpdateQueryParams(toRemoveParams = []) {\n      const currentUrl = R.pipe(R.split('?'), this.safeHeadOr(false))(window.location.href);\n      if (currentUrl) {\n        const params = this.parseParams(window.location);\n        const updatedParams = R.omit(toRemoveParams)(params);\n        let newUrl = currentUrl;\n        if (!R.isEmpty(updatedParams)) {\n          const queryString = R.pipe(R.toPairs, R.map(R.join('=')), R.join('&'))(updatedParams);\n          newUrl = `${newUrl}?` + queryString;\n        }\n        window.history.replaceState(updatedParams, null, newUrl);\n        return newUrl;\n      }\n      return false;\n    },\n    /**\n     * makes dash separated words into camel case\n     */\n    dashToCamelCase(string) {\n      return R.pipe(R.split('-'), RA.mapIndexed((word, index) => {\n        word = R.trim(word) || '';\n        if (index > 0) {\n          return R.pipe(RA.mapIndexed((char, pos) => {\n            if (pos === 0) {\n              return R.toUpper(char);\n            }\n            return char;\n          }), R.join(''))(word);\n        }\n        return word;\n      }), R.join(''))(string);\n    },\n    truncate({\n      text,\n      char = 100,\n      byLines = false\n    }) {\n      let truncated = text;\n      if (text.length > char && !byLines) {\n        truncated = R.take(char, text) + '...';\n      }\n      return truncated;\n    },\n    maskString(str, {\n      start = 0,\n      end = 0,\n      placeholder\n    }) {\n      let startStr = '';\n      if (start) {\n        if (str.length <= start) {\n          startStr = R.take(1)(str);\n        } else {\n          startStr = R.take(start)(str);\n        }\n      }\n      let endStr = '';\n      if (end) {\n        if (str.length <= end) {\n          endStr = R.takeLast(1)(str);\n        } else {\n          endStr = R.takeLast(end)(str);\n        }\n      }\n      if (startStr || endStr) {\n        return `${startStr}${placeholder}${endStr}`;\n      }\n      return '';\n    },\n    getOuterWidth(element, includeMargin = false) {\n      // Get the computed style of the element\n      const styles = window.getComputedStyle(element);\n\n      // Calculate the outer width\n      let outerWidth = element.offsetWidth; // Includes content and padding\n\n      // Add the border width\n      outerWidth += parseInt(styles.borderLeftWidth, 10) + parseInt(styles.borderRightWidth, 10);\n\n      // Optionally, add the margin if includeMargin is true\n      if (includeMargin) {\n        outerWidth += parseInt(styles.marginLeft, 10) + parseInt(styles.marginRight, 10);\n      }\n      return outerWidth;\n    },\n    moveObjectUp(obj, array) {\n      const index = R.findIndex(R.equals(obj), array);\n      if (index <= 0 || index === -1) {\n        return array; // Object not found or already at the top\n      }\n      return R.update(index, array[index - 1], R.update(index - 1, array[index], array));\n    },\n    moveObjectDown(obj, array) {\n      const index = R.findIndex(R.equals(obj), array);\n      if (index === -1 || index === array.length - 1) {\n        return array; // Object not found or already at the bottom\n      }\n\n      // swap places\n      return R.update(index, array[index + 1], R.update(index + 1, array[index], array));\n    },\n    getObjectDifference(obj1 = {}, obj2 = {}) {\n      const keysDiff = R.difference(R.keys(obj2), R.keys(obj1)); // Keys in obj2 but not in obj1\n      const valueDiff = R.filter(key => !R.equals(obj1[key], obj2[key]),\n      // Check for value changes\n      R.keys(obj1));\n      const differentKeys = R.concat(keysDiff, valueDiff);\n      return R.pick(differentKeys, obj2); // Extract differences from obj2\n    },\n    isNotNilOrEmpty: RA.isNotNilOrEmpty\n  };\n  var _default = _exports.default = nventor;\n});","define(\"client/utils/play-muted-video\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = playMutedVideo;\n  const gestureEvents = ['touchstart', 'click', 'scroll'];\n\n  // Videos whose autoplay was blocked, waiting for the visitor's first gesture.\n  // A single shared coordinator keeps at most three document listeners alive at\n  // any time, regardless of how many videos are pending — instead of three per\n  // video, which would leak listeners (and the detached video elements their\n  // closures capture) whenever a block is removed before the visitor interacts.\n  const pendingVideos = new Set();\n  let listenersRegistered = false;\n  function playPendingVideos() {\n    pendingVideos.forEach(videoElement => {\n      // A block may have been removed before the gesture arrived — skip it so we\n      // don't resurrect a detached element.\n      if (videoElement.isConnected) {\n        videoElement.play().catch(console.error);\n      }\n    });\n    pendingVideos.clear();\n    gestureEvents.forEach(eventName => {\n      document.removeEventListener(eventName, playPendingVideos);\n    });\n    listenersRegistered = false;\n  }\n  function registerGestureListeners() {\n    if (listenersRegistered) {\n      return;\n    }\n    gestureEvents.forEach(eventName => {\n      document.addEventListener(eventName, playPendingVideos, {\n        once: true,\n        passive: true\n      });\n    });\n    listenersRegistered = true;\n  }\n\n  /**\n   * Attempt muted, inline playback of a video element and gracefully recover when\n   * the browser blocks autoplay.\n   *\n   * iOS Low Power Mode and the Instagram/Facebook in-app WebViews reject a\n   * programmatic play() with NotAllowedError even on a muted video — no attribute\n   * can override that. The only thing that starts playback there is a user gesture,\n   * so when autoplay is blocked we queue the video and retry every pending video\n   * once the visitor first taps or scrolls.\n   *\n   * @param {HTMLVideoElement} videoElement\n   * @returns {Promise<void>}\n   */\n  function playMutedVideo(videoElement) {\n    if (!videoElement) {\n      return Promise.resolve();\n    }\n    videoElement.muted = true;\n    return videoElement.play().catch(error => {\n      // Only autoplay-policy blocks are expected here. Anything else is a real\n      // failure worth surfacing.\n      if (error?.name !== 'NotAllowedError') {\n        console.error('Error while playing video: ', error);\n        return;\n      }\n      pendingVideos.add(videoElement);\n      registerGestureListeners();\n    });\n  }\n});","define(\"client/utils/reserved-block-height\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.calculateReservedBlockHeight = calculateReservedBlockHeight;\n  _exports.carryOverReservedHeight = carryOverReservedHeight;\n  _exports.getClampedTextHeight = getClampedTextHeight;\n  _exports.getGridGap = getGridGap;\n  _exports.hasRenderedBlock = hasRenderedBlock;\n  /**\n   * Products and blogs page blocks render an empty placeholder wrapper on first\n   * paint, and the real slider/grid is swapped in afterwards (see\n   * `websiteService.replaceProductsSliderAtIndex` and\n   * `ComponentsGroupBlogs.replaceBlogsSliders`). Without a reserved box the swap\n   * pushes everything below it down, which is where most of the page's CLS comes\n   * from.\n   *\n   * This module owns the row maths that both blocks share. Each block works out\n   * its own card geometry, because the products and blogs cards are sized by\n   * different stylesheets.\n   */\n\n  const GRID_GAP = 16;\n  // .components-group-content--grid drops its gap on narrow viewports (app.scss)\n  const GRID_GAP_MAX_VIEWPORT_WIDTH = 500;\n  const CARD_FONT_SIZES = {\n    small: 14.4,\n    medium: 16,\n    large: 17.6\n  };\n  const TEXT_LINE_HEIGHT_IN_EM = 1.5;\n\n  // min-heights of the `--lines-{count}` clamp classes in app.scss, in em. Only the\n  // 5 line class reserves more than the lines themselves need.\n  const CLAMPED_TEXT_MIN_HEIGHTS_IN_EM = {\n    1: 1,\n    2: 3,\n    3: 4.5,\n    4: 6,\n    5: 8\n  };\n  const IMAGE_HEIGHT_FACTORS = {\n    oneByOne: 1,\n    twoByThree: 3 / 2,\n    threeByTwo: 2 / 3,\n    threeByFour: 4 / 3,\n    fourByThree: 3 / 4\n  };\n  function getCardFontSize(fontSizeName) {\n    return CARD_FONT_SIZES[fontSizeName] || CARD_FONT_SIZES.small;\n  }\n\n  /**\n   * Height of a text block clamped to a fixed number of lines.\n   */\n  function getClampedTextHeight(lineCount, fontSizeName) {\n    const lines = parseInt(lineCount, 10) || 2;\n    const clampedHeightInEm = CLAMPED_TEXT_MIN_HEIGHTS_IN_EM[lines] || 0;\n    const heightInEm = Math.max(TEXT_LINE_HEIGHT_IN_EM * lines, clampedHeightInEm);\n    return Math.round(heightInEm * getCardFontSize(fontSizeName));\n  }\n  function getGridGap() {\n    if (window.innerWidth <= GRID_GAP_MAX_VIEWPORT_WIDTH) {\n      return 0;\n    }\n    return GRID_GAP;\n  }\n  function getImageHeight(imageWidth, imageRatio) {\n    const heightFactor = IMAGE_HEIGHT_FACTORS[imageRatio] || IMAGE_HEIGHT_FACTORS.oneByOne;\n    return Math.round(imageWidth * heightFactor);\n  }\n\n  /**\n   * @param {object} params\n   * @param {boolean} params.isSlider sliders render a single row\n   * @param {number} params.itemsPerRow cards that fit on one row at this viewport\n   * @param {number} params.itemCount how many cards the block will render\n   * @param {number} params.imageWidth painted width of a single card's image\n   * @param {string} params.imageRatio one of the aspect ratio names, eg 'oneByOne'\n   * @param {number} params.cardHeightBelowImage the rest of the card, margins included\n   * @returns {number} height to reserve, in pixels\n   */\n  function calculateReservedBlockHeight({\n    isSlider,\n    itemsPerRow,\n    itemCount,\n    imageWidth,\n    imageRatio,\n    cardHeightBelowImage\n  }) {\n    const cardHeight = getImageHeight(imageWidth, imageRatio) + cardHeightBelowImage;\n    if (isSlider) {\n      return cardHeight;\n    }\n    const rowCount = Math.max(1, Math.ceil(itemCount / itemsPerRow));\n    return cardHeight * rowCount;\n  }\n\n  /**\n   * True once the placeholder has been swapped for the real slider/grid, which\n   * carries the components-group class the placeholder never has.\n   */\n  function hasRenderedBlock(wrapper) {\n    return wrapper.classList.contains('components-group');\n  }\n\n  /**\n   * Keeps the reserved box when the placeholder is swapped for the real component,\n   * so the swap itself does not shift the page.\n   */\n  function carryOverReservedHeight(placeholder, replacement) {\n    const reservedHeight = placeholder?.style?.minHeight;\n    if (!reservedHeight) {\n      return;\n    }\n    replacement.style.minHeight = reservedHeight;\n  }\n});","\n","define('client/config/environment', [], function() {\n  var prefix = 'client';\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(\"client/app\")[\"default\"].create({\"apiVersionTag\":\"v2351\",\"isBetaMode\":false,\"apiUrl\":\"https://api.bigordr.shop/bigordr-api-erp/v2351\",\"serverUrl\":\"https://api.bigordr.shop/bigordr-api-erp/v2351\",\"socketUrl\":\"https://api.bigordr.shop/bigordr-api-erp/v2351\",\"shopUrl\":\"https://bigordr.com/shop\",\"appUrl\":\"https://beta.bigordr.com\",\"hostingUrl\":\"https://cdn.bigordr.com\",\"previewHostingUrl\":\"https://cdn.bigordr.com\",\"websiteHost\":\"bigordr.com\",\"bigordrHost\":\"https://bigordr.com\",\"storageUrl\":\"https://api.bigordr.shop/bigordr-gcloud-storage/latest\",\"cloudRunServiceName\":\"bigordr-api-erp\",\"apiUrlCloudRunJobs\":\"bigordr-api-erp-jobs\",\"mainAppUrl\":\"https://app.bigordr.com\",\"betaUrl\":\"https://beta.bigordr.com\",\"serverJobsUrl\":\"https://api.bigordr.shop/bigordr-api-erp-jobs/v2351\",\"name\":\"client\",\"version\":\"2.4.25+8890b23e\"});\n          }\n        \n"],"names":[],"mappings":"AAAA;AACA;AACA;;ACFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjQA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5wBA;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;;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;;AC9BA;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;;ACbA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AClBA;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;;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;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;;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;;ACzBA;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;;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;;ACnCA;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;;ACpBA;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;;ACnBA;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;;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;;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;;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;;AClCA;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;;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;;ACdA;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;;ACrBA;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;;ACpBA;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;;ACnBA;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;;AChBA;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;;AC7BA;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;;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;;ACrDA;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;;ACdA;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;;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;;AClCA;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;;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;;AC9BA;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;;AClBA;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;;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;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;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;;ACtBA;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;AACA;AACA;AACA;;ACrCA;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;;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;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;;ACxBA;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;;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;;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;;ACjCA;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;;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;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;;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;AACA;AACA;AACA;;AChBA;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;;AChBA;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;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;;AC3CA;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;;AClBA;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;;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;;ACjBA;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;;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;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC1eA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACl0BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjlBA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/EA;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;;ACrQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;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;;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;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AC3IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;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;;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;;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;;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;;ACvDA;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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;;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;;AC5BA;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;;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;;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;;ACtCA;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;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;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;;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;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;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;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;;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;;AC5WA;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;;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;;ACxCA;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;;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;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACh2BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;;ACLA;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;;AC3BA;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;;ACvBA;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;AACA;;ACnCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9ZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;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;;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;;ACvDA;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;;ACpBA;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;;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;;ACrCA;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;;ACvBA;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;;ACvBA;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;;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;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;;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;;AC5CA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACVA;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;;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;;ACxEA;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;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACpBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;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;;AC/GA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;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;;ACvBA;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;;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;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;;ACpBA;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;;ACXA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACzBA;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;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACp0CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACnFA;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;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;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;;ACrBA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACvBA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjIA;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;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;;ACrBA;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;;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;;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;;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;;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;;AC1BA;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;;AC1CA;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;;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;;AC7BA;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;;ACvBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AChKA;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;;ACpBA;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;;AC7BA;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;;ACtBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrtBA;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;;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;;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;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;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;;AC5BA;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;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;;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;;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;;AC3CA;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;;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;;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;;ACxBA;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;;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;;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;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;;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;;ACnDA;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;;ACpDA;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;;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;;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;;AC3BA;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;;AC1CA;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;;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;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;AACA;AACA;AACA;AACA;AACA;;AChBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;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;;ACxCA;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;;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;;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;;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;;AC5CA;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;;ACpBA;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;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9aA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;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;;ACVA;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;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;;AC9DA;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;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;;ACxBA;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;;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;;ACxBA;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;;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;AACA;AACA;AACA;AACA;AACA;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;;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;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;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;;AC1EA;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;;ACvDA;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;;ACrHA;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;;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;;ACnCA;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;;ACbA;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;;ACTA;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;;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;;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;;ACxCA;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;;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;;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;;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;;AC/EA;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;;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;AACA;AACA;;ACbA;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;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;;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;AACA;AACA;;ACbA;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;;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;;AClCA;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;;ACbA;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;;ACtBA;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;;AC/EA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClKA;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;;ACtBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC1DA;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;;ACnFA;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;;AC7CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/MA;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;;AC1EA;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;;AC1EA;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;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;ACbA;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;;AClCA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AClCA;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;;ACzFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChhBA;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;;AC1GA;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;;ACpDA;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;;AC7CA;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;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;ACbA;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;;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;;ACpCA;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;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACbA;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;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;;ACtBA;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;;ACpIA;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;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;;ACbA;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;;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;;ACrCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;;AC7DA;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;;ACxBA;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;;AC1FA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;;ACbA;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;;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;;ACrCA;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;;ACbA;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;;ACbA;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;;ACnBA;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;;AC1BA;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;;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;;AC5BA;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;;AC5BA;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;;AClBA;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;;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;;ACzCA;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;;AC3CA;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;;ACjCA;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;;ACzFA;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;;ACjCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACtCA;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;;ACrHA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;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;;ACjGA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;;AC3GA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACn+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;;ACrCA;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;;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;;ACpIA;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;;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;;AC9BA;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;;AC9BA;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;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;;ACjCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzLA;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;;ACrCA;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;;AChFA;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;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpFA;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;;ACpCA;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;;AC9BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7LA;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;;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;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;;AC1CA;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;;ACpCA;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;;AC7CA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5RA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5UA;AACA;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;;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;;AC3BA;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;;ACtCA;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;;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;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxHA;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;;ACbA;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;;AC7CA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClPA;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;;ACbA;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;;AC3GA;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;;AC9BA;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;;ACxCA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5PA;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;;ACxGA;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;;ACpGA;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;;AC7CA;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;;ACvCA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtXA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjaA;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;;ACvGA;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;;ACrEA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzOA;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;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;;ACxHA;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;;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;;ACxBA;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;;AC1GA;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;;ACxBA;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;;AC9EA;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;;ACpDA;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;;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;;AC9BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1LA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;;ACbA;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;;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;;ACrHA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;;ACbA;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;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;;AC1EA;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;;ACtCA;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;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;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;;AC9GA;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;;ACpHA;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;;ACpBA;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;;ACbA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjZA;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;;AC/BA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7OA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtZA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClPA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3WA;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;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;;AC1BA;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;;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;;AC3BA;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;;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;;ACbA;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;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;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;;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;;ACxBA;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;;AClBA;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;;ACvBA;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;;ACzHA;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;;ACbA;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;;ACrBA;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;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;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC1FA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;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;;AC7DA;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;;AC1CA;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;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC9BA;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;;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;;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;;AC9EA;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;;ACbA;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;;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;;AC1BA;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;;ACvCA;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;;ACjIA;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;;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AChFA;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;;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;;ACtCA;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;;AC5BA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACzDA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;;ACbA;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;;ACbA;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;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;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;;AC/CA;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;;ACbA;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;AACA;;ACRA;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;;ACpDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjhBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/3BA;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;;AC5FA;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;;AClBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjKA;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;;ACzBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9VA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7QA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvRA;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;;AChBA;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;;ACzBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrKA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClRA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACrBA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;;AChBA;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;;AChBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzVA;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;;AClFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;AC9FA;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;;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;;AChFA;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;;AC1CA;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;;ACpCA;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;;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;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;AC1CA;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;;ACtEA;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;;ACvEA;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;;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;;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;;AChGA;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;;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;;AC1CA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClZA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9QA;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;;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;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;ACrBA;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;;AC7DA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACbA;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;;ACzGA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5TA;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;;ACtCA;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;;ACtCA;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;;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;;ACdA;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;;ACtBA;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;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;;ACTA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;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;;AC5CA;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;;ACxBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnOA;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;;AC1EA;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;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACnDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC57BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACx2BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1jBA;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;;ACTA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpQA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnQA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACxCA;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;;ACnGA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;;ACbA;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;;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;;ACzGA;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;;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;;AClCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACz4BA;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;;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;;AClCA;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;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC3GA;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;;AC7CA;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;;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;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;;ACTA;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;;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;;AC5GA;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;;AC/BA;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;;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;;ACnDA;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;;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;;AC1CA;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;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;;ACjCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7zBA;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;;AC3EA;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;;AC7FA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9QA;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;;AC/GA;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;;ACjHA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvMA;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;;AC7FA;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;;AC/FA;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;;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;;ACxBA;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;;AC7BA;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;;AC/FA;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;;ACtGA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChMA;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;;AC9CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;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;;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;;AC7CA;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;;ACtBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtJA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACllBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACtBA;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;;ACrBA;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;;ACxEA;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;;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;;AC/BA;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;;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;;ACjDA;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;;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;AACA;AACA;AACA;AACA;;AC5IA;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;;ACbA;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;;ACzBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACl1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpJA;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;;AClBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzLA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;AC/CA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACbA;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;;ACbA;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;;ACbA;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;;ACbA;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;;ACbA;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;;ACbA;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;;ACbA;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;;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;;AClHA;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;;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;;ACtCA;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;;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;;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;;AC3BA;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;;ACrDA;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;;ACvEA;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;;AChFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzSA;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;;ACnBA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjQA;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;;ACpFA;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;;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;;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;;AC9CA;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;;ACbA;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;;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;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzVA;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;;AClIA;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;;ACzFA;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;;ACpIA;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;AACA;AACA;AACA;AACA;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;;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;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;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;;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;;ACvFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3PA;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;AACA;;ACRA;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;;ACpDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;AClFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC5DA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;AC5CA;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;;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;;ACjFA;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;;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;;AClHA;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;;ACzGA;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;;AC1BA;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;;ACbA;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;;ACbA;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;;AC1DA;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;;ACbA;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;;ACbA;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;;ACbA;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;;ACzEA;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;;ACjIA;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;;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;;AC7DA;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;AACA;AACA;AACA;;AC3IA;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;;ACxFA;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;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;;ACbA;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;;ACRA;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;;ACnFA;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;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;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;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;;AC3EA;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;;AClDA;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;;ACnDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxTA;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;;ACzBA;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;;AC/CA;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;;AC9CA;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;;AClBA;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;;ACnEA;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;;AC1CA;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;;ACbA;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;;AC7EA;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;;AClGA;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;;AC1DA;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;;ACjEA;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;;ACpFA;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;;AChCA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACbA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACxCA;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;;ACvCA;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;;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;;AChEA;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;;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;;ACrIA;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;;AC3CA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC3BA;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;;ACvBA;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;;AC3BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACnEA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzOA;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;;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;;AC7DA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtPA;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;;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;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACnCA;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;;ACtBA;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;;AC7BA;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;;ACbA;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;;ACjDA;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;;ACvFA;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;;ACxGA;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;;ACnEA;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;;ACbA;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;;ACvBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvgBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACxBA;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACpBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACRA;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;;ACtCA;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;;ACbA;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;;ACpCA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;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;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;;AClDA;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;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACbA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;AACA;;ACzIA;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;;AC1FA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1QA;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;;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;;AC9BA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;AACA;AACA;AACA;;ACVA;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;;AC/CA;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;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChDA;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;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACbA;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;;ACbA;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;;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;;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;;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;;AC7DA;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;;AC9FA;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;;ACpEA;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;;ACjDA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1EA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnOA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChJA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;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;;AClCA;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;;AC1EA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3PA;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;;ACrBA;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;;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;;ACzBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvPA;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;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC3CA;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;;AC1EA;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;AACA;AACA;AACA;AACA;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;;AC7GA;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;;AC9CA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;;AC/BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;AC5HA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC5BA;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;;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;;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;;ACxDA;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;;ACvCA;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;;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;;ACxFA;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;;ACjEA;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;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;;ACpFA;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;;ACjCA;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;;ACvGA;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;;ACpCA;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;;ACrFA;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;;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;;ACvDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClPA;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;;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;;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;;ACjEA;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;;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;;ACzDA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5KA;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;AACA;AACA;AACA;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;;ACbA;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;;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;;ACvCA;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;;ACzBA;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;;ACtDA;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;;AC5DA;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;;ACtBA;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;;AC5HA;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;;ACnEA;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;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;;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;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5UA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/XA;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;;ACtHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;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;;ACvGA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrKA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjaA;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;;AChBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjZA;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACpoBA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;;AC9IA;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;;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;;AC1EA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;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;;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;;AC/HA;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;;AC5HA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnVA;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;;AC1HA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACluBA;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;;ACnBA;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;;ACpDA;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;;AC1HA;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;;AC3CA;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;;ACxEA;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;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;;ACzCA;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;;AC1HA;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;;ACrIA;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;;ACpBA;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;;ACvFA;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;;AC3GA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1YA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7RA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzkBA;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;;ACxCA;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;;AClCA;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;;ACrCA;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;;ACnCA;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;;ACZA;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;;ACZA;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;;ACrCA;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;;ACbA;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;;ACbA;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;AACA;AACA;;ACbA;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;;ACRA;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;;AC/FA;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;;ACrGA;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;;ACtBA;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;;AChIA;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;;ACtBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7JA;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;;ACzCA;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;;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;;AC7CA;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;;ACbA;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;;AC7CA;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;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACjBA;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;;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;;ACjDA;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;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;;ACxBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/NA;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;;ACbA;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;;ACtCA;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;;ACvDA;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;;AC3GA;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;;ACvCA;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;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;;ACVA;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;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;;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;;AC9HA;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;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;;AClFA;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;;AC9HA;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;;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;;AChCA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACxBA;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;;AC9EA;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;;AC5BA;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;;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;;ACnDA;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;;AC5BA;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;;AC1EA;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;;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;;ACxDA;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;;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;;AC5FA;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;;AC7CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtJA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC/BA;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;;ACbA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACjIA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACjDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACpBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5hBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrLA;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;;ACpGA;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;;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;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;;AC9EA;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;;ACnCA;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;;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;;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;;ACpDA;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;;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;;AC1FA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3GA;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;;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;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;;ACvEA;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;;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;;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;;AChCA;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;;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;;AC1BA;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;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACxBA;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;;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;;AC3BA;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;;ACzBA;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;;ACxBA;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;;ACrBA;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;;ACzBA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACxBA;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;;ACbA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrPA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3KA;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;;ACnGA;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;;ACbA;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;;ACbA;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;;ACrCA;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;;AC3CA;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;;ACnBA;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;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;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;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;;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;;ACxBA;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACZA;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;;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;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;;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;;AC3BA;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;AACA;AACA;;ACbA;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;;ACbA;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;;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;;ACpCA;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;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACbA;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;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;;ACtBA;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;;ACpIA;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;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACjEA;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;;AC7CA;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;;ACxBA;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;;ACxCA;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;;AC9CA;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;;ACxDA;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;;ACbA;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;;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;;AC5BA;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;;AC3BA;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;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;;ACzBA;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;;ACnHA;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;;ACxCA;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;;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;;ACxHA;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;;ACrCA;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;;ACxDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;;ACtHA;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;;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;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;;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;;ACpDA;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;;ACpDA;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;;ACxDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzWA;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;;ACbA;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;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;;ACbA;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;;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;;AClIA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtFA;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;;AClDA;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;;ACpDA;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;;AClDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;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;;ACbA;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;;ACtCA;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;;AC/FA;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;;AClDA;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;;AC1EA;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;;AC3BA;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;;ACbA;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;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC/FA;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;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;AACA;AACA;AACA;AACA;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;;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;;ACrEA;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;;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;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;;AC7EA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;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;;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;AACA;AACA;AACA;AACA;AACA;;AC7IA;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;;AC/BA;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;;AC9BA;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;;ACrGA;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;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;;AClHA;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;;ACnGA;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;;AC5BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;ACbA;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;;ACPA;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;;ACbA;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;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;;ACbA;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;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;;ACvCA;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;;ACrEA;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;;ACtCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;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;;ACxBA;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;;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;;ACxDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACpEA;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;;ACbA;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;;ACrIA;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;;AC/BA;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;;ACrDA;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;;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;;ACrDA;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;;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;;ACnDA;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;;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;;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;;ACpDA;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;;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;;AClCA;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;;AC9CA;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;;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;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/KA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzOA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;;ACbA;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;;ACrDA;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;AACA;;ACzIA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9PA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjZA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1QA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC3CA;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;;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;;ACTA;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;;ACbA;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;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;;ACzBA;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;;AC9FA;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;;AC7FA;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;;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;;ACxBA;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;;ACxBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC3CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC9CA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;AC9BA;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;;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;;ACxDA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACtCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACzBA;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;AACA;AACA;AACA;AACA;AACA;AACA;;AC9IA;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;;ACpCA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChWA;AACA;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;;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;;ACzBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;;ACrDA;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;;AC7CA;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;;ACnEA;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;;AC1HA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC7GA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC7GA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACpGA;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;;ACjGA;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;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC1BA;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;;AClFA;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;;ACxDA;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;;ACxDA;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;;ACxBA;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;;ACxDA;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;;ACbA;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;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;;ACxBA;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;;ACpEA;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;;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;;AC9DA;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;;AC/BA;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;;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;;ACtDA;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;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;ACbA;AACA;;ACDA;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;;ACxFA;AACA;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;;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;;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;;AC3BA;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;;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;;AC1EA;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;;ACrIA;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;;ACrDA;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;;AC3CA;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;;ACnDA;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;;ACjEA;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;;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;;ACzBA;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;;AC3FA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC7FA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxJA;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;;ACtGA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrWA;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;;AC1BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChoBA;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;;AChGA;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;;AC7DA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;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;;AC3BA;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;;AC1BA;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;;AC1CA;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;;ACvBA;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;;AClDA;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;;ACRA;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;;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;;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;;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACpIA;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;;AC/CA;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;;ACbA;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;AACA;;ACRA;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;;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;;ACnQA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnJA;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;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;;ACvCA;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;;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;;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;;AC3CA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;;ACnCA;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;;AC5CA;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;;ACnEA;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;;AChDA;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;;AC/BA;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;;AC9EA;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;;ACzBA;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;;AC9BA;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;;AClDA;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;;ACxDA;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;;AC3DA;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;;AC9DA;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;;ACxCA;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;;ACzBA;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;;ACzBA;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;;ACzBA;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;;ACzBA;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;;ACvGA;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;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACrDA;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;;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;;ACvEA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3oBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC1BA;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;;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;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC5HA;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;;AC9EA;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;;ACbA;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;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;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;;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;;AC/DA;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;;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;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;AC9BA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7KA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7nBA;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;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;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;;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;;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;;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;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;ACbA;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;;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;;ACvCA;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;;AC7CA;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;;AChDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;;ACRA;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;;AC7CA;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;;ACvFA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AClFA;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;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;;AC/EA;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;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;;ACpFA;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;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;;ACtGA;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;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9HA;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;;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;;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;;AC7KA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACZA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;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;;ACnCA;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;;ACvCA;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;;AChEA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;ACbA;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;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;;ACtBA;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;;ACjDA;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;;AChCA;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;;ACpIA;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;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;;ACRA;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;;ACzDA;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;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;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;;AC7GA;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;;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;;ACxFA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3UA;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;;ACpEA;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;;ACpEA;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;;ACtFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACjDA;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;;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;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;;ACbA;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;;AC7EA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChZA;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;;AC9EA;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;;AClCA;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;;ACrDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;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;;ACrIA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACtEA;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;;ACrFA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjVA;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;;ACnIA;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;;ACjGA;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;;ACnFA;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;;ACxHA;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;;ACzBA;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;;ACvFA;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;;AC7BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1RA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChNA;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;;AC5DA;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;;ACxGA;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;;AC3EA;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;;ACjDA;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;;ACxCA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;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;;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;;AC7EA;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;;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;;ACzBA;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;;AChGA;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;;ACzDA;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;;AC1EA;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;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;AC3CA;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;;ACtBA;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;;AC7BA;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;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;;ACtBA;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;;ACxHA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1LA;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;;AC5DA;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;;AC3EA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC5GA;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;;ACPA;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;;ACbA;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;AACA;AACA;;ACTA;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;;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;;ACxGA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACpEA;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;;AC/CA;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;;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;;ACpCA;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;;ACrFA;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;;ACjCA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;AC/EA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;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;;AC7DA;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;;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;;ACjCA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrRA;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;;ACxBA;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;;AC9DA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpQA;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;;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;;ACxBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxiCA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpQA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5SA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;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;;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;;ACxCA;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;;AC7CA;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;;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;;AC9FA;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;;AC7BA;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;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/SA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;ACjEA;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;;AC1CA;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;;ACvIA;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;;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;AACA;AACA;;ACjEA;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;;ACvFA;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;;ACvDA;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;;AC7CA;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;;AC5GA;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;;ACjGA;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;;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;;ACvDA;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;;ACtFA;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;;ACbA;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;;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;;AC7BA;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;;ACbA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzOA;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;;ACjCA;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;;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;;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;;ACxBA;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;;ACbA;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;;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;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;;ACpDA;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;;AC3BA;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;;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;;AC9BA;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;;ACpBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;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;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;ACpBA;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;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;;ACzDA;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;;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;;AClCA;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;;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;;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;;ACtCA;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;;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;;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;;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;;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;;ACrDA;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;;AC7BA;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;;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;;AChFA;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;;AC1BA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/vBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzYA;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;;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;;ACPA;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;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;AC1OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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;;ACZA;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;;ACDA;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;;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;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC1EA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9oEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AClBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACPA;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;;AC1CA;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;;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;;AC7BA;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;;ACnCA;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;;ACvBA;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;;ACvBA;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;;AC7BA;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;;ACnEA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACpBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjiFA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3LA;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;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;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;AACA;AACA;AACA;;AChFA;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;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;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACtBA;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;;ACvCA;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;;ACXA;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;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;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACxKA;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;;AClKA;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;;AC3BA;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;;ACvCA;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;;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;;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;;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;;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;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;;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;;ACxFA;AACA;AACA;AACA;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;;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;;AC7CA;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;;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;;ACnBA;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;;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;;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;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;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzkBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACzNA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACj7DA;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;;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;;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;;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;;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;;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;;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;;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;;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;;AChgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC1BA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;ACvBA;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;;ACzCA;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;;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;;ACnCA;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;;AC3BA;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;;ACvJA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtiDA;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;;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;AACA;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;;ACZA;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;;AC1BA;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;;AC1BA;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;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;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;;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;;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;;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;;AC7BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC7BA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpTA;AACA;AACA;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;;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;;ACzCA;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;;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;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;ACpHA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;AC7BA;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;;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;;AChCA;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;;AChCA;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;;ACvBA;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;;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;;AC7BA;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;;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;;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;;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;;AC7BA;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;;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;;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;;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;;AC5DA;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;;AC7BA;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;;ACtBA;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;;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;;ACxBA;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;;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;;AC9BA;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;;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;;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;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;ACtBA;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;;ACfA;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;;ACVA;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;;ACVA;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;;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;;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;;AChPA;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;;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;;AC5BA;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;;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;;AC5BA;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;;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;;ACvBA;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;;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;;AC3CA;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;;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;;ACzDA;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;;AClDA;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;;AC9MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvVA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;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;;ACpFA;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;;ACxCA;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;;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;;AChCA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtLA;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACpBA;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;;ACvBA;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;;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;;AC3KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACnMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACzQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACzQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9oCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;ACvEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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;;AClLA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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/TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC56BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1+DA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;AC7EA;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;;ACbA;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;;AC7BA;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;;ACxGA;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;AACA;AACA;AACA;AACA;;ACrBA;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;;ACtCA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACpBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AClCA;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;;ACXA;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;;AC7BA;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;;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;;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;;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;;ACnCA;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;AACA;AACA;;AC7CA;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;;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;;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;;ACxBA;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;;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;;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;;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;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9rBA;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;;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;;ACpBA;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;;ACpBA;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;;AC9CA;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;AACA;AACA;;ACbA;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;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;;AChGA;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;;ACxHA;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;;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;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;;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;;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;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;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;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;;AChCA;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;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;;ACnCA;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;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;;ACbA;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;;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;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;;AChCA;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;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;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;;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;;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;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;;AChCA;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;;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;;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;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC3BA;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;;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;;AC3BA;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;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;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;;ACpBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;ACpBA;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtHA;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;;AC3BA;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;;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;;AClEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;;AC3BA;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;;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;;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;;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;;AC1BA;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;;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;;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;;ACrFA;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;;ACzLA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;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;;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;;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;;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;;ACjCA;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;;ACrBA;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;;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;;AC1DA;AACA;AACA;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;;ACpBA;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;;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;;AChEA;AACA;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;;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;;AC9BA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;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;;ACdA;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;;AC9CA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3jCA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9SA;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;;AC1CA;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;AACA;AACA;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;;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;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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;;AClCA;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;;ACnCA;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;;ACtBA;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;;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;;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;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;;AC3CA;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;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;;AC1EA;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;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;;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;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACzBA;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;;ACxBA;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;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;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;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;;ACxBA;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;;ACrBA;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;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrOA;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;;ACpBA;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;;ACVA;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;;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;;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3LA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7LA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7LA;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;;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;;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;;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;;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;;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;;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;;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;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;;AC3BA;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;;ACxBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;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;;ACrBA;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;;ACrBA;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;;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;;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;;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;;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;;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;;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;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;;AC9BA;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;;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;;AC9BA;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;;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;;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;;AC3BA;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;;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;;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;;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;;AC9BA;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;;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;;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;;AC9BA;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;;AC9BA;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;;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;;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;;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;;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;;AC9BA;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;;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;;AC9BA;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;;AC1BA;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;;ACnPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AClHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;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;;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;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;;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;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AC3JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;AC5IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;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;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxTA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3IA;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;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjiBA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;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;;ACpBA;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;;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;;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1VA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9sCA;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;;ACpBA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AChCA;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;;ACvBA;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;;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;;ACnCA;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;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjlBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;AC7BA;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;;ACfA;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;;AC1BA;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;;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;;ACrKA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;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;;ACXA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;ACbA;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;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;;AC1BA;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;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;;AC1BA;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;;ACxBA;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;;ACxCA;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;;ACtCA;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;;AC1BA;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;;ACbA;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;;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;;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;;AC9CA;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;AACA;AACA;AACA;AACA;AACA;;AChDA;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;;ACtBA;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;;AC1CA;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;;ACZA;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;;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;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;AC/EA;AACA;AACA;AACA;AACA;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;;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;ACnEA;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;;ACvBA;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;;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;;AChFA;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;;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;;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;;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;;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;;AC3BA;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;;ACpBA;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;;ACvBA;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;;ACpBA;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;;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;;ACzCA;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;;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;;ACxHA;AACA;AACA;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;;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;;ACpDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7hBA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1RA;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;;ACtOA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;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;;ACpCA;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;;AC3BA;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;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;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;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;;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;;AChCA;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;;ACvBA;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;;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;;ACtCA;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;;AC1CA;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;;AClFA;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;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;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClRA;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;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;;AC7DA;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;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;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;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;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3vBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtHA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;","file":"client.js"}